@zeniai/web-cockpit-ui 1.14.91-dev → 1.14.91-dev-betaRR0
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/ACHDetailsPage-B6sY0jN6-Dv_4G1XI.js +21 -0
- package/dist/assets/{AIPerformancePage-BWK9fXrz-DKsZ1mo0.js → AIPerformancePage-BWK9fXrz-tS1FxKid.js} +2 -2
- package/dist/assets/{AccountInfoPage-DfT5DDiZ-fWZyYCg5.js → AccountInfoPage-DfT5DDiZ-CV2_yTPc.js} +3 -3
- package/dist/assets/{AccountInfoPageContent-nUi26Aww-BYypek4H.js → AccountInfoPageContent-nUi26Aww-CUuk_20a.js} +11 -11
- package/dist/assets/{AccountLockedInfoModal-BROj4bmE-BVM1T1YI.js → AccountLockedInfoModal-BROj4bmE-Cfoe0YA9.js} +5 -5
- package/dist/assets/{AccountReconDetailsDrawerPage-C-3FFCQZ-sRbxt9OR.js → AccountReconDetailsDrawerPage-C-3FFCQZ-CxBX6qm4.js} +7 -7
- package/dist/assets/{AccountRow-BM2kGWyR-T6iB2hx_.js → AccountRow-BM2kGWyR-CJCg6x0x.js} +10 -10
- package/dist/assets/{AccountsPromoCardStack-CNCG5uPJ-CVvmiGCx.js → AccountsPromoCardStack-CNCG5uPJ-m2eUaU2L.js} +5 -5
- package/dist/assets/AddAddressForCardDrawer-BuAtFO1w-B9URXppK.js +6 -0
- package/dist/assets/{AddToWalletPage-DyrcWdBZ-CvPiU8kF.js → AddToWalletPage-DyrcWdBZ--nr8n_4Z.js} +17 -17
- package/dist/assets/{AgingReportsPage-CmluxKG3-A44UbSFN.js → AgingReportsPage-CmluxKG3-BApj252U.js} +7 -7
- package/dist/assets/{AllUserItems-CVZZU-J3-TfKbUj2d.js → AllUserItems-CVZZU-J3-COeMV7u0.js} +6 -6
- package/dist/assets/{ApAgingDetailPage-CoNxqskm-DFDFQfze.js → ApAgingDetailPage-CoNxqskm-0EjHKnBi.js} +1 -1
- package/dist/assets/{AppBasePage-CTGNzUtN-DSfPwIJw.js → AppBasePage-CTGNzUtN-BfaGtOzk.js} +4 -4
- package/dist/assets/{AppDrawerContent-59dQVUxu-C64nAWzc.js → AppDrawerContent-59dQVUxu-BnKh28FR.js} +1 -1
- package/dist/assets/{ApprovalRulesSettingsPage-XEW5sdNg-BbhudnSk.js → ApprovalRulesSettingsPage-XEW5sdNg-LVlVZSHT.js} +1 -1
- package/dist/assets/{ArAgingChart-D3Ym4gVE-BqVBnPwY.js → ArAgingChart-D3Ym4gVE-DsJpAb8n.js} +4 -4
- package/dist/assets/{ArAgingDetailPage-BLEJSLJJ-DwMAtZnW.js → ArAgingDetailPage-BLEJSLJJ-DBAkqt03.js} +1 -1
- package/dist/assets/{AttachmentView-DSP80cjm-UNIl1Ai8.js → AttachmentView-DSP80cjm-D7w4ZtT4.js} +7 -7
- package/dist/assets/{BankAccountSection-DRrNcA79-hP-Vs5m_.js → BankAccountSection-DRrNcA79-D0y5RgB_.js} +5 -5
- package/dist/assets/{BankAccountWarningSection-Ub-gsfhE-CrMug0PW.js → BankAccountWarningSection-Ub-gsfhE-pvCiKI7-.js} +9 -9
- package/dist/assets/{BankConnectionsSettingsPage-BcTtJTbg-algC_RED.js → BankConnectionsSettingsPage-BcTtJTbg-ehD3_4Dh.js} +9 -9
- package/dist/assets/{BillDetailPage-D7AQyxwr-Cr5mMjBH.js → BillDetailPage-D7AQyxwr-e7SQTUJW.js} +2 -2
- package/dist/assets/{BillPayApprovalRuleDetailPage-BQWGENO8-OS81cubl.js → BillPayApprovalRuleDetailPage-BQWGENO8-qq4pmey1.js} +1 -1
- package/dist/assets/{BillPayApprovalRulesPage-BbA1Nwqe-BwMbtGVn.js → BillPayApprovalRulesPage-BbA1Nwqe-3MsdZySS.js} +1 -1
- package/dist/assets/{BillPayPromoPage-DSTS_vBW-BNfdixF0.js → BillPayPromoPage-DSTS_vBW-Ce9u0nsw.js} +4 -4
- package/dist/assets/{BillPaySetUpPage-CvlVPVCA-C-Yq8DpY.js → BillPaySetUpPage-CvlVPVCA-CCbbdiQc.js} +1 -1
- package/dist/assets/{BillingSettingsPage-nKpHtd4C-Bnbrb4t9.js → BillingSettingsPage-nKpHtd4C-DLiPc2FT.js} +2 -2
- package/dist/assets/{BillsBulkReviewDrawerPage-DNHAoceL-Dw8wGAVZ.js → BillsBulkReviewDrawerPage-DNHAoceL-CthJ8Dd6.js} +1 -1
- package/dist/assets/{BoxItem-Bjv3WNXO-DVhc5wWw.js → BoxItem-Bjv3WNXO-d_9opxkd.js} +1 -1
- package/dist/assets/{BusinessVerificationPage-Bj4D9bX2-BIO97DuN.js → BusinessVerificationPage-Bj4D9bX2-DWX5ckwL.js} +7 -7
- package/dist/assets/CardNumberSubText-BYY-Inxd-VoZJjuBC.js +21 -0
- package/dist/assets/{CashbackDetailPage-D9UiTqp9-zR6MfAmm.js → CashbackDetailPage-D9UiTqp9-9Lz5t64N.js} +14 -14
- package/dist/assets/{ChargeCardDetailPage-C5EdiIyl-DLQH13JM.js → ChargeCardDetailPage-C5EdiIyl-C4UWTuR2.js} +24 -24
- package/dist/assets/{ChargeCardListPage-DZwz1qoD-C4LK4t_r.js → ChargeCardListPage-DZwz1qoD-B146-EXW.js} +14 -14
- package/dist/assets/{ChargeCardListTable-D5B05Z1F-BFq9lu6-.js → ChargeCardListTable-D5B05Z1F-BBBvhTcZ.js} +13 -13
- package/dist/assets/{ChargeCardPromoPage-CDJMtGJb-BonChypf.js → ChargeCardPromoPage-CDJMtGJb-3FYfKocS.js} +10 -10
- package/dist/assets/{ChargeCardSetupPage-CVV24gS9-Bz9Vbd0f.js → ChargeCardSetupPage-CVV24gS9-BSJi9V_M.js} +3 -3
- package/dist/assets/{ChargeCardStatementsPage-CmjBoi5e-CP137h_S.js → ChargeCardStatementsPage-CmjBoi5e-maH5VKYN.js} +3 -3
- package/dist/assets/{CheckDepositDrawerPage-CYOhT5Qz-Ctri9wNN.js → CheckDepositDrawerPage-CYOhT5Qz-KAp7o68o.js} +10 -10
- package/dist/assets/{CollapsableReportTable-hL_Ycouc-B8J7Q_nq.js → CollapsableReportTable-hL_Ycouc-CWDILu02.js} +32 -32
- package/dist/assets/{CompanyOfficerDetailsSection-DR_6TlQa-eD8A7jcO.js → CompanyOfficerDetailsSection-DR_6TlQa-CaPRdQzP.js} +1 -1
- package/dist/assets/{CompanyPassportCard-B4chn7-Q-D5SPmBv_.js → CompanyPassportCard-B4chn7-Q-DdxULjSC.js} +1 -1
- package/dist/assets/{CompanyPassportPage-oT9HnnPQ-SX0lC40Z.js → CompanyPassportPage-oT9HnnPQ-Ca6G5119.js} +1 -1
- package/dist/assets/{CompleteProfile-BgH4v76Z-8UAVvvgt.js → CompleteProfile-BgH4v76Z-J-mh56N2.js} +1 -1
- package/dist/assets/ConfettiBurst-Cl6jHJ8H-C9SoFqPe.js +1 -0
- package/dist/assets/{CreateOrEditVendorPage-CW-u7pJU-p324jU3k.js → CreateOrEditVendorPage-CW-u7pJU-Bzg24rp1.js} +1 -1
- package/dist/assets/{CreditCardPaymentDrawerPage-D30M7ol4-DoXJ5bDN.js → CreditCardPaymentDrawerPage-D30M7ol4-CwaBYQLR.js} +101 -101
- package/dist/assets/{CurrencySelectField-DOCEstMc-DZU689ma.js → CurrencySelectField-DOCEstMc-BkHxR5HA.js} +3 -3
- package/dist/assets/{CustomerOnboardingActivationPage-DMPNjFL_-ku4Vuy0S.js → CustomerOnboardingActivationPage-DMPNjFL_-TbnD-4OG.js} +5 -5
- package/dist/assets/CustomerOnboardingContainerPage-SmOFmXBW-zEIEcSQa.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-CBYo4VQn-Dn7fU-s8.js → CustomerOnboardingDetailPageSkeleton-CBYo4VQn-BujXWuJC.js} +8 -8
- package/dist/assets/{CustomerOnboardingNoStepsPage-EBVRCYfJ-CfvYqECa.js → CustomerOnboardingNoStepsPage-EBVRCYfJ-xtPONz37.js} +3 -3
- package/dist/assets/{CustomerOnboardingPage-TJK6s-LM-BKRL2lJB.js → CustomerOnboardingPage-TJK6s-LM-CsM-rW7t.js} +1 -1
- package/dist/assets/CustomerOnboardingProductSuitePage-lNIP5gSu-D8leFJAq.js +202 -0
- package/dist/assets/{Dashboard-WiE9IRrh-Cv0kOt8p.js → Dashboard-WiE9IRrh-D3xuAsNG.js} +14 -14
- package/dist/assets/{DashboardReportPage-BKHl_IVD-C4Ea2qys.js → DashboardReportPage-BKHl_IVD-CMH5dEgW.js} +11 -11
- package/dist/assets/DashboardSidebarBackgroundAnimation-B1mJObim-DaBPsyhD.js +12 -0
- package/dist/assets/{DepositAccTransactionItem-C8tChaJS-DUssbHtI.js → DepositAccTransactionItem-C8tChaJS-_jmc_rYW.js} +1 -1
- package/dist/assets/DepositAccTransactionListPage-B6px7upV-CQ8W1uho.js +66 -0
- package/dist/assets/DomesticWireDetailsPage-BFQJmzYm-DdIUFkni.js +21 -0
- package/dist/assets/{DownloadOverlay-DB-qx46O-j8z4pSob.js → DownloadOverlay-DB-qx46O-BzRX_iWf.js} +1 -1
- package/dist/assets/{DrawerPage-Bha9ElcW-B8Be3mMf.js → DrawerPage-Bha9ElcW-B91lWMHe.js} +6 -6
- package/dist/assets/{EditPeoplePage-B6QD5Vld-jl0Ywq6s.js → EditPeoplePage-B6QD5Vld-DKZ4nB8f.js} +1 -1
- package/dist/assets/{EditReimbursementDetailPage-EplOf2mP-0BJtsB6D.js → EditReimbursementDetailPage-EplOf2mP-u2YMFjY5.js} +1 -1
- package/dist/assets/{EntityDetailPage-5Cu1qehd-DbU14HUf.js → EntityDetailPage-5Cu1qehd-DEcgoDIq.js} +1 -1
- package/dist/assets/{EntitySummarySection-D6z6-dM7-CxR6H9p6.js → EntitySummarySection-D6z6-dM7-C8vqyJE6.js} +2 -2
- package/dist/assets/{ExpenseAutomationOverviewPage-DkoxczRc-Nhh5EsPg.js → ExpenseAutomationOverviewPage-DkoxczRc-BFmIjbbK.js} +15 -15
- package/dist/assets/{ExpenseAutomationPage-Na3XKgcg-v_T_dNPC.js → ExpenseAutomationPage-Na3XKgcg-BOy-W5HC.js} +1 -1
- package/dist/assets/{ExpressPayPage-DWGl_gml-BK4q9z9-.js → ExpressPayPage-DWGl_gml-BoP5Cs2z.js} +12 -12
- package/dist/assets/{FeaturePreviewPage-BgkpUPMm-CjuE-Vy6.js → FeaturePreviewPage-BgkpUPMm--0g5n3S4.js} +3 -3
- package/dist/assets/{FollowStepsSection-64oy2OLD-mYi4qCkY.js → FollowStepsSection-64oy2OLD-D3h0tFyq.js} +7 -7
- package/dist/assets/{GlobalReviewListPage-DHfTyj2C-jQOPvWvS.js → GlobalReviewListPage-DHfTyj2C-RnZ7xNb7.js} +12 -12
- package/dist/assets/{InformationCardStack-Dw3lhl2I-7einUDdd.js → InformationCardStack-Dw3lhl2I-i5Npg5-3.js} +1 -1
- package/dist/assets/{InsightsCardStack-BiEswY1Z-B0ppu_rT.js → InsightsCardStack-BiEswY1Z-DYRJcEae.js} +9 -9
- package/dist/assets/{InsightsSection-DvqCilqy-J94KiGaL.js → InsightsSection-DvqCilqy-BsxjZx3R.js} +3 -3
- package/dist/assets/{IntegrationsSettingsPage-DzVYf5ff-EFzWzTcS.js → IntegrationsSettingsPage-DzVYf5ff-Qz_64-AR.js} +2 -2
- package/dist/assets/{InternationalWireSwiftDetailsPage-DTHcuQsH-DCnTBpNn.js → InternationalWireSwiftDetailsPage-DTHcuQsH-LkhNT71n.js} +11 -11
- package/dist/assets/{InternationalWireVerificationPage-BzyRqd-m-CtMekcQE.js → InternationalWireVerificationPage-BzyRqd-m-Bs1sKcFl.js} +7 -7
- package/dist/assets/{InviteFormPage-CaJB3ss1-BX5i7EqT.js → InviteFormPage-CaJB3ss1-DDpF9vZd.js} +17 -17
- package/dist/assets/{InvitePageListView-8Ltt8tHx-CtYoDyrk.js → InvitePageListView-8Ltt8tHx-BVYRRTTO.js} +1 -1
- package/dist/assets/{InvitePeoplePage-A7oKAD7M-BQc_PdIV.js → InvitePeoplePage-A7oKAD7M-0hQ58v_R.js} +2 -2
- package/dist/assets/{InvoiceUploadSection-DomquLut-e92SA0tf.js → InvoiceUploadSection-DomquLut-C6XQxVf3.js} +5 -5
- package/dist/assets/{IssueChargeCardPage-DtIQ1Buk-DjM4t17X.js → IssueChargeCardPage-DtIQ1Buk-DVoIaqMD.js} +1 -1
- package/dist/assets/{LabeledAddressValue-B_9lh-_a-DIizmhzb.js → LabeledAddressValue-B_9lh-_a-BQeLvRQa.js} +2 -2
- package/dist/assets/{LabeledAddressValueField-CC7T3qZQ-m9gvzhHo.js → LabeledAddressValueField-CC7T3qZQ-CjYkOklE.js} +2 -2
- package/dist/assets/LabeledControlledCheckBoxField-CeMM7Ci3-DVaYpdZO.js +16 -0
- package/dist/assets/{LabeledCreatableSingleSelectField-DKD0oEl8-gq-eDRMt.js → LabeledCreatableSingleSelectField-DKD0oEl8-Cyxj1Kus.js} +3 -3
- package/dist/assets/{LabeledDocumentField-Dy3jwAiL-49YAoImC.js → LabeledDocumentField-Dy3jwAiL-XoHwubm3.js} +3 -3
- package/dist/assets/{LabeledDropDownFormattedTextField-DDzM3r6s-ECrfBFdw.js → LabeledDropDownFormattedTextField-DDzM3r6s-Wztx4Tcl.js} +1 -1
- package/dist/assets/{LabeledText-axaAGyUS-Dng_AeMD.js → LabeledText-axaAGyUS-BpEJBxD4.js} +2 -2
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-UlGND56Y-Bns3vXLL.js → LabeledUserSingleSelectWithSubtitlesField-UlGND56Y-CeEZ7NWG.js} +17 -17
- package/dist/assets/{LabeledZeniRolesDropDownField-dpz7g9jK-BS9FUIQq.js → LabeledZeniRolesDropDownField-dpz7g9jK-1OORssNe.js} +9 -9
- package/dist/assets/{LinkJETransactionPage-CJniqVcu-DlmRVmek.js → LinkJETransactionPage-CJniqVcu-BUqqOVZ3.js} +3 -3
- package/dist/assets/{LockCardPage-CjO8cr2a-_f0132IP.js → LockCardPage-CjO8cr2a-B7T-NUky.js} +12 -12
- package/dist/assets/{LowBalancePopup-DVS-w3b7-DP0lgN2T.js → LowBalancePopup-DVS-w3b7-CXJHrLHV.js} +2 -2
- package/dist/assets/MagicLinkACHDetailsPage-CUHMKmcj-DbWiJSy4.js +1 -0
- package/dist/assets/MagicLinkDomesticWireDetailsPage-Dnc7OzKQ-S_MOFfkp.js +1 -0
- package/dist/assets/MagicLinkInternationalWireDetailsPage-sBpQkYwP-B_hpFhv2.js +1 -0
- package/dist/assets/{MagicLinkSuccessPage-DAAoq3iT-c3oKtr_f.js → MagicLinkSuccessPage-DAAoq3iT-C_Yyw67d.js} +6 -6
- package/dist/assets/MagicLinkTitleSection-FMRBLlRJ-BJi3iHKO.js +17 -0
- package/dist/assets/MailingDetailsSection-CiJ5JLA6-Dh-rh1lg.js +21 -0
- package/dist/assets/Menu-wpP8R1br-CAapPWSw.js +17 -0
- package/dist/assets/{MyBankConnectionsSettingsPage-DIIFgnkE-CogNLqVY.js → MyBankConnectionsSettingsPage-DIIFgnkE-BP3xfm53.js} +2 -2
- package/dist/assets/{MyPendingActivationChargeCardListPage-Di_KYRgS-DRNBLhDG.js → MyPendingActivationChargeCardListPage-Di_KYRgS-Ci2uuBdO.js} +1 -1
- package/dist/assets/{MyProfileSettingsPage-m6vaeGgZ-chnTYzOu.js → MyProfileSettingsPage-m6vaeGgZ-CzB44LiA.js} +4 -4
- package/dist/assets/{NavBarWithPicker-C_qO8mgD-DUpFfabv.js → NavBarWithPicker-C_qO8mgD-BWszQoIE.js} +4 -4
- package/dist/assets/{NavigationArrow-BXYIj6Wz-DziJLhPd.js → NavigationArrow-BXYIj6Wz-B7qUUnjS.js} +8 -8
- package/dist/assets/{NavigationDots-BvKSgdgh-LQiuRx4x.js → NavigationDots-BvKSgdgh-BXw04_O_.js} +4 -4
- package/dist/assets/{NewGlobalMerchantPage-Dc3xEoiZ-C2aDiu95.js → NewGlobalMerchantPage-Dc3xEoiZ-DB34-Ax1.js} +2 -2
- package/dist/assets/NoDataChart-C5ZP32zB-CMBnBikM.js +26 -0
- package/dist/assets/NoDataTable-BnBYE8p_-D99JCqJE.js +8 -0
- package/dist/assets/{NotFoundPage-CZ25GWwU-BIBXUzqs.js → NotFoundPage-CZ25GWwU-Bhr9smJg.js} +4 -4
- package/dist/assets/{NotificationSettingsPage-DHvgj7Hu-D3suXG--.js → NotificationSettingsPage-DHvgj7Hu-D70wdxPy.js} +3 -3
- package/dist/assets/{NotificationsListConfig-BBLSv0sd-C4KCM8pw.js → NotificationsListConfig-BBLSv0sd-D3pDalXG.js} +1 -1
- package/dist/assets/{NotificationsPage-CGVEC-Zc-C8fq9c_9.js → NotificationsPage-CGVEC-Zc-aEkue81y.js} +14 -14
- package/dist/assets/{OpExByVendorPage-D55JZne--D9xmj7rz.js → OpExByVendorPage-D55JZne--BA2gN_9D.js} +6 -6
- package/dist/assets/{OverlayContainerPage-Daz3A7cI-D6qPPmeQ.js → OverlayContainerPage-Daz3A7cI-B2pRyPAw.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-fVmttEKP-D6Evs_k0.js → PandLWithForecastPage-fVmttEKP-Cpmbp3qS.js} +11 -11
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-BiU8tQnm-4Kl9uXwr.js → PaymentAccountSetupBillingAddressSection-BiU8tQnm-_fnUz-j3.js} +5 -5
- package/dist/assets/{PeoplePage-QuuuX2AS-CUwuNLCQ.js → PeoplePage-QuuuX2AS-BJIGfeNN.js} +12 -12
- package/dist/assets/Preview-m-FcrQ0s.js +1 -0
- package/dist/assets/{ProductsCarousel-zdZkfaiY-CKycG9Wt.js → ProductsCarousel-zdZkfaiY-9riU76fC.js} +3 -3
- package/dist/assets/{PromoBaseCards-flFtcbIg-iLyc6jwq.js → PromoBaseCards-flFtcbIg-hQ-cGzbT.js} +1 -1
- package/dist/assets/{QBOConnectionDialog-DNB2C1vQ-B6h7mZJt.js → QBOConnectionDialog-DNB2C1vQ-B-m0Orif.js} +2 -2
- package/dist/assets/{QBOSetupSection-B59etoGz-Dx4Hkrje.js → QBOSetupSection-B59etoGz-BjsJ5dP9.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRuleDetailPage-D7do3o0A-DaR0xdJA.js → ReimbursementApprovalRuleDetailPage-D7do3o0A-ZSNYROgC.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRulesPage-BJ6GewQ2-D7efVmkv.js → ReimbursementApprovalRulesPage-BJ6GewQ2-cn7dx9_x.js} +1 -1
- package/dist/assets/{ReimbursementDetailPage-DKAtYSOy-C-uqjyM_.js → ReimbursementDetailPage-DKAtYSOy-rPi_28qO.js} +1 -1
- package/dist/assets/{ReimbursementPromoPage-DKcSHlHp-XcrUKScH.js → ReimbursementPromoPage-DKcSHlHp-B-x2_K1K.js} +9 -9
- package/dist/assets/{ReimbursementSetUpPage-Y1e_hna--rh2VyUST.js → ReimbursementSetUpPage-Y1e_hna--CWaIrVmZ.js} +5 -5
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-fgz8s4w9-CzZAxGly.js → ReimbursementsBulkReviewDrawerPage-fgz8s4w9-BgzjXAGE.js} +1 -1
- package/dist/assets/{ReloadCard-DjtdPHq5-BoSxtWCb.js → ReloadCard-DjtdPHq5-qE-nJEXk.js} +3 -3
- package/dist/assets/{ReportTableViewSelector-C8e6IEWt-BJN3fro7.js → ReportTableViewSelector-C8e6IEWt--jlW7QpR.js} +1 -1
- package/dist/assets/{ReportsPage-BIe0eDLC-D5ygJVqP.js → ReportsPage-BIe0eDLC-Cn2-db9t.js} +3 -3
- package/dist/assets/{RevenueChart-Cc0XrxLL-BB6kfchw.js → RevenueChart-Cc0XrxLL-RTOUbgfW.js} +30 -30
- package/dist/assets/{ReviewDetailsPage-CU1AYWgR--SOiatSS.js → ReviewDetailsPage-CU1AYWgR-BCcFVvxj.js} +17 -17
- package/dist/assets/{ReviewOverlay-CruJ9O84-BdMFQyaH.js → ReviewOverlay-CruJ9O84-CVyRQtbr.js} +1 -1
- package/dist/assets/{RoleWithToolTip-fC3byzzv-DteZC2-q.js → RoleWithToolTip-fC3byzzv-Da5EXkAB.js} +6 -6
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-CE3tUYhk-Aj3mnuFr.js → ScheduleDetailsFixedAssetsPage-CE3tUYhk-NtG2QTRz.js} +3 -3
- package/dist/assets/{ScheduleDetailsPage-BhAqJ1Of-BNYzMpaE.js → ScheduleDetailsPage-BhAqJ1Of-D1IstsCs.js} +3 -3
- package/dist/assets/{ScheduleSequenceTable-NSt1juSD-BtySotUK.js → ScheduleSequenceTable-NSt1juSD-BKLbxQMq.js} +21 -21
- package/dist/assets/{ScreenRoutes-Ofrn7XPK.js → ScreenRoutes-CWkpMCjL.js} +75 -75
- package/dist/assets/SetUpAccountSection-C1EnJv1V-Cvu34ipQ.js +378 -0
- package/dist/assets/{SignIn-BhIof_Cm-Stp0fHNQ.js → SignIn-BhIof_Cm-DeDZlCNC.js} +1 -1
- package/dist/assets/SignInScreen-Cihieu4J.js +1 -0
- package/dist/assets/{SpendManagementListViewPage-BEWNNX_Z-Qf8TDCkQ.js → SpendManagementListViewPage-BEWNNX_Z-j_tiMoWb.js} +4 -4
- package/dist/assets/{SpendManagementPerTabPage-Vs1Eoxgd-DGhcXeqs.js → SpendManagementPerTabPage-Vs1Eoxgd-DfGQnSHO.js} +20 -20
- package/dist/assets/{SpendManagementSection-C38Zpi1z-Hvu4v5m7.js → SpendManagementSection-C38Zpi1z-B-GaQ2j9.js} +10 -10
- package/dist/assets/{StatementItem-bHInVThd-BfGU3kqj.js → StatementItem-bHInVThd-CsJa48J1.js} +2 -2
- package/dist/assets/{StatementsPage-CGQhmaXx-CVtkQqM2.js → StatementsPage-CGQhmaXx-CawRkQvA.js} +1 -1
- package/dist/assets/{StatusSwitcher-7fiKLb5g-cQtYU__8.js → StatusSwitcher-7fiKLb5g-B_2JeKNK.js} +1 -1
- package/dist/assets/{SubTabSwitcher-9AnfZiNy-CobTdTqd.js → SubTabSwitcher-9AnfZiNy-vCnU7WF-.js} +3 -3
- package/dist/assets/{SummaryCard-DOycYLs1-BLeRuOD7.js → SummaryCard-DOycYLs1-CaQB1fqx.js} +1 -1
- package/dist/assets/{TaskManagementPage-CehyMnY0-BwJtO-U4.js → TaskManagementPage-CehyMnY0-Cue4tauF.js} +10 -10
- package/dist/assets/{TimeRangeSwitcher-Dq2FEgFR-DmMi5La_.js → TimeRangeSwitcher-Dq2FEgFR-D3AQaZI-.js} +11 -11
- package/dist/assets/{TimeframeSwitcher-By3xz_-m-1CBF6COV.js → TimeframeSwitcher-By3xz_-m-Bv71ZHom.js} +6 -6
- package/dist/assets/{TimeframeSwitcherWithToggle-a3fmbzNR-B9R7QlVw.js → TimeframeSwitcherWithToggle-a3fmbzNR-DZx2FqjJ.js} +3 -3
- package/dist/assets/{TopExCard-GEQpp_KY-74e79UYx.js → TopExCard-GEQpp_KY-BIUWKmJn.js} +4 -4
- package/dist/assets/{TopExDetailPage-hid1dQYl-WgHXC6hE.js → TopExDetailPage-hid1dQYl-vzpcxnkQ.js} +9 -9
- package/dist/assets/{TransactionDetailPage-CX4JW9WM-DyZTJ1bq.js → TransactionDetailPage-CX4JW9WM-BshlnJb5.js} +3 -3
- package/dist/assets/{TransactionList-BixeXh4Y-Il163hc_.js → TransactionList-BixeXh4Y-DpKuzYhu.js} +13 -13
- package/dist/assets/{TransactionListBig-CGMMJQBd-KQNhkGbE.js → TransactionListBig-CGMMJQBd-CPWLJgiW.js} +7 -7
- package/dist/assets/{TransactionListPage-CBVUTX4y-DWsla1LN.js → TransactionListPage-CBVUTX4y-CTzBsfwd.js} +5 -5
- package/dist/assets/{TransactionVendorDetailPage-CEbHH_0r-CS6QQqEG.js → TransactionVendorDetailPage-CEbHH_0r-B2rNZ7e8.js} +4 -4
- package/dist/assets/{TransferDrawerPage-BFd7uQnF-AGu3EQB7.js → TransferDrawerPage-BFd7uQnF-BDnFaRJN.js} +32 -32
- package/dist/assets/{TreasuryOverviewPage-Bd58hOy8-P3TIcDYG.js → TreasuryOverviewPage-Bd58hOy8-COabKjkh.js} +28 -28
- package/dist/assets/{TreasuryPromoPage-BvArufHi-B6OSOn5z.js → TreasuryPromoPage-BvArufHi-mIhWyHJJ.js} +6 -6
- package/dist/assets/{TreasuryStatementsPage-YLCEBbRh-BeAedV0-.js → TreasuryStatementsPage-YLCEBbRh-Hb92GX1G.js} +1 -1
- package/dist/assets/{TreasuryTaxLetterPage-D_6mgQqi-CO3HXioV.js → TreasuryTaxLetterPage-D_6mgQqi-YEx3tems.js} +1 -1
- package/dist/assets/{TrendChart-D3dT6hUb-CRyvw86n.js → TrendChart-D3dT6hUb-BmrIV_Lt.js} +3 -3
- package/dist/assets/{TrendWithTransactions-Gj-u5KXi-CpckXM1N.js → TrendWithTransactions-Gj-u5KXi-_cLHr6Sd.js} +1 -1
- package/dist/assets/{UncategorizedAccountsMappingPage-B3eRYolj-D-Jwo7-l.js → UncategorizedAccountsMappingPage-B3eRYolj-BupHpvxs.js} +3 -3
- package/dist/assets/{UnitIntegrationPage-DpjR9hUu-BIdCIf5k.js → UnitIntegrationPage-DpjR9hUu-Bkk7bekK.js} +4 -4
- package/dist/assets/UploadAdditionalDocumentOverlay-COtszXUY-DeW-OEQ-.js +38 -0
- package/dist/assets/Vendor2FAPopup-C85mhuSb-Ci-aokF3.js +1 -0
- package/dist/assets/VendorACHDetailsPage-DeexeWpV-PyPL7qy9.js +1 -0
- package/dist/assets/{VendorDetailPage-BrbKfsL4-BYuDBwtU.js → VendorDetailPage-BrbKfsL4-C5yq1wZE.js} +86 -86
- package/dist/assets/VendorDomesticWireDetailsPage-DBChSKlR-DfQ9uMtB.js +1 -0
- package/dist/assets/{VendorFiling1099EditablePage-DgBLn3fd-DyXTQ39Q.js → VendorFiling1099EditablePage-DgBLn3fd-yxfQxsgz.js} +32 -32
- package/dist/assets/{VendorFirstReviewPage-jc7-OExI-CcNlKzIr.js → VendorFirstReviewPage-jc7-OExI-CXLfVnQg.js} +58 -58
- package/dist/assets/{VendorInternationalWireDetailsPage-c6isgwH2-CfXEdhbK.js → VendorInternationalWireDetailsPage-c6isgwH2-rWvjTHMm.js} +7 -7
- package/dist/assets/VendorInternationalWireSwiftDetailsPage-CywCx8-0-toI88yyC.js +1 -0
- package/dist/assets/{VendorsAccountsSection--VfdAF3H-aooc9xax.js → VendorsAccountsSection--VfdAF3H-C0MWVdaQ.js} +2 -2
- package/dist/assets/{VerifyDevice-CaifjdR8-CqDImdvA.js → VerifyDevice-CaifjdR8-oDnQadr1.js} +1 -1
- package/dist/assets/VideoPlayer-BVR9LPmm-C0OY9hGQ.js +78 -0
- package/dist/assets/{VideoPopup-BEXc8o78-CxvDyO3n.js → VideoPopup-BEXc8o78-BfKdRFKO.js} +5 -5
- package/dist/assets/{WarningsDrawerPage-CboqfxzC-BsdL63Q1.js → WarningsDrawerPage-CboqfxzC-Df6JGLWB.js} +4 -4
- package/dist/assets/{ZeniAccountDetailPage-Dujj0-XC-Bs0_mCxO.js → ZeniAccountDetailPage-Dujj0-XC-D3Dn9J7C.js} +21 -21
- package/dist/assets/{ZeniAccountListViewPage--SMJDGvC-B9VB-g9k.js → ZeniAccountListViewPage--SMJDGvC-D8iSNbC5.js} +1 -1
- package/dist/assets/ZeniAccountNavBarPieces-DqLJVQ5t-CpI_x0eJ.js +14 -0
- package/dist/assets/{ZeniAccountPromoPage-BVjJvWsA-D_izrQ3u.js → ZeniAccountPromoPage-BVjJvWsA-eagcbJWN.js} +6 -6
- package/dist/assets/{ZeniAccountSetupPage-Dvxst8RT-Dw_0q67c.js → ZeniAccountSetupPage-Dvxst8RT-RZ48F_0V.js} +1 -1
- package/dist/assets/{ZeniCopyright-B88k3pkr-D_GBhPtz.js → ZeniCopyright-B88k3pkr-CwZenhhP.js} +1 -1
- package/dist/assets/ZeniTransferAmountSlider-1DS0MsTI-DcvYtFGr.js +63 -0
- package/dist/assets/add-to-wallet-DgdBD8_G-B14A9z81.js +1 -0
- package/dist/assets/{analytics-CHPpxU3b.js → analytics-C6L7hlHG.js} +1 -1
- package/dist/assets/analyticsHelper-DKc66BYi.js +1 -0
- package/dist/assets/{analyticsHelper-DmujELNG-B2_5NV-p.js → analyticsHelper-DmujELNG-ClL2XzYx.js} +1 -1
- package/dist/assets/arrow-south-east-round-PEovUgvH-4-pP5pik.js +1 -0
- package/dist/assets/auto-transfer-rule-mbafm5D3-D30iL0YR.js +1 -0
- package/dist/assets/{chartTypes-DRiSljvE-CN4L62GH.js → chartTypes-DRiSljvE-CrLsLRjf.js} +1 -1
- package/dist/assets/{commonDimensions-BDftm0gJ-DyUDFvZC.js → commonDimensions-BDftm0gJ-Bk927TMF.js} +1 -1
- package/dist/assets/constants-B1dh_xIn.js +1 -0
- package/dist/assets/core-CadaPWsO.js +62 -0
- package/dist/assets/{dash.all.min-Bzta_mrR.js → dash.all.min-BwAm2K21.js} +1 -1
- package/dist/assets/{detailCommon-BGgE4mE3-D-w4kHC7.js → detailCommon-BGgE4mE3-BEh9p6sH.js} +3 -3
- package/dist/assets/{downloadPdf-DCQ9vVZs-Be80rXL-.js → downloadPdf-DCQ9vVZs-DnysTBvz.js} +1 -1
- package/dist/assets/empty-BVIRhP6J.js +1 -0
- package/dist/assets/empty-Co20hejg.js +1 -0
- package/dist/assets/epic-IoIkBJiH.js +2 -0
- package/dist/assets/gift-box-Cmt9OgIZ-B8pnTsjV.js +1 -0
- package/dist/assets/graphic-no-data-l-DU4J8fDt-CgpIivOh.js +1 -0
- package/dist/assets/graphic-no-data-net-burn-l-CzmycA0m-Bbm3dmZD.js +1 -0
- package/dist/assets/handshake-BPg58FML-BttIiMDC.js +1 -0
- package/dist/assets/{hls-SyH7Grr1.js → hls-DifHSkbp.js} +1 -1
- package/dist/assets/{index-BiiqfeFx.js → index-4dPdvww9.js} +1 -1
- package/dist/assets/index-6sWe2DhR.js +1 -0
- package/dist/assets/{index-DJLrbf0F.js → index-CiMyMhgu.js} +98 -98
- package/dist/assets/index-CnYBBjVQ.js +1 -0
- package/dist/assets/{index-BG_bOyH4.js → index-DBJcoW1J.js} +3 -3
- package/dist/assets/index-sRtT3LWH.js +1 -0
- package/dist/assets/index-sbaC-tND.js +1 -0
- package/dist/assets/{lexical-dZFDzIA1.js → lexical-DEI4_j9X.js} +1 -1
- package/dist/assets/{liveblocks-C2I4vRCJ.js → liveblocks-D92pTRaw.js} +28 -20
- package/dist/assets/lottie-Dv5hJ5mA.js +9 -0
- package/dist/assets/{mapLoadingInProgressToTreeNode-CXP8ZZTG-DkaL-N2A.js → mapLoadingInProgressToTreeNode-CXP8ZZTG-vSJ6j19m.js} +1 -1
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-BZSP-VcP-BuUbTOqM.js → mapSectionWithAcOnlyToTreeNode-BZSP-VcP-CrMDUoxM.js} +1 -1
- package/dist/assets/{mapSpacerToTreeNode-Bc1S_1ej-BOT7FVTB.js → mapSpacerToTreeNode-Bc1S_1ej-BemzQbL5.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-ClgcHX26-Cs9gyyXd.js → mapTimeframeBalancesToTreeNode-ClgcHX26-Bi0tXnM_.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-Cwp98PMa-tz5P0V5W.js → mapTimeframeBalancesToTreeNode-Cwp98PMa-DQxUPxNn.js} +1 -1
- package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-BmDRXfMV-Bmf8af15.js → mapTimeframeHeaderLoadingInProgressToTreeNode-BmDRXfMV-FlWaHbgN.js} +1 -1
- package/dist/assets/mui-D2MqZYRi.js +17 -0
- package/dist/assets/page-detail-CWX5S47F-CycRTeYU.js +1 -0
- package/dist/assets/radio-default-CiSgisfh-C3-g-fgb.js +1 -0
- package/dist/assets/{react-D9gRIIQJ.js → react-B3z6gyiL.js} +2 -2
- package/dist/assets/react-Bbwv1dSd.js +17 -0
- package/dist/assets/{react-CurU10nF.js → react-BnUDmuTB.js} +3 -3
- package/dist/assets/{react-B2Dtpj08.js → react-Bv_vNAf8.js} +2 -2
- package/dist/assets/{react-C5CamjHm.js → react-CSxJXI_i.js} +2 -2
- package/dist/assets/{react-BuuImry8.js → react-CeQlQsdb.js} +1 -1
- package/dist/assets/{react-KsUvriAa.js → react-D2dXMlhh.js} +2 -2
- package/dist/assets/{react-PdDuKQQV.js → react-UOVhoe0Z.js} +1 -1
- package/dist/assets/recharts-t7V-Kaqf.js +73 -0
- package/dist/assets/sentry-DMKAGVXl.js +515 -0
- package/dist/assets/shield-DOlUxcFf-DKC5YbXI.js +1 -0
- package/dist/assets/{toCOABalancesWithID--oEGymMJ-DrPkDPTu.js → toCOABalancesWithID--oEGymMJ-DIxvxTaj.js} +1 -1
- package/dist/assets/toChartData-CavJzP6f-Bu_YRbEM.js +1 -0
- package/dist/assets/transaction-placeholder-CpOwZAMG-BdGoUwcv.js +1 -0
- package/dist/assets/{uploadAttachment-BuVCsq0Q-BB-5S1Qg.js → uploadAttachment-BuVCsq0Q-C2wm0oAH.js} +7 -7
- package/dist/assets/{uploadReceipts-CPw64UYa-DU-gRzOR.js → uploadReceipts-CPw64UYa-BgNLcFfw.js} +1 -1
- package/dist/assets/url-CnqqWgIy.js +1 -0
- package/dist/assets/{url-RUB1rBsd.js → url-DsW1BPwo.js} +1 -1
- package/dist/assets/useLongPress-GCK2COYQ-DVYx_Wdi.js +1 -0
- package/dist/assets/usp-line-BBd1wKwW-D20AQITY.js +1 -0
- package/dist/assets/{utils-DUsHM-Uc.js → utils-BWiizB9D.js} +19 -19
- package/dist/assets/{zeni-epic-state-CQt4n3Xe.js → zeni-epic-state-DjAFCaxy.js} +34 -34
- package/dist/index.html +1 -1
- package/package.json +2 -2
- package/dist/assets/ACHDetailsPage-B6sY0jN6-B0gf8H4B.js +0 -21
- package/dist/assets/AddAddressForCardDrawer-BuAtFO1w-BFBt3SFQ.js +0 -6
- package/dist/assets/CardNumberSubText-BYY-Inxd-BdlFsn4_.js +0 -21
- package/dist/assets/ConfettiBurst-Cl6jHJ8H-LC2meCe-.js +0 -1
- package/dist/assets/CustomerOnboardingContainerPage-SmOFmXBW-DTgF2r26.js +0 -1
- package/dist/assets/CustomerOnboardingProductSuitePage-lNIP5gSu-PR2itKHa.js +0 -202
- package/dist/assets/DashboardSidebarBackgroundAnimation-B1mJObim-BrrhB9xn.js +0 -12
- package/dist/assets/DepositAccTransactionListPage-B6px7upV-CeIhvwtb.js +0 -66
- package/dist/assets/DomesticWireDetailsPage-BFQJmzYm-RX-JpFy3.js +0 -21
- package/dist/assets/LabeledControlledCheckBoxField-CeMM7Ci3-mZLzoQGL.js +0 -16
- package/dist/assets/MagicLinkACHDetailsPage-CUHMKmcj-B4JK6Tsk.js +0 -1
- package/dist/assets/MagicLinkDomesticWireDetailsPage-Dnc7OzKQ-CjkHVZHo.js +0 -1
- package/dist/assets/MagicLinkInternationalWireDetailsPage-sBpQkYwP-BFgoRuDp.js +0 -1
- package/dist/assets/MagicLinkTitleSection-FMRBLlRJ-BOWrScDm.js +0 -17
- package/dist/assets/MailingDetailsSection-CiJ5JLA6-DddwOxAo.js +0 -21
- package/dist/assets/Menu-wpP8R1br-CxnIQs8p.js +0 -17
- package/dist/assets/NoDataChart-C5ZP32zB-Co6FSXzL.js +0 -26
- package/dist/assets/NoDataTable-BnBYE8p_-CiELOEE2.js +0 -8
- package/dist/assets/Preview-D0lKYz6_.js +0 -1
- package/dist/assets/SetUpAccountSection-C1EnJv1V-nWkvB51T.js +0 -378
- package/dist/assets/SignInScreen-ApNcuhAj.js +0 -1
- package/dist/assets/UploadAdditionalDocumentOverlay-COtszXUY-DBj80beJ.js +0 -38
- package/dist/assets/Vendor2FAPopup-C85mhuSb-SCWhQlz7.js +0 -1
- package/dist/assets/VendorACHDetailsPage-DeexeWpV-CvETHK8j.js +0 -1
- package/dist/assets/VendorDomesticWireDetailsPage-DBChSKlR-4iWeRYsC.js +0 -1
- package/dist/assets/VendorInternationalWireSwiftDetailsPage-CywCx8-0-BWyYdePs.js +0 -1
- package/dist/assets/VideoPlayer-BVR9LPmm-Cf1X7mgb.js +0 -78
- package/dist/assets/ZeniAccountNavBarPieces-DqLJVQ5t-B6EqVL37.js +0 -14
- package/dist/assets/ZeniTransferAmountSlider-1DS0MsTI-D_vM8ORb.js +0 -63
- package/dist/assets/add-to-wallet-DgdBD8_G-DvwlYBb0.js +0 -1
- package/dist/assets/analyticsHelper-D88-Oppk.js +0 -1
- package/dist/assets/arrow-south-east-round-PEovUgvH-D9klpzRU.js +0 -1
- package/dist/assets/auto-transfer-rule-mbafm5D3-CHCjFoIN.js +0 -1
- package/dist/assets/constants-B4Ak6U9p.js +0 -1
- package/dist/assets/core-CA3j8Axi.js +0 -77
- package/dist/assets/empty-CrPfQgao.js +0 -1
- package/dist/assets/empty-Dn000SHy.js +0 -1
- package/dist/assets/epic-C_I3d-Sx.js +0 -2
- package/dist/assets/gift-box-Cmt9OgIZ-eSACml6z.js +0 -1
- package/dist/assets/graphic-no-data-l-DU4J8fDt-BzIPOWHn.js +0 -1
- package/dist/assets/graphic-no-data-net-burn-l-CzmycA0m-CtBcTNoa.js +0 -1
- package/dist/assets/handshake-BPg58FML-DvA7MfJg.js +0 -1
- package/dist/assets/index-BWZriWwb.js +0 -1
- package/dist/assets/index-C-ypGNlB.js +0 -1
- package/dist/assets/index-C4-PHmb9.js +0 -1
- package/dist/assets/index-C5fdNIhc.js +0 -1
- package/dist/assets/lottie-B7mXQ-R-.js +0 -9
- package/dist/assets/mui-DpJXlk4t.js +0 -25
- package/dist/assets/page-detail-CWX5S47F-Byx36A1h.js +0 -1
- package/dist/assets/radio-default-CiSgisfh-HcY1qXLg.js +0 -1
- package/dist/assets/react-B7zczQTC.js +0 -17
- package/dist/assets/recharts-BGdJnVo5.js +0 -73
- package/dist/assets/sentry-BA4piVNf.js +0 -500
- package/dist/assets/shield-DOlUxcFf-DciCHlJY.js +0 -1
- package/dist/assets/toChartData-CavJzP6f-B2iIF7nP.js +0 -1
- package/dist/assets/transaction-placeholder-CpOwZAMG-2yCTNaDx.js +0 -1
- package/dist/assets/url-Bq2XNMnM.js +0 -1
- package/dist/assets/useLongPress-GCK2COYQ-Ch-mrcwO.js +0 -1
- package/dist/assets/usp-line-BBd1wKwW-BZdA9pHf.js +0 -1
|
@@ -1,500 +0,0 @@
|
|
|
1
|
-
import{a as ke,k as rh,l as sh}from"./core-CA3j8Axi.js";import{g as Ss}from"./mui-DpJXlk4t.js";import{A as ja}from"./zeni-epic-state-CQt4n3Xe.js";(function(){try{var e=typeof window<"u"?window:typeof Ss<"u"?Ss:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="ea31f92b-0132-4500-98e3-7e42da13741f",e._sentryDebugIdIdentifier="sentry-dbid-ea31f92b-0132-4500-98e3-7e42da13741f")}catch{}})();const T=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,H=globalThis,ct="9.42.1";function St(){return mr(H),H}function mr(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||ct,t[ct]=t[ct]||{}}function gr(e,t,n=H){const r=n.__SENTRY__=n.__SENTRY__||{},s=r[ct]=r[ct]||{};return s[e]||(s[e]=t())}const $i=["debug","info","warn","error","log","assert","trace"],oh="Sentry Logger ",bs={};function Pt(e){if(!("console"in H))return e();const t=H.console,n={},r=Object.keys(bs);r.forEach(s=>{const o=bs[s];n[s]=t[s],t[s]=o});try{return e()}finally{r.forEach(s=>{t[s]=n[s]})}}function ih(){Ui().enabled=!0}function ah(){Ui().enabled=!1}function nl(){return Ui().enabled}function ch(...e){Bi("log",...e)}function uh(...e){Bi("warn",...e)}function lh(...e){Bi("error",...e)}function Bi(e,...t){T&&nl()&&Pt(()=>{H.console[e](`${oh}[${e}]:`,...t)})}function Ui(){return T?gr("loggerSettings",()=>({enabled:!1})):{enabled:!1}}const _={enable:ih,disable:ah,isEnabled:nl,log:ch,warn:uh,error:lh},rl=50,rt="?",qa=/\(error: (.*)\)/,Ga=/captureMessage|captureException/;function sl(...e){const t=e.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0,s=0)=>{const o=[],i=n.split(`
|
|
2
|
-
`);for(let a=r;a<i.length;a++){const c=i[a];if(c.length>1024)continue;const u=qa.test(c)?c.replace(qa,"$1"):c;if(!u.match(/\S*Error: /)){for(const d of t){const l=d(u);if(l){o.push(l);break}}if(o.length>=rl+s)break}}return fh(o.slice(s))}}function dh(e){return Array.isArray(e)?sl(...e):e}function fh(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(Pr(t).function||"")&&t.pop(),t.reverse(),Ga.test(Pr(t).function||"")&&(t.pop(),Ga.test(Pr(t).function||"")&&t.pop()),t.slice(0,rl).map(n=>({...n,filename:n.filename||Pr(t).filename,function:n.function||rt}))}function Pr(e){return e[e.length-1]||{}}const wo="<anonymous>";function dt(e){try{return!e||typeof e!="function"?wo:e.name||wo}catch{return wo}}function Zo(e){const t=e.exception;if(t){const n=[];try{return t.values.forEach(r=>{r.stacktrace.frames&&n.push(...r.stacktrace.frames)}),n}catch{return}}}const ns={},Va={};function Dt(e,t){ns[e]=ns[e]||[],ns[e].push(t)}function Ft(e,t){if(!Va[e]){Va[e]=!0;try{t()}catch(n){T&&_.error(`Error while instrumenting ${e}`,n)}}}function He(e,t){const n=e&&ns[e];if(n)for(const r of n)try{r(t)}catch(s){T&&_.error(`Error while triggering instrumentation handler.
|
|
3
|
-
Type: ${e}
|
|
4
|
-
Name: ${dt(r)}
|
|
5
|
-
Error:`,s)}}let To=null;function ol(e){const t="error";Dt(t,e),Ft(t,ph)}function ph(){To=H.onerror,H.onerror=function(e,t,n,r,s){return He("error",{column:r,error:s,line:n,msg:e,url:t}),To?To.apply(this,arguments):!1},H.onerror.__SENTRY_INSTRUMENTED__=!0}let Io=null;function il(e){const t="unhandledrejection";Dt(t,e),Ft(t,hh)}function hh(){Io=H.onunhandledrejection,H.onunhandledrejection=function(e){return He("unhandledrejection",e),Io?Io.apply(this,arguments):!0},H.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const al=Object.prototype.toString;function ut(e){switch(al.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return pt(e,Error)}}function Un(e,t){return al.call(e)===`[object ${t}]`}function cl(e){return Un(e,"ErrorEvent")}function Ya(e){return Un(e,"DOMError")}function mh(e){return Un(e,"DOMException")}function Ve(e){return Un(e,"String")}function Ys(e){return typeof e=="object"&&e!==null&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function wn(e){return e===null||Ys(e)||typeof e!="object"&&typeof e!="function"}function ft(e){return Un(e,"Object")}function Xs(e){return typeof Event<"u"&&pt(e,Event)}function gh(e){return typeof Element<"u"&&pt(e,Element)}function _h(e){return Un(e,"RegExp")}function _r(e){return!!(e?.then&&typeof e.then=="function")}function yh(e){return ft(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function pt(e,t){try{return e instanceof t}catch{return!1}}function ul(e){return!!(typeof e=="object"&&e!==null&&(e.__isVue||e._isVue))}function ll(e){return typeof Request<"u"&&pt(e,Request)}const Hi=H,Sh=80;function ze(e,t={}){if(!e)return"<unknown>";try{let n=e;const r=5,s=[];let o=0,i=0;const a=" > ",c=a.length;let u;const d=Array.isArray(t)?t:t.keyAttrs,l=!Array.isArray(t)&&t.maxStringLength||Sh;for(;n&&o++<r&&(u=bh(n,d),!(u==="html"||o>1&&i+s.length*c+u.length>=l));)s.push(u),i+=u.length,n=n.parentNode;return s.reverse().join(a)}catch{return"<unknown>"}}function bh(e,t){const n=e,r=[];if(!n?.tagName)return"";if(Hi.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 s=t?.length?t.filter(i=>n.getAttribute(i)).map(i=>[i,n.getAttribute(i)]):null;if(s?.length)s.forEach(i=>{r.push(`[${i[0]}="${i[1]}"]`)});else{n.id&&r.push(`#${n.id}`);const i=n.className;if(i&&Ve(i)){const a=i.split(/\s+/);for(const c of a)r.push(`.${c}`)}}const o=["aria-label","type","name","title","alt"];for(const i of o){const a=n.getAttribute(i);a&&r.push(`[${i}="${a}"]`)}return r.join("")}function en(){try{return Hi.document.location.href}catch{return""}}function dl(e){if(!Hi.HTMLElement)return null;let t=e;const n=5;for(let r=0;r<n;r++){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}function Tn(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function ko(e,t){let n=e;const r=n.length;if(r<=150)return n;t>r&&(t=r);let s=Math.max(t-60,0);s<5&&(s=0);let o=Math.min(s+140,r);return o>r-5&&(o=r),o===r&&(s=Math.max(o-140,0)),n=n.slice(s,o),s>0&&(n=`'{snip} ${n}`),o<r&&(n+=" {snip}"),n}function Es(e,t){if(!Array.isArray(e))return"";const n=[];for(let r=0;r<e.length;r++){const s=e[r];try{ul(s)?n.push("[VueViewModel]"):n.push(String(s))}catch{n.push("[value cannot be serialized]")}}return n.join(t)}function Eh(e,t,n=!1){return Ve(e)?_h(t)?t.test(e):Ve(t)?n?e===t:e.includes(t):!1:!1}function Ye(e,t=[],n=!1){return t.some(r=>Eh(e,r,n))}function Ae(e,t,n){if(!(t in e))return;const r=e[t];if(typeof r!="function")return;const s=n(r);typeof s=="function"&&fl(s,r);try{e[t]=s}catch{T&&_.log(`Failed to replace method "${t}" in object`,e)}}function Oe(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{T&&_.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function fl(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,Oe(e,"__sentry_original__",t)}catch{}}function Wi(e){return e.__sentry_original__}function pl(e){if(ut(e))return{message:e.message,name:e.name,stack:e.stack,...Ka(e)};if(Xs(e)){const t={type:e.type,target:Xa(e.target),currentTarget:Xa(e.currentTarget),...Ka(e)};return typeof CustomEvent<"u"&&pt(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function Xa(e){try{return gh(e)?ze(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}}function Ka(e){if(typeof e=="object"&&e!==null){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}else return{}}function vh(e,t=40){const n=Object.keys(pl(e));n.sort();const r=n[0];if(!r)return"[object has no keys]";if(r.length>=t)return Tn(r,t);for(let s=n.length;s>0;s--){const o=n.slice(0,s).join(", ");if(!(o.length>t))return s===n.length?o:Tn(o,t)}return""}function wh(){const e=H;return e.crypto||e.msCrypto}function Ne(e=wh()){let t=()=>Math.random()*16;try{if(e?.randomUUID)return e.randomUUID().replace(/-/g,"");e?.getRandomValues&&(t=()=>{const n=new Uint8Array(1);return e.getRandomValues(n),n[0]})}catch{}return("10000000100040008000"+1e11).replace(/[018]/g,n=>(n^(t()&15)>>n/4).toString(16))}function hl(e){return e.exception?.values?.[0]}function Ht(e){const{message:t,event_id:n}=e;if(t)return t;const r=hl(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function Qo(e,t,n){const r=e.exception=e.exception||{},s=r.values=r.values||[],o=s[0]=s[0]||{};o.value||(o.value=t||""),o.type||(o.type="Error")}function At(e,t){const n=hl(e);if(!n)return;const r={type:"generic",handled:!0},s=n.mechanism;if(n.mechanism={...r,...s,...t},t&&"data"in t){const o={...s?.data,...t.data};n.mechanism.data=o}}function Th(e,t,n=5){if(t.lineno===void 0)return;const r=e.length,s=Math.max(Math.min(r-1,t.lineno-1),0);t.pre_context=e.slice(Math.max(0,s-n),s).map(i=>ko(i,0));const o=Math.min(r-1,s);t.context_line=ko(e[o],t.colno||0),t.post_context=e.slice(Math.min(s+1,r),s+1+n).map(i=>ko(i,0))}function Ja(e){if(Ih(e))return!0;try{Oe(e,"__sentry_captured__",!0)}catch{}return!1}function Ih(e){try{return e.__sentry_captured__}catch{}}const ml=1e3;function tn(){return Date.now()/ml}function kh(){const{performance:e}=H;if(!e?.now||!e.timeOrigin)return tn;const t=e.timeOrigin;return()=>(t+e.now())/ml}let Za;function de(){return(Za??(Za=kh()))()}let Co;function Ch(){const{performance:e}=H;if(!e?.now)return[void 0,"none"];const t=3600*1e3,n=e.now(),r=Date.now(),s=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,o=s<t,i=e.timing?.navigationStart,c=typeof i=="number"?Math.abs(i+n-r):t,u=c<t;return o||u?s<=c?[e.timeOrigin,"timeOrigin"]:[i,"navigationStart"]:[r,"dateNow"]}function Ce(){return Co||(Co=Ch()),Co[0]}function Rh(e){const t=de(),n={sid:Ne(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>Mh(n)};return e&&In(n,e),n}function In(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||de(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:Ne()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started=="number"&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration=="number")e.duration=t.duration;else{const n=e.timestamp-e.started;e.duration=n>=0?n: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),typeof t.errors=="number"&&(e.errors=t.errors),t.status&&(e.status=t.status)}function xh(e,t){let n={};e.status==="ok"&&(n={status:"exited"}),In(e,n)}function Mh(e){return{sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did=="number"||typeof e.did=="string"?`${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}}}function yr(e,t,n=2){if(!t||typeof t!="object"||n<=0)return t;if(e&&Object.keys(t).length===0)return e;const r={...e};for(const s in t)Object.prototype.hasOwnProperty.call(t,s)&&(r[s]=yr(r[s],t[s],n-1));return r}function ht(){return Ne()}function Sr(){return Ne().substring(16)}const ei="_sentrySpan";function Xt(e,t){t?Oe(e,ei,t):delete e[ei]}function or(e){return e[ei]}const Ah=100;class Xe{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:ht(),sampleRand:Math.random()}}clone(){const t=new Xe;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._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,Xt(t,or(this)),t}setClient(t){this._client=t}setLastEventId(t){this._lastEventId=t}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&In(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,n){return this._tags={...this._tags,[t]:n},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,n){return this._extra={...this._extra,[t]:n},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,n){return n===null?delete this._contexts[t]:this._contexts[t]=n,this._notifyScopeListeners(),this}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const n=typeof t=="function"?t(this):t,r=n instanceof Xe?n.getScopeData():ft(n)?t:void 0,{tags:s,extra:o,user:i,contexts:a,level:c,fingerprint:u=[],propagationContext:d}=r||{};return this._tags={...this._tags,...s},this._extra={...this._extra,...o},this._contexts={...this._contexts,...a},i&&Object.keys(i).length&&(this._user=i),c&&(this._level=c),u.length&&(this._fingerprint=u),d&&(this._propagationContext=d),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._session=void 0,Xt(this,void 0),this._attachments=[],this.setPropagationContext({traceId:ht(),sampleRand:Math.random()}),this._notifyScopeListeners(),this}addBreadcrumb(t,n){const r=typeof n=="number"?n:Ah;if(r<=0)return this;const s={timestamp:tn(),...t,message:t.message?Tn(t.message,2048):t.message};return this._breadcrumbs.push(s),this._breadcrumbs.length>r&&(this._breadcrumbs=this._breadcrumbs.slice(-r),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(t){return this._attachments.push(t),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:or(this)}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata=yr(this._sdkProcessingMetadata,t,2),this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,n){const r=n?.event_id||Ne();if(!this._client)return T&&_.warn("No client configured on scope - will not capture exception!"),r;const s=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:s,...n,event_id:r},this),r}captureMessage(t,n,r){const s=r?.event_id||Ne();if(!this._client)return T&&_.warn("No client configured on scope - will not capture message!"),s;const o=new Error(t);return this._client.captureMessage(t,n,{originalException:t,syntheticException:o,...r,event_id:s},this),s}captureEvent(t,n){const r=n?.event_id||Ne();return this._client?(this._client.captureEvent(t,{...n,event_id:r},this),r):(T&&_.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}}function Nh(){return gr("defaultCurrentScope",()=>new Xe)}function Oh(){return gr("defaultIsolationScope",()=>new Xe)}class Lh{constructor(t,n){let r;t?r=t:r=new Xe;let s;n?s=n:s=new Xe,this._stack=[{scope:r}],this._isolationScope=s}withScope(t){const n=this._pushScope();let r;try{r=t(n)}catch(s){throw this._popScope(),s}return _r(r)?r.then(s=>(this._popScope(),s),s=>{throw this._popScope(),s}):(this._popScope(),r)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const t=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:t}),t}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}}function kn(){const e=St(),t=mr(e);return t.stack=t.stack||new Lh(Nh(),Oh())}function Ph(e){return kn().withScope(e)}function Dh(e,t){const n=kn();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function Qa(e){return kn().withScope(()=>e(kn().getIsolationScope()))}function Fh(){return{withIsolationScope:Qa,withScope:Ph,withSetScope:Dh,withSetIsolationScope:(e,t)=>Qa(t),getCurrentScope:()=>kn().getScope(),getIsolationScope:()=>kn().getIsolationScope()}}function $t(e){const t=mr(e);return t.acs?t.acs:Fh()}function j(){const e=St();return $t(e).getCurrentScope()}function ve(){const e=St();return $t(e).getIsolationScope()}function br(){return gr("globalScope",()=>new Xe)}function Pe(...e){const t=St(),n=$t(t);if(e.length===2){const[r,s]=e;return r?n.withSetScope(r,s):n.withScope(s)}return n.withScope(e[0])}function $h(...e){const t=St(),n=$t(t);if(e.length===2){const[r,s]=e;return r?n.withSetIsolationScope(r,s):n.withIsolationScope(s)}return n.withIsolationScope(e[0])}function C(){return j().getClient()}function gl(e){const t=e.getPropagationContext(),{traceId:n,parentSpanId:r,propagationSpanId:s}=t,o={trace_id:n,span_id:s||Sr()};return r&&(o.parent_span_id=r),o}const ae="sentry.source",Ks="sentry.sample_rate",_l="sentry.previous_trace_sample_rate",ye="sentry.op",J="sentry.origin",vs="sentry.idle_span_finish_reason",Er="sentry.measurement_unit",vr="sentry.measurement_value",ti="sentry.custom_span_name",zi="sentry.profile_id",Hn="sentry.exclusive_time",Bh="http.request.method",Uh="url.full",Hh="sentry.link.type",Wh=0,ji=1,he=2;function yl(e){if(e<400&&e>=100)return{code:ji};if(e>=400&&e<500)switch(e){case 401:return{code:he,message:"unauthenticated"};case 403:return{code:he,message:"permission_denied"};case 404:return{code:he,message:"not_found"};case 409:return{code:he,message:"already_exists"};case 413:return{code:he,message:"failed_precondition"};case 429:return{code:he,message:"resource_exhausted"};case 499:return{code:he,message:"cancelled"};default:return{code:he,message:"invalid_argument"}}if(e>=500&&e<600)switch(e){case 501:return{code:he,message:"unimplemented"};case 503:return{code:he,message:"unavailable"};case 504:return{code:he,message:"deadline_exceeded"};default:return{code:he,message:"internal_error"}}return{code:he,message:"unknown_error"}}function ir(e,t){e.setAttribute("http.response.status_code",t);const n=yl(t);n.message!=="unknown_error"&&e.setStatus(n)}const Sl="_sentryScope",bl="_sentryIsolationScope";function zh(e,t,n){e&&(Oe(e,bl,n),Oe(e,Sl,t))}function ws(e){return{scope:e[Sl],isolationScope:e[bl]}}const qi="sentry-",jh=/^sentry-/,qh=8192;function El(e){const t=Gh(e);if(!t)return;const n=Object.entries(t).reduce((r,[s,o])=>{if(s.match(jh)){const i=s.slice(qi.length);r[i]=o}return r},{});if(Object.keys(n).length>0)return n}function vl(e){if(!e)return;const t=Object.entries(e).reduce((n,[r,s])=>(s&&(n[`${qi}${r}`]=s),n),{});return Vh(t)}function Gh(e){if(!(!e||!Ve(e)&&!Array.isArray(e)))return Array.isArray(e)?e.reduce((t,n)=>{const r=ec(n);return Object.entries(r).forEach(([s,o])=>{t[s]=o}),t},{}):ec(e)}function ec(e){return e.split(",").map(t=>t.split("=").map(n=>{try{return decodeURIComponent(n.trim())}catch{return}})).reduce((t,[n,r])=>(n&&r&&(t[n]=r),t),{})}function Vh(e){if(Object.keys(e).length!==0)return Object.entries(e).reduce((t,[n,r],s)=>{const o=`${encodeURIComponent(n)}=${encodeURIComponent(r)}`,i=s===0?o:`${t},${o}`;return i.length>qh?(T&&_.warn(`Not adding key: ${n} with val: ${r} to baggage header due to exceeding baggage size limits.`),t):i},"")}function Kt(e){if(typeof e=="boolean")return Number(e);const t=typeof e=="string"?parseFloat(e):e;if(!(typeof t!="number"||isNaN(t)||t<0||t>1))return t}const wl=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function Yh(e){if(!e)return;const t=e.match(wl);if(!t)return;let n;return t[3]==="1"?n=!0:t[3]==="0"&&(n=!1),{traceId:t[1],parentSampled:n,parentSpanId:t[2]}}function Tl(e,t){const n=Yh(e),r=El(t);if(!n?.traceId)return{traceId:ht(),sampleRand:Math.random()};const s=Xh(n,r);r&&(r.sample_rand=s.toString());const{traceId:o,parentSpanId:i,parentSampled:a}=n;return{traceId:o,parentSpanId:i,sampled:a,dsc:r||{},sampleRand:s}}function Il(e=ht(),t=Sr(),n){let r="";return n!==void 0&&(r=n?"-1":"-0"),`${e}-${t}${r}`}function Xh(e,t){const n=Kt(t?.sample_rand);if(n!==void 0)return n;const r=Kt(t?.sample_rate);return r&&e?.parentSampled!==void 0?e.parentSampled?Math.random()*r:r+Math.random()*(1-r):Math.random()}const kl=0,Gi=1;let tc=!1;function Kh(e){const{spanId:t,traceId:n}=e.spanContext(),{data:r,op:s,parent_span_id:o,status:i,origin:a,links:c}=U(e);return{parent_span_id:o,span_id:t,trace_id:n,data:r,op:s,status:i,origin:a,links:c}}function Cl(e){const{spanId:t,traceId:n,isRemote:r}=e.spanContext(),s=r?t:U(e).parent_span_id,o=ws(e).scope,i=r?o?.getPropagationContext().propagationSpanId||Sr():t;return{parent_span_id:s,span_id:i,trace_id:n}}function Rl(e){const{traceId:t,spanId:n}=e.spanContext(),r=nn(e);return Il(t,n,r)}function xl(e){if(e&&e.length>0)return e.map(({context:{spanId:t,traceId:n,traceFlags:r,...s},attributes:o})=>({span_id:t,trace_id:n,sampled:r===Gi,attributes:o,...s}))}function Gt(e){return typeof e=="number"?nc(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?nc(e.getTime()):de()}function nc(e){return e>9999999999?e/1e3:e}function U(e){if(Zh(e))return e.getSpanJSON();const{spanId:t,traceId:n}=e.spanContext();if(Jh(e)){const{attributes:r,startTime:s,name:o,endTime:i,status:a,links:c}=e,u="parentSpanId"in e?e.parentSpanId:"parentSpanContext"in e?e.parentSpanContext?.spanId:void 0;return{span_id:t,trace_id:n,data:r,description:o,parent_span_id:u,start_timestamp:Gt(s),timestamp:Gt(i)||void 0,status:Ml(a),op:r[ye],origin:r[J],links:xl(c)}}return{span_id:t,trace_id:n,start_timestamp:0,data:{}}}function Jh(e){const t=e;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function Zh(e){return typeof e.getSpanJSON=="function"}function nn(e){const{traceFlags:t}=e.spanContext();return t===Gi}function Ml(e){if(!(!e||e.code===Wh))return e.code===ji?"ok":e.message||"unknown_error"}const Vt="_sentryChildSpans",ni="_sentryRootSpan";function Al(e,t){const n=e[ni]||e;Oe(t,ni,n),e[Vt]?e[Vt].add(t):Oe(e,Vt,new Set([t]))}function Qh(e,t){e[Vt]&&e[Vt].delete(t)}function Qn(e){const t=new Set;function n(r){if(!t.has(r)&&nn(r)){t.add(r);const s=r[Vt]?Array.from(r[Vt]):[];for(const o of s)n(o)}}return n(e),Array.from(t)}function _e(e){return e[ni]||e}function me(){const e=St(),t=$t(e);return t.getActiveSpan?t.getActiveSpan():or(j())}function ri(){tc||(Pt(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly.")}),tc=!0)}function em(e,t){e.updateName(t),e.setAttributes({[ae]:"custom",[ti]:t})}let rc=!1;function Nl(){if(rc)return;function e(){const t=me(),n=t&&_e(t);if(n){const r="internal_error";T&&_.log(`[Tracing] Root span: ${r} -> Global error occurred`),n.setStatus({code:he,message:r})}}e.tag="sentry_tracingErrorCallback",rc=!0,ol(e),il(e)}function Nt(e){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const t=e||C()?.getOptions();return!!t&&(t.tracesSampleRate!=null||!!t.tracesSampler)}const Js="production",tm=/^o(\d+)\./,nm=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function rm(e){return e==="http"||e==="https"}function rn(e,t=!1){const{host:n,path:r,pass:s,port:o,projectId:i,protocol:a,publicKey:c}=e;return`${a}://${c}${t&&s?`:${s}`:""}@${n}${o?`:${o}`:""}/${r&&`${r}/`}${i}`}function Ol(e){const t=nm.exec(e);if(!t){Pt(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}const[n,r,s="",o="",i="",a=""]=t.slice(1);let c="",u=a;const d=u.split("/");if(d.length>1&&(c=d.slice(0,-1).join("/"),u=d.pop()),u){const l=u.match(/^\d+/);l&&(u=l[0])}return Ll({host:o,pass:s,path:c,projectId:u,port:i,protocol:n,publicKey:r})}function Ll(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function sm(e){if(!T)return!0;const{port:t,projectId:n,protocol:r}=e;return["protocol","publicKey","host","projectId"].find(i=>e[i]?!1:(_.error(`Invalid Sentry Dsn: ${i} missing`),!0))?!1:n.match(/^\d+$/)?rm(r)?t&&isNaN(parseInt(t,10))?(_.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(_.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(_.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function om(e){return e.match(tm)?.[1]}function Pl(e){const t=typeof e=="string"?Ol(e):Ll(e);if(!(!t||!sm(t)))return t}const Dl="_frozenDsc";function rs(e,t){Oe(e,Dl,t)}function Fl(e,t){const n=t.getOptions(),{publicKey:r,host:s}=t.getDsn()||{};let o;n.orgId?o=String(n.orgId):s&&(o=om(s));const i={environment:n.environment||Js,release:n.release,public_key:r,trace_id:e,org_id:o};return t.emit("createDsc",i),i}function Vi(e,t){const n=t.getPropagationContext();return n.dsc||Fl(n.traceId,e)}function Ke(e){const t=C();if(!t)return{};const n=_e(e),r=U(n),s=r.data,o=n.spanContext().traceState,i=o?.get("sentry.sample_rate")??s[Ks]??s[_l];function a(h){return(typeof i=="number"||typeof i=="string")&&(h.sample_rate=`${i}`),h}const c=n[Dl];if(c)return a(c);const u=o?.get("sentry.dsc"),d=u&&El(u);if(d)return a(d);const l=Fl(e.spanContext().traceId,t),f=s[ae],p=r.description;return f!=="url"&&p&&(l.transaction=p),Nt()&&(l.sampled=String(nn(n)),l.sample_rand=o?.get("sentry.sample_rand")??ws(n).scope?.getPropagationContext().sampleRand.toString()),a(l),t.emit("createDsc",l,n),l}function im(e){const t=Ke(e);return vl(t)}class mt{constructor(t={}){this._traceId=t.traceId||ht(),this._spanId=t.spanId||Sr()}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:kl}}end(t){}setAttribute(t,n){return this}setAttributes(t){return this}setStatus(t){return this}updateName(t){return this}isRecording(){return!1}addEvent(t,n,r){return this}addLink(t){return this}addLinks(t){return this}recordException(t,n){}}function Fe(e,t=100,n=1/0){try{return si("",e,t,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function $l(e,t=3,n=100*1024){const r=Fe(e,t);return lm(r)>n?$l(e,t-1,n):r}function si(e,t,n=1/0,r=1/0,s=dm()){const[o,i]=s;if(t==null||["boolean","string"].includes(typeof t)||typeof t=="number"&&Number.isFinite(t))return t;const a=am(e,t);if(!a.startsWith("[object "))return a;if(t.__sentry_skip_normalization__)return t;const c=typeof t.__sentry_override_normalization_depth__=="number"?t.__sentry_override_normalization_depth__:n;if(c===0)return a.replace("object ","");if(o(t))return"[Circular ~]";const u=t;if(u&&typeof u.toJSON=="function")try{const p=u.toJSON();return si("",p,c-1,r,s)}catch{}const d=Array.isArray(t)?[]:{};let l=0;const f=pl(t);for(const p in f){if(!Object.prototype.hasOwnProperty.call(f,p))continue;if(l>=r){d[p]="[MaxProperties ~]";break}const h=f[p];d[p]=si(p,h,c-1,r,s),l++}return i(t),d}function am(e,t){try{if(e==="domain"&&t&&typeof t=="object"&&t._events)return"[Domain]";if(e==="domainEmitter")return"[DomainEmitter]";if(typeof Ss<"u"&&t===Ss)return"[Global]";if(typeof window<"u"&&t===window)return"[Window]";if(typeof document<"u"&&t===document)return"[Document]";if(ul(t))return"[VueViewModel]";if(yh(t))return"[SyntheticEvent]";if(typeof t=="number"&&!Number.isFinite(t))return`[${t}]`;if(typeof t=="function")return`[Function: ${dt(t)}]`;if(typeof t=="symbol")return`[${String(t)}]`;if(typeof t=="bigint")return`[BigInt: ${String(t)}]`;const n=cm(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function cm(e){const t=Object.getPrototypeOf(e);return t?.constructor?t.constructor.name:"null prototype"}function um(e){return~-encodeURI(e).split(/%..|./).length}function lm(e){return um(JSON.stringify(e))}function dm(){const e=new WeakSet;function t(r){return e.has(r)?!0:(e.add(r),!1)}function n(r){e.delete(r)}return[t,n]}function bt(e,t=[]){return[e,t]}function fm(e,t){const[n,r]=e;return[n,[...r,t]]}function Jt(e,t){const n=e[1];for(const r of n){const s=r[0].type;if(t(r,s))return!0}return!1}function sc(e,t){return Jt(e,(n,r)=>t.includes(r))}function Ts(e){const t=mr(H);return t.encodePolyfill?t.encodePolyfill(e):new TextEncoder().encode(e)}function pm(e){const t=mr(H);return t.decodePolyfill?t.decodePolyfill(e):new TextDecoder().decode(e)}function Is(e){const[t,n]=e;let r=JSON.stringify(t);function s(o){typeof r=="string"?r=typeof o=="string"?r+o:[Ts(r),o]:r.push(typeof o=="string"?Ts(o):o)}for(const o of n){const[i,a]=o;if(s(`
|
|
6
|
-
${JSON.stringify(i)}
|
|
7
|
-
`),typeof a=="string"||a instanceof Uint8Array)s(a);else{let c;try{c=JSON.stringify(a)}catch{c=JSON.stringify(Fe(a))}s(c)}}return typeof r=="string"?r:hm(r)}function hm(e){const t=e.reduce((s,o)=>s+o.length,0),n=new Uint8Array(t);let r=0;for(const s of e)n.set(s,r),r+=s.length;return n}function mm(e){let t=typeof e=="string"?Ts(e):e;function n(i){const a=t.subarray(0,i);return t=t.subarray(i+1),a}function r(){let i=t.indexOf(10);return i<0&&(i=t.length),JSON.parse(pm(n(i)))}const s=r(),o=[];for(;t.length;){const i=r(),a=typeof i.length=="number"?i.length:void 0;o.push([i,a?n(a):r()])}return[s,o]}function gm(e){return[{type:"span"},e]}function _m(e){const t=typeof e.data=="string"?Ts(e.data):e.data;return[{type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType},t]}const ym={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",raw_security:"security",log:"log_item"};function oc(e){return ym[e]}function Yi(e){if(!e?.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function Bl(e,t,n,r){const s=e.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:rn(r)},...s&&{trace:s}}}function Sm(e,t){return 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}function bm(e,t,n,r){const s=Yi(n),o={sent_at:new Date().toISOString(),...s&&{sdk:s},...!!r&&t&&{dsn:rn(t)}},i="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return bt(o,[i])}function Em(e,t,n,r){const s=Yi(n),o=e.type&&e.type!=="replay_event"?e.type:"event";Sm(e,n?.sdk);const i=Bl(e,s,r,t);return delete e.sdkProcessingMetadata,bt(i,[[{type:o},e]])}function vm(e,t){function n(d){return!!d.trace_id&&!!d.public_key}const r=Ke(e[0]),s=t?.getDsn(),o=t?.getOptions().tunnel,i={sent_at:new Date().toISOString(),...n(r)&&{trace:r},...!!o&&s&&{dsn:rn(s)}},a=t?.getOptions().beforeSendSpan,c=a?d=>{const l=U(d),f=a(l);return f||(ri(),l)}:U,u=[];for(const d of e){const l=c(d);l&&u.push(gm(l))}return bt(i,u)}function wm(e){if(!T)return;const{description:t="< unknown name >",op:n="< unknown op >",parent_span_id:r}=U(e),{spanId:s}=e.spanContext(),o=nn(e),i=_e(e),a=i===e,c=`[Tracing] Starting ${o?"sampled":"unsampled"} ${a?"root ":""}span`,u=[`op: ${n}`,`name: ${t}`,`ID: ${s}`];if(r&&u.push(`parent ID: ${r}`),!a){const{op:d,description:l}=U(i);u.push(`root ID: ${i.spanContext().spanId}`),d&&u.push(`root op: ${d}`),l&&u.push(`root description: ${l}`)}_.log(`${c}
|
|
8
|
-
${u.join(`
|
|
9
|
-
`)}`)}function Tm(e){if(!T)return;const{description:t="< unknown name >",op:n="< unknown op >"}=U(e),{spanId:r}=e.spanContext(),o=_e(e)===e,i=`[Tracing] Finishing "${n}" ${o?"root ":""}span "${t}" with ID ${r}`;_.log(i)}function Ul(e,t,n,r=me()){const s=r&&_e(r);s&&(T&&_.log(`[Measurement] Setting measurement on root span: ${e} = ${t} ${n}`),s.addEvent(e,{[vr]:t,[Er]:n}))}function ic(e){if(!e||e.length===0)return;const t={};return e.forEach(n=>{const r=n.attributes||{},s=r[Er],o=r[vr];typeof s=="string"&&typeof o=="number"&&(t[n.name]={value:o,unit:s})}),t}const ac=1e3;class Zs{constructor(t={}){this._traceId=t.traceId||ht(),this._spanId=t.spanId||Sr(),this._startTime=t.startTimestamp||de(),this._links=t.links,this._attributes={},this.setAttributes({[J]:"manual",[ye]:t.op,...t.attributes}),this._name=t.name,t.parentSpanId&&(this._parentSpanId=t.parentSpanId),"sampled"in t&&(this._sampled=t.sampled),t.endTimestamp&&(this._endTime=t.endTimestamp),this._events=[],this._isStandaloneSpan=t.isStandalone,this._endTime&&this._onSpanEnded()}addLink(t){return this._links?this._links.push(t):this._links=[t],this}addLinks(t){return this._links?this._links.push(...t):this._links=t,this}recordException(t,n){}spanContext(){const{_spanId:t,_traceId:n,_sampled:r}=this;return{spanId:t,traceId:n,traceFlags:r?Gi:kl}}setAttribute(t,n){return n===void 0?delete this._attributes[t]:this._attributes[t]=n,this}setAttributes(t){return Object.keys(t).forEach(n=>this.setAttribute(n,t[n])),this}updateStartTime(t){this._startTime=Gt(t)}setStatus(t){return this._status=t,this}updateName(t){return this._name=t,this.setAttribute(ae,"custom"),this}end(t){this._endTime||(this._endTime=Gt(t),Tm(this),this._onSpanEnded())}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[ye],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:Ml(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[J],profile_id:this._attributes[zi],exclusive_time:this._attributes[Hn],measurements:ic(this._events),is_segment:this._isStandaloneSpan&&_e(this)===this||void 0,segment_id:this._isStandaloneSpan?_e(this).spanContext().spanId:void 0,links:xl(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(t,n,r){T&&_.log("[Tracing] Adding an event to span:",t);const s=cc(n)?n:r||de(),o=cc(n)?{}:n||{},i={name:t,time:Gt(s),attributes:o};return this._events.push(i),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){const t=C();if(t&&t.emit("spanEnd",this),!(this._isStandaloneSpan||this===_e(this)))return;if(this._isStandaloneSpan){this._sampled?km(vm([this],t)):(T&&_.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),t&&t.recordDroppedEvent("sample_rate","span"));return}const r=this._convertSpanToTransaction();r&&(ws(this).scope||j()).captureEvent(r)}_convertSpanToTransaction(){if(!uc(U(this)))return;this._name||(T&&_.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");const{scope:t,isolationScope:n}=ws(this),r=t?.getScopeData().sdkProcessingMetadata?.normalizedRequest;if(this._sampled!==!0)return;const o=Qn(this).filter(d=>d!==this&&!Im(d)).map(d=>U(d)).filter(uc),i=this._attributes[ae];delete this._attributes[ti],o.forEach(d=>{delete d.data[ti]});const a={contexts:{trace:Kh(this)},spans:o.length>ac?o.sort((d,l)=>d.start_timestamp-l.start_timestamp).slice(0,ac):o,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:t,capturedSpanIsolationScope:n,dynamicSamplingContext:Ke(this)},request:r,...i&&{transaction_info:{source:i}}},c=ic(this._events);return c&&Object.keys(c).length&&(T&&_.log("[Measurements] Adding measurements to transaction event",JSON.stringify(c,void 0,2)),a.measurements=c),a}}function cc(e){return e&&typeof e=="number"||e instanceof Date||Array.isArray(e)}function uc(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}function Im(e){return e instanceof Zs&&e.isStandaloneSpan()}function km(e){const t=C();if(!t)return;const n=e[1];if(!n||n.length===0){t.recordDroppedEvent("before_send","span");return}t.sendEnvelope(e)}function Hl(e,t,n=()=>{}){let r;try{r=e()}catch(s){throw t(s),n(),s}return Cm(r,t,n)}function Cm(e,t,n){return _r(e)?e.then(r=>(n(),r),r=>{throw t(r),n(),r}):(n(),e)}function Rm(e,t,n){if(!Nt(e))return[!1];let r,s;typeof e.tracesSampler=="function"?(s=e.tracesSampler({...t,inheritOrSampleWith:a=>typeof t.parentSampleRate=="number"?t.parentSampleRate:typeof t.parentSampled=="boolean"?Number(t.parentSampled):a}),r=!0):t.parentSampled!==void 0?s=t.parentSampled:typeof e.tracesSampleRate<"u"&&(s=e.tracesSampleRate,r=!0);const o=Kt(s);if(o===void 0)return T&&_.warn(`[Tracing] Discarding root span because of invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(s)} of type ${JSON.stringify(typeof s)}.`),[!1];if(!o)return T&&_.log(`[Tracing] Discarding transaction because ${typeof e.tracesSampler=="function"?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0"}`),[!1,o,r];const i=n<o;return i||T&&_.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(s)})`),[i,o,r]}const ks="__SENTRY_SUPPRESS_TRACING__";function Qs(e,t){const n=wr();if(n.startSpan)return n.startSpan(e,t);const r=Ki(e),{forceTransaction:s,parentSpan:o,scope:i}=e,a=i?.clone();return Pe(a,()=>Wl(o)(()=>{const u=j(),d=Ji(u,o),f=e.onlyIfParent&&!d?new mt:Xi({parentSpan:d,spanArguments:r,forceTransaction:s,scope:u});return Xt(u,f),Hl(()=>t(f),()=>{const{status:p}=U(f);f.isRecording()&&(!p||p==="ok")&&f.setStatus({code:he,message:"internal_error"})},()=>{f.end()})}))}function xm(e,t){const n=wr();if(n.startSpanManual)return n.startSpanManual(e,t);const r=Ki(e),{forceTransaction:s,parentSpan:o,scope:i}=e,a=i?.clone();return Pe(a,()=>Wl(o)(()=>{const u=j(),d=Ji(u,o),f=e.onlyIfParent&&!d?new mt:Xi({parentSpan:d,spanArguments:r,forceTransaction:s,scope:u});return Xt(u,f),Hl(()=>t(f,()=>f.end()),()=>{const{status:p}=U(f);f.isRecording()&&(!p||p==="ok")&&f.setStatus({code:he,message:"internal_error"})})}))}function We(e){const t=wr();if(t.startInactiveSpan)return t.startInactiveSpan(e);const n=Ki(e),{forceTransaction:r,parentSpan:s}=e;return(e.scope?i=>Pe(e.scope,i):s!==void 0?i=>Zt(s,i):i=>i())(()=>{const i=j(),a=Ji(i,s);return e.onlyIfParent&&!a?new mt:Xi({parentSpan:a,spanArguments:n,forceTransaction:r,scope:i})})}const Mm=(e,t)=>{const n=St(),r=$t(n);if(r.continueTrace)return r.continueTrace(e,t);const{sentryTrace:s,baggage:o}=e;return Pe(i=>{const a=Tl(s,o);return i.setPropagationContext(a),t()})};function Zt(e,t){const n=wr();return n.withActiveSpan?n.withActiveSpan(e,t):Pe(r=>(Xt(r,e||void 0),t(r)))}function Am(e){const t=wr();return t.suppressTracing?t.suppressTracing(e):Pe(n=>{n.setSDKProcessingMetadata({[ks]:!0});const r=e();return n.setSDKProcessingMetadata({[ks]:void 0}),r})}function Nm(e){return Pe(t=>(t.setPropagationContext({traceId:ht(),sampleRand:Math.random()}),T&&_.log(`Starting a new trace with id ${t.getPropagationContext().traceId}`),Zt(null,e)))}function Xi({parentSpan:e,spanArguments:t,forceTransaction:n,scope:r}){if(!Nt()){const i=new mt;if(n||!e){const a={sampled:"false",sample_rate:"0",transaction:t.name,...Ke(i)};rs(i,a)}return i}const s=ve();let o;if(e&&!n)o=Om(e,r,t),Al(e,o);else if(e){const i=Ke(e),{traceId:a,spanId:c}=e.spanContext(),u=nn(e);o=lc({traceId:a,parentSpanId:c,...t},r,u),rs(o,i)}else{const{traceId:i,dsc:a,parentSpanId:c,sampled:u}={...s.getPropagationContext(),...r.getPropagationContext()};o=lc({traceId:i,parentSpanId:c,...t},r,u),a&&rs(o,a)}return wm(o),zh(o,r,s),o}function Ki(e){const n={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){const r={...n};return r.startTimestamp=Gt(e.startTime),delete r.startTime,r}return n}function wr(){const e=St();return $t(e)}function lc(e,t,n){const r=C(),s=r?.getOptions()||{},{name:o=""}=e,i={spanAttributes:{...e.attributes},spanName:o,parentSampled:n};r?.emit("beforeSampling",i,{decision:!1});const a=i.parentSampled??n,c=i.spanAttributes,u=t.getPropagationContext(),[d,l,f]=t.getScopeData().sdkProcessingMetadata[ks]?[!1]:Rm(s,{name:o,parentSampled:a,attributes:c,parentSampleRate:Kt(u.dsc?.sample_rate)},u.sampleRand),p=new Zs({...e,attributes:{[ae]:"custom",[Ks]:l!==void 0&&f?l:void 0,...c},sampled:d});return!d&&r&&(T&&_.log("[Tracing] Discarding root span because its trace was not chosen to be sampled."),r.recordDroppedEvent("sample_rate","transaction")),r&&r.emit("spanStart",p),p}function Om(e,t,n){const{spanId:r,traceId:s}=e.spanContext(),o=t.getScopeData().sdkProcessingMetadata[ks]?!1:nn(e),i=o?new Zs({...n,parentSpanId:r,traceId:s,sampled:o}):new mt({traceId:s});Al(e,i);const a=C();return a&&(a.emit("spanStart",i),n.endTimestamp&&a.emit("spanEnd",i)),i}function Ji(e,t){if(t)return t;if(t===null)return;const n=or(e);if(!n)return;const r=C();return(r?r.getOptions():{}).parentSpanIsAlwaysRootSpan?_e(n):n}function Wl(e){return e!==void 0?t=>Zt(e,t):t=>t()}const ss={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3},Lm="heartbeatFailed",Pm="idleTimeout",Dm="finalTimeout",Fm="externalFinish";function zl(e,t={}){const n=new Map;let r=!1,s,o=Fm,i=!t.disableAutoFinish;const a=[],{idleTimeout:c=ss.idleTimeout,finalTimeout:u=ss.finalTimeout,childSpanTimeout:d=ss.childSpanTimeout,beforeSpanEnd:l}=t,f=C();if(!f||!Nt()){const S=new mt,w={sample_rate:"0",sampled:"false",...Ke(S)};return rs(S,w),S}const p=j(),h=me(),m=$m(e);m.end=new Proxy(m.end,{apply(S,w,M){if(l&&l(m),w instanceof mt)return;const[E,...I]=M,D=E||de(),v=Gt(D),A=Qn(m).filter(O=>O!==m);if(!A.length)return R(v),Reflect.apply(S,w,[v,...I]);const W=A.map(O=>U(O).timestamp).filter(O=>!!O),L=W.length?Math.max(...W):void 0,x=U(m).start_timestamp,F=Math.min(x?x+u/1e3:1/0,Math.max(x||-1/0,Math.min(v,L||1/0)));return R(F),Reflect.apply(S,w,[F,...I])}});function g(){s&&(clearTimeout(s),s=void 0)}function y(S){g(),s=setTimeout(()=>{!r&&n.size===0&&i&&(o=Pm,m.end(S))},c)}function b(S){s=setTimeout(()=>{!r&&i&&(o=Lm,m.end(S))},d)}function P(S){g(),n.set(S,!0);const w=de();b(w+d/1e3)}function k(S){if(n.has(S)&&n.delete(S),n.size===0){const w=de();y(w+c/1e3)}}function R(S){r=!0,n.clear(),a.forEach(v=>v()),Xt(p,h);const w=U(m),{start_timestamp:M}=w;if(!M)return;w.data[vs]||m.setAttribute(vs,o),_.log(`[Tracing] Idle span "${w.op}" finished`);const I=Qn(m).filter(v=>v!==m);let D=0;I.forEach(v=>{v.isRecording()&&(v.setStatus({code:he,message:"cancelled"}),v.end(S),T&&_.log("[Tracing] Cancelling span since span ended early",JSON.stringify(v,void 0,2)));const A=U(v),{timestamp:W=0,start_timestamp:L=0}=A,x=L<=S,F=(u+c)/1e3,O=W-L<=F;if(T){const q=JSON.stringify(v,void 0,2);x?O||_.log("[Tracing] Discarding span since it finished after idle span final timeout",q):_.log("[Tracing] Discarding span since it happened after idle span was finished",q)}(!O||!x)&&(Qh(m,v),D++)}),D>0&&m.setAttribute("sentry.idle_span_discarded_spans",D)}return a.push(f.on("spanStart",S=>{if(r||S===m||U(S).timestamp||S instanceof Zs&&S.isStandaloneSpan())return;Qn(m).includes(S)&&P(S.spanContext().spanId)})),a.push(f.on("spanEnd",S=>{r||k(S.spanContext().spanId)})),a.push(f.on("idleSpanEnableAutoFinish",S=>{S===m&&(i=!0,y(),n.size&&b())})),t.disableAutoFinish||y(),setTimeout(()=>{r||(m.setStatus({code:he,message:"deadline_exceeded"}),o=Dm,m.end())},u),m}function $m(e){const t=We(e);return Xt(j(),t),T&&_.log("[Tracing] Started span is an idle span"),t}const Ro=0,dc=1,fc=2;function gt(e){return new Ot(t=>{t(e)})}function Cs(e){return new Ot((t,n)=>{n(e)})}class Ot{constructor(t){this._state=Ro,this._handlers=[],this._runExecutor(t)}then(t,n){return new Ot((r,s)=>{this._handlers.push([!1,o=>{if(!t)r(o);else try{r(t(o))}catch(i){s(i)}},o=>{if(!n)s(o);else try{r(n(o))}catch(i){s(i)}}]),this._executeHandlers()})}catch(t){return this.then(n=>n,t)}finally(t){return new Ot((n,r)=>{let s,o;return this.then(i=>{o=!1,s=i,t&&t()},i=>{o=!0,s=i,t&&t()}).then(()=>{if(o){r(s);return}n(s)})})}_executeHandlers(){if(this._state===Ro)return;const t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===dc&&n[1](this._value),this._state===fc&&n[2](this._value),n[0]=!0)})}_runExecutor(t){const n=(o,i)=>{if(this._state===Ro){if(_r(i)){i.then(r,s);return}this._state=o,this._value=i,this._executeHandlers()}},r=o=>{n(dc,o)},s=o=>{n(fc,o)};try{t(r,s)}catch(o){s(o)}}}function oi(e,t,n,r=0){return new Ot((s,o)=>{const i=e[r];if(t===null||typeof i!="function")s(t);else{const a=i({...t},n);T&&i.id&&a===null&&_.log(`Event processor "${i.id}" dropped event`),_r(a)?a.then(c=>oi(e,c,n,r+1).then(s)).then(null,o):oi(e,a,n,r+1).then(s).then(null,o)}})}function Bm(e,t){const{fingerprint:n,span:r,breadcrumbs:s,sdkProcessingMetadata:o}=t;Um(e,t),r&&zm(e,r),jm(e,n),Hm(e,s),Wm(e,o)}function Rs(e,t){const{extra:n,tags:r,user:s,contexts:o,level:i,sdkProcessingMetadata:a,breadcrumbs:c,fingerprint:u,eventProcessors:d,attachments:l,propagationContext:f,transactionName:p,span:h}=t;Dr(e,"extra",n),Dr(e,"tags",r),Dr(e,"user",s),Dr(e,"contexts",o),e.sdkProcessingMetadata=yr(e.sdkProcessingMetadata,a,2),i&&(e.level=i),p&&(e.transactionName=p),h&&(e.span=h),c.length&&(e.breadcrumbs=[...e.breadcrumbs,...c]),u.length&&(e.fingerprint=[...e.fingerprint,...u]),d.length&&(e.eventProcessors=[...e.eventProcessors,...d]),l.length&&(e.attachments=[...e.attachments,...l]),e.propagationContext={...e.propagationContext,...f}}function Dr(e,t,n){e[t]=yr(e[t],n,1)}function Um(e,t){const{extra:n,tags:r,user:s,contexts:o,level:i,transactionName:a}=t;Object.keys(n).length&&(e.extra={...n,...e.extra}),Object.keys(r).length&&(e.tags={...r,...e.tags}),Object.keys(s).length&&(e.user={...s,...e.user}),Object.keys(o).length&&(e.contexts={...o,...e.contexts}),i&&(e.level=i),a&&e.type!=="transaction"&&(e.transaction=a)}function Hm(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function Wm(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function zm(e,t){e.contexts={trace:Cl(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:Ke(t),...e.sdkProcessingMetadata};const n=_e(t),r=U(n).description;r&&!e.transaction&&e.type==="transaction"&&(e.transaction=r)}function jm(e,t){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint.length||delete e.fingerprint}let Fr,pc,$r;function jl(e){const t=H._sentryDebugIds;if(!t)return{};const n=Object.keys(t);return $r&&n.length===pc||(pc=n.length,$r=n.reduce((r,s)=>{Fr||(Fr={});const o=Fr[s];if(o)r[o[0]]=o[1];else{const i=e(s);for(let a=i.length-1;a>=0;a--){const u=i[a]?.filename,d=t[s];if(u&&d){r[u]=d,Fr[s]=[u,d];break}}}return r},{})),$r}function qm(e,t){const n=jl(e);if(!n)return[];const r=[];for(const s of t)s&&n[s]&&r.push({type:"sourcemap",code_file:s,debug_id:n[s]});return r}function ql(e,t,n,r,s,o){const{normalizeDepth:i=3,normalizeMaxBreadth:a=1e3}=e,c={...t,event_id:t.event_id||n.event_id||Ne(),timestamp:t.timestamp||tn()},u=n.integrations||e.integrations.map(g=>g.name);Gm(c,e),Xm(c,u),s&&s.emit("applyFrameMetadata",t),t.type===void 0&&Vm(c,e.stackParser);const d=Jm(r,n.captureContext);n.mechanism&&At(c,n.mechanism);const l=s?s.getEventProcessors():[],f=br().getScopeData();if(o){const g=o.getScopeData();Rs(f,g)}if(d){const g=d.getScopeData();Rs(f,g)}const p=[...n.attachments||[],...f.attachments];p.length&&(n.attachments=p),Bm(c,f);const h=[...l,...f.eventProcessors];return oi(h,c,n).then(g=>(g&&Ym(g),typeof i=="number"&&i>0?Km(g,i,a):g))}function Gm(e,t){const{environment:n,release:r,dist:s,maxValueLength:o=250}=t;e.environment=e.environment||n||Js,!e.release&&r&&(e.release=r),!e.dist&&s&&(e.dist=s);const i=e.request;i?.url&&(i.url=Tn(i.url,o))}function Vm(e,t){const n=jl(t);e.exception?.values?.forEach(r=>{r.stacktrace?.frames?.forEach(s=>{s.filename&&(s.debug_id=n[s.filename])})})}function Ym(e){const t={};if(e.exception?.values?.forEach(r=>{r.stacktrace?.frames?.forEach(s=>{s.debug_id&&(s.abs_path?t[s.abs_path]=s.debug_id:s.filename&&(t[s.filename]=s.debug_id),delete s.debug_id)})}),Object.keys(t).length===0)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(([r,s])=>{n.push({type:"sourcemap",code_file:r,debug_id:s})})}function Xm(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function Km(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(s=>({...s,...s.data&&{data:Fe(s.data,t,n)}}))},...e.user&&{user:Fe(e.user,t,n)},...e.contexts&&{contexts:Fe(e.contexts,t,n)},...e.extra&&{extra:Fe(e.extra,t,n)}};return e.contexts?.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=Fe(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(s=>({...s,...s.data&&{data:Fe(s.data,t,n)}}))),e.contexts?.flags&&r.contexts&&(r.contexts.flags=Fe(e.contexts.flags,3,n)),r}function Jm(e,t){if(!t)return e;const n=e?e.clone():new Xe;return n.update(t),n}function Zm(e){if(e)return Qm(e)?{captureContext:e}:tg(e)?{captureContext:e}:e}function Qm(e){return e instanceof Xe||typeof e=="function"}const eg=["user","level","extra","contexts","tags","fingerprint","propagationContext"];function tg(e){return Object.keys(e).some(t=>eg.includes(t))}function Lt(e,t){return j().captureException(e,Zm(t))}function xs(e,t){const n=typeof t=="string"?t:void 0,r=typeof t!="string"?{captureContext:t}:void 0;return j().captureMessage(e,n,r)}function Tr(e,t){return j().captureEvent(e,t)}function Zi(e,t){ve().setContext(e,t)}function ng(e){ve().setExtras(e)}function rg(e,t){ve().setExtra(e,t)}function sg(e){ve().setTags(e)}function og(e,t){ve().setTag(e,t)}function ig(e){ve().setUser(e)}function Gl(){return ve().lastEventId()}async function ag(e){const t=C();return t?t.flush(e):(T&&_.warn("Cannot flush events. No client defined."),Promise.resolve(!1))}async function cg(e){const t=C();return t?t.close(e):(T&&_.warn("Cannot flush events and disable SDK. No client defined."),Promise.resolve(!1))}function ug(){return!!C()}function Vl(){const e=C();return e?.getOptions().enabled!==!1&&!!e?.getTransport()}function Yl(e){ve().addEventProcessor(e)}function ii(e){const t=ve(),n=j(),{userAgent:r}=H.navigator||{},s=Rh({user:n.getUser()||t.getUser(),...r&&{userAgent:r},...e}),o=t.getSession();return o?.status==="ok"&&In(o,{status:"exited"}),Qi(),t.setSession(s),s}function Qi(){const e=ve(),n=j().getSession()||e.getSession();n&&xh(n),Xl(),e.setSession()}function Xl(){const e=ve(),t=C(),n=e.getSession();n&&t&&t.captureSession(n)}function ai(e=!1){if(e){Qi();return}Xl()}const lg="7";function Kl(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function dg(e){return`${Kl(e)}${e.projectId}/envelope/`}function fg(e,t){const n={sentry_version:lg};return e.publicKey&&(n.sentry_key=e.publicKey),t&&(n.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(n).toString()}function Jl(e,t,n){return t||`${dg(e)}?${fg(e,n)}`}function pg(e,t){const n=Pl(e);if(!n)return"";const r=`${Kl(n)}embed/error-page/`;let s=`dsn=${rn(n)}`;for(const o in t)if(o!=="dsn"&&o!=="onClose")if(o==="user"){const i=t.user;if(!i)continue;i.name&&(s+=`&name=${encodeURIComponent(i.name)}`),i.email&&(s+=`&email=${encodeURIComponent(i.email)}`)}else s+=`&${encodeURIComponent(o)}=${encodeURIComponent(t[o])}`;return`${r}?${s}`}const hc=[];function hg(e){const t={};return e.forEach(n=>{const{name:r}=n,s=t[r];s&&!s.isDefaultInstance&&n.isDefaultInstance||(t[r]=n)}),Object.values(t)}function mg(e){const t=e.defaultIntegrations||[],n=e.integrations;t.forEach(s=>{s.isDefaultInstance=!0});let r;if(Array.isArray(n))r=[...t,...n];else if(typeof n=="function"){const s=n(t);r=Array.isArray(s)?s:[s]}else r=t;return hg(r)}function gg(e,t){const n={};return t.forEach(r=>{r&&Zl(e,r,n)}),n}function mc(e,t){for(const n of t)n?.afterAllSetup&&n.afterAllSetup(e)}function Zl(e,t,n){if(n[t.name]){T&&_.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,hc.indexOf(t.name)===-1&&typeof t.setupOnce=="function"&&(t.setupOnce(),hc.push(t.name)),t.setup&&typeof t.setup=="function"&&t.setup(e),typeof t.preprocessEvent=="function"){const r=t.preprocessEvent.bind(t);e.on("preprocessEvent",(s,o)=>r(s,o,e))}if(typeof t.processEvent=="function"){const r=t.processEvent.bind(t),s=Object.assign((o,i)=>r(o,i,e),{id:t.name});e.addEventProcessor(s)}T&&_.log(`Integration installed: ${t.name}`)}function ci(e){const t=C();if(!t){T&&_.warn(`Cannot add integration "${e.name}" because no SDK Client is available.`);return}t.addIntegration(e)}function _g(e,t,n){const r=[{type:"client_report"},{timestamp:tn(),discarded_events:e}];return bt(t?{dsn:t}:{},[r])}function Ql(e){const t=[];e.message&&t.push(e.message);try{const n=e.exception.values[e.exception.values.length-1];n?.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`))}catch{}return t}function yg(e){const{trace_id:t,parent_span_id:n,span_id:r,status:s,origin:o,data:i,op:a}=e.contexts?.trace??{};return{data:i??{},description:e.transaction,op:a,parent_span_id:n,span_id:r??"",start_timestamp:e.start_timestamp??0,status:s,timestamp:e.timestamp,trace_id:t??"",origin:o,profile_id:i?.[zi],exclusive_time:i?.[Hn],measurements:e.measurements,is_segment:!0}}function Sg(e){return{type:"transaction",timestamp:e.timestamp,start_timestamp:e.start_timestamp,transaction:e.description,contexts:{trace:{trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,op:e.op,status:e.status,origin:e.origin,data:{...e.data,...e.profile_id&&{[zi]:e.profile_id},...e.exclusive_time&&{[Hn]:e.exclusive_time}}}},measurements:e.measurements}}const gc="Not capturing exception because it's already been captured.",_c="Discarded session because of missing or non-string release",ed=Symbol.for("SentryInternalError"),td=Symbol.for("SentryDoNotSendEventError");function os(e){return{message:e,[ed]:!0}}function xo(e){return{message:e,[td]:!0}}function yc(e){return!!e&&typeof e=="object"&&ed in e}function Sc(e){return!!e&&typeof e=="object"&&td in e}class bg{constructor(t){if(this._options=t,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],t.dsn?this._dsn=Pl(t.dsn):T&&_.warn("No DSN provided, client will not send events."),this._dsn){const n=Jl(this._dsn,t.tunnel,t._metadata?t._metadata.sdk:void 0);this._transport=t.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:n})}}captureException(t,n,r){const s=Ne();if(Ja(t))return T&&_.log(gc),s;const o={event_id:s,...n};return this._process(this.eventFromException(t,o).then(i=>this._captureEvent(i,o,r))),o.event_id}captureMessage(t,n,r,s){const o={event_id:Ne(),...r},i=Ys(t)?t:String(t),a=wn(t)?this.eventFromMessage(i,n,o):this.eventFromException(t,o);return this._process(a.then(c=>this._captureEvent(c,o,s))),o.event_id}captureEvent(t,n,r){const s=Ne();if(n?.originalException&&Ja(n.originalException))return T&&_.log(gc),s;const o={event_id:s,...n},i=t.sdkProcessingMetadata||{},a=i.capturedSpanScope,c=i.capturedSpanIsolationScope;return this._process(this._captureEvent(t,o,a||r,c)),o.event_id}captureSession(t){this.sendSession(t),In(t,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(t){const n=this._transport;return n?(this.emit("flush"),this._isClientDoneProcessing(t).then(r=>n.flush(t).then(s=>r&&s))):gt(!0)}close(t){return this.flush(t).then(n=>(this.getOptions().enabled=!1,this.emit("close"),n))}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}init(){(this._isEnabled()||this._options.integrations.some(({name:t})=>t.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(t){return this._integrations[t]}addIntegration(t){const n=this._integrations[t.name];Zl(this,t,this._integrations),n||mc(this,[t])}sendEvent(t,n={}){this.emit("beforeSendEvent",t,n);let r=Em(t,this._dsn,this._options._metadata,this._options.tunnel);for(const o of n.attachments||[])r=fm(r,_m(o));const s=this.sendEnvelope(r);s&&s.then(o=>this.emit("afterSendEvent",t,o),null)}sendSession(t){const{release:n,environment:r=Js}=this._options;if("aggregates"in t){const o=t.attrs||{};if(!o.release&&!n){T&&_.warn(_c);return}o.release=o.release||n,o.environment=o.environment||r,t.attrs=o}else{if(!t.release&&!n){T&&_.warn(_c);return}t.release=t.release||n,t.environment=t.environment||r}this.emit("beforeSendSession",t);const s=bm(t,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(s)}recordDroppedEvent(t,n,r=1){if(this._options.sendClientReports){const s=`${t}:${n}`;T&&_.log(`Recording outcome: "${s}"${r>1?` (${r} times)`:""}`),this._outcomes[s]=(this._outcomes[s]||0)+r}}on(t,n){const r=this._hooks[t]=this._hooks[t]||[];return r.push(n),()=>{const s=r.indexOf(n);s>-1&&r.splice(s,1)}}emit(t,...n){const r=this._hooks[t];r&&r.forEach(s=>s(...n))}sendEnvelope(t){return this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport?this._transport.send(t).then(null,n=>(T&&_.error("Error while sending envelope:",n),n)):(T&&_.error("Transport disabled"),gt({}))}_setupIntegrations(){const{integrations:t}=this._options;this._integrations=gg(this,t),mc(this,t)}_updateSessionFromEvent(t,n){let r=n.level==="fatal",s=!1;const o=n.exception?.values;if(o){s=!0;for(const c of o)if(c.mechanism?.handled===!1){r=!0;break}}const i=t.status==="ok";(i&&t.errors===0||i&&r)&&(In(t,{...r&&{status:"crashed"},errors:t.errors||Number(s||r)}),this.captureSession(t))}_isClientDoneProcessing(t){return new Ot(n=>{let r=0;const s=1,o=setInterval(()=>{this._numProcessing==0?(clearInterval(o),n(!0)):(r+=s,t&&r>=t&&(clearInterval(o),n(!1)))},s)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(t,n,r,s){const o=this.getOptions(),i=Object.keys(this._integrations);return!n.integrations&&i?.length&&(n.integrations=i),this.emit("preprocessEvent",t,n),t.type||s.setLastEventId(t.event_id||n.event_id),ql(o,t,n,r,this,s).then(a=>{if(a===null)return a;this.emit("postprocessEvent",a,n),a.contexts={trace:gl(r),...a.contexts};const c=Vi(this,r);return a.sdkProcessingMetadata={dynamicSamplingContext:c,...a.sdkProcessingMetadata},a})}_captureEvent(t,n={},r=j(),s=ve()){return T&&ui(t)&&_.log(`Captured error event \`${Ql(t)[0]||"<unknown>"}\``),this._processEvent(t,n,r,s).then(o=>o.event_id,o=>{T&&(Sc(o)?_.log(o.message):yc(o)?_.warn(o.message):_.warn(o))})}_processEvent(t,n,r,s){const o=this.getOptions(),{sampleRate:i}=o,a=nd(t),c=ui(t),u=t.type||"error",d=`before send for type \`${u}\``,l=typeof i>"u"?void 0:Kt(i);if(c&&typeof l=="number"&&Math.random()>l)return this.recordDroppedEvent("sample_rate","error"),Cs(xo(`Discarding event because it's not included in the random sample (sampling rate = ${i})`));const f=u==="replay_event"?"replay":u;return this._prepareEvent(t,n,r,s).then(p=>{if(p===null)throw this.recordDroppedEvent("event_processor",f),xo("An event processor returned `null`, will not send event.");if(n.data&&n.data.__sentry__===!0)return p;const m=vg(this,o,p,n);return Eg(m,d)}).then(p=>{if(p===null){if(this.recordDroppedEvent("before_send",f),a){const y=1+(t.spans||[]).length;this.recordDroppedEvent("before_send","span",y)}throw xo(`${d} returned \`null\`, will not send event.`)}const h=r.getSession()||s.getSession();if(c&&h&&this._updateSessionFromEvent(h,p),a){const g=p.sdkProcessingMetadata?.spanCountBeforeProcessing||0,y=p.spans?p.spans.length:0,b=g-y;b>0&&this.recordDroppedEvent("before_send","span",b)}const m=p.transaction_info;if(a&&m&&p.transaction!==t.transaction){const g="custom";p.transaction_info={...m,source:g}}return this.sendEvent(p,n),p}).then(null,p=>{throw Sc(p)||yc(p)?p:(this.captureException(p,{data:{__sentry__:!0},originalException:p}),os(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
|
|
10
|
-
Reason: ${p}`))})}_process(t){this._numProcessing++,t.then(n=>(this._numProcessing--,n),n=>(this._numProcessing--,n))}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.entries(t).map(([n,r])=>{const[s,o]=n.split(":");return{reason:s,category:o,quantity:r}})}_flushOutcomes(){T&&_.log("Flushing outcomes...");const t=this._clearOutcomes();if(t.length===0){T&&_.log("No outcomes to send");return}if(!this._dsn){T&&_.log("No dsn provided, will not send outcomes");return}T&&_.log("Sending outcomes:",t);const n=_g(t,this._options.tunnel&&rn(this._dsn));this.sendEnvelope(n)}}function Eg(e,t){const n=`${t} must return \`null\` or a valid event.`;if(_r(e))return e.then(r=>{if(!ft(r)&&r!==null)throw os(n);return r},r=>{throw os(`${t} rejected with ${r}`)});if(!ft(e)&&e!==null)throw os(n);return e}function vg(e,t,n,r){const{beforeSend:s,beforeSendTransaction:o,beforeSendSpan:i}=t;let a=n;if(ui(a)&&s)return s(a,r);if(nd(a)){if(i){const c=i(yg(a));if(c?a=yr(n,Sg(c)):ri(),a.spans){const u=[];for(const d of a.spans){const l=i(d);l?u.push(l):(ri(),u.push(d))}a.spans=u}}if(o){if(a.spans){const c=a.spans.length;a.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:c}}return o(a,r)}}return a}function ui(e){return e.type===void 0}function nd(e){return e.type==="transaction"}function wg(e,t){return t?Pe(t,()=>{const n=me(),r=n?Cl(n):gl(t);return[n?Ke(n):Vi(e,t),r]}):[void 0,void 0]}const Tg={trace:1,debug:5,info:9,warn:13,error:17,fatal:21};function Ig(e){return[{type:"log",item_count:e.length,content_type:"application/vnd.sentry.items.log+json"},{items:e}]}function kg(e,t,n,r){const s={};return t?.sdk&&(s.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(s.dsn=rn(r)),bt(s,[Ig(e)])}const Cg=100;function Rg(e){switch(typeof e){case"number":return Number.isInteger(e)?{value:e,type:"integer"}:{value:e,type:"double"};case"boolean":return{value:e,type:"boolean"};case"string":return{value:e,type:"string"};default:{let t="";try{t=JSON.stringify(e)??""}catch{}return{value:t,type:"string"}}}}function vt(e,t,n,r=!0){n&&(!e[t]||r)&&(e[t]=n)}function xg(e,t){const n=ea(),r=rd(e);r===void 0?n.set(e,[t]):(n.set(e,[...r,t]),r.length>=Cg&&is(e,r))}function li(e,t=C(),n=j(),r=xg){if(!t){T&&_.warn("No client available to capture log.");return}const{release:s,environment:o,enableLogs:i,beforeSendLog:a,_experiments:c}=t.getOptions();if(!(i??c?.enableLogs)){T&&_.warn("logging option not enabled, log will not be captured.");return}const d=a??c?.beforeSendLog,[,l]=wg(t,n),f={...e.attributes},{user:{id:p,email:h,username:m}}=Mg(n);vt(f,"user.id",p,!1),vt(f,"user.email",h,!1),vt(f,"user.name",m,!1),vt(f,"sentry.release",s),vt(f,"sentry.environment",o);const{name:g,version:y}=t.getSdkMetadata()?.sdk??{};vt(f,"sentry.sdk.name",g),vt(f,"sentry.sdk.version",y);const b=e.message;if(Ys(b)){const{__sentry_template_string__:D,__sentry_template_values__:v=[]}=b;f["sentry.message.template"]=D,v.forEach((A,W)=>{f[`sentry.message.parameter.${W}`]=A})}const P=or(n);vt(f,"sentry.trace.parent_span_id",P?.spanContext().spanId);const k={...e,attributes:f};t.emit("beforeCaptureLog",k);const R=d?Pt(()=>d(k)):k;if(!R){t.recordDroppedEvent("before_send","log_item",1),T&&_.warn("beforeSendLog returned null, log will not be captured.");return}const{level:S,message:w,attributes:M={},severityNumber:E}=R,I={timestamp:de(),level:S,body:w,trace_id:l?.trace_id,severity_number:E??Tg[S],attributes:Object.keys(M).reduce((D,v)=>(D[v]=Rg(M[v]),D),{})};r(t,I),t.emit("afterCaptureLog",R)}function is(e,t){const n=t??rd(e)??[];if(n.length===0)return;const r=e.getOptions(),s=kg(n,r._metadata,r.tunnel,e.getDsn());ea().set(e,[]),e.emit("flushLogs"),e.sendEnvelope(s)}function rd(e){return ea().get(e)}function Mg(e){const t=br().getScopeData();return Rs(t,ve().getScopeData()),Rs(t,e.getScopeData()),t}function ea(){return gr("clientToLogBufferMap",()=>new WeakMap)}function Ag(e,t){t.debug===!0&&(T?_.enable():Pt(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),j().update(t.initialScope);const r=new e(t);return sd(r),r.init(),r}function sd(e){j().setClient(e)}const od=Symbol.for("SentryBufferFullError");function Ng(e){const t=[];function n(){return e===void 0||t.length<e}function r(i){return t.splice(t.indexOf(i),1)[0]||Promise.resolve(void 0)}function s(i){if(!n())return Cs(od);const a=i();return t.indexOf(a)===-1&&t.push(a),a.then(()=>r(a)).then(null,()=>r(a).then(null,()=>{})),a}function o(i){return new Ot((a,c)=>{let u=t.length;if(!u)return a(!0);const d=setTimeout(()=>{i&&i>0&&a(!1)},i);t.forEach(l=>{gt(l).then(()=>{--u||(clearTimeout(d),a(!0))},c)})})}return{$:t,add:s,drain:o}}const Og=60*1e3;function id(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;const r=Date.parse(`${e}`);return isNaN(r)?Og:r-t}function Lg(e,t){return e[t]||e.all||0}function ad(e,t,n=Date.now()){return Lg(e,t)>n}function cd(e,{statusCode:t,headers:n},r=Date.now()){const s={...e},o=n?.["x-sentry-rate-limits"],i=n?.["retry-after"];if(o)for(const a of o.trim().split(",")){const[c,u,,,d]=a.split(":",5),l=parseInt(c,10),f=(isNaN(l)?60:l)*1e3;if(!u)s.all=r+f;else for(const p of u.split(";"))p==="metric_bucket"?(!d||d.split(";").includes("custom"))&&(s[p]=r+f):s[p]=r+f}else i?s.all=r+id(i,r):t===429&&(s.all=r+60*1e3);return s}const Pg=64;function ud(e,t,n=Ng(e.bufferSize||Pg)){let r={};const s=i=>n.drain(i);function o(i){const a=[];if(Jt(i,(l,f)=>{const p=oc(f);ad(r,p)?e.recordDroppedEvent("ratelimit_backoff",p):a.push(l)}),a.length===0)return gt({});const c=bt(i[0],a),u=l=>{Jt(c,(f,p)=>{e.recordDroppedEvent(l,oc(p))})},d=()=>t({body:Is(c)}).then(l=>(l.statusCode!==void 0&&(l.statusCode<200||l.statusCode>=300)&&T&&_.warn(`Sentry responded with status code ${l.statusCode} to sent event.`),r=cd(r,l),l),l=>{throw u("network_error"),T&&_.error("Encountered error running transport request:",l),l});return n.add(d).then(l=>l,l=>{if(l===od)return T&&_.error("Skipped sending event because buffer is full."),u("queue_overflow"),gt({});throw l})}return{send:o,flush:s}}const Mo=100,Ao=5e3,Dg=36e5;function Fg(e){function t(...n){T&&_.log("[Offline]:",...n)}return n=>{const r=e(n);if(!n.createStore)throw new Error("No `createStore` function was provided");const s=n.createStore(n);let o=Ao,i;function a(l,f,p){return sc(l,["client_report"])?!1:n.shouldStore?n.shouldStore(l,f,p):!0}function c(l){i&&clearTimeout(i),i=setTimeout(async()=>{i=void 0;const f=await s.shift();f&&(t("Attempting to send previously queued event"),f[0].sent_at=new Date().toISOString(),d(f,!0).catch(p=>{t("Failed to retry sending",p)}))},l),typeof i!="number"&&i.unref&&i.unref()}function u(){i||(c(o),o=Math.min(o*2,Dg))}async function d(l,f=!1){if(!f&&sc(l,["replay_event","replay_recording"]))return await s.push(l),c(Mo),{};try{if(n.shouldSend&&await n.shouldSend(l)===!1)throw new Error("Envelope not sent because `shouldSend` callback returned false");const p=await r.send(l);let h=Mo;if(p){if(p.headers?.["retry-after"])h=id(p.headers["retry-after"]);else if(p.headers?.["x-sentry-rate-limits"])h=6e4;else if((p.statusCode||0)>=400)return p}return c(h),o=Ao,p}catch(p){if(await a(l,p,o))return f?await s.unshift(l):await s.push(l),u(),t("Error sending. Event queued.",p),{};throw p}}return n.flushAtStartup&&u(),{send:d,flush:l=>(l===void 0&&(o=Ao,c(Mo)),r.flush(l))}}}function ld(e,t){let n;return Jt(e,(r,s)=>(t.includes(s)&&(n=Array.isArray(r)?r[1]:void 0),!!n)),n}function $g(e,t){return n=>{const r=e(n);return{...r,send:async s=>{const o=ld(s,["event","transaction","profile","replay_event"]);return o&&(o.release=t),r.send(s)}}}}function Bg(e,t){return bt(t?{...e[0],dsn:t}:e[0],e[1])}function Ug(e,t){return n=>{const r=e(n),s=new Map;function o(c,u){const d=u?`${c}:${u}`:c;let l=s.get(d);if(!l){const f=Ol(c);if(!f)return;const p=Jl(f,n.tunnel);l=u?$g(e,u)({...n,url:p}):e({...n,url:p}),s.set(d,l)}return[c,l]}async function i(c){function u(p){const h=p?.length?p:["event"];return ld(c,h)}const d=t({envelope:c,getEvent:u}).map(p=>typeof p=="string"?o(p,void 0):o(p.dsn,p.release)).filter(p=>!!p),l=d.length?d:[["",r]];return(await Promise.all(l.map(([p,h])=>h.send(Bg(c,p)))))[0]}async function a(c){const u=[...s.values(),r];return(await Promise.all(u.map(l=>l.flush(c)))).every(l=>l)}return{send:i,flush:a}}}function dd(e,t){const n=t?.getDsn(),r=t?.getOptions().tunnel;return Wg(e,n)||Hg(e,r)}function Hg(e,t){return t?bc(e)===bc(t):!1}function Wg(e,t){return t?e.includes(t.host):!1}function bc(e){return e[e.length-1]==="/"?e.slice(0,-1):e}function fd(e,...t){const n=new String(String.raw(e,...t));return n.__sentry_template_string__=e.join("\0").replace(/%/g,"%%").replace(/\0/g,"%s"),n.__sentry_template_values__=t,n}const zg=fd;function jg(e){e.user?.ip_address===void 0&&(e.user={...e.user,ip_address:"{{auto}}"})}function qg(e){"aggregates"in e?e.attrs?.ip_address===void 0&&(e.attrs={...e.attrs,ip_address:"{{auto}}"}):e.ipAddress===void 0&&(e.ipAddress="{{auto}}")}function pd(e,t,n=[t],r="npm"){const s=e._metadata||{};s.sdk||(s.sdk={name:`sentry.javascript.${t}`,packages:n.map(o=>({name:`${r}:@sentry/${o}`,version:ct})),version:ct}),e._metadata=s}function ta(e={}){const t=e.client||C();if(!Vl()||!t)return{};const n=St(),r=$t(n);if(r.getTraceData)return r.getTraceData(e);const s=e.scope||j(),o=e.span||me(),i=o?Rl(o):Gg(s),a=o?Ke(o):Vi(t,s),c=vl(a);return wl.test(i)?{"sentry-trace":i,baggage:c}:(_.warn("Invalid sentry-trace data. Cannot generate trace data"),{})}function Gg(e){const{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return Il(t,r,n)}function Vg(e,t,n){let r,s,o;const i=n?.maxWait?Math.max(n.maxWait,t):0,a=n?.setTimeoutImpl||setTimeout;function c(){return u(),r=e(),r}function u(){s!==void 0&&clearTimeout(s),o!==void 0&&clearTimeout(o),s=o=void 0}function d(){return s!==void 0||o!==void 0?c():r}function l(){return s&&clearTimeout(s),s=a(c,t),i&&o===void 0&&(o=a(c,i)),r}return l.cancel=u,l.flush=d,l}const Yg=100;function Je(e,t){const n=C(),r=ve();if(!n)return;const{beforeBreadcrumb:s=null,maxBreadcrumbs:o=Yg}=n.getOptions();if(o<=0)return;const a={timestamp:tn(),...e},c=s?Pt(()=>s(a,t)):a;c!==null&&(n.emit&&n.emit("beforeAddBreadcrumb",c,t),r.addBreadcrumb(c,o))}let Ec;const Xg="FunctionToString",vc=new WeakMap,Kg=()=>({name:Xg,setupOnce(){Ec=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=Wi(this),n=vc.has(C())&&t!==void 0?t:this;return Ec.apply(n,e)}}catch{}},setup(e){vc.set(e,!0)}}),hd=Kg,Jg=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,/^Can't find variable: gmo$/,/^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/,`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+$/,/^Java exception was raised during method invocation$/],Zg="EventFilters",md=(e={})=>{let t;return{name:Zg,setup(n){const r=n.getOptions();t=wc(e,r)},processEvent(n,r,s){if(!t){const o=s.getOptions();t=wc(e,o)}return Qg(n,t)?null:n}}},gd=(e={})=>({...md(e),name:"InboundFilters"});function wc(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:Jg],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function Qg(e,t){if(e.type){if(e.type==="transaction"&&t_(e,t.ignoreTransactions))return T&&_.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
|
|
11
|
-
Event: ${Ht(e)}`),!0}else{if(e_(e,t.ignoreErrors))return T&&_.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
|
|
12
|
-
Event: ${Ht(e)}`),!0;if(o_(e))return T&&_.warn(`Event dropped due to not having an error message, error type or stacktrace.
|
|
13
|
-
Event: ${Ht(e)}`),!0;if(n_(e,t.denyUrls))return T&&_.warn(`Event dropped due to being matched by \`denyUrls\` option.
|
|
14
|
-
Event: ${Ht(e)}.
|
|
15
|
-
Url: ${Ms(e)}`),!0;if(!r_(e,t.allowUrls))return T&&_.warn(`Event dropped due to not being matched by \`allowUrls\` option.
|
|
16
|
-
Event: ${Ht(e)}.
|
|
17
|
-
Url: ${Ms(e)}`),!0}return!1}function e_(e,t){return t?.length?Ql(e).some(n=>Ye(n,t)):!1}function t_(e,t){if(!t?.length)return!1;const n=e.transaction;return n?Ye(n,t):!1}function n_(e,t){if(!t?.length)return!1;const n=Ms(e);return n?Ye(n,t):!1}function r_(e,t){if(!t?.length)return!0;const n=Ms(e);return n?Ye(n,t):!0}function s_(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&n.filename!=="<anonymous>"&&n.filename!=="[native code]")return n.filename||null}return null}function Ms(e){try{const n=[...e.exception?.values??[]].reverse().find(r=>r.mechanism?.parent_id===void 0&&r.stacktrace?.frames?.length)?.stacktrace?.frames;return n?s_(n):null}catch{return T&&_.error(`Cannot extract url for event ${Ht(e)}`),null}}function o_(e){return e.exception?.values?.length?!e.message&&!e.exception.values.some(t=>t.stacktrace||t.type&&t.type!=="Error"||t.value):!1}function i_(e,t,n,r,s,o){if(!s.exception?.values||!o||!pt(o.originalException,Error))return;const i=s.exception.values.length>0?s.exception.values[s.exception.values.length-1]:void 0;i&&(s.exception.values=di(e,t,r,o.originalException,n,s.exception.values,i,0))}function di(e,t,n,r,s,o,i,a){if(o.length>=n+1)return o;let c=[...o];if(pt(r[s],Error)){Tc(i,a);const u=e(t,r[s]),d=c.length;Ic(u,s,d,a),c=di(e,t,n,r[s],s,[u,...c],u,d)}return Array.isArray(r.errors)&&r.errors.forEach((u,d)=>{if(pt(u,Error)){Tc(i,a);const l=e(t,u),f=c.length;Ic(l,`errors[${d}]`,f,a),c=di(e,t,n,u,s,[l,...c],l,f)}}),c}function Tc(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,...e.type==="AggregateError"&&{is_exception_group:!0},exception_id:t}}function Ic(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}}const _d=new Map,kc=new Set;function a_(e){if(H._sentryModuleMetadata)for(const t of Object.keys(H._sentryModuleMetadata)){const n=H._sentryModuleMetadata[t];if(kc.has(t))continue;kc.add(t);const r=e(t);for(const s of r.reverse())if(s.filename){_d.set(s.filename,n);break}}}function c_(e,t){return a_(e),_d.get(t)}function yd(e,t){try{t.exception.values.forEach(n=>{if(n.stacktrace)for(const r of n.stacktrace.frames||[]){if(!r.filename||r.module_metadata)continue;const s=c_(e,r.filename);s&&(r.module_metadata=s)}})}catch{}}function Sd(e){try{e.exception.values.forEach(t=>{if(t.stacktrace)for(const n of t.stacktrace.frames||[])delete n.module_metadata})}catch{}}const u_=()=>({name:"ModuleMetadata",setup(e){e.on("beforeEnvelope",t=>{Jt(t,(n,r)=>{if(r==="event"){const s=Array.isArray(n)?n[1]:void 0;s&&(Sd(s),n[1]=s)}})}),e.on("applyFrameMetadata",t=>{if(t.type)return;const n=e.getOptions().stackParser;yd(n,t)})}});function na(e){const t="console";Dt(t,e),Ft(t,l_)}function l_(){"console"in H&&$i.forEach(function(e){e in H.console&&Ae(H.console,e,function(t){return bs[e]=t,function(...n){He("console",{args:n,level:e}),bs[e]?.apply(H.console,n)}})})}function ra(e){return e==="warn"?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}const d_="CaptureConsole",f_=(e={})=>{const t=e.levels||$i,n=e.handled??!0;return{name:d_,setup(r){"console"in H&&na(({args:s,level:o})=>{C()!==r||!t.includes(o)||h_(s,o,n)})}}},p_=f_;function h_(e,t,n){const r={level:ra(t),extra:{arguments:e}};Pe(s=>{if(s.addEventProcessor(a=>(a.logger="console",At(a,{handled:n,type:"console"}),a)),t==="assert"){if(!e[0]){const a=`Assertion failed: ${Es(e.slice(1)," ")||"console.assert"}`;s.setExtra("arguments",e.slice(1)),xs(a,r)}return}const o=e.find(a=>a instanceof Error);if(o){Lt(o,r);return}const i=Es(e," ");xs(i,r)})}const m_="Dedupe",g_=()=>{let e;return{name:m_,processEvent(t){if(t.type)return t;try{if(__(t,e))return T&&_.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}},bd=g_;function __(e,t){return t?!!(y_(e,t)||S_(e,t)):!1}function y_(e,t){const n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!vd(e,t)||!Ed(e,t))}function S_(e,t){const n=Cc(t),r=Cc(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!vd(e,t)||!Ed(e,t))}function Ed(e,t){let n=Zo(e),r=Zo(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let s=0;s<r.length;s++){const o=r[s],i=n[s];if(o.filename!==i.filename||o.lineno!==i.lineno||o.colno!==i.colno||o.function!==i.function)return!1}return!0}function vd(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;n=n,r=r;try{return n.join("")===r.join("")}catch{return!1}}function Cc(e){return e.exception?.values?.[0]}const b_="ExtraErrorData",E_=(e={})=>{const{depth:t=3,captureErrorCause:n=!0}=e;return{name:b_,processEvent(r,s,o){const{maxValueLength:i=250}=o.getOptions();return w_(r,s,t,n,i)}}},v_=E_;function w_(e,t={},n,r,s){if(!t.originalException||!ut(t.originalException))return e;const o=t.originalException.name||t.originalException.constructor.name,i=T_(t.originalException,r,s);if(i){const a={...e.contexts},c=Fe(i,n);return ft(c)&&(Oe(c,"__sentry_skip_normalization__",!0),a[o]=c),{...e,contexts:a}}return e}function T_(e,t,n){try{const r=["name","message","stack","line","column","fileName","lineNumber","columnNumber","toJSON"],s={};for(const o of Object.keys(e)){if(r.indexOf(o)!==-1)continue;const i=e[o];s[o]=ut(i)||typeof i=="string"?Tn(`${i}`,n):i}if(t&&e.cause!==void 0&&(s.cause=ut(e.cause)?e.cause.toString():e.cause),typeof e.toJSON=="function"){const o=e.toJSON();for(const i of Object.keys(o)){const a=o[i];s[i]=ut(a)?a.toString():a}}return s}catch(r){T&&_.error("Unable to extract extra data from the Error object:",r)}return null}function I_(e,t){let n=0;for(let r=e.length-1;r>=0;r--){const s=e[r];s==="."?e.splice(r,1):s===".."?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}const k_=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function C_(e){const t=e.length>1024?`<truncated>${e.slice(-1024)}`:e,n=k_.exec(t);return n?n.slice(1):[]}function Rc(...e){let t="",n=!1;for(let r=e.length-1;r>=-1&&!n;r--){const s=r>=0?e[r]:"/";s&&(t=`${s}/${t}`,n=s.charAt(0)==="/")}return t=I_(t.split("/").filter(r=>!!r),!n).join("/"),(n?"/":"")+t||"."}function xc(e){let t=0;for(;t<e.length&&e[t]==="";t++);let n=e.length-1;for(;n>=0&&e[n]==="";n--);return t>n?[]:e.slice(t,n-t+1)}function R_(e,t){e=Rc(e).slice(1),t=Rc(t).slice(1);const n=xc(e.split("/")),r=xc(t.split("/")),s=Math.min(n.length,r.length);let o=s;for(let a=0;a<s;a++)if(n[a]!==r[a]){o=a;break}let i=[];for(let a=o;a<n.length;a++)i.push("..");return i=i.concat(r.slice(o)),i.join("/")}function x_(e,t){return C_(e)[2]||""}const M_="RewriteFrames",A_=(e={})=>{const t=e.root,n=e.prefix||"app:///",r="window"in H&&!!H.window,s=e.iteratee||N_({isBrowser:r,root:t,prefix:n});function o(a){try{return{...a,exception:{...a.exception,values:a.exception.values.map(c=>({...c,...c.stacktrace&&{stacktrace:i(c.stacktrace)}}))}}}catch{return a}}function i(a){return{...a,frames:a?.frames?.map(c=>s(c))}}return{name:M_,processEvent(a){let c=a;return a.exception&&Array.isArray(a.exception.values)&&(c=o(c)),c}}};function N_({isBrowser:e,root:t,prefix:n}){return r=>{if(!r.filename)return r;const s=/^[a-zA-Z]:\\/.test(r.filename)||r.filename.includes("\\")&&!r.filename.includes("/"),o=/^\//.test(r.filename);if(e){if(t){const i=r.filename;i.indexOf(t)===0&&(r.filename=i.replace(t,n))}}else if(s||o){const i=s?r.filename.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"):r.filename,a=t?R_(t,i):x_(i);r.filename=`${n}${a}`}return r}}const O_=["reauthenticate","signInAnonymously","signInWithOAuth","signInWithIdToken","signInWithOtp","signInWithPassword","signInWithSSO","signOut","signUp","verifyOtp"],L_=["createUser","deleteUser","listUsers","getUserById","updateUserById","inviteUserByEmail"],P_={eq:"eq",neq:"neq",gt:"gt",gte:"gte",lt:"lt",lte:"lte",like:"like","like(all)":"likeAllOf","like(any)":"likeAnyOf",ilike:"ilike","ilike(all)":"ilikeAllOf","ilike(any)":"ilikeAnyOf",is:"is",in:"in",cs:"contains",cd:"containedBy",sr:"rangeGt",nxl:"rangeGte",sl:"rangeLt",nxr:"rangeLte",adj:"rangeAdjacent",ov:"overlaps",fts:"",plfts:"plain",phfts:"phrase",wfts:"websearch",not:"not"},wd=["select","insert","upsert","update","delete"];function eo(e){try{e.__SENTRY_INSTRUMENTED__=!0}catch{}}function to(e){try{return e.__SENTRY_INSTRUMENTED__}catch{return!1}}function D_(e,t={}){switch(e){case"GET":return"select";case"POST":return t.Prefer?.includes("resolution=")?"upsert":"insert";case"PATCH":return"update";case"DELETE":return"delete";default:return"<unknown-op>"}}function F_(e,t){if(t===""||t==="*")return"select(*)";if(e==="select")return`select(${t})`;if(e==="or"||e.endsWith(".or"))return`${e}${t}`;const[n,...r]=t.split(".");let s;return n?.startsWith("fts")?s="textSearch":n?.startsWith("plfts")?s="textSearch[plain]":n?.startsWith("phfts")?s="textSearch[phrase]":n?.startsWith("wfts")?s="textSearch[websearch]":s=n&&P_[n]||"filter",`${s}(${e}, ${r.join(".")})`}function Mc(e,t=!1){return new Proxy(e,{apply(n,r,s){return Qs({name:`auth ${t?"(admin) ":""}${e.name}`,attributes:{[J]:"auto.db.supabase",[ye]:"db","db.system":"postgresql","db.operation":`auth.${t?"admin.":""}${e.name}`}},o=>Reflect.apply(n,r,s).then(i=>(i&&typeof i=="object"&&"error"in i&&i.error?(o.setStatus({code:he}),Lt(i.error,{mechanism:{handled:!1}})):o.setStatus({code:ji}),o.end(),i)).catch(i=>{throw o.setStatus({code:he}),o.end(),Lt(i,{mechanism:{handled:!1}}),i}).then(...s))}})}function $_(e){const t=e.auth;if(!(!t||to(e.auth))){for(const n of O_){const r=t[n];r&&typeof e.auth[n]=="function"&&(e.auth[n]=Mc(r))}for(const n of L_){const r=t.admin[n];r&&typeof e.auth.admin[n]=="function"&&(e.auth.admin[n]=Mc(r,!0))}eo(e.auth)}}function B_(e){to(e.prototype.from)||(e.prototype.from=new Proxy(e.prototype.from,{apply(t,n,r){const s=Reflect.apply(t,n,r),o=s.constructor;return H_(o),s}}),eo(e.prototype.from))}function U_(e){to(e.prototype.then)||(e.prototype.then=new Proxy(e.prototype.then,{apply(t,n,r){const s=wd,o=n,i=D_(o.method,o.headers);if(!s.includes(i)||!o?.url?.pathname||typeof o.url.pathname!="string")return Reflect.apply(t,n,r);const a=o.url.pathname.split("/"),c=a.length>0?a[a.length-1]:"",u=[];for(const[p,h]of o.url.searchParams.entries())u.push(F_(p,h));const d=Object.create(null);if(ft(o.body))for(const[p,h]of Object.entries(o.body))d[p]=h;const l=`${i==="select"?"":`${i}${d?"(...) ":""}`}${u.join(" ")} from(${c})`,f={"db.table":c,"db.schema":o.schema,"db.url":o.url.origin,"db.sdk":o.headers["X-Client-Info"],"db.system":"postgresql","db.operation":i,[J]:"auto.db.supabase",[ye]:"db"};return u.length&&(f["db.query"]=u),Object.keys(d).length&&(f["db.body"]=d),Qs({name:l,attributes:f},p=>Reflect.apply(t,n,[]).then(h=>{if(p&&(h&&typeof h=="object"&&"status"in h&&ir(p,h.status||500),p.end()),h.error){const y=new Error(h.error.message);h.error.code&&(y.code=h.error.code),h.error.details&&(y.details=h.error.details);const b={};u.length&&(b.query=u),Object.keys(d).length&&(b.body=d),Lt(y,{contexts:{supabase:b}})}const m={type:"supabase",category:`db.${i}`,message:l},g={};return u.length&&(g.query=u),Object.keys(d).length&&(g.body=d),Object.keys(g).length&&(m.data=g),Je(m),h},h=>{throw p&&(ir(p,500),p.end()),h}).then(...r))}}),eo(e.prototype.then))}function H_(e){for(const t of wd)to(e.prototype[t])||(e.prototype[t]=new Proxy(e.prototype[t],{apply(n,r,s){const o=Reflect.apply(n,r,s),i=o.constructor;return T&&_.log(`Instrumenting ${t} operation's PostgRESTFilterBuilder`),U_(i),o}}),eo(e.prototype[t]))}const Td=e=>{if(!e){T&&_.warn("Supabase integration was not installed because no Supabase client was provided.");return}const t=e.constructor===Function?e:e.constructor;B_(t),$_(e)},W_="Supabase",z_=e=>({setupOnce(){Td(e)},name:W_}),j_=e=>z_(e.supabaseClient),q_=10,G_="ZodErrors";function V_(e){return ut(e)&&e.name==="ZodError"&&Array.isArray(e.issues)}function Y_(e){return{...e,path:"path"in e&&Array.isArray(e.path)?e.path.join("."):void 0,keys:"keys"in e?JSON.stringify(e.keys):void 0,unionErrors:"unionErrors"in e?JSON.stringify(e.unionErrors):void 0}}function X_(e){return e.map(t=>typeof t=="number"?"<array>":t).join(".")}function K_(e){const t=new Set;for(const r of e.issues){const s=X_(r.path);s.length>0&&t.add(s)}const n=Array.from(t);if(n.length===0){let r="variable";if(e.issues.length>0){const s=e.issues[0];s!==void 0&&"expected"in s&&typeof s.expected=="string"&&(r=s.expected)}return`Failed to validate ${r}`}return`Failed to validate keys: ${Tn(n.join(", "),100)}`}function J_(e,t=!1,n,r){if(!n.exception?.values||!r.originalException||!V_(r.originalException)||r.originalException.issues.length===0)return n;try{const o=(t?r.originalException.issues:r.originalException.issues.slice(0,e)).map(Y_);return t&&(Array.isArray(r.attachments)||(r.attachments=[]),r.attachments.push({filename:"zod_issues.json",data:JSON.stringify({issues:o})})),{...n,exception:{...n.exception,values:[{...n.exception.values[0],value:K_(r.originalException)},...n.exception.values.slice(1)]},extra:{...n.extra,"zoderror.issues":o.slice(0,e)}}}catch(s){return{...n,extra:{...n.extra,"zoderrors sentry integration parse error":{message:"an exception was thrown while processing ZodError within applyZodErrorsToEvent()",error:s instanceof Error?`${s.name}: ${s.message}
|
|
18
|
-
${s.stack}`:"unknown"}}}}}const Z_=(e={})=>{const t=e.limit??q_;return{name:G_,processEvent(n,r){return J_(t,e.saveZodIssuesAsAttachment,n,r)}}},Q_=Z_,ey=e=>({name:"ThirdPartyErrorsFilter",setup(t){t.on("beforeEnvelope",n=>{Jt(n,(r,s)=>{if(s==="event"){const o=Array.isArray(r)?r[1]:void 0;o&&(Sd(o),r[1]=o)}})}),t.on("applyFrameMetadata",n=>{if(n.type)return;const r=t.getOptions().stackParser;yd(r,n)})},processEvent(t){const n=ty(t);if(n){const r=e.behaviour==="drop-error-if-contains-third-party-frames"||e.behaviour==="apply-tag-if-contains-third-party-frames"?"some":"every";if(n[r](o=>!o.some(i=>e.filterKeys.includes(i)))){if(e.behaviour==="drop-error-if-contains-third-party-frames"||e.behaviour==="drop-error-if-exclusively-contains-third-party-frames")return null;t.tags={...t.tags,third_party_code:!0}}}return t}});function ty(e){const t=Zo(e);if(t)return t.filter(n=>!!n.filename).map(n=>n.module_metadata?Object.keys(n.module_metadata).filter(r=>r.startsWith(Ac)).map(r=>r.slice(Ac.length)):[])}const Ac="_sentryBundlerPluginAppKey:",ny=100,ry=10,Br="flag.evaluation.";function Ir(e){const n=j().getScopeData().contexts.flags,r=n?n.values:[];return r.length&&(e.contexts===void 0&&(e.contexts={}),e.contexts.flags={values:[...r]}),e}function Cn(e,t,n=ny){const r=j().getScopeData().contexts;r.flags||(r.flags={values:[]});const s=r.flags.values;sy(s,e,t,n)}function sy(e,t,n,r){if(typeof n!="boolean")return;if(e.length>r){T&&_.error(`[Feature Flags] insertToFlagBuffer called on a buffer larger than maxSize=${r}`);return}const s=e.findIndex(o=>o.flag===t);s!==-1&&e.splice(s,1),e.length===r&&e.shift(),e.push({flag:t,result:n})}function Rn(e,t,n=ry){if(typeof t!="boolean")return;const r=me();if(!r)return;const s=U(r).data;if(`${Br}${e}`in s){r.setAttribute(`${Br}${e}`,t);return}Object.keys(s).filter(i=>i.startsWith(Br)).length<n&&r.setAttribute(`${Br}${e}`,t)}const oy=()=>({name:"FeatureFlags",processEvent(e,t,n){return Ir(e)},addFeatureFlag(e,t){Cn(e,t),Rn(e,t)}}),iy="thismessage:/";function Id(e){return"isRelative"in e}function kd(e,t){const n=e.indexOf("://")<=0&&e.indexOf("//")!==0,r=n?iy:void 0;try{if("canParse"in URL&&!URL.canParse(e,r))return;const s=new URL(e,r);return n?{isRelative:n,pathname:s.pathname,search:s.search,hash:s.hash}:s}catch{}}function ay(e){if(Id(e))return e.pathname;const t=new URL(e);return t.search="",t.hash="",["80","443"].includes(t.port)&&(t.port=""),t.password&&(t.password="%filtered%"),t.username&&(t.username="%filtered%"),t.toString()}function Yt(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 Cd(e){return e.split(/[?#]/,1)[0]}function cy(e,t,n,r,s="auto.http.browser"){if(!e.fetchData)return;const{method:o,url:i}=e.fetchData,a=Nt()&&t(i);if(e.endTimestamp&&a){const l=e.fetchData.__span;if(!l)return;const f=r[l];f&&(ly(f,e),delete r[l]);return}const c=!!me(),u=a&&c?We(fy(i,o,s)):new mt;if(e.fetchData.__span=u.spanContext().spanId,r[u.spanContext().spanId]=u,n(e.fetchData.url)){const l=e.args[0],f=e.args[1]||{},p=uy(l,f,Nt()&&c?u:void 0);p&&(e.args[1]=f,f.headers=p)}const d=C();if(d){const l={input:e.args,response:e.response,startTimestamp:e.startTimestamp,endTimestamp:e.endTimestamp};d.emit("beforeOutgoingRequestSpan",u,l)}return u}function uy(e,t,n){const r=ta({span:n}),s=r["sentry-trace"],o=r.baggage;if(!s)return;const i=t.headers||(ll(e)?e.headers:void 0);if(i)if(dy(i)){const a=new Headers(i);if(a.get("sentry-trace")||a.set("sentry-trace",s),o){const c=a.get("baggage");c?Ur(c)||a.set("baggage",`${c},${o}`):a.set("baggage",o)}return a}else if(Array.isArray(i)){const a=[...i];i.find(u=>u[0]==="sentry-trace")||a.push(["sentry-trace",s]);const c=i.find(u=>u[0]==="baggage"&&Ur(u[1]));return o&&!c&&a.push(["baggage",o]),a}else{const a="sentry-trace"in i?i["sentry-trace"]:void 0,c="baggage"in i?i.baggage:void 0,u=c?Array.isArray(c)?[...c]:[c]:[],d=c&&(Array.isArray(c)?c.find(l=>Ur(l)):Ur(c));return o&&!d&&u.push(o),{...i,"sentry-trace":a??s,baggage:u.length>0?u.join(","):void 0}}else return{...r}}function ly(e,t){if(t.response){ir(e,t.response.status);const n=t.response?.headers?.get("content-length");if(n){const r=parseInt(n);r>0&&e.setAttribute("http.response_content_length",r)}}else t.error&&e.setStatus({code:he,message:"internal_error"});e.end()}function Ur(e){return e.split(",").some(t=>t.trim().startsWith(qi))}function dy(e){return typeof Headers<"u"&&pt(e,Headers)}function fy(e,t,n){const r=kd(e);return{name:r?`${t} ${ay(r)}`:t,attributes:py(e,r,t,n)}}function py(e,t,n,r){const s={url:e,type:"fetch","http.method":n,[J]:r,[ye]:"http.client"};return t&&(Id(t)||(s["http.url"]=t.href,s["server.address"]=t.host),t.search&&(s["http.query"]=t.search),t.hash&&(s["http.fragment"]=t.hash)),s}function Rd(e,t={},n=j()){const{message:r,name:s,email:o,url:i,source:a,associatedEventId:c,tags:u}=e,d={contexts:{feedback:{contact_email:o,name:s,message:r,url:i,source:a,associated_event_id:c}},type:"feedback",level:"info",tags:u},l=n?.getClient()||C();return l&&l.emit("beforeSendFeedback",d,t),n.captureEvent(d,t)}const hy="ConsoleLogs",Nc={[J]:"auto.console.logging"},my=(e={})=>{const t=e.levels||$i;return{name:hy,setup(n){const{enableLogs:r,_experiments:s,normalizeDepth:o=3,normalizeMaxBreadth:i=1e3}=n.getOptions();if(!(r??s?.enableLogs)){T&&_.warn("`enableLogs` is not enabled, ConsoleLogs integration disabled");return}na(({args:c,level:u})=>{if(C()!==n||!t.includes(u))return;if(u==="assert"){if(!c[0]){const l=c.slice(1),f=l.length>0?`Assertion failed: ${Oc(l,o,i)}`:"Assertion failed";li({level:"error",message:f,attributes:Nc})}return}const d=u==="log";li({level:d?"info":u,message:Oc(c,o,i),severityNumber:d?10:void 0,attributes:Nc})})}}},gy=my;function Oc(e,t,n){return"util"in H&&typeof H.util.format=="function"?H.util.format(...e):_y(e,t,n)}function _y(e,t,n){return e.map(r=>wn(r)?String(r):JSON.stringify(Fe(r,t,n))).join(" ")}function xd(e){if(e!==void 0)return e>=400&&e<500?"warning":e>=500?"error":void 0}const xn=H;function yy(){return"history"in xn&&!!xn.history}function Sy(){if(!("fetch"in xn))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function fi(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function Md(){if(typeof EdgeRuntime=="string")return!0;if(!Sy())return!1;if(fi(xn.fetch))return!0;let e=!1;const t=xn.document;if(t&&typeof t.createElement=="function")try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow?.fetch&&(e=fi(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){T&&_.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e}function by(){return"ReportingObserver"in xn}function sa(e,t){const n="fetch";Dt(n,e),Ft(n,()=>Ad(void 0,t))}function Ey(e){const t="fetch-body-resolved";Dt(t,e),Ft(t,()=>Ad(wy))}function Ad(e,t=!1){t&&!Md()||Ae(H,"fetch",function(n){return function(...r){const s=new Error,{method:o,url:i}=Ty(r),a={args:r,fetchData:{method:o,url:i},startTimestamp:de()*1e3,virtualError:s,headers:Iy(r)};return e||He("fetch",{...a}),n.apply(H,r).then(async c=>(e?e(c):He("fetch",{...a,endTimestamp:de()*1e3,response:c}),c),c=>{if(He("fetch",{...a,endTimestamp:de()*1e3,error:c}),ut(c)&&c.stack===void 0&&(c.stack=s.stack,Oe(c,"framesToPop",1)),c instanceof TypeError&&(c.message==="Failed to fetch"||c.message==="Load failed"||c.message==="NetworkError when attempting to fetch resource."))try{const u=new URL(a.fetchData.url);c.message=`${c.message} (${u.host})`}catch{}throw c})}})}async function vy(e,t){if(e?.body){const n=e.body,r=n.getReader(),s=setTimeout(()=>{n.cancel().then(null,()=>{})},90*1e3);let o=!0;for(;o;){let i;try{i=setTimeout(()=>{n.cancel().then(null,()=>{})},5e3);const{done:a}=await r.read();clearTimeout(i),a&&(t(),o=!1)}catch{o=!1}finally{clearTimeout(i)}}clearTimeout(s),r.releaseLock(),n.cancel().then(null,()=>{})}}function wy(e){let t;try{t=e.clone()}catch{return}vy(t,()=>{He("fetch-body-resolved",{endTimestamp:de()*1e3,response:e})})}function pi(e,t){return!!e&&typeof e=="object"&&!!e[t]}function Lc(e){return typeof e=="string"?e:e?pi(e,"url")?e.url:e.toString?e.toString():"":""}function Ty(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){const[n,r]=e;return{url:Lc(n),method:pi(r,"method")?String(r.method).toUpperCase():"GET"}}const t=e[0];return{url:Lc(t),method:pi(t,"method")?String(t.method).toUpperCase():"GET"}}function Iy(e){const[t,n]=e;try{if(typeof n=="object"&&n!==null&&"headers"in n&&n.headers)return new Headers(n.headers);if(ll(t))return new Headers(t.headers)}catch{}}function ky(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function Cy(){return"npm"}function Ry(){return!ky()&&Object.prototype.toString.call(typeof ja<"u"?ja:0)==="[object process]"}function hi(){return typeof window<"u"&&(!Ry()||xy())}function xy(){return H.process?.type==="renderer"}const Ge=H,ne=Ge.document,Zn=Ge.navigator,Nd="Report a Bug",My="Cancel",Ay="Send Bug Report",Ny="Confirm",Oy="Report a Bug",Ly="your.email@example.org",Py="Email",Dy="What's the bug? What did you expect?",Fy="Description",$y="Your Name",By="Name",Uy="Thank you for your report!",Hy="(required)",Wy="Add a screenshot",zy="Remove screenshot",jy="widget",qy="api",Gy=5e3,Od=(e,t={includeReplay:!0})=>{if(!e.message)throw new Error("Unable to submit feedback with empty message");const n=C();if(!n)throw new Error("No client setup, cannot send feedback.");e.tags&&Object.keys(e.tags).length&&j().setTags(e.tags);const r=Rd({source:qy,url:en(),...e},t);return new Promise((s,o)=>{const i=setTimeout(()=>o("Unable to determine if Feedback was correctly sent."),3e4),a=n.on("afterSendEvent",(c,u)=>{if(c.event_id===r)return clearTimeout(i),a(),u&&typeof u.statusCode=="number"&&u.statusCode>=200&&u.statusCode<300?s(r):u&&typeof u.statusCode=="number"&&u.statusCode===0?o("Unable to send Feedback. This is because of network issues, or because you are using an ad-blocker."):u&&typeof u.statusCode=="number"&&u.statusCode===403?o("Unable to send Feedback. This could be because this domain is not in your list of allowed domains."):o("Unable to send Feedback. This could be because of network issues, or because you are using an ad-blocker")})})},as=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function Vy(){return!(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(Zn.userAgent)||/Macintosh/i.test(Zn.userAgent)&&Zn.maxTouchPoints&&Zn.maxTouchPoints>1||!isSecureContext)}function Hr(e,t){return{...e,...t,tags:{...e.tags,...t.tags},onFormOpen:()=>{t.onFormOpen?.(),e.onFormOpen?.()},onFormClose:()=>{t.onFormClose?.(),e.onFormClose?.()},onSubmitSuccess:(n,r)=>{t.onSubmitSuccess?.(n,r),e.onSubmitSuccess?.(n,r)},onSubmitError:n=>{t.onSubmitError?.(n),e.onSubmitError?.(n)},onFormSubmitted:()=>{t.onFormSubmitted?.(),e.onFormSubmitted?.()},themeDark:{...e.themeDark,...t.themeDark},themeLight:{...e.themeLight,...t.themeLight}}}function Yy(e){const t=ne.createElement("style");return t.textContent=`
|
|
19
|
-
.widget__actor {
|
|
20
|
-
position: fixed;
|
|
21
|
-
z-index: var(--z-index);
|
|
22
|
-
margin: var(--page-margin);
|
|
23
|
-
inset: var(--actor-inset);
|
|
24
|
-
|
|
25
|
-
display: flex;
|
|
26
|
-
align-items: center;
|
|
27
|
-
gap: 8px;
|
|
28
|
-
padding: 16px;
|
|
29
|
-
|
|
30
|
-
font-family: inherit;
|
|
31
|
-
font-size: var(--font-size);
|
|
32
|
-
font-weight: 600;
|
|
33
|
-
line-height: 1.14em;
|
|
34
|
-
text-decoration: none;
|
|
35
|
-
|
|
36
|
-
background: var(--actor-background, var(--background));
|
|
37
|
-
border-radius: var(--actor-border-radius, 1.7em/50%);
|
|
38
|
-
border: var(--actor-border, var(--border));
|
|
39
|
-
box-shadow: var(--actor-box-shadow, var(--box-shadow));
|
|
40
|
-
color: var(--actor-color, var(--foreground));
|
|
41
|
-
fill: var(--actor-color, var(--foreground));
|
|
42
|
-
cursor: pointer;
|
|
43
|
-
opacity: 1;
|
|
44
|
-
transition: transform 0.2s ease-in-out;
|
|
45
|
-
transform: translate(0, 0) scale(1);
|
|
46
|
-
}
|
|
47
|
-
.widget__actor[aria-hidden="true"] {
|
|
48
|
-
opacity: 0;
|
|
49
|
-
pointer-events: none;
|
|
50
|
-
visibility: hidden;
|
|
51
|
-
transform: translate(0, 16px) scale(0.98);
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.widget__actor:hover {
|
|
55
|
-
background: var(--actor-hover-background, var(--background));
|
|
56
|
-
filter: var(--interactive-filter);
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
.widget__actor svg {
|
|
60
|
-
width: 1.14em;
|
|
61
|
-
height: 1.14em;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
@media (max-width: 600px) {
|
|
65
|
-
.widget__actor span {
|
|
66
|
-
display: none;
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
`,e&&t.setAttribute("nonce",e),t}function Be(e,t){return Object.entries(t).forEach(([n,r])=>{e.setAttributeNS(null,n,r)}),e}const ln=20,Xy="http://www.w3.org/2000/svg";function Ky(){const e=a=>Ge.document.createElementNS(Xy,a),t=Be(e("svg"),{width:`${ln}`,height:`${ln}`,viewBox:`0 0 ${ln} ${ln}`,fill:"var(--actor-color, var(--foreground))"}),n=Be(e("g"),{clipPath:"url(#clip0_57_80)"}),r=Be(e("path"),{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.6622 15H12.3997C12.2129 14.9959 12.031 14.9396 11.8747 14.8375L8.04965 12.2H7.49956V19.1C7.4875 19.3348 7.3888 19.5568 7.22256 19.723C7.05632 19.8892 6.83435 19.9879 6.59956 20H2.04956C1.80193 19.9968 1.56535 19.8969 1.39023 19.7218C1.21511 19.5467 1.1153 19.3101 1.11206 19.0625V12.2H0.949652C0.824431 12.2017 0.700142 12.1783 0.584123 12.1311C0.468104 12.084 0.362708 12.014 0.274155 11.9255C0.185602 11.8369 0.115689 11.7315 0.0685419 11.6155C0.0213952 11.4995 -0.00202913 11.3752 -0.00034808 11.25V3.75C-0.00900498 3.62067 0.0092504 3.49095 0.0532651 3.36904C0.0972798 3.24712 0.166097 3.13566 0.255372 3.04168C0.344646 2.94771 0.452437 2.87327 0.571937 2.82307C0.691437 2.77286 0.82005 2.74798 0.949652 2.75H8.04965L11.8747 0.1625C12.031 0.0603649 12.2129 0.00407221 12.3997 0H15.6622C15.9098 0.00323746 16.1464 0.103049 16.3215 0.278167C16.4966 0.453286 16.5964 0.689866 16.5997 0.9375V3.25269C17.3969 3.42959 18.1345 3.83026 18.7211 4.41679C19.5322 5.22788 19.9878 6.32796 19.9878 7.47502C19.9878 8.62209 19.5322 9.72217 18.7211 10.5333C18.1345 11.1198 17.3969 11.5205 16.5997 11.6974V14.0125C16.6047 14.1393 16.5842 14.2659 16.5395 14.3847C16.4948 14.5035 16.4268 14.6121 16.3394 14.7042C16.252 14.7962 16.147 14.8698 16.0307 14.9206C15.9144 14.9714 15.7891 14.9984 15.6622 15ZM1.89695 10.325H1.88715V4.625H8.33715C8.52423 4.62301 8.70666 4.56654 8.86215 4.4625L12.6872 1.875H14.7247V13.125H12.6872L8.86215 10.4875C8.70666 10.3835 8.52423 10.327 8.33715 10.325H2.20217C2.15205 10.3167 2.10102 10.3125 2.04956 10.3125C1.9981 10.3125 1.94708 10.3167 1.89695 10.325ZM2.98706 12.2V18.1625H5.66206V12.2H2.98706ZM16.5997 9.93612V5.01393C16.6536 5.02355 16.7072 5.03495 16.7605 5.04814C17.1202 5.13709 17.4556 5.30487 17.7425 5.53934C18.0293 5.77381 18.2605 6.06912 18.4192 6.40389C18.578 6.73866 18.6603 7.10452 18.6603 7.47502C18.6603 7.84552 18.578 8.21139 18.4192 8.54616C18.2605 8.88093 18.0293 9.17624 17.7425 9.41071C17.4556 9.64518 17.1202 9.81296 16.7605 9.90191C16.7072 9.91509 16.6536 9.9265 16.5997 9.93612Z"});t.appendChild(n).appendChild(r);const s=e("defs"),o=Be(e("clipPath"),{id:"clip0_57_80"}),i=Be(e("rect"),{width:`${ln}`,height:`${ln}`,fill:"white"});return o.appendChild(i),s.appendChild(o),t.appendChild(s).appendChild(o).appendChild(i),t}function Jy({triggerLabel:e,triggerAriaLabel:t,shadow:n,styleNonce:r}){const s=ne.createElement("button");if(s.type="button",s.className="widget__actor",s.ariaHidden="false",s.ariaLabel=t||e||Nd,s.appendChild(Ky()),e){const i=ne.createElement("span");i.appendChild(ne.createTextNode(e)),s.appendChild(i)}const o=Yy(r);return{el:s,appendToDom(){n.appendChild(o),n.appendChild(s)},removeFromDom(){s.remove(),o.remove()},show(){s.ariaHidden="false"},hide(){s.ariaHidden="true"}}}const Ld="rgba(88, 74, 192, 1)",Zy={foreground:"#2b2233",background:"#ffffff",accentForeground:"white",accentBackground:Ld,successColor:"#268d75",errorColor:"#df3338",border:"1.5px solid rgba(41, 35, 47, 0.13)",boxShadow:"0px 4px 24px 0px rgba(43, 34, 51, 0.12)",outline:"1px auto var(--accent-background)",interactiveFilter:"brightness(95%)"},Pc={foreground:"#ebe6ef",background:"#29232f",accentForeground:"white",accentBackground:Ld,successColor:"#2da98c",errorColor:"#f55459",border:"1.5px solid rgba(235, 230, 239, 0.15)",boxShadow:"0px 4px 24px 0px rgba(43, 34, 51, 0.12)",outline:"1px auto var(--accent-background)",interactiveFilter:"brightness(150%)"};function Dc(e){return`
|
|
70
|
-
--foreground: ${e.foreground};
|
|
71
|
-
--background: ${e.background};
|
|
72
|
-
--accent-foreground: ${e.accentForeground};
|
|
73
|
-
--accent-background: ${e.accentBackground};
|
|
74
|
-
--success-color: ${e.successColor};
|
|
75
|
-
--error-color: ${e.errorColor};
|
|
76
|
-
--border: ${e.border};
|
|
77
|
-
--box-shadow: ${e.boxShadow};
|
|
78
|
-
--outline: ${e.outline};
|
|
79
|
-
--interactive-filter: ${e.interactiveFilter};
|
|
80
|
-
`}function Qy({colorScheme:e,themeDark:t,themeLight:n,styleNonce:r}){const s=ne.createElement("style");return s.textContent=`
|
|
81
|
-
:host {
|
|
82
|
-
--font-family: system-ui, 'Helvetica Neue', Arial, sans-serif;
|
|
83
|
-
--font-size: 14px;
|
|
84
|
-
--z-index: 100000;
|
|
85
|
-
|
|
86
|
-
--page-margin: 16px;
|
|
87
|
-
--inset: auto 0 0 auto;
|
|
88
|
-
--actor-inset: var(--inset);
|
|
89
|
-
|
|
90
|
-
font-family: var(--font-family);
|
|
91
|
-
font-size: var(--font-size);
|
|
92
|
-
|
|
93
|
-
${e!=="system"?"color-scheme: only light;":""}
|
|
94
|
-
|
|
95
|
-
${Dc(e==="dark"?{...Pc,...t}:{...Zy,...n})}
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
${e==="system"?`
|
|
99
|
-
@media (prefers-color-scheme: dark) {
|
|
100
|
-
:host {
|
|
101
|
-
${Dc({...Pc,...t})}
|
|
102
|
-
}
|
|
103
|
-
}`:""}
|
|
104
|
-
}
|
|
105
|
-
`,r&&s.setAttribute("nonce",r),s}const Pd=({lazyLoadIntegration:e,getModalIntegration:t,getScreenshotIntegration:n})=>({id:s="sentry-feedback",autoInject:o=!0,showBranding:i=!0,isEmailRequired:a=!1,isNameRequired:c=!1,showEmail:u=!0,showName:d=!0,enableScreenshot:l=!0,useSentryUser:f={email:"email",name:"username"},tags:p,styleNonce:h,scriptNonce:m,colorScheme:g="system",themeLight:y={},themeDark:b={},addScreenshotButtonLabel:P=Wy,cancelButtonLabel:k=My,confirmButtonLabel:R=Ny,emailLabel:S=Py,emailPlaceholder:w=Ly,formTitle:M=Oy,isRequiredLabel:E=Hy,messageLabel:I=Fy,messagePlaceholder:D=Dy,nameLabel:v=By,namePlaceholder:A=$y,removeScreenshotButtonLabel:W=zy,submitButtonLabel:L=Ay,successMessageText:x=Uy,triggerLabel:F=Nd,triggerAriaLabel:O="",onFormOpen:q,onFormClose:K,onSubmitSuccess:ue,onSubmitError:Ue,onFormSubmitted:be}={})=>{const Se={id:s,autoInject:o,showBranding:i,isEmailRequired:a,isNameRequired:c,showEmail:u,showName:d,enableScreenshot:l,useSentryUser:f,tags:p,styleNonce:h,scriptNonce:m,colorScheme:g,themeDark:b,themeLight:y,triggerLabel:F,triggerAriaLabel:O,cancelButtonLabel:k,submitButtonLabel:L,confirmButtonLabel:R,formTitle:M,emailLabel:S,emailPlaceholder:w,messageLabel:I,messagePlaceholder:D,nameLabel:v,namePlaceholder:A,successMessageText:x,isRequiredLabel:E,addScreenshotButtonLabel:P,removeScreenshotButtonLabel:W,onFormClose:K,onFormOpen:q,onSubmitError:Ue,onSubmitSuccess:ue,onFormSubmitted:be};let De=null,ot=[];const an=le=>{if(!De){const Te=ne.createElement("div");Te.id=String(le.id),ne.body.appendChild(Te),De=Te.attachShadow({mode:"open"}),De.appendChild(Qy(le))}return De},cn=async le=>{const Te=le.enableScreenshot&&Vy();let Ze,ge;try{Ze=(t?t():await e("feedbackModalIntegration",m))(),ci(Ze)}catch{throw as&&_.error("[Feedback] Error when trying to load feedback integrations. Try using `feedbackSyncIntegration` in your `Sentry.init`."),new Error("[Feedback] Missing feedback modal integration!")}try{const Qe=Te?n?n():await e("feedbackScreenshotIntegration",m):void 0;Qe&&(ge=Qe(),ci(ge))}catch{as&&_.error("[Feedback] Missing feedback screenshot integration. Proceeding without screenshots.")}const Ee=Ze.createDialog({options:{...le,onFormClose:()=>{Ee?.close(),le.onFormClose?.()},onFormSubmitted:()=>{Ee?.close(),le.onFormSubmitted?.()}},screenshotIntegration:ge,sendFeedback:Od,shadow:an(le)});return Ee},Kn=(le,Te={})=>{const Ze=Hr(Se,Te),ge=typeof le=="string"?ne.querySelector(le):typeof le.addEventListener=="function"?le:null;if(!ge)throw as&&_.error("[Feedback] Unable to attach to target element"),new Error("Unable to attach to target element");let Ee=null;const Qe=async()=>{Ee||(Ee=await cn({...Ze,onFormSubmitted:()=>{Ee?.removeFromDom(),Ze.onFormSubmitted?.()}})),Ee.appendToDom(),Ee.open()};ge.addEventListener("click",Qe);const Bt=()=>{ot=ot.filter(un=>un!==Bt),Ee?.removeFromDom(),Ee=null,ge.removeEventListener("click",Qe)};return ot.push(Bt),Bt},Et=(le={})=>{const Te=Hr(Se,le),Ze=an(Te),ge=Jy({triggerLabel:Te.triggerLabel,triggerAriaLabel:Te.triggerAriaLabel,shadow:Ze,styleNonce:h});return Kn(ge.el,{...Te,onFormOpen(){ge.hide()},onFormClose(){ge.show()},onFormSubmitted(){ge.show()}}),ge};return{name:"Feedback",setupOnce(){!hi()||!Se.autoInject||(ne.readyState==="loading"?ne.addEventListener("DOMContentLoaded",()=>Et().appendToDom()):Et().appendToDom())},attachTo:Kn,createWidget(le={}){const Te=Et(Hr(Se,le));return Te.appendToDom(),Te},async createForm(le={}){return cn(Hr(Se,le))},remove(){De&&(De.parentElement?.remove(),De=null),ot.forEach(le=>le()),ot=[]}}};function eS(){return C()?.getIntegrationByName("Feedback")}var no,se,Dd,Wt,Fc,Fd,mi,ar={},oa=[],tS=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,ia=Array.isArray;function kt(e,t){for(var n in t)e[n]=t[n];return e}function $d(e){var t=e.parentNode;t&&t.removeChild(e)}function Y(e,t,n){var r,s,o,i={};for(o in t)o=="key"?r=t[o]:o=="ref"?s=t[o]:i[o]=t[o];if(arguments.length>2&&(i.children=arguments.length>3?no.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(o in e.defaultProps)i[o]===void 0&&(i[o]=e.defaultProps[o]);return cs(e,i,r,s,null)}function cs(e,t,n,r,s){var o={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:s??++Dd,__i:-1,__u:0};return s==null&&se.vnode!=null&&se.vnode(o),o}function kr(e){return e.children}function us(e,t){this.props=e,this.context=t}function Mn(e,t){if(t==null)return e.__?Mn(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?Mn(e):null}function nS(e,t,n){var r,s=e.__v,o=s.__e,i=e.__P;if(i)return(r=kt({},s)).__v=s.__v+1,se.vnode&&se.vnode(r),aa(i,r,s,e.__n,i.ownerSVGElement!==void 0,32&s.__u?[o]:null,t,o??Mn(s),!!(32&s.__u),n),r.__.__k[r.__i]=r,r.__d=void 0,r.__e!=o&&Bd(r),r}function Bd(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return Bd(e)}}function $c(e){(!e.__d&&(e.__d=!0)&&Wt.push(e)&&!As.__r++||Fc!==se.debounceRendering)&&((Fc=se.debounceRendering)||Fd)(As)}function As(){var e,t,n,r=[],s=[];for(Wt.sort(mi);e=Wt.shift();)e.__d&&(n=Wt.length,t=nS(e,r,s)||t,n===0||Wt.length>n?(gi(r,t,s),s.length=r.length=0,t=void 0,Wt.sort(mi)):t&&se.__c&&se.__c(t,oa));t&&gi(r,t,s),As.__r=0}function Ud(e,t,n,r,s,o,i,a,c,u,d){var l,f,p,h,m,g=r&&r.__k||oa,y=t.length;for(n.__d=c,rS(n,t,g),c=n.__d,l=0;l<y;l++)(p=n.__k[l])!=null&&typeof p!="boolean"&&typeof p!="function"&&(f=p.__i===-1?ar:g[p.__i]||ar,p.__i=l,aa(e,p,f,s,o,i,a,c,u,d),h=p.__e,p.ref&&f.ref!=p.ref&&(f.ref&&ca(f.ref,null,p),d.push(p.ref,p.__c||h,p)),m==null&&h!=null&&(m=h),65536&p.__u||f.__k===p.__k?c=Hd(p,c,e):typeof p.type=="function"&&p.__d!==void 0?c=p.__d:h&&(c=h.nextSibling),p.__d=void 0,p.__u&=-196609);n.__d=c,n.__e=m}function rS(e,t,n){var r,s,o,i,a,c=t.length,u=n.length,d=u,l=0;for(e.__k=[],r=0;r<c;r++)(s=e.__k[r]=(s=t[r])==null||typeof s=="boolean"||typeof s=="function"?null:typeof s=="string"||typeof s=="number"||typeof s=="bigint"||s.constructor==String?cs(null,s,null,null,s):ia(s)?cs(kr,{children:s},null,null,null):s.constructor===void 0&&s.__b>0?cs(s.type,s.props,s.key,s.ref?s.ref:null,s.__v):s)!=null?(s.__=e,s.__b=e.__b+1,a=sS(s,n,i=r+l,d),s.__i=a,o=null,a!==-1&&(d--,(o=n[a])&&(o.__u|=131072)),o==null||o.__v===null?(a==-1&&l--,typeof s.type!="function"&&(s.__u|=65536)):a!==i&&(a===i+1?l++:a>i?d>c-i?l+=a-i:l--:l=a<i&&a==i-1?a-i:0,a!==r+l&&(s.__u|=65536))):(o=n[r])&&o.key==null&&o.__e&&(o.__e==e.__d&&(e.__d=Mn(o)),_i(o,o,!1),n[r]=null,d--);if(d)for(r=0;r<u;r++)(o=n[r])!=null&&(131072&o.__u)==0&&(o.__e==e.__d&&(e.__d=Mn(o)),_i(o,o))}function Hd(e,t,n){var r,s;if(typeof e.type=="function"){for(r=e.__k,s=0;r&&s<r.length;s++)r[s]&&(r[s].__=e,t=Hd(r[s],t,n));return t}e.__e!=t&&(n.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType===8);return t}function sS(e,t,n,r){var s=e.key,o=e.type,i=n-1,a=n+1,c=t[n];if(c===null||c&&s==c.key&&o===c.type)return n;if(r>(c!=null&&(131072&c.__u)==0?1:0))for(;i>=0||a<t.length;){if(i>=0){if((c=t[i])&&(131072&c.__u)==0&&s==c.key&&o===c.type)return i;i--}if(a<t.length){if((c=t[a])&&(131072&c.__u)==0&&s==c.key&&o===c.type)return a;a++}}return-1}function Bc(e,t,n){t[0]==="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||tS.test(t)?n:n+"px"}function Wr(e,t,n,r,s){var o;e:if(t==="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||Bc(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||Bc(e.style,t,n[t])}else if(t[0]==="o"&&t[1]==="n")o=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=n,n?r?n.u=r.u:(n.u=Date.now(),e.addEventListener(t,o?Hc:Uc,o)):e.removeEventListener(t,o?Hc:Uc,o);else{if(s)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!=="width"&&t!=="height"&&t!=="href"&&t!=="list"&&t!=="form"&&t!=="tabIndex"&&t!=="download"&&t!=="rowSpan"&&t!=="colSpan"&&t!=="role"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!=="-"?e.removeAttribute(t):e.setAttribute(t,n))}}function Uc(e){if(this.l){var t=this.l[e.type+!1];if(e.t){if(e.t<=t.u)return}else e.t=Date.now();return t(se.event?se.event(e):e)}}function Hc(e){if(this.l)return this.l[e.type+!0](se.event?se.event(e):e)}function aa(e,t,n,r,s,o,i,a,c,u){var d,l,f,p,h,m,g,y,b,P,k,R,S,w,M,E=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(c=!!(32&n.__u),o=[a=t.__e=n.__e]),(d=se.__b)&&d(t);e:if(typeof E=="function")try{if(y=t.props,b=(d=E.contextType)&&r[d.__c],P=d?b?b.props.value:d.__:r,n.__c?g=(l=t.__c=n.__c).__=l.__E:("prototype"in E&&E.prototype.render?t.__c=l=new E(y,P):(t.__c=l=new us(y,P),l.constructor=E,l.render=iS),b&&b.sub(l),l.props=y,l.state||(l.state={}),l.context=P,l.__n=r,f=l.__d=!0,l.__h=[],l._sb=[]),l.__s==null&&(l.__s=l.state),E.getDerivedStateFromProps!=null&&(l.__s==l.state&&(l.__s=kt({},l.__s)),kt(l.__s,E.getDerivedStateFromProps(y,l.__s))),p=l.props,h=l.state,l.__v=t,f)E.getDerivedStateFromProps==null&&l.componentWillMount!=null&&l.componentWillMount(),l.componentDidMount!=null&&l.__h.push(l.componentDidMount);else{if(E.getDerivedStateFromProps==null&&y!==p&&l.componentWillReceiveProps!=null&&l.componentWillReceiveProps(y,P),!l.__e&&(l.shouldComponentUpdate!=null&&l.shouldComponentUpdate(y,l.__s,P)===!1||t.__v===n.__v)){for(t.__v!==n.__v&&(l.props=y,l.state=l.__s,l.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(I){I&&(I.__=t)}),k=0;k<l._sb.length;k++)l.__h.push(l._sb[k]);l._sb=[],l.__h.length&&i.push(l);break e}l.componentWillUpdate!=null&&l.componentWillUpdate(y,l.__s,P),l.componentDidUpdate!=null&&l.__h.push(function(){l.componentDidUpdate(p,h,m)})}if(l.context=P,l.props=y,l.__P=e,l.__e=!1,R=se.__r,S=0,"prototype"in E&&E.prototype.render){for(l.state=l.__s,l.__d=!1,R&&R(t),d=l.render(l.props,l.state,l.context),w=0;w<l._sb.length;w++)l.__h.push(l._sb[w]);l._sb=[]}else do l.__d=!1,R&&R(t),d=l.render(l.props,l.state,l.context),l.state=l.__s;while(l.__d&&++S<25);l.state=l.__s,l.getChildContext!=null&&(r=kt(kt({},r),l.getChildContext())),f||l.getSnapshotBeforeUpdate==null||(m=l.getSnapshotBeforeUpdate(p,h)),Ud(e,ia(M=d!=null&&d.type===kr&&d.key==null?d.props.children:d)?M:[M],t,n,r,s,o,i,a,c,u),l.base=t.__e,t.__u&=-161,l.__h.length&&i.push(l),g&&(l.__E=l.__=null)}catch(I){t.__v=null,c||o!=null?(t.__e=a,t.__u|=c?160:32,o[o.indexOf(a)]=null):(t.__e=n.__e,t.__k=n.__k),se.__e(I,t,n)}else o==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=oS(n.__e,t,n,r,s,o,i,c,u);(d=se.diffed)&&d(t)}function gi(e,t,n){for(var r=0;r<n.length;r++)ca(n[r],n[++r],n[++r]);se.__c&&se.__c(t,e),e.some(function(s){try{e=s.__h,s.__h=[],e.some(function(o){o.call(s)})}catch(o){se.__e(o,s.__v)}})}function oS(e,t,n,r,s,o,i,a,c){var u,d,l,f,p,h,m,g=n.props,y=t.props,b=t.type;if(b==="svg"&&(s=!0),o!=null){for(u=0;u<o.length;u++)if((p=o[u])&&"setAttribute"in p==!!b&&(b?p.localName===b:p.nodeType===3)){e=p,o[u]=null;break}}if(e==null){if(b===null)return document.createTextNode(y);e=s?document.createElementNS("http://www.w3.org/2000/svg",b):document.createElement(b,y.is&&y),o=null,a=!1}if(b===null)g===y||a&&e.data===y||(e.data=y);else{if(o=o&&no.call(e.childNodes),g=n.props||ar,!a&&o!=null)for(g={},u=0;u<e.attributes.length;u++)g[(p=e.attributes[u]).name]=p.value;for(u in g)p=g[u],u=="children"||(u=="dangerouslySetInnerHTML"?l=p:u==="key"||u in y||Wr(e,u,null,p,s));for(u in y)p=y[u],u=="children"?f=p:u=="dangerouslySetInnerHTML"?d=p:u=="value"?h=p:u=="checked"?m=p:u==="key"||a&&typeof p!="function"||g[u]===p||Wr(e,u,p,g[u],s);if(d)a||l&&(d.__html===l.__html||d.__html===e.innerHTML)||(e.innerHTML=d.__html),t.__k=[];else if(l&&(e.innerHTML=""),Ud(e,ia(f)?f:[f],t,n,r,s&&b!=="foreignObject",o,i,o?o[0]:n.__k&&Mn(n,0),a,c),o!=null)for(u=o.length;u--;)o[u]!=null&&$d(o[u]);a||(u="value",h!==void 0&&(h!==e[u]||b==="progress"&&!h||b==="option"&&h!==g[u])&&Wr(e,u,h,g[u],!1),u="checked",m!==void 0&&m!==e[u]&&Wr(e,u,m,g[u],!1))}return e}function ca(e,t,n){try{typeof e=="function"?e(t):e.current=t}catch(r){se.__e(r,n)}}function _i(e,t,n){var r,s;if(se.unmount&&se.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||ca(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(o){se.__e(o,t)}r.base=r.__P=null,e.__c=void 0}if(r=e.__k)for(s=0;s<r.length;s++)r[s]&&_i(r[s],t,n||typeof e.type!="function");n||e.__e==null||$d(e.__e),e.__=e.__e=e.__d=void 0}function iS(e,t,n){return this.constructor(e,n)}function aS(e,t,n){var r,s,o,i;se.__&&se.__(e,t),s=(r=!1)?null:t.__k,o=[],i=[],aa(t,e=t.__k=Y(kr,null,[e]),s||ar,ar,t.ownerSVGElement!==void 0,s?null:t.firstChild?no.call(t.childNodes):null,o,s?s.__e:t.firstChild,r,i),e.__d=void 0,gi(o,e,i)}no=oa.slice,se={__e:function(e,t,n,r){for(var s,o,i;t=t.__;)if((s=t.__c)&&!s.__)try{if((o=s.constructor)&&o.getDerivedStateFromError!=null&&(s.setState(o.getDerivedStateFromError(e)),i=s.__d),s.componentDidCatch!=null&&(s.componentDidCatch(e,r||{}),i=s.__d),i)return s.__E=s}catch(a){e=a}throw e}},Dd=0,us.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=kt({},this.state),typeof e=="function"&&(e=e(kt({},n),this.props)),e&&kt(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),$c(this))},us.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),$c(this))},us.prototype.render=kr,Wt=[],Fd=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,mi=function(e,t){return e.__v.__b-t.__v.__b},As.__r=0;var _t,re,No,Wc,An=0,Wd=[],ls=[],fe=se,zc=fe.__b,jc=fe.__r,qc=fe.diffed,Gc=fe.__c,Vc=fe.unmount,Yc=fe.__;function sn(e,t){fe.__h&&fe.__h(re,e,An||t),An=0;var n=re.__H||(re.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:ls}),n.__[e]}function zt(e){return An=1,zd(qd,e)}function zd(e,t,n){var r=sn(_t++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):qd(void 0,t),function(a){var c=r.__N?r.__N[0]:r.__[0],u=r.t(c,a);c!==u&&(r.__N=[u,r.__[1]],r.__c.setState({}))}],r.__c=re,!re.u)){var s=function(a,c,u){if(!r.__c.__H)return!0;var d=r.__c.__H.__.filter(function(f){return!!f.__c});if(d.every(function(f){return!f.__N}))return!o||o.call(this,a,c,u);var l=!1;return d.forEach(function(f){if(f.__N){var p=f.__[0];f.__=f.__N,f.__N=void 0,p!==f.__[0]&&(l=!0)}}),!(!l&&r.__c.props===a)&&(!o||o.call(this,a,c,u))};re.u=!0;var o=re.shouldComponentUpdate,i=re.componentWillUpdate;re.componentWillUpdate=function(a,c,u){if(this.__e){var d=o;o=void 0,s(a,c,u),o=d}i&&i.call(this,a,c,u)},re.shouldComponentUpdate=s}return r.__N||r.__}function cS(e,t){var n=sn(_t++,3);!fe.__s&&ua(n.__H,t)&&(n.__=e,n.i=t,re.__H.__h.push(n))}function jd(e,t){var n=sn(_t++,4);!fe.__s&&ua(n.__H,t)&&(n.__=e,n.i=t,re.__h.push(n))}function uS(e){return An=5,Cr(function(){return{current:e}},[])}function lS(e,t,n){An=6,jd(function(){return typeof e=="function"?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0},n==null?n:n.concat(e))}function Cr(e,t){var n=sn(_t++,7);return ua(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function En(e,t){return An=8,Cr(function(){return e},t)}function dS(e){var t=re.context[e.__c],n=sn(_t++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(re)),t.props.value):e.__}function fS(e,t){fe.useDebugValue&&fe.useDebugValue(t?t(e):e)}function pS(e){var t=sn(_t++,10),n=zt();return t.__=e,re.componentDidCatch||(re.componentDidCatch=function(r,s){t.__&&t.__(r,s),n[1](r)}),[n[0],function(){n[1](void 0)}]}function hS(){var e=sn(_t++,11);if(!e.__){for(var t=re.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function mS(){for(var e;e=Wd.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(ds),e.__H.__h.forEach(yi),e.__H.__h=[]}catch(t){e.__H.__h=[],fe.__e(t,e.__v)}}fe.__b=function(e){re=null,zc&&zc(e)},fe.__=function(e,t){t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Yc&&Yc(e,t)},fe.__r=function(e){jc&&jc(e),_t=0;var t=(re=e.__c).__H;t&&(No===re?(t.__h=[],re.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=ls,n.__N=n.i=void 0})):(t.__h.forEach(ds),t.__h.forEach(yi),t.__h=[],_t=0)),No=re},fe.diffed=function(e){qc&&qc(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Wd.push(t)!==1&&Wc===fe.requestAnimationFrame||((Wc=fe.requestAnimationFrame)||gS)(mS)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==ls&&(n.__=n.__V),n.i=void 0,n.__V=ls})),No=re=null},fe.__c=function(e,t){t.some(function(n){try{n.__h.forEach(ds),n.__h=n.__h.filter(function(r){return!r.__||yi(r)})}catch(r){t.some(function(s){s.__h&&(s.__h=[])}),t=[],fe.__e(r,n.__v)}}),Gc&&Gc(e,t)},fe.unmount=function(e){Vc&&Vc(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{ds(r)}catch(s){t=s}}),n.__H=void 0,t&&fe.__e(t,n.__v))};var Xc=typeof requestAnimationFrame=="function";function gS(e){var t,n=function(){clearTimeout(r),Xc&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);Xc&&(t=requestAnimationFrame(n))}function ds(e){var t=re,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),re=t}function yi(e){var t=re;e.__c=e.__(),re=t}function ua(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function qd(e,t){return typeof t=="function"?t(e):t}const _S=Object.defineProperty({__proto__:null,useCallback:En,useContext:dS,useDebugValue:fS,useEffect:cS,useErrorBoundary:pS,useId:hS,useImperativeHandle:lS,useLayoutEffect:jd,useMemo:Cr,useReducer:zd,useRef:uS,useState:zt},Symbol.toStringTag,{value:"Module"}),yS="http://www.w3.org/2000/svg";function SS(){const e=r=>ne.createElementNS(yS,r),t=Be(e("svg"),{width:"32",height:"30",viewBox:"0 0 72 66",fill:"inherit"}),n=Be(e("path"),{transform:"translate(11, 11)",d:"M29,2.26a4.67,4.67,0,0,0-8,0L14.42,13.53A32.21,32.21,0,0,1,32.17,40.19H27.55A27.68,27.68,0,0,0,12.09,17.47L6,28a15.92,15.92,0,0,1,9.23,12.17H4.62A.76.76,0,0,1,4,39.06l2.94-5a10.74,10.74,0,0,0-3.36-1.9l-2.91,5a4.54,4.54,0,0,0,1.69,6.24A4.66,4.66,0,0,0,4.62,44H19.15a19.4,19.4,0,0,0-8-17.31l2.31-4A23.87,23.87,0,0,1,23.76,44H36.07a35.88,35.88,0,0,0-16.41-31.8l4.67-8a.77.77,0,0,1,1.05-.27c.53.29,20.29,34.77,20.66,35.17a.76.76,0,0,1-.68,1.13H40.6q.09,1.91,0,3.81h4.78A4.59,4.59,0,0,0,50,39.43a4.49,4.49,0,0,0-.62-2.28Z"});return t.appendChild(n),t}function bS({options:e}){const t=Cr(()=>({__html:SS().outerHTML}),[]);return Y("h2",{class:"dialog__header"},Y("span",{class:"dialog__title"},e.formTitle),e.showBranding?Y("a",{class:"brand-link",target:"_blank",href:"https://sentry.io/welcome/",title:"Powered by Sentry",rel:"noopener noreferrer",dangerouslySetInnerHTML:t}):null)}function ES(e,t){const n=[];return t.isNameRequired&&!e.name&&n.push(t.nameLabel),t.isEmailRequired&&!e.email&&n.push(t.emailLabel),e.message||n.push(t.messageLabel),n}function Oo(e,t){const n=e.get(t);return typeof n=="string"?n.trim():""}function vS({options:e,defaultEmail:t,defaultName:n,onFormClose:r,onSubmit:s,onSubmitSuccess:o,onSubmitError:i,showEmail:a,showName:c,screenshotInput:u}){const{tags:d,addScreenshotButtonLabel:l,removeScreenshotButtonLabel:f,cancelButtonLabel:p,emailLabel:h,emailPlaceholder:m,isEmailRequired:g,isNameRequired:y,messageLabel:b,messagePlaceholder:P,nameLabel:k,namePlaceholder:R,submitButtonLabel:S,isRequiredLabel:w}=e,[M,E]=zt(!1),[I,D]=zt(null),[v,A]=zt(!1),W=u?.input,[L,x]=zt(null),F=En(K=>{x(K),A(!1)},[]),O=En(K=>{const ue=ES(K,{emailLabel:h,isEmailRequired:g,isNameRequired:y,messageLabel:b,nameLabel:k});return ue.length>0?D(`Please enter in the following required fields: ${ue.join(", ")}`):D(null),ue.length===0},[h,g,y,b,k]),q=En(async K=>{E(!0);try{if(K.preventDefault(),!(K.target instanceof HTMLFormElement))return;const ue=new FormData(K.target),Ue=await(u&&v?u.value():void 0),be={name:Oo(ue,"name"),email:Oo(ue,"email"),message:Oo(ue,"message"),attachments:Ue?[Ue]:void 0};if(!O(be))return;try{const Se=await s({name:be.name,email:be.email,message:be.message,source:jy,tags:d},{attachments:be.attachments});o(be,Se)}catch(Se){as&&_.error(Se),D(Se),i(Se)}}finally{E(!1)}},[u&&v,o,i]);return Y("form",{class:"form",onSubmit:q},W&&v?Y(W,{onError:F}):null,Y("fieldset",{class:"form__right","data-sentry-feedback":!0,disabled:M},Y("div",{class:"form__top"},I?Y("div",{class:"form__error-container"},I):null,c?Y("label",{for:"name",class:"form__label"},Y(Lo,{label:k,isRequiredLabel:w,isRequired:y}),Y("input",{class:"form__input",defaultValue:n,id:"name",name:"name",placeholder:R,required:y,type:"text"})):Y("input",{"aria-hidden":!0,value:n,name:"name",type:"hidden"}),a?Y("label",{for:"email",class:"form__label"},Y(Lo,{label:h,isRequiredLabel:w,isRequired:g}),Y("input",{class:"form__input",defaultValue:t,id:"email",name:"email",placeholder:m,required:g,type:"email"})):Y("input",{"aria-hidden":!0,value:t,name:"email",type:"hidden"}),Y("label",{for:"message",class:"form__label"},Y(Lo,{label:b,isRequiredLabel:w,isRequired:!0}),Y("textarea",{autoFocus:!0,class:"form__input form__input--textarea",id:"message",name:"message",placeholder:P,required:!0,rows:5})),W?Y("label",{for:"screenshot",class:"form__label"},Y("button",{class:"btn btn--default",disabled:M,type:"button",onClick:()=>{x(null),A(K=>!K)}},v?f:l),L?Y("div",{class:"form__error-container"},L.message):null):null),Y("div",{class:"btn-group"},Y("button",{class:"btn btn--primary",disabled:M,type:"submit"},S),Y("button",{class:"btn btn--default",disabled:M,type:"button",onClick:r},p))))}function Lo({label:e,isRequired:t,isRequiredLabel:n}){return Y("span",{class:"form__label__text"},e,t&&Y("span",{class:"form__label__text--required"},n))}const zr=16,Kc=17,wS="http://www.w3.org/2000/svg";function TS(){const e=c=>Ge.document.createElementNS(wS,c),t=Be(e("svg"),{width:`${zr}`,height:`${Kc}`,viewBox:`0 0 ${zr} ${Kc}`,fill:"inherit"}),n=Be(e("g"),{clipPath:"url(#clip0_57_156)"}),r=Be(e("path"),{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.55544 15.1518C4.87103 16.0308 6.41775 16.5 8 16.5C10.1217 16.5 12.1566 15.6571 13.6569 14.1569C15.1571 12.6566 16 10.6217 16 8.5C16 6.91775 15.5308 5.37103 14.6518 4.05544C13.7727 2.73985 12.5233 1.71447 11.0615 1.10897C9.59966 0.503466 7.99113 0.34504 6.43928 0.653721C4.88743 0.962403 3.46197 1.72433 2.34315 2.84315C1.22433 3.96197 0.462403 5.38743 0.153721 6.93928C-0.15496 8.49113 0.00346625 10.0997 0.608967 11.5615C1.21447 13.0233 2.23985 14.2727 3.55544 15.1518ZM4.40546 3.1204C5.46945 2.40946 6.72036 2.03 8 2.03C9.71595 2.03 11.3616 2.71166 12.575 3.92502C13.7883 5.13838 14.47 6.78405 14.47 8.5C14.47 9.77965 14.0905 11.0306 13.3796 12.0945C12.6687 13.1585 11.6582 13.9878 10.476 14.4775C9.29373 14.9672 7.99283 15.0953 6.73777 14.8457C5.48271 14.596 4.32987 13.9798 3.42502 13.075C2.52018 12.1701 1.90397 11.0173 1.65432 9.76224C1.40468 8.50718 1.5328 7.20628 2.0225 6.02404C2.5122 4.8418 3.34148 3.83133 4.40546 3.1204Z"}),s=Be(e("path"),{d:"M6.68775 12.4297C6.78586 12.4745 6.89218 12.4984 7 12.5C7.11275 12.4955 7.22315 12.4664 7.32337 12.4145C7.4236 12.3627 7.51121 12.2894 7.58 12.2L12 5.63999C12.0848 5.47724 12.1071 5.28902 12.0625 5.11098C12.0178 4.93294 11.9095 4.77744 11.7579 4.67392C11.6064 4.57041 11.4221 4.52608 11.24 4.54931C11.0579 4.57254 10.8907 4.66173 10.77 4.79999L6.88 10.57L5.13 8.56999C5.06508 8.49566 4.98613 8.43488 4.89768 8.39111C4.80922 8.34735 4.713 8.32148 4.61453 8.31498C4.51605 8.30847 4.41727 8.32147 4.32382 8.35322C4.23038 8.38497 4.14413 8.43484 4.07 8.49999C3.92511 8.63217 3.83692 8.81523 3.82387 9.01092C3.81083 9.2066 3.87393 9.39976 4 9.54999L6.43 12.24C6.50187 12.3204 6.58964 12.385 6.68775 12.4297Z"});t.appendChild(n).append(s,r);const o=e("defs"),i=Be(e("clipPath"),{id:"clip0_57_156"}),a=Be(e("rect"),{width:`${zr}`,height:`${zr}`,fill:"white",transform:"translate(0 0.5)"});return i.appendChild(a),o.appendChild(i),t.appendChild(o).appendChild(i).appendChild(a),t}function IS({open:e,onFormSubmitted:t,...n}){const r=n.options,s=Cr(()=>({__html:TS().outerHTML}),[]),[o,i]=zt(null),a=En(()=>{o&&(clearTimeout(o),i(null)),t()},[o]),c=En((u,d)=>{n.onSubmitSuccess(u,d),i(setTimeout(()=>{t(),i(null)},Gy))},[t]);return Y(kr,null,o?Y("div",{class:"success__position",onClick:a},Y("div",{class:"success__content"},r.successMessageText,Y("span",{class:"success__icon",dangerouslySetInnerHTML:s}))):Y("dialog",{class:"dialog",onClick:r.onFormClose,open:e},Y("div",{class:"dialog__position"},Y("div",{class:"dialog__content",onClick:u=>{u.stopPropagation()}},Y(bS,{options:r}),Y(vS,{...n,onSubmitSuccess:c})))))}const kS=`
|
|
106
|
-
.dialog {
|
|
107
|
-
position: fixed;
|
|
108
|
-
z-index: var(--z-index);
|
|
109
|
-
margin: 0;
|
|
110
|
-
inset: 0;
|
|
111
|
-
|
|
112
|
-
display: flex;
|
|
113
|
-
align-items: center;
|
|
114
|
-
justify-content: center;
|
|
115
|
-
padding: 0;
|
|
116
|
-
height: 100vh;
|
|
117
|
-
width: 100vw;
|
|
118
|
-
|
|
119
|
-
color: var(--dialog-color, var(--foreground));
|
|
120
|
-
fill: var(--dialog-color, var(--foreground));
|
|
121
|
-
line-height: 1.75em;
|
|
122
|
-
|
|
123
|
-
background-color: rgba(0, 0, 0, 0.05);
|
|
124
|
-
border: none;
|
|
125
|
-
inset: 0;
|
|
126
|
-
opacity: 1;
|
|
127
|
-
transition: opacity 0.2s ease-in-out;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
.dialog__position {
|
|
131
|
-
position: fixed;
|
|
132
|
-
z-index: var(--z-index);
|
|
133
|
-
inset: var(--dialog-inset);
|
|
134
|
-
padding: var(--page-margin);
|
|
135
|
-
display: flex;
|
|
136
|
-
max-height: calc(100vh - (2 * var(--page-margin)));
|
|
137
|
-
}
|
|
138
|
-
@media (max-width: 600px) {
|
|
139
|
-
.dialog__position {
|
|
140
|
-
inset: var(--page-margin);
|
|
141
|
-
padding: 0;
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
.dialog__position:has(.editor) {
|
|
146
|
-
inset: var(--page-margin);
|
|
147
|
-
padding: 0;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
.dialog:not([open]) {
|
|
151
|
-
opacity: 0;
|
|
152
|
-
pointer-events: none;
|
|
153
|
-
visibility: hidden;
|
|
154
|
-
}
|
|
155
|
-
.dialog:not([open]) .dialog__content {
|
|
156
|
-
transform: translate(0, -16px) scale(0.98);
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
.dialog__content {
|
|
160
|
-
display: flex;
|
|
161
|
-
flex-direction: column;
|
|
162
|
-
gap: 16px;
|
|
163
|
-
padding: var(--dialog-padding, 24px);
|
|
164
|
-
max-width: 100%;
|
|
165
|
-
width: 100%;
|
|
166
|
-
max-height: 100%;
|
|
167
|
-
overflow: auto;
|
|
168
|
-
|
|
169
|
-
background: var(--dialog-background, var(--background));
|
|
170
|
-
border-radius: var(--dialog-border-radius, 20px);
|
|
171
|
-
border: var(--dialog-border, var(--border));
|
|
172
|
-
box-shadow: var(--dialog-box-shadow, var(--box-shadow));
|
|
173
|
-
transform: translate(0, 0) scale(1);
|
|
174
|
-
transition: transform 0.2s ease-in-out;
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
`,CS=`
|
|
178
|
-
.dialog__header {
|
|
179
|
-
display: flex;
|
|
180
|
-
gap: 4px;
|
|
181
|
-
justify-content: space-between;
|
|
182
|
-
font-weight: var(--dialog-header-weight, 600);
|
|
183
|
-
margin: 0;
|
|
184
|
-
}
|
|
185
|
-
.dialog__title {
|
|
186
|
-
align-self: center;
|
|
187
|
-
width: var(--form-width, 272px);
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
@media (max-width: 600px) {
|
|
191
|
-
.dialog__title {
|
|
192
|
-
width: auto;
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
.dialog__position:has(.editor) .dialog__title {
|
|
197
|
-
width: auto;
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
.brand-link {
|
|
202
|
-
display: inline-flex;
|
|
203
|
-
}
|
|
204
|
-
.brand-link:focus-visible {
|
|
205
|
-
outline: var(--outline);
|
|
206
|
-
}
|
|
207
|
-
`,RS=`
|
|
208
|
-
.form {
|
|
209
|
-
display: flex;
|
|
210
|
-
overflow: auto;
|
|
211
|
-
flex-direction: row;
|
|
212
|
-
gap: 16px;
|
|
213
|
-
flex: 1 0;
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
.form fieldset {
|
|
217
|
-
border: none;
|
|
218
|
-
margin: 0;
|
|
219
|
-
padding: 0;
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
.form__right {
|
|
223
|
-
flex: 0 0 auto;
|
|
224
|
-
display: flex;
|
|
225
|
-
overflow: auto;
|
|
226
|
-
flex-direction: column;
|
|
227
|
-
justify-content: space-between;
|
|
228
|
-
gap: 20px;
|
|
229
|
-
width: var(--form-width, 100%);
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
.dialog__position:has(.editor) .form__right {
|
|
233
|
-
width: var(--form-width, 272px);
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
.form__top {
|
|
237
|
-
display: flex;
|
|
238
|
-
flex-direction: column;
|
|
239
|
-
gap: 8px;
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
.form__error-container {
|
|
243
|
-
color: var(--error-color);
|
|
244
|
-
fill: var(--error-color);
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
.form__label {
|
|
248
|
-
display: flex;
|
|
249
|
-
flex-direction: column;
|
|
250
|
-
gap: 4px;
|
|
251
|
-
margin: 0px;
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
.form__label__text {
|
|
255
|
-
display: flex;
|
|
256
|
-
gap: 4px;
|
|
257
|
-
align-items: center;
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
.form__label__text--required {
|
|
261
|
-
font-size: 0.85em;
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
.form__input {
|
|
265
|
-
font-family: inherit;
|
|
266
|
-
line-height: inherit;
|
|
267
|
-
background: transparent;
|
|
268
|
-
box-sizing: border-box;
|
|
269
|
-
border: var(--input-border, var(--border));
|
|
270
|
-
border-radius: var(--input-border-radius, 6px);
|
|
271
|
-
color: var(--input-color, inherit);
|
|
272
|
-
fill: var(--input-color, inherit);
|
|
273
|
-
font-size: var(--input-font-size, inherit);
|
|
274
|
-
font-weight: var(--input-font-weight, 500);
|
|
275
|
-
padding: 6px 12px;
|
|
276
|
-
}
|
|
277
|
-
|
|
278
|
-
.form__input::placeholder {
|
|
279
|
-
opacity: 0.65;
|
|
280
|
-
color: var(--input-placeholder-color, inherit);
|
|
281
|
-
filter: var(--interactive-filter);
|
|
282
|
-
}
|
|
283
|
-
|
|
284
|
-
.form__input:focus-visible {
|
|
285
|
-
outline: var(--input-focus-outline, var(--outline));
|
|
286
|
-
}
|
|
287
|
-
|
|
288
|
-
.form__input--textarea {
|
|
289
|
-
font-family: inherit;
|
|
290
|
-
resize: vertical;
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
.error {
|
|
294
|
-
color: var(--error-color);
|
|
295
|
-
fill: var(--error-color);
|
|
296
|
-
}
|
|
297
|
-
`,xS=`
|
|
298
|
-
.btn-group {
|
|
299
|
-
display: grid;
|
|
300
|
-
gap: 8px;
|
|
301
|
-
}
|
|
302
|
-
|
|
303
|
-
.btn {
|
|
304
|
-
line-height: inherit;
|
|
305
|
-
border: var(--button-border, var(--border));
|
|
306
|
-
border-radius: var(--button-border-radius, 6px);
|
|
307
|
-
cursor: pointer;
|
|
308
|
-
font-family: inherit;
|
|
309
|
-
font-size: var(--button-font-size, inherit);
|
|
310
|
-
font-weight: var(--button-font-weight, 600);
|
|
311
|
-
padding: var(--button-padding, 6px 16px);
|
|
312
|
-
}
|
|
313
|
-
.btn[disabled] {
|
|
314
|
-
opacity: 0.6;
|
|
315
|
-
pointer-events: none;
|
|
316
|
-
}
|
|
317
|
-
|
|
318
|
-
.btn--primary {
|
|
319
|
-
color: var(--button-primary-color, var(--accent-foreground));
|
|
320
|
-
fill: var(--button-primary-color, var(--accent-foreground));
|
|
321
|
-
background: var(--button-primary-background, var(--accent-background));
|
|
322
|
-
border: var(--button-primary-border, var(--border));
|
|
323
|
-
border-radius: var(--button-primary-border-radius, 6px);
|
|
324
|
-
font-weight: var(--button-primary-font-weight, 500);
|
|
325
|
-
}
|
|
326
|
-
.btn--primary:hover {
|
|
327
|
-
color: var(--button-primary-hover-color, var(--accent-foreground));
|
|
328
|
-
fill: var(--button-primary-hover-color, var(--accent-foreground));
|
|
329
|
-
background: var(--button-primary-hover-background, var(--accent-background));
|
|
330
|
-
filter: var(--interactive-filter);
|
|
331
|
-
}
|
|
332
|
-
.btn--primary:focus-visible {
|
|
333
|
-
background: var(--button-primary-hover-background, var(--accent-background));
|
|
334
|
-
filter: var(--interactive-filter);
|
|
335
|
-
outline: var(--button-primary-focus-outline, var(--outline));
|
|
336
|
-
}
|
|
337
|
-
|
|
338
|
-
.btn--default {
|
|
339
|
-
color: var(--button-color, var(--foreground));
|
|
340
|
-
fill: var(--button-color, var(--foreground));
|
|
341
|
-
background: var(--button-background, var(--background));
|
|
342
|
-
border: var(--button-border, var(--border));
|
|
343
|
-
border-radius: var(--button-border-radius, 6px);
|
|
344
|
-
font-weight: var(--button-font-weight, 500);
|
|
345
|
-
}
|
|
346
|
-
.btn--default:hover {
|
|
347
|
-
color: var(--button-color, var(--foreground));
|
|
348
|
-
fill: var(--button-color, var(--foreground));
|
|
349
|
-
background: var(--button-hover-background, var(--background));
|
|
350
|
-
filter: var(--interactive-filter);
|
|
351
|
-
}
|
|
352
|
-
.btn--default:focus-visible {
|
|
353
|
-
background: var(--button-hover-background, var(--background));
|
|
354
|
-
filter: var(--interactive-filter);
|
|
355
|
-
outline: var(--button-focus-outline, var(--outline));
|
|
356
|
-
}
|
|
357
|
-
`,MS=`
|
|
358
|
-
.success__position {
|
|
359
|
-
position: fixed;
|
|
360
|
-
inset: var(--dialog-inset);
|
|
361
|
-
padding: var(--page-margin);
|
|
362
|
-
z-index: var(--z-index);
|
|
363
|
-
}
|
|
364
|
-
.success__content {
|
|
365
|
-
background: var(--success-background, var(--background));
|
|
366
|
-
border: var(--success-border, var(--border));
|
|
367
|
-
border-radius: var(--success-border-radius, 1.7em/50%);
|
|
368
|
-
box-shadow: var(--success-box-shadow, var(--box-shadow));
|
|
369
|
-
font-weight: var(--success-font-weight, 600);
|
|
370
|
-
color: var(--success-color);
|
|
371
|
-
fill: var(--success-color);
|
|
372
|
-
padding: 12px 24px;
|
|
373
|
-
line-height: 1.75em;
|
|
374
|
-
|
|
375
|
-
display: grid;
|
|
376
|
-
align-items: center;
|
|
377
|
-
grid-auto-flow: column;
|
|
378
|
-
gap: 6px;
|
|
379
|
-
cursor: default;
|
|
380
|
-
}
|
|
381
|
-
|
|
382
|
-
.success__icon {
|
|
383
|
-
display: flex;
|
|
384
|
-
}
|
|
385
|
-
`;function AS(e){const t=ne.createElement("style");return t.textContent=`
|
|
386
|
-
:host {
|
|
387
|
-
--dialog-inset: var(--inset);
|
|
388
|
-
}
|
|
389
|
-
|
|
390
|
-
${kS}
|
|
391
|
-
${CS}
|
|
392
|
-
${RS}
|
|
393
|
-
${xS}
|
|
394
|
-
${MS}
|
|
395
|
-
`,e&&t.setAttribute("nonce",e),t}function NS(){const e=j().getUser(),t=ve().getUser(),n=br().getUser();return e&&Object.keys(e).length?e:t&&Object.keys(t).length?t:n}const OS=()=>({name:"FeedbackModal",setupOnce(){},createDialog:({options:e,screenshotIntegration:t,sendFeedback:n,shadow:r})=>{const s=r,o=e.useSentryUser,i=NS(),a=ne.createElement("div"),c=AS(e.styleNonce);let u="";const d={get el(){return a},appendToDom(){!s.contains(c)&&!s.contains(a)&&(s.appendChild(c),s.appendChild(a))},removeFromDom(){a.remove(),c.remove(),ne.body.style.overflow=u},open(){f(!0),e.onFormOpen?.(),C()?.emit("openFeedbackWidget"),u=ne.body.style.overflow,ne.body.style.overflow="hidden"},close(){f(!1),ne.body.style.overflow=u}},l=t?.createInput({h:Y,hooks:_S,dialog:d,options:e}),f=p=>{aS(Y(IS,{options:e,screenshotInput:l,showName:e.showName||e.isNameRequired,showEmail:e.showEmail||e.isEmailRequired,defaultName:o&&i?.[o.name]||"",defaultEmail:o&&i?.[o.email]||"",onFormClose:()=>{f(!1),e.onFormClose?.()},onSubmit:n,onSubmitSuccess:(h,m)=>{f(!1),e.onSubmitSuccess?.(h,m)},onSubmitError:h=>{e.onSubmitError?.(h)},onFormSubmitted:()=>{e.onFormSubmitted?.()},open:p}),a)};return d}});function LS({h:e}){return function(){return e("svg",{"data-test-id":"icon-close",viewBox:"0 0 16 16",fill:"#2B2233",height:"25px",width:"25px"},e("circle",{r:"7",cx:"8",cy:"8",fill:"white"}),e("path",{strokeWidth:"1.5",d:"M8,16a8,8,0,1,1,8-8A8,8,0,0,1,8,16ZM8,1.53A6.47,6.47,0,1,0,14.47,8,6.47,6.47,0,0,0,8,1.53Z"}),e("path",{strokeWidth:"1.5",d:"M5.34,11.41a.71.71,0,0,1-.53-.22.74.74,0,0,1,0-1.06l5.32-5.32a.75.75,0,0,1,1.06,1.06L5.87,11.19A.74.74,0,0,1,5.34,11.41Z"}),e("path",{strokeWidth:"1.5",d:"M10.66,11.41a.74.74,0,0,1-.53-.22L4.81,5.87A.75.75,0,0,1,5.87,4.81l5.32,5.32a.74.74,0,0,1,0,1.06A.71.71,0,0,1,10.66,11.41Z"}))}}function PS(e){const t=ne.createElement("style"),n="#1A141F",r="#302735";return t.textContent=`
|
|
396
|
-
.editor {
|
|
397
|
-
display: flex;
|
|
398
|
-
flex-grow: 1;
|
|
399
|
-
flex-direction: column;
|
|
400
|
-
}
|
|
401
|
-
|
|
402
|
-
.editor__image-container {
|
|
403
|
-
justify-items: center;
|
|
404
|
-
padding: 15px;
|
|
405
|
-
position: relative;
|
|
406
|
-
height: 100%;
|
|
407
|
-
border-radius: var(--menu-border-radius, 6px);
|
|
408
|
-
|
|
409
|
-
background-color: ${n};
|
|
410
|
-
background-image: repeating-linear-gradient(
|
|
411
|
-
-145deg,
|
|
412
|
-
transparent,
|
|
413
|
-
transparent 8px,
|
|
414
|
-
${n} 8px,
|
|
415
|
-
${n} 11px
|
|
416
|
-
),
|
|
417
|
-
repeating-linear-gradient(
|
|
418
|
-
-45deg,
|
|
419
|
-
transparent,
|
|
420
|
-
transparent 15px,
|
|
421
|
-
${r} 15px,
|
|
422
|
-
${r} 16px
|
|
423
|
-
);
|
|
424
|
-
}
|
|
425
|
-
|
|
426
|
-
.editor__canvas-container {
|
|
427
|
-
width: 100%;
|
|
428
|
-
height: 100%;
|
|
429
|
-
position: relative;
|
|
430
|
-
display: flex;
|
|
431
|
-
align-items: center;
|
|
432
|
-
justify-content: center;
|
|
433
|
-
}
|
|
434
|
-
|
|
435
|
-
.editor__canvas-container > * {
|
|
436
|
-
object-fit: contain;
|
|
437
|
-
position: absolute;
|
|
438
|
-
}
|
|
439
|
-
|
|
440
|
-
.editor__tool-container {
|
|
441
|
-
padding-top: 8px;
|
|
442
|
-
display: flex;
|
|
443
|
-
justify-content: center;
|
|
444
|
-
}
|
|
445
|
-
|
|
446
|
-
.editor__tool-bar {
|
|
447
|
-
display: flex;
|
|
448
|
-
gap: 8px;
|
|
449
|
-
}
|
|
450
|
-
|
|
451
|
-
.editor__tool {
|
|
452
|
-
display: flex;
|
|
453
|
-
padding: 8px 12px;
|
|
454
|
-
justify-content: center;
|
|
455
|
-
align-items: center;
|
|
456
|
-
border: var(--button-border, var(--border));
|
|
457
|
-
border-radius: var(--button-border-radius, 6px);
|
|
458
|
-
background: var(--button-background, var(--background));
|
|
459
|
-
color: var(--button-color, var(--foreground));
|
|
460
|
-
}
|
|
461
|
-
|
|
462
|
-
.editor__tool--active {
|
|
463
|
-
background: var(--button-primary-background, var(--accent-background));
|
|
464
|
-
color: var(--button-primary-color, var(--accent-foreground));
|
|
465
|
-
}
|
|
466
|
-
|
|
467
|
-
.editor__rect {
|
|
468
|
-
position: absolute;
|
|
469
|
-
z-index: 2;
|
|
470
|
-
}
|
|
471
|
-
|
|
472
|
-
.editor__rect button {
|
|
473
|
-
opacity: 0;
|
|
474
|
-
position: absolute;
|
|
475
|
-
top: -12px;
|
|
476
|
-
right: -12px;
|
|
477
|
-
cursor: pointer;
|
|
478
|
-
padding: 0;
|
|
479
|
-
z-index: 3;
|
|
480
|
-
border: none;
|
|
481
|
-
background: none;
|
|
482
|
-
}
|
|
483
|
-
|
|
484
|
-
.editor__rect:hover button {
|
|
485
|
-
opacity: 1;
|
|
486
|
-
}
|
|
487
|
-
`,e&&t.setAttribute("nonce",e),t}function DS({h:e}){return function({action:n,setAction:r}){return e("div",{class:"editor__tool-container"},e("div",{class:"editor__tool-bar"},e("button",{type:"button",class:`editor__tool ${n==="highlight"?"editor__tool--active":""}`,onClick:()=>{r(n==="highlight"?"":"highlight")}},"Highlight"),e("button",{type:"button",class:`editor__tool ${n==="hide"?"editor__tool--active":""}`,onClick:()=>{r(n==="hide"?"":"hide")}},"Hide")))}}function FS({hooks:e}){function t(){const[n,r]=e.useState(Ge.devicePixelRatio??1);return e.useEffect(()=>{const s=()=>{r(Ge.devicePixelRatio)},o=matchMedia(`(resolution: ${Ge.devicePixelRatio}dppx)`);return o.addEventListener("change",s),()=>{o.removeEventListener("change",s)}},[]),n}return function({onBeforeScreenshot:r,onScreenshot:s,onAfterScreenshot:o,onError:i}){const a=t();e.useEffect(()=>{(async()=>{r();const u=await Zn.mediaDevices.getDisplayMedia({video:{width:Ge.innerWidth*a,height:Ge.innerHeight*a},audio:!1,monitorTypeSurfaces:"exclude",preferCurrentTab:!0,selfBrowserSurface:"include",surfaceSwitching:"exclude"}),d=ne.createElement("video");await new Promise((l,f)=>{d.srcObject=u,d.onloadedmetadata=()=>{s(d,a),u.getTracks().forEach(p=>p.stop()),l()},d.play().catch(f)}),o()})().catch(i)},[])}}function $S(e,t,n){switch(e.type){case"highlight":{t.shadowColor="rgba(0, 0, 0, 0.7)",t.shadowBlur=50,t.fillStyle=n,t.fillRect(e.x-1,e.y-1,e.w+2,e.h+2),t.clearRect(e.x,e.y,e.w,e.h);break}case"hide":t.fillStyle="rgb(0, 0, 0)",t.fillRect(e.x,e.y,e.w,e.h);break}}function wt(e,t,n){if(!e)return;const r=e.getContext("2d",t);r&&n(e,r)}function Po(e,t){wt(e,{alpha:!0},(n,r)=>{r.drawImage(t,0,0,t.width,t.height,0,0,n.width,n.height)})}function Do(e,t,n){wt(e,{alpha:!0},(r,s)=>{n.length&&(s.fillStyle="rgba(0, 0, 0, 0.25)",s.fillRect(0,0,r.width,r.height)),n.forEach(o=>{$S(o,s,t)})})}function BS({h:e,hooks:t,outputBuffer:n,dialog:r,options:s}){const o=FS({hooks:t}),i=DS({h:e}),a=LS({h:e}),c={__html:PS(s.styleNonce).innerText},u=r.el.style,d=({screenshot:l})=>{const[f,p]=t.useState("highlight"),[h,m]=t.useState([]),g=t.useRef(null),y=t.useRef(null),b=t.useRef(null),P=t.useRef(null),[k,R]=t.useState(1),S=t.useMemo(()=>{const v=ne.getElementById(s.id);if(!v)return"white";const A=getComputedStyle(v);return A.getPropertyValue("--button-primary-background")||A.getPropertyValue("--accent-background")},[s.id]);t.useLayoutEffect(()=>{const v=()=>{const A=g.current;A&&(wt(l.canvas,{alpha:!1},W=>{const L=Math.min(A.clientWidth/W.width,A.clientHeight/W.height);R(L)}),(A.clientHeight===0||A.clientWidth===0)&&setTimeout(v,0))};return v(),Ge.addEventListener("resize",v),()=>{Ge.removeEventListener("resize",v)}},[l]);const w=t.useCallback((v,A)=>{wt(v,{alpha:!0},(W,L)=>{L.scale(A,A),W.width=l.canvas.width,W.height=l.canvas.height})},[l]);t.useEffect(()=>{w(y.current,l.dpi),Po(y.current,l.canvas)},[l]),t.useEffect(()=>{w(b.current,l.dpi),wt(b.current,{alpha:!0},(v,A)=>{A.clearRect(0,0,v.width,v.height)}),Do(b.current,S,h)},[h,S]),t.useEffect(()=>{w(n,l.dpi),Po(n,l.canvas),wt(ne.createElement("canvas"),{alpha:!0},(v,A)=>{A.scale(l.dpi,l.dpi),v.width=l.canvas.width,v.height=l.canvas.height,Do(v,S,h),Po(n,v)})},[h,l,S]);const M=v=>{if(!f||!P.current)return;const A=P.current.getBoundingClientRect(),W={type:f,x:v.offsetX/k,y:v.offsetY/k},L=(O,q)=>{const K=(q.clientX-A.x)/k,ue=(q.clientY-A.y)/k;return{type:O.type,x:Math.min(O.x,K),y:Math.min(O.y,ue),w:Math.abs(K-O.x),h:Math.abs(ue-O.y)}},x=O=>{wt(b.current,{alpha:!0},(q,K)=>{K.clearRect(0,0,q.width,q.height)}),Do(b.current,S,[...h,L(W,O)])},F=O=>{const q=L(W,O);q.w*k>=1&&q.h*k>=1&&m(K=>[...K,q]),ne.removeEventListener("mousemove",x),ne.removeEventListener("mouseup",F)};ne.addEventListener("mousemove",x),ne.addEventListener("mouseup",F)},E=t.useCallback(v=>A=>{A.preventDefault(),A.stopPropagation(),m(W=>{const L=[...W];return L.splice(v,1),L})},[]),I={width:`${l.canvas.width*k}px`,height:`${l.canvas.height*k}px`},D=v=>{v.stopPropagation()};return e("div",{class:"editor"},e("style",{nonce:s.styleNonce,dangerouslySetInnerHTML:c}),e("div",{class:"editor__image-container"},e("div",{class:"editor__canvas-container",ref:g},e("canvas",{ref:y,id:"background",style:I}),e("canvas",{ref:b,id:"foreground",style:I}),e("div",{ref:P,onMouseDown:M,style:I},h.map((v,A)=>e("div",{key:A,class:"editor__rect",style:{top:`${v.y*k}px`,left:`${v.x*k}px`,width:`${v.w*k}px`,height:`${v.h*k}px`}},e("button",{"aria-label":"Remove",onClick:E(A),onMouseDown:D,onMouseUp:D,type:"button"},e(a,null))))))),e(i,{action:f,setAction:p}))};return function({onError:f}){const[p,h]=t.useState();return o({onBeforeScreenshot:t.useCallback(()=>{u.display="none"},[]),onScreenshot:t.useCallback((m,g)=>{wt(ne.createElement("canvas"),{alpha:!1},(y,b)=>{b.scale(g,g),y.width=m.videoWidth,y.height=m.videoHeight,b.drawImage(m,0,0,y.width,y.height),h({canvas:y,dpi:g})}),n.width=m.videoWidth,n.height=m.videoHeight},[]),onAfterScreenshot:t.useCallback(()=>{u.display="block"},[]),onError:t.useCallback(m=>{u.display="block",f(m)},[])}),p?e(d,{screenshot:p}):e("div",null)}}const US=()=>({name:"FeedbackScreenshot",setupOnce(){},createInput:({h:e,hooks:t,dialog:n,options:r})=>{const s=ne.createElement("canvas");return{input:BS({h:e,hooks:t,outputBuffer:s,dialog:n,options:r}),value:async()=>{const o=await new Promise(i=>{s.toBlob(i,"image/png")});if(o)return{data:new Uint8Array(await o.arrayBuffer()),filename:"screenshot.png",contentType:"application/png"}}}}}),N=H;let Si=0;function Gd(){return Si>0}function HS(){Si++,setTimeout(()=>{Si--})}function Nn(e,t={}){function n(s){return typeof s=="function"}if(!n(e))return e;try{const s=e.__sentry_wrapped__;if(s)return typeof s=="function"?s:e;if(Wi(e))return e}catch{return e}const r=function(...s){try{const o=s.map(i=>Nn(i,t));return e.apply(this,o)}catch(o){throw HS(),Pe(i=>{i.addEventProcessor(a=>(t.mechanism&&(Qo(a,void 0),At(a,t.mechanism)),a.extra={...a.extra,arguments:s},a)),Lt(o)}),o}};try{for(const s in e)Object.prototype.hasOwnProperty.call(e,s)&&(r[s]=e[s])}catch{}fl(r,e),Oe(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return e.name}})}catch{}return r}function la(){const e=en(),{referrer:t}=N.document||{},{userAgent:n}=N.navigator||{},r={...t&&{Referer:t},...n&&{"User-Agent":n}};return{url:e,headers:r}}const WS={replayIntegration:"replay",replayCanvasIntegration:"replay-canvas",feedbackIntegration:"feedback",feedbackModalIntegration:"feedback-modal",feedbackScreenshotIntegration:"feedback-screenshot",captureConsoleIntegration:"captureconsole",contextLinesIntegration:"contextlines",linkedErrorsIntegration:"linkederrors",dedupeIntegration:"dedupe",extraErrorDataIntegration:"extraerrordata",graphqlClientIntegration:"graphqlclient",httpClientIntegration:"httpclient",reportingObserverIntegration:"reportingobserver",rewriteFramesIntegration:"rewriteframes",browserProfilingIntegration:"browserprofiling",moduleMetadataIntegration:"modulemetadata"},Jc=N;async function Vd(e,t){const n=WS[e],r=Jc.Sentry=Jc.Sentry||{};if(!n)throw new Error(`Cannot lazy load integration: ${e}`);const s=r[e];if(typeof s=="function"&&!("_isShim"in s))return s;const o=zS(n),i=N.document.createElement("script");i.src=o,i.crossOrigin="anonymous",i.referrerPolicy="strict-origin",t&&i.setAttribute("nonce",t);const a=new Promise((l,f)=>{i.addEventListener("load",()=>l()),i.addEventListener("error",f)}),c=N.document.currentScript,u=N.document.body||N.document.head||c?.parentElement;if(u)u.appendChild(i);else throw new Error(`Could not find parent element to insert lazy-loaded ${e} script`);try{await a}catch{throw new Error(`Error when loading integration: ${e}`)}const d=r[e];if(typeof d!="function")throw new Error(`Could not load integration: ${e}`);return d}function zS(e){const n=C()?.getOptions()?.cdnBaseUrl||"https://browser.sentry-cdn.com";return new URL(`/${ct}/${e}.min.js`,n).toString()}const jS=Pd({lazyLoadIntegration:Vd}),Zc=Pd({getModalIntegration:()=>OS,getScreenshotIntegration:()=>US});function Wn(e,t,n,r){li({level:e,message:t,attributes:n,severityNumber:r})}function qS(e,t){Wn("trace",e,t)}function GS(e,t){Wn("debug",e,t)}function VS(e,t){Wn("info",e,t)}function YS(e,t){Wn("warn",e,t)}function XS(e,t){Wn("error",e,t)}function KS(e,t){Wn("fatal",e,t)}const JS=Object.freeze(Object.defineProperty({__proto__:null,debug:GS,error:XS,fatal:KS,fmt:zg,info:VS,trace:qS,warn:YS},Symbol.toStringTag,{value:"Module"}));function ro(e,t){const n=da(e,t),r={type:nb(t),value:rb(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function ZS(e,t,n,r){const o=C()?.getOptions().normalizeDepth,i=ib(t),a={__serialized__:$l(t,o)};if(i)return{exception:{values:[ro(e,i)]},extra:a};const c={exception:{values:[{type:Xs(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:sb(t,{isUnhandledRejection:r})}]},extra:a};if(n){const u=da(e,n);u.length&&(c.exception.values[0].stacktrace={frames:u})}return c}function Fo(e,t){return{exception:{values:[ro(e,t)]}}}function da(e,t){const n=t.stacktrace||t.stack||"",r=eb(t),s=tb(t);try{return e(n,r,s)}catch{}return[]}const QS=/Minified React error #\d+;/i;function eb(e){return e&&QS.test(e.message)?1:0}function tb(e){return typeof e.framesToPop=="number"?e.framesToPop:0}function Yd(e){return typeof WebAssembly<"u"&&typeof WebAssembly.Exception<"u"?e instanceof WebAssembly.Exception:!1}function nb(e){const t=e?.name;return!t&&Yd(e)?e.message&&Array.isArray(e.message)&&e.message.length==2?e.message[0]:"WebAssembly.Exception":t}function rb(e){const t=e?.message;return Yd(e)?Array.isArray(e.message)&&e.message.length==2?e.message[1]:"wasm exception":t?t.error&&typeof t.error.message=="string"?t.error.message:t:"No error message"}function Xd(e,t,n,r){const s=n?.syntheticException||void 0,o=fa(e,t,s,r);return At(o),o.level="error",n?.event_id&&(o.event_id=n.event_id),gt(o)}function Kd(e,t,n="info",r,s){const o=r?.syntheticException||void 0,i=bi(e,t,o,s);return i.level=n,r?.event_id&&(i.event_id=r.event_id),gt(i)}function fa(e,t,n,r,s){let o;if(cl(t)&&t.error)return Fo(e,t.error);if(Ya(t)||mh(t)){const i=t;if("stack"in t)o=Fo(e,t);else{const a=i.name||(Ya(i)?"DOMError":"DOMException"),c=i.message?`${a}: ${i.message}`:a;o=bi(e,c,n,r),Qo(o,c)}return"code"in i&&(o.tags={...o.tags,"DOMException.code":`${i.code}`}),o}return ut(t)?Fo(e,t):ft(t)||Xs(t)?(o=ZS(e,t,n,s),At(o,{synthetic:!0}),o):(o=bi(e,t,n,r),Qo(o,`${t}`),At(o,{synthetic:!0}),o)}function bi(e,t,n,r){const s={};if(r&&n){const o=da(e,n);o.length&&(s.exception={values:[{value:t,stacktrace:{frames:o}}]}),At(s,{synthetic:!0})}if(Ys(t)){const{__sentry_template_string__:o,__sentry_template_values__:i}=t;return s.logentry={message:o,params:i},s}return s.message=t,s}function sb(e,{isUnhandledRejection:t}){const n=vh(e),r=t?"promise rejection":"exception";return cl(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:Xs(e)?`Event \`${ob(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function ob(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function ib(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)){const n=e[t];if(n instanceof Error)return n}}const ab=5e3;class Jd extends bg{constructor(t){const n=cb(t),r=N.SENTRY_SDK_SOURCE||Cy();pd(n,"browser",["browser"],r),super(n);const{sendDefaultPii:s,sendClientReports:o,enableLogs:i,_experiments:a}=this._options,c=i??a?.enableLogs;N.document&&(o||c)&&N.document.addEventListener("visibilitychange",()=>{N.document.visibilityState==="hidden"&&(o&&this._flushOutcomes(),c&&is(this))}),c&&(this.on("flush",()=>{is(this)}),this.on("afterCaptureLog",()=>{this._logFlushIdleTimeout&&clearTimeout(this._logFlushIdleTimeout),this._logFlushIdleTimeout=setTimeout(()=>{is(this)},ab)})),s&&(this.on("postprocessEvent",jg),this.on("beforeSendSession",qg))}eventFromException(t,n){return Xd(this._options.stackParser,t,n,this._options.attachStacktrace)}eventFromMessage(t,n="info",r){return Kd(this._options.stackParser,t,n,r,this._options.attachStacktrace)}_prepareEvent(t,n,r,s){return t.platform=t.platform||"javascript",super._prepareEvent(t,n,r,s)}}function cb(e){return{release:typeof __SENTRY_RELEASE__=="string"?__SENTRY_RELEASE__:N.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...e}}const On=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,G=H,ub=(e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good",zn=(e,t,n,r)=>{let s,o;return i=>{t.value>=0&&(i||r)&&(o=t.value-(s??0),(o||s===void 0)&&(s=t.value,t.delta=o,t.rating=ub(t.value,n),e(t)))}},lb=()=>`v5-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,Rr=(e=!0)=>{const t=G.performance?.getEntriesByType?.("navigation")[0];if(!e||t&&t.responseStart>0&&t.responseStart<performance.now())return t},jn=()=>Rr()?.activationStart??0,qn=(e,t=-1)=>{const n=Rr();let r="navigate";return n&&(G.document?.prerendering||jn()>0?r="prerender":G.document?.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:e,value:t,rating:"good",delta:0,entries:[],id:lb(),navigationType:r}},$o=new WeakMap;function pa(e,t){return $o.get(e)||$o.set(e,new t),$o.get(e)}class Ns{constructor(){Ns.prototype.__init.call(this),Ns.prototype.__init2.call(this)}__init(){this._sessionValue=0}__init2(){this._sessionEntries=[]}_processEntry(t){if(t.hadRecentInput)return;const n=this._sessionEntries[0],r=this._sessionEntries[this._sessionEntries.length-1];this._sessionValue&&n&&r&&t.startTime-r.startTime<1e3&&t.startTime-n.startTime<5e3?(this._sessionValue+=t.value,this._sessionEntries.push(t)):(this._sessionValue=t.value,this._sessionEntries=[t]),this._onAfterProcessingUnexpectedShift?.(t)}}const on=(e,t,n={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const r=new PerformanceObserver(s=>{Promise.resolve().then(()=>{t(s.getEntries())})});return r.observe({type:e,buffered:!0,...n}),r}}catch{}},so=e=>{let t=!1;return()=>{t||(e(),t=!0)}};let er=-1;const db=()=>G.document?.visibilityState==="hidden"&&!G.document?.prerendering?0:1/0,Os=e=>{G.document.visibilityState==="hidden"&&er>-1&&(er=e.type==="visibilitychange"?e.timeStamp:0,pb())},fb=()=>{addEventListener("visibilitychange",Os,!0),addEventListener("prerenderingchange",Os,!0)},pb=()=>{removeEventListener("visibilitychange",Os,!0),removeEventListener("prerenderingchange",Os,!0)},oo=()=>{if(G.document&&er<0){const e=jn();er=(G.document.prerendering?void 0:globalThis.performance.getEntriesByType("visibility-state").filter(n=>n.name==="hidden"&&n.startTime>e)[0]?.startTime)??db(),fb()}return{get firstHiddenTime(){return er}}},xr=e=>{G.document?.prerendering?addEventListener("prerenderingchange",()=>e(),!0):e()},hb=[1800,3e3],mb=(e,t={})=>{xr(()=>{const n=oo(),r=qn("FCP");let s;const i=on("paint",a=>{for(const c of a)c.name==="first-contentful-paint"&&(i.disconnect(),c.startTime<n.firstHiddenTime&&(r.value=Math.max(c.startTime-jn(),0),r.entries.push(c),s(!0)))});i&&(s=zn(e,r,hb,t.reportAllChanges))})},gb=[.1,.25],_b=(e,t={})=>{mb(so(()=>{const n=qn("CLS",0);let r;const s=pa(t,Ns),o=a=>{for(const c of a)s._processEntry(c);s._sessionValue>n.value&&(n.value=s._sessionValue,n.entries=s._sessionEntries,r())},i=on("layout-shift",o);i&&(r=zn(e,n,gb,t.reportAllChanges),G.document?.addEventListener("visibilitychange",()=>{G.document?.visibilityState==="hidden"&&(o(i.takeRecords()),r(!0))}),G?.setTimeout?.(r))}))},io=e=>{const t=n=>{(n.type==="pagehide"||G.document?.visibilityState==="hidden")&&e(n)};G.document&&(addEventListener("visibilitychange",t,!0),addEventListener("pagehide",t,!0))},yb=[100,300],Sb=(e,t={})=>{xr(()=>{const n=oo(),r=qn("FID");let s;const o=c=>{c.startTime<n.firstHiddenTime&&(r.value=c.processingStart-c.startTime,r.entries.push(c),s(!0))},i=c=>{c.forEach(o)},a=on("first-input",i);s=zn(e,r,yb,t.reportAllChanges),a&&io(so(()=>{i(a.takeRecords()),a.disconnect()}))})};let Zd=0,Bo=1/0,jr=0;const bb=e=>{e.forEach(t=>{t.interactionId&&(Bo=Math.min(Bo,t.interactionId),jr=Math.max(jr,t.interactionId),Zd=jr?(jr-Bo)/7+1:0)})};let Ei;const Qd=()=>Ei?Zd:performance.interactionCount||0,Eb=()=>{"interactionCount"in performance||Ei||(Ei=on("event",bb,{type:"event",buffered:!0,durationThreshold:0}))},Uo=10;let ef=0;const vb=()=>Qd()-ef;class Ls{constructor(){Ls.prototype.__init.call(this),Ls.prototype.__init2.call(this)}__init(){this._longestInteractionList=[]}__init2(){this._longestInteractionMap=new Map}_resetInteractions(){ef=Qd(),this._longestInteractionList.length=0,this._longestInteractionMap.clear()}_estimateP98LongestInteraction(){const t=Math.min(this._longestInteractionList.length-1,Math.floor(vb()/50));return this._longestInteractionList[t]}_processEntry(t){if(this._onBeforeProcessingEntry?.(t),!(t.interactionId||t.entryType==="first-input"))return;const n=this._longestInteractionList.at(-1);let r=this._longestInteractionMap.get(t.interactionId);if(r||this._longestInteractionList.length<Uo||t.duration>n._latency){if(r?t.duration>r._latency?(r.entries=[t],r._latency=t.duration):t.duration===r._latency&&t.startTime===r.entries[0].startTime&&r.entries.push(t):(r={id:t.interactionId,entries:[t],_latency:t.duration},this._longestInteractionMap.set(r.id,r),this._longestInteractionList.push(r)),this._longestInteractionList.sort((s,o)=>o._latency-s._latency),this._longestInteractionList.length>Uo){const s=this._longestInteractionList.splice(Uo);for(const o of s)this._longestInteractionMap.delete(o.id)}this._onAfterProcessingINPCandidate?.(r)}}}const tf=e=>{const t=G.requestIdleCallback||G.setTimeout;G.document?.visibilityState==="hidden"?e():(e=so(e),t(e),io(e))},wb=[200,500],Tb=40,Ib=(e,t={})=>{globalThis.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype&&xr(()=>{Eb();const n=qn("INP");let r;const s=pa(t,Ls),o=a=>{tf(()=>{for(const u of a)s._processEntry(u);const c=s._estimateP98LongestInteraction();c&&c._latency!==n.value&&(n.value=c._latency,n.entries=c.entries,r())})},i=on("event",o,{durationThreshold:t.durationThreshold??Tb});r=zn(e,n,wb,t.reportAllChanges),i&&(i.observe({type:"first-input",buffered:!0}),io(()=>{o(i.takeRecords()),r(!0)}))})};class kb{_processEntry(t){this._onBeforeProcessingEntry?.(t)}}const Cb=[2500,4e3],Rb=(e,t={})=>{xr(()=>{const n=oo(),r=qn("LCP");let s;const o=pa(t,kb),i=c=>{t.reportAllChanges||(c=c.slice(-1));for(const u of c)o._processEntry(u),u.startTime<n.firstHiddenTime&&(r.value=Math.max(u.startTime-jn(),0),r.entries=[u],s())},a=on("largest-contentful-paint",i);if(a){s=zn(e,r,Cb,t.reportAllChanges);const c=so(()=>{i(a.takeRecords()),a.disconnect(),s(!0)});for(const u of["keydown","click","visibilitychange"])G.document&&addEventListener(u,()=>tf(c),{capture:!0,once:!0})}})},xb=[800,1800],vi=e=>{G.document?.prerendering?xr(()=>vi(e)):G.document?.readyState!=="complete"?addEventListener("load",()=>vi(e),!0):setTimeout(e)},Mb=(e,t={})=>{const n=qn("TTFB"),r=zn(e,n,xb,t.reportAllChanges);vi(()=>{const s=Rr();s&&(n.value=Math.max(s.responseStart-jn(),0),n.entries=[s],r(!0))})},tr={},Ps={};let nf,rf,sf,of,af;function ha(e,t=!1){return Mr("cls",e,Nb,nf,t)}function ma(e,t=!1){return Mr("lcp",e,Lb,sf,t)}function cf(e){return Mr("fid",e,Ob,rf)}function Ab(e){return Mr("ttfb",e,Pb,of)}function uf(e){return Mr("inp",e,Db,af)}function Qt(e,t){return lf(e,t),Ps[e]||(Fb(e),Ps[e]=!0),df(e,t)}function Gn(e,t){const n=tr[e];if(n?.length)for(const r of n)try{r(t)}catch(s){On&&_.error(`Error while triggering instrumentation handler.
|
|
488
|
-
Type: ${e}
|
|
489
|
-
Name: ${dt(r)}
|
|
490
|
-
Error:`,s)}}function Nb(){return _b(e=>{Gn("cls",{metric:e}),nf=e},{reportAllChanges:!0})}function Ob(){return Sb(e=>{Gn("fid",{metric:e}),rf=e})}function Lb(){return Rb(e=>{Gn("lcp",{metric:e}),sf=e},{reportAllChanges:!0})}function Pb(){return Mb(e=>{Gn("ttfb",{metric:e}),of=e})}function Db(){return Ib(e=>{Gn("inp",{metric:e}),af=e})}function Mr(e,t,n,r,s=!1){lf(e,t);let o;return Ps[e]||(o=n(),Ps[e]=!0),r&&t({metric:r}),df(e,t,s?o:void 0)}function Fb(e){const t={};e==="event"&&(t.durationThreshold=0),on(e,n=>{Gn(e,{entries:n})},t)}function lf(e,t){tr[e]=tr[e]||[],tr[e].push(t)}function df(e,t,n){return()=>{n&&n();const r=tr[e];if(!r)return;const s=r.indexOf(t);s!==-1&&r.splice(s,1)}}function $b(e){return"duration"in e}function Ho(e){return typeof e=="number"&&isFinite(e)}function yt(e,t,n,{...r}){const s=U(e).start_timestamp;return s&&s>t&&typeof e.updateStartTime=="function"&&e.updateStartTime(t),Zt(e,()=>{const o=We({startTime:t,...r});return o&&o.end(n),o})}function ga(e){const t=C();if(!t)return;const{name:n,transaction:r,attributes:s,startTime:o}=e,{release:i,environment:a,sendDefaultPii:c}=t.getOptions(),d=t.getIntegrationByName("Replay")?.getReplayId(),l=j(),f=l.getUser(),p=f!==void 0?f.email||f.id||f.ip_address:void 0;let h;try{h=l.getScopeData().contexts.profile.profile_id}catch{}const m={release:i,environment:a,user:p||void 0,profile_id:h||void 0,replay_id:d||void 0,transaction:r,"user_agent.original":G.navigator?.userAgent,"client.address":c?"{{auto}}":void 0,...s};return We({name:n,attributes:m,startTime:o,experimental:{standalone:!0}})}function ao(){return G.addEventListener&&G.performance}function ce(e){return e/1e3}function ff(e){let t="unknown",n="unknown",r="";for(const s of e){if(s==="/"){[t,n]=e.split("/");break}if(!isNaN(Number(s))){t=r==="h"?"http":r,n=e.split(r)[1];break}r+=s}return r===e&&(t=r),{name:t,version:n}}function pf(e){try{return PerformanceObserver.supportedEntryTypes.includes(e)}catch{return!1}}function hf(e,t){let n,r=!1;function s(a){!r&&n&&t(a,n),r=!0}io(()=>{s("pagehide")});const o=e.on("beforeStartNavigationSpan",(a,c)=>{c?.isRedirect||(s("navigation"),o?.(),i?.())}),i=e.on("afterStartPageLoadSpan",a=>{n=a.spanContext().spanId,i?.()})}function Bb(e){let t=0,n;if(!pf("layout-shift"))return;const r=ha(({metric:s})=>{const o=s.entries[s.entries.length-1];o&&(t=s.value,n=o)},!0);hf(e,(s,o)=>{Ub(t,n,o,s),r()})}function Ub(e,t,n,r){On&&_.log(`Sending CLS span (${e})`);const s=ce((Ce()||0)+(t?.startTime||0)),o=j().getScopeData().transactionName,i=t?ze(t.sources[0]?.node):"Layout shift",a={[J]:"auto.http.browser.cls",[ye]:"ui.webvital.cls",[Hn]:t?.duration||0,"sentry.pageload.span_id":n,"sentry.report_event":r};t?.sources&&t.sources.forEach((u,d)=>{a[`cls.source.${d+1}`]=ze(u.node)});const c=ga({name:i,transaction:o,attributes:a,startTime:s});c&&(c.addEvent("cls",{[Er]:"",[vr]:e}),c.end(s))}function Hb(e){let t=0,n;if(!pf("largest-contentful-paint"))return;const r=ma(({metric:s})=>{const o=s.entries[s.entries.length-1];o&&(t=s.value,n=o)},!0);hf(e,(s,o)=>{Wb(t,n,o,s),r()})}function Wb(e,t,n,r){On&&_.log(`Sending LCP span (${e})`);const s=ce((Ce()||0)+(t?.startTime||0)),o=j().getScopeData().transactionName,i=t?ze(t.element):"Largest contentful paint",a={[J]:"auto.http.browser.lcp",[ye]:"ui.webvital.lcp",[Hn]:0,"sentry.pageload.span_id":n,"sentry.report_event":r};t&&(t.element&&(a["lcp.element"]=ze(t.element)),t.id&&(a["lcp.id"]=t.id),t.url&&(a["lcp.url"]=t.url.trim().slice(0,200)),t.loadTime!=null&&(a["lcp.loadTime"]=t.loadTime),t.renderTime!=null&&(a["lcp.renderTime"]=t.renderTime),t.size!=null&&(a["lcp.size"]=t.size));const c=ga({name:i,transaction:o,attributes:a,startTime:s});c&&(c.addEvent("lcp",{[Er]:"millisecond",[vr]:e}),c.end(s))}const zb=2147483647;let Qc=0,Ie={},Le,Ds;function jb({recordClsStandaloneSpans:e,recordLcpStandaloneSpans:t,client:n}){const r=ao();if(r&&Ce()){r.mark&&G.performance.mark("sentry-tracing-init");const s=Kb(),o=t?Hb(n):Xb(),i=Jb(),a=e?Bb(n):Yb();return()=>{s(),o?.(),i(),a?.()}}return()=>{}}function qb(){Qt("longtask",({entries:e})=>{const t=me();if(!t)return;const{op:n,start_timestamp:r}=U(t);for(const s of e){const o=ce(Ce()+s.startTime),i=ce(s.duration);n==="navigation"&&r&&o<r||yt(t,o,o+i,{name:"Main UI thread blocked",op:"ui.long-task",attributes:{[J]:"auto.ui.browser.metrics"}})}})}function Gb(){new PerformanceObserver(t=>{const n=me();if(n)for(const r of t.getEntries()){if(!r.scripts[0])continue;const s=ce(Ce()+r.startTime),{start_timestamp:o,op:i}=U(n);if(i==="navigation"&&o&&s<o)continue;const a=ce(r.duration),c={[J]:"auto.ui.browser.metrics"},u=r.scripts[0],{invoker:d,invokerType:l,sourceURL:f,sourceFunctionName:p,sourceCharPosition:h}=u;c["browser.script.invoker"]=d,c["browser.script.invoker_type"]=l,f&&(c["code.filepath"]=f),p&&(c["code.function"]=p),h!==-1&&(c["browser.script.source_char_position"]=h),yt(n,s,s+a,{name:"Main UI thread blocked",op:"ui.long-animation-frame",attributes:c})}}).observe({type:"long-animation-frame",buffered:!0})}function Vb(){Qt("event",({entries:e})=>{const t=me();if(t){for(const n of e)if(n.name==="click"){const r=ce(Ce()+n.startTime),s=ce(n.duration),o={name:ze(n.target),op:`ui.interaction.${n.name}`,startTime:r,attributes:{[J]:"auto.ui.browser.metrics"}},i=dl(n.target);i&&(o.attributes["ui.component_name"]=i),yt(t,r,r+s,o)}}})}function Yb(){return ha(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(Ie.cls={value:e.value,unit:""},Ds=t)},!0)}function Xb(){return ma(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(Ie.lcp={value:e.value,unit:"millisecond"},Le=t)},!0)}function Kb(){return cf(({metric:e})=>{const t=e.entries[e.entries.length-1];if(!t)return;const n=ce(Ce()),r=ce(t.startTime);Ie.fid={value:e.value,unit:"millisecond"},Ie["mark.fid"]={value:n+r,unit:"second"}})}function Jb(){return Ab(({metric:e})=>{e.entries[e.entries.length-1]&&(Ie.ttfb={value:e.value,unit:"millisecond"})})}function Zb(e,t){const n=ao(),r=Ce();if(!n?.getEntries||!r)return;const s=ce(r),o=n.getEntries(),{op:i,start_timestamp:a}=U(e);if(o.slice(Qc).forEach(c=>{const u=ce(c.startTime),d=ce(Math.max(0,c.duration));if(!(i==="navigation"&&a&&s+u<a))switch(c.entryType){case"navigation":{tE(e,c,s);break}case"mark":case"paint":case"measure":{Qb(e,c,u,d,s,t.ignorePerformanceApiSpans);const l=oo(),f=c.startTime<l.firstHiddenTime;c.name==="first-paint"&&f&&(Ie.fp={value:c.startTime,unit:"millisecond"}),c.name==="first-contentful-paint"&&f&&(Ie.fcp={value:c.startTime,unit:"millisecond"});break}case"resource":{sE(e,c,c.name,u,d,s,t.ignoreResourceSpans);break}}}),Qc=Math.max(o.length-1,0),oE(e),i==="pageload"){aE(Ie);const c=Ie["mark.fid"];c&&Ie.fid&&(yt(e,c.value,c.value+ce(Ie.fid.value),{name:"first input delay",op:"ui.action",attributes:{[J]:"auto.ui.browser.metrics"}}),delete Ie["mark.fid"]),t.recordClsOnPageloadSpan||delete Ie.cls,t.recordLcpOnPageloadSpan||delete Ie.lcp,Object.entries(Ie).forEach(([u,d])=>{Ul(u,d.value,d.unit)}),e.setAttribute("performance.timeOrigin",s),e.setAttribute("performance.activationStart",jn()),iE(e,t)}Le=void 0,Ds=void 0,Ie={}}function Qb(e,t,n,r,s,o){if(["mark","measure"].includes(t.entryType)&&Ye(t.name,o))return;const i=Rr(!1),a=ce(i?i.requestStart:0),c=s+Math.max(n,a),u=s+n,d=u+r,l={[J]:"auto.resource.browser.metrics"};c!==u&&(l["sentry.browser.measure_happened_before_request"]=!0,l["sentry.browser.measure_start_time"]=c),eE(l,t),c<=d&&yt(e,c,d,{name:t.name,op:t.entryType,attributes:l})}function eE(e,t){try{const n=t.detail;if(!n)return;if(typeof n=="object"){for(const[r,s]of Object.entries(n))if(s&&wn(s))e[`sentry.browser.measure.detail.${r}`]=s;else if(s!==void 0)try{e[`sentry.browser.measure.detail.${r}`]=JSON.stringify(s)}catch{}return}if(wn(n)){e["sentry.browser.measure.detail"]=n;return}try{e["sentry.browser.measure.detail"]=JSON.stringify(n)}catch{}}catch{}}function tE(e,t,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(r=>{qr(e,t,r,n)}),qr(e,t,"secureConnection",n,"TLS/SSL"),qr(e,t,"fetch",n,"cache"),qr(e,t,"domainLookup",n,"DNS"),rE(e,t,n)}function qr(e,t,n,r,s=n){const o=nE(n),i=t[o],a=t[`${n}Start`];!a||!i||yt(e,r+ce(a),r+ce(i),{op:`browser.${s}`,name:t.name,attributes:{[J]:"auto.ui.browser.metrics",...n==="redirect"&&t.redirectCount!=null?{"http.redirect_count":t.redirectCount}:{}}})}function nE(e){return e==="secureConnection"?"connectEnd":e==="fetch"?"domainLookupStart":`${e}End`}function rE(e,t,n){const r=n+ce(t.requestStart),s=n+ce(t.responseEnd),o=n+ce(t.responseStart);t.responseEnd&&(yt(e,r,s,{op:"browser.request",name:t.name,attributes:{[J]:"auto.ui.browser.metrics"}}),yt(e,o,s,{op:"browser.response",name:t.name,attributes:{[J]:"auto.ui.browser.metrics"}}))}function sE(e,t,n,r,s,o,i){if(t.initiatorType==="xmlhttprequest"||t.initiatorType==="fetch")return;const a=t.initiatorType?`resource.${t.initiatorType}`:"resource.other";if(i?.includes(a))return;const c=Yt(n),u={[J]:"auto.resource.browser.metrics"};Wo(u,t,"transferSize","http.response_transfer_size"),Wo(u,t,"encodedBodySize","http.response_content_length"),Wo(u,t,"decodedBodySize","http.decoded_response_content_length");const d=t.deliveryType;d!=null&&(u["http.response_delivery_type"]=d);const l=t.renderBlockingStatus;if(l&&(u["resource.render_blocking_status"]=l),c.protocol&&(u["url.scheme"]=c.protocol.split(":").pop()),c.host&&(u["server.address"]=c.host),u["url.same_origin"]=n.includes(G.location.origin),t.nextHopProtocol!=null){const{name:h,version:m}=ff(t.nextHopProtocol);u["network.protocol.name"]=h,u["network.protocol.version"]=m}const f=o+r,p=f+s;yt(e,f,p,{name:n.replace(G.location.origin,""),op:a,attributes:u})}function oE(e){const t=G.navigator;if(!t)return;const n=t.connection;n&&(n.effectiveType&&e.setAttribute("effectiveConnectionType",n.effectiveType),n.type&&e.setAttribute("connectionType",n.type),Ho(n.rtt)&&(Ie["connection.rtt"]={value:n.rtt,unit:"millisecond"})),Ho(t.deviceMemory)&&e.setAttribute("deviceMemory",`${t.deviceMemory} GB`),Ho(t.hardwareConcurrency)&&e.setAttribute("hardwareConcurrency",String(t.hardwareConcurrency))}function iE(e,t){Le&&t.recordLcpOnPageloadSpan&&(Le.element&&e.setAttribute("lcp.element",ze(Le.element)),Le.id&&e.setAttribute("lcp.id",Le.id),Le.url&&e.setAttribute("lcp.url",Le.url.trim().slice(0,200)),Le.loadTime!=null&&e.setAttribute("lcp.loadTime",Le.loadTime),Le.renderTime!=null&&e.setAttribute("lcp.renderTime",Le.renderTime),e.setAttribute("lcp.size",Le.size)),Ds?.sources&&t.recordClsOnPageloadSpan&&Ds.sources.forEach((n,r)=>e.setAttribute(`cls.source.${r+1}`,ze(n.node)))}function Wo(e,t,n,r){const s=t[n];s!=null&&s<zb&&(e[r]=s)}function aE(e){const t=Rr(!1);if(!t)return;const{responseStart:n,requestStart:r}=t;r<=n&&(e["ttfb.requestTime"]={value:n-r,unit:"millisecond"})}function cE(){return ao()&&Ce()?Qt("element",uE):()=>{}}const uE=({entries:e})=>{const t=me(),n=t?_e(t):void 0,r=n?U(n).description:j().getScopeData().transactionName;e.forEach(s=>{const o=s;if(!o.identifier)return;const i=o.name,a=o.renderTime,c=o.loadTime,[u,d]=c?[ce(c),"load-time"]:a?[ce(a),"render-time"]:[de(),"entry-emission"],l=i==="image-paint"?ce(Math.max(0,(a??0)-(c??0))):0,f={[J]:"auto.ui.browser.elementtiming",[ye]:"ui.elementtiming",[ae]:"component","sentry.span_start_time_source":d,"sentry.transaction_name":r,"element.id":o.id,"element.type":o.element?.tagName?.toLowerCase()||"unknown","element.size":o.naturalWidth&&o.naturalHeight?`${o.naturalWidth}x${o.naturalHeight}`:void 0,"element.render_time":a,"element.load_time":c,"element.url":o.url||void 0,"element.identifier":o.identifier,"element.paint_type":i};Qs({name:`element[${o.identifier}]`,attributes:f,startTime:u,onlyIfParent:!0},p=>{p.end(u+l)})})},lE=1e3;let eu,wi,Ti;function mf(e){const t="dom";Dt(t,e),Ft(t,dE)}function dE(){if(!G.document)return;const e=He.bind(null,"dom"),t=tu(e,!0);G.document.addEventListener("click",t,!1),G.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(n=>{const s=G[n]?.prototype;s?.hasOwnProperty?.("addEventListener")&&(Ae(s,"addEventListener",function(o){return function(i,a,c){if(i==="click"||i=="keypress")try{const u=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},d=u[i]=u[i]||{refCount:0};if(!d.handler){const l=tu(e);d.handler=l,o.call(this,i,l,c)}d.refCount++}catch{}return o.call(this,i,a,c)}}),Ae(s,"removeEventListener",function(o){return function(i,a,c){if(i==="click"||i=="keypress")try{const u=this.__sentry_instrumentation_handlers__||{},d=u[i];d&&(d.refCount--,d.refCount<=0&&(o.call(this,i,d.handler,c),d.handler=void 0,delete u[i]),Object.keys(u).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return o.call(this,i,a,c)}}))})}function fE(e){if(e.type!==wi)return!1;try{if(!e.target||e.target._sentryId!==Ti)return!1}catch{}return!0}function pE(e,t){return e!=="keypress"?!1:t?.tagName?!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable):!0}function tu(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=hE(n);if(pE(n.type,r))return;Oe(n,"_sentryCaptured",!0),r&&!r._sentryId&&Oe(r,"_sentryId",Ne());const s=n.type==="keypress"?"input":n.type;fE(n)||(e({event:n,name:s,global:t}),wi=n.type,Ti=r?r._sentryId:void 0),clearTimeout(eu),eu=G.setTimeout(()=>{Ti=void 0,wi=void 0},lE)}}function hE(e){try{return e.target}catch{return null}}let Gr;function co(e){const t="history";Dt(t,e),Ft(t,mE)}function mE(){if(G.addEventListener("popstate",()=>{const t=G.location.href,n=Gr;if(Gr=t,n===t)return;He("history",{from:n,to:t})}),!yy())return;function e(t){return function(...n){const r=n.length>2?n[2]:void 0;if(r){const s=Gr,o=gE(String(r));if(Gr=o,s===o)return t.apply(this,n);He("history",{from:s,to:o})}return t.apply(this,n)}}Ae(G.history,"pushState",e),Ae(G.history,"replaceState",e)}function gE(e){try{return new URL(e,G.location.origin).toString()}catch{return e}}const fs={};function _a(e){const t=fs[e];if(t)return t;let n=G[e];if(fi(n))return fs[e]=n.bind(G);const r=G.document;if(r&&typeof r.createElement=="function")try{const s=r.createElement("iframe");s.hidden=!0,r.head.appendChild(s);const o=s.contentWindow;o?.[e]&&(n=o[e]),r.head.removeChild(s)}catch(s){On&&_.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,s)}return n&&(fs[e]=n.bind(G))}function nu(e){fs[e]=void 0}function Ar(...e){return _a("setTimeout")(...e)}const at="__sentry_xhr_v3__";function ya(e){const t="xhr";Dt(t,e),Ft(t,_E)}function _E(){if(!G.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(t,n,r){const s=new Error,o=de()*1e3,i=Ve(r[0])?r[0].toUpperCase():void 0,a=yE(r[1]);if(!i||!a)return t.apply(n,r);n[at]={method:i,url:a,request_headers:{}},i==="POST"&&a.match(/sentry_key/)&&(n.__sentry_own_request__=!0);const c=()=>{const u=n[at];if(u&&n.readyState===4){try{u.status_code=n.status}catch{}const d={endTimestamp:de()*1e3,startTimestamp:o,xhr:n,virtualError:s};He("xhr",d)}};return"onreadystatechange"in n&&typeof n.onreadystatechange=="function"?n.onreadystatechange=new Proxy(n.onreadystatechange,{apply(u,d,l){return c(),u.apply(d,l)}}):n.addEventListener("readystatechange",c),n.setRequestHeader=new Proxy(n.setRequestHeader,{apply(u,d,l){const[f,p]=l,h=d[at];return h&&Ve(f)&&Ve(p)&&(h.request_headers[f.toLowerCase()]=p),u.apply(d,l)}}),t.apply(n,r)}}),e.send=new Proxy(e.send,{apply(t,n,r){const s=n[at];if(!s)return t.apply(n,r);r[0]!==void 0&&(s.body=r[0]);const o={startTimestamp:de()*1e3,xhr:n};return He("xhr",o),t.apply(n,r)}})}function yE(e){if(Ve(e))return e;try{return e.toString()}catch{}}function gf(e){return new URLSearchParams(e).toString()}function Fs(e,t=_){try{if(typeof e=="string")return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[gf(e)];if(!e)return[void 0]}catch(n){return On&&t.error(n,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return On&&t.log("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function Sa(e=[]){if(!(e.length!==2||typeof e[1]!="object"))return e[1].body}const zo=[],ps=new Map,SE=60;function bE(){if(ao()&&Ce()){const t=EE();return()=>{t()}}return()=>{}}const ru={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"};function EE(){return uf(vE)}const vE=({metric:e})=>{if(e.value==null)return;const t=ce(e.value);if(t>SE)return;const n=e.entries.find(h=>h.duration===e.value&&ru[h.name]);if(!n)return;const{interactionId:r}=n,s=ru[n.name],o=ce(Ce()+n.startTime),i=me(),a=i?_e(i):void 0,u=(r!=null?ps.get(r):void 0)||a,d=u?U(u).description:j().getScopeData().transactionName,l=ze(n.target),f={[J]:"auto.http.browser.inp",[ye]:`ui.interaction.${s}`,[Hn]:n.duration},p=ga({name:l,transaction:d,attributes:f,startTime:o});p&&(p.addEvent("inp",{[Er]:"millisecond",[vr]:e.value}),p.end(o+t))};function wE(){const e=({entries:t})=>{const n=me(),r=n&&_e(n);t.forEach(s=>{if(!$b(s)||!r)return;const o=s.interactionId;if(o!=null&&!ps.has(o)){if(zo.length>10){const i=zo.shift();ps.delete(i)}zo.push(o),ps.set(o,r)}})};Qt("event",e),Qt("first-input",e)}function ba(e,t=_a("fetch")){let n=0,r=0;function s(o){const i=o.body.length;n+=i,r++;const a={body:o.body,method:"POST",referrerPolicy:"strict-origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};if(!t)return nu("fetch"),Cs("No fetch implementation available");try{return t(e.url,a).then(c=>(n-=i,r--,{statusCode:c.status,headers:{"x-sentry-rate-limits":c.headers.get("X-Sentry-Rate-Limits"),"retry-after":c.headers.get("Retry-After")}}))}catch(c){return nu("fetch"),n-=i,r--,Cs(c)}}return ud(e,s)}const TE=10,IE=20,kE=30,CE=40,RE=50;function Ln(e,t,n,r){const s={filename:e,function:t==="<anonymous>"?rt:t,in_app:!0};return n!==void 0&&(s.lineno=n),r!==void 0&&(s.colno=r),s}const xE=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,ME=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,AE=/\((\S*)(?::(\d+))(?::(\d+))\)/,NE=e=>{const t=xE.exec(e);if(t){const[,r,s,o]=t;return Ln(r,rt,+s,+o)}const n=ME.exec(e);if(n){if(n[2]&&n[2].indexOf("eval")===0){const i=AE.exec(n[2]);i&&(n[2]=i[1],n[3]=i[2],n[4]=i[3])}const[s,o]=Ef(n[1]||rt,n[2]);return Ln(o,s,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}},_f=[kE,NE],OE=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,LE=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,PE=e=>{const t=OE.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const o=LE.exec(t[3]);o&&(t[1]=t[1]||"eval",t[3]=o[1],t[4]=o[2],t[5]="")}let r=t[3],s=t[1]||rt;return[s,r]=Ef(s,r),Ln(r,s,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},yf=[RE,PE],DE=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,FE=e=>{const t=DE.exec(e);return t?Ln(t[2],t[1]||rt,+t[3],t[4]?+t[4]:void 0):void 0},$E=[CE,FE],BE=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,UE=e=>{const t=BE.exec(e);return t?Ln(t[2],t[3]||rt,+t[1]):void 0},HE=[TE,UE],WE=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,zE=e=>{const t=WE.exec(e);return t?Ln(t[5],t[3]||t[4]||rt,+t[1],+t[2]):void 0},jE=[IE,zE],Sf=[_f,yf],bf=sl(...Sf),Ef=(e,t)=>{const n=e.indexOf("safari-extension")!==-1,r=e.indexOf("safari-web-extension")!==-1;return n||r?[e.indexOf("@")!==-1?e.split("@")[0]:rt,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]};function qE(e,{metadata:t,tunnel:n,dsn:r}){const s={event_id:e.event_id,sent_at:new Date().toISOString(),...t?.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!r&&{dsn:rn(r)}},o=GE(e);return bt(s,[o])}function GE(e){return[{type:"user_report"},e]}const X=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Vr=1024,VE="Breadcrumbs",YE=(e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:VE,setup(n){t.console&&na(JE(n)),t.dom&&mf(KE(n,t.dom)),t.xhr&&ya(ZE(n)),t.fetch&&sa(QE(n)),t.history&&co(ev(n)),t.sentry&&n.on("beforeSendEvent",XE(n))}}},vf=YE;function XE(e){return function(n){C()===e&&Je({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:Ht(n)},{event:n})}}function KE(e,t){return function(r){if(C()!==e)return;let s,o,i=typeof t=="object"?t.serializeAttribute:void 0,a=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;a&&a>Vr&&(X&&_.warn(`\`dom.maxStringLength\` cannot exceed ${Vr}, but a value of ${a} was configured. Sentry will use ${Vr} instead.`),a=Vr),typeof i=="string"&&(i=[i]);try{const u=r.event,d=tv(u)?u.target:u;s=ze(d,{keyAttrs:i,maxStringLength:a}),o=dl(d)}catch{s="<unknown>"}if(s.length===0)return;const c={category:`ui.${r.name}`,message:s};o&&(c.data={"ui.component_name":o}),Je(c,{event:r.event,name:r.name,global:r.global})}}function JE(e){return function(n){if(C()!==e)return;const r={category:"console",data:{arguments:n.args,logger:"console"},level:ra(n.level),message:Es(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)r.message=`Assertion failed: ${Es(n.args.slice(1)," ")||"console.assert"}`,r.data.arguments=n.args.slice(1);else return;Je(r,{input:n.args,level:n.level})}}function ZE(e){return function(n){if(C()!==e)return;const{startTimestamp:r,endTimestamp:s}=n,o=n.xhr[at];if(!r||!s||!o)return;const{method:i,url:a,status_code:c,body:u}=o,d={method:i,url:a,status_code:c},l={xhr:n.xhr,input:u,startTimestamp:r,endTimestamp:s},f={category:"xhr",data:d,type:"http",level:xd(c)};e.emit("beforeOutgoingRequestBreadcrumb",f,l),Je(f,l)}}function QE(e){return function(n){if(C()!==e)return;const{startTimestamp:r,endTimestamp:s}=n;if(s&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.fetchData.method,n.fetchData.url,n.error){const o=n.fetchData,i={data:n.error,input:n.args,startTimestamp:r,endTimestamp:s},a={category:"fetch",data:o,level:"error",type:"http"};e.emit("beforeOutgoingRequestBreadcrumb",a,i),Je(a,i)}else{const o=n.response,i={...n.fetchData,status_code:o?.status};n.fetchData.request_body_size,n.fetchData.response_body_size,o?.status;const a={input:n.args,response:o,startTimestamp:r,endTimestamp:s},c={category:"fetch",data:i,type:"http",level:xd(i.status_code)};e.emit("beforeOutgoingRequestBreadcrumb",c,a),Je(c,a)}}}function ev(e){return function(n){if(C()!==e)return;let r=n.from,s=n.to;const o=Yt(N.location.href);let i=r?Yt(r):void 0;const a=Yt(s);i?.path||(i=o),o.protocol===a.protocol&&o.host===a.host&&(s=a.relative),o.protocol===i.protocol&&o.host===i.host&&(r=i.relative),Je({category:"navigation",data:{from:r,to:s}})}}function tv(e){return!!e&&!!e.target}const nv=["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"],rv="BrowserApiErrors",sv=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...e};return{name:rv,setupOnce(){t.setTimeout&&Ae(N,"setTimeout",su),t.setInterval&&Ae(N,"setInterval",su),t.requestAnimationFrame&&Ae(N,"requestAnimationFrame",ov),t.XMLHttpRequest&&"XMLHttpRequest"in N&&Ae(XMLHttpRequest.prototype,"send",iv);const n=t.eventTarget;n&&(Array.isArray(n)?n:nv).forEach(s=>av(s,t))}}},wf=sv;function su(e){return function(...t){const n=t[0];return t[0]=Nn(n,{mechanism:{data:{function:dt(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function ov(e){return function(t){return e.apply(this,[Nn(t,{mechanism:{data:{function:"requestAnimationFrame",handler:dt(e)},handled:!1,type:"instrument"}})])}}function iv(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(s=>{s in n&&typeof n[s]=="function"&&Ae(n,s,function(o){const i={mechanism:{data:{function:s,handler:dt(o)},handled:!1,type:"instrument"}},a=Wi(o);return a&&(i.mechanism.data.handler=dt(a)),Nn(o,i)})}),e.apply(this,t)}}function av(e,t){const r=N[e]?.prototype;r?.hasOwnProperty?.("addEventListener")&&(Ae(r,"addEventListener",function(s){return function(o,i,a){try{cv(i)&&(i.handleEvent=Nn(i.handleEvent,{mechanism:{data:{function:"handleEvent",handler:dt(i),target:e},handled:!1,type:"instrument"}}))}catch{}return t.unregisterOriginalCallbacks&&uv(this,o,i),s.apply(this,[o,Nn(i,{mechanism:{data:{function:"addEventListener",handler:dt(i),target:e},handled:!1,type:"instrument"}}),a])}}),Ae(r,"removeEventListener",function(s){return function(o,i,a){try{const c=i.__sentry_wrapped__;c&&s.call(this,o,c,a)}catch{}return s.call(this,o,i,a)}}))}function cv(e){return typeof e.handleEvent=="function"}function uv(e,t,n){e&&typeof e=="object"&&"removeEventListener"in e&&typeof e.removeEventListener=="function"&&e.removeEventListener(t,n)}const Tf=()=>({name:"BrowserSession",setupOnce(){if(typeof N.document>"u"){X&&_.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}ii({ignoreDuration:!0}),ai(),co(({from:e,to:t})=>{e!==void 0&&e!==t&&(ii({ignoreDuration:!0}),ai())})}}),lv="GlobalHandlers",dv=(e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:lv,setupOnce(){Error.stackTraceLimit=50},setup(n){t.onerror&&(fv(n),ou("onerror")),t.onunhandledrejection&&(pv(n),ou("onunhandledrejection"))}}},If=dv;function fv(e){ol(t=>{const{stackParser:n,attachStacktrace:r}=kf();if(C()!==e||Gd())return;const{msg:s,url:o,line:i,column:a,error:c}=t,u=gv(fa(n,c||s,void 0,r,!1),o,i,a);u.level="error",Tr(u,{originalException:c,mechanism:{handled:!1,type:"onerror"}})})}function pv(e){il(t=>{const{stackParser:n,attachStacktrace:r}=kf();if(C()!==e||Gd())return;const s=hv(t),o=wn(s)?mv(s):fa(n,s,void 0,r,!0);o.level="error",Tr(o,{originalException:s,mechanism:{handled:!1,type:"onunhandledrejection"}})})}function hv(e){if(wn(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch{}return e}function mv(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function gv(e,t,n,r){const s=e.exception=e.exception||{},o=s.values=s.values||[],i=o[0]=o[0]||{},a=i.stacktrace=i.stacktrace||{},c=a.frames=a.frames||[],u=r,d=n,l=Ve(t)&&t.length>0?t:en();return c.length===0&&c.push({colno:u,filename:l,function:rt,in_app:!0,lineno:d}),e}function ou(e){X&&_.log(`Global Handler attached: ${e}`)}function kf(){return C()?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const Cf=()=>({name:"HttpContext",preprocessEvent(e){if(!N.navigator&&!N.location&&!N.document)return;const t=la(),n={...t.headers,...e.request?.headers};e.request={...t,...e.request,headers:n}}}),_v="cause",yv=5,Sv="LinkedErrors",bv=(e={})=>{const t=e.limit||yv,n=e.key||_v;return{name:Sv,preprocessEvent(r,s,o){const i=o.getOptions();i_(ro,i.stackParser,n,t,r,s)}}},Rf=bv;function Ev(){return vv()?(X&&Pt(()=>{console.error("[Sentry] You cannot use Sentry.init() in a browser extension, see: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")}),!0):!1}function vv(){if(typeof N.window>"u")return!1;const e=N;if(e.nw||!(e.chrome||e.browser)?.runtime?.id)return!1;const n=en(),r=["chrome-extension","moz-extension","ms-browser-extension","safari-web-extension"];return!(N===N.top&&r.some(o=>n.startsWith(`${o}://`)))}function xf(e){return[gd(),hd(),wf(),vf(),If(),Rf(),bd(),Cf(),Tf()]}function wv(e={}){const t=!e.skipBrowserExtensionCheck&&Ev(),n={...e,enabled:t?!1:e.enabled,stackParser:dh(e.stackParser||bf),integrations:mg({integrations:e.integrations,defaultIntegrations:e.defaultIntegrations==null?xf():e.defaultIntegrations}),transport:e.transport||ba};return Ag(Jd,n)}function Tv(){}function Iv(e){e()}function Ii(e={}){const t=N.document,n=t?.head||t?.body;if(!n){X&&_.error("[showReportDialog] Global document not defined");return}const r=j(),o=C()?.getDsn();if(!o){X&&_.error("[showReportDialog] DSN not configured");return}const i={...e,user:{...r.getUser(),...e.user},eventId:e.eventId||Gl()},a=N.document.createElement("script");a.async=!0,a.crossOrigin="anonymous",a.src=pg(o,i);const{onLoad:c,onClose:u}=i;if(c&&(a.onload=c),u){const d=l=>{if(l.data==="__sentry_reportdialog_closed__")try{u()}finally{N.removeEventListener("message",d)}};N.addEventListener("message",d)}n.appendChild(a)}const kv=H,Cv="ReportingObserver",iu=new WeakMap,Rv=(e={})=>{const t=e.types||["crash","deprecation","intervention"];function n(r){if(iu.has(C()))for(const s of r)Pe(o=>{o.setExtra("url",s.url);const i=`ReportingObserver [${s.type}]`;let a="No details available";if(s.body){const c={};for(const u in s.body)c[u]=s.body[u];if(o.setExtra("body",c),s.type==="crash"){const u=s.body;a=[u.crashId||"",u.reason||""].join(" ").trim()||a}else a=s.body.message||a}xs(`${i}: ${a}`)})}return{name:Cv,setupOnce(){if(!by())return;new kv.ReportingObserver(n,{buffered:!0,types:t}).observe()},setup(r){iu.set(r,!0)}}},xv=Rv,Mv="HttpClient",Av=(e={})=>{const t={failedRequestStatusCodes:[[500,599]],failedRequestTargets:[/.*/],...e};return{name:Mv,setup(n){Uv(n,t),Hv(n,t)}}},Nv=Av;function Ov(e,t,n,r,s){if(Af(e,n.status,n.url)){const o=Wv(t,r);let i,a,c,u;Of()&&([i,c]=au("Cookie",o),[a,u]=au("Set-Cookie",n));const d=Nf({url:o.url,method:o.method,status:n.status,requestHeaders:i,responseHeaders:a,requestCookies:c,responseCookies:u,error:s});Tr(d)}}function au(e,t){const n=Dv(t.headers);let r;try{const s=n[e]||n[e.toLowerCase()]||void 0;s&&(r=Mf(s))}catch{}return[n,r]}function Lv(e,t,n,r,s){if(Af(e,t.status,t.responseURL)){let o,i,a;if(Of()){try{const u=t.getResponseHeader("Set-Cookie")||t.getResponseHeader("set-cookie")||void 0;u&&(i=Mf(u))}catch{}try{a=Fv(t)}catch{}o=r}const c=Nf({url:t.responseURL,method:n,status:t.status,requestHeaders:o,responseHeaders:a,responseCookies:i,error:s});Tr(c)}}function Pv(e){if(e){const t=e["Content-Length"]||e["content-length"];if(t)return parseInt(t,10)}}function Mf(e){return e.split("; ").reduce((t,n)=>{const[r,s]=n.split("=");return r&&s&&(t[r]=s),t},{})}function Dv(e){const t={};return e.forEach((n,r)=>{t[r]=n}),t}function Fv(e){const t=e.getAllResponseHeaders();return t?t.split(`\r
|
|
491
|
-
`).reduce((n,r)=>{const[s,o]=r.split(": ");return s&&o&&(n[s]=o),n},{}):{}}function $v(e,t){return e.some(n=>typeof n=="string"?t.includes(n):n.test(t))}function Bv(e,t){return e.some(n=>typeof n=="number"?n===t:t>=n[0]&&t<=n[1])}function Uv(e,t){Md()&&sa(n=>{if(C()!==e)return;const{response:r,args:s,error:o,virtualError:i}=n,[a,c]=s;r&&Ov(t,a,r,c,o||i)},!1)}function Hv(e,t){"XMLHttpRequest"in H&&ya(n=>{if(C()!==e)return;const{error:r,virtualError:s}=n,o=n.xhr,i=o[at];if(!i)return;const{method:a,request_headers:c}=i;try{Lv(t,o,a,c,r||s)}catch(u){X&&_.warn("Error while extracting response event form XHR response",u)}})}function Af(e,t,n){return Bv(e.failedRequestStatusCodes,t)&&$v(e.failedRequestTargets,n)&&!dd(n,C())}function Nf(e){const t=C(),n=t&&e.error&&e.error instanceof Error?e.error.stack:void 0,r=n&&t?t.getOptions().stackParser(n,0,1):void 0,s=`HTTP Client Error with status code: ${e.status}`,o={message:s,exception:{values:[{type:"Error",value:s,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:Pv(e.responseHeaders)}}};return At(o,{type:"http.client",handled:!1}),o}function Wv(e,t){return!t&&e instanceof Request||e instanceof Request&&e.bodyUsed?e:new Request(e,t)}function Of(){const e=C();return e?!!e.getOptions().sendDefaultPii:!1}const jo=H,zv=7,jv="ContextLines",qv=(e={})=>{const t=e.frameContextLines!=null?e.frameContextLines:zv;return{name:jv,processEvent(n){return Vv(n,t)}}},Gv=qv;function Vv(e,t){const n=jo.document,r=jo.location&&Cd(jo.location.href);if(!n||!r)return e;const s=e.exception?.values;if(!s?.length)return e;const o=n.documentElement.innerHTML;if(!o)return e;const i=["<!DOCTYPE html>","<html>",...o.split(`
|
|
492
|
-
`),"</html>"];return s.forEach(a=>{const c=a.stacktrace;c?.frames&&(c.frames=c.frames.map(u=>Yv(u,i,r,t)))}),e}function Yv(e,t,n,r){return e.filename!==n||!e.lineno||!t.length||Th(t,e,r),e}const Xv="GraphQLClient",Kv=e=>({name:Xv,setup(t){Jv(t,e),Zv(t,e)}});function Jv(e,t){e.on("beforeOutgoingRequestSpan",(n,r)=>{const o=U(n).data||{};if(!(o[ye]==="http.client"))return;const c=o[Uh]||o["http.url"],u=o[Bh]||o["http.method"];if(!Ve(c)||!Ve(u))return;const{endpoints:d}=t,l=Ye(c,d),f=Pf(r);if(l&&f){const p=Df(f);if(p){const h=Lf(p);n.updateName(`${u} ${c} (${h})`),n.setAttribute("graphql.document",f)}}})}function Zv(e,t){e.on("beforeOutgoingRequestBreadcrumb",(n,r)=>{const{category:s,type:o,data:i}=n;if(o==="http"&&(s==="fetch"||s==="xhr")){const d=i?.url,{endpoints:l}=t,f=Ye(d,l),p=Pf(r);if(f&&i&&p){const h=Df(p);if(!i.graphql&&h){const m=Lf(h);i["graphql.document"]=h.query,i["graphql.operation"]=m}}}})}function Lf(e){const{query:t,operationName:n}=e,{operationName:r=n,operationType:s}=Qv(t);return r?`${s} ${r}`:`${s}`}function Pf(e){const t="xhr"in e;let n;if(t){const r=e.xhr[at];n=r&&Fs(r.body)[0]}else{const r=Sa(e.input);n=Fs(r)[0]}return n}function Qv(e){const t=/^(?:\s*)(query|mutation|subscription)(?:\s*)(\w+)(?:\s*)[{(]/,n=/^(?:\s*)(query|mutation|subscription)(?:\s*)[{(]/,r=e.match(t);if(r)return{operationType:r[1],operationName:r[2]};const s=e.match(n);return s?{operationType:s[1],operationName:void 0}:{operationType:void 0,operationName:void 0}}function Df(e){let t;try{const n=JSON.parse(e);!!n.query&&(t=n)}finally{return t}}const e0=Kv,ie=H,Ea="sentryReplaySession",t0="replay_event",va="Unable to send Replay",n0=3e5,r0=9e5,s0=5e3,o0=5500,i0=6e4,a0=5e3,c0=3,cu=15e4,Yr=5e3,u0=3e3,l0=300,wa=2e7,d0=4999,f0=15e3,uu=36e5;var p0=Object.defineProperty,h0=(e,t,n)=>t in e?p0(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,lu=(e,t,n)=>h0(e,typeof t!="symbol"?t+"":t,n),we=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(we||{});function m0(e){return e.nodeType===e.ELEMENT_NODE}function nr(e){return e?.host?.shadowRoot===e}function rr(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}function g0(e){return e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),e}function _0(e){const{cssText:t}=e;if(t.split('"').length<3)return t;const n=["@import",`url(${JSON.stringify(e.href)})`];return e.layerName===""?n.push("layer"):e.layerName&&n.push(`layer(${e.layerName})`),e.supportsText&&n.push(`supports(${e.supportsText})`),e.media.length&&n.push(e.media.mediaText),n.join(" ")+";"}function $s(e){try{const t=e.rules||e.cssRules;return t?g0(Array.from(t,Ff).join("")):null}catch{return null}}function y0(e){let t="";for(let n=0;n<e.style.length;n++){const r=e.style,s=r[n],o=r.getPropertyPriority(s);t+=`${s}:${r.getPropertyValue(s)}${o?" !important":""};`}return`${e.selectorText} { ${t} }`}function Ff(e){let t;if(b0(e))try{t=$s(e.styleSheet)||_0(e)}catch{}else if(E0(e)){let n=e.cssText;const r=e.selectorText.includes(":"),s=typeof e.style.all=="string"&&e.style.all;if(s&&(n=y0(e)),r&&(n=S0(n)),r||s)return n}return t||e.cssText}function S0(e){const t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}function b0(e){return"styleSheet"in e}function E0(e){return"selectorText"in e}let $f=class{constructor(){lu(this,"idNodeMap",new Map),lu(this,"nodeMetaMap",new WeakMap)}getId(t){return t?this.getMeta(t)?.id??-1:-1}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){const n=this.getId(t);this.idNodeMap.delete(n),t.childNodes&&t.childNodes.forEach(r=>this.removeNodeFromMap(r))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,n){const r=n.id;this.idNodeMap.set(r,t),this.nodeMetaMap.set(t,n)}replace(t,n){const r=this.getNode(t);if(r){const s=this.nodeMetaMap.get(r);s&&this.nodeMetaMap.set(n,s)}this.idNodeMap.set(t,n)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function v0(){return new $f}function uo({maskInputOptions:e,tagName:t,type:n}){return t==="OPTION"&&(t="SELECT"),!!(e[t.toLowerCase()]||n&&e[n]||n==="password"||t==="INPUT"&&!n&&e.text)}function cr({isMasked:e,element:t,value:n,maskInputFn:r}){let s=n||"";return e?(r&&(s=r(s,t)),"*".repeat(s.length)):s}function Pn(e){return e.toLowerCase()}function ki(e){return e.toUpperCase()}const du="__rrweb_original__";function w0(e){const t=e.getContext("2d");if(!t)return!0;const n=50;for(let r=0;r<e.width;r+=n)for(let s=0;s<e.height;s+=n){const o=t.getImageData,i=du in o?o[du]:o;if(new Uint32Array(i.call(t,r,s,Math.min(n,e.width-r),Math.min(n,e.height-s)).data.buffer).some(c=>c!==0))return!1}return!0}function Ta(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?Pn(t):null}function Bs(e,t,n){return t==="INPUT"&&(n==="radio"||n==="checkbox")?e.getAttribute("value")||"":e.value}function Bf(e,t){let n;try{n=new URL(e,t??window.location.href)}catch{return null}const r=/\.([0-9a-z]+)(?:$)/i;return n.pathname.match(r)?.[1]??null}const fu={};function Uf(e){const t=fu[e];if(t)return t;const n=window.document;let r=window[e];if(n&&typeof n.createElement=="function")try{const s=n.createElement("iframe");s.hidden=!0,n.head.appendChild(s);const o=s.contentWindow;o&&o[e]&&(r=o[e]),n.head.removeChild(s)}catch{}return fu[e]=r.bind(window)}function Ci(...e){return Uf("setTimeout")(...e)}function Hf(...e){return Uf("clearTimeout")(...e)}function Wf(e){try{return e.contentDocument}catch{}}let T0=1;const I0=new RegExp("[^a-z0-9-_:]"),ur=-2;function Ia(){return T0++}function k0(e){if(e instanceof HTMLFormElement)return"form";const t=Pn(e.tagName);return I0.test(t)?"div":t}function C0(e){let t="";return e.indexOf("//")>-1?t=e.split("/").slice(0,3).join("/"):t=e.split("/")[0],t=t.split("?")[0],t}let dn,pu;const R0=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,x0=/^(?:[a-z+]+:)?\/\//i,M0=/^www\..*/i,A0=/^(data:)([^,]*),(.*)/i;function Us(e,t){return(e||"").replace(R0,(n,r,s,o,i,a)=>{const c=s||i||a,u=r||o||"";if(!c)return n;if(x0.test(c)||M0.test(c))return`url(${u}${c}${u})`;if(A0.test(c))return`url(${u}${c}${u})`;if(c[0]==="/")return`url(${u}${C0(t)+c}${u})`;const d=t.split("/"),l=c.split("/");d.pop();for(const f of l)f!=="."&&(f===".."?d.pop():d.push(f));return`url(${u}${d.join("/")}${u})`})}const N0=/^[^ \t\n\r\u000c]+/,O0=/^[, \t\n\r\u000c]+/;function L0(e,t){if(t.trim()==="")return t;let n=0;function r(o){let i;const a=o.exec(t.substring(n));return a?(i=a[0],n+=i.length,i):""}const s=[];for(;r(O0),!(n>=t.length);){let o=r(N0);if(o.slice(-1)===",")o=mn(e,o.substring(0,o.length-1)),s.push(o);else{let i="";o=mn(e,o);let a=!1;for(;;){const c=t.charAt(n);if(c===""){s.push((o+i).trim());break}else if(a)c===")"&&(a=!1);else if(c===","){n+=1,s.push((o+i).trim());break}else c==="("&&(a=!0);i+=c,n+=1}}}return s.join(", ")}const hu=new WeakMap;function mn(e,t){return!t||t.trim()===""?t:lo(e,t)}function P0(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function lo(e,t){let n=hu.get(e);if(n||(n=e.createElement("a"),hu.set(e,n)),!t)t="";else if(t.startsWith("blob:")||t.startsWith("data:"))return t;return n.setAttribute("href",t),n.href}function zf(e,t,n,r,s,o){return r&&(n==="src"||n==="href"&&!(t==="use"&&r[0]==="#")||n==="xlink:href"&&r[0]!=="#"||n==="background"&&(t==="table"||t==="td"||t==="th")?mn(e,r):n==="srcset"?L0(e,r):n==="style"?Us(r,lo(e)):t==="object"&&n==="data"?mn(e,r):typeof o=="function"?o(n,r,s):r)}function jf(e,t,n){return(e==="video"||e==="audio")&&t==="autoplay"}function qf(e,t,n,r){try{if(r&&e.matches(r))return!1;if(typeof t=="string"){if(e.classList.contains(t))return!0}else for(let s=e.classList.length;s--;){const o=e.classList[s];if(t.test(o))return!0}if(n)return e.matches(n)}catch{}return!1}function D0(e,t){for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}return!1}function jt(e,t,n=1/0,r=0){return!e||e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:jt(e.parentNode,t,n,r+1)}function gn(e,t){return n=>{const r=n;if(r===null)return!1;try{if(e){if(typeof e=="string"){if(r.matches(`.${e}`))return!0}else if(D0(r,e))return!0}return!!(t&&r.matches(t))}catch{return!1}}}function Dn(e,t,n,r,s,o){try{const i=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(i===null)return!1;if(i.tagName==="INPUT"){const u=i.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(u))return!0}let a=-1,c=-1;if(o){if(c=jt(i,gn(r,s)),c<0)return!0;a=jt(i,gn(t,n),c>=0?c:1/0)}else{if(a=jt(i,gn(t,n)),a<0)return!1;c=jt(i,gn(r,s),a>=0?a:1/0)}return a>=0?c>=0?a<=c:!0:c>=0?!1:!!o}catch{}return!!o}function F0(e,t,n){const r=e.contentWindow;if(!r)return;let s=!1,o;try{o=r.document.readyState}catch{return}if(o!=="complete"){const a=Ci(()=>{s||(t(),s=!0)},n);e.addEventListener("load",()=>{Hf(a),s=!0,t()});return}const i="about:blank";if(r.location.href!==i||e.src===i||e.src==="")return Ci(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}function $0(e,t,n){let r=!1,s;try{s=e.sheet}catch{return}if(s)return;const o=Ci(()=>{r||(t(),r=!0)},n);e.addEventListener("load",()=>{Hf(o),r=!0,t()})}function B0(e,t){const{doc:n,mirror:r,blockClass:s,blockSelector:o,unblockSelector:i,maskAllText:a,maskAttributeFn:c,maskTextClass:u,unmaskTextClass:d,maskTextSelector:l,unmaskTextSelector:f,inlineStylesheet:p,maskInputOptions:h={},maskTextFn:m,maskInputFn:g,dataURLOptions:y={},inlineImages:b,recordCanvas:P,keepIframeSrcFn:k,newlyAddedElement:R=!1}=t,S=U0(n,r);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:we.Document,childNodes:[],compatMode:e.compatMode}:{type:we.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:we.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:S};case e.ELEMENT_NODE:return W0(e,{doc:n,blockClass:s,blockSelector:o,unblockSelector:i,inlineStylesheet:p,maskAttributeFn:c,maskInputOptions:h,maskInputFn:g,dataURLOptions:y,inlineImages:b,recordCanvas:P,keepIframeSrcFn:k,newlyAddedElement:R,rootId:S,maskTextClass:u,unmaskTextClass:d,maskTextSelector:l,unmaskTextSelector:f});case e.TEXT_NODE:return H0(e,{doc:n,maskAllText:a,maskTextClass:u,unmaskTextClass:d,maskTextSelector:l,unmaskTextSelector:f,maskTextFn:m,maskInputOptions:h,maskInputFn:g,rootId:S});case e.CDATA_SECTION_NODE:return{type:we.CDATA,textContent:"",rootId:S};case e.COMMENT_NODE:return{type:we.Comment,textContent:e.textContent||"",rootId:S};default:return!1}}function U0(e,t){if(!t.hasNode(e))return;const n=t.getId(e);return n===1?void 0:n}function H0(e,t){const{maskAllText:n,maskTextClass:r,unmaskTextClass:s,maskTextSelector:o,unmaskTextSelector:i,maskTextFn:a,maskInputOptions:c,maskInputFn:u,rootId:d}=t,l=e.parentNode&&e.parentNode.tagName;let f=e.textContent;const p=l==="STYLE"?!0:void 0,h=l==="SCRIPT"?!0:void 0,m=l==="TEXTAREA"?!0:void 0;if(p&&f){try{e.nextSibling||e.previousSibling||e.parentNode.sheet?.cssRules&&(f=$s(e.parentNode.sheet))}catch(y){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${y}`,e)}f=Us(f,lo(t.doc))}h&&(f="SCRIPT_PLACEHOLDER");const g=Dn(e,r,o,s,i,n);if(!p&&!h&&!m&&f&&g&&(f=a?a(f,e.parentElement):f.replace(/[\S]/g,"*")),m&&f&&(c.textarea||g)&&(f=u?u(f,e.parentNode):f.replace(/[\S]/g,"*")),l==="OPTION"&&f){const y=uo({type:null,tagName:l,maskInputOptions:c});f=cr({isMasked:Dn(e,r,o,s,i,y),element:e,value:f,maskInputFn:u})}return{type:we.Text,textContent:f||"",isStyle:p,rootId:d}}function W0(e,t){const{doc:n,blockClass:r,blockSelector:s,unblockSelector:o,inlineStylesheet:i,maskInputOptions:a={},maskAttributeFn:c,maskInputFn:u,dataURLOptions:d={},inlineImages:l,recordCanvas:f,keepIframeSrcFn:p,newlyAddedElement:h=!1,rootId:m,maskTextClass:g,unmaskTextClass:y,maskTextSelector:b,unmaskTextSelector:P}=t,k=qf(e,r,s,o),R=k0(e);let S={};const w=e.attributes.length;for(let E=0;E<w;E++){const I=e.attributes[E];I.name&&!jf(R,I.name,I.value)&&(S[I.name]=zf(n,R,Pn(I.name),I.value,e,c))}if(R==="link"&&i){const E=Array.from(n.styleSheets).find(D=>D.href===e.href);let I=null;E&&(I=$s(E)),I&&(S.rel=null,S.href=null,S.crossorigin=null,S._cssText=Us(I,E.href))}if(R==="style"&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const E=$s(e.sheet);E&&(S._cssText=Us(E,lo(n)))}if(R==="input"||R==="textarea"||R==="select"||R==="option"){const E=e,I=Ta(E),D=Bs(E,ki(R),I),v=E.checked;if(I!=="submit"&&I!=="button"&&D){const A=Dn(E,g,b,y,P,uo({type:I,tagName:ki(R),maskInputOptions:a}));S.value=cr({isMasked:A,element:E,value:D,maskInputFn:u})}v&&(S.checked=v)}if(R==="option"&&(e.selected&&!a.select?S.selected=!0:delete S.selected),R==="canvas"&&f){if(e.__context==="2d")w0(e)||(S.rr_dataURL=e.toDataURL(d.type,d.quality));else if(!("__context"in e)){const E=e.toDataURL(d.type,d.quality),I=n.createElement("canvas");I.width=e.width,I.height=e.height;const D=I.toDataURL(d.type,d.quality);E!==D&&(S.rr_dataURL=E)}}if(R==="img"&&l){dn||(dn=n.createElement("canvas"),pu=dn.getContext("2d"));const E=e,I=E.currentSrc||E.getAttribute("src")||"<unknown-src>",D=E.crossOrigin,v=()=>{E.removeEventListener("load",v);try{dn.width=E.naturalWidth,dn.height=E.naturalHeight,pu.drawImage(E,0,0),S.rr_dataURL=dn.toDataURL(d.type,d.quality)}catch(A){if(E.crossOrigin!=="anonymous"){E.crossOrigin="anonymous",E.complete&&E.naturalWidth!==0?v():E.addEventListener("load",v);return}else console.warn(`Cannot inline img src=${I}! Error: ${A}`)}E.crossOrigin==="anonymous"&&(D?S.crossOrigin=D:E.removeAttribute("crossorigin"))};E.complete&&E.naturalWidth!==0?v():E.addEventListener("load",v)}if((R==="audio"||R==="video")&&(S.rr_mediaState=e.paused?"paused":"played",S.rr_mediaCurrentTime=e.currentTime),h||(e.scrollLeft&&(S.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(S.rr_scrollTop=e.scrollTop)),k){const{width:E,height:I}=e.getBoundingClientRect();S={class:S.class,rr_width:`${E}px`,rr_height:`${I}px`}}R==="iframe"&&!p(S.src)&&(!k&&!Wf(e)&&(S.rr_src=S.src),delete S.src);let M;try{customElements.get(R)&&(M=!0)}catch{}return{type:we.Element,tagName:R,attributes:S,childNodes:[],isSVG:P0(e)||void 0,needBlock:k,rootId:m,isCustom:M}}function oe(e){return e==null?"":e.toLowerCase()}function z0(e,t){if(t.comment&&e.type===we.Comment)return!0;if(e.type===we.Element){if(t.script&&(e.tagName==="script"||e.tagName==="link"&&(e.attributes.rel==="preload"||e.attributes.rel==="modulepreload")||e.tagName==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&Bf(e.attributes.href)==="js"))return!0;if(t.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(oe(e.attributes.name).match(/^msapplication-tile(image|color)$/)||oe(e.attributes.name)==="application-name"||oe(e.attributes.rel)==="icon"||oe(e.attributes.rel)==="apple-touch-icon"||oe(e.attributes.rel)==="shortcut icon")))return!0;if(e.tagName==="meta"){if(t.headMetaDescKeywords&&oe(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(oe(e.attributes.property).match(/^(og|twitter|fb):/)||oe(e.attributes.name).match(/^(og|twitter):/)||oe(e.attributes.name)==="pinterest"))return!0;if(t.headMetaRobots&&(oe(e.attributes.name)==="robots"||oe(e.attributes.name)==="googlebot"||oe(e.attributes.name)==="bingbot"))return!0;if(t.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return!0;if(t.headMetaAuthorship&&(oe(e.attributes.name)==="author"||oe(e.attributes.name)==="generator"||oe(e.attributes.name)==="framework"||oe(e.attributes.name)==="publisher"||oe(e.attributes.name)==="progid"||oe(e.attributes.property).match(/^article:/)||oe(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&(oe(e.attributes.name)==="google-site-verification"||oe(e.attributes.name)==="yandex-verification"||oe(e.attributes.name)==="csrf-token"||oe(e.attributes.name)==="p:domain_verify"||oe(e.attributes.name)==="verify-v1"||oe(e.attributes.name)==="verification"||oe(e.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function _n(e,t){const{doc:n,mirror:r,blockClass:s,blockSelector:o,unblockSelector:i,maskAllText:a,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:l,skipChild:f=!1,inlineStylesheet:p=!0,maskInputOptions:h={},maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:b,dataURLOptions:P={},inlineImages:k=!1,recordCanvas:R=!1,onSerialize:S,onIframeLoad:w,iframeLoadTimeout:M=5e3,onStylesheetLoad:E,stylesheetLoadTimeout:I=5e3,keepIframeSrcFn:D=()=>!1,newlyAddedElement:v=!1}=t;let{preserveWhiteSpace:A=!0}=t;const W=B0(e,{doc:n,mirror:r,blockClass:s,blockSelector:o,maskAllText:a,unblockSelector:i,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:l,inlineStylesheet:p,maskInputOptions:h,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,dataURLOptions:P,inlineImages:k,recordCanvas:R,keepIframeSrcFn:D,newlyAddedElement:v});if(!W)return console.warn(e,"not serialized"),null;let L;r.hasNode(e)?L=r.getId(e):z0(W,b)||!A&&W.type===we.Text&&!W.isStyle&&!W.textContent.replace(/^\s+|\s+$/gm,"").length?L=ur:L=Ia();const x=Object.assign(W,{id:L});if(r.add(e,x),L===ur)return null;S&&S(e);let F=!f;if(x.type===we.Element){F=F&&!x.needBlock,delete x.needBlock;const O=e.shadowRoot;O&&rr(O)&&(x.isShadowHost=!0)}if((x.type===we.Document||x.type===we.Element)&&F){b.headWhitespace&&x.type===we.Element&&x.tagName==="head"&&(A=!1);const O={doc:n,mirror:r,blockClass:s,blockSelector:o,maskAllText:a,unblockSelector:i,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:l,skipChild:f,inlineStylesheet:p,maskInputOptions:h,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:b,dataURLOptions:P,inlineImages:k,recordCanvas:R,preserveWhiteSpace:A,onSerialize:S,onIframeLoad:w,iframeLoadTimeout:M,onStylesheetLoad:E,stylesheetLoadTimeout:I,keepIframeSrcFn:D};for(const q of Array.from(e.childNodes)){const K=_n(q,O);K&&x.childNodes.push(K)}if(m0(e)&&e.shadowRoot)for(const q of Array.from(e.shadowRoot.childNodes)){const K=_n(q,O);K&&(rr(e.shadowRoot)&&(K.isShadow=!0),x.childNodes.push(K))}}return e.parentNode&&nr(e.parentNode)&&rr(e.parentNode)&&(x.isShadow=!0),x.type===we.Element&&x.tagName==="iframe"&&!qf(e,s,o,i)&&F0(e,()=>{const O=Wf(e);if(O&&w){const q=_n(O,{doc:O,mirror:r,blockClass:s,blockSelector:o,unblockSelector:i,maskAllText:a,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:l,skipChild:!1,inlineStylesheet:p,maskInputOptions:h,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:b,dataURLOptions:P,inlineImages:k,recordCanvas:R,preserveWhiteSpace:A,onSerialize:S,onIframeLoad:w,iframeLoadTimeout:M,onStylesheetLoad:E,stylesheetLoadTimeout:I,keepIframeSrcFn:D});q&&w(e,q)}},M),x.type===we.Element&&x.tagName==="link"&&typeof x.attributes.rel=="string"&&(x.attributes.rel==="stylesheet"||x.attributes.rel==="preload"&&typeof x.attributes.href=="string"&&Bf(x.attributes.href)==="css")&&$0(e,()=>{if(E){const O=_n(e,{doc:n,mirror:r,blockClass:s,blockSelector:o,unblockSelector:i,maskAllText:a,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:l,skipChild:!1,inlineStylesheet:p,maskInputOptions:h,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:b,dataURLOptions:P,inlineImages:k,recordCanvas:R,preserveWhiteSpace:A,onSerialize:S,onIframeLoad:w,iframeLoadTimeout:M,onStylesheetLoad:E,stylesheetLoadTimeout:I,keepIframeSrcFn:D});O&&E(e,O)}},I),x}function j0(e,t){const{mirror:n=new $f,blockClass:r="rr-block",blockSelector:s=null,unblockSelector:o=null,maskAllText:i=!1,maskTextClass:a="rr-mask",unmaskTextClass:c=null,maskTextSelector:u=null,unmaskTextSelector:d=null,inlineStylesheet:l=!0,inlineImages:f=!1,recordCanvas:p=!1,maskAllInputs:h=!1,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOM:b=!1,dataURLOptions:P,preserveWhiteSpace:k,onSerialize:R,onIframeLoad:S,iframeLoadTimeout:w,onStylesheetLoad:M,stylesheetLoadTimeout:E,keepIframeSrcFn:I=()=>!1}=t||{};return _n(e,{doc:e,mirror:n,blockClass:r,blockSelector:s,unblockSelector:o,maskAllText:i,maskTextClass:a,unmaskTextClass:c,maskTextSelector:u,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:l,maskInputOptions:h===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0}:h===!1?{}:h,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:b===!0||b==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:b==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:b===!1?{}:b,dataURLOptions:P,inlineImages:f,recordCanvas:p,preserveWhiteSpace:k,onSerialize:R,onIframeLoad:S,iframeLoadTimeout:w,onStylesheetLoad:M,stylesheetLoadTimeout:E,keepIframeSrcFn:I,newlyAddedElement:!1})}function Me(e,t,n=document){const r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}const fn=`Please stop import mirror directly. Instead of that,\r
|
|
493
|
-
now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
|
|
494
|
-
or you can use record.mirror to access the mirror instance during recording.`;let mu={map:{},getId(){return console.error(fn),-1},getNode(){return console.error(fn),null},removeNodeFromMap(){console.error(fn)},has(){return console.error(fn),!1},reset(){console.error(fn)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(mu=new Proxy(mu,{get(e,t,n){return t==="map"&&console.error(fn),Reflect.get(e,t,n)}}));function lr(e,t,n={}){let r=null,s=0;return function(...o){const i=Date.now();!s&&n.leading===!1&&(s=i);const a=t-(i-s),c=this;a<=0||a>t?(r&&(J0(r),r=null),s=i,e.apply(c,o)):!r&&n.trailing!==!1&&(r=fo(()=>{s=n.leading===!1?0:Date.now(),r=null,e.apply(c,o)},a))}}function Gf(e,t,n,r,s=window){const o=s.Object.getOwnPropertyDescriptor(e,t);return s.Object.defineProperty(e,t,r?n:{set(i){fo(()=>{n.set.call(this,i)},0),o&&o.set&&o.set.call(this,i)}}),()=>Gf(e,t,o||{},!0)}function ka(e,t,n){try{if(!(t in e))return()=>{};const r=e[t],s=n(r);return typeof s=="function"&&(s.prototype=s.prototype||{},Object.defineProperties(s,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=s,()=>{e[t]=r}}catch{return()=>{}}}let Hs=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(Hs=()=>new Date().getTime());function Vf(e){const t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:e.pageXOffset!==void 0?e.pageXOffset:t?.documentElement.scrollLeft||t?.body?.parentElement?.scrollLeft||t?.body?.scrollLeft||0,top:t.scrollingElement?t.scrollingElement.scrollTop:e.pageYOffset!==void 0?e.pageYOffset:t?.documentElement.scrollTop||t?.body?.parentElement?.scrollTop||t?.body?.scrollTop||0}}function Yf(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Xf(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Kf(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}function $e(e,t,n,r,s){if(!e)return!1;const o=Kf(e);if(!o)return!1;const i=gn(t,n);if(!s){const u=r&&o.matches(r);return i(o)&&!u}const a=jt(o,i);let c=-1;return a<0?!1:(r&&(c=jt(o,gn(null,r))),a>-1&&c<0?!0:a<c)}function q0(e,t){return t.getId(e)!==-1}function qo(e,t){return t.getId(e)===ur}function Jf(e,t){if(nr(e))return!1;const n=t.getId(e);return t.has(n)?e.parentNode&&e.parentNode.nodeType===e.DOCUMENT_NODE?!1:e.parentNode?Jf(e.parentNode,t):!0:!0}function Ri(e){return!!e.changedTouches}function G0(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...t)=>{let n=t[0];if(!(0 in t))throw new TypeError("1 argument is required");do if(this===n)return!0;while(n=n&&n.parentNode);return!1})}function Zf(e,t){return!!(e.nodeName==="IFRAME"&&t.getMeta(e))}function Qf(e,t){return!!(e.nodeName==="LINK"&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute("rel")==="stylesheet"&&t.getMeta(e))}function xi(e){return!!e?.shadowRoot}class V0{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(t){return this.styleIDMap.get(t)??-1}has(t){return this.styleIDMap.has(t)}add(t,n){if(this.has(t))return this.getId(t);let r;return n===void 0?r=this.id++:r=n,this.styleIDMap.set(t,r),this.idStyleMap.set(r,t),r}getStyle(t){return this.idStyleMap.get(t)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function ep(e){let t=null;return e.getRootNode?.()?.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function Y0(e){let t=e,n;for(;n=ep(t);)t=n;return t}function X0(e){const t=e.ownerDocument;if(!t)return!1;const n=Y0(e);return t.contains(n)}function tp(e){const t=e.ownerDocument;return t?t.contains(e)||X0(e):!1}const gu={};function Ca(e){const t=gu[e];if(t)return t;const n=window.document;let r=window[e];if(n&&typeof n.createElement=="function")try{const s=n.createElement("iframe");s.hidden=!0,n.head.appendChild(s);const o=s.contentWindow;o&&o[e]&&(r=o[e]),n.head.removeChild(s)}catch{}return gu[e]=r.bind(window)}function K0(...e){return Ca("requestAnimationFrame")(...e)}function fo(...e){return Ca("setTimeout")(...e)}function J0(...e){return Ca("clearTimeout")(...e)}var V=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(V||{}),z=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(z||{}),xe=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(xe||{}),it=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(it||{}),pn=(e=>(e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e[e.RateChange=4]="RateChange",e))(pn||{});function Ra(e){try{return e.contentDocument}catch{}}function Z0(e){try{return e.contentWindow}catch{}}function _u(e){return"__ln"in e}class Q0{constructor(){this.length=0,this.head=null,this.tail=null}get(t){if(t>=this.length)throw new Error("Position outside of list range");let n=this.head;for(let r=0;r<t;r++)n=n?.next||null;return n}addNode(t){const n={value:t,previous:null,next:null};if(t.__ln=n,t.previousSibling&&_u(t.previousSibling)){const r=t.previousSibling.__ln.next;n.next=r,n.previous=t.previousSibling.__ln,t.previousSibling.__ln.next=n,r&&(r.previous=n)}else if(t.nextSibling&&_u(t.nextSibling)&&t.nextSibling.__ln.previous){const r=t.nextSibling.__ln.previous;n.previous=r,n.next=t.nextSibling.__ln,t.nextSibling.__ln.previous=n,r&&(r.next=n)}else this.head&&(this.head.previous=n),n.next=this.head,this.head=n;n.next===null&&(this.tail=n),this.length++}removeNode(t){const n=t.__ln;this.head&&(n.previous?(n.previous.next=n.next,n.next?n.next.previous=n.previous:this.tail=n.previous):(this.head=n.next,this.head?this.head.previous=null:this.tail=null),t.__ln&&delete t.__ln,this.length--)}}const yu=(e,t)=>`${e}@${t}`;class ew{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=t=>{t.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;const t=[],n=new Set,r=new Q0,s=c=>{let u=c,d=ur;for(;d===ur;)u=u&&u.nextSibling,d=u&&this.mirror.getId(u);return d},o=c=>{if(!c.parentNode||!tp(c))return;const u=nr(c.parentNode)?this.mirror.getId(ep(c)):this.mirror.getId(c.parentNode),d=s(c);if(u===-1||d===-1)return r.addNode(c);const l=_n(c,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:f=>{Zf(f,this.mirror)&&!$e(f,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(f),Qf(f,this.mirror)&&this.stylesheetManager.trackLinkElement(f),xi(c)&&this.shadowDomManager.addShadowRoot(c.shadowRoot,this.doc)},onIframeLoad:(f,p)=>{$e(f,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(this.iframeManager.attachIframe(f,p),f.contentWindow&&this.canvasManager.addWindow(f.contentWindow),this.shadowDomManager.observeAttachShadow(f))},onStylesheetLoad:(f,p)=>{this.stylesheetManager.attachLinkElement(f,p)}});l&&(t.push({parentId:u,nextId:d,node:l}),n.add(l.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const c of this.movedSet)Su(this.removes,c,this.mirror)&&!this.movedSet.has(c.parentNode)||o(c);for(const c of this.addedSet)!bu(this.droppedSet,c)&&!Su(this.removes,c,this.mirror)||bu(this.movedSet,c)?o(c):this.droppedSet.add(c);let i=null;for(;r.length;){let c=null;if(i){const u=this.mirror.getId(i.value.parentNode),d=s(i.value);u!==-1&&d!==-1&&(c=i)}if(!c){let u=r.tail;for(;u;){const d=u;if(u=u.previous,d){const l=this.mirror.getId(d.value.parentNode);if(s(d.value)===-1)continue;if(l!==-1){c=d;break}else{const p=d.value;if(p.parentNode&&p.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const h=p.parentNode.host;if(this.mirror.getId(h)!==-1){c=d;break}}}}}}if(!c){for(;r.head;)r.removeNode(r.head.value);break}i=c.previous,r.removeNode(c.value),o(c.value)}const a={texts:this.texts.map(c=>({id:this.mirror.getId(c.node),value:c.value})).filter(c=>!n.has(c.id)).filter(c=>this.mirror.has(c.id)),attributes:this.attributes.map(c=>{const{attributes:u}=c;if(typeof u.style=="string"){const d=JSON.stringify(c.styleDiff),l=JSON.stringify(c._unchangedStyles);d.length<u.style.length&&(d+l).split("var(").length===u.style.split("var(").length&&(u.style=c.styleDiff)}return{id:this.mirror.getId(c.node),attributes:u}}).filter(c=>!n.has(c.id)).filter(c=>this.mirror.has(c.id)),removes:this.removes,adds:t};!a.texts.length&&!a.attributes.length&&!a.removes.length&&!a.adds.length||(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(a))},this.processMutation=t=>{if(!qo(t.target,this.mirror))switch(t.type){case"characterData":{const n=t.target.textContent;!$e(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&n!==t.oldValue&&this.texts.push({value:Dn(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&n?this.maskTextFn?this.maskTextFn(n,Kf(t.target)):n.replace(/[\S]/g,"*"):n,node:t.target});break}case"attributes":{const n=t.target;let r=t.attributeName,s=t.target.getAttribute(r);if(r==="value"){const i=Ta(n),a=n.tagName;s=Bs(n,a,i);const c=uo({maskInputOptions:this.maskInputOptions,tagName:a,type:i}),u=Dn(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,c);s=cr({isMasked:u,element:n,value:s,maskInputFn:this.maskInputFn})}if($e(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||s===t.oldValue)return;let o=this.attributeMap.get(t.target);if(n.tagName==="IFRAME"&&r==="src"&&!this.keepIframeSrcFn(s))if(!Ra(n))r="rr_src";else return;if(o||(o={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(o),this.attributeMap.set(t.target,o)),r==="type"&&n.tagName==="INPUT"&&(t.oldValue||"").toLowerCase()==="password"&&n.setAttribute("data-rr-is-password","true"),!jf(n.tagName,r)&&(o.attributes[r]=zf(this.doc,Pn(n.tagName),Pn(r),s,n,this.maskAttributeFn),r==="style")){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch{this.unattachedDoc=this.doc}const i=this.unattachedDoc.createElement("span");t.oldValue&&i.setAttribute("style",t.oldValue);for(const a of Array.from(n.style)){const c=n.style.getPropertyValue(a),u=n.style.getPropertyPriority(a);c!==i.style.getPropertyValue(a)||u!==i.style.getPropertyPriority(a)?u===""?o.styleDiff[a]=c:o.styleDiff[a]=[c,u]:o._unchangedStyles[a]=[c,u]}for(const a of Array.from(i.style))n.style.getPropertyValue(a)===""&&(o.styleDiff[a]=!1)}break}case"childList":{if($e(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;t.addedNodes.forEach(n=>this.genAdds(n,t.target)),t.removedNodes.forEach(n=>{const r=this.mirror.getId(n),s=nr(t.target)?this.mirror.getId(t.target.host):this.mirror.getId(t.target);$e(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||qo(n,this.mirror)||!q0(n,this.mirror)||(this.addedSet.has(n)?(Mi(this.addedSet,n),this.droppedSet.add(n)):this.addedSet.has(t.target)&&r===-1||Jf(t.target,this.mirror)||(this.movedSet.has(n)&&this.movedMap[yu(r,s)]?Mi(this.movedSet,n):this.removes.push({parentId:s,id:r,isShadow:nr(t.target)&&rr(t.target)?!0:void 0})),this.mapRemoves.push(n))});break}}},this.genAdds=(t,n)=>{if(!this.processedNodeManager.inOtherBuffer(t,this)&&!(this.addedSet.has(t)||this.movedSet.has(t))){if(this.mirror.hasNode(t)){if(qo(t,this.mirror))return;this.movedSet.add(t);let r=null;n&&this.mirror.hasNode(n)&&(r=this.mirror.getId(n)),r&&r!==-1&&(this.movedMap[yu(this.mirror.getId(t),r)]=!0)}else this.addedSet.add(t),this.droppedSet.delete(t);$e(t,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(t.childNodes.forEach(r=>this.genAdds(r)),xi(t)&&t.shadowRoot.childNodes.forEach(r=>{this.processedNodeManager.add(r,this),this.genAdds(r,t)}))}}}init(t){["mutationCb","blockClass","blockSelector","unblockSelector","maskAllText","maskTextClass","unmaskTextClass","maskTextSelector","unmaskTextSelector","inlineStylesheet","maskInputOptions","maskAttributeFn","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(n=>{this[n]=t[n]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function Mi(e,t){e.delete(t),t.childNodes.forEach(n=>Mi(e,n))}function Su(e,t,n){return e.length===0?!1:tw(e,t,n)}function tw(e,t,n){let r=t.parentNode;for(;r;){const s=n.getId(r);if(e.some(o=>o.id===s))return!0;r=r.parentNode}return!1}function bu(e,t){return e.size===0?!1:np(e,t)}function np(e,t){const{parentNode:n}=t;return n?e.has(n)?!0:np(e,n):!1}let sr;function nw(e){sr=e}function rw(){sr=void 0}const Q=e=>sr?(...n)=>{try{return e(...n)}catch(r){if(sr&&sr(r)===!0)return()=>{};throw r}}:e,yn=[];function Nr(e){try{if("composedPath"in e){const t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function rp(e,t){const n=new ew;yn.push(n),n.init(e);let r=window.MutationObserver||window.__rrMutationObserver;const s=window?.Zone?.__symbol__?.("MutationObserver");s&&window[s]&&(r=window[s]);const o=new r(Q(i=>{e.onMutation&&e.onMutation(i)===!1||n.processMutations.bind(n)(i)}));return o.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),o}function sw({mousemoveCb:e,sampling:t,doc:n,mirror:r}){if(t.mousemove===!1)return()=>{};const s=typeof t.mousemove=="number"?t.mousemove:50,o=typeof t.mousemoveCallback=="number"?t.mousemoveCallback:500;let i=[],a;const c=lr(Q(l=>{const f=Date.now()-a;e(i.map(p=>(p.timeOffset-=f,p)),l),i=[],a=null}),o),u=Q(lr(Q(l=>{const f=Nr(l),{clientX:p,clientY:h}=Ri(l)?l.changedTouches[0]:l;a||(a=Hs()),i.push({x:p,y:h,id:r.getId(f),timeOffset:Hs()-a}),c(typeof DragEvent<"u"&&l instanceof DragEvent?z.Drag:l instanceof MouseEvent?z.MouseMove:z.TouchMove)}),s,{trailing:!1})),d=[Me("mousemove",u,n),Me("touchmove",u,n),Me("drag",u,n)];return Q(()=>{d.forEach(l=>l())})}function ow({mouseInteractionCb:e,doc:t,mirror:n,blockClass:r,blockSelector:s,unblockSelector:o,sampling:i}){if(i.mouseInteraction===!1)return()=>{};const a=i.mouseInteraction===!0||i.mouseInteraction===void 0?{}:i.mouseInteraction,c=[];let u=null;const d=l=>f=>{const p=Nr(f);if($e(p,r,s,o,!0))return;let h=null,m=l;if("pointerType"in f){switch(f.pointerType){case"mouse":h=it.Mouse;break;case"touch":h=it.Touch;break;case"pen":h=it.Pen;break}h===it.Touch?xe[l]===xe.MouseDown?m="TouchStart":xe[l]===xe.MouseUp&&(m="TouchEnd"):it.Pen}else Ri(f)&&(h=it.Touch);h!==null?(u=h,(m.startsWith("Touch")&&h===it.Touch||m.startsWith("Mouse")&&h===it.Mouse)&&(h=null)):xe[l]===xe.Click&&(h=u,u=null);const g=Ri(f)?f.changedTouches[0]:f;if(!g)return;const y=n.getId(p),{clientX:b,clientY:P}=g;Q(e)({type:xe[m],id:y,x:b,y:P,...h!==null&&{pointerType:h}})};return Object.keys(xe).filter(l=>Number.isNaN(Number(l))&&!l.endsWith("_Departed")&&a[l]!==!1).forEach(l=>{let f=Pn(l);const p=d(l);if(window.PointerEvent)switch(xe[l]){case xe.MouseDown:case xe.MouseUp:f=f.replace("mouse","pointer");break;case xe.TouchStart:case xe.TouchEnd:return}c.push(Me(f,p,t))}),Q(()=>{c.forEach(l=>l())})}function sp({scrollCb:e,doc:t,mirror:n,blockClass:r,blockSelector:s,unblockSelector:o,sampling:i}){const a=Q(lr(Q(c=>{const u=Nr(c);if(!u||$e(u,r,s,o,!0))return;const d=n.getId(u);if(u===t&&t.defaultView){const l=Vf(t.defaultView);e({id:d,x:l.left,y:l.top})}else e({id:d,x:u.scrollLeft,y:u.scrollTop})}),i.scroll||100));return Me("scroll",a,t)}function iw({viewportResizeCb:e},{win:t}){let n=-1,r=-1;const s=Q(lr(Q(()=>{const o=Yf(),i=Xf();(n!==o||r!==i)&&(e({width:Number(i),height:Number(o)}),n=o,r=i)}),200));return Me("resize",s,t)}const aw=["INPUT","TEXTAREA","SELECT"],Eu=new WeakMap;function cw({inputCb:e,doc:t,mirror:n,blockClass:r,blockSelector:s,unblockSelector:o,ignoreClass:i,ignoreSelector:a,maskInputOptions:c,maskInputFn:u,sampling:d,userTriggeredOnInput:l,maskTextClass:f,unmaskTextClass:p,maskTextSelector:h,unmaskTextSelector:m}){function g(w){let M=Nr(w);const E=w.isTrusted,I=M&&ki(M.tagName);if(I==="OPTION"&&(M=M.parentElement),!M||!I||aw.indexOf(I)<0||$e(M,r,s,o,!0))return;const D=M;if(D.classList.contains(i)||a&&D.matches(a))return;const v=Ta(M);let A=Bs(D,I,v),W=!1;const L=uo({maskInputOptions:c,tagName:I,type:v}),x=Dn(M,f,h,p,m,L);(v==="radio"||v==="checkbox")&&(W=M.checked),A=cr({isMasked:x,element:M,value:A,maskInputFn:u}),y(M,l?{text:A,isChecked:W,userTriggered:E}:{text:A,isChecked:W});const F=M.name;v==="radio"&&F&&W&&t.querySelectorAll(`input[type="radio"][name="${F}"]`).forEach(O=>{if(O!==M){const q=cr({isMasked:x,element:O,value:Bs(O,I,v),maskInputFn:u});y(O,l?{text:q,isChecked:!W,userTriggered:!1}:{text:q,isChecked:!W})}})}function y(w,M){const E=Eu.get(w);if(!E||E.text!==M.text||E.isChecked!==M.isChecked){Eu.set(w,M);const I=n.getId(w);Q(e)({...M,id:I})}}const P=(d.input==="last"?["change"]:["input","change"]).map(w=>Me(w,Q(g),t)),k=t.defaultView;if(!k)return()=>{P.forEach(w=>w())};const R=k.Object.getOwnPropertyDescriptor(k.HTMLInputElement.prototype,"value"),S=[[k.HTMLInputElement.prototype,"value"],[k.HTMLInputElement.prototype,"checked"],[k.HTMLSelectElement.prototype,"value"],[k.HTMLTextAreaElement.prototype,"value"],[k.HTMLSelectElement.prototype,"selectedIndex"],[k.HTMLOptionElement.prototype,"selected"]];return R&&R.set&&P.push(...S.map(w=>Gf(w[0],w[1],{set(){Q(g)({target:this,isTrusted:!1})}},!1,k))),Q(()=>{P.forEach(w=>w())})}function Ws(e){const t=[];function n(r,s){if(Xr("CSSGroupingRule")&&r.parentRule instanceof CSSGroupingRule||Xr("CSSMediaRule")&&r.parentRule instanceof CSSMediaRule||Xr("CSSSupportsRule")&&r.parentRule instanceof CSSSupportsRule||Xr("CSSConditionRule")&&r.parentRule instanceof CSSConditionRule){const i=Array.from(r.parentRule.cssRules).indexOf(r);s.unshift(i)}else if(r.parentStyleSheet){const i=Array.from(r.parentStyleSheet.cssRules).indexOf(r);s.unshift(i)}return s}return n(e,t)}function Tt(e,t,n){let r,s;return e?(e.ownerNode?r=t.getId(e.ownerNode):s=n.getId(e),{styleId:s,id:r}):{}}function uw({styleSheetRuleCb:e,mirror:t,stylesheetManager:n},{win:r}){if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};const s=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(s,{apply:Q((d,l,f)=>{const[p,h]=f,{id:m,styleId:g}=Tt(l,t,n.styleMirror);return(m&&m!==-1||g&&g!==-1)&&e({id:m,styleId:g,adds:[{rule:p,index:h}]}),d.apply(l,f)})});const o=r.CSSStyleSheet.prototype.deleteRule;r.CSSStyleSheet.prototype.deleteRule=new Proxy(o,{apply:Q((d,l,f)=>{const[p]=f,{id:h,styleId:m}=Tt(l,t,n.styleMirror);return(h&&h!==-1||m&&m!==-1)&&e({id:h,styleId:m,removes:[{index:p}]}),d.apply(l,f)})});let i;r.CSSStyleSheet.prototype.replace&&(i=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(i,{apply:Q((d,l,f)=>{const[p]=f,{id:h,styleId:m}=Tt(l,t,n.styleMirror);return(h&&h!==-1||m&&m!==-1)&&e({id:h,styleId:m,replace:p}),d.apply(l,f)})}));let a;r.CSSStyleSheet.prototype.replaceSync&&(a=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(a,{apply:Q((d,l,f)=>{const[p]=f,{id:h,styleId:m}=Tt(l,t,n.styleMirror);return(h&&h!==-1||m&&m!==-1)&&e({id:h,styleId:m,replaceSync:p}),d.apply(l,f)})}));const c={};Kr("CSSGroupingRule")?c.CSSGroupingRule=r.CSSGroupingRule:(Kr("CSSMediaRule")&&(c.CSSMediaRule=r.CSSMediaRule),Kr("CSSConditionRule")&&(c.CSSConditionRule=r.CSSConditionRule),Kr("CSSSupportsRule")&&(c.CSSSupportsRule=r.CSSSupportsRule));const u={};return Object.entries(c).forEach(([d,l])=>{u[d]={insertRule:l.prototype.insertRule,deleteRule:l.prototype.deleteRule},l.prototype.insertRule=new Proxy(u[d].insertRule,{apply:Q((f,p,h)=>{const[m,g]=h,{id:y,styleId:b}=Tt(p.parentStyleSheet,t,n.styleMirror);return(y&&y!==-1||b&&b!==-1)&&e({id:y,styleId:b,adds:[{rule:m,index:[...Ws(p),g||0]}]}),f.apply(p,h)})}),l.prototype.deleteRule=new Proxy(u[d].deleteRule,{apply:Q((f,p,h)=>{const[m]=h,{id:g,styleId:y}=Tt(p.parentStyleSheet,t,n.styleMirror);return(g&&g!==-1||y&&y!==-1)&&e({id:g,styleId:y,removes:[{index:[...Ws(p),m]}]}),f.apply(p,h)})})}),Q(()=>{r.CSSStyleSheet.prototype.insertRule=s,r.CSSStyleSheet.prototype.deleteRule=o,i&&(r.CSSStyleSheet.prototype.replace=i),a&&(r.CSSStyleSheet.prototype.replaceSync=a),Object.entries(c).forEach(([d,l])=>{l.prototype.insertRule=u[d].insertRule,l.prototype.deleteRule=u[d].deleteRule})})}function op({mirror:e,stylesheetManager:t},n){let r=null;n.nodeName==="#document"?r=e.getId(n):r=e.getId(n.host);const s=n.nodeName==="#document"?n.defaultView?.Document:n.ownerDocument?.defaultView?.ShadowRoot,o=s?.prototype?Object.getOwnPropertyDescriptor(s?.prototype,"adoptedStyleSheets"):void 0;return r===null||r===-1||!s||!o?()=>{}:(Object.defineProperty(n,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get(){return o.get?.call(this)},set(i){const a=o.set?.call(this,i);if(r!==null&&r!==-1)try{t.adoptStyleSheets(i,r)}catch{}return a}}),Q(()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get:o.get,set:o.set})}))}function lw({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:r},{win:s}){const o=s.CSSStyleDeclaration.prototype.setProperty;s.CSSStyleDeclaration.prototype.setProperty=new Proxy(o,{apply:Q((a,c,u)=>{const[d,l,f]=u;if(n.has(d))return o.apply(c,[d,l,f]);const{id:p,styleId:h}=Tt(c.parentRule?.parentStyleSheet,t,r.styleMirror);return(p&&p!==-1||h&&h!==-1)&&e({id:p,styleId:h,set:{property:d,value:l,priority:f},index:Ws(c.parentRule)}),a.apply(c,u)})});const i=s.CSSStyleDeclaration.prototype.removeProperty;return s.CSSStyleDeclaration.prototype.removeProperty=new Proxy(i,{apply:Q((a,c,u)=>{const[d]=u;if(n.has(d))return i.apply(c,[d]);const{id:l,styleId:f}=Tt(c.parentRule?.parentStyleSheet,t,r.styleMirror);return(l&&l!==-1||f&&f!==-1)&&e({id:l,styleId:f,remove:{property:d},index:Ws(c.parentRule)}),a.apply(c,u)})}),Q(()=>{s.CSSStyleDeclaration.prototype.setProperty=o,s.CSSStyleDeclaration.prototype.removeProperty=i})}function dw({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:r,mirror:s,sampling:o,doc:i}){const a=Q(u=>lr(Q(d=>{const l=Nr(d);if(!l||$e(l,t,n,r,!0))return;const{currentTime:f,volume:p,muted:h,playbackRate:m}=l;e({type:u,id:s.getId(l),currentTime:f,volume:p,muted:h,playbackRate:m})}),o.media||500)),c=[Me("play",a(pn.Play),i),Me("pause",a(pn.Pause),i),Me("seeked",a(pn.Seeked),i),Me("volumechange",a(pn.VolumeChange),i),Me("ratechange",a(pn.RateChange),i)];return Q(()=>{c.forEach(u=>u())})}function fw({fontCb:e,doc:t}){const n=t.defaultView;if(!n)return()=>{};const r=[],s=new WeakMap,o=n.FontFace;n.FontFace=function(c,u,d){const l=new o(c,u,d);return s.set(l,{family:c,buffer:typeof u!="string",descriptors:d,fontSource:typeof u=="string"?u:JSON.stringify(Array.from(new Uint8Array(u)))}),l};const i=ka(t.fonts,"add",function(a){return function(c){return fo(Q(()=>{const u=s.get(c);u&&(e(u),s.delete(c))}),0),a.apply(this,[c])}});return r.push(()=>{n.FontFace=o}),r.push(i),Q(()=>{r.forEach(a=>a())})}function pw(e){const{doc:t,mirror:n,blockClass:r,blockSelector:s,unblockSelector:o,selectionCb:i}=e;let a=!0;const c=Q(()=>{const u=t.getSelection();if(!u||a&&u?.isCollapsed)return;a=u.isCollapsed||!1;const d=[],l=u.rangeCount||0;for(let f=0;f<l;f++){const p=u.getRangeAt(f),{startContainer:h,startOffset:m,endContainer:g,endOffset:y}=p;$e(h,r,s,o,!0)||$e(g,r,s,o,!0)||d.push({start:n.getId(h),startOffset:m,end:n.getId(g),endOffset:y})}i({ranges:d})});return c(),Me("selectionchange",c)}function hw({doc:e,customElementCb:t}){const n=e.defaultView;return!n||!n.customElements?()=>{}:ka(n.customElements,"define",function(s){return function(o,i,a){try{t({define:{name:o}})}catch{}return s.apply(this,[o,i,a])}})}function mw(e,t={}){const n=e.doc.defaultView;if(!n)return()=>{};let r;e.recordDOM&&(r=rp(e,e.doc));const s=sw(e),o=ow(e),i=sp(e),a=iw(e,{win:n}),c=cw(e),u=dw(e);let d=()=>{},l=()=>{},f=()=>{},p=()=>{};e.recordDOM&&(d=uw(e,{win:n}),l=op(e,e.doc),f=lw(e,{win:n}),e.collectFonts&&(p=fw(e)));const h=pw(e),m=hw(e),g=[];for(const y of e.plugins)g.push(y.observer(y.callback,n,y.options));return Q(()=>{yn.forEach(y=>y.reset()),r?.disconnect(),s(),o(),i(),a(),c(),u(),d(),l(),f(),p(),h(),m(),g.forEach(y=>y())})}function Xr(e){return typeof window[e]<"u"}function Kr(e){return!!(typeof window[e]<"u"&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class Ai{constructor(t){this.generateIdFn=t,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(t,n,r,s){const o=r||this.getIdToRemoteIdMap(t),i=s||this.getRemoteIdToIdMap(t);let a=o.get(n);return a||(a=this.generateIdFn(),o.set(n,a),i.set(a,n)),a}getIds(t,n){const r=this.getIdToRemoteIdMap(t),s=this.getRemoteIdToIdMap(t);return n.map(o=>this.getId(t,o,r,s))}getRemoteId(t,n,r){const s=r||this.getRemoteIdToIdMap(t);if(typeof n!="number")return n;const o=s.get(n);return o||-1}getRemoteIds(t,n){const r=this.getRemoteIdToIdMap(t);return n.map(s=>this.getRemoteId(t,s,r))}reset(t){if(!t){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(t),this.iframeRemoteIdToIdMap.delete(t)}getIdToRemoteIdMap(t){let n=this.iframeIdToRemoteIdMap.get(t);return n||(n=new Map,this.iframeIdToRemoteIdMap.set(t,n)),n}getRemoteIdToIdMap(t){let n=this.iframeRemoteIdToIdMap.get(t);return n||(n=new Map,this.iframeRemoteIdToIdMap.set(t,n)),n}}class gw{constructor(){this.crossOriginIframeMirror=new Ai(Ia),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class _w{constructor(t){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new Ai(Ia),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=t.mutationCb,this.wrappedEmit=t.wrappedEmit,this.stylesheetManager=t.stylesheetManager,this.recordCrossOriginIframes=t.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new Ai(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=t.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(t){this.iframes.set(t,!0),t.contentWindow&&this.crossOriginIframeMap.set(t.contentWindow,t)}addLoadListener(t){this.loadListener=t}attachIframe(t,n){this.mutationCb({adds:[{parentId:this.mirror.getId(t),nextId:null,node:n}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&t.contentWindow?.addEventListener("message",this.handleMessage.bind(this)),this.loadListener?.(t);const r=Ra(t);r&&r.adoptedStyleSheets&&r.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(r.adoptedStyleSheets,this.mirror.getId(r))}handleMessage(t){const n=t;if(n.data.type!=="rrweb"||n.origin!==n.data.origin||!t.source)return;const s=this.crossOriginIframeMap.get(t.source);if(!s)return;const o=this.transformCrossOriginEvent(s,n.data.event);o&&this.wrappedEmit(o,n.data.isCheckout)}transformCrossOriginEvent(t,n){switch(n.type){case V.FullSnapshot:{this.crossOriginIframeMirror.reset(t),this.crossOriginIframeStyleMirror.reset(t),this.replaceIdOnNode(n.data.node,t);const r=n.data.node.id;return this.crossOriginIframeRootIdMap.set(t,r),this.patchRootIdOnNode(n.data.node,r),{timestamp:n.timestamp,type:V.IncrementalSnapshot,data:{source:z.Mutation,adds:[{parentId:this.mirror.getId(t),nextId:null,node:n.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case V.Meta:case V.Load:case V.DomContentLoaded:return!1;case V.Plugin:return n;case V.Custom:return this.replaceIds(n.data.payload,t,["id","parentId","previousId","nextId"]),n;case V.IncrementalSnapshot:switch(n.data.source){case z.Mutation:return n.data.adds.forEach(r=>{this.replaceIds(r,t,["parentId","nextId","previousId"]),this.replaceIdOnNode(r.node,t);const s=this.crossOriginIframeRootIdMap.get(t);s&&this.patchRootIdOnNode(r.node,s)}),n.data.removes.forEach(r=>{this.replaceIds(r,t,["parentId","id"])}),n.data.attributes.forEach(r=>{this.replaceIds(r,t,["id"])}),n.data.texts.forEach(r=>{this.replaceIds(r,t,["id"])}),n;case z.Drag:case z.TouchMove:case z.MouseMove:return n.data.positions.forEach(r=>{this.replaceIds(r,t,["id"])}),n;case z.ViewportResize:return!1;case z.MediaInteraction:case z.MouseInteraction:case z.Scroll:case z.CanvasMutation:case z.Input:return this.replaceIds(n.data,t,["id"]),n;case z.StyleSheetRule:case z.StyleDeclaration:return this.replaceIds(n.data,t,["id"]),this.replaceStyleIds(n.data,t,["styleId"]),n;case z.Font:return n;case z.Selection:return n.data.ranges.forEach(r=>{this.replaceIds(r,t,["start","end"])}),n;case z.AdoptedStyleSheet:return this.replaceIds(n.data,t,["id"]),this.replaceStyleIds(n.data,t,["styleIds"]),n.data.styles?.forEach(r=>{this.replaceStyleIds(r,t,["styleId"])}),n}}return!1}replace(t,n,r,s){for(const o of s)!Array.isArray(n[o])&&typeof n[o]!="number"||(Array.isArray(n[o])?n[o]=t.getIds(r,n[o]):n[o]=t.getId(r,n[o]));return n}replaceIds(t,n,r){return this.replace(this.crossOriginIframeMirror,t,n,r)}replaceStyleIds(t,n,r){return this.replace(this.crossOriginIframeStyleMirror,t,n,r)}replaceIdOnNode(t,n){this.replaceIds(t,n,["id","rootId"]),"childNodes"in t&&t.childNodes.forEach(r=>{this.replaceIdOnNode(r,n)})}patchRootIdOnNode(t,n){t.type!==we.Document&&!t.rootId&&(t.rootId=n),"childNodes"in t&&t.childNodes.forEach(r=>{this.patchRootIdOnNode(r,n)})}}class yw{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class Sw{constructor(t){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=t.mutationCb,this.scrollCb=t.scrollCb,this.bypassOptions=t.bypassOptions,this.mirror=t.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(t,n){if(!rr(t)||this.shadowDoms.has(t))return;this.shadowDoms.add(t),this.bypassOptions.canvasManager.addShadowRoot(t);const r=rp({...this.bypassOptions,doc:n,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},t);this.restoreHandlers.push(()=>r.disconnect()),this.restoreHandlers.push(sp({...this.bypassOptions,scrollCb:this.scrollCb,doc:t,mirror:this.mirror})),fo(()=>{t.adoptedStyleSheets&&t.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(t.adoptedStyleSheets,this.mirror.getId(t.host)),this.restoreHandlers.push(op({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},t))},0)}observeAttachShadow(t){const n=Ra(t),r=Z0(t);!n||!r||this.patchAttachShadow(r.Element,n)}patchAttachShadow(t,n){const r=this;this.restoreHandlers.push(ka(t.prototype,"attachShadow",function(s){return function(o){const i=s.call(this,o);return this.shadowRoot&&tp(this)&&r.addShadowRoot(this.shadowRoot,n),i}}))}reset(){this.restoreHandlers.forEach(t=>{try{t()}catch{}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}}var vu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bw=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Jr=0;Jr<vu.length;Jr++)bw[vu.charCodeAt(Jr)]=Jr;class wu{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}}class Ew{constructor(t){this.trackedLinkElements=new WeakSet,this.styleMirror=new V0,this.mutationCb=t.mutationCb,this.adoptedStyleSheetCb=t.adoptedStyleSheetCb}attachLinkElement(t,n){"_cssText"in n.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:n.id,attributes:n.attributes}]}),this.trackLinkElement(t)}trackLinkElement(t){this.trackedLinkElements.has(t)||(this.trackedLinkElements.add(t),this.trackStylesheetInLinkElement(t))}adoptStyleSheets(t,n){if(t.length===0)return;const r={id:n,styleIds:[]},s=[];for(const o of t){let i;this.styleMirror.has(o)?i=this.styleMirror.getId(o):(i=this.styleMirror.add(o),s.push({styleId:i,rules:Array.from(o.rules||CSSRule,(a,c)=>({rule:Ff(a),index:c}))})),r.styleIds.push(i)}s.length>0&&(r.styles=s),this.adoptedStyleSheetCb(r)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(t){}}class vw{constructor(){this.nodeMap=new WeakMap,this.active=!1}inOtherBuffer(t,n){const r=this.nodeMap.get(t);return r&&Array.from(r).some(s=>s!==n)}add(t,n){this.active||(this.active=!0,K0(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(t,(this.nodeMap.get(t)||new Set).add(n))}destroy(){}}let pe,zs;try{if(Array.from([1],e=>e*2)[0]!==2){const e=document.createElement("iframe");document.body.appendChild(e),Array.from=e.contentWindow?.Array.from||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}const qe=v0();function lt(e={}){const{emit:t,checkoutEveryNms:n,checkoutEveryNth:r,blockClass:s="rr-block",blockSelector:o=null,unblockSelector:i=null,ignoreClass:a="rr-ignore",ignoreSelector:c=null,maskAllText:u=!1,maskTextClass:d="rr-mask",unmaskTextClass:l=null,maskTextSelector:f=null,unmaskTextSelector:p=null,inlineStylesheet:h=!0,maskAllInputs:m,maskInputOptions:g,slimDOMOptions:y,maskAttributeFn:b,maskInputFn:P,maskTextFn:k,maxCanvasSize:R=null,packFn:S,sampling:w={},dataURLOptions:M={},mousemoveWait:E,recordDOM:I=!0,recordCanvas:D=!1,recordCrossOriginIframes:v=!1,recordAfter:A=e.recordAfter==="DOMContentLoaded"?e.recordAfter:"load",userTriggeredOnInput:W=!1,collectFonts:L=!1,inlineImages:x=!1,plugins:F,keepIframeSrcFn:O=()=>!1,ignoreCSSAttributes:q=new Set([]),errorHandler:K,onMutation:ue,getCanvasManager:Ue}=e;nw(K);const be=v?window.parent===window:!0;let Se=!1;if(!be)try{window.parent.document&&(Se=!1)}catch{Se=!0}if(be&&!t)throw new Error("emit function is required");if(!be&&!Se)return()=>{};E!==void 0&&w.mousemove===void 0&&(w.mousemove=E),qe.reset();const De=m===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,radio:!0,checkbox:!0}:g!==void 0?g:{},ot=y===!0||y==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:y==="all",headMetaDescKeywords:y==="all"}:y||{};G0();let an,cn=0;const Kn=ee=>{for(const je of F||[])je.eventProcessor&&(ee=je.eventProcessor(ee));return S&&!Se&&(ee=S(ee)),ee};pe=(ee,je)=>{const Z=ee;if(Z.timestamp=Hs(),yn[0]?.isFrozen()&&Z.type!==V.FullSnapshot&&!(Z.type===V.IncrementalSnapshot&&Z.data.source===z.Mutation)&&yn.forEach(Re=>Re.unfreeze()),be)t?.(Kn(Z),je);else if(Se){const Re={type:"rrweb",event:Kn(Z),origin:window.location.origin,isCheckout:je};window.parent.postMessage(Re,"*")}if(Z.type===V.FullSnapshot)an=Z,cn=0;else if(Z.type===V.IncrementalSnapshot){if(Z.data.source===z.Mutation&&Z.data.isAttachIframe)return;cn++;const Re=r&&cn>=r,te=n&&an&&Z.timestamp-an.timestamp>n;(Re||te)&&Eo(!0)}};const Et=ee=>{pe({type:V.IncrementalSnapshot,data:{source:z.Mutation,...ee}})},le=ee=>pe({type:V.IncrementalSnapshot,data:{source:z.Scroll,...ee}}),Te=ee=>pe({type:V.IncrementalSnapshot,data:{source:z.CanvasMutation,...ee}}),Ze=ee=>pe({type:V.IncrementalSnapshot,data:{source:z.AdoptedStyleSheet,...ee}}),ge=new Ew({mutationCb:Et,adoptedStyleSheetCb:Ze}),Ee=typeof __RRWEB_EXCLUDE_IFRAME__=="boolean"&&__RRWEB_EXCLUDE_IFRAME__?new gw:new _w({mirror:qe,mutationCb:Et,stylesheetManager:ge,recordCrossOriginIframes:v,wrappedEmit:pe});for(const ee of F||[])ee.getMirror&&ee.getMirror({nodeMirror:qe,crossOriginIframeMirror:Ee.crossOriginIframeMirror,crossOriginIframeStyleMirror:Ee.crossOriginIframeStyleMirror});const Qe=new vw,Bt=Tw(Ue,{mirror:qe,win:window,mutationCb:ee=>pe({type:V.IncrementalSnapshot,data:{source:z.CanvasMutation,...ee}}),recordCanvas:D,blockClass:s,blockSelector:o,unblockSelector:i,maxCanvasSize:R,sampling:w.canvas,dataURLOptions:M,errorHandler:K}),un=typeof __RRWEB_EXCLUDE_SHADOW_DOM__=="boolean"&&__RRWEB_EXCLUDE_SHADOW_DOM__?new yw:new Sw({mutationCb:Et,scrollCb:le,bypassOptions:{onMutation:ue,blockClass:s,blockSelector:o,unblockSelector:i,maskAllText:u,maskTextClass:d,unmaskTextClass:l,maskTextSelector:f,unmaskTextSelector:p,inlineStylesheet:h,maskInputOptions:De,dataURLOptions:M,maskAttributeFn:b,maskTextFn:k,maskInputFn:P,recordCanvas:D,inlineImages:x,sampling:w,slimDOMOptions:ot,iframeManager:Ee,stylesheetManager:ge,canvasManager:Bt,keepIframeSrcFn:O,processedNodeManager:Qe},mirror:qe}),Eo=(ee=!1)=>{if(!I)return;pe({type:V.Meta,data:{href:window.location.href,width:Xf(),height:Yf()}},ee),ge.reset(),un.init(),yn.forEach(Z=>Z.lock());const je=j0(document,{mirror:qe,blockClass:s,blockSelector:o,unblockSelector:i,maskAllText:u,maskTextClass:d,unmaskTextClass:l,maskTextSelector:f,unmaskTextSelector:p,inlineStylesheet:h,maskAllInputs:De,maskAttributeFn:b,maskInputFn:P,maskTextFn:k,slimDOM:ot,dataURLOptions:M,recordCanvas:D,inlineImages:x,onSerialize:Z=>{Zf(Z,qe)&&Ee.addIframe(Z),Qf(Z,qe)&&ge.trackLinkElement(Z),xi(Z)&&un.addShadowRoot(Z.shadowRoot,document)},onIframeLoad:(Z,Re)=>{Ee.attachIframe(Z,Re),Z.contentWindow&&Bt.addWindow(Z.contentWindow),un.observeAttachShadow(Z)},onStylesheetLoad:(Z,Re)=>{ge.attachLinkElement(Z,Re)},keepIframeSrcFn:O});if(!je)return console.warn("Failed to snapshot the document");pe({type:V.FullSnapshot,data:{node:je,initialOffset:Vf(window)}}),yn.forEach(Z=>Z.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&ge.adoptStyleSheets(document.adoptedStyleSheets,qe.getId(document))};zs=Eo;try{const ee=[],je=Re=>Q(mw)({onMutation:ue,mutationCb:Et,mousemoveCb:(te,vo)=>pe({type:V.IncrementalSnapshot,data:{source:vo,positions:te}}),mouseInteractionCb:te=>pe({type:V.IncrementalSnapshot,data:{source:z.MouseInteraction,...te}}),scrollCb:le,viewportResizeCb:te=>pe({type:V.IncrementalSnapshot,data:{source:z.ViewportResize,...te}}),inputCb:te=>pe({type:V.IncrementalSnapshot,data:{source:z.Input,...te}}),mediaInteractionCb:te=>pe({type:V.IncrementalSnapshot,data:{source:z.MediaInteraction,...te}}),styleSheetRuleCb:te=>pe({type:V.IncrementalSnapshot,data:{source:z.StyleSheetRule,...te}}),styleDeclarationCb:te=>pe({type:V.IncrementalSnapshot,data:{source:z.StyleDeclaration,...te}}),canvasMutationCb:Te,fontCb:te=>pe({type:V.IncrementalSnapshot,data:{source:z.Font,...te}}),selectionCb:te=>{pe({type:V.IncrementalSnapshot,data:{source:z.Selection,...te}})},customElementCb:te=>{pe({type:V.IncrementalSnapshot,data:{source:z.CustomElement,...te}})},blockClass:s,ignoreClass:a,ignoreSelector:c,maskAllText:u,maskTextClass:d,unmaskTextClass:l,maskTextSelector:f,unmaskTextSelector:p,maskInputOptions:De,inlineStylesheet:h,sampling:w,recordDOM:I,recordCanvas:D,inlineImages:x,userTriggeredOnInput:W,collectFonts:L,doc:Re,maskAttributeFn:b,maskInputFn:P,maskTextFn:k,keepIframeSrcFn:O,blockSelector:o,unblockSelector:i,slimDOMOptions:ot,dataURLOptions:M,mirror:qe,iframeManager:Ee,stylesheetManager:ge,shadowDomManager:un,processedNodeManager:Qe,canvasManager:Bt,ignoreCSSAttributes:q,plugins:F?.filter(te=>te.observer)?.map(te=>({observer:te.observer,options:te.options,callback:vo=>pe({type:V.Plugin,data:{plugin:te.name,payload:vo}})}))||[]},{});Ee.addLoadListener(Re=>{try{ee.push(je(Re.contentDocument))}catch(te){console.warn(te)}});const Z=()=>{Eo(),ee.push(je(document))};return document.readyState==="interactive"||document.readyState==="complete"?Z():(ee.push(Me("DOMContentLoaded",()=>{pe({type:V.DomContentLoaded,data:{}}),A==="DOMContentLoaded"&&Z()})),ee.push(Me("load",()=>{pe({type:V.Load,data:{}}),A==="load"&&Z()},window))),()=>{ee.forEach(Re=>Re()),Qe.destroy(),zs=void 0,rw()}}catch(ee){console.warn(ee)}}function ww(e){if(!zs)throw new Error("please take full snapshot after start recording");zs(e)}lt.mirror=qe;lt.takeFullSnapshot=ww;function Tw(e,t){try{return e?e(t):new wu}catch{return console.warn("Unable to initialize CanvasManager"),new wu}}var Tu;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(Tu||(Tu={}));const Iw=3,kw=5;function xa(e){return e>9999999999?e:e*1e3}function Go(e){return e>9999999999?e/1e3:e}function Or(e,t){t.category!=="sentry.transaction"&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate(()=>(e.throttledAddEvent({type:V.Custom,timestamp:(t.timestamp||0)*1e3,data:{tag:"breadcrumb",payload:Fe(t,10,1e3)}}),t.category==="console")))}const Cw="button,a";function ip(e){return e.closest(Cw)||e}function ap(e){const t=cp(e);return!t||!(t instanceof Element)?t:ip(t)}function cp(e){return Rw(e)?e.target:e}function Rw(e){return typeof e=="object"&&!!e&&"target"in e}let It;function xw(e){return It||(It=[],Mw()),It.push(e),()=>{const t=It?It.indexOf(e):-1;t>-1&&It.splice(t,1)}}function Mw(){Ae(ie,"open",function(e){return function(...t){if(It)try{It.forEach(n=>n())}catch{}return e.apply(ie,t)}})}const Aw=new Set([z.Mutation,z.StyleSheetRule,z.StyleDeclaration,z.AdoptedStyleSheet,z.CanvasMutation,z.Selection,z.MediaInteraction]);function Nw(e,t,n){e.handleClick(t,n)}class Ow{constructor(t,n,r=Or){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=n.timeout/1e3,this._threshold=n.threshold/1e3,this._scrollTimeout=n.scrollTimeout/1e3,this._replay=t,this._ignoreSelector=n.ignoreSelector,this._addBreadcrumbEvent=r}addListeners(){const t=xw(()=>{this._lastMutation=Iu()});this._teardown=()=>{t(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(t,n){if(Pw(n,this._ignoreSelector)||!Dw(t))return;const r={timestamp:Go(t.timestamp),clickBreadcrumb:t,clickCount:0,node:n};this._clicks.some(s=>s.node===r.node&&Math.abs(s.timestamp-r.timestamp)<1)||(this._clicks.push(r),this._clicks.length===1&&this._scheduleCheckClicks())}registerMutation(t=Date.now()){this._lastMutation=Go(t)}registerScroll(t=Date.now()){this._lastScroll=Go(t)}registerClick(t){const n=ip(t);this._handleMultiClick(n)}_handleMultiClick(t){this._getClicks(t).forEach(n=>{n.clickCount++})}_getClicks(t){return this._clicks.filter(n=>n.node===t)}_checkClicks(){const t=[],n=Iu();this._clicks.forEach(r=>{!r.mutationAfter&&this._lastMutation&&(r.mutationAfter=r.timestamp<=this._lastMutation?this._lastMutation-r.timestamp:void 0),!r.scrollAfter&&this._lastScroll&&(r.scrollAfter=r.timestamp<=this._lastScroll?this._lastScroll-r.timestamp:void 0),r.timestamp+this._timeout<=n&&t.push(r)});for(const r of t){const s=this._clicks.indexOf(r);s>-1&&(this._generateBreadcrumbs(r),this._clicks.splice(s,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(t){const n=this._replay,r=t.scrollAfter&&t.scrollAfter<=this._scrollTimeout,s=t.mutationAfter&&t.mutationAfter<=this._threshold,o=!r&&!s,{clickCount:i,clickBreadcrumb:a}=t;if(o){const c=Math.min(t.mutationAfter||this._timeout,this._timeout)*1e3,u=c<this._timeout*1e3?"mutation":"timeout",d={type:"default",message:a.message,timestamp:a.timestamp,category:"ui.slowClickDetected",data:{...a.data,url:ie.location.href,route:n.getCurrentRoute(),timeAfterClickMs:c,endReason:u,clickCount:i||1}};this._addBreadcrumbEvent(n,d);return}if(i>1){const c={type:"default",message:a.message,timestamp:a.timestamp,category:"ui.multiClick",data:{...a.data,url:ie.location.href,route:n.getCurrentRoute(),clickCount:i,metric:!0}};this._addBreadcrumbEvent(n,c)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=Ar(()=>this._checkClicks(),1e3)}}const Lw=["A","BUTTON","INPUT"];function Pw(e,t){return!!(!Lw.includes(e.tagName)||e.tagName==="INPUT"&&!["submit","button"].includes(e.getAttribute("type")||"")||e.tagName==="A"&&(e.hasAttribute("download")||e.hasAttribute("target")&&e.getAttribute("target")!=="_self")||t&&e.matches(t))}function Dw(e){return!!(e.data&&typeof e.data.nodeId=="number"&&e.timestamp)}function Iu(){return Date.now()/1e3}function Fw(e,t){try{if(!$w(t))return;const{source:n}=t.data;if(Aw.has(n)&&e.registerMutation(t.timestamp),n===z.Scroll&&e.registerScroll(t.timestamp),Bw(t)){const{type:r,id:s}=t.data,o=lt.mirror.getNode(s);o instanceof HTMLElement&&r===xe.Click&&e.registerClick(o)}}catch{}}function $w(e){return e.type===Iw}function Bw(e){return e.data.source===z.MouseInteraction}function tt(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var Ma=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(Ma||{});const Uw=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function Hw(e){const t={};!e["data-sentry-component"]&&e["data-sentry-element"]&&(e["data-sentry-component"]=e["data-sentry-element"]);for(const n in e)if(Uw.has(n)){let r=n;(n==="data-testid"||n==="data-test-id")&&(r="testId"),t[r]=e[n]}return t}const Ww=e=>t=>{if(!e.isEnabled())return;const n=zw(t);if(!n)return;const r=t.name==="click",s=r?t.event:void 0;r&&e.clickDetector&&s?.target&&!s.altKey&&!s.metaKey&&!s.ctrlKey&&!s.shiftKey&&Nw(e.clickDetector,n,ap(t.event)),Or(e,n)};function up(e,t){const n=lt.mirror.getId(e),r=n&<.mirror.getNode(n),s=r&<.mirror.getMeta(r),o=s&&qw(s)?s:null;return{message:t,data:o?{nodeId:n,node:{id:n,tagName:o.tagName,textContent:Array.from(o.childNodes).map(i=>i.type===Ma.Text&&i.textContent).filter(Boolean).map(i=>i.trim()).join(""),attributes:Hw(o.attributes)}}:{}}}function zw(e){const{target:t,message:n}=jw(e);return tt({category:`ui.${e.name}`,...up(t,n)})}function jw(e){const t=e.name==="click";let n,r=null;try{r=t?ap(e.event):cp(e.event),n=ze(r,{maxStringLength:200})||"<unknown>"}catch{n="<unknown>"}return{target:r,message:n}}function qw(e){return e.type===Ma.Element}function Gw(e,t){if(!e.isEnabled())return;e.updateUserActivity();const n=Vw(t);n&&Or(e,n)}function Vw(e){const{metaKey:t,shiftKey:n,ctrlKey:r,altKey:s,key:o,target:i}=e;if(!i||Yw(i)||!o)return null;const a=t||r||s,c=o.length===1;if(!a&&c)return null;const u=ze(i,{maxStringLength:200})||"<unknown>",d=up(i,u);return tt({category:"ui.keyDown",message:u,data:{...d.data,metaKey:t,shiftKey:n,ctrlKey:r,altKey:s,key:o}})}function Yw(e){return e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable}const Xw={resource:eT,paint:Zw,navigation:Qw};function Zr(e,t){return({metric:n})=>void t.replayPerformanceEntries.push(e(n))}function Kw(e){return e.map(Jw).filter(Boolean)}function Jw(e){const t=Xw[e.entryType];return t?t(e):null}function Fn(e){return((Ce()||ie.performance.timeOrigin)+e)/1e3}function Zw(e){const{duration:t,entryType:n,name:r,startTime:s}=e,o=Fn(s);return{type:n,name:r,start:o,end:o+t,data:void 0}}function Qw(e){const{entryType:t,name:n,decodedBodySize:r,duration:s,domComplete:o,encodedBodySize:i,domContentLoadedEventStart:a,domContentLoadedEventEnd:c,domInteractive:u,loadEventStart:d,loadEventEnd:l,redirectCount:f,startTime:p,transferSize:h,type:m}=e;return s===0?null:{type:`${t}.${m}`,start:Fn(p),end:Fn(o),name:n,data:{size:h,decodedBodySize:r,encodedBodySize:i,duration:s,domInteractive:u,domContentLoadedEventStart:a,domContentLoadedEventEnd:c,loadEventStart:d,loadEventEnd:l,domComplete:o,redirectCount:f}}}function eT(e){const{entryType:t,initiatorType:n,name:r,responseEnd:s,startTime:o,decodedBodySize:i,encodedBodySize:a,responseStatus:c,transferSize:u}=e;return["fetch","xmlhttprequest"].includes(n)?null:{type:`${t}.${n}`,start:Fn(o),end:Fn(s),name:r,data:{size:u,statusCode:c,decodedBodySize:i,encodedBodySize:a}}}function tT(e){const t=e.entries[e.entries.length-1],n=t?.element?[t.element]:void 0;return po(e,"largest-contentful-paint",n)}function nT(e){return e.sources!==void 0}function rT(e){const t=[],n=[];for(const r of e.entries)if(nT(r)){const s=[];for(const o of r.sources)if(o.node){n.push(o.node);const i=lt.mirror.getId(o.node);i&&s.push(i)}t.push({value:r.value,nodeIds:s.length?s:void 0})}return po(e,"cumulative-layout-shift",n,t)}function sT(e){const t=e.entries[e.entries.length-1],n=t?.target?[t.target]:void 0;return po(e,"first-input-delay",n)}function oT(e){const t=e.entries[e.entries.length-1],n=t?.target?[t.target]:void 0;return po(e,"interaction-to-next-paint",n)}function po(e,t,n,r){const s=e.value,o=e.rating,i=Fn(s);return{type:"web-vital",name:t,start:i,end:i,data:{value:s,size:s,rating:o,nodeIds:n?n.map(a=>lt.mirror.getId(a)):void 0,attributions:r}}}function iT(e){function t(s){e.performanceEntries.includes(s)||e.performanceEntries.push(s)}function n({entries:s}){s.forEach(t)}const r=[];return["navigation","paint","resource"].forEach(s=>{r.push(Qt(s,n))}),r.push(ma(Zr(tT,e)),ha(Zr(rT,e)),cf(Zr(sT,e)),uf(Zr(oT,e))),()=>{r.forEach(s=>s())}}const $=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,aT='var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),s=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),a=function(t,e){for(var i=new n(31),s=0;s<31;++s)i[s]=e+=1<<t[s-1];var a=new r(i[30]);for(s=1;s<30;++s)for(var o=i[s];o<i[s+1];++o)a[o]=o-i[s]<<5|s;return{b:i,r:a}},o=a(e,2),h=o.b,f=o.r;h[28]=258,f[258]=28;for(var l=a(i,0).r,u=new n(32768),c=0;c<32768;++c){var v=(43690&c)>>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,s=0,a=new n(r);s<i;++s)t[s]&&++a[t[s]-1];var o,h=new n(r);for(s=1;s<r;++s)h[s]=h[s-1]+a[s-1]<<1;if(e){o=new n(1<<r);var f=15-r;for(s=0;s<i;++s)if(t[s])for(var l=s<<4|t[s],c=r-t[s],v=h[t[s]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>f]=l}else for(o=new n(i),s=0;s<i;++s)t[s]&&(o[s]=u[h[t[s]-1]++]>>15-t[s]);return o},p=new t(288);for(c=0;c<144;++c)p[c]=8;for(c=144;c<256;++c)p[c]=9;for(c=256;c<280;++c)p[c]=7;for(c=280;c<288;++c)p[c]=8;var g=new t(32);for(c=0;c<32;++c)g[c]=5;var w=d(p,9,0),y=d(g,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))},M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},_=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16},x=function(r,e){for(var i=[],s=0;s<r.length;++s)r[s]&&i.push({s:s,f:r[s]});var a=i.length,o=i.slice();if(!a)return{t:F,l:0};if(1==a){var h=new t(i[0].s+1);return h[i[0].s]=1,{t:h,l:1}}i.sort(function(t,n){return t.f-n.f}),i.push({s:-1,f:25001});var f=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:f.f+l.f,l:f,r:l};c!=a-1;)f=i[i[u].f<i[v].f?u++:v++],l=i[u!=c&&i[u].f<i[v].f?u++:v++],i[c++]={s:-1,f:f.f+l.f,l:f,r:l};var d=o[0].s;for(s=1;s<a;++s)o[s].s>d&&(d=o[s].s);var p=new n(d+1),g=A(i[c-1],p,0);if(g>e){s=0;var w=0,y=g-e,m=1<<y;for(o.sort(function(t,n){return p[n.s]-p[t.s]||t.f-n.f});s<a;++s){var b=o[s].s;if(!(p[b]>e))break;w+=m-(1<<g-p[b]),p[b]=e}for(w>>=y;w>0;){var M=o[s].s;p[M]<e?w-=1<<e-p[M]++-1:++s}for(;s>=0&&w;--s){var E=o[s].s;p[E]==e&&(--p[E],++w)}g=e}return{t:new t(p),l:g}},A=function(t,n,r){return-1==t.s?Math.max(A(t.l,n,r+1),A(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,s=t[0],a=1,o=function(t){e[i++]=t},h=1;h<=r;++h)if(t[h]==s&&h!=r)++a;else{if(!s&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(o(s),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0)}for(;a--;)o(s);a=1,s=t[h]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e<n.length;++e)r+=t[e]*n[e];return r},k=function(t,n,r){var e=r.length,i=m(n+2);t[i]=255&e,t[i+1]=e>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var s=0;s<e;++s)t[i+s+4]=r[s];return 8*(i+4+e)},U=function(t,r,a,o,h,f,l,u,c,v,m){z(r,m++,a),++h[256];for(var b=x(h,15),M=b.t,E=b.l,A=x(f,15),U=A.t,C=A.l,F=D(M),I=F.c,S=F.n,L=D(U),O=L.c,j=L.n,q=new n(19),B=0;B<I.length;++B)++q[31&I[B]];for(B=0;B<O.length;++B)++q[31&O[B]];for(var G=x(q,7),H=G.t,J=G.l,K=19;K>4&&!H[s[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(h,p)+T(f,g)+l,X=T(h,M)+T(f,U)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X<W)),m+=2,X<W){N=d(M,E,0),P=M,Q=d(U,C,0),R=U;var Y=d(H,J,0);z(r,m,S-257),z(r,m+5,j-1),z(r,m+10,K-4),m+=14;for(B=0;B<K;++B)z(r,m+3*B,H[s[B]]);m+=3*K;for(var Z=[I,O],$=0;$<2;++$){var tt=Z[$];for(B=0;B<tt.length;++B){var nt=31&tt[B];z(r,m,Y[nt]),m+=H[nt],nt>15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=w,P=p,Q=y,R=g;for(B=0;B<u;++B){var rt=o[B];if(rt>255){_(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;_(r,m,Q[et]),m+=R[et],et>3&&(_(r,m,rt>>5&8191),m+=i[et])}else _(r,m,N[rt]),m+=P[rt]}return _(r,m,N[256]),m+P[256]},C=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,s=0|r.length,a=0;a!=s;){for(var o=Math.min(a+2655,s);a<o;++a)i+=e+=r[a];e=(65535&e)+15*(e>>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},L=function(s,a,o,h,u){if(!u&&(u={l:1},a.dictionary)){var c=a.dictionary.subarray(-32768),v=new t(c.length+s.length);v.set(c),v.set(s,c.length),s=v,u.w=c.length}return function(s,a,o,h,u,c){var v=c.z||s.length,d=new t(h+v+5*(1+Math.ceil(v/7e3))+u),p=d.subarray(h,d.length-u),g=c.l,w=7&(c.r||0);if(a){w&&(p[0]=c.r>>3);for(var y=C[a-1],M=y>>13,E=8191&y,z=(1<<o)-1,_=c.p||new n(32768),x=c.h||new n(z+1),A=Math.ceil(o/3),D=2*A,T=function(t){return(s[t]^s[t+1]<<A^s[t+2]<<D)&z},F=new r(25e3),I=new n(288),S=new n(32),L=0,O=0,j=c.i||0,q=0,B=c.w||0,G=0;j+2<v;++j){var H=T(j),J=32767&j,K=x[H];if(_[J]=K,x[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!g)){w=U(s,p,0,F,I,S,O,q,G,j-G,w),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(s[j+Q]==s[j+Q-W]){for(var $=0;$<Z&&s[j+$]==s[j+$-W];++$);if($>Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;P<tt;++P){var rt=j-W+P&32767,et=rt-_[rt]&32767;et>nt&&(nt=et,K=rt)}}}W+=(J=K)-(K=_[J])&32767}if(R){F[q++]=268435456|f[Q]<<18|l[R];var it=31&f[Q],st=31&l[R];O+=e[it]+i[st],++I[257+it],++S[st],B=j+Q,++L}else F[q++]=s[j],++I[s[j]]}}for(j=Math.max(j,B);j<v;++j)F[q++]=s[j],++I[s[j]];w=U(s,p,g,F,I,S,O,q,G,j-G,w),g||(c.r=7&w|p[w/8|0]<<3,w-=7,c.h=x,c.p=_,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+g;j+=65535){var at=j+65535;at>=v&&(p[w/8|0]=g,at=v),w=k(p,w+1,s.subarray(j,at))}c.i=v}return b(d,0,h+m(w)+u)}(s,null==a.level?6:a.level,null==a.mem?u.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(s.length)))):20:12+a.mem,o,h,u)},O=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},j=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(L(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var s=this.b.length-this.s.z;this.b.set(n.subarray(0,s),this.s.z),this.s.z=this.b.length,this.p(this.b,!1),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(s),32768),this.s.z=n.length-s+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n.prototype.flush=function(){this.ondata||E(5),this.s.l&&E(4),this.p(this.b,!1),this.s.w=this.s.i,this.s.i-=2},n}();function q(t,n){n||(n={});var r=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e<n.length;++e)r=I[255&r^n[e]]^r>>>8;t=r},d:function(){return~t}}}(),e=t.length;r.p(t);var i,s=L(t,n,10+((i=n).filename?i.filename.length+1:0),8),a=s.length;return function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&O(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}}(s,n),O(s,a-8,r.d()),O(s,a-4,e),s}var B=function(){function t(t,n){this.c=S(),this.v=1,j.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),j.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=L(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=S();i.p(n.dictionary),O(t,2,i.d())}}(r,this.o),this.v=0),n&&O(r,r.length-4,this.c.d()),this.ondata(r,n)},t.prototype.flush=function(){j.prototype.flush.call(this)},t}(),G="undefined"!=typeof TextEncoder&&new TextEncoder,H="undefined"!=typeof TextDecoder&&new TextDecoder;try{H.decode(F,{stream:!0})}catch(t){}var J=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(K(t),this.d=n||!1)},t}();function K(n,r){if(G)return G.encode(n);for(var e=n.length,i=new t(n.length+(n.length>>1)),s=0,a=function(t){i[s++]=t},o=0;o<e;++o){if(s+5>i.length){var h=new t(s+8+(e-o<<1));h.set(i),i=h}var f=n.charCodeAt(o);f<128||r?a(f):f<2048?(a(192|f>>6),a(128|63&f)):f>55295&&f<57344?(a(240|(f=65536+(1047552&f)|1023&n.charCodeAt(++o))>>18),a(128|f>>12&63),a(128|f>>6&63),a(128|63&f)):(a(224|f>>12),a(128|f>>6&63),a(128|63&f))}return b(i,0,s)}const N=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(const r of t)n+=r.length;const r=new Uint8Array(n);for(let n=0,e=0,i=t.length;n<i;n++){const i=t[n];r.set(i,e),e+=i.length}return r}(this._deflatedData);return this._init(),t}_init(){this._hasEvents=!1,this._deflatedData=[],this.deflate=new B,this.deflate.ondata=(t,n)=>{this._deflatedData.push(t)},this.stream=new J((t,n)=>{this.deflate.push(t,n)}),this.stream.push("[")}},P={clear:()=>{N.clear()},addEvent:t=>N.addEvent(t),finish:()=>N.finish(),compress:t=>function(t){return q(K(t))}(t)};addEventListener("message",function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in P&&"function"==typeof P[n])try{const t=P[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}}),postMessage({id:void 0,method:"init",success:!0,response:void 0});';function cT(){const e=new Blob([aT]);return URL.createObjectURL(e)}const ku=["log","warn","error"],hs="[Replay] ";function Vo(e,t="info"){Je({category:"console",data:{logger:"replay"},level:t,message:`${hs}${e}`},{level:t})}function uT(){let e=!1,t=!1;const n={exception:()=>{},infoTick:()=>{},setConfig:r=>{e=!!r.captureExceptions,t=!!r.traceInternals}};return $?(ku.forEach(r=>{n[r]=(...s)=>{_[r](hs,...s),t&&Vo(s.join(""),ra(r))}}),n.exception=(r,...s)=>{s.length&&n.error&&n.error(...s),_.error(hs,r),e?Lt(r):t&&Vo(r,"error")},n.infoTick=(...r)=>{_.log(hs,...r),t&&setTimeout(()=>Vo(r[0]),0)}):ku.forEach(r=>{n[r]=()=>{}}),n}const B=uT();class Aa extends Error{constructor(){super(`Event buffer exceeded maximum size of ${wa}.`)}}class lp{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(t){const n=JSON.stringify(t).length;if(this._totalSize+=n,this._totalSize>wa)throw new Aa;this.events.push(t)}finish(){return new Promise(t=>{const n=this.events;this.clear(),t(JSON.stringify(n))})}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){const t=this.events.map(n=>n.timestamp).sort()[0];return t?xa(t):null}}class lT{constructor(t){this._worker=t,this._id=0}ensureReady(){return this._ensureReadyPromise?this._ensureReadyPromise:(this._ensureReadyPromise=new Promise((t,n)=>{this._worker.addEventListener("message",({data:r})=>{r.success?t():n()},{once:!0}),this._worker.addEventListener("error",r=>{n(r)},{once:!0})}),this._ensureReadyPromise)}destroy(){$&&B.log("Destroying compression worker"),this._worker.terminate()}postMessage(t,n){const r=this._getAndIncrementId();return new Promise((s,o)=>{const i=({data:a})=>{const c=a;if(c.method===t&&c.id===r){if(this._worker.removeEventListener("message",i),!c.success){$&&B.error("Error in compression worker: ",c.response),o(new Error("Error in compression worker"));return}s(c.response)}};this._worker.addEventListener("message",i),this._worker.postMessage({id:r,method:t,arg:n})})}_getAndIncrementId(){return this._id++}}class dT{constructor(t){this._worker=new lT(t),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(t){const n=xa(t.timestamp);(!this._earliestTimestamp||n<this._earliestTimestamp)&&(this._earliestTimestamp=n);const r=JSON.stringify(t);return this._totalSize+=r.length,this._totalSize>wa?Promise.reject(new Aa):this._sendEventToWorker(r)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,t=>{$&&B.exception(t,'Sending "clear" message to worker failed',t)})}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(t){return this._worker.postMessage("addEvent",t)}async _finishRequest(){const t=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,t}}class fT{constructor(t){this._fallback=new lp,this._compression=new dT(t),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get waitForCheckout(){return this._used.waitForCheckout}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(t){this._used.hasCheckout=t}set waitForCheckout(t){this._used.waitForCheckout=t}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(t){return this._used.addEvent(t)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(t){$&&B.exception(t,"Failed to load the compression worker, falling back to simple buffer");return}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){const{events:t,hasCheckout:n,waitForCheckout:r}=this._fallback,s=[];for(const o of t)s.push(this._compression.addEvent(o));this._compression.hasCheckout=n,this._compression.waitForCheckout=r,this._used=this._compression;try{await Promise.all(s),this._fallback.clear()}catch(o){$&&B.exception(o,"Failed to add events when switching buffers.")}}}function pT({useCompression:e,workerUrl:t}){if(e&&window.Worker){const n=hT(t);if(n)return n}return $&&B.log("Using simple buffer"),new lp}function hT(e){try{const t=e||mT();if(!t)return;$&&B.log(`Using compression worker${e?` from ${e}`:""}`);const n=new Worker(t);return new fT(n)}catch(t){$&&B.exception(t,"Failed to create compression worker")}}function mT(){return typeof __SENTRY_EXCLUDE_REPLAY_WORKER__>"u"||!__SENTRY_EXCLUDE_REPLAY_WORKER__?cT():""}function Na(){try{return"sessionStorage"in ie&&!!ie.sessionStorage}catch{return!1}}function gT(e){_T(),e.session=void 0}function _T(){if(Na())try{ie.sessionStorage.removeItem(Ea)}catch{}}function dp(e){return e===void 0?!1:Math.random()<e}function Oa(e){if(Na())try{ie.sessionStorage.setItem(Ea,JSON.stringify(e))}catch{}}function fp(e){const t=Date.now(),n=e.id||Ne(),r=e.started||t,s=e.lastActivity||t,o=e.segmentId||0,i=e.sampled,a=e.previousSessionId;return{id:n,started:r,lastActivity:s,segmentId:o,sampled:i,previousSessionId:a}}function yT(e,t){return dp(e)?"session":t?"buffer":!1}function Cu({sessionSampleRate:e,allowBuffering:t,stickySession:n=!1},{previousSessionId:r}={}){const s=yT(e,t),o=fp({sampled:s,previousSessionId:r});return n&&Oa(o),o}function ST(){if(!Na())return null;try{const e=ie.sessionStorage.getItem(Ea);if(!e)return null;const t=JSON.parse(e);return $&&B.infoTick("Loading existing session"),fp(t)}catch{return null}}function Ni(e,t,n=+new Date){return e===null||t===void 0||t<0?!0:t===0?!1:e+t<=n}function pp(e,{maxReplayDuration:t,sessionIdleExpire:n,targetTime:r=Date.now()}){return Ni(e.started,t,r)||Ni(e.lastActivity,n,r)}function hp(e,{sessionIdleExpire:t,maxReplayDuration:n}){return!(!pp(e,{sessionIdleExpire:t,maxReplayDuration:n})||e.sampled==="buffer"&&e.segmentId===0)}function Yo({sessionIdleExpire:e,maxReplayDuration:t,previousSessionId:n},r){const s=r.stickySession&&ST();return s?hp(s,{sessionIdleExpire:e,maxReplayDuration:t})?($&&B.infoTick("Session in sessionStorage is expired, creating new one..."),Cu(r,{previousSessionId:s.id})):s:($&&B.infoTick("Creating new session"),Cu(r,{previousSessionId:n}))}function bT(e){return e.type===V.Custom}function La(e,t,n){return gp(e,t)?(mp(e,t,n),!0):!1}function ET(e,t,n){return gp(e,t)?mp(e,t,n):Promise.resolve(null)}async function mp(e,t,n){const{eventBuffer:r}=e;if(!r||r.waitForCheckout&&!n)return null;const s=e.recordingMode==="buffer";try{n&&s&&r.clear(),n&&(r.hasCheckout=!0,r.waitForCheckout=!1);const o=e.getOptions(),i=vT(t,o.beforeAddRecordingEvent);return i?await r.addEvent(i):void 0}catch(o){const i=o&&o instanceof Aa,a=i?"addEventSizeExceeded":"addEvent";if(i&&s)return r.clear(),r.waitForCheckout=!0,null;e.handleException(o),await e.stop({reason:a});const c=C();c&&c.recordDroppedEvent("internal_sdk_error","replay")}}function gp(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;const n=xa(t.timestamp);return n+e.timeouts.sessionIdlePause<Date.now()?!1:n>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration?($&&B.infoTick(`Skipping event with timestamp ${n} because it is after maxReplayDuration`),!1):!0}function vT(e,t){try{if(typeof t=="function"&&bT(e))return t(e)}catch(n){return $&&B.exception(n,"An error occurred in the `beforeAddRecordingEvent` callback, skipping the event..."),null}return e}function Pa(e){return!e.type}function Oi(e){return e.type==="transaction"}function wT(e){return e.type==="replay_event"}function Ru(e){return e.type==="feedback"}function TT(e){return(t,n)=>{if(!e.isEnabled()||!Pa(t)&&!Oi(t))return;const r=n?.statusCode;if(!(!r||r<200||r>=300)){if(Oi(t)){IT(e,t);return}kT(e,t)}}}function IT(e,t){const n=e.getContext();t.contexts?.trace?.trace_id&&n.traceIds.size<100&&n.traceIds.add(t.contexts.trace.trace_id)}function kT(e,t){const n=e.getContext();if(t.event_id&&n.errorIds.size<100&&n.errorIds.add(t.event_id),e.recordingMode!=="buffer"||!t.tags||!t.tags.replayId)return;const{beforeErrorSampling:r}=e.getOptions();typeof r=="function"&&!r(t)||Ar(async()=>{try{await e.sendBufferedReplayOrFlush()}catch(s){e.handleException(s)}})}function CT(e){return t=>{!e.isEnabled()||!Pa(t)||RT(e,t)}}function RT(e,t){const n=t.exception?.values?.[0]?.value;if(typeof n=="string"&&(n.match(/(reactjs\.org\/docs\/error-decoder\.html\?invariant=|react\.dev\/errors\/)(418|419|422|423|425)/)||n.match(/(does not match server-rendered HTML|Hydration failed because)/i))){const r=tt({category:"replay.hydrate-error",data:{url:en()}});Or(e,r)}}function xT(e){const t=C();t&&t.on("beforeAddBreadcrumb",n=>MT(e,n))}function MT(e,t){if(!e.isEnabled()||!_p(t))return;const n=AT(t);n&&Or(e,n)}function AT(e){return!_p(e)||["fetch","xhr","sentry.event","sentry.transaction"].includes(e.category)||e.category.startsWith("ui.")?null:e.category==="console"?NT(e):tt(e)}function NT(e){const t=e.data?.arguments;if(!Array.isArray(t)||t.length===0)return tt(e);let n=!1;const r=t.map(s=>{if(!s)return s;if(typeof s=="string")return s.length>Yr?(n=!0,`${s.slice(0,Yr)}…`):s;if(typeof s=="object")try{const o=Fe(s,7);return JSON.stringify(o).length>Yr?(n=!0,`${JSON.stringify(o,null,2).slice(0,Yr)}…`):o}catch{}return s});return tt({...e,data:{...e.data,arguments:r,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}function _p(e){return!!e.category}function OT(e,t){return e.type||!e.exception?.values?.length?!1:!!t.originalException?.__rrweb__}function yp(){const e=j().getPropagationContext().dsc;e&&delete e.replay_id;const t=me();if(t){const n=Ke(t);delete n.replay_id}}function LT(e,t){e.triggerUserActivity(),e.addUpdate(()=>t.timestamp?(e.throttledAddEvent({type:V.Custom,timestamp:t.timestamp*1e3,data:{tag:"breadcrumb",payload:{timestamp:t.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:t.event_id}}}}),!1):!0)}function PT(e,t){return e.recordingMode!=="buffer"||t.message===va||!t.exception||t.type?!1:dp(e.getOptions().errorSampleRate)}function DT(e){return Object.assign((t,n)=>!e.isEnabled()||e.isPaused()?t:wT(t)?(delete t.breadcrumbs,t):!Pa(t)&&!Oi(t)&&!Ru(t)?t:e.checkAndHandleExpiredSession()?Ru(t)?(e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),LT(e,t),t):OT(t,n)&&!e.getOptions()._experiments.captureExceptions?($&&B.log("Ignoring error from rrweb internals",t),null):((PT(e,t)||e.recordingMode==="session")&&(t.tags={...t.tags,replayId:e.getSessionId()}),t):(yp(),t),{id:"Replay"})}function ho(e,t){return t.map(({type:n,start:r,end:s,name:o,data:i})=>{const a=e.throttledAddEvent({type:V.Custom,timestamp:r,data:{tag:"performanceSpan",payload:{op:n,description:o,startTimestamp:r,endTimestamp:s,data:i}}});return typeof a=="string"?Promise.resolve(null):a})}function FT(e){const{from:t,to:n}=e,r=Date.now()/1e3;return{type:"navigation.push",start:r,end:r,name:n,data:{previous:t}}}function $T(e){return t=>{if(!e.isEnabled())return;const n=FT(t);n!==null&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate(()=>(ho(e,[n]),!1)))}}function BT(e,t){return $&&e.getOptions()._experiments.traceInternals?!1:dd(t,C())}function Sp(e,t){e.isEnabled()&&t!==null&&(BT(e,t.name)||e.addUpdate(()=>(ho(e,[t]),!0)))}function mo(e){if(!e)return;const t=new TextEncoder;try{if(typeof e=="string")return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){const n=gf(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch{}}function bp(e){if(!e)return;const t=parseInt(e,10);return isNaN(t)?void 0:t}function js(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};const n={...e._meta},r=n.warnings||[];return n.warnings=[...r,t],e._meta=n,e}function Ep(e,t){if(!t)return null;const{startTimestamp:n,endTimestamp:r,url:s,method:o,statusCode:i,request:a,response:c}=t;return{type:e,start:n/1e3,end:r/1e3,name:s,data:{method:o,statusCode:i,request:a,response:c}}}function dr(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function Ct(e,t,n){if(!t&&Object.keys(e).length===0)return;if(!t)return{headers:e};if(!n)return{headers:e,size:t};const r={headers:e,size:t},{body:s,warnings:o}=UT(n);return r.body=s,o?.length&&(r._meta={warnings:o}),r}function Li(e,t){return Object.entries(e).reduce((n,[r,s])=>{const o=r.toLowerCase();return t.includes(o)&&e[r]&&(n[o]=s),n},{})}function UT(e){if(!e||typeof e!="string")return{body:e};const t=e.length>cu,n=HT(e);if(t){const r=e.slice(0,cu);return n?{body:r,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${r}…`,warnings:["TEXT_TRUNCATED"]}}if(n)try{return{body:JSON.parse(e)}}catch{}return{body:e}}function HT(e){const t=e[0],n=e[e.length-1];return t==="["&&n==="]"||t==="{"&&n==="}"}function qs(e,t){const n=WT(e);return Ye(n,t)}function WT(e,t=ie.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(ie.location.origin))return e;const n=new URL(e,t);if(n.origin!==new URL(t).origin)return e;const r=n.href;return!e.endsWith("/")&&r.endsWith("/")?r.slice(0,-1):r}async function zT(e,t,n){try{const r=await qT(e,t,n),s=Ep("resource.fetch",r);Sp(n.replay,s)}catch(r){$&&B.exception(r,"Failed to capture fetch breadcrumb")}}function jT(e,t){const{input:n,response:r}=t,s=n?Sa(n):void 0,o=mo(s),i=r?bp(r.headers.get("content-length")):void 0;o!==void 0&&(e.data.request_body_size=o),i!==void 0&&(e.data.response_body_size=i)}async function qT(e,t,n){const r=Date.now(),{startTimestamp:s=r,endTimestamp:o=r}=t,{url:i,method:a,status_code:c=0,request_body_size:u,response_body_size:d}=e.data,l=qs(i,n.networkDetailAllowUrls)&&!qs(i,n.networkDetailDenyUrls),f=l?GT(n,t.input,u):dr(u),p=await VT(l,n,t.response,d);return{startTimestamp:s,endTimestamp:o,url:i,method:a,statusCode:c,request:f,response:p}}function GT({networkCaptureBodies:e,networkRequestHeaders:t},n,r){const s=n?KT(n,t):{};if(!e)return Ct(s,r,void 0);const o=Sa(n),[i,a]=Fs(o,B),c=Ct(s,r,i);return a?js(c,a):c}async function VT(e,{networkCaptureBodies:t,networkResponseHeaders:n},r,s){if(!e&&s!==void 0)return dr(s);const o=r?vp(r.headers,n):{};if(!r||!t&&s!==void 0)return Ct(o,s,void 0);const[i,a]=await XT(r),c=YT(i,{networkCaptureBodies:t,responseBodySize:s,captureDetails:e,headers:o});return a?js(c,a):c}function YT(e,{networkCaptureBodies:t,responseBodySize:n,captureDetails:r,headers:s}){try{const o=e?.length&&n===void 0?mo(e):n;return r?t?Ct(s,o,e):Ct(s,o,void 0):dr(o)}catch(o){return $&&B.exception(o,"Failed to serialize response body"),Ct(s,n,void 0)}}async function XT(e){const t=JT(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{return[await ZT(t)]}catch(n){return n instanceof Error&&n.message.indexOf("Timeout")>-1?($&&B.warn("Parsing text body from response timed out"),[void 0,"BODY_PARSE_TIMEOUT"]):($&&B.exception(n,"Failed to get text body from response"),[void 0,"BODY_PARSE_ERROR"])}}function vp(e,t){const n={};return t.forEach(r=>{e.get(r)&&(n[r]=e.get(r))}),n}function KT(e,t){return e.length===1&&typeof e[0]!="string"?xu(e[0],t):e.length===2?xu(e[1],t):{}}function xu(e,t){if(!e)return{};const n=e.headers;return n?n instanceof Headers?vp(n,t):Array.isArray(n)?{}:Li(n,t):{}}function JT(e){try{return e.clone()}catch(t){$&&B.exception(t,"Failed to clone response body")}}function ZT(e){return new Promise((t,n)=>{const r=Ar(()=>n(new Error("Timeout while trying to read response body")),500);QT(e).then(s=>t(s),s=>n(s)).finally(()=>clearTimeout(r))})}async function QT(e){return await e.text()}async function eI(e,t,n){try{const r=nI(e,t,n),s=Ep("resource.xhr",r);Sp(n.replay,s)}catch(r){$&&B.exception(r,"Failed to capture xhr breadcrumb")}}function tI(e,t){const{xhr:n,input:r}=t;if(!n)return;const s=mo(r),o=n.getResponseHeader("content-length")?bp(n.getResponseHeader("content-length")):iI(n.response,n.responseType);s!==void 0&&(e.data.request_body_size=s),o!==void 0&&(e.data.response_body_size=o)}function nI(e,t,n){const r=Date.now(),{startTimestamp:s=r,endTimestamp:o=r,input:i,xhr:a}=t,{url:c,method:u,status_code:d=0,request_body_size:l,response_body_size:f}=e.data;if(!c)return null;if(!a||!qs(c,n.networkDetailAllowUrls)||qs(c,n.networkDetailDenyUrls)){const S=dr(l),w=dr(f);return{startTimestamp:s,endTimestamp:o,url:c,method:u,statusCode:d,request:S,response:w}}const p=a[at],h=p?Li(p.request_headers,n.networkRequestHeaders):{},m=Li(rI(a),n.networkResponseHeaders),[g,y]=n.networkCaptureBodies?Fs(i,B):[void 0],[b,P]=n.networkCaptureBodies?sI(a):[void 0],k=Ct(h,l,g),R=Ct(m,f,b);return{startTimestamp:s,endTimestamp:o,url:c,method:u,statusCode:d,request:y?js(k,y):k,response:P?js(R,P):R}}function rI(e){const t=e.getAllResponseHeaders();return t?t.split(`\r
|
|
495
|
-
`).reduce((n,r)=>{const[s,o]=r.split(": ");return o&&(n[s.toLowerCase()]=o),n},{}):{}}function sI(e){const t=[];try{return[e.responseText]}catch(n){t.push(n)}try{return oI(e.response,e.responseType)}catch(n){t.push(n)}return $&&B.warn("Failed to get xhr response body",...t),[void 0]}function oI(e,t){try{if(typeof e=="string")return[e];if(e instanceof Document)return[e.body.outerHTML];if(t==="json"&&e&&typeof e=="object")return[JSON.stringify(e)];if(!e)return[void 0]}catch(n){return $&&B.exception(n,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return $&&B.log("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function iI(e,t){try{const n=t==="json"&&e&&typeof e=="object"?JSON.stringify(e):e;return mo(n)}catch{return}}function aI(e){const t=C();try{const{networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:s,networkRequestHeaders:o,networkResponseHeaders:i}=e.getOptions(),a={replay:e,networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:s,networkRequestHeaders:o,networkResponseHeaders:i};t&&t.on("beforeAddBreadcrumb",(c,u)=>cI(a,c,u))}catch{}}function cI(e,t,n){if(t.data)try{uI(t)&&dI(n)&&(tI(t,n),eI(t,n,e)),lI(t)&&fI(n)&&(jT(t,n),zT(t,n,e))}catch(r){$&&B.exception(r,"Error when enriching network breadcrumb")}}function uI(e){return e.category==="xhr"}function lI(e){return e.category==="fetch"}function dI(e){return e?.xhr}function fI(e){return e?.response}function pI(e,{autoFlushOnFeedback:t}){const n=C();mf(Ww(e)),co($T(e)),xT(e),aI(e);const r=DT(e);Yl(r),n&&(n.on("beforeSendEvent",CT(e)),n.on("afterSendEvent",TT(e)),n.on("createDsc",s=>{const o=e.getSessionId();o&&e.isEnabled()&&e.recordingMode==="session"&&e.checkAndHandleExpiredSession()&&(s.replay_id=o)}),n.on("spanStart",s=>{e.lastActiveSpan=s}),n.on("spanEnd",s=>{e.lastActiveSpan=s}),n.on("beforeSendFeedback",async(s,o)=>{const i=e.getSessionId();o?.includeReplay&&e.isEnabled()&&i&&s.contexts?.feedback&&(s.contexts.feedback.source==="api"&&t&&await e.flush(),s.contexts.feedback.replay_id=i)}),t&&n.on("openFeedbackWidget",async()=>{await e.flush()}))}async function hI(e){try{return Promise.all(ho(e,[mI(ie.performance.memory)]))}catch{return[]}}function mI(e){const{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}=e,s=Date.now()/1e3;return{type:"memory",name:"memory",start:s,end:s,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}}}}function gI(e,t,n){return Vg(e,t,{...n,setTimeoutImpl:Ar})}const Qr=H.navigator;function _I(){return/iPhone|iPad|iPod/i.test(Qr?.userAgent??"")||/Macintosh/i.test(Qr?.userAgent??"")&&Qr?.maxTouchPoints&&Qr?.maxTouchPoints>1?{sampling:{mousemove:!1}}:{}}function yI(e){let t=!1;return(n,r)=>{if(!e.checkAndHandleExpiredSession()){$&&B.warn("Received replay event after session expired.");return}const s=r||!t;t=!0,e.clickDetector&&Fw(e.clickDetector,n),e.addUpdate(()=>{if(e.recordingMode==="buffer"&&s&&e.setInitialState(),!La(e,n,s))return!0;if(!s)return!1;const o=e.session;if(bI(e,s),e.recordingMode==="buffer"&&o&&e.eventBuffer){const i=e.eventBuffer.getEarliestTimestamp();i&&($&&B.log(`Updating session start time to earliest event in buffer to ${new Date(i)}`),o.started=i,e.getOptions().stickySession&&Oa(o))}return o?.previousSessionId||e.recordingMode==="session"&&e.flush(),!0})}}function SI(e){const t=e.getOptions();return{type:V.Custom,timestamp:Date.now(),data:{tag:"options",payload:{shouldRecordCanvas:e.isRecordingCanvas(),sessionSampleRate:t.sessionSampleRate,errorSampleRate:t.errorSampleRate,useCompressionOption:t.useCompression,blockAllMedia:t.blockAllMedia,maskAllText:t.maskAllText,maskAllInputs:t.maskAllInputs,useCompression:e.eventBuffer?e.eventBuffer.type==="worker":!1,networkDetailHasUrls:t.networkDetailAllowUrls.length>0,networkCaptureBodies:t.networkCaptureBodies,networkRequestHasHeaders:t.networkRequestHeaders.length>0,networkResponseHasHeaders:t.networkResponseHeaders.length>0}}}}function bI(e,t){!t||!e.session||e.session.segmentId!==0||La(e,SI(e),!1)}function EI(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}function vI(e,t,n,r){return bt(Bl(e,Yi(e),r,n),[[{type:"replay_event"},e],[{type:"replay_recording",length:typeof t=="string"?new TextEncoder().encode(t).length:t.length},t]])}function wI({recordingData:e,headers:t}){let n;const r=`${JSON.stringify(t)}
|
|
496
|
-
`;if(typeof e=="string")n=`${r}${e}`;else{const o=new TextEncoder().encode(r);n=new Uint8Array(o.length+e.length),n.set(o),n.set(e,o.length)}return n}async function TI({client:e,scope:t,replayId:n,event:r}){const s=typeof e._integrations=="object"&&e._integrations!==null&&!Array.isArray(e._integrations)?Object.keys(e._integrations):void 0,o={event_id:n,integrations:s};e.emit("preprocessEvent",r,o);const i=await ql(e.getOptions(),r,o,t,e,ve());if(!i)return null;e.emit("postprocessEvent",i,o),i.platform=i.platform||"javascript";const a=e.getSdkMetadata(),{name:c,version:u}=a?.sdk||{};return i.sdk={...i.sdk,name:c||"sentry.javascript.unknown",version:u||"0.0.0"},i}async function II({recordingData:e,replayId:t,segmentId:n,eventContext:r,timestamp:s,session:o}){const i=wI({recordingData:e,headers:{segment_id:n}}),{urls:a,errorIds:c,traceIds:u,initialTimestamp:d}=r,l=C(),f=j(),p=l?.getTransport(),h=l?.getDsn();if(!l||!p||!h||!o.sampled)return gt({});const m={type:t0,replay_start_timestamp:d/1e3,timestamp:s/1e3,error_ids:c,trace_ids:u,urls:a,replay_id:t,segment_id:n,replay_type:o.sampled},g=await TI({scope:f,client:l,replayId:t,event:m});if(!g)return l.recordDroppedEvent("event_processor","replay"),$&&B.log("An event processor returned `null`, will not send event."),gt({});delete g.sdkProcessingMetadata;const y=vI(g,i,h,l.getOptions().tunnel);let b;try{b=await p.send(y)}catch(k){const R=new Error(va);try{R.cause=k}catch{}throw R}if(typeof b.statusCode=="number"&&(b.statusCode<200||b.statusCode>=300))throw new wp(b.statusCode);const P=cd({},b);if(ad(P,"replay"))throw new Da(P);return b}class wp extends Error{constructor(t){super(`Transport returned status code ${t}`)}}class Da extends Error{constructor(t){super("Rate limit hit"),this.rateLimits=t}}async function Tp(e,t={count:0,interval:a0}){const{recordingData:n,onError:r}=e;if(n.length)try{return await II(e),!0}catch(s){if(s instanceof wp||s instanceof Da)throw s;if(Zi("Replays",{_retryCount:t.count}),r&&r(s),t.count>=c0){const o=new Error(`${va} - max retries exceeded`);try{o.cause=s}catch{}throw o}return t.interval*=++t.count,new Promise((o,i)=>{Ar(async()=>{try{await Tp(e,t),o(!0)}catch(a){i(a)}},t.interval)})}}const Ip="__THROTTLED",kI="__SKIPPED";function CI(e,t,n){const r=new Map,s=a=>{const c=a-n;r.forEach((u,d)=>{d<c&&r.delete(d)})},o=()=>[...r.values()].reduce((a,c)=>a+c,0);let i=!1;return(...a)=>{const c=Math.floor(Date.now()/1e3);if(s(c),o()>=t){const d=i;return i=!0,d?kI:Ip}i=!1;const u=r.get(c)||0;return r.set(c,u+1),e(...a)}}class RI{constructor({options:t,recordingOptions:n}){this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:n0,sessionIdleExpire:r0},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._requiresManualStart=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=n,this._options=t,this._debouncedFlush=gI(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=CI((i,a)=>ET(this,i,a),300,5);const{slowClickTimeout:r,slowClickIgnoreSelectors:s}=this.getOptions(),o=r?{threshold:Math.min(u0,r),timeout:r,scrollTimeout:l0,ignoreSelector:s?s.join(","):""}:void 0;if(o&&(this.clickDetector=new Ow(this,o)),$){const i=t._experiments;B.setConfig({captureExceptions:!!i.captureExceptions,traceInternals:!!i.traceInternals})}this._handleVisibilityChange=()=>{ie.document.visibilityState==="visible"?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()},this._handleWindowBlur=()=>{const i=tt({category:"ui.blur"});this._doChangeToBackgroundTasks(i)},this._handleWindowFocus=()=>{const i=tt({category:"ui.focus"});this._doChangeToForegroundTasks(i)},this._handleKeyboardEvent=i=>{Gw(this,i)}}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return!!this._canvas}getOptions(){return this._options}handleException(t){$&&B.exception(t),this._options.onError&&this._options.onError(t)}initializeSampling(t){const{errorSampleRate:n,sessionSampleRate:r}=this._options,s=n<=0&&r<=0;if(this._requiresManualStart=s,!s){if(this._initializeSessionForSampling(t),!this.session){$&&B.exception(new Error("Unable to initialize and create session"));return}this.session.sampled!==!1&&(this.recordingMode=this.session.sampled==="buffer"&&this.session.segmentId===0?"buffer":"session",$&&B.infoTick(`Starting replay in ${this.recordingMode} mode`),this._initializeRecording())}}start(){if(this._isEnabled&&this.recordingMode==="session"){$&&B.log("Recording is already in progress");return}if(this._isEnabled&&this.recordingMode==="buffer"){$&&B.log("Buffering is in progress, call `flush()` to save the replay");return}$&&B.infoTick("Starting replay in session mode"),this._updateUserActivity();const t=Yo({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=t,this._initializeRecording()}startBuffering(){if(this._isEnabled){$&&B.log("Buffering is in progress, call `flush()` to save the replay");return}$&&B.infoTick("Starting replay in buffer mode");const t=Yo({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=t,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{const t=this._canvas;this._stopRecording=lt({...this._recordingOptions,...this.recordingMode==="buffer"?{checkoutEveryNms:i0}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:yI(this),..._I(),onMutation:this._onMutationHandler.bind(this),...t?{recordCanvas:t.recordCanvas,getCanvasManager:t.getCanvasManager,sampling:t.sampling,dataURLOptions:t.dataURLOptions}:{}})}catch(t){this.handleException(t)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(t){return this.handleException(t),!1}}async stop({forceFlush:t=!1,reason:n}={}){if(this._isEnabled){this._isEnabled=!1;try{$&&B.log(`Stopping Replay${n?` triggered by ${n}`:""}`),yp(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),t&&await this._flush({force:!0}),this.eventBuffer?.destroy(),this.eventBuffer=null,gT(this)}catch(r){this.handleException(r)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),$&&B.log("Pausing replay"))}resume(){!this._isPaused||!this._checkSession()||(this._isPaused=!1,this.startRecording(),$&&B.log("Resuming replay"))}async sendBufferedReplayOrFlush({continueRecording:t=!0}={}){if(this.recordingMode==="session")return this.flushImmediate();const n=Date.now();$&&B.log("Converting buffer to session"),await this.flushImmediate();const r=this.stopRecording();!t||!r||this.recordingMode!=="session"&&(this.recordingMode="session",this.session&&(this._updateUserActivity(n),this._updateSessionActivity(n),this._maybeSaveSession()),this.startRecording())}addUpdate(t){const n=t();this.recordingMode!=="buffer"&&n!==!0&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),!this._stopRecording){if(!this._checkSession())return;this.resume();return}this.checkAndHandleExpiredSession(),this._updateSessionActivity()}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return this.recordingMode==="buffer"?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(){return this.session?.id}checkAndHandleExpiredSession(){if(this._lastActivity&&Ni(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&this.session.sampled==="session"){this.pause();return}return!!this._checkSession()}setInitialState(){const t=`${ie.location.pathname}${ie.location.hash}${ie.location.search}`,n=`${ie.location.origin}${t}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=n,this._context.initialTimestamp=Date.now(),this._context.urls.push(n)}throttledAddEvent(t,n){const r=this._throttledAddEvent(t,n);if(r===Ip){const s=tt({category:"replay.throttled"});this.addUpdate(()=>!La(this,{type:kw,timestamp:s.timestamp||0,data:{tag:"breadcrumb",payload:s,metric:!0}}))}return r}getCurrentRoute(){const t=this.lastActiveSpan||me(),n=t&&_e(t),s=(n&&U(n).data||{})[ae];if(!(!n||!s||!["route","custom"].includes(s)))return U(n).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=pT({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_initializeSessionForSampling(t){const n=this._options.errorSampleRate>0,r=Yo({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,previousSessionId:t},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:n});this.session=r}_checkSession(){if(!this.session)return!1;const t=this.session;return hp(t,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})?(this._refreshSession(t),!1):!0}async _refreshSession(t){this._isEnabled&&(await this.stop({reason:"refresh session"}),this.initializeSampling(t.id))}_addListeners(){try{ie.document.addEventListener("visibilitychange",this._handleVisibilityChange),ie.addEventListener("blur",this._handleWindowBlur),ie.addEventListener("focus",this._handleWindowFocus),ie.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(pI(this,{autoFlushOnFeedback:this._options._experiments.autoFlushOnFeedback}),this._hasInitializedCoreListeners=!0)}catch(t){this.handleException(t)}this._performanceCleanupCallback=iT(this)}_removeListeners(){try{ie.document.removeEventListener("visibilitychange",this._handleVisibilityChange),ie.removeEventListener("blur",this._handleWindowBlur),ie.removeEventListener("focus",this._handleWindowFocus),ie.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(t){this.handleException(t)}}_doChangeToBackgroundTasks(t){!this.session||pp(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(t&&this._createCustomBreadcrumb(t),this.conditionalFlush())}_doChangeToForegroundTasks(t){if(!this.session)return;if(!this.checkAndHandleExpiredSession()){$&&B.log("Document has become active, but session has expired");return}t&&this._createCustomBreadcrumb(t)}_updateUserActivity(t=Date.now()){this._lastActivity=t}_updateSessionActivity(t=Date.now()){this.session&&(this.session.lastActivity=t,this._maybeSaveSession())}_createCustomBreadcrumb(t){this.addUpdate(()=>{this.throttledAddEvent({type:V.Custom,timestamp:t.timestamp||0,data:{tag:"breadcrumb",payload:t}})})}_addPerformanceEntries(){let t=Kw(this.performanceEntries).concat(this.replayPerformanceEntries);if(this.performanceEntries=[],this.replayPerformanceEntries=[],this._requiresManualStart){const n=this._context.initialTimestamp/1e3;t=t.filter(r=>r.start>=n)}return Promise.all(ho(this,t))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){const{session:t,eventBuffer:n}=this;if(!t||!n||this._requiresManualStart||t.segmentId)return;const r=n.getEarliestTimestamp();r&&r<this._context.initialTimestamp&&(this._context.initialTimestamp=r)}_popEventContext(){const t={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),urls:this._context.urls};return this._clearContext(),t}async _runFlush(){const t=this.getSessionId();if(!this.session||!this.eventBuffer||!t){$&&B.error("No session or eventBuffer found to flush.");return}if(await this._addPerformanceEntries(),!!this.eventBuffer?.hasEvents&&(await hI(this),!!this.eventBuffer&&t===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer();const n=Date.now();if(n-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw new Error("Session is too long, not sending replay");const r=this._popEventContext(),s=this.session.segmentId++;this._maybeSaveSession();const o=await this.eventBuffer.finish();await Tp({replayId:t,recordingData:o,segmentId:s,eventContext:r,session:this.session,timestamp:n,onError:i=>this.handleException(i)})}catch(n){this.handleException(n),this.stop({reason:"sendReplay"});const r=C();if(r){const s=n instanceof Da?"ratelimit_backoff":"send_error";r.recordDroppedEvent(s,"replay")}}}async _flush({force:t=!1}={}){if(!this._isEnabled&&!t)return;if(!this.checkAndHandleExpiredSession()){$&&B.error("Attempting to finish replay event after session expired.");return}if(!this.session)return;const n=this.session.started,s=Date.now()-n;this._debouncedFlush.cancel();const o=s<this._options.minReplayDuration,i=s>this._options.maxReplayDuration+5e3;if(o||i){$&&B.log(`Session duration (${Math.floor(s/1e3)}s) is too ${o?"short":"long"}, not sending replay.`),o&&this._debouncedFlush();return}const a=this.eventBuffer;a&&this.session.segmentId===0&&!a.hasCheckout&&$&&B.log("Flushing initial segment without checkout.");const c=!!this._flushLock;this._flushLock||(this._flushLock=this._runFlush());try{await this._flushLock}catch(u){this.handleException(u)}finally{this._flushLock=void 0,c&&this._debouncedFlush()}}_maybeSaveSession(){this.session&&this._options.stickySession&&Oa(this.session)}_onMutationHandler(t){const{ignoreMutations:n}=this._options._experiments;if(n?.length&&t.some(a=>{const c=EI(a.target),u=n.join(",");return c?.matches(u)}))return!1;const r=t.length,s=this._options.mutationLimit,o=this._options.mutationBreadcrumbLimit,i=s&&r>s;if(r>o||i){const a=tt({category:"replay.mutations",data:{count:r,limit:i}});this._createCustomBreadcrumb(a)}return i?(this.stop({reason:"mutationLimit",forceFlush:this.recordingMode==="session"}),!1):!0}}function Jn(e,t){return[...e,...t].join(",")}function xI({mask:e,unmask:t,block:n,unblock:r,ignore:s}){const o=["base","iframe[srcdoc]:not([src])"],i=Jn(e,[".sentry-mask","[data-sentry-mask]"]),a=Jn(t,[]);return{maskTextSelector:i,unmaskTextSelector:a,blockSelector:Jn(n,[".sentry-block","[data-sentry-block]",...o]),unblockSelector:Jn(r,[]),ignoreSelector:Jn(s,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}function MI({el:e,key:t,maskAttributes:n,maskAllText:r,privacyOptions:s,value:o}){return!r||s.unmaskTextSelector&&e.matches(s.unmaskTextSelector)?o:n.includes(t)||t==="value"&&e.tagName==="INPUT"&&["submit","button"].includes(e.getAttribute("type")||"")?o.replace(/[\S]/g,"*"):o}const Mu='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',AI=["content-length","content-type","accept"];let Au=!1;const NI=e=>new OI(e);class OI{constructor({flushMinDelay:t=s0,flushMaxDelay:n=o0,minReplayDuration:r=d0,maxReplayDuration:s=uu,stickySession:o=!0,useCompression:i=!0,workerUrl:a,_experiments:c={},maskAllText:u=!0,maskAllInputs:d=!0,blockAllMedia:l=!0,mutationBreadcrumbLimit:f=750,mutationLimit:p=1e4,slowClickTimeout:h=7e3,slowClickIgnoreSelectors:m=[],networkDetailAllowUrls:g=[],networkDetailDenyUrls:y=[],networkCaptureBodies:b=!0,networkRequestHeaders:P=[],networkResponseHeaders:k=[],mask:R=[],maskAttributes:S=["title","placeholder","aria-label"],unmask:w=[],block:M=[],unblock:E=[],ignore:I=[],maskFn:D,beforeAddRecordingEvent:v,beforeErrorSampling:A,onError:W}={}){this.name="Replay";const L=xI({mask:R,unmask:w,block:M,unblock:E,ignore:I});if(this._recordingOptions={maskAllInputs:d,maskAllText:u,maskInputOptions:{password:!0},maskTextFn:D,maskInputFn:D,maskAttributeFn:(x,F,O)=>MI({maskAttributes:S,maskAllText:u,privacyOptions:L,key:x,value:F,el:O}),...L,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:x=>{try{x.__rrweb__=!0}catch{}},recordCrossOriginIframes:!!c.recordCrossOriginIframes},this._initialOptions={flushMinDelay:t,flushMaxDelay:n,minReplayDuration:Math.min(r,f0),maxReplayDuration:Math.min(s,uu),stickySession:o,useCompression:i,workerUrl:a,blockAllMedia:l,maskAllInputs:d,maskAllText:u,mutationBreadcrumbLimit:f,mutationLimit:p,slowClickTimeout:h,slowClickIgnoreSelectors:m,networkDetailAllowUrls:g,networkDetailDenyUrls:y,networkCaptureBodies:b,networkRequestHeaders:Nu(P),networkResponseHeaders:Nu(k),beforeAddRecordingEvent:v,beforeErrorSampling:A,onError:W,_experiments:c},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${Mu}`:Mu),this._isInitialized&&hi())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return Au}set _isInitialized(t){Au=t}afterAllSetup(t){!hi()||this._replay||(this._setup(t),this._initialize(t))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:this._replay.recordingMode==="session"}):Promise.resolve()}flush(t){return this._replay?this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(t):(this._replay.start(),Promise.resolve()):Promise.resolve()}getReplayId(){if(this._replay?.isEnabled())return this._replay.getSessionId()}getRecordingMode(){if(this._replay?.isEnabled())return this._replay.recordingMode}_initialize(t){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(t),this._replay.initializeSampling())}_setup(t){const n=LI(this._initialOptions,t);this._replay=new RI({options:n,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(t){try{const n=t.getIntegrationByName("ReplayCanvas");if(!n)return;this._replay._canvas=n.getOptions()}catch{}}}function LI(e,t){const n=t.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...e},s=Kt(n.replaysSessionSampleRate),o=Kt(n.replaysOnErrorSampleRate);return s==null&&o==null&&Pt(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),s!=null&&(r.sessionSampleRate=s),o!=null&&(r.errorSampleRate=o),r}function Nu(e){return[...AI,...e.map(t=>t.toLowerCase())]}function PI(){return C()?.getIntegrationByName("Replay")}var DI=Object.defineProperty,FI=(e,t,n)=>t in e?DI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ou=(e,t,n)=>FI(e,typeof t!="symbol"?t+"":t,n);class $I{constructor(){Ou(this,"idNodeMap",new Map),Ou(this,"nodeMetaMap",new WeakMap)}getId(t){return t?this.getMeta(t)?.id??-1:-1}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){const n=this.getId(t);this.idNodeMap.delete(n),t.childNodes&&t.childNodes.forEach(r=>this.removeNodeFromMap(r))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,n){const r=n.id;this.idNodeMap.set(r,t),this.nodeMetaMap.set(t,n)}replace(t,n){const r=this.getNode(t);if(r){const s=this.nodeMetaMap.get(r);s&&this.nodeMetaMap.set(n,s)}this.idNodeMap.set(t,n)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function BI(){return new $I}function UI(e,t){for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}return!1}function Pi(e,t,n=1/0,r=0){return!e||e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:Pi(e.parentNode,t,n,r+1)}function Lu(e,t){return n=>{const r=n;if(r===null)return!1;try{if(e){if(typeof e=="string"){if(r.matches(`.${e}`))return!0}else if(UI(r,e))return!0}return!!(t&&r.matches(t))}catch{return!1}}}const hn=`Please stop import mirror directly. Instead of that,\r
|
|
497
|
-
now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
|
|
498
|
-
or you can use record.mirror to access the mirror instance during recording.`;let Pu={map:{},getId(){return console.error(hn),-1},getNode(){return console.error(hn),null},removeNodeFromMap(){console.error(hn)},has(){return console.error(hn),!1},reset(){console.error(hn)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(Pu=new Proxy(Pu,{get(e,t,n){return t==="map"&&console.error(hn),Reflect.get(e,t,n)}}));function Fa(e,t,n,r,s=window){const o=s.Object.getOwnPropertyDescriptor(e,t);return s.Object.defineProperty(e,t,r?n:{set(i){Cp(()=>{n.set.call(this,i)},0),o&&o.set&&o.set.call(this,i)}}),()=>Fa(e,t,o||{},!0)}function $a(e,t,n){try{if(!(t in e))return()=>{};const r=e[t],s=n(r);return typeof s=="function"&&(s.prototype=s.prototype||{},Object.defineProperties(s,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=s,()=>{e[t]=r}}catch{return()=>{}}}Date.now().toString();function HI(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}function go(e,t,n,r,s){if(!e)return!1;const o=HI(e);if(!o)return!1;const i=Lu(t,n),a=Pi(o,i);let c=-1;return a<0?!1:(r&&(c=Pi(o,Lu(null,r))),a>-1&&c<0?!0:a<c)}const Du={};function kp(e){const t=Du[e];if(t)return t;const n=window.document;let r=window[e];if(n&&typeof n.createElement=="function")try{const s=n.createElement("iframe");s.hidden=!0,n.head.appendChild(s);const o=s.contentWindow;o&&o[e]&&(r=o[e]),n.head.removeChild(s)}catch{}return Du[e]=r.bind(window)}function Ut(...e){return kp("requestAnimationFrame")(...e)}function Cp(...e){return kp("setTimeout")(...e)}var $n=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))($n||{});let ms;function WI(e){ms=e}const Xo=e=>ms?(...n)=>{try{return e(...n)}catch(r){if(ms&&ms(r)===!0)return()=>{};throw r}}:e;var Sn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",zI=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var es=0;es<Sn.length;es++)zI[Sn.charCodeAt(es)]=es;var jI=function(e){var t=new Uint8Array(e),n,r=t.length,s="";for(n=0;n<r;n+=3)s+=Sn[t[n]>>2],s+=Sn[(t[n]&3)<<4|t[n+1]>>4],s+=Sn[(t[n+1]&15)<<2|t[n+2]>>6],s+=Sn[t[n+2]&63];return r%3===2?s=s.substring(0,s.length-1)+"=":r%3===1&&(s=s.substring(0,s.length-2)+"=="),s};const Fu=new Map;function qI(e,t){let n=Fu.get(e);return n||(n=new Map,Fu.set(e,n)),n.has(t)||n.set(t,[]),n.get(t)}const Rp=(e,t,n)=>{if(!e||!(Mp(e,t)||typeof e=="object"))return;const r=e.constructor.name,s=qI(n,r);let o=s.indexOf(e);return o===-1&&(o=s.length,s.push(e)),o};function gs(e,t,n){if(e instanceof Array)return e.map(r=>gs(r,t,n));if(e===null)return e;if(e instanceof Float32Array||e instanceof Float64Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Uint8Array||e instanceof Uint16Array||e instanceof Int16Array||e instanceof Int8Array||e instanceof Uint8ClampedArray)return{rr_type:e.constructor.name,args:[Object.values(e)]};if(e instanceof ArrayBuffer){const r=e.constructor.name,s=jI(e);return{rr_type:r,base64:s}}else{if(e instanceof DataView)return{rr_type:e.constructor.name,args:[gs(e.buffer,t,n),e.byteOffset,e.byteLength]};if(e instanceof HTMLImageElement){const r=e.constructor.name,{src:s}=e;return{rr_type:r,src:s}}else if(e instanceof HTMLCanvasElement){const r="HTMLImageElement",s=e.toDataURL();return{rr_type:r,src:s}}else{if(e instanceof ImageData)return{rr_type:e.constructor.name,args:[gs(e.data,t,n),e.width,e.height]};if(Mp(e,t)||typeof e=="object"){const r=e.constructor.name,s=Rp(e,t,n);return{rr_type:r,index:s}}}}return e}const xp=(e,t,n)=>e.map(r=>gs(r,t,n)),Mp=(e,t)=>!!["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(s=>typeof t[s]=="function").find(s=>e instanceof t[s]);function GI(e,t,n,r,s){const o=[],i=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype);for(const a of i)try{if(typeof t.CanvasRenderingContext2D.prototype[a]!="function")continue;const c=$a(t.CanvasRenderingContext2D.prototype,a,function(u){return function(...d){return go(this.canvas,n,r,s,!0)||Cp(()=>{const l=xp(d,t,this);e(this.canvas,{type:$n["2D"],property:a,args:l})},0),u.apply(this,d)}});o.push(c)}catch{const c=Fa(t.CanvasRenderingContext2D.prototype,a,{set(u){e(this.canvas,{type:$n["2D"],property:a,args:[u],setter:!0})}});o.push(c)}return()=>{o.forEach(a=>a())}}function VI(e){return e==="experimental-webgl"?"webgl":e}function $u(e,t,n,r,s){const o=[];try{const i=$a(e.HTMLCanvasElement.prototype,"getContext",function(a){return function(c,...u){if(!go(this,t,n,r,!0)){const d=VI(c);if("__context"in this||(this.__context=d),s&&["webgl","webgl2"].includes(d))if(u[0]&&typeof u[0]=="object"){const l=u[0];l.preserveDrawingBuffer||(l.preserveDrawingBuffer=!0)}else u.splice(0,1,{preserveDrawingBuffer:!0})}return a.apply(this,[c,...u])}});o.push(i)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{o.forEach(i=>i())}}function Bu(e,t,n,r,s,o,i,a){const c=[],u=Object.getOwnPropertyNames(e);for(const d of u)if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(d))try{if(typeof e[d]!="function")continue;const l=$a(e,d,function(f){return function(...p){const h=f.apply(this,p);if(Rp(h,a,this),"tagName"in this.canvas&&!go(this.canvas,r,s,o,!0)){const m=xp(p,a,this),g={type:t,property:d,args:m};n(this.canvas,g)}return h}});c.push(l)}catch{const l=Fa(e,d,{set(f){n(this.canvas,{type:t,property:d,args:[f],setter:!0})}});c.push(l)}return c}function YI(e,t,n,r,s,o){const i=[];return i.push(...Bu(t.WebGLRenderingContext.prototype,$n.WebGL,e,n,r,s,o,t)),typeof t.WebGL2RenderingContext<"u"&&i.push(...Bu(t.WebGL2RenderingContext.prototype,$n.WebGL2,e,n,r,s,o,t)),()=>{i.forEach(a=>a())}}const XI='for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t="undefined"==typeof Uint8Array?[]:new Uint8Array(256),a=0;a<64;a++)t[e.charCodeAt(a)]=a;var n=function(t){var a,n=new Uint8Array(t),r=n.length,s="";for(a=0;a<r;a+=3)s+=e[n[a]>>2],s+=e[(3&n[a])<<4|n[a+1]>>4],s+=e[(15&n[a+1])<<2|n[a+2]>>6],s+=e[63&n[a+2]];return r%3==2?s=s.substring(0,s.length-1)+"=":r%3==1&&(s=s.substring(0,s.length-2)+"=="),s};const r=new Map,s=new Map;const i=self;i.onmessage=async function(e){if(!("OffscreenCanvas"in globalThis))return i.postMessage({id:e.data.id});{const{id:t,bitmap:a,width:o,height:f,maxCanvasSize:c,dataURLOptions:g}=e.data,u=async function(e,t,a){const r=e+"-"+t;if("OffscreenCanvas"in globalThis){if(s.has(r))return s.get(r);const i=new OffscreenCanvas(e,t);i.getContext("2d");const o=await i.convertToBlob(a),f=await o.arrayBuffer(),c=n(f);return s.set(r,c),c}return""}(o,f,g),[h,d]=function(e,t,a){if(!a)return[e,t];const[n,r]=a;if(e<=n&&t<=r)return[e,t];let s=e,i=t;return s>n&&(i=Math.floor(n*t/e),s=n),i>r&&(s=Math.floor(r*e/t),i=r),[s,i]}(o,f,c),l=new OffscreenCanvas(h,d),w=l.getContext("bitmaprenderer"),p=h===o&&d===f?a:await createImageBitmap(a,{resizeWidth:h,resizeHeight:d,resizeQuality:"low"});w.transferFromImageBitmap(p),a.close();const y=await l.convertToBlob(g),v=y.type,b=await y.arrayBuffer(),m=n(b);if(p.close(),!r.has(t)&&await u===m)return r.set(t,m),i.postMessage({id:t});if(r.get(t)===m)return i.postMessage({id:t});i.postMessage({id:t,type:v,base64:m,width:o,height:f}),r.set(t,m)}};';function KI(){const e=new Blob([XI]);return URL.createObjectURL(e)}class JI{constructor(t){this.pendingCanvasMutations=new Map,this.rafStamps={latestId:0,invokeId:null},this.shadowDoms=new Set,this.windowsSet=new WeakSet,this.windows=[],this.restoreHandlers=[],this.frozen=!1,this.locked=!1,this.snapshotInProgressMap=new Map,this.worker=null,this.lastSnapshotTime=0,this.processMutation=(l,f)=>{(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(l)||this.pendingCanvasMutations.set(l,[]),this.pendingCanvasMutations.get(l).push(f)};const{sampling:n="all",win:r,blockClass:s,blockSelector:o,unblockSelector:i,maxCanvasSize:a,recordCanvas:c,dataURLOptions:u,errorHandler:d}=t;this.mutationCb=t.mutationCb,this.mirror=t.mirror,this.options=t,d&&WI(d),(c&&typeof n=="number"||t.enableManualSnapshot)&&(this.worker=this.initFPSWorker()),this.addWindow(r),!t.enableManualSnapshot&&Xo(()=>{c&&n==="all"&&(this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher()),c&&typeof n=="number"&&this.initCanvasFPSObserver(n,s,o,i,a,{dataURLOptions:u})})()}reset(){this.pendingCanvasMutations.clear(),this.restoreHandlers.forEach(t=>{try{t()}catch{}}),this.restoreHandlers=[],this.windowsSet=new WeakSet,this.windows=[],this.shadowDoms=new Set,this.worker?.terminate(),this.worker=null,this.snapshotInProgressMap=new Map}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}addWindow(t){const{sampling:n="all",blockClass:r,blockSelector:s,unblockSelector:o,recordCanvas:i,enableManualSnapshot:a}=this.options;if(!this.windowsSet.has(t)){if(a){this.windowsSet.add(t),this.windows.push(new WeakRef(t));return}Xo(()=>{if(i&&n==="all"&&this.initCanvasMutationObserver(t,r,s,o),i&&typeof n=="number"){const c=$u(t,r,s,o,!0);this.restoreHandlers.push(()=>{c()})}})(),this.windowsSet.add(t),this.windows.push(new WeakRef(t))}}addShadowRoot(t){this.shadowDoms.add(new WeakRef(t))}resetShadowRoots(){this.shadowDoms=new Set}initFPSWorker(){const t=new Worker(KI());return t.onmessage=n=>{const r=n.data,{id:s}=r;if(this.snapshotInProgressMap.set(s,!1),!("base64"in r))return;const{base64:o,type:i,width:a,height:c}=r;this.mutationCb({id:s,type:$n["2D"],commands:[{property:"clearRect",args:[0,0,a,c]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:o}],type:i}]},0,0,a,c]}]})},t}initCanvasFPSObserver(t,n,r,s,o,i){const a=this.takeSnapshot(!1,t,n,r,s,o,i.dataURLOptions);this.restoreHandlers.push(()=>{cancelAnimationFrame(a)})}initCanvasMutationObserver(t,n,r,s){const o=$u(t,n,r,s,!1),i=GI(this.processMutation.bind(this),t,n,r,s),a=YI(this.processMutation.bind(this),t,n,r,s,this.mirror);this.restoreHandlers.push(()=>{o(),i(),a()})}snapshot(t){const{options:n}=this,r=this.takeSnapshot(!0,n.sampling==="all"?2:n.sampling||2,n.blockClass,n.blockSelector,n.unblockSelector,n.maxCanvasSize,n.dataURLOptions,t);this.restoreHandlers.push(()=>{cancelAnimationFrame(r)})}takeSnapshot(t,n,r,s,o,i,a,c){const u=1e3/n;let d;const l=p=>{if(p)return[p];const h=[],m=g=>{g.querySelectorAll("canvas").forEach(y=>{go(y,r,s,o)||h.push(y)})};for(const g of this.windows){const y=g.deref();let b;try{b=y&&y.document}catch{}b&&m(b)}for(const g of this.shadowDoms){const y=g.deref();y&&m(y)}return h},f=p=>{if(this.windows.length){if(this.lastSnapshotTime&&p-this.lastSnapshotTime<u){d=Ut(f);return}this.lastSnapshotTime=p,l(c).forEach(h=>{if(!this.mirror.hasNode(h))return;const m=this.mirror.getId(h);if(!this.snapshotInProgressMap.get(m)&&!(!h.width||!h.height)){if(this.snapshotInProgressMap.set(m,!0),!t&&["webgl","webgl2"].includes(h.__context)){const g=h.getContext(h.__context);g?.getContextAttributes()?.preserveDrawingBuffer===!1&&g.clear(g.COLOR_BUFFER_BIT)}createImageBitmap(h).then(g=>{this.worker?.postMessage({id:m,bitmap:g,width:h.width,height:h.height,dataURLOptions:a,maxCanvasSize:i},[g])}).catch(g=>{Xo(()=>{throw g})()})}}),t||(d=Ut(f))}};return d=Ut(f),d}startPendingCanvasMutationFlusher(){Ut(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){const t=n=>{this.rafStamps.latestId=n,Ut(t)};Ut(t)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((t,n)=>{const r=this.mirror.getId(n);this.flushPendingCanvasMutationFor(n,r)}),Ut(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(t,n){if(this.frozen||this.locked)return;const r=this.pendingCanvasMutations.get(t);if(!r||n===-1)return;const s=r.map(i=>{const{type:a,...c}=i;return c}),{type:o}=r[0];this.mutationCb({id:n,type:o,commands:s}),this.pendingCanvasMutations.delete(t)}}try{if(Array.from([1],e=>e*2)[0]!==2){const e=document.createElement("iframe");document.body.appendChild(e),Array.from=e.contentWindow?.Array.from||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}BI();var Uu;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(Uu||(Uu={}));const Hu={low:{sampling:{canvas:1},dataURLOptions:{type:"image/webp",quality:.25}},medium:{sampling:{canvas:2},dataURLOptions:{type:"image/webp",quality:.4}},high:{sampling:{canvas:4},dataURLOptions:{type:"image/webp",quality:.5}}},ZI="ReplayCanvas",ts=1280,QI=(e={})=>{const[t,n]=e.maxCanvasSize||[],r={quality:e.quality||"medium",enableManualSnapshot:e.enableManualSnapshot,maxCanvasSize:[t?Math.min(t,ts):ts,n?Math.min(n,ts):ts]};let s;const o=new Promise(i=>s=i);return{name:ZI,getOptions(){const{quality:i,enableManualSnapshot:a,maxCanvasSize:c}=r;return{enableManualSnapshot:a,recordCanvas:!0,getCanvasManager:u=>{const d=new JI({...u,enableManualSnapshot:a,maxCanvasSize:c,errorHandler:l=>{try{typeof l=="object"&&(l.__rrweb__=!0)}catch{}}});return s(d),d},...Hu[i]||Hu.medium}},async snapshot(i){(await o).snapshot(i)}}},e1=QI;function et(e=0){return((Ce()||performance.timeOrigin)+e)/1e3}function t1(e){const t=[];if(e.nextHopProtocol!=null){const{name:n,version:r}=ff(e.nextHopProtocol);t.push(["network.protocol.version",r],["network.protocol.name",n])}return Ce()?[...t,["http.request.redirect_start",et(e.redirectStart)],["http.request.fetch_start",et(e.fetchStart)],["http.request.domain_lookup_start",et(e.domainLookupStart)],["http.request.domain_lookup_end",et(e.domainLookupEnd)],["http.request.connect_start",et(e.connectStart)],["http.request.secure_connection_start",et(e.secureConnectionStart)],["http.request.connection_end",et(e.connectEnd)],["http.request.request_start",et(e.requestStart)],["http.request.response_start",et(e.responseStart)],["http.request.response_end",et(e.responseEnd)]]:t}const Wu=new WeakMap,Ko=new Map,Ba={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function Ap(e,t){const{traceFetch:n,traceXHR:r,trackFetchStreamPerformance:s,shouldCreateSpanForRequest:o,enableHTTPTimings:i,tracePropagationTargets:a,onRequestSpanStart:c}={...Ba,...t},u=typeof o=="function"?o:f=>!0,d=f=>r1(f,a),l={};n&&(e.addEventProcessor(f=>(f.type==="transaction"&&f.spans&&f.spans.forEach(p=>{if(p.op==="http.client"){const h=Ko.get(p.span_id);h&&(p.timestamp=h/1e3,Ko.delete(p.span_id))}}),f)),s&&Ey(f=>{if(f.response){const p=Wu.get(f.response);p&&f.endTimestamp&&Ko.set(p,f.endTimestamp)}}),sa(f=>{const p=cy(f,u,d,l);if(f.response&&f.fetchData.__span&&Wu.set(f.response,f.fetchData.__span),p){const h=Np(f.fetchData.url),m=h?Yt(h).host:void 0;p.setAttributes({"http.url":h,"server.address":m}),i&&zu(p),c?.(p,{headers:f.headers})}})),r&&ya(f=>{const p=s1(f,u,d,l);if(p){i&&zu(p);let h;try{h=new Headers(f.xhr.__sentry_xhr_v3__?.request_headers)}catch{}c?.(p,{headers:h})}})}function n1(e){return e.entryType==="resource"&&"initiatorType"in e&&typeof e.nextHopProtocol=="string"&&(e.initiatorType==="fetch"||e.initiatorType==="xmlhttprequest")}function zu(e){const{url:t}=U(e).data;if(!t||typeof t!="string")return;const n=Qt("resource",({entries:r})=>{r.forEach(s=>{n1(s)&&s.name.endsWith(t)&&(t1(s).forEach(i=>e.setAttribute(...i)),setTimeout(n))})})}function r1(e,t){const n=en();if(n){let r,s;try{r=new URL(e,n),s=new URL(n).origin}catch{return!1}const o=r.origin===s;return t?Ye(r.toString(),t)||o&&Ye(r.pathname,t):o}else{const r=!!e.match(/^\/(?!\/)/);return t?Ye(e,t):r}}function s1(e,t,n,r){const s=e.xhr,o=s?.[at];if(!s||s.__sentry_own_request__||!o)return;const{url:i,method:a}=o,c=Nt()&&t(i);if(e.endTimestamp&&c){const m=s.__sentry_xhr_span_id__;if(!m)return;const g=r[m];g&&o.status_code!==void 0&&(ir(g,o.status_code),g.end(),delete r[m]);return}const u=Np(i),d=Yt(u||i),l=Cd(i),f=!!me(),p=c&&f?We({name:`${a} ${l}`,attributes:{url:i,type:"xhr","http.method":a,"http.url":u,"server.address":d?.host,[J]:"auto.http.browser",[ye]:"http.client",...d?.search&&{"http.query":d?.search},...d?.hash&&{"http.fragment":d?.hash}}}):new mt;s.__sentry_xhr_span_id__=p.spanContext().spanId,r[s.__sentry_xhr_span_id__]=p,n(i)&&o1(s,Nt()&&f?p:void 0);const h=C();return h&&h.emit("beforeOutgoingRequestSpan",p,e),p}function o1(e,t){const{"sentry-trace":n,baggage:r}=ta({span:t});n&&i1(e,n,r)}function i1(e,t,n){const r=e.__sentry_xhr_v3__?.request_headers;if(!r?.["sentry-trace"])try{if(e.setRequestHeader("sentry-trace",t),n){const s=r?.baggage;(!s||!a1(s))&&e.setRequestHeader("baggage",n)}}catch{}}function a1(e){return e.split(",").some(t=>t.trim().startsWith("sentry-"))}function Np(e){try{return new URL(e,N.location.origin).href}catch{return}}function c1(){N.document?N.document.addEventListener("visibilitychange",()=>{const e=me();if(!e)return;const t=_e(e);if(N.document.hidden&&t){const n="cancelled",{op:r,status:s}=U(t);X&&_.log(`[Tracing] Transaction: ${n} -> since tab moved to the background, op: ${r}`),s||t.setStatus({code:he,message:n}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}}):X&&_.warn("[Tracing] Could not set up background tab detection due to lack of global document")}const u1=3600,Op="sentry_previous_trace",l1="sentry.previous_trace";function d1(e,{linkPreviousTrace:t,consistentTraceSampling:n}){const r=t==="session-storage";let s=r?h1():void 0;e.on("spanStart",i=>{if(_e(i)!==i)return;const a=j().getPropagationContext();s=f1(s,i,a),r&&p1(s)});let o=!0;n&&e.on("beforeSampling",i=>{if(!s)return;const a=j(),c=a.getPropagationContext();if(o&&c.parentSpanId){o=!1;return}a.setPropagationContext({...c,dsc:{...c.dsc,sample_rate:String(s.sampleRate),sampled:String(Di(s.spanContext))},sampleRand:s.sampleRand}),i.parentSampled=Di(s.spanContext),i.parentSampleRate=s.sampleRate,i.spanAttributes={...i.spanAttributes,[_l]:s.sampleRate}})}function f1(e,t,n){const r=U(t);function s(){try{return Number(n.dsc?.sample_rate)??Number(r.data?.[Ks])}catch{return 0}}const o={spanContext:t.spanContext(),startTimestamp:r.start_timestamp,sampleRate:s(),sampleRand:n.sampleRand};if(!e)return o;const i=e.spanContext;return i.traceId===r.trace_id?e:(Date.now()/1e3-e.startTimestamp<=u1&&(X&&_.log(`Adding previous_trace ${i} link to span ${{op:r.op,...t.spanContext()}}`),t.addLink({context:i,attributes:{[Hh]:"previous_trace"}}),t.setAttribute(l1,`${i.traceId}-${i.spanId}-${Di(i)?1:0}`)),o)}function p1(e){try{N.sessionStorage.setItem(Op,JSON.stringify(e))}catch(t){X&&_.warn("Could not store previous trace in sessionStorage",t)}}function h1(){try{const e=N.sessionStorage?.getItem(Op);return JSON.parse(e)}catch{return}}function Di(e){return e.traceFlags===1}const m1="BrowserTracing",g1={...ss,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,enableElementTiming:!0,ignoreResourceSpans:[],ignorePerformanceApiSpans:[],detectRedirects:!0,linkPreviousTrace:"in-memory",consistentTraceSampling:!1,_experiments:{},...Ba},Vn=(e={})=>{const t={name:void 0,source:void 0},n=N.document,{enableInp:r,enableElementTiming:s,enableLongTask:o,enableLongAnimationFrame:i,_experiments:{enableInteractions:a,enableStandaloneClsSpans:c,enableStandaloneLcpSpans:u},beforeStartSpan:d,idleTimeout:l,finalTimeout:f,childSpanTimeout:p,markBackgroundSpan:h,traceFetch:m,traceXHR:g,trackFetchStreamPerformance:y,shouldCreateSpanForRequest:b,enableHTTPTimings:P,ignoreResourceSpans:k,ignorePerformanceApiSpans:R,instrumentPageLoad:S,instrumentNavigation:w,detectRedirects:M,linkPreviousTrace:E,consistentTraceSampling:I,onRequestSpanStart:D}={...g1,...e};let v,A;function W(L,x,F=!0){const O=x.op==="pageload",q=d?d(x):x,K=q.attributes||{};if(x.name!==q.name&&(K[ae]="custom",q.attributes=K),!F){const be=tn();We({...q,startTime:be}).end(be);return}t.name=q.name,t.source=K[ae];const ue=zl(q,{idleTimeout:l,finalTimeout:f,childSpanTimeout:p,disableAutoFinish:O,beforeSpanEnd:be=>{v?.(),Zb(be,{recordClsOnPageloadSpan:!c,recordLcpOnPageloadSpan:!u,ignoreResourceSpans:k,ignorePerformanceApiSpans:R}),qu(L,void 0);const Se=j(),De=Se.getPropagationContext();Se.setPropagationContext({...De,traceId:ue.spanContext().traceId,sampled:nn(ue),dsc:Ke(be)})}});qu(L,ue);function Ue(){n&&["interactive","complete"].includes(n.readyState)&&L.emit("idleSpanEnableAutoFinish",ue)}O&&n&&(n.addEventListener("readystatechange",()=>{Ue()}),Ue())}return{name:m1,setup(L){if(Nl(),v=jb({recordClsStandaloneSpans:c||!1,recordLcpStandaloneSpans:u||!1,client:L}),r&&bE(),s&&cE(),i&&H.PerformanceObserver&&PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes("long-animation-frame")?Gb():o&&qb(),a&&Vb(),M&&n){const F=()=>{A=de()};addEventListener("click",F,{capture:!0}),addEventListener("keydown",F,{capture:!0,passive:!0})}function x(){const F=fr(L);F&&!U(F).timestamp&&(X&&_.log(`[Tracing] Finishing current active span with op: ${U(F).op}`),F.setAttribute(vs,"cancelled"),F.end())}L.on("startNavigationSpan",(F,O)=>{if(C()!==L)return;if(O?.isRedirect){X&&_.warn("[Tracing] Detected redirect, navigation span will not be the root span, but a child span."),W(L,{op:"navigation.redirect",...F},!1);return}x(),ve().setPropagationContext({traceId:ht(),sampleRand:Math.random()});const q=j();q.setPropagationContext({traceId:ht(),sampleRand:Math.random()}),q.setSDKProcessingMetadata({normalizedRequest:void 0}),W(L,{op:"navigation",...F})}),L.on("startPageLoadSpan",(F,O={})=>{if(C()!==L)return;x();const q=O.sentryTrace||ju("sentry-trace"),K=O.baggage||ju("baggage"),ue=Tl(q,K),Ue=j();Ue.setPropagationContext(ue),Ue.setSDKProcessingMetadata({normalizedRequest:la()}),W(L,{op:"pageload",...F})})},afterAllSetup(L){let x=en();if(E!=="off"&&d1(L,{linkPreviousTrace:E,consistentTraceSampling:I}),N.location){if(S){const F=Ce();Yn(L,{name:N.location.pathname,startTime:F?F/1e3:void 0,attributes:{[ae]:"url",[J]:"auto.pageload.browser"}})}w&&co(({to:F,from:O})=>{if(O===void 0&&x?.indexOf(F)!==-1){x=void 0;return}x=void 0;const q=kd(F),K=fr(L),ue=K&&M&&y1(K,A);Xn(L,{name:q?.pathname||N.location.pathname,attributes:{[ae]:"url",[J]:"auto.navigation.browser"}},{url:F,isRedirect:ue})})}h&&c1(),a&&_1(L,l,f,p,t),r&&wE(),Ap(L,{traceFetch:m,traceXHR:g,trackFetchStreamPerformance:y,tracePropagationTargets:L.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:b,enableHTTPTimings:P,onRequestSpanStart:D})}}};function Yn(e,t,n){e.emit("startPageLoadSpan",t,n),j().setTransactionName(t.name);const r=fr(e);return r&&e.emit("afterStartPageLoadSpan",r),r}function Xn(e,t,n){const{url:r,isRedirect:s}=n||{};e.emit("beforeStartNavigationSpan",t,{isRedirect:s}),e.emit("startNavigationSpan",t,{isRedirect:s});const o=j();return o.setTransactionName(t.name),r&&!s&&o.setSDKProcessingMetadata({normalizedRequest:{...la(),url:r}}),fr(e)}function ju(e){return N.document?.querySelector(`meta[name=${e}]`)?.getAttribute("content")||void 0}function _1(e,t,n,r,s){const o=N.document;let i;const a=()=>{const c="ui.action.click",u=fr(e);if(u){const d=U(u).op;if(["navigation","pageload"].includes(d)){X&&_.warn(`[Tracing] Did not create ${c} span because a pageload or navigation span is in progress.`);return}}if(i&&(i.setAttribute(vs,"interactionInterrupted"),i.end(),i=void 0),!s.name){X&&_.warn(`[Tracing] Did not create ${c} transaction because _latestRouteName is missing.`);return}i=zl({name:s.name,op:c,attributes:{[ae]:s.source||"url"}},{idleTimeout:t,finalTimeout:n,childSpanTimeout:r})};o&&addEventListener("click",a,{capture:!0})}const Lp="_sentry_idleSpan";function fr(e){return e[Lp]}function qu(e,t){Oe(e,Lp,t)}const Gu=.3;function y1(e,t){const n=U(e),r=tn(),s=n.start_timestamp;return!(r-s>Gu||t&&r-t<=Gu)}function Bn(e){return new Promise((t,n)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>n(e.error)})}function S1(e,t){const n=indexedDB.open(e);n.onupgradeneeded=()=>n.result.createObjectStore(t);const r=Bn(n);return s=>r.then(o=>s(o.transaction(t,"readwrite").objectStore(t)))}function Ua(e){return Bn(e.getAllKeys())}function b1(e,t,n){return e(r=>Ua(r).then(s=>{if(!(s.length>=n))return r.put(t,Math.max(...s,0)+1),Bn(r.transaction)}))}function E1(e,t,n){return e(r=>Ua(r).then(s=>{if(!(s.length>=n))return r.put(t,Math.min(...s,0)-1),Bn(r.transaction)}))}function v1(e){return e(t=>Ua(t).then(n=>{const r=n[0];if(r!=null)return Bn(t.get(r)).then(s=>(t.delete(r),Bn(t.transaction).then(()=>s)))}))}function w1(e){let t;function n(){return t==null&&(t=S1(e.dbName||"sentry-offline",e.storeName||"queue")),t}return{push:async r=>{try{const s=await Is(r);await b1(n(),s,e.maxQueueSize||30)}catch{}},unshift:async r=>{try{const s=await Is(r);await E1(n(),s,e.maxQueueSize||30)}catch{}},shift:async()=>{try{const r=await v1(n());if(r)return mm(r)}catch{}}}}function T1(e){return t=>{const n=e({...t,createStore:w1});return N.addEventListener("online",async r=>{await n.flush()}),n}}function I1(e=ba){return T1(Fg(e))}const Vu=1e6,_s=String(0),k1="main",Gs=N.navigator;let Pp="",Dp="",Fp="",Fi=Gs?.userAgent||"",$p="";const C1=Gs?.language||Gs?.languages?.[0]||"";function R1(e){return typeof e=="object"&&e!==null&&"getHighEntropyValues"in e}const Yu=Gs?.userAgentData;R1(Yu)&&Yu.getHighEntropyValues(["architecture","model","platform","platformVersion","fullVersionList"]).then(e=>{if(Pp=e.platform||"",Fp=e.architecture||"",$p=e.model||"",Dp=e.platformVersion||"",e.fullVersionList?.length){const t=e.fullVersionList[e.fullVersionList.length-1];Fi=`${t.brand} ${t.version}`}}).catch(e=>{});function x1(e){return!("thread_metadata"in e)}function M1(e){return x1(e)?O1(e):e}function A1(e){const t=e.contexts?.trace?.trace_id;return typeof t=="string"&&t.length!==32&&X&&_.log(`[Profiling] Invalid traceId: ${t} on profiled event`),typeof t!="string"?"":t}function N1(e,t,n,r){if(r.type!=="transaction")throw new TypeError("Profiling events may only be attached to transactions, this should never occur.");if(n==null)throw new TypeError(`Cannot construct profiling event envelope without a valid profile. Got ${n} instead.`);const s=A1(r),o=M1(n),i=t||(typeof r.start_timestamp=="number"?r.start_timestamp*1e3:de()*1e3),a=typeof r.timestamp=="number"?r.timestamp*1e3:de()*1e3;return{event_id:e,timestamp:new Date(i).toISOString(),platform:"javascript",version:"1",release:r.release||"",environment:r.environment||Js,runtime:{name:"javascript",version:N.navigator.userAgent},os:{name:Pp,version:Dp,build_number:Fi},device:{locale:C1,model:$p,manufacturer:Fi,architecture:Fp,is_emulator:!1},debug_meta:{images:D1(n.resources)},profile:o,transactions:[{name:r.transaction||"",id:r.event_id||Ne(),trace_id:s,active_thread_id:_s,relative_start_ns:"0",relative_end_ns:((a-i)*1e6).toFixed(0)}]}}function Bp(e){return U(e).op==="pageload"}function O1(e){let t,n=0;const r={samples:[],stacks:[],frames:[],thread_metadata:{[_s]:{name:k1}}},s=e.samples[0];if(!s)return r;const o=s.timestamp,i=Ce(),a=typeof performance.timeOrigin=="number"?performance.timeOrigin:i||0,c=a-(i||a);return e.samples.forEach((u,d)=>{if(u.stackId===void 0){t===void 0&&(t=n,r.stacks[t]=[],n++),r.samples[d]={elapsed_since_start_ns:((u.timestamp+c-o)*Vu).toFixed(0),stack_id:t,thread_id:_s};return}let l=e.stacks[u.stackId];const f=[];for(;l;){f.push(l.frameId);const h=e.frames[l.frameId];h&&r.frames[l.frameId]===void 0&&(r.frames[l.frameId]={function:h.name,abs_path:typeof h.resourceId=="number"?e.resources[h.resourceId]:void 0,lineno:h.line,colno:h.column}),l=l.parentId===void 0?void 0:e.stacks[l.parentId]}const p={elapsed_since_start_ns:((u.timestamp+c-o)*Vu).toFixed(0),stack_id:n,thread_id:_s};r.stacks[n]=f,r.samples[d]=p,n++}),r}function L1(e,t){if(!t.length)return e;for(const n of t)e[1].push([{type:"profile"},n]);return e}function P1(e){const t=[];return Jt(e,(n,r)=>{if(r==="transaction")for(let s=1;s<n.length;s++)n[s]?.contexts?.profile?.profile_id&&t.push(n[s])}),t}function D1(e){const r=C()?.getOptions()?.stackParser;return r?qm(r,e):[]}function F1(e){return typeof e!="number"&&typeof e!="boolean"||typeof e=="number"&&isNaN(e)?(X&&_.warn(`[Profiling] Invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`),!1):e===!0||e===!1?!0:e<0||e>1?(X&&_.warn(`[Profiling] Invalid sample rate. Sample rate must be between 0 and 1. Got ${e}.`),!1):!0}function $1(e){return e.samples.length<2?(X&&_.log("[Profiling] Discarding profile because it contains less than 2 samples"),!1):e.frames.length?!0:(X&&_.log("[Profiling] Discarding profile because it contains no frames"),!1)}let Up=!1;const Hp=3e4;function B1(e){return typeof e=="function"}function U1(){const e=N.Profiler;if(!B1(e)){X&&_.log("[Profiling] Profiling is not supported by this browser, Profiler interface missing on window object.");return}const t=10,n=Math.floor(Hp/t);try{return new e({sampleInterval:t,maxBufferSize:n})}catch{X&&(_.log("[Profiling] Failed to initialize the Profiling constructor, this is likely due to a missing 'Document-Policy': 'js-profiling' header."),_.log("[Profiling] Disabling profiling for current user session.")),Up=!0}}function Xu(e){if(Up)return X&&_.log("[Profiling] Profiling has been disabled for the duration of the current user session."),!1;if(!e.isRecording())return X&&_.log("[Profiling] Discarding profile because transaction was not sampled."),!1;const n=C()?.getOptions();if(!n)return X&&_.log("[Profiling] Profiling disabled, no options found."),!1;const r=n.profilesSampleRate;return F1(r)?r?(r===!0?!0:Math.random()<r)?!0:(X&&_.log(`[Profiling] Discarding profile because it's not included in the random sample (sampling rate = ${Number(r)})`),!1):(X&&_.log("[Profiling] Discarding profile because a negative sampling decision was inherited or profileSampleRate is set to 0"),!1):(X&&_.warn("[Profiling] Discarding profile because of invalid sample rate."),!1)}function H1(e,t,n,r){return $1(n)?N1(e,t,n,r):null}const qt=new Map;function W1(){return qt.size}function z1(e){const t=qt.get(e);return t&&qt.delete(e),t}function j1(e,t){if(qt.set(e,t),qt.size>30){const n=qt.keys().next().value;qt.delete(n)}}function Ku(e){let t;Bp(e)&&(t=de()*1e3);const n=U1();if(!n)return;X&&_.log(`[Profiling] started profiling span: ${U(e).description}`);const r=Ne();j().setContext("profile",{profile_id:r,start_timestamp:t});async function s(){if(e&&n)return n.stop().then(c=>{if(o&&(N.clearTimeout(o),o=void 0),X&&_.log(`[Profiling] stopped profiling of span: ${U(e).description}`),!c){X&&_.log(`[Profiling] profiler returned null profile for: ${U(e).description}`,"this may indicate an overlapping span or a call to stopProfiling with a profile title that was never started");return}j1(r,c)}).catch(c=>{X&&_.log("[Profiling] error while stopping profiler:",c)})}let o=N.setTimeout(()=>{X&&_.log("[Profiling] max profile duration elapsed, stopping profiling for:",U(e).description),s()},Hp);const i=e.end.bind(e);function a(){return e?(s().then(()=>{i()},()=>{i()}),e):i()}e.end=a}const q1="BrowserProfiling",G1=()=>({name:q1,setup(e){const t=me(),n=t&&_e(t);n&&Bp(n)&&Xu(n)&&Ku(n),e.on("spanStart",r=>{r===_e(r)&&Xu(r)&&Ku(r)}),e.on("beforeEnvelope",r=>{if(!W1())return;const s=P1(r);if(!s.length)return;const o=[];for(const i of s){const a=i?.contexts,c=a?.profile?.profile_id,u=a?.profile?.start_timestamp;if(typeof c!="string"){X&&_.log("[Profiling] cannot find profile for a span without a profile context");continue}if(!c){X&&_.log("[Profiling] cannot find profile for a span without a profile context");continue}a?.profile&&delete a.profile;const d=z1(c);if(!d){X&&_.log(`[Profiling] Could not retrieve profile for span: ${c}`);continue}const l=H1(c,u,d,i);l&&o.push(l)}L1(r,o)})}}),V1=G1,Y1="SpotlightBrowser",X1=(e={})=>{const t=e.sidecarUrl||"http://localhost:8969/stream";return{name:Y1,setup:()=>{X&&_.log("Using Sidecar URL",t)},processEvent:n=>Z1(n)?null:n,afterAllSetup:n=>{K1(n,t)}}};function K1(e,t){const n=_a("fetch");let r=0;e.on("beforeEnvelope",s=>{if(r>3){_.warn("[Spotlight] Disabled Sentry -> Spotlight integration due to too many failed requests:",r);return}n(t,{method:"POST",body:Is(s),headers:{"Content-Type":"application/x-sentry-envelope"},mode:"cors"}).then(o=>{o.status>=200&&o.status<400&&(r=0)},o=>{r++,_.error("Sentry SDK can't connect to Sidecar is it running? See: https://spotlightjs.com/sidecar/npx/",o)})})}const J1=X1;function Z1(e){return!!(e.type==="transaction"&&e.spans&&e.contexts?.trace&&e.contexts.trace.op==="ui.action.click"&&e.spans.some(({description:t})=>t?.includes("#sentry-spotlight")))}const Q1=()=>({name:"LaunchDarkly",processEvent(e,t,n){return Ir(e)}});function ek(){return{name:"sentry-flag-auditor",type:"flag-used",synchronous:!0,method:(e,t,n)=>{Cn(e,t.value),Rn(e,t.value)}}}const tk=()=>({name:"OpenFeature",processEvent(e,t,n){return Ir(e)}});class nk{after(t,n){Cn(n.flagKey,n.value),Rn(n.flagKey,n.value)}error(t,n,r){Cn(t.flagKey,t.defaultValue),Rn(t.flagKey,t.defaultValue)}}const rk=({featureFlagClientClass:e})=>({name:"Unleash",setupOnce(){const t=e.prototype;Ae(t,"isEnabled",sk)},processEvent(t,n,r){return Ir(t)}});function sk(e){return function(...t){const n=t[0],r=e.apply(this,t);return typeof n=="string"&&typeof r=="boolean"?(Cn(n,r),Rn(n,r)):X&&_.error(`[Feature Flags] UnleashClient.isEnabled does not match expected signature. arg0: ${n} (${typeof n}), result: ${r} (${typeof r})`),r}}const ok=({featureFlagClient:e})=>({name:"Statsig",setup(t){e.on("gate_evaluation",n=>{Cn(n.gate.name,n.gate.value),Rn(n.gate.name,n.gate.value)})},processEvent(t,n,r){return Ir(t)}});async function ik(){const e=C();if(!e)return"no-client-active";if(!e.getDsn())return"no-dsn-configured";try{await fetch("https://o447951.ingest.sentry.io/api/4509632503087104/envelope/?sentry_version=7&sentry_key=c1dfb07d783ad5325c245c1fd3725390&sentry_client=sentry.javascript.browser%2F1.33.7",{body:"{}",method:"POST",mode:"cors",credentials:"omit"})}catch{return"sentry-unreachable"}}const ak="WebWorker",ck=({worker:e})=>({name:ak,setupOnce:()=>{(Array.isArray(e)?e:[e]).forEach(t=>Ju(t))},addWorker:t=>Ju(t)});function Ju(e){e.addEventListener("message",t=>{lk(t.data)&&(t.stopImmediatePropagation(),X&&_.log("Sentry debugId web worker message received",t.data),N._sentryDebugIds={...t.data._sentryDebugIds,...N._sentryDebugIds})})}function uk({self:e}){e.postMessage({_sentryMessage:!0,_sentryDebugIds:e._sentryDebugIds??void 0})}function lk(e){return ft(e)&&e._sentryMessage===!0&&"_sentryDebugIds"in e&&(ft(e._sentryDebugIds)||e._sentryDebugIds===void 0)}function dk(e){const t={...e};return pd(t,"react"),Zi("react",{version:ke.version}),wv(t)}function fk(e){const t=e.match(/^([^.]+)/);return t!==null&&parseInt(t[0])>=17}function pk(e,t){const n=new WeakSet;function r(s,o){if(!n.has(s)){if(s.cause)return n.add(s),r(s.cause,o);s.cause=o}}r(e,t)}function Ha(e,{componentStack:t},n){if(fk(ke.version)&&ut(e)&&t){const r=new Error(e.message);r.name=`React ErrorBoundary ${e.name}`,r.stack=t,pk(e,r)}return Pe(r=>(r.setContext("react",{componentStack:t}),Lt(e,n)))}function hk(e){return(t,n)=>{const r=Ha(t,n);e&&e(t,n,r)}}const Wp="ui.react.render",mk="ui.react.update",zp="ui.react.mount",_o=rh||sh,gk="unknown";class Wa extends ke.Component{constructor(t){super(t);const{name:n,disabled:r=!1}=this.props;r||(this._mountSpan=We({name:`<${n}>`,onlyIfParent:!0,op:zp,attributes:{[J]:"auto.ui.react.profiler","ui.component_name":n}}))}componentDidMount(){this._mountSpan&&this._mountSpan.end()}shouldComponentUpdate({updateProps:t,includeUpdates:n=!0}){if(n&&this._mountSpan&&t!==this.props.updateProps){const r=Object.keys(t).filter(s=>t[s]!==this.props.updateProps[s]);if(r.length>0){const s=de();this._updateSpan=Zt(this._mountSpan,()=>We({name:`<${this.props.name}>`,onlyIfParent:!0,op:mk,startTime:s,attributes:{[J]:"auto.ui.react.profiler","ui.component_name":this.props.name,"ui.react.changed_props":r}}))}}return!0}componentDidUpdate(){this._updateSpan&&(this._updateSpan.end(),this._updateSpan=void 0)}componentWillUnmount(){const t=de(),{name:n,includeRender:r=!0}=this.props;if(this._mountSpan&&r){const s=U(this._mountSpan).timestamp;Zt(this._mountSpan,()=>{const o=We({onlyIfParent:!0,name:`<${n}>`,op:Wp,startTime:s,attributes:{[J]:"auto.ui.react.profiler","ui.component_name":n}});o&&o.end(t)})}}render(){return this.props.children}}Object.assign(Wa,{defaultProps:{disabled:!1,includeRender:!0,includeUpdates:!0}});function _k(e,t){const n=t?.name||e.displayName||e.name||gk,r=s=>ke.createElement(Wa,{...t,name:n,updateProps:s},ke.createElement(e,{...s}));return r.displayName=`profiler(${n})`,_o(r,e),r}function yk(e,t={disabled:!1,hasRenderSpan:!0}){const[n]=ke.useState(()=>{if(!t?.disabled)return We({name:`<${e}>`,onlyIfParent:!0,op:zp,attributes:{[J]:"auto.ui.react.profiler","ui.component_name":e}})});ke.useEffect(()=>(n&&n.end(),()=>{if(n&&t.hasRenderSpan){const r=U(n).timestamp,s=de(),o=We({name:`<${e}>`,onlyIfParent:!0,op:Wp,startTime:r,attributes:{[J]:"auto.ui.react.profiler","ui.component_name":e}});o&&o.end(s)}}),[])}const Lr=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Sk="unknown",Jo={componentStack:null,error:null,eventId:null};class jp extends ke.Component{constructor(t){super(t),this.state=Jo,this._openFallbackReportDialog=!0;const n=C();n&&t.showDialog&&(this._openFallbackReportDialog=!1,this._cleanupHook=n.on("afterSendEvent",r=>{!r.type&&this._lastEventId&&r.event_id===this._lastEventId&&Ii({...t.dialogOptions,eventId:this._lastEventId})}))}componentDidCatch(t,n){const{componentStack:r}=n,{beforeCapture:s,onError:o,showDialog:i,dialogOptions:a}=this.props;Pe(c=>{s&&s(c,t,r);const u=this.props.handled!=null?this.props.handled:!!this.props.fallback,d=Ha(t,n,{mechanism:{handled:u}});o&&o(t,r,d),i&&(this._lastEventId=d,this._openFallbackReportDialog&&Ii({...a,eventId:d})),this.setState({error:t,componentStack:r,eventId:d})})}componentDidMount(){const{onMount:t}=this.props;t&&t()}componentWillUnmount(){const{error:t,componentStack:n,eventId:r}=this.state,{onUnmount:s}=this.props;s&&(this.state===Jo?s(null,null,null):s(t,n,r)),this._cleanupHook&&(this._cleanupHook(),this._cleanupHook=void 0)}resetErrorBoundary(){const{onReset:t}=this.props,{error:n,componentStack:r,eventId:s}=this.state;t&&t(n,r,s),this.setState(Jo)}render(){const{fallback:t,children:n}=this.props,r=this.state;if(r.componentStack===null)return typeof n=="function"?n():n;const s=typeof t=="function"?ke.createElement(t,{error:r.error,componentStack:r.componentStack,resetError:()=>this.resetErrorBoundary(),eventId:r.eventId}):t;return ke.isValidElement(s)?s:(t&&Lr&&_.warn("fallback did not produce a valid ReactElement"),null)}}function bk(e,t){const n=e.displayName||e.name||Sk,r=s=>ke.createElement(jp,{...t},ke.createElement(e,{...s}));return r.displayName=`errorBoundary(${n})`,_o(r,e),r}const Ek="redux.action",vk="info",wk={attachReduxState:!0,actionTransformer:e=>e,stateTransformer:e=>e||null};function Tk(e){const t={...wk,...e};return n=>(r,s)=>{t.attachReduxState&&br().addEventProcessor((a,c)=>{try{a.type===void 0&&a.contexts.state.state.type==="redux"&&(c.attachments=[...c.attachments||[],{filename:"redux_state.json",data:JSON.stringify(a.contexts.state.state.value)}])}catch{}return a});function o(a){return(c,u)=>{const d=a(c,u),l=j(),f=t.actionTransformer(u);typeof f<"u"&&f!==null&&Je({category:Ek,data:f,type:vk});const p=t.stateTransformer(d);if(typeof p<"u"&&p!==null){const y=C()?.getOptions()?.normalizeDepth||3,b={state:{type:"redux",value:p}};Oe(b,"__sentry_override_normalization_depth__",3+y),l.setContext("state",b)}else l.setContext("state",null);const{configureScopeWithState:h}=t;return typeof h=="function"&&h(l,d),d}}const i=n(o(r),s);return i.replaceReducer=new Proxy(i.replaceReducer,{apply:function(a,c,u){a.apply(c,[o(u[0])])}}),i}}function Ik(e){const t=Vn({...e,instrumentPageLoad:!1,instrumentNavigation:!1}),{history:n,routes:r,match:s,instrumentPageLoad:o=!0,instrumentNavigation:i=!0}=e;return{...t,afterAllSetup(a){t.afterAllSetup(a),o&&N.location&&Zu(r,N.location,s,(c,u="url")=>{Yn(a,{name:c,attributes:{[ye]:"pageload",[J]:"auto.pageload.react.reactrouter_v3",[ae]:u}})}),i&&n.listen&&n.listen(c=>{(c.action==="PUSH"||c.action==="POP")&&Zu(r,c,s,(u,d="url")=>{Xn(a,{name:u,attributes:{[ye]:"navigation",[J]:"auto.navigation.react.reactrouter_v3",[ae]:d}})})})}}}function Zu(e,t,n,r){let s=t.pathname;n({location:t,routes:e},(o,i,a)=>{if(o||!a)return r(s);const c=kk(a.routes||[]);return c.length===0||c==="/*"?r(s):(s=c,r(s,"route"))})}function kk(e){if(!Array.isArray(e)||e.length===0)return"";const t=e.filter(r=>!!r.path);let n=-1;for(let r=t.length-1;r>=0;r--)if(t[r].path?.startsWith("/")){n=r;break}return t.slice(n).reduce((r,{path:s})=>{const o=r==="/"||r===""?s:`/${s}`;return`${r}${o}`},"")}function Ck(e,t={}){const n=e,r=Vn({...t,instrumentNavigation:!1,instrumentPageLoad:!1}),{instrumentPageLoad:s=!0,instrumentNavigation:o=!0}=t;return{...r,afterAllSetup(i){r.afterAllSetup(i);const a=N.location;if(s&&a){const c=n.matchRoutes(a.pathname,n.options.parseSearch(a.search),{preload:!1,throwOnError:!1}),u=c[c.length-1];Yn(i,{name:u?u.routeId:a.pathname,attributes:{[ye]:"pageload",[J]:"auto.pageload.react.tanstack_router",[ae]:u?"route":"url",...Qu(u)}})}o&&n.subscribe("onBeforeNavigate",c=>{if(c.toLocation.state===c.fromLocation?.state)return;const u=n.matchRoutes(c.toLocation.pathname,c.toLocation.search,{preload:!1,throwOnError:!1}),d=u[u.length-1],l=N.location,f=Xn(i,{name:d?d.routeId:l.pathname,attributes:{[ye]:"navigation",[J]:"auto.navigation.react.tanstack_router",[ae]:d?"route":"url"}}),p=n.subscribe("onResolved",h=>{if(p(),f){const m=n.matchRoutes(h.toLocation.pathname,h.toLocation.search,{preload:!1,throwOnError:!1}),g=m[m.length-1];g&&(f.updateName(g.routeId),f.setAttribute(ae,"route"),f.setAttributes(Qu(g)))}})})}}}function Qu(e){if(!e)return{};const t={};return Object.entries(e.params).forEach(([n,r])=>{t[`url.path.params.${n}`]=r,t[`url.path.parameter.${n}`]=r,t[`params.${n}`]=r}),t}function Rk(e){const t=Vn({...e,instrumentPageLoad:!1,instrumentNavigation:!1}),{history:n,routes:r,matchPath:s,instrumentPageLoad:o=!0,instrumentNavigation:i=!0}=e;return{...t,afterAllSetup(a){t.afterAllSetup(a),qp(a,o,i,n,"reactrouter_v4",r,s)}}}function xk(e){const t=Vn({...e,instrumentPageLoad:!1,instrumentNavigation:!1}),{history:n,routes:r,matchPath:s,instrumentPageLoad:o=!0,instrumentNavigation:i=!0}=e;return{...t,afterAllSetup(a){t.afterAllSetup(a),qp(a,o,i,n,"reactrouter_v5",r,s)}}}function qp(e,t,n,r,s,o=[],i){function a(){if(r.location)return r.location.pathname;if(N.location)return N.location.pathname}function c(u){if(o.length===0||!i)return[u,"url"];const d=Gp(o,u,i);for(const l of d)if(l.match.isExact)return[l.match.path,"route"];return[u,"url"]}if(t){const u=a();if(u){const[d,l]=c(u);Yn(e,{name:d,attributes:{[ye]:"pageload",[J]:`auto.pageload.react.${s}`,[ae]:l}})}}n&&r.listen&&r.listen((u,d)=>{if(d&&(d==="PUSH"||d==="POP")){const[l,f]=c(u.pathname);Xn(e,{name:l,attributes:{[ye]:"navigation",[J]:`auto.navigation.react.${s}`,[ae]:f}})}})}function Gp(e,t,n,r=[]){return e.some(s=>{const o=s.path?n(t,s):r.length?r[r.length-1].match:Mk(t);return o&&(r.push({route:s,match:o}),s.routes&&Gp(s.routes,t,n,r)),!!o}),r}function Mk(e){return{path:"/",url:"/",params:{},isExact:e==="/"}}function Ak(e){const t=e.displayName||e.name,n=r=>{if(r?.computedMatch?.isExact){const s=r.computedMatch.path,o=Nk();j().setTransactionName(s),o&&(o.updateName(s),o.setAttribute(ae,"route"))}return ke.createElement(e,{...r})};return n.displayName=`sentryRoute(${t})`,_o(n,e),n}function Nk(){const e=me(),t=e&&_e(e);if(!t)return;const n=U(t).op;return n==="navigation"||n==="pageload"?t:void 0}let Rt,xt,Mt,ys,st,bn=!1;const Vp=new WeakSet,nt=new Set;function Yp(e,t){return!Rt||!xt||!Mt||!st?(Lr&&_.warn(`reactRouterV${t}Instrumentation was unable to wrap the \`createRouter\` function because of one or more missing parameters.`),e):function(n,r){yo(n);const s=e(n,r),o=r?.basename,i=bo();return s.state.historyAction==="POP"&&i&&So(i,s.state.location,n,void 0,o,Array.from(nt)),s.subscribe(a=>{(a.historyAction==="PUSH"||a.historyAction==="POP")&&(a.navigation.state!=="idle"?requestAnimationFrame(()=>{pr({location:a.location,routes:n,navigationType:a.historyAction,version:t,basename:o,allRoutes:Array.from(nt)})}):pr({location:a.location,routes:n,navigationType:a.historyAction,version:t,basename:o,allRoutes:Array.from(nt)}))}),s}}function Xp(e,t){return!Rt||!xt||!Mt||!st?(Lr&&_.warn(`reactRouterV${t}Instrumentation was unable to wrap the \`createMemoryRouter\` function because of one or more missing parameters.`),e):function(n,r){yo(n);const s=e(n,r),o=r?.basename,i=bo();let a;const c=r?.initialEntries,u=r?.initialIndex,d=c&&c.length===1,l=u!==void 0&&c&&c[u];a=d?c[0]:l?c[u]:void 0;const f=a?typeof a=="string"?{pathname:a}:a:s.state.location;return s.state.historyAction==="POP"&&i&&So(i,f,n,void 0,o,Array.from(nt)),s.subscribe(p=>{const h=p.location;(p.historyAction==="PUSH"||p.historyAction==="POP")&&pr({location:h,routes:n,navigationType:p.historyAction,version:t,basename:o,allRoutes:Array.from(nt)})}),s}}function Kp(e,t){const n=Vn({...e,instrumentPageLoad:!1,instrumentNavigation:!1}),{useEffect:r,useLocation:s,useNavigationType:o,createRoutesFromChildren:i,matchRoutes:a,stripBasename:c,instrumentPageLoad:u=!0,instrumentNavigation:d=!0}=e;return{...n,setup(l){n.setup(l),Rt=r,xt=s,Mt=o,st=a,ys=i,bn=c||!1},afterAllSetup(l){n.afterAllSetup(l);const f=N.location?.pathname;u&&f&&Yn(l,{name:f,attributes:{[ae]:"url",[ye]:"pageload",[J]:`auto.pageload.react.reactrouter_v${t}`}}),d&&Vp.add(l)}}}function Jp(e,t){if(!Rt||!xt||!Mt||!st)return Lr&&_.warn("reactRouterV6Instrumentation was unable to wrap `useRoutes` because of one or more missing parameters."),e;const n=r=>{const s=ke.useRef(!0),{routes:o,locationArg:i}=r,a=e(o,i),c=xt(),u=Mt(),d=typeof i=="string"||i?.pathname?i:c;return Rt(()=>{const l=typeof d=="string"?{pathname:d}:d;s.current?(yo(o),So(bo(),l,o,void 0,void 0,Array.from(nt)),s.current=!1):pr({location:l,routes:o,navigationType:u,version:t,allRoutes:Array.from(nt)})},[u,d]),a};return(r,s)=>ke.createElement(n,{routes:r,locationArg:s})}function pr(e){const{location:t,routes:n,navigationType:r,version:s,matches:o,basename:i,allRoutes:a}=e,c=Array.isArray(o)?o:st(n,t,i),u=C();if(!(!u||!Vp.has(u))&&(r==="PUSH"||r==="POP")&&c){let d,l="url";const f=Qp(t,a||n);f&&(d=hr(za(a||n,t)),l="route"),(!f||!d)&&([d,l]=th(n,t,c,i));const p=me();p&&U(p).op==="navigation"?(p?.updateName(d),p?.setAttribute(ae,l)):Xn(u,{name:d,attributes:{[ae]:l,[ye]:"navigation",[J]:`auto.navigation.react.reactrouter_v${s}`}})}}function Vs(e,t){if(!t||t==="/"||!e.toLowerCase().startsWith(t.toLowerCase()))return e;const n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?e:e.slice(n)||"/"}function Ok(e,t,n){const r=e||bn?Vs(t,n):t;return[r[r.length-1]==="/"||r.slice(-2)==="/*"?r.slice(0,-1):r,"route"]}function Zp(e){return e.endsWith("*")}function el(e,t){return Zp(e)&&!!t.route.children?.length||!1}function Lk(e){return!!(!e.children&&e.element&&e.path?.endsWith("/*"))}function Qp(e,t){const n=st(t,e);if(n){for(const r of n)if(Lk(r.route)&&Dk(r))return!0}return!1}function yo(e){e.forEach(t=>{eh(t).forEach(r=>{nt.add(r)})})}function eh(e,t=new Set){return t.has(e)||(t.add(e),e.children&&!e.index&&e.children.forEach(n=>{eh(n,t).forEach(s=>{t.add(s)})})),t}function Pk(e){return Fk(e.route.path||"")}function Dk(e){return e.params["*"]||""}function Fk(e){return e[e.length-1]==="*"?e.slice(0,-1):e}function vn(e){return e[e.length-1]==="/"?e.slice(0,-1):e}function hr(e){return e[0]==="/"?e:`/${e}`}function za(e,t){const n=st(e,t);if(!n||n.length===0)return"";for(const r of n)if(r.route.path&&r.route.path!=="*"){const s=Pk(r),o=Vs(t.pathname,hr(r.pathnameBase));return t.pathname===o?vn(o):vn(vn(s||"")+hr(za(e.filter(i=>i!==r.route),{pathname:o})))}return""}function th(e,t,n,r=""){if(!e||e.length===0)return[bn?Vs(t.pathname,r):t.pathname,"url"];let s="";if(n)for(const i of n){const a=i.route;if(a){if(a.index)return Ok(s,i.pathname,r);const c=a.path;if(c&&!el(c,i)){const u=c[0]==="/"||s[s.length-1]==="/"?c:`/${c}`;if(s=vn(s)+hr(u),vn(t.pathname)===vn(r+i.pathname))return tl(s)!==tl(i.pathname)&&!Zp(s)?[(bn?"":r)+u,"route"]:(el(s,i)&&(s=s.slice(0,-1)),[(bn?"":r)+s,"route"])}}}return[bn?Vs(t.pathname,r):t.pathname||"/","url"]}function So(e,t,n,r,s,o){const i=Array.isArray(r)?r:st(o||n,t,s);if(i){let a,c="url";const u=Qp(t,o||n);u&&(a=hr(za(o||n,t)),c="route"),(!u||!a)&&([a,c]=th(n,t,i,s)),j().setTransactionName(a||"/"),e&&(e.updateName(a),e.setAttribute(ae,c))}}function nh(e,t){if(!Rt||!xt||!Mt||!ys||!st)return Lr&&_.warn(`reactRouterV6Instrumentation was unable to wrap Routes because of one or more missing parameters.
|
|
499
|
-
useEffect: ${Rt}. useLocation: ${xt}. useNavigationType: ${Mt}.
|
|
500
|
-
createRoutesFromChildren: ${ys}. matchRoutes: ${st}.`),e;const n=r=>{const s=ke.useRef(!0),o=xt(),i=Mt();return Rt(()=>{const a=ys(r.children);s.current?(yo(a),So(bo(),o,a,void 0,void 0,Array.from(nt)),s.current=!1):pr({location:o,routes:a,navigationType:i,version:t,allRoutes:Array.from(nt)})},[o,i]),ke.createElement(e,{...r})};return _o(n,e),n}function bo(){const e=me(),t=e?_e(e):void 0;if(!t)return;const n=U(t).op;return n==="navigation"||n==="pageload"?t:void 0}function tl(e){return e.split(/\\?\//).filter(t=>t.length>0&&t!==",").length}function $k(e){return Kp(e,"6")}function Bk(e){return Jp(e,"6")}function Uk(e){return Yp(e,"6")}function Hk(e){return Xp(e,"6")}function Wk(e){return nh(e,"6")}function zk(e){return Kp(e,"7")}function jk(e){return nh(e,"7")}function qk(e){return Yp(e,"7")}function Gk(e){return Xp(e,"7")}function Vk(e){return Jp(e,"7")}const Zk=Object.freeze(Object.defineProperty({__proto__:null,BrowserClient:Jd,ErrorBoundary:jp,OpenFeatureIntegrationHook:nk,Profiler:Wa,SDK_VERSION:ct,SEMANTIC_ATTRIBUTE_SENTRY_OP:ye,SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN:J,SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE:Ks,SEMANTIC_ATTRIBUTE_SENTRY_SOURCE:ae,Scope:Xe,WINDOW:N,addBreadcrumb:Je,addEventProcessor:Yl,addIntegration:ci,breadcrumbsIntegration:vf,browserApiErrorsIntegration:wf,browserProfilingIntegration:V1,browserSessionIntegration:Tf,browserTracingIntegration:Vn,buildLaunchDarklyFlagUsedHandler:ek,captureConsoleIntegration:p_,captureEvent:Tr,captureException:Lt,captureFeedback:Rd,captureMessage:xs,captureReactException:Ha,captureSession:ai,chromeStackLineParser:_f,close:cg,consoleLoggingIntegration:gy,contextLinesIntegration:Gv,continueTrace:Mm,createReduxEnhancer:Tk,createTransport:ud,createUserFeedbackEnvelope:qE,dedupeIntegration:bd,defaultRequestInstrumentationOptions:Ba,defaultStackLineParsers:Sf,defaultStackParser:bf,diagnoseSdkConnectivity:ik,endSession:Qi,eventFiltersIntegration:md,eventFromException:Xd,eventFromMessage:Kd,exceptionFromError:ro,extraErrorDataIntegration:v_,featureFlagsIntegration:oy,feedbackAsyncIntegration:jS,feedbackIntegration:Zc,feedbackSyncIntegration:Zc,flush:ag,forceLoad:Tv,functionToStringIntegration:hd,geckoStackLineParser:yf,getActiveSpan:me,getClient:C,getCurrentScope:j,getDefaultIntegrations:xf,getFeedback:eS,getGlobalScope:br,getIsolationScope:ve,getReplay:PI,getRootSpan:_e,getSpanDescendants:Qn,getSpanStatusFromHttpCode:yl,getTraceData:ta,globalHandlersIntegration:If,graphqlClientIntegration:e0,httpClientIntegration:Nv,httpContextIntegration:Cf,inboundFiltersIntegration:gd,init:dk,instrumentOutgoingRequests:Ap,instrumentSupabaseClient:Td,isEnabled:Vl,isInitialized:ug,lastEventId:Gl,launchDarklyIntegration:Q1,lazyLoadIntegration:Vd,linkedErrorsIntegration:Rf,logger:JS,makeBrowserOfflineTransport:I1,makeFetchTransport:ba,makeMultiplexedTransport:Ug,moduleMetadataIntegration:u_,onLoad:Iv,openFeatureIntegration:tk,opera10StackLineParser:HE,opera11StackLineParser:jE,parameterize:fd,reactErrorHandler:hk,reactRouterV3BrowserTracingIntegration:Ik,reactRouterV4BrowserTracingIntegration:Rk,reactRouterV5BrowserTracingIntegration:xk,reactRouterV6BrowserTracingIntegration:$k,reactRouterV7BrowserTracingIntegration:zk,registerSpanErrorInstrumentation:Nl,registerWebWorker:uk,replayCanvasIntegration:e1,replayIntegration:NI,reportingObserverIntegration:xv,rewriteFramesIntegration:A_,sendFeedback:Od,setContext:Zi,setCurrentClient:sd,setExtra:rg,setExtras:ng,setHttpStatus:ir,setMeasurement:Ul,setTag:og,setTags:sg,setUser:ig,showReportDialog:Ii,spanToBaggageHeader:im,spanToJSON:U,spanToTraceHeader:Rl,spotlightBrowserIntegration:J1,startBrowserTracingNavigationSpan:Xn,startBrowserTracingPageLoadSpan:Yn,startInactiveSpan:We,startNewTrace:Nm,startSession:ii,startSpan:Qs,startSpanManual:xm,statsigIntegration:ok,supabaseIntegration:j_,suppressTracing:Am,tanstackRouterBrowserTracingIntegration:Ck,thirdPartyErrorFilterIntegration:ey,unleashIntegration:rk,updateSpanName:em,useProfiler:yk,webWorkerIntegration:ck,winjsStackLineParser:$E,withActiveSpan:Zt,withErrorBoundary:bk,withIsolationScope:$h,withProfiler:_k,withScope:Pe,withSentryReactRouterV6Routing:Wk,withSentryReactRouterV7Routing:jk,withSentryRouting:Ak,wrapCreateBrowserRouterV6:Uk,wrapCreateBrowserRouterV7:qk,wrapCreateMemoryRouterV6:Hk,wrapCreateMemoryRouterV7:Gk,wrapUseRoutesV6:Bk,wrapUseRoutesV7:Vk,zodErrorsIntegration:Q_},Symbol.toStringTag,{value:"Module"}));export{Zk as S,og as a,Vn as b,Lt as c,Tr as d,Je as e,_e as g,dk as i,NI as r,U as s,_k as w};
|