@local-logic/sdks-app 1.24.43 → 1.24.44
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{Attribution-DnmiY-id.js → Attribution-D012fWNs.js} +2 -2
- package/dist/assets/{Attribution-DnmiY-id.js.map → Attribution-D012fWNs.js.map} +1 -1
- package/dist/assets/{Attribution-legacy-Da4FA00m.js → Attribution-legacy-DSXG-3Q0.js} +2 -2
- package/dist/assets/{Attribution-legacy-Da4FA00m.js.map → Attribution-legacy-DSXG-3Q0.js.map} +1 -1
- package/dist/assets/{Cluster-BHQcO6iC-Do1P9Ia2.js → Cluster-BHQcO6iC-_jL_0N39.js} +2 -2
- package/dist/assets/{Cluster-BHQcO6iC-Do1P9Ia2.js.map → Cluster-BHQcO6iC-_jL_0N39.js.map} +1 -1
- package/dist/assets/{Cluster-BHQcO6iC-legacy-B3k4OIlu.js → Cluster-BHQcO6iC-legacy-3UMx26D5.js} +2 -2
- package/dist/assets/{Cluster-BHQcO6iC-legacy-B3k4OIlu.js.map → Cluster-BHQcO6iC-legacy-3UMx26D5.js.map} +1 -1
- package/dist/assets/{Google-BFAJ84CT-DhLE7SMg.js → Google-BFAJ84CT-Dh97X1sB.js} +2 -2
- package/dist/assets/{Google-BFAJ84CT-DhLE7SMg.js.map → Google-BFAJ84CT-Dh97X1sB.js.map} +1 -1
- package/dist/assets/{Google-BFAJ84CT-legacy-BXfoTpXf.js → Google-BFAJ84CT-legacy-D0OGURqq.js} +2 -2
- package/dist/assets/{Google-BFAJ84CT-legacy-BXfoTpXf.js.map → Google-BFAJ84CT-legacy-D0OGURqq.js.map} +1 -1
- package/dist/assets/{Google-BS41ufih-i8xQrE_C.js → Google-BS41ufih-Cc3f5UsV.js} +2 -2
- package/dist/assets/{Google-BS41ufih-i8xQrE_C.js.map → Google-BS41ufih-Cc3f5UsV.js.map} +1 -1
- package/dist/assets/{Google-BS41ufih-legacy-BdzBlyLB.js → Google-BS41ufih-legacy-BnojXQoy.js} +2 -2
- package/dist/assets/{Google-BS41ufih-legacy-BdzBlyLB.js.map → Google-BS41ufih-legacy-BnojXQoy.js.map} +1 -1
- package/dist/assets/{Google-CH7a2yx--BBV608XJ.js → Google-CH7a2yx--CBaNUH_8.js} +2 -2
- package/dist/assets/{Google-CH7a2yx--BBV608XJ.js.map → Google-CH7a2yx--CBaNUH_8.js.map} +1 -1
- package/dist/assets/{Google-CH7a2yx--legacy-DK3evKRO.js → Google-CH7a2yx--legacy-C_ip84Oz.js} +2 -2
- package/dist/assets/{Google-CH7a2yx--legacy-DK3evKRO.js.map → Google-CH7a2yx--legacy-C_ip84Oz.js.map} +1 -1
- package/dist/assets/{Google-CXGCn-oJ-5ByomDf2.js → Google-CXGCn-oJ-i9rxhVJh.js} +2 -2
- package/dist/assets/{Google-CXGCn-oJ-5ByomDf2.js.map → Google-CXGCn-oJ-i9rxhVJh.js.map} +1 -1
- package/dist/assets/{Google-CXGCn-oJ-legacy-DA32c0kh.js → Google-CXGCn-oJ-legacy-OuENT3oi.js} +2 -2
- package/dist/assets/{Google-CXGCn-oJ-legacy-DA32c0kh.js.map → Google-CXGCn-oJ-legacy-OuENT3oi.js.map} +1 -1
- package/dist/assets/{Google-DbOLrYJn-IeJcma0o.js → Google-DbOLrYJn-bogicaOo.js} +2 -2
- package/dist/assets/{Google-DbOLrYJn-IeJcma0o.js.map → Google-DbOLrYJn-bogicaOo.js.map} +1 -1
- package/dist/assets/{Google-DbOLrYJn-legacy-gzWCKBCo.js → Google-DbOLrYJn-legacy-B95opCm9.js} +2 -2
- package/dist/assets/{Google-DbOLrYJn-legacy-gzWCKBCo.js.map → Google-DbOLrYJn-legacy-B95opCm9.js.map} +1 -1
- package/dist/assets/{GridGraph-C0PP17kA.js → GridGraph-_rWMkwNI.js} +2 -2
- package/dist/assets/{GridGraph-C0PP17kA.js.map → GridGraph-_rWMkwNI.js.map} +1 -1
- package/dist/assets/{GridGraph-legacy-B1C-2d1Q.js → GridGraph-legacy-CsgF_9Vx.js} +2 -2
- package/dist/assets/{GridGraph-legacy-B1C-2d1Q.js.map → GridGraph-legacy-CsgF_9Vx.js.map} +1 -1
- package/dist/assets/{LeadCapture-e2fi_VKJ.js → LeadCapture-IqeCbA_u.js} +2 -2
- package/dist/assets/{LeadCapture-e2fi_VKJ.js.map → LeadCapture-IqeCbA_u.js.map} +1 -1
- package/dist/assets/{LeadCapture-legacy-wC9F3Dq5.js → LeadCapture-legacy-D_miey0j.js} +2 -2
- package/dist/assets/{LeadCapture-legacy-wC9F3Dq5.js.map → LeadCapture-legacy-D_miey0j.js.map} +1 -1
- package/dist/assets/{LocalContent-Bgf0CDoA.js → LocalContent-DL6Y67Ne.js} +2 -2
- package/dist/assets/{LocalContent-Bgf0CDoA.js.map → LocalContent-DL6Y67Ne.js.map} +1 -1
- package/dist/assets/{LocalContent-legacy-BHBTASYp.js → LocalContent-legacy-BBB-ST51.js} +2 -2
- package/dist/assets/{LocalContent-legacy-BHBTASYp.js.map → LocalContent-legacy-BBB-ST51.js.map} +1 -1
- package/dist/assets/{LocalDemographics-BuWGiqEi.js → LocalDemographics-DcirUh9h.js} +2 -2
- package/dist/assets/{LocalDemographics-BuWGiqEi.js.map → LocalDemographics-DcirUh9h.js.map} +1 -1
- package/dist/assets/{LocalDemographics-legacy-D1k5CRVw.js → LocalDemographics-legacy-rmGYdILu.js} +2 -2
- package/dist/assets/{LocalDemographics-legacy-D1k5CRVw.js.map → LocalDemographics-legacy-rmGYdILu.js.map} +1 -1
- package/dist/assets/{Mapbox-CpLnA607-AeAqR5aH.js → Mapbox-CpLnA607-CKDrFvU5.js} +2 -2
- package/dist/assets/{Mapbox-CpLnA607-AeAqR5aH.js.map → Mapbox-CpLnA607-CKDrFvU5.js.map} +1 -1
- package/dist/assets/{Mapbox-CpLnA607-legacy-CZe3Jz0m.js → Mapbox-CpLnA607-legacy-Bx1JnBMX.js} +2 -2
- package/dist/assets/{Mapbox-CpLnA607-legacy-CZe3Jz0m.js.map → Mapbox-CpLnA607-legacy-Bx1JnBMX.js.map} +1 -1
- package/dist/assets/{Mapbox-DDJ1gHRb-rvf9zFJO.js → Mapbox-DDJ1gHRb-BrLhMxW4.js} +2 -2
- package/dist/assets/{Mapbox-DDJ1gHRb-rvf9zFJO.js.map → Mapbox-DDJ1gHRb-BrLhMxW4.js.map} +1 -1
- package/dist/assets/{Mapbox-DDJ1gHRb-legacy-NAVECUv-.js → Mapbox-DDJ1gHRb-legacy-DtASaFMy.js} +2 -2
- package/dist/assets/{Mapbox-DDJ1gHRb-legacy-NAVECUv-.js.map → Mapbox-DDJ1gHRb-legacy-DtASaFMy.js.map} +1 -1
- package/dist/assets/{Mapbox-DiD9etYJ-zR1EkiNp.js → Mapbox-DiD9etYJ-BMtTiGO7.js} +2 -2
- package/dist/assets/{Mapbox-DiD9etYJ-zR1EkiNp.js.map → Mapbox-DiD9etYJ-BMtTiGO7.js.map} +1 -1
- package/dist/assets/{Mapbox-DiD9etYJ-legacy-pThPPnNQ.js → Mapbox-DiD9etYJ-legacy-WIywO1-w.js} +2 -2
- package/dist/assets/{Mapbox-DiD9etYJ-legacy-pThPPnNQ.js.map → Mapbox-DiD9etYJ-legacy-WIywO1-w.js.map} +1 -1
- package/dist/assets/{Mapbox-DtZmt1D_-DHhJhTo8.js → Mapbox-DtZmt1D_-Dq1UD7au.js} +2 -2
- package/dist/assets/{Mapbox-DtZmt1D_-DHhJhTo8.js.map → Mapbox-DtZmt1D_-Dq1UD7au.js.map} +1 -1
- package/dist/assets/{Mapbox-DtZmt1D_-legacy-ccCiz3Pd.js → Mapbox-DtZmt1D_-legacy-CXP5-C49.js} +2 -2
- package/dist/assets/{Mapbox-DtZmt1D_-legacy-ccCiz3Pd.js.map → Mapbox-DtZmt1D_-legacy-CXP5-C49.js.map} +1 -1
- package/dist/assets/{Mapbox-u11C3LWs-B_yCTqoV.js → Mapbox-u11C3LWs-DuakH8Ji.js} +2 -2
- package/dist/assets/{Mapbox-u11C3LWs-B_yCTqoV.js.map → Mapbox-u11C3LWs-DuakH8Ji.js.map} +1 -1
- package/dist/assets/{Mapbox-u11C3LWs-legacy-D90FQvEN.js → Mapbox-u11C3LWs-legacy-ChrUMjPl.js} +2 -2
- package/dist/assets/{Mapbox-u11C3LWs-legacy-D90FQvEN.js.map → Mapbox-u11C3LWs-legacy-ChrUMjPl.js.map} +1 -1
- package/dist/assets/{Maptiler-C0oTROMk-BwaieRuC.js → Maptiler-C0oTROMk-Dz6Vkl6m.js} +2 -2
- package/dist/assets/{Maptiler-C0oTROMk-BwaieRuC.js.map → Maptiler-C0oTROMk-Dz6Vkl6m.js.map} +1 -1
- package/dist/assets/{Maptiler-C0oTROMk-legacy-Dt8ZGBQ1.js → Maptiler-C0oTROMk-legacy-B6L6FzM1.js} +2 -2
- package/dist/assets/{Maptiler-C0oTROMk-legacy-Dt8ZGBQ1.js.map → Maptiler-C0oTROMk-legacy-B6L6FzM1.js.map} +1 -1
- package/dist/assets/{Maptiler-DJScKW8p-D7sqoIWz.js → Maptiler-DJScKW8p-6YGAe8cE.js} +2 -2
- package/dist/assets/{Maptiler-DJScKW8p-D7sqoIWz.js.map → Maptiler-DJScKW8p-6YGAe8cE.js.map} +1 -1
- package/dist/assets/{Maptiler-DJScKW8p-legacy-BxKgw8sA.js → Maptiler-DJScKW8p-legacy-DEW3rPcZ.js} +2 -2
- package/dist/assets/{Maptiler-DJScKW8p-legacy-BxKgw8sA.js.map → Maptiler-DJScKW8p-legacy-DEW3rPcZ.js.map} +1 -1
- package/dist/assets/{Maptiler-DdeFS4iM-CAX4yO3w.js → Maptiler-DdeFS4iM-Brs-80yb.js} +2 -2
- package/dist/assets/{Maptiler-DdeFS4iM-CAX4yO3w.js.map → Maptiler-DdeFS4iM-Brs-80yb.js.map} +1 -1
- package/dist/assets/{Maptiler-DdeFS4iM-legacy-DsI2My96.js → Maptiler-DdeFS4iM-legacy-Ci9oroQC.js} +2 -2
- package/dist/assets/{Maptiler-DdeFS4iM-legacy-DsI2My96.js.map → Maptiler-DdeFS4iM-legacy-Ci9oroQC.js.map} +1 -1
- package/dist/assets/{Maptiler-DqeshLom-a9LD3O-1.js → Maptiler-DqeshLom-B0jdRE1n.js} +2 -2
- package/dist/assets/{Maptiler-DqeshLom-a9LD3O-1.js.map → Maptiler-DqeshLom-B0jdRE1n.js.map} +1 -1
- package/dist/assets/{Maptiler-DqeshLom-legacy-iao-6Wdy.js → Maptiler-DqeshLom-legacy-CurUmtTs.js} +2 -2
- package/dist/assets/{Maptiler-DqeshLom-legacy-iao-6Wdy.js.map → Maptiler-DqeshLom-legacy-CurUmtTs.js.map} +1 -1
- package/dist/assets/{Maptiler-YjlcPccn-BbfdNZAF.js → Maptiler-YjlcPccn-BeECNaQc.js} +2 -2
- package/dist/assets/{Maptiler-YjlcPccn-BbfdNZAF.js.map → Maptiler-YjlcPccn-BeECNaQc.js.map} +1 -1
- package/dist/assets/{Maptiler-YjlcPccn-legacy-D6AZMug8.js → Maptiler-YjlcPccn-legacy-DUPM1fwa.js} +2 -2
- package/dist/assets/{Maptiler-YjlcPccn-legacy-D6AZMug8.js.map → Maptiler-YjlcPccn-legacy-DUPM1fwa.js.map} +1 -1
- package/dist/assets/{MarkerIcon-Bc3X9WQk-ByrgCntx.js → MarkerIcon-Bc3X9WQk-BuSzLTIC.js} +2 -2
- package/dist/assets/{MarkerIcon-Bc3X9WQk-ByrgCntx.js.map → MarkerIcon-Bc3X9WQk-BuSzLTIC.js.map} +1 -1
- package/dist/assets/{MarkerIcon-Bc3X9WQk-legacy-CIGJvvJR.js → MarkerIcon-Bc3X9WQk-legacy-0n6adFAI.js} +2 -2
- package/dist/assets/{MarkerIcon-Bc3X9WQk-legacy-CIGJvvJR.js.map → MarkerIcon-Bc3X9WQk-legacy-0n6adFAI.js.map} +1 -1
- package/dist/assets/{NeighborhoodCard-CQFgsjdH.js → NeighborhoodCard-ePSiX1h0.js} +2 -2
- package/dist/assets/{NeighborhoodCard-CQFgsjdH.js.map → NeighborhoodCard-ePSiX1h0.js.map} +1 -1
- package/dist/assets/{NeighborhoodCard-legacy-CT-3ylPG.js → NeighborhoodCard-legacy-B7hL1XOX.js} +2 -2
- package/dist/assets/{NeighborhoodCard-legacy-CT-3ylPG.js.map → NeighborhoodCard-legacy-B7hL1XOX.js.map} +1 -1
- package/dist/assets/{NeighborhoodCharacteristics-w5WKGZ2K.js → NeighborhoodCharacteristics-__nE9rKT.js} +2 -2
- package/dist/assets/{NeighborhoodCharacteristics-w5WKGZ2K.js.map → NeighborhoodCharacteristics-__nE9rKT.js.map} +1 -1
- package/dist/assets/{NeighborhoodCharacteristics-legacy-CKYaXDfQ.js → NeighborhoodCharacteristics-legacy-zcamdTX5.js} +2 -2
- package/dist/assets/{NeighborhoodCharacteristics-legacy-CKYaXDfQ.js.map → NeighborhoodCharacteristics-legacy-zcamdTX5.js.map} +1 -1
- package/dist/assets/{NeighborhoodDemographics-BZrhdeYZ.js → NeighborhoodDemographics-5cGgXnRY.js} +2 -2
- package/dist/assets/{NeighborhoodDemographics-BZrhdeYZ.js.map → NeighborhoodDemographics-5cGgXnRY.js.map} +1 -1
- package/dist/assets/{NeighborhoodDemographics-legacy-BHIQ1ER7.js → NeighborhoodDemographics-legacy-c3eDH26X.js} +2 -2
- package/dist/assets/{NeighborhoodDemographics-legacy-BHIQ1ER7.js.map → NeighborhoodDemographics-legacy-c3eDH26X.js.map} +1 -1
- package/dist/assets/{NeighborhoodFeatured-DfjxzlxY.js → NeighborhoodFeatured-DIXhmlRC.js} +2 -2
- package/dist/assets/{NeighborhoodFeatured-DfjxzlxY.js.map → NeighborhoodFeatured-DIXhmlRC.js.map} +1 -1
- package/dist/assets/{NeighborhoodFeatured-legacy-DHTnv4CZ.js → NeighborhoodFeatured-legacy-lDme45yC.js} +2 -2
- package/dist/assets/{NeighborhoodFeatured-legacy-DHTnv4CZ.js.map → NeighborhoodFeatured-legacy-lDme45yC.js.map} +1 -1
- package/dist/assets/{NeighborhoodHero-DrBKD27P.js → NeighborhoodHero-Bj4FlQVV.js} +2 -2
- package/dist/assets/{NeighborhoodHero-DrBKD27P.js.map → NeighborhoodHero-Bj4FlQVV.js.map} +1 -1
- package/dist/assets/{NeighborhoodHero-legacy-BMCiD7gd.js → NeighborhoodHero-legacy-C6T-qgPK.js} +2 -2
- package/dist/assets/{NeighborhoodHero-legacy-BMCiD7gd.js.map → NeighborhoodHero-legacy-C6T-qgPK.js.map} +1 -1
- package/dist/assets/{NeighborhoodHighlights-CwoTHUIb.js → NeighborhoodHighlights-BBmVnaLl.js} +2 -2
- package/dist/assets/{NeighborhoodHighlights-CwoTHUIb.js.map → NeighborhoodHighlights-BBmVnaLl.js.map} +1 -1
- package/dist/assets/{NeighborhoodHighlights-legacy-R316wAs2.js → NeighborhoodHighlights-legacy-B2x36QRC.js} +2 -2
- package/dist/assets/{NeighborhoodHighlights-legacy-R316wAs2.js.map → NeighborhoodHighlights-legacy-B2x36QRC.js.map} +1 -1
- package/dist/assets/{NeighborhoodMap-ChZpBdAe.js → NeighborhoodMap-DwMQLhkw.js} +2 -2
- package/dist/assets/{NeighborhoodMap-ChZpBdAe.js.map → NeighborhoodMap-DwMQLhkw.js.map} +1 -1
- package/dist/assets/{NeighborhoodMap-legacy-D7V_lZQF.js → NeighborhoodMap-legacy-CugKbgSp.js} +2 -2
- package/dist/assets/{NeighborhoodMap-legacy-D7V_lZQF.js.map → NeighborhoodMap-legacy-CugKbgSp.js.map} +1 -1
- package/dist/assets/{NeighborhoodMarketTrends-DpUA8_BA.js → NeighborhoodMarketTrends-COqvs4Fz.js} +3 -3
- package/dist/assets/{NeighborhoodMarketTrends-DpUA8_BA.js.map → NeighborhoodMarketTrends-COqvs4Fz.js.map} +1 -1
- package/dist/assets/{NeighborhoodMarketTrends-legacy-18rcLpS1.js → NeighborhoodMarketTrends-legacy-DSHDUUH_.js} +2 -2
- package/dist/assets/{NeighborhoodMarketTrends-legacy-18rcLpS1.js.map → NeighborhoodMarketTrends-legacy-DSHDUUH_.js.map} +1 -1
- package/dist/assets/{NeighborhoodMatch-BLDNZBRX.js → NeighborhoodMatch-GqzEoreu.js} +2 -2
- package/dist/assets/{NeighborhoodMatch-BLDNZBRX.js.map → NeighborhoodMatch-GqzEoreu.js.map} +1 -1
- package/dist/assets/{NeighborhoodMatch-legacy-C2QyjRPr.js → NeighborhoodMatch-legacy-SGEcOXuf.js} +2 -2
- package/dist/assets/{NeighborhoodMatch-legacy-C2QyjRPr.js.map → NeighborhoodMatch-legacy-SGEcOXuf.js.map} +1 -1
- package/dist/assets/{NeighborhoodPropertyValueDrivers-CQoo-TFM.js → NeighborhoodPropertyValueDrivers-Cz4cawqR.js} +2 -2
- package/dist/assets/{NeighborhoodPropertyValueDrivers-CQoo-TFM.js.map → NeighborhoodPropertyValueDrivers-Cz4cawqR.js.map} +1 -1
- package/dist/assets/{NeighborhoodPropertyValueDrivers-legacy-B-3Ld9XX.js → NeighborhoodPropertyValueDrivers-legacy-7gVUrIgh.js} +2 -2
- package/dist/assets/{NeighborhoodPropertyValueDrivers-legacy-B-3Ld9XX.js.map → NeighborhoodPropertyValueDrivers-legacy-7gVUrIgh.js.map} +1 -1
- package/dist/assets/{NeighborhoodSchools-DMKDCbUv.js → NeighborhoodSchools-D6CPTgGE.js} +2 -2
- package/dist/assets/{NeighborhoodSchools-DMKDCbUv.js.map → NeighborhoodSchools-D6CPTgGE.js.map} +1 -1
- package/dist/assets/{NeighborhoodSchools-legacy-D_MpmqNV.js → NeighborhoodSchools-legacy-0G_dtI8q.js} +2 -2
- package/dist/assets/{NeighborhoodSchools-legacy-D_MpmqNV.js.map → NeighborhoodSchools-legacy-0G_dtI8q.js.map} +1 -1
- package/dist/assets/{NeighborhoodShowcase-CB3_rfxv.js → NeighborhoodShowcase-CRlKc8OL.js} +2 -2
- package/dist/assets/{NeighborhoodShowcase-CB3_rfxv.js.map → NeighborhoodShowcase-CRlKc8OL.js.map} +1 -1
- package/dist/assets/{NeighborhoodShowcase-legacy-B8IQbiVz.js → NeighborhoodShowcase-legacy-Bjz5_C24.js} +2 -2
- package/dist/assets/{NeighborhoodShowcase-legacy-B8IQbiVz.js.map → NeighborhoodShowcase-legacy-Bjz5_C24.js.map} +1 -1
- package/dist/assets/{NoDataContent-CFLl-Rd-.js → NoDataContent-CTxzT718.js} +2 -2
- package/dist/assets/{NoDataContent-CFLl-Rd-.js.map → NoDataContent-CTxzT718.js.map} +1 -1
- package/dist/assets/{NoDataContent-legacy-aWMMhT9c.js → NoDataContent-legacy-BWvHzb0g.js} +2 -2
- package/dist/assets/{NoDataContent-legacy-aWMMhT9c.js.map → NoDataContent-legacy-BWvHzb0g.js.map} +1 -1
- package/dist/assets/{ResizeWrapper-C7vwckhm.js → ResizeWrapper-DbYmMKOU.js} +2 -2
- package/dist/assets/{ResizeWrapper-C7vwckhm.js.map → ResizeWrapper-DbYmMKOU.js.map} +1 -1
- package/dist/assets/{ResizeWrapper-legacy-WwfLyk1y.js → ResizeWrapper-legacy-C0ua6RC5.js} +2 -2
- package/dist/assets/{ResizeWrapper-legacy-WwfLyk1y.js.map → ResizeWrapper-legacy-C0ua6RC5.js.map} +1 -1
- package/dist/assets/{ScoreCardList-PWiDx6Ra.js → ScoreCardList-B4NURGgK.js} +2 -2
- package/dist/assets/{ScoreCardList-PWiDx6Ra.js.map → ScoreCardList-B4NURGgK.js.map} +1 -1
- package/dist/assets/{ScoreCardList-legacy-BK5dq36c.js → ScoreCardList-legacy-BTRPIWUP.js} +2 -2
- package/dist/assets/{ScoreCardList-legacy-BK5dq36c.js.map → ScoreCardList-legacy-BTRPIWUP.js.map} +1 -1
- package/dist/assets/{ScoreIcon-legacy-BwaAs8hW.js → ScoreIcon-legacy-D9igp8MS.js} +2 -2
- package/dist/assets/{ScoreIcon-legacy-BwaAs8hW.js.map → ScoreIcon-legacy-D9igp8MS.js.map} +1 -1
- package/dist/assets/{ScoreIcon-CsB-usG9.js → ScoreIcon-s5-ehfPP.js} +2 -2
- package/dist/assets/{ScoreIcon-CsB-usG9.js.map → ScoreIcon-s5-ehfPP.js.map} +1 -1
- package/dist/assets/{Testing--n5Ro0Ek-B4Vejacz.js → Testing--n5Ro0Ek-Cc3RGltv.js} +2 -2
- package/dist/assets/{Testing--n5Ro0Ek-B4Vejacz.js.map → Testing--n5Ro0Ek-Cc3RGltv.js.map} +1 -1
- package/dist/assets/{Testing--n5Ro0Ek-legacy-Co29YW_f.js → Testing--n5Ro0Ek-legacy-BB0u0086.js} +2 -2
- package/dist/assets/{Testing--n5Ro0Ek-legacy-Co29YW_f.js.map → Testing--n5Ro0Ek-legacy-BB0u0086.js.map} +1 -1
- package/dist/assets/{Testing-BNJwzbRK-hEJFbzQg.js → Testing-BNJwzbRK-C1viHx8M.js} +2 -2
- package/dist/assets/{Testing-BNJwzbRK-hEJFbzQg.js.map → Testing-BNJwzbRK-C1viHx8M.js.map} +1 -1
- package/dist/assets/{Testing-BNJwzbRK-legacy-B1EdPb3k.js → Testing-BNJwzbRK-legacy-XPR_-0Eg.js} +2 -2
- package/dist/assets/{Testing-BNJwzbRK-legacy-B1EdPb3k.js.map → Testing-BNJwzbRK-legacy-XPR_-0Eg.js.map} +1 -1
- package/dist/assets/{Testing-CoRLhmNT-Cqyejow7.js → Testing-CoRLhmNT-B4pOjeZH.js} +2 -2
- package/dist/assets/{Testing-CoRLhmNT-Cqyejow7.js.map → Testing-CoRLhmNT-B4pOjeZH.js.map} +1 -1
- package/dist/assets/{Testing-CoRLhmNT-legacy-BQpWn7Bu.js → Testing-CoRLhmNT-legacy-BFVvx40w.js} +2 -2
- package/dist/assets/{Testing-CoRLhmNT-legacy-BQpWn7Bu.js.map → Testing-CoRLhmNT-legacy-BFVvx40w.js.map} +1 -1
- package/dist/assets/{Testing-DGUeGxdc-g-T4vdVq.js → Testing-DGUeGxdc-CKSlgBDu.js} +2 -2
- package/dist/assets/{Testing-DGUeGxdc-g-T4vdVq.js.map → Testing-DGUeGxdc-CKSlgBDu.js.map} +1 -1
- package/dist/assets/{Testing-DGUeGxdc-legacy-GwpDyiTO.js → Testing-DGUeGxdc-legacy-B2yBRluh.js} +2 -2
- package/dist/assets/{Testing-DGUeGxdc-legacy-GwpDyiTO.js.map → Testing-DGUeGxdc-legacy-B2yBRluh.js.map} +1 -1
- package/dist/assets/{Testing-DzWAcbhL-BJOouF0A.js → Testing-DzWAcbhL-B5JOmJod.js} +2 -2
- package/dist/assets/{Testing-DzWAcbhL-BJOouF0A.js.map → Testing-DzWAcbhL-B5JOmJod.js.map} +1 -1
- package/dist/assets/{Testing-DzWAcbhL-legacy-CYECRHWo.js → Testing-DzWAcbhL-legacy-20VBltE2.js} +2 -2
- package/dist/assets/{Testing-DzWAcbhL-legacy-CYECRHWo.js.map → Testing-DzWAcbhL-legacy-20VBltE2.js.map} +1 -1
- package/dist/assets/{TitleHeader-CepE-7Y-.js → TitleHeader-Be2YRN93.js} +2 -2
- package/dist/assets/{TitleHeader-CepE-7Y-.js.map → TitleHeader-Be2YRN93.js.map} +1 -1
- package/dist/assets/{TitleHeader-legacy-UtQZo396.js → TitleHeader-legacy-CzXSoMFC.js} +2 -2
- package/dist/assets/{TitleHeader-legacy-UtQZo396.js.map → TitleHeader-legacy-CzXSoMFC.js.map} +1 -1
- package/dist/assets/{Trans-B1zRm9WH.js → Trans-DntniXa9.js} +2 -2
- package/dist/assets/{Trans-B1zRm9WH.js.map → Trans-DntniXa9.js.map} +1 -1
- package/dist/assets/{Trans-legacy-B47WOepl.js → Trans-legacy-B9t4MV_C.js} +2 -2
- package/dist/assets/{Trans-legacy-B47WOepl.js.map → Trans-legacy-B9t4MV_C.js.map} +1 -1
- package/dist/assets/{ValidateOptions-DsfMKmBQ.js → ValidateOptions-BqL9iY9R.js} +2 -2
- package/dist/assets/{ValidateOptions-DsfMKmBQ.js.map → ValidateOptions-BqL9iY9R.js.map} +1 -1
- package/dist/assets/{ValidateOptions-legacy-CtRpWaj6.js → ValidateOptions-legacy-BQ69tin-.js} +2 -2
- package/dist/assets/{ValidateOptions-legacy-CtRpWaj6.js.map → ValidateOptions-legacy-BQ69tin-.js.map} +1 -1
- package/dist/assets/{dist-DrX-uh0V.js → dist-C_ktdPsv.js} +2 -2
- package/dist/assets/{dist-DrX-uh0V.js.map → dist-C_ktdPsv.js.map} +1 -1
- package/dist/assets/{dist-legacy-CJvY2ayv.js → dist-legacy-DIwOLBcZ.js} +2 -2
- package/dist/assets/{dist-legacy-CJvY2ayv.js.map → dist-legacy-DIwOLBcZ.js.map} +1 -1
- package/dist/assets/{getMapProviderConfig-DbC8zRUF.js → getMapProviderConfig-D9e8KNYU.js} +3 -3
- package/dist/assets/{getMapProviderConfig-DbC8zRUF.js.map → getMapProviderConfig-D9e8KNYU.js.map} +1 -1
- package/dist/assets/{getMapProviderConfig-legacy-CwpYg6Bq.js → getMapProviderConfig-legacy-DVBUhWqR.js} +2 -2
- package/dist/assets/{getMapProviderConfig-legacy-CwpYg6Bq.js.map → getMapProviderConfig-legacy-DVBUhWqR.js.map} +1 -1
- package/dist/assets/{index-Bi8h_BNl.js → index-PbHyodiU.js} +3 -3
- package/dist/assets/{index-Bi8h_BNl.js.map → index-PbHyodiU.js.map} +1 -1
- package/dist/assets/{index-legacy-DF60d_4Z.js → index-legacy-CYps6nGB.js} +2 -2
- package/dist/assets/{index-legacy-DF60d_4Z.js.map → index-legacy-CYps6nGB.js.map} +1 -1
- package/dist/assets/{index.es-BkZlVTZH.js → index.es-DuM-WVhV.js} +2 -2
- package/dist/assets/{index.es-BkZlVTZH.js.map → index.es-DuM-WVhV.js.map} +1 -1
- package/dist/assets/{index.es-legacy-DdMTxXQK.js → index.es-legacy-Cz2m6e4L.js} +2 -2
- package/dist/assets/{index.es-legacy-DdMTxXQK.js.map → index.es-legacy-Cz2m6e4L.js.map} +1 -1
- package/dist/assets/{mapbox-jb8Zev6T-DbABbE_7.js → mapbox-jb8Zev6T-BgSpiKob.js} +2 -2
- package/dist/assets/{mapbox-jb8Zev6T-DbABbE_7.js.map → mapbox-jb8Zev6T-BgSpiKob.js.map} +1 -1
- package/dist/assets/{mapbox-jb8Zev6T-legacy-DkLTUrvZ.js → mapbox-jb8Zev6T-legacy-hBjjoWXX.js} +2 -2
- package/dist/assets/{mapbox-jb8Zev6T-legacy-DkLTUrvZ.js.map → mapbox-jb8Zev6T-legacy-hBjjoWXX.js.map} +1 -1
- package/dist/assets/{maplibre-CUYkxr-D-DPcOY-Lp.js → maplibre-CUYkxr-D-BJWmGVry.js} +2 -2
- package/dist/assets/{maplibre-CUYkxr-D-DPcOY-Lp.js.map → maplibre-CUYkxr-D-BJWmGVry.js.map} +1 -1
- package/dist/assets/{maplibre-CUYkxr-D-legacy-Ct1K6aaN.js → maplibre-CUYkxr-D-legacy-BNqtRzVB.js} +2 -2
- package/dist/assets/{maplibre-CUYkxr-D-legacy-Ct1K6aaN.js.map → maplibre-CUYkxr-D-legacy-BNqtRzVB.js.map} +1 -1
- package/dist/assets/neighborhood-fallback-CizB5oi9.js.map +1 -1
- package/dist/assets/neighborhood-fallback-legacy-Bu1BwGpC.js.map +1 -1
- package/dist/assets/{sdks-CIuvHxGG.js → sdks-BTkz21XL.js} +2 -2
- package/dist/assets/{sdks-CIuvHxGG.js.map → sdks-BTkz21XL.js.map} +1 -1
- package/dist/assets/{sdks-legacy-3YngGDux.js → sdks-legacy-3sJ2n28B.js} +2 -2
- package/dist/assets/{sdks-legacy-3YngGDux.js.map → sdks-legacy-3sJ2n28B.js.map} +1 -1
- package/dist/assets/{useDemographicsData-Dz3Pu-Ht.js → useDemographicsData-DKScK522.js} +2 -2
- package/dist/assets/{useDemographicsData-Dz3Pu-Ht.js.map → useDemographicsData-DKScK522.js.map} +1 -1
- package/dist/assets/{useDemographicsData-legacy-BD0OVn1e.js → useDemographicsData-legacy-BsoUaI9P.js} +2 -2
- package/dist/assets/{useDemographicsData-legacy-BD0OVn1e.js.map → useDemographicsData-legacy-BsoUaI9P.js.map} +1 -1
- package/dist/assets/{useGeographies-CtCPN011.js → useGeographies-DejQbRC9.js} +2 -2
- package/dist/assets/{useGeographies-CtCPN011.js.map → useGeographies-DejQbRC9.js.map} +1 -1
- package/dist/assets/{useGeographies-legacy-BmNvVGxt.js → useGeographies-legacy-B5ciev2M.js} +2 -2
- package/dist/assets/{useGeographies-legacy-BmNvVGxt.js.map → useGeographies-legacy-B5ciev2M.js.map} +1 -1
- package/dist/assets/{useIsMobile-DqKgF2mC.js → useIsMobile-Co5SddxR.js} +2 -2
- package/dist/assets/{useIsMobile-DqKgF2mC.js.map → useIsMobile-Co5SddxR.js.map} +1 -1
- package/dist/assets/{useIsMobile-legacy-jEoaA3sZ.js → useIsMobile-legacy-B53LlWR8.js} +2 -2
- package/dist/assets/{useIsMobile-legacy-jEoaA3sZ.js.map → useIsMobile-legacy-B53LlWR8.js.map} +1 -1
- package/dist/assets/{useLocation-DnI9ftE5.js → useLocation-DUSQPRn5.js} +2 -2
- package/dist/assets/{useLocation-DnI9ftE5.js.map → useLocation-DUSQPRn5.js.map} +1 -1
- package/dist/assets/{useLocation-legacy-UNiEBLrQ.js → useLocation-legacy-CYzO18ij.js} +2 -2
- package/dist/assets/{useLocation-legacy-UNiEBLrQ.js.map → useLocation-legacy-CYzO18ij.js.map} +1 -1
- package/dist/assets/{useProfiles-DKmVxUf9.js → useProfiles-Dv9s6TWw.js} +2 -2
- package/dist/assets/{useProfiles-DKmVxUf9.js.map → useProfiles-Dv9s6TWw.js.map} +1 -1
- package/dist/assets/{useProfiles-legacy-OVEEk1dZ.js → useProfiles-legacy-DF0NXWwe.js} +2 -2
- package/dist/assets/{useProfiles-legacy-OVEEk1dZ.js.map → useProfiles-legacy-DF0NXWwe.js.map} +1 -1
- package/dist/assets/{useSchools-BC9vy4Xx.js → useSchools-Dqdy1J-D.js} +2 -2
- package/dist/assets/{useSchools-BC9vy4Xx.js.map → useSchools-Dqdy1J-D.js.map} +1 -1
- package/dist/assets/{useSchools-legacy-g8-dezaK.js → useSchools-legacy-CCHNqc2P.js} +2 -2
- package/dist/assets/{useSchools-legacy-g8-dezaK.js.map → useSchools-legacy-CCHNqc2P.js.map} +1 -1
- package/dist/assets/{useScores-BZGEEU4U.js → useScores-C4T2-LUO.js} +2 -2
- package/dist/assets/{useScores-BZGEEU4U.js.map → useScores-C4T2-LUO.js.map} +1 -1
- package/dist/assets/{useScores-legacy-C9icRMIu.js → useScores-legacy-BludORUw.js} +2 -2
- package/dist/assets/{useScores-legacy-C9icRMIu.js.map → useScores-legacy-BludORUw.js.map} +1 -1
- package/dist/index.html +2 -2
- package/dist/types/sdks/LocalContent/hooks/useSurveyTrigger/SurveyTriggerProvider/index.test.js +11 -9
- package/dist/types/sdks/LocalContent/hooks/useSurveyTrigger/SurveyTriggerProvider/index.test.js.map +1 -1
- package/dist/types/sdks/LocalContent/hooks/useSurveyTrigger/index.test.js +19 -5
- package/dist/types/sdks/LocalContent/hooks/useSurveyTrigger/index.test.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/LocalContent-
|
|
2
|
-
import'data:text/javascript,"assets/index-Bi8h_BNl.js";if(!import.meta.resolve)throw Error("import.meta.resolve not supported")';export function __vite_legacy_guard(){import.meta.url,import("_").catch(()=>1),async function*(){}().next()}import{a as e,i as t,n,r,t as o}from"./rolldown-runtime-C_ttsnZz.js";import{c as i,l as s}from"./google-maps-vendor-DvfEEdRU.js";!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))t(e);new MutationObserver(e=>{for(const n of e)if("childList"===n.type)for(const e of n.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&t(e)}).observe(document,{childList:!0,subtree:!0})}function t(e){if(e.ep)return;e.ep=!0;const t=function(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?t.credentials="include":"anonymous"===e.crossOrigin?t.credentials="omit":t.credentials="same-origin",t}(e);fetch(e.href,t)}}();var a=o(e=>{var t=i();e.createRoot=t.createRoot,e.hydrateRoot=t.hydrateRoot}),c="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,l="8.55.0",u=globalThis;function d(e,t,n){const r=n||u,o=r.__SENTRY__=r.__SENTRY__||{},i=o[l]=o["8.55.0"]||{};return i[e]||(i[e]=t())}var h="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,p=["debug","info","warn","error","log","assert","trace"],f={};function g(e){if(!("console"in u))return e();const t=u.console,n={},r=Object.keys(f);r.forEach(e=>{const r=f[e];n[e]=t[e],t[e]=r});try{return e()}finally{r.forEach(e=>{t[e]=n[e]})}}var m=d("logger",function(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return h?p.forEach(n=>{t[n]=(...t)=>{e&&g(()=>{u.console[n](`Sentry Logger [${n}]:`,...t)})}}):p.forEach(e=>{t[e]=()=>{}}),t}),v=/\(error: (.*)\)/,y=/captureMessage|captureException/;function b(...e){const t=e.sort((e,t)=>e[0]-t[0]).map(e=>e[1]);return(e,n=0,r=0)=>{const o=[],i=e.split("\n");for(let s=n;s<i.length;s++){const e=i[s];if(e.length>1024)continue;const n=v.test(e)?e.replace(v,"$1"):e;if(!n.match(/\S*Error: /)){for(const e of t){const t=e(n);if(t){o.push(t);break}}if(o.length>=50+r)break}}return function(e){if(!e.length)return[];const t=Array.from(e);/sentryWrapped/.test(w(t).function||"")&&t.pop();t.reverse(),y.test(w(t).function||"")&&(t.pop(),y.test(w(t).function||"")&&t.pop());return t.slice(0,50).map(e=>({...e,filename:e.filename||w(t).filename,function:e.function||"?"}))}(o.slice(r))}}function w(e){return e[e.length-1]||{}}var x="<anonymous>";function _(e){try{return e&&"function"==typeof e&&e.name||x}catch(cv){return x}}function E(e){const t=e.exception;if(t){const e=[];try{return t.values.forEach(t=>{t.stacktrace.frames&&e.push(...t.stacktrace.frames)}),e}catch(n){return}}}var S={},k={};function O(e,t){S[e]=S[e]||[],S[e].push(t)}function C(e,t){if(!k[e]){k[e]=!0;try{t()}catch(cv){h&&m.error(`Error while instrumenting ${e}`,cv)}}}function P(e,t){const n=e&&S[e];if(n)for(const r of n)try{r(t)}catch(cv){h&&m.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${_(r)}\nError:`,cv)}}var R=null;function L(){R=u.onerror,u.onerror=function(e,t,n,r,o){return P("error",{column:r,error:o,line:n,msg:e,url:t}),!!R&&R.apply(this,arguments)},u.onerror.__SENTRY_INSTRUMENTED__=!0}var T=null;function D(){T=u.onunhandledrejection,u.onunhandledrejection=function(e){return P("unhandledrejection",e),!T||T.apply(this,arguments)},u.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}function N(){return j(u),u}function j(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||"8.55.0",t[l]=t["8.55.0"]||{}}var A=Object.prototype.toString;function I(e){switch(A.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return K(e,Error)}}function M(e,t){return A.call(e)===`[object ${t}]`}function $(e){return M(e,"ErrorEvent")}function F(e){return M(e,"DOMError")}function H(e){return M(e,"String")}function U(e){return"object"==typeof e&&null!==e&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function q(e){return null===e||U(e)||"object"!=typeof e&&"function"!=typeof e}function B(e){return M(e,"Object")}function z(e){return"undefined"!=typeof Event&&K(e,Event)}function V(e){return Boolean(e&&e.then&&"function"==typeof e.then)}function K(e,t){try{return e instanceof t}catch(Ri){return!1}}function W(e){return!("object"!=typeof e||null===e||!e.__isVue&&!e._isVue)}var G=u;function J(e,t={}){if(!e)return"<unknown>";try{let n=e;const r=5,o=[];let i=0,s=0;const a=" > ",c=3;let l;const u=Array.isArray(t)?t:t.keyAttrs,d=!Array.isArray(t)&&t.maxStringLength||80;for(;n&&i++<r&&(l=Y(n,u),!("html"===l||i>1&&s+o.length*c+l.length>=d));)o.push(l),s+=l.length,n=n.parentNode;return o.reverse().join(a)}catch(n){return"<unknown>"}}function Y(e,t){const n=e,r=[];if(!n||!n.tagName)return"";if(G.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}r.push(n.tagName.toLowerCase());const o=t&&t.length?t.filter(e=>n.getAttribute(e)).map(e=>[e,n.getAttribute(e)]):null;if(o&&o.length)o.forEach(e=>{r.push(`[${e[0]}="${e[1]}"]`)});else{n.id&&r.push(`#${n.id}`);const e=n.className;if(e&&H(e)){const t=e.split(/\s+/);for(const e of t)r.push(`.${e}`)}}for(const i of["aria-label","type","name","title","alt"]){const e=n.getAttribute(i);e&&r.push(`[${i}="${e}"]`)}return r.join("")}function Q(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}function X(e,t){if(!Array.isArray(e))return"";const n=[];for(let r=0;r<e.length;r++){const t=e[r];try{W(t)?n.push("[VueViewModel]"):n.push(String(t))}catch(cv){n.push("[value cannot be serialized]")}}return n.join(t)}function Z(e,t,n=!1){return!!H(e)&&(M(t,"RegExp")?t.test(e):!!H(t)&&(n?e===t:e.includes(t)))}function ee(e,t=[],n=!1){return t.some(t=>Z(e,t,n))}function te(e,t,n){if(!(t in e))return;const r=e[t],o=n(r);"function"==typeof o&&re(o,r);try{e[t]=o}catch(cv){h&&m.log(`Failed to replace method "${t}" in object`,e)}}function ne(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch(r){h&&m.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function re(e,t){try{e.prototype=t.prototype=t.prototype||{},ne(e,"__sentry_original__",t)}catch(n){}}function oe(e){return e.__sentry_original__}function ie(e){if(I(e))return{message:e.message,name:e.name,stack:e.stack,...ae(e)};if(z(e)){const t={type:e.type,target:se(e.target),currentTarget:se(e.currentTarget),...ae(e)};return"undefined"!=typeof CustomEvent&&K(e,CustomEvent)&&(t.detail=e.detail),t}return e}function se(e){try{return t=e,"undefined"!=typeof Element&&K(t,Element)?J(e):Object.prototype.toString.call(e)}catch(n){return"<unknown>"}var t}function ae(e){if("object"==typeof e&&null!==e){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}return{}}function ce(e){return le(e,new Map)}function le(e,t){if(function(e){if(!B(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||"Object"===t}catch(t){return!0}}(e)){const n=t.get(e);if(void 0!==n)return n;const r={};t.set(e,r);for(const o of Object.getOwnPropertyNames(e))void 0!==e[o]&&(r[o]=le(e[o],t));return r}if(Array.isArray(e)){const n=t.get(e);if(void 0!==n)return n;const r=[];return t.set(e,r),e.forEach(e=>{r.push(le(e,t))}),r}return e}function ue(){return Date.now()/1e3}var de,he=function(){const{performance:e}=u;if(!e||!e.now)return ue;const t=Date.now()-e.now(),n=null==e.timeOrigin?t:e.timeOrigin;return()=>(n+e.now())/1e3}();(()=>{const{performance:e}=u;if(!e||!e.now)return void 0;const t=36e5,n=e.now(),r=Date.now(),o=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,i=o<t,s=e.timing&&e.timing.navigationStart,a="number"==typeof s?Math.abs(s+n-r):t;(i||a<t)&&(o<=a&&e.timeOrigin)})();function pe(){const e=u,t=e.crypto||e.msCrypto;let n=()=>16*Math.random();try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{const e=new Uint8Array(1);return t.getRandomValues(e),e[0]})}catch(Mo){}return"10000000100040008000100000000000".replace(/[018]/g,e=>(e^(15&n())>>e/4).toString(16))}function fe(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function ge(e){const{message:t,event_id:n}=e;if(t)return t;const r=fe(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function me(e,t,n){const r=e.exception=e.exception||{},o=r.values=r.values||[],i=o[0]=o[0]||{};i.value||(i.value=t||""),i.type||(i.type=n||"Error")}function ve(e,t){const n=fe(e);if(!n)return;const r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...t},t&&"data"in t){const e={...r&&r.data,...t.data};n.mechanism.data=e}}function ye(e){if(function(e){try{return e.__sentry_captured__}catch(cv){}}(e))return!0;try{ne(e,"__sentry_captured__",!0)}catch(t){}return!1}function be(e){return new xe(t=>{t(e)})}function we(e){return new xe((t,n)=>{n(e)})}!function(e){e[e.PENDING=0]="PENDING";e[e.RESOLVED=1]="RESOLVED";e[e.REJECTED=2]="REJECTED"}(de||(de={}));var xe=class e{constructor(t){e.prototype.__init.call(this),e.prototype.__init2.call(this),e.prototype.__init3.call(this),e.prototype.__init4.call(this),this._state=de.PENDING,this._handlers=[];try{t(this._resolve,this._reject)}catch(cv){this._reject(cv)}}then(t,n){return new e((e,r)=>{this._handlers.push([!1,n=>{if(t)try{e(t(n))}catch(cv){r(cv)}else e(n)},t=>{if(n)try{e(n(t))}catch(cv){r(cv)}else r(t)}]),this._executeHandlers()})}catch(e){return this.then(e=>e,e)}finally(t){return new e((e,n)=>{let r,o;return this.then(e=>{o=!1,r=e,t&&t()},e=>{o=!0,r=e,t&&t()}).then(()=>{o?n(r):e(r)})})}__init(){this._resolve=e=>{this._setResult(de.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(de.REJECTED,e)}}__init3(){this._setResult=(e,t)=>{this._state===de.PENDING&&(V(t)?t.then(this._resolve,this._reject):(this._state=e,this._value=t,this._executeHandlers()))}}__init4(){this._executeHandlers=()=>{if(this._state===de.PENDING)return;const e=this._handlers.slice();this._handlers=[],e.forEach(e=>{e[0]||(this._state===de.RESOLVED&&e[1](this._value),this._state===de.REJECTED&&e[2](this._value),e[0]=!0)})}}};function _e(e){const t=he(),n={sid:pe(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(e){return ce({sid:`${e.sid}`,init:e.init,started:new Date(1e3*e.started).toISOString(),timestamp:new Date(1e3*e.timestamp).toISOString(),status:e.status,errors:e.errors,did:"number"==typeof e.did||"string"==typeof e.did?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}(n)};return e&&Ee(n,e),n}function Ee(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||he(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:pe()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{const t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}function Se(){return pe()}function ke(){return pe().substring(16)}function Oe(e,t,n=2){if(!t||"object"!=typeof t||n<=0)return t;if(e&&t&&0===Object.keys(t).length)return e;const r={...e};for(const o in t)Object.prototype.hasOwnProperty.call(t,o)&&(r[o]=Oe(r[o],t[o],n-1));return r}var Ce="_sentrySpan";function Pe(e,t){t?ne(e,Ce,t):delete e[Ce]}function Re(e){return e[Ce]}var Le=class e{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:Se(),spanId:ke()}}clone(){const t=new e;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._extra={...this._extra},t._contexts={...this._contexts},this._contexts.flags&&(t._contexts.flags={values:[...this._contexts.flags.values]}),t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._requestSession=this._requestSession,t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,Pe(t,Re(this)),t}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&Ee(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;const t="function"==typeof e?e(this):e,[n,r]=t instanceof Le?[t.getScopeData(),t.getRequestSession()]:B(t)?[e,e.requestSession]:[],{tags:o,extra:i,user:s,contexts:a,level:c,fingerprint:l=[],propagationContext:u}=n||{};return this._tags={...this._tags,...o},this._extra={...this._extra,...i},this._contexts={...this._contexts,...a},s&&Object.keys(s).length&&(this._user=s),c&&(this._level=c),l.length&&(this._fingerprint=l),u&&(this._propagationContext=u),r&&(this._requestSession=r),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._session=void 0,Pe(this,void 0),this._attachments=[],this.setPropagationContext({traceId:Se()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){const n="number"==typeof t?t:100;if(n<=0)return this;const r={timestamp:ue(),...e};return this._breadcrumbs.push(r),this._breadcrumbs.length>n&&(this._breadcrumbs=this._breadcrumbs.slice(-n),this._client&&this._client.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:Re(this)}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=Oe(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext={spanId:ke(),...e},this}getPropagationContext(){return this._propagationContext}captureException(e,t){const n=t&&t.event_id?t.event_id:pe();if(!this._client)return m.warn("No client configured on scope - will not capture exception!"),n;const r=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:r,...t,event_id:n},this),n}captureMessage(e,t,n){const r=n&&n.event_id?n.event_id:pe();if(!this._client)return m.warn("No client configured on scope - will not capture message!"),r;const o=new Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:o,...n,event_id:r},this),r}captureEvent(e,t){const n=t&&t.event_id?t.event_id:pe();return this._client?(this._client.captureEvent(e,{...t,event_id:n},this),n):(m.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}};var Te=class{constructor(e,t){let n,r;n=e||new Le,r=t||new Le,this._stack=[{scope:n}],this._isolationScope=r}withScope(e){const t=this._pushScope();let n;try{n=e(t)}catch(cv){throw this._popScope(),cv}return V(n)?n.then(e=>(this._popScope(),e),e=>{throw this._popScope(),e}):(this._popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return!(this._stack.length<=1)&&!!this._stack.pop()}};function De(){const e=j(N());return e.stack=e.stack||new Te(d("defaultCurrentScope",()=>new Le),d("defaultIsolationScope",()=>new Le))}function Ne(e){return De().withScope(e)}function je(e,t){const n=De();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function Ae(e){return De().withScope(()=>e(De().getIsolationScope()))}function Ie(e){const t=j(e);return t.acs?t.acs:{withIsolationScope:Ae,withScope:Ne,withSetScope:je,withSetIsolationScope:(e,t)=>Ae(t),getCurrentScope:()=>De().getScope(),getIsolationScope:()=>De().getIsolationScope()}}function Me(){return Ie(N()).getCurrentScope()}function $e(){return Ie(N()).getIsolationScope()}function Fe(){return Me().getClient()}function He(e){const{traceId:t,spanId:n,parentSpanId:r}=e.getPropagationContext();return ce({trace_id:t,span_id:n,parent_span_id:r})}function Ue(e){const t=e._sentryMetrics;if(!t)return;const n={};for(const[,[r,o]]of t)(n[r]||(n[r]=[])).push(ce(o));return n}var qe=/^sentry-/;function Be(e){const t=function(e){if(!e||!H(e)&&!Array.isArray(e))return;return Array.isArray(e)?e.reduce((e,t)=>{const n=ze(t);return Object.entries(n).forEach(([t,n])=>{e[t]=n}),e},{}):ze(e)}(e);if(!t)return;const n=Object.entries(t).reduce((e,[t,n])=>{if(t.match(qe)){e[t.slice(7)]=n}return e},{});return Object.keys(n).length>0?n:void 0}function ze(e){return e.split(",").map(e=>e.split("=").map(e=>decodeURIComponent(e.trim()))).reduce((e,[t,n])=>(t&&n&&(e[t]=n),e),{})}var Ve=!1;function Ke(e){const{spanId:t,traceId:n,isRemote:r}=e.spanContext();return ce({parent_span_id:r?t:Je(e).parent_span_id,span_id:r?ke():t,trace_id:n})}function We(e){return"number"==typeof e?Ge(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?Ge(e.getTime()):he()}function Ge(e){return e>9999999999?e/1e3:e}function Je(e){if(function(e){return"function"==typeof e.getSpanJSON}(e))return e.getSpanJSON();try{const{spanId:t,traceId:n}=e.spanContext();if(function(e){const t=e;return!!(t.attributes&&t.startTime&&t.name&&t.endTime&&t.status)}(e)){const{attributes:r,startTime:o,name:i,endTime:s,parentSpanId:a,status:c}=e;return ce({span_id:t,trace_id:n,data:r,description:i,parent_span_id:a,start_timestamp:We(o),timestamp:We(s)||void 0,status:Ye(c),op:r["sentry.op"],origin:r["sentry.origin"],_metrics_summary:Ue(e)})}return{span_id:t,trace_id:n}}catch(cv){return{}}}function Ye(e){if(e&&0!==e.code)return 1===e.code?"ok":e.message||"unknown_error"}function Qe(e){return e._sentryRootSpan||e}function Xe(){Ve||(g(()=>{console.warn("[Sentry] Deprecation warning: Returning null from `beforeSendSpan` will be disallowed from SDK version 9.0.0 onwards. The callback will only support mutating spans. To drop certain spans, configure the respective integrations directly.")}),Ve=!0)}var Ze="production";function et(e,t){const n=t.getOptions(),{publicKey:r}=t.getDsn()||{},o=ce({environment:n.environment||"production",release:n.release,public_key:r,trace_id:e});return t.emit("createDsc",o),o}function tt(e,t){const n=t.getPropagationContext();return n.dsc||et(n.traceId,e)}function nt(e){const t=Fe();if(!t)return{};const n=Qe(e),r=n._frozenDsc;if(r)return r;const o=n.spanContext().traceState,i=o&&o.get("sentry.dsc"),s=i&&Be(i);if(s)return s;const a=et(e.spanContext().traceId,t),c=Je(n),l=c.data||{},u=l["sentry.sample_rate"];null!=u&&(a.sample_rate=`${u}`);const d=l["sentry.source"],h=c.description;return"url"!==d&&h&&(a.transaction=h),function(e){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const t=Fe(),n=e||t&&t.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}()&&(a.sampled=String(function(e){const{traceFlags:t}=e.spanContext();return 1===t}(n))),t.emit("createDsc",a,n),a}var rt,ot=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function it(e,t=!1){const{host:n,path:r,pass:o,port:i,projectId:s,protocol:a,publicKey:c}=e;return`${a}://${c}${t&&o?`:${o}`:""}@${n}${i?`:${i}`:""}/${r?`${r}/`:r}${s}`}function st(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function at(e){const t="string"==typeof e?function(e){const t=ot.exec(e);if(!t)return void g(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});const[n,r,o="",i="",s="",a=""]=t.slice(1);let c="",l=a;const u=l.split("/");if(u.length>1&&(c=u.slice(0,-1).join("/"),l=u.pop()),l){const e=l.match(/^\d+/);e&&(l=e[0])}return st({host:i,pass:o,path:c,projectId:l,port:s,protocol:n,publicKey:r})}(e):st(e);if(t&&function(e){if(!h)return!0;const{port:t,projectId:n,protocol:r}=e;return!(["protocol","publicKey","host","projectId"].find(t=>!e[t]&&(m.error(`Invalid Sentry Dsn: ${t} missing`),!0))||(n.match(/^\d+$/)?function(e){return"http"===e||"https"===e}(r)?t&&isNaN(parseInt(t,10))&&(m.error(`Invalid Sentry Dsn: Invalid port ${t}`),1):(m.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),1):(m.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),1)))}(t))return t}var ct=n(()=>{rt=globalThis||self});function lt(e,t=100,n=1/0){try{return dt("",e,t,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function ut(e,t=3,n=102400){const r=lt(e,t);return o=r,function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(o))>n?ut(e,t-1,n):r;var o}function dt(e,t,n=1/0,r=1/0,o=function(){const e="function"==typeof WeakSet,t=e?new WeakSet:[];return[function(n){if(e)return!!t.has(n)||(t.add(n),!1);for(let e=0;e<t.length;e++)if(t[e]===n)return!0;return t.push(n),!1},function(n){if(e)t.delete(n);else for(let e=0;e<t.length;e++)if(t[e]===n){t.splice(e,1);break}}]}()){const[i,s]=o;if(null==t||["boolean","string"].includes(typeof t)||"number"==typeof t&&Number.isFinite(t))return t;const a=function(e,t){try{if("domain"===e&&t&&"object"==typeof t&&t._events)return"[Domain]";if("domainEmitter"===e)return"[DomainEmitter]";if(void 0!==rt&&t===rt)return"[Global]";if("undefined"!=typeof window&&t===window)return"[Window]";if("undefined"!=typeof document&&t===document)return"[Document]";if(W(t))return"[VueViewModel]";if(B(n=t)&&"nativeEvent"in n&&"preventDefault"in n&&"stopPropagation"in n)return"[SyntheticEvent]";if("number"==typeof t&&!Number.isFinite(t))return`[${t}]`;if("function"==typeof t)return`[Function: ${_(t)}]`;if("symbol"==typeof t)return`[${String(t)}]`;if("bigint"==typeof t)return`[BigInt: ${String(t)}]`;const r=function(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}(t);return/^HTML(\w*)Element$/.test(r)?`[HTMLElement: ${r}]`:`[object ${r}]`}catch(r){return`**non-serializable** (${r})`}var n}(e,t);if(!a.startsWith("[object "))return a;if(t.__sentry_skip_normalization__)return t;const c="number"==typeof t.__sentry_override_normalization_depth__?t.__sentry_override_normalization_depth__:n;if(0===c)return a.replace("object ","");if(i(t))return"[Circular ~]";const l=t;if(l&&"function"==typeof l.toJSON)try{return dt("",l.toJSON(),c-1,r,o)}catch(p){}const u=Array.isArray(t)?[]:{};let d=0;const h=ie(t);for(const f in h){if(!Object.prototype.hasOwnProperty.call(h,f))continue;if(d>=r){u[f]="[MaxProperties ~]";break}const e=h[f];u[f]=dt(f,e,c-1,r,o),d++}return s(t),u}function ht(e,t=[]){return[e,t]}function pt(e,t){const[n,r]=e;return[n,[...r,t]]}function ft(e,t){const n=e[1];for(const r of n){if(t(r,r[0].type))return!0}return!1}function gt(e){return u.__SENTRY__&&u.__SENTRY__.encodePolyfill?u.__SENTRY__.encodePolyfill(e):(new TextEncoder).encode(e)}function mt(e){const[t,n]=e;let r=JSON.stringify(t);function o(e){"string"==typeof r?r="string"==typeof e?r+e:[gt(r),e]:r.push("string"==typeof e?gt(e):e)}for(const i of n){const[e,t]=i;if(o(`\n${JSON.stringify(e)}\n`),"string"==typeof t||t instanceof Uint8Array)o(t);else{let e;try{e=JSON.stringify(t)}catch(cv){e=JSON.stringify(lt(t))}o(e)}}return"string"==typeof r?r:function(e){const t=e.reduce((e,t)=>e+t.length,0),n=new Uint8Array(t);let r=0;for(const o of e)n.set(o,r),r+=o.length;return n}(r)}function vt(e){const t="string"==typeof e.data?gt(e.data):e.data;return[ce({type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),t]}ct();var yt,bt,wt,xt={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket",raw_security:"security"};function _t(e){return xt[e]}function Et(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function St(e,t,n,r){const o=Et(n),i=e.type&&"replay_event"!==e.type?e.type:"event";!function(e,t){t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]])}(e,n&&n.sdk);const s=function(e,t,n,r){const o=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:it(r)},...o&&{trace:ce({...o})}}}(e,o,r,t);return delete e.sdkProcessingMetadata,ht(s,[[{type:i},e]])}function kt(e,t,n,r=0){return new xe((o,i)=>{const s=e[r];if(null===t||"function"!=typeof s)o(t);else{const a=s({...t},n);c&&s.id&&null===a&&m.log(`Event processor "${s.id}" dropped event`),V(a)?a.then(t=>kt(e,t,n,r+1).then(o)).then(null,i):kt(e,a,n,r+1).then(o).then(null,i)}})}function Ot(e,t){const{fingerprint:n,span:r,breadcrumbs:o,sdkProcessingMetadata:i}=t;!function(e,t){const{extra:n,tags:r,user:o,contexts:i,level:s,transactionName:a}=t,c=ce(n);c&&Object.keys(c).length&&(e.extra={...c,...e.extra});const l=ce(r);l&&Object.keys(l).length&&(e.tags={...l,...e.tags});const u=ce(o);u&&Object.keys(u).length&&(e.user={...u,...e.user});const d=ce(i);d&&Object.keys(d).length&&(e.contexts={...d,...e.contexts});s&&(e.level=s);a&&"transaction"!==e.type&&(e.transaction=a)}(e,t),r&&function(e,t){e.contexts={trace:Ke(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:nt(t),...e.sdkProcessingMetadata};const n=Je(Qe(t)).description;n&&!e.transaction&&"transaction"===e.type&&(e.transaction=n)}(e,r),function(e,t){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],t&&(e.fingerprint=e.fingerprint.concat(t));e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}(e,n),function(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}(e,o),function(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}(e,i)}function Ct(e,t){const{extra:n,tags:r,user:o,contexts:i,level:s,sdkProcessingMetadata:a,breadcrumbs:c,fingerprint:l,eventProcessors:u,attachments:d,propagationContext:h,transactionName:p,span:f}=t;Pt(e,"extra",n),Pt(e,"tags",r),Pt(e,"user",o),Pt(e,"contexts",i),e.sdkProcessingMetadata=Oe(e.sdkProcessingMetadata,a,2),s&&(e.level=s),p&&(e.transactionName=p),f&&(e.span=f),c.length&&(e.breadcrumbs=[...e.breadcrumbs,...c]),l.length&&(e.fingerprint=[...e.fingerprint,...l]),u.length&&(e.eventProcessors=[...e.eventProcessors,...u]),d.length&&(e.attachments=[...e.attachments,...d]),e.propagationContext={...e.propagationContext,...h}}function Pt(e,t,n){e[t]=Oe(e[t],n,1)}function Rt(e,t,n,r,o,i){const{normalizeDepth:s=3,normalizeMaxBreadth:a=1e3}=e,c={...t,event_id:t.event_id||n.event_id||pe(),timestamp:t.timestamp||ue()},l=n.integrations||e.integrations.map(e=>e.name);!function(e,t){const{environment:n,release:r,dist:o,maxValueLength:i=250}=t;e.environment=e.environment||n||"production",!e.release&&r&&(e.release=r);!e.dist&&o&&(e.dist=o);e.message&&(e.message=Q(e.message,i));const s=e.exception&&e.exception.values&&e.exception.values[0];s&&s.value&&(s.value=Q(s.value,i));const a=e.request;a&&a.url&&(a.url=Q(a.url,i))}(c,e),function(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}(c,l),o&&o.emit("applyFrameMetadata",t),void 0===t.type&&function(e,t){const n=function(e){const t=u._sentryDebugIds;if(!t)return{};const n=Object.keys(t);return wt&&n.length===bt||(bt=n.length,wt=n.reduce((n,r)=>{yt||(yt={});const o=yt[r];if(o)n[o[0]]=o[1];else{const o=e(r);for(let e=o.length-1;e>=0;e--){const i=o[e],s=i&&i.filename,a=t[r];if(s&&a){n[s]=a,yt[r]=[s,a];break}}}return n},{})),wt}(t);try{e.exception.values.forEach(e=>{e.stacktrace.frames.forEach(e=>{n&&e.filename&&(e.debug_id=n[e.filename])})})}catch(cv){}}(c,e.stackParser);const h=function(e,t){if(!t)return e;const n=e?e.clone():new Le;return n.update(t),n}(r,n.captureContext);n.mechanism&&ve(c,n.mechanism);const p=o?o.getEventProcessors():[],f=d("globalScope",()=>new Le).getScopeData();i&&Ct(f,i.getScopeData()),h&&Ct(f,h.getScopeData());const g=[...n.attachments||[],...f.attachments];return g.length&&(n.attachments=g),Ot(c,f),kt([...p,...f.eventProcessors],c,n).then(e=>(e&&function(e){const t={};try{e.exception.values.forEach(e=>{e.stacktrace.frames.forEach(e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)})})}catch(cv){}if(0===Object.keys(t).length)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.entries(t).forEach(([e,t])=>{n.push({type:"sourcemap",code_file:e,debug_id:t})})}(e),"number"==typeof s&&s>0?function(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(e=>({...e,...e.data&&{data:lt(e.data,t,n)}}))},...e.user&&{user:lt(e.user,t,n)},...e.contexts&&{contexts:lt(e.contexts,t,n)},...e.extra&&{extra:lt(e.extra,t,n)}};e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=lt(e.contexts.trace.data,t,n)));e.spans&&(r.spans=e.spans.map(e=>({...e,...e.data&&{data:lt(e.data,t,n)}})));e.contexts&&e.contexts.flags&&r.contexts&&(r.contexts.flags=lt(e.contexts.flags,3,n));return r}(e,s,a):e))}function Lt(e){if(e)return function(e){return e instanceof Le||"function"==typeof e}(e)||function(e){return Object.keys(e).some(e=>Tt.includes(e))}(e)?{captureContext:e}:e}var Tt=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function Dt(e,t){return Me().captureException(e,Lt(t))}function Nt(e,t){return Me().captureEvent(e,t)}function jt(e,t){$e().setContext(e,t)}function At(e){const t=Fe(),n=$e(),r=Me(),{release:o,environment:i=Ze}=t&&t.getOptions()||{},{userAgent:s}=u.navigator||{},a=_e({release:o,environment:i,user:r.getUser()||n.getUser(),...s&&{userAgent:s},...e}),c=n.getSession();return c&&"ok"===c.status&&Ee(c,{status:"exited"}),It(),n.setSession(a),r.setSession(a),a}function It(){const e=$e(),t=Me(),n=t.getSession()||e.getSession();n&&function(e,t){let n={};t?n={status:t}:"ok"===e.status&&(n={status:"exited"}),Ee(e,n)}(n),Mt(),e.setSession(),t.setSession()}function Mt(){const e=$e(),t=Me(),n=Fe(),r=t.getSession()||e.getSession();r&&n&&n.captureSession(r)}function $t(e=!1){e?It():Mt()}function Ft(e,t,n){return t||`${function(e){return`${function(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}(e)}${e.projectId}/envelope/`}(e)}?${function(e,t){const n={sentry_version:"7"};return e.publicKey&&(n.sentry_key=e.publicKey),t&&(n.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(n).toString()}(e,n)}`}var Ht=[];function Ut(e){const t=e.defaultIntegrations||[],n=e.integrations;let r;if(t.forEach(e=>{e.isDefaultInstance=!0}),Array.isArray(n))r=[...t,...n];else if("function"==typeof n){const e=n(t);r=Array.isArray(e)?e:[e]}else r=t;const o=function(e){const t={};return e.forEach(e=>{const{name:n}=e,r=t[n];r&&!r.isDefaultInstance&&e.isDefaultInstance||(t[n]=e)}),Object.values(t)}(r),i=o.findIndex(e=>"Debug"===e.name);if(i>-1){const[e]=o.splice(i,1);o.push(e)}return o}function qt(e,t){for(const n of t)n&&n.afterAllSetup&&n.afterAllSetup(e)}function Bt(e,t,n){if(n[t.name])c&&m.log(`Integration skipped because it was already installed: ${t.name}`);else{if(n[t.name]=t,-1===Ht.indexOf(t.name)&&"function"==typeof t.setupOnce&&(t.setupOnce(),Ht.push(t.name)),t.setup&&"function"==typeof t.setup&&t.setup(e),"function"==typeof t.preprocessEvent){const n=t.preprocessEvent.bind(t);e.on("preprocessEvent",(t,r)=>n(t,r,e))}if("function"==typeof t.processEvent){const n=t.processEvent.bind(t),r=Object.assign((t,r)=>n(t,r,e),{id:t.name});e.addEventProcessor(r)}c&&m.log(`Integration installed: ${t.name}`)}}var zt=class extends Error{constructor(e,t="warn"){super(e),this.message=e,this.logLevel=t}},Vt="Not capturing exception because it's already been captured.",Kt=class{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=at(e.dsn):c&&m.warn("No DSN provided, client will not send events."),this._dsn){const t=Ft(this._dsn,e.tunnel,e._metadata?e._metadata.sdk:void 0);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}const t=["enableTracing","tracesSampleRate","tracesSampler"].find(t=>t in e&&null==e[t]);t&&g(()=>{console.warn(`[Sentry] Deprecation warning: \`${t}\` is set to undefined, which leads to tracing being enabled. In v9, a value of \`undefined\` will result in tracing being disabled.`)})}captureException(e,t,n){const r=pe();if(ye(e))return c&&m.log(Vt),r;const o={event_id:r,...t};return this._process(this.eventFromException(e,o).then(e=>this._captureEvent(e,o,n))),o.event_id}captureMessage(e,t,n,r){const o={event_id:pe(),...n},i=U(e)?e:String(e),s=q(e)?this.eventFromMessage(i,t,o):this.eventFromException(e,o);return this._process(s.then(e=>this._captureEvent(e,o,r))),o.event_id}captureEvent(e,t,n){const r=pe();if(t&&t.originalException&&ye(t.originalException))return c&&m.log(Vt),r;const o={event_id:r,...t},i=(e.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(e,o,i||n)),o.event_id}captureSession(e){"string"!=typeof e.release?c&&m.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),Ee(e,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){const t=this._transport;return t?(this.emit("flush"),this._isClientDoneProcessing(e).then(n=>t.flush(e).then(e=>n&&e))):be(!0)}close(e){return this.flush(e).then(e=>(this.getOptions().enabled=!1,this.emit("close"),e))}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}init(){(this._isEnabled()||this._options.integrations.some(({name:e})=>e.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(e){return this._integrations[e]}addIntegration(e){const t=this._integrations[e.name];Bt(this,e,this._integrations),t||qt(this,[e])}sendEvent(e,t={}){this.emit("beforeSendEvent",e,t);let n=St(e,this._dsn,this._options._metadata,this._options.tunnel);for(const o of t.attachments||[])n=pt(n,vt(o));const r=this.sendEnvelope(n);r&&r.then(t=>this.emit("afterSendEvent",e,t),null)}sendSession(e){const t=function(e,t,n,r){const o=Et(n);return ht({sent_at:(new Date).toISOString(),...o&&{sdk:o},...!!r&&t&&{dsn:it(t)}},["aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()]])}(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(t)}recordDroppedEvent(e,t,n){if(this._options.sendClientReports){const r="number"==typeof n?n:1,o=`${e}:${t}`;c&&m.log(`Recording outcome: "${o}"${r>1?` (${r} times)`:""}`),this._outcomes[o]=(this._outcomes[o]||0)+r}}on(e,t){const n=this._hooks[e]=this._hooks[e]||[];return n.push(t),()=>{const e=n.indexOf(t);e>-1&&n.splice(e,1)}}emit(e,...t){const n=this._hooks[e];n&&n.forEach(e=>e(...t))}sendEnvelope(e){return this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport?this._transport.send(e).then(null,e=>(c&&m.error("Error while sending envelope:",e),e)):(c&&m.error("Transport disabled"),be({}))}_setupIntegrations(){const{integrations:e}=this._options;this._integrations=function(e,t){const n={};return t.forEach(t=>{t&&Bt(e,t,n)}),n}(this,e),qt(this,e)}_updateSessionFromEvent(e,t){let n="fatal"===t.level,r=!1;const o=t.exception&&t.exception.values;if(o){r=!0;for(const e of o){const t=e.mechanism;if(t&&!1===t.handled){n=!0;break}}}const i="ok"===e.status;(i&&0===e.errors||i&&n)&&(Ee(e,{...n&&{status:"crashed"},errors:e.errors||Number(r||n)}),this.captureSession(e))}_isClientDoneProcessing(e){return new xe(t=>{let n=0;const r=setInterval(()=>{0==this._numProcessing?(clearInterval(r),t(!0)):(n+=1,e&&n>=e&&(clearInterval(r),t(!1)))},1)})}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(e,t,n=Me(),r=$e()){const o=this.getOptions(),i=Object.keys(this._integrations);return!t.integrations&&i.length>0&&(t.integrations=i),this.emit("preprocessEvent",e,t),e.type||r.setLastEventId(e.event_id||t.event_id),Rt(o,e,t,n,this,r).then(e=>(null===e||(e.contexts={trace:He(n),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:tt(this,n),...e.sdkProcessingMetadata}),e))}_captureEvent(e,t={},n){return this._processEvent(e,t,n).then(e=>e.event_id,e=>{c&&(e instanceof zt&&"log"===e.logLevel?m.log(e.message):m.warn(e))})}_processEvent(e,t,n){const r=this.getOptions(),{sampleRate:o}=r,i=Gt(e),s=Wt(e),a=e.type||"error",l=`before send for type \`${a}\``,u=void 0===o?void 0:function(e){if("boolean"==typeof e)return Number(e);const t="string"==typeof e?parseFloat(e):e;if(!("number"!=typeof t||isNaN(t)||t<0||t>1))return t;c&&m.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`)}(o);if(s&&"number"==typeof u&&Math.random()>u)return this.recordDroppedEvent("sample_rate","error",e),we(new zt(`Discarding event because it's not included in the random sample (sampling rate = ${o})`,"log"));const d="replay_event"===a?"replay":a,h=(e.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(e,t,n,h).then(n=>{if(null===n)throw this.recordDroppedEvent("event_processor",d,e),new zt("An event processor returned `null`, will not send event.","log");return t.data&&!0===t.data.__sentry__?n:function(e,t){const n=`${t} must return \`null\` or a valid event.`;if(V(e))return e.then(e=>{if(!B(e)&&null!==e)throw new zt(n);return e},e=>{throw new zt(`${t} rejected with ${e}`)});if(!B(e)&&null!==e)throw new zt(n);return e}(function(e,t,n,r){const{beforeSend:o,beforeSendTransaction:i,beforeSendSpan:s}=t;if(Wt(n)&&o)return o(n,r);if(Gt(n)){if(n.spans&&s){const t=[];for(const r of n.spans){const n=s(r);n?t.push(n):(Xe(),e.recordDroppedEvent("before_send","span"))}n.spans=t}if(i){if(n.spans){const e=n.spans.length;n.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return i(n,r)}}return n}(this,r,n,t),l)}).then(r=>{if(null===r){if(this.recordDroppedEvent("before_send",d,e),i){const t=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",t)}throw new zt(`${l} returned \`null\`, will not send event.`,"log")}const o=n&&n.getSession();if(!i&&o&&this._updateSessionFromEvent(o,r),i){const e=(r.sdkProcessingMetadata&&r.sdkProcessingMetadata.spanCountBeforeProcessing||0)-(r.spans?r.spans.length:0);e>0&&this.recordDroppedEvent("before_send","span",e)}const s=r.transaction_info;if(i&&s&&r.transaction!==e.transaction){const e="custom";r.transaction_info={...s,source:e}}return this.sendEvent(r,t),r}).then(null,e=>{if(e instanceof zt)throw e;throw this.captureException(e,{data:{__sentry__:!0},originalException:e}),new zt(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${e}`)})}_process(e){this._numProcessing++,e.then(e=>(this._numProcessing--,e),e=>(this._numProcessing--,e))}_clearOutcomes(){const e=this._outcomes;return this._outcomes={},Object.entries(e).map(([e,t])=>{const[n,r]=e.split(":");return{reason:n,category:r,quantity:t}})}_flushOutcomes(){c&&m.log("Flushing outcomes...");const e=this._clearOutcomes();if(0===e.length)return void(c&&m.log("No outcomes to send"));if(!this._dsn)return void(c&&m.log("No dsn provided, will not send outcomes"));c&&m.log("Sending outcomes:",e);const t=(n=e,ht((r=this._options.tunnel&&it(this._dsn))?{dsn:r}:{},[[{type:"client_report"},{timestamp:o||ue(),discarded_events:n}]]));var n,r,o;this.sendEnvelope(t)}};function Wt(e){return void 0===e.type}function Gt(e){return"transaction"===e.type}function Jt(e,t){!0===t.debug&&(c?m.enable():g(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),Me().update(t.initialScope);const n=new e(t);return function(e){Me().setClient(e)}(n),n.init(),n}function Yt(e){const t=[];function n(e){return t.splice(t.indexOf(e),1)[0]||Promise.resolve(void 0)}return{$:t,add:function(r){if(!(void 0===e||t.length<e))return we(new zt("Not adding Promise because buffer limit was reached."));const o=r();return-1===t.indexOf(o)&&t.push(o),o.then(()=>n(o)).then(null,()=>n(o).then(null,()=>{})),o},drain:function(e){return new xe((n,r)=>{let o=t.length;if(!o)return n(!0);const i=setTimeout(()=>{e&&e>0&&n(!1)},e);t.forEach(e=>{be(e).then(()=>{--o||(clearTimeout(i),n(!0))},r)})})}}}function Qt(e,{statusCode:t,headers:n},r=Date.now()){const o={...e},i=n&&n["x-sentry-rate-limits"],s=n&&n["retry-after"];if(i)for(const a of i.trim().split(",")){const[e,t,,,n]=a.split(":",5),i=parseInt(e,10),s=1e3*(isNaN(i)?60:i);if(t)for(const a of t.split(";"))"metric_bucket"===a&&n&&!n.split(";").includes("custom")||(o[a]=r+s);else o.all=r+s}else s?o.all=r+function(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return 1e3*n;const r=Date.parse(`${e}`);return isNaN(r)?6e4:r-t}(s,r):429===t&&(o.all=r+6e4);return o}function Xt(e,t,n=Yt(e.bufferSize||64)){let r={};return{send:function(o){const i=[];if(ft(o,(t,n)=>{const o=_t(n);if(function(e,t,n=Date.now()){return function(e,t){return e[t]||e.all||0}(e,t)>n}(r,o)){const r=Zt(t,n);e.recordDroppedEvent("ratelimit_backoff",o,r)}else i.push(t)}),0===i.length)return be({});const s=ht(o[0],i),a=t=>{ft(s,(n,r)=>{const o=Zt(n,r);e.recordDroppedEvent(t,_t(r),o)})};return n.add(()=>t({body:mt(s)}).then(e=>(void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&c&&m.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),r=Qt(r,e),e),e=>{throw a("network_error"),e})).then(e=>e,e=>{if(e instanceof zt)return c&&m.error("Skipped sending event because buffer is full."),a("queue_overflow"),be({});throw e})},flush:e=>n.drain(e)}}function Zt(e,t){if("event"===t||"transaction"===t)return Array.isArray(e)?e[1]:void 0}function en(e,t){const n=t&&t.getDsn(),r=t&&t.getOptions().tunnel;return function(e,t){return!!t&&e.includes(t.host)}(e,n)||function(e,t){return!!t&&tn(e)===tn(t)}(e,r)}function tn(e){return"/"===e[e.length-1]?e.slice(0,-1):e}function nn(e,t,n=[t],r="npm"){const o=e._metadata||{};o.sdk||(o.sdk={name:`sentry.javascript.${t}`,packages:n.map(e=>({name:`${r}:@sentry/${e}`,version:l})),version:l}),e._metadata=o}var rn,on=100;function sn(e,t){const n=Fe(),r=$e();if(!n)return;const{beforeBreadcrumb:o=null,maxBreadcrumbs:i=on}=n.getOptions();if(i<=0)return;const s={timestamp:ue(),...e},a=o?g(()=>o(s,t)):s;null!==a&&(n.emit&&n.emit("beforeAddBreadcrumb",a,t),r.addBreadcrumb(a,i))}var an=new WeakMap,cn=()=>({name:"FunctionToString",setupOnce(){rn=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=oe(this),n=an.has(Fe())&&void 0!==t?t:this;return rn.apply(n,e)}}catch(cv){}},setup(e){an.set(e,!0)}}),ln=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,"undefined is not an object (evaluating 'a.L')",'can\'t redefine non-configurable property "solana"',"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler",/^Non-Error promise rejection captured with value: Object Not Found Matching Id:\d+, MethodName:simulateEvent, ParamCount:\d+$/],un=(e={})=>({name:"InboundFilters",processEvent:(t,n,r)=>function(e,t){if(t.ignoreInternal&&function(e){try{return"SentryError"===e.exception.values[0].type}catch(cv){}return!1}(e))return c&&m.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${ge(e)}`),!0;if(function(e,t){return!(e.type||!t||!t.length)&&function(e){const t=[];e.message&&t.push(e.message);let n;try{n=e.exception.values[e.exception.values.length-1]}catch(cv){}n&&n.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`));return t}(e).some(e=>ee(e,t))}(e,t.ignoreErrors))return c&&m.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${ge(e)}`),!0;if(function(e){return!e.type&&(!(!e.exception||!e.exception.values||0===e.exception.values.length)&&(!e.message&&!e.exception.values.some(e=>e.stacktrace||e.type&&"Error"!==e.type||e.value)))}(e))return c&&m.warn(`Event dropped due to not having an error message, error type or stacktrace.\nEvent: ${ge(e)}`),!0;if(function(e,t){if("transaction"!==e.type||!t||!t.length)return!1;const n=e.transaction;return!!n&&ee(n,t)}(e,t.ignoreTransactions))return c&&m.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${ge(e)}`),!0;if(function(e,t){if(!t||!t.length)return!1;const n=dn(e);return!!n&&ee(n,t)}(e,t.denyUrls))return c&&m.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${ge(e)}.\nUrl: ${dn(e)}`),!0;if(!function(e,t){if(!t||!t.length)return!0;const n=dn(e);return!n||ee(n,t)}(e,t.allowUrls))return c&&m.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${ge(e)}.\nUrl: ${dn(e)}`),!0;return!1}(t,function(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:ln],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]],ignoreInternal:void 0===e.ignoreInternal||e.ignoreInternal}}(e,r.getOptions()))?null:t});function dn(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch(cv){}return t?function(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&"<anonymous>"!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(t):null}catch(t){return c&&m.error(`Cannot extract url for event ${ge(e)}`),null}}function hn(e,t,n=250,r,o,i,s){if(!(i.exception&&i.exception.values&&s&&K(s.originalException,Error)))return;const a=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:void 0;var c,l;a&&(i.exception.values=(c=pn(e,t,o,s.originalException,r,i.exception.values,a,0),l=n,c.map(e=>(e.value&&(e.value=Q(e.value,l)),e))))}function pn(e,t,n,r,o,i,s,a){if(i.length>=n+1)return i;let c=[...i];if(K(r[o],Error)){fn(s,a);const i=e(t,r[o]),l=c.length;gn(i,o,l,a),c=pn(e,t,n,r[o],o,[i,...c],i,l)}return Array.isArray(r.errors)&&r.errors.forEach((r,i)=>{if(K(r,Error)){fn(s,a);const l=e(t,r),u=c.length;gn(l,`errors[${i}]`,u,a),c=pn(e,t,n,r,o,[l,...c],l,u)}}),c}function fn(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,..."AggregateError"===e.type&&{is_exception_group:!0},exception_id:t}}function gn(e,t,n,r){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}function mn(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}function vn(){"console"in u&&p.forEach(function(e){e in u.console&&te(u.console,e,function(t){return f[e]=t,function(...t){P("console",{args:t,level:e});const n=f[e];n&&n.apply(u.console,t)}})})}function yn(e){return"warn"===e?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}var bn=()=>{let e;return{name:"Dedupe",processEvent(t){if(t.type)return t;try{if(function(e,t){return!!t&&(!!function(e,t){const n=e.message,r=t.message;return!(!n&&!r)&&(!(n&&!r||!n&&r)&&(n===r&&(!!xn(e,t)&&!!wn(e,t))))}(e,t)||!!function(e,t){const n=_n(t),r=_n(e);return!(!n||!r)&&(n.type===r.type&&n.value===r.value&&(!!xn(e,t)&&!!wn(e,t)))}(e,t))}(t,e))return c&&m.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(n){}return e=t}}};function wn(e,t){let n=E(e),r=E(t);if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;if(r.length!==n.length)return!1;for(let o=0;o<r.length;o++){const e=r[o],t=n[o];if(e.filename!==t.filename||e.lineno!==t.lineno||e.colno!==t.colno||e.function!==t.function)return!1}return!0}function xn(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;try{return!(n.join("")!==r.join(""))}catch(o){return!1}}function _n(e){return e.exception&&e.exception.values&&e.exception.values[0]}var En=(e={})=>{const{depth:t=3,captureErrorCause:n=!0}=e;return{name:"ExtraErrorData",processEvent(e,r,o){const{maxValueLength:i=250}=o.getOptions();return function(e,t={},n,r,o){if(!t.originalException||!I(t.originalException))return e;const i=t.originalException.name||t.originalException.constructor.name,s=function(e,t,n){try{const r=["name","message","stack","line","column","fileName","lineNumber","columnNumber","toJSON"],o={};for(const t of Object.keys(e)){if(-1!==r.indexOf(t))continue;const i=e[t];o[t]=I(i)||"string"==typeof i?Q(`${i}`,n):i}if(t&&void 0!==e.cause&&(o.cause=I(e.cause)?e.cause.toString():e.cause),"function"==typeof e.toJSON){const t=e.toJSON();for(const e of Object.keys(t)){const n=t[e];o[e]=I(n)?n.toString():n}}return o}catch(r){c&&m.error("Unable to extract extra data from the Error object:",r)}return null}(t.originalException,r,o);if(s){const t={...e.contexts},r=lt(s,n);return B(r)&&(ne(r,"__sentry_skip_normalization__",!0),t[i]=r),{...e,contexts:t}}return e}(e,r,t,n,i)}}};function Sn(e){return void 0===e?void 0:e>=400&&e<500?"warning":e>=500?"error":void 0}var kn=u;function On(){if(!("fetch"in kn))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(cv){return!1}}function Cn(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function Pn(){if("string"==typeof EdgeRuntime)return!0;if(!On())return!1;if(Cn(kn.fetch))return!0;let e=!1;const t=kn.document;if(t&&"function"==typeof t.createElement)try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=Cn(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){h&&m.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e}function Rn(e,t){const n="fetch";O(n,e),C(n,()=>function(e,t=!1){if(t&&!Pn())return;te(u,"fetch",function(t){return function(...n){const r=new Error,{method:o,url:i}=function(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){const[t,n]=e;return{url:Tn(t),method:Ln(n,"method")?String(n.method).toUpperCase():"GET"}}const t=e[0];return{url:Tn(t),method:Ln(t,"method")?String(t.method).toUpperCase():"GET"}}(n),s={args:n,fetchData:{method:o,url:i},startTimestamp:1e3*he(),virtualError:r};return e||P("fetch",{...s}),t.apply(u,n).then(async t=>(e?e(t):P("fetch",{...s,endTimestamp:1e3*he(),response:t}),t),e=>{throw P("fetch",{...s,endTimestamp:1e3*he(),error:e}),I(e)&&void 0===e.stack&&(e.stack=r.stack,ne(e,"framesToPop",1)),e})}})}(void 0,t))}function Ln(e,t){return!!e&&"object"==typeof e&&!!e[t]}function Tn(e){return"string"==typeof e?e:e?Ln(e,"url")?e.url:e.toString?e.toString():"":""}var Dn=u;var Nn=u,jn=0;function An(){return jn>0}function In(e,t={}){if(!function(e){return"function"==typeof e}(e))return e;try{const t=e.__sentry_wrapped__;if(t)return"function"==typeof t?t:e;if(oe(e))return e}catch(cv){return e}const n=function(...n){try{const r=n.map(e=>In(e,t));return e.apply(this,r)}catch(r){throw jn++,setTimeout(()=>{jn--}),function(...e){const t=Ie(N());if(2===e.length){const[n,r]=e;return n?t.withSetScope(n,r):t.withScope(r)}t.withScope(e[0])}(e=>{e.addEventProcessor(e=>(t.mechanism&&(me(e,void 0,void 0),ve(e,t.mechanism)),e.extra={...e.extra,arguments:n},e)),Dt(r)}),r}};try{for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}catch(r){}re(n,e),ne(e,"__sentry_wrapped__",n);try{Object.getOwnPropertyDescriptor(n,"name").configurable&&Object.defineProperty(n,"name",{get:()=>e.name})}catch(o){}return n}var Mn="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function $n(e,t){const n=Un(e,t),r={type:zn(t),value:Vn(t)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function Fn(e,t,n,r){const o=Fe(),i=o&&o.getOptions().normalizeDepth,s=function(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)){const n=e[t];if(n instanceof Error)return n}}(t),a={__serialized__:ut(t,i)};if(s)return{exception:{values:[$n(e,s)]},extra:a};const c={exception:{values:[{type:z(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:Gn(t,{isUnhandledRejection:r})}]},extra:a};if(n){const t=Un(e,n);t.length&&(c.exception.values[0].stacktrace={frames:t})}return c}function Hn(e,t){return{exception:{values:[$n(e,t)]}}}function Un(e,t){const n=t.stacktrace||t.stack||"",r=function(e){return e&&qn.test(e.message)?1:0}(t),o=function(e){return"number"==typeof e.framesToPop?e.framesToPop:0}(t);try{return e(n,r,o)}catch(cv){}return[]}var qn=/Minified React error #\d+;/i;function Bn(e){return"undefined"!=typeof WebAssembly&&void 0!==WebAssembly.Exception&&e instanceof WebAssembly.Exception}function zn(e){const t=e&&e.name;return!t&&Bn(e)?e.message&&Array.isArray(e.message)&&2==e.message.length?e.message[0]:"WebAssembly.Exception":t}function Vn(e){const t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:Bn(e)&&Array.isArray(e.message)&&2==e.message.length?e.message[1]:t:"No error message"}function Kn(e,t,n,r,o){let i;if($(t)&&t.error)return Hn(e,t.error);if(F(t)||M(t,"DOMException")){const o=t;if("stack"in t)i=Hn(e,t);else{const t=o.name||(F(o)?"DOMError":"DOMException"),s=o.message?`${t}: ${o.message}`:t;i=Wn(e,s,n,r),me(i,s)}return"code"in o&&(i.tags={...i.tags,"DOMException.code":`${o.code}`}),i}return I(t)?Hn(e,t):B(t)||z(t)?(i=Fn(e,t,n,o),ve(i,{synthetic:!0}),i):(i=Wn(e,t,n,r),me(i,`${t}`,void 0),ve(i,{synthetic:!0}),i)}function Wn(e,t,n,r){const o={};if(r&&n){const r=Un(e,n);r.length&&(o.exception={values:[{value:t,stacktrace:{frames:r}}]}),ve(o,{synthetic:!0})}if(U(t)){const{__sentry_template_string__:e,__sentry_template_values__:n}=t;return o.logentry={message:e,params:n},o}return o.message=t,o}function Gn(e,{isUnhandledRejection:t}){const n=function(e,t=40){const n=Object.keys(ie(e));n.sort();const r=n[0];if(!r)return"[object has no keys]";if(r.length>=t)return Q(r,t);for(let o=n.length;o>0;o--){const e=n.slice(0,o).join(", ");if(!(e.length>t))return o===n.length?e:Q(e,t)}return""}(e),r=t?"promise rejection":"exception";return $(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:z(e)?`Event \`${function(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch(cv){}}(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function Jn(e){return[{type:"user_report"},e]}var Yn,Qn,Xn,Zn,er=class extends Kt{constructor(e){const t={parentSpanIsAlwaysRootSpan:!0,...e};nn(t,"browser",["browser"],Nn.SENTRY_SDK_SOURCE||"npm"),super(t),t.sendClientReports&&Nn.document&&Nn.document.addEventListener("visibilitychange",()=>{"hidden"===Nn.document.visibilityState&&this._flushOutcomes()})}eventFromException(e,t){return function(e,t,n,r){const o=Kn(e,t,n&&n.syntheticException||void 0,r);return ve(o),o.level="error",n&&n.event_id&&(o.event_id=n.event_id),be(o)}(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",n){return function(e,t,n="info",r,o){const i=Wn(e,t,r&&r.syntheticException||void 0,o);return i.level=n,r&&r.event_id&&(i.event_id=r.event_id),be(i)}(this._options.stackParser,e,t,n,this._options.attachStacktrace)}captureUserFeedback(e){if(!this._isEnabled())return void(Mn&&m.warn("SDK not enabled, will not capture user feedback."));const t=function(e,{metadata:t,tunnel:n,dsn:r}){return ht({event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!r&&{dsn:it(r)}},[Jn(e)])}(e,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this.sendEnvelope(t)}_prepareEvent(e,t,n){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,n)}},tr="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,nr=u;function rr(){if(!nr.document)return;const e=P.bind(null,"dom"),t=or(e,!0);nr.document.addEventListener("click",t,!1),nr.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(t=>{const n=nr[t],r=n&&n.prototype;r&&r.hasOwnProperty&&r.hasOwnProperty("addEventListener")&&(te(r,"addEventListener",function(t){return function(n,r,o){if("click"===n||"keypress"==n)try{const r=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},i=r[n]=r[n]||{refCount:0};if(!i.handler){const r=or(e);i.handler=r,t.call(this,n,r,o)}i.refCount++}catch(cv){}return t.call(this,n,r,o)}}),te(r,"removeEventListener",function(e){return function(t,n,r){if("click"===t||"keypress"==t)try{const n=this.__sentry_instrumentation_handlers__||{},o=n[t];o&&(o.refCount--,o.refCount<=0&&(e.call(this,t,o.handler,r),o.handler=void 0,delete n[t]),0===Object.keys(n).length&&delete this.__sentry_instrumentation_handlers__)}catch(cv){}return e.call(this,t,n,r)}}))})}function or(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=function(e){try{return e.target}catch(cv){return null}}(n);if(function(e,t){return"keypress"===e&&(!t||!t.tagName||"INPUT"!==t.tagName&&"TEXTAREA"!==t.tagName&&!t.isContentEditable)}(n.type,r))return;ne(n,"_sentryCaptured",!0),r&&!r._sentryId&&ne(r,"_sentryId",pe());const o="keypress"===n.type?"input":n.type;(function(e){if(e.type!==Qn)return!1;try{if(!e.target||e.target._sentryId!==Xn)return!1}catch(cv){}return!0})(n)||(e({event:n,name:o,global:t}),Qn=n.type,Xn=r?r._sentryId:void 0),clearTimeout(Yn),Yn=nr.setTimeout(()=>{Xn=void 0,Qn=void 0},1e3)}}function ir(e){const t="history";O(t,e),C(t,sr)}function sr(){if(!function(){const e=Dn.chrome,t=e&&e.app&&e.app.runtime,n="history"in Dn&&!!Dn.history.pushState&&!!Dn.history.replaceState;return!t&&n}())return;const e=nr.onpopstate;function t(e){return function(...t){const n=t.length>2?t[2]:void 0;if(n){const e=Zn,t=String(n);Zn=t,P("history",{from:e,to:t})}return e.apply(this,t)}}nr.onpopstate=function(...t){const n=nr.location.href,r=Zn;if(Zn=n,P("history",{from:r,to:n}),e)try{return e.apply(this,t)}catch(o){}},te(nr.history,"pushState",t),te(nr.history,"replaceState",t)}var ar={};function cr(e){ar[e]=void 0}var lr="__sentry_xhr_v3__";function ur(e){O("xhr",e),C("xhr",dr)}function dr(){if(!nr.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(e,t,n){const r=new Error,o=1e3*he(),i=H(n[0])?n[0].toUpperCase():void 0,s=function(e){if(H(e))return e;try{return e.toString()}catch(t){}}(n[1]);if(!i||!s)return e.apply(t,n);t[lr]={method:i,url:s,request_headers:{}},"POST"===i&&s.match(/sentry_key/)&&(t.__sentry_own_request__=!0);const a=()=>{const e=t[lr];if(e&&4===t.readyState){try{e.status_code=t.status}catch(cv){}P("xhr",{endTimestamp:1e3*he(),startTimestamp:o,xhr:t,virtualError:r})}};return"onreadystatechange"in t&&"function"==typeof t.onreadystatechange?t.onreadystatechange=new Proxy(t.onreadystatechange,{apply:(e,t,n)=>(a(),e.apply(t,n))}):t.addEventListener("readystatechange",a),t.setRequestHeader=new Proxy(t.setRequestHeader,{apply(e,t,n){const[r,o]=n,i=t[lr];return i&&H(r)&&H(o)&&(i.request_headers[r.toLowerCase()]=o),e.apply(t,n)}}),e.apply(t,n)}}),e.send=new Proxy(e.send,{apply(e,t,n){const r=t[lr];return r?(void 0!==n[0]&&(r.body=n[0]),P("xhr",{startTimestamp:1e3*he(),xhr:t}),e.apply(t,n)):e.apply(t,n)}})}function hr(e,t=function(e){const t=ar[e];if(t)return t;let n=nr[e];if(Cn(n))return ar[e]=n.bind(nr);const r=nr.document;if(r&&"function"==typeof r.createElement)try{const t=r.createElement("iframe");t.hidden=!0,r.head.appendChild(t);const o=t.contentWindow;o&&o[e]&&(n=o[e]),r.head.removeChild(t)}catch(cv){tr&&m.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,cv)}return n?ar[e]=n.bind(nr):n}("fetch")){let n=0,r=0;return Xt(e,function(o){const i=o.body.length;n+=i,r++;const s={body:o.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};if(!t)return cr("fetch"),we("No fetch implementation available");try{return t(e.url,s).then(e=>(n-=i,r--,{statusCode:e.status,headers:{"x-sentry-rate-limits":e.headers.get("X-Sentry-Rate-Limits"),"retry-after":e.headers.get("Retry-After")}}))}catch(cv){return cr("fetch"),n-=i,r--,we(cv)}})}function pr(e,t,n,r){const o={filename:e,function:"<anonymous>"===t?"?":t,in_app:!0};return void 0!==n&&(o.lineno=n),void 0!==r&&(o.colno=r),o}var fr=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,gr=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,mr=/\((\S*)(?::(\d+))(?::(\d+))\)/,vr=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,yr=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,br=b(...[[30,e=>{const t=fr.exec(e);if(t){const[,e,n,r]=t;return pr(e,"?",+n,+r)}const n=gr.exec(e);if(n){if(n[2]&&0===n[2].indexOf("eval")){const e=mr.exec(n[2]);e&&(n[2]=e[1],n[3]=e[2],n[4]=e[3])}const[e,t]=wr(n[1]||"?",n[2]);return pr(t,e,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}}],[50,e=>{const t=vr.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const e=yr.exec(t[3]);e&&(t[1]=t[1]||"eval",t[3]=e[1],t[4]=e[2],t[5]="")}let e=t[3],n=t[1]||"?";return[n,e]=wr(n,e),pr(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}]]),wr=(e,t)=>{const n=-1!==e.indexOf("safari-extension"),r=-1!==e.indexOf("safari-web-extension");return n||r?[-1!==e.indexOf("@")?e.split("@")[0]:"?",n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},xr=1024,_r=(e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:"Breadcrumbs",setup(e){var n;t.console&&function(e){const t="console";O(t,e),C(t,vn)}(function(e){return function(t){if(Fe()!==e)return;const n={category:"console",data:{arguments:t.args,logger:"console"},level:yn(t.level),message:X(t.args," ")};if("assert"===t.level){if(!1!==t.args[0])return;n.message=`Assertion failed: ${X(t.args.slice(1)," ")||"console.assert"}`,n.data.arguments=t.args.slice(1)}sn(n,{input:t.args,level:t.level})}}(e)),t.dom&&(n=function(e,t){return function(n){if(Fe()!==e)return;let r,o,i="object"==typeof t?t.serializeAttribute:void 0,s="object"==typeof t&&"number"==typeof t.maxStringLength?t.maxStringLength:void 0;s&&s>xr&&(Mn&&m.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${s} was configured. Sentry will use 1024 instead.`),s=xr),"string"==typeof i&&(i=[i]);try{const e=n.event,t=function(e){return!!e&&!!e.target}(e)?e.target:e;r=J(t,{keyAttrs:i,maxStringLength:s}),o=function(e){if(!G.HTMLElement)return null;let t=e;for(let n=0;n<5;n++){if(!t)return null;if(t instanceof HTMLElement){if(t.dataset.sentryComponent)return t.dataset.sentryComponent;if(t.dataset.sentryElement)return t.dataset.sentryElement}t=t.parentNode}return null}(t)}catch(cv){r="<unknown>"}if(0===r.length)return;const a={category:`ui.${n.name}`,message:r};o&&(a.data={"ui.component_name":o}),sn(a,{event:n.event,name:n.name,global:n.global})}}(e,t.dom),O("dom",n),C("dom",rr)),t.xhr&&ur(function(e){return function(t){if(Fe()!==e)return;const{startTimestamp:n,endTimestamp:r}=t,o=t.xhr[lr];if(!n||!r||!o)return;const{method:i,url:s,status_code:a,body:c}=o,l={method:i,url:s,status_code:a},u={xhr:t.xhr,input:c,startTimestamp:n,endTimestamp:r};sn({category:"xhr",data:l,type:"http",level:Sn(a)},u)}}(e)),t.fetch&&Rn(function(e){return function(t){if(Fe()!==e)return;const{startTimestamp:n,endTimestamp:r}=t;if(r&&(!t.fetchData.url.match(/sentry_key/)||"POST"!==t.fetchData.method))if(t.error){sn({category:"fetch",data:t.fetchData,level:"error",type:"http"},{data:t.error,input:t.args,startTimestamp:n,endTimestamp:r})}else{const e=t.response,o={...t.fetchData,status_code:e&&e.status},i={input:t.args,response:e,startTimestamp:n,endTimestamp:r};sn({category:"fetch",data:o,type:"http",level:Sn(o.status_code)},i)}}}(e)),t.history&&ir(function(e){return function(t){if(Fe()!==e)return;let n=t.from,r=t.to;const o=mn(Nn.location.href);let i=n?mn(n):void 0;const s=mn(r);i&&i.path||(i=o),o.protocol===s.protocol&&o.host===s.host&&(r=s.relative),o.protocol===i.protocol&&o.host===i.host&&(n=i.relative),sn({category:"navigation",data:{from:n,to:r}})}}(e)),t.sentry&&e.on("beforeSendEvent",function(e){return function(t){Fe()===e&&sn({category:"sentry."+("transaction"===t.type?"transaction":"event"),event_id:t.event_id,level:t.level,message:ge(t)},{event:t})}}(e))}}};var Er=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],Sr=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:"BrowserApiErrors",setupOnce(){t.setTimeout&&te(Nn,"setTimeout",kr),t.setInterval&&te(Nn,"setInterval",kr),t.requestAnimationFrame&&te(Nn,"requestAnimationFrame",Or),t.XMLHttpRequest&&"XMLHttpRequest"in Nn&&te(XMLHttpRequest.prototype,"send",Cr);const e=t.eventTarget;e&&(Array.isArray(e)?e:Er).forEach(Pr)}}};function kr(e){return function(...t){const n=t[0];return t[0]=In(n,{mechanism:{data:{function:_(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function Or(e){return function(t){return e.apply(this,[In(t,{mechanism:{data:{function:"requestAnimationFrame",handler:_(e)},handled:!1,type:"instrument"}})])}}function Cr(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(e=>{e in n&&"function"==typeof n[e]&&te(n,e,function(t){const n={mechanism:{data:{function:e,handler:_(t)},handled:!1,type:"instrument"}},r=oe(t);return r&&(n.mechanism.data.handler=_(r)),In(t,n)})}),e.apply(this,t)}}function Pr(e){const t=Nn[e],n=t&&t.prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(te(n,"addEventListener",function(t){return function(n,r,o){try{"function"==typeof r.handleEvent&&(r.handleEvent=In(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:_(r),target:e},handled:!1,type:"instrument"}}))}catch(i){}return t.apply(this,[n,In(r,{mechanism:{data:{function:"addEventListener",handler:_(r),target:e},handled:!1,type:"instrument"}}),o])}}),te(n,"removeEventListener",function(e){return function(t,n,r){try{const o=n.__sentry_wrapped__;o&&e.call(this,t,o,r)}catch(cv){}return e.call(this,t,n,r)}}))}var Rr=()=>({name:"BrowserSession",setupOnce(){void 0!==Nn.document?(At({ignoreDuration:!0}),$t(),ir(({from:e,to:t})=>{void 0!==e&&e!==t&&(At({ignoreDuration:!0}),$t())})):Mn&&m.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.")}}),Lr=(e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:"GlobalHandlers",setupOnce(){Error.stackTraceLimit=50},setup(e){t.onerror&&(!function(e){!function(e){const t="error";O(t,e),C(t,L)}(t=>{const{stackParser:n,attachStacktrace:r}=Dr();if(Fe()!==e||An())return;const{msg:o,url:i,line:s,column:a,error:c}=t,l=function(e,t,n,r){const o=e.exception=e.exception||{},i=o.values=o.values||[],s=i[0]=i[0]||{},a=s.stacktrace=s.stacktrace||{},c=a.frames=a.frames||[],l=r,u=n,d=H(t)&&t.length>0?t:function(){try{return G.document.location.href}catch(e){return""}}();0===c.length&&c.push({colno:l,filename:d,function:"?",in_app:!0,lineno:u});return e}(Kn(n,c||o,void 0,r,!1),i,s,a);l.level="error",Nt(l,{originalException:c,mechanism:{handled:!1,type:"onerror"}})})}(e),Tr("onerror")),t.onunhandledrejection&&(!function(e){!function(e){const t="unhandledrejection";O(t,e),C(t,D)}(t=>{const{stackParser:n,attachStacktrace:r}=Dr();if(Fe()!==e||An())return;const o=function(e){if(q(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch(t){}return e}(t),i=q(o)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(o)}`}]}}:Kn(n,o,void 0,r,!0);i.level="error",Nt(i,{originalException:o,mechanism:{handled:!1,type:"onunhandledrejection"}})})}(e),Tr("onunhandledrejection"))}}};function Tr(e){Mn&&m.log(`Global Handler attached: ${e}`)}function Dr(){const e=Fe();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}var Nr=()=>({name:"HttpContext",preprocessEvent(e){if(!Nn.navigator&&!Nn.location&&!Nn.document)return;const t=e.request&&e.request.url||Nn.location&&Nn.location.href,{referrer:n}=Nn.document||{},{userAgent:r}=Nn.navigator||{},o={...e.request&&e.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}};e.request={...e.request,...t&&{url:t},headers:o}}}),jr=(e={})=>{const t=e.limit||5,n=e.key||"cause";return{name:"LinkedErrors",preprocessEvent(e,r,o){const i=o.getOptions();hn($n,i.stackParser,i.maxValueLength,n,t,e,r)}}};function Ar(e){const t=[un(),cn(),Sr(),_r(),Lr(),jr(),bn(),Nr()];return!1!==e.autoSessionTracking&&t.push(Rr()),t}function Ir(e={}){const t=function(e={}){const t={defaultIntegrations:Ar(e),release:"string"==typeof __SENTRY_RELEASE__?__SENTRY_RELEASE__:Nn.SENTRY_RELEASE&&Nn.SENTRY_RELEASE.id?Nn.SENTRY_RELEASE.id:void 0,autoSessionTracking:!0,sendClientReports:!0};return null==e.defaultIntegrations&&delete e.defaultIntegrations,{...t,...e}}(e);var n;if(t.skipBrowserExtensionCheck||!function(){const e=void 0!==Nn.window&&Nn;if(!e)return!1;const t=e[e.chrome?"chrome":"browser"],n=t&&t.runtime&&t.runtime.id,r=Nn.location&&Nn.location.href||"",o=!!n&&Nn===Nn.top&&["chrome-extension:","moz-extension:","ms-browser-extension:","safari-web-extension:"].some(e=>r.startsWith(`${e}//`)),i=void 0!==e.nw;return!!n&&!o&&!i}())return Mn&&(On()||m.warn("No Fetch API detected. The Sentry SDK requires a Fetch API compatible environment to send events. Please add a Fetch API polyfill.")),Jt(er,{...t,stackParser:(n=t.stackParser||br,Array.isArray(n)?b(...n):n),integrations:Ut(t),transport:t.transport||hr});g(()=>{console.error("[Sentry] You cannot run Sentry this way in a browser extension, check: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")})}var Mr=(e={})=>{const t={failedRequestStatusCodes:[[500,599]],failedRequestTargets:[/.*/],...e};return{name:"HttpClient",setup(e){!function(e,t){if(!Pn())return;Rn(n=>{if(Fe()!==e)return;const{response:r,args:o,error:i,virtualError:s}=n,[a,c]=o;r&&function(e,t,n,r,o){if(Ur(e,n.status,n.url)){const e=function(e,t){return!t&&e instanceof Request||e instanceof Request&&e.bodyUsed?e:new Request(e,t)}(t,r);let i,s,a,c;Br()&&([i,a]=$r("Cookie",e),[s,c]=$r("Set-Cookie",n)),Nt(qr({url:e.url,method:e.method,status:n.status,requestHeaders:i,responseHeaders:s,requestCookies:a,responseCookies:c,error:o}))}}(t,a,r,c,i||s)},!1)}(e,t),function(e,t){if(!("XMLHttpRequest"in u))return;ur(n=>{if(Fe()!==e)return;const{error:r,virtualError:o}=n,i=n.xhr,s=i[lr];if(!s)return;const{method:a,request_headers:c}=s;try{!function(e,t,n,r,o){if(Ur(e,t.status,t.responseURL)){let e,a,c;if(Br()){try{const e=t.getResponseHeader("Set-Cookie")||t.getResponseHeader("set-cookie")||void 0;e&&(a=Hr(e))}catch(i){}try{c=function(e){const t=e.getAllResponseHeaders();return t?t.split("\r\n").reduce((e,t)=>{const[n,r]=t.split(": ");return n&&r&&(e[n]=r),e},{}):{}}(t)}catch(s){}e=r}Nt(qr({url:t.responseURL,method:n,status:t.status,requestHeaders:e,responseHeaders:c,responseCookies:a,error:o}))}}(t,i,a,c,r||o)}catch(cv){Mn&&m.warn("Error while extracting response event form XHR response",cv)}})}(e,t)}}};function $r(e,t){const n=function(e){const t={};return e.forEach((e,n)=>{t[n]=e}),t}(t.headers);let r;try{const t=n[e]||n[e.toLowerCase()]||void 0;t&&(r=Hr(t))}catch(o){}return[n,r]}function Fr(e){if(e){const t=e["Content-Length"]||e["content-length"];if(t)return parseInt(t,10)}}function Hr(e){return e.split("; ").reduce((e,t)=>{const[n,r]=t.split("=");return n&&r&&(e[n]=r),e},{})}function Ur(e,t,n){return function(e,t){return e.some(e=>"number"==typeof e?e===t:t>=e[0]&&t<=e[1])}(e.failedRequestStatusCodes,t)&&(r=e.failedRequestTargets,o=n,r.some(e=>"string"==typeof e?o.includes(e):e.test(o)))&&!en(n,Fe());var r,o}function qr(e){const t=Fe(),n=t&&e.error&&e.error instanceof Error?e.error.stack:void 0,r=n&&t?t.getOptions().stackParser(n,0,1):void 0,o=`HTTP Client Error with status code: ${e.status}`,i={message:o,exception:{values:[{type:"Error",value:o,stacktrace:r?{frames:r}:void 0}]},request:{url:e.url,method:e.method,headers:e.requestHeaders,cookies:e.requestCookies},contexts:{response:{status_code:e.status,headers:e.responseHeaders,cookies:e.responseCookies,body_size:Fr(e.responseHeaders)}}};return ve(i,{type:"http.client",handled:!1}),i}function Br(){const e=Fe();return!!e&&Boolean(e.getOptions().sendDefaultPii)}var zr=e(s());function Vr(e,{componentStack:t},n){if(function(e){const t=e.match(/^([^.]+)/);return null!==t&&parseInt(t[0])>=17}(zr.version)&&I(e)&&t){const n=new Error(e.message);n.name=`React ErrorBoundary ${e.name}`,n.stack=t,function(e,t){const n=new WeakSet;!function e(t,r){if(!n.has(t))return t.cause?(n.add(t),e(t.cause,r)):void(t.cause=r)}(e,t)}(e,n)}return Dt(e,{...n,captureContext:{contexts:{react:{componentStack:t}}}})}var Kr=o(e=>{var t="function"==typeof Symbol&&Symbol.for,n=t?Symbol.for("react.element"):60103,r=t?Symbol.for("react.portal"):60106,o=t?Symbol.for("react.fragment"):60107,i=t?Symbol.for("react.strict_mode"):60108,s=t?Symbol.for("react.profiler"):60114,a=t?Symbol.for("react.provider"):60109,c=t?Symbol.for("react.context"):60110,l=t?Symbol.for("react.async_mode"):60111,u=t?Symbol.for("react.concurrent_mode"):60111,d=t?Symbol.for("react.forward_ref"):60112,h=t?Symbol.for("react.suspense"):60113,p=t?Symbol.for("react.suspense_list"):60120,f=t?Symbol.for("react.memo"):60115,g=t?Symbol.for("react.lazy"):60116,m=t?Symbol.for("react.block"):60121,v=t?Symbol.for("react.fundamental"):60117,y=t?Symbol.for("react.responder"):60118,b=t?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case l:case u:case o:case s:case i:case h:return e;default:switch(e=e&&e.$$typeof){case c:case d:case g:case f:case a:return e;default:return t}}case r:return t}}}function x(e){return w(e)===u}e.AsyncMode=l,e.ConcurrentMode=u,e.ContextConsumer=c,e.ContextProvider=a,e.Element=n,e.ForwardRef=d,e.Fragment=o,e.Lazy=g,e.Memo=f,e.Portal=r,e.Profiler=s,e.StrictMode=i,e.Suspense=h,e.isAsyncMode=function(e){return x(e)||w(e)===l},e.isConcurrentMode=x,e.isContextConsumer=function(e){return w(e)===c},e.isContextProvider=function(e){return w(e)===a},e.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},e.isForwardRef=function(e){return w(e)===d},e.isFragment=function(e){return w(e)===o},e.isLazy=function(e){return w(e)===g},e.isMemo=function(e){return w(e)===f},e.isPortal=function(e){return w(e)===r},e.isProfiler=function(e){return w(e)===s},e.isStrictMode=function(e){return w(e)===i},e.isSuspense=function(e){return w(e)===h},e.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===u||e===s||e===i||e===h||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===f||e.$$typeof===a||e.$$typeof===c||e.$$typeof===d||e.$$typeof===v||e.$$typeof===y||e.$$typeof===b||e.$$typeof===m)},e.typeOf=w}),Wr=o((e,t)=>{t.exports=Kr()}),Gr=o((e,t)=>{var n=Wr(),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function a(e){return n.isMemo(e)?i:s[e.$$typeof]||r}s[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[n.Memo]=i;var c=Object.defineProperty,l=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,p=Object.prototype;t.exports=function e(t,n,r){if("string"!=typeof n){if(p){var i=h(n);i&&i!==p&&e(t,i,r)}var s=l(n);u&&(s=s.concat(u(n)));for(var f=a(t),g=a(n),m=0;m<s.length;++m){var v=s[m];if(!(o[v]||r&&r[v]||g&&g[v]||f&&f[v])){var y=d(n,v);try{c(t,v,y)}catch(cv){}}}}return t}}),Jr=e(a(),1);function Yr(e){function t(e,t){Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.message=e,this.code=t}return t.prototype=new Error,t.prototype.name=e,t.prototype.constructor=t,t}for(var Qr=Yr("LaunchDarklyUnexpectedResponseError"),Xr=Yr("LaunchDarklyInvalidEnvironmentIdError"),Zr=Yr("LaunchDarklyInvalidUserError"),eo=Yr("LaunchDarklyInvalidEventKeyError"),to=Yr("LaunchDarklyInvalidArgumentError"),no=Yr("LaunchDarklyFlagFetchError"),ro={LDUnexpectedResponseError:Qr,LDInvalidEnvironmentIdError:Xr,LDInvalidUserError:Zr,LDInvalidEventKeyError:eo,LDInvalidArgumentError:to,LDInvalidDataError:Yr("LaunchDarklyInvalidDataError"),LDFlagFetchError:no,LDTimeoutError:Yr("LaunchDarklyTimeoutError"),isHttpErrorRecoverable:function(e){return!(e>=400&&e<500)||400===e||408===e||429===e}},oo=[],io=[],so=("undefined"!=typeof Uint8Array&&Uint8Array,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"),ao=0;ao<64;++ao)oo[ao]=so[ao],io[so.charCodeAt(ao)]=ao;function co(e,t,n){for(var r,o,i=[],s=t;s<n;s+=3)r=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),i.push(oo[(o=r)>>18&63]+oo[o>>12&63]+oo[o>>6&63]+oo[63&o]);return i.join("")}io["-".charCodeAt(0)]=62,io["_".charCodeAt(0)]=63;var lo=function(e){for(var t,n=e.length,r=n%3,o=[],i=16383,s=0,a=n-r;s<a;s+=i)o.push(co(e,s,s+i>a?a:s+i));return 1===r?(t=e[n-1],o.push(oo[t>>2]+oo[t<<4&63]+"==")):2===r&&(t=(e[n-2]<<8)+e[n-1],o.push(oo[t>>10]+oo[t>>4&63]+oo[t<<2&63]+"=")),o.join("")},uo=Array.isArray,ho=Object.keys,po=Object.prototype.hasOwnProperty,fo=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){var r,o,i,s=uo(t),a=uo(n);if(s&&a){if((o=t.length)!=n.length)return!1;for(r=o;0!==r--;)if(!e(t[r],n[r]))return!1;return!0}if(s!=a)return!1;var c=t instanceof Date,l=n instanceof Date;if(c!=l)return!1;if(c&&l)return t.getTime()==n.getTime();var u=t instanceof RegExp,d=n instanceof RegExp;if(u!=d)return!1;if(u&&d)return t.toString()==n.toString();var h=ho(t);if((o=h.length)!==ho(n).length)return!1;for(r=o;0!==r--;)if(!po.call(n,h[r]))return!1;for(r=o;0!==r--;)if(!e(t[i=h[r]],n[i]))return!1;return!0}return t!=t&&n!=n},go=["key","ip","country","email","firstName","lastName","avatar","name"];function mo(e){const t=unescape(encodeURIComponent(e));return lo(function(e){const t=[];for(let n=0;n<e.length;n++)t.push(e.charCodeAt(n));return t}(t))}function vo(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var yo,bo={appendUrlPath:function(e,t){return(e.endsWith("/")?e.substring(0,e.length-1):e)+(t.startsWith("/")?"":"/")+t},base64URLEncode:function(e){return mo(e).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")},btoa:mo,clone:function(e){return JSON.parse(JSON.stringify(e))},deepEquals:function(e,t){return fo(e,t)},extend:function(...e){return e.reduce((e,t)=>({...e,...t}),{})},getLDUserAgentString:function(e){const t=e.version||"?";return e.userAgent+"/"+t},objectHasOwnProperty:vo,onNextTick:function(e){setTimeout(e,0)},sanitizeContext:function(e){if(!e)return e;let t;return null!==e.kind&&void 0!==e.kind||go.forEach(n=>{const r=e[n];void 0!==r&&"string"!=typeof r&&(t=t||{...e},t[n]=String(r))}),t||e},transformValuesToVersionedValues:function(e){const t={};for(const n in e)vo(e,n)&&(t[n]={value:e[n],version:0});return t},transformVersionedValuesToValues:function(e){const t={};for(const n in e)vo(e,n)&&(t[n]=e[n].value);return t},wrapPromiseCallback:function(e,t){const n=e.then(e=>(t&&setTimeout(()=>{t(null,e)},0),e),e=>{if(!t)return Promise.reject(e);setTimeout(()=>{t(e,null)},0)});return t?void 0:n},once:function(e){let t,n=!1;return function(...r){return n||(n=!0,t=e.apply(this,r)),t}}},wo=new Uint8Array(16);function xo(){if(!yo&&!(yo="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return yo(wo)}var _o=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function Eo(e){return"string"==typeof e&&_o.test(e)}for(var So,ko,Oo=[],Co=0;Co<256;++Co)Oo.push((Co+256).toString(16).substr(1));function Po(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(Oo[e[t+0]]+Oo[e[t+1]]+Oo[e[t+2]]+Oo[e[t+3]]+"-"+Oo[e[t+4]]+Oo[e[t+5]]+"-"+Oo[e[t+6]]+Oo[e[t+7]]+"-"+Oo[e[t+8]]+Oo[e[t+9]]+"-"+Oo[e[t+10]]+Oo[e[t+11]]+Oo[e[t+12]]+Oo[e[t+13]]+Oo[e[t+14]]+Oo[e[t+15]]).toLowerCase();if(!Eo(n))throw TypeError("Stringified UUID is invalid");return n}var Ro=0,Lo=0;function To(e){if(!Eo(e))throw TypeError("Invalid UUID");var t,n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n}function Do(e,t,n){function r(e,r,o,i){if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));for(var t=[],n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t}(e)),"string"==typeof r&&(r=To(r)),16!==r.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var s=new Uint8Array(16+e.length);if(s.set(r),s.set(e,r.length),(s=n(s))[6]=15&s[6]|t,s[8]=63&s[8]|128,o){i=i||0;for(var a=0;a<16;++a)o[i+a]=s[a];return o}return Po(s)}try{r.name=e}catch(e){}return r.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",r.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",r}function No(e){return 14+(e+64>>>9<<4)+1}function jo(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function Ao(e,t,n,r,o,i){return jo((s=jo(jo(t,e),jo(r,i)))<<(a=o)|s>>>32-a,n);var s,a}function Io(e,t,n,r,o,i,s){return Ao(t&n|~t&r,e,t,o,i,s)}function Mo(e,t,n,r,o,i,s){return Ao(t&r|n&~r,e,t,o,i,s)}function $o(e,t,n,r,o,i,s){return Ao(t^n^r,e,t,o,i,s)}function Fo(e,t,n,r,o,i,s){return Ao(n^(t|~r),e,t,o,i,s)}var Ho=Do("v3",48,function(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var n=0;n<t.length;++n)e[n]=t.charCodeAt(n)}return function(e){for(var t=[],n=32*e.length,r="0123456789abcdef",o=0;o<n;o+=8){var i=e[o>>5]>>>o%32&255,s=parseInt(r.charAt(i>>>4&15)+r.charAt(15&i),16);t.push(s)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[No(t)-1]=t;for(var n=1732584193,r=-271733879,o=-1732584194,i=271733878,s=0;s<e.length;s+=16){var a=n,c=r,l=o,u=i;n=Io(n,r,o,i,e[s],7,-680876936),i=Io(i,n,r,o,e[s+1],12,-389564586),o=Io(o,i,n,r,e[s+2],17,606105819),r=Io(r,o,i,n,e[s+3],22,-1044525330),n=Io(n,r,o,i,e[s+4],7,-176418897),i=Io(i,n,r,o,e[s+5],12,1200080426),o=Io(o,i,n,r,e[s+6],17,-1473231341),r=Io(r,o,i,n,e[s+7],22,-45705983),n=Io(n,r,o,i,e[s+8],7,1770035416),i=Io(i,n,r,o,e[s+9],12,-1958414417),o=Io(o,i,n,r,e[s+10],17,-42063),r=Io(r,o,i,n,e[s+11],22,-1990404162),n=Io(n,r,o,i,e[s+12],7,1804603682),i=Io(i,n,r,o,e[s+13],12,-40341101),o=Io(o,i,n,r,e[s+14],17,-1502002290),n=Mo(n,r=Io(r,o,i,n,e[s+15],22,1236535329),o,i,e[s+1],5,-165796510),i=Mo(i,n,r,o,e[s+6],9,-1069501632),o=Mo(o,i,n,r,e[s+11],14,643717713),r=Mo(r,o,i,n,e[s],20,-373897302),n=Mo(n,r,o,i,e[s+5],5,-701558691),i=Mo(i,n,r,o,e[s+10],9,38016083),o=Mo(o,i,n,r,e[s+15],14,-660478335),r=Mo(r,o,i,n,e[s+4],20,-405537848),n=Mo(n,r,o,i,e[s+9],5,568446438),i=Mo(i,n,r,o,e[s+14],9,-1019803690),o=Mo(o,i,n,r,e[s+3],14,-187363961),r=Mo(r,o,i,n,e[s+8],20,1163531501),n=Mo(n,r,o,i,e[s+13],5,-1444681467),i=Mo(i,n,r,o,e[s+2],9,-51403784),o=Mo(o,i,n,r,e[s+7],14,1735328473),n=$o(n,r=Mo(r,o,i,n,e[s+12],20,-1926607734),o,i,e[s+5],4,-378558),i=$o(i,n,r,o,e[s+8],11,-2022574463),o=$o(o,i,n,r,e[s+11],16,1839030562),r=$o(r,o,i,n,e[s+14],23,-35309556),n=$o(n,r,o,i,e[s+1],4,-1530992060),i=$o(i,n,r,o,e[s+4],11,1272893353),o=$o(o,i,n,r,e[s+7],16,-155497632),r=$o(r,o,i,n,e[s+10],23,-1094730640),n=$o(n,r,o,i,e[s+13],4,681279174),i=$o(i,n,r,o,e[s],11,-358537222),o=$o(o,i,n,r,e[s+3],16,-722521979),r=$o(r,o,i,n,e[s+6],23,76029189),n=$o(n,r,o,i,e[s+9],4,-640364487),i=$o(i,n,r,o,e[s+12],11,-421815835),o=$o(o,i,n,r,e[s+15],16,530742520),n=Fo(n,r=$o(r,o,i,n,e[s+2],23,-995338651),o,i,e[s],6,-198630844),i=Fo(i,n,r,o,e[s+7],10,1126891415),o=Fo(o,i,n,r,e[s+14],15,-1416354905),r=Fo(r,o,i,n,e[s+5],21,-57434055),n=Fo(n,r,o,i,e[s+12],6,1700485571),i=Fo(i,n,r,o,e[s+3],10,-1894986606),o=Fo(o,i,n,r,e[s+10],15,-1051523),r=Fo(r,o,i,n,e[s+1],21,-2054922799),n=Fo(n,r,o,i,e[s+8],6,1873313359),i=Fo(i,n,r,o,e[s+15],10,-30611744),o=Fo(o,i,n,r,e[s+6],15,-1560198380),r=Fo(r,o,i,n,e[s+13],21,1309151649),n=Fo(n,r,o,i,e[s+4],6,-145523070),i=Fo(i,n,r,o,e[s+11],10,-1120210379),o=Fo(o,i,n,r,e[s+2],15,718787259),r=Fo(r,o,i,n,e[s+9],21,-343485551),n=jo(n,a),r=jo(r,c),o=jo(o,l),i=jo(i,u)}return[n,r,o,i]}(function(e){if(0===e.length)return[];for(var t=8*e.length,n=new Uint32Array(No(t)),r=0;r<t;r+=8)n[r>>5]|=(255&e[r/8])<<r%32;return n}(e),8*e.length))});function Uo(e,t,n,r){switch(e){case 0:return t&n^~t&r;case 1:case 3:return t^n^r;case 2:return t&n^t&r^n&r}}function qo(e,t){return e<<t|e>>>32-t}var Bo=Do("v5",80,function(e){var t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var r=unescape(encodeURIComponent(e));e=[];for(var o=0;o<r.length;++o)e.push(r.charCodeAt(o))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var i=e.length/4+2,s=Math.ceil(i/16),a=new Array(s),c=0;c<s;++c){for(var l=new Uint32Array(16),u=0;u<16;++u)l[u]=e[64*c+4*u]<<24|e[64*c+4*u+1]<<16|e[64*c+4*u+2]<<8|e[64*c+4*u+3];a[c]=l}a[s-1][14]=8*(e.length-1)/Math.pow(2,32),a[s-1][14]=Math.floor(a[s-1][14]),a[s-1][15]=8*(e.length-1)&4294967295;for(var d=0;d<s;++d){for(var h=new Uint32Array(80),p=0;p<16;++p)h[p]=a[d][p];for(var f=16;f<80;++f)h[f]=qo(h[f-3]^h[f-8]^h[f-14]^h[f-16],1);for(var g=n[0],m=n[1],v=n[2],y=n[3],b=n[4],w=0;w<80;++w){var x=Math.floor(w/20),_=qo(g,5)+Uo(x,m,v,y)+b+t[x]+h[w]>>>0;b=y,y=v,v=qo(m,30)>>>0,m=g,g=_}n[0]=n[0]+g>>>0,n[1]=n[1]+m>>>0,n[2]=n[2]+v>>>0,n[3]=n[3]+y>>>0,n[4]=n[4]+b>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,255&n[0],n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,255&n[1],n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,255&n[2],n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,255&n[3],n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,255&n[4]]}),zo=Object.freeze({__proto__:null,v1:function(e,t,n){var r=t&&n||0,o=t||new Array(16),i=(e=e||{}).node||So,s=void 0!==e.clockseq?e.clockseq:ko;if(null==i||null==s){var a=e.random||(e.rng||xo)();i??(i=So=[1|a[0],a[1],a[2],a[3],a[4],a[5]]),s??(s=ko=16383&(a[6]<<8|a[7]))}var c=void 0!==e.msecs?e.msecs:Date.now(),l=void 0!==e.nsecs?e.nsecs:Lo+1,u=c-Ro+(l-Lo)/1e4;if(u<0&&void 0===e.clockseq&&(s=s+1&16383),(u<0||c>Ro)&&void 0===e.nsecs&&(l=0),l>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");Ro=c,Lo=l,ko=s;var d=(1e4*(268435455&(c+=122192928e5))+l)%4294967296;o[r++]=d>>>24&255,o[r++]=d>>>16&255,o[r++]=d>>>8&255,o[r++]=255&d;var h=c/4294967296*1e4&268435455;o[r++]=h>>>8&255,o[r++]=255&h,o[r++]=h>>>24&15|16,o[r++]=h>>>16&255,o[r++]=s>>>8|128,o[r++]=255&s;for(var p=0;p<6;++p)o[r+p]=i[p];return t||Po(o)},v3:Ho,v4:function(e,t,n){var r=(e=e||{}).random||(e.rng||xo)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var o=0;o<16;++o)t[n+o]=r[o];return t}return Po(r)},v5:Bo,NIL:"00000000-0000-0000-0000-000000000000",version:function(e){if(!Eo(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)},validate:Eo,stringify:Po,parse:To}),Vo=["debug","info","warn","error","none"],Ko={commonBasicLogger:function(e,t){if(e&&e.destination&&"function"!=typeof e.destination)throw new Error("destination for basicLogger was set to a non-function");function n(e){return function(t){console&&console[e]&&console[e].call(console,t)}}const r=e&&e.destination?[e.destination,e.destination,e.destination,e.destination]:[n("log"),n("info"),n("warn"),n("error")],o=!(!e||!e.destination),i=e&&void 0!==e.prefix&&null!==e.prefix?e.prefix:"[LaunchDarkly] ";let s=1;if(e&&e.level)for(let l=0;l<Vo.length;l++)Vo[l]===e.level&&(s=l);function a(e,n,s){if(s.length<1)return;let a;const c=o?n+": "+i:i;if(1!==s.length&&t){const e=[...s];e[0]=c+e[0],a=t(...e)}else a=c+s[0];try{r[e](a)}catch(e){console&&console.log&&console.log("[LaunchDarkly] Configured logger's "+n+" method threw an exception: "+e)}}const c={};for(let l=0;l<Vo.length;l++){const e=Vo[l];if("none"!==e)if(l<s)c[e]=()=>{};else{const t=l;c[e]=function(){a(t,e,arguments)}}}return c},validateLogger:function(e){Vo.forEach(t=>{if("none"!==t&&(!e[t]||"function"!=typeof e[t]))throw new Error("Provided logger instance must support logger."+t+"(...) method")})}};function Wo(e){return e&&e.message?e.message:"string"==typeof e||e instanceof String?e:JSON.stringify(e)}var Go=" Please see https://docs.launchdarkly.com/sdk/client-side/javascript#initialize-the-client for instructions on SDK initialization.",Jo={bootstrapInvalid:function(){return"LaunchDarkly bootstrap data is not available because the back end could not read the flags."},bootstrapOldFormat:function(){return"LaunchDarkly client was initialized with bootstrap data that did not include flag metadata. Events may not be sent correctly."+Go},clientInitialized:function(){return"LaunchDarkly client initialized"},clientNotReady:function(){return"LaunchDarkly client is not ready"},debugEnqueueingEvent:function(e){return'enqueueing "'+e+'" event'},debugPostingDiagnosticEvent:function(e){return"sending diagnostic event ("+e.kind+")"},debugPostingEvents:function(e){return"sending "+e+" events"},debugStreamDelete:function(e){return'received streaming deletion for flag "'+e+'"'},debugStreamDeleteIgnored:function(e){return'received streaming deletion for flag "'+e+'" but ignored due to version check'},debugStreamPatch:function(e){return'received streaming update for flag "'+e+'"'},debugStreamPatchIgnored:function(e){return'received streaming update for flag "'+e+'" but ignored due to version check'},debugStreamPing:function(){return"received ping message from stream"},debugPolling:function(e){return"polling for feature flags at "+e},debugStreamPut:function(){return"received streaming update for all flags"},deprecated:function(e,t){return t?'"'+e+'" is deprecated, please use "'+t+'"':'"'+e+'" is deprecated'},environmentNotFound:function(){return"Environment not found. Double check that you specified a valid environment/client-side ID."+Go},environmentNotSpecified:function(){return"No environment/client-side ID was specified."+Go},errorFetchingFlags:function(e){return"Error fetching flag settings: "+Wo(e)},eventCapacityExceeded:function(){return"Exceeded event queue capacity. Increase capacity to avoid dropping events."},eventWithoutContext:function(){return"Be sure to call `identify` in the LaunchDarkly client: https://docs.launchdarkly.com/sdk/features/identify#javascript"},httpErrorMessage:function(e,t,n){return"Received error "+e+(401===e?" (invalid SDK key)":"")+" for "+t+" - "+(ro.isHttpErrorRecoverable(e)?n:"giving up permanently")},httpUnavailable:function(){return"Cannot make HTTP requests in this environment."+Go},identifyDisabled:function(){return"identify() has no effect here; it must be called on the main client instance"},inspectorMethodError:(e,t)=>`an inspector: "${t}" of type: "${e}" generated an exception`,invalidContentType:function(e){return'Expected application/json content type but got "'+e+'"'},invalidData:function(){return"Invalid data received from LaunchDarkly; connection may have been interrupted"},invalidInspector:(e,t)=>`an inspector: "${t}" of an invalid type (${e}) was configured`,invalidKey:function(){return"Event key must be a string"},invalidMetricValue:e=>`The track function was called with a non-numeric "metricValue" (${e}), only numeric metric values are supported.`,invalidContext:function(){return"Invalid context specified."+Go},invalidTagValue:e=>`Config option "${e}" must only contain letters, numbers, ., _ or -.`,localStorageUnavailable:function(e){return"local storage is unavailable: "+Wo(e)},networkError:e=>"network error"+(e?" ("+e+")":""),optionBelowMinimum:(e,t,n)=>'Config option "'+e+'" was set to '+t+", changing to minimum value of "+n,streamClosing:function(){return"Closing stream connection"},streamConnecting:function(e){return"Opening stream connection to "+e},streamError:function(e,t){return"Error on stream connection: "+Wo(e)+", will continue retrying after "+t+" milliseconds."},tagValueTooLong:e=>`Value of "${e}" was longer than 64 characters and was discarded.`,unknownCustomEventKey:function(e){return'Custom event "'+e+'" does not exist'},unknownOption:e=>'Ignoring unknown config option "'+e+'"',contextNotSpecified:function(){return"No context specified."+Go},unrecoverableStreamError:e=>`Error on stream connection ${Wo(e)}, giving up permanently`,wrongOptionType:(e,t,n)=>'Config option "'+e+'" should be of type '+t+", got "+n+", using default value",wrongOptionTypeBoolean:(e,t)=>'Config option "'+e+'" should be a boolean, got '+t+", converting to boolean"},{validateLogger:Yo}=Ko,Qo={baseUrl:{default:"https://app.launchdarkly.com"},streamUrl:{default:"https://clientstream.launchdarkly.com"},eventsUrl:{default:"https://events.launchdarkly.com"},sendEvents:{default:!0},streaming:{type:"boolean"},sendLDHeaders:{default:!0},requestHeaderTransform:{type:"function"},sendEventsOnlyForVariation:{default:!1},useReport:{default:!1},evaluationReasons:{default:!1},eventCapacity:{default:100,minimum:1},flushInterval:{default:2e3,minimum:2e3},samplingInterval:{default:0,minimum:0},streamReconnectDelay:{default:1e3,minimum:0},allAttributesPrivate:{default:!1},privateAttributes:{default:[]},bootstrap:{type:"string|object"},diagnosticRecordingInterval:{default:9e5,minimum:2e3},diagnosticOptOut:{default:!1},wrapperName:{type:"string"},wrapperVersion:{type:"string"},stateProvider:{type:"object"},application:{validator:function(e,t,n){const r={};return t.id&&(r.id=ei(`${e}.id`,t.id,n)),t.version&&(r.version=ei(`${e}.version`,t.version,n)),r}},inspectors:{default:[]},hooks:{default:[]},plugins:{default:[]}},Xo=/^(\w|\.|-)+$/;function Zo(e){return e&&e.replace(/\/+$/,"")}function ei(e,t,n){if("string"==typeof t&&t.match(Xo)){if(!(t.length>64))return t;n.warn(Jo.tagValueTooLong(e))}else n.warn(Jo.invalidTagValue(e))}var ti={baseOptionDefs:Qo,validate:function(e,t,n,r){const o=bo.extend({logger:{default:r}},Qo,n),i={};function s(e){bo.onNextTick(()=>{t&&t.maybeReportError(new ro.LDInvalidArgumentError(e))})}let a=bo.extend({},e||{});return function(e){const t=e;Object.keys(i).forEach(e=>{if(void 0!==t[e]){const n=i[e];r&&r.warn(Jo.deprecated(e,n)),n&&(void 0===t[n]&&(t[n]=t[e]),delete t[e])}})}(a),a=function(e){const t=bo.extend({},e);return Object.keys(o).forEach(e=>{void 0!==t[e]&&null!==t[e]||(t[e]=o[e]&&o[e].default)}),t}(a),a=function(e){const t=bo.extend({},e),n=e=>{if(null===e)return"any";if(void 0===e)return;if(Array.isArray(e))return"array";const t=typeof e;return"boolean"===t||"string"===t||"number"===t||"function"===t?t:"object"};return Object.keys(e).forEach(i=>{const a=e[i];if(null!=a){const c=o[i];if(void 0===c)s(Jo.unknownOption(i));else{const o=c.type||n(c.default),l=c.validator;if(l){const n=l(i,e[i],r);void 0!==n?t[i]=n:delete t[i]}else if("any"!==o){const e=o.split("|"),r=n(a);e.indexOf(r)<0?"boolean"===o?(t[i]=!!a,s(Jo.wrongOptionTypeBoolean(i,r))):(s(Jo.wrongOptionType(i,o,r)),t[i]=c.default):"number"===r&&void 0!==c.minimum&&a<c.minimum&&(s(Jo.optionBelowMinimum(i,a,c.minimum)),t[i]=c.minimum)}}}}),t.baseUrl=Zo(t.baseUrl),t.streamUrl=Zo(t.streamUrl),t.eventsUrl=Zo(t.eventsUrl),t}(a),Yo(a.logger),a},getTags:function(e){const t={};return e&&(e.application&&void 0!==e.application.id&&null!==e.application.id&&(t["application-id"]=[e.application.id]),e.application&&void 0!==e.application.version&&null!==e.application.id&&(t["application-version"]=[e.application.version])),t}},{getLDUserAgentString:ni}=bo,ri={getLDHeaders:function(e,t){if(t&&!t.sendLDHeaders)return{};const n={};n[e.userAgentHeaderName||"User-Agent"]=ni(e),t&&t.wrapperName&&(n["X-LaunchDarkly-Wrapper"]=t.wrapperVersion?t.wrapperName+"/"+t.wrapperVersion:t.wrapperName);const r=ti.getTags(t),o=Object.keys(r);return o.length&&(n["x-launchdarkly-tags"]=o.sort().map(e=>Array.isArray(r[e])?r[e].sort().map(t=>`${e}/${t}`):[`${e}/${r[e]}`]).reduce((e,t)=>e.concat(t),[]).join(" ")),n},transformHeaders:function(e,t){return t&&t.requestHeaderTransform?t.requestHeaderTransform({...e}):e}},{v1:oi}=zo,{getLDHeaders:ii,transformHeaders:si}=ri,ai=function(e,t,n){const r=bo.extend({"Content-Type":"application/json"},ii(e,n)),o={sendEvents:(t,o,i)=>{if(!e.httpRequest)return Promise.resolve();const s=JSON.stringify(t),a=i?null:oi();return function t(c){const l=i?r:bo.extend({},r,{"X-LaunchDarkly-Event-Schema":"4","X-LaunchDarkly-Payload-ID":a});return e.httpRequest("POST",o,si(l,n),s).promise.then(e=>{if(e)return e.status>=400&&ro.isHttpErrorRecoverable(e.status)&&c?t(!1):function(e){const t={status:e.status},n=e.header("date");if(n){const e=Date.parse(n);e&&(t.serverTime=e)}return t}(e)}).catch(()=>c?t(!1):Promise.reject())}(!0).catch(()=>{})}};return o},ci=function e(t,n=[]){if(null===t||"object"!=typeof t)return JSON.stringify(t);if(n.includes(t))throw new Error("Cycle detected");return Array.isArray(t)?`[${t.map(r=>e(r,[...n,t])).map(e=>void 0===e?"null":e).join(",")}]`:`{${Object.keys(t).sort().map(r=>{const o=e(t[r],[...n,t]);if(void 0!==o)return`${JSON.stringify(r)}:${o}`}).filter(e=>void 0!==e).join(",")}}`},{commonBasicLogger:li}=Ko;function ui(e){return"string"==typeof e&&"kind"!==e&&e.match(/^(\w|\.|-)+$/)}function di(e){return e.includes("%")||e.includes(":")?e.replace(/%/g,"%25").replace(/:/g,"%3A"):e}var hi={checkContext:function(e,t){if(e){if(t&&(void 0===e.kind||null===e.kind))return void 0!==e.key&&null!==e.key;const n=e.key,r=void 0===e.kind?"user":e.kind,o=ui(r),i="multi"===r||null!=n&&""!==n;if("multi"===r){const t=Object.keys(e).filter(e=>"kind"!==e);return i&&t.every(e=>ui(e))&&t.every(t=>{const n=e[t].key;return null!=n&&""!==n})}return i&&o}return!1},getContextKeys:function(e,t=li()){if(!e)return;const n={},{kind:r,key:o}=e;switch(r){case void 0:n.user=`${o}`;break;case"multi":Object.entries(e).filter(([e])=>"kind"!==e).forEach(([e,t])=>{t&&t.key&&(n[e]=t.key)});break;case null:t.warn(`null is not a valid context kind: ${e}`);break;case"":t.warn(`'' is not a valid context kind: ${e}`);break;default:n[r]=`${o}`}return n},getContextKinds:function(e){return e?null===e.kind||void 0===e.kind?["user"]:"multi"!==e.kind?[e.kind]:Object.keys(e).filter(e=>"kind"!==e):[]},getCanonicalKey:function(e){if(e){if((void 0===e.kind||null===e.kind||"user"===e.kind)&&e.key)return e.key;if("multi"!==e.kind&&e.key)return`${e.kind}:${di(e.key)}`;if("multi"===e.kind)return Object.keys(e).sort().filter(e=>"kind"!==e).map(t=>`${t}:${di(e[t].key)}`).join(":")}}},{getContextKinds:pi}=hi,fi=function(e){let t={},n={};return{summarizeEvent:function(e){if("feature"===e.kind){const r=ci(e.context);if(!r)return;let o=t[r];o||(t[r]=function(){const e={};let t=0,n=0,r={},o={};return e.summarizeEvent=e=>{if("feature"===e.kind){const i=e.key+":"+(null!==e.variation&&void 0!==e.variation?e.variation:"")+":"+(null!==e.version&&void 0!==e.version?e.version:""),s=r[i];let a=o[e.key];a||(a=new Set,o[e.key]=a),function(e){return e.context?pi(e.context):e.contextKeys?Object.keys(e.contextKeys):[]}(e).forEach(e=>a.add(e)),s?s.count=s.count+1:r[i]={count:1,key:e.key,version:e.version,variation:e.variation,value:e.value,default:e.default},(0===t||e.creationDate<t)&&(t=e.creationDate),e.creationDate>n&&(n=e.creationDate)}},e.getSummary=()=>{const e={};let i=!0;for(const t of Object.values(r)){let n=e[t.key];n||(n={default:t.default,counters:[],contextKinds:[...o[t.key]]},e[t.key]=n);const r={value:t.value,count:t.count};void 0!==t.variation&&null!==t.variation&&(r.variation=t.variation),void 0!==t.version&&null!==t.version?r.version=t.version:r.unknown=!0,n.counters.push(r),i=!1}return i?null:{startDate:t,endDate:n,features:e,kind:"summary"}},e.clearSummary=()=>{t=0,n=0,r={},o={}},e}(),o=t[r],n[r]=e.context),o.summarizeEvent(e)}},getSummaries:function(){const r=t,o=n;return t={},n={},Object.entries(r).map(([t,n])=>{const r=n.getSummary();return r.context=e.filter(o[t]),r})}}};function gi(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}function mi(e){return(e.startsWith("/")?e.substring(1):e).split("/").map(e=>e.indexOf("~")>=0?e.replace(/~1/g,"/").replace(/~0/g,"~"):e)}function vi(e){return!e.startsWith("/")}function yi(e,t){const n=vi(e),r=vi(t);if(n&&r)return e===t;if(n){const n=mi(t);return 1===n.length&&e===n[0]}if(r){const n=mi(e);return 1===n.length&&t===n[0]}return e===t}function bi(e){return`/${gi(e)}`}var wi={cloneExcluding:function(e,t){const n=[],r={},o=[];for(n.push(...Object.keys(e).map(t=>({key:t,ptr:bi(t),source:e,parent:r,visited:[e]})));n.length;){const e=n.pop();if(t.some(t=>yi(t,e.ptr)))o.push(e.ptr);else{const t=e.source[e.key];if(null===t)e.parent[e.key]=t;else if(Array.isArray(t))e.parent[e.key]=[...t];else if("object"==typeof t){if(e.visited.includes(t))continue;e.parent[e.key]={},n.push(...Object.keys(t).map(n=>{return{key:n,ptr:(r=e.ptr,o=gi(n),`${r}/${o}`),source:t,parent:e.parent[e.key],visited:[...e.visited,t]};var r,o}))}else e.parent[e.key]=t}}return{cloned:r,excluded:o.sort()}},compare:yi,literalToReference:bi},{getContextKeys:xi}=hi,_i=function(e,t,n,r=null,o=null,i=null){const s={},a=i||ai(e,0,t),c=bo.appendUrlPath(t.eventsUrl,"/events/bulk/"+n),l=function(e){const t={},n=e.allAttributesPrivate,r=e.privateAttributes||[],o=["key","kind","_meta","anonymous"],i=["name","ip","firstName","lastName","email","avatar","country"],s=(e,t)=>{if("object"!=typeof e||null===e||Array.isArray(e))return;const{cloned:i,excluded:s}=wi.cloneExcluding(e,((e,t)=>(n||t&&e.anonymous?Object.keys(e):[...r,...e._meta&&e._meta.privateAttributes||[]]).filter(e=>!o.some(t=>wi.compare(e,t))))(e,t));return i.key=String(i.key),s.length&&(i._meta||(i._meta={}),i._meta.redactedAttributes=s),i._meta&&(delete i._meta.privateAttributes,0===Object.keys(i._meta).length&&delete i._meta),void 0!==i.anonymous&&(i.anonymous=!!i.anonymous),i};return t.filter=(e,t=!1)=>void 0===e.kind||null===e.kind?s((e=>{const t={...e.custom||{},kind:"user",key:e.key};void 0!==e.anonymous&&(t.anonymous=!!e.anonymous);for(const n of i)delete t[n],void 0!==e[n]&&null!==e[n]&&(t[n]=String(e[n]));return void 0!==e.privateAttributeNames&&null!==e.privateAttributeNames&&(t._meta=t._meta||{},t._meta.privateAttributes=e.privateAttributeNames.map(e=>e.startsWith("/")?wi.literalToReference(e):e)),t})(e),t):"multi"===e.kind?((e,t)=>{const n={kind:e.kind},r=Object.keys(e);for(const o of r)if("kind"!==o){const r=s(e[o],t);r&&(n[o]=r)}return n})(e,t):s(e,t),t}(t),u=fi(l),d=t.samplingInterval,h=t.eventCapacity,p=t.flushInterval,f=t.logger;let g,m=[],v=0,y=!1,b=!1;function w(){return 0===d||0===Math.floor(Math.random()*d)}function x(e){m.length<h?(m.push(e),b=!1):(b||(b=!0,f.warn(Jo.eventCapacityExceeded())),r&&r.incrementDroppedEvents())}return s.enqueue=function(e){if(y)return;let t=!1,n=!1;var r;if(u.summarizeEvent(e),"feature"===e.kind?w()&&(t=!!e.trackEvents,n=!!(r=e).debugEventsUntilDate&&r.debugEventsUntilDate>v&&r.debugEventsUntilDate>(new Date).getTime()):t=w(),t&&x(function(e){const t=bo.extend({},e);return"identify"===e.kind||"feature"===e.kind||"custom"===e.kind?t.context=l.filter(e.context):(t.contextKeys=xi(e.context,f),delete t.context),"feature"===e.kind&&(delete t.trackEvents,delete t.debugEventsUntilDate),t}(e)),n){const t=bo.extend({},e,{kind:"debug"});t.context=l.filter(t.context),delete t.trackEvents,delete t.debugEventsUntilDate,x(t)}},s.flush=async function(){if(y)return Promise.resolve();const e=m;return u.getSummaries().forEach(t=>{Object.keys(t.features).length&&e.push(t)}),r&&r.setEventsInLastBatch(e.length),0===e.length?Promise.resolve():(m=[],f.debug(Jo.debugPostingEvents(e.length)),a.sendEvents(e,c).then(e=>{e&&(e.serverTime&&(v=e.serverTime),ro.isHttpErrorRecoverable(e.status)||(y=!0),e.status>=400&&bo.onNextTick(()=>{o.maybeReportError(new ro.LDUnexpectedResponseError(Jo.httpErrorMessage(e.status,"event posting","some events were dropped")))}))}))},s.start=function(){const e=()=>{s.flush(),g=setTimeout(e,p)};g=setTimeout(e,p)},s.stop=function(){clearTimeout(g)},s},Ei="ready",Si="initialized",ki="failed",{appendUrlPath:Oi,base64URLEncode:Ci,objectHasOwnProperty:Pi}=bo,{getLDHeaders:Ri,transformHeaders:Li}=ri,{isHttpErrorRecoverable:Ti}=ro,Di=function(e,t,n,r){const o=t.streamUrl,i=t.logger,s={},a=Oi(o,"/eval/"+n),c=t.useReport,l=t.evaluationReasons,u=t.streamReconnectDelay,d=Ri(e,t);let h,p=!1,f=null,g=null,m=null,v=null,y=null,b=0;function w(e){if(e.status&&"number"==typeof e.status&&!Ti(e.status))return E(),i.error(Jo.unrecoverableStreamError(e)),void(g&&(clearTimeout(g),g=null));const t=function(){const e=(t=function(){const e=u*Math.pow(2,b);return e>3e4?3e4:e}(),t-Math.trunc(.5*Math.random()*t));var t;return b+=1,e}();p||(i.warn(Jo.streamError(e,t)),p=!0),S(!1),E(),x(t)}function x(e){g||(e?g=setTimeout(_,e):_())}function _(){let r;g=null;let s="";const u={headers:d,readTimeoutMillis:3e5};if(e.eventSourceFactory){null!=v&&(s="h="+v),c?e.eventSourceAllowsReport?(r=a,u.method="REPORT",u.headers["Content-Type"]="application/json",u.body=JSON.stringify(m)):(r=Oi(o,"/ping/"+n),s=""):r=a+"/"+Ci(JSON.stringify(m)),u.headers=Li(u.headers,t),l&&(s=s+(s?"&":"")+"withReasons=true"),r=r+(s?"?":"")+s,E(),i.info(Jo.streamConnecting(r)),h=(new Date).getTime(),f=e.eventSourceFactory(r,u);for(const e in y)Pi(y,e)&&f.addEventListener(e,y[e]);f.onerror=w,f.onopen=()=>{b=0}}}function E(){f&&(i.info(Jo.streamClosing()),f.close(),f=null)}function S(e){h&&r&&r.recordStreamInit(h,!e,(new Date).getTime()-h),h=null}return s.connect=function(e,t,n){m=e,v=t,y={};for(const r in n||{})y[r]=function(e){p=!1,S(!0),n[r]&&n[r](e)};x()},s.disconnect=function(){clearTimeout(g),g=null,E()},s.isConnected=function(){return!!(f&&e.eventSourceIsActive&&e.eventSourceIsActive(f))},s},{transformHeaders:Ni,getLDHeaders:ji}=ri,Ai="application/json",Ii=function(e,t,n){const r=t.baseUrl,o=t.useReport,i=t.evaluationReasons,s=t.logger,a={},c={};function l(n,r){if(!e.httpRequest)return new Promise((e,t)=>{t(new ro.LDFlagFetchError(Jo.httpUnavailable()))});const o=r?"REPORT":"GET",i=ji(e,t);r&&(i["Content-Type"]=Ai);let s=c[n];s||(s=function(e){let t,n,r,o;const i={addPromise:(i,s)=>{t=i,n&&n(),n=s,i.then(n=>{t===i&&(r(n),e&&e())},n=>{t===i&&(o(n),e&&e())})}};return i.resultPromise=new Promise((e,t)=>{r=e,o=t}),i}(()=>{delete c[n]}),c[n]=s);const a=e.httpRequest(o,n,Ni(i,t),r),l=a.promise.then(e=>{if(200===e.status){if(e.header("content-type")&&e.header("content-type").substring(0,16)===Ai)return JSON.parse(e.body);{const t=Jo.invalidContentType(e.header("content-type")||"");return Promise.reject(new ro.LDFlagFetchError(t))}}return Promise.reject(function(e){return 404===e.status?new ro.LDInvalidEnvironmentIdError(Jo.environmentNotFound()):new ro.LDFlagFetchError(Jo.errorFetchingFlags(e.statusText||String(e.status)))}(e))},e=>Promise.reject(new ro.LDFlagFetchError(Jo.networkError(e))));return s.addPromise(l,()=>{a.cancel&&a.cancel()}),s.resultPromise}return a.fetchJSON=function(e){return l(bo.appendUrlPath(r,e),null)},a.fetchFlagSettings=function(e,t){let a,c,u,d="";return o?(c=[r,"/sdk/evalx/",n,"/context"].join(""),u=JSON.stringify(e)):(a=bo.base64URLEncode(JSON.stringify(e)),c=[r,"/sdk/evalx/",n,"/contexts/",a].join("")),t&&(d="h="+t),i&&(d=d+(d?"&":"")+"withReasons=true"),c=c+(d?"?":"")+d,s.debug(Jo.debugPolling(c)),l(c,u)},a},{v1:Mi}=zo,{getContextKinds:$i}=hi,Fi=function(e){function t(e){return null==e||"user"===e?"ld:$anonUserId":`ld:$contextKey:${e}`}function n(n,r){return null!==r.key&&void 0!==r.key?(r.key=r.key.toString(),Promise.resolve(r)):r.anonymous?function(n){return e.get(t(n))}(n).then(o=>{if(o)return r.key=o,r;{const o=Mi();return r.key=o,function(n,r){return e.set(t(r),n)}(o,n).then(()=>r)}}):Promise.reject(new ro.LDInvalidUserError(Jo.invalidContext()))}this.processContext=e=>{if(!e)return Promise.reject(new ro.LDInvalidUserError(Jo.contextNotSpecified()));const t=bo.clone(e);if("multi"===e.kind){const e=$i(t);return Promise.all(e.map(e=>n(e,t[e]))).then(()=>t)}return n(e.kind,t)}},{v1:Hi}=zo,{baseOptionDefs:Ui}=ti,{appendUrlPath:qi}=bo,Bi=function(e){const t={diagnosticId:Hi()};return e&&(t.sdkKeySuffix=e.length>6?e.substring(e.length-6):e),t},zi=function(e){let t,n,r,o;function i(e){t=e,n=0,r=0,o=[]}return i(e),{getProps:()=>({dataSinceDate:t,droppedEvents:n,eventsInLastBatch:r,streamInits:o}),setProps:e=>{t=e.dataSinceDate,n=e.droppedEvents||0,r=e.eventsInLastBatch||0,o=e.streamInits||[]},incrementDroppedEvents:()=>{n++},setEventsInLastBatch:e=>{r=e},recordStreamInit:(e,t,n)=>{const r={timestamp:e,failed:t,durationMillis:n};o.push(r)},reset:i}},Vi=function(e,t,n,r,o,i,s){const a=!!e.diagnosticUseCombinedEvent,c="ld:"+o+":$diagnostics",l=qi(i.eventsUrl,"/events/diagnostic/"+o),u=i.diagnosticRecordingInterval,d=n;let h,p,f=!!i.streaming;const g={};function m(){return{sdk:b(),configuration:{customBaseURI:i.baseUrl!==Ui.baseUrl.default,customStreamURI:i.streamUrl!==Ui.streamUrl.default,customEventsURI:i.eventsUrl!==Ui.eventsUrl.default,eventsCapacity:i.eventCapacity,eventsFlushIntervalMillis:i.flushInterval,reconnectTimeMillis:i.streamReconnectDelay,streamingDisabled:!f,allAttributesPrivate:!!i.allAttributesPrivate,diagnosticRecordingIntervalMillis:i.diagnosticRecordingInterval,usingSecureMode:!!i.hash,bootstrapMode:!!i.bootstrap,fetchGoalsDisabled:!i.fetchGoals,sendEventsOnlyForVariation:!!i.sendEventsOnlyForVariation},platform:e.diagnosticPlatformData}}function v(e){i.logger&&i.logger.debug(Jo.debugPostingDiagnosticEvent(e)),r.sendEvents(e,l,!0).then(()=>{}).catch(()=>{})}function y(){v(function(){const e=(new Date).getTime();let t={kind:a?"diagnostic-combined":"diagnostic",id:s,creationDate:e,...d.getProps()};return a&&(t={...t,...m()}),d.reset(e),t}()),p=setTimeout(y,u),h=(new Date).getTime(),a&&function(){if(t.isEnabled()){const e={...d.getProps()};t.set(c,JSON.stringify(e))}}()}function b(){const t={...e.diagnosticSdkData};return i.wrapperName&&(t.wrapperName=i.wrapperName),i.wrapperVersion&&(t.wrapperVersion=i.wrapperVersion),t}return g.start=()=>{a?function(e){if(!t.isEnabled())return e(!1);t.get(c).then(t=>{if(t)try{const e=JSON.parse(t);d.setProps(e),h=e.dataSinceDate}catch(e){}e(!0)}).catch(()=>{e(!1)})}(e=>{if(e){const e=(h||0)+u,t=(new Date).getTime();t>=e?y():p=setTimeout(y,e-t)}else 0===Math.floor(4*Math.random())?y():p=setTimeout(y,u)}):(v({kind:"diagnostic-init",id:s,creationDate:d.getProps().dataSinceDate,...m()}),p=setTimeout(y,u))},g.stop=()=>{p&&clearTimeout(p)},g.setStreaming=e=>{f=e},g},{onNextTick:Ki}=bo,Wi={flagUsed:"flag-used",flagDetailsChanged:"flag-details-changed",flagDetailChanged:"flag-detail-changed",clientIdentityChanged:"client-identity-changed"};Object.freeze(Wi);var Gi={InspectorTypes:Wi,InspectorManager:function(e,t){const n={},r={[Wi.flagUsed]:[],[Wi.flagDetailsChanged]:[],[Wi.flagDetailChanged]:[],[Wi.clientIdentityChanged]:[]},o={[Wi.flagUsed]:[],[Wi.flagDetailsChanged]:[],[Wi.flagDetailChanged]:[],[Wi.clientIdentityChanged]:[]},i=e&&e.map(e=>function(e,t){let n=!1;const r={type:e.type,name:e.name,synchronous:e.synchronous,method:(...o)=>{try{e.method(...o)}catch{n||(n=!0,t.warn(Jo.inspectorMethodError(r.type,r.name)))}}};return r}(e,t));return i&&i.forEach(e=>{Object.prototype.hasOwnProperty.call(r,e.type)&&!e.synchronous?r[e.type].push(e):Object.prototype.hasOwnProperty.call(o,e.type)&&e.synchronous?o[e.type].push(e):t.warn(Jo.invalidInspector(e.type,e.name))}),n.hasListeners=e=>r[e]&&r[e].length||o[e]&&o[e].length,n.onFlagUsed=(e,t,n)=>{const i=Wi.flagUsed;o[i].length&&o[i].forEach(r=>r.method(e,t,n)),r[i].length&&Ki(()=>{r[i].forEach(r=>r.method(e,t,n))})},n.onFlags=e=>{const t=Wi.flagDetailsChanged;o[t].length&&o[t].forEach(t=>t.method(e)),r[t].length&&Ki(()=>{r[t].forEach(t=>t.method(e))})},n.onFlagChanged=(e,t)=>{const n=Wi.flagDetailChanged;o[n].length&&o[n].forEach(n=>n.method(e,t)),r[n].length&&Ki(()=>{r[n].forEach(n=>n.method(e,t))})},n.onIdentityChanged=e=>{const t=Wi.clientIdentityChanged;o[t].length&&o[t].forEach(t=>t.method(e)),r[t].length&&Ki(()=>{r[t].forEach(t=>t.method(e))})},n}},{LDTimeoutError:Ji}=ro,Yi="unknown hook";function Qi(e,t,n,r,o){try{return r()}catch(r){return e?.error(`An error was encountered in "${t}" of the "${n}" hook: ${r}`),o}}function Xi(e,t){try{return t.getMetadata().name||Yi}catch{return e.error("Exception thrown getting metadata for hook. Unable to get hook name."),Yi}}var Zi="unknown plugin";function es(e,t){try{return t.getMetadata().name||Zi}catch(t){return e.error("Exception thrown getting metadata for plugin. Unable to get plugin name."),Zi}}var ts={getPluginHooks:function(e,t,n){const r=[];return n.forEach(n=>{try{const o=n.getHooks?.(t);void 0===o?e.error(`Plugin ${es(e,n)} returned undefined from getHooks.`):o&&o.length>0&&r.push(...o)}catch(t){e.error(`Exception thrown getting hooks for plugin ${es(e,n)}. Unable to get hooks.`)}}),r},registerPlugins:function(e,t,n,r){r.forEach(r=>{try{r.register(n,t)}catch(t){e.error(`Exception thrown registering plugin ${es(e,r)}.`)}})},createPluginEnvironment:function(e,t,n){const r={};e.userAgent&&(r.name=e.userAgent),e.version&&(r.version=e.version),n.wrapperName&&(r.wrapperName=n.wrapperName),n.wrapperVersion&&(r.wrapperVersion=n.wrapperVersion);const o={};n.application&&(n.application.name&&(o.name=n.application.name),n.application.version&&(o.version=n.application.version));const i={sdk:r,clientSideId:t};return Object.keys(o).length>0&&(i.application=o),i}},{commonBasicLogger:ns}=Ko,{checkContext:rs,getContextKeys:os}=hi,{InspectorTypes:is,InspectorManager:ss}=Gi,{getPluginHooks:as,registerPlugins:cs,createPluginEnvironment:ls}=ts,us="change",ds="internal-change",hs={initialize:function(e,t,n,r,o){const i=n&&n.logger?n.logger:o&&o.logger&&o.logger.default||ns("warn"),s=function(e){const t={},n={};return t.on=function(e,t,r){n[e]=n[e]||[],n[e]=n[e].concat({handler:t,context:r})},t.off=function(e,t,r){if(n[e])for(let o=0;o<n[e].length;o++)n[e][o].handler===t&&n[e][o].context===r&&(n[e]=n[e].slice(0,o).concat(n[e].slice(o+1)))},t.emit=function(e){if(!n[e])return;const t=n[e].slice(0);for(let n=0;n<t.length;n++)t[n].handler.apply(t[n].context,Array.prototype.slice.call(arguments,1))},t.getEvents=function(){return Object.keys(n)},t.getEventListenerCount=function(e){return n[e]?n[e].length:0},t.maybeReportError=function(t){t&&(n.error?this.emit("error",t):(e||console).error(t.message))},t}(i),a=function(e){let t=!1,n=!1,r=null,o=null;const i=new Promise(t=>{const n=()=>{e.off(Ei,n),t()};e.on(Ei,n)}).catch(()=>{});return{getInitializationPromise:()=>o||(t?Promise.resolve():n?Promise.reject(r):(o=new Promise((t,n)=>{const r=()=>{e.off(Si,r),t()},o=t=>{e.off(ki,o),n(t)};e.on(Si,r),e.on(ki,o)}),o)),getReadyPromise:()=>i,signalSuccess:()=>{t||n||(t=!0,e.emit(Si),e.emit(Ei))},signalFailure:o=>{t||n||(n=!0,r=o,e.emit(ki,o),e.emit(Ei)),e.maybeReportError(o)}}}(s),c=ti.validate(n,s,o,i),l=ss(c.inspectors,i),u=c.sendEvents;let d=e,h=c.hash;const p=[...c.plugins],f=ls(r,e,c),g=as(i,f,p),m=function(e,t){const n=t?[...t]:[];return{withEvaluation:function(t,r,o,i){if(0===n.length)return i();const s=[...n],a={flagKey:t,context:r,defaultValue:o},c=function(e,t,n){return t.map(t=>Qi(e,"beforeEvaluation",Xi(e,t),()=>t?.beforeEvaluation?.(n,{})??{},{}))}(e,s,a),l=i();return function(e,t,n,r,o){for(let i=t.length-1;i>=0;i-=1){const s=t[i],a=r[i];Qi(e,"afterEvaluation",Xi(e,s),()=>s?.afterEvaluation?.(n,a,o)??{},{})}}(e,s,a,c,l),l},identify:function(t,r){const o=[...n],i={context:t,timeout:r},s=function(e,t,n){return t.map(t=>Qi(e,"beforeIdentify",Xi(e,t),()=>t?.beforeIdentify?.(n,{})??{},{}))}(e,o,i);return t=>{!function(e,t,n,r,o){for(let i=t.length-1;i>=0;i-=1){const s=t[i],a=r[i];Qi(e,"afterIdentify",Xi(e,s),()=>s?.afterIdentify?.(n,a,o)??{},{})}}(e,o,i,s,t)}},addHook:function(e){n.push(e)},afterTrack:function(t){0!==n.length&&function(e,t,n){for(let r=t.length-1;r>=0;r-=1){const o=t[r];Qi(e,"afterTrack",Xi(e,o),()=>o?.afterTrack?.(n),void 0)}}(e,[...n],t)}}}(i,[...c.hooks,...g]),v=function(e,t){const n={};let r=!1;const o=e=>{r||(r=!0,t.warn(Jo.localStorageUnavailable(e)))};return n.isEnabled=()=>!!e,n.get=t=>new Promise(n=>{e?e.get(t).then(n).catch(e=>{o(e),n(void 0)}):n(void 0)}),n.set=(t,n)=>new Promise(r=>{e?e.set(t,n).then(()=>r(!0)).catch(e=>{o(e),r(!1)}):r(!1)}),n.clear=t=>new Promise(n=>{e?e.clear(t).then(()=>n(!0)).catch(e=>{o(e),n(!1)}):n(!1)}),n}(r.localStorage,i),y=ai(r,0,c),b=c.sendEvents&&!c.diagnosticOptOut,w=b?Bi(d):null,x=b?zi((new Date).getTime()):null,_=b?Vi(r,v,x,y,d,c,w):null,E=Di(r,c,d,x),S=c.eventProcessor||_i(r,c,d,x,s,y),k=Ii(r,c,d);let O,C,P,R={},L=c.streaming,T=!1,D=!1,N=!0;const j=c.stateProvider,A=function(e,t){const n={};let r;return n.setContext=function(e){r=bo.sanitizeContext(e),r&&t&&t(bo.clone(r))},n.getContext=function(){return r?bo.clone(r):null},e&&n.setContext(e),n}(null,function(e){(function(e){j||e&&$({kind:"identify",context:e,creationDate:(new Date).getTime()})})(e),l.hasListeners(is.clientIdentityChanged)&&l.onIdentityChanged(A.getContext())}),I=new Fi(v),M=v.isEnabled()?function(e,t,n,r){const o={};function i(){let e="";const o=r.getContext();return o&&(e=n||bo.btoa(JSON.stringify(o))),"ld:"+t+":"+e}return o.loadFlags=()=>e.get(i()).then(e=>{if(null==e)return null;try{let t=JSON.parse(e);if(t){const e=t.$schema;void 0===e||e<1?t=bo.transformValuesToVersionedValues(t):delete t.$schema}return t}catch(e){return o.clearFlags().then(()=>null)}}),o.saveFlags=t=>{const n=bo.extend({},t,{$schema:1});return e.set(i(),JSON.stringify(n))},o.clearFlags=()=>e.clear(i()),o}(v,d,h,A):null;function $(e){d&&(j&&j.enqueueEvent&&j.enqueueEvent(e)||(e.context?(N=!1,!u||D||r.isDoNotTrack()||(i.debug(Jo.debugEnqueueingEvent(e.kind)),S.enqueue(e))):N&&(i.warn(Jo.eventWithoutContext()),N=!1)))}function F(e,t){l.hasListeners(is.flagDetailChanged)&&l.onFlagChanged(e.key,z(t))}function H(){l.hasListeners(is.flagDetailsChanged)&&l.onFlags(Object.entries(R).map(([e,t])=>({key:e,detail:z(t)})).reduce((e,t)=>(e[t.key]=t.detail,e),{}))}function U(e,t,n,r){const o=A.getContext(),i=new Date,s={kind:"feature",key:e,context:o,value:t?t.value:null,variation:t?t.variationIndex:null,default:n,creationDate:i.getTime()},a=R[e];a&&(s.version=a.flagVersion?a.flagVersion:a.version,s.trackEvents=a.trackEvents,s.debugEventsUntilDate=a.debugEventsUntilDate),(r||a&&a.trackReason)&&t&&(s.reason=t.reason),$(s)}function q(e){return rs(e,!1)?Promise.resolve(e):Promise.reject(new ro.LDInvalidUserError(Jo.invalidContext()))}function B(e,t,n,r,o,i){let s,a;return R&&bo.objectHasOwnProperty(R,e)&&R[e]&&!R[e].deleted?(a=R[e],s=z(a),null!==a.value&&void 0!==a.value||(s.value=t)):s={value:t,variationIndex:null,reason:{kind:"ERROR",errorKind:"FLAG_NOT_FOUND"}},n&&(o||a?.prerequisites?.forEach(e=>{B(e,void 0,n,!1,!1,!1)}),U(e,s,t,r)),!o&&i&&function(e,t){l.hasListeners(is.flagUsed)&&l.onFlagUsed(e,t,A.getContext())}(e,s),s}function z(e){return{value:e.value,variationIndex:void 0===e.variation?null:e.variation,reason:e.reason||null}}function V(){if(C=!0,!A.getContext())return;const e=e=>{try{return JSON.parse(e)}catch(e){return void s.maybeReportError(new ro.LDInvalidDataError(Jo.invalidData()))}};E.connect(A.getContext(),h,{ping:function(){i.debug(Jo.debugStreamPing());const e=A.getContext();k.fetchFlagSettings(e,h).then(t=>{bo.deepEquals(e,A.getContext())&&W(t||{})}).catch(e=>{s.maybeReportError(new ro.LDFlagFetchError(Jo.errorFetchingFlags(e)))})},put:function(t){const n=e(t.data);n&&(i.debug(Jo.debugStreamPut()),W(n))},patch:function(t){const n=e(t.data);if(!n)return;const r=R[n.key];if(!r||!r.version||!n.version||r.version<n.version){i.debug(Jo.debugStreamPatch(n.key));const e={},t=bo.extend({},n);delete t.key,R[n.key]=t;const o=z(t);e[n.key]=r?{previous:r.value,current:o}:{current:o},F(n,t),G(e)}else i.debug(Jo.debugStreamPatchIgnored(n.key))},delete:function(t){const n=e(t.data);if(n)if(!R[n.key]||R[n.key].version<n.version){i.debug(Jo.debugStreamDelete(n.key));const e={};R[n.key]&&!R[n.key].deleted&&(e[n.key]={previous:R[n.key].value}),R[n.key]={version:n.version,deleted:!0},F(n,R[n.key]),G(e)}else i.debug(Jo.debugStreamDeleteIgnored(n.key))}})}function K(){C&&(E.disconnect(),C=!1)}function W(e){const t={};if(!e)return Promise.resolve();for(const n in R)bo.objectHasOwnProperty(R,n)&&R[n]&&(e[n]&&!bo.deepEquals(e[n].value,R[n].value)?t[n]={previous:R[n].value,current:z(e[n])}:e[n]&&!e[n].deleted||(t[n]={previous:R[n].value}));for(const n in e)bo.objectHasOwnProperty(e,n)&&e[n]&&(!R[n]||R[n].deleted)&&(t[n]={current:z(e[n])});return R={...e},H(),G(t).catch(()=>{})}function G(e){const t=Object.keys(e);if(t.length>0){const n={};t.forEach(t=>{const r=e[t].current,o=r?r.value:void 0,i=e[t].previous;s.emit(us+":"+t,o,i),n[t]=r?{current:o,previous:i}:{previous:i}}),s.emit(us,n),s.emit(ds,R),c.sendEventsOnlyForVariation||j||t.forEach(t=>{U(t,e[t].current)})}return O&&M?M.saveFlags(R):Promise.resolve()}function J(){const e=L||P&&void 0===L;e&&!C?V():!e&&C&&K(),_&&_.setStreaming(e)}function Y(e){return e===us||e.substr(0,7)===us+":"}if("string"==typeof c.bootstrap&&"LOCALSTORAGE"===c.bootstrap.toUpperCase()&&(M?O=!0:i.warn(Jo.localStorageUnavailable())),"object"==typeof c.bootstrap&&(R=function(e){const t=Object.keys(e),n="$flagsState",r="$valid",o=e[n];!o&&t.length&&i.warn(Jo.bootstrapOldFormat()),!1===e[r]&&i.warn(Jo.bootstrapInvalid());const s={};return t.forEach(t=>{if(t!==n&&t!==r){let n={value:e[t]};o&&o[t]?n=bo.extend(n,o[t]):n.version=0,s[t]=n}}),s}(c.bootstrap)),j){const e=j.getInitialState();e?Q(e):j.on("init",Q),j.on("update",function(e){e.context&&A.setContext(e.context),e.flags&&W(e.flags)})}else(function(){if(!e)return Promise.reject(new ro.LDInvalidEnvironmentIdError(Jo.environmentNotSpecified()));let n;return I.processContext(t).then(q).then(e=>(n=bo.once(m.identify(e,void 0)),e)).then(e=>(n?.({status:"completed"}),A.setContext(e),"object"==typeof c.bootstrap?X():O?M.loadFlags().then(e=>null==e?(R={},k.fetchFlagSettings(A.getContext(),h).then(e=>W(e||{})).then(X).catch(e=>{Z(new ro.LDFlagFetchError(Jo.errorFetchingFlags(e)))})):(R=e,bo.onNextTick(X),k.fetchFlagSettings(A.getContext(),h).then(e=>W(e)).catch(e=>s.maybeReportError(e)))):k.fetchFlagSettings(A.getContext(),h).then(e=>{R=e||{},H(),X()}).catch(e=>{R={},Z(e)}))).catch(e=>{throw n?.({status:"error"}),e})})().catch(Z);function Q(e){d=e.environment,A.setContext(e.context),R={...e.flags},bo.onNextTick(X)}function X(){i.info(Jo.clientInitialized()),T=!0,J(),a.signalSuccess()}function Z(e){a.signalFailure(e)}const ee={waitForInitialization:function(e=void 0){if(null!=e){if("number"==typeof e)return function(e){e>5&&i.warn("The waitForInitialization function was called with a timeout greater than 5 seconds. We recommend a timeout of 5 seconds or less.");const t=a.getInitializationPromise(),n=function(e,t){return new Promise((n,r)=>{setTimeout(()=>{r(new Ji(`${t} timed out after ${e} seconds.`))},1e3*e)})}(e,"waitForInitialization");return Promise.race([n,t]).catch(e=>{throw e instanceof ro.LDTimeoutError&&i.error(`waitForInitialization error: ${e}`),e})}(e);i.warn("The waitForInitialization method was provided with a non-numeric timeout.")}return i.warn("The waitForInitialization function was called without a timeout specified. In a future version a default timeout will be applied."),a.getInitializationPromise()},waitUntilReady:()=>a.getReadyPromise(),identify:function(e,t,n){if(D)return bo.wrapPromiseCallback(Promise.resolve({}),n);if(j)return i.warn(Jo.identifyDisabled()),bo.wrapPromiseCallback(Promise.resolve(bo.transformVersionedValuesToValues(R)),n);let r;const o=O&&M?M.clearFlags():Promise.resolve();return bo.wrapPromiseCallback(o.then(()=>I.processContext(e)).then(q).then(e=>(r=bo.once(m.identify(e,void 0)),e)).then(e=>k.fetchFlagSettings(e,t).then(n=>{const r=bo.transformVersionedValuesToValues(n);return A.setContext(e),h=t,n?W(n).then(()=>r):r})).then(e=>(r?.({status:"completed"}),C&&V(),e)).catch(e=>(r?.({status:"error"}),s.maybeReportError(e),Promise.reject(e))),n)},getContext:function(){return A.getContext()},variation:function(e,t){const{value:n}=m.withEvaluation(e,A.getContext(),t,()=>B(e,t,!0,!1,!1,!0));return n},variationDetail:function(e,t){return m.withEvaluation(e,A.getContext(),t,()=>B(e,t,!0,!0,!1,!0))},track:function(e,t,n){if("string"!=typeof e)return void s.maybeReportError(new ro.LDInvalidEventKeyError(Jo.unknownCustomEventKey(e)));void 0!==n&&"number"!=typeof n&&i.warn(Jo.invalidMetricValue(typeof n)),r.customEventFilter&&!r.customEventFilter(e)&&i.warn(Jo.unknownCustomEventKey(e));const o=A.getContext(),a={kind:"custom",key:e,context:o,url:r.getCurrentUrl(),creationDate:(new Date).getTime()};o&&o.anonymous&&(a.contextKind=o.anonymous?"anonymousUser":"user"),null!=t&&(a.data=t),null!=n&&(a.metricValue=n),$(a),m.afterTrack({context:o,key:e,data:t,metricValue:n})},on:function(e,t,n){Y(e)?(P=!0,T&&J(),s.on(e,t,n)):s.on(...arguments)},off:function(e){if(s.off(...arguments),Y(e)){let e=!1;s.getEvents().forEach(t=>{Y(t)&&s.getEventListenerCount(t)>0&&(e=!0)}),e||(P=!1,C&&void 0===L&&K())}},setStreaming:function(e){const t=null===e?void 0:e;t!==L&&(L=t,J())},flush:function(e){return bo.wrapPromiseCallback(u?S.flush():Promise.resolve(),e)},allFlags:function(){const e={};if(!R)return e;for(const t in R)bo.objectHasOwnProperty(R,t)&&!R[t].deleted&&(e[t]=B(t,null,!c.sendEventsOnlyForVariation,!1,!0,!1).value);return e},close:function(e){if(D)return bo.wrapPromiseCallback(Promise.resolve(),e);const t=()=>{D=!0,R={}},n=Promise.resolve().then(()=>{if(K(),_&&_.stop(),u)return S.stop(),S.flush()}).then(t).catch(t);return bo.wrapPromiseCallback(n,e)},addHook:function(e){m.addHook(e)}};return cs(i,f,ee,p),{client:ee,options:c,emitter:s,ident:A,logger:i,requestor:k,start:function(){u&&(_&&_.start(),S.start())},enqueueEvent:$,getFlagsInternal:function(){return R},getEnvironmentId:()=>d,internalChangeEventName:ds}},commonBasicLogger:ns,errors:ro,messages:Jo,utils:bo,getContextKeys:os},ps=hs.initialize,fs=hs.errors;function gs(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ms(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function vs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ms(Object(n),!0).forEach(function(t){gs(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ms(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var ys=hs.commonBasicLogger,bs={promise:Promise.resolve({status:200,header:function(){return null},body:null})};var ws=e=>{if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")};function xs(e,t,n,r){var o,i,s=("substring"!==e.kind&&"regex"!==e.kind||!r.includes("/")?t.replace(r,""):t).replace(n,"");switch(e.kind){case"exact":i=t,o=new RegExp("^"+ws(e.url)+"/?$");break;case"canonical":i=s,o=new RegExp("^"+ws(e.url)+"/?$");break;case"substring":i=s,o=new RegExp(".*"+ws(e.substring)+".*$");break;case"regex":i=s,o=new RegExp(e.pattern);break;default:return!1}return o.test(i)}function _s(e,t){for(var n={},r=null,o=[],i=0;i<e.length;i++)for(var s=e[i],a=s.urls||[],c=0;c<a.length;c++)if(xs(a[c],window.location.href,window.location.search,window.location.hash)){"pageview"===s.kind?t("pageview",s):(o.push(s),t("click_pageview",s));break}return o.length>0&&(r=function(e){for(var n=function(e,t){for(var n=[],r=0;r<t.length;r++)for(var o=e.target,i=t[r],s=i.selector,a=document.querySelectorAll(s);o&&a.length>0;){for(var c=0;c<a.length;c++)o===a[c]&&n.push(i);o=o.parentNode}return n}(e,o),r=0;r<n.length;r++)t("click",n[r])},document.addEventListener("click",r)),n.dispose=function(){document.removeEventListener("click",r)},n}var Es="goalsReady",Ss={fetchGoals:{default:!0},hash:{type:"string"},eventProcessor:{type:"object"},eventUrlTransformer:{type:"function"},disableSyncEventPost:{default:!1}};function ks(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=function(e){var t,n={userAgentHeaderName:"X-LaunchDarkly-User-Agent",synchronousFlush:!1};if(window.XMLHttpRequest){var r=e&&e.disableSyncEventPost;n.httpRequest=function(e,t,o,i){var s=n.synchronousFlush&!r;return n.synchronousFlush=!1,function(e,t,n,r,o){if(o&&!function(){var e=window.navigator&&window.navigator.userAgent;if(e){var t=e.match(/Chrom(e|ium)\/([0-9]+)\./);if(t)return parseInt(t[2],10)<73}return!0}())return bs;var i,s=new window.XMLHttpRequest;for(var a in s.open(e,t,!o),n||{})Object.prototype.hasOwnProperty.call(n,a)&&s.setRequestHeader(a,n[a]);if(o){try{s.send(r)}catch(e){}return bs}return{promise:new Promise(function(e,t){s.addEventListener("load",function(){i||e({status:s.status,header:function(e){return s.getResponseHeader(e)},body:s.responseText})}),s.addEventListener("error",function(){i||t(new Error)}),s.send(r)}),cancel:function(){i=!0,s.abort()}}}(e,t,o,i,s)}}n.httpAllowsPost=function(){return void 0===t&&(t=!!window.XMLHttpRequest&&"withCredentials"in new window.XMLHttpRequest),t},n.httpFallbackPing=function(e){(new window.Image).src=e};var o,i=e&&e.eventUrlTransformer;n.getCurrentUrl=function(){return i?i(window.location.href):window.location.href},n.isDoNotTrack=function(){var e;return 1===(e=window.navigator&&void 0!==window.navigator.doNotTrack?window.navigator.doNotTrack:window.navigator&&void 0!==window.navigator.msDoNotTrack?window.navigator.msDoNotTrack:window.doNotTrack)||!0===e||"1"===e||"yes"===e};try{window.localStorage&&(n.localStorage={get:function(e){return new Promise(function(t){t(window.localStorage.getItem(e))})},set:function(e,t){return new Promise(function(n){window.localStorage.setItem(e,t),n()})},clear:function(e){return new Promise(function(t){window.localStorage.removeItem(e),t()})}})}catch(e){n.localStorage=null}if(e&&e.useReport&&"function"==typeof window.EventSourcePolyfill&&window.EventSourcePolyfill.supportedOptions&&window.EventSourcePolyfill.supportedOptions.method?(n.eventSourceAllowsReport=!0,o=window.EventSourcePolyfill):(n.eventSourceAllowsReport=!1,o=window.EventSource),window.EventSource){var s=3e5;n.eventSourceFactory=function(e,t){var n=vs(vs({},{heartbeatTimeout:s,silentTimeout:s,skipDefaultHeaders:!0}),t);return new o(e,n)},n.eventSourceIsActive=function(e){return e.readyState===window.EventSource.OPEN||e.readyState===window.EventSource.CONNECTING}}return n.userAgent="JSClient",n.version="3.8.1",n.diagnosticSdkData={name:"js-client-sdk",version:"3.8.1"},n.diagnosticPlatformData={name:"JS"},n.diagnosticUseCombinedEvent=!0,n}(n),o=ps(e,t,n,r,Ss),i=o.client,s=o.options,a=o.emitter,c=new Promise(function(e){var t=a.on(Es,function(){a.off(Es,t),e()})});i.waitUntilGoalsReady=function(){return c},s.fetchGoals?function(e,t){var n,r;function o(){r&&r.dispose(),n&&n.length&&(r=_s(n,i))}function i(t,n){var r=e.ident.getContext(),o={kind:t,key:n.key,data:null,url:window.location.href,creationDate:(new Date).getTime(),context:r};return"click"===t&&(o.selector=n.selector),e.enqueueEvent(o)}e.requestor.fetchJSON("/sdk/goals/"+e.getEnvironmentId()).then(function(e){e&&e.length>0&&(r=_s(n=e,i),function(e,t){var n,r=window.location.href;function o(){(n=window.location.href)!==r&&(r=n,t())}(function e(t,n){t(),setTimeout(function(){e(t,n)},n)})(o,300),window.history&&window.history.pushState?window.addEventListener("popstate",o):window.addEventListener("hashchange",o)}(0,o)),t()}).catch(function(n){e.emitter.maybeReportError(new fs.LDUnexpectedResponseError((n&&n.message,n.message))),t()})}(o,function(){return a.emit(Es)}):a.emit(Es),"complete"!==document.readyState?window.addEventListener("load",o.start):o.start();var l=function(){r.synchronousFlush=!0,i.flush().catch(function(){}),r.synchronousFlush=!1};return document.addEventListener("visibilitychange",function(){"hidden"===document.visibilityState&&l()}),window.addEventListener("pagehide",l),i}var Os=function(e){return ys(vs({destination:console.log},e))},Cs=o((e,t)=>{ct();var n="[object Symbol]",r=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,o=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,i="\\ud800-\\udfff",s="\\u0300-\\u036f\\ufe20-\\ufe23",a="\\u20d0-\\u20f0",c="\\u2700-\\u27bf",l="a-z\\xdf-\\xf6\\xf8-\\xff",u="A-Z\\xc0-\\xd6\\xd8-\\xde",d="\\ufe0e\\ufe0f",h="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",p="['’]",f="["+i+"]",g="["+h+"]",m="["+s+a+"]",v="\\d+",y="["+c+"]",b="["+l+"]",w="[^"+i+h+v+c+l+u+"]",x="\\ud83c[\\udffb-\\udfff]",_="[^"+i+"]",E="(?:\\ud83c[\\udde6-\\uddff]){2}",S="[\\ud800-\\udbff][\\udc00-\\udfff]",k="["+u+"]",O="\\u200d",C="(?:"+b+"|"+w+")",P="(?:"+k+"|"+w+")",R="(?:['’](?:d|ll|m|re|s|t|ve))?",L="(?:['’](?:D|LL|M|RE|S|T|VE))?",T="(?:"+m+"|"+x+")"+"?",D="["+d+"]?",N=D+T+("(?:"+O+"(?:"+[_,E,S].join("|")+")"+D+T+")*"),j="(?:"+[y,E,S].join("|")+")"+N,A="(?:"+[_+m+"?",m,E,S,f].join("|")+")",I=RegExp(p,"g"),M=RegExp(m,"g"),$=RegExp(x+"(?="+x+")|"+A+N,"g"),F=RegExp([k+"?"+b+"+"+R+"(?="+[g,k,"$"].join("|")+")",P+"+"+L+"(?="+[g,k+C,"$"].join("|")+")",k+"?"+C+"+"+R,k+"+"+L,v,j].join("|"),"g"),H=RegExp("["+O+i+s+a+d+"]"),U=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,q="object"==typeof rt&&rt&&rt.Object===Object&&rt,B="object"==typeof self&&self&&self.Object===Object&&self,z=q||B||Function("return this")();var V,K=(V={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"ss"},function(e){return null==V?void 0:V[e]});function W(e){return H.test(e)}function G(e){return W(e)?function(e){return e.match($)||[]}(e):function(e){return e.split("")}(e)}var J=Object.prototype.toString,Y=z.Symbol,Q=Y?Y.prototype:void 0,X=Q?Q.toString:void 0;function Z(e){if("string"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&J.call(e)==n}(e))return X?X.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function ee(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=r?e:function(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r<o;)i[r]=e[r+t];return i}(e,t,n)}function te(e){return null==e?"":Z(e)}var ne,re=(ne=function(e,t,n){return t=t.toLowerCase(),e+(n?ie(te(t).toLowerCase()):t)},function(e){return function(e,t,n,r){var o=-1,i=e?e.length:0;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}(function(e,t,n){return e=te(e),void 0===(t=n?void 0:t)?function(e){return U.test(e)}(e)?function(e){return e.match(F)||[]}(e):function(e){return e.match(r)||[]}(e):e.match(t)||[]}(function(e){return(e=te(e))&&e.replace(o,K).replace(M,"")}(e).replace(I,"")),ne,"")});var oe,ie=(oe="toUpperCase",function(e){var t=W(e=te(e))?G(e):void 0,n=t?t[0]:e.charAt(0),r=t?ee(t,1).join(""):e.slice(1);return n[oe]()+r});t.exports=re}),Ps=e(Cs()),Rs=(Gr(),(0,zr.createContext)({flags:{},flagKeyMap:{},ldClient:void 0})),{Provider:Ls,Consumer:Ts}=Rs,Ds={useCamelCaseFlagKeys:!0,sendEventsOnFlagRead:!0,reactContext:Rs},Ns=e=>{var t;return null!=(t=e.context)?t:e.user},js=e=>{const t={};for(const n in e)0!==n.indexOf("$")&&(t[(0,Ps.default)(n)]=e[n]);return t},As=(e,t)=>{const n=e.allFlags();return t?Object.keys(t).reduce((e,r)=>(e[r]=Object.prototype.hasOwnProperty.call(n,r)?n[r]:t[r],e),{}):n};function Is(e,t,n=Ds,r){const o=function(e,t){return void 0===t?e:Object.keys(t).reduce((t,n)=>(Ms(e,n)&&(t[n]=e[n]),t),{})}(t,r),{useCamelCaseFlagKeys:i=!0}=n,[s,a={}]=i?function(e){const t={},n={};for(const r in e){if(0===r.indexOf("$"))continue;const o=(0,Ps.default)(r);t[o]=e[r],n[o]=r}return[t,n]}(o):[o];return{flags:n.sendEventsOnFlagRead?$s(e,s,a,i):s,flagKeyMap:a}}function Ms(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function $s(e,t,n,r){return new Proxy(t,{get(t,o,i){const s=Reflect.get(t,o,i),a=r&&Ms(n,o)||Ms(t,o);if("symbol"==typeof o||!a)return s;if(void 0===s)return;const c=r?n[o]:o;return e.variation(c,s)}})}js.camelCaseKeys=js;var Fs={wrapperName:"react-client-sdk",wrapperVersion:"3.8.1",sendEventsOnlyForVariation:!0},Hs=Object.defineProperty,Us=Object.defineProperties,qs=Object.getOwnPropertyDescriptors,Bs=Object.getOwnPropertySymbols,zs=Object.prototype.hasOwnProperty,Vs=Object.prototype.propertyIsEnumerable,Ks=(e,t,n)=>t in e?Hs(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ws=(e,t)=>{for(var n in t||(t={}))zs.call(t,n)&&Ks(e,n,t[n]);if(Bs)for(var n of Bs(t))Vs.call(t,n)&&Ks(e,n,t[n]);return e},Gs=(e,t)=>Us(e,qs(t)),Js=(e,t,n)=>new Promise((r,o)=>{var i=e=>{try{a(n.next(e))}catch(e){o(e)}},s=e=>{try{a(n.throw(e))}catch(e){o(e)}},a=e=>e.done?r(e.value):Promise.resolve(e.value).then(i,s);a((n=n.apply(e,t)).next())}),Ys=class extends zr.Component{constructor(e){super(e),this.getReactOptions=()=>Ws(Ws({},Ds),this.props.reactOptions),this.subscribeToChanges=e=>{const{flags:t}=this.props;e.on("change",n=>{const r=this.getReactOptions(),o=((e,t)=>{const n={};for(const r in e)t&&void 0===t[r]||(n[r]=e[r].current);return n})(n,t),i=Ws(Ws({},this.state.unproxiedFlags),o);Object.keys(o).length>0&&this.setState(n=>Ws(Gs(Ws({},n),{unproxiedFlags:i}),Is(e,i,r,t)))})},this.onFailed=(e,t)=>{this.setState(e=>Gs(Ws({},e),{error:t}))},this.onReady=(e,t,n)=>{const r=As(e,n);this.setState(o=>Ws(Gs(Ws({},o),{unproxiedFlags:r}),Is(e,r,t,n)))},this.prepareLDClient=()=>Js(this,null,function*(){var e;const{clientSideID:t,flags:n,options:r}=this.props;let o=yield this.props.ldClient;const i=this.getReactOptions();let s,a=this.state.unproxiedFlags;if(o)a=As(o,n);else{o=ks(t,null!=(e=Ns(this.props))?e:{anonymous:!0,kind:"user"},Ws(Ws({},Fs),r));try{yield o.waitForInitialization(this.props.timeout),a=As(o,n)}catch(e){s=e,null!=s&&s.name.toLowerCase().includes("timeout")&&(o.on("failed",this.onFailed),o.on("ready",()=>{this.onReady(o,i,n)}))}}this.setState(e=>Gs(Ws(Gs(Ws({},e),{unproxiedFlags:a}),Is(o,a,i,n)),{ldClient:o,error:s})),this.subscribeToChanges(o)});const{options:t}=e;if(this.state={flags:{},unproxiedFlags:{},flagKeyMap:{}},t){const{bootstrap:e}=t;if(e&&"localStorage"!==e){const{useCamelCaseFlagKeys:t}=this.getReactOptions();this.state={flags:t?js(e):e,unproxiedFlags:e,flagKeyMap:{}}}}}componentDidMount(){return Js(this,null,function*(){const{deferInitialization:e}=this.props;e&&!Ns(this.props)||(yield this.prepareLDClient())})}componentDidUpdate(e){return Js(this,null,function*(){const{deferInitialization:t}=this.props,n=!Ns(e)&&Ns(this.props);t&&n&&(yield this.prepareLDClient())})}render(){const{flags:e,flagKeyMap:t,ldClient:n,error:r}=this.state,{reactContext:o}=this.getReactOptions();return zr.createElement(o.Provider,{value:{flags:e,flagKeyMap:t,ldClient:n,error:r}},this.props.children)}},Qs=e=>{const{flags:t}=(0,zr.useContext)(null!=e?e:Ds.reactContext);return t},Xs=["top.GLOBALS","originalCreateNotification","canvas.contentDocument","MyApp_RemoveAllHighlights","http://tt.epicplay.com","Can't find variable: ZiteReader","jigsaw is not defined","ComboSearch is not defined","http://loading.retry.widdit.com/","atomicFindClose","fb_xd_fragment","bmi_SafeAddOnload","EBCallBackMessageReceived","conduitPage","Script error.","_avast_submit","change_ua","A network error occurred.","Non-Error promise rejection captured with value: Not implemented on this platform","TypeError: annulé","TypeError: cancelled","Error: Error response received for message <get-frame-manager-configuration>",/^Non-Error promise rejection captured with value: Object Not Found Matching Id:\d+, MethodName:(update|simulateEvent), ParamCount:\d+$/,"AbortError","The user aborted a request","signal is aborted without reason","Too many active WebGL contexts",/CONTEXT_LOST_WEBGL/i,/WebGL context (?:was )?lost/i,"ResizeObserver loop limit exceeded","ResizeObserver loop completed with undelivered notifications"],Zs=[/pagead\/js/i,/graph\.facebook\.com/i,/connect\.facebook\.net\/en_US\/all\.js/i,/eatdifferent\.com\.woopra-ns\.com/i,/static\.woopra\.com\/js\/woopra\.js/i,/extensions\//i,/^chrome:\/\//i,/127\.0\.0\.1:4001\/isrunning/i,/webappstoolbarba\.texthelp\.com\//i,/metrics\.itunes\.apple\.com\.edgesuite\.net\//i,/maps\.googleapis\.com\/maps\/api\/mapsjs\/gen_204\//i],ea=[/staging.locallogic.co/,/sdk.locallogic.co/],ta=[{vendor:"maplibre",pattern:/maplibre-vendor/},{vendor:"mapbox",pattern:/mapbox-vendor/},{vendor:"google-maps",pattern:/google-maps-vendor|maps\.(googleapis|gstatic)\.com/}],na=/Importing a module script failed|Unable to preload|Failed to fetch dynamically imported module|error loading dynamically imported module/i,ra=/\bLoad failed|NetworkError when attempting to fetch/i,oa=/bot|crawl|spider|slurp|mediapartners|headless|phantom|puppeteer|playwright|selenium|scrapy|curl|wget|python-requests|axios|facebookexternalhit|bingpreview|lighthouse|pingdom|gtmetrix|semrush|ahrefs|mj12|dotbot|petalbot|bytespider|dataprovider/i,ia=Object.freeze(new class{constructor(){!function(e){const t={...e};nn(t,"react"),jt("react",{version:zr.version}),Ir(t)}({dsn:"https://19707ff4ff7f420b9369a3e15041c787@o227377.ingest.sentry.io/6677584",tracesSampleRate:.01,replaysSessionSampleRate:.1,replaysOnErrorSampleRate:.5,environment:"production",enabled:!0,ignoreErrors:Xs,denyUrls:Zs,allowUrls:ea,release:"1.24.43",dist:"c46242a2479ca90810e8e2c74d4f3d4f1d90bb61",integrations:[Mr({failedRequestStatusCodes:[400,402,[405,599]],failedRequestTargets:[/\/\/(api|reports-api|providers-api)(-qa)?\.locallogic\.co/,/\/\/analytics\.locallogic\.co/]}),Nr(),En()],beforeSend(e){if((()=>{if("undefined"==typeof navigator)return!1;if(navigator.webdriver)return!0;const e=navigator.userAgent||"";return!e||oa.test(e)})())return null;if((e=>{const t=e.exception?.values;return!!t?.length&&t.some(e=>na.test(e?.value||"")||na.test(e?.type||""))})(e))return e.level="warning",e.fingerprint=["chunk-load-failure"],e;const t=(e=>{const t=e.exception?.values;if(!t?.length)return null;const n=t[t.length-1]?.stacktrace?.frames;if(!n?.length)return null;const r=n[n.length-1],o=r?.filename||r?.abs_path||"";return ta.find(({pattern:e})=>e.test(o))?.vendor??null})(e);return t&&(e.tags={...e.tags,source:"map-vendor",mapVendor:t}),(e=>{const t=e.exception?.values;return!!t?.length&&t.some(e=>ra.test(e?.value||"")||ra.test(e?.type||""))})(e)?(e.fingerprint=["resource-load-failed"],e.tags={...e.tags,source:e.tags?.source??"resource-load-failed"},e):e},sendDefaultPii:!0,normalizeDepth:5}),jt("LocalLogic",{referrer:document.referrer,sdks_app_version:"1.24.43",sdks_app_path:window?.location?.pathname?.substring((window?.location?.pathname?.lastIndexOf("/")??-1)+1)})}captureException(e){this.log(e.message,"error"),Dt(e)}addBreadCrumb(e,t,n,r="info"){sn({category:e,message:t,data:n,level:r})}setTags(e){!function(e){$e().setTags(e)}(e)}log(e,t="info"){console[t]("[Local Logic] "+e)}}),sa=e=>"string"==typeof e,aa=()=>{let e,t;const n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n},ca=e=>null==e?"":""+e,la=/###/g,ua=e=>e&&e.indexOf("###")>-1?e.replace(la,"."):e,da=e=>!e||sa(e),ha=(e,t,n)=>{const r=sa(t)?t.split("."):t;let o=0;for(;o<r.length-1;){if(da(e))return{};const t=ua(r[o]);!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++o}return da(e)?{}:{obj:e,k:ua(r[o])}},pa=(e,t,n)=>{const{obj:r,k:o}=ha(e,t,Object);if(void 0!==r||1===t.length)return void(r[o]=n);let i=t[t.length-1],s=t.slice(0,t.length-1),a=ha(e,s,Object);for(;void 0===a.obj&&s.length;)i=`${s[s.length-1]}.${i}`,s=s.slice(0,s.length-1),a=ha(e,s,Object),a&&a.obj&&void 0!==a.obj[`${a.k}.${i}`]&&(a.obj=void 0);a.obj[`${a.k}.${i}`]=n},fa=(e,t)=>{const{obj:n,k:r}=ha(e,t);if(n)return n[r]},ga=(e,t,n)=>{for(const r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?sa(e[r])||e[r]instanceof String||sa(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):ga(e[r],t[r],n):e[r]=t[r]);return e},ma=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),va={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"},ya=e=>sa(e)?e.replace(/[&<>"'\/]/g,e=>va[e]):e,ba=[" ",",","?","!",";"],wa=new class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const t=this.regExpMap.get(e);if(void 0!==t)return t;const n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}}(20),xa=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(!e)return;if(e[t])return e[t];const r=t.split(n);let o=e;for(let i=0;i<r.length;){if(!o||"object"!=typeof o)return;let e,t="";for(let s=i;s<r.length;++s)if(s!==i&&(t+=n),t+=r[s],e=o[t],void 0!==e){if(["string","number","boolean"].indexOf(typeof e)>-1&&s<r.length-1)continue;i+=s-i+1;break}o=e}return o},_a=e=>e&&e.replace("_","-"),Ea={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}},Sa=new class e{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.init(e,t)}init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||Ea,this.options=t,this.debug=t.debug}log(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}warn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}error(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}deprecate(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(e,t,n,r){return r&&!this.debug?null:(sa(e[0])&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}create(t){return new e(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return(t=t||this.options).prefix=t.prefix||this.prefix,new e(this.logger,t)}},ka=class{constructor(){this.observers={}}on(e,t){return e.split(" ").forEach(e=>{this.observers[e]||(this.observers[e]=new Map);const n=this.observers[e].get(t)||0;this.observers[e].set(t,n+1)}),this}off(e,t){this.observers[e]&&(t?this.observers[e].delete(t):delete this.observers[e])}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this.observers[e]&&Array.from(this.observers[e].entries()).forEach(e=>{let[t,r]=e;for(let o=0;o<r;o++)t(...n)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(t=>{let[r,o]=t;for(let i=0;i<o;i++)r.apply(r,[e,...n])})}},Oa=class extends ka{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const o=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,i=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure;let s;e.indexOf(".")>-1?s=e.split("."):(s=[e,t],n&&(Array.isArray(n)?s.push(...n):sa(n)&&o?s.push(...n.split(o)):s.push(n)));const a=fa(this.data,s);return!a&&!t&&!n&&e.indexOf(".")>-1&&(e=s[0],t=s[1],n=s.slice(2).join(".")),!a&&i&&sa(n)?xa(this.data&&this.data[e]&&this.data[e][t],n,o):a}addResource(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1};const i=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator;let s=[e,t];n&&(s=s.concat(i?n.split(i):n)),e.indexOf(".")>-1&&(s=e.split("."),r=t,t=s[1]),this.addNamespaces(t),pa(this.data,s,r),o.silent||this.emit("added",e,t,n,r)}addResources(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(const o in n)(sa(n[o])||Array.isArray(n[o]))&&this.addResource(e,t,o,n[o],{silent:!0});r.silent||this.emit("added",e,t,n)}addResourceBundle(e,t,n,r,o){let i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1,skipCopy:!1},s=[e,t];e.indexOf(".")>-1&&(s=e.split("."),r=n,n=t,t=s[1]),this.addNamespaces(t);let a=fa(this.data,s)||{};i.skipCopy||(n=JSON.parse(JSON.stringify(n))),r?ga(a,n,o):a={...a,...n},pa(this.data,s,a),i.silent||this.emit("added",e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return void 0!==this.getResource(e,t)}getResourceBundle(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?{...this.getResource(e,t)}:this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(e=>t[e]&&Object.keys(t[e]).length>0)}toJSON(){return this.data}},Ca={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,o){return e.forEach(e=>{this.processors[e]&&(t=this.processors[e].process(t,n,r,o))}),t}},Pa={},Ra=class e extends ka{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(),((e,t,n)=>{e.forEach(e=>{t[e]&&(n[e]=t[e])})})(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=Sa.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;const n=this.resolve(e,t);return n&&void 0!==n.res}extractFromKey(e,t){let n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");const r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator;let o=t.ns||this.options.defaultNS||[];const i=n&&e.indexOf(n)>-1,s=!(this.options.userDefinedKeySeparator||t.keySeparator||this.options.userDefinedNsSeparator||t.nsSeparator||((e,t,n)=>{t=t||"",n=n||"";const r=ba.filter(e=>t.indexOf(e)<0&&n.indexOf(e)<0);if(0===r.length)return!0;const o=wa.getRegExp(`(${r.map(e=>"?"===e?"\\?":e).join("|")})`);let i=!o.test(e);if(!i){const t=e.indexOf(n);t>0&&!o.test(e.substring(0,t))&&(i=!0)}return i})(e,n,r));if(i&&!s){const t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:sa(o)?[o]:o};const i=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(i[0])>-1)&&(o=i.shift()),e=i.join(r)}return{key:e,namespaces:sa(o)?[o]:o}}translate(t,n,r){if("object"!=typeof n&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof n&&(n={...n}),n||(n={}),null==t)return"";Array.isArray(t)||(t=[String(t)]);const o=void 0!==n.returnDetails?n.returnDetails:this.options.returnDetails,i=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,{key:s,namespaces:a}=this.extractFromKey(t[t.length-1],n),c=a[a.length-1],l=n.lng||this.language,u=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(l&&"cimode"===l.toLowerCase()){if(u){const e=n.nsSeparator||this.options.nsSeparator;return o?{res:`${c}${e}${s}`,usedKey:s,exactUsedKey:s,usedLng:l,usedNS:c,usedParams:this.getUsedParamsDetails(n)}:`${c}${e}${s}`}return o?{res:s,usedKey:s,exactUsedKey:s,usedLng:l,usedNS:c,usedParams:this.getUsedParamsDetails(n)}:s}const d=this.resolve(t,n);let h=d&&d.res;const p=d&&d.usedKey||s,f=d&&d.exactUsedKey||s,g=Object.prototype.toString.apply(h),m=void 0!==n.joinArrays?n.joinArrays:this.options.joinArrays,v=!this.i18nFormat||this.i18nFormat.handleAsObject,y=!sa(h)&&"boolean"!=typeof h&&"number"!=typeof h;if(!(v&&h&&y&&["[object Number]","[object Function]","[object RegExp]"].indexOf(g)<0)||sa(m)&&Array.isArray(h))if(v&&sa(m)&&Array.isArray(h))h=h.join(m),h&&(h=this.extendTranslation(h,t,n,r));else{let o=!1,a=!1;const u=void 0!==n.count&&!sa(n.count),p=e.hasDefaultValue(n),f=u?this.pluralResolver.getSuffix(l,n.count,n):"",g=n.ordinal&&u?this.pluralResolver.getSuffix(l,n.count,{ordinal:!1}):"",m=u&&!n.ordinal&&0===n.count&&this.pluralResolver.shouldUseIntlApi(),v=m&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${f}`]||n[`defaultValue${g}`]||n.defaultValue;!this.isValidLookup(h)&&p&&(o=!0,h=v),this.isValidLookup(h)||(a=!0,h=s);const y=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&a?void 0:h,b=p&&v!==h&&this.options.updateMissing;if(a||o||b){if(this.logger.log(b?"updateKey":"missingKey",l,c,s,b?v:h),i){const e=this.resolve(s,{...n,keySeparator:!1});e&&e.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let e=[];const t=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if("fallback"===this.options.saveMissingTo&&t&&t[0])for(let n=0;n<t.length;n++)e.push(t[n]);else"all"===this.options.saveMissingTo?e=this.languageUtils.toResolveHierarchy(n.lng||this.language):e.push(n.lng||this.language);const r=(e,t,r)=>{const o=p&&r!==h?r:y;this.options.missingKeyHandler?this.options.missingKeyHandler(e,c,t,o,b,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(e,c,t,o,b,n),this.emit("missingKey",e,c,t,h)};this.options.saveMissing&&(this.options.saveMissingPlurals&&u?e.forEach(e=>{const t=this.pluralResolver.getSuffixes(e,n);m&&n[`defaultValue${this.options.pluralSeparator}zero`]&&t.indexOf(`${this.options.pluralSeparator}zero`)<0&&t.push(`${this.options.pluralSeparator}zero`),t.forEach(t=>{r([e],s+t,n[`defaultValue${t}`]||v)})}):r(e,s,v))}h=this.extendTranslation(h,t,n,d,r),a&&h===s&&this.options.appendNamespaceToMissingKey&&(h=`${c}:${s}`),(a||o)&&this.options.parseMissingKeyHandler&&(h="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${c}:${s}`:s,o?h:void 0):this.options.parseMissingKeyHandler(h))}else{if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(p,h,{...n,ns:a}):`key '${s} (${this.language})' returned an object instead of string.`;return o?(d.res=e,d.usedParams=this.getUsedParamsDetails(n),d):e}if(i){const e=Array.isArray(h),t=e?[]:{},r=e?f:p;for(const o in h)if(Object.prototype.hasOwnProperty.call(h,o)){const e=`${r}${i}${o}`;t[o]=this.translate(e,{...n,joinArrays:!1,ns:a}),t[o]===e&&(t[o]=h[o])}h=t}}return o?(d.res=h,d.usedParams=this.getUsedParamsDetails(n),d):h}extendTranslation(e,t,n,r,o){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});const s=sa(e)&&(n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let a;if(s){const t=e.match(this.interpolator.nestingRegexp);a=t&&t.length}let c=n.replace&&!sa(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(c={...this.options.interpolation.defaultVariables,...c}),e=this.interpolator.interpolate(e,c,n.lng||this.language||r.usedLng,n),s){const t=e.match(this.interpolator.nestingRegexp);a<(t&&t.length)&&(n.nest=!1)}!n.lng&&"v1"!==this.options.compatibilityAPI&&r&&r.res&&(n.lng=this.language||r.usedLng),!1!==n.nest&&(e=this.interpolator.nest(e,function(){for(var e=arguments.length,r=new Array(e),s=0;s<e;s++)r[s]=arguments[s];return o&&o[0]===r[0]&&!n.context?(i.logger.warn(`It seems you are nesting recursively key: ${r[0]} in key: ${t[0]}`),null):i.translate(...r,t)},n)),n.interpolation&&this.interpolator.reset()}const s=n.postProcess||this.options.postProcess,a=sa(s)?[s]:s;return null!=e&&a&&a.length&&!1!==n.applyPostProcessor&&(e=Ca.handle(a,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),e}resolve(e){let t,n,r,o,i,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return sa(e)&&(e=[e]),e.forEach(e=>{if(this.isValidLookup(t))return;const a=this.extractFromKey(e,s),c=a.key;n=c;let l=a.namespaces;this.options.fallbackNS&&(l=l.concat(this.options.fallbackNS));const u=void 0!==s.count&&!sa(s.count),d=u&&!s.ordinal&&0===s.count&&this.pluralResolver.shouldUseIntlApi(),h=void 0!==s.context&&(sa(s.context)||"number"==typeof s.context)&&""!==s.context,p=s.lngs?s.lngs:this.languageUtils.toResolveHierarchy(s.lng||this.language,s.fallbackLng);l.forEach(e=>{this.isValidLookup(t)||(i=e,!Pa[`${p[0]}-${e}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(i)&&(Pa[`${p[0]}-${e}`]=!0,this.logger.warn(`key "${n}" for languages "${p.join(", ")}" won't get resolved as namespace "${i}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),p.forEach(n=>{if(this.isValidLookup(t))return;o=n;const i=[c];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(i,c,n,e,s);else{let e;u&&(e=this.pluralResolver.getSuffix(n,s.count,s));const t=`${this.options.pluralSeparator}zero`,r=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(u&&(i.push(c+e),s.ordinal&&0===e.indexOf(r)&&i.push(c+e.replace(r,this.options.pluralSeparator)),d&&i.push(c+t)),h){const n=`${c}${this.options.contextSeparator}${s.context}`;i.push(n),u&&(i.push(n+e),s.ordinal&&0===e.indexOf(r)&&i.push(n+e.replace(r,this.options.pluralSeparator)),d&&i.push(n+t))}}let a;for(;a=i.pop();)this.isValidLookup(t)||(r=a,t=this.getResource(n,e,a,s))}))})}),{res:t,usedKey:n,exactUsedKey:r,usedLng:o,usedNS:i}}isValidLookup(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}getResource(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}getUsedParamsDetails(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],n=e.replace&&!sa(e.replace);let r=n?e.replace:e;if(n&&void 0!==e.count&&(r.count=e.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!n){r={...r};for(const e of t)delete r[e]}return r}static hasDefaultValue(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&"defaultValue"===t.substring(0,12)&&void 0!==e[t])return!0;return!1}},La=e=>e.charAt(0).toUpperCase()+e.slice(1),Ta=class{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Sa.create("languageUtils")}getScriptPartFromCode(e){if(!(e=_a(e))||e.indexOf("-")<0)return null;const t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}getLanguagePartFromCode(e){if(!(e=_a(e))||e.indexOf("-")<0)return e;const t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(sa(e)&&e.indexOf("-")>-1){if("undefined"!=typeof Intl&&void 0!==Intl.getCanonicalLocales)try{let t=Intl.getCanonicalLocales(e)[0];if(t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t)return t}catch(cv){}const t=["hans","hant","latn","cyrl","cans","mong","arab"];let n=e.split("-");return this.options.lowerCaseLng?n=n.map(e=>e.toLowerCase()):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=La(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=La(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=La(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach(e=>{if(t)return;const n=this.formatLanguageCode(e);this.options.supportedLngs&&!this.isSupportedCode(n)||(t=n)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;const n=this.getLanguagePartFromCode(e);if(this.isSupportedCode(n))return t=n;t=this.options.supportedLngs.find(e=>e===n?e:e.indexOf("-")<0&&n.indexOf("-")<0?void 0:e.indexOf("-")>0&&n.indexOf("-")<0&&e.substring(0,e.indexOf("-"))===n||0===e.indexOf(n)&&n.length>1?e:void 0)}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}getFallbackCodes(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),sa(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}toResolveHierarchy(e,t){const n=this.getFallbackCodes(t||this.options.fallbackLng||[],e),r=[],o=e=>{e&&(this.isSupportedCode(e)?r.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return sa(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?("languageOnly"!==this.options.load&&o(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&o(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&o(this.getLanguagePartFromCode(e))):sa(e)&&o(this.formatLanguageCode(e)),n.forEach(e=>{r.indexOf(e)<0&&o(this.formatLanguageCode(e))}),r}},Da=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],Na={1:e=>Number(e>1),2:e=>Number(1!=e),3:e=>0,4:e=>Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2),5:e=>Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5),6:e=>Number(1==e?0:e>=2&&e<=4?1:2),7:e=>Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2),8:e=>Number(1==e?0:2==e?1:8!=e&&11!=e?2:3),9:e=>Number(e>=2),10:e=>Number(1==e?0:2==e?1:e<7?2:e<11?3:4),11:e=>Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3),12:e=>Number(e%10!=1||e%100==11),13:e=>Number(0!==e),14:e=>Number(1==e?0:2==e?1:3==e?2:3),15:e=>Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2),16:e=>Number(e%10==1&&e%100!=11?0:0!==e?1:2),17:e=>Number(1==e||e%10==1&&e%100!=11?0:1),18:e=>Number(0==e?0:1==e?1:2),19:e=>Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3),20:e=>Number(1==e?0:0==e||e%100>0&&e%100<20?1:2),21:e=>Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0),22:e=>Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)},ja=["v1","v2","v3"],Aa=["v4"],Ia={zero:0,one:1,two:2,few:3,many:4,other:5},Ma=class{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.languageUtils=e,this.options=t,this.logger=Sa.create("pluralResolver"),this.options.compatibilityJSON&&!Aa.includes(this.options.compatibilityJSON)||"undefined"!=typeof Intl&&Intl.PluralRules||(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=(()=>{const e={};return Da.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:Na[t.fc]}})}),e})(),this.pluralRulesCache={}}addRule(e,t){this.rules[e]=t}clearCache(){this.pluralRulesCache={}}getRule(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi()){const r=_a("dev"===e?"en":e),o=t.ordinal?"ordinal":"cardinal",i=JSON.stringify({cleanedCode:r,type:o});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];let s;try{s=new Intl.PluralRules(r,{type:o})}catch(n){if(!e.match(/-|_/))return;const r=this.languageUtils.getLanguagePartFromCode(e);s=this.getRule(r,t)}return this.pluralRulesCache[i]=s,s}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}needsPlural(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=this.getRule(e,t);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}getPluralFormsOfKey(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,n).map(e=>`${t}${e}`)}getSuffixes(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=this.getRule(e,t);return n?this.shouldUseIntlApi()?n.resolvedOptions().pluralCategories.sort((e,t)=>Ia[e]-Ia[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${e}`):n.numbers.map(n=>this.getSuffix(e,n,t)):[]}getSuffix(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=this.getRule(e,n);return r?this.shouldUseIntlApi()?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${r.select(t)}`:this.getSuffixRetroCompatible(r,t):(this.logger.warn(`no plural rule found for: ${e}`),"")}getSuffixRetroCompatible(e,t){const n=e.noAbs?e.plurals(t):e.plurals(Math.abs(t));let r=e.numbers[n];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===r?r="plural":1===r&&(r=""));const o=()=>this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString();return"v1"===this.options.compatibilityJSON?1===r?"":"number"==typeof r?`_plural_${r.toString()}`:o():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?o():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}shouldUseIntlApi(){return!ja.includes(this.options.compatibilityJSON)}},$a=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".",o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],i=((e,t,n)=>{const r=fa(e,n);return void 0!==r?r:fa(t,n)})(e,t,n);return!i&&o&&sa(n)&&(i=xa(e,n,r),void 0===i&&(i=xa(t,n,r))),i},Fa=e=>e.replace(/\$/g,"$$$$"),Ha=class{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=Sa.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||(e=>e),this.init(e)}init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});const{escape:t,escapeValue:n,useRawValueToEscape:r,prefix:o,prefixEscaped:i,suffix:s,suffixEscaped:a,formatSeparator:c,unescapeSuffix:l,unescapePrefix:u,nestingPrefix:d,nestingPrefixEscaped:h,nestingSuffix:p,nestingSuffixEscaped:f,nestingOptionsSeparator:g,maxReplaces:m,alwaysFormat:v}=e.interpolation;this.escape=void 0!==t?t:ya,this.escapeValue=void 0===n||n,this.useRawValueToEscape=void 0!==r&&r,this.prefix=o?ma(o):i||"{{",this.suffix=s?ma(s):a||"}}",this.formatSeparator=c||",",this.unescapePrefix=l?"":u||"-",this.unescapeSuffix=this.unescapePrefix?"":l||"",this.nestingPrefix=d?ma(d):h||ma("$t("),this.nestingSuffix=p?ma(p):f||ma(")"),this.nestingOptionsSeparator=g||",",this.maxReplaces=m||1e3,this.alwaysFormat=void 0!==v&&v,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(e,t)=>e&&e.source===t?(e.lastIndex=0,e):new RegExp(t,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(e,t,n,r){let o,i,s;const a=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=e=>{if(e.indexOf(this.formatSeparator)<0){const o=$a(t,a,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(o,void 0,n,{...r,...t,interpolationkey:e}):o}const o=e.split(this.formatSeparator),i=o.shift().trim(),s=o.join(this.formatSeparator).trim();return this.format($a(t,a,i,this.options.keySeparator,this.options.ignoreJSONStructure),s,n,{...r,...t,interpolationkey:i})};this.resetRegExp();const l=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,u=r&&r.interpolation&&void 0!==r.interpolation.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>Fa(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?Fa(this.escape(e)):Fa(e)}].forEach(t=>{for(s=0;o=t.regex.exec(e);){const n=o[1].trim();if(i=c(n),void 0===i)if("function"==typeof l){const t=l(e,o,r);i=sa(t)?t:""}else if(r&&Object.prototype.hasOwnProperty.call(r,n))i="";else{if(u){i=o[0];continue}this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`),i=""}else sa(i)||this.useRawValueToEscape||(i=ca(i));const a=t.safeValue(i);if(e=e.replace(o[0],a),u?(t.regex.lastIndex+=i.length,t.regex.lastIndex-=o[0].length):t.regex.lastIndex=0,s++,s>=this.maxReplaces)break}}),e}nest(e,t){let n,r,o,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const s=(e,t)=>{const n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;const r=e.split(new RegExp(`${n}[ ]*{`));let i=`{${r[1]}`;e=r[0],i=this.interpolate(i,o);const s=i.match(/'/g),a=i.match(/"/g);(s&&s.length%2==0&&!a||a.length%2!=0)&&(i=i.replace(/'/g,'"'));try{o=JSON.parse(i),t&&(o={...t,...o})}catch(cv){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,cv),`${e}${n}${i}`}return o.defaultValue&&o.defaultValue.indexOf(this.prefix)>-1&&delete o.defaultValue,e};for(;n=this.nestingRegexp.exec(e);){let a=[];o={...i},o=o.replace&&!sa(o.replace)?o.replace:o,o.applyPostProcessor=!1,delete o.defaultValue;let c=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){const e=n[1].split(this.formatSeparator).map(e=>e.trim());n[1]=e.shift(),a=e,c=!0}if(r=t(s.call(this,n[1].trim(),o),o),r&&n[0]===e&&!sa(r))return r;sa(r)||(r=ca(r)),r||(this.logger.warn(`missed to resolve ${n[1]} for nesting ${e}`),r=""),c&&(r=a.reduce((e,t)=>this.format(e,t,i.lng,{...i,interpolationkey:n[1].trim()}),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}},Ua=e=>{const t={};return(n,r,o)=>{let i=o;o&&o.interpolationkey&&o.formatParams&&o.formatParams[o.interpolationkey]&&o[o.interpolationkey]&&(i={...i,[o.interpolationkey]:void 0});const s=r+JSON.stringify(i);let a=t[s];return a||(a=e(_a(r),o),t[s]=a),a(n)}},qa=class{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=Sa.create("formatter"),this.options=e,this.formats={number:Ua((e,t)=>{const n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)}),currency:Ua((e,t)=>{const n=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>n.format(e)}),datetime:Ua((e,t)=>{const n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)}),relativetime:Ua((e,t)=>{const n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||"day")}),list:Ua((e,t)=>{const n=new Intl.ListFormat(e,{...t});return e=>n.format(e)})},this.init(e)}init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};this.formatSeparator=t.interpolation.formatSeparator||","}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=Ua(t)}format(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const o=t.split(this.formatSeparator);if(o.length>1&&o[0].indexOf("(")>1&&o[0].indexOf(")")<0&&o.find(e=>e.indexOf(")")>-1)){const e=o.findIndex(e=>e.indexOf(")")>-1);o[0]=[o[0],...o.splice(1,e)].join(this.formatSeparator)}return o.reduce((e,t)=>{const{formatName:o,formatOptions:i}=(e=>{let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const o=r[1].substring(0,r[1].length-1);"currency"===t&&o.indexOf(":")<0?n.currency||(n.currency=o.trim()):"relativetime"===t&&o.indexOf(":")<0?n.range||(n.range=o.trim()):o.split(";").forEach(e=>{if(e){const[t,...r]=e.split(":"),o=r.join(":").trim().replace(/^'+|'+$/g,""),i=t.trim();n[i]||(n[i]=o),"false"===o&&(n[i]=!1),"true"===o&&(n[i]=!0),isNaN(o)||(n[i]=parseInt(o,10))}})}return{formatName:t,formatOptions:n}})(t);if(this.formats[o]){let t=e;try{const s=r&&r.formatParams&&r.formatParams[r.interpolationkey]||{},a=s.locale||s.lng||r.locale||r.lng||n;t=this.formats[o](e,a,{...i,...r,...s})}catch(s){this.logger.warn(s)}return t}return this.logger.warn(`there was no format function for ${o}`),e},e)}},Ba=class extends ka{constructor(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=Sa.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(n,r.backend,r)}queueLoad(e,t,n,r){const o={},i={},s={},a={};return e.forEach(e=>{let r=!0;t.forEach(t=>{const s=`${e}|${t}`;!n.reload&&this.store.hasResourceBundle(e,t)?this.state[s]=2:this.state[s]<0||(1===this.state[s]?void 0===i[s]&&(i[s]=!0):(this.state[s]=1,r=!1,void 0===i[s]&&(i[s]=!0),void 0===o[s]&&(o[s]=!0),void 0===a[t]&&(a[t]=!0)))}),r||(s[e]=!0)}),(Object.keys(o).length||Object.keys(i).length)&&this.queue.push({pending:i,pendingCount:Object.keys(i).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(o),pending:Object.keys(i),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(a)}}loaded(e,t,n){const r=e.split("|"),o=r[0],i=r[1];t&&this.emit("failedLoading",o,i,t),!t&&n&&this.store.addResourceBundle(o,i,n,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&n&&(this.state[e]=0);const s={};this.queue.forEach(n=>{((e,t,n)=>{const{obj:r,k:o}=ha(e,t,Object);r[o]=r[o]||[],r[o].push(n)})(n.loaded,[o],i),((e,t)=>{void 0!==e.pending[t]&&(delete e.pending[t],e.pendingCount--)})(n,e),t&&n.errors.push(t),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach(e=>{s[e]||(s[e]={});const t=n.loaded[e];t.length&&t.forEach(t=>{void 0===s[e][t]&&(s[e][t]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit("loaded",s),this.queue=this.queue.filter(e=>!e.done)}read(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,i=arguments.length>5?arguments[5]:void 0;if(!e.length)return i(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:e,ns:t,fcName:n,tried:r,wait:o,callback:i});this.readingCalls++;const s=(s,a)=>{if(this.readingCalls--,this.waitingReads.length>0){const e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}s&&a&&r<this.maxRetries?setTimeout(()=>{this.read.call(this,e,t,n,r+1,2*o,i)},o):i(s,a)},a=this.backend[n].bind(this.backend);if(2!==a.length)return a(e,t,s);try{const n=a(e,t);n&&"function"==typeof n.then?n.then(e=>s(null,e)).catch(s):s(null,n)}catch(c){s(c)}}prepareLoading(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();sa(e)&&(e=this.languageUtils.toResolveHierarchy(e)),sa(t)&&(t=[t]);const o=this.queueLoad(e,t,n,r);if(!o.toLoad.length)return o.pending.length||r(),null;o.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const n=e.split("|"),r=n[0],o=n[1];this.read(r,o,"read",void 0,void 0,(n,i)=>{n&&this.logger.warn(`${t}loading namespace ${o} for language ${r} failed`,n),!n&&i&&this.logger.log(`${t}loaded namespace ${o} for language ${r}`,i),this.loaded(e,n,i)})}saveMissing(e,t,n,r,o){let i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t))this.logger.warn(`did not save key "${n}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");else if(null!=n&&""!==n){if(this.backend&&this.backend.create){const c={...i,isUpdate:o},l=this.backend.create.bind(this.backend);if(l.length<6)try{let o;o=5===l.length?l(e,t,n,r,c):l(e,t,n,r),o&&"function"==typeof o.then?o.then(e=>s(null,e)).catch(s):s(null,o)}catch(a){s(a)}else l(e,t,n,r,s,c)}e&&e[0]&&this.store.addResource(e[0],t,n,r)}}},za=()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if("object"==typeof e[1]&&(t=e[1]),sa(e[1])&&(t.defaultValue=e[1]),sa(e[2])&&(t.tDescription=e[2]),"object"==typeof e[2]||"object"==typeof e[3]){const n=e[3]||e[2];Object.keys(n).forEach(e=>{t[e]=n[e]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),Va=e=>(sa(e.ns)&&(e.ns=[e.ns]),sa(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),sa(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),Ka=()=>{},Wa=class e extends ka{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;var n;if(super(),this.options=Va(e),this.services={},this.logger=Sa,this.modules={external:[]},n=this,Object.getOwnPropertyNames(Object.getPrototypeOf(n)).forEach(e=>{"function"==typeof n[e]&&(n[e]=n[e].bind(n))}),t&&!this.isInitialized&&!e.isClone){if(!this.options.initImmediate)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(){var e=this;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,"function"==typeof t&&(n=t,t={}),!t.defaultNS&&!1!==t.defaultNS&&t.ns&&(sa(t.ns)?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const r=za();this.options={...r,...this.options,...Va(t)},"v1"!==this.options.compatibilityAPI&&(this.options.interpolation={...r.interpolation,...this.options.interpolation}),void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator);const o=e=>e?"function"==typeof e?new e:e:null;if(!this.options.isClone){let t;this.modules.logger?Sa.init(o(this.modules.logger),this.options):Sa.init(null,this.options),this.modules.formatter?t=this.modules.formatter:"undefined"!=typeof Intl&&(t=qa);const n=new Ta(this.options);this.store=new Oa(this.options.resources,this.options);const i=this.services;i.logger=Sa,i.resourceStore=this.store,i.languageUtils=n,i.pluralResolver=new Ma(n,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),!t||this.options.interpolation.format&&this.options.interpolation.format!==r.interpolation.format||(i.formatter=o(t),i.formatter.init(i,this.options),this.options.interpolation.format=i.formatter.format.bind(i.formatter)),i.interpolator=new Ha(this.options),i.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},i.backendConnector=new Ba(o(this.modules.backend),i.resourceStore,i,this.options),i.backendConnector.on("*",function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit(t,...r)}),this.modules.languageDetector&&(i.languageDetector=o(this.modules.languageDetector),i.languageDetector.init&&i.languageDetector.init(i,this.options.detection,this.options)),this.modules.i18nFormat&&(i.i18nFormat=o(this.modules.i18nFormat),i.i18nFormat.init&&i.i18nFormat.init(this)),this.translator=new Ra(this.services,this.options),this.translator.on("*",function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit(t,...r)}),this.modules.external.forEach(e=>{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,n||(n=Ka),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&"dev"!==e[0]&&(this.options.lng=e[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(t=>{this[t]=function(){return e.store[t](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(t=>{this[t]=function(){return e.store[t](...arguments),e}});const i=aa(),s=()=>{const e=(e,t)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),i.resolve(t),n(e,t)};if(this.languages&&"v1"!==this.options.compatibilityAPI&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initImmediate?s():setTimeout(s,0),i}loadResources(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ka;const n=sa(e)?e:this.language;if("function"==typeof e&&(t=e),!this.options.resources||this.options.partialBundledLanguages){if(n&&"cimode"===n.toLowerCase()&&(!this.options.preload||0===this.options.preload.length))return t();const e=[],r=t=>{t&&"cimode"!==t&&this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{"cimode"!==t&&e.indexOf(t)<0&&e.push(t)})};n?r(n):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e=>r(e)),this.options.preload&&this.options.preload.forEach(e=>r(e)),this.services.backendConnector.load(e,this.options.ns,e=>{e||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),t(e)})}else t(null)}reloadResources(e,t,n){const r=aa();return"function"==typeof e&&(n=e,e=void 0),"function"==typeof t&&(n=t,t=void 0),e||(e=this.languages),t||(t=this.options.ns),n||(n=Ka),this.services.backendConnector.reload(e,t,e=>{r.resolve(),n(e)}),r}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&Ca.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}setResolvedLanguage(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1))for(let t=0;t<this.languages.length;t++){const e=this.languages[t];if(!(["cimode","dev"].indexOf(e)>-1)&&this.store.hasLanguageSomeTranslations(e)){this.resolvedLanguage=e;break}}}changeLanguage(e,t){var n=this;this.isLanguageChangingTo=e;const r=aa();this.emit("languageChanging",e);const o=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},i=(e,i)=>{i?(o(i),this.translator.changeLanguage(i),this.isLanguageChangingTo=void 0,this.emit("languageChanged",i),this.logger.log("languageChanged",i)):this.isLanguageChangingTo=void 0,r.resolve(function(){return n.t(...arguments)}),t&&t(e,function(){return n.t(...arguments)})},s=t=>{e||t||!this.services.languageDetector||(t=[]);const n=sa(t)?t:this.services.languageUtils.getBestMatchFromCodes(t);n&&(this.language||o(n),this.translator.language||this.translator.changeLanguage(n),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(n)),this.loadResources(n,e=>{i(e,n)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(s):this.services.languageDetector.detect(s):s(e):s(this.services.languageDetector.detect()),r}getFixedT(e,t,n){var r=this;const o=function(e,t){let i;if("object"!=typeof t){for(var s=arguments.length,a=new Array(s>2?s-2:0),c=2;c<s;c++)a[c-2]=arguments[c];i=r.options.overloadTranslationOptionHandler([e,t].concat(a))}else i={...t};i.lng=i.lng||o.lng,i.lngs=i.lngs||o.lngs,i.ns=i.ns||o.ns,""!==i.keyPrefix&&(i.keyPrefix=i.keyPrefix||n||o.keyPrefix);const l=r.options.keySeparator||".";let u;return u=i.keyPrefix&&Array.isArray(e)?e.map(e=>`${i.keyPrefix}${l}${e}`):i.keyPrefix?`${i.keyPrefix}${l}${e}`:e,r.t(u,i)};return sa(e)?o.lng=e:o.lngs=e,o.ns=t,o.keyPrefix=n,o}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const n=t.lng||this.resolvedLanguage||this.languages[0],r=!!this.options&&this.options.fallbackLng,o=this.languages[this.languages.length-1];if("cimode"===n.toLowerCase())return!0;const i=(e,t)=>{const n=this.services.backendConnector.state[`${e}|${t}`];return-1===n||0===n||2===n};if(t.precheck){const e=t.precheck(this,i);if(void 0!==e)return e}return!!this.hasResourceBundle(n,e)||(!(this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages))||!(!i(n,e)||r&&!i(o,e)))}loadNamespaces(e,t){const n=aa();return this.options.ns?(sa(e)&&(e=[e]),e.forEach(e=>{this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){const n=aa();sa(e)&&(e=[e]);const r=this.options.preload||[],o=e.filter(e=>r.indexOf(e)<0&&this.services.languageUtils.isSupportedCode(e));return o.length?(this.options.preload=r.concat(o),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!e)return"rtl";const t=this.services&&this.services.languageUtils||new Ta(za());return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(t.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){return new e(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1?arguments[1]:void 0)}cloneInstance(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ka;const r=t.forkResourceStore;r&&delete t.forkResourceStore;const o={...this.options,...t,isClone:!0},i=new e(o);return void 0===t.debug&&void 0===t.prefix||(i.logger=i.logger.clone(t)),["store","services","language"].forEach(e=>{i[e]=this[e]}),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},r&&(i.store=new Oa(this.store.data,o),i.services.resourceStore=i.store),i.translator=new Ra(i.services,o),i.translator.on("*",function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];i.emit(e,...n)}),i.init(o,n),i.translator.options=o,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}},Ga=Wa.createInstance();Ga.createInstance=Wa.createInstance;Ga.createInstance,Ga.dir,Ga.init,Ga.loadResources,Ga.reloadResources,Ga.use,Ga.changeLanguage,Ga.getFixedT,Ga.t,Ga.exists,Ga.setDefaultNamespace,Ga.hasLoadedNamespace,Ga.loadNamespaces,Ga.loadLanguages;var Ja,Ya=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,Qa={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},Xa=e=>Qa[e],Za={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace(Ya,Xa)},ec=()=>Za,tc=()=>Ja,nc={type:"3rdParty",init(e){((e={})=>{Za={...Za,...e}})(e.options.react),(e=>{Ja=e})(e)}};Ga.isInitialized||Ga.use(nc).init({debug:!1,fallbackLng:"en",returnEmptyString:!1,supportedLngs:["en","fr"],resources:{en:{common:{attribution:"Powered by",time:{minute_one:"Minute",minute_other:"Minutes",hour_one:"Hour",hour_other:"Hours"},distance:{meter:"m",kilometer:"km",yard:"yd",mile:"mi"},language:{english:"English",french:"French",spanish:"Spanish"},map:{marker:{schoolAttributes:{levels:"Level",grades:"Grades",languages:"Languages",types:"Type",board:"Board",programs:"Programs",categories:"Categories",rating:"School rating"},schoolCta:"Link to school",district:"District",categories:{advancedPlacement:"advanced placement",charter:"charter",magnet:"magnet"}},cluster:{poiCount_one:"{{count}} Location",poiCount_other:"{{count}} Locations"}},scores:{cafes:{title:"Cafes",description:"A measure of the quantity of nearby coffee shops."},car_friendly:{title:"Car friendly",description:"Represents how well traffic flows, and how easy it is to park."},cycling_friendly:{title:"Cycling friendly",description:"Represents how suitable the area is for bicycle commuting or recreational cycling, considering nearby bike paths and lanes, the percentage of cycling commuters, the flatness of the terrain, and the presence of bike-sharing systems."},daycares:{title:"Daycares",description:"Represents the distance to the nearest daycare."},greenery:{title:"Greenery",description:"Quantity of nearby green spaces and tree canopy coverage."},groceries:{title:"Groceries",description:"A measure of the quantity of nearby grocery stores."},high_schools:{title:"High schools",description:"Represents the distance to nearest high school."},historic:{title:"Historic",description:"A measure of the quantity and size of heritage buildings, and the average building age in the area."},nightlife:{title:"Nightlife",description:"Represents the quantity of bars nearby."},parks:{title:"Parks",description:"A measure of the quantity and size of nearby parks."},pedestrian_friendly:{title:"Pedestrian friendly",description:"A measure of how many basic services can be reached on foot and how pleasant it is to walk to them."},primary_schools:{title:"Primary schools",description:"A measure of the distance to the nearest elementary school."},quiet:{title:"Quiet",description:"A measure of the average levels of noise nearby."},restaurants:{title:"Restaurants",description:"Represents the quantity of restaurants nearby."},shopping:{title:"Shopping",description:"A measure of the quantity of fashion and department stores nearby."},transit_friendly:{title:"Transit friendly",description:"A measure of the frequency and level of public transit service."},vibrant:{title:"Vibrancy",description:"Represents the level of street activity nearby."},wellness:{title:"Wellness",description:"Represents how conducive a location is to individuals' well-being."}},pois:{airports:"Airports",alcohol:"Alcohol",art_culture_science:"Art, culture, science",banks:"Banks",bus_stops:"Bus",cafes:"Coffee shops",car_fueling_stations:"Gas stations",casino:"Casino",clothing:"Clothing",common_needs:"Common needs",conference_centers:"Conference centers",convenience_stores:"Convenience stores",daycares:"Daycares",department_stores:"Department stores",entertainment:"Entertainment",fitness:"Fitness",groceries:"Groceries",groceries_specialized:"Specialty",health_care:"Health care",home_improvement:"Home improvement",hospitals:"Hospitals",libraries:"Libraries",nightlife:"Nightlife",non_food_shops:"Shopping",parks:"Parks",personal_care:"Personal care",pet_care:"Pet care",pharmacies:"Pharmacies",rapid_transit_stations:"Rapid transit",restaurants:"Restaurants",retail:"Retail",shops_and_services:"Shops and services",sport_facilities:"Sport facilities",train_stations:"Train",high_schools:"High schools",primary_schools:"Primary schools",healthy_restaurants:"Healthy restaurants",shopping:"Shopping"},valueDrivers:{bus_service_access:"Bus services",shops_and_services_access:"Shops and Services",coffee_shop_access:"Coffee shops",clothing_and_accessory_store_access:"Clothing stores",common_needs_access:"Common necessities",department_store_access:"Department stores",entertainment_venue_access:"Entertainment venues",fitness_establishment_access:"Fitness",nightlife_access:"Nightlife",pedestrian_oriented_street_access:"Walkable streets",rapid_transit_service_access:"Rapid transit service",restaurant_access:"Restaurants",specialty_grocery_store_access:"Specialty groceries",sports_facility_access:"Sport facilities",train_service_access:"Train stations",nearest_highway_proximity:"Highway access",nearest_pharmacy_proximity:"Nearby pharmacies",nearest_bicycle_share_station_proximity:"Nearby bikeshare stations",bicycle_path_access:"Bike path access",bicycle_share_station_access:"Bike share",nearest_park_area:"Nearby large park",bicycle_infrastructure_quality:"Bike infrastructure",high_schools:"High schools",primary_schools:"Elementary schools",quiet:"Quiet",daycares:"Daycares",parks:"Parks"}},leadCapture:{header:{title:"Explore {{neighborhood}}",description:"Learn about schools, prices, community vibe, and more before you decide to move.",titleNoNeighborhood:"the neighborhood"},cards:{neighborhoodIntel:{title:"Lifestyle Report",description:""},neighborhoodContext:{title:"Neighborhood Context",description:"Discover what day to day life looks like in the area."},locationInsights:{title:"Location Insights",description:"See how local amenities and features compare to the city average."},climateRisk:{title:"Climate Risk",description:"Understand how climate risks may affect lifestyle and long-term value."},communityPortrait:{title:"Community Portrait",description:"Explore demographics, housing types, and overall community vibe."},localMarketOverview:{title:"Local Market Overview",description:""},marketTrendsReport:{title:"Market Report",description:""},neighborhoodMarketTrends:{title:"Neighborhood Market Trends",description:""},dailyUpdates:{title:"Daily Updates",description:""},fiveYearHistoricalView:{title:"5-Year Historical View",description:""},easyToReadFormat:{title:"Easy-to-Read Format",description:""},actionableInsights:{title:"Actionable Insights",description:""}},downloadCard:{title:"Get your neighborhood report",description:"Uncover instant insights on local lifestyle, demographics, and market trends.",cta:"Get your report",ctaCAN:"Get your lifestyle report",select:{default:"Select report type",niReport:"Lifestyle Report",marketReport:"Market Report",both:"Both Reports"}},contactInfo:{back:"Back",title:"Almost there!",description:"Enter your details to get instant access to your neighborhood report. It’s fast, free, and full of insights.",submit:"Submit",confirmationMessage:"All set! We’ve sent your report to {{email}}",instructions:"Please check your inbox. If you don’t see it within a few minutes, check your spam or junk folder.",resendInstructions:"Still can’t find it? <resendReport>Click here to resend.</resendReport>",consentTexts:{topText:"I agree that Local Logic may share my contact information with real estate professionals so they can contact me regarding my home search.",bottomText:"This consent is required to use this tool. See our <LinkToPrivacyPolicy>Privacy Policy</LinkToPrivacyPolicy>.",CANTopText:"I agree that Local Logic may share my contact information with the operator of this website so they can contact me regarding my home search.",CANBottomText:"This consent is required to use this tool. You can withdraw your consent at any time. See our <LinkToPrivacyPolicy>Privacy Policy</LinkToPrivacyPolicy>."}},initialValues:{firstName:"First Name *",lastName:"Last Name *",email:"Email Address *",phone:"Phone Number"},errors:{firstName:"First Name is required",lastName:"Last Name is required",email:"Email Address is required",notValidEmail:"Email Address is not valid",privacyCheckbox:"You must agree to the privacy policy",phone:"Phone is not a valid number"},toastAlerts:{error:{title:"Something went wrong",description:"We couldn’t complete your request. Please try again in a moment. If the issue continues, ",action:"contact support."}}},localContent:{sidebar:{header:{title:"Categories",backAction:"Back to menu",toggle:{ariaLabel:"Toggle sidebar",ariaLabel_open:"Open sidebar",ariaLabel_close:"Close sidebar"}}},categoriesToggle:{toggleLabel:"Categories",backAction:"Back"},categories:{transport:"Transport",amenities:"Amenities",character:"Character",nature:"Nature",education:"Education",health:"Health"},scoreComparison:{text:"Comparable to the {{name}} average of {{value}}",text_higher:"Higher than the {{name}} average of {{value}}",text_lower:"Lower than the {{name}} average of {{value}}"},poiSearchRadius:"Showing POIs in a {{radius}} {{unit}} radius",commute:{placeholder:"Search map...",cta:"Calculate commute",cta_long:"Calculate commute",cta_short:"Calculate",viewRoute:"View route",travelTypes:{walking:"Walking",driving:"Driving",cycling:"Cycling"},results:{noRoute:"No route available.",trySuggestion:"Try another query.",fastestRoute:"Fastest route"}}},localDemographics:{title:"Local Demographics",note:"Displaying demographics statistics for area {{value}} {{unit}} around selected location.",noData:"No demographic information is available for this specific location.",data:{income:{title:"Income",graphs:{averageIncome:{title:"Average Income",title_USA:"Income",types:{avgHouseholdIncome:"Family",avgHouseholdIncome_USA:"Household (median)",avgIndividualIncome:"Individual",avgIndividualIncome_USA:"Individual (per capita)"}},employment:{title:"Employment"},incomeBrackets:{title:"Income Brackets"}}},population:{title:"Population",graphs:{totalPopulation:{title:"Total Population"},populationByAgeGroup:{title:"Population By Age Group"}}},housing:{title:"Housing",graphs:{homeOwnershipType:{title:"Owners vs Renters"},typeOfHousing:{title:"Type of Housing"}}},household:{title:"Household",graphs:{householdComposition:{title:"Household Composition"}}},education:{title:"Education",graphs:{educationLevel:{title:"Highest Level Of Education Achieved"}}},commute:{title:"Commute",graphs:{commuteMode:{title:"Commute Mode"}}},languages:{title:"Languages",graphs:{spokenLanguages:{title:"Spoken Official Languages"},motherTongue:{title:"Mother Tongue"}}}}},neighborhoodCharacteristics:{title:"Characteristics",noData:"No information is available for this neighborhood yet. Stay tuned for updates as new neighborhoods are added.",sections:{transport:{title:"Transportation"},services:{title:"Services"},character:{title:"Character"}}},neighborhoodDemographics:{title:"Demographics",note:"Displaying demographics statistics for the current location.",noData:"No demographic information is available for this specific location.",data:{income:{title:"Income",graphs:{averageIncome:{title:"Average Income",types:{avg_household_income:"Family",avg_individual_income:"Individual"}},employment:{title:"Employment"},incomeBrackets:{title:"Income Brackets"}}},population:{title:"Population",graphs:{totalPopulation:{title:"Total Population"},populationByAgeGroup:{title:"Population By Age Group"}}},housing:{title:"Housing",graphs:{homeOwnershipType:{title:"Owners vs Renters"},typeOfHousing:{title:"Type of Housing"}}},household:{title:"Household",graphs:{householdComposition:{title:"Household Composition"}}},education:{title:"Education",graphs:{educationLevel:{title:"Highest Level Of Education Achieved"}}},commute:{title:"Commute",graphs:{commuteMode:{title:"Commute Mode"}}},languages:{title:"Languages",graphs:{spokenLanguages:{title:"Spoken Official Languages"},motherTongue:{title:"Mother Tongue"}}}}},neighborhoodFeatured:{title:"Featured Neighborhoods",exploreMoreNeighborhoods:"EXPLORE MORE NEIGHBORHOODS",noData:"You haven't added any featured and favorite neighborhoods to your list yet. Head over to the <bold><LinkToHub>Featured Neighborhoods</LinkToHub></bold> section to select them."},neighborhoodShowcase:{title:"Neighborhood Showcase",header:{title:"Search Neighborhoods",description:"Explore any neighborhood to find the location that’s right for you",search:{placeholder:"Search all neighborhoods",results:{all:"All neighborhoods",featured:"Featured neighborhoods"}}},noData:"You haven't added any neighborhoods to your list yet. Head over to the <bold><LinkToHub>Neighborhood Showcase</LinkToHub></bold> section to select them."},neighborhoodHero:{summaryTitle:"About the neighborhood",summaryTitle_area:"About the area"},neighborhoodHighlights:{title:"Highlights",noData:"Discover what this neighborhood has to offer in terms of transportation, services, and character.",highlight:{title:"This area is great for"}},neighborhoodMap:{filters:{navigation:{scrollLeftAriaLabel:"Scroll left",scrollRightAriaLabel:"Scroll right",allFiltersAriaLabel:"View all filters"},radius:{title:"Radius:",value:"{{value}} {{unit}}"},popup:{title:"Filters",description:"Please select one option",cta:{reset:"Reset All",apply:"Apply Filter"}}}},neighborhoodMatch:{title:"Similar neighborhoods",title_32:"Similar zip codes",title_37:"Similar counties",description:"Discover similar locations to this neighborhood and see how they compare in terms of characteristics and amenities.",descriptionWithNeighborhood:"Discover similar locations to {{neighborhoodName}} and see how they compare in terms of characteristics and amenities.",noData:"Similar neighborhoods are not available for this location.",tags:{negative:"Less affordable",neutral:"Comparable",positive:"More affordable"},pagination:{previous:"Show less",next:"Show more"}},neighborhoodPropertyValueDrivers:{title:"Property value drivers",description:"These characteristics most positively impact the values of homes in this neighborhood.",noData:"Discover characteristics that influence home prices; this list details the factors that positively affect property values in a {{locationType}}.",locationType:{neighborhood:"neighborhood",location:"location"},valueDrivers:{bus_service_access:{tag:{high:"Great access"},qualifier:{high:"Having bus services enhances connectivity and accessibility, making it more attractive to commuters and increasing the overall desirability of the {{locationType}}."}},shops_and_services_access:{tag:{high:"Many nearby"},qualifier:{high:"Having plenty of nearby shops and services that are easily accessible can increase the overall desirability of a {{locationType}}."}},coffee_shop_access:{tag:{high:"Many nearby"},qualifier:{high:"Nearby and easily accessible coffee shops can create a welcoming environment and a more desirable {{locationType}}."}},clothing_and_accessory_store_access:{tag:{high:"Many nearby"},qualifier:{high:"Many nearby clothing and accessory stores which are easily accessible can increase the overall desirability of a {{locationType}}."}},common_needs_access:{tag:{high:"Great access"},qualifier:{high:"Easy access to basic amenities such as hardware stores, post offices, and convenience stores can improve the accessibility of services in a {{locationType}}."}},department_store_access:{tag:{high:"Many nearby"},qualifier:{high:"Nearby department stores that are easily accessible can increase the overall desirability of a {{locationType}}."}},entertainment_venue_access:{tag:{high:"Many nearby"},qualifier:{high:"Easily accessible entertainment venues can indicate a more vibrant and desirable {{locationType}}."}},fitness_establishment_access:{tag:{high:"Many nearby"},qualifier:{high:"Easily accessible fitness establishments such as gyms, yoga studios, and pools can create a more desirable {{locationType}}."}},nightlife_access:{tag:{high:"Great access"},qualifier:{high:"Easy access to local centers of nightlife, such as bars, pubs, and comedy clubs, can indicate a more vibrant {{locationType}}."}},pedestrian_oriented_street_access:{tag:{high:"Great access"},qualifier:{high:"Easily accessible commercial streets designed to be pedestrian-friendly can create a more desirable {{locationType}}."}},rapid_transit_service_access:{tag:{high:"Great access"},qualifier:{high:"Nearby rapid transit stations with frequent service can indicate a more accessible {{locationType}}."}},restaurant_access:{tag:{high:"Many nearby"},qualifier:{high:"Easily accessible and nearby restaurants can create a more desirable {{locationType}}."}},specialty_grocery_store_access:{tag:{high:"Many nearby"},qualifier:{high:"Nearby specialty grocery stores can indicate a more desirable {{locationType}}."}},sports_facility_access:{tag:{high:"Many nearby"},qualifier:{high:"Nearby sports facilities such as soccer fields, running tracks, and ice rinks can create a more desirable {{locationType}}."}},train_service_access:{tag:{high:"Great access"},qualifier:{high:"Nearby train stations with frequent service can indicate a more accessible {{locationType}}."}},nearest_highway_proximity:{tag:{high:"Great access",low:"Low density"},qualifier:{high:"Easy access to major highways can create a more accessible {{locationType}}.",low:"Few major highways nearby can create a quieter and more desirable {{locationType}}."}},nearest_pharmacy_proximity:{tag:{high:"Available close"},qualifier:{high:"Easy access to a nearby pharmacy can indicate a more accessible {{locationType}}."}},nearest_bicycle_share_station_proximity:{tag:{high:"Great access"},qualifier:{high:"Nearby bicycle-sharing stations can lead to a more accessible {{locationType}}."}},bicycle_path_access:{tag:{high:"Great access"},qualifier:{high:"Easily accessible bicycle paths can create a more accessible and desirable {{locationType}}."}},bicycle_share_station_access:{tag:{high:"Great access"},qualifier:{high:"Nearby bicycle-sharing stations can lead to a more accessible {{locationType}}."}},nearest_park_area:{tag:{high:"Available close"},qualifier:{high:"Large nearby parks can create a more desirable {{locationType}}."}},bicycle_infrastructure_quality:{tag:{high:"Great access"},qualifier:{high:"High-quality bicycle infrastructure can create a more accessible {{locationType}}."}},high_schools:{tag:{high:"Great access"},qualifier:{high:"Easy access to nearby schools can create a more desirable {{locationType}}."}},primary_schools:{tag:{high:"Great access"},qualifier:{high:"Easy access to nearby schools can create a more desirable {{locationType}}."}},quiet:{tag:{high:"Great access"},qualifier:{high:"Few sources of nearby noise can create a more desirable {{locationType}}."}},daycares:{tag:{high:"Great access"},qualifier:{high:"Easy access to nearby childcare can create a more desirable {{locationType}}."}},parks:{tag:{high:"Great access"},qualifier:{high:"Plenty of nearby parks can create a more desirable {{locationType}} environment."}}}},neighborhoodMarketTrends:{title:"Market trends",noData:"Market trends are not available for this neighborhood at this time.",disclaimer:{header:"Market trend information is based on home transaction data for the previous 12 months and current listing data.",footer:"Displaying trends for the selected neighborhood. Market Trend information is updated daily.",footer_large:"Displaying trends for the selected location. Market Trend information is updated daily."},tabs:{currentActivity:{title:"Current activity"},recentTrends:{title:"Recent trends"},marketConditions:{title:"Market conditions"}},marketIndicator:{increase:"increase",decrease:"decrease",noChangeDisclaimer:"There has been no change in the {{fieldTitle}} compared to the last 30 days."},valueComparison:{lower:"lower",equal:"Equal",higher:"higher"},graphs:{activeListings:{title:"Number of active listings",yAxisTitle:"Active listings"},homesSold:{title:"Homes sold",disclaimer:"The number of residential homes sold over the past 12 months.",changeDisclaimer:"The percent change in the number of homes sold over the previous 12 months."},housingMarketConditions:{title:"Housing market conditions",subtitle:"An indication of market conditions over time.",marketTypes:{buyer:"Buyer's market",seller:"Seller's market",neutral:"Neutral market"}},marketType:{title:"Buyer/Seller market",disclaimer:"Buyer/Seller market indicator is based on the ratio of recent homes sold to new listings.",marketTypes:{buyer:"Buyer's market",seller:"Seller's market",neutral:"Neutral market"}},medianAskingPrice:{title:"Median asking price",disclaimer:"The median asking price of residential homes over the past 30 days.",changeDisclaimer:"The percent change in the median asking price over the previous 30 days."},medianConstructionYear:{title:"The median construction year of homes sold in the past 12 months is "},medianDaysOnMarket:{title:"Median days on market",disclaimer:"The median days on market of residential homes over the past 30 days.",changeDisclaimer:"The percent change in the median days on market over the previous 30 days.",yAxisTitle:"Days on market"},medianSalePrice:{title:"Median sales price",disclaimer:"The median sales price of residential properties over the past 12 months.",changeDisclaimer:"The percent change in the median sales price over the previous 12 months."},medianSalePricePerSqft:{title:"Median sales price per square foot",disclaimer:"The median sales price per square foot of residential properties over the past 12 months.",changeDisclaimer:"The percent change in the median sales price per square foot over the previous 12 months."},medianSaleVsAskingPrice:{title:"Median sales vs. asking price of sold homes",disclaimer:"The median ratio of sold price to asking price of residential homes over the past 30 days.",changeDisclaimer:"The percent change in the ratio of sales price to asking price of residential homes over the last 30 days."}}},neighborhoodSchools:{title:"Nearby schools",noData:"There are no available schools nearby.",noFilteredData:"There are no nearby schools that match your current filters.",english:"English",french:"French",board:"School Board or District",headers:{name:"Name",type:"Type",languages:"Languages",levels:"Levels",category:"Category",address:"Address",typesFilter:"All types",levelsFilter:"All levels"},categories:{advancedPlacement:"Advanced Placement",charter:"Charter",magnet:"Magnet"},dataDisclaimer:"Schools are selected for display based on their proximity to the location. Please contact the schools directly to verify attendance zones."}},fr:{common:{attribution:"Propulsé par",time:{minute_one:"Minute",minute_other:"Minutes",hour_one:"Heure",hour_other:"Heures"},distance:{meter:"m",kilometer:"km",yard:"vg",mile:"mil"},language:{english:"Anglais",french:"Français",spanish:"Espagnol"},map:{marker:{schoolAttributes:{levels:"Niveau",grades:"Notes",languages:"Langues",types:"Type",board:"Commission",programs:"Programmes",categories:"Catégories",rating:"Note des écoles"},schoolCta:"Lien vers l'école",district:"Commission",categories:{advancedPlacement:"placement avancé",charter:"à charte",magnet:"à vocation particulière"}},cluster:{poiCount_one:"{{count}} Lieu",poiCount_other:"{{count}} Lieux"}},scores:{cafes:{title:"Cafés",description:"Une mesure de la quantité et de la diversité des cafés à proximité."},car_friendly:{title:"Adapté aux voitures",description:"Représente la fluidité de la circulation et la facilité de stationnement."},cycling_friendly:{title:"Adapté aux cyclistes",description:"Représente la qualité de l'aménagement du réseau cyclable autant pour les déplacement que pour le cyclisme récréatif, considérant les pistes et bande cyclables à proximité, le pourcentage d'habitants qui se déplacent à vélo, le dénivelé du terrain ainsi que la présence de vélos en libre-service."},daycares:{title:"Garderies",description:"Représente la distance jusqu'à la garderie la plus proche."},greenery:{title:"Verdure",description:"Quantité d'espaces verts à proximité et couverture de la canopée des arbres."},groceries:{title:"Épiceries",description:"Une mesure de la quantité d'épiceries à proximité."},high_schools:{title:"Écoles secondaires",description:"Représente la distance jusqu'à l'école secondaire la plus proche."},historic:{title:"Historique",description:"Une mesure de la quantité et de la taille des bâtiments patrimoniaux, et de l'âge moyen des bâtiments dans la région."},nightlife:{title:"Vie nocturne",description:"Représente la quantité et la diversité des bars à proximité."},parks:{title:"Parcs",description:"Une mesure de la quantité et de la taille des parcs à proximité."},pedestrian_friendly:{title:"Adapté aux piétons",description:"Une mesure de la proximité des services de base et du niveau de convivialité d'y aller à pied."},primary_schools:{title:"Écoles primaires",description:"Une mesure de la distance jusqu'à l'école primaire la plus proche."},quiet:{title:"Silencieux",description:"Une mesure des niveaux moyens de bruit à proximité."},restaurants:{title:"Restaurants",description:"Représente la quantité et la diversité des restaurants à proximité."},shopping:{title:"Magasins",description:"Une mesure de la quantité et de la diversité de magasins de mode et de grands magasins à proximité."},transit_friendly:{title:"Transport public",description:"Une mesure de la fréquence et du niveau de service de transport en commun."},vibrant:{title:"Dynamisme",description:"Représente le niveau d'activité de la rue à proximité."},wellness:{title:"Bien-être",description:"Représente à quel point un emplacement favorise le bien-être des individus."}},pois:{airports:"Aéroports",alcohol:"Alcool",art_culture_science:"Art, culture, science",banks:"Banques",bus_stops:"Autobus",cafes:"Cafés",car_fueling_stations:"Stations-service",casino:"Casino",clothing:"Vêtements",common_needs:"Besoins quotidiens",conference_centers:"Salles de conférence",convenience_stores:"Dépanneurs",daycares:"Garderies",department_stores:"Grands magasins",entertainment:"Divertissement",fitness:"Entraînement physique",groceries:"Épiceries",groceries_specialized:"Spécialisées",health_care:"Soins de santé",home_improvement:"Magasin de rénovation",hospitals:"Hôpitaux",libraries:"Librairies",nightlife:"Vie nocturne",non_food_shops:"Magasinage",parks:"Parcs",personal_care:"Soins personnels",pet_care:"Soins pour animaux",pharmacies:"Pharmacies",rapid_transit_stations:"Métro",restaurants:"Restaurants",retail:"Magasins de détail",shops_and_services:"Magasins et services",sport_facilities:"Installations sportives",train_stations:"Train",high_schools:"Écoles secondaires",primary_schools:"Écoles primaires",healthy_restaurants:"Restaurants sains",shopping:"Magasinage"},valueDrivers:{bus_service_access:"Services d'autobus",shops_and_services_access:"Magasins et services",coffee_shop_access:"Cafés",clothing_and_accessory_store_access:"Magasins de vêtements",common_needs_access:"Nécessités communes",department_store_access:"Grands magasins",entertainment_venue_access:"Lieux de divertissement",fitness_establishment_access:"Conditionnement physique",nightlife_access:"Vie nocturne",pedestrian_oriented_street_access:"Rues accessibles aux piétons",rapid_transit_service_access:"Service de transport en commun rapide",restaurant_access:"Restaurants",specialty_grocery_store_access:"Épiceries spécialisées",sports_facility_access:"Installations sportives",train_service_access:"Gares",nearest_highway_proximity:"Accès à l'autoroute",nearest_pharmacy_proximity:"Pharmacies à proximité",nearest_bicycle_share_station_proximity:"Stations de vélos en libre-service à proximité",bicycle_path_access:"Stations de vélopartage à proximité",bicycle_share_station_access:"Partage de vélo",nearest_park_area:"Grand parc à proximité",bicycle_infrastructure_quality:"Infrastructure pour vélos",high_schools:"Écoles secondaires",primary_schools:"Écoles primaires",quiet:"Calme",daycares:"Garderies",parks:"Parcs"}},leadCapture:{},localContent:{sidebar:{header:{title:"Catégories",backAction:"Retour au menu",toggle:{ariaLabel:"Basculer le menu des scores",ariaLabel_open:"Ouvrir le menu des scores",ariaLabel_close:"Fermer le menu des scores"}}},categoriesToggle:{toggleLabel:"Catégories",backAction:"Retour"},categories:{commute:"Transport",amenities:"Services",character:"Caractère",nature:"Nature",education:"Éducation",health:"Santé"},scoreComparison:{text:"Comparable à la moyenne de {{name}} de {{value}}",text_higher:"Supérieur à la moyenne de {{name}} de {{value}}",text_lower:"Inférieur à la moyenne de {{name}} de {{value}}"},poiSearchRadius:"Affichage des PO dans un rayon de {{radius}} {{unit}}",commute:{placeholder:"Faire une recherche...",cta:"Calculer le trajet",cta_long:"Calculer le trajet",cta_short:"Calculer",viewRoute:"Voir l'itinéraire",travelTypes:{walking:"À pied",driving:"En voiture",cycling:"À vélo"},results:{noRoute:"Aucun itinéraire disponible.",trySuggestion:"Essayez une autre requête.",fastestRoute:"Itinéraire le plus rapide"}}},localDemographics:{title:"Données démographiques locales",note:"Affichage des données démographiques pour la zone située à {{value}} {{unit}} autour de l'emplacement sélectionné.",noData:"Aucune donnée démographique n'est disponible pour cet endroit particulier.",data:{income:{title:"Revenu",graphs:{averageIncome:{title:"Revenu moyen",title_USA:"Revenu",types:{avgHouseholdIncome:"Familial",avgHouseholdIncome_USA:"Ménage (médian)",avgIndividualIncome:"Individuel",avgIndividualIncome_USA:"Individuel (par habitant)"}},employment:{title:"Emploi"},incomeBrackets:{title:"Tranches de revenu"}}},population:{title:"Population",graphs:{totalPopulation:{title:"Population totale"},populationByAgeGroup:{title:"Population par tranche d'âge"}}},housing:{title:"Logement",graphs:{homeOwnershipType:{title:"Propriétaires c. locataires"},typeOfHousing:{title:"Type de logement"}}},household:{title:"Ménages",graphs:{householdComposition:{title:"Composition des ménages"}}},education:{title:"Éducation",graphs:{educationLevel:{title:"Niveau d'études atteint"}}},commute:{title:"Transport",graphs:{commuteMode:{title:"Modes de transport"}}},languages:{title:"Langues",graphs:{spokenLanguages:{title:"Langues officielles parlées"},motherTongue:{title:"Langue maternelle"}}}}},neighborhoodCharacteristics:{title:"Caractéristiques",noData:"Aucune information n'est présentement disponible pour ce quartier. Restez à l'affût des mises à jour pour l'ajout de nouveaux quartiers.",sections:{transport:{title:"Transport"},services:{title:"Services"},character:{title:"Caractère"}}},neighborhoodDemographics:{title:"Démographie du quartier",note:"Affichage des statistiques démographiques pour le quartier.",noData:"Aucune donnée démographique n'est offerte pour cet endroit particulier.",data:{income:{title:"Revenu",graphs:{averageIncome:{title:"Revenu moyen",types:{avg_household_income:"Familial",avg_individual_income:"Individuel"}},employment:{title:"Emploi"},incomeBrackets:{title:"Tranches de revenu"}}},population:{title:"Population",graphs:{totalPopulation:{title:"Population totale"},populationByAgeGroup:{title:"Population par tranche d'âge"}}},housing:{title:"Logement",graphs:{homeOwnershipType:{title:"Propriétaires c.. locataires"},typeOfHousing:{title:"Type de logement"}}},household:{title:"Ménage",graphs:{householdComposition:{title:"Composition des ménages"}}},education:{title:"Éducation",graphs:{educationLevel:{title:"Niveau d'études atteint"}}},commute:{title:"Transport",graphs:{commuteMode:{title:"Mode de déplacement"}}},languages:{title:"Langues",graphs:{spokenLanguages:{title:"Langues officielles parlées"},motherTongue:{title:"Langue maternelle"}}}}},neighborhoodFeatured:{title:""},neighborhoodShowcase:{},neighborhoodHero:{summaryTitle:"À propos du quartier"},neighborhoodHighlights:{title:"Points forts",noData:"Découvrez ce que ce quartier a à offrir en termes de transport, de services et de caractère.",highlight:{title:"Cette zone est idéale pour"}},neighborhoodMap:{filters:{navigation:{scrollLeftAriaLabel:"Défiler vers la gauche",scrollRightAriaLabel:"Défiler vers la droite",allFiltersAriaLabel:"Voir tous les filtres"},radius:{title:"Rayon :",value:"{{value}} {{unit}}"},popup:{title:"Filtres",description:"Veuillez sélectionner une option",cta:{reset:"Réinitialiser tout",apply:"Appliquer le filtre"}}}},neighborhoodMatch:{title:"Quartiers similaires",title_32:"Codes postaux similaires",title_37:"Comtés similaires",description:"Découvrez des lieux similaires à celui-ci et comparez-les en termes de caractéristiques et services de proximité.",descriptionWithNeighborhood:"Découvrez des lieux similaires à {{neighborhoodName}} et comparez-les en termes de caractéristiques et services de proximité.",noData:"Les quartiers similaires ne sont pas disponibles pour cet emplacement.",tags:{negative:"Moins abordable",neutral:"Comparable",positive:"Plus abordable"},pagination:{previous:"Afficher moins",next:"Afficher plus"}},neighborhoodPropertyValueDrivers:{title:"Facteurs de valeur immobilière",description:"Ces caractéristiques ont le plus d'impact positif sur les valeurs des maisons dans ce quartier.",noData:"Découvrez les caractéristiques qui influencent les prix des maisons; cette liste détaille les facteurs qui affectent positivement les valeurs des propriétés dans un {{locationType}}.",locationType:{neighborhood:"quartier",location:"emplacement"},valueDrivers:{bus_service_access:{tag:{high:"Excellent accès"},qualifier:{high:"La présence de services d'autobus améliore la connectivité et l'accessibilité d'un {{locationType}}, le rendant plus attrayant pour les navetteurs et augmentant son attractivité globale."}},shops_and_services_access:{tag:{high:"Plusieurs à proximité"},qualifier:{high:"La présence de nombreux commerces de proximité facilement accessibles peut augmenter l'attractivité globale d'un {{locationType}}."}},coffee_shop_access:{tag:{high:"Plusieurs à proximité"},qualifier:{high:"La présence de cafés à proximité et facilement accessibles peut créer un environnement accueillant et un {{locationType}} plus attrayant."}},clothing_and_accessory_store_access:{tag:{high:"Plusieurs à proximité"},qualifier:{high:"La présence de nombreux magasins de vêtements et d'accessoires facilement accessibles à proximité peut accroître la désirabilité globale d'un {{locationType}}."}},common_needs_access:{tag:{high:"Excellent accès"},qualifier:{high:"L'accès facile à des commodités de base comme les quincailleries, bureaux de poste et dépanneurs peut améliorer l'accessibilité des services dans un {{locationType}}."}},department_store_access:{tag:{high:"Plusieurs à proximité"},qualifier:{high:"La présence de grands magasins à proximité et facilement accessibles peut augmenter l'attractivité globale d'un {{locationType}}."}},entertainment_venue_access:{tag:{high:"Plusieurs à proximité"},qualifier:{high:"La présence de lieux de divertissement facilement accessibles peut être le signe d'un {{locationType}} plus vivant et plus attrayant."}},fitness_establishment_access:{tag:{high:"Plusieurs à proximité"},qualifier:{high:"La présence d'établissements de conditionnement physique facilement accessibles, tels que des gymnases, des studios de yoga et des piscines, peut rendre le {{locationType}} plus attrayant."}},nightlife_access:{tag:{high:"Excellent accès"},qualifier:{high:"Un accès facile aux centres locaux de la vie nocturne, tels que les bars, les pubs et les clubs de comédie, peut être le signe d'un {{locationType}} plus dynamique."}},pedestrian_oriented_street_access:{tag:{high:"Excellent accès"},qualifier:{high:"La présence de rues commerciales facilement accessibles, conçues pour être conviviales pour les piétons, peut créer un {{locationType}} plus attrayant."}},rapid_transit_service_access:{tag:{high:"Excellent accès"},qualifier:{high:"La proximité de stations de transport en commun rapide à haute fréquence peut être le signe d'un {{locationType}} plus accessible."}},restaurant_access:{tag:{high:"Plusieurs à proximité"},qualifier:{high:"La présence de restaurants facilement accessibles et à proximité peut créer un {{locationType}} plus attrayant."}},specialty_grocery_store_access:{tag:{high:"Plusieurs à proximité"},qualifier:{high:"La présence d'épiceries spécialisées à proximité peut indiquer un {{locationType}} plus attrayant."}},sports_facility_access:{tag:{high:"Plusieurs à proximité"},qualifier:{high:"La proximité d'installations sportives telles que des terrains de football, des pistes de course et des patinoires peut rendre le {{locationType}} plus attrayant."}},train_service_access:{tag:{high:"Excellent accès"},qualifier:{high:"La présence de gares à proximité qui ont un service fréquent peut indiquer un {{locationType}} plus accessible."}},nearest_highway_proximity:{tag:{high:"Excellent accès",low:"Faible densité"},qualifier:{high:"Un accès facile aux grandes autoroutes peut créer un {{locationType}} plus accessible.",low:"Peu d'autoroutes à proximité peut rendre le {{locationType}} plus calme et plus attrayant."}},nearest_pharmacy_proximity:{tag:{high:"Disponible à proximité"},qualifier:{high:"Un accès facile à une pharmacie à proximité peut indiquer un {{locationType}} plus accessible."}},nearest_bicycle_share_station_proximity:{tag:{high:"Excellent accès"},qualifier:{high:"La présence de stations de vélopartage à proximité peut être le signe d'un {{locationType}} plus accessible."}},bicycle_path_access:{tag:{high:"Excellent accès"},qualifier:{high:"La présence de pistes cyclables facilement accessibles peut être le signe d'un {{locationType}} plus accessible et plus attrayant."}},bicycle_share_station_access:{tag:{high:"Excellent accès"},qualifier:{high:"La présence de stations de vélopartage à proximité peut être le signe d'un {{locationType}} plus accessible."}},nearest_park_area:{tag:{high:"Disponible à proximité"},qualifier:{high:"La présence de grands parcs à proximité peut être le signe d'un {{locationType}} plus attrayant."}},bicycle_infrastructure_quality:{tag:{high:"Excellent accès"},qualifier:{high:"La présence d'une infrastructure de qualité pour les vélos peut être le signe d'un {{locationType}} plus accessible."}},high_schools:{tag:{high:"Excellent accès"},qualifier:{high:"Un accès facile aux écoles à proximité peut rendre le {{locationType}} plus attrayant."}},primary_schools:{tag:{high:"Excellent accès"},qualifier:{high:"Un accès facile aux écoles à proximité peut rendre le {{locationType}} plus attrayant."}},quiet:{tag:{high:"Excellent accès"},qualifier:{high:"Le peu de sources de bruit à proximité peut rendre le {{locationType}} plus attrayant."}},daycares:{tag:{high:"Excellent accès"},qualifier:{high:"Un accès facile aux services de garde à proximité peut rendre le {{locationType}} plus attrayant."}},parks:{tag:{high:"Excellent accès"},qualifier:{high:"La présence de nombreux parcs à proximité peut rendre le {{locationType}} plus attrayant."}}}},neighborhoodMarketTrends:{},neighborhoodSchools:{title:"Écoles à proximité",noData:"Il n'y a pas d'écoles disponibles à proximité.",noFilteredData:"Aucune école à proximité ne correspond à vos filtres actuels.",english:"Anglais",french:"Français",board:"Commission scolaire ou district",headers:{name:"Nom",type:"Type",languages:"Langues",levels:"Niveaux",category:"Catégorie",address:"Adresse",typesFilter:"Tous types",levelsFilter:"Tous niveaux"},categories:{advancedPlacement:"Placement avancé",charter:"À charte",magnet:"À vocation particulière"},dataDisclaimer:"Les écoles sont sélectionnées pour être affichées en fonction de leur proximité avec le lieu. Veuillez contacter directement les écoles pour vérifier les zones de fréquentation."}}}});var rc=Ga;function oc(){return oc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},oc.apply(null,arguments)}var ic,sc,ac,cc,lc,uc=n(()=>{}),dc=r({Action:()=>ic,createBrowserHistory:()=>hc,createHashHistory:()=>pc,createMemoryHistory:()=>fc,createPath:()=>bc,parsePath:()=>wc});function hc(e){void 0===e&&(e={});var t=e.window,n=void 0===t?document.defaultView:t,r=n.history;function o(){var e=n.location,t=e.pathname,o=e.search,i=e.hash,s=r.state||{};return[s.idx,sc({pathname:t,search:o,hash:i,state:s.usr||null,key:s.key||"default"})]}var i=null;n.addEventListener(lc,function(){if(i)d.call(i),i=null;else{var e=ic.Pop,t=o(),n=t[0],r=t[1];if(d.length){if(null!=n){var s=c-n;s&&(i={action:e,location:r,retry:function(){v(-1*s)}},v(s))}}else m(e)}});var s=ic.Pop,a=o(),c=a[0],l=a[1],u=vc(),d=vc();function h(e){return"string"==typeof e?e:bc(e)}function p(e,t){return void 0===t&&(t=null),sc(oc({pathname:l.pathname,hash:"",search:""},"string"==typeof e?wc(e):e,{state:t,key:yc()}))}function f(e,t){return[{usr:e.state,key:e.key,idx:t},h(e)]}function g(e,t,n){return!d.length||(d.call({action:e,location:t,retry:n}),!1)}function m(e){s=e;var t=o();c=t[0],l=t[1],u.call({action:s,location:l})}function v(e){r.go(e)}return null==c&&(c=0,r.replaceState(oc({},r.state,{idx:c}),"")),{get action(){return s},get location(){return l},createHref:h,push:function e(t,o){var i=ic.Push,s=p(t,o);if(g(i,s,function(){e(t,o)})){var a=f(s,c+1),l=a[0],u=a[1];try{r.pushState(l,"",u)}catch(d){n.location.assign(u)}m(i)}},replace:function e(t,n){var o=ic.Replace,i=p(t,n);if(g(o,i,function(){e(t,n)})){var s=f(i,c),a=s[0],l=s[1];r.replaceState(a,"",l),m(o)}},go:v,back:function(){v(-1)},forward:function(){v(1)},listen:function(e){return u.push(e)},block:function(e){var t=d.push(e);return 1===d.length&&n.addEventListener(ac,mc),function(){t(),d.length||n.removeEventListener(ac,mc)}}}}function pc(e){void 0===e&&(e={});var t=e.window,n=void 0===t?document.defaultView:t,r=n.history;function o(){var e=wc(n.location.hash.substr(1)),t=e.pathname,o=void 0===t?"/":t,i=e.search,s=void 0===i?"":i,a=e.hash,c=void 0===a?"":a,l=r.state||{};return[l.idx,sc({pathname:o,search:s,hash:c,state:l.usr||null,key:l.key||"default"})]}var i=null;function s(){if(i)h.call(i),i=null;else{var e=ic.Pop,t=o(),n=t[0],r=t[1];if(h.length){if(null!=n){var s=l-n;s&&(i={action:e,location:r,retry:function(){y(-1*s)}},y(s))}}else v(e)}}n.addEventListener(lc,s),n.addEventListener(cc,function(){bc(o()[1])!==bc(u)&&s()});var a=ic.Pop,c=o(),l=c[0],u=c[1],d=vc(),h=vc();function p(e){return function(){var e=document.querySelector("base"),t="";if(e&&e.getAttribute("href")){var r=n.location.href,o=r.indexOf("#");t=-1===o?r:r.slice(0,o)}return t}()+"#"+("string"==typeof e?e:bc(e))}function f(e,t){return void 0===t&&(t=null),sc(oc({pathname:u.pathname,hash:"",search:""},"string"==typeof e?wc(e):e,{state:t,key:yc()}))}function g(e,t){return[{usr:e.state,key:e.key,idx:t},p(e)]}function m(e,t,n){return!h.length||(h.call({action:e,location:t,retry:n}),!1)}function v(e){a=e;var t=o();l=t[0],u=t[1],d.call({action:a,location:u})}function y(e){r.go(e)}return null==l&&(l=0,r.replaceState(oc({},r.state,{idx:l}),"")),{get action(){return a},get location(){return u},createHref:p,push:function e(t,o){var i=ic.Push,s=f(t,o);if(m(i,s,function(){e(t,o)})){var a=g(s,l+1),c=a[0],u=a[1];try{r.pushState(c,"",u)}catch(d){n.location.assign(u)}v(i)}},replace:function e(t,n){var o=ic.Replace,i=f(t,n);if(m(o,i,function(){e(t,n)})){var s=g(i,l),a=s[0],c=s[1];r.replaceState(a,"",c),v(o)}},go:y,back:function(){y(-1)},forward:function(){y(1)},listen:function(e){return d.push(e)},block:function(e){var t=h.push(e);return 1===h.length&&n.addEventListener(ac,mc),function(){t(),h.length||n.removeEventListener(ac,mc)}}}}function fc(e){void 0===e&&(e={});var t=e,n=t.initialEntries,r=void 0===n?["/"]:n,o=t.initialIndex,i=r.map(function(e){return sc(oc({pathname:"/",search:"",hash:"",state:null,key:yc()},"string"==typeof e?wc(e):e))}),s=gc(null==o?i.length-1:o,0,i.length-1),a=ic.Pop,c=i[s],l=vc(),u=vc();function d(e,t){return void 0===t&&(t=null),sc(oc({pathname:c.pathname,search:"",hash:""},"string"==typeof e?wc(e):e,{state:t,key:yc()}))}function h(e,t,n){return!u.length||(u.call({action:e,location:t,retry:n}),!1)}function p(e,t){a=e,c=t,l.call({action:a,location:c})}function f(e){var t=gc(s+e,0,i.length-1),n=ic.Pop,r=i[t];h(n,r,function(){f(e)})&&(s=t,p(n,r))}return{get index(){return s},get action(){return a},get location(){return c},createHref:function(e){return"string"==typeof e?e:bc(e)},push:function e(t,n){var r=ic.Push,o=d(t,n);h(r,o,function(){e(t,n)})&&(s+=1,i.splice(s,i.length,o),p(r,o))},replace:function e(t,n){var r=ic.Replace,o=d(t,n);h(r,o,function(){e(t,n)})&&(i[s]=o,p(r,o))},go:f,back:function(){f(-1)},forward:function(){f(1)},listen:function(e){return l.push(e)},block:function(e){return u.push(e)}}}function gc(e,t,n){return Math.min(Math.max(e,t),n)}function mc(e){e.preventDefault(),e.returnValue=""}function vc(){var e=[];return{get length(){return e.length},push:function(t){return e.push(t),function(){e=e.filter(function(e){return e!==t})}},call:function(t){e.forEach(function(e){return e&&e(t)})}}}function yc(){return Math.random().toString(36).substr(2,8)}function bc(e){var t=e.pathname,n=void 0===t?"/":t,r=e.search,o=void 0===r?"":r,i=e.hash,s=void 0===i?"":i;return o&&"?"!==o&&(n+="?"===o.charAt(0)?o:"?"+o),s&&"#"!==s&&(n+="#"===s.charAt(0)?s:"#"+s),n}function wc(e){var t={};if(e){var n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));var r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}var xc=n(()=>{uc(),function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(ic||(ic={})),sc=function(e){return e},ac="beforeunload",cc="hashchange",lc="popstate"}),_c=o((e,n)=>{!function(r,o){"object"==typeof e&&void 0!==n?o(e,s(),(xc(),t(dc))):"function"==typeof define&&define.amd?define(["exports","react","history"],o):o((r="undefined"!=typeof globalThis?globalThis:r||self).ReactLocation={},r.React,r.History)}(e,function(e,t,n){var r=function(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}(t);function o(){return o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}function i(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function s(e){if(!e)return"";var t=decodeURIComponent(e);return"false"!==t&&("true"===t||(0*+t==0?+t:t))}const a=["children","location","__experimental__snapshot"],c=["location","__experimental__snapshot"],l=["basepath","routes"],u=["to","search","hash","children","target","style","replace","onClick","onMouseEnter","className","getActiveProps","getInactiveProps","activeOptions","preload","disabled","_ref"],d=["style","className"],h=["style","className"],p=["pending"],f=["children"],g=r.createContext(null),m=r.createContext(null),v=r.createContext(null),y=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement),b=y?r.useLayoutEffect:r.useEffect;class w{constructor(){this.listeners=[]}subscribe(e){return this.listeners.push(e),()=>{this.listeners=this.listeners.filter(t=>t!==e)}}notify(){this.listeners.forEach(e=>e())}}function x(e){return r.createElement(m.Provider,e)}function _(){const e=S(),t=A(),n=j();return b(()=>{t({to:".",search:!0,hash:!0}).href!==e.current.href&&n({to:".",search:!0,hash:!0,fromCurrent:!0,replace:!0})},[]),null}class E extends w{constructor(e){var t;let{location:n,__experimental__snapshot:r}=e,s=i(e,c);super(),this.routesById={},this.update=e=>{let{basepath:t,routes:n}=e,r=i(e,l);Object.assign(this,r),this.basepath=z("/"+(null!=t?t:"")),this.routesById={};const s=(e,t)=>e.map(e=>{var n,i,a,c;const l=null!=(n=e.path)?n:"*",u=B(["root"===(null==t?void 0:t.id)?"":null==t?void 0:t.id,(null==l?void 0:l.replace(/(.)\/$/,"$1"))+(e.id?"-"+e.id:"")]);if(e=o({},e,{pendingMs:null!=(i=e.pendingMs)?i:null==r?void 0:r.defaultPendingMs,pendingMinMs:null!=(a=e.pendingMinMs)?a:null==r?void 0:r.defaultPendingMinMs,id:u}),this.routesById[u])throw new Error;return this.routesById[u]=e,e.children=null!=(c=e.children)&&c.length?s(e.children,e):void 0,e});this.routes=s(n),this.rootMatch={id:"root",params:{},search:{},pathname:this.basepath,route:null,ownData:{},data:{},isLoading:!1,status:"resolved"}},this.setState=e=>{const t=e({state:this.state,pending:this.pending});this.state=t.state,this.pending=t.pending,this.cleanMatchCache(),this.notify()},this.matchCache={},this.cleanMatchCache=()=>{var e,t,n;const r=[...null!=(e=null==this?void 0:this.state.matches)?e:[],...null!=(t=null==this||null==(n=this.pending)?void 0:n.matches)?t:[]].map(e=>e.id);Object.values(this.matchCache).forEach(e=>{var t;if(!e.updatedAt)return;if(r.includes(e.id))return;const n=Date.now()-(null!=(t=e.updatedAt)?t:0);(!e.maxAge||n>e.maxAge)&&(e.route.unloader&&e.route.unloader(e),delete this.matchCache[e.id])})},this.updateLocation=e=>{let t;return{promise:new Promise(n=>{const r=new O(this,e);this.setState(e=>o({},e,{pending:{location:r.location,matches:r.matches}})),t=r.subscribe(()=>{const e=this.state.matches;e.filter(e=>!r.matches.find(t=>t.id===e.id)).forEach(e=>{null==e.onExit||e.onExit(e)}),e.filter(e=>r.matches.find(t=>t.id===e.id)).forEach(e=>{null==e.route.onTransition||e.route.onTransition(e)}),r.matches.filter(t=>!e.find(e=>e.id===t.id)).forEach(e=>{e.onExit=null==e.route.onMatch?void 0:e.route.onMatch(e)}),this.setState(e=>o({},e,{state:{location:r.location,matches:r.matches},pending:void 0})),n()}),r.loadData(),r.startPending()}),unsubscribe:t}},this.__experimental__createSnapshot=()=>({location:this.state.location,matches:this.state.matches.map(e=>{let{ownData:t,id:n}=e;return{id:n,ownData:t}})}),this.update(s);let a=[];if(r){const e=new O(this,n.current);e.matches.forEach((e,t)=>{var n,o,i,s;if(e.id!==(null==(n=r.matches[t])?void 0:n.id))throw new Error("Router hydration mismatch: "+e.id+" !== "+(null==(s=r.matches[t])?void 0:s.id));e.ownData=null!=(o=null==(i=r.matches[t])?void 0:i.ownData)?o:{}}),C(e.matches),a=e.matches}this.state={location:null!=(t=null==r?void 0:r.location)?t:n.current,matches:a},n.subscribe(()=>this.notify())}}function S(){const e=r.useContext(g);return U(!!e,"useLocation must be used within a <ReactLocation />"),e.location}class k{constructor(e){this.status="loading",this.ownData={},this.data={},this.isLoading=!1,this.notify=e=>{var t;null==(t=this.matchLoader)||t.preNotify(e?this:void 0)},this.assignMatchLoader=e=>{this.matchLoader=e},this.startPending=()=>{this.pendingTimeout&&clearTimeout(this.pendingTimeout),void 0!==this.route.pendingMs&&(this.pendingTimeout=setTimeout(()=>{var e;"loading"===this.status&&(this.status="pending"),null==(e=this.notify)||e.call(this),void 0!==this.route.pendingMinMs&&(this.pendingMinPromise=new Promise(e=>setTimeout(e,this.route.pendingMinMs)))},this.route.pendingMs))},this.load=e=>{var t,n;if(this.maxAge=null!=(t=null!=(n=e.maxAge)?n:this.route.loaderMaxAge)?t:e.router.defaultLoaderMaxAge,this.loaderPromise)return;const r=this.route.import;this.loaderPromise=(r?(this.isLoading=!0,r({params:this.params,search:this.search}).then(e=>{this.route=o({},this.route,e)})):Promise.resolve()).then(()=>{const t=[];["element","errorElement","pendingElement"].forEach(e=>{const n=this.route[e];this[e]||("function"==typeof n?(this.isLoading=!0,t.push(n(this).then(t=>{this[e]=t}))):this[e]=this.route[e])});const n=this.route.loader,r=n?new Promise(async t=>{this.isLoading=!0;const r=e=>{this.updatedAt=Date.now(),t(this.ownData),this.status=e},o=e=>{this.ownData=e,this.error=void 0,r("resolved")},i=e=>{console.error(e),this.error=e,r("rejected")};try{o(await n(this,{parentMatch:e.parentMatch,dispatch:async e=>{var t;"resolve"===e.type?o(e.data):"reject"===e.type?i(e.error):"loading"===e.type?this.isLoading=!0:"maxAge"===e.type&&(this.maxAge=e.maxAge),this.updatedAt=Date.now(),null==(t=this.notify)||t.call(this,!0)}}))}catch(e){i(e)}}):Promise.resolve();return Promise.all([...t,r]).then(()=>{this.status="resolved",this.isLoading=!1,this.startPending=void 0}).then(()=>this.pendingMinPromise).then(()=>{var e;this.pendingTimeout&&clearTimeout(this.pendingTimeout),null==(e=this.notify)||e.call(this,!0)})}).then(()=>this.ownData)},Object.assign(this,e)}}class O extends w{constructor(e,t){var n;super(),n=this,this.preNotifiedMatches=[],this.status="pending",this.preNotify=e=>{e&&(this.preNotifiedMatches.includes(e)||this.preNotifiedMatches.push(e)),e&&this.preNotifiedMatches.length!==this.matches.length||(this.status="resolved",C(this.matches),this.notify())},this.loadData=async function(e){var t;let{maxAge:r}=void 0===e?{}:e;if(n.router.cleanMatchCache(),null!=(t=n.matches)&&t.length)return n.firstRenderPromises=[],n.matches.forEach((e,t)=>{var o,i;const s=null==(o=n.matches)?void 0:o[t-1];null==e.assignMatchLoader||e.assignMatchLoader(n),null==e.load||e.load({maxAge:r,parentMatch:s,router:n.router}),null==(i=n.firstRenderPromises)||i.push(e.loaderPromise)}),await Promise.all(n.firstRenderPromises).then(()=>(n.preNotify(),n.matches));n.preNotify()},this.load=async function(e){let{maxAge:t}=void 0===e?{}:e;return await n.loadData({maxAge:t})},this.startPending=async()=>{this.matches.forEach(e=>null==e.startPending?void 0:e.startPending())},this.router=e,this.location=t,this.matches=[];const r=R(this.router,this.location);this.matches=null==r?void 0:r.map(e=>(this.router.matchCache[e.id]||(this.router.matchCache[e.id]=new k(e)),this.router.matchCache[e.id]))}}function C(e){e?.forEach((t,n)=>{var r;const i=null==e?void 0:e[n-1];t.data=o({},null!=(r=null==i?void 0:i.data)?r:{},t.ownData)})}function P(){const e=r.useContext(v);if(!e)throw U(!0,"You are trying to use useRouter() outside of ReactLocation!"),new Error;return e.router}function R(e,t){if(!e.routes.length)return[];const n=[],r=async(i,s)=>{var a;let{pathname:c,params:l}=s;const u=(null!=e&&e.filterRoutes?null==e?void 0:e.filterRoutes(i):i).find(n=>{var r,i;const s=B([c,n.path]),a=!!("/"!==n.path||null!=(r=n.children)&&r.length),u=$(t,{to:s,search:n.search,fuzzy:a,caseSensitive:null!=(i=n.caseSensitive)?i:e.caseSensitive});return u&&(l=o({},l,u)),!!u});if(!u)return;const d=L(u.path,l);c=B([c,d]);const h={id:L(u.id,l,!0),route:u,params:l,pathname:c,search:t.search};n.push(h),null!=(a=u.children)&&a.length&&r(u.children,h)};return r(e.routes,e.rootMatch),n}function L(e,t,n){return B(K(e).map(e=>{return"*"!==e.value||n?"param"===e.type?null!=(r=t[e.value.substring(1)])?r:"":e.value:"";var r}))}function T(){const e=S(),t=N(),n=P(),r=A();return G(async function(i,s){var a;return void 0===i&&(i=e.current),await new O(n,r(o({},i,{from:null!=(a=i.from)?a:{pathname:t.pathname}}))).load(s)})}function D(){return r.useContext(m)}function N(){var e;return null==(e=D())?void 0:e[0]}function j(){const e=S(),t=N(),n=A();return G(function(r){var o;let{search:i,hash:s,replace:a,from:c,to:l,fromCurrent:u}=r;u=null!=(o=u)?o:void 0===l;const d=n({to:l,search:i,hash:s,from:u?e.current:null!=c?c:{pathname:t.pathname}});e.navigate(d,a)})}function A(){const e=S(),t=P();return G(n=>{const r=R(t,e.buildNext(t.basepath,n)).map(e=>{var t;return null!=(t=e.route.searchFilters)?t:[]}).flat().filter(Boolean);return e.buildNext(t.basepath,o({},n,{__searchFilters:r}))})}function I(){var e;const t=P(),[n,...o]=D(),i=o[0];if(!i)return null;const s=null!=(e=i.errorElement)?e:t.defaultErrorElement,a=(()=>{var e,n;if("rejected"===i.status){if(s)return s;if(!t.useErrorBoundary)return"An unknown error occured!";throw i.error}const o=null!=(e=i.pendingElement)?e:t.defaultPendingElement;if("loading"===i.status)return null;if("pending"===i.status&&(i.route.pendingMs||o))return null!=o?o:null;const a=null!=(n=i.element)?n:t.defaultElement;return null!=a?a:r.createElement(I,null)})();return r.createElement(x,{value:o},a)}function M(){const e=P(),t=N();return G(n=>W(e.basepath,t.pathname,z(n)))}function $(e,t){const n=V(e,t),r=function(e,t){return!(!t.search||!t.search(e.search))}(e,t);if((!t.to||n)&&(!t.search||r))return null!=n?n:{}}function F(){const e=P(),t=M();return G(n=>{let{pending:r}=n,s=i(n,p);if(s=o({},s,{to:s.to?t(""+s.to):void 0}),r){var a;if(null==(a=e.pending)||!a.location)return;return $(e.pending.location,s)}return $(e.state.location,s)})}function H(e,t){const n=S();r.useEffect(()=>{if(!t)return;let r=n.history.block(t=>{window.confirm(e)?(r(),t.retry()):n.current.pathname=window.location.pathname});return r},[t,n,e])}function U(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function q(e,t){return"function"==typeof e?e(t):e}function B(e){return z(e.filter(Boolean).join("/"))}function z(e){return(""+e).replace(/\/{2,}/g,"/")}function V(e,t){var n;const r=K(e.pathname),o=K(""+(null!=(n=t.to)?n:"*")),i={};return(()=>{for(let e=0;e<Math.max(r.length,o.length);e++){const n=r[e],s=o[e],a=e===o.length-1,c=e===r.length-1;if(s){if("wildcard"===s.type)return!(null==n||!n.value||(i["*"]=B(r.slice(e).map(e=>e.value)),0));if("pathname"===s.type){if("/"===s.value&&(null==n||!n.value))return!0;if(n)if(t.caseSensitive){if(s.value!==n.value)return!1}else if(s.value.toLowerCase()!==n.value.toLowerCase())return!1}if(!n)return!1;"param"===s.type&&(i[s.value.substring(1)]=n.value)}if(a&&!c)return!!t.fuzzy}return!0})()?i:void 0}function K(e){if(!e)return[];const t=[];if("/"===(e=z(e)).slice(0,1)&&(e=e.substring(1),t.push({type:"pathname",value:"/"})),!e)return t;const n=e.split("/").filter(Boolean);return t.push(...n.map(e=>e.startsWith("*")?{type:"wildcard",value:e}:":"===e.charAt(0)?{type:"param",value:e}:{type:"pathname",value:e})),"/"===e.slice(-1)&&(e=e.substring(1),t.push({type:"pathname",value:"/"})),t}function W(e,t,n){t=t.replace(new RegExp("^"+e),"/"),n=n.replace(new RegExp("^"+e),"/");let r=K(t);const o=K(n);return o.forEach((e,t)=>{if("/"===e.value)t?t===o.length-1&&r.push(e):r=[e];else if(".."===e.value)r.pop();else{if("."===e.value)return;r.push(e)}}),z(B([e,...r.map(e=>e.value)]))}function G(e){const t=r.useRef(),n=r.useRef(e);return n.current=e,t.current||(t.current=function(){return n.current(...arguments)}),t.current}function J(e,t){if(e===t)return e;const n=Array.isArray(e)&&Array.isArray(t);if(n||Y(e)&&Y(t)){const r=n?e.length:Object.keys(e).length,o=n?t:Object.keys(t),i=o.length,s=n?[]:{};let a=0;for(let c=0;c<i;c++){const r=n?c:o[c];s[r]=J(e[r],t[r]),s[r]===e[r]&&a++}return r===i&&a===r?e:s}return t}function Y(e){if(!Q(e))return!1;const t=e.constructor;if(void 0===t)return!0;const n=t.prototype;return!!Q(n)&&!!n.hasOwnProperty("isPrototypeOf")}function Q(e){return"[object Object]"===Object.prototype.toString.call(e)}const X=ee(JSON.parse),Z=te(JSON.stringify);function ee(e){return t=>{"?"===t.substring(0,1)&&(t=t.substring(1));let n=function(e){for(var t,n,r={},o=e.split("&");t=o.shift();)void 0!==r[n=(t=t.split("=")).shift()]?r[n]=[].concat(r[n],s(t.shift())):r[n]=s(t.shift());return r}(t);for(let r in n){const t=n[r];if("string"==typeof t)try{n[r]=e(t)}catch(e){}}return n}}function te(e){return t=>{(t=o({},t))&&Object.keys(t).forEach(n=>{const r=t[n];if(void 0===r||void 0===r)delete t[n];else if(r&&"object"==typeof r&&null!==r)try{t[n]=e(r)}catch(e){}});const n=function(e){var t,n,r,o="";for(t in e)if(void 0!==(r=e[t]))if(Array.isArray(r))for(n=0;n<r.length;n++)o&&(o+="&"),o+=encodeURIComponent(t)+"="+encodeURIComponent(r[n]);else o&&(o+="&"),o+=encodeURIComponent(t)+"="+encodeURIComponent(r);return""+o}(t).toString();return n?"?"+n:""}}Object.defineProperty(e,"createBrowserHistory",{enumerable:!0,get:function(){return n.createBrowserHistory}}),Object.defineProperty(e,"createHashHistory",{enumerable:!0,get:function(){return n.createHashHistory}}),Object.defineProperty(e,"createMemoryHistory",{enumerable:!0,get:function(){return n.createMemoryHistory}}),e.Link=function(e){var t;let{to:n=".",search:s,hash:a,children:c,target:l,style:p={},replace:f,onClick:g,onMouseEnter:m,className:v="",getActiveProps:y=()=>({className:"active"}),getInactiveProps:b=()=>({}),activeOptions:w,preload:x,disabled:_,_ref:E}=e,k=i(e,u);const O=T(),C=N(),R=S(),L=P(),D=j(),I=A();x=null!=(t=x)?t:L.defaultLinkPreloadMaxAge;try{U(!1,"<Link /> should not be used for external URLs like: "+new URL(""+n).href)}catch(e){}const M=I({to:n,search:s,hash:a,from:{pathname:C.pathname}}),$=R.current.pathname===M.pathname,F=R.current.pathname.split("/"),H=M.pathname.split("/").every((e,t)=>e===F[t]),q=R.current.hash===M.hash,B=null!=w&&w.exact?$:H,z=null==w||!w.includeHash||q,V=B&&z,K=V?y():{},{style:W={},className:G=""}=K,J=i(K,d),Y=V?{}:b(),{style:Q={},className:X=""}=Y,Z=i(Y,h);return r.createElement("a",o({ref:E,href:_?void 0:M.href,onClick:e=>{_||(g&&g(e),function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)||e.defaultPrevented||l&&"_self"!==l||0!==e.button||(e.preventDefault(),D({to:n,search:s,hash:a,replace:f,from:{pathname:C.pathname}})))},onMouseEnter:e=>{m&&m(e),x&&x>0&&O({to:n,search:s,hash:a},{maxAge:x})},target:l,style:o({},p,W,Q),className:[v,G,X].filter(Boolean).join(" ")||void 0},_?{role:"link","aria-disabled":!0}:void 0,k,J,Z,{children:"function"==typeof c?c({isActive:V}):c}))},e.MatchRoute=function(e){let{children:t}=e,n=i(e,f);const r=F()(n);return"function"==typeof t?t(r):r?t:null},e.MatchesProvider=x,e.Navigate=function(e){let t=j();return b(()=>{t(e)},[t]),null},e.Outlet=I,e.Prompt=function(e){let{message:t,when:n,children:r}=e;return H(t,null==n||n),null!=r?r:null},e.ReactLocation=class extends w{constructor(e){var t,r;super(),this.isTransitioning=!1,this.history=(null==e?void 0:e.history)||(y?n.createBrowserHistory():n.createMemoryHistory()),this.stringifySearch=null!=(t=null==e?void 0:e.stringifySearch)?t:Z,this.parseSearch=null!=(r=null==e?void 0:e.parseSearch)?r:X,this.current=this.parseLocation(this.history.location),this.destroy=this.history.listen(e=>{this.current=this.parseLocation(e.location,this.current),this.notify()})}buildNext(e,t){var n,r,i,s;void 0===e&&(e="/"),void 0===t&&(t={});const a=o({},this.current,t.from),c=W(e,a.pathname,""+(null!=(n=t.to)?n:".")),l=null!=(r=t.__searchFilters)&&r.length?t.__searchFilters.reduce((e,t)=>t(e),a.search):a.search,u=!0===t.search?l:t.search?null!=(i=q(t.search,l))?i:{}:null!=(s=t.__searchFilters)&&s.length?l:{},d=J(a.search,u),h=this.stringifySearch(d);let p=!0===t.hash?a.hash:q(t.hash,a.hash);return p=p?"#"+p:"",{pathname:c,search:d,searchStr:h,hash:p,href:""+c+h+p,key:t.key}}navigate(e,t){this.current=e,this.navigateTimeout&&clearTimeout(this.navigateTimeout);let n="replace";return t||(n="push"),this.parseLocation(this.history.location).href===this.current.href&&!this.current.key&&(n="replace"),"replace"===n?this.history.replace({pathname:this.current.pathname,hash:this.current.hash,search:this.current.searchStr}):this.history.push({pathname:this.current.pathname,hash:this.current.hash,search:this.current.searchStr})}parseLocation(e,t){var n;const r=this.parseSearch(e.search);return{pathname:e.pathname,searchStr:e.search,search:J(null==t?void 0:t.search,r),hash:null!=(n=e.hash.split("#").reverse()[0])?n:"",href:""+e.pathname+e.search+e.hash,key:e.key}}},e.RouteMatch=k,e.Router=function(e){let{children:t,location:n,__experimental__snapshot:o}=e,s=i(e,a);const c=r.useRef(null);c.current||(c.current=new E({location:n,__experimental__snapshot:o,routes:s.routes}));const l=c.current,[u,d]=r.useReducer(()=>({}),{});return l.update(s),b(()=>l.subscribe(()=>{d()}),[]),b(()=>l.updateLocation(n.current).unsubscribe,[n.current.key]),r.createElement(g.Provider,{value:{location:n}},r.createElement(v.Provider,{value:{router:l}},r.createElement(_,null),r.createElement(x,{value:[l.rootMatch,...l.state.matches]},null!=t?t:r.createElement(I,null))))},e.RouterInstance=E,e.cleanPath=z,e.defaultParseSearch=X,e.defaultStringifySearch=Z,e.functionalUpdate=q,e.matchByPath=V,e.matchRoute=$,e.matchRoutes=R,e.parsePathname=K,e.parseSearchWith=ee,e.resolvePath=W,e.stringifySearchWith=te,e.useLoadRoute=T,e.useLocation=S,e.useMatch=N,e.useMatchRoute=F,e.useMatches=D,e.useNavigate=j,e.useParentMatches=function(){const e=P(),t=N(),n=e.state.matches;return n.slice(0,n.findIndex(e=>e.id===t.id)-1)},e.usePrompt=H,e.useResolvePath=M,e.useRouter=P,e.useSearch=function(){return S().current.search},Object.defineProperty(e,"__esModule",{value:!0})})}),Ec=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Sc="undefined"==typeof window||"Deno"in globalThis;function kc(){}function Oc(e){return"number"==typeof e&&e>=0&&e!==1/0}function Cc(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Pc(e,t){return"function"==typeof e?e(t):e}function Rc(e,t){return"function"==typeof e?e(t):e}function Lc(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:i,queryKey:s,stale:a}=e;if(s)if(r){if(t.queryHash!==Dc(s,t.options))return!1}else if(!jc(t.queryKey,s))return!1;if("all"!==n){const e=t.isActive();if("active"===n&&!e)return!1;if("inactive"===n&&e)return!1}return("boolean"!=typeof a||t.isStale()===a)&&((!o||o===t.state.fetchStatus)&&!(i&&!i(t)))}function Tc(e,t){const{exact:n,status:r,predicate:o,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(Nc(t.options.mutationKey)!==Nc(i))return!1}else if(!jc(t.options.mutationKey,i))return!1}return(!r||t.state.status===r)&&!(o&&!o(t))}function Dc(e,t){return(t?.queryKeyHashFn||Nc)(e)}function Nc(e){return JSON.stringify(e,(e,t)=>$c(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function jc(e,t){return e===t||typeof e==typeof t&&(!(!e||!t||"object"!=typeof e||"object"!=typeof t)&&Object.keys(t).every(n=>jc(e[n],t[n])))}function Ac(e,t){if(e===t)return e;const n=Mc(e)&&Mc(t);if(n||$c(e)&&$c(t)){const r=n?e:Object.keys(e),o=r.length,i=n?t:Object.keys(t),s=i.length,a=n?[]:{},c=new Set(r);let l=0;for(let u=0;u<s;u++){const r=n?u:i[u];(!n&&c.has(r)||n)&&void 0===e[r]&&void 0===t[r]?(a[r]=void 0,l++):(a[r]=Ac(e[r],t[r]),a[r]===e[r]&&void 0!==e[r]&&l++)}return o===s&&l===o?e:a}return t}function Ic(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function Mc(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function $c(e){if(!Fc(e))return!1;const t=e.constructor;if(void 0===t)return!0;const n=t.prototype;return!!Fc(n)&&(!!n.hasOwnProperty("isPrototypeOf")&&Object.getPrototypeOf(e)===Object.prototype)}function Fc(e){return"[object Object]"===Object.prototype.toString.call(e)}function Hc(e,t,n){return"function"==typeof n.structuralSharing?n.structuralSharing(e,t):!1!==n.structuralSharing?Ac(e,t):t}function Uc(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function qc(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Bc=Symbol();function zc(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:e.queryFn&&e.queryFn!==Bc?e.queryFn:()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`))}function Vc(e,t){return"function"==typeof e?e(...t):!!e}var Kc,Wc,Gc,Jc=e(i(),1),Yc=_c();function Qc(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Xc(e,t,n){Qc(e,t),t.set(e,n)}function Zc(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}function el(e,t,n){return e.set(Zc(e,t),n),n}function tl(e,t){return e.get(Zc(e,t))}var nl,rl,ol,il=new(Kc=new WeakMap,Wc=new WeakMap,Gc=new WeakMap,class extends Ec{constructor(){super(),Xc(this,Kc,void 0),Xc(this,Wc,void 0),Xc(this,Gc,void 0),el(Gc,this,e=>{if(!Sc&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}})}onSubscribe(){tl(Wc,this)||this.setEventListener(tl(Gc,this))}onUnsubscribe(){this.hasListeners()||(tl(Wc,this)?.call(this),el(Wc,this,void 0))}setEventListener(e){el(Gc,this,e),tl(Wc,this)?.call(this),el(Wc,this,e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()}))}setFocused(e){tl(Kc,this)!==e&&(el(Kc,this,e),this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return"boolean"==typeof tl(Kc,this)?tl(Kc,this):"hidden"!==globalThis.document?.visibilityState}}),sl=new(nl=new WeakMap,rl=new WeakMap,ol=new WeakMap,class extends Ec{constructor(){super(),Xc(this,nl,!0),Xc(this,rl,void 0),Xc(this,ol,void 0),el(ol,this,e=>{if(!Sc&&window.addEventListener){const t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}})}onSubscribe(){tl(rl,this)||this.setEventListener(tl(ol,this))}onUnsubscribe(){this.hasListeners()||(tl(rl,this)?.call(this),el(rl,this,void 0))}setEventListener(e){el(ol,this,e),tl(rl,this)?.call(this),el(rl,this,e(this.setOnline.bind(this)))}setOnline(e){tl(nl,this)!==e&&(el(nl,this,e),this.listeners.forEach(t=>{t(e)}))}isOnline(){return tl(nl,this)}});function al(){let e,t;const n=new Promise((n,r)=>{e=n,t=r});function r(e){Object.assign(n,e),delete n.resolve,delete n.reject}return n.status="pending",n.catch(()=>{}),n.resolve=t=>{r({status:"fulfilled",value:t}),e(t)},n.reject=e=>{r({status:"rejected",reason:e}),t(e)},n}function cl(e){return Math.min(1e3*2**e,3e4)}function ll(e){return"online"!==(e??"online")||sl.isOnline()}var ul=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function dl(e){return e instanceof ul}function hl(e){let t,n=!1,r=0,o=!1;const i=al(),s=()=>il.isFocused()&&("always"===e.networkMode||sl.isOnline())&&e.canRun(),a=()=>ll(e.networkMode)&&e.canRun(),c=n=>{o||(o=!0,e.onSuccess?.(n),t?.(),i.resolve(n))},l=n=>{o||(o=!0,e.onError?.(n),t?.(),i.reject(n))},u=()=>new Promise(n=>{t=e=>{(o||s())&&n(e)},e.onPause?.()}).then(()=>{t=void 0,o||e.onContinue?.()}),d=()=>{if(o)return;let t;const i=0===r?e.initialPromise:void 0;try{t=i??e.fn()}catch(a){t=Promise.reject(a)}Promise.resolve(t).then(c).catch(t=>{if(o)return;const i=e.retry??(Sc?0:3),a=e.retryDelay??cl,c="function"==typeof a?a(r,t):a,h=!0===i||"number"==typeof i&&r<i||"function"==typeof i&&i(r,t);var p;!n&&h?(r++,e.onFail?.(r,t),(p=c,new Promise(e=>{setTimeout(e,p)})).then(()=>s()?void 0:u()).then(()=>{n?l(t):d()})):l(t)})};return{promise:i,cancel:t=>{o||(l(new ul(t)),e.abort?.())},continue:()=>(t?.(),i),cancelRetry:()=>{n=!0},continueRetry:()=>{n=!1},canStart:a,start:()=>(a()?d():u().then(d),i)}}var pl=e=>setTimeout(e,0);var fl,gl,ml,vl,yl,bl,wl,xl,_l,El=function(){let e=[],t=0,n=e=>{e()},r=e=>{e()},o=pl;const i=r=>{t?e.push(r):o(()=>{n(r)})};return{batch:i=>{let s;t++;try{s=i()}finally{t--,t||(()=>{const t=e;e=[],t.length&&o(()=>{r(()=>{t.forEach(e=>{n(e)})})})})()}return s},batchCalls:e=>(...t)=>{i(()=>{e(...t)})},schedule:i,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{o=e}}}(),Sl=(fl=new WeakMap,class{constructor(){Xc(this,fl,void 0)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Oc(this.gcTime)&&el(fl,this,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Sc?1/0:3e5))}clearGcTimeout(){tl(fl,this)&&(clearTimeout(tl(fl,this)),el(fl,this,void 0))}});function kl(e,t){Qc(e,t),t.add(e)}var Ol,Cl=(gl=new WeakMap,ml=new WeakMap,vl=new WeakMap,yl=new WeakMap,bl=new WeakMap,wl=new WeakMap,xl=new WeakMap,_l=new WeakSet,class extends Sl{constructor(e){super(),kl(this,_l),Xc(this,gl,void 0),Xc(this,ml,void 0),Xc(this,vl,void 0),Xc(this,yl,void 0),Xc(this,bl,void 0),Xc(this,wl,void 0),Xc(this,xl,void 0),el(xl,this,!1),el(wl,this,e.defaultOptions),this.setOptions(e.options),this.observers=[],el(yl,this,e.client),el(vl,this,tl(yl,this).getQueryCache()),this.queryKey=e.queryKey,this.queryHash=e.queryHash,el(gl,this,function(e){const t="function"==typeof e.initialData?e.initialData():e.initialData,n=void 0!==t,r=n?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}(this.options)),this.state=e.state??tl(gl,this),this.scheduleGc()}get meta(){return this.options.meta}get promise(){return tl(bl,this)?.promise}setOptions(e){this.options={...tl(wl,this),...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||tl(vl,this).remove(this)}setData(e,t){const n=Hc(this.state.data,e,this.options);return Zc(_l,this,Pl).call(this,{data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){Zc(_l,this,Pl).call(this,{type:"setState",state:e,setStateOptions:t})}cancel(e){const t=tl(bl,this)?.promise;return tl(bl,this)?.cancel(e),t?t.then(kc).catch(kc):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(tl(gl,this))}isActive(){return this.observers.some(e=>!1!==Rc(e.options.enabled,this))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Bc||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>"static"===Pc(e.options.staleTime,this))}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):void 0===this.state.data||this.state.isInvalidated}isStaleByTime(e=0){return void 0===this.state.data||"static"!==e&&(!!this.state.isInvalidated||!Cc(this.state.dataUpdatedAt,e))}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),tl(bl,this)?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),tl(bl,this)?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),tl(vl,this).notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(tl(bl,this)&&(tl(xl,this)?tl(bl,this).cancel({revert:!0}):tl(bl,this).cancelRetry()),this.scheduleGc()),tl(vl,this).notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Zc(_l,this,Pl).call(this,{type:"invalidate"})}fetch(e,t){if("idle"!==this.state.fetchStatus)if(void 0!==this.state.data&&t?.cancelRefetch)this.cancel({silent:!0});else if(tl(bl,this))return tl(bl,this).continueRetry(),tl(bl,this).promise;if(e&&this.setOptions(e),!this.options.queryFn){const e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}const n=new AbortController,r=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(el(xl,this,!0),n.signal)})},o=()=>{const e=zc(this.options,t),n=(()=>{const e={client:tl(yl,this),queryKey:this.queryKey,meta:this.meta};return r(e),e})();return el(xl,this,!1),this.options.persister?this.options.persister(e,n,this):e(n)},i=(()=>{const e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:tl(yl,this),state:this.state,fetchFn:o};return r(e),e})();this.options.behavior?.onFetch(i,this),el(ml,this,this.state),"idle"!==this.state.fetchStatus&&this.state.fetchMeta===i.fetchOptions?.meta||Zc(_l,this,Pl).call(this,{type:"fetch",meta:i.fetchOptions?.meta});const s=e=>{dl(e)&&e.silent||Zc(_l,this,Pl).call(this,{type:"error",error:e}),dl(e)||(tl(vl,this).config.onError?.(e,this),tl(vl,this).config.onSettled?.(this.state.data,e,this)),this.scheduleGc()};return el(bl,this,hl({initialPromise:t?.initialPromise,fn:i.fetchFn,abort:n.abort.bind(n),onSuccess:e=>{if(void 0!==e){try{this.setData(e)}catch(t){return void s(t)}tl(vl,this).config.onSuccess?.(e,this),tl(vl,this).config.onSettled?.(e,this.state.error,this),this.scheduleGc()}else s(new Error(`${this.queryHash} data is undefined`))},onError:s,onFail:(e,t)=>{Zc(_l,this,Pl).call(this,{type:"failed",failureCount:e,error:t})},onPause:()=>{Zc(_l,this,Pl).call(this,{type:"pause"})},onContinue:()=>{Zc(_l,this,Pl).call(this,{type:"continue"})},retry:i.options.retry,retryDelay:i.options.retryDelay,networkMode:i.options.networkMode,canRun:()=>!0})),tl(bl,this).start()}});function Pl(e){this.state=(t=>{switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,...Rl(t.data,this.options),fetchMeta:e.meta??null};case"success":return el(ml,this,void 0),{...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const n=e.error;return dl(n)&&n.revert&&tl(ml,this)?{...tl(ml,this),fetchStatus:"idle"}:{...t,error:n,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:n,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),El.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),tl(vl,this).notify({query:this,type:"updated",action:e})})}function Rl(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:ll(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}var Ll,Tl,Dl,Nl,jl,Al,Il,Ml=(Ol=new WeakMap,class extends Ec{constructor(e={}){super(),Xc(this,Ol,void 0),this.config=e,el(Ol,this,new Map)}build(e,t,n){const r=t.queryKey,o=t.queryHash??Dc(r,t);let i=this.get(o);return i||(i=new Cl({client:e,queryKey:r,queryHash:o,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(i)),i}add(e){tl(Ol,this).has(e.queryHash)||(tl(Ol,this).set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=tl(Ol,this).get(e.queryHash);t&&(e.destroy(),t===e&&tl(Ol,this).delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){El.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return tl(Ol,this).get(e)}getAll(){return[...tl(Ol,this).values()]}find(e){const t={exact:!0,...e};return this.getAll().find(e=>Lc(t,e))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(t=>Lc(e,t)):t}notify(e){El.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){El.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){El.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}}),$l=(Ll=new WeakMap,Tl=new WeakMap,Dl=new WeakMap,Nl=new WeakSet,class extends Sl{constructor(e){super(),kl(this,Nl),Xc(this,Ll,void 0),Xc(this,Tl,void 0),Xc(this,Dl,void 0),this.mutationId=e.mutationId,el(Tl,this,e.mutationCache),el(Ll,this,[]),this.state=e.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0},this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){tl(Ll,this).includes(e)||(tl(Ll,this).push(e),this.clearGcTimeout(),tl(Tl,this).notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){el(Ll,this,tl(Ll,this).filter(t=>t!==e)),this.scheduleGc(),tl(Tl,this).notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){tl(Ll,this).length||("pending"===this.state.status?this.scheduleGc():tl(Tl,this).remove(this))}continue(){return tl(Dl,this)?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{Zc(Nl,this,Fl).call(this,{type:"continue"})};el(Dl,this,hl({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(e,t)=>{Zc(Nl,this,Fl).call(this,{type:"failed",failureCount:e,error:t})},onPause:()=>{Zc(Nl,this,Fl).call(this,{type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>tl(Tl,this).canRun(this)}));const n="pending"===this.state.status,r=!tl(Dl,this).canStart();try{if(n)t();else{Zc(Nl,this,Fl).call(this,{type:"pending",variables:e,isPaused:r}),await(tl(Tl,this).config.onMutate?.(e,this));const t=await(this.options.onMutate?.(e));t!==this.state.context&&Zc(Nl,this,Fl).call(this,{type:"pending",context:t,variables:e,isPaused:r})}const o=await tl(Dl,this).start();return await(tl(Tl,this).config.onSuccess?.(o,e,this.state.context,this)),await(this.options.onSuccess?.(o,e,this.state.context)),await(tl(Tl,this).config.onSettled?.(o,null,this.state.variables,this.state.context,this)),await(this.options.onSettled?.(o,null,e,this.state.context)),Zc(Nl,this,Fl).call(this,{type:"success",data:o}),o}catch(o){try{throw await(tl(Tl,this).config.onError?.(o,e,this.state.context,this)),await(this.options.onError?.(o,e,this.state.context)),await(tl(Tl,this).config.onSettled?.(void 0,o,this.state.variables,this.state.context,this)),await(this.options.onSettled?.(void 0,o,e,this.state.context)),o}finally{Zc(Nl,this,Fl).call(this,{type:"error",error:o})}}finally{tl(Tl,this).runNext(this)}}});function Fl(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"pending":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}})(this.state),El.batch(()=>{tl(Ll,this).forEach(t=>{t.onMutationUpdate(e)}),tl(Tl,this).notify({mutation:this,type:"updated",action:e})})}function Hl(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Ul,ql,Bl,zl,Vl,Kl,Wl,Gl,Jl=(jl=new WeakMap,Al=new WeakMap,Il=new WeakMap,class extends Ec{constructor(e={}){super(),Xc(this,jl,void 0),Xc(this,Al,void 0),Xc(this,Il,void 0),this.config=e,el(jl,this,new Set),el(Al,this,new Map),el(Il,this,0)}build(e,t,n){var r;const o=new $l({mutationCache:this,mutationId:el(Il,this,(r=tl(Il,this),++r)),options:e.defaultMutationOptions(t),state:n});return this.add(o),o}add(e){tl(jl,this).add(e);const t=Yl(e);if("string"==typeof t){const n=tl(Al,this).get(t);n?n.push(e):tl(Al,this).set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(tl(jl,this).delete(e)){const t=Yl(e);if("string"==typeof t){const n=tl(Al,this).get(t);if(n)if(n.length>1){const t=n.indexOf(e);-1!==t&&n.splice(t,1)}else n[0]===e&&tl(Al,this).delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=Yl(e);if("string"==typeof t){const n=tl(Al,this).get(t)?.find(e=>"pending"===e.state.status);return!n||n===e}return!0}runNext(e){const t=Yl(e);return"string"==typeof t?(tl(Al,this).get(t)?.find(t=>t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){El.batch(()=>{tl(jl,this).forEach(e=>{this.notify({type:"removed",mutation:e})}),tl(jl,this).clear(),tl(Al,this).clear()})}getAll(){return Array.from(tl(jl,this))}find(e){const t={exact:!0,...e};return this.getAll().find(e=>Tc(t,e))}findAll(e={}){return this.getAll().filter(t=>Tc(e,t))}notify(e){El.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(e=>e.state.isPaused);return El.batch(()=>Promise.all(e.map(e=>e.continue().catch(kc))))}});function Yl(e){return e.options.scope?.id}function Ql(e){return{onFetch:(t,n)=>{const r=t.options,o=t.fetchOptions?.meta?.fetchMore?.direction,i=t.state.data?.pages||[],s=t.state.data?.pageParams||[];let a={pages:[],pageParams:[]},c=0;const l=async()=>{let n=!1;const l=zc(t.options,t.fetchOptions),u=async(e,r,o)=>{if(n)return Promise.reject();if(null==r&&e.pages.length)return Promise.resolve(e);const i=await l((()=>{const e={client:t.client,queryKey:t.queryKey,pageParam:r,direction:o?"backward":"forward",meta:t.options.meta};var i;return i=e,Object.defineProperty(i,"signal",{enumerable:!0,get:()=>(t.signal.aborted?n=!0:t.signal.addEventListener("abort",()=>{n=!0}),t.signal)}),e})()),{maxPages:s}=t.options,a=o?qc:Uc;return{pages:a(e.pages,i,s),pageParams:a(e.pageParams,r,s)}};if(o&&i.length){const e="backward"===o,t=e?Zl:Xl,n={pages:i,pageParams:s};a=await u(n,t(r,n),e)}else{const t=e??i.length;do{const e=0===c?s[0]??r.initialPageParam:Xl(r,a);if(c>0&&null==e)break;a=await u(a,e),c++}while(c<t)}return a};t.options.persister?t.fetchFn=()=>t.options.persister?.(l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=l}}}function Xl(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function Zl(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var eu=(Ul=new WeakMap,ql=new WeakMap,Bl=new WeakMap,zl=new WeakMap,Vl=new WeakMap,Kl=new WeakMap,Wl=new WeakMap,Gl=new WeakMap,class{constructor(e={}){Xc(this,Ul,void 0),Xc(this,ql,void 0),Xc(this,Bl,void 0),Xc(this,zl,void 0),Xc(this,Vl,void 0),Xc(this,Kl,void 0),Xc(this,Wl,void 0),Xc(this,Gl,void 0),el(Ul,this,e.queryCache||new Ml),el(ql,this,e.mutationCache||new Jl),el(Bl,this,e.defaultOptions||{}),el(zl,this,new Map),el(Vl,this,new Map),el(Kl,this,0)}mount(){var e;el(Kl,this,(e=tl(Kl,this),++e)),1===tl(Kl,this)&&(el(Wl,this,il.subscribe(async e=>{e&&(await this.resumePausedMutations(),tl(Ul,this).onFocus())})),el(Gl,this,sl.subscribe(async e=>{e&&(await this.resumePausedMutations(),tl(Ul,this).onOnline())})))}unmount(){var e;el(Kl,this,(e=tl(Kl,this),--e)),0===tl(Kl,this)&&(tl(Wl,this)?.call(this),el(Wl,this,void 0),tl(Gl,this)?.call(this),el(Gl,this,void 0))}isFetching(e){return tl(Ul,this).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return tl(ql,this).findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return tl(Ul,this).get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=tl(Ul,this).build(this,t),r=n.state.data;return void 0===r?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Pc(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return tl(Ul,this).findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),o=tl(Ul,this).get(r.queryHash)?.state.data,i=function(e,t){return"function"==typeof e?e(t):e}(t,o);if(void 0!==i)return tl(Ul,this).build(this,r).setData(i,{...n,manual:!0})}setQueriesData(e,t,n){return El.batch(()=>tl(Ul,this).findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return tl(Ul,this).get(t.queryHash)?.state}removeQueries(e){const t=tl(Ul,this);El.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){const n=tl(Ul,this);return El.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=El.batch(()=>tl(Ul,this).findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(kc).catch(kc)}invalidateQueries(e,t={}){return El.batch(()=>(tl(Ul,this).findAll(e).forEach(e=>{e.invalidate()}),"none"===e?.refetchType?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=El.batch(()=>tl(Ul,this).findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(kc)),"paused"===e.state.fetchStatus?Promise.resolve():t}));return Promise.all(r).then(kc)}fetchQuery(e){const t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);const n=tl(Ul,this).build(this,t);return n.isStaleByTime(Pc(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(kc).catch(kc)}fetchInfiniteQuery(e){return e.behavior=Ql(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(kc).catch(kc)}ensureInfiniteQueryData(e){return e.behavior=Ql(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return sl.isOnline()?tl(ql,this).resumePausedMutations():Promise.resolve()}getQueryCache(){return tl(Ul,this)}getMutationCache(){return tl(ql,this)}getDefaultOptions(){return tl(Bl,this)}setDefaultOptions(e){el(Bl,this,e)}setQueryDefaults(e,t){tl(zl,this).set(Nc(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...tl(zl,this).values()],n={};return t.forEach(t=>{jc(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){tl(Vl,this).set(Nc(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...tl(Vl,this).values()],n={};return t.forEach(t=>{jc(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...tl(Bl,this).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Dc(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.throwOnError&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===Bc&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...tl(Bl,this).mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){tl(Ul,this).clear(),tl(ql,this).clear()}}),tu=o(e=>{var t=s(),n=Symbol.for("react.element"),r=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,i=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,r){var s,c={},l=null,u=null;for(s in void 0!==r&&(l=""+r),void 0!==t.key&&(l=""+t.key),void 0!==t.ref&&(u=t.ref),t)o.call(t,s)&&!a.hasOwnProperty(s)&&(c[s]=t[s]);if(e&&e.defaultProps)for(s in t=e.defaultProps)void 0===c[s]&&(c[s]=t[s]);return{$$typeof:n,type:e,key:l,ref:u,props:c,_owner:i.current}}e.Fragment=r,e.jsx=c,e.jsxs=c}),nu=o((e,t)=>{t.exports=tu()}),ru=nu(),ou=zr.createContext(void 0),iu=e=>{const t=zr.useContext(ou);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},su=({client:e,children:t})=>(zr.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,ru.jsx)(ou.Provider,{value:e,children:t})),au=(0,zr.createContext)(null),cu={didCatch:!1,error:null},lu=class extends zr.Component{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=cu}static getDerivedStateFromError(e){return{didCatch:!0,error:e}}resetErrorBoundary(){const{error:e}=this.state;if(null!==e){for(var t,n,r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];null===(t=(n=this.props).onReset)||void 0===t||t.call(n,{args:o,reason:"imperative-api"}),this.setState(cu)}}componentDidCatch(e,t){var n,r;null===(n=(r=this.props).onError)||void 0===n||n.call(r,e,t)}componentDidUpdate(e,t){const{didCatch:n}=this.state,{resetKeys:r}=this.props;var o,i;n&&null!==t.error&&function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.length!==t.length||e.some((e,n)=>!Object.is(e,t[n]))}(e.resetKeys,r)&&(null===(o=(i=this.props).onReset)||void 0===o||o.call(i,{next:r,prev:e.resetKeys,reason:"keys"}),this.setState(cu))}render(){const{children:e,fallbackRender:t,FallbackComponent:n,fallback:r}=this.props,{didCatch:o,error:i}=this.state;let s=e;if(o){const e={error:i,resetErrorBoundary:this.resetErrorBoundary};if("function"==typeof t)s=t(e);else if(n)s=(0,zr.createElement)(n,e);else{if(void 0===r)throw i;s=r}}return(0,zr.createElement)(au.Provider,{value:{didCatch:o,error:i,resetErrorBoundary:this.resetErrorBoundary}},s)}};var uu=function(e){return e.LOCAL_CONTENT="local-content",e.LOCAL_CONTENT_GOOGLE_MAPS="local-content-google-maps",e.LOCAL_DEMOGRAPHICS="local-demographics",e.NEIGHBORHOOD_HERO="neighborhood-hero",e.NEIGHBORHOOD_MAP="neighborhood-map",e.NEIGHBORHOOD_CHARACTERISTICS="neighborhood-characteristics",e.NEIGHBORHOOD_HIGHLIGHTS="neighborhood-highlights",e.NEIGHBORHOOD_DEMOGRAPHICS="neighborhood-demographics",e.NEIGHBORHOOD_PROPERTY_VALUE_DRIVERS="neighborhood-property-value-drivers",e.NEIGHBORHOOD_MATCH="neighborhood-match",e.NEIGHBORHOOD_MARKET_TRENDS="neighborhood-market-trends",e.NEIGHBORHOOD_SCHOOLS="neighborhood-schools",e.LEAD_CAPTURE="lead-capture",e.NEIGHBORHOOD_SHOWCASE="neighborhood-showcase",e.NEIGHBORHOOD_FEATURED="neighborhood-featured",e}({}),du={},hu=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){const e=document.getElementsByTagName("link"),i=document.querySelector("meta[property=csp-nonce]"),s=i?.nonce||i?.getAttribute("nonce");o=t.map(t=>{if((t=function(e){return"/sdks-app/v1/"+e}(t))in du)return;du[t]=!0;const r=t.endsWith(".css"),o=r?'[rel="stylesheet"]':"";if(n)for(let n=e.length-1;n>=0;n--){const o=e[n];if(o.href===t&&(!r||"stylesheet"===o.rel))return}else if(document.querySelector(`link[href="${t}"]${o}`))return;const i=document.createElement("link");return i.rel=r?"stylesheet":"modulepreload",r||(i.as="script"),i.crossOrigin="",i.href=t,s&&i.setAttribute("nonce",s),document.head.appendChild(i),r?new Promise((e,n)=>{i.addEventListener("load",e),i.addEventListener("error",()=>n(new Error(`Unable to preload CSS for ${t}`)))}):void 0}),r=Promise.all(o.map(e=>Promise.resolve(e).then(e=>({status:"fulfilled",value:e}),e=>({status:"rejected",reason:e}))))}var o;function i(e){const t=new Event("vite:preloadError",{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(const e of t||[])"rejected"===e.status&&i(e.reason);return e().catch(i)})},pu=new Yc.ReactLocation,fu=zr.lazy(()=>hu(()=>import("./LocalContent-Bgf0CDoA.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32]))),gu=zr.lazy(()=>hu(()=>import("./LocalDemographics-BuWGiqEi.js"),__vite__mapDeps([33,1,2,3,10,6,11,34,35,36,37,27,38,39,30,40]))),mu=zr.lazy(()=>hu(()=>import("./NeighborhoodHero-DrBKD27P.js"),__vite__mapDeps([41,1,2,3,12,6,37,38,28,42,43,32]))),vu=zr.lazy(()=>hu(()=>import("./NeighborhoodMap-ChZpBdAe.js"),__vite__mapDeps([44,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,37,26,27,28,42,31,32]))),yu=zr.lazy(()=>hu(()=>import("./NeighborhoodCharacteristics-w5WKGZ2K.js"),__vite__mapDeps([45,1,2,3,37,25,27,38,46,21,6,23,5,7,8,19,20,11,39,28,42,43,29,31,32]))),bu=zr.lazy(()=>hu(()=>import("./NeighborhoodHighlights-CwoTHUIb.js"),__vite__mapDeps([47,1,2,3,23,5,6,7,8,19,20,11,37,48,38,39,28,42,29,32]))),wu=zr.lazy(()=>hu(()=>import("./NeighborhoodDemographics-BZrhdeYZ.js"),__vite__mapDeps([49,1,2,3,20,6,21,11,34,35,37,27,48,38,39,28,42,30,31,40]))),xu=zr.lazy(()=>hu(()=>import("./NeighborhoodPropertyValueDrivers-CQoo-TFM.js"),__vite__mapDeps([50,1,2,3,5,6,9,19,37,48,38,39,28,42,40]))),_u=zr.lazy(()=>hu(()=>import("./NeighborhoodMatch-BLDNZBRX.js"),__vite__mapDeps([51,1,2,3,37,26,27,52,48,38,46,21,6,23,5,7,8,19,20,11,25,39,28,42,31,32]))),Eu=zr.lazy(()=>hu(()=>import("./NeighborhoodMarketTrends-DpUA8_BA.js"),__vite__mapDeps([53,1,2,3,21,6,54,13,36,37,27,48,38,39,28,42,40]))),Su=zr.lazy(()=>hu(()=>import("./NeighborhoodSchools-DMKDCbUv.js"),__vite__mapDeps([55,1,2,3,7,6,21,11,37,25,26,27,48,38,39,28,42,17,30,56,32]))),ku=zr.lazy(()=>hu(()=>import("./NeighborhoodShowcase-CB3_rfxv.js"),__vite__mapDeps([57,1,2,3,24,6,58,37,59,52,38,28,40]))),Ou=zr.lazy(()=>hu(()=>import("./NeighborhoodFeatured-DfjxzlxY.js"),__vite__mapDeps([60,1,2,3,58,37,59,52,38,28,40]))),Cu=zr.lazy(()=>hu(()=>import("./LeadCapture-e2fi_VKJ.js"),__vite__mapDeps([61,1,2,3,21,6,22,54,12,35,58,37,26,27,38,28,42,30,31,32]))),Pu=({children:e})=>(0,ru.jsx)(Yc.Router,{location:pu,routes:[{path:`/sdks-app/v1/${uu.LOCAL_CONTENT}`,element:(0,ru.jsx)(fu,{})},{path:`/sdks-app/v1/${uu.LOCAL_DEMOGRAPHICS}`,element:(0,ru.jsx)(gu,{})},{path:`/sdks-app/v1/local-${uu.NEIGHBORHOOD_MAP}`,element:(0,ru.jsx)(vu,{})},{path:`/sdks-app/v1/local-${uu.NEIGHBORHOOD_HERO}`,element:(0,ru.jsx)(mu,{})},{path:`/sdks-app/v1/local-${uu.NEIGHBORHOOD_CHARACTERISTICS}`,element:(0,ru.jsx)(yu,{})},{path:`/sdks-app/v1/local-${uu.NEIGHBORHOOD_HIGHLIGHTS}`,element:(0,ru.jsx)(bu,{})},{path:`/sdks-app/v1/local-${uu.NEIGHBORHOOD_DEMOGRAPHICS}`,element:(0,ru.jsx)(wu,{})},{path:`/sdks-app/v1/local-${uu.NEIGHBORHOOD_PROPERTY_VALUE_DRIVERS}`,element:(0,ru.jsx)(xu,{})},{path:`/sdks-app/v1/local-${uu.NEIGHBORHOOD_MATCH}`,element:(0,ru.jsx)(_u,{})},{path:"/sdks-app/v1/demographics",element:(0,ru.jsx)(gu,{})},{path:`/sdks-app/v1/${uu.NEIGHBORHOOD_MAP}`,element:(0,ru.jsx)(vu,{})},{path:`/sdks-app/v1/${uu.NEIGHBORHOOD_HERO}`,element:(0,ru.jsx)(mu,{})},{path:`/sdks-app/v1/${uu.NEIGHBORHOOD_CHARACTERISTICS}`,element:(0,ru.jsx)(yu,{})},{path:`/sdks-app/v1/${uu.NEIGHBORHOOD_HIGHLIGHTS}`,element:(0,ru.jsx)(bu,{})},{path:`/sdks-app/v1/${uu.NEIGHBORHOOD_DEMOGRAPHICS}`,element:(0,ru.jsx)(wu,{})},{path:`/sdks-app/v1/${uu.NEIGHBORHOOD_PROPERTY_VALUE_DRIVERS}`,element:(0,ru.jsx)(xu,{})},{path:`/sdks-app/v1/${uu.NEIGHBORHOOD_MATCH}`,element:(0,ru.jsx)(_u,{})},{path:`/sdks-app/v1/${uu.NEIGHBORHOOD_MARKET_TRENDS}`,element:(0,ru.jsx)(Eu,{})},{path:`/sdks-app/v1/${uu.NEIGHBORHOOD_SCHOOLS}`,element:(0,ru.jsx)(Su,{})},{path:`/sdks-app/v1/${uu.NEIGHBORHOOD_SHOWCASE}`,element:(0,ru.jsx)(ku,{})},{path:`/sdks-app/v1/${uu.NEIGHBORHOOD_FEATURED}`,element:(0,ru.jsx)(Ou,{})},{path:`/sdks-app/v1/${uu.LEAD_CAPTURE}`,element:(0,ru.jsx)(Cu,{})}],children:e}),Ru={"--ll-base-unit":"var(--ll-base-unit)","--ll-color-primary":"var(--ll-color-primary)","--ll-color-primary-variant1":"var(--ll-color-primary-variant1)","--ll-color-background":"var(--ll-color-background)","--ll-color-surface":"var(--ll-color-surface)","--ll-color-surface-variant1":"var(--ll-color-surface-variant1)","--ll-color-surface-variant2":"var(--ll-color-surface-variant2)","--ll-color-on-primary":"var(--ll-color-on-primary)","--ll-color-on-primary-variant1":"var(--ll-color-on-primary-variant1)","--ll-color-on-background":"var(--ll-color-on-background)","--ll-color-on-background-variant1":"var(--ll-color-on-background-variant1)","--ll-color-on-surface":"var(--ll-color-on-surface)","--ll-color-on-surface-variant1":"var(--ll-color-on-surface-variant1)","--ll-color-placeholder":"var(--ll-color-placeholder)","--ll-color-disabled":"var(--ll-color-disabled)","--ll-color-border":"var(--ll-color-border)","--ll-color-link":"var(--ll-color-link)","--ll-sdk-title-color":"var(--ll-sdk-title-color)","--ll-color-error":"var(--ll-color-error)","--ll-border-radius-base-unit":"var(--ll-border-radius-base-unit)","--ll-border-radius-small":"var(--ll-border-radius-small)","--ll-border-radius-medium":"var(--ll-border-radius-medium)","--ll-border-radius-large":"var(--ll-border-radius-large)","--ll-shadow-small":"var(--ll-shadow-small)","--ll-shadow-medium":"var(--ll-shadow-medium)","--ll-spacing-base-unit":"var(--ll-spacing-base-unit)","--ll-spacing-auto":"var(--ll-spacing-auto)","--ll-spacing-xx-small":"var(--ll-spacing-xx-small)","--ll-spacing-x-small":"var(--ll-spacing-x-small)","--ll-spacing-small":"var(--ll-spacing-small)","--ll-spacing-medium":"var(--ll-spacing-medium)","--ll-spacing-large":"var(--ll-spacing-large)","--ll-spacing-x-large":"var(--ll-spacing-x-large)","--ll-spacing-xx-large":"var(--ll-spacing-xx-large)","--ll-spacing-xxx-large":"var(--ll-spacing-xxx-large)","--ll-font-family":"var(--ll-font-family)","--ll-font-family-mono":"var(--ll-font-family-mono)","--ll-font-size-base":"var(--ll-font-size-base)","--ll-font-size-h1":"var(--ll-font-size-h1)","--ll-font-size-h2":"var(--ll-font-size-h2)","--ll-font-size-h3":"var(--ll-font-size-h3)","--ll-font-size-h4":"var(--ll-font-size-h4)","--ll-font-size-h5":"var(--ll-font-size-h5)","--ll-font-size-h6":"var(--ll-font-size-h6)","--ll-font-size-p":"var(--ll-font-size-p)","--ll-font-size-caption-1":"var(--ll-font-size-caption-1)","--ll-font-size-caption-2":"var(--ll-font-size-caption-2)","--ll-font-weight-light":"var(--ll-font-weight-light)","--ll-font-weight-normal":"var(--ll-font-weight-normal)","--ll-font-weight-medium":"var(--ll-font-weight-medium)","--ll-font-weight-semibold":"var(--ll-font-weight-semibold)","--ll-font-weight-bold":"var(--ll-font-weight-bold)"},Lu=r({blueColors:()=>Nu,neutralColors:()=>Du,primaryColors:()=>Tu}),Tu={colorPrimary100:"#FFFFFF",colorPrimary99:"#04162d",colorPrimary95:"#C8F9FF",colorPrimary90:"#87F2FF",colorPrimary80:"#4ED8E9",colorPrimary70:"#21BCCC",colorPrimary60:"#00A0AF",colorPrimary50:"#008491",colorPrimary40:"#006974",colorPrimary30:"#004F57",colorPrimary20:"#00363C",colorPrimary10:"#001F23",colorPrimary0:"#000000"},Du={colorNeutral100:"#FFFFFF",colorNeutral99:"#FBFDFD",colorNeutral95:"#EFF1F1",colorNeutral90:"#E0E3E3",colorNeutral80:"#C4C7C7",colorNeutral70:"#A9ACAC",colorNeutral60:"#8E9191",colorNeutral50:"#747878",colorNeutral40:"#5C5F5F",colorNeutral30:"#444747",colorNeutral20:"#2D3131",colorNeutral10:"#191C1D",colorNeutral0:"#000000"},Nu={colorBlue70:"#0056D3"},ju=r({transitions:()=>Au}),Au={default:{ease:"easeInOut",duration:.15},defaultSlow:{ease:"easeInOut",duration:.4},spring:{type:"spring",duration:.4,bounce:.3}},Iu=r({screenSizes:()=>Mu}),Mu={mobileS:320,mobileM:375,mobileL:425,tablet:768,laptopS:1024,laptopL:1440,desktop:2560},$u={colors:Lu,...ju,...Iu},Fu=({SVGElement:e,fill:t=`${Ru["--ll-color-on-background"]}`,className:n,height:r=24,width:o=24})=>(0,ru.jsx)("div",{className:`${n} [&>svg]:fill-inherit`,style:{height:`${r}px`,width:`${o}px`,fill:t},children:(0,ru.jsx)(e,{})}),Hu=({children:e,variant:t="p",align:n,color:r="--ll-color-on-background",lineClamp:o,noMargin:i,lineHeight:s,weight:a="normal",family:c="sans-serif",className:l,textTransform:u="none",letterSpacing:d,fontVariant:h="initial"})=>(0,ru.jsx)(`${["caption1","caption2","p"].includes(t)?"p":t}`,{style:{color:`${r in Ru?Ru[r]:r}`,fontVariant:`${h}`,lineHeight:s||"1.45",letterSpacing:`${d}`,fontWeight:Ru[a]},className:`${l} \n m-0 mb-2\n data-[nomargin=true]:mb-0\n data-[align=left]:text-left\n data-[align=center]:text-center\n data-[align=right]:text-right\n data-[variant=h1]:text-ll-font-size-h1\n data-[variant=h2]:text-ll-font-size-h2\n data-[variant=h3]:text-ll-font-size-h3\n data-[variant=h4]:text-ll-font-size-h4\n data-[variant=h5]:text-ll-font-size-h5\n data-[variant=h6]:text-ll-font-size-h6\n data-[variant=p]:text-ll-font-size-p\n data-[variant=caption1]:text-ll-font-size-caption-1\n data-[variant=caption2]:text-ll-font-size-caption-2\n data-[texttransform=capitalize]:capitalize\n data-[texttransform=uppercase]:uppercase\n data-[texttransform=lowercase]:lowercase\n data-[texttransform=none]:normal-case\n data-[family=sans-serif]:font-sans\n data-[family=mono]:font-mono\n\n data-[lineclamp=none]:line-clamp-none\n data-[lineclamp=none]:whitespace-nowrap\n data-[lineclamp="1"]:line-clamp-1\n data-[lineclamp="2"]:line-clamp-2\n data-[lineclamp="3"]:line-clamp-3\n data-[lineclamp="4"]:line-clamp-4\n data-[lineclamp="5"]:line-clamp-5\n data-[lineclamp="6"]:line-clamp-g\n`,"data-align":n,"data-variant":t,"data-texttransform":u,"data-family":c,"data-nomargin":i,"data-lineclamp":o,children:e});function Uu(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function qu(...e){return t=>{let n=!1;const r=e.map(e=>{const r=Uu(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){const n=r[t];"function"==typeof n?n():Uu(e[t],null)}}}}function Bu(...e){return zr.useCallback(qu(...e),e)}var zu=Symbol.for("react.lazy"),Vu=zr[" use ".trim().toString()];function Ku(e){return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===zu&&"_payload"in e&&("object"==typeof(t=e._payload)&&null!==t&&"then"in t);var t}function Wu(e){const t=zr.forwardRef((e,t)=>{let{children:n,...r}=e;if(Ku(n)&&"function"==typeof Vu&&(n=Vu(n._payload)),zr.isValidElement(n)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}(n),o=function(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{const t=i(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props);return n.type!==zr.Fragment&&(o.ref=t?qu(t,e):e),zr.cloneElement(n,o)}return zr.Children.count(n)>1?zr.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Gu=Symbol("radix.slottable");function Ju(e){return zr.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===Gu}var Yu=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{const n=function(e){const t=Wu(e),n=zr.forwardRef((e,n)=>{let{children:r,...o}=e;Ku(r)&&"function"==typeof Vu&&(r=Vu(r._payload));const i=zr.Children.toArray(r),s=i.find(Ju);if(s){const e=s.props.children,r=i.map(t=>t===s?zr.Children.count(e)>1?zr.Children.only(null):zr.isValidElement(e)?e.props.children:null:t);return(0,ru.jsx)(t,{...o,ref:n,children:zr.isValidElement(e)?zr.cloneElement(e,void 0,r):null})}return(0,ru.jsx)(t,{...o,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}(`Primitive.${t}`),r=zr.forwardRef((e,r)=>{const{asChild:o,...i}=e,s=o?n:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,ru.jsx)(s,{...i,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Qu=zr.forwardRef((e,t)=>(0,ru.jsx)(Yu.label,{...e,ref:t,onMouseDown:t=>{t.target.closest("button, input, select, textarea")||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));Qu.displayName="Label";var Xu=Qu,Zu=e=>(0,ru.jsx)(Xu,{className:"\n text-ll-font-size-p text-ll-on-background font-sans\n",...e}),ed=({size:e="medium",image:t,color:n="default"})=>t?(0,ru.jsx)("img",{src:"/sdks-app/v1/assets/spinner-qYD5cm1L.gif",alt:"Loading animation",width:90,height:90,className:"h-[90px] w-[90px] max-h-auto"}):(0,ru.jsx)("div",{className:"\n border-solid \n border-ll-on-surface-variant1\n border-b-[transparent]\n rounded-[50%]\n inline-block\n border-box\n animate-spin\n\n data-[color=white]:border-white\n data-[color=white]:border-b-[transparent]\n\n data-[size=small]:h-4\n data-[size=small]:w-4\n data-[size=small]:border-2\n\n data-[size=medium]:h-6\n data-[size=medium]:w-6\n data-[size=medium]:border-4\n\n data-[size=large]:h-8\n data-[size=large]:w-8\n data-[size=large]:border-[6px]\n","data-size":e,"data-color":n}),td=zr.forwardRef(({children:e,disabled:t=!1,onClick:n,variant:r="contained",startAdornment:o,size:i="medium",type:s="button",isLoading:a,props:c},l)=>(0,ru.jsx)("button",{"data-variant":r,"data-size":i,onClick:e=>{t||n&&(a||n(e))},disabled:t||a,className:"\n group\n font-normal rounded inline-flex items-center justify-center cursor-pointer\n bg-transparent border-0 box-border h-10 py-0 px-3\n text-ll-font-size-p\n\n disabled:cursor-default\n\n data-[size=small]:h-8\n data-[size=small]:px-2\n data-[size=small]:text-ll-font-size-caption-1\n\n data-[size=large]:h-12\n data-[size=large]:px-4\n\n data-[variant=contained]:bg-ll-primary\n data-[variant=contained]:text-ll-on-primary\n data-[variant=contained]:border\n data-[variant=contained]:border-solid\n data-[variant=contained]:border-transparent\n data-[variant=contained]:hover:bg-ll-primary-variant1\n data-[variant=contained]:disabled:bg-ll-disabled\n \n\n data-[variant=outlined]:bg-ll-background\n data-[variant=outlined]:text-ll-primary\n data-[variant=outlined]:border\n data-[variant=outlined]:border-solid\n data-[variant=outlined]:border-ll-primary\n data-[variant=outlined]:hover:bg-ll-surface-variant1\n data-[variant=outlined]:disabled:bg-ll-disabled\n data-[variant=outlined]:disabled:text-ll-on-primary\n data-[variant=outlined]:disabled:border-ll-on-background\n\n data-[variant=text]:text-ll-on-background\n",type:s,ref:l,...c,children:a?(0,ru.jsx)(ed,{}):(0,ru.jsxs)(ru.Fragment,{children:[o&&(0,ru.jsx)("div",{className:"\n flex items-center mr-2 ml-1\n [&>svg]:fill-current [&>svg]:h-5 [&>svg]:w-5\n\n group-data-[size=small]:[&>svg]:h-3\n group-data-[size=small]:[&>svg]:w-3\n\n group-data-[size=large]:[&>svg]:h-6\n group-data-[size=large]:[&>svg]:w-6\n",children:o}),e]})}));td.displayName="Button";var nd=e=>zr.createElement("svg",{viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",...e},zr.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 0C4.47 0 0 4.47 0 10C0 15.53 4.47 20 10 20C15.53 20 20 15.53 20 10C20 4.47 15.53 0 10 0ZM10 18C5.59 18 2 14.41 2 10C2 5.59 5.59 2 10 2C14.41 2 18 5.59 18 10C18 14.41 14.41 18 10 18ZM10 8.59L13.59 5L15 6.41L11.41 10L15 13.59L13.59 15L10 11.41L6.41 15L5 13.59L8.59 10L5 6.41L6.41 5L10 8.59Z"}));function rd(e,[t,n]){return Math.min(n,Math.max(t,e))}function od(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function id(e,t=[]){let n=[];const r=()=>{const t=n.map(e=>zr.createContext(e));return function(n){const r=n?.[e]||t;return zr.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){const o=zr.createContext(r),i=n.length;n=[...n,r];const s=t=>{const{scope:n,children:r,...s}=t,a=n?.[e]?.[i]||o,c=zr.useMemo(()=>s,Object.values(s));return(0,ru.jsx)(a.Provider,{value:c,children:r})};return s.displayName=t+"Provider",[s,function(n,s){const a=s?.[e]?.[i]||o,c=zr.useContext(a);if(c)return c;if(void 0!==r)return r;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},sd(r,...t)]}function sd(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){const r=n.reduce((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]}),{});return zr.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}function ad(e){const t=cd(e),n=zr.forwardRef((e,n)=>{const{children:r,...o}=e,i=zr.Children.toArray(r),s=i.find(dd);if(s){const e=s.props.children,r=i.map(t=>t===s?zr.Children.count(e)>1?zr.Children.only(null):zr.isValidElement(e)?e.props.children:null:t);return(0,ru.jsx)(t,{...o,ref:n,children:zr.isValidElement(e)?zr.cloneElement(e,void 0,r):null})}return(0,ru.jsx)(t,{...o,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}function cd(e){const t=zr.forwardRef((e,t)=>{const{children:n,...r}=e;if(zr.isValidElement(n)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}(n),o=function(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{const t=i(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props);return n.type!==zr.Fragment&&(o.ref=t?qu(t,e):e),zr.cloneElement(n,o)}return zr.Children.count(n)>1?zr.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(0,zr.forwardRef)(({name:e,value:t,label:n,placeholder:r,className:o,autofocus:i=!1,hasError:s=!1,adornment:a,onBlur:c,onFocus:l,onClear:u,onChange:d},h)=>{const p=(0,zr.useId)(),f=(0,zr.useRef)(null),g=(0,zr.useRef)(null);(0,zr.useImperativeHandle)(h,()=>({focus:()=>{f?.current?.focus()},get input(){return f.current},get container(){return g.current}}));const m=(0,zr.useMemo)(()=>n?(0,ru.jsx)(Zu,{htmlFor:p,style:{lineHeight:"26px"},children:n}):null,[n]);return(0,ru.jsxs)("div",{className:"\n flex flex-col flex-1\n",ref:g,children:[m,(0,ru.jsxs)("div",{className:"\n border flex items-center bg-ll-background\n rounded-sm focus-within:shadow-lg\n data-[has-error=true]:border-ll-error\n data-[has-error=false]:border-ll-border\n","data-has-error":s,children:[a&&(0,ru.jsx)("span",{className:"\n h-full w-[20px] flex justify-center items-center mx-2\n",children:a}),(0,ru.jsx)("input",{type:"text",className:`${o} \n border flex-1 text-ll-on-background h-[30px]\n inline-flex justify-center items-center py-0 px-2\n leading-none font-sans text-ll-font-size-h6 md:text-ll-font-size-p \n `,ref:f,name:e,autoFocus:i,id:p,value:t,onBlur:c,onFocus:l,onChange:d,placeholder:r,style:a&&{width:"-webkit-fill-available"}}),u&&(0,ru.jsx)(td,{size:"small",variant:"text",onClick:u,children:(0,ru.jsx)(nd,{})})]})]})}).displayName="Input";var ld,ud=Symbol("radix.slottable");function dd(e){return zr.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===ud}function hd(e){const t=e+"CollectionProvider",[n,r]=id(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=e=>{const{scope:t,children:n}=e,r=zr.useRef(null),i=zr.useRef(new Map).current;return(0,ru.jsx)(o,{scope:t,itemMap:i,collectionRef:r,children:n})};s.displayName=t;const a=e+"CollectionSlot",c=ad(a),l=zr.forwardRef((e,t)=>{const{scope:n,children:r}=e;return(0,ru.jsx)(c,{ref:Bu(t,i(a,n).collectionRef),children:r})});l.displayName=a;const u=e+"CollectionItemSlot",d="data-radix-collection-item",h=ad(u),p=zr.forwardRef((e,t)=>{const{scope:n,children:r,...o}=e,s=zr.useRef(null),a=Bu(t,s),c=i(u,n);return zr.useEffect(()=>(c.itemMap.set(s,{ref:s,...o}),()=>{c.itemMap.delete(s)})),(0,ru.jsx)(h,{[d]:"",ref:a,children:r})});return p.displayName=u,[{Provider:s,Slot:l,ItemSlot:p},function(t){const n=i(e+"CollectionConsumer",t);return zr.useCallback(()=>{const e=n.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${d}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])},r]}var pd=new WeakMap;ld=new WeakMap,Map;function fd(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);const n=function(e,t){const n=e.length,r=gd(t),o=r>=0?r:n+r;return o<0||o>=n?-1:o}(e,t);return-1===n?void 0:e[n]}function gd(e){return e!=e||0===e?0:Math.trunc(e)}var md=zr.createContext(void 0);function vd(e){const t=zr.useContext(md);return e||t||"ltr"}var yd=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{const n=ad(`Primitive.${t}`),r=zr.forwardRef((e,r)=>{const{asChild:o,...i}=e,s=o?n:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,ru.jsx)(s,{...i,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function bd(e){const t=zr.useRef(e);return zr.useEffect(()=>{t.current=e}),zr.useMemo(()=>(...e)=>t.current?.(...e),[])}var wd,xd="dismissableLayer.update",_d="dismissableLayer.pointerDownOutside",Ed="dismissableLayer.focusOutside",Sd=zr.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),kd=zr.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:a,...c}=e,l=zr.useContext(Sd),[u,d]=zr.useState(null),h=u?.ownerDocument??globalThis?.document,[,p]=zr.useState({}),f=Bu(t,e=>d(e)),g=Array.from(l.layers),[m]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),v=g.indexOf(m),y=u?g.indexOf(u):-1,b=l.layersWithOutsidePointerEventsDisabled.size>0,w=y>=v,x=function(e,t=globalThis?.document){const n=bd(e),r=zr.useRef(!1),o=zr.useRef(()=>{});return zr.useEffect(()=>{const e=e=>{if(e.target&&!r.current){let r=function(){Cd(_d,n,i,{discrete:!0})};const i={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",o.current),o.current=r,t.addEventListener("click",o.current,{once:!0})):r()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",e),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}(e=>{const t=e.target,n=[...l.branches].some(e=>e.contains(t));w&&!n&&(o?.(e),s?.(e),e.defaultPrevented||a?.())},h),_=function(e,t=globalThis?.document){const n=bd(e),r=zr.useRef(!1);return zr.useEffect(()=>{const e=e=>{e.target&&!r.current&&Cd(Ed,n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}(e=>{const t=e.target;[...l.branches].some(e=>e.contains(t))||(i?.(e),s?.(e),e.defaultPrevented||a?.())},h);return function(e,t=globalThis?.document){const n=bd(e);zr.useEffect(()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[n,t])}(e=>{y===l.layers.size-1&&(r?.(e),!e.defaultPrevented&&a&&(e.preventDefault(),a()))},h),zr.useEffect(()=>{if(u)return n&&(0===l.layersWithOutsidePointerEventsDisabled.size&&(wd=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(u)),l.layers.add(u),Od(),()=>{n&&1===l.layersWithOutsidePointerEventsDisabled.size&&(h.body.style.pointerEvents=wd)}},[u,h,n,l]),zr.useEffect(()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),Od())},[u,l]),zr.useEffect(()=>{const e=()=>p({});return document.addEventListener(xd,e),()=>document.removeEventListener(xd,e)},[]),(0,ru.jsx)(yd.div,{...c,ref:f,style:{pointerEvents:b?w?"auto":"none":void 0,...e.style},onFocusCapture:od(e.onFocusCapture,_.onFocusCapture),onBlurCapture:od(e.onBlurCapture,_.onBlurCapture),onPointerDownCapture:od(e.onPointerDownCapture,x.onPointerDownCapture)})});kd.displayName="DismissableLayer";function Od(){const e=new CustomEvent(xd);document.dispatchEvent(e)}function Cd(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?function(e,t){e&&Jc.flushSync(()=>e.dispatchEvent(t))}(o,i):o.dispatchEvent(i)}zr.forwardRef((e,t)=>{const n=zr.useContext(Sd),r=zr.useRef(null),o=Bu(t,r);return zr.useEffect(()=>{const e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,ru.jsx)(yd.div,{...e,ref:o})}).displayName="DismissableLayerBranch";var Pd=0;function Rd(){zr.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Ld()),document.body.insertAdjacentElement("beforeend",e[1]??Ld()),Pd++,()=>{1===Pd&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),Pd--}},[])}function Ld(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Td="focusScope.autoFocusOnMount",Dd="focusScope.autoFocusOnUnmount",Nd={bubbles:!1,cancelable:!0},jd=zr.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...s}=e,[a,c]=zr.useState(null),l=bd(o),u=bd(i),d=zr.useRef(null),h=Bu(t,e=>c(e)),p=zr.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;zr.useEffect(()=>{if(r){let e=function(e){if(p.paused||!a)return;const t=e.target;a.contains(t)?d.current=t:$d(d.current,{select:!0})},t=function(e){if(p.paused||!a)return;const t=e.relatedTarget;null!==t&&(a.contains(t)||$d(d.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&$d(a)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const r=new MutationObserver(n);return a&&r.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}},[r,a,p.paused]),zr.useEffect(()=>{if(a){Fd.add(p);const t=document.activeElement;if(!a.contains(t)){const n=new CustomEvent(Td,Nd);a.addEventListener(Td,l),a.dispatchEvent(n),n.defaultPrevented||(!function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if($d(r,{select:t}),document.activeElement!==n)return}((e=Ad(a),e.filter(e=>"A"!==e.tagName)),{select:!0}),document.activeElement===t&&$d(a))}return()=>{a.removeEventListener(Td,l),setTimeout(()=>{const e=new CustomEvent(Dd,Nd);a.addEventListener(Dd,u),a.dispatchEvent(e),e.defaultPrevented||$d(t??document.body,{select:!0}),a.removeEventListener(Dd,u),Fd.remove(p)},0)}}var e},[a,l,u,p]);const f=zr.useCallback(e=>{if(!n&&!r)return;if(p.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){const t=e.currentTarget,[r,i]=function(e){const t=Ad(e);return[Id(t,e),Id(t.reverse(),e)]}(t);r&&i?e.shiftKey||o!==i?e.shiftKey&&o===r&&(e.preventDefault(),n&&$d(i,{select:!0})):(e.preventDefault(),n&&$d(r,{select:!0})):o===t&&e.preventDefault()}},[n,r,p.paused]);return(0,ru.jsx)(yd.div,{tabIndex:-1,...s,ref:h,onKeyDown:f})});function Ad(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Id(e,t){for(const n of e)if(!Md(n,{upTo:t}))return n}function Md(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function $d(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}jd.displayName="FocusScope";var Fd=function(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=Hd(e,t),e.unshift(t)},remove(t){e=Hd(e,t),e[0]?.resume()}}}();function Hd(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}var Ud=globalThis?.document?zr.useLayoutEffect:()=>{},qd=zr[" useId ".trim().toString()]||(()=>{}),Bd=0;function zd(e){const[t,n]=zr.useState(qd());return Ud(()=>{e||n(e=>e??String(Bd++))},[e]),e||(t?`radix-${t}`:"")}var Vd=["top","right","bottom","left"],Kd=Math.min,Wd=Math.max,Gd=Math.round,Jd=Math.floor,Yd=e=>({x:e,y:e}),Qd={left:"right",right:"left",bottom:"top",top:"bottom"},Xd={start:"end",end:"start"};function Zd(e,t,n){return Wd(e,Kd(t,n))}function eh(e,t){return"function"==typeof e?e(t):e}function th(e){return e.split("-")[0]}function nh(e){return e.split("-")[1]}function rh(e){return"x"===e?"y":"x"}function oh(e){return"y"===e?"height":"width"}function ih(e){return["top","bottom"].includes(th(e))?"y":"x"}function sh(e){return rh(ih(e))}function ah(e){return e.replace(/start|end/g,e=>Xd[e])}function ch(e){return e.replace(/left|right|bottom|top/g,e=>Qd[e])}function lh(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function uh(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function dh(e,t,n){let{reference:r,floating:o}=e;const i=ih(t),s=sh(t),a=oh(s),c=th(t),l="y"===i,u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,h=r[a]/2-o[a]/2;let p;switch(c){case"top":p={x:u,y:r.y-o.height};break;case"bottom":p={x:u,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-o.width,y:d};break;default:p={x:r.x,y:r.y}}switch(nh(t)){case"start":p[s]-=h*(n&&l?-1:1);break;case"end":p[s]+=h*(n&&l?-1:1)}return p}async function hh(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:s,elements:a,strategy:c}=e,{boundary:l="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:h=!1,padding:p=0}=eh(t,e),f=lh(p),g=a[h?"floating"===d?"reference":"floating":d],m=uh(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(g)))||n?g:g.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:l,rootBoundary:u,strategy:c})),v="floating"===d?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,y=await(null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),b=await(null==i.isElement?void 0:i.isElement(y))&&await(null==i.getScale?void 0:i.getScale(y))||{x:1,y:1},w=uh(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:v,offsetParent:y,strategy:c}):v);return{top:(m.top-w.top+f.top)/b.y,bottom:(w.bottom-m.bottom+f.bottom)/b.y,left:(m.left-w.left+f.left)/b.x,right:(w.right-m.right+f.right)/b.x}}function ph(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function fh(e){return Vd.some(t=>e[t]>=0)}function gh(){return"undefined"!=typeof window}function mh(e){return bh(e)?(e.nodeName||"").toLowerCase():"#document"}function vh(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function yh(e){var t;return null==(t=(bh(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function bh(e){return!!gh()&&(e instanceof Node||e instanceof vh(e).Node)}function wh(e){return!!gh()&&(e instanceof Element||e instanceof vh(e).Element)}function xh(e){return!!gh()&&(e instanceof HTMLElement||e instanceof vh(e).HTMLElement)}function _h(e){return!(!gh()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof vh(e).ShadowRoot)}function Eh(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Rh(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function Sh(e){return["table","td","th"].includes(mh(e))}function kh(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch(cv){return!1}})}function Oh(e){const t=Ch(),n=wh(e)?Rh(e):e;return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some(e=>(n.willChange||"").includes(e))||["paint","layout","strict","content"].some(e=>(n.contain||"").includes(e))}function Ch(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Ph(e){return["html","body","#document"].includes(mh(e))}function Rh(e){return vh(e).getComputedStyle(e)}function Lh(e){return wh(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Th(e){if("html"===mh(e))return e;const t=e.assignedSlot||e.parentNode||_h(e)&&e.host||yh(e);return _h(t)?t.host:t}function Dh(e){const t=Th(e);return Ph(t)?e.ownerDocument?e.ownerDocument.body:e.body:xh(t)&&Eh(t)?t:Dh(t)}function Nh(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=Dh(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),s=vh(o);if(i){const e=jh(s);return t.concat(s,s.visualViewport||[],Eh(o)?o:[],e&&n?Nh(e):[])}return t.concat(o,Nh(o,[],n))}function jh(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ah(e){const t=Rh(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=xh(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,a=Gd(n)!==i||Gd(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}function Ih(e){return wh(e)?e:e.contextElement}function Mh(e){const t=Ih(e);if(!xh(t))return Yd(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Ah(t);let s=(i?Gd(n.width):n.width)/r,a=(i?Gd(n.height):n.height)/o;return s&&Number.isFinite(s)||(s=1),a&&Number.isFinite(a)||(a=1),{x:s,y:a}}var $h=Yd(0);function Fh(e){const t=vh(e);return Ch()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:$h}function Hh(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=Ih(e);let s=Yd(1);t&&(r?wh(r)&&(s=Mh(r)):s=Mh(e));const a=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==vh(e))&&t}(i,n,r)?Fh(i):Yd(0);let c=(o.left+a.x)/s.x,l=(o.top+a.y)/s.y,u=o.width/s.x,d=o.height/s.y;if(i){const e=vh(i),t=r&&wh(r)?vh(r):r;let n=e,o=jh(n);for(;o&&r&&t!==n;){const e=Mh(o),t=o.getBoundingClientRect(),r=Rh(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,s=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=i,l+=s,n=vh(o),o=jh(n)}}return uh({width:u,height:d,x:c,y:l})}function Uh(e,t){const n=Lh(e).scrollLeft;return t?t.left+n:Hh(yh(e)).left+n}function qh(e,t,n){void 0===n&&(n=!1);const r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-(n?0:Uh(e,r)),y:r.top+t.scrollTop}}function Bh(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=vh(e),r=yh(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,a=0,c=0;if(o){i=o.width,s=o.height;const e=Ch();(!e||e&&"fixed"===t)&&(a=o.offsetLeft,c=o.offsetTop)}return{width:i,height:s,x:a,y:c}}(e,n);else if("document"===t)r=function(e){const t=yh(e),n=Lh(e),r=e.ownerDocument.body,o=Wd(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Wd(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+Uh(e);const a=-n.scrollTop;return"rtl"===Rh(r).direction&&(s+=Wd(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:a}}(yh(e));else if(wh(t))r=function(e,t){const n=Hh(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=xh(e)?Mh(e):Yd(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{const n=Fh(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return uh(r)}function zh(e,t){const n=Th(e);return!(n===t||!wh(n)||Ph(n))&&("fixed"===Rh(n).position||zh(n,t))}function Vh(e,t){const n=t.get(e);if(n)return n;let r=Nh(e,[],!1).filter(e=>wh(e)&&"body"!==mh(e)),o=null;const i="fixed"===Rh(e).position;let s=i?Th(e):e;for(;wh(s)&&!Ph(s);){const t=Rh(s),n=Oh(s);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||Eh(s)&&!n&&zh(e,s))?r=r.filter(e=>e!==s):o=t,s=Th(s)}return t.set(e,r),r}function Kh(e,t,n){const r=xh(t),o=yh(t),i="fixed"===n,s=Hh(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const c=Yd(0);if(r||!r&&!i)if(("body"!==mh(t)||Eh(o))&&(a=Lh(t)),r){const e=Hh(t,!0,i,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else o&&(c.x=Uh(o));const l=!o||r||i?Yd(0):qh(o,a);return{x:s.left+a.scrollLeft-c.x-l.x,y:s.top+a.scrollTop-c.y-l.y,width:s.width,height:s.height}}function Wh(e){return"static"===Rh(e).position}function Gh(e,t){if(!xh(e)||"fixed"===Rh(e).position)return null;if(t)return t(e);let n=e.offsetParent;return yh(e)===n&&(n=n.ownerDocument.body),n}function Jh(e,t){const n=vh(e);if(kh(e))return n;if(!xh(e)){let t=Th(e);for(;t&&!Ph(t);){if(wh(t)&&!Wh(t))return t;t=Th(t)}return n}let r=Gh(e,t);for(;r&&Sh(r)&&Wh(r);)r=Gh(r,t);return r&&Ph(r)&&Wh(r)&&!Oh(r)?n:r||function(e){let t=Th(e);for(;xh(t)&&!Ph(t);){if(Oh(t))return t;if(kh(t))return null;t=Th(t)}return null}(e)||n}var Yh={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,s=yh(r),a=!!t&&kh(t.floating);if(r===s||a&&i)return n;let c={scrollLeft:0,scrollTop:0},l=Yd(1);const u=Yd(0),d=xh(r);if((d||!d&&!i)&&(("body"!==mh(r)||Eh(s))&&(c=Lh(r)),xh(r))){const e=Hh(r);l=Mh(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}const h=!s||d||i?Yd(0):qh(s,c,!0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+h.x,y:n.y*l.y-c.scrollTop*l.y+u.y+h.y}},getDocumentElement:yh,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?kh(t)?[]:Vh(t,this._c):[].concat(n),r],s=i[0],a=i.reduce((e,n)=>{const r=Bh(t,n,o);return e.top=Wd(r.top,e.top),e.right=Kd(r.right,e.right),e.bottom=Kd(r.bottom,e.bottom),e.left=Wd(r.left,e.left),e},Bh(t,s,o));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},getOffsetParent:Jh,getElementRects:async function(e){const t=this.getOffsetParent||Jh,n=this.getDimensions,r=await n(e.floating);return{reference:Kh(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=Ah(e);return{width:t,height:n}},getScale:Mh,isElement:wh,isRTL:function(e){return"rtl"===Rh(e).direction}};function Qh(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:c=!1}=r,l=Ih(e),u=o||i?[...l?Nh(l):[],...Nh(t)]:[];u.forEach(e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)});const d=l&&a?function(e,t){let n,r=null;const o=yh(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function s(a,c){void 0===a&&(a=!1),void 0===c&&(c=1),i();const{left:l,top:u,width:d,height:h}=e.getBoundingClientRect();if(a||t(),!d||!h)return;const p={rootMargin:-Jd(u)+"px "+-Jd(o.clientWidth-(l+d))+"px "+-Jd(o.clientHeight-(u+h))+"px "+-Jd(l)+"px",threshold:Wd(0,Kd(1,c))||1};let f=!0;function g(e){const t=e[0].intersectionRatio;if(t!==c){if(!f)return s();t?s(!1,t):n=setTimeout(()=>{s(!1,1e-7)},1e3)}f=!1}try{r=new IntersectionObserver(g,{...p,root:o.ownerDocument})}catch(cv){r=new IntersectionObserver(g,p)}r.observe(e)}(!0),i}(l,n):null;let h,p=-1,f=null;s&&(f=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&f&&(f.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=f)||e.observe(t)})),n()}),l&&!c&&f.observe(l),f.observe(t));let g=c?Hh(e):null;return c&&function t(){const r=Hh(e);!g||r.x===g.x&&r.y===g.y&&r.width===g.width&&r.height===g.height||n();g=r,h=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach(e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)}),d?.(),null==(e=f)||e.disconnect(),f=null,c&&cancelAnimationFrame(h)}}var Xh=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:a}=t,c=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),s=th(n),a=nh(n),c="y"===ih(n),l=["left","top"].includes(s)?-1:1,u=i&&c?-1:1,d=eh(t,e);let{mainAxis:h,crossAxis:p,alignmentAxis:f}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&"number"==typeof f&&(p="end"===a?-1*f:f),c?{x:p*u,y:h*l}:{x:h*l,y:p*u}}(t,e);return s===(null==(n=a.offset)?void 0:n.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:o+c.x,y:i+c.y,data:{...c,placement:s}}}}},Zh=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=eh(e,t),l={x:n,y:r},u=await hh(t,c),d=ih(th(o)),h=rh(d);let p=l[h],f=l[d];if(i){const e="y"===h?"bottom":"right";p=Zd(p+u["y"===h?"top":"left"],p,p-u[e])}if(s){const e="y"===d?"bottom":"right";f=Zd(f+u["y"===d?"top":"left"],f,f-u[e])}const g=a.fn({...t,[h]:p,[d]:f});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[h]:i,[d]:s}}}}}},ep=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:s,initialPlacement:a,platform:c,elements:l}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:h,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:g=!0,...m}=eh(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const v=th(o),y=ih(a),b=th(a)===a,w=await(null==c.isRTL?void 0:c.isRTL(l.floating)),x=h||(b||!g?[ch(a)]:function(e){const t=ch(e);return[ah(e),t,ah(t)]}(a)),_="none"!==f;!h&&_&&x.push(...function(e,t,n,r){const o=nh(e);let i=function(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:s;default:return[]}}(th(e),"start"===n,r);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(ah)))),i}(a,g,f,w));const E=[a,...x],S=await hh(t,m),k=[];let O=(null==(r=i.flip)?void 0:r.overflows)||[];if(u&&k.push(S[v]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=nh(e),o=sh(e),i=oh(o);let s="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=ch(s)),[s,ch(s)]}(o,s,w);k.push(S[e[0]],S[e[1]])}if(O=[...O,{placement:o,overflows:k}],!k.every(e=>e<=0)){var C,P;const e=((null==(C=i.flip)?void 0:C.index)||0)+1,t=E[e];if(t)return{data:{index:e,overflows:O},reset:{placement:t}};let n=null==(P=O.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:P.placement;if(!n)switch(p){case"bestFit":{var R;const e=null==(R=O.filter(e=>{if(_){const t=ih(e.placement);return t===y||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:R[0];e&&(n=e);break}case"initialPlacement":n=a}if(o!==n)return{reset:{placement:n}}}return{}}}},tp=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:s,elements:a}=t,{apply:c=()=>{},...l}=eh(e,t),u=await hh(t,l),d=th(o),h=nh(o),p="y"===ih(o),{width:f,height:g}=i.floating;let m,v;"top"===d||"bottom"===d?(m=d,v=h===(await(null==s.isRTL?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(v=d,m="end"===h?"top":"bottom");const y=g-u.top-u.bottom,b=f-u.left-u.right,w=Kd(g-u[m],y),x=Kd(f-u[v],b),_=!t.middlewareData.shift;let E=w,S=x;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(S=b),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(E=y),_&&!h){const e=Wd(u.left,0),t=Wd(u.right,0),n=Wd(u.top,0),r=Wd(u.bottom,0);p?S=f-2*(0!==e||0!==t?e+t:Wd(u.left,u.right)):E=g-2*(0!==n||0!==r?n+r:Wd(u.top,u.bottom))}await c({...t,availableWidth:S,availableHeight:E});const k=await s.getDimensions(a.floating);return f!==k.width||g!==k.height?{reset:{rects:!0}}:{}}}},np=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=eh(e,t);switch(r){case"referenceHidden":{const e=ph(await hh(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:fh(e)}}}case"escaped":{const e=ph(await hh(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:fh(e)}}}default:return{}}}}},rp=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:a,middlewareData:c}=t,{element:l,padding:u=0}=eh(e,t)||{};if(null==l)return{};const d=lh(u),h={x:n,y:r},p=sh(o),f=oh(p),g=await s.getDimensions(l),m="y"===p,v=m?"top":"left",y=m?"bottom":"right",b=m?"clientHeight":"clientWidth",w=i.reference[f]+i.reference[p]-h[p]-i.floating[f],x=h[p]-i.reference[p],_=await(null==s.getOffsetParent?void 0:s.getOffsetParent(l));let E=_?_[b]:0;E&&await(null==s.isElement?void 0:s.isElement(_))||(E=a.floating[b]||i.floating[f]);const S=w/2-x/2,k=E/2-g[f]/2-1,O=Kd(d[v],k),C=Kd(d[y],k),P=O,R=E-g[f]-C,L=E/2-g[f]/2+S,T=Zd(P,L,R),D=!c.arrow&&null!=nh(o)&&L!==T&&i.reference[f]/2-(L<P?O:C)-g[f]/2<0,N=D?L<P?L-P:L-R:0;return{[p]:h[p]+N,data:{[p]:T,centerOffset:L-T-N,...D&&{alignmentOffset:N}},reset:D}}}),op=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:s}=t,{offset:a=0,mainAxis:c=!0,crossAxis:l=!0}=eh(e,t),u={x:n,y:r},d=ih(o),h=rh(d);let p=u[h],f=u[d];const g=eh(a,t),m="number"==typeof g?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(c){const e="y"===h?"height":"width",t=i.reference[h]-i.floating[e]+m.mainAxis,n=i.reference[h]+i.reference[e]-m.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){var v,y;const e="y"===h?"width":"height",t=["top","left"].includes(th(o)),n=i.reference[d]-i.floating[e]+(t&&(null==(v=s.offset)?void 0:v[d])||0)+(t?0:m.crossAxis),r=i.reference[d]+i.reference[e]+(t?0:(null==(y=s.offset)?void 0:y[d])||0)-(t?m.crossAxis:0);f<n?f=n:f>r&&(f=r)}return{[h]:p,[d]:f}}}},ip=(e,t,n)=>{const r=new Map,o={platform:Yh,...n},i={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),c=await(null==s.isRTL?void 0:s.isRTL(t));let l=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=dh(l,r,c),h=r,p={},f=0;for(let g=0;g<a.length;g++){const{name:n,fn:i}=a[g],{x:m,y:v,data:y,reset:b}=await i({x:u,y:d,initialPlacement:r,placement:h,strategy:o,middlewareData:p,rects:l,platform:s,elements:{reference:e,floating:t}});u=null!=m?m:u,d=null!=v?v:d,p={...p,[n]:{...p[n],...y}},b&&f<=50&&(f++,"object"==typeof b&&(b.placement&&(h=b.placement),b.rects&&(l=!0===b.rects?await s.getElementRects({reference:e,floating:t,strategy:o}):b.rects),({x:u,y:d}=dh(l,h,c))),g=-1)}return{x:u,y:d,placement:h,strategy:o,middlewareData:p}})(e,t,{...o,platform:i})},sp="undefined"!=typeof document?zr.useLayoutEffect:zr.useEffect;function ap(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!==r--;)if(!ap(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!==r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!==r--;){const n=o[r];if(("_owner"!==n||!e.$$typeof)&&!ap(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function cp(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function lp(e,t){const n=cp(e);return Math.round(t*n)/n}function up(e){const t=zr.useRef(e);return sp(()=>{t.current=e}),t}var dp=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&(o=n,{}.hasOwnProperty.call(o,"current"))?null!=n.current?rp({element:n.current,padding:r}).fn(t):{}:n?rp({element:n,padding:r}).fn(t):{};var o}}),hp=(e,t)=>({...Xh(e),options:[e,t]}),pp=(e,t)=>({...Zh(e),options:[e,t]}),fp=(e,t)=>({...op(e),options:[e,t]}),gp=(e,t)=>({...ep(e),options:[e,t]}),mp=(e,t)=>({...tp(e),options:[e,t]}),vp=(e,t)=>({...np(e),options:[e,t]}),yp=(e,t)=>({...dp(e),options:[e,t]}),bp=zr.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return(0,ru.jsx)(yd.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,ru.jsx)("polygon",{points:"0,0 30,0 15,10"})})});bp.displayName="Arrow";var wp=bp;var xp="Popper",[_p,Ep]=id(xp),[Sp,kp]=_p(xp),Op=e=>{const{__scopePopper:t,children:n}=e,[r,o]=zr.useState(null);return(0,ru.jsx)(Sp,{scope:t,anchor:r,onAnchorChange:o,children:n})};Op.displayName=xp;var Cp="PopperAnchor",Pp=zr.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=kp(Cp,n),s=zr.useRef(null),a=Bu(t,s);return zr.useEffect(()=>{i.onAnchorChange(r?.current||s.current)}),r?null:(0,ru.jsx)(yd.div,{...o,ref:a})});Pp.displayName=Cp;var Rp="PopperContent",[Lp,Tp]=_p(Rp),Dp=zr.forwardRef((e,t)=>{const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:i="center",alignOffset:s=0,arrowPadding:a=0,avoidCollisions:c=!0,collisionBoundary:l=[],collisionPadding:u=0,sticky:d="partial",hideWhenDetached:h=!1,updatePositionStrategy:p="optimized",onPlaced:f,...g}=e,m=kp(Rp,n),[v,y]=zr.useState(null),b=Bu(t,e=>y(e)),[w,x]=zr.useState(null),_=function(e){const[t,n]=zr.useState(void 0);return Ud(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver(t=>{if(!Array.isArray(t))return;if(!t.length)return;const r=t[0];let o,i;if("borderBoxSize"in r){const e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,i=t.blockSize}else o=e.offsetWidth,i=e.offsetHeight;n({width:o,height:i})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}(w),E=_?.width??0,S=_?.height??0,k=r+("center"!==i?"-"+i:""),O="number"==typeof u?u:{top:0,right:0,bottom:0,left:0,...u},C=Array.isArray(l)?l:[l],P=C.length>0,R={padding:O,boundary:C.filter(Ip),altBoundary:P},{refs:L,floatingStyles:T,placement:D,isPositioned:N,middlewareData:j}=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:s}={},transform:a=!0,whileElementsMounted:c,open:l}=e,[u,d]=zr.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,p]=zr.useState(r);ap(h,r)||p(r);const[f,g]=zr.useState(null),[m,v]=zr.useState(null),y=zr.useCallback(e=>{e!==_.current&&(_.current=e,g(e))},[]),b=zr.useCallback(e=>{e!==E.current&&(E.current=e,v(e))},[]),w=i||f,x=s||m,_=zr.useRef(null),E=zr.useRef(null),S=zr.useRef(u),k=null!=c,O=up(c),C=up(o),P=up(l),R=zr.useCallback(()=>{if(!_.current||!E.current)return;const e={placement:t,strategy:n,middleware:h};C.current&&(e.platform=C.current),ip(_.current,E.current,e).then(e=>{const t={...e,isPositioned:!1!==P.current};L.current&&!ap(S.current,t)&&(S.current=t,Jc.flushSync(()=>{d(t)}))})},[h,t,n,C,P]);sp(()=>{!1===l&&S.current.isPositioned&&(S.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);const L=zr.useRef(!1);sp(()=>(L.current=!0,()=>{L.current=!1}),[]),sp(()=>{if(w&&(_.current=w),x&&(E.current=x),w&&x){if(O.current)return O.current(w,x,R);R()}},[w,x,R,O,k]);const T=zr.useMemo(()=>({reference:_,floating:E,setReference:y,setFloating:b}),[y,b]),D=zr.useMemo(()=>({reference:w,floating:x}),[w,x]),N=zr.useMemo(()=>{const e={position:n,left:0,top:0};if(!D.floating)return e;const t=lp(D.floating,u.x),r=lp(D.floating,u.y);return a?{...e,transform:"translate("+t+"px, "+r+"px)",...cp(D.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,a,D.floating,u.x,u.y]);return zr.useMemo(()=>({...u,update:R,refs:T,elements:D,floatingStyles:N}),[u,R,T,D,N])}({strategy:"fixed",placement:k,whileElementsMounted:(...e)=>Qh(...e,{animationFrame:"always"===p}),elements:{reference:m.anchor},middleware:[hp({mainAxis:o+S,alignmentAxis:s}),c&&pp({mainAxis:!0,crossAxis:!1,limiter:"partial"===d?fp():void 0,...R}),c&&gp({...R}),mp({...R,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{const{width:o,height:i}=t.reference,s=e.floating.style;s.setProperty("--radix-popper-available-width",`${n}px`),s.setProperty("--radix-popper-available-height",`${r}px`),s.setProperty("--radix-popper-anchor-width",`${o}px`),s.setProperty("--radix-popper-anchor-height",`${i}px`)}}),w&&yp({element:w,padding:a}),Mp({arrowWidth:E,arrowHeight:S}),h&&vp({strategy:"referenceHidden",...R})]}),[A,I]=$p(D),M=bd(f);Ud(()=>{N&&M?.()},[N,M]);const $=j.arrow?.x,F=j.arrow?.y,H=0!==j.arrow?.centerOffset,[U,q]=zr.useState();return Ud(()=>{v&&q(window.getComputedStyle(v).zIndex)},[v]),(0,ru.jsx)("div",{ref:L.setFloating,"data-radix-popper-content-wrapper":"",style:{...T,transform:N?T.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:U,"--radix-popper-transform-origin":[j.transformOrigin?.x,j.transformOrigin?.y].join(" "),...j.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,ru.jsx)(Lp,{scope:n,placedSide:A,onArrowChange:x,arrowX:$,arrowY:F,shouldHideArrow:H,children:(0,ru.jsx)(yd.div,{"data-side":A,"data-align":I,...g,ref:b,style:{...g.style,animation:N?void 0:"none"}})})})});Dp.displayName=Rp;var Np="PopperArrow",jp={top:"bottom",right:"left",bottom:"top",left:"right"},Ap=zr.forwardRef(function(e,t){const{__scopePopper:n,...r}=e,o=Tp(Np,n),i=jp[o.placedSide];return(0,ru.jsx)("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:(0,ru.jsx)(wp,{...r,ref:t,style:{...r.style,display:"block"}})})});function Ip(e){return null!==e}Ap.displayName=Np;var Mp=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,i=0!==o.arrow?.centerOffset,s=i?0:e.arrowWidth,a=i?0:e.arrowHeight,[c,l]=$p(n),u={start:"0%",center:"50%",end:"100%"}[l],d=(o.arrow?.x??0)+s/2,h=(o.arrow?.y??0)+a/2;let p="",f="";return"bottom"===c?(p=i?u:`${d}px`,f=-a+"px"):"top"===c?(p=i?u:`${d}px`,f=`${r.floating.height+a}px`):"right"===c?(p=-a+"px",f=i?u:`${h}px`):"left"===c&&(p=`${r.floating.width+a}px`,f=i?u:`${h}px`),{data:{x:p,y:f}}}});function $p(e){const[t,n="center"]=e.split("-");return[t,n]}var Fp=Op,Hp=Pp,Up=Dp,qp=Ap,Bp=zr.forwardRef((e,t)=>{const{container:n,...r}=e,[o,i]=zr.useState(!1);Ud(()=>i(!0),[]);const s=n||o&&globalThis?.document?.body;return s?Jc.createPortal((0,ru.jsx)(yd.div,{...r,ref:t}),s):null});Bp.displayName="Portal";var zp=zr[" useInsertionEffect ".trim().toString()]||Ud;function Vp({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,i,s]=function({defaultProp:e,onChange:t}){const[n,r]=zr.useState(e),o=zr.useRef(n),i=zr.useRef(t);return zp(()=>{i.current=t},[t]),zr.useEffect(()=>{o.current!==n&&(i.current?.(n),o.current=n)},[n,o]),[n,r,i]}({defaultProp:t,onChange:n}),a=void 0!==e,c=a?e:o;{const t=zr.useRef(void 0!==e);zr.useEffect(()=>{const e=t.current;e!==a&&console.warn(`${r} is changing from ${e?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),t.current=a},[a,r])}return[c,zr.useCallback(t=>{if(a){const n=function(e){return"function"==typeof e}(t)?t(e):t;n!==e&&s.current?.(n)}else i(t)},[a,e,i,s])]}var Kp=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"});zr.forwardRef((e,t)=>(0,ru.jsx)(yd.span,{...e,ref:t,style:{...Kp,...e.style}})).displayName="VisuallyHidden";var Wp=new WeakMap,Gp=new WeakMap,Jp={},Yp=0,Qp=function(e){return e&&(e.host||Qp(e.parentNode))},Xp=function(e,t,n,r){var o=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=Qp(t);return n&&e.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)}).filter(function(e){return Boolean(e)})}(t,Array.isArray(e)?e:[e]);Jp[n]||(Jp[n]=new WeakMap);var i=Jp[n],s=[],a=new Set,c=new Set(o),l=function(e){e&&!a.has(e)&&(a.add(e),l(e.parentNode))};o.forEach(l);var u=function(e){e&&!c.has(e)&&Array.prototype.forEach.call(e.children,function(e){if(a.has(e))u(e);else try{var t=e.getAttribute(r),o=null!==t&&"false"!==t,c=(Wp.get(e)||0)+1,l=(i.get(e)||0)+1;Wp.set(e,c),i.set(e,l),s.push(e),1===c&&o&&Gp.set(e,!0),1===l&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}catch(cv){console.error("aria-hidden: cannot operate on ",e,cv)}})};return u(t),a.clear(),Yp++,function(){s.forEach(function(e){var t=Wp.get(e)-1,o=i.get(e)-1;Wp.set(e,t),i.set(e,o),t||(Gp.has(e)||e.removeAttribute(r),Gp.delete(e)),o||e.removeAttribute(n)}),--Yp||(Wp=new WeakMap,Wp=new WeakMap,Gp=new WeakMap,Jp={})}},Zp=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body}(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),Xp(r,o,n,"aria-hidden")):function(){return null}},ef=function(){return ef=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ef.apply(this,arguments)};function tf(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}var nf="right-scroll-bar-position",rf="width-before-scroll-bar";function of(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var sf="undefined"!=typeof window?zr.useLayoutEffect:zr.useEffect,af=new WeakMap;function cf(e,t){var n,r,o,i=(n=t||null,r=function(t){return e.forEach(function(e){return of(e,t)})},(o=(0,zr.useState)(function(){return{value:n,callback:r,facade:{get current(){return o.value},set current(e){var t=o.value;t!==e&&(o.value=e,o.callback(e,t))}}}})[0]).callback=r,o.facade);return sf(function(){var t=af.get(i);if(t){var n=new Set(t),r=new Set(e),o=i.current;n.forEach(function(e){r.has(e)||of(e,null)}),r.forEach(function(e){n.has(e)||of(e,o)})}af.set(i,e)},[e]),i}function lf(e){return e}var uf=function(e){var t=e.sideCar,n=tf(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return zr.createElement(r,ef({},n))};uf.isSideCarExport=!0;var df=function(e){void 0===e&&(e={});var t=function(e,t){void 0===t&&(t=lf);var n=[],r=!1;return{read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var o=t(e,r);return n.push(o),function(){n=n.filter(function(e){return e!==o})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var o=n;n=[],o.forEach(e),t=n}var i=function(){var n=t;t=[],n.forEach(e)},s=function(){return Promise.resolve().then(i)};s(),n={push:function(e){t.push(e),s()},filter:function(e){return t=t.filter(e),n}}}}}(null);return t.options=ef({async:!0,ssr:!1},e),t}(),hf=function(){},pf=zr.forwardRef(function(e,t){var n=zr.useRef(null),r=zr.useState({onScrollCapture:hf,onWheelCapture:hf,onTouchMoveCapture:hf}),o=r[0],i=r[1],s=e.forwardProps,a=e.children,c=e.className,l=e.removeScrollBar,u=e.enabled,d=e.shards,h=e.sideCar,p=e.noIsolation,f=e.inert,g=e.allowPinchZoom,m=e.as,v=void 0===m?"div":m,y=e.gapMode,b=tf(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),w=h,x=cf([n,t]),_=ef(ef({},b),o);return zr.createElement(zr.Fragment,null,u&&zr.createElement(w,{sideCar:df,removeScrollBar:l,shards:d,noIsolation:p,inert:f,setCallbacks:i,allowPinchZoom:!!g,lockRef:n,gapMode:y}),s?zr.cloneElement(zr.Children.only(a),ef(ef({},_),{ref:x})):zr.createElement(v,ef({},_,{className:c,ref:x}),a))});pf.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},pf.classNames={fullWidth:rf,zeroRight:nf};function ff(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=function(){if("undefined"!=typeof __webpack_nonce__)return __webpack_nonce__}();return t&&e.setAttribute("nonce",t),e}var gf=function(){var e=0,t=null;return{add:function(n){var r,o;0==e&&(t=ff())&&(o=n,(r=t).styleSheet?r.styleSheet.cssText=o:r.appendChild(document.createTextNode(o)),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(t)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},mf=function(){var e,t=(e=gf(),function(t,n){zr.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])});return function(e){var n=e.styles,r=e.dynamic;return t(n,r),null}},vf={left:0,top:0,right:0,gap:0},yf=function(e){return parseInt(e||"",10)||0},bf=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return vf;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[yf(n),yf(r),yf(o)]}(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},wf=mf(),xf="data-scroll-locked",_f=function(e,t,n,r){var o=e.left,i=e.top,s=e.right,a=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(a,"px ").concat(r,";\n }\n body[").concat(xf,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(i,"px;\n padding-right: ").concat(s,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(a,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(nf," {\n right: ").concat(a,"px ").concat(r,";\n }\n \n .").concat(rf," {\n margin-right: ").concat(a,"px ").concat(r,";\n }\n \n .").concat(nf," .").concat(nf," {\n right: 0 ").concat(r,";\n }\n \n .").concat(rf," .").concat(rf," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(xf,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(a,"px;\n }\n")},Ef=function(){var e=parseInt(document.body.getAttribute("data-scroll-locked")||"0",10);return isFinite(e)?e:0},Sf=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r;zr.useEffect(function(){return document.body.setAttribute(xf,(Ef()+1).toString()),function(){var e=Ef()-1;e<=0?document.body.removeAttribute(xf):document.body.setAttribute(xf,e.toString())}},[]);var i=zr.useMemo(function(){return bf(o)},[o]);return zr.createElement(wf,{styles:_f(i,!t,o,n?"":"!important")})},kf=!1;if("undefined"!=typeof window)try{var Of=Object.defineProperty({},"passive",{get:function(){return kf=!0,!0}});window.addEventListener("test",Of,Of),window.removeEventListener("test",Of,Of)}catch(Qv){kf=!1}var Cf=!!kf&&{passive:!1},Pf=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===n[t])},Rf=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),Lf(e,r)){var o=Tf(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Lf=function(e,t){return"v"===e?function(e){return Pf(e,"overflowY")}(t):function(e){return Pf(e,"overflowX")}(t)},Tf=function(e,t){return"v"===e?[(n=t).scrollTop,n.scrollHeight,n.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var n},Df=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Nf=function(e){return[e.deltaX,e.deltaY]},jf=function(e){return e&&"current"in e?e.current:e},Af=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},If=0,Mf=[];function $f(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var Ff,Hf=(Ff=function(e){var t=zr.useRef([]),n=zr.useRef([0,0]),r=zr.useRef(),o=zr.useState(If++)[0],i=zr.useState(mf)[0],s=zr.useRef(e);zr.useEffect(function(){s.current=e},[e]),zr.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}([e.lockRef.current],(e.shards||[]).map(jf),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=zr.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!s.current.allowPinchZoom;var o,i=Df(e),a=n.current,c="deltaX"in e?e.deltaX:a[0]-i[0],l="deltaY"in e?e.deltaY:a[1]-i[1],u=e.target,d=Math.abs(c)>Math.abs(l)?"h":"v";if("touches"in e&&"h"===d&&"range"===u.type)return!1;var h=Rf(d,u);if(!h)return!0;if(h?o=d:(o="v"===d?"h":"v",h=Rf(d,u)),!h)return!1;if(!r.current&&"changedTouches"in e&&(c||l)&&(r.current=o),!o)return!0;var p=r.current||o;return function(e,t,n,r,o){var i=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),s=i*r,a=n.target,c=t.contains(a),l=!1,u=s>0,d=0,h=0;do{var p=Tf(e,a),f=p[0],g=p[1]-p[2]-i*f;(f||g)&&Lf(e,a)&&(d+=g,h+=f),a=a instanceof ShadowRoot?a.host:a.parentNode}while(!c&&a!==document.body||c&&(t.contains(a)||t===a));return(u&&(o&&Math.abs(d)<1||!o&&s>d)||!u&&(o&&Math.abs(h)<1||!o&&-s>h))&&(l=!0),l}(p,t,e,"h"===p?c:l,!0)},[]),c=zr.useCallback(function(e){var n=e;if(Mf.length&&Mf[Mf.length-1]===i){var r="deltaY"in n?Nf(n):Df(n),o=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&function(e,t){return e[0]===t[0]&&e[1]===t[1]}(e.delta,r)})[0];if(o&&o.should)n.cancelable&&n.preventDefault();else if(!o){var c=(s.current.shards||[]).map(jf).filter(Boolean).filter(function(e){return e.contains(n.target)});(c.length>0?a(n,c[0]):!s.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),l=zr.useCallback(function(e,n,r,o){var i={name:e,delta:n,target:r,should:o,shadowParent:$f(r)};t.current.push(i),setTimeout(function(){t.current=t.current.filter(function(e){return e!==i})},1)},[]),u=zr.useCallback(function(e){n.current=Df(e),r.current=void 0},[]),d=zr.useCallback(function(t){l(t.type,Nf(t),t.target,a(t,e.lockRef.current))},[]),h=zr.useCallback(function(t){l(t.type,Df(t),t.target,a(t,e.lockRef.current))},[]);zr.useEffect(function(){return Mf.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:h}),document.addEventListener("wheel",c,Cf),document.addEventListener("touchmove",c,Cf),document.addEventListener("touchstart",u,Cf),function(){Mf=Mf.filter(function(e){return e!==i}),document.removeEventListener("wheel",c,Cf),document.removeEventListener("touchmove",c,Cf),document.removeEventListener("touchstart",u,Cf)}},[]);var p=e.removeScrollBar,f=e.inert;return zr.createElement(zr.Fragment,null,f?zr.createElement(i,{styles:Af(o)}):null,p?zr.createElement(Sf,{gapMode:e.gapMode}):null)},df.useMedium(Ff),uf),Uf=zr.forwardRef(function(e,t){return zr.createElement(pf,ef({},e,{ref:t,sideCar:Hf}))});Uf.classNames=pf.classNames;var qf=r({Arrow:()=>lm,Content:()=>Zg,Group:()=>tm,Icon:()=>Qg,Item:()=>rm,ItemIndicator:()=>im,ItemText:()=>om,Label:()=>nm,Portal:()=>Xg,Root:()=>Gg,ScrollDownButton:()=>am,ScrollUpButton:()=>sm,Select:()=>ng,SelectArrow:()=>Bg,SelectContent:()=>ug,SelectGroup:()=>kg,SelectIcon:()=>ag,SelectItem:()=>Tg,SelectItemIndicator:()=>Ag,SelectItemText:()=>Ng,SelectLabel:()=>Cg,SelectPortal:()=>cg,SelectScrollDownButton:()=>Fg,SelectScrollUpButton:()=>Mg,SelectSeparator:()=>Ug,SelectTrigger:()=>og,SelectValue:()=>sg,SelectViewport:()=>xg,Separator:()=>cm,Trigger:()=>Jg,Value:()=>Yg,Viewport:()=>em,createSelectScope:()=>Yf}),Bf=[" ","Enter","ArrowUp","ArrowDown"],zf=[" ","Enter"],Vf="Select",[Kf,Wf,Gf]=hd(Vf),[Jf,Yf]=id(Vf,[Gf,Ep]),Qf=Ep(),[Xf,Zf]=Jf(Vf),[eg,tg]=Jf(Vf),ng=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:i,value:s,defaultValue:a,onValueChange:c,dir:l,name:u,autoComplete:d,disabled:h,required:p,form:f}=e,g=Qf(t),[m,v]=zr.useState(null),[y,b]=zr.useState(null),[w,x]=zr.useState(!1),_=vd(l),[E,S]=Vp({prop:r,defaultProp:o??!1,onChange:i,caller:Vf}),[k,O]=Vp({prop:s,defaultProp:a,onChange:c,caller:Vf}),C=zr.useRef(null),P=!m||(f||!!m.closest("form")),[R,L]=zr.useState(new Set),T=Array.from(R).map(e=>e.props.value).join(";");return(0,ru.jsx)(Fp,{...g,children:(0,ru.jsxs)(Xf,{required:p,scope:t,trigger:m,onTriggerChange:v,valueNode:y,onValueNodeChange:b,valueNodeHasChildren:w,onValueNodeHasChildrenChange:x,contentId:zd(),value:k,onValueChange:O,open:E,onOpenChange:S,dir:_,triggerPointerDownPosRef:C,disabled:h,children:[(0,ru.jsx)(Kf.Provider,{scope:t,children:(0,ru.jsx)(eg,{scope:e.__scopeSelect,onNativeOptionAdd:zr.useCallback(e=>{L(t=>new Set(t).add(e))},[]),onNativeOptionRemove:zr.useCallback(e=>{L(t=>{const n=new Set(t);return n.delete(e),n})},[]),children:n})}),P?(0,ru.jsxs)(zg,{"aria-hidden":!0,required:p,tabIndex:-1,name:u,autoComplete:d,value:k,onChange:e=>O(e.target.value),disabled:h,form:f,children:[void 0===k?(0,ru.jsx)("option",{value:""}):null,Array.from(R)]},T):null]})})};ng.displayName=Vf;var rg="SelectTrigger",og=zr.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,i=Qf(n),s=Zf(rg,n),a=s.disabled||r,c=Bu(t,s.onTriggerChange),l=Wf(n),u=zr.useRef("touch"),[d,h,p]=Kg(e=>{const t=l().filter(e=>!e.disabled),n=Wg(t,e,t.find(e=>e.value===s.value));void 0!==n&&s.onValueChange(n.value)}),f=e=>{a||(s.onOpenChange(!0),p()),e&&(s.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})};return(0,ru.jsx)(Hp,{asChild:!0,...i,children:(0,ru.jsx)(yd.button,{type:"button",role:"combobox","aria-controls":s.contentId,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:a,"data-disabled":a?"":void 0,"data-placeholder":Vg(s.value)?"":void 0,...o,ref:c,onClick:od(o.onClick,e=>{e.currentTarget.focus(),"mouse"!==u.current&&f(e)}),onPointerDown:od(o.onPointerDown,e=>{u.current=e.pointerType;const t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&"mouse"===e.pointerType&&(f(e),e.preventDefault())}),onKeyDown:od(o.onKeyDown,e=>{const t=""!==d.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||h(e.key),t&&" "===e.key||Bf.includes(e.key)&&(f(),e.preventDefault())})})})});og.displayName=rg;var ig="SelectValue",sg=zr.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:i,placeholder:s="",...a}=e,c=Zf(ig,n),{onValueNodeHasChildrenChange:l}=c,u=void 0!==i,d=Bu(t,c.onValueNodeChange);return Ud(()=>{l(u)},[l,u]),(0,ru.jsx)(yd.span,{...a,ref:d,style:{pointerEvents:"none"},children:Vg(c.value)?(0,ru.jsx)(ru.Fragment,{children:s}):i})});sg.displayName=ig;var ag=zr.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return(0,ru.jsx)(yd.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});ag.displayName="SelectIcon";var cg=e=>(0,ru.jsx)(Bp,{asChild:!0,...e});cg.displayName="SelectPortal";var lg="SelectContent",ug=zr.forwardRef((e,t)=>{const n=Zf(lg,e.__scopeSelect),[r,o]=zr.useState();if(Ud(()=>{o(new DocumentFragment)},[]),!n.open){const t=r;return t?Jc.createPortal((0,ru.jsx)(hg,{scope:e.__scopeSelect,children:(0,ru.jsx)(Kf.Slot,{scope:e.__scopeSelect,children:(0,ru.jsx)("div",{children:e.children})})}),t):null}return(0,ru.jsx)(gg,{...e,ref:t})});ug.displayName=lg;var dg=10,[hg,pg]=Jf(lg),fg=ad("SelectContent.RemoveScroll"),gg=zr.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:i,onPointerDownOutside:s,side:a,sideOffset:c,align:l,alignOffset:u,arrowPadding:d,collisionBoundary:h,collisionPadding:p,sticky:f,hideWhenDetached:g,avoidCollisions:m,...v}=e,y=Zf(lg,n),[b,w]=zr.useState(null),[x,_]=zr.useState(null),E=Bu(t,e=>w(e)),[S,k]=zr.useState(null),[O,C]=zr.useState(null),P=Wf(n),[R,L]=zr.useState(!1),T=zr.useRef(!1);zr.useEffect(()=>{if(b)return Zp(b)},[b]),Rd();const D=zr.useCallback(e=>{const[t,...n]=P().map(e=>e.ref.current),[r]=n.slice(-1),o=document.activeElement;for(const i of e){if(i===o)return;if(i?.scrollIntoView({block:"nearest"}),i===t&&x&&(x.scrollTop=0),i===r&&x&&(x.scrollTop=x.scrollHeight),i?.focus(),document.activeElement!==o)return}},[P,x]),N=zr.useCallback(()=>D([S,b]),[D,S,b]);zr.useEffect(()=>{R&&N()},[R,N]);const{onOpenChange:j,triggerPointerDownPosRef:A}=y;zr.useEffect(()=>{if(b){let e={x:0,y:0};const t=t=>{e={x:Math.abs(Math.round(t.pageX)-(A.current?.x??0)),y:Math.abs(Math.round(t.pageY)-(A.current?.y??0))}},n=n=>{e.x<=10&&e.y<=10?n.preventDefault():b.contains(n.target)||j(!1),document.removeEventListener("pointermove",t),A.current=null};return null!==A.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",n,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",n,{capture:!0})}}},[b,j,A]),zr.useEffect(()=>{const e=()=>j(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}},[j]);const[I,M]=Kg(e=>{const t=P().filter(e=>!e.disabled),n=Wg(t,e,t.find(e=>e.ref.current===document.activeElement));n&&setTimeout(()=>n.ref.current.focus())}),$=zr.useCallback((e,t,n)=>{const r=!T.current&&!n;(void 0!==y.value&&y.value===t||r)&&(k(e),r&&(T.current=!0))},[y.value]),F=zr.useCallback(()=>b?.focus(),[b]),H=zr.useCallback((e,t,n)=>{const r=!T.current&&!n;(void 0!==y.value&&y.value===t||r)&&C(e)},[y.value]),U="popper"===r?vg:mg,q=U===vg?{side:a,sideOffset:c,align:l,alignOffset:u,arrowPadding:d,collisionBoundary:h,collisionPadding:p,sticky:f,hideWhenDetached:g,avoidCollisions:m}:{};return(0,ru.jsx)(hg,{scope:n,content:b,viewport:x,onViewportChange:_,itemRefCallback:$,selectedItem:S,onItemLeave:F,itemTextRefCallback:H,focusSelectedItem:N,selectedItemText:O,position:r,isPositioned:R,searchRef:I,children:(0,ru.jsx)(Uf,{as:fg,allowPinchZoom:!0,children:(0,ru.jsx)(jd,{asChild:!0,trapped:y.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:od(o,e=>{y.trigger?.focus({preventScroll:!0}),e.preventDefault()}),children:(0,ru.jsx)(kd,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>y.onOpenChange(!1),children:(0,ru.jsx)(U,{role:"listbox",id:y.contentId,"data-state":y.open?"open":"closed",dir:y.dir,onContextMenu:e=>e.preventDefault(),...v,...q,onPlaced:()=>L(!0),ref:E,style:{display:"flex",flexDirection:"column",outline:"none",...v.style},onKeyDown:od(v.onKeyDown,e=>{const t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||M(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=P().filter(e=>!e.disabled).map(e=>e.ref.current);if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){const n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout(()=>D(t)),e.preventDefault()}})})})})})})});gg.displayName="SelectContentImpl";var mg=zr.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,i=Zf(lg,n),s=pg(lg,n),[a,c]=zr.useState(null),[l,u]=zr.useState(null),d=Bu(t,e=>u(e)),h=Wf(n),p=zr.useRef(!1),f=zr.useRef(!0),{viewport:g,selectedItem:m,selectedItemText:v,focusSelectedItem:y}=s,b=zr.useCallback(()=>{if(i.trigger&&i.valueNode&&a&&l&&g&&m&&v){const e=i.trigger.getBoundingClientRect(),t=l.getBoundingClientRect(),n=i.valueNode.getBoundingClientRect(),o=v.getBoundingClientRect();if("rtl"!==i.dir){const r=o.left-t.left,i=n.left-r,s=e.left-i,c=e.width+s,l=Math.max(c,t.width),u=window.innerWidth-dg,d=rd(i,[dg,Math.max(dg,u-l)]);a.style.minWidth=c+"px",a.style.left=d+"px"}else{const r=t.right-o.right,i=window.innerWidth-n.right-r,s=window.innerWidth-e.right-i,c=e.width+s,l=Math.max(c,t.width),u=window.innerWidth-dg,d=rd(i,[dg,Math.max(dg,u-l)]);a.style.minWidth=c+"px",a.style.right=d+"px"}const s=h(),c=window.innerHeight-2*dg,u=g.scrollHeight,d=window.getComputedStyle(l),f=parseInt(d.borderTopWidth,10),y=parseInt(d.paddingTop,10),b=parseInt(d.borderBottomWidth,10),w=f+y+u+parseInt(d.paddingBottom,10)+b,x=Math.min(5*m.offsetHeight,w),_=window.getComputedStyle(g),E=parseInt(_.paddingTop,10),S=parseInt(_.paddingBottom,10),k=e.top+e.height/2-dg,O=c-k,C=m.offsetHeight/2,P=f+y+(m.offsetTop+C),R=w-P;if(P<=k){const e=s.length>0&&m===s[s.length-1].ref.current;a.style.bottom="0px";const t=l.clientHeight-g.offsetTop-g.offsetHeight,n=P+Math.max(O,C+(e?S:0)+t+b);a.style.height=n+"px"}else{const e=s.length>0&&m===s[0].ref.current;a.style.top="0px";const t=Math.max(k,f+g.offsetTop+(e?E:0)+C)+R;a.style.height=t+"px",g.scrollTop=P-k+g.offsetTop}a.style.margin=`${dg}px 0`,a.style.minHeight=x+"px",a.style.maxHeight=c+"px",r?.(),requestAnimationFrame(()=>p.current=!0)}},[h,i.trigger,i.valueNode,a,l,g,m,v,i.dir,r]);Ud(()=>b(),[b]);const[w,x]=zr.useState();return Ud(()=>{l&&x(window.getComputedStyle(l).zIndex)},[l]),(0,ru.jsx)(yg,{scope:n,contentWrapper:a,shouldExpandOnScrollRef:p,onScrollButtonChange:zr.useCallback(e=>{e&&!0===f.current&&(b(),y?.(),f.current=!1)},[b,y]),children:(0,ru.jsx)("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:w},children:(0,ru.jsx)(yd.div,{...o,ref:d,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});mg.displayName="SelectItemAlignedPosition";var vg=zr.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=dg,...i}=e,s=Qf(n);return(0,ru.jsx)(Up,{...s,...i,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...i.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});vg.displayName="SelectPopperPosition";var[yg,bg]=Jf(lg,{}),wg="SelectViewport",xg=zr.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,i=pg(wg,n),s=bg(wg,n),a=Bu(t,i.onViewportChange),c=zr.useRef(0);return(0,ru.jsxs)(ru.Fragment,{children:[(0,ru.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),(0,ru.jsx)(Kf.Slot,{scope:n,children:(0,ru.jsx)(yd.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:a,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:od(o.onScroll,e=>{const t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=s;if(r?.current&&n){const e=Math.abs(c.current-t.scrollTop);if(e>0){const r=window.innerHeight-2*dg,o=parseFloat(n.style.minHeight),i=parseFloat(n.style.height),s=Math.max(o,i);if(s<r){const o=s+e,i=Math.min(r,o),a=o-i;n.style.height=i+"px","0px"===n.style.bottom&&(t.scrollTop=a>0?a:0,n.style.justifyContent="flex-end")}}}c.current=t.scrollTop})})})]})});xg.displayName=wg;var _g="SelectGroup",[Eg,Sg]=Jf(_g),kg=zr.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=zd();return(0,ru.jsx)(Eg,{scope:n,id:o,children:(0,ru.jsx)(yd.div,{role:"group","aria-labelledby":o,...r,ref:t})})});kg.displayName=_g;var Og="SelectLabel",Cg=zr.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Sg(Og,n);return(0,ru.jsx)(yd.div,{id:o.id,...r,ref:t})});Cg.displayName=Og;var Pg="SelectItem",[Rg,Lg]=Jf(Pg),Tg=zr.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:i,...s}=e,a=Zf(Pg,n),c=pg(Pg,n),l=a.value===r,[u,d]=zr.useState(i??""),[h,p]=zr.useState(!1),f=Bu(t,e=>c.itemRefCallback?.(e,r,o)),g=zd(),m=zr.useRef("touch"),v=()=>{o||(a.onValueChange(r),a.onOpenChange(!1))};if(""===r)throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return(0,ru.jsx)(Rg,{scope:n,value:r,disabled:o,textId:g,isSelected:l,onItemTextChange:zr.useCallback(e=>{d(t=>t||(e?.textContent??"").trim())},[]),children:(0,ru.jsx)(Kf.ItemSlot,{scope:n,value:r,disabled:o,textValue:u,children:(0,ru.jsx)(yd.div,{role:"option","aria-labelledby":g,"data-highlighted":h?"":void 0,"aria-selected":l&&h,"data-state":l?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...s,ref:f,onFocus:od(s.onFocus,()=>p(!0)),onBlur:od(s.onBlur,()=>p(!1)),onClick:od(s.onClick,()=>{"mouse"!==m.current&&v()}),onPointerUp:od(s.onPointerUp,()=>{"mouse"===m.current&&v()}),onPointerDown:od(s.onPointerDown,e=>{m.current=e.pointerType}),onPointerMove:od(s.onPointerMove,e=>{m.current=e.pointerType,o?c.onItemLeave?.():"mouse"===m.current&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:od(s.onPointerLeave,e=>{e.currentTarget===document.activeElement&&c.onItemLeave?.()}),onKeyDown:od(s.onKeyDown,e=>{""!==c.searchRef?.current&&" "===e.key||(zf.includes(e.key)&&v()," "===e.key&&e.preventDefault())})})})})});Tg.displayName=Pg;var Dg="SelectItemText",Ng=zr.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...i}=e,s=Zf(Dg,n),a=pg(Dg,n),c=Lg(Dg,n),l=tg(Dg,n),[u,d]=zr.useState(null),h=Bu(t,e=>d(e),c.onItemTextChange,e=>a.itemTextRefCallback?.(e,c.value,c.disabled)),p=u?.textContent,f=zr.useMemo(()=>(0,ru.jsx)("option",{value:c.value,disabled:c.disabled,children:p},c.value),[c.disabled,c.value,p]),{onNativeOptionAdd:g,onNativeOptionRemove:m}=l;return Ud(()=>(g(f),()=>m(f)),[g,m,f]),(0,ru.jsxs)(ru.Fragment,{children:[(0,ru.jsx)(yd.span,{id:c.textId,...i,ref:h}),c.isSelected&&s.valueNode&&!s.valueNodeHasChildren?Jc.createPortal(i.children,s.valueNode):null]})});Ng.displayName=Dg;var jg="SelectItemIndicator",Ag=zr.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return Lg(jg,n).isSelected?(0,ru.jsx)(yd.span,{"aria-hidden":!0,...r,ref:t}):null});Ag.displayName=jg;var Ig="SelectScrollUpButton",Mg=zr.forwardRef((e,t)=>{const n=pg(Ig,e.__scopeSelect),r=bg(Ig,e.__scopeSelect),[o,i]=zr.useState(!1),s=Bu(t,r.onScrollButtonChange);return Ud(()=>{if(n.viewport&&n.isPositioned){let e=function(){i(t.scrollTop>0)};const t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[n.viewport,n.isPositioned]),o?(0,ru.jsx)(Hg,{...e,ref:s,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}}):null});Mg.displayName=Ig;var $g="SelectScrollDownButton",Fg=zr.forwardRef((e,t)=>{const n=pg($g,e.__scopeSelect),r=bg($g,e.__scopeSelect),[o,i]=zr.useState(!1),s=Bu(t,r.onScrollButtonChange);return Ud(()=>{if(n.viewport&&n.isPositioned){let e=function(){const e=t.scrollHeight-t.clientHeight;i(Math.ceil(t.scrollTop)<e)};const t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[n.viewport,n.isPositioned]),o?(0,ru.jsx)(Hg,{...e,ref:s,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}}):null});Fg.displayName=$g;var Hg=zr.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,i=pg("SelectScrollButton",n),s=zr.useRef(null),a=Wf(n),c=zr.useCallback(()=>{null!==s.current&&(window.clearInterval(s.current),s.current=null)},[]);return zr.useEffect(()=>()=>c(),[c]),Ud(()=>{a().find(e=>e.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[a]),(0,ru.jsx)(yd.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:od(o.onPointerDown,()=>{null===s.current&&(s.current=window.setInterval(r,50))}),onPointerMove:od(o.onPointerMove,()=>{i.onItemLeave?.(),null===s.current&&(s.current=window.setInterval(r,50))}),onPointerLeave:od(o.onPointerLeave,()=>{c()})})}),Ug=zr.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return(0,ru.jsx)(yd.div,{"aria-hidden":!0,...r,ref:t})});Ug.displayName="SelectSeparator";var qg="SelectArrow",Bg=zr.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Qf(n),i=Zf(qg,n),s=pg(qg,n);return i.open&&"popper"===s.position?(0,ru.jsx)(qp,{...o,...r,ref:t}):null});Bg.displayName=qg;var zg=zr.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const o=zr.useRef(null),i=Bu(r,o),s=function(e){const t=zr.useRef({value:e,previous:e});return zr.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}(t);return zr.useEffect(()=>{const e=o.current;if(!e)return;const n=window.HTMLSelectElement.prototype,r=Object.getOwnPropertyDescriptor(n,"value").set;if(s!==t&&r){const n=new Event("change",{bubbles:!0});r.call(e,t),e.dispatchEvent(n)}},[s,t]),(0,ru.jsx)(yd.select,{...n,style:{...Kp,...n.style},ref:i,defaultValue:t})});function Vg(e){return""===e||void 0===e}function Kg(e){const t=bd(e),n=zr.useRef(""),r=zr.useRef(0),o=zr.useCallback(e=>{const o=n.current+e;t(o),function e(t){n.current=t,window.clearTimeout(r.current),""!==t&&(r.current=window.setTimeout(()=>e(""),1e3))}(o)},[t]),i=zr.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return zr.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,i]}function Wg(e,t,n){const r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,o=n?e.indexOf(n):-1;let i=(s=e,a=Math.max(o,0),s.map((e,t)=>s[(a+t)%s.length]));var s,a;1===r.length&&(i=i.filter(e=>e!==n));const c=i.find(e=>e.textValue.toLowerCase().startsWith(r.toLowerCase()));return c!==n?c:void 0}zg.displayName="SelectBubbleInput";var Gg=ng,Jg=og,Yg=sg,Qg=ag,Xg=cg,Zg=ug,em=xg,tm=kg,nm=Cg,rm=Tg,om=Ng,im=Ag,sm=Mg,am=Fg,cm=Ug,lm=Bg,um=e=>zr.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},zr.createElement("g",{clipPath:"url(#clip0_17_2062)"},zr.createElement("path",{d:"M7.41 8.58997L12 13.17L16.59 8.58997L18 9.99997L12 16L6 9.99997L7.41 8.58997Z"}))),dm=e=>zr.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e},zr.createElement("g",{clipPath:"url(#clip0_17_4631)"},zr.createElement("path",{d:"M9.00016 16.17L4.83016 12L3.41016 13.41L9.00016 19L21.0002 6.99997L19.5902 5.58997L9.00016 16.17Z"}))),hm=({size:e="medium",children:t,...n})=>(0,ru.jsxs)(Jg,{className:"\n inline-flex items-center justify-between flex-1\n bg-ll-background rounded-sm border\n py-1 pr-2 pl-3 min-w-[120px]\n data-[size=medium]:text-ll-font-size-p data-[size=medium]:h-8\n data-[size=large]:text-ll-font-size-h6 data-[size=large]:h-10\n","data-size":e,...n,children:[t,(0,ru.jsx)(ag,{children:(0,ru.jsx)(Fu,{SVGElement:um,fill:Ru["--ll-color-on-background-variant1"]})})]}),pm=({size:e="medium",children:t,...n})=>(0,ru.jsx)(Zg,{className:"\n overflow-hidden bg-ll-background rounded-sm shadow-md\n z-10 min-w-[120px]\n data-[size=medium]:text-ll-font-size-p\n data-[size=large]:text-ll-font-size-h6\n","data-size":e,...n,children:(0,ru.jsx)(em,{className:"font-inherit p-0",children:t})}),fm=({variant:e="dark",children:t,...n})=>(0,ru.jsxs)(rm,{className:'\n font-sans font-inherit py-1 pr-8 pl-6 outline-none\n relative rounded-sm cursor-default text-ll-on-surface-variant1\n\n data-[highlighted]:[&:not([data-variant="light"])]:bg-ll-primary\n data-[highlighted]:[&:not([data-variant="light"])]:text-ll-on-primary\n\n // Special color between now and design system\n data-[highlighted]:[&:not([data-variant="dark"])]:bg-[#EBF5F7]\n data-[highlighted]:[&:not([data-variant="dark"])]:text-ll-on-surface\n ',"data-variant":e,...n,children:[(0,ru.jsx)(om,{children:t}),(0,ru.jsx)(im,{className:"\n absolute left-0 bottom-0\n inline-flex justify-center items-center\n h-full w-6\n",children:(0,ru.jsx)(Fu,{SVGElement:dm,fill:"currentColor",height:12,width:12})})]}),{Root:gm}=qf;var mm=e=>{const{present:t,children:n}=e,r=function(e){const[t,n]=zr.useState(),r=zr.useRef(null),o=zr.useRef(e),i=zr.useRef("none"),[s,a]=function(e,t){return zr.useReducer((e,n)=>t[e][n]??e,e)}(e?"mounted":"unmounted",{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return zr.useEffect(()=>{const e=vm(r.current);i.current="mounted"===s?e:"none"},[s]),Ud(()=>{const t=r.current,n=o.current;if(n!==e){const r=i.current,s=vm(t);a(e?"MOUNT":"none"===s||"none"===t?.display?"UNMOUNT":n&&r!==s?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,a]),Ud(()=>{if(t){let e;const n=t.ownerDocument.defaultView??window,s=i=>{const s=vm(r.current).includes(i.animationName);if(i.target===t&&s&&(a("ANIMATION_END"),!o.current)){const r=t.style.animationFillMode;t.style.animationFillMode="forwards",e=n.setTimeout(()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=r)})}},c=e=>{e.target===t&&(i.current=vm(r.current))};return t.addEventListener("animationstart",c),t.addEventListener("animationcancel",s),t.addEventListener("animationend",s),()=>{n.clearTimeout(e),t.removeEventListener("animationstart",c),t.removeEventListener("animationcancel",s),t.removeEventListener("animationend",s)}}a("ANIMATION_END")},[t,a]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:zr.useCallback(e=>{r.current=e?getComputedStyle(e):null,n(e)},[])}}(t),o="function"==typeof n?n({present:r.isPresent}):zr.Children.only(n),i=Bu(r.ref,function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}(o));return"function"==typeof n||r.isPresent?zr.cloneElement(o,{ref:i}):null};function vm(e){return e?.animationName||"none"}mm.displayName="Presence";var ym=r({Anchor:()=>Vm,Arrow:()=>Ym,Close:()=>Jm,Content:()=>Gm,Popover:()=>km,PopoverAnchor:()=>Cm,PopoverArrow:()=>qm,PopoverClose:()=>Um,PopoverContent:()=>Am,PopoverPortal:()=>Nm,PopoverTrigger:()=>Rm,Portal:()=>Wm,Root:()=>zm,Trigger:()=>Km,createPopoverScope:()=>xm}),bm="Popover",[wm,xm]=id(bm,[Ep]),_m=Ep(),[Em,Sm]=wm(bm),km=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:s=!1}=e,a=_m(t),c=zr.useRef(null),[l,u]=zr.useState(!1),[d,h]=Vp({prop:r,defaultProp:o??!1,onChange:i,caller:bm});return(0,ru.jsx)(Fp,{...a,children:(0,ru.jsx)(Em,{scope:t,contentId:zd(),triggerRef:c,open:d,onOpenChange:h,onOpenToggle:zr.useCallback(()=>h(e=>!e),[h]),hasCustomAnchor:l,onCustomAnchorAdd:zr.useCallback(()=>u(!0),[]),onCustomAnchorRemove:zr.useCallback(()=>u(!1),[]),modal:s,children:n})})};km.displayName=bm;var Om="PopoverAnchor",Cm=zr.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Sm(Om,n),i=_m(n),{onCustomAnchorAdd:s,onCustomAnchorRemove:a}=o;return zr.useEffect(()=>(s(),()=>a()),[s,a]),(0,ru.jsx)(Hp,{...i,...r,ref:t})});Cm.displayName=Om;var Pm="PopoverTrigger",Rm=zr.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Sm(Pm,n),i=_m(n),s=Bu(t,o.triggerRef),a=(0,ru.jsx)(yd.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Bm(o.open),...r,ref:s,onClick:od(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?a:(0,ru.jsx)(Hp,{asChild:!0,...i,children:a})});Rm.displayName=Pm;var Lm="PopoverPortal",[Tm,Dm]=wm(Lm,{forceMount:void 0}),Nm=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,i=Sm(Lm,t);return(0,ru.jsx)(Tm,{scope:t,forceMount:n,children:(0,ru.jsx)(mm,{present:n||i.open,children:(0,ru.jsx)(Bp,{asChild:!0,container:o,children:r})})})};Nm.displayName=Lm;var jm="PopoverContent",Am=zr.forwardRef((e,t)=>{const n=Dm(jm,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,i=Sm(jm,e.__scopePopover);return(0,ru.jsx)(mm,{present:r||i.open,children:i.modal?(0,ru.jsx)(Mm,{...o,ref:t}):(0,ru.jsx)($m,{...o,ref:t})})});Am.displayName=jm;var Im=ad("PopoverContent.RemoveScroll"),Mm=zr.forwardRef((e,t)=>{const n=Sm(jm,e.__scopePopover),r=zr.useRef(null),o=Bu(t,r),i=zr.useRef(!1);return zr.useEffect(()=>{const e=r.current;if(e)return Zp(e)},[]),(0,ru.jsx)(Uf,{as:Im,allowPinchZoom:!0,children:(0,ru.jsx)(Fm,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:od(e.onCloseAutoFocus,e=>{e.preventDefault(),i.current||n.triggerRef.current?.focus()}),onPointerDownOutside:od(e.onPointerDownOutside,e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;i.current=2===t.button||n},{checkForDefaultPrevented:!1}),onFocusOutside:od(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),$m=zr.forwardRef((e,t)=>{const n=Sm(jm,e.__scopePopover),r=zr.useRef(!1),o=zr.useRef(!1);return(0,ru.jsx)(Fm,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,"pointerdown"===t.detail.originalEvent.type&&(o.current=!0));const i=t.target;n.triggerRef.current?.contains(i)&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}})}),Fm=zr.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,disableOutsidePointerEvents:s,onEscapeKeyDown:a,onPointerDownOutside:c,onFocusOutside:l,onInteractOutside:u,...d}=e,h=Sm(jm,n),p=_m(n);return Rd(),(0,ru.jsx)(jd,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:(0,ru.jsx)(kd,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:u,onEscapeKeyDown:a,onPointerDownOutside:c,onFocusOutside:l,onDismiss:()=>h.onOpenChange(!1),children:(0,ru.jsx)(Up,{"data-state":Bm(h.open),role:"dialog",id:h.contentId,...p,...d,ref:t,style:{...d.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),Hm="PopoverClose",Um=zr.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Sm(Hm,n);return(0,ru.jsx)(yd.button,{type:"button",...r,ref:t,onClick:od(e.onClick,()=>o.onOpenChange(!1))})});Um.displayName=Hm;var qm=zr.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=_m(n);return(0,ru.jsx)(qp,{...o,...r,ref:t})});function Bm(e){return e?"open":"closed"}qm.displayName="PopoverArrow";var zm=km,Vm=Cm,Km=Rm,Wm=Nm,Gm=Am,Jm=Um,Ym=qm,{Root:Qm,Portal:Xm}=ym,Zm=zr.createContext({}),ev=()=>(0,zr.useContext)(Zm),tv=()=>{const{data:e,colors:t,icon:n}=ev(),r=e.reduce((e,t)=>e+t,0),o=(0,zr.useMemo)(()=>e.map((n,o)=>{const i=n/r*100>50,s=e.slice(0,o).reduce((e,t)=>e+t,0)/r*360,a=n/r*360,c=i?"-100%":"0%",l=i?"200%":"100%";return(0,ru.jsx)("div",{className:"ll-donut-segment",style:{"--ll-chart-donut-segment-clip-path":`polygon(${c} ${c}, ${l} ${c}, ${l} ${l}, ${c} ${l})`,"--ll-chart-donut-segment-bg":t?.[o]??"#000","--ll-chart-donut-segment-degrees":s,"--ll-chart-donut-segment-before-degrees":a,"--ll-chart-donut-segment-opacity":i?1:0}},`segment-${o}`)}),[e,t]);return(0,ru.jsxs)("div",{className:"\n relative aspect-square rounded-full flex items-center justify-center overflow-hidden\n",children:[o,(0,ru.jsx)("div",{className:"\n bg-ll-surface rounded-full w-[70%] h-[70%]\n flex items-center justify-center absolute\n",children:(0,ru.jsx)("div",{className:"\n flex items-center justify-center\n w-full h-full\n\n [&>svg]:w-1/2\n [&>svg]:w-1/2\n [&>svg>path]:fill-ll-primary\n",children:n})})]})},nv=()=>{const{labels:e,colors:t}=ev();return(0,ru.jsx)("ul",{className:"list-none p-0",children:e.map((e,n)=>(0,ru.jsxs)("li",{className:"flex items-center",children:[(0,ru.jsx)("div",{className:"w-3 h-3 rounded mr-2.5",style:{backgroundColor:t?.[n]||"#000"}}),(0,ru.jsx)(Hu,{noMargin:!0,lineClamp:1,variant:"caption1",children:e})]},e))})},rv=()=>{const{title:e,labels:t,data:n,unit:r}=ev(),o=(0,zr.useMemo)(()=>{if(n)return[...n].sort((e,t)=>e-t).reverse()[0]},[n]),i=(0,zr.useMemo)(()=>r&&o?10*Math.ceil(o/10):100,[o,r]),s=(0,zr.useMemo)(()=>n.map((e,n)=>({label:t[n],value:e,width:Math.round(100*e/i)})),[i,n,t]);return(0,ru.jsxs)("div",{className:"\n h-full w-full overflow-hidden bg-ll-surface\n rounded-md p-3 flex flex-col\n",children:[(0,ru.jsx)("div",{className:"h-[6%] min-h-5",children:(0,ru.jsx)(Hu,{variant:"p",noMargin:!0,weight:"--ll-font-weight-bold",children:`${e} (${r})`})}),(0,ru.jsx)("div",{className:"grow mx-0 my-2 grid gap-y-1",children:s.map(e=>(0,ru.jsxs)("div",{className:"\n grid grid-rows-1 grid-cols-[140px_calc(100%-165px)]\n gap-y-1 items-center\n",children:["0"!==e.label&&(0,ru.jsx)(Hu,{noMargin:!0,variant:"caption2",children:e.label}),(0,ru.jsxs)("div",{className:"\n relative py-0.5 px-2.5 h-full\n flex justify-start items-center\n",children:[(0,ru.jsx)("div",{className:"\n z-10 flex items-center justify-center\n h-full w-10 absolute top-0\n",style:{left:`${e.width}%`},children:(0,ru.jsxs)(Hu,{noMargin:!0,align:"center",color:"--ll-color-on-background",variant:"caption2",children:[e.value,r]})}),(0,ru.jsx)("span",{className:"\n bg-ll-primary rounded-r-md inline-block h-full absolute top-0 bottom-0 left-0\n",style:{width:`${e.width}%`}})]})]},e.label))}),(0,ru.jsxs)("div",{className:"\n border-t border-ll-placeholder border-solid\n h-[6%] min-h-3 w-[calc(100%-165px)]\n ml-[140px] grid grid-cols-3\n",children:[(0,ru.jsx)(Hu,{noMargin:!0,variant:"caption2",color:"--ll-color-on-background",children:"0"}),(0,ru.jsx)(Hu,{noMargin:!0,variant:"caption2",align:"center",color:"--ll-color-on-background",children:`${i/2}${r}`}),(0,ru.jsx)(Hu,{noMargin:!0,variant:"caption2",align:"right",color:"--ll-color-on-background",children:`${i}${r}`})]})]})},ov=["rgb(0, 188,202)","rgb(208,232,233)","rgb(243,209,130)","rgb(255,116,16)","rgb(52,65,181)","rgb(151,184,126)","rgb(0,132,145)","rgb(62,49,91)"],iv=e=>(0,ru.jsx)(Zm.Provider,{value:{...e,colors:e.colors??ov},children:e.children}),sv=({title:e,labels:t,data:n,icon:r})=>(0,ru.jsxs)("div",{className:"\n w-full h-full\n overflow-hidden\n bg-ll-surface\n font-sans\n rounded-md\n p-3\n",children:[(0,ru.jsx)("div",{className:"\n mb-2\n",children:(0,ru.jsx)(Hu,{variant:"p",noMargin:!0,weight:"--ll-font-weight-bold",children:e})}),(0,ru.jsx)(iv,{data:n,labels:t,icon:r,children:(0,ru.jsxs)("div",{className:"\n items-center\n h-[80%]\n overflow-hidden\n my-0 mx-auto\n w-[90%] max-w-[380px] \n flex flex-row\n justify-between\n",children:[(0,ru.jsx)("div",{className:"\n w-[35%] md:w-[45%]\n",children:(0,ru.jsx)(tv,{})}),(0,ru.jsx)(ru.Fragment,{children:(0,ru.jsx)(nv,{})})]})})]}),av=({error:e})=>(0,ru.jsxs)("div",{className:"\n w-full h-full flex items-center justify-center flex-col\n","data-testid":"error-fallback",children:[(0,ru.jsx)(Hu,{variant:"h4",children:"An error occurred"}),(0,ru.jsx)(Hu,{variant:"p",color:"--ll-color-on-background-variant1",children:e.message})]}),cv=Object.create,lv=Object.defineProperty,uv=Object.getOwnPropertyDescriptor,dv=Object.getOwnPropertyNames,hv=Object.getPrototypeOf,pv=Object.prototype.hasOwnProperty,fv=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),gv=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(var o,i=dv(t),s=0,a=i.length;s<a;s++)o=i[s],!pv.call(e,o)&&o!==n&&lv(e,o,{get:(e=>t[e]).bind(null,o),enumerable:!(r=uv(t,o))||r.enumerable});return e},mv=(e,t,n)=>(n=null==e?{}:cv(hv(e)),gv(!t&&e&&e.__esModule?n:lv(n,"default",{value:e,enumerable:!0}),e)),vv="CONNECT",yv=function(e){return e.GET_STATE="get-state",e.GET_STATE_RESPONSE="get-state-response",e.SET_STATE="set-state",e.ON_CHANGE="on-change",e.RESIZE="resize",e}({}),bv=new(mv(fv((e,t)=>{var n=(()=>{var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable,s=(t,n,r)=>n in t?e(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r,a=(e,t)=>{for(var n in t||(t={}))o.call(t,n)&&s(e,n,t[n]);if(r)for(var n of r(t))i.call(t,n)&&s(e,n,t[n]);return e},c=(r,i,s,a)=>{if(i&&"object"==typeof i||"function"==typeof i)for(let c of n(i))!o.call(r,c)&&c!==s&&e(r,c,{get:()=>i[c],enumerable:!(a=t(i,c))||a.enumerable});return r},l=(e,t,n)=>s(e,"symbol"==typeof t?t:t+"",n),u={};((t,n)=>{for(var r in n)e(t,r,{get:n[r],enumerable:!0})})(u,{DEFAULT_OPTIONS:()=>h,DEFAULT_UUID_LENGTH:()=>d,default:()=>f});var d=6,h={dictionary:"alphanum",shuffle:!0,debug:!1,length:d,counter:0},p=class{constructor(e={}){l(this,"counter"),l(this,"debug"),l(this,"dict"),l(this,"version"),l(this,"dictIndex",0),l(this,"dictRange",[]),l(this,"lowerBound",0),l(this,"upperBound",0),l(this,"dictLength",0),l(this,"uuidLength"),l(this,"_digit_first_ascii",48),l(this,"_digit_last_ascii",58),l(this,"_alpha_lower_first_ascii",97),l(this,"_alpha_lower_last_ascii",123),l(this,"_hex_last_ascii",103),l(this,"_alpha_upper_first_ascii",65),l(this,"_alpha_upper_last_ascii",91),l(this,"_number_dict_ranges",{digits:[this._digit_first_ascii,this._digit_last_ascii]}),l(this,"_alpha_dict_ranges",{lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii],upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]}),l(this,"_alpha_lower_dict_ranges",{lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii]}),l(this,"_alpha_upper_dict_ranges",{upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]}),l(this,"_alphanum_dict_ranges",{digits:[this._digit_first_ascii,this._digit_last_ascii],lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii],upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]}),l(this,"_alphanum_lower_dict_ranges",{digits:[this._digit_first_ascii,this._digit_last_ascii],lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii]}),l(this,"_alphanum_upper_dict_ranges",{digits:[this._digit_first_ascii,this._digit_last_ascii],upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]}),l(this,"_hex_dict_ranges",{decDigits:[this._digit_first_ascii,this._digit_last_ascii],alphaDigits:[this._alpha_lower_first_ascii,this._hex_last_ascii]}),l(this,"_dict_ranges",{_number_dict_ranges:this._number_dict_ranges,_alpha_dict_ranges:this._alpha_dict_ranges,_alpha_lower_dict_ranges:this._alpha_lower_dict_ranges,_alpha_upper_dict_ranges:this._alpha_upper_dict_ranges,_alphanum_dict_ranges:this._alphanum_dict_ranges,_alphanum_lower_dict_ranges:this._alphanum_lower_dict_ranges,_alphanum_upper_dict_ranges:this._alphanum_upper_dict_ranges,_hex_dict_ranges:this._hex_dict_ranges}),l(this,"log",(...e)=>{let t=[...e];t[0]=`[short-unique-id] ${e[0]}`,!0===this.debug&&typeof console<"u"&&null!==console&&console.log(...t)}),l(this,"_normalizeDictionary",(e,t)=>{let n;if(e&&Array.isArray(e)&&e.length>1)n=e;else{n=[],this.dictIndex=0;let t=`_${e}_dict_ranges`,r=this._dict_ranges[t],o=0;for(let[,e]of Object.entries(r)){let[t,n]=e;o+=Math.abs(n-t)}n=Array(o);let i=0;for(let[,e]of Object.entries(r)){this.dictRange=e,this.lowerBound=this.dictRange[0],this.upperBound=this.dictRange[1];let t=this.lowerBound<=this.upperBound,r=this.lowerBound,o=this.upperBound;if(t)for(let e=r;e<o;e++)n[i++]=String.fromCharCode(e),this.dictIndex=e;else for(let e=r;e>o;e--)n[i++]=String.fromCharCode(e),this.dictIndex=e}n.length=i}if(t){for(let e=n.length-1;e>0;e--){let t=Math.floor(Math.random()*(e+1));[n[e],n[t]]=[n[t],n[e]]}}return n}),l(this,"setDictionary",(e,t)=>{this.dict=this._normalizeDictionary(e,t),this.dictLength=this.dict.length,this.setCounter(0)}),l(this,"seq",()=>this.sequentialUUID()),l(this,"sequentialUUID",()=>{let e=this.dictLength,t=this.dict,n=this.counter,r=[];do{let o=n%e;n=Math.trunc(n/e),r.push(t[o])}while(0!==n);let o=r.join("");return this.counter+=1,o}),l(this,"rnd",(e=this.uuidLength||d)=>this.randomUUID(e)),l(this,"randomUUID",(e=this.uuidLength||d)=>{if(null==e||e<1)throw Error("Invalid UUID Length Provided");let t=Array(e),n=this.dictLength,r=this.dict;for(let o=0;o<e;o++)t[o]=r[Math.floor(Math.random()*n)];return t.join("")}),l(this,"fmt",(e,t)=>this.formattedUUID(e,t)),l(this,"formattedUUID",(e,t)=>{let n={$r:this.randomUUID,$s:this.sequentialUUID,$t:this.stamp};return e.replace(/\$[rs]\d{0,}|\$t0|\$t[1-9]\d{1,}/g,e=>{let r=e.slice(0,2),o=Number.parseInt(e.slice(2),10);return"$s"===r?n[r]().padStart(o,"0"):"$t"===r&&t?n[r](o,t):n[r](o)})}),l(this,"availableUUIDs",(e=this.uuidLength)=>Number.parseFloat(([...new Set(this.dict)].length**e).toFixed(0))),l(this,"_collisionCache",new Map),l(this,"approxMaxBeforeCollision",(e=this.availableUUIDs(this.uuidLength))=>{let t=e,n=this._collisionCache.get(t);if(void 0!==n)return n;let r=Number.parseFloat(Math.sqrt(Math.PI/2*e).toFixed(20));return this._collisionCache.set(t,r),r}),l(this,"collisionProbability",(e=this.availableUUIDs(this.uuidLength),t=this.uuidLength)=>Number.parseFloat((this.approxMaxBeforeCollision(e)/this.availableUUIDs(t)).toFixed(20))),l(this,"uniqueness",(e=this.availableUUIDs(this.uuidLength))=>{let t=Number.parseFloat((1-this.approxMaxBeforeCollision(e)/e).toFixed(20));return t>1?1:t<0?0:t}),l(this,"getVersion",()=>this.version),l(this,"stamp",(e,t)=>{let n=Math.floor((t||new Date)/1e3).toString(16);if("number"==typeof e&&0===e)return n;if("number"!=typeof e||e<10)throw Error(["Param finalLength must be a number greater than or equal to 10,","or 0 if you want the raw hexadecimal timestamp"].join("\n"));let r=e-9,o=Math.round(Math.random()*(r>15?15:r)),i=this.randomUUID(r);return`${i.substring(0,o)}${n}${i.substring(o)}${o.toString(16)}`}),l(this,"parseStamp",(e,t)=>{if(t&&!/t0|t[1-9]\d{1,}/.test(t))throw Error("Cannot extract date from a formated UUID with no timestamp in the format");let n=t?t.replace(/\$[rs]\d{0,}|\$t0|\$t[1-9]\d{1,}/g,e=>{let t={$r:e=>[...Array(e)].map(()=>"r").join(""),$s:e=>[...Array(e)].map(()=>"s").join(""),$t:e=>[...Array(e)].map(()=>"t").join("")},n=e.slice(0,2),r=Number.parseInt(e.slice(2),10);return t[n](r)}).replace(/^(.*?)(t{8,})(.*)$/g,(t,n,r)=>e.substring(n.length,n.length+r.length)):e;if(8===n.length)return new Date(1e3*Number.parseInt(n,16));if(n.length<10)throw Error("Stamp length invalid");let r=Number.parseInt(n.substring(n.length-1),16);return new Date(1e3*Number.parseInt(n.substring(r,r+8),16))}),l(this,"setCounter",e=>{this.counter=e}),l(this,"validate",(e,t)=>{let n=t?this._normalizeDictionary(t):this.dict;return e.split("").every(e=>n.includes(e))});let t=a(a({},h),e);this.counter=0,this.debug=!1,this.dict=[],this.version="5.3.2";let{dictionary:n,shuffle:r,length:o,counter:i}=t;this.uuidLength=o,this.setDictionary(n,r),this.setCounter(i),this.debug=t.debug,this.log(this.dict),this.log(`Generator instantiated with Dictionary Size ${this.dictLength} and counter set to ${this.counter}`),this.log=this.log.bind(this),this.setDictionary=this.setDictionary.bind(this),this.setCounter=this.setCounter.bind(this),this.seq=this.seq.bind(this),this.sequentialUUID=this.sequentialUUID.bind(this),this.rnd=this.rnd.bind(this),this.randomUUID=this.randomUUID.bind(this),this.fmt=this.fmt.bind(this),this.formattedUUID=this.formattedUUID.bind(this),this.availableUUIDs=this.availableUUIDs.bind(this),this.approxMaxBeforeCollision=this.approxMaxBeforeCollision.bind(this),this.collisionProbability=this.collisionProbability.bind(this),this.uniqueness=this.uniqueness.bind(this),this.getVersion=this.getVersion.bind(this),this.stamp=this.stamp.bind(this),this.parseStamp=this.parseStamp.bind(this)}};l(p,"default",p);var f=p;return(t=>c(e({},"__esModule",{value:!0}),t))(u)})();void 0!==t&&(t.exports=n.default),typeof window<"u"&&(n=n.default)})(),1).default)({length:10}),wv=class e{constructor(e,t){this.onMessageHandlers=[],this.message=(e,t,n)=>this.crossOrigin?this.postMessage(e,t,n):this.customEventMessage(e,t,n),this.channelId=e??"DEFAULT",this.channelNodeId=`channel-node-${bv.rnd()}`,this.crossOrigin=t,this.connection=new Promise(e=>{this.resolveConnection=e}),this.boundMessageHandler=this.handleMessage.bind(this)}disconnect(){this.onMessageHandlers=[],window.removeEventListener(this.channelId,this.boundMessageHandler),this.connection=new Promise(e=>{this.resolveConnection=e})}onMessage(e){this.onMessageHandlers.push(e)}removeMessageHandler(e){let t=this.onMessageHandlers.findIndex(t=>t===e);this.onMessageHandlers.splice(t,1)}customEventMessage(e,t,n){let r=new CustomEvent(this.channelId,{detail:{eventId:n,channelId:this.channelId,channelNodeId:this.channelNodeId,name:e,data:t}});window.dispatchEvent(r)}postMessage(e,t,n){this.crossOrigin?.targetOrigin?this.crossOrigin?.window?.postMessage({eventId:n,channelId:this.channelId,channelNodeId:this.channelNodeId,name:e,data:t},this.crossOrigin?.targetOrigin):console.error("A target origin was not specified.")}async eventRequest(e,t){let n=bv.rnd();return new Promise(r=>{let o=e=>{let{eventId:t}=e;n===t&&(this.removeMessageHandler(o),r(e))};this.onMessage(o),this.message(e,t,n)})}async waitForEvent(e){return new Promise(t=>{let n=r=>{let{name:o}=r;e===o&&(this.removeMessageHandler(n),t(r))};this.onMessage(n)})}handleMessage(t){let n;if(e.isCustomEvent(t))n=t.detail;else{if(this.crossOrigin&&!this.crossOrigin.targetOrigin.includes(t.origin)&&"*"!==this.crossOrigin?.targetOrigin)return;n=t.data}let{channelId:r,channelNodeId:o}=n;this.channelId===r&&this.channelNodeId!==o&&this.onMessageHandlers.forEach(e=>{e(n)})}static isCustomEvent(e){return void 0!==e.detail}},xv=class extends wv{connect(){return window.addEventListener(this.crossOrigin?"message":this.channelId,this.boundMessageHandler),this.eventRequest(vv).then(e=>{this.resolveConnection(e)}),this.connection}},_v=o((e,t)=>{var n=1/0,r=17976931348623157e292,o=NaN,i="[object Symbol]",s=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,l=/^0o[0-7]+$/i,u=parseInt,d=Object.prototype.toString;function h(e,t){var h;if("function"!=typeof t)throw new TypeError("Expected a function");return e=function(e){var t=function(e){return e?(e=function(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&d.call(e)==i}(e))return o;if(p(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=p(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(s,"");var n=c.test(e);return n||l.test(e)?u(e.slice(2),n?2:8):a.test(e)?o:+e}(e),e===n||e===-1/0?(e<0?-1:1)*r:e==e?e:0):0===e?e:0}(e),h=t%1;return t==t?h?t-h:t:0}(e),function(){return--e>0&&(h=t.apply(this,arguments)),e<=1&&(t=void 0),h}}function p(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}t.exports=function(e){return h(2,e)}}),Ev=e(_v(),1),Sv={},kv={zoom:15,pitch:0,bearing:0,cooperativeGestures:!0,mapProvider:{name:"maptiler"},hideAttribution:!1,showSchoolRatings:!1},Ov={},Cv={},Pv={hideAttribution:!1},Rv={},Lv={},Tv={hideAttribution:!1},Dv={buyerColor:"#21BCCC",neutralColor:"#BEBEBE",sellerColor:"#FDC033",decreaseColor:"#EF4444",increaseColor:"#21BCCC"},Nv={locale:"en"},jv={"local-content":{globalOptions:Nv,options:{mapProvider:{name:"maptiler"},zoom:14,pitch:0,bearing:0,cooperativeGestures:!0,distanceUnit:"metric",hideScores:!1,showSchoolRatings:!1,scoresMenu:{defaultOpen:!0,title:!0,categories:{amenities:{hide:!1,order:1,colors:{background:"#FFF2C3",fill:"#BF8500"},scores:{shopping:{hide:!1,hideScore:!1,order:1},groceries:{hide:!1,hideScore:!1,order:2},restaurants:{hide:!1,hideScore:!1,order:3},cafes:{hide:!1,hideScore:!1,order:4}}},education:{hide:!1,order:2,colors:{background:"#E4EFFF",fill:"#003548"},scores:{daycares:{hide:!1,hideScore:!1,order:1},primary_schools:{hide:!1,hideScore:!1,order:2},high_schools:{hide:!1,hideScore:!1,order:3}}},transport:{hide:!1,order:3,colors:{background:"#E9F8FA",fill:"#008491"},scores:{transit_friendly:{hide:!1,hideScore:!1,order:1},car_friendly:{hide:!1,hideScore:!1,order:2},pedestrian_friendly:{hide:!1,hideScore:!1,order:3},cycling_friendly:{hide:!1,hideScore:!1,order:4}}},character:{hide:!1,order:4,colors:{background:"#FFDAAC",fill:"#FF7044"},scores:{nightlife:{hide:!1,hideScore:!1,order:1},vibrant:{hide:!1,hideScore:!1,order:2},historic:{hide:!1,hideScore:!1,order:3},quiet:{hide:!1,hideScore:!1,order:4}}},nature:{hide:!1,order:5,colors:{background:"#D8F4D9",fill:"#0F766E"},scores:{parks:{hide:!1,hideScore:!1,order:1},greenery:{hide:!1,hideScore:!1,order:2}}},health:{hide:!1,order:6,colors:{background:"#FFE7FE",fill:"#FF84D6"},scores:{wellness:{hide:!1,hideScore:!1,order:1}}}}}}},"local-demographics":{globalOptions:Nv,options:Sv},"neighborhood-map":{globalOptions:Nv,options:kv},"neighborhood-hero":{globalOptions:Nv,options:Ov},"neighborhood-characteristics":{globalOptions:Nv,options:Cv},"neighborhood-highlights":{globalOptions:Nv,options:Rv},"neighborhood-demographics":{globalOptions:Nv,options:Pv},"neighborhood-property-value-drivers":{globalOptions:Nv,options:Lv},"neighborhood-match":{globalOptions:Nv,options:Tv},"neighborhood-market-trends":{globalOptions:Nv,options:{hideAttribution:!1}},"neighborhood-schools":{globalOptions:Nv,options:{hideAttribution:!1,showSchoolRatings:!1}},"neighborhood-showcase":{globalOptions:Nv,options:{}},"neighborhood-featured":{globalOptions:Nv,options:{}},"lead-capture":{globalOptions:Nv,options:{}},demographics:{globalOptions:Nv,options:Sv},"local-neighborhood-map":{globalOptions:Nv,options:kv},"local-neighborhood-hero":{globalOptions:Nv,options:Ov},"local-neighborhood-characteristics":{globalOptions:Nv,options:Cv},"local-neighborhood-highlights":{globalOptions:Nv,options:Rv},"local-neighborhood-demographics":{globalOptions:Nv,options:Pv},"local-neighborhood-property-value-drivers":{globalOptions:Nv,options:Lv},"local-neighborhood-match":{globalOptions:Nv,options:Tv}},Av=class{constructor(){this.data=new Map}getItem(e){return this.data.get(e)??null}setItem(e,t){this.data.set(e,t)}removeItem(e){this.data.delete(e)}clear(){this.data.clear()}key(e){return Array.from(this.data.keys())[e]??null}get length(){return this.data.size}};var Iv=class{constructor(e){this.group=e,this.storage=function(){try{return"undefined"!=typeof window&&window.localStorage?window.localStorage:new Av}catch{return new Av}}()}setGroup(e){this.group=e}getGroup(){return this.group}getItem(e){return this.storage.getItem(this.group?`${this.group}.${e}`:e)}setItem(e,t){this.storage.setItem(this.group?`${this.group}.${e}`:e,t)}removeItem(e){this.storage.removeItem(this.group?`${this.group}.${e}`:e)}},Mv=(new Iv,new class{constructor(){this.storageLocation="suggestion_history",this.history=[],this.storage=new Iv("commute");const e=this.storage.getItem(this.storageLocation);e&&(this.history=JSON.parse(e))}push(e){this.history=this.removeDuplicateEntries(e),this.history.unshift(e),this.history.length>5&&(this.history=this.history.slice(0,5)),this.storage.setItem(this.storageLocation,JSON.stringify(this.history))}hasSuggestionHistory(){return this.history.length>0}getSuggestionHistory(){return this.history}removeDuplicateEntries(e){return this.history.filter(t=>t.locationId!==e.locationId)}}),$v=e=>"object"==typeof e&&null!==e&&!Array.isArray(e);function Fv(e,...t){if(!t.length)return e;const n=t.shift();return $v(e)&&$v(n)&&Object.keys(n).forEach(t=>{$v(n[t])?(e[t]||Object.assign(e,{[t]:{}}),Fv(e[t],n[t])):Object.assign(e,{[t]:n[t]})}),Fv(e,...t)}var Hv=e=>{const t=(0,zr.useRef)(e),n=(0,zr.useRef)(),r=(0,zr.useRef)(!1),o=(0,zr.useRef)(!1),[,i]=(0,zr.useState)(0);r.current&&(o.current=!0),(0,zr.useEffect)(()=>(r.current||(n.current=t.current(),r.current=!0),i(e=>e+1),()=>{o.current&&n.current&&n.current()}),[])},Uv=(e,t)=>{const[n,r]=(0,zr.useState)(e);return(0,zr.useEffect)(()=>{const n=setTimeout(()=>{r(e)},t);return()=>{clearTimeout(n)}},[e,t]),n};var qv=(0,Ev.default)(()=>zr.createContext({})),Bv=()=>{const e=zr.useContext(qv());if(!e)throw new Error("useStateManagerContext must be used under StateManagerProvider");return e};function zv(e){let t=e.apiKey||"";t.startsWith("V3 ")&&(t=t.slice(3));const n={...e,apiKey:`V3 ${t}`,clientId:t.split(".")[0]};if("string"==typeof e?.options?.lat||"string"==typeof e?.options?.lng){if(n.options||(n.options={}),n.options.lat=Number(e?.options?.lat),n.options.lng=Number(e?.options?.lng),void 0!==e?.options?.marker){let t=!1;"string"==typeof e.options.marker.lat&&(n.options.marker.lat=Number(e.options.marker.lat),t=!0),"string"==typeof e.options.marker.lng&&(n.options.marker.lng=Number(e.options.marker.lng),t=!0),t&&console.warn("[Local Logic SDK] Converted lat/lng from string to number in sdkState.options.marker. Please ensure lat/lng are always numbers. This may break your SDK implementation in the future.")}console.warn("[Local Logic SDK] Converted lat/lng from string to number in sdkState.options. Please ensure lat/lng are always numbers. This may break your SDK implementation in the future.")}if(n.globalOptions?.locale){const e=function(e){const t=e?.toLowerCase().split(/[-_]/)[0];return"en"===t||"fr"===t?t:"en"}(n.globalOptions.locale);e!==n.globalOptions.locale&&console.warn(`[Local Logic SDK] Received unsupported locale "${n.globalOptions.locale}". Falling back to "${e}". Please pass "en" or "fr" as the locale option.`),n.globalOptions={...n.globalOptions,locale:e}}return n}var Vv=zr.memo(({children:e})=>{const t=qv(),n=(0,Yc.useSearch)(),r=zr.useRef(n),o=(0,Yc.useLocation)().current.pathname.split("/"),i=jv[o[o.length-1]],s=zr.useRef(),[a,c]=(0,zr.useState)(!1),[l,u]=(0,zr.useState)(zv(i)),d=Uv(l,500),h=(0,Yc.useNavigate)(),p=e=>{r.current=zv(e),u(zv(e))},f=e=>{e.name===yv.GET_STATE&&s.current?.message(yv.GET_STATE_RESPONSE,r.current,e.eventId),e.name===yv.SET_STATE&&p(e.data)};Hv(()=>{const e=[()=>window.location?.ancestorOrigins?.[0],()=>new URLSearchParams(window.location?.search??"").get("parentOrigin"),()=>new URL(document.referrer).origin];let t="";for(const n of e)try{const e=n();if(e&&"null"!==e&&"*"!==e){t=e;break}}catch{}const r=new xv(n.channelId,{targetOrigin:t,window:window.parent});s.current=r,r?.onMessage(f),r?.connect().then(e=>{const t=Fv(l,e.data);p(t),c(!0),ia.addBreadCrumb("stateManager","useEffectOnce: Connected to sdks-js",{oldState:l,newState:e.data,mergedState:t})})});const g=e=>{s.current?.message(yv.ON_CHANGE,e),ia.addBreadCrumb("stateManager","onChange",{data:e})};(0,zr.useEffect)(()=>{h({search:()=>d,replace:!0})},[d]),(0,zr.useEffect)(()=>{l.options&&g({type:"options",data:l.options})},[l.options]);const m=(0,zr.useMemo)(()=>({sdkState:l,setSdkState:p,onChange:g,followerNode:s.current}),[l,p,g]);return(0,zr.useEffect)(()=>{if(!a||!l.globalOptions?.locale)return;const e=l.globalOptions?.locale||"en";rc.language!==e&&(ia.addBreadCrumb("stateManager","i18n.changeLanguage",{language:e}),rc.changeLanguage(e))},[l.globalOptions?.locale,a]),a?(0,ru.jsx)(t.Provider,{value:m,children:e}):null});Vv.displayName="StateManagerProvider";var Kv=(e,t="",n={})=>(Object.keys(e).forEach(r=>{if(Object.prototype.hasOwnProperty.call(e,r)){const o=t?`${t}.${r}`:r;"object"!=typeof e[r]||null===e[r]||Array.isArray(e[r])?n[`LocalLogic.${o}`]=e[r]:Kv(e[r],o,n)}}),{...n}),Wv=({children:e})=>{const{sdkState:t}=Bv();return(0,zr.useEffect)(()=>{ia.setTags(Kv(t||{}))},[t.apiKey,t.globalOptions,t.options]),(0,ru.jsx)(ru.Fragment,{children:e})},Gv=({children:e})=>{const{sdkState:t}=Bv(),n=(0,Yc.useRouter)();return(0,ru.jsx)(Ys,{clientSideID:"643eb54728e2fd16ae6e7a15",context:{kind:"organization",key:t.clientId,custom:{locale:t.globalOptions?.locale||"en",sdk:n.state.location.pathname.split("/")[3]}},reactOptions:{sendEventsOnFlagRead:!0},options:{streaming:!0,logger:Os({level:"none"})},children:e})},Jv=new eu({defaultOptions:{queries:{retry:2,staleTime:1/0}}}),Yv=()=>{return(0,ru.jsx)(ru.Fragment,{children:(0,ru.jsx)(lu,{FallbackComponent:av,onError:(t,n)=>{const r=Vr(t,n);e&&e(t,n,r)},children:(0,ru.jsx)(Pu,{children:(0,ru.jsx)(su,{client:Jv,children:(0,ru.jsx)(Vv,{children:(0,ru.jsx)(Gv,{children:(0,ru.jsx)(Wv,{children:(0,ru.jsx)(Yc.Outlet,{})})})})})})})});var e};window.addEventListener("DOMContentLoaded",e=>{Jr.createRoot(document.getElementById("root")).render((0,ru.jsx)(zr.StrictMode,{children:(0,ru.jsx)(Yv,{})}))});export{il as $,em as A,ed as B,im as C,ag as D,Gg as E,yd as F,hu as G,Hu as H,vd as I,Hl as J,iu as K,hd as L,zd as M,Ud as N,Jg as O,bd as P,al as Q,id as R,rm as S,Xg as T,$u as U,Bu as V,Ru as W,kl as X,Rl as Y,El as Z,fm as _,ia as _t,Iv as a,Sc as at,Zg as b,ct as bt,sv as c,Hc as ct,Jm as d,Ic as dt,tl as et,Gm as f,Vc as ft,pm as g,ec as gt,mm as h,tc as ht,Mv as i,Nc as it,Vp as j,Yg as k,iv as l,Rc as lt,Km as m,Ec as mt,Uv as n,Zc as nt,Dv as o,Oc as ot,zm as p,Cc as pt,nu as q,Hv as r,Xc as rt,yv as s,kc as st,Bv as t,el as tt,rv as u,Pc as ut,gm as v,Qs as vt,om as w,Qg as x,hm as y,rt as yt,od as z};
|
|
3
|
-
//# sourceMappingURL=index-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/LocalContent-DL6Y67Ne.js","assets/sdks-BTkz21XL.js","assets/rolldown-runtime-C_ttsnZz.js","assets/google-maps-vendor-DvfEEdRU.js","assets/getMapProviderConfig-D9e8KNYU.js","assets/Tree.es-DVzuYmwJ.js","assets/IconBase.es-CEehl5AX.js","assets/Backpack.es-VkU9yjoN.js","assets/Tote.es-COcEXhV_.js","assets/Train.es-FFDTvKv8.js","assets/Buildings.es-Cy83SPQS.js","assets/GraduationCap.es-Bvo9K-N3.js","assets/MapPin.es-DUGzA8QJ.js","assets/X.es-6bJd6-yU.js","assets/constants-BcJ_mS91-kGN6qniT.js","assets/context-BrD4AniQ-D7UQulkM.js","assets/esm-Be30MpcN-C7eJiqee.js","assets/useSchools-Dqdy1J-D.js","assets/getMapProviderConfig-Dg2c_6rt.css","assets/Bicycle.es-DPIBL6np.js","assets/Car.es-BZ3jmhfm.js","assets/CaretDown.es-nJe-LNlT.js","assets/CaretLeft.es-DbiCI58w.js","assets/ScoreIcon-s5-ehfPP.js","assets/MagnifyingGlass.es-CEBdL4tD.js","assets/bundle-mjs-orX75hSI.js","assets/index.es-DuM-WVhV.js","assets/Attribution-D012fWNs.js","assets/ValidateOptions-BqL9iY9R.js","assets/useScores-C4T2-LUO.js","assets/useLocation-DUSQPRn5.js","assets/useResponsiveBreakpoints-Dq6mGzIW.js","assets/globals-ChYgBWmY.css","assets/LocalDemographics-DcirUh9h.js","assets/useDemographicsData-DKScK522.js","assets/UsersThree.es-Di-ux4sv.js","assets/dist-C_ktdPsv.js","assets/useIsMobile-Co5SddxR.js","assets/ResizeWrapper-DbYmMKOU.js","assets/TitleHeader-Be2YRN93.js","assets/old-tailwind-Dxx0AmSt.css","assets/NeighborhoodHero-Bj4FlQVV.js","assets/useGeographies-DejQbRC9.js","assets/useProfiles-Dv9s6TWw.js","assets/NeighborhoodMap-DwMQLhkw.js","assets/NeighborhoodCharacteristics-__nE9rKT.js","assets/ScoreCardList-B4NURGgK.js","assets/NeighborhoodHighlights-BBmVnaLl.js","assets/NoDataContent-CTxzT718.js","assets/NeighborhoodDemographics-5cGgXnRY.js","assets/NeighborhoodPropertyValueDrivers-Cz4cawqR.js","assets/NeighborhoodMatch-GqzEoreu.js","assets/neighborhood-fallback-CizB5oi9.js","assets/NeighborhoodMarketTrends-COqvs4Fz.js","assets/HandCoins.es-CC012gfJ.js","assets/NeighborhoodSchools-D6CPTgGE.js","assets/NeighborhoodSchools-tmPY96MM.css","assets/NeighborhoodShowcase-CRlKc8OL.js","assets/Trans-DntniXa9.js","assets/NeighborhoodCard-ePSiX1h0.js","assets/NeighborhoodFeatured-DIXhmlRC.js","assets/LeadCapture-IqeCbA_u.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import'data:text/javascript,"assets/index-PbHyodiU.js";if(!import.meta.resolve)throw Error("import.meta.resolve not supported")';export function __vite_legacy_guard(){import.meta.url,import("_").catch(()=>1),async function*(){}().next()}import{a as e,i as t,n,r,t as o}from"./rolldown-runtime-C_ttsnZz.js";import{c as i,l as s}from"./google-maps-vendor-DvfEEdRU.js";!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))t(e);new MutationObserver(e=>{for(const n of e)if("childList"===n.type)for(const e of n.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&t(e)}).observe(document,{childList:!0,subtree:!0})}function t(e){if(e.ep)return;e.ep=!0;const t=function(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?t.credentials="include":"anonymous"===e.crossOrigin?t.credentials="omit":t.credentials="same-origin",t}(e);fetch(e.href,t)}}();var a=o(e=>{var t=i();e.createRoot=t.createRoot,e.hydrateRoot=t.hydrateRoot}),c="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,l="8.55.0",u=globalThis;function d(e,t,n){const r=n||u,o=r.__SENTRY__=r.__SENTRY__||{},i=o[l]=o["8.55.0"]||{};return i[e]||(i[e]=t())}var h="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,p=["debug","info","warn","error","log","assert","trace"],f={};function g(e){if(!("console"in u))return e();const t=u.console,n={},r=Object.keys(f);r.forEach(e=>{const r=f[e];n[e]=t[e],t[e]=r});try{return e()}finally{r.forEach(e=>{t[e]=n[e]})}}var m=d("logger",function(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return h?p.forEach(n=>{t[n]=(...t)=>{e&&g(()=>{u.console[n](`Sentry Logger [${n}]:`,...t)})}}):p.forEach(e=>{t[e]=()=>{}}),t}),v=/\(error: (.*)\)/,y=/captureMessage|captureException/;function b(...e){const t=e.sort((e,t)=>e[0]-t[0]).map(e=>e[1]);return(e,n=0,r=0)=>{const o=[],i=e.split("\n");for(let s=n;s<i.length;s++){const e=i[s];if(e.length>1024)continue;const n=v.test(e)?e.replace(v,"$1"):e;if(!n.match(/\S*Error: /)){for(const e of t){const t=e(n);if(t){o.push(t);break}}if(o.length>=50+r)break}}return function(e){if(!e.length)return[];const t=Array.from(e);/sentryWrapped/.test(w(t).function||"")&&t.pop();t.reverse(),y.test(w(t).function||"")&&(t.pop(),y.test(w(t).function||"")&&t.pop());return t.slice(0,50).map(e=>({...e,filename:e.filename||w(t).filename,function:e.function||"?"}))}(o.slice(r))}}function w(e){return e[e.length-1]||{}}var x="<anonymous>";function _(e){try{return e&&"function"==typeof e&&e.name||x}catch(cv){return x}}function E(e){const t=e.exception;if(t){const e=[];try{return t.values.forEach(t=>{t.stacktrace.frames&&e.push(...t.stacktrace.frames)}),e}catch(n){return}}}var S={},k={};function O(e,t){S[e]=S[e]||[],S[e].push(t)}function C(e,t){if(!k[e]){k[e]=!0;try{t()}catch(cv){h&&m.error(`Error while instrumenting ${e}`,cv)}}}function P(e,t){const n=e&&S[e];if(n)for(const r of n)try{r(t)}catch(cv){h&&m.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${_(r)}\nError:`,cv)}}var R=null;function L(){R=u.onerror,u.onerror=function(e,t,n,r,o){return P("error",{column:r,error:o,line:n,msg:e,url:t}),!!R&&R.apply(this,arguments)},u.onerror.__SENTRY_INSTRUMENTED__=!0}var T=null;function D(){T=u.onunhandledrejection,u.onunhandledrejection=function(e){return P("unhandledrejection",e),!T||T.apply(this,arguments)},u.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}function N(){return j(u),u}function j(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||"8.55.0",t[l]=t["8.55.0"]||{}}var A=Object.prototype.toString;function I(e){switch(A.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return K(e,Error)}}function M(e,t){return A.call(e)===`[object ${t}]`}function $(e){return M(e,"ErrorEvent")}function F(e){return M(e,"DOMError")}function H(e){return M(e,"String")}function U(e){return"object"==typeof e&&null!==e&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function q(e){return null===e||U(e)||"object"!=typeof e&&"function"!=typeof e}function B(e){return M(e,"Object")}function z(e){return"undefined"!=typeof Event&&K(e,Event)}function V(e){return Boolean(e&&e.then&&"function"==typeof e.then)}function K(e,t){try{return e instanceof t}catch(Ri){return!1}}function W(e){return!("object"!=typeof e||null===e||!e.__isVue&&!e._isVue)}var G=u;function J(e,t={}){if(!e)return"<unknown>";try{let n=e;const r=5,o=[];let i=0,s=0;const a=" > ",c=3;let l;const u=Array.isArray(t)?t:t.keyAttrs,d=!Array.isArray(t)&&t.maxStringLength||80;for(;n&&i++<r&&(l=Y(n,u),!("html"===l||i>1&&s+o.length*c+l.length>=d));)o.push(l),s+=l.length,n=n.parentNode;return o.reverse().join(a)}catch(n){return"<unknown>"}}function Y(e,t){const n=e,r=[];if(!n||!n.tagName)return"";if(G.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}r.push(n.tagName.toLowerCase());const o=t&&t.length?t.filter(e=>n.getAttribute(e)).map(e=>[e,n.getAttribute(e)]):null;if(o&&o.length)o.forEach(e=>{r.push(`[${e[0]}="${e[1]}"]`)});else{n.id&&r.push(`#${n.id}`);const e=n.className;if(e&&H(e)){const t=e.split(/\s+/);for(const e of t)r.push(`.${e}`)}}for(const i of["aria-label","type","name","title","alt"]){const e=n.getAttribute(i);e&&r.push(`[${i}="${e}"]`)}return r.join("")}function Q(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}function X(e,t){if(!Array.isArray(e))return"";const n=[];for(let r=0;r<e.length;r++){const t=e[r];try{W(t)?n.push("[VueViewModel]"):n.push(String(t))}catch(cv){n.push("[value cannot be serialized]")}}return n.join(t)}function Z(e,t,n=!1){return!!H(e)&&(M(t,"RegExp")?t.test(e):!!H(t)&&(n?e===t:e.includes(t)))}function ee(e,t=[],n=!1){return t.some(t=>Z(e,t,n))}function te(e,t,n){if(!(t in e))return;const r=e[t],o=n(r);"function"==typeof o&&re(o,r);try{e[t]=o}catch(cv){h&&m.log(`Failed to replace method "${t}" in object`,e)}}function ne(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch(r){h&&m.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function re(e,t){try{e.prototype=t.prototype=t.prototype||{},ne(e,"__sentry_original__",t)}catch(n){}}function oe(e){return e.__sentry_original__}function ie(e){if(I(e))return{message:e.message,name:e.name,stack:e.stack,...ae(e)};if(z(e)){const t={type:e.type,target:se(e.target),currentTarget:se(e.currentTarget),...ae(e)};return"undefined"!=typeof CustomEvent&&K(e,CustomEvent)&&(t.detail=e.detail),t}return e}function se(e){try{return t=e,"undefined"!=typeof Element&&K(t,Element)?J(e):Object.prototype.toString.call(e)}catch(n){return"<unknown>"}var t}function ae(e){if("object"==typeof e&&null!==e){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}return{}}function ce(e){return le(e,new Map)}function le(e,t){if(function(e){if(!B(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||"Object"===t}catch(t){return!0}}(e)){const n=t.get(e);if(void 0!==n)return n;const r={};t.set(e,r);for(const o of Object.getOwnPropertyNames(e))void 0!==e[o]&&(r[o]=le(e[o],t));return r}if(Array.isArray(e)){const n=t.get(e);if(void 0!==n)return n;const r=[];return t.set(e,r),e.forEach(e=>{r.push(le(e,t))}),r}return e}function ue(){return Date.now()/1e3}var de,he=function(){const{performance:e}=u;if(!e||!e.now)return ue;const t=Date.now()-e.now(),n=null==e.timeOrigin?t:e.timeOrigin;return()=>(n+e.now())/1e3}();(()=>{const{performance:e}=u;if(!e||!e.now)return void 0;const t=36e5,n=e.now(),r=Date.now(),o=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,i=o<t,s=e.timing&&e.timing.navigationStart,a="number"==typeof s?Math.abs(s+n-r):t;(i||a<t)&&(o<=a&&e.timeOrigin)})();function pe(){const e=u,t=e.crypto||e.msCrypto;let n=()=>16*Math.random();try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{const e=new Uint8Array(1);return t.getRandomValues(e),e[0]})}catch(Mo){}return"10000000100040008000100000000000".replace(/[018]/g,e=>(e^(15&n())>>e/4).toString(16))}function fe(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function ge(e){const{message:t,event_id:n}=e;if(t)return t;const r=fe(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function me(e,t,n){const r=e.exception=e.exception||{},o=r.values=r.values||[],i=o[0]=o[0]||{};i.value||(i.value=t||""),i.type||(i.type=n||"Error")}function ve(e,t){const n=fe(e);if(!n)return;const r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...t},t&&"data"in t){const e={...r&&r.data,...t.data};n.mechanism.data=e}}function ye(e){if(function(e){try{return e.__sentry_captured__}catch(cv){}}(e))return!0;try{ne(e,"__sentry_captured__",!0)}catch(t){}return!1}function be(e){return new xe(t=>{t(e)})}function we(e){return new xe((t,n)=>{n(e)})}!function(e){e[e.PENDING=0]="PENDING";e[e.RESOLVED=1]="RESOLVED";e[e.REJECTED=2]="REJECTED"}(de||(de={}));var xe=class e{constructor(t){e.prototype.__init.call(this),e.prototype.__init2.call(this),e.prototype.__init3.call(this),e.prototype.__init4.call(this),this._state=de.PENDING,this._handlers=[];try{t(this._resolve,this._reject)}catch(cv){this._reject(cv)}}then(t,n){return new e((e,r)=>{this._handlers.push([!1,n=>{if(t)try{e(t(n))}catch(cv){r(cv)}else e(n)},t=>{if(n)try{e(n(t))}catch(cv){r(cv)}else r(t)}]),this._executeHandlers()})}catch(e){return this.then(e=>e,e)}finally(t){return new e((e,n)=>{let r,o;return this.then(e=>{o=!1,r=e,t&&t()},e=>{o=!0,r=e,t&&t()}).then(()=>{o?n(r):e(r)})})}__init(){this._resolve=e=>{this._setResult(de.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(de.REJECTED,e)}}__init3(){this._setResult=(e,t)=>{this._state===de.PENDING&&(V(t)?t.then(this._resolve,this._reject):(this._state=e,this._value=t,this._executeHandlers()))}}__init4(){this._executeHandlers=()=>{if(this._state===de.PENDING)return;const e=this._handlers.slice();this._handlers=[],e.forEach(e=>{e[0]||(this._state===de.RESOLVED&&e[1](this._value),this._state===de.REJECTED&&e[2](this._value),e[0]=!0)})}}};function _e(e){const t=he(),n={sid:pe(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(e){return ce({sid:`${e.sid}`,init:e.init,started:new Date(1e3*e.started).toISOString(),timestamp:new Date(1e3*e.timestamp).toISOString(),status:e.status,errors:e.errors,did:"number"==typeof e.did||"string"==typeof e.did?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}(n)};return e&&Ee(n,e),n}function Ee(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||he(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:pe()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{const t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}function Se(){return pe()}function ke(){return pe().substring(16)}function Oe(e,t,n=2){if(!t||"object"!=typeof t||n<=0)return t;if(e&&t&&0===Object.keys(t).length)return e;const r={...e};for(const o in t)Object.prototype.hasOwnProperty.call(t,o)&&(r[o]=Oe(r[o],t[o],n-1));return r}var Ce="_sentrySpan";function Pe(e,t){t?ne(e,Ce,t):delete e[Ce]}function Re(e){return e[Ce]}var Le=class e{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:Se(),spanId:ke()}}clone(){const t=new e;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._extra={...this._extra},t._contexts={...this._contexts},this._contexts.flags&&(t._contexts.flags={values:[...this._contexts.flags.values]}),t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._requestSession=this._requestSession,t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,Pe(t,Re(this)),t}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&Ee(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;const t="function"==typeof e?e(this):e,[n,r]=t instanceof Le?[t.getScopeData(),t.getRequestSession()]:B(t)?[e,e.requestSession]:[],{tags:o,extra:i,user:s,contexts:a,level:c,fingerprint:l=[],propagationContext:u}=n||{};return this._tags={...this._tags,...o},this._extra={...this._extra,...i},this._contexts={...this._contexts,...a},s&&Object.keys(s).length&&(this._user=s),c&&(this._level=c),l.length&&(this._fingerprint=l),u&&(this._propagationContext=u),r&&(this._requestSession=r),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._session=void 0,Pe(this,void 0),this._attachments=[],this.setPropagationContext({traceId:Se()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){const n="number"==typeof t?t:100;if(n<=0)return this;const r={timestamp:ue(),...e};return this._breadcrumbs.push(r),this._breadcrumbs.length>n&&(this._breadcrumbs=this._breadcrumbs.slice(-n),this._client&&this._client.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:Re(this)}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=Oe(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext={spanId:ke(),...e},this}getPropagationContext(){return this._propagationContext}captureException(e,t){const n=t&&t.event_id?t.event_id:pe();if(!this._client)return m.warn("No client configured on scope - will not capture exception!"),n;const r=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:r,...t,event_id:n},this),n}captureMessage(e,t,n){const r=n&&n.event_id?n.event_id:pe();if(!this._client)return m.warn("No client configured on scope - will not capture message!"),r;const o=new Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:o,...n,event_id:r},this),r}captureEvent(e,t){const n=t&&t.event_id?t.event_id:pe();return this._client?(this._client.captureEvent(e,{...t,event_id:n},this),n):(m.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}};var Te=class{constructor(e,t){let n,r;n=e||new Le,r=t||new Le,this._stack=[{scope:n}],this._isolationScope=r}withScope(e){const t=this._pushScope();let n;try{n=e(t)}catch(cv){throw this._popScope(),cv}return V(n)?n.then(e=>(this._popScope(),e),e=>{throw this._popScope(),e}):(this._popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return!(this._stack.length<=1)&&!!this._stack.pop()}};function De(){const e=j(N());return e.stack=e.stack||new Te(d("defaultCurrentScope",()=>new Le),d("defaultIsolationScope",()=>new Le))}function Ne(e){return De().withScope(e)}function je(e,t){const n=De();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function Ae(e){return De().withScope(()=>e(De().getIsolationScope()))}function Ie(e){const t=j(e);return t.acs?t.acs:{withIsolationScope:Ae,withScope:Ne,withSetScope:je,withSetIsolationScope:(e,t)=>Ae(t),getCurrentScope:()=>De().getScope(),getIsolationScope:()=>De().getIsolationScope()}}function Me(){return Ie(N()).getCurrentScope()}function $e(){return Ie(N()).getIsolationScope()}function Fe(){return Me().getClient()}function He(e){const{traceId:t,spanId:n,parentSpanId:r}=e.getPropagationContext();return ce({trace_id:t,span_id:n,parent_span_id:r})}function Ue(e){const t=e._sentryMetrics;if(!t)return;const n={};for(const[,[r,o]]of t)(n[r]||(n[r]=[])).push(ce(o));return n}var qe=/^sentry-/;function Be(e){const t=function(e){if(!e||!H(e)&&!Array.isArray(e))return;return Array.isArray(e)?e.reduce((e,t)=>{const n=ze(t);return Object.entries(n).forEach(([t,n])=>{e[t]=n}),e},{}):ze(e)}(e);if(!t)return;const n=Object.entries(t).reduce((e,[t,n])=>{if(t.match(qe)){e[t.slice(7)]=n}return e},{});return Object.keys(n).length>0?n:void 0}function ze(e){return e.split(",").map(e=>e.split("=").map(e=>decodeURIComponent(e.trim()))).reduce((e,[t,n])=>(t&&n&&(e[t]=n),e),{})}var Ve=!1;function Ke(e){const{spanId:t,traceId:n,isRemote:r}=e.spanContext();return ce({parent_span_id:r?t:Je(e).parent_span_id,span_id:r?ke():t,trace_id:n})}function We(e){return"number"==typeof e?Ge(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?Ge(e.getTime()):he()}function Ge(e){return e>9999999999?e/1e3:e}function Je(e){if(function(e){return"function"==typeof e.getSpanJSON}(e))return e.getSpanJSON();try{const{spanId:t,traceId:n}=e.spanContext();if(function(e){const t=e;return!!(t.attributes&&t.startTime&&t.name&&t.endTime&&t.status)}(e)){const{attributes:r,startTime:o,name:i,endTime:s,parentSpanId:a,status:c}=e;return ce({span_id:t,trace_id:n,data:r,description:i,parent_span_id:a,start_timestamp:We(o),timestamp:We(s)||void 0,status:Ye(c),op:r["sentry.op"],origin:r["sentry.origin"],_metrics_summary:Ue(e)})}return{span_id:t,trace_id:n}}catch(cv){return{}}}function Ye(e){if(e&&0!==e.code)return 1===e.code?"ok":e.message||"unknown_error"}function Qe(e){return e._sentryRootSpan||e}function Xe(){Ve||(g(()=>{console.warn("[Sentry] Deprecation warning: Returning null from `beforeSendSpan` will be disallowed from SDK version 9.0.0 onwards. The callback will only support mutating spans. To drop certain spans, configure the respective integrations directly.")}),Ve=!0)}var Ze="production";function et(e,t){const n=t.getOptions(),{publicKey:r}=t.getDsn()||{},o=ce({environment:n.environment||"production",release:n.release,public_key:r,trace_id:e});return t.emit("createDsc",o),o}function tt(e,t){const n=t.getPropagationContext();return n.dsc||et(n.traceId,e)}function nt(e){const t=Fe();if(!t)return{};const n=Qe(e),r=n._frozenDsc;if(r)return r;const o=n.spanContext().traceState,i=o&&o.get("sentry.dsc"),s=i&&Be(i);if(s)return s;const a=et(e.spanContext().traceId,t),c=Je(n),l=c.data||{},u=l["sentry.sample_rate"];null!=u&&(a.sample_rate=`${u}`);const d=l["sentry.source"],h=c.description;return"url"!==d&&h&&(a.transaction=h),function(e){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const t=Fe(),n=e||t&&t.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}()&&(a.sampled=String(function(e){const{traceFlags:t}=e.spanContext();return 1===t}(n))),t.emit("createDsc",a,n),a}var rt,ot=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function it(e,t=!1){const{host:n,path:r,pass:o,port:i,projectId:s,protocol:a,publicKey:c}=e;return`${a}://${c}${t&&o?`:${o}`:""}@${n}${i?`:${i}`:""}/${r?`${r}/`:r}${s}`}function st(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function at(e){const t="string"==typeof e?function(e){const t=ot.exec(e);if(!t)return void g(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});const[n,r,o="",i="",s="",a=""]=t.slice(1);let c="",l=a;const u=l.split("/");if(u.length>1&&(c=u.slice(0,-1).join("/"),l=u.pop()),l){const e=l.match(/^\d+/);e&&(l=e[0])}return st({host:i,pass:o,path:c,projectId:l,port:s,protocol:n,publicKey:r})}(e):st(e);if(t&&function(e){if(!h)return!0;const{port:t,projectId:n,protocol:r}=e;return!(["protocol","publicKey","host","projectId"].find(t=>!e[t]&&(m.error(`Invalid Sentry Dsn: ${t} missing`),!0))||(n.match(/^\d+$/)?function(e){return"http"===e||"https"===e}(r)?t&&isNaN(parseInt(t,10))&&(m.error(`Invalid Sentry Dsn: Invalid port ${t}`),1):(m.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),1):(m.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),1)))}(t))return t}var ct=n(()=>{rt=globalThis||self});function lt(e,t=100,n=1/0){try{return dt("",e,t,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function ut(e,t=3,n=102400){const r=lt(e,t);return o=r,function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(o))>n?ut(e,t-1,n):r;var o}function dt(e,t,n=1/0,r=1/0,o=function(){const e="function"==typeof WeakSet,t=e?new WeakSet:[];return[function(n){if(e)return!!t.has(n)||(t.add(n),!1);for(let e=0;e<t.length;e++)if(t[e]===n)return!0;return t.push(n),!1},function(n){if(e)t.delete(n);else for(let e=0;e<t.length;e++)if(t[e]===n){t.splice(e,1);break}}]}()){const[i,s]=o;if(null==t||["boolean","string"].includes(typeof t)||"number"==typeof t&&Number.isFinite(t))return t;const a=function(e,t){try{if("domain"===e&&t&&"object"==typeof t&&t._events)return"[Domain]";if("domainEmitter"===e)return"[DomainEmitter]";if(void 0!==rt&&t===rt)return"[Global]";if("undefined"!=typeof window&&t===window)return"[Window]";if("undefined"!=typeof document&&t===document)return"[Document]";if(W(t))return"[VueViewModel]";if(B(n=t)&&"nativeEvent"in n&&"preventDefault"in n&&"stopPropagation"in n)return"[SyntheticEvent]";if("number"==typeof t&&!Number.isFinite(t))return`[${t}]`;if("function"==typeof t)return`[Function: ${_(t)}]`;if("symbol"==typeof t)return`[${String(t)}]`;if("bigint"==typeof t)return`[BigInt: ${String(t)}]`;const r=function(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}(t);return/^HTML(\w*)Element$/.test(r)?`[HTMLElement: ${r}]`:`[object ${r}]`}catch(r){return`**non-serializable** (${r})`}var n}(e,t);if(!a.startsWith("[object "))return a;if(t.__sentry_skip_normalization__)return t;const c="number"==typeof t.__sentry_override_normalization_depth__?t.__sentry_override_normalization_depth__:n;if(0===c)return a.replace("object ","");if(i(t))return"[Circular ~]";const l=t;if(l&&"function"==typeof l.toJSON)try{return dt("",l.toJSON(),c-1,r,o)}catch(p){}const u=Array.isArray(t)?[]:{};let d=0;const h=ie(t);for(const f in h){if(!Object.prototype.hasOwnProperty.call(h,f))continue;if(d>=r){u[f]="[MaxProperties ~]";break}const e=h[f];u[f]=dt(f,e,c-1,r,o),d++}return s(t),u}function ht(e,t=[]){return[e,t]}function pt(e,t){const[n,r]=e;return[n,[...r,t]]}function ft(e,t){const n=e[1];for(const r of n){if(t(r,r[0].type))return!0}return!1}function gt(e){return u.__SENTRY__&&u.__SENTRY__.encodePolyfill?u.__SENTRY__.encodePolyfill(e):(new TextEncoder).encode(e)}function mt(e){const[t,n]=e;let r=JSON.stringify(t);function o(e){"string"==typeof r?r="string"==typeof e?r+e:[gt(r),e]:r.push("string"==typeof e?gt(e):e)}for(const i of n){const[e,t]=i;if(o(`\n${JSON.stringify(e)}\n`),"string"==typeof t||t instanceof Uint8Array)o(t);else{let e;try{e=JSON.stringify(t)}catch(cv){e=JSON.stringify(lt(t))}o(e)}}return"string"==typeof r?r:function(e){const t=e.reduce((e,t)=>e+t.length,0),n=new Uint8Array(t);let r=0;for(const o of e)n.set(o,r),r+=o.length;return n}(r)}function vt(e){const t="string"==typeof e.data?gt(e.data):e.data;return[ce({type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),t]}ct();var yt,bt,wt,xt={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket",raw_security:"security"};function _t(e){return xt[e]}function Et(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function St(e,t,n,r){const o=Et(n),i=e.type&&"replay_event"!==e.type?e.type:"event";!function(e,t){t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]])}(e,n&&n.sdk);const s=function(e,t,n,r){const o=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:it(r)},...o&&{trace:ce({...o})}}}(e,o,r,t);return delete e.sdkProcessingMetadata,ht(s,[[{type:i},e]])}function kt(e,t,n,r=0){return new xe((o,i)=>{const s=e[r];if(null===t||"function"!=typeof s)o(t);else{const a=s({...t},n);c&&s.id&&null===a&&m.log(`Event processor "${s.id}" dropped event`),V(a)?a.then(t=>kt(e,t,n,r+1).then(o)).then(null,i):kt(e,a,n,r+1).then(o).then(null,i)}})}function Ot(e,t){const{fingerprint:n,span:r,breadcrumbs:o,sdkProcessingMetadata:i}=t;!function(e,t){const{extra:n,tags:r,user:o,contexts:i,level:s,transactionName:a}=t,c=ce(n);c&&Object.keys(c).length&&(e.extra={...c,...e.extra});const l=ce(r);l&&Object.keys(l).length&&(e.tags={...l,...e.tags});const u=ce(o);u&&Object.keys(u).length&&(e.user={...u,...e.user});const d=ce(i);d&&Object.keys(d).length&&(e.contexts={...d,...e.contexts});s&&(e.level=s);a&&"transaction"!==e.type&&(e.transaction=a)}(e,t),r&&function(e,t){e.contexts={trace:Ke(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:nt(t),...e.sdkProcessingMetadata};const n=Je(Qe(t)).description;n&&!e.transaction&&"transaction"===e.type&&(e.transaction=n)}(e,r),function(e,t){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],t&&(e.fingerprint=e.fingerprint.concat(t));e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}(e,n),function(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}(e,o),function(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}(e,i)}function Ct(e,t){const{extra:n,tags:r,user:o,contexts:i,level:s,sdkProcessingMetadata:a,breadcrumbs:c,fingerprint:l,eventProcessors:u,attachments:d,propagationContext:h,transactionName:p,span:f}=t;Pt(e,"extra",n),Pt(e,"tags",r),Pt(e,"user",o),Pt(e,"contexts",i),e.sdkProcessingMetadata=Oe(e.sdkProcessingMetadata,a,2),s&&(e.level=s),p&&(e.transactionName=p),f&&(e.span=f),c.length&&(e.breadcrumbs=[...e.breadcrumbs,...c]),l.length&&(e.fingerprint=[...e.fingerprint,...l]),u.length&&(e.eventProcessors=[...e.eventProcessors,...u]),d.length&&(e.attachments=[...e.attachments,...d]),e.propagationContext={...e.propagationContext,...h}}function Pt(e,t,n){e[t]=Oe(e[t],n,1)}function Rt(e,t,n,r,o,i){const{normalizeDepth:s=3,normalizeMaxBreadth:a=1e3}=e,c={...t,event_id:t.event_id||n.event_id||pe(),timestamp:t.timestamp||ue()},l=n.integrations||e.integrations.map(e=>e.name);!function(e,t){const{environment:n,release:r,dist:o,maxValueLength:i=250}=t;e.environment=e.environment||n||"production",!e.release&&r&&(e.release=r);!e.dist&&o&&(e.dist=o);e.message&&(e.message=Q(e.message,i));const s=e.exception&&e.exception.values&&e.exception.values[0];s&&s.value&&(s.value=Q(s.value,i));const a=e.request;a&&a.url&&(a.url=Q(a.url,i))}(c,e),function(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}(c,l),o&&o.emit("applyFrameMetadata",t),void 0===t.type&&function(e,t){const n=function(e){const t=u._sentryDebugIds;if(!t)return{};const n=Object.keys(t);return wt&&n.length===bt||(bt=n.length,wt=n.reduce((n,r)=>{yt||(yt={});const o=yt[r];if(o)n[o[0]]=o[1];else{const o=e(r);for(let e=o.length-1;e>=0;e--){const i=o[e],s=i&&i.filename,a=t[r];if(s&&a){n[s]=a,yt[r]=[s,a];break}}}return n},{})),wt}(t);try{e.exception.values.forEach(e=>{e.stacktrace.frames.forEach(e=>{n&&e.filename&&(e.debug_id=n[e.filename])})})}catch(cv){}}(c,e.stackParser);const h=function(e,t){if(!t)return e;const n=e?e.clone():new Le;return n.update(t),n}(r,n.captureContext);n.mechanism&&ve(c,n.mechanism);const p=o?o.getEventProcessors():[],f=d("globalScope",()=>new Le).getScopeData();i&&Ct(f,i.getScopeData()),h&&Ct(f,h.getScopeData());const g=[...n.attachments||[],...f.attachments];return g.length&&(n.attachments=g),Ot(c,f),kt([...p,...f.eventProcessors],c,n).then(e=>(e&&function(e){const t={};try{e.exception.values.forEach(e=>{e.stacktrace.frames.forEach(e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)})})}catch(cv){}if(0===Object.keys(t).length)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.entries(t).forEach(([e,t])=>{n.push({type:"sourcemap",code_file:e,debug_id:t})})}(e),"number"==typeof s&&s>0?function(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(e=>({...e,...e.data&&{data:lt(e.data,t,n)}}))},...e.user&&{user:lt(e.user,t,n)},...e.contexts&&{contexts:lt(e.contexts,t,n)},...e.extra&&{extra:lt(e.extra,t,n)}};e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=lt(e.contexts.trace.data,t,n)));e.spans&&(r.spans=e.spans.map(e=>({...e,...e.data&&{data:lt(e.data,t,n)}})));e.contexts&&e.contexts.flags&&r.contexts&&(r.contexts.flags=lt(e.contexts.flags,3,n));return r}(e,s,a):e))}function Lt(e){if(e)return function(e){return e instanceof Le||"function"==typeof e}(e)||function(e){return Object.keys(e).some(e=>Tt.includes(e))}(e)?{captureContext:e}:e}var Tt=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function Dt(e,t){return Me().captureException(e,Lt(t))}function Nt(e,t){return Me().captureEvent(e,t)}function jt(e,t){$e().setContext(e,t)}function At(e){const t=Fe(),n=$e(),r=Me(),{release:o,environment:i=Ze}=t&&t.getOptions()||{},{userAgent:s}=u.navigator||{},a=_e({release:o,environment:i,user:r.getUser()||n.getUser(),...s&&{userAgent:s},...e}),c=n.getSession();return c&&"ok"===c.status&&Ee(c,{status:"exited"}),It(),n.setSession(a),r.setSession(a),a}function It(){const e=$e(),t=Me(),n=t.getSession()||e.getSession();n&&function(e,t){let n={};t?n={status:t}:"ok"===e.status&&(n={status:"exited"}),Ee(e,n)}(n),Mt(),e.setSession(),t.setSession()}function Mt(){const e=$e(),t=Me(),n=Fe(),r=t.getSession()||e.getSession();r&&n&&n.captureSession(r)}function $t(e=!1){e?It():Mt()}function Ft(e,t,n){return t||`${function(e){return`${function(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}(e)}${e.projectId}/envelope/`}(e)}?${function(e,t){const n={sentry_version:"7"};return e.publicKey&&(n.sentry_key=e.publicKey),t&&(n.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(n).toString()}(e,n)}`}var Ht=[];function Ut(e){const t=e.defaultIntegrations||[],n=e.integrations;let r;if(t.forEach(e=>{e.isDefaultInstance=!0}),Array.isArray(n))r=[...t,...n];else if("function"==typeof n){const e=n(t);r=Array.isArray(e)?e:[e]}else r=t;const o=function(e){const t={};return e.forEach(e=>{const{name:n}=e,r=t[n];r&&!r.isDefaultInstance&&e.isDefaultInstance||(t[n]=e)}),Object.values(t)}(r),i=o.findIndex(e=>"Debug"===e.name);if(i>-1){const[e]=o.splice(i,1);o.push(e)}return o}function qt(e,t){for(const n of t)n&&n.afterAllSetup&&n.afterAllSetup(e)}function Bt(e,t,n){if(n[t.name])c&&m.log(`Integration skipped because it was already installed: ${t.name}`);else{if(n[t.name]=t,-1===Ht.indexOf(t.name)&&"function"==typeof t.setupOnce&&(t.setupOnce(),Ht.push(t.name)),t.setup&&"function"==typeof t.setup&&t.setup(e),"function"==typeof t.preprocessEvent){const n=t.preprocessEvent.bind(t);e.on("preprocessEvent",(t,r)=>n(t,r,e))}if("function"==typeof t.processEvent){const n=t.processEvent.bind(t),r=Object.assign((t,r)=>n(t,r,e),{id:t.name});e.addEventProcessor(r)}c&&m.log(`Integration installed: ${t.name}`)}}var zt=class extends Error{constructor(e,t="warn"){super(e),this.message=e,this.logLevel=t}},Vt="Not capturing exception because it's already been captured.",Kt=class{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=at(e.dsn):c&&m.warn("No DSN provided, client will not send events."),this._dsn){const t=Ft(this._dsn,e.tunnel,e._metadata?e._metadata.sdk:void 0);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}const t=["enableTracing","tracesSampleRate","tracesSampler"].find(t=>t in e&&null==e[t]);t&&g(()=>{console.warn(`[Sentry] Deprecation warning: \`${t}\` is set to undefined, which leads to tracing being enabled. In v9, a value of \`undefined\` will result in tracing being disabled.`)})}captureException(e,t,n){const r=pe();if(ye(e))return c&&m.log(Vt),r;const o={event_id:r,...t};return this._process(this.eventFromException(e,o).then(e=>this._captureEvent(e,o,n))),o.event_id}captureMessage(e,t,n,r){const o={event_id:pe(),...n},i=U(e)?e:String(e),s=q(e)?this.eventFromMessage(i,t,o):this.eventFromException(e,o);return this._process(s.then(e=>this._captureEvent(e,o,r))),o.event_id}captureEvent(e,t,n){const r=pe();if(t&&t.originalException&&ye(t.originalException))return c&&m.log(Vt),r;const o={event_id:r,...t},i=(e.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(e,o,i||n)),o.event_id}captureSession(e){"string"!=typeof e.release?c&&m.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),Ee(e,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){const t=this._transport;return t?(this.emit("flush"),this._isClientDoneProcessing(e).then(n=>t.flush(e).then(e=>n&&e))):be(!0)}close(e){return this.flush(e).then(e=>(this.getOptions().enabled=!1,this.emit("close"),e))}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}init(){(this._isEnabled()||this._options.integrations.some(({name:e})=>e.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(e){return this._integrations[e]}addIntegration(e){const t=this._integrations[e.name];Bt(this,e,this._integrations),t||qt(this,[e])}sendEvent(e,t={}){this.emit("beforeSendEvent",e,t);let n=St(e,this._dsn,this._options._metadata,this._options.tunnel);for(const o of t.attachments||[])n=pt(n,vt(o));const r=this.sendEnvelope(n);r&&r.then(t=>this.emit("afterSendEvent",e,t),null)}sendSession(e){const t=function(e,t,n,r){const o=Et(n);return ht({sent_at:(new Date).toISOString(),...o&&{sdk:o},...!!r&&t&&{dsn:it(t)}},["aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()]])}(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(t)}recordDroppedEvent(e,t,n){if(this._options.sendClientReports){const r="number"==typeof n?n:1,o=`${e}:${t}`;c&&m.log(`Recording outcome: "${o}"${r>1?` (${r} times)`:""}`),this._outcomes[o]=(this._outcomes[o]||0)+r}}on(e,t){const n=this._hooks[e]=this._hooks[e]||[];return n.push(t),()=>{const e=n.indexOf(t);e>-1&&n.splice(e,1)}}emit(e,...t){const n=this._hooks[e];n&&n.forEach(e=>e(...t))}sendEnvelope(e){return this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport?this._transport.send(e).then(null,e=>(c&&m.error("Error while sending envelope:",e),e)):(c&&m.error("Transport disabled"),be({}))}_setupIntegrations(){const{integrations:e}=this._options;this._integrations=function(e,t){const n={};return t.forEach(t=>{t&&Bt(e,t,n)}),n}(this,e),qt(this,e)}_updateSessionFromEvent(e,t){let n="fatal"===t.level,r=!1;const o=t.exception&&t.exception.values;if(o){r=!0;for(const e of o){const t=e.mechanism;if(t&&!1===t.handled){n=!0;break}}}const i="ok"===e.status;(i&&0===e.errors||i&&n)&&(Ee(e,{...n&&{status:"crashed"},errors:e.errors||Number(r||n)}),this.captureSession(e))}_isClientDoneProcessing(e){return new xe(t=>{let n=0;const r=setInterval(()=>{0==this._numProcessing?(clearInterval(r),t(!0)):(n+=1,e&&n>=e&&(clearInterval(r),t(!1)))},1)})}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(e,t,n=Me(),r=$e()){const o=this.getOptions(),i=Object.keys(this._integrations);return!t.integrations&&i.length>0&&(t.integrations=i),this.emit("preprocessEvent",e,t),e.type||r.setLastEventId(e.event_id||t.event_id),Rt(o,e,t,n,this,r).then(e=>(null===e||(e.contexts={trace:He(n),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:tt(this,n),...e.sdkProcessingMetadata}),e))}_captureEvent(e,t={},n){return this._processEvent(e,t,n).then(e=>e.event_id,e=>{c&&(e instanceof zt&&"log"===e.logLevel?m.log(e.message):m.warn(e))})}_processEvent(e,t,n){const r=this.getOptions(),{sampleRate:o}=r,i=Gt(e),s=Wt(e),a=e.type||"error",l=`before send for type \`${a}\``,u=void 0===o?void 0:function(e){if("boolean"==typeof e)return Number(e);const t="string"==typeof e?parseFloat(e):e;if(!("number"!=typeof t||isNaN(t)||t<0||t>1))return t;c&&m.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`)}(o);if(s&&"number"==typeof u&&Math.random()>u)return this.recordDroppedEvent("sample_rate","error",e),we(new zt(`Discarding event because it's not included in the random sample (sampling rate = ${o})`,"log"));const d="replay_event"===a?"replay":a,h=(e.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(e,t,n,h).then(n=>{if(null===n)throw this.recordDroppedEvent("event_processor",d,e),new zt("An event processor returned `null`, will not send event.","log");return t.data&&!0===t.data.__sentry__?n:function(e,t){const n=`${t} must return \`null\` or a valid event.`;if(V(e))return e.then(e=>{if(!B(e)&&null!==e)throw new zt(n);return e},e=>{throw new zt(`${t} rejected with ${e}`)});if(!B(e)&&null!==e)throw new zt(n);return e}(function(e,t,n,r){const{beforeSend:o,beforeSendTransaction:i,beforeSendSpan:s}=t;if(Wt(n)&&o)return o(n,r);if(Gt(n)){if(n.spans&&s){const t=[];for(const r of n.spans){const n=s(r);n?t.push(n):(Xe(),e.recordDroppedEvent("before_send","span"))}n.spans=t}if(i){if(n.spans){const e=n.spans.length;n.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return i(n,r)}}return n}(this,r,n,t),l)}).then(r=>{if(null===r){if(this.recordDroppedEvent("before_send",d,e),i){const t=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",t)}throw new zt(`${l} returned \`null\`, will not send event.`,"log")}const o=n&&n.getSession();if(!i&&o&&this._updateSessionFromEvent(o,r),i){const e=(r.sdkProcessingMetadata&&r.sdkProcessingMetadata.spanCountBeforeProcessing||0)-(r.spans?r.spans.length:0);e>0&&this.recordDroppedEvent("before_send","span",e)}const s=r.transaction_info;if(i&&s&&r.transaction!==e.transaction){const e="custom";r.transaction_info={...s,source:e}}return this.sendEvent(r,t),r}).then(null,e=>{if(e instanceof zt)throw e;throw this.captureException(e,{data:{__sentry__:!0},originalException:e}),new zt(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${e}`)})}_process(e){this._numProcessing++,e.then(e=>(this._numProcessing--,e),e=>(this._numProcessing--,e))}_clearOutcomes(){const e=this._outcomes;return this._outcomes={},Object.entries(e).map(([e,t])=>{const[n,r]=e.split(":");return{reason:n,category:r,quantity:t}})}_flushOutcomes(){c&&m.log("Flushing outcomes...");const e=this._clearOutcomes();if(0===e.length)return void(c&&m.log("No outcomes to send"));if(!this._dsn)return void(c&&m.log("No dsn provided, will not send outcomes"));c&&m.log("Sending outcomes:",e);const t=(n=e,ht((r=this._options.tunnel&&it(this._dsn))?{dsn:r}:{},[[{type:"client_report"},{timestamp:o||ue(),discarded_events:n}]]));var n,r,o;this.sendEnvelope(t)}};function Wt(e){return void 0===e.type}function Gt(e){return"transaction"===e.type}function Jt(e,t){!0===t.debug&&(c?m.enable():g(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),Me().update(t.initialScope);const n=new e(t);return function(e){Me().setClient(e)}(n),n.init(),n}function Yt(e){const t=[];function n(e){return t.splice(t.indexOf(e),1)[0]||Promise.resolve(void 0)}return{$:t,add:function(r){if(!(void 0===e||t.length<e))return we(new zt("Not adding Promise because buffer limit was reached."));const o=r();return-1===t.indexOf(o)&&t.push(o),o.then(()=>n(o)).then(null,()=>n(o).then(null,()=>{})),o},drain:function(e){return new xe((n,r)=>{let o=t.length;if(!o)return n(!0);const i=setTimeout(()=>{e&&e>0&&n(!1)},e);t.forEach(e=>{be(e).then(()=>{--o||(clearTimeout(i),n(!0))},r)})})}}}function Qt(e,{statusCode:t,headers:n},r=Date.now()){const o={...e},i=n&&n["x-sentry-rate-limits"],s=n&&n["retry-after"];if(i)for(const a of i.trim().split(",")){const[e,t,,,n]=a.split(":",5),i=parseInt(e,10),s=1e3*(isNaN(i)?60:i);if(t)for(const a of t.split(";"))"metric_bucket"===a&&n&&!n.split(";").includes("custom")||(o[a]=r+s);else o.all=r+s}else s?o.all=r+function(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return 1e3*n;const r=Date.parse(`${e}`);return isNaN(r)?6e4:r-t}(s,r):429===t&&(o.all=r+6e4);return o}function Xt(e,t,n=Yt(e.bufferSize||64)){let r={};return{send:function(o){const i=[];if(ft(o,(t,n)=>{const o=_t(n);if(function(e,t,n=Date.now()){return function(e,t){return e[t]||e.all||0}(e,t)>n}(r,o)){const r=Zt(t,n);e.recordDroppedEvent("ratelimit_backoff",o,r)}else i.push(t)}),0===i.length)return be({});const s=ht(o[0],i),a=t=>{ft(s,(n,r)=>{const o=Zt(n,r);e.recordDroppedEvent(t,_t(r),o)})};return n.add(()=>t({body:mt(s)}).then(e=>(void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&c&&m.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),r=Qt(r,e),e),e=>{throw a("network_error"),e})).then(e=>e,e=>{if(e instanceof zt)return c&&m.error("Skipped sending event because buffer is full."),a("queue_overflow"),be({});throw e})},flush:e=>n.drain(e)}}function Zt(e,t){if("event"===t||"transaction"===t)return Array.isArray(e)?e[1]:void 0}function en(e,t){const n=t&&t.getDsn(),r=t&&t.getOptions().tunnel;return function(e,t){return!!t&&e.includes(t.host)}(e,n)||function(e,t){return!!t&&tn(e)===tn(t)}(e,r)}function tn(e){return"/"===e[e.length-1]?e.slice(0,-1):e}function nn(e,t,n=[t],r="npm"){const o=e._metadata||{};o.sdk||(o.sdk={name:`sentry.javascript.${t}`,packages:n.map(e=>({name:`${r}:@sentry/${e}`,version:l})),version:l}),e._metadata=o}var rn,on=100;function sn(e,t){const n=Fe(),r=$e();if(!n)return;const{beforeBreadcrumb:o=null,maxBreadcrumbs:i=on}=n.getOptions();if(i<=0)return;const s={timestamp:ue(),...e},a=o?g(()=>o(s,t)):s;null!==a&&(n.emit&&n.emit("beforeAddBreadcrumb",a,t),r.addBreadcrumb(a,i))}var an=new WeakMap,cn=()=>({name:"FunctionToString",setupOnce(){rn=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=oe(this),n=an.has(Fe())&&void 0!==t?t:this;return rn.apply(n,e)}}catch(cv){}},setup(e){an.set(e,!0)}}),ln=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,"undefined is not an object (evaluating 'a.L')",'can\'t redefine non-configurable property "solana"',"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler",/^Non-Error promise rejection captured with value: Object Not Found Matching Id:\d+, MethodName:simulateEvent, ParamCount:\d+$/],un=(e={})=>({name:"InboundFilters",processEvent:(t,n,r)=>function(e,t){if(t.ignoreInternal&&function(e){try{return"SentryError"===e.exception.values[0].type}catch(cv){}return!1}(e))return c&&m.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${ge(e)}`),!0;if(function(e,t){return!(e.type||!t||!t.length)&&function(e){const t=[];e.message&&t.push(e.message);let n;try{n=e.exception.values[e.exception.values.length-1]}catch(cv){}n&&n.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`));return t}(e).some(e=>ee(e,t))}(e,t.ignoreErrors))return c&&m.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${ge(e)}`),!0;if(function(e){return!e.type&&(!(!e.exception||!e.exception.values||0===e.exception.values.length)&&(!e.message&&!e.exception.values.some(e=>e.stacktrace||e.type&&"Error"!==e.type||e.value)))}(e))return c&&m.warn(`Event dropped due to not having an error message, error type or stacktrace.\nEvent: ${ge(e)}`),!0;if(function(e,t){if("transaction"!==e.type||!t||!t.length)return!1;const n=e.transaction;return!!n&&ee(n,t)}(e,t.ignoreTransactions))return c&&m.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${ge(e)}`),!0;if(function(e,t){if(!t||!t.length)return!1;const n=dn(e);return!!n&&ee(n,t)}(e,t.denyUrls))return c&&m.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${ge(e)}.\nUrl: ${dn(e)}`),!0;if(!function(e,t){if(!t||!t.length)return!0;const n=dn(e);return!n||ee(n,t)}(e,t.allowUrls))return c&&m.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${ge(e)}.\nUrl: ${dn(e)}`),!0;return!1}(t,function(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:ln],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]],ignoreInternal:void 0===e.ignoreInternal||e.ignoreInternal}}(e,r.getOptions()))?null:t});function dn(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch(cv){}return t?function(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&"<anonymous>"!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(t):null}catch(t){return c&&m.error(`Cannot extract url for event ${ge(e)}`),null}}function hn(e,t,n=250,r,o,i,s){if(!(i.exception&&i.exception.values&&s&&K(s.originalException,Error)))return;const a=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:void 0;var c,l;a&&(i.exception.values=(c=pn(e,t,o,s.originalException,r,i.exception.values,a,0),l=n,c.map(e=>(e.value&&(e.value=Q(e.value,l)),e))))}function pn(e,t,n,r,o,i,s,a){if(i.length>=n+1)return i;let c=[...i];if(K(r[o],Error)){fn(s,a);const i=e(t,r[o]),l=c.length;gn(i,o,l,a),c=pn(e,t,n,r[o],o,[i,...c],i,l)}return Array.isArray(r.errors)&&r.errors.forEach((r,i)=>{if(K(r,Error)){fn(s,a);const l=e(t,r),u=c.length;gn(l,`errors[${i}]`,u,a),c=pn(e,t,n,r,o,[l,...c],l,u)}}),c}function fn(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,..."AggregateError"===e.type&&{is_exception_group:!0},exception_id:t}}function gn(e,t,n,r){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}function mn(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}function vn(){"console"in u&&p.forEach(function(e){e in u.console&&te(u.console,e,function(t){return f[e]=t,function(...t){P("console",{args:t,level:e});const n=f[e];n&&n.apply(u.console,t)}})})}function yn(e){return"warn"===e?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}var bn=()=>{let e;return{name:"Dedupe",processEvent(t){if(t.type)return t;try{if(function(e,t){return!!t&&(!!function(e,t){const n=e.message,r=t.message;return!(!n&&!r)&&(!(n&&!r||!n&&r)&&(n===r&&(!!xn(e,t)&&!!wn(e,t))))}(e,t)||!!function(e,t){const n=_n(t),r=_n(e);return!(!n||!r)&&(n.type===r.type&&n.value===r.value&&(!!xn(e,t)&&!!wn(e,t)))}(e,t))}(t,e))return c&&m.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(n){}return e=t}}};function wn(e,t){let n=E(e),r=E(t);if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;if(r.length!==n.length)return!1;for(let o=0;o<r.length;o++){const e=r[o],t=n[o];if(e.filename!==t.filename||e.lineno!==t.lineno||e.colno!==t.colno||e.function!==t.function)return!1}return!0}function xn(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;try{return!(n.join("")!==r.join(""))}catch(o){return!1}}function _n(e){return e.exception&&e.exception.values&&e.exception.values[0]}var En=(e={})=>{const{depth:t=3,captureErrorCause:n=!0}=e;return{name:"ExtraErrorData",processEvent(e,r,o){const{maxValueLength:i=250}=o.getOptions();return function(e,t={},n,r,o){if(!t.originalException||!I(t.originalException))return e;const i=t.originalException.name||t.originalException.constructor.name,s=function(e,t,n){try{const r=["name","message","stack","line","column","fileName","lineNumber","columnNumber","toJSON"],o={};for(const t of Object.keys(e)){if(-1!==r.indexOf(t))continue;const i=e[t];o[t]=I(i)||"string"==typeof i?Q(`${i}`,n):i}if(t&&void 0!==e.cause&&(o.cause=I(e.cause)?e.cause.toString():e.cause),"function"==typeof e.toJSON){const t=e.toJSON();for(const e of Object.keys(t)){const n=t[e];o[e]=I(n)?n.toString():n}}return o}catch(r){c&&m.error("Unable to extract extra data from the Error object:",r)}return null}(t.originalException,r,o);if(s){const t={...e.contexts},r=lt(s,n);return B(r)&&(ne(r,"__sentry_skip_normalization__",!0),t[i]=r),{...e,contexts:t}}return e}(e,r,t,n,i)}}};function Sn(e){return void 0===e?void 0:e>=400&&e<500?"warning":e>=500?"error":void 0}var kn=u;function On(){if(!("fetch"in kn))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(cv){return!1}}function Cn(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function Pn(){if("string"==typeof EdgeRuntime)return!0;if(!On())return!1;if(Cn(kn.fetch))return!0;let e=!1;const t=kn.document;if(t&&"function"==typeof t.createElement)try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=Cn(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){h&&m.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e}function Rn(e,t){const n="fetch";O(n,e),C(n,()=>function(e,t=!1){if(t&&!Pn())return;te(u,"fetch",function(t){return function(...n){const r=new Error,{method:o,url:i}=function(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){const[t,n]=e;return{url:Tn(t),method:Ln(n,"method")?String(n.method).toUpperCase():"GET"}}const t=e[0];return{url:Tn(t),method:Ln(t,"method")?String(t.method).toUpperCase():"GET"}}(n),s={args:n,fetchData:{method:o,url:i},startTimestamp:1e3*he(),virtualError:r};return e||P("fetch",{...s}),t.apply(u,n).then(async t=>(e?e(t):P("fetch",{...s,endTimestamp:1e3*he(),response:t}),t),e=>{throw P("fetch",{...s,endTimestamp:1e3*he(),error:e}),I(e)&&void 0===e.stack&&(e.stack=r.stack,ne(e,"framesToPop",1)),e})}})}(void 0,t))}function Ln(e,t){return!!e&&"object"==typeof e&&!!e[t]}function Tn(e){return"string"==typeof e?e:e?Ln(e,"url")?e.url:e.toString?e.toString():"":""}var Dn=u;var Nn=u,jn=0;function An(){return jn>0}function In(e,t={}){if(!function(e){return"function"==typeof e}(e))return e;try{const t=e.__sentry_wrapped__;if(t)return"function"==typeof t?t:e;if(oe(e))return e}catch(cv){return e}const n=function(...n){try{const r=n.map(e=>In(e,t));return e.apply(this,r)}catch(r){throw jn++,setTimeout(()=>{jn--}),function(...e){const t=Ie(N());if(2===e.length){const[n,r]=e;return n?t.withSetScope(n,r):t.withScope(r)}t.withScope(e[0])}(e=>{e.addEventProcessor(e=>(t.mechanism&&(me(e,void 0,void 0),ve(e,t.mechanism)),e.extra={...e.extra,arguments:n},e)),Dt(r)}),r}};try{for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}catch(r){}re(n,e),ne(e,"__sentry_wrapped__",n);try{Object.getOwnPropertyDescriptor(n,"name").configurable&&Object.defineProperty(n,"name",{get:()=>e.name})}catch(o){}return n}var Mn="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function $n(e,t){const n=Un(e,t),r={type:zn(t),value:Vn(t)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function Fn(e,t,n,r){const o=Fe(),i=o&&o.getOptions().normalizeDepth,s=function(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)){const n=e[t];if(n instanceof Error)return n}}(t),a={__serialized__:ut(t,i)};if(s)return{exception:{values:[$n(e,s)]},extra:a};const c={exception:{values:[{type:z(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:Gn(t,{isUnhandledRejection:r})}]},extra:a};if(n){const t=Un(e,n);t.length&&(c.exception.values[0].stacktrace={frames:t})}return c}function Hn(e,t){return{exception:{values:[$n(e,t)]}}}function Un(e,t){const n=t.stacktrace||t.stack||"",r=function(e){return e&&qn.test(e.message)?1:0}(t),o=function(e){return"number"==typeof e.framesToPop?e.framesToPop:0}(t);try{return e(n,r,o)}catch(cv){}return[]}var qn=/Minified React error #\d+;/i;function Bn(e){return"undefined"!=typeof WebAssembly&&void 0!==WebAssembly.Exception&&e instanceof WebAssembly.Exception}function zn(e){const t=e&&e.name;return!t&&Bn(e)?e.message&&Array.isArray(e.message)&&2==e.message.length?e.message[0]:"WebAssembly.Exception":t}function Vn(e){const t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:Bn(e)&&Array.isArray(e.message)&&2==e.message.length?e.message[1]:t:"No error message"}function Kn(e,t,n,r,o){let i;if($(t)&&t.error)return Hn(e,t.error);if(F(t)||M(t,"DOMException")){const o=t;if("stack"in t)i=Hn(e,t);else{const t=o.name||(F(o)?"DOMError":"DOMException"),s=o.message?`${t}: ${o.message}`:t;i=Wn(e,s,n,r),me(i,s)}return"code"in o&&(i.tags={...i.tags,"DOMException.code":`${o.code}`}),i}return I(t)?Hn(e,t):B(t)||z(t)?(i=Fn(e,t,n,o),ve(i,{synthetic:!0}),i):(i=Wn(e,t,n,r),me(i,`${t}`,void 0),ve(i,{synthetic:!0}),i)}function Wn(e,t,n,r){const o={};if(r&&n){const r=Un(e,n);r.length&&(o.exception={values:[{value:t,stacktrace:{frames:r}}]}),ve(o,{synthetic:!0})}if(U(t)){const{__sentry_template_string__:e,__sentry_template_values__:n}=t;return o.logentry={message:e,params:n},o}return o.message=t,o}function Gn(e,{isUnhandledRejection:t}){const n=function(e,t=40){const n=Object.keys(ie(e));n.sort();const r=n[0];if(!r)return"[object has no keys]";if(r.length>=t)return Q(r,t);for(let o=n.length;o>0;o--){const e=n.slice(0,o).join(", ");if(!(e.length>t))return o===n.length?e:Q(e,t)}return""}(e),r=t?"promise rejection":"exception";return $(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:z(e)?`Event \`${function(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch(cv){}}(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function Jn(e){return[{type:"user_report"},e]}var Yn,Qn,Xn,Zn,er=class extends Kt{constructor(e){const t={parentSpanIsAlwaysRootSpan:!0,...e};nn(t,"browser",["browser"],Nn.SENTRY_SDK_SOURCE||"npm"),super(t),t.sendClientReports&&Nn.document&&Nn.document.addEventListener("visibilitychange",()=>{"hidden"===Nn.document.visibilityState&&this._flushOutcomes()})}eventFromException(e,t){return function(e,t,n,r){const o=Kn(e,t,n&&n.syntheticException||void 0,r);return ve(o),o.level="error",n&&n.event_id&&(o.event_id=n.event_id),be(o)}(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",n){return function(e,t,n="info",r,o){const i=Wn(e,t,r&&r.syntheticException||void 0,o);return i.level=n,r&&r.event_id&&(i.event_id=r.event_id),be(i)}(this._options.stackParser,e,t,n,this._options.attachStacktrace)}captureUserFeedback(e){if(!this._isEnabled())return void(Mn&&m.warn("SDK not enabled, will not capture user feedback."));const t=function(e,{metadata:t,tunnel:n,dsn:r}){return ht({event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!r&&{dsn:it(r)}},[Jn(e)])}(e,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this.sendEnvelope(t)}_prepareEvent(e,t,n){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,n)}},tr="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,nr=u;function rr(){if(!nr.document)return;const e=P.bind(null,"dom"),t=or(e,!0);nr.document.addEventListener("click",t,!1),nr.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(t=>{const n=nr[t],r=n&&n.prototype;r&&r.hasOwnProperty&&r.hasOwnProperty("addEventListener")&&(te(r,"addEventListener",function(t){return function(n,r,o){if("click"===n||"keypress"==n)try{const r=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},i=r[n]=r[n]||{refCount:0};if(!i.handler){const r=or(e);i.handler=r,t.call(this,n,r,o)}i.refCount++}catch(cv){}return t.call(this,n,r,o)}}),te(r,"removeEventListener",function(e){return function(t,n,r){if("click"===t||"keypress"==t)try{const n=this.__sentry_instrumentation_handlers__||{},o=n[t];o&&(o.refCount--,o.refCount<=0&&(e.call(this,t,o.handler,r),o.handler=void 0,delete n[t]),0===Object.keys(n).length&&delete this.__sentry_instrumentation_handlers__)}catch(cv){}return e.call(this,t,n,r)}}))})}function or(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=function(e){try{return e.target}catch(cv){return null}}(n);if(function(e,t){return"keypress"===e&&(!t||!t.tagName||"INPUT"!==t.tagName&&"TEXTAREA"!==t.tagName&&!t.isContentEditable)}(n.type,r))return;ne(n,"_sentryCaptured",!0),r&&!r._sentryId&&ne(r,"_sentryId",pe());const o="keypress"===n.type?"input":n.type;(function(e){if(e.type!==Qn)return!1;try{if(!e.target||e.target._sentryId!==Xn)return!1}catch(cv){}return!0})(n)||(e({event:n,name:o,global:t}),Qn=n.type,Xn=r?r._sentryId:void 0),clearTimeout(Yn),Yn=nr.setTimeout(()=>{Xn=void 0,Qn=void 0},1e3)}}function ir(e){const t="history";O(t,e),C(t,sr)}function sr(){if(!function(){const e=Dn.chrome,t=e&&e.app&&e.app.runtime,n="history"in Dn&&!!Dn.history.pushState&&!!Dn.history.replaceState;return!t&&n}())return;const e=nr.onpopstate;function t(e){return function(...t){const n=t.length>2?t[2]:void 0;if(n){const e=Zn,t=String(n);Zn=t,P("history",{from:e,to:t})}return e.apply(this,t)}}nr.onpopstate=function(...t){const n=nr.location.href,r=Zn;if(Zn=n,P("history",{from:r,to:n}),e)try{return e.apply(this,t)}catch(o){}},te(nr.history,"pushState",t),te(nr.history,"replaceState",t)}var ar={};function cr(e){ar[e]=void 0}var lr="__sentry_xhr_v3__";function ur(e){O("xhr",e),C("xhr",dr)}function dr(){if(!nr.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(e,t,n){const r=new Error,o=1e3*he(),i=H(n[0])?n[0].toUpperCase():void 0,s=function(e){if(H(e))return e;try{return e.toString()}catch(t){}}(n[1]);if(!i||!s)return e.apply(t,n);t[lr]={method:i,url:s,request_headers:{}},"POST"===i&&s.match(/sentry_key/)&&(t.__sentry_own_request__=!0);const a=()=>{const e=t[lr];if(e&&4===t.readyState){try{e.status_code=t.status}catch(cv){}P("xhr",{endTimestamp:1e3*he(),startTimestamp:o,xhr:t,virtualError:r})}};return"onreadystatechange"in t&&"function"==typeof t.onreadystatechange?t.onreadystatechange=new Proxy(t.onreadystatechange,{apply:(e,t,n)=>(a(),e.apply(t,n))}):t.addEventListener("readystatechange",a),t.setRequestHeader=new Proxy(t.setRequestHeader,{apply(e,t,n){const[r,o]=n,i=t[lr];return i&&H(r)&&H(o)&&(i.request_headers[r.toLowerCase()]=o),e.apply(t,n)}}),e.apply(t,n)}}),e.send=new Proxy(e.send,{apply(e,t,n){const r=t[lr];return r?(void 0!==n[0]&&(r.body=n[0]),P("xhr",{startTimestamp:1e3*he(),xhr:t}),e.apply(t,n)):e.apply(t,n)}})}function hr(e,t=function(e){const t=ar[e];if(t)return t;let n=nr[e];if(Cn(n))return ar[e]=n.bind(nr);const r=nr.document;if(r&&"function"==typeof r.createElement)try{const t=r.createElement("iframe");t.hidden=!0,r.head.appendChild(t);const o=t.contentWindow;o&&o[e]&&(n=o[e]),r.head.removeChild(t)}catch(cv){tr&&m.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,cv)}return n?ar[e]=n.bind(nr):n}("fetch")){let n=0,r=0;return Xt(e,function(o){const i=o.body.length;n+=i,r++;const s={body:o.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};if(!t)return cr("fetch"),we("No fetch implementation available");try{return t(e.url,s).then(e=>(n-=i,r--,{statusCode:e.status,headers:{"x-sentry-rate-limits":e.headers.get("X-Sentry-Rate-Limits"),"retry-after":e.headers.get("Retry-After")}}))}catch(cv){return cr("fetch"),n-=i,r--,we(cv)}})}function pr(e,t,n,r){const o={filename:e,function:"<anonymous>"===t?"?":t,in_app:!0};return void 0!==n&&(o.lineno=n),void 0!==r&&(o.colno=r),o}var fr=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,gr=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,mr=/\((\S*)(?::(\d+))(?::(\d+))\)/,vr=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,yr=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,br=b(...[[30,e=>{const t=fr.exec(e);if(t){const[,e,n,r]=t;return pr(e,"?",+n,+r)}const n=gr.exec(e);if(n){if(n[2]&&0===n[2].indexOf("eval")){const e=mr.exec(n[2]);e&&(n[2]=e[1],n[3]=e[2],n[4]=e[3])}const[e,t]=wr(n[1]||"?",n[2]);return pr(t,e,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}}],[50,e=>{const t=vr.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const e=yr.exec(t[3]);e&&(t[1]=t[1]||"eval",t[3]=e[1],t[4]=e[2],t[5]="")}let e=t[3],n=t[1]||"?";return[n,e]=wr(n,e),pr(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}]]),wr=(e,t)=>{const n=-1!==e.indexOf("safari-extension"),r=-1!==e.indexOf("safari-web-extension");return n||r?[-1!==e.indexOf("@")?e.split("@")[0]:"?",n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},xr=1024,_r=(e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:"Breadcrumbs",setup(e){var n;t.console&&function(e){const t="console";O(t,e),C(t,vn)}(function(e){return function(t){if(Fe()!==e)return;const n={category:"console",data:{arguments:t.args,logger:"console"},level:yn(t.level),message:X(t.args," ")};if("assert"===t.level){if(!1!==t.args[0])return;n.message=`Assertion failed: ${X(t.args.slice(1)," ")||"console.assert"}`,n.data.arguments=t.args.slice(1)}sn(n,{input:t.args,level:t.level})}}(e)),t.dom&&(n=function(e,t){return function(n){if(Fe()!==e)return;let r,o,i="object"==typeof t?t.serializeAttribute:void 0,s="object"==typeof t&&"number"==typeof t.maxStringLength?t.maxStringLength:void 0;s&&s>xr&&(Mn&&m.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${s} was configured. Sentry will use 1024 instead.`),s=xr),"string"==typeof i&&(i=[i]);try{const e=n.event,t=function(e){return!!e&&!!e.target}(e)?e.target:e;r=J(t,{keyAttrs:i,maxStringLength:s}),o=function(e){if(!G.HTMLElement)return null;let t=e;for(let n=0;n<5;n++){if(!t)return null;if(t instanceof HTMLElement){if(t.dataset.sentryComponent)return t.dataset.sentryComponent;if(t.dataset.sentryElement)return t.dataset.sentryElement}t=t.parentNode}return null}(t)}catch(cv){r="<unknown>"}if(0===r.length)return;const a={category:`ui.${n.name}`,message:r};o&&(a.data={"ui.component_name":o}),sn(a,{event:n.event,name:n.name,global:n.global})}}(e,t.dom),O("dom",n),C("dom",rr)),t.xhr&&ur(function(e){return function(t){if(Fe()!==e)return;const{startTimestamp:n,endTimestamp:r}=t,o=t.xhr[lr];if(!n||!r||!o)return;const{method:i,url:s,status_code:a,body:c}=o,l={method:i,url:s,status_code:a},u={xhr:t.xhr,input:c,startTimestamp:n,endTimestamp:r};sn({category:"xhr",data:l,type:"http",level:Sn(a)},u)}}(e)),t.fetch&&Rn(function(e){return function(t){if(Fe()!==e)return;const{startTimestamp:n,endTimestamp:r}=t;if(r&&(!t.fetchData.url.match(/sentry_key/)||"POST"!==t.fetchData.method))if(t.error){sn({category:"fetch",data:t.fetchData,level:"error",type:"http"},{data:t.error,input:t.args,startTimestamp:n,endTimestamp:r})}else{const e=t.response,o={...t.fetchData,status_code:e&&e.status},i={input:t.args,response:e,startTimestamp:n,endTimestamp:r};sn({category:"fetch",data:o,type:"http",level:Sn(o.status_code)},i)}}}(e)),t.history&&ir(function(e){return function(t){if(Fe()!==e)return;let n=t.from,r=t.to;const o=mn(Nn.location.href);let i=n?mn(n):void 0;const s=mn(r);i&&i.path||(i=o),o.protocol===s.protocol&&o.host===s.host&&(r=s.relative),o.protocol===i.protocol&&o.host===i.host&&(n=i.relative),sn({category:"navigation",data:{from:n,to:r}})}}(e)),t.sentry&&e.on("beforeSendEvent",function(e){return function(t){Fe()===e&&sn({category:"sentry."+("transaction"===t.type?"transaction":"event"),event_id:t.event_id,level:t.level,message:ge(t)},{event:t})}}(e))}}};var Er=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],Sr=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:"BrowserApiErrors",setupOnce(){t.setTimeout&&te(Nn,"setTimeout",kr),t.setInterval&&te(Nn,"setInterval",kr),t.requestAnimationFrame&&te(Nn,"requestAnimationFrame",Or),t.XMLHttpRequest&&"XMLHttpRequest"in Nn&&te(XMLHttpRequest.prototype,"send",Cr);const e=t.eventTarget;e&&(Array.isArray(e)?e:Er).forEach(Pr)}}};function kr(e){return function(...t){const n=t[0];return t[0]=In(n,{mechanism:{data:{function:_(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function Or(e){return function(t){return e.apply(this,[In(t,{mechanism:{data:{function:"requestAnimationFrame",handler:_(e)},handled:!1,type:"instrument"}})])}}function Cr(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(e=>{e in n&&"function"==typeof n[e]&&te(n,e,function(t){const n={mechanism:{data:{function:e,handler:_(t)},handled:!1,type:"instrument"}},r=oe(t);return r&&(n.mechanism.data.handler=_(r)),In(t,n)})}),e.apply(this,t)}}function Pr(e){const t=Nn[e],n=t&&t.prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(te(n,"addEventListener",function(t){return function(n,r,o){try{"function"==typeof r.handleEvent&&(r.handleEvent=In(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:_(r),target:e},handled:!1,type:"instrument"}}))}catch(i){}return t.apply(this,[n,In(r,{mechanism:{data:{function:"addEventListener",handler:_(r),target:e},handled:!1,type:"instrument"}}),o])}}),te(n,"removeEventListener",function(e){return function(t,n,r){try{const o=n.__sentry_wrapped__;o&&e.call(this,t,o,r)}catch(cv){}return e.call(this,t,n,r)}}))}var Rr=()=>({name:"BrowserSession",setupOnce(){void 0!==Nn.document?(At({ignoreDuration:!0}),$t(),ir(({from:e,to:t})=>{void 0!==e&&e!==t&&(At({ignoreDuration:!0}),$t())})):Mn&&m.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.")}}),Lr=(e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:"GlobalHandlers",setupOnce(){Error.stackTraceLimit=50},setup(e){t.onerror&&(!function(e){!function(e){const t="error";O(t,e),C(t,L)}(t=>{const{stackParser:n,attachStacktrace:r}=Dr();if(Fe()!==e||An())return;const{msg:o,url:i,line:s,column:a,error:c}=t,l=function(e,t,n,r){const o=e.exception=e.exception||{},i=o.values=o.values||[],s=i[0]=i[0]||{},a=s.stacktrace=s.stacktrace||{},c=a.frames=a.frames||[],l=r,u=n,d=H(t)&&t.length>0?t:function(){try{return G.document.location.href}catch(e){return""}}();0===c.length&&c.push({colno:l,filename:d,function:"?",in_app:!0,lineno:u});return e}(Kn(n,c||o,void 0,r,!1),i,s,a);l.level="error",Nt(l,{originalException:c,mechanism:{handled:!1,type:"onerror"}})})}(e),Tr("onerror")),t.onunhandledrejection&&(!function(e){!function(e){const t="unhandledrejection";O(t,e),C(t,D)}(t=>{const{stackParser:n,attachStacktrace:r}=Dr();if(Fe()!==e||An())return;const o=function(e){if(q(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch(t){}return e}(t),i=q(o)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(o)}`}]}}:Kn(n,o,void 0,r,!0);i.level="error",Nt(i,{originalException:o,mechanism:{handled:!1,type:"onunhandledrejection"}})})}(e),Tr("onunhandledrejection"))}}};function Tr(e){Mn&&m.log(`Global Handler attached: ${e}`)}function Dr(){const e=Fe();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}var Nr=()=>({name:"HttpContext",preprocessEvent(e){if(!Nn.navigator&&!Nn.location&&!Nn.document)return;const t=e.request&&e.request.url||Nn.location&&Nn.location.href,{referrer:n}=Nn.document||{},{userAgent:r}=Nn.navigator||{},o={...e.request&&e.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}};e.request={...e.request,...t&&{url:t},headers:o}}}),jr=(e={})=>{const t=e.limit||5,n=e.key||"cause";return{name:"LinkedErrors",preprocessEvent(e,r,o){const i=o.getOptions();hn($n,i.stackParser,i.maxValueLength,n,t,e,r)}}};function Ar(e){const t=[un(),cn(),Sr(),_r(),Lr(),jr(),bn(),Nr()];return!1!==e.autoSessionTracking&&t.push(Rr()),t}function Ir(e={}){const t=function(e={}){const t={defaultIntegrations:Ar(e),release:"string"==typeof __SENTRY_RELEASE__?__SENTRY_RELEASE__:Nn.SENTRY_RELEASE&&Nn.SENTRY_RELEASE.id?Nn.SENTRY_RELEASE.id:void 0,autoSessionTracking:!0,sendClientReports:!0};return null==e.defaultIntegrations&&delete e.defaultIntegrations,{...t,...e}}(e);var n;if(t.skipBrowserExtensionCheck||!function(){const e=void 0!==Nn.window&&Nn;if(!e)return!1;const t=e[e.chrome?"chrome":"browser"],n=t&&t.runtime&&t.runtime.id,r=Nn.location&&Nn.location.href||"",o=!!n&&Nn===Nn.top&&["chrome-extension:","moz-extension:","ms-browser-extension:","safari-web-extension:"].some(e=>r.startsWith(`${e}//`)),i=void 0!==e.nw;return!!n&&!o&&!i}())return Mn&&(On()||m.warn("No Fetch API detected. The Sentry SDK requires a Fetch API compatible environment to send events. Please add a Fetch API polyfill.")),Jt(er,{...t,stackParser:(n=t.stackParser||br,Array.isArray(n)?b(...n):n),integrations:Ut(t),transport:t.transport||hr});g(()=>{console.error("[Sentry] You cannot run Sentry this way in a browser extension, check: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")})}var Mr=(e={})=>{const t={failedRequestStatusCodes:[[500,599]],failedRequestTargets:[/.*/],...e};return{name:"HttpClient",setup(e){!function(e,t){if(!Pn())return;Rn(n=>{if(Fe()!==e)return;const{response:r,args:o,error:i,virtualError:s}=n,[a,c]=o;r&&function(e,t,n,r,o){if(Ur(e,n.status,n.url)){const e=function(e,t){return!t&&e instanceof Request||e instanceof Request&&e.bodyUsed?e:new Request(e,t)}(t,r);let i,s,a,c;Br()&&([i,a]=$r("Cookie",e),[s,c]=$r("Set-Cookie",n)),Nt(qr({url:e.url,method:e.method,status:n.status,requestHeaders:i,responseHeaders:s,requestCookies:a,responseCookies:c,error:o}))}}(t,a,r,c,i||s)},!1)}(e,t),function(e,t){if(!("XMLHttpRequest"in u))return;ur(n=>{if(Fe()!==e)return;const{error:r,virtualError:o}=n,i=n.xhr,s=i[lr];if(!s)return;const{method:a,request_headers:c}=s;try{!function(e,t,n,r,o){if(Ur(e,t.status,t.responseURL)){let e,a,c;if(Br()){try{const e=t.getResponseHeader("Set-Cookie")||t.getResponseHeader("set-cookie")||void 0;e&&(a=Hr(e))}catch(i){}try{c=function(e){const t=e.getAllResponseHeaders();return t?t.split("\r\n").reduce((e,t)=>{const[n,r]=t.split(": ");return n&&r&&(e[n]=r),e},{}):{}}(t)}catch(s){}e=r}Nt(qr({url:t.responseURL,method:n,status:t.status,requestHeaders:e,responseHeaders:c,responseCookies:a,error:o}))}}(t,i,a,c,r||o)}catch(cv){Mn&&m.warn("Error while extracting response event form XHR response",cv)}})}(e,t)}}};function $r(e,t){const n=function(e){const t={};return e.forEach((e,n)=>{t[n]=e}),t}(t.headers);let r;try{const t=n[e]||n[e.toLowerCase()]||void 0;t&&(r=Hr(t))}catch(o){}return[n,r]}function Fr(e){if(e){const t=e["Content-Length"]||e["content-length"];if(t)return parseInt(t,10)}}function Hr(e){return e.split("; ").reduce((e,t)=>{const[n,r]=t.split("=");return n&&r&&(e[n]=r),e},{})}function Ur(e,t,n){return function(e,t){return e.some(e=>"number"==typeof e?e===t:t>=e[0]&&t<=e[1])}(e.failedRequestStatusCodes,t)&&(r=e.failedRequestTargets,o=n,r.some(e=>"string"==typeof e?o.includes(e):e.test(o)))&&!en(n,Fe());var r,o}function qr(e){const t=Fe(),n=t&&e.error&&e.error instanceof Error?e.error.stack:void 0,r=n&&t?t.getOptions().stackParser(n,0,1):void 0,o=`HTTP Client Error with status code: ${e.status}`,i={message:o,exception:{values:[{type:"Error",value:o,stacktrace:r?{frames:r}:void 0}]},request:{url:e.url,method:e.method,headers:e.requestHeaders,cookies:e.requestCookies},contexts:{response:{status_code:e.status,headers:e.responseHeaders,cookies:e.responseCookies,body_size:Fr(e.responseHeaders)}}};return ve(i,{type:"http.client",handled:!1}),i}function Br(){const e=Fe();return!!e&&Boolean(e.getOptions().sendDefaultPii)}var zr=e(s());function Vr(e,{componentStack:t},n){if(function(e){const t=e.match(/^([^.]+)/);return null!==t&&parseInt(t[0])>=17}(zr.version)&&I(e)&&t){const n=new Error(e.message);n.name=`React ErrorBoundary ${e.name}`,n.stack=t,function(e,t){const n=new WeakSet;!function e(t,r){if(!n.has(t))return t.cause?(n.add(t),e(t.cause,r)):void(t.cause=r)}(e,t)}(e,n)}return Dt(e,{...n,captureContext:{contexts:{react:{componentStack:t}}}})}var Kr=o(e=>{var t="function"==typeof Symbol&&Symbol.for,n=t?Symbol.for("react.element"):60103,r=t?Symbol.for("react.portal"):60106,o=t?Symbol.for("react.fragment"):60107,i=t?Symbol.for("react.strict_mode"):60108,s=t?Symbol.for("react.profiler"):60114,a=t?Symbol.for("react.provider"):60109,c=t?Symbol.for("react.context"):60110,l=t?Symbol.for("react.async_mode"):60111,u=t?Symbol.for("react.concurrent_mode"):60111,d=t?Symbol.for("react.forward_ref"):60112,h=t?Symbol.for("react.suspense"):60113,p=t?Symbol.for("react.suspense_list"):60120,f=t?Symbol.for("react.memo"):60115,g=t?Symbol.for("react.lazy"):60116,m=t?Symbol.for("react.block"):60121,v=t?Symbol.for("react.fundamental"):60117,y=t?Symbol.for("react.responder"):60118,b=t?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case l:case u:case o:case s:case i:case h:return e;default:switch(e=e&&e.$$typeof){case c:case d:case g:case f:case a:return e;default:return t}}case r:return t}}}function x(e){return w(e)===u}e.AsyncMode=l,e.ConcurrentMode=u,e.ContextConsumer=c,e.ContextProvider=a,e.Element=n,e.ForwardRef=d,e.Fragment=o,e.Lazy=g,e.Memo=f,e.Portal=r,e.Profiler=s,e.StrictMode=i,e.Suspense=h,e.isAsyncMode=function(e){return x(e)||w(e)===l},e.isConcurrentMode=x,e.isContextConsumer=function(e){return w(e)===c},e.isContextProvider=function(e){return w(e)===a},e.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},e.isForwardRef=function(e){return w(e)===d},e.isFragment=function(e){return w(e)===o},e.isLazy=function(e){return w(e)===g},e.isMemo=function(e){return w(e)===f},e.isPortal=function(e){return w(e)===r},e.isProfiler=function(e){return w(e)===s},e.isStrictMode=function(e){return w(e)===i},e.isSuspense=function(e){return w(e)===h},e.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===u||e===s||e===i||e===h||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===f||e.$$typeof===a||e.$$typeof===c||e.$$typeof===d||e.$$typeof===v||e.$$typeof===y||e.$$typeof===b||e.$$typeof===m)},e.typeOf=w}),Wr=o((e,t)=>{t.exports=Kr()}),Gr=o((e,t)=>{var n=Wr(),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function a(e){return n.isMemo(e)?i:s[e.$$typeof]||r}s[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[n.Memo]=i;var c=Object.defineProperty,l=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,p=Object.prototype;t.exports=function e(t,n,r){if("string"!=typeof n){if(p){var i=h(n);i&&i!==p&&e(t,i,r)}var s=l(n);u&&(s=s.concat(u(n)));for(var f=a(t),g=a(n),m=0;m<s.length;++m){var v=s[m];if(!(o[v]||r&&r[v]||g&&g[v]||f&&f[v])){var y=d(n,v);try{c(t,v,y)}catch(cv){}}}}return t}}),Jr=e(a(),1);function Yr(e){function t(e,t){Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.message=e,this.code=t}return t.prototype=new Error,t.prototype.name=e,t.prototype.constructor=t,t}for(var Qr=Yr("LaunchDarklyUnexpectedResponseError"),Xr=Yr("LaunchDarklyInvalidEnvironmentIdError"),Zr=Yr("LaunchDarklyInvalidUserError"),eo=Yr("LaunchDarklyInvalidEventKeyError"),to=Yr("LaunchDarklyInvalidArgumentError"),no=Yr("LaunchDarklyFlagFetchError"),ro={LDUnexpectedResponseError:Qr,LDInvalidEnvironmentIdError:Xr,LDInvalidUserError:Zr,LDInvalidEventKeyError:eo,LDInvalidArgumentError:to,LDInvalidDataError:Yr("LaunchDarklyInvalidDataError"),LDFlagFetchError:no,LDTimeoutError:Yr("LaunchDarklyTimeoutError"),isHttpErrorRecoverable:function(e){return!(e>=400&&e<500)||400===e||408===e||429===e}},oo=[],io=[],so=("undefined"!=typeof Uint8Array&&Uint8Array,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"),ao=0;ao<64;++ao)oo[ao]=so[ao],io[so.charCodeAt(ao)]=ao;function co(e,t,n){for(var r,o,i=[],s=t;s<n;s+=3)r=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),i.push(oo[(o=r)>>18&63]+oo[o>>12&63]+oo[o>>6&63]+oo[63&o]);return i.join("")}io["-".charCodeAt(0)]=62,io["_".charCodeAt(0)]=63;var lo=function(e){for(var t,n=e.length,r=n%3,o=[],i=16383,s=0,a=n-r;s<a;s+=i)o.push(co(e,s,s+i>a?a:s+i));return 1===r?(t=e[n-1],o.push(oo[t>>2]+oo[t<<4&63]+"==")):2===r&&(t=(e[n-2]<<8)+e[n-1],o.push(oo[t>>10]+oo[t>>4&63]+oo[t<<2&63]+"=")),o.join("")},uo=Array.isArray,ho=Object.keys,po=Object.prototype.hasOwnProperty,fo=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){var r,o,i,s=uo(t),a=uo(n);if(s&&a){if((o=t.length)!=n.length)return!1;for(r=o;0!==r--;)if(!e(t[r],n[r]))return!1;return!0}if(s!=a)return!1;var c=t instanceof Date,l=n instanceof Date;if(c!=l)return!1;if(c&&l)return t.getTime()==n.getTime();var u=t instanceof RegExp,d=n instanceof RegExp;if(u!=d)return!1;if(u&&d)return t.toString()==n.toString();var h=ho(t);if((o=h.length)!==ho(n).length)return!1;for(r=o;0!==r--;)if(!po.call(n,h[r]))return!1;for(r=o;0!==r--;)if(!e(t[i=h[r]],n[i]))return!1;return!0}return t!=t&&n!=n},go=["key","ip","country","email","firstName","lastName","avatar","name"];function mo(e){const t=unescape(encodeURIComponent(e));return lo(function(e){const t=[];for(let n=0;n<e.length;n++)t.push(e.charCodeAt(n));return t}(t))}function vo(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var yo,bo={appendUrlPath:function(e,t){return(e.endsWith("/")?e.substring(0,e.length-1):e)+(t.startsWith("/")?"":"/")+t},base64URLEncode:function(e){return mo(e).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")},btoa:mo,clone:function(e){return JSON.parse(JSON.stringify(e))},deepEquals:function(e,t){return fo(e,t)},extend:function(...e){return e.reduce((e,t)=>({...e,...t}),{})},getLDUserAgentString:function(e){const t=e.version||"?";return e.userAgent+"/"+t},objectHasOwnProperty:vo,onNextTick:function(e){setTimeout(e,0)},sanitizeContext:function(e){if(!e)return e;let t;return null!==e.kind&&void 0!==e.kind||go.forEach(n=>{const r=e[n];void 0!==r&&"string"!=typeof r&&(t=t||{...e},t[n]=String(r))}),t||e},transformValuesToVersionedValues:function(e){const t={};for(const n in e)vo(e,n)&&(t[n]={value:e[n],version:0});return t},transformVersionedValuesToValues:function(e){const t={};for(const n in e)vo(e,n)&&(t[n]=e[n].value);return t},wrapPromiseCallback:function(e,t){const n=e.then(e=>(t&&setTimeout(()=>{t(null,e)},0),e),e=>{if(!t)return Promise.reject(e);setTimeout(()=>{t(e,null)},0)});return t?void 0:n},once:function(e){let t,n=!1;return function(...r){return n||(n=!0,t=e.apply(this,r)),t}}},wo=new Uint8Array(16);function xo(){if(!yo&&!(yo="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return yo(wo)}var _o=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function Eo(e){return"string"==typeof e&&_o.test(e)}for(var So,ko,Oo=[],Co=0;Co<256;++Co)Oo.push((Co+256).toString(16).substr(1));function Po(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(Oo[e[t+0]]+Oo[e[t+1]]+Oo[e[t+2]]+Oo[e[t+3]]+"-"+Oo[e[t+4]]+Oo[e[t+5]]+"-"+Oo[e[t+6]]+Oo[e[t+7]]+"-"+Oo[e[t+8]]+Oo[e[t+9]]+"-"+Oo[e[t+10]]+Oo[e[t+11]]+Oo[e[t+12]]+Oo[e[t+13]]+Oo[e[t+14]]+Oo[e[t+15]]).toLowerCase();if(!Eo(n))throw TypeError("Stringified UUID is invalid");return n}var Ro=0,Lo=0;function To(e){if(!Eo(e))throw TypeError("Invalid UUID");var t,n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n}function Do(e,t,n){function r(e,r,o,i){if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));for(var t=[],n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t}(e)),"string"==typeof r&&(r=To(r)),16!==r.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var s=new Uint8Array(16+e.length);if(s.set(r),s.set(e,r.length),(s=n(s))[6]=15&s[6]|t,s[8]=63&s[8]|128,o){i=i||0;for(var a=0;a<16;++a)o[i+a]=s[a];return o}return Po(s)}try{r.name=e}catch(e){}return r.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",r.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",r}function No(e){return 14+(e+64>>>9<<4)+1}function jo(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function Ao(e,t,n,r,o,i){return jo((s=jo(jo(t,e),jo(r,i)))<<(a=o)|s>>>32-a,n);var s,a}function Io(e,t,n,r,o,i,s){return Ao(t&n|~t&r,e,t,o,i,s)}function Mo(e,t,n,r,o,i,s){return Ao(t&r|n&~r,e,t,o,i,s)}function $o(e,t,n,r,o,i,s){return Ao(t^n^r,e,t,o,i,s)}function Fo(e,t,n,r,o,i,s){return Ao(n^(t|~r),e,t,o,i,s)}var Ho=Do("v3",48,function(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var n=0;n<t.length;++n)e[n]=t.charCodeAt(n)}return function(e){for(var t=[],n=32*e.length,r="0123456789abcdef",o=0;o<n;o+=8){var i=e[o>>5]>>>o%32&255,s=parseInt(r.charAt(i>>>4&15)+r.charAt(15&i),16);t.push(s)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[No(t)-1]=t;for(var n=1732584193,r=-271733879,o=-1732584194,i=271733878,s=0;s<e.length;s+=16){var a=n,c=r,l=o,u=i;n=Io(n,r,o,i,e[s],7,-680876936),i=Io(i,n,r,o,e[s+1],12,-389564586),o=Io(o,i,n,r,e[s+2],17,606105819),r=Io(r,o,i,n,e[s+3],22,-1044525330),n=Io(n,r,o,i,e[s+4],7,-176418897),i=Io(i,n,r,o,e[s+5],12,1200080426),o=Io(o,i,n,r,e[s+6],17,-1473231341),r=Io(r,o,i,n,e[s+7],22,-45705983),n=Io(n,r,o,i,e[s+8],7,1770035416),i=Io(i,n,r,o,e[s+9],12,-1958414417),o=Io(o,i,n,r,e[s+10],17,-42063),r=Io(r,o,i,n,e[s+11],22,-1990404162),n=Io(n,r,o,i,e[s+12],7,1804603682),i=Io(i,n,r,o,e[s+13],12,-40341101),o=Io(o,i,n,r,e[s+14],17,-1502002290),n=Mo(n,r=Io(r,o,i,n,e[s+15],22,1236535329),o,i,e[s+1],5,-165796510),i=Mo(i,n,r,o,e[s+6],9,-1069501632),o=Mo(o,i,n,r,e[s+11],14,643717713),r=Mo(r,o,i,n,e[s],20,-373897302),n=Mo(n,r,o,i,e[s+5],5,-701558691),i=Mo(i,n,r,o,e[s+10],9,38016083),o=Mo(o,i,n,r,e[s+15],14,-660478335),r=Mo(r,o,i,n,e[s+4],20,-405537848),n=Mo(n,r,o,i,e[s+9],5,568446438),i=Mo(i,n,r,o,e[s+14],9,-1019803690),o=Mo(o,i,n,r,e[s+3],14,-187363961),r=Mo(r,o,i,n,e[s+8],20,1163531501),n=Mo(n,r,o,i,e[s+13],5,-1444681467),i=Mo(i,n,r,o,e[s+2],9,-51403784),o=Mo(o,i,n,r,e[s+7],14,1735328473),n=$o(n,r=Mo(r,o,i,n,e[s+12],20,-1926607734),o,i,e[s+5],4,-378558),i=$o(i,n,r,o,e[s+8],11,-2022574463),o=$o(o,i,n,r,e[s+11],16,1839030562),r=$o(r,o,i,n,e[s+14],23,-35309556),n=$o(n,r,o,i,e[s+1],4,-1530992060),i=$o(i,n,r,o,e[s+4],11,1272893353),o=$o(o,i,n,r,e[s+7],16,-155497632),r=$o(r,o,i,n,e[s+10],23,-1094730640),n=$o(n,r,o,i,e[s+13],4,681279174),i=$o(i,n,r,o,e[s],11,-358537222),o=$o(o,i,n,r,e[s+3],16,-722521979),r=$o(r,o,i,n,e[s+6],23,76029189),n=$o(n,r,o,i,e[s+9],4,-640364487),i=$o(i,n,r,o,e[s+12],11,-421815835),o=$o(o,i,n,r,e[s+15],16,530742520),n=Fo(n,r=$o(r,o,i,n,e[s+2],23,-995338651),o,i,e[s],6,-198630844),i=Fo(i,n,r,o,e[s+7],10,1126891415),o=Fo(o,i,n,r,e[s+14],15,-1416354905),r=Fo(r,o,i,n,e[s+5],21,-57434055),n=Fo(n,r,o,i,e[s+12],6,1700485571),i=Fo(i,n,r,o,e[s+3],10,-1894986606),o=Fo(o,i,n,r,e[s+10],15,-1051523),r=Fo(r,o,i,n,e[s+1],21,-2054922799),n=Fo(n,r,o,i,e[s+8],6,1873313359),i=Fo(i,n,r,o,e[s+15],10,-30611744),o=Fo(o,i,n,r,e[s+6],15,-1560198380),r=Fo(r,o,i,n,e[s+13],21,1309151649),n=Fo(n,r,o,i,e[s+4],6,-145523070),i=Fo(i,n,r,o,e[s+11],10,-1120210379),o=Fo(o,i,n,r,e[s+2],15,718787259),r=Fo(r,o,i,n,e[s+9],21,-343485551),n=jo(n,a),r=jo(r,c),o=jo(o,l),i=jo(i,u)}return[n,r,o,i]}(function(e){if(0===e.length)return[];for(var t=8*e.length,n=new Uint32Array(No(t)),r=0;r<t;r+=8)n[r>>5]|=(255&e[r/8])<<r%32;return n}(e),8*e.length))});function Uo(e,t,n,r){switch(e){case 0:return t&n^~t&r;case 1:case 3:return t^n^r;case 2:return t&n^t&r^n&r}}function qo(e,t){return e<<t|e>>>32-t}var Bo=Do("v5",80,function(e){var t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var r=unescape(encodeURIComponent(e));e=[];for(var o=0;o<r.length;++o)e.push(r.charCodeAt(o))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var i=e.length/4+2,s=Math.ceil(i/16),a=new Array(s),c=0;c<s;++c){for(var l=new Uint32Array(16),u=0;u<16;++u)l[u]=e[64*c+4*u]<<24|e[64*c+4*u+1]<<16|e[64*c+4*u+2]<<8|e[64*c+4*u+3];a[c]=l}a[s-1][14]=8*(e.length-1)/Math.pow(2,32),a[s-1][14]=Math.floor(a[s-1][14]),a[s-1][15]=8*(e.length-1)&4294967295;for(var d=0;d<s;++d){for(var h=new Uint32Array(80),p=0;p<16;++p)h[p]=a[d][p];for(var f=16;f<80;++f)h[f]=qo(h[f-3]^h[f-8]^h[f-14]^h[f-16],1);for(var g=n[0],m=n[1],v=n[2],y=n[3],b=n[4],w=0;w<80;++w){var x=Math.floor(w/20),_=qo(g,5)+Uo(x,m,v,y)+b+t[x]+h[w]>>>0;b=y,y=v,v=qo(m,30)>>>0,m=g,g=_}n[0]=n[0]+g>>>0,n[1]=n[1]+m>>>0,n[2]=n[2]+v>>>0,n[3]=n[3]+y>>>0,n[4]=n[4]+b>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,255&n[0],n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,255&n[1],n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,255&n[2],n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,255&n[3],n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,255&n[4]]}),zo=Object.freeze({__proto__:null,v1:function(e,t,n){var r=t&&n||0,o=t||new Array(16),i=(e=e||{}).node||So,s=void 0!==e.clockseq?e.clockseq:ko;if(null==i||null==s){var a=e.random||(e.rng||xo)();i??(i=So=[1|a[0],a[1],a[2],a[3],a[4],a[5]]),s??(s=ko=16383&(a[6]<<8|a[7]))}var c=void 0!==e.msecs?e.msecs:Date.now(),l=void 0!==e.nsecs?e.nsecs:Lo+1,u=c-Ro+(l-Lo)/1e4;if(u<0&&void 0===e.clockseq&&(s=s+1&16383),(u<0||c>Ro)&&void 0===e.nsecs&&(l=0),l>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");Ro=c,Lo=l,ko=s;var d=(1e4*(268435455&(c+=122192928e5))+l)%4294967296;o[r++]=d>>>24&255,o[r++]=d>>>16&255,o[r++]=d>>>8&255,o[r++]=255&d;var h=c/4294967296*1e4&268435455;o[r++]=h>>>8&255,o[r++]=255&h,o[r++]=h>>>24&15|16,o[r++]=h>>>16&255,o[r++]=s>>>8|128,o[r++]=255&s;for(var p=0;p<6;++p)o[r+p]=i[p];return t||Po(o)},v3:Ho,v4:function(e,t,n){var r=(e=e||{}).random||(e.rng||xo)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var o=0;o<16;++o)t[n+o]=r[o];return t}return Po(r)},v5:Bo,NIL:"00000000-0000-0000-0000-000000000000",version:function(e){if(!Eo(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)},validate:Eo,stringify:Po,parse:To}),Vo=["debug","info","warn","error","none"],Ko={commonBasicLogger:function(e,t){if(e&&e.destination&&"function"!=typeof e.destination)throw new Error("destination for basicLogger was set to a non-function");function n(e){return function(t){console&&console[e]&&console[e].call(console,t)}}const r=e&&e.destination?[e.destination,e.destination,e.destination,e.destination]:[n("log"),n("info"),n("warn"),n("error")],o=!(!e||!e.destination),i=e&&void 0!==e.prefix&&null!==e.prefix?e.prefix:"[LaunchDarkly] ";let s=1;if(e&&e.level)for(let l=0;l<Vo.length;l++)Vo[l]===e.level&&(s=l);function a(e,n,s){if(s.length<1)return;let a;const c=o?n+": "+i:i;if(1!==s.length&&t){const e=[...s];e[0]=c+e[0],a=t(...e)}else a=c+s[0];try{r[e](a)}catch(e){console&&console.log&&console.log("[LaunchDarkly] Configured logger's "+n+" method threw an exception: "+e)}}const c={};for(let l=0;l<Vo.length;l++){const e=Vo[l];if("none"!==e)if(l<s)c[e]=()=>{};else{const t=l;c[e]=function(){a(t,e,arguments)}}}return c},validateLogger:function(e){Vo.forEach(t=>{if("none"!==t&&(!e[t]||"function"!=typeof e[t]))throw new Error("Provided logger instance must support logger."+t+"(...) method")})}};function Wo(e){return e&&e.message?e.message:"string"==typeof e||e instanceof String?e:JSON.stringify(e)}var Go=" Please see https://docs.launchdarkly.com/sdk/client-side/javascript#initialize-the-client for instructions on SDK initialization.",Jo={bootstrapInvalid:function(){return"LaunchDarkly bootstrap data is not available because the back end could not read the flags."},bootstrapOldFormat:function(){return"LaunchDarkly client was initialized with bootstrap data that did not include flag metadata. Events may not be sent correctly."+Go},clientInitialized:function(){return"LaunchDarkly client initialized"},clientNotReady:function(){return"LaunchDarkly client is not ready"},debugEnqueueingEvent:function(e){return'enqueueing "'+e+'" event'},debugPostingDiagnosticEvent:function(e){return"sending diagnostic event ("+e.kind+")"},debugPostingEvents:function(e){return"sending "+e+" events"},debugStreamDelete:function(e){return'received streaming deletion for flag "'+e+'"'},debugStreamDeleteIgnored:function(e){return'received streaming deletion for flag "'+e+'" but ignored due to version check'},debugStreamPatch:function(e){return'received streaming update for flag "'+e+'"'},debugStreamPatchIgnored:function(e){return'received streaming update for flag "'+e+'" but ignored due to version check'},debugStreamPing:function(){return"received ping message from stream"},debugPolling:function(e){return"polling for feature flags at "+e},debugStreamPut:function(){return"received streaming update for all flags"},deprecated:function(e,t){return t?'"'+e+'" is deprecated, please use "'+t+'"':'"'+e+'" is deprecated'},environmentNotFound:function(){return"Environment not found. Double check that you specified a valid environment/client-side ID."+Go},environmentNotSpecified:function(){return"No environment/client-side ID was specified."+Go},errorFetchingFlags:function(e){return"Error fetching flag settings: "+Wo(e)},eventCapacityExceeded:function(){return"Exceeded event queue capacity. Increase capacity to avoid dropping events."},eventWithoutContext:function(){return"Be sure to call `identify` in the LaunchDarkly client: https://docs.launchdarkly.com/sdk/features/identify#javascript"},httpErrorMessage:function(e,t,n){return"Received error "+e+(401===e?" (invalid SDK key)":"")+" for "+t+" - "+(ro.isHttpErrorRecoverable(e)?n:"giving up permanently")},httpUnavailable:function(){return"Cannot make HTTP requests in this environment."+Go},identifyDisabled:function(){return"identify() has no effect here; it must be called on the main client instance"},inspectorMethodError:(e,t)=>`an inspector: "${t}" of type: "${e}" generated an exception`,invalidContentType:function(e){return'Expected application/json content type but got "'+e+'"'},invalidData:function(){return"Invalid data received from LaunchDarkly; connection may have been interrupted"},invalidInspector:(e,t)=>`an inspector: "${t}" of an invalid type (${e}) was configured`,invalidKey:function(){return"Event key must be a string"},invalidMetricValue:e=>`The track function was called with a non-numeric "metricValue" (${e}), only numeric metric values are supported.`,invalidContext:function(){return"Invalid context specified."+Go},invalidTagValue:e=>`Config option "${e}" must only contain letters, numbers, ., _ or -.`,localStorageUnavailable:function(e){return"local storage is unavailable: "+Wo(e)},networkError:e=>"network error"+(e?" ("+e+")":""),optionBelowMinimum:(e,t,n)=>'Config option "'+e+'" was set to '+t+", changing to minimum value of "+n,streamClosing:function(){return"Closing stream connection"},streamConnecting:function(e){return"Opening stream connection to "+e},streamError:function(e,t){return"Error on stream connection: "+Wo(e)+", will continue retrying after "+t+" milliseconds."},tagValueTooLong:e=>`Value of "${e}" was longer than 64 characters and was discarded.`,unknownCustomEventKey:function(e){return'Custom event "'+e+'" does not exist'},unknownOption:e=>'Ignoring unknown config option "'+e+'"',contextNotSpecified:function(){return"No context specified."+Go},unrecoverableStreamError:e=>`Error on stream connection ${Wo(e)}, giving up permanently`,wrongOptionType:(e,t,n)=>'Config option "'+e+'" should be of type '+t+", got "+n+", using default value",wrongOptionTypeBoolean:(e,t)=>'Config option "'+e+'" should be a boolean, got '+t+", converting to boolean"},{validateLogger:Yo}=Ko,Qo={baseUrl:{default:"https://app.launchdarkly.com"},streamUrl:{default:"https://clientstream.launchdarkly.com"},eventsUrl:{default:"https://events.launchdarkly.com"},sendEvents:{default:!0},streaming:{type:"boolean"},sendLDHeaders:{default:!0},requestHeaderTransform:{type:"function"},sendEventsOnlyForVariation:{default:!1},useReport:{default:!1},evaluationReasons:{default:!1},eventCapacity:{default:100,minimum:1},flushInterval:{default:2e3,minimum:2e3},samplingInterval:{default:0,minimum:0},streamReconnectDelay:{default:1e3,minimum:0},allAttributesPrivate:{default:!1},privateAttributes:{default:[]},bootstrap:{type:"string|object"},diagnosticRecordingInterval:{default:9e5,minimum:2e3},diagnosticOptOut:{default:!1},wrapperName:{type:"string"},wrapperVersion:{type:"string"},stateProvider:{type:"object"},application:{validator:function(e,t,n){const r={};return t.id&&(r.id=ei(`${e}.id`,t.id,n)),t.version&&(r.version=ei(`${e}.version`,t.version,n)),r}},inspectors:{default:[]},hooks:{default:[]},plugins:{default:[]}},Xo=/^(\w|\.|-)+$/;function Zo(e){return e&&e.replace(/\/+$/,"")}function ei(e,t,n){if("string"==typeof t&&t.match(Xo)){if(!(t.length>64))return t;n.warn(Jo.tagValueTooLong(e))}else n.warn(Jo.invalidTagValue(e))}var ti={baseOptionDefs:Qo,validate:function(e,t,n,r){const o=bo.extend({logger:{default:r}},Qo,n),i={};function s(e){bo.onNextTick(()=>{t&&t.maybeReportError(new ro.LDInvalidArgumentError(e))})}let a=bo.extend({},e||{});return function(e){const t=e;Object.keys(i).forEach(e=>{if(void 0!==t[e]){const n=i[e];r&&r.warn(Jo.deprecated(e,n)),n&&(void 0===t[n]&&(t[n]=t[e]),delete t[e])}})}(a),a=function(e){const t=bo.extend({},e);return Object.keys(o).forEach(e=>{void 0!==t[e]&&null!==t[e]||(t[e]=o[e]&&o[e].default)}),t}(a),a=function(e){const t=bo.extend({},e),n=e=>{if(null===e)return"any";if(void 0===e)return;if(Array.isArray(e))return"array";const t=typeof e;return"boolean"===t||"string"===t||"number"===t||"function"===t?t:"object"};return Object.keys(e).forEach(i=>{const a=e[i];if(null!=a){const c=o[i];if(void 0===c)s(Jo.unknownOption(i));else{const o=c.type||n(c.default),l=c.validator;if(l){const n=l(i,e[i],r);void 0!==n?t[i]=n:delete t[i]}else if("any"!==o){const e=o.split("|"),r=n(a);e.indexOf(r)<0?"boolean"===o?(t[i]=!!a,s(Jo.wrongOptionTypeBoolean(i,r))):(s(Jo.wrongOptionType(i,o,r)),t[i]=c.default):"number"===r&&void 0!==c.minimum&&a<c.minimum&&(s(Jo.optionBelowMinimum(i,a,c.minimum)),t[i]=c.minimum)}}}}),t.baseUrl=Zo(t.baseUrl),t.streamUrl=Zo(t.streamUrl),t.eventsUrl=Zo(t.eventsUrl),t}(a),Yo(a.logger),a},getTags:function(e){const t={};return e&&(e.application&&void 0!==e.application.id&&null!==e.application.id&&(t["application-id"]=[e.application.id]),e.application&&void 0!==e.application.version&&null!==e.application.id&&(t["application-version"]=[e.application.version])),t}},{getLDUserAgentString:ni}=bo,ri={getLDHeaders:function(e,t){if(t&&!t.sendLDHeaders)return{};const n={};n[e.userAgentHeaderName||"User-Agent"]=ni(e),t&&t.wrapperName&&(n["X-LaunchDarkly-Wrapper"]=t.wrapperVersion?t.wrapperName+"/"+t.wrapperVersion:t.wrapperName);const r=ti.getTags(t),o=Object.keys(r);return o.length&&(n["x-launchdarkly-tags"]=o.sort().map(e=>Array.isArray(r[e])?r[e].sort().map(t=>`${e}/${t}`):[`${e}/${r[e]}`]).reduce((e,t)=>e.concat(t),[]).join(" ")),n},transformHeaders:function(e,t){return t&&t.requestHeaderTransform?t.requestHeaderTransform({...e}):e}},{v1:oi}=zo,{getLDHeaders:ii,transformHeaders:si}=ri,ai=function(e,t,n){const r=bo.extend({"Content-Type":"application/json"},ii(e,n)),o={sendEvents:(t,o,i)=>{if(!e.httpRequest)return Promise.resolve();const s=JSON.stringify(t),a=i?null:oi();return function t(c){const l=i?r:bo.extend({},r,{"X-LaunchDarkly-Event-Schema":"4","X-LaunchDarkly-Payload-ID":a});return e.httpRequest("POST",o,si(l,n),s).promise.then(e=>{if(e)return e.status>=400&&ro.isHttpErrorRecoverable(e.status)&&c?t(!1):function(e){const t={status:e.status},n=e.header("date");if(n){const e=Date.parse(n);e&&(t.serverTime=e)}return t}(e)}).catch(()=>c?t(!1):Promise.reject())}(!0).catch(()=>{})}};return o},ci=function e(t,n=[]){if(null===t||"object"!=typeof t)return JSON.stringify(t);if(n.includes(t))throw new Error("Cycle detected");return Array.isArray(t)?`[${t.map(r=>e(r,[...n,t])).map(e=>void 0===e?"null":e).join(",")}]`:`{${Object.keys(t).sort().map(r=>{const o=e(t[r],[...n,t]);if(void 0!==o)return`${JSON.stringify(r)}:${o}`}).filter(e=>void 0!==e).join(",")}}`},{commonBasicLogger:li}=Ko;function ui(e){return"string"==typeof e&&"kind"!==e&&e.match(/^(\w|\.|-)+$/)}function di(e){return e.includes("%")||e.includes(":")?e.replace(/%/g,"%25").replace(/:/g,"%3A"):e}var hi={checkContext:function(e,t){if(e){if(t&&(void 0===e.kind||null===e.kind))return void 0!==e.key&&null!==e.key;const n=e.key,r=void 0===e.kind?"user":e.kind,o=ui(r),i="multi"===r||null!=n&&""!==n;if("multi"===r){const t=Object.keys(e).filter(e=>"kind"!==e);return i&&t.every(e=>ui(e))&&t.every(t=>{const n=e[t].key;return null!=n&&""!==n})}return i&&o}return!1},getContextKeys:function(e,t=li()){if(!e)return;const n={},{kind:r,key:o}=e;switch(r){case void 0:n.user=`${o}`;break;case"multi":Object.entries(e).filter(([e])=>"kind"!==e).forEach(([e,t])=>{t&&t.key&&(n[e]=t.key)});break;case null:t.warn(`null is not a valid context kind: ${e}`);break;case"":t.warn(`'' is not a valid context kind: ${e}`);break;default:n[r]=`${o}`}return n},getContextKinds:function(e){return e?null===e.kind||void 0===e.kind?["user"]:"multi"!==e.kind?[e.kind]:Object.keys(e).filter(e=>"kind"!==e):[]},getCanonicalKey:function(e){if(e){if((void 0===e.kind||null===e.kind||"user"===e.kind)&&e.key)return e.key;if("multi"!==e.kind&&e.key)return`${e.kind}:${di(e.key)}`;if("multi"===e.kind)return Object.keys(e).sort().filter(e=>"kind"!==e).map(t=>`${t}:${di(e[t].key)}`).join(":")}}},{getContextKinds:pi}=hi,fi=function(e){let t={},n={};return{summarizeEvent:function(e){if("feature"===e.kind){const r=ci(e.context);if(!r)return;let o=t[r];o||(t[r]=function(){const e={};let t=0,n=0,r={},o={};return e.summarizeEvent=e=>{if("feature"===e.kind){const i=e.key+":"+(null!==e.variation&&void 0!==e.variation?e.variation:"")+":"+(null!==e.version&&void 0!==e.version?e.version:""),s=r[i];let a=o[e.key];a||(a=new Set,o[e.key]=a),function(e){return e.context?pi(e.context):e.contextKeys?Object.keys(e.contextKeys):[]}(e).forEach(e=>a.add(e)),s?s.count=s.count+1:r[i]={count:1,key:e.key,version:e.version,variation:e.variation,value:e.value,default:e.default},(0===t||e.creationDate<t)&&(t=e.creationDate),e.creationDate>n&&(n=e.creationDate)}},e.getSummary=()=>{const e={};let i=!0;for(const t of Object.values(r)){let n=e[t.key];n||(n={default:t.default,counters:[],contextKinds:[...o[t.key]]},e[t.key]=n);const r={value:t.value,count:t.count};void 0!==t.variation&&null!==t.variation&&(r.variation=t.variation),void 0!==t.version&&null!==t.version?r.version=t.version:r.unknown=!0,n.counters.push(r),i=!1}return i?null:{startDate:t,endDate:n,features:e,kind:"summary"}},e.clearSummary=()=>{t=0,n=0,r={},o={}},e}(),o=t[r],n[r]=e.context),o.summarizeEvent(e)}},getSummaries:function(){const r=t,o=n;return t={},n={},Object.entries(r).map(([t,n])=>{const r=n.getSummary();return r.context=e.filter(o[t]),r})}}};function gi(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}function mi(e){return(e.startsWith("/")?e.substring(1):e).split("/").map(e=>e.indexOf("~")>=0?e.replace(/~1/g,"/").replace(/~0/g,"~"):e)}function vi(e){return!e.startsWith("/")}function yi(e,t){const n=vi(e),r=vi(t);if(n&&r)return e===t;if(n){const n=mi(t);return 1===n.length&&e===n[0]}if(r){const n=mi(e);return 1===n.length&&t===n[0]}return e===t}function bi(e){return`/${gi(e)}`}var wi={cloneExcluding:function(e,t){const n=[],r={},o=[];for(n.push(...Object.keys(e).map(t=>({key:t,ptr:bi(t),source:e,parent:r,visited:[e]})));n.length;){const e=n.pop();if(t.some(t=>yi(t,e.ptr)))o.push(e.ptr);else{const t=e.source[e.key];if(null===t)e.parent[e.key]=t;else if(Array.isArray(t))e.parent[e.key]=[...t];else if("object"==typeof t){if(e.visited.includes(t))continue;e.parent[e.key]={},n.push(...Object.keys(t).map(n=>{return{key:n,ptr:(r=e.ptr,o=gi(n),`${r}/${o}`),source:t,parent:e.parent[e.key],visited:[...e.visited,t]};var r,o}))}else e.parent[e.key]=t}}return{cloned:r,excluded:o.sort()}},compare:yi,literalToReference:bi},{getContextKeys:xi}=hi,_i=function(e,t,n,r=null,o=null,i=null){const s={},a=i||ai(e,0,t),c=bo.appendUrlPath(t.eventsUrl,"/events/bulk/"+n),l=function(e){const t={},n=e.allAttributesPrivate,r=e.privateAttributes||[],o=["key","kind","_meta","anonymous"],i=["name","ip","firstName","lastName","email","avatar","country"],s=(e,t)=>{if("object"!=typeof e||null===e||Array.isArray(e))return;const{cloned:i,excluded:s}=wi.cloneExcluding(e,((e,t)=>(n||t&&e.anonymous?Object.keys(e):[...r,...e._meta&&e._meta.privateAttributes||[]]).filter(e=>!o.some(t=>wi.compare(e,t))))(e,t));return i.key=String(i.key),s.length&&(i._meta||(i._meta={}),i._meta.redactedAttributes=s),i._meta&&(delete i._meta.privateAttributes,0===Object.keys(i._meta).length&&delete i._meta),void 0!==i.anonymous&&(i.anonymous=!!i.anonymous),i};return t.filter=(e,t=!1)=>void 0===e.kind||null===e.kind?s((e=>{const t={...e.custom||{},kind:"user",key:e.key};void 0!==e.anonymous&&(t.anonymous=!!e.anonymous);for(const n of i)delete t[n],void 0!==e[n]&&null!==e[n]&&(t[n]=String(e[n]));return void 0!==e.privateAttributeNames&&null!==e.privateAttributeNames&&(t._meta=t._meta||{},t._meta.privateAttributes=e.privateAttributeNames.map(e=>e.startsWith("/")?wi.literalToReference(e):e)),t})(e),t):"multi"===e.kind?((e,t)=>{const n={kind:e.kind},r=Object.keys(e);for(const o of r)if("kind"!==o){const r=s(e[o],t);r&&(n[o]=r)}return n})(e,t):s(e,t),t}(t),u=fi(l),d=t.samplingInterval,h=t.eventCapacity,p=t.flushInterval,f=t.logger;let g,m=[],v=0,y=!1,b=!1;function w(){return 0===d||0===Math.floor(Math.random()*d)}function x(e){m.length<h?(m.push(e),b=!1):(b||(b=!0,f.warn(Jo.eventCapacityExceeded())),r&&r.incrementDroppedEvents())}return s.enqueue=function(e){if(y)return;let t=!1,n=!1;var r;if(u.summarizeEvent(e),"feature"===e.kind?w()&&(t=!!e.trackEvents,n=!!(r=e).debugEventsUntilDate&&r.debugEventsUntilDate>v&&r.debugEventsUntilDate>(new Date).getTime()):t=w(),t&&x(function(e){const t=bo.extend({},e);return"identify"===e.kind||"feature"===e.kind||"custom"===e.kind?t.context=l.filter(e.context):(t.contextKeys=xi(e.context,f),delete t.context),"feature"===e.kind&&(delete t.trackEvents,delete t.debugEventsUntilDate),t}(e)),n){const t=bo.extend({},e,{kind:"debug"});t.context=l.filter(t.context),delete t.trackEvents,delete t.debugEventsUntilDate,x(t)}},s.flush=async function(){if(y)return Promise.resolve();const e=m;return u.getSummaries().forEach(t=>{Object.keys(t.features).length&&e.push(t)}),r&&r.setEventsInLastBatch(e.length),0===e.length?Promise.resolve():(m=[],f.debug(Jo.debugPostingEvents(e.length)),a.sendEvents(e,c).then(e=>{e&&(e.serverTime&&(v=e.serverTime),ro.isHttpErrorRecoverable(e.status)||(y=!0),e.status>=400&&bo.onNextTick(()=>{o.maybeReportError(new ro.LDUnexpectedResponseError(Jo.httpErrorMessage(e.status,"event posting","some events were dropped")))}))}))},s.start=function(){const e=()=>{s.flush(),g=setTimeout(e,p)};g=setTimeout(e,p)},s.stop=function(){clearTimeout(g)},s},Ei="ready",Si="initialized",ki="failed",{appendUrlPath:Oi,base64URLEncode:Ci,objectHasOwnProperty:Pi}=bo,{getLDHeaders:Ri,transformHeaders:Li}=ri,{isHttpErrorRecoverable:Ti}=ro,Di=function(e,t,n,r){const o=t.streamUrl,i=t.logger,s={},a=Oi(o,"/eval/"+n),c=t.useReport,l=t.evaluationReasons,u=t.streamReconnectDelay,d=Ri(e,t);let h,p=!1,f=null,g=null,m=null,v=null,y=null,b=0;function w(e){if(e.status&&"number"==typeof e.status&&!Ti(e.status))return E(),i.error(Jo.unrecoverableStreamError(e)),void(g&&(clearTimeout(g),g=null));const t=function(){const e=(t=function(){const e=u*Math.pow(2,b);return e>3e4?3e4:e}(),t-Math.trunc(.5*Math.random()*t));var t;return b+=1,e}();p||(i.warn(Jo.streamError(e,t)),p=!0),S(!1),E(),x(t)}function x(e){g||(e?g=setTimeout(_,e):_())}function _(){let r;g=null;let s="";const u={headers:d,readTimeoutMillis:3e5};if(e.eventSourceFactory){null!=v&&(s="h="+v),c?e.eventSourceAllowsReport?(r=a,u.method="REPORT",u.headers["Content-Type"]="application/json",u.body=JSON.stringify(m)):(r=Oi(o,"/ping/"+n),s=""):r=a+"/"+Ci(JSON.stringify(m)),u.headers=Li(u.headers,t),l&&(s=s+(s?"&":"")+"withReasons=true"),r=r+(s?"?":"")+s,E(),i.info(Jo.streamConnecting(r)),h=(new Date).getTime(),f=e.eventSourceFactory(r,u);for(const e in y)Pi(y,e)&&f.addEventListener(e,y[e]);f.onerror=w,f.onopen=()=>{b=0}}}function E(){f&&(i.info(Jo.streamClosing()),f.close(),f=null)}function S(e){h&&r&&r.recordStreamInit(h,!e,(new Date).getTime()-h),h=null}return s.connect=function(e,t,n){m=e,v=t,y={};for(const r in n||{})y[r]=function(e){p=!1,S(!0),n[r]&&n[r](e)};x()},s.disconnect=function(){clearTimeout(g),g=null,E()},s.isConnected=function(){return!!(f&&e.eventSourceIsActive&&e.eventSourceIsActive(f))},s},{transformHeaders:Ni,getLDHeaders:ji}=ri,Ai="application/json",Ii=function(e,t,n){const r=t.baseUrl,o=t.useReport,i=t.evaluationReasons,s=t.logger,a={},c={};function l(n,r){if(!e.httpRequest)return new Promise((e,t)=>{t(new ro.LDFlagFetchError(Jo.httpUnavailable()))});const o=r?"REPORT":"GET",i=ji(e,t);r&&(i["Content-Type"]=Ai);let s=c[n];s||(s=function(e){let t,n,r,o;const i={addPromise:(i,s)=>{t=i,n&&n(),n=s,i.then(n=>{t===i&&(r(n),e&&e())},n=>{t===i&&(o(n),e&&e())})}};return i.resultPromise=new Promise((e,t)=>{r=e,o=t}),i}(()=>{delete c[n]}),c[n]=s);const a=e.httpRequest(o,n,Ni(i,t),r),l=a.promise.then(e=>{if(200===e.status){if(e.header("content-type")&&e.header("content-type").substring(0,16)===Ai)return JSON.parse(e.body);{const t=Jo.invalidContentType(e.header("content-type")||"");return Promise.reject(new ro.LDFlagFetchError(t))}}return Promise.reject(function(e){return 404===e.status?new ro.LDInvalidEnvironmentIdError(Jo.environmentNotFound()):new ro.LDFlagFetchError(Jo.errorFetchingFlags(e.statusText||String(e.status)))}(e))},e=>Promise.reject(new ro.LDFlagFetchError(Jo.networkError(e))));return s.addPromise(l,()=>{a.cancel&&a.cancel()}),s.resultPromise}return a.fetchJSON=function(e){return l(bo.appendUrlPath(r,e),null)},a.fetchFlagSettings=function(e,t){let a,c,u,d="";return o?(c=[r,"/sdk/evalx/",n,"/context"].join(""),u=JSON.stringify(e)):(a=bo.base64URLEncode(JSON.stringify(e)),c=[r,"/sdk/evalx/",n,"/contexts/",a].join("")),t&&(d="h="+t),i&&(d=d+(d?"&":"")+"withReasons=true"),c=c+(d?"?":"")+d,s.debug(Jo.debugPolling(c)),l(c,u)},a},{v1:Mi}=zo,{getContextKinds:$i}=hi,Fi=function(e){function t(e){return null==e||"user"===e?"ld:$anonUserId":`ld:$contextKey:${e}`}function n(n,r){return null!==r.key&&void 0!==r.key?(r.key=r.key.toString(),Promise.resolve(r)):r.anonymous?function(n){return e.get(t(n))}(n).then(o=>{if(o)return r.key=o,r;{const o=Mi();return r.key=o,function(n,r){return e.set(t(r),n)}(o,n).then(()=>r)}}):Promise.reject(new ro.LDInvalidUserError(Jo.invalidContext()))}this.processContext=e=>{if(!e)return Promise.reject(new ro.LDInvalidUserError(Jo.contextNotSpecified()));const t=bo.clone(e);if("multi"===e.kind){const e=$i(t);return Promise.all(e.map(e=>n(e,t[e]))).then(()=>t)}return n(e.kind,t)}},{v1:Hi}=zo,{baseOptionDefs:Ui}=ti,{appendUrlPath:qi}=bo,Bi=function(e){const t={diagnosticId:Hi()};return e&&(t.sdkKeySuffix=e.length>6?e.substring(e.length-6):e),t},zi=function(e){let t,n,r,o;function i(e){t=e,n=0,r=0,o=[]}return i(e),{getProps:()=>({dataSinceDate:t,droppedEvents:n,eventsInLastBatch:r,streamInits:o}),setProps:e=>{t=e.dataSinceDate,n=e.droppedEvents||0,r=e.eventsInLastBatch||0,o=e.streamInits||[]},incrementDroppedEvents:()=>{n++},setEventsInLastBatch:e=>{r=e},recordStreamInit:(e,t,n)=>{const r={timestamp:e,failed:t,durationMillis:n};o.push(r)},reset:i}},Vi=function(e,t,n,r,o,i,s){const a=!!e.diagnosticUseCombinedEvent,c="ld:"+o+":$diagnostics",l=qi(i.eventsUrl,"/events/diagnostic/"+o),u=i.diagnosticRecordingInterval,d=n;let h,p,f=!!i.streaming;const g={};function m(){return{sdk:b(),configuration:{customBaseURI:i.baseUrl!==Ui.baseUrl.default,customStreamURI:i.streamUrl!==Ui.streamUrl.default,customEventsURI:i.eventsUrl!==Ui.eventsUrl.default,eventsCapacity:i.eventCapacity,eventsFlushIntervalMillis:i.flushInterval,reconnectTimeMillis:i.streamReconnectDelay,streamingDisabled:!f,allAttributesPrivate:!!i.allAttributesPrivate,diagnosticRecordingIntervalMillis:i.diagnosticRecordingInterval,usingSecureMode:!!i.hash,bootstrapMode:!!i.bootstrap,fetchGoalsDisabled:!i.fetchGoals,sendEventsOnlyForVariation:!!i.sendEventsOnlyForVariation},platform:e.diagnosticPlatformData}}function v(e){i.logger&&i.logger.debug(Jo.debugPostingDiagnosticEvent(e)),r.sendEvents(e,l,!0).then(()=>{}).catch(()=>{})}function y(){v(function(){const e=(new Date).getTime();let t={kind:a?"diagnostic-combined":"diagnostic",id:s,creationDate:e,...d.getProps()};return a&&(t={...t,...m()}),d.reset(e),t}()),p=setTimeout(y,u),h=(new Date).getTime(),a&&function(){if(t.isEnabled()){const e={...d.getProps()};t.set(c,JSON.stringify(e))}}()}function b(){const t={...e.diagnosticSdkData};return i.wrapperName&&(t.wrapperName=i.wrapperName),i.wrapperVersion&&(t.wrapperVersion=i.wrapperVersion),t}return g.start=()=>{a?function(e){if(!t.isEnabled())return e(!1);t.get(c).then(t=>{if(t)try{const e=JSON.parse(t);d.setProps(e),h=e.dataSinceDate}catch(e){}e(!0)}).catch(()=>{e(!1)})}(e=>{if(e){const e=(h||0)+u,t=(new Date).getTime();t>=e?y():p=setTimeout(y,e-t)}else 0===Math.floor(4*Math.random())?y():p=setTimeout(y,u)}):(v({kind:"diagnostic-init",id:s,creationDate:d.getProps().dataSinceDate,...m()}),p=setTimeout(y,u))},g.stop=()=>{p&&clearTimeout(p)},g.setStreaming=e=>{f=e},g},{onNextTick:Ki}=bo,Wi={flagUsed:"flag-used",flagDetailsChanged:"flag-details-changed",flagDetailChanged:"flag-detail-changed",clientIdentityChanged:"client-identity-changed"};Object.freeze(Wi);var Gi={InspectorTypes:Wi,InspectorManager:function(e,t){const n={},r={[Wi.flagUsed]:[],[Wi.flagDetailsChanged]:[],[Wi.flagDetailChanged]:[],[Wi.clientIdentityChanged]:[]},o={[Wi.flagUsed]:[],[Wi.flagDetailsChanged]:[],[Wi.flagDetailChanged]:[],[Wi.clientIdentityChanged]:[]},i=e&&e.map(e=>function(e,t){let n=!1;const r={type:e.type,name:e.name,synchronous:e.synchronous,method:(...o)=>{try{e.method(...o)}catch{n||(n=!0,t.warn(Jo.inspectorMethodError(r.type,r.name)))}}};return r}(e,t));return i&&i.forEach(e=>{Object.prototype.hasOwnProperty.call(r,e.type)&&!e.synchronous?r[e.type].push(e):Object.prototype.hasOwnProperty.call(o,e.type)&&e.synchronous?o[e.type].push(e):t.warn(Jo.invalidInspector(e.type,e.name))}),n.hasListeners=e=>r[e]&&r[e].length||o[e]&&o[e].length,n.onFlagUsed=(e,t,n)=>{const i=Wi.flagUsed;o[i].length&&o[i].forEach(r=>r.method(e,t,n)),r[i].length&&Ki(()=>{r[i].forEach(r=>r.method(e,t,n))})},n.onFlags=e=>{const t=Wi.flagDetailsChanged;o[t].length&&o[t].forEach(t=>t.method(e)),r[t].length&&Ki(()=>{r[t].forEach(t=>t.method(e))})},n.onFlagChanged=(e,t)=>{const n=Wi.flagDetailChanged;o[n].length&&o[n].forEach(n=>n.method(e,t)),r[n].length&&Ki(()=>{r[n].forEach(n=>n.method(e,t))})},n.onIdentityChanged=e=>{const t=Wi.clientIdentityChanged;o[t].length&&o[t].forEach(t=>t.method(e)),r[t].length&&Ki(()=>{r[t].forEach(t=>t.method(e))})},n}},{LDTimeoutError:Ji}=ro,Yi="unknown hook";function Qi(e,t,n,r,o){try{return r()}catch(r){return e?.error(`An error was encountered in "${t}" of the "${n}" hook: ${r}`),o}}function Xi(e,t){try{return t.getMetadata().name||Yi}catch{return e.error("Exception thrown getting metadata for hook. Unable to get hook name."),Yi}}var Zi="unknown plugin";function es(e,t){try{return t.getMetadata().name||Zi}catch(t){return e.error("Exception thrown getting metadata for plugin. Unable to get plugin name."),Zi}}var ts={getPluginHooks:function(e,t,n){const r=[];return n.forEach(n=>{try{const o=n.getHooks?.(t);void 0===o?e.error(`Plugin ${es(e,n)} returned undefined from getHooks.`):o&&o.length>0&&r.push(...o)}catch(t){e.error(`Exception thrown getting hooks for plugin ${es(e,n)}. Unable to get hooks.`)}}),r},registerPlugins:function(e,t,n,r){r.forEach(r=>{try{r.register(n,t)}catch(t){e.error(`Exception thrown registering plugin ${es(e,r)}.`)}})},createPluginEnvironment:function(e,t,n){const r={};e.userAgent&&(r.name=e.userAgent),e.version&&(r.version=e.version),n.wrapperName&&(r.wrapperName=n.wrapperName),n.wrapperVersion&&(r.wrapperVersion=n.wrapperVersion);const o={};n.application&&(n.application.name&&(o.name=n.application.name),n.application.version&&(o.version=n.application.version));const i={sdk:r,clientSideId:t};return Object.keys(o).length>0&&(i.application=o),i}},{commonBasicLogger:ns}=Ko,{checkContext:rs,getContextKeys:os}=hi,{InspectorTypes:is,InspectorManager:ss}=Gi,{getPluginHooks:as,registerPlugins:cs,createPluginEnvironment:ls}=ts,us="change",ds="internal-change",hs={initialize:function(e,t,n,r,o){const i=n&&n.logger?n.logger:o&&o.logger&&o.logger.default||ns("warn"),s=function(e){const t={},n={};return t.on=function(e,t,r){n[e]=n[e]||[],n[e]=n[e].concat({handler:t,context:r})},t.off=function(e,t,r){if(n[e])for(let o=0;o<n[e].length;o++)n[e][o].handler===t&&n[e][o].context===r&&(n[e]=n[e].slice(0,o).concat(n[e].slice(o+1)))},t.emit=function(e){if(!n[e])return;const t=n[e].slice(0);for(let n=0;n<t.length;n++)t[n].handler.apply(t[n].context,Array.prototype.slice.call(arguments,1))},t.getEvents=function(){return Object.keys(n)},t.getEventListenerCount=function(e){return n[e]?n[e].length:0},t.maybeReportError=function(t){t&&(n.error?this.emit("error",t):(e||console).error(t.message))},t}(i),a=function(e){let t=!1,n=!1,r=null,o=null;const i=new Promise(t=>{const n=()=>{e.off(Ei,n),t()};e.on(Ei,n)}).catch(()=>{});return{getInitializationPromise:()=>o||(t?Promise.resolve():n?Promise.reject(r):(o=new Promise((t,n)=>{const r=()=>{e.off(Si,r),t()},o=t=>{e.off(ki,o),n(t)};e.on(Si,r),e.on(ki,o)}),o)),getReadyPromise:()=>i,signalSuccess:()=>{t||n||(t=!0,e.emit(Si),e.emit(Ei))},signalFailure:o=>{t||n||(n=!0,r=o,e.emit(ki,o),e.emit(Ei)),e.maybeReportError(o)}}}(s),c=ti.validate(n,s,o,i),l=ss(c.inspectors,i),u=c.sendEvents;let d=e,h=c.hash;const p=[...c.plugins],f=ls(r,e,c),g=as(i,f,p),m=function(e,t){const n=t?[...t]:[];return{withEvaluation:function(t,r,o,i){if(0===n.length)return i();const s=[...n],a={flagKey:t,context:r,defaultValue:o},c=function(e,t,n){return t.map(t=>Qi(e,"beforeEvaluation",Xi(e,t),()=>t?.beforeEvaluation?.(n,{})??{},{}))}(e,s,a),l=i();return function(e,t,n,r,o){for(let i=t.length-1;i>=0;i-=1){const s=t[i],a=r[i];Qi(e,"afterEvaluation",Xi(e,s),()=>s?.afterEvaluation?.(n,a,o)??{},{})}}(e,s,a,c,l),l},identify:function(t,r){const o=[...n],i={context:t,timeout:r},s=function(e,t,n){return t.map(t=>Qi(e,"beforeIdentify",Xi(e,t),()=>t?.beforeIdentify?.(n,{})??{},{}))}(e,o,i);return t=>{!function(e,t,n,r,o){for(let i=t.length-1;i>=0;i-=1){const s=t[i],a=r[i];Qi(e,"afterIdentify",Xi(e,s),()=>s?.afterIdentify?.(n,a,o)??{},{})}}(e,o,i,s,t)}},addHook:function(e){n.push(e)},afterTrack:function(t){0!==n.length&&function(e,t,n){for(let r=t.length-1;r>=0;r-=1){const o=t[r];Qi(e,"afterTrack",Xi(e,o),()=>o?.afterTrack?.(n),void 0)}}(e,[...n],t)}}}(i,[...c.hooks,...g]),v=function(e,t){const n={};let r=!1;const o=e=>{r||(r=!0,t.warn(Jo.localStorageUnavailable(e)))};return n.isEnabled=()=>!!e,n.get=t=>new Promise(n=>{e?e.get(t).then(n).catch(e=>{o(e),n(void 0)}):n(void 0)}),n.set=(t,n)=>new Promise(r=>{e?e.set(t,n).then(()=>r(!0)).catch(e=>{o(e),r(!1)}):r(!1)}),n.clear=t=>new Promise(n=>{e?e.clear(t).then(()=>n(!0)).catch(e=>{o(e),n(!1)}):n(!1)}),n}(r.localStorage,i),y=ai(r,0,c),b=c.sendEvents&&!c.diagnosticOptOut,w=b?Bi(d):null,x=b?zi((new Date).getTime()):null,_=b?Vi(r,v,x,y,d,c,w):null,E=Di(r,c,d,x),S=c.eventProcessor||_i(r,c,d,x,s,y),k=Ii(r,c,d);let O,C,P,R={},L=c.streaming,T=!1,D=!1,N=!0;const j=c.stateProvider,A=function(e,t){const n={};let r;return n.setContext=function(e){r=bo.sanitizeContext(e),r&&t&&t(bo.clone(r))},n.getContext=function(){return r?bo.clone(r):null},e&&n.setContext(e),n}(null,function(e){(function(e){j||e&&$({kind:"identify",context:e,creationDate:(new Date).getTime()})})(e),l.hasListeners(is.clientIdentityChanged)&&l.onIdentityChanged(A.getContext())}),I=new Fi(v),M=v.isEnabled()?function(e,t,n,r){const o={};function i(){let e="";const o=r.getContext();return o&&(e=n||bo.btoa(JSON.stringify(o))),"ld:"+t+":"+e}return o.loadFlags=()=>e.get(i()).then(e=>{if(null==e)return null;try{let t=JSON.parse(e);if(t){const e=t.$schema;void 0===e||e<1?t=bo.transformValuesToVersionedValues(t):delete t.$schema}return t}catch(e){return o.clearFlags().then(()=>null)}}),o.saveFlags=t=>{const n=bo.extend({},t,{$schema:1});return e.set(i(),JSON.stringify(n))},o.clearFlags=()=>e.clear(i()),o}(v,d,h,A):null;function $(e){d&&(j&&j.enqueueEvent&&j.enqueueEvent(e)||(e.context?(N=!1,!u||D||r.isDoNotTrack()||(i.debug(Jo.debugEnqueueingEvent(e.kind)),S.enqueue(e))):N&&(i.warn(Jo.eventWithoutContext()),N=!1)))}function F(e,t){l.hasListeners(is.flagDetailChanged)&&l.onFlagChanged(e.key,z(t))}function H(){l.hasListeners(is.flagDetailsChanged)&&l.onFlags(Object.entries(R).map(([e,t])=>({key:e,detail:z(t)})).reduce((e,t)=>(e[t.key]=t.detail,e),{}))}function U(e,t,n,r){const o=A.getContext(),i=new Date,s={kind:"feature",key:e,context:o,value:t?t.value:null,variation:t?t.variationIndex:null,default:n,creationDate:i.getTime()},a=R[e];a&&(s.version=a.flagVersion?a.flagVersion:a.version,s.trackEvents=a.trackEvents,s.debugEventsUntilDate=a.debugEventsUntilDate),(r||a&&a.trackReason)&&t&&(s.reason=t.reason),$(s)}function q(e){return rs(e,!1)?Promise.resolve(e):Promise.reject(new ro.LDInvalidUserError(Jo.invalidContext()))}function B(e,t,n,r,o,i){let s,a;return R&&bo.objectHasOwnProperty(R,e)&&R[e]&&!R[e].deleted?(a=R[e],s=z(a),null!==a.value&&void 0!==a.value||(s.value=t)):s={value:t,variationIndex:null,reason:{kind:"ERROR",errorKind:"FLAG_NOT_FOUND"}},n&&(o||a?.prerequisites?.forEach(e=>{B(e,void 0,n,!1,!1,!1)}),U(e,s,t,r)),!o&&i&&function(e,t){l.hasListeners(is.flagUsed)&&l.onFlagUsed(e,t,A.getContext())}(e,s),s}function z(e){return{value:e.value,variationIndex:void 0===e.variation?null:e.variation,reason:e.reason||null}}function V(){if(C=!0,!A.getContext())return;const e=e=>{try{return JSON.parse(e)}catch(e){return void s.maybeReportError(new ro.LDInvalidDataError(Jo.invalidData()))}};E.connect(A.getContext(),h,{ping:function(){i.debug(Jo.debugStreamPing());const e=A.getContext();k.fetchFlagSettings(e,h).then(t=>{bo.deepEquals(e,A.getContext())&&W(t||{})}).catch(e=>{s.maybeReportError(new ro.LDFlagFetchError(Jo.errorFetchingFlags(e)))})},put:function(t){const n=e(t.data);n&&(i.debug(Jo.debugStreamPut()),W(n))},patch:function(t){const n=e(t.data);if(!n)return;const r=R[n.key];if(!r||!r.version||!n.version||r.version<n.version){i.debug(Jo.debugStreamPatch(n.key));const e={},t=bo.extend({},n);delete t.key,R[n.key]=t;const o=z(t);e[n.key]=r?{previous:r.value,current:o}:{current:o},F(n,t),G(e)}else i.debug(Jo.debugStreamPatchIgnored(n.key))},delete:function(t){const n=e(t.data);if(n)if(!R[n.key]||R[n.key].version<n.version){i.debug(Jo.debugStreamDelete(n.key));const e={};R[n.key]&&!R[n.key].deleted&&(e[n.key]={previous:R[n.key].value}),R[n.key]={version:n.version,deleted:!0},F(n,R[n.key]),G(e)}else i.debug(Jo.debugStreamDeleteIgnored(n.key))}})}function K(){C&&(E.disconnect(),C=!1)}function W(e){const t={};if(!e)return Promise.resolve();for(const n in R)bo.objectHasOwnProperty(R,n)&&R[n]&&(e[n]&&!bo.deepEquals(e[n].value,R[n].value)?t[n]={previous:R[n].value,current:z(e[n])}:e[n]&&!e[n].deleted||(t[n]={previous:R[n].value}));for(const n in e)bo.objectHasOwnProperty(e,n)&&e[n]&&(!R[n]||R[n].deleted)&&(t[n]={current:z(e[n])});return R={...e},H(),G(t).catch(()=>{})}function G(e){const t=Object.keys(e);if(t.length>0){const n={};t.forEach(t=>{const r=e[t].current,o=r?r.value:void 0,i=e[t].previous;s.emit(us+":"+t,o,i),n[t]=r?{current:o,previous:i}:{previous:i}}),s.emit(us,n),s.emit(ds,R),c.sendEventsOnlyForVariation||j||t.forEach(t=>{U(t,e[t].current)})}return O&&M?M.saveFlags(R):Promise.resolve()}function J(){const e=L||P&&void 0===L;e&&!C?V():!e&&C&&K(),_&&_.setStreaming(e)}function Y(e){return e===us||e.substr(0,7)===us+":"}if("string"==typeof c.bootstrap&&"LOCALSTORAGE"===c.bootstrap.toUpperCase()&&(M?O=!0:i.warn(Jo.localStorageUnavailable())),"object"==typeof c.bootstrap&&(R=function(e){const t=Object.keys(e),n="$flagsState",r="$valid",o=e[n];!o&&t.length&&i.warn(Jo.bootstrapOldFormat()),!1===e[r]&&i.warn(Jo.bootstrapInvalid());const s={};return t.forEach(t=>{if(t!==n&&t!==r){let n={value:e[t]};o&&o[t]?n=bo.extend(n,o[t]):n.version=0,s[t]=n}}),s}(c.bootstrap)),j){const e=j.getInitialState();e?Q(e):j.on("init",Q),j.on("update",function(e){e.context&&A.setContext(e.context),e.flags&&W(e.flags)})}else(function(){if(!e)return Promise.reject(new ro.LDInvalidEnvironmentIdError(Jo.environmentNotSpecified()));let n;return I.processContext(t).then(q).then(e=>(n=bo.once(m.identify(e,void 0)),e)).then(e=>(n?.({status:"completed"}),A.setContext(e),"object"==typeof c.bootstrap?X():O?M.loadFlags().then(e=>null==e?(R={},k.fetchFlagSettings(A.getContext(),h).then(e=>W(e||{})).then(X).catch(e=>{Z(new ro.LDFlagFetchError(Jo.errorFetchingFlags(e)))})):(R=e,bo.onNextTick(X),k.fetchFlagSettings(A.getContext(),h).then(e=>W(e)).catch(e=>s.maybeReportError(e)))):k.fetchFlagSettings(A.getContext(),h).then(e=>{R=e||{},H(),X()}).catch(e=>{R={},Z(e)}))).catch(e=>{throw n?.({status:"error"}),e})})().catch(Z);function Q(e){d=e.environment,A.setContext(e.context),R={...e.flags},bo.onNextTick(X)}function X(){i.info(Jo.clientInitialized()),T=!0,J(),a.signalSuccess()}function Z(e){a.signalFailure(e)}const ee={waitForInitialization:function(e=void 0){if(null!=e){if("number"==typeof e)return function(e){e>5&&i.warn("The waitForInitialization function was called with a timeout greater than 5 seconds. We recommend a timeout of 5 seconds or less.");const t=a.getInitializationPromise(),n=function(e,t){return new Promise((n,r)=>{setTimeout(()=>{r(new Ji(`${t} timed out after ${e} seconds.`))},1e3*e)})}(e,"waitForInitialization");return Promise.race([n,t]).catch(e=>{throw e instanceof ro.LDTimeoutError&&i.error(`waitForInitialization error: ${e}`),e})}(e);i.warn("The waitForInitialization method was provided with a non-numeric timeout.")}return i.warn("The waitForInitialization function was called without a timeout specified. In a future version a default timeout will be applied."),a.getInitializationPromise()},waitUntilReady:()=>a.getReadyPromise(),identify:function(e,t,n){if(D)return bo.wrapPromiseCallback(Promise.resolve({}),n);if(j)return i.warn(Jo.identifyDisabled()),bo.wrapPromiseCallback(Promise.resolve(bo.transformVersionedValuesToValues(R)),n);let r;const o=O&&M?M.clearFlags():Promise.resolve();return bo.wrapPromiseCallback(o.then(()=>I.processContext(e)).then(q).then(e=>(r=bo.once(m.identify(e,void 0)),e)).then(e=>k.fetchFlagSettings(e,t).then(n=>{const r=bo.transformVersionedValuesToValues(n);return A.setContext(e),h=t,n?W(n).then(()=>r):r})).then(e=>(r?.({status:"completed"}),C&&V(),e)).catch(e=>(r?.({status:"error"}),s.maybeReportError(e),Promise.reject(e))),n)},getContext:function(){return A.getContext()},variation:function(e,t){const{value:n}=m.withEvaluation(e,A.getContext(),t,()=>B(e,t,!0,!1,!1,!0));return n},variationDetail:function(e,t){return m.withEvaluation(e,A.getContext(),t,()=>B(e,t,!0,!0,!1,!0))},track:function(e,t,n){if("string"!=typeof e)return void s.maybeReportError(new ro.LDInvalidEventKeyError(Jo.unknownCustomEventKey(e)));void 0!==n&&"number"!=typeof n&&i.warn(Jo.invalidMetricValue(typeof n)),r.customEventFilter&&!r.customEventFilter(e)&&i.warn(Jo.unknownCustomEventKey(e));const o=A.getContext(),a={kind:"custom",key:e,context:o,url:r.getCurrentUrl(),creationDate:(new Date).getTime()};o&&o.anonymous&&(a.contextKind=o.anonymous?"anonymousUser":"user"),null!=t&&(a.data=t),null!=n&&(a.metricValue=n),$(a),m.afterTrack({context:o,key:e,data:t,metricValue:n})},on:function(e,t,n){Y(e)?(P=!0,T&&J(),s.on(e,t,n)):s.on(...arguments)},off:function(e){if(s.off(...arguments),Y(e)){let e=!1;s.getEvents().forEach(t=>{Y(t)&&s.getEventListenerCount(t)>0&&(e=!0)}),e||(P=!1,C&&void 0===L&&K())}},setStreaming:function(e){const t=null===e?void 0:e;t!==L&&(L=t,J())},flush:function(e){return bo.wrapPromiseCallback(u?S.flush():Promise.resolve(),e)},allFlags:function(){const e={};if(!R)return e;for(const t in R)bo.objectHasOwnProperty(R,t)&&!R[t].deleted&&(e[t]=B(t,null,!c.sendEventsOnlyForVariation,!1,!0,!1).value);return e},close:function(e){if(D)return bo.wrapPromiseCallback(Promise.resolve(),e);const t=()=>{D=!0,R={}},n=Promise.resolve().then(()=>{if(K(),_&&_.stop(),u)return S.stop(),S.flush()}).then(t).catch(t);return bo.wrapPromiseCallback(n,e)},addHook:function(e){m.addHook(e)}};return cs(i,f,ee,p),{client:ee,options:c,emitter:s,ident:A,logger:i,requestor:k,start:function(){u&&(_&&_.start(),S.start())},enqueueEvent:$,getFlagsInternal:function(){return R},getEnvironmentId:()=>d,internalChangeEventName:ds}},commonBasicLogger:ns,errors:ro,messages:Jo,utils:bo,getContextKeys:os},ps=hs.initialize,fs=hs.errors;function gs(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ms(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function vs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ms(Object(n),!0).forEach(function(t){gs(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ms(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var ys=hs.commonBasicLogger,bs={promise:Promise.resolve({status:200,header:function(){return null},body:null})};var ws=e=>{if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")};function xs(e,t,n,r){var o,i,s=("substring"!==e.kind&&"regex"!==e.kind||!r.includes("/")?t.replace(r,""):t).replace(n,"");switch(e.kind){case"exact":i=t,o=new RegExp("^"+ws(e.url)+"/?$");break;case"canonical":i=s,o=new RegExp("^"+ws(e.url)+"/?$");break;case"substring":i=s,o=new RegExp(".*"+ws(e.substring)+".*$");break;case"regex":i=s,o=new RegExp(e.pattern);break;default:return!1}return o.test(i)}function _s(e,t){for(var n={},r=null,o=[],i=0;i<e.length;i++)for(var s=e[i],a=s.urls||[],c=0;c<a.length;c++)if(xs(a[c],window.location.href,window.location.search,window.location.hash)){"pageview"===s.kind?t("pageview",s):(o.push(s),t("click_pageview",s));break}return o.length>0&&(r=function(e){for(var n=function(e,t){for(var n=[],r=0;r<t.length;r++)for(var o=e.target,i=t[r],s=i.selector,a=document.querySelectorAll(s);o&&a.length>0;){for(var c=0;c<a.length;c++)o===a[c]&&n.push(i);o=o.parentNode}return n}(e,o),r=0;r<n.length;r++)t("click",n[r])},document.addEventListener("click",r)),n.dispose=function(){document.removeEventListener("click",r)},n}var Es="goalsReady",Ss={fetchGoals:{default:!0},hash:{type:"string"},eventProcessor:{type:"object"},eventUrlTransformer:{type:"function"},disableSyncEventPost:{default:!1}};function ks(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=function(e){var t,n={userAgentHeaderName:"X-LaunchDarkly-User-Agent",synchronousFlush:!1};if(window.XMLHttpRequest){var r=e&&e.disableSyncEventPost;n.httpRequest=function(e,t,o,i){var s=n.synchronousFlush&!r;return n.synchronousFlush=!1,function(e,t,n,r,o){if(o&&!function(){var e=window.navigator&&window.navigator.userAgent;if(e){var t=e.match(/Chrom(e|ium)\/([0-9]+)\./);if(t)return parseInt(t[2],10)<73}return!0}())return bs;var i,s=new window.XMLHttpRequest;for(var a in s.open(e,t,!o),n||{})Object.prototype.hasOwnProperty.call(n,a)&&s.setRequestHeader(a,n[a]);if(o){try{s.send(r)}catch(e){}return bs}return{promise:new Promise(function(e,t){s.addEventListener("load",function(){i||e({status:s.status,header:function(e){return s.getResponseHeader(e)},body:s.responseText})}),s.addEventListener("error",function(){i||t(new Error)}),s.send(r)}),cancel:function(){i=!0,s.abort()}}}(e,t,o,i,s)}}n.httpAllowsPost=function(){return void 0===t&&(t=!!window.XMLHttpRequest&&"withCredentials"in new window.XMLHttpRequest),t},n.httpFallbackPing=function(e){(new window.Image).src=e};var o,i=e&&e.eventUrlTransformer;n.getCurrentUrl=function(){return i?i(window.location.href):window.location.href},n.isDoNotTrack=function(){var e;return 1===(e=window.navigator&&void 0!==window.navigator.doNotTrack?window.navigator.doNotTrack:window.navigator&&void 0!==window.navigator.msDoNotTrack?window.navigator.msDoNotTrack:window.doNotTrack)||!0===e||"1"===e||"yes"===e};try{window.localStorage&&(n.localStorage={get:function(e){return new Promise(function(t){t(window.localStorage.getItem(e))})},set:function(e,t){return new Promise(function(n){window.localStorage.setItem(e,t),n()})},clear:function(e){return new Promise(function(t){window.localStorage.removeItem(e),t()})}})}catch(e){n.localStorage=null}if(e&&e.useReport&&"function"==typeof window.EventSourcePolyfill&&window.EventSourcePolyfill.supportedOptions&&window.EventSourcePolyfill.supportedOptions.method?(n.eventSourceAllowsReport=!0,o=window.EventSourcePolyfill):(n.eventSourceAllowsReport=!1,o=window.EventSource),window.EventSource){var s=3e5;n.eventSourceFactory=function(e,t){var n=vs(vs({},{heartbeatTimeout:s,silentTimeout:s,skipDefaultHeaders:!0}),t);return new o(e,n)},n.eventSourceIsActive=function(e){return e.readyState===window.EventSource.OPEN||e.readyState===window.EventSource.CONNECTING}}return n.userAgent="JSClient",n.version="3.8.1",n.diagnosticSdkData={name:"js-client-sdk",version:"3.8.1"},n.diagnosticPlatformData={name:"JS"},n.diagnosticUseCombinedEvent=!0,n}(n),o=ps(e,t,n,r,Ss),i=o.client,s=o.options,a=o.emitter,c=new Promise(function(e){var t=a.on(Es,function(){a.off(Es,t),e()})});i.waitUntilGoalsReady=function(){return c},s.fetchGoals?function(e,t){var n,r;function o(){r&&r.dispose(),n&&n.length&&(r=_s(n,i))}function i(t,n){var r=e.ident.getContext(),o={kind:t,key:n.key,data:null,url:window.location.href,creationDate:(new Date).getTime(),context:r};return"click"===t&&(o.selector=n.selector),e.enqueueEvent(o)}e.requestor.fetchJSON("/sdk/goals/"+e.getEnvironmentId()).then(function(e){e&&e.length>0&&(r=_s(n=e,i),function(e,t){var n,r=window.location.href;function o(){(n=window.location.href)!==r&&(r=n,t())}(function e(t,n){t(),setTimeout(function(){e(t,n)},n)})(o,300),window.history&&window.history.pushState?window.addEventListener("popstate",o):window.addEventListener("hashchange",o)}(0,o)),t()}).catch(function(n){e.emitter.maybeReportError(new fs.LDUnexpectedResponseError((n&&n.message,n.message))),t()})}(o,function(){return a.emit(Es)}):a.emit(Es),"complete"!==document.readyState?window.addEventListener("load",o.start):o.start();var l=function(){r.synchronousFlush=!0,i.flush().catch(function(){}),r.synchronousFlush=!1};return document.addEventListener("visibilitychange",function(){"hidden"===document.visibilityState&&l()}),window.addEventListener("pagehide",l),i}var Os=function(e){return ys(vs({destination:console.log},e))},Cs=o((e,t)=>{ct();var n="[object Symbol]",r=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,o=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,i="\\ud800-\\udfff",s="\\u0300-\\u036f\\ufe20-\\ufe23",a="\\u20d0-\\u20f0",c="\\u2700-\\u27bf",l="a-z\\xdf-\\xf6\\xf8-\\xff",u="A-Z\\xc0-\\xd6\\xd8-\\xde",d="\\ufe0e\\ufe0f",h="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",p="['’]",f="["+i+"]",g="["+h+"]",m="["+s+a+"]",v="\\d+",y="["+c+"]",b="["+l+"]",w="[^"+i+h+v+c+l+u+"]",x="\\ud83c[\\udffb-\\udfff]",_="[^"+i+"]",E="(?:\\ud83c[\\udde6-\\uddff]){2}",S="[\\ud800-\\udbff][\\udc00-\\udfff]",k="["+u+"]",O="\\u200d",C="(?:"+b+"|"+w+")",P="(?:"+k+"|"+w+")",R="(?:['’](?:d|ll|m|re|s|t|ve))?",L="(?:['’](?:D|LL|M|RE|S|T|VE))?",T="(?:"+m+"|"+x+")"+"?",D="["+d+"]?",N=D+T+("(?:"+O+"(?:"+[_,E,S].join("|")+")"+D+T+")*"),j="(?:"+[y,E,S].join("|")+")"+N,A="(?:"+[_+m+"?",m,E,S,f].join("|")+")",I=RegExp(p,"g"),M=RegExp(m,"g"),$=RegExp(x+"(?="+x+")|"+A+N,"g"),F=RegExp([k+"?"+b+"+"+R+"(?="+[g,k,"$"].join("|")+")",P+"+"+L+"(?="+[g,k+C,"$"].join("|")+")",k+"?"+C+"+"+R,k+"+"+L,v,j].join("|"),"g"),H=RegExp("["+O+i+s+a+d+"]"),U=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,q="object"==typeof rt&&rt&&rt.Object===Object&&rt,B="object"==typeof self&&self&&self.Object===Object&&self,z=q||B||Function("return this")();var V,K=(V={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"ss"},function(e){return null==V?void 0:V[e]});function W(e){return H.test(e)}function G(e){return W(e)?function(e){return e.match($)||[]}(e):function(e){return e.split("")}(e)}var J=Object.prototype.toString,Y=z.Symbol,Q=Y?Y.prototype:void 0,X=Q?Q.toString:void 0;function Z(e){if("string"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&J.call(e)==n}(e))return X?X.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function ee(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=r?e:function(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r<o;)i[r]=e[r+t];return i}(e,t,n)}function te(e){return null==e?"":Z(e)}var ne,re=(ne=function(e,t,n){return t=t.toLowerCase(),e+(n?ie(te(t).toLowerCase()):t)},function(e){return function(e,t,n,r){var o=-1,i=e?e.length:0;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}(function(e,t,n){return e=te(e),void 0===(t=n?void 0:t)?function(e){return U.test(e)}(e)?function(e){return e.match(F)||[]}(e):function(e){return e.match(r)||[]}(e):e.match(t)||[]}(function(e){return(e=te(e))&&e.replace(o,K).replace(M,"")}(e).replace(I,"")),ne,"")});var oe,ie=(oe="toUpperCase",function(e){var t=W(e=te(e))?G(e):void 0,n=t?t[0]:e.charAt(0),r=t?ee(t,1).join(""):e.slice(1);return n[oe]()+r});t.exports=re}),Ps=e(Cs()),Rs=(Gr(),(0,zr.createContext)({flags:{},flagKeyMap:{},ldClient:void 0})),{Provider:Ls,Consumer:Ts}=Rs,Ds={useCamelCaseFlagKeys:!0,sendEventsOnFlagRead:!0,reactContext:Rs},Ns=e=>{var t;return null!=(t=e.context)?t:e.user},js=e=>{const t={};for(const n in e)0!==n.indexOf("$")&&(t[(0,Ps.default)(n)]=e[n]);return t},As=(e,t)=>{const n=e.allFlags();return t?Object.keys(t).reduce((e,r)=>(e[r]=Object.prototype.hasOwnProperty.call(n,r)?n[r]:t[r],e),{}):n};function Is(e,t,n=Ds,r){const o=function(e,t){return void 0===t?e:Object.keys(t).reduce((t,n)=>(Ms(e,n)&&(t[n]=e[n]),t),{})}(t,r),{useCamelCaseFlagKeys:i=!0}=n,[s,a={}]=i?function(e){const t={},n={};for(const r in e){if(0===r.indexOf("$"))continue;const o=(0,Ps.default)(r);t[o]=e[r],n[o]=r}return[t,n]}(o):[o];return{flags:n.sendEventsOnFlagRead?$s(e,s,a,i):s,flagKeyMap:a}}function Ms(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function $s(e,t,n,r){return new Proxy(t,{get(t,o,i){const s=Reflect.get(t,o,i),a=r&&Ms(n,o)||Ms(t,o);if("symbol"==typeof o||!a)return s;if(void 0===s)return;const c=r?n[o]:o;return e.variation(c,s)}})}js.camelCaseKeys=js;var Fs={wrapperName:"react-client-sdk",wrapperVersion:"3.8.1",sendEventsOnlyForVariation:!0},Hs=Object.defineProperty,Us=Object.defineProperties,qs=Object.getOwnPropertyDescriptors,Bs=Object.getOwnPropertySymbols,zs=Object.prototype.hasOwnProperty,Vs=Object.prototype.propertyIsEnumerable,Ks=(e,t,n)=>t in e?Hs(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ws=(e,t)=>{for(var n in t||(t={}))zs.call(t,n)&&Ks(e,n,t[n]);if(Bs)for(var n of Bs(t))Vs.call(t,n)&&Ks(e,n,t[n]);return e},Gs=(e,t)=>Us(e,qs(t)),Js=(e,t,n)=>new Promise((r,o)=>{var i=e=>{try{a(n.next(e))}catch(e){o(e)}},s=e=>{try{a(n.throw(e))}catch(e){o(e)}},a=e=>e.done?r(e.value):Promise.resolve(e.value).then(i,s);a((n=n.apply(e,t)).next())}),Ys=class extends zr.Component{constructor(e){super(e),this.getReactOptions=()=>Ws(Ws({},Ds),this.props.reactOptions),this.subscribeToChanges=e=>{const{flags:t}=this.props;e.on("change",n=>{const r=this.getReactOptions(),o=((e,t)=>{const n={};for(const r in e)t&&void 0===t[r]||(n[r]=e[r].current);return n})(n,t),i=Ws(Ws({},this.state.unproxiedFlags),o);Object.keys(o).length>0&&this.setState(n=>Ws(Gs(Ws({},n),{unproxiedFlags:i}),Is(e,i,r,t)))})},this.onFailed=(e,t)=>{this.setState(e=>Gs(Ws({},e),{error:t}))},this.onReady=(e,t,n)=>{const r=As(e,n);this.setState(o=>Ws(Gs(Ws({},o),{unproxiedFlags:r}),Is(e,r,t,n)))},this.prepareLDClient=()=>Js(this,null,function*(){var e;const{clientSideID:t,flags:n,options:r}=this.props;let o=yield this.props.ldClient;const i=this.getReactOptions();let s,a=this.state.unproxiedFlags;if(o)a=As(o,n);else{o=ks(t,null!=(e=Ns(this.props))?e:{anonymous:!0,kind:"user"},Ws(Ws({},Fs),r));try{yield o.waitForInitialization(this.props.timeout),a=As(o,n)}catch(e){s=e,null!=s&&s.name.toLowerCase().includes("timeout")&&(o.on("failed",this.onFailed),o.on("ready",()=>{this.onReady(o,i,n)}))}}this.setState(e=>Gs(Ws(Gs(Ws({},e),{unproxiedFlags:a}),Is(o,a,i,n)),{ldClient:o,error:s})),this.subscribeToChanges(o)});const{options:t}=e;if(this.state={flags:{},unproxiedFlags:{},flagKeyMap:{}},t){const{bootstrap:e}=t;if(e&&"localStorage"!==e){const{useCamelCaseFlagKeys:t}=this.getReactOptions();this.state={flags:t?js(e):e,unproxiedFlags:e,flagKeyMap:{}}}}}componentDidMount(){return Js(this,null,function*(){const{deferInitialization:e}=this.props;e&&!Ns(this.props)||(yield this.prepareLDClient())})}componentDidUpdate(e){return Js(this,null,function*(){const{deferInitialization:t}=this.props,n=!Ns(e)&&Ns(this.props);t&&n&&(yield this.prepareLDClient())})}render(){const{flags:e,flagKeyMap:t,ldClient:n,error:r}=this.state,{reactContext:o}=this.getReactOptions();return zr.createElement(o.Provider,{value:{flags:e,flagKeyMap:t,ldClient:n,error:r}},this.props.children)}},Qs=e=>{const{flags:t}=(0,zr.useContext)(null!=e?e:Ds.reactContext);return t},Xs=["top.GLOBALS","originalCreateNotification","canvas.contentDocument","MyApp_RemoveAllHighlights","http://tt.epicplay.com","Can't find variable: ZiteReader","jigsaw is not defined","ComboSearch is not defined","http://loading.retry.widdit.com/","atomicFindClose","fb_xd_fragment","bmi_SafeAddOnload","EBCallBackMessageReceived","conduitPage","Script error.","_avast_submit","change_ua","A network error occurred.","Non-Error promise rejection captured with value: Not implemented on this platform","TypeError: annulé","TypeError: cancelled","Error: Error response received for message <get-frame-manager-configuration>",/^Non-Error promise rejection captured with value: Object Not Found Matching Id:\d+, MethodName:(update|simulateEvent), ParamCount:\d+$/,"AbortError","The user aborted a request","signal is aborted without reason","Too many active WebGL contexts",/CONTEXT_LOST_WEBGL/i,/WebGL context (?:was )?lost/i,"ResizeObserver loop limit exceeded","ResizeObserver loop completed with undelivered notifications"],Zs=[/pagead\/js/i,/graph\.facebook\.com/i,/connect\.facebook\.net\/en_US\/all\.js/i,/eatdifferent\.com\.woopra-ns\.com/i,/static\.woopra\.com\/js\/woopra\.js/i,/extensions\//i,/^chrome:\/\//i,/127\.0\.0\.1:4001\/isrunning/i,/webappstoolbarba\.texthelp\.com\//i,/metrics\.itunes\.apple\.com\.edgesuite\.net\//i,/maps\.googleapis\.com\/maps\/api\/mapsjs\/gen_204\//i],ea=[/staging.locallogic.co/,/sdk.locallogic.co/],ta=[{vendor:"maplibre",pattern:/maplibre-vendor/},{vendor:"mapbox",pattern:/mapbox-vendor/},{vendor:"google-maps",pattern:/google-maps-vendor|maps\.(googleapis|gstatic)\.com/}],na=/Importing a module script failed|Unable to preload|Failed to fetch dynamically imported module|error loading dynamically imported module/i,ra=/\bLoad failed|NetworkError when attempting to fetch/i,oa=/bot|crawl|spider|slurp|mediapartners|headless|phantom|puppeteer|playwright|selenium|scrapy|curl|wget|python-requests|axios|facebookexternalhit|bingpreview|lighthouse|pingdom|gtmetrix|semrush|ahrefs|mj12|dotbot|petalbot|bytespider|dataprovider/i,ia=Object.freeze(new class{constructor(){!function(e){const t={...e};nn(t,"react"),jt("react",{version:zr.version}),Ir(t)}({dsn:"https://19707ff4ff7f420b9369a3e15041c787@o227377.ingest.sentry.io/6677584",tracesSampleRate:.01,replaysSessionSampleRate:.1,replaysOnErrorSampleRate:.5,environment:"production",enabled:!0,ignoreErrors:Xs,denyUrls:Zs,allowUrls:ea,release:"1.24.44",dist:"413504742545d088c499c064d82229d41b9bd0b2",integrations:[Mr({failedRequestStatusCodes:[400,402,[405,599]],failedRequestTargets:[/\/\/(api|reports-api|providers-api)(-qa)?\.locallogic\.co/,/\/\/analytics\.locallogic\.co/]}),Nr(),En()],beforeSend(e){if((()=>{if("undefined"==typeof navigator)return!1;if(navigator.webdriver)return!0;const e=navigator.userAgent||"";return!e||oa.test(e)})())return null;if((e=>{const t=e.exception?.values;return!!t?.length&&t.some(e=>na.test(e?.value||"")||na.test(e?.type||""))})(e))return e.level="warning",e.fingerprint=["chunk-load-failure"],e;const t=(e=>{const t=e.exception?.values;if(!t?.length)return null;const n=t[t.length-1]?.stacktrace?.frames;if(!n?.length)return null;const r=n[n.length-1],o=r?.filename||r?.abs_path||"";return ta.find(({pattern:e})=>e.test(o))?.vendor??null})(e);return t&&(e.tags={...e.tags,source:"map-vendor",mapVendor:t}),(e=>{const t=e.exception?.values;return!!t?.length&&t.some(e=>ra.test(e?.value||"")||ra.test(e?.type||""))})(e)?(e.fingerprint=["resource-load-failed"],e.tags={...e.tags,source:e.tags?.source??"resource-load-failed"},e):e},sendDefaultPii:!0,normalizeDepth:5}),jt("LocalLogic",{referrer:document.referrer,sdks_app_version:"1.24.44",sdks_app_path:window?.location?.pathname?.substring((window?.location?.pathname?.lastIndexOf("/")??-1)+1)})}captureException(e){this.log(e.message,"error"),Dt(e)}addBreadCrumb(e,t,n,r="info"){sn({category:e,message:t,data:n,level:r})}setTags(e){!function(e){$e().setTags(e)}(e)}log(e,t="info"){console[t]("[Local Logic] "+e)}}),sa=e=>"string"==typeof e,aa=()=>{let e,t;const n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n},ca=e=>null==e?"":""+e,la=/###/g,ua=e=>e&&e.indexOf("###")>-1?e.replace(la,"."):e,da=e=>!e||sa(e),ha=(e,t,n)=>{const r=sa(t)?t.split("."):t;let o=0;for(;o<r.length-1;){if(da(e))return{};const t=ua(r[o]);!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++o}return da(e)?{}:{obj:e,k:ua(r[o])}},pa=(e,t,n)=>{const{obj:r,k:o}=ha(e,t,Object);if(void 0!==r||1===t.length)return void(r[o]=n);let i=t[t.length-1],s=t.slice(0,t.length-1),a=ha(e,s,Object);for(;void 0===a.obj&&s.length;)i=`${s[s.length-1]}.${i}`,s=s.slice(0,s.length-1),a=ha(e,s,Object),a&&a.obj&&void 0!==a.obj[`${a.k}.${i}`]&&(a.obj=void 0);a.obj[`${a.k}.${i}`]=n},fa=(e,t)=>{const{obj:n,k:r}=ha(e,t);if(n)return n[r]},ga=(e,t,n)=>{for(const r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?sa(e[r])||e[r]instanceof String||sa(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):ga(e[r],t[r],n):e[r]=t[r]);return e},ma=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),va={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"},ya=e=>sa(e)?e.replace(/[&<>"'\/]/g,e=>va[e]):e,ba=[" ",",","?","!",";"],wa=new class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const t=this.regExpMap.get(e);if(void 0!==t)return t;const n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}}(20),xa=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(!e)return;if(e[t])return e[t];const r=t.split(n);let o=e;for(let i=0;i<r.length;){if(!o||"object"!=typeof o)return;let e,t="";for(let s=i;s<r.length;++s)if(s!==i&&(t+=n),t+=r[s],e=o[t],void 0!==e){if(["string","number","boolean"].indexOf(typeof e)>-1&&s<r.length-1)continue;i+=s-i+1;break}o=e}return o},_a=e=>e&&e.replace("_","-"),Ea={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}},Sa=new class e{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.init(e,t)}init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||Ea,this.options=t,this.debug=t.debug}log(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}warn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}error(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}deprecate(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(e,t,n,r){return r&&!this.debug?null:(sa(e[0])&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}create(t){return new e(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return(t=t||this.options).prefix=t.prefix||this.prefix,new e(this.logger,t)}},ka=class{constructor(){this.observers={}}on(e,t){return e.split(" ").forEach(e=>{this.observers[e]||(this.observers[e]=new Map);const n=this.observers[e].get(t)||0;this.observers[e].set(t,n+1)}),this}off(e,t){this.observers[e]&&(t?this.observers[e].delete(t):delete this.observers[e])}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this.observers[e]&&Array.from(this.observers[e].entries()).forEach(e=>{let[t,r]=e;for(let o=0;o<r;o++)t(...n)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(t=>{let[r,o]=t;for(let i=0;i<o;i++)r.apply(r,[e,...n])})}},Oa=class extends ka{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const o=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,i=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure;let s;e.indexOf(".")>-1?s=e.split("."):(s=[e,t],n&&(Array.isArray(n)?s.push(...n):sa(n)&&o?s.push(...n.split(o)):s.push(n)));const a=fa(this.data,s);return!a&&!t&&!n&&e.indexOf(".")>-1&&(e=s[0],t=s[1],n=s.slice(2).join(".")),!a&&i&&sa(n)?xa(this.data&&this.data[e]&&this.data[e][t],n,o):a}addResource(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1};const i=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator;let s=[e,t];n&&(s=s.concat(i?n.split(i):n)),e.indexOf(".")>-1&&(s=e.split("."),r=t,t=s[1]),this.addNamespaces(t),pa(this.data,s,r),o.silent||this.emit("added",e,t,n,r)}addResources(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(const o in n)(sa(n[o])||Array.isArray(n[o]))&&this.addResource(e,t,o,n[o],{silent:!0});r.silent||this.emit("added",e,t,n)}addResourceBundle(e,t,n,r,o){let i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1,skipCopy:!1},s=[e,t];e.indexOf(".")>-1&&(s=e.split("."),r=n,n=t,t=s[1]),this.addNamespaces(t);let a=fa(this.data,s)||{};i.skipCopy||(n=JSON.parse(JSON.stringify(n))),r?ga(a,n,o):a={...a,...n},pa(this.data,s,a),i.silent||this.emit("added",e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return void 0!==this.getResource(e,t)}getResourceBundle(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?{...this.getResource(e,t)}:this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(e=>t[e]&&Object.keys(t[e]).length>0)}toJSON(){return this.data}},Ca={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,o){return e.forEach(e=>{this.processors[e]&&(t=this.processors[e].process(t,n,r,o))}),t}},Pa={},Ra=class e extends ka{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(),((e,t,n)=>{e.forEach(e=>{t[e]&&(n[e]=t[e])})})(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=Sa.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;const n=this.resolve(e,t);return n&&void 0!==n.res}extractFromKey(e,t){let n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");const r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator;let o=t.ns||this.options.defaultNS||[];const i=n&&e.indexOf(n)>-1,s=!(this.options.userDefinedKeySeparator||t.keySeparator||this.options.userDefinedNsSeparator||t.nsSeparator||((e,t,n)=>{t=t||"",n=n||"";const r=ba.filter(e=>t.indexOf(e)<0&&n.indexOf(e)<0);if(0===r.length)return!0;const o=wa.getRegExp(`(${r.map(e=>"?"===e?"\\?":e).join("|")})`);let i=!o.test(e);if(!i){const t=e.indexOf(n);t>0&&!o.test(e.substring(0,t))&&(i=!0)}return i})(e,n,r));if(i&&!s){const t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:sa(o)?[o]:o};const i=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(i[0])>-1)&&(o=i.shift()),e=i.join(r)}return{key:e,namespaces:sa(o)?[o]:o}}translate(t,n,r){if("object"!=typeof n&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof n&&(n={...n}),n||(n={}),null==t)return"";Array.isArray(t)||(t=[String(t)]);const o=void 0!==n.returnDetails?n.returnDetails:this.options.returnDetails,i=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,{key:s,namespaces:a}=this.extractFromKey(t[t.length-1],n),c=a[a.length-1],l=n.lng||this.language,u=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(l&&"cimode"===l.toLowerCase()){if(u){const e=n.nsSeparator||this.options.nsSeparator;return o?{res:`${c}${e}${s}`,usedKey:s,exactUsedKey:s,usedLng:l,usedNS:c,usedParams:this.getUsedParamsDetails(n)}:`${c}${e}${s}`}return o?{res:s,usedKey:s,exactUsedKey:s,usedLng:l,usedNS:c,usedParams:this.getUsedParamsDetails(n)}:s}const d=this.resolve(t,n);let h=d&&d.res;const p=d&&d.usedKey||s,f=d&&d.exactUsedKey||s,g=Object.prototype.toString.apply(h),m=void 0!==n.joinArrays?n.joinArrays:this.options.joinArrays,v=!this.i18nFormat||this.i18nFormat.handleAsObject,y=!sa(h)&&"boolean"!=typeof h&&"number"!=typeof h;if(!(v&&h&&y&&["[object Number]","[object Function]","[object RegExp]"].indexOf(g)<0)||sa(m)&&Array.isArray(h))if(v&&sa(m)&&Array.isArray(h))h=h.join(m),h&&(h=this.extendTranslation(h,t,n,r));else{let o=!1,a=!1;const u=void 0!==n.count&&!sa(n.count),p=e.hasDefaultValue(n),f=u?this.pluralResolver.getSuffix(l,n.count,n):"",g=n.ordinal&&u?this.pluralResolver.getSuffix(l,n.count,{ordinal:!1}):"",m=u&&!n.ordinal&&0===n.count&&this.pluralResolver.shouldUseIntlApi(),v=m&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${f}`]||n[`defaultValue${g}`]||n.defaultValue;!this.isValidLookup(h)&&p&&(o=!0,h=v),this.isValidLookup(h)||(a=!0,h=s);const y=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&a?void 0:h,b=p&&v!==h&&this.options.updateMissing;if(a||o||b){if(this.logger.log(b?"updateKey":"missingKey",l,c,s,b?v:h),i){const e=this.resolve(s,{...n,keySeparator:!1});e&&e.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let e=[];const t=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if("fallback"===this.options.saveMissingTo&&t&&t[0])for(let n=0;n<t.length;n++)e.push(t[n]);else"all"===this.options.saveMissingTo?e=this.languageUtils.toResolveHierarchy(n.lng||this.language):e.push(n.lng||this.language);const r=(e,t,r)=>{const o=p&&r!==h?r:y;this.options.missingKeyHandler?this.options.missingKeyHandler(e,c,t,o,b,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(e,c,t,o,b,n),this.emit("missingKey",e,c,t,h)};this.options.saveMissing&&(this.options.saveMissingPlurals&&u?e.forEach(e=>{const t=this.pluralResolver.getSuffixes(e,n);m&&n[`defaultValue${this.options.pluralSeparator}zero`]&&t.indexOf(`${this.options.pluralSeparator}zero`)<0&&t.push(`${this.options.pluralSeparator}zero`),t.forEach(t=>{r([e],s+t,n[`defaultValue${t}`]||v)})}):r(e,s,v))}h=this.extendTranslation(h,t,n,d,r),a&&h===s&&this.options.appendNamespaceToMissingKey&&(h=`${c}:${s}`),(a||o)&&this.options.parseMissingKeyHandler&&(h="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${c}:${s}`:s,o?h:void 0):this.options.parseMissingKeyHandler(h))}else{if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(p,h,{...n,ns:a}):`key '${s} (${this.language})' returned an object instead of string.`;return o?(d.res=e,d.usedParams=this.getUsedParamsDetails(n),d):e}if(i){const e=Array.isArray(h),t=e?[]:{},r=e?f:p;for(const o in h)if(Object.prototype.hasOwnProperty.call(h,o)){const e=`${r}${i}${o}`;t[o]=this.translate(e,{...n,joinArrays:!1,ns:a}),t[o]===e&&(t[o]=h[o])}h=t}}return o?(d.res=h,d.usedParams=this.getUsedParamsDetails(n),d):h}extendTranslation(e,t,n,r,o){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});const s=sa(e)&&(n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let a;if(s){const t=e.match(this.interpolator.nestingRegexp);a=t&&t.length}let c=n.replace&&!sa(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(c={...this.options.interpolation.defaultVariables,...c}),e=this.interpolator.interpolate(e,c,n.lng||this.language||r.usedLng,n),s){const t=e.match(this.interpolator.nestingRegexp);a<(t&&t.length)&&(n.nest=!1)}!n.lng&&"v1"!==this.options.compatibilityAPI&&r&&r.res&&(n.lng=this.language||r.usedLng),!1!==n.nest&&(e=this.interpolator.nest(e,function(){for(var e=arguments.length,r=new Array(e),s=0;s<e;s++)r[s]=arguments[s];return o&&o[0]===r[0]&&!n.context?(i.logger.warn(`It seems you are nesting recursively key: ${r[0]} in key: ${t[0]}`),null):i.translate(...r,t)},n)),n.interpolation&&this.interpolator.reset()}const s=n.postProcess||this.options.postProcess,a=sa(s)?[s]:s;return null!=e&&a&&a.length&&!1!==n.applyPostProcessor&&(e=Ca.handle(a,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),e}resolve(e){let t,n,r,o,i,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return sa(e)&&(e=[e]),e.forEach(e=>{if(this.isValidLookup(t))return;const a=this.extractFromKey(e,s),c=a.key;n=c;let l=a.namespaces;this.options.fallbackNS&&(l=l.concat(this.options.fallbackNS));const u=void 0!==s.count&&!sa(s.count),d=u&&!s.ordinal&&0===s.count&&this.pluralResolver.shouldUseIntlApi(),h=void 0!==s.context&&(sa(s.context)||"number"==typeof s.context)&&""!==s.context,p=s.lngs?s.lngs:this.languageUtils.toResolveHierarchy(s.lng||this.language,s.fallbackLng);l.forEach(e=>{this.isValidLookup(t)||(i=e,!Pa[`${p[0]}-${e}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(i)&&(Pa[`${p[0]}-${e}`]=!0,this.logger.warn(`key "${n}" for languages "${p.join(", ")}" won't get resolved as namespace "${i}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),p.forEach(n=>{if(this.isValidLookup(t))return;o=n;const i=[c];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(i,c,n,e,s);else{let e;u&&(e=this.pluralResolver.getSuffix(n,s.count,s));const t=`${this.options.pluralSeparator}zero`,r=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(u&&(i.push(c+e),s.ordinal&&0===e.indexOf(r)&&i.push(c+e.replace(r,this.options.pluralSeparator)),d&&i.push(c+t)),h){const n=`${c}${this.options.contextSeparator}${s.context}`;i.push(n),u&&(i.push(n+e),s.ordinal&&0===e.indexOf(r)&&i.push(n+e.replace(r,this.options.pluralSeparator)),d&&i.push(n+t))}}let a;for(;a=i.pop();)this.isValidLookup(t)||(r=a,t=this.getResource(n,e,a,s))}))})}),{res:t,usedKey:n,exactUsedKey:r,usedLng:o,usedNS:i}}isValidLookup(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}getResource(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}getUsedParamsDetails(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],n=e.replace&&!sa(e.replace);let r=n?e.replace:e;if(n&&void 0!==e.count&&(r.count=e.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!n){r={...r};for(const e of t)delete r[e]}return r}static hasDefaultValue(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&"defaultValue"===t.substring(0,12)&&void 0!==e[t])return!0;return!1}},La=e=>e.charAt(0).toUpperCase()+e.slice(1),Ta=class{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Sa.create("languageUtils")}getScriptPartFromCode(e){if(!(e=_a(e))||e.indexOf("-")<0)return null;const t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}getLanguagePartFromCode(e){if(!(e=_a(e))||e.indexOf("-")<0)return e;const t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(sa(e)&&e.indexOf("-")>-1){if("undefined"!=typeof Intl&&void 0!==Intl.getCanonicalLocales)try{let t=Intl.getCanonicalLocales(e)[0];if(t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t)return t}catch(cv){}const t=["hans","hant","latn","cyrl","cans","mong","arab"];let n=e.split("-");return this.options.lowerCaseLng?n=n.map(e=>e.toLowerCase()):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=La(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=La(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=La(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach(e=>{if(t)return;const n=this.formatLanguageCode(e);this.options.supportedLngs&&!this.isSupportedCode(n)||(t=n)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;const n=this.getLanguagePartFromCode(e);if(this.isSupportedCode(n))return t=n;t=this.options.supportedLngs.find(e=>e===n?e:e.indexOf("-")<0&&n.indexOf("-")<0?void 0:e.indexOf("-")>0&&n.indexOf("-")<0&&e.substring(0,e.indexOf("-"))===n||0===e.indexOf(n)&&n.length>1?e:void 0)}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}getFallbackCodes(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),sa(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}toResolveHierarchy(e,t){const n=this.getFallbackCodes(t||this.options.fallbackLng||[],e),r=[],o=e=>{e&&(this.isSupportedCode(e)?r.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return sa(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?("languageOnly"!==this.options.load&&o(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&o(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&o(this.getLanguagePartFromCode(e))):sa(e)&&o(this.formatLanguageCode(e)),n.forEach(e=>{r.indexOf(e)<0&&o(this.formatLanguageCode(e))}),r}},Da=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],Na={1:e=>Number(e>1),2:e=>Number(1!=e),3:e=>0,4:e=>Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2),5:e=>Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5),6:e=>Number(1==e?0:e>=2&&e<=4?1:2),7:e=>Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2),8:e=>Number(1==e?0:2==e?1:8!=e&&11!=e?2:3),9:e=>Number(e>=2),10:e=>Number(1==e?0:2==e?1:e<7?2:e<11?3:4),11:e=>Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3),12:e=>Number(e%10!=1||e%100==11),13:e=>Number(0!==e),14:e=>Number(1==e?0:2==e?1:3==e?2:3),15:e=>Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2),16:e=>Number(e%10==1&&e%100!=11?0:0!==e?1:2),17:e=>Number(1==e||e%10==1&&e%100!=11?0:1),18:e=>Number(0==e?0:1==e?1:2),19:e=>Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3),20:e=>Number(1==e?0:0==e||e%100>0&&e%100<20?1:2),21:e=>Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0),22:e=>Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)},ja=["v1","v2","v3"],Aa=["v4"],Ia={zero:0,one:1,two:2,few:3,many:4,other:5},Ma=class{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.languageUtils=e,this.options=t,this.logger=Sa.create("pluralResolver"),this.options.compatibilityJSON&&!Aa.includes(this.options.compatibilityJSON)||"undefined"!=typeof Intl&&Intl.PluralRules||(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=(()=>{const e={};return Da.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:Na[t.fc]}})}),e})(),this.pluralRulesCache={}}addRule(e,t){this.rules[e]=t}clearCache(){this.pluralRulesCache={}}getRule(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi()){const r=_a("dev"===e?"en":e),o=t.ordinal?"ordinal":"cardinal",i=JSON.stringify({cleanedCode:r,type:o});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];let s;try{s=new Intl.PluralRules(r,{type:o})}catch(n){if(!e.match(/-|_/))return;const r=this.languageUtils.getLanguagePartFromCode(e);s=this.getRule(r,t)}return this.pluralRulesCache[i]=s,s}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}needsPlural(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=this.getRule(e,t);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}getPluralFormsOfKey(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,n).map(e=>`${t}${e}`)}getSuffixes(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=this.getRule(e,t);return n?this.shouldUseIntlApi()?n.resolvedOptions().pluralCategories.sort((e,t)=>Ia[e]-Ia[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${e}`):n.numbers.map(n=>this.getSuffix(e,n,t)):[]}getSuffix(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=this.getRule(e,n);return r?this.shouldUseIntlApi()?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${r.select(t)}`:this.getSuffixRetroCompatible(r,t):(this.logger.warn(`no plural rule found for: ${e}`),"")}getSuffixRetroCompatible(e,t){const n=e.noAbs?e.plurals(t):e.plurals(Math.abs(t));let r=e.numbers[n];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===r?r="plural":1===r&&(r=""));const o=()=>this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString();return"v1"===this.options.compatibilityJSON?1===r?"":"number"==typeof r?`_plural_${r.toString()}`:o():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?o():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}shouldUseIntlApi(){return!ja.includes(this.options.compatibilityJSON)}},$a=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".",o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],i=((e,t,n)=>{const r=fa(e,n);return void 0!==r?r:fa(t,n)})(e,t,n);return!i&&o&&sa(n)&&(i=xa(e,n,r),void 0===i&&(i=xa(t,n,r))),i},Fa=e=>e.replace(/\$/g,"$$$$"),Ha=class{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=Sa.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||(e=>e),this.init(e)}init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});const{escape:t,escapeValue:n,useRawValueToEscape:r,prefix:o,prefixEscaped:i,suffix:s,suffixEscaped:a,formatSeparator:c,unescapeSuffix:l,unescapePrefix:u,nestingPrefix:d,nestingPrefixEscaped:h,nestingSuffix:p,nestingSuffixEscaped:f,nestingOptionsSeparator:g,maxReplaces:m,alwaysFormat:v}=e.interpolation;this.escape=void 0!==t?t:ya,this.escapeValue=void 0===n||n,this.useRawValueToEscape=void 0!==r&&r,this.prefix=o?ma(o):i||"{{",this.suffix=s?ma(s):a||"}}",this.formatSeparator=c||",",this.unescapePrefix=l?"":u||"-",this.unescapeSuffix=this.unescapePrefix?"":l||"",this.nestingPrefix=d?ma(d):h||ma("$t("),this.nestingSuffix=p?ma(p):f||ma(")"),this.nestingOptionsSeparator=g||",",this.maxReplaces=m||1e3,this.alwaysFormat=void 0!==v&&v,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(e,t)=>e&&e.source===t?(e.lastIndex=0,e):new RegExp(t,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(e,t,n,r){let o,i,s;const a=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=e=>{if(e.indexOf(this.formatSeparator)<0){const o=$a(t,a,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(o,void 0,n,{...r,...t,interpolationkey:e}):o}const o=e.split(this.formatSeparator),i=o.shift().trim(),s=o.join(this.formatSeparator).trim();return this.format($a(t,a,i,this.options.keySeparator,this.options.ignoreJSONStructure),s,n,{...r,...t,interpolationkey:i})};this.resetRegExp();const l=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,u=r&&r.interpolation&&void 0!==r.interpolation.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>Fa(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?Fa(this.escape(e)):Fa(e)}].forEach(t=>{for(s=0;o=t.regex.exec(e);){const n=o[1].trim();if(i=c(n),void 0===i)if("function"==typeof l){const t=l(e,o,r);i=sa(t)?t:""}else if(r&&Object.prototype.hasOwnProperty.call(r,n))i="";else{if(u){i=o[0];continue}this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`),i=""}else sa(i)||this.useRawValueToEscape||(i=ca(i));const a=t.safeValue(i);if(e=e.replace(o[0],a),u?(t.regex.lastIndex+=i.length,t.regex.lastIndex-=o[0].length):t.regex.lastIndex=0,s++,s>=this.maxReplaces)break}}),e}nest(e,t){let n,r,o,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const s=(e,t)=>{const n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;const r=e.split(new RegExp(`${n}[ ]*{`));let i=`{${r[1]}`;e=r[0],i=this.interpolate(i,o);const s=i.match(/'/g),a=i.match(/"/g);(s&&s.length%2==0&&!a||a.length%2!=0)&&(i=i.replace(/'/g,'"'));try{o=JSON.parse(i),t&&(o={...t,...o})}catch(cv){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,cv),`${e}${n}${i}`}return o.defaultValue&&o.defaultValue.indexOf(this.prefix)>-1&&delete o.defaultValue,e};for(;n=this.nestingRegexp.exec(e);){let a=[];o={...i},o=o.replace&&!sa(o.replace)?o.replace:o,o.applyPostProcessor=!1,delete o.defaultValue;let c=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){const e=n[1].split(this.formatSeparator).map(e=>e.trim());n[1]=e.shift(),a=e,c=!0}if(r=t(s.call(this,n[1].trim(),o),o),r&&n[0]===e&&!sa(r))return r;sa(r)||(r=ca(r)),r||(this.logger.warn(`missed to resolve ${n[1]} for nesting ${e}`),r=""),c&&(r=a.reduce((e,t)=>this.format(e,t,i.lng,{...i,interpolationkey:n[1].trim()}),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}},Ua=e=>{const t={};return(n,r,o)=>{let i=o;o&&o.interpolationkey&&o.formatParams&&o.formatParams[o.interpolationkey]&&o[o.interpolationkey]&&(i={...i,[o.interpolationkey]:void 0});const s=r+JSON.stringify(i);let a=t[s];return a||(a=e(_a(r),o),t[s]=a),a(n)}},qa=class{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=Sa.create("formatter"),this.options=e,this.formats={number:Ua((e,t)=>{const n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)}),currency:Ua((e,t)=>{const n=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>n.format(e)}),datetime:Ua((e,t)=>{const n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)}),relativetime:Ua((e,t)=>{const n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||"day")}),list:Ua((e,t)=>{const n=new Intl.ListFormat(e,{...t});return e=>n.format(e)})},this.init(e)}init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};this.formatSeparator=t.interpolation.formatSeparator||","}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=Ua(t)}format(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const o=t.split(this.formatSeparator);if(o.length>1&&o[0].indexOf("(")>1&&o[0].indexOf(")")<0&&o.find(e=>e.indexOf(")")>-1)){const e=o.findIndex(e=>e.indexOf(")")>-1);o[0]=[o[0],...o.splice(1,e)].join(this.formatSeparator)}return o.reduce((e,t)=>{const{formatName:o,formatOptions:i}=(e=>{let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const o=r[1].substring(0,r[1].length-1);"currency"===t&&o.indexOf(":")<0?n.currency||(n.currency=o.trim()):"relativetime"===t&&o.indexOf(":")<0?n.range||(n.range=o.trim()):o.split(";").forEach(e=>{if(e){const[t,...r]=e.split(":"),o=r.join(":").trim().replace(/^'+|'+$/g,""),i=t.trim();n[i]||(n[i]=o),"false"===o&&(n[i]=!1),"true"===o&&(n[i]=!0),isNaN(o)||(n[i]=parseInt(o,10))}})}return{formatName:t,formatOptions:n}})(t);if(this.formats[o]){let t=e;try{const s=r&&r.formatParams&&r.formatParams[r.interpolationkey]||{},a=s.locale||s.lng||r.locale||r.lng||n;t=this.formats[o](e,a,{...i,...r,...s})}catch(s){this.logger.warn(s)}return t}return this.logger.warn(`there was no format function for ${o}`),e},e)}},Ba=class extends ka{constructor(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=Sa.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(n,r.backend,r)}queueLoad(e,t,n,r){const o={},i={},s={},a={};return e.forEach(e=>{let r=!0;t.forEach(t=>{const s=`${e}|${t}`;!n.reload&&this.store.hasResourceBundle(e,t)?this.state[s]=2:this.state[s]<0||(1===this.state[s]?void 0===i[s]&&(i[s]=!0):(this.state[s]=1,r=!1,void 0===i[s]&&(i[s]=!0),void 0===o[s]&&(o[s]=!0),void 0===a[t]&&(a[t]=!0)))}),r||(s[e]=!0)}),(Object.keys(o).length||Object.keys(i).length)&&this.queue.push({pending:i,pendingCount:Object.keys(i).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(o),pending:Object.keys(i),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(a)}}loaded(e,t,n){const r=e.split("|"),o=r[0],i=r[1];t&&this.emit("failedLoading",o,i,t),!t&&n&&this.store.addResourceBundle(o,i,n,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&n&&(this.state[e]=0);const s={};this.queue.forEach(n=>{((e,t,n)=>{const{obj:r,k:o}=ha(e,t,Object);r[o]=r[o]||[],r[o].push(n)})(n.loaded,[o],i),((e,t)=>{void 0!==e.pending[t]&&(delete e.pending[t],e.pendingCount--)})(n,e),t&&n.errors.push(t),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach(e=>{s[e]||(s[e]={});const t=n.loaded[e];t.length&&t.forEach(t=>{void 0===s[e][t]&&(s[e][t]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit("loaded",s),this.queue=this.queue.filter(e=>!e.done)}read(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,i=arguments.length>5?arguments[5]:void 0;if(!e.length)return i(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:e,ns:t,fcName:n,tried:r,wait:o,callback:i});this.readingCalls++;const s=(s,a)=>{if(this.readingCalls--,this.waitingReads.length>0){const e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}s&&a&&r<this.maxRetries?setTimeout(()=>{this.read.call(this,e,t,n,r+1,2*o,i)},o):i(s,a)},a=this.backend[n].bind(this.backend);if(2!==a.length)return a(e,t,s);try{const n=a(e,t);n&&"function"==typeof n.then?n.then(e=>s(null,e)).catch(s):s(null,n)}catch(c){s(c)}}prepareLoading(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();sa(e)&&(e=this.languageUtils.toResolveHierarchy(e)),sa(t)&&(t=[t]);const o=this.queueLoad(e,t,n,r);if(!o.toLoad.length)return o.pending.length||r(),null;o.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const n=e.split("|"),r=n[0],o=n[1];this.read(r,o,"read",void 0,void 0,(n,i)=>{n&&this.logger.warn(`${t}loading namespace ${o} for language ${r} failed`,n),!n&&i&&this.logger.log(`${t}loaded namespace ${o} for language ${r}`,i),this.loaded(e,n,i)})}saveMissing(e,t,n,r,o){let i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t))this.logger.warn(`did not save key "${n}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");else if(null!=n&&""!==n){if(this.backend&&this.backend.create){const c={...i,isUpdate:o},l=this.backend.create.bind(this.backend);if(l.length<6)try{let o;o=5===l.length?l(e,t,n,r,c):l(e,t,n,r),o&&"function"==typeof o.then?o.then(e=>s(null,e)).catch(s):s(null,o)}catch(a){s(a)}else l(e,t,n,r,s,c)}e&&e[0]&&this.store.addResource(e[0],t,n,r)}}},za=()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if("object"==typeof e[1]&&(t=e[1]),sa(e[1])&&(t.defaultValue=e[1]),sa(e[2])&&(t.tDescription=e[2]),"object"==typeof e[2]||"object"==typeof e[3]){const n=e[3]||e[2];Object.keys(n).forEach(e=>{t[e]=n[e]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),Va=e=>(sa(e.ns)&&(e.ns=[e.ns]),sa(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),sa(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),Ka=()=>{},Wa=class e extends ka{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;var n;if(super(),this.options=Va(e),this.services={},this.logger=Sa,this.modules={external:[]},n=this,Object.getOwnPropertyNames(Object.getPrototypeOf(n)).forEach(e=>{"function"==typeof n[e]&&(n[e]=n[e].bind(n))}),t&&!this.isInitialized&&!e.isClone){if(!this.options.initImmediate)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(){var e=this;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,"function"==typeof t&&(n=t,t={}),!t.defaultNS&&!1!==t.defaultNS&&t.ns&&(sa(t.ns)?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const r=za();this.options={...r,...this.options,...Va(t)},"v1"!==this.options.compatibilityAPI&&(this.options.interpolation={...r.interpolation,...this.options.interpolation}),void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator);const o=e=>e?"function"==typeof e?new e:e:null;if(!this.options.isClone){let t;this.modules.logger?Sa.init(o(this.modules.logger),this.options):Sa.init(null,this.options),this.modules.formatter?t=this.modules.formatter:"undefined"!=typeof Intl&&(t=qa);const n=new Ta(this.options);this.store=new Oa(this.options.resources,this.options);const i=this.services;i.logger=Sa,i.resourceStore=this.store,i.languageUtils=n,i.pluralResolver=new Ma(n,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),!t||this.options.interpolation.format&&this.options.interpolation.format!==r.interpolation.format||(i.formatter=o(t),i.formatter.init(i,this.options),this.options.interpolation.format=i.formatter.format.bind(i.formatter)),i.interpolator=new Ha(this.options),i.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},i.backendConnector=new Ba(o(this.modules.backend),i.resourceStore,i,this.options),i.backendConnector.on("*",function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit(t,...r)}),this.modules.languageDetector&&(i.languageDetector=o(this.modules.languageDetector),i.languageDetector.init&&i.languageDetector.init(i,this.options.detection,this.options)),this.modules.i18nFormat&&(i.i18nFormat=o(this.modules.i18nFormat),i.i18nFormat.init&&i.i18nFormat.init(this)),this.translator=new Ra(this.services,this.options),this.translator.on("*",function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit(t,...r)}),this.modules.external.forEach(e=>{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,n||(n=Ka),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&"dev"!==e[0]&&(this.options.lng=e[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(t=>{this[t]=function(){return e.store[t](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(t=>{this[t]=function(){return e.store[t](...arguments),e}});const i=aa(),s=()=>{const e=(e,t)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),i.resolve(t),n(e,t)};if(this.languages&&"v1"!==this.options.compatibilityAPI&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initImmediate?s():setTimeout(s,0),i}loadResources(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ka;const n=sa(e)?e:this.language;if("function"==typeof e&&(t=e),!this.options.resources||this.options.partialBundledLanguages){if(n&&"cimode"===n.toLowerCase()&&(!this.options.preload||0===this.options.preload.length))return t();const e=[],r=t=>{t&&"cimode"!==t&&this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{"cimode"!==t&&e.indexOf(t)<0&&e.push(t)})};n?r(n):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e=>r(e)),this.options.preload&&this.options.preload.forEach(e=>r(e)),this.services.backendConnector.load(e,this.options.ns,e=>{e||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),t(e)})}else t(null)}reloadResources(e,t,n){const r=aa();return"function"==typeof e&&(n=e,e=void 0),"function"==typeof t&&(n=t,t=void 0),e||(e=this.languages),t||(t=this.options.ns),n||(n=Ka),this.services.backendConnector.reload(e,t,e=>{r.resolve(),n(e)}),r}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&Ca.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}setResolvedLanguage(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1))for(let t=0;t<this.languages.length;t++){const e=this.languages[t];if(!(["cimode","dev"].indexOf(e)>-1)&&this.store.hasLanguageSomeTranslations(e)){this.resolvedLanguage=e;break}}}changeLanguage(e,t){var n=this;this.isLanguageChangingTo=e;const r=aa();this.emit("languageChanging",e);const o=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},i=(e,i)=>{i?(o(i),this.translator.changeLanguage(i),this.isLanguageChangingTo=void 0,this.emit("languageChanged",i),this.logger.log("languageChanged",i)):this.isLanguageChangingTo=void 0,r.resolve(function(){return n.t(...arguments)}),t&&t(e,function(){return n.t(...arguments)})},s=t=>{e||t||!this.services.languageDetector||(t=[]);const n=sa(t)?t:this.services.languageUtils.getBestMatchFromCodes(t);n&&(this.language||o(n),this.translator.language||this.translator.changeLanguage(n),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(n)),this.loadResources(n,e=>{i(e,n)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(s):this.services.languageDetector.detect(s):s(e):s(this.services.languageDetector.detect()),r}getFixedT(e,t,n){var r=this;const o=function(e,t){let i;if("object"!=typeof t){for(var s=arguments.length,a=new Array(s>2?s-2:0),c=2;c<s;c++)a[c-2]=arguments[c];i=r.options.overloadTranslationOptionHandler([e,t].concat(a))}else i={...t};i.lng=i.lng||o.lng,i.lngs=i.lngs||o.lngs,i.ns=i.ns||o.ns,""!==i.keyPrefix&&(i.keyPrefix=i.keyPrefix||n||o.keyPrefix);const l=r.options.keySeparator||".";let u;return u=i.keyPrefix&&Array.isArray(e)?e.map(e=>`${i.keyPrefix}${l}${e}`):i.keyPrefix?`${i.keyPrefix}${l}${e}`:e,r.t(u,i)};return sa(e)?o.lng=e:o.lngs=e,o.ns=t,o.keyPrefix=n,o}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const n=t.lng||this.resolvedLanguage||this.languages[0],r=!!this.options&&this.options.fallbackLng,o=this.languages[this.languages.length-1];if("cimode"===n.toLowerCase())return!0;const i=(e,t)=>{const n=this.services.backendConnector.state[`${e}|${t}`];return-1===n||0===n||2===n};if(t.precheck){const e=t.precheck(this,i);if(void 0!==e)return e}return!!this.hasResourceBundle(n,e)||(!(this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages))||!(!i(n,e)||r&&!i(o,e)))}loadNamespaces(e,t){const n=aa();return this.options.ns?(sa(e)&&(e=[e]),e.forEach(e=>{this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){const n=aa();sa(e)&&(e=[e]);const r=this.options.preload||[],o=e.filter(e=>r.indexOf(e)<0&&this.services.languageUtils.isSupportedCode(e));return o.length?(this.options.preload=r.concat(o),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!e)return"rtl";const t=this.services&&this.services.languageUtils||new Ta(za());return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(t.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){return new e(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1?arguments[1]:void 0)}cloneInstance(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ka;const r=t.forkResourceStore;r&&delete t.forkResourceStore;const o={...this.options,...t,isClone:!0},i=new e(o);return void 0===t.debug&&void 0===t.prefix||(i.logger=i.logger.clone(t)),["store","services","language"].forEach(e=>{i[e]=this[e]}),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},r&&(i.store=new Oa(this.store.data,o),i.services.resourceStore=i.store),i.translator=new Ra(i.services,o),i.translator.on("*",function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];i.emit(e,...n)}),i.init(o,n),i.translator.options=o,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}},Ga=Wa.createInstance();Ga.createInstance=Wa.createInstance;Ga.createInstance,Ga.dir,Ga.init,Ga.loadResources,Ga.reloadResources,Ga.use,Ga.changeLanguage,Ga.getFixedT,Ga.t,Ga.exists,Ga.setDefaultNamespace,Ga.hasLoadedNamespace,Ga.loadNamespaces,Ga.loadLanguages;var Ja,Ya=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,Qa={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},Xa=e=>Qa[e],Za={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace(Ya,Xa)},ec=()=>Za,tc=()=>Ja,nc={type:"3rdParty",init(e){((e={})=>{Za={...Za,...e}})(e.options.react),(e=>{Ja=e})(e)}};Ga.isInitialized||Ga.use(nc).init({debug:!1,fallbackLng:"en",returnEmptyString:!1,supportedLngs:["en","fr"],resources:{en:{common:{attribution:"Powered by",time:{minute_one:"Minute",minute_other:"Minutes",hour_one:"Hour",hour_other:"Hours"},distance:{meter:"m",kilometer:"km",yard:"yd",mile:"mi"},language:{english:"English",french:"French",spanish:"Spanish"},map:{marker:{schoolAttributes:{levels:"Level",grades:"Grades",languages:"Languages",types:"Type",board:"Board",programs:"Programs",categories:"Categories",rating:"School rating"},schoolCta:"Link to school",district:"District",categories:{advancedPlacement:"advanced placement",charter:"charter",magnet:"magnet"}},cluster:{poiCount_one:"{{count}} Location",poiCount_other:"{{count}} Locations"}},scores:{cafes:{title:"Cafes",description:"A measure of the quantity of nearby coffee shops."},car_friendly:{title:"Car friendly",description:"Represents how well traffic flows, and how easy it is to park."},cycling_friendly:{title:"Cycling friendly",description:"Represents how suitable the area is for bicycle commuting or recreational cycling, considering nearby bike paths and lanes, the percentage of cycling commuters, the flatness of the terrain, and the presence of bike-sharing systems."},daycares:{title:"Daycares",description:"Represents the distance to the nearest daycare."},greenery:{title:"Greenery",description:"Quantity of nearby green spaces and tree canopy coverage."},groceries:{title:"Groceries",description:"A measure of the quantity of nearby grocery stores."},high_schools:{title:"High schools",description:"Represents the distance to nearest high school."},historic:{title:"Historic",description:"A measure of the quantity and size of heritage buildings, and the average building age in the area."},nightlife:{title:"Nightlife",description:"Represents the quantity of bars nearby."},parks:{title:"Parks",description:"A measure of the quantity and size of nearby parks."},pedestrian_friendly:{title:"Pedestrian friendly",description:"A measure of how many basic services can be reached on foot and how pleasant it is to walk to them."},primary_schools:{title:"Primary schools",description:"A measure of the distance to the nearest elementary school."},quiet:{title:"Quiet",description:"A measure of the average levels of noise nearby."},restaurants:{title:"Restaurants",description:"Represents the quantity of restaurants nearby."},shopping:{title:"Shopping",description:"A measure of the quantity of fashion and department stores nearby."},transit_friendly:{title:"Transit friendly",description:"A measure of the frequency and level of public transit service."},vibrant:{title:"Vibrancy",description:"Represents the level of street activity nearby."},wellness:{title:"Wellness",description:"Represents how conducive a location is to individuals' well-being."}},pois:{airports:"Airports",alcohol:"Alcohol",art_culture_science:"Art, culture, science",banks:"Banks",bus_stops:"Bus",cafes:"Coffee shops",car_fueling_stations:"Gas stations",casino:"Casino",clothing:"Clothing",common_needs:"Common needs",conference_centers:"Conference centers",convenience_stores:"Convenience stores",daycares:"Daycares",department_stores:"Department stores",entertainment:"Entertainment",fitness:"Fitness",groceries:"Groceries",groceries_specialized:"Specialty",health_care:"Health care",home_improvement:"Home improvement",hospitals:"Hospitals",libraries:"Libraries",nightlife:"Nightlife",non_food_shops:"Shopping",parks:"Parks",personal_care:"Personal care",pet_care:"Pet care",pharmacies:"Pharmacies",rapid_transit_stations:"Rapid transit",restaurants:"Restaurants",retail:"Retail",shops_and_services:"Shops and services",sport_facilities:"Sport facilities",train_stations:"Train",high_schools:"High schools",primary_schools:"Primary schools",healthy_restaurants:"Healthy restaurants",shopping:"Shopping"},valueDrivers:{bus_service_access:"Bus services",shops_and_services_access:"Shops and Services",coffee_shop_access:"Coffee shops",clothing_and_accessory_store_access:"Clothing stores",common_needs_access:"Common necessities",department_store_access:"Department stores",entertainment_venue_access:"Entertainment venues",fitness_establishment_access:"Fitness",nightlife_access:"Nightlife",pedestrian_oriented_street_access:"Walkable streets",rapid_transit_service_access:"Rapid transit service",restaurant_access:"Restaurants",specialty_grocery_store_access:"Specialty groceries",sports_facility_access:"Sport facilities",train_service_access:"Train stations",nearest_highway_proximity:"Highway access",nearest_pharmacy_proximity:"Nearby pharmacies",nearest_bicycle_share_station_proximity:"Nearby bikeshare stations",bicycle_path_access:"Bike path access",bicycle_share_station_access:"Bike share",nearest_park_area:"Nearby large park",bicycle_infrastructure_quality:"Bike infrastructure",high_schools:"High schools",primary_schools:"Elementary schools",quiet:"Quiet",daycares:"Daycares",parks:"Parks"}},leadCapture:{header:{title:"Explore {{neighborhood}}",description:"Learn about schools, prices, community vibe, and more before you decide to move.",titleNoNeighborhood:"the neighborhood"},cards:{neighborhoodIntel:{title:"Lifestyle Report",description:""},neighborhoodContext:{title:"Neighborhood Context",description:"Discover what day to day life looks like in the area."},locationInsights:{title:"Location Insights",description:"See how local amenities and features compare to the city average."},climateRisk:{title:"Climate Risk",description:"Understand how climate risks may affect lifestyle and long-term value."},communityPortrait:{title:"Community Portrait",description:"Explore demographics, housing types, and overall community vibe."},localMarketOverview:{title:"Local Market Overview",description:""},marketTrendsReport:{title:"Market Report",description:""},neighborhoodMarketTrends:{title:"Neighborhood Market Trends",description:""},dailyUpdates:{title:"Daily Updates",description:""},fiveYearHistoricalView:{title:"5-Year Historical View",description:""},easyToReadFormat:{title:"Easy-to-Read Format",description:""},actionableInsights:{title:"Actionable Insights",description:""}},downloadCard:{title:"Get your neighborhood report",description:"Uncover instant insights on local lifestyle, demographics, and market trends.",cta:"Get your report",ctaCAN:"Get your lifestyle report",select:{default:"Select report type",niReport:"Lifestyle Report",marketReport:"Market Report",both:"Both Reports"}},contactInfo:{back:"Back",title:"Almost there!",description:"Enter your details to get instant access to your neighborhood report. It’s fast, free, and full of insights.",submit:"Submit",confirmationMessage:"All set! We’ve sent your report to {{email}}",instructions:"Please check your inbox. If you don’t see it within a few minutes, check your spam or junk folder.",resendInstructions:"Still can’t find it? <resendReport>Click here to resend.</resendReport>",consentTexts:{topText:"I agree that Local Logic may share my contact information with real estate professionals so they can contact me regarding my home search.",bottomText:"This consent is required to use this tool. See our <LinkToPrivacyPolicy>Privacy Policy</LinkToPrivacyPolicy>.",CANTopText:"I agree that Local Logic may share my contact information with the operator of this website so they can contact me regarding my home search.",CANBottomText:"This consent is required to use this tool. You can withdraw your consent at any time. See our <LinkToPrivacyPolicy>Privacy Policy</LinkToPrivacyPolicy>."}},initialValues:{firstName:"First Name *",lastName:"Last Name *",email:"Email Address *",phone:"Phone Number"},errors:{firstName:"First Name is required",lastName:"Last Name is required",email:"Email Address is required",notValidEmail:"Email Address is not valid",privacyCheckbox:"You must agree to the privacy policy",phone:"Phone is not a valid number"},toastAlerts:{error:{title:"Something went wrong",description:"We couldn’t complete your request. Please try again in a moment. If the issue continues, ",action:"contact support."}}},localContent:{sidebar:{header:{title:"Categories",backAction:"Back to menu",toggle:{ariaLabel:"Toggle sidebar",ariaLabel_open:"Open sidebar",ariaLabel_close:"Close sidebar"}}},categoriesToggle:{toggleLabel:"Categories",backAction:"Back"},categories:{transport:"Transport",amenities:"Amenities",character:"Character",nature:"Nature",education:"Education",health:"Health"},scoreComparison:{text:"Comparable to the {{name}} average of {{value}}",text_higher:"Higher than the {{name}} average of {{value}}",text_lower:"Lower than the {{name}} average of {{value}}"},poiSearchRadius:"Showing POIs in a {{radius}} {{unit}} radius",commute:{placeholder:"Search map...",cta:"Calculate commute",cta_long:"Calculate commute",cta_short:"Calculate",viewRoute:"View route",travelTypes:{walking:"Walking",driving:"Driving",cycling:"Cycling"},results:{noRoute:"No route available.",trySuggestion:"Try another query.",fastestRoute:"Fastest route"}}},localDemographics:{title:"Local Demographics",note:"Displaying demographics statistics for area {{value}} {{unit}} around selected location.",noData:"No demographic information is available for this specific location.",data:{income:{title:"Income",graphs:{averageIncome:{title:"Average Income",title_USA:"Income",types:{avgHouseholdIncome:"Family",avgHouseholdIncome_USA:"Household (median)",avgIndividualIncome:"Individual",avgIndividualIncome_USA:"Individual (per capita)"}},employment:{title:"Employment"},incomeBrackets:{title:"Income Brackets"}}},population:{title:"Population",graphs:{totalPopulation:{title:"Total Population"},populationByAgeGroup:{title:"Population By Age Group"}}},housing:{title:"Housing",graphs:{homeOwnershipType:{title:"Owners vs Renters"},typeOfHousing:{title:"Type of Housing"}}},household:{title:"Household",graphs:{householdComposition:{title:"Household Composition"}}},education:{title:"Education",graphs:{educationLevel:{title:"Highest Level Of Education Achieved"}}},commute:{title:"Commute",graphs:{commuteMode:{title:"Commute Mode"}}},languages:{title:"Languages",graphs:{spokenLanguages:{title:"Spoken Official Languages"},motherTongue:{title:"Mother Tongue"}}}}},neighborhoodCharacteristics:{title:"Characteristics",noData:"No information is available for this neighborhood yet. Stay tuned for updates as new neighborhoods are added.",sections:{transport:{title:"Transportation"},services:{title:"Services"},character:{title:"Character"}}},neighborhoodDemographics:{title:"Demographics",note:"Displaying demographics statistics for the current location.",noData:"No demographic information is available for this specific location.",data:{income:{title:"Income",graphs:{averageIncome:{title:"Average Income",types:{avg_household_income:"Family",avg_individual_income:"Individual"}},employment:{title:"Employment"},incomeBrackets:{title:"Income Brackets"}}},population:{title:"Population",graphs:{totalPopulation:{title:"Total Population"},populationByAgeGroup:{title:"Population By Age Group"}}},housing:{title:"Housing",graphs:{homeOwnershipType:{title:"Owners vs Renters"},typeOfHousing:{title:"Type of Housing"}}},household:{title:"Household",graphs:{householdComposition:{title:"Household Composition"}}},education:{title:"Education",graphs:{educationLevel:{title:"Highest Level Of Education Achieved"}}},commute:{title:"Commute",graphs:{commuteMode:{title:"Commute Mode"}}},languages:{title:"Languages",graphs:{spokenLanguages:{title:"Spoken Official Languages"},motherTongue:{title:"Mother Tongue"}}}}},neighborhoodFeatured:{title:"Featured Neighborhoods",exploreMoreNeighborhoods:"EXPLORE MORE NEIGHBORHOODS",noData:"You haven't added any featured and favorite neighborhoods to your list yet. Head over to the <bold><LinkToHub>Featured Neighborhoods</LinkToHub></bold> section to select them."},neighborhoodShowcase:{title:"Neighborhood Showcase",header:{title:"Search Neighborhoods",description:"Explore any neighborhood to find the location that’s right for you",search:{placeholder:"Search all neighborhoods",results:{all:"All neighborhoods",featured:"Featured neighborhoods"}}},noData:"You haven't added any neighborhoods to your list yet. Head over to the <bold><LinkToHub>Neighborhood Showcase</LinkToHub></bold> section to select them."},neighborhoodHero:{summaryTitle:"About the neighborhood",summaryTitle_area:"About the area"},neighborhoodHighlights:{title:"Highlights",noData:"Discover what this neighborhood has to offer in terms of transportation, services, and character.",highlight:{title:"This area is great for"}},neighborhoodMap:{filters:{navigation:{scrollLeftAriaLabel:"Scroll left",scrollRightAriaLabel:"Scroll right",allFiltersAriaLabel:"View all filters"},radius:{title:"Radius:",value:"{{value}} {{unit}}"},popup:{title:"Filters",description:"Please select one option",cta:{reset:"Reset All",apply:"Apply Filter"}}}},neighborhoodMatch:{title:"Similar neighborhoods",title_32:"Similar zip codes",title_37:"Similar counties",description:"Discover similar locations to this neighborhood and see how they compare in terms of characteristics and amenities.",descriptionWithNeighborhood:"Discover similar locations to {{neighborhoodName}} and see how they compare in terms of characteristics and amenities.",noData:"Similar neighborhoods are not available for this location.",tags:{negative:"Less affordable",neutral:"Comparable",positive:"More affordable"},pagination:{previous:"Show less",next:"Show more"}},neighborhoodPropertyValueDrivers:{title:"Property value drivers",description:"These characteristics most positively impact the values of homes in this neighborhood.",noData:"Discover characteristics that influence home prices; this list details the factors that positively affect property values in a {{locationType}}.",locationType:{neighborhood:"neighborhood",location:"location"},valueDrivers:{bus_service_access:{tag:{high:"Great access"},qualifier:{high:"Having bus services enhances connectivity and accessibility, making it more attractive to commuters and increasing the overall desirability of the {{locationType}}."}},shops_and_services_access:{tag:{high:"Many nearby"},qualifier:{high:"Having plenty of nearby shops and services that are easily accessible can increase the overall desirability of a {{locationType}}."}},coffee_shop_access:{tag:{high:"Many nearby"},qualifier:{high:"Nearby and easily accessible coffee shops can create a welcoming environment and a more desirable {{locationType}}."}},clothing_and_accessory_store_access:{tag:{high:"Many nearby"},qualifier:{high:"Many nearby clothing and accessory stores which are easily accessible can increase the overall desirability of a {{locationType}}."}},common_needs_access:{tag:{high:"Great access"},qualifier:{high:"Easy access to basic amenities such as hardware stores, post offices, and convenience stores can improve the accessibility of services in a {{locationType}}."}},department_store_access:{tag:{high:"Many nearby"},qualifier:{high:"Nearby department stores that are easily accessible can increase the overall desirability of a {{locationType}}."}},entertainment_venue_access:{tag:{high:"Many nearby"},qualifier:{high:"Easily accessible entertainment venues can indicate a more vibrant and desirable {{locationType}}."}},fitness_establishment_access:{tag:{high:"Many nearby"},qualifier:{high:"Easily accessible fitness establishments such as gyms, yoga studios, and pools can create a more desirable {{locationType}}."}},nightlife_access:{tag:{high:"Great access"},qualifier:{high:"Easy access to local centers of nightlife, such as bars, pubs, and comedy clubs, can indicate a more vibrant {{locationType}}."}},pedestrian_oriented_street_access:{tag:{high:"Great access"},qualifier:{high:"Easily accessible commercial streets designed to be pedestrian-friendly can create a more desirable {{locationType}}."}},rapid_transit_service_access:{tag:{high:"Great access"},qualifier:{high:"Nearby rapid transit stations with frequent service can indicate a more accessible {{locationType}}."}},restaurant_access:{tag:{high:"Many nearby"},qualifier:{high:"Easily accessible and nearby restaurants can create a more desirable {{locationType}}."}},specialty_grocery_store_access:{tag:{high:"Many nearby"},qualifier:{high:"Nearby specialty grocery stores can indicate a more desirable {{locationType}}."}},sports_facility_access:{tag:{high:"Many nearby"},qualifier:{high:"Nearby sports facilities such as soccer fields, running tracks, and ice rinks can create a more desirable {{locationType}}."}},train_service_access:{tag:{high:"Great access"},qualifier:{high:"Nearby train stations with frequent service can indicate a more accessible {{locationType}}."}},nearest_highway_proximity:{tag:{high:"Great access",low:"Low density"},qualifier:{high:"Easy access to major highways can create a more accessible {{locationType}}.",low:"Few major highways nearby can create a quieter and more desirable {{locationType}}."}},nearest_pharmacy_proximity:{tag:{high:"Available close"},qualifier:{high:"Easy access to a nearby pharmacy can indicate a more accessible {{locationType}}."}},nearest_bicycle_share_station_proximity:{tag:{high:"Great access"},qualifier:{high:"Nearby bicycle-sharing stations can lead to a more accessible {{locationType}}."}},bicycle_path_access:{tag:{high:"Great access"},qualifier:{high:"Easily accessible bicycle paths can create a more accessible and desirable {{locationType}}."}},bicycle_share_station_access:{tag:{high:"Great access"},qualifier:{high:"Nearby bicycle-sharing stations can lead to a more accessible {{locationType}}."}},nearest_park_area:{tag:{high:"Available close"},qualifier:{high:"Large nearby parks can create a more desirable {{locationType}}."}},bicycle_infrastructure_quality:{tag:{high:"Great access"},qualifier:{high:"High-quality bicycle infrastructure can create a more accessible {{locationType}}."}},high_schools:{tag:{high:"Great access"},qualifier:{high:"Easy access to nearby schools can create a more desirable {{locationType}}."}},primary_schools:{tag:{high:"Great access"},qualifier:{high:"Easy access to nearby schools can create a more desirable {{locationType}}."}},quiet:{tag:{high:"Great access"},qualifier:{high:"Few sources of nearby noise can create a more desirable {{locationType}}."}},daycares:{tag:{high:"Great access"},qualifier:{high:"Easy access to nearby childcare can create a more desirable {{locationType}}."}},parks:{tag:{high:"Great access"},qualifier:{high:"Plenty of nearby parks can create a more desirable {{locationType}} environment."}}}},neighborhoodMarketTrends:{title:"Market trends",noData:"Market trends are not available for this neighborhood at this time.",disclaimer:{header:"Market trend information is based on home transaction data for the previous 12 months and current listing data.",footer:"Displaying trends for the selected neighborhood. Market Trend information is updated daily.",footer_large:"Displaying trends for the selected location. Market Trend information is updated daily."},tabs:{currentActivity:{title:"Current activity"},recentTrends:{title:"Recent trends"},marketConditions:{title:"Market conditions"}},marketIndicator:{increase:"increase",decrease:"decrease",noChangeDisclaimer:"There has been no change in the {{fieldTitle}} compared to the last 30 days."},valueComparison:{lower:"lower",equal:"Equal",higher:"higher"},graphs:{activeListings:{title:"Number of active listings",yAxisTitle:"Active listings"},homesSold:{title:"Homes sold",disclaimer:"The number of residential homes sold over the past 12 months.",changeDisclaimer:"The percent change in the number of homes sold over the previous 12 months."},housingMarketConditions:{title:"Housing market conditions",subtitle:"An indication of market conditions over time.",marketTypes:{buyer:"Buyer's market",seller:"Seller's market",neutral:"Neutral market"}},marketType:{title:"Buyer/Seller market",disclaimer:"Buyer/Seller market indicator is based on the ratio of recent homes sold to new listings.",marketTypes:{buyer:"Buyer's market",seller:"Seller's market",neutral:"Neutral market"}},medianAskingPrice:{title:"Median asking price",disclaimer:"The median asking price of residential homes over the past 30 days.",changeDisclaimer:"The percent change in the median asking price over the previous 30 days."},medianConstructionYear:{title:"The median construction year of homes sold in the past 12 months is "},medianDaysOnMarket:{title:"Median days on market",disclaimer:"The median days on market of residential homes over the past 30 days.",changeDisclaimer:"The percent change in the median days on market over the previous 30 days.",yAxisTitle:"Days on market"},medianSalePrice:{title:"Median sales price",disclaimer:"The median sales price of residential properties over the past 12 months.",changeDisclaimer:"The percent change in the median sales price over the previous 12 months."},medianSalePricePerSqft:{title:"Median sales price per square foot",disclaimer:"The median sales price per square foot of residential properties over the past 12 months.",changeDisclaimer:"The percent change in the median sales price per square foot over the previous 12 months."},medianSaleVsAskingPrice:{title:"Median sales vs. asking price of sold homes",disclaimer:"The median ratio of sold price to asking price of residential homes over the past 30 days.",changeDisclaimer:"The percent change in the ratio of sales price to asking price of residential homes over the last 30 days."}}},neighborhoodSchools:{title:"Nearby schools",noData:"There are no available schools nearby.",noFilteredData:"There are no nearby schools that match your current filters.",english:"English",french:"French",board:"School Board or District",headers:{name:"Name",type:"Type",languages:"Languages",levels:"Levels",category:"Category",address:"Address",typesFilter:"All types",levelsFilter:"All levels"},categories:{advancedPlacement:"Advanced Placement",charter:"Charter",magnet:"Magnet"},dataDisclaimer:"Schools are selected for display based on their proximity to the location. Please contact the schools directly to verify attendance zones."}},fr:{common:{attribution:"Propulsé par",time:{minute_one:"Minute",minute_other:"Minutes",hour_one:"Heure",hour_other:"Heures"},distance:{meter:"m",kilometer:"km",yard:"vg",mile:"mil"},language:{english:"Anglais",french:"Français",spanish:"Espagnol"},map:{marker:{schoolAttributes:{levels:"Niveau",grades:"Notes",languages:"Langues",types:"Type",board:"Commission",programs:"Programmes",categories:"Catégories",rating:"Note des écoles"},schoolCta:"Lien vers l'école",district:"Commission",categories:{advancedPlacement:"placement avancé",charter:"à charte",magnet:"à vocation particulière"}},cluster:{poiCount_one:"{{count}} Lieu",poiCount_other:"{{count}} Lieux"}},scores:{cafes:{title:"Cafés",description:"Une mesure de la quantité et de la diversité des cafés à proximité."},car_friendly:{title:"Adapté aux voitures",description:"Représente la fluidité de la circulation et la facilité de stationnement."},cycling_friendly:{title:"Adapté aux cyclistes",description:"Représente la qualité de l'aménagement du réseau cyclable autant pour les déplacement que pour le cyclisme récréatif, considérant les pistes et bande cyclables à proximité, le pourcentage d'habitants qui se déplacent à vélo, le dénivelé du terrain ainsi que la présence de vélos en libre-service."},daycares:{title:"Garderies",description:"Représente la distance jusqu'à la garderie la plus proche."},greenery:{title:"Verdure",description:"Quantité d'espaces verts à proximité et couverture de la canopée des arbres."},groceries:{title:"Épiceries",description:"Une mesure de la quantité d'épiceries à proximité."},high_schools:{title:"Écoles secondaires",description:"Représente la distance jusqu'à l'école secondaire la plus proche."},historic:{title:"Historique",description:"Une mesure de la quantité et de la taille des bâtiments patrimoniaux, et de l'âge moyen des bâtiments dans la région."},nightlife:{title:"Vie nocturne",description:"Représente la quantité et la diversité des bars à proximité."},parks:{title:"Parcs",description:"Une mesure de la quantité et de la taille des parcs à proximité."},pedestrian_friendly:{title:"Adapté aux piétons",description:"Une mesure de la proximité des services de base et du niveau de convivialité d'y aller à pied."},primary_schools:{title:"Écoles primaires",description:"Une mesure de la distance jusqu'à l'école primaire la plus proche."},quiet:{title:"Silencieux",description:"Une mesure des niveaux moyens de bruit à proximité."},restaurants:{title:"Restaurants",description:"Représente la quantité et la diversité des restaurants à proximité."},shopping:{title:"Magasins",description:"Une mesure de la quantité et de la diversité de magasins de mode et de grands magasins à proximité."},transit_friendly:{title:"Transport public",description:"Une mesure de la fréquence et du niveau de service de transport en commun."},vibrant:{title:"Dynamisme",description:"Représente le niveau d'activité de la rue à proximité."},wellness:{title:"Bien-être",description:"Représente à quel point un emplacement favorise le bien-être des individus."}},pois:{airports:"Aéroports",alcohol:"Alcool",art_culture_science:"Art, culture, science",banks:"Banques",bus_stops:"Autobus",cafes:"Cafés",car_fueling_stations:"Stations-service",casino:"Casino",clothing:"Vêtements",common_needs:"Besoins quotidiens",conference_centers:"Salles de conférence",convenience_stores:"Dépanneurs",daycares:"Garderies",department_stores:"Grands magasins",entertainment:"Divertissement",fitness:"Entraînement physique",groceries:"Épiceries",groceries_specialized:"Spécialisées",health_care:"Soins de santé",home_improvement:"Magasin de rénovation",hospitals:"Hôpitaux",libraries:"Librairies",nightlife:"Vie nocturne",non_food_shops:"Magasinage",parks:"Parcs",personal_care:"Soins personnels",pet_care:"Soins pour animaux",pharmacies:"Pharmacies",rapid_transit_stations:"Métro",restaurants:"Restaurants",retail:"Magasins de détail",shops_and_services:"Magasins et services",sport_facilities:"Installations sportives",train_stations:"Train",high_schools:"Écoles secondaires",primary_schools:"Écoles primaires",healthy_restaurants:"Restaurants sains",shopping:"Magasinage"},valueDrivers:{bus_service_access:"Services d'autobus",shops_and_services_access:"Magasins et services",coffee_shop_access:"Cafés",clothing_and_accessory_store_access:"Magasins de vêtements",common_needs_access:"Nécessités communes",department_store_access:"Grands magasins",entertainment_venue_access:"Lieux de divertissement",fitness_establishment_access:"Conditionnement physique",nightlife_access:"Vie nocturne",pedestrian_oriented_street_access:"Rues accessibles aux piétons",rapid_transit_service_access:"Service de transport en commun rapide",restaurant_access:"Restaurants",specialty_grocery_store_access:"Épiceries spécialisées",sports_facility_access:"Installations sportives",train_service_access:"Gares",nearest_highway_proximity:"Accès à l'autoroute",nearest_pharmacy_proximity:"Pharmacies à proximité",nearest_bicycle_share_station_proximity:"Stations de vélos en libre-service à proximité",bicycle_path_access:"Stations de vélopartage à proximité",bicycle_share_station_access:"Partage de vélo",nearest_park_area:"Grand parc à proximité",bicycle_infrastructure_quality:"Infrastructure pour vélos",high_schools:"Écoles secondaires",primary_schools:"Écoles primaires",quiet:"Calme",daycares:"Garderies",parks:"Parcs"}},leadCapture:{},localContent:{sidebar:{header:{title:"Catégories",backAction:"Retour au menu",toggle:{ariaLabel:"Basculer le menu des scores",ariaLabel_open:"Ouvrir le menu des scores",ariaLabel_close:"Fermer le menu des scores"}}},categoriesToggle:{toggleLabel:"Catégories",backAction:"Retour"},categories:{commute:"Transport",amenities:"Services",character:"Caractère",nature:"Nature",education:"Éducation",health:"Santé"},scoreComparison:{text:"Comparable à la moyenne de {{name}} de {{value}}",text_higher:"Supérieur à la moyenne de {{name}} de {{value}}",text_lower:"Inférieur à la moyenne de {{name}} de {{value}}"},poiSearchRadius:"Affichage des PO dans un rayon de {{radius}} {{unit}}",commute:{placeholder:"Faire une recherche...",cta:"Calculer le trajet",cta_long:"Calculer le trajet",cta_short:"Calculer",viewRoute:"Voir l'itinéraire",travelTypes:{walking:"À pied",driving:"En voiture",cycling:"À vélo"},results:{noRoute:"Aucun itinéraire disponible.",trySuggestion:"Essayez une autre requête.",fastestRoute:"Itinéraire le plus rapide"}}},localDemographics:{title:"Données démographiques locales",note:"Affichage des données démographiques pour la zone située à {{value}} {{unit}} autour de l'emplacement sélectionné.",noData:"Aucune donnée démographique n'est disponible pour cet endroit particulier.",data:{income:{title:"Revenu",graphs:{averageIncome:{title:"Revenu moyen",title_USA:"Revenu",types:{avgHouseholdIncome:"Familial",avgHouseholdIncome_USA:"Ménage (médian)",avgIndividualIncome:"Individuel",avgIndividualIncome_USA:"Individuel (par habitant)"}},employment:{title:"Emploi"},incomeBrackets:{title:"Tranches de revenu"}}},population:{title:"Population",graphs:{totalPopulation:{title:"Population totale"},populationByAgeGroup:{title:"Population par tranche d'âge"}}},housing:{title:"Logement",graphs:{homeOwnershipType:{title:"Propriétaires c. locataires"},typeOfHousing:{title:"Type de logement"}}},household:{title:"Ménages",graphs:{householdComposition:{title:"Composition des ménages"}}},education:{title:"Éducation",graphs:{educationLevel:{title:"Niveau d'études atteint"}}},commute:{title:"Transport",graphs:{commuteMode:{title:"Modes de transport"}}},languages:{title:"Langues",graphs:{spokenLanguages:{title:"Langues officielles parlées"},motherTongue:{title:"Langue maternelle"}}}}},neighborhoodCharacteristics:{title:"Caractéristiques",noData:"Aucune information n'est présentement disponible pour ce quartier. Restez à l'affût des mises à jour pour l'ajout de nouveaux quartiers.",sections:{transport:{title:"Transport"},services:{title:"Services"},character:{title:"Caractère"}}},neighborhoodDemographics:{title:"Démographie du quartier",note:"Affichage des statistiques démographiques pour le quartier.",noData:"Aucune donnée démographique n'est offerte pour cet endroit particulier.",data:{income:{title:"Revenu",graphs:{averageIncome:{title:"Revenu moyen",types:{avg_household_income:"Familial",avg_individual_income:"Individuel"}},employment:{title:"Emploi"},incomeBrackets:{title:"Tranches de revenu"}}},population:{title:"Population",graphs:{totalPopulation:{title:"Population totale"},populationByAgeGroup:{title:"Population par tranche d'âge"}}},housing:{title:"Logement",graphs:{homeOwnershipType:{title:"Propriétaires c.. locataires"},typeOfHousing:{title:"Type de logement"}}},household:{title:"Ménage",graphs:{householdComposition:{title:"Composition des ménages"}}},education:{title:"Éducation",graphs:{educationLevel:{title:"Niveau d'études atteint"}}},commute:{title:"Transport",graphs:{commuteMode:{title:"Mode de déplacement"}}},languages:{title:"Langues",graphs:{spokenLanguages:{title:"Langues officielles parlées"},motherTongue:{title:"Langue maternelle"}}}}},neighborhoodFeatured:{title:""},neighborhoodShowcase:{},neighborhoodHero:{summaryTitle:"À propos du quartier"},neighborhoodHighlights:{title:"Points forts",noData:"Découvrez ce que ce quartier a à offrir en termes de transport, de services et de caractère.",highlight:{title:"Cette zone est idéale pour"}},neighborhoodMap:{filters:{navigation:{scrollLeftAriaLabel:"Défiler vers la gauche",scrollRightAriaLabel:"Défiler vers la droite",allFiltersAriaLabel:"Voir tous les filtres"},radius:{title:"Rayon :",value:"{{value}} {{unit}}"},popup:{title:"Filtres",description:"Veuillez sélectionner une option",cta:{reset:"Réinitialiser tout",apply:"Appliquer le filtre"}}}},neighborhoodMatch:{title:"Quartiers similaires",title_32:"Codes postaux similaires",title_37:"Comtés similaires",description:"Découvrez des lieux similaires à celui-ci et comparez-les en termes de caractéristiques et services de proximité.",descriptionWithNeighborhood:"Découvrez des lieux similaires à {{neighborhoodName}} et comparez-les en termes de caractéristiques et services de proximité.",noData:"Les quartiers similaires ne sont pas disponibles pour cet emplacement.",tags:{negative:"Moins abordable",neutral:"Comparable",positive:"Plus abordable"},pagination:{previous:"Afficher moins",next:"Afficher plus"}},neighborhoodPropertyValueDrivers:{title:"Facteurs de valeur immobilière",description:"Ces caractéristiques ont le plus d'impact positif sur les valeurs des maisons dans ce quartier.",noData:"Découvrez les caractéristiques qui influencent les prix des maisons; cette liste détaille les facteurs qui affectent positivement les valeurs des propriétés dans un {{locationType}}.",locationType:{neighborhood:"quartier",location:"emplacement"},valueDrivers:{bus_service_access:{tag:{high:"Excellent accès"},qualifier:{high:"La présence de services d'autobus améliore la connectivité et l'accessibilité d'un {{locationType}}, le rendant plus attrayant pour les navetteurs et augmentant son attractivité globale."}},shops_and_services_access:{tag:{high:"Plusieurs à proximité"},qualifier:{high:"La présence de nombreux commerces de proximité facilement accessibles peut augmenter l'attractivité globale d'un {{locationType}}."}},coffee_shop_access:{tag:{high:"Plusieurs à proximité"},qualifier:{high:"La présence de cafés à proximité et facilement accessibles peut créer un environnement accueillant et un {{locationType}} plus attrayant."}},clothing_and_accessory_store_access:{tag:{high:"Plusieurs à proximité"},qualifier:{high:"La présence de nombreux magasins de vêtements et d'accessoires facilement accessibles à proximité peut accroître la désirabilité globale d'un {{locationType}}."}},common_needs_access:{tag:{high:"Excellent accès"},qualifier:{high:"L'accès facile à des commodités de base comme les quincailleries, bureaux de poste et dépanneurs peut améliorer l'accessibilité des services dans un {{locationType}}."}},department_store_access:{tag:{high:"Plusieurs à proximité"},qualifier:{high:"La présence de grands magasins à proximité et facilement accessibles peut augmenter l'attractivité globale d'un {{locationType}}."}},entertainment_venue_access:{tag:{high:"Plusieurs à proximité"},qualifier:{high:"La présence de lieux de divertissement facilement accessibles peut être le signe d'un {{locationType}} plus vivant et plus attrayant."}},fitness_establishment_access:{tag:{high:"Plusieurs à proximité"},qualifier:{high:"La présence d'établissements de conditionnement physique facilement accessibles, tels que des gymnases, des studios de yoga et des piscines, peut rendre le {{locationType}} plus attrayant."}},nightlife_access:{tag:{high:"Excellent accès"},qualifier:{high:"Un accès facile aux centres locaux de la vie nocturne, tels que les bars, les pubs et les clubs de comédie, peut être le signe d'un {{locationType}} plus dynamique."}},pedestrian_oriented_street_access:{tag:{high:"Excellent accès"},qualifier:{high:"La présence de rues commerciales facilement accessibles, conçues pour être conviviales pour les piétons, peut créer un {{locationType}} plus attrayant."}},rapid_transit_service_access:{tag:{high:"Excellent accès"},qualifier:{high:"La proximité de stations de transport en commun rapide à haute fréquence peut être le signe d'un {{locationType}} plus accessible."}},restaurant_access:{tag:{high:"Plusieurs à proximité"},qualifier:{high:"La présence de restaurants facilement accessibles et à proximité peut créer un {{locationType}} plus attrayant."}},specialty_grocery_store_access:{tag:{high:"Plusieurs à proximité"},qualifier:{high:"La présence d'épiceries spécialisées à proximité peut indiquer un {{locationType}} plus attrayant."}},sports_facility_access:{tag:{high:"Plusieurs à proximité"},qualifier:{high:"La proximité d'installations sportives telles que des terrains de football, des pistes de course et des patinoires peut rendre le {{locationType}} plus attrayant."}},train_service_access:{tag:{high:"Excellent accès"},qualifier:{high:"La présence de gares à proximité qui ont un service fréquent peut indiquer un {{locationType}} plus accessible."}},nearest_highway_proximity:{tag:{high:"Excellent accès",low:"Faible densité"},qualifier:{high:"Un accès facile aux grandes autoroutes peut créer un {{locationType}} plus accessible.",low:"Peu d'autoroutes à proximité peut rendre le {{locationType}} plus calme et plus attrayant."}},nearest_pharmacy_proximity:{tag:{high:"Disponible à proximité"},qualifier:{high:"Un accès facile à une pharmacie à proximité peut indiquer un {{locationType}} plus accessible."}},nearest_bicycle_share_station_proximity:{tag:{high:"Excellent accès"},qualifier:{high:"La présence de stations de vélopartage à proximité peut être le signe d'un {{locationType}} plus accessible."}},bicycle_path_access:{tag:{high:"Excellent accès"},qualifier:{high:"La présence de pistes cyclables facilement accessibles peut être le signe d'un {{locationType}} plus accessible et plus attrayant."}},bicycle_share_station_access:{tag:{high:"Excellent accès"},qualifier:{high:"La présence de stations de vélopartage à proximité peut être le signe d'un {{locationType}} plus accessible."}},nearest_park_area:{tag:{high:"Disponible à proximité"},qualifier:{high:"La présence de grands parcs à proximité peut être le signe d'un {{locationType}} plus attrayant."}},bicycle_infrastructure_quality:{tag:{high:"Excellent accès"},qualifier:{high:"La présence d'une infrastructure de qualité pour les vélos peut être le signe d'un {{locationType}} plus accessible."}},high_schools:{tag:{high:"Excellent accès"},qualifier:{high:"Un accès facile aux écoles à proximité peut rendre le {{locationType}} plus attrayant."}},primary_schools:{tag:{high:"Excellent accès"},qualifier:{high:"Un accès facile aux écoles à proximité peut rendre le {{locationType}} plus attrayant."}},quiet:{tag:{high:"Excellent accès"},qualifier:{high:"Le peu de sources de bruit à proximité peut rendre le {{locationType}} plus attrayant."}},daycares:{tag:{high:"Excellent accès"},qualifier:{high:"Un accès facile aux services de garde à proximité peut rendre le {{locationType}} plus attrayant."}},parks:{tag:{high:"Excellent accès"},qualifier:{high:"La présence de nombreux parcs à proximité peut rendre le {{locationType}} plus attrayant."}}}},neighborhoodMarketTrends:{},neighborhoodSchools:{title:"Écoles à proximité",noData:"Il n'y a pas d'écoles disponibles à proximité.",noFilteredData:"Aucune école à proximité ne correspond à vos filtres actuels.",english:"Anglais",french:"Français",board:"Commission scolaire ou district",headers:{name:"Nom",type:"Type",languages:"Langues",levels:"Niveaux",category:"Catégorie",address:"Adresse",typesFilter:"Tous types",levelsFilter:"Tous niveaux"},categories:{advancedPlacement:"Placement avancé",charter:"À charte",magnet:"À vocation particulière"},dataDisclaimer:"Les écoles sont sélectionnées pour être affichées en fonction de leur proximité avec le lieu. Veuillez contacter directement les écoles pour vérifier les zones de fréquentation."}}}});var rc=Ga;function oc(){return oc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},oc.apply(null,arguments)}var ic,sc,ac,cc,lc,uc=n(()=>{}),dc=r({Action:()=>ic,createBrowserHistory:()=>hc,createHashHistory:()=>pc,createMemoryHistory:()=>fc,createPath:()=>bc,parsePath:()=>wc});function hc(e){void 0===e&&(e={});var t=e.window,n=void 0===t?document.defaultView:t,r=n.history;function o(){var e=n.location,t=e.pathname,o=e.search,i=e.hash,s=r.state||{};return[s.idx,sc({pathname:t,search:o,hash:i,state:s.usr||null,key:s.key||"default"})]}var i=null;n.addEventListener(lc,function(){if(i)d.call(i),i=null;else{var e=ic.Pop,t=o(),n=t[0],r=t[1];if(d.length){if(null!=n){var s=c-n;s&&(i={action:e,location:r,retry:function(){v(-1*s)}},v(s))}}else m(e)}});var s=ic.Pop,a=o(),c=a[0],l=a[1],u=vc(),d=vc();function h(e){return"string"==typeof e?e:bc(e)}function p(e,t){return void 0===t&&(t=null),sc(oc({pathname:l.pathname,hash:"",search:""},"string"==typeof e?wc(e):e,{state:t,key:yc()}))}function f(e,t){return[{usr:e.state,key:e.key,idx:t},h(e)]}function g(e,t,n){return!d.length||(d.call({action:e,location:t,retry:n}),!1)}function m(e){s=e;var t=o();c=t[0],l=t[1],u.call({action:s,location:l})}function v(e){r.go(e)}return null==c&&(c=0,r.replaceState(oc({},r.state,{idx:c}),"")),{get action(){return s},get location(){return l},createHref:h,push:function e(t,o){var i=ic.Push,s=p(t,o);if(g(i,s,function(){e(t,o)})){var a=f(s,c+1),l=a[0],u=a[1];try{r.pushState(l,"",u)}catch(d){n.location.assign(u)}m(i)}},replace:function e(t,n){var o=ic.Replace,i=p(t,n);if(g(o,i,function(){e(t,n)})){var s=f(i,c),a=s[0],l=s[1];r.replaceState(a,"",l),m(o)}},go:v,back:function(){v(-1)},forward:function(){v(1)},listen:function(e){return u.push(e)},block:function(e){var t=d.push(e);return 1===d.length&&n.addEventListener(ac,mc),function(){t(),d.length||n.removeEventListener(ac,mc)}}}}function pc(e){void 0===e&&(e={});var t=e.window,n=void 0===t?document.defaultView:t,r=n.history;function o(){var e=wc(n.location.hash.substr(1)),t=e.pathname,o=void 0===t?"/":t,i=e.search,s=void 0===i?"":i,a=e.hash,c=void 0===a?"":a,l=r.state||{};return[l.idx,sc({pathname:o,search:s,hash:c,state:l.usr||null,key:l.key||"default"})]}var i=null;function s(){if(i)h.call(i),i=null;else{var e=ic.Pop,t=o(),n=t[0],r=t[1];if(h.length){if(null!=n){var s=l-n;s&&(i={action:e,location:r,retry:function(){y(-1*s)}},y(s))}}else v(e)}}n.addEventListener(lc,s),n.addEventListener(cc,function(){bc(o()[1])!==bc(u)&&s()});var a=ic.Pop,c=o(),l=c[0],u=c[1],d=vc(),h=vc();function p(e){return function(){var e=document.querySelector("base"),t="";if(e&&e.getAttribute("href")){var r=n.location.href,o=r.indexOf("#");t=-1===o?r:r.slice(0,o)}return t}()+"#"+("string"==typeof e?e:bc(e))}function f(e,t){return void 0===t&&(t=null),sc(oc({pathname:u.pathname,hash:"",search:""},"string"==typeof e?wc(e):e,{state:t,key:yc()}))}function g(e,t){return[{usr:e.state,key:e.key,idx:t},p(e)]}function m(e,t,n){return!h.length||(h.call({action:e,location:t,retry:n}),!1)}function v(e){a=e;var t=o();l=t[0],u=t[1],d.call({action:a,location:u})}function y(e){r.go(e)}return null==l&&(l=0,r.replaceState(oc({},r.state,{idx:l}),"")),{get action(){return a},get location(){return u},createHref:p,push:function e(t,o){var i=ic.Push,s=f(t,o);if(m(i,s,function(){e(t,o)})){var a=g(s,l+1),c=a[0],u=a[1];try{r.pushState(c,"",u)}catch(d){n.location.assign(u)}v(i)}},replace:function e(t,n){var o=ic.Replace,i=f(t,n);if(m(o,i,function(){e(t,n)})){var s=g(i,l),a=s[0],c=s[1];r.replaceState(a,"",c),v(o)}},go:y,back:function(){y(-1)},forward:function(){y(1)},listen:function(e){return d.push(e)},block:function(e){var t=h.push(e);return 1===h.length&&n.addEventListener(ac,mc),function(){t(),h.length||n.removeEventListener(ac,mc)}}}}function fc(e){void 0===e&&(e={});var t=e,n=t.initialEntries,r=void 0===n?["/"]:n,o=t.initialIndex,i=r.map(function(e){return sc(oc({pathname:"/",search:"",hash:"",state:null,key:yc()},"string"==typeof e?wc(e):e))}),s=gc(null==o?i.length-1:o,0,i.length-1),a=ic.Pop,c=i[s],l=vc(),u=vc();function d(e,t){return void 0===t&&(t=null),sc(oc({pathname:c.pathname,search:"",hash:""},"string"==typeof e?wc(e):e,{state:t,key:yc()}))}function h(e,t,n){return!u.length||(u.call({action:e,location:t,retry:n}),!1)}function p(e,t){a=e,c=t,l.call({action:a,location:c})}function f(e){var t=gc(s+e,0,i.length-1),n=ic.Pop,r=i[t];h(n,r,function(){f(e)})&&(s=t,p(n,r))}return{get index(){return s},get action(){return a},get location(){return c},createHref:function(e){return"string"==typeof e?e:bc(e)},push:function e(t,n){var r=ic.Push,o=d(t,n);h(r,o,function(){e(t,n)})&&(s+=1,i.splice(s,i.length,o),p(r,o))},replace:function e(t,n){var r=ic.Replace,o=d(t,n);h(r,o,function(){e(t,n)})&&(i[s]=o,p(r,o))},go:f,back:function(){f(-1)},forward:function(){f(1)},listen:function(e){return l.push(e)},block:function(e){return u.push(e)}}}function gc(e,t,n){return Math.min(Math.max(e,t),n)}function mc(e){e.preventDefault(),e.returnValue=""}function vc(){var e=[];return{get length(){return e.length},push:function(t){return e.push(t),function(){e=e.filter(function(e){return e!==t})}},call:function(t){e.forEach(function(e){return e&&e(t)})}}}function yc(){return Math.random().toString(36).substr(2,8)}function bc(e){var t=e.pathname,n=void 0===t?"/":t,r=e.search,o=void 0===r?"":r,i=e.hash,s=void 0===i?"":i;return o&&"?"!==o&&(n+="?"===o.charAt(0)?o:"?"+o),s&&"#"!==s&&(n+="#"===s.charAt(0)?s:"#"+s),n}function wc(e){var t={};if(e){var n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));var r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}var xc=n(()=>{uc(),function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(ic||(ic={})),sc=function(e){return e},ac="beforeunload",cc="hashchange",lc="popstate"}),_c=o((e,n)=>{!function(r,o){"object"==typeof e&&void 0!==n?o(e,s(),(xc(),t(dc))):"function"==typeof define&&define.amd?define(["exports","react","history"],o):o((r="undefined"!=typeof globalThis?globalThis:r||self).ReactLocation={},r.React,r.History)}(e,function(e,t,n){var r=function(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}(t);function o(){return o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}function i(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function s(e){if(!e)return"";var t=decodeURIComponent(e);return"false"!==t&&("true"===t||(0*+t==0?+t:t))}const a=["children","location","__experimental__snapshot"],c=["location","__experimental__snapshot"],l=["basepath","routes"],u=["to","search","hash","children","target","style","replace","onClick","onMouseEnter","className","getActiveProps","getInactiveProps","activeOptions","preload","disabled","_ref"],d=["style","className"],h=["style","className"],p=["pending"],f=["children"],g=r.createContext(null),m=r.createContext(null),v=r.createContext(null),y=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement),b=y?r.useLayoutEffect:r.useEffect;class w{constructor(){this.listeners=[]}subscribe(e){return this.listeners.push(e),()=>{this.listeners=this.listeners.filter(t=>t!==e)}}notify(){this.listeners.forEach(e=>e())}}function x(e){return r.createElement(m.Provider,e)}function _(){const e=S(),t=A(),n=j();return b(()=>{t({to:".",search:!0,hash:!0}).href!==e.current.href&&n({to:".",search:!0,hash:!0,fromCurrent:!0,replace:!0})},[]),null}class E extends w{constructor(e){var t;let{location:n,__experimental__snapshot:r}=e,s=i(e,c);super(),this.routesById={},this.update=e=>{let{basepath:t,routes:n}=e,r=i(e,l);Object.assign(this,r),this.basepath=z("/"+(null!=t?t:"")),this.routesById={};const s=(e,t)=>e.map(e=>{var n,i,a,c;const l=null!=(n=e.path)?n:"*",u=B(["root"===(null==t?void 0:t.id)?"":null==t?void 0:t.id,(null==l?void 0:l.replace(/(.)\/$/,"$1"))+(e.id?"-"+e.id:"")]);if(e=o({},e,{pendingMs:null!=(i=e.pendingMs)?i:null==r?void 0:r.defaultPendingMs,pendingMinMs:null!=(a=e.pendingMinMs)?a:null==r?void 0:r.defaultPendingMinMs,id:u}),this.routesById[u])throw new Error;return this.routesById[u]=e,e.children=null!=(c=e.children)&&c.length?s(e.children,e):void 0,e});this.routes=s(n),this.rootMatch={id:"root",params:{},search:{},pathname:this.basepath,route:null,ownData:{},data:{},isLoading:!1,status:"resolved"}},this.setState=e=>{const t=e({state:this.state,pending:this.pending});this.state=t.state,this.pending=t.pending,this.cleanMatchCache(),this.notify()},this.matchCache={},this.cleanMatchCache=()=>{var e,t,n;const r=[...null!=(e=null==this?void 0:this.state.matches)?e:[],...null!=(t=null==this||null==(n=this.pending)?void 0:n.matches)?t:[]].map(e=>e.id);Object.values(this.matchCache).forEach(e=>{var t;if(!e.updatedAt)return;if(r.includes(e.id))return;const n=Date.now()-(null!=(t=e.updatedAt)?t:0);(!e.maxAge||n>e.maxAge)&&(e.route.unloader&&e.route.unloader(e),delete this.matchCache[e.id])})},this.updateLocation=e=>{let t;return{promise:new Promise(n=>{const r=new O(this,e);this.setState(e=>o({},e,{pending:{location:r.location,matches:r.matches}})),t=r.subscribe(()=>{const e=this.state.matches;e.filter(e=>!r.matches.find(t=>t.id===e.id)).forEach(e=>{null==e.onExit||e.onExit(e)}),e.filter(e=>r.matches.find(t=>t.id===e.id)).forEach(e=>{null==e.route.onTransition||e.route.onTransition(e)}),r.matches.filter(t=>!e.find(e=>e.id===t.id)).forEach(e=>{e.onExit=null==e.route.onMatch?void 0:e.route.onMatch(e)}),this.setState(e=>o({},e,{state:{location:r.location,matches:r.matches},pending:void 0})),n()}),r.loadData(),r.startPending()}),unsubscribe:t}},this.__experimental__createSnapshot=()=>({location:this.state.location,matches:this.state.matches.map(e=>{let{ownData:t,id:n}=e;return{id:n,ownData:t}})}),this.update(s);let a=[];if(r){const e=new O(this,n.current);e.matches.forEach((e,t)=>{var n,o,i,s;if(e.id!==(null==(n=r.matches[t])?void 0:n.id))throw new Error("Router hydration mismatch: "+e.id+" !== "+(null==(s=r.matches[t])?void 0:s.id));e.ownData=null!=(o=null==(i=r.matches[t])?void 0:i.ownData)?o:{}}),C(e.matches),a=e.matches}this.state={location:null!=(t=null==r?void 0:r.location)?t:n.current,matches:a},n.subscribe(()=>this.notify())}}function S(){const e=r.useContext(g);return U(!!e,"useLocation must be used within a <ReactLocation />"),e.location}class k{constructor(e){this.status="loading",this.ownData={},this.data={},this.isLoading=!1,this.notify=e=>{var t;null==(t=this.matchLoader)||t.preNotify(e?this:void 0)},this.assignMatchLoader=e=>{this.matchLoader=e},this.startPending=()=>{this.pendingTimeout&&clearTimeout(this.pendingTimeout),void 0!==this.route.pendingMs&&(this.pendingTimeout=setTimeout(()=>{var e;"loading"===this.status&&(this.status="pending"),null==(e=this.notify)||e.call(this),void 0!==this.route.pendingMinMs&&(this.pendingMinPromise=new Promise(e=>setTimeout(e,this.route.pendingMinMs)))},this.route.pendingMs))},this.load=e=>{var t,n;if(this.maxAge=null!=(t=null!=(n=e.maxAge)?n:this.route.loaderMaxAge)?t:e.router.defaultLoaderMaxAge,this.loaderPromise)return;const r=this.route.import;this.loaderPromise=(r?(this.isLoading=!0,r({params:this.params,search:this.search}).then(e=>{this.route=o({},this.route,e)})):Promise.resolve()).then(()=>{const t=[];["element","errorElement","pendingElement"].forEach(e=>{const n=this.route[e];this[e]||("function"==typeof n?(this.isLoading=!0,t.push(n(this).then(t=>{this[e]=t}))):this[e]=this.route[e])});const n=this.route.loader,r=n?new Promise(async t=>{this.isLoading=!0;const r=e=>{this.updatedAt=Date.now(),t(this.ownData),this.status=e},o=e=>{this.ownData=e,this.error=void 0,r("resolved")},i=e=>{console.error(e),this.error=e,r("rejected")};try{o(await n(this,{parentMatch:e.parentMatch,dispatch:async e=>{var t;"resolve"===e.type?o(e.data):"reject"===e.type?i(e.error):"loading"===e.type?this.isLoading=!0:"maxAge"===e.type&&(this.maxAge=e.maxAge),this.updatedAt=Date.now(),null==(t=this.notify)||t.call(this,!0)}}))}catch(e){i(e)}}):Promise.resolve();return Promise.all([...t,r]).then(()=>{this.status="resolved",this.isLoading=!1,this.startPending=void 0}).then(()=>this.pendingMinPromise).then(()=>{var e;this.pendingTimeout&&clearTimeout(this.pendingTimeout),null==(e=this.notify)||e.call(this,!0)})}).then(()=>this.ownData)},Object.assign(this,e)}}class O extends w{constructor(e,t){var n;super(),n=this,this.preNotifiedMatches=[],this.status="pending",this.preNotify=e=>{e&&(this.preNotifiedMatches.includes(e)||this.preNotifiedMatches.push(e)),e&&this.preNotifiedMatches.length!==this.matches.length||(this.status="resolved",C(this.matches),this.notify())},this.loadData=async function(e){var t;let{maxAge:r}=void 0===e?{}:e;if(n.router.cleanMatchCache(),null!=(t=n.matches)&&t.length)return n.firstRenderPromises=[],n.matches.forEach((e,t)=>{var o,i;const s=null==(o=n.matches)?void 0:o[t-1];null==e.assignMatchLoader||e.assignMatchLoader(n),null==e.load||e.load({maxAge:r,parentMatch:s,router:n.router}),null==(i=n.firstRenderPromises)||i.push(e.loaderPromise)}),await Promise.all(n.firstRenderPromises).then(()=>(n.preNotify(),n.matches));n.preNotify()},this.load=async function(e){let{maxAge:t}=void 0===e?{}:e;return await n.loadData({maxAge:t})},this.startPending=async()=>{this.matches.forEach(e=>null==e.startPending?void 0:e.startPending())},this.router=e,this.location=t,this.matches=[];const r=R(this.router,this.location);this.matches=null==r?void 0:r.map(e=>(this.router.matchCache[e.id]||(this.router.matchCache[e.id]=new k(e)),this.router.matchCache[e.id]))}}function C(e){e?.forEach((t,n)=>{var r;const i=null==e?void 0:e[n-1];t.data=o({},null!=(r=null==i?void 0:i.data)?r:{},t.ownData)})}function P(){const e=r.useContext(v);if(!e)throw U(!0,"You are trying to use useRouter() outside of ReactLocation!"),new Error;return e.router}function R(e,t){if(!e.routes.length)return[];const n=[],r=async(i,s)=>{var a;let{pathname:c,params:l}=s;const u=(null!=e&&e.filterRoutes?null==e?void 0:e.filterRoutes(i):i).find(n=>{var r,i;const s=B([c,n.path]),a=!!("/"!==n.path||null!=(r=n.children)&&r.length),u=$(t,{to:s,search:n.search,fuzzy:a,caseSensitive:null!=(i=n.caseSensitive)?i:e.caseSensitive});return u&&(l=o({},l,u)),!!u});if(!u)return;const d=L(u.path,l);c=B([c,d]);const h={id:L(u.id,l,!0),route:u,params:l,pathname:c,search:t.search};n.push(h),null!=(a=u.children)&&a.length&&r(u.children,h)};return r(e.routes,e.rootMatch),n}function L(e,t,n){return B(K(e).map(e=>{return"*"!==e.value||n?"param"===e.type?null!=(r=t[e.value.substring(1)])?r:"":e.value:"";var r}))}function T(){const e=S(),t=N(),n=P(),r=A();return G(async function(i,s){var a;return void 0===i&&(i=e.current),await new O(n,r(o({},i,{from:null!=(a=i.from)?a:{pathname:t.pathname}}))).load(s)})}function D(){return r.useContext(m)}function N(){var e;return null==(e=D())?void 0:e[0]}function j(){const e=S(),t=N(),n=A();return G(function(r){var o;let{search:i,hash:s,replace:a,from:c,to:l,fromCurrent:u}=r;u=null!=(o=u)?o:void 0===l;const d=n({to:l,search:i,hash:s,from:u?e.current:null!=c?c:{pathname:t.pathname}});e.navigate(d,a)})}function A(){const e=S(),t=P();return G(n=>{const r=R(t,e.buildNext(t.basepath,n)).map(e=>{var t;return null!=(t=e.route.searchFilters)?t:[]}).flat().filter(Boolean);return e.buildNext(t.basepath,o({},n,{__searchFilters:r}))})}function I(){var e;const t=P(),[n,...o]=D(),i=o[0];if(!i)return null;const s=null!=(e=i.errorElement)?e:t.defaultErrorElement,a=(()=>{var e,n;if("rejected"===i.status){if(s)return s;if(!t.useErrorBoundary)return"An unknown error occured!";throw i.error}const o=null!=(e=i.pendingElement)?e:t.defaultPendingElement;if("loading"===i.status)return null;if("pending"===i.status&&(i.route.pendingMs||o))return null!=o?o:null;const a=null!=(n=i.element)?n:t.defaultElement;return null!=a?a:r.createElement(I,null)})();return r.createElement(x,{value:o},a)}function M(){const e=P(),t=N();return G(n=>W(e.basepath,t.pathname,z(n)))}function $(e,t){const n=V(e,t),r=function(e,t){return!(!t.search||!t.search(e.search))}(e,t);if((!t.to||n)&&(!t.search||r))return null!=n?n:{}}function F(){const e=P(),t=M();return G(n=>{let{pending:r}=n,s=i(n,p);if(s=o({},s,{to:s.to?t(""+s.to):void 0}),r){var a;if(null==(a=e.pending)||!a.location)return;return $(e.pending.location,s)}return $(e.state.location,s)})}function H(e,t){const n=S();r.useEffect(()=>{if(!t)return;let r=n.history.block(t=>{window.confirm(e)?(r(),t.retry()):n.current.pathname=window.location.pathname});return r},[t,n,e])}function U(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function q(e,t){return"function"==typeof e?e(t):e}function B(e){return z(e.filter(Boolean).join("/"))}function z(e){return(""+e).replace(/\/{2,}/g,"/")}function V(e,t){var n;const r=K(e.pathname),o=K(""+(null!=(n=t.to)?n:"*")),i={};return(()=>{for(let e=0;e<Math.max(r.length,o.length);e++){const n=r[e],s=o[e],a=e===o.length-1,c=e===r.length-1;if(s){if("wildcard"===s.type)return!(null==n||!n.value||(i["*"]=B(r.slice(e).map(e=>e.value)),0));if("pathname"===s.type){if("/"===s.value&&(null==n||!n.value))return!0;if(n)if(t.caseSensitive){if(s.value!==n.value)return!1}else if(s.value.toLowerCase()!==n.value.toLowerCase())return!1}if(!n)return!1;"param"===s.type&&(i[s.value.substring(1)]=n.value)}if(a&&!c)return!!t.fuzzy}return!0})()?i:void 0}function K(e){if(!e)return[];const t=[];if("/"===(e=z(e)).slice(0,1)&&(e=e.substring(1),t.push({type:"pathname",value:"/"})),!e)return t;const n=e.split("/").filter(Boolean);return t.push(...n.map(e=>e.startsWith("*")?{type:"wildcard",value:e}:":"===e.charAt(0)?{type:"param",value:e}:{type:"pathname",value:e})),"/"===e.slice(-1)&&(e=e.substring(1),t.push({type:"pathname",value:"/"})),t}function W(e,t,n){t=t.replace(new RegExp("^"+e),"/"),n=n.replace(new RegExp("^"+e),"/");let r=K(t);const o=K(n);return o.forEach((e,t)=>{if("/"===e.value)t?t===o.length-1&&r.push(e):r=[e];else if(".."===e.value)r.pop();else{if("."===e.value)return;r.push(e)}}),z(B([e,...r.map(e=>e.value)]))}function G(e){const t=r.useRef(),n=r.useRef(e);return n.current=e,t.current||(t.current=function(){return n.current(...arguments)}),t.current}function J(e,t){if(e===t)return e;const n=Array.isArray(e)&&Array.isArray(t);if(n||Y(e)&&Y(t)){const r=n?e.length:Object.keys(e).length,o=n?t:Object.keys(t),i=o.length,s=n?[]:{};let a=0;for(let c=0;c<i;c++){const r=n?c:o[c];s[r]=J(e[r],t[r]),s[r]===e[r]&&a++}return r===i&&a===r?e:s}return t}function Y(e){if(!Q(e))return!1;const t=e.constructor;if(void 0===t)return!0;const n=t.prototype;return!!Q(n)&&!!n.hasOwnProperty("isPrototypeOf")}function Q(e){return"[object Object]"===Object.prototype.toString.call(e)}const X=ee(JSON.parse),Z=te(JSON.stringify);function ee(e){return t=>{"?"===t.substring(0,1)&&(t=t.substring(1));let n=function(e){for(var t,n,r={},o=e.split("&");t=o.shift();)void 0!==r[n=(t=t.split("=")).shift()]?r[n]=[].concat(r[n],s(t.shift())):r[n]=s(t.shift());return r}(t);for(let r in n){const t=n[r];if("string"==typeof t)try{n[r]=e(t)}catch(e){}}return n}}function te(e){return t=>{(t=o({},t))&&Object.keys(t).forEach(n=>{const r=t[n];if(void 0===r||void 0===r)delete t[n];else if(r&&"object"==typeof r&&null!==r)try{t[n]=e(r)}catch(e){}});const n=function(e){var t,n,r,o="";for(t in e)if(void 0!==(r=e[t]))if(Array.isArray(r))for(n=0;n<r.length;n++)o&&(o+="&"),o+=encodeURIComponent(t)+"="+encodeURIComponent(r[n]);else o&&(o+="&"),o+=encodeURIComponent(t)+"="+encodeURIComponent(r);return""+o}(t).toString();return n?"?"+n:""}}Object.defineProperty(e,"createBrowserHistory",{enumerable:!0,get:function(){return n.createBrowserHistory}}),Object.defineProperty(e,"createHashHistory",{enumerable:!0,get:function(){return n.createHashHistory}}),Object.defineProperty(e,"createMemoryHistory",{enumerable:!0,get:function(){return n.createMemoryHistory}}),e.Link=function(e){var t;let{to:n=".",search:s,hash:a,children:c,target:l,style:p={},replace:f,onClick:g,onMouseEnter:m,className:v="",getActiveProps:y=()=>({className:"active"}),getInactiveProps:b=()=>({}),activeOptions:w,preload:x,disabled:_,_ref:E}=e,k=i(e,u);const O=T(),C=N(),R=S(),L=P(),D=j(),I=A();x=null!=(t=x)?t:L.defaultLinkPreloadMaxAge;try{U(!1,"<Link /> should not be used for external URLs like: "+new URL(""+n).href)}catch(e){}const M=I({to:n,search:s,hash:a,from:{pathname:C.pathname}}),$=R.current.pathname===M.pathname,F=R.current.pathname.split("/"),H=M.pathname.split("/").every((e,t)=>e===F[t]),q=R.current.hash===M.hash,B=null!=w&&w.exact?$:H,z=null==w||!w.includeHash||q,V=B&&z,K=V?y():{},{style:W={},className:G=""}=K,J=i(K,d),Y=V?{}:b(),{style:Q={},className:X=""}=Y,Z=i(Y,h);return r.createElement("a",o({ref:E,href:_?void 0:M.href,onClick:e=>{_||(g&&g(e),function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)||e.defaultPrevented||l&&"_self"!==l||0!==e.button||(e.preventDefault(),D({to:n,search:s,hash:a,replace:f,from:{pathname:C.pathname}})))},onMouseEnter:e=>{m&&m(e),x&&x>0&&O({to:n,search:s,hash:a},{maxAge:x})},target:l,style:o({},p,W,Q),className:[v,G,X].filter(Boolean).join(" ")||void 0},_?{role:"link","aria-disabled":!0}:void 0,k,J,Z,{children:"function"==typeof c?c({isActive:V}):c}))},e.MatchRoute=function(e){let{children:t}=e,n=i(e,f);const r=F()(n);return"function"==typeof t?t(r):r?t:null},e.MatchesProvider=x,e.Navigate=function(e){let t=j();return b(()=>{t(e)},[t]),null},e.Outlet=I,e.Prompt=function(e){let{message:t,when:n,children:r}=e;return H(t,null==n||n),null!=r?r:null},e.ReactLocation=class extends w{constructor(e){var t,r;super(),this.isTransitioning=!1,this.history=(null==e?void 0:e.history)||(y?n.createBrowserHistory():n.createMemoryHistory()),this.stringifySearch=null!=(t=null==e?void 0:e.stringifySearch)?t:Z,this.parseSearch=null!=(r=null==e?void 0:e.parseSearch)?r:X,this.current=this.parseLocation(this.history.location),this.destroy=this.history.listen(e=>{this.current=this.parseLocation(e.location,this.current),this.notify()})}buildNext(e,t){var n,r,i,s;void 0===e&&(e="/"),void 0===t&&(t={});const a=o({},this.current,t.from),c=W(e,a.pathname,""+(null!=(n=t.to)?n:".")),l=null!=(r=t.__searchFilters)&&r.length?t.__searchFilters.reduce((e,t)=>t(e),a.search):a.search,u=!0===t.search?l:t.search?null!=(i=q(t.search,l))?i:{}:null!=(s=t.__searchFilters)&&s.length?l:{},d=J(a.search,u),h=this.stringifySearch(d);let p=!0===t.hash?a.hash:q(t.hash,a.hash);return p=p?"#"+p:"",{pathname:c,search:d,searchStr:h,hash:p,href:""+c+h+p,key:t.key}}navigate(e,t){this.current=e,this.navigateTimeout&&clearTimeout(this.navigateTimeout);let n="replace";return t||(n="push"),this.parseLocation(this.history.location).href===this.current.href&&!this.current.key&&(n="replace"),"replace"===n?this.history.replace({pathname:this.current.pathname,hash:this.current.hash,search:this.current.searchStr}):this.history.push({pathname:this.current.pathname,hash:this.current.hash,search:this.current.searchStr})}parseLocation(e,t){var n;const r=this.parseSearch(e.search);return{pathname:e.pathname,searchStr:e.search,search:J(null==t?void 0:t.search,r),hash:null!=(n=e.hash.split("#").reverse()[0])?n:"",href:""+e.pathname+e.search+e.hash,key:e.key}}},e.RouteMatch=k,e.Router=function(e){let{children:t,location:n,__experimental__snapshot:o}=e,s=i(e,a);const c=r.useRef(null);c.current||(c.current=new E({location:n,__experimental__snapshot:o,routes:s.routes}));const l=c.current,[u,d]=r.useReducer(()=>({}),{});return l.update(s),b(()=>l.subscribe(()=>{d()}),[]),b(()=>l.updateLocation(n.current).unsubscribe,[n.current.key]),r.createElement(g.Provider,{value:{location:n}},r.createElement(v.Provider,{value:{router:l}},r.createElement(_,null),r.createElement(x,{value:[l.rootMatch,...l.state.matches]},null!=t?t:r.createElement(I,null))))},e.RouterInstance=E,e.cleanPath=z,e.defaultParseSearch=X,e.defaultStringifySearch=Z,e.functionalUpdate=q,e.matchByPath=V,e.matchRoute=$,e.matchRoutes=R,e.parsePathname=K,e.parseSearchWith=ee,e.resolvePath=W,e.stringifySearchWith=te,e.useLoadRoute=T,e.useLocation=S,e.useMatch=N,e.useMatchRoute=F,e.useMatches=D,e.useNavigate=j,e.useParentMatches=function(){const e=P(),t=N(),n=e.state.matches;return n.slice(0,n.findIndex(e=>e.id===t.id)-1)},e.usePrompt=H,e.useResolvePath=M,e.useRouter=P,e.useSearch=function(){return S().current.search},Object.defineProperty(e,"__esModule",{value:!0})})}),Ec=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Sc="undefined"==typeof window||"Deno"in globalThis;function kc(){}function Oc(e){return"number"==typeof e&&e>=0&&e!==1/0}function Cc(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Pc(e,t){return"function"==typeof e?e(t):e}function Rc(e,t){return"function"==typeof e?e(t):e}function Lc(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:i,queryKey:s,stale:a}=e;if(s)if(r){if(t.queryHash!==Dc(s,t.options))return!1}else if(!jc(t.queryKey,s))return!1;if("all"!==n){const e=t.isActive();if("active"===n&&!e)return!1;if("inactive"===n&&e)return!1}return("boolean"!=typeof a||t.isStale()===a)&&((!o||o===t.state.fetchStatus)&&!(i&&!i(t)))}function Tc(e,t){const{exact:n,status:r,predicate:o,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(Nc(t.options.mutationKey)!==Nc(i))return!1}else if(!jc(t.options.mutationKey,i))return!1}return(!r||t.state.status===r)&&!(o&&!o(t))}function Dc(e,t){return(t?.queryKeyHashFn||Nc)(e)}function Nc(e){return JSON.stringify(e,(e,t)=>$c(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function jc(e,t){return e===t||typeof e==typeof t&&(!(!e||!t||"object"!=typeof e||"object"!=typeof t)&&Object.keys(t).every(n=>jc(e[n],t[n])))}function Ac(e,t){if(e===t)return e;const n=Mc(e)&&Mc(t);if(n||$c(e)&&$c(t)){const r=n?e:Object.keys(e),o=r.length,i=n?t:Object.keys(t),s=i.length,a=n?[]:{},c=new Set(r);let l=0;for(let u=0;u<s;u++){const r=n?u:i[u];(!n&&c.has(r)||n)&&void 0===e[r]&&void 0===t[r]?(a[r]=void 0,l++):(a[r]=Ac(e[r],t[r]),a[r]===e[r]&&void 0!==e[r]&&l++)}return o===s&&l===o?e:a}return t}function Ic(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function Mc(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function $c(e){if(!Fc(e))return!1;const t=e.constructor;if(void 0===t)return!0;const n=t.prototype;return!!Fc(n)&&(!!n.hasOwnProperty("isPrototypeOf")&&Object.getPrototypeOf(e)===Object.prototype)}function Fc(e){return"[object Object]"===Object.prototype.toString.call(e)}function Hc(e,t,n){return"function"==typeof n.structuralSharing?n.structuralSharing(e,t):!1!==n.structuralSharing?Ac(e,t):t}function Uc(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function qc(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Bc=Symbol();function zc(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:e.queryFn&&e.queryFn!==Bc?e.queryFn:()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`))}function Vc(e,t){return"function"==typeof e?e(...t):!!e}var Kc,Wc,Gc,Jc=e(i(),1),Yc=_c();function Qc(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Xc(e,t,n){Qc(e,t),t.set(e,n)}function Zc(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}function el(e,t,n){return e.set(Zc(e,t),n),n}function tl(e,t){return e.get(Zc(e,t))}var nl,rl,ol,il=new(Kc=new WeakMap,Wc=new WeakMap,Gc=new WeakMap,class extends Ec{constructor(){super(),Xc(this,Kc,void 0),Xc(this,Wc,void 0),Xc(this,Gc,void 0),el(Gc,this,e=>{if(!Sc&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}})}onSubscribe(){tl(Wc,this)||this.setEventListener(tl(Gc,this))}onUnsubscribe(){this.hasListeners()||(tl(Wc,this)?.call(this),el(Wc,this,void 0))}setEventListener(e){el(Gc,this,e),tl(Wc,this)?.call(this),el(Wc,this,e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()}))}setFocused(e){tl(Kc,this)!==e&&(el(Kc,this,e),this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return"boolean"==typeof tl(Kc,this)?tl(Kc,this):"hidden"!==globalThis.document?.visibilityState}}),sl=new(nl=new WeakMap,rl=new WeakMap,ol=new WeakMap,class extends Ec{constructor(){super(),Xc(this,nl,!0),Xc(this,rl,void 0),Xc(this,ol,void 0),el(ol,this,e=>{if(!Sc&&window.addEventListener){const t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}})}onSubscribe(){tl(rl,this)||this.setEventListener(tl(ol,this))}onUnsubscribe(){this.hasListeners()||(tl(rl,this)?.call(this),el(rl,this,void 0))}setEventListener(e){el(ol,this,e),tl(rl,this)?.call(this),el(rl,this,e(this.setOnline.bind(this)))}setOnline(e){tl(nl,this)!==e&&(el(nl,this,e),this.listeners.forEach(t=>{t(e)}))}isOnline(){return tl(nl,this)}});function al(){let e,t;const n=new Promise((n,r)=>{e=n,t=r});function r(e){Object.assign(n,e),delete n.resolve,delete n.reject}return n.status="pending",n.catch(()=>{}),n.resolve=t=>{r({status:"fulfilled",value:t}),e(t)},n.reject=e=>{r({status:"rejected",reason:e}),t(e)},n}function cl(e){return Math.min(1e3*2**e,3e4)}function ll(e){return"online"!==(e??"online")||sl.isOnline()}var ul=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function dl(e){return e instanceof ul}function hl(e){let t,n=!1,r=0,o=!1;const i=al(),s=()=>il.isFocused()&&("always"===e.networkMode||sl.isOnline())&&e.canRun(),a=()=>ll(e.networkMode)&&e.canRun(),c=n=>{o||(o=!0,e.onSuccess?.(n),t?.(),i.resolve(n))},l=n=>{o||(o=!0,e.onError?.(n),t?.(),i.reject(n))},u=()=>new Promise(n=>{t=e=>{(o||s())&&n(e)},e.onPause?.()}).then(()=>{t=void 0,o||e.onContinue?.()}),d=()=>{if(o)return;let t;const i=0===r?e.initialPromise:void 0;try{t=i??e.fn()}catch(a){t=Promise.reject(a)}Promise.resolve(t).then(c).catch(t=>{if(o)return;const i=e.retry??(Sc?0:3),a=e.retryDelay??cl,c="function"==typeof a?a(r,t):a,h=!0===i||"number"==typeof i&&r<i||"function"==typeof i&&i(r,t);var p;!n&&h?(r++,e.onFail?.(r,t),(p=c,new Promise(e=>{setTimeout(e,p)})).then(()=>s()?void 0:u()).then(()=>{n?l(t):d()})):l(t)})};return{promise:i,cancel:t=>{o||(l(new ul(t)),e.abort?.())},continue:()=>(t?.(),i),cancelRetry:()=>{n=!0},continueRetry:()=>{n=!1},canStart:a,start:()=>(a()?d():u().then(d),i)}}var pl=e=>setTimeout(e,0);var fl,gl,ml,vl,yl,bl,wl,xl,_l,El=function(){let e=[],t=0,n=e=>{e()},r=e=>{e()},o=pl;const i=r=>{t?e.push(r):o(()=>{n(r)})};return{batch:i=>{let s;t++;try{s=i()}finally{t--,t||(()=>{const t=e;e=[],t.length&&o(()=>{r(()=>{t.forEach(e=>{n(e)})})})})()}return s},batchCalls:e=>(...t)=>{i(()=>{e(...t)})},schedule:i,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{o=e}}}(),Sl=(fl=new WeakMap,class{constructor(){Xc(this,fl,void 0)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Oc(this.gcTime)&&el(fl,this,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Sc?1/0:3e5))}clearGcTimeout(){tl(fl,this)&&(clearTimeout(tl(fl,this)),el(fl,this,void 0))}});function kl(e,t){Qc(e,t),t.add(e)}var Ol,Cl=(gl=new WeakMap,ml=new WeakMap,vl=new WeakMap,yl=new WeakMap,bl=new WeakMap,wl=new WeakMap,xl=new WeakMap,_l=new WeakSet,class extends Sl{constructor(e){super(),kl(this,_l),Xc(this,gl,void 0),Xc(this,ml,void 0),Xc(this,vl,void 0),Xc(this,yl,void 0),Xc(this,bl,void 0),Xc(this,wl,void 0),Xc(this,xl,void 0),el(xl,this,!1),el(wl,this,e.defaultOptions),this.setOptions(e.options),this.observers=[],el(yl,this,e.client),el(vl,this,tl(yl,this).getQueryCache()),this.queryKey=e.queryKey,this.queryHash=e.queryHash,el(gl,this,function(e){const t="function"==typeof e.initialData?e.initialData():e.initialData,n=void 0!==t,r=n?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}(this.options)),this.state=e.state??tl(gl,this),this.scheduleGc()}get meta(){return this.options.meta}get promise(){return tl(bl,this)?.promise}setOptions(e){this.options={...tl(wl,this),...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||tl(vl,this).remove(this)}setData(e,t){const n=Hc(this.state.data,e,this.options);return Zc(_l,this,Pl).call(this,{data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){Zc(_l,this,Pl).call(this,{type:"setState",state:e,setStateOptions:t})}cancel(e){const t=tl(bl,this)?.promise;return tl(bl,this)?.cancel(e),t?t.then(kc).catch(kc):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(tl(gl,this))}isActive(){return this.observers.some(e=>!1!==Rc(e.options.enabled,this))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Bc||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>"static"===Pc(e.options.staleTime,this))}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):void 0===this.state.data||this.state.isInvalidated}isStaleByTime(e=0){return void 0===this.state.data||"static"!==e&&(!!this.state.isInvalidated||!Cc(this.state.dataUpdatedAt,e))}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),tl(bl,this)?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),tl(bl,this)?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),tl(vl,this).notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(tl(bl,this)&&(tl(xl,this)?tl(bl,this).cancel({revert:!0}):tl(bl,this).cancelRetry()),this.scheduleGc()),tl(vl,this).notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Zc(_l,this,Pl).call(this,{type:"invalidate"})}fetch(e,t){if("idle"!==this.state.fetchStatus)if(void 0!==this.state.data&&t?.cancelRefetch)this.cancel({silent:!0});else if(tl(bl,this))return tl(bl,this).continueRetry(),tl(bl,this).promise;if(e&&this.setOptions(e),!this.options.queryFn){const e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}const n=new AbortController,r=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(el(xl,this,!0),n.signal)})},o=()=>{const e=zc(this.options,t),n=(()=>{const e={client:tl(yl,this),queryKey:this.queryKey,meta:this.meta};return r(e),e})();return el(xl,this,!1),this.options.persister?this.options.persister(e,n,this):e(n)},i=(()=>{const e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:tl(yl,this),state:this.state,fetchFn:o};return r(e),e})();this.options.behavior?.onFetch(i,this),el(ml,this,this.state),"idle"!==this.state.fetchStatus&&this.state.fetchMeta===i.fetchOptions?.meta||Zc(_l,this,Pl).call(this,{type:"fetch",meta:i.fetchOptions?.meta});const s=e=>{dl(e)&&e.silent||Zc(_l,this,Pl).call(this,{type:"error",error:e}),dl(e)||(tl(vl,this).config.onError?.(e,this),tl(vl,this).config.onSettled?.(this.state.data,e,this)),this.scheduleGc()};return el(bl,this,hl({initialPromise:t?.initialPromise,fn:i.fetchFn,abort:n.abort.bind(n),onSuccess:e=>{if(void 0!==e){try{this.setData(e)}catch(t){return void s(t)}tl(vl,this).config.onSuccess?.(e,this),tl(vl,this).config.onSettled?.(e,this.state.error,this),this.scheduleGc()}else s(new Error(`${this.queryHash} data is undefined`))},onError:s,onFail:(e,t)=>{Zc(_l,this,Pl).call(this,{type:"failed",failureCount:e,error:t})},onPause:()=>{Zc(_l,this,Pl).call(this,{type:"pause"})},onContinue:()=>{Zc(_l,this,Pl).call(this,{type:"continue"})},retry:i.options.retry,retryDelay:i.options.retryDelay,networkMode:i.options.networkMode,canRun:()=>!0})),tl(bl,this).start()}});function Pl(e){this.state=(t=>{switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,...Rl(t.data,this.options),fetchMeta:e.meta??null};case"success":return el(ml,this,void 0),{...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const n=e.error;return dl(n)&&n.revert&&tl(ml,this)?{...tl(ml,this),fetchStatus:"idle"}:{...t,error:n,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:n,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),El.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),tl(vl,this).notify({query:this,type:"updated",action:e})})}function Rl(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:ll(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}var Ll,Tl,Dl,Nl,jl,Al,Il,Ml=(Ol=new WeakMap,class extends Ec{constructor(e={}){super(),Xc(this,Ol,void 0),this.config=e,el(Ol,this,new Map)}build(e,t,n){const r=t.queryKey,o=t.queryHash??Dc(r,t);let i=this.get(o);return i||(i=new Cl({client:e,queryKey:r,queryHash:o,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(i)),i}add(e){tl(Ol,this).has(e.queryHash)||(tl(Ol,this).set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=tl(Ol,this).get(e.queryHash);t&&(e.destroy(),t===e&&tl(Ol,this).delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){El.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return tl(Ol,this).get(e)}getAll(){return[...tl(Ol,this).values()]}find(e){const t={exact:!0,...e};return this.getAll().find(e=>Lc(t,e))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(t=>Lc(e,t)):t}notify(e){El.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){El.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){El.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}}),$l=(Ll=new WeakMap,Tl=new WeakMap,Dl=new WeakMap,Nl=new WeakSet,class extends Sl{constructor(e){super(),kl(this,Nl),Xc(this,Ll,void 0),Xc(this,Tl,void 0),Xc(this,Dl,void 0),this.mutationId=e.mutationId,el(Tl,this,e.mutationCache),el(Ll,this,[]),this.state=e.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0},this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){tl(Ll,this).includes(e)||(tl(Ll,this).push(e),this.clearGcTimeout(),tl(Tl,this).notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){el(Ll,this,tl(Ll,this).filter(t=>t!==e)),this.scheduleGc(),tl(Tl,this).notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){tl(Ll,this).length||("pending"===this.state.status?this.scheduleGc():tl(Tl,this).remove(this))}continue(){return tl(Dl,this)?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{Zc(Nl,this,Fl).call(this,{type:"continue"})};el(Dl,this,hl({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(e,t)=>{Zc(Nl,this,Fl).call(this,{type:"failed",failureCount:e,error:t})},onPause:()=>{Zc(Nl,this,Fl).call(this,{type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>tl(Tl,this).canRun(this)}));const n="pending"===this.state.status,r=!tl(Dl,this).canStart();try{if(n)t();else{Zc(Nl,this,Fl).call(this,{type:"pending",variables:e,isPaused:r}),await(tl(Tl,this).config.onMutate?.(e,this));const t=await(this.options.onMutate?.(e));t!==this.state.context&&Zc(Nl,this,Fl).call(this,{type:"pending",context:t,variables:e,isPaused:r})}const o=await tl(Dl,this).start();return await(tl(Tl,this).config.onSuccess?.(o,e,this.state.context,this)),await(this.options.onSuccess?.(o,e,this.state.context)),await(tl(Tl,this).config.onSettled?.(o,null,this.state.variables,this.state.context,this)),await(this.options.onSettled?.(o,null,e,this.state.context)),Zc(Nl,this,Fl).call(this,{type:"success",data:o}),o}catch(o){try{throw await(tl(Tl,this).config.onError?.(o,e,this.state.context,this)),await(this.options.onError?.(o,e,this.state.context)),await(tl(Tl,this).config.onSettled?.(void 0,o,this.state.variables,this.state.context,this)),await(this.options.onSettled?.(void 0,o,e,this.state.context)),o}finally{Zc(Nl,this,Fl).call(this,{type:"error",error:o})}}finally{tl(Tl,this).runNext(this)}}});function Fl(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"pending":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}})(this.state),El.batch(()=>{tl(Ll,this).forEach(t=>{t.onMutationUpdate(e)}),tl(Tl,this).notify({mutation:this,type:"updated",action:e})})}function Hl(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Ul,ql,Bl,zl,Vl,Kl,Wl,Gl,Jl=(jl=new WeakMap,Al=new WeakMap,Il=new WeakMap,class extends Ec{constructor(e={}){super(),Xc(this,jl,void 0),Xc(this,Al,void 0),Xc(this,Il,void 0),this.config=e,el(jl,this,new Set),el(Al,this,new Map),el(Il,this,0)}build(e,t,n){var r;const o=new $l({mutationCache:this,mutationId:el(Il,this,(r=tl(Il,this),++r)),options:e.defaultMutationOptions(t),state:n});return this.add(o),o}add(e){tl(jl,this).add(e);const t=Yl(e);if("string"==typeof t){const n=tl(Al,this).get(t);n?n.push(e):tl(Al,this).set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(tl(jl,this).delete(e)){const t=Yl(e);if("string"==typeof t){const n=tl(Al,this).get(t);if(n)if(n.length>1){const t=n.indexOf(e);-1!==t&&n.splice(t,1)}else n[0]===e&&tl(Al,this).delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=Yl(e);if("string"==typeof t){const n=tl(Al,this).get(t)?.find(e=>"pending"===e.state.status);return!n||n===e}return!0}runNext(e){const t=Yl(e);return"string"==typeof t?(tl(Al,this).get(t)?.find(t=>t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){El.batch(()=>{tl(jl,this).forEach(e=>{this.notify({type:"removed",mutation:e})}),tl(jl,this).clear(),tl(Al,this).clear()})}getAll(){return Array.from(tl(jl,this))}find(e){const t={exact:!0,...e};return this.getAll().find(e=>Tc(t,e))}findAll(e={}){return this.getAll().filter(t=>Tc(e,t))}notify(e){El.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(e=>e.state.isPaused);return El.batch(()=>Promise.all(e.map(e=>e.continue().catch(kc))))}});function Yl(e){return e.options.scope?.id}function Ql(e){return{onFetch:(t,n)=>{const r=t.options,o=t.fetchOptions?.meta?.fetchMore?.direction,i=t.state.data?.pages||[],s=t.state.data?.pageParams||[];let a={pages:[],pageParams:[]},c=0;const l=async()=>{let n=!1;const l=zc(t.options,t.fetchOptions),u=async(e,r,o)=>{if(n)return Promise.reject();if(null==r&&e.pages.length)return Promise.resolve(e);const i=await l((()=>{const e={client:t.client,queryKey:t.queryKey,pageParam:r,direction:o?"backward":"forward",meta:t.options.meta};var i;return i=e,Object.defineProperty(i,"signal",{enumerable:!0,get:()=>(t.signal.aborted?n=!0:t.signal.addEventListener("abort",()=>{n=!0}),t.signal)}),e})()),{maxPages:s}=t.options,a=o?qc:Uc;return{pages:a(e.pages,i,s),pageParams:a(e.pageParams,r,s)}};if(o&&i.length){const e="backward"===o,t=e?Zl:Xl,n={pages:i,pageParams:s};a=await u(n,t(r,n),e)}else{const t=e??i.length;do{const e=0===c?s[0]??r.initialPageParam:Xl(r,a);if(c>0&&null==e)break;a=await u(a,e),c++}while(c<t)}return a};t.options.persister?t.fetchFn=()=>t.options.persister?.(l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=l}}}function Xl(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function Zl(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var eu=(Ul=new WeakMap,ql=new WeakMap,Bl=new WeakMap,zl=new WeakMap,Vl=new WeakMap,Kl=new WeakMap,Wl=new WeakMap,Gl=new WeakMap,class{constructor(e={}){Xc(this,Ul,void 0),Xc(this,ql,void 0),Xc(this,Bl,void 0),Xc(this,zl,void 0),Xc(this,Vl,void 0),Xc(this,Kl,void 0),Xc(this,Wl,void 0),Xc(this,Gl,void 0),el(Ul,this,e.queryCache||new Ml),el(ql,this,e.mutationCache||new Jl),el(Bl,this,e.defaultOptions||{}),el(zl,this,new Map),el(Vl,this,new Map),el(Kl,this,0)}mount(){var e;el(Kl,this,(e=tl(Kl,this),++e)),1===tl(Kl,this)&&(el(Wl,this,il.subscribe(async e=>{e&&(await this.resumePausedMutations(),tl(Ul,this).onFocus())})),el(Gl,this,sl.subscribe(async e=>{e&&(await this.resumePausedMutations(),tl(Ul,this).onOnline())})))}unmount(){var e;el(Kl,this,(e=tl(Kl,this),--e)),0===tl(Kl,this)&&(tl(Wl,this)?.call(this),el(Wl,this,void 0),tl(Gl,this)?.call(this),el(Gl,this,void 0))}isFetching(e){return tl(Ul,this).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return tl(ql,this).findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return tl(Ul,this).get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=tl(Ul,this).build(this,t),r=n.state.data;return void 0===r?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Pc(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return tl(Ul,this).findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),o=tl(Ul,this).get(r.queryHash)?.state.data,i=function(e,t){return"function"==typeof e?e(t):e}(t,o);if(void 0!==i)return tl(Ul,this).build(this,r).setData(i,{...n,manual:!0})}setQueriesData(e,t,n){return El.batch(()=>tl(Ul,this).findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return tl(Ul,this).get(t.queryHash)?.state}removeQueries(e){const t=tl(Ul,this);El.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){const n=tl(Ul,this);return El.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=El.batch(()=>tl(Ul,this).findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(kc).catch(kc)}invalidateQueries(e,t={}){return El.batch(()=>(tl(Ul,this).findAll(e).forEach(e=>{e.invalidate()}),"none"===e?.refetchType?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=El.batch(()=>tl(Ul,this).findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(kc)),"paused"===e.state.fetchStatus?Promise.resolve():t}));return Promise.all(r).then(kc)}fetchQuery(e){const t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);const n=tl(Ul,this).build(this,t);return n.isStaleByTime(Pc(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(kc).catch(kc)}fetchInfiniteQuery(e){return e.behavior=Ql(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(kc).catch(kc)}ensureInfiniteQueryData(e){return e.behavior=Ql(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return sl.isOnline()?tl(ql,this).resumePausedMutations():Promise.resolve()}getQueryCache(){return tl(Ul,this)}getMutationCache(){return tl(ql,this)}getDefaultOptions(){return tl(Bl,this)}setDefaultOptions(e){el(Bl,this,e)}setQueryDefaults(e,t){tl(zl,this).set(Nc(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...tl(zl,this).values()],n={};return t.forEach(t=>{jc(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){tl(Vl,this).set(Nc(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...tl(Vl,this).values()],n={};return t.forEach(t=>{jc(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...tl(Bl,this).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Dc(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.throwOnError&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===Bc&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...tl(Bl,this).mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){tl(Ul,this).clear(),tl(ql,this).clear()}}),tu=o(e=>{var t=s(),n=Symbol.for("react.element"),r=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,i=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,r){var s,c={},l=null,u=null;for(s in void 0!==r&&(l=""+r),void 0!==t.key&&(l=""+t.key),void 0!==t.ref&&(u=t.ref),t)o.call(t,s)&&!a.hasOwnProperty(s)&&(c[s]=t[s]);if(e&&e.defaultProps)for(s in t=e.defaultProps)void 0===c[s]&&(c[s]=t[s]);return{$$typeof:n,type:e,key:l,ref:u,props:c,_owner:i.current}}e.Fragment=r,e.jsx=c,e.jsxs=c}),nu=o((e,t)=>{t.exports=tu()}),ru=nu(),ou=zr.createContext(void 0),iu=e=>{const t=zr.useContext(ou);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},su=({client:e,children:t})=>(zr.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,ru.jsx)(ou.Provider,{value:e,children:t})),au=(0,zr.createContext)(null),cu={didCatch:!1,error:null},lu=class extends zr.Component{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=cu}static getDerivedStateFromError(e){return{didCatch:!0,error:e}}resetErrorBoundary(){const{error:e}=this.state;if(null!==e){for(var t,n,r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];null===(t=(n=this.props).onReset)||void 0===t||t.call(n,{args:o,reason:"imperative-api"}),this.setState(cu)}}componentDidCatch(e,t){var n,r;null===(n=(r=this.props).onError)||void 0===n||n.call(r,e,t)}componentDidUpdate(e,t){const{didCatch:n}=this.state,{resetKeys:r}=this.props;var o,i;n&&null!==t.error&&function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.length!==t.length||e.some((e,n)=>!Object.is(e,t[n]))}(e.resetKeys,r)&&(null===(o=(i=this.props).onReset)||void 0===o||o.call(i,{next:r,prev:e.resetKeys,reason:"keys"}),this.setState(cu))}render(){const{children:e,fallbackRender:t,FallbackComponent:n,fallback:r}=this.props,{didCatch:o,error:i}=this.state;let s=e;if(o){const e={error:i,resetErrorBoundary:this.resetErrorBoundary};if("function"==typeof t)s=t(e);else if(n)s=(0,zr.createElement)(n,e);else{if(void 0===r)throw i;s=r}}return(0,zr.createElement)(au.Provider,{value:{didCatch:o,error:i,resetErrorBoundary:this.resetErrorBoundary}},s)}};var uu=function(e){return e.LOCAL_CONTENT="local-content",e.LOCAL_CONTENT_GOOGLE_MAPS="local-content-google-maps",e.LOCAL_DEMOGRAPHICS="local-demographics",e.NEIGHBORHOOD_HERO="neighborhood-hero",e.NEIGHBORHOOD_MAP="neighborhood-map",e.NEIGHBORHOOD_CHARACTERISTICS="neighborhood-characteristics",e.NEIGHBORHOOD_HIGHLIGHTS="neighborhood-highlights",e.NEIGHBORHOOD_DEMOGRAPHICS="neighborhood-demographics",e.NEIGHBORHOOD_PROPERTY_VALUE_DRIVERS="neighborhood-property-value-drivers",e.NEIGHBORHOOD_MATCH="neighborhood-match",e.NEIGHBORHOOD_MARKET_TRENDS="neighborhood-market-trends",e.NEIGHBORHOOD_SCHOOLS="neighborhood-schools",e.LEAD_CAPTURE="lead-capture",e.NEIGHBORHOOD_SHOWCASE="neighborhood-showcase",e.NEIGHBORHOOD_FEATURED="neighborhood-featured",e}({}),du={},hu=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){const e=document.getElementsByTagName("link"),i=document.querySelector("meta[property=csp-nonce]"),s=i?.nonce||i?.getAttribute("nonce");o=t.map(t=>{if((t=function(e){return"/sdks-app/v1/"+e}(t))in du)return;du[t]=!0;const r=t.endsWith(".css"),o=r?'[rel="stylesheet"]':"";if(n)for(let n=e.length-1;n>=0;n--){const o=e[n];if(o.href===t&&(!r||"stylesheet"===o.rel))return}else if(document.querySelector(`link[href="${t}"]${o}`))return;const i=document.createElement("link");return i.rel=r?"stylesheet":"modulepreload",r||(i.as="script"),i.crossOrigin="",i.href=t,s&&i.setAttribute("nonce",s),document.head.appendChild(i),r?new Promise((e,n)=>{i.addEventListener("load",e),i.addEventListener("error",()=>n(new Error(`Unable to preload CSS for ${t}`)))}):void 0}),r=Promise.all(o.map(e=>Promise.resolve(e).then(e=>({status:"fulfilled",value:e}),e=>({status:"rejected",reason:e}))))}var o;function i(e){const t=new Event("vite:preloadError",{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(const e of t||[])"rejected"===e.status&&i(e.reason);return e().catch(i)})},pu=new Yc.ReactLocation,fu=zr.lazy(()=>hu(()=>import("./LocalContent-DL6Y67Ne.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32]))),gu=zr.lazy(()=>hu(()=>import("./LocalDemographics-DcirUh9h.js"),__vite__mapDeps([33,1,2,3,10,6,11,34,35,36,37,27,38,39,30,40]))),mu=zr.lazy(()=>hu(()=>import("./NeighborhoodHero-Bj4FlQVV.js"),__vite__mapDeps([41,1,2,3,12,6,37,38,28,42,43,32]))),vu=zr.lazy(()=>hu(()=>import("./NeighborhoodMap-DwMQLhkw.js"),__vite__mapDeps([44,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,37,26,27,28,42,31,32]))),yu=zr.lazy(()=>hu(()=>import("./NeighborhoodCharacteristics-__nE9rKT.js"),__vite__mapDeps([45,1,2,3,37,25,27,38,46,21,6,23,5,7,8,19,20,11,39,28,42,43,29,31,32]))),bu=zr.lazy(()=>hu(()=>import("./NeighborhoodHighlights-BBmVnaLl.js"),__vite__mapDeps([47,1,2,3,23,5,6,7,8,19,20,11,37,48,38,39,28,42,29,32]))),wu=zr.lazy(()=>hu(()=>import("./NeighborhoodDemographics-5cGgXnRY.js"),__vite__mapDeps([49,1,2,3,20,6,21,11,34,35,37,27,48,38,39,28,42,30,31,40]))),xu=zr.lazy(()=>hu(()=>import("./NeighborhoodPropertyValueDrivers-Cz4cawqR.js"),__vite__mapDeps([50,1,2,3,5,6,9,19,37,48,38,39,28,42,40]))),_u=zr.lazy(()=>hu(()=>import("./NeighborhoodMatch-GqzEoreu.js"),__vite__mapDeps([51,1,2,3,37,26,27,52,48,38,46,21,6,23,5,7,8,19,20,11,25,39,28,42,31,32]))),Eu=zr.lazy(()=>hu(()=>import("./NeighborhoodMarketTrends-COqvs4Fz.js"),__vite__mapDeps([53,1,2,3,21,6,54,13,36,37,27,48,38,39,28,42,40]))),Su=zr.lazy(()=>hu(()=>import("./NeighborhoodSchools-D6CPTgGE.js"),__vite__mapDeps([55,1,2,3,7,6,21,11,37,25,26,27,48,38,39,28,42,17,30,56,32]))),ku=zr.lazy(()=>hu(()=>import("./NeighborhoodShowcase-CRlKc8OL.js"),__vite__mapDeps([57,1,2,3,24,6,58,37,59,52,38,28,40]))),Ou=zr.lazy(()=>hu(()=>import("./NeighborhoodFeatured-DIXhmlRC.js"),__vite__mapDeps([60,1,2,3,58,37,59,52,38,28,40]))),Cu=zr.lazy(()=>hu(()=>import("./LeadCapture-IqeCbA_u.js"),__vite__mapDeps([61,1,2,3,21,6,22,54,12,35,58,37,26,27,38,28,42,30,31,32]))),Pu=({children:e})=>(0,ru.jsx)(Yc.Router,{location:pu,routes:[{path:`/sdks-app/v1/${uu.LOCAL_CONTENT}`,element:(0,ru.jsx)(fu,{})},{path:`/sdks-app/v1/${uu.LOCAL_DEMOGRAPHICS}`,element:(0,ru.jsx)(gu,{})},{path:`/sdks-app/v1/local-${uu.NEIGHBORHOOD_MAP}`,element:(0,ru.jsx)(vu,{})},{path:`/sdks-app/v1/local-${uu.NEIGHBORHOOD_HERO}`,element:(0,ru.jsx)(mu,{})},{path:`/sdks-app/v1/local-${uu.NEIGHBORHOOD_CHARACTERISTICS}`,element:(0,ru.jsx)(yu,{})},{path:`/sdks-app/v1/local-${uu.NEIGHBORHOOD_HIGHLIGHTS}`,element:(0,ru.jsx)(bu,{})},{path:`/sdks-app/v1/local-${uu.NEIGHBORHOOD_DEMOGRAPHICS}`,element:(0,ru.jsx)(wu,{})},{path:`/sdks-app/v1/local-${uu.NEIGHBORHOOD_PROPERTY_VALUE_DRIVERS}`,element:(0,ru.jsx)(xu,{})},{path:`/sdks-app/v1/local-${uu.NEIGHBORHOOD_MATCH}`,element:(0,ru.jsx)(_u,{})},{path:"/sdks-app/v1/demographics",element:(0,ru.jsx)(gu,{})},{path:`/sdks-app/v1/${uu.NEIGHBORHOOD_MAP}`,element:(0,ru.jsx)(vu,{})},{path:`/sdks-app/v1/${uu.NEIGHBORHOOD_HERO}`,element:(0,ru.jsx)(mu,{})},{path:`/sdks-app/v1/${uu.NEIGHBORHOOD_CHARACTERISTICS}`,element:(0,ru.jsx)(yu,{})},{path:`/sdks-app/v1/${uu.NEIGHBORHOOD_HIGHLIGHTS}`,element:(0,ru.jsx)(bu,{})},{path:`/sdks-app/v1/${uu.NEIGHBORHOOD_DEMOGRAPHICS}`,element:(0,ru.jsx)(wu,{})},{path:`/sdks-app/v1/${uu.NEIGHBORHOOD_PROPERTY_VALUE_DRIVERS}`,element:(0,ru.jsx)(xu,{})},{path:`/sdks-app/v1/${uu.NEIGHBORHOOD_MATCH}`,element:(0,ru.jsx)(_u,{})},{path:`/sdks-app/v1/${uu.NEIGHBORHOOD_MARKET_TRENDS}`,element:(0,ru.jsx)(Eu,{})},{path:`/sdks-app/v1/${uu.NEIGHBORHOOD_SCHOOLS}`,element:(0,ru.jsx)(Su,{})},{path:`/sdks-app/v1/${uu.NEIGHBORHOOD_SHOWCASE}`,element:(0,ru.jsx)(ku,{})},{path:`/sdks-app/v1/${uu.NEIGHBORHOOD_FEATURED}`,element:(0,ru.jsx)(Ou,{})},{path:`/sdks-app/v1/${uu.LEAD_CAPTURE}`,element:(0,ru.jsx)(Cu,{})}],children:e}),Ru={"--ll-base-unit":"var(--ll-base-unit)","--ll-color-primary":"var(--ll-color-primary)","--ll-color-primary-variant1":"var(--ll-color-primary-variant1)","--ll-color-background":"var(--ll-color-background)","--ll-color-surface":"var(--ll-color-surface)","--ll-color-surface-variant1":"var(--ll-color-surface-variant1)","--ll-color-surface-variant2":"var(--ll-color-surface-variant2)","--ll-color-on-primary":"var(--ll-color-on-primary)","--ll-color-on-primary-variant1":"var(--ll-color-on-primary-variant1)","--ll-color-on-background":"var(--ll-color-on-background)","--ll-color-on-background-variant1":"var(--ll-color-on-background-variant1)","--ll-color-on-surface":"var(--ll-color-on-surface)","--ll-color-on-surface-variant1":"var(--ll-color-on-surface-variant1)","--ll-color-placeholder":"var(--ll-color-placeholder)","--ll-color-disabled":"var(--ll-color-disabled)","--ll-color-border":"var(--ll-color-border)","--ll-color-link":"var(--ll-color-link)","--ll-sdk-title-color":"var(--ll-sdk-title-color)","--ll-color-error":"var(--ll-color-error)","--ll-border-radius-base-unit":"var(--ll-border-radius-base-unit)","--ll-border-radius-small":"var(--ll-border-radius-small)","--ll-border-radius-medium":"var(--ll-border-radius-medium)","--ll-border-radius-large":"var(--ll-border-radius-large)","--ll-shadow-small":"var(--ll-shadow-small)","--ll-shadow-medium":"var(--ll-shadow-medium)","--ll-spacing-base-unit":"var(--ll-spacing-base-unit)","--ll-spacing-auto":"var(--ll-spacing-auto)","--ll-spacing-xx-small":"var(--ll-spacing-xx-small)","--ll-spacing-x-small":"var(--ll-spacing-x-small)","--ll-spacing-small":"var(--ll-spacing-small)","--ll-spacing-medium":"var(--ll-spacing-medium)","--ll-spacing-large":"var(--ll-spacing-large)","--ll-spacing-x-large":"var(--ll-spacing-x-large)","--ll-spacing-xx-large":"var(--ll-spacing-xx-large)","--ll-spacing-xxx-large":"var(--ll-spacing-xxx-large)","--ll-font-family":"var(--ll-font-family)","--ll-font-family-mono":"var(--ll-font-family-mono)","--ll-font-size-base":"var(--ll-font-size-base)","--ll-font-size-h1":"var(--ll-font-size-h1)","--ll-font-size-h2":"var(--ll-font-size-h2)","--ll-font-size-h3":"var(--ll-font-size-h3)","--ll-font-size-h4":"var(--ll-font-size-h4)","--ll-font-size-h5":"var(--ll-font-size-h5)","--ll-font-size-h6":"var(--ll-font-size-h6)","--ll-font-size-p":"var(--ll-font-size-p)","--ll-font-size-caption-1":"var(--ll-font-size-caption-1)","--ll-font-size-caption-2":"var(--ll-font-size-caption-2)","--ll-font-weight-light":"var(--ll-font-weight-light)","--ll-font-weight-normal":"var(--ll-font-weight-normal)","--ll-font-weight-medium":"var(--ll-font-weight-medium)","--ll-font-weight-semibold":"var(--ll-font-weight-semibold)","--ll-font-weight-bold":"var(--ll-font-weight-bold)"},Lu=r({blueColors:()=>Nu,neutralColors:()=>Du,primaryColors:()=>Tu}),Tu={colorPrimary100:"#FFFFFF",colorPrimary99:"#04162d",colorPrimary95:"#C8F9FF",colorPrimary90:"#87F2FF",colorPrimary80:"#4ED8E9",colorPrimary70:"#21BCCC",colorPrimary60:"#00A0AF",colorPrimary50:"#008491",colorPrimary40:"#006974",colorPrimary30:"#004F57",colorPrimary20:"#00363C",colorPrimary10:"#001F23",colorPrimary0:"#000000"},Du={colorNeutral100:"#FFFFFF",colorNeutral99:"#FBFDFD",colorNeutral95:"#EFF1F1",colorNeutral90:"#E0E3E3",colorNeutral80:"#C4C7C7",colorNeutral70:"#A9ACAC",colorNeutral60:"#8E9191",colorNeutral50:"#747878",colorNeutral40:"#5C5F5F",colorNeutral30:"#444747",colorNeutral20:"#2D3131",colorNeutral10:"#191C1D",colorNeutral0:"#000000"},Nu={colorBlue70:"#0056D3"},ju=r({transitions:()=>Au}),Au={default:{ease:"easeInOut",duration:.15},defaultSlow:{ease:"easeInOut",duration:.4},spring:{type:"spring",duration:.4,bounce:.3}},Iu=r({screenSizes:()=>Mu}),Mu={mobileS:320,mobileM:375,mobileL:425,tablet:768,laptopS:1024,laptopL:1440,desktop:2560},$u={colors:Lu,...ju,...Iu},Fu=({SVGElement:e,fill:t=`${Ru["--ll-color-on-background"]}`,className:n,height:r=24,width:o=24})=>(0,ru.jsx)("div",{className:`${n} [&>svg]:fill-inherit`,style:{height:`${r}px`,width:`${o}px`,fill:t},children:(0,ru.jsx)(e,{})}),Hu=({children:e,variant:t="p",align:n,color:r="--ll-color-on-background",lineClamp:o,noMargin:i,lineHeight:s,weight:a="normal",family:c="sans-serif",className:l,textTransform:u="none",letterSpacing:d,fontVariant:h="initial"})=>(0,ru.jsx)(`${["caption1","caption2","p"].includes(t)?"p":t}`,{style:{color:`${r in Ru?Ru[r]:r}`,fontVariant:`${h}`,lineHeight:s||"1.45",letterSpacing:`${d}`,fontWeight:Ru[a]},className:`${l} \n m-0 mb-2\n data-[nomargin=true]:mb-0\n data-[align=left]:text-left\n data-[align=center]:text-center\n data-[align=right]:text-right\n data-[variant=h1]:text-ll-font-size-h1\n data-[variant=h2]:text-ll-font-size-h2\n data-[variant=h3]:text-ll-font-size-h3\n data-[variant=h4]:text-ll-font-size-h4\n data-[variant=h5]:text-ll-font-size-h5\n data-[variant=h6]:text-ll-font-size-h6\n data-[variant=p]:text-ll-font-size-p\n data-[variant=caption1]:text-ll-font-size-caption-1\n data-[variant=caption2]:text-ll-font-size-caption-2\n data-[texttransform=capitalize]:capitalize\n data-[texttransform=uppercase]:uppercase\n data-[texttransform=lowercase]:lowercase\n data-[texttransform=none]:normal-case\n data-[family=sans-serif]:font-sans\n data-[family=mono]:font-mono\n\n data-[lineclamp=none]:line-clamp-none\n data-[lineclamp=none]:whitespace-nowrap\n data-[lineclamp="1"]:line-clamp-1\n data-[lineclamp="2"]:line-clamp-2\n data-[lineclamp="3"]:line-clamp-3\n data-[lineclamp="4"]:line-clamp-4\n data-[lineclamp="5"]:line-clamp-5\n data-[lineclamp="6"]:line-clamp-g\n`,"data-align":n,"data-variant":t,"data-texttransform":u,"data-family":c,"data-nomargin":i,"data-lineclamp":o,children:e});function Uu(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function qu(...e){return t=>{let n=!1;const r=e.map(e=>{const r=Uu(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){const n=r[t];"function"==typeof n?n():Uu(e[t],null)}}}}function Bu(...e){return zr.useCallback(qu(...e),e)}var zu=Symbol.for("react.lazy"),Vu=zr[" use ".trim().toString()];function Ku(e){return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===zu&&"_payload"in e&&("object"==typeof(t=e._payload)&&null!==t&&"then"in t);var t}function Wu(e){const t=zr.forwardRef((e,t)=>{let{children:n,...r}=e;if(Ku(n)&&"function"==typeof Vu&&(n=Vu(n._payload)),zr.isValidElement(n)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}(n),o=function(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{const t=i(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props);return n.type!==zr.Fragment&&(o.ref=t?qu(t,e):e),zr.cloneElement(n,o)}return zr.Children.count(n)>1?zr.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Gu=Symbol("radix.slottable");function Ju(e){return zr.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===Gu}var Yu=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{const n=function(e){const t=Wu(e),n=zr.forwardRef((e,n)=>{let{children:r,...o}=e;Ku(r)&&"function"==typeof Vu&&(r=Vu(r._payload));const i=zr.Children.toArray(r),s=i.find(Ju);if(s){const e=s.props.children,r=i.map(t=>t===s?zr.Children.count(e)>1?zr.Children.only(null):zr.isValidElement(e)?e.props.children:null:t);return(0,ru.jsx)(t,{...o,ref:n,children:zr.isValidElement(e)?zr.cloneElement(e,void 0,r):null})}return(0,ru.jsx)(t,{...o,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}(`Primitive.${t}`),r=zr.forwardRef((e,r)=>{const{asChild:o,...i}=e,s=o?n:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,ru.jsx)(s,{...i,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Qu=zr.forwardRef((e,t)=>(0,ru.jsx)(Yu.label,{...e,ref:t,onMouseDown:t=>{t.target.closest("button, input, select, textarea")||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));Qu.displayName="Label";var Xu=Qu,Zu=e=>(0,ru.jsx)(Xu,{className:"\n text-ll-font-size-p text-ll-on-background font-sans\n",...e}),ed=({size:e="medium",image:t,color:n="default"})=>t?(0,ru.jsx)("img",{src:"/sdks-app/v1/assets/spinner-qYD5cm1L.gif",alt:"Loading animation",width:90,height:90,className:"h-[90px] w-[90px] max-h-auto"}):(0,ru.jsx)("div",{className:"\n border-solid \n border-ll-on-surface-variant1\n border-b-[transparent]\n rounded-[50%]\n inline-block\n border-box\n animate-spin\n\n data-[color=white]:border-white\n data-[color=white]:border-b-[transparent]\n\n data-[size=small]:h-4\n data-[size=small]:w-4\n data-[size=small]:border-2\n\n data-[size=medium]:h-6\n data-[size=medium]:w-6\n data-[size=medium]:border-4\n\n data-[size=large]:h-8\n data-[size=large]:w-8\n data-[size=large]:border-[6px]\n","data-size":e,"data-color":n}),td=zr.forwardRef(({children:e,disabled:t=!1,onClick:n,variant:r="contained",startAdornment:o,size:i="medium",type:s="button",isLoading:a,props:c},l)=>(0,ru.jsx)("button",{"data-variant":r,"data-size":i,onClick:e=>{t||n&&(a||n(e))},disabled:t||a,className:"\n group\n font-normal rounded inline-flex items-center justify-center cursor-pointer\n bg-transparent border-0 box-border h-10 py-0 px-3\n text-ll-font-size-p\n\n disabled:cursor-default\n\n data-[size=small]:h-8\n data-[size=small]:px-2\n data-[size=small]:text-ll-font-size-caption-1\n\n data-[size=large]:h-12\n data-[size=large]:px-4\n\n data-[variant=contained]:bg-ll-primary\n data-[variant=contained]:text-ll-on-primary\n data-[variant=contained]:border\n data-[variant=contained]:border-solid\n data-[variant=contained]:border-transparent\n data-[variant=contained]:hover:bg-ll-primary-variant1\n data-[variant=contained]:disabled:bg-ll-disabled\n \n\n data-[variant=outlined]:bg-ll-background\n data-[variant=outlined]:text-ll-primary\n data-[variant=outlined]:border\n data-[variant=outlined]:border-solid\n data-[variant=outlined]:border-ll-primary\n data-[variant=outlined]:hover:bg-ll-surface-variant1\n data-[variant=outlined]:disabled:bg-ll-disabled\n data-[variant=outlined]:disabled:text-ll-on-primary\n data-[variant=outlined]:disabled:border-ll-on-background\n\n data-[variant=text]:text-ll-on-background\n",type:s,ref:l,...c,children:a?(0,ru.jsx)(ed,{}):(0,ru.jsxs)(ru.Fragment,{children:[o&&(0,ru.jsx)("div",{className:"\n flex items-center mr-2 ml-1\n [&>svg]:fill-current [&>svg]:h-5 [&>svg]:w-5\n\n group-data-[size=small]:[&>svg]:h-3\n group-data-[size=small]:[&>svg]:w-3\n\n group-data-[size=large]:[&>svg]:h-6\n group-data-[size=large]:[&>svg]:w-6\n",children:o}),e]})}));td.displayName="Button";var nd=e=>zr.createElement("svg",{viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",...e},zr.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 0C4.47 0 0 4.47 0 10C0 15.53 4.47 20 10 20C15.53 20 20 15.53 20 10C20 4.47 15.53 0 10 0ZM10 18C5.59 18 2 14.41 2 10C2 5.59 5.59 2 10 2C14.41 2 18 5.59 18 10C18 14.41 14.41 18 10 18ZM10 8.59L13.59 5L15 6.41L11.41 10L15 13.59L13.59 15L10 11.41L6.41 15L5 13.59L8.59 10L5 6.41L6.41 5L10 8.59Z"}));function rd(e,[t,n]){return Math.min(n,Math.max(t,e))}function od(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function id(e,t=[]){let n=[];const r=()=>{const t=n.map(e=>zr.createContext(e));return function(n){const r=n?.[e]||t;return zr.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){const o=zr.createContext(r),i=n.length;n=[...n,r];const s=t=>{const{scope:n,children:r,...s}=t,a=n?.[e]?.[i]||o,c=zr.useMemo(()=>s,Object.values(s));return(0,ru.jsx)(a.Provider,{value:c,children:r})};return s.displayName=t+"Provider",[s,function(n,s){const a=s?.[e]?.[i]||o,c=zr.useContext(a);if(c)return c;if(void 0!==r)return r;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},sd(r,...t)]}function sd(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){const r=n.reduce((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]}),{});return zr.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}function ad(e){const t=cd(e),n=zr.forwardRef((e,n)=>{const{children:r,...o}=e,i=zr.Children.toArray(r),s=i.find(dd);if(s){const e=s.props.children,r=i.map(t=>t===s?zr.Children.count(e)>1?zr.Children.only(null):zr.isValidElement(e)?e.props.children:null:t);return(0,ru.jsx)(t,{...o,ref:n,children:zr.isValidElement(e)?zr.cloneElement(e,void 0,r):null})}return(0,ru.jsx)(t,{...o,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}function cd(e){const t=zr.forwardRef((e,t)=>{const{children:n,...r}=e;if(zr.isValidElement(n)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}(n),o=function(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{const t=i(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props);return n.type!==zr.Fragment&&(o.ref=t?qu(t,e):e),zr.cloneElement(n,o)}return zr.Children.count(n)>1?zr.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(0,zr.forwardRef)(({name:e,value:t,label:n,placeholder:r,className:o,autofocus:i=!1,hasError:s=!1,adornment:a,onBlur:c,onFocus:l,onClear:u,onChange:d},h)=>{const p=(0,zr.useId)(),f=(0,zr.useRef)(null),g=(0,zr.useRef)(null);(0,zr.useImperativeHandle)(h,()=>({focus:()=>{f?.current?.focus()},get input(){return f.current},get container(){return g.current}}));const m=(0,zr.useMemo)(()=>n?(0,ru.jsx)(Zu,{htmlFor:p,style:{lineHeight:"26px"},children:n}):null,[n]);return(0,ru.jsxs)("div",{className:"\n flex flex-col flex-1\n",ref:g,children:[m,(0,ru.jsxs)("div",{className:"\n border flex items-center bg-ll-background\n rounded-sm focus-within:shadow-lg\n data-[has-error=true]:border-ll-error\n data-[has-error=false]:border-ll-border\n","data-has-error":s,children:[a&&(0,ru.jsx)("span",{className:"\n h-full w-[20px] flex justify-center items-center mx-2\n",children:a}),(0,ru.jsx)("input",{type:"text",className:`${o} \n border flex-1 text-ll-on-background h-[30px]\n inline-flex justify-center items-center py-0 px-2\n leading-none font-sans text-ll-font-size-h6 md:text-ll-font-size-p \n `,ref:f,name:e,autoFocus:i,id:p,value:t,onBlur:c,onFocus:l,onChange:d,placeholder:r,style:a&&{width:"-webkit-fill-available"}}),u&&(0,ru.jsx)(td,{size:"small",variant:"text",onClick:u,children:(0,ru.jsx)(nd,{})})]})]})}).displayName="Input";var ld,ud=Symbol("radix.slottable");function dd(e){return zr.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===ud}function hd(e){const t=e+"CollectionProvider",[n,r]=id(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=e=>{const{scope:t,children:n}=e,r=zr.useRef(null),i=zr.useRef(new Map).current;return(0,ru.jsx)(o,{scope:t,itemMap:i,collectionRef:r,children:n})};s.displayName=t;const a=e+"CollectionSlot",c=ad(a),l=zr.forwardRef((e,t)=>{const{scope:n,children:r}=e;return(0,ru.jsx)(c,{ref:Bu(t,i(a,n).collectionRef),children:r})});l.displayName=a;const u=e+"CollectionItemSlot",d="data-radix-collection-item",h=ad(u),p=zr.forwardRef((e,t)=>{const{scope:n,children:r,...o}=e,s=zr.useRef(null),a=Bu(t,s),c=i(u,n);return zr.useEffect(()=>(c.itemMap.set(s,{ref:s,...o}),()=>{c.itemMap.delete(s)})),(0,ru.jsx)(h,{[d]:"",ref:a,children:r})});return p.displayName=u,[{Provider:s,Slot:l,ItemSlot:p},function(t){const n=i(e+"CollectionConsumer",t);return zr.useCallback(()=>{const e=n.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${d}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])},r]}var pd=new WeakMap;ld=new WeakMap,Map;function fd(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);const n=function(e,t){const n=e.length,r=gd(t),o=r>=0?r:n+r;return o<0||o>=n?-1:o}(e,t);return-1===n?void 0:e[n]}function gd(e){return e!=e||0===e?0:Math.trunc(e)}var md=zr.createContext(void 0);function vd(e){const t=zr.useContext(md);return e||t||"ltr"}var yd=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{const n=ad(`Primitive.${t}`),r=zr.forwardRef((e,r)=>{const{asChild:o,...i}=e,s=o?n:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,ru.jsx)(s,{...i,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function bd(e){const t=zr.useRef(e);return zr.useEffect(()=>{t.current=e}),zr.useMemo(()=>(...e)=>t.current?.(...e),[])}var wd,xd="dismissableLayer.update",_d="dismissableLayer.pointerDownOutside",Ed="dismissableLayer.focusOutside",Sd=zr.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),kd=zr.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:a,...c}=e,l=zr.useContext(Sd),[u,d]=zr.useState(null),h=u?.ownerDocument??globalThis?.document,[,p]=zr.useState({}),f=Bu(t,e=>d(e)),g=Array.from(l.layers),[m]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),v=g.indexOf(m),y=u?g.indexOf(u):-1,b=l.layersWithOutsidePointerEventsDisabled.size>0,w=y>=v,x=function(e,t=globalThis?.document){const n=bd(e),r=zr.useRef(!1),o=zr.useRef(()=>{});return zr.useEffect(()=>{const e=e=>{if(e.target&&!r.current){let r=function(){Cd(_d,n,i,{discrete:!0})};const i={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",o.current),o.current=r,t.addEventListener("click",o.current,{once:!0})):r()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",e),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}(e=>{const t=e.target,n=[...l.branches].some(e=>e.contains(t));w&&!n&&(o?.(e),s?.(e),e.defaultPrevented||a?.())},h),_=function(e,t=globalThis?.document){const n=bd(e),r=zr.useRef(!1);return zr.useEffect(()=>{const e=e=>{e.target&&!r.current&&Cd(Ed,n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}(e=>{const t=e.target;[...l.branches].some(e=>e.contains(t))||(i?.(e),s?.(e),e.defaultPrevented||a?.())},h);return function(e,t=globalThis?.document){const n=bd(e);zr.useEffect(()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[n,t])}(e=>{y===l.layers.size-1&&(r?.(e),!e.defaultPrevented&&a&&(e.preventDefault(),a()))},h),zr.useEffect(()=>{if(u)return n&&(0===l.layersWithOutsidePointerEventsDisabled.size&&(wd=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(u)),l.layers.add(u),Od(),()=>{n&&1===l.layersWithOutsidePointerEventsDisabled.size&&(h.body.style.pointerEvents=wd)}},[u,h,n,l]),zr.useEffect(()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),Od())},[u,l]),zr.useEffect(()=>{const e=()=>p({});return document.addEventListener(xd,e),()=>document.removeEventListener(xd,e)},[]),(0,ru.jsx)(yd.div,{...c,ref:f,style:{pointerEvents:b?w?"auto":"none":void 0,...e.style},onFocusCapture:od(e.onFocusCapture,_.onFocusCapture),onBlurCapture:od(e.onBlurCapture,_.onBlurCapture),onPointerDownCapture:od(e.onPointerDownCapture,x.onPointerDownCapture)})});kd.displayName="DismissableLayer";function Od(){const e=new CustomEvent(xd);document.dispatchEvent(e)}function Cd(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?function(e,t){e&&Jc.flushSync(()=>e.dispatchEvent(t))}(o,i):o.dispatchEvent(i)}zr.forwardRef((e,t)=>{const n=zr.useContext(Sd),r=zr.useRef(null),o=Bu(t,r);return zr.useEffect(()=>{const e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,ru.jsx)(yd.div,{...e,ref:o})}).displayName="DismissableLayerBranch";var Pd=0;function Rd(){zr.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Ld()),document.body.insertAdjacentElement("beforeend",e[1]??Ld()),Pd++,()=>{1===Pd&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),Pd--}},[])}function Ld(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Td="focusScope.autoFocusOnMount",Dd="focusScope.autoFocusOnUnmount",Nd={bubbles:!1,cancelable:!0},jd=zr.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...s}=e,[a,c]=zr.useState(null),l=bd(o),u=bd(i),d=zr.useRef(null),h=Bu(t,e=>c(e)),p=zr.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;zr.useEffect(()=>{if(r){let e=function(e){if(p.paused||!a)return;const t=e.target;a.contains(t)?d.current=t:$d(d.current,{select:!0})},t=function(e){if(p.paused||!a)return;const t=e.relatedTarget;null!==t&&(a.contains(t)||$d(d.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&$d(a)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const r=new MutationObserver(n);return a&&r.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}},[r,a,p.paused]),zr.useEffect(()=>{if(a){Fd.add(p);const t=document.activeElement;if(!a.contains(t)){const n=new CustomEvent(Td,Nd);a.addEventListener(Td,l),a.dispatchEvent(n),n.defaultPrevented||(!function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if($d(r,{select:t}),document.activeElement!==n)return}((e=Ad(a),e.filter(e=>"A"!==e.tagName)),{select:!0}),document.activeElement===t&&$d(a))}return()=>{a.removeEventListener(Td,l),setTimeout(()=>{const e=new CustomEvent(Dd,Nd);a.addEventListener(Dd,u),a.dispatchEvent(e),e.defaultPrevented||$d(t??document.body,{select:!0}),a.removeEventListener(Dd,u),Fd.remove(p)},0)}}var e},[a,l,u,p]);const f=zr.useCallback(e=>{if(!n&&!r)return;if(p.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){const t=e.currentTarget,[r,i]=function(e){const t=Ad(e);return[Id(t,e),Id(t.reverse(),e)]}(t);r&&i?e.shiftKey||o!==i?e.shiftKey&&o===r&&(e.preventDefault(),n&&$d(i,{select:!0})):(e.preventDefault(),n&&$d(r,{select:!0})):o===t&&e.preventDefault()}},[n,r,p.paused]);return(0,ru.jsx)(yd.div,{tabIndex:-1,...s,ref:h,onKeyDown:f})});function Ad(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Id(e,t){for(const n of e)if(!Md(n,{upTo:t}))return n}function Md(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function $d(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}jd.displayName="FocusScope";var Fd=function(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=Hd(e,t),e.unshift(t)},remove(t){e=Hd(e,t),e[0]?.resume()}}}();function Hd(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}var Ud=globalThis?.document?zr.useLayoutEffect:()=>{},qd=zr[" useId ".trim().toString()]||(()=>{}),Bd=0;function zd(e){const[t,n]=zr.useState(qd());return Ud(()=>{e||n(e=>e??String(Bd++))},[e]),e||(t?`radix-${t}`:"")}var Vd=["top","right","bottom","left"],Kd=Math.min,Wd=Math.max,Gd=Math.round,Jd=Math.floor,Yd=e=>({x:e,y:e}),Qd={left:"right",right:"left",bottom:"top",top:"bottom"},Xd={start:"end",end:"start"};function Zd(e,t,n){return Wd(e,Kd(t,n))}function eh(e,t){return"function"==typeof e?e(t):e}function th(e){return e.split("-")[0]}function nh(e){return e.split("-")[1]}function rh(e){return"x"===e?"y":"x"}function oh(e){return"y"===e?"height":"width"}function ih(e){return["top","bottom"].includes(th(e))?"y":"x"}function sh(e){return rh(ih(e))}function ah(e){return e.replace(/start|end/g,e=>Xd[e])}function ch(e){return e.replace(/left|right|bottom|top/g,e=>Qd[e])}function lh(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function uh(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function dh(e,t,n){let{reference:r,floating:o}=e;const i=ih(t),s=sh(t),a=oh(s),c=th(t),l="y"===i,u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,h=r[a]/2-o[a]/2;let p;switch(c){case"top":p={x:u,y:r.y-o.height};break;case"bottom":p={x:u,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-o.width,y:d};break;default:p={x:r.x,y:r.y}}switch(nh(t)){case"start":p[s]-=h*(n&&l?-1:1);break;case"end":p[s]+=h*(n&&l?-1:1)}return p}async function hh(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:s,elements:a,strategy:c}=e,{boundary:l="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:h=!1,padding:p=0}=eh(t,e),f=lh(p),g=a[h?"floating"===d?"reference":"floating":d],m=uh(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(g)))||n?g:g.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:l,rootBoundary:u,strategy:c})),v="floating"===d?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,y=await(null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),b=await(null==i.isElement?void 0:i.isElement(y))&&await(null==i.getScale?void 0:i.getScale(y))||{x:1,y:1},w=uh(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:v,offsetParent:y,strategy:c}):v);return{top:(m.top-w.top+f.top)/b.y,bottom:(w.bottom-m.bottom+f.bottom)/b.y,left:(m.left-w.left+f.left)/b.x,right:(w.right-m.right+f.right)/b.x}}function ph(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function fh(e){return Vd.some(t=>e[t]>=0)}function gh(){return"undefined"!=typeof window}function mh(e){return bh(e)?(e.nodeName||"").toLowerCase():"#document"}function vh(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function yh(e){var t;return null==(t=(bh(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function bh(e){return!!gh()&&(e instanceof Node||e instanceof vh(e).Node)}function wh(e){return!!gh()&&(e instanceof Element||e instanceof vh(e).Element)}function xh(e){return!!gh()&&(e instanceof HTMLElement||e instanceof vh(e).HTMLElement)}function _h(e){return!(!gh()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof vh(e).ShadowRoot)}function Eh(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Rh(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function Sh(e){return["table","td","th"].includes(mh(e))}function kh(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch(cv){return!1}})}function Oh(e){const t=Ch(),n=wh(e)?Rh(e):e;return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some(e=>(n.willChange||"").includes(e))||["paint","layout","strict","content"].some(e=>(n.contain||"").includes(e))}function Ch(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Ph(e){return["html","body","#document"].includes(mh(e))}function Rh(e){return vh(e).getComputedStyle(e)}function Lh(e){return wh(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Th(e){if("html"===mh(e))return e;const t=e.assignedSlot||e.parentNode||_h(e)&&e.host||yh(e);return _h(t)?t.host:t}function Dh(e){const t=Th(e);return Ph(t)?e.ownerDocument?e.ownerDocument.body:e.body:xh(t)&&Eh(t)?t:Dh(t)}function Nh(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=Dh(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),s=vh(o);if(i){const e=jh(s);return t.concat(s,s.visualViewport||[],Eh(o)?o:[],e&&n?Nh(e):[])}return t.concat(o,Nh(o,[],n))}function jh(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ah(e){const t=Rh(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=xh(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,a=Gd(n)!==i||Gd(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}function Ih(e){return wh(e)?e:e.contextElement}function Mh(e){const t=Ih(e);if(!xh(t))return Yd(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Ah(t);let s=(i?Gd(n.width):n.width)/r,a=(i?Gd(n.height):n.height)/o;return s&&Number.isFinite(s)||(s=1),a&&Number.isFinite(a)||(a=1),{x:s,y:a}}var $h=Yd(0);function Fh(e){const t=vh(e);return Ch()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:$h}function Hh(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=Ih(e);let s=Yd(1);t&&(r?wh(r)&&(s=Mh(r)):s=Mh(e));const a=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==vh(e))&&t}(i,n,r)?Fh(i):Yd(0);let c=(o.left+a.x)/s.x,l=(o.top+a.y)/s.y,u=o.width/s.x,d=o.height/s.y;if(i){const e=vh(i),t=r&&wh(r)?vh(r):r;let n=e,o=jh(n);for(;o&&r&&t!==n;){const e=Mh(o),t=o.getBoundingClientRect(),r=Rh(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,s=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=i,l+=s,n=vh(o),o=jh(n)}}return uh({width:u,height:d,x:c,y:l})}function Uh(e,t){const n=Lh(e).scrollLeft;return t?t.left+n:Hh(yh(e)).left+n}function qh(e,t,n){void 0===n&&(n=!1);const r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-(n?0:Uh(e,r)),y:r.top+t.scrollTop}}function Bh(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=vh(e),r=yh(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,a=0,c=0;if(o){i=o.width,s=o.height;const e=Ch();(!e||e&&"fixed"===t)&&(a=o.offsetLeft,c=o.offsetTop)}return{width:i,height:s,x:a,y:c}}(e,n);else if("document"===t)r=function(e){const t=yh(e),n=Lh(e),r=e.ownerDocument.body,o=Wd(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Wd(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+Uh(e);const a=-n.scrollTop;return"rtl"===Rh(r).direction&&(s+=Wd(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:a}}(yh(e));else if(wh(t))r=function(e,t){const n=Hh(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=xh(e)?Mh(e):Yd(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{const n=Fh(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return uh(r)}function zh(e,t){const n=Th(e);return!(n===t||!wh(n)||Ph(n))&&("fixed"===Rh(n).position||zh(n,t))}function Vh(e,t){const n=t.get(e);if(n)return n;let r=Nh(e,[],!1).filter(e=>wh(e)&&"body"!==mh(e)),o=null;const i="fixed"===Rh(e).position;let s=i?Th(e):e;for(;wh(s)&&!Ph(s);){const t=Rh(s),n=Oh(s);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||Eh(s)&&!n&&zh(e,s))?r=r.filter(e=>e!==s):o=t,s=Th(s)}return t.set(e,r),r}function Kh(e,t,n){const r=xh(t),o=yh(t),i="fixed"===n,s=Hh(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const c=Yd(0);if(r||!r&&!i)if(("body"!==mh(t)||Eh(o))&&(a=Lh(t)),r){const e=Hh(t,!0,i,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else o&&(c.x=Uh(o));const l=!o||r||i?Yd(0):qh(o,a);return{x:s.left+a.scrollLeft-c.x-l.x,y:s.top+a.scrollTop-c.y-l.y,width:s.width,height:s.height}}function Wh(e){return"static"===Rh(e).position}function Gh(e,t){if(!xh(e)||"fixed"===Rh(e).position)return null;if(t)return t(e);let n=e.offsetParent;return yh(e)===n&&(n=n.ownerDocument.body),n}function Jh(e,t){const n=vh(e);if(kh(e))return n;if(!xh(e)){let t=Th(e);for(;t&&!Ph(t);){if(wh(t)&&!Wh(t))return t;t=Th(t)}return n}let r=Gh(e,t);for(;r&&Sh(r)&&Wh(r);)r=Gh(r,t);return r&&Ph(r)&&Wh(r)&&!Oh(r)?n:r||function(e){let t=Th(e);for(;xh(t)&&!Ph(t);){if(Oh(t))return t;if(kh(t))return null;t=Th(t)}return null}(e)||n}var Yh={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,s=yh(r),a=!!t&&kh(t.floating);if(r===s||a&&i)return n;let c={scrollLeft:0,scrollTop:0},l=Yd(1);const u=Yd(0),d=xh(r);if((d||!d&&!i)&&(("body"!==mh(r)||Eh(s))&&(c=Lh(r)),xh(r))){const e=Hh(r);l=Mh(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}const h=!s||d||i?Yd(0):qh(s,c,!0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+h.x,y:n.y*l.y-c.scrollTop*l.y+u.y+h.y}},getDocumentElement:yh,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?kh(t)?[]:Vh(t,this._c):[].concat(n),r],s=i[0],a=i.reduce((e,n)=>{const r=Bh(t,n,o);return e.top=Wd(r.top,e.top),e.right=Kd(r.right,e.right),e.bottom=Kd(r.bottom,e.bottom),e.left=Wd(r.left,e.left),e},Bh(t,s,o));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},getOffsetParent:Jh,getElementRects:async function(e){const t=this.getOffsetParent||Jh,n=this.getDimensions,r=await n(e.floating);return{reference:Kh(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=Ah(e);return{width:t,height:n}},getScale:Mh,isElement:wh,isRTL:function(e){return"rtl"===Rh(e).direction}};function Qh(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:c=!1}=r,l=Ih(e),u=o||i?[...l?Nh(l):[],...Nh(t)]:[];u.forEach(e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)});const d=l&&a?function(e,t){let n,r=null;const o=yh(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function s(a,c){void 0===a&&(a=!1),void 0===c&&(c=1),i();const{left:l,top:u,width:d,height:h}=e.getBoundingClientRect();if(a||t(),!d||!h)return;const p={rootMargin:-Jd(u)+"px "+-Jd(o.clientWidth-(l+d))+"px "+-Jd(o.clientHeight-(u+h))+"px "+-Jd(l)+"px",threshold:Wd(0,Kd(1,c))||1};let f=!0;function g(e){const t=e[0].intersectionRatio;if(t!==c){if(!f)return s();t?s(!1,t):n=setTimeout(()=>{s(!1,1e-7)},1e3)}f=!1}try{r=new IntersectionObserver(g,{...p,root:o.ownerDocument})}catch(cv){r=new IntersectionObserver(g,p)}r.observe(e)}(!0),i}(l,n):null;let h,p=-1,f=null;s&&(f=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&f&&(f.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=f)||e.observe(t)})),n()}),l&&!c&&f.observe(l),f.observe(t));let g=c?Hh(e):null;return c&&function t(){const r=Hh(e);!g||r.x===g.x&&r.y===g.y&&r.width===g.width&&r.height===g.height||n();g=r,h=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach(e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)}),d?.(),null==(e=f)||e.disconnect(),f=null,c&&cancelAnimationFrame(h)}}var Xh=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:a}=t,c=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),s=th(n),a=nh(n),c="y"===ih(n),l=["left","top"].includes(s)?-1:1,u=i&&c?-1:1,d=eh(t,e);let{mainAxis:h,crossAxis:p,alignmentAxis:f}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&"number"==typeof f&&(p="end"===a?-1*f:f),c?{x:p*u,y:h*l}:{x:h*l,y:p*u}}(t,e);return s===(null==(n=a.offset)?void 0:n.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:o+c.x,y:i+c.y,data:{...c,placement:s}}}}},Zh=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=eh(e,t),l={x:n,y:r},u=await hh(t,c),d=ih(th(o)),h=rh(d);let p=l[h],f=l[d];if(i){const e="y"===h?"bottom":"right";p=Zd(p+u["y"===h?"top":"left"],p,p-u[e])}if(s){const e="y"===d?"bottom":"right";f=Zd(f+u["y"===d?"top":"left"],f,f-u[e])}const g=a.fn({...t,[h]:p,[d]:f});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[h]:i,[d]:s}}}}}},ep=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:s,initialPlacement:a,platform:c,elements:l}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:h,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:g=!0,...m}=eh(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const v=th(o),y=ih(a),b=th(a)===a,w=await(null==c.isRTL?void 0:c.isRTL(l.floating)),x=h||(b||!g?[ch(a)]:function(e){const t=ch(e);return[ah(e),t,ah(t)]}(a)),_="none"!==f;!h&&_&&x.push(...function(e,t,n,r){const o=nh(e);let i=function(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:s;default:return[]}}(th(e),"start"===n,r);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(ah)))),i}(a,g,f,w));const E=[a,...x],S=await hh(t,m),k=[];let O=(null==(r=i.flip)?void 0:r.overflows)||[];if(u&&k.push(S[v]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=nh(e),o=sh(e),i=oh(o);let s="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=ch(s)),[s,ch(s)]}(o,s,w);k.push(S[e[0]],S[e[1]])}if(O=[...O,{placement:o,overflows:k}],!k.every(e=>e<=0)){var C,P;const e=((null==(C=i.flip)?void 0:C.index)||0)+1,t=E[e];if(t)return{data:{index:e,overflows:O},reset:{placement:t}};let n=null==(P=O.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:P.placement;if(!n)switch(p){case"bestFit":{var R;const e=null==(R=O.filter(e=>{if(_){const t=ih(e.placement);return t===y||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:R[0];e&&(n=e);break}case"initialPlacement":n=a}if(o!==n)return{reset:{placement:n}}}return{}}}},tp=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:s,elements:a}=t,{apply:c=()=>{},...l}=eh(e,t),u=await hh(t,l),d=th(o),h=nh(o),p="y"===ih(o),{width:f,height:g}=i.floating;let m,v;"top"===d||"bottom"===d?(m=d,v=h===(await(null==s.isRTL?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(v=d,m="end"===h?"top":"bottom");const y=g-u.top-u.bottom,b=f-u.left-u.right,w=Kd(g-u[m],y),x=Kd(f-u[v],b),_=!t.middlewareData.shift;let E=w,S=x;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(S=b),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(E=y),_&&!h){const e=Wd(u.left,0),t=Wd(u.right,0),n=Wd(u.top,0),r=Wd(u.bottom,0);p?S=f-2*(0!==e||0!==t?e+t:Wd(u.left,u.right)):E=g-2*(0!==n||0!==r?n+r:Wd(u.top,u.bottom))}await c({...t,availableWidth:S,availableHeight:E});const k=await s.getDimensions(a.floating);return f!==k.width||g!==k.height?{reset:{rects:!0}}:{}}}},np=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=eh(e,t);switch(r){case"referenceHidden":{const e=ph(await hh(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:fh(e)}}}case"escaped":{const e=ph(await hh(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:fh(e)}}}default:return{}}}}},rp=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:a,middlewareData:c}=t,{element:l,padding:u=0}=eh(e,t)||{};if(null==l)return{};const d=lh(u),h={x:n,y:r},p=sh(o),f=oh(p),g=await s.getDimensions(l),m="y"===p,v=m?"top":"left",y=m?"bottom":"right",b=m?"clientHeight":"clientWidth",w=i.reference[f]+i.reference[p]-h[p]-i.floating[f],x=h[p]-i.reference[p],_=await(null==s.getOffsetParent?void 0:s.getOffsetParent(l));let E=_?_[b]:0;E&&await(null==s.isElement?void 0:s.isElement(_))||(E=a.floating[b]||i.floating[f]);const S=w/2-x/2,k=E/2-g[f]/2-1,O=Kd(d[v],k),C=Kd(d[y],k),P=O,R=E-g[f]-C,L=E/2-g[f]/2+S,T=Zd(P,L,R),D=!c.arrow&&null!=nh(o)&&L!==T&&i.reference[f]/2-(L<P?O:C)-g[f]/2<0,N=D?L<P?L-P:L-R:0;return{[p]:h[p]+N,data:{[p]:T,centerOffset:L-T-N,...D&&{alignmentOffset:N}},reset:D}}}),op=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:s}=t,{offset:a=0,mainAxis:c=!0,crossAxis:l=!0}=eh(e,t),u={x:n,y:r},d=ih(o),h=rh(d);let p=u[h],f=u[d];const g=eh(a,t),m="number"==typeof g?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(c){const e="y"===h?"height":"width",t=i.reference[h]-i.floating[e]+m.mainAxis,n=i.reference[h]+i.reference[e]-m.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){var v,y;const e="y"===h?"width":"height",t=["top","left"].includes(th(o)),n=i.reference[d]-i.floating[e]+(t&&(null==(v=s.offset)?void 0:v[d])||0)+(t?0:m.crossAxis),r=i.reference[d]+i.reference[e]+(t?0:(null==(y=s.offset)?void 0:y[d])||0)-(t?m.crossAxis:0);f<n?f=n:f>r&&(f=r)}return{[h]:p,[d]:f}}}},ip=(e,t,n)=>{const r=new Map,o={platform:Yh,...n},i={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),c=await(null==s.isRTL?void 0:s.isRTL(t));let l=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=dh(l,r,c),h=r,p={},f=0;for(let g=0;g<a.length;g++){const{name:n,fn:i}=a[g],{x:m,y:v,data:y,reset:b}=await i({x:u,y:d,initialPlacement:r,placement:h,strategy:o,middlewareData:p,rects:l,platform:s,elements:{reference:e,floating:t}});u=null!=m?m:u,d=null!=v?v:d,p={...p,[n]:{...p[n],...y}},b&&f<=50&&(f++,"object"==typeof b&&(b.placement&&(h=b.placement),b.rects&&(l=!0===b.rects?await s.getElementRects({reference:e,floating:t,strategy:o}):b.rects),({x:u,y:d}=dh(l,h,c))),g=-1)}return{x:u,y:d,placement:h,strategy:o,middlewareData:p}})(e,t,{...o,platform:i})},sp="undefined"!=typeof document?zr.useLayoutEffect:zr.useEffect;function ap(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!==r--;)if(!ap(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!==r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!==r--;){const n=o[r];if(("_owner"!==n||!e.$$typeof)&&!ap(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function cp(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function lp(e,t){const n=cp(e);return Math.round(t*n)/n}function up(e){const t=zr.useRef(e);return sp(()=>{t.current=e}),t}var dp=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&(o=n,{}.hasOwnProperty.call(o,"current"))?null!=n.current?rp({element:n.current,padding:r}).fn(t):{}:n?rp({element:n,padding:r}).fn(t):{};var o}}),hp=(e,t)=>({...Xh(e),options:[e,t]}),pp=(e,t)=>({...Zh(e),options:[e,t]}),fp=(e,t)=>({...op(e),options:[e,t]}),gp=(e,t)=>({...ep(e),options:[e,t]}),mp=(e,t)=>({...tp(e),options:[e,t]}),vp=(e,t)=>({...np(e),options:[e,t]}),yp=(e,t)=>({...dp(e),options:[e,t]}),bp=zr.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return(0,ru.jsx)(yd.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,ru.jsx)("polygon",{points:"0,0 30,0 15,10"})})});bp.displayName="Arrow";var wp=bp;var xp="Popper",[_p,Ep]=id(xp),[Sp,kp]=_p(xp),Op=e=>{const{__scopePopper:t,children:n}=e,[r,o]=zr.useState(null);return(0,ru.jsx)(Sp,{scope:t,anchor:r,onAnchorChange:o,children:n})};Op.displayName=xp;var Cp="PopperAnchor",Pp=zr.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=kp(Cp,n),s=zr.useRef(null),a=Bu(t,s);return zr.useEffect(()=>{i.onAnchorChange(r?.current||s.current)}),r?null:(0,ru.jsx)(yd.div,{...o,ref:a})});Pp.displayName=Cp;var Rp="PopperContent",[Lp,Tp]=_p(Rp),Dp=zr.forwardRef((e,t)=>{const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:i="center",alignOffset:s=0,arrowPadding:a=0,avoidCollisions:c=!0,collisionBoundary:l=[],collisionPadding:u=0,sticky:d="partial",hideWhenDetached:h=!1,updatePositionStrategy:p="optimized",onPlaced:f,...g}=e,m=kp(Rp,n),[v,y]=zr.useState(null),b=Bu(t,e=>y(e)),[w,x]=zr.useState(null),_=function(e){const[t,n]=zr.useState(void 0);return Ud(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver(t=>{if(!Array.isArray(t))return;if(!t.length)return;const r=t[0];let o,i;if("borderBoxSize"in r){const e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,i=t.blockSize}else o=e.offsetWidth,i=e.offsetHeight;n({width:o,height:i})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}(w),E=_?.width??0,S=_?.height??0,k=r+("center"!==i?"-"+i:""),O="number"==typeof u?u:{top:0,right:0,bottom:0,left:0,...u},C=Array.isArray(l)?l:[l],P=C.length>0,R={padding:O,boundary:C.filter(Ip),altBoundary:P},{refs:L,floatingStyles:T,placement:D,isPositioned:N,middlewareData:j}=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:s}={},transform:a=!0,whileElementsMounted:c,open:l}=e,[u,d]=zr.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,p]=zr.useState(r);ap(h,r)||p(r);const[f,g]=zr.useState(null),[m,v]=zr.useState(null),y=zr.useCallback(e=>{e!==_.current&&(_.current=e,g(e))},[]),b=zr.useCallback(e=>{e!==E.current&&(E.current=e,v(e))},[]),w=i||f,x=s||m,_=zr.useRef(null),E=zr.useRef(null),S=zr.useRef(u),k=null!=c,O=up(c),C=up(o),P=up(l),R=zr.useCallback(()=>{if(!_.current||!E.current)return;const e={placement:t,strategy:n,middleware:h};C.current&&(e.platform=C.current),ip(_.current,E.current,e).then(e=>{const t={...e,isPositioned:!1!==P.current};L.current&&!ap(S.current,t)&&(S.current=t,Jc.flushSync(()=>{d(t)}))})},[h,t,n,C,P]);sp(()=>{!1===l&&S.current.isPositioned&&(S.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);const L=zr.useRef(!1);sp(()=>(L.current=!0,()=>{L.current=!1}),[]),sp(()=>{if(w&&(_.current=w),x&&(E.current=x),w&&x){if(O.current)return O.current(w,x,R);R()}},[w,x,R,O,k]);const T=zr.useMemo(()=>({reference:_,floating:E,setReference:y,setFloating:b}),[y,b]),D=zr.useMemo(()=>({reference:w,floating:x}),[w,x]),N=zr.useMemo(()=>{const e={position:n,left:0,top:0};if(!D.floating)return e;const t=lp(D.floating,u.x),r=lp(D.floating,u.y);return a?{...e,transform:"translate("+t+"px, "+r+"px)",...cp(D.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,a,D.floating,u.x,u.y]);return zr.useMemo(()=>({...u,update:R,refs:T,elements:D,floatingStyles:N}),[u,R,T,D,N])}({strategy:"fixed",placement:k,whileElementsMounted:(...e)=>Qh(...e,{animationFrame:"always"===p}),elements:{reference:m.anchor},middleware:[hp({mainAxis:o+S,alignmentAxis:s}),c&&pp({mainAxis:!0,crossAxis:!1,limiter:"partial"===d?fp():void 0,...R}),c&&gp({...R}),mp({...R,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{const{width:o,height:i}=t.reference,s=e.floating.style;s.setProperty("--radix-popper-available-width",`${n}px`),s.setProperty("--radix-popper-available-height",`${r}px`),s.setProperty("--radix-popper-anchor-width",`${o}px`),s.setProperty("--radix-popper-anchor-height",`${i}px`)}}),w&&yp({element:w,padding:a}),Mp({arrowWidth:E,arrowHeight:S}),h&&vp({strategy:"referenceHidden",...R})]}),[A,I]=$p(D),M=bd(f);Ud(()=>{N&&M?.()},[N,M]);const $=j.arrow?.x,F=j.arrow?.y,H=0!==j.arrow?.centerOffset,[U,q]=zr.useState();return Ud(()=>{v&&q(window.getComputedStyle(v).zIndex)},[v]),(0,ru.jsx)("div",{ref:L.setFloating,"data-radix-popper-content-wrapper":"",style:{...T,transform:N?T.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:U,"--radix-popper-transform-origin":[j.transformOrigin?.x,j.transformOrigin?.y].join(" "),...j.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,ru.jsx)(Lp,{scope:n,placedSide:A,onArrowChange:x,arrowX:$,arrowY:F,shouldHideArrow:H,children:(0,ru.jsx)(yd.div,{"data-side":A,"data-align":I,...g,ref:b,style:{...g.style,animation:N?void 0:"none"}})})})});Dp.displayName=Rp;var Np="PopperArrow",jp={top:"bottom",right:"left",bottom:"top",left:"right"},Ap=zr.forwardRef(function(e,t){const{__scopePopper:n,...r}=e,o=Tp(Np,n),i=jp[o.placedSide];return(0,ru.jsx)("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:(0,ru.jsx)(wp,{...r,ref:t,style:{...r.style,display:"block"}})})});function Ip(e){return null!==e}Ap.displayName=Np;var Mp=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,i=0!==o.arrow?.centerOffset,s=i?0:e.arrowWidth,a=i?0:e.arrowHeight,[c,l]=$p(n),u={start:"0%",center:"50%",end:"100%"}[l],d=(o.arrow?.x??0)+s/2,h=(o.arrow?.y??0)+a/2;let p="",f="";return"bottom"===c?(p=i?u:`${d}px`,f=-a+"px"):"top"===c?(p=i?u:`${d}px`,f=`${r.floating.height+a}px`):"right"===c?(p=-a+"px",f=i?u:`${h}px`):"left"===c&&(p=`${r.floating.width+a}px`,f=i?u:`${h}px`),{data:{x:p,y:f}}}});function $p(e){const[t,n="center"]=e.split("-");return[t,n]}var Fp=Op,Hp=Pp,Up=Dp,qp=Ap,Bp=zr.forwardRef((e,t)=>{const{container:n,...r}=e,[o,i]=zr.useState(!1);Ud(()=>i(!0),[]);const s=n||o&&globalThis?.document?.body;return s?Jc.createPortal((0,ru.jsx)(yd.div,{...r,ref:t}),s):null});Bp.displayName="Portal";var zp=zr[" useInsertionEffect ".trim().toString()]||Ud;function Vp({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,i,s]=function({defaultProp:e,onChange:t}){const[n,r]=zr.useState(e),o=zr.useRef(n),i=zr.useRef(t);return zp(()=>{i.current=t},[t]),zr.useEffect(()=>{o.current!==n&&(i.current?.(n),o.current=n)},[n,o]),[n,r,i]}({defaultProp:t,onChange:n}),a=void 0!==e,c=a?e:o;{const t=zr.useRef(void 0!==e);zr.useEffect(()=>{const e=t.current;e!==a&&console.warn(`${r} is changing from ${e?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),t.current=a},[a,r])}return[c,zr.useCallback(t=>{if(a){const n=function(e){return"function"==typeof e}(t)?t(e):t;n!==e&&s.current?.(n)}else i(t)},[a,e,i,s])]}var Kp=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"});zr.forwardRef((e,t)=>(0,ru.jsx)(yd.span,{...e,ref:t,style:{...Kp,...e.style}})).displayName="VisuallyHidden";var Wp=new WeakMap,Gp=new WeakMap,Jp={},Yp=0,Qp=function(e){return e&&(e.host||Qp(e.parentNode))},Xp=function(e,t,n,r){var o=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=Qp(t);return n&&e.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)}).filter(function(e){return Boolean(e)})}(t,Array.isArray(e)?e:[e]);Jp[n]||(Jp[n]=new WeakMap);var i=Jp[n],s=[],a=new Set,c=new Set(o),l=function(e){e&&!a.has(e)&&(a.add(e),l(e.parentNode))};o.forEach(l);var u=function(e){e&&!c.has(e)&&Array.prototype.forEach.call(e.children,function(e){if(a.has(e))u(e);else try{var t=e.getAttribute(r),o=null!==t&&"false"!==t,c=(Wp.get(e)||0)+1,l=(i.get(e)||0)+1;Wp.set(e,c),i.set(e,l),s.push(e),1===c&&o&&Gp.set(e,!0),1===l&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}catch(cv){console.error("aria-hidden: cannot operate on ",e,cv)}})};return u(t),a.clear(),Yp++,function(){s.forEach(function(e){var t=Wp.get(e)-1,o=i.get(e)-1;Wp.set(e,t),i.set(e,o),t||(Gp.has(e)||e.removeAttribute(r),Gp.delete(e)),o||e.removeAttribute(n)}),--Yp||(Wp=new WeakMap,Wp=new WeakMap,Gp=new WeakMap,Jp={})}},Zp=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body}(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),Xp(r,o,n,"aria-hidden")):function(){return null}},ef=function(){return ef=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ef.apply(this,arguments)};function tf(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}var nf="right-scroll-bar-position",rf="width-before-scroll-bar";function of(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var sf="undefined"!=typeof window?zr.useLayoutEffect:zr.useEffect,af=new WeakMap;function cf(e,t){var n,r,o,i=(n=t||null,r=function(t){return e.forEach(function(e){return of(e,t)})},(o=(0,zr.useState)(function(){return{value:n,callback:r,facade:{get current(){return o.value},set current(e){var t=o.value;t!==e&&(o.value=e,o.callback(e,t))}}}})[0]).callback=r,o.facade);return sf(function(){var t=af.get(i);if(t){var n=new Set(t),r=new Set(e),o=i.current;n.forEach(function(e){r.has(e)||of(e,null)}),r.forEach(function(e){n.has(e)||of(e,o)})}af.set(i,e)},[e]),i}function lf(e){return e}var uf=function(e){var t=e.sideCar,n=tf(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return zr.createElement(r,ef({},n))};uf.isSideCarExport=!0;var df=function(e){void 0===e&&(e={});var t=function(e,t){void 0===t&&(t=lf);var n=[],r=!1;return{read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var o=t(e,r);return n.push(o),function(){n=n.filter(function(e){return e!==o})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var o=n;n=[],o.forEach(e),t=n}var i=function(){var n=t;t=[],n.forEach(e)},s=function(){return Promise.resolve().then(i)};s(),n={push:function(e){t.push(e),s()},filter:function(e){return t=t.filter(e),n}}}}}(null);return t.options=ef({async:!0,ssr:!1},e),t}(),hf=function(){},pf=zr.forwardRef(function(e,t){var n=zr.useRef(null),r=zr.useState({onScrollCapture:hf,onWheelCapture:hf,onTouchMoveCapture:hf}),o=r[0],i=r[1],s=e.forwardProps,a=e.children,c=e.className,l=e.removeScrollBar,u=e.enabled,d=e.shards,h=e.sideCar,p=e.noIsolation,f=e.inert,g=e.allowPinchZoom,m=e.as,v=void 0===m?"div":m,y=e.gapMode,b=tf(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),w=h,x=cf([n,t]),_=ef(ef({},b),o);return zr.createElement(zr.Fragment,null,u&&zr.createElement(w,{sideCar:df,removeScrollBar:l,shards:d,noIsolation:p,inert:f,setCallbacks:i,allowPinchZoom:!!g,lockRef:n,gapMode:y}),s?zr.cloneElement(zr.Children.only(a),ef(ef({},_),{ref:x})):zr.createElement(v,ef({},_,{className:c,ref:x}),a))});pf.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},pf.classNames={fullWidth:rf,zeroRight:nf};function ff(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=function(){if("undefined"!=typeof __webpack_nonce__)return __webpack_nonce__}();return t&&e.setAttribute("nonce",t),e}var gf=function(){var e=0,t=null;return{add:function(n){var r,o;0==e&&(t=ff())&&(o=n,(r=t).styleSheet?r.styleSheet.cssText=o:r.appendChild(document.createTextNode(o)),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(t)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},mf=function(){var e,t=(e=gf(),function(t,n){zr.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])});return function(e){var n=e.styles,r=e.dynamic;return t(n,r),null}},vf={left:0,top:0,right:0,gap:0},yf=function(e){return parseInt(e||"",10)||0},bf=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return vf;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[yf(n),yf(r),yf(o)]}(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},wf=mf(),xf="data-scroll-locked",_f=function(e,t,n,r){var o=e.left,i=e.top,s=e.right,a=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(a,"px ").concat(r,";\n }\n body[").concat(xf,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(i,"px;\n padding-right: ").concat(s,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(a,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(nf," {\n right: ").concat(a,"px ").concat(r,";\n }\n \n .").concat(rf," {\n margin-right: ").concat(a,"px ").concat(r,";\n }\n \n .").concat(nf," .").concat(nf," {\n right: 0 ").concat(r,";\n }\n \n .").concat(rf," .").concat(rf," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(xf,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(a,"px;\n }\n")},Ef=function(){var e=parseInt(document.body.getAttribute("data-scroll-locked")||"0",10);return isFinite(e)?e:0},Sf=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r;zr.useEffect(function(){return document.body.setAttribute(xf,(Ef()+1).toString()),function(){var e=Ef()-1;e<=0?document.body.removeAttribute(xf):document.body.setAttribute(xf,e.toString())}},[]);var i=zr.useMemo(function(){return bf(o)},[o]);return zr.createElement(wf,{styles:_f(i,!t,o,n?"":"!important")})},kf=!1;if("undefined"!=typeof window)try{var Of=Object.defineProperty({},"passive",{get:function(){return kf=!0,!0}});window.addEventListener("test",Of,Of),window.removeEventListener("test",Of,Of)}catch(Qv){kf=!1}var Cf=!!kf&&{passive:!1},Pf=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===n[t])},Rf=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),Lf(e,r)){var o=Tf(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Lf=function(e,t){return"v"===e?function(e){return Pf(e,"overflowY")}(t):function(e){return Pf(e,"overflowX")}(t)},Tf=function(e,t){return"v"===e?[(n=t).scrollTop,n.scrollHeight,n.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var n},Df=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Nf=function(e){return[e.deltaX,e.deltaY]},jf=function(e){return e&&"current"in e?e.current:e},Af=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},If=0,Mf=[];function $f(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var Ff,Hf=(Ff=function(e){var t=zr.useRef([]),n=zr.useRef([0,0]),r=zr.useRef(),o=zr.useState(If++)[0],i=zr.useState(mf)[0],s=zr.useRef(e);zr.useEffect(function(){s.current=e},[e]),zr.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}([e.lockRef.current],(e.shards||[]).map(jf),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=zr.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!s.current.allowPinchZoom;var o,i=Df(e),a=n.current,c="deltaX"in e?e.deltaX:a[0]-i[0],l="deltaY"in e?e.deltaY:a[1]-i[1],u=e.target,d=Math.abs(c)>Math.abs(l)?"h":"v";if("touches"in e&&"h"===d&&"range"===u.type)return!1;var h=Rf(d,u);if(!h)return!0;if(h?o=d:(o="v"===d?"h":"v",h=Rf(d,u)),!h)return!1;if(!r.current&&"changedTouches"in e&&(c||l)&&(r.current=o),!o)return!0;var p=r.current||o;return function(e,t,n,r,o){var i=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),s=i*r,a=n.target,c=t.contains(a),l=!1,u=s>0,d=0,h=0;do{var p=Tf(e,a),f=p[0],g=p[1]-p[2]-i*f;(f||g)&&Lf(e,a)&&(d+=g,h+=f),a=a instanceof ShadowRoot?a.host:a.parentNode}while(!c&&a!==document.body||c&&(t.contains(a)||t===a));return(u&&(o&&Math.abs(d)<1||!o&&s>d)||!u&&(o&&Math.abs(h)<1||!o&&-s>h))&&(l=!0),l}(p,t,e,"h"===p?c:l,!0)},[]),c=zr.useCallback(function(e){var n=e;if(Mf.length&&Mf[Mf.length-1]===i){var r="deltaY"in n?Nf(n):Df(n),o=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&function(e,t){return e[0]===t[0]&&e[1]===t[1]}(e.delta,r)})[0];if(o&&o.should)n.cancelable&&n.preventDefault();else if(!o){var c=(s.current.shards||[]).map(jf).filter(Boolean).filter(function(e){return e.contains(n.target)});(c.length>0?a(n,c[0]):!s.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),l=zr.useCallback(function(e,n,r,o){var i={name:e,delta:n,target:r,should:o,shadowParent:$f(r)};t.current.push(i),setTimeout(function(){t.current=t.current.filter(function(e){return e!==i})},1)},[]),u=zr.useCallback(function(e){n.current=Df(e),r.current=void 0},[]),d=zr.useCallback(function(t){l(t.type,Nf(t),t.target,a(t,e.lockRef.current))},[]),h=zr.useCallback(function(t){l(t.type,Df(t),t.target,a(t,e.lockRef.current))},[]);zr.useEffect(function(){return Mf.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:h}),document.addEventListener("wheel",c,Cf),document.addEventListener("touchmove",c,Cf),document.addEventListener("touchstart",u,Cf),function(){Mf=Mf.filter(function(e){return e!==i}),document.removeEventListener("wheel",c,Cf),document.removeEventListener("touchmove",c,Cf),document.removeEventListener("touchstart",u,Cf)}},[]);var p=e.removeScrollBar,f=e.inert;return zr.createElement(zr.Fragment,null,f?zr.createElement(i,{styles:Af(o)}):null,p?zr.createElement(Sf,{gapMode:e.gapMode}):null)},df.useMedium(Ff),uf),Uf=zr.forwardRef(function(e,t){return zr.createElement(pf,ef({},e,{ref:t,sideCar:Hf}))});Uf.classNames=pf.classNames;var qf=r({Arrow:()=>lm,Content:()=>Zg,Group:()=>tm,Icon:()=>Qg,Item:()=>rm,ItemIndicator:()=>im,ItemText:()=>om,Label:()=>nm,Portal:()=>Xg,Root:()=>Gg,ScrollDownButton:()=>am,ScrollUpButton:()=>sm,Select:()=>ng,SelectArrow:()=>Bg,SelectContent:()=>ug,SelectGroup:()=>kg,SelectIcon:()=>ag,SelectItem:()=>Tg,SelectItemIndicator:()=>Ag,SelectItemText:()=>Ng,SelectLabel:()=>Cg,SelectPortal:()=>cg,SelectScrollDownButton:()=>Fg,SelectScrollUpButton:()=>Mg,SelectSeparator:()=>Ug,SelectTrigger:()=>og,SelectValue:()=>sg,SelectViewport:()=>xg,Separator:()=>cm,Trigger:()=>Jg,Value:()=>Yg,Viewport:()=>em,createSelectScope:()=>Yf}),Bf=[" ","Enter","ArrowUp","ArrowDown"],zf=[" ","Enter"],Vf="Select",[Kf,Wf,Gf]=hd(Vf),[Jf,Yf]=id(Vf,[Gf,Ep]),Qf=Ep(),[Xf,Zf]=Jf(Vf),[eg,tg]=Jf(Vf),ng=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:i,value:s,defaultValue:a,onValueChange:c,dir:l,name:u,autoComplete:d,disabled:h,required:p,form:f}=e,g=Qf(t),[m,v]=zr.useState(null),[y,b]=zr.useState(null),[w,x]=zr.useState(!1),_=vd(l),[E,S]=Vp({prop:r,defaultProp:o??!1,onChange:i,caller:Vf}),[k,O]=Vp({prop:s,defaultProp:a,onChange:c,caller:Vf}),C=zr.useRef(null),P=!m||(f||!!m.closest("form")),[R,L]=zr.useState(new Set),T=Array.from(R).map(e=>e.props.value).join(";");return(0,ru.jsx)(Fp,{...g,children:(0,ru.jsxs)(Xf,{required:p,scope:t,trigger:m,onTriggerChange:v,valueNode:y,onValueNodeChange:b,valueNodeHasChildren:w,onValueNodeHasChildrenChange:x,contentId:zd(),value:k,onValueChange:O,open:E,onOpenChange:S,dir:_,triggerPointerDownPosRef:C,disabled:h,children:[(0,ru.jsx)(Kf.Provider,{scope:t,children:(0,ru.jsx)(eg,{scope:e.__scopeSelect,onNativeOptionAdd:zr.useCallback(e=>{L(t=>new Set(t).add(e))},[]),onNativeOptionRemove:zr.useCallback(e=>{L(t=>{const n=new Set(t);return n.delete(e),n})},[]),children:n})}),P?(0,ru.jsxs)(zg,{"aria-hidden":!0,required:p,tabIndex:-1,name:u,autoComplete:d,value:k,onChange:e=>O(e.target.value),disabled:h,form:f,children:[void 0===k?(0,ru.jsx)("option",{value:""}):null,Array.from(R)]},T):null]})})};ng.displayName=Vf;var rg="SelectTrigger",og=zr.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,i=Qf(n),s=Zf(rg,n),a=s.disabled||r,c=Bu(t,s.onTriggerChange),l=Wf(n),u=zr.useRef("touch"),[d,h,p]=Kg(e=>{const t=l().filter(e=>!e.disabled),n=Wg(t,e,t.find(e=>e.value===s.value));void 0!==n&&s.onValueChange(n.value)}),f=e=>{a||(s.onOpenChange(!0),p()),e&&(s.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})};return(0,ru.jsx)(Hp,{asChild:!0,...i,children:(0,ru.jsx)(yd.button,{type:"button",role:"combobox","aria-controls":s.contentId,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:a,"data-disabled":a?"":void 0,"data-placeholder":Vg(s.value)?"":void 0,...o,ref:c,onClick:od(o.onClick,e=>{e.currentTarget.focus(),"mouse"!==u.current&&f(e)}),onPointerDown:od(o.onPointerDown,e=>{u.current=e.pointerType;const t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&"mouse"===e.pointerType&&(f(e),e.preventDefault())}),onKeyDown:od(o.onKeyDown,e=>{const t=""!==d.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||h(e.key),t&&" "===e.key||Bf.includes(e.key)&&(f(),e.preventDefault())})})})});og.displayName=rg;var ig="SelectValue",sg=zr.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:i,placeholder:s="",...a}=e,c=Zf(ig,n),{onValueNodeHasChildrenChange:l}=c,u=void 0!==i,d=Bu(t,c.onValueNodeChange);return Ud(()=>{l(u)},[l,u]),(0,ru.jsx)(yd.span,{...a,ref:d,style:{pointerEvents:"none"},children:Vg(c.value)?(0,ru.jsx)(ru.Fragment,{children:s}):i})});sg.displayName=ig;var ag=zr.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return(0,ru.jsx)(yd.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});ag.displayName="SelectIcon";var cg=e=>(0,ru.jsx)(Bp,{asChild:!0,...e});cg.displayName="SelectPortal";var lg="SelectContent",ug=zr.forwardRef((e,t)=>{const n=Zf(lg,e.__scopeSelect),[r,o]=zr.useState();if(Ud(()=>{o(new DocumentFragment)},[]),!n.open){const t=r;return t?Jc.createPortal((0,ru.jsx)(hg,{scope:e.__scopeSelect,children:(0,ru.jsx)(Kf.Slot,{scope:e.__scopeSelect,children:(0,ru.jsx)("div",{children:e.children})})}),t):null}return(0,ru.jsx)(gg,{...e,ref:t})});ug.displayName=lg;var dg=10,[hg,pg]=Jf(lg),fg=ad("SelectContent.RemoveScroll"),gg=zr.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:i,onPointerDownOutside:s,side:a,sideOffset:c,align:l,alignOffset:u,arrowPadding:d,collisionBoundary:h,collisionPadding:p,sticky:f,hideWhenDetached:g,avoidCollisions:m,...v}=e,y=Zf(lg,n),[b,w]=zr.useState(null),[x,_]=zr.useState(null),E=Bu(t,e=>w(e)),[S,k]=zr.useState(null),[O,C]=zr.useState(null),P=Wf(n),[R,L]=zr.useState(!1),T=zr.useRef(!1);zr.useEffect(()=>{if(b)return Zp(b)},[b]),Rd();const D=zr.useCallback(e=>{const[t,...n]=P().map(e=>e.ref.current),[r]=n.slice(-1),o=document.activeElement;for(const i of e){if(i===o)return;if(i?.scrollIntoView({block:"nearest"}),i===t&&x&&(x.scrollTop=0),i===r&&x&&(x.scrollTop=x.scrollHeight),i?.focus(),document.activeElement!==o)return}},[P,x]),N=zr.useCallback(()=>D([S,b]),[D,S,b]);zr.useEffect(()=>{R&&N()},[R,N]);const{onOpenChange:j,triggerPointerDownPosRef:A}=y;zr.useEffect(()=>{if(b){let e={x:0,y:0};const t=t=>{e={x:Math.abs(Math.round(t.pageX)-(A.current?.x??0)),y:Math.abs(Math.round(t.pageY)-(A.current?.y??0))}},n=n=>{e.x<=10&&e.y<=10?n.preventDefault():b.contains(n.target)||j(!1),document.removeEventListener("pointermove",t),A.current=null};return null!==A.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",n,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",n,{capture:!0})}}},[b,j,A]),zr.useEffect(()=>{const e=()=>j(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}},[j]);const[I,M]=Kg(e=>{const t=P().filter(e=>!e.disabled),n=Wg(t,e,t.find(e=>e.ref.current===document.activeElement));n&&setTimeout(()=>n.ref.current.focus())}),$=zr.useCallback((e,t,n)=>{const r=!T.current&&!n;(void 0!==y.value&&y.value===t||r)&&(k(e),r&&(T.current=!0))},[y.value]),F=zr.useCallback(()=>b?.focus(),[b]),H=zr.useCallback((e,t,n)=>{const r=!T.current&&!n;(void 0!==y.value&&y.value===t||r)&&C(e)},[y.value]),U="popper"===r?vg:mg,q=U===vg?{side:a,sideOffset:c,align:l,alignOffset:u,arrowPadding:d,collisionBoundary:h,collisionPadding:p,sticky:f,hideWhenDetached:g,avoidCollisions:m}:{};return(0,ru.jsx)(hg,{scope:n,content:b,viewport:x,onViewportChange:_,itemRefCallback:$,selectedItem:S,onItemLeave:F,itemTextRefCallback:H,focusSelectedItem:N,selectedItemText:O,position:r,isPositioned:R,searchRef:I,children:(0,ru.jsx)(Uf,{as:fg,allowPinchZoom:!0,children:(0,ru.jsx)(jd,{asChild:!0,trapped:y.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:od(o,e=>{y.trigger?.focus({preventScroll:!0}),e.preventDefault()}),children:(0,ru.jsx)(kd,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>y.onOpenChange(!1),children:(0,ru.jsx)(U,{role:"listbox",id:y.contentId,"data-state":y.open?"open":"closed",dir:y.dir,onContextMenu:e=>e.preventDefault(),...v,...q,onPlaced:()=>L(!0),ref:E,style:{display:"flex",flexDirection:"column",outline:"none",...v.style},onKeyDown:od(v.onKeyDown,e=>{const t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||M(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=P().filter(e=>!e.disabled).map(e=>e.ref.current);if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){const n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout(()=>D(t)),e.preventDefault()}})})})})})})});gg.displayName="SelectContentImpl";var mg=zr.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,i=Zf(lg,n),s=pg(lg,n),[a,c]=zr.useState(null),[l,u]=zr.useState(null),d=Bu(t,e=>u(e)),h=Wf(n),p=zr.useRef(!1),f=zr.useRef(!0),{viewport:g,selectedItem:m,selectedItemText:v,focusSelectedItem:y}=s,b=zr.useCallback(()=>{if(i.trigger&&i.valueNode&&a&&l&&g&&m&&v){const e=i.trigger.getBoundingClientRect(),t=l.getBoundingClientRect(),n=i.valueNode.getBoundingClientRect(),o=v.getBoundingClientRect();if("rtl"!==i.dir){const r=o.left-t.left,i=n.left-r,s=e.left-i,c=e.width+s,l=Math.max(c,t.width),u=window.innerWidth-dg,d=rd(i,[dg,Math.max(dg,u-l)]);a.style.minWidth=c+"px",a.style.left=d+"px"}else{const r=t.right-o.right,i=window.innerWidth-n.right-r,s=window.innerWidth-e.right-i,c=e.width+s,l=Math.max(c,t.width),u=window.innerWidth-dg,d=rd(i,[dg,Math.max(dg,u-l)]);a.style.minWidth=c+"px",a.style.right=d+"px"}const s=h(),c=window.innerHeight-2*dg,u=g.scrollHeight,d=window.getComputedStyle(l),f=parseInt(d.borderTopWidth,10),y=parseInt(d.paddingTop,10),b=parseInt(d.borderBottomWidth,10),w=f+y+u+parseInt(d.paddingBottom,10)+b,x=Math.min(5*m.offsetHeight,w),_=window.getComputedStyle(g),E=parseInt(_.paddingTop,10),S=parseInt(_.paddingBottom,10),k=e.top+e.height/2-dg,O=c-k,C=m.offsetHeight/2,P=f+y+(m.offsetTop+C),R=w-P;if(P<=k){const e=s.length>0&&m===s[s.length-1].ref.current;a.style.bottom="0px";const t=l.clientHeight-g.offsetTop-g.offsetHeight,n=P+Math.max(O,C+(e?S:0)+t+b);a.style.height=n+"px"}else{const e=s.length>0&&m===s[0].ref.current;a.style.top="0px";const t=Math.max(k,f+g.offsetTop+(e?E:0)+C)+R;a.style.height=t+"px",g.scrollTop=P-k+g.offsetTop}a.style.margin=`${dg}px 0`,a.style.minHeight=x+"px",a.style.maxHeight=c+"px",r?.(),requestAnimationFrame(()=>p.current=!0)}},[h,i.trigger,i.valueNode,a,l,g,m,v,i.dir,r]);Ud(()=>b(),[b]);const[w,x]=zr.useState();return Ud(()=>{l&&x(window.getComputedStyle(l).zIndex)},[l]),(0,ru.jsx)(yg,{scope:n,contentWrapper:a,shouldExpandOnScrollRef:p,onScrollButtonChange:zr.useCallback(e=>{e&&!0===f.current&&(b(),y?.(),f.current=!1)},[b,y]),children:(0,ru.jsx)("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:w},children:(0,ru.jsx)(yd.div,{...o,ref:d,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});mg.displayName="SelectItemAlignedPosition";var vg=zr.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=dg,...i}=e,s=Qf(n);return(0,ru.jsx)(Up,{...s,...i,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...i.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});vg.displayName="SelectPopperPosition";var[yg,bg]=Jf(lg,{}),wg="SelectViewport",xg=zr.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,i=pg(wg,n),s=bg(wg,n),a=Bu(t,i.onViewportChange),c=zr.useRef(0);return(0,ru.jsxs)(ru.Fragment,{children:[(0,ru.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),(0,ru.jsx)(Kf.Slot,{scope:n,children:(0,ru.jsx)(yd.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:a,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:od(o.onScroll,e=>{const t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=s;if(r?.current&&n){const e=Math.abs(c.current-t.scrollTop);if(e>0){const r=window.innerHeight-2*dg,o=parseFloat(n.style.minHeight),i=parseFloat(n.style.height),s=Math.max(o,i);if(s<r){const o=s+e,i=Math.min(r,o),a=o-i;n.style.height=i+"px","0px"===n.style.bottom&&(t.scrollTop=a>0?a:0,n.style.justifyContent="flex-end")}}}c.current=t.scrollTop})})})]})});xg.displayName=wg;var _g="SelectGroup",[Eg,Sg]=Jf(_g),kg=zr.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=zd();return(0,ru.jsx)(Eg,{scope:n,id:o,children:(0,ru.jsx)(yd.div,{role:"group","aria-labelledby":o,...r,ref:t})})});kg.displayName=_g;var Og="SelectLabel",Cg=zr.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Sg(Og,n);return(0,ru.jsx)(yd.div,{id:o.id,...r,ref:t})});Cg.displayName=Og;var Pg="SelectItem",[Rg,Lg]=Jf(Pg),Tg=zr.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:i,...s}=e,a=Zf(Pg,n),c=pg(Pg,n),l=a.value===r,[u,d]=zr.useState(i??""),[h,p]=zr.useState(!1),f=Bu(t,e=>c.itemRefCallback?.(e,r,o)),g=zd(),m=zr.useRef("touch"),v=()=>{o||(a.onValueChange(r),a.onOpenChange(!1))};if(""===r)throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return(0,ru.jsx)(Rg,{scope:n,value:r,disabled:o,textId:g,isSelected:l,onItemTextChange:zr.useCallback(e=>{d(t=>t||(e?.textContent??"").trim())},[]),children:(0,ru.jsx)(Kf.ItemSlot,{scope:n,value:r,disabled:o,textValue:u,children:(0,ru.jsx)(yd.div,{role:"option","aria-labelledby":g,"data-highlighted":h?"":void 0,"aria-selected":l&&h,"data-state":l?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...s,ref:f,onFocus:od(s.onFocus,()=>p(!0)),onBlur:od(s.onBlur,()=>p(!1)),onClick:od(s.onClick,()=>{"mouse"!==m.current&&v()}),onPointerUp:od(s.onPointerUp,()=>{"mouse"===m.current&&v()}),onPointerDown:od(s.onPointerDown,e=>{m.current=e.pointerType}),onPointerMove:od(s.onPointerMove,e=>{m.current=e.pointerType,o?c.onItemLeave?.():"mouse"===m.current&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:od(s.onPointerLeave,e=>{e.currentTarget===document.activeElement&&c.onItemLeave?.()}),onKeyDown:od(s.onKeyDown,e=>{""!==c.searchRef?.current&&" "===e.key||(zf.includes(e.key)&&v()," "===e.key&&e.preventDefault())})})})})});Tg.displayName=Pg;var Dg="SelectItemText",Ng=zr.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...i}=e,s=Zf(Dg,n),a=pg(Dg,n),c=Lg(Dg,n),l=tg(Dg,n),[u,d]=zr.useState(null),h=Bu(t,e=>d(e),c.onItemTextChange,e=>a.itemTextRefCallback?.(e,c.value,c.disabled)),p=u?.textContent,f=zr.useMemo(()=>(0,ru.jsx)("option",{value:c.value,disabled:c.disabled,children:p},c.value),[c.disabled,c.value,p]),{onNativeOptionAdd:g,onNativeOptionRemove:m}=l;return Ud(()=>(g(f),()=>m(f)),[g,m,f]),(0,ru.jsxs)(ru.Fragment,{children:[(0,ru.jsx)(yd.span,{id:c.textId,...i,ref:h}),c.isSelected&&s.valueNode&&!s.valueNodeHasChildren?Jc.createPortal(i.children,s.valueNode):null]})});Ng.displayName=Dg;var jg="SelectItemIndicator",Ag=zr.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return Lg(jg,n).isSelected?(0,ru.jsx)(yd.span,{"aria-hidden":!0,...r,ref:t}):null});Ag.displayName=jg;var Ig="SelectScrollUpButton",Mg=zr.forwardRef((e,t)=>{const n=pg(Ig,e.__scopeSelect),r=bg(Ig,e.__scopeSelect),[o,i]=zr.useState(!1),s=Bu(t,r.onScrollButtonChange);return Ud(()=>{if(n.viewport&&n.isPositioned){let e=function(){i(t.scrollTop>0)};const t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[n.viewport,n.isPositioned]),o?(0,ru.jsx)(Hg,{...e,ref:s,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}}):null});Mg.displayName=Ig;var $g="SelectScrollDownButton",Fg=zr.forwardRef((e,t)=>{const n=pg($g,e.__scopeSelect),r=bg($g,e.__scopeSelect),[o,i]=zr.useState(!1),s=Bu(t,r.onScrollButtonChange);return Ud(()=>{if(n.viewport&&n.isPositioned){let e=function(){const e=t.scrollHeight-t.clientHeight;i(Math.ceil(t.scrollTop)<e)};const t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[n.viewport,n.isPositioned]),o?(0,ru.jsx)(Hg,{...e,ref:s,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}}):null});Fg.displayName=$g;var Hg=zr.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,i=pg("SelectScrollButton",n),s=zr.useRef(null),a=Wf(n),c=zr.useCallback(()=>{null!==s.current&&(window.clearInterval(s.current),s.current=null)},[]);return zr.useEffect(()=>()=>c(),[c]),Ud(()=>{a().find(e=>e.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[a]),(0,ru.jsx)(yd.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:od(o.onPointerDown,()=>{null===s.current&&(s.current=window.setInterval(r,50))}),onPointerMove:od(o.onPointerMove,()=>{i.onItemLeave?.(),null===s.current&&(s.current=window.setInterval(r,50))}),onPointerLeave:od(o.onPointerLeave,()=>{c()})})}),Ug=zr.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return(0,ru.jsx)(yd.div,{"aria-hidden":!0,...r,ref:t})});Ug.displayName="SelectSeparator";var qg="SelectArrow",Bg=zr.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Qf(n),i=Zf(qg,n),s=pg(qg,n);return i.open&&"popper"===s.position?(0,ru.jsx)(qp,{...o,...r,ref:t}):null});Bg.displayName=qg;var zg=zr.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const o=zr.useRef(null),i=Bu(r,o),s=function(e){const t=zr.useRef({value:e,previous:e});return zr.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}(t);return zr.useEffect(()=>{const e=o.current;if(!e)return;const n=window.HTMLSelectElement.prototype,r=Object.getOwnPropertyDescriptor(n,"value").set;if(s!==t&&r){const n=new Event("change",{bubbles:!0});r.call(e,t),e.dispatchEvent(n)}},[s,t]),(0,ru.jsx)(yd.select,{...n,style:{...Kp,...n.style},ref:i,defaultValue:t})});function Vg(e){return""===e||void 0===e}function Kg(e){const t=bd(e),n=zr.useRef(""),r=zr.useRef(0),o=zr.useCallback(e=>{const o=n.current+e;t(o),function e(t){n.current=t,window.clearTimeout(r.current),""!==t&&(r.current=window.setTimeout(()=>e(""),1e3))}(o)},[t]),i=zr.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return zr.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,i]}function Wg(e,t,n){const r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,o=n?e.indexOf(n):-1;let i=(s=e,a=Math.max(o,0),s.map((e,t)=>s[(a+t)%s.length]));var s,a;1===r.length&&(i=i.filter(e=>e!==n));const c=i.find(e=>e.textValue.toLowerCase().startsWith(r.toLowerCase()));return c!==n?c:void 0}zg.displayName="SelectBubbleInput";var Gg=ng,Jg=og,Yg=sg,Qg=ag,Xg=cg,Zg=ug,em=xg,tm=kg,nm=Cg,rm=Tg,om=Ng,im=Ag,sm=Mg,am=Fg,cm=Ug,lm=Bg,um=e=>zr.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},zr.createElement("g",{clipPath:"url(#clip0_17_2062)"},zr.createElement("path",{d:"M7.41 8.58997L12 13.17L16.59 8.58997L18 9.99997L12 16L6 9.99997L7.41 8.58997Z"}))),dm=e=>zr.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e},zr.createElement("g",{clipPath:"url(#clip0_17_4631)"},zr.createElement("path",{d:"M9.00016 16.17L4.83016 12L3.41016 13.41L9.00016 19L21.0002 6.99997L19.5902 5.58997L9.00016 16.17Z"}))),hm=({size:e="medium",children:t,...n})=>(0,ru.jsxs)(Jg,{className:"\n inline-flex items-center justify-between flex-1\n bg-ll-background rounded-sm border\n py-1 pr-2 pl-3 min-w-[120px]\n data-[size=medium]:text-ll-font-size-p data-[size=medium]:h-8\n data-[size=large]:text-ll-font-size-h6 data-[size=large]:h-10\n","data-size":e,...n,children:[t,(0,ru.jsx)(ag,{children:(0,ru.jsx)(Fu,{SVGElement:um,fill:Ru["--ll-color-on-background-variant1"]})})]}),pm=({size:e="medium",children:t,...n})=>(0,ru.jsx)(Zg,{className:"\n overflow-hidden bg-ll-background rounded-sm shadow-md\n z-10 min-w-[120px]\n data-[size=medium]:text-ll-font-size-p\n data-[size=large]:text-ll-font-size-h6\n","data-size":e,...n,children:(0,ru.jsx)(em,{className:"font-inherit p-0",children:t})}),fm=({variant:e="dark",children:t,...n})=>(0,ru.jsxs)(rm,{className:'\n font-sans font-inherit py-1 pr-8 pl-6 outline-none\n relative rounded-sm cursor-default text-ll-on-surface-variant1\n\n data-[highlighted]:[&:not([data-variant="light"])]:bg-ll-primary\n data-[highlighted]:[&:not([data-variant="light"])]:text-ll-on-primary\n\n // Special color between now and design system\n data-[highlighted]:[&:not([data-variant="dark"])]:bg-[#EBF5F7]\n data-[highlighted]:[&:not([data-variant="dark"])]:text-ll-on-surface\n ',"data-variant":e,...n,children:[(0,ru.jsx)(om,{children:t}),(0,ru.jsx)(im,{className:"\n absolute left-0 bottom-0\n inline-flex justify-center items-center\n h-full w-6\n",children:(0,ru.jsx)(Fu,{SVGElement:dm,fill:"currentColor",height:12,width:12})})]}),{Root:gm}=qf;var mm=e=>{const{present:t,children:n}=e,r=function(e){const[t,n]=zr.useState(),r=zr.useRef(null),o=zr.useRef(e),i=zr.useRef("none"),[s,a]=function(e,t){return zr.useReducer((e,n)=>t[e][n]??e,e)}(e?"mounted":"unmounted",{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return zr.useEffect(()=>{const e=vm(r.current);i.current="mounted"===s?e:"none"},[s]),Ud(()=>{const t=r.current,n=o.current;if(n!==e){const r=i.current,s=vm(t);a(e?"MOUNT":"none"===s||"none"===t?.display?"UNMOUNT":n&&r!==s?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,a]),Ud(()=>{if(t){let e;const n=t.ownerDocument.defaultView??window,s=i=>{const s=vm(r.current).includes(i.animationName);if(i.target===t&&s&&(a("ANIMATION_END"),!o.current)){const r=t.style.animationFillMode;t.style.animationFillMode="forwards",e=n.setTimeout(()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=r)})}},c=e=>{e.target===t&&(i.current=vm(r.current))};return t.addEventListener("animationstart",c),t.addEventListener("animationcancel",s),t.addEventListener("animationend",s),()=>{n.clearTimeout(e),t.removeEventListener("animationstart",c),t.removeEventListener("animationcancel",s),t.removeEventListener("animationend",s)}}a("ANIMATION_END")},[t,a]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:zr.useCallback(e=>{r.current=e?getComputedStyle(e):null,n(e)},[])}}(t),o="function"==typeof n?n({present:r.isPresent}):zr.Children.only(n),i=Bu(r.ref,function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}(o));return"function"==typeof n||r.isPresent?zr.cloneElement(o,{ref:i}):null};function vm(e){return e?.animationName||"none"}mm.displayName="Presence";var ym=r({Anchor:()=>Vm,Arrow:()=>Ym,Close:()=>Jm,Content:()=>Gm,Popover:()=>km,PopoverAnchor:()=>Cm,PopoverArrow:()=>qm,PopoverClose:()=>Um,PopoverContent:()=>Am,PopoverPortal:()=>Nm,PopoverTrigger:()=>Rm,Portal:()=>Wm,Root:()=>zm,Trigger:()=>Km,createPopoverScope:()=>xm}),bm="Popover",[wm,xm]=id(bm,[Ep]),_m=Ep(),[Em,Sm]=wm(bm),km=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:s=!1}=e,a=_m(t),c=zr.useRef(null),[l,u]=zr.useState(!1),[d,h]=Vp({prop:r,defaultProp:o??!1,onChange:i,caller:bm});return(0,ru.jsx)(Fp,{...a,children:(0,ru.jsx)(Em,{scope:t,contentId:zd(),triggerRef:c,open:d,onOpenChange:h,onOpenToggle:zr.useCallback(()=>h(e=>!e),[h]),hasCustomAnchor:l,onCustomAnchorAdd:zr.useCallback(()=>u(!0),[]),onCustomAnchorRemove:zr.useCallback(()=>u(!1),[]),modal:s,children:n})})};km.displayName=bm;var Om="PopoverAnchor",Cm=zr.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Sm(Om,n),i=_m(n),{onCustomAnchorAdd:s,onCustomAnchorRemove:a}=o;return zr.useEffect(()=>(s(),()=>a()),[s,a]),(0,ru.jsx)(Hp,{...i,...r,ref:t})});Cm.displayName=Om;var Pm="PopoverTrigger",Rm=zr.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Sm(Pm,n),i=_m(n),s=Bu(t,o.triggerRef),a=(0,ru.jsx)(yd.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Bm(o.open),...r,ref:s,onClick:od(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?a:(0,ru.jsx)(Hp,{asChild:!0,...i,children:a})});Rm.displayName=Pm;var Lm="PopoverPortal",[Tm,Dm]=wm(Lm,{forceMount:void 0}),Nm=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,i=Sm(Lm,t);return(0,ru.jsx)(Tm,{scope:t,forceMount:n,children:(0,ru.jsx)(mm,{present:n||i.open,children:(0,ru.jsx)(Bp,{asChild:!0,container:o,children:r})})})};Nm.displayName=Lm;var jm="PopoverContent",Am=zr.forwardRef((e,t)=>{const n=Dm(jm,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,i=Sm(jm,e.__scopePopover);return(0,ru.jsx)(mm,{present:r||i.open,children:i.modal?(0,ru.jsx)(Mm,{...o,ref:t}):(0,ru.jsx)($m,{...o,ref:t})})});Am.displayName=jm;var Im=ad("PopoverContent.RemoveScroll"),Mm=zr.forwardRef((e,t)=>{const n=Sm(jm,e.__scopePopover),r=zr.useRef(null),o=Bu(t,r),i=zr.useRef(!1);return zr.useEffect(()=>{const e=r.current;if(e)return Zp(e)},[]),(0,ru.jsx)(Uf,{as:Im,allowPinchZoom:!0,children:(0,ru.jsx)(Fm,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:od(e.onCloseAutoFocus,e=>{e.preventDefault(),i.current||n.triggerRef.current?.focus()}),onPointerDownOutside:od(e.onPointerDownOutside,e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;i.current=2===t.button||n},{checkForDefaultPrevented:!1}),onFocusOutside:od(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),$m=zr.forwardRef((e,t)=>{const n=Sm(jm,e.__scopePopover),r=zr.useRef(!1),o=zr.useRef(!1);return(0,ru.jsx)(Fm,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,"pointerdown"===t.detail.originalEvent.type&&(o.current=!0));const i=t.target;n.triggerRef.current?.contains(i)&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}})}),Fm=zr.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,disableOutsidePointerEvents:s,onEscapeKeyDown:a,onPointerDownOutside:c,onFocusOutside:l,onInteractOutside:u,...d}=e,h=Sm(jm,n),p=_m(n);return Rd(),(0,ru.jsx)(jd,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:(0,ru.jsx)(kd,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:u,onEscapeKeyDown:a,onPointerDownOutside:c,onFocusOutside:l,onDismiss:()=>h.onOpenChange(!1),children:(0,ru.jsx)(Up,{"data-state":Bm(h.open),role:"dialog",id:h.contentId,...p,...d,ref:t,style:{...d.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),Hm="PopoverClose",Um=zr.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Sm(Hm,n);return(0,ru.jsx)(yd.button,{type:"button",...r,ref:t,onClick:od(e.onClick,()=>o.onOpenChange(!1))})});Um.displayName=Hm;var qm=zr.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=_m(n);return(0,ru.jsx)(qp,{...o,...r,ref:t})});function Bm(e){return e?"open":"closed"}qm.displayName="PopoverArrow";var zm=km,Vm=Cm,Km=Rm,Wm=Nm,Gm=Am,Jm=Um,Ym=qm,{Root:Qm,Portal:Xm}=ym,Zm=zr.createContext({}),ev=()=>(0,zr.useContext)(Zm),tv=()=>{const{data:e,colors:t,icon:n}=ev(),r=e.reduce((e,t)=>e+t,0),o=(0,zr.useMemo)(()=>e.map((n,o)=>{const i=n/r*100>50,s=e.slice(0,o).reduce((e,t)=>e+t,0)/r*360,a=n/r*360,c=i?"-100%":"0%",l=i?"200%":"100%";return(0,ru.jsx)("div",{className:"ll-donut-segment",style:{"--ll-chart-donut-segment-clip-path":`polygon(${c} ${c}, ${l} ${c}, ${l} ${l}, ${c} ${l})`,"--ll-chart-donut-segment-bg":t?.[o]??"#000","--ll-chart-donut-segment-degrees":s,"--ll-chart-donut-segment-before-degrees":a,"--ll-chart-donut-segment-opacity":i?1:0}},`segment-${o}`)}),[e,t]);return(0,ru.jsxs)("div",{className:"\n relative aspect-square rounded-full flex items-center justify-center overflow-hidden\n",children:[o,(0,ru.jsx)("div",{className:"\n bg-ll-surface rounded-full w-[70%] h-[70%]\n flex items-center justify-center absolute\n",children:(0,ru.jsx)("div",{className:"\n flex items-center justify-center\n w-full h-full\n\n [&>svg]:w-1/2\n [&>svg]:w-1/2\n [&>svg>path]:fill-ll-primary\n",children:n})})]})},nv=()=>{const{labels:e,colors:t}=ev();return(0,ru.jsx)("ul",{className:"list-none p-0",children:e.map((e,n)=>(0,ru.jsxs)("li",{className:"flex items-center",children:[(0,ru.jsx)("div",{className:"w-3 h-3 rounded mr-2.5",style:{backgroundColor:t?.[n]||"#000"}}),(0,ru.jsx)(Hu,{noMargin:!0,lineClamp:1,variant:"caption1",children:e})]},e))})},rv=()=>{const{title:e,labels:t,data:n,unit:r}=ev(),o=(0,zr.useMemo)(()=>{if(n)return[...n].sort((e,t)=>e-t).reverse()[0]},[n]),i=(0,zr.useMemo)(()=>r&&o?10*Math.ceil(o/10):100,[o,r]),s=(0,zr.useMemo)(()=>n.map((e,n)=>({label:t[n],value:e,width:Math.round(100*e/i)})),[i,n,t]);return(0,ru.jsxs)("div",{className:"\n h-full w-full overflow-hidden bg-ll-surface\n rounded-md p-3 flex flex-col\n",children:[(0,ru.jsx)("div",{className:"h-[6%] min-h-5",children:(0,ru.jsx)(Hu,{variant:"p",noMargin:!0,weight:"--ll-font-weight-bold",children:`${e} (${r})`})}),(0,ru.jsx)("div",{className:"grow mx-0 my-2 grid gap-y-1",children:s.map(e=>(0,ru.jsxs)("div",{className:"\n grid grid-rows-1 grid-cols-[140px_calc(100%-165px)]\n gap-y-1 items-center\n",children:["0"!==e.label&&(0,ru.jsx)(Hu,{noMargin:!0,variant:"caption2",children:e.label}),(0,ru.jsxs)("div",{className:"\n relative py-0.5 px-2.5 h-full\n flex justify-start items-center\n",children:[(0,ru.jsx)("div",{className:"\n z-10 flex items-center justify-center\n h-full w-10 absolute top-0\n",style:{left:`${e.width}%`},children:(0,ru.jsxs)(Hu,{noMargin:!0,align:"center",color:"--ll-color-on-background",variant:"caption2",children:[e.value,r]})}),(0,ru.jsx)("span",{className:"\n bg-ll-primary rounded-r-md inline-block h-full absolute top-0 bottom-0 left-0\n",style:{width:`${e.width}%`}})]})]},e.label))}),(0,ru.jsxs)("div",{className:"\n border-t border-ll-placeholder border-solid\n h-[6%] min-h-3 w-[calc(100%-165px)]\n ml-[140px] grid grid-cols-3\n",children:[(0,ru.jsx)(Hu,{noMargin:!0,variant:"caption2",color:"--ll-color-on-background",children:"0"}),(0,ru.jsx)(Hu,{noMargin:!0,variant:"caption2",align:"center",color:"--ll-color-on-background",children:`${i/2}${r}`}),(0,ru.jsx)(Hu,{noMargin:!0,variant:"caption2",align:"right",color:"--ll-color-on-background",children:`${i}${r}`})]})]})},ov=["rgb(0, 188,202)","rgb(208,232,233)","rgb(243,209,130)","rgb(255,116,16)","rgb(52,65,181)","rgb(151,184,126)","rgb(0,132,145)","rgb(62,49,91)"],iv=e=>(0,ru.jsx)(Zm.Provider,{value:{...e,colors:e.colors??ov},children:e.children}),sv=({title:e,labels:t,data:n,icon:r})=>(0,ru.jsxs)("div",{className:"\n w-full h-full\n overflow-hidden\n bg-ll-surface\n font-sans\n rounded-md\n p-3\n",children:[(0,ru.jsx)("div",{className:"\n mb-2\n",children:(0,ru.jsx)(Hu,{variant:"p",noMargin:!0,weight:"--ll-font-weight-bold",children:e})}),(0,ru.jsx)(iv,{data:n,labels:t,icon:r,children:(0,ru.jsxs)("div",{className:"\n items-center\n h-[80%]\n overflow-hidden\n my-0 mx-auto\n w-[90%] max-w-[380px] \n flex flex-row\n justify-between\n",children:[(0,ru.jsx)("div",{className:"\n w-[35%] md:w-[45%]\n",children:(0,ru.jsx)(tv,{})}),(0,ru.jsx)(ru.Fragment,{children:(0,ru.jsx)(nv,{})})]})})]}),av=({error:e})=>(0,ru.jsxs)("div",{className:"\n w-full h-full flex items-center justify-center flex-col\n","data-testid":"error-fallback",children:[(0,ru.jsx)(Hu,{variant:"h4",children:"An error occurred"}),(0,ru.jsx)(Hu,{variant:"p",color:"--ll-color-on-background-variant1",children:e.message})]}),cv=Object.create,lv=Object.defineProperty,uv=Object.getOwnPropertyDescriptor,dv=Object.getOwnPropertyNames,hv=Object.getPrototypeOf,pv=Object.prototype.hasOwnProperty,fv=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),gv=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(var o,i=dv(t),s=0,a=i.length;s<a;s++)o=i[s],!pv.call(e,o)&&o!==n&&lv(e,o,{get:(e=>t[e]).bind(null,o),enumerable:!(r=uv(t,o))||r.enumerable});return e},mv=(e,t,n)=>(n=null==e?{}:cv(hv(e)),gv(!t&&e&&e.__esModule?n:lv(n,"default",{value:e,enumerable:!0}),e)),vv="CONNECT",yv=function(e){return e.GET_STATE="get-state",e.GET_STATE_RESPONSE="get-state-response",e.SET_STATE="set-state",e.ON_CHANGE="on-change",e.RESIZE="resize",e}({}),bv=new(mv(fv((e,t)=>{var n=(()=>{var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable,s=(t,n,r)=>n in t?e(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r,a=(e,t)=>{for(var n in t||(t={}))o.call(t,n)&&s(e,n,t[n]);if(r)for(var n of r(t))i.call(t,n)&&s(e,n,t[n]);return e},c=(r,i,s,a)=>{if(i&&"object"==typeof i||"function"==typeof i)for(let c of n(i))!o.call(r,c)&&c!==s&&e(r,c,{get:()=>i[c],enumerable:!(a=t(i,c))||a.enumerable});return r},l=(e,t,n)=>s(e,"symbol"==typeof t?t:t+"",n),u={};((t,n)=>{for(var r in n)e(t,r,{get:n[r],enumerable:!0})})(u,{DEFAULT_OPTIONS:()=>h,DEFAULT_UUID_LENGTH:()=>d,default:()=>f});var d=6,h={dictionary:"alphanum",shuffle:!0,debug:!1,length:d,counter:0},p=class{constructor(e={}){l(this,"counter"),l(this,"debug"),l(this,"dict"),l(this,"version"),l(this,"dictIndex",0),l(this,"dictRange",[]),l(this,"lowerBound",0),l(this,"upperBound",0),l(this,"dictLength",0),l(this,"uuidLength"),l(this,"_digit_first_ascii",48),l(this,"_digit_last_ascii",58),l(this,"_alpha_lower_first_ascii",97),l(this,"_alpha_lower_last_ascii",123),l(this,"_hex_last_ascii",103),l(this,"_alpha_upper_first_ascii",65),l(this,"_alpha_upper_last_ascii",91),l(this,"_number_dict_ranges",{digits:[this._digit_first_ascii,this._digit_last_ascii]}),l(this,"_alpha_dict_ranges",{lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii],upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]}),l(this,"_alpha_lower_dict_ranges",{lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii]}),l(this,"_alpha_upper_dict_ranges",{upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]}),l(this,"_alphanum_dict_ranges",{digits:[this._digit_first_ascii,this._digit_last_ascii],lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii],upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]}),l(this,"_alphanum_lower_dict_ranges",{digits:[this._digit_first_ascii,this._digit_last_ascii],lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii]}),l(this,"_alphanum_upper_dict_ranges",{digits:[this._digit_first_ascii,this._digit_last_ascii],upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]}),l(this,"_hex_dict_ranges",{decDigits:[this._digit_first_ascii,this._digit_last_ascii],alphaDigits:[this._alpha_lower_first_ascii,this._hex_last_ascii]}),l(this,"_dict_ranges",{_number_dict_ranges:this._number_dict_ranges,_alpha_dict_ranges:this._alpha_dict_ranges,_alpha_lower_dict_ranges:this._alpha_lower_dict_ranges,_alpha_upper_dict_ranges:this._alpha_upper_dict_ranges,_alphanum_dict_ranges:this._alphanum_dict_ranges,_alphanum_lower_dict_ranges:this._alphanum_lower_dict_ranges,_alphanum_upper_dict_ranges:this._alphanum_upper_dict_ranges,_hex_dict_ranges:this._hex_dict_ranges}),l(this,"log",(...e)=>{let t=[...e];t[0]=`[short-unique-id] ${e[0]}`,!0===this.debug&&typeof console<"u"&&null!==console&&console.log(...t)}),l(this,"_normalizeDictionary",(e,t)=>{let n;if(e&&Array.isArray(e)&&e.length>1)n=e;else{n=[],this.dictIndex=0;let t=`_${e}_dict_ranges`,r=this._dict_ranges[t],o=0;for(let[,e]of Object.entries(r)){let[t,n]=e;o+=Math.abs(n-t)}n=Array(o);let i=0;for(let[,e]of Object.entries(r)){this.dictRange=e,this.lowerBound=this.dictRange[0],this.upperBound=this.dictRange[1];let t=this.lowerBound<=this.upperBound,r=this.lowerBound,o=this.upperBound;if(t)for(let e=r;e<o;e++)n[i++]=String.fromCharCode(e),this.dictIndex=e;else for(let e=r;e>o;e--)n[i++]=String.fromCharCode(e),this.dictIndex=e}n.length=i}if(t){for(let e=n.length-1;e>0;e--){let t=Math.floor(Math.random()*(e+1));[n[e],n[t]]=[n[t],n[e]]}}return n}),l(this,"setDictionary",(e,t)=>{this.dict=this._normalizeDictionary(e,t),this.dictLength=this.dict.length,this.setCounter(0)}),l(this,"seq",()=>this.sequentialUUID()),l(this,"sequentialUUID",()=>{let e=this.dictLength,t=this.dict,n=this.counter,r=[];do{let o=n%e;n=Math.trunc(n/e),r.push(t[o])}while(0!==n);let o=r.join("");return this.counter+=1,o}),l(this,"rnd",(e=this.uuidLength||d)=>this.randomUUID(e)),l(this,"randomUUID",(e=this.uuidLength||d)=>{if(null==e||e<1)throw Error("Invalid UUID Length Provided");let t=Array(e),n=this.dictLength,r=this.dict;for(let o=0;o<e;o++)t[o]=r[Math.floor(Math.random()*n)];return t.join("")}),l(this,"fmt",(e,t)=>this.formattedUUID(e,t)),l(this,"formattedUUID",(e,t)=>{let n={$r:this.randomUUID,$s:this.sequentialUUID,$t:this.stamp};return e.replace(/\$[rs]\d{0,}|\$t0|\$t[1-9]\d{1,}/g,e=>{let r=e.slice(0,2),o=Number.parseInt(e.slice(2),10);return"$s"===r?n[r]().padStart(o,"0"):"$t"===r&&t?n[r](o,t):n[r](o)})}),l(this,"availableUUIDs",(e=this.uuidLength)=>Number.parseFloat(([...new Set(this.dict)].length**e).toFixed(0))),l(this,"_collisionCache",new Map),l(this,"approxMaxBeforeCollision",(e=this.availableUUIDs(this.uuidLength))=>{let t=e,n=this._collisionCache.get(t);if(void 0!==n)return n;let r=Number.parseFloat(Math.sqrt(Math.PI/2*e).toFixed(20));return this._collisionCache.set(t,r),r}),l(this,"collisionProbability",(e=this.availableUUIDs(this.uuidLength),t=this.uuidLength)=>Number.parseFloat((this.approxMaxBeforeCollision(e)/this.availableUUIDs(t)).toFixed(20))),l(this,"uniqueness",(e=this.availableUUIDs(this.uuidLength))=>{let t=Number.parseFloat((1-this.approxMaxBeforeCollision(e)/e).toFixed(20));return t>1?1:t<0?0:t}),l(this,"getVersion",()=>this.version),l(this,"stamp",(e,t)=>{let n=Math.floor((t||new Date)/1e3).toString(16);if("number"==typeof e&&0===e)return n;if("number"!=typeof e||e<10)throw Error(["Param finalLength must be a number greater than or equal to 10,","or 0 if you want the raw hexadecimal timestamp"].join("\n"));let r=e-9,o=Math.round(Math.random()*(r>15?15:r)),i=this.randomUUID(r);return`${i.substring(0,o)}${n}${i.substring(o)}${o.toString(16)}`}),l(this,"parseStamp",(e,t)=>{if(t&&!/t0|t[1-9]\d{1,}/.test(t))throw Error("Cannot extract date from a formated UUID with no timestamp in the format");let n=t?t.replace(/\$[rs]\d{0,}|\$t0|\$t[1-9]\d{1,}/g,e=>{let t={$r:e=>[...Array(e)].map(()=>"r").join(""),$s:e=>[...Array(e)].map(()=>"s").join(""),$t:e=>[...Array(e)].map(()=>"t").join("")},n=e.slice(0,2),r=Number.parseInt(e.slice(2),10);return t[n](r)}).replace(/^(.*?)(t{8,})(.*)$/g,(t,n,r)=>e.substring(n.length,n.length+r.length)):e;if(8===n.length)return new Date(1e3*Number.parseInt(n,16));if(n.length<10)throw Error("Stamp length invalid");let r=Number.parseInt(n.substring(n.length-1),16);return new Date(1e3*Number.parseInt(n.substring(r,r+8),16))}),l(this,"setCounter",e=>{this.counter=e}),l(this,"validate",(e,t)=>{let n=t?this._normalizeDictionary(t):this.dict;return e.split("").every(e=>n.includes(e))});let t=a(a({},h),e);this.counter=0,this.debug=!1,this.dict=[],this.version="5.3.2";let{dictionary:n,shuffle:r,length:o,counter:i}=t;this.uuidLength=o,this.setDictionary(n,r),this.setCounter(i),this.debug=t.debug,this.log(this.dict),this.log(`Generator instantiated with Dictionary Size ${this.dictLength} and counter set to ${this.counter}`),this.log=this.log.bind(this),this.setDictionary=this.setDictionary.bind(this),this.setCounter=this.setCounter.bind(this),this.seq=this.seq.bind(this),this.sequentialUUID=this.sequentialUUID.bind(this),this.rnd=this.rnd.bind(this),this.randomUUID=this.randomUUID.bind(this),this.fmt=this.fmt.bind(this),this.formattedUUID=this.formattedUUID.bind(this),this.availableUUIDs=this.availableUUIDs.bind(this),this.approxMaxBeforeCollision=this.approxMaxBeforeCollision.bind(this),this.collisionProbability=this.collisionProbability.bind(this),this.uniqueness=this.uniqueness.bind(this),this.getVersion=this.getVersion.bind(this),this.stamp=this.stamp.bind(this),this.parseStamp=this.parseStamp.bind(this)}};l(p,"default",p);var f=p;return(t=>c(e({},"__esModule",{value:!0}),t))(u)})();void 0!==t&&(t.exports=n.default),typeof window<"u"&&(n=n.default)})(),1).default)({length:10}),wv=class e{constructor(e,t){this.onMessageHandlers=[],this.message=(e,t,n)=>this.crossOrigin?this.postMessage(e,t,n):this.customEventMessage(e,t,n),this.channelId=e??"DEFAULT",this.channelNodeId=`channel-node-${bv.rnd()}`,this.crossOrigin=t,this.connection=new Promise(e=>{this.resolveConnection=e}),this.boundMessageHandler=this.handleMessage.bind(this)}disconnect(){this.onMessageHandlers=[],window.removeEventListener(this.channelId,this.boundMessageHandler),this.connection=new Promise(e=>{this.resolveConnection=e})}onMessage(e){this.onMessageHandlers.push(e)}removeMessageHandler(e){let t=this.onMessageHandlers.findIndex(t=>t===e);this.onMessageHandlers.splice(t,1)}customEventMessage(e,t,n){let r=new CustomEvent(this.channelId,{detail:{eventId:n,channelId:this.channelId,channelNodeId:this.channelNodeId,name:e,data:t}});window.dispatchEvent(r)}postMessage(e,t,n){this.crossOrigin?.targetOrigin?this.crossOrigin?.window?.postMessage({eventId:n,channelId:this.channelId,channelNodeId:this.channelNodeId,name:e,data:t},this.crossOrigin?.targetOrigin):console.error("A target origin was not specified.")}async eventRequest(e,t){let n=bv.rnd();return new Promise(r=>{let o=e=>{let{eventId:t}=e;n===t&&(this.removeMessageHandler(o),r(e))};this.onMessage(o),this.message(e,t,n)})}async waitForEvent(e){return new Promise(t=>{let n=r=>{let{name:o}=r;e===o&&(this.removeMessageHandler(n),t(r))};this.onMessage(n)})}handleMessage(t){let n;if(e.isCustomEvent(t))n=t.detail;else{if(this.crossOrigin&&!this.crossOrigin.targetOrigin.includes(t.origin)&&"*"!==this.crossOrigin?.targetOrigin)return;n=t.data}let{channelId:r,channelNodeId:o}=n;this.channelId===r&&this.channelNodeId!==o&&this.onMessageHandlers.forEach(e=>{e(n)})}static isCustomEvent(e){return void 0!==e.detail}},xv=class extends wv{connect(){return window.addEventListener(this.crossOrigin?"message":this.channelId,this.boundMessageHandler),this.eventRequest(vv).then(e=>{this.resolveConnection(e)}),this.connection}},_v=o((e,t)=>{var n=1/0,r=17976931348623157e292,o=NaN,i="[object Symbol]",s=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,l=/^0o[0-7]+$/i,u=parseInt,d=Object.prototype.toString;function h(e,t){var h;if("function"!=typeof t)throw new TypeError("Expected a function");return e=function(e){var t=function(e){return e?(e=function(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&d.call(e)==i}(e))return o;if(p(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=p(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(s,"");var n=c.test(e);return n||l.test(e)?u(e.slice(2),n?2:8):a.test(e)?o:+e}(e),e===n||e===-1/0?(e<0?-1:1)*r:e==e?e:0):0===e?e:0}(e),h=t%1;return t==t?h?t-h:t:0}(e),function(){return--e>0&&(h=t.apply(this,arguments)),e<=1&&(t=void 0),h}}function p(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}t.exports=function(e){return h(2,e)}}),Ev=e(_v(),1),Sv={},kv={zoom:15,pitch:0,bearing:0,cooperativeGestures:!0,mapProvider:{name:"maptiler"},hideAttribution:!1,showSchoolRatings:!1},Ov={},Cv={},Pv={hideAttribution:!1},Rv={},Lv={},Tv={hideAttribution:!1},Dv={buyerColor:"#21BCCC",neutralColor:"#BEBEBE",sellerColor:"#FDC033",decreaseColor:"#EF4444",increaseColor:"#21BCCC"},Nv={locale:"en"},jv={"local-content":{globalOptions:Nv,options:{mapProvider:{name:"maptiler"},zoom:14,pitch:0,bearing:0,cooperativeGestures:!0,distanceUnit:"metric",hideScores:!1,showSchoolRatings:!1,scoresMenu:{defaultOpen:!0,title:!0,categories:{amenities:{hide:!1,order:1,colors:{background:"#FFF2C3",fill:"#BF8500"},scores:{shopping:{hide:!1,hideScore:!1,order:1},groceries:{hide:!1,hideScore:!1,order:2},restaurants:{hide:!1,hideScore:!1,order:3},cafes:{hide:!1,hideScore:!1,order:4}}},education:{hide:!1,order:2,colors:{background:"#E4EFFF",fill:"#003548"},scores:{daycares:{hide:!1,hideScore:!1,order:1},primary_schools:{hide:!1,hideScore:!1,order:2},high_schools:{hide:!1,hideScore:!1,order:3}}},transport:{hide:!1,order:3,colors:{background:"#E9F8FA",fill:"#008491"},scores:{transit_friendly:{hide:!1,hideScore:!1,order:1},car_friendly:{hide:!1,hideScore:!1,order:2},pedestrian_friendly:{hide:!1,hideScore:!1,order:3},cycling_friendly:{hide:!1,hideScore:!1,order:4}}},character:{hide:!1,order:4,colors:{background:"#FFDAAC",fill:"#FF7044"},scores:{nightlife:{hide:!1,hideScore:!1,order:1},vibrant:{hide:!1,hideScore:!1,order:2},historic:{hide:!1,hideScore:!1,order:3},quiet:{hide:!1,hideScore:!1,order:4}}},nature:{hide:!1,order:5,colors:{background:"#D8F4D9",fill:"#0F766E"},scores:{parks:{hide:!1,hideScore:!1,order:1},greenery:{hide:!1,hideScore:!1,order:2}}},health:{hide:!1,order:6,colors:{background:"#FFE7FE",fill:"#FF84D6"},scores:{wellness:{hide:!1,hideScore:!1,order:1}}}}}}},"local-demographics":{globalOptions:Nv,options:Sv},"neighborhood-map":{globalOptions:Nv,options:kv},"neighborhood-hero":{globalOptions:Nv,options:Ov},"neighborhood-characteristics":{globalOptions:Nv,options:Cv},"neighborhood-highlights":{globalOptions:Nv,options:Rv},"neighborhood-demographics":{globalOptions:Nv,options:Pv},"neighborhood-property-value-drivers":{globalOptions:Nv,options:Lv},"neighborhood-match":{globalOptions:Nv,options:Tv},"neighborhood-market-trends":{globalOptions:Nv,options:{hideAttribution:!1}},"neighborhood-schools":{globalOptions:Nv,options:{hideAttribution:!1,showSchoolRatings:!1}},"neighborhood-showcase":{globalOptions:Nv,options:{}},"neighborhood-featured":{globalOptions:Nv,options:{}},"lead-capture":{globalOptions:Nv,options:{}},demographics:{globalOptions:Nv,options:Sv},"local-neighborhood-map":{globalOptions:Nv,options:kv},"local-neighborhood-hero":{globalOptions:Nv,options:Ov},"local-neighborhood-characteristics":{globalOptions:Nv,options:Cv},"local-neighborhood-highlights":{globalOptions:Nv,options:Rv},"local-neighborhood-demographics":{globalOptions:Nv,options:Pv},"local-neighborhood-property-value-drivers":{globalOptions:Nv,options:Lv},"local-neighborhood-match":{globalOptions:Nv,options:Tv}},Av=class{constructor(){this.data=new Map}getItem(e){return this.data.get(e)??null}setItem(e,t){this.data.set(e,t)}removeItem(e){this.data.delete(e)}clear(){this.data.clear()}key(e){return Array.from(this.data.keys())[e]??null}get length(){return this.data.size}};var Iv=class{constructor(e){this.group=e,this.storage=function(){try{return"undefined"!=typeof window&&window.localStorage?window.localStorage:new Av}catch{return new Av}}()}setGroup(e){this.group=e}getGroup(){return this.group}getItem(e){return this.storage.getItem(this.group?`${this.group}.${e}`:e)}setItem(e,t){this.storage.setItem(this.group?`${this.group}.${e}`:e,t)}removeItem(e){this.storage.removeItem(this.group?`${this.group}.${e}`:e)}},Mv=(new Iv,new class{constructor(){this.storageLocation="suggestion_history",this.history=[],this.storage=new Iv("commute");const e=this.storage.getItem(this.storageLocation);e&&(this.history=JSON.parse(e))}push(e){this.history=this.removeDuplicateEntries(e),this.history.unshift(e),this.history.length>5&&(this.history=this.history.slice(0,5)),this.storage.setItem(this.storageLocation,JSON.stringify(this.history))}hasSuggestionHistory(){return this.history.length>0}getSuggestionHistory(){return this.history}removeDuplicateEntries(e){return this.history.filter(t=>t.locationId!==e.locationId)}}),$v=e=>"object"==typeof e&&null!==e&&!Array.isArray(e);function Fv(e,...t){if(!t.length)return e;const n=t.shift();return $v(e)&&$v(n)&&Object.keys(n).forEach(t=>{$v(n[t])?(e[t]||Object.assign(e,{[t]:{}}),Fv(e[t],n[t])):Object.assign(e,{[t]:n[t]})}),Fv(e,...t)}var Hv=e=>{const t=(0,zr.useRef)(e),n=(0,zr.useRef)(),r=(0,zr.useRef)(!1),o=(0,zr.useRef)(!1),[,i]=(0,zr.useState)(0);r.current&&(o.current=!0),(0,zr.useEffect)(()=>(r.current||(n.current=t.current(),r.current=!0),i(e=>e+1),()=>{o.current&&n.current&&n.current()}),[])},Uv=(e,t)=>{const[n,r]=(0,zr.useState)(e);return(0,zr.useEffect)(()=>{const n=setTimeout(()=>{r(e)},t);return()=>{clearTimeout(n)}},[e,t]),n};var qv=(0,Ev.default)(()=>zr.createContext({})),Bv=()=>{const e=zr.useContext(qv());if(!e)throw new Error("useStateManagerContext must be used under StateManagerProvider");return e};function zv(e){let t=e.apiKey||"";t.startsWith("V3 ")&&(t=t.slice(3));const n={...e,apiKey:`V3 ${t}`,clientId:t.split(".")[0]};if("string"==typeof e?.options?.lat||"string"==typeof e?.options?.lng){if(n.options||(n.options={}),n.options.lat=Number(e?.options?.lat),n.options.lng=Number(e?.options?.lng),void 0!==e?.options?.marker){let t=!1;"string"==typeof e.options.marker.lat&&(n.options.marker.lat=Number(e.options.marker.lat),t=!0),"string"==typeof e.options.marker.lng&&(n.options.marker.lng=Number(e.options.marker.lng),t=!0),t&&console.warn("[Local Logic SDK] Converted lat/lng from string to number in sdkState.options.marker. Please ensure lat/lng are always numbers. This may break your SDK implementation in the future.")}console.warn("[Local Logic SDK] Converted lat/lng from string to number in sdkState.options. Please ensure lat/lng are always numbers. This may break your SDK implementation in the future.")}if(n.globalOptions?.locale){const e=function(e){const t=e?.toLowerCase().split(/[-_]/)[0];return"en"===t||"fr"===t?t:"en"}(n.globalOptions.locale);e!==n.globalOptions.locale&&console.warn(`[Local Logic SDK] Received unsupported locale "${n.globalOptions.locale}". Falling back to "${e}". Please pass "en" or "fr" as the locale option.`),n.globalOptions={...n.globalOptions,locale:e}}return n}var Vv=zr.memo(({children:e})=>{const t=qv(),n=(0,Yc.useSearch)(),r=zr.useRef(n),o=(0,Yc.useLocation)().current.pathname.split("/"),i=jv[o[o.length-1]],s=zr.useRef(),[a,c]=(0,zr.useState)(!1),[l,u]=(0,zr.useState)(zv(i)),d=Uv(l,500),h=(0,Yc.useNavigate)(),p=e=>{r.current=zv(e),u(zv(e))},f=e=>{e.name===yv.GET_STATE&&s.current?.message(yv.GET_STATE_RESPONSE,r.current,e.eventId),e.name===yv.SET_STATE&&p(e.data)};Hv(()=>{const e=[()=>window.location?.ancestorOrigins?.[0],()=>new URLSearchParams(window.location?.search??"").get("parentOrigin"),()=>new URL(document.referrer).origin];let t="";for(const n of e)try{const e=n();if(e&&"null"!==e&&"*"!==e){t=e;break}}catch{}const r=new xv(n.channelId,{targetOrigin:t,window:window.parent});s.current=r,r?.onMessage(f),r?.connect().then(e=>{const t=Fv(l,e.data);p(t),c(!0),ia.addBreadCrumb("stateManager","useEffectOnce: Connected to sdks-js",{oldState:l,newState:e.data,mergedState:t})})});const g=e=>{s.current?.message(yv.ON_CHANGE,e),ia.addBreadCrumb("stateManager","onChange",{data:e})};(0,zr.useEffect)(()=>{h({search:()=>d,replace:!0})},[d]),(0,zr.useEffect)(()=>{l.options&&g({type:"options",data:l.options})},[l.options]);const m=(0,zr.useMemo)(()=>({sdkState:l,setSdkState:p,onChange:g,followerNode:s.current}),[l,p,g]);return(0,zr.useEffect)(()=>{if(!a||!l.globalOptions?.locale)return;const e=l.globalOptions?.locale||"en";rc.language!==e&&(ia.addBreadCrumb("stateManager","i18n.changeLanguage",{language:e}),rc.changeLanguage(e))},[l.globalOptions?.locale,a]),a?(0,ru.jsx)(t.Provider,{value:m,children:e}):null});Vv.displayName="StateManagerProvider";var Kv=(e,t="",n={})=>(Object.keys(e).forEach(r=>{if(Object.prototype.hasOwnProperty.call(e,r)){const o=t?`${t}.${r}`:r;"object"!=typeof e[r]||null===e[r]||Array.isArray(e[r])?n[`LocalLogic.${o}`]=e[r]:Kv(e[r],o,n)}}),{...n}),Wv=({children:e})=>{const{sdkState:t}=Bv();return(0,zr.useEffect)(()=>{ia.setTags(Kv(t||{}))},[t.apiKey,t.globalOptions,t.options]),(0,ru.jsx)(ru.Fragment,{children:e})},Gv=({children:e})=>{const{sdkState:t}=Bv(),n=(0,Yc.useRouter)();return(0,ru.jsx)(Ys,{clientSideID:"643eb54728e2fd16ae6e7a15",context:{kind:"organization",key:t.clientId,custom:{locale:t.globalOptions?.locale||"en",sdk:n.state.location.pathname.split("/")[3]}},reactOptions:{sendEventsOnFlagRead:!0},options:{streaming:!0,logger:Os({level:"none"})},children:e})},Jv=new eu({defaultOptions:{queries:{retry:2,staleTime:1/0}}}),Yv=()=>{return(0,ru.jsx)(ru.Fragment,{children:(0,ru.jsx)(lu,{FallbackComponent:av,onError:(t,n)=>{const r=Vr(t,n);e&&e(t,n,r)},children:(0,ru.jsx)(Pu,{children:(0,ru.jsx)(su,{client:Jv,children:(0,ru.jsx)(Vv,{children:(0,ru.jsx)(Gv,{children:(0,ru.jsx)(Wv,{children:(0,ru.jsx)(Yc.Outlet,{})})})})})})})});var e};window.addEventListener("DOMContentLoaded",e=>{Jr.createRoot(document.getElementById("root")).render((0,ru.jsx)(zr.StrictMode,{children:(0,ru.jsx)(Yv,{})}))});export{il as $,em as A,ed as B,im as C,ag as D,Gg as E,yd as F,hu as G,Hu as H,vd as I,Hl as J,iu as K,hd as L,zd as M,Ud as N,Jg as O,bd as P,al as Q,id as R,rm as S,Xg as T,$u as U,Bu as V,Ru as W,kl as X,Rl as Y,El as Z,fm as _,ia as _t,Iv as a,Sc as at,Zg as b,ct as bt,sv as c,Hc as ct,Jm as d,Ic as dt,tl as et,Gm as f,Vc as ft,pm as g,ec as gt,mm as h,tc as ht,Mv as i,Nc as it,Vp as j,Yg as k,iv as l,Rc as lt,Km as m,Ec as mt,Uv as n,Zc as nt,Dv as o,Oc as ot,zm as p,Cc as pt,nu as q,Hv as r,Xc as rt,yv as s,kc as st,Bv as t,el as tt,rv as u,Pc as ut,gm as v,Qs as vt,om as w,Qg as x,hm as y,rt as yt,od as z};
|
|
3
|
+
//# sourceMappingURL=index-PbHyodiU.js.map
|