const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/af-CePWFrez.js","assets/lodash-CSSvFpUQ.js","assets/am-D9LGBiHh.js","assets/ar-dz-QLsvRVb8.js","assets/ar-iq-BodbcouV.js","assets/ar-kw-NlGtcAlD.js","assets/ar-ly-C65O4fTc.js","assets/ar-ma-ZDOPrd5B.js","assets/ar-sa-CFVQi1CS.js","assets/ar-tn-Dw81QPFi.js","assets/ar-wo0A7Tll.js","assets/az-BQ_u1AeS.js","assets/be-DbXv3_5y.js","assets/bg-ClhrABJY.js","assets/bi-BGazodCW.js","assets/bm-DrsQdPxY.js","assets/bn-bd-DusPo4Qr.js","assets/bn-D_khkeJK.js","assets/bo-BHA5Gs-9.js","assets/br-CCFnsT2Z.js","assets/bs-BiQJ2ge8.js","assets/ca-Cn8IhH5t.js","assets/cs-BN-iuCxf.js","assets/cv-CSHftx9Y.js","assets/cy-CmVhQIsd.js","assets/da-CVfcyywJ.js","assets/de-at-CNgpe8td.js","assets/de-ch-CF-GHz1T.js","assets/de-a5A1ZcN5.js","assets/dv-CU9c9dsz.js","assets/el-DiRhSOnO.js","assets/en-au-BrxnIMIW.js","assets/en-ca-BNkCkRHl.js","assets/en-gb-DLyyk5pj.js","assets/en-ie-rbFzVnOY.js","assets/en-il-DGI52ghJ.js","assets/en-in-CmxHanuM.js","assets/en-nz-BTEKiEr3.js","assets/en-sg-D_ec18CG.js","assets/en-tt-D3n0XLxp.js","assets/en-C-jMgwIo.js","assets/eo-BCyqMSv2.js","assets/es-do-To_Akso1.js","assets/es-mx-B1o6tGs5.js","assets/es-pr-HosuFaWJ.js","assets/es-us-_plCqqeI.js","assets/es-CwUDVEMP.js","assets/et-Ch6ZxAno.js","assets/eu-8-6aq-KJ.js","assets/fa-bOHWJQwn.js","assets/fi-DjXavCfO.js","assets/fo-DZFqSqF9.js","assets/fr-ca-CPTuV8jy.js","assets/fr-ch-D8IWEOd7.js","assets/fr-FMFj8VP-.js","assets/fy-BwRrcrd9.js","assets/ga-BUWeFiso.js","assets/gd-r1lNUE9R.js","assets/gl-mc_Asvqz.js","assets/gom-latn-CSZgBFlg.js","assets/gu-_tY-Y3_q.js","assets/he-CQfC3rQi.js","assets/hi-9ptCg0-Y.js","assets/hr-Dl_iBO6A.js","assets/ht-Cy8juasf.js","assets/hu-DklgNVdn.js","assets/hy-am-B9VzA5c1.js","assets/id-BYgjaaDU.js","assets/is-C5C8kKoW.js","assets/it-ch-BwuX81Y8.js","assets/it-D_-K935K.js","assets/ja-Br_PmRmC.js","assets/jv-C7woMzhc.js","assets/ka-B3gq5u70.js","assets/kk-B4fIFgJB.js","assets/km-Bh60Cb1J.js","assets/kn-CDG78eT5.js","assets/ko-yvWuVOrp.js","assets/ku-BRPPiwhD.js","assets/ky-BGnf1SpH.js","assets/lb-4YMGUNZ7.js","assets/lo-C46OA-y8.js","assets/lt-DZqRr2q4.js","assets/lv-BSyqf_AU.js","assets/me-CwPX6QaP.js","assets/mi-D2qJXOes.js","assets/mk-CnQ7VPI-.js","assets/ml-BquOt_eG.js","assets/mn-BUTWNYXh.js","assets/mr-CK3csRUq.js","assets/ms-my-CQUUTuFu.js","assets/ms-C1WoJWFE.js","assets/mt-B37dUgE2.js","assets/my-B9id2XaE.js","assets/nb-CE0VnLHl.js","assets/ne-C4KoVyRM.js","assets/nl-be-Ch_9K_TR.js","assets/nl-9KXZcka0.js","assets/nn-Bl1IGngH.js","assets/oc-lnc-CAh9-_eQ.js","assets/pa-in-BgO7uC3E.js","assets/pl-HoNSU12s.js","assets/pt-br-DN8S5PHw.js","assets/pt-CW2nh-wC.js","assets/rn-BMvWy71v.js","assets/ro--5ieKFJb.js","assets/ru-Dx6-Baff.js","assets/rw-B8NigV3M.js","assets/sd-CsJega46.js","assets/se-CXlO30ic.js","assets/si-R9DyTOjH.js","assets/sk-Dzge1jGo.js","assets/sl-CE4ZCKNe.js","assets/sq-CF48IRDU.js","assets/sr-cyrl-DfRwxQcE.js","assets/sr-BLP1z1S3.js","assets/ss-DkmM0cmN.js","assets/sv-fi-Bewh0Ht_.js","assets/sv-8QvlIjw_.js","assets/sw-D3hJvX5W.js","assets/ta-D87pm6Uu.js","assets/te-B6e5nX5M.js","assets/tet-C3qf3NPx.js","assets/tg-j3jopmfd.js","assets/th-ReXi-Xkc.js","assets/tk-CAxFEHbX.js","assets/tl-ph-C6qck62K.js","assets/tlh-BYhx56z7.js","assets/tr-DhCrmx6J.js","assets/tzl-BEnGAeUi.js","assets/tzm-latn-CGF5h1Ff.js","assets/tzm-D3cp3yFH.js","assets/ug-cn-BsoirChE.js","assets/uk-CEd3v6-i.js","assets/ur-C5OYIWjI.js","assets/uz-latn-COmuTwdC.js","assets/uz-i3_KYUk9.js","assets/vi-CHASjCoC.js","assets/x-pseudo-CZ90rhVH.js","assets/yo-Cpo0eUGi.js","assets/zh-cn-Mr-Q5S8C.js","assets/zh-hk-CYpn2o6n.js","assets/zh-tw-C2LiJyOf.js","assets/zh-BvhASqsK.js","assets/Svg-CS_cv-kq.js","assets/PredictStreetSlide-P8O7Hdvz.js","assets/ExtraSlideLoader-BCAuOGv2.js","assets/ExtraSlideLoader.DwuvQcDF.css","assets/PredictStreetSlide.BnC7kBsx.css","assets/EventBookSlide-B7MGR7Ro.js","assets/EventBookSlide.BBkL_wul.css","assets/TextWidget-D2mQq4a5.js","assets/GroupHeaderDark-_pFgobbn.js","assets/index-BynbhITx.js","assets/TextWidget.D2jLlD5E.css","assets/SliderJackpot-RvMqnava.js","assets/Odometer-DtsryFB4.js","assets/jackpot-C3PKXb77.js","assets/Odometer.Dtmtuu8d.css","assets/SliderJackpot.CKPvVtYZ.css","assets/SliderMarket-DvAGEJwv.js","assets/useSportData-BvfFLVGS.js","assets/gameDataProcessing-B_sYFB_r.js","assets/MarketEventNew-CkYr8vWA.js","assets/usePriceChange-BMILG-EX.js","assets/useOddsConverter-VkCrxDyo.js","assets/MarketEventNew.iPk5plHX.css","assets/HomeworkPopup-GeaTgGf0.js","assets/AuthPopup-kto8b_3J.js","assets/Login-BDBTALXd.js","assets/InputTypeCheckbox-eH3ccA4q.js","assets/InputTypePassword-CNB81zgo.js","assets/getAvailableCountries-Cy8t_UcO.js","assets/InputTypePassword.CWsLkVdf.css","assets/InputTypeText-vA8Rgx2a.js","assets/useSMSVerification-utGwCobW.js","assets/useFacialVerification-KkEE53Rx.js","assets/LoginBotPopupContent-DvC8znOj.js","assets/index-HUW6IqX4.js","assets/FastexWalletAppDownloadBanner.jC4XCOeg.css","assets/PaymentMethodsInfoContainer.Bg7iBATl.css","assets/InputTypeSelect-BzU_sWZJ.js","assets/InputTypeAutocomplete-ZzMW8ufO.js","assets/useConnection-Bag16J-Y.js","assets/context-DZbOYIgB.js","assets/useMutation-DtyIxJM1.js","assets/QueryClientProvider-C3FWnBfu.js","assets/signMessage-Bdjv8FgG.js","assets/getConnectorClient-CcBdrDU0.js","assets/InputTypeEmail-5wTmBjen.js","assets/InputTypeTelephone-BtcmBjLB.js","assets/Registration-DmGZwyw-.js","assets/InputTypeBankName-ED9d4kwo.js","assets/lossLimits-DkiKIK39.js","assets/InputTypeCPF-Cxr6wuIb.js","assets/InputTypeDatePicker-Bx1gIC7Q.js","assets/defineProperty-CegpTSss.js","assets/warning-B2J8QUoa.js","assets/InputTypeDatePicker.B4lA3wju.css","assets/InputTypeCPF.tdGGJ1Rv.css","assets/InputTypeNumber-rYC4Al6t.js","assets/InputTypeCountry-BoGYLdIP.js","assets/sortAlphabetically-BeC_KNAz.js","assets/StaticTypeSeparator-BVD3PQay.js","assets/Registration.0mI23RTP.css","assets/oncClickRegistration-CYuzaUQM.js","assets/AuthPopup.CU3EAPXi.css","assets/SportCasinoBonusButton-Bf6RfdNr.js","assets/withPanelButton-CTnRQy9R.js","assets/BoostedBets-wrq1ZHmt.js","assets/SportsGroup-BYYaGvbL.js","assets/sportColors-CP_wpUZX.js","assets/SportsDashboardDataFetcher-DigYRqgV.js","assets/useMarketFilter-C2VJQj-Y.js","assets/MarketFilterSliderDropdown-DgRzbnVh.js","assets/Toggle-B_vy7ciC.js","assets/StreamIcon-C7q98zsi.js","assets/RemoveAll-DOLL6TdX.js","assets/BetslipControlsNumpad-DjPHQykY.js","assets/BetslipControls-BBBJmcJN.js","assets/BetslipPossibleWinInfo-8rwj6E_6.js","assets/StreamIcon.BfFXFKjT.css","assets/GamesListHeaderWithChildren-CVhlAvlK.js","assets/GameDetails.CG_CtFtz.css","assets/GameDetails__platform.BfpFephG.css","assets/SmartMarketEvent-BS8k9g9U.js","assets/UnavailableMarketEvent-JnjHISOk.js","assets/StatisticsIcon-CMkCT8q8.js","assets/StatisticsIcon.4YD1Ldex.css","assets/FavoriteIcon-DoexyIKy.js","assets/HorizontalNavigationListContainer-BDOpPPPI.js","assets/HorizontalNavigationListItem-1yREzONB.js","assets/MarketTypeFilter-DweSgzCR.js","assets/CompetitionDetailsGame-BtYmEw_3.js","assets/ZeroMarginFlag-BLc1JztF.js","assets/Tooltip-M82wunC1.js","assets/useIsHovered-C93k4Mns.js","assets/GameListItem-DZvgZUfs.js","assets/getLiveGameAdditionalInfo-CBWU8hWi.js","assets/GameListItemTeams-DFG0oBbn.js","assets/index-zQy2TY5n.js","assets/index.C5BBczQI.css","assets/GameListCompetition-CMtu9QfV.js","assets/CompetitionDetailsGame.Clut87QI.css","assets/CompetitionDetails.B32QEYu5.css","assets/useContainerCompactView-OSZaTSE3.js","assets/Cashout-BUCtOTun.js","assets/cashout-DnM25HJp.js","assets/Cashout.GSRotPjG.css","assets/CasinoGamesWidget-DxLwtz1x.js","assets/CasinoGame-DgfzRETx.js","assets/badges-muyzLBH9.js","assets/CasinoGameImage-DcfjzuAK.js","assets/CasinoGameDownloadButton-BKmG6vF8.js","assets/socialShare-DJ172-Lz.js","assets/useCopyToClipboard-CvhcQ-X7.js","assets/index-B2SwBOPa.js","assets/index.BMia-OHJ.css","assets/RunningLine-DyF12UuM.js","assets/RunningLine.CdaVlzYu.css","assets/CasinoGame.C8O-Z65K.css","assets/CasinoHorizontalGamesList-CsIqXoVM.js","assets/CasinoHorizontalGamesList.C2H6QaHe.css","assets/CasinoGamesWidget.Ccp6ZK4f.css","assets/CasinoPromotedGamesWidget-C5MpW-mX.js","assets/CasinoFavoriteGamesWidget-HLcwl5XH.js","assets/useFavoriteCasinoGames-B2TbySs9.js","assets/CasinoGameOptionsWidget-DEDCx6KL.js","assets/CasinoGameOptionsWidget.B-FeVyEA.css","assets/CategoryPromotionsWidget-vuo3U4WG.js","assets/PromotionDetailsTemplate-KET8c18a.js","assets/PromotionDetailsTemplate.CqBzzhRf.css","assets/useCategoryPromotions-xW21VdsW.js","assets/CMSPromotion-JVJwLGRm.js","assets/CategoryPromotionsWidget.C4xLdp6d.css","assets/ExpressOfTheDay-B2KMu2C2.js","assets/useAiAssistantChat-BNm4_Z-N.js","assets/BetslipMessage-ByegszpP.js","assets/BetslipBookingId-Bum3xBo_.js","assets/useScrollState-DO1oaKOj.js","assets/ExpressOfTheDay.BA4hyiSA.css","assets/PromotedProductsWidget-ClYzU3r-.js","assets/FavoriteGamesContent-DS4trHHB.js","assets/TabItem-BPEnmgbf.js","assets/FavoriteGamesButton-gbZb8njN.js","assets/GenericSearchContent-BRNMecLJ.js","assets/GenericSearchContainer-NUDTaStn.js","assets/SearchInput-Ywwtvgjd.js","assets/CasinoGamesSearchResult-D-mdOiPt.js","assets/index-1es_X58i.js","assets/CasinoGamesLoader-CpqpGP7M.js","assets/CasinoGamesLoader.DjDoifjc.css","assets/CasinoEmptyItem-BqRb6ld_.js","assets/CasinoEmptyItem.CJujBF5l.css","assets/useSearch-BXlCBX01.js","assets/SearchResult-BuKLJmwr.js","assets/racing-oWbSLYZ2.js","assets/GenericSearchContainer.v52cGgNV.css","assets/FeaturedGames-DLoF_kbq.js","assets/FeaturedGame-CrzKwIkp.js","assets/FeaturedGame.HdMgRjfc.css","assets/useFeaturedGames-4pC6RnDv.js","assets/useNotificationsProvider-9x1VAhl_.js","assets/HorizontalSportsList-BoWNSYy7.js","assets/HorizontalNavigationListItem-Hs-tBnuJ.js","assets/CasinoGameWidget-CPmy5fsV.js","assets/CasinoAIPromotedGamesWidget-Bn9Zslj_.js","assets/CasinoAIDynamicGamesWidget-DkD8IxKY.js","assets/CasinoAIDynamicGamesWidget.D1uxebuh.css","assets/StoryWidget-ChTR9GdY.js","assets/useVivaroMeStreams-BxsKa6Z-.js","assets/effect-cube-BsVg3bOT.js","assets/effect-cube.DD2MBWg-.css","assets/useKeyDown-B0hRn3rl.js","assets/StoryWidget.BfR7psmu.css","assets/AchievementWidget-B4GfelVV.js","assets/index.es-CYMMt0Kz.js","assets/AchievementWidget.Co2HySTJ.css","assets/LoyaltyProgressWidget-x01O5xA-.js","assets/LoyaltyProgressWidget.BwSeAv6p.css","assets/BettingMateWidget-C38o_xwW.js","assets/sessionStorage-BMNJFgki.js","assets/BettingMateWidget.BFrBYKKt.css","assets/SureBetWidget-g9hGr_SC.js","assets/SureBetWidget.BrhqXZ9f.css","assets/VivaroMeRooms-hw2YNA6t.js","assets/createRoomHelpers-DZDlUNHX.js","assets/VivaroMeRooms.CVde_Qwo.css","assets/HarmonyJackpotWidget-d6yugTSe.js","assets/HarmonyJackpotWidget.BN0dVpzc.css","assets/FirstLoginSuggestion-C67kohYo.js","assets/FirstLoginSuggestion.BAYXcWLF.css","assets/HelpPage-CBLqQ4Gn.js","assets/HelpContent-CEhtIkEb.js","assets/HelpContent.C5MCZDOO.css","assets/HelpContentPrint-DLRnBgUy.js","assets/LiveChatAdviser-DWHfpS89.js","assets/JourneyAdviser-MQC8F0ON.js","assets/MessagesButton-NyBXFsj2.js","assets/index-A3QTy_m7.js","assets/index.6hr6LgI6.css","assets/NotificationsButton-OfwBnXr2.js","assets/PageBuilder-BoqIknZE.js","assets/usePageBuilder-BI1qr0oQ.js","assets/CMSPageBuilder-gKh55Tss.js","assets/index-DQViTkzj.js","assets/usePageBuilderDispatch-D72D1G5Q.js","assets/LeftMenuNavigationItem-Y8AHdnHA.js","assets/ConditionalWrapper-BC8rtmks.js","assets/LeftMenuNavigationItem.ry7WVeY_.css","assets/PageBuilder.BGZ98ysW.css","assets/PopularMatches-CZN9QloS.js","assets/useShowMoreOrLess-BRSxE9uw.js","assets/useShowMoreOrLess.C1xr5R92.css","assets/HorizontalSportsList-BM1EXseM.js","assets/PopularCompetitions-anrowt_P.js","assets/usePopularCompetitions-C2oiaS6c.js","assets/SportCompetition-C0TMj20r.js","assets/VerticationNavigationListGroupItem-Cnx5jHFv.js","assets/SportCompetition.CJT4pTKf.css","assets/VerticalNavigationList__platform.BU2xHs9R.css","assets/PopularCompetitionsLoader-C5J3XBVu.js","assets/BetOnPoliticsWidget-DDId37f6.js","assets/BetOnPoliticsWidget.D-COTfoJ.css","assets/AppSettings-BaaivJ6n.js","assets/externalSportsbookHelper-BcFh7g_A.js","assets/AppSettings.kMDuOdyR.css","assets/AppSettingsButton-CosxQgPr.js","assets/UpcomingMatches-CgabnxpL.js","assets/TimeFiltersHorizontal-DvEh9Haa.js","assets/TimeFiltersHorizontal.CnSVmRst.css","assets/UpcomingMatches__platform.CL6BvHTL.css","assets/UpcomingRaces-BdanfmHr.js","assets/UpcomingRaces.D95fbUKn.css","assets/TodayBets-A_-vhYm9.js","assets/PreMatchGames.PF3_HNud.css","assets/OlympicMatches-Bp1GSqm9.js","assets/SportsbookMainWidget-B-VK-MDV.js","assets/SportsbookMainWidget.FdI-HvmA.css","assets/JackpotPoolsWidgetContainer-BYojKv_D.js","assets/useJackpot-gjmkIk63.js","assets/JackpotPool-C9ifxaPj.js","assets/JackpotPool.Drx8okXv.css","assets/JackpotPoolsList-Rikn97XJ.js","assets/JackpotPoolsList.LTvEyOMg.css","assets/JackpotPoolsWidgetContainer.FfWCgeuC.css","assets/IframeWidget-pLb6LilY.js","assets/PoolMasterWidget-BeKnSR1A.js","assets/TopWinnersWidget-D_CMy3r6.js","assets/TopWinnersWidget.XF4cfYlZ.css","assets/CasinoWinners.Dm1GqRl3.css","assets/PromotedGamesWidget-jI_qm_TG.js","assets/PromotedGamesWidget.Bzuo9Jyh.css","assets/CasinoLastPlayedGames-B8x7jTni.js","assets/CasinoWinners-De5uWFZE.js","assets/useCasinoTopWinners-D-9i43gW.js","assets/emptyWinner-Daz_D68d.js","assets/CasinoTopWinnersWidget-D2aLZlDz.js","assets/CasinoTopWinnersWidget.DYKAByUP.css","assets/CasinoJackpotWidget-D3z4BU0R.js","assets/CasinoGamesListTemplate-BZ6AzjLS.js","assets/CasinoJackpotWidget.DBHn3ybC.css","assets/TournamentsWidget-CGVyzOIe.js","assets/tournaments-Cu5XTIx0.js","assets/TournamentsWidget.NZd31fFv.css","assets/TournamentsSliderWidget-EtK6zXQ3.js","assets/useTournamentsList-DQ8Itku_.js","assets/TournamentsSliderWidget.ylhtGJdM.css","assets/FriendsList-B4U5gDH0.js","assets/constants-DdD2Lkx3.js","assets/GameSuggestedEventsWidget-DAVPPM22.js","assets/GameSuggestedEventsWidget.DT3sdmgt.css","assets/LiveGamesWidget-CsbrSGy6.js","assets/BetslipButton-BGLZ3-Bs.js","assets/BetslipBanner-CYxgDShu.js","assets/VCareJackpotWidget-ILaexGbU.js","assets/VCareJackpotWidget.Cnazur1K.css","assets/InformativeWidget-Cb_UzsWi.js","assets/KYCVerificationInformativeWidget-Ba6aa5_U.js","assets/VerificationCountdown-NzsTvVlf.js","assets/VerificationCountdown.qKAWe-cV.css","assets/BetHistoryPrintInfo-B0D6rpnN.js","assets/BetHistoryPrintInfo.DXY73mx4.css","assets/BetslipBookingBetPrintInfoWidget-Qa7aEPM1.js","assets/BetslipBookingBetPrintInfoWidget.dqVijCdU.css","assets/PageBuilderDefaultComponent-DUYaMoBF.js","assets/PageBuilderTextBannerWidget-BgLdqcuu.js","assets/cjs-CahkLpmV.js","assets/PageBuilderTextBannerWidget.jXOxbDXi.css","assets/TextBannerWidget-CcjIDUhn.js","assets/TextBannerWidget.DP3Onyke.css","assets/index-CPv4f9ba.js","assets/index-DEW55eiH.js","assets/index.CwR2VJEg.css","assets/index-B3o6Rflj.js","assets/index.Bhf9HcGs.css","assets/index-BXp_4EAt.js","assets/index.CBf3hvs6.css","assets/index-JCoBVS55.js","assets/index.BYy5LzbE.css","assets/index.Dq_RIP2s.css","assets/CasinoProvidersWidget-B8px2d2F.js","assets/CasinoProviderItem-DJxuRH-D.js","assets/CasinoProviderItem.C3Ohq4yJ.css","assets/CasinoProvidersWidget.CvBvPqjT.css","assets/CasinoLiveRTP-MKo61ey0.js","assets/CasinoLiveRTP.DvtVxjsV.css","assets/CasinoLiveWins-DO14Y0k8.js","assets/CasinoLiveWins.BrK_lWAw.css","assets/CasinoLiveRTPDescription-CxHjmyS1.js","assets/CasinoLiveRTPDescription.DhOj7Ptr.css","assets/FeaturedQuickGames-D42-wxjY.js","assets/FeaturedQuickGamesSkeleton-C1PuR6dN.js","assets/FeaturedQuickGamesSkeleton.DRbmnl1X.css","assets/FeaturedQuickGames.BuRs2U9E.css","assets/BetBuilderAIRecommendedBets-FK1_9dA5.js","assets/BetBuilderAIRecommendedBets.DPuyHZC2.css","assets/PageBuilderHeaderTextWidget-Db-jSX9Y.js","assets/HeaderTextWidget-R77a6QGM.js","assets/LoginTwoFactorWrapper-D8U_zZGq.js","assets/index-CRZ6JiM3.js","assets/UserProfile__platform.VqszWDVx.css","assets/SessionDurationPopupContent-CZWvryRk.js","assets/LoginLimitPopupContent-tviEyU0F.js","assets/SportsBook-D4PdZ0n0.js","assets/SportsbookFilter-CRH_f4Ue.js","assets/helpers-DCdV_0IO.js","assets/useCompactFooter-fszdJJEB.js","assets/index-Bf4br6ph.js","assets/ShowMore-CsWEGm44.js","assets/VerticalNavigationListGroup-Bqv9htQt.js","assets/SportsbookFilter.Ch38t9tY.css","assets/FavoriteTeam.IT7gE7OW.css","assets/GameDetailsAnimationAndVideoContainer-QHkXXDl_.js","assets/constants-COVcTJMV.js","assets/GameDetailsAnimationAndVideoContainer.BDjP415v.css","assets/BackNavigation.Bv3uLnDY.css","assets/SportSearch-BE4BDZ8W.js","assets/SportSearch.BFtaVTj1.css","assets/LiveGamesFilter-DnXTHgIJ.js","assets/LiveGamesFilter.CtPfvTVo.css","assets/useIsInitialized-B84rkvja.js","assets/LiveGamesFilters-CX0HkcNO.js","assets/Tournaments-cmE43FTo.js","assets/TournamentCompact-Cm9jWt6E.js","assets/TournamentCompact.C76iFvYh.css","assets/SportsBook.95A0sUeF.css","assets/VirtualSportsPage-BCKFM5hm.js","assets/CasinoGenericPageGamesContainer-wdKYoLU8.js","assets/CasinoLobby-B9zJ96Jm.js","assets/CasinoLobby.B3Mhcr39.css","assets/CasinoGameDetails-BoBcKHu-.js","assets/CasinoGameDetails.CAxJ0Xrk.css","assets/CasinoTournaments-BNHnCKT0.js","assets/EsportsPage-CwJ9Hfu4.js","assets/StatisticsForCounterStrike-Dh0n67Qo.js","assets/StatisticsForCounterStrike.C4Gmn7lz.css","assets/useFixedBetslip-DEjcaIkY.js","assets/SwipeableContainer-Cll8N0KS.js","assets/SwipeableContainer.BGvxD8Ys.css","assets/EmptyMarketEvent-B1wAFlXR.js","assets/GameListItemSelectHeader-CLIqoo2c.js","assets/getMarketsAndMarketGroups-DyvwpBJe.js","assets/sportAdditionalData-Dk5GebpE.js","assets/GameAdditionalInfo-oQEtZOta.js","assets/HorizontalNavigationTabItem-Db867pXi.js","assets/GameAdditionalInfo.NgUMdwif.css","assets/StreamPlayer-_zdiFBj_.js","assets/events-Du_pV-kx.js","assets/StreamPlayer.-Us_fkXP.css","assets/MapOfLeagueOfLegends__platform.CtX7svW1.css","assets/PMUPage-CGJdLltr.js","assets/IntegratedIframeProduct-ZW5gNIpS.js","assets/PinnaclePage-twqdHi-a.js","assets/DynamicallyStructuredPage-l0sNRNKZ.js","assets/WonderWheelPage-CyBQ_4-q.js","assets/IncidentalGame-CDkBZO5x.js","assets/AchievementPage-DMdQanve.js","assets/VmaniaPage-DJKjmLUR.js","assets/ExchangePage-ClJqIqhd.js","assets/NeedToSwitchToFtnWallet-CHu6a6YN.js","assets/WonderWheelHarmonyPage-CS3NHgXA.js","assets/WonderWheelWorldCupPage-DO2RvorY.js","assets/DailySprintPage-CK0IkAtM.js","assets/WinWheelPage-BIIXO1sx.js","assets/WonderCardsPage-BUMjTk8v.js","assets/CasinoSlots-DPRYM3ND.js","assets/CasinoLiveRTPPage-B-sCMB43.js","assets/CasinoJackpotPage-BQXFf0p-.js","assets/CasinoGameViewPage-edztsmYR.js","assets/CasinoGeneric-C5Cz0WXf.js","assets/CasinoLive-CXxKXcAm.js","assets/SkillGamesPage-DMdKBiN7.js","assets/QuizPage-pr_CUCet.js","assets/Subscriptions-B1522p-4.js","assets/Subscriptions.Csz_7ecc.css","assets/TVGamesPage-ejYLa74n.js","assets/PaymentsInfo-BBEbUpGH.js","assets/PaymentMethodsInfoContainer-PFa1Ljby.js","assets/PaymentMethodsInfoContainer.K-VSgUZW.css","assets/PromotionsPage-DGRdlF91.js","assets/DynamicallyStructuredPage-DbwNUIJk.js","assets/DepositToRidePage-CQHB2VuL.js","assets/DepositToRidePage.BD88yFCM.css","assets/IFramePage-zTdUK5iJ.js","assets/ExchangeShopPage-tsrzNj_Z.js","assets/ExchangeShop-2-EgI5YF.js","assets/ExchangeShop.BM8DhhjK.css","assets/WorldCup-BlL0-g5Y.js","assets/RacingPage-CUUQ0wdU.js","assets/RacingPage.DOfj4CtS.css","assets/Competition-DdFWW1JZ.js","assets/PageBuilderPreview-CiH9aKVz.js","assets/FirstSportsbook-CP9FghGP.js","assets/PageBuilderCustomPage-CZcTeety.js","assets/VivaroMePage-BAFvd5vh.js","assets/FeedPost-DwjLbLa2.js","assets/useFeedActions-_0lVrKhB.js","assets/StoryAvatarCover-BKQLs6op.js","assets/hls-CJm5oz2q.js","assets/StoryAvatarCover.DCd_qFdj.css","assets/FeedPost.B3IClDje.css","assets/VivaroMeDrawerFix-RwUOd39i.js","assets/VivaroMeDrawerFix.D96ss52u.css","assets/livekit-client.esm-C8nlu9s-.js","assets/StreamerCommentsOverlay-z4kaL7Rq.js","assets/useVivaroMeSocialProfile-DzwQI1E1.js","assets/StreamerCommentsOverlay.BSPX98GB.css","assets/VivaroMePage.B8HuWXDs.css","assets/LossAndSessionLimitPopup-D_4WoPea.js","assets/LossAndSessionLimitPopup.3Z_3edAJ.css","assets/BookingBetRestorePopup-Di4f6NH9.js","assets/BetslipBetBuilderEvent.lvsFnne1.css","assets/BetslipSuperBetInfo-DCUIVWq0.js","assets/BetShareRepeatBetPopup-bkmEJL_F.js","assets/BetHistoryListItemCompact-CcphjBzB.js","assets/useBetBuilderGrouping-C14EBFIM.js","assets/BetHistoryBetInfoBlock-BzLHMeXN.js","assets/freebet2-BfPAlzJH.js","assets/BetHistory__platform-BplnPLSA.js","assets/BetHistory__platform.Rx6_gjC8.css","assets/BetHistoryListItemCompact.COq3LsFX.css","assets/BetHistoryListItem-D1XGOtQO.js","assets/BetslipSportsBonusInfo-7HZExVAi.js","assets/SocialHeader.Cnwi_olm.css","assets/BrazilWithSignicatMigrationProfileUpdatePopup-CU-So1n_.js","assets/BrazilWithSignicatMigrationGoToVerificationPopup-DlerK9n2.js","assets/BonusPieInfoPopup-DrukqY8H.js","assets/LowBalancePopUp-BeNKt8j-.js","assets/LowBalancePopUp.D0KAN61Y.css","assets/UserProfileEditPassword-BrSzLrDa.js","assets/TaxNotificationInfoPopup-Bh4uwQGR.js","assets/TaxNotificationInfoPopup.ZS4sqD0w.css","assets/SubscriptionsUpdatePopup-DxZd6QSh.js","assets/SubscriptionsUpdatePopup.BLhiT7Zc.css","assets/SalaryRangeUpdatePopup-BPDZO0vJ.js","assets/ConnectWalletPopupContent-BAjQkor8.js","assets/FeedStoryViewer-B5c4B_hD.js","assets/StoryHighlightCreateModal-BuUinRGw.js","assets/StoryHighlightCreateModal.DCCCfE7E.css","assets/FeedStoryViewer.vN5LX50a.css","assets/ButtonWithAction-i84DJJwe.js","assets/GenericSearch-BuP-2EwG.js","assets/FeedbackModal-CI5ziXbj.js","assets/InputTypeTextarea-CsT1n1pd.js","assets/BetslipBookingPopup-bVbXc1x7.js","assets/Betslip-CLIpRBxK.js","assets/BetslipExtraFunctions-C0LqkQ56.js","assets/BetslipExtraFunctions.DQCKt2ol.css","assets/BetslipMiniGamesContainer-BEw_zpny.js","assets/BetslipRemoveEventButton-DE-CBYrw.js","assets/BetslipBetStatus-Cn3lvjHp.js","assets/BetslipHeader-Cnbfe-hZ.js","assets/BetslipSuggestedBets-WP_FDiAR.js","assets/BetslipSuggestedBets.OiiekDRG.css","assets/EditBetHeader-BXMipQXS.js","assets/FullCoverBetslip-Bza5AMPY.js","assets/QuickBet-DMcjxa5N.js","assets/BetslipMultipleOfTheDay-xI455RGs.js","assets/PossibleWinPopup-DhDt3oKr.js","assets/PossibleWinPopup.3HH55uLO.css","assets/OpenBets-DAPSQRo9.js","assets/useCashOutBet-D66smvC9.js","assets/UserProfileTemplate-DYcajWC0.js","assets/SegmentTracking-Bj7rCKoU.js","assets/DataspotTracking-D_GlBo5b.js","assets/FacebookTracking-BlmhxyM9.js","assets/ConnextraTracking-BonHC107.js","assets/ContentSquareTracking-D80iYl0v.js","assets/FastTrackTracking-DIUBmsSa.js","assets/userJWE-CiI3gKJN.js","assets/FraudneticTrackingTool-BnTwGNya.js","assets/GoogleAnalyticsTracking-CWFDfN_O.js","assets/GoogleTagManagerTracking-DilqP81h.js","assets/SeonTracking-VRp400aL.js","assets/YandexTracking-BuuD93yt.js","assets/HotjarTracking-CyiVMWKW.js","assets/DepositCountTracking-FikbXqo9.js","assets/SmarticoTracking-CS2moetL.js","assets/InternalDataspotTracking-DL3sLavC.js","assets/Comm100-D70jrNkt.js","assets/useOpenLiveChat-76HyJVa8.js","assets/LiveChatInc-C-nH1Lqb.js","assets/LiveAgent-cL0OKBFL.js","assets/TawkTo-CCvjY1QF.js","assets/Intercom-BTLylKUs.js","assets/Zendesk-DtohZWh7.js","assets/Zopim-CGBH31ms.js","assets/Crisp-ZnpUWkWY.js","assets/Jivo-zfuZXnzs.js","assets/Freshdesk-PsP3mDyO.js","assets/Digisac-CG-rDPok.js","assets/Hoory-D4HNjmm3.js","assets/HooryAI-0XEDMZAh.js","assets/useOpenHooryAi-C0_IfZws.js","assets/HooryAndHooryAi-C-DGC2dO.js","assets/CustomChat-EWxtCHLG.js","assets/CustomChat.BWwaMSO1.css","assets/ZohoSalesIQ-I5ybpoDU.js","assets/Dixa-DRYlmiD8.js","assets/FreshDeskNew-apFDEWf2.js","assets/CasinoFullGameTemplate-YA6f4BkX.js","assets/CasinoFullGameTemplate.qo3H2Kok.css","assets/StreamPlayerDraggableContainer-DRNZojDT.js","assets/NewYearSnowfall-DZjuIglX.js","assets/CommonChat-0Yji1Yb_.js","assets/CommonChat.Cdz-oriO.css","assets/SystemBetCalculatorContainer-DyxYTgTN.js","assets/LeftMenuNavigation-D6-iVA4L.js","assets/LeftMenuNavigationSocial-CkjGS-rf.js","assets/LeftMenuNavigationSocial.BFwIePB0.css","assets/IdentifyContainer-LJNSDTYM.js","assets/InputTypeFile-b-y8ZJ-c.js","assets/InputTypeFile.B82rQkwt.css","assets/CookieAcceptanceMessage-CbY3mxP0.js","assets/CookieAcceptanceMessage.DTzT_YXE.css","assets/VipUserTemplate-DMEppCgI.js","assets/VipUserTemplate.CxUY07qT.css","assets/Firebase-DzbhWJ6d.js","assets/OneSignal-Bsl3gbOa.js","assets/WagmiConf-tszf9zum.js","assets/components-DyE932yO.js","assets/query-BHNHxd2T.js","assets/writeContract-R1jpNgbn.js","assets/StreamerBroadcastOverlay-B0K0GOCK.js","assets/StreamerBroadcastOverlay.P9TrvP3Y.css","assets/Maintenance-DbLTSYSb.js","assets/Maintenance.D59XtvBT.css"])))=>i.map(i=>d[i]); var tL=Object.defineProperty;var nL=(e,t,n)=>t in e?tL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var se=(e,t,n)=>nL(e,typeof t!="symbol"?t+"":t,n);import{g as jn,Z as il,o as E1,p as nt,_ as sL,$ as rL,a0 as Eu,s as $r,e as ll,u as uo,a1 as Bd,m as y1,n as Ut,K as a_,b as yo,F as o_,a2 as aL,a3 as oL,E as b1,a4 as iL,a5 as lL,a6 as cL,d as uL,q as dL,J as fL,a7 as pL,l as mL,j as hL,a8 as gL,a9 as _L,x as Jb,C as vL,aa as EL,ab as yL,f as bL,ac as SL}from"./lodash-CSSvFpUQ.js";function CL(e,t){for(var n=0;ns[r]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))s(r);new MutationObserver(r=>{for(const a of r)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&s(o)}).observe(document,{childList:!0,subtree:!0});function n(r){const a={};return r.integrity&&(a.integrity=r.integrity),r.referrerPolicy&&(a.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?a.credentials="include":r.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function s(r){if(r.ep)return;r.ep=!0;const a=n(r);fetch(r.href,a)}})();var S1={exports:{}},Mp={},C1={exports:{}},it={};/** * @license React * react.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var yu=Symbol.for("react.element"),TL=Symbol.for("react.portal"),wL=Symbol.for("react.fragment"),IL=Symbol.for("react.strict_mode"),AL=Symbol.for("react.profiler"),PL=Symbol.for("react.provider"),xL=Symbol.for("react.context"),OL=Symbol.for("react.forward_ref"),kL=Symbol.for("react.suspense"),NL=Symbol.for("react.memo"),RL=Symbol.for("react.lazy"),Zb=Symbol.iterator;function LL(e){return e===null||typeof e!="object"?null:(e=Zb&&e[Zb]||e["@@iterator"],typeof e=="function"?e:null)}var T1={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w1=Object.assign,I1={};function cl(e,t,n){this.props=e,this.context=t,this.refs=I1,this.updater=n||T1}cl.prototype.isReactComponent={};cl.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};cl.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function A1(){}A1.prototype=cl.prototype;function yE(e,t,n){this.props=e,this.context=t,this.refs=I1,this.updater=n||T1}var bE=yE.prototype=new A1;bE.constructor=yE;w1(bE,cl.prototype);bE.isPureReactComponent=!0;var eS=Array.isArray,P1=Object.prototype.hasOwnProperty,SE={current:null},x1={key:!0,ref:!0,__self:!0,__source:!0};function O1(e,t,n){var s,r={},a=null,o=null;if(t!=null)for(s in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(a=""+t.key),t)P1.call(t,s)&&!x1.hasOwnProperty(s)&&(r[s]=t[s]);var i=arguments.length-2;if(i===1)r.children=n;else if(1>>1,K=R[z];if(0>>1;zr($,G))Lr(W,$)?(R[z]=W,R[L]=G,z=L):(R[z]=$,R[J]=G,z=J);else if(Lr(W,G))R[z]=W,R[L]=G,z=L;else break e}}return U}function r(R,U){var G=R.sortIndex-U.sortIndex;return G!==0?G:R.id-U.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,i=o.now();e.unstable_now=function(){return o.now()-i}}var l=[],c=[],u=1,f=null,m=3,h=!1,g=!1,E=!1,b=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,_=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(R){for(var U=n(c);U!==null;){if(U.callback===null)s(c);else if(U.startTime<=R)s(c),U.sortIndex=U.expirationTime,t(l,U);else break;U=n(c)}}function S(R){if(E=!1,y(R),!g)if(n(l)!==null)g=!0,j(w);else{var U=n(c);U!==null&&V(S,U.startTime-R)}}function w(R,U){g=!1,E&&(E=!1,v(C),C=-1),h=!0;var G=m;try{for(y(U),f=n(l);f!==null&&(!(f.expirationTime>U)||R&&!A());){var z=f.callback;if(typeof z=="function"){f.callback=null,m=f.priorityLevel;var K=z(f.expirationTime<=U);U=e.unstable_now(),typeof K=="function"?f.callback=K:f===n(l)&&s(l),y(U)}else s(l);f=n(l)}if(f!==null)var ne=!0;else{var J=n(c);J!==null&&V(S,J.startTime-U),ne=!1}return ne}finally{f=null,m=G,h=!1}}var x=!1,I=null,C=-1,T=5,P=-1;function A(){return!(e.unstable_now()-PR||125z?(R.sortIndex=G,t(c,R),n(l)===null&&R===n(c)&&(E?(v(C),C=-1):E=!0,V(S,G-z))):(R.sortIndex=K,t(l,R),g||h||(g=!0,j(w))),R},e.unstable_shouldYield=A,e.unstable_wrapCallback=function(R){var U=m;return function(){var G=m;m=U;try{return R.apply(this,arguments)}finally{m=G}}}})(M1);L1.exports=M1;var WL=L1.exports;/** * @license React * react-dom.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var zL=p,vs=WL;function ge(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),l_=Object.prototype.hasOwnProperty,YL=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,nS={},sS={};function qL(e){return l_.call(sS,e)?!0:l_.call(nS,e)?!1:YL.test(e)?sS[e]=!0:(nS[e]=!0,!1)}function KL(e,t,n,s){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return s?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function QL(e,t,n,s){if(t===null||typeof t>"u"||KL(e,t,n,s))return!0;if(s)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Fn(e,t,n,s,r,a,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=s,this.attributeNamespace=r,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var gn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){gn[e]=new Fn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];gn[t]=new Fn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){gn[e]=new Fn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){gn[e]=new Fn(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){gn[e]=new Fn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){gn[e]=new Fn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){gn[e]=new Fn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){gn[e]=new Fn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){gn[e]=new Fn(e,5,!1,e.toLowerCase(),null,!1,!1)});var TE=/[\-:]([a-z])/g;function wE(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(TE,wE);gn[t]=new Fn(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(TE,wE);gn[t]=new Fn(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(TE,wE);gn[t]=new Fn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){gn[e]=new Fn(e,1,!1,e.toLowerCase(),null,!1,!1)});gn.xlinkHref=new Fn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){gn[e]=new Fn(e,1,!1,e.toLowerCase(),null,!0,!0)});function IE(e,t,n,s){var r=gn.hasOwnProperty(t)?gn[t]:null;(r!==null?r.type!==0:s||!(2i||r[o]!==a[i]){var l=` `+r[o].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=o&&0<=i);break}}}finally{Jm=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ql(e):""}function XL(e){switch(e.tag){case 5:return ql(e.type);case 16:return ql("Lazy");case 13:return ql("Suspense");case 19:return ql("SuspenseList");case 0:case 2:case 15:return e=Zm(e.type,!1),e;case 11:return e=Zm(e.type.render,!1),e;case 1:return e=Zm(e.type,!0),e;default:return""}}function f_(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case oi:return"Fragment";case ai:return"Portal";case c_:return"Profiler";case AE:return"StrictMode";case u_:return"Suspense";case d_:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case B1:return(e.displayName||"Context")+".Consumer";case j1:return(e._context.displayName||"Context")+".Provider";case PE:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case xE:return t=e.displayName||null,t!==null?t:f_(e.type)||"Memo";case ia:t=e._payload,e=e._init;try{return f_(e(t))}catch{}}return null}function JL(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return f_(t);case 8:return t===AE?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Oa(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function U1(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function ZL(e){var t=U1(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),s=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var r=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(o){s=""+o,a.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return s},setValue:function(o){s=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function qu(e){e._valueTracker||(e._valueTracker=ZL(e))}function $1(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),s="";return e&&(s=U1(e)?e.checked?"true":"false":e.value),e=s,e!==n?(t.setValue(e),!0):!1}function _f(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function p_(e,t){var n=t.checked;return Lt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function aS(e,t){var n=t.defaultValue==null?"":t.defaultValue,s=t.checked!=null?t.checked:t.defaultChecked;n=Oa(t.value!=null?t.value:n),e._wrapperState={initialChecked:s,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function G1(e,t){t=t.checked,t!=null&&IE(e,"checked",t,!1)}function m_(e,t){G1(e,t);var n=Oa(t.value),s=t.type;if(n!=null)s==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(s==="submit"||s==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?h_(e,t.type,n):t.hasOwnProperty("defaultValue")&&h_(e,t.type,Oa(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function oS(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var s=t.type;if(!(s!=="submit"&&s!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function h_(e,t,n){(t!=="number"||_f(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Kl=Array.isArray;function wi(e,t,n,s){if(e=e.options,t){t={};for(var r=0;r"+t.valueOf().toString()+"",t=Ku.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Lc(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var ic={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},eM=["Webkit","ms","Moz","O"];Object.keys(ic).forEach(function(e){eM.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ic[t]=ic[e]})});function z1(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||ic.hasOwnProperty(e)&&ic[e]?(""+t).trim():t+"px"}function Y1(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var s=n.indexOf("--")===0,r=z1(n,t[n],s);n==="float"&&(n="cssFloat"),s?e.setProperty(n,r):e[n]=r}}var tM=Lt({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function v_(e,t){if(t){if(tM[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(ge(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(ge(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(ge(61))}if(t.style!=null&&typeof t.style!="object")throw Error(ge(62))}}function E_(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var y_=null;function OE(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var b_=null,Ii=null,Ai=null;function cS(e){if(e=Cu(e)){if(typeof b_!="function")throw Error(ge(280));var t=e.stateNode;t&&(t=Up(t),b_(e.stateNode,e.type,t))}}function q1(e){Ii?Ai?Ai.push(e):Ai=[e]:Ii=e}function K1(){if(Ii){var e=Ii,t=Ai;if(Ai=Ii=null,cS(e),t)for(e=0;e>>=0,e===0?32:31-(fM(e)/pM|0)|0}var Qu=64,Xu=4194304;function Ql(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function bf(e,t){var n=e.pendingLanes;if(n===0)return 0;var s=0,r=e.suspendedLanes,a=e.pingedLanes,o=n&268435455;if(o!==0){var i=o&~r;i!==0?s=Ql(i):(a&=o,a!==0&&(s=Ql(a)))}else o=n&~r,o!==0?s=Ql(o):a!==0&&(s=Ql(a));if(s===0)return 0;if(t!==0&&t!==s&&!(t&r)&&(r=s&-s,a=t&-t,r>=a||r===16&&(a&4194240)!==0))return t;if(s&4&&(s|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=s;0n;n++)t.push(e);return t}function bu(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Js(t),e[t]=n}function _M(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var s=e.eventTimes;for(e=e.expirationTimes;0=cc),vS=" ",ES=!1;function hI(e,t){switch(e){case"keyup":return WM.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function gI(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ii=!1;function YM(e,t){switch(e){case"compositionend":return gI(t);case"keypress":return t.which!==32?null:(ES=!0,vS);case"textInput":return e=t.data,e===vS&&ES?null:e;default:return null}}function qM(e,t){if(ii)return e==="compositionend"||!BE&&hI(e,t)?(e=pI(),Gd=ME=pa=null,ii=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=s}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=CS(n)}}function yI(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?yI(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function bI(){for(var e=window,t=_f();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=_f(e.document)}return t}function FE(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function sD(e){var t=bI(),n=e.focusedElem,s=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&yI(n.ownerDocument.documentElement,n)){if(s!==null&&FE(n)){if(t=s.start,e=s.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var r=n.textContent.length,a=Math.min(s.start,r);s=s.end===void 0?a:Math.min(s.end,r),!e.extend&&a>s&&(r=s,s=a,a=r),r=TS(n,a);var o=TS(n,s);r&&o&&(e.rangeCount!==1||e.anchorNode!==r.node||e.anchorOffset!==r.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(r.node,r.offset),e.removeAllRanges(),a>s?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,li=null,A_=null,dc=null,P_=!1;function wS(e,t,n){var s=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;P_||li==null||li!==_f(s)||(s=li,"selectionStart"in s&&FE(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),dc&&Uc(dc,s)||(dc=s,s=Tf(A_,"onSelect"),0di||(e.current=L_[di],L_[di]=null,di--)}function Et(e,t){di++,L_[di]=e.current,e.current=t}var ka={},Pn=ja(ka),Zn=ja(!1),bo=ka;function Vi(e,t){var n=e.type.contextTypes;if(!n)return ka;var s=e.stateNode;if(s&&s.__reactInternalMemoizedUnmaskedChildContext===t)return s.__reactInternalMemoizedMaskedChildContext;var r={},a;for(a in n)r[a]=t[a];return s&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=r),r}function es(e){return e=e.childContextTypes,e!=null}function If(){St(Zn),St(Pn)}function NS(e,t,n){if(Pn.current!==ka)throw Error(ge(168));Et(Pn,t),Et(Zn,n)}function OI(e,t,n){var s=e.stateNode;if(t=t.childContextTypes,typeof s.getChildContext!="function")return n;s=s.getChildContext();for(var r in s)if(!(r in t))throw Error(ge(108,JL(e)||"Unknown",r));return Lt({},n,s)}function Af(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ka,bo=Pn.current,Et(Pn,e),Et(Zn,Zn.current),!0}function RS(e,t,n){var s=e.stateNode;if(!s)throw Error(ge(169));n?(e=OI(e,t,bo),s.__reactInternalMemoizedMergedChildContext=e,St(Zn),St(Pn),Et(Pn,e)):St(Zn),Et(Zn,n)}var jr=null,$p=!1,ph=!1;function kI(e){jr===null?jr=[e]:jr.push(e)}function hD(e){$p=!0,kI(e)}function Ba(){if(!ph&&jr!==null){ph=!0;var e=0,t=pt;try{var n=jr;for(pt=1;e>=o,r-=o,Br=1<<32-Js(t)+r|n<C?(T=I,I=null):T=I.sibling;var P=m(v,I,y[C],S);if(P===null){I===null&&(I=T);break}e&&I&&P.alternate===null&&t(v,I),_=a(P,_,C),x===null?w=P:x.sibling=P,x=P,I=T}if(C===y.length)return n(v,I),It&&za(v,C),w;if(I===null){for(;CC?(T=I,I=null):T=I.sibling;var A=m(v,I,P.value,S);if(A===null){I===null&&(I=T);break}e&&I&&A.alternate===null&&t(v,I),_=a(A,_,C),x===null?w=A:x.sibling=A,x=A,I=T}if(P.done)return n(v,I),It&&za(v,C),w;if(I===null){for(;!P.done;C++,P=y.next())P=f(v,P.value,S),P!==null&&(_=a(P,_,C),x===null?w=P:x.sibling=P,x=P);return It&&za(v,C),w}for(I=s(v,I);!P.done;C++,P=y.next())P=h(I,v,C,P.value,S),P!==null&&(e&&P.alternate!==null&&I.delete(P.key===null?C:P.key),_=a(P,_,C),x===null?w=P:x.sibling=P,x=P);return e&&I.forEach(function(O){return t(v,O)}),It&&za(v,C),w}function b(v,_,y,S){if(typeof y=="object"&&y!==null&&y.type===oi&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case Yu:e:{for(var w=y.key,x=_;x!==null;){if(x.key===w){if(w=y.type,w===oi){if(x.tag===7){n(v,x.sibling),_=r(x,y.props.children),_.return=v,v=_;break e}}else if(x.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===ia&&DS(w)===x.type){n(v,x.sibling),_=r(x,y.props),_.ref=wl(v,x,y),_.return=v,v=_;break e}n(v,x);break}else t(v,x);x=x.sibling}y.type===oi?(_=po(y.props.children,v.mode,S,y.key),_.return=v,v=_):(S=Qd(y.type,y.key,y.props,null,v.mode,S),S.ref=wl(v,_,y),S.return=v,v=S)}return o(v);case ai:e:{for(x=y.key;_!==null;){if(_.key===x)if(_.tag===4&&_.stateNode.containerInfo===y.containerInfo&&_.stateNode.implementation===y.implementation){n(v,_.sibling),_=r(_,y.children||[]),_.return=v,v=_;break e}else{n(v,_);break}else t(v,_);_=_.sibling}_=bh(y,v.mode,S),_.return=v,v=_}return o(v);case ia:return x=y._init,b(v,_,x(y._payload),S)}if(Kl(y))return g(v,_,y,S);if(yl(y))return E(v,_,y,S);rd(v,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,_!==null&&_.tag===6?(n(v,_.sibling),_=r(_,y),_.return=v,v=_):(n(v,_),_=yh(y,v.mode,S),_.return=v,v=_),o(v)):n(v,_)}return b}var Wi=MI(!0),DI=MI(!1),Of=ja(null),kf=null,mi=null,VE=null;function HE(){VE=mi=kf=null}function WE(e){var t=Of.current;St(Of),e._currentValue=t}function j_(e,t,n){for(;e!==null;){var s=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,s!==null&&(s.childLanes|=t)):s!==null&&(s.childLanes&t)!==t&&(s.childLanes|=t),e===n)break;e=e.return}}function xi(e,t){kf=e,VE=mi=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(qn=!0),e.firstContext=null)}function js(e){var t=e._currentValue;if(VE!==e)if(e={context:e,memoizedValue:t,next:null},mi===null){if(kf===null)throw Error(ge(308));mi=e,kf.dependencies={lanes:0,firstContext:e}}else mi=mi.next=e;return t}var ro=null;function zE(e){ro===null?ro=[e]:ro.push(e)}function jI(e,t,n,s){var r=t.interleaved;return r===null?(n.next=n,zE(t)):(n.next=r.next,r.next=n),t.interleaved=n,qr(e,s)}function qr(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var la=!1;function YE(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function BI(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Gr(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ca(e,t,n){var s=e.updateQueue;if(s===null)return null;if(s=s.shared,ft&2){var r=s.pending;return r===null?t.next=t:(t.next=r.next,r.next=t),s.pending=t,qr(e,n)}return r=s.interleaved,r===null?(t.next=t,zE(s)):(t.next=r.next,r.next=t),s.interleaved=t,qr(e,n)}function Hd(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var s=t.lanes;s&=e.pendingLanes,n|=s,t.lanes=n,NE(e,n)}}function jS(e,t){var n=e.updateQueue,s=e.alternate;if(s!==null&&(s=s.updateQueue,n===s)){var r=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};a===null?r=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?r=a=t:a=a.next=t}else r=a=t;n={baseState:s.baseState,firstBaseUpdate:r,lastBaseUpdate:a,shared:s.shared,effects:s.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Nf(e,t,n,s){var r=e.updateQueue;la=!1;var a=r.firstBaseUpdate,o=r.lastBaseUpdate,i=r.shared.pending;if(i!==null){r.shared.pending=null;var l=i,c=l.next;l.next=null,o===null?a=c:o.next=c,o=l;var u=e.alternate;u!==null&&(u=u.updateQueue,i=u.lastBaseUpdate,i!==o&&(i===null?u.firstBaseUpdate=c:i.next=c,u.lastBaseUpdate=l))}if(a!==null){var f=r.baseState;o=0,u=c=l=null,i=a;do{var m=i.lane,h=i.eventTime;if((s&m)===m){u!==null&&(u=u.next={eventTime:h,lane:0,tag:i.tag,payload:i.payload,callback:i.callback,next:null});e:{var g=e,E=i;switch(m=t,h=n,E.tag){case 1:if(g=E.payload,typeof g=="function"){f=g.call(h,f,m);break e}f=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=E.payload,m=typeof g=="function"?g.call(h,f,m):g,m==null)break e;f=Lt({},f,m);break e;case 2:la=!0}}i.callback!==null&&i.lane!==0&&(e.flags|=64,m=r.effects,m===null?r.effects=[i]:m.push(i))}else h={eventTime:h,lane:m,tag:i.tag,payload:i.payload,callback:i.callback,next:null},u===null?(c=u=h,l=f):u=u.next=h,o|=m;if(i=i.next,i===null){if(i=r.shared.pending,i===null)break;m=i,i=m.next,m.next=null,r.lastBaseUpdate=m,r.shared.pending=null}}while(!0);if(u===null&&(l=f),r.baseState=l,r.firstBaseUpdate=c,r.lastBaseUpdate=u,t=r.shared.interleaved,t!==null){r=t;do o|=r.lane,r=r.next;while(r!==t)}else a===null&&(r.shared.lanes=0);To|=o,e.lanes=o,e.memoizedState=f}}function BS(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var s=hh.transition;hh.transition={};try{e(!1),t()}finally{pt=n,hh.transition=s}}function tA(){return Bs().memoizedState}function ED(e,t,n){var s=wa(e);if(n={lane:s,action:n,hasEagerState:!1,eagerState:null,next:null},nA(e))sA(t,n);else if(n=jI(e,t,n,s),n!==null){var r=Dn();Zs(n,e,s,r),rA(n,t,s)}}function yD(e,t,n){var s=wa(e),r={lane:s,action:n,hasEagerState:!1,eagerState:null,next:null};if(nA(e))sA(t,r);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,i=a(o,n);if(r.hasEagerState=!0,r.eagerState=i,tr(i,o)){var l=t.interleaved;l===null?(r.next=r,zE(t)):(r.next=l.next,l.next=r),t.interleaved=r;return}}catch{}finally{}n=jI(e,t,r,s),n!==null&&(r=Dn(),Zs(n,e,s,r),rA(n,t,s))}}function nA(e){var t=e.alternate;return e===Rt||t!==null&&t===Rt}function sA(e,t){fc=Lf=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function rA(e,t,n){if(n&4194240){var s=t.lanes;s&=e.pendingLanes,n|=s,t.lanes=n,NE(e,n)}}var Mf={readContext:js,useCallback:vn,useContext:vn,useEffect:vn,useImperativeHandle:vn,useInsertionEffect:vn,useLayoutEffect:vn,useMemo:vn,useReducer:vn,useRef:vn,useState:vn,useDebugValue:vn,useDeferredValue:vn,useTransition:vn,useMutableSource:vn,useSyncExternalStore:vn,useId:vn,unstable_isNewReconciler:!1},bD={readContext:js,useCallback:function(e,t){return mr().memoizedState=[e,t===void 0?null:t],e},useContext:js,useEffect:US,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,zd(4194308,4,QI.bind(null,t,e),n)},useLayoutEffect:function(e,t){return zd(4194308,4,e,t)},useInsertionEffect:function(e,t){return zd(4,2,e,t)},useMemo:function(e,t){var n=mr();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var s=mr();return t=n!==void 0?n(t):t,s.memoizedState=s.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},s.queue=e,e=e.dispatch=ED.bind(null,Rt,e),[s.memoizedState,e]},useRef:function(e){var t=mr();return e={current:e},t.memoizedState=e},useState:FS,useDebugValue:ty,useDeferredValue:function(e){return mr().memoizedState=e},useTransition:function(){var e=FS(!1),t=e[0];return e=vD.bind(null,e[1]),mr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var s=Rt,r=mr();if(It){if(n===void 0)throw Error(ge(407));n=n()}else{if(n=t(),on===null)throw Error(ge(349));Co&30||GI(s,t,n)}r.memoizedState=n;var a={value:n,getSnapshot:t};return r.queue=a,US(HI.bind(null,s,a,e),[e]),s.flags|=2048,qc(9,VI.bind(null,s,a,n,t),void 0,null),n},useId:function(){var e=mr(),t=on.identifierPrefix;if(It){var n=Fr,s=Br;n=(s&~(1<<32-Js(s)-1)).toString(32)+n,t=":"+t+"R"+n,n=zc++,0<\/script>",e=e.removeChild(e.firstChild)):typeof s.is=="string"?e=o.createElement(n,{is:s.is}):(e=o.createElement(n),n==="select"&&(o=e,s.multiple?o.multiple=!0:s.size&&(o.size=s.size))):e=o.createElementNS(e,n),e[_r]=t,e[Vc]=s,mA(e,t,!1,!1),t.stateNode=e;e:{switch(o=E_(n,s),n){case"dialog":yt("cancel",e),yt("close",e),r=s;break;case"iframe":case"object":case"embed":yt("load",e),r=s;break;case"video":case"audio":for(r=0;rqi&&(t.flags|=128,s=!0,Il(a,!1),t.lanes=4194304)}else{if(!s)if(e=Rf(o),e!==null){if(t.flags|=128,s=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Il(a,!0),a.tail===null&&a.tailMode==="hidden"&&!o.alternate&&!It)return En(t),null}else 2*Ht()-a.renderingStartTime>qi&&n!==1073741824&&(t.flags|=128,s=!0,Il(a,!1),t.lanes=4194304);a.isBackwards?(o.sibling=t.child,t.child=o):(n=a.last,n!==null?n.sibling=o:t.child=o,a.last=o)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Ht(),t.sibling=null,n=kt.current,Et(kt,s?n&1|2:n&1),t):(En(t),null);case 22:case 23:return iy(),s=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==s&&(t.flags|=8192),s&&t.mode&1?is&1073741824&&(En(t),t.subtreeFlags&6&&(t.flags|=8192)):En(t),null;case 24:return null;case 25:return null}throw Error(ge(156,t.tag))}function xD(e,t){switch($E(t),t.tag){case 1:return es(t.type)&&If(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return zi(),St(Zn),St(Pn),QE(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return KE(t),null;case 13:if(St(kt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(ge(340));Hi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return St(kt),null;case 4:return zi(),null;case 10:return WE(t.type._context),null;case 22:case 23:return iy(),null;case 24:return null;default:return null}}var od=!1,Cn=!1,OD=typeof WeakSet=="function"?WeakSet:Set,xe=null;function hi(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(s){Ft(e,t,s)}else n.current=null}function z_(e,t,n){try{n()}catch(s){Ft(e,t,s)}}var XS=!1;function kD(e,t){if(x_=Sf,e=bI(),FE(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var s=n.getSelection&&n.getSelection();if(s&&s.rangeCount!==0){n=s.anchorNode;var r=s.anchorOffset,a=s.focusNode;s=s.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break e}var o=0,i=-1,l=-1,c=0,u=0,f=e,m=null;t:for(;;){for(var h;f!==n||r!==0&&f.nodeType!==3||(i=o+r),f!==a||s!==0&&f.nodeType!==3||(l=o+s),f.nodeType===3&&(o+=f.nodeValue.length),(h=f.firstChild)!==null;)m=f,f=h;for(;;){if(f===e)break t;if(m===n&&++c===r&&(i=o),m===a&&++u===s&&(l=o),(h=f.nextSibling)!==null)break;f=m,m=f.parentNode}f=h}n=i===-1||l===-1?null:{start:i,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(O_={focusedElem:e,selectionRange:n},Sf=!1,xe=t;xe!==null;)if(t=xe,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,xe=e;else for(;xe!==null;){t=xe;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var E=g.memoizedProps,b=g.memoizedState,v=t.stateNode,_=v.getSnapshotBeforeUpdate(t.elementType===t.type?E:zs(t.type,E),b);v.__reactInternalSnapshotBeforeUpdate=_}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(ge(163))}}catch(S){Ft(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,xe=e;break}xe=t.return}return g=XS,XS=!1,g}function pc(e,t,n){var s=t.updateQueue;if(s=s!==null?s.lastEffect:null,s!==null){var r=s=s.next;do{if((r.tag&e)===e){var a=r.destroy;r.destroy=void 0,a!==void 0&&z_(t,n,a)}r=r.next}while(r!==s)}}function Hp(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var s=n.create;n.destroy=s()}n=n.next}while(n!==t)}}function Y_(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function _A(e){var t=e.alternate;t!==null&&(e.alternate=null,_A(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[_r],delete t[Vc],delete t[R_],delete t[pD],delete t[mD])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function vA(e){return e.tag===5||e.tag===3||e.tag===4}function JS(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||vA(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function q_(e,t,n){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=wf));else if(s!==4&&(e=e.child,e!==null))for(q_(e,t,n),e=e.sibling;e!==null;)q_(e,t,n),e=e.sibling}function K_(e,t,n){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(s!==4&&(e=e.child,e!==null))for(K_(e,t,n),e=e.sibling;e!==null;)K_(e,t,n),e=e.sibling}var pn=null,Ys=!1;function ta(e,t,n){for(n=n.child;n!==null;)EA(e,t,n),n=n.sibling}function EA(e,t,n){if(br&&typeof br.onCommitFiberUnmount=="function")try{br.onCommitFiberUnmount(Dp,n)}catch{}switch(n.tag){case 5:Cn||hi(n,t);case 6:var s=pn,r=Ys;pn=null,ta(e,t,n),pn=s,Ys=r,pn!==null&&(Ys?(e=pn,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):pn.removeChild(n.stateNode));break;case 18:pn!==null&&(Ys?(e=pn,n=n.stateNode,e.nodeType===8?fh(e.parentNode,n):e.nodeType===1&&fh(e,n),Bc(e)):fh(pn,n.stateNode));break;case 4:s=pn,r=Ys,pn=n.stateNode.containerInfo,Ys=!0,ta(e,t,n),pn=s,Ys=r;break;case 0:case 11:case 14:case 15:if(!Cn&&(s=n.updateQueue,s!==null&&(s=s.lastEffect,s!==null))){r=s=s.next;do{var a=r,o=a.destroy;a=a.tag,o!==void 0&&(a&2||a&4)&&z_(n,t,o),r=r.next}while(r!==s)}ta(e,t,n);break;case 1:if(!Cn&&(hi(n,t),s=n.stateNode,typeof s.componentWillUnmount=="function"))try{s.props=n.memoizedProps,s.state=n.memoizedState,s.componentWillUnmount()}catch(i){Ft(n,t,i)}ta(e,t,n);break;case 21:ta(e,t,n);break;case 22:n.mode&1?(Cn=(s=Cn)||n.memoizedState!==null,ta(e,t,n),Cn=s):ta(e,t,n);break;default:ta(e,t,n)}}function ZS(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new OD),t.forEach(function(s){var r=UD.bind(null,e,s);n.has(s)||(n.add(s),s.then(r,r))})}}function Vs(e,t){var n=t.deletions;if(n!==null)for(var s=0;sr&&(r=o),s&=~a}if(s=r,s=Ht()-s,s=(120>s?120:480>s?480:1080>s?1080:1920>s?1920:3e3>s?3e3:4320>s?4320:1960*RD(s/1960))-s,10e?16:e,ma===null)var s=!1;else{if(e=ma,ma=null,Bf=0,ft&6)throw Error(ge(331));var r=ft;for(ft|=4,xe=e.current;xe!==null;){var a=xe,o=a.child;if(xe.flags&16){var i=a.deletions;if(i!==null){for(var l=0;lHt()-ay?fo(e,0):ry|=n),ts(e,t)}function AA(e,t){t===0&&(e.mode&1?(t=Xu,Xu<<=1,!(Xu&130023424)&&(Xu=4194304)):t=1);var n=Dn();e=qr(e,t),e!==null&&(bu(e,t,n),ts(e,n))}function FD(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),AA(e,n)}function UD(e,t){var n=0;switch(e.tag){case 13:var s=e.stateNode,r=e.memoizedState;r!==null&&(n=r.retryLane);break;case 19:s=e.stateNode;break;default:throw Error(ge(314))}s!==null&&s.delete(t),AA(e,n)}var PA;PA=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Zn.current)qn=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return qn=!1,AD(e,t,n);qn=!!(e.flags&131072)}else qn=!1,It&&t.flags&1048576&&NI(t,xf,t.index);switch(t.lanes=0,t.tag){case 2:var s=t.type;Yd(e,t),e=t.pendingProps;var r=Vi(t,Pn.current);xi(t,n),r=JE(null,t,s,e,r,n);var a=ZE();return t.flags|=1,typeof r=="object"&&r!==null&&typeof r.render=="function"&&r.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,es(s)?(a=!0,Af(t)):a=!1,t.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,YE(t),r.updater=Vp,t.stateNode=r,r._reactInternals=t,F_(t,s,e,n),t=G_(null,t,s,!0,a,n)):(t.tag=0,It&&a&&UE(t),Nn(null,t,r,n),t=t.child),t;case 16:s=t.elementType;e:{switch(Yd(e,t),e=t.pendingProps,r=s._init,s=r(s._payload),t.type=s,r=t.tag=GD(s),e=zs(s,e),r){case 0:t=$_(null,t,s,e,n);break e;case 1:t=qS(null,t,s,e,n);break e;case 11:t=zS(null,t,s,e,n);break e;case 14:t=YS(null,t,s,zs(s.type,e),n);break e}throw Error(ge(306,s,""))}return t;case 0:return s=t.type,r=t.pendingProps,r=t.elementType===s?r:zs(s,r),$_(e,t,s,r,n);case 1:return s=t.type,r=t.pendingProps,r=t.elementType===s?r:zs(s,r),qS(e,t,s,r,n);case 3:e:{if(dA(t),e===null)throw Error(ge(387));s=t.pendingProps,a=t.memoizedState,r=a.element,BI(e,t),Nf(t,s,null,n);var o=t.memoizedState;if(s=o.element,a.isDehydrated)if(a={element:s,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){r=Yi(Error(ge(423)),t),t=KS(e,t,s,n,r);break e}else if(s!==r){r=Yi(Error(ge(424)),t),t=KS(e,t,s,n,r);break e}else for(fs=Sa(t.stateNode.containerInfo.firstChild),_s=t,It=!0,Ks=null,n=DI(t,null,s,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Hi(),s===r){t=Kr(e,t,n);break e}Nn(e,t,s,n)}t=t.child}return t;case 5:return FI(t),e===null&&D_(t),s=t.type,r=t.pendingProps,a=e!==null?e.memoizedProps:null,o=r.children,k_(s,r)?o=null:a!==null&&k_(s,a)&&(t.flags|=32),uA(e,t),Nn(e,t,o,n),t.child;case 6:return e===null&&D_(t),null;case 13:return fA(e,t,n);case 4:return qE(t,t.stateNode.containerInfo),s=t.pendingProps,e===null?t.child=Wi(t,null,s,n):Nn(e,t,s,n),t.child;case 11:return s=t.type,r=t.pendingProps,r=t.elementType===s?r:zs(s,r),zS(e,t,s,r,n);case 7:return Nn(e,t,t.pendingProps,n),t.child;case 8:return Nn(e,t,t.pendingProps.children,n),t.child;case 12:return Nn(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(s=t.type._context,r=t.pendingProps,a=t.memoizedProps,o=r.value,Et(Of,s._currentValue),s._currentValue=o,a!==null)if(tr(a.value,o)){if(a.children===r.children&&!Zn.current){t=Kr(e,t,n);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var i=a.dependencies;if(i!==null){o=a.child;for(var l=i.firstContext;l!==null;){if(l.context===s){if(a.tag===1){l=Gr(-1,n&-n),l.tag=2;var c=a.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),j_(a.return,n,t),i.lanes|=n;break}l=l.next}}else if(a.tag===10)o=a.type===t.type?null:a.child;else if(a.tag===18){if(o=a.return,o===null)throw Error(ge(341));o.lanes|=n,i=o.alternate,i!==null&&(i.lanes|=n),j_(o,n,t),o=a.sibling}else o=a.child;if(o!==null)o.return=a;else for(o=a;o!==null;){if(o===t){o=null;break}if(a=o.sibling,a!==null){a.return=o.return,o=a;break}o=o.return}a=o}Nn(e,t,r.children,n),t=t.child}return t;case 9:return r=t.type,s=t.pendingProps.children,xi(t,n),r=js(r),s=s(r),t.flags|=1,Nn(e,t,s,n),t.child;case 14:return s=t.type,r=zs(s,t.pendingProps),r=zs(s.type,r),YS(e,t,s,r,n);case 15:return lA(e,t,t.type,t.pendingProps,n);case 17:return s=t.type,r=t.pendingProps,r=t.elementType===s?r:zs(s,r),Yd(e,t),t.tag=1,es(s)?(e=!0,Af(t)):e=!1,xi(t,n),aA(t,s,r),F_(t,s,r,n),G_(null,t,s,!0,e,n);case 19:return pA(e,t,n);case 22:return cA(e,t,n)}throw Error(ge(156,t.tag))};function xA(e,t){return nI(e,t)}function $D(e,t,n,s){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ms(e,t,n,s){return new $D(e,t,n,s)}function cy(e){return e=e.prototype,!(!e||!e.isReactComponent)}function GD(e){if(typeof e=="function")return cy(e)?1:0;if(e!=null){if(e=e.$$typeof,e===PE)return 11;if(e===xE)return 14}return 2}function Ia(e,t){var n=e.alternate;return n===null?(n=Ms(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Qd(e,t,n,s,r,a){var o=2;if(s=e,typeof e=="function")cy(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case oi:return po(n.children,r,a,t);case AE:o=8,r|=8;break;case c_:return e=Ms(12,n,t,r|2),e.elementType=c_,e.lanes=a,e;case u_:return e=Ms(13,n,t,r),e.elementType=u_,e.lanes=a,e;case d_:return e=Ms(19,n,t,r),e.elementType=d_,e.lanes=a,e;case F1:return zp(n,r,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case j1:o=10;break e;case B1:o=9;break e;case PE:o=11;break e;case xE:o=14;break e;case ia:o=16,s=null;break e}throw Error(ge(130,e==null?e:typeof e,""))}return t=Ms(o,n,t,r),t.elementType=e,t.type=s,t.lanes=a,t}function po(e,t,n,s){return e=Ms(7,e,s,t),e.lanes=n,e}function zp(e,t,n,s){return e=Ms(22,e,s,t),e.elementType=F1,e.lanes=n,e.stateNode={isHidden:!1},e}function yh(e,t,n){return e=Ms(6,e,null,t),e.lanes=n,e}function bh(e,t,n){return t=Ms(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function VD(e,t,n,s,r){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=th(0),this.expirationTimes=th(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=th(0),this.identifierPrefix=s,this.onRecoverableError=r,this.mutableSourceEagerHydrationData=null}function uy(e,t,n,s,r,a,o,i,l){return e=new VD(e,t,n,i,l),t===1?(t=1,a===!0&&(t|=8)):t=0,a=Ms(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:s,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},YE(a),e}function HD(e,t,n){var s=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(RA)}catch(e){console.error(e)}}RA(),R1.exports=bs;var Do=R1.exports;const hne=jn(Do);var i0=Do;i_.createRoot=i0.createRoot,i_.hydrateRoot=i0.hydrateRoot;function ev(e,t){return ev=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,s){return n.__proto__=s,n},ev(e,t)}function wr(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ev(e,t)}var LA={exports:{}},KD="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",QD=KD,XD=QD;function MA(){}function DA(){}DA.resetWarningCache=MA;var JD=function(){function e(s,r,a,o,i,l){if(l!==XD){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:DA,resetWarningCache:MA};return n.PropTypes=n,n};LA.exports=JD();var ZD=LA.exports;const ot=jn(ZD);function _n(){return _n=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0;u--){var f=s[u];f==="."?Sh(s,u):f===".."?(Sh(s,u),c++):c&&(Sh(s,u),c--)}if(!o)for(;c--;c)s.unshift("..");o&&s[0]!==""&&(!s[0]||!cd(s[0]))&&s.unshift("");var m=s.join("/");return i&&m.substr(-1)!=="/"&&(m+="/"),m}function l0(e){return e.valueOf?e.valueOf():Object.prototype.valueOf.call(e)}function Xd(e,t){if(e===t)return!0;if(e==null||t==null)return!1;if(Array.isArray(e))return Array.isArray(t)&&e.length===t.length&&e.every(function(r,a){return Xd(r,t[a])});if(typeof e=="object"||typeof t=="object"){var n=l0(e),s=l0(t);return n!==e||s!==t?Xd(n,s):Object.keys(Object.assign({},e,t)).every(function(r){return Xd(e[r],t[r])})}return!1}var tj="Invariant failed";function Fa(e,t){throw new Error(tj)}function gc(e){return e.charAt(0)==="/"?e:"/"+e}function c0(e){return e.charAt(0)==="/"?e.substr(1):e}function nj(e,t){return e.toLowerCase().indexOf(t.toLowerCase())===0&&"/?#".indexOf(e.charAt(t.length))!==-1}function jA(e,t){return nj(e,t)?e.substr(t.length):e}function BA(e){return e.charAt(e.length-1)==="/"?e.slice(0,-1):e}function sj(e){var t=e||"/",n="",s="",r=t.indexOf("#");r!==-1&&(s=t.substr(r),t=t.substr(0,r));var a=t.indexOf("?");return a!==-1&&(n=t.substr(a),t=t.substr(0,a)),{pathname:t,search:n==="?"?"":n,hash:s==="#"?"":s}}function Gn(e){var t=e.pathname,n=e.search,s=e.hash,r=t||"/";return n&&n!=="?"&&(r+=n.charAt(0)==="?"?n:"?"+n),s&&s!=="#"&&(r+=s.charAt(0)==="#"?s:"#"+s),r}function Mn(e,t,n,s){var r;typeof e=="string"?(r=sj(e),r.state=t):(r=_n({},e),r.pathname===void 0&&(r.pathname=""),r.search?r.search.charAt(0)!=="?"&&(r.search="?"+r.search):r.search="",r.hash?r.hash.charAt(0)!=="#"&&(r.hash="#"+r.hash):r.hash="",t!==void 0&&r.state===void 0&&(r.state=t));try{r.pathname=decodeURI(r.pathname)}catch(a){throw a instanceof URIError?new URIError('Pathname "'+r.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):a}return n&&(r.key=n),s?r.pathname?r.pathname.charAt(0)!=="/"&&(r.pathname=ej(r.pathname,s.pathname)):r.pathname=s.pathname:r.pathname||(r.pathname="/"),r}function rj(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&Xd(e.state,t.state)}function my(){var e=null;function t(o){return e=o,function(){e===o&&(e=null)}}function n(o,i,l,c){if(e!=null){var u=typeof e=="function"?e(o,i):e;typeof u=="string"?typeof l=="function"?l(u,c):c(!0):c(u!==!1)}else c(!0)}var s=[];function r(o){var i=!0;function l(){i&&o.apply(void 0,arguments)}return s.push(l),function(){i=!1,s=s.filter(function(c){return c!==l})}}function a(){for(var o=arguments.length,i=new Array(o),l=0;lk?D.splice(k,D.length-k,A):D.push(A),u({action:P,location:A,index:k,entries:D})}})}function b(C,T){var P="REPLACE",A=Mn(C,T,f(),I.location);c.confirmTransitionTo(A,P,n,function(O){O&&(I.entries[I.index]=A,u({action:P,location:A}))})}function v(C){var T=m0(I.index+C,0,I.entries.length-1),P="POP",A=I.entries[T];c.confirmTransitionTo(A,P,n,function(O){O?u({action:P,location:A,index:T}):u()})}function _(){v(-1)}function y(){v(1)}function S(C){var T=I.index+C;return T>=0&&T-1?"[^"+oo(e)+"]+?":oo(t)+"|(?:(?!"+oo(t)+")[^"+oo(e)+"])+?"}function _j(e,t){return GA(hy(e,t),t)}function vj(e){return encodeURI(e).replace(/[\/?#]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}function Ej(e){return encodeURI(e).replace(/[?#]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}function GA(e,t){for(var n=new Array(e.length),s=0;s"u"&&(Ki=Ty);function sB(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}var rB=Ki(function(e,t){var n=e.innerRef,s=e.navigate,r=e.onClick,a=im(e,["innerRef","navigate","onClick"]),o=a.target,i=_n({},a,{onClick:function(c){try{r&&r(c)}catch(u){throw c.preventDefault(),u}!c.defaultPrevented&&c.button===0&&(!o||o==="_self")&&!sB(c)&&(c.preventDefault(),s())}});return Ty!==Ki?i.ref=t||n:i.ref=n,he.createElement("a",i)}),ZA=Ki(function(e,t){var n=e.component,s=n===void 0?rB:n,r=e.replace,a=e.to,o=e.innerRef,i=im(e,["component","replace","to","innerRef"]);return he.createElement(Ir.Consumer,null,function(l){l||Fa();var c=l.history,u=sv(nv(a,l.location),l.location),f=u?c.createHref(u):"",m=_n({},i,{href:f,navigate:function(){var g=nv(a,l.location),E=Gn(l.location)===Gn(sv(g)),b=r||E?c.replace:c.push;b(g)}});return Ty!==Ki?m.ref=t||o:m.innerRef=o,he.createElement(s,m)})}),eP=function(t){return t},Gf=he.forwardRef;typeof Gf>"u"&&(Gf=eP);function aB(){for(var e=arguments.length,t=new Array(e),n=0;n=0||(r[n]=e[n]);return r}var Ve={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title",FRAGMENT:"Symbol(react.fragment)"},gB={rel:["amphtml","canonical","alternate"]},_B={type:["application/ld+json"]},vB={charset:"",name:["robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]},I0=Object.keys(Ve).map(function(e){return Ve[e]}),Vf={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},EB=Object.keys(Vf).reduce(function(e,t){return e[Vf[t]]=t,e},{}),ki=function(e,t){for(var n=e.length-1;n>=0;n-=1){var s=e[n];if(Object.prototype.hasOwnProperty.call(s,t))return s[t]}return null},yB=function(e){var t=ki(e,Ve.TITLE),n=ki(e,"titleTemplate");if(Array.isArray(t)&&(t=t.join("")),n&&t)return n.replace(/%s/g,function(){return t});var s=ki(e,"defaultTitle");return t||s||void 0},bB=function(e){return ki(e,"onChangeClientState")||function(){}},Ah=function(e,t){return t.filter(function(n){return n[e]!==void 0}).map(function(n){return n[e]}).reduce(function(n,s){return Gt({},n,s)},{})},SB=function(e,t){return t.filter(function(n){return n[Ve.BASE]!==void 0}).map(function(n){return n[Ve.BASE]}).reverse().reduce(function(n,s){if(!n.length)for(var r=Object.keys(s),a=0;a/g,">").replace(/"/g,""").replace(/'/g,"'")},P0=function(e){return Object.keys(e).reduce(function(t,n){var s=e[n]!==void 0?n+'="'+e[n]+'"':""+n;return t?t+" "+s:s},"")},x0=function(e,t){return t===void 0&&(t={}),Object.keys(e).reduce(function(n,s){return n[Vf[s]||s]=e[s],n},t)},Zd=function(e,t){return t.map(function(n,s){var r,a=((r={key:s})["data-rh"]=!0,r);return Object.keys(n).forEach(function(o){var i=Vf[o]||o;i==="innerHTML"||i==="cssText"?a.dangerouslySetInnerHTML={__html:n.innerHTML||n.cssText}:a[i]=n[o]}),he.createElement(e,a)})},ws=function(e,t,n){switch(e){case Ve.TITLE:return{toComponent:function(){return r=t.titleAttributes,(a={key:s=t.title})["data-rh"]=!0,o=x0(r,a),[he.createElement(Ve.TITLE,o,s)];var s,r,a,o},toString:function(){return function(s,r,a,o){var i=P0(a),l=nP(r);return i?"<"+s+' data-rh="true" '+i+">"+xh(l,o)+"":"<"+s+' data-rh="true">'+xh(l,o)+""}(e,t.title,t.titleAttributes,n)}};case"bodyAttributes":case"htmlAttributes":return{toComponent:function(){return x0(t)},toString:function(){return P0(t)}};default:return{toComponent:function(){return Zd(e,t)},toString:function(){return function(s,r,a){return r.reduce(function(o,i){var l=Object.keys(i).filter(function(f){return!(f==="innerHTML"||f==="cssText")}).reduce(function(f,m){var h=i[m]===void 0?m:m+'="'+xh(i[m],a)+'"';return f?f+" "+h:h},""),c=i.innerHTML||i.cssText||"",u=TB.indexOf(s)===-1;return o+"<"+s+' data-rh="true" '+l+(u?"/>":">"+c+"")},"")}(e,t,n)}}}},av=function(e){var t=e.baseTag,n=e.bodyAttributes,s=e.encode,r=e.htmlAttributes,a=e.noscriptTags,o=e.styleTags,i=e.title,l=i===void 0?"":i,c=e.titleAttributes,u=e.linkTags,f=e.metaTags,m=e.scriptTags,h={toComponent:function(){},toString:function(){return""}};if(e.prioritizeSeoTags){var g=function(E){var b=E.linkTags,v=E.scriptTags,_=E.encode,y=Ph(E.metaTags,vB),S=Ph(b,gB),w=Ph(v,_B);return{priorityMethods:{toComponent:function(){return[].concat(Zd(Ve.META,y.priority),Zd(Ve.LINK,S.priority),Zd(Ve.SCRIPT,w.priority))},toString:function(){return ws(Ve.META,y.priority,_)+" "+ws(Ve.LINK,S.priority,_)+" "+ws(Ve.SCRIPT,w.priority,_)}},metaTags:y.default,linkTags:S.default,scriptTags:w.default}}(e);h=g.priorityMethods,u=g.linkTags,f=g.metaTags,m=g.scriptTags}return{priority:h,base:ws(Ve.BASE,t,s),bodyAttributes:ws("bodyAttributes",n,s),htmlAttributes:ws("htmlAttributes",r,s),link:ws(Ve.LINK,u,s),meta:ws(Ve.META,f,s),noscript:ws(Ve.NOSCRIPT,a,s),script:ws(Ve.SCRIPT,m,s),style:ws(Ve.STYLE,o,s),title:ws(Ve.TITLE,{title:l,titleAttributes:c},s)}},ud=[],ov=function(e,t){var n=this;t===void 0&&(t=typeof document<"u"),this.instances=[],this.value={setHelmet:function(s){n.context.helmet=s},helmetInstances:{get:function(){return n.canUseDOM?ud:n.instances},add:function(s){(n.canUseDOM?ud:n.instances).push(s)},remove:function(s){var r=(n.canUseDOM?ud:n.instances).indexOf(s);(n.canUseDOM?ud:n.instances).splice(r,1)}}},this.context=e,this.canUseDOM=t,t||(e.helmet=av({baseTag:[],bodyAttributes:{},htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))},sP=he.createContext({}),wB=ot.shape({setHelmet:ot.func,helmetInstances:ot.shape({get:ot.func,add:ot.func,remove:ot.func})}),IB=typeof document<"u",_i=function(e){function t(n){var s;return(s=e.call(this,n)||this).helmetData=new ov(s.props.context,t.canUseDOM),s}return wy(t,e),t.prototype.render=function(){return he.createElement(sP.Provider,{value:this.helmetData.value},this.props.children)},t}(p.Component);_i.canUseDOM=IB,_i.propTypes={context:ot.shape({helmet:ot.shape()}),children:ot.node.isRequired},_i.defaultProps={context:{}},_i.displayName="HelmetProvider";var zo=function(e,t){var n,s=document.head||document.querySelector(Ve.HEAD),r=s.querySelectorAll(e+"[data-rh]"),a=[].slice.call(r),o=[];return t&&t.length&&t.forEach(function(i){var l=document.createElement(e);for(var c in i)Object.prototype.hasOwnProperty.call(i,c)&&(c==="innerHTML"?l.innerHTML=i.innerHTML:c==="cssText"?l.styleSheet?l.styleSheet.cssText=i.cssText:l.appendChild(document.createTextNode(i.cssText)):l.setAttribute(c,i[c]===void 0?"":i[c]));l.setAttribute("data-rh","true"),a.some(function(u,f){return n=f,l.isEqualNode(u)})?a.splice(n,1):o.push(l)}),a.forEach(function(i){return i.parentNode.removeChild(i)}),o.forEach(function(i){return s.appendChild(i)}),{oldTags:a,newTags:o}},Oh=function(e,t){var n=document.getElementsByTagName(e)[0];if(n){for(var s=n.getAttribute("data-rh"),r=s?s.split(","):[],a=[].concat(r),o=Object.keys(t),i=0;i=0;f-=1)n.removeAttribute(a[f]);r.length===a.length?n.removeAttribute("data-rh"):n.getAttribute("data-rh")!==o.join(",")&&n.setAttribute("data-rh",o.join(","))}},O0=function(e,t){var n=e.baseTag,s=e.htmlAttributes,r=e.linkTags,a=e.metaTags,o=e.noscriptTags,i=e.onChangeClientState,l=e.scriptTags,c=e.styleTags,u=e.title,f=e.titleAttributes;Oh(Ve.BODY,e.bodyAttributes),Oh(Ve.HTML,s),function(E,b){E!==void 0&&document.title!==E&&(document.title=nP(E)),Oh(Ve.TITLE,b)}(u,f);var m={baseTag:zo(Ve.BASE,n),linkTags:zo(Ve.LINK,r),metaTags:zo(Ve.META,a),noscriptTags:zo(Ve.NOSCRIPT,o),scriptTags:zo(Ve.SCRIPT,l),styleTags:zo(Ve.STYLE,c)},h={},g={};Object.keys(m).forEach(function(E){var b=m[E],v=b.newTags,_=b.oldTags;v.length&&(h[E]=v),_.length&&(g[E]=m[E].oldTags)}),t&&t(),i(e,h,g)},Ol=null,Hf=function(e){function t(){for(var s,r=arguments.length,a=new Array(r),o=0;o elements are self-closing and can not contain children. Refer to our API for more information.")}},n.flattenArrayTypeChildren=function(s){var r,a=s.child,o=s.arrayTypeChildren;return Gt({},o,((r={})[a.type]=[].concat(o[a.type]||[],[Gt({},s.newChildProps,this.mapNestedChildrenToProps(a,s.nestedChildren))]),r))},n.mapObjectTypeChildren=function(s){var r,a,o=s.child,i=s.newProps,l=s.newChildProps,c=s.nestedChildren;switch(o.type){case Ve.TITLE:return Gt({},i,((r={})[o.type]=c,r.titleAttributes=Gt({},l),r));case Ve.BODY:return Gt({},i,{bodyAttributes:Gt({},l)});case Ve.HTML:return Gt({},i,{htmlAttributes:Gt({},l)});default:return Gt({},i,((a={})[o.type]=Gt({},l),a))}},n.mapArrayTypeChildrenToProps=function(s,r){var a=Gt({},r);return Object.keys(s).forEach(function(o){var i;a=Gt({},a,((i={})[o]=s[o],i))}),a},n.warnOnInvalidChildren=function(s,r){return T0(I0.some(function(a){return s.type===a}),typeof s.type=="function"?"You may be attempting to nest components within each other, which is not allowed. Refer to our API for more information.":"Only elements types "+I0.join(", ")+" are allowed. Helmet does not support rendering <"+s.type+"> elements. Refer to our API for more information."),T0(!r||typeof r=="string"||Array.isArray(r)&&!r.some(function(a){return typeof a!="string"}),"Helmet expects a string as a child of <"+s.type+">. Did you forget to wrap your children in braces? ( <"+s.type+">{``} ) Refer to our API for more information."),!0},n.mapChildrenToProps=function(s,r){var a=this,o={};return he.Children.forEach(s,function(i){if(i&&i.props){var l=i.props,c=l.children,u=w0(l,AB),f=Object.keys(u).reduce(function(h,g){return h[EB[g]||g]=u[g],h},{}),m=i.type;switch(typeof m=="symbol"?m=m.toString():a.warnOnInvalidChildren(i,c),m){case Ve.FRAGMENT:r=a.mapChildrenToProps(c,r);break;case Ve.LINK:case Ve.META:case Ve.NOSCRIPT:case Ve.SCRIPT:case Ve.STYLE:o=a.flattenArrayTypeChildren({child:i,arrayTypeChildren:o,newChildProps:f,nestedChildren:c});break;default:r=a.mapObjectTypeChildren({child:i,newProps:r,newChildProps:f,nestedChildren:c})}}}),this.mapArrayTypeChildrenToProps(o,r)},n.render=function(){var s=this.props,r=s.children,a=w0(s,PB),o=Gt({},a),i=a.helmetData;return r&&(o=this.mapChildrenToProps(r,o)),!i||i instanceof ov||(i=new ov(i.context,i.instances)),i?he.createElement(Hf,Gt({},o,{context:i.value,helmetData:void 0})):he.createElement(sP.Consumer,null,function(l){return he.createElement(Hf,Gt({},o,{context:l}))})},t}(p.Component);ef.propTypes={base:ot.object,bodyAttributes:ot.object,children:ot.oneOfType([ot.arrayOf(ot.node),ot.node]),defaultTitle:ot.string,defer:ot.bool,encodeSpecialCharacters:ot.bool,htmlAttributes:ot.object,link:ot.arrayOf(ot.object),meta:ot.arrayOf(ot.object),noscript:ot.arrayOf(ot.object),onChangeClientState:ot.func,script:ot.arrayOf(ot.object),style:ot.arrayOf(ot.object),title:ot.string,titleAttributes:ot.object,titleTemplate:ot.string,prioritizeSeoTags:ot.bool,helmetData:ot.object},ef.defaultProps={defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1},ef.displayName="Helmet";const xB="Application crash",OB="Footer crash",kB="Betslip crash",NB="Main content crash",k0="Smart panel crash",RB="User profile crash",LB="Header crash",MB="Tracking crash",DB="Snow effect crash",jB="Live chat crash",BB="Help pages crash",FB="Popup crash",UB="Casino full game crash",$B="Cookies acceptance notification crash",GB="Identify Container crash";function VB(e){return typeof e=="function"&&e.toString().includes("import(")}const HB=e=>VB(e)?p.lazy(e):e,Ne=il(HB),WB="modulepreload",zB=function(e){return"/"+e},N0={},B=function(t,n,s){let r=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),i=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));r=Promise.allSettled(n.map(l=>{if(l=zB(l),l in N0)return;N0[l]=!0;const c=l.endsWith(".css"),u=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${u}`))return;const f=document.createElement("link");if(f.rel=c?"stylesheet":WB,c||(f.as="script"),f.crossOrigin="",f.href=l,i&&f.setAttribute("nonce",i),document.head.appendChild(f),c)return new Promise((m,h)=>{f.addEventListener("load",m),f.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${l}`)))})}))}function a(o){const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=o,window.dispatchEvent(i),!i.defaultPrevented)throw o}return r.then(o=>{for(const i of o||[])i.status==="rejected"&&a(i.reason);return t().catch(a)})},Or="/",Hn="/sports/:pageType?/:gamePageName?/:sportAlias?/:regionAlias?/:competitionId?/:competitionName?/:gameId?/:gameName?/:search?",Io="/virtual-sports/home/:extraCategory?/:categoryName?/:gameExternalId?/:type?",Iy="/esports/:pageType?/:sportAlias?/:gameId?",rP="/pmu",Wf="/pinnacle/:pageType?",aP="/wonderwheel",Ay="/achievement",oP="/vmania",Py="/crypto_exchange",iP="/wonder-wheel-harmony",lP="/scratch-and-win",cP="/daily-sprint",uP="/win-wheel",dP="/wonder-cards",mo="/casino/slots/:categoryId?/:categoryName?/:gameExternalId?/:gameName?/:type?",zf="/casino/tournaments/:tournamentId?/:tournamentName?/:gameExternalId?/:type?",xy="/casino/live-rtp",Oy="/casino/jackpot/:pageType?/:gameExternalId?/:type?",Qi="/casino/game-view/:externalId?/:gameName?",wu="/casino/generic/:categoryId/:categoryName/:extraCategory?/:gameExternalId?/:type?",fm="/lottery/generic/:categoryId/:categoryName/:extraCategory?/:gameExternalId?/:type?",Ao="/live-casino/home/:extraCategory?/:categoryName?/:gameExternalId?/:type?",Yf="/live-casino/tournaments/:tournamentId?/:selectedTab?/:gameExternalId?/:type?",qf="/tv-games/tournaments/:tournamentId?/:selectedTab?/:gameExternalId?/:type?",iv="/virtual-sports/tournaments/:tournamentId?/:selectedTab?/:gameExternalId?/:type?",Ni="/games/home/:extraCategory?/:categoryName?/:gameExternalId?/:type?",ky="/quiz",Ny="/subscriptions",Qc="/tv-games/home/:extraCategory?/:categoryName?/:gameExternalId?/:type?",fP="/payments-info/:selectedMethod?",pP="/promotions/:categorySlug?/:promotionId?/:promotionURLTitle?",YB="/widget/simple-slider",qB="/embed/simple-slider",KB="/widget/featured-games",mP="/embed/pageBuilder",QB="/skinning",Kf="/page/:pageType/:pageName/:pageId",hP="/help/:contentId/:slug?",XB="/widget/promoted-games",gP="/deposit-to-ride",_P="/iframe/:product?",pm="/int/:product/:productName",vP="/exchange-shop",Ry="/first-sports",EP="/world-cup/:page?/:id?",yP="/racing/:sportAlias?/:selectedTab?/:regionAlias?/:competitionId?/:gameId?",bP="/competition",SP="/pageBuilderPreview",JB="/cerebrum/:roomId",CP="/extrapage/:pageName",mm="/social/:pageType?/:pageName?/:pageId?/:pageItemId?";var Ge=(e=>(e.SPORTSBOOK="sport",e.CASINO="casino",e))(Ge||{}),Qf=(e=>(e.IFRAME="iframe",e.WIDGET="widget",e.EMBED="embed",e.ENTIRE="entire",e))(Qf||{});let N={app:{site_id:0,siteName:"",redirectToWeb:0,showFutureAndSpecialHorseRacing:!1,redirectToBonuses:{enabled:!1,repeatTime:0},pageBuilderLayouts:[],additionalRewardsConfigurations:{destinationUrl:"https://www.ortak.me/",globalNetworkDestinationUrl:"https://www.ortak.me/",yoRealEstateDestinationUrl:"http://yoestate.me/"},getFormsConfigFromCms:!1,whiteListedIframeUrls:[],netherLandLicense:!1,maintenanceURL:"https://bc-status.betconstruct.workers.dev",restrictedKYCActions:[],useCookies:!1,showCookiesNotification:!1,showEligibleForBonusInfo:!0,disableCryptoRelatedData:!1,enablePushNotificationPrompt:!0,walletConnect:{registrationFormConfig:[[[{name:"first_name",label:"First name",placeholder:"Enter your first name",type:"text",className:"",customAttrs:{},rules:{required:{message:"This field is required"},minLength:{value:2,message:"Too short"},maxLength:{value:50,message:"Too long"},pattern:{value:"^[^0-9\\[\\]\\\\`~!@#$%^&*()_+={};:<>|./?,\"'-\\s]+$",message:"message_for_valid_name"}}},{name:"last_name",label:"Last name",placeholder:"Enter your last name",type:"text",className:"",customAttrs:{},rules:{required:{message:"This field is required"},minLength:{value:2,message:"Too short"},maxLength:{value:50,message:"Too long"},pattern:{value:"^[^0-9\\[\\]\\\\`~!@#$%^&*()_+={};:<>|./?,\"'-]+$",message:"message_for_valid_last_name"}}},{name:"doc_number",label:"Passport Number",placeholder:"",type:"text",className:"",customAttrs:{},rules:{required:{message:"This field is required"},minLength:{value:2,message:"Too short"},maxLength:{value:25,message:"Too long"},pattern:{value:"^[A-Za-z\\Ѐ-\\ӿ0-9]*[0-9]+[A-Za-z\\Ѐ-\\ӿ0-9]*$",message:"field_validation_message"}}},{name:"email",label:"Email",placeholder:"Enter your email address",type:"email",className:"",customAttrs:{},rules:{required:{message:"This field is required"},minLength:{value:4,message:"Too short"},maxLength:{value:50,message:"Too long"},pattern:{value:'^(([^<>()\\[\\]\\\\.,;:\\s@"]+(\\.[^<>()\\[\\]\\\\.,;:\\s@"]+)*)|(".+"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$',message:"Please enter a valid email address"}}},{name:"currency_name",label:"Currency",type:"select",placeholder:"Choose currency",options:[],className:"",customAttrs:{},rules:{required:{message:"This field is required"}}},{name:"password",label:"Password",type:"password",placeholder:"Enter your password",className:"",customAttrs:{},rules:{required:{message:"This field is required"},minLength:{value:6,message:"This field should contain at least 6 characters"},maxLength:{value:50,message:"Too long"}}}]]],enabled:!1,deposit:!0,login:!0,registration:!0,connectToWallet:!0,showFastexWalletDownloadBanner:!1},showYoPhonePromoOnAuthPopups:!1,acceptTermsAndConditionsPopUp:!1,affiliatesRedirectionDomain:"https://betco.link",logo:{source:"/defaultLogo.png"},geoUrl:"https://geoapi2.bcapps.org",toHarmonyUrl:"https://www.to-harmony.com/?ref={domain}#playandearn",tracking:{},backToTopButton:{isFloating:!0,position:"center-bottom-btn"},liveChat:{enabled:!1},swarm:{socketUrl:"wss://eu-swarm-ws-re.betconstruct.com/",longPollingUrl:"https://eu-swarm-lp.betconstruct.com/"},jackpot:{enabled:!0,socketUrl:"wss://rgs-wss.betconstructapps.com/jackpot"},promotionalBonuses:{enabled:!0,showClaimableInfoBeforeDeposit:!1,showClaimableInfoInDepositPage:!1},socialSharingPlatforms:[],tabNavigation:{default:[{id:"tab-live",to:"/sports/live/event-view",path:"/sports/:pageType?/:gamePageName?/:sportAlias?/:regionAlias?/:competitionId?/:gameId?",displayName:"Live",className:"bc-i-live",permissions:{showTo:0,profileTypes:[],customProfileTypes:[],profileActionType:1}},{id:"tab-pre-match",to:"/sports/pre-match/event-view",path:"/sports/:pageType?/:gamePageName?/:sportAlias?/:regionAlias?/:competitionId?/:gameId?",displayName:"Sports",className:"bc-i-prematch",permissions:{showTo:0,profileTypes:[],customProfileTypes:[],profileActionType:1}},{id:"tab-betslip",to:"",path:"",displayName:"Betslip",className:"bc-i-betslip",actions:[{type:"openBetslip",data:{}}],permissions:{showTo:0,profileTypes:[],customProfileTypes:[],profileActionType:1}},{id:"casino-slots",to:"/casino/slots",path:"/casino/slots/:categoryId?/:gameExternalId?/:type?",displayName:"Casino",className:"bc-i-slots",permissions:{showTo:0,profileTypes:[],customProfileTypes:[],profileActionType:1}}],casino:[{id:"tab-live",to:"/sports/live/event-view",path:"/sports/:pageType?/:gamePageName?/:sportAlias?/:regionAlias?/:competitionId?/:gameId?",displayName:"Live",className:"bc-i-live",permissions:{showTo:0,profileTypes:[],customProfileTypes:[],profileActionType:1}},{id:"tab-skill-games",to:"/games/home",path:"/games/home/:extraCategory?/:categoryName?/:gameExternalId?/:type?",displayName:"Games",className:"bc-i-games",permissions:{showTo:0,profileTypes:[],customProfileTypes:[],profileActionType:1}},{id:"tab-live-casino",to:"/live-casino/home",path:"/live-casino/home/:extraCategory?/:providers?/:gameExternalId?/:type?",displayName:"Live Casino",className:"bc-i-livecasino",permissions:{showTo:0,profileTypes:[],customProfileTypes:[],profileActionType:1}},{id:"casino-slots",to:"/casino/slots",path:"/casino/slots/:categoryId?/:gameExternalId?/:type?",displayName:"Casino",className:"bc-i-slots",permissions:{showTo:0,profileTypes:[],customProfileTypes:[],profileActionType:1}}],"live-casino":[{id:"tab-live",to:"/sports/live/event-view",path:"/sports/:pageType?/:gamePageName?/:sportAlias?/:regionAlias?/:competitionId?/:gameId?",displayName:"Live",className:"bc-i-live",permissions:{showTo:0,profileTypes:[],customProfileTypes:[],profileActionType:1}},{id:"tab-skill-games",to:"/games/home",path:"/games/home/:extraCategory?/:categoryName?/:gameExternalId?/:type?",displayName:"Games",className:"bc-i-games",permissions:{showTo:0,profileTypes:[],customProfileTypes:[],profileActionType:1}},{id:"tab-live-casino",to:"/live-casino/home",path:"/live-casino/home/:extraCategory?/:providers?/:gameExternalId?/:type?",displayName:"Live Casino",className:"bc-i-livecasino",permissions:{showTo:0,profileTypes:[],customProfileTypes:[],profileActionType:1}},{id:"casino-slots",to:"/casino/slots",path:"/casino/slots/:categoryId?/:gameExternalId?/:type?",displayName:"Casino",className:"bc-i-slots",permissions:{showTo:0,profileTypes:[],customProfileTypes:[],profileActionType:1}}],games:[{id:"tab-live",to:"/sports/live/event-view",path:"/sports/:pageType?/:gamePageName?/:sportAlias?/:regionAlias?/:competitionId?/:gameId?",displayName:"Live",className:"bc-i-live",permissions:{showTo:0,profileTypes:[],customProfileTypes:[],profileActionType:1}},{id:"tab-skill-games",to:"/games/home",path:"/games/home/:extraCategory?/:categoryName?/:gameExternalId?/:type?",displayName:"Games",className:"bc-i-games",permissions:{showTo:0,profileTypes:[],customProfileTypes:[],profileActionType:1}},{id:"tab-live-casino",to:"/live-casino/home",path:"/live-casino/home/:extraCategory?/:providers?/:gameExternalId?/:type?",displayName:"Live Casino",className:"bc-i-livecasino",permissions:{showTo:0,profileTypes:[],customProfileTypes:[],profileActionType:1}},{id:"casino-slots",to:"/casino/slots",path:"/casino/slots/:categoryId?/:gameExternalId?/:type?",displayName:"Casino",className:"bc-i-slots",permissions:{showTo:0,profileTypes:[],customProfileTypes:[],profileActionType:1}}]},availableLanguages:{eng:{short:"EN",full:"English",order:1,code:"eng"}},languageSettings:{showFlags:!0,showNativeLanguageNames:!1},homework:{enabled:!1,userMinimumAllowedAge:0,restrictedIds:[]},footer:{footerVisibleDefaultValue:!1,menuExpandedByDefault:!1,feedbackButton:!1,customContentAboveFooter:!0,showFooterSocialIconsLoggedIn:!1},header:{vivaroMeManagement:{enabled:!1,isInternal:!0,source:"",feedNews:{enabled:!1,feedFrequency:5,baseUrl:"https://swarm-personalization.betcoapps.com"}},cryptoInfo:{promoPopup:{contentId:"350143",contentSiteId:"1019",animationEnabled:!0,animationDelay:3,animationDuration:10,buttonLink:"https://www.yophone.com/"}},navigation:{navigationMenuSearch:{enabled:!0,suggestedSearchTerms:{default:[{searchType:"Sport",searchTerm:"Champions League"},{searchType:"Casino",searchTerm:"Gates of Olympus"},{searchType:"Casino",searchTerm:"Regal Spins"},{searchType:"Casino",searchTerm:"20 Super Hot"},{searchType:"Live Casino",searchTerm:"Roulette"},{searchType:"Live Casino",searchTerm:"Blackjack"},{searchType:"Games",searchTerm:"Crash"},{searchType:"Games",searchTerm:"Poker"},{searchType:"Menu",searchTerm:"Tournaments"},{searchType:"Menu",searchTerm:"Wheel"},{searchType:"TV Games",searchTerm:"Keno"},{searchType:"TV Games",searchTerm:"Dice"},{searchType:"Virtual Sports",searchTerm:"Racing"},{searchType:"Virtual Sports",searchTerm:"Football"}]},recentSearchCount:15},web:{subHeaderMenu:!1,leftMenu:!1},mobile:{subHeaderMenu:!0,genericMenu:!1}},headerIcons:[]},preferences:{assets:{loader:"",logo:""},language:"eng",locale:"en",languageRtl:!1,timeFormat:"24h",sound:.75,oddFormat:0,hideBalance:!1,hideZeroBalances:!1,theme:"default",productType:"",currentPath:"",multiColumnView:!0,multiColumnViewExpanded:2,gameDetailsMarketsTwoColumnViewEnabled:!0,esportsTheaterMode:!1,openMiniGames:!1,hideProviders:!1,providersViewList:!1,enableDefaultAlternateLink:!0},bonusHistory:{filterFormConfig:[[[{type:"select",name:"product",label:"Category"},{type:"select",name:"period",label:"Period",value:24,options:[{label:"1 hour",value:1},{label:"2 hours",value:2},{label:"3 hours",value:3},{label:"6 hours",value:6},{label:"12 hours",value:12},{label:"24 hours",value:24},{label:"48 hours",value:48},{label:"72 hours",value:72},{label:"Custom",value:""}]},{element:"date",name:"from_date",label:"Range",placeholder:"From",showOn:{period:[""]}},{element:"date",name:"to_date",label:"",placeholder:"To",showOn:{period:[""]}}]]]},frenchFreebetBonusHistory:{filterFormConfig:[[[{type:"select",name:"product",label:"Category"},{type:"select",name:"period",label:"Period",value:24,options:[{label:"1 hour",value:1},{label:"2 hours",value:2},{label:"3 hours",value:3},{label:"6 hours",value:6},{label:"12 hours",value:12},{label:"24 hours",value:24},{label:"48 hours",value:48},{label:"72 hours",value:72},{label:"Custom",value:""}]},{element:"date",name:"from_date",label:"",placeholder:"From",showOn:{period:[""]}},{element:"date",name:"to_date",label:"",placeholder:"To",showOn:{period:[""]}}]]]},profits:{filterFormConfig:[[[{type:"select",name:"product",label:"Category"},{type:"select",name:"period",label:"Period",defaultValue:24,options:[{label:"24 hours",value:24},{label:"72 hours",value:72},{label:"One week",value:168},{label:"30 Days",value:720},{label:"Custom",value:""}]},{element:"date",name:"from_date",label:"Range",placeholder:"From",showOn:{period:[""]}},{element:"date",name:"to_date",label:"",placeholder:"To",showOn:{period:[""]}}]]]},balanceHistory:{filterFormConfig:[[[{type:"select",name:"type",label:"Transaction Type"},{type:"select",name:"product",label:"Category"},{element:"date",name:"from_date",label:"Range",placeholder:"From"},{element:"date",name:"to_date",label:"",placeholder:"To"}]]]},loginHistory:{filterFormConfig:[[[{type:"select",name:"period",label:"Period",defaultValue:24,options:[{label:"24 hours",value:24},{label:"72 hours",value:72},{label:"One week",value:168},{label:"30 Days",value:720},{label:"Custom",value:""}]},{element:"date",name:"from_date",label:"Range",placeholder:"From",showOn:{period:[""]}},{element:"date",name:"to_date",label:"",placeholder:"To",showOn:{period:[""]}}]]]},netDepositHistory:{filterFormConfig:[[[{element:"date",name:"from_date",label:"Range",placeholder:"From"},{element:"date",name:"to_date",label:"",placeholder:"To"}]]]},profitHistory:{filterFormConfig:[[[{type:"select",name:"period",label:"Period",defaultValue:720,options:[{label:"1 month",value:720},{label:"2 month",value:1440},{label:"3 month",value:2160},{label:"4 month",value:2880},{label:"5 month",value:3600},{label:"6 month",value:4320},{label:"7 month",value:5040},{label:"8 month",value:5760},{label:"9 month",value:6480},{label:"10 month",value:7200},{label:"11 month",value:7920},{label:"12 month",value:8640}]}]]]},twoFactor:{formConfig:[[[{type:"select",name:"trust_period",label:"Time Period",defaultValue:30,options:[{value:30,label:"30 Days"},{value:7,label:"7 Days"},{value:1,label:"1 Day"}]},{name:"is_device_trusted",type:"checkbox",label:"Trust this device?"},{name:"code",type:"otp-input",label:"Enter verification code",numInputs:6,rules:{required:{message:"Code is required"},minLength:{value:6,message:"Should contain exactly 6 digits"},maxLength:{value:6,message:"Should contain exactly 6 digits"}}}]]]},defaultLanguageByIP:{enabled:!1,regions:{}},activeSteps:{deposit:[{active_step:21,active_step_state:5,popup:{type:"info",title:"Confirmation",content:"terms_and_condition_before_deposit_content",buttons:[{label:"I agree",action:"ACCEPT_TERMS_AND_CONDITIONS"},{label:"I do not agree",action:""}]}}]},smartPanel:{items:[{title:"bonus_journey",target:"PANEL",component:"BonusJourney",iconClass:"bc-i-journey",actions:[],permissions:null},{title:"Bet history",target:"",component:"",iconClass:"bc-i-history",actions:[{type:"openAccountSection",data:{section:"history",page:"bets"}}],permissions:{loggedIn:!0}},{title:"What's new",target:"PANEL",component:"Notifications",iconClass:"bc-i-notification",actions:[],permissions:null},{title:"Favorite Games",target:"PANEL",component:"FavoriteGames",iconClass:"bc-i-star",actions:[],permissions:null},{title:"Messages",target:"",component:"Messages",iconClass:"bc-i-message",actions:[{type:"openMessages",data:{}}],permissions:{loggedIn:!0}},{title:"Bonuses",target:"",component:"Bonuses",iconClass:"bc-i-bonus",actions:[{type:"openBonuses",data:{}}],permissions:{loggedIn:!0,bonusAvailable:!0}},{title:"Settings",target:"PANEL",component:"Settings",iconClass:"bc-i-settings",actions:[],permissions:null},{title:"contact_support",target:"PANEL",component:"LiveChat",iconClass:"bc-i-live-chat",actions:[],permissions:null}]},lowBalancePopup:{enabled:!1,popupLifetimeMinutes:240,balanceThresholdByCurrencies:{EUR:1,USD:1,AMD:10}},promotions:{showTitle:!0},showSeparatelyBonuses:!1,childSession:{switchWalletAfterLogin:{currency:"FTN",enabled:!0,showPopup:!0},showInfoPopupBeforeSessionSwitch:!0,showBonusRequestOnChildCurrency:!0},downloadPrintButtons:!0,enableVerificationAutoGetCode:!1,showHeaderNavigationIconsMobile:!1,clientOrtakRewardPopup:{enableRewardPopup:!0,destinationUrl:"https://www.ortak.me"}},statistics:{enabled:!1,showTeamLogos:!0,showCompetitionLogos:!0},sportsbook:{betOnPolitics:{enabled:!0,apiUrl:"https://betonpolitics.bcsocial.net/panel"},enableGameListItemMarketsSlider:!0,livePreMatchInitiallyExpanded:!0,expressOfTheDay:{showBetCount:!1},enableCompetitionNamesInitLoad:!0,eventChatEnabled:!1,enableAsianMarketPriceView:!1,enableSportMiniGame:!1,disableConflictEventReplacement:!0,shareBooking:{enabled:!1},enabled:!0,betBuilder:{enabled:!1,apiUrl:"https://betconstruct-prod-gen2.sportcastlive.com/markets",apiKey:"a6aa080b-cea9-4e3f-aa02-9fef8d1f0c8f",params:"",showConfirmPopup:!0},minDecimalPlaces:2,oddFormats:[{name:"Decimal",format:0},{name:"Fractional",format:1},{name:"American",format:2},{name:"HongKong",format:3},{name:"Malay",format:4},{name:"Indo",format:5}],animations:{virtualMatchAnimation:{apiUrl:"https://pg.rpd.cloud/vs-betshop/"},sportsWithAnimations:{Soccer:"wadua",Basketball:"wadua",Tennis:"wadua",IceHockey:"wadua",Volleyball:"wadua",Cricket:"wadua",Baseball:"wadua",AmericanFootball:"wadua",Darts:"wadua",RugbyLeague:"wadua",LeagueOfLegends:"wadua",Dota2:"wadua",Handball:"wadua",WaterPolo:"wadua"},kievAnimation:{apiUrl:"https://visualization.ml.bcua.io",score:!0,statistic:!1,teamNames:!0,timer:!1},waduaAnimation:{apiUrl:"https://widget-iframe.wadua.io",header:!0}},integrationLiveStreaming:{enabledIFrameLiveStream:!1},liveStreaming:{enabled:!0,additionalOptions:{maxDraggableCount:3,allowFullScreen:!0,aspectRatio:[16,9]},exclusiveStream:{enabled:!1}},betCloud:{enabled:!1},betOutRight:{enabled:!1},promotedGames:{enabled:!1},tournaments:{enabled:!1},availableBetTypes:[{name:"Single",value:1},{name:"Multiple",value:2},{name:"System",value:3}],showJackpotWidget:!1,betslip:{enableFrenchFreebet:!1,superBet:{waitSuperBetAnswer:15},enableSystemCuts:!1,enableMiniGames:!1,contentTabs:[{type:0,title:"Betslip"},{type:1,title:"Open Bets",loginRequired:!0}],underBetslipContent:[{type:"ROW",id:"-9999e9f3062",content:[{type:"COLUMN",id:"-9999d6b343ca3",content:[{type:"COMPONENT",name:"BetslipBanner",settings:{contentId:"betslip_banners"}}]}],settings:{gridTemplate:[12]}}],underBetslipEsportContent:[{type:"ROW",id:"-9999e9f306332",content:[{type:"COLUMN",id:"-9999d6b343ca3",content:[{type:"COMPONENT",name:"Slider",settings:{contentId:"esport_betslip_banners"}}]}],settings:{gridTemplate:[12]}}],underBetslipVirtualContent:[{type:"ROW",id:"-9999e9f307712",content:[{type:"COLUMN",id:"-9999d6b30213",content:[{type:"COMPONENT",name:"Slider",settings:{contentId:"virtual_sport_betslip_banners"}}]}],settings:{gridTemplate:[12]}}]},specialOptions:[{label:"Multiple of the day",value:"multiple-of-the-day"},{label:"Upcoming Matches",value:"upcoming-matches"},{label:"Popular Matches",value:"popular-matches"},{label:"Popular competitions",value:"popular-competitions"},{label:"Boosted bets",value:"boosted-bets"},{label:"Coupons",value:"coupons"},{label:"Favorite Team",value:"favorite-team"}],betHistory:{filterFormConfig:[[[{type:"number",name:"bet_id",label:"Bet ID",placeholder:"#"},{type:"text",name:"name",label:"Sport Name",placeholder:"#"},{type:"select",name:"bet_type",label:"Bet Type"},{type:"select",name:"period",label:"Period",value:24,options:[{label:"24 hours",value:24},{label:"72 hours",value:72},{label:"One week",value:168},{label:"30 Days",value:720},{label:"Custom",value:""}]},{element:"date",name:"from_date",label:"Range",placeholder:"From",showOn:{period:[""]}},{element:"date",name:"to_date",label:"",placeholder:"To",showOn:{period:[""]}}]]]},gameSuggestedEventsWidget:{enabled:!1},editBetEnabled:!0,gamesDefaultTimeFilter:-1,gameNumber:{enabled:!1},showBookingConfirmationPopup:!0,showBookingBetPrintButton:!1,showEsportsInPopularMatches:!1,showVisibleInPrematchGames:!0,horseRacingURL:"https://horseracing.betcoapps.com",marketExtraVisualization:{correctScore:{enabled:!0,defaultActive:!1},handicapLineView:{enabled:!1,defaultActive:!1}},enableMarketFilterDropdown:!1,gameControlsEnabledByDefault:{stats:!0,timeline:!1,h2h:!1,basketBallPlayersInfo:!0,volleyballSetsInfo:!0,animationsOrVideo:!0},predictStreet:{enabled:!1,predictStreetUrl:"https://streamwgt.feedconstruct.com/widgetbyid"}},formElements:{recaptcha:{type:"recaptcha",rules:{}},date:{label:"Choose date",type:"date",className:"",customAttrs:{},rules:{required:{message:"This field is required"}}},email:{label:"Email",placeholder:"Enter your email address",type:"email",className:"",customAttrs:{},rules:{required:{message:"This field is required"},minLength:{value:4,message:"Too short"},maxLength:{value:50,message:"Too long"},pattern:{value:'^(([^<>()\\[\\]\\\\.,;:\\s@"]+(\\.[^<>()\\[\\]\\\\.,;:\\s@"]+)*)|(".+"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$',message:"Please enter a valid email address"}}},password:{label:"Password",placeholder:"Enter your password",type:"password",className:"",customAttrs:{},rules:{required:{message:"This field is required"},minLength:{value:6,message:"This field should contain at least 6 characters"},maxLength:{value:50,message:"Too long"}}},first_name:{label:"First name",placeholder:"Enter your first name",type:"text",className:"",customAttrs:{},rules:{required:{message:"This field is required"},minLength:{value:2,message:"Too short"},maxLength:{value:50,message:"Too long"},pattern:{value:"^[^0-9\\[\\]\\\\`~!@#$%^&*()_+={};:<>|./?,\"'-\\s]+$",message:"message_for_valid_name"}}},last_name:{label:"Last name",placeholder:"Enter your last name",type:"text",className:"",customAttrs:{},rules:{required:{message:"This field is required"},minLength:{value:2,message:"Too short"},maxLength:{value:50,message:"Too long"},pattern:{value:"^[^0-9\\[\\]\\\\`~!@#$%^&*()_+={};:<>|./?,\"'-]+$",message:"message_for_valid_last_name"}}},gender:{label:"Gender",type:"select",placeholder:"Choose gender",options:[{label:"Male",value:"M"},{label:"Female",value:"F"}],className:"",customAttrs:{},rules:{required:{message:"This field is required"}}},incomeSources:{label:"Source of Income",type:"select",placeholder:"Choose Income",options:[{label:"Salary",value:1},{label:"Self-employed",value:2},{label:"Inheritance",value:3},{label:"Savings",value:4},{label:"Investments",value:5},{label:"Pension",value:6},{label:"Business Activity",value:7},{label:"Competitions",value:8},{label:"Donation",value:9},{label:"Loan",value:10},{label:"Capital Sale/Rent",value:11}],className:"",customAttrs:{},rules:{required:{message:"This field is required"}}},salary_level:{label:"Salary level",type:"select",placeholder:"Choose Salary level",options:[{label:"£0 - £20,000",value:"0-20000"},{label:"£20.000 - £40,000",value:"20000-40000"},{label:"£40,000 - £60,000",value:"40000-60000"},{label:"£60,000 - £80.000",value:"60000-80000"},{label:"£80,000 - £100,000",value:"80000-100000"},{label:"£100.000 - £150,000",value:"100000-150000"},{label:"£150,000 plus",value:"150000-500000"}]},occupation:{label:"Occupation",type:"select",placeholder:"Choose occupation",options:[{label:"Administrative/Executive",value:"Administrative/Executive"},{label:"Agricultural",value:"Agricultural"},{label:"Armed forces",value:"Armed forces"},{label:"Art worker",value:"Art worker"},{label:"Banking industry",value:"Banking industry"},{label:"Barber",value:"Barber"},{label:"Butcher",value:"Butcher"},{label:"Clerical",value:"Clerical"},{label:"Coach",value:"Coach"},{label:"Construction",value:"Construction"},{label:"Cook",value:"Cook"},{label:"Doctor",value:"Doctor"},{label:"Dentist",value:"Dentist"},{label:"Economist",value:"Economist"},{label:"Teacher",value:"Teacher"},{label:"Engineer",value:"Engineer"},{label:"Financial Services",value:"Financial Services"},{label:"Gambling industry",value:"Gambling industry"},{label:"IT technology",value:"IT technology"},{label:"Legal Services",value:"Legal Services"},{label:"Mining",value:"Mining"},{label:"Nurse",value:"Nurse"},{label:"Police",value:"Police"},{label:"Politician",value:"Politician"},{label:"Professional/Senior administrative",value:"Professional/Senior administrative"},{label:"Public Services",value:"Public Services"},{label:"Retired",value:"Retired"},{label:"Self-employed",value:"Self-employed"},{label:"Self-employed professional",value:"Self-employed professional"},{label:"Shipping Services",value:"Shipping Services"},{label:"Skilled Manual",value:"Skilled Manual"},{label:"Student",value:"Student"},{label:"Transport Services",value:"Transport Services"},{label:"Unemployed",value:"Unemployed"},{label:"Unskilled manual",value:"Unskilled manual"},{label:"Veterinarian",value:"Veterinarian"}],className:"",customAttrs:{},rules:{required:{message:"This field is required"}}},home_outlet:{label:"Home outlet",type:"select",placeholder:"Choose home outlet",options:[],className:"",customAttrs:{},rules:{required:{message:"This field is required"}}},id_type:{label:"Personal ID type",type:"select",placeholder:"Choose personal ID type",options:[],className:"",customAttrs:{},rules:{required:{message:"This field is required"}}},promo_code:{label:"Promo code",placeholder:"",type:"text",className:"",customAttrs:{},rules:{}},agree:{label:"Agree with terms and conditions",placeholder:"",type:"agree",className:"",customAttrs:{},rules:{required:{message:"You should agree with terms and conditions to continue"}}},remember_me:{label:"Remember me",placeholder:"",type:"checkbox",className:"",customAttrs:{},rules:{},value:!1},doc_number:{label:"Passport Number",placeholder:"",type:"text",className:"",customAttrs:{},rules:{required:{message:"This field is required"},minLength:{value:2,message:"Too short"},maxLength:{value:25,message:"Too long"},pattern:{value:"^[A-Za-z\\Ѐ-\\ӿ0-9]*[0-9]+[A-Za-z\\Ѐ-\\ӿ0-9]*$",message:"field_validation_message"}}},cpf:{label:"Cpf",placeholder:"",type:"cpf",className:"",customAttrs:{checkViaBackend:{enabled:!1,version:0,prefillFields:["first_name","last_name","birth_date"],autoCheck:!1}},rules:{required:{message:"This field is required"},length:{value:14,message:"Too short"}}},country:{label:"Country",placeholder:"Select country",type:"country",className:"",customAttrs:{},rules:{}},multiPromoCode:{label:"Promo code",placeholder:"Promo code",type:"multiPromoCode",className:"",customAttrs:{},rules:{required:{message:"This field is required"}}},phone:{label:"Phone Number",placeholder:"Enter number",type:"phone",className:"",customAttrs:{isCountryCodeEditable:!1},rules:{required:{message:"This field is required"},minLength:{value:0,message:"Too short"},maxLength:{value:50,message:"Too long"}}},username:{label:"Email / Username",placeholder:"Enter your Login or Email",type:"text",className:"",customAttrs:{},rules:{required:{message:"This field is required"},minLength:{value:4,message:"This field should contain at least 4 characters"},pattern:{value:"^[a-zA-Z0-9]*[a-zA-Z][a-zA-Z0-9_-]*$",message:"message_for_valid_username"}}},textarea:{label:"Message",placeholder:"Enter text here",type:"textarea",className:"",customAttrs:{},rules:{required:{message:"This field is required"},maxLength:{value:4e3,message:"Maximum 4000 characters allowed"}}},currency:{label:"Currency",type:"select",placeholder:"Choose currency",options:[],className:"",customAttrs:{},rules:{required:{message:"This field is required"}}},swift_code:{label:"Bank Name",type:"bankName",options:[],className:"",customAttrs:{},rules:{required:{message:"This field is required"}}}},cms:{iconUrl:"https://icons.cmsbetconstruct.com",apiUrl:"https://cmsbetconstruct.com",cacheLayerSubdomain:"go",useWebp:!0},dynamicallyStructuredPages:{},accountNavigation:{history:{order:1,section:"history",showPagesInAccountPopup:!0,pages:["bets","open-bets","cashed-out","won","lost"]},balance:{order:3,section:"balance",showPagesInAccountPopup:!0,pages:["deposit","withdraw","info","history","withdraws"]},bonuses:{order:4,section:"bonuses",showPagesInAccountPopup:!0,pages:["sport","casino","bonus-history"]},"bonus-journey":{order:5,section:"bonus-journey",showPagesInAccountPopup:!1,pages:[]},profile:{order:6,section:"profile",showPagesInAccountPopup:!0,pages:["details","change-password","verify-account"]},messages:{order:7,section:"messages",showPagesInAccountPopup:!0,pages:[]},"cashback-cashout":{order:8,section:"cashback-cashout",showPagesInAccountPopup:!0,pages:[]},profits:{order:9,section:"profits",showPagesInAccountPopup:!0,pages:[]},"stake-and-earn":{order:10,section:"stake-and-earn",showPagesInAccountPopup:!1,pages:[]},rewards:{order:11,section:"rewards",showPagesInAccountPopup:!1,pages:[]},limits:{order:12,section:"limits",showPagesInAccountPopup:!1,pages:[]},vouchers:{order:13,section:"vouchers",showPagesInAccountPopup:!1,pages:[]},"bank-account":{order:14,section:"bank-account",showPagesInAccountPopup:!1,pages:[]},"bonus-request-v2-experimental":{order:16,section:"bonus-request-v2-experimental",showPagesInAccountPopup:!1,pages:["bonus-request-v2"],experimental:!0}},mobileAppNotification:{enabled:!1,popupLifetimeInDays:7},userAuthentication:{oneClickRegistration:{formConfig:[[[{element:"username",label:"Username (Autogenerated you can edit before register)",name:"username"},{element:"password",name:"password"},{element:"select",name:"currency_name",type:"currency",label:"currency_name_label",placeholder:"currency_name_placeholder",rules:{required:{message:"required_message",value:1}}},{element:"select",name:"country_code",type:"country",label:"country_code_label",placeholder:"country_code_placeholder",rules:{required:{message:"required_message",value:1}}},{element:"promo_code",name:"promo_code"}]]]},authPopupAsWidget:!1,emailVerificationEnable:!1,phoneNumberVerificationEnable:!1,documentUploadList:!0,forgetPassword:{resetViaEmail:!0,externalPage:{enabled:!1,url:"",target:"_self"},resetWithEmailFormConfig:[[[{element:"email",name:"email"}]]],resetWithPhoneFormConfig:[[[{label:"Enter phone number",type:"text",name:"phone_number",rules:{required:{message:"This field is required"},minLength:{value:6,message:"Too short"},maxLength:{value:50,message:"Too long"}}}]]],resetPasswordConfig:[[[{element:"password",name:"password",placeholder:"New Password"},{element:"password",label:"Repeat Password",name:"repeat_password",placeholder:"Repeat New Password",rules:{match:{value:"password",message:"Passwords don't match"}}}]]]},registration:{enableForgetUsername:!1,btagDataSetterForPromos:"promo_code",setDefaultCurrencyValue:!0,termsBeforeRegisterButton:!1,minimumAllowedAgeByCountry:{default:18,CM:21},autoSetCurrency:{enabled:!1,availableList:{}},hideGoogleTermsAndConditions:!1,formConfig:[[[{element:"first_name",label:"Name",name:"first_name"},{element:"last_name",label:"Surname",name:"last_name"},{element:"email",name:"email",label:"Email"},{element:"password",name:"password"},{element:"password",name:"repeat_password",label:"Confirm Password",rules:{match:{value:"password",message:"Passwords don't match"}}},{element:"country",name:"country_code"},{element:"currency",name:"currency_name"},{element:"agree",name:"agree"}]]],redirectOnSuccessUrl:"",loginRightAfterRegistration:!0,openConfirmPopup:{enabled:!1,showOn:"onClose"},showSocialIcons:!1,accountExistPopupButtons:{signIn:!0},emailMobileTabRegistrationEnabled:!1},login:{enabledForRestrictedCountries:!1,showSocialIcons:!1,loginViaSMS:!1,formConfig:[[[{element:"username",label:"Email / Username",placeholder:"Username, email or phone number",name:"username"},{element:"password",name:"password"},{element:"remember_me",name:"remember_me"}]]]}},casino:{showConfirmationPopupForFreeTournament:!0,gamesUrl:"",depositIframe:{enabled:!1,url:"https://deposit.betcoapps.com/"},randomCasinoGame:{enabled:!0},loyaltyOrtakConfigurations:{enabled:!1,isGlobal:!0,redirectUrl:"https://www.ortak.me"},rewardsYoestateConfigurations:{enabled:!1,isGlobal:!1,redirectUrl:"https://www.yoestate.me"},enabled:!0,disableAgeRestrictedGames:!0,gamesUrlSuffix:"LaunchGame",collapsedCasinoListEnabled:!1,checkClientCasinoGamesRestriction:!1,showGameInfoDescription:!0,genericPage:{enabled:!0,enableExtraCategoriesFilter:!1},enableGameShare:!1,imageMode:"regular"},profile:{profileDetailsConfig:[[[{type:"text",label:"ID",name:"id",readOnly:!0},{element:"first_name",name:"first_name",readOnly:!0},{element:"last_name",name:"last_name",readOnly:!0},{element:"date",name:"birth_date",label:"Birth date",readOnly:!0},{element:"gender",name:"gender",readOnly:!0},{element:"email",name:"email",readOnly:!0},{element:"doc_number",name:"doc_number",readOnly:!0},{element:"country",name:"country_code",readOnly:!0},{type:"text",label:"City",name:"city",rules:{required:{message:"This field is required"}}},{type:"text",label:"Address",name:"address",rules:{required:{message:"This field is required"}}},{element:"phone",name:"phone"}],[{type:"info",name:"",value:"Subscribe for"},{type:"separator",name:"",className:"subscribeBelowSeparator"},{type:"radio",label:"Internal Messages",name:"subscribe_to_internal_message",options:[{label:"Yes",value:"true"},{label:"No",value:"false"}]},{type:"radio",label:"Push Notifications",name:"subscribe_to_push_notification",options:[{label:"Yes",value:"true"},{label:"No",value:"false"}]},{type:"radio",label:"Phone Call",name:"subscribe_to_phone_call",options:[{label:"Yes",value:"true"},{label:"No",value:"false"}]},{type:"radio",label:"Email",name:"subscribe_to_email",options:[{label:"Yes",value:"true"},{label:"No",value:"false"}]},{type:"radio",label:"SMS",name:"subscribe_to_sms",options:[{label:"Yes",value:"true"},{label:"No",value:"false"}]}],[{type:"separator",name:"",className:"passwordAboveSeparator"},{type:"info",name:"",value:"Enter your password to save changes"},{element:"password",label:"Current Password",name:"password",rules:{required:{message:"This field is required"},pattern:null}}]]],profileChangePasswordFormConfig:[[[{element:"password",name:"password",label:"Current Password",rules:null},{element:"password",name:"new_password",label:"New Password"},{element:"password",name:"new_password_confirm",label:"Confirm New Password",rules:{match:{value:"new_password",message:"Passwords don't match"}}}]]],profileSessionDurationLimit:[[[{type:"number",label:"Session Duration Daily Limit",name:"max_session_duration_daily",placeholder:"Enter amount",rules:{required:{message:"This field is required"},min:{value:1,message:"minimum_session_duration_daily_error"},max:{value:24,message:"maximum_session_duration_daily_error"}}},{type:"number",label:"Session Duration Weekly Limit",name:"max_session_duration_weekly",placeholder:"Enter amount",rules:{required:{message:"This field is required"},min:{value:7,message:"minimum_session_duration_weekly_error"},max:{value:168,message:"maximum_session_duration_weekly_error"}}},{type:"number",label:"Session Duration Monthly Limit",name:"max_session_duration_monthly",placeholder:"Enter amount",rules:{required:{message:"This field is required"},min:{value:30,message:"minimum_session_duration_monthly_error"},max:{value:720,message:"maximum_session_duration_monthly_error"}}}]]],profileSessionHistory:[[[{type:"select",name:"period",label:"Period",defaultValue:24,options:[{label:"24 hours",value:24},{label:"72 hours",value:72},{label:"One week",value:168},{label:"30 Days",value:720},{label:"Custom",value:""}]},{element:"date",name:"from_date",label:"Range",placeholder:"From",showOn:{period:[""]}},{element:"date",name:"to_date",label:"",placeholder:"To",showOn:{period:[""]}}]]],profileRealityCheckFormConfig:[[[{type:"radio",name:"active_time",label:"",options:[{label:"No limit",value:0},{label:"10 mins",value:600},{label:"20 mins",value:1200},{label:"30 mins",value:1800},{label:"1 hour",value:3600},{label:"2 hours",value:7200},{label:"4 hours",value:14400},{label:"6 hours",value:21600},{label:"8 hours",value:28800}]}]]],profileOccupationConfig:[[[{element:"occupation",label:"Occupation",name:"occupation"},{element:"salary_level",label:"Salary Level",name:"salary_level"}]]],profileBalanceLimit:[[[{type:"number",label:"Balance Limit",name:"balance_limit",placeholder:"Enter amount",rules:{pattern:{value:"^[0-9//S]+$",message:"balance_limit_error"}}}]]],profileBetLimitsFormConfig:[[[{type:"number",name:"sport_max_single_bet",label:"Max One Bet Amount",placeholder:"Enter amount"},{type:"number",name:"sport_max_daily_bet",label:"Max Daily Bet Amount",placeholder:"Enter amount"},{type:"number",name:"sport_max_weekly_bet",label:"Max Weekly Bet Amount",placeholder:"Enter amount"},{type:"number",name:"sport_max_monthly_bet",label:"Max Monthly Bet Amount",placeholder:"Enter amount"}],[{type:"number",name:"casino_max_single_bet",label:"Max Casino One Bet Amount",placeholder:"Enter amount"},{type:"number",name:"casino_max_daily_bet",label:"Max Casino Daily Bet Amount",placeholder:"Enter amount"},{type:"number",name:"casino_max_weekly_bet",label:"Max Casino Weekly Bet Amount",placeholder:"Enter amount"},{type:"number",name:"casino_max_monthly_bet",label:"Max Casino Monthly Bet Amount",placeholder:"Enter amount"}]]],profileDepositLimitsFormConfig:[[[{type:"number",name:"max_day_deposit",label:"Day",placeholder:"Enter amount",rules:{required:{message:"This field is required"}}},{type:"number",name:"max_week_deposit",label:"Week",placeholder:"Enter amount",rules:{required:{message:"This field is required"}}},{type:"number",name:"max_month_deposit",label:"Month",placeholder:"Enter amount",rules:{required:{message:"This field is required"}}}]]],profileLossLimitsFormConfig:[[[{type:"number",name:"daily_loss",label:"Day",placeholder:"Enter amount",rules:{required:{message:"This field is required"}}},{type:"number",name:"weekly_loss",label:"Week",placeholder:"Enter amount",rules:{required:{message:"This field is required"}}},{type:"number",name:"monthly_loss",label:"Month",placeholder:"Enter amount",rules:{required:{message:"This field is required"}}}]]],profileLoginLimitConfig:[[[{type:"radio",name:"login_limit_duration",label:"",rules:{required:{message:"This field is required"}},options:[{label:"no limit",value:0},{label:"30 mins",value:30},{label:"1 hour",value:60},{label:"2 hours",value:120},{label:"4 hours",value:240},{label:"6 hours",value:360},{label:"8 hours",value:480}]},{element:"password",name:"password",label:"Password*"}]]],profileTimeOutConfig:[[[{type:"radio",name:"minutes",label:"",rules:{required:{message:"This field is required"}},options:[{label:"24 hours",value:1440},{label:"One week",value:10080},{label:"One month",value:43200},{label:"Two months",value:86400}]},{element:"password",name:"password",label:"Password*"}]]],profileSelfExclusionConfig:[[[{type:"radio",name:"minutes",label:"",rules:{required:{message:"This field is required"}},options:[{label:"3 months",value:129600},{label:"6 months",value:259200},{label:"1 year",value:518400},{label:"2 years",value:1036800},{label:"5 years",value:2592e3}]},{element:"password",name:"password",label:"Password*"}]]],profileAccountClosureConfig:[[[{label:"reason_text_label",element:"input",name:"reason_text",type:"textarea",placeholder:"reason_text_placeholder",rules:{required:{message:"This field is required"},maxLength:{value:4e3,message:"Maximum 4000 characters allowed"}}},{element:"password",name:"password",label:"Password*"}]]],profileVerifyAccountFormConfig:[[[{type:"select",name:"selectedImageType",label:"Please select your type of ID",rules:{required:{message:"Please select your type of ID"}},options:[{value:1,label:"Bank Slip"},{value:2,label:"Document"},{value:3,label:"Passport"},{value:4,label:"Driver's License"},{value:5,label:"IBAN"},{value:6,label:"Social Card ID"},{value:7,label:"Other"},{value:15,label:"Selfie"}]},{type:"file",name:"passportImage",label:"Attach file",rules:{required:{message:"Please upload an image and select the type of your chosen method of identification."}}}]]],newUserMessageFormConfig:[[[{type:"text",name:"subject",label:"Subject",rules:{required:{message:"This field is required"},maxLength:{value:255,message:"Maximum 255 characters allowed"}}},{element:"textarea",name:"body",maxLength:4e3}]]]},pmu:{url:""},racing:{menuTabs:{showHorseRacing:!0,showGreyhounds:!0}},virtualSports:{url:"",integrationMode:!0,enableCategoriesFilter:!1},payment:{enabledInFooter:!0,methods:[],enableWithdrawCancelButton:!0,withdrawPrecheck:!1,enableSoundOnDepositOrWithdraw:!1,paymentDetailsExpanded:!1,paymentDescriptionOnTop:!0,showBetShopPrintButton:!1,depositSuccessRedirectUrl:"",depositFailRedirectUrl:"",needsFingerprintForDeposit:!1},enabledProducts:{competition:!0},partner:{},quiz:{url:"",className:"iframe-full-page",permissions:{loggedIn:!0,loggedOut:!1}},competition:{url:{mobile:"https://euro2020m.betcoapps.com/?integrationMode=1",web:"https://euro2020.betcoapps.com/?integrationMode=1"},bannerContentId:582},euro2024:{url:{mobile:"https://euro2024m.abstractname.com/?integrationMode=1",web:"https://euro2024.abstractname.com/?integrationMode=1"},bannerContentId:18394}};const TP=e=>{N=e};var Ly=(e=>(e.Home="homepage",e.SportsbookHome="sportsbookHomeLandingPage",e.LiveCasino="liveCasinoLandingPage",e.Casino="casinoLandingPage",e.CasinoLobby="casinoLobbyLandingPage",e.CasinoLiveRTP="casinoLiveRTPLandingPage",e.LiveCasinoLobby="liveCasinoLobbyLandingPage",e))(Ly||{});class Xr{constructor(){se(this,"listeners",new Map);se(this,"stopExecutionForType",new Set)}addEventListener(t,n,s=!1){this.listeners.has(t)||this.listeners.set(t,[]);const r=this.listeners.get(t);return r&&r[s?"unshift":"push"](n),()=>{this.removeEventListener(t,n)}}dispatchEvent(...[t,n]){const s=this.listeners.get(t);if(s){const r=()=>this.stopExecutionForType.add(t);for(const a of s){if(this.stopExecutionForType.has(t)){this.stopExecutionForType.delete(t);break}a(typeof n<"u"?n:null,r)}}}removeEventListener(t,n){const s=this.listeners.get(t);s&&this.listeners.set(t,s.filter(r=>r!==n))}removeEventListeners(t){this.listeners.delete(t)}}var ZB=(e=>(e.Notifications="Notifications",e))(ZB||{});const He=new Xr,Wt=e=>{p.useEffect(()=>{if(e)return He.dispatchEvent("addRootClassName",e),()=>{He.dispatchEvent("removeRootClassName",e)}},[e])};function wP(e,t){return function(){return e.apply(t,arguments)}}const{toString:eF}=Object.prototype,{getPrototypeOf:My}=Object,{iterator:hm,toStringTag:IP}=Symbol,gm=(e=>t=>{const n=eF.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),ar=e=>(e=e.toLowerCase(),t=>gm(t)===e),_m=e=>t=>typeof t===e,{isArray:pl}=Array,Xi=_m("undefined");function Iu(e){return e!==null&&!Xi(e)&&e.constructor!==null&&!Xi(e.constructor)&&ns(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const AP=ar("ArrayBuffer");function tF(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&AP(e.buffer),t}const nF=_m("string"),ns=_m("function"),PP=_m("number"),Au=e=>e!==null&&typeof e=="object",sF=e=>e===!0||e===!1,tf=e=>{if(gm(e)!=="object")return!1;const t=My(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(IP in e)&&!(hm in e)},rF=e=>{if(!Au(e)||Iu(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},aF=ar("Date"),oF=ar("File"),iF=ar("Blob"),lF=ar("FileList"),cF=e=>Au(e)&&ns(e.pipe),uF=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||ns(e.append)&&((t=gm(e))==="formdata"||t==="object"&&ns(e.toString)&&e.toString()==="[object FormData]"))},dF=ar("URLSearchParams"),[fF,pF,mF,hF]=["ReadableStream","Request","Response","Headers"].map(ar),gF=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Pu(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let s,r;if(typeof e!="object"&&(e=[e]),pl(e))for(s=0,r=e.length;s0;)if(r=n[s],t===r.toLowerCase())return r;return null}const lo=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,OP=e=>!Xi(e)&&e!==lo;function lv(){const{caseless:e,skipUndefined:t}=OP(this)&&this||{},n={},s=(r,a)=>{const o=e&&xP(n,a)||a;tf(n[o])&&tf(r)?n[o]=lv(n[o],r):tf(r)?n[o]=lv({},r):pl(r)?n[o]=r.slice():(!t||!Xi(r))&&(n[o]=r)};for(let r=0,a=arguments.length;r(Pu(t,(r,a)=>{n&&ns(r)?e[a]=wP(r,n):e[a]=r},{allOwnKeys:s}),e),vF=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),EF=(e,t,n,s)=>{e.prototype=Object.create(t.prototype,s),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},yF=(e,t,n,s)=>{let r,a,o;const i={};if(t=t||{},e==null)return t;do{for(r=Object.getOwnPropertyNames(e),a=r.length;a-- >0;)o=r[a],(!s||s(o,e,t))&&!i[o]&&(t[o]=e[o],i[o]=!0);e=n!==!1&&My(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},bF=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const s=e.indexOf(t,n);return s!==-1&&s===n},SF=e=>{if(!e)return null;if(pl(e))return e;let t=e.length;if(!PP(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},CF=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&My(Uint8Array)),TF=(e,t)=>{const s=(e&&e[hm]).call(e);let r;for(;(r=s.next())&&!r.done;){const a=r.value;t.call(e,a[0],a[1])}},wF=(e,t)=>{let n;const s=[];for(;(n=e.exec(t))!==null;)s.push(n);return s},IF=ar("HTMLFormElement"),AF=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,s,r){return s.toUpperCase()+r}),R0=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),PF=ar("RegExp"),kP=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),s={};Pu(n,(r,a)=>{let o;(o=t(r,a,e))!==!1&&(s[a]=o||r)}),Object.defineProperties(e,s)},xF=e=>{kP(e,(t,n)=>{if(ns(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const s=e[n];if(ns(s)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},OF=(e,t)=>{const n={},s=r=>{r.forEach(a=>{n[a]=!0})};return pl(e)?s(e):s(String(e).split(t)),n},kF=()=>{},NF=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function RF(e){return!!(e&&ns(e.append)&&e[IP]==="FormData"&&e[hm])}const LF=e=>{const t=new Array(10),n=(s,r)=>{if(Au(s)){if(t.indexOf(s)>=0)return;if(Iu(s))return s;if(!("toJSON"in s)){t[r]=s;const a=pl(s)?[]:{};return Pu(s,(o,i)=>{const l=n(o,r+1);!Xi(l)&&(a[i]=l)}),t[r]=void 0,a}}return s};return n(e,0)},MF=ar("AsyncFunction"),DF=e=>e&&(Au(e)||ns(e))&&ns(e.then)&&ns(e.catch),NP=((e,t)=>e?setImmediate:t?((n,s)=>(lo.addEventListener("message",({source:r,data:a})=>{r===lo&&a===n&&s.length&&s.shift()()},!1),r=>{s.push(r),lo.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",ns(lo.postMessage)),jF=typeof queueMicrotask<"u"?queueMicrotask.bind(lo):typeof process<"u"&&process.nextTick||NP,BF=e=>e!=null&&ns(e[hm]),oe={isArray:pl,isArrayBuffer:AP,isBuffer:Iu,isFormData:uF,isArrayBufferView:tF,isString:nF,isNumber:PP,isBoolean:sF,isObject:Au,isPlainObject:tf,isEmptyObject:rF,isReadableStream:fF,isRequest:pF,isResponse:mF,isHeaders:hF,isUndefined:Xi,isDate:aF,isFile:oF,isBlob:iF,isRegExp:PF,isFunction:ns,isStream:cF,isURLSearchParams:dF,isTypedArray:CF,isFileList:lF,forEach:Pu,merge:lv,extend:_F,trim:gF,stripBOM:vF,inherits:EF,toFlatObject:yF,kindOf:gm,kindOfTest:ar,endsWith:bF,toArray:SF,forEachEntry:TF,matchAll:wF,isHTMLForm:IF,hasOwnProperty:R0,hasOwnProp:R0,reduceDescriptors:kP,freezeMethods:xF,toObjectSet:OF,toCamelCase:AF,noop:kF,toFiniteNumber:NF,findKey:xP,global:lo,isContextDefined:OP,isSpecCompliantForm:RF,toJSONObject:LF,isAsyncFn:MF,isThenable:DF,setImmediate:NP,asap:jF,isIterable:BF};function Je(e,t,n,s,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),s&&(this.request=s),r&&(this.response=r,this.status=r.status?r.status:null)}oe.inherits(Je,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:oe.toJSONObject(this.config),code:this.code,status:this.status}}});const RP=Je.prototype,LP={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{LP[e]={value:e}});Object.defineProperties(Je,LP);Object.defineProperty(RP,"isAxiosError",{value:!0});Je.from=(e,t,n,s,r,a)=>{const o=Object.create(RP);oe.toFlatObject(e,o,function(u){return u!==Error.prototype},c=>c!=="isAxiosError");const i=e&&e.message?e.message:"Error",l=t==null&&e?e.code:t;return Je.call(o,i,l,n,s,r),e&&o.cause==null&&Object.defineProperty(o,"cause",{value:e,configurable:!0}),o.name=e&&e.name||"Error",a&&Object.assign(o,a),o};const FF=null;function cv(e){return oe.isPlainObject(e)||oe.isArray(e)}function MP(e){return oe.endsWith(e,"[]")?e.slice(0,-2):e}function L0(e,t,n){return e?e.concat(t).map(function(r,a){return r=MP(r),!n&&a?"["+r+"]":r}).join(n?".":""):t}function UF(e){return oe.isArray(e)&&!e.some(cv)}const $F=oe.toFlatObject(oe,{},null,function(t){return/^is[A-Z]/.test(t)});function vm(e,t,n){if(!oe.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=oe.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(E,b){return!oe.isUndefined(b[E])});const s=n.metaTokens,r=n.visitor||u,a=n.dots,o=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&oe.isSpecCompliantForm(t);if(!oe.isFunction(r))throw new TypeError("visitor must be a function");function c(g){if(g===null)return"";if(oe.isDate(g))return g.toISOString();if(oe.isBoolean(g))return g.toString();if(!l&&oe.isBlob(g))throw new Je("Blob is not supported. Use a Buffer instead.");return oe.isArrayBuffer(g)||oe.isTypedArray(g)?l&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function u(g,E,b){let v=g;if(g&&!b&&typeof g=="object"){if(oe.endsWith(E,"{}"))E=s?E:E.slice(0,-2),g=JSON.stringify(g);else if(oe.isArray(g)&&UF(g)||(oe.isFileList(g)||oe.endsWith(E,"[]"))&&(v=oe.toArray(g)))return E=MP(E),v.forEach(function(y,S){!(oe.isUndefined(y)||y===null)&&t.append(o===!0?L0([E],S,a):o===null?E:E+"[]",c(y))}),!1}return cv(g)?!0:(t.append(L0(b,E,a),c(g)),!1)}const f=[],m=Object.assign($F,{defaultVisitor:u,convertValue:c,isVisitable:cv});function h(g,E){if(!oe.isUndefined(g)){if(f.indexOf(g)!==-1)throw Error("Circular reference detected in "+E.join("."));f.push(g),oe.forEach(g,function(v,_){(!(oe.isUndefined(v)||v===null)&&r.call(t,v,oe.isString(_)?_.trim():_,E,m))===!0&&h(v,E?E.concat(_):[_])}),f.pop()}}if(!oe.isObject(e))throw new TypeError("data must be an object");return h(e),t}function M0(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(s){return t[s]})}function Dy(e,t){this._pairs=[],e&&vm(e,this,t)}const DP=Dy.prototype;DP.append=function(t,n){this._pairs.push([t,n])};DP.toString=function(t){const n=t?function(s){return t.call(this,s,M0)}:M0;return this._pairs.map(function(r){return n(r[0])+"="+n(r[1])},"").join("&")};function GF(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function jP(e,t,n){if(!t)return e;const s=n&&n.encode||GF;oe.isFunction(n)&&(n={serialize:n});const r=n&&n.serialize;let a;if(r?a=r(t,n):a=oe.isURLSearchParams(t)?t.toString():new Dy(t,n).toString(s),a){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class D0{constructor(){this.handlers=[]}use(t,n,s){return this.handlers.push({fulfilled:t,rejected:n,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){oe.forEach(this.handlers,function(s){s!==null&&t(s)})}}const BP={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},VF=typeof URLSearchParams<"u"?URLSearchParams:Dy,HF=typeof FormData<"u"?FormData:null,WF=typeof Blob<"u"?Blob:null,zF={isBrowser:!0,classes:{URLSearchParams:VF,FormData:HF,Blob:WF},protocols:["http","https","file","blob","url","data"]},jy=typeof window<"u"&&typeof document<"u",uv=typeof navigator=="object"&&navigator||void 0,YF=jy&&(!uv||["ReactNative","NativeScript","NS"].indexOf(uv.product)<0),qF=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",KF=jy&&window.location.href||"http://localhost",QF=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:jy,hasStandardBrowserEnv:YF,hasStandardBrowserWebWorkerEnv:qF,navigator:uv,origin:KF},Symbol.toStringTag,{value:"Module"})),wn={...QF,...zF};function XF(e,t){return vm(e,new wn.classes.URLSearchParams,{visitor:function(n,s,r,a){return wn.isNode&&oe.isBuffer(n)?(this.append(s,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)},...t})}function JF(e){return oe.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function ZF(e){const t={},n=Object.keys(e);let s;const r=n.length;let a;for(s=0;s=n.length;return o=!o&&oe.isArray(r)?r.length:o,l?(oe.hasOwnProp(r,o)?r[o]=[r[o],s]:r[o]=s,!i):((!r[o]||!oe.isObject(r[o]))&&(r[o]=[]),t(n,s,r[o],a)&&oe.isArray(r[o])&&(r[o]=ZF(r[o])),!i)}if(oe.isFormData(e)&&oe.isFunction(e.entries)){const n={};return oe.forEachEntry(e,(s,r)=>{t(JF(s),r,n,0)}),n}return null}function e3(e,t,n){if(oe.isString(e))try{return(t||JSON.parse)(e),oe.trim(e)}catch(s){if(s.name!=="SyntaxError")throw s}return(n||JSON.stringify)(e)}const xu={transitional:BP,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const s=n.getContentType()||"",r=s.indexOf("application/json")>-1,a=oe.isObject(t);if(a&&oe.isHTMLForm(t)&&(t=new FormData(t)),oe.isFormData(t))return r?JSON.stringify(FP(t)):t;if(oe.isArrayBuffer(t)||oe.isBuffer(t)||oe.isStream(t)||oe.isFile(t)||oe.isBlob(t)||oe.isReadableStream(t))return t;if(oe.isArrayBufferView(t))return t.buffer;if(oe.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let i;if(a){if(s.indexOf("application/x-www-form-urlencoded")>-1)return XF(t,this.formSerializer).toString();if((i=oe.isFileList(t))||s.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return vm(i?{"files[]":t}:t,l&&new l,this.formSerializer)}}return a||r?(n.setContentType("application/json",!1),e3(t)):t}],transformResponse:[function(t){const n=this.transitional||xu.transitional,s=n&&n.forcedJSONParsing,r=this.responseType==="json";if(oe.isResponse(t)||oe.isReadableStream(t))return t;if(t&&oe.isString(t)&&(s&&!this.responseType||r)){const o=!(n&&n.silentJSONParsing)&&r;try{return JSON.parse(t,this.parseReviver)}catch(i){if(o)throw i.name==="SyntaxError"?Je.from(i,Je.ERR_BAD_RESPONSE,this,null,this.response):i}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:wn.classes.FormData,Blob:wn.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};oe.forEach(["delete","get","head","post","put","patch"],e=>{xu.headers[e]={}});const t3=oe.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),n3=e=>{const t={};let n,s,r;return e&&e.split(` `).forEach(function(o){r=o.indexOf(":"),n=o.substring(0,r).trim().toLowerCase(),s=o.substring(r+1).trim(),!(!n||t[n]&&t3[n])&&(n==="set-cookie"?t[n]?t[n].push(s):t[n]=[s]:t[n]=t[n]?t[n]+", "+s:s)}),t},j0=Symbol("internals");function kl(e){return e&&String(e).trim().toLowerCase()}function nf(e){return e===!1||e==null?e:oe.isArray(e)?e.map(nf):String(e)}function s3(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=n.exec(e);)t[s[1]]=s[2];return t}const r3=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function kh(e,t,n,s,r){if(oe.isFunction(s))return s.call(this,t,n);if(r&&(t=n),!!oe.isString(t)){if(oe.isString(s))return t.indexOf(s)!==-1;if(oe.isRegExp(s))return s.test(t)}}function a3(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,s)=>n.toUpperCase()+s)}function o3(e,t){const n=oe.toCamelCase(" "+t);["get","set","has"].forEach(s=>{Object.defineProperty(e,s+n,{value:function(r,a,o){return this[s].call(this,t,r,a,o)},configurable:!0})})}let ss=class{constructor(t){t&&this.set(t)}set(t,n,s){const r=this;function a(i,l,c){const u=kl(l);if(!u)throw new Error("header name must be a non-empty string");const f=oe.findKey(r,u);(!f||r[f]===void 0||c===!0||c===void 0&&r[f]!==!1)&&(r[f||l]=nf(i))}const o=(i,l)=>oe.forEach(i,(c,u)=>a(c,u,l));if(oe.isPlainObject(t)||t instanceof this.constructor)o(t,n);else if(oe.isString(t)&&(t=t.trim())&&!r3(t))o(n3(t),n);else if(oe.isObject(t)&&oe.isIterable(t)){let i={},l,c;for(const u of t){if(!oe.isArray(u))throw TypeError("Object iterator must return a key-value pair");i[c=u[0]]=(l=i[c])?oe.isArray(l)?[...l,u[1]]:[l,u[1]]:u[1]}o(i,n)}else t!=null&&a(n,t,s);return this}get(t,n){if(t=kl(t),t){const s=oe.findKey(this,t);if(s){const r=this[s];if(!n)return r;if(n===!0)return s3(r);if(oe.isFunction(n))return n.call(this,r,s);if(oe.isRegExp(n))return n.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=kl(t),t){const s=oe.findKey(this,t);return!!(s&&this[s]!==void 0&&(!n||kh(this,this[s],s,n)))}return!1}delete(t,n){const s=this;let r=!1;function a(o){if(o=kl(o),o){const i=oe.findKey(s,o);i&&(!n||kh(s,s[i],i,n))&&(delete s[i],r=!0)}}return oe.isArray(t)?t.forEach(a):a(t),r}clear(t){const n=Object.keys(this);let s=n.length,r=!1;for(;s--;){const a=n[s];(!t||kh(this,this[a],a,t,!0))&&(delete this[a],r=!0)}return r}normalize(t){const n=this,s={};return oe.forEach(this,(r,a)=>{const o=oe.findKey(s,a);if(o){n[o]=nf(r),delete n[a];return}const i=t?a3(a):String(a).trim();i!==a&&delete n[a],n[i]=nf(r),s[i]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return oe.forEach(this,(s,r)=>{s!=null&&s!==!1&&(n[r]=t&&oe.isArray(s)?s.join(", "):s)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const s=new this(t);return n.forEach(r=>s.set(r)),s}static accessor(t){const s=(this[j0]=this[j0]={accessors:{}}).accessors,r=this.prototype;function a(o){const i=kl(o);s[i]||(o3(r,o),s[i]=!0)}return oe.isArray(t)?t.forEach(a):a(t),this}};ss.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);oe.reduceDescriptors(ss.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(s){this[n]=s}}});oe.freezeMethods(ss);function Nh(e,t){const n=this||xu,s=t||n,r=ss.from(s.headers);let a=s.data;return oe.forEach(e,function(i){a=i.call(n,a,r.normalize(),t?t.status:void 0)}),r.normalize(),a}function UP(e){return!!(e&&e.__CANCEL__)}function ml(e,t,n){Je.call(this,e??"canceled",Je.ERR_CANCELED,t,n),this.name="CanceledError"}oe.inherits(ml,Je,{__CANCEL__:!0});function $P(e,t,n){const s=n.config.validateStatus;!n.status||!s||s(n.status)?e(n):t(new Je("Request failed with status code "+n.status,[Je.ERR_BAD_REQUEST,Je.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function i3(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function l3(e,t){e=e||10;const n=new Array(e),s=new Array(e);let r=0,a=0,o;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),u=s[a];o||(o=c),n[r]=l,s[r]=c;let f=a,m=0;for(;f!==r;)m+=n[f++],f=f%e;if(r=(r+1)%e,r===a&&(a=(a+1)%e),c-o{n=u,r=null,a&&(clearTimeout(a),a=null),e(...c)};return[(...c)=>{const u=Date.now(),f=u-n;f>=s?o(c,u):(r=c,a||(a=setTimeout(()=>{a=null,o(r)},s-f)))},()=>r&&o(r)]}const Xf=(e,t,n=3)=>{let s=0;const r=l3(50,250);return c3(a=>{const o=a.loaded,i=a.lengthComputable?a.total:void 0,l=o-s,c=r(l),u=o<=i;s=o;const f={loaded:o,total:i,progress:i?o/i:void 0,bytes:l,rate:c||void 0,estimated:c&&i&&u?(i-o)/c:void 0,event:a,lengthComputable:i!=null,[t?"download":"upload"]:!0};e(f)},n)},B0=(e,t)=>{const n=e!=null;return[s=>t[0]({lengthComputable:n,total:e,loaded:s}),t[1]]},F0=e=>(...t)=>oe.asap(()=>e(...t)),u3=wn.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,wn.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(wn.origin),wn.navigator&&/(msie|trident)/i.test(wn.navigator.userAgent)):()=>!0,d3=wn.hasStandardBrowserEnv?{write(e,t,n,s,r,a,o){if(typeof document>"u")return;const i=[`${e}=${encodeURIComponent(t)}`];oe.isNumber(n)&&i.push(`expires=${new Date(n).toUTCString()}`),oe.isString(s)&&i.push(`path=${s}`),oe.isString(r)&&i.push(`domain=${r}`),a===!0&&i.push("secure"),oe.isString(o)&&i.push(`SameSite=${o}`),document.cookie=i.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function f3(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function p3(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function GP(e,t,n){let s=!f3(t);return e&&(s||n==!1)?p3(e,t):t}const U0=e=>e instanceof ss?{...e}:e;function Po(e,t){t=t||{};const n={};function s(c,u,f,m){return oe.isPlainObject(c)&&oe.isPlainObject(u)?oe.merge.call({caseless:m},c,u):oe.isPlainObject(u)?oe.merge({},u):oe.isArray(u)?u.slice():u}function r(c,u,f,m){if(oe.isUndefined(u)){if(!oe.isUndefined(c))return s(void 0,c,f,m)}else return s(c,u,f,m)}function a(c,u){if(!oe.isUndefined(u))return s(void 0,u)}function o(c,u){if(oe.isUndefined(u)){if(!oe.isUndefined(c))return s(void 0,c)}else return s(void 0,u)}function i(c,u,f){if(f in t)return s(c,u);if(f in e)return s(void 0,c)}const l={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:i,headers:(c,u,f)=>r(U0(c),U0(u),f,!0)};return oe.forEach(Object.keys({...e,...t}),function(u){const f=l[u]||r,m=f(e[u],t[u],u);oe.isUndefined(m)&&f!==i||(n[u]=m)}),n}const VP=e=>{const t=Po({},e);let{data:n,withXSRFToken:s,xsrfHeaderName:r,xsrfCookieName:a,headers:o,auth:i}=t;if(t.headers=o=ss.from(o),t.url=jP(GP(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),i&&o.set("Authorization","Basic "+btoa((i.username||"")+":"+(i.password?unescape(encodeURIComponent(i.password)):""))),oe.isFormData(n)){if(wn.hasStandardBrowserEnv||wn.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if(oe.isFunction(n.getHeaders)){const l=n.getHeaders(),c=["content-type","content-length"];Object.entries(l).forEach(([u,f])=>{c.includes(u.toLowerCase())&&o.set(u,f)})}}if(wn.hasStandardBrowserEnv&&(s&&oe.isFunction(s)&&(s=s(t)),s||s!==!1&&u3(t.url))){const l=r&&a&&d3.read(a);l&&o.set(r,l)}return t},m3=typeof XMLHttpRequest<"u",h3=m3&&function(e){return new Promise(function(n,s){const r=VP(e);let a=r.data;const o=ss.from(r.headers).normalize();let{responseType:i,onUploadProgress:l,onDownloadProgress:c}=r,u,f,m,h,g;function E(){h&&h(),g&&g(),r.cancelToken&&r.cancelToken.unsubscribe(u),r.signal&&r.signal.removeEventListener("abort",u)}let b=new XMLHttpRequest;b.open(r.method.toUpperCase(),r.url,!0),b.timeout=r.timeout;function v(){if(!b)return;const y=ss.from("getAllResponseHeaders"in b&&b.getAllResponseHeaders()),w={data:!i||i==="text"||i==="json"?b.responseText:b.response,status:b.status,statusText:b.statusText,headers:y,config:e,request:b};$P(function(I){n(I),E()},function(I){s(I),E()},w),b=null}"onloadend"in b?b.onloadend=v:b.onreadystatechange=function(){!b||b.readyState!==4||b.status===0&&!(b.responseURL&&b.responseURL.indexOf("file:")===0)||setTimeout(v)},b.onabort=function(){b&&(s(new Je("Request aborted",Je.ECONNABORTED,e,b)),b=null)},b.onerror=function(S){const w=S&&S.message?S.message:"Network Error",x=new Je(w,Je.ERR_NETWORK,e,b);x.event=S||null,s(x),b=null},b.ontimeout=function(){let S=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const w=r.transitional||BP;r.timeoutErrorMessage&&(S=r.timeoutErrorMessage),s(new Je(S,w.clarifyTimeoutError?Je.ETIMEDOUT:Je.ECONNABORTED,e,b)),b=null},a===void 0&&o.setContentType(null),"setRequestHeader"in b&&oe.forEach(o.toJSON(),function(S,w){b.setRequestHeader(w,S)}),oe.isUndefined(r.withCredentials)||(b.withCredentials=!!r.withCredentials),i&&i!=="json"&&(b.responseType=r.responseType),c&&([m,g]=Xf(c,!0),b.addEventListener("progress",m)),l&&b.upload&&([f,h]=Xf(l),b.upload.addEventListener("progress",f),b.upload.addEventListener("loadend",h)),(r.cancelToken||r.signal)&&(u=y=>{b&&(s(!y||y.type?new ml(null,e,b):y),b.abort(),b=null)},r.cancelToken&&r.cancelToken.subscribe(u),r.signal&&(r.signal.aborted?u():r.signal.addEventListener("abort",u)));const _=i3(r.url);if(_&&wn.protocols.indexOf(_)===-1){s(new Je("Unsupported protocol "+_+":",Je.ERR_BAD_REQUEST,e));return}b.send(a||null)})},g3=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let s=new AbortController,r;const a=function(c){if(!r){r=!0,i();const u=c instanceof Error?c:this.reason;s.abort(u instanceof Je?u:new ml(u instanceof Error?u.message:u))}};let o=t&&setTimeout(()=>{o=null,a(new Je(`timeout ${t} of ms exceeded`,Je.ETIMEDOUT))},t);const i=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(a):c.removeEventListener("abort",a)}),e=null)};e.forEach(c=>c.addEventListener("abort",a));const{signal:l}=s;return l.unsubscribe=()=>oe.asap(i),l}},_3=function*(e,t){let n=e.byteLength;if(n{const r=v3(e,t);let a=0,o,i=l=>{o||(o=!0,s&&s(l))};return new ReadableStream({async pull(l){try{const{done:c,value:u}=await r.next();if(c){i(),l.close();return}let f=u.byteLength;if(n){let m=a+=f;n(m)}l.enqueue(new Uint8Array(u))}catch(c){throw i(c),c}},cancel(l){return i(l),r.return()}},{highWaterMark:2})},G0=64*1024,{isFunction:dd}=oe,y3=(({Request:e,Response:t})=>({Request:e,Response:t}))(oe.global),{ReadableStream:V0,TextEncoder:H0}=oe.global,W0=(e,...t)=>{try{return!!e(...t)}catch{return!1}},b3=e=>{e=oe.merge.call({skipUndefined:!0},y3,e);const{fetch:t,Request:n,Response:s}=e,r=t?dd(t):typeof fetch=="function",a=dd(n),o=dd(s);if(!r)return!1;const i=r&&dd(V0),l=r&&(typeof H0=="function"?(g=>E=>g.encode(E))(new H0):async g=>new Uint8Array(await new n(g).arrayBuffer())),c=a&&i&&W0(()=>{let g=!1;const E=new n(wn.origin,{body:new V0,method:"POST",get duplex(){return g=!0,"half"}}).headers.has("Content-Type");return g&&!E}),u=o&&i&&W0(()=>oe.isReadableStream(new s("").body)),f={stream:u&&(g=>g.body)};r&&["text","arrayBuffer","blob","formData","stream"].forEach(g=>{!f[g]&&(f[g]=(E,b)=>{let v=E&&E[g];if(v)return v.call(E);throw new Je(`Response type '${g}' is not supported`,Je.ERR_NOT_SUPPORT,b)})});const m=async g=>{if(g==null)return 0;if(oe.isBlob(g))return g.size;if(oe.isSpecCompliantForm(g))return(await new n(wn.origin,{method:"POST",body:g}).arrayBuffer()).byteLength;if(oe.isArrayBufferView(g)||oe.isArrayBuffer(g))return g.byteLength;if(oe.isURLSearchParams(g)&&(g=g+""),oe.isString(g))return(await l(g)).byteLength},h=async(g,E)=>{const b=oe.toFiniteNumber(g.getContentLength());return b??m(E)};return async g=>{let{url:E,method:b,data:v,signal:_,cancelToken:y,timeout:S,onDownloadProgress:w,onUploadProgress:x,responseType:I,headers:C,withCredentials:T="same-origin",fetchOptions:P}=VP(g),A=t||fetch;I=I?(I+"").toLowerCase():"text";let O=g3([_,y&&y.toAbortSignal()],S),M=null;const k=O&&O.unsubscribe&&(()=>{O.unsubscribe()});let D;try{if(x&&c&&b!=="get"&&b!=="head"&&(D=await h(C,v))!==0){let z=new n(E,{method:"POST",body:v,duplex:"half"}),K;if(oe.isFormData(v)&&(K=z.headers.get("content-type"))&&C.setContentType(K),z.body){const[ne,J]=B0(D,Xf(F0(x)));v=$0(z.body,G0,ne,J)}}oe.isString(T)||(T=T?"include":"omit");const j=a&&"credentials"in n.prototype,V={...P,signal:O,method:b.toUpperCase(),headers:C.normalize().toJSON(),body:v,duplex:"half",credentials:j?T:void 0};M=a&&new n(E,V);let R=await(a?A(M,P):A(E,V));const U=u&&(I==="stream"||I==="response");if(u&&(w||U&&k)){const z={};["status","statusText","headers"].forEach($=>{z[$]=R[$]});const K=oe.toFiniteNumber(R.headers.get("content-length")),[ne,J]=w&&B0(K,Xf(F0(w),!0))||[];R=new s($0(R.body,G0,ne,()=>{J&&J(),k&&k()}),z)}I=I||"text";let G=await f[oe.findKey(f,I)||"text"](R,g);return!U&&k&&k(),await new Promise((z,K)=>{$P(z,K,{data:G,headers:ss.from(R.headers),status:R.status,statusText:R.statusText,config:g,request:M})})}catch(j){throw k&&k(),j&&j.name==="TypeError"&&/Load failed|fetch/i.test(j.message)?Object.assign(new Je("Network Error",Je.ERR_NETWORK,g,M),{cause:j.cause||j}):Je.from(j,j&&j.code,g,M)}}},S3=new Map,HP=e=>{let t=e&&e.env||{};const{fetch:n,Request:s,Response:r}=t,a=[s,r,n];let o=a.length,i=o,l,c,u=S3;for(;i--;)l=a[i],c=u.get(l),c===void 0&&u.set(l,c=i?new Map:b3(t)),u=c;return c};HP();const By={http:FF,xhr:h3,fetch:{get:HP}};oe.forEach(By,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const z0=e=>`- ${e}`,C3=e=>oe.isFunction(e)||e===null||e===!1;function T3(e,t){e=oe.isArray(e)?e:[e];const{length:n}=e;let s,r;const a={};for(let o=0;o`adapter ${l} `+(c===!1?"is not supported by the environment":"is not available in the build"));let i=n?o.length>1?`since : `+o.map(z0).join(` `):" "+z0(o[0]):"as no adapter specified";throw new Je("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return r}const WP={getAdapter:T3,adapters:By};function Rh(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ml(null,e)}function Y0(e){return Rh(e),e.headers=ss.from(e.headers),e.data=Nh.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),WP.getAdapter(e.adapter||xu.adapter,e)(e).then(function(s){return Rh(e),s.data=Nh.call(e,e.transformResponse,s),s.headers=ss.from(s.headers),s},function(s){return UP(s)||(Rh(e),s&&s.response&&(s.response.data=Nh.call(e,e.transformResponse,s.response),s.response.headers=ss.from(s.response.headers))),Promise.reject(s)})}const zP="1.13.0",Em={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Em[e]=function(s){return typeof s===e||"a"+(t<1?"n ":" ")+e}});const q0={};Em.transitional=function(t,n,s){function r(a,o){return"[Axios v"+zP+"] Transitional option '"+a+"'"+o+(s?". "+s:"")}return(a,o,i)=>{if(t===!1)throw new Je(r(o," has been removed"+(n?" in "+n:"")),Je.ERR_DEPRECATED);return n&&!q0[o]&&(q0[o]=!0,console.warn(r(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(a,o,i):!0}};Em.spelling=function(t){return(n,s)=>(console.warn(`${s} is likely a misspelling of ${t}`),!0)};function w3(e,t,n){if(typeof e!="object")throw new Je("options must be an object",Je.ERR_BAD_OPTION_VALUE);const s=Object.keys(e);let r=s.length;for(;r-- >0;){const a=s[r],o=t[a];if(o){const i=e[a],l=i===void 0||o(i,a,e);if(l!==!0)throw new Je("option "+a+" must be "+l,Je.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Je("Unknown option "+a,Je.ERR_BAD_OPTION)}}const sf={assertOptions:w3,validators:Em},lr=sf.validators;let ho=class{constructor(t){this.defaults=t||{},this.interceptors={request:new D0,response:new D0}}async request(t,n){try{return await this._request(t,n)}catch(s){if(s instanceof Error){let r={};Error.captureStackTrace?Error.captureStackTrace(r):r=new Error;const a=r.stack?r.stack.replace(/^.+\n/,""):"";try{s.stack?a&&!String(s.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(s.stack+=` `+a):s.stack=a}catch{}}throw s}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Po(this.defaults,n);const{transitional:s,paramsSerializer:r,headers:a}=n;s!==void 0&&sf.assertOptions(s,{silentJSONParsing:lr.transitional(lr.boolean),forcedJSONParsing:lr.transitional(lr.boolean),clarifyTimeoutError:lr.transitional(lr.boolean)},!1),r!=null&&(oe.isFunction(r)?n.paramsSerializer={serialize:r}:sf.assertOptions(r,{encode:lr.function,serialize:lr.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),sf.assertOptions(n,{baseUrl:lr.spelling("baseURL"),withXsrfToken:lr.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=a&&oe.merge(a.common,a[n.method]);a&&oe.forEach(["delete","get","head","post","put","patch","common"],g=>{delete a[g]}),n.headers=ss.concat(o,a);const i=[];let l=!0;this.interceptors.request.forEach(function(E){typeof E.runWhen=="function"&&E.runWhen(n)===!1||(l=l&&E.synchronous,i.unshift(E.fulfilled,E.rejected))});const c=[];this.interceptors.response.forEach(function(E){c.push(E.fulfilled,E.rejected)});let u,f=0,m;if(!l){const g=[Y0.bind(this),void 0];for(g.unshift(...i),g.push(...c),m=g.length,u=Promise.resolve(n);f{if(!s._listeners)return;let a=s._listeners.length;for(;a-- >0;)s._listeners[a](r);s._listeners=null}),this.promise.then=r=>{let a;const o=new Promise(i=>{s.subscribe(i),a=i}).then(r);return o.cancel=function(){s.unsubscribe(a)},o},t(function(a,o,i){s.reason||(s.reason=new ml(a,o,i),n(s.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=s=>{t.abort(s)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new YP(function(r){t=r}),cancel:t}}};function A3(e){return function(n){return e.apply(null,n)}}function P3(e){return oe.isObject(e)&&e.isAxiosError===!0}const dv={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(dv).forEach(([e,t])=>{dv[t]=e});function qP(e){const t=new ho(e),n=wP(ho.prototype.request,t);return oe.extend(n,ho.prototype,t,{allOwnKeys:!0}),oe.extend(n,t,null,{allOwnKeys:!0}),n.create=function(r){return qP(Po(e,r))},n}const qe=qP(xu);qe.Axios=ho;qe.CanceledError=ml;qe.CancelToken=I3;qe.isCancel=UP;qe.VERSION=zP;qe.toFormData=vm;qe.AxiosError=Je;qe.Cancel=qe.CanceledError;qe.all=function(t){return Promise.all(t)};qe.spread=A3;qe.isAxiosError=P3;qe.mergeConfig=Po;qe.AxiosHeaders=ss;qe.formToJSON=e=>FP(oe.isHTMLForm(e)?new FormData(e):e);qe.getAdapter=WP.getAdapter;qe.HttpStatusCode=dv;qe.default=qe;const{Axios:Ene,AxiosError:yne,CanceledError:bne,isCancel:Sne,CancelToken:Cne,VERSION:Tne,all:wne,Cancel:Ine,isAxiosError:Ane,spread:Pne,toFormData:xne,AxiosHeaders:One,HttpStatusCode:kne,formToJSON:Nne,getAdapter:Rne,mergeConfig:Lne}=qe;function xt(){const e=p.useRef(!0);return p.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),e}const ei=new Map,x3=e=>qe.get(e).then(t=>(ei.set(e,t.data),t.data)),Jf=(e,t=!1,n)=>{const s=xt(),r=p.useRef(t),a=p.useRef(n),o=n?JSON.stringify(n):"",i=o?`${e}::${o}`:e,[l,c]=p.useState(()=>ei.has(i)?{loading:!1,data:ei.get(i)}:{loading:!0,data:null});return p.useEffect(()=>{r.current=t},[t]),p.useEffect(()=>{a.current=n},[o,n]),p.useEffect(function(){if(ei.has(i)){c({loading:!1,data:ei.get(i)});return}c({loading:!0,data:null}),qe.get(e,a.current?{headers:a.current}:void 0).then(f=>{r.current&&ei.set(i,f.data),s.current&&c({loading:!1,data:f.data})}).catch(()=>{s.current&&c({loading:!1,data:null})})},[s,e,i]),l},KP=(e=!0)=>{p.useEffect(()=>{e&&(window.scrollTo({top:0}),He.dispatchEvent("setHeaderNavigationVisible",!0))},[e])};function fv(e,t={}){if(Array.isArray(e)){const n=e.map(s=>fv(s,t));return t.unorderedArrays?[...n].sort():n}else if(e&&typeof e=="object"&&e.constructor===Object)return Object.fromEntries(Object.entries(e).sort(([n],[s])=>n.localeCompare(s)).map(([n,s])=>[n,fv(s,t)]));return e}function O3(e){const t=new WeakSet;return JSON.stringify(e,function(n,s){if(s&&typeof s=="object"){if(t.has(s))return"[Circular]";t.add(s)}return s})}function k3(e){let t=2166136261;for(let n=0;n>>0;return t.toString(16)}function jo(e,t){const n=fv(e,t),s=O3(n);return k3(s)}function N3(e){console.info(`%c${e}`,"background: green;color: white;padding: 2px")}function R3(e){console.error(e)}function L3(e){console.warn(e)}const rt={success:N3,error:R3,warning:L3};class Fy{constructor(){se(this,"queue",[])}enqueue(t){this.queue.push(t)}dequeueAll(){this.queue.forEach(t=>t()),this.queue=[]}}const Lp=class Lp{constructor(t,n,s=()=>{},r=()=>{},a=()=>{}){se(this,"instance");se(this,"onopenQueue",[]);se(this,"callbackIdCounter",0);se(this,"onOpenCallback");se(this,"onMessageCallback");se(this,"onCloseCallback");se(this,"onErrorCallback");if(!t||!n)throw Error("No url or onmessage callback provided");this.onOpenCallback=s,this.onCloseCallback=r,this.onErrorCallback=a,this.onMessageCallback=n,this.create(t)}create(t){this.instance=new WebSocket(t),this.instance.addEventListener("open",()=>this.openEventHandler()),this.instance.addEventListener("close",n=>this.closeEventHandler(n)),this.instance.addEventListener("message",n=>this.messageEventHandler(n)),this.instance.addEventListener("error",n=>this.errorEventHandler(n))}openEventHandler(){for(this.onOpenCallback();this.onopenQueue.length>0;)this.onopenQueue.shift()()}messageEventHandler(t){this.onMessageCallback(t.data)}closeEventHandler(t){const n=t.code;let s=t.reason;s||(s=Lp.errorCodes[n]||"Unknown"),console.warn(`Websocket connection closed. Code: ${n} Reason: ${s}`),this.onCloseCallback(n)}errorEventHandler(t){this.onErrorCallback(t)}send(t){if(this.instance)switch(this.instance.readyState){case WebSocket.CONNECTING:this.onopenQueue.push(()=>this.send(t));break;case WebSocket.OPEN:this.instance.send(JSON.stringify(t));break;case WebSocket.CLOSING:case WebSocket.CLOSED:throw Error("Web socket connection not available")}}close(t=4e3,n){if(this.instance)switch(this.instance.readyState){case WebSocket.CONNECTING:this.onopenQueue.push(()=>this.close(t,n));break;case WebSocket.OPEN:this.instance.close(t,n);break;case WebSocket.CLOSING:case WebSocket.CLOSED:console.warn("Socket closing or already closed");break}}generateRid(){return this.callbackIdCounter+=1,this.callbackIdCounter>1e5&&(this.callbackIdCounter=0),`${Date.now()}${this.callbackIdCounter}`}};se(Lp,"errorCodes",{1e3:"Normal closure; the connection successfully completed whatever purpose for which it was created.",1001:"The endpoint is going away, either because of a server failure or because the browser is navigating away from the page that opened the connection.",1002:"The endpoint is terminating the connection due to a protocol error.",1003:"The connection is being terminated because the endpoint received data of a type it cannot accept (for example, a text-only endpoint received binary data).",1004:"A meaning might be defined in the future.",1005:"No status code was provided even though one was expected.",1006:"The connection was closed abnormally (that is, with no close frame being sent) when a status code is expected.",1007:"The endpoint is terminating the connection because a message was received that contained inconsistent data (e.g., non-UTF-8 data within a text message).",1008:"The endpoint is terminating the connection because it received a message that violates its policy. This is a generic status code, used when codes 1003 and 1009 are not suitable.",1009:"The endpoint is terminating the connection because a data frame was received that is too large.",1010:"The client is terminating the connection because it expected the server to negotiate one or more extension, but the server didn't.",1011:"The server is terminating the connection because it encountered an unexpected condition that prevented it from fulfilling the request.",1012:"The server is terminating the connection because it is restarting.",1013:"The server is terminating the connection due to a temporary condition, e.g. it is overloaded and is casting off some of its clients.",1014:"The server was acting as a gateway or proxy and received an invalid response from the upstream server.",1015:"The connection was closed due to a failure to perform a TLS handshake (e.g., the server certificate can't be verified).",4e3:"Closed by the application."});let pv=Lp;class Ri extends Fy{constructor(){super(...arguments);se(this,"url","");se(this,"webSocket",null);se(this,"requests",new Map);se(this,"subIdRidMap",new Map);se(this,"unsubIdRidMap",new Map);se(this,"needToResubscribe",new Map);se(this,"maxAttemptsCount",5);se(this,"socketRetryAttempts",0);se(this,"delayCanceler")}delay(){return new Promise((n,s)=>{this.delayCanceler=s,setTimeout(n,5e3)})}cancelPreviousDelay(n){this.delayCanceler&&this.delayCanceler(n)}static generateRid(n){return jo(n,{unorderedArrays:!0})}openConnection(n,s,r,a){this.webSocket=new pv(this.url,a,n,s,r)}closeConnection(n,s){this.webSocket&&(this.webSocket.close(n,s),this.webSocket=null)}handleInternalErrors(n){rt.error(n.message)}}class Uy{constructor(t,n){se(this,"id");se(this,"onUpdate");se(this,"onFailure");this.id=Uy.generateId(),this.onUpdate=t,this.onFailure=n}static generateId(){return Math.round(Math.random()*Math.pow(10,16)).toString()}}const M3=()=>{let e=!1;return function(t){(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(t)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s'\/'-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|'\/'-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw'\/'-(n|u)|c55\/|capi|ccwa|cdm'\/'-|cell|chtm|cldc|cmd'\/'-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc'\/'-s|devi|dica|dmob|do(c|p)o|ds(12|'\/'-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly('\/'-|_)|g1 u|g560|gene|gf'\/'-5|g'\/'-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd'\/'-(m|p|t)|hei'\/'-|hi(pt|ta)|hp( i|ip)|hs'\/'-c|ht(c('\/'-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i'\/'-(20|go|ma)|i230|iac( |'\/'-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc'\/'-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|'\/'-[a-w])|libw|lynx|m1'\/'-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m'\/'-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t('\/'-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)'\/'-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|'\/'-([1-8]|c))|phil|pire|pl(ay|uc)|pn'\/'-2|po(ck|rt|se)|prox|psio|pt'\/'-g|qa'\/'-a|qc(07|12|21|32|60|'\/'-[2-7]|i'\/'-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h'\/'-|oo|p'\/'-)|sdk\/|se(c('\/'-|0|1)|47|mc|nd|ri)|sgh'\/'-|shar|sie('\/'-|m)|sk'\/'-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h'\/'-|v'\/'-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl'\/'-|tdg'\/'-|tel(i|m)|tim'\/'-|t'\/'-mo|to(pl|sh)|ts(70|m'\/'-|m3|m5)|tx'\/'-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|'\/'-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c('\/'-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas'\/'-|your|zeto|zte'\/'-/i.test(t.substr(0,4)))&&(e=!0)}(navigator.userAgent||navigator.vendor||window.opera),e},D3=()=>{const{platform:e,userAgent:t}=window.navigator;return["Macintosh","MacIntel","MacPPC","Mac68K"].includes(e)?"MacOS":["iPhone","iPad","iPod"].includes(e)?"IOS":["Win32","Win64","Windows","WinCE"].includes(e)?"Windows":/Android/.test(t)?"Android":/Linux/.test(e)?"Linux":"Unknown"},j3=()=>{if(typeof window>"u")return!1;const e=navigator.userAgent,t=navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1||/iPad/i.test(e),n=/iPhone/i.test(e);return t&&!n},B3=["slow-2g","2g","3g"],F3=()=>{const e=navigator.connection;return e?e.saveData||B3.includes(e.effectiveType):!1},U3=()=>{let e=Qf.ENTIRE;return function(t){Object.values(Qf).includes(t)&&(e=t)}(window.location.pathname.split("/")[1]),e},Q={isMobile:0,integrationType:U3(),userOs:D3(),useWebp:0,fingerprint:"",utmParameters:"",headerMainSectionHeightPx:0,headerBlockHeightPx:0,mobileSubHeaderNavigationHeightPx:0,webSubHeaderNavigationHeightPx:0,mobileHeaderNavigationHeightPx:0,webHeaderNavigationHeightPx:0,webLeftMenuNavigationWidthPx:0,webSelfExclusionHeightPx:0,terminalID:0,isIpad:j3(),saveDataMode:F3()},hl="__1013-web__";function QP(e){let t;try{t=window[e];const n="__storage_test__";return t.setItem(n,n),t.removeItem(n),!0}catch(n){return n instanceof DOMException&&(n.code===22||n.code===1014||n.name==="QuotaExceededError"||n.name==="NS_ERROR_DOM_QUOTA_REACHED")&&t&&t.length!==0}}const $y=function(){if(!QP("localStorage")){const e=window.location.hostname.split(/\./).slice(-2).join(".");return{getItem:function(t){return!t||!this.hasOwnProperty(t)?null:unescape(document.cookie.replace(new RegExp("(?:^|.*;\\s*)"+escape(t).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*((?:[^;](?!;))*[^;]?).*"),"$1"))},key:function(t){return unescape(document.cookie.replace(/\s*\=(?:.(?!;))*$/,"").split(/\s*\=(?:[^;](?!;))*[^;]?;\s*/)[t])},setItem:function(t,n,s){t&&(document.cookie=escape(t)+"="+escape(n)+`; expires=Tue, 19 Jan 2038 03:14:07 GMT; path=/; domain=${e}; ${s?`max-age=${s};`:""} SameSite=None; Secure`)},removeItem:function(t){!t||!this.hasOwnProperty(t)||(document.cookie=escape(t)+`=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; domain=${e}; SameSite=None; Secure`)},hasOwnProperty:function(t){return new RegExp("(?:^|;\\s*)"+escape(t).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(document.cookie)}}}return window.localStorage}(),XP=(e,t)=>JSON.stringify({data:e,expiration:t?Math.round(Date.now()/1e3+t):null}),$3=(e,t,n)=>{const s=XP(t,n);$y.setItem(`${hl}${e}`,s)},JP=(e,t,n)=>{if(t){const{data:s,expiration:r}=JSON.parse(t);return r?r>Date.now()/1e3?s:(Gy(e),n):s}return n},G3=(e,t=null)=>{try{const n=$y.getItem(`${hl}${e}`);return JP(e,n,t)}catch{return t}},Gy=e=>$y.removeItem(`${hl}${e}`),V3=(e,t,n)=>{try{const s=XP(t,n);window.localStorage.setItem(`${hl}${e}`,s)}catch{}},H3=(e,t=null)=>{try{const n=window.localStorage.getItem(`${hl}${e}`);return JP(e,n,t)}catch{return t}},W3=e=>e.forEach(t=>Gy(t)),Te={setItem:$3,getItem:G3,removeItem:Gy,removeItems:W3,setItemToLocalStorage:V3,getItemFromLocalStorage:H3},ZP="geoDataStorageKey",mv=()=>{Te.setItem(ZP,ln,432e3)},{countryCode:z3="",countryName:Y3=""}=Te.getItem(ZP)??{},ln={countryCode:z3,countryName:Y3},K0="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAeAAAAHgCAMAAABKCk6nAAAASFBMVEUAAACyt8alqryrsMGrsMGtssKyt8aqr8CsscGrsMGsscGus8Oqr8Clqrylqryyt8atssKlqrysscGlqrytssKyt8alqryyt8Yq74VIAAAAGHRSTlMATU0EDDdIIREZCC0pPUs9HTMVSCVERDIYPbI1AAANyklEQVR42uzcgW6CMBSF4dsLDgRkio69/5sOx5JmWyoipJxT7vcKJ/EXbJU9yY71+6npMjEJKm/vbqCq7elWiklJXhze3EhH10uRi0lBdf78cJ56/eVciWF2j677TX+zJNPKysaPGxzYkszJR3diYEsynyG6by5Ig66WZHxDdD/cQ/pQ3xwtyaiyzkc3TKe0p8aSjMdHd4I+oz1YkoH46M4f2JIMLhDdMJ2jry3Jm/HRXTbwdJI7MfHlNx/dBQNbkhHlPrpLB7Yko/HRXWVgSzISH93VBrYkwyh9dDca2CfZfp1YWV6M0cUY2JK8quonulgDW5JhovuHrqq1AwOLousG0ANbkreP7oyBFyXZXoW8FF2SgS3JT0f3zyk5ooEtya9El2tgS/Ls6PINbGf4/qnO4ehyDvyTZHsVMh1d3oHtWP14H2wC98B7Plb/5Ck5+oF3mWR/H2xSEgPf9ZedJHlmdJMZeB9Jnh/dpAZOO8nf0d2ebi/BJH9HF4NiSOjyeXasN/9cxhs4lSSXDdK4YAOzJxkkutAD0yYZKLrwA9Od4RuiCzou7sA0l8+zDi66NAPjJxkzukwD310xb7oN0cUfl2JgwCRjR5dxYKAzfPjRZR0Y4f9g8htBdIkHnnn5fKfRJR94myTnRNFNYOAxybnE0zhaSquReD4dLaV1kXi4vjgnMvBJ4qH8esU+cCvRVI6X8qokls7xUl6dxFI4XsqrkFhqx0t51RLLwfFSXgeJhfY1FvfAvUSSOWLKq5VIckdMiVUSZk9JCQzcSZg9JX2xcwc5GQJBEIVrRs0PCgQi4f5HdT+xlhK7eO8K34ruHgKAd/nYJQUAL5KPXVJ94EM+dkkBwKt8fAYHAF+Sj8/g+sCbfCwLA4Bv+hCeWuV65Sbd0dwq1ys3647OVrleuZdsbIMTgBfZmHMkAB9yMeeIAF7lYs4RAXzpjlrpeuU22RhkJQD3N9m450gAfpeLQVYE8CQXg6wI4FkuDnYigF+ycbCTAHzKxaQyAvhLLiaVEcCHbDxMSgD+kIlRdAbwKhOj6AzgSzb+z5EAvBkURtEhwF0mbipDgD/1W+waYoDNtoFdQwrwZFh4HBwCbJ4Is0xKAZ711+2tdr12u2FhWxgCbPaFvGtIAT5lYh2cAbwYFtbBAD9jHVwd+NAQwAA/at8PMMD/OnPSwUFHCvCqIYABBrhQBpiTLIABLtGlIYABftRRZXXgbw0BDDDAhQIYYIArZ4H5iVIGcNcQwAADXCkNAQwwwJXSEMAAA1wpDQEMMMCV0hDAWcCbxhhVRgH/sHcvOQoDQRBEUwJkYwzyZ+T7H3X2qKtYZyriCm/lruo2Z9EAA+wcwACzk+UcS3cAs/juHDcbAAbYOYAB5n6wcw99BXAWMG90AMwzSs699BXAWcCrRvHSHcC8VenRn8bx2mwI8KRRvBcdA7xpHC++hwA/NYp/NsQAHxrHX1dCgGcV8d+kDOC7xvHnsxDgRUX8uzAD+KYirjZEAH9Uxd5sBPCpItYqM4AvVbGzEwH8VhUrHRHAu4oYCGcAv1TEQDgDeFURA+EM4EnjmBeGAG+qY14YAHyojHFSAvCsOsZJAcCLypg2JACrjMPoBOBTZRxGJwBfquKsMgL4oTKunyUA7+riMNoeeFUTdxv8gSfVcVYZAPxUFUdZEcCzulictQde1MVepTvwR2WcdCQAX2pj7c4d+K0yTjoSgHfVcdIRALyqiZMOf+BJTSzt+AMfamOnwx34ri52OuyBb+pip8Md+FQXH8L2wG818SHsD7zrR1xP8gZe1cVE2B54Ux8TYXPgWV1MhO2BF7XxnWQOfKqN76R/9u4ouUEYBsLwdkkGaANTEob7H7U3iGUeSv6RvivsQ+yVTOgBL3qn7kn4gDe11Ct/dMC7WmqehA54VkPNk9gB3/RezZPYAa9qqcVKdMCHmuoJKTngTW21dwcO+KGWGjegA/5VU40byAFPaqljNDrgQQ11jEYHfKipjtHkgDc1VRtNDvihgGqjuQHPCqg2mhvwTQG11IENeFVILXVQA14UUWUlNuAfhdQjYWrAoyKqrMQGPCkqe1lppkFB6ctKIx0Ky746a6RNUenLSiON+n/PLyQjTQqpUxY04HVQTJ2ymAEfiqlTFjTgTWHpuywTjYqqLstEk4LqlIUMeFWH7BNDAy2KSz8xNNBDPZI/bzDQrA7ZP7ZjoG/Fpa86zHMorqoO82zqkrzqMM+oHtmrDvNM6pN7Odo4L3XK/QTNOHd1y7zVYZxdXbL/CBtnUp/k8wbTrOqWet5gmkXdUv97g2l29cu8Wmmap6404G7ChlkHdUt9EzbMom65b8KG2dUv9U3YMJNOyFxHm+WlUxLPhM1y1xmZZ8JmGXVK4g9mmeWmy8EWs4xy6Hqw7WijbLoebDvaKLOuB9uONsk66AOwRoYmWfQJWG2lSXZ9AlZbaZI/9s4oxY0ghoJDJV+7wYQs5P5HzRE87Sx0VVt1BSO533uSZrtPGRRKhDCIpJxQIsTn5SB13p8QBpGUm62kg0Mk1cY66LA/SSomSnTYnyQVEyU6CJKkoFAig0UkxYQSGX5dHkJmFhkkNlZt9I4K+8ftmj2aChYbq7ajRIU/l4nOjhIRXB06NB5NBMM0VjJwIIIlaMj1aBp4goZaj6aBrUN3ejQNbB2606NJ4OvQmR5NAl+HzvRoEvg6dKZHU+BL2KErPZoCxg5d6dEUcPnQrR5NAJsPncoMCeBKCmOZIQFUsxy12Tv8mKbterdn8WOatuvNR+NHNA8dXPZHj2OtP7vDgh7PxkryIAt2jEFSya7EjtOm7Ehh7Dhtyo4URo5XBEekMHK8IjgihZEjFsENKYwbswhu3CbFze/Ljj0VRo1zVieVCqPGmgSHtv1Ro02CO88szPifWP5nFmb8Tyz/MwsxhSeW/pmFGLuLlXCzEKN3sQrHSfHiOT5a3nHAi3HjrBcaosUeFEY+xIIWxydW8rNZWHl8XCG8s1lYcc9idQxprCRs6IAhjZSGDR1QSkgJaSS3UsJJSSO5lRJOShrJnSmhpJIjBTIllFRypECmhJFHJkfymx0YaZkcbrMDIzGTQ212IKRmcqh3SREi3xhtlTA+qgXs9CvxkXMp1SWMjp5LqZ6BR0dj2j0TOWCjXMDGEsaG+SzWc37oShgZxZhBffsOGe0CFqaGuKgXsC/4x0Uv6LeXMCr6Baz7F0ZF/R9Y+JDGxN8DCthWwpg4oYBtJYyItokltbMQkXahrY40Hk4pYFcJ4yGcA4tzYTR0BznUox1oOKiATSWMhZMK2DRgiYXoLLT+dBYSmssMgU0lHDS3kQqbSjg4rYCv60MSG6KgdTMp9UUlFBT3gSOZAwZOyPmthiUGjkkZhG4HAs7yOGRuBwKy66IFqcR+zpNIJqnEdk6USKIhabZzokQSSSVeZCYpI8EwLzExcCZVYp2RSKVUiXUmRSqdsGSZeWGlltF4gTGhQ5Y0i8wLK/bO4hXe7+N1/8PPlSZ91A98soel8bNYZtb5U7khq4wEbl2SZhuPwyahpWKYbXxe78P90OGcH/jskMETOrDCSOCeGGaJGePIDXewh683kcD7HUtWmEHZXpPmHtOgq02aW0yDzjZpbjIv6OiYNHeYBt1t0txgGnTY7uAO06C7TZrnTIP+Nj6eetL9H/hfe2eCpSgQRMF+WWK3OoDj1ve/6UxvNi4FBYrkLyOuEE9yL59hDcvTwaGlwSmh6uDQEmFP9j6Eju0OdcHlU3+gE04dxAXnf8jg7sV/S4Q3+0WnDpYCe9AvL6oNLeuCFtYnsrWSdUCF9IvkI3jWBRXSN6Kb8NYFe+5fqIZhi0MAbiAbhq0V7hgaaIZha4VDsyaS1bDFoQI+R3FyaC1wp3KB3smhRSAAX0OwKW1RaEFH0FrgsRgs6cTQmg1bBGbAEdT6HXYVOhxxxPodNjYVI4Y+iZaeYBKsXkt4coKf6SUOl4mWXcAIqQupjpZdQAcrBZmXDm1MtixRTp5K2ykk0GnopNJ2Dgl0CjqptJ3CDlYyIsNhO4EOdDoixZI1oQPdA5FiyRpQIPVCo1iyIxRIk/L2ZVhEMCscbsph+4ECeBjeH0qzJryj0x/vDQ87QoNjcv5vwysIpsHhqaVlPzAB9sC7f8E0sHw1LfHri1D4FswNkjfD+PVGKPwKLmhAuzOMX3+Ewqdg/HocDzMA9kio/QnGr0/D+PVJKHwJJv56NUz/yivh3Y9g/H7jcPKAX8esfAhm/jsaOw+CecPuHFdbPHYj1RP+E/AjWcynFVyxX3cNR/vSdhNb9p9HZ7afTvCB+4UHsKynElzyAlYcL02tW8pf2pMteCmIKX8leH244IrzhYeymT9W8Jbzsm5cJNOkzyoMTLWY/uowKNUivRJiPSAQ051UYkAgJvxKsewdiAm/YuxGFVwx/J2cnhUx1a8cy2IswQXDBR/0+UzzeVZks7+/4AOzfUcsk1dqmQ2Ksp7fU/CW1Tp3zOr7CS5pbngkKdciuxIm5UfMz1eZ8OdmwRWjI9d0/oj5+aqza0+nib7yzIqhggt+vhq01cTUvjkQVr0FVytaV0q81f0El3Se1Yh8p/k6Z8P17zRf54yYFSmC/5I767K5CMUE38xY7NsEH9h51me9jwk+kFtlQXidXxO85SA0G8Jvg/qod0fqnBNHxejNlfD6GYuJvRmzqD8El2TO+bKpyye7RvkHGFJd32jW8ScAAAAASUVORK5CYII=",q3="/assets/competition-logo-default.png",K3={};var ex=(e=>(e.Small="s",e.Medium="m",e.Big="b",e.Original="o",e))(ex||{});const Q3=e=>e,Pt=e=>t=>t[e],X3=(e,t)=>n=>n[t]!=null?n[t]:e,lt=(e,t)=>n=>n[e]===t,tx=e=>t=>t.map(e),Mne=e=>t=>t.filter(e),Vy=(e,t,n)=>n!=null?t(n):e,Dne=e=>t=>({...t,...e}),os=class os{constructor(){se(this,"cache",new Map);se(this,"_enabled",!1);se(this,"host","https://statistics.bcapps.org");se(this,"krosstatsBaseUrl","https://krosstats.betcoapps.com/api");se(this,"skinHost","");se(this,"language","en");se(this,"showTeamLogos",!0);se(this,"showCompetitionLogos",!0)}get enabled(){return this._enabled}get externalUrl(){return`${this.skinHost||this.host}/#/${this.language}`}get krosstatsUrl(){return`${this.krosstatsBaseUrl}/${this.language}/${os.urlPrefix}`}get feedconstructUrl(){return`${os.feedconstructBaseUrl}/${this.language}/${os.urlPrefix}`}loadData(t,n,s){if(s){const r=jo({url:t,...n});return this.cache.has(r)?this.cache.get(r):this.cache.set(r,qe.get(t,{params:n}).catch(a=>{throw this.cache.delete(r),a})).get(r)}return qe.get(t,{params:n})}init({language:t,config:{enabled:n,host:s,showTeamLogos:r,showCompetitionLogos:a,skinHost:o,krosstatsBaseUrl:i}}){n&&(this._enabled=!0,this.skinHost=o?Kn(o):sx("statistics")),s&&(this.host=Kn(s)),i&&(this.krosstatsBaseUrl=Kn(i)),this.language=t,this.showTeamLogos=r,this.showCompetitionLogos=a}static getInstance(){return os.instance||(os.instance=new os),os.instance}setLanguage(t){this.language=t}overwriteSkinHost(t){this.skinHost=Kn(t)}getTeamLogoUrl(t=-1,n){return t>-1&&this.showTeamLogos?K3[t]??`${this.host}/images/e/${n}/${Math.floor(t/2e3)}/${t}.png`:K0}getTeamLogoOrKitUrl(t=-1,n,s=!1){return t>-1?this.showTeamLogos?this.getTeamLogoUrl(t,n):this.getTeamKitUrl(t,s):K0}getCompetitionLogoUrl(t,n){return this.showCompetitionLogos?`${this.host}/images/c/${n}/${Math.floor(t/2e3)}/${t}.png`:q3}getTeamKitUrl(t,n=!1){return`${this.host}/images/sh/${Math.floor(t/500)}/${n?2:1}-${t}.png`}getGeneralStatsInfo(t){return this.loadData(`${this.krosstatsUrl}/Entity/GetGeneralStatsInfo`,{matchId:t},!1).then(({data:n})=>n.GeneralStatsInfoResult)}getGameStatisticsUrl(t){return`${this.externalUrl}/external/page/redirect/${t}`}getMatchStatistics(t){return this.loadData(`${this.krosstatsUrl}/Entity/GetStatsForMatch`,{matchId:t},!1)}getScoredGoalsStatistics(t,n){return this.loadData(`${this.krosstatsUrl}/Entity/GetScoredGoalsStatistics`,{type:t,matchId:n},!1)}getHalfTimeFullTimePerformance(t){return this.loadData(`${this.krosstatsUrl}/Entity/GetHalfTimeFullTimePerformance`,{matchId:t},!1).then(({data:n})=>n.HalfTimeFullTimePerformanceList)}getTeamSearchResult(t,n=20,s=!1){return this.loadData(`${this.krosstatsUrl}/Utility/GetTeamSearchResult`,{searchString:t,take:n},s).then(Pt("data"))}getFullMatchInfo(t,n=!1){return this.loadData(`${this.krosstatsUrl}/Match/GetFullMatchInfo`,{matchId:t},n).then(Pt("data"))}getMembershipByMatchIdEntityId(t,n,s=!0){return this.loadData(`${this.krosstatsUrl}/entity/GetMembershipByMatchIdEntityId`,{matchId:t,entityId:n},s).then(Pt("data"))}};se(os,"LogoSize",ex),se(os,"instance"),se(os,"feedconstructBaseUrl","https://stats-api.feedconstruct.com/api"),se(os,"urlPrefix","900/93f428d0-6591-48da-859d-b6c326db2448");let Na=os;const Q0=/^\d+$/,jne=/^\D+/g,Bne=/[^\d.-]/g,J3=/\s|&|%|'|\$|\/|@|!|\?|#/g,Z3=/(?=[A-Z])/,Hy=/{([^}]*)}/g,e5=/\((.*?)\)/,Fne=/^[0-9]+$/,t5=/\s+/g,n5=/{sw}|{s}/g,s5=/[?&]+([^=&]+)=([^&]*)/gi,Une=/^\d{6}$/,$ne=/\d/,Gne=/[a-z]/,Vne=/[A-Z]/,Hne=/\W/,Wne=/^(?=.*\d)\d{4,}$/,zne=/^(?!.*?(.).*?\1).+$/,Yne=/^(?=.*[a-z])\w{4,}$/,r5=/\.([^?]+)(\?.*)?$/,qne=/^[0-9]*$/,Kne=/^0\d+/,Qne=/e/i,Xne=/[-._!"`'#%&,:;<>=@{}~\$\(\)\*\+\/\\\?\[\]\^\|]+/,Jne=/(\d+)/,Zne=/^\d+$/,ese=/\/redirect-to-game\/(\d+)\?/,a5="betcoapps.com",o5="_self",ze=(e=null)=>{const t={};return(e||window.location.href).replace(s5,(n,s,r)=>(t[s]=r,r)),t},tse=(e,t,n)=>`${e}${e.includes("?")?"&":"?"}${t}=${n}`,i5=(e,t,n)=>t?`data:image/svg+xml,${encodeURIComponent(e)}`:`data:image/${n};base64,${(r=>{let a;if(typeof r=="string")a=new TextEncoder().encode(r);else if(r instanceof Uint8Array)a=r;else if(r instanceof ArrayBuffer)a=new Uint8Array(r);else throw new Error("Buffer polyfill: Unsupported data type.");return{toString:o=>{if(o==="base64"){let l="";for(let c=0;cObject.entries(e).filter(([,t])=>t!==void 0).reduce((t,[n,s])=>(t.push(`${n}=${s}`),t),[]).join("&"),l5=window.location.href.includes("/embed/"),Xc=()=>`${window.location.protocol}//${window.location.host}${window.location.pathname}${window.location.hash?`${window.location.hash.split("?")[0]}`:""}`,zt=(...e)=>{window.history.replaceState({},document.title,e.length?nt(sL((t,n)=>e.includes(n)),ut,t=>Xc().concat(t?`?${t}`:""))(ze()):Xc())},ym=e=>{const t=ln.countryCode;return e.filter(n=>!n.excludedCountries||!n.excludedCountries.includes(t))},nse=e=>e.replace(/\s{2,}/g," "),sse=e=>{window.history.replaceState({},document.title,nt(ut,t=>Xc().concat(t?`?${t}`:""))({...ze(),...e}))},c5=(e,t)=>e&&t===o5?e:n=>e&&e.startsWith("?")?{search:`?${ut({...ze(n.search),...ze(e)})}`}:{pathname:e},Bo=e=>{const t=new Date;return t.setMinutes(Math.round(t.getMinutes()/e)*e%60),t.setSeconds(0),t.setMilliseconds(0),t.getTime().toString()},_c=(e={},t={})=>{let n;for(n in t)if(t.hasOwnProperty(n))try{t[n].constructor===Object?t[n]["@replace"]===!0?(e[n]=t[n],delete e[n]["@replace"]):e[n]=_c(e[n],t[n]):e[n]=t[n]}catch{e[n]=t[n]}return e},X0=(e,t,n="")=>{if(t=t>>0,e.length>=t)return String(e);{t=t-e.length;let s="";if(t>=n.length)for(;t>0;)s+=n,t--;return s+String(e)}},u5=(e,t="")=>{const n=[];for(const s in e)e.hasOwnProperty(s)&&(t&&(e[s][t]=s),n.push(e[s]));return n},d5=(e,t)=>e.order-t.order,f5=(e,t)=>e-t,rse=(e,t)=>{const n=new Intl.Collator(void 0,{numeric:!0,sensitivity:"base"});return[...t].sort((s,r)=>n.compare(s[e],r[e]))},Ji=(e=null)=>e?(e^Math.random()*16>>e/4).toString(16):`id${(9987e3+-1e11).toString().replace(/[018]/g,Ji)}`,Zf=e=>Object.prototype.toString.call(e)==="[object Object]",ase=e=>e.match(/(http(s)?:\/\/.)?(www\.)?[-a-zA-Z0-9@:%._+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_+.~#?&//=]*)/g)!==null,ose=e=>{const t={};for(const n in e)e.hasOwnProperty(n)&&e[n]!==null&&(t[n]=e[n]);return t},ise=e=>new Date(e*1e3).setHours(0,0,0,0)/1e3;function bm(e,t,n){return e.get(t)||n}const lse=e=>new Promise((t,n)=>{const s=new FileReader;s.onloadend=r=>{r.target?t({data:r.target.result,name:e.name}):n()},s.readAsDataURL(e)}),Yt=e=>{if(!e&&e!==0)return"";const[t,...n]=(typeof e=="string"?e:e.toString()).split(".");return[t.replace(/\B(?=(\d{3})+(?!\d))/g,","),...n].join(".")},p5=e=>{const t=r5.exec(e);if(t)return t[1]},cse=e=>e.replace(J3,"-").replace(/-{2,}/g,"-").replace(/^-+|-+$/g,"").toLowerCase(),use=e=>!e||isNaN(e.getTime())?"":[e.getFullYear(),X0((e.getMonth()+1).toString(),2,"0"),X0(e.getDate().toString(),2,"0")].join("-"),dse=e=>{const t=document.createElement("textarea");t.value=e,t.setAttribute("readonly",""),t.style.position="absolute",t.style.left="-9999px",document.body.appendChild(t),t.select(),document.execCommand("copy"),document.body.removeChild(t)},fse=e=>e.split(Z3).join("_").toLowerCase(),J0=(e,t)=>Zf(t)?Object.entries(t).reduce((n,[s,r])=>(n[e(s)]=J0(e,r),n),{}):Array.isArray(t)?t.map(n=>J0(e,n)):t,nx=e=>Array.from(new Set(e)),pse=e=>{const t=document.createElement("textarea");return t.innerHTML=e,t.value},Fo=E1(()=>{const{hostname:e,protocol:t}=window.location;if(e==="localhost"||t==="http:")return a5;const n=e.split(/\./);return n.slice(n.length===4?-3:-2).join(".")}),Kn=e=>e.includes("{domain}")?e.replace("{domain}",Fo()):e,sx=e=>{const{hostname:t,protocol:n}=window.location;return`${t==="localhost"?"https:":n}//${e}.${Fo()}`},m5=e=>{let t=e;return e.includes("://")&&(t=e.split("://")[1]),t.split(".")[0]},rx=(e,t)=>{const n=new URL(decodeURIComponent(e));return t.map(s=>String(n[s]))},mse=e=>{let t=decodeURIComponent(e);!t.startsWith("http://")&&!t.startsWith("https://")&&(t=`${window.location.protocol}//${t}`);const{hostname:n}=new URL(t),s=n.split("."),r=["co.uk","com.au","co.jp","co.in","com.br","net.br","org.br","gov.uk","ac.uk","gov.au","co.ke","com.mx","com.ar","com.co","com.sg","com.my","com.ph","com.ng","co.za","co.kr","co.th","co.id","com.tr","com.eg","com.sa","com.kw","com.om","com.qa","com.bh","com.lb","com.jo","com.cy","com.lk","com.bd","com.vn","com.hk","com.cn","com.tw","com.my","com.pk","com.np","com.af","com.kg","com.kz","com.tm","com.uz","com.az","com.ge","com.am","co.tz","co.zm","co.ug","com.na","co.bw","co.mz","com.et"],a=s.slice(-2).join("."),o=s.slice(-3).join(".");return r.includes(a)&&s.length>2?s.slice(-3).join("."):r.includes(o)&&s.length>3?s.slice(-4).join("."):s.length>2?s.slice(-2).join("."):n},ax=e=>e*60,ox=e=>ax(e*60),h5=e=>ox(e*24),Jc=()=>Math.floor(Date.now()/1e3),g5=(e=1)=>({width:window.screen.width*window.devicePixelRatio*e,height:window.screen.height*window.devicePixelRatio*e}),hse=e=>e.length>2,gse=e=>(e==null?void 0:e.replace(/\D/g,""))||"",_se=e=>{const[{name:t},{name:n}={}]=e;return`${t}+${n?" "+n:""}`},Ar=e=>e?/^[\p{Alpha}\p{N}-]*$/gu.test(e)?e.toLowerCase():e.replace(/[^\p{Alpha}\p{N} ]/gu,"").toLowerCase().trim().replace(/\s+/g,"-"):"_",_5=e=>e.replace(/_[a-z]/g,t=>t[1].toUpperCase()),vse=(e,t)=>{const n=e*(t/100);return parseFloat(n.toFixed(4))},Ese=e=>Na.getInstance().getTeamLogoOrKitUrl(e,Na.LogoSize.Big),yse=e=>{const t=e%10,n=e%100;return t===1&&n!==11?e+"st":t===2&&n!==12?e+"nd":t===3&&n!==13?e+"rd":e+"th"},bse=e=>e?e.split(",").reduce((t,n)=>{const[s,r]=n.split(":");return s&&r&&(t[s.trim()]=r.trim()),t},{}):{},Sse=(e,t)=>{const n=[];for(let s=0;s{if(!e||!t)return e;const s=e.lastIndexOf("@");if(s!==-1){const u=e.slice(0,s),f=e.slice(s+1),m=u.slice(0,2),h="*".repeat(Math.max(u.length-2,0));return`${m}${h}@${f}`}if(/^\+?\d+$/.test(e)){if(e.length<=4)return n?e:`${e}***`;if(n){const u=e.slice(-4),f=Math.max(e.length-4,0);return"*".repeat(f)+u}else{const u=e.match(/^(\+\d{1,3})?(\d{4})/);if(u){const[f,m="",h]=u,g=Math.max(e.length-m.length-h.length,0);return`${m}${h}${"*".repeat(g)}`}}}const a=5,o=e.slice(0,a),i=e.length>a?e.slice(-1):"",l=Math.max(e.length-o.length-i.length,0),c="*".repeat(l);return`${o}${c}${i}`},Lh=e=>{const t=(r,a)=>`${a}${r.startsWith("/")?r:"/"+r}`,n=N.cms.iconUrl,s=r=>{const a={...r};if(a.src&&a.src.icon){const o=Q.useWebp&&(a==null?void 0:a.webpSrc)&&(a==null?void 0:a.webpSrc.icon);a.src.icon=t(o?a.webpSrc.icon:a.src.icon,n)}return a.webpSrc&&a.webpSrc.icon&&(a.webpSrc.icon=t(a.webpSrc.icon,n)),a};return Array.isArray(e)?e.map(s):s(e)},v5=e=>e.endsWith("/")?e.slice(0,-1):e,Z0=(e,t)=>{if(t)return e;const n=["CasinoLastPlayedGames","CasinoGamesWidget"];return e.filter(s=>!s.content.some(a=>a.content.some(o=>{var l;const i=o;return n.includes(i==null?void 0:i.name)&&((l=i.settings)==null?void 0:l.getShowStateFromCms)===!0})))},Tse=e=>new Intl.NumberFormat("en-US",{notation:"compact",maximumFractionDigits:1}).format(e),Wy=e=>e.filter(t=>t.onlyDirect?!1:t.submenus.length>0?(t.submenus=Wy(t.submenus),t):!(t!=null&&t.onlyDirect)),wse=(e,t,n,s,r)=>{const a=[];return e>-1&&a.push("Time"),t&&a.push("Cloud"),n&&a.push("BetBuilder"),s&&a.push("Regions"),r&&a.push("PromotedGames"),a.length?a.length===1?`${a[0]} Filter`:`${a.join(", ")} Filters`:""};let ep=class hv{constructor(t,n,s=!1,r=!0){se(this,"data",null);se(this,"mergeUpdateData");se(this,"rid");se(this,"subId",null);se(this,"body");se(this,"subscribe");se(this,"requestHandlers",new Map);this.rid=t,this.body=n,this.subscribe=s,this.mergeUpdateData=r}addHandler(t=()=>{},n=()=>{}){const s=new Uy(t,n);return this.requestHandlers.set(s.id,s),this.data&&this.updateHandler(s,!0),s}removeHandler(t){this.requestHandlers.delete(t)}updateHandler(t,n=!1){t.onUpdate(this.data,n)}initializeHandlers(){this.requestHandlers.forEach(t=>this.updateHandler(t,!0))}updateHandlers(){this.requestHandlers.forEach(t=>this.updateHandler(t))}failHandlers(t){this.requestHandlers.forEach(n=>n.onFailure(t))}setData(t){this.data=t,this.initializeHandlers()}updateData(t){this.data=this.mergeUpdateData?hv.merge(this.data,t):t,this.updateHandlers()}static merge(t,n){const s={...t};for(const r in n)n.hasOwnProperty(r)&&(s.hasOwnProperty(r)?Zf(n[r])&&Zf(s[r])?s[r]=hv.merge(s[r],n[r]):n[r]===null?delete s[r]:s[r]=n[r]:n[r]!==null&&(s[r]=n[r]));return s}};const Ps=class Ps extends Fy{constructor(){super();se(this,"initialized",!1);se(this,"key")}static getInstance(){return Ps.instance||(Ps.instance=new Ps),Ps.instance}configure(n){this.key||(this.key=n)}init(n){return new Promise((s,r)=>{const a=document.createElement("script");a.id=Ps.scriptId,a.src=Ps.url+n,a.async=!0,a.defer=!0,a.onload=()=>window.grecaptcha.ready(()=>{this.initialized=!0,s(),this.dequeueAll()}),a.onerror=r;const o=document.getElementsByTagName("script")[0];o&&o.parentNode?o.parentNode.insertBefore(a,o):document.head.appendChild(a)})}getToken(n){return new Promise((s,r)=>{if(this.key)if(this.initialized)window.grecaptcha.execute(this.key,{action:n}).then(s);else{const a=this.key;this.enqueue(()=>window.grecaptcha.execute(a,{action:n}).then(s)),this.init(a)}else r("Recaptcha v.3 not enabled")})}};se(Ps,"instance"),se(Ps,"Actions",{sessionOpened:"session_opened"}),se(Ps,"url","https://www.recaptcha.net/recaptcha/api.js?render="),se(Ps,"scriptId","recaptcha-v3-script");let vc=Ps;function E5(e,t,n){let s;const r=rL(()=>{e(s),s=void 0},t);return(...a)=>{s=n(s,[...a]),r()}}class zy extends Fy{constructor({url:n,scriptId:s,onLoad:r,onError:a}){super();se(this,"url");se(this,"scriptId");se(this,"container");this.url=n,this.scriptId=s,this.container=this.createContainer(),this.loadScript({onLoad:r,onError:a})}createContainer(){const n=document.createElement("div");return document.body.appendChild(n),n}loadScript({onLoad:n,onError:s}){const r=document.createElement("script");r.id=this.scriptId,r.src=this.url,r.onload=n,r.onerror=s,this.insertScript(r)}insertScript(n){const s=document.getElementsByTagName("script")[0];s!=null&&s.parentNode?s.parentNode.insertBefore(n,s):document.head.appendChild(n)}}const y5="hcaptcha-script",b5="https://hcaptcha.com/1/api.js?render=explicit";class S5 extends zy{constructor({sitekey:n,locale:s}){super({scriptId:y5,url:b5,onLoad:()=>{this.widgetId=window.hcaptcha.render(this.container,{sitekey:n,hl:s,size:"invisible",callback:this.onSuccessCallback,"error-callback":this.onErrorCallback,"close-callback":this.onErrorCallback}),this.dequeueAll()},onError:()=>{rt.error("Failed to insert HCaptcha")}});se(this,"widgetId");se(this,"callbacks",[]);se(this,"sitekey");se(this,"onSuccessCallback",n=>{const[s]=this.callbacks.shift();s(n)});se(this,"onErrorCallback",n=>{const[,s]=this.callbacks.shift();s(n)});this.sitekey=n}execute(n){return new Promise((s,r)=>{this.callbacks.push([s,r]),window.hcaptcha.execute(n)})}getToken(){return new Promise((n,s)=>{this.widgetId?this.execute(this.widgetId).then(n).catch(s):this.enqueue(()=>this.execute(this.widgetId).then(n).catch(s))})}changeLocale(n){this.container.remove(),this.container=this.createContainer(),this.widgetId=window.hcaptcha.render(this.container,{sitekey:this.sitekey,hl:n,size:"invisible",callback:this.onSuccessCallback,"error-callback":this.onErrorCallback,"close-callback":this.onErrorCallback})}}const eC=0,C5=49,T5=56,w5=30,I5=32,A5=40,ix=40,P5=64,x5=36,O5=36,Ise=36,Ase=-15,Pse=1026,xse=1300,gv="smart-panel-holder",k5="smart-panel-settings-button-id",N5="smart-panel-notification-button-id",R5="smart-panel-favorites-button-id",lx="betslip_container",Ose="casino_games_list_container",kse="cashback-table-bodies",Nse=290,Mh=Symbol("messageQueue"),tC="display-none",_v="page-full-size",nC="hide-tab-navigation-footer-mobile",Rse="truNarrative-verification-popup",sC="scroll-locked",cx="Escape",rC=4,L5=7,Ec={label:"Not found",value:"-999999"},M5="turnstile-captcha-wrapper",Lse="login_form_id",D5="base_popup_id",Mse="register_form_id",Dse="quick_bet_wrapper",j5="close_popup_button_id",jse="login_button_id",Bse="register_button_id",Fse="quick_bet_close_button",Use={width:"90px",height:"90px"},$se={width:"68px",height:"68px"},Gse={width:"148px",height:"200px"},Vse={width:"148px",height:"200px"},B5={width:"80px",height:"80px"},F5={width:"44px",height:"44px"},U5="44/31",$5="3 / 4",G5="turnstile-script",V5="https://challenges.cloudflare.com/turnstile/v0/api.js?render=explicit",H5="active";class W5 extends zy{constructor(n,s){super({scriptId:G5,url:V5,onLoad:()=>{rt.success("Turnstile successfully inserted"),this.container.classList.add(M5)},onError:()=>{rt.error("Failed to insert Turnstile")}});se(this,"language");se(this,"widgetId","");se(this,"longActionsMap",{send_verification_code_with_username:"send_sms"});se(this,"siteKey");this.siteKey=n,this.language=s}getValidActionName(n){return this.longActionsMap[n]||n}toggleActiveClassName(){this.container.classList.toggle(H5)}removeWidget(){this.widgetId&&(this.toggleActiveClassName(),window.turnstile.remove(this.widgetId),this.widgetId="")}resetWidget(){this.toggleActiveClassName(),this.widgetId?window.turnstile.reset(this.widgetId):this.enqueue(()=>window.turnstile.reset(this.widgetId))}interactTurnstile(n){return new Promise((s,r)=>{try{this.toggleActiveClassName(),this.removeWidget(),this.widgetId=window.turnstile.render(this.container,{action:this.getValidActionName(n),appearance:"execute",sitekey:this.siteKey,language:this.language,"timeout-callback":this.resetWidget,"expired-callback":this.resetWidget,callback:a=>{s(a),this.dequeueAll(),this.removeWidget()},"error-callback":a=>{r(),rt.error(a),this.removeWidget()}})}catch(a){console.error(a),this.toggleActiveClassName(),r(a)}})}changeLanguage(n){this.language=n,this.removeWidget()}}const Ou="AUTH_DATA",ku=`${hl}${Ou}_NOT_REMEMBER`,ux=864e3,Yy=43200;let tp=!!Te.getItem(ku),Sm=null;const Cm=()=>N.partner.integrationMode||Q.integrationType!==Qf.ENTIRE,z5=(e,t=!1)=>{Sm=e,Cm()||(t?(tp=!1,Te.setItem(Ou,e,ux)):(tp=!0,Te.setItem(ku,e,Yy)))},Y5=e=>{Sm=e,Cm()||(tp?Te.setItem(ku,e,Yy):Te.setItem(Ou,e,ux))},dx=(e=!0)=>Cm()||!e?Sm:tp?Te.getItem(ku):Te.getItem(Ou),q5=(e=!0)=>{const t=dx(e);return t?t.auth_token:null},K5=()=>{Sm=null,Cm()||(Te.removeItem(ku),Te.removeItem(Ou))},vt={set:z5,get:dx,getAuthToken:q5,clear:K5,update:Y5};var fx=(e=>(e[e.DISABLED=0]="DISABLED",e[e.VERSION_3=3]="VERSION_3",e))(fx||{}),st=(e=>(e[e.Registration=1]="Registration",e[e.Login=2]="Login",e[e.ForgetPassword=3]="ForgetPassword",e[e.ResetPassword=4]="ResetPassword",e[e.RegisterViaWallet=5]="RegisterViaWallet",e[e.ForgetUsername=6]="ForgetUsername",e[e.OneClickRegistration=7]="OneClickRegistration",e))(st||{});const Hse=37;var Q5=(e=>(e[e.Google=1]="Google",e[e.Facebook=2]="Facebook",e[e.X=3]="X",e[e.Telegram=4]="Telegram",e))(Q5||{});const In={eng:"en",ger:"de",hat:"fr",fra:"fr",spa:"es",ita:"it",por:"pt",por_2:"pb","pt-br":"pb",gre:"el",rus:"ru",lit:"lt",lav:"lv",arm:"hy",geo:"ka",arb:"ar",far:"fa",tur:"tr",chn:"zh",chi:"zh",zho:"zh",est:"et",ind:"id",kor:"ko",msa:"ms",pol:"pl",ron:"ro",cze:"cs",slo:"sk",slk:"sk",kur:"ku",jpn:"ja",aze:"az",srp:"sr",ukr:"uk",zhh:"zs",bgr:"bg",translit:"rt",nor:"no",nld:"nl",dut:"nl",fas:"fa",heb:"he",swe:"sv",fin:"fi",slv:"sl",tha:"th",sqi:"sq","en-ca":"cn",kir:"ky",kin:"rw",swa:"sw",uzb:"uz",vnm:"vi",dan:"da",amh:"am",hin:"hi",rum:"ro",azf:"ap",kaz:"kk",hrv:"hr",sgp:"sy",ben:"bn",tgl:"tl",rov:"rv",aus:"au","en-nz":"nz",urd:"ur",kmr:"km",wol:"wo"},X5=Eu(In),vv={pol:"eng","pt-br":"por_2",fre:"fra",hat:"fra",chi:"zho",mac:"mkd",lat:"lav",fas:"fas",sqi:"alb",dut:"nld",rum:"ron",vnm:"vie"},ls=new Xr;var mn=(e=>(e[e.Regular=0]="Regular",e[e.High=1e3]="High",e[e.Blocker=2e3]="Blocker",e))(mn||{});const J5=()=>({current:-1,nextIdx:0,contentMap:new Map});class qy{constructor(){se(this,"queue",J5())}static findNextPopupIndex(t,n){return n>100?-1:t.contentMap.has(n+1)?n+1:qy.findNextPopupIndex(t,n+1)}close(t){const n=this.queue;if(n.contentMap.delete(t),t===n.current&&(ls.dispatchEvent("close",!0),n.contentMap.size>0)){let s=-1,r=-1/0;if(n.contentMap.forEach((a,o)=>{a.priority>r&&(r=a.priority,s=o)}),s!==-1){const a=n.contentMap.get(s);a&&(n.current=s,ls.dispatchEvent("open",a))}}}update(t,n){const s=this.queue,r=s.contentMap.has(t)?{...s.contentMap.get(t),...n}:null;r&&(s.contentMap.set(t,r),s.current===t&&ls.dispatchEvent("update",n))}openTooltip(t){return ls.dispatchEvent("openTooltip",t),()=>ls.dispatchEvent("openTooltip",{...t,content:null})}closeTooltip(){ls.dispatchEvent("closeTooltip")}open(t,n=0){const s=this.queue,r=s.nextIdx;s.nextIdx++;const a=c=>this.update(r,c),o=()=>this.close(r),i={...typeof t=="function"?t(o,a):t,popupId:r,priority:n};s.contentMap.set(r,i);const l=s.contentMap.get(s.current);return(!l||n>l.priority)&&(l&&(s.contentMap.set(l.popupId,l),ls.dispatchEvent("close",!1)),s.current=r,ls.dispatchEvent("open",i)),{close:o,update:a}}}const ve=new qy,Qn="something_went_wrong",Wse="failed_to_delete_message",Z5="message_for_valid_phone_code",e2="message_for_valid_phone_number",t2="should_contain_11_digits",aC="invalid_turkish_id",Dh="invalid_romanian_id",n2="should_contain_13_digits",s2="should_be_18_plus",Yo="invalid_south_african_id",r2="should_contain_13_digits",a2="should_be_18_or_above",o2="accept_gift_bet_success",i2="accept_gift_bet_failure",l2="accept_gift_bet_confirmation",c2="bonus_info_selections",u2="bonus_rules_with_same_rules",d2="boosted_odd_exclusion_warning",oC="bonus_info_some_selection_lower_min_odd",zse="express_bonus_count",Yse="express_bonus_min_odds",qse="zero_margin_description",Kse="express_bonus_min_stake",Qse="express_bonus_sport",Xse="express_bonus_percent",iC="betslip_sign_in",f2="betslip_register",p2="bet_success_bonus_money",m2="bet_success_bonus_money_french_freebet",px="Bet success",Jse="Booking success",mx="Some of your bets are under review",h2="superbet_popup_description",g2="superbet_request_rejection_content",np="issue_with_bet_contact_support",Zse="no_games_found_provider",_2="auth_restriction_by_ip_warning",v2="switching_to_child_session",E2="switching_to_new_child_session",ere="no_favourite_competitions_description",tre="no_favorite_markets_info",nre="min_age_restriction_message",sre="login_to_play_video",rre="contact_support",are="registration_form_title",ore="one_click_registration_form_title",ire="under_registration_buttons_text_on_auth_popup",lre="under_one_click_registration_buttons_text_on_auth_popup",cre="phone_number_sms_verification",ure="email_verification",dre="sms_email_verification",fre="balance_transfer_description",pre="no_saved_wallets",mre="card_has_expired",hre="gifted_to",gre="sent_gift_bet_success",_re="sent_gift_bet_failure",vre="Gift_bet_email_description",Ere="edit_bet_confirmation",yre="not_enough_points",bre="insufficient_points_to_exchange",Sre="monthly_points_received",Cre="confirm_to_claim_bonus",Tre="confirm_bonus_cancellation",wre="confirm_to_collect_bonus",Ire="congratulations_to_collect_bonus",Are="your_bonus_on_your_main_balance",Pre="deposit_limit_description",xre="predefined_deposit_limit_description",Ore="bet_limits_description",kre="bet_limits_description_header",Nre="self-exclusion-text",Rre="self_exclusion_text_header",Lre="deposit_limit_warning",Mre="deposit_limit_warning_header",Dre="current_session_info_description",jre="occupation_description",Bre="profile_balance_limit_description",Fre="profile_balance_limit_description_hint",Ure="loss_limits_description",$re="profile_session_duration_limit_description",Gre="profile_session_duration_description_hint",Vre="profile_session_duration_description_hint_header",Hre="account-verification-text",Wre="verify_trunarrative_description",zre="confrim_self_exclusion",Yre="pinnacle_not_available",qre="safer_gambling_not_available",Kre="read-more",hx="N/A",Qre="bonus_for_verified_users_desc",y2="dont_show_again",Xre="activate_two_factor_authentication",Jre="two-factor-authentication-switched-off",Zre="two_factor_description",eae="two_factor_email_description",lC="two_factor_validation_failed",tae="activate_authentication_with_code",nae="authentication_message_sent",sae="loyalty_points_next_status_update",rae="Multiple of the day",aae="delete_user_message_confirmation",oae="promo_already_opt_in",b2="casino_game_popup_blocked_warning",iae="casino_multiview_change_disabled",lae="no_match_found",cae="no_market_to_show",uae="Registration failed due to technical error.",dae="document_size_exceeded",fae="no_user_loyalty_level",pae="Is-Verified",mae="Is-Deposit-Requirement-Complete",hae="Is-Sportsbook-Requirement-Complete",gae="Is-Casino-Requirement-Complete",_ae="No data available at the moment",vae="No data available",Eae="client_bonus_expiration_date",yae="buddy_transfer_select_option",bae="video_filter",Sae="region_filter",Cae="sort_by_competition",Tae="bet_cloud_filter",wae="promoted_games_filter",Iae="express_id_group",Aae="cashout_available",Pae="statistics_widget_available",xae="no_game_selected_results",Oae="bet_status_input_placeholder",S2="more_nav",kae="cannot_create_auto_cashout_rule",Nae="Statistics",Rae="Copy id",Lae="Copy link",Mae="Copy Code",Dae="Delete",jae="Close",Bae="Refresh",Fae="add_to_favorite_games",Uae="not_eligible_refer_to_friend",$ae="share_link_refer_to_friend",Gae="has_data_refer_to_friend",Vae="open_in_popup_window",Hae="click_to_change_to_fun_mode",Wae="click_to_change_to_real_mode",zae="max_short",gx="need_to_login",Yae="uk_regulation_text",qae="uk_regulation_login_text",Kae="need_to_switch_to_ftn",C2="near_logo_text",Qae="free_spin_convert_confirmation",Xae="free_spin_convert_success",Jae="transaction_id",Zae="withdraw_fee_message",eoe="bonus_journey",toe="identity_check_popup_content",noe="re_verification_popup_content",soe="fill_in_form_popup_content",T2="client_bet_stake_limit_error_message",roe="the_time_display_indicator_in_live",aoe="login_limit_text",ooe="login_limit_success_description",ioe="do_you_want_to_unsubscribe",loe="unsubscribe_no_longer_receive_newsletters",coe="unsubscribe",uoe="If you have unsubscribed by mistake, you can change your subscription settings in your {1} account or contact support.",doe="no_today_s_bets",foe="no_olympic_matches",w2="you_are_restricted",I2="you_need_to_verified",poe="final_step",moe="there_is_no_any_mini_game",hoe="bet_builder_filter",goe="bet_outright_filter",_oe="bet_region_filter",voe="unsupported_format_exception",cC="Sport Balance",uC="Casino Balance",A2="Main Balance",P2="Frozen Balance",x2="Casino Bonus",O2="Sport Bonus",k2="Freebet Balance",N2="Total Balance",R2="Bonus Balance Description",Eoe="Withdrawable Amount",yoe="Bonus Balance",boe="Total Bonus money",Soe="Deposit",L2="Withdraw",Coe="no_available_options",Toe="italian_kyc",M2="terms_and_conditions_pop_up",D2="terms_and_conditions_acceptance_error",woe="accept_withdraw_request",Ioe="no_such_game",Aoe="crypto_transaction_error",Poe="confirm_popup_after_reg_close_title",xoe="confirm_popup_after_reg_close_content",Ooe="error_with_wallet_confirmation",koe="password_validation_case_no_space",Noe="password_validation_case_lower_upper_case",Roe="password_validation_case_least_one_digit",Loe="password_validation_case_min_length",Moe="password_validation_case_max_length",Doe="password_message_strong",joe="password_message_medium",Boe="password_message_low",Foe="password_message_low_letter",Uoe="password_message_upper_letter",$oe="password_message_symbol",Goe="password_only_english_letters",Voe="password_english_or_turkish_letters",Hoe="search_country",Woe="search_country_code",zoe="verification_code_sent",Yoe="verification_code_sent_to_email",j2="betslip_licence_message",qoe="confirm_after_bet_builder_close_title",Koe="confirm_after_bet_builder_close_content",Qoe="tournament_join_error",Xoe="confirm_popup_before_netherlands_reg_title",Joe="confirm_popup_before_netherlands_reg_content",Zoe="free_tournament_message",B2="bet_not_found_title",F2="bet_not_found_message",eie="trunarrative_popup_content",tie="signicat_kyc_popup_content",nie="legitimuz_kyc_popup_content",sie="stake_and_earn_description_stake",rie="rewards_history",aie="stake_and_earn_description_stake_withdraw",oie="no_rewards_history",iie="no_jackpot_rewards_history",lie="no_stake_history",U2="quick_bet_error_message",cie="confirm_popup_before_reg_open_title",uie="confirm_popup_before_reg_open_content",die="required_verification_kyc_description",_x="should_contain_ten_digits",$2="invalid_bulgarian_id",vx="invalid_check_digit",fie="what_is_a_loyalty_point_title",pie="what_is_a_loyalty_point_content",mie="page_builder_preview_forbidden",hie="page_builder_save_success",gie="page_builder_save_failure",_ie="reset_password_info_message",vie="verify_your_account_description",Eie="last_deposit_time_warning_description",yie="first_deposit_required_warning_description",bie="profile_cashback_description",Sie="text_about_locked_events",Cie="text_about_locked_bet_builder_event",Tie="confirmation_settings_info_text",wie="confirmation_settings_change_success",Iie="loyalty_program_no_user_benefits",G2="stake_is_required_for_bet",Aie="rofus_content",Pie="two_factor_confirmation_content",xie="time_out_confirmation_info_title",Oie="time_out_confirmation_content",kie="under_sign_in_buttons_text_on_auth_popup",Nie="login_popup_bottom_description",Rie="verification_countdown_right_text",Lie="verification_countdown_text_bottom",Mie="verification_countdown_text_top",Die="withdraw_status_info_text",jie="account_closure_description",Bie="personal_details_description",Fie="session_duration_inactive_description",V2="location_access_required_description",Uie="deposit_limited_increased",$ie="deposit_limited_decreased",Gie="session_duration_limits_increased",Vie="session_duration_limits_decreased",Hie="go_to_homepage",Wie="sort_alphabetically",zie="deposit_success_title",Yie="deposit_fail_title",qie="single_view",Kie="sure_bet_info",Qie="multi_view",Xie="document_info_description",Jie="reset_password_in_change_password_description",Zie="reset_password_in_change_password_title",ele="sumsub_verification_title",tle="collapsed_view",nle="expanded_view",sle="favorite_team_search_empty",rle="client_registration_date",ale="pagcor_license_title",ole="pagcor_license_description",ile="bet_on_politics_bet_success",lle="bet_on_politics_bet_failure",cle="confirmation_settings_content",ule="update_subscription_description",dle="update_salary_range_description",H2="session_termination_single_login_description",W2="confirm_deposit_popup_close_title",z2="confirm_deposit_popup_close_content",fle="express_login_ai_badge",Y2="express_logout_ai_badge";var Ky=(e=>(e[e.TIMEOUT=1]="TIMEOUT",e[e.SELF_EXCLUSION=2]="SELF_EXCLUSION",e[e.SPORTSBOOK_TEMPORARY_BLOCKED=3]="SPORTSBOOK_TEMPORARY_BLOCKED",e[e.SPORTSBOOK_BLOCKED_FOR_ACCOUNT_CLOSURE=4]="SPORTSBOOK_BLOCKED_FOR_ACCOUNT_CLOSURE",e[e.ACCOUNT_CLOSURE=5]="ACCOUNT_CLOSURE",e[e.BETTING_BLOCKED=6]="BETTING_BLOCKED",e[e.BETTING_BLOCKED_UK=7]="BETTING_BLOCKED_UK",e))(Ky||{});const ple={1:"Time-Out period set.",2:"Self-Exclusion period set.",3:"Your restriction period for betting was set.",4:"Your restriction period was set.",5:"Your account is closed.",6:"Your restriction period for deposit and betting was set.",7:"Your restriction period was set."};var rf=(e=>(e.GRANTED="granted",e.DENIED="denied",e.PROMPT="prompt",e.UNKNOWN="unknown",e))(rf||{}),q2=(e=>(e[e.Registration=1]="Registration",e[e.Login=2]="Login",e[e.PasswordChange=3]="PasswordChange",e[e.ProfileUpdate=4]="ProfileUpdate",e[e.PasswordReset=5]="PasswordReset",e[e.PasswordResetWithConfirmationCode=6]="PasswordResetWithConfirmationCode",e[e.Withdrawal=13]="Withdrawal",e[e.Optional=17]="Optional",e[e.EmailGetCode=20]="EmailGetCode",e[e.TwoFactorAuthentication=24]="TwoFactorAuthentication",e[e.PromoCode=28]="PromoCode",e[e.ConfirmationSettings=29]="ConfirmationSettings",e[e.CriptoWithdrawal=31]="CriptoWithdrawal",e))(q2||{});const mle={type:"closeUserInfoPanel",data:{}},hle={"-1":"All",1:"New User (N)",2:"Low Risk (LR)",3:"Negative",4:"High Risk (HR)",5:"VIP (V)",6:"Not Playing (NP)",7:"No Bonus User (NBU)",8:"Casino (CA)",9:"Agent (A)",10:"Test User (TU)",11:"Arbitrage Betting (AB)",12:"SFM",25:"Corridor (C)",26:"Late Betting (LB)",27:"Strong Opinion (SO)",29:"1/2SFM",30:"Strong",31:"BeforeVIP",33:"Review",34:"BOT ARB",35:"Bonus hunter",36:"Value Bet (VB)",37:"Very Negative",38:"Neutral",39:"Betshop Agent (BA)",40:"Additional"},gle="telegram_id";var Jl=(e=>(e.LoginLimit="login-limit",e.SessionDuration="session_duration",e))(Jl||{});const K2=4,Ex=5,Q2=[K2,Ex];var yx=(e=>(e[e.Vip=5]="Vip",e))(yx||{});const en=new Xr,Ev="Success",X2="Failure",_le="Pending",J2="cdn-geo-comply",Z2=Ji(),eU="check_user_location",Dr=class Dr extends zy{constructor(n){super({url:n,scriptId:J2,onError:()=>{rt.error("An Error occurred while loading GeoComply CDN")},onLoad:()=>{rt.success("GeoComply successfully inserted."),this.geoClient=window.GcHtml5.createClient(),this.geoClient.setReason(eU)}});se(this,"userId");se(this,"geoClient",null)}async getGeoComplyLicense(){try{const{details:{LicenseString:n},result:s}=await ee.get({},"get_geo_comply_license_string");if(s===0)return n;throw new Error}catch(n){return Promise.reject(`Failed to get license string from Swarm. reason: ${n}`)}}static showLocationError(n){en.dispatchEvent("trackingEvent",{category:"Other",action:"Enable access to location error"}),ve.open({type:"warning",content:n})}async checkGeoComplyToken(n){return new Promise(async(s,r)=>{try{const{details:{IsSuccess:a,ErrorMessage:o},result:i}=await ee.get({location_token:n},"geo_comply_geolocation_check");if(i===0&&a)s();else throw new Error(o)}catch(a){a instanceof Error&&Dr.showLocationError(a.message),r(a)}})}static isLocationServiceAvailable(){return!!(this.instance&&this.instance.geoClient&&N.app.locationBaseUrl)}checkLocationContinuously(n,s){this.userId!==n&&this.setUserId(n);const r=()=>this.checkLocationEligibility().catch(s),a=setInterval(()=>{r()},30*60*1e3);return r(),()=>clearInterval(a)}checkLocationEligibility(){return new Promise(async(n,s)=>{const r=await this.getLocationToken();this.checkGeoComplyToken(r).then(n).catch(s)})}async getLocationToken(){try{if(Dr.isLocationServiceAvailable()&&this.geoClient)return this.showLocationPopupIfRequired(),new Promise(async(n,s)=>{const r=await this.getGeoComplyLicense();this.geoClient.setLicense(r),this.geoClient.setUserId(this.userId||Z2);const a=async i=>{this.geoClient.events.off("success",a),this.geoClient.events.off("failed",o),n(i)},o=(i,l)=>{this.geoClient.events.off("success",a),this.geoClient.events.off("failed",o),console.error(`${i} ${l}`),s("Error occurred while getting token from GeoComply")};this.geoClient.events.on("success",a),this.geoClient.events.on("failed",o),this.geoClient.request({acceptNoCoordinates:!0})});throw new Error("GeoComply is not initialized")}catch(n){return console.error(n),Promise.reject()}}setUserId(n){this.userId=n}async getLocationPermissionState(){return new Promise(n=>navigator.geolocation.getCurrentPosition(()=>n(rf.GRANTED),()=>n(rf.DENIED)))}showLocationPopupIfRequired(){this.getLocationPermissionState().then(n=>{n&&n===rf.GRANTED||ve.open({type:"info",content:V2,onClose:()=>{en.dispatchEvent("trackingEvent",{category:"Other",action:"Clicked enable access to location popup"})}})})}static getInstance(){return Dr.instance}static init(n){Dr.instance||(Dr.instance=new Dr(n))}};se(Dr,"instance");let Vr=Dr;var bx={exports:{}},Sx={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},Cx={exports:{}},tU=function(t){return!t||typeof t=="string"?!1:t instanceof Array||Array.isArray(t)||t.length>=0&&(t.splice instanceof Function||Object.getOwnPropertyDescriptor(t,t.length-1)&&t.constructor.name!=="String")},nU=tU,sU=Array.prototype.concat,rU=Array.prototype.slice,dC=Cx.exports=function(t){for(var n=[],s=0,r=t.length;s=4&&e[3]!==1&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"};ps.to.keyword=function(e){return wx[e.slice(0,3)]};function Aa(e,t,n){return Math.min(Math.max(t,e),n)}function fd(e){var t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}var oU=bx.exports;const Zc=Sx,Ix={};for(const e of Object.keys(Zc))Ix[Zc[e]]=e;const Le={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};var Ax=Le;for(const e of Object.keys(Le)){if(!("channels"in Le[e]))throw new Error("missing channels property: "+e);if(!("labels"in Le[e]))throw new Error("missing channel labels property: "+e);if(Le[e].labels.length!==Le[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:n}=Le[e];delete Le[e].channels,delete Le[e].labels,Object.defineProperty(Le[e],"channels",{value:t}),Object.defineProperty(Le[e],"labels",{value:n})}Le.rgb.hsl=function(e){const t=e[0]/255,n=e[1]/255,s=e[2]/255,r=Math.min(t,n,s),a=Math.max(t,n,s),o=a-r;let i,l;a===r?i=0:t===a?i=(n-s)/o:n===a?i=2+(s-t)/o:s===a&&(i=4+(t-n)/o),i=Math.min(i*60,360),i<0&&(i+=360);const c=(r+a)/2;return a===r?l=0:c<=.5?l=o/(a+r):l=o/(2-a-r),[i,l*100,c*100]};Le.rgb.hsv=function(e){let t,n,s,r,a;const o=e[0]/255,i=e[1]/255,l=e[2]/255,c=Math.max(o,i,l),u=c-Math.min(o,i,l),f=function(m){return(c-m)/6/u+1/2};return u===0?(r=0,a=0):(a=u/c,t=f(o),n=f(i),s=f(l),o===c?r=s-n:i===c?r=1/3+t-s:l===c&&(r=2/3+n-t),r<0?r+=1:r>1&&(r-=1)),[r*360,a*100,c*100]};Le.rgb.hwb=function(e){const t=e[0],n=e[1];let s=e[2];const r=Le.rgb.hsl(e)[0],a=1/255*Math.min(t,Math.min(n,s));return s=1-1/255*Math.max(t,Math.max(n,s)),[r,a*100,s*100]};Le.rgb.cmyk=function(e){const t=e[0]/255,n=e[1]/255,s=e[2]/255,r=Math.min(1-t,1-n,1-s),a=(1-t-r)/(1-r)||0,o=(1-n-r)/(1-r)||0,i=(1-s-r)/(1-r)||0;return[a*100,o*100,i*100,r*100]};function iU(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}Le.rgb.keyword=function(e){const t=Ix[e];if(t)return t;let n=1/0,s;for(const r of Object.keys(Zc)){const a=Zc[r],o=iU(e,a);o.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,s=s>.04045?((s+.055)/1.055)**2.4:s/12.92;const r=t*.4124+n*.3576+s*.1805,a=t*.2126+n*.7152+s*.0722,o=t*.0193+n*.1192+s*.9505;return[r*100,a*100,o*100]};Le.rgb.lab=function(e){const t=Le.rgb.xyz(e);let n=t[0],s=t[1],r=t[2];n/=95.047,s/=100,r/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,s=s>.008856?s**(1/3):7.787*s+16/116,r=r>.008856?r**(1/3):7.787*r+16/116;const a=116*s-16,o=500*(n-s),i=200*(s-r);return[a,o,i]};Le.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,s=e[2]/100;let r,a,o;if(n===0)return o=s*255,[o,o,o];s<.5?r=s*(1+n):r=s+n-s*n;const i=2*s-r,l=[0,0,0];for(let c=0;c<3;c++)a=t+1/3*-(c-1),a<0&&a++,a>1&&a--,6*a<1?o=i+(r-i)*6*a:2*a<1?o=r:3*a<2?o=i+(r-i)*(2/3-a)*6:o=i,l[c]=o*255;return l};Le.hsl.hsv=function(e){const t=e[0];let n=e[1]/100,s=e[2]/100,r=n;const a=Math.max(s,.01);s*=2,n*=s<=1?s:2-s,r*=a<=1?a:2-a;const o=(s+n)/2,i=s===0?2*r/(a+r):2*n/(s+n);return[t,i*100,o*100]};Le.hsv.rgb=function(e){const t=e[0]/60,n=e[1]/100;let s=e[2]/100;const r=Math.floor(t)%6,a=t-Math.floor(t),o=255*s*(1-n),i=255*s*(1-n*a),l=255*s*(1-n*(1-a));switch(s*=255,r){case 0:return[s,l,o];case 1:return[i,s,o];case 2:return[o,s,l];case 3:return[o,i,s];case 4:return[l,o,s];case 5:return[s,o,i]}};Le.hsv.hsl=function(e){const t=e[0],n=e[1]/100,s=e[2]/100,r=Math.max(s,.01);let a,o;o=(2-n)*s;const i=(2-n)*r;return a=n*r,a/=i<=1?i:2-i,a=a||0,o/=2,[t,a*100,o*100]};Le.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100,s=e[2]/100;const r=n+s;let a;r>1&&(n/=r,s/=r);const o=Math.floor(6*t),i=1-s;a=6*t-o,o&1&&(a=1-a);const l=n+a*(i-n);let c,u,f;switch(o){default:case 6:case 0:c=i,u=l,f=n;break;case 1:c=l,u=i,f=n;break;case 2:c=n,u=i,f=l;break;case 3:c=n,u=l,f=i;break;case 4:c=l,u=n,f=i;break;case 5:c=i,u=n,f=l;break}return[c*255,u*255,f*255]};Le.cmyk.rgb=function(e){const t=e[0]/100,n=e[1]/100,s=e[2]/100,r=e[3]/100,a=1-Math.min(1,t*(1-r)+r),o=1-Math.min(1,n*(1-r)+r),i=1-Math.min(1,s*(1-r)+r);return[a*255,o*255,i*255]};Le.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,s=e[2]/100;let r,a,o;return r=t*3.2406+n*-1.5372+s*-.4986,a=t*-.9689+n*1.8758+s*.0415,o=t*.0557+n*-.204+s*1.057,r=r>.0031308?1.055*r**(1/2.4)-.055:r*12.92,a=a>.0031308?1.055*a**(1/2.4)-.055:a*12.92,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,r=Math.min(Math.max(0,r),1),a=Math.min(Math.max(0,a),1),o=Math.min(Math.max(0,o),1),[r*255,a*255,o*255]};Le.xyz.lab=function(e){let t=e[0],n=e[1],s=e[2];t/=95.047,n/=100,s/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,s=s>.008856?s**(1/3):7.787*s+16/116;const r=116*n-16,a=500*(t-n),o=200*(n-s);return[r,a,o]};Le.lab.xyz=function(e){const t=e[0],n=e[1],s=e[2];let r,a,o;a=(t+16)/116,r=n/500+a,o=a-s/200;const i=a**3,l=r**3,c=o**3;return a=i>.008856?i:(a-16/116)/7.787,r=l>.008856?l:(r-16/116)/7.787,o=c>.008856?c:(o-16/116)/7.787,r*=95.047,a*=100,o*=108.883,[r,a,o]};Le.lab.lch=function(e){const t=e[0],n=e[1],s=e[2];let r;r=Math.atan2(s,n)*360/2/Math.PI,r<0&&(r+=360);const o=Math.sqrt(n*n+s*s);return[t,o,r]};Le.lch.lab=function(e){const t=e[0],n=e[1],r=e[2]/360*2*Math.PI,a=n*Math.cos(r),o=n*Math.sin(r);return[t,a,o]};Le.rgb.ansi16=function(e,t=null){const[n,s,r]=e;let a=t===null?Le.rgb.hsv(e)[2]:t;if(a=Math.round(a/50),a===0)return 30;let o=30+(Math.round(r/255)<<2|Math.round(s/255)<<1|Math.round(n/255));return a===2&&(o+=60),o};Le.hsv.ansi16=function(e){return Le.rgb.ansi16(Le.hsv.rgb(e),e[2])};Le.rgb.ansi256=function(e){const t=e[0],n=e[1],s=e[2];return t===n&&n===s?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(s/255*5)};Le.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const n=(~~(e>50)+1)*.5,s=(t&1)*n*255,r=(t>>1&1)*n*255,a=(t>>2&1)*n*255;return[s,r,a]};Le.ansi256.rgb=function(e){if(e>=232){const a=(e-232)*10+8;return[a,a,a]}e-=16;let t;const n=Math.floor(e/36)/5*255,s=Math.floor((t=e%36)/6)/5*255,r=t%6/5*255;return[n,s,r]};Le.rgb.hex=function(e){const n=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(n.length)+n};Le.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let n=t[0];t[0].length===3&&(n=n.split("").map(i=>i+i).join(""));const s=parseInt(n,16),r=s>>16&255,a=s>>8&255,o=s&255;return[r,a,o]};Le.rgb.hcg=function(e){const t=e[0]/255,n=e[1]/255,s=e[2]/255,r=Math.max(Math.max(t,n),s),a=Math.min(Math.min(t,n),s),o=r-a;let i,l;return o<1?i=a/(1-o):i=0,o<=0?l=0:r===t?l=(n-s)/o%6:r===n?l=2+(s-t)/o:l=4+(t-n)/o,l/=6,l%=1,[l*360,o*100,i*100]};Le.hsl.hcg=function(e){const t=e[1]/100,n=e[2]/100,s=n<.5?2*t*n:2*t*(1-n);let r=0;return s<1&&(r=(n-.5*s)/(1-s)),[e[0],s*100,r*100]};Le.hsv.hcg=function(e){const t=e[1]/100,n=e[2]/100,s=t*n;let r=0;return s<1&&(r=(n-s)/(1-s)),[e[0],s*100,r*100]};Le.hcg.rgb=function(e){const t=e[0]/360,n=e[1]/100,s=e[2]/100;if(n===0)return[s*255,s*255,s*255];const r=[0,0,0],a=t%1*6,o=a%1,i=1-o;let l=0;switch(Math.floor(a)){case 0:r[0]=1,r[1]=o,r[2]=0;break;case 1:r[0]=i,r[1]=1,r[2]=0;break;case 2:r[0]=0,r[1]=1,r[2]=o;break;case 3:r[0]=0,r[1]=i,r[2]=1;break;case 4:r[0]=o,r[1]=0,r[2]=1;break;default:r[0]=1,r[1]=0,r[2]=i}return l=(1-n)*s,[(n*r[0]+l)*255,(n*r[1]+l)*255,(n*r[2]+l)*255]};Le.hcg.hsv=function(e){const t=e[1]/100,n=e[2]/100,s=t+n*(1-t);let r=0;return s>0&&(r=t/s),[e[0],r*100,s*100]};Le.hcg.hsl=function(e){const t=e[1]/100,s=e[2]/100*(1-t)+.5*t;let r=0;return s>0&&s<.5?r=t/(2*s):s>=.5&&s<1&&(r=t/(2*(1-s))),[e[0],r*100,s*100]};Le.hcg.hwb=function(e){const t=e[1]/100,n=e[2]/100,s=t+n*(1-t);return[e[0],(s-t)*100,(1-s)*100]};Le.hwb.hcg=function(e){const t=e[1]/100,s=1-e[2]/100,r=s-t;let a=0;return r<1&&(a=(s-r)/(1-r)),[e[0],r*100,a*100]};Le.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};Le.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};Le.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};Le.gray.hsl=function(e){return[0,0,e[0]]};Le.gray.hsv=Le.gray.hsl;Le.gray.hwb=function(e){return[0,100,e[0]]};Le.gray.cmyk=function(e){return[0,0,0,e[0]]};Le.gray.lab=function(e){return[e[0],0,0]};Le.gray.hex=function(e){const t=Math.round(e[0]/100*255)&255,s=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(s.length)+s};Le.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};const sp=Ax;function lU(){const e={},t=Object.keys(sp);for(let n=t.length,s=0;s1&&(n=s),e(n))};return"conversion"in e&&(t.conversion=e.conversion),t}function gU(e){const t=function(...n){const s=n[0];if(s==null)return s;s.length>1&&(n=s);const r=e(n);if(typeof r=="object")for(let a=r.length,o=0;o{ti[e]={},Object.defineProperty(ti[e],"channels",{value:yv[e].channels}),Object.defineProperty(ti[e],"labels",{value:yv[e].labels});const t=pU(e);Object.keys(t).forEach(s=>{const r=t[s];ti[e][s]=gU(r),ti[e][s].raw=hU(r)})});var _U=ti;const ni=oU,ds=_U,Px=["keyword","gray","hex"],bv={};for(const e of Object.keys(ds))bv[[...ds[e].labels].sort().join("")]=e;const rp={};function rn(e,t){if(!(this instanceof rn))return new rn(e,t);if(t&&t in Px&&(t=null),t&&!(t in ds))throw new Error("Unknown model: "+t);let n,s;if(e==null)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof rn)this.model=e.model,this.color=[...e.color],this.valpha=e.valpha;else if(typeof e=="string"){const r=ni.get(e);if(r===null)throw new Error("Unable to parse color from string: "+e);this.model=r.model,s=ds[this.model].channels,this.color=r.value.slice(0,s),this.valpha=typeof r.value[s]=="number"?r.value[s]:1}else if(e.length>0){this.model=t||"rgb",s=ds[this.model].channels;const r=Array.prototype.slice.call(e,0,s);this.color=Sv(r,s),this.valpha=typeof e[s]=="number"?e[s]:1}else if(typeof e=="number")this.model="rgb",this.color=[e>>16&255,e>>8&255,e&255],this.valpha=1;else{this.valpha=1;const r=Object.keys(e);"alpha"in e&&(r.splice(r.indexOf("alpha"),1),this.valpha=typeof e.alpha=="number"?e.alpha:0);const a=r.sort().join("");if(!(a in bv))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=bv[a];const{labels:o}=ds[this.model],i=[];for(n=0;n(e%360+360)%360),saturationl:Dt("hsl",1,Qt(100)),lightness:Dt("hsl",2,Qt(100)),saturationv:Dt("hsv",1,Qt(100)),value:Dt("hsv",2,Qt(100)),chroma:Dt("hcg",1,Qt(100)),gray:Dt("hcg",2,Qt(100)),white:Dt("hwb",1,Qt(100)),wblack:Dt("hwb",2,Qt(100)),cyan:Dt("cmyk",0,Qt(100)),magenta:Dt("cmyk",1,Qt(100)),yellow:Dt("cmyk",2,Qt(100)),black:Dt("cmyk",3,Qt(100)),x:Dt("xyz",0,Qt(95.047)),y:Dt("xyz",1,Qt(100)),z:Dt("xyz",2,Qt(108.833)),l:Dt("lab",0,Qt(100)),a:Dt("lab",1),b:Dt("lab",2),keyword(e){return e!==void 0?new rn(e):ds[this.model].keyword(this.color)},hex(e){return e!==void 0?new rn(e):ni.to.hex(this.rgb().round().color)},hexa(e){if(e!==void 0)return new rn(e);const t=this.rgb().round().color;let n=Math.round(this.valpha*255).toString(16).toUpperCase();return n.length===1&&(n="0"+n),ni.to.hex(t)+n},rgbNumber(){const e=this.rgb().color;return(e[0]&255)<<16|(e[1]&255)<<8|e[2]&255},luminosity(){const e=this.rgb().color,t=[];for(const[n,s]of e.entries()){const r=s/255;t[n]=r<=.04045?r/12.92:((r+.055)/1.055)**2.4}return .2126*t[0]+.7152*t[1]+.0722*t[2]},contrast(e){const t=this.luminosity(),n=e.luminosity();return t>n?(t+.05)/(n+.05):(n+.05)/(t+.05)},level(e){const t=this.contrast(e);return t>=7?"AAA":t>=4.5?"AA":""},isDark(){const e=this.rgb().color;return(e[0]*2126+e[1]*7152+e[2]*722)/1e4<128},isLight(){return!this.isDark()},negate(){const e=this.rgb();for(let t=0;t<3;t++)e.color[t]=255-e.color[t];return e},lighten(e){const t=this.hsl();return t.color[2]+=t.color[2]*e,t},darken(e){const t=this.hsl();return t.color[2]-=t.color[2]*e,t},saturate(e){const t=this.hsl();return t.color[1]+=t.color[1]*e,t},desaturate(e){const t=this.hsl();return t.color[1]-=t.color[1]*e,t},whiten(e){const t=this.hwb();return t.color[1]+=t.color[1]*e,t},blacken(e){const t=this.hwb();return t.color[2]+=t.color[2]*e,t},grayscale(){const e=this.rgb().color,t=e[0]*.3+e[1]*.59+e[2]*.11;return rn.rgb(t,t,t)},fade(e){return this.alpha(this.valpha-this.valpha*e)},opaquer(e){return this.alpha(this.valpha+this.valpha*e)},rotate(e){const t=this.hsl();let n=t.color[0];return n=(n+e)%360,n=n<0?360+n:n,t.color[0]=n,t},mix(e,t){if(!e||!e.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);const n=e.rgb(),s=this.rgb(),r=t===void 0?.5:t,a=2*r-1,o=n.alpha()-s.alpha(),i=((a*o===-1?a:(a+o)/(1+a*o))+1)/2,l=1-i;return rn.rgb(i*n.red()+l*s.red(),i*n.green()+l*s.green(),i*n.blue()+l*s.blue(),n.alpha()*r+s.alpha()*(1-r))}};for(const e of Object.keys(ds)){if(Px.includes(e))continue;const{channels:t}=ds[e];rn.prototype[e]=function(...n){return this.model===e?new rn(this):n.length>0?new rn(n,e):new rn([...yU(ds[this.model][e].raw(this.color)),this.valpha],e)},rn[e]=function(...n){let s=n[0];return typeof s=="number"&&(s=Sv(n,t)),new rn(s,e)}}function vU(e,t){return Number(e.toFixed(t))}function EU(e){return function(t){return vU(t,e)}}function Dt(e,t,n){e=Array.isArray(e)?e:[e];for(const s of e)(rp[s]||(rp[s]=[]))[t]=n;return e=e[0],function(s){let r;return s!==void 0?(n&&(s=n(s)),r=this[e](),r.color[t]=s,r):(r=this[e]().color[t],n&&(r=n(r)),r)}}function Qt(e){return function(t){return Math.max(0,Math.min(e,t))}}function yU(e){return Array.isArray(e)?e:[e]}function Sv(e,t){for(let n=0;ne.hsl().object().l,md=e=>e.rgb().array().map(Math.floor).join(", "),Fh=(e,t)=>`${t}-${e}`,xx=e=>{const t={...e};return Object.keys(fC).forEach(n=>fC[n].forEach(s=>{!t.hasOwnProperty(s)&&t[n]&&(t[s]=t[n])})),t},Ox=({"font-light":e=go["font-light"],"font-dark":t=go["font-dark"],...n})=>{const s=xx(n),r=Object.fromEntries(Object.entries(s).map(([i,l])=>[`--${i}`,l])),a=md(Bh(t)),o=md(Bh(e));return Object.entries(r).reduce((i,[l,c])=>{if(!go[l.replace("--","")])i[l]=c;else{const u=Bh(c),f=u.isLight();l==="--b"&&(i["--neutral"]=f?a:o,i[Fh("sc","--neutral")]=f?o:a);const[m,,h]=f?[mC(u)-pC,t,a]:[mC(u)+pC,e,o];i[Fh("hover",l)]=md(u.lightness(m)),i[Fh("sc",l)]=h,i[l]=md(u)}return i},{})},Qy=(e,t)=>Object.entries(t).forEach(([n,s])=>{e.style.setProperty(n,s)}),kx=e=>{const[t,n,s]=e.split(",").map(a=>parseInt(a.trim(),10)),r=a=>a.toString(16).padStart(2,"0").toUpperCase();return`#${r(t)}${r(n)}${r(s)}`},vle=(e,t=1)=>{const n=e.replace("#",""),s=parseInt(n,16),r=s>>16&255,a=s>>8&255,o=s&255;return`rgba(${r}, ${a}, ${o}, ${t})`},Ele=(e,t,n=!1)=>t.reduce((s,r)=>({...s,[r]:n?kx(e.style.getPropertyValue(r).trim()):e.style.getPropertyValue(r).trim()}),{}),SU=e=>Object.fromEntries(Object.entries(e).map(([t,n])=>[t.replace(/^--/,""),n])),Nx=p.createContext({}),Rx=p.createContext({}),Lx=e=>{var t;return!!((t=N.app.availableLanguages[e])!=null&&t.rtl)},Tm=e=>In[e],Mx=(e,t)=>{N.partner.integrationMode||Te.setItem(e,t)},Dx=e=>Te.getItem(e),CU=()=>{const{app:{preferences:e},sportsbook:{enabled:t,availableSportLayouts:n}}=N,s={};for(const a in e){const o=Te.getItem(a);e.hasOwnProperty(a)&&o!==null&&(s[a]=o)}const r={...e,multiColumnView:Q.isMobile?!1:e.multiColumnView,...s};return r.languageRtl=Lx(r.language),r.locale=Tm(r.language),r.productType=r.productType??(t?"sport":"casino"),r.sportsbookLayout=r.sportsbookLayout&&n&&Object.keys(n).includes(r.sportsbookLayout)?r.sportsbookLayout:n!=null&&n.classic?"classic":"asian",r},TU=["currentPath","productType"],wU=({language:e,assets:t,children:n})=>{const{themes:s}=N.app,r=p.useRef(""),[a,o]=p.useState(()=>({...CU(),language:e,assets:t})),i=p.useCallback((l,c,u)=>{TU.includes(l)||en.dispatchEvent("trackingEvent",{category:"Settings",action:l,label:String(c)}),o(f=>f[l]!==c?{...f,[l]:c}:f),u||Mx(l,c)},[]);return p.useLayoutEffect(function(){const c=Lx(a.language);document.documentElement.dir=c?"rtl":"ltr";const u=Tm(a.language);document.documentElement.lang=u,o(f=>({...f,languageRtl:c,locale:u}))},[a.language]),p.useLayoutEffect(function(){var c;if(s){const u=s.find(f=>f.theme===a.theme);Qy(document.documentElement,Ox(Vy(go,f=>({...go,...xx(f)}),{...u==null?void 0:u.scheme,...(c=u==null?void 0:u.additionalParams)==null?void 0:c.cssVariables}))),r.current&&He.dispatchEvent("removeRootClassName",`theme-${r.current}`),He.dispatchEvent("addRootClassName",`theme-${a.theme}`),r.current=a.theme}},[a.theme,s]),d.jsx(Nx.Provider,{value:a,children:d.jsx(Rx.Provider,{value:i,children:n})})},ke=()=>p.useContext(Nx),hC=()=>typeof window<"u"&&typeof window.grecaptcha<"u"&&typeof window.grecaptcha.render=="function";let gC;const IU={zhh:"zh-CN","pt-br":"pt-BR"},AU=({error:e,theme:t="dark",refresh:n,size:s="normal",recaptchaKey:r="",onChange:a})=>{const[o,i]=p.useState(r),{language:l}=ke(),c=p.useRef(l),u=p.useRef(!1),f=()=>{if(hC())try{window.grecaptcha.reset()}catch{}},m=p.useCallback(()=>{u.current&&window.grecaptcha.render("g-recaptcha",{sitekey:o,callback:h=>a&&a(h),theme:t,size:s,"error-callback":f,"expired-callback":f})},[o,t,s,a]);return p.useEffect(()=>{c.current=l},[l]),p.useEffect(()=>{if(o&&!u.current){const h=()=>{hC()&&(clearInterval(gC),m())},g=document.createElement("script");g.src="https://www.recaptcha.net/recaptcha/api.js?hl="+(IU[c.current]||Tm(c.current)||"en")+"&render=explicit",g.async=!0,g.defer=!0,document.body.appendChild(g),gC=setInterval(h,100),u.current=!0}},[m,o]),p.useEffect(()=>{o||ee.get({},"recaptcha_sitekey").then(({result:h})=>{i(h)}).catch(h=>{rt.error(h)})},[o]),p.useEffect(()=>{f()},[e,n]),d.jsxs("div",{className:"input-control-holder-bc recaptcha",children:[d.jsx("div",{className:"recaptcha-control-bc",style:{display:"flex",justifyContent:"center"},id:"g-recaptcha"}),e&&d.jsx("div",{className:"input-control-error-message-bc",children:e})]})},_C=e=>new Promise((t,n)=>{ve.open(s=>({title:"Verify recaptcha",hideCloseButton:!0,Component:r=>d.jsx(AU,{...r,error:"",refresh:!1,size:Q.isMobile?"compact":"normal",recaptchaKey:e,onChange:a=>ee.get({version:"v2",g_recaptcha_response:a},"validate_recaptcha").then(o=>{s(),o.result?t(o):n(o)})})}),mn.Blocker)});let qs={};const jx={},PU=e=>{N.payment.methods.forEach(t=>{var n,s;jx[t.paymentId]={...(n=t==null?void 0:t.translations)==null?void 0:n.default,...(s=t==null?void 0:t.translations)==null?void 0:s[e]}})},Bx=e=>(PU(e),new Promise(t=>{qe.get(`/translations/${e}.json?v=${Bo(5)}`).then(n=>{qs=n.data}).finally(()=>{t()})})),Xy=p.createContext({}),xU=(e,t,n)=>{var r;const s=(qs==null?void 0:qs[e])??e;if((r=qs==null?void 0:qs[e])!=null&&r.includes(n)){const a=`${e}_${String(t)}`;return qs[a]=s.replace(n,String(t)),a}return e},OU=({children:e})=>{const{language:t}=ke(),n=p.useCallback((r="",a)=>{const o=(qs==null?void 0:qs[r])??r;return a?o.replace(Hy,(i,l)=>a[l]!==void 0?a[l].toString():i):o},[t]),s=p.useCallback((r,a)=>{var o;return((o=jx[r])==null?void 0:o[a])??a},[]);return d.jsx(Xy.Provider,{value:{trans:n,paymentTrans:s},children:e})},Se=()=>p.useContext(Xy).trans,yle=()=>p.useContext(Xy).paymentTrans,kU=({response:e})=>{const t=Se();return d.jsx("p",{className:"casino-popup-content",children:t("{1} Sent to: {2}",{1:e.msg||"",2:e.data||""})})},NU=e=>ve.open({title:"Security Verification",Component:()=>d.jsx(kU,{response:e})},mn.High);var Fx=(e=>(e[e.SUCCESS=0]="SUCCESS",e[e.FAILURE=2]="FAILURE",e[e.SESSION_LOST=5]="SESSION_LOST",e[e.NEED_TO_LOGIN=12]="NEED_TO_LOGIN",e[e.RECAPTCHA_REQUIRED=27]="RECAPTCHA_REQUIRED",e[e.TURNSTILE_MISMATCH=32]="TURNSTILE_MISMATCH",e[e.TURNSTILE_VALIDATION_EXPIRED=33]="TURNSTILE_VALIDATION_EXPIRED",e[e.TURNSTILE_CAPTCHA_REQUIRED=34]="TURNSTILE_CAPTCHA_REQUIRED",e[e.ANTI_PHISHING_VALIDATION=41]="ANTI_PHISHING_VALIDATION",e[e.SESSION_ALREADY_ACTIVE=558]="SESSION_ALREADY_ACTIVE",e))(Fx||{}),Ux=(e=>(e.TIMEOUT_CANCELED="Restore session cancelled. Most likely the websocket connection closed unexpectedly.",e.UNABLE_TO_OPEN_SESSION="Unable to open session. Giving up.",e.UNABLE_TO_RESTORE_SESSION="Couldn't restore session",e.UNABLE_TO_REOPEN_WEBSOCKET="Couldn't reestablish websocket connection. Giving up.",e.UNINITIALIZED="Swarm instance not initialized (Swarm.init)",e.CAPTCHA_UNVERIFIED="Couldn't verify captcha",e.TURNSTILE_ERROR="Turnstile has not verified",e))(Ux||{});const RU={request_session:"request_session",validate_recaptcha:"validate_recaptcha",validate_hcaptcha:"validate_hcaptcha",validate_turnstile:"validate_turnstile"},LU={login:"login",register_user:"register_user",create_bets:"create_bets"},Ze=class Ze extends Ri{constructor(){super(...arguments);se(this,"connectionParams",null);se(this,"wsCloseResolver",null);se(this,"session",null);se(this,"hCaptcha");se(this,"hCaptchaActions",new Set);se(this,"reCaptchaActions",new Set);se(this,"sessionRetryAttempts",0);se(this,"turnstile");se(this,"turnstileActions",new Set);se(this,"_unsubscribe",E5(n=>{try{const s=[];n.forEach(r=>{const a=this.unsubIdRidMap.get(r);if(a){this.unsubIdRidMap.delete(r);const o=this.requests.get(a);o&&o.requestHandlers.size===0&&o.subId&&(s.push({subId:o.subId,rid:a}),this.needToResubscribe.set(a,!1),this.requests.delete(a))}}),s.length&&this.removeSubscription(s)}catch(s){this.handleInternalErrors(s)}},100,(n=new Set,s)=>new Set([...n,...s])));se(this,"onopen",async()=>{try{this.session=await this.openSession(),this.dequeueAll(),this.sessionRetryAttempts=0}catch(n){if(rt.warning(n),this.sessionRetryAttempts{if(this.session=null,!this.webSocket){this.wsCloseResolver&&(this.wsCloseResolver(),this.wsCloseResolver=null);return}if(n!==4e3){if(!this.connectionParams)throw Error(Ze.Errors.UNINITIALIZED);try{await this.delay(),this.reopenConnectionAndRestoreSession()}catch{}}});se(this,"listeners",{});se(this,"addMessageListener",({rId:n,subId:s},r)=>{this.listeners[`${n}_${s}`]?this.listeners[`${n}_${s}`].includes(r)||this.listeners[`${n}_${s}`].push(r):this.listeners[`${n}_${s}`]=[r]});se(this,"removeMessageListener",({rId:n,subId:s},r)=>{if(!r&&this.listeners[`${n}_${s}`])return delete this.listeners[`${n}_${s}`];if(r&&this.listeners[`${n}_${s}`].includes(r)){const a=this.listeners[`${n}_${s}`].indexOf(r);this.listeners[`${n}_${s}`].splice(a,1)}});se(this,"onmessage",async n=>{var a;const s=JSON.parse(n),{rid:r}=s;if(r!=="0"){const o=this.requests.get(r);if(!o)return;switch(s.code){case Ze.Codes.SUCCESS:if(o.subscribe){const{data:i,subid:l}=s.data;o.subId=l,o.requestHandlers.size===0?(this.needToResubscribe.set(r,!1),this.requests.delete(r),this.removeSubscription([{subId:l,rid:r}])):(o.setData(i),this.subIdRidMap.set(l,r))}else o.setData(s.data),this.requests.delete(r);break;case Ze.Codes.NEED_TO_LOGIN:case Ze.Codes.FAILURE:o.failHandlers(s),this.requests.delete(r);break;case Ze.Codes.SESSION_LOST:o.body.command==="remove_session"&&this.requests.delete(r),this.session=null,await this.disconnect(4e3,"Session lost, need to reopen socket"),this.reopenConnectionAndRestoreSession();break;case Ze.Codes.SESSION_ALREADY_ACTIVE:this.requests.delete(r);break;case Ze.Codes.RECAPTCHA_REQUIRED:{const i=s.data;_C(i).then(l=>{o.setData({...l,authentication_status:Ze.Codes.RECAPTCHA_REQUIRED}),this.requests.delete(r)});break}case Ze.Codes.ANTI_PHISHING_VALIDATION:{NU(s),o.setData({authentication_status:Ze.Codes.ANTI_PHISHING_VALIDATION}),this.requests.delete(r);break}case 32:case 33:(a=this.turnstile)==null||a.removeWidget(),o.setData({authentication_status:Ze.Codes.TURNSTILE_VALIDATION_EXPIRED}),this.requests.delete(r);break;case 34:{const i=s.data,[l]=i.split("__");this.validateViaTurnstile(l,!0).then(()=>{o.setData({authentication_status:Ze.Codes.TURNSTILE_CAPTCHA_REQUIRED}),this.requests.delete(r)});break}default:o.failHandlers(s),this.requests.delete(r)}}else{const{data:o}=s;for(const i in o)if(o.hasOwnProperty(i)){const l=`${r}_${i??""}`;this.listeners[l]&&this.listeners[l].forEach(f=>f(o[i]));const c=this.subIdRidMap.get(i);if(c){const u=this.requests.get(c);u&&u.updateData(o[i])}}}});se(this,"onerror",n=>{});se(this,"handleSocketClose")}handleInternalErrors(n){var s;switch(super.handleInternalErrors(n),n.message){case Ze.Errors.UNABLE_TO_OPEN_SESSION:case Ze.Errors.UNABLE_TO_RESTORE_SESSION:case Ze.Errors.UNABLE_TO_REOPEN_WEBSOCKET:(s=this.handleSocketClose)==null||s.call(this,n.message),this.webSocket&&this.closeConnection(4e3,n.message);break}}connect(n){this.connectionParams=n,this.url=n.url,n.useLongPolling?(this.onopen(),this.updateSubscriptionsViaLongPolling()):this.openConnection(this.onopen,this.onclose,this.onerror,this.onmessage),this.handleSocketClose=n.onSocketClose}async getSession(){return this.session?Promise.resolve(this.session):new Promise(n=>this.enqueue(()=>n(this.getSession())))}get(n,s="get"){return new Promise((r,a)=>this.validateViaProtectionServices(s).then(async()=>{const o=await this.changeExistingParamsIfRequired(n,s),i=Ri.generateRid({params:o,command:s}),l=this.requests.get(i);if(l)l.addHandler(r,a);else{const c={command:s,params:o,rid:i},u=new ep(i,c);this.requests.set(i,u),this.sendRequest(u.body),u.addHandler(r,a)}}).catch(a))}subscribe(n,s,r=()=>{},a=!0){n.subscribe=!0;const o=Ri.generateRid(n),i=this.requests.get(o);if(!i){const c={command:"get",params:n,rid:o},u=new ep(o,c,!0,a),f=u.addHandler(s,r);return this.requests.set(o,u),this.unsubIdRidMap.set(f.id,o),this.needToResubscribe.has(o)?this.needToResubscribe.set(o,!0):this.sendRequest(u.body),f.id}const l=i.addHandler(s,r);return this.unsubIdRidMap.set(l.id,o),l.id}login({user:n,encrypted_token:s,additionalParams:r={}}){return this.get({...n,...r,encrypted_token:s},"login")}socialNetworkLogin({code:n,social_network_type_id:s,redirect_url:r}){return this.get({code:n,social_network_type_id:s,redirect_url:r,social_network_type:""},"social_network_login")}logout(n={}){return this.get(n,"logout")}restore(n={},s){if(!this.connectionParams)throw Error(Ze.Errors.UNINITIALIZED);this.connectionParams.session={...this.connectionParams.session,...n},this.reopenConnectionAndRestoreSession(s)}disconnect(n,s){return new Promise(r=>{this.webSocket?(this.wsCloseResolver=r,this.closeConnection(n,s)):r()})}validateRecaptchaAction(n){return this.session?this.session.recaptcha_enabled&&this.session.recaptcha_version===3?this.getRecaptchaTokenAndValidate(n):Promise.reject("Recaptcha not enabled or version is other than 3"):n===vc.Actions.sessionOpened?this.getRecaptchaTokenAndValidate(n):new Promise(s=>{this.enqueue(()=>this.validateRecaptchaAction(n).then(s))})}async getRecaptchaTokenAndValidate(n){const r=await vc.getInstance().getToken(n);return this.get({g_recaptcha_response:r,action:n},Ze.AllowedCommands.validate_recaptcha)}updateSubscriptionsViaLongPolling(){this.session&&this.subIdRidMap.size>0?qe.post(this.url,{command:"whats_up"},{headers:{"Content-Type":"application/json","swarm-session":this.session.sid}}).then(({data:n})=>{this.onmessage(JSON.stringify({...n,rid:"0"})),this.updateSubscriptionsViaLongPolling()}).catch(()=>{setTimeout(()=>this.updateSubscriptionsViaLongPolling(),5e3)}):setTimeout(()=>this.updateSubscriptionsViaLongPolling(),500)}sendViaHTTP(n){qe.post(this.url,n,{headers:{"Content-Type":"application/json",...this.session&&{"swarm-session":this.session.sid}}}).then(({data:s})=>{this.onmessage(JSON.stringify({...s,rid:n.rid}))})}sendRequest(n){var s;this.session||Ze.AllowedCommands[n.command]?this.webSocket?this.webSocket.send(n):(s=this.connectionParams)!=null&&s.useLongPolling&&this.sendViaHTTP(n):this.enqueue(()=>{var r;this.webSocket?this.webSocket.send(n):(r=this.connectionParams)!=null&&r.useLongPolling&&this.sendViaHTTP(n)})}removeSubscription(n){const s=n.map(Pt("subId"));(s.length?s.length>1?this.get({subids:s},"unsubscribe_bulk"):this.get({subid:s[0]},"unsubscribe"):Promise.reject("No sub ids provided")).catch(rt.warning).finally(()=>{for(const{rid:a}of n){if(this.needToResubscribe.get(a)){const o=this.requests.get(a);o&&this.sendRequest(o.body)}this.needToResubscribe.delete(a)}})}unsubscribe(n){if(!n)return rt.warning("Can't unsubscribe without a subid.");const s=this.unsubIdRidMap.get(n);if(s){const r=this.requests.get(s);r&&(r.removeHandler(n),this._unsubscribe(n))}}async openSession(){if(!this.connectionParams)throw Error(Ze.Errors.UNINITIALIZED);const{session:n}=this.connectionParams,s=await this.get(n,Ze.AllowedCommands.request_session);rt.success("Session successfully opened");const{recaptcha_enabled:r,recaptcha_version:a,site_key:o,hc_enabled:i,hc_site_key:l,hc_verify_actions:c,turnstile_enabled:u,turnstile_verify_actions:f,turnstile_site_key:m,recaptcha_actions:h}=s;return r&&a===3?(vc.getInstance().configure(o),this.reCaptchaActions=new Set(h)):i&&l?(this.hCaptcha=new S5({sitekey:l,locale:In[n.language]}),this.hCaptchaActions=new Set(c)):u&&m&&(this.turnstile=new W5(m,In[n.language]),this.turnstileActions=new Set(f)),s}restoreLogin(n){return n.jwe_token?this.get({jwe_token:n.jwe_token,...n.auth_token&&{auth_token:n.auth_token}},"login_encrypted").then(s=>n.auth_token?s:{...s,jwe_token:""}):!n.auth_token&&n.nem_id_access_token&&n.username&&n.nonce&&n.redirect_url?this.get({access_token:n.nem_id_access_token,login:n.username,nonce:n.nonce,redirect_url:n.redirect_url},"login_with_nem_id"):this.get({user_id:n.user_id,auth_token:n.auth_token},"restore_login")}async restoreSession(){try{this.sessionRetryAttempts+=1,rt.warning(`Trying to restore session. Attempt #${this.sessionRetryAttempts}.`),this.session=await this.openSession();const n=vt.get();if(n)try{await this.restoreLogin(n)}catch{}this.requests.forEach((s,r)=>{s.body.command.includes("unsubscribe")?this.requests.delete(r):this.sendRequest(s.body)}),this.sessionRetryAttempts=0}catch{if(this.sessionRetryAttemptsthis.restoreSessionAndDequeue(n),this.onclose,this.onerror,this.onmessage)):this.handleInternalErrors(Error(Ze.Errors.UNABLE_TO_REOPEN_WEBSOCKET))}setLanguages(n,s){return this.get({language:n},s).then(r=>(this.hCaptcha&&this.hCaptcha.changeLocale(In[n]),this.turnstile&&this.turnstile.changeLanguage(In[n]),r))}reportError(n,s,r){this.getSession().then(({sid:a})=>this.get({report_type:`REACTIVE SPORTSBOOK: ${n}`,report_time:Jc(),affected_sid:a,...s&&{trace:JSON.stringify(s,Object.getOwnPropertyNames(s))},...r&&{additional:r}},"report"))}isRecaptchaEnabled(){return this.getSession().then(({recaptcha_enabled:n,recaptcha_version:s})=>n&&s===fx.VERSION_3)}validateSynchronously(n){return new Promise((s,r)=>{this.isRecaptchaEnabled().then(a=>{if(a&&this.reCaptchaActions.has(n))return this.validateRecaptchaAction(n).catch(o=>{if(o.code===27&&o.data)return _C(o.data);r(o)})}).then(()=>{s()})})}async validateViaProtectionServices(n){return n in Ze.AllowedCommands?Promise.resolve():new Promise((s,r)=>Promise.all([this.validateSynchronously(n),this.validateHCaptchaIfRequired(n),this.validateViaTurnstile(n)]).then(s).catch(r))}changeExistingParamsIfRequired(n,s){return new Promise(async r=>{if(Ze.GeoComplyCommands[s]&&Vr.isLocationServiceAvailable()){const o=await Vr.getInstance().getLocationToken();s===Ze.GeoComplyCommands.create_bets&&r({...n,bets:n.bets.map(i=>({...i,GeoLocationToken:o}))}),s===Ze.GeoComplyCommands.register_user&&r({...n,user_info:{...n.user_info,location_token:o}}),r({location_token:o,...n})}r(n)})}async validateViaTurnstile(n,s=!1){const{turnstile_enabled:r}=await this.getSession();if(r&&this.turnstile&&(s||this.turnstileActions.has(n)))return this.turnstile.interactTurnstile(n).then(a=>this.get({action:n,turnstile_response_token:a},Ze.AllowedCommands.validate_turnstile).then(({result:o})=>{if(!o)throw new Error(Ze.Errors.TURNSTILE_ERROR)})).catch(()=>{throw new Error(Ze.Errors.TURNSTILE_ERROR)})}validateHCaptchaIfRequired(n){return this.getSession().then(({hc_enabled:s})=>{if(s&&this.hCaptcha&&this.hCaptchaActions.has(n))return this.hCaptcha.getToken().then(r=>this.get({h_captcha_response:r,action:n},Ze.AllowedCommands.validate_hcaptcha)).then(({result:r})=>{if(!r)throw new Error(Ze.Errors.CAPTCHA_UNVERIFIED)}).catch(r=>{throw new Error(r??Ze.Errors.CAPTCHA_UNVERIFIED)})})}};se(Ze,"Codes",Fx),se(Ze,"Errors",Ux),se(Ze,"AllowedCommands",RU),se(Ze,"GeoComplyCommands",LU);let Cv=Ze;const ee=new Cv;var Es=(e=>(e[e.Desktop=42]="Desktop",e[e.Mobile=6]="Mobile",e))(Es||{});const $x=2,Uo=3,MU="promo_code",DU="loyalty_code",ble="g_s_e_e",Gx="l_b_p_c",Tv="l_b_p",Sle="c_l_p_g",Cle="bonus_journey",jU="todays_bets_group_by_competitions",BU="olympic_matches_group_by_competitions",Tle="betslip_swipe",wle="full_cover_betslip_swipe",Ile="esports_game_list_swipe",Ale="favorite_team_swipe",Ple="consent_use_of_cookies",wm="parent_session",Li="last_session_currency",vC="showInfoPopupBeforeSessionSwitch",xle="iframe_url_",Ole="selected_results",af="session_and_loss_limits_storage_key",bc="unread_message_count",kle="ftn_deposit_bonus_storage_key",Nle="betBuilderData",Rle="qrCodeOrigin",Vx="cms_popup",Lle="pageBuilderLayout",Mle="story_data",FU="openLiveChatKey",UU="openCommonChatKey",Dle="customFullscreenShowRotate",wv="session_start_time",Uh="utm_tags",eu="vivaro_feed_story_viewed",tu="vivaro_feed_highlight_viewed",Iv="social_network_login_type",jle="s_h_m_v",Ble="push_prompt_dismissed";var Yn=(e=>(e[e.LossLimits=0]="LossLimits",e[e.SessionLimits=1]="SessionLimits",e))(Yn||{});const Mi=e=>!!(e&&e>0),EC=({DailyLoss:e,WeeklyLoss:t,MonthlyLoss:n})=>Mi(e)&&Mi(t)&&Mi(n),$U=({DailyDuration:e,WeeklyDuration:t,MonthlyDuration:n})=>Mi(e)&&Mi(t)&&Mi(n),$h=e=>e===Yn.LossLimits,Av=async e=>{try{const{sportLimitsSet:t,casinoLimitsSet:n,durationLimitsSet:s}=Te.getItem(af)??{},r=t!==void 0&&n!==void 0;if($h(e)&&r)return!(t&&n);const a=r&&s!==void 0;if(e===Yn.SessionLimits&&a)return!(t&&n&&s);const[o,i,l]=await Promise.all([ee.get({},"get_sport_loss_limit"),ee.get({},"get_casino_loss_limit"),$h(e)?Promise.resolve(null):ee.get({},"get_session_duration_limit")]),c=o.result===0&&EC(o.details),u=i.result===0&&EC(i.details);if($h(e))return Te.setItem(af,{sportLimitsSet:c,casinoLimitsSet:u}),!(c&&u);const f=(l==null?void 0:l.result)===0&&$U(l.details);return Te.setItem(af,{sportLimitsSet:c,casinoLimitsSet:u,durationLimitsSet:f}),!(c&&u&&f)}catch{return!0}};var GU=(e=>(e.AMOUNT_BUTTONS="AmountButtons",e.REPEAT_DEPOSIT_AMOUNT_BUTTONS="RepeatDepositAmountButtons",e))(GU||{}),ms=(e=>(e.WITHDRAW="withdraw",e.DEPOSIT="deposit",e))(ms||{}),Hx=(e=>(e.FORM_DRAW="formdraw",e.POST="post",e.GET="get",e.IFRAME="iframe",e.POPUP="popup",e))(Hx||{});const Fle={type:"betShop",name:"office_id",rules:{required:{message:"betshop_required_message"}}},VU={deposit:"payer",withdraw:"payee"},HU={[Ge.SPORTSBOOK]:"Sport",[Ge.CASINO]:"Casino"},Ule="amount",$le="Euro88Payment",Gle={contentId:"deposit_banners",showLoader:!1},Vle={contentId:"withdraw_banners",showLoader:!1},yC=-1,Pv="all",bC="FTN",Zl={[-1]:{title:"All",name:Pv},1:{title:"Cards",name:"bank-card"},2:{title:"Wallet",name:"wallet"},3:{title:"Voucher",name:"voucher"},4:{title:"Crypto",name:"crypto"},5:{title:"Bank transfer",name:"transfer"},6:{title:"Open banking",name:"bank"},7:{title:"QR",name:"qr"},8:{title:"Mobile",name:"mobile"},9:{title:"Cash",name:"cash"},10:{title:"Agent",name:"agent"},11:{title:"Connect Wallet",name:"connect-wallet"},12:{title:"Highlights",name:"highlights"},13:{title:"Papara",name:"papara"}},WU={1433:16863};var Zi=(e=>(e[e.CREATED=0]="CREATED",e[e.ERROR=3]="ERROR",e[e.EXPIRED=4]="EXPIRED",e[e.WAITING=5]="WAITING",e[e.RESPONDED=6]="RESPONDED",e[e.PROVIDER_WAITING=7]="PROVIDER_WAITING",e[e.PROVIDER_RESPONDED=8]="PROVIDER_RESPONDED",e[e.VERIFIED=10]="VERIFIED",e))(Zi||{}),wt=(e=>(e[e.EMAIL_VERIFICATION=1]="EMAIL_VERIFICATION",e[e.PHONE_VERIFICATION=2]="PHONE_VERIFICATION",e[e.ADDRESS_VERIFICATION=3]="ADDRESS_VERIFICATION",e[e.TSUPIS_VERIFICATION=4]="TSUPIS_VERIFICATION",e[e.SKYPE_VERIFICATION=5]="SKYPE_VERIFICATION",e[e.DEPOSIT_VERIFICATION=6]="DEPOSIT_VERIFICATION",e[e.DOCUMENT_VERIFICATION=7]="DOCUMENT_VERIFICATION",e[e.EKENG_VERIFICATION=8]="EKENG_VERIFICATION",e[e.ADULT=20]="ADULT",e[e.TERMS_AND_CONDITIONS=21]="TERMS_AND_CONDITIONS",e[e.RISK_MANAGEMENT_REVIEW=22]="RISK_MANAGEMENT_REVIEW",e[e.GBG_DOCUMENT_VERIFICATION=23]="GBG_DOCUMENT_VERIFICATION",e[e.LEGI_GAME_DOCUMENT_VERIFICATION=24]="LEGI_GAME_DOCUMENT_VERIFICATION",e[e.PEP_STATUS=25]="PEP_STATUS",e[e.SKKS_CLIENT_VERIFICATION=26]="SKKS_CLIENT_VERIFICATION",e[e.TRUNARRATIVE_UPLOAD_DOCUMENTS=27]="TRUNARRATIVE_UPLOAD_DOCUMENTS",e[e.TRUNARRATIVE_VERIFICATION=33]="TRUNARRATIVE_VERIFICATION",e[e.IDENTITY_CHECK=35]="IDENTITY_CHECK",e[e.IDFY_KYC_CHECK=36]="IDFY_KYC_CHECK",e[e.IDFY_KYC_SUMSUB=37]="IDFY_KYC_SUMSUB",e[e.IDFY_KYC_IDENTOMAT=38]="IDFY_KYC_IDENTOMAT",e[e.IDFY_KYC_SIGNICAT_BRAZIL=41]="IDFY_KYC_SIGNICAT_BRAZIL",e[e.IDFY_KYC_LEGITIMUZ_BRAZIL=42]="IDFY_KYC_LEGITIMUZ_BRAZIL",e[e.IDFY_KYC_PAGCOR=43]="IDFY_KYC_PAGCOR",e[e.IDFY_NIN_VERIFICATION=47]="IDFY_NIN_VERIFICATION",e[e.IDFY_KYC_ITALIAN=50]="IDFY_KYC_ITALIAN",e))(wt||{});const Wx=()=>new Promise(e=>{ee.get({},"accept_terms_conditions").then(({result:t})=>e(t===0))}),zx=e=>new Promise(t=>{ee.get({version:e},"terms_and_conditions_version_acceptance").then(({result:n})=>t(n===0))}),Hle=()=>new Promise(e=>{const t=N.app.activeSteps[ms.DEPOSIT];t.length?ee.get({},"check_client_for_deposit").then(({details:{StepId:n,State:s}})=>{if(!n||!s)e(!0);else{let r=!0;const a=t.find(({active_step:o,active_step_state:i})=>o===21&&i===5);if(!a)e(!0);else{const{type:o,title:i,content:l,buttons:c}=a.popup;ve.open({type:o,title:i,content:l,onClose:()=>{r&&e(!1)},buttons:c.map(({label:u,action:f})=>({label:u,callBack:()=>{f==="ACCEPT_TERMS_AND_CONDITIONS"?(r=!1,Wx().then(m=>e(m))):e(!1)}}))})}}}):e(!0)}),Im=(e,t)=>We(e+t),zU=e=>e%1===0,We=e=>zU(e)?e:parseFloat(e.toPrecision(12)),Yx=(e,t)=>We(e*t),Wle=(e,t)=>{const n=Math.pow(10,t);return We(Math.round(We(e*n))/n)},Ns=(e,t)=>{const n=Math.pow(10,t);return We(Math.trunc(We(e*n))/n)},qx=(e,t)=>{const n=Math.pow(10,t);return We(Math.ceil(We(e*n))/n)},Kx=e=>{const[,t]=e.toString().split(".");return t?t.length:0},Qx=({array:e,k:t,bankers:n=[],roundingFunc:s=Q3})=>{let r=0;const a=[],o=(i,l)=>{for(let c=l,u=e.length-t+i+1;ca.includes(m))&&(r+=s(a.reduce(Yx,1)))};return o(0,0),r},el=(e,t=0)=>{const n=Math.pow(10,t),s=+(t?e*n:e).toFixed(8),r=Math.floor(s),a=s-r,o=1e-8,i=a>.5-o&&a<.5+o?r%2===0?r:r+1:Math.round(s);return t?i/n:i},xv=(e,t=1)=>e<=1?t:xv(e-1,e*t),SC=(e,t)=>t*100/e,zle=(e,t)=>e*t/100,Yle=e=>Math.floor(Math.random()*e)+1,YU="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAABICAMAAABiM0N1AAAC91BMVEUAAAD///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////9ARJAyTYwvUItKPZNPOZRVNZZIPpI8R49SN5UrU4o1TI0lV4g6R45LO5M5SY42S41aMpcxT4xYM5ZNO5QoVYlUNpZCQpEsUoomVog0TY04So4nVolXM5dGQJIwTosjWIj9/v5cMJg+Ro8tUYpZMpc+RY8hWodFQJFdL5gpVIlROJVGP5JbMZhEQpE3SY0iWYdDQZE9Ro9fLpleL5gqU4lbMZdVNJYiWYhgLZlXNZf18/ljK5o8Ro4fW4b5+vz49/v19fnn4fD7/P3x8Pfv7PXk5vCLlr2FebZRUJnr7/Tg5u7g2OvX0ufVzOXOzuPCrdifuMuonstdWaBQZJ1WUZxlKZtBTpJCSJLw9Pft6PTr7PPn6fHY4erO2eXIyN/Iud24xdi1udWxs9KqvdGzotCms86hs8yhociZmcSNkr2Ph7x6d7F5Y61mc6hqbahySaZlYaVhLJpCVpVMQpVGT5Q4UY8xVY3f3+3S0+W/v9q3vtawudOurNCqss+ml8mYjcGdgMGVcLt6krZ1hLGAarFwiLBycK1RfKFiUaBqPaBbS5xgQZxkM5xOVplJX5hTQ5hNSZdXOpc1apIjXonb3uvd0OnL0+LPwOG9ttewqNCkvc6hq8qnjcecncaYpMWbksOUmMGOoMCGp76EnbuCi7h9hbV9fbSFYbF6bK9pjq5rfqx3VKptZKlsU6Vbc6RnVqNxOaNaa6JlS6A8b5dTPpc7XpM8TJAuZo8wW47m7fLW1+fV1+e/0d3Butq1tdSyr9Kqps2Tr8Wafr+PYrZtP6FQb55lOp1Ed5pGcZqyiJ8GAAAAM3RSTlMAinAO9zv65dezk1Yq7MtHMQoC9OuEf3nc0aWbY1oaEwfguq1SqKNpQyMb7s/Htac1Hxhr4VNnAAAH20lEQVRYw+2XZVhUURCGFxHs7u5u7yKyiyigCCqwpISKpCgoFgaiqCggdnd3d3d3d3d35w+/mXMvDyyrgP7U+cED95z7MjPnm5lzVf+olalYuHjucrlMTXOVy128cMUyf0bJa1RM0rNiRnkzSsmXKatk0LJmypcRTOFcyosjxk6YPG3a5AljRyhPchVON6pUFoltwNStT1uGhra1b+XcqrHboZtDBojnWUqlC2OcjXf3mHrPtUGD1i0bweydQWrsFhi4fUgPXsxmnDYnZ1Ha2X3tPjOzZs0aMCq0bVt7JoUF+hwa0p3Wi+ZMi5OjALa5r463tTIzM3Nt1gwgOKWQAsN8fB5PdseWAjl+zzGSYP3nBjjZ2jpaEQkukU+N7JN88um2vT/tMvodpwjtWLHXxsYpwNbKykqJjnxKTjo0lvYV+U1ctL52uLZJEyLZWjk6wimZRIfXyrmxm1sYSIeH0M5fRmeSGaszvD21Wm0TmwAnJ/jEeRIkRGcv5wmoS9ia2cQwp1pBLE5Sq72DtV2bKNHFR02dcGzMsVXTtj4NlTPuFujTzafbKWwuWM0QJ39uLI0bDpCnZzCiAyp+bV8pydzHXn4BkjORgDr8Bs9y5zcAyoSFIweCWqgJFYzo4ie6Symt/0VCEQnRPR+DJ5lSc0pDQO4LXPyJ5K321mpnQnlKwSURB2znjFOiun3H0wKlU4GyY9t7P19ff38mLZkosY1avXnfUrOl8VtX9+a/e12WywVOUZqy63Oq48S6JPi5uPjCpxbq4YMFJuqZLVLuCEG5LtvECdvEeeLDez4CJ1ddD1QIe86ba/z8fF2IJPyZmAhBOSmkBsvOuUvTQqFNJsEl0kAhvSND5xi52NxcoyGf/GfwMc1ExlkGCqnBrQnLWOStRHSHX6KnpDy4PHhxaHMCafxcfBO4Wczw9GQVKCQoM2UJh4V9xLY8qVJ939raHCjk6R1xVqm9IXLYw6tRV+YuJZFTuTBJ8elxqnSjQy9v2Lw5UBpzTRyddpdoNYk88cIoiazn6UWOiM6VfKI0odeRDKClrClEhK0nG4LUHE5pOENnW5A0976mZC3viZ+jH1J4yUsYPlHxltZLUb+GMAYNpJej/UkFr9AsoxJtbOb2ha73kU9odZwokODTTUqSXnnctRQk613clFhQM0Gcp+2Kw1s0GllDypPabyP26YdemWSHZA9atmtHpOZ3CDQdIg8KWo524EnNQGuzGUykiWTAPoVyJ3fulTLbxSWpj4ODJUAg9SPQLBJ5NH7ZpuZmoH2G0tts6ygLiqNrhOjQdYsnA2ECRVo4WFpaEmg9gfqRyBfgl2iogJvBEUmKshUzgcMTnXwAZlMyUHlJiunMJIQnQKRMAsWpua90bdIXoABuv83k6OjscP7lk4EqoEA6WQhSQxGaOUgHkIFrODxvtWfwEojrVkCychEknEGFZKASOGWdHUgOcGkOgYZyuaAHDIQMyKWzEGWiDcYUnOLoRJ6gsBJ6tb9bp+vEPj0i0EAul210fkFEmofyO4fCCwhwsmKSmC7LaMDp6ei2nZ3OgsOLJEHuYm1+oD4+O2HedAS5IlFuBjg7JeNf9XRkgr83NPXS2XWi6KZwbFx4mqESG/GWQAXKxLOSm8EmLCQfSmVNJWl8U5B0nS0sLDlJPXdZW5NPd1ZSofUafA0yCJYnnpidrkj5ZEkyTXFdqgVFerRv6mVnR4c3kEhv5RLWLI5bEMfTBWeHaqFEccZJBpBRsVSXh9sdm4KkAwkuwdY1lEkuvi6+nHHIAC4Jnzjj91JdJnLiSayHR0eZNJ5J5wFiEupOzKm9V6hceJ5zdFOxS+9+ijHbY6cHRaeDoHZHMunEfoXEJdxidh9pJhee7NPS3np9DVYF753p4OFB0dl1trgrplif9U8QnRzetsEki6uUKJwd+XTRwOXGGPfY3js7tPFAosinOX0kgTrRb8d+88Vxs9eg1gh0QU0+MWkR/lsNY0OjPzakTRtE15R8eoSjU6xn0sgeNY8rWMyp03hQWKVvZekSej0E0YHkBdLBdV0kPeu+JlrcMTwpurnA5zI2fF2L3Ek+dWzv5UUlvHtoClSXNQk8hemOgeiWUKwlVQasEhYG7QnpoEQHZR7cMiWGYb1jTt5YrKF5DpS496yk+7bhmzoFFxvegUksKNGgnuy4DxmYy4ICiEmT6MZWX2XQ6ppicUoIfEJ0ILFT3DTl2SnfDIg0HVtN8/zyI4ROZ7wcndIMHMR0sYZTfDNAnoKGwx9K0C+tJK0f/QJSG8644pOYeBQe5yl6cBr3bBY42vdG8kmkXO7kRFI07jd7dFocWMUCtOn4fKA6isIDSXZKFF7CStqROUeaX0dZ+SNrynwWOaKTZ4JCmsVyyGKSju+1yqKojl/H2SHlKUg7xvFiifR9J5vU5N1nuIS9vJAnJTrhTrmqqnRa/kKU8j2ihClRgnRjkESW3ViVbqPoNoSHM4kzjnm+RWCyIjvptpwQZmTEwvAQliYJSidjTI3KqjJg9Hm8MWLhQvjE5TJ/XaTEVhsNOiMOkbyHRUREhBPp2yd2hmo9YxjRLD8PI9LC+RvG95AxFTKKEVeKB8OGPdgYyxGxAI1yqjJupfBmTGxMUqPOXCdPftWfWL4sAiAo5UtCN39oJgUFxD23UVUc919YvUoFMxcrkaOM6r/BfgKjR6r5jKRe1wAAAABJRU5ErkJggg==",qU="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAUCAYAAADskT9PAAABMklEQVR4XsWWv0qGUBTAfZYeQvAFnJx9AmlzERqCsCkJG3RIogxMsycIfIEafYHGryV10MWhxKx7git2zhd8BR0v/Jbf4fzx3itcRVGUPYEp2GcGekLvVZpLoDeR3BDBDRHcEMENEd8Iw/Cq67r6Y8vKsiwX3GEPq23bF9/3L3C9LRAxY5rmMRSrqmpTFMU9xrKsEzlAWZYPy1jTNM/TNL3run6I6+48QBzHN1Dcdd0QxyR5nn8NYNv26dIHQXAJHnYQ5yCImEmSJIMi8DViPWE8zzuXO1DX9WYZG4bhdRzHQVXVA1yXc4A3TdP+PkCaprdQ3HGcMxyT/HQEURRdg4ejwDkIImZ+M4C4hI/LS9j3fQeX0DCMI5yDIGJmlwH+9TdkgghuiOCGCG7Wf5Cs+iT7BE/GL/FTwnfxAAAAAElFTkSuQmCC",KU="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAUCAYAAAD/Rn+7AAABMklEQVR4Xs2Wu06EQBSGeRYbKl7HR7A2vpahMqFxK4g2K1KAQQsDUmAwIQLhanB1TuFk9z8xmS00h+RrvvnJOZlbxrIs60RxqjgTBvVEvYls7gfqjUlpMCENJqTBhDSY0DiOc5EkyXZd1+ULvmEYWtPMOI4djqn8RxzHW9u2z7EuwIRGFb7b7XZrEAQbz/Ou9nFd99I0Qw02TfO2P+b7/rX67zMMwxusCzCh6bquLsvyGf2xmWmauizLHtDXdV0qXtEDTGj6vn9flmUoiuIJSdP03jRDMzjP80GmqqoXWmo1kxusCzDxrw3S1sC6ABMatcmbPM8f0R+b+W2J1b6saJnRA0xoTIqbZKjBtm0PDgkdDprBKIpuMQ8woTEpbpL5s2tGCExIgwlpMCEN+Q9W0U/+b+aX3viJSOsEAAAAAElFTkSuQmCC",QU="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAABICAMAAABiM0N1AAAC+lBMVEUAAAD////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////8+fz////////////////////////////////////////////kw9DYqLr///////////////+fRIacQoexVHuoTYCzVnqhR4S7XnWmS4GuU3ykSYOjSIOhRoWnTIHNbmrTc2eqTn+rT36uUn2/YXLRcWfCZHDHaG7bemL9+vyWPIyZP4nFZm+2WnfAY3LQcGibQYi1WHjggF6lSYLLbGvOb2n69fqXPousUX7VdmXUdGXZeWLkg1y5XHasUH3Ka23cfGHffl/mhVv+/P24W3fDZXCYPom9X3S9X3PIamzXd2TefWDYeGPigV306/SUOozWd2T//v7jtrrqiFj27vb47vH78O/mz+HPpcfKhJmELJbx5fDo1en14uPpydKeXLKcUqaRRKOLM5KrWZHohln89/j89PPt4PH16e/z5Orj0Onfx+PmzN3z29vozdrduc/etcX1y7mra7PisLF9JprFepLXjo/ShYqrVIbIdoKzWH/58vbv4u/16Ov35+fu2eL76OD64dbYttTt0NPQqM7uysb51sTRob7Gk7zMmLizeLfSnrbbp7KiXa3ZoKvDg6W+eqOEMZ6jV52INZ2QPZmMOJmHL5ShTY6gSYq5X3vjkHfAZHXsilf/+/vv3ujhxdvx1NLjwM/KoMznxMrmv8Parr+8hLjWobPCh669f63QlqzdpKjxvKeuaKTLiqG7dKCXSJ7ho53RjpyuYZqiU5m1aZj0tZTJgZS+cpSdSJOnVI+zYY3mnYmfRIjZioO3YIPOd3rFanbaweTr0dnpu7Xywq/Gja+wbajmrqTRkqHtrZbdlo7sp4qxW4alTIa/bITVhIDNcG3ZfWvoj2jJs1/NAAAAO3RSTlMA+vfhJ/COLQPde08+AfPGwLynnokxIxsWEAoC7OXa07mjl4BlXFhWRgf918uuSjjOdm5fNh/+/ta0U1E9xnQAAAX0SURBVFjD7Zf1X5NhFMXnFBUVRcTu7m7PsDCwUJxiI3bODnQoIthid3d3d3d3d3d3fD4+97nb3uHmu6G/qecP+O7ec8+9zzvNf/0jShkrk6eHu6tWGz13FrffphTKmM4FitLF/i1KYs/o+Elxok5JltEVFh3st3TVqiVGIE1UMXk9ooE1cunLD9/bj+jT58CBqQAKR8nezPnAGjX1QcOGPVu2bC9JtwAUigInblpTLSsftG3bvV07C4lA8Zx3OAFjFr351q1FzZptuwuQiXQBQCwnMbHjsDdH3ldu3qxbtxYtiGTujjxK7hwnRi7GPKpXvTKRekQirQK0znEyaQkzaFalSo3rVa8uSL17cHdMWgq4OtVWBsIYgtt0DQggUmXuTiGNAtyd4CRPKD2e7ednTepN3fHs9gGIqQJIkS1Oeve0aYoXI87xp/7+fn5d2wRUYpJ1d+8AlPgFxC1x/oRaWGTYULdGDX+BEqQAxaceTKKhJbWLSRrHFdbSX/P1rVu3Y0d/0R3VVM8yO0laAkS3O+pE0SyVLFw8ViT5dtnOXXypJr9Z04Onz/pq6U46Thalt+NMTBMmx6T1d+aVfjwWI2e2Klu2s68gbeoHjkGkFFCu49ouAl+awMlb5rSuVq5k6UnQh9XpIEhdfPcPBhAyUcCMwUzimkRn8bP/zMkmHR6zdk6pUlWqNq1WbgqMlxrUkaTOwcDyucKn2YOAq0Rin+x2FsOFqln7qXwjbx9Bar0eWF+6NJNmAsFydn5tlkP/xFLTC3udUYQPRZQpU6G8t48gbTbiqGiPScexcD85Lmp6MgrTLXkSrbrYdJYK6Ltbp6soSI18fO4HYvG8ciWJ1KBOhxBskLOjFJzARHPGr3KsbUEDdnsRiWqagPn3heNM2guEiRRwTefRr2sAb/BEADFsQIkALLhoIr0CNgufmMQgSgGRBKgNkx4BSGgboljxIbQsgkgR8zHZh2cnfQrBaUqBJInWTHu3Ulptq3iSpF+9R1fmMMbM8ZYpaC1rOoqxe4kkupsrzOYN/mIAott9HJPwZR6w5Sxwubw3k2R3YvxTZJ589y/Hwbl0C7oGUEGZfvHkFEzNi4rJwifOE5OmAIM/C9LcxcCmGnKDZxsB1+y/vENxZH+B92QKlJrm0YosfB4CmcyOlEyRcWRWe5XTAFij08lkChLNjhbvXAgv7TW+Bf7BAPKlVDuuWpGCh5QCpTvp+Lyw0yc33Saf6D7NNgDRVN+zLFRQfS8zycc6BQ14g0VNTxc5/ArJD+BGbUFSalKSSXsnayLLcql/F3kCuFtbIXnbIXXZAEAbQ6OqzABeN+lUu359L11FQVLypJDeGtUnxpsCoH8tQbLtznxVwgwqj5lytgEENTGTOAWK40QKy+HEh2MSPtunehHJdnbU3SU9GZTcAYdXBH3v1opEEs2ZHT9nACmvY07fZYHAil6RSY3MGZ8C6Gn2eRz2FTR0+AoA64hU++fuPk4CxswsCkBt9oVNnCtBtLbbBElxnGu6ORaY9LhkESCaitcpE1BfQ3ddWcBX6QaRIiVzrR7G1cKnQ0BalYKyynrCh42GyfCLvXpZ1xQxQbS1hWanBzxUQBSgIcwJXHcMgP6UteNn5iNw9RxKwR0AGVVAGQDDMOZsHD4UpMPbzKTroTBMjuBtOQkgm9pHJ4AcesnZtWMgpPQrtpFPu/sbMOGmaVuahtDzqrYcrgAkJ1xyDKFExcD+a5bphXt7zCnYDCCD+n+WVJIzJHwncfTThh+Dlfqbkxnq8FPfzV1yZmwfxxyqS5H+OpMuy+dVVQUjcXbtHA+Rl/T0FuSk5zyU71Oo+n6QPGj+M7YyJ1xw+Lwni5FM45YLwFmZAgAJNOpKIOLMHKwL3y45WS3POWV9j5fuXpAT/6qo/mec62FbFQ4rN/nt9VCkG7nVMfyr5vUIIk4W6w9DLZHIIJekGkfyBCm+CwDmWKsATIqrcaw86VLnTJQ0m8yTS9afwuHBnAJR+VPumdA9pk0Dbhm1Igiinj9X8niJNf/1t+kHJhsoYLhh2H8AAAAASUVORK5CYII=",XU="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAqCAMAAADyHTlpAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAACKUExURUdwTP////r8/////////////////////////////////////////////0M9/ztF/y5S/yFh/xtn/xZt/0k2/zVM/04w/1Mr/3Kr/wmA//P0/9Ph/83Q/6a6/1cn/1ok/8C7/7TL/5ub/5Cl/6WR/+Xv/3OB/4Jv/yt+/yhZ/4W3/ziX/6XU/0+B/zpDon0AAAANdFJOUwBf/bfZN+nMiNKdFJKCyxPMAAABY0lEQVQ4y53V7VqCQBAFYFmF/OhklhQsmaJSKHb/t9eMyOwQkMr5wazH13X10YfBoF+8CTD0m+tmxjjH4/X0vDQd1geOcZEgmNGewKmITwja6RSnmJJhOJgFSMq110qHtCklAvxHmILXaQedljvFCUamfFVuOyidNYmKPC748+RxXkTZ+dz6jUeXoBlTPTe+bHZDggtdRS4GKY8EmSrTitpXFYsjjxQfqswrmt1BX1SI8iCqytvpwtGFisWOB1FVCjVX6Y98WTZxAdHD4pDWSiO0nt2Bkv4pR+XvPUC2kpiKqs7K/2GCr2cJnZUHndV1K4wHN9JdGw0runE0rNNQQpSuTF33Lw1rdKvpXGKxpStTqf6nc03nfemThCgPoq7T9LsHXbbRZY0uJUR5EHVdJ9036F7TNwlRHkRd15e+S4jyIOq6vvRTQpSua6Ku03S/ltjyAVHXbRS9mop6D1fj33dX+wXlPWSOHs/ZjAAAAABJRU5ErkJggg==",JU="/assets/real-balance.png",Xx="/assets/quick-bet.png",cn=-1e6,Jx=1,ZU=[50,100,500],Ka=-1,hd=-2,qle=50,e4=12,t4="Accept changes and place bet",Gh=2,n4=1;var me=(e=>(e[e.Single=1]="Single",e[e.Multiple=2]="Multiple",e[e.System=3]="System",e[e.Chain=4]="Chain",e[e.Trixie=5]="Trixie",e[e.Yankee=6]="Yankee",e[e.SuperYankee=8]="SuperYankee",e[e.Heinz=9]="Heinz",e[e.SuperHeinz=10]="SuperHeinz",e[e.Goliath=11]="Goliath",e[e.Patent=12]="Patent",e[e.Lucky15=14]="Lucky15",e[e.Lucky31=15]="Lucky31",e[e.Lucky63=16]="Lucky63",e[e.StraightForecast=40]="StraightForecast",e[e.ReverseForecast=41]="ReverseForecast",e[e.CombinationForecast=42]="CombinationForecast",e[e.StraightTricast=43]="StraightTricast",e[e.CombinationTricast=44]="CombinationTricast",e[e.BetBuilder=50]="BetBuilder",e[e.InternalBetBuilder=51]="InternalBetBuilder",e))(me||{});const s4=[2,51],r4=[1,2,4],a4={0:[],1:[1],2:[1,2,4],3:[1,2,3,4,5,12],4:[1,2,3,4,6,14],5:[1,2,3,4,8,15],6:[1,2,3,4,9,16],7:[1,2,3,4,10],8:[1,2,3,4,11],9:[1,2,3,4],10:[1,2,3,4],11:[1,2,3,4],12:[1,2,3,4],13:[1,2,3,4],14:[1,2,3,4],15:[1,2,3,4],16:[1,2,3,4]},o4=[5,6,8,9,10,11,12,14,15,16],Jy={5:4,12:7,6:11,14:15,8:26,15:31,9:57,16:63,10:120,11:247},Zx=[12,14,15,16],i4=[1,2];var Zy=(e=>(e[e.SuperBet=-1]="SuperBet",e[e.AlwaysAsk=0]="AlwaysAsk",e[e.AcceptHigherOdds=1]="AcceptHigherOdds",e[e.AcceptAnyOdds=2]="AcceptAnyOdds",e[e.CounterOffer=3]="CounterOffer",e))(Zy||{}),Ov=(e=>(e[e.Error=-1]="Error",e[e.Info=0]="Info",e[e.Success=1]="Success",e))(Ov||{}),$o=(e=>(e.Fixed="fp",e.Starting="sp",e))($o||{}),Re=(e=>(e[e.Betting=0]="Betting",e[e.OpenBets=1]="OpenBets",e[e.Suggested=2]="Suggested",e[e.Booking=3]="Booking",e[e.BetStatus=4]="BetStatus",e[e.Hybrid=5]="Hybrid",e[e.MultipleOfTheDay=6]="MultipleOfTheDay",e))(Re||{});const Kle={0:"betslip",1:"open-bets",2:"suggested",3:"booking",4:"bet-status",5:"betslip",6:"multiple"};var At=(e=>(e[e.Hidden=0]="Hidden",e[e.Quick=1]="Quick",e[e.Full=2]="Full",e[e.Fixed=3]="Fixed",e))(At||{}),tt=(e=>(e[e.ERROR=0]="ERROR",e[e.WARNING=1]="WARNING",e[e.SUCCESS=2]="SUCCESS",e[e.INFO=3]="INFO",e))(tt||{}),Tt=(e=>(e.LOGGED_OUT="loggedOut",e.INSUFFICIENT_BALANCE="insufficientBalance",e.INSUFFICIENT_STAKE="insufficientStake",e.EVENTS_CONFLICT="eventsConflict",e.LOCKED_EVENT="lockedEvent",e.DELETED_EVENT="deletedEvent",e.BET_RESULT="betResult",e.BOOK_RESULT="bookResult",e.MAX_EVENTS_EXCEEDED="maxEventsExceeded",e.EXPRESS_BONUS="expressBonus",e.FREEBET="freeBet",e.MIN_COUNTER_PROHIBITION="minCounterProhibition",e.MAX_COUNTER_EXCEEDED="maxCounterExceeded",e.MIN_QUICK_BET_PROHIBITION="minQuickBetProhibition",e.QUICK_BET_SAVED="quickBetSaved",e.QUICK_BET_EMPTY_STAKE="quickBetEmptyStake",e))(Tt||{});const Qle={counterOffer:{title:"Counter offer",infoText:"Counter_Offer_for_Selected_Sporting_Events"},freebet:{title:"Freebet",infoText:"Freebet is a new offer for making free bets."},profitBoost:{title:"Profit boost",infoText:"profit_boost_info_text"},realBalance:{title:"Use Account Balance",infoText:"real_or_bonus_balance_money_used_info_text"},bonusBalance:{title:"Use Bonus Balance",infoText:"bonus_or_real_balance_money_used_info_text"},frenchFreebet:{title:"French Freebet",infoText:"french_freebet_balance_money_used_info_text"},quickBet:{title:"Quick Bet",infoText:"quick_bet_info_text"}},Xle={counterOffer:YU,freebet:qU,frenchFreebet:KU,profitBoost:QU,realBalance:JU,bonusBalance:XU,quickBet:Xx},Jle=-9,Zle="Mini Games",ece="52",tce="Select Games",eO=[2,3],l4=[1,2],nce={0:"odd_decimal",1:"odd_fractional",2:"odd_american",3:"odd_hongKong",4:"odd_malay",5:"odd_indo"},tO=["Soccer"];var Ot=(e=>(e[e.RED=0]="RED",e[e.GREEN=1]="GREEN",e[e.YELLOW=2]="YELLOW",e[e.STANDARD=3]="STANDARD",e[e.GOLD=4]="GOLD",e[e.SILVER=5]="SILVER",e[e.BRONZE=6]="BRONZE",e[e.PLATINUM=7]="PLATINUM",e[e.DIAMOND=8]="DIAMOND",e[e.BLUE=9]="BLUE",e[e.ORANGE=10]="ORANGE",e[e.PURPLE=11]="PURPLE",e))(Ot||{}),Pa=(e=>(e[e.OnHold=-5]="OnHold",e[e.Declined=-4]="Declined",e[e.Unsettled=0]="Unsettled",e[e.Lost=1]="Lost",e[e.Returned=2]="Returned",e[e.Won=3]="Won",e[e.CashOut=5]="CashOut",e[e.Placed=7]="Placed",e[e.WonReturn=11]="WonReturn",e[e.LostReturn=12]="LostReturn",e))(Pa||{}),Lr=(e=>(e[e.NotResulted=0]="NotResulted",e[e.Lost=1]="Lost",e[e.Returned=2]="Returned",e[e.Won=3]="Won",e[e.WinReturn=5]="WinReturn",e[e.LoseReturn=6]="LoseReturn",e[e.Place=7]="Place",e))(Lr||{}),aa=(e=>(e[e.NotResulted=0]="NotResulted",e[e.Place=1]="Place",e[e.Returned=2]="Returned",e[e.Lost=3]="Lost",e[e.Won=4]="Won",e[e.WinReturn=5]="WinReturn",e[e.LoseReturn=6]="LoseReturn",e))(aa||{});const sce={0:"Not Resulted",7:"Placed",2:"Returned",1:"Lost",3:"Won",5:"Won Return",6:"Lost Return"},rce={[-5]:"On Hold",[-4]:"Declined",0:"Unsettled",1:"Lost",2:"Returned",3:"Won",5:"Cashed out",7:"Placed",11:"Won Return",12:"Lost Return"},ace={0:"bc-i-unsettled",1:"bc-i-lost",2:"bc-i-returned",3:"bc-i-won",7:"bc-i-placed",5:"bc-i-won-return",6:"bc-i-lost-return"},oce={[-5]:"bc-i-on-hold",[-4]:"bc-i-declined",0:"bc-i-unsettled",1:"bc-i-lost",2:"bc-i-returned",3:"bc-i-won",5:"bc-i-cashed-out",7:"bc-i-placed",11:"bc-i-won-return",12:"bc-i-lost-return"},ice={0:Ot.YELLOW,1:Ot.RED,3:Ot.GREEN,7:Ot.YELLOW,2:Ot.YELLOW,5:Ot.GREEN,6:Ot.RED},lce={0:Ot.YELLOW,1:Ot.RED,3:Ot.GREEN,5:Ot.GREEN,[-4]:Ot.RED,[-5]:Ot.YELLOW,7:Ot.YELLOW,2:Ot.YELLOW,11:Ot.GREEN,12:Ot.RED};var c4=(e=>(e.BETS="bets",e.OPEN_BETS="open-bets",e.CASHED_OUT="cashed-out",e.WON="won",e.LOST="lost",e.RETURNED="returned",e.GIFTS="gifts",e.GIFTED="gifted",e.WON_RETURN="won-return",e.LOST_RETURN="lost-return",e))(c4||{});const u4={bets:void 0,"open-bets":0,"cashed-out":5,won:3,lost:1,returned:2,"won-return":11,"lost-return":12},d4=Eu(u4),cce=[me.Single,me.Multiple,me.System,me.Chain,me.InternalBetBuilder],uce=[0,5,1],dce=[me.Single,me.Multiple,me.System,me.Chain,me.InternalBetBuilder],fce=[me.Single,me.Multiple,me.InternalBetBuilder],f4=["gifts","gifted"],pce=[0,1,3],mce=["period","from_date"],p4=[me.Chain,me.StraightForecast,me.StraightTricast],CC={5:11,6:12},hce=["open-bets","cashed-out","won","lost","returned","lost-return","won-return"];var Qa=(e=>(e[e.LiveGames=1]="LiveGames",e[e.VirtualGames=2]="VirtualGames",e[e.SkillGames=3]="SkillGames",e[e.BettingGames=4]="BettingGames",e[e.PoolBettingGames=5]="PoolBettingGames",e[e.Slots=6]="Slots",e[e.TableGames=7]="TableGames",e[e.VideoPoker=9]="VideoPoker",e[e.Poker=10]="Poker",e[e.Fantasy=11]="Fantasy",e[e.LotteryGames=12]="LotteryGames",e[e.VideoBingo=13]="VideoBingo",e[e.ScratchcardGames=14]="ScratchcardGames",e[e.FishingGames=15]="FishingGames",e[e.Interactive=16]="Interactive",e[e.ArcadeGames=17]="ArcadeGames",e[e.Casual=18]="Casual",e[e.DiceGames=19]="DiceGames",e[e.Solitaire=20]="Solitaire",e[e.Promotions=21]="Promotions",e[e.Sportsbook=22]="Sportsbook",e))(Qa||{}),nO=(e=>(e[e.PlayingWallet=0]="PlayingWallet",e[e.ChildWallet=1]="ChildWallet",e[e.ExternalCryptoWallet=2]="ExternalCryptoWallet",e[e.OrtakWallet=3]="OrtakWallet",e))(nO||{}),Xn=(e=>(e[e.All=0]="All",e[e.Authorized=1]="Authorized",e[e.Guest=2]="Guest",e))(Xn||{}),sO=(e=>(e[e.Casino=1]="Casino",e[e.Sport=2]="Sport",e))(sO||{}),ap=(e=>(e.CASINO="casino",e.SPORT="sport",e))(ap||{}),rO=(e=>(e[e.Full=1]="Full",e[e.Subdomain=2]="Subdomain",e))(rO||{}),m4=(e=>(e[e.Show=0]="Show",e[e.Hide=1]="Hide",e))(m4||{}),h4=(e=>(e[e.Ignore=0]="Ignore",e[e.Mob=1]="Mob",e[e.WebMob=2]="WebMob",e))(h4||{}),op=(e=>(e[e.Included=1]="Included",e[e.Excluded=2]="Excluded",e))(op||{}),aO=(e=>(e.Auth="auth",e))(aO||{});const g4={[Qa.LiveGames]:{id:"28",name:"LVG"},[Qa.SkillGames]:{id:"36",name:"SKL"},[Qa.BettingGames]:{id:"406",name:"BET"},[Qa.Slots]:{id:"51",name:"SLT"},[Qa.VirtualGames]:{id:"35",name:"VIV"}},ip="defaultLoader",eb="general-terms-and-conditions",kv="sigap_v1",gce="privacy-policy",lp="https://cmsbetconstruct.com",to=class to{constructor(){se(this,"Config",{});se(this,"minimumAllowedAge",18);se(this,"esportsAvailable",!1);se(this,"liveCasinoAvailable",!1);se(this,"skillGamesAvailable",!1);se(this,"tvGamesAvailable",!1);se(this,"virtualSportsAvailable",!1);se(this,"sportsBookAvailable",!1);se(this,"jackpotsPageAvailable",!1);se(this,"_availableBonuses");se(this,"_exchangeShopAvailable");se(this,"_sendMessageAvailable");se(this,"_showGiftBetIcon");se(this,"_bettingAvailable");se(this,"_betBookingAvailable");se(this,"_hybridModeAvailable");se(this,"_multipleOfTheDayModeAvailable");se(this,"_betslipDefaultContentType");se(this,"_gameNotificationsAvailable");se(this,"_bonusAllowed");se(this,"_loyaltyLevel2Enabled");se(this,"_internalBetBuilderAliases",[]);se(this,"_accountNavigationSorted");se(this,"_accountVerificationEnabled");se(this,"_profileDateTimePickerEnabled");se(this,"_profileAvatarEnabled");se(this,"_profileWithdrawableMoneyEnabled");se(this,"_profileBonusMoneyEnabled");se(this,"_profileLoyaltyPointsEnabled");se(this,"_isCMSDomainChanged");se(this,"_profileLogoutAvailable");se(this,"_promoCodeAvailable");se(this,"_bonusRequestV2Available");se(this,"_scratchCardAvailable");se(this,"_availableSpecialGames");se(this,"_gamesByCategoriesLimit");se(this,"_mobileAppsInfo");se(this,"_authenticationEnabledForIp");se(this,"_tabNavigationSearchAvailable");se(this,"_documentExpirationDate");se(this,"_isDocumentExpired");se(this,"_isDocumentExpirationDateWarningEnabled")}static getInstance(){return to.instance||(to.instance=new to),to.instance}init(t){this.Config=t,this.minimumAllowedAge=t.userAuthentication.registration.minimumAllowedAgeByCountry[ln.countryCode]||t.userAuthentication.registration.minimumAllowedAgeByCountry.default}get availableBonuses(){if(this._availableBonuses===void 0){const{accountNavigation:t}=this.Config;this._availableBonuses=t.bonuses!==void 0&&this._bonusAllowed?{casino:t.bonuses.pages.includes("casino"),sport:t.bonuses.pages.includes("sport")}:{casino:!1,sport:!1}}return this._availableBonuses}get exchangeShopAvailable(){if(this._exchangeShopAvailable===void 0){const{accountNavigation:t}=this.Config;this._exchangeShopAvailable={exchangeShopAvailable:t.bonuses.pages.includes("exchange-shop"),exchangeShopHistoryAvailable:t.bonuses.pages.includes("exchange-shop-history")}}return this._exchangeShopAvailable}get sendMessageAvailable(){if(this._sendMessageAvailable===void 0){const{accountNavigation:t}=this.Config;this._sendMessageAvailable=t.messages!==void 0&&t.messages.pages.includes("new")}return this._sendMessageAvailable}get showGiftBetIcon(){if(this._showGiftBetIcon===void 0){const{accountNavigation:t}=this.Config;this._showGiftBetIcon=t.history!==void 0&&f4.some(n=>t.history.pages.includes(n))}return this._showGiftBetIcon}get bettingAvailable(){return this._bettingAvailable===void 0&&(this._bettingAvailable=this.Config.sportsbook.betslip.contentTabs.some(({type:t})=>[Re.Betting,Re.Hybrid].includes(t))),this._bettingAvailable}get betBookingAvailable(){return this._betBookingAvailable===void 0&&(this._betBookingAvailable=this.Config.sportsbook.betslip.contentTabs.some(({type:t})=>[Re.Booking,Re.Hybrid].includes(t))),this._betBookingAvailable}get hybridModeAvailable(){return this._hybridModeAvailable===void 0&&(this._hybridModeAvailable=this.Config.sportsbook.betslip.contentTabs.some(lt("type",Re.Hybrid))),this._hybridModeAvailable}get multipleOfTheDayModeAvailable(){return this._multipleOfTheDayModeAvailable===void 0&&(this._multipleOfTheDayModeAvailable=this.Config.sportsbook.betslip.contentTabs.some(lt("type",Re.MultipleOfTheDay))),this._multipleOfTheDayModeAvailable}get betslipDefaultContentType(){return this._betslipDefaultContentType===void 0&&(this._betslipDefaultContentType=this.hybridModeAvailable?Re.Hybrid:this.bettingAvailable?Re.Betting:this.betBookingAvailable?Re.Booking:this.Config.sportsbook.betslip.contentTabs[0].type),this._betslipDefaultContentType}get gameNotificationsAvailable(){var t,n,s,r;if(this._gameNotificationsAvailable===void 0){const a=Q.isMobile?"mobile":"web",o=!!((t=this.Config.oneSignal)!=null&&t.appId)&&(((n=this.Config.oneSignal)==null?void 0:n.platform)??"mobile")===a;this._gameNotificationsAvailable=!!((s=this.Config.firebase)!=null&&s.apiKey||o)&&((r=window==null?void 0:window.Notification)==null?void 0:r.permission)==="granted"}return this._gameNotificationsAvailable}set gameNotificationsAvailable(t){this._gameNotificationsAvailable=void 0}set bonusAllowed(t){this._bonusAllowed!==t&&(this._bonusAllowed=t,this._accountNavigationSorted=void 0,this._availableBonuses=void 0,this._promoCodeAvailable=void 0,this._bonusRequestV2Available=void 0)}get loyaltyLevel2Enabled(){return this._loyaltyLevel2Enabled??!1}set loyaltyLevel2Enabled(t){t&&(this._loyaltyLevel2Enabled=!0)}get internalBetBuilderAliases(){return this._internalBetBuilderAliases}set internalBetBuilderAliases(t){this._internalBetBuilderAliases=t}get accountNavigationSorted(){return this._accountNavigationSorted===void 0&&(this._accountNavigationSorted=$r(Object.values(this.Config.accountNavigation).filter(({section:t,pages:n})=>n.length&&(!["bonuses","bonus-journey"].includes(t)||this._bonusAllowed)&&(t!=="history"||this.Config.sportsbook.enabled)),"order")),this._accountNavigationSorted}get accountVerificationEnabled(){var t,n,s;return this._accountVerificationEnabled===void 0&&(this._accountVerificationEnabled=(this.Config.accountNavigation.profile.pages.includes("verify-account")||!!((s=(n=(t=this.Config.app.brazilLicense)==null?void 0:t.migration)==null?void 0:n.migrateWithSignicat)!=null&&s.enabled))&&!this.Config.partner.integrationMode),this._accountVerificationEnabled}get profileDateTimePickerEnabled(){return this._profileDateTimePickerEnabled===void 0&&(this._profileDateTimePickerEnabled=!this.Config.partner.integrationMode&&this.Config.app.enableProfileDateTimePicker),this._profileDateTimePickerEnabled}get profileAvatarEnabled(){return this._profileAvatarEnabled===void 0&&(this._profileAvatarEnabled=!this.Config.partner.integrationMode),this._profileAvatarEnabled}get profileWithdrawableMoneyEnabled(){return this._profileWithdrawableMoneyEnabled===void 0&&(this._profileWithdrawableMoneyEnabled=!this.Config.partner.integrationMode),this._profileWithdrawableMoneyEnabled}get profileBonusMoneyEnabled(){return this._profileBonusMoneyEnabled===void 0&&(this._profileBonusMoneyEnabled=this.Config.app.promotionalBonuses.enabled&&!this.Config.partner.integrationMode),this._profileBonusMoneyEnabled}get profileLoyaltyPointsEnabled(){return this._profileLoyaltyPointsEnabled===void 0&&(this._profileLoyaltyPointsEnabled=!this.Config.partner.integrationMode),this._profileLoyaltyPointsEnabled}get isCMSDomainChanged(){var t;if(this._isCMSDomainChanged===void 0){const n=s=>new URL(s).hostname;this._isCMSDomainChanged=n((t=this.Config.cms)==null?void 0:t.apiUrl)!==n(lp)}return this._isCMSDomainChanged}get profileLogoutAvailable(){return this._profileLogoutAvailable===void 0&&(this._profileLogoutAvailable=!this.Config.partner.integrationMode),this._profileLogoutAvailable}get promoCodeAvailable(){return this._promoCodeAvailable===void 0&&(this._promoCodeAvailable=!!this._bonusAllowed&&this.Config.accountNavigation.bonuses.pages.includes("promo-code")),this._promoCodeAvailable}get bonusRequestV2Available(){return this._bonusRequestV2Available===void 0&&(this._bonusRequestV2Available=!!this._bonusAllowed&&this.Config.accountNavigation.bonuses.pages.includes("bonus-request")&&!!this.Config.app.isBonusRequestV2),this._bonusRequestV2Available}get scratchCardAvailable(){return this._scratchCardAvailable===void 0&&(this._scratchCardAvailable=!!this._bonusAllowed&&this.Config.accountNavigation.bonuses.pages.includes("scratch-card")),this._scratchCardAvailable}get loyaltyLevelNotificationsEnabled(){return this.loyaltyLevel2Enabled&&this.Config.accountNavigation.bonuses.pages.includes("loyalty-points")}get availableSpecialGames(){return this._availableSpecialGames===void 0&&(this._availableSpecialGames=this.Config.sportsbook.specialOptions.reduce((t,{value:n})=>(t[n]=!0,t),{})),this._availableSpecialGames}get gamesByCategoriesLimit(){return this._gamesByCategoriesLimit===void 0&&(this._gamesByCategoriesLimit=Q.isMobile?2:6),this._gamesByCategoriesLimit}set gamesByCategoriesLimit(t){t!==this._gamesByCategoriesLimit&&(this._gamesByCategoriesLimit=t)}get mobileAppsInfo(){if(this._mobileAppsInfo===void 0){const{mobileAppNotification:{enabled:t,sport:n,casino:s,default:r}}=this.Config,a=t&&Q.isMobile?Q.userOs==="Android"?"androidLink":Q.userOs==="IOS"?"iosLink":"":"";if(a&&(n!=null&&n[a]||s!=null&&s[a]||r!=null&&r[a])){const o=a==="iosLink";if(this._mobileAppsInfo={},r!=null&&r[a])return this._mobileAppsInfo.default={href:r[a],imageSrc:r.imageSrc,isIOS:o},this._mobileAppsInfo;n!=null&&n[a]&&(this._mobileAppsInfo.sport={href:n[a],imageSrc:n.imageSrc,isIOS:o}),s!=null&&s[a]&&(this._mobileAppsInfo.casino={href:s[a],imageSrc:s.imageSrc,isIOS:o})}else this._mobileAppsInfo=null}return this._mobileAppsInfo}get authenticationEnabledForIP(){var t;return this._authenticationEnabledForIp===void 0&&(this._authenticationEnabledForIp=this.Config.userAuthentication.availableCountriesByIp?this.Config.userAuthentication.availableCountriesByIp.includes(ln.countryCode):!((t=this.Config.userAuthentication.restrictedCountriesByIp)!=null&&t.includes(ln.countryCode))),this._authenticationEnabledForIp}get tabNavigationSearchAvailable(){return this._tabNavigationSearchAvailable===void 0&&(this._tabNavigationSearchAvailable=Object.values(this.Config.app.tabNavigation).some(t=>t.some(({id:n})=>n==="tab-search"))),this._tabNavigationSearchAvailable}set documentExpirationDate(t){this._documentExpirationDate!==t&&(this._documentExpirationDate=t,this._isDocumentExpired=void 0)}get isDocumentExpired(){if(!this._documentExpirationDate)return!1;if(this._isDocumentExpired===void 0){const t=new Date(this._documentExpirationDate),n=new Date;n.setHours(0,0,0,0),this._isDocumentExpired=n>t}return this._isDocumentExpired}get documentExpirationDateWarningEnabled(){return this._isDocumentExpirationDateWarningEnabled===void 0&&(this._isDocumentExpirationDateWarningEnabled=this.Config.app.enableDocExpirationDateWarning),this._isDocumentExpirationDateWarningEnabled}};se(to,"instance");let gt=to;class _4{notify({type:t,value:n}){if(window.parent!==window)try{window.parent.postMessage({type:t,value:n},"*")}catch(s){console.error(s)}}}const nr=new _4,v4=e=>({...e,decimalRounding:e.price_decimals??Uo,max_odd_for_multiple_bet:e.max_odd_for_multiple_bet||1/0,verificationChannelTypes:e.verificaition_channel_types??[]}),oO={decimalRounding:Uo,max_odd_for_multiple_bet:1/0,verificationChannelTypes:[]},iO=p.createContext(oO),E4=({children:e})=>{const{currentPath:t}=ke(),[n,s]=p.useState(oO),{initPartnerConfig:r}=p.useContext(El),[{refreshRequired:a},o]=p.useState({version:"",refreshRequired:!1});return p.useEffect(()=>{const{site_id:i}=N.app;ee.subscribe({source:"partner.config",what:{partner:[]}},({partner:l})=>{const c=l[i];if(c){const u=v4(c);s(u),u.bet_builder_ih_enabled&&(gt.getInstance().internalBetBuilderAliases=tO)}},l=>rt.error(`Failed to subscribe to partner config: reason: ${l.msg}`))},[]),p.useEffect(function(){if(n.tax_sportIds){let l=!1;const c={source:"betting",what:{sport:["alias"]},where:{sport:{id:{"@in":n.tax_sportIds}}}};return ee.get(c,"get").then(({data:u})=>{l||s(f=>({...f,tax_sport_aliases:Object.values(u.sport).map(Pt("alias"))}))}).catch(u=>rt.error(u.msg)),()=>{l=!0}}},[n.tax_sportIds]),p.useEffect(function(){var c;const l=(c=n.app_versions)==null?void 0:c[Q.isMobile?Es.Mobile:Es.Desktop];l&&o(({version:u})=>({version:l,refreshRequired:u!==""&&u!==l}))},[n.app_versions]),p.useEffect(()=>{r(n)},[n,r]),p.useEffect(function(){if(a)return()=>{window.location.reload()}},[t,a]),d.jsx(iO.Provider,{value:n,children:e})},Fs=()=>p.useContext(iO);var Di=(e=>(e.Parent="get_parent_session",e.Child="get_child_session",e))(Di||{}),y4=(e=>(e[e.NotSupported=0]="NotSupported",e[e.Multi=1]="Multi",e))(y4||{});const vi=e=>{const t=Te.getItem(wm);return e&&(t==null?void 0:t.id)===e?t:{}},Vh=()=>{Te.removeItem(wm)},TC=()=>{const{currency:e,showPopup:t,enabled:n}=N.app.childSession.switchWalletAfterLogin;n&&Te.setItem(Li,{currency:e,ignorePopup:!t})},b4=()=>{const{supports_child_client:e,child_client_default_currency:t,mult_wallet_currencies:n}=Fs(),{profile:{currency:s,owner_id:r}}=ye(),a=p.useMemo(()=>vi(r)._currency,[r]),o=p.useMemo(()=>!e||!a&&s&&(!n.length&&t===s||n.length===1&&n[0]===s)?0:n.length?1:0,[e,a,n,s,t]),i=p.useMemo(()=>o===1&&(n.includes(bC)||a===bC),[n,a,o]);return{parentCurrency:a,walletSwitcherAvailable:o,ftnLeaderBoardAvailable:i,currencyInfoAnimationAvailable:i,childDefaultClientCurrency:t}},S4={AED:"د.إ",AFN:"Af",ALL:"L",AMD:"֏",AOA:"Kz",ARS:"$",AUD:"$",AWG:"ƒ",AZN:"₼",BAM:"КМ",BBD:"$",BDT:"৳",BGN:"лв",BHD:"ب.د",BIF:"₣",BMD:"$",BND:"$",BOB:"Bs.",BRL:"R$",BSD:"$",BWP:"P",BYN:"Br",BZD:"$",CAD:"$",CDF:"CDF",CHF:"₣",CLP:"$",CNY:"¥",COP:"$",CRC:"₡",CUP:"$",CVE:"$",CZK:"Kč",DHS:"Dash",DJF:"₣",DKK:"kr",DOG:"Doge",DOP:"$",DSH:"DASH",DZD:"د.ج",EGP:"£",ERN:"Nfk",EUR:"€",FJD:"$",FKP:"£",GBP:"£",GEL:"ლ",GHS:"₵",GIP:"£",GMD:"D",GNF:"₣",GTQ:"Q",GYD:"$",HKD:"$",HNL:"L",HRK:"Kn",HTG:"G",HUF:"Ft",IDR:"Rp",ILS:"₪",INR:"₹",ISK:"Kr",JMD:"$",JPY:"¥",KES:"Ksh",KHR:"៛",KPW:"₩",KRW:"₩",KYD:"$",KZT:"〒",LAK:"₭",LKR:"Rs",LRD:"L$",LSL:"L",MBC:"mBTC",MDL:"L",MKD:"ден",MMK:"K",MNT:"₮",MOP:"P",MRU:"UM",MUR:"₨",MWK:"MK",MXN:"$",MYR:"RM",MZN:"MTn",NAD:"N$",NGN:"₦",NIO:"C$",NOK:"kr",NPR:"₨",NZD:"$",PAB:"B/.",PEN:"S/",PGK:"K",PHP:"₱",PKR:"₨",PLN:"zł",PYG:"₲",RON:"L",RSD:"din",RUB:"р.",RWF:"FRw",SBD:"$",SCR:"₨",SDG:"£",SEK:"kr",SGD:"$",SHB:"Shib",SHP:"£",SLL:"Le",SOS:"Sh",SRD:"$",STN:"Db",SZL:"L",THB:"฿",TJS:"ЅМ",TMT:"m",TOP:"T$",TRY:"₺",TTD:"$",TUS:"USDT",TWD:"$",TZS:"TZS",UAH:"₴",UGX:"USh",USD:"$",UYU:"$",V01:"vUSDT",V02:"vBCT",V03:"vETH",V04:"vLTC",VBT:"vvBTC",VET:"vvETH",VLC:"vvLTC",VND:"₫",VUV:"Vt",WST:"T",XAF:"₣",XCD:"$",XPF:"₣",YER:"﷼",YOS:"Yoshi",ZAR:"R",ZMW:"ZK",ZWL:"$"},C4=(e,t)=>{const n=S4[e]??e;return t&&n.length<=3?e:n},lO=()=>{const e=Se();return p.useCallback((t,n)=>{const s=`_${t}`,r=e(s);return t?r!==s?r:C4(t,n):""},[e])};function cO(e,t,n=!1){const[s,r]=p.useState(e);return p.useEffect(()=>{const a=setTimeout(()=>{r(e)},t);return()=>{clearTimeout(a)}},[e,t]),n?e:s}const nu=e=>{const t=p.useRef();return t.current===void 0&&(t.current=e()),t.current};var uO={exports:{}};(function(e,t){(function(n,s){e.exports=s()})(ll,function(){var n=1e3,s=6e4,r=36e5,a="millisecond",o="second",i="minute",l="hour",c="day",u="week",f="month",m="quarter",h="year",g="date",E="Invalid Date",b=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,v=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,_={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(k){var D=["th","st","nd","rd"],j=k%100;return"["+k+(D[(j-20)%10]||D[j]||D[0])+"]"}},y=function(k,D,j){var V=String(k);return!V||V.length>=D?k:""+Array(D+1-V.length).join(j)+k},S={s:y,z:function(k){var D=-k.utcOffset(),j=Math.abs(D),V=Math.floor(j/60),R=j%60;return(D<=0?"+":"-")+y(V,2,"0")+":"+y(R,2,"0")},m:function k(D,j){if(D.date()1)return k(G[0])}else{var z=D.name;x[z]=D,R=z}return!V&&R&&(w=R),R||!V&&w},P=function(k,D){if(C(k))return k.clone();var j=typeof D=="object"?D:{};return j.date=k,j.args=arguments,new O(j)},A=S;A.l=T,A.i=C,A.w=function(k,D){return P(k,{locale:D.$L,utc:D.$u,x:D.$x,$offset:D.$offset})};var O=function(){function k(j){this.$L=T(j.locale,null,!0),this.parse(j),this.$x=this.$x||j.x||{},this[I]=!0}var D=k.prototype;return D.parse=function(j){this.$d=function(V){var R=V.date,U=V.utc;if(R===null)return new Date(NaN);if(A.u(R))return new Date;if(R instanceof Date)return new Date(R);if(typeof R=="string"&&!/Z$/i.test(R)){var G=R.match(b);if(G){var z=G[2]-1||0,K=(G[7]||"0").substring(0,3);return U?new Date(Date.UTC(G[1],z,G[3]||1,G[4]||0,G[5]||0,G[6]||0,K)):new Date(G[1],z,G[3]||1,G[4]||0,G[5]||0,G[6]||0,K)}}return new Date(R)}(j),this.init()},D.init=function(){var j=this.$d;this.$y=j.getFullYear(),this.$M=j.getMonth(),this.$D=j.getDate(),this.$W=j.getDay(),this.$H=j.getHours(),this.$m=j.getMinutes(),this.$s=j.getSeconds(),this.$ms=j.getMilliseconds()},D.$utils=function(){return A},D.isValid=function(){return this.$d.toString()!==E},D.isSame=function(j,V){var R=P(j);return this.startOf(V)<=R&&R<=this.endOf(V)},D.isAfter=function(j,V){return P(j)(e[e.All=-1]="All",e[e.Today=0]="Today",e))(Nv||{}),Ye=(e=>(e.Home="home",e.Live="live",e.Prematch="pre-match",e.AsianView="asian-view",e.Results="results",e.Calendar="live-calendar",e.Tournaments="tournaments",e.Statistics="statistics",e.PopularBets="popular-bets",e.FavoriteTeams="favoriteTeams",e))(Ye||{}),Rv=(e=>(e[e.Electronic=0]="Electronic",e[e.Virtual=1]="Virtual",e[e.General=2]="General",e[e.Casino=3]="Casino",e[e.Racing=4]="Racing",e))(Rv||{}),dO=(e=>(e.SPORT="sport",e.ESPORT="esport",e))(dO||{});const _ce=new Set(Object.values(Ye));var _o=(e=>(e.EventView="event-view",e))(_o||{});const w4=["P1XP2","P1P2"];var fO=(e=>(e.UpcomingMatches="upcoming-matches",e.PopularMatches="popular-matches",e.RecommendedCompetitions="recommended-competitions",e.PopularCompetitions="popular-competitions",e.OlympicCompetitions="olympic-competitions",e.OlympicMatches="olympic-matches",e.BoostedBets="boosted-bets",e.Coupons="coupons",e.ExpressOfTheDay="multiple-of-the-day",e.FavoriteTeam="favorite-team",e.TodayBets="today-bets",e.SpecialCompetition="special-competition",e))(fO||{});const vce=[{label:"All",value:-1},{label:"Today",value:0},{label:"3 hours",value:180},{label:"6 hours",value:360},{label:"12 hours",value:720},{label:"24 hours",value:1440},{label:"48 hours",value:2880},{label:"72 hours",value:4320}],Ece={"multiple-of-the-day":"bc-i-FlashGames","upcoming-matches":"bc-i-upcoming","popular-matches":"bc-i-tournament","special-competition":"bc-i-tournament","popular-competitions":"bc-i-tournament","olympic-competitions":"bc-i-olympic","olympic-matches":"bc-i-olympic","boosted-bets":"bc-i-boost",coupons:"bc-i-coupon","favorite-team":"bc-i-valentine","today-bets":`bc-i-today-bets current-day-${at(new Date).format("D")}`},wC=-1,yce="_name_not_loaded_",bce="notstarted",Sce="timeout";var Am=(e=>(e.Outright="OUTRIGHT",e))(Am||{});const Cce="game_controls_state",Tce="game_animation_controls_state",wce=new Set(["popular-competitions","olympic-competitions"]),Ice="start_ts";var I4=(e=>(e[e.Disabled=1]="Disabled",e))(I4||{}),Hr=(e=>(e.Betslip="video-betslip",e.Draggable="video-draggable",e.DraggableCollapsed="video-draggable-collapsed",e.Center="video-center",e.CustomFullScreen="video-custom-fullscreen",e))(Hr||{});const IC=55,Ace=new Map([["RestOfTheMatchWinner","rest_of_match_winner"],["MatchResult1Up","match_result_1up"],["Woodworks:Result","woodworks_info"],["PostOrCrossbarTotal","woodworks_info"],["Woodworks:Team1Total","woodworks_info"],["Woodworks:Team2Total","woodworks_info"],["MedicalStafftoEntertheField","medical_staff_info"],["HalfTimeResult","half_time_result"]]);var A4=(e=>(e[e.Clay=0]="Clay",e[e.Hard=1]="Hard",e[e.Grass=2]="Grass",e[e.Carpet=3]="Carpet",e))(A4||{});const tb="36",Pm="28",nb="54",xm="35",Pce="51",xce=1,P4=["FCG"],Oce=[tb,Pm,nb,xm],pr="all",Ei="All",as="-1",x4=2,O4=1,Sc=28,k4=55,pO=11,N4=555588e3,R4=555579e3,kce=new Set([N4,R4]),Nce=2,Rce=270,Lce=225,Mce=24,AC="16:9",L4=220,Dce=[20,81],jce="65",Bce="218",Fce="95",M4=[Pm,xm];var Cc=(e=>(e.Regular="regular",e.Rect="rect",e.Portrait="portrait",e))(Cc||{}),D4=(e=>(e.Casino="casino",e.LiveCasino="live-casino",e))(D4||{}),Sn=(e=>(e.AI="ai",e.Search="search",e.Recommended="recommended",e.RecentlyPlayed="recentlyPlayed",e.CategoryNew="categoryNew",e.CasinoWidgetClicked="casinoWidget",e.CategoryExclusive="categoryExclusive",e.CategoryPopular="categoryPopular",e.Favorite="favorite",e.Tournament="Tournament",e))(Sn||{}),xs=(e=>(e.Fun="fun",e.Real="real",e.Demo="demo",e))(xs||{}),mO=(e=>(e.Trending="1",e.Customer="2",e))(mO||{}),Hs=(e=>(e.GAMES="games",e.SPECIAL_VIEW="special-view",e.PROVIDER_JACKPOTS="provider-jackpots",e.OPTIONS_PROVIDERS="options-providers",e.OPTIONS_CATEGORIES="options-categories",e))(Hs||{});const Uce=1;var ht=(e=>(e.Home="home",e.Live="live",e.PreMatch="pre_match",e.SportHome="sport",e.AsianView="asian_view",e.LiveCalendar="live_calendar",e.Results="results",e.SportTournaments="sport_tournaments",e.ESports="e_sports",e.HorseRacing="horse_racing",e.HorseRacingBC="horse_racing_bc",e.Jackpots="jackpots",e.Pinnacle="pinnacle",e.PinnacleEsports="pinnacle_esports",e.Poker="poker",e.Backgammon="backgammon",e.Promotions="promotions",e.Casino="casino",e.CasinoTournaments="casino_tournaments",e.TvGames="tv_games",e.LiveCasino="live_casino",e.Games="games",e.VirtualSports="virtual_sports",e.WonderWheel="wonder_wheel",e.Achievement="achievement",e.Vmania="vmania",e.CryptoExchange="crypto_exchange",e.WonderWheelHarmony="wonder_wheel_harmony",e.WonderWheelWorldCup="wonder_wheel_world_cup",e.DailySprint="daily_sprint",e.WinWheel="win_wheel",e.WonderCards="wonder_cards",e.Quiz="quiz",e.Subscriptions="subscriptions",e.LuckyTickets="lucky_tickets",e.ExchangeShop="exchange_shop",e.WorldCup="world_cup",e.Competition="competition",e.Tournaments="tournaments",e.PopularBets="popular_bets",e.FirstSportsbook="first_sport",e.VivaroMeFeed="vivaro_social",e.CasinoLiveRTP="casino_live_rtp",e))(ht||{});const $ce=new Set(["casino","live_casino","virtual_sports"]),Gce=new Set(["casino","live_casino","games","tv_games","virtual_sports"]),Wr={home:Or,live:Hn,sport:Hn,pre_match:Hn,asian_view:Hn,live_calendar:Hn,results:Hn,sport_tournaments:Hn,e_sports:Iy,horse_racing:rP,horse_racing_bc:yP,jackpots:Oy,pinnacle:Wf,pinnacle_esports:Wf,poker:Kf,backgammon:Kf,promotions:pP,casino:mo,casino_tournaments:zf,live_casino:Ao,games:Ni,tv_games:Qc,virtual_sports:Io,wonder_wheel:aP,achievement:Ay,vmania:oP,crypto_exchange:Py,wonder_wheel_harmony:iP,wonder_wheel_world_cup:lP,daily_sprint:cP,win_wheel:uP,wonder_cards:dP,quiz:ky,subscriptions:Ny,lucky_tickets:gP,exchange_shop:vP,world_cup:EP,competition:bP,first_sport:Ry,vivaro_social:mm,casino_live_rtp:xy},na={live:Ye.Live,pre_match:Ye.Prematch,asian_view:Ye.AsianView,live_calendar:Ye.Calendar,results:Ye.Results,tournaments:Ye.Tournaments,sport_tournaments:Ye.Tournaments,popular_bets:Ye.PopularBets},ha={home:Or,sport:"/sports/home",virtual_sports:"/virtual-sports/home",e_sports:"/esports",games:"/games/home",casino:"/casino/slots",live_casino:"/live-casino/home",jackpots:"/casino/jackpot",horse_racing:"/pmu",horse_racing_bc:"/racing",pinnacle:"/pinnacle/sport",pinnacle_esports:"/pinnacle/esport",promotions:"/promotions",wonder_wheel:"/wonderwheel",achievement:Ay,vmania:"/vmania",crypto_exchange:Py,wonder_wheel_harmony:"/wonder-wheel-harmony",wonder_wheel_world_cup:"/scratch-and-win",daily_sprint:"/daily-sprint",win_wheel:"/win-wheel",wonder_cards:"/wonder-cards",lucky_tickets:"/deposit-to-ride",casino_tournaments:"/casino/tournaments",quiz:"/quiz",subscriptions:"/subscriptions",tv_games:"/tv-games/home",exchange_shop:"/exchange-shop",poker:`/page/casino/poker/${Sc}`,backgammon:`/page/casino/backgammon/${pO}`,world_cup:"/world-cup",first_sport:"/first-sports",vivaro_social:"/social/feed",casino_live_rtp:xy},Lv="helpPageContent",Vce="provider",j4="searchTerm",vr="openGames",tl="gameNames",Tc="-",PC="gameViewMarketId",xC="gameViewEventId",OC="gameViewOutcome",kC="event",NC="market",RC="gameIds",LC="tags",Hce="stake",Wce="betSlipType",MC="bookingId",Hh="sharedBetId",Wh="homework",B4="betId",zce="specialSection",Yce="_",hO="game",qce="src",F4="hideUrl",Kce="showTo",Qce="seoKey",Xce="handleResize",Jce="showFooter",Zce="target",eue="sports",tue="day",zh="auth",U4="rewardsWithdrawal",gO="UserId",DC="OddType",Yh="siteId",qh="socketUrl",jC="integrationMode",gd="disableCustomCss",Kh="prev_css",BC="prev_conf",nl="profile",sl="open",nue="account",$4="page",_O="selectedMethod",G4="selectedGroup",V4="paymentType",H4="selectedRewardPage",W4="journey",z4="utm_",Qh="activationcode",sue="s",Xh="tid",FC="action",rue="openLiveChat",aue="openHooryAi",oue="openCommonChat",iue="selectedTab",Y4="redirect",q4="bonusId",lue="partnerBonusId",K4="confirmationMessage",Q4="rejectionMessage",cue="selectedDay",uue="cashback",due="cashbackCategory",fue="disableAllFilters",_d="switchWallet",pue="promoCodeValue",ec="code",Jh="loyaltyCode",UC="redirectGameId",mue="openKyc",hue="pageBuilderPreviewPage",gue="session_token",X4="pageView",_ue="isBBPopupOpen",su="CMSAuthToken",vue="competitionId",Eue="leagueCenterCompetitionId",yue="historyCategory",J4="internalBB",bue="socialSearch",Z4="accessToken",$C=(e,t,n,s)=>e.length===0||t&&e.includes(t)===(n===op.Included);var vO=(e=>(e[e.Included=1]="Included",e[e.Excluded=2]="Excluded",e))(vO||{});const EO=(e,t)=>e===Xn.All||e===Xn.Authorized&&t||e===Xn.Guest&&!t,Om=({profileTypes:e,customProfileTypes:t,showTo:n,profileActionType:s,excludedCurrencies:r},{isLoggedIn:a,profileType:o,partnerClientCategoryId:i,currency:l})=>!(EO(n,a)&&$C(e,o,s)&&$C(t??[],i,s)&&e$(l,r)),e$=(e,t)=>!(Array.isArray(t)&&t.length&&t.includes(e)),yO=(e,t,n)=>{switch(n){case 0:return!0;case 1:return t&&e>0;case 2:return t&&e<1;default:return!0}},t$=e=>{const t=new Date,n=new Date(e);let s=t.getFullYear()-n.getFullYear();const r=t.getMonth()-n.getMonth();return(r<0||r===0&&t.getDate(){if(!e||!t)return!0;const n=t$(t),s=n>=e.min&&n<=e.max;return e.type===1?s:!s},rb=(e,t,n)=>{switch(n){case 0:return!0;case 1:return e&&t;case 2:return e&&!t;default:return!0}},no=class no{constructor(){se(this,"_contentIdAliasMap");this._contentIdAliasMap=new Map}static getInstance(){return no.instance||(no.instance=new no),no.instance}setContentIdAlias(t,n){this._contentIdAliasMap.set(t,n)}getContentId(t){return this._contentIdAliasMap.get(t)}};se(no,"instance");let Mv=no;const n$=()=>null,s$=e=>e,ab=(e,t)=>t,Sue=[],Cue="",Zh={default:{}},Tue={},GC=[],eg=e=>(e==null?void 0:e.type)==="product"&&["live","pre_match"].includes(e.value),cp=(e,t,n)=>{var a;let s=null,r;switch(e.type){case"product":{if(N.enabledProducts&&!N.enabledProducts[e.value])break;switch(e.value){case"live":case"pre_match":s=(a=e.children)!=null&&a.length?"":`/sports/${na[e.value]}/${_o.EventView}`;break;case"live_calendar":case"popular_bets":case"asian_view":case"results":s=eg(n)?`/sports/${na[n.value]}/${na[e.value]}`:`/sports/${na[e.value]}`;break;case"poker":Sc in N.dynamicallyStructuredPages?s=ha.poker??null:(s="/games",r=Wr.games);break;case"backgammon":pO in N.dynamicallyStructuredPages?s=ha.backgammon??null:(s="/games",r=Wr.games);break;case"statistics":s=Na.getInstance().externalUrl;break;case"tournaments":eg(n)?(s=`/sports/${na[n.value]}/${na[e.value]}`,r=Hn):(n==null?void 0:n.type)==="product"&&n.value==="live_casino"?(s="/live-casino/tournaments",r=Yf):(n==null?void 0:n.type)==="product"&&n.value==="tv_games"?(s="/tv-games/tournaments",r=qf):(n==null?void 0:n.type)==="product"&&n.value==="virtual_sports"?(s="/virtual-sports/tournaments",r=iv):(s="/casino/tournaments",r=zf);break;case"casino_tournaments":(n==null?void 0:n.type)==="product"&&n.value==="live_casino"?(s="/live-casino/tournaments",r=Yf):(n==null?void 0:n.type)==="product"&&n.value==="tv_games"?(s="/tv-games/tournaments",r=qf):(n==null?void 0:n.type)==="product"&&n.value==="virtual_sports"?(s="/virtual-sports/tournaments",r=iv):(s="/casino/tournaments",r=zf);break;case"sport_tournaments":s=eg(n)?`/sports/${na[n.value]}/${na[e.value]}`:"/sports/tournaments";break;default:s=ha[e.value]??null}r||(r=Wr[e.value]);break}case"game":{if((n==null?void 0:n.type)==="product"&&(n.value==="tv_games"||n.value==="virtual_sports"))break;s=`/casino/game-view/${e.value}/${Ar(e.title)}`,e.target==="_blank"&&(s+=`?${Y4}=1`),r=Qi;break}case"link":case"integration":{s=e.value?Kn(t[e.value]?CO(e).path:e.value):"";break}case"page":case"content":{e.value&&(s=`/help/${e.value}${e!=null&&e.alias?`/${e.alias}`:""}`,Mv.getInstance().setContentIdAlias(e.value,e.alias??""));break}}return s!==null?{to:s,path:r}:null},bO=({menu:e,userPermissions:t,parent:n,integrations:s})=>{const r=ln.countryCode,{links:a,paths:o}=e.filter(({profileTypes:i,showTo:l,customProfileTypes:c,profileStatus:u,excludedCountries:f,profileActionType:m,excludedCurrencies:h})=>!Om({profileTypes:i,showTo:l,customProfileTypes:c,profileActionType:m,excludedCurrencies:h},t)&&rb(t.isLoggedIn,t.isVerified,u)&&(!f||!f.includes(r))).reduce((i,l)=>{const{links:c,paths:u}=i,{id:f,children:m,title:h,type:g,badge:E,excludedCountries:b,middlewares:v,onlyDirect:_,value:y}=l,S=g==="game"&&l.target==="_blank"?"_self":l.target,w=l.icon?`bc-i-${l.icon}`:void 0,x=l.icon??void 0,I=cp(l,s,n);if(I===null)return g==="group"&&!n&&c.push({id:f,target:S,title:h,badge:E,icon:w,svgIconName:x,excludedCountries:b,titleValue:y,...v&&{middlewares:v},..._&&{onlyDirect:_},isGroup:!0,submenus:[]}),i;const{to:C,path:T}=I,{links:P,paths:A}=m!=null&&m.length?bO({menu:m,userPermissions:t,parent:l,integrations:s}):{links:[],paths:[]},O=C?{to:T?ab(T,C):C}:{};return c.push({id:f,target:S,title:h,isGroup:!1,badge:E,excludedCountries:b,titleValue:y,...v&&{middlewares:v},..._&&{onlyDirect:_},icon:w,svgIconName:x,submenus:P,...O}),T&&u.add(T),A.forEach(M=>u.add(M)),i},{links:[],paths:new Set});return{links:a,paths:Array.from(o)}},wue=(e,t)=>e.replace(/\/:([\w|-]+)\??/gi,function(n,s){return t[s]?`/${t[s]}`:""}),r$=(e,t)=>{var n;return(n=e.find(s=>{var r;return(r=s.submenus)==null?void 0:r.some(({to:a})=>a&&Ra(a,t))}))==null?void 0:n.submenus},bt=({section:e,page:t,...n},s)=>ut({...ze((s==null?void 0:s.search)||window.location.search),[nl]:sl,[_O]:void 0,[G4]:void 0,[W4]:void 0,[V4]:void 0,[q4]:void 0,[X4]:void 0,[H4]:void 0,...Q.isMobile&&{[vr]:void 0},...Q.isMobile&&{[tl]:void 0},account:e,page:t,...n}),SO=e=>{const t=[];return e.forEach(n=>{var s,r;(s=n.middlewares)!=null&&s.length&&t.push({to:n.to,middlewares:n.middlewares}),(r=n.submenus)!=null&&r.length&&t.push(...SO(n.submenus))}),t},Ra=(e,t)=>{if(e.startsWith("?"))return t.search.includes(e);if(e.includes(F4)&&t.pathname)return e.includes(t.pathname);if(e.startsWith("/casino/game-view/")){const n=e.split("/").slice(0,-1),s=t.pathname.split("/").slice(0,-1);return n.length===s.length?n.every((r,a)=>r===s[a]):!1}else{if(t.pathname.startsWith(e))return!0;if(`${t.pathname}${t.search}`.startsWith(e))return!0}return!1},CO=e=>{const{value:t,showTo:n,productType:s,productUrlType:r,productUrl:a,productUrlSubdomain:o,productParams:i=[],seoKey:l}=e;let c=a;r===rO.Subdomain&&o&&(c=`https://${o}.{domain}${a}`);const u=i.map(({key:E,value:b})=>`${E}=${b}`).join("&"),f=`${c}${u?`?${u}`:""}`,m=l||"",h=`/int/${s===sO.Casino?ap.CASINO:ap.SPORT}/${encodeURIComponent(t)}`,g={showTo:n,src:Kn(f),seoKey:m,productName:t};return{path:h,paramsObj:g}},TO=he.createContext({}),VC={id:0,name:"",iso_long:"",symbol:"",rate:0,rounding:$x},HC={rate:1,name:"EUR"},a$=({children:e})=>{const[t,n]=p.useState(VC),[{loaded:s,currencyConfig:r},a]=p.useState({loaded:!1,currencyConfig:{}}),{loginInProgress:o,profile:i}=ye(),{setCurrencyRounding:l}=p.useContext(El),{currency:c,supported_currencies:u}=Fs(),f=lO(),m=i&&i.currency||c,h=p.useCallback(g=>{var E;return r[g.length>3?((E=Object.values(r).find(lt("iso_long",g)))==null?void 0:E.name)??g:g]??{...VC,iso_long:g,symbol:f(g),name:g}},[r,f]);return p.useEffect(()=>{u&&!s&&ee.get({source:"config.currency",what:{currency:[]},where:{currency:{iso_long:{"@in":u}}}}).then(({data:g})=>{a({currencyConfig:Object.values(g.currency).reduce((E,b)=>(E[b.name]={...b,symbol:f(b.name),rate:b.name===HC.name?HC.rate:b.rate},E),{}),loaded:!0})}).catch(g=>{a(E=>({...E,loaded:!0})),rt.error(`failed to get config currency: reason: ${g}`)})},[f,s,u]),p.useEffect(()=>{if(m&&!o&&s){const g=h(m);n(g),l(g.rounding)}},[m,r,h,f,s,o,l]),d.jsx(TO.Provider,{value:{currency:t??{},getCurrencyData:h},children:e})},or=()=>p.useContext(TO),dn=()=>{const{locale:e}=ke(),t=p.useRef(e),{replace:n,push:s,...r}=dm(),[a]=p.useState(()=>({...r,replace(o,i){const l=t.current;typeof o=="string"?n(o.startsWith("/")?`/${l}${o}`:o,i):n(o.pathname&&o.pathname.startsWith("/")?{...o,pathname:`/${l}${o.pathname}`}:o)},push(o,i){const l=t.current;typeof o=="string"?s(o.startsWith("/")?`/${l}${o}`:o,i):s(o.pathname&&o.pathname.startsWith("/")?{...o,pathname:`/${l}${o.pathname}`}:o)}}));return p.useEffect(function(){t.current=e},[e]),a},Ua=()=>p.useContext(El).logout;var o$=(e=>(e.BUTTON="button",e.SUBMIT="submit",e.RESET="reset",e))(o$||{});const $t=({type:e="button",title:t,className:n,loading:s=!1,showTitle:r=!0,children:a,...o})=>{const i=Se();return d.jsxs("button",{className:`${n} ${s?"loading":""}`,type:e,...t&&{title:i(t)},...o,children:[t&&r?d.jsx("span",{children:i(t)}):null,a]})};var Dv=(e=>(e.Male="M",e.Female="F",e))(Dv||{});const WC={male:["1","3","5","7"],female:["2","4","6","8"]},i$="{1}",l$=({docNumber:e})=>E$(e),c$=({docNumber:e})=>y$(e),u$=({docNumber:e,countryCode:t})=>v$(e,t),d$=({docNumber:e})=>h$(e),wO=e=>{var t,n;return((t=e==null?void 0:e.required)==null?void 0:t.value)===0?"":((n=e==null?void 0:e.required)==null?void 0:n.message)||""},Wa=(e,t,n,s)=>{var r,a,o,i;if(n[t].type==="cpf"&&((a=(r=n[t].customAttrs)==null?void 0:r.checkViaBackend)!=null&&a.backendError))return(i=(o=n[t].customAttrs)==null?void 0:o.checkViaBackend)==null?void 0:i.backendError;if(!n[t].readOnly){const{rules:l,type:c}=n[t];if(l)return ob(e)?wO(l):c==="phone"?f$({value:e,customPattern:s,rules:l,formData:n}):jv({value:e,customPattern:s,rules:l,formData:n})}return""},f$=({value:e,formData:t,customPattern:n,rules:s})=>{if(typeof e=="string"){const r=!uo(s)&&jv({value:e,customPattern:n,rules:s,formData:t});return r||(Q0.test(e)?"":e2)}else{const{phoneCode:r,phoneNumber:a=""}=e;return Q0.test(r)?jv({value:a,customPattern:n,rules:s,formData:t}):Z5}},IO=(e,t)=>{const n=Bd(t).find(s=>s.name===e.related_field_name);return n&&e.related_field_values.includes(n.value)},zC=(e,t)=>{var n;if((n=e.dependencies)!=null&&n.length&&e.hasOwnProperty("value")){const[s]=e.dependencies;if(IO(s,t))return{...e,value:s.value}}return e},jv=({value:e,formData:t,customPattern:n,rules:s})=>{const{required:r,method:a,pattern:o,...i}=s;for(const[l,c]of Object.entries(i))if(c){const u=p$[l],f=zC(c,t);if(u&&!u(e,f,t))return xU(c.message,f.value,i$)}if(a&&a.value in vd){const l=vd[a.value](e,n.countryCode||ln.countryCode);if(!l.valid)return l.message}if(a!=null&&a.dependencies){const[l]=a.dependencies;if(IO(l,t)&&l.value in vd){const c=vd[l.value](e,n.countryCode||ln.countryCode);if(!c.valid)return c.message}}if(o){const l=zC(o,t);try{if(l.value&&!new RegExp(l.value).test(e))return l.message}catch(c){c instanceof Error&&rt.error(c.message)}}return""},p$={length(e,t){return e.length===t.value},minLength(e,t){return e.length>=t.value},maxLength(e,t){return e.length<=t.value},match(e,t,n){return e===n[t.value].value},notMatch(e,t,n){return e!==n[t.value].value},min(e,t){const n=Number(e);return!isNaN(n)&&n>=t.value},max(e,t){const n=Number(e);return!isNaN(n)&&n<=t.value},minSize(e,t){const n=r=>r.size>=t.value*1024*1024,{file:s}=e;return Array.isArray(s)?s.every(n):n(s)},maxSize(e,t){const n=r=>r.size<=t.value*1024*1024,{file:s}=e;return Array.isArray(s)?s.every(n):n(s)}},vd={checkTurkishId(e,t){return l$({docNumber:e})},checkRomanianId(e,t){return c$({docNumber:e})},checkSouthAfricanId(e,t){return d$({docNumber:e})},checkBulgarianId(e,t){return u$({docNumber:e,countryCode:t})}},ob=e=>{if(e==null)return!0;if(Array.isArray(e))return e.length===0;if(typeof e=="string")return e.trim().length===0;if(typeof e=="number")return e.toString().trim().length===0;if(typeof e=="boolean")return!e;if(Zf(e)){const t=Object.values(e);return t.length===0||t.some(ob)}return!1},ib=(e,t)=>e?wO(t)?`${e} *`:e:"",m$=e=>{const t=i=>[...i].reduce((l,c)=>l+parseInt(c,10),0),n=Array.from(e),[s,r,a]=n.map((i,l)=>l%2?parseInt(i,10)*2:parseInt(i,10)).reduce((i,l,c,u)=>(c===u.length-1?i[2]=l:c%2?i[1]+=t(l.toString()):i[0]+=l,i),[0,0,0]);return((r+s)%10===0?0:10-(r+s)%10)===a},h$=e=>{if(e.length!==13)return{valid:!1,message:r2};if(!/^\d+$/.test(e))return{valid:!1,message:Yo};const t=parseInt(e.substring(0,2),10),n=parseInt(e.substring(2,4),10),s=parseInt(e.substring(4,6),10),r=parseInt(e.substring(6,10),10),a=parseInt(e[10],10),o=new Date().getFullYear()%100,i=t>o?1900+t:2e3+t,l=at({year:i,month:n-1,day:s}),c=at().diff(l,"years")>=18;return n<1||n>12?{valid:!1,message:Yo}:s<1||s>31?{valid:!1,message:Yo}:r<0||r>9999||r>4999&&r<5e3?{valid:!1,message:Yo}:a!==0&&a!==1?{valid:!1,message:Yo}:m$(e)?c?{valid:!0}:{valid:!1,message:a2}:{valid:!1,message:Yo}},g$=e=>{const t=e.split("").map(Number);if(t.length!==10)return{valid:!1,message:_x};if(!/\b[0-9]{2}(?:0[1-9]|1[0-2]|2[1-9]|3[0-2]|4[1-9]|5[0-2])(?:0[1-9]|[1-2][0-9]|3[0-1])[0-9]{4}\b/g.test(e))return{valid:!1,message:$2};const r=[2,4,8,5,10,9,7,3,6].reduce((a,o,i)=>a+t[i]*o,0)%11;return t[t.length-1]!==r?{valid:!1,message:vx}:{valid:!0,message:""}},_$=e=>{const t=e.split("").map(Number);if(t.length!==10)return{valid:!1,message:_x};const r=[21,19,17,13,11,9,7,3,1].reduce((a,o,i)=>a+t[i]*o,0)%10;return t[t.length-1]!==r?{valid:!1,message:vx}:{valid:!0,message:""}},v$=(e,t)=>t==="BG"?g$(e):_$(e),E$=e=>{if(e.length!==11)return{valid:!1,message:t2};if(e.startsWith("0"))return{valid:!1,message:aC};const t=e.split("").map(Number),n=((t[0]+t[2]+t[4]+t[6]+t[8])*7-(t[1]+t[3]+t[5]+t[7]))%10,s=(t[0]+t[1]+t[2]+t[3]+t[4]+t[5]+t[6]+t[7]+t[8]+t[9])%10;return n===t[9]&&s===t[10]?{valid:!0}:{valid:!1,message:aC}},AO=(e,t=!1)=>{let n=0,s=0,r=0,a=0,o=!1;const i=[],l=[2,7,9,1,4,6,3,5,8,2,7,9];for(const c of e){const u=Number(c);if(i.push(u),t&&isNaN(u))return{year:n,month:s,day:r,hashResult:a,cnp:i,hasError:!0};i.length-1<12&&(a=a+i[i.length-1]*l[i.length-1])}switch(a=a%11,a===10&&(a=1),n=i[1]*10+i[2]||0,s=i[3]*10+i[4]||0,r=i[5]*10+i[6]||0,i[0]){case 1:case 2:n+=1900;break;case 3:case 4:n+=1800;break;case 5:case 6:n+=2e3;break;case 7:case 8:case 9:n+=2e3,n>Number(new Date().getFullYear())-1900-14&&(n-=100);break;default:o=!0}return{year:n,month:s,day:r,hashResult:a,cnp:i,hasError:o}},Iue=e=>{const{year:t,month:n,day:s}=AO(e,!1);return at(new Date(t,n-1,s),"ddd MMM DD YYYY HH:mm:ss [GMT]ZZ").format("YYYY-MM-DD")},Aue=e=>{if(e.length){const t=e[0];if(WC.male.includes(t))return Dv.Male;if(WC.female.includes(t))return Dv.Female}},y$=e=>{if(e.length!==13)return{valid:!1,message:n2};const{year:t,month:n,day:s,hashResult:r,cnp:a,hasError:o}=AO(e,!0);if(o)return{valid:!1,message:Dh};if(t<1800||t>2099)return{valid:!1,message:Dh};if(a[12]!==r)return{valid:!1,message:Dh};const i=new Date,l=new Date(t,n-1,s);return i.setFullYear(i.getFullYear()-18),l<=i?{valid:!0}:{valid:!1,message:s2}},Ru=({container:e,callback:t,ignoredElementsIds:n=[]})=>{const s=p.useRef(n),r=p.useRef(t);p.useEffect(function(){r.current=t},[t]),p.useEffect(()=>{n.length&&(s.current=n)},[n]),p.useEffect(()=>{const a=o=>{e.current&&!e.current.contains(o.target)&&!s.current.some(i=>o.target.closest(`#${i}`))&&r.current()};return document.addEventListener("mousedown",a),()=>{document.removeEventListener("mousedown",a)}},[e])},b$="Tab",S$=({defaultExpanded:e=!1,defaultSearchValue:t="",options:n,regExp:s,ignoreClickOutside:r=!1,props:a})=>{const o=Se(),[i,l]=p.useState(e),[c,u]=p.useState(t),f=p.useRef(!1),m=p.useRef(null),h=p.useRef(null),g=p.useRef(null);Ru({callback:()=>l(!1),container:r?g:m}),p.useEffect(function(){!i&&c&&u("")},[i,c]),p.useEffect(function(){if(!(Q.isMobile===1)){const y=m.current,S=()=>f.current=!1,w=()=>{f.current&&(l(!0),S())},x=C=>{C.key===b$&&!(a!=null&&a.readOnly||a!=null&&a.disabled)&&(f.current=!0)},I=C=>{const T=C.relatedTarget;T&&y&&!y.contains(T)&&l(!1)};if(y)return y.addEventListener("focusout",I),y.addEventListener("focus",w),document.addEventListener("keydown",x),document.addEventListener("mousedown",S),()=>{y.removeEventListener("focusout",I),y.removeEventListener("focus",w),document.removeEventListener("keydown",x),document.removeEventListener("mousedown",S)}}},[a==null?void 0:a.disabled,a==null?void 0:a.readOnly]),p.useEffect(()=>{if(h.current){const v=h.current.children.length<=rC?h.current.children.length-1:rC;h.current.children[v].scrollIntoView({behavior:"smooth",block:"nearest"})}},[i]);const E=p.useCallback(({target:{value:v}})=>u(s&&!s.test(v)&&v?"":v),[s]),b=p.useMemo(()=>{const v=n&&(c!=null&&c.trim())?n.filter(_=>o(_.label).toLowerCase().includes(c.trim().toLowerCase())):n;return(v==null?void 0:v.length)===0&&c?[{label:o(Ec.label),value:Ec.value,className:"",disabled:!1}]:v},[n,c,o]);return{expanded:i,container:m,selectRef:h,searchTerm:c,setExpanded:l,onHandleChange:E,filteredOptions:b}},YC=0,tg=1,C$=({list:e,searchTerm:t,onSelect:n,resetProp:s,listActive:r,containerRef:a,selectedIndex:o,vertical:i=!0})=>{const[l,c]=p.useState(o),u=p.useRef(s),{prevItemKey:f,nextItemKey:m}=p.useMemo(()=>({prevItemKey:i?"ArrowUp":"ArrowLeft",nextItemKey:i?"ArrowDown":"ArrowRight"}),[i]),h=p.useCallback(g=>{g.stopPropagation();const{key:E}=g;switch(E){case f:g.preventDefault(),c(b=>b>YC?b-tg:b);break;case m:g.preventDefault(),c(b=>b{window.removeEventListener("keydown",h)}},[h,r]),{activeIndex:l}},T$=({placeholder:e,title:t,children:n,inputValue:s,onChange:r,icon:a,rules:o,className:i="",readOnly:l=!1})=>{var f;const c=Se(),u=a||((f=p.Children.toArray(n).find(m=>p.isValidElement(m)&&m.props.value===s))==null?void 0:f.props.className);return d.jsx("div",{className:`form-control-bc select ${i} ${s!==void 0?"filled":""}`,children:d.jsxs("label",{className:"form-control-label-bc inputs",children:[u?d.jsx("i",{className:`select-icon-bc ${u}`}):null,d.jsxs("select",{className:"form-control-select-bc ellipsis",disabled:l,value:s,onChange:({target:{value:m}})=>r(m),"aria-label":c(t||e||"Select an option"),children:[e&&d.jsx("option",{value:"",children:c(e)}),n]}),p.Children.count(n)>1&&d.jsx("i",{className:"form-control-icon-bc bc-i-small-arrow-down"}),t&&d.jsx("span",{className:"form-control-title-bc ellipsis",children:ib(c(t),o)})]})})},w$=({placeholder:e,title:t,children:n,inputValue:s,onChange:r,className:a="",icon:o,rules:i,readOnly:l=!1,searchable:c=!1,setIsExpanded:u,regExp:f})=>{var A;const m=Se(),{expanded:h,container:g,setExpanded:E,searchTerm:b,onHandleChange:v,selectRef:_}=S$({regExp:f});p.useEffect(function(){u&&u(h)},[h,u]);const y=p.useCallback(O=>{E(!1),r(O)},[r,E]),{filteredChild:S,selectedElementIndex:w}=p.useMemo(()=>{const O=p.Children.map(n,k=>p.isValidElement(k)&&k.props.label.toString().toLowerCase().includes(b.toLowerCase())?k.props.value===s?p.cloneElement(k,{active:!0}):k:null).filter(Boolean),M=O.findIndex(k=>k.props.active);return{filteredChild:O,selectedElementIndex:M}},[n,s,b]),{activeIndex:x}=C$({searchTerm:b,resetProp:h,list:S,listActive:h,containerRef:_,selectedIndex:w,onSelect:O=>y(String(O.props.value))}),I=s!==void 0&&((A=p.Children.toArray(n).find(O=>p.isValidElement(O)&&O.props.value===s))==null?void 0:A.props),C=o||I&&I.className,T=p.Children.count(n)>(e?0:1),P=O=>{O.stopPropagation();const{dataset:M}=O.target;M.optionValue&&Ec.value!==M.optionValue&&(r(M.optionValue),E(!1))};return d.jsxs("div",{className:`form-control-bc select ${a} ${s!==void 0?"filled":""} ${h?"expanded":""}`,onClick:P,ref:g,tabIndex:0,children:[d.jsxs("div",{className:`form-control-label-bc form-control-select-bc inputs ${l?"notSelectedField disabled":""}`,onClick:()=>E(T&&!h),children:[C?d.jsx("i",{className:`select-icon-bc ${C}`}):null,d.jsx("span",{className:"ellipsis",children:I?I.label:e?m(e):""}),T&&d.jsx("i",{className:"form-control-icon-bc bc-i-small-arrow-down"}),d.jsx("i",{className:"form-control-input-stroke-bc"}),t&&d.jsx("span",{className:"form-control-title-bc ellipsis",children:ib(m(t),i)})]}),h&&d.jsxs("div",{className:"multi-select-label-bc",ref:_,"data-scroll-lock-scrollable":"",children:[c&&p.Children.count(n)>L5?d.jsxs("div",{className:"input-search-field",children:[d.jsx("input",{className:"form-control-input-bc input-search-field",type:"text",autoFocus:!0,value:b,onChange:v,placeholder:`${m("Search")} ${t?m(t):""}`}),d.jsx("i",{className:"ss-icon-bc bc-i-search"})]}):null,S.length>0?S.map((O,M)=>M===x?p.cloneElement(O,{active:!0}):O):p.cloneElement(Array.isArray(n)?n[0]:n,{label:m(Ec.label),value:Ec.value,className:""})]})]})},I$=e=>Q.isMobile===1?d.jsx(T$,{...e}):d.jsx(w$,{...e}),A$=({label:e,className:t,value:n,active:s=!1,disabled:r=!1,forceWebRender:a=!1})=>Q.isMobile&&!a?d.jsx("option",{value:n,children:e}):d.jsxs("label",{className:`checkbox-control-content-bc ${s?"active":""} ${r?"disabled":""}`,"data-option-value":n,children:[t?d.jsx("i",{className:`multi-select-icon-bc ${t}`}):null,d.jsx("p",{className:"checkbox-control-text-bc ellipsis",style:{pointerEvents:"none"},children:e})]}),P$=(e,t)=>{const[n,s]=p.useState(e);return p.useEffect(()=>{t&&s(e)},[t,e]),[n,p.useCallback(()=>s(r=>!r),[])]},Go=p.memo(p.forwardRef(({alt:e="",loading:t="lazy",decoding:n="async",src:s="",...r},a)=>{if(!gt.getInstance().isCMSDomainChanged||!(s!=null&&s.startsWith(lp)))return d.jsx("img",{ref:a,alt:e,loading:t,decoding:n,src:s,...r});const i=s==null?void 0:s.replace(lp,N.cms.apiUrl);return d.jsx("img",{ref:a,alt:e,loading:t,decoding:n,src:i,...r})})),an=p.memo(function({name:t,className:n="",fallback:s=null,...r}){const{iconUrl:a}=N.cms,{data:o,loading:i}=Jf(`${v5(a)}/svg/${t}.json`,!0);if(i||!o)return d.jsx(d.Fragment,{children:s});const{viewBox:l,paths:c=[]}=o;return d.jsx("span",{className:`CMSIconSVGWrapper ${n}`,children:d.jsx("svg",{...r,xmlns:"http://www.w3.org/2000/svg",viewBox:l||"0 0 24 24",fill:"currentColor",children:c==null?void 0:c.map((u,f)=>d.jsx("path",{d:u},f))})})}),wc=({count:e=0,className:t="",...n})=>d.jsx("i",{className:` ${e>0?"count-odd-animation":""} count-blink-${e%2===0?"even":"odd"} ${t}`,"data-badge":e>0?e:"",...n}),x$=({CasinoBetTotal:e,CasinoWinTotal:t,Profitness:n,SessionDuration:s,handleButtonClick:r})=>{const a=Se(),{currency:{rounding:o,symbol:i}}=or(),l=dn(),c=Ua(),u=m=>Ns(m,o).toFixed(o),f=N.accountNavigation.profile.showRealityCheckPopupLogoutButton;return d.jsxs(d.Fragment,{children:[d.jsxs("div",{className:"reality-check-popup-body",children:[d.jsxs("div",{className:"reality-check-popup-item",children:[d.jsx("span",{className:"reality-check-popup-detail ellipsis",children:a("You have played for")}),d.jsxs("b",{className:"reality-check-popup-value",children:[s," ",a("minutes")]})]}),d.jsxs("div",{className:"reality-check-popup-item",children:[d.jsx("span",{className:"reality-check-popup-detail ellipsis",children:a("You have bet")}),d.jsxs("b",{className:"reality-check-popup-value",children:[u(e)," ",i]})]}),d.jsxs("div",{className:"reality-check-popup-item",children:[d.jsx("span",{className:"reality-check-popup-detail ellipsis",children:a("You have won")}),d.jsxs("b",{className:"reality-check-popup-value",children:[u(t)," ",i]})]}),d.jsxs("div",{className:"reality-check-popup-item",children:[d.jsx("span",{className:"reality-check-popup-detail ellipsis",children:a("Profit")}),d.jsxs("b",{className:"reality-check-popup-value",children:[u(n)," ",i]})]})]}),d.jsxs("div",{className:"casino-popup-button-block",children:[d.jsx($t,{className:"btn a-color",onClick:r,title:"Continue"}),d.jsx($t,{className:"btn a-outline",onClick:()=>{r(),f?c().then(()=>l.replace("/")):l.push({search:bt({section:"balance",page:"history"})})},title:f?"Logout":"Open account history"})]})]})},O$=e=>{var t;N.partner.integrationMode&&nr.notify({type:"restore_login_error",value:((t=e==null?void 0:e.data)==null?void 0:t.details)??Qn})},k$=({close:e,onLogout:t,onCancel:n})=>{const{popUpBeforeLogOut:s}=N.userAuthentication,r=Se(),a=o=>{o(),e()};return d.jsxs("div",{className:"logout-popup",children:[d.jsx("p",{className:"casino-popup-content",children:r("logout-popup-text")}),s!=null&&s.image?d.jsx("img",{className:"logout-popup-image",src:`${N.cms.iconUrl}/${s==null?void 0:s.image}`,alt:""}):null,d.jsxs("div",{className:"casino-popup-button-block",children:[d.jsx($t,{className:"btn a-color",onClick:()=>a(t),title:"Log out"}),d.jsx($t,{className:"btn a-color",onClick:()=>a(n),title:"Close"})]})]})},N$={[st.Registration]:"register",[st.Login]:"login",[st.ResetPassword]:"reset_password",[st.ForgetPassword]:"forgot_password",[st.RegisterViaWallet]:"register_via_wallet",[st.ForgetUsername]:"forgot_username",[st.OneClickRegistration]:"one_click_register"},km=({hideSelectLoader:e=!1,hideEventTypes:t=!1})=>d.jsxs("div",{className:"market-filter-bc",children:[d.jsx("div",{className:"market-filter-s-bc skeleton-loader-full-banner",children:d.jsx("div",{className:"form-control-bc select s-small",children:!e&&d.jsx("label",{className:"form-control-label-bc inputs ",children:d.jsx("span",{className:"skeleton-loader-small-select"})})})}),!t&&d.jsxs("div",{className:"market-filter-cell-bc",children:[d.jsx("div",{className:"market-filter-info-bc",children:"W1"}),d.jsx("div",{className:"market-filter-info-bc",children:"X"}),d.jsx("div",{className:"market-filter-info-bc",children:"W2"})]})]}),R$=({children:e})=>d.jsxs("div",{className:"sports-group-bc",children:[d.jsx("div",{className:"sg-head-bc",children:d.jsx("span",{className:"skeleton-loader-title"})}),d.jsx("div",{className:"sg-body-bc",children:d.jsx("div",{className:"popular-matches-bc",children:e})})]}),L$=({showNameLoader:e=!1})=>d.jsxs("div",{className:"sgm-market-g-i-cell-bc market-bc",children:[e&&d.jsx("span",{className:"market-name-bc",children:d.jsx("span",{className:"skeleton-loader-text"})}),d.jsx("div",{className:"market-coefficient-bc",children:d.jsx("span",{className:"skeleton-loader-small-cube"})})]}),M$=3,qC=({numMarketEvents:e,className:t,showNameLoader:n})=>d.jsx(d.Fragment,{children:Array.from({length:e||M$}).map((s,r)=>d.jsx("div",{className:t,children:d.jsx(L$,{showNameLoader:n})},r))}),An=()=>Q.isMobile===1?d.jsx("div",{className:"c-segment-holder-bc single-g-info-bc",children:d.jsxs("div",{className:"sw-container-bc",children:[d.jsx("div",{className:"c-segment-holder-bc markets",children:d.jsxs("div",{className:"c-row-bc",children:[d.jsxs("div",{className:"c-teams-bc",children:[d.jsx("div",{className:"c-teams-row-bc",children:d.jsx("span",{className:"skeleton-loader-text"})}),d.jsx("div",{className:"c-teams-row-bc",children:d.jsx("span",{className:"skeleton-loader-text"})})]}),d.jsx(qC,{numMarketEvents:3,className:"c-odd-bc default"})]})}),d.jsx("div",{className:"c-segment-holder-bc info",children:d.jsx("div",{className:"c-info-bc",children:d.jsx("div",{className:"c-info-content-bc",children:d.jsx("span",{className:"skeleton-loader-text"})})})})]})}):d.jsx("div",{className:"c-segment-holder-bc single-g-info-bc GameListItemLoader",children:d.jsx("div",{className:"sw-container-bc",children:d.jsx("div",{className:"c-segment-holder-bc markets",children:d.jsxs("div",{className:"c-row-bc bordered",children:[d.jsx("div",{className:"c-info-content-bc",children:d.jsx("time",{className:"c-info-time-bc skeleton-loader-text"})}),d.jsxs("div",{className:"c-teams-bc default",children:[d.jsx("div",{className:"c-teams-row-bc",children:d.jsx("span",{className:"skeleton-loader-text"})}),d.jsx("div",{className:"c-teams-row-bc",children:d.jsx("span",{className:"skeleton-loader-text"})})]}),d.jsxs("div",{className:"c-info-more-bc flags-content",children:[d.jsxs("div",{className:"c-info-icon-line",children:[d.jsx("i",{className:"c-info-icon-bc skeleton-loader-title"}),d.jsx("span",{className:"c-info-icon-bc skeleton-loader-title"})]}),d.jsxs("div",{className:"c-info-icon-line",children:[d.jsx("i",{className:"c-info-icon-bc skeleton-loader-ex-small-cube"}),d.jsx("i",{className:"c-info-icon-bc skeleton-loader-ex-small-cube"})]})]}),d.jsx(qC,{numMarketEvents:3,className:"c-odd-bc default"})]})})})}),ng=({hasTitle:e})=>d.jsxs("div",{className:"popular-matches-bc",children:[e?d.jsx("div",{className:"page-view-more",children:d.jsx("h3",{className:"view-title-more ellipsis",children:d.jsx("span",{className:"skeleton-loader-title"})})}):null,d.jsxs("div",{className:"pm-body-bc",children:[d.jsx(km,{hideEventTypes:!0}),d.jsxs(R$,{children:[d.jsx(An,{}),d.jsx(An,{}),d.jsx(An,{}),d.jsx(An,{})]})]})]}),PO=({aspectRatio:e})=>d.jsx("div",{className:"slider-bc",style:{...e?{aspectRatio:e}:null},children:d.jsx("div",{className:"sdr-item-holder-bc",children:d.jsx("div",{className:`sdr-image-bc skeleton-loader-slider ${e?"hasAspectRatio":""}`})})}),D$=()=>d.jsx(d.Fragment,{children:d.jsxs("div",{className:"pm-body-bc",children:[d.jsx(km,{hideEventTypes:!0}),d.jsx(An,{}),d.jsx(An,{}),d.jsx(An,{}),d.jsx(An,{})]})}),j$=4,B$=5,F$=({itemCount:e,aspectRatio:t,columnCount:n=j$})=>{const s=e??n,r=n<=B$?`col-${n}`:"";return d.jsx("div",{className:`product-banner-container-bc ${r} product-banner-without-titles`,"data-scroll-lock-scrollable":"",children:Array.from({length:s}).map((a,o)=>d.jsx("div",{className:"product-banner-info-bc product-banner-bc",style:t?{aspectRatio:t}:void 0,children:d.jsx("span",{className:"skeleton-loader-full-banner"})},o))})},U$=()=>d.jsx("div",{className:"skeleton-loader-banner-height",style:{width:"100%",height:"100%"}}),KC=Q.isMobile,$$=({isBetslipWidget:e})=>d.jsx("div",{style:{padding:"0 var(--padding-page-aside)",height:e?"72px":KC?"161.63px":"231.52px"},children:d.jsx("div",{style:{height:"100%",paddingTop:KC?"30px":"25px"},children:d.jsx(U$,{})})}),G$=()=>d.jsx("div",{style:{height:"50px"},className:"skeleton-loader-full-banner"}),QC=({loadingItemsCount:e=6})=>d.jsx("div",{style:{background:"rgba(var(--b-sc), 0.1)"},children:d.jsx("ul",{style:{padding:"15px"},children:Array.from({length:e??2}).map((t,n)=>d.jsx(G$,{},n))})}),V$=()=>d.jsx("div",{className:"sdr-item-holder-bc v-care-fund-jackpot",children:d.jsx("div",{className:"sdr-item-bc",children:d.jsx("span",{className:"skeleton-loader-full-banner"})})}),sg=()=>null,xO=()=>d.jsx("div",{className:"c-segment-holder-bc head",children:d.jsx("div",{className:"c-head-bc",children:d.jsx("span",{className:"c-title-bc skeleton-loader-text"})})}),H$=()=>d.jsxs(d.Fragment,{children:[(Te.getItem(jU)??!0)&&d.jsx(xO,{}),d.jsxs("div",{className:"pm-body-bc",children:[d.jsx(km,{hideEventTypes:!0}),d.jsx(An,{}),d.jsx(An,{}),d.jsx(An,{}),d.jsx(An,{})]})]}),qo=()=>d.jsx("div",{className:"horizontal-sl-item-bc skeleton-loader-slider-cube"}),W$=({className:e="",itemsExpanded:t=!1})=>d.jsx("div",{className:"horizontal-sl-list-container",children:d.jsxs("div",{className:`horizontal-sl-list ${t?"horizontal-items-expanded":""} ${e}`,children:[d.jsx(qo,{}),d.jsx(qo,{}),d.jsx(qo,{}),d.jsx(qo,{}),d.jsx(qo,{}),d.jsx(qo,{})]})}),z$=()=>d.jsxs(d.Fragment,{children:[d.jsx(W$,{}),(Te.getItem(BU)??!0)&&d.jsx(xO,{}),d.jsxs("div",{className:"pm-body-bc",children:[d.jsx(km,{}),d.jsx(An,{}),d.jsx(An,{}),d.jsx(An,{}),d.jsx(An,{})]})]}),Y$=()=>d.jsx("div",{className:"skeleton-loader-min-height"}),q$=()=>d.jsx("div",{className:"skeleton-loader-min-height"});var OO=(e=>(e[e.Casino=1]="Casino",e[e.Sport=2]="Sport",e))(OO||{}),K$=(e=>(e[e.Canceled=-1]="Canceled",e[e.Finished=1]="Finished",e[e.Live=2]="Live",e[e.Upcoming=3]="Upcoming",e))(K$||{}),Q$=(e=>(e[e.NotStarted=0]="NotStarted",e[e.Started=1]="Started",e[e.Finished=2]="Finished",e))(Q$||{}),X$=(e=>(e[e.BuyIn=0]="BuyIn",e[e.FreeEntry=1]="FreeEntry",e))(X$||{}),Bv=(e=>(e.Info="tournament-info",e.Games="tournament-games",e.Prizes="tournament-prizes",e.Rules="tournament-rules",e.Leaderboard="tournament-leaderboard",e))(Bv||{});const Pue={days:!0,hours:!0,minutes:!0,seconds:!0},xue=[3,2],we={ALL:"All",SOCCER:"Soccer",BASKETBALL:"Basketball",CYBER_FOOTBALL:"CyberFootball",TENNIS:"Tennis",E_TENNIS:"ETennis",ICE_HOCKEY:"IceHockey",BASEBALL:"Baseball",Boxing:"Boxing",TABLE_TENNIS:"TableTennis",SNOOKER:"Snooker",BASKETBALL_SHOTS:"BasketballShots",AIR_HOCKEY:"AirHockey",COUNTER_STRIKE:"CounterStrike",DOTA_2:"Dota2",LEAGUE_OF_LEGENDS:"LeagueOfLegends",E_BASKETBALL:"EBasketball",OVERWATCH:"Overwatch",STARCRAFT:"StarCraft",STARCRAFT_2:"StarCraft2",ROCKET_LEAGUE:"RocketLeague",KING_OF_GLORY:"KingOfGlory",RAINBOW_SIX:"RainbowSix",ARENA_OF_VALOR:"ArenaofValor",VALORANT:"Valorant",WARCRAFT_3:"WarcraftIII",CALL_OF_DUTY:"CallOfDuty",HEARTHSTONE:"Hearthstone",PUBG:"PUBG",MOBILELEGENDS:"MobileLegends",ARCHERY:"Archery",ARCHERY_H2H:"ArcheryH2H",COMPOUND_ARCHERY:"CompoundArchery",PISTOL_SHOOTING:"PistolShooting",SHOOTING:"Shooting",VOLLEYBALL:"Volleyball",HORSE_RACING:"HorseRacing",GREYHOUNDS:"SISGreyhound",PISTOL_SHOOTING_H2H:"PistolHead2Head",VIRTUAL_FOOTBALL_LEAGUE:"VirtualFootballLeague",VIRTUAL_BICYCLE:"VirtualBicycle",VIRTUAL_FOOTBALL_PRO:"VirtualFootballPro",VIRTUAL_GREYHOUND_RACING:"VirtualGreyhoundRacing",VIRTUAL_HORSE_RACING:"VirtualHorseRacing",VIRTUAL_CAR_RACING:"VirtualCarRacing",VIRTUAL_PENALTY_KICKS:"ThePenaltyKicks",HANDBALL:"Handball",WATER_POLO:"WaterPolo",AMERICAN_FOOTBALL:"AmericanFootball",OSU:"Osu",CROSSFIRE:"CrossFire",LEAGUE_OF_LEGENDS_WILD_RIFT:"LeagueofLegendsWildRift",APEX_LEGENDS:"ApexLegends",FREE_FIRE:"FreeFire",FUTSAL:"Futsal",CRICKET:"Cricket",MMA:"Mma"},J$=[we.SOCCER,we.CYBER_FOOTBALL],Oue=[we.TENNIS,we.E_TENNIS],Z$=new Set([we.VIRTUAL_FOOTBALL_LEAGUE,we.VIRTUAL_BICYCLE,we.VIRTUAL_FOOTBALL_PRO,we.VIRTUAL_GREYHOUND_RACING,we.VIRTUAL_HORSE_RACING,we.VIRTUAL_CAR_RACING,we.VIRTUAL_PENALTY_KICKS]),eG=new Set([we.E_TENNIS,we.CYBER_FOOTBALL,we.COUNTER_STRIKE,we.DOTA_2,we.LEAGUE_OF_LEGENDS,we.E_BASKETBALL,we.OVERWATCH,we.STARCRAFT,we.STARCRAFT_2,we.ROCKET_LEAGUE,we.KING_OF_GLORY,we.RAINBOW_SIX,we.ARENA_OF_VALOR,we.VALORANT,we.WARCRAFT_3,we.CALL_OF_DUTY,we.HEARTHSTONE,we.PUBG,we.MOBILELEGENDS,we.OSU,we.CROSSFIRE,we.LEAGUE_OF_LEGENDS_WILD_RIFT,we.APEX_LEGENDS,we.FREE_FIRE]),kue=new Set([we.SOCCER,we.BASKETBALL,we.TENNIS,we.TABLE_TENNIS,we.VOLLEYBALL,we.BASEBALL,we.ICE_HOCKEY,we.LEAGUE_OF_LEGENDS,we.DOTA_2,we.CYBER_FOOTBALL,we.COUNTER_STRIKE]),tG=new Set([we.SOCCER,we.BASKETBALL,we.ICE_HOCKEY,we.TENNIS,we.AMERICAN_FOOTBALL,we.VOLLEYBALL,we.BASEBALL,we.HANDBALL,we.CRICKET,we.DOTA_2,we.COUNTER_STRIKE,we.LEAGUE_OF_LEGENDS,we.SNOOKER,we.MMA]);var nG=(e=>(e.USER="user",e.ASSISTANT="assistant",e.SYSTEM="system",e.RECOMMENDATION="recommendation",e))(nG||{}),qa=(e=>(e.Single="single",e.Multiple="multiple",e.Betconstructor="betconstructor",e))(qa||{}),sG=(e=>(e.Single="ORDINARY",e.Multiple="EXPRESS",e))(sG||{});const Nue=1;var rG=(e=>(e.Live="live",e.PreMatch="pre-match",e.Main="main",e.Match="match",e))(rG||{}),aG=(e=>(e.LiveSource="LIVE",e.PreMatchSource="PREMATCH",e.MainSource="MAIN",e.MatchSource="MATCH",e))(aG||{}),oG=(e=>(e[e.Odds=0]="Odds",e[e.Event=1]="Event",e))(oG||{});const Rue={ODDS_BASE:2,EVENTS_BASE:1.4,MIN_EVENTS:2,MAX_EVENTS_LIMIT:20,MAX_ODDS_LIMIT:1e3,MIN_ODDS_FLOOR:1.01,ODDS_SAFETY_MARGIN:1.05,SLIDER_PRECISION:100},kO={contentId:"",loop:!0,arrows:!Q.isMobile,autoplaySpeed:5e3,autoplay:!0,expandable:!1,fullSized:!1,showCount:!0,showLoader:!0,hideShadow:!1,firstSlideLoadImmediately:!0,showEventBook:!1,showPredictStreet:!1},iG={defaultTopWinnersSelectedOnCasinoWinners:!1,casinoWinnersMaxCount:6,defaultSelectedPeriod:30},lG={defaultTopWinnersSelectedOnCasinoWinners:!1,casinoWinnersMaxCount:30,defaultSelectedPeriod:30},cG={preventHoverStop:!1,title:"Sport Top Winners"},uG={contentId:""},dG={limit:15,loop:!0,autoplay:!0,showTitle:!0,showCount:!1,showEsports:!1,filterBySport:!1,rotationPeriod:5e3,enableSuggestedBets:!1,showArrows:!Q.isMobile,gamesDisplayed:Q.isMobile?1:3},fG={limit:20},pG={visibleCount:8,showAllTab:!0,defaultSelectedTab:"RecentTransactionsAnyAmount"},mG={limit:30,showEsports:!1,enableSuggestedBets:!1,defaultShowActionsOverlay:!1},hG={availableTabs:[qa.Single,qa.Multiple,qa.Betconstructor],gameLimit:9,tabs:{[qa.Single]:{loop:!0,showDots:!1,arrows:!0,spaceBetween:10,autoplay:!0,autoplaySpeed:3e3,slidesToScroll:1.001},[qa.Multiple]:{loop:!1,showDots:!0,arrows:!1,spaceBetween:20,autoplay:!1},[qa.Betconstructor]:{loop:!1,showDots:!0,arrows:!1,spaceBetween:20,autoplay:!1}}},Lue={limit:10,loop:!1,arrows:!Q.isMobile,showDots:!1,showTitle:!0,spaceBetween:10,slidesToScroll:Q.isMobile?1.1:3},XC={title:"Vivaro.me Rooms",loop:!0,arrows:!1,spaceBetween:16,slidesToScroll:Q.isMobile?1.9:5.7},gG={showCategories:!1,title:"Casino games"},Mue={showWidgetForAllTypes:!1},_G={limit:24,category_id:0},vG={externalId:"28"},EG={contentId:"homepage_product_banners",showTitle:!0,showProductsTitles:!0,compactMode:!1,columnCount:4,showDisplayArrows:!1,slidesToScroll:Q.isMobile?4:5,loop:!0},yG={internalSportsJackpots:!1,internalLiveCasinoJackpots:!1,internalCasinoJackpots:!0},bG={isWidget:!0},SG={productType:OO.Casino},CG={sportsLimit:3,gamesLimit:5,numberOfExpandedSports:3},Due={displayedGamesLimitPerSport:7,showEsports:!1},TG={displayedGamesLimitPerSport:7},wG={displayedGamesLimitPerSport:7},IG={aiExpressCount:7},jue={title:"Extra Chance",limit:20,categoryTitle:"extrachance",jackpotId:"67",categoryId:"615"},AG={displayedGamesLimitPerSport:Q.isMobile?15:1/0,timeFilterOptions:[{label:"0-15m",value:"0-15"},{label:"15-30m",value:"15-30"},{label:"30-60m",value:"30-60"}]},Bue={sportAlias:we.HORSE_RACING,gamesLimit:12},PG={type:"favorite"},xG={infinite:!1,showTitle:!1,portraitView:!1},OG={sourceId:0,showTitle:!1},kG={variant:1,className:"",height:"260px"},NG={url:"",permissions:{loggedIn:!0,loggedOut:!0},className:"",target:"",height:"100%"},Ko={limit:10},RG={availableTabs:["live","boosted-bets","multiple-of-the-day","popular-competitions","popular-matches","upcoming-matches","today-bets"],tabsProps:{live:{...Ko,showAdditionalFilters:!0,label:"Live",icon:"bc-i-live"},"upcoming-matches":{...Ko,timeFilterOptions:AG.timeFilterOptions,label:"Upcoming Matches",icon:"bc-i-upcoming"},"popular-matches":{...Ko,label:"Popular Matches",icon:"bc-i-tournament"},"popular-competitions":{label:"Popular competitions",icon:"bc-i-tournament",type:"favorite"},"boosted-bets":{...Ko,label:"Boosted bets",icon:"bc-i-boost"},"today-bets":{...Ko,label:"Today's Bets",icon:`bc-i-today-bets current-day-${at(new Date).format("D")}`},"multiple-of-the-day":{...Ko,label:"Multiple of the day",icon:"bc-i-FlashGames",showStatistics:!1,showNotifications:!1,showRegionFlag:!1}}},LG={limit:15},Fue={Slider:kO,FeaturedGames:dG,FeaturedQuickGames:mG,VCareJackpotWidget:uG,CasinoGamesWidget:gG,CasinoGameOptionsWidget:vG,CasinoLastPlayedGames:_G,PromotedProductsWidget:EG,JackpotWidget:yG,CasinoJackpot:bG,TournamentsWidget:SG,TodayBets:TG,LiveGamesWidget:CG,PopularCompetitions:PG,OlympicMatches:wG,StoryWidget:xG,AchievementWidget:OG,TopWinnersWidget:cG,CasinoTopWinnersWidget:lG,CasinoWinners:iG,PoolMasterWidget:kG,SportsbookMainWidget:RG,IframeWidget:NG,BettingMateWidget:hG,CasinoLiveRTP:fG,CasinoLiveWins:pG,ExpressOfTheDay:IG,BetBuilderAIRecommendedBets:LG};var Vt=(e=>(e.Winner="WINNER",e.Handicap="HANDICAP",e.Outright="OUTRIGHT",e.Totals="TOTALS",e.OddEven="ODD/EVEN",e.DoubleChance="DOUBLE CHANCE",e.CorrectScore="CORRECT SCORE",e.BothTeamToScore="BOTHTEAMTOSCORE",e))(Vt||{}),MG=(e=>(e.Match="MATCH",e.Period="PERIOD",e))(MG||{});const Uue={WINNER:{display_key:"WINNER",display_sub_key:"MATCH"},HANDICAP:{display_key:"HANDICAP",display_sub_key:"MATCH",alt_main_order:1},TOTALS:{display_key:"TOTALS",display_sub_key:"MATCH",alt_main_order:1}},DG=["WINNER","HANDICAP","TOTALS"],$ue=["WINNER","DOUBLE CHANCE","TOTALS","BOTHTEAMTOSCORE"],Gue=DG;var rl=(e=>(e.All="all",e.Featured="featured",e.Live="live",e.Upcoming="upcoming",e.Results="results",e))(rl||{});const Vue=Object.values(rl),Hue=[{key:"all",label:"All",iconClass:"bc-i-all"},{key:"upcoming",label:"Upcoming",iconClass:"bc-i-upcoming"},{key:"live",label:"Live",iconClass:"bc-i-live"},{key:"results",label:"Results",iconClass:"bc-i-results"}],Wue={contentId:"esport_banners",expandable:!0},zue={[Vt.Winner]:{display_key:Vt.Winner},[Vt.Outright]:{display_key:Vt.Outright},[Vt.OddEven]:{display_key:Vt.OddEven},[Vt.Totals]:{display_key:Vt.Totals,alt_main_order:1},[Vt.Handicap]:{display_key:Vt.Handicap,alt_main_order:1}},Yue=[Vt.Winner,Vt.Handicap,Vt.Totals,Vt.OddEven];var jG=(e=>(e[e.Matches=1]="Matches",e[e.Markets=2]="Markets",e[e.Results=3]="Results",e))(jG||{});const que={featured:{numExpandedSports:Number.MAX_SAFE_INTEGER,pageType:"featured",gameFilter:{promoted:!0},additionalGameParameters:["is_live","info","stats"]},live:{numExpandedSports:Number.MAX_SAFE_INTEGER,pageType:"live",gameFilter:{type:1},additionalGameParameters:["is_live","info","stats"]},upcoming:{numExpandedSports:1,pageType:"upcoming",gameFilter:{type:{"@in":[0,2]}},additionalGameParameters:[]}},Kue=24;var BG=(e=>(e.Kill="killScore",e.Baron="baronScore",e.ElementarDragon="elementarDragonScore",e.Tower="towerScore",e.Inhibitor="inhibitor",e))(BG||{});const Que={killScore:"Kills",baronScore:"Baron",elementarDragonScore:"Dragon",towerScore:"Rift Herald",inhibitor:"Gold"};var FG=(e=>(e.Kill="killScore",e.Roshan="roshanScore",e.Tower="towerScore",e.Barrack="barrackScore",e.Tormentor="tormentorScore",e))(FG||{});const Xue={killScore:"Kills",roshanScore:"Roshan",towerScore:"Towers",barrackScore:"Barracks",tormentorScore:"Tormentor"};var UG=(e=>(e[e.Time=0]="Time",e[e.Kills=1]="Kills",e[e.BombExplosion=2]="BombExplosion",e[e.BombDefuse=3]="BombDefuse",e[e.HalfRoundsOutcome=4]="HalfRoundsOutcome",e[e.RoundsOutcome=5]="RoundsOutcome",e))(UG||{});const Jue=6,Zue=25,$G={1.001:"1/1000",1.002:"1/500",1.004:"1/250",1.005:"1/200",1.01:"1/100",1.015:"1/66",1.02:"1/50",1.03:"1/33",1.04:"1/25",1.05:"1/20",1.06:"1/16",1.07:"1/14",1.08:"1/12",1.09:"1/11",1.1:"1/10",1.11:"1/9",1.13:"1/8",1.14:"1/7",1.15:"2/13",1.17:"1/6",1.18:"2/11",1.2:"1/5",1.22:"2/9",1.25:"1/4",1.27:"27/100",1.28:"2/7",1.3:"3/10",1.31:"31/100",1.33:"1/3",1.34:"17/50",1.36:"4/11",1.37:"37/100",1.4:"2/5",1.41:"41/100",1.44:"4/9",1.45:"9/20",1.47:"47/100",1.48:"12/25",1.5:"1/2",1.51:"51/100",1.53:"8/15",1.54:"27/50",1.55:"11/20",1.57:"4/7",1.58:"29/50",1.6:"3/5",1.62:"8/13",1.63:"5/8",1.64:"16/25",1.66:"4/6",1.67:"67/100",1.7:"7/10",1.71:"5/7",1.72:"8/11",1.73:"73/100",1.75:"3/4",1.76:"19/25",1.79:"79/100",1.8:"4/5",1.81:"81/100",1.83:"5/6",1.84:"21/25",1.87:"87/100",1.88:"22/25",1.9:"9/10",1.91:"10/11",1.92:"23/25",1.95:"20/21",1.96:"48/50",1.99:"99/100",2:"1/1",2.01:"101/100",2.02:"51/50",2.03:"103/100",2.05:"21/20",2.06:"53/50",2.07:"107/100",2.09:"109/100",2.1:"11/10",2.11:"111/100",2.13:"113/100",2.15:"23/20",2.17:"117/100",2.19:"119/100",2.2:"6/5",2.21:"121/100",2.23:"123/100",2.25:"5/4",2.26:"63/50",2.27:"127/100",2.29:"129/100",2.3:"13/10",2.31:"131/100",2.33:"133/100",2.35:"27/20",2.37:"137/100",2.38:"11/8",2.39:"139/100",2.4:"7/5",2.41:"141/100",2.45:"29/20",2.47:"147/100",2.49:"149/100",2.5:"6/4",2.51:"151/100",2.53:"153/100",2.55:"31/20",2.57:"157/100",2.6:"8/5",2.61:"161/100",2.63:"13/8",2.65:"33/20",2.67:"167/100",2.7:"17/10",2.73:"173/100",2.75:"7/4",2.77:"177/100",2.8:"9/5",2.81:"181/100",2.83:"183/100",2.85:"37/20",2.87:"187/100",2.88:"15/8",2.89:"189/100",2.9:"19/10",2.91:"191/100",2.93:"193/100",2.95:"39/20",2.97:"197/100",3:"2/1",3.01:"201/100",3.03:"203/100",3.07:"207/100",3.1:"21/10",3.13:"213/100",3.17:"217/100",3.2:"11/5",3.21:"221/100",3.25:"9/4",3.27:"227/100",3.3:"23/10",3.33:"233/100",3.37:"237/100",3.4:"12/5",3.41:"241/100",3.45:"49/20",3.5:"5/2",3.51:"251/100",3.55:"51/20",3.6:"13/5",3.61:"261/100",3.65:"53/20",3.7:"27/10",3.71:"271/100",3.75:"11/4",3.76:"69/25",3.8:"14/5",3.81:"281/100",3.85:"57/20",3.9:"29/10",3.91:"291/100",3.95:"59/20",4:"3/1",4.01:"301/100",4.1:"31/10",4.2:"16/5",4.3:"33/10",4.33:"10/3",4.4:"17/5",4.5:"7/2",4.55:"71/20",4.65:"73/20",4.75:"15/4",4.85:"77/20",4.9:"39/10",5:"4/1",5.1:"41/10",5.2:"21/5",5.3:"43/10",5.4:"22/5",5.5:"9/2",5.6:"23/5",5.7:"47/10",5.8:"24/5",5.9:"49/10",6:"5/1",6.1:"51/10",6.2:"26/5",6.3:"53/10",6.4:"27/5",6.5:"11/2",6.6:"28/5",6.7:"57/10",6.8:"29/5",6.9:"59/10",7:"6/1",7.1:"61/10",7.2:"31/5",7.3:"63/10",7.4:"32/5",7.5:"13/2",7.6:"33/5",7.7:"67/10",7.8:"34/5",7.9:"69/10",8:"7/1",8.1:"71/10",8.2:"36/5",8.3:"73/10",8.4:"37/5",8.5:"15/2",8.7:"77/10",8.9:"79/10",9:"8/1",9.1:"81/10",9.3:"83/10",9.5:"17/2",9.7:"87/10",9.9:"89/10",10:"9/1",10.1:"91/10",10.3:"93/10",10.5:"19/2",10.7:"97/10",10.9:"99/10",11:"10/1",12:"11/1",13:"12/1",14:"13/1",15:"14/1",16:"15/1",17:"16/1",19:"18/1",21:"20/1",23:"22/1",26:"25/1",29:"28/1",34:"33/1",41:"40/1",51:"50/1",67:"66/1",71:"70/1",81:"80/1",91:"90/1",101:"100/1",126:"125/1",151:"150/1",201:"200/1",251:"250/1",301:"300/1",401:"400/1",501:"500/1",751:"750/1",1001:"1000/1",1501:"1500/1",2001:"2000/1",2501:"2500/1",3001:"3000/1",3501:"3500/1",4001:"4000/1"},GG=e=>{const t=Object.keys(e).map(parseFloat).sort(f5);return n=>e[n]||e[Fv({ladderKeys:t,startIndex:0,endIndex:t.length-1,num:n})]};function Fv({ladderKeys:e,startIndex:t,endIndex:n,num:s}){const r=t+Math.ceil((n-t)/2);return r===0&&e[r]>s||r===e.length-1&&e[r]e>=2?`+${((e-1)*100).toFixed(0)}`:(-100/(e-1)).toFixed(0),HG=(e,t,n)=>{const s=We(e-1),r=Kx(s);return s.toFixed(r<=n?n:t)},WG=(e,t)=>e>2?(1/(1-e)).toFixed(t):e<2?(e-1).toFixed(t):"1.00",zG=(e,t)=>e<2?(1/(1-e)).toFixed(t):e>2?(e-1).toFixed(t):"1.00",NO=(e,t)=>Kx(e)(e[e.Decimal=0]="Decimal",e[e.Fractional=1]="Fractional",e[e.American=2]="American",e[e.HongKong=3]="HongKong",e[e.Malay=4]="Malay",e[e.Indo=5]="Indo",e))(RO||{});const YG=p.createContext({}),qG=({children:e})=>{const t=xt(),{minDecimalPlaces:n}=N.sportsbook,{oddFormat:s}=ke(),{decimalRounding:r}=Fs(),[a,o]=p.useState(null),i=p.useMemo(()=>GG(a||$G),[a]),l=p.useCallback(u=>{switch(u){case 1:return f=>i(f);case 2:return f=>VG(f);case 3:return f=>HG(f,r,n);case 4:return f=>WG(f,r);case 5:return f=>zG(f,r);case 0:default:return f=>NO(f,n)}},[r,n,i]),c=p.useMemo(()=>l(s),[l,s]);return p.useEffect(function(){s===1&&a===null&&ee.get({},"get_permissible_odds").then(({result:f,details:m})=>{if(f===0)return m;throw new Error}).then(f=>Object.fromEntries(f.map(({Price:m,Denominator:h,Numerator:g})=>[m,`${g}/${h}`]))).then(f=>{t.current&&o(f)}).catch(Ut)},[t,a,s]),d.jsx(YG.Provider,{value:{convertOdds:l,oddsConverter:c},children:e})};var LO=(e=>(e.DELETE="delete",e.DOT=".",e.SUBMIT="submit",e))(LO||{});function MO(e){var t,n,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;ttypeof e=="number"&&!isNaN(e),vo=e=>typeof e=="string",hs=e=>typeof e=="function",of=e=>vo(e)||hs(e)?e:null,Uv=e=>p.isValidElement(e)||vo(e)||hs(e)||ru(e);function KG(e,t,n){n===void 0&&(n=300);const{scrollHeight:s,style:r}=e;requestAnimationFrame(()=>{r.minHeight="initial",r.height=s+"px",r.transition=`all ${n}ms`,requestAnimationFrame(()=>{r.height="0",r.padding="0",r.margin="0",setTimeout(t,n)})})}function Nm(e){let{enter:t,exit:n,appendPosition:s=!1,collapse:r=!0,collapseDuration:a=300}=e;return function(o){let{children:i,position:l,preventExitTransition:c,done:u,nodeRef:f,isIn:m,playToast:h}=o;const g=s?`${t}--${l}`:t,E=s?`${n}--${l}`:n,b=p.useRef(0);return p.useLayoutEffect(()=>{const v=f.current,_=g.split(" "),y=S=>{S.target===f.current&&(h(),v.removeEventListener("animationend",y),v.removeEventListener("animationcancel",y),b.current===0&&S.type!=="animationcancel"&&v.classList.remove(..._))};v.classList.add(..._),v.addEventListener("animationend",y),v.addEventListener("animationcancel",y)},[]),p.useEffect(()=>{const v=f.current,_=()=>{v.removeEventListener("animationend",_),r?KG(v,u,a):u()};m||(c?_():(b.current=1,v.className+=` ${E}`,v.addEventListener("animationend",_)))},[m]),he.createElement(he.Fragment,null,i)}}function JC(e,t){return e!=null?{content:e.content,containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,status:t}:{}}const Ln=new Map;let au=[];const $v=new Set,QG=e=>$v.forEach(t=>t(e)),DO=()=>Ln.size>0;function jO(e,t){var n;if(t)return!((n=Ln.get(t))==null||!n.isToastActive(e));let s=!1;return Ln.forEach(r=>{r.isToastActive(e)&&(s=!0)}),s}function BO(e,t){Uv(e)&&(DO()||au.push({content:e,options:t}),Ln.forEach(n=>{n.buildToast(e,t)}))}function ZC(e,t){Ln.forEach(n=>{t!=null&&t!=null&&t.containerId?(t==null?void 0:t.containerId)===n.id&&n.toggle(e,t==null?void 0:t.id):n.toggle(e,t==null?void 0:t.id)})}function XG(e){const{subscribe:t,getSnapshot:n,setProps:s}=p.useRef(function(a){const o=a.containerId||1;return{subscribe(i){const l=function(u,f,m){let h=1,g=0,E=[],b=[],v=[],_=f;const y=new Map,S=new Set,w=()=>{v=Array.from(y.values()),S.forEach(C=>C())},x=C=>{b=C==null?[]:b.filter(T=>T!==C),w()},I=C=>{const{toastId:T,onOpen:P,updateId:A,children:O}=C.props,M=A==null;C.staleId&&y.delete(C.staleId),y.set(T,C),b=[...b,C.props.toastId].filter(k=>k!==C.staleId),w(),m(JC(C,M?"added":"updated")),M&&hs(P)&&P(p.isValidElement(O)&&O.props)};return{id:u,props:_,observe:C=>(S.add(C),()=>S.delete(C)),toggle:(C,T)=>{y.forEach(P=>{T!=null&&T!==P.props.toastId||hs(P.toggle)&&P.toggle(C)})},removeToast:x,toasts:y,clearQueue:()=>{g-=E.length,E=[]},buildToast:(C,T)=>{if((K=>{let{containerId:ne,toastId:J,updateId:$}=K;const L=ne?ne!==u:u!==1,W=y.has(J)&&$==null;return L||W})(T))return;const{toastId:P,updateId:A,data:O,staleId:M,delay:k}=T,D=()=>{x(P)},j=A==null;j&&g++;const V={..._,style:_.toastStyle,key:h++,...Object.fromEntries(Object.entries(T).filter(K=>{let[ne,J]=K;return J!=null})),toastId:P,updateId:A,data:O,closeToast:D,isIn:!1,className:of(T.className||_.toastClassName),bodyClassName:of(T.bodyClassName||_.bodyClassName),progressClassName:of(T.progressClassName||_.progressClassName),autoClose:!T.isLoading&&(R=T.autoClose,U=_.autoClose,R===!1||ru(R)&&R>0?R:U),deleteToast(){const K=y.get(P),{onClose:ne,children:J}=K.props;hs(ne)&&ne(p.isValidElement(J)&&J.props),m(JC(K,"removed")),y.delete(P),g--,g<0&&(g=0),E.length>0?I(E.shift()):w()}};var R,U;V.closeButton=_.closeButton,T.closeButton===!1||Uv(T.closeButton)?V.closeButton=T.closeButton:T.closeButton===!0&&(V.closeButton=!Uv(_.closeButton)||_.closeButton);let G=C;p.isValidElement(C)&&!vo(C.type)?G=p.cloneElement(C,{closeToast:D,toastProps:V,data:O}):hs(C)&&(G=C({closeToast:D,toastProps:V,data:O}));const z={content:G,props:V,staleId:M};_.limit&&_.limit>0&&g>_.limit&&j?E.push(z):ru(k)?setTimeout(()=>{I(z)},k):I(z)},setProps(C){_=C},setToggle:(C,T)=>{y.get(C).toggle=T},isToastActive:C=>b.some(T=>T===C),getSnapshot:()=>v}}(o,a,QG);Ln.set(o,l);const c=l.observe(i);return au.forEach(u=>BO(u.content,u.options)),au=[],()=>{c(),Ln.delete(o)}},setProps(i){var l;(l=Ln.get(o))==null||l.setProps(i)},getSnapshot(){var i;return(i=Ln.get(o))==null?void 0:i.getSnapshot()}}}(e)).current;s(e);const r=p.useSyncExternalStore(t,n,n);return{getToastToRender:function(a){if(!r)return[];const o=new Map;return e.newestOnTop&&r.reverse(),r.forEach(i=>{const{position:l}=i.props;o.has(l)||o.set(l,[]),o.get(l).push(i)}),Array.from(o,i=>a(i[0],i[1]))},isToastActive:jO,count:r==null?void 0:r.length}}function JG(e){const[t,n]=p.useState(!1),[s,r]=p.useState(!1),a=p.useRef(null),o=p.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:i,pauseOnHover:l,closeToast:c,onClick:u,closeOnClick:f}=e;var m,h;function g(){n(!0)}function E(){n(!1)}function b(y){const S=a.current;o.canDrag&&S&&(o.didMove=!0,t&&E(),o.delta=e.draggableDirection==="x"?y.clientX-o.start:y.clientY-o.start,o.start!==y.clientX&&(o.canCloseOnClick=!1),S.style.transform=`translate3d(${e.draggableDirection==="x"?`${o.delta}px, var(--y)`:`0, calc(${o.delta}px + var(--y))`},0)`,S.style.opacity=""+(1-Math.abs(o.delta/o.removalDistance)))}function v(){document.removeEventListener("pointermove",b),document.removeEventListener("pointerup",v);const y=a.current;if(o.canDrag&&o.didMove&&y){if(o.canDrag=!1,Math.abs(o.delta)>o.removalDistance)return r(!0),e.closeToast(),void e.collapseAll();y.style.transition="transform 0.2s, opacity 0.2s",y.style.removeProperty("transform"),y.style.removeProperty("opacity")}}(h=Ln.get((m={id:e.toastId,containerId:e.containerId,fn:n}).containerId||1))==null||h.setToggle(m.id,m.fn),p.useEffect(()=>{if(e.pauseOnFocusLoss)return document.hasFocus()||E(),window.addEventListener("focus",g),window.addEventListener("blur",E),()=>{window.removeEventListener("focus",g),window.removeEventListener("blur",E)}},[e.pauseOnFocusLoss]);const _={onPointerDown:function(y){if(e.draggable===!0||e.draggable===y.pointerType){o.didMove=!1,document.addEventListener("pointermove",b),document.addEventListener("pointerup",v);const S=a.current;o.canCloseOnClick=!0,o.canDrag=!0,S.style.transition="none",e.draggableDirection==="x"?(o.start=y.clientX,o.removalDistance=S.offsetWidth*(e.draggablePercent/100)):(o.start=y.clientY,o.removalDistance=S.offsetHeight*(e.draggablePercent===80?1.5*e.draggablePercent:e.draggablePercent)/100)}},onPointerUp:function(y){const{top:S,bottom:w,left:x,right:I}=a.current.getBoundingClientRect();y.nativeEvent.type!=="touchend"&&e.pauseOnHover&&y.clientX>=x&&y.clientX<=I&&y.clientY>=S&&y.clientY<=w?E():g()}};return i&&l&&(_.onMouseEnter=E,e.stacked||(_.onMouseLeave=g)),f&&(_.onClick=y=>{u&&u(y),o.canCloseOnClick&&c()}),{playToast:g,pauseToast:E,isRunning:t,preventExitTransition:s,toastRef:a,eventHandlers:_}}function ZG(e){let{delay:t,isRunning:n,closeToast:s,type:r="default",hide:a,className:o,style:i,controlledProgress:l,progress:c,rtl:u,isIn:f,theme:m}=e;const h=a||l&&c===0,g={...i,animationDuration:`${t}ms`,animationPlayState:n?"running":"paused"};l&&(g.transform=`scaleX(${c})`);const E=Er("Toastify__progress-bar",l?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${m}`,`Toastify__progress-bar--${r}`,{"Toastify__progress-bar--rtl":u}),b=hs(o)?o({rtl:u,type:r,defaultClassName:E}):Er(E,o),v={[l&&c>=1?"onTransitionEnd":"onAnimationEnd"]:l&&c<1?null:()=>{f&&s()}};return he.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":h},he.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${m} Toastify__progress-bar--${r}`}),he.createElement("div",{role:"progressbar","aria-hidden":h?"true":"false","aria-label":"notification timer",className:b,style:g,...v}))}let eV=1;const FO=()=>""+eV++;function tV(e){return e&&(vo(e.toastId)||ru(e.toastId))?e.toastId:FO()}function Ic(e,t){return BO(e,t),t.toastId}function up(e,t){return{...t,type:t&&t.type||e,toastId:tV(t)}}function Ed(e){return(t,n)=>Ic(t,up(e,n))}function Ce(e,t){return Ic(e,up("default",t))}Ce.loading=(e,t)=>Ic(e,up("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),Ce.promise=function(e,t,n){let s,{pending:r,error:a,success:o}=t;r&&(s=vo(r)?Ce.loading(r,n):Ce.loading(r.render,{...n,...r}));const i={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},l=(u,f,m)=>{if(f==null)return void Ce.dismiss(s);const h={type:u,...i,...n,data:m},g=vo(f)?{render:f}:f;return s?Ce.update(s,{...h,...g}):Ce(g.render,{...h,...g}),m},c=hs(e)?e():e;return c.then(u=>l("success",o,u)).catch(u=>l("error",a,u)),c},Ce.success=Ed("success"),Ce.info=Ed("info"),Ce.error=Ed("error"),Ce.warning=Ed("warning"),Ce.warn=Ce.warning,Ce.dark=(e,t)=>Ic(e,up("default",{theme:"dark",...t})),Ce.dismiss=function(e){(function(t){var n;if(DO()){if(t==null||vo(n=t)||ru(n))Ln.forEach(s=>{s.removeToast(t)});else if(t&&("containerId"in t||"id"in t)){const s=Ln.get(t.containerId);s?s.removeToast(t.id):Ln.forEach(r=>{r.removeToast(t.id)})}}else au=au.filter(s=>t!=null&&s.options.toastId!==t)})(e)},Ce.clearWaitingQueue=function(e){e===void 0&&(e={}),Ln.forEach(t=>{!t.props.limit||e.containerId&&t.id!==e.containerId||t.clearQueue()})},Ce.isActive=jO,Ce.update=function(e,t){t===void 0&&(t={});const n=((s,r)=>{var a;let{containerId:o}=r;return(a=Ln.get(o||1))==null?void 0:a.toasts.get(s)})(e,t);if(n){const{props:s,content:r}=n,a={delay:100,...s,...t,toastId:t.toastId||e,updateId:FO()};a.toastId!==e&&(a.staleId=e);const o=a.render||r;delete a.render,Ic(o,a)}},Ce.done=e=>{Ce.update(e,{progress:1})},Ce.onChange=function(e){return $v.add(e),()=>{$v.delete(e)}},Ce.play=e=>ZC(!0,e),Ce.pause=e=>ZC(!1,e);const nV=typeof window<"u"?p.useLayoutEffect:p.useEffect,yd=e=>{let{theme:t,type:n,isLoading:s,...r}=e;return he.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:t==="colored"?"currentColor":`var(--toastify-icon-color-${n})`,...r})},rg={info:function(e){return he.createElement(yd,{...e},he.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return he.createElement(yd,{...e},he.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return he.createElement(yd,{...e},he.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return he.createElement(yd,{...e},he.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return he.createElement("div",{className:"Toastify__spinner"})}},sV=e=>{const{isRunning:t,preventExitTransition:n,toastRef:s,eventHandlers:r,playToast:a}=JG(e),{closeButton:o,children:i,autoClose:l,onClick:c,type:u,hideProgressBar:f,closeToast:m,transition:h,position:g,className:E,style:b,bodyClassName:v,bodyStyle:_,progressClassName:y,progressStyle:S,updateId:w,role:x,progress:I,rtl:C,toastId:T,deleteToast:P,isIn:A,isLoading:O,closeOnClick:M,theme:k}=e,D=Er("Toastify__toast",`Toastify__toast-theme--${k}`,`Toastify__toast--${u}`,{"Toastify__toast--rtl":C},{"Toastify__toast--close-on-click":M}),j=hs(E)?E({rtl:C,position:g,type:u,defaultClassName:D}):Er(D,E),V=function(z){let{theme:K,type:ne,isLoading:J,icon:$}=z,L=null;const W={theme:K,type:ne};return $===!1||(hs($)?L=$({...W,isLoading:J}):p.isValidElement($)?L=p.cloneElement($,W):J?L=rg.spinner():(q=>q in rg)(ne)&&(L=rg[ne](W))),L}(e),R=!!I||!l,U={closeToast:m,type:u,theme:k};let G=null;return o===!1||(G=hs(o)?o(U):p.isValidElement(o)?p.cloneElement(o,U):function(z){let{closeToast:K,theme:ne,ariaLabel:J="close"}=z;return he.createElement("button",{className:`Toastify__close-button Toastify__close-button--${ne}`,type:"button",onClick:$=>{$.stopPropagation(),K($)},"aria-label":J},he.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},he.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}(U)),he.createElement(h,{isIn:A,done:P,position:g,preventExitTransition:n,nodeRef:s,playToast:a},he.createElement("div",{id:T,onClick:c,"data-in":A,className:j,...r,style:b,ref:s},he.createElement("div",{...A&&{role:x},className:hs(v)?v({type:u}):Er("Toastify__toast-body",v),style:_},V!=null&&he.createElement("div",{className:Er("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!O})},V),he.createElement("div",null,i)),G,he.createElement(ZG,{...w&&!R?{key:`pb-${w}`}:{},rtl:C,theme:k,delay:l,isRunning:t,isIn:A,closeToast:m,hide:f,type:u,style:S,className:y,controlledProgress:R,progress:I||0})))},Rm=function(e,t){return t===void 0&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},rV=Nm(Rm("bounce",!0));Nm(Rm("slide",!0));Nm(Rm("zoom"));const aV=Nm(Rm("flip")),oV={position:"top-right",transition:rV,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function iV(e){let t={...oV,...e};const n=e.stacked,[s,r]=p.useState(!0),a=p.useRef(null),{getToastToRender:o,isToastActive:i,count:l}=XG(t),{className:c,style:u,rtl:f,containerId:m}=t;function h(E){const b=Er("Toastify__toast-container",`Toastify__toast-container--${E}`,{"Toastify__toast-container--rtl":f});return hs(c)?c({position:E,rtl:f,defaultClassName:b}):Er(b,of(c))}function g(){n&&(r(!0),Ce.play())}return nV(()=>{if(n){var E;const b=a.current.querySelectorAll('[data-in="true"]'),v=12,_=(E=t.position)==null?void 0:E.includes("top");let y=0,S=0;Array.from(b).reverse().forEach((w,x)=>{const I=w;I.classList.add("Toastify__toast--stacked"),x>0&&(I.dataset.collapsed=`${s}`),I.dataset.pos||(I.dataset.pos=_?"top":"bot");const C=y*(s?.2:1)+(s?0:v*x);I.style.setProperty("--y",`${_?C:-1*C}px`),I.style.setProperty("--g",`${v}`),I.style.setProperty("--s",""+(1-(s?S:0))),y+=I.offsetHeight,S+=.025})}},[s,l,n]),he.createElement("div",{ref:a,className:"Toastify",id:m,onMouseEnter:()=>{n&&(r(!1),Ce.pause())},onMouseLeave:g},o((E,b)=>{const v=b.length?{...u}:{...u,pointerEvents:"none"};return he.createElement("div",{className:h(E),style:v,key:`container-${E}`},b.map(_=>{let{content:y,props:S}=_;return he.createElement(sV,{...S,stacked:n,collapseAll:g,isIn:i(S.toastId,S.containerId),style:S.style,key:`toast-${S.key}`},y)}))}))}const UO=p.createContext({});var Cr=(e=>(e[e.BOTH=0]="BOTH",e[e.LIVE=1]="LIVE",e[e.PREMATCH=2]="PREMATCH",e))(Cr||{}),lV=(e=>(e[e.NOT_INITIALIZED=0]="NOT_INITIALIZED",e[e.INITIALIZED=1]="INITIALIZED",e[e.INITIALIZED_FOR_WIDGET=2]="INITIALIZED_FOR_WIDGET",e))(lV||{});const cV=({children:e})=>{const[t,n]=p.useState({eventIds:[new Set,new Set,new Set],gameIds:new Set,loaded:!1,loading:!0}),s=p.useRef(0),[{allGameIds:r,gameIds:a},o]=p.useState({allGameIds:new Set,gameIds:[new Set,new Set,new Set]}),i=p.useCallback(f=>{(f||gt.getInstance().availableSpecialGames[fO.BoostedBets])&&(n(m=>({...m,loaded:!1})),s.current!==2&&f?s.current=2:s.current===0&&(s.current=1))},[]),l=p.useCallback(()=>{i(!1)},[i]),c=p.useCallback(()=>{i(!0)},[i]),u=p.useCallback(()=>{s.current===2&&(s.current=1),n(f=>({...f,loaded:!1}))},[]);return p.useEffect(function(){s.current===0&&(n(m=>({...m,loading:!0})),ee.get({},"get_boosted_selections").then(m=>{const h=new Set,g=[new Set,new Set,new Set],E=[new Set,new Set,new Set];if(m.details)for(const b of Object.keys(m.details)){h.add(Number(b));for(const v of m.details[b])g[v.BoostType].add(Number(b)),E[v.BoostType].add(v.Id)}o({gameIds:g,allGameIds:h}),n(b=>({...b,eventIds:E,loading:!1}))}))},[]),p.useEffect(()=>{if(s.current===2&&r.size&&(a[1].size||a[2].size)){const f=ee.subscribe({source:"betting",what:{game:["is_live"]},where:{game:{id:{"@in":Array.from(r)}}}},({game:m})=>{const h=new Set;Object.entries(m).forEach(([g,E])=>{const b=Number(g),v=E===1;(a[0].has(b)||v&&a[1].has(b)||!v&&a[2].has(b))&&h.add(b)}),n(g=>({...g,gameIds:h,loaded:!0,loading:!1}))},()=>{n(m=>({...m,gameIds:r}))});return()=>ee.unsubscribe(f)}else t.loading||n(f=>({...f,gameIds:r,loaded:!0}))},[r,a,t.loaded,t.loading]),d.jsx(UO.Provider,{value:{...t,init:l,initAndSubscribeLive:c,unsubscribeLive:u,initialized:s.current},children:e})},$O="_",uV=.6,dV=e=>{var o;const[t,n,s,r,a]=((o=e.get(hO))==null?void 0:o.split($O))??"";return a?{sport:n,region:s,competition:Number(r),game:Number(a),isLive:t===Ye.Live}:null},tde=e=>ut({...ze(),[hO]:e?[e.isLive?Ye.Live:Ye.Prematch,e.sport,e.region,e.competition,e.game].join($O):void 0}),fV=e=>{const t=Object.values(e.event).filter(PH);return t.length?t.reduce((s,r)=>r.price?s+1/r.price:1/0,0)*100-100:1/0},nde=({market:e,boostedEventIds:t,isLive:n})=>e&&N.sportsbook.showZeroMarginFlag&&w4.includes(e.type)&&Object.values(e.event).every(({id:s})=>t[Cr.BOTH].has(s)||t[n?Cr.LIVE:Cr.PREMATCH].has(s))&&uV>=fV(e),sde=(e,t)=>{var r;const{enabled:n,RocketBet:s}=t;return n?s?(r=s.availableSports)!=null&&r.length?s.availableSports.includes(e):tG.has(e):!0:!1},GO=e=>gt.getInstance().internalBetBuilderAliases.includes(e),rde="streaming",Lu="main",VO="betslip_state",Ur={stake:"",stakeMultiplier:1,eachWay:!1},Gv={active:!1,oldBetId:0,stake:0,eventsChanged:!1,originalEventIds:new Set},ag={main:new Xr},pV=(e=Lu)=>(ag[e]||(ag[e]=new Xr),ag[e]),Ae={getInstance:pV},eT=(e,t)=>Ae.getInstance(e).dispatchEvent("updated",t),ade=()=>Ae.getInstance().dispatchEvent("updateBookingId",{}),tT=e=>Ae.getInstance().dispatchEvent("setInProgressState",{betbuilder:e}),HO=()=>Date.now()*1e3+Math.floor(Math.random()*1e3),mV=(e=Lu)=>Te.getItemFromLocalStorage(`${VO}_${e}`),hV=(e=Lu,t)=>Te.setItemToLocalStorage(`${VO}_${e}`,t),La=e=>{var t;return!!((t=e==null?void 0:e.childrenEvents)!=null&&t.length)},ji=(e,t)=>e.gameId===t.gameId&&(e.expressId===t.expressId||e.expressId===cn||t.expressId===cn||La(e)||La(t)),lb=e=>e.some(t=>t.hasConflicts||t.singleOnly),WO=e=>e.length>0&&e.every(t=>t.eachWayAllowed),gV=(e,t)=>(e===Re.Betting||e===Re.Hybrid)&&!0,tc=({placeBet:e,maxBet:t,getBetByBookingId:n,quickBet:s,betbuilder:r})=>e||t||n||s||r,cb=({events:e,markets:t,games:n,tag:s})=>ee.get({source:"betting",what:{game:["id","sport_alias","team1_name","team2_name","is_live","start_ts"],market:["id","type","express_id","name"],event:["id","price","type_1","name","base"]},where:{game:{id:n.length>1?{"@in":n}:n[0]},market:{id:t.length>1?{"@in":t}:t[0]},event:{id:e.length>1?{"@in":e}:e[0]}}}).then(({data:{game:r}})=>Object.values(r).flatMap(({id:a,is_live:o,sport_alias:i,team1_name:l,team2_name:c="",market:u,start_ts:f})=>Object.values(u).flatMap(({id:m,type:h,express_id:g=cn,event:E,name:b})=>Object.values(E).map(({id:v,base:_=cn,name:y,price:S,type_1:w})=>({id:v,gameId:a,type:w,price:S,priceType:$o.Fixed,base:_,team1Name:l,team2Name:c,marketType:h,marketId:m,marketName:al(b,l,c),eventName:al(y,l,c),expressId:g,isPartial:!0,sportAlias:i,isLive:o,startTime:f,...s&&{tag:String(s[0])}}))))),Vv=e=>!(e.isLive||e.priceType==="sp"),cs=e=>e.flatMap(t=>La(t)?t.childrenEvents:[t]),zO=(e,t,n,s=0)=>{const r=t.filter(a=>!a.disabled).map(Pt("value"));if(!r.length)return[];if(n)return aL(r);{const a=r.includes(me.Multiple);if(s===1&&a)return[me.Multiple];if(e.length===1){const[o]=e;if(r.includes(o))return e}return a?[me.Multiple]:[r[0]]}},Lm=e=>a4[e]||r4,nT=e=>({1:"Singles",2:"Doubles",3:"Trebles"})[e]||`${e} folds`,YO=il((e,t,n,s,r)=>{const a=N.sportsbook.availableBetTypes,o=Lm(e);return t?a.reduce((i,l)=>{const{name:c,value:u}=l;if(o.includes(u))switch(u){case me.Single:i.push(l);break;case me.Multiple:i.push({name:n?nT(e):c,value:u,disabled:s});break;case me.System:a_(e-2,f=>{const m=f+2;return i.push({name:n?nT(m):c,value:u,sysCount:m,disabled:s})});break;default:i.push({name:c,value:u,disabled:s})}return i},[]):a.map(i=>({...i,disabled:r&&e?e>1?i.value!==me.Multiple:i.value!==me.Single:!o.includes(i.value)}))},(...e)=>JSON.stringify(e)),ub=(e,t,n)=>{const s=N.sportsbook.betslip.enableSystemCuts?1:pp(n.length+2,t+2);return{...e,stakeMultiplier:e.eachWay?s*2:s}},qO=(e,t)=>{switch(e){case me.Single:return a_(t,()=>({...Ur}));case me.System:return a_(t-2,()=>({...Ur})).map(ub);case me.Multiple:case me.Chain:return[{...Ur}];default:return[{...Ur,stakeMultiplier:Jy[e]}]}},_V=(e,t)=>{const n=new Map,s=Lm(t);return e.forEach(r=>{const a=r.value;n.set(a,s.includes(a)?qO(a,t):[])}),n},vV=(e,t)=>{switch(e){case me.Single:return[...t,{...Ur}];case me.System:return[...t,{...Ur}].map(ub);case me.Multiple:case me.Chain:return t.length?t:[{...Ur}];default:return[{...Ur,stakeMultiplier:Jy[e]}]}},EV=(e,t)=>{const n=new Map,s=Lm(t);return e.forEach((r,a)=>{n.set(a,s.includes(a)?vV(a,r):[])}),n},yV=(e,t,n)=>{switch(e){case me.Single:return t.filter((s,r)=>n!==r);case me.System:return t.slice(0,t.length-1).map(ub);default:return t.length?t:[{...Ur}]}},bV=(e,t,n)=>{const s=new Map,r=Lm(t);return e.forEach((a,o)=>{r.includes(o)?s.set(o,a.length?yV(o,a,n):qO(o,t)):s.set(o,[])}),s},SV=({eventsData:e,updatedEventData:t,index:n})=>n!==void 0?e.map((s,r)=>r===n?Object.assign({},s,t):s):e.map(s=>Object.assign({},s,t)),og=({eventsDataMap:e,betType:t,index:n,updatedEventData:s})=>{const r=new Map(e),a=r.get(t)||[],o=SV({eventsData:a,updatedEventData:s,index:n});return r.set(t,o),r},CV=({gameData:e,gameId:t,eventId:n,eachWayPrice:s})=>{var a;const r=e[t];if(r){const o=Object.values(r.market)[0],i=o.event[n],l=o.available_for_betbuilder&&GO(r.sport_alias);return{id:i.id,type:i.type_1,type_id:i.type_id,market_type:o.market_type,sequence:o.sequence||0,point_sequence:o.point_sequence||0,home_value:i.home_value,away_value:i.away_value,betBuilderEvent:l,competitionName:r.competition.name,regionName:r.region.name,base:i.base||cn,expressId:(r.is_live!==1&&o.prematch_express_id!==void 0?o.prematch_express_id:o.express_id)??cn,singleOnly:r.express_min_len===1,isBlocked:!!r.is_blocked||ik(i.price),isDeleted:!1,isLive:r.is_live,sportAlias:r.sport_alias,regionAlias:r.region_alias,competitionId:r._parent_id,eventName:al(i.name,r.team1_name,r.team2_name),marketName:al(o.name,r.team1_name,r.team2_name),marketType:o.type,marketId:o.id,price:i.price,team1Name:r.team1_name,childrenEvents:[],team2Name:r.team2_name,eachWayAllowed:!!i.ew_allowed,eachWayPrice:s||((a=o.extra_info)!=null&&a.EachWayK&&i.price?AH(i.price,o.extra_info.EachWayK):Jx),isPartial:!1,startTime:r.start_ts,visibleInPrematch:r.visible_in_prematch===1,spEnabled:i.sp_enabled===1}}return null},TV=(e=Lu)=>{const t=Vy({events:[],priceChangeMode:N.sportsbook.betslip.defaultPriceChange||Zy.AlwaysAsk,selectedBetTypes:[],counterOffers:[],multipleOfTheDayIds:[]},nt(m=>({...m,events:m.events.map(h=>({...h,isPartial:La(h),addedInEditMode:!1,childrenEvents:(h.childrenEvents??[]).map(g=>({...g,isPartial:!0}))})),multipleOfTheDayIds:m.multipleOfTheDayIds??[]})),mV(e)),n=t.events.length,s=N.sportsbook.availableBetTypes.some(m=>o4.includes(m.value)),r=_V(N.sportsbook.availableBetTypes,n),a={active:!1,showInfo:!1,available:!1},o={realBalance:{...a},bonusBalance:{...a},frenchFreebet:{...a},freebet:{options:{},selectedOption:null,loading:!1,availableBetTypes:[],...a},profitBoost:{options:{},selectedOption:null,loading:!1,availableBetTypes:[],...a},counterOffer:{...a},quickBet:{...a}},i=Re.Betting,l=gV(i),c=lb(t.events),u={quickBet:{stake:"",isValid:!1,isSaved:!1,errorMessage:""},fullCoverBetTypesEnabled:s,availableBetTypes:YO(n,s,s,c,Gv.active),eachWayAllowedOnAllEvents:WO(t.events),eachWayPossible:l,selectedSysOption:0,excludedSysEvents:new Set,bankerEvents:new Set,contentType:i,anyConflicts:c,editBet:Gv,inProgress:{placeBet:!1,maxBet:!1,getBetByBookingId:!1,quickBet:!1,betbuilder:!1},betslipViewState:At.Hidden,isQuickViewAvailable:Q.isMobile===1&&N.sportsbook.availableBetTypes.some(lt("value",me.Single)),betslipPartial:t.events.length>0,favoriteStakesMultipliers:ZU.map((m,h)=>{var g;return((g=N.sportsbook.betslip.favoriteStakesMultipliers)==null?void 0:g[h])??m})},f=zO(t.selectedBetTypes,u.availableBetTypes,u.fullCoverBetTypesEnabled);return{...t,selectedBetTypes:f,metadata:u,eventsDataMap:r,extraFunctions:o,betslipId:e}},wV=(e,{priceType:t,price:n,...s})=>{const{disableConflictEventReplacement:r}=N.sportsbook;return{initialBase:s.base,isBlocked:!1,isDeleted:!1,childrenEvents:[],regionAlias:"",competitionId:0,eachWayPrice:Jx,singleOnly:!1,marketType:"",sequence:0,point_sequence:0,betBuilderEvent:!1,marketName:"",marketId:0,eachWayAllowed:!1,hasConflicts:r?e.events.some(a=>ji(s,a)):!1,startTime:cn,addedInEditMode:e.metadata.editBet.active,visibleInPrematch:!1,...n?{price:n,initialPrice:n,priceType:t,spEnabled:!1}:{price:null,initialPrice:null,priceType:"sp",spEnabled:!0},...s}},ys=(e,t,n)=>({...e,[t]:{...e[t],...n}}),lf=e=>t=>({...t,metadata:{...t.metadata,editBet:{...t.metadata.editBet,...e}}}),IV=async(e,t)=>ee.get({bet_builder_markets:[{MatchId:e,Selections:t}]},"get_bet_builder_markets_v2").then(({details:n,result:s,result_text:r})=>{if(s===0)return n;throw new Error(r||"")}).catch(n=>(console.error(`Failed to get BB data from Swarm, reason : ${n}`),Ae.getInstance().dispatchEvent("blockBBEvents"),Promise.reject(n))),AV=async e=>(tT(!0),ee.get({selections:e},"get_bet_builder_odds").then(({details:t,result:n,result_text:s})=>{if(n===0)return t;throw new Error(s||"")}).catch(t=>(console.error(`Failed to get BB data from Swarm, reason : ${t}`),Promise.reject())).finally(()=>{tT(!1)})),KO=e=>e.map(t=>({...(t.away_value||t.away_value===0)&&{AwayValue:t.away_value},...(t.home_value||t.home_value===0)&&{HomeValue:t.home_value},MarketId:t.marketId,SelectionId:t.id,SelectionTypeId:t.type_id,SelectionName:t.type})),db=async(e,t)=>new Promise((n,s)=>{const r=La(e)?e.childrenEvents:[e],a=KO([...r,t]),o=e.gameId;AV(a).then(({TotalOdd:i,OddsPerMatch:l,RejectedIds:c=[]})=>{var f;if(c.length>0)throw new Error;const u=(f=l.find(lt("MatchId",o)))==null?void 0:f.Odd;if(u&&i)Ae.getInstance().dispatchEvent("betBuilderEventsSynced",{selections:a,currentGameID:o}),n({price:u,combined:!0,selection:e});else throw new Error}).catch(()=>{s({price:0,combined:!1,selection:e})})}),PV=(e,t,n)=>{const{combined:s,replacedEventId:r,selection:a,isExistingBBPair:o}=t;if(!s)return{...e,metadata:{...e.metadata,inProgress:{...e.metadata.inProgress,betbuilder:!1}}};let i=e;r&&(i=Bi(i,r)),o?i={...i,events:i.events.map(c=>c.id===a.id?a:c)}:i=hb(i,a);const l=Bi(i,n.id);return{...l,metadata:{...l.metadata,inProgress:{...l.metadata.inProgress,betbuilder:!1}}}},xV=(e,t,n)=>{const{combined:s,selection:r}=t;if(s&&r){const a=n.reduce((i,{id:l})=>Bi(i,l),e),o=hb(a,r);return{...o,metadata:{...o.metadata,needCorrelation:!1,inProgress:{...o.metadata.inProgress,betbuilder:!1}}}}else Ce.warning("Failed to get Booked Events");return{...e,metadata:{...e.metadata,needCorrelation:!1}}},OV=e=>!!(e.betBuilderEvent&&!e.parentId&&!La(e)&&GO(e.sportAlias)&&!e.correlationID),kV=async e=>{const[t]=e.splice(-1),n={...e[0],childrenEvents:e},s=HO(),{combined:r,price:a,selection:o}=await db(n,t),{correlationID:i,...l}=o;return{combined:r,selection:{...l,price:a,initialPrice:a,id:s,isPartial:!1,hasConflicts:!1,childrenEvents:[...n.childrenEvents,t].map(({correlationID:c,...u})=>({...u,parentId:s,hasConflicts:!1}))}}},NV=async(e,t)=>{const n=e.filter(s=>s.gameId===t.gameId&&s.betBuilderEvent===t.betBuilderEvent&&s.id!==t.id&&!(s.expressId>0&&t.expressId>0&&s.expressId!==t.expressId&&!La(s))).sort((s,r)=>r.childrenEvents.length-s.childrenEvents.length)[0];if(n){const{combined:s,selection:r,price:a}=await db(n,t),o=La(r),i=s&&o&&(!a||a===n.price);if(i&&(Ce.warning("Bet Builder price didn't change"),Ae.getInstance().dispatchEvent("blockBBEvents")),s&&!i){const l=o?r.id:HO(),u=[...o?r.childrenEvents:[{...r,parentId:l,hasConflicts:!1}],{...t,parentId:l,hasConflicts:!1}];return{combined:s,isExistingBBPair:o,...!o&&{replacedEventId:n.id},selection:{...r,childrenEvents:u,hasConflicts:!1,price:a,...n.price&&{initialPrice:a},...o?{isPartial:!1}:{id:l}}}}}return{combined:!1,selection:{}}},RV=(e,t,n=!1)=>{const s=new Map,r=[],a=new Map(t.map(i=>[i.id,i])),o=new Set;for(const{bet_type:i,amount:l,selections:c}of e)for(const u of c){const f=a.get(u.selection_id);if(!(!f||o.has(u.selection_id)))if(o.add(u.selection_id),u.bet_builder_match_id&&n){const m={...f,betBuilderEvent:!0},{gameId:h}=f;if(s.has(h))s.get(h).childrenEvents.push({...m,correlationID:h});else{const g={...m,childrenEvents:[{...m,correlationID:h}],bet_type:i,amount:l,price:u.bet_builder_price};s.set(h,g),r.push(g)}}else r.push(f)}return{processedEvents:r}},LV=async(e,t)=>{const n=e.find(lt("id",t));if(n){const s=n.childrenEvents;if(s.length===1){const{parentId:l,...c}=s[0];return{remainingEvent:c}}const r=s[s.length-1],a=s.slice(0,-1),{price:o,combined:i}=await db({...n,childrenEvents:a},r);return{remainingEvent:{...n,...o&&{price:o},hasConflicts:!i,childrenEvents:s}}}return{remainingEvent:{}}},MV=(e,t)=>{const{disableConflictEventReplacement:n}=N.sportsbook,s=wV(e,t),r=(()=>{const i=e.events.some(u=>u.gameId===s.gameId),l=e.events.filter(u=>u.gameId!==s.gameId);if(!n&&i&&l.length<1&&(s.expressId<0||!s.expressId))return[s];if(!n&&i&&(s.expressId<0||!s.expressId))return[...e.events.filter(u=>u.gameId!==s.gameId),s];const c=e.events.map(u=>ji(t,u)?n?{...u,hasConflicts:!0}:s:u);return[...c,...c.includes(s)?[]:[s]]})(),a=EV(e.eventsDataMap,r.length),o=[...e.counterOffers,""];return{...e,metadata:{...e.metadata,...e.metadata.bankerEvents.size>0&&{bankerEvents:new Set},inProgress:{...e.metadata.inProgress,betbuilder:!!t.betBuilderEvent}},events:r,eventsDataMap:a,counterOffers:o}},DV=(e,t,n)=>{const s=!!n,r=s?-1:e.events.findIndex(i=>i.id===t);let a=[...e.events];s&&n?(a=e.events.map(i=>i.id===n?{...i,childrenEvents:i.childrenEvents.filter(l=>l.id!==t)}:i),Ae.getInstance().dispatchEvent("processRemoveBetBuilderEvent",{parentID:n,events:a})):a.splice(r,1);const o=a.map((i,l,c)=>i.hasConflicts?{...i,hasConflicts:c.some(u=>u.id!==i.id&&ji(u,i))}:i);return{...e,metadata:{...e.metadata,...e.metadata.bankerEvents.size>0&&{bankerEvents:new Set},inProgress:{...e.metadata.inProgress,betbuilder:s}},events:o,eventsDataMap:s?e.eventsDataMap:bV(e.eventsDataMap,o.length,r),counterOffers:s?e.counterOffers:e.counterOffers.filter((i,l)=>l!==r)}},jV=(e,t,n)=>{const s=cs(e.events).find(lt("id",t));if(s){const r=Object.assign({},s,n?{...n,priceType:s.priceType==="sp"&&n.spEnabled?"sp":"fp",...(s==null?void 0:s.parentId)&&{parentId:s.parentId}}:{isDeleted:!0,isBlocked:!1}),a=OV(r);a&&XV(e,r);const o=n&&(s.expressId!==n.expressId||s.singleOnly!==n.singleOnly),i=e.events.some(l=>!!l.correlationID);if(o){const l=e.events.map(c=>t===c.id?{...r,hasConflicts:e.events.some(u=>u.id!==t&&ji(r,u))}:c.id===r.parentId?{...c,isPartial:!1,regionName:r.regionName,competitionName:r.competitionName,team1Name:r.team1Name,team2Name:r.team2Name,childrenEvents:c.childrenEvents.map(u=>u.id===r.id?r:u)}:{...c,...ji(r,c)?{hasConflicts:!0}:{hasConflicts:e.events.some(u=>u.id!==c.id&&u.id!==t&&ji(c,u))}});return{...e,events:l,metadata:{...e.metadata,needCorrelation:i,anyConflicts:lb(l),inProgress:{...e.metadata.inProgress,betbuilder:a||i}}}}else return{...e,events:e.events.map(l=>t===l.id?r:r.parentId===l.id?{...l,isPartial:!1,regionName:r.regionName,competitionName:r.competitionName,team1Name:r.team1Name,team2Name:r.team2Name,childrenEvents:l.childrenEvents.map(c=>c.id===r.id?r:c)}:l),metadata:{...e.metadata,inProgress:{...e.metadata.inProgress,betbuilder:a||i},needCorrelation:i}}}return e},BV=e=>({...e,metadata:{...e.metadata,eachWayAllowedOnAllEvents:WO(e.events)}}),Mm=e=>{const t=r=>({eachWay:!1,stakeMultiplier:r.stakeMultiplier/2}),n=(e.metadata.contentType===Re.Betting||e.metadata.contentType===Re.Hybrid)&&!e.extraFunctions.profitBoost.active||!e.extraFunctions.quickBet.active,s=new Map(e.eventsDataMap);for(const r of e.selectedBetTypes){const a=s.get(r)||[],o=r===me.Single?a.map((i,l)=>i.eachWay&&!(n&&e.events[l].eachWayAllowed)?Object.assign({},i,t(i)):i):a.map(i=>i.eachWay&&!(n&&e.metadata.eachWayAllowedOnAllEvents)?Object.assign({},i,t(i)):i);s.set(r,o)}return{...e,metadata:{...e.metadata,eachWayPossible:n},eventsDataMap:s}},QO=(e,t)=>({...e,metadata:{...e.metadata,selectedSysOption:t}}),XO=e=>QO(e,0),FV=e=>({...e,metadata:{...e.metadata,availableBetTypes:YO(e.events.length,e.metadata.fullCoverBetTypesEnabled,e.metadata.fullCoverBetTypesEnabled,e.metadata.anyConflicts,e.metadata.editBet.active)}}),UV=e=>t=>{const{events:n,selectedBetTypes:s,metadata:{availableBetTypes:r,fullCoverBetTypesEnabled:a}}=t,o=e?n.length-1:n.length+1;return{...t,selectedBetTypes:zO(s,r,a,o)}},$V=e=>N.sportsbook.betslip.keepContentTypeOnAddEvent?e:{...e,metadata:{...e.metadata,contentType:gt.getInstance().betslipDefaultContentType}},GV=(e,t)=>({...e,selectedBetTypes:t}),VV=(e,t)=>{const n={},s={};for(const r of yo(["amount","amount_percent"],t))for(const a of r.bet_types||i4)r.amount&&(n[a]||(n[a]=[]),n[a].push({id:r.id,value:r.amount,expirationDate:r.expiration_date,maxAmounts:o_(r.freebet_max_payouts,"Currency")})),r.amount_percent&&(s[a]||(s[a]=[]),s[a].push({id:r.id,value:r.amount_percent,expirationDate:r.expiration_date,maxAmounts:o_(r.boost_max_bet_amounts,"Currency")}));return{...e,extraFunctions:{...e.extraFunctions,freebet:{...e.extraFunctions.freebet,options:n,active:!1,selectedOption:null,loading:!1},profitBoost:{...e.extraFunctions.profitBoost,options:s,active:!1,selectedOption:null,loading:!1}}}},JO=e=>{const t=r=>uo(r)?[]:e.metadata.availableBetTypes.filter(({value:a,disabled:o})=>(e.metadata.fullCoverBetTypesEnabled||!o&&e.selectedBetTypes.includes(a))&&a in r&&(a!==me.Single||e.events.length===1)),n=t(e.extraFunctions.freebet.options),s=t(e.extraFunctions.profitBoost.options);return{...e,extraFunctions:{...e.extraFunctions,freebet:{...e.extraFunctions.freebet,availableBetTypes:n,available:n.length>0},profitBoost:{...e.extraFunctions.profitBoost,availableBetTypes:t(e.extraFunctions.profitBoost.options),available:s.length>0}}}},HV=(e,t)=>({...e,extraFunctions:{...e.extraFunctions,realBalance:{...e.extraFunctions.realBalance,available:(t??0)>0&&e.events.length>0}}}),WV=(e,t)=>({...e,extraFunctions:{...e.extraFunctions,bonusBalance:{...e.extraFunctions.bonusBalance,available:(t??0)>0&&e.events.length>0}}}),zV=(e,t)=>({...e,extraFunctions:{...e.extraFunctions,frenchFreebet:{...e.extraFunctions.frenchFreebet,available:N.sportsbook.betslip.enableFrenchFreebet?(t??0)>0&&e.events.length>0:!1}}}),Jr=e=>{const{extraFunctions:{realBalance:t,quickBet:n,frenchFreebet:s,bonusBalance:r,freebet:a},metadata:{contentType:o}}=e;return o!==Re.Hybrid&&o!==Re.Betting||!t.available||n.active||s.active||a.active||r.active?{...e,extraFunctions:ys(e.extraFunctions,"realBalance",{active:!1})}:e},sr=e=>{const{extraFunctions:{bonusBalance:t,quickBet:n,frenchFreebet:s,realBalance:r,counterOffer:a,freebet:o},metadata:{contentType:i}}=e;return i!==Re.Hybrid&&i!==Re.Betting||!t.available||r.active||n.active||a.active||o.active||s.active?{...e,extraFunctions:ys(e.extraFunctions,"bonusBalance",{active:!1})}:e},Zr=e=>{const{extraFunctions:{frenchFreebet:t,quickBet:n,realBalance:s,bonusBalance:r,freebet:a,profitBoost:o},metadata:{contentType:i}}=e;return i!==Re.Hybrid&&i!==Re.Betting||!t.available||o.active||a.active||n.active||s.active||r.active?{...e,extraFunctions:ys(e.extraFunctions,"frenchFreebet",{active:!1})}:e},Mu=e=>{const{extraFunctions:{realBalance:t,counterOffer:n,profitBoost:s},metadata:{contentType:r}}=e;return(r===Re.Betting||r===Re.Hybrid)&&t.available&&(n.active||s.active)?{...e,extraFunctions:ys(e.extraFunctions,"realBalance",{active:!0})}:e},Us=e=>{const{extraFunctions:{freebet:t,counterOffer:n,profitBoost:s,quickBet:r,frenchFreebet:a,bonusBalance:o,realBalance:i},metadata:{contentType:l}}=e,c=Object.keys(t.options).length===0||t.availableBetTypes.length===0;return l!==Re.Betting&&l!==Re.Hybrid||c||a.active||n.active||s.active||i.active||o.active||r.active?{...e,extraFunctions:ys(e.extraFunctions,"freebet",{active:!1,selectedOption:null})}:e},$s=e=>{const{extraFunctions:{profitBoost:t,freebet:n,counterOffer:s,quickBet:r,frenchFreebet:a},metadata:{contentType:o}}=e,i=Object.keys(t.options).length===0||t.availableBetTypes.length===0;return o!==Re.Betting&&o!==Re.Hybrid||i||s.active||n.active||a.active||r.active?{...e,extraFunctions:ys(e.extraFunctions,"profitBoost",{active:!1,selectedOption:null})}:e},Gs=e=>{const{extraFunctions:{realBalance:t,counterOffer:n,freebet:s,profitBoost:r,quickBet:a,frenchFreebet:o,bonusBalance:i}}=e;return!a.available||t.active||i.active||o.active||n.active||s.active||r.active?{...e,extraFunctions:ys(e.extraFunctions,"quickBet",{active:!1})}:e},YV=e=>N.sportsbook.betslip.quickBetAvailable?e.events.length?{...e,extraFunctions:ys(e.extraFunctions,"quickBet",{available:!1})}:{...e,extraFunctions:ys(e.extraFunctions,"quickBet",{available:!0})}:e,Ts=e=>{const{extraFunctions:{bonusBalance:t,realBalance:n,counterOffer:s,freebet:r,profitBoost:a,quickBet:o,frenchFreebet:i}}=e;return!o.available||!o.active||n.active||t.active||i.active||s.active||r.active||a.active?{...e,metadata:{...e.metadata,quickBet:{errorMessage:"",stake:"",isValid:!1,isSaved:!1}}}:e},qV=e=>{const{selectedSysOption:t}=e.metadata,n=s=>{var r;return s.active&&((r=s.selectedOption)==null?void 0:r.betType)===me.System?{...s,selectedOption:{...s.selectedOption,sysCount:t+2}}:s};return{...e,extraFunctions:{...e.extraFunctions,freebet:n(e.extraFunctions.freebet),profitBoost:n(e.extraFunctions.profitBoost)}}},dp=e=>t=>{const n=t.extraFunctions[e];if(n.active&&n.availableBetTypes.length>0){const{value:s,sysCount:r}=n.availableBetTypes[0],a={...n.options[s][0],eachWay:!1,betType:s,...r!==void 0?{sysCount:r}:s===me.System?{sysCount:t.metadata.selectedSysOption}:null};return{...t,extraFunctions:{...t.extraFunctions,[e]:{...n,selectedOption:a}}}}return t},KV=e=>{const{metadata:{editBet:t,counterOfferMinAmount:n},selectedBetTypes:s,events:r,extraFunctions:a}=e,o=!t.active&&n!==void 0&&n!==null&&s.length>0&&s.every(l=>l===me.Single||l===me.Multiple)&&(s.length===1&&s[0]===me.Single?r.some(Vv):r.every(Vv));return a.counterOffer.available!==o?{...e,extraFunctions:ys(a,"counterOffer",{available:o})}:e},$a=e=>{const{extraFunctions:{freebet:t,counterOffer:n,profitBoost:s,quickBet:r,bonusBalance:a,frenchFreebet:o},metadata:{contentType:i}}=e;return i!==Re.Betting&&i!==Re.Hybrid||!n.available||t.active||s.active||r.active||o.active||a.active?{...e,extraFunctions:ys(e.extraFunctions,"counterOffer",{active:!1})}:e},ea=e=>{const{freebet:t,counterOffer:n,profitBoost:s,quickBet:r}=e.extraFunctions;return!n.available||!n.active||t.active||s.active||r.active?{...e,counterOffers:Array.from({length:e.events.length},()=>"")}:e},Vo=e=>(t,n)=>({...t,extraFunctions:ys(t.extraFunctions,e,{active:n})}),QV=(e,t)=>({...e,metadata:{...e.metadata,contentType:t}}),ZO=e=>({...e,metadata:{...e.metadata,anyConflicts:lb(e.events)}}),ek=e=>e.metadata.editBet.active?lf({eventsChanged:!(e.metadata.editBet.originalEventIds.size===e.events.length&&e.events.every(({id:t})=>e.metadata.editBet.originalEventIds.has(t)))})(e):e,tk=e=>t=>{const{events:{length:n},metadata:{betslipViewState:s,isQuickViewAvailable:r}}=t,a=e?n-1:n+1;if(!eO.includes(s)&&n!==a){let o;return n===1&&a===0&>.getInstance().bettingAvailable?o=r?At.Quick:At.Full:n>1||n===0&&s===At.Quick?o=At.Hidden:o=s,{...t,metadata:{...t.metadata,betslipViewState:o}}}return t},fb=e=>({...e,metadata:{...e.metadata,betslipPartial:cs(e.events).some(lt("isPartial",!0))}}),XV=(e,t)=>{Ae.getInstance().dispatchEvent("processBetBuilderEvent",{targetEvent:t,events:e.events})},nk=nt(JO,Us,$s,dp("freebet"),dp("profitBoost")),sk=e=>nt(FV,UV(e),nk),pb=nt(BV,Mm),Du=nt(KV,$a,ea),JV=nt(GV,nk,Du),ZV=nt(QO,qV),mb=nt(YV,Gs,Ts),eH=e=>{nr.notify({type:"toggle_event",value:{eventId:e.id,gameId:e.gameId,marketId:e.marketId,sportAlias:e.sportAlias}})},hb=nt(MV,ZO,sk(!0),pb,XO,$V,ek,tk(!0),fb,Du,mb),Bi=nt(DV,ZO,sk(!1),pb,XO,ek,tk(!1),fb,Du,mb),sT=nt(jV,pb,fb,Du),tH=nt(Vo("counterOffer"),Us,$s,ea,Mu,sr,Zr,Gs,Ts),ig=nt(VV,JO,Us,$s,Jr,sr,Zr,Gs,Ts),nH=nt(HV,Jr,sr,Us,$s,Gs,Ts),sH=nt(WV,sr,Jr,sr,Us,$s,Gs,Ts),rH=nt(zV,Zr,Jr,sr,Us,$s,Gs,Ts),aH=nt(Vo("freebet"),$s,dp("freebet"),$a,ea,Zr,Jr,Mu,sr,Gs,Ts),oH=nt(Vo("realBalance"),Zr,Us,$s,$a,sr,ea,Mu,Gs,Ts),iH=nt(Vo("bonusBalance"),Zr,Us,$s,$a,Jr,ea,Gs,Ts),lH=nt(Vo("frenchFreebet"),Jr,Us,sr,$s,$a,ea,Mu,Gs,Ts),cH=nt(Vo("profitBoost"),Us,dp("profitBoost"),$a,ea,Zr,Mm,Mu,Gs,Ts),uH=nt(QV,Us,$s,$a,ea,Mm,Zr,Jr,sr,Gs,Ts),rT=nt(Vo("quickBet"),Ts,Us,$s,$a,ea,Mm,Zr,Jr,sr),ode=({bookingModeSelected:e,allEventsContainWarnings:t,freebetExpanded:n,editBetActive:s=!1,events:r})=>s?"Save changes":e?N.sportsbook.shareBooking.enabled&&N.sportsbook.shareBooking.shareButtonInBookingBetslipMode?"Share bet":"Get bet id":n?"Free bet":t||r.some(({initialPrice:a,price:o,initialBase:i,base:l,priceType:c})=>c===$o.Fixed&&fH(a,o)||pH(i,l))?t4:"Bet Now",dH=({requests:e,events:t,is_superbet_on_prematch:n=!1,is_superbet_on_live:s=!1,freebet:r})=>{if(!r&&e.every(({Type:a})=>a===me.Single||a===me.Multiple)){const a=o_(cs(t),"id");return nx(e.flatMap(({Events:o})=>o.map(Pt("SelectionId")))).every(o=>a[o]&&(a[o].isLive?s:n))}return!1},ide=(e,t)=>e&&Vv(t),fH=(e,t)=>e!==t,pH=(e,t)=>e!==cn&&t!==cn&&e!==t,lde=e=>{const t=Number(e.stake);return isNaN(t)||t<=0},mH=e=>{if("data"in e){const{ApiCode:t,...n}=e.data.Data;return{HasError:!0,Data:{...n},StatusCode:e.data.StatusCode}}return e},hH=(e,t)=>{if(isNaN(Number(t)))return t.length>1?hH(e,t.slice(0,-1)):t===LO.DOT?"0.":"";{const[n,s]=t.split(".");return(s?`${n||0}.${s.slice(0,e)}`:n.length>1&&n.startsWith("0")?Number(n).toString():t).replace("-","").replace("+","").trim().slice(0,e4)}},Hv=({calculatedBalance:e,sport_bonus:t,useOnlyRealBalance:n,useOnlyBonusBalance:s,frenchFreebetEnabled:r,calculatedBonusMoney:a,casino_balance:o,frozen_balance:i})=>{const l=t?t+(i??0):0;if(s)return l;if(r)return a;const c=e+(o??0);return n?c:Math.max(c,l)},gH=({price:e,decimalRounding:t,odds_raised_percent:n})=>n&&e?String(Ns(e/(1-n*.01),t)):"",_H=()=>N.sportsbook.betslip.contentTabs.some(t=>t.type===Re.Suggested),Wv=e=>{const t=e.filter(r=>r.tag).map(r=>r.tag);if(!t.length)return{allSameTag:!1};const n=cs(e),s=n.filter(r=>r.tag).map(r=>r.tag);return{tag:t[0],allSameTag:n.length===s.length&&s.every(r=>r===s[0])}},rk={"Player 1":"team1_name","Player 2":"team2_name","player 1":"team1_name","player 2":"team2_name","Team 1":"team1_name","team 1":"team1_name","Team 2":"team2_name","team 2":"team2_name","{t1}":"team1_name","{t2}":"team2_name",team1:"team1_name",team2:"team2_name",W1:"team1_name",W2:"team2_name","W 1":"team1_name","W 2":"team2_name",Team1:"team1_name",Team2:"team2_name",Home:"team1_name",Away:"team2_name","Ком. 1":"team1_name",Ком1:"team1_name","Ком. 2":"team2_name",Ком2:"team2_name",П1:"team1_name",П2:"team2_name","Игрок 1":"team1_name","Игрок 2":"team2_name","Թիմ 1":"team1_name","Թիմ 2":"team2_name",Հ1:"team1_name",Հ2:"team2_name",G1:"team1_name",G2:"team2_name","Ev Sahibi":"team1_name",Deplasman:"team2_name","第 1 隊":"team1_name","第 2 隊":"team2_name","主場 ":"team1_name","客場 ":"team2_name",主場:"team1_name",客場:"team2_name","Home ":"team1_name","Away ":"team2_name",選手1:"team1_name",選手2:"team2_name","球員 1":"team1_name","球員 2":"team2_name",主隊:"team1_name",客隊:"team2_name",选手1:"team1_name",选手2:"team2_name","主队 ":"team1_name","客队 ":"team2_name",主队:"team1_name",客队:"team2_name","选手 1":"team1_name","选手 2":"team2_name",球队1:"team1_name",球队2:"team2_name","球队 1":"team1_name","球队 2":"team2_name",プレーヤー1:"team1_name",プレーヤー2:"team2_name","선수 1":"team1_name","선수 2":"team2_name","Jugador 1":"team1_name","Jugador 2":"team2_name","jugador 1":"team1_name","jugador 2":"team2_name","Spieler 1":"team1_name","Spieler 2":"team2_name",S1:"team1_name",S2:"team2_name","Joueur 1":"team1_name","Joueur 2":"team2_name","Equipo 1":"team1_name","Equipo 2":"team2_name","equipo 1":"team1_name","equipo 2":"team2_name"},vH=new Set(["","Homesley","First Home Run Of Game Will Be","Solo Home Run","2-run Home Run","3-run Home Run","선수 1이상의 안타, 득점 및 타점 기록","선수 2이상의 안타, 득점 및 타점 기록","No Home Run Scored"]),zv="hasMore",EH=new RegExp(Object.keys(rk).join("|"),"g"),al=il((e="",t="",n="")=>{if(e===zv)return"";if(vH.has(e))return e;const s={team1_name:t,team2_name:n};return e.replace(EH,r=>s[rk[r]]||e)},(...e)=>JSON.stringify(e)),fp={type:{"@in":[0,2]}},yH={"@and":[{"@or":[{sportcast_id:{"@gt":1}},{sport_alias:{"@in":tO},show_type:{"@nin":Am.Outright}}]}]};function cde(e,t,n=!0,s=!1){let r=[];if(t===Vt.Winner){const a=[];e==null||e.forEach(o=>{o.market[t]&&a.push(Object.keys(o.market[t].event).length)}),a.some(o=>o===3)?r=["W1","X","W2"]:r=["W1","W2"]}else t===Vt.Handicap?r=s?["Home",zv,"Away"]:["Home","Away"]:t===Vt.Totals?r=s?["Over",zv,"Under"]:["Over","Under"]:t===Vt.OddEven?r=["Odd","Even"]:t===Vt.DoubleChance?r=["1X","12","X2"]:t===Vt.BothTeamToScore&&(r=["Yes","No"]);return n||e.some(a=>{var o;return!uo((o=a.market[t])==null?void 0:o.event)})?r:[]}const ude=e=>{if(!e)return[];const t=s=>Number(s.replace("score_set","")),n=Object.keys(e).filter(s=>s.includes("score_set"));return n.sort(n.length>9?(s,r)=>t(s)-t(r):void 0)},dde=e=>{var a,o;const t=[],{team2_name:n,info:s,stats:r={}}=e;if(s){const{score2:i,score1:l,set_count:c}=s,u=Number(c===1?(a=r.score_set1)==null?void 0:a.team1_value:l);if(t.push(isNaN(u)?wC:u),n){const f=Number(c===1?(o=r.score_set1)==null?void 0:o.team2_value:i);t.push(isNaN(f)?wC:f)}}return t},fde=(e,t)=>e!==void 0&&e!==cn?t!=null&&t.includes("Handicap")&&e!==0?e<0?`+ ${Math.abs(e)} -`:`- ${e} +`:`${e}`:"-",aT=(e,t="",n=!0)=>{if(e===cn)return"";const s=e*100%10!==0;if(N.sportsbook.enableAsianMarketPriceView&&e/.25%2!==0&&s){const r=e<0?"-":"",a=Math.abs(e-.25),o=Math.abs(e+.25);return a<=o?r+a+" / "+o:r+o+" / "+a}return t.includes("Handicap")&&e>0?n?`(+${e})`:`+${e}`:n?`(${e})`:e},ou=(e,t)=>t===$o.Fixed&&e?e:Ka,pp=il((e,t,n=0)=>{const s=[1,1,2,6,24,120,720,5040,40320,362880,3628800,39916800,479001600,6227020800,87178291200,1307674368e3,20922789888e3];return n>t?0:s[e-n]/(s[t-n]*s[e-t])},(...e)=>JSON.stringify(e)),pde=(e,t)=>xv(e)/xv(e-t),mp=(e,t=!1)=>e.flatMap(n=>{const s=ou(n.price,n.priceType),r=n.childrenEvents.map(({id:a,type:o})=>({Coeficient:s,SelectionId:a,BetBuilderMatchId:n.gameId,SelectionName:o}));return t&&r.length?r:[{Coeficient:s,SelectionId:n.id,...(r==null?void 0:r.length)&&{childrenEvents:r}}]}),bH=(e,t=!1)=>e.flatMap(({id:n,childrenEvents:s})=>{const r=s.map(({id:a,gameId:o})=>({event_id:a,bet_builder_match_id:o}));return t&&r.length?r:[{event_id:n,...(r==null?void 0:r.length)&&{childrenEvents:r}}]}),SH=(e,t,n,s)=>{const r=[],{events:a,priceChangeMode:o,metadata:{selectedSysOption:i,fullCoverBetTypesEnabled:l,editBet:c,betBookingId:u,bankerEvents:f},selectedBetTypes:m,eventsDataMap:h,extraFunctions:{profitBoost:g,realBalance:E,frenchFreebet:b,bonusBalance:v},counterOffers:_}=e,y=mp(a),{tag:S,allSameTag:w}=Wv(a);return m.forEach(x=>{let I=bm(h,x,[]);!l&&x===me.System&&(I=I.slice(i,i+1)),I.forEach((C,T)=>{var M;const P=We(Number(C.stake)*C.stakeMultiplier),A=(x===me.Single?[y[T]]:y).flatMap(k=>{var D;return(D=k==null?void 0:k.childrenEvents)!=null&&D.length?k.childrenEvents:[k]}),O=A.every(k=>k.BetBuilderMatchId&&k.BetBuilderMatchId===A[0].BetBuilderMatchId);if(P>0||c.active){const k={Source:Q.isMobile?Es.Mobile:Es.Desktop,Type:O?me.InternalBetBuilder:x,AcceptTypeId:o,OddType:t,EachWay:C.eachWay,Events:A,IsSuperBet:n,...(E.available&&E.active||!s&&n)&&{IsBonusMoney:!1},...v.available&&v.active&&(!n||s)&&{IsBonusMoney:!0},...b.available&&b.active&&{IsFreeBetMoney:!0},...u&&{BetBookId:u},...c.active?{Amount:c.stake,AdditionalAmount:P,OldBetId:c.oldBetId}:{Amount:P},...x===me.Single&&Wv([e.events[T]]).allSameTag?{Tags:e.events[T].tag}:{}};(x===me.Single&&!!_[T]||x===me.Multiple&&_.some(Boolean))&&(k.AcceptTypeId=Zy.CounterOffer,k.Events=k.Events.map((j,V)=>{const R=Number(_[V]);return R>0?{...j,Coeficient:R}:j})),x===me.System&&(k.SystemMinCount=(l?T:i)+2,k.Events=k.Events.map(j=>({...j,...f.has(j.SelectionId)?{IsBanker:!0}:{}}))),x!==me.Single&&w&&(k.Tags=S),g.active&&((M=g.selectedOption)==null?void 0:M.betType)===x&&g.selectedOption.sysCount===k.SystemMinCount&&(k.ClientBonusId=g.selectedOption.id),r.push(k)}})}),r},CH=(e,t)=>{const{events:n,priceChangeMode:s,metadata:{betBookingId:r,selectedSysOption:a},extraFunctions:{freebet:{selectedOption:o}},selectedBetTypes:i}=e;if(!o)throw new Error("No selected freebet");const{tag:l,allSameTag:c}=Wv(n),f=mp(n).every(m=>m.childrenEvents);return[{Source:Q.isMobile?Es.Mobile:Es.Desktop,Type:f&&o.betType===me.Single?me.InternalBetBuilder:o.betType,OddType:t,AcceptTypeId:s,EachWay:o.eachWay,Events:mp(n,!0),ClientBonusId:o.id,Amount:o.value,IsBonusMoney:!1,...r&&{BetBookId:r},...i[0]===me.System&&{SystemMinCount:a+2},...c&&{Tags:l}}]},TH=e=>{const t=[],{events:n,metadata:{selectedSysOption:s,fullCoverBetTypesEnabled:r,bankerEvents:a},selectedBetTypes:o,eventsDataMap:i}=e,l=n.map(c=>({SelectionId:c.id,Price:ou(c.price,c.priceType),...a.has(c.id)?{IsBanker:!0}:{},...c.childrenEvents.length&&{childrenEvents:c.childrenEvents.map(u=>({SelectionId:u.id,BetBuilderMatchId:u.gameId,SelectionName:u.type,BetBuilderPrice:c.price,Price:ou(u.price,u.priceType),...a.has(c.id)?{IsBanker:!0}:{}}))}}));return o.forEach(c=>{let u=bm(i,c,[]);!r&&c===me.System&&(u=u.slice(s,s+1)),u.forEach((f,m)=>{const h=We(Number(f.stake)*f.stakeMultiplier),g=(c===me.Single?[l[m]]:l).flatMap(v=>{var _;return(_=v.childrenEvents)!=null&&_.length?v.childrenEvents:[v]}),b={BetType:g.every(v=>v.BetBuilderMatchId&&v.BetBuilderMatchId===g[0].BetBuilderMatchId)?me.InternalBetBuilder:c,Selections:g,Amount:h};c===me.System&&(b.SystemMinCount=(r?m:s)+2),t.push(b)})}),t},mde=({events:e,stake:t,oddsFormat:n,priceChangeMode:s,predefinedMultipleId:r,isSuperbet:a,betType:o=me.Multiple,tag:i})=>({AcceptTypeId:s,Amount:t,EachWay:!1,Events:mp(e,!0),Type:o,OddType:n,Source:Q.isMobile?Es.Mobile:Es.Desktop,PredefinedMultipleId:r,IsSuperBet:a,Tags:i}),Yv=e=>e.StatusCode==="0",wH=e=>e.result===0,ak=e=>{ve.open({title:"Info",type:"error",content:"not_allowed_tax_session",buttons:[{label:"Logout",callBack:()=>e()}]})},ok=({eventsDataMap:e,betType:t,selectedSysOption:n,fullCoverBetTypesEnabled:s})=>{var r;return!s&&t===me.System?(r=e.get(t))==null?void 0:r.slice(n,n+1):e.get(t)},IH=({selectedBetTypes:e,eventsDataMap:t,selectedSysOption:n,fullCoverBetTypesEnabled:s})=>e.reduce((r,a)=>{const o=ok({eventsDataMap:t,betType:a,fullCoverBetTypesEnabled:s,selectedSysOption:n});return o?r+o.reduce((i,l)=>i+Number(l.stake)*l.stakeMultiplier,0):r},0),AH=(e,t)=>(e-1)/t+1,ik=e=>e!==null&&e!==!1&&Number(NO(e,2))===1,gb=e=>RO[Number(e)],PH=e=>e.id>0,hde=(e,t)=>J$.includes(e)&&t==="set5",gde=e=>(e==null?void 0:e.filter(lt("period_sequence",8)))??[],_de=il(e=>{var t;return((t=e.match(e5))==null?void 0:t[1])||e}),vde=({sportAlias:e,gameId:t,competitionId:n,isLive:s,regionAlias:r,esportsAvailable:a,competitionName:o,gameName:i})=>Z$.has(e)?"/virtual-sports/VIV":a&&eG.has(e)?`/esports/${s?rl.Live:rl.Upcoming}/${e}/${t}`:`/sports/${s?Ye.Live:Ye.Prematch}/event-view/${e}/${r}/${n}${o?`/${Ar(o)}`:"/cid"}/${t}${i?`/${Ar(i)}`:""}`,Ede=(e="")=>e.replace(t5,"").toLowerCase(),lg=e=>ee.get({source:"betting",what:{sport:["alias"]},where:{sport:{id:e}}}).then(({data:{sport:t}})=>t[e].alias),yde=e=>ee.get({source:"betting",what:{sport:["name","alias"]},where:{sport:{alias:{"@in":e}}}}).then(({data:{sport:t}})=>Object.values(t).reduce((n,{name:s,alias:r})=>(n[r]=s,n),{})),xH=e=>ee.get({source:"betting",what:{region:["alias"]},where:{region:{id:e}}}).then(({data:{region:t}})=>t[e].alias),OH=e=>ee.get({source:"betting",what:{competition:["_parent_id","name"]},where:{competition:{id:e}}}).then(({data:{competition:t}})=>t[e]),_b=e=>ee.get({source:"betting",what:{game:["sport_alias","region_alias","_parent_id","is_live","team1_name","team2_name","#competition:name"]},where:{game:{id:e}}}).then(({data:{game:t}})=>t[e]).then(({is_live:t,_parent_id:n,region_alias:s,sport_alias:r,team1_name:a,team2_name:o,competition:{name:i}})=>{if(r&&s&&n&&t!==void 0)return`/sports/${t?Ye.Live:Ye.Prematch}/${_o.EventView}/${r}/${s}/${n}/${Ar(i)}/${e}/${Ar(`${a}+${o?" "+o:""}`)}`;throw new Error}),bde=(e,t)=>e===1&&t!==Am.Outright,Sde=({betCloudFilter:e,tournamentFilter:{sportIds:t,competitionIds:n}})=>({sport:{...t.length===0?{type:{"@nin":[Rv.Virtual,Rv.Racing]}}:{id:t.length===1?t[0]:{"@in":t}}},...(e||n.length>0)&&{competition:{...e&&{cloud_available:!0},...n.length>0&&{id:n.length===1?n[0]:{"@in":n}}}}}),Cde=e=>({...e?{show_type:{"@in":[Am.Outright]}}:{}}),kH=e=>e!==Nv.All?{"@now":{"@gte":0,"@lt":e===Nv.Today?Math.round(at().endOf("day").unix()-at().unix()):e*60}}:null,Tde=e=>{const t=kH(e);return t?{start_ts:t}:{}},wde=()=>N.sportsbook.showVisibleInPrematchGames?{"@or":[{visible_in_prematch:1},fp]}:fp,Ide=e=>({...e?yH:{}}),Ade=(e,t)=>{var n;return{...e&&{region:{alias:t||((n=N.sportsbook.regionFilter)==null?void 0:n.region)||ln.countryName}}}},Pde=e=>N.sportsbook.showVisibleInPrematchGames?{"@and":[{"@or":[{visible_in_prematch:1},fp]},{"@or":[{team1_id:{"@in":[...e]}},{team2_id:{"@in":[...e]}}]}]}:{...fp,"@or":[{team1_id:{"@in":[...e]}},{team2_id:{"@in":[...e]}}]},xde=({marketType:e,nameTemplate:t})=>`${e}_${t}`,NH=async({events:e,betType:t,sysCount:n})=>{const s={events:e,...t!==void 0&&{type:t},...n!==void 0&&{sys_min_count:n}},{details:r}=await ee.get(s,"get_max_bet");return r.amount},RH=e=>NH(e);var lk={exports:{}};(function(e,t){(function(n,s){e.exports=s()})(ll,function(){return function(n,s){var r=s.prototype.parse;s.prototype.parse=function(i){if(typeof i.date=="string"){var l=this.$locale();i.date=l&&l.preparse?l.preparse(i.date):i.date}return r.bind(this)(i)};var a=s.prototype.format;s.prototype.format=function(){for(var i=arguments.length,l=new Array(i),c=0;c(e?[...rs.dateWeekdayDay].reverse():rs.dateWeekdayDay).join(" "),dateShortWeekday:({languageRtl:e,delimiter:t=bd})=>{const[n,s,r]=rs.dateShortWeekday;return e?`${r} ${s}${t}${n}`:`${n}${t}${s} ${r}`},dateShort:({languageRtl:e,delimiter:t=bd})=>(e?[...rs.dateShort].reverse():rs.dateShort).join(t),dateShortYearShort:({languageRtl:e,delimiter:t=bd})=>(e?[...rs.dateShortYearShort].reverse():rs.dateShortYearShort).join(t),dateShortNoYear:({languageRtl:e,delimiter:t=bd})=>(e?[...rs.dateShortNoYear].reverse():rs.dateShortNoYear).join(t),dateWithMonthName:({languageRtl:e})=>(e?[...rs.dateWithMonthName].reverse():rs.dateWithMonthName).join(" "),dateFull:({languageRtl:e})=>(e?[...rs.dateFull].reverse():rs.dateFull).join(" "),timeSimple:({timeFormat:e=oT})=>e==="24h"?"HH:mm":"hh:mm A",timeWithSeconds:({timeFormat:e=oT})=>e==="24h"?"HH:mm:ss":"hh:mm:ss A",datetimeShort:e=>e.languageRtl?`${jt.timeSimple(e)}, ${jt.dateShort(e)}`:`${jt.dateShort(e)}, ${jt.timeSimple(e)}`,datetimeShortWithSeconds:e=>e.languageRtl?`${jt.timeWithSeconds(e)}, ${jt.dateShort(e)}`:`${jt.dateShort(e)}, ${jt.timeWithSeconds(e)}`,datetimeShortYearShort:e=>e.languageRtl?`${jt.timeSimple(e)}, ${jt.dateShortYearShort(e)}`:`${jt.dateShortYearShort(e)}, ${jt.timeSimple(e)}`,datetimeShortNoYear:e=>e.languageRtl?`${jt.timeSimple(e)}, ${jt.dateShortNoYear(e)}`:`${jt.dateShortNoYear(e)}, ${jt.timeSimple(e)}`,datetimeShortNoYearWithMonthName:e=>e.languageRtl?`${jt.timeSimple(e)}, ${jt.dateWithMonthName(e)}`:`${jt.dateWithMonthName(e)}, ${jt.timeSimple(e)}`,day:()=>"dddd"},hp=({timestamp:e,language:t,preset:n,config:s,useUtc:r=!1})=>(r?at.unix(e).utc():at.unix(e)).locale(iu[t]).format(jt[n](s)),ck=e=>{const t=iu[e];return e==="eng"?(at.locale("en"),Promise.resolve()):DH(`dayjs/locale/${t}`).then(()=>{at.extend(MH),at.locale(t)}).catch(n=>{console.error(`Failed to load Day.js locale for ${t}:`,n),Ut()})},Ode=({value:e,language:t,languageRtl:n,timeFormat:s})=>at(e).locale(iu[t]).format(jt.dateShort({languageRtl:n,timeFormat:s}));function DH(e){switch(e){case"dayjs/locale/af":case"dayjs/locale/af.js":return B(()=>import("./af-CePWFrez.js").then(t=>t.a),__vite__mapDeps([0,1]));case"dayjs/locale/am":case"dayjs/locale/am.js":return B(()=>import("./am-D9LGBiHh.js").then(t=>t.a),__vite__mapDeps([2,1]));case"dayjs/locale/ar-dz":case"dayjs/locale/ar-dz.js":return B(()=>import("./ar-dz-QLsvRVb8.js").then(t=>t.a),__vite__mapDeps([3,1]));case"dayjs/locale/ar-iq":case"dayjs/locale/ar-iq.js":return B(()=>import("./ar-iq-BodbcouV.js").then(t=>t.a),__vite__mapDeps([4,1]));case"dayjs/locale/ar-kw":case"dayjs/locale/ar-kw.js":return B(()=>import("./ar-kw-NlGtcAlD.js").then(t=>t.a),__vite__mapDeps([5,1]));case"dayjs/locale/ar-ly":case"dayjs/locale/ar-ly.js":return B(()=>import("./ar-ly-C65O4fTc.js").then(t=>t.a),__vite__mapDeps([6,1]));case"dayjs/locale/ar-ma":case"dayjs/locale/ar-ma.js":return B(()=>import("./ar-ma-ZDOPrd5B.js").then(t=>t.a),__vite__mapDeps([7,1]));case"dayjs/locale/ar-sa":case"dayjs/locale/ar-sa.js":return B(()=>import("./ar-sa-CFVQi1CS.js").then(t=>t.a),__vite__mapDeps([8,1]));case"dayjs/locale/ar-tn":case"dayjs/locale/ar-tn.js":return B(()=>import("./ar-tn-Dw81QPFi.js").then(t=>t.a),__vite__mapDeps([9,1]));case"dayjs/locale/ar":case"dayjs/locale/ar.js":return B(()=>import("./ar-wo0A7Tll.js").then(t=>t.a),__vite__mapDeps([10,1]));case"dayjs/locale/az":case"dayjs/locale/az.js":return B(()=>import("./az-BQ_u1AeS.js").then(t=>t.a),__vite__mapDeps([11,1]));case"dayjs/locale/be":case"dayjs/locale/be.js":return B(()=>import("./be-DbXv3_5y.js").then(t=>t.b),__vite__mapDeps([12,1]));case"dayjs/locale/bg":case"dayjs/locale/bg.js":return B(()=>import("./bg-ClhrABJY.js").then(t=>t.b),__vite__mapDeps([13,1]));case"dayjs/locale/bi":case"dayjs/locale/bi.js":return B(()=>import("./bi-BGazodCW.js").then(t=>t.b),__vite__mapDeps([14,1]));case"dayjs/locale/bm":case"dayjs/locale/bm.js":return B(()=>import("./bm-DrsQdPxY.js").then(t=>t.b),__vite__mapDeps([15,1]));case"dayjs/locale/bn-bd":case"dayjs/locale/bn-bd.js":return B(()=>import("./bn-bd-DusPo4Qr.js").then(t=>t.b),__vite__mapDeps([16,1]));case"dayjs/locale/bn":case"dayjs/locale/bn.js":return B(()=>import("./bn-D_khkeJK.js").then(t=>t.b),__vite__mapDeps([17,1]));case"dayjs/locale/bo":case"dayjs/locale/bo.js":return B(()=>import("./bo-BHA5Gs-9.js").then(t=>t.b),__vite__mapDeps([18,1]));case"dayjs/locale/br":case"dayjs/locale/br.js":return B(()=>import("./br-CCFnsT2Z.js").then(t=>t.b),__vite__mapDeps([19,1]));case"dayjs/locale/bs":case"dayjs/locale/bs.js":return B(()=>import("./bs-BiQJ2ge8.js").then(t=>t.b),__vite__mapDeps([20,1]));case"dayjs/locale/ca":case"dayjs/locale/ca.js":return B(()=>import("./ca-Cn8IhH5t.js").then(t=>t.c),__vite__mapDeps([21,1]));case"dayjs/locale/cs":case"dayjs/locale/cs.js":return B(()=>import("./cs-BN-iuCxf.js").then(t=>t.c),__vite__mapDeps([22,1]));case"dayjs/locale/cv":case"dayjs/locale/cv.js":return B(()=>import("./cv-CSHftx9Y.js").then(t=>t.c),__vite__mapDeps([23,1]));case"dayjs/locale/cy":case"dayjs/locale/cy.js":return B(()=>import("./cy-CmVhQIsd.js").then(t=>t.c),__vite__mapDeps([24,1]));case"dayjs/locale/da":case"dayjs/locale/da.js":return B(()=>import("./da-CVfcyywJ.js").then(t=>t.d),__vite__mapDeps([25,1]));case"dayjs/locale/de-at":case"dayjs/locale/de-at.js":return B(()=>import("./de-at-CNgpe8td.js").then(t=>t.d),__vite__mapDeps([26,1]));case"dayjs/locale/de-ch":case"dayjs/locale/de-ch.js":return B(()=>import("./de-ch-CF-GHz1T.js").then(t=>t.d),__vite__mapDeps([27,1]));case"dayjs/locale/de":case"dayjs/locale/de.js":return B(()=>import("./de-a5A1ZcN5.js").then(t=>t.d),__vite__mapDeps([28,1]));case"dayjs/locale/dv":case"dayjs/locale/dv.js":return B(()=>import("./dv-CU9c9dsz.js").then(t=>t.d),__vite__mapDeps([29,1]));case"dayjs/locale/el":case"dayjs/locale/el.js":return B(()=>import("./el-DiRhSOnO.js").then(t=>t.e),__vite__mapDeps([30,1]));case"dayjs/locale/en-au":case"dayjs/locale/en-au.js":return B(()=>import("./en-au-BrxnIMIW.js").then(t=>t.e),__vite__mapDeps([31,1]));case"dayjs/locale/en-ca":case"dayjs/locale/en-ca.js":return B(()=>import("./en-ca-BNkCkRHl.js").then(t=>t.e),__vite__mapDeps([32,1]));case"dayjs/locale/en-gb":case"dayjs/locale/en-gb.js":return B(()=>import("./en-gb-DLyyk5pj.js").then(t=>t.e),__vite__mapDeps([33,1]));case"dayjs/locale/en-ie":case"dayjs/locale/en-ie.js":return B(()=>import("./en-ie-rbFzVnOY.js").then(t=>t.e),__vite__mapDeps([34,1]));case"dayjs/locale/en-il":case"dayjs/locale/en-il.js":return B(()=>import("./en-il-DGI52ghJ.js").then(t=>t.e),__vite__mapDeps([35,1]));case"dayjs/locale/en-in":case"dayjs/locale/en-in.js":return B(()=>import("./en-in-CmxHanuM.js").then(t=>t.e),__vite__mapDeps([36,1]));case"dayjs/locale/en-nz":case"dayjs/locale/en-nz.js":return B(()=>import("./en-nz-BTEKiEr3.js").then(t=>t.e),__vite__mapDeps([37,1]));case"dayjs/locale/en-sg":case"dayjs/locale/en-sg.js":return B(()=>import("./en-sg-D_ec18CG.js").then(t=>t.e),__vite__mapDeps([38,1]));case"dayjs/locale/en-tt":case"dayjs/locale/en-tt.js":return B(()=>import("./en-tt-D3n0XLxp.js").then(t=>t.e),__vite__mapDeps([39,1]));case"dayjs/locale/en":case"dayjs/locale/en.js":return B(()=>import("./en-C-jMgwIo.js").then(t=>t.e),__vite__mapDeps([40,1]));case"dayjs/locale/eo":case"dayjs/locale/eo.js":return B(()=>import("./eo-BCyqMSv2.js").then(t=>t.e),__vite__mapDeps([41,1]));case"dayjs/locale/es-do":case"dayjs/locale/es-do.js":return B(()=>import("./es-do-To_Akso1.js").then(t=>t.e),__vite__mapDeps([42,1]));case"dayjs/locale/es-mx":case"dayjs/locale/es-mx.js":return B(()=>import("./es-mx-B1o6tGs5.js").then(t=>t.e),__vite__mapDeps([43,1]));case"dayjs/locale/es-pr":case"dayjs/locale/es-pr.js":return B(()=>import("./es-pr-HosuFaWJ.js").then(t=>t.e),__vite__mapDeps([44,1]));case"dayjs/locale/es-us":case"dayjs/locale/es-us.js":return B(()=>import("./es-us-_plCqqeI.js").then(t=>t.e),__vite__mapDeps([45,1]));case"dayjs/locale/es":case"dayjs/locale/es.js":return B(()=>import("./es-CwUDVEMP.js").then(t=>t.e),__vite__mapDeps([46,1]));case"dayjs/locale/et":case"dayjs/locale/et.js":return B(()=>import("./et-Ch6ZxAno.js").then(t=>t.e),__vite__mapDeps([47,1]));case"dayjs/locale/eu":case"dayjs/locale/eu.js":return B(()=>import("./eu-8-6aq-KJ.js").then(t=>t.e),__vite__mapDeps([48,1]));case"dayjs/locale/fa":case"dayjs/locale/fa.js":return B(()=>import("./fa-bOHWJQwn.js").then(t=>t.f),__vite__mapDeps([49,1]));case"dayjs/locale/fi":case"dayjs/locale/fi.js":return B(()=>import("./fi-DjXavCfO.js").then(t=>t.f),__vite__mapDeps([50,1]));case"dayjs/locale/fo":case"dayjs/locale/fo.js":return B(()=>import("./fo-DZFqSqF9.js").then(t=>t.f),__vite__mapDeps([51,1]));case"dayjs/locale/fr-ca":case"dayjs/locale/fr-ca.js":return B(()=>import("./fr-ca-CPTuV8jy.js").then(t=>t.f),__vite__mapDeps([52,1]));case"dayjs/locale/fr-ch":case"dayjs/locale/fr-ch.js":return B(()=>import("./fr-ch-D8IWEOd7.js").then(t=>t.f),__vite__mapDeps([53,1]));case"dayjs/locale/fr":case"dayjs/locale/fr.js":return B(()=>import("./fr-FMFj8VP-.js").then(t=>t.f),__vite__mapDeps([54,1]));case"dayjs/locale/fy":case"dayjs/locale/fy.js":return B(()=>import("./fy-BwRrcrd9.js").then(t=>t.f),__vite__mapDeps([55,1]));case"dayjs/locale/ga":case"dayjs/locale/ga.js":return B(()=>import("./ga-BUWeFiso.js").then(t=>t.g),__vite__mapDeps([56,1]));case"dayjs/locale/gd":case"dayjs/locale/gd.js":return B(()=>import("./gd-r1lNUE9R.js").then(t=>t.g),__vite__mapDeps([57,1]));case"dayjs/locale/gl":case"dayjs/locale/gl.js":return B(()=>import("./gl-mc_Asvqz.js").then(t=>t.g),__vite__mapDeps([58,1]));case"dayjs/locale/gom-latn":case"dayjs/locale/gom-latn.js":return B(()=>import("./gom-latn-CSZgBFlg.js").then(t=>t.g),__vite__mapDeps([59,1]));case"dayjs/locale/gu":case"dayjs/locale/gu.js":return B(()=>import("./gu-_tY-Y3_q.js").then(t=>t.g),__vite__mapDeps([60,1]));case"dayjs/locale/he":case"dayjs/locale/he.js":return B(()=>import("./he-CQfC3rQi.js").then(t=>t.h),__vite__mapDeps([61,1]));case"dayjs/locale/hi":case"dayjs/locale/hi.js":return B(()=>import("./hi-9ptCg0-Y.js").then(t=>t.h),__vite__mapDeps([62,1]));case"dayjs/locale/hr":case"dayjs/locale/hr.js":return B(()=>import("./hr-Dl_iBO6A.js").then(t=>t.h),__vite__mapDeps([63,1]));case"dayjs/locale/ht":case"dayjs/locale/ht.js":return B(()=>import("./ht-Cy8juasf.js").then(t=>t.h),__vite__mapDeps([64,1]));case"dayjs/locale/hu":case"dayjs/locale/hu.js":return B(()=>import("./hu-DklgNVdn.js").then(t=>t.h),__vite__mapDeps([65,1]));case"dayjs/locale/hy-am":case"dayjs/locale/hy-am.js":return B(()=>import("./hy-am-B9VzA5c1.js").then(t=>t.h),__vite__mapDeps([66,1]));case"dayjs/locale/id":case"dayjs/locale/id.js":return B(()=>import("./id-BYgjaaDU.js").then(t=>t.i),__vite__mapDeps([67,1]));case"dayjs/locale/index.d":case"dayjs/locale/index.d.ts":return B(()=>Promise.resolve().then(()=>une),void 0);case"dayjs/locale/is":case"dayjs/locale/is.js":return B(()=>import("./is-C5C8kKoW.js").then(t=>t.i),__vite__mapDeps([68,1]));case"dayjs/locale/it-ch":case"dayjs/locale/it-ch.js":return B(()=>import("./it-ch-BwuX81Y8.js").then(t=>t.i),__vite__mapDeps([69,1]));case"dayjs/locale/it":case"dayjs/locale/it.js":return B(()=>import("./it-D_-K935K.js").then(t=>t.i),__vite__mapDeps([70,1]));case"dayjs/locale/ja":case"dayjs/locale/ja.js":return B(()=>import("./ja-Br_PmRmC.js").then(t=>t.j),__vite__mapDeps([71,1]));case"dayjs/locale/jv":case"dayjs/locale/jv.js":return B(()=>import("./jv-C7woMzhc.js").then(t=>t.j),__vite__mapDeps([72,1]));case"dayjs/locale/ka":case"dayjs/locale/ka.js":return B(()=>import("./ka-B3gq5u70.js").then(t=>t.k),__vite__mapDeps([73,1]));case"dayjs/locale/kk":case"dayjs/locale/kk.js":return B(()=>import("./kk-B4fIFgJB.js").then(t=>t.k),__vite__mapDeps([74,1]));case"dayjs/locale/km":case"dayjs/locale/km.js":return B(()=>import("./km-Bh60Cb1J.js").then(t=>t.k),__vite__mapDeps([75,1]));case"dayjs/locale/kn":case"dayjs/locale/kn.js":return B(()=>import("./kn-CDG78eT5.js").then(t=>t.k),__vite__mapDeps([76,1]));case"dayjs/locale/ko":case"dayjs/locale/ko.js":return B(()=>import("./ko-yvWuVOrp.js").then(t=>t.k),__vite__mapDeps([77,1]));case"dayjs/locale/ku":case"dayjs/locale/ku.js":return B(()=>import("./ku-BRPPiwhD.js").then(t=>t.k),__vite__mapDeps([78,1]));case"dayjs/locale/ky":case"dayjs/locale/ky.js":return B(()=>import("./ky-BGnf1SpH.js").then(t=>t.k),__vite__mapDeps([79,1]));case"dayjs/locale/lb":case"dayjs/locale/lb.js":return B(()=>import("./lb-4YMGUNZ7.js").then(t=>t.l),__vite__mapDeps([80,1]));case"dayjs/locale/lo":case"dayjs/locale/lo.js":return B(()=>import("./lo-C46OA-y8.js").then(t=>t.l),__vite__mapDeps([81,1]));case"dayjs/locale/lt":case"dayjs/locale/lt.js":return B(()=>import("./lt-DZqRr2q4.js").then(t=>t.l),__vite__mapDeps([82,1]));case"dayjs/locale/lv":case"dayjs/locale/lv.js":return B(()=>import("./lv-BSyqf_AU.js").then(t=>t.l),__vite__mapDeps([83,1]));case"dayjs/locale/me":case"dayjs/locale/me.js":return B(()=>import("./me-CwPX6QaP.js").then(t=>t.m),__vite__mapDeps([84,1]));case"dayjs/locale/mi":case"dayjs/locale/mi.js":return B(()=>import("./mi-D2qJXOes.js").then(t=>t.m),__vite__mapDeps([85,1]));case"dayjs/locale/mk":case"dayjs/locale/mk.js":return B(()=>import("./mk-CnQ7VPI-.js").then(t=>t.m),__vite__mapDeps([86,1]));case"dayjs/locale/ml":case"dayjs/locale/ml.js":return B(()=>import("./ml-BquOt_eG.js").then(t=>t.m),__vite__mapDeps([87,1]));case"dayjs/locale/mn":case"dayjs/locale/mn.js":return B(()=>import("./mn-BUTWNYXh.js").then(t=>t.m),__vite__mapDeps([88,1]));case"dayjs/locale/mr":case"dayjs/locale/mr.js":return B(()=>import("./mr-CK3csRUq.js").then(t=>t.m),__vite__mapDeps([89,1]));case"dayjs/locale/ms-my":case"dayjs/locale/ms-my.js":return B(()=>import("./ms-my-CQUUTuFu.js").then(t=>t.m),__vite__mapDeps([90,1]));case"dayjs/locale/ms":case"dayjs/locale/ms.js":return B(()=>import("./ms-C1WoJWFE.js").then(t=>t.m),__vite__mapDeps([91,1]));case"dayjs/locale/mt":case"dayjs/locale/mt.js":return B(()=>import("./mt-B37dUgE2.js").then(t=>t.m),__vite__mapDeps([92,1]));case"dayjs/locale/my":case"dayjs/locale/my.js":return B(()=>import("./my-B9id2XaE.js").then(t=>t.m),__vite__mapDeps([93,1]));case"dayjs/locale/nb":case"dayjs/locale/nb.js":return B(()=>import("./nb-CE0VnLHl.js").then(t=>t.n),__vite__mapDeps([94,1]));case"dayjs/locale/ne":case"dayjs/locale/ne.js":return B(()=>import("./ne-C4KoVyRM.js").then(t=>t.n),__vite__mapDeps([95,1]));case"dayjs/locale/nl-be":case"dayjs/locale/nl-be.js":return B(()=>import("./nl-be-Ch_9K_TR.js").then(t=>t.n),__vite__mapDeps([96,1]));case"dayjs/locale/nl":case"dayjs/locale/nl.js":return B(()=>import("./nl-9KXZcka0.js").then(t=>t.n),__vite__mapDeps([97,1]));case"dayjs/locale/nn":case"dayjs/locale/nn.js":return B(()=>import("./nn-Bl1IGngH.js").then(t=>t.n),__vite__mapDeps([98,1]));case"dayjs/locale/oc-lnc":case"dayjs/locale/oc-lnc.js":return B(()=>import("./oc-lnc-CAh9-_eQ.js").then(t=>t.o),__vite__mapDeps([99,1]));case"dayjs/locale/pa-in":case"dayjs/locale/pa-in.js":return B(()=>import("./pa-in-BgO7uC3E.js").then(t=>t.p),__vite__mapDeps([100,1]));case"dayjs/locale/pl":case"dayjs/locale/pl.js":return B(()=>import("./pl-HoNSU12s.js").then(t=>t.p),__vite__mapDeps([101,1]));case"dayjs/locale/pt-br":case"dayjs/locale/pt-br.js":return B(()=>import("./pt-br-DN8S5PHw.js").then(t=>t.p),__vite__mapDeps([102,1]));case"dayjs/locale/pt":case"dayjs/locale/pt.js":return B(()=>import("./pt-CW2nh-wC.js").then(t=>t.p),__vite__mapDeps([103,1]));case"dayjs/locale/rn":case"dayjs/locale/rn.js":return B(()=>import("./rn-BMvWy71v.js").then(t=>t.r),__vite__mapDeps([104,1]));case"dayjs/locale/ro":case"dayjs/locale/ro.js":return B(()=>import("./ro--5ieKFJb.js").then(t=>t.r),__vite__mapDeps([105,1]));case"dayjs/locale/ru":case"dayjs/locale/ru.js":return B(()=>import("./ru-Dx6-Baff.js").then(t=>t.r),__vite__mapDeps([106,1]));case"dayjs/locale/rw":case"dayjs/locale/rw.js":return B(()=>import("./rw-B8NigV3M.js").then(t=>t.r),__vite__mapDeps([107,1]));case"dayjs/locale/sd":case"dayjs/locale/sd.js":return B(()=>import("./sd-CsJega46.js").then(t=>t.s),__vite__mapDeps([108,1]));case"dayjs/locale/se":case"dayjs/locale/se.js":return B(()=>import("./se-CXlO30ic.js").then(t=>t.s),__vite__mapDeps([109,1]));case"dayjs/locale/si":case"dayjs/locale/si.js":return B(()=>import("./si-R9DyTOjH.js").then(t=>t.s),__vite__mapDeps([110,1]));case"dayjs/locale/sk":case"dayjs/locale/sk.js":return B(()=>import("./sk-Dzge1jGo.js").then(t=>t.s),__vite__mapDeps([111,1]));case"dayjs/locale/sl":case"dayjs/locale/sl.js":return B(()=>import("./sl-CE4ZCKNe.js").then(t=>t.s),__vite__mapDeps([112,1]));case"dayjs/locale/sq":case"dayjs/locale/sq.js":return B(()=>import("./sq-CF48IRDU.js").then(t=>t.s),__vite__mapDeps([113,1]));case"dayjs/locale/sr-cyrl":case"dayjs/locale/sr-cyrl.js":return B(()=>import("./sr-cyrl-DfRwxQcE.js").then(t=>t.s),__vite__mapDeps([114,1]));case"dayjs/locale/sr":case"dayjs/locale/sr.js":return B(()=>import("./sr-BLP1z1S3.js").then(t=>t.s),__vite__mapDeps([115,1]));case"dayjs/locale/ss":case"dayjs/locale/ss.js":return B(()=>import("./ss-DkmM0cmN.js").then(t=>t.s),__vite__mapDeps([116,1]));case"dayjs/locale/sv-fi":case"dayjs/locale/sv-fi.js":return B(()=>import("./sv-fi-Bewh0Ht_.js").then(t=>t.s),__vite__mapDeps([117,1]));case"dayjs/locale/sv":case"dayjs/locale/sv.js":return B(()=>import("./sv-8QvlIjw_.js").then(t=>t.s),__vite__mapDeps([118,1]));case"dayjs/locale/sw":case"dayjs/locale/sw.js":return B(()=>import("./sw-D3hJvX5W.js").then(t=>t.s),__vite__mapDeps([119,1]));case"dayjs/locale/ta":case"dayjs/locale/ta.js":return B(()=>import("./ta-D87pm6Uu.js").then(t=>t.t),__vite__mapDeps([120,1]));case"dayjs/locale/te":case"dayjs/locale/te.js":return B(()=>import("./te-B6e5nX5M.js").then(t=>t.t),__vite__mapDeps([121,1]));case"dayjs/locale/tet":case"dayjs/locale/tet.js":return B(()=>import("./tet-C3qf3NPx.js").then(t=>t.t),__vite__mapDeps([122,1]));case"dayjs/locale/tg":case"dayjs/locale/tg.js":return B(()=>import("./tg-j3jopmfd.js").then(t=>t.t),__vite__mapDeps([123,1]));case"dayjs/locale/th":case"dayjs/locale/th.js":return B(()=>import("./th-ReXi-Xkc.js").then(t=>t.t),__vite__mapDeps([124,1]));case"dayjs/locale/tk":case"dayjs/locale/tk.js":return B(()=>import("./tk-CAxFEHbX.js").then(t=>t.t),__vite__mapDeps([125,1]));case"dayjs/locale/tl-ph":case"dayjs/locale/tl-ph.js":return B(()=>import("./tl-ph-C6qck62K.js").then(t=>t.t),__vite__mapDeps([126,1]));case"dayjs/locale/tlh":case"dayjs/locale/tlh.js":return B(()=>import("./tlh-BYhx56z7.js").then(t=>t.t),__vite__mapDeps([127,1]));case"dayjs/locale/tr":case"dayjs/locale/tr.js":return B(()=>import("./tr-DhCrmx6J.js").then(t=>t.t),__vite__mapDeps([128,1]));case"dayjs/locale/types.d":case"dayjs/locale/types.d.ts":return B(()=>Promise.resolve().then(()=>dne),void 0);case"dayjs/locale/tzl":case"dayjs/locale/tzl.js":return B(()=>import("./tzl-BEnGAeUi.js").then(t=>t.t),__vite__mapDeps([129,1]));case"dayjs/locale/tzm-latn":case"dayjs/locale/tzm-latn.js":return B(()=>import("./tzm-latn-CGF5h1Ff.js").then(t=>t.t),__vite__mapDeps([130,1]));case"dayjs/locale/tzm":case"dayjs/locale/tzm.js":return B(()=>import("./tzm-D3cp3yFH.js").then(t=>t.t),__vite__mapDeps([131,1]));case"dayjs/locale/ug-cn":case"dayjs/locale/ug-cn.js":return B(()=>import("./ug-cn-BsoirChE.js").then(t=>t.u),__vite__mapDeps([132,1]));case"dayjs/locale/uk":case"dayjs/locale/uk.js":return B(()=>import("./uk-CEd3v6-i.js").then(t=>t.u),__vite__mapDeps([133,1]));case"dayjs/locale/ur":case"dayjs/locale/ur.js":return B(()=>import("./ur-C5OYIWjI.js").then(t=>t.u),__vite__mapDeps([134,1]));case"dayjs/locale/uz-latn":case"dayjs/locale/uz-latn.js":return B(()=>import("./uz-latn-COmuTwdC.js").then(t=>t.u),__vite__mapDeps([135,1]));case"dayjs/locale/uz":case"dayjs/locale/uz.js":return B(()=>import("./uz-i3_KYUk9.js").then(t=>t.u),__vite__mapDeps([136,1]));case"dayjs/locale/vi":case"dayjs/locale/vi.js":return B(()=>import("./vi-CHASjCoC.js").then(t=>t.v),__vite__mapDeps([137,1]));case"dayjs/locale/x-pseudo":case"dayjs/locale/x-pseudo.js":return B(()=>import("./x-pseudo-CZ90rhVH.js").then(t=>t.x),__vite__mapDeps([138,1]));case"dayjs/locale/yo":case"dayjs/locale/yo.js":return B(()=>import("./yo-Cpo0eUGi.js").then(t=>t.y),__vite__mapDeps([139,1]));case"dayjs/locale/zh-cn":case"dayjs/locale/zh-cn.js":return B(()=>import("./zh-cn-Mr-Q5S8C.js").then(t=>t.z),__vite__mapDeps([140,1]));case"dayjs/locale/zh-hk":case"dayjs/locale/zh-hk.js":return B(()=>import("./zh-hk-CYpn2o6n.js").then(t=>t.z),__vite__mapDeps([141,1]));case"dayjs/locale/zh-tw":case"dayjs/locale/zh-tw.js":return B(()=>import("./zh-tw-C2LiJyOf.js").then(t=>t.z),__vite__mapDeps([142,1]));case"dayjs/locale/zh":case"dayjs/locale/zh.js":return B(()=>import("./zh-BvhASqsK.js").then(t=>t.z),__vite__mapDeps([143,1]));default:return new Promise(function(t,n){(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(n.bind(null,new Error("Unknown variable dynamic import: "+e)))})}}const kde=p.memo(function({seconds:t,preset:n,delimiter:s,className:r=""}){const{timeFormat:a,language:o,languageRtl:i}=ke(),l=p.useMemo(()=>hp({timestamp:t,preset:n,language:o,config:{languageRtl:i,timeFormat:a,delimiter:s}}),[s,i,o,n,t,a]);return d.jsx("time",{className:r,children:l})}),Nde={BetType:me.Multiple,ExactLosing:0,IgnoreLowOddSelection:!0,MaximumSelections:1/0,MinimumSelections:-1/0,MinBetOdds:1,MinBetStakes:{},MinOdds:1,SportBonusRules:[]},Rde={childrenEvents:[],point_sequence:0,sequence:0,initialBase:cn,initialPrice:cn,expressId:cn,eachWayPrice:0,hasConflicts:!1,addedInEditMode:!1,eachWayAllowed:!1,isBlocked:!1,isDeleted:!1,isPartial:!1,singleOnly:!1,priceType:$o.Fixed,visibleInPrematch:!1,spEnabled:!1},Lde={profitBoost:{options:{},selectedOption:null,loading:!1,availableBetTypes:[],active:!1,showInfo:!1,available:!1},excludedSysEvents:new Set,editBetBaseStake:0},Mde={active:!1,showInfo:!1,available:!1,options:{},selectedOption:null,loading:!1,availableBetTypes:[]},Dde="accept-superbet-motd",jde="107",jH="ai-express",BH=(e="")=>Kn(N.sportsbook.shareBooking.apiBaseUrl??"https://winners.bcapps.org/image-creator/")+e,iT="datetimeShort";var uk=(e=>(e.Header="--header",e.Brand1="--oc-1",e.Hero="--hero",e.Brand="--oc-2",e.Skin="--b",e))(uk||{});const FH=e=>{const t=e.toString(36),n=t.substring(2,7);return t+n},UH=({outcome:e,id:t})=>{const n=at.utc().unix();return{key1:n*t*(e+6),key2:FH(n*42)}},$H=e=>{const t=N.sportsbook.shareBooking.sharingLogo;return t?t.includes("http")?t:`${N.cms.iconUrl}${t}`:e.startsWith("https")?e:window.document.location.protocol+"//"+window.document.location.host+e},cf=(e,t=!0)=>t?`rgb(${document.documentElement.style.getPropertyValue(e)})`:document.documentElement.style.getPropertyValue(e),$n=e=>e!==void 0?Yt(e):!1,GH=({bookingInfo:{betslip:{events:e,selectedBetTypes:[t],metadata:{selectedSysOption:n,excludedSysEvents:s}},bookingId:r,bookingUrl:a,possibleWinDataMap:o,eventsDataMap:i,predefinedExpressData:l},language:c,partnerConfig:u,trans:f,currency:m,oddFormat:h,languageRtl:g,logoSource:E,timeFormat:b,oddsConverter:v})=>{const _=t===me.System?n:0,y=o.get(t),S=i.get(t),w=y[_],x=S[_],I=!!w.expressBonus,C=$n(We(w.stake*x.stakeMultiplier)),T=$n(w.taxOnProfitOrReturn),P=$n(w.finalPayout),A=$n(w.possibleWin);return{translations:{"Booking ID":f("Booking id"),"Date/Time":f("Date"),"Bet Type":f("Bet Type"),"ODD Type":f("Odd Type"),Single:f("Single"),Express:f("Multiple"),System:f("System"),Bonus:f("Bonus"),Chain:f("Chain"),Odds:f("Odds"),Selections:f("Selections"),Stake:f("Stake"),Tax:f("Tax"),"Winning Bonus":f("Winning Bonus"),"Enjoy the game":f("Enjoy the game"),"Final payout":f("Final payout"),"Possible win":f("Possible win"),"Accumulator bonus":f("Accumulator bonus"),"Total stake":f("Total stake"),"Net stake":f("Net stake"),"Tax on stake":f("Tax on stake"),"Look at my bet at {1}!":f("Look at my bet at {1}!",{1:N.app.siteName})},share:{bookingLink:a,bookId:r,date:hp({timestamp:Jc(),preset:iT,language:c,config:{languageRtl:g,timeFormat:b}})},configs:{...UH({id:r,outcome:0}),colors:{hero_color:cf("--hero"),brand_color_2:cf("--oc-2"),skin_color:cf("--b")},lang:c,siteName:N.app.siteName,siteId:N.app.site_id,currencyName:m,oddFormat:f(gb(h)),rtl:g,ageRestriction:gt.getInstance().minimumAllowedAge,logoUrl:$H(E),maxOdd:u.max_odd_for_multiple_bet,taxType:u.tax_type},betslip:{events:e.map((O,M)=>{const k=y[M]||{},D=$n(k.possibleWin),j=$n(k.finalPayout),V=$n(k.taxOnProfitOrReturn);return{finalPayoutFormatted:j,isLive:O.isLive,price:O.price?v(O.price):!1,stake:$n(k.stake),taxOnStake:$n(k.taxOnStake),totalStake:$n(k.totalStake),taxOnProfitOrReturn:V,showTotalStake:k.totalStake!==k.stake,possibleWin:D,finalPayout:j,taxOnProfitOrReturnIsFake:k.taxOnProfitOrReturnIsFake,betBuilderEvent:O.betBuilderEvent,childrenEvents:O.childrenEvents.map(({marketName:R,eventName:U,base:G,marketType:z})=>({marketName:R,eventName:U,base:aT(G,z)})),startTime:hp({timestamp:O.startTime,preset:iT,language:c,config:{languageRtl:g,timeFormat:b}}),team1Name:O.team1Name,team2Name:O.team2Name,eventName:O.eventName,competitionName:O.competitionName,regionName:O.regionName,base:aT(O.base,O.marketType),sportAlias:O.sportAlias,marketName:O.marketName,incInSysCalc:t===me.System&&!s.has(O.id)}}),betType:t,sysVal:n+2,...l?{predefinedExpressDataId:l==null?void 0:l.id,predefinedExpressDataName:l==null?void 0:l.name,predefinedExpressDataBonusPercentage:l==null?void 0:l.bonusPercentage,predefinedExpressDataBonusPercentageTitle:l!=null&&l.id.includes(jH)?f(f(Y2)):f("{bonusPercentage} Bonus",{bonusPercentage:l==null?void 0:l.bonusPercentage})}:null,totalOdds:w.totalOdds?v(w.totalOdds):!1,stake:C,taxOnStake:$n(w.taxOnStake),totalStake:$n(w.totalStake),taxOnProfitOrReturn:T,showTotalStake:w.totalStake!==w.stake,possibleWin:A,finalPayout:P,taxOnProfitOrReturnIsFake:w.taxOnProfitOrReturnIsFake,expressBonusPercent:I&&$n(w.expressBonusPercent),expressBonus:I&&$n(w.expressBonus)}}},dk=(e,t)=>qe.post(BH(t),JSON.stringify(GH(e)),{headers:{"Content-Type":"application/x-www-form-urlencoded"}}).then(Pt("data")).catch(()=>{throw new Error}),Bde=e=>dk(e,N.sportsbook.partialPrintView?"get-booking-print-partial-html.php":"get-booking-print-html.php").then(t=>{if(t)return t;throw new Error}),Fde=e=>dk(e,"share-booking/").then(({imageLink:t,shareTemplateLink:n})=>{if(t&&n)return{image:"data:image/png;base64, "+t,link:n};throw new Error}),VH=new Set([we.SOCCER,we.TENNIS,we.ICE_HOCKEY,we.BASEBALL,we.TABLE_TENNIS,we.SNOOKER,we.AIR_HOCKEY,we.COUNTER_STRIKE,we.DOTA_2,we.LEAGUE_OF_LEGENDS]),HH=new Set(["YellowCardCorrectScore","CornerCorrectScore"]),WH=new Set(["MatchWinningMargin","SetWinningMargin","WinningMargin","CorrectScore","Firstset/match","SetsEffectiveness","SeriesCorrectScore","SeriesCorrectScoreAfterGame3","SeriesCorrectScoreAfterGame4","CurrectScoreGroup","MatchBettingAndTeamsToScore","HalfTimeFullTime","HalfTimeFullTimeDoubleChance","ExtraTimeHomeTeamCorrectTotal","ExtraTimeAwayTeamCorrectTotal","OutcomeandBothTeamToScore","DoubleChanceAndBothTeamToScore","DoubleChanceAndBothTeamToScore","TotalAndBothTeamsToScore","FirstHalfOutcomeAndBothTeamToScore","SecondHalfOutcomeAndBothTeamToScore","1stHalf-2ndHalfBothToScore","GameCorrectScore","MatchTieBreakCorrectScore","SetTieBreakCorrectScore","1stSet-Match","1stGame/2ndGameWinner","2ndGame/3thGameWinner","3thGame/4thGameWinner","4thGame/5thGameWinner","5thGame/6thGameWinner","6thGame/7thGameWinner","7thGame/8thGameWinner","8thGame/9thGameWinner","9thGame/10thGameWinner","10thGame/11thGameWinner","11thGame/12thGameWinner","SetScore","SetCorrectScore","5thSetCorrectScore","MatchTieBreakCorrectScore","OutcomeAndTotal15","OutcomeAndTotal25","OutcomeAndTotal35","OutcomeAndTotal45","GameWinningMargin","CurrectScoreTennisKined","CurrectScoreFootballKined","MatchBettingBothTeamsToScore","CorrecctScoreInsp","HalfTimeCorrecctScore","CorrecctScoreGroup","TeamScorecast"]),zH="CORRECT SCORE",lT="left",YH="middle",cT="right";function Ude({sportAlias:e,displayKey:t,marketType:n,marketEvents:s,colCount:r,customizable:a=!0}){if(a){if((t===zH||HH.has(n))&&VH.has(e))return qH(s,r);if(WH.has(n))return KH(s,r)}return $r(s,["marketOrder","order"])}function qH(e,t){const n=[],s=[],r=[];for(const a of e){const o=a.home_value??0,i=a.away_value??0;o>i?n.push(a):o{let t=0;for(let n=0,s=e.length;n({id:QH(e)}));var vb=(e=>(e[e.Unavailable=-1]="Unavailable",e[e.Available=0]="Available",e[e.Joined=1]="Joined",e))(vb||{});const XH=18775971,uT=({game:{id:e,options:t,name:n,borrowBetId:s},gameType:r,studio:a,language:o,logoSource:i,frameId:l,requireAuthToken:c})=>{var J,$;const{casino:{gamesUrl:u,gamesUrlSuffix:f,depositIframe:m,gambcomURL:h,includeDomainInLogoSource:g=!1,sendThemeViaQueryParams:E=!1}}=N,b=Xc(),v=Ar(n);let _,y,S;const w=ze(),{[PC]:x,[xC]:I,[OC]:C}=w,P=s?{ExternalPartneId:N.app.site_id,BetId:s}:x&&I&&C?{marketId:x,eventId:I,outcome:C}:null,A=ut({...w,[vr]:void 0,[tl]:void 0,[PC]:void 0,[xC]:void 0,[OC]:void 0}),O=b.replace(`/${e}/${v}`,""),M=b.includes("/casino/game-view/"),k=bt({section:"balance",page:"deposit"}),D=bt({section:"rewards",page:"rewards",selectedRewardPage:"additionalRewards"});M?(_=window.location.origin,y=`${window.location.origin}?${k}`,S=`${window.location.origin}?${D}`):(_=O.concat(A?`?${A}`:""),y=`${b}?${k}`,S=`${b}?${D}`);const{user_id:j,auth_token:V}=vt.get()??{},R=(J=N.app.header)!=null&&J.showSessionTimer&&Q.isMobile&&V?Math.floor(($=Te.getItem(wv))==null?void 0:$[jo(V)])/1e3:null,U=j&&V&&m.enabled&&Q.isMobile;let G="";E&&Q.isMobile&&(G=kx(cf(uk.Skin,!1)).replace("#",""));const z={partnerId:N.app.site_id,gameId:e,language:In[o],openType:r,devicetypeid:Q.isMobile?x4:O4,fronttypeid:1,exitURL:encodeURIComponent(_),deposit_url:encodeURIComponent(y),BPUrl:encodeURIComponent(S),...R?{lastLoginDate:R}:null,...l?{frameId:encodeURIComponent(l)}:null,...a?{studio:a}:null,...c&&V?{token:V}:null,...i?{logoSource:encodeURIComponent(g?`${window.location.origin}${i}`:i)}:null,...G?{theming:G}:null,...U?{deposit_iframe_url:encodeURIComponent(`${m.url}?lang=${o}&user_id=${j}&auth_token=${V}&skin_domain=${encodeURIComponent(window.location.origin)}`)}:null,...r!==xs.Real&&Q.isMobile&&{open_game:encodeURIComponent(`${O}?${ut({...w,[vr]:`${e}${Tc}real`,[tl]:n})}`)},...Q.isMobile&&{isMobile:!0},...h&&{gambcomURL:h},...s&&{partnerId:XH},...P&&{externalData:encodeURIComponent(JSON.stringify(P))}},K=`${u}/${f}`,ne=ut(z)+(t||"");return`${K}?${ne}`},cr=e=>qe.get(`/api/public/v1/eng/casino/partners/${N.app.site_id}/platforms/${Q.isMobile}/games/${e}`,{params:{partner_id:N.app.site_id}}).then(({data:{status:t,data:n}})=>{if(t!==-1&&n)return n;throw new Error}),$de=e=>e?e.split(","):[],JH=({height:e,width:t},n)=>{let s;if(n!=null&&n.width&&n.height){const f=Number(n.width),m=Number(n.height);s=f/m}else{const f=(n==null?void 0:n.ratio)??AC,[m,h]=(f.includes(":")?f:AC).split(":").map(Number);s=m/h}let r,a;const o=L4,i=t-o,l=e,c=l*s/i,u=i/s/l;return c>u?(a=u*l,r=a*s):(r=c*i,a=r/s),{width:r+o,height:a}},ZH=(e,t)=>{const{width:n,height:s}=JH(g5(.85),e.game),r=e.url.concat("&popup=true"),a=window.open(r,String(e.game.id),`width=${n},height=${s},menubar=no,toolbar=no,location=no,scrollbars=no,resizable=yes'`);return(!a||a.closed||typeof a.closed>"u")&&(t?window.location.href=r:ve.open({type:"warning",title:"Warning",content:b2})),a},eW=e=>{const t=["",...e.split("/")],n=window.location.pathname.split("/"),s={};for(let r=0;rtv(e,{...n?eW(e):null,...t}),tW=e=>p.createElement("svg",{className:"bc-loader-animation",viewBox:"30 30 60 60",...e},p.createElement("circle",{className:"path",cx:60,cy:60,r:22,fill:"none",strokeWidth:4,strokeMiterlimit:10})),Mt=({size:e="medium",className:t,initialLoader:n})=>{const{assets:s}=ke();return!(s!=null&&s.loader)&&!n?null:d.jsx("div",{className:`bc-loader ${e} ${t??""}`,children:d.jsx("div",{className:"bc-loader-contain",children:n===ip||(s==null?void 0:s.loader)===ip?d.jsx(tW,{}):d.jsx("img",{src:n||s.loader,alt:""})})})},nW=Ne(()=>B(()=>import("./Svg-CS_cv-kq.js"),__vite__mapDeps([144,1]))),Gde=({size:e="medium",className:t=""})=>d.jsx("div",{className:`bc-loader ${e} ${t}`,children:d.jsx(p.Suspense,{fallback:null,children:d.jsx(nW,{})})}),dT={sport:["type","sport","region","competition","game"],esports:["type","sport","region","competition","game","layout"],virtualsports:["provider","game","type"],casino:["category","game","type"],livedealer:["page","provider","game","type"],games:["pageid","game","type"],tournaments:["tournament_id","game","type"],"sport-tournaments":["tournament_id"],promos:["slug","news"],promotions:["slug","news"],"tv-games":["provider","game","type"]},gp={sport:({type:e,sport:t,competition:n,game:s})=>{const r=`/sports/${e==="1"?Ye.Live:Ye.Prematch}/${_o.EventView}`,a=c=>_b(Number(c)).then(u=>u).catch(()=>{throw new Error}),o=(c,u)=>Promise.all([lg(Number(c)),OH(Number(u))]).then(([f,{_parent_id:m,name:h}])=>{if(f&&m)return xH(m).then(g=>g?`${r}/${f}/${g}/${n}/${Ar(h)}`:`${r}/${f}`);throw new Error}),i=c=>lg(Number(c)).then(u=>{if(u)return`${r}/${u}`;throw new Error}),l=({sport:c,competition:u,game:f})=>f?a(f).catch(()=>l({sport:c,competition:u})):c?u?o(c,u).catch(()=>l({sport:c})):i(c):Promise.reject();return l({sport:t,competition:n,game:s}).catch(()=>r)},esports:({type:e,sport:t,game:n})=>{let s="/esports";return e&&(s+=e==="live"?`/${rl.Live}`:`/${rl.Upcoming}`,t)?lg(Number(t)).then(r=>r?`${s}/${r}${n?`/${n}`:""}`:s):Promise.resolve(s)},virtualsports:()=>Promise.resolve("/virtual-sports/home"),casino:({category:e,game:t,type:n},s)=>{const r="/casino/slots";return s[0]==="game-view"?Promise.resolve(`/casino/${s.join("/").split("?")[0]}`):t?cr(t).then(({id:a})=>cr(a)).then(a=>{var o;return`${r}/${Number(e)||((o=g4[a.typeId])==null?void 0:o.id)}/${a.id}`}).then(a=>n?`${a}/${n}`:a).catch(()=>`/casino/slots/${Number(e)||""}`):Promise.resolve(`/casino/slots/${Number(e)||""}`)},games:({pageid:e,game:t,type:n})=>{const s=e!=="-1"?e:t;return s?cr(s).then(({id:r})=>cr(r).then(a=>{if(n)return`/games/${a.id}/${n}`;if(a.id in N.dynamicallyStructuredPages)return`/games/${a.id}`;throw new Error}).catch(()=>"/games/home")):Promise.resolve("/games/home")},game:(e,t)=>{var n;return cr((n=t[4])==null?void 0:n.split("?")[0]).then(s=>`/casino/game-view/${s.id}/${Ar(s.name)}`).catch(()=>"/games")},livedealer:({provider:e,game:t})=>t?cr(t).then(({id:n})=>cr(n)).then(({id:n,provider:s})=>`/live-casino/home/${as}/${e===Ei?e:s.name}/${n}`):Promise.resolve(`/live-casino/home${e?`/${e}`:""}`),poker:({showNestedFrame:e})=>e?Promise.resolve(`/games/${Sc}/real`):Sc in N.dynamicallyStructuredPages?Promise.resolve(`/page/casino/poker/${Sc}`):Promise.resolve("/games"),tournaments:({tournament_id:e,game:t,type:n})=>e?t?cr(t).then(({id:s})=>cr(s)).then(({id:s})=>`/casino/tournaments/${e}/${Bv.Games}/${s}`).then(s=>n?`${s}/${n}`:s).catch(()=>`casino/tournaments/${e}`):Promise.resolve(`/casino/tournaments/${e}`):Promise.resolve("/casino/tournaments"),"sport-tournaments":({tournament_id:e})=>Promise.resolve(`/sports/${Ye.Prematch}/${Ye.Tournaments}${e?`/${e}/${Bv.Leaderboard}`:""}`),"tv-games":({provider:e,game:t})=>{const n=`/tv-games/home/${(e==null?void 0:e.toLowerCase())===Ei.toLowerCase()?Ei:e||Ei}`;return t?cr(t).then(s=>`${n}/${s.id}`).catch(()=>"/tv-games/home/All"):Promise.resolve(n)},promos:({slug:e,news:t})=>{let n="/promotions";return e&&(n+=`/${e}`,t&&(n+=`/${t}`)),Promise.resolve(n)},promotions:({slug:e,news:t},n)=>{let s="/promotions";return e?(s+=`/${e}`,t&&(s+=`/${t}`)):n.length&&(s=`${s}/${n.join("/").split("?")[0]}`),Promise.resolve(s)},pinnacle:()=>Promise.resolve("/pinnacle"),wonderwheel:()=>Promise.resolve("/wonderwheel"),"wonder-wheel-harmony":()=>Promise.resolve("/wonder-wheel-harmony"),"wonder-wheel-world-cup":()=>Promise.resolve("/scratch-and-win"),"daily-sprint":()=>Promise.resolve("/daily-sprint"),"win-wheel":()=>Promise.resolve("/win-wheel"),"wonder-cards":()=>Promise.resolve("/wonder-cards"),pmu:()=>Promise.resolve("/pmu"),quiz:()=>Promise.resolve("/quiz"),livecalendar:()=>Promise.resolve(`/sports/${Ye.Calendar}`),results:()=>Promise.resolve(`/sports/${Ye.Results}`),statistics:()=>Promise.resolve(Na.getInstance().externalUrl),"exchange-shop":()=>Promise.resolve(`/?${bt({section:"bonuses",page:"exchange-shop"})}`),fantasy:()=>Promise.resolve(`/games/${k4}`),"deposit-to-ride":()=>Promise.resolve("/deposit-to-ride")},sW=({children:e})=>{const[t,n]=p.useState(window.location.hash===""),{loginInProgress:s}=ye(),{locale:r}=ke();return p.useEffect(()=>{if(!t&&!s){const a=nt(decodeURIComponent,ze)(window.location.hash),[,o="",...i]=window.location.hash.split("/"),[l]=o.split("?");if(l&&gp[l]){const c=ut(l in dT?dT[l].reduce((u,f)=>(u[f]=void 0,u),{...a}):a);gp[l](a,i).then(u=>window.location.replace(`/${r}${u}${c?`?${c}`:""}`)).catch(()=>window.location.replace(window.location.origin))}else{const c=ut(a);window.history.replaceState({},document.title,`${window.location.protocol}//${window.location.host}${window.location.pathname}${c?`?${c}`:""}`),n(!0)}}},[t,r,s]),t?d.jsx(d.Fragment,{children:e}):d.jsx(Mt,{size:"big"})},rW=Eu(ha)[window.location.href];var v1;const fT=!!((v1=N.enabledProducts)!=null&&v1[rW]),aW={"virtual-sports":"virtualsports","live-casino":"livedealer"},oW=()=>{const{locale:e}=ke(),[t,n]=p.useState(fT);return p.useLayoutEffect(function(){if(fT){const[,r,a,...o]=window.location.pathname.split("/"),i=aW[a]||a;if(gp[i]&&r===e){const l=ze();gp[i](l,[a,...o]).then(c=>window.location.replace(`/${e}${c}`)).catch(()=>n(!1))}else n(!1)}},[e]),{redirectionProcessing:t}},pk=()=>{const e=dm(),{locale:t}=ke();p.useLayoutEffect(()=>{const[n,s,...r]=window.location.pathname.split("/");if(s!==t){const a=[n,t];X5[s]||In[s]||a.push(s),a.push(...r),e.replace({pathname:a.join("/"),search:window.location.search})}else if(!r.length){const a=`${window.location.pathname}/`;e.replace({pathname:a,search:window.location.search})}},[e,t])},iW=e=>e,lW="/assets/error-page-logo.png",Eb=({message:e,className:t=""})=>{const n=Se();return d.jsx("div",{className:`error-page ${t}`,children:d.jsxs("div",{className:"error-page-content",children:[d.jsx("img",{src:lW,className:"error-page-icon",alt:n(e)}),d.jsx("p",{className:"error-page-info",children:n(e)}),d.jsx($t,{className:"btn s-small a-color",title:"Go to homepage",onClick:()=>window.location.replace(window.location.origin)})]})})},cW=/(^https?:\/\/)|tel:|(.+\.(pdf|jpg|jpeg|png)$)/,mk=(e,t)=>{if(typeof e=="object")return e.pathname&&e.pathname.startsWith("/")?{...e,pathname:`/${t}${e.pathname}`}:e;if(typeof e=="function")return n=>mk(e(n),t);if(e.startsWith("/")){const n=new URL(e,`${window.location.origin}`);return n.search?s=>`/${t}${n.pathname}?${ut({...ze(s.search),...ze(n.search)})}`:`/${t}${e}`}return c5(e)},hk=e=>({children:t,to:n,target:s,className:r="","aria-label":a,actions:o=[],badge:i,onClick:l=Ut,rel:c,onPointerDown:u,...f})=>{const{locale:m}=ke(),h=`{${Z4}}`;typeof n=="string"&&n.includes(h)&&(n=n.replace(`${h}`,vt.getAuthToken()??""));const g=r.concat(i!=null&&i.class?` badge-${i.class}`:""),E=typeof n=="string"&&/^https?:\/\//.test(n)&&!n.startsWith(window.location.origin),b=c??(E?"nofollow noopener noreferrer":void 0),v=_=>{_.stopPropagation(),o.length>0&&o.forEach(y=>{He.dispatchEvent(y.type,y.data)}),l()};return n?typeof n=="object"||typeof n=="function"||!cW.test(n)?d.jsx(e,{onClick:v,to:mk(n,m),target:s,className:g,"data-badge":i==null?void 0:i.title,"aria-label":a,rel:b,onPointerDown:u,...f,children:t}):d.jsx("a",{href:iW(n),onClick:v,target:s,className:g,"data-badge":i==null?void 0:i.title,"aria-label":a,rel:b,onPointerDown:u,children:t}):d.jsx("a",{onClick:v,className:g,"data-badge":i==null?void 0:i.title,"aria-label":a,onPointerDown:u,children:t})},Nt=hk(ZA),gk=hk(oB),Vde=({to:e,...t})=>{const{locale:n}=ke();return d.jsx(qj,{to:typeof e=="object"?e.pathname&&e.pathname.startsWith("/")?{...e,pathname:`/${n}${e.pathname}`}:{pathname:window.location.pathname,...e}:e.startsWith("/")?`/${n}${e}`:e,...t})},uW=p.memo(function(){const{loginInProgress:t}=ye(),{redirectionProcessing:n}=oW();return pk(),t||n?d.jsx(Mt,{}):d.jsx(Eb,{message:"Page not found"})}),_k="luckywheel",dW="achievement",fW="vmania",pW="rgs-dw-app",nc={width:"100%"},Rl={identifier:_k,source:0,className:_v,style:nc},mW={[ht.Achievement]:{identifier:dW,source:1,title:"Achievement Page",className:`${_v} ${nC}`,style:{...nc,height:"99%"}},[ht.Vmania]:{identifier:fW,source:5,title:"Vmania Page",className:`${_v} ${nC}`,style:{...nc,height:"99%"},gameId:420030318},[ht.WonderWheelHarmony]:{...Rl,title:"Wonder Wheel Harmony Page"},[ht.WinWheel]:{...Rl,source:4,title:"Win Wheel Page"},[ht.WonderCards]:{...Rl,source:2,title:"Wonder Cards Page",className:""},[ht.WonderWheel]:{...Rl,source:1,title:"Wonder Wheel Page",style:{...nc,verticalAlign:"top"}},[ht.WonderWheelWorldCup]:{...Rl,source:5,title:"Wonder Wheel World Cup Page"},[ht.DailySprint]:{identifier:pW,title:"Daily Sprint Page",style:nc}},cg=Object.entries(mW).reduce((e,[t,{identifier:n,source:s}])=>(n===_k&&s!==void 0&&(e[t]=s),e),{}),hW=3e4;class vk extends Ri{constructor(){super(...arguments);se(this,"saveConnectionRequest",{Command:"ping"});se(this,"baseUrl",Kn("wss://spider-wss.{domain}/spider"));se(this,"wsCloseResolver",null);se(this,"connectionId",null);se(this,"sessionId",String(Date.now().toString(32)+Math.random().toString(16)).replace(/\./g,""));se(this,"saveConnection",()=>{this.connectionId=window.setInterval(()=>{this.webSocket&&this.webSocket.send(this.saveConnectionRequest)},hW)});se(this,"requestIdSubID",{});se(this,"onopen",()=>{rt.success("Connected Spider."),this.dequeueAll(),this.saveConnection()});se(this,"onclose",n=>{if(!this.webSocket){this.wsCloseResolver&&(this.wsCloseResolver(),this.wsCloseResolver=null,this.connectionId&&(rt.warning("Closed Spider connection"),clearInterval(this.connectionId)));return}n!==4e3&&this.openConnection(()=>this.restoreRequests(),this.onclose,this.onerror,this.onmessage)});se(this,"onmessage",n=>{const s=this.fixSubscriptionResponse(JSON.parse(n)),{HasError:r,RequestId:a,ErrorDescription:o}=s,i=this.requests.get(a);i&&(r?this.onerror(o):i.subscribe?this.handleSubscriptionResponse(s):this.handleGetResponse(s))});se(this,"onerror",n=>{this.webSocket&&(this.handleInternalErrors(new Error(n)),this.closeConnection(4001,n))})}handleInternalErrors(n){super.handleInternalErrors(n)}fixSubscriptionResponse(n){return n.Command==="join"&&n.SubId&&(this.requestIdSubID[n.RequestId]=n.SubId),{...n,RequestId:this.requestIdSubID[n.RequestId]??n.RequestId}}removeSubscription(n){n!==null&&this.get("unjoin",{RequestId:Eu(this.requestIdSubID)[n]}).catch(rt.warning)}connect(){this.url=this.baseUrl,this.openConnection(this.onopen,this.onclose,this.onerror,this.onmessage)}get(n,s){return new Promise((r,a)=>{const o=s.rid?s.rid:Ri.generateRid({...s,command:n,sessionId:this.sessionId}),i={Command:n,Data:s,RequestId:o},l=new ep(o,i);this.requests.set(o,l),this.sendRequest(l.body),l.addHandler(r,a)})}subscribe(n,s,r,a=()=>{}){if(this.webSocket){const o=Ri.generateRid({...s,sessionId:this.sessionId}),i=this.requests.get(o);if(!i){const c={Command:n,Data:s,SubId:o},u=new ep(o,c,!0,!1),f=u.addHandler(r,a);return this.requests.set(o,u),this.unsubIdRidMap.set(f.id,o),this.sendRequest(u.body),f.id}const l=i.addHandler(r,a);return this.unsubIdRidMap.set(l.id,o),l.id}return a({msg:"Websocket connection closed."}),""}disconnect(n,s){return new Promise(r=>{this.webSocket?(this.wsCloseResolver=r,this.closeConnection(n,s)):r()})}sendRequest(n){this.webSocket?this.webSocket.send(n):this.enqueue(()=>{var s;return(s=this.webSocket)==null?void 0:s.send(n)})}handleGetResponse(n){const{RequestId:s,...r}=n,a=this.requests.get(s);a&&(a.setData(r),this.requests.delete(s))}handleSubscriptionResponse(n){const{Data:s,RequestId:r}=n,a=this.requests.get(r);if(a)if(!a.subId)a.subId=r,a.requestHandlers.size===0?(this.requests.delete(r),this.removeSubscription(r)):(a.setData(s),this.subIdRidMap.set(r,r));else{const o=this.subIdRidMap.get(r);if(o){const i=this.requests.get(o);i&&i.updateData(s)}}}get connected(){return this.webSocket!==null}clearActiveRequests(){this.requests.clear()}restoreRequests(){this.requests.forEach(n=>{this.sendRequest(n.body)}),this.dequeueAll()}unsubscribe(n){if(!n)return rt.warning("Can't unsubscribe without a subid.");const s=this.unsubIdRidMap.get(n);if(s){this.unsubIdRidMap.delete(n);const r=this.requests.get(s);r&&(r.removeHandler(n),r.requestHandlers.size===0&&(this.requests.delete(s),this.removeSubscription(r.subId)))}}}const ur=new vk,gW=14400;class Ma{constructor(){se(this,"_apiUrl",{})}static getBaseHost(){return N.cms.baseHost||N.app.site_id}static getTimestamp(t){return at.utc(t).unix()-gW}getBaseUrl(t=0){const n=N.cms.apiUrl,s=t===1?N.cms.cacheLayerSubdomain:"",r=this._apiUrl[0]!==n;return r&&(this._apiUrl[0]=n),(!this._apiUrl[t]||r)&&(this._apiUrl[t]=s?n.replace("//",`//${s}${n.includes("//cms.")?"-":"."}`):n),this._apiUrl[t]}loadData(t,n,s=!1){return qe.get(this.getBaseUrl(Number(s))+t,{params:n}).then(({data:{message:r,success:a,...o}})=>{if(a)return o;throw new Error(r)}).catch(r=>{throw console.log(`Server returns error ${r}`),{}})}loadDataFromNewAPI({urlSuffix:t,language:n,params:s,id:r,headers:a={"content-type":"application/json"}}){const o=!!N.cms.cacheLayerSubdomain,i=ln.countryCode;return qe.get(`${this.getBaseUrl(Number(o))}/api/public/v1/${n}/partners/${Ma.getBaseHost()}/${t}${r?`/${r}`:""}`,{params:{...s,platform:Q.isMobile,country:i},headers:{...a,...!o&&{"Content-Key-Case":"camel"}}}).then(({status:l,data:{success:c,data:u}})=>{if(l===200&&c)return u;throw new Error("Content not available")})}sendData({url:t,body:n}){return qe.post(`${this.getBaseUrl()}${t}`,n)}}class _W extends Ma{constructor(){super(...arguments);se(this,"getTermsConditionsVersion",()=>{var n,s,r,a;return(r=(s=(n=N.app.brazilLicense)==null?void 0:n.migration)==null?void 0:s.migrateWithSignicat)!=null&&r.enabled||(a=N.app)!=null&&a.enableBrazilianTC?Promise.resolve({terms_and_conditions_version:kv}):this.getHelpPageContent(eb,"eng").then(({version:o})=>{if(o)return{terms_and_conditions_version:o};throw new Error}).catch(()=>{})})}getContentById(n,s,r){return this.loadDataFromNewAPI({urlSuffix:`components/${n}/contents`,language:s,params:{use_webp:Q.useWebp}}).then(tx(a=>{var o;return{...a,...a.src&&a.srcType==="image"&&{src:a.src.includes("http")?a.src:`${N.cms.iconUrl}${a.src}`},href:((o=cp({...a,type:a.hrefType,value:a.href,profileActionType:op.Included},r))==null?void 0:o.to)||""}}))}getHelpPageContent(n,s){return this.loadDataFromNewAPI({urlSuffix:`contents/${n}`,params:{with_meta:1},language:s})}getNotifications(n,s){return this.loadDataFromNewAPI({urlSuffix:`notifications/${n}`,language:s})}getPopups(n,s){return this.loadDataFromNewAPI({urlSuffix:"popups",language:n,params:{type:s}}).catch(()=>[])}getCrmPopup(n,s,r){return this.loadDataFromNewAPI({urlSuffix:"popups",id:r,language:n,params:{type:s}}).catch(()=>({}))}getCrmBanner(n,s,r,a){return this.loadDataFromNewAPI({urlSuffix:"crm/contents",id:r.toString(),language:n,params:{use_webp:Q.useWebp,platform:s}}).then(o=>({...o,showTo:Xn.Authorized,actions:[],profileTypes:[],customProfileTypes:null,profileActionType:op.Included,buttons:[]})).then(o=>{var i;return{...o,...o.src&&o.srcType==="image"&&{src:o.src.includes("http")?o.src:`${N.cms.iconUrl}${o.src}`},href:((i=cp({...o,type:o.hrefType,value:o.href},a))==null?void 0:i.to)||""}})}getExchangeShopProducts(n){return this.loadData(`/api/public/v1/${n}/partners/${N.app.site_id}/exchange-items`,{},!!N.cms.cacheLayerSubdomain)}getPageSeo(n){return this.loadDataFromNewAPI({urlSuffix:"seo/page",language:n,headers:{"content-type":"application/json"}})}getGameSeo(n){return this.loadDataFromNewAPI({urlSuffix:"seo/game",language:n,headers:{"content-type":"application/json"}})}getSlotSeo(n){return this.loadDataFromNewAPI({urlSuffix:"seo/slotCategory",language:n,headers:{"content-type":"application/json"}})}getLiveCasinoSeo(n){return this.loadDataFromNewAPI({urlSuffix:"seo/liveCasinoCategory",language:n,headers:{"content-type":"application/json"}})}getMenu(n,s){return this.loadDataFromNewAPI({urlSuffix:`menus/${s}_menu`,language:n})}getCities(n,s,r){return this.loadData(`/api/public/v1/${n}/countries/${s}${r?`/states/${r}`:""}/cities`,{},!0).then(a=>a)}getRegions(n,s){return this.loadData(`/api/public/v1/${n}/countries/${s}/states`,{},!0).then(r=>r)}getWidgetShowType(n,s,r){return this.loadData(`/api/public/v1/${s}/partners/${r}/ai/widgets/home?client_id=${n}`,{},!0).then(a=>a)}}const Jn=new _W,Dm=()=>{const{isLoggedIn:e,profile:{currency:t,sportsbook_profile_id:n,partner_client_category_id:s,is_verified:r}}=ye();return p.useMemo(()=>({partnerClientCategoryId:s,profileType:n,isLoggedIn:e,isVerified:r,currency:t}),[s,n,e,r,t])},vW=e=>e.filter(t=>N.sportsbook.enabled||t!==Hn),ug=["header","app","footer"],EW=(e,t)=>qe.get(`/menus/${t}_menu_${Ma.getBaseHost()}_${e}.json`).then(({data:n})=>typeof n=="object"?n:Jn.getMenu(e,t)).catch(()=>Jn.getMenu(e,t)),Ek=p.createContext({}),yW=({children:e})=>{const t=Dm(),{language:n}=ke(),s=Se(),{profile:{id:r}}=ye(),[a,o]=p.useState({loading:!0,data:{header:[],app:[],footer:[]}}),[i,l]=p.useState([]),c=p.useRef({}),u=p.useRef({}),f=p.useRef([]),m=p.useRef(0),h=p.useRef(n),g=nu(()=>{var _;return[...N.enabledProducts?Object.entries(N.enabledProducts).filter(([y,S])=>S&&y in Wr).map(([y])=>Wr[y]):[],...N.casino.genericPage.enabled&&N.casino.enabled&&((_=N.enabledProducts)!=null&&_.casino)?[N.casino.genericPage.isWithLotteryPath?fm:wu]:[]]}),E=p.useMemo(()=>{if(a.loading)return{};const _={},y=S=>{if(S.type==="integration"&&S.value){const{path:w,paramsObj:x}=CO(S);_[S.value]={path:w,paramsObj:x}}S.children&&S.children.length>0&&S.children.forEach(y)};return ug.forEach(S=>{ym(a.data[S]).forEach(w=>{y(w)})}),_},[a.loading,a.data]),b=p.useMemo(()=>{const{app:_,header:y,footer:S}=oL(a.data,w=>bO({menu:w,userPermissions:t,integrations:E}));return f.current=y.paths,{links:{app:_.links,header:y.links,footer:S.links},paths:nx(vW([Or,fP,Qi,ky,Ny,_P,pm,hP,mP,SP,JB,CP,Ry,...g,..._.paths,...y.paths,...S.paths])),integrations:E}},[g,E,a.data,t]);p.useEffect(()=>{const _=++m.current;Promise.allSettled(ug.map(y=>EW(n,y))).then(y=>{m.current===_&&(o({loading:!1,data:y.reduce((S,w,x)=>(w.status==="fulfilled"&&(S[ug[x]]=w.value),S),{header:[],app:[],footer:[]})}),c.current={})})},[n]),p.useEffect(function(){if(!a.loading){const y=gt.getInstance(),S=new Set(b.paths);y.esportsAvailable=S.has(Iy),y.liveCasinoAvailable=S.has(Ao),y.skillGamesAvailable=S.has(Ni),y.tvGamesAvailable=S.has(Qc),y.virtualSportsAvailable=S.has(Io),y.sportsBookAvailable=S.has(Hn),y.jackpotsPageAvailable=S.has(Oy)}},[a.loading,b.paths]),p.useEffect(()=>{if(!a.loading){if(b.paths.length&&r){const _=new Set(f.current);l(Object.entries(cg).filter(([y])=>_.has(Wr[y]??"")).map(Pt("1")))}else l([]);h.current=n}},[r,n,a.loading,b.paths.length]);const v=p.useCallback((_,y)=>{if(_!=null&&_.length){const S=_.reduce((w,{SpinCount:x,SourceId:I})=>(w[I]=x,w),u.current);o(w=>({...w,data:{...w.data,header:w.data.header.map(x=>{if(x.type==="product"&&x.value in cg){const I=S[cg[x.value]]??0;y&&!c.current[x.id]&&(c.current[x.id]=x.badge);const C=c.current[x.id]??x.badge,T=I>0?{title:s("{1} spin",{1:I}),class:"spinCount"}:C;return{...x,badge:T}}return x})}})),u.current=S}},[s]);return p.useEffect(()=>{if(i.length&&!ur.connected)return ur.connect(),()=>{ur.connected&&(ur.clearActiveRequests(),ur.disconnect(4e3,"Closed jackpot socket connection by the application"))}},[i]),p.useEffect(()=>{if(!i.length)return;let _;const y={PartnerId:N.app.site_id,SourceIdList:i,SessionToken:vt.getAuthToken(),LangId:In[h.current]};return ur.connected&&ur.get("lwgettotalspincount",y).then(({Result:S,HasError:w,ErrorDescription:x})=>{if(v(S,!0),!w)_=ur.subscribe("join",{Name:"LWLobby",Events:["spincountbysrc"],Context:y},I=>{v(I==null?void 0:I.Result)});else throw new Error(x)}),()=>{ur.connected&&_&&ur.unsubscribe(_),u.current={},Object.values(c.current).length&&o(S=>({...S,data:{...S.data,header:S.data.header.map(w=>w.id in c.current?{...w,badge:c.current[w.id]}:w)}}))}},[v,i]),a.loading?d.jsx(Mt,{size:"medium"}):d.jsx(Ek.Provider,{value:b,children:e})},gl=()=>p.useContext(Ek),yk=p.createContext({}),dg=new Map,bW=({children:e})=>{const{isLoggedIn:t,profile:n}=ye(),s=t?n==null?void 0:n.id:void 0,[r,a]=p.useState(dg);p.useEffect(function(){if(!t){a(c=>c.size===0?c:dg);return}a(dg);const l=ee.subscribe({source:"notifications",what:{user:[]}},c=>{a(u=>{const f=new Map(u),m=(h,g)=>{let E=f.get(h);E||(E=new Set,f.set(h,E)),E.add(g)};return Object.values(c).forEach(h=>{var v,_,y,S;if((h==null?void 0:h.type)!=="banner"||!(Q.isMobile?(v=h.platforms)!=null&&v.mobile:(_=h.platforms)!=null&&_.web))return;const g=h.id;if(!g)return;const E=((y=h.component)==null?void 0:y.slug)!=null?String(h.component.slug):void 0,b=((S=h.component)==null?void 0:S.id)!=null?String(h.component.id):void 0;E&&m(E,g),b&&m(b,g)}),f})},()=>{},!0);return()=>{ee.unsubscribe(l)}},[t,s]);const o=p.useCallback(i=>r.get(String(i)),[r]);return d.jsx(yk.Provider,{value:{getCrmBannerIds:o},children:e})},SW=()=>p.useContext(yk),CW=0,TW=e=>{const t=xt(),[n,s]=p.useState({loading:!0,data:[]}),[r,a]=p.useState([]),{integrations:o}=gl(),{language:i}=ke(),{getCrmBannerIds:l}=SW(),c=p.useMemo(()=>JSON.stringify(o),[o]);return p.useEffect(function(){s({loading:!0,data:[]});const f=JSON.parse(c);Jn.getContentById(e,i,f).then(m=>{t.current&&s({loading:!1,data:m.map(h=>{const g=h.eventDate?Ma.getTimestamp(h.eventDate):0;return{...h,...g>0&&at().unix(){t.current&&s({loading:!1,data:[]})})},[e,c,t,i]),p.useEffect(function(){a([]);const f=JSON.parse(c),m=l(e),h=m!=null&&m.size?Array.from(m).map(E=>Jn.getCrmBanner(i,Q.isMobile,E,f)):[],g=h.length>0?Promise.allSettled(h):null;g&&g.then(E=>E?E.filter(b=>b.status==="fulfilled"&&!!b.value).map(b=>b.value):[]).then(E=>{if(t.current){const b=at().unix();a(E.map(v=>{const _=v.eventDate?Ma.getTimestamp(v.eventDate):0;return{...v,..._>0&&b<_&&{endTime:_}}}))}}).catch(()=>{t.current&&a([])})},[e,l,c,t,i]),p.useMemo(()=>{const u=n.data||[],f=r||[],m=Math.min(CW,u.length);return{data:[...u.slice(0,m),...f,...u.slice(m)],loading:n.loading}},[n.data,n.loading,r])},wW="/assets/iframeBackfaceImage.png",IW=Ne(()=>B(()=>import("./PredictStreetSlide-P8O7Hdvz.js"),__vite__mapDeps([145,146,147,1,148]))),AW=Ne(()=>B(()=>import("./EventBookSlide-B7MGR7Ro.js"),__vite__mapDeps([149,146,147,1,150]))),PW=p.memo(function({srcType:t,extraType:n,src:s="",isVisible:r=!0,isIframeInteractive:a=!0,srcAlt:o,title:i="",loading:l="lazy",fetchPriority:c}){const u=Se(),f=a?void 0:{pointerEvents:"none"};if(n)switch(n){case"eventbook":return d.jsx(AW,{});case"predictstreet":return d.jsx(IW,{});default:return null}switch(t){case"image":return d.jsx(Go,{src:s,loading:l,...c&&{fetchpriority:c},className:"sdr-image-bc",alt:o??i,title:i});case"iframe":return d.jsxs("div",{className:"sdr-iframe-holder-bc",children:[d.jsx("img",{src:wW,loading:l,className:"sdr-iframe-backface-bc",alt:i}),r&&d.jsx("iframe",{src:s,className:"sdr-iframe-bc",style:f,title:i||u("iFrame Slide")})]});case"html":return d.jsx("div",{dangerouslySetInnerHTML:{__html:s},className:"sdr-inner-html-bc"});case"video":{const h=/^https?:\/\//i.test(s)||s.startsWith("/")?s.replace(/^http:\/\//i,"https://"):"",g=h.split("?")[0].split("#")[0].match(/\.([a-z0-9]+)$/i),E=g&&{mp4:"video/mp4",m4v:"video/mp4",mov:"video/quicktime",webm:"video/webm",ogv:"video/ogg"}[g[1].toLowerCase()];return d.jsx("div",{className:"sdr-video-bc",children:r&&d.jsx("video",{muted:!0,autoPlay:!0,loop:!0,playsInline:!0,preload:Q.saveDataMode?"none":"auto",title:i,width:"100%",height:"auto",children:E?d.jsx("source",{src:h,type:E||void 0}):d.jsxs(d.Fragment,{children:[d.jsx("source",{src:h,type:"video/mp4"}),d.jsx("source",{src:h,type:"video/webm"})]})})})}default:return null}}),xW=({buttons:e,parentNavigate:t,parentTarget:n,parentActions:s})=>!e||!e.length?null:d.jsx(d.Fragment,{children:e.map(({title:r,href:a,target:o,actions:i},l)=>d.jsx(he.Fragment,{children:d.jsx(Nt,{to:a||t,target:o||n,actions:i&&i.length?i:s,className:"btn s-small a-color",children:r})},l))}),OW=p.memo(xW);function pT(e){return e!==null&&typeof e=="object"&&"constructor"in e&&e.constructor===Object}function yb(e,t){e===void 0&&(e={}),t===void 0&&(t={});const n=["__proto__","constructor","prototype"];Object.keys(t).filter(s=>n.indexOf(s)<0).forEach(s=>{typeof e[s]>"u"?e[s]=t[s]:pT(t[s])&&pT(e[s])&&Object.keys(t[s]).length>0&&yb(e[s],t[s])})}const bk={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 Tr(){const e=typeof document<"u"?document:{};return yb(e,bk),e}const kW={document:bk,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 yb(e,kW),e}function NW(e){return e===void 0&&(e=""),e.trim().split(" ").filter(t=>!!t.trim())}function RW(e){const t=e;Object.keys(t).forEach(n=>{try{t[n]=null}catch{}try{delete t[n]}catch{}})}function Sk(e,t){return t===void 0&&(t=0),setTimeout(e,t)}function _p(){return Date.now()}function LW(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 MW(e,t){t===void 0&&(t="x");const n=Un();let s,r,a;const o=LW(e);return n.WebKitCSSMatrix?(r=o.transform||o.webkitTransform,r.split(",").length>6&&(r=r.split(", ").map(i=>i.replace(",",".")).join(", ")),a=new n.WebKitCSSMatrix(r==="none"?"":r)):(a=o.MozTransform||o.OTransform||o.MsTransform||o.msTransform||o.transform||o.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),s=a.toString().split(",")),t==="x"&&(n.WebKitCSSMatrix?r=a.m41:s.length===16?r=parseFloat(s[12]):r=parseFloat(s[4])),t==="y"&&(n.WebKitCSSMatrix?r=a.m42:s.length===16?r=parseFloat(s[13]):r=parseFloat(s[5])),r||0}function Sd(e){return typeof e=="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"}function DW(e){return typeof window<"u"&&typeof window.HTMLElement<"u"?e instanceof HTMLElement:e&&(e.nodeType===1||e.nodeType===11)}function us(){const e=Object(arguments.length<=0?void 0:arguments[0]),t=["__proto__","constructor","prototype"];for(let n=1;nt.indexOf(a)<0);for(let a=0,o=r.length;aa?"next":"prev",u=(m,h)=>c==="next"&&m>=h||c==="prev"&&m<=h,f=()=>{i=new Date().getTime(),o===null&&(o=i);const m=Math.max(Math.min((i-o)/l,1),0),h=.5-Math.cos(m*Math.PI)/2;let g=a+h*(n-a);if(u(g,n)&&(g=n),t.wrapperEl.scrollTo({[s]:g}),u(g,n)){t.wrapperEl.style.overflow="hidden",t.wrapperEl.style.scrollSnapType="",setTimeout(()=>{t.wrapperEl.style.overflow="",t.wrapperEl.scrollTo({[s]:g})}),r.cancelAnimationFrame(t.cssModeFrameID);return}t.cssModeFrameID=r.requestAnimationFrame(f)};f()}function yr(e,t){t===void 0&&(t="");const n=Un(),s=[...e.children];return n.HTMLSlotElement&&e instanceof HTMLSlotElement&&s.push(...e.assignedElements()),t?s.filter(r=>r.matches(t)):s}function jW(e,t){const n=[t];for(;n.length>0;){const s=n.shift();if(e===s)return!0;n.push(...s.children,...s.shadowRoot?s.shadowRoot.children:[],...s.assignedElements?s.assignedElements():[])}}function BW(e,t){const n=Un();let s=t.contains(e);return!s&&n.HTMLSlotElement&&t instanceof HTMLSlotElement&&(s=[...t.assignedElements()].includes(e),s||(s=jW(e,t))),s}function vp(e){try{console.warn(e);return}catch{}}function Ep(e,t){t===void 0&&(t=[]);const n=document.createElement(e);return n.classList.add(...Array.isArray(t)?t:NW(t)),n}function FW(e,t){const n=[];for(;e.previousElementSibling;){const s=e.previousElementSibling;t?s.matches(t)&&n.push(s):n.push(s),e=s}return n}function UW(e,t){const n=[];for(;e.nextElementSibling;){const s=e.nextElementSibling;t?s.matches(t)&&n.push(s):n.push(s),e=s}return n}function ga(e,t){return Un().getComputedStyle(e,null).getPropertyValue(t)}function yp(e){let t=e,n;if(t){for(n=0;(t=t.previousSibling)!==null;)t.nodeType===1&&(n+=1);return n}}function Tk(e,t){const n=[];let s=e.parentElement;for(;s;)t?s.matches(t)&&n.push(s):n.push(s),s=s.parentElement;return n}function qv(e,t,n){const s=Un();return e[t==="width"?"offsetWidth":"offsetHeight"]+parseFloat(s.getComputedStyle(e,null).getPropertyValue(t==="width"?"margin-right":"margin-top"))+parseFloat(s.getComputedStyle(e,null).getPropertyValue(t==="width"?"margin-left":"margin-bottom"))}function nn(e){return(Array.isArray(e)?e:[e]).filter(t=>!!t)}function Hde(e){return t=>Math.abs(t)>0&&e.browser&&e.browser.need3dFix&&Math.abs(t)%90===0?t+.001:t}function bp(e,t){t===void 0&&(t=""),typeof trustedTypes<"u"?e.innerHTML=trustedTypes.createPolicy("html",{createHTML:n=>n}).createHTML(t):e.innerHTML=t}let fg;function $W(){const e=Un(),t=Tr();return{smoothScroll:t.documentElement&&t.documentElement.style&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}function wk(){return fg||(fg=$W()),fg}let pg;function GW(e){let{userAgent:t}=e===void 0?{}:e;const n=wk(),s=Un(),r=s.navigator.platform,a=t||s.navigator.userAgent,o={ios:!1,android:!1},i=s.screen.width,l=s.screen.height,c=a.match(/(Android);?[\s\/]+([\d.]+)?/);let u=a.match(/(iPad).*OS\s([\d_]+)/);const f=a.match(/(iPod)(.*OS\s([\d_]+))?/),m=!u&&a.match(/(iPhone\sOS|iOS)\s([\d_]+)/),h=r==="Win32";let g=r==="MacIntel";const E=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!u&&g&&n.touch&&E.indexOf(`${i}x${l}`)>=0&&(u=a.match(/(Version)\/([\d.]+)/),u||(u=[0,1,"13_0_0"]),g=!1),c&&!h&&(o.os="android",o.android=!0),(u||m||f)&&(o.os="ios",o.ios=!0),o}function Ik(e){return e===void 0&&(e={}),pg||(pg=GW(e)),pg}let mg;function VW(){const e=Un(),t=Ik();let n=!1;function s(){const i=e.navigator.userAgent.toLowerCase();return i.indexOf("safari")>=0&&i.indexOf("chrome")<0&&i.indexOf("android")<0}if(s()){const i=String(e.navigator.userAgent);if(i.includes("Version/")){const[l,c]=i.split("Version/")[1].split(" ")[0].split(".").map(u=>Number(u));n=l<16||l===16&&c<2}}const r=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent),a=s(),o=a||r&&t.ios;return{isSafari:n||a,needPerspectiveFix:n,need3dFix:o,isWebView:r}}function Ak(){return mg||(mg=VW()),mg}function HW(e){let{swiper:t,on:n,emit:s}=e;const r=Un();let a=null,o=null;const i=()=>{!t||t.destroyed||!t.initialized||(s("beforeResize"),s("resize"))},l=()=>{!t||t.destroyed||!t.initialized||(a=new ResizeObserver(f=>{o=r.requestAnimationFrame(()=>{const{width:m,height:h}=t;let g=m,E=h;f.forEach(b=>{let{contentBoxSize:v,contentRect:_,target:y}=b;y&&y!==t.el||(g=_?_.width:(v[0]||v).inlineSize,E=_?_.height:(v[0]||v).blockSize)}),(g!==m||E!==h)&&i()})}),a.observe(t.el))},c=()=>{o&&r.cancelAnimationFrame(o),a&&a.unobserve&&t.el&&(a.unobserve(t.el),a=null)},u=()=>{!t||t.destroyed||!t.initialized||s("orientationchange")};n("init",()=>{if(t.params.resizeObserver&&typeof r.ResizeObserver<"u"){l();return}r.addEventListener("resize",i),r.addEventListener("orientationchange",u)}),n("destroy",()=>{c(),r.removeEventListener("resize",i),r.removeEventListener("orientationchange",u)})}function WW(e){let{swiper:t,extendParams:n,on:s,emit:r}=e;const a=[],o=Un(),i=function(u,f){f===void 0&&(f={});const m=o.MutationObserver||o.WebkitMutationObserver,h=new m(g=>{if(t.__preventObserver__)return;if(g.length===1){r("observerUpdate",g[0]);return}const E=function(){r("observerUpdate",g[0])};o.requestAnimationFrame?o.requestAnimationFrame(E):o.setTimeout(E,0)});h.observe(u,{attributes:typeof f.attributes>"u"?!0:f.attributes,childList:t.isElement||(typeof f.childList>"u"?!0:f).childList,characterData:typeof f.characterData>"u"?!0:f.characterData}),a.push(h)},l=()=>{if(t.params.observer){if(t.params.observeParents){const u=Tk(t.hostEl);for(let f=0;f{a.forEach(u=>{u.disconnect()}),a.splice(0,a.length)};n({observer:!1,observeParents:!1,observeSlideChildren:!1}),s("init",l),s("destroy",c)}var zW={on(e,t,n){const s=this;if(!s.eventsListeners||s.destroyed||typeof t!="function")return s;const r=n?"unshift":"push";return e.split(" ").forEach(a=>{s.eventsListeners[a]||(s.eventsListeners[a]=[]),s.eventsListeners[a][r](t)}),s},once(e,t,n){const s=this;if(!s.eventsListeners||s.destroyed||typeof t!="function")return s;function r(){s.off(e,r),r.__emitterProxy&&delete r.__emitterProxy;for(var a=arguments.length,o=new Array(a),i=0;i=0&&t.eventsAnyListeners.splice(n,1),t},off(e,t){const n=this;return!n.eventsListeners||n.destroyed||!n.eventsListeners||e.split(" ").forEach(s=>{typeof t>"u"?n.eventsListeners[s]=[]:n.eventsListeners[s]&&n.eventsListeners[s].forEach((r,a)=>{(r===t||r.__emitterProxy&&r.__emitterProxy===t)&&n.eventsListeners[s].splice(a,1)})}),n},emit(){const e=this;if(!e.eventsListeners||e.destroyed||!e.eventsListeners)return e;let t,n,s;for(var r=arguments.length,a=new Array(r),o=0;o{e.eventsAnyListeners&&e.eventsAnyListeners.length&&e.eventsAnyListeners.forEach(c=>{c.apply(s,[l,...n])}),e.eventsListeners&&e.eventsListeners[l]&&e.eventsListeners[l].forEach(c=>{c.apply(s,n)})}),e}};function YW(){const e=this;let t,n;const s=e.el;typeof e.params.width<"u"&&e.params.width!==null?t=e.params.width:t=s.clientWidth,typeof e.params.height<"u"&&e.params.height!==null?n=e.params.height:n=s.clientHeight,!(t===0&&e.isHorizontal()||n===0&&e.isVertical())&&(t=t-parseInt(ga(s,"padding-left")||0,10)-parseInt(ga(s,"padding-right")||0,10),n=n-parseInt(ga(s,"padding-top")||0,10)-parseInt(ga(s,"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 qW(){const e=this;function t(P,A){return parseFloat(P.getPropertyValue(e.getDirectionLabel(A))||0)}const n=e.params,{wrapperEl:s,slidesEl:r,size:a,rtlTranslate:o,wrongRTL:i}=e,l=e.virtual&&n.virtual.enabled,c=l?e.virtual.slides.length:e.slides.length,u=yr(r,`.${e.params.slideClass}, swiper-slide`),f=l?e.virtual.slides.length:u.length;let m=[];const h=[],g=[];let E=n.slidesOffsetBefore;typeof E=="function"&&(E=n.slidesOffsetBefore.call(e));let b=n.slidesOffsetAfter;typeof b=="function"&&(b=n.slidesOffsetAfter.call(e));const v=e.snapGrid.length,_=e.slidesGrid.length;let y=n.spaceBetween,S=-E,w=0,x=0;if(typeof a>"u")return;typeof y=="string"&&y.indexOf("%")>=0?y=parseFloat(y.replace("%",""))/100*a:typeof y=="string"&&(y=parseFloat(y)),e.virtualSize=-y,u.forEach(P=>{o?P.style.marginLeft="":P.style.marginRight="",P.style.marginBottom="",P.style.marginTop=""}),n.centeredSlides&&n.cssMode&&(Cd(s,"--swiper-centered-offset-before",""),Cd(s,"--swiper-centered-offset-after",""));const I=n.grid&&n.grid.rows>1&&e.grid;I?e.grid.initSlides(u):e.grid&&e.grid.unsetSlides();let C;const T=n.slidesPerView==="auto"&&n.breakpoints&&Object.keys(n.breakpoints).filter(P=>typeof n.breakpoints[P].slidesPerView<"u").length>0;for(let P=0;P1&&m.push(e.virtualSize-a)}if(l&&n.loop){const P=g[0]+y;if(n.slidesPerGroup>1){const A=Math.ceil((e.virtual.slidesBefore+e.virtual.slidesAfter)/n.slidesPerGroup),O=P*n.slidesPerGroup;for(let M=0;M!n.cssMode||n.loop?!0:O!==u.length-1).forEach(A=>{A.style[P]=`${y}px`})}if(n.centeredSlides&&n.centeredSlidesBounds){let P=0;g.forEach(O=>{P+=O+(y||0)}),P-=y;const A=P>a?P-a:0;m=m.map(O=>O<=0?-E:O>A?A+b:O)}if(n.centerInsufficientSlides){let P=0;g.forEach(O=>{P+=O+(y||0)}),P-=y;const A=(n.slidesOffsetBefore||0)+(n.slidesOffsetAfter||0);if(P+A{m[k]=M-O}),h.forEach((M,k)=>{h[k]=M+O})}}if(Object.assign(e,{slides:u,snapGrid:m,slidesGrid:h,slidesSizesGrid:g}),n.centeredSlides&&n.cssMode&&!n.centeredSlidesBounds){Cd(s,"--swiper-centered-offset-before",`${-m[0]}px`),Cd(s,"--swiper-centered-offset-after",`${e.size/2-g[g.length-1]/2}px`);const P=-e.snapGrid[0],A=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map(O=>O+P),e.slidesGrid=e.slidesGrid.map(O=>O+A)}if(f!==c&&e.emit("slidesLengthChange"),m.length!==v&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),h.length!==_&&e.emit("slidesGridLengthChange"),n.watchSlidesProgress&&e.updateSlidesOffset(),e.emit("slidesUpdated"),!l&&!n.cssMode&&(n.effect==="slide"||n.effect==="fade")){const P=`${n.containerModifierClass}backface-hidden`,A=e.el.classList.contains(P);f<=n.maxBackfaceHiddenSlides?A||e.el.classList.add(P):A&&e.el.classList.remove(P)}}function KW(e){const t=this,n=[],s=t.virtual&&t.params.virtual.enabled;let r=0,a;typeof e=="number"?t.setTransition(e):e===!0&&t.setTransition(t.params.speed);const o=i=>s?t.slides[t.getSlideIndexByData(i)]:t.slides[i];if(t.params.slidesPerView!=="auto"&&t.params.slidesPerView>1)if(t.params.centeredSlides)(t.visibleSlides||[]).forEach(i=>{n.push(i)});else for(a=0;at.slides.length&&!s)break;n.push(o(i))}else n.push(o(t.activeIndex));for(a=0;ar?i:r}(r||r===0)&&(t.wrapperEl.style.height=`${r}px`)}function QW(){const e=this,t=e.slides,n=e.isElement?e.isHorizontal()?e.wrapperEl.offsetLeft:e.wrapperEl.offsetTop:0;for(let s=0;s{t&&!e.classList.contains(n)?e.classList.add(n):!t&&e.classList.contains(n)&&e.classList.remove(n)};function XW(e){e===void 0&&(e=this&&this.translate||0);const t=this,n=t.params,{slides:s,rtlTranslate:r,snapGrid:a}=t;if(s.length===0)return;typeof s[0].swiperSlideOffset>"u"&&t.updateSlidesOffset();let o=-e;r&&(o=e),t.visibleSlidesIndexes=[],t.visibleSlides=[];let i=n.spaceBetween;typeof i=="string"&&i.indexOf("%")>=0?i=parseFloat(i.replace("%",""))/100*t.size:typeof i=="string"&&(i=parseFloat(i));for(let l=0;l=0&&h<=t.size-t.slidesSizesGrid[l],b=h>=0&&h1&&g<=t.size||h<=0&&g>=t.size;b&&(t.visibleSlides.push(c),t.visibleSlidesIndexes.push(l)),mT(c,b,n.slideVisibleClass),mT(c,E,n.slideFullyVisibleClass),c.progress=r?-f:f,c.originalProgress=r?-m:m}}function JW(e){const t=this;if(typeof e>"u"){const u=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*u||0}const n=t.params,s=t.maxTranslate()-t.minTranslate();let{progress:r,isBeginning:a,isEnd:o,progressLoop:i}=t;const l=a,c=o;if(s===0)r=0,a=!0,o=!0;else{r=(e-t.minTranslate())/s;const u=Math.abs(e-t.minTranslate())<1,f=Math.abs(e-t.maxTranslate())<1;a=u||r<=0,o=f||r>=1,u&&(r=0),f&&(r=1)}if(n.loop){const u=t.getSlideIndexByData(0),f=t.getSlideIndexByData(t.slides.length-1),m=t.slidesGrid[u],h=t.slidesGrid[f],g=t.slidesGrid[t.slidesGrid.length-1],E=Math.abs(e);E>=m?i=(E-m)/g:i=(E+g-h)/g,i>1&&(i-=1)}Object.assign(t,{progress:r,progressLoop:i,isBeginning:a,isEnd:o}),(n.watchSlidesProgress||n.centeredSlides&&n.autoHeight)&&t.updateSlidesProgress(e),a&&!l&&t.emit("reachBeginning toEdge"),o&&!c&&t.emit("reachEnd toEdge"),(l&&!a||c&&!o)&&t.emit("fromEdge"),t.emit("progress",r)}const hg=(e,t,n)=>{t&&!e.classList.contains(n)?e.classList.add(n):!t&&e.classList.contains(n)&&e.classList.remove(n)};function ZW(){const e=this,{slides:t,params:n,slidesEl:s,activeIndex:r}=e,a=e.virtual&&n.virtual.enabled,o=e.grid&&n.grid&&n.grid.rows>1,i=f=>yr(s,`.${n.slideClass}${f}, swiper-slide${f}`)[0];let l,c,u;if(a)if(n.loop){let f=r-e.virtual.slidesBefore;f<0&&(f=e.virtual.slides.length+f),f>=e.virtual.slides.length&&(f-=e.virtual.slides.length),l=i(`[data-swiper-slide-index="${f}"]`)}else l=i(`[data-swiper-slide-index="${r}"]`);else o?(l=t.find(f=>f.column===r),u=t.find(f=>f.column===r+1),c=t.find(f=>f.column===r-1)):l=t[r];l&&(o||(u=UW(l,`.${n.slideClass}, swiper-slide`)[0],n.loop&&!u&&(u=t[0]),c=FW(l,`.${n.slideClass}, swiper-slide`)[0],n.loop&&!c===0&&(c=t[t.length-1]))),t.forEach(f=>{hg(f,f===l,n.slideActiveClass),hg(f,f===u,n.slideNextClass),hg(f,f===c,n.slidePrevClass)}),e.emitSlidesClasses()}const uf=(e,t)=>{if(!e||e.destroyed||!e.params)return;const n=()=>e.isElement?"swiper-slide":`.${e.params.slideClass}`,s=t.closest(n());if(s){let r=s.querySelector(`.${e.params.lazyPreloaderClass}`);!r&&e.isElement&&(s.shadowRoot?r=s.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{s.shadowRoot&&(r=s.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`),r&&r.remove())})),r&&r.remove()}},gg=(e,t)=>{if(!e.slides[t])return;const n=e.slides[t].querySelector('[loading="lazy"]');n&&n.removeAttribute("loading")},Kv=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 s=e.params.slidesPerView==="auto"?e.slidesPerViewDynamic():Math.ceil(e.params.slidesPerView),r=e.activeIndex;if(e.params.grid&&e.params.grid.rows>1){const o=r,i=[o-t];i.push(...Array.from({length:t}).map((l,c)=>o+s+c)),e.slides.forEach((l,c)=>{i.includes(l.column)&&gg(e,c)});return}const a=r+s-1;if(e.params.rewind||e.params.loop)for(let o=r-t;o<=a+t;o+=1){const i=(o%n+n)%n;(ia)&&gg(e,i)}else for(let o=Math.max(r-t,0);o<=Math.min(a+t,n-1);o+=1)o!==r&&(o>a||o=t[a]&&s=t[a]&&s=t[a]&&(r=a);return n.normalizeSlideIndex&&(r<0||typeof r>"u")&&(r=0),r}function t6(e){const t=this,n=t.rtlTranslate?t.translate:-t.translate,{snapGrid:s,params:r,activeIndex:a,realIndex:o,snapIndex:i}=t;let l=e,c;const u=h=>{let g=h-t.virtual.slidesBefore;return g<0&&(g=t.virtual.slides.length+g),g>=t.virtual.slides.length&&(g-=t.virtual.slides.length),g};if(typeof l>"u"&&(l=e6(t)),s.indexOf(n)>=0)c=s.indexOf(n);else{const h=Math.min(r.slidesPerGroupSkip,l);c=h+Math.floor((l-h)/r.slidesPerGroup)}if(c>=s.length&&(c=s.length-1),l===a&&!t.params.loop){c!==i&&(t.snapIndex=c,t.emit("snapIndexChange"));return}if(l===a&&t.params.loop&&t.virtual&&t.params.virtual.enabled){t.realIndex=u(l);return}const f=t.grid&&r.grid&&r.grid.rows>1;let m;if(t.virtual&&r.virtual.enabled&&r.loop)m=u(l);else if(f){const h=t.slides.find(E=>E.column===l);let g=parseInt(h.getAttribute("data-swiper-slide-index"),10);Number.isNaN(g)&&(g=Math.max(t.slides.indexOf(h),0)),m=Math.floor(g/r.grid.rows)}else if(t.slides[l]){const h=t.slides[l].getAttribute("data-swiper-slide-index");h?m=parseInt(h,10):m=l}else m=l;Object.assign(t,{previousSnapIndex:i,snapIndex:c,previousRealIndex:o,realIndex:m,previousIndex:a,activeIndex:l}),t.initialized&&Kv(t),t.emit("activeIndexChange"),t.emit("snapIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&(o!==m&&t.emit("realIndexChange"),t.emit("slideChange"))}function n6(e,t){const n=this,s=n.params;let r=e.closest(`.${s.slideClass}, swiper-slide`);!r&&n.isElement&&t&&t.length>1&&t.includes(e)&&[...t.slice(t.indexOf(e)+1,t.length)].forEach(i=>{!r&&i.matches&&i.matches(`.${s.slideClass}, swiper-slide`)&&(r=i)});let a=!1,o;if(r){for(let i=0;il?u=l:s&&eo?i="next":a"u"&&(t=a.params.speed);const E=Math.min(a.params.slidesPerGroupSkip,o);let b=E+Math.floor((o-E)/a.params.slidesPerGroup);b>=l.length&&(b=l.length-1);const v=-l[b];if(i.normalizeSlideIndex)for(let I=0;I=T&&C=T&&C=T&&(o=I)}if(a.initialized&&o!==f&&(!a.allowSlideNext&&(m?v>a.translate&&v>a.minTranslate():va.translate&&v>a.maxTranslate()&&(f||0)!==o))return!1;o!==(u||0)&&n&&a.emit("beforeSlideChangeStart"),a.updateProgress(v);let _;o>f?_="next":o0?(a._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{h[I?"scrollLeft":"scrollTop"]=C})):h[I?"scrollLeft":"scrollTop"]=C,y&&requestAnimationFrame(()=>{a.wrapperEl.style.scrollSnapType="",a._immediateVirtual=!1});else{if(!a.support.smoothScroll)return Ck({swiper:a,targetPosition:C,side:I?"left":"top"}),!0;h.scrollTo({[I?"left":"top"]:C,behavior:"smooth"})}return!0}const x=Ak().isSafari;return y&&!r&&x&&a.isElement&&a.virtual.update(!1,!1,o),a.setTransition(t),a.setTranslate(v),a.updateActiveIndex(o),a.updateSlidesClasses(),a.emit("beforeTransitionStart",t,s),a.transitionStart(n,_),t===0?a.transitionEnd(n,_):a.animating||(a.animating=!0,a.onSlideToWrapperTransitionEnd||(a.onSlideToWrapperTransitionEnd=function(C){!a||a.destroyed||C.target===this&&(a.wrapperEl.removeEventListener("transitionend",a.onSlideToWrapperTransitionEnd),a.onSlideToWrapperTransitionEnd=null,delete a.onSlideToWrapperTransitionEnd,a.transitionEnd(n,_))}),a.wrapperEl.addEventListener("transitionend",a.onSlideToWrapperTransitionEnd)),!0}function h6(e,t,n,s){e===void 0&&(e=0),n===void 0&&(n=!0),typeof e=="string"&&(e=parseInt(e,10));const r=this;if(r.destroyed)return;typeof t>"u"&&(t=r.params.speed);const a=r.grid&&r.params.grid&&r.params.grid.rows>1;let o=e;if(r.params.loop)if(r.virtual&&r.params.virtual.enabled)o=o+r.virtual.slidesBefore;else{let i;if(a){const m=o*r.params.grid.rows;i=r.slides.find(h=>h.getAttribute("data-swiper-slide-index")*1===m).column}else i=r.getSlideIndexByData(o);const l=a?Math.ceil(r.slides.length/r.params.grid.rows):r.slides.length,{centeredSlides:c}=r.params;let u=r.params.slidesPerView;u==="auto"?u=r.slidesPerViewDynamic():(u=Math.ceil(parseFloat(r.params.slidesPerView,10)),c&&u%2===0&&(u=u+1));let f=l-ih.getAttribute("data-swiper-slide-index")*1===m).column}else o=r.getSlideIndexByData(o)}return requestAnimationFrame(()=>{r.slideTo(o,t,n,s)}),r}function g6(e,t,n){t===void 0&&(t=!0);const s=this,{enabled:r,params:a,animating:o}=s;if(!r||s.destroyed)return s;typeof e>"u"&&(e=s.params.speed);let i=a.slidesPerGroup;a.slidesPerView==="auto"&&a.slidesPerGroup===1&&a.slidesPerGroupAuto&&(i=Math.max(s.slidesPerViewDynamic("current",!0),1));const l=s.activeIndex{s.slideTo(s.activeIndex+l,e,t,n)}),!0}return a.rewind&&s.isEnd?s.slideTo(0,e,t,n):s.slideTo(s.activeIndex+l,e,t,n)}function _6(e,t,n){t===void 0&&(t=!0);const s=this,{params:r,snapGrid:a,slidesGrid:o,rtlTranslate:i,enabled:l,animating:c}=s;if(!l||s.destroyed)return s;typeof e>"u"&&(e=s.params.speed);const u=s.virtual&&r.virtual.enabled;if(r.loop){if(c&&!u&&r.loopPreventsSliding)return!1;s.loopFix({direction:"prev"}),s._clientLeft=s.wrapperEl.clientLeft}const f=i?s.translate:-s.translate;function m(_){return _<0?-Math.floor(Math.abs(_)):Math.floor(_)}const h=m(f),g=a.map(_=>m(_)),E=r.freeMode&&r.freeMode.enabled;let b=a[g.indexOf(h)-1];if(typeof b>"u"&&(r.cssMode||E)){let _;a.forEach((y,S)=>{h>=y&&(_=S)}),typeof _<"u"&&(b=E?a[_]:a[_>0?_-1:_])}let v=0;if(typeof b<"u"&&(v=o.indexOf(b),v<0&&(v=s.activeIndex-1),r.slidesPerView==="auto"&&r.slidesPerGroup===1&&r.slidesPerGroupAuto&&(v=v-s.slidesPerViewDynamic("previous",!0)+1,v=Math.max(v,0))),r.rewind&&s.isBeginning){const _=s.params.virtual&&s.params.virtual.enabled&&s.virtual?s.virtual.slides.length-1:s.slides.length-1;return s.slideTo(_,e,t,n)}else if(r.loop&&s.activeIndex===0&&r.cssMode)return requestAnimationFrame(()=>{s.slideTo(v,e,t,n)}),!0;return s.slideTo(v,e,t,n)}function v6(e,t,n){t===void 0&&(t=!0);const s=this;if(!s.destroyed)return typeof e>"u"&&(e=s.params.speed),s.slideTo(s.activeIndex,e,t,n)}function E6(e,t,n,s){t===void 0&&(t=!0),s===void 0&&(s=.5);const r=this;if(r.destroyed)return;typeof e>"u"&&(e=r.params.speed);let a=r.activeIndex;const o=Math.min(r.params.slidesPerGroupSkip,a),i=o+Math.floor((a-o)/r.params.slidesPerGroup),l=r.rtlTranslate?r.translate:-r.translate;if(l>=r.snapGrid[i]){const c=r.snapGrid[i],u=r.snapGrid[i+1];l-c>(u-c)*s&&(a+=r.params.slidesPerGroup)}else{const c=r.snapGrid[i-1],u=r.snapGrid[i];l-c<=(u-c)*s&&(a-=r.params.slidesPerGroup)}return a=Math.max(a,0),a=Math.min(a,r.slidesGrid.length-1),r.slideTo(a,e,t,n)}function y6(){const e=this;if(e.destroyed)return;const{params:t,slidesEl:n}=e,s=t.slidesPerView==="auto"?e.slidesPerViewDynamic():t.slidesPerView;let r=e.getSlideIndexWhenGrid(e.clickedIndex),a;const o=e.isElement?"swiper-slide":`.${t.slideClass}`,i=e.grid&&e.params.grid&&e.params.grid.rows>1;if(t.loop){if(e.animating)return;a=parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10),t.centeredSlides?e.slideToLoop(a):r>(i?(e.slides.length-s)/2-(e.params.grid.rows-1):e.slides.length-s)?(e.loopFix(),r=e.getSlideIndex(yr(n,`${o}[data-swiper-slide-index="${a}"]`)[0]),Sk(()=>{e.slideTo(r)})):e.slideTo(r)}else e.slideTo(r)}var b6={slideTo:m6,slideToLoop:h6,slideNext:g6,slidePrev:_6,slideReset:v6,slideToClosest:E6,slideToClickedSlide:y6};function S6(e,t){const n=this,{params:s,slidesEl:r}=n;if(!s.loop||n.virtual&&n.params.virtual.enabled)return;const a=()=>{yr(r,`.${s.slideClass}, swiper-slide`).forEach((h,g)=>{h.setAttribute("data-swiper-slide-index",g)})},o=()=>{const m=yr(r,`.${s.slideBlankClass}`);m.forEach(h=>{h.remove()}),m.length>0&&(n.recalcSlides(),n.updateSlides())},i=n.grid&&s.grid&&s.grid.rows>1;s.loopAddBlankSlides&&(s.slidesPerGroup>1||i)&&o();const l=s.slidesPerGroup*(i?s.grid.rows:1),c=n.slides.length%l!==0,u=i&&n.slides.length%s.grid.rows!==0,f=m=>{for(let h=0;h1;u.length"u"?a=c.getSlideIndex(u.find(j=>j.classList.contains(g.slideActiveClass))):T=a;const P=s==="next"||!s,A=s==="prev"||!s;let O=0,M=0;const D=(S?u[a].column:a)+(E&&typeof r>"u"?-v/2+.5:0);if(D=0;U-=1)u[U].column===R&&w.push(U)}else w.push(I-V-1)}}else if(D+v>I-y){M=Math.max(D-(I-y*2),_),C&&(M=Math.max(M,v-I+b+1));for(let j=0;j{R.column===V&&x.push(U)}):x.push(V)}}if(c.__preventObserver__=!0,requestAnimationFrame(()=>{c.__preventObserver__=!1}),c.params.effect==="cards"&&u.length{u[j].swiperLoopMoveDOM=!0,h.prepend(u[j]),u[j].swiperLoopMoveDOM=!1}),P&&x.forEach(j=>{u[j].swiperLoopMoveDOM=!0,h.append(u[j]),u[j].swiperLoopMoveDOM=!1}),c.recalcSlides(),g.slidesPerView==="auto"?c.updateSlides():S&&(w.length>0&&A||x.length>0&&P)&&c.slides.forEach((j,V)=>{c.grid.updateSlide(V,j,c.slides)}),g.watchSlidesProgress&&c.updateSlidesOffset(),n){if(w.length>0&&A){if(typeof t>"u"){const j=c.slidesGrid[T],R=c.slidesGrid[T+O]-j;l?c.setTranslate(c.translate-R):(c.slideTo(T+Math.ceil(O),0,!1,!0),r&&(c.touchEventsData.startTranslate=c.touchEventsData.startTranslate-R,c.touchEventsData.currentTranslate=c.touchEventsData.currentTranslate-R))}else if(r){const j=S?w.length/g.grid.rows:w.length;c.slideTo(c.activeIndex+j,0,!1,!0),c.touchEventsData.currentTranslate=c.translate}}else if(x.length>0&&P)if(typeof t>"u"){const j=c.slidesGrid[T],R=c.slidesGrid[T-M]-j;l?c.setTranslate(c.translate-R):(c.slideTo(T-M,0,!1,!0),r&&(c.touchEventsData.startTranslate=c.touchEventsData.startTranslate-R,c.touchEventsData.currentTranslate=c.touchEventsData.currentTranslate-R))}else{const j=S?x.length/g.grid.rows:x.length;c.slideTo(c.activeIndex-j,0,!1,!0)}}if(c.allowSlidePrev=f,c.allowSlideNext=m,c.controller&&c.controller.control&&!i){const j={slideRealIndex:t,direction:s,setTranslate:r,activeSlideIndex:a,byController:!0};Array.isArray(c.controller.control)?c.controller.control.forEach(V=>{!V.destroyed&&V.params.loop&&V.loopFix({...j,slideTo:V.params.slidesPerView===g.slidesPerView?n:!1})}):c.controller.control instanceof c.constructor&&c.controller.control.params.loop&&c.controller.control.loopFix({...j,slideTo:c.controller.control.params.slidesPerView===g.slidesPerView?n:!1})}c.emit("loopFix")}function T6(){const e=this,{params:t,slidesEl:n}=e;if(!t.loop||!n||e.virtual&&e.params.virtual.enabled)return;e.recalcSlides();const s=[];e.slides.forEach(r=>{const a=typeof r.swiperSlideIndex>"u"?r.getAttribute("data-swiper-slide-index")*1:r.swiperSlideIndex;s[a]=r}),e.slides.forEach(r=>{r.removeAttribute("data-swiper-slide-index")}),s.forEach(r=>{n.append(r)}),e.recalcSlides(),e.slideTo(e.realIndex,0)}var w6={loopCreate:S6,loopFix:C6,loopDestroy:T6};function I6(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 A6(){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}))}var P6={setGrabCursor:I6,unsetGrabCursor:A6};function x6(e,t){t===void 0&&(t=this);function n(s){if(!s||s===Tr()||s===Un())return null;s.assignedSlot&&(s=s.assignedSlot);const r=s.closest(e);return!r&&!s.getRootNode?null:r||n(s.getRootNode().host)}return n(t)}function hT(e,t,n){const s=Un(),{params:r}=e,a=r.edgeSwipeDetection,o=r.edgeSwipeThreshold;return a&&(n<=o||n>=s.innerWidth-o)?a==="prevent"?(t.preventDefault(),!0):!1:!0}function O6(e){const t=this,n=Tr();let s=e;s.originalEvent&&(s=s.originalEvent);const r=t.touchEventsData;if(s.type==="pointerdown"){if(r.pointerId!==null&&r.pointerId!==s.pointerId)return;r.pointerId=s.pointerId}else s.type==="touchstart"&&s.targetTouches.length===1&&(r.touchId=s.targetTouches[0].identifier);if(s.type==="touchstart"){hT(t,s,s.targetTouches[0].pageX);return}const{params:a,touches:o,enabled:i}=t;if(!i||!a.simulateTouch&&s.pointerType==="mouse"||t.animating&&a.preventInteractionOnTransition)return;!t.animating&&a.cssMode&&a.loop&&t.loopFix();let l=s.target;if(a.touchEventsTarget==="wrapper"&&!BW(l,t.wrapperEl)||"which"in s&&s.which===3||"button"in s&&s.button>0||r.isTouched&&r.isMoved)return;const c=!!a.noSwipingClass&&a.noSwipingClass!=="",u=s.composedPath?s.composedPath():s.path;c&&s.target&&s.target.shadowRoot&&u&&(l=u[0]);const f=a.noSwipingSelector?a.noSwipingSelector:`.${a.noSwipingClass}`,m=!!(s.target&&s.target.shadowRoot);if(a.noSwiping&&(m?x6(f,l):l.closest(f))){t.allowClick=!0;return}if(a.swipeHandler&&!l.closest(a.swipeHandler))return;o.currentX=s.pageX,o.currentY=s.pageY;const h=o.currentX,g=o.currentY;if(!hT(t,s,h))return;Object.assign(r,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),o.startX=h,o.startY=g,r.touchStartTime=_p(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,a.threshold>0&&(r.allowThresholdMove=!1);let E=!0;l.matches(r.focusableElements)&&(E=!1,l.nodeName==="SELECT"&&(r.isTouched=!1)),n.activeElement&&n.activeElement.matches(r.focusableElements)&&n.activeElement!==l&&(s.pointerType==="mouse"||s.pointerType!=="mouse"&&!l.matches(r.focusableElements))&&n.activeElement.blur();const b=E&&t.allowTouchMove&&a.touchStartPreventDefault;(a.touchStartForcePreventDefault||b)&&!l.isContentEditable&&s.preventDefault(),a.freeMode&&a.freeMode.enabled&&t.freeMode&&t.animating&&!a.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",s)}function k6(e){const t=Tr(),n=this,s=n.touchEventsData,{params:r,touches:a,rtlTranslate:o,enabled:i}=n;if(!i||!r.simulateTouch&&e.pointerType==="mouse")return;let l=e;if(l.originalEvent&&(l=l.originalEvent),l.type==="pointermove"&&(s.touchId!==null||l.pointerId!==s.pointerId))return;let c;if(l.type==="touchmove"){if(c=[...l.changedTouches].find(w=>w.identifier===s.touchId),!c||c.identifier!==s.touchId)return}else c=l;if(!s.isTouched){s.startMoving&&s.isScrolling&&n.emit("touchMoveOpposite",l);return}const u=c.pageX,f=c.pageY;if(l.preventedByNestedSwiper){a.startX=u,a.startY=f;return}if(!n.allowTouchMove){l.target.matches(s.focusableElements)||(n.allowClick=!1),s.isTouched&&(Object.assign(a,{startX:u,startY:f,currentX:u,currentY:f}),s.touchStartTime=_p());return}if(r.touchReleaseOnEdges&&!r.loop)if(n.isVertical()){if(fa.startY&&n.translate>=n.minTranslate()){s.isTouched=!1,s.isMoved=!1;return}}else{if(o&&(u>a.startX&&-n.translate<=n.maxTranslate()||u=n.minTranslate()))return;if(!o&&(ua.startX&&n.translate>=n.minTranslate()))return}if(t.activeElement&&t.activeElement.matches(s.focusableElements)&&t.activeElement!==l.target&&l.pointerType!=="mouse"&&t.activeElement.blur(),t.activeElement&&l.target===t.activeElement&&l.target.matches(s.focusableElements)){s.isMoved=!0,n.allowClick=!1;return}s.allowTouchCallbacks&&n.emit("touchMove",l),a.previousX=a.currentX,a.previousY=a.currentY,a.currentX=u,a.currentY=f;const m=a.currentX-a.startX,h=a.currentY-a.startY;if(n.params.threshold&&Math.sqrt(m**2+h**2)"u"){let w;n.isHorizontal()&&a.currentY===a.startY||n.isVertical()&&a.currentX===a.startX?s.isScrolling=!1:m*m+h*h>=25&&(w=Math.atan2(Math.abs(h),Math.abs(m))*180/Math.PI,s.isScrolling=n.isHorizontal()?w>r.touchAngle:90-w>r.touchAngle)}if(s.isScrolling&&n.emit("touchMoveOpposite",l),typeof s.startMoving>"u"&&(a.currentX!==a.startX||a.currentY!==a.startY)&&(s.startMoving=!0),s.isScrolling||l.type==="touchmove"&&s.preventTouchMoveFromPointerMove){s.isTouched=!1;return}if(!s.startMoving)return;n.allowClick=!1,!r.cssMode&&l.cancelable&&l.preventDefault(),r.touchMoveStopPropagation&&!r.nested&&l.stopPropagation();let g=n.isHorizontal()?m:h,E=n.isHorizontal()?a.currentX-a.previousX:a.currentY-a.previousY;r.oneWayMovement&&(g=Math.abs(g)*(o?1:-1),E=Math.abs(E)*(o?1:-1)),a.diff=g,g*=r.touchRatio,o&&(g=-g,E=-E);const b=n.touchesDirection;n.swipeDirection=g>0?"prev":"next",n.touchesDirection=E>0?"prev":"next";const v=n.params.loop&&!r.cssMode,_=n.touchesDirection==="next"&&n.allowSlideNext||n.touchesDirection==="prev"&&n.allowSlidePrev;if(!s.isMoved){if(v&&_&&n.loopFix({direction:n.swipeDirection}),s.startTranslate=n.getTranslate(),n.setTransition(0),n.animating){const w=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});n.wrapperEl.dispatchEvent(w)}s.allowMomentumBounce=!1,r.grabCursor&&(n.allowSlideNext===!0||n.allowSlidePrev===!0)&&n.setGrabCursor(!0),n.emit("sliderFirstMove",l)}if(new Date().getTime(),r._loopSwapReset!==!1&&s.isMoved&&s.allowThresholdMove&&b!==n.touchesDirection&&v&&_&&Math.abs(g)>=1){Object.assign(a,{startX:u,startY:f,currentX:u,currentY:f,startTranslate:s.currentTranslate}),s.loopSwapReset=!0,s.startTranslate=s.currentTranslate;return}n.emit("sliderMove",l),s.isMoved=!0,s.currentTranslate=g+s.startTranslate;let y=!0,S=r.resistanceRatio;if(r.touchReleaseOnEdges&&(S=0),g>0?(v&&_&&s.allowThresholdMove&&s.currentTranslate>(r.centeredSlides?n.minTranslate()-n.slidesSizesGrid[n.activeIndex+1]-(r.slidesPerView!=="auto"&&n.slides.length-r.slidesPerView>=2?n.slidesSizesGrid[n.activeIndex+1]+n.params.spaceBetween:0)-n.params.spaceBetween:n.minTranslate())&&n.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),s.currentTranslate>n.minTranslate()&&(y=!1,r.resistance&&(s.currentTranslate=n.minTranslate()-1+(-n.minTranslate()+s.startTranslate+g)**S))):g<0&&(v&&_&&s.allowThresholdMove&&s.currentTranslate<(r.centeredSlides?n.maxTranslate()+n.slidesSizesGrid[n.slidesSizesGrid.length-1]+n.params.spaceBetween+(r.slidesPerView!=="auto"&&n.slides.length-r.slidesPerView>=2?n.slidesSizesGrid[n.slidesSizesGrid.length-1]+n.params.spaceBetween:0):n.maxTranslate())&&n.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:n.slides.length-(r.slidesPerView==="auto"?n.slidesPerViewDynamic():Math.ceil(parseFloat(r.slidesPerView,10)))}),s.currentTranslates.startTranslate&&(s.currentTranslate=s.startTranslate),!n.allowSlidePrev&&!n.allowSlideNext&&(s.currentTranslate=s.startTranslate),r.threshold>0)if(Math.abs(g)>r.threshold||s.allowThresholdMove){if(!s.allowThresholdMove){s.allowThresholdMove=!0,a.startX=a.currentX,a.startY=a.currentY,s.currentTranslate=s.startTranslate,a.diff=n.isHorizontal()?a.currentX-a.startX:a.currentY-a.startY;return}}else{s.currentTranslate=s.startTranslate;return}!r.followFinger||r.cssMode||((r.freeMode&&r.freeMode.enabled&&n.freeMode||r.watchSlidesProgress)&&(n.updateActiveIndex(),n.updateSlidesClasses()),r.freeMode&&r.freeMode.enabled&&n.freeMode&&n.freeMode.onTouchMove(),n.updateProgress(s.currentTranslate),n.setTranslate(s.currentTranslate))}function N6(e){const t=this,n=t.touchEventsData;let s=e;s.originalEvent&&(s=s.originalEvent);let r;if(s.type==="touchend"||s.type==="touchcancel"){if(r=[...s.changedTouches].find(w=>w.identifier===n.touchId),!r||r.identifier!==n.touchId)return}else{if(n.touchId!==null||s.pointerId!==n.pointerId)return;r=s}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(s.type)&&!(["pointercancel","contextmenu"].includes(s.type)&&(t.browser.isSafari||t.browser.isWebView)))return;n.pointerId=null,n.touchId=null;const{params:o,touches:i,rtlTranslate:l,slidesGrid:c,enabled:u}=t;if(!u||!o.simulateTouch&&s.pointerType==="mouse")return;if(n.allowTouchCallbacks&&t.emit("touchEnd",s),n.allowTouchCallbacks=!1,!n.isTouched){n.isMoved&&o.grabCursor&&t.setGrabCursor(!1),n.isMoved=!1,n.startMoving=!1;return}o.grabCursor&&n.isMoved&&n.isTouched&&(t.allowSlideNext===!0||t.allowSlidePrev===!0)&&t.setGrabCursor(!1);const f=_p(),m=f-n.touchStartTime;if(t.allowClick){const w=s.path||s.composedPath&&s.composedPath();t.updateClickedSlide(w&&w[0]||s.target,w),t.emit("tap click",s),m<300&&f-n.lastClickTime<300&&t.emit("doubleTap doubleClick",s)}if(n.lastClickTime=_p(),Sk(()=>{t.destroyed||(t.allowClick=!0)}),!n.isTouched||!n.isMoved||!t.swipeDirection||i.diff===0&&!n.loopSwapReset||n.currentTranslate===n.startTranslate&&!n.loopSwapReset){n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;return}n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;let h;if(o.followFinger?h=l?t.translate:-t.translate:h=-n.currentTranslate,o.cssMode)return;if(o.freeMode&&o.freeMode.enabled){t.freeMode.onTouchEnd({currentPos:h});return}const g=h>=-t.maxTranslate()&&!t.params.loop;let E=0,b=t.slidesSizesGrid[0];for(let w=0;w=c[w]&&h=c[w])&&(E=w,b=c[c.length-1]-c[c.length-2])}let v=null,_=null;o.rewind&&(t.isBeginning?_=o.virtual&&o.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(v=0));const y=(h-c[E])/b,S=Eo.longSwipesMs){if(!o.longSwipes){t.slideTo(t.activeIndex);return}t.swipeDirection==="next"&&(y>=o.longSwipesRatio?t.slideTo(o.rewind&&t.isEnd?v:E+S):t.slideTo(E)),t.swipeDirection==="prev"&&(y>1-o.longSwipesRatio?t.slideTo(E+S):_!==null&&y<0&&Math.abs(y)>o.longSwipesRatio?t.slideTo(_):t.slideTo(E))}else{if(!o.shortSwipes){t.slideTo(t.activeIndex);return}t.navigation&&(s.target===t.navigation.nextEl||s.target===t.navigation.prevEl)?s.target===t.navigation.nextEl?t.slideTo(E+S):t.slideTo(E):(t.swipeDirection==="next"&&t.slideTo(v!==null?v:E+S),t.swipeDirection==="prev"&&t.slideTo(_!==null?_:E))}}function gT(){const e=this,{params:t,el:n}=e;if(n&&n.offsetWidth===0)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:s,allowSlidePrev:r,snapGrid:a}=e,o=e.virtual&&e.params.virtual.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();const i=o&&t.loop;(t.slidesPerView==="auto"||t.slidesPerView>1)&&e.isEnd&&!e.isBeginning&&!e.params.centeredSlides&&!i?e.slideTo(e.slides.length-1,0,!1,!0):e.params.loop&&!o?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=r,e.allowSlideNext=s,e.params.watchOverflow&&a!==e.snapGrid&&e.checkOverflow()}function R6(e){const t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function L6(){const e=this,{wrapperEl:t,rtlTranslate:n,enabled:s}=e;if(!s)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 r;const a=e.maxTranslate()-e.minTranslate();a===0?r=0:r=(e.translate-e.minTranslate())/a,r!==e.progress&&e.updateProgress(n?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}function M6(e){const t=this;uf(t,e.target),!(t.params.cssMode||t.params.slidesPerView!=="auto"&&!t.params.autoHeight)&&t.update()}function D6(){const e=this;e.documentTouchHandlerProceeded||(e.documentTouchHandlerProceeded=!0,e.params.touchReleaseOnEdges&&(e.el.style.touchAction="auto"))}const xk=(e,t)=>{const n=Tr(),{params:s,el:r,wrapperEl:a,device:o}=e,i=!!s.nested,l=t==="on"?"addEventListener":"removeEventListener",c=t;!r||typeof r=="string"||(n[l]("touchstart",e.onDocumentTouchStart,{passive:!1,capture:i}),r[l]("touchstart",e.onTouchStart,{passive:!1}),r[l]("pointerdown",e.onTouchStart,{passive:!1}),n[l]("touchmove",e.onTouchMove,{passive:!1,capture:i}),n[l]("pointermove",e.onTouchMove,{passive:!1,capture:i}),n[l]("touchend",e.onTouchEnd,{passive:!0}),n[l]("pointerup",e.onTouchEnd,{passive:!0}),n[l]("pointercancel",e.onTouchEnd,{passive:!0}),n[l]("touchcancel",e.onTouchEnd,{passive:!0}),n[l]("pointerout",e.onTouchEnd,{passive:!0}),n[l]("pointerleave",e.onTouchEnd,{passive:!0}),n[l]("contextmenu",e.onTouchEnd,{passive:!0}),(s.preventClicks||s.preventClicksPropagation)&&r[l]("click",e.onClick,!0),s.cssMode&&a[l]("scroll",e.onScroll),s.updateOnWindowResize?e[c](o.ios||o.android?"resize orientationchange observerUpdate":"resize observerUpdate",gT,!0):e[c]("observerUpdate",gT,!0),r[l]("load",e.onLoad,{capture:!0}))};function j6(){const e=this,{params:t}=e;e.onTouchStart=O6.bind(e),e.onTouchMove=k6.bind(e),e.onTouchEnd=N6.bind(e),e.onDocumentTouchStart=D6.bind(e),t.cssMode&&(e.onScroll=L6.bind(e)),e.onClick=R6.bind(e),e.onLoad=M6.bind(e),xk(e,"on")}function B6(){xk(this,"off")}var F6={attachEvents:j6,detachEvents:B6};const _T=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;function U6(){const e=this,{realIndex:t,initialized:n,params:s,el:r}=e,a=s.breakpoints;if(!a||a&&Object.keys(a).length===0)return;const o=Tr(),i=s.breakpointsBase==="window"||!s.breakpointsBase?s.breakpointsBase:"container",l=["window","container"].includes(s.breakpointsBase)||!s.breakpointsBase?e.el:o.querySelector(s.breakpointsBase),c=e.getBreakpoint(a,i,l);if(!c||e.currentBreakpoint===c)return;const f=(c in a?a[c]:void 0)||e.originalParams,m=_T(e,s),h=_T(e,f),g=e.params.grabCursor,E=f.grabCursor,b=s.enabled;m&&!h?(r.classList.remove(`${s.containerModifierClass}grid`,`${s.containerModifierClass}grid-column`),e.emitContainerClasses()):!m&&h&&(r.classList.add(`${s.containerModifierClass}grid`),(f.grid.fill&&f.grid.fill==="column"||!f.grid.fill&&s.grid.fill==="column")&&r.classList.add(`${s.containerModifierClass}grid-column`),e.emitContainerClasses()),g&&!E?e.unsetGrabCursor():!g&&E&&e.setGrabCursor(),["navigation","pagination","scrollbar"].forEach(x=>{if(typeof f[x]>"u")return;const I=s[x]&&s[x].enabled,C=f[x]&&f[x].enabled;I&&!C&&e[x].disable(),!I&&C&&e[x].enable()});const v=f.direction&&f.direction!==s.direction,_=s.loop&&(f.slidesPerView!==s.slidesPerView||v),y=s.loop;v&&n&&e.changeDirection(),us(e.params,f);const S=e.params.enabled,w=e.params.loop;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),b&&!S?e.disable():!b&&S&&e.enable(),e.currentBreakpoint=c,e.emit("_beforeBreakpoint",f),n&&(_?(e.loopDestroy(),e.loopCreate(t),e.updateSlides()):!y&&w?(e.loopCreate(t),e.updateSlides()):y&&!w&&e.loopDestroy()),e.emit("breakpoint",f)}function $6(e,t,n){if(t===void 0&&(t="window"),!e||t==="container"&&!n)return;let s=!1;const r=Un(),a=t==="window"?r.innerHeight:n.clientHeight,o=Object.keys(e).map(i=>{if(typeof i=="string"&&i.indexOf("@")===0){const l=parseFloat(i.substr(1));return{value:a*l,point:i}}return{value:i,point:i}});o.sort((i,l)=>parseInt(i.value,10)-parseInt(l.value,10));for(let i=0;i{typeof s=="object"?Object.keys(s).forEach(r=>{s[r]&&n.push(t+r)}):typeof s=="string"&&n.push(t+s)}),n}function H6(){const e=this,{classNames:t,params:n,rtl:s,el:r,device:a}=e,o=V6(["initialized",n.direction,{"free-mode":e.params.freeMode&&n.freeMode.enabled},{autoheight:n.autoHeight},{rtl:s},{grid:n.grid&&n.grid.rows>1},{"grid-column":n.grid&&n.grid.rows>1&&n.grid.fill==="column"},{android:a.android},{ios:a.ios},{"css-mode":n.cssMode},{centered:n.cssMode&&n.centeredSlides},{"watch-progress":n.watchSlidesProgress}],n.containerModifierClass);t.push(...o),r.classList.add(...t),e.emitContainerClasses()}function W6(){const e=this,{el:t,classNames:n}=e;!t||typeof t=="string"||(t.classList.remove(...n),e.emitContainerClasses())}var z6={addClasses:H6,removeClasses:W6};function Y6(){const e=this,{isLocked:t,params:n}=e,{slidesOffsetBefore:s}=n;if(s){const r=e.slides.length-1,a=e.slidesGrid[r]+e.slidesSizesGrid[r]+s*2;e.isLocked=e.size>a}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")}var q6={checkOverflow:Y6},Qv={init:!0,direction:"horizontal",oneWayMovement:!1,swiperElementNodeName:"SWIPER-CONTAINER",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",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,loopAddBlankSlides:!0,loopAdditionalSlides:0,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",slideBlankClass:"swiper-slide-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function K6(e,t){return function(s){s===void 0&&(s={});const r=Object.keys(s)[0],a=s[r];if(typeof a!="object"||a===null){us(t,s);return}if(e[r]===!0&&(e[r]={enabled:!0}),r==="navigation"&&e[r]&&e[r].enabled&&!e[r].prevEl&&!e[r].nextEl&&(e[r].auto=!0),["pagination","scrollbar"].indexOf(r)>=0&&e[r]&&e[r].enabled&&!e[r].el&&(e[r].auto=!0),!(r in e&&"enabled"in a)){us(t,s);return}typeof e[r]=="object"&&!("enabled"in e[r])&&(e[r].enabled=!0),e[r]||(e[r]={enabled:!1}),us(t,s)}}const _g={eventsEmitter:zW,update:s6,translate:c6,transition:p6,slide:b6,loop:w6,grabCursor:P6,events:F6,breakpoints:G6,checkOverflow:q6,classes:z6},vg={};let bb=class Nr{constructor(){let t,n;for(var s=arguments.length,r=new Array(s),a=0;a1){const u=[];return o.querySelectorAll(n.el).forEach(f=>{const m=us({},n,{el:f});u.push(new Nr(m))}),u}const i=this;i.__swiper__=!0,i.support=wk(),i.device=Ik({userAgent:n.userAgent}),i.browser=Ak(),i.eventsListeners={},i.eventsAnyListeners=[],i.modules=[...i.__modules__],n.modules&&Array.isArray(n.modules)&&i.modules.push(...n.modules);const l={};i.modules.forEach(u=>{u({params:n,swiper:i,extendParams:K6(n,l),on:i.on.bind(i),once:i.once.bind(i),off:i.off.bind(i),emit:i.emit.bind(i)})});const c=us({},Qv,l);return i.params=us({},c,vg,n),i.originalParams=us({},i.params),i.passedParams=us({},n),i.params&&i.params.on&&Object.keys(i.params.on).forEach(u=>{i.on(u,i.params.on[u])}),i.params&&i.params.onAny&&i.onAny(i.params.onAny),Object.assign(i,{enabled:i.params.enabled,el:t,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,pointerId:null,touchId:null},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}getDirectionLabel(t){return this.isHorizontal()?t:{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"}[t]}getSlideIndex(t){const{slidesEl:n,params:s}=this,r=yr(n,`.${s.slideClass}, swiper-slide`),a=yp(r[0]);return yp(t)-a}getSlideIndexByData(t){return this.getSlideIndex(this.slides.find(n=>n.getAttribute("data-swiper-slide-index")*1===t))}getSlideIndexWhenGrid(t){return this.grid&&this.params.grid&&this.params.grid.rows>1&&(this.params.grid.fill==="column"?t=Math.floor(t/this.params.grid.rows):this.params.grid.fill==="row"&&(t=t%Math.ceil(this.slides.length/this.params.grid.rows))),t}recalcSlides(){const t=this,{slidesEl:n,params:s}=t;t.slides=yr(n,`.${s.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 s=this;t=Math.min(Math.max(t,0),1);const r=s.minTranslate(),o=(s.maxTranslate()-r)*t+r;s.translateTo(o,typeof n>"u"?0:n),s.updateActiveIndex(),s.updateSlidesClasses()}emitContainerClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const n=t.el.className.split(" ").filter(s=>s.indexOf("swiper")===0||s.indexOf(t.params.containerModifierClass)===0);t.emit("_containerClasses",n.join(" "))}getSlideClasses(t){const n=this;return n.destroyed?"":t.className.split(" ").filter(s=>s.indexOf("swiper-slide")===0||s.indexOf(n.params.slideClass)===0).join(" ")}emitSlidesClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const n=[];t.slides.forEach(s=>{const r=t.getSlideClasses(s);n.push({slideEl:s,classNames:r}),t.emit("_slideClass",s,r)}),t.emit("_slideClasses",n)}slidesPerViewDynamic(t,n){t===void 0&&(t="current"),n===void 0&&(n=!1);const s=this,{params:r,slides:a,slidesGrid:o,slidesSizesGrid:i,size:l,activeIndex:c}=s;let u=1;if(typeof r.slidesPerView=="number")return r.slidesPerView;if(r.centeredSlides){let f=a[c]?Math.ceil(a[c].swiperSlideSize):0,m;for(let h=c+1;hl&&(m=!0));for(let h=c-1;h>=0;h-=1)a[h]&&!m&&(f+=a[h].swiperSlideSize,u+=1,f>l&&(m=!0))}else if(t==="current")for(let f=c+1;f=0;f-=1)o[c]-o[f]{o.complete&&uf(t,o)}),t.updateSize(),t.updateSlides(),t.updateProgress(),t.updateSlidesClasses();function r(){const o=t.rtlTranslate?t.translate*-1:t.translate,i=Math.min(Math.max(o,t.maxTranslate()),t.minTranslate());t.setTranslate(i),t.updateActiveIndex(),t.updateSlidesClasses()}let a;if(s.freeMode&&s.freeMode.enabled&&!s.cssMode)r(),s.autoHeight&&t.updateAutoHeight();else{if((s.slidesPerView==="auto"||s.slidesPerView>1)&&t.isEnd&&!s.centeredSlides){const o=t.virtual&&s.virtual.enabled?t.virtual.slides:t.slides;a=t.slideTo(o.length-1,0,!1,!0)}else a=t.slideTo(t.activeIndex,0,!1,!0);a||r()}s.watchOverflow&&n!==t.snapGrid&&t.checkOverflow(),t.emit("update")}changeDirection(t,n){n===void 0&&(n=!0);const s=this,r=s.params.direction;return t||(t=r==="horizontal"?"vertical":"horizontal"),t===r||t!=="horizontal"&&t!=="vertical"||(s.el.classList.remove(`${s.params.containerModifierClass}${r}`),s.el.classList.add(`${s.params.containerModifierClass}${t}`),s.emitContainerClasses(),s.params.direction=t,s.slides.forEach(a=>{t==="vertical"?a.style.width="":a.style.height=""}),s.emit("changeDirection"),n&&s.update()),s}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 s=t||n.params.el;if(typeof s=="string"&&(s=document.querySelector(s)),!s)return!1;s.swiper=n,s.parentNode&&s.parentNode.host&&s.parentNode.host.nodeName===n.params.swiperElementNodeName.toUpperCase()&&(n.isElement=!0);const r=()=>`.${(n.params.wrapperClass||"").trim().split(" ").join(".")}`;let o=s&&s.shadowRoot&&s.shadowRoot.querySelector?s.shadowRoot.querySelector(r()):yr(s,r())[0];return!o&&n.params.createElements&&(o=Ep("div",n.params.wrapperClass),s.append(o),yr(s,`.${n.params.slideClass}`).forEach(i=>{o.append(i)})),Object.assign(n,{el:s,wrapperEl:o,slidesEl:n.isElement&&!s.parentNode.host.slideSlots?s.parentNode.host:o,hostEl:n.isElement?s.parentNode.host:s,mounted:!0,rtl:s.dir.toLowerCase()==="rtl"||ga(s,"direction")==="rtl",rtlTranslate:n.params.direction==="horizontal"&&(s.dir.toLowerCase()==="rtl"||ga(s,"direction")==="rtl"),wrongRTL:ga(o,"display")==="-webkit-box"}),!0}init(t){const n=this;if(n.initialized||n.mount(t)===!1)return n;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(void 0,!0),n.attachEvents();const r=[...n.el.querySelectorAll('[loading="lazy"]')];return n.isElement&&r.push(...n.hostEl.querySelectorAll('[loading="lazy"]')),r.forEach(a=>{a.complete?uf(n,a):a.addEventListener("load",o=>{uf(n,o.target)})}),Kv(n),n.initialized=!0,Kv(n),n.emit("init"),n.emit("afterInit"),n}destroy(t,n){t===void 0&&(t=!0),n===void 0&&(n=!0);const s=this,{params:r,el:a,wrapperEl:o,slides:i}=s;return typeof s.params>"u"||s.destroyed||(s.emit("beforeDestroy"),s.initialized=!1,s.detachEvents(),r.loop&&s.loopDestroy(),n&&(s.removeClasses(),a&&typeof a!="string"&&a.removeAttribute("style"),o&&o.removeAttribute("style"),i&&i.length&&i.forEach(l=>{l.classList.remove(r.slideVisibleClass,r.slideFullyVisibleClass,r.slideActiveClass,r.slideNextClass,r.slidePrevClass),l.removeAttribute("style"),l.removeAttribute("data-swiper-slide-index")})),s.emit("destroy"),Object.keys(s.eventsListeners).forEach(l=>{s.off(l)}),t!==!1&&(s.el&&typeof s.el!="string"&&(s.el.swiper=null),RW(s)),s.destroyed=!0),null}static extendDefaults(t){us(vg,t)}static get extendedDefaults(){return vg}static get defaults(){return Qv}static installModule(t){Nr.prototype.__modules__||(Nr.prototype.__modules__=[]);const n=Nr.prototype.__modules__;typeof t=="function"&&n.indexOf(t)<0&&n.push(t)}static use(t){return Array.isArray(t)?(t.forEach(n=>Nr.installModule(n)),Nr):(Nr.installModule(t),Nr)}};Object.keys(_g).forEach(e=>{Object.keys(_g[e]).forEach(t=>{bb.prototype[t]=_g[e][t]})});bb.use([HW,WW]);const Ok=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","swiperElementNodeName","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","breakpointsBase","_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","loopAdditionalSlides","loopAddBlankSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideFullyVisibleClass","slideNextClass","slidePrevClass","slideBlankClass","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 xo(e){return typeof e=="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"&&!e.__swiper__}function Fi(e,t){const n=["__proto__","constructor","prototype"];Object.keys(t).filter(s=>n.indexOf(s)<0).forEach(s=>{typeof e[s]>"u"?e[s]=t[s]:xo(t[s])&&xo(e[s])&&Object.keys(t[s]).length>0?t[s].__swiper__?e[s]=t[s]:Fi(e[s],t[s]):e[s]=t[s]})}function kk(e){return e===void 0&&(e={}),e.navigation&&typeof e.navigation.nextEl>"u"&&typeof e.navigation.prevEl>"u"}function Nk(e){return e===void 0&&(e={}),e.pagination&&typeof e.pagination.el>"u"}function Rk(e){return e===void 0&&(e={}),e.scrollbar&&typeof e.scrollbar.el>"u"}function Lk(e){e===void 0&&(e="");const t=e.split(" ").map(s=>s.trim()).filter(s=>!!s),n=[];return t.forEach(s=>{n.indexOf(s)<0&&n.push(s)}),n.join(" ")}function Q6(e){return e===void 0&&(e=""),e?e.includes("swiper-wrapper")?e:`swiper-wrapper ${e}`:"swiper-wrapper"}function X6(e){let{swiper:t,slides:n,passedParams:s,changedParams:r,nextEl:a,prevEl:o,scrollbarEl:i,paginationEl:l}=e;const c=r.filter(T=>T!=="children"&&T!=="direction"&&T!=="wrapperClass"),{params:u,pagination:f,navigation:m,scrollbar:h,virtual:g,thumbs:E}=t;let b,v,_,y,S,w,x,I;r.includes("thumbs")&&s.thumbs&&s.thumbs.swiper&&!s.thumbs.swiper.destroyed&&u.thumbs&&(!u.thumbs.swiper||u.thumbs.swiper.destroyed)&&(b=!0),r.includes("controller")&&s.controller&&s.controller.control&&u.controller&&!u.controller.control&&(v=!0),r.includes("pagination")&&s.pagination&&(s.pagination.el||l)&&(u.pagination||u.pagination===!1)&&f&&!f.el&&(_=!0),r.includes("scrollbar")&&s.scrollbar&&(s.scrollbar.el||i)&&(u.scrollbar||u.scrollbar===!1)&&h&&!h.el&&(y=!0),r.includes("navigation")&&s.navigation&&(s.navigation.prevEl||o)&&(s.navigation.nextEl||a)&&(u.navigation||u.navigation===!1)&&m&&!m.prevEl&&!m.nextEl&&(S=!0);const C=T=>{t[T]&&(t[T].destroy(),T==="navigation"?(t.isElement&&(t[T].prevEl.remove(),t[T].nextEl.remove()),u[T].prevEl=void 0,u[T].nextEl=void 0,t[T].prevEl=void 0,t[T].nextEl=void 0):(t.isElement&&t[T].el.remove(),u[T].el=void 0,t[T].el=void 0))};r.includes("loop")&&t.isElement&&(u.loop&&!s.loop?w=!0:!u.loop&&s.loop?x=!0:I=!0),c.forEach(T=>{if(xo(u[T])&&xo(s[T]))Object.assign(u[T],s[T]),(T==="navigation"||T==="pagination"||T==="scrollbar")&&"enabled"in s[T]&&!s[T].enabled&&C(T);else{const P=s[T];(P===!0||P===!1)&&(T==="navigation"||T==="pagination"||T==="scrollbar")?P===!1&&C(T):u[T]=s[T]}}),c.includes("controller")&&!v&&t.controller&&t.controller.control&&u.controller&&u.controller.control&&(t.controller.control=u.controller.control),r.includes("children")&&n&&g&&u.virtual.enabled?(g.slides=n,g.update(!0)):r.includes("virtual")&&g&&u.virtual.enabled&&(n&&(g.slides=n),g.update(!0)),r.includes("children")&&n&&u.loop&&(I=!0),b&&E.init()&&E.update(!0),v&&(t.controller.control=u.controller.control),_&&(t.isElement&&(!l||typeof l=="string")&&(l=document.createElement("div"),l.classList.add("swiper-pagination"),l.part.add("pagination"),t.el.appendChild(l)),l&&(u.pagination.el=l),f.init(),f.render(),f.update()),y&&(t.isElement&&(!i||typeof i=="string")&&(i=document.createElement("div"),i.classList.add("swiper-scrollbar"),i.part.add("scrollbar"),t.el.appendChild(i)),i&&(u.scrollbar.el=i),h.init(),h.updateSize(),h.setTranslate()),S&&(t.isElement&&((!a||typeof a=="string")&&(a=document.createElement("div"),a.classList.add("swiper-button-next"),bp(a,t.hostEl.constructor.nextButtonSvg),a.part.add("button-next"),t.el.appendChild(a)),(!o||typeof o=="string")&&(o=document.createElement("div"),o.classList.add("swiper-button-prev"),bp(o,t.hostEl.constructor.prevButtonSvg),o.part.add("button-prev"),t.el.appendChild(o))),a&&(u.navigation.nextEl=a),o&&(u.navigation.prevEl=o),m.init(),m.update()),r.includes("allowSlideNext")&&(t.allowSlideNext=s.allowSlideNext),r.includes("allowSlidePrev")&&(t.allowSlidePrev=s.allowSlidePrev),r.includes("direction")&&t.changeDirection(s.direction,!1),(w||I)&&t.loopDestroy(),(x||I)&&t.loopCreate(),t.update()}function J6(e,t){e===void 0&&(e={}),t===void 0&&(t=!0);const n={on:{}},s={},r={};Fi(n,Qv),n._emitClasses=!0,n.init=!1;const a={},o=Ok.map(l=>l.replace(/_/,"")),i=Object.assign({},e);return Object.keys(i).forEach(l=>{typeof e[l]>"u"||(o.indexOf(l)>=0?xo(e[l])?(n[l]={},r[l]={},Fi(n[l],e[l]),Fi(r[l],e[l])):(n[l]=e[l],r[l]=e[l]):l.search(/on[A-Z]/)===0&&typeof e[l]=="function"?t?s[`${l[2].toLowerCase()}${l.substr(3)}`]=e[l]:n.on[`${l[2].toLowerCase()}${l.substr(3)}`]=e[l]:a[l]=e[l])}),["navigation","pagination","scrollbar"].forEach(l=>{n[l]===!0&&(n[l]={}),n[l]===!1&&delete n[l]}),{params:n,passedParams:r,rest:a,events:s}}function Z6(e,t){let{el:n,nextEl:s,prevEl:r,paginationEl:a,scrollbarEl:o,swiper:i}=e;kk(t)&&s&&r&&(i.params.navigation.nextEl=s,i.originalParams.navigation.nextEl=s,i.params.navigation.prevEl=r,i.originalParams.navigation.prevEl=r),Nk(t)&&a&&(i.params.pagination.el=a,i.originalParams.pagination.el=a),Rk(t)&&o&&(i.params.scrollbar.el=o,i.originalParams.scrollbar.el=o),i.init(n)}function e8(e,t,n,s,r){const a=[];if(!t)return a;const o=l=>{a.indexOf(l)<0&&a.push(l)};if(n&&s){const l=s.map(r),c=n.map(r);l.join("")!==c.join("")&&o("children"),s.length!==n.length&&o("children")}return Ok.filter(l=>l[0]==="_").map(l=>l.replace(/_/,"")).forEach(l=>{if(l in e&&l in t)if(xo(e[l])&&xo(t[l])){const c=Object.keys(e[l]),u=Object.keys(t[l]);c.length!==u.length?o(l):(c.forEach(f=>{e[l][f]!==t[l][f]&&o(l)}),u.forEach(f=>{e[l][f]!==t[l][f]&&o(l)}))}else e[l]!==t[l]&&o(l)}),a}const t8=e=>{!e||e.destroyed||!e.params.virtual||e.params.virtual&&!e.params.virtual.enabled||(e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.emit("_virtualUpdated"),e.parallax&&e.params.parallax&&e.params.parallax.enabled&&e.parallax.setTranslate())};function Sp(){return Sp=Object.assign?Object.assign.bind():function(e){for(var t=1;t{Mk(n)?t.push(n):n.props&&n.props.children&&Dk(n.props.children).forEach(s=>t.push(s))}),t}function n8(e){const t=[],n={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return he.Children.toArray(e).forEach(s=>{if(Mk(s))t.push(s);else if(s.props&&s.props.slot&&n[s.props.slot])n[s.props.slot].push(s);else if(s.props&&s.props.children){const r=Dk(s.props.children);r.length>0?r.forEach(a=>t.push(a)):n["container-end"].push(s)}else n["container-end"].push(s)}),{slides:t,slots:n}}function s8(e,t,n){if(!n)return null;const s=u=>{let f=u;return u<0?f=t.length+u:f>=t.length&&(f=f-t.length),f},r=e.isHorizontal()?{[e.rtlTranslate?"right":"left"]:`${n.offset}px`}:{top:`${n.offset}px`},{from:a,to:o}=n,i=e.params.loop?-t.length:0,l=e.params.loop?t.length*2:t.length,c=[];for(let u=i;u=a&&u<=o&&c.push(t[s(u)]);return c.map((u,f)=>he.cloneElement(u,{swiper:e,style:r,key:u.props.virtualIndex||u.key||`slide-${f}`}))}function Ac(e,t){return typeof window>"u"?p.useEffect(e,t):p.useLayoutEffect(e,t)}const vT=p.createContext(null),r8=p.createContext(null),jk=p.forwardRef(function(e,t){let{className:n,tag:s="div",wrapperTag:r="div",children:a,onSwiper:o,...i}=e===void 0?{}:e,l=!1;const[c,u]=p.useState("swiper"),[f,m]=p.useState(null),[h,g]=p.useState(!1),E=p.useRef(!1),b=p.useRef(null),v=p.useRef(null),_=p.useRef(null),y=p.useRef(null),S=p.useRef(null),w=p.useRef(null),x=p.useRef(null),I=p.useRef(null),{params:C,passedParams:T,rest:P,events:A}=J6(i),{slides:O,slots:M}=n8(a),k=()=>{g(!h)};Object.assign(C.on,{_containerClasses(U,G){u(G)}});const D=()=>{Object.assign(C.on,A),l=!0;const U={...C};if(delete U.wrapperClass,v.current=new bb(U),v.current.virtual&&v.current.params.virtual.enabled){v.current.virtual.slides=O;const G={cache:!1,slides:O,renderExternal:m,renderExternalUpdate:!1};Fi(v.current.params.virtual,G),Fi(v.current.originalParams.virtual,G)}};b.current||D(),v.current&&v.current.on("_beforeBreakpoint",k);const j=()=>{l||!A||!v.current||Object.keys(A).forEach(U=>{v.current.on(U,A[U])})},V=()=>{!A||!v.current||Object.keys(A).forEach(U=>{v.current.off(U,A[U])})};p.useEffect(()=>()=>{v.current&&v.current.off("_beforeBreakpoint",k)}),p.useEffect(()=>{!E.current&&v.current&&(v.current.emitSlidesClasses(),E.current=!0)}),Ac(()=>{if(t&&(t.current=b.current),!!b.current)return v.current.destroyed&&D(),Z6({el:b.current,nextEl:S.current,prevEl:w.current,paginationEl:x.current,scrollbarEl:I.current,swiper:v.current},C),o&&!v.current.destroyed&&o(v.current),()=>{v.current&&!v.current.destroyed&&v.current.destroy(!0,!1)}},[]),Ac(()=>{j();const U=e8(T,_.current,O,y.current,G=>G.key);return _.current=T,y.current=O,U.length&&v.current&&!v.current.destroyed&&X6({swiper:v.current,slides:O,passedParams:T,changedParams:U,nextEl:S.current,prevEl:w.current,scrollbarEl:I.current,paginationEl:x.current}),()=>{V()}}),Ac(()=>{t8(v.current)},[f]);function R(){return C.virtual?s8(v.current,O,f):O.map((U,G)=>he.cloneElement(U,{swiper:v.current,swiperSlideIndex:G}))}return he.createElement(s,Sp({ref:b,className:Lk(`${c}${n?` ${n}`:""}`)},P),he.createElement(r8.Provider,{value:v.current},M["container-start"],he.createElement(r,{className:Q6(C.wrapperClass)},M["wrapper-start"],R(),M["wrapper-end"]),kk(C)&&he.createElement(he.Fragment,null,he.createElement("div",{ref:w,className:"swiper-button-prev"}),he.createElement("div",{ref:S,className:"swiper-button-next"})),Rk(C)&&he.createElement("div",{ref:I,className:"swiper-scrollbar"}),Nk(C)&&he.createElement("div",{ref:x,className:"swiper-pagination"}),M["container-end"]))});jk.displayName="Swiper";const Bk=p.forwardRef(function(e,t){let{tag:n="div",children:s,className:r="",swiper:a,zoom:o,lazy:i,virtualIndex:l,swiperSlideIndex:c,...u}=e===void 0?{}:e;const f=p.useRef(null),[m,h]=p.useState("swiper-slide"),[g,E]=p.useState(!1);function b(S,w,x){w===f.current&&h(x)}Ac(()=>{if(typeof c<"u"&&(f.current.swiperSlideIndex=c),t&&(t.current=f.current),!(!f.current||!a)){if(a.destroyed){m!=="swiper-slide"&&h("swiper-slide");return}return a.on("_slideClass",b),()=>{a&&a.off("_slideClass",b)}}}),Ac(()=>{a&&f.current&&!a.destroyed&&h(a.getSlideClasses(f.current))},[a]);const v={isActive:m.indexOf("swiper-slide-active")>=0,isVisible:m.indexOf("swiper-slide-visible")>=0,isPrev:m.indexOf("swiper-slide-prev")>=0,isNext:m.indexOf("swiper-slide-next")>=0},_=()=>typeof s=="function"?s(v):s,y=()=>{E(!0)};return he.createElement(n,Sp({ref:f,className:Lk(`${m}${r?` ${r}`:""}`),"data-swiper-slide-index":l,onLoad:y},u),o&&he.createElement(vT.Provider,{value:v},he.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":typeof o=="number"?o:void 0},_(),i&&!g&&he.createElement("div",{className:"swiper-lazy-preloader"}))),!o&&he.createElement(vT.Provider,{value:v},_(),i&&!g&&he.createElement("div",{className:"swiper-lazy-preloader"})))});Bk.displayName="SwiperSlide";function Fk(e,t,n,s){return e.params.createElements&&Object.keys(s).forEach(r=>{if(!n[r]&&n.auto===!0){let a=yr(e.el,`.${s[r]}`)[0];a||(a=Ep("div",s[r]),a.className=s[r],e.el.append(a)),n[r]=a,t[r]=a}}),n}function a8(e){let{swiper:t,extendParams:n,on:s,emit:r}=e;n({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),t.navigation={nextEl:null,prevEl:null};function a(g){let E;return g&&typeof g=="string"&&t.isElement&&(E=t.el.querySelector(g)||t.hostEl.querySelector(g),E)?E:(g&&(typeof g=="string"&&(E=[...document.querySelectorAll(g)]),t.params.uniqueNavElements&&typeof g=="string"&&E&&E.length>1&&t.el.querySelectorAll(g).length===1?E=t.el.querySelector(g):E&&E.length===1&&(E=E[0])),g&&!E?g:E)}function o(g,E){const b=t.params.navigation;g=nn(g),g.forEach(v=>{v&&(v.classList[E?"add":"remove"](...b.disabledClass.split(" ")),v.tagName==="BUTTON"&&(v.disabled=E),t.params.watchOverflow&&t.enabled&&v.classList[t.isLocked?"add":"remove"](b.lockClass))})}function i(){const{nextEl:g,prevEl:E}=t.navigation;if(t.params.loop){o(E,!1),o(g,!1);return}o(E,t.isBeginning&&!t.params.rewind),o(g,t.isEnd&&!t.params.rewind)}function l(g){g.preventDefault(),!(t.isBeginning&&!t.params.loop&&!t.params.rewind)&&(t.slidePrev(),r("navigationPrev"))}function c(g){g.preventDefault(),!(t.isEnd&&!t.params.loop&&!t.params.rewind)&&(t.slideNext(),r("navigationNext"))}function u(){const g=t.params.navigation;if(t.params.navigation=Fk(t,t.originalParams.navigation,t.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!(g.nextEl||g.prevEl))return;let E=a(g.nextEl),b=a(g.prevEl);Object.assign(t.navigation,{nextEl:E,prevEl:b}),E=nn(E),b=nn(b);const v=(_,y)=>{_&&_.addEventListener("click",y==="next"?c:l),!t.enabled&&_&&_.classList.add(...g.lockClass.split(" "))};E.forEach(_=>v(_,"next")),b.forEach(_=>v(_,"prev"))}function f(){let{nextEl:g,prevEl:E}=t.navigation;g=nn(g),E=nn(E);const b=(v,_)=>{v.removeEventListener("click",_==="next"?c:l),v.classList.remove(...t.params.navigation.disabledClass.split(" "))};g.forEach(v=>b(v,"next")),E.forEach(v=>b(v,"prev"))}s("init",()=>{t.params.navigation.enabled===!1?h():(u(),i())}),s("toEdge fromEdge lock unlock",()=>{i()}),s("destroy",()=>{f()}),s("enable disable",()=>{let{nextEl:g,prevEl:E}=t.navigation;if(g=nn(g),E=nn(E),t.enabled){i();return}[...g,...E].filter(b=>!!b).forEach(b=>b.classList.add(t.params.navigation.lockClass))}),s("click",(g,E)=>{let{nextEl:b,prevEl:v}=t.navigation;b=nn(b),v=nn(v);const _=E.target;let y=v.includes(_)||b.includes(_);if(t.isElement&&!y){const S=E.path||E.composedPath&&E.composedPath();S&&(y=S.find(w=>b.includes(w)||v.includes(w)))}if(t.params.navigation.hideOnClick&&!y){if(t.pagination&&t.params.pagination&&t.params.pagination.clickable&&(t.pagination.el===_||t.pagination.el.contains(_)))return;let S;b.length?S=b[0].classList.contains(t.params.navigation.hiddenClass):v.length&&(S=v[0].classList.contains(t.params.navigation.hiddenClass)),r(S===!0?"navigationShow":"navigationHide"),[...b,...v].filter(w=>!!w).forEach(w=>w.classList.toggle(t.params.navigation.hiddenClass))}});const m=()=>{t.el.classList.remove(...t.params.navigation.navigationDisabledClass.split(" ")),u(),i()},h=()=>{t.el.classList.add(...t.params.navigation.navigationDisabledClass.split(" ")),f()};Object.assign(t.navigation,{enable:m,disable:h,update:i,init:u,destroy:f})}function Ll(e){return e===void 0&&(e=""),`.${e.trim().replace(/([\.:!+\/()[\]])/g,"\\$1").replace(/ /g,".")}`}function o8(e){let{swiper:t,extendParams:n,on:s,emit:r}=e;const a="swiper-pagination";n({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:_=>_,formatFractionTotal:_=>_,bulletClass:`${a}-bullet`,bulletActiveClass:`${a}-bullet-active`,modifierClass:`${a}-`,currentClass:`${a}-current`,totalClass:`${a}-total`,hiddenClass:`${a}-hidden`,progressbarFillClass:`${a}-progressbar-fill`,progressbarOppositeClass:`${a}-progressbar-opposite`,clickableClass:`${a}-clickable`,lockClass:`${a}-lock`,horizontalClass:`${a}-horizontal`,verticalClass:`${a}-vertical`,paginationDisabledClass:`${a}-disabled`}}),t.pagination={el:null,bullets:[]};let o,i=0;function l(){return!t.params.pagination.el||!t.pagination.el||Array.isArray(t.pagination.el)&&t.pagination.el.length===0}function c(_,y){const{bulletActiveClass:S}=t.params.pagination;_&&(_=_[`${y==="prev"?"previous":"next"}ElementSibling`],_&&(_.classList.add(`${S}-${y}`),_=_[`${y==="prev"?"previous":"next"}ElementSibling`],_&&_.classList.add(`${S}-${y}-${y}`)))}function u(_,y,S){if(_=_%S,y=y%S,y===_+1)return"next";if(y===_-1)return"previous"}function f(_){const y=_.target.closest(Ll(t.params.pagination.bulletClass));if(!y)return;_.preventDefault();const S=yp(y)*t.params.slidesPerGroup;if(t.params.loop){if(t.realIndex===S)return;const w=u(t.realIndex,S,t.slides.length);w==="next"?t.slideNext():w==="previous"?t.slidePrev():t.slideToLoop(S)}else t.slideTo(S)}function m(){const _=t.rtl,y=t.params.pagination;if(l())return;let S=t.pagination.el;S=nn(S);let w,x;const I=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length,C=t.params.loop?Math.ceil(I/t.params.slidesPerGroup):t.snapGrid.length;if(t.params.loop?(x=t.previousRealIndex||0,w=t.params.slidesPerGroup>1?Math.floor(t.realIndex/t.params.slidesPerGroup):t.realIndex):typeof t.snapIndex<"u"?(w=t.snapIndex,x=t.previousSnapIndex):(x=t.previousIndex||0,w=t.activeIndex||0),y.type==="bullets"&&t.pagination.bullets&&t.pagination.bullets.length>0){const T=t.pagination.bullets;let P,A,O;if(y.dynamicBullets&&(o=qv(T[0],t.isHorizontal()?"width":"height"),S.forEach(M=>{M.style[t.isHorizontal()?"width":"height"]=`${o*(y.dynamicMainBullets+4)}px`}),y.dynamicMainBullets>1&&x!==void 0&&(i+=w-(x||0),i>y.dynamicMainBullets-1?i=y.dynamicMainBullets-1:i<0&&(i=0)),P=Math.max(w-i,0),A=P+(Math.min(T.length,y.dynamicMainBullets)-1),O=(A+P)/2),T.forEach(M=>{const k=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(D=>`${y.bulletActiveClass}${D}`)].map(D=>typeof D=="string"&&D.includes(" ")?D.split(" "):D).flat();M.classList.remove(...k)}),S.length>1)T.forEach(M=>{const k=yp(M);k===w?M.classList.add(...y.bulletActiveClass.split(" ")):t.isElement&&M.setAttribute("part","bullet"),y.dynamicBullets&&(k>=P&&k<=A&&M.classList.add(...`${y.bulletActiveClass}-main`.split(" ")),k===P&&c(M,"prev"),k===A&&c(M,"next"))});else{const M=T[w];if(M&&M.classList.add(...y.bulletActiveClass.split(" ")),t.isElement&&T.forEach((k,D)=>{k.setAttribute("part",D===w?"bullet-active":"bullet")}),y.dynamicBullets){const k=T[P],D=T[A];for(let j=P;j<=A;j+=1)T[j]&&T[j].classList.add(...`${y.bulletActiveClass}-main`.split(" "));c(k,"prev"),c(D,"next")}}if(y.dynamicBullets){const M=Math.min(T.length,y.dynamicMainBullets+4),k=(o*M-o)/2-O*o,D=_?"right":"left";T.forEach(j=>{j.style[t.isHorizontal()?D:"top"]=`${k}px`})}}S.forEach((T,P)=>{if(y.type==="fraction"&&(T.querySelectorAll(Ll(y.currentClass)).forEach(A=>{A.textContent=y.formatFractionCurrent(w+1)}),T.querySelectorAll(Ll(y.totalClass)).forEach(A=>{A.textContent=y.formatFractionTotal(C)})),y.type==="progressbar"){let A;y.progressbarOpposite?A=t.isHorizontal()?"vertical":"horizontal":A=t.isHorizontal()?"horizontal":"vertical";const O=(w+1)/C;let M=1,k=1;A==="horizontal"?M=O:k=O,T.querySelectorAll(Ll(y.progressbarFillClass)).forEach(D=>{D.style.transform=`translate3d(0,0,0) scaleX(${M}) scaleY(${k})`,D.style.transitionDuration=`${t.params.speed}ms`})}y.type==="custom"&&y.renderCustom?(bp(T,y.renderCustom(t,w+1,C)),P===0&&r("paginationRender",T)):(P===0&&r("paginationRender",T),r("paginationUpdate",T)),t.params.watchOverflow&&t.enabled&&T.classList[t.isLocked?"add":"remove"](y.lockClass)})}function h(){const _=t.params.pagination;if(l())return;const y=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.grid&&t.params.grid.rows>1?t.slides.length/Math.ceil(t.params.grid.rows):t.slides.length;let S=t.pagination.el;S=nn(S);let w="";if(_.type==="bullets"){let x=t.params.loop?Math.ceil(y/t.params.slidesPerGroup):t.snapGrid.length;t.params.freeMode&&t.params.freeMode.enabled&&x>y&&(x=y);for(let I=0;I`}_.type==="fraction"&&(_.renderFraction?w=_.renderFraction.call(t,_.currentClass,_.totalClass):w=` / `),_.type==="progressbar"&&(_.renderProgressbar?w=_.renderProgressbar.call(t,_.progressbarFillClass):w=``),t.pagination.bullets=[],S.forEach(x=>{_.type!=="custom"&&bp(x,w||""),_.type==="bullets"&&t.pagination.bullets.push(...x.querySelectorAll(Ll(_.bulletClass)))}),_.type!=="custom"&&r("paginationRender",S[0])}function g(){t.params.pagination=Fk(t,t.originalParams.pagination,t.params.pagination,{el:"swiper-pagination"});const _=t.params.pagination;if(!_.el)return;let y;typeof _.el=="string"&&t.isElement&&(y=t.el.querySelector(_.el)),!y&&typeof _.el=="string"&&(y=[...document.querySelectorAll(_.el)]),y||(y=_.el),!(!y||y.length===0)&&(t.params.uniqueNavElements&&typeof _.el=="string"&&Array.isArray(y)&&y.length>1&&(y=[...t.el.querySelectorAll(_.el)],y.length>1&&(y=y.find(S=>Tk(S,".swiper")[0]===t.el))),Array.isArray(y)&&y.length===1&&(y=y[0]),Object.assign(t.pagination,{el:y}),y=nn(y),y.forEach(S=>{_.type==="bullets"&&_.clickable&&S.classList.add(...(_.clickableClass||"").split(" ")),S.classList.add(_.modifierClass+_.type),S.classList.add(t.isHorizontal()?_.horizontalClass:_.verticalClass),_.type==="bullets"&&_.dynamicBullets&&(S.classList.add(`${_.modifierClass}${_.type}-dynamic`),i=0,_.dynamicMainBullets<1&&(_.dynamicMainBullets=1)),_.type==="progressbar"&&_.progressbarOpposite&&S.classList.add(_.progressbarOppositeClass),_.clickable&&S.addEventListener("click",f),t.enabled||S.classList.add(_.lockClass)}))}function E(){const _=t.params.pagination;if(l())return;let y=t.pagination.el;y&&(y=nn(y),y.forEach(S=>{S.classList.remove(_.hiddenClass),S.classList.remove(_.modifierClass+_.type),S.classList.remove(t.isHorizontal()?_.horizontalClass:_.verticalClass),_.clickable&&(S.classList.remove(...(_.clickableClass||"").split(" ")),S.removeEventListener("click",f))})),t.pagination.bullets&&t.pagination.bullets.forEach(S=>S.classList.remove(..._.bulletActiveClass.split(" ")))}s("changeDirection",()=>{if(!t.pagination||!t.pagination.el)return;const _=t.params.pagination;let{el:y}=t.pagination;y=nn(y),y.forEach(S=>{S.classList.remove(_.horizontalClass,_.verticalClass),S.classList.add(t.isHorizontal()?_.horizontalClass:_.verticalClass)})}),s("init",()=>{t.params.pagination.enabled===!1?v():(g(),h(),m())}),s("activeIndexChange",()=>{typeof t.snapIndex>"u"&&m()}),s("snapIndexChange",()=>{m()}),s("snapGridLengthChange",()=>{h(),m()}),s("destroy",()=>{E()}),s("enable disable",()=>{let{el:_}=t.pagination;_&&(_=nn(_),_.forEach(y=>y.classList[t.enabled?"remove":"add"](t.params.pagination.lockClass)))}),s("lock unlock",()=>{m()}),s("click",(_,y)=>{const S=y.target,w=nn(t.pagination.el);if(t.params.pagination.el&&t.params.pagination.hideOnClick&&w&&w.length>0&&!S.classList.contains(t.params.pagination.bulletClass)){if(t.navigation&&(t.navigation.nextEl&&S===t.navigation.nextEl||t.navigation.prevEl&&S===t.navigation.prevEl))return;const x=w[0].classList.contains(t.params.pagination.hiddenClass);r(x===!0?"paginationShow":"paginationHide"),w.forEach(I=>I.classList.toggle(t.params.pagination.hiddenClass))}});const b=()=>{t.el.classList.remove(t.params.pagination.paginationDisabledClass);let{el:_}=t.pagination;_&&(_=nn(_),_.forEach(y=>y.classList.remove(t.params.pagination.paginationDisabledClass))),g(),h(),m()},v=()=>{t.el.classList.add(t.params.pagination.paginationDisabledClass);let{el:_}=t.pagination;_&&(_=nn(_),_.forEach(y=>y.classList.add(t.params.pagination.paginationDisabledClass))),E()};Object.assign(t.pagination,{enable:b,disable:v,render:h,update:m,init:g,destroy:E})}function i8(e){let{swiper:t,extendParams:n,on:s,emit:r,params:a}=e;t.autoplay={running:!1,paused:!1,timeLeft:0},n({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!1,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let o,i,l=a&&a.autoplay?a.autoplay.delay:3e3,c=a&&a.autoplay?a.autoplay.delay:3e3,u,f=new Date().getTime(),m,h,g,E,b,v,_;function y(R){!t||t.destroyed||!t.wrapperEl||R.target===t.wrapperEl&&(t.wrapperEl.removeEventListener("transitionend",y),!(_||R.detail&&R.detail.bySwiperTouchMove)&&P())}const S=()=>{if(t.destroyed||!t.autoplay.running)return;t.autoplay.paused?m=!0:m&&(c=u,m=!1);const R=t.autoplay.paused?u:f+c-new Date().getTime();t.autoplay.timeLeft=R,r("autoplayTimeLeft",R,R/l),i=requestAnimationFrame(()=>{S()})},w=()=>{let R;return t.virtual&&t.params.virtual.enabled?R=t.slides.find(G=>G.classList.contains("swiper-slide-active")):R=t.slides[t.activeIndex],R?parseInt(R.getAttribute("data-swiper-autoplay"),10):void 0},x=R=>{if(t.destroyed||!t.autoplay.running)return;cancelAnimationFrame(i),S();let U=typeof R>"u"?t.params.autoplay.delay:R;l=t.params.autoplay.delay,c=t.params.autoplay.delay;const G=w();!Number.isNaN(G)&&G>0&&typeof R>"u"&&(U=G,l=G,c=G),u=U;const z=t.params.speed,K=()=>{!t||t.destroyed||(t.params.autoplay.reverseDirection?!t.isBeginning||t.params.loop||t.params.rewind?(t.slidePrev(z,!0,!0),r("autoplay")):t.params.autoplay.stopOnLastSlide||(t.slideTo(t.slides.length-1,z,!0,!0),r("autoplay")):!t.isEnd||t.params.loop||t.params.rewind?(t.slideNext(z,!0,!0),r("autoplay")):t.params.autoplay.stopOnLastSlide||(t.slideTo(0,z,!0,!0),r("autoplay")),t.params.cssMode&&(f=new Date().getTime(),requestAnimationFrame(()=>{x()})))};return U>0?(clearTimeout(o),o=setTimeout(()=>{K()},U)):requestAnimationFrame(()=>{K()}),U},I=()=>{f=new Date().getTime(),t.autoplay.running=!0,x(),r("autoplayStart")},C=()=>{t.autoplay.running=!1,clearTimeout(o),cancelAnimationFrame(i),r("autoplayStop")},T=(R,U)=>{if(t.destroyed||!t.autoplay.running)return;clearTimeout(o),R||(v=!0);const G=()=>{r("autoplayPause"),t.params.autoplay.waitForTransition?t.wrapperEl.addEventListener("transitionend",y):P()};if(t.autoplay.paused=!0,U){b&&(u=t.params.autoplay.delay),b=!1,G();return}u=(u||t.params.autoplay.delay)-(new Date().getTime()-f),!(t.isEnd&&u<0&&!t.params.loop)&&(u<0&&(u=0),G())},P=()=>{t.isEnd&&u<0&&!t.params.loop||t.destroyed||!t.autoplay.running||(f=new Date().getTime(),v?(v=!1,x(u)):x(),t.autoplay.paused=!1,r("autoplayResume"))},A=()=>{if(t.destroyed||!t.autoplay.running)return;const R=Tr();R.visibilityState==="hidden"&&(v=!0,T(!0)),R.visibilityState==="visible"&&P()},O=R=>{R.pointerType==="mouse"&&(v=!0,_=!0,!(t.animating||t.autoplay.paused)&&T(!0))},M=R=>{R.pointerType==="mouse"&&(_=!1,t.autoplay.paused&&P())},k=()=>{t.params.autoplay.pauseOnMouseEnter&&(t.el.addEventListener("pointerenter",O),t.el.addEventListener("pointerleave",M))},D=()=>{t.el&&typeof t.el!="string"&&(t.el.removeEventListener("pointerenter",O),t.el.removeEventListener("pointerleave",M))},j=()=>{Tr().addEventListener("visibilitychange",A)},V=()=>{Tr().removeEventListener("visibilitychange",A)};s("init",()=>{t.params.autoplay.enabled&&(k(),j(),I())}),s("destroy",()=>{D(),V(),t.autoplay.running&&C()}),s("_freeModeStaticRelease",()=>{(g||v)&&P()}),s("_freeModeNoMomentumRelease",()=>{t.params.autoplay.disableOnInteraction?C():T(!0,!0)}),s("beforeTransitionStart",(R,U,G)=>{t.destroyed||!t.autoplay.running||(G||!t.params.autoplay.disableOnInteraction?T(!0,!0):C())}),s("sliderFirstMove",()=>{if(!(t.destroyed||!t.autoplay.running)){if(t.params.autoplay.disableOnInteraction){C();return}h=!0,g=!1,v=!1,E=setTimeout(()=>{v=!0,g=!0,T(!0)},200)}}),s("touchEnd",()=>{if(!(t.destroyed||!t.autoplay.running||!h)){if(clearTimeout(E),clearTimeout(o),t.params.autoplay.disableOnInteraction){g=!1,h=!1;return}g&&t.params.cssMode&&P(),g=!1,h=!1}}),s("slideChange",()=>{t.destroyed||!t.autoplay.running||(b=!0)}),Object.assign(t.autoplay,{start:I,stop:C,pause:T,resume:P})}const l8={loop:!1,arrows:!Q.isMobile,autoplay:!1,autoplaySpeed:5e3,showCount:!1,slidesToScroll:1,showDots:!1},Sb=({children:e,options:t,onSlideChange:n,onRealIndexChange:s,onSwiper:r})=>{const{loop:a,autoplaySpeed:o,arrows:i,showCount:l,slidesToScroll:c,showDots:u,spaceBetween:f,startIndex:m,autoplay:h,slidesOffsetAfter:g,slidesOffsetBefore:E,centeredSlides:b,autoplayTransitionSpeed:v,breakpoints:_,breakpointsBase:y,autoHeight:S,noSwiping:w,noSwipingSelector:x}={...l8,...t},{languageRtl:I}=ke(),C=p.useMemo(()=>[...i?[a8]:[],...l||u?[o8]:[],...h?[i8]:[]],[i,l,u,h]);return d.jsx("div",{className:`carouselWrapper ${l?"carouselCountEnable":"carousel"} ${u?"swiperBulletsEnable":""} ${i?"carouselArrowsEnabled":"carouselArrowsDisabled"}`,children:d.jsx(jk,{dir:I?"rtl":"ltr",navigation:i,initialSlide:m??0,modules:C,loop:a,spaceBetween:f,pagination:l?{type:"fraction"}:u?{clickable:!0}:{enabled:!1},...n?{onSlideChange:n}:{},...s?{onRealIndexChange:s}:{},...E?{slidesOffsetBefore:E}:{},...g?{slidesOffsetAfter:g}:{},...b?{centeredSlides:b}:{},...v?{speed:v}:{},...r?{onSwiper:r}:{},slidesPerView:c,autoplay:h?{delay:o}:!1,breakpoints:_,...y?{breakpointsBase:y}:{},autoHeight:S,...w?{noSwiping:w}:{},...x?{noSwipingSelector:x}:{},children:p.Children.map(e,(T,P)=>d.jsx(Bk,{children:T},P))},String(I))})},Uk=(e,t)=>{const n=p.useRef(e);p.useEffect(()=>{n.current=e},[e]),p.useEffect(()=>{function s(){n.current()}if(t!==null){const r=setInterval(s,t);return()=>clearInterval(r)}},[t])},Td=e=>{const t=String(e);return t.length>1?t:`0${t}`},ET=(e,t)=>{const n=at();let s=at.unix(e);const r={};if(t.days){const a=s.diff(n,"days");a>0?(r.days=Td(a),s=s.subtract(a,"days")):r.days="00"}if(t.hours){const a=s.diff(n,"hours");a>0?(r.hours=Td(a),s=s.subtract(a,"hours")):r.hours="00"}if(t.minutes){const a=s.diff(n,"minutes");a>0?(r.minutes=Td(a),s=s.subtract(a,"minutes")):r.minutes="00"}if(t.seconds){const a=s.diff(n,"seconds");r.seconds=a>0?Td(a):"00"}return r},c8=(e,{interval:t=1e3,format:n={days:!0,hours:!0,minutes:!0,seconds:!0}})=>{const s=p.useRef(n),r=e<=Date.now()/1e3,[a,o]=p.useState(()=>ET(e,s.current)),i=p.useCallback(()=>{o(ET(e,s.current))},[e]);return Uk(i,r?null:t),p.useEffect(()=>{s.current=n},[n]),p.useEffect(function(){e>Date.now()/1e3&&i()},[e,i]),[a,r]},u8=["days","hours","minutes","seconds"],d8={days:"days",hours:"hours",minutes:"min",seconds:"sec"},$k=({format:e,interval:t,endTime:n})=>{const s=Se(),[r,a]=c8(n,{interval:t,format:e});return a?null:d.jsx("div",{className:"countdown-banner-content",children:u8.filter(o=>r[o]!==void 0).map(o=>d.jsxs("div",{className:"countdown-banner-counter",children:[d.jsxs("b",{className:"countdown-banner-date",children:[" ",r[o]]}),d.jsx("span",{className:"countdown-banner-names",children:s(d8[o])})]},o))})},f8=({title:e,route:t,optionTitle:n})=>{const s=Se(),r=n||"More";return d.jsxs("div",{className:"page-view-more",children:[d.jsx("h3",{className:"view-title-more ellipsis",children:s(e)}),t&&d.jsxs(Nt,{to:t,className:"view-see-more",children:[s(r),d.jsx("i",{className:"view-arrow-more bc-i-small-arrow-right"})]})]})},p8=Ne(()=>B(()=>import("./TextWidget-D2mQq4a5.js"),__vite__mapDeps([151,1,152,153,154]))),m8=Ne(()=>B(()=>import("./SliderJackpot-RvMqnava.js"),__vite__mapDeps([155,156,1,157,158,159]))),h8=Ne(()=>B(()=>import("./SliderMarket-DvAGEJwv.js"),__vite__mapDeps([160,1,161,162,163,164,165,166]))),yT="sl_exp_",bT="0001-01-01 00:00:00",Gk=(e,t,n,s)=>({id:t,title:n,extraType:e,href:s,showTo:0,srcType:"image",hrefType:"game",target:"_self",actions:[],profileTypes:[],customProfileTypes:null,profileActionType:2,buttons:[],content:"",srcAlt:null}),g8=Gk("predictstreet",-1,"Predict Street","555588000"),_8=Gk("eventbook",-2,"Event Book","555579000"),v8=p.memo(function({settings:t}){const{isLoggedIn:n,profile:{deposit_count:s,birth_date:r}}=ye(),{contentId:a,expandable:o,showLoader:i,hideShadow:l,firstSlideLoadImmediately:c,sliderTitle:u,aspectRatio:f,format:m={days:!0,hours:!0,minutes:!0,seconds:!0},showPredictStreet:h,showEventBook:g,...E}={...kO,...t},{loading:b,data:v}=TW(a),[_,y]=p.useState(0),S=Dm(),{languageRtl:w}=ke(),{integrations:x}=gl(),[I,C]=p.useState(!1),[T,P]=p.useState(0),A=p.useMemo(()=>v.filter(({showTo:j,profileTypes:V,customProfileTypes:R,depositType:U,profileStatus:G,profileActionType:z,excludedCurrencies:K,ageRestriction:ne})=>!Om({showTo:j,profileTypes:V,customProfileTypes:R,profileActionType:z,excludedCurrencies:K},S)&&rb(S.isLoggedIn,S.isVerified,G)&&yO(s,n,U)&&sb(ne,r)),[r,v,s,n,S]),O=p.useMemo(()=>{const j=[];if(h&&j.push(g8),g&&j.push(_8),!j.length)return A;const V=j.map(R=>{var U;return{...R,href:((U=cp({...R,type:R.hrefType,value:R.href},x))==null?void 0:U.to)||R.href}});return[...A,...V]},[A,h,g,x]);Wt(E.fullSized&&(b||O.length>0)?"slider-full-sized":"");const M=(j,V,R)=>{en.dispatchEvent("trackingEvent",{category:"Banner",action:"Clicked Banner",additionalData:{bannerData:{link:j,index:R,title:V}}})};p.useEffect(()=>{o&&Te.getItem(`${yT}${a}`)&&C(!0)},[a,o]);const k=p.useCallback(()=>{o&&Te.setItem(`${yT}${a}`,!I),C(!I)},[I,a,o]),D=p.useCallback(j=>{y(j.realIndex)},[]);return b?i?d.jsx(PO,{aspectRatio:f}):null:O.length?d.jsxs("div",{className:`slider-bc ${I?"collapsed":""} ${l?"hide-shadow":""} ${u?"has-title":""}`,children:[u&&d.jsx(f8,{title:u}),d.jsx(Sb,{options:E,onSlideChange:D,children:O.map((j,V)=>{const{title:R,content:U,buttons:G,href:z,actions:K,target:ne,srcType:J,src:$,srcAlt:L,matchId:W,jackpot:q,endTime:de,eventDate:ue,extraType:Y}=j,ae=z.replace("{token}",vt.getAuthToken()||"");return d.jsxs("div",{className:"sdr-item-holder-bc",style:{...!o&&f?{aspectRatio:f}:null},children:[d.jsxs(Nt,{actions:K,to:ae,target:ne,className:"sdr-item-bc",onClick:()=>M(z,R,V),"aria-label":R,children:[(de||T)&&_===V?d.jsx($k,{format:m,interval:E.interval,endTime:T&&W&&bT===ue?T:de}):null,d.jsx(PW,{loading:V===0&&c||w?"eager":"lazy",srcType:J,extraType:Y,src:$,title:R,srcAlt:L,fetchPriority:V===0&&c||w?"high":"low",isIframeInteractive:!ae},V)]}),W&&d.jsx("div",{className:"slider-market-coefficient-container",children:d.jsx(h8,{gameId:j.matchId,setStartTime:ue===bT?P:void 0})}),U?d.jsx(p8,{settings:{title:R,description:U,expandable:!0}}):null,d.jsx(OW,{buttons:G,parentNavigate:z,parentTarget:ne,parentActions:K}),q?d.jsx(m8,{jackpotProvider:q}):null]},V)})}),o&&d.jsx("i",{onClick:k,className:`sdr-collapsed-arrow-bc bc-i-small-arrow-up ${I?"active":""}`})]}):null}),jm=()=>{var n;const{profile:{exclude_type:e,exclude_date:t}}=ye();return(n=N.app.header.selfExclusionPanelSettings)!=null&&n.enabled&&e===Ky.BETTING_BLOCKED&&typeof t=="number"?{isLocked:!0,expiresAt:t}:{isLocked:!1,expiresAt:null}},Ga=()=>new URLSearchParams(xn().search),E8=p.lazy(()=>B(()=>import("./HomeworkPopup-GeaTgGf0.js"),__vite__mapDeps([167,1]))),ST=()=>{if(window.location.hostname==="localhost")return"https://homework.test.com/";const e=window.location.hostname.split(".");return e.length>2?e[0]="homework":e.unshift("homework"),`${window.location.protocol}//${e.join(".")}/`},y8=86400,Vk=p.createContext({}),Eg={info:"",infoUrl:"",loading:!0},b8=({children:e})=>{const t=xt(),{isLocked:n}=jm(),{isLoggedIn:s,loginInProgress:r,profile:{birth_date:a,sportsbook_profile_id:o}}=ye(),{homework:{enabled:i,restrictedIds:l}}=N.app,{language:c}=ke(),u=p.useRef(c),[f,m]=p.useState(Eg),[h,g]=p.useState(!1),E=Ga().has(Wh),b=p.useMemo(()=>s&&(l==null?void 0:l.includes(Number(o))),[s,l,o]),v=p.useMemo(()=>r?!1:s?sb({min:N.app.homework.userMinimumAllowedAge,max:1/0,type:vO.Included},a):!0,[s,r,a]),_=p.useMemo(()=>!i||b||!v,[i,b,v]),y=p.useCallback(S=>{_||(Te.setItem(`homeworkLogged${S?"In":"Out"}PopupLifetime`,!0,y8),ve.open(w=>{const x=`${ST()}?partnerId=${N.app.site_id}&platform=${Q.isMobile?"mobile":"web"}&lan=${u.current}${S?`&token=${vt.getAuthToken()}`:""}`;return{Component:()=>d.jsx(p.Suspense,{fallback:null,children:d.jsx(E8,{src:x,close:I=>{w(),I&&g(!0)}})}),hideCloseButton:!0,type:"blocked",className:"homework-popup"}}))},[_]);return p.useEffect(()=>{if(!n&&h&&!_){const S=`${ST()}gameEngine/service.php?request=getHomework&platform=${Q.isMobile?"mobile":"web"}&partnerId=${N.app.site_id}&lan=${u.current}${s?`&token=${vt.getAuthToken()}`:""}`;qe.get(S).then(w=>{if(t.current)if(w.data.code===0){const{tasks:x,answers:I,infoUrl:C,openPopUp:T}=w.data.data;m({loading:!1,info:`${I} / ${x}`,infoUrl:C});const P=new URLSearchParams(window.location.search);T&&!_&&!Te.getItem(`homeworkLogged${s?"In":"Out"}PopupLifetime`)&&!P.has(Wh)&&y(s)}else throw new Error(w.data.message)}).catch(()=>{t.current&&m({...Eg,loading:!1})}).finally(()=>{t.current&&g(!1)})}},[s,t,_,h,y,n]),p.useEffect(()=>{!r&&!_?(m(w=>({...w,loading:!0})),g(!0)):!r&&_&&(m({...Eg,loading:!1}),g(!1))},[r,s,_]),p.useEffect(function(){E&&!r&&!_&&(zt(Wh),y(s))},[s,r,E,y,_]),p.useEffect(()=>{u.current=c},[c]),d.jsx(Vk.Provider,{value:{...f,isEligibleAge:v,openPopup:y},children:e})},S8=()=>{const e=Se(),{isLoggedIn:t}=ye(),{loading:n,infoUrl:s,info:r,isEligibleAge:a,openPopup:o}=p.useContext(Vk),{homework:{enabled:i}}=N.app;return!i||n||!r||!a?null:d.jsx("div",{className:"homework-promo-wrapper",children:d.jsxs("div",{className:"homework-promo",onClick:()=>o(t),children:[d.jsx("i",{className:"homework-icon bc-i-two-column"}),d.jsxs("span",{className:"homework-title ellipsis",children:[e("Homework")," "]}),d.jsx("div",{className:"homework-info-icon",onClick:l=>l.stopPropagation(),children:d.jsx(Nt,{to:s,className:"bc-i-player-info"})}),t&&d.jsx("b",{className:"homework-amount",children:r})]})})},C8=["span"],Xa=({tag:e="p",variant:t,children:n,className:s="",dangerouslySetInnerHTML:r,style:a,...o})=>{const i=["ds-body",`ds-body--${t}`,s].filter(Boolean).join(" ");if(r){const c=C8.includes(e)?"inline":"block";return d.jsx("div",{className:i,style:{...a,display:c},dangerouslySetInnerHTML:r,...o})}const l=e;return d.jsx(l,{className:i,style:a,...o,children:n})},Hk=({level:e,children:t,className:n,dangerouslySetInnerHTML:s,style:r,...a})=>{const o=`typography-heading typography-heading-${e} ${n??""}`;if(s)return d.jsx("div",{className:o,style:{...r,display:"block"},dangerouslySetInnerHTML:s,...a});const i=`h${e}`;return d.jsx(i,{className:o,style:r,...a,children:t})},T8=["span","label"],er=({tag:e="span",variant:t,children:n,className:s="",dangerouslySetInnerHTML:r,style:a,...o})=>{const i=["ds-label",`ds-label--${t}`,s].filter(Boolean).join(" ");if(r){const c=T8.includes(e)?"inline":"block";return d.jsx("div",{className:i,style:{...a,display:c},dangerouslySetInnerHTML:r,...o})}const l=e;return d.jsx(l,{className:i,style:a,...o,children:n})},w8={sm:"small-regular",md:"medium-regular",lg:"large-regular"},CT=({title:e="",color:t="primary",size:n="md",decoration:s="default",disabled:r=!1,leftIconName:a="",rightIconName:o="",className:i="",onClick:l,children:c,smart:u=!0,...f})=>{const m=["ds-link",`ds-link-color--${t}`,`ds-link-size--${n}`,s==="underline"&&"ds-link-decoration--underline",r&&"ds-link--disabled",i].filter(Boolean).join(" "),h=d.jsxs(d.Fragment,{children:[a&&d.jsx(an,{className:"link__icon link__icon--left",name:a}),e&&d.jsx(er,{variant:w8[n],className:"link__label",children:e}),c,o&&d.jsx(an,{className:"link__icon link__icon--right",name:o})]});if(u){const{to:g,target:E,rel:b,"aria-label":v,badge:_,actions:y,...S}=f,w=l;return d.jsx(Nt,{to:g,target:E,rel:b,"aria-label":v,badge:_,actions:y,onClick:w,className:m,...S,children:h})}return d.jsx("span",{className:m,onClick:r?void 0:()=>l==null?void 0:l(),role:l?"button":void 0,tabIndex:l&&!r?0:void 0,"aria-disabled":r||void 0,children:h})},I8={xs:"small-regular",sm:"small-regular",md:"medium-regular",lg:"medium-regular",xl:"large-regular"},A8={neutral:"filled","transparent-text-40":"text","transparent-text-48":"text","transparent-text-56":"text","transparent-text-64":"text"},Zt=({variant:e="primary",size:t="md",disabled:n=!1,loading:s=!1,iconOnly:r=!1,leftIconName:a="",rightIconName:o="",type:i="button",className:l="",radius:c="full",appearance:u="filled",title:f="",showTitle:m=!0,children:h,onClick:g,...E})=>{const b=r&&[a,o].filter(Boolean).length===1,v=A8[e]??u,_=["ds-btn",`ds-btn-variant--${e}`,`ds-btn-size--${t}`,`ds-btn-radius--${c}`,`ds-btn-appearance--${v}`,s&&"ds-btn--loading",n&&"ds-btn--disabled",b&&"ds-btn--icon",l].filter(Boolean).join(" ");return d.jsxs("button",{type:i,className:_,disabled:n||s,"aria-disabled":n||s,"aria-busy":s,onClick:g,...E,children:[a&&d.jsx(an,{className:"btn__icon btn__icon--left",name:a}),f&&m&&!b&&d.jsx(er,{variant:I8[t],className:"btn__label",children:f}),h,o&&d.jsx(an,{className:"btn__icon btn__icon--right",name:o})]})},_l=({title:e,linkIcon:t,linkTo:n,showArrows:s,showLink:r,linkTitle:a,onLinkClick:o,onLeftArrowClick:i,onRightArrowClick:l,leftArrowDisabled:c,rightArrowDisabled:u})=>{const f=Se(),m=!Q.isMobile&&s,h=()=>Q.isMobile?d.jsx(Xa,{className:"sectionTitleText",variant:"medium-medium",children:f(e)}):d.jsx(Hk,{className:"sectionTitleText sectionTitleTextHeading",level:6,children:f(e)});return d.jsxs("div",{className:"sectionTitle",children:[h(),a&&r?n?d.jsx(CT,{color:"transparent",to:n,smart:!0,title:f(a),rightIconName:t,onClick:o}):d.jsx(CT,{color:"transparent",smart:!1,title:f(a),rightIconName:t,onClick:o}):null,m?d.jsxs("div",{className:"sectionTitleBtnWrapper",children:[d.jsx(Zt,{iconOnly:!0,leftIconName:"chevronleft",variant:"transparent",size:"sm",onClick:i,disabled:c}),d.jsx(Zt,{iconOnly:!0,leftIconName:"chevronright",variant:"transparent",size:"sm",onClick:l,disabled:u})]}):null]})},P8=({gamesDisplayed:e=Q.isMobile?1:3,showTitle:t=!0,enableSuggestedBets:n=!1,filterBySport:s=!1})=>d.jsxs("div",{className:"featuredGamesLoader",style:{display:"flex",flexDirection:"column",gap:Q.isMobile?"var(--fds-ref-spacing-xsmall)":"var(--fds-ref-spacing-large)"},children:[t&&d.jsx(_l,{title:n?"Suggested Bets":"Featured games",showLink:!1,showArrows:!1}),d.jsxs("div",{className:"featuredGamesContent",children:[s&&d.jsx("div",{className:"skeleton-loader-full-banner",style:{height:"51px",width:"220px",marginInlineStart:Q.isMobile?"7px":0}}),d.jsxs("div",{style:{display:"grid",gridTemplateColumns:Q.isMobile?"1fr 0.1fr":`repeat(${e}, 1fr)`,gap:"10px",marginInlineStart:Q.isMobile?"7px":0},children:[Array.from({length:e}).map((r,a)=>d.jsx("div",{className:"skeleton-loader-full-banner",style:{height:"152px"}},a)),Q.isMobile?d.jsx("div",{className:"skeleton-loader-full-banner",style:{height:"152px"}}):null]})]})]}),x8=({hasTitle:e,portraitView:t})=>{const n=Q.isMobile,s=()=>{const i={display:"flex",overflow:"hidden"};return n?{...i,gap:"12px",paddingInline:"7px",width:t?"100%":void 0,height:t?void 0:"105px"}:{...i,gap:"24px",width:t?void 0:"100%",height:t?void 0:"140px"}},r={height:"auto",background:"none",flexDirection:"column",marginInlineStart:"0",minWidth:n?"unset":void 0,padding:n?"2px 0":void 0},a=()=>t?{width:n?"98px":"148px",height:n?"138px":"200px",borderRadius:n?"8px":"20px"}:{width:n?"72px":"96px",height:n?"72px":"96px",borderRadius:"50%"},o={display:t?"none":"block",maxWidth:"90px",marginTop:"20px",marginInline:"0"};return d.jsx("div",{className:`storiesWidgetLoader ${t?"portraitView":""}`,style:s(),children:Array.from({length:4}).map((i,l)=>d.jsxs("div",{className:"horizontal-sl-item-bc",style:r,children:[d.jsx("div",{className:"skeleton-loader-game-cube",style:a()}),e&&d.jsx("span",{className:"horizontal-sl-title-bc skeleton-loader-full-text",style:o})]},l))})},O8=()=>d.jsx("div",{children:d.jsx(Mt,{size:"small"})}),sa=()=>d.jsxs("div",{className:"sp-s-l-b-c-item-bc isHomepageWidgetItem",children:[d.jsx("span",{className:"sp-s-l-h-flag-bc flag-bc skeleton-loader-ex-small-cube"}),d.jsxs("div",{className:"sp-s-l-b-c-i-region-container",children:[d.jsx("p",{className:"sp-s-l-b-c-i-region-bc",children:d.jsx("span",{className:"sp-s-l-b-c-i-region-name skeleton-loader-text "})}),d.jsx("span",{className:"sp-s-l-b-c-i-title-bc skeleton-loader-text"})]}),d.jsx("span",{className:"skeleton-loader-slider-cube sp-s-l-b-c-i-g-count-bc"})]}),k8=()=>d.jsx("div",{className:"popular-competitions-bc isWidget",children:d.jsxs("div",{className:"popular-competitions-container",children:[d.jsx(sa,{}),d.jsx(sa,{}),d.jsx(sa,{}),d.jsx(sa,{}),d.jsx(sa,{}),d.jsx(sa,{}),d.jsx(sa,{}),d.jsx(sa,{})]})}),N8=({partial:e=!1})=>e?d.jsx("div",{style:{display:"flex",gap:"10px"},children:Array.from({length:Q.isMobile?2:8}).map((t,n)=>d.jsx("div",{style:{height:Q.isMobile?"60px":"72px"},className:"skeleton-loader-full-banner"},n))}):d.jsx(d.Fragment,{children:d.jsxs("div",{style:{width:"100%",display:"flex",flexDirection:"column",gap:Q.isMobile?"var(--fds-ref-spacing-medium)":"var(--fds-ref-spacing-large)",overflow:"hidden",...Q.isMobile?{paddingInlineStart:"var(--padding-page-aside)",paddingInlineEnd:"var(--padding-page-aside)"}:{}},children:[d.jsx("div",{style:{width:"100%",display:"flex",alignItems:"center"},children:d.jsx(_l,{title:"Casino Top Winners"})}),d.jsx("div",{style:{display:"flex",gap:"var(--fds-ref-spacing-xsmall)"},children:Array.from({length:Q.isMobile?2:8}).map((t,n)=>d.jsx("div",{style:{height:Q.isMobile?"60px":"72px"},className:"skeleton-loader-full-banner"},n))})]})}),R8=({gamesDisplayed:e=Q.isMobile?1.1:3})=>d.jsx(d.Fragment,{children:d.jsxs("div",{style:{display:"grid",gridTemplateColumns:Q.isMobile?"1fr 0.1fr":`repeat(${e}, 1fr)`,gap:"10px",marginInlineStart:Q.isMobile?"7px":0},children:[Array.from({length:e}).map((t,n)=>d.jsx("div",{className:"skeleton-loader-full-banner",style:{height:"152px"}},n)),Q.isMobile?d.jsx("div",{className:"skeleton-loader-full-banner",style:{height:"152px"}}):null]})}),wd=()=>d.jsxs("div",{style:{display:"flex",alignItems:"center",width:"100%",gap:"8px"},children:[d.jsx("span",{className:"skeleton-loader-ex-small-cube"}),d.jsxs("div",{style:{display:"flex",flexDirection:"column",width:"100%",gap:"4px"},children:[d.jsx("p",{className:"skeleton-loader-full-text"}),d.jsx("p",{className:"skeleton-loader-full-text"})]})]}),TT=()=>d.jsxs("div",{className:"skeleton-loader-full-banner",style:{flexDirection:"column",width:"100%",height:"auto",gap:"16px",padding:"16px"},children:[d.jsx(wd,{}),d.jsx(wd,{}),d.jsx(wd,{}),d.jsx(wd,{})]}),L8=()=>{const e=Q.isMobile?1.2:3;return d.jsxs("div",{className:"skeleton",style:{display:"grid",gap:"10px"},children:[Array.from({length:e}).map((t,n)=>d.jsx(TT,{},n)),Q.isMobile?d.jsx(TT,{}):null]})},M8=[[1920,5.7],[1600,4.7],[800,3.7],[640,2.7]],D8=1.9,j8=()=>{var t;const e=typeof window>"u"?0:window.innerWidth;return((t=M8.find(([n])=>e>=n))==null?void 0:t[1])??D8},B8=({title:e,spaceBetween:t=XC.spaceBetween})=>{const n=Q.isMobile===1,{languageRtl:s}=ke(),r=j8();return d.jsxs("div",{style:{position:"relative",display:"flex",flexDirection:"column",gap:n?"var(--fds-ref-spacing-xsmall)":"var(--fds-ref-spacing-large)",overflow:"hidden"},children:[d.jsx(_l,{linkIcon:n?s?"chevronleft":"chevronright":"",title:e||XC.title,showLink:!0,linkTitle:"Explore",showArrows:!n}),d.jsx("div",{style:{display:"flex",flexDirection:"row",gap:`${t}px`,overflow:"hidden",paddingInlineStart:n?"var(--fds-ref-spacing-xsmall)":0},children:Array.from({length:Math.ceil(r)+1}).map((a,o)=>d.jsx("span",{className:"skeleton-loader",style:{flex:`0 0 calc((100% - ${(r-1)*t}px) / ${r})`,minWidth:"196px",minHeight:"140px",aspectRatio:"44 / 31",borderRadius:"var(--border-radius-middle)"}},o))})]})},F8=()=>{const e=Q.isMobile?1.2:3;return d.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:Q.isMobile?"var(--fds-ref-spacing-xsmall)":"var(--fds-ref-spacing-large)"},children:[d.jsx(_l,{title:"Tournaments"}),d.jsxs("div",{style:{display:"grid",gridTemplateColumns:Q.isMobile?"1fr 0.1fr":`repeat(${e}, 1fr)`,gap:"10px",marginInlineStart:Q.isMobile?"7px":0},children:[Array.from({length:e}).map((t,n)=>d.jsx("p",{className:"skeleton-loader-full-banner",style:{height:Q.isMobile?"238px":"327px"}},n)),Q.isMobile?d.jsx("div",{className:"skeleton-loader-full-banner",style:{height:"238px"}}):null]})]})};function Cp({children:e,gap:t="xs",align:n="left",className:s="",style:r,scrollToRef:a,showArrows:o=!1}){const{languageRtl:i}=ke(),l=p.useRef(null),c=p.useRef(null),[u,f]=p.useState(0),[m,h]=p.useState(0),g=Q.isMobile===1,E=m>0,b=o&&E&&!g,v=u===0,_=u>=m,y=i?!_:!v,S=i?!v:!_,w=p.useCallback(()=>{const T=l.current;if(!T)return;const P=T.clientWidth*.5;f(A=>i?Math.min(m,A+P):Math.max(0,A-P))},[i,m]),x=p.useCallback(()=>{const T=l.current;if(!T)return;const P=T.clientWidth*.5;f(A=>i?Math.max(0,A-P):Math.min(m,A+P))},[i,m]);p.useEffect(()=>{const T=l.current,P=c.current;if(!T||!P)return;const A=new ResizeObserver(()=>{h(T.scrollWidth-T.clientWidth)});return A.observe(T),A.observe(P),()=>A.disconnect()},[e]),p.useEffect(()=>{f(T=>Math.min(T,m))},[m]),p.useEffect(()=>{const T=a==null?void 0:a.current,P=l.current;if(!T||!P)return;const A=P.getBoundingClientRect(),O=T.getBoundingClientRect();if(O.left>=A.left&&O.right<=A.right)return;if(g){const D=T.offsetLeft-(P.clientWidth-T.offsetWidth)/2;P.scrollLeft=Math.max(0,D);return}const k=O.left-A.left+u-(A.width-O.width)/2;f(Math.min(m,Math.max(0,k)))},[a==null?void 0:a.current,m,g]),p.useEffect(()=>{const T=l.current;if(!T)return;const P=A=>{if(!E)return;A.preventDefault();const O=A.deltaY+A.deltaX,M=i?-O:O;f(k=>M>0?Math.min(m,k+M):Math.max(0,k+M))};return T.addEventListener("wheel",P,{passive:!1}),()=>T.removeEventListener("wheel",P)},[E,m,i]);const I=["horizontal-scroll",`horizontal-scroll--${n}`,!E&&"horizontal-scroll--no-scroll",b&&"horizontal-scroll--has-arrows",b&&y&&"horizontal-scroll--fade-start",b&&S&&"horizontal-scroll--fade-end",s].filter(Boolean).join(" "),C=["horizontal-scroll__inner",`horizontal-scroll__inner--gap-${t}`].join(" ");return d.jsxs("div",{ref:l,className:I,style:r,children:[b&&y&&d.jsxs(d.Fragment,{children:[d.jsx("div",{className:"horizontal-scroll__arrow-shadow horizontal-scroll__arrow-shadow--left"}),d.jsx(Zt,{className:"horizontal-scroll__arrow horizontal-scroll__arrow--left",iconOnly:!0,leftIconName:"chevronleft",size:"sm",variant:"transparent",onClick:w})]}),d.jsx("div",{ref:c,className:C,style:{transform:`translateX(${u*(i?1:-1)}px)`},children:e}),b&&S&&d.jsxs(d.Fragment,{children:[d.jsx("div",{className:"horizontal-scroll__arrow-shadow horizontal-scroll__arrow-shadow--right"}),d.jsx(Zt,{className:"horizontal-scroll__arrow horizontal-scroll__arrow--right",iconOnly:!0,leftIconName:"chevronright",size:"sm",variant:"transparent",onClick:x})]})]})}const U8={xs:"small-regular",sm:"small-regular",md:"medium-regular"},Eo=({size:e="sm",disabled:t=!1,iconOnly:n=!1,noMinWidth:s=!1,selected:r=!1,color:a="primary",leftIconName:o="",rightIconName:i="",className:l="",label:c="",onClick:u,...f})=>{const m=n&&[o,i].filter(Boolean).length===1,h=["ds-chip",`ds-chip-size--${e}`,`ds-chip-color--${a}`,t&&"ds-chip--disabled",m&&"ds-chip--icon",r&&"ds-chip--selected",s&&"ds-chip--no-min-width",l].filter(Boolean).join(" ");return d.jsxs("div",{className:h,"aria-disabled":t,onClick:t?void 0:u,...f,children:[o&&d.jsx(an,{className:"chip__icon chip__icon--left",name:o}),c&&!m&&d.jsx(er,{className:"chip__label",variant:U8[e],children:c}),i&&d.jsx(an,{className:"chip__icon chip__icon--right",name:i})]})},wT=({showBetLimits:e})=>{const{imageMode:t}=N.casino,n=d.jsx("div",{style:{display:"block",width:"100%",position:"relative",borderRadius:"var(--fds-ref-radius-xsmall)",aspectRatio:t===Cc.Portrait?$5:U5},className:"skeleton-loader"});return e?d.jsxs("div",{style:{display:"flex",flexDirection:"column",width:"100%"},children:[n,d.jsx("div",{style:{padding:"var(--fds-ref-spacing-3xsmall)",marginTop:"-12px",position:"relative",zIndex:1},children:d.jsx("div",{style:{display:"block",width:"100%",height:"32px",borderRadius:"var(--fds-ref-radius-xsmall)",background:"rgba(var(--b-sc), var(--fds-ref-alpha-16))"}})})]}):n},$8=16,G8={[Cc.Regular]:{0:{slidesPerView:6},1115:{slidesPerView:7}},[Cc.Portrait]:{0:{slidesPerView:7},1075:{slidesPerView:8},1175:{slidesPerView:9}},[Cc.Rect]:{0:{slidesPerView:6},1075:{slidesPerView:7},1175:{slidesPerView:8},1301:{slidesPerView:9}}},Id=({showCategories:e=!1,gameLimit:t=7,title:n="Casino Games"})=>{const s=Q.isMobile,r=G8[N.casino.imageMode],a=Math.max(...Object.values(r).map(c=>c.slidesPerView)),o=Math.min(t,a),i=Object.keys(r).reduce((c,u)=>{const f=Number(u);return c[f]={slidesPerView:Math.min(r[f].slidesPerView,o)},c},{}),l=Math.max(o,10);return d.jsxs("div",{style:{display:"flex",flexDirection:"column",overflow:"hidden",gap:s?"var(--fds-ref-spacing-xsmall)":"var(--fds-ref-spacing-large)"},children:[d.jsx(_l,{title:n}),e&&d.jsxs(Cp,{style:{overflow:"unset",...s&&{paddingInlineStart:"var(--fds-ref-spacing-xsmall)"}},children:[d.jsx("div",{children:d.jsx(Eo,{rightIconName:"OtherGamesDots",size:s?"sm":"md"})}),d.jsx("div",{children:d.jsx(Eo,{style:{marginInlineStart:"var(--fds-ref-spacing-xsmall)"},rightIconName:"OtherGamesDots",size:s?"sm":"md"})}),d.jsx("div",{children:d.jsx(Eo,{style:{marginInlineStart:"var(--fds-ref-spacing-xsmall)"},rightIconName:"OtherGamesDots",size:s?"sm":"md"})})]}),s?d.jsx(Cp,{gap:"xs",style:{...s&&{paddingInlineStart:"var(--fds-ref-spacing-xsmall)"}},children:Array.from({length:l}).map((c,u)=>d.jsx("div",{style:{width:"150px"},children:d.jsx(wT,{})},u))}):d.jsx(Sb,{options:{arrows:!1,spaceBetween:$8,slidesToScroll:o,breakpoints:i},children:Array.from({length:l}).map((c,u)=>d.jsx(wT,{},u))})]})},V8=()=>d.jsx("div",{style:{width:110,minWidth:110,maxWidth:110,height:56,borderRadius:"var(--fds-ref-radius-3xsmall)"},className:"skeleton-loader"}),H8=12,yg=Q.isMobile,W8=()=>{const e=Array.from({length:H8},(t,n)=>d.jsx(V8,{},n));return d.jsxs("div",{style:{display:"flex",flexDirection:"column",overflow:"hidden",gap:yg?"var(--fds-ref-spacing-xsmall)":"var(--fds-ref-spacing-large)"},children:[d.jsx(_l,{title:"Providers"}),yg?d.jsx(Cp,{gap:"xs",style:{...yg&&{paddingInlineStart:"var(--fds-ref-spacing-xsmall)"}},children:e}):d.jsx("div",{style:{display:"flex",gap:"var(--fds-ref-spacing-large)"},children:e})]})},z8=()=>d.jsx("div",{style:{padding:Q.isMobile?"7px":""},children:d.jsx("p",{className:"skeleton-loader-full-banner",style:{height:"152px"}})}),Wk=Q.isMobile===1,Y8=3,q8=2,K8=6,Ad={borderRadius:"var(--fds-ref-radius-3xsmall)"},Q8=()=>d.jsxs("div",{className:"casino-live-rtp-loader__panel",style:{flex:"1 1 0",minWidth:0,display:"flex",flexDirection:"column",gap:Wk?"var(--fds-ref-spacing-xsmall)":"var(--fds-ref-spacing-large)",padding:"var(--fds-ref-spacing-large)",borderRadius:"var(--fds-ref-radius-large)",background:"rgba(var(--b-sc), var(--fds-ref-alpha-4))"},children:[d.jsx("div",{className:"skeleton-loader",style:{...Ad,width:"120px",height:"24px"}}),d.jsx("div",{className:"casino-live-rtp-loader__grid",style:{display:"grid",gridTemplateColumns:"repeat(2, minmax(0, 1fr))",columnGap:"var(--fds-ref-spacing-xsmall)",rowGap:"var(--fds-ref-spacing-large)"},children:Array.from({length:K8}).map((e,t)=>d.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"var(--fds-ref-spacing-xsmall)",padding:"var(--fds-ref-spacing-xsmall)",borderRadius:"var(--fds-ref-radius-xsmall)",background:"rgba(var(--b-sc), var(--fds-ref-alpha-8))",width:"100%"},children:[d.jsx("div",{className:"skeleton-loader",style:{...Ad,flexShrink:0,width:"64px",height:"64px"}}),d.jsxs("div",{style:{flex:"1 1 0",minWidth:0,display:"flex",flexDirection:"column",gap:"var(--fds-ref-spacing-3xsmall)"},children:[d.jsx("div",{className:"skeleton-loader",style:{...Ad,width:"60%",height:"20px"}}),d.jsx("div",{className:"skeleton-loader",style:{...Ad,width:"40%",height:"12px"}})]})]},t))})]}),X8=()=>d.jsxs("div",{className:"casino-live-rtp-loader",style:{display:"flex",flexDirection:"column",width:"100%",gap:"var(--fds-ref-spacing-4xlarge)"},children:[d.jsx("div",{style:{display:"flex",alignItems:"center",gap:"var(--fds-ref-spacing-xsmall)"},children:Array.from({length:Y8}).map((e,t)=>d.jsx(Eo,{size:Wk?"sm":"md",leftIconName:"OtherGamesDots"},t))}),d.jsx("div",{className:"casino-live-rtp-loader__panels",style:{display:"flex",alignItems:"flex-start",flexDirection:"row",gap:"var(--fds-ref-spacing-4xlarge)"},children:Array.from({length:q8}).map((e,t)=>d.jsx(Q8,{},t))})]}),ju=Q.isMobile===1,J8=3,Z8=8,e7=ju?3:6,t7={paddingInline:ju?"var(--fds-ref-spacing-xsmall)":void 0},n7={display:"flex",flexDirection:"column",width:"100%",gap:"var(--fds-ref-spacing-large)",padding:ju?"var(--fds-ref-spacing-xsmall)":"var(--fds-ref-spacing-large)",borderRadius:"var(--fds-ref-radius-medium)",background:"rgba(var(--b-sc), var(--fds-ref-alpha-4))"},s7={display:"flex",alignItems:"center",gap:"var(--fds-ref-spacing-xsmall)"},r7={display:"flex",flexDirection:"column",gap:"var(--fds-ref-spacing-3xsmall)"},a7={display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%",padding:"var(--fds-ref-spacing-3xsmall) var(--fds-ref-spacing-xsmall)"},o7={width:"var(--fds-sem-dimension-xlarge)",maxWidth:"20%",height:"var(--fds-ref-spacing-medium)",borderRadius:"var(--fds-ref-radius-3xsmall)"},i7={display:"flex",flexDirection:"column",gap:"var(--fds-ref-spacing-3xsmall)"},l7={height:ju?"50px":"44px",borderRadius:"var(--fds-ref-radius-xsmall)"},c7=({visibleCount:e=Z8})=>d.jsx("div",{style:t7,children:d.jsxs("div",{style:n7,children:[d.jsx("div",{style:s7,children:Array.from({length:J8}).map((t,n)=>d.jsx(Eo,{size:ju?"sm":"md",leftIconName:"OtherGamesDots"},n))}),d.jsxs("div",{style:r7,children:[d.jsx("div",{style:a7,children:Array.from({length:e7}).map((t,n)=>d.jsx("span",{className:"skeleton-loader",style:o7},n))}),d.jsx("div",{style:i7,children:Array.from({length:e}).map((t,n)=>d.jsx("div",{className:"skeleton-loader",style:l7},n))})]})]})}),dr=()=>null,Oo={AuthPopup:{content:()=>B(()=>import("./AuthPopup-kto8b_3J.js"),__vite__mapDeps([168,1,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206]))},Bonuses:{button:()=>B(()=>import("./SportCasinoBonusButton-Bf6RfdNr.js"),__vite__mapDeps([207,208,1]))},BoostedBets:{content:()=>B(()=>import("./BoostedBets-wrq1ZHmt.js"),__vite__mapDeps([209,1,210,211,212,161,162,213,214,215,216,217,218,219,152,153,220,221,222,223,224,163,164,165,166,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245])),loader:ng},CashoutPopup:{content:()=>B(()=>import("./Cashout-BUCtOTun.js"),__vite__mapDeps([246,247,181,182,200,1,197,248]))},CasinoGamesWidget:{content:()=>B(()=>import("./CasinoGamesWidget-DxLwtz1x.js"),__vite__mapDeps([249,250,251,236,1,252,253,254,255,256,257,229,258,259,260,261,262,263])),loader:Id},CasinoPromotedGamesWidget:{content:()=>B(()=>import("./CasinoPromotedGamesWidget-C5MpW-mX.js"),__vite__mapDeps([264,250,251,236,1,252,253,254,255,256,257,229,258,259,260,261,262])),loader:Id},CasinoFavoriteGamesWidget:{content:()=>B(()=>import("./CasinoFavoriteGamesWidget-HLcwl5XH.js"),__vite__mapDeps([265,266,250,251,236,1,252,253,254,255,256,257,229,258,259,260,261,262])),loader:dr},CasinoGameOptionsWidget:{content:()=>B(()=>import("./CasinoGameOptionsWidget-DEDCx6KL.js"),__vite__mapDeps([267,253,1,268]))},CategoryPromotionsWidget:{content:()=>B(()=>import("./CategoryPromotionsWidget-vuo3U4WG.js"),__vite__mapDeps([269,270,1,271,272,273,274]))},ExpressOfTheDay:{content:()=>B(()=>import("./ExpressOfTheDay-B2KMu2C2.js").then(e=>e.b),__vite__mapDeps([275,1,276,165,277,220,278,218,255,227,228,279,280])),loader:L8},PromotedProductsWidget:{content:()=>B(()=>import("./PromotedProductsWidget-ClYzU3r-.js"),__vite__mapDeps([281,1])),loader:F$},FavoriteGames:{content:()=>B(()=>import("./FavoriteGamesContent-DS4trHHB.js"),__vite__mapDeps([282,1,283])),button:()=>B(()=>import("./FavoriteGamesButton-gbZb8njN.js"),__vite__mapDeps([284,208,1]))},GenericSearch:{content:()=>B(()=>import("./GenericSearchContent-BRNMecLJ.js"),__vite__mapDeps([285,286,287,288,1,289,290,291,250,251,236,252,253,254,255,256,257,229,258,259,260,292,293,294,295,296,211,297]))},FeaturedGames:{content:()=>B(()=>import("./FeaturedGames-DLoF_kbq.js"),__vite__mapDeps([298,1,299,238,163,164,165,166,225,226,235,236,240,241,300,301,162,302,303,304])),loader:P8},CasinoGameWidget:{content:()=>B(()=>import("./CasinoGameWidget-CPmy5fsV.js"),__vite__mapDeps([305,272,273,267,253,1,268]))},AiPromotedGamesWidget:{content:()=>B(()=>import("./CasinoAIPromotedGamesWidget-Bn9Zslj_.js"),__vite__mapDeps([306,250,251,236,1,252,253,254,255,256,257,229,258,259,260,261,262])),loader:Id},AiDynamicGamesWidget:{content:()=>B(()=>import("./CasinoAIDynamicGamesWidget-DkD8IxKY.js"),__vite__mapDeps([307,250,251,236,1,252,253,254,255,256,257,229,258,259,260,261,262,308])),loader:dr},StoryWidget:{content:()=>B(()=>import("./StoryWidget-ChTR9GdY.js"),__vite__mapDeps([309,1,310,273,231,211,311,312,313,314])),loader:x8},AchievementWidget:{content:()=>B(()=>import("./AchievementWidget-B4GfelVV.js").then(e=>e.A),__vite__mapDeps([315,316,317])),loader:dr},LoyaltyProgressWidget:{content:()=>B(()=>import("./LoyaltyProgressWidget-x01O5xA-.js"),__vite__mapDeps([318,1,319])),loader:z8},BettingMateWidget:{content:()=>B(()=>import("./BettingMateWidget-C38o_xwW.js"),__vite__mapDeps([320,276,283,1,321,322]))},SureBetWidget:{content:()=>B(()=>import("./SureBetWidget-g9hGr_SC.js"),__vite__mapDeps([323,161,1,162,235,236,324])),loader:R8},VivaroMeRooms:{content:()=>B(()=>import("./VivaroMeRooms-hw2YNA6t.js"),__vite__mapDeps([325,326,40,1,327])),loader:B8},HarmonyJackpotWidget:{content:()=>B(()=>import("./HarmonyJackpotWidget-d6yugTSe.js"),__vite__mapDeps([328,157,258,236,1,259,329])),loader:O8},FirstLoginSuggestion:{content:()=>B(()=>import("./FirstLoginSuggestion-C67kohYo.js"),__vite__mapDeps([330,1,205,255,189,331]))},HelpPage:{content:()=>B(()=>import("./HelpPage-CBLqQ4Gn.js"),__vite__mapDeps([332,333,1,334]))},HelpContentPrint:{content:()=>B(()=>import("./HelpContentPrint-DLRnBgUy.js"),__vite__mapDeps([335,333,1,334]))},LiveChat:{button:()=>B(()=>import("./LiveChatAdviser-DWHfpS89.js"),__vite__mapDeps([336,1]))},BonusJourney:{button:()=>B(()=>import("./JourneyAdviser-MQC8F0ON.js"),__vite__mapDeps([337,1]))},Login:{content:()=>B(()=>import("./Login-BDBTALXd.js").then(e=>e.b),__vite__mapDeps([169,170,171,1,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190]))},Messages:{button:()=>B(()=>import("./MessagesButton-NyBXFsj2.js"),__vite__mapDeps([338,208,1]))},Notifications:{content:()=>B(()=>import("./index-A3QTy_m7.js"),__vite__mapDeps([339,1,340])),button:()=>B(()=>import("./NotificationsButton-OfwBnXr2.js"),__vite__mapDeps([341,208,1]))},PageBuilder:{content:()=>B(()=>import("./PageBuilder-BoqIknZE.js"),__vite__mapDeps([342,343,1,344,345,196,346,283,255,230,231,211,235,236,347,153,348,349,350]))},PopularMatches:{content:()=>B(()=>import("./PopularMatches-CZN9QloS.js"),__vite__mapDeps([351,214,1,162,213,215,216,217,218,219,152,153,220,221,222,223,224,163,164,165,166,225,226,227,228,229,230,231,211,232,233,234,235,236,237,238,239,240,241,242,243,244,245,302,352,353,354])),loader:ng},PopularCompetitions:{content:()=>B(()=>import("./PopularCompetitions-anrowt_P.js"),__vite__mapDeps([355,348,356,1,357,358,229,359,360,361])),loader:k8},BetOnPoliticsWidget:{content:()=>B(()=>import("./BetOnPoliticsWidget-DDId37f6.js"),__vite__mapDeps([362,200,1,363]))},Registration:{content:()=>B(()=>import("./Registration-DmGZwyw-.js").then(e=>e.f),__vite__mapDeps([191,1,192,181,182,175,174,193,194,195,196,197,198,199,171,172,173,177,178,179,180,170,189,200,190,201,202,203,204]))},Settings:{content:()=>B(()=>import("./AppSettings-BaaivJ6n.js"),__vite__mapDeps([364,365,1,366])),button:()=>B(()=>import("./AppSettingsButton-CosxQgPr.js"),__vite__mapDeps([367,208,1]))},Slider:{content:v8,loader:PO},UpcomingMatches:{content:()=>B(()=>import("./UpcomingMatches-CgabnxpL.js"),__vite__mapDeps([368,211,214,1,162,213,215,216,217,218,219,152,153,220,221,222,223,224,163,164,165,166,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,348,302,354,369,370,352,353,371])),loader:D$},UpcomingRaces:{content:()=>B(()=>import("./UpcomingRaces-BdanfmHr.js").then(e=>e.h),__vite__mapDeps([372,1,230,296,163,164,165,166,225,226,373]))},TodayBets:{content:()=>B(()=>import("./TodayBets-A_-vhYm9.js"),__vite__mapDeps([374,348,1,162,302,213,354,230,231,211,214,215,216,217,218,219,152,153,220,221,222,223,224,163,164,165,166,225,226,227,228,229,232,233,234,235,236,237,238,239,240,241,242,243,244,245,352,353,371,375])),loader:H$},OlympicMatches:{content:()=>B(()=>import("./OlympicMatches-Bp1GSqm9.js"),__vite__mapDeps([376,1,348,162,302,354,230,231,211,352,353,237,238,239,163,164,165,166,226,216,217,218,219,152,153,220,215,221,227,228,229,240,241,242,234,235,236,222,223,224,232,371,375,244])),loader:z$},SportsbookMainWidget:{content:()=>B(()=>import("./SportsbookMainWidget-B-VK-MDV.js").then(e=>e.S),__vite__mapDeps([377,304,378])),loader:dr},JackpotWidget:{content:()=>B(()=>import("./JackpotPoolsWidgetContainer-BYojKv_D.js"),__vite__mapDeps([379,1,157,156,158,380,381,153,235,236,382,383,384,385])),loader:$$},HomeworkStatus:{content:S8,loader:dr},IframeWidget:{content:()=>B(()=>import("./IframeWidget-pLb6LilY.js"),__vite__mapDeps([386,1]))},PoolMasterWidget:{content:()=>B(()=>import("./PoolMasterWidget-BeKnSR1A.js"),__vite__mapDeps([387,1]))},TopWinnersWidget:{content:()=>B(()=>import("./TopWinnersWidget-D_CMy3r6.js"),__vite__mapDeps([388,258,236,1,259,389,390]))},PromotedGamesWidget:{content:()=>B(()=>import("./PromotedGamesWidget-jI_qm_TG.js"),__vite__mapDeps([391,1,164,165,392]))},CasinoLastPlayedGames:{content:()=>B(()=>import("./CasinoLastPlayedGames-B8x7jTni.js"),__vite__mapDeps([393,1,250,251,236,252,253,254,255,256,257,229,258,259,260,261,262])),loader:Id},CasinoWinners:{content:()=>B(()=>import("./CasinoWinners-De5uWFZE.js"),__vite__mapDeps([394,395,1,283,396,390])),loader:QC},CasinoTopWinnersWidget:{content:()=>B(()=>import("./CasinoTopWinnersWidget-D2aLZlDz.js"),__vite__mapDeps([397,395,1,258,236,259,396,398])),loader:N8},CasinoJackpot:{content:()=>B(()=>import("./CasinoJackpotWidget-D3z4BU0R.js"),__vite__mapDeps([399,381,1,153,156,157,158,235,236,382,348,288,289,290,291,250,251,252,253,254,255,256,257,229,258,259,260,292,293,400,383,384,304,401]))},TournamentsWidget:{content:()=>B(()=>import("./TournamentsWidget-CGVyzOIe.js"),__vite__mapDeps([402,403,1,404])),loader:QC},TournamentsWidgetV2:{content:()=>B(()=>import("./TournamentsSliderWidget-EtK6zXQ3.js"),__vite__mapDeps([405,406,403,256,257,1,407])),loader:F8},TextWidget:{content:()=>B(()=>import("./TextWidget-D2mQq4a5.js"),__vite__mapDeps([151,1,152,153,154]))},FriendsList:{content:()=>B(()=>import("./FriendsList-B4U5gDH0.js"),__vite__mapDeps([408,409,410,153,411,1]))},LiveGamesWidget:{content:()=>B(()=>import("./LiveGamesWidget-CsbrSGy6.js"),__vite__mapDeps([412,1,232,162,210,211,237,238,239,163,164,165,166,226,216,217,218,219,152,153,220,215,221,227,228,229,240,241,242,234,235,236,223])),loader:ng},Betslip:{button:()=>B(()=>import("./BetslipButton-BGLZ3-Bs.js"),__vite__mapDeps([413,208,1]))},BetslipBanner:{content:()=>B(()=>import("./BetslipBanner-CYxgDShu.js"),__vite__mapDeps([414,1]))},VCareJackpot:{content:()=>B(()=>import("./VCareJackpotWidget-ILaexGbU.js"),__vite__mapDeps([415,157,156,1,158,380,416])),loader:V$},InformativeWidget:{content:()=>B(()=>import("./InformativeWidget-Cb_UzsWi.js"),__vite__mapDeps([417,1])),loader:sg},KYCVerificationInformativeWidget:{content:()=>B(()=>import("./KYCVerificationInformativeWidget-Ba6aa5_U.js"),__vite__mapDeps([418,1])),loader:sg},VerificationCountdown:{content:()=>B(()=>import("./VerificationCountdown-NzsTvVlf.js"),__vite__mapDeps([419,1,420])),loader:sg},BetHistoryPrint:{content:()=>B(()=>import("./BetHistoryPrintInfo-B0D6rpnN.js"),__vite__mapDeps([421,1,422])),loader:Y$},BetslipBookingBetPrintWidget:{content:()=>B(()=>import("./BetslipBookingBetPrintInfoWidget-Qa7aEPM1.js"),__vite__mapDeps([423,1,424])),loader:q$},PageBuilderDefaultComponent:{content:()=>B(()=>import("./PageBuilderDefaultComponent-DUYaMoBF.js"),__vite__mapDeps([425,1]))},PageBuilderTextBannerWidget:{content:()=>B(()=>import("./PageBuilderTextBannerWidget-BgLdqcuu.js"),__vite__mapDeps([426,344,343,1,345,346,427,428]))},TextBannerWidget:{content:()=>B(()=>import("./TextBannerWidget-CcjIDUhn.js"),__vite__mapDeps([429,1,430,428]))},DesignSystemDocs:{content:()=>B(()=>import("./index-CPv4f9ba.js"),__vite__mapDeps([431,256,257,432,433,434,435,436,437,438,439,1,440]))},CasinoProvidersWidget:{content:()=>B(()=>import("./CasinoProvidersWidget-B8px2d2F.js"),__vite__mapDeps([441,442,251,256,257,443,1,444])),loader:W8},CasinoLiveRTP:{content:()=>B(()=>import("./CasinoLiveRTP-MKo61ey0.js"),__vite__mapDeps([445,1,235,236,396,348,446])),loader:X8},CasinoLiveWins:{content:()=>B(()=>import("./CasinoLiveWins-DO14Y0k8.js"),__vite__mapDeps([447,256,257,396,1,448])),loader:c7},CasinoLiveRTPDescription:{content:()=>B(()=>import("./CasinoLiveRTPDescription-CxHjmyS1.js"),__vite__mapDeps([449,1,450])),loader:dr},FeaturedQuickGames:{content:()=>B(()=>import("./FeaturedQuickGames-D42-wxjY.js"),__vite__mapDeps([451,1,301,162,436,437,165,256,257,432,433,452,453,454])),loader:dr},BetBuilderAIRecommendedBets:{content:()=>B(()=>import("./BetBuilderAIRecommendedBets-FK1_9dA5.js"),__vite__mapDeps([455,240,241,165,1,456])),loader:dr},PageBuilderHeaderTextWidget:{content:()=>B(()=>import("./PageBuilderHeaderTextWidget-Db-jSX9Y.js"),__vite__mapDeps([457,343,1,344,345,428])),loader:dr},HeaderTextWidget:{content:()=>B(()=>import("./HeaderTextWidget-R77a6QGM.js"),__vite__mapDeps([458,1,428])),loader:dr}};var Cb=Fu(),Xe=e=>Bu(e,Cb),Tb=Fu();Xe.write=e=>Bu(e,Tb);var Bm=Fu();Xe.onStart=e=>Bu(e,Bm);var wb=Fu();Xe.onFrame=e=>Bu(e,wb);var Ib=Fu();Xe.onFinish=e=>Bu(e,Ib);var Ui=[];Xe.setTimeout=(e,t)=>{const n=Xe.now()+t,s=()=>{const a=Ui.findIndex(o=>o.cancel==s);~a&&Ui.splice(a,1),va-=~a?1:0},r={time:n,handler:e,cancel:s};return Ui.splice(zk(n),0,r),va+=1,Yk(),r};var zk=e=>~(~Ui.findIndex(t=>t.time>e)||~Ui.length);Xe.cancel=e=>{Bm.delete(e),wb.delete(e),Ib.delete(e),Cb.delete(e),Tb.delete(e)};Xe.sync=e=>{Xv=!0,Xe.batchedUpdates(e),Xv=!1};Xe.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function s(...r){t=r,Xe.onStart(n)}return s.handler=e,s.cancel=()=>{Bm.delete(n),t=null},s};var Ab=typeof window<"u"?window.requestAnimationFrame:()=>{};Xe.use=e=>Ab=e;Xe.now=typeof performance<"u"?()=>performance.now():Date.now;Xe.batchedUpdates=e=>e();Xe.catch=console.error;Xe.frameLoop="always";Xe.advance=()=>{Xe.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):Kk()};var _a=-1,va=0,Xv=!1;function Bu(e,t){Xv?(t.delete(e),e(0)):(t.add(e),Yk())}function Yk(){_a<0&&(_a=0,Xe.frameLoop!=="demand"&&Ab(qk))}function u7(){_a=-1}function qk(){~_a&&(Ab(qk),Xe.batchedUpdates(Kk))}function Kk(){const e=_a;_a=Xe.now();const t=zk(_a);if(t&&(Qk(Ui.splice(0,t),n=>n.handler()),va-=t),!va){u7();return}Bm.flush(),Cb.flush(e?Math.min(64,_a-e):16.667),wb.flush(),Tb.flush(),Ib.flush()}function Fu(){let e=new Set,t=e;return{add(n){va+=t==e&&!e.has(n)?1:0,e.add(n)},delete(n){return va-=t==e&&e.has(n)?1:0,e.delete(n)},flush(n){t.size&&(e=new Set,va-=t.size,Qk(t,s=>s(n)&&e.add(s)),va+=e.size,t=e)}}}function Qk(e,t){e.forEach(n=>{try{t(n)}catch(s){Xe.catch(s)}})}var d7=Object.defineProperty,f7=(e,t)=>{for(var n in t)d7(e,n,{get:t[n],enumerable:!0})},rr={};f7(rr,{assign:()=>m7,colors:()=>xa,createStringInterpolator:()=>xb,skipAnimation:()=>Jk,to:()=>Xk,willAdvance:()=>Ob});function Jv(){}var p7=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),_e={arr:Array.isArray,obj:e=>!!e&&e.constructor.name==="Object",fun:e=>typeof e=="function",str:e=>typeof e=="string",num:e=>typeof e=="number",und:e=>e===void 0};function Mr(e,t){if(_e.arr(e)){if(!_e.arr(t)||e.length!==t.length)return!1;for(let n=0;ne.forEach(t);function Pr(e,t,n){if(_e.arr(e)){for(let s=0;s_e.und(e)?[]:_e.arr(e)?e:[e];function Pc(e,t){if(e.size){const n=Array.from(e);e.clear(),dt(n,t)}}var sc=(e,...t)=>Pc(e,n=>n(...t)),Pb=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),xb,Xk,xa=null,Jk=!1,Ob=Jv,m7=e=>{e.to&&(Xk=e.to),e.now&&(Xe.now=e.now),e.colors!==void 0&&(xa=e.colors),e.skipAnimation!=null&&(Jk=e.skipAnimation),e.createStringInterpolator&&(xb=e.createStringInterpolator),e.requestAnimationFrame&&Xe.use(e.requestAnimationFrame),e.batchedUpdates&&(Xe.batchedUpdates=e.batchedUpdates),e.willAdvance&&(Ob=e.willAdvance),e.frameLoop&&(Xe.frameLoop=e.frameLoop)},xc=new Set,Ls=[],bg=[],Tp=0,Fm={get idle(){return!xc.size&&!Ls.length},start(e){Tp>e.priority?(xc.add(e),Xe.onStart(h7)):(Zk(e),Xe(Zv))},advance:Zv,sort(e){if(Tp)Xe.onFrame(()=>Fm.sort(e));else{const t=Ls.indexOf(e);~t&&(Ls.splice(t,1),eN(e))}},clear(){Ls=[],xc.clear()}};function h7(){xc.forEach(Zk),xc.clear(),Xe(Zv)}function Zk(e){Ls.includes(e)||eN(e)}function eN(e){Ls.splice(g7(Ls,t=>t.priority>e.priority),0,e)}function Zv(e){const t=bg;for(let n=0;n0}function g7(e,t){const n=e.findIndex(t);return n<0?e.length:n}var _7={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},Xs="[-+]?\\d*\\.?\\d+",wp=Xs+"%";function Um(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var v7=new RegExp("rgb"+Um(Xs,Xs,Xs)),E7=new RegExp("rgba"+Um(Xs,Xs,Xs,Xs)),y7=new RegExp("hsl"+Um(Xs,wp,wp)),b7=new RegExp("hsla"+Um(Xs,wp,wp,Xs)),S7=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,C7=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,T7=/^#([0-9a-fA-F]{6})$/,w7=/^#([0-9a-fA-F]{8})$/;function I7(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=T7.exec(e))?parseInt(t[1]+"ff",16)>>>0:xa&&xa[e]!==void 0?xa[e]:(t=v7.exec(e))?(Qo(t[1])<<24|Qo(t[2])<<16|Qo(t[3])<<8|255)>>>0:(t=E7.exec(e))?(Qo(t[1])<<24|Qo(t[2])<<16|Qo(t[3])<<8|PT(t[4]))>>>0:(t=S7.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=w7.exec(e))?parseInt(t[1],16)>>>0:(t=C7.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=y7.exec(e))?(IT(AT(t[1]),Pd(t[2]),Pd(t[3]))|255)>>>0:(t=b7.exec(e))?(IT(AT(t[1]),Pd(t[2]),Pd(t[3]))|PT(t[4]))>>>0:null}function Sg(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function IT(e,t,n){const s=n<.5?n*(1+t):n+t-n*t,r=2*n-s,a=Sg(r,s,e+1/3),o=Sg(r,s,e),i=Sg(r,s,e-1/3);return Math.round(a*255)<<24|Math.round(o*255)<<16|Math.round(i*255)<<8}function Qo(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function AT(e){return(parseFloat(e)%360+360)%360/360}function PT(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function Pd(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function xT(e){let t=I7(e);if(t===null)return e;t=t||0;const n=(t&4278190080)>>>24,s=(t&16711680)>>>16,r=(t&65280)>>>8,a=(t&255)/255;return`rgba(${n}, ${s}, ${r}, ${a})`}var lu=(e,t,n)=>{if(_e.fun(e))return e;if(_e.arr(e))return lu({range:e,output:t,extrapolate:n});if(_e.str(e.output[0]))return xb(e);const s=e,r=s.output,a=s.range||[0,1],o=s.extrapolateLeft||s.extrapolate||"extend",i=s.extrapolateRight||s.extrapolate||"extend",l=s.easing||(c=>c);return c=>{const u=P7(c,a);return A7(c,a[u],a[u+1],r[u],r[u+1],l,o,i,s.map)}};function A7(e,t,n,s,r,a,o,i,l){let c=l?l(e):e;if(cn){if(i==="identity")return c;i==="clamp"&&(c=n)}return s===r?s:t===n?e<=t?s:r:(t===-1/0?c=-c:n===1/0?c=c-t:c=(c-t)/(n-t),c=a(c),s===-1/0?c=-c:r===1/0?c=c+s:c=c*(r-s)+s,c)}function P7(e,t){for(var n=1;n=e);++n);return n-1}var x7={linear:e=>e},cu=Symbol.for("FluidValue.get"),ol=Symbol.for("FluidValue.observers"),Rs=e=>!!(e&&e[cu]),Wn=e=>e&&e[cu]?e[cu]():e,OT=e=>e[ol]||null;function O7(e,t){e.eventObserved?e.eventObserved(t):e(t)}function uu(e,t){const n=e[ol];n&&n.forEach(s=>{O7(s,t)})}var tN=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");k7(this,e)}},k7=(e,t)=>nN(e,cu,t);function vl(e,t){if(e[cu]){let n=e[ol];n||nN(e,ol,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function du(e,t){const n=e[ol];if(n&&n.has(t)){const s=n.size-1;s?n.delete(t):e[ol]=null,e.observerRemoved&&e.observerRemoved(s,t)}}var nN=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),df=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,N7=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,kT=new RegExp(`(${df.source})(%|[a-z]+)`,"i"),R7=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,$m=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,sN=e=>{const[t,n]=L7(e);if(!t||Pb())return e;const s=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(s)return s.trim();if(n&&n.startsWith("--")){const r=window.getComputedStyle(document.documentElement).getPropertyValue(n);return r||e}else{if(n&&$m.test(n))return sN(n);if(n)return n}return e},L7=e=>{const t=$m.exec(e);if(!t)return[,];const[,n,s]=t;return[n,s]},Cg,M7=(e,t,n,s,r)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(s)}, ${r})`,rN=e=>{Cg||(Cg=xa?new RegExp(`(${Object.keys(xa).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(a=>Wn(a).replace($m,sN).replace(N7,xT).replace(Cg,xT)),n=t.map(a=>a.match(df).map(Number)),r=n[0].map((a,o)=>n.map(i=>{if(!(o in i))throw Error('The arity of each "output" value must be equal');return i[o]})).map(a=>lu({...e,output:a}));return a=>{var l;const o=!kT.test(t[0])&&((l=t.find(c=>kT.test(c)))==null?void 0:l.replace(df,""));let i=0;return t[0].replace(df,()=>`${r[i++](a)}${o||""}`).replace(R7,M7)}},kb="react-spring: ",aN=e=>{const t=e;let n=!1;if(typeof t!="function")throw new TypeError(`${kb}once requires a function parameter`);return(...s)=>{n||(t(...s),n=!0)}},D7=aN(console.warn);function j7(){D7(`${kb}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var B7=aN(console.warn);function F7(){B7(`${kb}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`)}function Gm(e){return _e.str(e)&&(e[0]=="#"||/\d/.test(e)||!Pb()&&$m.test(e)||e in(xa||{}))}var Nb=Pb()?p.useEffect:p.useLayoutEffect,U7=()=>{const e=p.useRef(!1);return Nb(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function oN(){const e=p.useState()[1],t=U7();return()=>{t.current&&e(Math.random())}}function $7(e,t){const[n]=p.useState(()=>({inputs:t,result:e()})),s=p.useRef(),r=s.current;let a=r;return a?t&&a.inputs&&G7(t,a.inputs)||(a={inputs:t,result:e()}):a=n,p.useEffect(()=>{s.current=a,r==n&&(n.inputs=n.result=void 0)},[a]),a.result}function G7(e,t){if(e.length!==t.length)return!1;for(let n=0;np.useEffect(e,V7),V7=[];function NT(e){const t=p.useRef();return p.useEffect(()=>{t.current=e}),t.current}var fu=Symbol.for("Animated:node"),H7=e=>!!e&&e[fu]===e,hr=e=>e&&e[fu],Rb=(e,t)=>p7(e,fu,t),Vm=e=>e&&e[fu]&&e[fu].getPayload(),lN=class{constructor(){Rb(this,this)}getPayload(){return this.payload||[]}},Uu=class extends lN{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,_e.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new Uu(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return _e.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value===e?!1:(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,_e.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},pu=class extends Uu{constructor(e){super(0),this._string=null,this._toString=lu({output:[e,e]})}static create(e){return new pu(e)}getValue(){const e=this._string;return e??(this._string=this._toString(this._value))}setValue(e){if(_e.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else if(super.setValue(e))this._string=null;else return!1;return!0}reset(e){e&&(this._toString=lu({output:[this.getValue(),e]})),this._value=0,super.reset()}},Ip={dependencies:null},Hm=class extends lN{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return Pr(this.source,(n,s)=>{H7(n)?t[s]=n.getValue(e):Rs(n)?t[s]=Wn(n):e||(t[s]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&dt(this.payload,e=>e.reset())}_makePayload(e){if(e){const t=new Set;return Pr(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){Ip.dependencies&&Rs(e)&&Ip.dependencies.add(e);const t=Vm(e);t&&dt(t,n=>this.add(n))}},cN=class extends Hm{constructor(e){super(e)}static create(e){return new cN(e)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){const t=this.getPayload();return e.length==t.length?t.map((n,s)=>n.setValue(e[s])).some(Boolean):(super.setValue(e.map(W7)),!0)}};function W7(e){return(Gm(e)?pu:Uu).create(e)}function eE(e){const t=hr(e);return t?t.constructor:_e.arr(e)?cN:Gm(e)?pu:Uu}var RT=(e,t)=>{const n=!_e.fun(e)||e.prototype&&e.prototype.isReactComponent;return p.forwardRef((s,r)=>{const a=p.useRef(null),o=n&&p.useCallback(g=>{a.current=q7(r,g)},[r]),[i,l]=Y7(s,t),c=oN(),u=()=>{const g=a.current;if(n&&!g)return;(g?t.applyAnimatedValues(g,i.getValue(!0)):!1)===!1&&c()},f=new z7(u,l),m=p.useRef();Nb(()=>(m.current=f,dt(l,g=>vl(g,f)),()=>{m.current&&(dt(m.current.deps,g=>du(g,m.current)),Xe.cancel(m.current.update))})),p.useEffect(u,[]),iN(()=>()=>{const g=m.current;dt(g.deps,E=>du(E,g))});const h=t.getComponentProps(i.getValue());return p.createElement(e,{...h,ref:o})})},z7=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){e.type=="change"&&Xe.write(this.update)}};function Y7(e,t){const n=new Set;return Ip.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new Hm(e),Ip.dependencies=null,[e,n]}function q7(e,t){return e&&(_e.fun(e)?e(t):e.current=t),t}var LT=Symbol.for("AnimatedComponent"),K7=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=r=>new Hm(r),getComponentProps:s=r=>r}={})=>{const r={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:s},a=o=>{const i=MT(o)||"Anonymous";return _e.str(o)?o=a[o]||(a[o]=RT(o,r)):o=o[LT]||(o[LT]=RT(o,r)),o.displayName=`Animated(${i})`,o};return Pr(e,(o,i)=>{_e.arr(e)&&(i=MT(o)),a[i]=a(o)}),{animated:a}},MT=e=>_e.str(e)?e:e&&_e.str(e.displayName)?e.displayName:_e.fun(e)&&e.name||null;function Ja(e,...t){return _e.fun(e)?e(...t):e}var Oc=(e,t)=>e===!0||!!(t&&e&&(_e.fun(e)?e(t):gs(e).includes(t))),uN=(e,t)=>_e.obj(e)?t&&e[t]:e,dN=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,Q7=e=>e,Lb=(e,t=Q7)=>{let n=X7;e.default&&e.default!==!0&&(e=e.default,n=Object.keys(e));const s={};for(const r of n){const a=t(e[r],r);_e.und(a)||(s[r]=a)}return s},X7=["config","onProps","onStart","onChange","onPause","onResume","onRest"],J7={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function Z7(e){const t={};let n=0;if(Pr(e,(s,r)=>{J7[r]||(t[r]=s,n++)}),n)return t}function fN(e){const t=Z7(e);if(t){const n={to:t};return Pr(e,(s,r)=>r in t||(n[r]=s)),n}return{...e}}function mu(e){return e=Wn(e),_e.arr(e)?e.map(mu):Gm(e)?rr.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function e9(e){for(const t in e)return!0;return!1}function tE(e){return _e.fun(e)||_e.arr(e)&&_e.obj(e[0])}function t9(e,t){var n;(n=e.ref)==null||n.delete(e),t==null||t.delete(e)}function n9(e,t){var n;t&&e.ref!==t&&((n=e.ref)==null||n.delete(e),t.add(e),e.ref=t)}var s9={default:{tension:170,friction:26}},nE={...s9.default,mass:1,damping:1,easing:x7.linear,clamp:!1},r9=class{constructor(){this.velocity=0,Object.assign(this,nE)}};function a9(e,t,n){n&&(n={...n},DT(n,t),t={...n,...t}),DT(e,t),Object.assign(e,t);for(const o in nE)e[o]==null&&(e[o]=nE[o]);let{frequency:s,damping:r}=e;const{mass:a}=e;return _e.und(s)||(s<.01&&(s=.01),r<0&&(r=0),e.tension=Math.pow(2*Math.PI/s,2)*a,e.friction=4*Math.PI*r*a/s),e}function DT(e,t){if(!_e.und(t.decay))e.duration=void 0;else{const n=!_e.und(t.tension)||!_e.und(t.friction);(n||!_e.und(t.frequency)||!_e.und(t.damping)||!_e.und(t.mass))&&(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}}var jT=[],o9=class{constructor(){this.changed=!1,this.values=jT,this.toValues=null,this.fromValues=jT,this.config=new r9,this.immediate=!1}};function pN(e,{key:t,props:n,defaultProps:s,state:r,actions:a}){return new Promise((o,i)=>{let l,c,u=Oc(n.cancel??(s==null?void 0:s.cancel),t);if(u)h();else{_e.und(n.pause)||(r.paused=Oc(n.pause,t));let g=s==null?void 0:s.pause;g!==!0&&(g=r.paused||Oc(g,t)),l=Ja(n.delay||0,t),g?(r.resumeQueue.add(m),a.pause()):(a.resume(),m())}function f(){r.resumeQueue.add(m),r.timeouts.delete(c),c.cancel(),l=c.time-Xe.now()}function m(){l>0&&!rr.skipAnimation?(r.delayed=!0,c=Xe.setTimeout(h,l),r.pauseQueue.add(f),r.timeouts.add(c)):h()}function h(){r.delayed&&(r.delayed=!1),r.pauseQueue.delete(f),r.timeouts.delete(c),e<=(r.cancelId||0)&&(u=!0);try{a.start({...n,callId:e,cancel:u},o)}catch(g){i(g)}}})}var Mb=(e,t)=>t.length==1?t[0]:t.some(n=>n.cancelled)?$i(e.get()):t.every(n=>n.noop)?mN(e.get()):Qs(e.get(),t.every(n=>n.finished)),mN=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),Qs=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),$i=e=>({value:e,cancelled:!0,finished:!1});function hN(e,t,n,s){const{callId:r,parentId:a,onRest:o}=t,{asyncTo:i,promise:l}=n;return!a&&e===i&&!t.reset?l:n.promise=(async()=>{n.asyncId=r,n.asyncTo=e;const c=Lb(t,(b,v)=>v==="onRest"?void 0:b);let u,f;const m=new Promise((b,v)=>(u=b,f=v)),h=b=>{const v=r<=(n.cancelId||0)&&$i(s)||r!==n.asyncId&&Qs(s,!1);if(v)throw b.result=v,f(b),b},g=(b,v)=>{const _=new BT,y=new FT;return(async()=>{if(rr.skipAnimation)throw hu(n),y.result=Qs(s,!1),f(y),y;h(_);const S=_e.obj(b)?{...b}:{...v,to:b};S.parentId=r,Pr(c,(x,I)=>{_e.und(S[I])&&(S[I]=x)});const w=await s.start(S);return h(_),n.paused&&await new Promise(x=>{n.resumeQueue.add(x)}),w})()};let E;if(rr.skipAnimation)return hu(n),Qs(s,!1);try{let b;_e.arr(e)?b=(async v=>{for(const _ of v)await g(_)})(e):b=Promise.resolve(e(g,s.stop.bind(s))),await Promise.all([b.then(u),m]),E=Qs(s.get(),!0,!1)}catch(b){if(b instanceof BT)E=b.result;else if(b instanceof FT)E=b.result;else throw b}finally{r==n.asyncId&&(n.asyncId=a,n.asyncTo=a?i:void 0,n.promise=a?l:void 0)}return _e.fun(o)&&Xe.batchedUpdates(()=>{o(E,s,s.item)}),E})()}function hu(e,t){Pc(e.timeouts,n=>n.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var BT=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},FT=class extends Error{constructor(){super("SkipAnimationSignal")}},sE=e=>e instanceof Db,i9=1,Db=class extends tN{constructor(){super(...arguments),this.id=i9++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=hr(this);return e&&e.getValue()}to(...e){return rr.to(this,e)}interpolate(...e){return j7(),rr.to(this,e)}toJSON(){return this.get()}observerAdded(e){e==1&&this._attach()}observerRemoved(e){e==0&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){uu(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||Fm.sort(this),uu(this,{type:"priority",parent:this,priority:e})}},ko=Symbol.for("SpringPhase"),gN=1,rE=2,aE=4,Tg=e=>(e[ko]&gN)>0,ra=e=>(e[ko]&rE)>0,Ml=e=>(e[ko]&aE)>0,UT=(e,t)=>t?e[ko]|=rE|gN:e[ko]&=~rE,$T=(e,t)=>t?e[ko]|=aE:e[ko]&=~aE,l9=class extends Db{constructor(e,t){if(super(),this.animation=new o9,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!_e.und(e)||!_e.und(t)){const n=_e.obj(e)?{...e}:{...t,from:e};_e.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(ra(this)||this._state.asyncTo)||Ml(this)}get goal(){return Wn(this.animation.to)}get velocity(){const e=hr(this);return e instanceof Uu?e.lastVelocity||0:e.getPayload().map(t=>t.lastVelocity||0)}get hasAnimated(){return Tg(this)}get isAnimating(){return ra(this)}get isPaused(){return Ml(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1;const s=this.animation;let{toValues:r}=s;const{config:a}=s,o=Vm(s.to);!o&&Rs(s.to)&&(r=gs(Wn(s.to))),s.values.forEach((c,u)=>{if(c.done)return;const f=c.constructor==pu?1:o?o[u].lastPosition:r[u];let m=s.immediate,h=f;if(!m){if(h=c.lastPosition,a.tension<=0){c.done=!0;return}let g=c.elapsedTime+=e;const E=s.fromValues[u],b=c.v0!=null?c.v0:c.v0=_e.arr(a.velocity)?a.velocity[u]:a.velocity;let v;const _=a.precision||(E==f?.005:Math.min(1,Math.abs(f-E)*.001));if(_e.und(a.duration))if(a.decay){const y=a.decay===!0?.998:a.decay,S=Math.exp(-(1-y)*g);h=E+b/(1-y)*(1-S),m=Math.abs(c.lastPosition-h)<=_,v=b*S}else{v=c.lastVelocity==null?b:c.lastVelocity;const y=a.restVelocity||_/10,S=a.clamp?0:a.bounce,w=!_e.und(S),x=E==f?c.v0>0:Ey,!(!I&&(m=Math.abs(f-h)<=_,m)));++A){w&&(C=h==f||h>f==x,C&&(v=-v*S,h=f));const O=-a.tension*1e-6*(h-f),M=-a.friction*.001*v,k=(O+M)/a.mass;v=v+k*T,h=h+v*T}}else{let y=1;a.duration>0&&(this._memoizedDuration!==a.duration&&(this._memoizedDuration=a.duration,c.durationProgress>0&&(c.elapsedTime=a.duration*c.durationProgress,g=c.elapsedTime+=e)),y=(a.progress||0)+g/this._memoizedDuration,y=y>1?1:y<0?0:y,c.durationProgress=y),h=E+a.easing(y)*(f-E),v=(h-c.lastPosition)/e,m=y==1}c.lastVelocity=v,Number.isNaN(h)&&(console.warn("Got NaN while animating:",this),m=!0)}o&&!o[u].done&&(m=!1),m?c.done=!0:t=!1,c.setValue(h,a.round)&&(n=!0)});const i=hr(this),l=i.getValue();if(t){const c=Wn(s.to);(l!==c||n)&&!a.decay?(i.setValue(c),this._onChange(c)):n&&a.decay&&this._onChange(l),this._stop()}else n&&this._onChange(l)}set(e){return Xe.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(ra(this)){const{to:e,config:t}=this.animation;Xe.batchedUpdates(()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return _e.und(e)?(n=this.queue||[],this.queue=[]):n=[_e.obj(e)?e:{...t,to:e}],Promise.all(n.map(s=>this._update(s))).then(s=>Mb(this,s))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),hu(this._state,e&&this._lastCallId),Xe.batchedUpdates(()=>this._stop(t,e)),this}reset(){this._update({reset:!0})}eventObserved(e){e.type=="change"?this._start():e.type=="priority"&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:n,from:s}=e;n=_e.obj(n)?n[t]:n,(n==null||tE(n))&&(n=void 0),s=_e.obj(s)?s[t]:s,s==null&&(s=void 0);const r={to:n,from:s};return Tg(this)||(e.reverse&&([n,s]=[s,n]),s=Wn(s),_e.und(s)?hr(this)||this._set(n):this._set(s)),r}_update({...e},t){const{key:n,defaultProps:s}=this;e.default&&Object.assign(s,Lb(e,(o,i)=>/^on/.test(i)?uN(o,n):o)),VT(this,e,"onProps"),jl(this,"onProps",e,this);const r=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const a=this._state;return pN(++this._lastCallId,{key:n,props:e,defaultProps:s,state:a,actions:{pause:()=>{Ml(this)||($T(this,!0),sc(a.pauseQueue),jl(this,"onPause",Qs(this,Dl(this,this.animation.to)),this))},resume:()=>{Ml(this)&&($T(this,!1),ra(this)&&this._resume(),sc(a.resumeQueue),jl(this,"onResume",Qs(this,Dl(this,this.animation.to)),this))},start:this._merge.bind(this,r)}}).then(o=>{if(e.loop&&o.finished&&!(t&&o.noop)){const i=_N(e);if(i)return this._update(i,!0)}return o})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n($i(this));const s=!_e.und(e.to),r=!_e.und(e.from);if(s||r)if(t.callId>this._lastToId)this._lastToId=t.callId;else return n($i(this));const{key:a,defaultProps:o,animation:i}=this,{to:l,from:c}=i;let{to:u=l,from:f=c}=e;r&&!s&&(!t.default||_e.und(u))&&(u=f),t.reverse&&([u,f]=[f,u]);const m=!Mr(f,c);m&&(i.from=f),f=Wn(f);const h=!Mr(u,l);h&&this._focus(u);const g=tE(t.to),{config:E}=i,{decay:b,velocity:v}=E;(s||r)&&(E.velocity=0),t.config&&!g&&a9(E,Ja(t.config,a),t.config!==o.config?Ja(o.config,a):void 0);let _=hr(this);if(!_||_e.und(u))return n(Qs(this,!0));const y=_e.und(t.reset)?r&&!t.default:!_e.und(f)&&Oc(t.reset,a),S=y?f:this.get(),w=mu(u),x=_e.num(w)||_e.arr(w)||Gm(w),I=!g&&(!x||Oc(o.immediate||t.immediate,a));if(h){const A=eE(u);if(A!==_.constructor)if(I)_=this._set(w);else throw Error(`Cannot animate between ${_.constructor.name} and ${A.name}, as the "to" prop suggests`)}const C=_.constructor;let T=Rs(u),P=!1;if(!T){const A=y||!Tg(this)&&m;(h||A)&&(P=Mr(mu(S),w),T=!P),(!Mr(i.immediate,I)&&!I||!Mr(E.decay,b)||!Mr(E.velocity,v))&&(T=!0)}if(P&&ra(this)&&(i.changed&&!y?T=!0:T||this._stop(l)),!g&&((T||Rs(l))&&(i.values=_.getPayload(),i.toValues=Rs(u)?null:C==pu?[1]:gs(w)),i.immediate!=I&&(i.immediate=I,!I&&!y&&this._set(l)),T)){const{onRest:A}=i;dt(u9,M=>VT(this,t,M));const O=Qs(this,Dl(this,l));sc(this._pendingCalls,O),this._pendingCalls.add(n),i.changed&&Xe.batchedUpdates(()=>{var M;i.changed=!y,A==null||A(O,this),y?Ja(o.onRest,O):(M=i.onStart)==null||M.call(i,O,this)})}y&&this._set(S),g?n(hN(t.to,t,this._state,this)):T?this._start():ra(this)&&!h?this._pendingCalls.add(n):n(mN(S))}_focus(e){const t=this.animation;e!==t.to&&(OT(this)&&this._detach(),t.to=e,OT(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;Rs(t)&&(vl(t,this),sE(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;Rs(e)&&du(e,this)}_set(e,t=!0){const n=Wn(e);if(!_e.und(n)){const s=hr(this);if(!s||!Mr(n,s.getValue())){const r=eE(n);!s||s.constructor!=r?Rb(this,r.create(n)):s.setValue(n),s&&Xe.batchedUpdates(()=>{this._onChange(n,t)})}}return hr(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,jl(this,"onStart",Qs(this,Dl(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),Ja(this.animation.onChange,e,this)),Ja(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;hr(this).reset(Wn(e.to)),e.immediate||(e.fromValues=e.values.map(t=>t.lastPosition)),ra(this)||(UT(this,!0),Ml(this)||this._resume())}_resume(){rr.skipAnimation?this.finish():Fm.start(this)}_stop(e,t){if(ra(this)){UT(this,!1);const n=this.animation;dt(n.values,r=>{r.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),uu(this,{type:"idle",parent:this});const s=t?$i(this.get()):Qs(this.get(),Dl(this,e??n.to));sc(this._pendingCalls,s),n.changed&&(n.changed=!1,jl(this,"onRest",s,this))}}};function Dl(e,t){const n=mu(t),s=mu(e.get());return Mr(s,n)}function _N(e,t=e.loop,n=e.to){const s=Ja(t);if(s){const r=s!==!0&&fN(s),a=(r||e).reverse,o=!r||r.reset;return gu({...e,loop:t,default:!1,pause:void 0,to:!a||tE(n)?n:void 0,from:o?e.from:void 0,reset:o,...r})}}function gu(e){const{to:t,from:n}=e=fN(e),s=new Set;return _e.obj(t)&>(t,s),_e.obj(n)&>(n,s),e.keys=s.size?Array.from(s):null,e}function c9(e){const t=gu(e);return _e.und(t.default)&&(t.default=Lb(t)),t}function GT(e,t){Pr(e,(n,s)=>n!=null&&t.add(s))}var u9=["onStart","onRest","onChange","onPause","onResume"];function VT(e,t,n){e.animation[n]=t[n]!==dN(t,n)?uN(t[n],e.key):void 0}function jl(e,t,...n){var s,r,a,o;(r=(s=e.animation)[t])==null||r.call(s,...n),(o=(a=e.defaultProps)[t])==null||o.call(a,...n)}var d9=["onStart","onChange","onRest"],f9=1,p9=class{constructor(e,t){this.id=f9++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle&&!e.isDelayed&&!e.isPaused)}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each((t,n)=>e[n]=t.get()),e}set(e){for(const t in e){const n=e[t];_e.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(gu(e)),this}start(e){let{queue:t}=this;return e?t=gs(e).map(gu):this.queue=[],this._flush?this._flush(this,t):(SN(this,t),oE(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;dt(gs(t),s=>n[s].stop(!!e))}else hu(this._state,this._lastAsyncId),this.each(n=>n.stop(!!e));return this}pause(e){if(_e.und(e))this.start({pause:!0});else{const t=this.springs;dt(gs(e),n=>t[n].pause())}return this}resume(e){if(_e.und(e))this.start({pause:!1});else{const t=this.springs;dt(gs(e),n=>t[n].resume())}return this}each(e){Pr(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,s=this._active.size>0,r=this._changed.size>0;(s&&!this._started||r&&!this._started)&&(this._started=!0,Pc(e,([i,l])=>{l.value=this.get(),i(l,this,this._item)}));const a=!s&&this._started,o=r||a&&n.size?this.get():null;r&&t.size&&Pc(t,([i,l])=>{l.value=o,i(l,this,this._item)}),a&&(this._started=!1,Pc(n,([i,l])=>{l.value=o,i(l,this,this._item)}))}eventObserved(e){if(e.type=="change")this._changed.add(e.parent),e.idle||this._active.add(e.parent);else if(e.type=="idle")this._active.delete(e.parent);else return;Xe.onFrame(this._onFrame)}};function oE(e,t){return Promise.all(t.map(n=>vN(e,n))).then(n=>Mb(e,n))}async function vN(e,t,n){const{keys:s,to:r,from:a,loop:o,onRest:i,onResolve:l}=t,c=_e.obj(t.default)&&t.default;o&&(t.loop=!1),r===!1&&(t.to=null),a===!1&&(t.from=null);const u=_e.arr(r)||_e.fun(r)?r:void 0;u?(t.to=void 0,t.onRest=void 0,c&&(c.onRest=void 0)):dt(d9,E=>{const b=t[E];if(_e.fun(b)){const v=e._events[E];t[E]=({finished:_,cancelled:y})=>{const S=v.get(b);S?(_||(S.finished=!1),y&&(S.cancelled=!0)):v.set(b,{value:null,finished:_||!1,cancelled:y||!1})},c&&(c[E]=t[E])}});const f=e._state;t.pause===!f.paused?(f.paused=t.pause,sc(t.pause?f.pauseQueue:f.resumeQueue)):f.paused&&(t.pause=!0);const m=(s||Object.keys(e.springs)).map(E=>e.springs[E].start(t)),h=t.cancel===!0||dN(t,"cancel")===!0;(u||h&&f.asyncId)&&m.push(pN(++e._lastAsyncId,{props:t,state:f,actions:{pause:Jv,resume:Jv,start(E,b){h?(hu(f,e._lastAsyncId),b($i(e))):(E.onRest=i,b(hN(u,E,f,e)))}}})),f.paused&&await new Promise(E=>{f.resumeQueue.add(E)});const g=Mb(e,await Promise.all(m));if(o&&g.finished&&!(n&&g.noop)){const E=_N(t,o,r);if(E)return SN(e,[E]),vN(e,E,!0)}return l&&Xe.batchedUpdates(()=>l(g,e,e.item)),g}function HT(e,t){const n={...e.springs};return t&&dt(gs(t),s=>{_e.und(s.keys)&&(s=gu(s)),_e.obj(s.to)||(s={...s,to:void 0}),bN(n,s,r=>yN(r))}),EN(e,n),n}function EN(e,t){Pr(t,(n,s)=>{e.springs[s]||(e.springs[s]=n,vl(n,e))})}function yN(e,t){const n=new l9;return n.key=e,t&&vl(n,t),n}function bN(e,t,n){t.keys&&dt(t.keys,s=>{(e[s]||(e[s]=n(s)))._prepareNode(t)})}function SN(e,t){dt(t,n=>{bN(e.springs,n,s=>yN(s,e))})}var Wm=({children:e,...t})=>{const n=p.useContext(Ap),s=t.pause||!!n.pause,r=t.immediate||!!n.immediate;t=$7(()=>({pause:s,immediate:r}),[s,r]);const{Provider:a}=Ap;return p.createElement(a,{value:t},e)},Ap=m9(Wm,{});Wm.Provider=Ap.Provider;Wm.Consumer=Ap.Consumer;function m9(e,t){return Object.assign(e,p.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}var h9=()=>{const e=[],t=function(s){F7();const r=[];return dt(e,(a,o)=>{if(_e.und(s))r.push(a.start());else{const i=n(s,a,o);i&&r.push(a.start(i))}}),r};t.current=e,t.add=function(s){e.includes(s)||e.push(s)},t.delete=function(s){const r=e.indexOf(s);~r&&e.splice(r,1)},t.pause=function(){return dt(e,s=>s.pause(...arguments)),this},t.resume=function(){return dt(e,s=>s.resume(...arguments)),this},t.set=function(s){dt(e,(r,a)=>{const o=_e.fun(s)?s(a,r):s;o&&r.set(o)})},t.start=function(s){const r=[];return dt(e,(a,o)=>{if(_e.und(s))r.push(a.start());else{const i=this._getProps(s,a,o);i&&r.push(a.start(i))}}),r},t.stop=function(){return dt(e,s=>s.stop(...arguments)),this},t.update=function(s){return dt(e,(r,a)=>r.update(this._getProps(s,r,a))),this};const n=function(s,r,a){return _e.fun(s)?s(a,r):s};return t._getProps=n,t};function g9(e,t,n){const s=_e.fun(t)&&t;s&&!n&&(n=[]);const r=p.useMemo(()=>s||arguments.length==3?h9():void 0,[]),a=p.useRef(0),o=oN(),i=p.useMemo(()=>({ctrls:[],queue:[],flush(v,_){const y=HT(v,_);return a.current>0&&!i.queue.length&&!Object.keys(y).some(w=>!v.springs[w])?oE(v,_):new Promise(w=>{EN(v,y),i.queue.push(()=>{w(oE(v,_))}),o()})}}),[]),l=p.useRef([...i.ctrls]),c=[],u=NT(e)||0;p.useMemo(()=>{dt(l.current.slice(e,u),v=>{t9(v,r),v.stop(!0)}),l.current.length=e,f(u,e)},[e]),p.useMemo(()=>{f(0,Math.min(u,e))},n);function f(v,_){for(let y=v;y<_;y++){const S=l.current[y]||(l.current[y]=new p9(null,i.flush)),w=s?s(y,S):t[y];w&&(c[y]=c9(w))}}const m=l.current.map((v,_)=>HT(v,c[_])),h=p.useContext(Wm),g=NT(h),E=h!==g&&e9(h);Nb(()=>{a.current++,i.ctrls=l.current;const{queue:v}=i;v.length&&(i.queue=[],dt(v,_=>_())),dt(l.current,(_,y)=>{r==null||r.add(_),E&&_.start({default:h});const S=c[y];S&&(n9(_,S.ref),_.ref?_.queue.push(S):_.start(S))})}),iN(()=>()=>{dt(i.ctrls,v=>v.stop(!0))});const b=m.map(v=>({...v}));return r?[b,r]:b}function _9(e,t){const n=_e.fun(e),[[s],r]=g9(1,n?e:[e],n?[]:t);return n||arguments.length==2?[s,r]:s}var CN=class extends Db{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=lu(...t);const n=this._get(),s=eE(n);Rb(this,s.create(n))}advance(e){const t=this._get(),n=this.get();Mr(t,n)||(hr(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&WT(this._active)&&wg(this)}_get(){const e=_e.arr(this.source)?this.source.map(Wn):gs(Wn(this.source));return this.calc(...e)}_start(){this.idle&&!WT(this._active)&&(this.idle=!1,dt(Vm(this),e=>{e.done=!1}),rr.skipAnimation?(Xe.batchedUpdates(()=>this.advance()),wg(this)):Fm.start(this))}_attach(){let e=1;dt(gs(this.source),t=>{Rs(t)&&vl(t,this),sE(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){dt(gs(this.source),e=>{Rs(e)&&du(e,this)}),this._active.clear(),wg(this)}eventObserved(e){e.type=="change"?e.idle?this.advance():(this._active.add(e.parent),this._start()):e.type=="idle"?this._active.delete(e.parent):e.type=="priority"&&(this.priority=gs(this.source).reduce((t,n)=>Math.max(t,(sE(n)?n.priority:0)+1),0))}};function v9(e){return e.idle!==!1}function WT(e){return!e.size||Array.from(e).every(v9)}function wg(e){e.idle||(e.idle=!0,dt(Vm(e),t=>{t.done=!0}),uu(e,{type:"idle",parent:e}))}var Wde=(e,...t)=>new CN(e,t);rr.assign({createStringInterpolator:rN,to:(e,t)=>new CN(e,t)});var TN=/^--/;function E9(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!TN.test(e)&&!(kc.hasOwnProperty(e)&&kc[e])?t+"px":(""+t).trim()}var zT={};function y9(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n=e.nodeName==="filter"||e.parentNode&&e.parentNode.nodeName==="filter",{className:s,style:r,children:a,scrollTop:o,scrollLeft:i,viewBox:l,...c}=t,u=Object.values(c),f=Object.keys(c).map(m=>n||e.hasAttribute(m)?m:zT[m]||(zT[m]=m.replace(/([A-Z])/g,h=>"-"+h.toLowerCase())));a!==void 0&&(e.textContent=a);for(const m in r)if(r.hasOwnProperty(m)){const h=E9(m,r[m]);TN.test(m)?e.style.setProperty(m,h):e.style[m]=h}f.forEach((m,h)=>{e.setAttribute(m,u[h])}),s!==void 0&&(e.className=s),o!==void 0&&(e.scrollTop=o),i!==void 0&&(e.scrollLeft=i),l!==void 0&&e.setAttribute("viewBox",l)}var kc={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},b9=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),S9=["Webkit","Ms","Moz","O"];kc=Object.keys(kc).reduce((e,t)=>(S9.forEach(n=>e[b9(n,t)]=e[t]),e),kc);var C9=/^(matrix|translate|scale|rotate|skew)/,T9=/^(translate)/,w9=/^(rotate|skew)/,Ig=(e,t)=>_e.num(e)&&e!==0?e+t:e,ff=(e,t)=>_e.arr(e)?e.every(n=>ff(n,t)):_e.num(e)?e===t:parseFloat(e)===t,I9=class extends Hm{constructor({x:e,y:t,z:n,...s}){const r=[],a=[];(e||t||n)&&(r.push([e||0,t||0,n||0]),a.push(o=>[`translate3d(${o.map(i=>Ig(i,"px")).join(",")})`,ff(o,0)])),Pr(s,(o,i)=>{if(i==="transform")r.push([o||""]),a.push(l=>[l,l===""]);else if(C9.test(i)){if(delete s[i],_e.und(o))return;const l=T9.test(i)?"px":w9.test(i)?"deg":"";r.push(gs(o)),a.push(i==="rotate3d"?([c,u,f,m])=>[`rotate3d(${c},${u},${f},${Ig(m,l)})`,ff(m,0)]:c=>[`${i}(${c.map(u=>Ig(u,l)).join(",")})`,ff(c,i.startsWith("scale")?1:0)])}}),r.length&&(s.transform=new A9(r,a)),super(s)}},A9=class extends tN{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return dt(this.inputs,(n,s)=>{const r=Wn(n[0]),[a,o]=this.transforms[s](_e.arr(r)?r:n.map(Wn));e+=" "+a,t=t&&o}),t?"none":e}observerAdded(e){e==1&&dt(this.inputs,t=>dt(t,n=>Rs(n)&&vl(n,this)))}observerRemoved(e){e==0&&dt(this.inputs,t=>dt(t,n=>Rs(n)&&du(n,this)))}eventObserved(e){e.type=="change"&&(this._value=null),uu(this,e)}},P9=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"];rr.assign({batchedUpdates:Do.unstable_batchedUpdates,createStringInterpolator:rN,colors:_7});var x9=K7(P9,{applyAnimatedValues:y9,createAnimatedStyle:e=>new I9(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),zm=x9.animated,wN={exports:{}};(function(e,t){(function(s,r){e.exports=r()})(ll,function(){return function(n){var s={};function r(a){if(s[a])return s[a].exports;var o=s[a]={i:a,l:!1,exports:{}};return n[a].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=n,r.c=s,r.d=function(a,o,i){r.o(a,o)||Object.defineProperty(a,o,{enumerable:!0,get:i})},r.r=function(a){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})},r.t=function(a,o){if(o&1&&(a=r(a)),o&8||o&4&&typeof a=="object"&&a&&a.__esModule)return a;var i=Object.create(null);if(r.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:a}),o&2&&typeof a!="string")for(var l in a)r.d(i,l,(function(c){return a[c]}).bind(null,l));return i},r.n=function(a){var o=a&&a.__esModule?function(){return a.default}:function(){return a};return r.d(o,"a",o),o},r.o=function(a,o){return Object.prototype.hasOwnProperty.call(a,o)},r.p="",r(r.s=0)}([function(n,s,r){r.r(s);var a=function(F){return Array.isArray(F)?F:[F]},o=function(F){return F instanceof Node},i=function(F){return F instanceof NodeList},l=function(F,re){if(F&&re){F=i(F)?F:[F];for(var ce=0;ce2&&arguments[2]!==void 0?arguments[2]:!0,pe=arguments.length>3&&arguments[3]!==void 0?arguments[3]:document;if(ce&&f(pe.querySelectorAll(re)).indexOf(F)!==-1)return F;for(;(F=F.parentElement)&&f(pe.querySelectorAll(re)).indexOf(F)===-1;);return F},h=function(F,re){var ce=arguments.length>2&&arguments[2]!==void 0?arguments[2]:document,pe=f(ce.querySelectorAll(re)).indexOf(F)!==-1;return pe},g=function(F){if(F){var re=getComputedStyle(F),ce=re.overflow==="hidden";return ce}},E=function(F){if(F){if(g(F))return!0;var re=F.scrollTop;return re<=0}},b=function(F){if(F){if(g(F))return!0;var re=F.scrollTop,ce=F.scrollHeight,pe=re+F.offsetHeight;return pe>=ce}},v=function(F){if(F){if(g(F))return!0;var re=F.scrollLeft;return re<=0}},_=function(F){if(F){if(g(F))return!0;var re=F.scrollLeft,ce=F.scrollWidth,pe=re+F.offsetWidth;return pe>=ce}},y=function(F){var re='textarea, [contenteditable="true"]';return h(F,re)},S=function(F){var re='input[type="range"]';return h(F,re)};r.d(s,"disablePageScroll",function(){return P}),r.d(s,"enablePageScroll",function(){return A}),r.d(s,"getScrollState",function(){return O}),r.d(s,"clearQueueScrollLocks",function(){return M}),r.d(s,"getTargetScrollBarWidth",function(){return k}),r.d(s,"getCurrentTargetScrollBarWidth",function(){return D}),r.d(s,"getPageScrollBarWidth",function(){return j}),r.d(s,"getCurrentPageScrollBarWidth",function(){return V}),r.d(s,"addScrollableTarget",function(){return R}),r.d(s,"removeScrollableTarget",function(){return U}),r.d(s,"addScrollableSelector",function(){return G}),r.d(s,"removeScrollableSelector",function(){return z}),r.d(s,"addLockableTarget",function(){return K}),r.d(s,"addLockableSelector",function(){return ne}),r.d(s,"setFillGapMethod",function(){return J}),r.d(s,"addFillGapTarget",function(){return $}),r.d(s,"removeFillGapTarget",function(){return L}),r.d(s,"addFillGapSelector",function(){return W}),r.d(s,"removeFillGapSelector",function(){return q}),r.d(s,"refillGaps",function(){return de});function w(H){for(var F=1;F0&&T.queue--,T.queue<=0&&(T.scroll=!0,Y(),le()),U(F)},O=function(){return T.scroll},M=function(){T.queue=0},k=function(F){var re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(o(F)){var ce=F.style.overflowY;re?O()||(F.style.overflowY=F.getAttribute("data-scroll-lock-saved-overflow-y-property")):F.style.overflowY="scroll";var pe=D(F);return F.style.overflowY=ce,pe}else return 0},D=function(F){if(o(F))if(F===document.body){var re=document.documentElement.clientWidth,ce=window.innerWidth,pe=ce-re;return pe}else{var be=F.style.borderLeftWidth,Pe=F.style.borderRightWidth;F.style.borderLeftWidth="0px",F.style.borderRightWidth="0px";var Ke=F.offsetWidth-F.clientWidth;return F.style.borderLeftWidth=be,F.style.borderRightWidth=Pe,Ke}else return 0},j=function(){var F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return k(document.body,F)},V=function(){return D(document.body)},R=function(F){if(F){var re=a(F);re.map(function(ce){l(ce,function(pe){o(pe)?pe.setAttribute("data-scroll-lock-scrollable",""):c('"'.concat(pe,'" is not a Element.'))})})}},U=function(F){if(F){var re=a(F);re.map(function(ce){l(ce,function(pe){o(pe)?pe.removeAttribute("data-scroll-lock-scrollable"):c('"'.concat(pe,'" is not a Element.'))})})}},G=function(F){if(F){var re=a(F);re.map(function(ce){T.scrollableSelectors.push(ce)})}},z=function(F){if(F){var re=a(F);re.map(function(ce){T.scrollableSelectors=T.scrollableSelectors.filter(function(pe){return pe!==ce})})}},K=function(F){if(F){var re=a(F);re.map(function(ce){l(ce,function(pe){o(pe)?pe.setAttribute("data-scroll-lock-lockable",""):c('"'.concat(pe,'" is not a Element.'))})}),O()||ue()}},ne=function(F){if(F){var re=a(F);re.map(function(ce){T.lockableSelectors.push(ce)}),O()||ue(),W(F)}},J=function(F){if(F)if(I.indexOf(F)!==-1)T.fillGapMethod=F,de();else{var re=I.join(", ");c('"'.concat(F,`" method is not available! Available fill gap methods: `).concat(re,"."))}},$=function(F){if(F){var re=a(F);re.map(function(ce){l(ce,function(pe){o(pe)?(pe.setAttribute("data-scroll-lock-fill-gap",""),T.scroll||Fe(pe)):c('"'.concat(pe,'" is not a Element.'))})})}},L=function(F){if(F){var re=a(F);re.map(function(ce){l(ce,function(pe){o(pe)?(pe.removeAttribute("data-scroll-lock-fill-gap"),T.scroll||Me(pe)):c('"'.concat(pe,'" is not a Element.'))})})}},W=function(F){if(F){var re=a(F);re.map(function(ce){T.fillGapSelectors.indexOf(ce)===-1&&(T.fillGapSelectors.push(ce),T.scroll||Ie(ce))})}},q=function(F){if(F){var re=a(F);re.map(function(ce){T.fillGapSelectors=T.fillGapSelectors.filter(function(pe){return pe!==ce}),T.scroll||ct(ce)})}},de=function(){T.scroll||fe()},ue=function(){var F=u(T.lockableSelectors);ae(F)},Y=function(){var F=u(T.lockableSelectors);ie(F)},ae=function(F){var re=document.querySelectorAll(F);l(re,function(ce){Z(ce)})},ie=function(F){var re=document.querySelectorAll(F);l(re,function(ce){te(ce)})},Z=function(F){if(o(F)&&F.getAttribute("data-scroll-lock-locked")!=="true"){var re=window.getComputedStyle(F);F.setAttribute("data-scroll-lock-saved-overflow-y-property",re.overflowY),F.setAttribute("data-scroll-lock-saved-inline-overflow-property",F.style.overflow),F.setAttribute("data-scroll-lock-saved-inline-overflow-y-property",F.style.overflowY),F.style.overflow="hidden",F.setAttribute("data-scroll-lock-locked","true")}},te=function(F){o(F)&&F.getAttribute("data-scroll-lock-locked")==="true"&&(F.style.overflow=F.getAttribute("data-scroll-lock-saved-inline-overflow-property"),F.style.overflowY=F.getAttribute("data-scroll-lock-saved-inline-overflow-y-property"),F.removeAttribute("data-scroll-lock-saved-overflow-property"),F.removeAttribute("data-scroll-lock-saved-inline-overflow-property"),F.removeAttribute("data-scroll-lock-saved-inline-overflow-y-property"),F.removeAttribute("data-scroll-lock-locked"))},fe=function(){T.fillGapSelectors.map(function(F){Ie(F)})},le=function(){T.fillGapSelectors.map(function(F){ct(F)})},Ie=function(F){var re=document.querySelectorAll(F),ce=T.lockableSelectors.indexOf(F)!==-1;l(re,function(pe){Fe(pe,ce)})},Fe=function(F){var re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(o(F)){var ce;if(F.getAttribute("data-scroll-lock-lockable")===""||re)ce=k(F,!0);else{var pe=m(F,u(T.lockableSelectors));ce=k(pe,!0)}F.getAttribute("data-scroll-lock-filled-gap")==="true"&&Me(F);var be=window.getComputedStyle(F);if(F.setAttribute("data-scroll-lock-filled-gap","true"),F.setAttribute("data-scroll-lock-current-fill-gap-method",T.fillGapMethod),T.fillGapMethod==="margin"){var Pe=parseFloat(be.marginRight);F.style.marginRight="".concat(Pe+ce,"px")}else if(T.fillGapMethod==="width")F.style.width="calc(100% - ".concat(ce,"px)");else if(T.fillGapMethod==="max-width")F.style.maxWidth="calc(100% - ".concat(ce,"px)");else if(T.fillGapMethod==="padding"){var Ke=parseFloat(be.paddingRight);F.style.paddingRight="".concat(Ke+ce,"px")}}},ct=function(F){var re=document.querySelectorAll(F);l(re,function(ce){Me(ce)})},Me=function(F){if(o(F)&&F.getAttribute("data-scroll-lock-filled-gap")==="true"){var re=F.getAttribute("data-scroll-lock-current-fill-gap-method");F.removeAttribute("data-scroll-lock-filled-gap"),F.removeAttribute("data-scroll-lock-current-fill-gap-method"),re==="margin"?F.style.marginRight="":re==="width"?F.style.width="":re==="max-width"?F.style.maxWidth="":re==="padding"&&(F.style.paddingRight="")}},Oe=function(F){de()},$e=function(F){T.scroll||(T.startTouchY=F.touches[0].clientY,T.startTouchX=F.touches[0].clientX)},De=function(F){if(!T.scroll){var re=T.startTouchY,ce=T.startTouchX,pe=F.touches[0].clientY,be=F.touches[0].clientX;if(F.touches.length<2){var Pe=u(T.scrollableSelectors),Ke={up:repe,left:cebe},Be={up:re+Cpe,left:ce+Cbe},Ue=function Ct(Qe){var Kt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(Qe){var fn=m(Qe,Pe,!1);if(S(Qe))return!1;if(Kt||y(Qe)&&m(Qe,Pe)||h(Qe,Pe)){var _t=!1;v(Qe)&&_(Qe)?(Ke.up&&E(Qe)||Ke.down&&b(Qe))&&(_t=!0):E(Qe)&&b(Qe)?(Ke.left&&v(Qe)||Ke.right&&_(Qe))&&(_t=!0):(Be.up&&E(Qe)||Be.down&&b(Qe)||Be.left&&v(Qe)||Be.right&&_(Qe))&&(_t=!0),_t&&(fn?Ct(fn,!0):F.cancelable&&F.preventDefault())}else Ct(fn)}else F.cancelable&&F.preventDefault()};Ue(F.target)}}},Ee=function(F){T.scroll||(T.startTouchY=0,T.startTouchX=0)};typeof window<"u"&&window.addEventListener("resize",Oe),typeof document<"u"&&(document.addEventListener("touchstart",$e),document.addEventListener("touchmove",De,{passive:!1}),document.addEventListener("touchend",Ee));var je={hide:function(F){c(`"hide" is deprecated! Use "disablePageScroll" instead. https://github.com/FL3NKEY/scroll-lock#disablepagescrollscrollabletarget`),P(F)},show:function(F){c(`"show" is deprecated! Use "enablePageScroll" instead. https://github.com/FL3NKEY/scroll-lock#enablepagescrollscrollabletarget`),A(F)},toggle:function(F){c('"toggle" is deprecated! Do not use it.'),O()?P():A(F)},getState:function(){return c(`"getState" is deprecated! Use "getScrollState" instead. https://github.com/FL3NKEY/scroll-lock#getscrollstate`),O()},getWidth:function(){return c(`"getWidth" is deprecated! Use "getPageScrollBarWidth" instead. https://github.com/FL3NKEY/scroll-lock#getpagescrollbarwidth`),j()},getCurrentWidth:function(){return c(`"getCurrentWidth" is deprecated! Use "getCurrentPageScrollBarWidth" instead. https://github.com/FL3NKEY/scroll-lock#getcurrentpagescrollbarwidth`),V()},setScrollableTargets:function(F){c(`"setScrollableTargets" is deprecated! Use "addScrollableTarget" instead. https://github.com/FL3NKEY/scroll-lock#addscrollabletargetscrollabletarget`),R(F)},setFillGapSelectors:function(F){c(`"setFillGapSelectors" is deprecated! Use "addFillGapSelector" instead. https://github.com/FL3NKEY/scroll-lock#addfillgapselectorfillgapselector`),W(F)},setFillGapTargets:function(F){c(`"setFillGapTargets" is deprecated! Use "addFillGapTarget" instead. https://github.com/FL3NKEY/scroll-lock#addfillgaptargetfillgaptarget`),$(F)},clearQueue:function(){c(`"clearQueue" is deprecated! Use "clearQueueScrollLocks" instead. https://github.com/FL3NKEY/scroll-lock#clearqueuescrolllocks`),M()}},X=w({disablePageScroll:P,enablePageScroll:A,getScrollState:O,clearQueueScrollLocks:M,getTargetScrollBarWidth:k,getCurrentTargetScrollBarWidth:D,getPageScrollBarWidth:j,getCurrentPageScrollBarWidth:V,addScrollableSelector:G,removeScrollableSelector:z,addScrollableTarget:R,removeScrollableTarget:U,addLockableSelector:ne,addLockableTarget:K,addFillGapSelector:W,removeFillGapSelector:q,addFillGapTarget:$,removeFillGapTarget:L,setFillGapMethod:J,refillGaps:de,_state:T},je);s.default=X}]).default})})(wN);var Ag=wN.exports;const O9=Q.userOs==="IOS"&&navigator.userAgent.includes("Version/15.")&&!navigator.userAgent.includes("CriOs"),Ho=(e=!0,t=!1)=>{p.useEffect(()=>{if(e){const n=window.scrollY,s=t&&O9&&Ag.getScrollState();return s&&(document.documentElement.classList.add(sC),He.dispatchEvent("setHeaderNavigationVisible",!0)),Ag.disablePageScroll(),()=>{Ag.enablePageScroll(),s&&(document.documentElement.classList.remove(sC),window.scrollTo({top:n,behavior:n>window.innerHeight*3?"auto":"smooth"}))}}},[e,t])},k9=100,IN=()=>{const[e,t]=p.useState(0),[n,s]=p.useState(0);return p.useEffect(()=>{const r=window.visualViewport;if(!r)return;const a=()=>{const o=window.innerHeight-r.height;o>k9?(t(o),s(r.offsetTop)):(t(0),s(0))};return r.addEventListener("resize",a),r.addEventListener("scroll",a),()=>{r.removeEventListener("resize",a),r.removeEventListener("scroll",a)}},[]),{keyboardOffset:e,viewportOffsetTop:n}},$u=({children:e,onClose:t=Ut,isHidden:n,hideCloseButton:s=!1,fullScreen:r=!1,className:a="",zIndex:o,type:i})=>{const l=p.useRef(null),c=p.useRef(t);Ho(!n);const{viewportOffsetTop:u}=IN();p.useEffect(()=>{u?document.documentElement.style.setProperty("--viewport-offset-top",`${u}px`):document.documentElement.style.removeProperty("--viewport-offset-top")},[u]);const f=m=>{!s&&m.target===l.current&&t()};return p.useEffect(()=>{c.current=t},[t]),p.useEffect(function(){if(!(Q.isMobile||n||s)){const h=g=>{g.key===cx&&c.current()};return window.addEventListener("keydown",h),()=>{window.removeEventListener("keydown",h)}}},[s,n]),d.jsx("div",{className:`popup-holder-bc ${r?"full-screen":"windowed"} ${n?"hidden":""} ${a} ${i||""}`,style:o?{zIndex:o}:void 0,children:d.jsx("div",{className:"popup-middleware-bc",onMouseDown:f,ref:l,children:d.jsxs("div",{id:D5,className:"popup-inner-bc",children:[!s&&d.jsx("i",{id:j5,onClick:t,className:"e-p-close-icon-bc bc-i-close-remove"}),e]})})})},N9="Left",R9="Right",L9="Up",M9="Down",yi={delta:10,preventScrollOnSwipe:!1,rotationAngle:0,trackMouse:!1,trackTouch:!0,swipeDuration:1/0,touchEventOptions:{passive:!0}},iE={first:!0,initial:[0,0],start:0,swiping:!1,xy:[0,0]},YT="mousemove",qT="mouseup",D9="touchend",j9="touchmove",B9="touchstart";function F9(e,t,n,s){return e>t?n>0?R9:N9:s>0?M9:L9}function KT(e,t){if(t===0)return e;const n=Math.PI/180*t,s=e[0]*Math.cos(n)+e[1]*Math.sin(n),r=e[1]*Math.cos(n)-e[0]*Math.sin(n);return[s,r]}function U9(e,t){const n=u=>{const f="touches"in u;f&&u.touches.length>1||e((m,h)=>{h.trackMouse&&!f&&(document.addEventListener(YT,s),document.addEventListener(qT,o));const{clientX:g,clientY:E}=f?u.touches[0]:u,b=KT([g,E],h.rotationAngle);return h.onTouchStartOrOnMouseDown&&h.onTouchStartOrOnMouseDown({event:u}),Object.assign(Object.assign(Object.assign({},m),iE),{initial:b.slice(),xy:b,start:u.timeStamp||0})})},s=u=>{e((f,m)=>{const h="touches"in u;if(h&&u.touches.length>1)return f;if(u.timeStamp-f.start>m.swipeDuration)return f.swiping?Object.assign(Object.assign({},f),{swiping:!1}):f;const{clientX:g,clientY:E}=h?u.touches[0]:u,[b,v]=KT([g,E],m.rotationAngle),_=b-f.xy[0],y=v-f.xy[1],S=Math.abs(_),w=Math.abs(y),x=(u.timeStamp||0)-f.start,I=Math.sqrt(S*S+w*w)/(x||1),C=[_/(x||1),y/(x||1)],T=F9(S,w,_,y),P=typeof m.delta=="number"?m.delta:m.delta[T.toLowerCase()]||yi.delta;if(S{e((f,m)=>{let h;if(f.swiping&&f.eventData){if(u.timeStamp-f.start{document.removeEventListener(YT,s),document.removeEventListener(qT,o)},o=u=>{a(),r(u)},i=(u,f)=>{let m=()=>{};if(u&&u.addEventListener){const h=Object.assign(Object.assign({},yi.touchEventOptions),f.touchEventOptions),g=[[B9,n,h],[j9,s,Object.assign(Object.assign({},h),f.preventScrollOnSwipe?{passive:!1}:{})],[D9,r,h]];g.forEach(([E,b,v])=>u.addEventListener(E,b,v)),m=()=>g.forEach(([E,b])=>u.removeEventListener(E,b))}return m},c={ref:u=>{u!==null&&e((f,m)=>{if(f.el===u)return f;const h={};return f.el&&f.el!==u&&f.cleanUpTouch&&(f.cleanUpTouch(),h.cleanUpTouch=void 0),m.trackTouch&&u&&(h.cleanUpTouch=i(u,m)),Object.assign(Object.assign(Object.assign({},f),{el:u}),h)})}};return t.trackMouse&&(c.onMouseDown=n),[c,i]}function $9(e,t,n,s){return!t.trackTouch||!e.el?(e.cleanUpTouch&&e.cleanUpTouch(),Object.assign(Object.assign({},e),{cleanUpTouch:void 0})):e.cleanUpTouch?t.preventScrollOnSwipe!==n.preventScrollOnSwipe||t.touchEventOptions.passive!==n.touchEventOptions.passive?(e.cleanUpTouch(),Object.assign(Object.assign({},e),{cleanUpTouch:s(e.el,t)})):e:Object.assign(Object.assign({},e),{cleanUpTouch:s(e.el,t)})}function G9(e){const{trackMouse:t}=e,n=p.useRef(Object.assign({},iE)),s=p.useRef(Object.assign({},yi)),r=p.useRef(Object.assign({},s.current));r.current=Object.assign({},s.current),s.current=Object.assign(Object.assign({},yi),e);let a;for(a in yi)s.current[a]===void 0&&(s.current[a]=yi[a]);const[o,i]=p.useMemo(()=>U9(l=>n.current=l(n.current,s.current),{trackMouse:t}),[t]);return n.current=$9(n.current,s.current,r.current,i),o}const V9=30,QT=15,H9={mass:.5,friction:12,tension:120,clamp:!0},Ym=({onClose:e,scrollContainer:t,trackTouch:n=!0,ignoreScrollPosition:s=!1})=>{const r=p.useRef(!0),[{y:a},o]=_9(()=>({y:0,config:H9})),i=G9({onSwiping:({deltaY:c,first:u})=>{var f;(u||r.current)&&(s||((f=t.current)==null?void 0:f.scrollTop)===0)&&c>0&&(r.current=!0,o.start({y:c}))},onSwiped:({dir:c,deltaY:u})=>{t.current&&r.current&&c!=="Up"&&u>0&&SC(t.current.clientHeight,u)>V9?o.start({to:[{y:t.current.clientHeight,onResolve:e},{y:0,immediate:!0}]}):o.start({y:0}),r.current=!1},trackTouch:n}),l=p.useCallback(()=>{t.current&&o.start({to:[{y:t.current.clientHeight,onResolve:e},{y:0,immediate:!0}]})},[e,t,o]);return{swipeableHandlers:i,triggerCloseAnimation:l,style:{transform:a.to(c=>`translateY(${c}px)`),opacity:a.to(c=>{var f;const u=(f=t.current)!=null&&f.clientHeight&&t.current.clientHeight>0?SC(t.current.clientHeight,c):0;return u>QT?u-QT:0}).to(c=>(100-c)/100)}}},Pg="overlay-sliding-is-visible",xg=document.querySelector("#root"),W9=({children:e,hidden:t=!1,className:n,onClose:s})=>d.jsx($u,{onClose:s,isHidden:t,className:n,children:e}),z9=({children:e,hidden:t=!1,trackTouch:n=!0,onClose:s,className:r=""})=>{Ho(!t,!0),p.useEffect(function(){if(!t&&!(xg!=null&&xg.classList.contains(Pg)))return He.dispatchEvent("addRootClassName",Pg),()=>{He.dispatchEvent("removeRootClassName",Pg)}},[t]);const a=p.useRef(null),{swipeableHandlers:o,style:i}=Ym({onClose:s,trackTouch:!t&&n,scrollContainer:a});return d.jsx(zm.div,{className:`overlay-sliding-wrapper-bc ${r} ${t?"display-none":""}`,style:i,...o,children:d.jsx("div",{className:"overlay-sliding-w-c-content-slider-bc","data-scroll-lock-scrollable":"",ref:a,children:e})})},Y9=e=>Q.isMobile===1?d.jsx(z9,{...e}):d.jsx(W9,{...e}),q9=()=>d.jsx("span",{className:"back-nav-title-bc skeleton-loader-title"}),K9=({displayName:e="",onClick:t,isLoading:n=!1,iconClass:s,children:r})=>d.jsxs("div",{onClick:t,className:"back-nav-bc",children:[d.jsx("i",{className:"back-nav-icon-bc bc-i-round-arrow-left"}),s&&d.jsx("i",{className:s}),n?d.jsx(q9,{}):d.jsx("span",{className:"back-nav-title-bc ellipsis",children:e}),r]}),Q9=({displayName:e,children:t,...n})=>Q.isMobile?d.jsx(K9,{...n,displayName:e,children:t}):d.jsxs("div",{className:"overlay-header",children:[t,e]}),X9=[k5,N5,R5],J9=({show:e,title:t="",onClose:n,children:s})=>{const r=p.useRef(null);Wt(e?"hasVisibleSidePanelContent":""),Ru({callback:()=>{e&&n()},container:r,ignoredElementsIds:X9});const a=Se();return d.jsx("div",{className:`sidePanel-holder-bc ${e?"":"hidden"}`,children:d.jsxs("div",{ref:r,className:"sidePanel-holder",children:[d.jsxs("div",{className:"overlay-header",children:[d.jsx("i",{className:"bc-i-close-remove",onClick:n}),d.jsx("span",{children:a(t)})]}),s]})})},Og=()=>et.dispatchEvent("hidePanel");function Z9(e){return p.memo(function(t){const n=Se(),{show:s,title:r=""}=t,a=d.jsx(p.Suspense,{fallback:d.jsx(Mt,{size:"medium"}),children:d.jsx(e,{...t})});return Q.isMobile===1?d.jsxs(Y9,{hidden:!s,onClose:Og,children:[d.jsx(Q9,{onClick:Og,displayName:n(r)}),a]}):d.jsx(J9,{title:r,show:s,onClose:Og,children:a})})}function ez(e){return p.memo(function(t){return d.jsx(e,{...t})})}const et=new Xr,tz="GenericSearch";var jb=(e=>(e.PANEL="PANEL",e.POPUP="POPUP",e))(jb||{});function AN(e){const[t,n]=p.useState(()=>[]),s=t.find(u=>u.selected),r=p.useRef(s),{hideRegisterButton:a}=N.userAuthentication,o=p.useCallback(({component:u,props:f={},fullscreen:m=!0,onClose:h},g=!1)=>{const E=Oo[u]?Oo[u].content:null;if(E){const b=Ne(E);return{LazyComponent:e==="POPUP"?ez(b):Z9(b),name:u,selected:!1,persistent:g,fullscreen:m,props:f,onClose:h}}return null},[e]),i=p.useCallback(()=>{r.current&&n(u=>{const f=[];for(const m of u)m.selected?m.persistent?f.push({...m,selected:!1}):m.onClose&&m.onClose():f.push(m);return f})},[]),l=p.useCallback(u=>{N.partner.integrationMode&&u.props.popupContentType in st?nr.notify({type:N$[u.props.popupContentType]}):u.props.popupContentType in st&&!gt.getInstance().authenticationEnabledForIP&&(!N.userAuthentication.login.enabledForRestrictedCountries||u.props.popupContentType===st.Registration)||a&&u.props.popupContentType===st.Registration?ve.open({type:"warning",title:"Warning",content:_2,hideCloseButton:!0}):n(f=>{const m=f.find(lt("name",u.component));if(m)return m.selected?f.map(h=>h.name===u.component?{...h,props:u.props}:h):f.map(h=>h===m?{...h,selected:!0}:h.selected?{...h,selected:!1}:h);{const h=o(u);if(h){const g=f.find(lt("selected",!0));return g?g.persistent?[...f.map(E=>E===g?{...g,selected:!1}:E),{...h,selected:!0}]:[...f.filter(E=>E!==g),{...h,selected:!0}]:[...f,{...h,selected:!0}]}return f}})},[o,a]),c=u=>{n(f=>{var m;return(m=f.find(lt("name",u.component)))!=null&&m.persistent?f.map(h=>h.name===u.component?{...h,selected:!1}:h):f.filter(h=>h.name!==u.component)})};return p.useEffect(function(){r.current=s},[s]),p.useEffect(function(){et.dispatchEvent("activeComponent",{selectedComponent:s}),s&&(e==="POPUP"?et.dispatchEvent("hidePanel"):et.dispatchEvent("hidePopup"))},[s,e]),p.useEffect(function(){return et.addEventListener(e==="POPUP"?"mountContainerPopup":"mountContainerPanel",f=>{n(m=>{const h=o(f,!0);return h?[...m,h]:m})})},[o,e]),p.useEffect(function(){return et.addEventListener(e==="POPUP"?"unmountContainerPopup":"unmountContainerPanel",f=>{n(m=>m.filter(h=>h.name!==f.component))})}),p.useEffect(function(){return et.addEventListener(e==="POPUP"?"toggleComponentPopup":"toggleComponentPanel",f=>{var m;return((m=r.current)==null?void 0:m.name)===f.component?c(f):l(f)})},[l,e]),p.useEffect(()=>et.addEventListener(e==="POPUP"?"addComponentPopup":"addComponentPanel",l),[l,e]),p.useEffect(()=>et.addEventListener(e==="POPUP"?"removeComponentPopup":"removeComponentPanel",c),[e]),p.useEffect(function(){const f=et.addEventListener("hideAll",i),m=et.addEventListener(e==="POPUP"?"hidePopup":"hidePanel",i);return()=>{f(),m()}},[e,i]),{components:t,hide:i,selectedComponent:s}}const XT=p.lazy(()=>B(()=>import("./LoginTwoFactorWrapper-D8U_zZGq.js").then(e=>e.a),__vite__mapDeps([459,1,181,182,170,460,175,174,215,176,171,172,173,461]))),nz=p.lazy(()=>B(()=>import("./SessionDurationPopupContent-CZWvryRk.js"),__vite__mapDeps([462,1]))),sz=p.lazy(()=>B(()=>import("./LoginLimitPopupContent-tviEyU0F.js"),__vite__mapDeps([463,1]))),kg=4,xd=3,Od=27,JT=34,ZT=33,ew=e=>{Te.removeItems(["betslip","vs_favorite_market_types","favouriteMarketsTypes","myGames","prematchMultiViewGames","prematchMultiViewCompetitions","qrCodeOrigin",Gx,Tv,af,...e?[wm]:[]])},PN={loginInProgress:!1,isLoggedIn:!1,isRestoredLogin:!1,profile:{},sessionChangeKey:"",confirmationTypes:[]},gr=(e,t)=>{const n=parseFloat(Number(e).toFixed(t)).toString();return N.app.balanceWithCommas?Yt(n):n},xN=p.createContext(PN),El=p.createContext({}),rz=({children:e})=>{var J;const t=xt(),[n,s]=p.useState(()=>({...PN,loginInProgress:!!vt.get()})),r=Se(),[a,o]=p.useState(),{enableSessionDurationPopUp:i,childSession:{showInfoPopupBeforeSessionSwitch:l},realityCheckCountdownMinutes:c=2,vipUserSettings:u}=N.app,f=lO(),m=p.useRef(""),h=p.useRef(!1),g=p.useRef($x),E=p.useRef(),b=p.useRef(!1),v=nu(()=>N.accountNavigation.profile.pages.includes("reality-checks")&&!N.app.disableRealityCheckPopup),_=nu(()=>N.accountNavigation.profile.pages.includes("login-limit")),y=p.useCallback($=>s(L=>({...L,loginInProgress:$})),[]),[S,w]=p.useState(""),x=p.useCallback($=>{var pe,be,Pe;const L=$.frozen_balance?Math.max($.balance-$.frozen_balance,0):$.balance,W=$.bonus_money||0;let q=$.bonus_balance||0;$.bonus_win_balance!==void 0&&(q+=$.bonus_win_balance),$.frozen_balance!==void 0&&!N.app.showSeparatelyBonuses&&(q+=$.frozen_balance);const de=f($.currency),ue=vi($.owner_id),Y=g.current,ae=($.owner_id?((pe=ue.currencies)==null?void 0:pe.split(","))||[]:(be=$.currencies)==null?void 0:be.split(","))||[],ie=Ns(L,Y),Z=Ns(q,Y),te=Ns(W,Y),fe=$.casino_balance!==null?Ns($.casino_balance,Y):null,le=$.frozen_balance!==void 0&&$.frozen_balance!==0,Ie=$.frozen_balance!==void 0?Ns($.frozen_balance,Y):null,Fe=gr(ie,Y),ct=gr(Z,Y),Me=gr(te,Y),Oe=fe!==null?gr(fe,Y):null,$e=Ie!==null?gr(Ie,Y):null,{_currency:De,_childId:Ee,...je}=ue,X={};$.owner_id&&Object.entries(je).forEach(([Ke,Be])=>{Ke==="name"&&$.name===" "?X.name=Be:X[Ke]=$[Ke]??Be});const H=$.active_step_state===Zi.WAITING,F=gr(Ns(Ie!==null?$.balance-Ie<0?0:$.balance-Ie:ie,Y),Y),re=$.is_bonus_allowed!==!1;gt.getInstance().bonusAllowed=re;const ce=$!=null&&$.owner_id?ue:$;return{...$,bonusAvailable:re,childCurrencies:ae,calculatedBalance:L,calculatedBalanceRounded:ie,calculatedBalanceFormatted:Fe,calculatedBonus:q,calculatedBonusRounded:Z,calculatedBonusFormatted:ct,calculatedBonusMoney:W,calculatedBonusMoneyRounded:te,calculatedBonusMoneyFormatted:Me,casinoBalanceRounded:fe,casinoBalanceFormatted:Oe,waitingVerification:H,currency_symbol:de,totalBalanceFormatted:F,frozenBalanceFormatted:$e,frozenBalanceRounded:Ie,frozenBalanceAvailable:le,isVipUser:(ce==null?void 0:ce.sportsbook_profile_id)===yx.Vip||(ce==null?void 0:ce.partner_client_category_id)&&((Pe=u==null?void 0:u.vipUserCustomIds)==null?void 0:Pe.includes(ce==null?void 0:ce.partner_client_category_id)),...X}},[f,u==null?void 0:u.vipUserCustomIds]),I=p.useCallback($=>{g.current=$,s(L=>L.isLoggedIn?{...L,profile:x(L.profile)}:L)},[x]),C=p.useCallback(()=>{m.current=ee.subscribe({source:"user",what:{profile:[]}},$=>{const L=Object.values($.profile)[0];L&&(h.current&&L.authentication_status!==xd&&L.authentication_status!==kg&&(h.current=!1),s(W=>{const q=x({...L,...W.profile.isPilotGroup&&{isPilotGroup:W.profile.isPilotGroup},...N.partner.balanceRefreshPeriod?{balance:W.profile.balance,bonus_balance:W.profile.bonus_balance,sport_bonus:W.profile.bonus_balance}:null,...h.current?{authentication_status:xd}:{}});return{...W,profile:q,loginInProgress:!1,isLoggedIn:!0}}))},()=>y(!1))},[x,y]),T=p.useCallback(({username:$,password:L,remember_me:W=!1,additionalParams:q={},login_type:de})=>(y(!0),ee.login({user:{username:$,...L&&{password:L},...de?{login_type:de}:{}},encrypted_token:W,additionalParams:q}).then(ue=>{if(ue.authentication_status===Od||ue.authentication_status===JT)throw{errorClassName:"recaptcha-field",message:ue.authentication_status===Od?"recaptchaVerified":"Turnstile Verified"};if(ue.authentication_status===ZT)throw{message:"Turnstile verification failed or has expired. Please try again"};if(!ue.auth_token)throw new Error;return a!=null&&a.is_two_factor_confirmation||ue.authentication_status!==kg&&!ue.qr_code_origin?ue:new Promise((Y,ae)=>{ve.open(ie=>{const Z=fe=>{Y({...ue,...fe!==void 0?{authentication_status:fe}:{}}),ie()},te=async()=>{ie(),await ee.logout({jwe_token:ue.jwe_token}),ae({data:{details:{Message:lC}}})};return{Component:()=>d.jsx(p.Suspense,{fallback:null,children:d.jsx(XT,{onSuccess:Z,qrCodeOrigin:ue.qr_code_origin??"",onClose:te,authToken:ue.auth_token})}),fullScreen:!0,type:"blocked",hideCloseButton:!0}},mn.Blocker)})}).then(ue=>(h.current=ue.authentication_status===xd,vt.set(ue,W),C(),s(Y=>({...Y,isRestoredLogin:!1})),Vh(),TC(),ue)).catch(ue=>{throw y(!1),ue})),[y,C,a==null?void 0:a.is_two_factor_confirmation]),P=p.useCallback($=>{y(!0),ee.restoreLogin($).then(L=>{vt.update({...$,...L}),s(W=>({...W,isRestoredLogin:!0})),C(),en.dispatchEvent("trackingEvent",{action:"Restore Login",category:"Authorization",label:Ev})}).catch(L=>{throw vt.clear(),ew(!0),y(!1),L}).catch(O$)},[y,C]),A=p.useCallback(()=>{h.current=!1,m.current&&(ee.unsubscribe(m.current),s($=>({...$,profile:{},loginInProgress:!1,isLoggedIn:!1}))),en.dispatchEvent("trackingEvent",{action:"Logout",category:"Authorization"})},[]);p.useEffect(()=>{if(n.loginInProgress){const $=vt.get();$&&P($)}},[]),p.useEffect(function(){N.app.locationCheckCountry&&N.app.locationBaseUrl&&Vr.init(N.app.locationBaseUrl)},[]);const O=p.useCallback(($=!1,L=!0,W)=>{L&&vt.clear(),$||ew(L),W===Ex&&ve.open(q=>({type:"warning",title:"Warning",content:H2,buttons:[{label:"Sign in",callBack:()=>{q(),et.dispatchEvent("addComponentPopup",{component:"AuthPopup",props:{popupContentType:st.Login}})}},{label:"Close",callBack:q}],hideCloseButton:!0}),mn.Blocker),A()},[A]),M=p.useCallback(({source:$,durationType:L,clearAuthData:W=!0,ignorePopUp:q=!0}={clearAuthData:!0})=>{He.dispatchEvent("closeUserInfoPanel",!1);const{jwe_token:de,fcm_token:ue,subscription_id:Y}=vt.get()||{};return new Promise((ae,ie)=>{var Z;(Z=N.userAuthentication.popUpBeforeLogOut)!=null&&Z.enabled&&!q?ve.open(te=>({title:"Confirmation",Component:()=>d.jsx(k$,{close:te,onCancel:ie,onLogout:ae}),onClose:ie})):ae()}).then(()=>ee.logout({jwe_token:de,fcm_token:ue,...Y&&{subscription_id:Y},...$&&{source:$},...L&&{expire_period_type:L}}).then(()=>O(!1,W,$)))},[O]);p.useEffect(function(){if(Vr.isLocationServiceAvailable()&&n.isLoggedIn){const L=Vr.getInstance().checkLocationContinuously(n.profile.id,M);return()=>{L()}}},[M,n.isLoggedIn,n.profile.id]),p.useEffect(()=>{var $;($=n.profile)!=null&&$.logout&&n.isLoggedIn&&n.profile.token===vt.getAuthToken(!1)&&M({clearAuthData:!1,...n.profile.logout_source&&Q2.includes(n.profile.logout_source)?{source:n.profile.logout_source}:null})},[M,n.isLoggedIn,(J=n.profile)==null?void 0:J.logout,n.profile.logout_source,n.profile.token]),p.useEffect(function(){if(v&&n.isLoggedIn&&n.profile.active_time_in_casino){const L=n.profile.active_time_in_casino*1e3;let W=setTimeout(function q(){ee.get({},"get_client_current_session_slot_pl").then(({result:de,details:ue})=>{t.current&&de===0&&ve.open(Y=>({type:"info",title:"Your casino activity",hideCloseButton:!0,Component:()=>d.jsx(x$,{...ue,handleButtonClick:()=>{Y(),W=setTimeout(q,L)}})}))})},L);return()=>{clearTimeout(W)}}},[t,v,n.isLoggedIn,n.profile.active_time_in_casino]),p.useEffect(function(){N.app.checkLimitsRestrictionAndUpdate&&n.isLoggedIn&&Av(Yn.SessionLimits)},[n.isLoggedIn]),p.useEffect(()=>{let $;if(N.app.enableABTest&&Q.isMobile&&n.isLoggedIn){const L=ee.get({command_name:"has_access",params:{}},"process_ai_assistant"),W=new Promise(q=>{$=setTimeout(()=>{q({result:0,result_text:null,details:{has_access:!1}})},3e3)});return Promise.race([L,W]).then(({details:{has_access:q},result:de})=>{s(de===0?ue=>({...ue,profile:{...ue.profile,isPilotGroup:q}}):ue=>({...ue,profile:{...ue.profile,isPilotGroup:!1}}))}).catch(()=>s(q=>({...q,profile:{...q.profile,isPilotGroup:!1}}))),()=>{$&&clearTimeout($)}}},[n.isLoggedIn]),p.useEffect(()=>{if(n.isLoggedIn&&N.partner.balanceRefreshPeriod){let $;const L=()=>{ee.get({},"get_balance").then(q=>{var de;if(t.current&&($=setTimeout(L,N.partner.balanceRefreshPeriod),"details"in q&&((de=q.details)==null?void 0:de.ApiCode)==="503"&&M(),"data"in q)){const ue=q.data,Y=Object.values(ue.profile??{})[0];Y&&s(ae=>{const ie=x({...ae.profile,...Y});return{...ae,profile:ie,loginInProgress:!1,isLoggedIn:!0}})}})},W=en.addEventListener("trackingEvent",q=>{q.action==="Placed a Bet"&&q.label===Ev&&($&&clearTimeout($),L())});return L(),()=>{W(),$&&clearTimeout($)}}},[t,M,x,n.isLoggedIn]);const k=p.useRef(n.profile.id);p.useEffect(()=>{N.partner.integrationMode&&(k.current&&!n.profile.id&&nr.notify({type:"user_logged_out",value:{userId:k.current}}),k.current=n.profile.id)},[n.profile.id]),p.useEffect(function(){if(n.isLoggedIn&&n.profile.session_duration){let L=function(Y,ae){Y===Jl.SessionDuration?ee.get({session_duration:q},"set_session_duration").then(async()=>{ae&&await ee.get({},"remain_logged_in"),t.current&&W(Y)}):t.current&&W(Y)},W=function(Y){if(b.current)return;clearTimeout(E.current);const ae=()=>{n.profile.session_duration&&!b.current&&(b.current=!0,ve.open(ie=>{const Z=()=>{b.current=!1,ie()};return{hideCloseButton:!0,Component:()=>Y===Jl.SessionDuration?d.jsx(p.Suspense,{fallback:null,children:d.jsx(nz,{close:Z,remainLoggedIn:L})}):d.jsx(p.Suspense,{fallback:null,children:d.jsx(sz,{close:Z,remainLoggedIn:L})})}},mn.High))};E.current=setTimeout(ae,ue)};const q=n.profile.session_duration,de=q-c,ue=(de>0?de:q)*1e3*60;return W(_?Jl.LoginLimit:Jl.SessionDuration),()=>{clearTimeout(E.current),b.current=!1}}},[t,_,n.isLoggedIn,n.profile.session_duration,c]);const D=p.useCallback(({newCurrency:$,currentCurrency:L,ignorePopup:W})=>new Promise((q,de)=>{var te;const{_currency:ue}=vi(n.profile.owner_id),Y=!$,ae=$??ue,ie=fe=>Te.setItem(`${vC}_${n.profile.owner_id||n.profile.id}`,fe),Z=!Y&&!((te=n.profile.currencies)!=null&&te.includes(ae));Z||l&&!W?ve.open({title:"Info",content:r(Z?E2:v2,{newCurrency:f(ae,!0),currentCurrency:f(L,!0)}),hideCloseButton:!0,showCheckbox:!Z,buttons:[{label:"Confirm",callBack:fe=>{Z||ie(fe),q()}},{label:"Cancel",callBack:fe=>{Z||ie(fe),de()}}]},mn.High):q()}),[f,l,n.profile.currencies,n.profile.id,n.profile.owner_id,r]),j=p.useCallback(($,L)=>{if($.Token){vt.update({...vt.get(),auth_token:$.Token,user_id:$.UserId}),Te.setItem(Li,{currency:$.Currency,owner_id:$.OwnerId,ignorePopup:!1});const W=n.profile;if(L===Di.Parent)Vh();else{let q=function(de){return W.currencies?W.currencies.includes(de)?W.currencies:`${W.currencies},${de}`:de};Te.setItem(wm,{...W.owner_id?vi($.OwnerId):{id:W.id,city:W.city,name:W.name,iban:W.iban,email:W.email,phone:W.phone,gender:W.gender,address:W.address,province:W.province,zip_code:W.zip_code,nick_name:W.nick_name,last_name:W.last_name,doc_number:W.doc_number,first_name:W.first_name,birth_date:W.birth_date,swift_code:W.swift_code,middle_name:W.middle_name,external_id:W.external_id,mobile_phone:W.mobile_phone,country_code:W.country_code,birth_region:W.birth_region,is_gdpr_passed:W.is_gdpr_passed,is_phone_verified:W.is_phone_verified,subscribed_to_news:W.subscribed_to_news,additional_address:W.additional_address,subscribe_to_email:W.subscribe_to_email,subscribe_to_phone_call:W.subscribe_to_phone_call,subscribe_to_internal_message:W.subscribe_to_internal_message,subscribe_to_push_notification:W.subscribe_to_push_notification,is_subscribe_to_direct_mail:W.is_subscribe_to_direct_mail,sportsbook_profile_id:W.sportsbook_profile_id,partner_client_category_id:W.partner_client_category_id},_currency:$.ParentCurrency,_childId:$.UserId,currencies:q($.Currency)})}}},[n.profile]),V=p.useCallback($=>{ee.disconnect(4e3,"Session lost, need to reopen socket").then(()=>{ee.restore(void 0,()=>{$(),s(L=>({...L,loginInProgress:!1,sessionChangeKey:b1()}))})}).catch(()=>{S&&window.location.href!==S?window.location.href=S:window.location.reload()})},[S]),R=p.useCallback(($,{onChangeSessionSuccess:L=Ut,currency_id:W,ignorePopup:q}={})=>{var ue;const de=!((ue=a==null?void 0:a.mult_wallet_currencies)!=null&&ue.length)&&(a!=null&&a.child_client_default_currency)&&(a!=null&&a.supports_child_client)?[a==null?void 0:a.child_client_default_currency]:a==null?void 0:a.mult_wallet_currencies;a!=null&&a.supports_child_client&&!n.loginInProgress&&(!W||de!=null&&de.includes(W))&&D({newCurrency:W,currentCurrency:n.profile.currency,ignorePopup:!!Te.getItem(`${vC}_${n.profile.owner_id||n.profile.id}`)||q}).then(()=>{y(!0),ee.get({currency_id:W},$).then(({details:Y,result_text:ae})=>{if(Y.Token)j(Y,$),V(L);else throw new Error(ae||Qn)}).catch(Y=>{ve.open({type:"error",title:"Error",content:Y==null?void 0:Y.message}),y(!1)})}).catch(()=>{Te.setItem(Li,{currency:n.profile.currency,owner_id:n.profile.owner_id,ignorePopup:!1})})},[a==null?void 0:a.mult_wallet_currencies,a==null?void 0:a.child_client_default_currency,a==null?void 0:a.supports_child_client,n.loginInProgress,n.profile.currency,n.profile.owner_id,n.profile.id,D,j,V,y]);p.useEffect(function(){if(a!=null&&a.supports_child_client&&n.profile.currency){const{currency:L,owner_id:W,ignorePopup:q}=Te.getItem(Li)??{},{_currency:de}=vi(n.profile.owner_id);L&&(!W||n.profile.id===W)&&L!==n.profile.currency&&(n.profile.owner_id&&!W&&de===L?R(Di.Parent,{ignorePopup:q}):R(Di.Child,{currency_id:L,ignorePopup:q}))}},[n.profile.id,n.profile.owner_id,n.profile.currency,a==null?void 0:a.supports_child_client]);const U=p.useCallback(({durationType:$,message:L})=>{const q=$?(de=>{switch(de){case 2:return"daily";case 3:return"weekly";case 4:return"monthly";default:return"unknown"}})($):"unknown";ve.open({title:"Error",type:"error",content:L||`Your Session limit has expired due to ${q} limit`})},[]);p.useEffect(function(){if(n.isLoggedIn&&i){s(W=>({...W,loginInProgress:!0}));let L;return ee.get({},"get_remaining_session_duration").then(({details:{RemainingDailyDuration:W,RemainingWeeklyDuration:q,RemainingMonthlyDuration:de},result_text:ue,result:Y})=>{if(Y===0){const ae=W&&Date.now()+Number(W*60*1e3);if(ae||ae===0){const ie=Math.min(W,q,de);let Z;ie===W?Z=2:ie===q?Z=3:Z=4,Date.now()>=ae?(M({source:4,clearAuthData:!0,durationType:Z}),U({durationType:Z})):L=setInterval(()=>{Date.now()>=ae&&(M({source:4,clearAuthData:!0,durationType:Z}),U({durationType:Z}),clearInterval(L))},2e3)}}else U({message:ue||Qn})}).catch(()=>{ve.open({title:"Error",type:"error",content:Qn})}).finally(()=>{s(W=>({...W,loginInProgress:!1}))}),()=>{clearInterval(L)}}},[i,n.isLoggedIn,M,U]);const G=p.useCallback(()=>{n.isLoggedIn&&ee.get({},"get_client_confirmation_types").then(({result:$,details:{ConfirmationTypes:L}})=>{$===0&&s(W=>({...W,confirmationTypes:L}))})},[n.isLoggedIn]),z=p.useCallback($=>{ee.get({confirmation_code:$},"verify_wrong_login_attempts_reset").then(L=>{if(L.result===0){et.dispatchEvent("addComponentPopup",{component:"AuthPopup",props:{popupContentType:st.Login}});return}throw new Error(L.result_text||"")}).catch(L=>ve.open({type:"error",title:L.message||Qn},mn.High))},[]),K=p.useCallback(({code:$,social_network_type_id:L,redirect_url:W})=>(y(!0),ee.socialNetworkLogin({code:$,social_network_type_id:L,redirect_url:W}).then(q=>{if(q.authentication_status===Od||q.authentication_status===JT)throw{errorClassName:"recaptcha-field",message:q.authentication_status===Od?"recaptchaVerified":"Turnstile Verified"};if(q.authentication_status===ZT)throw{message:"Turnstile verification failed or has expired. Please try again"};if(!q.auth_token)throw{isNewUser:!0,details:q};return a!=null&&a.is_two_factor_confirmation||q.authentication_status!==kg&&!q.qr_code_origin?q:new Promise((de,ue)=>{ve.open(Y=>{const ae=Z=>{de({...q,...Z!==void 0?{authentication_status:Z}:{}}),Y()},ie=async()=>{Y(),await ee.logout({jwe_token:q.jwe_token}),ue({data:{details:{Message:lC}}})};return{Component:()=>d.jsx(p.Suspense,{fallback:null,children:d.jsx(XT,{onSuccess:ae,qrCodeOrigin:q.qr_code_origin??"",onClose:ie})}),fullScreen:!0,type:"blocked",hideCloseButton:!0}},mn.Blocker)})}).then(q=>(h.current=q.authentication_status===xd,vt.set(q,!1),C(),s(de=>({...de,isRestoredLogin:!1})),Vh(),TC(),q)).catch(q=>{throw y(!1),q})),[y,C,a==null?void 0:a.is_two_factor_confirmation]);p.useEffect(()=>{a!=null&&a.enable_confirm_restrictions&&n.profile.id&&G()},[a==null?void 0:a.enable_confirm_restrictions,n.profile.id,G]),p.useEffect(()=>{a!=null&&a.is_loyalty_v2&&(gt.getInstance().loyaltyLevel2Enabled=a.is_loyalty_v2)},[a==null?void 0:a.is_loyalty_v2]);const ne=cO(n.loginInProgress,10);return d.jsx(El.Provider,{value:{login:T,restoreLogin:P,logout:M,changeSession:R,setCurrencyRounding:I,getUserConfirmationTypes:G,initPartnerConfig:o,setRedirectUrlOnSessionChangeFailure:w,verifyWrongLoginAttemptsReset:z,loginViaSocialNetwork:K},children:d.jsx(xN.Provider,{value:{...n,loginInProgress:ne},children:e})})},ye=()=>p.useContext(xN),az=()=>d.jsx(Mt,{className:"full"});function oz(e={root:null,rootMargin:"50px",threshold:.1}){const t=p.useRef(null),[n,s]=p.useState(!1);return p.useEffect(()=>{const r=t.current;if(!r)return;const a=new IntersectionObserver(([o])=>{o.isIntersecting&&(s(!0),a.disconnect())},e);return a.observe(r),()=>a.disconnect()},[e]),[t,n]}const tw=({children:e,customClassName:t=""})=>d.jsx("div",{className:`hm-row-bc-inner ${t}`,children:e}),nw="d_p_r_v_",iz={PageBuilderTextBannerWidget:"TextBannerWidget",PageBuilderHeaderTextWidget:"HeaderTextWidget"},lz=(e,t)=>{const n=t||{};switch(e){case"StoryWidget":return{hasTitle:n.showTitle??!1,portraitView:n.portraitView??!1};case"FeaturedGames":return{gamesDisplayed:Q.isMobile?1:n.gamesDisplayed,showTitle:n.showTitle??!0,enableSuggestedBets:n.enableSuggestedBets??!1,filterBySport:n.filterBySport??!1};case"Slider":return{aspectRatio:n.aspectRatio};case"PromotedProductsWidget":return{columnCount:n.columnCount,aspectRatio:n.aspectRatio,itemCount:n.itemCount};case"LiveGamesWidget":case"PopularMatches":return{hasTitle:!0};case"CasinoPromotedGamesWidget":case"AiPromotedGamesWidget":return{loadingItemsCount:n.slidesToScroll};case"JackpotWidget":return{isBetslipWidget:n.isBetslipWidget??!1};case"TournamentsWidgetV2":return{showTitle:n.showTitle??!0};case"CasinoGamesWidget":return{gameLimit:n.limit,title:n.title,showCategories:n.showCategories??!1};case"CasinoLiveWins":return{visibleCount:n.visibleCount};case"VivaroMeRooms":return{title:n.title,spaceBetween:n.spaceBetween};default:return{}}},ON=({row:e,margin:t,isHeader:n})=>{const[s,r]=p.useState(()=>!e.settings.closable||Te.getItem(`${nw}${e.id}`,!0)),{isLoggedIn:a}=ye(),o=e.settings.gridTemplate.map(v=>`${v}fr`).join(" "),[i,l]=oz();p.useEffect(()=>He.addEventListener("closeDynamicallyStructuredPage",()=>e.settings.closable&&r(!1)),[e.settings.closable]);const c=()=>{Te.setItem(`${nw}${e.id}`,!1,e.settings.lifetimeInDays?h5(e.settings.lifetimeInDays):void 0),r(!1)},u=p.useMemo(()=>e.content.some(v=>v.content.some(_=>_.type==="COMPONENT"&&_.name==="InformativeWidget")),[e.content]),[f,m]=p.useState(!0);if(p.useEffect(()=>{if(!u)return;let v;const _=()=>{v&&window.clearTimeout(v),window.scrollY>10?m(!1):v=window.setTimeout(()=>m(!0),300)};return m(window.scrollY<=10),window.addEventListener("scroll",_,{passive:!0}),()=>{window.removeEventListener("scroll",_),v&&window.clearTimeout(v)}},[u]),!s)return null;const h=e.content.some(v=>v.content.some(_=>_.type==="COMPONENT"&&_.name==="Slider")),g=e.content.some(v=>v.content.some(_=>_.type==="COMPONENT"&&_.name==="HarmonyJackpotWidget")),E=e.id.includes("Casino")||e.id.includes("LiveCasino")||e.id.includes("Games");if(e.visibility===Xn.Guest&&a||e.visibility===Xn.Authorized&&!a)return null;const b=u&&!f;return d.jsxs("div",{ref:i,className:`hm-row-bc ${E&&h?"has-game":""} ${h?"has-slider":""} ${g?"has-Ortak-Widget":""}`,style:n?{msGridColumns:o,gridTemplateColumns:o,overflow:"hidden",maxHeight:b?"0px":"1000px",opacity:b?0:1,marginBottom:t&&!b?"10px":"0px",pointerEvents:b?"none":"auto",transition:"max-height 0.35s ease-in-out, opacity 0.25s ease-in-out, margin-bottom 0.35s ease-in-out"}:{msGridColumns:o,gridTemplateColumns:o,...t&&{marginBottom:"10px"}},children:[e.settings.closable&&d.jsx("i",{className:"e-p-close-icon-bc bc-i-close-remove",onClick:c}),e.content.map(v=>{var y,S;const[_]=v.content;if(_.type==="ROW")return d.jsx(tw,{customClassName:v.className,children:v.content.map(w=>d.jsx(ON,{row:w},w.id))},v.id);{const w=(y=Oo[iz[_.name]??_.name])==null?void 0:y.content;if(w){const x=Ne(w),I=((S=Oo[_.name])==null?void 0:S.loader)||Mt,C=lz(_.name,_.settings);return d.jsx(tw,{customClassName:v.className,children:l?d.jsx(p.Suspense,{fallback:d.jsx(I,{...C}),children:d.jsx(x,{settings:_.settings})}):d.jsx(I,{...C})},v.id)}return null}})]})},kN=p.memo(ON),NN=()=>{const{loginInProgress:e}=ye();return e?d.jsx(Mt,{}):d.jsx(Eb,{message:"Page not found"})},RN=({layout:e,lastRowMargin:t=!1,isHeader:n=!1})=>{if(!e)return d.jsx(NN,{});const s=e.length-1;return d.jsx(d.Fragment,{children:e.map((r,a)=>d.jsx(kN,{row:r,margin:t&&s===a,isHeader:n},r.id))})},cz=()=>{const{pageBuilderLayouts:e}=N.app,t=e&&e.includes(Ly.Home),{data:n,loading:s}=Jf(`${t?"/pageBuilder":""}/homepage.json?v=08/06/2026-18:01`,!0),r=p.useMemo(()=>s?[]:t?n.layout:n,[t,s,n]),{profile:{id:a}}=ye(),{language:o}=ke(),{app:{site_id:i}}=N,[l,c]=p.useState([]),[u,f]=p.useState(!0);return KP(),Wt("is-home-page"),p.useEffect(function(){en.dispatchEvent("trackingEvent",{category:"Pages",action:"Visited Homepage"})},[]),p.useEffect(()=>{r&&r.length>0&&(async()=>{let h;if(a){const{data:{show:g}}=await Jn.getWidgetShowType(a,o,i);h=Z0(r,g)}else h=Z0(r,!1);c(h),f(!1)})()},[r,a,o,i]),s||u?d.jsx(az,{}):Q.isMobile?d.jsx(RN,{layout:l}):d.jsx(d.Fragment,{children:l.map(m=>d.jsx(kN,{row:m},m.id))})},uz=p.memo(cz),_u={[Or]:{componentName:"Home",type:Ge.SPORTSBOOK,component:uz},[Hn]:{componentName:"SportsBook",type:Ge.SPORTSBOOK,component:()=>B(()=>import("./SportsBook-D4PdZ0n0.js").then(e=>e.S),__vite__mapDeps([464,365,302,465,1,466,467,348,468,195,196,197,198,181,182,153,152,469,283,162,361,470,211,471,280,472,369,370,237,238,239,163,164,165,166,226,216,217,218,219,220,215,221,227,228,229,240,241,242,234,235,236,232,473,379,157,156,158,380,381,382,383,384,385,287,474,475,476,477,294,295,296,478,360,479,480,481,245,356,202,161,225,213,214,222,223,224,230,231,233,243,244,406,403,482,483,484,485,250,251,252,253,254,255,256,257,258,259,260,304,292,293,486,375]))},[Io]:{componentName:"VirtualSportsPage",type:Ge.SPORTSBOOK,component:()=>B(()=>import("./VirtualSportsPage-BCKFM5hm.js"),__vite__mapDeps([487,467,488,288,1,289,290,291,250,251,236,252,253,254,255,256,257,229,258,259,260,292,293,489,400,434,435,438,439,442,443,490,491,436,437,381,153,156,157,158,235,382,380,406,403,484,485,492]))},[iv]:{componentName:"CasinoTournaments",type:Ge.SPORTSBOOK,component:()=>B(()=>import("./CasinoTournaments-BNHnCKT0.js"),__vite__mapDeps([493,491,1,252,436,437,381,153,156,157,158,235,236,382,380,406,403,484,485,250,251,253,254,255,256,257,229,258,259,260,400,289,290,291,292,293,492,483,215,476]))},[Iy]:{componentName:"EsportsPage",type:Ge.SPORTSBOOK,component:()=>B(()=>import("./EsportsPage-CwJ9Hfu4.js"),__vite__mapDeps([494,495,162,1,229,496,477,294,295,296,211,287,478,360,245,497,479,480,467,465,466,348,468,195,196,197,198,181,182,153,152,469,283,361,470,471,280,472,232,222,223,224,238,498,499,216,217,218,219,220,215,221,163,164,165,166,226,225,500,227,228,239,240,241,501,502,503,504,230,505,235,236,352,353,234,506,507,508,509,410,411,354,231,510]))},[rP]:{componentName:"PMUPage",type:Ge.SPORTSBOOK,component:()=>B(()=>import("./PMUPage-CGJdLltr.js"),__vite__mapDeps([511,512,1,467]))},[Wf]:{componentName:"PinnaclePage",type:Ge.SPORTSBOOK,component:()=>B(()=>import("./PinnaclePage-twqdHi-a.js"),__vite__mapDeps([513,514,467,1]))},[aP]:{componentName:"WonderWheelPage",type:Ge.CASINO,component:()=>B(()=>import("./WonderWheelPage-CyBQ_4-q.js"),__vite__mapDeps([515,516,467,1]))},[Ay]:{componentName:"AchievementPage",type:Ge.CASINO,component:()=>B(()=>import("./AchievementPage-DMdQanve.js"),__vite__mapDeps([517,516,467,1]))},[oP]:{componentName:"VmaniaPage",type:Ge.CASINO,component:()=>B(()=>import("./VmaniaPage-DJKjmLUR.js"),__vite__mapDeps([518,516,467,1]))},[Py]:{componentName:"ExchangePage",type:Ge.SPORTSBOOK,component:()=>B(()=>import("./ExchangePage-ClJqIqhd.js"),__vite__mapDeps([519,1,467,512,520]))},[iP]:{componentName:"WonderWheelHarmonyPage",type:Ge.CASINO,component:()=>B(()=>import("./WonderWheelHarmonyPage-CS3NHgXA.js"),__vite__mapDeps([521,516,467,1]))},[lP]:{componentName:"WonderWheelWorldCupPage",type:Ge.SPORTSBOOK,component:()=>B(()=>import("./WonderWheelWorldCupPage-DO2RvorY.js"),__vite__mapDeps([522,516,467,1]))},[cP]:{componentName:"DailySprintPage",type:Ge.CASINO,component:()=>B(()=>import("./DailySprintPage-CK0IkAtM.js"),__vite__mapDeps([523,516,467,1]))},[uP]:{componentName:"WinWheelPage",type:Ge.CASINO,component:()=>B(()=>import("./WinWheelPage-BIIXO1sx.js"),__vite__mapDeps([524,516,467,1]))},[dP]:{componentName:"WonderCardsPage",type:Ge.CASINO,component:()=>B(()=>import("./WonderCardsPage-BUMjTk8v.js"),__vite__mapDeps([525,516,467,1]))},[mo]:{componentName:"CasinoSlots",type:Ge.CASINO,component:()=>B(()=>import("./CasinoSlots-DPRYM3ND.js"),__vite__mapDeps([526,321,467,491,1,252,436,437,381,153,156,157,158,235,236,382,380,406,403,484,485,250,251,253,254,255,256,257,229,258,259,260,400,289,290,291,292,293,492,288,489,434,435,438,439,442,443,490]))},[zf]:{componentName:"CasinoTournaments",type:Ge.CASINO,component:()=>B(()=>import("./CasinoTournaments-BNHnCKT0.js"),__vite__mapDeps([493,491,1,252,436,437,381,153,156,157,158,235,236,382,380,406,403,484,485,250,251,253,254,255,256,257,229,258,259,260,400,289,290,291,292,293,492,483,215,476]))},[xy]:{componentName:"CasinoLiveRTPPage",type:Ge.CASINO,component:()=>B(()=>import("./CasinoLiveRTPPage-B-sCMB43.js"),__vite__mapDeps([527,1]))},[qf]:{componentName:"CasinoTournaments",type:Ge.CASINO,component:()=>B(()=>import("./CasinoTournaments-BNHnCKT0.js"),__vite__mapDeps([493,491,1,252,436,437,381,153,156,157,158,235,236,382,380,406,403,484,485,250,251,253,254,255,256,257,229,258,259,260,400,289,290,291,292,293,492,483,215,476]))},[Oy]:{componentName:"CasinoJackpotPage",type:Ge.CASINO,component:()=>B(()=>import("./CasinoJackpotPage-BQXFf0p-.js"),__vite__mapDeps([528,467,157,399,381,1,153,156,158,235,236,382,348,288,289,290,291,250,251,252,253,254,255,256,257,229,258,259,260,292,293,400,383,384,304,401,491,436,437,380,406,403,484,485,492]))},[Qi]:{componentName:"CasinoGameViewPage",type:Ge.CASINO,component:()=>B(()=>import("./CasinoGameViewPage-edztsmYR.js"),__vite__mapDeps([529,467,1]))},[wu]:{componentName:"CasinoGeneric",type:Ge.CASINO,component:()=>B(()=>import("./CasinoGeneric-C5Cz0WXf.js"),__vite__mapDeps([530,467,488,288,1,289,290,291,250,251,236,252,253,254,255,256,257,229,258,259,260,292,293,489,400,434,435,438,439,442,443,490,491,436,437,381,153,156,157,158,235,382,380,406,403,484,485,492]))},[fm]:{componentName:"CasinoGeneric",type:Ge.CASINO,component:()=>B(()=>import("./CasinoGeneric-C5Cz0WXf.js"),__vite__mapDeps([530,467,488,288,1,289,290,291,250,251,236,252,253,254,255,256,257,229,258,259,260,292,293,489,400,434,435,438,439,442,443,490,491,436,437,381,153,156,157,158,235,382,380,406,403,484,485,492]))},[Ao]:{componentName:"CasinoLive",type:Ge.CASINO,component:()=>B(()=>import("./CasinoLive-CXxKXcAm.js"),__vite__mapDeps([531,467,488,288,1,289,290,291,250,251,236,252,253,254,255,256,257,229,258,259,260,292,293,489,400,434,435,438,439,442,443,490,491,436,437,381,153,156,157,158,235,382,380,406,403,484,485,492]))},[Yf]:{componentName:"CasinoTournaments",type:Ge.CASINO,component:()=>B(()=>import("./CasinoTournaments-BNHnCKT0.js"),__vite__mapDeps([493,491,1,252,436,437,381,153,156,157,158,235,236,382,380,406,403,484,485,250,251,253,254,255,256,257,229,258,259,260,400,289,290,291,292,293,492,483,215,476]))},[Ni]:{componentName:"SkillGamesPage",type:Ge.CASINO,component:()=>B(()=>import("./SkillGamesPage-DMdKBiN7.js"),__vite__mapDeps([532,467,491,1,252,436,437,381,153,156,157,158,235,236,382,380,406,403,484,485,250,251,253,254,255,256,257,229,258,259,260,400,289,290,291,292,293,492,488,288,489,434,435,438,439,442,443,490]))},[ky]:{componentName:"QuizPage",component:()=>B(()=>import("./QuizPage-pr_CUCet.js"),__vite__mapDeps([533,467,386,1]))},[Ny]:{componentName:"Subscriptions",component:()=>B(()=>import("./Subscriptions-B1522p-4.js"),__vite__mapDeps([534,467,170,1,535]))},[Qc]:{componentName:"TVGamesPage",type:Ge.CASINO,component:()=>B(()=>import("./TVGamesPage-ejYLa74n.js"),__vite__mapDeps([536,467,488,288,1,289,290,291,250,251,236,252,253,254,255,256,257,229,258,259,260,292,293,489,400,434,435,438,439,442,443,490,491,436,437,381,153,156,157,158,235,382,380,406,403,484,485,492]))},[fP]:{componentName:"PaymentsInfo",component:()=>B(()=>import("./PaymentsInfo-BBEbUpGH.js"),__vite__mapDeps([537,538,1,283,539,180]))},[pP]:{componentName:"PromotionsPage",component:()=>B(()=>import("./PromotionsPage-DGRdlF91.js"),__vite__mapDeps([540,270,1,271,273,289,230,231,211]))},[YB]:{componentName:"SimpleSlider"},[qB]:{componentName:"SimpleSlider"},[KB]:{componentName:"FeaturedGames"},[mP]:{componentName:"PageBuilder"},[QB]:{componentName:"Skinning",type:Ge.CASINO},[Kf]:{componentName:"DynamicallyStructuredPage",component:()=>B(()=>import("./DynamicallyStructuredPage-DbwNUIJk.js"),__vite__mapDeps([541,514,1]))},[XB]:{componentName:"PromotedGamesWidget",type:Ge.SPORTSBOOK},[gP]:{componentName:"DepositToRidePage",component:()=>B(()=>import("./DepositToRidePage-CQHB2VuL.js"),__vite__mapDeps([542,1,283,469,287,543]))},[_P]:{componentName:"IFramePage",component:()=>B(()=>import("./IFramePage-zTdUK5iJ.js"),__vite__mapDeps([544,467,386,1]))},[pm]:{componentName:"IFramePage",component:()=>B(()=>import("./IFramePage-zTdUK5iJ.js"),__vite__mapDeps([544,467,386,1]))},[hP]:{componentName:"HelpPage",component:()=>B(()=>import("./HelpPage-CBLqQ4Gn.js"),__vite__mapDeps([332,333,1,334]))},[vP]:{componentName:"ExchangeShopPage",type:Ge.CASINO,component:()=>B(()=>import("./ExchangeShopPage-tsrzNj_Z.js"),__vite__mapDeps([545,546,1,203,230,547]))},[EP]:{componentName:"WorldCup",type:Ge.SPORTSBOOK,component:()=>B(()=>import("./WorldCup-BlL0-g5Y.js"),__vite__mapDeps([548,512,1,467]))},[yP]:{componentName:"RacingPage",type:Ge.SPORTSBOOK,component:()=>B(()=>import("./RacingPage-CUUQ0wdU.js"),__vite__mapDeps([549,296,294,1,477,295,211,287,478,360,497,467,372,230,163,164,165,166,225,226,373,369,370,470,153,231,277,220,505,507,348,508,509,358,283,550]))},[bP]:{componentName:"Competition",type:Ge.SPORTSBOOK,component:()=>B(()=>import("./Competition-DdFWW1JZ.js"),__vite__mapDeps([551,1]))},[SP]:{componentName:"PageBuilderPreview",component:()=>B(()=>import("./PageBuilderPreview-CiH9aKVz.js"),__vite__mapDeps([552,344,1]))},[Ry]:{componentName:"FirstSportsbook",component:()=>B(()=>import("./FirstSportsbook-CP9FghGP.js"),__vite__mapDeps([553,467,1]))},[CP]:{componentName:"PageBuilderCustomPage",component:()=>B(()=>import("./PageBuilderCustomPage-CZcTeety.js"),__vite__mapDeps([554,1]))},[mm]:{componentName:"VivaroMePage",type:Ge.CASINO,component:()=>B(()=>import("./VivaroMePage-BAFvd5vh.js").then(e=>e.V),__vite__mapDeps([555,467,556,557,326,40,1,255,432,433,558,252,559,560,256,257,460,313,561,301,162,466,299,238,163,164,165,166,225,226,235,236,240,241,300,289,310,562,563,564,565,566,427,567,452,453,294,161,211,498,499,303,304,292,293,436,437,568]))}},dz=e=>e==="PageBuilder"?d.jsx("div",{className:"pb-loader-initial",children:d.jsx(Mt,{size:"medium"})}):d.jsx(Mt,{size:"small"}),fz=({navigationEnabled:e=!1,location:t,history:n})=>{var a;const{widgetName:s}=eB();Wt(l5?"embed":"widget"),p.useEffect(()=>{n.block(o=>(nr.notify({type:"open_link",value:o.pathname}),!1))},[n]),p.useEffect(()=>{if(!e)return document.addEventListener("click",r,!0),()=>document.removeEventListener("click",r)},[e]);const r=o=>{o.preventDefault()};try{const o=_u[t.pathname]?_u[t.pathname].componentName:s,i=(a=Oo[o])==null?void 0:a.content;if(i){const l=Ne(i),{props:c="{}"}=ze(t.search),u=decodeURIComponent(c),f=JSON.parse(u);return d.jsx(p.Suspense,{fallback:dz(o),children:d.jsx(l,{...f})})}return null}catch{return d.jsx(NN,{})}},sw=p.memo(fz),LN=he.createContext({}),pz=({children:e})=>{const[t,n]=p.useState({streamMap:{}}),[s,r]=p.useState(!1),[a,o]=p.useState(!1),i=p.useCallback(()=>o(N.sportsbook.liveStreaming.enabled),[]);p.useEffect(()=>{a&&ee.subscribe({source:"notifications",what:{partner_streams:[]}},({stream_configs:m,channels:h},g)=>{n(E=>({streamMap:{...E.streamMap,...m},channels:h==null?void 0:h.map(({channel:b,channel_name:v,provider_id:_})=>({provider_id:_,video_id:b,name:v}))})),g&&r(!0)},m=>rt.error(`Failed to subscribe to partner streams: reason: ${m.msg}`))},[a]);const{streamsMap:l,exclusiveStreamsMap:c,exclusiveStreamGameIds:u}=p.useMemo(()=>{const m={},h={},g=new Set,E=N.sportsbook.liveStreaming.exclusiveStream.enabled;return Object.entries(t.streamMap).forEach(([b,v])=>{const _=(v==null?void 0:v.filter(({provider_id:S})=>S!==IC))??[];if(_.length&&(m[b]=_),!E)return;const y=(v==null?void 0:v.filter(({provider_id:S})=>S===IC))??[];y.length&&(h[b]=y,g.add(Number(b)))}),{streamsMap:m,exclusiveStreamsMap:h,exclusiveStreamGameIds:g}},[t.streamMap]),f=p.useMemo(()=>({streamsMap:l,exclusiveStreamsMap:c,exclusiveStreamGameIds:u,channels:t.channels,loaded:s,init:i}),[l,c,u,t.channels,s,i]);return d.jsx(LN.Provider,{value:f,children:e})},qm=()=>p.useContext(Rx);var Rn=(e=>(e.CasinoGames="casinoFavoriteGames",e.CasinoCategories="casinoFavoriteCategories",e.LiveCasino="liveCasinoFavoriteGames",e.TVGames="tvGamesFavoriteGames",e.SkillGames="skillGamesFavoriteGames",e.Promotions="promotionsFavoriteCategories",e.Avatar="avatar",e.SportGames="sportFavoriteGames",e.SportList="sportFavoriteSportList",e.SportCompetition="sportFavoriteCompetition",e.EsportGames="esportFavoriteGames",e.EsportSportList="esportFavoriteSportList",e.EsportCompetitions="esportFavoriteCompetitions",e.SportTeams="sportFavoriteTeams",e.Markets="favoriteMarkets",e.SportToolbarItems="sportToolbarItems",e.CasinoToolbarItems="casinoToolbarItems",e.SelectedOddFormat="selectedOddFormat",e.SelectedOddSettings="selectedOddSettings",e.BalancesVisibility="balancesVisibility",e.ViewTypes="viewTypes",e.RepeatDeposit="repeatDeposit",e))(Rn||{});const mz="cms_pro",MN={configs:{}},hz=Object.fromEntries(Object.values(Rn).map(e=>[e,MN])),gz=Object.fromEntries(Object.values(Rn).map(e=>[`${e}Loading`,!1])),Ng={data:hz,loading:!1,initialDataLoaded:!1},kd=(e,t,n=!0)=>ee.get({...n&&{scope:mz},...e},t),_z=()=>{const[e,t]=p.useState(Ng),[n,s]=p.useState(gz),[r,a]=p.useState({}),{isLoggedIn:o}=ye(),i=qm(),{value:l}=e.data.selectedOddFormat.configs,c=xt(),u=p.useCallback(h=>{o?h():et.dispatchEvent("addComponentPopup",{component:"AuthPopup",props:{popupContentType:st.Login,onSuccess:h}})},[o]);p.useEffect(function(){if(!o){const g=Dx("oddFormat");i("oddFormat",g||N.app.preferences.oddFormat);return}l&&i("oddFormat",Number(l))},[o,l,i]),p.useEffect(function(){o?(t(g=>({...g,loading:!0})),kd({},"get_user_resources_personalization").then(({result:g,details:{data:E}})=>{g===0&&E.length?kd({resource:E},"get_user_data_personalization").then(({details:{data:b}})=>{c.current&&t(v=>({data:{...v.data,...b},loading:!1,initialDataLoaded:!0}))}).catch(b=>{throw new Error(b)}):c.current&&t(b=>({...b,initialDataLoaded:!0,loading:!1}))}).catch(g=>{c.current&&t({...Ng,initialDataLoaded:!0,loading:!1}),rt.error(g)})):c.current&&t(Ng)},[o,c]);const f=p.useCallback((h,g)=>{if(e.initialDataLoaded){const E=`${h}Loading`;s(b=>({...b,[E]:!0})),kd({_id:g},"delete_user_resources_personalization",!1).then(({result:b})=>{if(b===0&&c.current)t(v=>({...v,data:{...v.data,[h]:MN}})),s(v=>({...v,[E]:!1}));else throw new Error}).catch(b=>{c.current&&s(v=>({...v,[E]:!1})),rt.error(b)})}},[c,e.initialDataLoaded]),m=p.useCallback((h,g,E)=>{if(e.initialDataLoaded){const b=`${h}Loading`;s(v=>({...v,[b]:!0})),kd({resource:h,configs:g},"set_user_data_personalization").then(({details:{data:v},result:_})=>{_===0&&c.current&&(E==null||E(),t(y=>({...y,data:{...y.data,[v.resource]:v}})),s(y=>({...y,[b]:!1})))}).catch(v=>{c.current&&s(_=>({..._,[b]:!1})),rt.error(v)})}else a({resource:h,configs:g})},[c,e.initialDataLoaded]);return p.useEffect(function(){const{resource:g,configs:E}=r;e.initialDataLoaded&&g&&E&&(m(g,{...e.data[g].configs,...E}),a({}))},[r,e.initialDataLoaded,m,e.data]),{...e,loadingState:n,setPersonalizationData:m,deletePersonalizationData:f,handlePersonalizationItemClick:u}},vz=e=>({source:"betting",what:{game:["id"]},where:{game:{id:{"@in":e}}}}),Ez=({sportGamesDictionary:e,setPersonalizationData:t,deletePersonalizationData:n})=>{const[s,r]=p.useState({loading:!0,sportGames:[]});return p.useEffect(function(){const o=Object.keys(e.configs).map(Number);if(o.length){const i=vz(o),l=ee.subscribe(i,c=>{const u=[];for(const f of Object.values(c.game))u.push(f.id);if(!y1(o,u)){const f=u.reduce((m,h)=>({...m,[h]:{id:String(h)}}),{});Object.keys(f).length?t(Rn.SportGames,f):n(Rn.SportGames,e._id)}r({loading:!1,sportGames:u})});return()=>{ee.unsubscribe(l)}}else r({loading:!1,sportGames:[]})},[e,t,n]),{...s}};class yz{constructor(){se(this,"methods",[]);se(this,"isLoaded",!1);se(this,"availableIdsByType",{})}async fetchMethods(t=!1){if(this.isLoaded&&!t)return this.methods;const n=t?Date.now():"08/06/2026-18:01";try{const s=await qe.get(`/payments.json?v=${n}`);if(s.status===200&&s.data)return this.methods=s.data.map(r=>({...r,image:r.image.includes("http")?r.image:`${N.cms.iconUrl}${r.image}`})),this.isLoaded=!0,N.payment.methods=this.methods,this.availableIdsByType={},this.methods;throw new Error}catch(s){return rt.warning(`failed to load external payment configuration, error: ${s} , processing will be done without payment configuration`),this.methods=N.payment.methods||[],this.methods}}getMethods(){return this.isLoaded?this.methods:N.payment.methods||[]}}const Za=new yz,bz={[ms.DEPOSIT]:0,[ms.WITHDRAW]:1},rw=(e,t,n)=>{const s=Za.getMethods(),r=n?e[n]:[...new Set([...e[ms.DEPOSIT],...e[ms.WITHDRAW]])],a=n?n===ms.WITHDRAW?"withdrawProducts":"depositProducts":null;return r?yo("order",s.filter(o=>{var i;return r.includes(o.paymentId)&&(!a||!o[a]||((i=o[a])==null?void 0:i.includes(t)))})):[]},Sz=({id:e,language:t,countryCode:n,productType:s,paymentType:r})=>new Promise(a=>{if(e){const o=`${e}_${t}_${n}_${s}`;Za.availableIdsByType[o]?a(rw(Za.availableIdsByType[o],s,r)):ee.get({},"payment_services_v2").then(i=>{i.status!=="error"?(Za.availableIdsByType[o]={[ms.DEPOSIT]:i[ms.DEPOSIT]??[],[ms.WITHDRAW]:i[ms.WITHDRAW]??[]},a(rw(Za.availableIdsByType[o],s,r))):a([])}).catch(()=>{a([])})}else{const o=Za.getMethods();a(yo("order",o))}}),zde=(e,t,n=Ge.SPORTSBOOK)=>new Promise(s=>ee.get({service_id:e,payment_type:t,for_product:n},"get_saved_wallet_fields").then(({method:r,fields:a,status:o})=>{o==="ok"&&r.toLowerCase()===Hx.FORM_DRAW?s(a):s([])}).catch(()=>{s([])})),Yde=e=>ee.get({},"get_wallets").then(t=>t.map(n=>{const s=e.find(({paymentId:r})=>(WU[n.paymentId]||n.paymentId)===r)||{};return{...n,displayName:s.displayName||"",image:s.image||"",name:s.name||"",paymentId:s.paymentId}})).catch(()=>[]),qde=(e,t,n,s,r)=>{const a=document.createElement("form");if(a.method=n,a.action=t,a.target=r===!1?"_blank":"_self",e.forEach(({name:o,value:i})=>{const l=document.createElement("input");l.type="hidden",l.name=o,l.value=i,a.appendChild(l)}),a.target!=="_self"&&Q.userOs==="IOS"){const o=document.createElement("div"),i=document.createElement("button");i.className="btn a-color",i.innerText=s("Submit form"),a.appendChild(i),o.appendChild(a),ve.open({className:"ios-payment-form-popup-content",title:"Info",buttons:[{label:"Cancel",className:"a-outline"}],content:`

${s("ios_redirection_confirmation_text")}

${o.innerHTML}`})}else document.body.appendChild(a),a.submit()},Kde=e=>{const t=new URL(window.location.href),n=new URL(window.location.pathname,window.location.origin);["profile","account","page","selectedGroup","selectedMethod"].forEach(a=>{const o=t.searchParams.get(a);o&&n.searchParams.set(a,o)});const r=n.toString();return{success:`${r}&status=success&amount=${e}`,cancel:r,fail:`${r}&status=fail`,pending:`${r}&status=pending`}},Qde=({info:e,type:t,displayName:n,name:s,image:r,currency:a})=>{if(!e||!e[a])return null;const o=e[a];return t===ms.DEPOSIT?{fee:o.depositFee,max:o.maxDeposit,min:o.minDeposit,processTime:o.depositProcessTime,processTimeType:o.depositProcessTimeType,image:`${N.cms.iconUrl}${r}`,name:s,displayName:n}:{fee:o.withdrawFee,max:o.maxWithdraw,min:o.minWithdraw,processTime:o.withdrawProcessTime,processTimeType:o.withdrawProcessTimeType,image:`${N.cms.iconUrl}${r}`,name:s,displayName:n}},Xde=e=>ee.get({product:HU[e]},"get_client_withdrawable_balance"),Cz=({command:e,type:t,mID:n,eamount:s,paymentId:r,name:a})=>new Promise(o=>{const i={amount:100,service:r??a??"europayment",[VU[t]]:{command:e,type:bz[t],...s&&{eamount:s},...n&&{mID:n}}};ee.get(i,t).then(({result:l,details:c})=>{if(l===0&&c.fields){const u=c.fields.reduce((f,{name:m,value:h})=>(f[m]=h,f),{});if(u.status==="error")throw new Error(u.msg);switch(e){case"GetActivePaymentMessage":u.status!=="none"?o({status:u}):o({});break;case"ConfirmPaymentMessage":case"CreatePaymentMessage":u.status==="success"&&(ve.open({type:"success",title:"Success",content:u.msg}),o({status:u})),Cz({command:"GetActivePaymentMessage",type:t,paymentId:r}).then(o)}}else throw new Error(c.message||c.error||c.error_code||Qn)}).catch(l=>{ve.open({type:"error",title:"Error",content:(l==null?void 0:l.message)??Qn}),o({status:null})})}),Jde=()=>ee.get({},"get_client_pre_calculation").then(({result:e,details:t})=>{if(e===0)return{count:t.DepositCount,isFirst:t.DepositCount===1};throw new Error}).catch(()=>({count:-1,isFirst:!1})),Zde=e=>["crypto_amount","crypto_currency","address","expire_time","transaction_id","from_currency","rate","chain_info"].reduce((n,s)=>{var r;return n[s]=((r=e.find(lt("name",s)))==null?void 0:r.value)??null,n},{}),aw=(e,t=!0)=>{const{data:n,service:s,walletId:r}=e,a={},o=Object.keys(n);for(const c of o)c.startsWith("_ignore__")||!t&&c==="amount"||(a[c]=n[c]);const l=jo({data:a,service:s,walletId:r});return{cleaned:a,hash:l}},Tz=e=>{const t={},n={};for(const r of e){const{hash:a}=aw(r,!0);if(!t[a])t[a]=r;else{const o=t[a];(r.selected||!o.selected&&r.order>o.order)&&(t[a]=r)}}for(const r of Object.values(t)){const{hash:a}=aw(r,!1);n[a]||(n[a]=[]),n[a].push(r)}const s=[];return Object.values(n).forEach(r=>{const a=r.sort((o,i)=>i.order-o.order).slice(0,6);s.push(...a)}),s},DN=e=>{const t=xt(),[n,s]=p.useState({loadingMethods:!0,availableMethods:[]}),{language:r,productType:a}=ke(),{profile:{country_code:o,id:i}}=ye();return p.useEffect(()=>{Sz({id:i,language:r,productType:a,countryCode:o,paymentType:e}).then(l=>{t.current&&s({loadingMethods:!1,availableMethods:l})})},[o,i,r,a,e,t]),n},wz=(e,t)=>{if(t&&t.length){const n=[...t,...iL(Object.keys(Zl).map(Number),t)];return yo(s=>lL(s.id,n))(e)}return yo("id",e)},Iz=e=>p.useMemo(()=>{const t={[Pv]:[]},n=[{id:yC,...Zl[yC]}];for(const s of e){const r=Array.isArray(s.paymentGroup)?s.paymentGroup:s.paymentGroup?[s.paymentGroup]:[];for(const a of r)if(Zl[a]){const o=Zl[a].name;t[o]||(t[o]=[],n.push({id:a,...Zl[a]})),t[o].push(s)}t[Pv].push(s)}return{groups:t,groupsList:wz(n,N.payment.paymentGroupCustomOrdering)}},[e]),Az=({paymentType:e,selectedMethod:t,selectedGroup:n})=>{const{loadingMethods:s,availableMethods:r}=DN(e),{groups:a,groupsList:o}=Iz(r),i=p.useMemo(()=>!s&&t&&n&&a[n]?a[n].find(l=>l.name===t):void 0,[a,s,n,t]);return{availableMethods:r,loadingMethods:s,groups:a,groupsList:o,currentMethod:i}},Pz=({initialDataLoaded:e,personalizationData:t,setPersonalizationData:n,deletePersonalizationData:s,_id:r})=>{const{isLoggedIn:a}=ye(),{availableMethods:o}=Az({paymentType:ms.DEPOSIT}),[i,l]=p.useState([]),[c,u]=p.useState(),[f,m]=p.useState([]),{productType:h}=ke(),g=p.useMemo(()=>i.sort((x,I)=>I.order-x.order),[i]),E=p.useRef(!1),b=p.useRef(!1),v=p.useCallback((x,I,C=!1)=>x.find(T=>{if(T.forProduct===h||C)return I.walletId?T.id===I.walletId:I.service===T.paymentId&&Object.values(I.data).some(P=>P===T.id)}),[h]),_=p.useCallback((x,I)=>{const C=new Set,T={},P=x.map(O=>{var k;const M=c?(k=v(c,O,!0))==null?void 0:k.id:O.walletId;if(M)return T[M]||(T[M]=[]),T[M].push({paramId:O.id,selected:O.selected,order:O.order}),{...O,walletId:M}}).filter(Boolean);Object.values(T).forEach(O=>{var D,j;const M=O.sort((V,R)=>R.order-V.order),k=(I?(D=M.find(lt("paramId",I)))==null?void 0:D.paramId:void 0)??((j=M.find(lt("selected",!0)))==null?void 0:j.paramId)??M[0].paramId;C.add(k)});const A=P.map(O=>({...O,selected:C.has(O.id)}));return Tz(A)},[v,c]),y=p.useCallback(x=>{b.current=!0;const I=jo(x);m(C=>_([...C,{...x,order:Date.now(),id:I,selected:!0}],I))},[_]),S=p.useCallback(x=>{b.current=!0,m(I=>_(I,x))},[_]),w=p.useCallback(x=>{b.current=!0,m(I=>_(I.filter(C=>C.id!==x)))},[_]);return p.useEffect(()=>{if(e&&!E.current){const x=Object.values(t);E.current=!0,m(_(x))}},[e,_,t]),p.useEffect(()=>{if(a&&b.current)if(f.length){const x=f.reduce((I,C)=>(I[C.id]=C,I),{});n(Rn.RepeatDeposit,x)}else r&&s(Rn.RepeatDeposit,r)},[r,s,a,f,n]),p.useEffect(()=>{c&&f.length?l(f.map(x=>{if(x&&o.length){const I=v(c,x);if(I)return{wallet:I,...x}}return null}).filter(Boolean)):l([])},[o.length,f,c,v]),{repeatDepositMethods:g,repeatDepositParams:f,setRepeatDepositMethodParams:y,setAsDefaultRepeatDepositOption:S,deleteRepeatDepositOption:w,setSavedWallets:u}},ow=1,jN=p.createContext({}),xz=({children:e})=>{const{initialDataLoaded:t,data:n,loadingState:s,setPersonalizationData:r,deletePersonalizationData:a,handlePersonalizationItemClick:o,loading:i}=_z(),{casinoFavoriteGames:l,sportFavoriteCompetition:c,favoriteMarkets:u,sportFavoriteTeams:f,avatar:m,repeatDeposit:h}=n,g=Pz({initialDataLoaded:t,personalizationData:h==null?void 0:h.configs,setPersonalizationData:r,_id:h._id,deletePersonalizationData:a}),{sportGames:E}=Ez({setPersonalizationData:r,deletePersonalizationData:a,sportGamesDictionary:n[Rn.SportGames]}),{personalizationDataCount:b,favoritesCount:v}=p.useMemo(()=>{const D=Object.entries(n).reduce((U,[G,{configs:z}])=>({...U,[G]:Object.keys(z).length}),{}),{casinoFavoriteGames:j,sportFavoriteGames:V,sportFavoriteCompetition:R}=D;return{personalizationDataCount:D,favoritesCount:j+V+R}},[n]),_=p.useCallback(({key:D,resource:j,configs:V={}})=>{const R=n[j].configs;if(D in R)if(Object.keys(R).length===ow)a(j,n[j]._id);else{const{[D]:G,...z}=R;r(j,z)}else r(j,{...R,[D]:V})},[n,a,r]),y=p.useCallback(({configs:D={},resource:j})=>{var ne;const V=((ne=n[j])==null?void 0:ne.configs)||{},R=Object.keys(D).filter(J=>J in V),U=Object.keys(D).filter(J=>!(J in V)),G=Object.keys(V).length,z=Object.fromEntries(Object.entries(V).filter(([J])=>!R.includes(J))),K=Object.fromEntries(U.map(J=>[J,D[J]]));Object.assign(z,K),G===ow&&!U.length||Object.keys(D).length===Object.keys(V).length&&!U.length?a(j,n[j]._id):r(j,z)},[n,a,r]),S=p.useMemo(()=>Object.keys(c.configs).map(Number),[c]),w=p.useMemo(()=>Object.keys(u.configs),[u]),x=p.useCallback(D=>{_({resource:Rn.SportGames,key:String(D),configs:{id:String(D)}})},[_]),I=p.useCallback((D,j)=>r(Rn.Avatar,{id:D},j),[r]),C=p.useCallback(D=>{_({resource:Rn.SportCompetition,key:String(D),configs:{}})},[_]),T=p.useCallback(D=>{_({resource:Rn.Markets,key:D,configs:{}})},[_]),P=p.useCallback((D,j)=>{_({resource:Rn.CasinoGames,key:D,configs:{categoryId:j}})},[_]),A=p.useCallback(D=>{r(Rn.SelectedOddFormat,D)},[r]),O=p.useCallback(D=>{a(D,n[D]._id)},[n,a]),M=p.useCallback((D,j)=>String(j)in n[D].configs,[n]),k=p.useCallback(D=>{y({configs:D,resource:Rn.SportTeams})},[y]);return d.jsx(jN.Provider,{value:{setAvatar:I,sportGames:E,repeatDeposit:g,loadingState:s,isItemFavorite:M,favoritesCount:v,favoriteMarkets:w,sportCompetitions:S,toggleFavoriteTeam:k,toggleFavoriteMarket:T,toggleFavoriteSportGame:x,removeResourceFavorites:O,personalizationDataCount:b,toggleFavoriteCasinoGame:P,toggleFavoriteCompetition:C,personalizationDataLoading:i,setOddFormatToPersonalization:A,handlePersonalizationItemClick:o,favoriteAvatarId:m.configs.id,favorite_casino_games:l,sportFavoriteTeams:f.configs},children:e})};var BN=(e=>(e[e.NotFound=0]="NotFound",e[e.Accepted=1]="Accepted",e[e.Returned=2]="Returned",e[e.Lost=3]="Lost",e[e.Won=4]="Won",e[e.CashOut=5]="CashOut",e[e.LostReturn=6]="LostReturn",e))(BN||{});const Oz={[aa.NotResulted]:Lr.NotResulted,[aa.Place]:Lr.Place,[aa.Returned]:Lr.Returned,[aa.Lost]:Lr.Lost,[aa.Won]:Lr.Won,[aa.WinReturn]:Lr.WinReturn,[aa.LoseReturn]:Lr.LoseReturn},kz=({betId:e,exportAsBetHistoryItem:t=!0})=>{const n=xt(),[s,r]=p.useState({loading:!1}),a=p.useCallback(({Id:o,CurrencyId:i,SelectionList:l,StateName:c,Price:u,PossibleWin:f,Amount:m,TypeName:h,Created:g,BonusAmount:E,FreeBetAmount:b,WinAmount:v,IsEachWay:_,TaxAmount:y,SystemMinCount:S})=>({possibleWin:f,possibleWinDisplay:f.toString(),id:o,odd:u,oddType:0,amount:m,totalAmount:b?b.toString():m?m.toString():"0",is_bet_builder:l.some(Pt("BetBuilderMatchId")),events:l.map(w=>({gameId:w.MatchId,eventId:w.SelectionId,sportId:w.MatchNum,eventName:w.DisplaySelectionName,team1Name:w.HomeTeamName,team2Name:w.AwayTeamName,sportIndex:w.SportAlias,regionName:w.RegionName,marketName:w.DisplayMarketName,isLive:w.IsLive,outcomeName:w.StateName,textInfo:"",base:cn,away_score:null,home_score:null,match_info:w.MatchInfo,order:w.Order,competitionName:w.CompetitionName,startDate:Date.parse(w.StartTime)/1e3,coefficient:w.Price,outcome:Oz[w.State]??Lr.NotResulted,bet_builder_match_id:w.BetBuilderMatchId,bet_builder_price:w.BetBuilderPrice,correlationID:w.BetBuilderMatchId})),systemCount:S,isFreeBetMoney:!!b,currency:i,outcome:c==="Accepted"?0:Pa[c],type:me[h],dateTime:new Date(g).getTime()/1e3,...v>0&&{payout:Yt(v)},...E>0&&{bonusDisplay:Yt(E)},each_way:_,taxAmountDisplay:String(y)}),[]);return p.useEffect(()=>{e&&(r(o=>({...o,loading:!0})),ee.get(e.length<15?{bet_id:Number(e)}:{ticket_number:Number(e)},"check_bet_status").then(({result:o,details:i,result_text:l})=>{const c=i.StateId===3&&i.WinAmount>0,u={...i,...c?{StateName:Pa[Pa.LostReturn],StateId:i.StateId}:null};if(n.current&&o===0)r({betData:u,betHistory:t?a(u):void 0,loading:!1,StateId:u.StateId});else throw new Error(l||Qn)}).catch(({message:o})=>{n.current&&(ve.open({type:"error",title:"Error",content:o}),r({loading:!1,StateId:0}))}))},[e,a,t,n]),s},Nz=Ne(()=>B(()=>import("./LossAndSessionLimitPopup-D_4WoPea.js"),__vite__mapDeps([569,1,283,200,570]))),bi=(e,t=Ut)=>{ve.open((n,s)=>({type:"info",className:"lossSessionLimitPopup",Component:()=>d.jsx(p.Suspense,{children:d.jsx(Nz,{update:s,updateType:e,onSuccess:t})})}))},FN=()=>{const{ranges:e={},endTime:t,minTotalOddDecimal:n=0,startTime:s,outcomeInclude:r,afterBetPopupContentId:a,betTypesInclude:o}=N.sportsbook.betHistory.sportDraw??{},{profile:{currency:i}}=ye(),{language:l}=ke(),{integrations:c}=gl(),u=s&&at.utc(s),f=t&&at.utc(t),m=p.useCallback(g=>{var y;let E={showIcon:!1,title:""};const b=g.bonusBetAmount!==0,v=!r||r.includes(g.outcome),_=!o||o.includes(g.type);if(u&&!b&&v&&_&&g.odd>=n&&!g.totalPartialCashoutAmount){const S=at(at.unix(g.dateTime)).diff(u,"seconds"),w=at(at.unix(g.dateTime)).diff(f,"seconds");S>0&&w<0&&((y=e[g.currency])==null||y.forEach(({tooltip:x,minAmount:I},C)=>{var P;const T=(P=e[g.currency])==null?void 0:P[C+1];g.amount>=I&&(!T||T.minAmount>g.amount)&&(E={showIcon:!0,title:x})}))}return E},[o,f,n,r,e,u]),h=p.useCallback(g=>{a&&g.Data.some(({amount:E,bonus_amount:b,k:v,created_date:_,type:y})=>m({bonusBetAmount:b,amount:E,odd:v,outcome:0,totalPartialCashoutAmount:0,currency:i,dateTime:_,type:y}))&&Jn.getContentById(a,l,c).then(E=>(E==null?void 0:E[0].content)??"").then(E=>{E&&ve.open({title:"",type:"info",content:E})})},[a,m,i,c,l]);return{checkBetDrawAvailability:m,showAfterBetPopup:h}};var vu=(e=>(e.Bet="ClientRestrictedForActionBet",e.Deposit="ClientRestrictedForActionDeposit",e.Bonus="ClientRestrictedForActionClaimBonus",e.Withdraw="ClientRestrictedForActionWithdraw",e))(vu||{});const efe=()=>{const{profile:{is_verified:e,active_step:t,active_step_state:n}}=ye(),{restrictedKYCActions:s}=N.app,r=p.useMemo(()=>{var o;switch(t){case wt.IDFY_KYC_CHECK:return wt.IDFY_KYC_CHECK;case wt.IDFY_KYC_ITALIAN:return N.app.italianLicence?wt.IDFY_KYC_ITALIAN:null;case wt.IDENTITY_CHECK:return e?null:wt.IDENTITY_CHECK;case wt.TERMS_AND_CONDITIONS:return!((o=N.app.ukLicense)!=null&&o.enabled)&&n!==Zi.WAITING?wt.TERMS_AND_CONDITIONS:null;case wt.TRUNARRATIVE_VERIFICATION:return wt.TRUNARRATIVE_VERIFICATION;case wt.IDFY_KYC_SUMSUB:return wt.IDFY_KYC_SUMSUB;case wt.IDFY_KYC_LEGITIMUZ_BRAZIL:return wt.IDFY_KYC_LEGITIMUZ_BRAZIL;case wt.IDFY_KYC_IDENTOMAT:return wt.IDFY_KYC_IDENTOMAT;case wt.TRUNARRATIVE_UPLOAD_DOCUMENTS:return wt.TRUNARRATIVE_UPLOAD_DOCUMENTS;case wt.IDFY_KYC_SIGNICAT_BRAZIL:return n===Zi.WAITING?wt.IDFY_KYC_SIGNICAT_BRAZIL:null;case wt.IDFY_KYC_PAGCOR:return wt.IDFY_KYC_PAGCOR;default:return null}},[e,t,n]),a=p.useCallback(o=>!!r&&s.includes(o),[r,s]);return{activeKYC:r,canShowKycRestrictionPopup:a}},Rz={[tt.ERROR]:(e,t,n)=>Ce.error(e,{onOpen:()=>Ce.dismiss(t),toastId:`${t}_error`,autoClose:5e3,...n?{position:"top-right"}:{}}),[tt.INFO]:(e,t,n)=>Ce.info(e,{autoClose:!1,toastId:t,...n?{position:"top-right"}:{}}),[tt.SUCCESS]:(e,t,n)=>Ce.success(e,{onOpen:()=>Ce.dismiss(t),toastId:`${t}_success`,...n?{position:"top-right"}:{}}),[tt.WARNING]:(e,t,n)=>Ce.warn(e,{onOpen:()=>Ce.dismiss(t),toastId:`${t}_warning`,autoClose:5e3,...n?{position:"top-right"}:{}})},Lz="betchain",Mz=()=>{const e=xt(),t=Se(),{showAfterBetPopup:n}=FN(),{oddFormat:s}=ke(),{profile:{waitingVerification:r}}=ye(),a=Ua(),o=p.useCallback((l,c,u)=>{Rz[l](t(c),u,!Q.isMobile)},[t]);return{createQuickBet:p.useCallback(({stake:l,eventId:c,eventPrice:u,priceChangeMode:f,priceType:m,canCreate:h=!0})=>{if(h){Ae.getInstance().dispatchEvent("setInProgressState",{quickBet:!0});const g=b1();o(tt.INFO,"Processing",g);const E={bets:[{AcceptTypeId:f,Amount:Number(l),EachWay:!1,Events:[{SelectionId:c,Coeficient:ou(u,m)}],Type:me.Single,OddType:s,Source:Q.isMobile?Es.Mobile:Es.Desktop,IsSuperBet:!1}]};ee.get(E,"create_bets").then(b=>{var v;if(e.current)if(Yv(b))n(b),o(tt.SUCCESS,"Bet success",g),(v=N.sportsbook.externalSportsbook)!=null&&v.enabled&&N.sportsbook.externalSportsbook.externalSportsbookType===Lz&&He.dispatchEvent("needToClearBetslipAfterQuickBet",!0);else if(b.StatusCode==="NotAllowedExistingTaxSession"&&ak(a),typeof b.Data=="string")o(tt.ERROR,b.Data,g);else{const{Key:_}=b.Data;_==="GeolocationCheckFail"&&(Vr.showLocationError(_),a()),(_==="RequiredLossLimitsDoesNotSet"||_==="RequiredSessionLimitsDoesNotSet")&&bi(_==="RequiredLossLimitsDoesNotSet"?Yn.LossLimits:Yn.SessionLimits),_==="ContinuesGameSessionLimitExceeded"&&ve.open({type:"error",title:"Error",content:_}),_===vu.Bet&&r&&He.dispatchEvent("clientRestricted",{action:vu.Bet}),o(tt.ERROR,_,g)}}).catch(()=>{e.current&&o(tt.ERROR,U2,g)}).finally(()=>{Ae.getInstance().dispatchEvent("setInProgressState",{quickBet:!1})})}},[e,a,s,n,o,r])}},Dz=p.lazy(()=>B(()=>import("./BookingBetRestorePopup-Di4f6NH9.js"),__vite__mapDeps([571,1,165,275,276,277,220,278,218,255,227,228,279,280,572])));function jz({stateEventsLength:e,setInProgressState:t,processBetslipEvents:n}){const s=p.useCallback((a,o,i)=>{ve.open(l=>({type:"confirm",className:"booking-confirmation-popup",Component:()=>d.jsx(p.Suspense,{fallback:null,children:d.jsx(Dz,{events:a,onClose:l,bookedBet:o,onProcessBetslipEvents:i})})}))},[]);return{getBetByBookingId:p.useCallback(a=>{t({getBetByBookingId:!0}),ee.get({booking_id:a},"get_booking_by_id_v2").then(({result:o,details:i})=>{if(o===0&&i.id)return i;throw new Error("Wrong booking id")}).then(({bets:o,...i})=>{const l=new Set,c=new Set,u=new Set;for(const g of o)for(const E of g.selections)l.add(E.selection_id),c.add(E.market_id),u.add(E.match_id);const f=Array.from(l),m=Array.from(c),h=Array.from(u);return cb({events:f,markets:m,games:h}).then(g=>{const E=g.length{var l,c;o.length&&(e&&N.sportsbook.showBookingConfirmationPopup||(c=(l=i==null?void 0:i.bets)==null?void 0:l[0])!=null&&c.predefined_multiple_id?s(o,i,u=>n({betslipEvents:o,bookedBet:i},u)):n({betslipEvents:o,bookedBet:i},!0))}).catch(o=>{ve.open({type:"error",title:o.message??Qn})}).finally(()=>{t({getBetByBookingId:!1})})},[s,n,t,e])}}const Bz=p.lazy(()=>B(()=>import("./BetslipSuperBetInfo-DCUIVWq0.js"),__vite__mapDeps([573,1]))),Fz=p.lazy(()=>B(()=>import("./BetShareRepeatBetPopup-bkmEJL_F.js"),__vite__mapDeps([574,575,1,238,576,255,152,153,577,247,578,165,235,236,474,400,289,290,291,250,251,252,253,254,256,257,229,258,259,260,292,293,579,580,189,581,582]))),UN=p.createContext({}),Uz=({children:e,id:t=Lu})=>{const n=xt(),[s,r]=p.useState(()=>TV(t)),{productType:a}=ke(),{pathname:o}=xn(),{profile:i,isLoggedIn:l,loginInProgress:c}=ye(),u=Se(),{createQuickBet:f}=Mz(),{prematch_multiple_disabled:m=!0,partner_id:h,decimalRounding:g,bet_builder_ih_enabled:E}=Fs(),b=h!==void 0,v=p.useRef(b?m:null),_=p.useRef({}),y=p.useRef(new Map),{freebetMemoizedEventIds:S,freebetIsLive:w}=p.useMemo(()=>s.events.length>0&&l&&!s.metadata.editBet.active&&i.has_free_bets&&!s.metadata.betslipPartial&&!s.metadata.needCorrelation&&!s.metadata.inProgress.betbuilder?{freebetMemoizedEventIds:cs(s.events).map(Pt("id")).join("_"),freebetIsLive:s.events.some(X=>X.isLive===1&&!X.visibleInPrematch)}:{},[l,i.has_free_bets,s.events,s.metadata.betslipPartial,s.metadata.editBet.active,s.metadata.inProgress.betbuilder,s.metadata.needCorrelation]),x=p.useCallback((X,H)=>{NV(H,X).then(F=>r(re=>PV(re,F,X)))},[]),I=p.useCallback((X,H)=>{const{gameId:F,marketId:re,id:ce,base:pe,marketType:be,type:Pe,sportAlias:Ke,isLive:Be,eachWayPrice:Ue}=X,Ct={source:"betting",what:{game:["team1_name","team2_name","is_blocked","is_live","sport_alias","region_alias","express_min_len","_parent_id","start_ts","visible_in_prematch","#competition:name","#region:name"],market:["id","name","express_id","market_type","home_value","available_for_betbuilder","away_value","type_id","point_sequence","sequence","type",...Ue===void 0?["extra_info"]:[],...Be!==1&&H?["prematch_express_id"]:[]],event:["id","price","base","name","type_1","ew_allowed","sp_enabled","type_id","away_value","home_value","type_id"]},where:{game:{id:F},...re&&{market:{id:re}},event:{id:ce}}};return ee.subscribe(Ct,Qe=>{const Kt=CV({gameData:Qe.game,gameId:F,eventId:ce,eachWayPrice:Ue});r(fn=>(!fn.metadata.editBet.active&&!Kt&&Ke===we.BASKETBALL&&pe&&pe!==cn&&be&&Pe&&ee.get({source:"betting",what:{event:["base","id","_parent_id","price"]},where:{market:{type:be},game:{id:F},event:{type_1:Pe}}}).then(({data:{event:_t}})=>Object.values(_t)).then(cL(({base:_t})=>Math.abs(_t-pe))).then(_t=>{if(_t){const Ha=y.current.get(ce);if(Ha){const Xb={id:_t.id,marketId:_t._parent_id,price:_t.price};ee.unsubscribe(Ha),y.current.delete(ce),r(eL=>sT(eL,ce,{...Xb,...ik(_t.price)&&{isBlocked:!0},base:_t.base,isDeleted:!1})),y.current.set(_t.id,I({...X,...Xb},!v.current))}}}),sT(fn,ce,Kt)))})},[]),C=p.useCallback((X,H)=>{const F=I(X,H);y.current.set(X.id,F)},[I]),T=p.useCallback((X,H=!0)=>{r(F=>hb(F,X)),H&&C(X,!v.current),en.dispatchEvent("trackingEvent",{category:"Betting",action:"Added event to betslip"})},[C]),P=p.useCallback(X=>{const H=y.current.get(X);H&&(ee.unsubscribe(H),y.current.delete(X))},[]),A=p.useCallback(X=>{const{parentId:H}=_.current[X]||{};r(F=>{if(!H){const re=F.events.find(lt("id",X));re==null||re.childrenEvents.forEach(({id:ce})=>P(ce))}return P(X),Bi(F,X,H)}),ct(void 0)},[P]),O=p.useCallback((X,H)=>{LV(X,H).then(({remainingEvent:F})=>{r(re=>({...re,events:re.events.map(ce=>ce.id===H?F:ce),metadata:{...re.metadata,inProgress:{...re.metadata.inProgress,betbuilder:!1}}}))}).catch(()=>{})},[]),M=p.useCallback(X=>{X.forEach(P),r(H=>X.reduce((F,re)=>Bi(F,re),H)),ct(void 0)},[P]),k=p.useCallback(()=>{r(X=>(cs(X.events).forEach(({id:H})=>P(H)),X.events.reduce((H,{id:F})=>Bi(H,F),X))),ct(void 0)},[P]),D=p.useCallback((X,H)=>{r(F=>({...F,events:F.events.map(re=>re.id===X?{...re,priceType:H}:re)}))},[]),j=p.useCallback(X=>r(H=>H.metadata.contentType!==X?uH(H,X):H),[]),V=p.useCallback(({type:X}={})=>{r(H=>H.metadata.betslipViewState!==At.Fixed?{...H,metadata:{...H.metadata,betslipViewState:At.Full}}:H),X&&j(X)},[j]),R=p.useCallback(X=>{const{id:H,priceType:F,price:re,tag:ce}=X,pe=_.current[H],{priceChangeMode:be,metadata:{quickBet:{isSaved:Pe,isValid:Ke,stake:Be}},extraFunctions:{quickBet:Ue}}=s;if(Ue.active&&!ce){Be&&Pe&&Ke?f({eventId:H,priceChangeMode:be,eventPrice:re,stake:Be,priceType:F,canCreate:!tc(s.metadata.inProgress)}):(V(),Be||Oe({...s.metadata.quickBet,errorMessage:G2}));return}eH(X),pe?pe.priceType===F?A(H):D(H,F):T(X)},[s,f,V,T,A,D]),U=p.useCallback(X=>{r(H=>{var F;return{...H,multipleOfTheDayIds:X===((F=H.multipleOfTheDayIds)==null?void 0:F[0])?[]:[X]}})},[]),G=p.useCallback(()=>{r(X=>({...X,multipleOfTheDayIds:[]}))},[]),z=p.useCallback(({eventId:X,key:H,value:F})=>{r(re=>({...re,events:re.events.map(ce=>ce.id===X||ce.childrenEvents.some(({id:pe})=>X===pe)?{...ce,[H]:F}:ce)}))},[]),K=p.useCallback(()=>{r(X=>({...X,events:X.events.map(H=>({...H,...H.price?{initialPrice:H.price}:{initialPrice:null,priceType:"sp"},initialBase:H.base}))}))},[]),ne=p.useCallback(X=>{r(H=>{const F=new Set(H.metadata.excludedSysEvents);return F.has(X)?F.delete(X):F.add(X),{...H,metadata:{...H.metadata,excludedSysEvents:F}}}),ct(void 0)},[]),J=p.useCallback(X=>{r(H=>{if(H.metadata.bankerEvents.size>=H.events.length-Gh&&!H.metadata.bankerEvents.has(X))return Ce.error(u("At least 2 non-banker selections are required for banker bet")),H;const F=new Set(H.metadata.bankerEvents);F.has(X)?F.delete(X):F.add(X);const re=H.eventsDataMap.get(me.System);let ce=new Map(H.eventsDataMap);return re&&re.length>0&&re.forEach((pe,be)=>{const Pe=be+Gh,Ke=pp(H.events.length,Pe,F.size);ce=og({eventsDataMap:ce,betType:me.System,index:be,updatedEventData:{stakeMultiplier:Ke}})}),{...H,eventsDataMap:ce,metadata:{...H.metadata,bankerEvents:F,selectedSysOption:F.size>0&&H.metadata.selectedSysOption+Gh===F.size?H.metadata.selectedSysOption+n4:H.metadata.selectedSysOption}}}),ct(void 0)},[u]),$=p.useCallback(({betType:X,index:H})=>{r(F=>{const re=(F.eventsDataMap.get(X)||[])[H];if(re){const ce=!re.eachWay,pe=ce?re.stakeMultiplier*2:re.stakeMultiplier/2,be={eachWay:ce,stakeMultiplier:pe},Pe=og({eventsDataMap:F.eventsDataMap,betType:X,index:H,updatedEventData:be});return{...F,eventsDataMap:Pe}}return F})},[]),L=p.useCallback(({betType:X,index:H,eventDataProp:F,value:re})=>r(ce=>({...ce,eventsDataMap:og({eventsDataMap:ce.eventsDataMap,betType:X,index:H,updatedEventData:{[F]:re}})})),[]),W=p.useCallback(X=>r(H=>({...H,priceChangeMode:X})),[]),q=p.useCallback(X=>{r(H=>ZV(H,X)),ct(void 0)},[]),de=p.useCallback(X=>{r(H=>JV(H,X))},[]),ue=p.useCallback(({functionKey:X,data:H})=>r(F=>({...F,extraFunctions:ys(F.extraFunctions,X,H)})),[]),Y=p.useCallback(({functionKey:X,active:H})=>r(F=>{switch(X){case"counterOffer":return tH(F,H);case"freebet":return aH(F,H);case"profitBoost":return cH(F,H);case"realBalance":return oH(F,H);case"bonusBalance":return iH(F,H);case"frenchFreebet":return lH(F,H);case"quickBet":return rT(F,H)}}),[]),ae=()=>r(X=>X.metadata.betslipViewState!==At.Fixed?{...X,metadata:{...X.metadata,betslipViewState:At.Hidden}}:X),ie=p.useCallback(X=>{X.forEach(({eventId:H,gameId:F,team1Name:re,team2Name:ce,coefficient:pe,base:be,eventName:Pe,sportIndex:Ke,isLive:Be,correlationID:Ue})=>T({id:H,gameId:F,price:pe,priceType:$o.Fixed,base:be,team1Name:re,team2Name:ce,eventName:Pe,isPartial:!0,expressId:cn,addedInEditMode:!1,sportAlias:Ke,isLive:Number(Be),correlationID:Ue}))},[T]),Z=p.useCallback(X=>{k();const H=X.events.filter(lt("outcome",Pa.Unsettled));r(lf({active:!0,oldBetId:X.id,stake:X.cashOut??0,originalEventIds:new Set(H.map(Pt("eventId")))})),ie(H),V()},[ie,V,k]),te=p.useCallback(X=>{X&&k(),r(lf(Gv))},[k]),fe=p.useCallback(({betslipEvents:X,bookedBet:{bets:H,id:F}},re=!1)=>{re&&k();const[{bet_type:ce,system_min_count:pe}]=H,be=Ue=>cs(s.events).some(Ct=>Ct.id===Ue),Pe=X.filter(Ue=>!be(Ue.id)),{processedEvents:Ke}=RV(H,re?X:Pe,E);Ke.forEach(Ue=>{var Ct;(Ct=Ue.childrenEvents)!=null&&Ct.length?Ue.childrenEvents.forEach(Qe=>T(Qe)):T(Ue)});const Be=!re&&s.events.length===1&&!Pe.length;!s.metadata.fullCoverBetTypesEnabled&&N.sportsbook.availableBetTypes.find(lt("value",ce))&&(Be||de(!re&&s.events.length?[me.Multiple]:[ce]),ce===me.System&&pe&&q(pe-2));for(const Ue of H)Ue.amount>0&&N.sportsbook.availableBetTypes.find(lt("value",Ue.bet_type))&&L({eventDataProp:"stake",betType:Ue.bet_type,...Ue.bet_type===me.System&&Ue.system_min_count?{value:We(Ue.amount/pp(Ue.selections.length,Ue.system_min_count)).toString(),index:Ue.system_min_count-2}:{value:Ue.amount.toString(),index:Ue.bet_type===me.Single?X.findIndex(lt("id",Ue.selections[0].selection_id)):0}});ct(F),V()},[E,s.events,s.metadata.fullCoverBetTypesEnabled,V,k,T,de,q,L]),le=X=>r(H=>({...H,metadata:{...H.metadata,inProgress:{...H.metadata.inProgress,...X}}})),{getBetByBookingId:Ie}=jz({stateEventsLength:s.events.length,setInProgressState:le,processBetslipEvents:fe}),Fe=X=>r(H=>({...H,metadata:{...H.metadata,betslipViewState:X}})),ct=X=>r(H=>({...H,metadata:{...H.metadata,betBookingId:X}})),Me=({index:X,value:H})=>r(F=>({...F,counterOffers:X===void 0?Array.from({length:F.counterOffers.length},()=>H):F.counterOffers.map((re,ce)=>ce===X?H:re)})),Oe=X=>{r(H=>({...H,metadata:{...H.metadata,quickBet:X}}))};p.useEffect(function(){b&&(v.current===null?v.current=m:m!==v.current&&(v.current=m,cs(s.events).forEach(({id:H})=>P(H)),cs(s.events).forEach(H=>C(H,!v.current))))},[m,b]),p.useEffect(function(){if(s.metadata.needCorrelation){const H=s.events.filter(Pt("correlationID"));if(H.every(lt("isPartial",!1))){const re=uL(H,"correlationID"),ce=Object.values(re).map(async pe=>{const be=[...pe];return{result:await kV(pe),existingEvents:be}});Promise.all(ce).then(pe=>{r(be=>pe.reduce((Pe,{result:Ke,existingEvents:Be})=>xV(Pe,Ke,Be),be))})}}},[s.events,s.metadata.needCorrelation]),p.useEffect(function(){b&&(async()=>{const F=cs(s.events),re=20,ce=500;for(let pe=0;pe{C(Pe,!v.current)}),pe+resetTimeout(Pe,ce))})()},[b,n]),p.useEffect(function(){_.current=cs(s.events).reduce((H,F)=>(H[F.id]={price:F.price,priceType:F.priceType,...F.parentId&&{parentId:F.parentId},gameId:F.gameId},H),{}),eT(t,_.current)},[t,s.events]),p.useEffect(function(){const H=s.selectedBetTypes[0];if(!!(S&&(s4.includes(H)||H===me.Single&&s.events.length===1))){r(function(Pe){return{...Pe,extraFunctions:{...Pe.extraFunctions,freebet:{...Pe.extraFunctions.freebet,loading:!0},profitBoost:{...Pe.extraFunctions.profitBoost,loading:!0}}}});const pe={Type:Object.values(_.current).every(({parentId:be})=>be)&&H===me.Single?me.InternalBetBuilder:H,IsLive:!!w,Events:Object.entries(_.current).map(([be,{priceType:Pe,price:Ke,gameId:Be,parentId:Ue}])=>({SelectionId:Number(be),Coeficient:ou(Ke,Pe),...Ue&&{BetBuilderMatchId:Be}}))};ee.get(pe,"get_freebets_for_betslip_v3").then(({result:be,details:Pe})=>{if(be===0)return Pe;throw new Error}).then(be=>{n.current&&r(Pe=>ig(Pe,be))}).catch(()=>{n.current&&r(be=>ig(be,[]))})}else r(re=>ig(re,[]))},[w,S,n,s.events.length,s.metadata.needCorrelation,s.selectedBetTypes]),p.useEffect(function(){r(H=>Du({...H,metadata:{...H.metadata,counterOfferMinAmount:i.counter_offer_min_amount}}))},[i.counter_offer_min_amount]),p.useEffect(function(){s.events.length,r(H=>nH(H,i.sport_bonus))},[i.sport_bonus,s.events.length]),p.useEffect(function(){s.events.length,r(H=>sH(H,i.sport_bonus))},[i.sport_bonus,s.events.length]),p.useEffect(function(){s.events.length,r(H=>rH(H,i.bonus_money))},[i.bonus_money,s.events.length]),p.useEffect(function(){if(!N.partner.integrationMode&&i.super_bet){const H=Math.max(...Object.keys(i.super_bet).map(Number)),{super_bet_price:F,super_bet_id:re,super_bet_amount:ce,super_bet_status:pe}=i.super_bet[H],be="Offer";switch(pe){case Ov.Success:ve.open({title:be,type:"success",content:u("Your offer ({message}) request is accepted",{message:H})});break;case Ov.Info:{ve.open(Pe=>({Component:()=>d.jsx(p.Suspense,{fallback:null,children:d.jsx(Bz,{latestSuperbetId:H,super_bet_amount:ce,currency_symbol:i.currency_symbol,super_bet_id:re,close:Pe,...F&&{super_bet_price:Ns(F,g)}})}),title:be,type:"info",hideCloseButton:!0,className:"superBetInfo"}));break}default:ve.open({title:be,type:"error",content:"Your Super bet was declined"})}}},[i.super_bet,u,i.currency_symbol,g]),p.useEffect(function(){const{metadata:H,eventsDataMap:F,extraFunctions:re,multipleOfTheDayIds:ce,...pe}=s;hV(t,{...pe,multipleOfTheDayIds:ce})},[t,s]),p.useEffect(function(){l||j(gt.getInstance().betslipDefaultContentType)},[l,j]),p.useEffect(function(){if(s.metadata.editBet.oldBetId){const H=s.metadata.editBet.oldBetId,F=ee.subscribe({source:"notifications",what:{user:[]}},({cashout:re={}})=>{var ce;if(((ce=re[H])==null?void 0:ce.amount)!==void 0){const pe=re[H].amount??0;r(be=>be.metadata.editBet.stake!==pe?lf({stake:pe})(be):be)}});return()=>ee.unsubscribe(F)}},[s.metadata.editBet.oldBetId]),p.useEffect(function(){if(b){const H=ze(),F=[kC,NC,RC],re=[...F,LC];if(F.every(ce=>H[ce])){const ce=Be=>{var Ue;return((Ue=H[Be])==null?void 0:Ue.split(",").map(Number).filter(Ct=>!isNaN(Ct)))||[]},pe=ce(kC),be=ce(NC),Pe=ce(RC),Ke=ce(LC);pe.length&&be.length&&Pe.length&&cb({events:pe,games:Pe,markets:be,...Ke.length>0&&{tag:Ke}}).then(Be=>{Be.length&&(k(),Be.forEach(Ue=>{const Ct=Be.some(Qe=>Qe!==Ue&&Qe.gameId===Ue.gameId);T(Ct?{...Ue,correlationID:Ue.gameId}:Ue)}),V())})}zt(...re)}},[T,V,b,k]),p.useEffect(function(){if(b){const H=new URLSearchParams(window.location.search),F=Number(H.get(MC));F&&(Ie(F),zt(MC))}},[Ie,b]),p.useEffect(function(){r(H=>mb(H))},[]),p.useEffect(()=>{const[,,X]=o.split("/");(!l&&!c||a!==Ge.SPORTSBOOK||X==="")&&N.sportsbook.betslip.quickBetAvailable&&r(H=>rT(H,!1))},[l,c,a,o]);const $e=p.useMemo(()=>{if(b)return new URLSearchParams(window.location.search).get(Hh)},[b])||"",{betHistory:De,loading:Ee,StateId:je}=kz({betId:$e,exportAsBetHistoryItem:!0});return p.useEffect(function(){if(je&&De&&!Ee){const{close:H}=ve.open({hideCloseButton:!0,type:"confirm",onClose:()=>zt(Hh),className:"bet-share-popup",Component:()=>d.jsx(p.Suspense,{fallback:null,children:d.jsx(Fz,{betHistory:De,close:H})})})}je===BN.NotFound&&ve.open({title:B2,type:"error",onClose:()=>zt(Hh),content:F2})},[je,De,$e,Ee,u]),p.useEffect(()=>Ae.getInstance(t).addEventListener("mounted",()=>eT(t,_.current)),[t]),p.useEffect(()=>Ae.getInstance(t).addEventListener("toggle",X=>{tc(s.metadata.inProgress)||R(X)}),[t,s.metadata.inProgress,R]),p.useEffect(()=>Ae.getInstance(t).addEventListener("toggleExpressBet",X=>{tc(s.metadata.inProgress)||U(X)}),[t,s.metadata.inProgress,U]),p.useEffect(()=>Ae.getInstance(t).addEventListener("clearExpressEvents",()=>{tc(s.metadata.inProgress)||G()}),[t,G,s.metadata.inProgress]),p.useEffect(()=>Ae.getInstance(t).addEventListener("remove",X=>{typeof X=="number"?A(X):M(X)}),[t,A,M]),p.useEffect(()=>Ae.getInstance(t).addEventListener("toggleBanker",J),[t,J]),p.useEffect(()=>Ae.getInstance(t).addEventListener("updateBookingId",({id:X})=>ct(X)),[t]),p.useEffect(()=>Ae.getInstance(t).addEventListener("updateEvent",z),[t,z]),p.useEffect(()=>Ae.getInstance(t).addEventListener("updateInitialPriceAndBase",K),[t,K]),p.useEffect(()=>Ae.getInstance(t).addEventListener("removeAll",k),[t,k]),p.useEffect(()=>Ae.getInstance(t).addEventListener("toggleExcluded",ne),[t,ne]),p.useEffect(()=>Ae.getInstance(t).addEventListener("toggleEachWay",$),[t,$]),p.useEffect(()=>Ae.getInstance(t).addEventListener("updateEventData",L),[t,L]),p.useEffect(()=>Ae.getInstance(t).addEventListener("setPriceChangeMode",W),[t,W]),p.useEffect(()=>Ae.getInstance(t).addEventListener("setSysOption",q),[t,q]),p.useEffect(()=>Ae.getInstance(t).addEventListener("setType",de),[t,de]),p.useEffect(()=>Ae.getInstance(t).addEventListener("setContentType",j),[t,j]),p.useEffect(()=>Ae.getInstance(t).addEventListener("updateExtraFunctionProp",ue),[t,ue]),p.useEffect(()=>Ae.getInstance(t).addEventListener("changeExtraFunctionActiveState",Y),[t,Y]),p.useEffect(()=>Ae.getInstance(t).addEventListener("addEventsFromBetHistory",ie),[ie,t]),p.useEffect(()=>Ae.getInstance().addEventListener("processBetBuilderEvent",({targetEvent:X,events:H})=>x(X,H)),[x]),p.useEffect(()=>Ae.getInstance().addEventListener("processRemoveBetBuilderEvent",({parentID:X,events:H})=>O(H,X)),[O]),p.useEffect(()=>Ae.getInstance(t).addEventListener("editBet",Z),[t,Z]),p.useEffect(()=>Ae.getInstance(t).addEventListener("clearEditBet",te),[t,te]),p.useEffect(()=>Ae.getInstance(t).addEventListener("setInProgressState",le),[t]),p.useEffect(()=>Ae.getInstance(t).addEventListener("setBetslipViewState",Fe),[t]),p.useEffect(()=>Ae.getInstance(t).addEventListener("getBetByBookingId",Ie),[t,Ie]),p.useEffect(()=>{const X=Ae.getInstance(t).addEventListener("openBetslip",V),H=He.addEventListener("openBetslip",V);return()=>{X(),H()}},[t,V]),p.useEffect(()=>{const X=Ae.getInstance(t).addEventListener("closeBetslip",ae),H=He.addEventListener("closeBetslip",ae);return()=>{X(),H()}},[t]),p.useEffect(()=>Ae.getInstance(t).addEventListener("updateCounterOffer",Me),[t]),p.useEffect(()=>Ae.getInstance(t).addEventListener("updateQuickBetState",Oe),[t]),d.jsx(UN.Provider,{value:s,children:e})},iw="MatchFinished";var $z=(e=>(e[e.NOT_AVAILABLE=-2]="NOT_AVAILABLE",e[e.LOADING=-1]="LOADING",e[e.UNSUBSCRIBED=0]="UNSUBSCRIBED",e[e.SUBSCRIBED=1]="SUBSCRIBED",e))($z||{});const si=new Xr,Gz=p.createContext({}),lw=({gameIds:e,loaded:t})=>{si.dispatchEvent("updated",{gameIds:e,loaded:t})},cw="granted",Vz=({children:e})=>{const[t,n]=p.useState({gameIds:{},loaded:!1}),{gameIds:s,loaded:r}=t,[a,o]=p.useState(!1),[i,l]=p.useState("Notification"in window?Notification.permission:null),{isLoggedIn:c,loginInProgress:u}=ye();p.useEffect(()=>{navigator.permissions&&navigator.permissions.query({name:"notifications"}).then(function(h){h.onchange=function(){gt.getInstance().gameNotificationsAvailable=!0,si.dispatchEvent("updatedPermission",this.state)}}),si.addEventListener("updatedPermission",h=>{l(h),h===cw&&o(!0)})},[]);const f=p.useCallback(()=>{gt.getInstance().gameNotificationsAvailable&&o(!0)},[]),m=p.useCallback(({gameId:h,start_ts:g,statusToSet:E})=>{const b=E;n(v=>({...v,gameIds:{...v.gameIds,[h]:-1}})),ee.get({game_list:[{id:h,game_start_ts:g}],events:[{event_name:iw,is_subscribed:!!E}]},"set_games_notifications").then(v=>{if(v.result===0)n(_=>({..._,gameIds:{..._.gameIds,[h]:E}}));else throw new Error}).catch(()=>{n(v=>({...v,gameIds:{...v.gameIds,[h]:b}}))})},[]);return p.useEffect(()=>si.addEventListener("subscribe",h=>{if(c)m(h);else{et.dispatchEvent("addComponentPopup",{component:"AuthPopup",props:{popupContentType:st.Login,onSuccess:()=>{if(r)m(h);else{const g=si.addEventListener("updated",({loaded:E,gameIds:b})=>{E&&b[h.gameId]!==1&&m(h),g()})}}}});return}}),[c,r,m]),p.useEffect(()=>si.addEventListener("mounted",()=>lw({gameIds:s,loaded:r})),[s,r]),p.useEffect(()=>lw({gameIds:s,loaded:r}),[s,r]),p.useEffect(()=>{a&&i===cw&&(c?ee.get({},"get_user_all_game_notifications").then(h=>{const g={};if(h.details)for(const E of Object.keys(h.details))for(const{event_name:b,is_subscribed:v}of h.details[E].events)b===iw&&v&&(g[E]=1);n({gameIds:g,loaded:!0})}).catch(()=>{n({gameIds:{},loaded:!0})}):n(u?{gameIds:{},loaded:!1}:{gameIds:{},loaded:!1}))},[a,c,u,i]),d.jsx(Gz.Provider,{value:{init:f},children:e})};var Hz=(e=>(e[e.Stake=0]="Stake",e[e.Profit=1]="Profit",e[e.Return=2]="Return",e))(Hz||{});class Wz{constructor(t=[],n,s=!1,r){se(this,"rules",[]);se(this,"excludeBoostedEvents",!1);se(this,"active",!1);se(this,"rulesInfo",[]);this.excludeBoostedEvents=s;const a=t.filter(({ExcludedSportsbookProfiles:o})=>!o||!r?!0:!o.split(",").includes(String(r)));if(a.length>0&&a.every(o=>o.BetType===2)){this.active=!0;const o=a.map(({MinimumSelections:i,MaximumSelections:l,MinOdds:c,MinBetOdds:u,IgnoreLowOddSelection:f,Basis:m,AmountPercent:h,FreeBetId:g,MinBetStakes:{MinStakes:E=[]},SportBonusRules:b},v)=>{const _=b&&b.length>0,y=_?new Set(b.filter(({IsExcluded:w})=>!w).map(Pt("SportAlias"))):new Set,S=_?new Set(b.filter(Pt("IsExcluded")).map(Pt("SportAlias"))):new Set;return{minimumSelections:i,maximumSelections:l??(v===t.length-1?1/0:t[v+1].MinimumSelections),minOdds:c??-1/0,minExpressOdds:u,ignoreLowOdds:!!f,basis:m,percentage:h,freeBetId:g,minStakes:E.reduce((w,{Currency:x,Amount:I})=>(w[x]=I||n,w),{}),hasSpecificSportsForBonuses:!!_,excludedSports:S,includedSports:y}});this.rules=[...o].reverse(),this.rulesInfo=o.map(dL(["minimumSelections","maximumSelections","minOdds","minStakes","percentage","freeBetId","excludedSports","includedSports","hasSpecificSportsForBonuses"]))}}validateSports(t=new Set,n=new Set,s){return t.size>0?s.every(r=>t.has(r)&&!n.has(r)):!s.some(r=>n.has(r))}calculate({eventsPriceWithSportAlias:t,stake:n,currency:s,getPosWinData:r}){const a=this.rules.map(o=>{const i=t.filter(({price:u,isBoosted:f})=>u>=o.minOdds&&(this.excludeBoostedEvents?!f:!0)),l=i.map(Pt("price")),c=[...new Set(i.map(Pt("sportAlias")))];return{...o,validSelections:i,validSelectionsPrices:l,validSelectionsSportAliases:c}}).find(({minimumSelections:o,maximumSelections:i,freeBetId:l,validSelections:{length:c},hasSpecificSportsForBonuses:u,validSelectionsSportAliases:f,excludedSports:m,includedSports:h})=>!l&&c>=o&&c<=i&&(!u||this.validateSports(h,m,f)));if(a){const{length:o}=t,{minStakes:i,ignoreLowOdds:l,minExpressOdds:c,percentage:u,basis:f,validSelections:m,validSelectionsPrices:h}=a;if((l||m.length===o)&&(i[s]==null||n>=i[s])){const{possibleWin:g,oddsAccumulator:E}=r(h,n);if(!c||E>c){const b=u===-1?o:u;let v=0;switch(f){case 1:v=g-n;break;case 2:v=g;break;case 0:v=n;break}return{bonusAmount:v*b/100,bonusPercentage:b}}}}return{bonusAmount:0,bonusPercentage:0}}}var Si=(e=>(e[e.None=0]="None",e[e.Profit=1]="Profit",e[e.Return=2]="Return",e[e.OddRange=3]="OddRange",e[e.Stake=4]="Stake",e[e.FakeReturn=20]="FakeReturn",e[e.FakeProfit=21]="FakeProfit",e))(Si||{});const zz=[1,2,4,20,21],Yz=[0,1];class qz{constructor({taxType:t,taxPercent:n=0,taxAmountRanges:s,taxIntegrationType:r,taxSportsAlias:a}){se(this,"valid",!1);se(this,"type",0);se(this,"percent",0);se(this,"ranges",{});se(this,"taxableSports");se(this,"_onStake",!1);se(this,"_onProfit",!1);se(this,"_onReturn",!1);se(this,"_isFake",!1);if(Yz.includes(r)&&zz.includes(t)){if(this.valid=!0,this.percent=n,this.type=t,a!=null&&a.length&&(this.taxableSports=new Set(a)),s){const o=$r(s,"from");for(const i of o){const{type:l}=i;this.ranges[l]||(this.ranges[l]=[]),this.ranges[l].push(i)}}this._onStake=this.type===4||4 in this.ranges,this._onProfit=this.type===1||1 in this.ranges||this.type===21,this._onReturn=this.type===2||2 in this.ranges||this.type===20,this._isFake=this.type===21||this.type===20}}get onStake(){return this._onStake}get onProfit(){return this._onProfit}get onReturn(){return this._onReturn}get isFake(){return this._isFake}canBeTaxed(t){return!this.taxableSports||this.taxableSports.has(t)}calculate(t,n){if(!this.valid||t===0)return 0;let s=0;const r=this.ranges[n];if(r&&r.some(({entire_amount:o,from:i,to:l})=>t>=i&&t<=l)){const o=r[0].from;let i=Math.max(0,t-o),l=o;for(const{to:c,percent:u}of r){const f=c-l;if(i>f)s+=f*u/100,i-=f;else{s+=i*u/100,i=0;break}l=c}}else this.type===n&&(s=t*this.percent/100);return We(s)}}const $N=p.createContext({}),Nd=e=>Object.values(e).filter(t=>t===Hr.DraggableCollapsed||t===Hr.Draggable).length,Kz=({children:e})=>{const{tax_type:t,tax_percent:n,tax_amount_ranges:s,tax_integration_type:r,tax_sport_aliases:a,min_bet_stakes:o,exclude_boosted_selections_from_bonuses:i}=Fs(),{currency:l}=or(),{name:c}=l,{language:u}=ke(),f=p.useRef(u),{profile:{sportsbook_profile_id:m}}=ye(),[h,g]=p.useState(()=>({taxes:null,sportsBonus:null,marketTypes:{}})),[E,b]=p.useState([]),v=Se(),[_,y]=p.useState({}),[S,w]=p.useState({}),[x,I]=p.useState({sportAliases:[],gameIds:[]}),C=cO(S,300),[T,P]=p.useState({}),[A,O]=p.useState(!1),M=p.useCallback(()=>O(!0),[]),{gameDetailsMarketFilter:k,subscribeToGamesMarketsCount:D,liveStreaming:j}=N.sportsbook,[V,R]=p.useState({regular:{},exclusive:{}}),[U,G]=p.useState({value:"",label:""}),[z,K]=p.useState({value:"",label:""}),ne=p.useCallback(({gameId:Y,mode:ae})=>{R(ie=>{const Z={...ie.regular,[Y]:ae};return Nd(Z)+Nd(ie.exclusive)>j.additionalOptions.maxDraggableCount?(Ce.error(v("Maximum draggable streams count is {1}",{1:`${j.additionalOptions.maxDraggableCount}`})),ie):{...ie,regular:Z}})},[j.additionalOptions.maxDraggableCount,v]),J=p.useCallback(({gameId:Y,mode:ae})=>{R(ie=>{const Z={...ie.exclusive};return ae!==Hr.Draggable&&ae!==Hr.DraggableCollapsed?(delete Z[Y],{...ie,exclusive:Z}):(Z[Y]=ae,Nd(ie.regular)+Nd(Z)>j.additionalOptions.maxDraggableCount?(Ce.error(v("Maximum draggable streams count is {1}",{1:`${j.additionalOptions.maxDraggableCount}`})),ie):{...ie,exclusive:Z})})},[j.additionalOptions.maxDraggableCount,v]),$=p.useCallback(Y=>J({gameId:Y,mode:Hr.Draggable}),[J]),L=p.useCallback(Y=>R(ae=>{if(!(Y in ae.exclusive))return ae;const ie={...ae.exclusive};return delete ie[Y],{...ae,exclusive:ie}}),[]),W=p.useCallback(Y=>G(Y),[]),q=p.useCallback(Y=>K(Y),[]);p.useEffect(function(){A&&ee.get({},"get_sport_bonus_rules").then(({result:ae,details:ie})=>{ae===0&&b(ie)})},[A]),p.useEffect(()=>{function Y(){A&&g(ae=>({...ae,sportsBonus:new Wz(E,(o==null?void 0:o[c])??0,i,m)}))}Y()},[A,c,o,E,m,i]),p.useEffect(()=>{A&&g(Y=>({...Y,taxes:t!==void 0?new qz({taxType:t,taxPercent:n,taxAmountRanges:s,taxIntegrationType:r,taxSportsAlias:a}):null}))},[A,a,s,r,n,t]);const de=p.useCallback(Y=>{Y&&!h.marketTypes[Y]&&ee.get({sport_alias:Y},"get_market_type").then(({result:ae,details:ie})=>{if(ae===0)return ie;throw new Error}).then(yo("Order")).then(ae=>fL(ae,"BasaltKind")).then(tx(({MarketTypeName:ae,...ie})=>({...ie,MarketTypeName:ae.replace(n5,"")}))).then(ae=>{g(ie=>({...ie,marketTypes:{...ie.marketTypes,[Y]:ae}}))}).catch(()=>{g(ae=>({...ae,marketTypes:{...ae.marketTypes,[Y]:[]}}))})},[h.marketTypes]);p.useEffect(()=>{const Y=new Set,ae=new Set;Object.values(C).forEach(ie=>{ie&&(Y.add(ie.gameId),ae.add(ie.sportAlias))}),I({gameIds:Array.from(Y),sportAliases:Array.from(ae)})},[C]),p.useEffect(()=>{if(D&&A&&x.gameIds.length&&x.sportAliases.length){const Y={source:"betting",what:{game:["id"],market:"@count"},where:{...k?{market:JSON.parse(k)}:{},game:{id:{"@in":x.gameIds},sport_alias:{"@in":x.sportAliases}}}},ae=ee.subscribe(Y,({game:ie})=>{y(Object.values(ie).reduce((Z,te)=>(Z[te.id]=te.market,Z),{}))},()=>y({}));return()=>{ae&&ee.unsubscribe(ae)}}},[k,A,D,x]),p.useEffect(()=>{const{enableCompetitionNamesInitLoad:Y,enabled:ae}=N.sportsbook;if(ae&&Y){const ie={source:"betting",what:{competition:["name"]}},Z=ee.subscribe(ie,({competition:te})=>{P(Object.entries(te).reduce((fe,[le,{name:Ie}])=>(fe[le]=Ie,fe),{}))},()=>P({}));return()=>{Z&&ee.unsubscribe(Z)}}},[]),p.useEffect(()=>{He.addEventListener("subscribeToMarketsCount",({sid:Y,...ae})=>{w(ie=>({...ie,[Y]:ae}))}),He.addEventListener("unsubscribeToMarketsCount",Y=>{w(ae=>{const{[Y]:ie,...Z}=ae;return Z})})},[]);const ue=p.useCallback(Y=>T[Y]??"cid",[T]);return p.useEffect(function(){u!==f.current&&(f.current=u,g(ae=>({...ae,marketTypes:{}})))},[u]),d.jsx($N.Provider,{value:{...h,init:M,fetchMarketTypes:de,marketsCount:_,getCompetitionName:ue,streaming:{setMode:ne,mode:V.regular,exclusiveMode:V.exclusive,setExclusiveMode:J,openExclusiveStream:$,closeExclusiveStream:L},lolData:{changeLolCurrentMap:W,lolCurrentMap:U},dotaData:{changeDotaCurrentMap:q,dotaCurrentMap:z}},children:e})},Bl="/assets/bonus_opened.png";var GN=(e=>(e[e.Sport=1]="Sport",e[e.Wagering=2]="Wagering",e[e.NoDeposit=3]="NoDeposit",e[e.Cash=4]="Cash",e[e.FreeSpin=5]="FreeSpin",e[e.FreeBet=6]="FreeBet",e))(GN||{}),Ci=(e=>(e[e.Available=0]="Available",e[e.Accepted=1]="Accepted",e[e.Activated=2]="Activated",e[e.Rejected=3]="Rejected",e[e.Expired=4]="Expired",e))(Ci||{}),Ws=(e=>(e[e.NotAvailable=-1]="NotAvailable",e[e.None=0]="None",e[e.Paid=1]="Paid",e[e.Lost=2]="Lost",e[e.Canceled=3]="Canceled",e[e.Expired=4]="Expired",e[e.Completed=5]="Completed",e[e.Converted=6]="Converted",e[e.Collectable=7]="Collectable",e[e.Collected=8]="Collected",e))(Ws||{});const tfe={0:Ot.GREEN,1:Ot.GREEN,2:Ot.GREEN,3:Ot.RED,4:Ot.RED},nfe={0:Bl,1:Bl,2:Bl,3:Bl,4:Bl};var Qz=(e=>(e[e.None=0]="None",e[e.Paid=1]="Paid",e[e.Lost=2]="Lost",e[e.Canceled=3]="Canceled",e[e.Expired=4]="Expired",e[e.Collectable=7]="Collectable",e[e.Collected=8]="Collected",e))(Qz||{}),Xz=(e=>(e[e.Sportsbook=1]="Sportsbook",e[e.Casino=2]="Casino",e[e.BonusRequest=3]="BonusRequest",e))(Xz||{}),oa=(e=>(e.SetSectionCount="set_section_counts",e.UpdatePageCount="update_page_count",e.IncrementPageCount="increment_page_count",e.DecrementPageCount="decrement_page_count",e.ClearAllCount="clear_all_counts",e))(oa||{});const Jz=e=>{const t=Te.getItem(bc);Te.setItem(bc,{unreadCount:e==="increment_page_count"?((t==null?void 0:t.unreadCount)||0)+1:((t==null?void 0:t.unreadCount)||1)-1})},lE=(e,t)=>{var n,s;switch(t.type){case"set_section_counts":{const{section:r,data:a}=t.payload;return{...e,[r]:a}}case"update_page_count":{const{section:r,page:a,count:o,notUpdateTotal:i}=t.payload,l=e[r];if(l){const c={...l.pages,[a]:o};return{...e,[r]:{pages:c,...!i&&{count:Object.values(c).reduce(Im,0)}}}}return{...e,[r]:{count:o,pages:{[a]:o}}}}case"increment_page_count":{const{section:r,page:a}=t.payload;return lE(e,{type:"update_page_count",payload:{section:r,page:a,count:(((n=e[r])==null?void 0:n.pages[a])||0)+1}})}case"decrement_page_count":{const{section:r,page:a}=t.payload;return lE(e,{type:"update_page_count",payload:{section:r,page:a,count:(((s=e[r])==null?void 0:s.pages[a])||1)-1}})}case"clear_all_counts":return{};default:return e}},Zz=({body:e,onClose:t})=>{const n=dn();return d.jsxs(d.Fragment,{children:[d.jsx("div",{className:"new-item-notification-popup-content",children:d.jsx("div",{className:"new-item-notification-popup-message",dangerouslySetInnerHTML:{__html:e}})}),d.jsx($t,{className:"btn a-color",title:"Go To Message",onClick:()=>{n.push({search:bt({section:"messages",page:"inbox"})}),t()}})]})},cE=(e,t)=>ee.get({free_bonuses:e==="sport"},"get_bonus_details").then(({bonuses:n})=>{if(t){const s=n.find(({bonus_type:r,acceptance_type:a})=>r===GN.Wagering&&a===Ci.Activated);if(s)return ee.get({},"get_casino_bonuse_details").then(({amount_to_wager:r,wagered_amount:a})=>{const o={wageredAmount:a,remainingAmount:Math.max(r-a,0),moreThanTargetWagerAmount:Math.max(a-r,0),wageredAmountPercentage:Math.min(a/r*100,100),targetWagerReached:a>=r};return r?n.map(i=>i.id!==s.id?i:{...i,details:o}):n})}return n}),sfe=({product:e,getBonusDetails:t=!0,availableBonuses:n})=>{const s=xt(),[r,a]=p.useState({isLoading:!0,bonuses:[],product:e}),o=p.useCallback(()=>{gt.getInstance().availableBonuses[e]&&(a({isLoading:!0,product:e,bonuses:[]}),cE(e,t).then(h=>{s.current&&a(g=>g.product===e?{isLoading:!1,product:e,bonuses:n&&n.length?h.filter(({partner_bonus_id:E,id:b})=>n.some(({Id:v,PartnerBonusId:_})=>v===b&&E===_)):h}:g)}).catch(()=>{s.current&&a(h=>h.product===e?{isLoading:!1,bonuses:[],product:e}:h)}))},[n,t,s,e]);p.useEffect(()=>(o(),()=>{}),[o]);const i=p.useCallback(({id:h,partner_bonus_id:g})=>ee.get({bonus_id:g,client_bonus_id:h},"claim_bonus"),[]),l=p.useCallback(({partner_bonus_id:h,id:g})=>ee.get({bonus_id:h,client_bonus_id:g},"cancel_bonus"),[]),c=p.useCallback(({id:h})=>ee.get({client_bonus_id:h},"collect_bonus"),[]),u=p.useCallback(({id:h})=>ee.get({client_bonus_id:h},"convert_free_bet_to_money"),[]),f=p.useCallback(({id:h})=>ee.get({bonus_player_external_id:h},"paid_bonus"),[]),m=p.useCallback(({id:h})=>{a(g=>({...g,bonuses:g.bonuses.filter(E=>E.id!==h)}))},[]);return{...r,isLoading:r.product!==e||r.isLoading,claimBonus:i,cancelBonus:l,collectBonus:c,convertFreeBetBonus:u,confirmBonus:f,removeBonus:m,updateData:o}},rfe={0:"DecimalPrice",1:"FractionalPrice",2:"AmericanPrice",3:"HongKongPrice",4:"MalayPrice",5:"IndoPrice"},afe={0:"decimal_price",1:"fractional_price",2:"american_price",3:"hong_kong_price",4:"malay_price",5:"indo_price"},Rg={eng:"en-GB",spa:"es-ES",fra:"fr-FR",por:"pt-PT","pt-br":"pt-BR",arm:"hy-AM",ger:"de-DE",ita:"it-IT",tur:"tr-TR",fas:"fa-IR",arb:"ar-001",rus:"ru-RU",kor:"ko-KR",rum:"ro-RO",geo:"ka-GE",ukr:"uk-UA",hin:"hi-IN",bgr:"bg-BG",dut:"nl-NL",est:"et-EE",lav:"lv-LV",rov:"ro-RO",dan:"da-DK",gre:"el-GR"};var eY=(e=>(e.BETS="bets",e.OPEN_BETS="open-bets",e.WON="won",e.LOST="lost",e.RETURNED="returned",e.WON_RETURN="won-return",e.LOST_RETURN="lost-return",e.BET_BUILDER="bet-builder",e))(eY||{});const VN=[Pa.Won,Pa.WonReturn,Pa.Unsettled],uw=e=>e.map(t=>({coefficient:t.coeficient,eventId:t.selection_id,gameId:t.game_id,isLive:t.is_live,isCalculated:t.is_calculated,is_banker:t.is_banker,settlement_postponed_until:t.settlement_postponed_until,outcome:t.outcome,outcomeName:t.outcome_name,sportId:t.sport_id,regionName:t.region_name,competitionName:t.competition_name,sportIndex:t.sport_index,startDate:t.game_start_date,team1Name:t.team1,team2Name:t.team2,order:t.order,textInfo:"",marketName:al(t.market_name,t.team1,t.team2),eventName:al(t.event_name,t.team1,t.team2),extraInfo:t.extra_info?JSON.parse(t.extra_info):null,base:t.basis,match_info:t.match_info,home_score:t.home_score,away_score:t.away_score,info:t.info,bet_builder_match_id:t.bet_builder_match_id,bet_builder_price:t.bet_builder_price})),dw=e=>{var t,n,s,r;return{id:e.id,type:e.type,systemCount:e.system_min_count,dateTime:e.date_time,each_way:e.each_way,cashOut:e.cash_out,is_custom_cashout_allowed:e.is_custom_cashout_allowed,autoCashoutAmount:e.auto_cash_out_amount,payout:Yt(e.payout),possibleWin:e.possible_win,is_bet_builder:e.is_bet_builder,...e.tax_amount>0?{netWinDisplay:e.possible_win>0&&VN.includes(e.outcome)?Yt(We(e.possible_win-e.tax_amount)):null,taxAmountDisplay:Yt(e.tax_amount)}:{netWinDisplay:null,taxAmountDisplay:null},possibleWinDisplay:e.possible_win>0?Yt(e.possible_win):hx,remainingStake:e.remaining_stake,outcome:e.type===me.Single&&((t=e.events[0])==null?void 0:t.outcome)in CC?CC[(n=e.events[0])==null?void 0:n.outcome]:e.outcome,odd:e.k,oddType:e.odd_type,oddTypeName:gb(e.odd_type),bonusBetAmount:e.bonus_bet_amount,amount:e.amount,totalAmount:e.bonus_bet_amount?Yt(e.bonus_bet_amount):e.amount?Yt(e.amount):"",currency:e.currency,totalPartialCashoutAmount:e.total_partial_cashout_amount??0,isGifted:!!e.is_gift,isBonusMoney:e.is_bonus_money,isSuperBet:e.is_super_bet,isFreeBetAvailable:(s=e==null?void 0:e.adm_info_model)==null?void 0:s.is_freebet_awarded,isFreeBetMoney:e==null?void 0:e.is_free_bet_money,bonus:e.bonus,...e.has_recalculation_reason&&{has_recalculation_reason:e.has_recalculation_reason},clientBonusId:e.client_bonus_id,...p4.includes(e.type)?{events:yo("order",uw(e.events)),showOrder:!0}:{events:uw(e.events),showOrder:!1},...e.cashouts_history&&{cashoutHistory:e.cashouts_history},...e.gift_receiver_email&&{giftReceiver:e.gift_receiver_email},...e.bonus>0&&{bonusDisplay:Yt(e.bonus)},...(e.profit||e.profit===0)&&{profit:String(e.profit)},isExpressOfTheDay:!!((r=e.adm_info_model)!=null&&r.predmltbi),betDetails:e.bet_details,borrowState:e.borrow_state??vb.Unavailable}},tY=e=>t=>{var n;return{id:t.id,type:t.type,systemCount:t.system_min_count,dateTime:t.date_time,cashOut:t.cash_out,autoCashoutAmount:t.auto_cash_out_amount,payout:Yt(t.payout),possibleWin:t.possible_win,...t.tax_amount>0?{netWinDisplay:t.possible_win>0&&VN.includes(t.outcome)?Yt(We(t.possible_win-t.tax_amount)):null,taxAmountDisplay:Yt(t.tax_amount)}:{netWinDisplay:null,taxAmountDisplay:null},possibleWinDisplay:t.possible_win>0?Yt(t.possible_win):hx,remainingStake:t.remaining_stake,outcome:t.outcome,odd:t.k,oddType:t.odd_type,oddTypeName:gb(t.odd_type),bonusBetAmount:t.bonus_bet_amount,amount:t.amount,totalAmount:t.bonus_bet_amount?Yt(t.bonus_bet_amount):t.amount?Yt(t.amount):"",currency:t.currency,totalPartialCashoutAmount:t.total_partial_cashout_amount??0,isGifted:!!t.is_gift,isBonusMoney:t.is_bonus_money,isSuperBet:t.is_super_bet,bonus:t.bonus,clientBonusId:t.client_bonus_id,...t.gift_receiver_email&&{giftReceiver:t.gift_receiver_email},...t.bonus>0&&{bonusDisplay:Yt(t.bonus)},isExpressOfTheDay:!!((n=t.adm_info_model)!=null&&n.predmltbi),bet_details:t.bet_details,currentLanguageDescriptions:nY(t.bet_details.translations,e),borrowState:t.borrow_state??vb.Unavailable}},nY=(e,t)=>{var n;return(n=e.find(s=>Rg[t]?s.culture===Rg[t]:s.culture===Rg.eng))==null?void 0:n.description},sY=e=>{const t=new Set;return e.reduce((n,s)=>s.bet_builder_match_id?t.has(s.bet_builder_match_id)?n:(t.add(s.bet_builder_match_id),n+1):n+1,0)},ofe=(e,t)=>e?t.is_bet_builder?sY(t.events):t.type===me.BetBuilder&&t.betDetails?t.betDetails.description.length||1:t.events.length||1:1,rY=(e,t=[])=>{const{currency:{rounding:n}}=or(),s=p.useCallback(h=>el(h,n),[n]),{isLoggedIn:r}=ye(),a=xt(),[o,i]=p.useState({}),[l,c]=p.useState({});p.useEffect(function(){i({})},[e]);const u=t.join(",");p.useEffect(function(){if(u){const g=u.split(",").map(Number);ee.get({bet_ids:g},"calculate_custom_cashout_amount").then(E=>{if(a.current&&(E!=null&&E.details)){const b=E.details.reduce((v,_)=>(v[_.Id]={amount:_.CashoutAmount},v),{});c(b)}}).catch(()=>{a.current&&c({})})}else c({})},[u,a]),p.useEffect(function(){if(r){const g=ee.subscribe({source:"notifications",what:{user:[]}},({cashout:E})=>{E&&i(E)});return()=>ee.unsubscribe(g)}},[r]);const f=p.useMemo(()=>{const h=Object.values(o).length>0,g=Object.values(l).length>0;if(!h&&!g)return{};const E={...l,...o};return Array.from(new Set([...e,...t])).reduce((v,_)=>{if(E[_]){const{amount:y}=E[_];y?v[_]=s(y):v[_]=null}return v},{})},[e,t,s,o,l]),m=p.useCallback((h,g)=>{i(E=>({...E,[h]:{amount:g}}))},[]);return{cashoutValues:f,forcefullyUpdateCashoutValue:m}},aY={loading:!0,bets:[],betBuilderBets:[]},fw=e=>{const{betBuilder:t}=N.sportsbook,n={},{fromDate:s,toDate:r,betId:a,betType:o,outcome:i,sportIds:l}=e;return s&&r&&Object.assign(n,{from_date:s,to_date:r,...t.enabled&&!o?{all_bet_types:!0}:{}}),i!==void 0&&Object.assign(n,{outcome:i}),o&&Object.assign(n,{bet_type:o}),a&&Object.assign(n,{bet_id:a}),l!=null&&l.length&&Object.assign(n,{sport_ids:l}),Object.keys(n).length?{where:n}:null},oY=()=>{const e=xt(),{language:t}=ke(),[n,s]=p.useState(aY),r=m=>m.map(h=>h.outcome===1&&Number(h.payout)>0?{...h,outcome:12}:h),a=p.useCallback(m=>{const h=fw(m);h!==null&&(s(g=>({...g,loading:!0})),ee.get(h,"bet_history").then(X3([],"bets")).then(g=>{if(e.current){const E=g.filter(v=>!v.parent_bet_id&&v.type!==me.BetBuilder).map(v=>dw(v)),b=g.filter(v=>!v.parent_bet_id&&v.type===me.BetBuilder).map(v=>tY(t)(v));s({loading:!1,bets:r(E),betBuilderBets:b||[]})}}).catch(()=>{e.current&&(ve.open({type:"error",title:"Error",content:Qn}),s({bets:[],loading:!1,betBuilderBets:[]}))}))},[e,t]),o=p.useCallback(m=>{setTimeout(()=>{const h=fw({betId:m});h!==null&&ee.get(h,"bet_history").then(({bets:g})=>{if(e.current&&g.length){const[E]=g;s(b=>({...b,bets:r(b.bets.map(v=>v.id===E.id?dw(E):v))}))}})},950)},[e]),i=p.useMemo(()=>n.bets.filter(m=>m.cashOut).map(m=>m.id),[n.bets]),l=p.useMemo(()=>n.bets.filter(m=>m.is_custom_cashout_allowed).map(m=>m.id),[n.bets]),{cashoutValues:c}=rY(i,l),u=n.bets.map(m=>m.id in c?{...m,cashOut:c[m.id]}:m),f=p.useMemo(()=>pL(n.bets,"outcome"),[n.bets]);return{loading:n.loading,bets:u,getHistoryBets:a,betBuilderBets:n.betBuilderBets,updateBetById:o,outcomeCountMap:f}},pw=({acceptance_type:e,max_rows:t=30,requestFreeSpin:n=!0})=>{const s=n?"get_free_spin_bonuses":"get_free_chip_bonuses";return ee.get({acceptance_type:e,max_rows:t},s).then(({result:r,details:a})=>{if(r===0)return a;throw new Error}).catch(()=>[])};function iY(e){if(e.casino)return"casino";if(e["casino-free-spins"])return"casino-free-spins";if(e.sport)return"sport"}const HN=p.createContext({}),lY=({children:e})=>{const t=xt(),{is_freespin_claimable:n,partner_id:s}=Fs(),r=s!==void 0,{isLoggedIn:a,profile:o,isRestoredLogin:i}=ye(),l=dn(),c=Se(),[u,f]=p.useReducer(lE,{}),m=p.useRef(new Set),h=p.useRef(o.deposit_count),g=nu(()=>N.accountNavigation.messages.pages.includes("inbox")),E=nu(()=>N.accountNavigation.bonuses.pages.includes("casino-free-chip")),b=a&&g,{bets:v,getHistoryBets:_,outcomeCountMap:y}=oY(),{search:S}=xn(),[w,x]=p.useState(!1),I=p.useCallback(()=>{Ce.success(d.jsxs("p",{className:"new-message-toast-notification-content",children:[d.jsx("span",{children:c("You have a new message")}),d.jsx("span",{children:c("open")})]}),{onClick:()=>l.push({search:bt({section:"messages",page:"inbox"})}),position:Q.isMobile?"bottom-center":"top-center",className:"new-message-toast-notification",icon:d.jsx("i",{className:"bc-i-message"})})},[l,c]);return p.useEffect(()=>{const C=ze(S)[nl]===sl;!w&&C&&x(C)},[w,S,x]),p.useEffect(function(){if(r&&a||h.current!==o.deposit_count){let T=function(M){return k=>{const D=k.filter(j=>M==="casino-free-spins"||M==="casino-free-chip"?j.AcceptanceType===Ci.Available:j.acceptance_type===Ci.Available&&j.can_accept).length;return[M,k.length,D]}};const{sport:P,casino:A}=gt.getInstance().availableBonuses,O=[];P&&O.push(cE(Ge.SPORTSBOOK,!1).then(T("sport"))),A&&(O.push(cE(Ge.CASINO,!1).then(T("casino"))),n&&O.push(pw({acceptance_type:Ci.Available}).then(T("casino-free-spins"))),E&&O.push(pw({acceptance_type:Ci.Available,requestFreeSpin:!1}).then(T("casino-free-chip")))),O.length&&Promise.allSettled(O).then(M=>{if(t.current){const k={count:0,pages:{}},D={};for(const j of M)if(j.status==="fulfilled"){const[V,R,U]=j.value;k.count+=R,k.pages[V]=R,D[V]=U}if(f({type:oa.SetSectionCount,payload:{section:"bonuses",data:k}}),!i&&N.app.redirectToBonuses.enabled){const j=iY(D),V=`b_p_m_d_${o.id}`,R=(U,G)=>{G&&Te.setItem(V,j,N.app.redirectToBonuses.repeatTime),l.push({search:bt({section:"bonuses",page:U})})};j&&(N.app.redirectToBonuses.repeatTime>0?Te.getItem(V)!==j&&R(j,!0):R(j,!1))}}})}},[E,l,a,t,i,n,r,o.deposit_count,o.id]),p.useEffect(function(){b&&Te.setItem(bc,{unreadCount:o.unread_count??0})},[b,o.unread_count,o.id]),p.useEffect(function(){if(b){const T=Te.getItem(bc),P=o.unread_count??(T==null?void 0:T.unreadCount)??0;f({type:oa.UpdatePageCount,payload:{section:"messages",page:"inbox",count:P}})}},[o.id,o.unread_count,b]),p.useEffect(function(){if(b){const T=ee.subscribe({source:"messages",what:{messages:[]}},P=>{Object.keys(P.messages).forEach(O=>{O&&!m.current.has(O)&&(m.current.add(O),P.messages[O].type===1?(f({type:oa.IncrementPageCount,payload:{section:"messages",page:"inbox"}}),Jz(oa.IncrementPageCount)):P.messages[O].type===4?I():P.messages[O].type===3&&ee.get({where:{type:0,message_id:O}},"user_messages").then(({messages:M=[]})=>{t.current&&ve.open(k=>({type:"info",title:M[0].subject,className:"new-item-notification-popup",Component:()=>d.jsx(Zz,{onClose:k,body:M[0].body})}))}))})});return()=>{ee.unsubscribe(T)}}},[b,t,I]),p.useEffect(()=>{if(o.bet_settlement,a&&N.accountNavigation.history.pages.length&&w){const C=Jc();_({fromDate:C-24*3600,toDate:Jc()})}},[_,a,o.bet_settlement,o.currency,w]),p.useEffect(()=>{f({type:oa.UpdatePageCount,payload:{section:"history",page:"bets",count:v.length,notUpdateTotal:!0}}),Object.entries(y).forEach(([C,T])=>{T&&f({type:oa.UpdatePageCount,payload:{section:"history",page:d4[C],count:T,notUpdateTotal:!0}})})},[v.length,y]),p.useEffect(function(){if(a)return()=>{f({type:oa.ClearAllCount}),Te.removeItem(bc)}},[a]),d.jsx(HN.Provider,{value:{state:u,dispatch:f},children:e})},fa=(e,t)=>{const{currencySymbolBeforeAmount:n}=N.app;return n?`${e} ${t}`:`${t} ${e}`},mw=e=>{const t=Date.now();return Object.keys(e).reduce((n,s)=>{const r=e[s],{createdDate:a,lifetime:o}=r;return o!==-1&&t-a>o||(n[s]=r),n},{})},On=({type:e,title:t,iconClass:n,lifetime:s=-1,persistent:r=!1,blocking:a=[],nonTranslatableValues:o})=>({type:e,title:t,createdDate:Date.now(),lifetime:s,persistent:r,blocking:a,nonTranslatableValues:o,iconClass:n}),Xo=({type:e,Component:t,iconClass:n,lifetime:s=-1,persistent:r=!1,blocking:a=[]})=>({type:e,createdDate:Date.now(),lifetime:s,persistent:r,blocking:a,Component:t,iconClass:n}),kr=(e,t,n,s,r=5e3)=>({type:e,title:t,eventId:n,nonTranslatableValues:s,lifetime:r}),hw=(e,t)=>Object.keys(e).reduce((n,s)=>(s!==t&&(n[s]=e[s]),n),{}),WN=()=>p.useContext(UO),zN=p.createContext({}),cY=p.createContext({}),uY={events:{},global:{}},dY=1e3,fY=({children:e})=>{const[t,n]=p.useState(uY),{profile:{sport_bonus:s,casino_balance:r,counter_offer_min_amount:a,calculatedBalance:o,frozen_balance:i,calculatedBonusMoney:l},isLoggedIn:c,loginInProgress:u}=ye(),{min_bet_stakes:f={},min_sub_bet_stakes:m={},max_selections_in_multiple_bet:h,odds_raised_percent:g,decimalRounding:E,exclude_boosted_selections_from_bonuses:b}=Fs(),{eventIds:v}=WN(),{currency:{name:_,symbol:y}}=or(),S=f[_]??0,w=m[_]??0,x=a??0,I=Object.values(t.global).concat(Object.values(t.events)).some(M=>M.lifetime>-1);Uk(function(){n(k=>{const{events:D,global:j}=k;return{...k,events:mw(D),global:mw(j)}})},I?dY:null);const C=p.useCallback(({events:M,eventsDataMap:k,selectedBetTypes:D,contentType:j,anyConflicts:V,fullCoverBetTypesEnabled:R,editBetOriginalStake:U,selectedSysOption:G,firstBonusRule:z,useOnlyRealBalance:K,useOnlyBonusBalance:ne,frenchFreebetEnabled:J,profitBoost:{active:$,selectedOption:L},freebet:{active:W,selectedOption:q},counterOffers:de,quickBetActive:ue,quickBetAmount:Y,quickBetSaved:ae,quickBetErrorMessage:ie})=>{const Z={},te=j===Re.Hybrid,fe=j===Re.Betting||te,{length:le}=M,Ie=b&&v?M.filter(Me=>{const Oe=v[Cr.LIVE].has(Me.id),$e=v[Cr.PREMATCH].has(Me.id);return!(v[Cr.BOTH].has(Me.id)||(Me.isLive===1?Oe:$e))}).length:le;if(!te&&fe&&!(u||c))Z[Tt.LOGGED_OUT]=Xo({type:tt.WARNING,Component:_w,blocking:[Re.Betting]});else{if(de.length&&M.length&&M.forEach((Me,Oe)=>{const $e=Number(de[Oe]),De=Me.initialPrice;if($e){const Ee=Number(gH({price:Me.price,odds_raised_percent:g,decimalRounding:E}));De&&$eEe&&(Z[Tt.MAX_COUNTER_EXCEEDED]=On({type:tt.WARNING,title:"Offered odd can not be greater than MAX",blocking:[Re.Betting]}))}}),V&&!(R||D.includes(me.Single))&&(Z[Tt.EVENTS_CONFLICT]=On({type:tt.ERROR,title:"Highlighted events cannot be combined",blocking:R?[]:[Re.Betting,Re.Booking]})),W){if(q!=null&&q.maxAmounts[_]){const{MaxAmount:Me,MaxPercent:Oe}=q.maxAmounts[_];(Me||Oe&&q.value)&&(Z[Tt.FREEBET]=On({type:tt.INFO,title:"For selected free bet max payout is {1}",nonTranslatableValues:{1:fa(y,Me??(Oe?q.value*Oe/100:0))}}))}}else if($){if(L!=null&&L.maxAmounts[_]){const{MaxBetAmount:Me}=L.maxAmounts[_];Z[Tt.FREEBET]=On({type:tt.INFO,blocking:(k.get(L.betType)??[]).some(({stake:Oe,stakeMultiplier:$e})=>Number(Oe)*$e>Me)?[Re.Betting]:[],title:"For selected profit boost max bet is {1}",nonTranslatableValues:{1:fa(y,Me)}})}}else if(z&&D.includes(me.Multiple)){let Me="";const Oe=z.find($e=>{const De=$e.minimumSelections-Ie;return mL(1,7,De)&&Ie!==$e.minimumSelections})??z.reduce(($e,De)=>De.minimumSelections<=Ie&&De.minimumSelections>(($e==null?void 0:$e.minimumSelections)??-1)?De:$e,null)??void 0;if((Oe==null?void 0:Oe.maximumSelections)!==(Oe==null?void 0:Oe.minimumSelections)&&(Me=`${Oe==null?void 0:Oe.minimumSelections} - ${Oe==null?void 0:Oe.maximumSelections}`),Oe){const $e=Oe.minimumSelections-Ie,De=Oe.minOdds>0,[{minimumSelections:Ee}]=z,je=M.some(({price:X})=>X&&Xd.jsx(hY,{someSelectionLowerMinOdd:je,percentage:Oe.percentage,sameBonusRuleCount:Me,numEventsForBonus:$e,minimumSelectionsToGetAccBonus:Ee,minStake:Oe.minStakes[_],allBonusRules:z,currentSelections:Ie,...De&&{minOdds:Oe.minOdds}}),blocking:[]})}}if(fe){te&&!(u||c)&&(Z[Tt.LOGGED_OUT]=Xo({type:tt.WARNING,Component:_w,blocking:[Re.Betting]}));const Me=IH({eventsDataMap:k,selectedSysOption:G,selectedBetTypes:D,fullCoverBetTypesEnabled:R});if(!W&&Me>Hv({useOnlyRealBalance:K,useOnlyBonusBalance:ne,calculatedBalance:o,sport_bonus:s,casino_balance:r,frozen_balance:i,frenchFreebetEnabled:J,calculatedBonusMoney:l})&&(Z[Tt.INSUFFICIENT_BALANCE]=Xo({type:tt.WARNING,Component:()=>J?d.jsx(gY,{}):d.jsx(gw,{className:"for-betslip"}),blocking:[Re.Betting]})),S>0||w>0||x>0){let Oe;const $e=de.some(De=>De);e:for(const De of D){const Ee=ok({eventsDataMap:k,fullCoverBetTypesEnabled:R,betType:De,selectedSysOption:G})||[];for(let je=0,X=Ee.length;je0){if($e){if(reHv({useOnlyRealBalance:K,useOnlyBonusBalance:ne,calculatedBalance:o,sport_bonus:s,casino_balance:r,frozen_balance:i,calculatedBonusMoney:l,frenchFreebetEnabled:J})?Z[Tt.INSUFFICIENT_BALANCE]=Xo({type:tt.WARNING,Component:()=>d.jsx(gw,{className:"for-betslip"}),blocking:[Re.Betting]}):ae||(Z[Tt.QUICK_BET_SAVED]=On({type:tt.WARNING,title:"Save quick bet",blocking:[Re.Betting]}))),cs(M).some(Me=>Me.isBlocked)&&(Z[Tt.LOCKED_EVENT]=On({type:tt.WARNING,title:"There are locked events",blocking:[Re.Betting,Re.Booking]})),cs(M).some(Me=>Me.isDeleted)&&(Z[Tt.DELETED_EVENT]=On({type:tt.WARNING,title:"There are deleted events",blocking:[Re.Betting,Re.Booking]})),h!==void 0&&h!==0&&D.includes(me.Multiple)&&le>h&&(Z[Tt.MAX_EVENTS_EXCEEDED]=On({type:tt.WARNING,title:"Maximum ({1}) allowed events for multiple bet exceeded ",nonTranslatableValues:{1:h},blocking:[Re.Betting,Re.Booking]})),n(Me=>{const Oe=Object.keys(Me.global).reduce((De,Ee)=>{const je=Me.global[Ee];return je.persistent&&(De[Ee]=je),De},{}),$e=M.reduce((De,{id:Ee})=>(Ee in Me.events&&(De[Ee]=Me.events[Ee]),De),{});return{...Me,events:$e,global:Object.assign(Z,Oe)}})},[u,c,h,g,E,_,y,o,s,r,i,l,S,w,x,v,b]),T=p.useCallback(M=>{const k={};let D;M.forEach(({type:j,title:V,eventId:R,nonTranslatableValues:U,lifetime:G})=>{R?k[R]=On({type:j,title:V}):D=V===np?Xo({type:j,Component:pY,lifetime:G,persistent:!0}):On({type:j,title:V,lifetime:G,persistent:!0,nonTranslatableValues:U})}),n(j=>({...j,events:k,global:D?{...j.global,[Tt.BET_RESULT]:D}:j.global}))},[]),P=p.useCallback(()=>n(M=>({...M,events:{},global:Tt.BET_RESULT in M.global?hw(M.global,Tt.BET_RESULT):M.global})),[]),A=p.useCallback(({type:M,title:k,blocking:D,lifetime:j=5e3})=>n(V=>({...V,global:{...V.global,[Tt.BOOK_RESULT]:On({type:M,title:k,lifetime:j,blocking:D,persistent:!0})}})),[]),O=p.useCallback(()=>n(M=>Tt.BOOK_RESULT in M.global?{...M,global:hw(M.global,Tt.BOOK_RESULT)}:M),[]);return d.jsx(zN.Provider,{value:{setMessages:C,setDoBetResponseMessages:T,clearDoBetResponseMessages:P,setBookBetResponseMessage:A,clearBookBetResponseMessage:O},children:d.jsx(cY.Provider,{value:t,children:e})})},YN=new Xr,pY=()=>{const e=Se();return N.app.liveChat.enabled?d.jsx("span",{className:"bet-slip-info-link",onClick:()=>YN.dispatchEvent("open"),children:e(np)}):d.jsx(d.Fragment,{children:e(np)})},mY=Ne(()=>B(()=>import("./BetslipSportsBonusInfo-7HZExVAi.js"),__vite__mapDeps([583,578,1,165,235,236]))),Fl=5.6,hY=({percentage:e,numEventsForBonus:t,minOdds:n,sameBonusRuleCount:s,someSelectionLowerMinOdd:r,minimumSelectionsToGetAccBonus:a,allBonusRules:o,currentSelections:i=0,minStake:l})=>{const{currency:{name:c,symbol:u}}=or(),{min_bet_stakes:f={}}=Fs(),m=Se(),{exclude_boosted_selections_from_bonuses:h}=Fs(),g=p.useRef(null),E=p.useRef(null),b=h?`(${m(d2)})`:"",v=()=>{o!=null&&o.length&&ve.open({type:"info",title:"Accumulator bonus",Component:()=>d.jsx(p.Suspense,{fallback:null,children:d.jsx(mY,{sportsRulesInfo:o})}),className:"expressBonusInfoPopup"})},_=m(r?oC:s?u2:c2,{1:e,2:t,3:n??"",4:s,5:a}),y=p.useMemo(()=>o?Object.values(o.reduce((T,P)=>((!T[P.minimumSelections]||P.percentage>T[P.minimumSelections].percentage)&&(T[P.minimumSelections]=P),T),{})).sort((T,P)=>T.minimumSelections-P.minimumSelections):[],[o]),S=y.findIndex((T,P)=>i=y[P-1].minimumSelections)),w=S>=0?S:y.length-1,x=y.length>0&&y.length({arrows:!1,slidesToScroll:x,spaceBetween:4,startIndex:w}),[]);if(p.useEffect(()=>{const T=E.current;if(!T||T.destroyed||y.length<=Math.floor(Fl))return;const P=T.activeIndex,A=P+Math.floor(Fl)-1;if(w>=P&&w<=A)return;const O=Math.max(0,w-Math.floor(Fl)+1);T.slideTo(O,300)},[w,y.length]),_===oC)return d.jsxs("span",{children:[_,b]});const C=l??f[c];return d.jsxs("div",{className:"bonusInfoCard",children:[d.jsxs("div",{className:"bonusInfoCardContent",children:[d.jsxs("div",{className:"bonusInfoContent",children:[d.jsxs("div",{className:"bonusInfoTitle",onClick:v,children:[d.jsx(an,{className:"betslip-bonus-icon",name:"Info"}),d.jsxs("p",{className:"bonusInfoText",children:[d.jsxs("span",{children:[m("Min Odds")," = "]}),d.jsx("span",{className:"bonusInfoValue",children:n})]}),d.jsxs("p",{className:"bonusInfoText",children:[d.jsxs("span",{children:[m("Min Stake")," = "]}),d.jsxs("span",{className:"bonusInfoValue",children:[Yt(C)," ",u]})]})]}),d.jsxs("span",{className:"bonusInfoDesc",children:[_,b&&d.jsxs(d.Fragment,{children:[" ",b]})]})]}),d.jsx("p",{className:"bonusInfoLabel",children:m("{percentage}% Bonus",{percentage:e})})]}),d.jsxs("div",{className:"bonusInfoCardScrollContent",children:[y.length>0&&d.jsx("div",{className:"bonusTiersScroll",ref:g,children:d.jsx(Sb,{options:I,onSwiper:T=>{E.current=T},children:y.map((T,P)=>{const A=i>=T.minimumSelections,O=i=y[P-1].minimumSelections);return d.jsx("div",{className:`bonusTierItem${A?" bonusTierItemAchieved":""}${O?" bonusTierItemCurrent":""}`,children:d.jsxs("span",{className:"bonusTierPercentage",children:[T.percentage,"%"]})},T.minimumSelections)})})}),Q.isMobile?d.jsx("p",{onClick:()=>Ae.getInstance().dispatchEvent("closeBetslip"),className:"bonusInfoIcon",children:d.jsx("i",{className:"bc-i-add"})}):null]})]})},gw=({className:e})=>{const t=Se(),n=dn(),s=r=>{if(r.stopPropagation(),N.partner.integrationMode)nr.notify({type:"deposit"});else{const a=bt({section:"balance",page:"deposit"});n.location.search!==a&&n.push({search:a}),Ae.getInstance().dispatchEvent("closeBetslip")}};return d.jsx(d.Fragment,{children:d.jsx("div",{className:`bs-info-massages ${e||""}`,children:d.jsxs("div",{className:"quickBetMsgWrapper-bc betslip-warning-message ",children:[d.jsx("i",{className:"bs-notification-icon-bc bc-i-attention"}),d.jsxs("div",{className:"quickBetMsgText-bc",children:[d.jsx("span",{children:t("Insufficient balance")}),d.jsx("span",{className:"bet-slip-info-link",onClick:s,children:t("Deposit")})]})]})})})},gY=()=>{const e=Se(),{profile:{calculatedBonusMoneyFormatted:t,currency_symbol:n}}=ye();return d.jsx(d.Fragment,{children:d.jsx("div",{className:"bs-info-massages for-betslip",children:d.jsxs("div",{className:"quickBetMsgWrapper-bc betslip-warning-message ",children:[d.jsx("i",{className:"bs-notification-icon-bc bc-i-attention"}),d.jsxs("div",{className:"quickBetMsgText-bc",children:[d.jsx("span",{children:e("Insufficient Freebet balance ({balance})",{balance:fa(n,t)})}),d.jsx("span",{className:"bet-slip-info-link",onClick:()=>Ae.getInstance().dispatchEvent("changeExtraFunctionActiveState",{functionKey:"frenchFreebet",active:!1}),children:e("Switch off freebet")})]})]})})})},_w=()=>{const e=Se(),{hideRegisterButton:t}=(N==null?void 0:N.userAuthentication)||{},n=r=>{r.stopPropagation(),et.dispatchEvent("addComponentPopup",{component:"AuthPopup",props:{popupContentType:st.Login}})},s=r=>{r.stopPropagation(),et.dispatchEvent("addComponentPopup",{component:"AuthPopup",props:{popupContentType:st.Registration}})};return d.jsx(d.Fragment,{children:t?d.jsxs(d.Fragment,{children:[e("To place your bet, please")," ",d.jsx("span",{className:"bet-slip-info-link",onClick:n,children:e(iC)})]}):d.jsxs(d.Fragment,{children:[e("To place your bet, please")," ",d.jsx("span",{className:"bet-slip-info-link",onClick:n,children:e(iC)})," ",e("or"),d.jsx("span",{className:gt.getInstance().authenticationEnabledForIP?"bet-slip-info-link":"display-none",onClick:s,children:e(f2)})]})})};/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */function qN(e,t,n,s){function r(a){return a instanceof n?a:new n(function(o){o(a)})}return new(n||(n=Promise))(function(a,o){function i(u){try{c(s.next(u))}catch(f){o(f)}}function l(u){try{c(s.throw(u))}catch(f){o(f)}}function c(u){u.done?a(u.value):r(u.value).then(i,l)}c((s=s.apply(e,[])).next())})}let _Y=(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e));for(;e--;){let s=n[e]&63;s<36?t+=s.toString(36):s<62?t+=(s-26).toString(36).toUpperCase():s<63?t+="_":t+="-"}return t};var Lg=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function KN(e,t){return t={exports:{}},e(t,t.exports),t.exports}var Mg=KN(function(e,t){(function(n){var s;if(e.exports=n(),s=!0,!s){var r=window.Cookies,a=window.Cookies=n();a.noConflict=function(){return window.Cookies=r,a}}})(function(){function n(){for(var a=0,o={};a"u")){f=n({path:"/"},o.defaults,f),typeof f.expires=="number"&&(f.expires=new Date(new Date*1+f.expires*864e5)),f.expires=f.expires?f.expires.toUTCString():"";try{var m=JSON.stringify(u);/^[\{\[]/.test(m)&&(u=m)}catch{}u=a.write?a.write(u,c):encodeURIComponent(String(u)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),c=encodeURIComponent(String(c)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var h="";for(var g in f)f[g]&&(h+="; "+g,f[g]!==!0&&(h+="="+f[g].split(";")[0]));return document.cookie=c+"="+u+h}}function l(c,u){if(!(typeof document>"u")){for(var f={},m=document.cookie?document.cookie.split("; "):[],h=0;hthis)()}async get(t){const n=Mg.get(t);return typeof n=="string"?n:void 0}async set(t,n){Mg.set(t,n,this._constructCookieParams())}async remove(t){Mg.remove(t,this._constructCookieParams())}_constructCookieParams(){return{expires:this.ttl,secure:this.secure,sameSite:this.sameSite}}}class XN{constructor(t="keyval-store",n="keyval"){this.storeName=n,this._dbp=new Promise((s,r)=>{const a=indexedDB.open(t,1);a.onerror=()=>r(a.error),a.onsuccess=()=>s(a.result),a.onupgradeneeded=()=>{a.result.createObjectStore(n)}})}_withIDBStore(t,n){return this._dbp.then(s=>new Promise((r,a)=>{const o=s.transaction(this.storeName,t);o.oncomplete=()=>r(),o.onabort=o.onerror=()=>a(o.error),n(o.objectStore(this.storeName))}))}}let Dg;function Bb(){return Dg||(Dg=new XN),Dg}function CY(e,t=Bb()){let n;return t._withIDBStore("readonly",s=>{n=s.get(e)}).then(()=>n.result)}function TY(e,t,n=Bb()){return n._withIDBStore("readwrite",s=>{s.put(t,e)})}function wY(e,t=Bb()){return t._withIDBStore("readwrite",n=>{n.delete(e)})}const IY="ImmortalDB",AY="key-value-pairs";class PY{constructor(t=IY,n=AY){return this.store=new XN(t,n),(async()=>{try{await this.store._dbp}catch(s){if(s.name==="SecurityError")return null;throw s}return this})()}async get(t){const n=await CY(t,this.store);return typeof n=="string"?n:void 0}async set(t,n){await TY(t,n,this.store)}async remove(t){await wY(t,this.store)}}class xY{constructor(t){return this.store=t,(async()=>this)()}async get(t){const n=this.store.getItem(t);return typeof n=="string"?n:void 0}async set(t,n){this.store.setItem(t,n)}async remove(t){this.store.removeItem(t)}}class OY extends xY{constructor(){super(window.localStorage)}}const jg=console.log,Bg="_immortal|",JN=typeof window<"u",Fb=[SY];try{JN&&window.indexedDB&&Fb.push(PY)}catch{}try{JN&&window.localStorage&&Fb.push(OY)}catch{}function vw(e,t,n=null){return t in e?e[t]:n}function kY(e){const t=new Map;let n=e.slice();for(const s of n){let r=0;for(const a of n)s===a&&(r+=1);r>0&&(t.set(s,r),n=n.filter(a=>a!==s))}return t}class NY{constructor(t=Fb){this.stores=[],this.onReady=(async()=>{this.stores=(await Promise.all(t.map(async n=>{if(typeof n=="object")return n;try{return await new n}catch{return null}}))).filter(Boolean)})()}async get(t,n=null){await this.onReady;const s=`${Bg}${t}`,r=await Promise.all(this.stores.map(async f=>{try{return await f.get(s)}catch(m){jg(m)}})),a=Array.from(kY(r).entries());a.sort((f,m)=>f[1]<=m[1]);let o;const[i,l]=vw(a,0,[void 0,0]),[c,u]=vw(a,1,[void 0,0]);return l>u||l===u&&i!==void 0?o=i:o=c,o!==void 0?(await this.set(t,o),o):(await this.remove(t),n)}async set(t,n){return await this.onReady,t=`${Bg}${t}`,await Promise.all(this.stores.map(async s=>{try{await s.set(t,n)}catch(r){jg(r)}})),n}async remove(t){await this.onReady,t=`${Bg}${t}`,await Promise.all(this.stores.map(async n=>{try{await n.remove(t)}catch(s){jg(s)}}))}}const Pp=new NY;var Jo=KN(function(e,t){(function(){var n={function:!0,object:!0},s=n[typeof window]&&window||this,r=t,a=e&&!e.nodeType&&e,o=r&&a&&typeof Lg=="object"&&Lg;o&&(o.global===o||o.window===o||o.self===o)&&(s=o);var i=Math.pow(2,53)-1,l=/\bOpera/,c=Object.prototype,u=c.hasOwnProperty,f=c.toString;function m(C){return C=String(C),C.charAt(0).toUpperCase()+C.slice(1)}function h(C,T,P){var A={"10.0":"10","6.4":"10 Technical Preview","6.3":"8.1","6.2":"8","6.1":"Server 2008 R2 / 7","6.0":"Server 2008 / Vista","5.2":"Server 2003 / XP 64-bit","5.1":"XP","5.01":"2000 SP1","5.0":"2000","4.0":"NT","4.90":"ME"};return T&&P&&/^Win/i.test(C)&&!/^Windows Phone /i.test(C)&&(A=A[/[\d.]+$/.exec(C)])&&(C="Windows "+A),C=String(C),T&&P&&(C=C.replace(RegExp(T,"i"),P)),C=E(C.replace(/ ce$/i," CE").replace(/\bhpw/i,"web").replace(/\bMacintosh\b/,"Mac OS").replace(/_PowerPC\b/i," OS").replace(/\b(OS X) [^ \d]+/i,"$1").replace(/\bMac (OS X)\b/,"$1").replace(/\/(\d)/," $1").replace(/_/g,".").replace(/(?: BePC|[ .]*fc[ \d.]+)$/i,"").replace(/\bx86\.64\b/gi,"x86_64").replace(/\b(Windows Phone) OS\b/,"$1").replace(/\b(Chrome OS \w+) [\d.]+\b/,"$1").split(" on ")[0]),C}function g(C,T){var P=-1,A=C?C.length:0;if(typeof A=="number"&&A>-1&&A<=i)for(;++P3&&"WebKit"||/\bOpera\b/.test(Z)&&(/\bOPR\b/.test(C)?"Blink":"Presto")||/\b(?:Midori|Nook|Safari)\b/i.test(C)&&!/^(?:Trident|EdgeHTML)$/.test(ie)&&"WebKit"||!ie&&/\bMSIE\b/i.test(C)&&(le=="Mac OS"?"Tasman":"Trident")||ie=="WebKit"&&/\bPlayStation\b(?! Vita\b)/i.test(Z)&&"NetFront")&&(ie=[L]),Z=="IE"&&(L=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(C)||0)[1])?(Z+=" Mobile",le="Windows Phone "+(/\+$/.test(L)?L:L+".x"),q.unshift("desktop mode")):/\bWPDesktop\b/i.test(C)?(Z="IE Mobile",le="Windows Phone 8.x",q.unshift("desktop mode"),Y||(Y=(/\brv:([\d.]+)/.exec(C)||0)[1])):Z!="IE"&&ie=="Trident"&&(L=/\brv:([\d.]+)/.exec(C))&&(Z&&q.push("identifying as "+Z+(Y?" "+Y:"")),Z="IE",Y=L[1]),ue){if(_(T,"global"))if(U&&(L=U.lang.System,W=L.getProperty("os.arch"),le=le||L.getProperty("os.name")+" "+L.getProperty("os.version")),G){try{Y=T.require("ringo/engine").version.join("."),Z="RingoJS"}catch{(L=T.system)&&L.global.system==T.system&&(Z="Narwhal",le||(le=L[0].os||null))}Z||(Z="Rhino")}else typeof T.process=="object"&&!T.process.browser&&(L=T.process)&&(typeof L.versions=="object"&&(typeof L.versions.electron=="string"?(q.push("Node "+L.versions.node),Z="Electron",Y=L.versions.electron):typeof L.versions.nw=="string"&&(q.push("Chromium "+Y,"Node "+L.versions.node),Z="NW.js",Y=L.versions.nw)),Z||(Z="Node.js",W=L.arch,le=L.platform,Y=/[\d.]+/.exec(L.version),Y=Y?Y[0]:null));else v(L=T.runtime)==D?(Z="Adobe AIR",le=L.flash.system.Capabilities.os):v(L=T.phantom)==R?(Z="PhantomJS",Y=(L=L.version||null)&&L.major+"."+L.minor+"."+L.patch):typeof ne.documentMode=="number"&&(L=/\bTrident\/(\d+)/i.exec(C))?(Y=[Y,ne.documentMode],(L=+L[1]+4)!=Y[1]&&(q.push("IE "+Y[1]+" mode"),ie&&(ie[1]=""),Y[1]=L),Y=Z=="IE"?String(Y[1].toFixed(1)):Y[0]):typeof ne.documentMode=="number"&&/^(?:Chrome|Firefox)\b/.test(Z)&&(q.push("masking as "+Z+" "+Y),Z="IE",Y="11.0",ie=["Trident"],le="Windows");le=le&&E(le)}if(Y&&(L=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(Y)||/(?:alpha|beta)(?: ?\d)?/i.exec(C+";"+(ue&&A.appMinorVersion))||/\bMinefield\b/i.test(C)&&"a")&&(de=/b/i.test(L)?"beta":"alpha",Y=Y.replace(RegExp(L+"\\+?$"),"")+(de=="beta"?K:z)+(/\d+\+?/.exec(L)||"")),Z=="Fennec"||Z=="Firefox"&&/\b(?:Android|Firefox OS|KaiOS)\b/.test(le))Z="Firefox Mobile";else if(Z=="Maxthon"&&Y)Y=Y.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(te))te=="Xbox 360"&&(le=null),te=="Xbox 360"&&/\bIEMobile\b/.test(C)&&q.unshift("mobile mode");else if((/^(?:Chrome|IE|Opera)$/.test(Z)||Z&&!te&&!/Browser|Mobi/.test(Z))&&(le=="Windows CE"||/Mobi/i.test(C)))Z+=" Mobile";else if(Z=="IE"&&ue)try{T.external===null&&q.unshift("platform preview")}catch{q.unshift("embedded")}else(/\bBlackBerry\b/.test(te)||/\bBB10\b/.test(C))&&(L=(RegExp(te.replace(/ +/g," *")+"/([.\\d]+)","i").exec(C)||0)[1]||Y)?(L=[L,/BB10/.test(C)],le=(L[1]?(te=null,fe="BlackBerry"):"Device Software")+" "+L[0],Y=null):this!=b&&te!="Wii"&&(ue&&J||/Opera/.test(Z)&&/\b(?:MSIE|Firefox)\b/i.test(C)||Z=="Firefox"&&/\bOS X (?:\d+\.){2,}/.test(le)||Z=="IE"&&(le&&!/^Win/.test(le)&&Y>5.5||/\bWindows XP\b/.test(le)&&Y>8||Y==8&&!/\bTrident\b/.test(C)))&&!l.test(L=x.call(b,C.replace(l,"")+";"))&&L.name&&(L="ing as "+L.name+((L=L.version)?" "+L:""),l.test(Z)?(/\bIE\b/.test(L)&&le=="Mac OS"&&(le=null),L="identify"+L):(L="mask"+L,$?Z=E($.replace(/([a-z])([A-Z])/g,"$1 $2")):Z="Opera",/\bIE\b/.test(L)&&(le=null),ue||(Y=null)),ie=["Presto"],q.push(L));(L=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(C)||0)[1])&&(L=[parseFloat(L.replace(/\.(\d)$/,".0$1")),L],Z=="Safari"&&L[1].slice(-1)=="+"?(Z="WebKit Nightly",de="alpha",Y=L[1].slice(0,-1)):(Y==L[1]||Y==(L[2]=(/\bSafari\/([\d.]+\+?)/i.exec(C)||0)[1]))&&(Y=null),L[1]=(/\b(?:Headless)?Chrome\/([\d.]+)/i.exec(C)||0)[1],L[0]==537.36&&L[2]==537.36&&parseFloat(L[1])>=28&&ie=="WebKit"&&(ie=["Blink"]),!ue||!M&&!L[1]?(ie&&(ie[1]="like Safari"),L=(L=L[0],L<400?1:L<500?2:L<526?3:L<533?4:L<534?"4+":L<535?5:L<537?6:L<538?7:L<601?8:L<602?9:L<604?10:L<606?11:L<608?12:"12")):(ie&&(ie[1]="like Chrome"),L=L[1]||(L=L[0],L<530?1:L<532?2:L<532.05?3:L<533?4:L<534.03?5:L<534.07?6:L<534.1?7:L<534.13?8:L<534.16?9:L<534.24?10:L<534.3?11:L<535.01?12:L<535.02?"13+":L<535.07?15:L<535.11?16:L<535.19?17:L<536.05?18:L<536.1?19:L<537.01?20:L<537.11?"21+":L<537.13?23:L<537.18?24:L<537.24?25:L<537.36?26:ie!="Blink"?"27":"28")),ie&&(ie[1]+=" "+(L+=typeof L=="number"?".x":/[.+]/.test(L)?"":"+")),Z=="Safari"&&(!Y||parseInt(Y)>45)?Y=L:Z=="Chrome"&&/\bHeadlessChrome/i.test(C)&&q.unshift("headless")),Z=="Opera"&&(L=/\bzbov|zvav$/.exec(le))?(Z+=" ",q.unshift("desktop mode"),L=="zvav"?(Z+="Mini",Y=null):Z+="Mobile",le=le.replace(RegExp(" *"+L+"$"),"")):Z=="Safari"&&/\bChrome\b/.exec(ie&&ie[1])?(q.unshift("desktop mode"),Z="Chrome Mobile",Y=null,/\bOS X\b/.test(le)?(fe="Apple",le="iOS 4.3+"):le=null):/\bSRWare Iron\b/.test(Z)&&!Y&&(Y=$e("Chrome")),Y&&Y.indexOf(L=/[\d.]+$/.exec(le))==0&&C.indexOf("/"+L+"-")>-1&&(le=w(le.replace(L,""))),le&&le.indexOf(Z)!=-1&&!RegExp(Z+" OS").test(le)&&(le=le.replace(RegExp(" *"+y(Z)+" *"),"")),ie&&!/\b(?:Avant|Nook)\b/.test(Z)&&(/Browser|Lunascape|Maxthon/.test(Z)||Z!="Safari"&&/^iOS/.test(le)&&/\bSafari\b/.test(ie[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|SRWare Iron|Vivaldi|Web)/.test(Z)&&ie[1])&&(L=ie[ie.length-1])&&q.push(L),q.length&&(q=["("+q.join("; ")+")"]),fe&&te&&te.indexOf(fe)<0&&q.push("on "+fe),te&&q.push((/^on /.test(q[q.length-1])?"":"on ")+te),le&&(L=/ ([\d.+]+)$/.exec(le),ae=L&&le.charAt(le.length-L[0].length-1)=="/",le={architecture:32,family:L&&!ae?le.replace(L[0],""):le,version:L?L[1]:null,toString:function(){var je=this.version;return this.family+(je&&!ae?" "+je:"")+(this.architecture==64?" 64-bit":"")}}),(L=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(W))&&!/\bi686\b/i.test(W)?(le&&(le.architecture=64,le.family=le.family.replace(RegExp(" *"+L),"")),Z&&(/\bWOW64\b/i.test(C)||ue&&/\w(?:86|32)$/.test(A.cpuClass||A.platform)&&!/\bWin64; x64\b/i.test(C))&&q.unshift("32-bit")):le&&/^OS X/.test(le.family)&&Z=="Chrome"&&parseFloat(Y)>=39&&(le.architecture=64),C||(C=null);var Ee={};return Ee.description=C,Ee.layout=ie&&ie[0],Ee.manufacturer=fe,Ee.name=Z,Ee.prerelease=de,Ee.product=te,Ee.ua=C,Ee.version=Z&&Y,Ee.os=le||{architecture:null,family:null,version:null,toString:function(){return"null"}},Ee.parse=x,Ee.toString=De,Ee.version&&q.unshift(Y),Ee.name&&q.unshift(Z),le&&Z&&!(le==String(le).split(" ")[0]&&(le==Z.split(" ")[0]||te))&&q.push(te?"("+le+")":"on "+le),q.length&&(Ee.description=q.join(" ")),Ee}var I=x();r&&a?b(I,function(C,T){r[T]=C}):s.platform=I}).call(Lg)});const RY=()=>({deviceType:LY(),model:Jo.product,os:Jo.os.toString(),architecture:Jo.os.architecture,browser:Jo.name,browserBuildNumber:Jo.version,languages:navigator.languages.toString(),time:new Date().toString(),videoCardInfo:MY(),coreNumbers:navigator.hardwareConcurrency,ramMemory:navigator.deviceMemory,pointingMethod:DY(),userAgent:Jo.ua,orientation:jY(),resolution:BY(),devicePixelRatio:window.devicePixelRatio,colorDepth:window.screen.colorDepth}),LY=()=>{const e=navigator.userAgent;return/(tablet|ipad|playbook|silk)|(android(?!.*mobi))/i.test(e)?"tablet":/Mobile|iP(hone|od|ad)|Android|BlackBerry|IEMobile|Kindle|Silk-Accelerated|(hpw|web)OS|Opera M(obi|ini)/.test(e)?"mobile":"desktop"},MY=()=>{const e=document.createElement("canvas").getContext("webgl");if(!e)return"no webgl";const t=e.getExtension("WEBGL_debug_renderer_info");return t?e.getParameter(t.UNMASKED_RENDERER_WEBGL):"no WEBGL_debug_renderer_info"},DY=()=>"ontouchstart"in document.documentElement?"touch":"mouse",jY=()=>window.innerWidth>window.innerHeight?"Landscape":"Portrait",BY=()=>`${window.screen.availHeight} X ${window.screen.availWidth}`;var Tn=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof Tn<"u"&&Tn,Vn={searchParams:"URLSearchParams"in Tn,iterable:"Symbol"in Tn&&"iterator"in Symbol,blob:"FileReader"in Tn&&"Blob"in Tn&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in Tn,arrayBuffer:"ArrayBuffer"in Tn};function FY(e){return e&&DataView.prototype.isPrototypeOf(e)}if(Vn.arrayBuffer)var UY=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],$Y=ArrayBuffer.isView||function(e){return e&&UY.indexOf(Object.prototype.toString.call(e))>-1};function Gu(e){if(typeof e!="string"&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||e==="")throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function Ub(e){return typeof e!="string"&&(e=String(e)),e}function $b(e){var t={next:function(){var n=e.shift();return{done:n===void 0,value:n}}};return Vn.iterable&&(t[Symbol.iterator]=function(){return t}),t}function tn(e){this.map={},e instanceof tn?e.forEach(function(t,n){this.append(n,t)},this):Array.isArray(e)?e.forEach(function(t){this.append(t[0],t[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}tn.prototype.append=function(e,t){e=Gu(e),t=Ub(t);var n=this.map[e];this.map[e]=n?n+", "+t:t};tn.prototype.delete=function(e){delete this.map[Gu(e)]};tn.prototype.get=function(e){return e=Gu(e),this.has(e)?this.map[e]:null};tn.prototype.has=function(e){return this.map.hasOwnProperty(Gu(e))};tn.prototype.set=function(e,t){this.map[Gu(e)]=Ub(t)};tn.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)};tn.prototype.keys=function(){var e=[];return this.forEach(function(t,n){e.push(n)}),$b(e)};tn.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),$b(e)};tn.prototype.entries=function(){var e=[];return this.forEach(function(t,n){e.push([n,t])}),$b(e)};Vn.iterable&&(tn.prototype[Symbol.iterator]=tn.prototype.entries);function Fg(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function ZN(e){return new Promise(function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}})}function GY(e){var t=new FileReader,n=ZN(t);return t.readAsArrayBuffer(e),n}function VY(e){var t=new FileReader,n=ZN(t);return t.readAsText(e),n}function HY(e){for(var t=new Uint8Array(e),n=new Array(t.length),s=0;s-1?t:e}function No(e,t){if(!(this instanceof No))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t=t||{};var n=t.body;if(e instanceof No){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new tn(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,!n&&e._bodyInit!=null&&(n=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",(t.headers||!this.headers)&&(this.headers=new tn(t.headers)),this.method=zY(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&n)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(n),(this.method==="GET"||this.method==="HEAD")&&(t.cache==="no-store"||t.cache==="no-cache")){var s=/([?&])_=[^&]*/;if(s.test(this.url))this.url=this.url.replace(s,"$1_="+new Date().getTime());else{var r=/\?/;this.url+=(r.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}No.prototype.clone=function(){return new No(this,{body:this._bodyInit})};function YY(e){var t=new FormData;return e.trim().split("&").forEach(function(n){if(n){var s=n.split("="),r=s.shift().replace(/\+/g," "),a=s.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(a))}}),t}function qY(e){var t=new tn,n=e.replace(/\r?\n[\t ]+/g," ");return n.split("\r").map(function(s){return s.indexOf(` `)===0?s.substr(1,s.length):s}).forEach(function(s){var r=s.split(":"),a=r.shift().trim();if(a){var o=r.join(":").trim();t.append(a,o)}}),t}eR.call(No.prototype);function xr(e,t){if(!(this instanceof xr))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t||(t={}),this.type="default",this.status=t.status===void 0?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"",this.headers=new tn(t.headers),this.url=t.url||"",this._initBody(e)}eR.call(xr.prototype);xr.prototype.clone=function(){return new xr(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new tn(this.headers),url:this.url})};xr.error=function(){var e=new xr(null,{status:0,statusText:""});return e.type="error",e};var KY=[301,302,303,307,308];xr.redirect=function(e,t){if(KY.indexOf(t)===-1)throw new RangeError("Invalid status code");return new xr(null,{status:t,headers:{location:e}})};var eo=Tn.DOMException;try{new eo}catch{eo=function(t,n){this.message=t,this.name=n;var s=Error(t);this.stack=s.stack},eo.prototype=Object.create(Error.prototype),eo.prototype.constructor=eo}function tR(e,t){return new Promise(function(n,s){var r=new No(e,t);if(r.signal&&r.signal.aborted)return s(new eo("Aborted","AbortError"));var a=new XMLHttpRequest;function o(){a.abort()}a.onload=function(){var l={status:a.status,statusText:a.statusText,headers:qY(a.getAllResponseHeaders()||"")};l.url="responseURL"in a?a.responseURL:l.headers.get("X-Request-URL");var c="response"in a?a.response:a.responseText;setTimeout(function(){n(new xr(c,l))},0)},a.onerror=function(){setTimeout(function(){s(new TypeError("Network request failed"))},0)},a.ontimeout=function(){setTimeout(function(){s(new TypeError("Network request failed"))},0)},a.onabort=function(){setTimeout(function(){s(new eo("Aborted","AbortError"))},0)};function i(l){try{return l===""&&Tn.location.href?Tn.location.href:l}catch{return l}}a.open(r.method,i(r.url),!0),r.credentials==="include"?a.withCredentials=!0:r.credentials==="omit"&&(a.withCredentials=!1),"responseType"in a&&(Vn.blob?a.responseType="blob":Vn.arrayBuffer&&r.headers.get("Content-Type")&&r.headers.get("Content-Type").indexOf("application/octet-stream")!==-1&&(a.responseType="arraybuffer")),t&&typeof t.headers=="object"&&!(t.headers instanceof tn)?Object.getOwnPropertyNames(t.headers).forEach(function(l){a.setRequestHeader(l,Ub(t.headers[l]))}):r.headers.forEach(function(l,c){a.setRequestHeader(c,l)}),r.signal&&(r.signal.addEventListener("abort",o),a.onreadystatechange=function(){a.readyState===4&&r.signal.removeEventListener("abort",o)}),a.send(typeof r._bodyInit>"u"?null:r._bodyInit)})}tR.polyfill=!0;Tn.fetch||(Tn.fetch=tR,Tn.Headers=tn,Tn.Request=No,Tn.Response=xr);const QY=async e=>await(await fetch(`${e}?type=json`)).json(),nR=()=>qN(void 0,void 0,void 0,function*(){let e=yield Pp.get("user-hash","");return e||(e=_Y(36),yield Pp.set("user-hash",e)),e}),XY=e=>qN(void 0,void 0,void 0,function*(){if(!e)throw new Error("GeoIp url is required");const t=yield Pp.get("unique-fingerprint",""),n=yield nR();t&&(yield Pp.remove("unique-fingerprint"));const s=RY();if(n){const r=yield QY(e);return{userIdentifier:n,userGeoData:r,collectedInfo:s}}else console.error("User hash not stored")});var sR={exports:{}};(function(e,t){(function(n,s){e.exports=s()})(ll,function(){var n="minute",s=/[+-]\d\d(?::?\d\d)?/g,r=/([+-]|\d\d)/g;return function(a,o,i){var l=o.prototype;i.utc=function(E){var b={date:E,utc:!0,args:arguments};return new o(b)},l.utc=function(E){var b=i(this.toDate(),{locale:this.$L,utc:!0});return E?b.add(this.utcOffset(),n):b},l.local=function(){return i(this.toDate(),{locale:this.$L,utc:!1})};var c=l.parse;l.parse=function(E){E.utc&&(this.$u=!0),this.$utils().u(E.$offset)||(this.$offset=E.$offset),c.call(this,E)};var u=l.init;l.init=function(){if(this.$u){var E=this.$d;this.$y=E.getUTCFullYear(),this.$M=E.getUTCMonth(),this.$D=E.getUTCDate(),this.$W=E.getUTCDay(),this.$H=E.getUTCHours(),this.$m=E.getUTCMinutes(),this.$s=E.getUTCSeconds(),this.$ms=E.getUTCMilliseconds()}else u.call(this)};var f=l.utcOffset;l.utcOffset=function(E,b){var v=this.$utils().u;if(v(E))return this.$u?0:v(this.$offset)?f.call(this):this.$offset;if(typeof E=="string"&&(E=function(w){w===void 0&&(w="");var x=w.match(s);if(!x)return null;var I=(""+x[0]).match(r)||["-",0,0],C=I[0],T=60*+I[1]+ +I[2];return T===0?0:C==="+"?T:-T}(E),E===null))return this;var _=Math.abs(E)<=16?60*E:E;if(_===0)return this.utc(b);var y=this.clone();if(b)return y.$offset=_,y.$u=!1,y;var S=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(y=this.local().add(_+S,n)).$offset=_,y.$x.$localOffset=S,y};var m=l.format;l.format=function(E){var b=E||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return m.call(this,b)},l.valueOf=function(){var E=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*E},l.isUTC=function(){return!!this.$u},l.toISOString=function(){return this.toDate().toISOString()},l.toString=function(){return this.toDate().toUTCString()};var h=l.toDate;l.toDate=function(E){return E==="s"&&this.$offset?i(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():h.call(this)};var g=l.diff;l.diff=function(E,b,v){if(E&&this.$u===E.$u)return g.call(this,E,b,v);var _=this.local(),y=i(E).local();return g.call(_,y,b,v)}}})})(sR);var JY=sR.exports;const rR=jn(JY);var aR={exports:{}};(function(e,t){(function(n,s){e.exports=s()})(ll,function(){return function(n,s,r){var a=s.prototype,o=function(m){var h,g=m.date,E=m.utc,b={};if(!((h=g)===null||h instanceof Date||h instanceof Array||a.$utils().u(h)||h.constructor.name!=="Object")){if(!Object.keys(g).length)return new Date;var v=E?r.utc():r();Object.keys(g).forEach(function(T){var P,A;b[P=T,A=a.$utils().p(P),A==="date"?"day":A]=g[T]});var _=b.day||(b.year||b.month>=0?1:v.date()),y=b.year||v.year(),S=b.month>=0?b.month:b.year||b.day?0:v.month(),w=b.hour||0,x=b.minute||0,I=b.second||0,C=b.millisecond||0;return E?new Date(Date.UTC(y,S,_,w,x,I,C)):new Date(y,S,_,w,x,I,C)}return g},i=a.parse;a.parse=function(m){m.date=o.bind(this)(m),i.bind(this)(m)};var l=a.set,c=a.add,u=a.subtract,f=function(m,h,g,E){E===void 0&&(E=1);var b=Object.keys(h),v=this;return b.forEach(function(_){v=m.bind(v)(h[_]*E,_)}),v};a.set=function(m,h){return h=h===void 0?m:h,m.constructor.name==="Object"?f.bind(this)(function(g,E){return l.bind(this)(E,g)},h,m):l.bind(this)(m,h)},a.add=function(m,h){return m.constructor.name==="Object"?f.bind(this)(c,m,h):c.bind(this)(m,h)},a.subtract=function(m,h){return m.constructor.name==="Object"?f.bind(this)(c,m,h,-1):u.bind(this)(m,h)}}})})(aR);var ZY=aR.exports;const eq=jn(ZY);var oR={exports:{}};(function(e,t){(function(n,s){e.exports=s()})(ll,function(){return function(n,s,r){var a="h:mm A",o={lastDay:"[Yesterday at] "+a,sameDay:"[Today at] "+a,nextDay:"[Tomorrow at] "+a,nextWeek:"dddd [at] "+a,lastWeek:"[Last] dddd [at] "+a,sameElse:"MM/DD/YYYY"};s.prototype.calendar=function(i,l){var c=l||this.$locale().calendar||o,u=r(i||void 0).startOf("d"),f=this.diff(u,"d",!0),m="sameElse",h=f<-6?m:f<-1?"lastWeek":f<0?"lastDay":f<1?"sameDay":f<2?"nextDay":f<7?"nextWeek":m,g=c[h]||o[h];return typeof g=="function"?g.call(this,r()):this.format(g)}}})})(oR);var tq=oR.exports;const nq=jn(tq),iR={AF:{name:"Afghanistan",code:"93",backendCode:8,lang:"tur",city:"Kabul",iconClassName:"afghanistan"},AX:{name:"Aland Islands",code:"358",backendCode:9,city:"Mariehamn",iconClassName:"aland"},AL:{name:"Albania",code:"355",backendCode:10,city:"Tirana",currency:"EUR",iconClassName:"albania"},DZ:{name:"Algeria",code:"213",backendCode:11,city:"Algiers",lang:"fra",iconClassName:"algeria"},AS:{name:"American Samoa",code:"1684",backendCode:12,city:"Apia",currency:"USD",iconClassName:"americansamoa"},AD:{name:"Andorra",code:"376",backendCode:13,city:"Andorra la Vella",lang:"fra",currency:"EUR",iconClassName:"andorra"},AO:{name:"Angola",code:"244",backendCode:14,city:"Luanda",lang:"por",iconClassName:"angola"},AI:{name:"Anguilla",code:"1264",backendCode:15,city:"The Valley",iconClassName:"anguilla",un:!1},AQ:{name:"Antarctica",code:"672",iconClassName:"frenchsouthernandantarcticlands",un:!1},AG:{name:"Antigua and Barbuda",code:"1268",backendCode:17,city:"Saint Johns",iconClassName:"antiguaandbarbuda"},AR:{name:"Argentina",code:"54",backendCode:18,city:"Buenos Aires",lang:"spa",currency:"ARS",iconClassName:"argentina"},AM:{name:"Armenia",code:"374",backendCode:19,lang:"arm",currency:"AMD",city:"Yerevan",iconClassName:"armenia"},AW:{name:"Aruba",code:"297",backendCode:20,city:"Oranjestad",currency:"AWG",iconClassName:"aruba",un:!1},AU:{name:"Australia",code:"61",backendCode:21,city:"Canberra",currency:"AUD",iconClassName:"australia"},AT:{name:"Austria",code:"43",backendCode:22,city:"Vienna",lang:"ger",currency:"EUR",iconClassName:"austria"},AZ:{name:"Azerbaijan",code:"994",backendCode:23,city:"Baku",lang:"tur",currency:"AZN",iconClassName:"azerbaijan"},BS:{name:"Bahamas",code:"1242",backendCode:24,city:"Nassau",currency:"BSD",iconClassName:"bahamas"},BH:{name:"Bahrain",code:"973",backendCode:25,city:"Manama",iconClassName:"bahrain"},BD:{name:"Bangladesh",code:"880",backendCode:26,city:"Dhaka",iconClassName:"bangladesh"},BB:{name:"Barbados",code:"1246",backendCode:27,city:"Bridgetown",currency:"BBD",iconClassName:"barbados"},BY:{name:"Belarus",code:"375",backendCode:28,city:"Minsk",lang:"rus",iconClassName:"belarus"},BE:{name:"Belgium",code:"32",backendCode:29,city:"Brussels",lang:"fra",currency:"EUR",iconClassName:"belgium"},BZ:{name:"Belize",code:"501",backendCode:30,city:"Belmopan",iconClassName:"belize"},BJ:{name:"Benin",code:"229",backendCode:31,city:"Porto-Novo",lang:"fra",iconClassName:"benin"},BM:{name:"Bermuda",code:"1441",backendCode:32,city:"Hamilton",currency:"BMD",iconClassName:"bermuda",un:!1},BT:{name:"Bhutan",code:"975",backendCode:33,city:"Thimphu",iconClassName:"bhutan"},BO:{name:"Bolivia",code:"591",backendCode:34,city:"La Paz",lang:"spa",iconClassName:"bolivia"},BQ:{name:"Bonaire",code:"5997",backendCode:35,city:"Kralendijk",currency:"USD",iconClassName:"bonairesinteustatiusandsaba",un:!1},BA:{name:"Bosnia and Herzegovina",code:"387",backendCode:36,city:"Sarajevo",currency:"EUR",iconClassName:"bosniaherzegovina"},BW:{name:"Botswana",code:"267",backendCode:37,city:"Gaborone",iconClassName:"botswana"},BV:{name:"Bouvet Island",code:"47",backendCode:38,iconClassName:"bouvet",un:!1},BR:{name:"Brazil",code:"55",backendCode:39,city:"Brasilia",lang:"pt-br",currency:"BRL",iconClassName:"brazil"},IO:{name:"British Indian Ocean Territory",code:"246",backendCode:40,city:"Camp Justice",iconClassName:"britishindianoceanterritory",un:!1},BN:{name:"Brunei Darussalam",code:"673",backendCode:41,city:"Bandar Seri Begawan",iconClassName:"bruneidarussalam"},BG:{name:"Bulgaria",code:"359",backendCode:42,city:"Sofia",currency:"EUR",iconClassName:"bulgaria"},BF:{name:"Burkina Faso",code:"226",backendCode:43,city:"Ouagadougou",lang:"fra",iconClassName:"burkinafaso"},BI:{name:"Burundi",code:"257",backendCode:44,city:"Bujumbura",lang:"fra",iconClassName:"burundi"},CV:{name:"Cabo Verde",code:"238",backendCode:48,city:"Praia",lang:"por",iconClassName:"capeverde"},KH:{name:"Cambodia",code:"855",backendCode:45,city:"Phnom Penh",iconClassName:"cambodia"},CM:{name:"Cameroon",code:"237",backendCode:46,city:"Yaounde",iconClassName:"cameroon"},CA:{name:"Canada",code:"1",backendCode:47,city:"Ottawa",currency:"CAD",iconClassName:"canada"},KY:{name:"Cayman Islands",code:"1345",backendCode:49,city:"George Town",iconClassName:"caymanislands",un:!1},CF:{name:"Central African Republic",code:"236",backendCode:50,city:"Bangui",iconClassName:"centralafricanrepublic"},TD:{name:"Chad",code:"235",backendCode:51,city:"N`Djamena",iconClassName:"chad"},CL:{name:"Chile",code:"56",backendCode:52,city:"Santiago",lang:"spa",currency:"CLP",iconClassName:"chile"},CN:{name:"China",code:"86",backendCode:53,city:"Beijing",currency:"CNY",iconClassName:"china"},CX:{name:"Christmas Island",code:"6189164",backendCode:54,city:"Flying Fish Cove",iconClassName:"christmas",un:!1},CC:{name:"Cocos (Keeling) Islands",code:"6189162",backendCode:55,city:"West Island",iconClassName:"cocoskeeling",un:!1},CO:{name:"Colombia",code:"57",backendCode:56,city:"Bogota",lang:"spa",currency:"COP",iconClassName:"colombia"},KM:{name:"Comoros",code:"269",backendCode:57,city:"Moroni",iconClassName:"comoros"},CG:{name:"Congo",code:"242",backendCode:58,city:"Brazzaville",iconClassName:"congo"},CD:{name:"Congo, Democratic Republic of the (Zaire)",backendCode:59,code:"243",city:"Kinshasa",iconClassName:"congokinshasa"},CK:{name:"Cook Islands",code:"682",backendCode:60,city:"Avarua",iconClassName:"cookislands",un:!1},CR:{name:"Costa Rica",code:"506",backendCode:61,city:"San José",lang:"spa",iconClassName:"costarica"},CI:{name:"Cote d'Ivoire",code:"225",backendCode:62,city:"Yamoussoukro",iconClassName:"cotedivoire"},HR:{name:"Croatia",code:"385",backendCode:63,city:"Zagreb",currency:"EUR",iconClassName:"croatia"},CU:{name:"Cuba",code:"53",backendCode:64,city:"Havana",lang:"spa",iconClassName:"cuba"},CW:{name:"Curacao",code:"5999",backendCode:65,city:"Willemstad",iconClassName:"curacao",un:!1},CY:{name:"Cyprus",code:"357",backendCode:66,city:"Nicosia",lang:"tur",currency:"EUR",iconClassName:"cyprus"},CZ:{name:"Czech Republic",code:"420",backendCode:67,city:"Prague",iconClassName:"czechrepublic"},DK:{name:"Denmark",code:"45",backendCode:68,city:"Copenhagen",currency:"DKK",iconClassName:"denmark"},DJ:{name:"Djibouti",code:"253",backendCode:69,city:"Djibouti",iconClassName:"djibouti"},DM:{name:"Dominica",code:"1767",backendCode:70,city:"Roseau",iconClassName:"dominica"},DO:{name:"Dominican Republic",code:"1",backendCode:71,city:"Santo Domingo",lang:"spa",currency:"DOP",iconClassName:"dominicanrepublic"},EC:{name:"Ecuador",code:"593",backendCode:72,city:"Quito",currency:"USD",iconClassName:"ecuador"},EG:{name:"Egypt",code:"20",backendCode:73,city:"Cairo",iconClassName:"egypt"},SV:{name:"El Salvador",code:"503",backendCode:74,city:"San Salvador",lang:"spa",currency:"SVC",iconClassName:"elsalvador"},GQ:{name:"Equatorial Guinea",code:"240",backendCode:75,city:"Malabo",iconClassName:"equatorialguinea"},ER:{name:"Eritrea",code:"291",backendCode:76,city:"Asmara",iconClassName:"eritrea"},EE:{name:"Estonia",code:"372",backendCode:77,city:"Tallin",lang:"est",currency:"EUR",iconClassName:"estonia"},ET:{name:"Ethiopia",code:"251",backendCode:78,city:"Asmara",iconClassName:"ethiopia"},FK:{name:"Falkland Islands",code:"500",backendCode:79,iconClassName:"falkland",un:!1},FO:{name:"Faroe Islands",code:"298",backendCode:80,iconClassName:"faroeislands",un:!1},FJ:{name:"Fiji",code:"679",backendCode:81,iconClassName:"fiji"},FI:{name:"Finland",code:"358",backendCode:82,currency:"EUR",iconClassName:"finland"},FR:{name:"France",code:"33",backendCode:83,lang:"fra",currency:"EUR",iconClassName:"france"},GF:{name:"French Guiana",code:"594",backendCode:84,lang:"fra",iconClassName:"frenchguiana",un:!1},PF:{name:"French Polynesia",code:"689",backendCode:85,iconClassName:"frenchpolynesia",un:!1},TF:{name:"French Southern Territories",backendCode:86,code:"596",iconClassName:"frenchsouthernterritories",un:!1},GA:{name:"Gabon",code:"241",backendCode:87,iconClassName:"gabon"},GM:{name:"Gambia",code:"220",backendCode:88,iconClassName:"gambia"},GE:{name:"Georgia",code:"995",backendCode:89,lang:"rus",currency:"GEL",iconClassName:"georgia"},DE:{name:"Germany",code:"49",backendCode:90,lang:"ger",currency:"EUR",iconClassName:"germany"},"GE-AB":{name:"Abkhazia",code:"7840",backendCode:1787,lang:"abk",iconClassName:"abkhazia",un:!1},GH:{name:"Ghana",code:"233",backendCode:91,currency:"GHS",iconClassName:"ghana"},GI:{name:"Gibraltar",code:"350",backendCode:92,iconClassName:"gibraltar",un:!1},GR:{name:"Greece",code:"30",backendCode:93,lang:"gre",currency:"EUR",iconClassName:"greece"},GL:{name:"Greenland",code:"299",backendCode:94,iconClassName:"greenland",un:!1},GD:{name:"Grenada",code:"1473",backendCode:95,iconClassName:"grenada"},GP:{name:"Guadeloupe",code:"590",backendCode:96,lang:"fra",currency:"EUR",iconClassName:"guadeloupe",un:!1},GU:{name:"Guam",code:"1671",backendCode:97,currency:"USD",iconClassName:"guam",un:!1},GT:{name:"Guatemala",code:"502",backendCode:98,lang:"spa",currency:"GTQ",iconClassName:"guatemala"},GG:{name:"Guernsey",code:"441481",backendCode:99,iconClassName:"guernsey",un:!1},GN:{name:"Guinea",code:"224",backendCode:100,iconClassName:"guinea"},GW:{name:"Guinea-Bissau",code:"245",backendCode:101,iconClassName:"guineabissau"},GY:{name:"Guyana",code:"592",backendCode:102,iconClassName:"guyana"},HT:{name:"Haiti",code:"509",backendCode:103,lang:"hat",iconClassName:"haiti"},HM:{name:"Heard Island and McDonald Islands",code:"672",backendCode:104,currency:"AUD",iconClassName:"heardislandandmcdonald",un:!1},VA:{name:"Holy See",code:"379",backendCode:105,currency:"EUR",iconClassName:"holysee",un:!1},HN:{name:"Honduras",code:"504",backendCode:106,lang:"spa",currency:"HNL",iconClassName:"honduras"},HK:{name:"Hong Kong",code:"852",backendCode:107,iconClassName:"hongkong",un:!1},HU:{name:"Hungary",code:"36",backendCode:108,iconClassName:"hungary"},IS:{name:"Iceland",code:"354",backendCode:109,currency:"ISK",iconClassName:"iceland"},IN:{name:"India",code:"91",backendCode:110,currency:"INR",iconClassName:"india"},ID:{name:"Indonesia",code:"62",backendCode:111,currency:"IDR",iconClassName:"indonesia"},IR:{name:"Iran",code:"98",backendCode:112,currency:"IRR",iconClassName:"iran"},IQ:{name:"Iraq",code:"964",backendCode:113,currency:"IQD",iconClassName:"iraq"},IE:{name:"Ireland",code:"353",backendCode:114,currency:"EUR",iconClassName:"ireland"},IM:{name:"Isle of Man",code:"441624",backendCode:115,iconClassName:"isleofman",un:!1},IL:{name:"Israel",code:"972",backendCode:116,lang:"heb",iconClassName:"israel"},IT:{name:"Italy",code:"39",backendCode:117,lang:"ita",currency:"EUR",iconClassName:"italy"},JM:{name:"Jamaica",code:"1876",backendCode:118,iconClassName:"jamaica"},JP:{name:"Japan",code:"81",backendCode:119,currency:"JPY",iconClassName:"japan"},JE:{name:"Jersey",code:"441534",backendCode:120,iconClassName:"jersey",un:!1},JO:{name:"Jordan",code:"962",backendCode:121,iconClassName:"jordan"},KZ:{name:"Kazakhstan",code:"7",backendCode:122,lang:"kaz",currency:"KZT",iconClassName:"kazakhstan"},KE:{name:"Kenya",code:"254",backendCode:123,currency:"KES",iconClassName:"kenya"},KI:{name:"Kiribati",code:"686",backendCode:124,iconClassName:"kiribati"},KP:{name:"Korea, North",code:"850",backendCode:125,iconClassName:"korea,north"},KW:{name:"Kuwait",code:"965",backendCode:127,iconClassName:"kuwait"},KG:{name:"Kyrgyzstan",code:"996",backendCode:128,lang:"rus",iconClassName:"kyrgyzstan"},LA:{name:"Laos",code:"856",backendCode:129,iconClassName:"laos"},LV:{name:"Latvia",code:"371",backendCode:130,lang:"rus",currency:"EUR",iconClassName:"latvia"},LB:{name:"Lebanon",code:"961",backendCode:131,iconClassName:"lebanon"},LS:{name:"Lesotho",code:"266",backendCode:132,iconClassName:"lesotho"},LR:{name:"Liberia",code:"231",backendCode:133,iconClassName:"liberia"},LY:{name:"Libya",code:"218",backendCode:134,lang:"ita",iconClassName:"libya"},LI:{name:"Liechtenstein",code:"423",backendCode:135,currency:"EUR",iconClassName:"liechtenshein"},LT:{name:"Lithuania",code:"370",backendCode:136,lang:"rus",currency:"EUR",iconClassName:"lithuania"},LU:{name:"Luxembourg",code:"352",backendCode:137,lang:"fra",currency:"EUR",iconClassName:"luxembourg"},MO:{name:"Macao",code:"853",backendCode:138,iconClassName:"macao",un:!1},MG:{name:"Madagascar",code:"261",backendCode:140,iconClassName:"madagascar"},MW:{name:"Malawi",code:"265",backendCode:141,iconClassName:"malawi"},MY:{name:"Malaysia",code:"60",backendCode:142,iconClassName:"malaysia"},MV:{name:"Maldives",code:"960",backendCode:143,iconClassName:"maldives"},ML:{name:"Mali",code:"223",backendCode:144,iconClassName:"mali",lang:"fra"},MT:{name:"Malta",code:"356",backendCode:145,lang:"eng",currency:"EUR",iconClassName:"malta"},MH:{name:"Marshall Islands",code:"692",backendCode:146,currency:"USD",iconClassName:"marshallislands"},MQ:{name:"Martinique",code:"596",backendCode:147,lang:"fra",currency:"EUR",iconClassName:"martinique",un:!1},MR:{name:"Mauritania",code:"222",backendCode:148,iconClassName:"mauritania"},MU:{name:"Mauritius",code:"230",backendCode:149,iconClassName:"mauritius"},YT:{name:"Mayotte",code:"262",backendCode:150,currency:"EUR",iconClassName:"mayotte",un:!1},MX:{name:"Mexico",code:"52",backendCode:151,lang:"spa",currency:"MXN",iconClassName:"mexico"},FM:{name:"Micronesia, Federated States of",code:"691",backendCode:152,iconClassName:"micronesiafederatedstatesof"},MD:{name:"Moldova",code:"373",backendCode:153,lang:"rus",iconClassName:"moldova"},MC:{name:"Monaco",code:"377",backendCode:154,currency:"EUR",iconClassName:"monaco"},MN:{name:"Mongolia",code:"976",backendCode:155,lang:"rus",iconClassName:"mongolia"},ME:{name:"Montenegro",code:"382",backendCode:156,currency:"EUR",iconClassName:"montenegro"},MS:{name:"Montserrat",code:"1664",backendCode:157,iconClassName:"montserrat",un:!1},MA:{name:"Morocco",code:"212",backendCode:158,iconClassName:"morocco"},MZ:{name:"Mozambique",code:"258",backendCode:159,iconClassName:"mozambique"},MM:{name:"Myanmar",code:"95",backendCode:160,iconClassName:"myanmar"},NA:{name:"Namibia",code:"264",backendCode:161,iconClassName:"namibia"},NR:{name:"Nauru",code:"674",backendCode:162,iconClassName:"nauru"},NP:{name:"Nepal",code:"977",backendCode:163,iconClassName:"nepal"},NL:{name:"Netherlands",code:"31",backendCode:164,currency:"EUR",iconClassName:"netherlands"},NC:{name:"New Caledonia",code:"687",backendCode:165,currency:"XPF",iconClassName:"newcaledonia",un:!1},NZ:{name:"New Zealand",code:"64",backendCode:166,currency:"NZD",iconClassName:"newzealand"},NI:{name:"Nicaragua",code:"505",backendCode:167,lang:"spa",iconClassName:"nicaragua"},NE:{name:"Niger",code:"227",backendCode:168,iconClassName:"niger"},NG:{name:"Nigeria",code:"234",backendCode:169,currency:"NGN",iconClassName:"nigeria"},NU:{name:"Niue",code:"683",backendCode:170,currency:"NZD",iconClassName:"niue",un:!1},NF:{name:"Norfolk Island",code:"6723",backendCode:171,currency:"AUD",iconClassName:"norfolk",un:!1},MP:{name:"Northern Mariana Islands",code:"1670",backendCode:172,currency:"USD",iconClassName:"northernmariana",un:!1},MK:{name:"North Macedonia",code:"389",backendCode:139,currency:"EUR",iconClassName:"northmacedonia",un:!1},NO:{name:"Norway",code:"47",backendCode:173,currency:"NOK",lang:"nor",iconClassName:"norway"},OM:{name:"Oman",code:"968",backendCode:174,iconClassName:"oman"},PK:{name:"Pakistan",code:"92",backendCode:175,iconClassName:"pakistan"},PW:{name:"Palau",code:"680",backendCode:176,iconClassName:"palau"},PS:{name:"Palestine, State of",code:"970",backendCode:177,iconClassName:"palestine"},PA:{name:"Panama",code:"507",backendCode:178,lang:"spa",iconClassName:"panama"},PG:{name:"Papua New Guinea",code:"675",backendCode:179,iconClassName:"papuanewguinea"},PY:{name:"Paraguay",code:"595",backendCode:180,lang:"spa",currency:"PYG",iconClassName:"paraguay"},PE:{name:"Peru",code:"51",backendCode:181,lang:"spa",currency:"PEN",iconClassName:"peru"},PH:{name:"Philippines",code:"63",backendCode:182,iconClassName:"philippines"},PN:{name:"Pitcairn",code:"64",backendCode:183,iconClassName:"pitcairn",un:!1},PL:{name:"Poland",code:"48",backendCode:184,lang:"pol",currency:"PLN",iconClassName:"poland"},PT:{name:"Portugal",code:"351",backendCode:185,lang:"por",currency:"EUR",iconClassName:"portugal"},PR:{name:"Puerto Rico",code:"1787",backendCode:186,currency:"USD",iconClassName:"puertorico",un:!1},QA:{name:"Qatar",code:"974",backendCode:187,iconClassName:"qatar"},RE:{name:"Reunion",code:"262",backendCode:188,lang:"fra",iconClassName:"reunion",un:!1},RO:{name:"Romania",code:"40",backendCode:189,currency:"EUR",iconClassName:"romania"},RU:{name:"Russia",code:"7",backendCode:190,lang:"rus",currency:"RUB",city:"Moscow",iconClassName:"russia"},RW:{name:"Rwanda",code:"250",backendCode:191,iconClassName:"rwanda"},BL:{name:"Saint Barthelemy",code:"590",backendCode:192,iconClassName:"saintbarthelemy",un:!1},SH:{name:"Saint Helena",code:"290",backendCode:193,iconClassName:"sainthelena",un:!1},KN:{name:"Saint Kitts and Nevis",code:"1869",backendCode:194,iconClassName:"stkittsandnevis"},LC:{name:"Saint Lucia",code:"1758",backendCode:195,iconClassName:"saintlucia"},MF:{name:"Saint Martin (France)",code:"590",backendCode:196,iconClassName:"saintmartin",un:!1},PM:{name:"Saint Pierre and Miquelon",code:"508",backendCode:197,iconClassName:"saintpierreandmiquelon",un:!1},VC:{name:"Saint Vincent and the Grenadines",code:"1784",backendCode:198,iconClassName:"stvincentandthegrenadines"},WS:{name:"Samoa",code:"685",backendCode:199,iconClassName:"samoa"},SM:{name:"San Marino",code:"378",backendCode:200,lang:"ita",currency:"EUR",iconClassName:"sanmarino"},ST:{name:"Sao Tome and Principe",code:"239",backendCode:201,iconClassName:"saotomeandprincipe"},SA:{name:"Saudi Arabia",code:"966",backendCode:202,iconClassName:"saudiarabia"},SN:{name:"Senegal",code:"221",backendCode:203,iconClassName:"senegal"},RS:{name:"Serbia",code:"381",backendCode:204,currency:"EUR",iconClassName:"serbia"},SC:{name:"Seychelles",code:"248",backendCode:205,iconClassName:"seychelles"},SL:{name:"Sierra Leone",code:"232",backendCode:206,iconClassName:"sierraleone"},SG:{name:"Singapore",code:"65",backendCode:207,iconClassName:"singapore"},SX:{name:"Sint Maarten (Netherlands)",code:"1721",backendCode:208,iconClassName:"saintmartin",un:!1},SK:{name:"Slovakia",code:"421",backendCode:209,currency:"EUR",iconClassName:"slovakia"},SI:{name:"Slovenia",code:"386",backendCode:210,currency:"EUR",iconClassName:"slovenia"},SB:{name:"Solomon Islands",code:"677",backendCode:211,iconClassName:"solomonislands"},SO:{name:"Somalia",code:"252",backendCode:212,iconClassName:"somalia"},ZA:{name:"South Africa",code:"27",backendCode:213,currency:"ZAR",iconClassName:"southafrica"},GS:{name:"South Georgia and the South Sandwich Islands",code:"500",backendCode:214,iconClassName:"southgeorgiaandsouthsandwich",un:!1},SS:{name:"South Sudan",code:"211",backendCode:1637,iconClassName:"southsudan"},KR:{name:"South Korea",code:"82",backendCode:126,currency:"KRW",iconClassName:"southkorea"},ES:{name:"Spain",code:"34",backendCode:215,lang:"spa",currency:"EUR",iconClassName:"spain"},LK:{name:"Sri Lanka",code:"94",backendCode:216,iconClassName:"srilanka"},SD:{name:"Sudan",code:"249",backendCode:217,iconClassName:"sudan"},SR:{name:"Suriname",code:"597",backendCode:218,iconClassName:"suriname"},SJ:{name:"Svalbard and Jan Mayen",code:"47",backendCode:219,iconClassName:"svalbardandjanmayen",un:!1},SZ:{name:"Swaziland",code:"268",backendCode:220,iconClassName:"swaziland"},SE:{name:"Sweden",code:"46",backendCode:221,lang:"swe",currency:"SEK",city:"Stockholm",iconClassName:"sweden"},CH:{name:"Switzerland",code:"41",backendCode:222,lang:"fra",currency:"CHF",iconClassName:"switzerland"},SY:{name:"Syria",code:"963",backendCode:223,iconClassName:"syria"},TW:{name:"Taiwan",code:"886",backendCode:224,iconClassName:"taiwan",un:!1},TJ:{name:"Tajikistan",code:"992",backendCode:225,lang:"rus",iconClassName:"tajikistan"},TZ:{name:"Tanzania",code:"255",backendCode:226,lang:"swa",iconClassName:"unitedrepublicoftanzania",un:!1},TH:{name:"Thailand",code:"66",backendCode:227,currency:"THB",iconClassName:"thailand"},TL:{name:"Timor-Leste",code:"670",backendCode:228,iconClassName:"timorleste"},TG:{name:"Togo",code:"228",backendCode:229,iconClassName:"togo"},TK:{name:"Tokelau",code:"690",backendCode:230,currency:"NZD",iconClassName:"tokelau",un:!1},TO:{name:"Tonga",code:"676",backendCode:231,iconClassName:"tonga"},TT:{name:"Trinidad and Tobago",code:"1868",backendCode:232,iconClassName:"trinidadtobago"},TN:{name:"Tunisia",code:"216",backendCode:233,iconClassName:"tunisia"},TR:{name:"Turkey",code:"90",backendCode:234,lang:"tur",currency:"TRY",iconClassName:"turkey"},TM:{name:"Turkmenistan",code:"993",backendCode:235,lang:"tur",iconClassName:"turkmenistan"},TC:{name:"Turks and Caicos Islands",code:"1649",backendCode:236,iconClassName:"turksandcaicosislands",un:!1},XC:{name:"Turkish Republic of Northern Cyprus",code:"90",backendCode:1652,lang:"tur",iconClassName:"northerncyprus",un:!1},XK:{name:"Kosovo",code:"383",lang:"tur",iconClassName:"kosovo"},TV:{name:"Tuvalu",code:"688",backendCode:237,iconClassName:"tuvalu"},UG:{name:"Uganda",code:"256",backendCode:238,iconClassName:"uganda"},UA:{name:"Ukraine",code:"380",backendCode:239,lang:"ukr",currency:"UAH",iconClassName:"ukraine"},AE:{name:"United Arab Emirates",code:"971",backendCode:240,iconClassName:"uae"},GB:{name:"United Kingdom",code:"44",backendCode:241,currency:"GBP",city:"London",iconClassName:"unitedkingdom"},US:{name:"United States",code:"1",backendCode:242,currency:"USD",iconClassName:"unitedstates"},UY:{name:"Uruguay",code:"598",backendCode:244,lang:"spa",currency:"UYU",iconClassName:"uruguay"},UZ:{name:"Uzbekistan",code:"998",backendCode:245,lang:"uzb",iconClassName:"uzbekistan"},VU:{name:"Vanuatu",code:"678",backendCode:246,iconClassName:"vanutau"},VE:{name:"Venezuela",code:"58",backendCode:247,lang:"spa",iconClassName:"venezuela"},VN:{name:"Vietnam",code:"84",backendCode:248,currency:"VND",iconClassName:"vietnam",lang:"vie"},VG:{name:"Virgin Islands, British",code:"1284",backendCode:249,iconClassName:"virginislandsbritish",un:!1},VI:{name:"Virgin Islands, U.S.",code:"1340",backendCode:250,currency:"USD",iconClassName:"virginislandsus",un:!1},WF:{name:"Wallis and Futuna",code:"681",backendCode:251,iconClassName:"wallisandfutuna",un:!1},EH:{name:"Western Sahara",code:"212",backendCode:252,iconClassName:"westernsahara",un:!1},YE:{name:"Yemen",code:"967",backendCode:253,iconClassName:"yemen"},ZM:{name:"Zambia",code:"260",backendCode:254,iconClassName:"zambia"},ZW:{name:"Zimbabwe",code:"263",backendCode:255,iconClassName:"zimbabwe"}},sq=e=>{Te.setItem(su,e[su],Yy)},ca=class ca{constructor(){se(this,"httpClient",null);se(this,"basePath","/api/private/v1/");se(this,"HttpStatusCodes",{SUCCESS:200,CREATED:201})}initHttpClient(){const t=Te.getItem(su);t?this.httpClient=qe.create({baseURL:N.cms.apiUrl,headers:{"Accept-Response":"REST","Access-Token":t}}):console.error("Failed to get Auth Token from CMS.")}async fetchWithCMSUserData(t,n="get",s){if(this.httpClient)try{const r=await this.httpClient[n](`${this.basePath}${t}`,s);return r.status===this.HttpStatusCodes.SUCCESS||r.status===this.HttpStatusCodes.CREATED?r.data:Promise.reject(new Error)}catch{throw new Error("Failed to load data from CMS")}else throw new Error("HttpClient is not defined")}static getInstance(){return ca.instance||(ca.instance=new ca,ca.instance.initHttpClient()),ca.instance}async getUser(){return await this.fetchWithCMSUserData("users/me/")}};se(ca,"instance");let yw=ca;const lR=e=>Q.isMobile?e+Q.headerMainSectionHeightPx+Q.mobileHeaderNavigationHeightPx+Q.mobileSubHeaderNavigationHeightPx:e+Q.headerMainSectionHeightPx+Q.webHeaderNavigationHeightPx+Q.webSubHeaderNavigationHeightPx,cR=(e,t)=>{var n;if(t||(e=hL.cloneDeep(e)),e.rules){if((n=e.rules.pattern)!=null&&n.default){const{regexp:s,...r}=e.rules.pattern.default;e.rules.pattern={...r,value:s}}if(e.rules.match){const{name:s,...r}=e.rules.match;e.rules.match={...r,...s&&{value:s}}}e.rules.method&&!e.rules.method.value&&(e.rules.method={value:e.rules.method,message:""})}return e.element==="date_picker"&&(e.element="date"),e.type==="info"&&e.props&&(e.value=e.props.content,e.props.html&&(e.type="html"),delete e.props),e},rq=()=>{const{formElements:e}=N;Object.values(e||[]).forEach(t=>cR(t,!0))},aq=2e3,oq=async e=>{const{app:{site_id:t,affiliatesRedirectionDomain:n}}=N,s=a=>{window.location.href=a},r=`${n}/global/api/linkCreator/getRedirectUrl`;return new Promise(a=>{if(window.location.pathname.includes("/affiliates/")||window.location.pathname.includes("/adv/")){const o=`${Or}${window.location.search}`;ze().btag?qe.post(r,JSON.stringify({url:e,partnerId:t,type:Q.isMobile}),{timeout:aq,headers:{Accept:"application/json, text/plain, */*","Content-Type":"application/x-www-form-urlencoded"}}).then(({data:{status:c,result:u}})=>{if(c&&u){s(decodeURIComponent(u));return}s(o)}).catch(function(){s(o)}):s(o)}else a()})},uE="AuthToken",iq=e=>{vt.set({auth_token:e[uE],user_id:Number(e[gO])})},uR="data-social-init",dR="data-social-reels-init",lq=()=>{const e=document.querySelector("#root");if(!e)return;const t=new MutationObserver(()=>{if(e.classList.contains("social_page")){const n=document.documentElement;setTimeout(()=>{n.removeAttribute(uR),n.removeAttribute(dR)},300),t.disconnect()}});t.observe(e,{attributes:!0,attributeFilter:["class"]})},cq=e=>{var a,o;if(!(Q.isMobile&&!!((a=e.app.header.vivaroMeManagement)!=null&&a.enabled)&&!!((o=e.app.header.vivaroMeManagement)!=null&&o.isInternal)))return;const n=window.location.pathname,s=n.replace(/^\/[^/]+/,"")||n;if(!s.startsWith("/social/"))return;const r=document.documentElement;return r.setAttribute(uR,""),s.startsWith("/social/reels")&&r.setAttribute(dR,""),lq(),B(()=>Promise.resolve({}),__vite__mapDeps([584]))};at.extend(rR);at.extend(eq);at.extend(nq);const uq=()=>{const e=s=>s,t=()=>new Promise((s,r)=>{qe.get("externalServicePath/data").then(a=>{if(a.status===200&&a.data)try{s(e(a.data))}catch{r(new Error("Failed to parse external domain response."))}else r(new Error("Invalid response from external domain endpoint."))}).catch(a=>{r(new Error(`External domain fetch failed: ${a.message}`))})}),n=()=>new Promise((s,r)=>{switch(N.app.enableDynamicDomains){case 2:t().then(s).catch(r);break;case 1:s(Fo());break;default:r(new Error("Unsupported dynamic domain type"))}});return new Promise((s,r)=>{if(!N.app.enableDynamicDomains)return s();n().then(a=>{TP({...N,app:{...N.app,swarm:{...N.app.swarm,socketUrl:Kn(`wss://${N.app.swarm.dynamicDomainSubdomain??"eu-swarm-newm"}.${a}`)},jackpot:{...N.app.jackpot,socketUrl:Kn(`wss://rgs-wss.${a}/jackpot`)}},cms:{...N.cms,apiUrl:Kn(`https://cms.${a}`),iconUrl:Kn(`https://icons.${a}`)},statistics:{...N.statistics,skinHost:`https://statistics.${a}`,krosstatsBaseUrl:"https://statistics.{domain}/api"}}),s()}).catch(a=>{r(a)})})},Km=!window.location.pathname.includes("widget/promoted-games"),xp=e=>Km?qe.get(e).then(t=>t.data):Promise.resolve({}),dq=()=>xp(`/localConf.json?v=${Bo(5)}`),fq=()=>xp(`/dynamicallyStructuredPages.json?v=${Bo(5)}`),pq=()=>qe.get(`/pageBuilder/pageBuilderCssConfig.json?v=${Bo(5)}`).then(e=>e.data),mq=()=>xp(`/conf.json?v=${Bo(5)}`).then(e=>{var n;const t=ze();if(t[BC]){const s=t[BC].replace(":me",String((n=e.app)==null?void 0:n.site_id));return xp(`${N.cms.apiUrl}${s}&v=${Date.now()}`)}return e}),hq=async()=>new Promise(e=>{Promise.all([mq(),dq(),fq(),pq()]).then(([t,n,s,r])=>{var c,u,f;const{casino:a,app:o,...i}=t,l={...i,app:{...o,...((c=o==null?void 0:o.liveChat)==null?void 0:c.enabled)&&!Q.isMobile&&{liveChat:{...o.liveChat,showRegularButton:!0}},...((u=o==null?void 0:o.header)==null?void 0:u.showNearLogoText)&&Q.isMobile&&{header:{...o.header,showNearLogoText:!1}},...(r==null?void 0:r.backgroundImage)&&{preferences:{...o==null?void 0:o.preferences,backgroundImageUrl:r==null?void 0:r.backgroundImage}},themes:((o==null?void 0:o.themes)??[]).map(m=>{var h;return{...m,...m&&m.theme==="default"&&{additionalParams:{...m==null?void 0:m.additionalParams,cssVariables:{...(h=m==null?void 0:m.additionalParams)==null?void 0:h.cssVariables,...SU({...r.colorScheme,...r!=null&&r.contentBorder?{"--border-radius":r.contentBorder}:null,...r!=null&&r.selectedFont?{"--font-family":r.selectedFont}:null})}}}}})},...Q.isMobile&&{sportsbook:{...i.sportsbook,betslip:{...(f=i.sportsbook)==null?void 0:f.betslip,underBetslipContent:void 0}}},casino:{gamesUrl:sx("games"),...a}};_c(l,n),_c(l,s),_c(N,l),TP(s$(N))}).catch(t=>{rt.warning(`failed to load external config, error: ${t} , processing will be done using locale config`)}).finally(()=>uq().then(e))}),gq=async()=>new Promise(e=>{qe.get(`${N.app.geoUrl}/?type=json`,{timeout:2e3}).then(t=>{t.data&&(Object.assign(ln,t.data),mv()),e()}).catch(t=>{rt.warning(`failed to load geoData, error: ${t} , processing without geoData`),e(),mv()})}),co=(e="")=>N.app.availableLanguages[e]?e:"",_q=()=>{const{lang:e}=ze();if(e)return zt("lang"),co(e);{const[,t=""]=window.location.pathname.split("/"),n=gL(In)[t]??[];return n.length>1&&n.some(co)?n.find(co):co(n[0]||t)}},vq=()=>{const e=Te.getItem("language");return e?co(e):""},Eq=()=>{const e=N.app.defaultLanguageByIP;return ln.countryCode?co(e.enabled?e.regions[ln.countryCode]:iR[ln.countryCode].lang):""},yq=()=>{const e=document.createElement("canvas");return e.getContext&&e.getContext("2d")?+(e.toDataURL("image/webp").indexOf("data:image/webp")===0):0},bq=e=>Km?XY(e).catch(()=>null):Promise.resolve(null),Sq=()=>Km?Promise.race([nR(),new Promise((e,t)=>setTimeout(t,2e3))]).catch(()=>""):Promise.resolve(""),As=QP("sessionStorage")?window.sessionStorage:null,Cq=()=>{const e=ze();e[Yh]&&(N.app.site_id=Number(e[Yh])),e[qh]&&(N.app.swarm.socketUrl=e[qh]),e[jC]&&(N.partner.integrationMode=!0),e[DC]&&(N.app.preferences.oddFormat=Number(e[DC])),e[uE]&&iq(e),e[su]&&sq(e);const t=e[Kh]||(As==null?void 0:As.getItem(Kh)),n=e[gd]||t&&(As==null?void 0:As.getItem(gd));if(t){As==null||As.setItem(Kh,t);const r=document.createElement("link");r.rel="stylesheet",r.type="text/css",r.href=`${N.cms.apiUrl}${t}&v=${Jc()}`,document.body.appendChild(r)}if(n){t&&(As==null||As.setItem(gd,n));const r=document.getElementById("app-custom-css");r&&(r.disabled=!0)}const s=Object.keys(e).filter(r=>r.includes(z4)||r===Qh);if(s.length){const a=s.map(c=>`${c}=${e[c]}`).join("&"),o=Te.getItem(Uh),i=o==null?void 0:o.split("|").pop(),l=o?i===a?o:`${o}|${a}`:a;Q.utmParameters=l,Te.setItem(Uh,l,2592e3)}else{const r=Te.getItem(Uh);r&&(Q.utmParameters=r)}e[Xh]&&(Q.terminalID=Number(e[Xh])),zt(uE,gO,gd,Yh,qh,jC,Xh,su,...e[Qh]?[Qh]:[])},Tq=e=>{if(e!==0&&Q.isMobile&&!M3()){const n=`https://${Fo()}`;(e===1||window.confirm("Do you want navigate to desktop?"))&&(window.location.href=n)}},wq=()=>{const e=()=>{document.documentElement.style.setProperty("--window-height",`${window.innerHeight}px`)};e(),window.onresize=e},Iq=()=>{var n,s;Q.headerMainSectionHeightPx=N.partner.integrationMode?0:Q.isMobile?C5:T5,document.documentElement.style.setProperty("--mobile-header-main-section-height",`${Q.headerMainSectionHeightPx}px`),document.documentElement.style.setProperty("--mobile-header-navigation-height",`${Q.mobileSubHeaderNavigationHeightPx}px`),document.documentElement.style.setProperty("--mobile-horizontal-tab-navigation-height",`${ix}px`),document.documentElement.style.setProperty("--mobile-sub-header-full-height",`${Q.mobileSubHeaderNavigationHeightPx}px`),document.documentElement.style.setProperty(Q.isMobile?"--mobile-self-exclusion-height":"--web-self-exclusion-height","0px"),document.documentElement.style.setProperty("--mobile-header-full-height",`${Q.headerMainSectionHeightPx+Q.mobileSubHeaderNavigationHeightPx}px`),Q.headerBlockHeightPx=lR(eC),document.documentElement.style.setProperty("--dynamic-header",`${eC}px`),wq();const e=Dx("theme")||N.app.preferences.theme,t=(n=N.app.themes)==null?void 0:n.find(lt("theme",e));Qy(document.documentElement,Ox(Vy(go,r=>({...go,...r}),{...t==null?void 0:t.scheme,...(s=t==null?void 0:t.additionalParams)==null?void 0:s.cssVariables})))},Aq=async()=>{const{app:{preferences:e},partner:{integrationMode:t}}=N,n=_q(),s=vq(),r=co(e.language)||"eng";if(ln.countryCode&&ln.countryName||await gq(),n)return n;if(!t){if(s)return s;try{const a=Eq();if(a)return a}catch{}}return r},Pq=async({geoUrl:e,site_id:t,language:n,socketUrl:s,integrationMode:r})=>{Q.fingerprint=await Sq(),ee.connect({url:s,useLongPolling:!1,session:{language:vv[n]||n,site_id:t,source:Q.isMobile?Es.Mobile:Es.Desktop,release_date:"08/06/2026-18:01",...Q.fingerprint&&{afec:Q.fingerprint},...Q.terminalID&&{terminal:Q.terminalID}},...r?{onSocketClose:a=>{nr.notify({type:"connection_lost",value:a})}}:null}),bq(e).then(a=>{a!=null&&a.userGeoData&&a.userGeoData!=="not-detected"&&(ln.countryCode=a.userGeoData.countryCode,ln.countryName=a.userGeoData.countryName,mv()),a!==null&&ee.get({identification_info:a},"store_user_identification_token")})},xq=async()=>{try{const e=window.location.href;await hq();const t=await Aq();Cq(),await oq(e),rq();const{app:{pageBuilderLayouts:n,site_id:s,geoUrl:r,redirectToWeb:a,swarm:{socketUrl:o},header:{navigation:{mobile:i,web:l}}},partner:{integrationMode:c,appReadyPingPeriod:u},cms:{useWebp:f}}=N,m=n&&n.includes(Ly.Home);return x3(`${m?"/pageBuilder":""}/homepage.json?v=08/06/2026-18:01`),cq(N),Tq(a),Q.isMobile?(Q.mobileHeaderNavigationHeightPx=i.genericMenu?0:A5,Q.mobileSubHeaderNavigationHeightPx=!i.genericMenu||i.subHeaderMenu?ix:0):(Q.webLeftMenuNavigationWidthPx=l.leftMenu?P5:0,Q.webHeaderNavigationHeightPx=l.leftMenu?0:x5,Q.webSubHeaderNavigationHeightPx=!l.leftMenu||l.subHeaderMenu?O5:0),Iq(),s&&Pq({geoUrl:r,language:t,site_id:s,socketUrl:o,integrationMode:c}),Km&&await Za.fetchMethods(),Mx("language",t),Q.useWebp=f?yq():0,await Promise.all([Bx(t),ck(t)]),c&&(nr.notify({type:"app_ready",value:"initial"}),u&&setInterval(()=>{nr.notify({type:"app_ready",value:"ping"})},Math.max(u,1e3))),{lang:t}}catch(e){throw e instanceof Error&&rt.warning(`failed to load external configuration: ${e.message}`),e}},Oq={logo:"/defaultLogo.png",loader:""},kq={language:""};function Nq({children:e}){const[{language:t},n]=p.useState(kq),[s,r]=p.useState(Oq);return p.useEffect(function(){let o=!t;return o&&(async()=>{try{const i=async()=>qe.get(`/assets.json?v=${Bo(5)}`).then(({data:h})=>h),{loader:l,logo:c}=await i(),u=p5(l),f=u==="svg",m=l?await qe.get(l,{responseType:f?"text":"arraybuffer"}).then(({data:h})=>h):ip;o&&r(h=>({...h,...c&&{logo:c},loader:l?i5(m,f,u):m}))}catch(i){i instanceof Error&&rt.error(i.message),o&&r(l=>({...l,loader:ip}))}})(),()=>{o=!1}},[t]),p.useEffect(function(){const o=Na.getInstance(),i=gt.getInstance();xq().then(({lang:l})=>{o.init({language:In[l],config:N.statistics}),i.init(N),n({language:l})})},[]),p.useEffect(function(){const o=document.querySelector("#root");if(o){const i=l=>l.split(" ").map(c=>c.trim()).filter(Boolean);return He.addEventListener("addRootClassName",l=>{i(l).forEach(c=>o.classList.add(c))}),He.addEventListener("removeRootClassName",l=>{i(l).forEach(c=>o.classList.remove(c))}),()=>{He.removeEventListeners("addRootClassName"),He.removeEventListeners("removeRootClassName")}}},[]),t?e(t,s):d.jsx(d.Fragment,{})}const Rd=function(e,t,n=!1){return n&&!t?e:t?e.replace("m.","www."):e.replace("www.","m.")},Rq="/assets/soccer.png",Lq="/assets/soccer-live.png",Mq=p.memo(function({currentSeo:t,productUrl:n}){var E,b;const{language:s,locale:r}=ke(),[a,o]=p.useState([]),i=(N.app.staticDomainForCanonicalTags||window.location.origin).replace(/^http:\/\//,"https://"),l=((b=(E=N.app)==null?void 0:E.dmca)==null?void 0:b.token)??"",c=n.includes(Ye.Prematch),u=n.includes(Ye.Live),f=p.useMemo(()=>{var v;return(v=N.app.availableLanguages[s])==null?void 0:v.full},[s]),m=p.useMemo(()=>{const v=Zh[m5(window.location.origin)],_=v||Zh.default;return Zh._useCustomHrefLangFromTemplate?[]:Object.keys(N.app.availableLanguages).map(y=>({name:In[y],hrefLang:_[y]??In[y]}))},[]),h=p.useMemo(()=>{var v,_,y;return((y=(_=(v=N.app.socialIcons)==null?void 0:v.find(S=>S.network==="facebook"))==null?void 0:_.url)==null?void 0:y.default)??""},[]),g=p.useMemo(()=>{var y,S,w;const v="https://x.com/",_=(y=N.app.socialIcons)==null?void 0:y.find(x=>x.network==="twitter");return _!=null&&_.useSiteName&&((w=(S=_==null?void 0:_.url)==null?void 0:S.default)!=null&&w.includes(v))?_.url.default.replace(v,""):null},[]);return p.useEffect(()=>{var w;const v=(w=N.app.preferences)!=null&&w.enableDefaultAlternateLink?[{rel:"alternate",hrefLang:"x-default",href:`${i}/${r}${n}`}]:[],_=Q.isMobile?[]:[{rel:"alternate",media:"only screen and (max-width: 640px)",href:`${Rd(i,Q.isMobile)}/${r}${n}`}],y=m.map(({name:x,hrefLang:I})=>({rel:"alternate",hrefLang:I,href:`${Rd(i,1)}/${x}${n}`})),S=GC?GC.map(x=>({...x,rel:"alternate",href:`${Rd(x.href,Q.isMobile?0:1)}${n}`})):[];o([...v,..._,...y,...S])},[m,r,i,n]),d.jsxs(ef,{children:[(t==null?void 0:t.title)&&d.jsx("title",{children:Kn(t.title)}),f&&d.jsx("meta",{name:"language",content:f}),l?d.jsx("meta",{name:"dmca-site-verification",content:l}):null,d.jsx("meta",{name:"author",content:N.app.siteName}),(t==null?void 0:t.metaDescription)&&d.jsx("meta",{name:"keywords",content:t.metaKeywords}),(t==null?void 0:t.copyright)&&d.jsx("meta",{name:"copyright",content:t.copyright}),(t==null?void 0:t.metaDescription)&&d.jsx("meta",{name:"description",content:t.metaDescription}),d.jsx("meta",{property:"og:title",content:t==null?void 0:t.title}),d.jsx("meta",{name:"twitter:title",content:t==null?void 0:t.title}),d.jsx("meta",{property:"og:url",content:`${i}/${r}${n}`}),d.jsx("meta",{property:"og:site_name",content:window.location.host}),d.jsx("meta",{name:"twitter:site",content:g??`@${window.location.host.split(".").slice(1).join("")}`}),d.jsx("meta",{property:"og:description",content:t==null?void 0:t.metaDescription}),d.jsx("meta",{name:"twitter:description",content:t==null?void 0:t.metaDescription}),(t==null?void 0:t.twitterSite)&&d.jsx("meta",{name:"twitter:card",content:t==null?void 0:t.twitterSite}),(t==null?void 0:t.metaImage)&&d.jsx("meta",{property:"og:image",content:`${N.cms.iconUrl}${t==null?void 0:t.metaImage}`}),(t==null?void 0:t.metaImage)&&d.jsx("meta",{name:"twitter:image",content:`${N.cms.iconUrl}${t==null?void 0:t.metaImage}`}),d.jsx("meta",{property:"og:type",content:"website"}),h&&d.jsx("meta",{property:"article:author",content:h}),(t==null?void 0:t.facebookId)&&d.jsx("meta",{property:"fb:app_id",content:t==null?void 0:t.facebookId}),c&&d.jsx("link",{rel:"preload",as:"image",href:Rq,fetchPriority:"high"}),u&&d.jsx("link",{rel:"preload",as:"image",href:Lq,fetchPriority:"high"}),d.jsx("link",{rel:"canonical",href:`${Rd(i,Q.isMobile,!0)}/${r}${n}`}),a.map(({rel:v,hrefLang:_,media:y,href:S},w)=>d.jsx("link",{rel:v,..._?{hrefLang:_}:{},...y?{media:y}:{},href:S},_||y||w))]})});class yn extends Ma{constructor(){super(...arguments);se(this,"cachedResponses",{})}static deepFormatResponse(n){return n!=null&&n.data?Array.isArray(n.data.data)?(n.data.data=Lh(n.data.data),n):((Array.isArray(n.data)||typeof n.data=="object"&&n.data!==null)&&(n.data=Lh(n.data)),n):n}load(n,s,r,a=!1,o=!1){const i=jo({url:n,...s});let l;if(r&&this.cachedResponses[i]){const c=this.cachedResponses[i];return Promise.resolve(c)}return this.loadData(n,s,a).then(c=>(o?l=yn.deepFormatResponse(c):l=c,r&&(this.cachedResponses[i]=l),l))}static buildApiPath(n,s){const{language:r,page:a=1,specialViewId:o,searchCommand:i,jackpotId:l,providerName:c}=s,u=N.cms.enableFastDb?`/api/public/v1/${r}/partners/${N.app.site_id}/casino/platforms/${Q.isMobile}`:`/api/public/v1/${r}/casino/partners/${N.app.site_id}/platforms/${Q.isMobile}`,m=!!i?"/search":"",h=a?`/pages/${a}`:"";switch(n){case Hs.OPTIONS_PROVIDERS:return o?`${u}/views/${o}/providers`:`${u}/providers`;case Hs.OPTIONS_CATEGORIES:return o?`${u}/views/${o}/categories`:`${u}/categories`;case Hs.SPECIAL_VIEW:return`${u}/views/${o}/games${m}${h}`;case Hs.PROVIDER_JACKPOTS:{const g=l?l.toString():c;return`${u}/jackpots/${g}/games${m}${h}`}case Hs.GAMES:default:return`${u}/games${m}${h}`}}static getGameUrlParams({categoryId:n,providers:s,searchCommand:r,gameExternalIds:a,limit:o,gameIds:i,tournamentIds:l}){const c=n&&n!==pr&&n!==as,u=(s==null?void 0:s.length)&&!s.includes(Ei);return{...c&&{category:n},...o&&{limit:o},...u&&{provider:s.join()},...(i==null?void 0:i.length)&&{ids:i==null?void 0:i.join(",")},...(l==null?void 0:l.length)&&{ids:l==null?void 0:l.join(",")},...r&&{name:r},...(a==null?void 0:a.length)&&{external_id:a.join()}}}loadProviders(n,s=!1){const r=yn.buildApiPath(Hs.OPTIONS_PROVIDERS,n);return this.load(r,yn.getGameUrlParams(n),s,!!N.cms.cacheLayerSubdomain).then(a=>{const{data:o}=a;return o})}loadCategories(n,s=!1){const r=yn.buildApiPath(Hs.OPTIONS_CATEGORIES,n);return this.load(r,{},s,!!N.cms.cacheLayerSubdomain).then(a=>{const{data:o}=a;return o})}loadProviderJackpotGames(n,s=!1){const r=yn.buildApiPath(Hs.PROVIDER_JACKPOTS,n);return this.load(r,yn.getGameUrlParams(n),s,!!N.cms.cacheLayerSubdomain,!0).then(a=>{const{data:{data:o,currentPage:i,lastPage:l,total:c}}=a;return{total:c,data:o,currentPage:i,lastPage:l}})}loadLimitedGames(n,s=!1){return this.load(N.cms.enableFastDb?`/api/public/v1/${n.language}/partners/${N.app.site_id}/casino/platforms/${Q.isMobile}/games`:`/api/public/v1/${n.language}/casino/partners/${N.app.site_id}/platforms/${Q.isMobile}/games`,yn.getGameUrlParams(n),s,!!N.cms.cacheLayerSubdomain,!0).then(r=>{const{data:a}=r;return a})}loadGames(n,s=!1){const{specialViewId:r}=n,a=r?Hs.SPECIAL_VIEW:Hs.GAMES;return this.load(yn.buildApiPath(a,n),yn.getGameUrlParams(n),s,!!N.cms.cacheLayerSubdomain,!0).then(o=>{const{data:{data:i,currentPage:l,lastPage:c,total:u}}=o;return{total:u,data:i,currentPage:l,lastPage:c}})}loadAiDynamicCategoryGames({language:n,playerId:s,groupId:r}){return this.load(N.cms.enableFastDb?`/api/public/v1/${n}/partners/${N.app.site_id}/casino/platforms/${Q.isMobile}/clients/${s}/groups/${r}/games`:`/api/public/v1/${n}/casino/partners/${N.app.site_id}/platforms/${Q.isMobile}/clients/${s}/groups/${r}/games`,{},!0,!!N.cms.cacheLayerSubdomain,!0).then(a=>{const{data:o}=a;return o})}loadIcons(n,s=!1){return this.load(N.cms.enableFastDb?`/api/public/v1/${n.language}/partners/${N.app.site_id}/casino/platforms/${Q.isMobile}/games/icons`:`/api/public/v1/${n.language}/casino/partners/${N.app.site_id}/platforms/${Q.isMobile}/games/icons`,yn.getGameUrlParams(n),s,!!N.cms.cacheLayerSubdomain,!0).then(r=>{const{data:a}=r;return a})}loadMiniGames(n,s=!1){return this.load(N.cms.enableFastDb?`/api/public/v1/${n.language}/partners/${N.app.site_id}/casino/platforms/${Q.isMobile}/mini-games`:`/api/public/v1/${n.language}/casino/partners/${N.app.site_id}/platforms/${Q.isMobile}/mini-games`,yn.getGameUrlParams(n),s,!!N.cms.cacheLayerSubdomain,!0).then(r=>{const{data:a}=r;return a})}loadGamesByIds(n,s=!1){return this.load(N.cms.enableFastDb?`/api/public/v1/${n.language}/partners/${N.app.site_id}/casino/platforms/${Q.isMobile}/games/by-ids`:`/api/public/v1/${n.language}/casino/partners/${N.app.site_id}/platforms/${Q.isMobile}/games/by-ids`,yn.getGameUrlParams(n),s,!!N.cms.cacheLayerSubdomain,!0).then(r=>{const{data:a}=r;return a})}loadGame({language:n,externalId:s}){return this.load(N.cms.enableFastDb?`/api/public/v1/${n}/partners/${N.app.site_id}/casino/platforms/${Q.isMobile}/games/${s}`:`/api/public/v1/${n}/casino/partners/${N.app.site_id}/platforms/${Q.isMobile}/games/${s}`,{},!0,!!N.cms.cacheLayerSubdomain,!0).then(r=>{const{data:a}=r;return a})}getPromotedGames(n){return this.load(N.cms.enableFastDb?`/api/public/v1/${n.language}/partners/${N.app.site_id}/casino/platforms/${Q.isMobile}/promoted-games/${n.randomNumber}`:`/api/public/v1/${n.language}/casino/partners/${N.app.site_id}/platforms/${Q.isMobile}/promoted-games/${n.randomNumber}`,yn.getGameUrlParams(n),!1,!!N.cms.cacheLayerSubdomain,!0).then(s=>{const{data:r}=s;return r})}getAiRecommendedGames(n,s){return this.load(N.cms.enableFastDb?`/api/public/v1/${n}/partners/${N.app.site_id}/casino/platforms/${Q.isMobile}/clients/${s??"-1"}/type-recommended-games`:`/api/public/v1/${n}/casino/partners/${N.app.site_id}/platforms/${Q.isMobile}/clients/${s??"-1"}/type-recommended-games`,{},!1,!!N.cms.cacheLayerSubdomain,!0).then(r=>({data:r.data.data,type:r.data.type}))}loadGamesBadges(n){return this.load("/json/getPageOptions",{partner_id:N.app.site_id,type:n},!1,!!N.cms.cacheLayerSubdomain).then(({options:s})=>s!=null&&s.labels?s.labels:{})}loadTournamentGames({tournamentId:n,paginate:s,language:r}){return this.load(N.cms.enableFastDb?`/api/public/v1/${r}/partners/${N.app.site_id}/casino/platforms/${Q.isMobile}/tournaments/${n.toString()}/games/pages/${s}`:`/api/public/v1/${r}/casino/partners/${N.app.site_id}/platforms/${Q.isMobile}/tournaments/${n.toString()}/games/pages/${s}`,{},!1,!!N.cms.cacheLayerSubdomain,!0).then(a=>{const{data:{data:o,currentPage:i,lastPage:l,total:c}}=a;return{total:c,data:o,currentPage:i,lastPage:l}})}getAvailableTournaments(n){return this.load(N.cms.enableFastDb?`/api/public/v1/eng/partners/${N.app.site_id}/casino/platforms/${Q.isMobile}/tournaments/available`:`/api/public/v1/eng/casino/partners/${N.app.site_id}/platforms/${Q.isMobile}/tournaments/available`,yn.getGameUrlParams(n),!1,!!N.cms.cacheLayerSubdomain).then(s=>new Set(s.data))}loadLoyaltyPointLevels(n){return this.load(`/api/public/v1/${n}/partners/${N.app.site_id}/loyalty-points`,{},!1,!!N.cms.cacheLayerSubdomain)}loadLoyaltyProgramGroupsWithLevels(n){return this.load(`/api/public/v2/${n}/partners/${N.app.site_id}/loyalty-program/groups`,{},!1,!!N.cms.cacheLayerSubdomain)}loadLoyaltyProgramBenefits(n){return this.load(`/api/public/v2/${n}/partners/${N.app.site_id}/loyalty-program/benefits`,{},!1,!!N.cms.cacheLayerSubdomain)}loadBonusRequestItems(n){return this.load(`/api/public/v1/${n}/partners/${N.app.site_id}/bonus-requests`,{},!1,!!N.cms.cacheLayerSubdomain)}}const Gb=new yn;var rc=(e=>(e[e.Info=-1]="Info",e[e.Claimable=0]="Claimable",e[e.AutoApply=1]="AutoApply",e[e.Assignable=2]="Assignable",e))(rc||{}),Dq=(e=>(e[e.All=1]="All",e[e.Activated=2]="Activated",e[e.NotActivated=3]="NotActivated",e[e.WheelRewards=4]="WheelRewards",e))(Dq||{});const ife=[{label:"All",value:1},{label:"Activated",value:2},{label:"Not Activated",value:3},{label:"Wheel Rewards",value:4}],jq=1,Bq=(e,t)=>{if(!t)return null;const n=e.find(r=>r.items.some(lt("id",t))),s=n?e.findIndex(r=>r===n):-1;return{group:n,index:s}},Fq=(e,t,n,s,r)=>tjq&&t>=n.minPoint?e[Math.min(e.length-1,s+1)]:(r==null?void 0:r.items[0])??n,lfe=(e,t,n,s)=>t.reduce((r,a)=>{var u,f;const o=new Set,i=new Set,l=((u=e.find(lt("id",a.lpMinId)))==null?void 0:u.title)??null,c=((f=e.find(lt("id",a.lpMaxId)))==null?void 0:f.title)??null;return e.forEach(m=>{m.order>=a.minOrder&&m.order<=a.maxOrder&&(o.add(m.groupSrc),i.add(m.groupId))}),[...r,{...a,srcs:Array.from(o),groupIds:Array.from(i),minLevelTitle:l,maxLevelTitle:c,active:Uq({benefitId:a.id,benefitApplyMode:a.applyMode,benefitMinOrder:a.minOrder,benefitMaxOrder:a.maxOrder,clientBenefitIds:n,userLoyaltyLevelOrder:s})}]},[]),Uq=({benefitId:e,benefitApplyMode:t,benefitMinOrder:n,benefitMaxOrder:s,clientBenefitIds:r,userLoyaltyLevelOrder:a})=>{if(t===rc.Claimable||t===rc.Assignable)return r.includes(e);if(a){if(t===rc.AutoApply)return a>=n&&a<=s;if(t===rc.Info)return n<=a&&a<=s}return!1},Ug={data:{loyaltyProgramGroups:[],loyaltyInfo:null}},$q=e=>{const t=xt(),{isLoggedIn:n}=ye(),{language:s}=ke(),{profile:{loyalty_point:r}}=ye(),[{loading:a,data:{loyaltyProgramGroups:o,loyaltyInfo:i}},l]=p.useState({loading:!1,...Ug});p.useEffect(function(){if(e){l({loading:!0,...Ug});const m=n?ee.get({},"get_loyalty_info"):Promise.resolve(null);Promise.all([Gb.loadLoyaltyProgramGroupsWithLevels(s),m]).then(([h,g])=>{if(t.current)if(h.data)l({loading:!1,data:{loyaltyProgramGroups:h.data,loyaltyInfo:(g==null?void 0:g.result)===0?g.details:null}});else throw new Error}).catch(()=>{t.current&&l({loading:!1,...Ug})})}},[s,n,e,t]);const c=p.useMemo(()=>{if(i){const f=Bq(o,i.LoyaltyLevelId);if(f&&f.group){const m=f.group.items.findIndex(h=>h.id===i.LoyaltyLevelId);if(m>-1){const h=f.group.items[m],g=h.order,E=i.LoyaltyLastEarnedPoints??0,b=i.LoyaltyLastEarnedPointso.reduce((f,m)=>{const h=m.items.map(g=>({...g,groupAlias:m.alias,groupLevelColor:m.levelColor,groupSrc:m.src,groupId:m.id}));return[...f,...h]},[]),[o]);return{isLoyaltyDataLoading:a,userLoyaltyProgramStatus:c,loyaltyProgramGroups:o,levelsWithGroups:u,levelUpBonuses:(i==null?void 0:i.LevelUpBonuses)??[],loyaltyRates:(i==null?void 0:i.LoyaltyRates)??[]}};var Gq=(e=>(e.BUTTON="button",e.SUBMIT="submit",e.RESET="reset",e))(Gq||{});const Vu=({type:e="button",title:t,className:n,loading:s=!1,showTitle:r=!0,children:a,...o})=>{const i=Se();return d.jsxs("button",{className:`${n} ${s?"loading":""}`,type:e,...t&&{title:i(t)},...o,children:[t&&r?d.jsx("span",{children:i(t)}):null,a]})},Vq=()=>{const e=p.useRef(new Set),{isLoggedIn:t,profile:{loyalty_level_id:n}}=ye(),{languageRtl:s}=ke(),r=Se(),a=p.useRef(),{levelsWithGroups:o}=$q(a.current!==void 0&&a.current!==n),i=a.current!==void 0?o.find(lt("id",a.current)):void 0,l=n!==void 0?o.find(lt("id",n)):void 0;p.useEffect(()=>{a.current===void 0&&n!==void 0&&(a.current=n)},[n]),p.useEffect(()=>{let c;i&&l&&(i.orderl.order&&(c=r("Downgraded"))),t&&a.current!==n&&c&>.getInstance().loyaltyLevelNotificationsEnabled&&(Ce.info(d.jsxs("p",{className:"toast-notification-message-content",children:[d.jsx("i",{className:"bc-i-PushNotificationF toast-notification-icon"}),d.jsx("span",{className:"toast-notification-message-text",children:r("Your loyalty level has been {1} to {2}.",{1:c,2:(l==null?void 0:l.alias)||""})})]}),{theme:"light",position:"top-right",className:"toast-notification-message",autoClose:!1}),a.current=n)},[n,t,i,l,r]),p.useEffect(function(){const u=[];let f=null;const m={current:!1},h=()=>{f!==null&&(Ce.dismiss(f),f=null)};if(t){const g=ee.subscribe({source:"notifications",what:{user:[]}},E=>{const b=Object.entries(E).map(([v,_])=>({swarmId:Number(v),notifications:_})).filter(({swarmId:v,notifications:_})=>v&&(_==null?void 0:_.LevelUpBonus)&&!e.current.has(v));if(b!=null&&b.length){const v=b.map(({swarmId:_})=>_);b.forEach(_=>{const{notifications:y,swarmId:S}=_,w=Ce.info(d.jsxs("p",{className:"toast-notification-message-content",children:[d.jsx("i",{className:"bc-i-PushNotificationF toast-notification-icon"}),d.jsx("span",{className:"toast-notification-message-text",children:r("You have received {1} {2}",{1:y.LevelUpBonus.Amount,2:y.LevelUpBonus.CurrencyId})}),d.jsx("i",{className:"bc-i-close-remove toast-notification-message-remove",onClick:()=>{m.current||(u.splice(u.indexOf(w),1),Ce.dismiss(w),u.length<=1&&h(),e.current.add(S),ee.get({notification_id:S},"mark_as_read_notification"))}})]}),{theme:"light",position:"top-right",closeButton:!1,className:"toast-notification-message",autoClose:!1,draggable:!1,rtl:s});u.push(w)}),u.length>1&&f===null&&(f=Ce(d.jsx(Vu,{className:"toast-close-all-button",title:"Close all",onClick:()=>{m.current=!0,u.forEach(_=>Ce.dismiss(_)),u.length=0,h(),m.current=!1,v.forEach(_=>e.current.add(_)),ee.get({notification_id_list:v},"mark_as_read_notification")}}),{position:"top-right",closeButton:!1,className:"toast-close-all-wrapper",autoClose:!1,draggable:!1,style:{background:"transparent",boxShadow:"none",padding:0},rtl:s}))}});return()=>{ee.unsubscribe(g),u.forEach(E=>Ce.dismiss(E)),h()}}},[t,r,s])};var fR=(e=>(e[e.Product=1]="Product",e[e.Url=2]="Url",e))(fR||{}),pf=(e=>(e.PER_PAGE="per_page",e.AFTER_REGISTRATION="after_registration",e.CRM="crm",e))(pf||{});const bw=e=>nt(_L(t=>t.showOnPages.map(n=>({...t,showOnPage:n,...e?{repeatTime:e}:{}}))),Jb(t=>t.showOnType===fR.Product?"products":"urls"),({products:t=[],urls:n=[]})=>({products:Jb(({showOnPage:s})=>s)(t),urls:n})),Hq=(e,t)=>Te.getItemFromLocalStorage(`${Vx}_${e}_${t}`),Sw=(e,t,n)=>Te.setItemToLocalStorage(`${Vx}_${e}_${t}`,!0,n);var Ro=(e=>(e.Subscription="19303",e.SalaryRange="22045",e))(Ro||{});const Wq=Eu(Wr),zq=()=>{const[e,t]=p.useState(ht.Home),{pathname:n}=xn(),{currentPath:s}=ke();return p.useEffect(function(){switch(s){case Hn:t(a=>n.includes(Ye.Calendar)?ht.LiveCalendar:n.includes(Ye.Results)?ht.Results:n.includes(Ye.Tournaments)?ht.SportTournaments:n.includes(Ye.AsianView)?ht.AsianView:n.includes(Ye.PopularBets)?ht.PopularBets:n.includes(Ye.Live)?ht.Live:n.includes(Ye.Prematch)?ht.PreMatch:a);break;case Wf:t(n.includes(dO.SPORT)?ht.Pinnacle:ht.PinnacleEsports);break;case pm:{const[,,a]=n.split("/");t(a===ap.CASINO?ht.Casino:ht.SportHome);break}case Qi:t(ht.Casino);break;case wu:{const[,,,a]=n.split("/");t(a===tb?ht.Games:a===Pm?ht.LiveCasino:a===nb?ht.TvGames:a===xm?ht.VirtualSports:ht.Casino);break}default:t(a=>Wq[s]??a)}},[s,n]),e},Cw="?",Yq=-1,qq=Object.values(Ro),Tw={products:{},urls:[]},Kq=({content:e,onClose:t,href:n,target:s,title:r,eventDate:a})=>ve.open({type:"info",content:e,...a&&{countDownDate:Ma.getTimestamp(a)},title:r,showCheckbox:!0,onClose:t,buttons:[{label:"ok close",callBack:o=>{n&&window.open(n,s),t(o)}}]},mn.High),Qq=()=>{const e=xt(),[{products:t,urls:n},s]=p.useState(Tw),[r,a]=p.useState(Tw),{language:o}=ke(),{pathname:i,search:l}=xn(),c=zq(),u=Dm(),f=p.useRef(!1),m=p.useRef([]),h=p.useRef([]),{loginInProgress:g,isLoggedIn:E,profile:{is_verified:b,deposit_count:v,birth_date:_}}=ye();p.useEffect(function(){m.current=[]},[c,o,i]);const y=p.useCallback(({id:x,repeatTime:I,swarmId:C,...T})=>{const P=E1((A=!1)=>{m.current.push(x),T.type===pf.CRM&&h.current.push(x),A?Sw(x,o):Sw(x,o,ox(I)),C&&ee.get({notification_id:C},"mark_as_read_notification")});return Kq({...T,onClose:P})},[o]),S=p.useCallback(({showTo:x,profileStatus:I,profileTypes:C,customProfileTypes:T,id:P,depositType:A,profileActionType:O,excludedCurrencies:M,ageRestriction:k})=>!Hq(P,o)&&rb(E,b,I)&&!Om({showTo:x,profileTypes:C,customProfileTypes:T,profileActionType:O,excludedCurrencies:M},u)&&yO(v,E,A)&&sb(k,_)&&!m.current.includes(P)&&!h.current.includes(P),[_,v,E,b,o,u]),w=p.useCallback(x=>{const[I,C]=x.split(Cw);return C&&`${Cw}${C}`===l||I&&I===i},[l,i]);p.useEffect(function(){f.current=!0,Jn.getPopups(o,pf.PER_PAGE).then(bw()).then(I=>{e.current&&(f.current=!1,s(I))}).catch(()=>{e.current&&(f.current=!1)})},[e,o]),p.useEffect(function(){if(E){const I=ee.subscribe({source:"notifications",what:{user:[]}},C=>{const P=Object.entries(C).map(([A,{Alias:O}])=>({swarmId:Number(A),Alias:O})).filter(Pt("Alias")).filter(({Alias:A})=>!qq.includes(A));P.length&&Promise.all(P.map(({Alias:A,swarmId:O})=>Jn.getCrmPopup(o,pf.CRM,A).then(M=>({...M,swarmId:O})))).then(bw(Yq)).then(A=>{e.current&&a(O=>({products:{...O.products,...A.products},urls:[...O.urls,...A.urls]}))}).catch(Ut)},Ut,!1);return()=>{ee.unsubscribe(I)}}},[E,e,o]),p.useEffect(function(){if(!(g||f.current)){const C=n.filter(({showOnPage:T})=>w(T)).filter(S).map(y);return()=>{C==null||C.forEach(({close:T})=>T())}}},[S,w,g,y,i,l,n]),p.useEffect(function(){if(!(g||f.current)){const C=(t[c]??[]).filter(S).map(y);return()=>{C==null||C.forEach(({close:T})=>T())}}},[c,S,g,y,t]),p.useEffect(function(){if(!(g||f.current)){const I=r.products[c]??[],C=r.urls.filter(({showOnPage:P})=>w(P)),T=[...I,...C].filter(S).map(y);return()=>{T==null||T.forEach(({close:P})=>P())}}},[r,c,S,w,g,y,i,l])},Xq=Ne(()=>B(()=>import("./BrazilWithSignicatMigrationProfileUpdatePopup-CU-So1n_.js"),__vite__mapDeps([585,194,195,1,196,197,198,174,199,201,172,202,182]))),Jq=Ne(()=>B(()=>import("./BrazilWithSignicatMigrationGoToVerificationPopup-DlerK9n2.js"),__vite__mapDeps([586,1]))),Zq=()=>{const e=xt(),{profile:{terms_and_conditions_version:t},isLoggedIn:n,loginInProgress:s}=ye(),r=p.useCallback(()=>{zx(kv),ve.open(a=>({hideCloseButton:!0,Component:()=>d.jsx(p.Suspense,{fallback:null,children:d.jsx(Jq,{close:a})})}))},[]);p.useEffect(()=>{var a,o,i;e.current&&n&&!s&&((i=(o=(a=N.app.brazilLicense)==null?void 0:a.migration)==null?void 0:o.migrateWithSignicat)!=null&&i.enabled)&&!window.location.href.includes("/help/")&&t!==kv&&ve.open(l=>({hideCloseButton:!0,fullScreen:!0,className:"signicatMigrationPopup",Component:()=>d.jsx(p.Suspense,{fallback:null,children:d.jsx(Xq,{close:l,onSuccess:r})})}))},[r,e,n,s,t])};var dE=(e=>(e[e.GlobalPartnerID=900]="GlobalPartnerID",e))(dE||{}),eK=(e=>(e[e.GLOBAL=0]="GLOBAL",e[e.LOCAL=1]="LOCAL",e))(eK||{}),tK=(e=>(e.REWARDS="rewards",e.ADDITIONAL_REWARDS="additionalRewards",e.YO_ESTATE="yoEstate",e))(tK||{}),nK=(e=>(e[e.Ortak=1]="Ortak",e[e.YoEstate=2]="YoEstate",e))(nK||{});const sK={loading:!1,data:[]},ww={loading:!1,data:[]},Iw=()=>{const e=xt(),[t,n]=p.useState(sK),[s,r]=p.useState(ww),[a,o]=p.useState(ww),[i,l]=p.useState(!1),{site_id:c,additionalRewardsConfigurations:{requestedPartnerId:u,yoRealEstateCustomPartnerId:f}}=N.app,m=p.useCallback((b,v)=>{n({data:[],loading:!0}),ee.get({...b&&{usage:1,nft_partner_id:v?dE.GlobalPartnerID:u||c}},"get_client_rewards").then(({result:_,details:y})=>{e.current&&_===0?n({data:y,loading:!1}):n({data:[],loading:!1})}).catch(_=>{e.current&&(ve.open({type:"error",title:"Error",content:`Error occurred: ${_.msg}`}),n({data:[],loading:!1}))})},[e,u,c]),h=p.useCallback(()=>{o({data:[],loading:!0}),ee.get({partner_id:f||c},"yoestate_get_partner_collections").then(({result:b,details:v})=>{const{HasError:_,Data:y}=v;if(e.current&&b===0&&!_){const S=y.map(({collectionId:w,logo:x,name:I,price:C,count:T})=>({collectionId:w,logo:x,name:I,price:C,count:T}));o({data:S,loading:!1})}else o({data:[],loading:!1})}).catch(()=>{e.current&&(ve.open({type:"error",title:"Error",content:"Error occurred"}),o({data:[],loading:!1}))})},[e,c,f]),g=p.useCallback(b=>{r({data:[],loading:!0}),ee.get({partner_id:b?dE.GlobalPartnerID:u||c},"ortak_get_partner_collections").then(({result:v,details:_})=>{const{HasError:y,Data:S}=_;if(e.current&&v===0&&!y){const w=S.map(({collectionId:x,logo:I,name:C,price:T,count:P})=>({collectionId:x,logo:I,name:C,price:T,count:P}));r({data:w,loading:!1})}else r({data:[],loading:!1})}).catch(()=>{e.current&&(ve.open({type:"error",title:"Error",content:"Error occurred"}),r({data:[],loading:!1}))})},[e,u,c]),E=p.useCallback((b,v)=>{l(!0),ee.get({reward_id:b,external_wallet_id:v},"collect_reward").then(({result:_,result_text:y})=>{e.current&&_===0?(ve.open({title:"Success",type:"success",content:"Bonus Claim was successfully"}),m()):ve.open({type:"error",title:"Error",content:y||Qn})}).catch(_=>{e.current&&ve.open({type:"error",title:"Error",content:`Error occurred : ${_.msg}`})}).finally(()=>l(!1))},[m,e]);return{rewardsData:t,yoEstateRewards:a,nftRewards:s,claimBonusWithWallet:E,rewardsClaimLoading:i,fetchBonusRewardsData:m,fetchYoEstateData:h,fetchNftRewardsData:g}},rK=Ne(()=>B(()=>import("./BonusPieInfoPopup-DrukqY8H.js"),__vite__mapDeps([587,1]))),Aw=2,aK=()=>{var f,m;const{enableBonusPieInfoPopup:e}=N.app,{isLoggedIn:t,loginInProgress:n,isRestoredLogin:s}=ye(),{fetchBonusRewardsData:r,rewardsData:{data:a,loading:o}}=Iw(),{fetchBonusRewardsData:i,rewardsData:{data:l,loading:c}}=Iw(),u=((f=a[0])==null?void 0:f.Amount)>=Aw||((m=l[0])==null?void 0:m.Amount)>=Aw;p.useEffect(()=>{e&&t&&(r(!0,!0),i(!0,!1))},[t,r,i,e]),p.useEffect(()=>{e&&t&&!o&&!c&&!n&&!s&&u&&ve.open(h=>({type:"info",title:"Bonus Pie Info",Component:()=>{var g,E;return d.jsx(rK,{globalPoints:(g=a[0])==null?void 0:g.Amount,localPoints:(E=l[0])==null?void 0:E.Amount,close:h})}}))},[t,o,c,a,l,e,n,u,s])},oK=p.lazy(()=>B(()=>import("./LowBalancePopUp-BeNKt8j-.js"),__vite__mapDeps([588,1,589]))),iK=()=>{const{isLoggedIn:e,profile:{calculatedBalance:t,casino_balance:n,currency:s,deposit_count:r}}=ye(),{productType:a}=ke(),{lowBalancePopup:{enabled:o,balanceThresholdByCurrencies:i,popupLifetimeMinutes:l,disableForWithoutDepositUsers:c}}=N.app;p.useEffect(function(){if(o&&e&&s in i&&!(c&&r===0)){const f=n!==null,m=n!==null&&a===Ge.CASINO?n:t,h=f?a===Ge.SPORTSBOOK?Tv:Gx:Tv;if(!Te.getItem(h)){const g=i[s];m({type:"lowBalance",title:"Low Balance",Component:()=>d.jsx(p.Suspense,{fallback:null,children:d.jsx(oK,{close:E})})})),Te.setItem(h,!0,ax(l)))}}},[i,t,n,s,r,c,o,e,l,a])},lK=({iframeUrl:e,onIframeLoad:t})=>{const{profile:{id:n,currency:s,owner_id:r}}=ye(),{language:a}=ke(),o=`${e}?player_id=${r??n}&language=${a}¤cy=${s}&platform=${Q.isMobile?"Mobile":"Web"}¤t_page_url=${encodeURIComponent(window.location.href)}`;return d.jsx("iframe",{title:"CRM Popup",src:o,onLoad:t})},cK="mark_as_read_notification",uK=(e,t)=>{const n=()=>{ee.get({notification_id:t},cK)};ve.open({Component:()=>d.jsx(lK,{iframeUrl:e,onIframeLoad:n}),className:"crmPopup"})},dK=()=>{const{isLoggedIn:e}=ye(),{pathname:t}=xn();p.useEffect(function(){if(e){const s=ee.subscribe({source:"notifications",what:{user:[]}},r=>{Object.entries(r).map(([o,i])=>({swarmId:Number(o),notifications:i})).filter(({swarmId:o,notifications:i})=>o&&(i==null?void 0:i.CrmPopup)).forEach(({notifications:o,swarmId:i})=>{const{CrmPopup:l}=o,c=t.split("/").filter(Boolean)[0],u=t.split("/").filter(Boolean).at(-1);let f=!1;switch(o.CrmPopup.Page.Comparison){case 1:f=t===l.Page.Value;break;case 2:f=t!==l.Page.Value;break;case 3:f=c.startsWith(l.Page.Value);break;case 4:f=!!(u&&u.endsWith(l.Page.Value));break;case 5:f=t.includes(l.Page.Value);break;case 6:f=!t.includes(l.Page.Value);break}f&&uK(l.IframeUrl,i)})});return()=>{ee.unsubscribe(s)}}},[e,t])},fK=({close:e,version:t})=>{const n=Se(),s=Ua(),r=p.useCallback(()=>{ve.open(i=>({type:"warning",title:"Warning",content:D2,hideCloseButton:!0,buttons:[{label:"Log out",callBack:()=>{s({clearAuthData:!1}).finally(i)}}]}))},[s]),a=p.useCallback(()=>{t?zx(t).then(i=>{e(),i||r()}):Wx().then(i=>{e(),i||r()})},[e,t,r]),o=n(M2).replace(/href=(["'])(.*?)\1/gi,`href="/?helpPageContent=${eb}"`).replace(/\s+rel=(["'])(.*?)\1/gi,"").replace(/)/gi,'{s({clearAuthData:!1}).finally(e)}})]})]})},pK=()=>{const{isLoggedIn:e,isRestoredLogin:t,profile:{active_step:n,active_step_state:s,terms_and_conditions_version:r}}=ye(),{acceptTermsAndConditionsPopUp:a,ukLicense:o}=N.app,l=Ga().get(Lv)===eb;p.useEffect(()=>{o!=null&&o.enabled&&n===wt.TERMS_AND_CONDITIONS&&s===Zi.WAITING||(e||t)&&r&&a&&!l&&Jn.getTermsConditionsVersion().then(c=>{Number(r)!==(c==null?void 0:c.terms_and_conditions_version)&&ve.open(u=>({Component:()=>d.jsx(fK,{close:u,version:String(c==null?void 0:c.terms_and_conditions_version)}),hideCloseButton:!0}),mn.High)})},[a,e,t,l,r,o==null?void 0:o.enabled,n,s])},Pw="showPopupForNotLoggedUsers",xw="hide",$g=18,mK=()=>{const{ageRestrictionPopup:e}=N.app,t=Se(),{isLoggedIn:n,loginInProgress:s}=ye();p.useEffect(()=>{const r=()=>{ve.open(a=>({title:"user_verified_age_title",hideCloseButton:!0,underButtonsContent:"user_verified_age_description",content:t("user_verified_age_{age}",{age:(e==null?void 0:e.minAllowedAge)??$g}),buttons:[{label:t("I'm over {age}",{age:(e==null?void 0:e.minAllowedAge)??$g}),callBack:()=>{a(),sessionStorage.setItem(Pw,xw)}},{label:t("I'm under {age}",{age:(e==null?void 0:e.minAllowedAge)??$g}),callBack:()=>{window.location.href=(e==null?void 0:e.redirectionUrl)??"https://www.google.com/"}}]}),mn.Blocker)};e!=null&&e.enabled&&!s&&!n&&setTimeout(()=>{sessionStorage.getItem(Pw)!==xw&&r()},1e3)},[n,s,t,e==null?void 0:e.enabled,e==null?void 0:e.minAllowedAge,e==null?void 0:e.redirectionUrl])},hK="country";var gK=(e=>(e.CHANGE="change",e.BLUR="blur",e.FOCUS="focus",e))(gK||{});const _K={phone:"phoneNumber"},fE={visible:(e,t)=>e.includes(t),invisible:(e,t)=>!e.includes(t)},pE=(e,t,n)=>{if(t!=="any")switch(t){case"string":return e.toString();case"number":{const s=parseFloat(e);return isNaN(s)?e:s}case"boolean":return e==="true"?!0:e==="false"?!1:e}switch(n){case"text":return e.toString();case"number":return parseFloat(e);default:if(n!=="image"&&n!=="submit"&&n!=="info"&&n!=="html"&&n!=="component")return e}},vK=e=>e.map(t=>t.map(n=>n.map(s=>({...s,name:s.name||`_ignore__${Ji()}`})))),Ul=e=>{switch(typeof e){case"string":return"string";case"number":return"number";case"boolean":return"boolean";default:return"any"}},Gg=({visibleElements:e,dependenciesGroup:t,formElement:n})=>{const s={};for(const[r,a]of Object.entries(t))if(a[n.name]){const o=a[n.name],i=pE(n.value,n.valueType,n.type);for(const[l,c]of Object.entries(o)){const u=fE[r](c,i);e[l]!==u&&(s[l]=u)}}return uo(s)?e:{...e,...s}},EK=e=>{const{language:t}=ke(),n=A=>Bd(A).reduce((O,M)=>{var k;if((k=M.dependencies)!=null&&k.length){const[D]=M.dependencies;if(D.value!=="show"&&D.value!=="hide")return O;const j=D.value!=="show",V=Bd(A).find(U=>U.name===D.related_field_name);return V&&D.related_field_values.includes(typeof V.value!="string"?String(V.value):V.value)?{...O,[M.name]:D.value==="show"}:M.showOn?O:{...O,[M.name]:j}}return O},{}),s=A=>EL(A).reduce((O,[M,k])=>{var U;if(!((U=k.dependencies)!=null&&U.length))return{...O,[M]:k};const[D]=k.dependencies;if(D.value!=="disable"&&D.value!=="enable")return{...O,[M]:k};const j=Bd(A).find(G=>G.name===D.related_field_name),V=j&&D.related_field_values.includes(j.value),R={...k};return D.value==="enable"?R.disabled=!V:D.value==="disable"&&(V?R.disabled=!0:delete R.disabled),{...O,[M]:R}},{}),[r,a]=p.useState(()=>{var j,V;const A=vK(e),O=A.reduce((R,U,G)=>{const z=U.flat().reduce((K,ne)=>{var ae;const{element:J,...$}=ne,L=J&&N.formElements[J]?vL(N.formElements[J]):{},W=$.type==="hidden"?$.type:L.type||$.type;_c(L,{...$,type:W});let q=L.value||L.defaultValue,de=Ul(q);if(q===void 0&&((ae=L.options)!=null&&ae.length)){const ie=L.type==="select_multiple"?[L.options[0].value]:L.options[0].value;de=Ul(ie),(L.type==="select"||L.type==="select_multiple")&&!L.placeholder&&(q=ie)}const ue=q!==void 0,Y={...L,step:G,value:ue?q:"",initialValue:ue?q:"",valueType:de,error:"",hasError:!1,touched:ue,focused:!1,validationEnabled:!uo(L.rules)};return{...K,[L.name]:Y}},{});return{...R,...z}},{}),M=A.flat(2).reduce((R,U)=>{const G=U.showOn?["visible",U.showOn]:U.hideOn?["invisible",U.hideOn]:null;if(G){const[z,K]=G;for(const[ne,J]of Object.entries(K))R[z][ne]||(R[z][ne]={}),R[z][ne][U.name]=J}return R},{visible:{},invisible:{}}),k={};for(const[R,U]of Object.entries(M))for(const[G,z]of Object.entries(U))for(const[K,ne]of Object.entries(z)){if(K in k&&!k[K])break;k[K]=fE[R](ne,(j=O[G])==null?void 0:j.value)}const D=((V=Object.values(O).find(lt("type",hK)))==null?void 0:V.name)||"";return{step:0,formConfig:A,dependenciesGroup:M,countryElementName:D,formData:s(O),visibleElements:{...k,...n(O)}}}),[o,i]=p.useState(!1),l=p.useMemo(()=>r.formConfig.map(A=>A.map(O=>O.filter(({name:M})=>typeof r.visibleElements[M]>"u"||r.visibleElements[M]))),[r.formConfig,r.visibleElements]),c=p.useMemo(()=>l[r.step],[l,r.step]),u=()=>Object.values(r.formData).filter(({type:A})=>A&&A!=="separator"&&A!=="info"&&A!=="html").reduce((A,{name:O,value:M,type:k,valueType:D})=>{if(r.visibleElements[O]===void 0||r.visibleElements[O]){const j=pE(M,D,k);if(j!==void 0)return{...A,[O]:j}}else return{...A,[O]:null};return A},{}),f=p.useCallback((A,O,M)=>{a(k=>{var D,j,V;switch(A){case"focus":return{...k,formData:{...k.formData,[O]:{...k.formData[O],manuallyChanged:!1,focused:!0}}};case"blur":{const R=Wa(M,O,k.formData,{countryCode:(D=k.formData[k.countryElementName])==null?void 0:D.value}),U={...k.formData[O],touched:!0,focused:!1,manuallyChanged:!1,value:M,hasError:!!R,error:R},G={...k.formData,[O]:U},z={...Gg({visibleElements:k.visibleElements,dependenciesGroup:k.dependenciesGroup,formElement:U}),...n(G)};return{...k,visibleElements:z,formData:s(G)}}case"change":{const R=Wa(M,O,k.formData,{countryCode:(j=k.formData[k.countryElementName])==null?void 0:j.value}),U={...k.formData[O],touched:!0,value:M,manuallyChanged:!1,hasError:!!R,error:k.formData[O].type&&["checkbox","agree","file"].includes(k.formData[O].type)||k.formData[O].validateOnChange?R:""},G={...k.formData,[O]:U},z=Object.values(k.formData).filter(ne=>{const{rules:J}=ne;return J&&(J.match&&J.match.value===O||O===k.countryElementName&&J.method||J.notMatch&&J.notMatch.value===O)});for(const ne of z){const J=Wa(ne.value,ne.name,G,{countryCode:(V=G[k.countryElementName])==null?void 0:V.value});G[ne.name]={...ne,error:J,hasError:!!J}}const K={...Gg({visibleElements:k.visibleElements,dependenciesGroup:k.dependenciesGroup,formElement:U}),...n(G)};return{...k,visibleElements:K,formData:s(G)}}default:return k}})},[t]),m=Object.keys(r.formData).reduce((A,O)=>{const{validationEnabled:M,showOn:k,hideOn:D,valueType:j,initialValue:V,defaultValue:R,hasError:U,dependencies:G,...z}=r.formData[O];return A[O]=z,A},{}),h=p.useCallback(A=>{a(O=>{var D;const M={...O.formData},k={};for(const[j,V]of Object.entries(A))if(V!==void 0){const R=O.formData[j],U=Ul(V),G=Wa(V,j,O.formData,{countryCode:(D=O.formData[O.countryElementName])==null?void 0:D.value});M[j]={...R,valueType:U,value:V,initialValue:V,hasError:!!G,error:G,touched:!0};for(const[z,K]of Object.entries(O.dependenciesGroup))if(K[j]){const ne=K[j],J=pE(V,U,R.type);for(const[$,L]of Object.entries(ne)){if($ in k&&!k[$])break;const W=fE[z](L,J);O.visibleElements[$]!==W&&(k[$]=W)}}}return{...O,formData:M,visibleElements:{...uo(k)?O.visibleElements:k,...n(M)}}})},[t]),g=p.useCallback((A=void 0)=>{a(O=>({...O,formData:Object.values(O.formData).reduce((M,k)=>{const{touched:D,name:j}=k;return(A?A.includes(j):D)?M[j]={...k,value:k.initialValue,error:"",touched:k.initialValue!=="",focused:!1}:M[j]=k,M},{})}))},[]),E=p.useCallback((A,O,M="",k=!0)=>{a(D=>{const j={...D.formData[A],value:O,error:M,touched:k,manuallyChanged:!0,valueType:Ul(O)},V={...D.formData,[A]:j};return{...D,formData:V,visibleElements:{...Gg({visibleElements:D.visibleElements,dependenciesGroup:D.dependenciesGroup,formElement:j}),...n(V)}}})},[]),b=p.useCallback((A,O,M)=>{a(k=>{var D;return{...k,formData:{...k.formData,[A]:{...k.formData[A],[O]:M,...O==="value"?{touched:!0}:A in k.formData&&O==="options"&&k.formData[A].type==="select"?{valueType:Ul((D=M[0])==null?void 0:D.value)}:null}}}})},[]),v=p.useCallback((A,O)=>{a(M=>{var D;const k={...M.formData,[A]:{...M.formData[A],rules:O||{}}};return uo(O)?(k[A].validationEnabled=!1,k[A].error="",k[A].hasError=!1):(k[A].validationEnabled=!0,k[A].error=Wa(k[A].value,A,k,{countryCode:(D=k[M.countryElementName])==null?void 0:D.value}),k[A].hasError=!!k[A].error),{...M,formData:k}})},[t]),_=p.useCallback((A,O)=>{a(M=>({...M,step:M.formData[A].step,formData:{...M.formData,[A]:{...M.formData[A],error:O}}}))},[]),y=p.useCallback(A=>a(O=>({...O,step:A})),[]),S=p.useCallback((A=c)=>A.forEach(O=>O.forEach(({name:M})=>f("blur",M,r.formData[M].value))),[c,f,r.formData]),w=p.useCallback(()=>l.forEach(S),[l,S]),x=(A=c)=>{var O;for(const M of A)for(const{name:k}of M)if(Wa(m[k].value,k,r.formData,{countryCode:(O=r.formData[r.countryElementName])==null?void 0:O.value}))return _K[k]||k},I=()=>{for(const A of l){const O=x(A);if(O)return O}},C=p.useCallback(A=>A.flat().every(({name:O})=>{var R;const{touched:M,hasError:k,manuallyChanged:D,validationEnabled:j,value:V}=r.formData[O];return!j||!(M&&!D?k:Wa(V,O,r.formData,{countryCode:(R=r.formData[r.countryElementName])==null?void 0:R.value}))}),[t,r.countryElementName,r.formData]),[T,P]=p.useState(!1);return p.useEffect(()=>{const A=l.every(C),O=C(c);i(O),P(A)},[l,c,C]),{step:r.step,setStep:y,totalSteps:r.formConfig.length,entireFormIsValid:T,formIsValid:o,handleChange:f,formElements:m,formConfig:l,formConfigForCurrentStep:c,getData:u,setData:E,setDataProp:b,setRules:v,setInitialData:h,setFieldError:_,resetData:g,showCurrentStepErrors:S,showErrors:w,getFirstErrorFieldNameForCurrentStep:x,getFirstErrorFieldNameInForm:I}},yK=({label:e,translatable:t,className:n="",...s})=>{const r=Se();return d.jsx("div",{className:`radio-control-bc ${n}`,children:d.jsxs("label",{className:"radio-control-content-bc",children:[d.jsx("input",{type:"radio",className:"radio-control-input-bc",...s}),d.jsx("span",{className:"radio-control-input-holder-bc"}),d.jsx("p",{className:"radio-control-text-bc",children:t?r(e):e})]})})},bK=({error:e,touched:t,focused:n,label:s="",customAttrs:r,className:a,placeholder:o,onChange:i,value:l,manuallyChanged:c,options:u=[],readOnly:f,rules:m,...h})=>{const g=Se(),E=typeof l=="boolean"||!ob(l)?l.toString():"",b=_=>{i(_.type,_.target.name,_.target.value)},v=p.useMemo(()=>{const _=u.find(y=>y.value===E);return _?_.label:""},[E,u]);return f?d.jsx("div",{className:"form-control-bc default filled",children:d.jsxs("label",{className:"form-control-label-bc inputs",children:[d.jsx("input",{type:"text",className:"form-control-input-bc",defaultValue:g(v),readOnly:!0,...h}),d.jsx("i",{className:"form-control-input-stroke-bc"}),d.jsx("span",{className:"form-control-title-bc ellipsis",children:g(s)})]})}):d.jsxs(d.Fragment,{children:[d.jsxs("div",{className:`radio-v-bc ${a}`,children:[s&&d.jsx("div",{className:"form-control-title-static-bc ellipsis",children:ib(g(s),m)}),u.map(_=>d.jsx(yK,{onChange:b,checked:E===_.value.toString(),translatable:!0,..._,...h},_.value))]}),e&&d.jsx("div",{className:"form-control-message-holder-bc",children:d.jsx("span",{className:"form-control-message-bc",children:g(e)})})]})},SK=p.memo(bK);var Vb=(e=>(e.Deposit="deposit",e.Kyc="kyc",e))(Vb||{});const CK=[[[{type:"radio",name:"promoType",options:[{label:"Casino",value:"casino"},{label:"Sport",value:"sport"}]}]]],Ow={deposit:{getLink:`?${bt({section:"balance",page:"deposit"})}`,buttonLabelKey:"force_popup_deposit_cta",titleKey:"force_popup_deposit_title",bodyText:"force_popup_deposit_body_text"},kyc:{getLink:"",buttonLabelKey:"force_popup_kyc_cta",titleKey:"force_popup_kyc_title",bodyText:"force_popup_kyc_body_text"}},pR=({close:e,forcePopupType:t})=>{const n=Ow[t],s=Se(),{formElements:r,handleChange:a}=EK(CK),o=p.useMemo(()=>{var l,c;return t==="kyc"?`?openKyc=${((c=(l=N.app)==null?void 0:l.enableForcedPopups)==null?void 0:c.forcingKyc)??""}`:Ow[t].getLink},[t]),i=p.useCallback((l,c,u)=>{a(l,c,u),en.dispatchEvent("trackingEvent",{category:"Promotions",action:`Clicked ${t} Force Popup Promo`,additionalData:{forcedPopupData:{clickedForcePopupPromoType:u,source:`popup_type_${t}`}}})},[a,t]);return d.jsxs("div",{className:"forcePopupContent",children:[d.jsx("div",{className:"casino-popup-title",dangerouslySetInnerHTML:{__html:s(n.titleKey)}}),d.jsx(Nt,{className:"btn a-color forcePopupKYCBtn",to:o,onClick:e,children:s(n.buttonLabelKey)}),d.jsx("p",{className:"forcePopupBodyText",dangerouslySetInnerHTML:{__html:s(n.bodyText)}}),d.jsx("div",{className:"forcePopupContentSwitcher",children:d.jsx(SK,{...r.promoType,onChange:i})}),d.jsx(Nt,{className:"forcePopupPromoRedirectBtn",to:"/promotions",onClick:e,children:s("Go to Promo")})]})},TK=()=>{const{profile:{active_step_state:e,active_step:t}}=ye(),{enableForcedPopups:n}=N.app;p.useEffect(()=>{n!=null&&n.forceShowKycPopup&&e===Zi.WAITING&&t===(n==null?void 0:n.forcingKyc)&&ve.open(s=>({Component:()=>d.jsx(pR,{close:s,forcePopupType:Vb.Kyc}),className:"forcePopup"}))},[t,e,n==null?void 0:n.forceShowKycPopup,n==null?void 0:n.forcingKyc])},wK=()=>{const{enableForcedPopups:e}=N.app,{profile:{deposit_count:t}}=ye();p.useEffect(()=>{e!=null&&e.forceShowDepositPopup&&t===0&&ve.open(n=>({Component:()=>d.jsx(pR,{close:n,forcePopupType:Vb.Deposit}),className:"forcePopup"}))},[t,e])},IK={PENDING:{type:"warning",content:"You haven't accepted or denied your session, please go to Telegram account"},VERIFIED:{type:"success",content:"Thank you you have verified your session"},NOT_VERIFIED:{type:"error",content:"You have denied your session, so session will be closed on all devices, please reload the page to restore session."}},AK={type:"warning",content:"Please check your telegram"},PK="auth_bot_status",kw="0",Nw="9999999999",xK=()=>{const e=Se();p.useEffect(()=>{const t=n=>{var s;if(((s=n==null?void 0:n.data)==null?void 0:s.notification_type)===PK){const r=n.data.notification;let a;if("CHECK_AUTH_BOT_MESSAGE"in r)a=AK;else if("AUTH_STATUS_UPDATE"in r){const o=r.AUTH_STATUS_UPDATE;a=IK[o]}if(a)switch(a.type){case"success":Ce.success(a.content,{position:"top-right",autoClose:5e3});break;case"warning":Ce.warning(a.content,{position:"top-right",autoClose:5e3});break;case"error":Ce.error(a.content,{position:"top-right",autoClose:5e3});break}}};return ee.addMessageListener({rId:kw,subId:Nw},t),()=>{ee.removeMessageListener({rId:kw,subId:Nw},t)}},[e])},OK=()=>{const{isLoggedIn:e}=ye(),t=dn(),n=Se(),s=p.useCallback(o=>{a.current&&ee.get({notification_id:Number(o)},"mark_as_read_notification")},[]),r=p.useCallback(o=>({onClose:()=>s(o),className:"new-message-toast-notification-bonus",autoClose:1e4,position:Q.isMobile?"bottom-center":"top-right"}),[s]),a=p.useRef(!0);p.useEffect(function(){if(e){const i=ee.subscribe({source:"notifications",what:{user:[]}},l=>{const c=Object.entries(l).find(([u,f])=>!!f.ClientBonus);if(c){const[u,f]=c,{ClientBonusId:m,ResultType:h,Message:g}=f.ClientBonus,E=!ze()[vr]&&!window.location.pathname.includes("/casino/game-view/");switch(h){case Ws.NotAvailable:case Ws.None:s(u);break;case Ws.Collectable:E&&a.current?ve.open({type:"info",content:n(g),buttons:[{label:"Collect Bonus",callBack:()=>t.push({search:bt({section:"bonuses",page:"casino",bonusId:m})})}],onClose:()=>s(u)}):s(u);break;case Ws.Canceled:case Ws.Lost:case Ws.Expired:Ce.warning(n(g??"bonus_expired_info"),r(u));break;case Ws.Collected:case Ws.Completed:case Ws.Converted:case Ws.Paid:Ce.success(n(g??"bonus_claimed_info"),r(u))}}});return()=>{a.current=!1,Ce.dismiss(),ee.unsubscribe(i)}}},[r,t,e,s,n])},kK="login",NK="profits_filter",RK="registration",LK="one_click_registration",MK="bet_history_filter",DK="profile_details",jK="reset_with_email",BK="new_user_message",FK="reset_with_phone",UK="reset_password",$K="profile_time_out",GK="bonus_history_filter",VK="french_freebet_bonus_history_filter",HK="profile_bet_limits",WK="profile_reality",zK="profile_occupation",YK="balance_history_filter",qK="profile_login_limit",KK="net_deposit_history",QK="profile_loss_limits",XK="profile_balance_limit",JK="profile_self_exclusion",ZK="profile_deposit_limits",eQ="profile_verify_account",mE="profile_change_password",tQ="profile_session_history",nQ="wallet_connect_registration",sQ="profile_session_duration_limit",rQ="account_closure",aQ="two_factor",oQ="login_history_form_config",iQ="profit_history_form_config",lQ=e=>{const[t,n]=p.useState(!0),[s,r]=p.useState([[[]]]),a=p.useMemo(()=>({[kK]:{formConfig:N.userAuthentication.login.formConfig,isMigratedToCMS:!0},[RK]:{formConfig:N.userAuthentication.registration.formConfig,isMigratedToCMS:!0},[LK]:{formConfig:N.userAuthentication.oneClickRegistration.formConfig,isMigratedToCMS:!1},[nQ]:{formConfig:N.app.walletConnect.registrationFormConfig,isMigratedToCMS:!0},[DK]:{formConfig:N.profile.profileDetailsConfig,isMigratedToCMS:!0},[mE]:{formConfig:N.profile.profileChangePasswordFormConfig,isMigratedToCMS:!0},[eQ]:{formConfig:N.profile.profileVerifyAccountFormConfig,isMigratedToCMS:!0},[$K]:{formConfig:N.profile.profileTimeOutConfig,isMigratedToCMS:!0},[zK]:{formConfig:N.profile.profileOccupationConfig,isMigratedToCMS:!0},[XK]:{formConfig:N.profile.profileBalanceLimit,isMigratedToCMS:!0},[WK]:{formConfig:N.profile.profileRealityCheckFormConfig,isMigratedToCMS:!0},[ZK]:{formConfig:N.profile.profileDepositLimitsFormConfig,isMigratedToCMS:!0},[HK]:{formConfig:N.profile.profileBetLimitsFormConfig,isMigratedToCMS:!0},[QK]:{formConfig:N.profile.profileLossLimitsFormConfig,isMigratedToCMS:!0},[sQ]:{formConfig:N.profile.profileSessionDurationLimit,isMigratedToCMS:!0},[tQ]:{formConfig:N.profile.profileSessionHistory,isMigratedToCMS:!0},[JK]:{formConfig:N.profile.profileSelfExclusionConfig,isMigratedToCMS:!0},[qK]:{formConfig:N.profile.profileLoginLimitConfig,isMigratedToCMS:!0},[BK]:{formConfig:N.profile.newUserMessageFormConfig,isMigratedToCMS:!0},[rQ]:{formConfig:N.profile.profileAccountClosureConfig,isMigratedToCMS:!0},[jK]:{formConfig:N.userAuthentication.forgetPassword.resetWithEmailFormConfig,isMigratedToCMS:!0},[FK]:{formConfig:N.userAuthentication.forgetPassword.resetWithPhoneFormConfig,isMigratedToCMS:!0},[UK]:{formConfig:N.userAuthentication.forgetPassword.resetPasswordConfig,isMigratedToCMS:!0},[GK]:{formConfig:N.app.bonusHistory.filterFormConfig,isMigratedToCMS:!0},[VK]:{formConfig:N.app.frenchFreebetBonusHistory.filterFormConfig,isMigratedToCMS:!0},[YK]:{formConfig:N.app.balanceHistory.filterFormConfig,isMigratedToCMS:!0},[KK]:{formConfig:N.app.netDepositHistory.filterFormConfig,isMigratedToCMS:!0},[NK]:{formConfig:N.app.profits.filterFormConfig,isMigratedToCMS:!0},[MK]:{formConfig:N.sportsbook.betHistory.filterFormConfig,isMigratedToCMS:!0},[aQ]:{formConfig:N.app.twoFactor.formConfig,isMigratedToCMS:!1},[oQ]:{formConfig:N.app.loginHistory.filterFormConfig,isMigratedToCMS:!1},[iQ]:{formConfig:N.app.profitHistory.filterFormConfig,isMigratedToCMS:!1}}),[]),o=p.useCallback(()=>qe.get(`/forms/${e}.json?v=${Bo(5)}`).then(l=>l.status===200&&l.data&&l.data.length?l.data:[[[]]]),[e]),i=p.useCallback(async()=>a[e].formConfig.map(l=>l.map(c=>c.map(u=>cR(u)))),[a,e]);return p.useEffect(()=>{(N.app.getFormsConfigFromCms&&a[e].isMigratedToCMS?o():i()).then(c=>r(c)).finally(()=>n(!1))},[a,o,i,e]),{formConfig:s,loading:t}},cQ=({children:e,source:t})=>{const{loading:n,formConfig:s}=lQ(t);return n?null:e(s)},uQ=p.lazy(()=>B(()=>import("./UserProfileEditPassword-BrSzLrDa.js"),__vite__mapDeps([590,176,1,175,174,171,172,173]))),dQ=3,fQ=()=>{const e=Ua(),t=Se(),{isLoggedIn:n,profile:{authentication_status:s}}=ye(),r=mn.Blocker;p.useEffect(()=>{n&&s===dQ&&ve.open(a=>({title:"info",hideCloseButton:!0,className:"forcePasswordPopup",Component:()=>d.jsxs(p.Suspense,{fallback:null,children:[d.jsx("p",{className:"forcePasswordPopupText",dangerouslySetInnerHTML:{__html:t("Your password session has expired")}}),d.jsx(cQ,{source:mE,children:o=>d.jsx(uQ,{formConfig:o,close:a,parentPopupPriority:r})},mE),d.jsx(Vu,{title:"Logout",className:"btn a-color forcePasswordPopupBtn",onClick:()=>{e().then(a)}})]})}))},[r,n,t,s,e])},pQ=Ne(()=>B(()=>import("./TaxNotificationInfoPopup-Bh4uwQGR.js"),__vite__mapDeps([591,1,592]))),mQ=()=>{const{isLoggedIn:e}=ye();p.useEffect(function(){if(e){const n=ee.subscribe({source:"notifications",what:{user:[]}},s=>{const r=Object.entries(s).map(([a,o])=>({swarmId:Number(a),...o})).filter(a=>{var o;return(o=a.calculateTaxSession)==null?void 0:o.Sessions});r.length&&r.forEach(a=>{ve.open(o=>({title:"Important Information",hideCloseButton:!0,Component:()=>d.jsx(p.Suspense,{fallback:null,children:d.jsx(pQ,{taxNotificationData:a.calculateTaxSession.Sessions,notificationId:a.swarmId,onClose:o})})}))},mn.High)});return()=>{ee.unsubscribe(n)}}},[e])};var ac=(e=>(e[e.New=0]="New",e[e.Allowed=1]="Allowed",e[e.Rejected=2]="Rejected",e[e.Expired=3]="Expired",e[e.InProgress=4]="InProgress",e))(ac||{});const hQ=3,Rw="mark_as_read_notification",gQ=()=>{const{isLoggedIn:e,loginInProgress:t}=ye(),n=Se(),s=gt.getInstance().bonusRequestV2Available;p.useEffect(function(){if(e&&!t&&s){const a=ee.subscribe({source:"notifications",what:{user:[]}},o=>{Object.entries(o).map(([l,c])=>({swarmId:Number(l),...c})).filter(({swarmId:l,NotificationType:c,ClientBonusRequest:u})=>l&&c===hQ&&((u==null?void 0:u.State)===ac.Rejected||(u==null?void 0:u.State)===ac.Allowed)).forEach(l=>{var c,u;((c=l.ClientBonusRequest)==null?void 0:c.State)===ac.Rejected&&Ce.error(n("One of your bonus request rejected"),{onClose:()=>ee.get({notification_id:l.swarmId},Rw),autoClose:!1,position:"bottom-right"}),((u=l.ClientBonusRequest)==null?void 0:u.State)===ac.Allowed&&Ce.error(n("One of your bonus request approved"),{onClose:()=>ee.get({notification_id:l.swarmId},Rw),autoClose:!1,position:"bottom-right"})})},()=>{},!1);return()=>{ee.unsubscribe(a)}}},[s,e,t,n])},_Q=["span"],Vg=({tag:e="span",variant:t,children:n,className:s="",dangerouslySetInnerHTML:r,style:a,...o})=>{const i=["ds-caption",`ds-caption--${t}`,s].filter(Boolean).join(" ");if(r){const c=_Q.includes(e)?"inline":"block";return d.jsx("div",{className:i,style:{...a,display:c},dangerouslySetInnerHTML:r,...o})}const l=e;return d.jsx(l,{className:i,style:a,...o,children:n})},vQ=Ne(()=>B(()=>import("./LiveChatAdviser-DWHfpS89.js"),__vite__mapDeps([336,1]))),Lw=e=>{const t=at();let n=at.unix(e);const s=Math.max(0,n.diff(t,"year"));n=n.subtract(s,"year");const r=Math.max(0,n.diff(t,"month"));n=n.subtract(r,"month");const a=Math.max(0,n.diff(t,"day"));return{years:s,months:r,days:a}},Hg=e=>e<10?`0${e}`:String(e),mR=({expiresAtSeconds:e})=>{const t=Se(),n=dm(),s=Q.isMobile===1,r=p.useCallback(()=>{n.push({search:bt({section:"balance",page:"withdraw"})})},[n]),a=p.useMemo(()=>{const l=at.unix(e);return Math.max(1,l.diff(at(),"year"))},[e]),[o,i]=p.useState(()=>Lw(e));return p.useEffect(()=>{const l=()=>i(Lw(e));l();const c=setInterval(l,60*1e3);return()=>clearInterval(c)},[e]),d.jsx("div",{className:"selfExclusionLockedScreen__wrp",children:d.jsxs("div",{className:"selfExclusionLockedScreen",children:[d.jsxs("div",{className:"selfExclusionLockedScreen__primaryInfo",children:[s?d.jsx(er,{className:"selfExclusionLockedScreen__primaryInfo__title",variant:"large-medium",children:t("self_exclusion_locked_title")}):d.jsx(Hk,{level:6,className:"selfExclusionLockedScreen__primaryInfo__title",children:t("self_exclusion_locked_title")}),d.jsx(Xa,{variant:s?"medium-regular":"large-regular",className:"selfExclusionLockedScreen__primaryInfo__body",children:t("self_exclusion_locked_body",{years:a})})]}),d.jsxs("div",{className:"selfExclusionLockedScreen__countdown",children:[d.jsx(Xa,{variant:s?"small-regular":"medium-regular",className:"selfExclusionLockedScreen__countdownLabel",children:t("Blocked until")}),d.jsxs("div",{className:"selfExclusionLockedScreen__boxes",children:[d.jsxs("div",{className:"selfExclusionLockedScreen__boxWrp",children:[d.jsx("div",{className:"selfExclusionLockedScreen__box",children:d.jsx(Xa,{variant:"large-regular",className:"selfExclusionLockedScreen__boxValue",children:Hg(o.years)})}),d.jsx(Vg,{className:"selfExclusionLockedScreen__boxTitle",variant:s?"medium-regular":"large-regular",children:t("years")})]}),d.jsxs("div",{className:"selfExclusionLockedScreen__boxWrp",children:[d.jsx("div",{className:"selfExclusionLockedScreen__box",children:d.jsx(Xa,{variant:"large-regular",className:"selfExclusionLockedScreen__boxValue",children:Hg(o.months)})}),d.jsx(Vg,{className:"selfExclusionLockedScreen__boxTitle",variant:s?"medium-regular":"large-regular",children:t("months")})]}),d.jsxs("div",{className:"selfExclusionLockedScreen__boxWrp",children:[d.jsx("div",{className:"selfExclusionLockedScreen__box",children:d.jsx(Xa,{variant:"large-regular",className:"selfExclusionLockedScreen__boxValue",children:Hg(o.days)})}),d.jsx(Vg,{className:"selfExclusionLockedScreen__boxTitle",variant:s?"medium-regular":"large-regular",children:t("days")})]})]})]}),d.jsx(Zt,{className:"selfExclusionLockedScreen__withdrawBtn",variant:"transparent",appearance:"filled",size:"md",radius:"full",leftIconName:"Withdraw",title:t(L2),onClick:r}),d.jsx(p.Suspense,{fallback:null,children:d.jsx(vQ,{redesignView:!1})})]})})},EQ=()=>{const{profile:e,isLoggedIn:t,isRestoredLogin:n,loginInProgress:s}=ye(),{isLocked:r,expiresAt:a}=jm(),[o,i]=p.useState(!1);Wt(o?"selfExclusion":""),p.useEffect(()=>{var l;t&&((l=N.app.header.selfExclusionPanelSettings)!=null&&l.enabled)&&!n&&r&&ve.open(()=>({Component:()=>d.jsx(mR,{expiresAtSeconds:a}),className:"selfExclusionLockedPopup",hideCloseButton:!1,isDesignSystemPopup:!1,fullScreen:!0}))},[t,a,n,e.exclude_type,r]),p.useEffect(()=>{var l;if((l=N.app.header.selfExclusionPanelSettings)!=null&&l.enabled&&!s)return t&&(i(!0),document.documentElement.style.setProperty(Q.isMobile?"--mobile-self-exclusion-height":"--web-self-exclusion-height",`${Q.isMobile?w5:I5}px`)),()=>{i(!1),document.documentElement.style.setProperty("--mobile-self-exclusion-height","0px"),document.documentElement.style.setProperty("--web-self-exclusion-height","0px")}},[t,s])},yQ=Ne(()=>B(()=>import("./SubscriptionsUpdatePopup-DxZd6QSh.js"),__vite__mapDeps([593,171,1,172,173,203,594]))),bQ=Ne(()=>B(()=>import("./SalaryRangeUpdatePopup-BPDZO0vJ.js"),__vite__mapDeps([595,193,1,200,203]))),SQ=Object.values(Ro),CQ={[Ro.Subscription]:yQ,[Ro.SalaryRange]:bQ},TQ={[Ro.Subscription]:"subscriptionsUpdatePopup",[Ro.SalaryRange]:"salaryRangePopup"},wQ=()=>{const{isLoggedIn:e}=ye();p.useEffect(function(){if(e){const n=ee.subscribe({source:"notifications",what:{user:[]}},s=>{Object.entries(s).map(([r,{Alias:a}])=>({swarmId:Number(r),Alias:a})).filter(({Alias:r})=>SQ.includes(r)).map(({Alias:r,swarmId:a})=>{const o=CQ[r];ve.open(i=>({Component:()=>d.jsx(p.Suspense,{children:d.jsx(o,{onSuccess:i})}),onClose:()=>ee.get({notification_id:a},"mark_as_read_notification"),hideCloseButton:!0,className:TQ[r]}))})},Ut,!1);return()=>{ee.unsubscribe(n)}}},[e])},IQ=()=>{Zq(),aK(),iK(),pK(),mK(),TK(),wK(),xK(),dK(),OK(),fQ(),wQ(),gQ(),mQ(),EQ()},AQ=({notificationId:e,cashbackAmount:t,rewardDate:n,categoryId:s,cashbackText:r,rewardType:a,removeNotification:o})=>{const{languageRtl:i,timeFormat:l,language:c}=ke(),u=Se(),{currency:{symbol:f}}=or();return d.jsxs("div",{className:"cashback-popup-content",onClick:()=>{ee.get({notification_id:e},"mark_as_read_notification"),o({})},children:[d.jsx("p",{className:"cashback-notification",children:u(r)}),d.jsxs("p",{className:"u-i-content-info-wrapper",children:[d.jsx("span",{className:"u-i-content-info-title ellipsis",children:u("Amount:")}),d.jsxs("span",{className:"u-i-content-info-value",children:[t," ",f]})]}),d.jsxs("p",{className:"u-i-content-info-wrapper",children:[d.jsx("span",{className:"u-i-content-info-title ellipsis",children:u("Date:")}),d.jsx("span",{className:"u-i-content-info-value",children:hp({timestamp:new Date(n).getTime()/1e3,preset:"datetimeShortYearShort",language:c,config:{languageRtl:i,timeFormat:l}})})]}),a?d.jsxs("p",{className:"u-i-content-info-wrapper",children:[d.jsx("span",{className:"u-i-content-info-title ellipsis",children:u("Reward Type:")}),d.jsx("span",{className:"u-i-content-info-value",children:u(nO[a])})]}):null,d.jsxs("p",{className:"u-i-content-info-wrapper",children:[d.jsx("span",{className:"u-i-content-info-title ellipsis",children:u("Category:")}),d.jsx("span",{className:"u-i-content-info-value",children:u(Qa[s])})]}),d.jsx("i",{className:"bc-i-close-remove notificationClose"})]})},PQ={1:Ge.SPORTSBOOK,2:Ge.CASINO},xQ=()=>{var c;const[e,t]=p.useState({}),{isLoggedIn:n}=ye(),s=Se(),{languageRtl:r,timeFormat:a,language:o,productType:i}=ke(),{currency:{symbol:l}}=or();p.useEffect(function(){if(n){const f=ee.subscribe({source:"notifications",what:{user:[]}},m=>{const h=Object.entries(m).map(([g,E])=>({swarmId:Number(g),notifications:E})).filter(({swarmId:g,notifications:E})=>{if(!g||!(E!=null&&E.cashback))return!1;const b=E.cashback.ProductCategory;return PQ[b]===i})[0];h&&t(h)});return()=>{ee.unsubscribe(f)}}},[n,i]),p.useEffect(()=>{var f;const u=[];if((f=e.notifications)!=null&&f.cashback&&e.swarmId){const{Text:m,Amount:h,RewordType:g,RewordDate:E,CategotyId:b}=e.notifications.cashback,v=Ce.success(d.jsx(AQ,{notificationId:e.swarmId,cashbackAmount:h,rewardDate:E,categoryId:b,cashbackText:m,rewardType:g,removeNotification:t}),{autoClose:!1,closeButton:!1,position:r?"top-right":"top-left",className:"cashback-notification",closeOnClick:!0});return u.push(v),()=>{u.forEach(_=>Ce.dismiss(_))}}},[l,r,o,(c=e.notifications)==null?void 0:c.cashback,e.swarmId,a,s,i])},Mw=({pathname:e})=>e,Wg="/live/",OQ=Object.keys(Wr),kQ=()=>{const e=xt(),[t,n]=p.useState(),[s,r]=p.useState(),[a,o]=p.useState(),[i,l]=p.useState(),[c,u]=p.useState(null),{pathname:f,search:m}=xn(),{currentPath:h,language:g}=ke(),{currentSeo:E,productUrl:b}=p.useMemo(()=>{var _,y;const v=OQ.find(S=>h===Wr[S]);if(v){let S,w;if(h===Hn)f.includes(`/${Ye.Calendar}`)?(w=`/sports/${f.includes(Wg)?"live":Ye.Prematch}/${Ye.Calendar}`,S="liveCalendar"):f.includes(`/${Ye.Statistics}`)?(w=`/sports/${Ye.Statistics}`,S="statistics"):f.includes(`/${Ye.Results}`)?(w=`/sports/${f.includes(Wg)?"live":Ye.Prematch}/${Ye.Results}`,S="results"):f.includes(`/${Ye.Tournaments}`)?(w=`/sports/${f.includes(Wg)?"live":Ye.Prematch}/${Ye.Tournaments}`,S="tournaments"):f.includes(`/sports/${Ye.Live}/${_o.EventView}`)?(w=`/sports/${Ye.Live}/${_o.EventView}`,S="live"):(w=`/sports/${Ye.Prematch}/${_o.EventView}`,S="preMatch");else if(h===Kf&&ha.poker&&f.includes(ha.poker))w=ha.poker,S="poker";else if(h===mo){const[,,,x,,I,C]=f.split("/");S="casino";const T=new URLSearchParams(m),P=(_=T.get(vr))==null?void 0:_.split(Tc)[0],A=I||P;I||(y=T.get(tl))==null||y.split(",")[0];const O=Mw({pathname:f}),M=s&&A?s[A]:null,k=a&&x?a[x]:null;return M?{currentSeo:M,productUrl:O}:k?{currentSeo:k,productUrl:O}:{currentSeo:(t==null?void 0:t[S])||(t==null?void 0:t.default),productUrl:O}}else if(h===Ao&&i){const[,,,x]=f.split("/");return S="liveCasino",{currentSeo:(i[x]??(t==null?void 0:t[S]))||(t==null?void 0:t.default),productUrl:f}}else S=_5(v),w=v==="promotions"?f:ha[v]??"";return{currentSeo:{...t==null?void 0:t.default,...t==null?void 0:t[S]},productUrl:w}}else if(h===Qi&&s){const[,,,S,w]=f.split("/");return{currentSeo:s[S]??{},productUrl:Mw({pathname:f})}}else if(h===wu){const[,,,S,w]=f.split("/");return{currentSeo:(t==null?void 0:t.default)??{},productUrl:`/casino/generic/${S}/${w}`}}else if(h===fm){const[,,,S,w]=f.split("/");return{currentSeo:(t==null?void 0:t.default)??{},productUrl:`/casino/generic/${S}/${w}`}}else if([qf,Io,Yf].includes(h)){const[,S]=f.split("/");return{currentSeo:(t==null?void 0:t.default)??{},productUrl:`/${S}/tournaments`}}else if(h===pm&&c)return{currentSeo:(t==null?void 0:t[c])??(t==null?void 0:t.default)??{},productUrl:f};return{currentSeo:(t==null?void 0:t.default)??{},productUrl:""}},[h,s,t,f,m,a,i,c]);return p.useEffect(()=>{const v=_=>{u(_)};return He.addEventListener("integrationSeoKeyUpdated",v),()=>{He.removeEventListener("integrationSeoKeyUpdated",v)}},[]),p.useEffect(()=>{Jn.getPageSeo(g).then(v=>{e.current&&(n(v),He.dispatchEvent("seoPageContentLoaded"))}).catch(Ut)},[e,g]),p.useEffect(()=>{(h===Qi||h===mo)&&Jn.getGameSeo(g).then(v=>{e.current&&r(v)}).catch(Ut)},[h,e,g]),p.useEffect(()=>{h===mo&&Jn.getSlotSeo(g).then(v=>{e.current&&o(v)}).catch(Ut)},[e,g,h]),p.useEffect(()=>{h===Ao&&Jn.getLiveCasinoSeo(g).then(v=>{e.current&&l(v)}).catch(Ut)},[e,g,h]),{currentSeo:E,productUrl:b}},NQ=()=>{const{loginViaSocialNetwork:e}=p.useContext(El),[t,n]=p.useState(!1),[s,r]=p.useState(null),a=p.useCallback(i=>(n(!0),r(null),ee.get({network_type:i,redirect_url:`${window.location.origin}/`},"get_social_network_front_url").then(({result:l,result_text:c,details:{Url:u}})=>{l===0&&u?(Te.setItem(Iv,String(i)),window.location.href=u):(r(c||"Failed to get SSO URL"),n(!1))}).catch(l=>{r((l==null?void 0:l.message)||"Something went wrong"),n(!1)})),[]),o=p.useCallback((i,l,c)=>(n(!0),r(null),e({code:l,social_network_type_id:i,redirect_url:c}).catch(u=>{r((u==null?void 0:u.message)||"Login failed")}).finally(()=>{n(!1)})),[e]);return{initiateLogin:a,completeLogin:o,loading:t,error:s}},RQ=({component:e,path:t,exact:n})=>{KP();const{sessionChangeKey:s}=ye(),r=qm();return p.useLayoutEffect(()=>{const a=_u[t].type;a!==void 0&&r("productType",a),r("currentPath",t)},[t,r]),d.jsx(io,{exact:n,path:t,render:()=>d.jsx(p.Suspense,{fallback:d.jsx(Mt,{size:"medium",className:"full"}),children:d.jsx(e,{},s)})})},LQ=p.memo(RQ,()=>!0),MQ=({onClick:e})=>{const t=Se(),n=()=>{et.dispatchEvent("addComponentPopup",{component:"AuthPopup",props:{popupContentType:st.Login,onSuccess:e}})};return d.jsxs("div",{className:"need-to-login empty-b-text-v-bc",children:[d.jsx("p",{children:t(gx)}),d.jsx($t,{className:"btn a-color",title:"Sign in",onClick:n})]})},DQ=()=>{const{paths:e,links:t}=gl(),{isLoggedIn:n,loginInProgress:s}=ye(),r=xn(),a=p.useMemo(()=>SO([...t.app,...t.footer,...t.header]),[t]),o=p.useMemo(()=>a.some(i=>!n&&!s&&i.middlewares.includes(aO.Auth)&&i.to&&Ra(i.to,r)),[a,n,r,s]);return p.useEffect(()=>{o&&et.dispatchEvent("addComponentPopup",{component:"AuthPopup",props:{popupContentType:st.Login}})},[o]),o?d.jsx(MQ,{onClick:Ut}):d.jsxs(JA,{children:[e.map(i=>{var c;let l=null;return(c=_u[i])!=null&&c.component&&(l=Ne(_u[i].component)),l?d.jsx(LQ,{exact:i===Or,component:l,path:i},i):null}),s?d.jsx(io,{render:()=>d.jsx(Mt,{size:"medium",className:"full"})}):d.jsx(io,{component:uW})]})},jQ=p.memo(DQ),Hb=()=>p.useContext(UN),BQ=/(^https?:\/\/)|tel:|(.+\.(pdf|jpg|jpeg|png)$)/,FQ=e=>{const[t,n]=p.useState(e),[s,r]=p.useState({}),a=dn(),o=Object.values(s).reduce(Im,0),i=p.useCallback(()=>n(!0),[]),l=p.useCallback(()=>n(!1),[]),c=p.useCallback(()=>n(u=>!u),[]);return p.useEffect(()=>He.addEventListener("openSmartPanel",i),[i]),p.useEffect(()=>{He.addEventListener("closeSmartPanel",l)},[l,e]),p.useEffect(()=>{t?He.dispatchEvent("addRootClassName","smart-panel-is-visible"):He.dispatchEvent("removeRootClassName","smart-panel-is-visible")},[t]),p.useEffect(()=>(He.addEventListener("navigate",({to:u,target:f})=>{f==="_self"&&!BQ.test(u)?a.push(u):window.open(u,f)}),()=>{He.removeEventListeners("navigate")}),[a]),p.useEffect(function(){return He.addEventListener("setSmartPanelBadgeCount",({component:f,value:m})=>{r(h=>({...h,[f]:m}))})},[]),{open:i,close:l,toggle:c,...!t&&{badgeCount:o}}},UQ=({locale:e,timeOptions:t,dateOptions:n})=>{const[s,r]=p.useState(()=>new Date().toLocaleTimeString(e,t)),a=p.useMemo(()=>{if(n)return new Date().toLocaleDateString(e,n)},[e,n]);return p.useEffect(()=>{const o=setInterval(()=>{r(new Date().toLocaleTimeString(e,t))},1e3);return()=>clearInterval(o)},[e,t]),d.jsxs(d.Fragment,{children:[d.jsx("time",{className:"infoTime",children:s}),a&&d.jsx("div",{className:"infoDate",children:a})]})};function $Q({dateOptions:e,alwaysShowDateTime:t}){const{timeFormat:n,language:s}=ke(),{clockSettings:r}=N.app.header,a=In[s],o={hour:"numeric",minute:"numeric",second:"numeric",hour12:n==="12h"};return d.jsx(UQ,{locale:(r==null?void 0:r.clockDateLocaleFormat)||a,timeOptions:o,...r!=null&&r.clockDateLocaleFormat||t?{dateOptions:e}:{}})}const hR=p.memo($Q),GQ=()=>{const{isLoggedIn:e}=ye(),t=Se(),[n,s]=p.useState(0);p.useEffect(()=>{if(!e){s(0);return}const a=Te.getItem(wv),o=vt.getAuthToken(!1),i=o?jo(o):null;let l=i?a==null?void 0:a[i]:null;if(!l&&i&&(l=Date.now(),Te.setItem(wv,{[i]:l})),l){const c=()=>{const f=Math.floor((Date.now()-l)/1e3);s(f>0?f:0)};c();const u=setInterval(c,1e3);return()=>clearInterval(u)}},[e]);const r=p.useMemo(()=>{const a=Math.floor(n/3600),o=Math.floor(n%3600/60).toString().padStart(2,"0"),i=(n%60).toString().padStart(2,"0");return a>0?`${a.toString().padStart(2,"0")}:${o}:${i}`:`${o}:${i}`},[n]);return e?d.jsxs("div",{className:"sessionTimerWrapper",children:[d.jsxs("span",{className:"sessionTimerText",children:[t("Session Time")," :"]}),d.jsx("time",{className:"sessionTimerTime",children:r})]}):null},VQ=p.memo(GQ),HQ=(e,t)=>e.includes("promotions")?"Promotions":e.includes("openCommonChat")?"Occursum":t.page&&t.page==="deposit"&&t.account&&t.account==="balance"&&t.selectedMethod==="FastShift"?"FastShift":t.page&&t.page==="deposit"&&t.account&&t.account==="balance"?"Deposit":null,gR=(e,t,n)=>{const s=HQ(e,t);s&&en.dispatchEvent("trackingEvent",{category:"Balance",action:`Clicked Header ${s}`,additionalData:{isLoggedIn:n}})},WQ={history:"Bet history",balance:"Balance Management","cashback-cashout":"Cashback Cashout",bonuses:"Bonuses",profile:"My Profile",messages:"Messages","bonus-journey":"Bonus Journey",profits:"Profits","stake-and-earn":"Stake and Earn",rewards:"rewards",limits:"limits",vouchers:"Vouchers","bank-account":"Account","bonus-request-v2-experimental":"Bonus Request"},zQ={balance:"balance-management","cashback-cashout":"cashback-cashout",bonuses:"promotion",profile:"user",messages:"message","bonus-journey":"journey",vouchers:"voucher"},YQ={history:{bets:"All","open-bets":"Open bets","cashed-out":"Cashed out",won:"Won",lost:"Lost",returned:"Returned",gifted:"Gifted bets",gifts:"Received gifts","won-return":"Won Return","lost-return":"Lost Return"},balance:{deposit:"Deposit",withdraw:"Withdraw",info:"Info",transfer:"Transfer",history:"Transaction History",withdraws:"Withdraw Status",deposits:"Deposit Status",wallets:"My Wallets","buddy-transfer":"Buddy Transfer","net-deposit-history":"Net Deposit History"},"cashback-cashout":{casino:"Casino Cashback","multi-cashback":"Multi Cashback"},bonuses:{"loyalty-points":"Loyalty Points","exchange-shop":"Exchange Shop","exchange-shop-history":"Exchange Shop History",sport:"Sport Bonus",casino:"Casino Bonus","casino-free-spins":"Casino Free Spins","casino-free-chip":"Casino Free Chips","promo-code":"Promo code","scratch-card":"Scratch card","bonus-history":"Bonus history","bonus-request":"Bonus Request","refer-to-friend":"Refer a friend","french-freebet-bonus-history":"French Freebet Bonus History"},"bonus-journey":{journeys:"Bonus Journey"},profile:{details:"Personal Details","social-details":"Social Details","change-password":"Change Password","reality-checks":"Reality Checks","deposit-limits":"Deposit Limits","login-history":"Login history",occupation:"Occupation",gamstop:"Gamstop","safer-gambling":"Safer Gambling",rofus:"Rofus","bet-limits":"Bet Limits","profit-history":"Profit History","current-session-info":"Current Session Info","loss-limits":"Loss Limits","profile-balance-limit":"Profile Balance Limit","timeout-limits":"Time-Out",session_duration_limit:"Session Duration Limit","session-history":"Session History","loss-and-session-limits":"Loss And Session Limits","limits-history":"Limits History","self-exclusion":"Self-Exclusion","verify-account":"Verify Account","login-limit":"Login Limit","two-factor-authentication":"Authentication","confirmation-settings":"Confirmation Settings","account-closure":"Account Closure","net-limits":"Net Limits","user-reports":"User Reports","verification-flow":"Verification Flow"},messages:{inbox:"Inbox",new:"New",sent:"Sent"},profits:{profits:"Profits"},"stake-and-earn":{stake:"Stake FTN",withdrawals:"Withdrawals",rewards:"Rewards"},rewards:{rewards:"Rewards"},limits:{"profile-balance-limit":"Profile Deposit Limits",session_duration_limit:"Session Duration Limits","deposit-limits":"Deposit Limits","bet-limits":"Bet Limits","loss-limits":"Loss Limits","login-limit":"Login Limit","net-limits":"Net Limits","self-exclusion":"Self-Exclusion","reality-checks":"Reality Checks","timeout-limits":"Time-Out","limits-history":"Limits History"},vouchers:{vouchers:"Vouchers"},"bank-account":{"bank-account":"Bank Account"},"bonus-request-v2-experimental":{"bonus-request-v2":"Bonus Request"}},qQ={history:{bets:"bet-history",gifted:"bonus",gifts:"gift-received"},balance:{deposit:"circle-dollar",info:"player-info",wallets:"wallet"},"cashback-cashout":{casino:"cashback-cashout","multi-cashback":"Multi Cashback"},bonuses:{sport:"bonus-sportsbook",casino:"bonus-casino","bonus-history":"history","casino-free-spins":"bonus","exchange-shop-history":"history","french-freebet-bonus-history":"history"},"bonus-journey":{journeys:"journey"},profile:{details:"user","login-history":"session-history","reality-checks":"check-box-checked","deposit-limits":"circle-dollar","loss-limits":"circle-dollar","timeout-limits":"time-out","limits-history":"history",session_duration_limit:"time","current-session-info":"info","profile-balance-limit":"circle-dollar","net-limits":"circle-dollar"},messages:{new:"add-circle"},profits:{profits:"profits"},"stake-and-earn":{stake:"stake",withdrawals:"withdrawals",rewards:"rewards"},rewards:{rewards:"rewards"},limits:{limits:"limits","deposit-limits":"circle-dollar","loss-limits":"circle-dollar","reality-checks":"check-box-checked","timeout-limits":"time-out","limits-history":"history"},vouchers:{vouchers:"voucher"},"bank-account":{"bank-account":"bank-account"},"bonus-request-v2-experimental":{"bonus-request-v2":"bonus-request-v2"}},KQ=()=>p.useContext(HN),_R=()=>p.useContext(jN),QQ=16,XQ=()=>QQ,JQ=({children:e,hidden:t=!1,className:n,onClose:s})=>d.jsx($u,{onClose:s,isHidden:t,className:n,children:e}),zg="overlaySlidingIsVisible",Yg=document.querySelector("#root"),ZQ=({children:e,hidden:t=!1,trackTouch:n=!0,onClose:s,className:r="",compact:a})=>{Ho(!t,!0),Wt(a?"bottomOverlayOpen":""),p.useEffect(function(){if(!t&&!(Yg!=null&&Yg.classList.contains(zg)))return He.dispatchEvent("addRootClassName",zg),()=>{He.dispatchEvent("removeRootClassName",zg)}},[t]);const o=p.useRef(null),{swipeableHandlers:i,style:l}=Ym({onClose:s,trackTouch:!t&&n,scrollContainer:o});return d.jsx(zm.div,{className:`overlaySlidingWrapperBc ${r} ${t?"display-none":""} ${a?"bottomOverlay":""} `,style:l,...i,children:d.jsx("div",{className:`${a?"bottomOverlaySlider":"overlaySlidingWCContentSliderBc"}`,"data-scroll-lock-scrollable":"",ref:o,children:e})})},eX=e=>Q.isMobile===1?d.jsx(ZQ,{...e}):d.jsx(JQ,{...e}),mf="0",cfe=({onClose:e})=>{const t=Array.from({length:XQ()},(h,g)=>String(g)),{setAvatar:n,favoriteAvatarId:s,personalizationDataLoading:r}=_R(),[a,o]=p.useState(s||mf),i=Q.isMobile===1,l=Se(),{profile:c}=ye(),u=c.first_name&&c.last_name?c.first_name.charAt(0).concat(c.last_name.charAt(0)):"",f=a===s||r||!s&&a===mf,m=p.useCallback(()=>{i&&e()},[i,e]);return d.jsxs(eX,{onClose:e,compact:i,className:i?"":"avatarChooseOverlay",children:[d.jsx("p",{className:"avatarChooseTitle",children:l("Choose your avatar")}),d.jsx("div",{className:"avatarChooseWrapper","data-scroll-lock-scrollable":"",children:t.map(h=>d.jsx("div",{className:`avatarChooseWrapperImage ${a===h?"active":""}`,children:h===mf?d.jsx("p",{className:"avatarChooseImgDefault avatarChooseImg",onClick:()=>o(h),children:u||d.jsx("span",{className:"avatarIcon bc-i-user"})}):d.jsx("img",{loading:"lazy",alt:`avatar ${h}`,className:"avatarChooseImg",src:`/images/avatars/avatar_${h}.png`,onClick:()=>o(h)})},h))}),d.jsx(Vu,{title:"Save",className:"button hero avatarChooseBtn",onClick:()=>{n(a,m),e()},disabled:f})]})},tX=()=>{const{profile:e}=ye(),{favoriteAvatarId:t,loadingState:n}=_R(),s=gt.getInstance().accountVerificationEnabled?e.is_verified?"user-verified":"user-not-verified":"";return n.avatarLoading?d.jsx(Mt,{size:"small"}):mf===t||!t?d.jsx("i",{className:`hdr-user-avatar-icon-bc bc-i-user ${s}`}):d.jsx("img",{src:`/images/avatars/avatar_${t}.png`,alt:`avatar ${t}`,className:`avatarHolderImg hdr-user-avatar-icon-bc ${s}`})},vR=()=>{const{productType:e}=ke(),{profile:{calculatedBalanceFormatted:t,casinoBalanceFormatted:n}}=ye();return p.useMemo(()=>e==="sport"||n===null?t:n,[t,n,e])},nX=({inputCurrency:e,outputCurrency:t})=>{const[n,s]=p.useState(0),{getCurrencyData:r,currency:a}=or(),[{rate:o,rounding:i,symbol:l},c]=p.useState(a),[{rate:u,rounding:f,symbol:m},h]=p.useState(a);return p.useEffect(()=>{c(r(e)),h(r(t))},[r,e,t]),p.useEffect(()=>{s(e!==t&&u?o/u:0)},[e,o,t,u]),{convertAmount:p.useCallback((E,b=!1)=>{if(b){const v=n?E/n:E;return{inputValue:E,outputValue:v,inputValueFormatted:gr(E,f),outputValueFormatted:gr(v,i),rate:n?1/n:0,inputRounding:f,outputRounding:i,inputCurrency:t,inputCurrencySymbol:m,outputCurrency:e,outputCurrencySymbol:l}}else{const v=n?E*n:E;return{inputValue:E,outputValue:v,inputValueFormatted:gr(E,i),outputValueFormatted:gr(v,f),rate:n,inputRounding:i,outputRounding:f,outputCurrency:t,outputCurrencySymbol:m,inputCurrency:e,inputCurrencySymbol:l}}},[n,f,i,t,m,e,l])}},sX=()=>{const{hideBalance:e}=ke(),t=vR(),{profile:{calculatedBonus:n,currency_symbol:s,currency:r,calculatedBonusFormatted:a,bonusAvailable:o,frozenBalanceRounded:i,frozenBalanceAvailable:l}}=ye(),c=N.app.promotionalBonuses.enabled&&n>0&&o,{showSeparatelyBonuses:u,currencySymbolBeforeAmount:f}=N.app,{parentCurrency:m}=b4(),{convertAmount:h}=nX({inputCurrency:r,outputCurrency:m||r}),g=h(Number(t));return d.jsxs("div",{className:`hdr-user-info-content-bc ${c?"bonus-available":""}`,children:[d.jsxs("div",{className:"hdr-user-info-texts-bc ext-1 ellipsis",children:[e?"*******":d.jsxs("p",{className:"balanceAmount",children:[f?d.jsxs(d.Fragment,{children:[d.jsx("span",{className:"currencySymbol",children:s})," ",t]}):d.jsxs(d.Fragment,{children:[t," ",d.jsx("span",{className:"currencySymbol",children:s})]})," "]}),g!=null&&g.rate&&(g!=null&&g.outputValue)&&!e?d.jsx("span",{className:"hdr-user-info-output",children:`(${fa(g.outputCurrencySymbol,g.outputValueFormatted)})`}):null,u&&d.jsxs(d.Fragment,{children:[l&&d.jsx("span",{children:" / "}),l&&d.jsx("span",{style:{color:"#808590"},children:i})]})]}),c&&d.jsx("span",{className:"hdr-user-info-texts-bc ext-2 ellipsis",children:e?"*******":f?`${s} ${a}`:`${a} ${s}`})]})},rX=({children:e})=>{const t=Ua();return d.jsx(d.Fragment,{children:e(()=>t({ignorePopUp:!1}))})},aX=({product:e}={})=>{const{currency:{rounding:t}}=or(),{productType:n}=ke(),{profile:{calculatedBalanceRounded:s,calculatedBonusRounded:r,casinoBalanceRounded:a,frozenBalanceRounded:o,casino_bonus:i,sport_bonus:l,casino_balance:c,calculatedBonus:u,calculatedBonusMoney:f}}=ye(),{showSeparatelyBonuses:m}=N.app,g=((a??s)+r).toFixed(t),E=vR();return{balances:p.useMemo(()=>[...m?[{title:c!==null?n===Ge.SPORTSBOOK?cC:uC:A2,balance:E},...c!==null?n===Ge.SPORTSBOOK?[{title:uC,balance:a}]:[{title:cC,balance:s}]:[],{title:P2,balance:o},{title:x2,balance:i&&u},{title:O2,balance:l&&u},...N.sportsbook.betslip.enableFrenchFreebet?[{title:k2,balance:f}]:[]]:e===Ge.CASINO?[{title:N2,balance:g}]:[]],[m,c,n,E,a,s,o,i,u,l,f,e,g])}},oX=()=>{const e=Se(),{profile:{currency_symbol:t}}=ye(),{balances:n}=aX(),{hideBalance:s}=ke();return d.jsxs("div",{className:"nav-menu-sub-user-balances",children:[d.jsx("ul",{className:"user-balance-list",children:n.map((r,a)=>d.jsxs("li",{className:"user-balance-item",children:[d.jsx("p",{className:"balance-title ellipsis",children:e(r.title)}),s?"*******":d.jsxs("span",{className:"balance-value",children:[r.balance?fa(t,r.balance):""," "]})]},a))}),d.jsxs("p",{className:"user-balance-info",children:[d.jsx("i",{className:"user-balance-icon bc-i-info"}),d.jsx("span",{className:"user-balance-info-text",children:e(R2)})]})]})},iX=Ne(()=>B(()=>import("./ConnectWalletPopupContent-BAjQkor8.js"),__vite__mapDeps([596,1,183,184]))),lX=()=>{const{profile:{external_id:e,id:t}}=ye(),[n,s]=p.useState(!!e);p.useEffect(()=>s(!!e),[t]);const r=N.app.walletConnect.enabled&&N.app.walletConnect.connectToWallet&&!!t&&!e&&!n;Wt(r?"has-wallet":"");const a=p.useCallback(i=>{s(!0),i(),ve.open({type:"success",title:"Success",content:"wallet_success_connect"})},[]),o=()=>{const{close:i}=ve.open({type:"info",className:"connect-to-wallet",title:"Connect to wallet",Component:()=>d.jsx(iX,{callback:()=>a(i)})})};return r?d.jsx($t,{className:"btn a-color connect-wallet",onClick:o,title:"Connect to wallet!"}):null},ER=({headerCallPanelConfig:e,isHeaderNavigationHidden:t})=>{const[n,s]=p.useState(!1),r=p.useRef(null),a=Se(),o=p.useCallback(()=>{s(!n)},[n]);return p.useEffect(function(){t&&s(!1)},[t]),Ru({container:r,callback:()=>s(!1)}),Wt(e.length&&Q.isMobile?"has-header-info":""),d.jsxs("div",{ref:r,className:`callPanel ${n?"opened":""}`,children:[d.jsx($t,{className:"btn a-color callPanelBtn bc-i-call",onClick:o}),n&&d.jsx("div",{className:"callPanelMenu","data-scroll-lock-scrollable":"",children:d.jsx(p.Suspense,{fallback:d.jsx(Mt,{size:"small"}),children:e.map(({href:i,target:l,title:c},u)=>c?d.jsxs(Nt,{className:"callPanelMenuItem",to:i,target:l,children:[d.jsx("i",{className:`callPanelIcon bc-i-${c}`}),d.jsx("span",{className:"callPanelText ellipsis",children:a(c)})]},u):null)})})]})},cX=Ne(()=>B(()=>import("./WalletSwitcher-DFplDUqK.js").then(e=>e.W),[])),Dw=({section:e,page:t,iconClassName:n,title:s,children:r})=>d.jsx("li",{children:d.jsxs(Nt,{to:a=>({search:bt({section:e,page:t},a)}),className:"nav-menu-item","aria-label":s,children:[d.jsx("i",{className:`bc-i-${n}`}),d.jsx("span",{className:"checkbox-control-text-bc ellipsis",children:s}),r]})}),uX=()=>{const e=Se(),{header:{headerIcons:t,headerCallPanel:n,showToHeaderCallPanel:s},showSeparatelyBonuses:r}=N.app,{state:{messages:{pages:{inbox:a}}={pages:{}},bonuses:{count:o}={pages:{},count:0}}}=KQ(),{supports_child_client:i}=Fs();return d.jsxs("div",{className:"hdr-user-bc",children:[n!=null&&n.length&&s!==Xn.Guest?d.jsx(ER,{headerCallPanelConfig:n}):null,d.jsx("div",{className:"header-custom-buttons",children:t!=null&&t.length&&(t==null?void 0:t.length)>0?t==null?void 0:t.map(({showTo:l,className:c,href:u,text:f,target:m},h)=>l!==Xn.Guest?d.jsxs(Nt,{onClick:()=>gR(u,ze(u),!0),className:`btn a-color header-icon-text ${c}`,to:u,target:m,"aria-label":e(f||"Header Icon"),children:[d.jsx("span",{children:e(f||"")}),c==="bc-i-message"?d.jsx(wc,{count:a}):c==="bc-i-bonus"&&o?d.jsx(wc,{count:o}):null]},h):null):d.jsxs(Nt,{to:l=>({search:bt({section:"balance",page:"deposit"},l)}),className:"btn a-color header-icon-text","aria-label":e("Deposit"),children:[d.jsx("i",{className:"bc-i-circle-dollar"}),d.jsx("span",{children:e("Deposit")})]})}),d.jsxs("div",{className:"header-buttons-wallet",children:[d.jsx(lX,{}),i?d.jsx(p.Suspense,{fallback:null,children:d.jsx(cX,{})}):null]}),d.jsxs("div",{className:"nav-menu-container header-user-nav",children:[d.jsx("ul",{className:"nav-menu-other",children:d.jsxs("li",{children:[d.jsx(Nt,{to:l=>({search:bt({section:"balance",page:"deposit"},l)}),className:"nav-menu-item","aria-label":e("Balance"),children:d.jsx(sX,{})}),d.jsxs("ul",{className:"nav-menu-sub",children:[r&&d.jsx(oX,{}),N.accountNavigation.balance.pages.map(l=>d.jsx(Dw,{section:"balance",page:l,iconClassName:qQ.balance[l]??l,title:e(YQ.balance[l])},l))]})]})}),d.jsx("ul",{className:"nav-menu-other profileDetails",children:d.jsxs("li",{children:[d.jsxs(Nt,{to:l=>({search:bt({section:"profile",page:"details"},l)}),"aria-label":e("Profile Details"),children:[d.jsx(tX,{}),d.jsx("span",{className:"backFace"})]}),d.jsxs("ul",{className:"nav-menu-sub",children:[gt.getInstance().accountNavigationSorted.map(({section:l,experimental:c})=>{var m;if(c)return null;const u=l==="bonuses",f=((m=N.accountNavigation[l])==null?void 0:m.pages[0])??"";return d.jsx(Dw,{section:l,page:f,iconClassName:zQ[l]??l,title:e(WQ[l]),children:u&&!!o&&d.jsx(wc,{count:o})},l)}),d.jsx("li",{className:"logout-profile",children:d.jsx(rX,{children:l=>d.jsxs($t,{className:"userLogoutBtn btn",onClick:l,"aria-label":e("Logout"),children:[d.jsx("i",{className:"userLogoutIcon bc-i-logout"}),d.jsx("span",{children:e("Logout")})]})})})]})]})})]})]})},dX=({onLogin:e,onRegister:t,showCloseUserPanelButton:n=!1})=>{const{isLoggedIn:s,loginInProgress:r}=ye(),a=Se(),{headerIcons:o,headerCallPanel:i,showToHeaderCallPanel:l}=N.app.header,{hideRegisterButton:c}=N.userAuthentication,{enabledForRestrictedCountries:u}=N.userAuthentication.login;return r?d.jsx(Mt,{size:"small"}):s?n?d.jsx("i",{className:"hdr-user-close bc-i-close-remove",onClick:()=>He.dispatchEvent("closeUserInfoPanel",!1)}):d.jsx(uX,{}):gt.getInstance().authenticationEnabledForIP?d.jsxs("div",{className:"hdr-user-bc",children:[!Q.isMobile&&(i!=null&&i.length)&&(l===Xn.All||l===Xn.Guest)?d.jsx(ER,{headerCallPanelConfig:i}):null,!Q.isMobile&&(o==null?void 0:o.map(({showTo:f,className:m,href:h,target:g,text:E},b)=>f===Xn.All||f===Xn.Guest?d.jsx("div",{className:"header-custom-buttons",children:d.jsx(Nt,{onClick:()=>gR(h,ze(h),s),className:`btn a-color header-icon-text ${m}`,to:h,target:g,"aria-label":a(E||"Header Icon"),children:d.jsx("span",{children:a(E||"")})})},b):null)),c?d.jsx($t,{className:"btn s-small sign-in",onClick:e,title:"Sign in"}):d.jsxs(d.Fragment,{children:[d.jsx($t,{className:"btn s-small sign-in",onClick:e,title:"Sign in"}),d.jsx($t,{className:"btn s-small register",onClick:t,title:"Register"})]})]}):u?d.jsx($t,{className:"btn s-small sign-in",onClick:e,title:"Sign in"}):null},fX=p.memo(dX);function pX(e,t=100){const[n,s]=p.useState(void 0);return p.useEffect(()=>{const r=setTimeout(()=>{s(e)},t);return s(void 0),()=>{clearTimeout(r)}},[e,t]),n}const mX="https://swarm-personalization.{domain}";class Wb{constructor(){se(this,"_tokens",null);se(this,"_loginPromise",null)}static getBaseUrl(){var n,s;const t=(s=(n=N.app.header.vivaroMeManagement)==null?void 0:n.feedNews)==null?void 0:s.baseUrl;return Kn(t||mX).replace(/\/$/,"")}login(){return this._loginPromise?this._loginPromise:(this._loginPromise=ee.get({},"login_feed_user").then(({result:t,details:n})=>{var s;if(Number(t)!==0||(n==null?void 0:n.code)!==0||!((s=n==null?void 0:n.data)!=null&&s.access))throw new Error("LOGIN_FEED_USER_EMPTY");return this._tokens=n.data,this._tokens}).catch(t=>{throw t.message!=="LOGIN_FEED_USER_EMPTY"&&(this._loginPromise=null),t}),this._loginPromise)}getTokens(){return this._tokens?Promise.resolve(this._tokens):this.login()}reset(){this._tokens=null,this._loginPromise=null}request(t,{allowRetry:n=!0,auth:s=!0}={}){const r=a=>qe.request({...t,url:`${Wb.getBaseUrl()}${t.url}`,headers:{"Content-Type":"application/json",...a?{Authorization:`Bearer ${a}`}:{},...t.headers}});return(s?this.getTokens().then(({access:a})=>r(a)):r()).then(({data:a})=>a).catch(a=>{var o;if(s&&n&&((o=a==null?void 0:a.response)==null?void 0:o.status)===401)return this.reset(),this.request(t,{allowRetry:!1,auth:s});throw rt.error(`FeedPersonalization request failed: ${a}`),a})}loadData({url:t,params:n,auth:s}){return this.request({method:"GET",url:t,params:n},{auth:s})}sendData({url:t,body:n,auth:s}){return this.request({method:"POST",url:t,data:n},{auth:s})}getGlobalFeed(t={}){return this.loadData({url:"/feed/get_global_feed_v2/",params:t}).then(({data:n})=>n)}getGlobalFeedPublic(t={}){return this.loadData({url:"/feed/get_global_feed_public/",params:t,auth:!1}).then(({data:n})=>n)}markSeen(t){return this.sendData({url:"/feed/mark_seen/",body:{id:t}})}notInterested(t,{excluded_keywords:n=[],excluded_sources:s=[]}){return this.sendData({url:"/feed/not_interested/",body:{article_id:t,excluded_keywords:n,excluded_sources:s}})}react(t,n){return this.sendData({url:"/feed/react/",body:{id:t,reaction:n}})}removeReaction(t){return this.sendData({url:"/feed/remove_reaction/",body:{id:t}})}translate(t,n){return this.sendData({url:"/feed/translate/",body:{article_id:t,target_language:n}})}rateTranslation(t,n,s){return this.sendData({url:"/feed/rate_translation/",body:{article_id:t,target_language:n,rate:s}})}removeTranslationRate(t,n){return this.sendData({url:"/feed/remove_translation_rate/",body:{article_id:t,target_language:n}})}getReportReasons(){return this.loadData({url:"/feed/get_report_reasons/"})}report(t,n){return this.sendData({url:"/feed/report/",body:{article_id:t,reason:n}})}}const hX=new Wb,gX=()=>{const{isLoggedIn:e}=ye();return p.useCallback(t=>{e?t():et.dispatchEvent("addComponentPopup",{component:"AuthPopup",props:{popupContentType:st.Login,onSuccess:t}})},[e])};at.extend(rR);const Op=e=>{if(!e||typeof e!="object")return null;const{result_text:t,details:n}=e,s=n==null?void 0:n.reasons,r=s&&typeof s=="object"?s.message:void 0,a=o=>typeof o=="string"&&o.trim()?o:null;return a(r)??a(n==null?void 0:n.message)??a(t)},ufe=(e,t,n,s)=>{if(!e)return"";if(e==="winner_takes_all"||t<=1)return n("1 Winner takes all");if(e==="top_n_percent"){const r=(s==null?void 0:s.length)||0;return r>0?n("Top {count} split",{count:r}):n("Top % split")}return n("Top {count} split",{count:t})},dfe=(e,t)=>t?`${N.casino.gamesUrl}/${N.casino.gamesUrlSuffix}?${t}`:e,kp=(e,t)=>{if(!t)return"";if(t.startsWith("http://")||t.startsWith("https://")||t.startsWith("//"))return t;const n=e.replace(/\/+$/,""),s=t.replace(/^\/+/,"");return n?`${n}/${s}`:`/${s}`},_X=e=>e?e.replace(/^(https?:)?\/\/[^/]+/i,""):null,vX=(e,t)=>{const n=_X(t);return n?kp(e,n):""},ffe=(e,t)=>{const n=e.startsWith("/")?e:`/${e}`,s=`/${t}${n}`,r=ab(mm,s);return r.startsWith("http")?r:`${window.location.origin}${r}`},EX=e=>!e||e.startsWith("0000-00-00")?new Date(NaN):at.utc(e).toDate(),yR=(e,t)=>{if(isNaN(e)||e<=0)return"0";const n=Math.floor(e/86400),s=Math.floor(e%86400/3600),r=Math.floor(e%3600/60),a=[];return n>0&&a.push(`${n}${t("d")}`),s>0&&a.push(`${s}${t("h")}`),r>0&&a.push(`${r}${t("m")}`),a.length===0?`0${t("m")}`:a.join(" ")},pfe=(e,t)=>{if(!e)return"-";const n=EX(e).getTime();if(isNaN(n))return"-";const s=Math.floor((n-Date.now())/1e3);return s<=0?t("0"):yR(s,t)},mfe=(e,t)=>{const n=typeof e=="string"?parseInt(e,10):e;return yR(n,t)},hfe=(e,t)=>{if(!e)return"";const n=at.utc(e).local();if(!n.isValid())return"";const s=at(),r=s.diff(n);if(r<0)return t("just now");const a=Math.floor(r/1e3);if(a<60)return t("just now");const o=Math.floor(a/60);if(o<60)return t("{diffMins}m ago",{diffMins:o});const i=Math.floor(o/60);if(i<24)return t("{diffHours}h ago",{diffHours:i});const l=Math.floor(i/24);return l<7?t("{diffDays}d ago",{diffDays:l}):n.year()===s.year()?n.format("MMM D"):n.format("MMM D, YYYY")},gfe=e=>Intl.NumberFormat("en-US",{notation:"compact",maximumFractionDigits:1}).format(e),_fe=5e3,vfe=5e3,yX=new Set(["mp4","webm","ogg","m3u8","mov","avi","mkv","flv","wmv","3gp"]),Np=e=>{var n;const t=(n=e.split(".").pop())==null?void 0:n.toLowerCase();return yX.has(t??"")},bX=e=>e.type===2||!!e.file&&Np(e.file),SX=new Set(["tournament","game","stream"]),jw=e=>{var t;return e.targetType&&SX.has(e.targetType)?!!((t=e.target)!=null&&t.data):!0},CX=e=>{var t;return e.targetType==="tournament"&&!!((t=e.target)!=null&&t.data)},bR=e=>{var t;return e.targetType==="stream"&&!!((t=e.target)!=null&&t.data)},Efe=e=>{var t;if("targetType"in e&&bR(e)){const n=(t=e.target)==null?void 0:t.data;return(n==null?void 0:n.awsVideoUrl)||(n==null?void 0:n.downloadUrl)||(n==null?void 0:n.playbackUrl)||e.file}if("files"in e&&Array.isArray(e.files)&&e.files.length>0)return e.files[0].url;if("file"in e)return e.file},yfe=e=>e.filter(t=>t.stories.length>0),Bw=e=>{const n=(Te.getItemFromLocalStorage(eu)||{})[e.playerId];return e.stories.every(s=>s.isViewed||!!(n!=null&&n[s.id]))},bfe=(e,t)=>{const n=Te.getItemFromLocalStorage(eu)||{};n[e]||(n[e]={}),n[e][t]=!0,Te.setItemToLocalStorage(eu,n)},Sfe=e=>{const t=e.filter(s=>!Bw(s)),n=e.filter(s=>Bw(s));return[...t,...n]},Cfe=e=>{const t=Te.getItemFromLocalStorage(eu)||{};e.forEach(n=>{t[n.playerId]||(t[n.playerId]={}),n.stories.forEach(s=>{s.id in t[n.playerId]||(t[n.playerId][s.id]=!1)})}),Te.setItemToLocalStorage(eu,t)},TX=e=>{var r,a,o,i;const t=(a=(r=e.target)==null?void 0:r.data)==null?void 0:a.providerGameInfo;if(!t)return"";if(t.webpSrc)return t.webpSrc;if(t.src)return t.src;const n=N.cms.iconUrl??"",s=((o=t==null?void 0:t.icon)==null?void 0:o.icon_2)||((i=t==null?void 0:t.icon)==null?void 0:i.icon_3);return s?`${n}${s}`:""},Tfe=(e,t)=>{const n=e.stories[0];return{playerId:e.playerId,playerInfo:n==null?void 0:n.playerInfo,isMyStories:t,hasLiveStream:!1,stories:e.stories,startFrom:0}},wX=(e,t)=>{const s=[e.imgMedium,e.imgSmall,e.imgLarge,e.imgThumb].find(r=>!!r&&!Np(r));if(s)return s.startsWith("http")?s:kp(t,s);if(CX(e))return TX(e)||void 0},wfe=(e,t)=>{for(const n of e.stories){const s=wX(n,t);if(s)return s}},Ife=(e,t)=>{var s;const n=(s=e.playerInfo)==null?void 0:s.img;if(n&&!n.startsWith("http"))return kp(t,n);if(n&&n.startsWith("http"))try{const r=new URL(n);return kp(t,r.pathname)}catch{return}},Afe=e=>e.stories.length>0&&e.stories.every(t=>bX(t)||bR(t)),Pfe=(e,t,n)=>({playerId:t.id,playerInfo:t,isMyStories:n,hasLiveStream:!1,stories:e,startFrom:0}),xfe=e=>{const t=Te.getItemFromLocalStorage(tu)||{};e.forEach(n=>{t[n.playerId]||(t[n.playerId]={}),n.stories.forEach(s=>{s.id in t[n.playerId]||(t[n.playerId][s.id]=!1)})}),Te.setItemToLocalStorage(tu,t)},Ofe=e=>{const n=(Te.getItemFromLocalStorage(tu)||{})[e.playerId];return e.stories.every(s=>s.isViewed||!!(n!=null&&n[s.id]))},kfe=(e,t)=>{const n=Te.getItemFromLocalStorage(tu)||{};n[e]||(n[e]={}),n[e][t]=!0,Te.setItemToLocalStorage(tu,n)},IX=e=>{try{const{pathname:t}=new URL(e);return t.startsWith("/")?t.slice(1):t}catch{return e}},Nfe=()=>Va().story,AX=e=>{const[t,n]=p.useState([]),[s,r]=p.useState(!0),[a,o]=p.useState([]),[i,l]=p.useState(!1),[c,u]=p.useState([]),[f,m]=p.useState(!1),[h,g]=p.useState([]),[E,b]=p.useState(!1),[v,_]=p.useState([]),[y,S]=p.useState(!1),[w,x]=p.useState(null),[I,C]=p.useState(!1),T=Se(),P=gX(),[A,O]=p.useState(!1),[M,k]=p.useState(null),D=p.useRef(null),j=p.useRef({}),V=p.useCallback(()=>{var te;r(!0),ee.get({method:"GET",path:"/api/v1/my/stories/following",params:{page:1,includeTargetData:"1",PARTNER_ID:N.app.site_id,...(te=N.app.header.vivaroMeManagement)!=null&&te.wlId?{WL_ID:N.app.header.vivaroMeManagement.wlId}:{}}},"social_choice_me").then(({result:fe,details:le})=>{if(fe===0){const Ie=le.data.items.map(Fe=>({...Fe,stories:Fe.stories.filter(jw)})).filter(Fe=>Fe.stories.length>0);n(Ie)}}).catch(()=>{}).finally(()=>r(!1))},[]),R=p.useCallback(()=>{b(!0),ee.get({method:"GET",path:"/api/v1/my/stories/highlights",params:{PARTNER_ID:N.app.site_id}},"social_choice_me").then(({result:te,details:fe})=>{te===0&&!fe.error&&g(fe.data.items)}).catch(()=>{}).finally(()=>b(!1))},[]),U=p.useCallback((te,fe)=>new Promise(le=>{P(()=>{const Ie=String(N.app.site_id);ee.get({method:"POST",path:"/api/v1/stories/highlights",data:{name:te,storyIds:fe,PARTNER_ID:Ie}},"social_choice_me").then(Fe=>{Fe.result===0&&!Fe.details.error&&g(ct=>[Fe.details.data,...ct]),le(Fe)}).catch(Fe=>le(Fe))})}),[P]),G=p.useCallback((te,fe)=>new Promise(le=>{P(()=>{ee.get({method:"DELETE",path:`/api/v1/stories/highlights/${te}/stories/${fe}`,params:{PARTNER_ID:N.app.site_id}},"social_choice_me").then(Ie=>{Ie.result===0&&!Ie.details.error&&R(),le(Ie)}).catch(Ie=>le(Ie))})}),[P,R]),z=p.useCallback(()=>{l(!0),ee.get({method:"GET",path:"/api/v1/streams/live",params:{PARTNER_ID:N.app.site_id}},"social_choice_me").then(({result:te,details:fe})=>{te===0&&!fe.error&&o(fe.data.items)}).catch(()=>{}).finally(()=>l(!1))},[]),K=p.useCallback(te=>{m(!0),ee.get({method:"GET",path:`/api/v1/stories/${te}/watchers`,params:{PARTNER_ID:N.app.site_id}},"social_choice_me").then(({result:fe,details:le})=>{fe===0&&!le.error&&u(le.data.items)}).catch(()=>{}).finally(()=>m(!1))},[]),ne=p.useCallback((te,fe)=>{P(()=>{const le=te.id,Ie=N.app.site_id,Fe=`/api/v1/stories/${le}/like`,ct=(j.current[le]||0)+1;j.current[le]=ct;const Me=("reactionsCount"in te?te.reactionsCount:te.likesCount)??0,Oe=!fe,$e=Math.max(0,Me+(Oe?1:-1));e("story",le,{isLiked:Oe,likesCount:$e}),ee.get(fe?{method:"DELETE",path:Fe,params:{PARTNER_ID:String(Ie)}}:{method:"POST",path:Fe,data:{targetType:"story",targetId:le,PARTNER_ID:String(Ie)}},"social_choice_me").then(({result:De,details:Ee})=>{if(ct===j.current[le]&&(De!==0||!Ee||Ee.error))throw new Error("Failed validation")}).catch(()=>{ct===j.current[le]&&e("story",le,{isLiked:fe,likesCount:Me})})})},[P,e]),J=p.useCallback((te,fe)=>new Promise(le=>{P(()=>{const Ie=N.app.site_id;ee.get({method:"DELETE",path:`/api/v1/players/${te}/stories/${fe}`,params:{PARTNER_ID:Ie}},"social_choice_me").then(Fe=>{Fe.result===0&&!Fe.details.error&&V(),le(Fe)}).catch(Fe=>le(Fe))})}),[P,V]),$=p.useCallback(te=>{const fe=N.app.site_id;return ee.get({method:"POST",path:`/api/v1/stories/${te}/view`,data:{PARTNER_ID:fe}},"social_choice_me").catch(()=>{})},[]),L=p.useCallback(()=>{P(()=>{var te;(te=D.current)==null||te.click()})},[P]),W=p.useCallback(te=>{var le;const fe=(le=te.target.files)==null?void 0:le[0];fe&&(k(fe),D.current&&(D.current.value=""))},[]),q=p.useCallback(te=>{P(()=>{const{header:{vivaroMeManagement:fe},site_id:le}=N.app;if(!M)return;const Ie=M,Fe=Ie.name.split(".").pop()??"",ct=String(le);k(null),O(!0),ee.get({method:"POST",path:"/api/v1/aws-presigned",data:{filesCount:1,files:[{name:Ie.name,mime:Ie.type,size:Ie.size,extension:Fe}],PARTNER_ID:ct,...fe!=null&&fe.wlId?{WL_ID:fe.wlId}:{}}},"social_choice_me").then(({result:Me,result_text:Oe,details:$e})=>{var je;if(Me!==0||$e.error){Ce.error(Op({result_text:Oe,details:$e})??T("Failed to publish story. Please try again."),{position:"top-right"});return}const De=(je=$e.data.urls[0])==null?void 0:je.url;if(!De)return;const Ee=IX(De);return fetch(De,{method:"PUT",body:Ie,headers:{"Content-Type":Ie.type}}).then(()=>{const X={file:Ee,type:1,bg:"#000000",PARTNER_ID:ct,...fe!=null&&fe.wlId?{WL_ID:fe.wlId}:{}};if(te!=null&&te.target){const{targetType:H,targetId:F}=te.target;H&&F&&(X.targetType=H,X.targetId=F)}return ee.get({method:"POST",path:"/api/v1/players/stories",data:X},"social_choice_me")})}).then(Me=>{if(!Me)return;const{result:Oe,result_text:$e,details:De}=Me;if(Oe!==0||De!=null&&De.error){Ce.error(Op({result_text:$e,details:De})??T("Failed to publish story. Please try again."),{position:"top-right"});return}V(),Ce.success(T("Your story is under review and will be published after moderation"),{position:"top-right",autoClose:5e3})}).catch(()=>Ce.error(T("Failed to publish story. Please try again."),{position:"top-right"})).finally(()=>{O(!1)})})},[P,M,V,T]),de=p.useCallback(()=>{k(null)},[]),ue=p.useCallback((te,fe)=>{P(()=>{const le=String(N.app.site_id);ee.get({method:"POST",path:`/api/v1/stories/highlights/${te}/stories/${fe}`,data:{PARTNER_ID:le}},"social_choice_me").then(Ie=>{Ie.result===0&&!Ie.details.error&&R()}).catch(()=>{})})},[P,R]),Y=p.useCallback(te=>{C(!0),ee.get({method:"GET",path:`/api/v1/players/${te}/stories`,params:{PARTNER_ID:N.app.site_id}},"social_choice_me").then(({result:fe,details:le})=>{fe===0&&!le.error&&x(le.data.filter(jw))}).catch(()=>{}).finally(()=>C(!1))},[]),ae=p.useCallback(te=>{S(!0),ee.get({method:"GET",path:`/api/v1/players/${te}/stories/highlights`,params:{PARTNER_ID:N.app.site_id}},"social_choice_me").then(({result:fe,details:le})=>{fe===0&&!le.error&&_(le.data.items)}).catch(()=>{}).finally(()=>S(!1))},[]),ie=p.useCallback(te=>new Promise((fe,le)=>{P(()=>{const{site_id:Ie,header:{vivaroMeManagement:Fe}}=N.app;ee.get({method:"POST",path:"/api/v1/players/post",data:{targetType:"tournament",description:"",tags:"",targetId:String(te),PARTNER_ID:String(Ie),...Fe!=null&&Fe.wlId?{WL_ID:String(Fe.wlId)}:{}}},"social_choice_me").then(fe).catch(le)})}),[P]),Z=p.useCallback(te=>new Promise((fe,le)=>{P(()=>{const{site_id:Ie,header:{vivaroMeManagement:Fe}}=N.app;ee.get({method:"POST",path:"/api/v1/players/stories",data:{targetType:"tournament",description:"",tags:"",targetId:String(te),type:1,file:[],PARTNER_ID:String(Ie),...Fe!=null&&Fe.wlId?{WL_ID:String(Fe.wlId)}:{}}},"social_choice_me").then(fe).catch(le)})}),[P]);return{storyGroups:t,setStoryGroups:n,loading:s,fetchStories:V,highlights:h,loadingHighlights:E,fetchHighlights:R,playerHighlights:v,loadingPlayerHighlights:y,fetchPlayerHighlights:ae,playerStories:w,loadingPlayerStories:I,fetchPlayerStories:Y,createHighlight:U,removeStoryFromHighlight:G,addStoryToHighlight:ue,streams:a,setStreams:o,loadingStreams:i,fetchLiveStreams:z,watchers:c,setWatchers:u,loadingWatchers:f,fetchWatchers:K,toggleLikeStory:ne,deleteStory:J,markStoryViewed:$,uploading:A,pendingFile:M,fileInputRef:D,openFilePicker:L,handleFileChange:W,submitStory:q,cancelPendingStory:de,postTournament:ie,postTournamentStory:Z}},Fw=(e,t)=>`${e}:${t}`,SR=()=>Va().runtime,PX=()=>{const[e,t]=p.useState(()=>new Map),n=p.useCallback((a,o,i)=>{t(l=>{const c=Fw(a,o),u=new Map(l);return u.set(c,{...l.get(c),...i}),u})},[]),s=p.useCallback((a,o)=>e.get(Fw(a,o)),[e]),r=p.useCallback(()=>t(new Map),[]);return{overrides:e,patchRuntimeState:n,getRuntimeState:s,resetRuntimeState:r}},Rfe=()=>{const{site_id:e}=N.app,t=Se(),{patchRuntimeState:n,getRuntimeState:s}=SR(),r=p.useCallback((o,i,l)=>{var c;return((c=s(o,i))==null?void 0:c.isBookmarks)??l},[s]);return{toggleBookmark:p.useCallback((o,i,l)=>{n(o,i,{isBookmarks:!l}),(l?ee.get({method:"DELETE",path:"/api/v1/reactions",data:{targetType:o,targetId:i,reactionType:"bookmark"},params:{PARTNER_ID:e}},"social_choice_me"):ee.get({method:"POST",path:"/api/v1/reactions/bookmark",data:{targetType:o,targetId:i,PARTNER_ID:e}},"social_choice_me")).then(({result:u,result_text:f,details:m})=>{u!==0&&(n(o,i,{isBookmarks:l}),Ce.error(Op({result_text:f,details:m})??t("Failed to update bookmark")))}).catch(()=>{n(o,i,{isBookmarks:l}),Ce.error(t("Failed to update bookmark"))})},[n,e,t]),isBookmarked:r}},Lfe=()=>{const{site_id:e}=N.app,t=Se(),{patchRuntimeState:n,getRuntimeState:s}=SR(),r=p.useCallback((o,i)=>{var l;return((l=s("player",o))==null?void 0:l.isFollowing)??i},[s]);return{toggleFollow:p.useCallback((o,i)=>(n("player",o,{isFollowing:!i}),ee.get(i?{method:"DELETE",path:"/api/v1/reactions",data:{targetType:"player",targetId:o,reactionType:"follow"},params:{PARTNER_ID:e}}:{method:"POST",path:"/api/v1/reactions/follow",data:{targetType:"player",targetId:o,PARTNER_ID:e}},"social_choice_me").then(({result:l,result_text:c,details:u})=>{if(l===0&&!(u!=null&&u.error))return;n("player",o,{isFollowing:i});const f=Op({result_text:c,details:u})??"Failed to update follow status";return Ce.error(t(f)),Promise.reject(new Error(f))}).catch(l=>{throw n("player",o,{isFollowing:i}),l})),[n,e,t]),isFollowing:r}},xX=()=>{const[e,t]=p.useState(null),n=p.useRef(null),s=p.useCallback(a=>{n.current=a,t(a)},[]),r=p.useCallback(()=>{var a,o;(o=(a=n.current)==null?void 0:a.onClose)==null||o.call(a),n.current=null,t(null)},[]);return{storyViewer:e,openStoryViewer:s,closeStoryViewer:r}},Mfe=()=>Va().storyViewer,Ld={FEED:"feed",USER:"user",REELS:"reels",ROOMS:"rooms",ACCOUNT:"account",CREATE:"create",SPORTS:"sports",PROVIDER:"provider"},Dfe={LEADERBOARD:"leaderboard",CREATE:"create",LAUNCH:"launch"},jfe={QUICK:"quick"},Bfe={POSTS:"posts",REEL:"reel",STORY:"story"},Ffe=["users","business","games","providers","sport"],Ufe={post:"posts",repost:"reposts",bookmark:"bookmarks",history:"history"},hE="/social/feed",$fe="/social/rooms",Gfe="/social/create/posts",Vfe="/social/rooms/create",qg="socialSearch",Md="searchTerm",Uw="socialCreate",Kg="notifications",OX="reelId",$l="suggestionsOpen",$w=["all","users","providers","games"],Hfe={PROVIDER:2,INFLUENCER:3,BUSINESS:4};function Wfe(e){return e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e3?`${(e/1e3).toFixed(1)}K`:String(e??0)}function zfe(e,t){return`${e}_${t}`}function kX(e){const t=e.indexOf("_");if(t<=0)return null;const n=e.slice(0,t),s=e.slice(t+1);return!n||!s||isNaN(Number(n))||isNaN(Number(s))?null:{userId:n,postId:s}}const NX=()=>{const e=xn(),t=dn(),n=p.useMemo(()=>new URLSearchParams(e.search),[e.search]),s=n.get(qg),r=!!s,a=n.get(Uw),o=n.get(Md)??"",i=n.get(Kg)??"",l=n.get(OX),c=l?kX(l):null,u=(c==null?void 0:c.postId)??l,f=(c==null?void 0:c.userId)??null,m=n.get($l),h=m!==null&&$w.includes(m),g=h?m:"all",E=p.useCallback((C,T="push")=>{const P=new URLSearchParams(e.search);C(P);const A=e.pathname.includes("/social/"),M={pathname:A?void 0:hE,search:P.toString()};T==="replace"&&A?t.replace(M):t.push(M)},[t,e.pathname,e.search]),b=p.useCallback(()=>{E(C=>{C.delete(qg),C.delete(Md)})},[E]),v=p.useCallback(C=>{E(T=>T.set(qg,C),"replace")},[E]),_=p.useCallback(C=>{E(T=>{C?T.set(Md,C):T.delete(Md)},"replace")},[E]),y=p.useCallback(()=>{E(C=>C.delete(Uw))},[E]),S=p.useCallback(C=>{E(T=>{if(C){const P=T.get($l),A=P&&$w.includes(P)?P:"all";T.set($l,A)}else T.delete($l)},"replace")},[E]),w=p.useCallback(C=>{E(T=>T.set($l,C),"replace")},[E]),x=p.useCallback(C=>{E(T=>T.set(Kg,C),"replace")},[E]),I=p.useCallback(()=>{E(C=>C.delete(Kg))},[E]);return{socialSearchParam:s,socialSearchOpen:r,socialCreateOpen:a,searchTerm:o,reelId:u,reelUserId:f,suggestionsOpen:h,suggestionsTab:g,closeSocialSearch:b,setSocialSearchTab:v,setSearchTerm:_,closeSocialCreate:y,setSuggestionsOpen:S,setSuggestionsTab:w,notificationOpen:i,setNotificationOpen:x,closeNotificationOpen:I}},RX=(e,t)=>{var o,i,l,c,u,f,m;const n=((i=(o=e.users)==null?void 0:o[0])==null?void 0:i.nikName)||(((l=e.payload)==null?void 0:l.kind)==="social"?(c=e.payload.actor)==null?void 0:c.username:void 0)||t("Someone"),s=((u=e.payload)==null?void 0:u.kind)==="tournament_room"?e.payload.gameTitle:t("A game");let r=e.titleKey?t(e.titleKey):e.title,a=e.messageKey?t(e.messageKey):e.message;switch(e.type){case"follow":!e.titleKey&&!r&&(r=t("New Follower")),e.messageKey||(a=t("{1} started following you")),a=a.replace("{1}",n);break;case"like_post":!e.titleKey&&!r&&(r=t("Post Liked")),e.messageKey||(a=t("{1} liked your post")),a=a.replace("{1}",n);break;case"like_story":!e.titleKey&&!r&&(r=t("Story Liked")),e.messageKey||(a=t("{1} liked your story")),a=a.replace("{1}",n);break;case"re_post":!e.titleKey&&!r&&(r=t("Post Reposted")),e.messageKey||(a=t("{1} reposted your post")),a=a.replace("{1}",n);break;case"tournament_room":!e.titleKey&&!r&&(r=t("Room Update")),!e.messageKey&&!a&&(a=t("{1} is live. Play now!")),a=a.replace("{1}",s);break;case"payment":if(!e.titleKey&&!r&&(r=t("Wallet Update")),!e.messageKey&&!a&&((f=e.payload)==null?void 0:f.kind)==="tournament_wallet"&&(a=t("You won {1} {2}!")),((m=e.payload)==null?void 0:m.kind)==="tournament_wallet"){const h=String(e.payload.amount||0),g=e.payload.currency||"";a=a.replace("{1}",h).replace("{2}",g)}break;case"moderation":!e.titleKey&&!r&&(r=t("System Update")),!e.messageKey&&!a&&(a=t("Your account has a new update."));break;default:!e.titleKey&&!r&&(r=t("Notification")),!e.messageKey&&!a&&(a=t("You have a new activity update."));break}return{title:r||"",message:a||""}},Yfe=e=>{var b,v,_,y,S,w,x,I,C,T,P;const n=["tournament_room","payment"].includes(e.type),s=["like_post","like_story","re_post","follow"].includes(e.type),r=["like_post","like_story","re_post"].includes(e.type),a=n?((b=N.cms)==null?void 0:b.iconUrl)??"":((v=N.app.header.vivaroMeManagement)==null?void 0:v.imgUr)??"",o=A=>vX(a,A)||null,i=e.payload,l=o(e.thumbnailUrl),c=o(((_=i==null?void 0:i.post)==null?void 0:_.thumbnailUrl)||((y=i==null?void 0:i.post)==null?void 0:y.mediaUrl)),u=o(((S=i==null?void 0:i.story)==null?void 0:S.thumbnailUrl)||((w=i==null?void 0:i.story)==null?void 0:w.mediaUrl)),f=o(((I=(x=e.users)==null?void 0:x[0])==null?void 0:I.imgMedium)||((T=(C=e.users)==null?void 0:C[0])==null?void 0:T.imgThumb)),m=o((i==null?void 0:i.kind)==="social"?(P=i==null?void 0:i.actor)==null?void 0:P.avatar:null),g=s?f||m:l||c||u||f||m||null;let E=r?c||u||l:null;return E&&E===g&&(E=null),{leftImage:g,rightImage:E,isLeftVideo:g?Np(g):!1,isRightVideo:E?Np(E):!1}},Gw={items:[],unreadCount:0,loading:!1,hasNextPage:!1},LX=3e4,MX=(e,t="all")=>{const[n,s]=p.useState(Gw),{setNotificationOpen:r}=NX(),a=Se(),{site_id:o,header:{vivaroMeManagement:i}}=N.app,l=p.useMemo(()=>({PARTNER_ID:o,...i!=null&&i.wlId?{WL_ID:i.wlId}:{}}),[o,i==null?void 0:i.wlId]),c=p.useRef(1),u=p.useRef(!0),f=p.useRef(new Set),m=p.useRef(),h=p.useCallback((y,S=!1)=>{if(!(e!=null&&e.id))return;s(x=>({...x,loading:!0}));const w={...l,page:String(y),limit:"20"};t!=="all"?w.type=t:w.status="all",ee.get({method:"GET",path:"/api/v1/notifications",params:w},"social_choice_me").then(({result:x,details:I})=>{var C,T,P;if(x===0&&!I.error){const A=((C=I.data)==null?void 0:C.items)??[],O=((P=(T=I.data)==null?void 0:T.meta)==null?void 0:P.hasNextPage)??!1;!u.current&&y===1&&A.filter(k=>!k.isRead&&!f.current.has(k.id)).forEach(k=>{const{message:D}=RX(k,a);Ce.info(d.jsxs("p",{className:"toast-notification-message-content",children:[d.jsx("i",{className:"bc-i-PushNotificationF toast-notification-icon"}),d.jsxs("span",{className:"toast-notification-message-text cursor-pointer",onClick:()=>{m.current&&m.current(k.id),r("all")},children:[D," "]})]}),{theme:"light",position:"top-right",className:"toast-notification-message",autoClose:5e3,draggable:!1,closeOnClick:!0})}),A.forEach(M=>f.current.add(M.id)),u.current=!1,s(M=>{const k=S?[...M.items,...A]:A;return{items:k,unreadCount:k.filter(D=>!D.isRead).length,loading:!1,hasNextPage:O}}),c.current=y}else s(A=>({...A,loading:!1}))}).catch(()=>{s(x=>({...x,loading:!1}))})},[e==null?void 0:e.id,l,t,a,r]),g=p.useCallback(()=>{!n.hasNextPage||n.loading||h(c.current+1,!0)},[n.hasNextPage,n.loading,h]),E=p.useCallback(()=>{c.current=1,h(1,!1)},[h]),b=p.useCallback(y=>{e!=null&&e.id&&(s(S=>({...S,items:S.items.map(w=>w.id===y?{...w,isRead:!0}:w),unreadCount:Math.max(0,S.unreadCount-1)})),ee.get({method:"POST",path:`/api/v1/notifications/${y}/read`,params:l},"social_choice_me").then(({result:S,details:w})=>{S===0&&!(w!=null&&w.error)?s(x=>({...x,unreadCount:x.items.filter(I=>!I.isRead).length})):E()}).catch(()=>E()))},[l,e==null?void 0:e.id,E]);p.useEffect(()=>{m.current=b},[b]);const v=p.useCallback(()=>{e!=null&&e.id&&(s(y=>({...y,items:y.items.map(S=>({...S,isRead:!0})),unreadCount:0})),ee.get({method:"POST",path:"/api/v1/notifications/read-all",params:l},"social_choice_me").catch(()=>E()))},[l,e==null?void 0:e.id,E]),_=p.useCallback(()=>{e!=null&&e.id&&(s(y=>({...y,items:[],unreadCount:0})),ee.get({method:"POST",path:"/api/v1/notifications/clear",params:l},"social_choice_me").catch(()=>E()))},[l,e==null?void 0:e.id,E]);return p.useEffect(()=>{if(!(e!=null&&e.id)){s(Gw),u.current=!0,f.current.clear();return}if(u.current=!0,E(),typeof document>"u")return;let y;const S=()=>{y=setInterval(()=>{document.visibilityState==="visible"&&E()},LX)};S();const w=()=>{document.visibilityState==="visible"?(E(),y===null&&S()):y!==null&&(clearInterval(y),y=null)};return document.addEventListener("visibilitychange",w),()=>{y!==null&&clearInterval(y),document.removeEventListener("visibilitychange",w)}},[e==null?void 0:e.id,t,E]),{...n,notifications:n.items,markAsRead:b,markAllAsRead:v,clearAll:_,refresh:E,loadMore:g}},DX=p.lazy(()=>B(()=>import("./FeedStoryViewer-B5c4B_hD.js"),__vite__mapDeps([597,311,312,313,1,432,433,557,558,252,559,560,598,599,326,40,556,255,256,257,460,467,561,600])).then(e=>({default:e.FeedStoryViewer})));let Qg=null;const CR=p.createContext({}),Va=()=>p.useContext(CR),jX=({children:e})=>{const[t,n]=p.useState(null),[s,r]=p.useState(0),a=xt(),{isLoggedIn:o,loginInProgress:i}=ye(),l=p.useRef(null),c=p.useRef(!1),{header:{vivaroMeManagement:u}}=N.app,f=p.useCallback(I=>{Qg=I,n(I),r(C=>C+1)},[]),m=p.useCallback(()=>{const I=vt.getAuthToken();!I||c.current||(c.current=!0,ee.get({method:"POST",path:"/api/v1/auth/sign-in",data:{token:I,...u!=null&&u.wlId?{WL_ID:u.wlId}:{}}},"social_choice_me").then(({result:C,details:T})=>{a.current&&C===0&&f((T==null?void 0:T.data)??null)}).catch(C=>{console.error("VivaroMe sign-in error:",C)}).finally(()=>{c.current=!1}))},[a,u==null?void 0:u.wlId,f]),h=p.useCallback(()=>{o?Qg?f(Qg):m():i||f(null)},[o,i,m,f]);p.useEffect(()=>{var C,T;const I=l.current;l.current=o,I!==o&&((T=(C=N.app.header.vivaroMeManagement)==null?void 0:C.feedNews)!=null&&T.enabled&&hX.reset(),o?h():i||(c.current=!1,f(null)))},[o,i,h,f]);const g=PX(),{resetRuntimeState:E}=g,b=AX(g.patchRuntimeState),v=xX();p.useEffect(()=>{!o&&!i&&E()},[o,i,E]);const _=p.useRef([]),y=p.useCallback(I=>{const C=_.current;C[C.length-1]!==I&&C.push(I)},[]),S=p.useCallback(()=>{const I=_.current;return I.pop(),I[I.length-1]},[]),w=p.useMemo(()=>({trackSocialPath:y,popPreviousSocialPath:S}),[y,S]),x=MX(t);return d.jsxs(CR.Provider,{value:{player:t,readyCount:s,init:h,updateProfile:f,story:b,runtime:g,storyViewer:v,navigation:w,notifications:x},children:[e,v.storyViewer&&Do.createPortal(d.jsx(p.Suspense,{fallback:null,children:d.jsx(DX,{storyGroups:v.storyViewer.storyGroups,initialGroupIndex:v.storyViewer.initialGroupIndex,imgBaseUrl:v.storyViewer.imgBaseUrl,onAddStory:v.storyViewer.onAddStory,markViewed:v.storyViewer.markViewed,onClose:v.closeStoryViewer})}),document.body)]})},BX=()=>Va().player||{},qfe=e=>{const{readyCount:t,init:n}=Va(),s=p.useRef(e);s.current=e,p.useEffect(()=>{t>0||n()},[]),p.useEffect(()=>{t!==0&&s.current()},[t])},FX="/assets/avatar.png",UX=({to:e,title:t,children:n,setCustomBadge:s,isActive:r,type:a})=>{var f;const o=BX(),{notifications:{unreadCount:i}}=Va(),l=((f=N.app.header.vivaroMeManagement)==null?void 0:f.imgUr)??"",c=e==null?void 0:e.includes("/social/account"),u=!r&&a==="default"&&(e==null?void 0:e.includes("/social/feed"));return p.useEffect(()=>{if(s)return(c||u)&&i>0?s({title:String(i),class:"new"}):s(void 0),()=>{s(void 0)}},[c,u,s,i]),c?d.jsxs(d.Fragment,{children:[d.jsx("img",{src:o!=null&&o.img?`${l}${o.img}`:FX,className:"socialNavigationProfileAvatar",alt:t||"Player Avatar"}),d.jsx("span",{children:t})]}):d.jsx(d.Fragment,{children:n})},$X=({to:e,title:t,children:n,setCustomBadge:s,isActive:r,type:a})=>{var f,m;const o=(f=N.app.header.vivaroMeManagement)==null?void 0:f.enabled,i=(m=N.app.header.vivaroMeManagement)==null?void 0:m.isInternal,l=e==null?void 0:e.includes("/social/account"),c=!r&&a==="default"&&(e==null?void 0:e.includes("/social/feed"));return!o||!i||!(l||c)?d.jsx(d.Fragment,{children:n}):d.jsx(UX,{to:e,title:t,setCustomBadge:s,isActive:r,type:a,children:n})},GX=p.memo(function({to:t,title:n,target:s,submenus:r=[],svgIconName:a,badge:o,onClick:i=Ut}){var u;const l=t||((u=r[0])==null?void 0:u.to),c=p.useCallback((f,m)=>l&&Ra(l,m)||r.some(h=>h.to&&Ra(h.to,m)),[l,r]);return d.jsxs(gk,{className:"hdr-navigation-link-bc",badge:o,to:l,target:s,exact:l==="/",isActive:c,onClick:i,"aria-label":n,children:[a&&N.app.showHeaderNavigationIconsMobile?d.jsx(an,{name:a,className:"nav-menu-icon"}):null,d.jsx("span",{className:"nav-menu-title",children:n})]})}),VX=p.memo(function e({to:t,title:n,target:s,submenus:r=[],badge:a,onClick:o,visible:i=!0,svgIconName:l,...c}){var y;const u=xn(),f=p.useMemo(()=>ym(r),[r]),m=t||((y=f[0])==null?void 0:y.to),h=f.length>0,g=p.useMemo(()=>{const S=f.some(w=>w.to&&Ra(w.to,u));return m&&Ra(m,u)||S},[f,u,m]),[E,b]=p.useState(void 0),v=p.useCallback(S=>{S.stopPropagation();const w=S.pointerType,x={to:t,title:n,target:s,submenus:r,badge:a,svgIconName:l,...c};w!=="mouse"&&h&&S.preventDefault(),o==null||o(x,w,h)},[t,n,s,r,a,l,c,h,o]),_=p.useCallback(()=>g,[g]);return d.jsxs("li",{className:i?"":"hidden-global",children:[d.jsx(gk,{className:"nav-menu-item",badge:E??a,to:m,target:s,exact:m==="/",isActive:_,onPointerDown:v,"aria-label":n,children:d.jsxs($X,{to:t,title:n,setCustomBadge:b,isActive:g,type:c.type,children:[l?d.jsx(an,{name:l}):null,d.jsx("span",{children:n}),h&&d.jsx("i",{className:"nav-menu-sub-arrow bc-i-small-arrow-right"})]})}),h&&d.jsx("ul",{className:"nav-menu-sub",children:f.map(S=>d.jsx(e,{onClick:o,...S,type:"hover"},S.id))})]})}),Vw=e=>Q.isMobile===1?d.jsx(GX,{...e}):d.jsx(VX,{...e}),HX=670,TR=p.memo(function({items:t,isSubMenuItem:n}){const s=Se(),r=xn(),a=p.useRef(null),o=p.useRef(!1),[i,l]=p.useState(-1),[c,u]=p.useState(!1),[f,m]=p.useState(!1),h=pX(f,HX),[g,E]=p.useState(!1),b=p.useMemo(()=>i>-1?t.slice(i):[],[i,t]),v=b.length>0,_=p.useMemo(()=>v&&b.some(S=>S.to&&Ra(S.to,r)||(S==null?void 0:S.submenus.some(w=>w.to&&Ra(w.to,r)))),[r,b,v]);p.useLayoutEffect(function(){if(o.current=!0,a.current){let w;const x=new ResizeObserver(([{target:I}])=>{const C=Array.from(I.children);if(C.length){const T=C[0].getBoundingClientRect().top;o.current&&!c?w=setTimeout(()=>{l(C.findIndex(P=>P.getBoundingClientRect().top>C[0].getBoundingClientRect().top)),u(!0),o.current=!1},400):(w&&clearTimeout(w),l(C.findIndex(P=>P.getBoundingClientRect().top>T)))}});return x.observe(a.current),()=>{x.disconnect()}}},[t,c]);const y=(S,w,x)=>{m(!f),E(w!=="mouse"?!x:!1),en.dispatchEvent("trackingEvent",{category:"Other",action:"Clicked Menu item",additionalData:{menuItemData:{itemName:S.titleValue||S.title,isSubMenuItem:n}}})};return d.jsxs("nav",{className:`nav-menu-container header-navigation ${f!==h||g?"hide-hover-effect":""}`,onMouseEnter:()=>E(!1),children:[d.jsx("ul",{className:"nav-menu nav-menu-hide-items",ref:a,children:t.map((S,w)=>d.jsx(Vw,{...S,type:n?"submenu":"default",onClick:y,visible:c&&(!v||wE(!1),children:[d.jsx("i",{className:"bc-i-apps"}),s(S2),d.jsx("ul",{className:"nav-menu-sub",children:b.map(S=>d.jsx(Vw,{...S,onClick:y,type:n?"submenu":"default"},S.id))})]})})]})}),WX=p.memo(function({items:t}){const n=ym(t);return Wt("has-sub-navigation"),d.jsx(TR,{items:n,isSubMenuItem:!0})}),Dd={src:"",title:"",loading:!1},zX=({imageOnly:e=!1})=>{const t=xt(),[{src:n,title:s,loading:r},a]=p.useState(Dd),{profile:{loyalty_level_id:o}}=ye(),{language:i}=ke(),{isLoggedIn:l}=ye(),{is_loyalty_v2:c,is_using_loyalty_program:u}=Fs(),f=l&&c&&u;return Wt(Q.isMobile&&f&&n?"has-header-info-loyalty":""),p.useEffect(function(){f&&(a({...Dd,loading:!0}),Gb.loadLoyaltyProgramGroupsWithLevels(i).then(h=>{if(t.current&&h.data)if(o!==null){const g=h.data.find(E=>E.items.some(lt("id",o)));if(g){a({src:g.src,title:g.title,loading:!1});return}}else{const g=h.data[0];if(g){a({src:g.src,title:g.title,loading:!1});return}}a(Dd)}).catch(()=>{a(Dd)}))},[t,i,o,f]),r?d.jsx("div",{className:"skeleton-loader-small-select"}):e&&n?d.jsx("div",{className:"loyaltyBonusHeader",children:d.jsx("img",{className:"loyaltyBonusImg",src:`${N.cms.iconUrl}${n}`,alt:""})}):f&&n&&s?d.jsxs(Nt,{className:"loyaltyBonusHeader",to:m=>({search:bt({section:"bonuses",page:"loyalty-points"},m)}),children:[d.jsx("p",{className:"loyaltyBonusHeaderShadow"}),d.jsx("p",{className:"loyaltyBonusHeaderBackground"}),d.jsx("p",{className:"loyaltyBonusHeaderText ellipsis",children:s}),d.jsx("img",{className:"loyaltyBonusImg",src:`${N.cms.iconUrl}${n}`,alt:""})]}):null},YX="/assets/live-stream.Dl94k7MW.gif",qX="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB0AAAAYCAYAAAAGXva8AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAABP1JREFUeAG1ll1sU2UYx/+n7en6ddqua7tu3ahsHfuCDgQ2BiPjO+PbqRAlGPBCjB93mugdXphgjHqjQSPBECMJGBUTI+FzuM2FbcA2vmw71m6lW2m79vR0bU8/TnuOZ154oTd2zF/yXv/eJ//ned6XwH9H2nH8tK0dLd93rDGhoWoJ7snyiJVJ0dvvRd/vbiR1AjQ6GQxqK1ItFpTPEFg3PofakAJH9C6cgh55cwTSIqR46diX70Uf+WyTobTE8ygNhVmPcV8E7isuJPVy5PzTCJblEVpfD4pO44lJjhqVHkyKRU1YhpNOLy5cdENWhFPYqFGvvVStxFiPHxznA+V0w8nxiPEBaGgFolIG+vsxVOlSmFLyEHQU/HwCdUIWfdNZGJu0aMsrISlCikFWrUgXtEStsQT2ZWYIHAWLQoWSWBA5XrxVJg8ml0QkEIQxwUJwBtEvVjkw7oNfyKCcMcIhkRcnJeRcoaOzkugqLcfkyDRkQRZjIQa8rhEOzVIQHAFkOITdI2Ddblg5GeqTAvRKEvFsBvcDk7gKobhM7RuOPrdhewWlDoMoS+ZhTpRBYtXDViXBO1uXo8ebRTL1BBAFKZYBE2QQdSfBPAyCyhEYn3kApTxXXKXJiHuIUkrRXKqCQUsiFp2BI8rBJZ6bw050q5WojFshzAmQRPKQ+lIoTaThUKnAWaQgWRbR1q7iKuUV2lhH1+5uW0kBFVkW/CyDaaccmlwCKy15nObmsG/zeigfCpiVcKgx2pCRyrA8ZhYzjiCSiWBCHS9OGvHcDjd0HDvocBgVWq8LpDYGEyPAFyZxyjmJbeIsPDbnUbGjFXW/DkKVK0Pizi00b6/BC293ogYKJPduKk46j+CPxDcf6u5cYiqgP8ShkfSBLjci652GJw70v6bGuxMC2rdvRsusByETUKmmkKdsaForQ2gsWLx0yn/X/Uz1jr1Ju4Pa3zCLc71ebNTR+M6fQr3YrVaVEp2eKI4P3UL57j2QDEaRVWhhHr6Lz7x/wBqTFi+dh/dHekyNW7sv/MaRdkMc9yYCKOEEWDRzeGWfFifOMGhTcRib8SC3pxX0xWvokyhg8UjRujS1MOlk2M2u0NA/2NccOHJD0BGXPTnUiY1zeFUIrplloH1xTLAktlAF3EhIYDj8IjbNpaDUaXF+Xe3CpPMMjI7mmkp11KuHtqzQZw1C+9Z2okRrwM6fWJTJ9BDEWc1kJPjEmsSZAAvXvnrwzfUYNRQWLv1LPHL95lu7jjY66itttx97+SYyQwz00oiVauGqENdjAiAZFm+UB3C9J46blSya9Nqnk4oQX5394tKjtO8cqne1DbpZU7uBxuvqKchlFEbzMqRJJcwCgY92PAYzrAJ9LwECi8P8ZuNPfN77wQBXtcdE+1A97oE+HhDHSIehmBF9H0Zw9moBQ2e+XTTp34yeHzmVlWDl6eEksZr3oIV0QZIjMRi0483DDD498vXiS+32nSWjv7x/mb4Q0twhLVCogthW/gBenxZGfhb3yYanzvRf0PREQR5tvNJ2sPNlivGC5qyY05hQt4aDnH6CpTbJ4kvn6X1wLWF+dn12U6mlLZ8SfxBCLaYFI/RVKmiy7v9HOs+1iz/eVa3a32JQKKpW65yiuA7a1WbIxU5e9Ez/yTfnfT9X8GFrlxAlbhEqUMsKxT3iC2Hw4+cPmJurZk9OWYVaVRRmC4E/ARWGJU3NJw9zAAAAAElFTkSuQmCC",KX=()=>{var n;const e=Ga(),t=tB(Hn);return t!=null&&t.params.gameId?Number(t.params.gameId):(n=dV(e))==null?void 0:n.game},zb=()=>p.useContext($N),QX=()=>{const e=N.sportsbook.liveStreaming.exclusiveStream.enabled,{exclusiveStreamGameIds:t,init:n}=p.useContext(LN),{streaming:{openExclusiveStream:s}}=zb(),r=dn(),a=KX(),o=Se(),[i,l]=p.useState(null);p.useEffect(()=>{e&&n()},[]),p.useEffect(()=>{if(!t.size){l(null);return}let u=!1;return ee.get({source:"betting",what:{game:["is_live"]},where:{game:{id:{"@in":[...t]}}}}).then(({data:{game:f}})=>{if(!u){const m=Object.keys(f).find(h=>f[h].is_live);l(m?Number(m):null)}}).catch(()=>rt.error("failed to resolve exclusive stream live game")),()=>{u=!0}},[t]);const c=p.useCallback(()=>{i!==null&&(s(i),i!==a&&_b(i).then(u=>r.push(u)).catch(()=>rt.error(`failed to redirect to exclusive stream game with ID ${i}`)))},[a,r,i,s]);return!e||i===null?null:d.jsxs("button",{type:"button",className:"exclusiveStreamHeader",title:o("Exclusive Stream"),onClick:c,children:[d.jsx("img",{className:"exclusiveStreamHeaderIcon",src:YX,alt:""}),d.jsxs("span",{className:"exclusiveStreamHeaderText",children:[d.jsx("span",{children:o("Trader's")}),d.jsx("span",{children:o("Live stream")})]}),d.jsx("img",{className:"exclusiveStreamHeaderPhantom",src:qX,alt:""})]})},XX={0:"1",1:"2"},JX="https://acc.{domain}/?partnerId={site_id}&token={auth_token}&devicetypeid={devicetypeid}&langId={locale}",ZX=({close:e})=>{const{locale:t}=ke(),n=p.useMemo(()=>JX.replace(Hy,(s,r)=>({domain:Fo(),site_id:String(N.app.site_id),auth_token:vt.getAuthToken()??"",locale:t,devicetypeid:XX[Q.isMobile]})[r]),[t]);return p.useEffect(function(){const r=rx(n,["protocol","host"]).join("//"),a=({data:{action:o},origin:i})=>{i===r&&o==="closeCashbackApp"&&e()};return window.addEventListener("message",a),()=>window.removeEventListener("message",a)},[n,e]),d.jsx("div",{className:"cashbackVaultBoxesContent",children:d.jsx("iframe",{src:n})})},hf=()=>{ve.open(e=>({fullScreen:!!Q.isMobile,className:"user-profile-container cashbackVaultBoxes",Component:()=>d.jsx(ZX,{close:e}),hideCloseButton:!0}))},Hw={exists:!1,amount:null},eJ=()=>{const e=xt(),{isLoggedIn:t}=ye(),{enableCashbackVaultBoxesInLoyalty:n}=N.casino,[{exists:s,amount:r},a]=p.useState(Hw),o=n&&s&&r&&r>0;return p.useEffect(function(){t&&n&&ee.get({source_id:N.app.site_id},"get_container_collect_state").then(({result:l,details:{HasError:c,Result:{Amount:u,IsAvailable:f}}})=>{if(l===0&&!c&&e.current)a({amount:u,exists:f});else throw new Error}).catch(()=>{e.current&&a(Hw)})},[n,t,e]),o?d.jsx("p",{className:"cashbackVaultBoxesHeader",onClick:hf}):null},tJ=(e,t)=>e,nJ=({source:e,href:t,icon:n,target:s="_blank",showTo:r=Xn.All})=>{const a=Se(),{productType:o}=ke(),{isLoggedIn:i}=ye();return EO(r,i)?d.jsx(Nt,{className:`${n?`bc-i-${n}`:""} header-icon`,to:tJ(t),target:s,children:e?d.jsx(Go,{src:e,loading:"lazy",alt:a("Header Icon")}):null}):null},fr=({availableFor:e=[],disabledFor:t=[],...n})=>({...n,availableFor:e,disabledFor:t}),wR=-100,sJ=[fr({key:"feed",label:"Feed",icon:"Homepage",path:"/social/feed",type:"tab",order:1}),fr({key:"rooms",label:"Rooms",icon:"Rooms2",path:"/social/rooms",type:"tab",order:2}),fr({key:"create",label:"Create",icon:"Add",type:"create",order:wR,mobileOnly:!0}),fr({key:"create",label:"Create",icon:"Add",type:"create",order:-1,mobileOnly:!1}),fr({key:"reels",label:"Reels",icon:"Reels",path:"/social/reels",type:"tab",order:3}),fr({key:"sports",label:"Sports",icon:"SocialSport",path:"/social/sports/home",type:"tab",order:4}),fr({key:"search",label:"Search",icon:"SearchShort",type:"search",order:6,mobileOnly:!0}),fr({key:"search",label:"Search",icon:"SearchShort",type:"search",order:0,mobileOnly:!1}),fr({key:"betslip",label:"Betslip",icon:"Betslip",type:"betslip",order:5,availableFor:["sports"],mobileOnly:!0}),fr({key:"profile",label:"Profile",icon:"",type:"profile",order:1e3,path:"/social/account"})],rJ=(e,t,n,s)=>e.mobileOnly===!0&&!t||e.mobileOnly===!1&&t||n&&(e.availableFor.length>0&&!e.availableFor.includes(n)||e.disabledFor.includes(n))?!1:!s||s.includes(e.type),IR=({isMobile:e,currentPage:t,types:n})=>{const s=!!e,r=[],a=[];for(const i of sJ)rJ(i,s,t,n)&&(i.order===wR?a:r).push(i);if(r.sort((i,l)=>i.order-l.order),!a.length)return r;const o=Math.ceil(r.length/2)-1;return[...r.slice(0,o),...a,...r.slice(o)]},aJ=new Set(["rooms","sports"]),Kfe=e=>IR(e).filter(t=>!aJ.has(t.key)),oJ="/social",gE=e=>e.includes(oJ),AR=e=>{if(!/^https?:\/\//.test(e))return!1;try{return new URL(e).host!==window.location.host}catch{return!1}},iJ=()=>{const e=dn();return p.useMemo(()=>{const t=s=>(r,a)=>{if(typeof r=="string"){const o=ab(mm,r);if(AR(o)){s==="replace"?window.location.replace(o):window.location.assign(o);return}const i=gE(window.location.pathname)&&gE(o)?"replace":s;e[i](o,a);return}e[s](r)},n=t("push");return n.replace=t("replace"),n},[e])},lJ=e=>{const t=ut(e);return t?`?${t}`:""},Ww=({isLoggedIn:e,locale:t,externalPath:n,internalPath:s,internalTarget:r="_self",externalTarget:a="_blank",queryParams:o={}})=>{const i=N.app.header.vivaroMeManagement;if(!i)return{to:"",target:"_self"};if(i.isInternal)return{to:s??n,target:r};const l=i.href??`social.${Fo()}`,c=n.startsWith("/")?n.slice(1):n,u=`https://${l}/${t}/${c}`,f={...o},m=vt.get(!0);return e&&(m!=null&&m.auth_token)&&(f.auth_token=m.auth_token),{to:`${u}${lJ(f)}`,target:a}},cJ=()=>{const{isLoggedIn:e}=ye(),{locale:t}=ke(),n=dn(),s=p.useCallback(a=>Ww({...a,locale:t}),[t]),r=p.useCallback(a=>{const{to:o,target:i}=Ww({...a,locale:t,isLoggedIn:e});o&&(AR(o)?window.open(o,i):n.push(o))},[t,e,n]);return{getUrl:s,navigate:r}},Qfe=({pageType:e,hasDeepSubPage:t})=>{const{pathname:n}=xn(),{navigation:{trackSocialPath:s,popPreviousSocialPath:r}}=Va();p.useEffect(()=>{gE(n)&&s(n)},[n,s]);const a=iJ(),o=dm(),i=!!e&&e!==Ld.FEED&&e!==Ld.CREATE&&e!==Ld.ROOMS&&(!Q.isMobile||t),l=e===Ld.SPORTS,c=p.useMemo(()=>IR({isMobile:!!Q.isMobile,currentPage:e}),[e]),u=p.useMemo(()=>{var h;const m=l?"sports":"feed";return((h=c.find(g=>g.key===m))==null?void 0:h.path)??hE},[c,l]),f=p.useCallback(()=>{const m=r();if(m){o.replace(m);return}const g=n.replace(/^\/[a-z]{2}(?=\/)/,"")===u?hE:u;a.replace(g)},[a,o,u,r,n]);return{navigate:a,showBackNav:i,goBack:f}},uJ=()=>{const e=Se(),{header:{vivaroMeManagement:t}}=N.app,{navigate:n}=cJ();return Wt(Q.isMobile?"has-header-info-vivarome":""),!t||t.isInternal?null:d.jsx("div",{className:t.icon?"":"VivaroMeLogo",onClick:()=>n({externalPath:"/",internalPath:"/social/feed"}),children:t.icon?d.jsx(an,{name:t.icon,className:"vivaroMeHeaderIcon"}):d.jsx(Go,{src:t.source,loading:"lazy",alt:e("Vivaro me"),className:"vivaroMeHeaderImage"})})},dJ=({onClick:e})=>{const t=Se(),{assets:{logo:n}}=ke(),{header:{secondaryIcon:s,showNearLogoText:r,vivaroMeManagement:a}}=N.app;return d.jsxs("div",{className:"logo-container",children:[d.jsxs(Nt,{className:"logo",to:Or,onClick:e,children:[d.jsx("img",{className:"hdr-logo-bc",src:n,alt:t("Header Logo")}),r&&d.jsx("p",{dangerouslySetInnerHTML:{__html:t(C2)}})]}),s&&(Q.isMobile?!(a!=null&&a.enabled)||(a==null?void 0:a.isInternal):!0)&&d.jsx(nJ,{...s}),(a==null?void 0:a.enabled)&&!(a!=null&&a.isInternal)&&d.jsx(uJ,{})]})},fJ="removeChild";class bn extends p.Component{constructor(t){super(t),this.state={hasError:!1}}static getDerivedStateFromError(t){return{hasError:!0}}componentDidCatch(t){var n;(n=t.stack)!=null&&n.includes(fJ)||ee.reportError(this.props.errorType,t,{path:window.location.pathname,search:window.location.search,releaseDate:"08/06/2026-18:01"})}render(){return this.state.hasError?this.props.showErrorPage?d.jsx(Eb,{message:"Something went wrong",className:"full"}):this.props.showLoader?d.jsx(Mt,{size:"medium",...this.props.fullLoader&&{className:"full"}}):null:this.props.children}}const pJ=()=>{const{components:e}=AN(jb.PANEL);return d.jsx(d.Fragment,{children:e.map(({LazyComponent:t,selected:n,name:s,props:r})=>d.jsx(t,{show:n,...r},s))})},mJ=p.memo(pJ),hJ=()=>He.dispatchEvent("closeSmartPanel"),gJ=[gv],_J=()=>{const e=p.useRef(null);Ru({container:e,callback:hJ,ignoredElementsIds:gJ});const{isLoggedIn:t,profile:{bonusAvailable:n}}=ye(),s=p.useMemo(()=>[...N.app.smartPanel.items,...N.sportsbook.enabled?[{actions:[{type:"openBetslip",data:{}}],iconClass:"bc-i-betslip",permissions:null,title:"Betslip",component:"Betslip",target:""}]:[]].filter(r=>!r.permissions||!r.permissions.loggedIn||r.permissions.loggedIn===t&&(!r.permissions.bonusAvailable||r.permissions.bonusAvailable===n)).map(r=>{var a;return{...r,LazyComponent:r.component&&((a=Oo[r.component])!=null&&a.button)?Ne(Oo[r.component].button):Ne(()=>B(()=>import("./ButtonWithAction-i84DJJwe.js"),__vite__mapDeps([601,208,1])))}}),[n,t]);return d.jsx("div",{className:"hdr-smart-panel-holder-arrow-bc",ref:e,children:d.jsx("div",{className:"hdr-smart-panel-holder-bc",children:d.jsx(p.Suspense,{fallback:d.jsx(Mt,{size:"small"}),children:s.map(({LazyComponent:r,...a})=>r?d.jsx(r,{...a},`${a.title}_${a.iconClass}`):null)})})})},vJ=p.memo(_J),zw=p.memo(()=>d.jsxs(d.Fragment,{children:[d.jsx(vJ,{}),d.jsx(mJ,{})]})),EJ={eng:"unitedkingdom",rus:"russia",arm:"armenia",fas:"iran",zhh:"china",geo:"georgia",arb:"arableague","pt-br":"brazil",uzb:"uzbekistan",kir:"kyrgyzstan",kur:"kurdish",swa:"unitedrepublicoftanzania",kor:"southkorea",hin:"india",heb:"israel",kaz:"kazakhstan",sqi:"albania",vnm:"vietnam",dan:"denmark",tgl:"philippines",ben:"bangladesh",rov:"romania","en-ca":"canada",azf:"iran",msa:"malaysia",urd:"pakistan"},PR=()=>{const{language:e}=ke(),t=qm(),{isLoggedIn:n}=ye(),s=p.useCallback(r=>{if(r!==e){const a=Na.getInstance();Promise.all([ee.setLanguages(vv[r]||r,"change_session_language"),n&&ee.setLanguages(vv[r]||r,"set_preferred_language"),Bx(r),ck(r)]).then(()=>{const o=Tm(r);a.setLanguage(o),document.documentElement.lang=o,t("language",r)})}},[e,t,n]);return{language:e,setLanguage:s}},xR=({onSelect:e=Ut,expandedMode:t=!1,customClassName:n=""})=>{const{language:s,setLanguage:r}=PR(),a=Se(),{availableLanguages:o,languageSettings:{showFlags:i,showNativeLanguageNames:l,showLanguageShortNames:c}}=N.app,u=t||i,f=t||l,m=g=>{r(g),e(),en.dispatchEvent("trackingEvent",{category:"Settings",action:"language"})},h=u5(o,"code").sort(d5);return d.jsx(I$,{readOnly:h.length===1,title:t?"Language":"",onChange:m,inputValue:s,className:`${n} ${t?"":"compact-mode"} ${u?"":"isHiddenFlag"}`,children:h.map(({code:g,full:E,short:b})=>{var v;return d.jsx(A$,{value:g,label:f?a(E):c?b.toUpperCase():g.toUpperCase(),className:u?`ftr-lang-bar-flag-bc flag-bc ${EJ[g]||((v=iR[o[g].short])==null?void 0:v.iconClassName)}`:""},g)})})},yJ=()=>Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)-window.innerHeight,Yw=()=>window.scrollY,bJ=e=>{const t=p.useRef(e),n=p.useRef(Yw());p.useLayoutEffect(()=>{const s=yL(()=>{const r=Yw();rwindow.removeEventListener("scroll",s)},[]),p.useEffect(()=>{t.current=e},[e])},SJ=()=>{const[e,t]=p.useState(!1),[n,s]=p.useState(0),r=p.useCallback(()=>{window.scrollTo({top:0,behavior:"smooth"})},[]),a=p.useCallback((o,i)=>{s(i)},[]);return bJ(a),p.useEffect(()=>{const o=n>window.innerHeight;if(t(o),o){const i=setTimeout(()=>{t(!1)},5e3);return()=>clearTimeout(i)}},[n]),d.jsx("div",{className:`${N.app.backToTopButton.position}${e?"":" nav-floating-btn-hide"}`,children:d.jsx($t,{className:"btn nav-floating-btn bc-i-double-arrow-top",onClick:r,"aria-label":"Back To Top"})})},CJ=()=>{const{sideBarIcons:e}=N.app,{currentPath:t}=ke();return e!=null&&e.length?d.jsx("div",{className:"sidebar-content",children:t===Or&&e.map(({title:n,network:s,imageSrc:r,href:a,target:o})=>d.jsxs(Nt,{className:`sidebar-item ${s} ${r?"sidebar-imageSrc":""}`,to:a,target:o||"_blank",children:[r?d.jsx("p",{className:"sidebar-image",children:d.jsx(Go,{className:"",src:r,alt:""})}):s?d.jsx("p",{className:"sidebar-image",children:d.jsx("i",{className:`bc-i-${s}`})}):null,d.jsx("span",{className:"sidebar-title",children:n})]},`${r}_${a}`))}):null},TJ="trusted_by",wJ="mr_first",IJ=()=>{const e=Se(),{showTrustedByMrFirstWidget:{url:t="",enabled:n=!1}={}}=N.app.header;return Wt(n&&Q.isMobile?"has-wallet":""),n?d.jsxs(Nt,{to:t,target:"_blank",className:"trusted-widget",children:[d.jsx("i",{className:"bc-i-trusted"}),d.jsxs("p",{className:"trusted-widget-text",children:[d.jsx("span",{className:"ellipsis",children:e(TJ)}),d.jsx("span",{className:"ellipsis",children:e(wJ)})]})]}):null},AJ=()=>d.jsx("p",{className:"asideMenuBurger bc-i-menu-close",id:"asideMenuBurger",onClick:()=>et.dispatchEvent("toggleLeftMenu")}),PJ=()=>{var n,s;const e=Se(),t=(s=(n=N.app.tracking.fastTrack)==null?void 0:n.myRewardButton)==null?void 0:s.enabled;return Wt(Q.isMobile&&t?"has-header-info":""),t?d.jsx("div",{className:"fast-track-my-rewards-button",children:d.jsx("ft-my-rewards-toggle",{children:d.jsxs("div",{className:"btn a-color s-small fast-track-my-rewards-button-inner",children:[d.jsx(an,{name:"Promotion2"}),d.jsx("span",{children:e("my_reward_button")})]})})}):null},xJ=p.lazy(()=>B(()=>import("./GenericSearch-BuP-2EwG.js"),__vite__mapDeps([602,1,286,287,288,289,290,291,250,251,236,252,253,254,255,256,257,229,258,259,260,292,293,294,295,296,211,297]))),OJ=p.memo(({navLinks:e,onRegister:t,onLogin:n})=>{var _,y,S;const{toggle:s,badgeCount:r}=FQ(!1),{app:{backToTopButton:a,header:{enableSearchPanel:o,navigation:{web:{leftMenu:i,subHeaderMenu:l,openMenuOnHover:c}}}},partner:{integrationMode:u}}=N,{profile:{bonusAvailable:f}}=ye(),m=xn(),h=p.useMemo(()=>r$(e,m),[e,m]),{search:g,pathname:E}=m,b=!i||l;p.useEffect(()=>{if(N.partner&&N.partner.routeUpdateCallback){const w=ze(),x={route:E,...w};nr.notify({type:"route_update",value:x})}},[E,g]);const v=p.useCallback(()=>{s(),en.dispatchEvent("trackingEvent",{category:"Other",action:"Clicked Burger Menu"})},[s]);return d.jsxs("header",{className:"header-bc",children:[!u&&d.jsxs("div",{className:"hdr-main-content-bc",children:[i&&!c?d.jsx(AJ,{}):null,d.jsx(dJ,{onClick:()=>et.dispatchEvent("hideAll")}),f&&d.jsx(zX,{}),d.jsx(QX,{}),d.jsx(PJ,{}),d.jsx(IJ,{}),d.jsx(eJ,{}),d.jsx(fX,{onRegister:t,onLogin:n}),d.jsx(xR,{}),((_=N.app.header)==null?void 0:_.showSessionTimer)&&d.jsx(VQ,{}),!((S=(y=N.app.header)==null?void 0:y.clockSettings)!=null&&S.hideClock)&&d.jsx(hR,{}),d.jsxs("div",{className:"smartPanel-bc",children:[d.jsx(bn,{errorType:k0,showErrorPage:!1,showLoader:!1,children:d.jsx(zw,{})}),d.jsx(wc,{id:gv,onClick:v,count:r,className:"hdr-toggle-button-bc bc-i-vertical-toggle"})]}),o&&d.jsx(xJ,{})]}),d.jsx(CJ,{}),d.jsxs("div",{className:"nav-content-bc",children:[d.jsxs("div",{className:"nav-content-menu",children:[i?null:d.jsx(TR,{items:e}),u&&d.jsx("div",{className:"hdr-main-content-bc",children:d.jsxs("div",{className:"smartPanel-bc",children:[d.jsx(bn,{errorType:k0,showErrorPage:!1,showLoader:!1,children:d.jsx(zw,{})}),d.jsx(wc,{id:gv,onClick:v,count:r,className:"hdr-toggle-button-bc bc-i-vertical-toggle"})]})})]}),b&&h!==void 0&&d.jsx(WX,{items:h,setNavigationVisibility:Ut,showAnimation:!1,setShowAnimation:Ut})]}),a.isFloating&&d.jsx(SJ,{})]})}),qw=()=>{var e;en.dispatchEvent("trackingEvent",{category:"Other",action:"Click HORAI"}),N.app.liveChat.hooryAi?window.$hoory.toggle("open"):N.app.liveChat.hooryAndHooryAi&&((e=window.$hoory2)==null||e.toggle("open"))},kJ=()=>{const{language:e}=ke(),t=p.useMemo(()=>{if(N.app.footer.copyrightSince){const{siteName:n,footer:{copyrightSince:s}}=N.app,r=at().locale(iu[e]),a=r.format("YYYY");return r.year()===s?`${a} ${n}`:`${at().year(s).locale(iu[e]).format("YYYY")} - ${a} ${n}`}return""},[e]);return t?d.jsx("p",{className:"footerCopyrights",children:t}):null},NJ=()=>null,Xg=({svgIconName:e})=>e?d.jsx(an,{name:e}):null,RJ=({menuItem:{title:e,svgIconName:t,submenus:n,to:s,target:r,badge:a}})=>{const o=ym(n);return d.jsxs("div",{className:"footerLinkCol",children:[!s&&o.length>0?d.jsxs("h3",{className:"footerLinkColTitle",children:[d.jsx(Xg,{svgIconName:t}),d.jsx("span",{className:"footerLinkColText",children:e})]}):d.jsx("h3",{className:"footerLinkColTitle",children:d.jsxs(Nt,{to:s,target:r,badge:a,children:[d.jsx(Xg,{svgIconName:t}),d.jsx("span",{className:"footerLinkColText",children:e})]})}),d.jsx("ul",{className:"footerLinkColLinks",children:o.map(({title:i,svgIconName:l,target:c,to:u,badge:f,id:m})=>d.jsx("li",{className:"footerLinkColEl",children:d.jsxs(Nt,{to:u,target:c,badge:f,children:[d.jsx(Xg,{svgIconName:l}),d.jsx("span",{className:"footerLinkColText",children:i})]})},m))})]})},LJ=({navigation:e})=>d.jsx("div",{className:"footerLinkCols",children:e.map(t=>d.jsx(RJ,{menuItem:t},t.id))}),MJ=()=>{const{links:e}=gl();return e.footer.length?d.jsx(LJ,{navigation:Wy(e.footer)}):null},DJ=p.memo(function(){const{loadingMethods:t,availableMethods:n}=DN(),{isLoggedIn:s}=ye(),{iconUrl:r}=N.cms,a=dn(),o=p.useMemo(()=>n.filter(({hidePaymentInFooter:i})=>!i),[n]);return t?d.jsx(Mt,{size:"small"}):o.length?d.jsx(d.Fragment,{children:o.map(({paymentId:i,name:l,displayName:c,src:u})=>d.jsx("div",{className:"horizontalSliderElem",id:`${i}_${l}`,children:d.jsx(Go,{className:"horizontalSliderImg",onClick:()=>a.push(s?{search:bt({section:"balance",page:"deposit",[_O]:l})}:"/payments-info/deposit"),src:`${r}${u}`,alt:c,loading:"lazy"})},i))}):null}),jJ=Ne(()=>B(()=>import("./FeedbackModal-CI5ziXbj.js"),__vite__mapDeps([603,189,604,1]))),BJ=()=>{const e=Se(),t=()=>{ve.open(n=>({className:"feedback",Component:()=>d.jsx(p.Suspense,{children:d.jsx(jJ,{close:n})})}))};return d.jsx(Vu,{className:"feedBackButton small button hero fullWidth",onClick:t,title:e("Feedback")})},FJ=()=>{const e=Se(),{contactInfo:{phone:t,email:n}={}}=N.app.footer;return!t&&!n?null:d.jsxs("span",{className:"footerCopyrightLinks",children:[t&&d.jsxs("a",{className:"footerCopyrightLink",href:`tel:${t}`,children:[d.jsxs("span",{children:[e("contact_info_phone"),":"]}),t]}),n&&d.jsxs("a",{className:"footerCopyrightLink",href:`mailto:${n}`,children:[d.jsxs("span",{children:[e("contact_info_email"),":"]}),n]})]})},UJ=()=>{const e=Se(),{showAgeRestriction:t,showAgeRestrictionMessage:n,ageRestrictionLink:s}=N.app.footer;return d.jsx(d.Fragment,{children:t||n?d.jsxs("div",{className:"footerWarning",children:[t&&d.jsxs("span",{className:"footerWarningAge",...s&&{onClick:()=>window.open(s,"_blank")},children:[gt.getInstance().minimumAllowedAge,"+"]}),n?d.jsx("p",{className:"footerWarningText",dangerouslySetInnerHTML:{__html:e("age_restriction_message")}}):null]}):null})},Jg=e=>{if(!e.length)return 0;const t=e.map(r=>r.getBoundingClientRect()),n=Math.min(...t.map(r=>r.left)),s=Math.max(...t.map(r=>r.right));return Math.round(s-n)},OR=({showArrows:e=!0,itemsExpanded:t=!1,centered:n=!1,className:s="",children:r,elementsToScroll:a=3,isListScrollable:o=!0})=>{const{languageRtl:i}=ke(),l=p.useRef(null),c=p.useRef(null),u=p.useMemo(()=>p.Children.count(r),[r]),[f,m]=p.useState(0),[h,g]=p.useState(0),[E,b]=p.useState(!1),[v,_]=p.useState({}),[y,S]=p.useState(!1),w=f>0,x=e&&w,I=h===0,C=h===f,T=()=>{const M=l.current,k=c.current;if(M&&k){const D=Array.from(k.children),j=D[0],V=D.findIndex(G=>G.dataset.id!==void 0&&v[G.dataset.id]),R=Math.max(0,V-a),U=Jg(D.slice(R,V));g(G=>G-U{const M=l.current,k=c.current;if(M&&k){const D=Array.from(k.children),j=D[D.length-1],R=bL(D,K=>K.dataset.id!==void 0&&v[K.dataset.id])+1,U=Math.min(R,D.length-1),G=Math.min(R+a,D.length),z=Jg(D.slice(U,G));g(K=>{const ne=K+z;return f-ne{M.preventDefault(),M.key==="ArrowRight"&&(i?T():P()),M.key==="ArrowLeft"&&(i?P():T())};p.useEffect(function(){g(0),_({}),S(!1)},[u]),p.useEffect(function(){const k=l.current,D=c.current;if(setTimeout(()=>{b(!0)},300),k&&D){const j=new ResizeObserver(()=>{const V=Math.max(0,D.scrollWidth-k.clientWidth);m(R=>(g(U=>R>0&&U===R?V:Math.min(U,V)),V)),S(!1)});return j.observe(k),j.observe(D),()=>{j.disconnect()}}},[]),p.useEffect(function(){const k=l.current,D=c.current;if(k&&D){const j=new IntersectionObserver(V=>{const R=Object.fromEntries(V.map(U=>[U.target.dataset.id,U.isIntersecting]));_(U=>({...U,...R}))},{threshold:.8,root:k});for(const V of Array.from(D.children))j.observe(V);return()=>{_({}),j.disconnect()}}},[u]),p.useEffect(function(){if(o){const k=l.current;if(k&&f){const D=j=>{j.preventDefault(),g(V=>{const R=V+j.deltaY;return j.deltaY>0?Math.min(f,R):Math.max(0,R)})};return k.addEventListener("wheel",D,{passive:!1}),()=>{k.removeEventListener("wheel",D)}}else g(f)}},[f,o]),p.useEffect(function(){if(!y&&w&&c.current){const k=p.Children.toArray(r),D=k.findIndex(V=>p.isValidElement(V)&&V.props.selected),j=k[D];if(j&&j.props.id in v){const V=c.current;if(v[j.props.id]){const[{clientWidth:R}]=V.children;S(!0),g(U=>U{const a=p.useRef(null),[o,i]=P$(t),[l,c]=p.useState(!0),[u,f]=p.useState(r);p.useEffect(()=>{if(r){const h=He.addEventListener("seoPageContentLoaded",()=>{f(!1)});return()=>{h()}}},[r]),p.useLayoutEffect(function(){if(a!=null&&a.current){const g=new ResizeObserver(([{target:E}])=>{var _,y,S,w;let b=E.getBoundingClientRect().height;E.children[0].className.includes("expandable-info-container")&&(b=((y=(_=E.firstChild)==null?void 0:_.firstChild)==null?void 0:y.offsetHeight)+((w=(S=E.firstChild)==null?void 0:S.lastChild)==null?void 0:w.offsetHeight));const v=b-s>$J;c(v)});return g.observe(a==null?void 0:a.current),()=>{c(!0),g.disconnect()}}},[n]);const m=d.jsx("div",{"data-scroll-lock-scrollable":"",className:`expandableContentData ${e} ${l?"":"not-expandable"}`,children:d.jsx("div",{className:"container",dangerouslySetInnerHTML:{__html:n||""}})});return n?d.jsx("div",{className:"expandableContentWrapper",ref:a,children:l?d.jsxs("div",{className:`expandableContent ${o?"opened":""}`,children:[d.jsx("div",{className:"expandableContentBody",children:m}),d.jsx("div",{className:"expandableContentToggle",onClick:i,children:d.jsx("i",{className:`expandableContentIcon bc-i-small-arrow-${o?"up":"down"}`})})]}):m}):u&&r?d.jsx("div",{className:"expandableContentWrapper",children:d.jsx("div",{className:"expandableContent",children:d.jsx("div",{style:{width:"100%",height:"115px"}})})}):null},Xfe=Object.freeze(Object.defineProperty({__proto__:null,default:kR},Symbol.toStringTag,{value:"Module"})),GJ={apg:"https://",ceg:"//",xcm:"https://",emr:"https://",anj:"https://",dlag:"https://"},VJ={apg:"snippet.antillephone.com",ceg:"curacao-egaming.com",xcm:"seals-xcm.certria.com",emr:"seals-emr.certria.com",anj:"snippet.anjcdn.org",dlag:"seals.dlagglobal.com"},HJ=(e,t,n)=>{if(n)return n;const s=e==="anj"?`${t}-embedded`:`${e}-seal`;return`${GJ[e]}${t}.${VJ[e]}/${s}.js`},WJ=({config:{provider:e,id:t="",imageSize:n=96,imageType:s="basic-small",licenseForceUrl:r=""}})=>{const a=(o,i)=>{const l=window[`${o}_${i.replace(/-/g,"_")}`];l!=null&&l.init&&l.init()};return p.useEffect(function(){var i;if(t){const l=document.createElement("script"),c=document.getElementsByTagName("script")[0];l.type="text/javascript",l.async=!0,l.src=HJ(e,t,r),(i=c.parentNode)==null||i.insertBefore(l,c),l.onload=function(){setTimeout(()=>{var u,f;e==="apg"&&((u=window.APG)!=null&&u.init)?window.APG.init():(f=window.CEG)!=null&&f.init?window.CEG.init():a(e,t)},2e3)}}},[t,r,e]),e==="apg"?d.jsx("div",{className:"FooterLicenceCuracaoContainer",id:"apg-seal-container","data-apg-seal-id":t,"data-apg-image-size":n,"data-apg-image-type":s}):e==="xcm"?d.jsx("div",{className:"FooterLicenceCuracaoContainer xcm-container",id:`xcm-${t}`,"data-xcm-seal-id":t,"data-xcm-image-size":n,"data-xcm-image-type":s}):e==="emr"?d.jsx("div",{className:"FooterLicenceCuracaoContainer emr-container",id:`emr-${t}`,"data-emr-seal-id":t,"data-emr-image-size":n,"data-emr-image-type":s}):e==="anj"?d.jsx("div",{className:"FooterLicenceCuracaoContainer anj-container",id:`anj-${t}`,"data-anj-seal-id":t,"data-anj-image-size":n,"data-anj-image-type":s}):e==="dlag"?d.jsx("div",{className:"FooterLicenceCuracaoContainer dlag-container",id:`dlag-${t}`,"data-anj-seal-id":t,"data-anj-image-size":n,"data-anj-image-type":s}):d.jsx("div",{className:"FooterLicenceCuracaoContainer",id:"ceg-seal-container","data-apg-seal-id":t,"data-ceg-image-size":n,"data-ceg-image-type":s})},zJ=({config:{src:e,width:t,height:n}})=>{const s=Se();return d.jsx("iframe",{title:s("Footer License"),src:e,width:t,height:n,frameBorder:0,scrolling:"no"})},YJ=({config:{src:e,height:t,fullWidth:n,href:s,target:r,availableLanguages:a,description:o,rel:i="",alt:l=""}})=>{const c=Q.isMobile===1,{language:u}=ke(),f=Se();return a&&!a.includes(u)?null:d.jsxs(Nt,{className:"sliderImage",to:s,target:r||"_blank",...i?{rel:i}:{},children:[d.jsx(Go,{style:t!==void 0?{maxHeight:t,height:t}:n?{maxHeight:"none",height:"auto",width:"100%"}:{},loading:"lazy",src:e.replace(N.cms.apiUrl,N.cms.iconUrl),alt:l,...!(t&&n)&&(c?F5:B5)}),o?d.jsx("p",{children:f(o)}):null]})},qJ=({config:e})=>{const{language:t}=ke(),n=e[t]||e.default;return n?d.jsx("div",{className:"ftr-copy-rights-bc",dangerouslySetInnerHTML:{__html:n}}):null},KJ=p.memo(function({isAuthPopup:t}){const{licences:n}=N.app,s=n?t?n.filter(a=>a.some(({config:{showOnAuthPopup:o}})=>o)):n:[];if(!s.length)return null;const r=a=>a.filter(({config:{showOnAuthPopup:o}})=>t?o:!0).map(({type:o,config:i},l)=>{switch(o){case"image":return d.jsx(YJ,{config:i},l);case"iframe":return d.jsx(zJ,{config:i},l);case"curacao":return d.jsx(WJ,{config:i},l);case"text":return d.jsx(qJ,{config:i},l);default:return null}});return d.jsx("div",{className:"sliderGroup",children:s.map((a,o)=>{const i=a.length>3;return d.jsx(he.Fragment,{children:i?d.jsx(OR,{centered:!0,showArrows:!0,itemsExpanded:!0,children:r(a)}):d.jsx("div",{className:"sliderSingleElWrapper",children:d.jsx("div",{className:"sliderSingleEl",children:r(a)})})},o)})})}),QJ=({className:e=""})=>{const{socialIcons:t}=N.app,{language:n}=ke();return t!=null&&t.length?d.jsx("ul",{className:"footerSocialLinks",children:t.map(({network:s,url:r,target:a})=>{const o=r[n]||r.default;if(!o)return null;const l=`Visit our ${s.charAt(0).toUpperCase()+s.slice(1)}`;return d.jsx("li",{className:"footerSocialLink",children:d.jsx(Nt,{to:o,target:a||"_blank","aria-label":l,children:d.jsx("i",{className:`${e} bc-i-${s}`})})},`${s}${o}`)})}):null},XJ=p.lazy(()=>B(()=>import("./LiveChatAdviser-DWHfpS89.js"),__vite__mapDeps([336,1]))),JJ=p.memo(function({seoContent:t}){const{isLoggedIn:n}=ye(),s=Se(),r=Q.isMobile,{pathname:a}=xn(),{currentPath:o}=ke(),{showFooterSocialIconsLoggedIn:i,customContentAboveFooter:l,feedbackButton:c}=N.app.footer,u=(N.app.liveChat.hooryAi||N.app.liveChat.hooryAndHooryAi)&&(a.includes("sport")||o===Or),f=p.useCallback(()=>{window.scrollTo({top:0,behavior:"smooth"})},[]);return d.jsx(d.Fragment,{children:d.jsxs("div",{className:"footerWrapper",children:[l?d.jsx(kR,{isExpanded:!1,content:t,isFooterContent:!0,className:"custom-content-section"}):null,d.jsx("div",{className:"footerContainerWrapper",children:d.jsxs("div",{className:"footerContainer",children:[!N.app.backToTopButton.isFloating&&r?d.jsx("div",{className:"ftr-head-bc",children:d.jsx(Vu,{className:"btn a-outline",onClick:f,title:"back to top"})}):null,d.jsxs("div",{className:"footerHeader",children:[d.jsxs("div",{className:"footerTopButtonGroup",children:[!N.app.liveChat.showRegularButton&&!N.app.liveChat.hooryAi&&d.jsx(p.Suspense,{fallback:null,children:d.jsx(XJ,{redesignView:!0})}),c&&d.jsx(BJ,{}),Q.isMobile&&u?d.jsx("div",{className:"hoorySwitcher hooryInFooter",onClick:qw,children:d.jsxs("p",{className:"hoorySwitcherBtn",children:[d.jsx("i",{className:"bc-i-hooryAI-stars"}),d.jsx("span",{className:"ellipsis",children:s("Ask Hoory AI")})]})}):null]}),(!i||i&&n)&&d.jsx("div",{className:"footerInnerLeftCol",children:d.jsx(QJ,{})}),d.jsxs("div",{className:"footerInfoColumn",children:[!Q.isMobile&&u?d.jsx("div",{className:"hoorySwitcher hooryInFooter",onClick:qw,children:d.jsxs("p",{className:"hoorySwitcherBtn",children:[d.jsx("i",{className:"bc-i-hooryAI-stars"}),d.jsx("span",{className:"ellipsis",children:s("Ask Hoory AI")})]})}):null,!r&&d.jsx(hR,{}),d.jsx(xR,{customClassName:"languageDropdown"})]})]}),d.jsxs("div",{className:"footerLinksSection",children:[d.jsx(MJ,{}),d.jsx(NJ,{})]}),d.jsxs("div",{className:"sliderGroup",children:[N.app.licences&&d.jsxs("div",{className:"sliderContent",children:[d.jsx("h4",{className:"sliderTitle",dangerouslySetInnerHTML:{__html:s("Regulations & Partners")}}),d.jsx(KJ,{})]}),N.payment.enabledInFooter&&d.jsxs("div",{className:"sliderContent",children:[d.jsx("h4",{className:"sliderTitle",dangerouslySetInnerHTML:{__html:s("Payments")}}),d.jsx(OR,{centered:!0,showArrows:!0,itemsExpanded:!0,children:d.jsx(DJ,{})})]})]}),d.jsxs("div",{className:"copyRightBlock",children:[d.jsx(UJ,{}),d.jsx(kJ,{})]}),r?d.jsx(FJ,{}):null]})})]})})}),ZJ=e=>p.createElement("svg",{width:"57px",height:"57px",viewBox:"0 0 57 57",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},p.createElement("title",null,"check_circle_outline-24px"),p.createElement("g",{id:"Balance-Management",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},p.createElement("g",{id:"Balance-Management-I-Buddy-to-Buddy-|-Success-Pop-up",transform:"translate(-691.000000, -344.000000)"},p.createElement("g",{id:"check_circle_outline-24px",transform:"translate(691.000000, 344.000000)"},p.createElement("polygon",{id:"Path",points:"0 0 57 0 57 57 0 57"}),p.createElement("path",{d:"M28.5,4.75 C15.39,4.75 4.75,15.39 4.75,28.5 C4.75,41.61 15.39,52.25 28.5,52.25 C41.61,52.25 52.25,41.61 52.25,28.5 C52.25,15.39 41.61,4.75 28.5,4.75 Z M28.5,47.5 C18.02625,47.5 9.5,38.97375 9.5,28.5 C9.5,18.02625 18.02625,9.5 28.5,9.5 C38.97375,9.5 47.5,18.02625 47.5,28.5 C47.5,38.97375 38.97375,47.5 28.5,47.5 Z M37.715,19.68875 L23.75,33.65375 L19.285,29.18875 C18.35875,28.2625 16.8625,28.2625 15.93625,29.18875 C15.01,30.115 15.01,31.61125 15.93625,32.5375 L22.0875,38.68875 C23.01375,39.615 24.51,39.615 25.43625,38.68875 L41.0875,23.0375 C42.01375,22.11125 42.01375,20.615 41.0875,19.68875 C40.16125,18.7625 38.64125,18.7625 37.715,19.68875 Z",id:"Shape",fill:"#16C72E"}))))),eZ=e=>p.createElement("svg",{width:"57px",height:"57px",viewBox:"0 0 57 57",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},p.createElement("title",null,"highlight_off_black_24dp"),p.createElement("defs",null,p.createElement("filter",{colorInterpolationFilters:"auto",id:"filter-1"},p.createElement("feColorMatrix",{in:"SourceGraphic",type:"matrix",values:"0 0 0 0 0.839216 0 0 0 0 0.019608 0 0 0 0 0.105882 0 0 0 1.000000 0"}))),p.createElement("g",{id:"Balance-Management",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},p.createElement("g",{id:"highlight_off_black_24dp",transform:"translate(-691.000000, -352.000000)",filter:"url(#filter-1)"},p.createElement("g",{transform:"translate(691.000000, 352.000000)"},p.createElement("polygon",{id:"Path",points:"0 0 57 0 57 57 0 57"}),p.createElement("path",{d:"M32.98875,20.6625 L28.5,25.15125 L24.01125,20.6625 C23.085,19.73625 21.58875,19.73625 20.6625,20.6625 C19.73625,21.58875 19.73625,23.085 20.6625,24.01125 L25.15125,28.5 L20.6625,32.98875 C19.73625,33.915 19.73625,35.41125 20.6625,36.3375 C21.58875,37.26375 23.085,37.26375 24.01125,36.3375 L28.5,31.84875 L32.98875,36.3375 C33.915,37.26375 35.41125,37.26375 36.3375,36.3375 C37.26375,35.41125 37.26375,33.915 36.3375,32.98875 L31.84875,28.5 L36.3375,24.01125 C37.26375,23.085 37.26375,21.58875 36.3375,20.6625 C35.41125,19.76 33.89125,19.76 32.98875,20.6625 Z M28.5,4.75 C15.36625,4.75 4.75,15.36625 4.75,28.5 C4.75,41.63375 15.36625,52.25 28.5,52.25 C41.63375,52.25 52.25,41.63375 52.25,28.5 C52.25,15.36625 41.63375,4.75 28.5,4.75 Z M28.5,47.5 C18.02625,47.5 9.5,38.97375 9.5,28.5 C9.5,18.02625 18.02625,9.5 28.5,9.5 C38.97375,9.5 47.5,18.02625 47.5,28.5 C47.5,38.97375 38.97375,47.5 28.5,47.5 Z",id:"Shape",fill:"#000000",fillRule:"nonzero"}))))),tZ=e=>p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"123.000000pt",height:"125.000000pt",viewBox:"0 0 123.000000 125.000000",preserveAspectRatio:"xMidYMid meet",...e},p.createElement("g",{transform:"translate(0.000000,125.000000) scale(0.100000,-0.100000)",fill:"#000000",stroke:"none"},p.createElement("path",{d:"M932 1243 c-22 -9 -33 -40 -22 -67 12 -32 3 -33 -51 -5 -56 28 -159 49 -244 49 -338 0 -607 -268 -607 -605 0 -320 240 -579 562 -608 83 -8 139 2 156 29 11 16 12 23 1 38 -10 14 -32 18 -117 20 -126 4 -194 25 -292 92 -115 78 -187 189 -215 333 -23 116 -9 215 47 327 118 239 418 355 656 253 62 -26 62 -26 36 -45 -28 -19 -29 -60 -2 -74 40 -22 210 39 210 75 0 32 -62 175 -80 185 -10 6 -20 10 -22 9 -2 0 -9 -3 -16 -6z"}),p.createElement("path",{d:"M1062 948 c-17 -17 -15 -33 12 -86 30 -59 49 -76 75 -67 36 11 36 49 1 110 -32 56 -61 70 -88 43z"}),p.createElement("path",{d:"M537 894 c-4 -4 -7 -89 -7 -189 0 -134 3 -185 13 -193 29 -25 249 -113 267 -107 21 7 33 35 25 56 -3 8 -55 36 -115 63 l-110 48 -2 162 -3 161 -30 3 c-17 2 -34 0 -38 -4z"}),p.createElement("path",{d:"M1144 677 c-3 -8 -4 -45 -2 -83 l3 -69 35 0 c34 0 35 1 41 46 4 26 4 62 0 80 -6 29 -11 34 -39 37 -21 2 -34 -2 -38 -11z"}),p.createElement("path",{d:"M1103 408 c-5 -7 -22 -35 -37 -62 -24 -40 -26 -52 -17 -72 12 -28 42 -31 66 -8 22 22 55 89 55 112 0 36 -46 57 -67 30z"}),p.createElement("path",{d:"M883 164 c-56 -36 -66 -60 -37 -88 21 -21 22 -21 84 17 44 25 56 38 58 61 4 29 -11 46 -38 45 -8 0 -39 -16 -67 -35z"}))),nZ=e=>p.createElement("svg",{fill:"#000000",id:"Capa_1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:"800px",height:"800px",viewBox:"0 0 34.854 34.855",xmlSpace:"preserve",...e},p.createElement("g",null,p.createElement("path",{d:"M34.653,30.47L18.727,2.884c-0.269-0.464-0.764-0.75-1.299-0.75c-0.537,0-1.031,0.286-1.3,0.75L0.202,30.47 c-0.269,0.464-0.269,1.036,0,1.5s0.763,0.75,1.299,0.75h31.853c0.535,0,1.031-0.286,1.3-0.75 C34.921,31.506,34.921,30.934,34.653,30.47z M4.099,29.72L17.427,6.634L30.756,29.72H4.099z M15.427,11.677h4V23.51h-4V11.677z M15.427,25.507h4v2.919h-4V25.507z"}))),sZ=e=>p.createElement("svg",{width:50,height:50,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},p.createElement("path",{d:"M37.5833 28.2292C36.7083 29.0833 36.2083 30.3125 36.3333 31.625C36.5208 33.875 38.5833 35.5208 40.8333 35.5208H44.7917V38C44.7917 42.3125 41.2708 45.8333 36.9583 45.8333H13.0417C8.72917 45.8333 5.20833 42.3125 5.20833 38V23.9792C5.20833 19.6667 8.72917 16.1458 13.0417 16.1458H36.9583C41.2708 16.1458 44.7917 19.6667 44.7917 23.9792V26.9792H40.5833C39.4167 26.9792 38.3542 27.4375 37.5833 28.2292Z",stroke:"#FFB900",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round"}),p.createElement("path",{d:"M5.20833 25.8541V16.3334C5.20833 13.8543 6.72917 11.6458 9.04167 10.7708L25.5833 4.52084C28.1667 3.54167 30.9375 5.4584 30.9375 8.22923V16.1459",stroke:"#FFB900",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round"}),p.createElement("path",{d:"M46.9975 29.1045V33.3963C46.9975 34.5421 46.0809 35.4795 44.9142 35.5212H40.8309C38.5809 35.5212 36.5184 33.8754 36.3309 31.6254C36.2059 30.3129 36.7059 29.0837 37.5809 28.2295C38.3517 27.4379 39.4142 26.9796 40.5809 26.9796H44.9142C46.0809 27.0213 46.9975 27.9587 46.9975 29.1045Z",stroke:"#FFB900",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round"}),p.createElement("path",{d:"M14.5833 25H29.1667",stroke:"#FFB900",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round"})),NR=({onClose:e,header:t,hideCloseButton:n=!1,isHidden:s,fullScreen:r=!1,children:a,className:o="",type:i,zIndex:l})=>{const c=p.useRef(e);Ho(!s),p.useEffect(()=>{c.current=e},[e]),p.useEffect(()=>{if(!(Q.isMobile||s||n)){const h=g=>{g.key===cx&&c.current()};return window.addEventListener("keydown",h),()=>window.removeEventListener("keydown",h)}},[s,n]);const u=p.useCallback(h=>{!n&&h.target===h.currentTarget&&e()},[n,e]),f=["ds-popup-backdrop",s&&"ds-popup-backdrop--hidden"].filter(Boolean).join(" "),m=["ds-popup",r&&"ds-popup--full-screen",i&&`ds-popup--${i}`,o].filter(Boolean).join(" ");return d.jsx("div",{className:f,onMouseDown:u,style:l?{zIndex:l}:void 0,children:d.jsxs("div",{className:m,role:"dialog","aria-modal":"true",children:[(t||!n)&&d.jsxs("div",{className:"ds-popup__header",children:[d.jsx("div",{className:"ds-popup__header-content",children:typeof t=="string"?d.jsx(er,{variant:"large-medium",children:t}):t}),!n&&d.jsx(Zt,{size:"sm",iconOnly:!0,leftIconName:"CloseMedium",onClick:e,variant:"transparent"})]}),d.jsx("div",{className:"ds-popup__content","data-scroll-lock-scrollable":"",children:a})]})})},Kw={success:ZJ,error:eZ,pending:tZ,warning:nZ,lowBalance:sZ},rZ={format:{days:!0,hours:!0,minutes:!0,seconds:!0},interval:1e3},aZ=["a-color","a-outline"],oZ=["secondary","transparent"],iZ={warning:"warning",error:"error",success:"success"},lZ=({index:e,onClick:t,children:n,className:s,id:r})=>{const a=()=>t(e);return d.jsx($t,{className:`btn ${s??aZ[e]??""}`,onClick:a,id:r,children:n})},cZ=({index:e,onClick:t,className:n,id:s,variant:r,title:a=""})=>{const o=()=>t(e),i=r??oZ[e]??"neutral";return d.jsx(Zt,{variant:i,className:n,onClick:o,id:s,title:a})},Qw={},uZ=()=>{const[e,t]=p.useState(!1),[n,s]=p.useState(Qw),[r,a]=p.useState(!1),o=Se(),{onClose:i=()=>{},type:l="info",className:c,title:u,content:f,buttons:m=[],hideCloseButton:h=!1,fullScreen:g,isLoading:E=!1,Component:b,popupId:v,showCheckbox:_=!1,underButtonsContent:y,countDownDate:S,isDesignSystemPopup:w=!1,isDesignSystemContentButtonVertical:x,designSystemCustomHeader:I}=n,C=l&&Kw[l]?Kw[l]:null,T=()=>ve.close(v);if(p.useEffect(()=>ls.addEventListener("open",A=>{s(A),t(!0)}),[]),p.useEffect(()=>ls.addEventListener("update",A=>{s(O=>({...O,...A}))}),[]),p.useEffect(()=>ls.addEventListener("close",A=>{s(Qw),t(!1),a(!1),A&&i()}),[i]),!e)return null;const P=A=>{const{callBack:O,preventClose:M=!1}=m[A];O&&O(_?r:void 0),M||T()};return w?d.jsx(NR,{onClose:T,header:I??u,hideCloseButton:h,type:l,className:c,fullScreen:g,zIndex:Math.max(n.priority,mn.High)+1,children:d.jsx(d.Fragment,{children:E?d.jsx(Mt,{size:"medium"}):b?d.jsx(b,{}):d.jsxs("div",{className:"ds-popup__simple-content",children:[f&&d.jsx(Xa,{dangerouslySetInnerHTML:{__html:f},variant:"medium-regular"}),d.jsx("div",{className:`ds-popup__simple-content__buttons ${x?"ds-popup__simple-content__buttons-vertical":""} ${m.length<=1?"ds-popup__simple-content__buttons-single":""}`,children:m.length?m.map(({label:A,className:O,id:M,variant:k},D)=>d.jsx(cZ,{variant:k,index:D,onClick:P,className:O,id:M,title:o(A)},D)):d.jsx(Zt,{variant:iZ[l]??"secondary",onClick:T,title:"Ok"})})]})})}):d.jsx($u,{onClose:T,hideCloseButton:h,type:l,className:c,fullScreen:g,zIndex:Math.max(n.priority,mn.High)+1,children:d.jsxs("div",{className:"status-popup-content-w-bc",children:[C?d.jsx("div",{className:"casino-popup-icon-wrapper",children:d.jsx(C,{})}):null,u&&d.jsx("h3",{className:"casino-popup-title",dangerouslySetInnerHTML:{__html:o(u)}}),E?d.jsx(Mt,{size:"medium"}):b?d.jsx(b,{}):d.jsxs(d.Fragment,{children:[f&&d.jsx("p",{className:"casino-popup-content","data-scroll-lock-scrollable":"",dangerouslySetInnerHTML:{__html:o(f)}}),S&&d.jsx("div",{className:"popupCountdownContainer",children:d.jsx($k,{...rZ,endTime:S})}),d.jsx("div",{className:"casino-popup-button-block",children:m.length?m.map(({label:A,className:O,id:M},k)=>d.jsx(lZ,{index:k,onClick:P,className:O,id:M,children:o(A)},k)):d.jsx($t,{className:"btn",onClick:T,title:"Ok"})}),y&&d.jsx("p",{className:"casino-popup-under-buttons-content","data-scroll-lock-scrollable":"",dangerouslySetInnerHTML:{__html:o(y)}}),_&&d.jsxs("label",{className:"checkbox-control-content-bc popup-checkbox",children:[d.jsx("input",{type:"checkbox",className:"checkbox-control-input-bc",onClick:()=>a(!r)}),d.jsx("i",{className:"checkbox-control-icon-bc bc-i-checked"}),d.jsx("p",{className:"checkbox-control-text-bc",children:o(y2)})]})]})]})})},dZ=p.memo(uZ),fZ=()=>{const{components:e,hide:t,selectedComponent:n}=AN(jb.POPUP),{openConfirmPopup:{enabled:s,showOn:r}}=N.userAuthentication.registration;return d.jsx(p.Suspense,{fallback:d.jsx(Mt,{size:"medium"}),children:d.jsx($u,{onClose:t,isHidden:!n,fullScreen:n==null?void 0:n.fullscreen,className:"content-manager",...s&&r==="onClose"&&(n==null?void 0:n.props.popupContentType)===st.Registration&&{hideCloseButton:!0},children:e.map(({LazyComponent:a,name:o,selected:i,props:l})=>d.jsx(a,{show:i,...l},o))})})},_E=e=>{ve.open(()=>({Component:()=>d.jsx(mR,{expiresAtSeconds:e}),className:"selfExclusionLockedPopup",hideCloseButton:!1,isDesignSystemPopup:!0,fullScreen:!0}))},Hu=0,Zo={stake:0,totalStake:0,possibleWin:0},Yb=e=>t=>t{const n=t===1?qx:Ns;return s=>n(s,e)},RR=({oddsRoundingMethod:e=Hu,decimalRounding:t=Uo})=>(n,s)=>{const r=Wu({decimalRounding:t,oddsRoundingMethod:e})(n);return{possibleWin:We(r*s),oddsAccumulator:r}},LR=e=>e.reduce(Yx,1),MR=({oddsRoundingMethod:e=Hu,decimalRounding:t=Uo,maxOdds:n})=>(s,r)=>{const a=nt(LR,Wu({decimalRounding:t,oddsRoundingMethod:e}),Yb(n))(s);return{possibleWin:We(a*r),oddsAccumulator:a}},gf=(e,t)=>{switch(e){case 0:return n=>Ns(n,t);case 1:return n=>qx(n,t);default:return n=>el(n,t)}},DR=({oddsRoundingMethod:e=Hu,decimalRounding:t=Uo,maxOdds:n})=>(s,r,a,o)=>{const i=pp(s.length,a,o==null?void 0:o.length),l=Yb(n)(Qx({array:s,k:a,bankers:o,roundingFunc:Wu({oddsRoundingMethod:e,decimalRounding:t})})/i);return{possibleWin:We(l*r),oddsAccumulator:l}},jR=({oddsRoundingMethod:e=Hu,decimalRounding:t=Uo})=>(n,s)=>{const r=Wu({oddsRoundingMethod:e,decimalRounding:t});return{possibleWin:n.map(i=>r(i-1)*s).reduce(Im,0)+s,oddsAccumulator:0}},BR=({oddsRoundingMethod:e=Hu,decimalRounding:t=Uo,maxOdds:n})=>(s,r,a)=>{let o=0;const i=Wu({oddsRoundingMethod:e,decimalRounding:t});a&&(o+=s.reduce(Im,0));for(let u=2,f=s.length;ue!=null&&e.onStake?el(e.calculate(t,Si.Stake),n):0,ri=(e,t,n)=>{if(e){if(e.onProfit)return e.calculate(t-n,e.isFake?Si.FakeProfit:Si.Profit);if(e.onReturn)return e.calculate(t,e.isFake?Si.FakeReturn:Si.Return)}return 0},Vl=({possibleWin:e,stake:t,profitBoost:n,betType:s})=>{var r;return n.active&&((r=n.selectedOption)==null?void 0:r.betType)===s?(e-t)*(n.selectedOption.value/100):0},Hl=({stake:e,totalStake:t,possibleWin:n,finalPayout:s,expressBonus:r=0,expressBonusPercent:a=0,taxOnProfitOrReturn:o=0,taxOnProfitOrReturnIsFake:i=!1,taxOnStake:l=0,totalOdds:c=0,boostedAmount:u=0,editBetBaseStake:f=0,winPossibility:m=0})=>({possibleWin:n,stake:e,totalStake:t,...s&&{finalPayout:s},...o>0&&{taxOnProfitOrReturn:o,taxOnProfitOrReturnIsFake:i},...l>0&&{taxOnStake:l},...r>0&&{expressBonus:r},...a>0&&{expressBonusPercent:a},...u>0&&{boostedAmount:u},...c>0&&{totalOdds:c},...f>0&&{editBetBaseStake:f},...m>0&&{winPossibility:m}}),Xw=({events:e,counterOffers:t,predicate:n=SL(!0),boostedEvents:s})=>e.reduce((r,a,o)=>{const i=s!=null&&s.length?{isBoosted:s[Cr.BOTH].has(a.id)||s[a.isLive===1?Cr.LIVE:Cr.PREMATCH].has(a.id)}:{isBoosted:!1},l=a.price!==null&&n(a),c=Number(t[o]);return r.eventsPriceWithSportAlias.push({sportAlias:a.sportAlias,price:l?c||a.price:0,...i}),r.eachWayPriceWithSportAlias.push({sportAlias:a.sportAlias,price:l?a.eachWayPrice:0,...i}),r},{eventsPriceWithSportAlias:[],eachWayPriceWithSportAlias:[]}),FR=e=>e.some(lt("priceType","sp")),pZ=({events:e,taxInstance:t,sportsBonusInstance:n,excludedSysEvents:s,currency:r,currencyRounding:a,maxOdds:o,oddsRounding:i,oddsRoundingMultiple:l,oddsRoundingMethod:c,profitBoost:u,possibleWinRoundingMethodMultiple:f,editBetBaseStake:m,fullCoverBetTypesEnabled:h,selectedSysOption:g,counterOffers:E,boostedEvents:b,bankerEvents:v})=>{const _={maxOdds:o,...i!==void 0&&{decimalRounding:i},...c!==void 0&&{oddsRoundingMethod:c}},{eventsPriceWithSportAlias:y,eachWayPriceWithSportAlias:S}=Xw({events:e,counterOffers:E,boostedEvents:b}),w=y.map(Pt("price")),x=S.map(Pt("price")),I=t==null?void 0:t.isFake,C=FR(e),T=e.some(P=>t==null?void 0:t.canBeTaxed(P.sportAlias));return P=>{switch(P){case me.Single:{const A=D=>el(D,a),O=nt(Vl,A),M=nt(ri,A),k=RR(_);return(D,j,V)=>{const R=Number(j.stake);if(R>0||m>0){const U=e[V],G=t==null?void 0:t.canBeTaxed(U.sportAlias);let z=We(R*j.stakeMultiplier);const K=G?Gl({taxInstance:t,stake:z,currencyRounding:a}):0;if(z=We(z-K+m),U.priceType===$o.Starting)return D.push({stake:R,totalStake:z,taxOnStake:K,possibleWin:G?hd:Ka}),D;const ne=w[V];let J,$=0;if(j.eachWay){const q=We(z/2);J=A(k(ne,q).possibleWin+k(U.eachWayPrice,q).possibleWin)}else J=A(k(ne,z).possibleWin),$=O({possibleWin:J,stake:z,profitBoost:u,betType:P});let L=We(J+$);const W=G?M(t,L,z):0;I||(L=We(L-W)),D.push(Hl({stake:R,totalStake:z,possibleWin:J,finalPayout:L,taxOnProfitOrReturn:W,taxOnProfitOrReturnIsFake:I,taxOnStake:K,boostedAmount:$,editBetBaseStake:m}))}else D.push(Zo);return D}}case me.Multiple:{const A=gf(f,a),O=nt(Vl,A),M=nt(ri,A),k=MR({..._,...l!==void 0&&{decimalRounding:l}});return(D,j)=>{var z;const V=Number(j.stake),U=k(w,V>0?V:0).oddsAccumulator;let G=0;if(N.sportsbook.betslip.enableWinPossibility&&(G=U>0?Number((100/U).toFixed(1)):0),V>0||m>0){let K=We(V*j.stakeMultiplier);const ne=T?Gl({taxInstance:t,stake:K,currencyRounding:a}):0;if(K=We(K-ne+m),C)return D.push({stake:V,totalStake:K,taxOnStake:ne,possibleWin:T?hd:Ka}),D;let J,$,L=0;if(j.eachWay)J=We(K/2),$=A(k(w,J).possibleWin+k(x,J).possibleWin);else{J=K;const Y=k(w,J);$=A(Y.possibleWin),L=O({possibleWin:$,stake:J,profitBoost:u,betType:P})}let W=0,q=0;if(n&&(!u.active||((z=u.selectedOption)==null?void 0:z.betType)!==P)){const{bonusAmount:Y,bonusPercentage:ae}=n.calculate({getPosWinData:k,eventsPriceWithSportAlias:y,stake:J,currency:r});if(W=Y,q=ae,j.eachWay){const{bonusAmount:ie}=n.calculate({getPosWinData:k,eventsPriceWithSportAlias:S,stake:J,currency:r});W+=ie,q=0}W=A(W)}let de=We($+L+W);const ue=T?M(t,de,K):0;I||(de=We(de-ue)),D.push(Hl({stake:V,totalStake:K,possibleWin:$,finalPayout:de,taxOnProfitOrReturn:ue,taxOnProfitOrReturnIsFake:I,taxOnStake:ne,expressBonus:W,expressBonusPercent:q,totalOdds:U,boostedAmount:L,editBetBaseStake:m,winPossibility:G}))}else D.push(j.eachWay?Zo:{...Zo,totalOdds:k(w,0).oddsAccumulator,winPossibility:G});return D}}case me.System:{const A=gf(f,a),O=nt(Vl,A),M=nt(ri,A),k=DR({..._,...l!==void 0&&{decimalRounding:l}}),{eventsPriceWithSportAlias:D,eachWayPriceWithSportAlias:j}=Xw({events:e,counterOffers:E,predicate:({id:U})=>!s.has(U)}),V=D.map(Pt("price")),R=j.map(Pt("price"));return(U,G,z)=>{const K=Number(G.stake);if(K>0&&(h||g===z)){const ne=z+2;let J=We(K*G.stakeMultiplier);const $=T?Gl({taxInstance:t,stake:J,currencyRounding:a}):0;if(J=We(J-$),C)return U.push({stake:K,totalStake:J,taxOnStake:$,possibleWin:T?hd:Ka}),U;let L,W=0;if(G.eachWay){const ue=We(J/2),Y=e.filter(ae=>v&&v.has(ae.id)).map(ae=>ae.price);L=A(k(V,ue,ne,Y).possibleWin+k(R,ue,ne,Y).possibleWin)}else{const ue=e.filter(Y=>v&&v.has(Y.id)).map(Y=>Y.price);L=A(k(V,J,ne,ue).possibleWin),W=O({possibleWin:L,stake:J,profitBoost:u,betType:P})}let q=We(L+W);const de=T?M(t,q,J):0;I||(q=We(q-de)),U.push(Hl({stake:K,totalStake:J,possibleWin:L,finalPayout:q,taxOnProfitOrReturn:de,taxOnProfitOrReturnIsFake:I,taxOnStake:$,boostedAmount:W}))}else U.push(Zo);return U}}case me.Chain:{const A=D=>el(D,a),O=nt(Vl,A),M=nt(ri,A),k=jR(_);return(D,j)=>{const V=Number(j.stake);if(V>0){let R=We(V*j.stakeMultiplier);const U=T?Gl({taxInstance:t,stake:R,currencyRounding:a}):0;if(R=We(V-U),C)return D.push({stake:V,totalStake:R,taxOnStake:U,possibleWin:T?hd:Ka}),D;let G,z=0;if(j.eachWay){const J=We(R/2);G=A(k(w,J).possibleWin+k(x,J).possibleWin)}else G=A(k(w,R).possibleWin),z=O({possibleWin:G,stake:R,profitBoost:u,betType:P});let K=We(G+z);const ne=T?M(t,K,R):0;I||(K=We(K-ne)),D.push(Hl({stake:V,totalStake:R,possibleWin:G,finalPayout:K,taxOnProfitOrReturn:ne,taxOnProfitOrReturnIsFake:I,taxOnStake:U,boostedAmount:z}))}else D.push(Zo);return D}}default:{const A=gf(f,a),O=nt(Vl,A),M=nt(ri,A),k=BR({..._,...l!==void 0&&{decimalRounding:l}});return(D,j)=>{const V=Number(j.stake);if(V>0){const R=Zx.includes(P),U=We(V*j.stakeMultiplier),G=Gl({taxInstance:t,stake:U,currencyRounding:a}),z=We(U-G),K=We(z/j.stakeMultiplier);if(C)return D.push({stake:V,totalStake:z,taxOnStake:G,possibleWin:Ka}),D;let ne,J=0;j.eachWay?ne=A(k(w,K,R).possibleWin+k(x,K,R).possibleWin):(ne=A(k(w,K,R).possibleWin),J=O({possibleWin:ne,stake:z,profitBoost:u,betType:P}));let $=We(ne+J);const L=M(t,$,z);I||($=We($-L)),D.push(Hl({stake:V,totalStake:z,possibleWin:ne,finalPayout:$,taxOnProfitOrReturn:L,taxOnProfitOrReturnIsFake:I,taxOnStake:G,boostedAmount:J}))}else D.push(Zo);return D}}}}},mZ=({selectedFreebet:e,events:t,currencyRounding:n,taxInstance:s,maxOdds:r,oddsRounding:a,oddsRoundingMultiple:o,oddsRoundingMethod:i,possibleWinRoundingMethodMultiple:l})=>{const{value:c,eachWay:u,betType:f,sysCount:m}=e;if(FR(t))return{stake:c,totalStake:c,possibleWin:Ka};const h=[],g=[];for(const y of t)h.push(y.price||0),g.push(y.eachWayPrice);const E={maxOdds:r,...a!==void 0&&{decimalRounding:a},...i!==void 0&&{oddsRoundingMethod:i}},b=[me.Multiple,me.System].includes(f)?gf(l,n):y=>el(y,n);let v=0;switch(f){case me.Single:{const y=RR(E);if(!u)v=y(h[0],c).possibleWin;else{const S=c/2;v=y(h[0],S).possibleWin+y(g[0],S).possibleWin}break}case me.Multiple:{const y=MR({...E,...o!==void 0&&{decimalRounding:o}});if(!u)v=y(h,c).possibleWin;else{const S=c/2;v=y(h,S).possibleWin+y(g,S).possibleWin}break}case me.System:{const y=DR({...E,...o!==void 0&&{decimalRounding:o}});if(m)if(!u)v=y(h,c,m).possibleWin;else{const S=c/2;v=y(h,S,m).possibleWin+y(g,S,m).possibleWin}break}case me.Chain:{v=jR(E)(h,c).possibleWin;break}default:{const y=BR({...E,...o!==void 0&&{decimalRounding:o}}),S=c/Jy[f],w=Zx.includes(f);if(!u)v=y(h,S,w).possibleWin;else{const x=S/2;v=y(h,x,w).possibleWin+y(g,x,w).possibleWin}}}v=b(We(v-c));const _=b(ri(s,v,0));return{stake:c,totalStake:c,possibleWin:v,..._>0&&{taxOnProfitOrReturn:_,...s!=null&&s.isFake?{taxOnProfitOrReturnIsFake:!0,finalPayout:v}:{taxOnProfitOrReturnIsFake:!1,finalPayout:We(v-_)}}}},hZ=({betslip:{events:e,selectedBetTypes:t,eventsDataMap:n,metadata:{excludedSysEvents:s,editBet:{stake:r},fullCoverBetTypesEnabled:a,selectedSysOption:o,bankerEvents:i},extraFunctions:{freebet:l,profitBoost:c},counterOffers:u},currencyConfig:{rounding:f,name:m},partnerConfig:{price_decimals:h,multiple_price_decimals:g,price_round_method:E,max_odd_for_multiple_bet:b,multiple_possiblewin_round_method:v},sportsBonus:_,taxes:y,boostedEvents:S})=>{const w=p.useMemo(()=>{const I=new Map,C=pZ({events:e,currency:m,currencyRounding:f,excludedSysEvents:s,sportsBonusInstance:_,taxInstance:y,bankerEvents:i,maxOdds:b,oddsRounding:h,oddsRoundingMultiple:g,oddsRoundingMethod:E,profitBoost:c,possibleWinRoundingMethodMultiple:v,editBetBaseStake:r,fullCoverBetTypesEnabled:a,selectedSysOption:o,counterOffers:u,boostedEvents:S});for(const T of t){const A=(n.get(T)||[]).reduce(C(T),[]);I.set(T,A)}return I},[u,m,r,e,n,s,a,b,v,g,h,E,c,f,o,_,y,t,i,S]),x=p.useMemo(()=>l.selectedOption?mZ({selectedFreebet:l.selectedOption,events:e,currencyRounding:f,taxInstance:y,oddsRounding:h,oddsRoundingMultiple:g,oddsRoundingMethod:E,possibleWinRoundingMethodMultiple:v,maxOdds:b}):{possibleWin:0,stake:0,totalStake:0},[e,l.selectedOption,b,v,g,h,E,f,y]);return{possibleWinDataMap:w,possibleWinFreebet:x}},gZ=Ne(()=>B(()=>import("./BetslipBookingPopup-bVbXc1x7.js"),__vite__mapDeps([605,579,1,580,255,254,165])));function Jw(e,t){return bm(e,t,[])}const _Z=e=>Ae.getInstance(e).dispatchEvent("closeBetslip"),vZ=({onDoBetSuccess:e=Ut,onDoBetUnderReview:t=Ut})=>{const n=p.useRef(null),{loginInProgress:s,isLoggedIn:r,profile:{calculatedBalance:a,sport_bonus:o,casino_balance:i,frozen_balance:l,waitingVerification:c,calculatedBonusMoney:u}}=ye(),{init:f,eventIds:m}=WN(),{isLocked:h,expiresAt:g}=jm(),{showAfterBetPopup:E}=FN(),b=Ua(),v=Hb(),{events:_,metadata:y,eventsDataMap:S,priceChangeMode:w,selectedBetTypes:x,extraFunctions:I,counterOffers:C,betslipId:T}=v,{fullCoverBetTypesEnabled:P,contentType:A,anyConflicts:O,editBet:M,selectedSysOption:k,inProgress:D,betslipViewState:j,favoriteStakesMultipliers:V,quickBet:R}=y,U=Q.isMobile===1,G=eO.includes(j);Wt(`betslip-${At[j]}`);const{setMessages:z,setDoBetResponseMessages:K,clearDoBetResponseMessages:ne,setBookBetResponseMessage:J,clearBookBetResponseMessage:$}=p.useContext(zN),{oddFormat:L,productType:W}=ke(),{currency:q}=or(),{rounding:de,symbol:ue,name:Y}=q,ae=Fs(),{is_superbet_on_live:ie,is_superbet_on_prematch:Z,min_bet_stakes:te={},allow_bonus_balance_for_superbet:fe}=ae,{init:le,sportsBonus:Ie,taxes:Fe}=zb(),ct=p.useCallback(()=>_Z(T),[T]),{swipeableHandlers:Me,style:Oe,triggerCloseAnimation:$e}=Ym({scrollContainer:n,onClose:ct,trackTouch:U&&j!==At.Hidden});Ho(U&&G,!0);const{possibleWinDataMap:De,possibleWinFreebet:Ee}=hZ({betslip:v,currencyConfig:q,partnerConfig:ae,sportsBonus:Ie,taxes:Fe,boostedEvents:m});p.useEffect(()=>{j!==At.Hidden&&j!==At.Quick&&f()},[j]);const je=async(be,Pe)=>{var Ke;Ae.getInstance().dispatchEvent("setInProgressState",{maxBet:!0});try{const Be=bH(_),Ue=(be===me.Single?[Be[Pe]]:Be).flatMap(_t=>{var Ha;return(Ha=_t.childrenEvents)!=null&&Ha.length?_t.childrenEvents:[_t]}),Ct=Ue.every(_t=>_t.bet_builder_match_id&&_t.bet_builder_match_id===Ue[0].bet_builder_match_id),Qe=await RH({events:Ue,betType:Ct?me.InternalBetBuilder:be,...be===me.System&&{sysCount:Pe+2}}),{stakeMultiplier:Kt}=Jw(S,be)[Pe],fn=Ns(Qe/Kt,de);return String((Ke=N.sportsbook.maxBet)!=null&&Ke.checkWithBalance?Math.min(Hv({calculatedBalance:a,sport_bonus:o,useOnlyRealBalance:I.realBalance.active,useOnlyBonusBalance:I.bonusBalance.active,frenchFreebetEnabled:I.frenchFreebet.active,calculatedBonusMoney:u,casino_balance:i,frozen_balance:l}),fn):fn)}catch(Be){throw Be}finally{Ae.getInstance().dispatchEvent("setInProgressState",{maxBet:!1})}},X=p.useCallback(()=>{_H()&&A!==Re.Suggested&&Ae.getInstance(T).dispatchEvent("setContentType",Re.Suggested)},[T,A]),H=(be,Pe,Ke)=>{var Ue,Ct;let Be;if(Yv(be))if(en.dispatchEvent("trackingEvent",{category:"Betting",action:"Placed a Bet",label:Ev,additionalData:{placeBetResponse:be.Data,placeBetWinAmount:((Ue=Array.from(De==null?void 0:De.values()))==null?void 0:Ue.flatMap(Qe=>Qe==null?void 0:Qe.map(Kt=>(Kt==null?void 0:Kt.finalPayout)||-1)))||[]}}),Ae.getInstance(T).dispatchEvent("remove",be.Data.flatMap(({events:Qe})=>Qe.map(Pt("selection_id")))),Ae.getInstance(T).dispatchEvent("clearEditBet",!1),ct(),be.Data.some(lt("is_superbet",!0)))Be=[kr(tt.INFO,mx)],t();else{const Qe=!I.realBalance.active&&be.Data.some(lt("is_bonus_money",!0)),Kt=I.frenchFreebet.active&&be.Data.some(lt("is_freebet_money",!0)),fn=Qe?p2:Kt?m2:px;Be=[kr(tt.SUCCESS,fn)],e(fn),Q.isMobile&&X()}else if(en.dispatchEvent("trackingEvent",{category:"Betting",action:"Placed a Bet",label:X2}),typeof be.Data=="string")Be=[kr(tt.ERROR,be.Data)];else{const{ErrorData:Qe,Key:Kt}=be.Data;switch(Kt){case"ClientBetStakeLimitError":{const fn=Number(be.Data.ErrorData.SelectionId),_t=!!((Ct=Pe.find(Ha=>Ha.Events.some(lt("SelectionId",fn))))!=null&&Ct.IsSuperBet||Pe[0].IsSuperBet);if(dH({requests:Pe,events:_,is_superbet_on_prematch:Z,is_superbet_on_live:ie,freebet:Ke})&&!_t){ve.open({type:"info",title:"Info",hideCloseButton:!0,content:h2,buttons:[{label:"Make a Superbet",callBack:()=>F(!1,!0)},{label:"Cancel",callBack:()=>Ae.getInstance(T).dispatchEvent("setInProgressState",{placeBet:!1})}]});return}else if(_t){ve.open({type:"error",title:"Error",hideCloseButton:!0,content:g2,buttons:[{label:"Cancel",callBack:()=>Ae.getInstance(T).dispatchEvent("setInProgressState",{placeBet:!1})}]});return}else Be=[kr(tt.ERROR,T2,void 0,{...Qe,currencySymbol:ue})];break}case"GeolocationCheckFail":Vr.showLocationError(Kt),b();break;case"PartnerApiError":Be=[kr(tt.ERROR,`api_${Qe.ApiErrorCode}: ${Qe.ApiErrorMessage}`)];break;case"BetSelectionChanged":if(Qe.ActualPrice&&Qe.SelectionId){const fn=Number(Qe.SelectionId);Ae.getInstance(T).dispatchEvent("updateEvent",{eventId:fn,key:"price",value:Number(Qe.ActualPrice)}),Be=[kr(tt.WARNING,Kt,fn)],Be.push(kr(tt.WARNING,"Odds on one of your selections have changed"))}break;case vu.Bet:c&&He.dispatchEvent("clientRestricted",{action:vu.Bet});break;case"ContinuesGameSessionLimitExceeded":ve.open({type:"error",title:"Error",content:Kt});break;case"RequiredLossLimitsDoesNotSet":case"RequiredSessionLimitsDoesNotSet":bi(Kt==="RequiredLossLimitsDoesNotSet"?Yn.LossLimits:Yn.SessionLimits);break}Be||(Be=[kr(tt.ERROR,Kt)])}K(Be),Ae.getInstance(T).dispatchEvent("setInProgressState",{placeBet:!1})},F=async(be=!1,Pe=!1)=>{ne(),Ae.getInstance(T).dispatchEvent("updateInitialPriceAndBase");const Ke=be?CH(v,L):SH(v,L,Pe,fe);if(Ke.length){Ae.getInstance(T).dispatchEvent("setInProgressState",{placeBet:!0});try{Promise.all((N.partner.integrationMode?Ke:[Ke]).map(Be=>ee.get({bets:N.partner.integrationMode?[Be]:Be},"create_bets"))).then(Be=>Be.map(Ue=>{const Ct=mH(Ue);return Yv(Ct)?E(Ct):Ct.StatusCode==="NotAllowedExistingTaxSession"?ak(b):Ct.StatusCode==="ClientExcluded"&&h&&g&&_E(g),H(Ct,Ke,be)}))}catch{const Ue=kr(tt.ERROR,np);K([Ue]),Ae.getInstance(T).dispatchEvent("setInProgressState",{placeBet:!1})}}else Ae.getInstance(T).dispatchEvent("setInProgressState",{placeBet:!1})},re=async()=>{$(),Ae.getInstance(T).dispatchEvent("updateInitialPriceAndBase");const be=TH(v);if(be.length){Ae.getInstance(T).dispatchEvent("setInProgressState",{placeBet:!0});try{const Pe=await ee.get({bets:be,...Q.terminalID&&{cashdesk_id:Q.terminalID}},"create_bet_book_v2");if(!wH(Pe))J({type:tt.ERROR,title:Pe.result_text??""});else{const{Id:Ke}=Pe.details;Ae.getInstance(T).dispatchEvent("updateBookingId",{id:Ke}),ve.open(Be=>({type:"info",title:"Booking code",className:"booking-share-popup",Component:()=>d.jsx(gZ,{id:Ke,sharingData:{betslip:v,eventsDataMap:S,possibleWinDataMap:De},onClose:Be})})),J({type:tt.SUCCESS,title:"Booking successful",lifetime:3e3,blocking:[Re.Booking]})}Ae.getInstance(T).dispatchEvent("setInProgressState",{placeBet:!1})}catch{J({type:tt.ERROR,title:"Something went wrong with your booking. Please try again or contact support"}),Ae.getInstance(T).dispatchEvent("setInProgressState",{placeBet:!1})}}},ce=Jw(De,x[0])[0],pe=p.useCallback(()=>N.sportsbook.showPossibleWinPopup&&U&&_.length>=2&&W===Ge.SPORTSBOOK&&j===At.Hidden&&x[0]===me.Multiple,[U,_.length,W,j,x]);return p.useEffect(function(){var Be;const Pe=te[Y],Ke=((Be=N.sportsbook.showPossibleWinPopup)==null?void 0:Be.minAmountMultiplier)??1;pe()&&Pe&&!(ce!=null&&ce.possibleWin)&&Ae.getInstance(T).dispatchEvent("updateEventData",{betType:x[0],eventDataProp:"stake",value:`${Pe*Ke}`})},[T,Y,pe,te,ce,x]),p.useEffect(()=>{le()},[]),p.useEffect(()=>{D.betbuilder||z({events:_,eventsDataMap:S,selectedBetTypes:x,contentType:A,anyConflicts:O,fullCoverBetTypesEnabled:P,editBetOriginalStake:M.stake,selectedSysOption:k,firstBonusRule:Ie==null?void 0:Ie.rulesInfo,frenchFreebetEnabled:I.frenchFreebet.active,useOnlyBonusBalance:I.bonusBalance.active,useOnlyRealBalance:I.realBalance.active,freebet:I.freebet,profitBoost:I.profitBoost,counterOffers:C,quickBetActive:I.quickBet.active,quickBetAmount:R.stake,quickBetSaved:R.isSaved,quickBetErrorMessage:R.errorMessage})},[O,A,C,M.stake,_,S,I.freebet,I.profitBoost,I.realBalance.active,I.bonusBalance.active,I.frenchFreebet.active,P,x,k,z,Ie==null?void 0:Ie.rulesInfo,R.stake,R.isSaved,R.errorMessage,I.quickBet.active,D.betbuilder]),p.useEffect(function(){if(j!==At.Hidden&&!s&&!r&&l4.includes(A)){let Pe=!1;et.dispatchEvent("addComponentPopup",{component:"AuthPopup",onClose(){Pe||Ae.getInstance(T).dispatchEvent("setContentType",Re.Betting)},props:{popupContentType:st.Login,onSuccess(){Pe=!0}}})}},[T,j,A,r,s]),{isShowPossibleWinPopup:pe,possibleWinData:ce,betslipViewState:j,editBet:M,fullBetslipVisible:G,scrollContainer:n,style:Oe,betslipId:T,events:_,eventsDataMap:S,possibleWinDataMap:De,possibleWinFreebet:Ee,extraFunctions:I,metadata:y,fullCoverBetTypesEnabled:P,closeBetslip:ct,inProgress:D,placeBet:F,getMaxBet:je,favoriteStakesMultipliers:V,swipeableHandlers:Me,contentType:A,priceChangeMode:w,triggerCloseAnimation:$e,selectedBetTypes:x,bookBet:re,sportsBonus:Ie,counterOffers:C,switchToSuggestedBetsSection:X,isLoggedIn:r,betslip:v}},EZ=({betBuilderAvailable:e,gameID:t})=>{const[n,s]=p.useState(!1),[r,a]=p.useState([]);return p.useEffect(function(){if(e&&t){const i={source:"betting",what:{market:["id","sequence","base","market_type","point_sequence"],event:["id","type_1","home_value","away_value","type_id"]},where:{market:{available_for_betbuilder:1},game:{id:t}}},l=(u,f)=>{const m=[];for(const{event:h,sequence:g,point_sequence:E,market_type:b,base:v}of Object.values(u))for(const{type_id:_,home_value:y,away_value:S,type_1:w,id:x}of Object.values(h))m.push({id:x,base:v,type_id:_,sequence:g,home_value:y,away_value:S,market_type:b,type:w,point_sequence:E});a(m),f&&s(!1)};s(!0);const c=ee.subscribe(i,(u,f)=>l(u.market,f));return()=>{ee.unsubscribe(c)}}},[e,t]),{loading:n,availableSelections:r}},yZ=(e,t,n)=>{var u,f;const{sequence:s,point_sequence:r,base:a,home_value:o,away_value:i,market_type:l,type:c=""}=t;return(f=(u=e.find(lt("MatchId",n)))==null?void 0:u.BetBuilderMarkets.find(({Kind:m,Sequence:h,PointSequence:g,NameNumber:E})=>m===l&&h===s&&g===r&&(!a||a===cn||a===E)))==null?void 0:f.Events.find(({Kind:m,HomeValue:h,AwayValue:g,K:E})=>m===c&&(!o&&o!==0||o===h)&&(!i&&i!==0||i===g)&&E)},UR=p.createContext({}),bZ=({children:e})=>{const[t,n]=p.useState(0),[s,r]=p.useState(),[a,o]=p.useState(!1),[i,l]=p.useState(),[c,u]=p.useState([]),[f,m]=p.useState(!1),h=dn(),{events:g,metadata:E}=Hb(),b=!!t&&!E.needCorrelation,{availableSelections:v,loading:_}=EZ({gameID:t,betBuilderAvailable:b}),y=p.useRef(!1),S=p.useMemo(()=>g==null?void 0:g.find(({gameId:P,isPartial:A})=>P===t&&!A),[g,t]),w=p.useMemo(()=>{var P;return S?(P=S.childrenEvents)!=null&&P.length?S.childrenEvents:[S]:[]},[S]),x=p.useMemo(()=>_||a,[a,_]),I=p.useMemo(()=>!!(!w.length&&t),[t,w.length]),C=p.useCallback(({selections:P,currentGameID:A})=>{t&&A===t&&(o(!0),IV(t,P).then(O=>{u(O);const M=O.some(k=>{var D;return(D=k.BetBuilderMarkets)==null?void 0:D.length});m(!M)}).catch(()=>{u([]),l(new Set),m(!0)}).finally(()=>{o(!1)}))},[t]),T=p.useCallback(P=>{!y.current&&P&&(y.current=!0),n(A=>A!==P?(l(void 0),m(!1),P):A)},[]);return p.useEffect(()=>{E.needCorrelation||r(JSON.stringify({selections:KO(w),currentGameID:t}))},[t,E.needCorrelation,w]),p.useEffect(function(){s&&C(JSON.parse(s))},[s]),p.useEffect(function(){var A;if(b&&c.length&&t){const O=new Set;for(const M of v)(A=yZ(c,M,t))!=null&&A.K&&O.add(M.id);l(O)}else b||l(void 0)},[c,v,b,t]),p.useEffect(function(){if(b&&t){const A=Ae.getInstance().addEventListener("blockBBEvents",()=>{l(new Set)});return()=>{A()}}},[b,t]),p.useEffect(function(){if(b){const A=Ae.getInstance().addEventListener("betBuilderEventsSynced",O=>r(JSON.stringify(O)));return()=>{A()}}},[b,C]),p.useEffect(function(){!S&&b&&(l(void 0),u([]))},[S,b]),p.useEffect(()=>{y.current&&h.push({search:ut({...ze(),[J4]:b&&t?"true":void 0})})},[b,t,h]),d.jsx(UR.Provider,{value:{setCurrentGameID:T,activeGameId:t,betBuilderLoading:x,allowedBetBuilderEventData:i,availableBetBuilderMarkets:c,initialBetBuilderSelections:I,betBuilderMarketsError:f},children:e})},SZ=()=>p.useContext(UR),CZ=({label:e,props:t,className:n=""})=>{const s=Se();return t?d.jsxs("div",{className:`entrance-f-item-bc ${n}`,children:[e&&d.jsx("div",{className:"entrance-f-error-message-bc",children:s(e)}),t.html?d.jsx("div",{className:"entrance-f-error-message-bc",dangerouslySetInnerHTML:{__html:s(t.content)}}):d.jsxs("div",{className:"entrance-f-error-message-bc",children:[t.iconClass?d.jsx("i",{className:t.iconClass}):null,s(t.content)]})]}):null},TZ=p.memo(CZ),wZ=({quickBetAmount:e})=>{const{currency:{name:t,symbol:n}}=or();return d.jsxs("p",{className:"betslipQuickBetBanner",children:[d.jsx(Go,{src:Xx,alt:"BetslipQuickBetImage",className:"betslipQuickBetImage"}),e?d.jsxs("span",{className:"betslipQuickBetText",children:[t," ",e," ",!t&&e&&n]}):null]})},IZ=Ne(()=>B(()=>import("./Betslip-CLIpRBxK.js"),__vite__mapDeps([606,498,1,499,607,165,235,236,277,220,218,219,153,215,608,609,610,250,251,252,253,254,255,256,257,229,258,259,260,152,572,278]))),AZ=Ne(()=>B(()=>import("./BetslipBetStatus-Cn3lvjHp.js"),__vite__mapDeps([611,1,579,580,575,238,576,255,152,153,577,247,578,165,235,236,474,400,289,290,291,250,251,252,253,254,256,257,229,258,259,260,292,293,189,581,287]))),PZ=Ne(()=>B(()=>import("./BetslipHeader-Cnbfe-hZ.js"),__vite__mapDeps([612,283,287,1]))),xZ=Ne(()=>B(()=>import("./BetslipSuggestedBets-WP_FDiAR.js"),__vite__mapDeps([613,1,162,240,241,163,164,165,166,225,226,614]))),Zw=Ne(()=>B(()=>import("./EditBetHeader-BXMipQXS.js"),__vite__mapDeps([615,1]))),OZ=Ne(()=>B(()=>import("./FullCoverBetslip-Bza5AMPY.js"),__vite__mapDeps([616,498,1,499,607,165,235,236,277,220,218,219,153,215,608,609,610,250,251,252,253,254,255,256,257,229,258,259,260,152,572,278]))),kZ=Ne(()=>B(()=>import("./QuickBet-DMcjxa5N.js"),__vite__mapDeps([617,607,1,165,235,236,277,220,218,219,153,215,608,610]))),NZ=Ne(()=>B(()=>import("./BetslipMultipleOfTheDay-xI455RGs.js"),__vite__mapDeps([618,610,1]))),RZ=Ne(()=>B(()=>import("./PossibleWinPopup-DhDt3oKr.js"),__vite__mapDeps([619,1,620]))),LZ=Ne(()=>B(()=>import("./OpenBets-DAPSQRo9.js"),__vite__mapDeps([621,579,1,580,622,575,238,576,255,152,153,577,247,578,165,235,236,474,400,289,290,291,250,251,252,253,254,256,257,229,258,259,260,292,293,189,581])));function jd(e,t){return bm(e,t,[])}const MZ=({onDoBetSuccess:e=Ut,onDoBetUnderReview:t=Ut})=>{var U,G;const{isShowPossibleWinPopup:n,possibleWinData:s,betslipViewState:r,editBet:a,fullBetslipVisible:o,scrollContainer:i,style:l,betslipId:c,events:u,eventsDataMap:f,possibleWinDataMap:m,possibleWinFreebet:h,extraFunctions:g,metadata:E,fullCoverBetTypesEnabled:b,closeBetslip:v,inProgress:_,placeBet:y,getMaxBet:S,favoriteStakesMultipliers:w,swipeableHandlers:x,contentType:I,priceChangeMode:C,triggerCloseAnimation:T,selectedBetTypes:P,bookBet:A,counterOffers:O,switchToSuggestedBetsSection:M,isLoggedIn:k,betslip:D}=vZ({onDoBetSuccess:e,onDoBetUnderReview:t}),{activeGameId:j}=SZ(),V=!!j,R=Q.isMobile&&((U=g.quickBet)==null?void 0:U.active);return d.jsxs(d.Fragment,{children:[n()?d.jsx(p.Suspense,{fallback:null,children:d.jsx(RZ,{possibleWinData:s})}):r===At.Hidden?a.active?d.jsx(p.Suspense,{fallback:null,children:d.jsx(Zw,{})}):null:d.jsx(zm.div,{className:`betslip-bc ${At[r]} ${r===At.Quick?"first-bet":""} ${o?"full":""}`,ref:i,style:l,id:c,children:d.jsxs("div",{id:lx,children:[r===At.Quick&&u.length===1&&!u[0].childrenEvents.length&&!V&&d.jsx(p.Suspense,{fallback:null,children:d.jsx(kZ,{event:u[0],eventData:jd(f,me.Single)[0],possibleWinData:jd(m,me.Single)[0],possibleWinFreebet:h,extraFunctions:g,eachWayPossible:E.eachWayPossible,eachWayAllowedOnAllEvents:E.eachWayAllowedOnAllEvents,fullCoverBetTypesEnabled:b,onClose:v,betInProgress:_.placeBet,maxBetLoading:_.maxBet,placeBet:y,getMaxBet:S,favoriteStakesMultipliers:w})}),o&&d.jsxs("div",{className:"betslip-full-content-bc",children:[d.jsxs("div",{className:`bs-f-header-bc ${(G=g.quickBet)!=null&&G.active?"isQuickBetActive":""}`,...x,children:[d.jsx(p.Suspense,{fallback:null,children:d.jsx(PZ,{contentType:I,priceChangeMode:C,onCloseClick:T,editBetActive:a.active})}),N.sportsbook.betslip.enableBetslipLicense&&d.jsx(TZ,{props:{content:j2,html:!0},className:"license-message"}),a.active&&d.jsx(p.Suspense,{fallback:null,children:d.jsx(Zw,{})})]}),tc({..._,quickBet:!1,betbuilder:!1})&&d.jsx(Mt,{className:"full-transparent-loader",size:"big"}),[Re.Betting,Re.Booking,Re.Hybrid].includes(I)&&d.jsx(p.Suspense,{fallback:null,children:b?d.jsx(OZ,{events:u,metadata:E,eventsDataMap:f,extraFunctions:g,selectedBetTypes:P,possibleWinDataMap:m,possibleWinFreebet:h,placeBet:y,bookBet:A,getMaxBet:S,closeBetslip:v,counterOffers:O}):d.jsx(IZ,{events:u,metadata:E,eventsData:jd(f,P[0]),possibleWinData:jd(m,P[0]),type:P[0],placeBet:y,bookBet:A,getMaxBet:S,possibleWinFreebet:h,extraFunctions:g,closeBetslip:v,counterOffers:O,switchToSuggestedBets:M})}),I===Re.OpenBets&&k&&d.jsx(p.Suspense,{fallback:null,children:d.jsx(LZ,{closeBetslip:v})}),I===Re.BetStatus&&d.jsx(p.Suspense,{fallback:null,children:d.jsx(AZ,{})}),I===Re.Suggested&&d.jsx(p.Suspense,{fallback:null,children:d.jsx(xZ,{})}),I===Re.MultipleOfTheDay&&d.jsx(p.Suspense,{fallback:null,children:d.jsx(NZ,{expressEvent:D.multipleOfTheDayIds})})]})]})}),R?d.jsx(wZ,{quickBetAmount:E.quickBet.isSaved?E.quickBet.stake:""}):null]})},DZ=p.memo(MZ),jZ=({children:e,className:t="",showAfter:n})=>{const[s]=p.useState(()=>{const o=document.createElement("div");return o.className=t,o}),[r,a]=p.useState(null);return p.useEffect(()=>{let o;return function i(){const l=document.getElementById(lx);l?(l.classList.add(tC),a(l)):o=setTimeout(i,15)}(),()=>{clearTimeout(o)}},[]),p.useEffect(()=>{if(r&&!Q.isMobile)return n?r.append(s):r.insertBefore(s,r.firstChild),r.classList.remove(tC),()=>{r.removeChild(s)}},[r,s,n]),p.useEffect(()=>{s.className=t},[t,s]),Do.createPortal(e,s)},Wl=new vk,BZ=p.lazy(()=>B(()=>import("./UserProfileTemplate-DYcajWC0.js"),__vite__mapDeps([623,1,461]))),e1=(e=!1)=>He.dispatchEvent("closeUserInfoPanel",e),FZ=()=>{const e=Ga(),t=dn(),{isLoggedIn:n,loginInProgress:s}=ye(),r=p.useRef(!1),a=e.get(nl)===sl,o=e.get($4),i=e.has("account"),l=n&&a;return Ho(l),p.useEffect(()=>{if(o==="multi-cashback"&&!Wl.connected)return Wl.connect(),()=>{Wl.connected&&(Wl.disconnect(4e3,"Closed jackpot socket connection by the application"),Wl.clearActiveRequests())}},[o]),p.useEffect(function(){i&&!a&&He.dispatchEvent("openUserInfoPanel")},[i,a]),p.useEffect(function(){!s&&!n&&a&&(r.current=!0,et.dispatchEvent("addComponentPopup",{component:"AuthPopup",onClose:()=>{r.current&&e1()},props:{popupContentType:st.Login,onSuccess:()=>{r.current=!1}}}))},[n,s,a]),p.useEffect(function(){return He.addEventListener("openAccountSection",({section:u,page:f,params:m})=>{et.dispatchEvent("hideAll"),t.push({search:bt({section:u,page:f??N.accountNavigation[u].pages[0],...m})})})},[t]),l?d.jsx(p.Suspense,{fallback:d.jsx(Mt,{size:"medium",className:"full-transparent-loader"}),children:d.jsx(BZ,{query:e,onClose:e1})}):null},UZ=Ne(()=>B(()=>import("./SegmentTracking-Bj7rCKoU.js"),__vite__mapDeps([624,1]))),$Z=Ne(()=>B(()=>import("./DataspotTracking-D_GlBo5b.js"),__vite__mapDeps([625,1,410,153,411]))),GZ=Ne(()=>B(()=>import("./FacebookTracking-BlmhxyM9.js"),__vite__mapDeps([626,1]))),VZ=Ne(()=>B(()=>import("./ConnextraTracking-BonHC107.js"),__vite__mapDeps([627,1]))),HZ=Ne(()=>B(()=>import("./ContentSquareTracking-D80iYl0v.js"),__vite__mapDeps([628,1]))),WZ=Ne(()=>B(()=>import("./FastTrackTracking-DIUBmsSa.js"),__vite__mapDeps([629,630,1]))),zZ=Ne(()=>B(()=>import("./FraudneticTrackingTool-BnTwGNya.js"),__vite__mapDeps([631,1]))),YZ=Ne(()=>B(()=>import("./GoogleAnalyticsTracking-CWFDfN_O.js"),__vite__mapDeps([632,345,1]))),qZ=Ne(()=>B(()=>import("./GoogleTagManagerTracking-DilqP81h.js"),__vite__mapDeps([633,1]))),KZ=Ne(()=>B(()=>import("./SeonTracking-VRp400aL.js"),__vite__mapDeps([634,1]))),QZ=Ne(()=>B(()=>import("./YandexTracking-BuuD93yt.js"),__vite__mapDeps([635,1]))),XZ=Ne(()=>B(()=>import("./HotjarTracking-CyiVMWKW.js"),__vite__mapDeps([636,1]))),JZ=Ne(()=>B(()=>import("./DepositCountTracking-FikbXqo9.js"),__vite__mapDeps([637,1]))),ZZ=Ne(()=>B(()=>import("./SmarticoTracking-CS2moetL.js"),__vite__mapDeps([638,1]))),eee=Ne(()=>B(()=>import("./InternalDataspotTracking-DL3sLavC.js"),__vite__mapDeps([639,1]))),tee=({data:e})=>{const{hotjar:t,segment:n,seonTool:s,dataspot:r,fastTrack:a,fraudnetic:o,yandexMetricaId:i,googleAnalyticsId:l,googleTagManagerId:c,facebookTrackingId:u,connextraTrackingId:f,contentsquareTrackingId:m,depositExternalPaymentTracking:h,internalDataspot:g,smartico:E}=N.app.tracking;return d.jsxs(d.Fragment,{children:[s?d.jsx(p.Suspense,{fallback:null,children:d.jsx(KZ,{data:e})}):null,t?d.jsx(p.Suspense,{fallback:null,children:d.jsx(XZ,{data:e})}):null,n?d.jsx(p.Suspense,{fallback:null,children:d.jsx(UZ,{data:e})}):null,r?d.jsx(p.Suspense,{fallback:null,children:d.jsx($Z,{data:e})}):null,a?d.jsx(p.Suspense,{fallback:null,children:d.jsx(WZ,{data:e})}):null,i?d.jsx(p.Suspense,{fallback:null,children:d.jsx(QZ,{data:e})}):null,u?d.jsx(p.Suspense,{fallback:null,children:d.jsx(GZ,{data:e})}):null,f?d.jsx(p.Suspense,{fallback:null,children:d.jsx(VZ,{data:e})}):null,l?d.jsx(p.Suspense,{fallback:null,children:d.jsx(YZ,{data:e})}):null,o!=null&&o.enabled?d.jsx(p.Suspense,{fallback:null,children:d.jsx(zZ,{data:e})}):null,c?d.jsx(p.Suspense,{fallback:null,children:d.jsx(qZ,{data:e})}):null,m?d.jsx(p.Suspense,{fallback:null,children:d.jsx(HZ,{data:e})}):null,h!=null&&h.enabled?d.jsx(p.Suspense,{fallback:null,children:d.jsx(JZ,{data:e})}):null,g?d.jsx(p.Suspense,{fallback:null,children:d.jsx(eee,{data:e})}):null,E?d.jsx(p.Suspense,{fallback:null,children:d.jsx(ZZ,{data:e})}):null]})},nee=p.memo(function(){const[t,n]=p.useState(null);return p.useEffect(()=>en.addEventListener("trackingEvent",s=>n(s)),[]),d.jsx(tee,{data:{event:t,location:xn()}})}),see=e=>{const t=Dm();return p.useMemo(()=>!(e&&Om(e,t)),[e,t])},ree=p.lazy(()=>B(()=>import("./Comm100-D70jrNkt.js"),__vite__mapDeps([640,641,1]))),aee=p.lazy(()=>B(()=>import("./LiveChatInc-C-nH1Lqb.js"),__vite__mapDeps([642,641,1]))),oee=p.lazy(()=>B(()=>import("./LiveAgent-cL0OKBFL.js"),__vite__mapDeps([643,641,1]))),iee=p.lazy(()=>B(()=>import("./TawkTo-CCvjY1QF.js"),__vite__mapDeps([644,641,1]))),lee=p.lazy(()=>B(()=>import("./Intercom-BTLylKUs.js"),__vite__mapDeps([645,641,1]))),cee=p.lazy(()=>B(()=>import("./Zendesk-DtohZWh7.js"),__vite__mapDeps([646,641,1]))),uee=p.lazy(()=>B(()=>import("./Zopim-CGBH31ms.js"),__vite__mapDeps([647,641,1]))),dee=p.lazy(()=>B(()=>import("./Crisp-ZnpUWkWY.js"),__vite__mapDeps([648,641,1]))),fee=p.lazy(()=>B(()=>import("./Jivo-zfuZXnzs.js"),__vite__mapDeps([649,641,1]))),pee=p.lazy(()=>B(()=>import("./Freshdesk-PsP3mDyO.js"),__vite__mapDeps([650,641,1]))),mee=p.lazy(()=>B(()=>import("./Digisac-CG-rDPok.js"),__vite__mapDeps([651,641,1]))),hee=p.lazy(()=>B(()=>import("./Hoory-D4HNjmm3.js"),__vite__mapDeps([652,641,1]))),gee=p.lazy(()=>B(()=>import("./HooryAI-0XEDMZAh.js"),__vite__mapDeps([653,654,1]))),_ee=p.lazy(()=>B(()=>import("./HooryAndHooryAi-C-DGC2dO.js"),__vite__mapDeps([655,1,641,654]))),vee=p.lazy(()=>B(()=>import("./CustomChat-EWxtCHLG.js"),__vite__mapDeps([656,1,657]))),Eee=p.lazy(()=>B(()=>import("./ZohoSalesIQ-I5ybpoDU.js"),__vite__mapDeps([658,641,1]))),yee=p.lazy(()=>B(()=>import("./Dixa-DRYlmiD8.js"),__vite__mapDeps([659,641,1]))),bee=p.lazy(()=>B(()=>import("./FreshDeskNew-apFDEWf2.js"),__vite__mapDeps([660,641,1]))),See=p.memo(function(){const{enabled:t,permissions:n,liveAgent:s,comm100:r,liveChatInc:a,tawkTo:o,intercom:i,zendesk:l,zopim:c,showRegularButton:u,crisp:f,jivo:m,freshDesk:h,digisac:g,hoory:E,hooryAi:b,hooryAndHooryAi:v,zohoSalesIQ:_,customChat:y,dixa:S,freshDeskNew:w}=N.app.liveChat,x=see(n);if(!t)return null;let I=null;return a?I=d.jsx(aee,{config:a,isAvailable:x,showRegularButton:u}):r?I=d.jsx(ree,{config:r,isAvailable:x,showRegularButton:u}):s?I=d.jsx(oee,{config:s,isAvailable:x,showRegularButton:u}):o?I=d.jsx(iee,{config:o,isAvailable:x,showRegularButton:u}):i?I=d.jsx(lee,{config:i,isAvailable:x,showRegularButton:u}):l?I=d.jsx(cee,{config:l,isAvailable:x,showRegularButton:u}):c?I=d.jsx(uee,{config:c,isAvailable:x,showRegularButton:u}):f?I=d.jsx(dee,{config:f,isAvailable:x,showRegularButton:u}):m?I=d.jsx(fee,{config:m,isAvailable:x}):h?I=d.jsx(pee,{config:h,isAvailable:x,showRegularButton:u}):g?I=d.jsx(mee,{config:g,isAvailable:x,showRegularButton:u}):E?I=d.jsx(hee,{config:E,isAvailable:x,showRegularButton:u}):v?I=d.jsx(_ee,{config:v,isAvailable:x,showRegularButton:u}):_?I=d.jsx(Eee,{config:_,isAvailable:x,showRegularButton:u}):y?I=d.jsx(vee,{config:y,showRegularButton:u}):S?I=d.jsx(yee,{config:S,isAvailable:x,showRegularButton:u}):w&&(I=d.jsx(bee,{config:w,isAvailable:x,showRegularButton:u})),d.jsxs(p.Suspense,{fallback:null,children:[I,b?d.jsx(gee,{config:b}):null]})}),Cee=["span"],Tee=({tag:e="p",variant:t,children:n,className:s="",dangerouslySetInnerHTML:r,style:a,...o})=>{const i=["ds-title",`ds-title--${t}`,s].filter(Boolean).join(" ");if(r){const c=Cee.includes(e)?"inline":"block";return d.jsx("div",{className:i,style:{...a,display:c},dangerouslySetInnerHTML:r,...o})}const l=e;return d.jsx(l,{className:i,style:a,...o,children:n})},wee=Ne(()=>B(()=>import("./LiveChatAdviser-DWHfpS89.js"),__vite__mapDeps([336,1]))),Iee=()=>{const{profile:{is_verified:e}}=ye(),t=Se();return d.jsxs("div",{className:"casinoGameRestrictionPopup",children:[d.jsxs(Tee,{className:"casinoGameRestrictionPopup__title",variant:"medium-medium",children:[t(e?w2:I2)," "]}),d.jsx(wee,{})]})},Aee={[Sn.Search]:"Casino Search Result",[Sn.AI]:"AI Widget Clicked",[Sn.RecentlyPlayed]:"Recently Widget Clicked",[Sn.CategoryNew]:"New Widget Clicked",[Sn.CategoryExclusive]:"Exclusive Widget Clicked",[Sn.CategoryPopular]:"Popular Widget Clicked",[Sn.Recommended]:"Clicked Casino Recommended Game",[Sn.CasinoWidgetClicked]:"Clicked Casino Game Widget"},vE=(e="")=>P4.includes(e),Pee=()=>{const{isLoggedIn:e,profile:{id:t,email:n,balance:s,casino_balance:r,username:a,bonus_money:o,first_name:i,currency:l}}=ye(),c=Ga(),u=p.useRef(!!N.app.checkLimitsRestrictionAndUpdate),f=c.get(j4),m=dn(),h=gt.getInstance(),{assets:{logo:g}}=ke(),E=({game:I,type:C,gameSource:T,clickedIndex:P,specialType:A,dataSource:O})=>{const M=!!f,k=M?"search":T,D=O===mO.Customer?"For you":"Trending",j=M?"Search":"Casino",V=Aee[k??""]||"Clicked Casino Game",R=k===Sn.RecentlyPlayed||k===Sn.CasinoWidgetClicked||k===Sn.CategoryNew||k===Sn.CategoryPopular||k===Sn.CategoryExclusive,U={gameSource:T,externalId:I.id,name:I.name,specialType:A,gameId:I.id,mode:C,...O&&{section:D},provider:I.provider,externalCategoryId:I.typeId};let G={};k===Sn.Search?G={searchData:{searchTerm:f,game:I},casinoGameData:U}:k===Sn.AI?G={aiWidgetData:{loggedIn:!!t,event:V,mode:C,section:D,source:window.location.href,gameID:I.id,position:P,...t&&{userId:t},...t&&{email:n},...t&&{balance:r?r+s:s},...t&&{bonus_money:o},...t&&{name:i},...t&&{username:a}},casinoGameData:U}:R?G={categoriesWidgetData:{event:V,position:P,...t&&{userId:t},...U},casinoGameData:U}:G={casinoGameData:U},en.dispatchEvent("trackingEvent",{category:j,action:V,additionalData:G})},[b,v]=p.useState();p.useEffect(()=>{if(b&&e&&l){const{game:I,resolve:C,language:T,frameId:P,gameType:A}=b,O=M=>{(I.blockedCurrencies||[]).includes(l)?(ve.open({title:"Info",content:"This game doesn't support Real mode in your account currency."}),C({url:"",error:""})):M?C({url:uT({game:I,gameType:A,language:T,frameId:P,logoSource:g,requireAuthToken:!0}),error:""}):(ve.open({title:"Info",Component:()=>d.jsx(Iee,{})}),C({url:"",error:""})),v(void 0)};N.casino.checkClientCasinoGamesRestriction&&ee.get({},"get_client_restrictions").then(({result:M,details:{CanBet:k=!0}})=>{throw M===0&&O(k),new Error}).catch(()=>{O(!0)}),u.current?(u.current=!1,Av(Yn.SessionLimits).then(M=>{M&&bi(Yn.LossLimits,()=>O(!0))}).catch(()=>bi(Yn.LossLimits))):O(!0)}},[l,e,g,b]);const _=p.useCallback(({game:I,type:C,language:T,isLoggedIn:P,frameId:A})=>new Promise(O=>{const M=vE(I.provider.name),k=I.viewMode||I.forFun,D=I.realPlay,j=(R,U=!1)=>{O({url:uT({game:I,gameType:R,logoSource:g,frameId:A,language:T,requireAuthToken:U}),error:""})},V=R=>{let U=!1;et.dispatchEvent("addComponentPopup",{component:"AuthPopup",onClose:()=>{U||O({error:gx,url:""})},props:{popupContentType:st.Login,onSuccess:()=>{U=!0,v({game:I,resolve:O,language:T,frameId:A,gameType:R})}}})};C===xs.Fun||!C&&!P&&k?M&&!P?V(xs.Fun):j(xs.Fun,M):C===xs.Real||!C&&D?P?(v({game:I,resolve:O,language:T,frameId:A,gameType:xs.Real}),j(xs.Real,!0)):V(xs.Real):O({error:"",url:""})}),[g]),y=p.useCallback(({gameSource:I,clickedIndex:C,multiviewPosition:T,specialType:P,...A})=>{He.dispatchEvent("openGame",{gameData:A,multiviewPosition:T}),E({...A,gameSource:I,clickedIndex:C,specialType:P})},[]),S=p.useCallback(({...I})=>{u.current&&e?(u.current=!1,Av(Yn.SessionLimits).then(C=>{C?bi(Yn.LossLimits):y(I)}).catch(()=>bi(Yn.LossLimits))):y(I)},[e]),w=p.useCallback((I,C)=>m.push({pathname:Is(Ni,{gameExternalId:I,type:C}),search:ut({...ze()})}),[m]),x=p.useCallback(({game:I,categoryId:C})=>{if(C&&(window.location.pathname.includes(`/casino/generic/${C}/`)||window.location.pathname.includes(`/lottery/generic/${C}/`))){const T=N.casino.genericPage.enableExtraCategoriesFilter&&M4.includes(C),P=N.casino.genericPage.isWithLotteryPath,[,,,,,,A]=window.location.pathname.split("/");m.push({pathname:Is(P?fm:wu,{gameExternalId:I.id,...(!T||!A)&&{extraCategory:as}}),search:ut({...ze(),searchTerm:void 0})})}else if(C===nb&&h.tvGamesAvailable){const T=window.location.pathname.includes("/tv-games/home"),P=ze();if(T){const[,,,,A,O]=window.location.pathname.split("/");m.push({pathname:Is(Qc,{gameExternalId:I.id,...A?null:{extraCategory:as},...O?null:{categoryName:pr}}),search:ut({...ze(),searchTerm:void 0})})}else m.push({pathname:Is(Qc,{categoryName:pr,extraCategory:as,gameExternalId:I.id}),search:ut({...P,provider:void 0,searchTerm:void 0})})}else if(C===tb&&h.skillGamesAvailable){const T=window.location.pathname.includes("/games/home"),P=ze();if(T){const[,,,,A,O]=window.location.pathname.split("/");m.push({pathname:Is(Ni,{gameExternalId:I.id,...A?null:{extraCategory:as},...O?null:{categoryName:pr}}),search:ut({...ze(),searchTerm:void 0})})}else m.push({pathname:Is(Ni,{gameExternalId:I.id,categoryName:Ei,extraCategory:as}),search:ut({...P,provider:void 0,searchTerm:void 0})})}else if(C===Pm&&h.liveCasinoAvailable){const T=window.location.pathname.includes("/live-casino/home"),P=ze();if(T){const[,,,,A,O]=window.location.pathname.split("/");m.push({pathname:Is(Ao,{gameExternalId:I.id,...A?null:{extraCategory:as},...O?null:{categoryName:pr}}),search:ut({...ze(),searchTerm:void 0})})}else m.push({pathname:Is(Ao,{gameExternalId:I.id,categoryName:pr,extraCategory:as}),search:ut({...P,provider:void 0,searchTerm:void 0})})}else if(C===xm&&h.virtualSportsAvailable){const T=window.location.pathname.includes("/virtual-sports/home"),P=ze();if(T){const[,,,,A,O]=window.location.pathname.split("/");m.push({pathname:Is(Io,{gameExternalId:I.id,...A?null:{extraCategory:as},...O?null:{categoryName:pr}}),search:ut({...ze(),searchTerm:void 0})})}else m.push({pathname:Is(Io,{gameExternalId:I.id,categoryName:pr,extraCategory:as}),search:ut({...P,provider:void 0,searchTerm:void 0})})}else{const T=window.location.pathname.includes("/casino/slots"),P=ze();if(T){const[,,,,A,O]=window.location.pathname.split("/");m.push({pathname:Is(mo,{gameExternalId:I.id,gameName:Ar(I.alias),...A?null:{categoryId:as},...O?null:{categoryName:pr}}),search:ut({...P,searchTerm:void 0})})}else m.push({pathname:Is(mo,{gameExternalId:I.id,categoryId:as,categoryName:pr,gameName:Ar(I.alias)}),search:ut({...P,searchTerm:void 0,provider:void 0})})}},[h.liveCasinoAvailable,h.skillGamesAvailable,h.tvGamesAvailable,h.virtualSportsAvailable,m]);return{openGameWindow:S,getGameUrl:_,openGameDetails:x,openSkillGameDetails:w}},xee=()=>{const{isLoggedIn:e,profile:t}=ye(),n=p.useRef({isLoggedIn:e,profile:t}),s=p.useRef([]),r=p.useCallback(a=>{const{profile:o,isLoggedIn:i}=n.current;i?a(o):s.current.push(a)},[]);return p.useEffect(function(){n.current={isLoggedIn:e,profile:t},e&&(s.current.forEach(o=>o(t)),s.current=[])},[e,t]),{getProfileData:r,userDataRef:n}},Oee=Ne(()=>B(()=>import("./CasinoFullGameTemplate-YA6f4BkX.js"),__vite__mapDeps([661,252,288,1,289,290,291,250,251,236,253,254,255,256,257,229,258,259,260,292,293,436,437,400,235,662]))),kee=e=>e!==null,Nee=p.memo(function(){var v,_,y;const t=xt(),n=p.useRef([]),{language:s}=ke(),{isLoggedIn:r,loginInProgress:a}=ye(),{userDataRef:o}=xee(),i=dn(),c=Ga().has(vr),{getGameUrl:u}=Pee(),f=!((_=(v=N.app)==null?void 0:v.ukLicense)!=null&&_.enabled||(y=N.casino)!=null&&y.disableMultiView),[{gamesData:m,initialized:h},g]=p.useState({gamesData:[],initialized:!1}),E=p.useRef(!1),b=(S,w=!1)=>{g(({initialized:x,gamesData:I})=>{const C=w?I.filter((T,P)=>P!==S):I.map((T,P)=>P===S?null:T);return{gamesData:C.length&&C.some(T=>T!==null)?C:[],initialized:x}})};return p.useEffect(()=>{h&&(E.current=!0)},[h,s]),p.useEffect(function(){var w;if(!(a||h)||E.current){E.current=!1;const x=new URLSearchParams(window.location.search);if(x.has(vr)){const I=((w=x.get(vr))==null?void 0:w.split(",").filter((T,P)=>f||P===0).map(T=>{const[P,A,O]=T.split(Tc);if(!P||!A)return null;const M=Number(O);return{gameId:P,type:A,...Number.isFinite(M)&&{borrowBetId:M}}}))??[],C=I.filter(T=>T!==null).map(({gameId:T})=>T);C.length?Gb.loadGamesByIds({language:s,gameIds:C},!0).then(T=>I.map(P=>{if(P){const A=T.find(lt("id",Number(P.gameId)));if(A)return{game:P.borrowBetId?{...A,borrowBetId:P.borrowBetId}:A,type:P.type}}return null})).then(T=>Promise.all(T.map(async P=>{if(P){const{url:A}=await u({...P,language:s,isLoggedIn:o.current.isLoggedIn,frameId:Ji()});if(A)return{...P,url:A}}return null}))).then(T=>T.some(kee)?T:[]).then(T=>{t.current&&g({gamesData:T,initialized:!0})}).catch(()=>{t.current&&g({gamesData:[],initialized:!0})}):g({gamesData:[],initialized:!0})}else g({gamesData:[],initialized:!0})}},[u,h,t,s,a,f,o]),p.useEffect(function(){if(h){const w=({gameData:I,multiviewPosition:C=0})=>{if(I){const{game:T,type:P,language:A,frameId:O=Ji()}=I;u({game:T,language:A,type:P,isLoggedIn:o.current.isLoggedIn,frameId:O}).then(({url:M})=>{var k;t.current&&M&&((k=N.casino.gamesToPopupWindowInsteadIframe)!=null&&k[T.id]?ZH({game:T,url:M},!0):g(({gamesData:D,initialized:j})=>{const V=[...D],R=V.findIndex(U=>U&&U.frameId===O);return R!==-1?V[R]={game:T,type:P,url:M,frameId:O}:V[C]={game:T,type:P,url:M,frameId:O},{gamesData:V,initialized:j}}))})}else g(T=>{if(T.gamesData.length===C){const P=[...T.gamesData];return P[C]=null,{gamesData:P,initialized:T.initialized}}return T})};n.current.forEach(w),n.current=[];const x=He.addEventListener("openGame",I=>w(I));return()=>{x()}}else return He.addEventListener("openGame",w=>n.current.push(w))},[u,h,t,o]),p.useLayoutEffect(function(){if(h){const w=m.filter(Boolean);i.push({search:ut({...ze(),[vr]:m.length?w.map(x=>{if(!x)return"";const I=String(x.game.id).concat(Tc).concat(x.type),{borrowBetId:C}=x.game;return C?I.concat(Tc).concat(String(C)):I}).join(","):void 0,[tl]:m.length?w.map(x=>x?x.game.name:"").join(","):void 0})})}},[m,i,h]),p.useEffect(function(){if(h&&c)return()=>{g({initialized:!0,gamesData:[]})}},[h,c]),p.useEffect(function(){const w=m.some(I=>(I==null?void 0:I.type)===xs.Real),x=m.some(I=>vE(I==null?void 0:I.game.provider.name));!r&&!a&&(w||x)&&(m.every(C=>((C==null?void 0:C.game.forFun)||(C==null?void 0:C.game.viewMode))&&!vE(C==null?void 0:C.game.provider.name))?m.forEach((C,T)=>{C&&C.type===xs.Real&&He.dispatchEvent("openGame",{gameData:{game:C.game,type:xs.Fun,language:s},multiviewPosition:T})}):(zt(vr,tl),g({initialized:!0,gamesData:[]})))},[m,r,s,a]),m.length?d.jsx(p.Suspense,{fallback:null,children:d.jsx(Oee,{gamesData:m,closeGame:b,multiviewEnabled:f})}):null}),Ree=e=>e,Lee=e=>{const t=xt(),{language:n}=ke(),[s,r]=p.useState({loading:!0,data:null});return p.useEffect(function(){e?(r({loading:!0,data:null}),Jn.getHelpPageContent(e,n).then(o=>{t.current&&r({loading:!1,data:Ree(o)})}).catch(()=>{t.current&&r({loading:!1,data:null})})):r({loading:!1,data:null})},[e,t,n]),s},Mee=Ne(()=>B(()=>import("./HelpContent-CEhtIkEb.js"),__vite__mapDeps([333,1,334]))),Dee=()=>{const t=Ga().get(Lv)??"",n=Lee(t),s=dn();return t?d.jsx($u,{onClose:()=>s.push({search:ut({...ze(),[Lv]:void 0})}),fullScreen:!1,className:"content-manager footerInfoPopup",children:d.jsx(p.Suspense,{children:d.jsx(Mee,{...N.app.downloadPrintButtons&&{downloadable:!0},...n})})}):null},jee=new Xr,Bee=()=>{const e=p.useRef(null),[t,n]=p.useState([]),{data:s,loading:r}=Jf("/header.json?v=08/06/2026-18:01"),{data:a,loading:o}=Jf("/pageBuilder/pageBuilderHeaderInfo.json?v=08/06/2026-18:01");p.useEffect(()=>{a&&(a!=null&&a.layout)&&a.layout.length?n(a.layout):s&&n(s)},[s,a]),jee.addEventListener("pageBuilderOpenPreview",l=>{l&&n(l==null?void 0:l.layout)});const i=(!r||!o)&&t!==null&&t.length>0;return p.useLayoutEffect(function(){if(i&&e.current){const c=new ResizeObserver(([{target:u}])=>{const{height:f}=u.getBoundingClientRect();document.documentElement.style.setProperty("--dynamic-header",`${f}px`),Q.headerBlockHeightPx=lR(f)});return c.observe(e.current),()=>{c.disconnect()}}},[i]),i?d.jsx("div",{className:"hdr-dynamic-content",ref:e,children:d.jsx(RN,{layout:t,isHeader:!0})}):null};var kn=(e=>(e.Top="top",e.Left="left",e.Right="right",e.Bottom="bottom",e))(kn||{}),Fee=(e=>(e.Hover="hover",e.Click="click",e))(Fee||{});const Jfe={0:{type:"error",title:"Error"},1:{type:"warning",title:"Warning"},2:{type:"info",title:"Info"}},Uee=()=>{const e=window,t=document,n=t.documentElement,s=t.body,r=e.innerWidth||n.clientWidth||s.clientWidth,a=e.innerHeight||n.clientHeight||s.clientHeight;return{screenWidth:r,screenHeight:a}},t1={show:!1,position:{},className:"",triangleOffset:{}},$ee=()=>{var y;const e=p.useRef(null),t=p.useRef(null),{languageRtl:n}=ke(),s=Se(),[{show:r,position:a,className:o,triangleOffset:i},l]=p.useState(t1),[c,u]=p.useState(null),[{customClassName:f="",preferablePosition:m=kn.Right,childrenId:h,onClose:g,disableCapturing:E},b]=p.useState({}),v=p.useCallback(()=>{g==null||g(),u(null),l(t1),t.current=null},[g]);Ru({callback:v,container:e,...((y=t.current)==null?void 0:y.id)&&{ignoredElementsIds:[t.current.id,...h?[h]:[]]}}),p.useEffect(()=>{const S=ls.addEventListener("openTooltip",({content:x,ref:I,tooltipParams:C})=>{var T;if(!x||I.id===((T=t.current)==null?void 0:T.id)){v();return}I.id||(I.id=Ji()),t.current=I,u(x),C&&b(C)}),w=ls.addEventListener("closeTooltip",v);return()=>{S(),w()}},[v]);const _=p.useCallback(()=>{if(!c||!t.current||!e.current)return;const S=t.current.getBoundingClientRect(),w=e.current.getBoundingClientRect(),{screenWidth:x,screenHeight:I}=Uee(),C=8,T=8,P=n;let A="",O={},M={};const k=(j,V)=>{const R=[j,...V];for(const U of R){let G=0,z=0,K=0,ne=0,J=!0;switch(U){case kn.Top:G=S.top-w.height-T,z=S.left+S.width/2-w.width/2,K=S.left+S.width/2,J=G>=C;break;case kn.Bottom:G=S.bottom+T,z=S.left+S.width/2-w.width/2,K=S.left+S.width/2,J=G+w.height<=I-C;break;case kn.Left:z=P?S.right+T:S.left-w.width-T,G=S.top+S.height/2-w.height/2,K=S.top+S.height/2,J=P?z+w.width<=x-C:z>=C;break;case kn.Right:z=P?S.left-w.width-T:S.right+T,G=S.top+S.height/2-w.height/2,K=S.top+S.height/2,J=P?z>=C:z+w.width<=x-C;break}if(J){if(U===kn.Top||U===kn.Bottom){z=Math.max(C,Math.min(z,x-w.width-C));const $=z+w.width/2;ne=K-$;const L=w.width/2-6;ne=Math.max(-L,Math.min(ne,L)),M={left:`${w.width/2+ne-5}px`}}else{G=Math.max(C,Math.min(G,I-w.height-C));const $=G+w.height/2;ne=K-$;const L=w.height/2-6;ne=Math.max(-L,Math.min(ne,L)),M={top:`${w.height/2+ne-5}px`}}return O={top:`${G}px`,left:`${z}px`},P?A=U===kn.Left?kn.Right:U===kn.Right?kn.Left:U:A=U,!0}}return!1},D=Object.values(kn).filter(j=>j!==m);k(m||kn.Top,D)||(O={top:`${I/2-w.height/2}px`,left:`${x/2-w.width/2}px`},A=kn.Top),l({show:!0,position:O,className:A,triangleOffset:M})},[c,n,m]);return p.useEffect(function(){if(r){window.addEventListener("scroll",v,!E);const w=new ResizeObserver(()=>_());return w.observe(document.documentElement),e.current&&w.observe(e.current),()=>{w.disconnect(),window.removeEventListener("scroll",v,!0)}}},[v,r,_,E]),p.useLayoutEffect(()=>{_()},[_]),c?d.jsx("div",{style:{...a,visibility:r?"visible":"hidden"},ref:e,className:`tooltip ${f||""} ${o}`,children:d.jsxs("div",{className:"tooltipHolder",children:[d.jsx("span",{className:"tooltipTriangle",style:i}),d.jsx("div",{className:"tooltipText",children:typeof c=="string"?s(c):c})]})}):null},Gee=Ne(()=>B(()=>import("./StreamPlayerDraggableContainer-DRNZojDT.js"),__vite__mapDeps([663,161,1,162]))),Vee=()=>{const{streaming:{mode:e,exclusiveMode:t}}=zb(),n=p.useMemo(()=>{var r;return(r=N.sportsbook.liveStreaming.additionalOptions.availableModes)==null?void 0:r.includes(Hr.Draggable)},[]),s=p.useMemo(()=>Object.keys(t).length>0||Object.values(e).some(r=>r===Hr.Draggable||r===Hr.DraggableCollapsed),[e,t]);return!n&&!s?null:d.jsx(p.Suspense,{fallback:null,children:d.jsx(Gee,{})})},Hee=(e,t=[])=>{const n=p.useRef(null);return p.useEffect(()=>{const s=r=>{const a=r.target;n.current&&!n.current.contains(a)&&!t.some(o=>o.contains(a))&&e()};return document.addEventListener("mousedown",s),()=>{document.removeEventListener("mousedown",s)}},[e,t]),n},Wee=({close:e,onConfirm:t,confirmDisabled:n=!1})=>{const s=Se(),r=Hee(()=>e()),a=()=>{n||(t==null||t(),e())};return d.jsxs("div",{className:"selfExclusionConfirmModal",ref:r,children:[d.jsx("p",{className:"selfExclusionConfirmModal__body",children:s("self_exclusion_confirm_body")}),d.jsxs("div",{className:"selfExclusionConfirmModal__actions",children:[d.jsx(Zt,{size:Q.isMobile?"sm":"md",radius:"full",variant:"transparent",title:s("I confirm"),onClick:a,disabled:n,type:"button"}),d.jsx(Zt,{size:Q.isMobile?"sm":"md",radius:"full",variant:"transparent",title:s("I don't confirm"),onClick:e,type:"button"})]})]})},zee="/assets/selfExclusionToastWarning.png",Yee="/assets/selfExclusionWarning.png",$R=5,qee=()=>{const e=new Date;return e.setFullYear(e.getFullYear()+$R),Math.floor(e.getTime()/1e3)},Kee=["self_exclusion_warning_1","self_exclusion_warning_2","self_exclusion_warning_3","self_exclusion_warning_4"],Qee=()=>{var f;const e=Ua(),t=Se(),{isLocked:n,expiresAt:s}=jm(),{profile:r,isLoggedIn:a}=ye(),o=typeof r.exclude_date=="number"?r.exclude_date:null,i=o!==null&&o>Math.floor(Date.now()/1e3),l=p.useRef(null),c=p.useCallback(()=>{ee.get({exc_type:Ky.BETTING_BLOCKED,years:$R,reason_text:"Self Exclusion for 5 years by law"},"set_client_self_exclusion").then(({result:m,result_text:h})=>{m===0||m==="OK"?e().then(()=>_E(qee())):Ce.error(t(h||Qn))}).catch(()=>{Ce.error(t(Qn))})},[t,e]),u=p.useCallback(()=>{if(n){_E(s);return}l.current!==null&&Ce.dismiss(l.current),l.current=Ce.warning(d.jsxs("div",{className:"selfExclusionWarningToastWrapper",children:[d.jsx("img",{alt:"selfExclusionWarningToastImg",src:zee,className:"selfExclusionWarningToastImage"}),d.jsx("ul",{className:"selfExclusionWarningToast",children:Kee.map(m=>d.jsx("li",{children:t(m)},m))})]}),{position:"bottom-center",autoClose:!1,closeOnClick:!1,icon:!1,closeButton:!1,className:"selfExclusionWarningToast__container"}),ve.open(m=>({Component:()=>d.jsx(Wee,{close:m,onConfirm:c,confirmDisabled:i}),className:"selfExclusionConfirmPopup",hideCloseButton:!1,isDesignSystemPopup:!0,designSystemCustomHeader:d.jsxs("div",{className:"selfExclusionConfirmModal__header",children:[d.jsx("img",{alt:"self exclusion warning",src:Yee,className:"selfExclusionConfirmModal__header__img"}),d.jsx(er,{variant:"large-medium",className:"selfExclusionConfirmModal__header__title",children:t("Self-exclusion")})]}),onClose:()=>{l.current!==null&&(Ce.dismiss(l.current),l.current=null)}}))},[t,c,i,n,s]);return!a||!((f=N.app.header.selfExclusionPanelSettings)!=null&&f.enabled)?null:d.jsx("div",{className:"selfExclusionBar",children:d.jsxs("div",{className:"selfExclusionBarLeft",children:[d.jsx(er,{onClick:u,variant:"medium-regular",className:"selfExclusionBarLabel",children:t("Self-exclusion")}),d.jsx(er,{onClick:()=>{var m;return window.open((m=N.app.header.selfExclusionPanelSettings)==null?void 0:m.responsibleGamingUrl,"_self")},variant:"medium-regular",className:"selfExclusionBarLabel",children:t("Responsible Gaming")})]})})},Xee=Ne(()=>B(()=>import("./NewYearSnowfall-DZjuIglX.js"),__vite__mapDeps([664,1]))),Jee=Ne(()=>B(()=>import("./CommonChat-0Yji1Yb_.js"),__vite__mapDeps([665,427,1,630,409,410,153,411,666]))),Zee=Ne(()=>B(()=>import("./SystemBetCalculatorContainer-DyxYTgTN.js"),__vite__mapDeps([667,1]))),ete=Ne(()=>B(()=>import("./LeftMenuNavigation-D6-iVA4L.js"),__vite__mapDeps([668,347,153,235,236,1,348,349,279]))),tte=Ne(()=>B(()=>import("./LeftMenuNavigationSocial-CkjGS-rf.js"),__vite__mapDeps([669,668,347,153,235,236,1,348,349,279,256,257,670]))),nte=Ne(()=>B(()=>import("./StatisticsOnHoverContainer-FmnAsGCh.js").then(e=>e.S),[])),ste=Ne(()=>B(()=>import("./IdentifyContainer-LJNSDTYM.js"),__vite__mapDeps([671,1,672,673,181,182,201,172,202]))),rte=Ne(()=>B(()=>import("./CookieAcceptanceMessage-CbY3mxP0.js"),__vite__mapDeps([674,1,675]))),ate={autoClose:2e3,draggable:!1,transition:aV,position:"bottom-center",theme:"colored"},ote=()=>Ae.getInstance().dispatchEvent("closeBetslip"),ite=({navLinks:e,openRegistrationForm:t,openLoginForm:n,footerContent:s})=>{var E,b,v,_;const r=Se(),{languageRtl:a,currentPath:o}=ke(),{footerVisibleDefaultValue:i=!1}=N.app.footer,{metadata:{betslipViewState:l}}=Hb(),{sessionChangeKey:c,profile:{waitingVerification:u}}=ye(),[f,m]=p.useState(i),h=p.useCallback(y=>{l===At.Full&&Ce.success(r(y??px))},[l,r]),g=p.useCallback(()=>{l===At.Full&&Ce.warn(r(mx))},[l,r]);return p.useEffect(()=>He.addEventListener("hideCompactFooter",()=>m(i)),[i]),d.jsxs(d.Fragment,{children:[N.sportsbook.enableSystemBetCalculator?d.jsx(p.Suspense,{fallback:null,children:d.jsx(Zee,{})}):null,d.jsx(Vee,{}),d.jsx(n$,{}),d.jsx(iV,{...ate,rtl:a}),N.app.header.navigation.web.leftMenu?d.jsx(p.Suspense,{fallback:null,children:(E=N.app.header.vivaroMeManagement)!=null&&E.enabled&&((b=N.app.header.vivaroMeManagement)!=null&&b.isInternal)?d.jsx(tte,{items:e}):d.jsx(ete,{items:e})}):null,d.jsx("div",{className:"layout-header-holder-bc",children:d.jsxs(bn,{errorType:LB,showErrorPage:!1,showLoader:!1,children:[d.jsx(Qee,{}),d.jsx(Bee,{}),d.jsx(OJ,{navLinks:e,onLogin:n,onRegister:t})]})}),o===Or&&N.app.enableSnowEffect&&d.jsx(bn,{errorType:DB,showErrorPage:!1,showLoader:!1,children:d.jsx(p.Suspense,{fallback:null,children:d.jsx(Xee,{})})}),d.jsxs("div",{className:"layout-content-holder-bc",children:[(N.casino.enabled||o===Io&&((v=N.enabledProducts)==null?void 0:v.virtual_sports))&&d.jsx(bn,{errorType:UB,showLoader:!0,fullLoader:!0,children:d.jsx(Nee,{},c)}),d.jsx(bn,{errorType:NB,showLoader:!0,fullLoader:!0,children:d.jsx(jQ,{})})]}),!N.partner.integrationMode&&d.jsxs("div",{className:`layout-footer-holder-bc ${f?"active":""}`,children:[d.jsx("i",{className:"open-footer-icon bc-i-arrow-drop-down-up",onClick:()=>m(!f)}),d.jsx(bn,{errorType:OB,showLoader:!1,showErrorPage:!1,children:d.jsx(JJ,{seoContent:s})})]}),d.jsx("div",{className:"layout-betslip-holder-bc",children:d.jsx(bn,{errorType:kB,showLoader:!0,fullLoader:!0,children:d.jsx(DZ,{onDoBetSuccess:h,onDoBetUnderReview:g},c)})}),d.jsxs(bn,{errorType:FB,showErrorPage:!1,showLoader:!1,children:[d.jsx(fZ,{}),d.jsx(p.Suspense,{fallback:null,children:d.jsx(nte,{})}),d.jsx(dZ,{}),((_=N.app.header.commonChat)==null?void 0:_.enabled)&&d.jsx(p.Suspense,{fallback:null,children:d.jsx(Jee,{})}),d.jsx($ee,{})]}),d.jsx(bn,{errorType:BB,showLoader:!1,showErrorPage:!1,children:d.jsx(Dee,{})}),d.jsx(bn,{errorType:RB,showLoader:!1,showErrorPage:!1,children:d.jsx(FZ,{},c)}),d.jsx(bn,{errorType:MB,showErrorPage:!1,showLoader:!1,children:d.jsx(nee,{})}),d.jsx(bn,{errorType:jB,showErrorPage:!1,showLoader:!1,children:d.jsx(See,{})}),l===At.Full&&d.jsx(jZ,{children:d.jsx($t,{onClick:ote,className:"e-p-close-icon-bc bc-i-close-remove"})}),N.app.showCookiesNotification&&d.jsx(bn,{errorType:$B,showErrorPage:!1,showLoader:!1,children:d.jsx(p.Suspense,{fallback:null,children:d.jsx(rte,{})})}),u&&d.jsx(bn,{errorType:GB,showErrorPage:!1,showLoader:!1,children:d.jsx(p.Suspense,{fallback:null,children:d.jsx(ste,{})})})]})},lte=p.memo(ite),cte=({imageUrl:e})=>(p.useLayoutEffect(()=>{if(e){const t=e.replace(lp,N.cms.iconUrl);Qy(document.documentElement,{"--bg-image":`url(${t})`})}},[e]),Wt(e?"pb-background-image":""),null),ute=p.lazy(()=>B(()=>import("./VipUserTemplate-DMEppCgI.js"),__vite__mapDeps([676,1,677]))),dte=p.lazy(()=>B(()=>import("./Firebase-DzbhWJ6d.js"),__vite__mapDeps([678,1]))),fte=p.lazy(()=>B(()=>import("./OneSignal-Bsl3gbOa.js"),__vite__mapDeps([679,1]))),pte=()=>{var b,v,_,y;const e=p.useRef(null),{links:t}=gl(),n=dn(),s=Ga(),r=Number(s.get(zh)),a=kQ(),{isLoggedIn:o,loginInProgress:i,profile:{isVipUser:l}}=ye(),{vipModeEnabled:c,backgroundImageUrl:u}=ke(),{completeLogin:f}=NQ();Wt(N.partner.integrationMode?t.header.length?"integration-mode":"integration-header-absence":""),Wt(N.partner.integrationMode&&N.partner.topNavbarForSportsbookIntegrations?"integration-mobile-specific":""),Wt((b=N.app.header.vivaroMeManagement)!=null&&b.enableSocialMode?"social-mode":""),Qq(),xQ(),Vq(),pk(),IQ();const m=p.useCallback(()=>{et.dispatchEvent("addComponentPopup",{component:"AuthPopup",props:{popupContentType:st.Registration}})},[]),h=p.useCallback(()=>{et.dispatchEvent("addComponentPopup",{component:"AuthPopup",props:{popupContentType:st.Login}})},[]),g=p.useCallback(S=>{S.target===e.current&&et.dispatchEvent("hideAll")},[]);p.useLayoutEffect(()=>He.addEventListener("openUserInfoPanel",()=>{n.push({search:ut({...ze(),[nl]:sl})})}),[n]),p.useLayoutEffect(()=>{N.partner.integrationMode&&He.addEventListener("triggerPostMessageToParent",S=>{nr.notify({type:"custom_message",value:S})})},[]),p.useLayoutEffect(()=>He.addEventListener("closeUserInfoPanel",S=>{const w=ze(),x=()=>{const I={account:void 0,page:void 0,selectedMethod:void 0,paymentType:void 0,selectedGroup:void 0,bonusId:void 0,partnerBonusId:void 0,shopId:void 0,journey:void 0,selectedRewardPage:void 0};n.push({search:ut({...ze(),...I,[nl]:S?sl:void 0})})};N.payment.confirmationPopupOnDepositCloseEnabled&&w.page==="deposit"?ve.open(I=>({type:"info",className:"deposit-close-popup",title:W2,content:z2,buttons:[{label:"Continue",callBack:I},{label:"Yes, I want to cancel",callBack:()=>{I(),x()}}]})):x()}),[n]),p.useEffect(function(){const x=ze()[ec],I=Te.getItem(Iv);if(x&&I&&!o&&!i){const C=`${window.location.origin}/`;zt(),Te.removeItem(Iv),f(Number(I),decodeURIComponent(x),C)}},[i,o]),p.useEffect(function(){o&&(zt(ec),n.push({search:ut({...ze(),[zh]:void 0})})),!i&&!o&&r in st&&(et.dispatchEvent("addComponentPopup",{component:"AuthPopup",props:{popupContentType:r,...r===st.ResetPassword&&{additionalData:{code:ze()[ec]}}}}),zt(ec),n.push({search:ut({...ze(),[zh]:void 0})}))},[n,r,i,o]);const E=p.useMemo(()=>{const{auth:S}=ze();return S&&!o&&!i},[o,i]);return Wt(E?"external-actions":""),Wt(l&&c?"user-vip-mode":""),d.jsxs(d.Fragment,{children:[l&&c&&((v=N.app.vipUserSettings)==null?void 0:v.vipUserCustomInterfaceEnabled)&&d.jsx(p.Suspense,{fallback:null,children:d.jsx(ute,{})}),d.jsx(Mq,{...a}),N.firebase&&d.jsx(p.Suspense,{fallback:null,children:d.jsx(dte,{config:N.firebase})}),((_=N.oneSignal)==null?void 0:_.appId)&&(N.oneSignal.platform??"mobile")===(Q.isMobile?"mobile":"web")&&d.jsx(p.Suspense,{fallback:null,children:d.jsx(fte,{config:N.oneSignal})}),u&&d.jsx(p.Suspense,{fallback:null,children:d.jsx(cte,{imageUrl:u})}),d.jsx(lte,{navLinks:Wy(t.header),openRegistrationForm:m,openLoginForm:h,hideContent:g,contentOverlayRef:e,footerContent:(y=a.currentSeo)==null?void 0:y.content})]})},mte=p.memo(pte),hte=({code:e,close:t,update:n})=>{const s=Se(),[r,a]=p.useState(!1),o=()=>{a(!0),ee.get({hash_code:e},"receive_gift_bet").then(({result:i,result_text:l})=>n({Component:void 0,...i===0?{type:"success",title:"Success",content:o2}:{type:"error",title:"Error",content:typeof l=="string"?l:i2}})).catch(()=>n({Component:void 0,type:"error",title:Qn}))};return d.jsxs(d.Fragment,{children:[d.jsx("p",{className:"casino-popup-content",children:s(l2)}),d.jsxs("div",{className:"casino-popup-button-block",children:[d.jsx($t,{className:"btn",disabled:r,onClick:o,title:"Yes"}),d.jsx($t,{className:"btn a-outline",disabled:r,onClick:t,title:"No"})]})]})},n1=e=>ve.open((t,n)=>({type:"info",title:"Confirmation",Component:()=>d.jsx(hte,{code:e,close:t,update:n})})),gte=e=>{ee.get({verification_code:e},"verify_user").then(({result:t,result_text:n})=>{t===0?ve.open({title:"Confirmation",type:"success",content:"Your E-mail Has been confirmed"}):ve.open({title:"Error",type:"error",content:n||"Verification process failed. Please try again."})})};var _te=(e=>(e[e.Canceled=-1]="Canceled",e[e.New=0]="New",e[e.Paid=1]="Paid",e))(_te||{}),GR=(e=>(e[e.Enabled=1]="Enabled",e))(GR||{});const vte="https://luckywheel.{domain}/?partnerId={site_id}&SourceId={source_id}&token={auth_token}&langId={locale}&viewType={view_type}",Ete="10",yte="2",bte=["closeLuckyWheel"],Ste=({close:e})=>{const{locale:t}=ke(),n=Se(),s=p.useMemo(()=>vte.replace(Hy,(r,a)=>({domain:Fo(),site_id:String(N.app.site_id),source_id:Ete,auth_token:vt.getAuthToken()??"",locale:t,view_type:yte})[a]),[t]);return p.useEffect(function(){const a=rx(s,["protocol","host"]).join("//"),o=({data:{action:i},origin:l})=>{l===a&&bte.includes(i)&&e()};return window.addEventListener("message",o),()=>window.removeEventListener("message",o)},[s,e]),d.jsx("div",{className:"luckyWheelPopupContent",children:d.jsx("iframe",{src:s,title:n("Lucky Wheel"),allowFullScreen:!0,allow:"autoplay"})})},s1=()=>{ve.open(e=>({fullScreen:!!Q.isMobile,className:"user-profile-container luckyWheelPopup",Component:()=>d.jsx(Ste,{close:e}),hideCloseButton:!0}))},Cte=e=>{zt(e)},r1={deposit:"deposit",withdraw:"withdraw",cashier:"transfer",myWallets:"wallets",balanceHistory:"history"},Tte={0:"casino-free-spins",1:"sport",2:"casino",3:"bonus-request",4:"bonus-history",5:"refer-to-friend",6:"bonus-request",7:"french-freebet-bonus-history"},a1=2592e3,wte=108,Ite={details:"details",changepassword:"change-password",socialdetails:"social-details",realitycheck:"reality-checks",depositlimits:"deposit-limits",betlimits:"bet-limits",profileBalanceLimit:"profile-balance-limit",currentSessionInfo:"current-session-info",sessionDurationLimit:"session_duration_limit",sessionHistory:"session-history",occupation:"occupation",usertimeout:"timeout-limits",selfexclusion:"self-exclusion",verifyaccount:"verify-account",twoFactorAuthentication:"two-factor-authentication",userReports:"two-factor-authentication",lossAndTimeLimits:"loss-and-session-limits",verificationFlow:"verification-flow"},o1={login:st.Login,register:st.Registration,forgot_password:st.ForgetPassword},Ate={0:"open-bets",5:"cashed-out",3:"won",1:"lost",2:"returned","-1":"gifts","-2":"gifted",11:"won-return",12:"lost-return"},i1=(e,{token:t,language:n,currency:s})=>decodeURIComponent(e).replace("{token}",t).replace("{language}",In[n]).replace("{currency}",s),l1=e=>{e?s1():et.dispatchEvent("addComponentPopup",{component:"AuthPopup",props:{popupContentType:st.Login,onSuccess:()=>s1()}})},Pte=()=>{const{loginInProgress:e,isLoggedIn:t,profile:n,isRestoredLogin:s,sessionChangeKey:r,confirmationTypes:a}=ye(),o=Ua(),i=dn(),l=qm(),{navigation:{navigationMenuSearch:c,mobile:{genericMenu:u}},enableSearchPanel:f}=N.app.header,{setLanguage:m,language:h}=PR(),{restoreLogin:g,changeSession:E,setRedirectUrlOnSessionChangeFailure:b,verifyWrongLoginAttemptsReset:v}=p.useContext(El),{_currency:_}=vi(n.owner_id),y=p.useRef({loginInProgress:e,isLoggedIn:t,profile:n,language:h,isRestoredLogin:s,sessionChangeKey:r,confirmationTypes:a}),S=p.useRef([]),w=P=>S.current.push(P),x=p.useCallback(P=>{_b(Number(P)).then(A=>{i.push({pathname:A,search:ut({...ze(),[P]:void 0})})}).catch(()=>rt.error(`failed to redirect to game with ID ${P}`)).finally(()=>zt(P))},[i]),I=p.useCallback((P,A)=>{const{action:O,data:M,tab:k,page:D,subMenu:j,params:V,currencyId:R}=P,{loginInProgress:U,isLoggedIn:G,profile:z,language:K}=y.current,ne=[FC,"redirectUrl"];switch(O){case"appReady":break;case"restore_login":U?w(()=>I(P,A)):G||g(M);break;case"subscriptions":{const{userId:J,hash:$}=M;J&&$?i.push({pathname:"/subscriptions",search:ut({userId:J,hash:$})}):ne.push(J,$);break}case"logout":G&&o({ignorePopUp:!1}).then();break;case"showAlert":break;case"openGame":{const{gameId:J}=M;x(J);break}case"setPath":break;case"scrollTo":window.scrollTo(V||{top:0});break;case"setHeaderData":break;case"resize":break;case"openSlider":switch(k){case"login":case"register":et.dispatchEvent("addComponentPopup",{component:"AuthPopup",props:{popupContentType:o1[k]}});break;case"promotionalBonuses":i.push({search:bt({section:"bonuses",page:Tte[j||"1"]})});break;case"deposit":case"withdraw":case"cashier":case"myWallets":case"balanceHistory":i.push({search:bt({section:"balance",page:r1[k]})});break}break;case"verify":M.code&&(gte(M.code),ne.push(ec));break;case"reset_password":M.code&&(et.dispatchEvent("addComponentPopup",{component:"AuthPopup",props:{popupContentType:st.ResetPassword,additionalData:{code:M.code}}}),ne.push("code"));break;case"globalNotify":ve.open({className:"globalNotificationPopup",type:"info",title:"global_notify_title",content:"global_notify_content",buttons:[{label:"Ok"}],hideCloseButton:!0},mn.Blocker);break;case"login":case"register":case"forgot_password":U?w(()=>I(P,A)):G?M.redirectUrl&&(window.location.href=i1(M.redirectUrl,{token:vt.getAuthToken()||"",language:K,currency:z.currency})):(et.dispatchEvent("addComponentPopup",{component:"AuthPopup",props:{popupContentType:o1[O],...M.reference_code&&{additionalData:{reference_code:M.reference_code}},...M.redirectUrl&&{onSuccess:()=>{w(({language:J,profile:{currency:$}})=>{window.location.href=i1(M.redirectUrl,{token:vt.getAuthToken()||"",language:J,currency:$})})}}}}),ne.push("reference_code"));break;case"deposit":case"withdraw":case"cashier":case"myWallets":case"balanceHistory":i.push({search:bt({section:"balance",page:r1[O]})});break;case"settings":{const J=D||Ite[M.settingspage];i.push({search:bt({section:"profile",page:J})}),ne.push("mixedSettingsPage",J);break}case"recentBets":i.push({search:bt({section:"history",page:M.betStatus?Ate[M.betStatus]:"bets",...M.bet_id&&{[B4]:M.bet_id}})}),ne.push("betStatus","bet_id");break;case"casinoCashBackCashOut":i.push({search:bt({section:"cashback-cashout",page:"casino"})});break;case"loyaltyPoints":i.push({search:bt({section:"bonuses",page:"loyalty-points"})});break;case"openLiveChat":ne.push("openLiveChat"),YN.dispatchEvent("open"),Te.setItem(FU,!0);break;case"openCommonChat":ne.push("openCommonChat"),Te.setItem(UU,!0);break;case"genericSearch":Q.isMobile?u&&c&&He.dispatchEvent("openGenericMenu",{openSearch:!0}):f&&et.dispatchEvent("addComponentPanel",{component:tz,props:{}});break;case"setPreferences":for(const[J,$]of Object.entries(M))J==="language"?m($):l(J,$);break;case"switchCurrency":G&&z.id?z.currency!==R&&(z.owner_id&&_===R?E(Di.Parent,{ignorePopup:!0}):E(Di.Child,{currency_id:R,ignorePopup:!0})):(Te.setItem(Li,{currency:R,ignorePopup:!0}),et.dispatchEvent("addComponentPopup",{component:"AuthPopup",props:{popupContentType:st.Login}}));break;case"wrong_login_attempts_reset":{const{code:J}=M;ne.push("code"),J&&!G&&!U&&v(J);break}case"dataspotOpenSurvey":{const{dataspotSurveyId:J}=M;ne.push("dataspotSurveyId"),J&&window.__dataspot__&&window.__dataspot__.openSurvey&&window.__dataspot__.openSurvey({id:J});break}case"rewardsWithdrawal":i.push({search:ut({account:"rewards",page:"rewards",[U4]:GR.Enabled})});break;case"openCashoutVaultBoxes":ne.push("openCashoutVaultBoxes"),U?w(()=>hf()):G?hf():et.dispatchEvent("addComponentPopup",{component:"AuthPopup",props:{popupContentType:st.Login,onSuccess:()=>hf()}});break;case"openLuckyWheel":ne.push("openLuckyWheel"),U?w(({isLoggedIn:J})=>l1(J)):l1(G);break;default:rt.warning(`failed to handle message with action: ${O}`)}A&&zt(...ne)},[x,i,g,o,u,c,f,m,l,_,E,v]),C=p.useCallback((P,A)=>{const{isLoggedIn:O,loginInProgress:M}=y.current;M?w(()=>C(P,A)):A?O?n1(P):et.dispatchEvent("addComponentPopup",{component:"AuthPopup",props:{popupContentType:st.Login,onSuccess:()=>n1(P)}}):O||et.dispatchEvent("addComponentPopup",{component:"AuthPopup",props:{popupContentType:st.Registration,additionalData:{code:P}}})},[]),T=p.useCallback((P,A)=>{b(D=>D||`${Xc()}?${ut({...ze(),[_d]:void 0})}`);const{isLoggedIn:O,loginInProgress:M}=y.current,k=ze();Te.setItem(Li,{currency:P,ignorePopup:!0}),O?A():!M&&k[nl]!==sl&&et.dispatchEvent("addComponentPopup",{component:"AuthPopup",props:{popupContentType:st.Login}})},[b]);p.useEffect(function(){y.current.isLoggedIn=t,y.current.loginInProgress=e,y.current.profile=n,y.current.language=h},[t,h,e,n]),p.useEffect(function(){const A=O=>{if(O.data){if(O.data.action)if(O.data.action==="betFromPostMessage"){const{event:M,market:k,game:D}=O.data,j=O.origin!==window.location.origin;cb({events:M,games:D,markets:k,...j&&{tag:[wte]}}).then(V=>V.forEach(R=>Ae.getInstance().dispatchEvent("toggle",R)))}else I(O.data);else if(O.data.type)switch(O.data.type){case"login":case"register":case"deposit":case"withdraw":case"cashier":case"myWallets":case"balanceHistory":I({action:O.data.type,data:{}});break}}};if(Array.isArray(window[Mh])){for(const O of window[Mh])A(O);window[Mh]=null}return window.addEventListener("message",A),()=>window.removeEventListener("message",A)},[I]),p.useEffect(function(){const{action:A,...O}=ze();if(A)switch(A){case"promotionalBonuses":I({action:"openSlider",tab:"promotionalBonuses",subMenu:O.bonustab},!0),zt("bonustab");break;default:I({action:A,data:O},!0)}O[_d]&&T(O[_d].toUpperCase(),()=>zt(_d)),O.btag&&(Te.setItem(MU,O.btag,a1),Cte("btag")),O[Jh]&&(Te.setItem(DU,O[Jh],a1),zt(Jh)),O[UC]&&x(O[UC]),O.confirmationMessage&&(ve.open({type:"success",title:"Success",content:decodeURIComponent(O.confirmationMessage)}),zt(K4)),O.rejectionMessage&&(ve.open({type:"warning",title:"Warning",content:decodeURIComponent(O.rejectionMessage)}),zt(Q4)),O.giftcode&&O.userexist&&(C(O.giftcode,O.userexist==="1"),zt("giftcode","userexist"))},[I,C,T,i,x]),p.useEffect(function(){e||(S.current.forEach(A=>A(y.current)),S.current=[])},[e]),Wt(window.location.search.includes(FC)?"external-actions":"")},xte=({children:e})=>(Pte(),d.jsx(d.Fragment,{children:e})),Ote=p.lazy(()=>B(()=>import("./WagmiConf-tszf9zum.js").then(e=>e.W),__vite__mapDeps([680,681,186,184,682,1,508,683,188,187]))),kte=({children:e})=>{const{enabled:t}=N.app.walletConnect;return t?d.jsx(p.Suspense,{fallback:null,children:d.jsx(Ote,{children:e})}):d.jsx(d.Fragment,{children:e})};function Nte(){const e=navigator.userAgent;return/iPad|iPhone|iPod/.test(e)||/Macintosh/.test(e)&&navigator.maxTouchPoints>1?"ios":/Android/i.test(e)?"android":/Windows|Macintosh|Linux|CrOS/i.test(e)?"desktop":"unknown"}function c1(){return!navigator.mediaDevices||typeof navigator.mediaDevices.getDisplayMedia!="function"?!1:Nte()!=="ios"}function Zg(){if(!navigator.mediaDevices)throw window.isSecureContext?new Error("Camera and microphone access is not available in this browser context."):new Error("Streaming requires a secure connection (HTTPS or localhost).")}const qb="cross_domain_stream_resume",VR=60,HR=()=>{const e=window.location.hostname;if(e==="localhost"||e.endsWith(".localhost"))return"localhost";const t=e.split(".");return t.length<2?e:t.slice(-2).join(".")},Rte=()=>window.location.protocol==="https:";let EE=null;const zl=e=>{EE=e},WR=()=>EE?(Lte(EE),!0):!1;function Lte(e){const t={...e,savedAt:Date.now()},n=encodeURIComponent(JSON.stringify(t)),s=[`${qb}=${n}`,`Max-Age=${VR}`,`Domain=${HR()}`,"Path=/","SameSite=Lax",...Rte()?["Secure"]:[]];document.cookie=s.join("; ")}function Mte(){const e=document.cookie.match(new RegExp(`(?:^|; )${qb}=([^;]*)`));if(!e)return null;try{const t=JSON.parse(decodeURIComponent(e[1]));return Date.now()-t.savedAt>VR*1e3?(Nc(),null):t}catch{return Nc(),null}}function Nc(){document.cookie=`${qb}=; Max-Age=0; Domain=${HR()}; Path=/`}const Dte=e=>{try{return new URL(e,window.location.href).origin!==window.location.origin}catch{return!1}},jte=(e,t)=>{Dte(e)&&WR()},u1=typeof window<"u"&&window.navigation||null;u1&&u1.addEventListener("navigate",e=>{var t;jte(((t=e.destination)==null?void 0:t.url)??"")});const Bte=({open:e,onClose:t,type:n="contained",title:s,titleIconName:r,children:a,footer:o,className:i=""})=>{var y;const l=p.useRef(null),{keyboardOffset:c,viewportOffsetTop:u}=IN(),f=c>0?c-u:0,m=c>0?((y=window.visualViewport)==null?void 0:y.height)??window.innerHeight:void 0,{swipeableHandlers:h,triggerCloseAnimation:g,style:E}=Ym({onClose:t,scrollContainer:l,ignoreScrollPosition:!0});Ho(e,!0),p.useEffect(()=>{const S=l.current;if(!S)return;const w=x=>x.stopPropagation();return S.addEventListener("touchmove",w),()=>S.removeEventListener("touchmove",w)},[e]);const b=p.useCallback(S=>{S.stopPropagation(),S.target===S.currentTarget&&g()},[g]);if(!e)return null;const v=["ds-drawer-wrapper",i].filter(Boolean).join(" "),_=["ds-drawer",`ds-drawer--${n}`].join(" ");return d.jsx("div",{className:v,onClick:b,style:f>0?{bottom:f}:void 0,children:d.jsx(zm.div,{className:"ds-drawer-spring",role:"dialog","aria-modal":"true",style:E,children:d.jsxs("div",{className:_,style:m!==void 0?{maxHeight:m}:void 0,children:[d.jsxs("div",{className:"ds-drawer__header",...h,children:[d.jsx("div",{className:"ds-drawer__drag-handle",children:d.jsx("div",{className:"ds-drawer__drag-bar"})}),s&&d.jsx("div",{className:"ds-drawer__title-bar",children:d.jsxs("div",{className:"ds-drawer__title-content",children:[r&&d.jsx(an,{className:"ds-drawer__title-icon",name:r}),d.jsx(er,{variant:"large-semibold",className:"ds-drawer__title-text",children:s})]})})]}),d.jsx("div",{className:"ds-drawer__content",ref:l,"data-scroll-lock-scrollable":"",children:a}),o&&d.jsx("div",{className:"ds-drawer__footer",children:o})]})})})},zR=({open:e=!0,onClose:t,title:n,children:s,className:r="",drawerClassName:a,popupClassName:o,titleIconName:i,drawerType:l,footer:c,hideCloseButton:u,fullScreen:f,zIndex:m,portal:h=Q.isMobile===1})=>{if(!e)return null;let g;return Q.isMobile?g=d.jsxs(Bte,{open:e,onClose:t,title:n,titleIconName:i,type:l,footer:c,className:a??r,children:[d.jsx("i",{className:"e-p-close-icon-bc bc-i-close-remove",onClick:t}),s]}):g=d.jsx(NR,{onClose:t,header:n,hideCloseButton:u,fullScreen:f,zIndex:m,className:o??r,children:s}),h?Do.createPortal(g,document.body):g};var YR={exports:{}},qR={exports:{}},e_,d1;function Fte(){if(d1)return e_;d1=1;var e=function(){};return e_=e,e_}function KR(e){return e&&typeof e=="object"&&"default"in e?e.default:e}var Bt=p,Rp=KR(Bt),Ute=Do,f1=KR(tP);function oc(){return(oc=Object.assign||function(e){for(var t=1;t=0||(r[n]=e[n]);return r}function XR(e){return requestAnimationFrame(e)}function p1(e){cancelAnimationFrame(e)}function Ti(e){var t=e.ownerDocument;return t.hasFocus()&&t.activeElement===e}function JR(e){return e==null?void 0:e.ownerDocument}function Gte(e){var t=function(n){var s;return(s=JR(n))==null?void 0:s.defaultView}(e);return!!t&&e instanceof t.HTMLElement}function Kb(e){return Bt.useCallback(function(){var t=e.current,n=typeof window<"u"&&Gte(t);if(!t||!n)return null;if(t.nodeName!=="INPUT"&&(t=t.querySelector("input")),!t)throw new Error("react-input-mask: inputComponent doesn't contain input node");return t},[e])}function Vte(e,t){var n,s,r,a,o=Bt.useRef({start:null,end:null}),i=Kb(e),l=Bt.useCallback(function(){return function(E){var b=E.selectionStart,v=E.selectionEnd;return{start:b,end:v,length:v-b}}(i())},[i]),c=Bt.useCallback(function(){return o.current},[]),u=Bt.useCallback(function(E){var b=i();b&&Ti(b)&&(function(v,_,y){y===void 0&&(y=_),v.setSelectionRange(_,y)}(b,E.start,E.end),o.current=l())},[i,l]),f=Bt.useCallback(function(){o.current=l()},[l]),m=(n=f,s=Bt.useRef(null),r=Bt.useCallback(function(){s.current===null&&function E(){n(),s.current=XR(E)}()},[n]),a=Bt.useCallback(function(){p1(s.current),s.current=null},[]),Bt.useEffect(function(){s.current&&(a(),r())},[r,a]),Bt.useEffect(p1,[]),[r,a]),h=m[0],g=m[1];return Bt.useLayoutEffect(function(){if(t){var E=i();return E.addEventListener("focus",h),E.addEventListener("blur",g),Ti(E)&&h(),function(){E.removeEventListener("focus",h),E.removeEventListener("blur",g),g()}}}),{getSelection:l,getLastSelection:c,setSelection:u}}function Hte(e,t){var n=Bt.useRef(),s=Vte(n,t),r=s.getSelection,a=s.getLastSelection,o=s.setSelection,i=function(f,m){var h=Kb(f),g=Bt.useRef(m);return{getValue:Bt.useCallback(function(){return h().value},[h]),getLastValue:Bt.useCallback(function(){return g.current},[]),setValue:Bt.useCallback(function(E){g.current=E;var b=h();b&&(b.value=E)},[h])}}(n,e),l=i.getValue,c=i.getLastValue,u=i.setValue;return{inputRef:n,getInputState:function(){return{value:l(),selection:r()}},getLastInputState:function(){return{value:c(),selection:a()}},setInputState:function(f){var m=f.value,h=f.selection;u(m),o(h)}}}Fte();var Wte=["disabled","onBlur","onChange","onFocus","onMouseDown","readOnly","value"],m1={9:/[0-9]/,a:/[A-Za-z]/,"*":/[A-Za-z0-9]/},zte=function(e){var t=this;this.isCharacterAllowedAtPosition=function(n,s){var r=t.maskOptions.maskPlaceholder;return!!t.isCharacterFillingPosition(n,s)||!!r&&r[s]===n},this.isCharacterFillingPosition=function(n,s){var r=t.maskOptions.mask;if(!n||s>=r.length)return!1;if(!t.isPositionEditable(s))return r[s]===n;var a=r[s];return new RegExp(a).test(n)},this.isPositionEditable=function(n){var s=t.maskOptions,r=s.mask,a=s.permanents;return n=0;a--)if(r(s[a],a))return a;return-1}(n.split(""),function(s,r){return t.isPositionEditable(r)&&t.isCharacterFillingPosition(s,r)})+1},this.getStringFillingLengthAtPosition=function(n,s){return n.split("").reduce(function(r,a){return t.insertCharacterAtPosition(r,a,r.length)},function(r,a){a===void 0&&(a=1);for(var o="",i=0;i=0;s--)if(t.isPositionEditable(s))return s;return null},this.getRightEditablePosition=function(n){for(var s=t.maskOptions.mask,r=n;r=a&&!m?"":f=a?u:m?i?i[f]:"":l[f]}).join("");return t.formatValue(c)},this.insertCharacterAtPosition=function(n,s,r){var a=t.maskOptions,o=a.mask,i=a.maskPlaceholder;if(r>=o.length)return n;var l=t.isCharacterAllowedAtPosition(s,r),c=t.isPositionEditable(r),u=t.getRightEditablePosition(r),f=i&&u?s===i[u]:null,m=n.slice(0,r);return!l&&c||(n=m+(l?s:o[r])),l||c||f||(n=t.insertCharacterAtPosition(n,s,r+1)),n},this.insertStringAtPosition=function(n,s,r){var a=t.maskOptions,o=a.mask,i=a.maskPlaceholder;if(!s||r>=o.length)return n;var l=s.split(""),c=t.isValueFilled(n)||!!i,u=n.slice(r);return n=l.reduce(function(f,m){return t.insertCharacterAtPosition(f,m,f.length)},n.slice(0,r)),c?n+=u.slice(n.length-r):t.isValueFilled(n)?n+=o.slice(n.length).join(""):n=u.split("").filter(function(f,m){return t.isPositionEditable(r+m)}).reduce(function(f,m){var h=t.getRightEditablePosition(f.length);return h===null?f:(t.isPositionEditable(f.length)||(f+=o.slice(f.length,h).join("")),t.insertCharacterAtPosition(f,m,f.length))},n),n},this.processChange=function(n,s){var r=t.maskOptions,a=r.mask,o=r.prefix,i=r.lastEditablePosition,l=n.value,c=n.selection,u=s.value,f=s.selection,m=l,h="",g=0,E=0,b=Math.min(f.start,c.start);return c.end>f.start?(h=m.slice(f.start,c.end),E=(g=t.getStringFillingLengthAtPosition(h,b))?f.length:0):m.length=a.length?b=a.length:b=o.length&&b{const[i,l]=p.useState(""),c=p.useCallback(f=>{l(Xte),s==null||s(f)},[s]),u=p.useCallback(f=>{l(""),r==null||r(f)},[r]);return d.jsx(Qte,{mask:String(e),maskPlaceholder:i,className:t,onChange:n,onFocus:c,onBlur:u,value:String(a??""),name:o.name,type:o.type,inputMode:o.inputMode,disabled:o.disabled,readOnly:o.readOnly,placeholder:o.placeholder})},Qb=({type:e="text",label:t,placeholder:n,size:s="xl",layout:r="fill",state:a,helperText:o,counter:i,leftIconName:l,rightIconName:c,onRightIconClick:u,actionText:f,clearable:m=!0,onClear:h,className:g="",disabled:E,readOnly:b,value:v,defaultValue:_,onChange:y,mask:S,onFocus:w,onBlur:x,...I})=>{const C=p.useRef(null),[T,P]=p.useState(_??""),[A,O]=p.useState(!1),M=v!==void 0,k=M?v:T,D=E||a==="disabled",j=b||a==="readonly",V=a==="error",R=A&&!D&&!j,U=a==="activated"||!D&&!j&&!V&&!!k&&!R,G=!!k,z=R||G||a==="activated",K=m&&G&&!D&&!j,ne=K||f||c,J=o||i,$=ae=>{M||P(ae.target.value),y==null||y(ae)},L=()=>{var ae;M||P(""),h==null||h(),(ae=C.current)==null||ae.focus()},W=ae=>{O(!0),w==null||w(ae)},q=ae=>{O(!1),x==null||x(ae)},de=["ds-textfield",`ds-textfield-size--${s}`,`ds-textfield-layout--${r}`,R&&"ds-textfield--focused",V&&"ds-textfield--error",D&&"ds-textfield--disabled",j&&"ds-textfield--readonly",U&&"ds-textfield--activated",G&&"ds-textfield--has-value",g].filter(Boolean).join(" "),ue=["ds-textfield__text",z&&"ds-textfield__text--label-floating"].filter(Boolean).join(" "),Y=["ds-textfield__label",z&&"ds-textfield__label--floating"].filter(Boolean).join(" ");return d.jsxs("div",{className:de,children:[d.jsxs("div",{className:"ds-textfield__field",onClick:()=>{var ae;return!D&&!j&&((ae=C.current)==null?void 0:ae.focus())},children:[l&&d.jsx(an,{className:"ds-textfield__icon ds-textfield__icon--left",name:l}),d.jsxs("div",{className:ue,children:[t&&d.jsx("span",{className:Y,children:t}),S?d.jsx(Jte,{mask:S,className:"ds-textfield__input",placeholder:R&&!G?n??"":void 0,disabled:D,readOnly:j,value:k,onChange:$,onFocus:W,onBlur:q,type:e,name:I.name,inputMode:I.inputMode}):d.jsx("input",{ref:C,type:e,className:"ds-textfield__input","aria-label":I["aria-label"]||t||n,placeholder:R&&!G?n??"":void 0,disabled:D,readOnly:j,value:k,onChange:$,onFocus:W,onBlur:q,...I})]}),ne&&d.jsxs("div",{className:"ds-textfield__right",children:[K&&d.jsx("button",{type:"button",className:"ds-textfield__clear","aria-label":"Clear",tabIndex:-1,onClick:ae=>{ae.stopPropagation(),L()},children:d.jsx(an,{name:"chevronclose"})}),f&&d.jsx("span",{className:"ds-textfield__action-text",children:f}),c&&(u?d.jsx("button",{type:"button",className:"ds-textfield__icon-btn",tabIndex:-1,onClick:ae=>{ae.stopPropagation(),u()},children:d.jsx(an,{className:"ds-textfield__icon ds-textfield__icon--right",name:c},c)}):d.jsx(an,{className:"ds-textfield__icon ds-textfield__icon--right",name:c},c))]})]}),J&&d.jsx("div",{className:"ds-textfield__helper-row ds-textfield__helper-row--visible",children:d.jsxs("div",{className:"ds-textfield__helper-row-inner",children:[o&&d.jsxs("div",{className:"ds-textfield__helper",children:[d.jsx(an,{className:"ds-textfield__helper-icon",name:"info"}),d.jsx(er,{variant:"small-regular",className:"ds-textfield__helper-text",children:o})]}),i&&d.jsx(er,{variant:"small-regular",className:"ds-textfield__counter",children:i})]})})]})},Zte=({providers:e,loading:t,pendingProvider:n,hasMore:s,onLoadMore:r,onToggle:a,onApply:o})=>{var m;const i=Se(),l=((m=N.app.header.vivaroMeManagement)==null?void 0:m.imgUr)??"",[c,u]=p.useState(""),f=c?e.filter(h=>h.name.toLowerCase().includes(c.toLowerCase())||h.title.toLowerCase().includes(c.toLowerCase())):e;return d.jsxs("div",{className:"gamePickerProvidersContent",children:[d.jsx("div",{className:"gamePickerSearch",children:d.jsx(Qb,{leftIconName:"Search1",size:"sm",label:i("Search Provider"),value:c,onChange:h=>u(h.target.value),onClear:()=>u(""),clearable:!!c})}),d.jsx("div",{children:t&&f.length===0?d.jsx("p",{className:"gamePickerEmpty",children:i("Loading...")}):f.length===0?d.jsx("p",{className:"gamePickerEmpty",children:i("No providers found")}):d.jsx("div",{className:"gamePickerProvidersGrid",children:f.map(h=>d.jsx(Zt,{variant:n===h.id?"primary":"transparent",size:"xl",radius:"sm",className:"gamePickerProviderCard",onClick:()=>a(h.id),children:h.imgThumb||h.imgSmall?d.jsx("img",{src:`${l}${h.imgThumb||h.imgSmall}`,alt:h.title}):h.title},h.id))})}),s&&r&&d.jsx(Zt,{title:i(t?"Loading...":"Load more"),variant:"transparent",size:"sm",radius:"sm",className:"gamePickerLoadMoreBtn",onClick:r,disabled:t,style:{maxWidth:"50%",margin:"0 auto"}}),d.jsx(Zt,{title:i("Apply"),variant:"primary",size:"md",radius:"md",className:"gamePickerApplyBtn",onClick:o})]})},ene=N.cms.iconUrl,tne=({selectedId:e,onSelect:t,onClose:n})=>{const{site_id:s,header:{vivaroMeManagement:r}}=N.app,a=r==null?void 0:r.wlId,o=Se(),[i,l]=p.useState(""),[c,u]=p.useState(""),[f,m]=p.useState(null),[h,g]=p.useState([]),[E,b]=p.useState([]),[v,_]=p.useState(0),[y,S]=p.useState(1),[w,x]=p.useState(!1),[I,C]=p.useState(!1),[T]=p.useState(""),[P,A]=p.useState(!1),O=p.useRef(null),[M,k]=p.useState([]),[D,j]=p.useState(null),[V,R]=p.useState(null),[U,G]=p.useState(!1),[z,K]=p.useState(!1),[ne,J]=p.useState(1),[$,L]=p.useState(!1),W=p.useRef(null);p.useEffect(()=>(W.current&&clearTimeout(W.current),W.current=setTimeout(()=>u(i),400),()=>{W.current&&clearTimeout(W.current)}),[i]),p.useEffect(()=>{if(!P)return;const te=fe=>{O.current&&!O.current.contains(fe.target)&&A(!1)};return document.addEventListener("mousedown",te),()=>document.removeEventListener("mousedown",te)},[P]),p.useEffect(()=>{ee.get({method:"GET",path:"/api/v1/providers/categories",params:{type:"game",PARTNER_ID:String(s),...a?{WL_ID:String(a)}:{}}},"social_choice_me").then(({result:te,details:fe})=>{te===0&&!fe.error&&g(fe.data??[])}).catch(()=>{})},[]);const q=p.useCallback(async(te=1,fe=!0)=>{var le,Ie,Fe;G(!0);try{const{result:ct,details:Me}=await ee.get({method:"GET",path:"/api/v1/providers",params:{page:String(te),type:"game",PARTNER_ID:String(s),...a?{WL_ID:String(a)}:{}}},"social_choice_me");if(ct===0&&!Me.error){const Oe=((le=Me.data)==null?void 0:le.items)??[];k($e=>fe?Oe:[...$e,...Oe]),L(((Fe=(Ie=Me.data)==null?void 0:Ie.meta)==null?void 0:Fe.hasMore)??!1),J(te)}}catch{}G(!1)},[s,a]),de=p.useCallback(()=>{q(ne+1,!1)},[q,ne]);p.useEffect(()=>{z&&M.length===0&&q()},[z,M.length,q]);const ue=p.useCallback(async(te,fe,le,Ie,Fe,ct)=>{var Me,Oe,$e,De,Ee;C(!0);try{const je={page:String(te),type:"game",PARTNER_ID:String(s),...a?{WL_ID:String(a)}:{}};fe!==null&&(je.categories=String(fe)),le&&(je.providerName=le),Ie&&(je.search=Ie),Fe&&(je.sortBy=Fe);const{result:X,details:H}=await ee.get({method:"GET",path:"/api/v1/providers/games",params:je},"social_choice_me");if(X===0&&!H.error){const F=(((Me=H.data)==null?void 0:Me.items)??[]).map(re=>({id:re.id,name:re.name,title:re.title,src:re.src,webpSrc:re.webpSrc,provider:re.provider,providerTitle:re.providerTitle,icon:re.icon}));b(re=>ct?F:[...re,...F]),x((($e=(Oe=H.data)==null?void 0:Oe.meta)==null?void 0:$e.hasMore)??!1),_(((Ee=(De=H.data)==null?void 0:De.meta)==null?void 0:Ee.total)??0)}}catch{}C(!1)},[s]),Y=p.useMemo(()=>{var te;return((te=M.find(fe=>fe.id===D))==null?void 0:te.name)??null},[M,D]);p.useEffect(()=>{S(1),ue(1,f,Y,c,T,!0)},[f,Y,c,T,ue]);const ae=()=>{const te=y+1;S(te),ue(te,f,Y,c,T,!1)},ie=te=>{t(te),n()},Z=p.useMemo(()=>{var te;return((te=M.find(fe=>fe.id===D))==null?void 0:te.title)??Y},[M,D,Y]);return d.jsxs(d.Fragment,{children:[z&&d.jsx(zR,{onClose:()=>K(!1),title:o("Providers"),children:d.jsx(Zte,{providers:M,loading:U,pendingProvider:V,hasMore:$,onLoadMore:de,onToggle:te=>R(fe=>fe===te?null:te),onApply:()=>{j(V),K(!1)}})}),d.jsx("div",{className:"postGamePickerPopupContent",children:d.jsxs(d.Fragment,{children:[d.jsx("div",{className:"postGamePickerSearch",children:d.jsx(Qb,{size:"sm",leftIconName:"Search1",label:o("Search game or provider"),value:i,onChange:te=>l(te.target.value),onClear:()=>l(""),clearable:!!i})}),d.jsx("div",{className:"gamePickerFilterBar",children:d.jsx(Zt,{title:D!==null?Z??o("Provider"):o("Providers"),variant:"transparent",size:"sm",radius:"full",onClick:()=>{R(D),K(!0)},children:D!==null&&d.jsx(Zt,{className:"clearSelectedProviderFilter",variant:"transparent",appearance:"text",size:"sm",radius:"full",iconOnly:!0,leftIconName:"CloseRemove",onClick:te=>{te.stopPropagation(),j(null),R(null)}})})}),d.jsxs(Cp,{className:"gamePickerCategories",gap:"sm",showArrows:!0,children:[d.jsx(Eo,{label:v>0?`${o("All")} (${v})`:o("All"),size:"sm",color:f===null?"primary":"transparent",selected:f===null,onClick:()=>m(null)}),h.map(te=>d.jsx(Eo,{label:te.title,size:"sm",color:f===te.id?"primary":"transparent",selected:f===te.id,onClick:()=>m(te.id)},te.id))]}),d.jsxs("div",{className:"gamePickerGridScroll",children:[I&&E.length===0?d.jsx("p",{className:"gamePickerEmpty",children:o("Loading...")}):E.length===0?d.jsx("p",{className:"gamePickerEmpty",children:o("No games found")}):d.jsx("div",{className:"gamePickerGrid",children:E.map(te=>d.jsxs("button",{type:"button",className:`gamePickerCard ${String(te.id)===e?" selected":""}`,onClick:()=>ie(te),children:[te.icon?d.jsx("img",{src:`${ene}${te.icon.icon_2||te.icon.icon_3}`,alt:te.name,className:"gamePickerCardImg",loading:"lazy"}):d.jsx("div",{className:"gamePickerCardImgPlaceholder"}),d.jsxs("div",{className:"gamePickerCardOverlay",children:[d.jsx("span",{className:"gamePickerCardTitle",children:te.title||te.name}),(te.providerTitle||te.provider)&&d.jsx("span",{className:"gamePickerCardProvider ellipsis",children:te.providerTitle||te.provider})]})]},te.id))}),w&&d.jsx("div",{className:"gamePickerCardsMoreButton",children:d.jsx(Zt,{title:o(I?"Loading...":"Load more"),variant:"transparent",size:"sm",radius:"full",onClick:ae,disabled:I})})]}),d.jsx("div",{className:"gamePickerFooter",children:d.jsx(Zt,{className:"gamePickerCancelButton",title:o("Cancel"),size:"md",radius:"full",variant:"transparent",onClick:n})})]})})]})},n_=()=>B(()=>import("./livekit-client.esm-C8nlu9s-.js"),[]),nne=p.lazy(()=>B(()=>import("./StreamerBroadcastOverlay-B0K0GOCK.js"),__vite__mapDeps([684,427,1,564,565,566,557,567,685]))),s_="active_stream_id",r_=String(N.app.site_id);var sne=(e=>(e.Idle="idle",e.Creating="creating",e.Countdown="countdown",e.Loading="loading",e.Live="live",e.KickLive="kick_live",e.Resuming="resuming",e.Ending="ending",e.Error="error",e))(sne||{});const Yl={Screen:{width:{ideal:1920},height:{ideal:1080},frameRate:{ideal:30},displaySurface:"browser"},CameraHD:{width:{ideal:1280},height:{ideal:720},frameRate:{ideal:30},facingMode:"user"},CameraSD:{width:{ideal:640},height:{ideal:480},frameRate:{ideal:30}}},ZR=p.createContext({}),Zfe=()=>p.useContext(ZR),h1={status:"idle",streamId:null,chatInfoId:null,countdown:0,error:null},g1={isMicrophoneOn:!1,isCameraOn:!1,isScreenSharing:!1,cameraStream:null},_1={isRecording:!1,isPending:!1,egressId:null,filePath:null,streamIdSnapshot:null,showRecordDialog:!1,showSaveDialog:!1},rne=({children:e})=>{const[t,n]=p.useState(h1),[s,r]=p.useState(g1),[a,o]=p.useState(_1),{player:i}=Va(),l=p.useRef(null),c=p.useRef(null),u=p.useRef(null),f=p.useRef(null),m=p.useRef(null),h=p.useRef({isRecording:!1,egressId:null}),g=p.useRef({status:"idle",streamId:null}),[E,b]=p.useState(!1),[v,_]=p.useState("regular"),[y,S]=p.useState(""),w=Se(),x=p.useCallback($=>{g.current.status=$,n(L=>({...L,status:$}))},[]),I=p.useCallback($=>{g.current.streamId=$,n(L=>({...L,streamId:$}))},[]),C=p.useCallback($=>{n(L=>({...L,chatInfoId:$}))},[]),T=p.useCallback(()=>{[c.current,u.current].forEach($=>$==null?void 0:$.getTracks().forEach(L=>{try{L.stop()}catch{}})),c.current=null,u.current=null,f.current=null,m.current=null,r(g1)},[]),P=p.useCallback(async $=>{if($){try{await ee.get({method:"POST",path:`/api/v1/streams/${$}/end`,data:{}},"social_choice_me")}catch(L){console.error("Failed to end stream:",L)}localStorage.removeItem(s_)}},[]),A=p.useCallback(async()=>{const{egressId:$}=h.current,{streamId:L}=g.current;if(!(!L||!$)){o(W=>({...W,isPending:!0}));try{await ee.get({method:"POST",path:`/api/v1/streams/${L}/recording/end`,data:{egressId:$,PARTNER_ID:r_}},"social_choice_me")}catch(W){console.error("Failed to stop recording:",W)}h.current={isRecording:!1,egressId:null},o(W=>({...W,isRecording:!1,isPending:!1,egressId:null,showSaveDialog:!0}))}},[]),O=p.useCallback(async($=!0)=>{const{status:L,streamId:W}=g.current;if(L==="ending"||L==="idle")return;x("ending"),$&&await A();const q=l.current;if(q)try{await Promise.all(Array.from(q.localParticipant.tracks.values()).map(de=>de.track?q.localParticipant.unpublishTrack(de.track).catch(()=>{}):Promise.resolve())),await q.disconnect(),l.current=null}catch(de){console.warn("LiveKit disconnect error:",de)}T(),$&&(zl(null),Nc(),await P(W).catch(de=>console.error("Backend end stream failed:",de))),n(h1),g.current={status:"idle",streamId:null}},[T,P,x,A]),M=p.useCallback(()=>O(!0),[O]),k=p.useCallback(async $=>{try{x("resuming"),I($.streamId),C($.chatInfoId??null),n(Z=>({...Z,error:null})),localStorage.setItem(s_,String($.streamId)),Zg();let L,W;if($.hadScreenShare&&c1()){const Z={video:Yl.Screen,audio:{suppressLocalAudioPlayback:!1},preferCurrentTab:!0,selfBrowserSurface:"include"};L=await navigator.mediaDevices.getDisplayMedia(Z)}else $.hadCamera?W=await navigator.mediaDevices.getUserMedia({video:Yl.CameraHD,audio:$.hadMicrophone}):$.hadMicrophone&&(W=await navigator.mediaDevices.getUserMedia({audio:!0}));c.current=L??null,u.current=W??null,W&&r(Z=>({...Z,cameraStream:W}));const{Room:q,RoomEvent:de,LocalVideoTrack:ue,LocalAudioTrack:Y,Track:ae}=await n_(),ie=new q({adaptiveStream:!0,dynacast:!0});if(ie.on(de.Disconnected,()=>{const{status:Z}=g.current;Z!=="ending"&&Z!=="idle"&&O(!1)}),await ie.connect($.livekitUrl,$.livekitToken,{autoSubscribe:!1}),l.current=ie,L){const Z=L.getVideoTracks()[0];if(Z){const fe=new ue(Z);Z.addEventListener("ended",()=>O()),await ie.localParticipant.publishTrack(fe,{source:ae.Source.ScreenShare}),m.current=fe,r(le=>({...le,isScreenSharing:!0}))}const te=L.getAudioTracks()[0];te&&await ie.localParticipant.publishTrack(new Y(te),{source:ae.Source.ScreenShareAudio})}if(W){const Z=W.getVideoTracks()[0];if(Z){const te=new ue(Z);await ie.localParticipant.publishTrack(te,{source:ae.Source.Camera}),f.current=te,r(fe=>({...fe,isCameraOn:!0}))}}if($.hadMicrophone)try{await ie.localParticipant.setMicrophoneEnabled(!0),r(Z=>({...Z,isMicrophoneOn:!0}))}catch(Z){console.warn("Microphone publish failed on resume:",Z)}x("live"),zl({streamId:$.streamId,gameId:$.gameId,chatInfoId:$.chatInfoId??null,livekitUrl:$.livekitUrl,livekitToken:$.livekitToken,participantIdentity:$.participantIdentity,participantName:$.participantName,hadCamera:!!W,hadMicrophone:$.hadMicrophone,hadScreenShare:!!L}),Nc(),Ce.success("Stream resumed.")}catch(L){console.error("Resume failed:",L),Nc(),zl(null),T(),n(W=>({...W,error:(L==null?void 0:L.message)||"resume_error"})),x("error")}},[T,x,I,C,O]);p.useEffect(()=>{const $=Mte();if($){k($);return}},[]),p.useEffect(()=>{t.status},[t.status]),p.useEffect(()=>{const $=g.current.status;!i&&$!=="ending"&&$!=="resuming"&&O(!1)},[i,O]),p.useEffect(()=>{if(!s.isScreenSharing)return;const $=m.current;if(!$)return;const L="[data-private]";let W=!1,q=0;const de=ie=>{var Z,te;ie!==W&&(W=ie,(te=(Z=ie?$.mute():$.unmute())==null?void 0:Z.catch)==null||te.call(Z,()=>{}))},ue=()=>{q=0;const ie=!!document.querySelector(L);de(ie)},Y=()=>{q||(q=requestAnimationFrame(ue))};ue();const ae=new MutationObserver(Y);return ae.observe(document.body,{childList:!0,subtree:!0}),()=>{ae.disconnect(),q&&cancelAnimationFrame(q),de(!1)}},[s.isScreenSharing]),p.useEffect(()=>{const $=()=>{const{streamId:L,status:W}=g.current;if(!L)return;(W==="live"||W==="countdown"||W==="loading")&&WR()};return window.addEventListener("pagehide",$),()=>window.removeEventListener("pagehide",$)},[]);const D=p.useCallback(async($,L)=>{var W,q,de;try{const ue=(W=N.app.header.vivaroMeManagement)==null?void 0:W.wlId,{result:Y,details:ae}=await ee.get({method:"POST",path:"/api/v1/streams",data:{gameId:String($),title:(i==null?void 0:i.title)||(i==null?void 0:i.nikName),visibility:1,participantIdentity:`user-${(i==null?void 0:i.playerId)||"unknown"}`,participantName:(i==null?void 0:i.title)||(i==null?void 0:i.nikName),playbackUrl:`https://player.kick.com/${L}`,type:2,...ue?{WL_ID:String(ue)}:{},PARTNER_ID:String(N.app.site_id)}},"social_choice_me");if(Y!==0||!((q=ae==null?void 0:ae.data)!=null&&q.id))throw new Error("Failed to create Kick stream.");const ie=ae.data.id;if((await ee.get({method:"POST",path:`/api/v1/streams/${ie}/start`,data:{}},"social_choice_me")).result!==0)throw new Error("Failed to start Kick stream.");I(ie),C(((de=ae.data.chatInfo)==null?void 0:de.id)??null),x("kick_live"),ve.open({type:"success",title:"Kick stream ready",content:"You can start streaming in your Kick account now."})}catch(ue){console.error("Kick broadcast error:",ue),ve.open({type:"error",title:"Error",content:"Something went wrong. Please try again."})}},[i==null?void 0:i.title,i==null?void 0:i.playerId,i==null?void 0:i.nikName,I,C,x]),j=p.useCallback(async $=>{var W,q;if(!$){b(!0);return}if(v==="kick"){const de=y.trim();return _("regular"),S(""),de?D($,de):void 0}const L=g.current.status;if(L!=="idle"&&L!=="error"){Ce.warn("You already have an active stream. Please end it before starting a new one.");return}try{x("creating"),n(Ee=>({...Ee,error:null})),Zg();const de=await navigator.mediaDevices.enumerateDevices().catch(()=>[]),ue=de.some(Ee=>Ee.kind==="audioinput"),Y=de.some(Ee=>Ee.kind==="videoinput");let ae,ie;if(c1())try{const Ee={video:Yl.Screen,audio:{suppressLocalAudioPlayback:!1},preferCurrentTab:!0,selfBrowserSurface:"include"};ae=await navigator.mediaDevices.getDisplayMedia(Ee)}catch(Ee){throw Ee.name==="NotAllowedError"?new Error("Screen sharing permission was denied."):Ee}else Y&&(ie=await navigator.mediaDevices.getUserMedia({video:Yl.CameraHD,audio:ue}));c.current=ae??null,u.current=ie??null,ie&&r(Ee=>({...Ee,cameraStream:ie}));const{result:Z,details:te}=await ee.get({method:"POST",path:"/api/v1/streams",data:{gameId:$,title:(i==null?void 0:i.title)||(i==null?void 0:i.nikName),visibility:1,participantIdentity:`user-${(i==null?void 0:i.playerId)||"unknown"}`,participantName:(i==null?void 0:i.title)||(i==null?void 0:i.nikName),type:1,PARTNER_ID:r_}},"social_choice_me");if(Z!==0||!((W=te==null?void 0:te.data)!=null&&W.livekit))throw new Error("Failed to construct remote stream token context.");const fe=te.data.id||11;I(fe);const le=((q=te.data.chatInfo)==null?void 0:q.id)??null;C(le),localStorage.setItem(s_,String(fe)),zl({streamId:fe,gameId:$,chatInfoId:le,livekitUrl:te.data.livekit.url,livekitToken:te.data.livekit.token,participantIdentity:`user-${(i==null?void 0:i.playerId)||"unknown"}`,participantName:(i==null?void 0:i.title)||(i==null?void 0:i.nikName)||"",hadCamera:!!ie,hadMicrophone:ue,hadScreenShare:!!ae}),x("countdown");const Ie=(async()=>{for(let Ee=3;Ee>=1;Ee--)n(je=>({...je,countdown:Ee})),await new Promise(je=>setTimeout(je,1e3));n(Ee=>({...Ee,countdown:0}))})(),{Room:Fe,RoomEvent:ct,LocalVideoTrack:Me,LocalAudioTrack:Oe,Track:$e}=await n_(),De=new Fe({adaptiveStream:!0,dynacast:!0});if(De.on(ct.Disconnected,()=>{const{status:Ee}=g.current;Ee!=="ending"&&Ee!=="idle"&&O(!1)}),await De.connect(te.data.livekit.url,te.data.livekit.token,{autoSubscribe:!1}),l.current=De,ae){const Ee=ae.getVideoTracks()[0];if(Ee){const X=new Me(Ee);Ee.addEventListener("ended",()=>O()),await De.localParticipant.publishTrack(X,{source:$e.Source.ScreenShare}),m.current=X,r(H=>({...H,isScreenSharing:!0}))}const je=ae.getAudioTracks()[0];je&&await De.localParticipant.publishTrack(new Oe(je),{source:$e.Source.ScreenShareAudio})}if(ie){const Ee=ie.getVideoTracks()[0];if(Ee){const je=new Me(Ee);await De.localParticipant.publishTrack(je,{source:$e.Source.Camera}),f.current=je,r(X=>({...X,isCameraOn:!0}))}}if(ue){await new Promise(Ee=>setTimeout(Ee,200));try{await De.localParticipant.setMicrophoneEnabled(!0),r(Ee=>({...Ee,isMicrophoneOn:!0}))}catch(Ee){console.warn("Microphone publish failed:",Ee)}}await Promise.all([ee.get({method:"POST",path:`/api/v1/streams/${fe}/start`,data:{}},"social_choice_me"),Ie]),x("live"),o(Ee=>({...Ee,showRecordDialog:!0,showSaveDialog:!1})),zl({streamId:fe,gameId:$,chatInfoId:le,livekitUrl:te.data.livekit.url,livekitToken:te.data.livekit.token,participantIdentity:`user-${(i==null?void 0:i.playerId)||"unknown"}`,participantName:(i==null?void 0:i.title)||(i==null?void 0:i.nikName)||"",hadCamera:!!ie,hadMicrophone:ue,hadScreenShare:!!ae})}catch(de){console.error("Broadcast error:",de),T(),n(ue=>({...ue,error:(de==null?void 0:de.message)||"stream_error"})),x("error")}},[x,i==null?void 0:i.title,i==null?void 0:i.playerId,i==null?void 0:i.nikName,I,O,T,D,v,C,y]),V=p.useCallback(async()=>{const $=l.current;if(!$||!navigator.mediaDevices||!(await navigator.mediaDevices.enumerateDevices().catch(()=>[])).some(q=>q.kind==="audioinput"))return;const W=!$.localParticipant.isMicrophoneEnabled;await $.localParticipant.setMicrophoneEnabled(W),r(q=>({...q,isMicrophoneOn:W}))},[]),R=p.useCallback(async()=>{var L;const $=l.current;if($)if(f.current)await $.localParticipant.unpublishTrack(f.current).catch(()=>{}),f.current.stop(),(L=u.current)==null||L.getTracks().forEach(W=>W.stop()),f.current=null,u.current=null,r(W=>({...W,isCameraOn:!1,cameraStream:null}));else try{Zg();const{LocalVideoTrack:W,Track:q}=await n_(),de=await navigator.mediaDevices.getUserMedia({video:Yl.CameraSD}),ue=new W(de.getVideoTracks()[0]);await $.localParticipant.publishTrack(ue,{source:q.Source.Camera}),u.current=de,f.current=ue,r(Y=>({...Y,isCameraOn:!0,cameraStream:de}))}catch(W){console.error("Camera toggle failed:",W)}},[]),U=p.useCallback(async()=>{var L,W,q,de,ue;const{streamId:$}=g.current;if($){o(Y=>({...Y,isPending:!0}));try{const{details:Y}=await ee.get({method:"POST",path:`/api/v1/streams/${$}/recording/start`,data:{}},"social_choice_me"),ae=((W=(L=Y==null?void 0:Y.data)==null?void 0:L.recording)==null?void 0:W.egress_id)??null,ie=((ue=(de=(q=Y==null?void 0:Y.data)==null?void 0:q.recording)==null?void 0:de.file)==null?void 0:ue.filename)??null;h.current={isRecording:!0,egressId:ae},o(Z=>({...Z,isRecording:!0,isPending:!1,egressId:ae,filePath:ie,streamIdSnapshot:$}))}catch(Y){console.error("Failed to start recording:",Y),o(ae=>({...ae,isPending:!1}))}}},[]),G=p.useCallback(async()=>{const{filePath:$,streamIdSnapshot:L}=a;if(!(!$||!L))try{await ee.get({method:"POST",path:"/api/v1/players/stories",data:{file:$,type:2,targetId:L,targetType:"stream",PARTNER_ID:r_}},"social_choice_me"),o(W=>({...W,showSaveDialog:!1})),Ce.success("Recording posted to your story.")}catch(W){console.error("Failed to post to story:",W),Ce.error("Failed to post Story")}},[a]),z=p.useCallback(async()=>{const{filePath:$,streamIdSnapshot:L}=a;if(!(!$||!L))try{await ee.get({method:"POST",path:"/api/v1/players/post",data:{targetId:L,targetType:"stream",description:"",tags:[],files:[{url:$,type:"video"}]}},"social_choice_me"),Ce.success("Recording posted to your profile."),o(W=>({...W,showSaveDialog:!1}))}catch(W){console.error("Failed to post to profile:",W),Ce.error("Failed to post to profile.")}},[a]),K=p.useCallback(()=>{o($=>({...$,showRecordDialog:!1}))},[]),ne=p.useCallback(()=>{o(_1)},[]),J=p.useMemo(()=>({status:t.status,streamId:t.streamId,chatInfoId:t.chatInfoId,countdownSeconds:t.countdown,error:t.error,roomRef:l,isMicrophoneOn:s.isMicrophoneOn,isCameraOn:s.isCameraOn,isScreenSharing:s.isScreenSharing,cameraStream:s.cameraStream,isRecording:a.isRecording,isRecordingPending:a.isPending,filePath:a.filePath,showRecordDialog:a.showRecordDialog,showSaveDialog:a.showSaveDialog,startBroadcast:j,stopBroadcast:M,toggleMicrophone:V,toggleCamera:R,startRecording:U,stopRecording:A,postToStory:G,postToProfile:z,dismissRecordDialog:K,dismissSaveDialog:ne}),[t,s,a,j,M,V,R,U,A,G,z,K,ne]);return d.jsxs(ZR.Provider,{value:J,children:[e,d.jsxs(p.Suspense,{fallback:null,children:[d.jsx(nne,{}),E?d.jsxs(zR,{className:"postGamePickerPopup",onClose:()=>{b(!1),_("regular"),S("")},title:w("Choose game for Stream"),children:[(i==null?void 0:i.isVerifiedStreamer)&&d.jsxs(d.Fragment,{children:[d.jsxs("div",{className:"streamTypeInlineSelector",children:[d.jsx(Zt,{className:"streamTypeInlineSelector__chip",variant:v==="regular"?"primary":"transparent",size:"md",radius:"full",leftIconName:"LiveGames",title:w("Regular"),onClick:()=>_("regular")}),d.jsx(Zt,{className:"streamTypeInlineSelector__chip",variant:v==="kick"?"primary":"transparent",size:"md",radius:"full",leftIconName:"Live1",title:w("Kick"),onClick:()=>_("kick")})]}),v==="kick"&&d.jsx("div",{className:"streamTypeInlineSelector__kickInput",children:d.jsx(Qb,{label:w("Kick username"),size:"lg",value:y,onChange:$=>S($.target.value),onClear:()=>S("")})})]}),d.jsx(tne,{selectedId:"",onSelect:$=>{v==="kick"&&!y.trim()||(j($.id),b(!1))},onClose:()=>{b(!1),_("regular"),S("")}})]}):null]})]})},ane=N.app.maintenanceURL,one=async e=>qe.post(ane,{id:e},{headers:{"Content-Type":"application/json"}}).then(t=>{if(t.status===200&&(t!=null&&t.data))return t.data}).catch(t=>{rt.error(t)}),ine=Ne(()=>B(()=>import("./Maintenance-DbLTSYSb.js"),__vite__mapDeps([686,1,687]))),lne=({children:e})=>{const[t,n]=p.useState(null);return p.useEffect(()=>{one(N.app.site_id).then(s=>{s!=null&&s.maintenance&&n(s)})},[]),t!=null&&t.maintenance?d.jsx(p.Suspense,{children:d.jsx(ine,{startTime:t.startTime,endTime:t.endTime})}):e},cne=i_.createRoot(document.getElementById("root"));cne.render(d.jsx(Nq,{children:(e,t)=>d.jsx(wU,{language:e,assets:t,children:d.jsx(OU,{children:d.jsx(bn,{errorType:xB,showErrorPage:!0,children:d.jsx(lne,{children:d.jsx(rz,{children:d.jsx(E4,{children:d.jsx(a$,{children:d.jsx(nB,{children:d.jsx(jX,{children:d.jsx(rne,{children:d.jsx(kte,{children:d.jsx(pz,{children:d.jsx(xz,{children:d.jsx(cV,{children:d.jsx(fY,{children:d.jsx(Uz,{children:d.jsx(qG,{children:d.jsx(yW,{children:d.jsx(Vz,{children:d.jsx(Kz,{children:d.jsx(bZ,{children:d.jsx(b8,{children:d.jsx(lY,{children:d.jsx(bW,{children:d.jsx(sW,{children:d.jsx(xte,{children:d.jsx(_i,{children:d.jsx(io,{path:"/:locale?",render:({location:n,match:{url:s}})=>d.jsxs(JA,{location:{...n,pathname:n.pathname.replace(s,"")},children:[d.jsx(io,{path:"/widget/:widgetName",render:r=>d.jsx(sw,{navigationEnabled:!1,...r})}),d.jsx(io,{path:"/embed/:widgetName",render:r=>d.jsx(sw,{navigationEnabled:!0,...r})}),d.jsx(io,{component:mte})]})})})})})})})})})})})})})})})})})})})})})})})})})})})})})}));const une=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),dne=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));export{ht as $,st as A,$t as B,N as C,Ns as D,zse as E,Fee as F,d2 as G,tB as H,jm as I,Wt as J,mR as K,Mt as L,OO as M,Yf as N,qf as O,xt as P,ke as Q,eB as R,K2 as S,kn as T,_v as U,iv as V,nC as W,dO as X,Yre as Y,gx as Z,MQ as _,Ua as a,Ae as a$,vt as a0,El as a1,bC as a2,Kae as a3,L5 as a4,ib as a5,S$ as a6,Ec as a7,gK as a8,C$ as a9,qfe as aA,Gz as aB,use as aC,t5 as aD,Zf as aE,I$ as aF,bae as aG,Sae as aH,Cae as aI,lO as aJ,Gb as aK,tx as aL,Qoe as aM,lt as aN,Zoe as aO,X$ as aP,Q$ as aQ,an as aR,zb as aS,DG as aT,WN as aU,nde as aV,qse as aW,Bh as aX,Fo as aY,K$ as aZ,Fte as a_,A$ as aa,ve as ab,EJ as ac,iR as ad,YG as ae,dse as af,Go as ag,Nse as ah,ude as ai,we as aj,Oue as ak,Ji as al,he as am,Mce as an,Ose as ao,Cc as ap,wT as aq,Zt as ar,_R as as,Va as at,SR as au,Ce as av,Op as aw,He as ax,BX as ay,Nfe as az,Nt as b,D4 as b$,At as b0,cf as b1,zt as b2,sse as b3,gb as b4,Di as b5,QP as b6,Ly as b7,Jf as b8,RN as b9,Na as bA,MG as bB,Vt as bC,Rv as bD,OR as bE,Q0 as bF,gse as bG,Fne as bH,Cse as bI,Woe as bJ,Hoe as bK,KQ as bL,wc as bM,jb as bN,LN as bO,en as bP,lV as bQ,ng as bR,f8 as bS,P$ as bT,KX as bU,Ye as bV,_o as bW,Ar as bX,_se as bY,Pee as bZ,rt as b_,Eb as ba,ms as bb,Ma as bc,qm as bd,Mv as be,Lee as bf,Rd as bg,Vde as bh,ef as bi,Ede as bj,B as bk,Ga as bl,hue as bm,Dx as bn,go as bo,qe as bp,Qy as bq,lp as br,Ox as bs,Vy as bt,SU as bu,jee as bv,kN as bw,KP as bx,cJ as by,Te as bz,ze as c,nue as c$,g4 as c0,as as c1,Id as c2,Sn as c3,Dm as c4,rb as c5,yO as c6,sb as c7,Om as c8,Ge as c9,PO as cA,PW as cB,Pue as cC,Ne as cD,EO as cE,Zi as cF,cde as cG,L$ as cH,ik as cI,EK as cJ,o$ as cK,Nie as cL,Qn as cM,mn as cN,c8 as cO,q2 as cP,Zie as cQ,Jie as cR,dle as cS,tz as cT,kz as cU,Oae as cV,BN as cW,Re as cX,L8 as cY,me as cZ,gt as c_,R5 as ca,dG as cb,P8 as cc,_l as cd,Sb as ce,mO as cf,Mue as cg,Or as ch,rre as ci,Vu as cj,YN as ck,eoe as cl,ZB as cm,N5 as cn,k8 as co,PG as cp,Hn as cq,k5 as cr,kG as cs,Sle as ct,_G as cu,xs as cv,Ioe as cw,Hb as cx,TW as cy,kO as cz,at as d,hse as d$,Y9 as d0,FC as d1,rue as d2,FU as d3,ut as d4,hle as d5,_b as d6,ese as d7,cb as d8,aue as d9,Rue as dA,oG as dB,Ka as dC,Ele as dD,Zfe as dE,sne as dF,zR as dG,xm as dH,v8 as dI,Io as dJ,xn as dK,mW as dL,sx as dM,In as dN,mne as dO,Tee as dP,vr as dQ,Tc as dR,oz as dS,er as dT,Vg as dU,wX as dV,bX as dW,CX as dX,kp as dY,hfe as dZ,Am as d_,Hr as da,fO as db,Rn as dc,BG as dd,ex as de,Que as df,kde as dg,FG as dh,Xue as di,vae as dj,Eue as dk,vue as dl,jZ as dm,Qb as dn,Mse as dp,bce as dq,doe as dr,hp as ds,b4 as dt,Hee as du,cO as dv,A4 as dw,sG as dx,nG as dy,Nue as dz,Fie as e,yw as e$,Ev as e0,vv as e1,zU as e2,hH as e3,LO as e4,e4 as e5,hd as e6,Zse as e7,Vce as e8,Ei as e9,Hy as eA,ioe as eB,loe as eC,coe as eD,uoe as eE,nb as eF,Qc as eG,gl as eH,Zce as eI,F4 as eJ,m4 as eK,qce as eL,Jce as eM,Xce as eN,cse as eO,ym as eP,mse as eQ,h4 as eR,Kce as eS,Xn as eT,Qce as eU,xle as eV,Y$ as eW,NN as eX,K9 as eY,cY as eZ,tt as e_,j4 as ea,zq as eb,$de as ec,Is as ed,$ce as ee,nse as ef,Oce as eg,Gce as eh,_9 as ei,G9 as ej,zm as ek,ble as el,cs as em,ZH as en,kce as eo,Tue as ep,Y4 as eq,fm as er,wu as es,mo as et,M4 as eu,Pm as ev,Ao as ew,tb as ex,Ni as ey,NG as ez,$k as f,SK as f$,Ule as f0,Kne as f1,Qne as f2,gG as f3,Uce as f4,Cp as f5,Eo as f6,Fce as f7,Bce as f8,jce as f9,uG as fA,V$ as fB,Mie as fC,Lie as fD,Rie as fE,$H as fF,q$ as fG,mP as fH,W8 as fI,T4 as fJ,oue as fK,Ho as fL,UU as fM,vie as fN,Eie as fO,yie as fP,Ru as fQ,Ple as fR,ZA as fS,gce as fT,Lv as fU,hl as fV,Yn as fW,Av as fX,af as fY,fre as fZ,ule as f_,vG as fa,Gde as fb,rG as fc,aG as fd,MR as fe,EG as ff,F$ as fg,$q as fh,z8 as fi,vle as fj,Wle as fk,mf as fl,hG as fm,qa as fn,B8 as fo,XC as fp,FX as fq,jue as fr,O8 as fs,iie as ft,_ae as fu,G$ as fv,iG as fw,TZ as fx,kx as fy,Jn as fz,bt as g,Vse as g$,We as g0,wle as g1,ide as g2,ade as g3,lde as g4,qle as g5,ode as g6,Lu as g7,Dse as g8,Fse as g9,Qte as gA,lce as gB,oce as gC,rce as gD,pp as gE,Pa as gF,Ep as gG,Hde as gH,qw as gI,Ise as gJ,$z as gK,si as gL,kue as gM,Sie as gN,GO as gO,qC as gP,Nae as gQ,Rae as gR,jk as gS,a8 as gT,Bk as gU,cx as gV,cp as gW,op as gX,Mle as gY,x8 as gZ,xG as g_,zae as ga,t4 as gb,Jc as gc,dw as gd,rY as ge,ob as gf,xee as gg,Kn as gh,X2 as gi,Sue as gj,jo as gk,y4 as gl,iJ as gm,dfe as gn,tne as go,NQ as gp,Q5 as gq,Tae as gr,Xa as gs,YQ as gt,$4 as gu,Q9 as gv,WQ as gw,lQ as gx,DK as gy,pr as gz,Jl as h,iue as h$,Gse as h0,$se as h1,Use as h2,Q3 as h3,Lue as h4,Kie as h5,R8 as h6,rs as h7,Ra as h8,gk as h9,Fde as hA,Lae as hB,Bde as hC,BH as hD,gr as hE,Ble as hF,cw as hG,bde as hH,Tce as hI,Pde as hJ,Ale as hK,Ese as hL,gX as hM,ere as hN,Ice as hO,DR as hP,uk as hQ,MC as hR,Hh as hS,hne as hT,Bne as hU,Kue as hV,UG as hW,Jue as hX,Zue as hY,dde as hZ,eG as h_,Due as ha,W$ as hb,vde as hc,AG as hd,D$ as he,jU as hf,H$ as hg,TG as hh,BU as hi,$ue as hj,wG as hk,zce as hl,foe as hm,z$ as hn,SG as ho,R$ as hp,km as hq,An as hr,Uue as hs,CG as ht,Hk as hu,RV as hv,bm as hw,aT as hx,TT as hy,nu as hz,ee as i,hx as i$,jG as i0,rl as i1,wC as i2,Hv as i3,Ot as i4,xce as i5,wue as i6,Bte as i7,yle as i8,DN as i9,X3 as iA,oae as iB,Yae as iC,qae as iD,OG as iE,ile as iF,lle as iG,ZU as iH,_w as iI,F8 as iJ,LG as iK,NX as iL,Kfe as iM,nl as iN,sl as iO,jae as iP,Vae as iQ,Bae as iR,Fae as iS,Hae as iT,Wae as iU,NR as iV,Dce as iW,JH as iX,qie as iY,Qie as iZ,iae as i_,Qde as ia,_O as ib,fP as ic,V4 as id,Dv as ie,$u as ig,cG as ih,lG as ii,N8 as ij,al as ik,PH as il,zfe as im,ffe as io,Hfe as ip,Xc as iq,Tse as ir,Do as is,$$ as it,yG as iu,xde as iv,Ude as iw,Pce as ix,bG as iy,Oy as iz,d as j,Uoe as j$,vX as j0,Ri as j1,ep as j2,Kle as j3,Zy as j4,fB as j5,Sse as j6,cn as j7,$o as j8,Wde as j9,SZ as jA,pH as jB,fH as jC,Cr as jD,gH as jE,ece as jF,moe as jG,tce as jH,Jle as jI,Zle as jJ,Boe as jK,Doe as jL,joe as jM,Xne as jN,zne as jO,Yne as jP,Wne as jQ,Hne as jR,Vne as jS,Gne as jT,$ne as jU,gle as jV,Voe as jW,Goe as jX,Noe as jY,Moe as jZ,Loe as j_,Mz as ja,mG as jb,Toe as jc,soe as jd,noe as je,toe as jf,eie as jg,Rse as jh,ln as ji,lse as jj,Wre as jk,ale as jl,ole as jm,efe as jn,gue as jo,mue as jp,wt as jq,fK as jr,die as js,_le as jt,SC as ju,ac as jv,tie as jw,nie as jx,Wce as jy,Hce as jz,fa as k,Ci as k$,Foe as k0,$oe as k1,koe as k2,Roe as k3,Cie as k4,CT as k5,Mne as k6,Rde as k7,Wz as k8,Nde as k9,wd as kA,j5 as kB,rae as kC,Lle as kD,Fue as kE,hie as kF,gie as kG,nce as kH,xR as kI,Gh as kJ,Tle as kK,Une as kL,Zre as kM,Rle as kN,Pie as kO,Jre as kP,Xre as kQ,Yoe as kR,zoe as kS,eae as kT,tae as kU,nae as kV,cQ as kW,aQ as kX,yre as kY,cE as kZ,pw as k_,Hz as ka,jH as kb,fY as kc,Jse as kd,px as ke,FN as kf,zN as kg,pZ as kh,Mde as ki,Lde as kj,mde as kk,Yv as kl,kr as km,ak as kn,Vr as ko,dH as kp,Dde as kq,h2 as kr,bi as ks,RH as kt,bH as ku,ou as kv,wH as kw,jde as kx,fle as ky,Y2 as kz,Q as l,yoe as l$,oa as l0,RG as l1,Yle as l2,Nce as l3,Lce as l4,Rce as l5,_ie as l6,pf as l7,Ooe as l8,are as l9,Poe as lA,uie as lB,cie as lC,fG as lD,Uk as lE,X8 as lF,pG as lG,c7 as lH,Ag as lI,bue as lJ,R4 as lK,Np as lL,ZD as lM,Ace as lN,tc as lO,vZ as lP,Tt as lQ,Qle as lR,Xle as lS,mle as lT,rle as lU,vR as lV,A2 as lW,Soe as lX,L2 as lY,P2 as lZ,boe as l_,Ode as la,fx as lb,Tv as lc,ax as ld,Gx as le,ore as lf,lre as lg,MU as lh,ose as li,uae as lj,Uh as lk,l5 as ll,nr as lm,Hse as ln,QJ as lo,IN as lp,jse as lq,Bse as lr,RK as ls,kK as lt,jK as lu,FK as lv,UK as lw,LK as lx,nQ as ly,xoe as lz,ye as m,dre as m$,O2 as m0,x2 as m1,k2 as m2,cfe as m3,qQ as m4,zQ as m5,zX as m6,hR as m7,rX as m8,K0 as m9,fde as mA,tle as mB,nle as mC,fue as mD,kH as mE,Gue as mF,zv as mG,Sde as mH,yce as mI,_c as mJ,sue as mK,q9 as mL,Bv as mM,xue as mN,Kre as mO,cue as mP,AH as mQ,Bue as mR,ede as mS,Joe as mT,Xoe as mU,DU as mV,nre as mW,eb as mX,Aue as mY,Iue as mZ,ure as m_,sle as ma,eX as mb,rfe as mc,gw as md,Nle as me,Rg as mf,qoe as mg,Koe as mh,kae as mi,wfe as mj,Afe as mk,rR as ml,Efe as mm,vfe as mn,_fe as mo,bfe as mp,TX as mq,Vh as mr,TC as ms,Lse as mt,kie as mu,KJ as mv,wde as mw,Ide as mx,ise as my,_ce as mz,Yt as n,ice as n$,cre as n0,ire as n1,Jw as n2,rde as n3,Dle as n4,oY as n5,iV as n6,aV as n7,Uz as n8,xae as n9,Yue as nA,Wue as nB,xse as nC,Vue as nD,Jte as nE,IX as nF,Mfe as nG,Tfe as nH,xfe as nI,Ofe as nJ,kfe as nK,Rfe as nL,dm as nM,Pfe as nN,Cfe as nO,Bw as nP,J$ as nQ,Cce as nR,jne as nS,Sce as nT,hde as nU,gde as nV,UH as nW,uce as nX,dce as nY,fce as nZ,Ere as n_,rse as na,hO as nb,Ole as nc,Iy as nd,J4 as ne,IV as nf,_ue as ng,Iae as nh,Aae as ni,Pae as nj,roe as nk,cae as nl,lae as nm,tre as nn,Jne as no,Zne as np,_de as nq,Nv as nr,que as ns,xO as nt,zue as nu,Dne as nv,Ile as nw,sde as nx,vce as ny,Hue as nz,dn as o,jfe as o$,ace as o0,sce as o1,Lr as o2,nY as o3,cce as o4,vre as o5,gre as o6,_re as o7,pce as o8,hre as o9,Cde as oA,Ade as oB,Tde as oC,Ece as oD,dV as oE,I4 as oF,tde as oG,S8 as oH,_oe as oI,Wie as oJ,wse as oK,Pse as oL,hoe as oM,goe as oN,wae as oO,ha as oP,ot as oQ,hE as oR,Ld as oS,c1 as oT,Gfe as oU,Vfe as oV,hX as oW,yfe as oX,Sfe as oY,Ife as oZ,Dfe as o_,vb as oa,XH as ob,KU as oc,XU as od,qU as oe,QU as of,ofe as og,tse as oh,ase as oi,ox as oj,sre as ok,f5 as ol,pde as om,Es as on,mp as oo,yse as op,Wfe as oq,ufe as or,EX as os,mfe as ot,pfe as ou,gfe as ov,tue as ow,eue as ox,Yce as oy,wce as oz,et as p,Za as p$,Ufe as p0,Bfe as p1,Ffe as p2,Lfe as p3,Yfe as p4,RX as p5,MX as p6,jle as p7,IR as p8,Qfe as p9,Hle as pA,d5 as pB,GU as pC,zde as pD,nX as pE,zle as pF,poe as pG,aie as pH,Aoe as pI,kle as pJ,VU as pK,Hie as pL,zie as pM,Jde as pN,Cz as pO,Fle as pP,$le as pQ,Kde as pR,Hx as pS,qde as pT,Zae as pU,vu as pV,X4 as pW,Pv as pX,G4 as pY,GR as pZ,U4 as p_,$fe as pa,im as pb,_n as pc,gne as pd,Fa as pe,wr as pf,Wy as pg,dJ as ph,fX as pi,TR as pj,IJ as pk,Oo as pl,mie as pm,SP as pn,dZ as po,$ee as pp,ev as pq,X0 as pr,Jae as ps,yue as pt,yae as pu,bse as pv,woe as pw,Mae as px,Die as py,Xde as pz,or as q,ple as q$,Az as q0,Vle as q1,Yie as q2,Ky as q3,Zde as q4,mre as q5,Yde as q6,pre as q7,HU as q8,aX as q9,rc as qA,Wr as qB,Dq as qC,ife as qD,Iie as qE,hf as qF,pue as qG,Bl as qH,Coe as qI,nfe as qJ,Qae as qK,Xae as qL,pae as qM,mae as qN,hae as qO,gae as qP,Uae as qQ,Gae as qR,$ae as qS,sie as qT,vse as qU,rie as qV,oie as qW,lie as qX,Bie as qY,Oie as qZ,xie as q_,Eoe as qa,GN as qb,Qz as qc,Eae as qd,Are as qe,yK as qf,tfe as qg,Xz as qh,q4 as qi,lue as qj,sfe as qk,Ire as ql,wre as qm,Tre as qn,Qre as qo,Cre as qp,Gle as qq,el as qr,Gq as qs,fie as qt,sae as qu,Sre as qv,pie as qw,bre as qx,fae as qy,lfe as qz,p as r,dE as r$,aoe as r0,ooe as r1,Nre as r2,Rre as r3,zre as r4,Hre as r5,ele as r6,voe as r7,dae as r8,Xie as r9,Tie as rA,Jz as rB,aae as rC,Wse as rD,Dae as rE,pse as rF,J0 as rG,fse as rH,afe as rI,B4 as rJ,c4 as rK,mce as rL,f4 as rM,u4 as rN,eY as rO,hce as rP,d4 as rQ,bie as rR,Cle as rS,W4 as rT,kse as rU,Ase as rV,Wl as rW,uue as rX,due as rY,eK as rZ,nK as r_,Jfe as ra,Uie as rb,$ie as rc,Pre as rd,xre as re,Lre as rf,Mre as rg,jre as rh,qre as ri,Cue as rj,Aie as rk,jie as rl,Ore as rm,kre as rn,Bre as ro,Fre as rp,Dre as rq,Gie as rr,Vie as rs,$re as rt,ET as ru,Gre as rv,Vre as rw,Ure as rx,wie as ry,cle as rz,Fs as s,Iw as s0,H4 as s1,tK as s2,_te as s3,qne as s4,qK as s5,XK as s6,sQ as s7,HK as s8,QK as s9,ZK as sa,NK as sb,MK as sc,$K as sd,WK as se,JK as sf,BK as sg,rQ as sh,iQ as si,oQ as sj,eQ as sk,tQ as sl,mE as sm,zK as sn,VK as so,GK as sp,KK as sq,YK as sr,Xfe as ss,yde as t,Se as u,Pt as v,Yse as w,Kse as x,Qse as y,Xse as z};