@zeniai/web-app-ui 5.3.65-qa → 5.3.66-dev

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.
Files changed (172) hide show
  1. package/dist/assets/AccountMappingScreen-qzaB7mmI.js +9 -0
  2. package/dist/assets/ActualMatchingMatchDetailScreen-DqHcloug.js +1 -0
  3. package/dist/assets/AddressRoutes-CSHbftqG.js +1 -0
  4. package/dist/assets/AddressScreen-C6LJsN0I.js +9 -0
  5. package/dist/assets/{AiCfoScreen-BJhHFB_H.js → AiCfoScreen-69iCdaWe.js} +5 -5
  6. package/dist/assets/AppDrawer-BetwU_4-.js +10 -0
  7. package/dist/assets/{BillPayApprovalRoutes-U0Rf3A34.js → BillPayApprovalRoutes-DzANWOc3.js} +1 -1
  8. package/dist/assets/BillPayRoutes-D2aY2x5B.js +119 -0
  9. package/dist/assets/{BusinessVerificationPageScreen-r1Ek9gB4.js → BusinessVerificationPageScreen-BgP8jWXu.js} +2 -2
  10. package/dist/assets/CardsAiCfoScreen-B0vefglp.js +14 -0
  11. package/dist/assets/ChargeCardRoutes-giQdoPks.js +71 -0
  12. package/dist/assets/CompanyPassportScreen-B-V7cvQm.js +1 -0
  13. package/dist/assets/ConnectionAuthScreen-BXN_6nzp.js +11 -0
  14. package/dist/assets/CustomerOnboardingAuthScreen-DU6fAlNg.js +1 -0
  15. package/dist/assets/CustomerOnboardingRoutes-BxjXFm9y.js +30 -0
  16. package/dist/assets/DashboardRoutes-B8Is8VU8.js +20 -0
  17. package/dist/assets/DefaultTenantHome-DeP5rQNd.js +1 -0
  18. package/dist/assets/DomesticWireDetailScreen-BQJTKZiM.js +18 -0
  19. package/dist/assets/DrawerScreen-BUdO6BQE.js +1 -0
  20. package/dist/assets/EntityDetailRoutes-DUH9-vmY.js +1 -0
  21. package/dist/assets/ExpenseAutomationRoutes-CoKP5vlI.js +38 -0
  22. package/dist/assets/FeaturePreviewScreen-DLzs5A8g.js +1 -0
  23. package/dist/assets/HubSpotOAuthCallbackScreen-Zi2fxuEj.js +1 -0
  24. package/dist/assets/InboxNotificationsProvider-C8gkRzEM.js +1 -0
  25. package/dist/assets/InvoicingRoutes-Bl5-2g9q.js +2 -0
  26. package/dist/assets/MagicLinkRoutes-BkB3vELP.js +72 -0
  27. package/dist/assets/MagicLinkSignInScreen-BQa7bOA3.js +12 -0
  28. package/dist/assets/MobileAppDrawer-BdOhYCo5.js +1 -0
  29. package/dist/assets/NotFoundScreen-D_hX2Dzv.js +1 -0
  30. package/dist/assets/NotificationRoutes-BlXrAcVL.js +1 -0
  31. package/dist/assets/OAuthConsentScreen-DV9AMjuQ.js +1 -0
  32. package/dist/assets/PandLWithForecastRoutes-DQr_dvG9.js +1 -0
  33. package/dist/assets/{PaymentLinkScreen-ssw1HUNS.js → PaymentLinkScreen-BU0e_SRM.js} +5 -5
  34. package/dist/assets/PeopleRoutes-BGMNmycG.js +22 -0
  35. package/dist/assets/PerformanceRoutes-Bx4cQFIn.js +1 -0
  36. package/dist/assets/{Preview-DB5CbRio.js → Preview-CdZ2j2v9.js} +1 -1
  37. package/dist/assets/{QBOConnectionScreen-CGXzaY9Z.js → QBOConnectionScreen-DPCQAZIh.js} +1 -1
  38. package/dist/assets/ReimbursementApprovalRoutes-BNnc3IUS.js +1 -0
  39. package/dist/assets/{ReimbursementApprovalRuleDetailScreen-BaabHenl.js → ReimbursementApprovalRuleDetailScreen-DZMnuINe.js} +1 -1
  40. package/dist/assets/ReimbursementRoutes-CzK-ajwk.js +68 -0
  41. package/dist/assets/ReportsRoutes-FipSeC9E.js +1 -0
  42. package/dist/assets/RewardsRoutes-BXICRfw-.js +1 -0
  43. package/dist/assets/{ScheduleDetailsPrepaidExpensesScreen-DMzBHsBi.js → ScheduleDetailsPrepaidExpensesScreen-BF-khYnD.js} +5 -5
  44. package/dist/assets/ScreenRoutes-6gUtsuNq.js +2 -0
  45. package/dist/assets/{SettingsRoutes-DLS1pb7Z.js → SettingsRoutes-ZSOCIcz1.js} +6 -6
  46. package/dist/assets/{SetupPagesScreen-LpdfT-pH.js → SetupPagesScreen-DLgnlxEs.js} +5 -5
  47. package/dist/assets/SignInScreen-C1w5fnGW.js +1 -0
  48. package/dist/assets/SignOutScreen-DCUrMwdu.js +9 -0
  49. package/dist/assets/{TaskListScreen-Mlh19Bfa.js → TaskListScreen-DJlJsvJO.js} +2 -2
  50. package/dist/assets/TaskRoutes-Bwnv9rhn.js +9 -0
  51. package/dist/assets/TransactionDetailRoutes-Dw-xx0H2.js +1 -0
  52. package/dist/assets/TransactionDetailScreen-BH-OIB8S.js +5 -0
  53. package/dist/assets/TransactionListRoutes-DcrtQayK.js +1 -0
  54. package/dist/assets/TreasuryRoutes-BNsP_RFF.js +37 -0
  55. package/dist/assets/{VendorsRoutes-owMMCmOI.js → VendorsRoutes-Bzdw0VNh.js} +10 -10
  56. package/dist/assets/WiseConfirmationScreen-Cs6ZZr7W.js +12 -0
  57. package/dist/assets/ZeniAccountRoutes-CbW2U8iU.js +57 -0
  58. package/dist/assets/ZeniAccountStatementScreen-Dbn9Qd0C.js +9 -0
  59. package/dist/assets/{accountMappingHelper-mjWJVrZb.js → accountMappingHelper-BBlKWvqF.js} +1 -1
  60. package/dist/assets/analytics-Cd5J-GpX.js +68 -0
  61. package/dist/assets/{analyticsHelper-B0PgYJQ4.js → analyticsHelper-1gGrcOYN.js} +1 -1
  62. package/dist/assets/{core-BBG4mxvC.js → core-vR5k5yHJ.js} +1 -1
  63. package/dist/assets/{decodeURIComponentSafe-DgKmvHaP.js → decodeURIComponentSafe-dlx9EsSm.js} +1 -1
  64. package/dist/assets/{dnd-oIrpOltC.js → dnd-CNeE6eVY.js} +1 -1
  65. package/dist/assets/{empty-zUa_Ywzm.js → empty-BCyx7s6I.js} +1 -1
  66. package/dist/assets/{empty-BVUnugO_.js → empty-BaVMrwvd.js} +1 -1
  67. package/dist/assets/{emptyVideoElement-WG4m8gNp.js → emptyVideoElement-BsSkwvra.js} +1 -1
  68. package/dist/assets/epic-BY4nSR9p.js +2 -0
  69. package/dist/assets/expenseAutomationHelper-DhbRqzrb.js +1 -0
  70. package/dist/assets/getLocaleForTenant-DlNsSiyY.js +1 -0
  71. package/dist/assets/{index-BhDgyETA.js → index-1ujiYIu0.js} +29082 -29221
  72. package/dist/assets/{index-CD8RychW.js → index-B8gT7z4T.js} +1 -1
  73. package/dist/assets/{index-lbu92FYh.js → index-BNIWZiV_.js} +1 -1
  74. package/dist/assets/{index-BlZF-J3g.js → index-C-u59Z-A.js} +1 -1
  75. package/dist/assets/{index-DlbH0-p0.js → index-DC9buFXh.js} +1 -1
  76. package/dist/assets/{index-Bgwcwudg.js → index-DT7mcNKS.js} +1 -1
  77. package/dist/assets/{index-B9QH_oKn.js → index-DglCggLh.js} +2 -2
  78. package/dist/assets/{index-CyCQjJen.js → index-bBDyOWrB.js} +1 -1
  79. package/dist/assets/{lexical-BRrdO5Cu.js → lexical-DgMW3HzT.js} +1 -1
  80. package/dist/assets/{liveblocks-CzCs-qU3.js → liveblocks-DVkNRe2z.js} +1 -1
  81. package/dist/assets/{lottie-ULJlrwjP.js → lottie-w9LOAwHI.js} +1 -1
  82. package/dist/assets/{mui-B2F_PvWe.js → mui-Bf4yQzNc.js} +1 -1
  83. package/dist/assets/{pathToGoBack-e0pJACvC.js → pathToGoBack-C6FxxwA3.js} +1 -1
  84. package/dist/assets/{pdf-CeVn9A9c.js → pdf-HKvehc9b.js} +4 -4
  85. package/dist/assets/{pdf-lib-DiMa7ymi.js → pdf-lib-1kn73-Ho.js} +1 -1
  86. package/dist/assets/{plaid-BWZxX3Bn.js → plaid-TFLEc35h.js} +1 -1
  87. package/dist/assets/{pusher-wcP4-1ih.js → pusher-tJC8UB03.js} +1 -1
  88. package/dist/assets/{react-D7hd8riP.js → react-BKyIT5tt.js} +1 -1
  89. package/dist/assets/{react-CGMaXwI-.js → react-BtmyM_-m.js} +1 -1
  90. package/dist/assets/{react-Chuw6ptT.js → react-CiN9hWuS.js} +1 -1
  91. package/dist/assets/{react-3Jh1nOTX.js → react-DLVu_DIJ.js} +1 -1
  92. package/dist/assets/{react-Dv-IwMT5.js → react-DrY897mF.js} +1 -1
  93. package/dist/assets/{react-BrDYknqm.js → react-YQhQ1aSJ.js} +1 -1
  94. package/dist/assets/{recharts-CzGMTm3v.js → recharts-BajLe7QJ.js} +1 -1
  95. package/dist/assets/{routePaths-BvbR2--r.js → routePaths-Du4I9ue1.js} +1 -1
  96. package/dist/assets/{sentry-CWp8Ph3h.js → sentry-BcU4ynZK.js} +1 -1
  97. package/dist/assets/{stripSplatSuffix-BWJSV6oD.js → stripSplatSuffix-CGuqfZ54.js} +1 -1
  98. package/dist/assets/{url-CnTmKJO0.js → url-ee1pOdF5.js} +1 -1
  99. package/dist/assets/{url-DV6CtKQ5.js → url-l4mUxam0.js} +1 -1
  100. package/dist/assets/useActualMatchingMatchDetail-CNkjnN75.js +1 -0
  101. package/dist/assets/useAiCfoDashboardSuggestedQuestionsChips-CB15Xjw5.js +1 -0
  102. package/dist/assets/useAskAiCfoHostNavButtonProps-Daw0Xdbp.js +1 -0
  103. package/dist/assets/useChargeCardPusherEvents-B1XaK23y.js +1 -0
  104. package/dist/assets/{useDeviceId-Bzw6IkAe.js → useDeviceId-D80AOehv.js} +1 -1
  105. package/dist/assets/useEmailConnectResultRefresh-DxMN-FLO.js +1 -0
  106. package/dist/assets/useInitialThreadRequest-CujqTgMw.js +1 -0
  107. package/dist/assets/useTaskManagerAccess-DmtbEonm.js +1 -0
  108. package/dist/assets/useTaskManagerPusherEvents-Cieei3Tg.js +1 -0
  109. package/dist/assets/{utils-u0mlLj2I.js → utils-BJrHoU4M.js} +1 -1
  110. package/dist/assets/withTransactionSidePanel-D7CS7WiP.js +25 -0
  111. package/dist/assets/{zeni-epic-state-FRanwwFO.js → zeni-epic-state-BmF1nplD.js} +6 -6
  112. package/dist/index.html +1 -1
  113. package/package.json +4 -4
  114. package/dist/assets/AccountMappingScreen-Bn4DiIps.js +0 -9
  115. package/dist/assets/ActualMatchingMatchDetailScreen-CyKLkfoX.js +0 -1
  116. package/dist/assets/AddressRoutes-CMlXZdpL.js +0 -1
  117. package/dist/assets/AddressScreen-CPZX6Mga.js +0 -9
  118. package/dist/assets/AppDrawer-f4P22T-s.js +0 -10
  119. package/dist/assets/BillPayRoutes-DGRh7xdO.js +0 -119
  120. package/dist/assets/CardsAiCfoScreen-0le7ZJMu.js +0 -14
  121. package/dist/assets/ChargeCardRoutes-DJ2vt6zk.js +0 -71
  122. package/dist/assets/CompanyPassportScreen-RZ6JI1G1.js +0 -1
  123. package/dist/assets/ConnectionAuthScreen-DmnnDeQw.js +0 -11
  124. package/dist/assets/CustomerOnboardingAuthScreen-DbeMqdYb.js +0 -1
  125. package/dist/assets/CustomerOnboardingRoutes-s6nbTZNu.js +0 -30
  126. package/dist/assets/DashboardRoutes-BT8Ep0Zj.js +0 -20
  127. package/dist/assets/DefaultTenantHome-Df11kb8h.js +0 -1
  128. package/dist/assets/DomesticWireDetailScreen-y2obrXna.js +0 -18
  129. package/dist/assets/DrawerScreen-oFb1moZ7.js +0 -1
  130. package/dist/assets/EntityDetailRoutes-BSBRT0xT.js +0 -1
  131. package/dist/assets/ExpenseAutomationRoutes-Ca8MyQ3F.js +0 -38
  132. package/dist/assets/FeaturePreviewScreen-hmh5qa1F.js +0 -1
  133. package/dist/assets/HubSpotOAuthCallbackScreen-BO5xFdxD.js +0 -1
  134. package/dist/assets/InboxNotificationsProvider-J2K-16R3.js +0 -1
  135. package/dist/assets/InvoicingRoutes-CdrMbO5s.js +0 -2
  136. package/dist/assets/MagicLinkRoutes-BK5YhMpS.js +0 -72
  137. package/dist/assets/MagicLinkSignInScreen-CwfKFdEK.js +0 -12
  138. package/dist/assets/MobileAppDrawer-jPjMoXMc.js +0 -1
  139. package/dist/assets/NotFoundScreen-Cw8n2XQn.js +0 -1
  140. package/dist/assets/NotificationRoutes-bPTL-gx1.js +0 -1
  141. package/dist/assets/OAuthConsentScreen-qHIRXDfy.js +0 -1
  142. package/dist/assets/PandLWithForecastRoutes-iv8FS1Jh.js +0 -1
  143. package/dist/assets/PeopleRoutes-gWK7cISf.js +0 -22
  144. package/dist/assets/PerformanceRoutes-Q-0RiFCz.js +0 -1
  145. package/dist/assets/ReimbursementApprovalRoutes-C_sgAcum.js +0 -1
  146. package/dist/assets/ReimbursementRoutes-uxVKhJh3.js +0 -68
  147. package/dist/assets/ReportsRoutes-DO9Wko2u.js +0 -1
  148. package/dist/assets/RewardsRoutes-CpyMm_K4.js +0 -1
  149. package/dist/assets/ScreenRoutes-2kGhSSY5.js +0 -2
  150. package/dist/assets/SignInScreen-D0AGVtSB.js +0 -1
  151. package/dist/assets/SignOutScreen-DqG7ICcF.js +0 -9
  152. package/dist/assets/TaskRoutes-BLQqIb0y.js +0 -9
  153. package/dist/assets/TransactionDetailRoutes-B7iSSfjs.js +0 -1
  154. package/dist/assets/TransactionDetailScreen-DSLjb6UM.js +0 -5
  155. package/dist/assets/TransactionListRoutes-Bw5UrSgh.js +0 -1
  156. package/dist/assets/TreasuryRoutes-CssMsW2Q.js +0 -37
  157. package/dist/assets/WiseConfirmationScreen-DjHi2MKV.js +0 -12
  158. package/dist/assets/ZeniAccountRoutes-CmkqZp90.js +0 -57
  159. package/dist/assets/ZeniAccountStatementScreen-Cs6xkdf1.js +0 -9
  160. package/dist/assets/analytics-cC2XJoxx.js +0 -68
  161. package/dist/assets/epic-Du6qCFYI.js +0 -2
  162. package/dist/assets/expenseAutomationHelper-BkZxz0F-.js +0 -1
  163. package/dist/assets/getLocaleForTenant-DnBPPnzL.js +0 -1
  164. package/dist/assets/useActualMatchingMatchDetail-vmzr0KEG.js +0 -1
  165. package/dist/assets/useAiCfoDashboardSuggestedQuestionsChips-BsM9KkGc.js +0 -1
  166. package/dist/assets/useAskAiCfoHostNavButtonProps-BmnPs4uO.js +0 -1
  167. package/dist/assets/useChargeCardPusherEvents-BiuqGlTA.js +0 -1
  168. package/dist/assets/useEmailConnectResultRefresh-DMSbnQoq.js +0 -1
  169. package/dist/assets/useInitialThreadRequest-CdCPw0ds.js +0 -1
  170. package/dist/assets/useTaskManagerAccess-ljLSKJCt.js +0 -1
  171. package/dist/assets/useTaskManagerPusherEvents-BBtG4erb.js +0 -1
  172. package/dist/assets/withTransactionSidePanel-DG1lldsp.js +0 -25
@@ -0,0 +1,68 @@
1
+ import"./sentry-BcU4ynZK.js";import{L as zt}from"./zeni-epic-state-BmF1nplD.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new t.Error().stack;r&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[r]="fc5695b2-acf7-47bd-9dc8-d401eaa168b5",t._sentryDebugIdIdentifier="sentry-dbid-fc5695b2-acf7-47bd-9dc8-d401eaa168b5")}catch{}})();var os,as,ss={},Tr={},ir={};function cs(){return os||(os=1,Object.defineProperty(ir,"__esModule",{value:!0}),ir.EVENTS_WITHOUT_SUPER_PROPERTIES=ir.Event=void 0,(function(r){r.dashboard="Dashboard",r.cashBalance="Cash Balance",r.cardBalance="Card Balance",r.cashPosition="Cash Position",r.revenues="Revenues",r.operatingExpenses="Operating Expenses",r.topExpenses="Top Expenses",r.burnRate="Burn Rate",r.cashInCashOut="Cash In, Cash Out",r.howItWorks="How It Works",r.insights="Insights",r.brexAd="Brex Ad",r.companyPassport="Company Passport",r.addAddress="Add Address",r.editAddress="Edit Address",r.saveAddressClicked="Save Address Clicked",r.reports="Reports",r.profitAndLoss="Profit & Loss",r.balanceSheet="Balance Sheet",r.cashFlow="Cash Flow",r.profitAndLossWithForecast="Profit & Loss with Forecast",r.balanceSheetWithForecast="Balance Sheet with Forecast",r.cashFlowWithForecast="Cash Flow with Forecast",r.sidePanelClicked="Side Panel Clicked",r.transactionList="Transaction List",r.transactionDetails="Transaction Details",r.transactionDetailsSave="Transaction Details Save",r.transactionTypeUpdateTriggered="Transaction Type Update Triggered",r.transactionDetailReceiptOpened="Transaction Details Receipt Opened",r.transactionDetailReceiptDeleted="Attachment Deleted",r.transactionDetailReceiptAdded="Transaction Details Receipt Added",r.compareMode="Compare Mode",r.compareFilterChange="Compare Filter Change",r.compareFilterTimeframe="Compare Filter Timeframe",r.dateRangeFilter="Date Range Filter",r.timeframeSwitch="Timeframe Switch",r.graphBar="Graph Bar",r.cardStatementCloseDateClicked="Card Statement Close Date Clicked",r.cardStatementCloseDateSaved="Card Statement Close Date Saved",r.forecast="Forecast",r.forecastSwitch="Forecast Switch",r.forecastVsActualMode="Forecast vs Actual Mode",r.members="Members",r.inviteSent="Invite Sent",r.roleChanged="Role Changed",r.removeUserAccess="Remove User Access",r.resendInvite="Resend Invite",r.companySwitch="Company Switch",r.download="Download",r.sort="Sort",r.incomeTrend="Income Trend",r.spendTrend="Spend Trend",r.search="Search",r.login="Login",r.loginButton="Login Button",r.signInClick="Sign In click",r.signInViaGoogleMicrosoft="Sign In Via Google Microsoft",r.signInViaEmail="Sign In Via Email",r.signInLinkSent="Sign In Link Sent",r.loginSuccess="Login Success",r.loginFailure="Login Fail",r.logoutButton="Logout Button",r.logoutSuccess="Logout Success",r.logoutFailure="Logout Fail",r.sessionTimeoutPopupShown="Session Timeout Popup Shown",r.sessionTimeoutClicked="Session Timeout Clicked",r.sessionTimeoutAutoLogout="Session Timeout Auto Logout",r.reportGenerated="Report Generated",r.aiCFOPage="AI CFO Page",r.aiCFOChatScreenStateChanged="AI CFO Chat Screen State Changed",r.aiCFOChatSessionChanged="AI CFO Chat Session Changed",r.aiCFOChatSubmitted="AI CFO Chat Submitted",r.aiCFOChatFeedbackGiven="AI CFO Chat Feedback Given",r.aiCFOChatResponseGenerated="AI CFO Chat Response Generated",r.aiCFOChatAnswerGenerated="AI CFO Chat Answer Generated",r.aiCFOOnboardingScreenStateChanged="AI CFO Onboarding Screen State Changed",r.onboardingLinkClicked="Onboarding Invite Link Click",r.onboardingNeedHelp="Onboarding Need Help",r.onboardingInterimNeedHelp="Onboarding Interim Page Need Help",r.onboardingLandingNeedHelp="Onboarding Landing Page Need Help",r.onboardingPage="Onboarding Page",r.onboardingInterimPage="Onboarding Interim Page",r.onboardingLandingPage="Onboarding Landing Page",r.onboardingQBOConnect="Onboarding QBO Connect Clicked",r.onboardingSaveQBOConnection="Onboarding Save QBO Connection",r.onboardingClickUpdatePaymentDetails="Onboarding Landing Page Update Payment Details",r.onboardingSkipAndSave="Onboarding skip (save details if any) and activate dashboard",r.onboardingCompanyOfficerSave="Onboarding Company Officer Save",r.onboardingCompanyDetailsSave="Onboarding Company Details Save",r.onboardingBusinessVerificationCompleted="Onboarding Business Verification Completed",r.onboardingDashboardActivation="Onboarding Dashboard Activation",r.onboardingAiFinanceTeamAcknowledged="Onboarding AI Finance Team Acknowledged",r.onboardingAiFinanceTeamViewed="Onboarding AI Finance Team Viewed",r.onboardingQBOConnectionSuccess="Onboarding QBO Connection Success",r.onboardingQBOConnectionFailed="Onboarding QBO Connection Failed",r.onboardingAddressClicked="Onboarding Address Clicked",r.onboardingDocumentUploaded="Onboarding Document Uploaded",r.onboardingPhoneVerified="Onboarding Phone Verified",r.onboardingStepSkipped="Onboarding Step Skipped",r.onboardingFlowExited="Onboarding Flow Exited",r.onboardingButtonClicked="Onboarding Button Clicked",r.onboardingConnectBank="Onboarding Connect Bank",r.onboardingConnectBankSuccess="Onboarding Connect Bank Success",r.onboardingConnectBankFailure="Onboarding Connect Bank Failure",r.onboardingConnectBankLink="Onboarding Connect Bank Link",r.onboardingConnectBankGetBalance="Onboarding Connect Bank Get Balance",r.onboardingBankConnectAbandoned="Onboarding Bank Connect Abandoned",r.onboardingNewCustomerStarted="Onboarding New Customer Started",r.onboardingNewCustomerGroupCreationCheck="Onboarding New Customer Group Creation Check",r.onboardingZeniManagedQBOConnectionSelected="Onboarding Zeni Managed QBO Connection Selected",r.onboardingCustomerManagedQBOConnectionSelected="Onboarding Customer Managed Connection QBO Selected",r.onboardingZeniManagedQBOConnectionSuccess="Onboarding Zeni Managed QBO Connection Successful",r.onboardingZeniManagedQBOConnectionUnsuccess="Onboarding Zeni Managed QBO Connection Unsuccessful",r.onboardingSendInvite="Onboarding Send Invite",r.onboardingResendInvite="Onboarding Resend Invite",r.onboardingSave="Onboarding Save",r.onboardingBillingAddress="Onboarding Billing Address Clicked",r.onboardingBillingAddressSave="Onboarding Billing Address Save",r.onboardingNext="Onboarding Next",r.onboardingBack="Onboarding Back",r.onboardingActiveStep="Onboarding Active Step",r.onboardingLinkBankAccount="Onboarding Link A Bank Account",r.onboardingLinkBankAccountSuccess="Onboarding Link A Bank Account Success",r.onboardingLinkBankAccountFailure="Onboarding Link A Bank Account Failure",r.onboardingLinkANewBankAccount="Onboarding Link A New Bank Account",r.onboardingLinkANewBankAccountSuccess="Onboarding Link A New Bank Account Success",r.onboardingLinkANewBankAccountFailure="Onboarding Link A New Bank Account Failure",r.onboardingLinkCreditCard="Onboarding Link Credit Card",r.onboardingLinkCreditCardSuccess="Onboarding Link Credit Card Success",r.onboardingLinkCreditCardFailure="Onboarding Link Credit Card Failure",r.onboardingLinkNewCard="Onboarding Link a New Credit Card",r.onboardingLinkNewCardSuccess="Onboarding Link a New Credit Card Success",r.onboardingLinkNewCardFailure="Onboarding Link a New Credit Card Failure",r.onboardingBankAccountPendingVerification="Onboarding Bank Account Pending Verification",r.onboardingBankAccountVerified="Onboarding Bank Account Verified",r.onboardingSwitchToBankAccount="Onboarding Switch To Bank Account",r.onboardingSwitchToBankAccountSuccess="Onboarding Switch To Bank Account Success",r.onboardingSwitchToBankAccountFailure="Onboarding Switch To Bank Account Failure",r.onboardingSwitchToCreditCard="Onboarding Switch To Credit Card",r.onboardingSwitchToCreditCardSuccess="Onboarding Switch To Credit Card Success",r.onboardingSwitchToCreditCardFailure="Onboarding Switch To Credit Card Failure",r.onboardingInterimCardClick="Onboarding Interim Page Card Click",r.onboardingLandingPageCardClick="Onboarding Landing Page Card Click",r.billingLinkNewBankAccount="Billing Link a New Bank Account",r.billingLinkNewBankAccountSuccess="Billing Link a New Bank Account Success",r.billingLinkNewBankAccountFailure="Billing Link a New Bank Account Failure",r.billingSwitchToCreditCard="Billing Switch To Credit Card",r.billingSwitchToCreditCardSuccess="Billing Switch To Credit Card Success",r.billingSwitchToCreditCardFailure="Billing Switch To Credit Card Failure",r.billingSwitchToBankAccount="Billing Switch To Bank Account",r.billingSwitchToBankAccountSuccess="Billing Switch To Bank Account Success",r.billingSwitchToBankAccountFailure="Billing Switch To Bank Account Failure",r.billingLinkNewCard="Billing Link a New Card",r.billingLinkNewCardSuccess="Billing Link a New Card Success",r.billingLinkNewCardFailure="Billing Link a New Card Failure",r.billPayHome="Bill Pay Home",r.billPaySetup="Bill Pay Setup",r.billPayPromoPage="Bill Pay Promo",r.billPayNeedHelp="Bill Pay Need Help",r.billPayBusinessVerification="Bill Pay Business Verification",r.billPayBusinessVerificationSave="Bill Pay Business Verification Save",r.billPayBusinessVerificationSend="Bill Pay Business Verification Send",r.billPayBusinessVerificationAddOfficer="Bill Pay Business Verification Add Officer",r.billPayConnectBank="Bill Pay Connect Bank",r.billPayConnectBankSuccess="Bill Pay Connect Bank Success",r.billPayConnectBankFailure="Bill Pay Connect Bank Failure",r.billPayConnectBankLink="Bill Pay Connect Bank Link",r.billPayConnectBankGetBalance="Bill Pay Connect Bank Get Balance",r.enableBillPay="Enable Bill Pay",r.billPayDrafts="Bill Pay Drafts",r.billPayDraftsOverdue="Bill Pay Drafts Overdue",r.billPayApprovals="Bill Pay Approvals",r.billPayApprovalsAwaitingApproval="Bill Pay Approvals Awaiting Approval",r.billPayApprovalsAwaitingMyApproval="Bill Pay Approvals Awaiting My Approval",r.billPayApprovalsOverdue="Bill Pay Approvals Overdue",r.billPayApprovalsRejected="Bill Pay Approvals Rejected",r.billPayApprovalsDeleted="Bill Pay Approvals Deleted",r.billPayScheduled="Bill Pay Scheduled",r.billPayScheduledFailed="Bill Pay Scheduled Failed",r.billPayScheduledCancelled="Bill Pay Scheduled Cancelled",r.billPayScheduledDeleted="Bill Pay Scheduled Deleted",r.billPayPaid="Bill Pay Paid",r.billPayPaidACH="Bill Pay Paid ACH",r.billPayPaidWire="Bill Pay Paid Wire",r.billPayPaidDeleted="Bill Pay Paid Deleted",r.billPayPaidOffline="Bill Pay Paid Offline",r.billPayNewBill="Bill Pay New Bill",r.billPayInvoiceUpload="Bill Pay Invoice Upload",r.billPaySkipAutofill="Bill Pay Skip Autofill",r.billPayInvoiceActionClick="Bill Pay Invoice Action Click",r.billPayBillDetails="Bill Pay Bill Details",r.billPayEditBill="Bill Pay Edit Bill",r.billPayDeleteBill="Bill Pay Delete Bill",r.billPayCancelBill="Bill Pay Cancel Bill",r.billPayCancelAndDeleteBill="Bill Pay Cancel And Delete Bill",r.billPayReviewBill="Bill Pay Review Bill",r.billPaySendForApproval="Bill Pay Send For Approval",r.billPayMagicLinkPreviewEmail="Bill Pay MagicLink Preview Email",r.billPayMagicLinkPageLoad="Bill Pay MagicLink Page Load",r.billPayMagicLinkSubmitBankAccountDetails="Bill Pay MagicLink Submit Bank Account Details",r.billPayFilterClick="Bill Pay Filter Click",r.billPayFilterChange="Bill Pay Filter Change",r.billPayDownloadClick="Bill Pay Download Click",r.billPayNewVendor="Bill Pay New Vendor",r.billPayEditVendor="Bill Pay Edit Vendor",r.billPayExpandVendor="Bill Pay Expand Vendor",r.billPayChooseNewVendor="Bill Pay Choose New Vendor",r.billPayCreateNewVendorFromDropdown="Bill Pay Create New Vendor From Dropdown",r.billPayAutoDateChange="Book Close - Auto Date Change",r.billPayPrivacyPolicy="Bill Pay Privacy Policy",r.billPayAgreement="Bill Pay Agreement",r.billPayPromoSchedule="Bill Pay Schedule Demo",r.billPayPromoVideo="Bill Pay Promo Video",r.billPayTaskCard="Bill Pay Task Card",r.billPayCard="Bill Pay Card",r.enableIntlWire="Enable International Wire",r.submitIntlWire="International Wire Submit",r.intlWirePaymentMethod="International Wire Payment Method",r.zeniAssistClick="Zeni Assist Click",r.retryClick="Retry Click",r.retryConfirmClick="Retry Confirm Click",r.refundClick="Refund Click",r.refundConfirmClick="Refund Confirm Click",r.billPayBulkSelectAll="Bill Pay Bulk Select All",r.billPayBulkDeleted="Bill Pay Bulk Deleted",r.billPayBulkSubmit="Bill Pay Bulk Submit",r.billPayBulkSelection="Bill Pay Bulk Selection",r.billPayBulkPopupConfirm="Bill Pay Bulk Popup Confirm",r.billPayMarkAsPaid="Mark As Paid",r.billPayMarkAsPaidSubmit="Mark As Paid Submit",r.lowBalanceAccountSelected="Low Balance Account Selected",r.lowBalanceAccountSentForApproval="Low Balance Account Sent for Approval",r.lowBalanceAccountApprove="Low Balance Account Approve",r.lowBalanceAccountReject="Low Balance Account Reject",r.lowBalanceAccountChange="Low Balance Account Change",r.lowBalanceAccountSchedule="Low Balance Account Schedule",r.cockpitTabClicked="Cockpit Tab Clicked",r.cockpitHealthMonitorRowClicked="Cockpit Health Monitor Row Clicked",r.cockpitHealthMonitorChurnFormClicked="Cockpit Health Monitor Churn Form Click",r.cockpitHealthMonitorNotificationAlertClicked="Cockpit Health Monitor Notification Alert Clicked",r.reimbursementHome="Reimbursement Home",r.reimbursementSetup="Reimbursement Setup",r.reimbursementPromoPage="Reimbursement Promo",r.reimbursementTaskCard="Reimbursement Task Card",r.reimbursementFilterClick="Reimbursement Filter Click",r.reimbursementFilterChange="Reimbursement Filter Change",r.reimbursementDownloadClick="Reimbursement Download Click",r.reimbursementBulkSelectAll="Reimbursement Bulk Select All",r.reimbursementBulkDeleted="Reimbursement Bulk Deleted",r.reimbursementBulkSubmit="Reimbursement Bulk Submit",r.reimbursementBulkSelection="Reimbursement Bulk Selection",r.reimbursementBulkPopupConfirm="Reimbursement Bulk Popup Confirm",r.accountsListPageViewed="Accounts List Page Viewed",r.zeniAccountsSetup="Zeni Accounts Setup",r.accountsPromoPageViewed="Accounts Promo Page Viewed",r.zeniAccountsPromoCardClick="Zeni Accounts Promo Card Click",r.zeniAccountsCashBalancePromoClicked="Zeni Accounts Cash Balance Promo Clicked",r.zeniAccountsNeedHelp="Zeni Accounts Need Help",r.zeniAccountsBusinessVerification="Zeni Accounts Business Verification",r.zeniAccountsBusinessVerificationSave="Zeni Accounts Business Verification Save",r.zeniAccountsBusinessVerificationSend="Zeni Accounts Business Verification Send",r.plgPromoActionTaken="Promo Action Taken",r.cardsPromoPage="Cards Promo Page Viewed",r.cardsPromoPageClick="Cards Promo Page Clicked",r.cardsListPage="Cards List Page Viewed",r.cardsListPageClick="Cards List Page Clicked",r.cardsIssueNewCardFormClick="Issue New Card Form Clicked",r.cardsListRowClick="Cards List Row Clicked",r.cardsDetailPage="Cards Detail Page Viewed",r.cardsDetailPageClick="Cards Detail Page Clicked",r.cardsVerifyPopUpClick="Cards Verify Pop-Up Clicked",r.cardsSetupVisited="Cards Setup Page Visited",r.cardsPromoView="Cards Promo View",r.cardsSetupCardsClick="Cards Set Up Cards Click",r.cardsEnableCardsClick="Cards Enable Cards Click",r.cardsScheduleDemoClick="Cards Schedule Demo Click",r.cardsCardListView="Cards Card List View",r.cardsCardListSearchClick="Cards Card List Search Click",r.cardsCardListMoreMenuClick="Cards Card List More Menu Click",r.cardsSettingsClick="Cards Settings Click",r.cardsCardSetupView="Cards Card Setup View",r.cardsVerifyIdentityCompanyDetailsClick="Cards Verify Identity & Company Details Click",r.cardsPaymentAccountChangeClick="Cards Payment Account Change Click",r.cardsZeniCashAccountChangeClick="Cards Zeni Cash Account Change Click",r.cardsStatementsClick="Cards Statements Click",r.cardsCreditCardStatementsView="Cards Credit Card Statements View",r.cardsDownloadClick="Cards Download Click",r.cardsNewCardClick="Cards New Card Click",r.cardsCashbackOverviewClick="Cards Cashback Overview Click",r.cardsCardListRowClick="Cards Card List Row Click",r.cardsCopyIconClick="Cards Copy Icon Click",r.cardsCardListSortClick="Cards Card List Sort Click",r.cardsCardDetailView="Cards Card Detail View",r.cardsUpdateSpendLimitInitiated="Cards Update Spend Limit Initiated",r.cardsUpdateSpendLimitClick="Cards Update Spend Limit Click",r.cardsAddToWalletClick="Cards Add to Wallet Click",r.cardsNeedHelp="Cards Need Help",r.cardsBusinessVerification="Cards Business Verification",r.cardsBusinessVerificationSave="Cards Business Verification Save",r.cardsBusinessVerificationSend="Cards Business Verification Send",r.cardsConnectBank="Cards Connect Bank",r.cardsConnectBankSuccess="Cards Connect Bank Success",r.cardsConnectBankFailure="Cards Connect Bank Failure",r.cardsConnectBankGetBalance="Cards Connect Bank Get Balance",r.cardsConnectBankLink="Cards Connect Bank Link",r.zeniCardsPromoCardClicked="Zeni Cards Promo Card Click",r.cardsPayEarlyClick="Cards Pay Early Click",r.cardsPayEarlyFormView="Cards Pay Early Form View",r.cardsPayEarlyFormClick="Cards Pay Early Form Click",r.cardsPayEarlyPayNowClick="Cards Pay Early Pay Now Click",r.accountsListPageClicked="Accounts List Page Clicked",r.zeniAccountsTransferFormViewed="Transfer Between Accounts Form Viewed",r.zeniAccountsTransferFormClicked="Transfer Between Accounts Form Clicked",r.accountsDepositCheckFormViewed="Accounts Deposit Check Form Viewed",r.accountsDepositCheckFormClicked="Accounts Deposit Check Form Clicked",r.accountsPromoPageClicked="Accounts Promo Page Clicked",r.zeniAccountsSettingPageVisited="Zeni Accounts Setting Page Visited",r.zeniAccountsConnectBank="Zeni Accounts Connect Bank",r.zeniAccountsConnectBankSuccess="Zeni Accounts Connect Bank Success",r.zeniAccountsConnectBankFailure="Zeni Accounts Connect Bank Failure",r.zeniAccountsConnectBankGetBalance="Zeni Accounts Connect Bank Get Balance",r.zeniAccountsConnectBankLink="Zeni Accounts Connect Bank Link",r.enableZeniAccounts="Enable Zeni Accounts",r.reimbursementNeedHelp="Reimbursement Need Help",r.reimbursementBusinessVerification="Reimbursement Business Verification",r.reimbursementBusinessVerificationSave="Reimbursement Business Verification Save",r.reimbursementBusinessVerificationSend="Reimbursement Business Verification Send",r.reimbursementBusinessVerificationAddOfficer="Reimbursement Business Verification Add Officer",r.reimbursementConnectBank="Reimbursement Connect Bank",r.reimbursementConnectBankSuccess="Reimbursement Connect Bank Success",r.reimbursementConnectBankFailure="Reimbursement Connect Bank Failure",r.reimbursementConnectBankLink="Reimbursement Connect Bank Link",r.reimbursementConnectBankGetBalance="Reimbursement Connect Bank Get Balance",r.enableReimbursement="Enable Reimbursement",r.reimbursementMileageRateSave="Reimbursement Mileage Rate Save",r.reimbursementMileageRateEdit="Reimbursement Mileage Rate Edit",r.reimbursementPrivacyPolicy="Reimbursement Privacy Policy",r.reimbursementAgreement="Reimbursement Agreement",r.reimbursementPromoSchedule="Reimbursement Schedule Demo",r.reimbursementPromoVideo="Reimbursement Promo Video",r.reimbursementCard="Reimbursement Card",r.reimbursementDrafts="Reimbursement Drafts",r.reimbursementMyDrafts="Reimbursement My Drafts",r.reimbursementApprovals="Reimbursement Approvals",r.reimbursementApprovalsAwaitingApproval="Reimbursement Approvals Awaiting Approval",r.reimbursementApprovalsAwaitingAllApproval="Reimbursement Approvals Awaiting All Approval",r.reimbursementApprovalsAwaitingMyApproval="Reimbursement Approvals Awaiting My Approval",r.reimbursementApprovalsRejected="Reimbursement Approvals Rejected",r.reimbursementApprovalsDeleted="Reimbursement Approvals Deleted",r.reimbursementScheduled="Reimbursement Scheduled",r.reimbursementScheduledFailed="Reimbursement Scheduled Failed",r.reimbursementScheduledCancelled="Reimbursement Scheduled Cancelled",r.reimbursementScheduledDeleted="Reimbursement Scheduled Deleted",r.reimbursementPaid="Reimbursement Paid",r.reimbursementPaidACH="Reimbursement Paid ACH",r.reimbursementPaidDeleted="Reimbursement Paid Deleted",r.reimbursementListSort="Reimbursement List Sort",r.reimbursementNewReimbursement="Reimbursement New Reimbursement",r.reimbursementInvoiceUpload="Reimbursement Invoice Upload",r.reimbursementSkipAutofill="Reimbursement Skip Autofill",r.reimbursementSubmitReimbursement="Reimbursement Submit Reimbursement",r.reimbursementReimbursementDetails="Reimbursement Reimbursement Details",r.reimbursementEditReimbursement="Reimbursement Edit Reimbursement",r.reimbursementDeleteReimbursement="Reimbursement Delete Reimbursement",r.reimbursementCancelReimbursement="Reimbursement Cancel Reimbursement",r.reimbursementCancelAndDeleteReimbursement="Reimbursement Cancel And Delete Reimbursement",r.reimbursementSubmitAnywayDuplicateReimbursement="Reimbursement Submit Anyway Duplicate Reimbursement",r.reimbursementReviewDuplicateReportReimbursement="Reimbursement Review Duplicate Report Reimbursement",r.reimbursementDeleteReimbursementLine="Reimbursement Delete Reimbursement Line",r.reimbursementViewDuplicateExpense="Reimbursement View Duplicate Expense",r.groupBySwitch="Group By Switch",r.burnRateCalculatorSettings="Burn Rate Calculator Settings",r.vendorList="Vendor List",r.vendorListSort="Vendor List Sort",r.vendorListSpendTrendSelection="Vendor List Spend Trend Selection",r.vendorListSearch="Vendor List Search",r.vendorDetails="Vendor Details",r.vendorDetailsSave="Vendor Details Save",r.vendorDetailsCancel="Vendor Details Cancel",r.vendorDetailsSpendTrendHotlinkClicked="Vendor Details Spend Trend Hotlink Clicked",r.vendorOperatingExpenses="Operating Expenses By Vendor",r.vendorOperatingExpensesPageLoaded="Operating Expenses By Vendor Page Loaded",r.agingReport="Aging Report",r.agingReportDateChange="Aging Report Date Change",r.apAgingDetail="AP Aging Detail",r.arAgingDetail="AR Aging Detail",r.vendorTenantReviewListPage="Vendor Dedupe Tenant Review List Page",r.vendorGlobalReviewListPage="Vendor Dedupe Global Review List Page",r.vendorReviewList="Vendor Dedupe Review List Loaded",r.vendorReviewTenantSave="Vendor Dedupe First Review",r.vendorReviewTenantMergeInQBORedirect="Vendor Dedupe Merge in QBO Redirected",r.vendorReviewTenantMergeInQBOCancel="Vendor Dedupe Merge in QBO Canceled",r.vendorReviewTenantRecommendationUpdateContinue="Vendor Dedupe Recommendation Update Continued",r.vendorReviewTenantRecommendationUpdateCancel="Vendor Dedupe Recommendation Update Canceled",r.vendorReviewTenantUpdateCancel="Vendor Dedupe Update Canceled",r.vendorReviewTenantWebsiteOpened="Vendor Dedupe Website Opened",r.vendorReviewGlobalApproveRequest="Vendor Dedupe Approve Requested",r.vendorReviewGlobalNewVendorRequest="Vendor Dedupe New Vendor Requested",r.vendorReviewGlobalNewVendorSave="Vendor Dedupe New Vendor Saved",r.vendorReviewGlobalNewVendorCancel="Vendor Dedupe New Vendor Canceled",r.vendor1099ListPage="Vendors 1099",r.vendor1099TabSettingsSave="1099 Settings Save",r.vendor1099AccountingSettingsSave="Settings Accounting 1099 Save",r.vendor1099W9DocumentUpload="1099 Vendor W9 Upload",r.vendor1099DetailsSave="1099 Vendor Save",r.vendor1099ReportDownload="1099 Download",r.scheduleReviewList="Schedule Review List Loaded",r.scheduleReviewListDownload="Schedule Review List Download",r.scheduleDetailsPage="Schedule Details Loaded",r.scheduleDetailsNewRequested="Schedule Details New Requested",r.scheduleDetailsPreview="Schedule Details Previewed",r.scheduleDetailsSave="Schedule Details Saved",r.scheduleDetailsCancel="Schedule Details Canceled",r.scheduleDetailsLinkJournalEntry="Schedule Details Link Journal Entry",r.scheduleDetailsViewJournalEntry="Schedule Details View Journal Entry",r.scheduleDetailsJournalEntryViewLinkedExpense="Schedule Details Journal Entry View Linked Expense",r.scheduleDetailsJournalEntryLinkedSaved="Schedule Details Journal Entry Linked Saved",r.scheduleDetailsJournalEntryQBOFetched="Schedule Details Journal Entry QBO Fetched",r.scheduleDetailsJournalEntryLinkCancel="Schedule Details Journal Entry Link Canceled",r.scheduleDetailsEntryCanceled="Schedule Details Entry Canceled",r.scheduleDetailsJournalEntryLinkExpense="Schedule Details Journal Entry Link Expense",r.scheduleDetailsJournalEntryLinkExpenseLoaded="Schedule Details Journal Entry Link Expense Loaded",r.scheduleDetailsJournalEntryLinkExpenseCanceled="Schedule Details Journal Entry Link Expense Canceled",r.scheduleDetailsJounralEntryLinkExpenseSaved="Schedule Details Journal Entry Linked Expense Saved",r.scheduleDetailsDelete="Schedule Details Deleted",r.scheduleDetailsMarkComplete="Schedule Details Marked As Complete",r.taskListPage="Task List Page",r.taskDetailPage="Task Detail Page",r.cockpitTaskCardClicked="Cockpit Task Card Clicked",r.taskEdited="Task Edited",r.newTaskRequested="New Task Requested",r.healthMonitorFilterApplied="Health Monitor Filter Applied",r.error="Error",r.rewardsPageViewed="Rewards Page Viewed",r.rewardsPageClicked="Rewards Page Clicked",r.dashboardCardClicked="Dashboard Card Clicked",r.inviteEmailViewed="Rewards Invite Email Viewed",r.inviteEmailClicked="Rewards Invite Email Clicked",r.getAuditScore="Get Score",r.auditScorePercentage="Score %",r.auditIssueType="Issue Type",r.auditIssuesClicked="Issue Clicked",r.commentAdded="Comment Added",r.commentActivity="Comment Activity",r.monthCloseClicked="Month Close Clicked",r.monthCloseAuditPage="Month Close: Audit Page",r.transactionsReview="Transactions: Review",r.transactionsAutoCategorised="Transactions: Autocategorised",r.monthCloseScheduleList="Month Close: Schedule List",r.fluxAnalysis="Flux Analysis",r.fluxAnalysisReviewed="Flux Analysis: Reviewed",r.missingReceipts="Missing Receipts",r.receiptsAttached="Receipt Attached",r.insightsEmail="Insights Email",r.monthEndEmailSentFromCockpit="Month End Email Sent From Cockpit",r.sendMoneyClick="Send Money Click",r.expressPayNextClick="Express Pay Next Click",r.expressPayScheduleClick="Express Pay Schedule Click",r.aiCFOPrivacyPolicy="AI CFO Privacy Policy",r.aiCFOAgreement="AI CFO Agreement",r.treasuryNavPromoClick="Treasury Nav Promo Click",r.treasuryPromoView="Treasury Promo View",r.treasurySetupActionClick="Treasury Setup Action Click",r.treasuryProspectusClick="Treasury Prospectus Click",r.treasuryCalculatorClick="Treasury Calculator Click",r.treasuryAgreementView="Treasury Agreement View",r.treasuryAllocationAction="Treasury Allocation Action",r.treasuryRiskAction="Treasury Risk Action",r.treasuryVerificationNavigation="Treasury Verification Navigation",r.treasuryTransferAction="Treasury Transfer Action",r.treasuryDashboardInteraction="Treasury Dashboard Interaction",r.treasuryPortfolioConfirm="Treasury Portfolio Confirm",r.treasuryPromoCards="Treasury Promo Cards",r.treasuryPromoVideo="Treasury Promo Video",r.transactionCotView="Transaction Cot View",r.transactionCotDropdownView="Transaction Cot Dropdown View",r.transactionCotViewAlternative="Transaction Cot View Alternative",r.transactionCotViewRecommended="Transaction Cot View Recommended",r.recommendationAccepted="Recommendation Accepted",r.recommendationFeedbackSubmitted="Recommendation Feedback Submitted",r.recommendationFeedbackSkipped="Recommendation Feedback Skipped",r.recommendationFeedbackRetracted="Recommendation Feedback Retracted",r.aiPerfHome="AI Perf Home",r.aiPerfRefresh="AI Perf Refresh",r.aiPerfTimePeriodSelect="AI Perf Time Period Select",r.otherConnectionConnectBank="Other Connection Connect Bank",r.otherConnectionConnectBankSuccess="Other Connections Connect Bank Success",r.otherConnectionConnectBankFailure="Other Connections Connect Bank Failure",r.otherConnectionsConnectBankLink="Other Connections Connect Bank Link",r.otherConnectionConnectBankGetBalance="Other Connection Connect Bank Get Balance",r.autoTransferRuleIconClick="Auto Transfer Rule Icon Click",r.autoTransferRuleClick="Auto Transfer Rule Click",r.autoTransferRuleReviewClick="Auto Transfer Rule Review Click",r.autoTransferRuleCreateClick="Auto Transfer Rule Create Click",r.autoTransferRuleMoreClick="Auto Transfer Rule More Click",r.autoTransferRuleActionClick="Auto Transfer Rule Action Click",r.autoTransferRuleActionConfirm="Auto Transfer Rule Action Confirm",r.autoTransferRuleActionCancel="Auto Transfer Rule Action Cancel",r.integrationsNotifyMeClicked="Integrations Notify Me Clicked",r.invoicingOverviewPage="Invoicing Overview Page",r.invoicingInvoicesListPage="Invoicing Invoices List Page",r.invoicingCreateInvoicePage="Invoicing Create Invoice Page",r.invoicingInvoiceDetailPage="Invoicing Invoice Detail Page",r.invoicingCustomersListPage="Invoicing Customers List Page",r.invoicingCustomerFormPage="Invoicing Customer Form Page",r.invoicingCustomerDetailPage="Invoicing Customer Detail Page",r.invoicingSubscriptionsListPage="Invoicing Subscriptions List Page",r.invoicingSubscriptionFormPage="Invoicing Subscription Form Page",r.invoicingSubscriptionDetailPage="Invoicing Subscription Detail Page",r.invoicingPaymentsListPage="Invoicing Payments List Page",r.invoicingRecordPaymentPage="Invoicing Record Payment Page",r.invoicingTransactionDetailPage="Invoicing Transaction Detail Page",r.invoicingCreditsListPage="Invoicing Credits List Page",r.invoicingCreditDetailPage="Invoicing Credit Detail Page",r.invoicingDiscountsListPage="Invoicing Discounts List Page",r.invoicingCouponFormPage="Invoicing Coupon Form Page",r.invoicingDiscountDetailPage="Invoicing Discount Detail Page",r.invoicingDunningListPage="Invoicing Dunning List Page",r.invoicingDunningDetailPage="Invoicing Dunning Detail Page",r.invoicingCatalogPage="Invoicing Catalog Page",r.invoicingCatalogItemFormPage="Invoicing Catalog Item Form Page",r.invoicingCatalogItemDetailPage="Invoicing Catalog Item Detail Page",r.invoicingSettingsPage="Invoicing Settings Page",r.invoicingAuditLogPage="Invoicing Audit Log Page",r.invoicingApprovalsPage="Invoicing Approvals Page",r.invoicingDataImportHubPage="Invoicing Data Import Hub Page",r.invoicingDataImportMigratePage="Invoicing Data Import Migrate Page",r.invoicingViewInvoicesClicked="Invoicing View Invoices Clicked",r.invoicingViewPaymentsClicked="Invoicing View Payments Clicked",r.invoicingSubscriptionTileClicked="Invoicing Subscription Tile Clicked",r.invoicingCreateInvoiceClicked="Invoicing Create Invoice Clicked",r.invoicingInvoiceRowClicked="Invoicing Invoice Row Clicked",r.invoicingImportCsvClicked="Invoicing Import CSV Clicked",r.invoicingInvoiceCreated="Invoicing Invoice Created",r.invoicingCreateInvoiceCancelled="Invoicing Create Invoice Cancelled",r.invoicingInvoiceEdited="Invoicing Invoice Edited",r.invoicingInvoicePdfDownloaded="Invoicing Invoice PDF Downloaded",r.invoicingInvoiceReminderSent="Invoicing Invoice Reminder Sent",r.invoicingRecordPaymentClicked="Invoicing Record Payment Clicked",r.invoicingCreditNoteIssued="Invoicing Credit Note Issued",r.invoicingInvoiceVoided="Invoicing Invoice Voided",r.invoicingInvoiceRegenerated="Invoicing Invoice Regenerated",r.invoicingAddCustomerClicked="Invoicing Add Customer Clicked",r.invoicingCustomerRowClicked="Invoicing Customer Row Clicked",r.invoicingCustomerSaved="Invoicing Customer Saved",r.invoicingCustomerFormCancelled="Invoicing Customer Form Cancelled",r.invoicingCustomerEdited="Invoicing Customer Edited",r.invoicingAddSubscriptionClicked="Invoicing Add Subscription Clicked",r.invoicingSubscriptionRowClicked="Invoicing Subscription Row Clicked",r.invoicingSubscriptionLifecycleAction="Invoicing Subscription Lifecycle Action",r.invoicingSubscriptionSaved="Invoicing Subscription Saved",r.invoicingSubscriptionFormCancelled="Invoicing Subscription Form Cancelled",r.invoicingSubscriptionEdited="Invoicing Subscription Edited",r.invoicingPaymentRowClicked="Invoicing Payment Row Clicked",r.invoicingPaymentRecorded="Invoicing Payment Recorded",r.invoicingRecordPaymentCancelled="Invoicing Record Payment Cancelled",r.invoicingTransactionCaptured="Invoicing Transaction Captured",r.invoicingCreditNoteRowClicked="Invoicing Credit Note Row Clicked",r.invoicingCreateCouponClicked="Invoicing Create Coupon Clicked",r.invoicingDiscountRowClicked="Invoicing Discount Row Clicked",r.invoicingCouponSaved="Invoicing Coupon Saved",r.invoicingCouponFormCancelled="Invoicing Coupon Form Cancelled",r.invoicingCouponEdited="Invoicing Coupon Edited",r.invoicingDunningCaseRowClicked="Invoicing Dunning Case Row Clicked",r.invoicingDunningAction="Invoicing Dunning Action",r.invoicingAddCatalogItemClicked="Invoicing Add Catalog Item Clicked",r.invoicingCatalogItemRowClicked="Invoicing Catalog Item Row Clicked",r.invoicingCatalogItemSaved="Invoicing Catalog Item Saved",r.invoicingCatalogItemFormCancelled="Invoicing Catalog Item Form Cancelled",r.invoicingCatalogItemEdited="Invoicing Catalog Item Edited",r.invoicingSettingsSaved="Invoicing Settings Saved",r.invoicingBankAccountConnectClicked="Invoicing Bank Account Connect Clicked",r.invoicingLogoUploaded="Invoicing Logo Uploaded",r.invoicingApprovalAction="Invoicing Approval Action",r.invoicingNewImportClicked="Invoicing New Import Clicked",r.invoicingImportSessionAction="Invoicing Import Session Action",r.invoicingChargebeeConnectClicked="Invoicing Chargebee Connect Clicked",r.invoicingImportTemplatesDownloaded="Invoicing Import Templates Downloaded",r.invoicingImportFileUploaded="Invoicing Import File Uploaded",r.invoicingImportStarted="Invoicing Import Started",r.invoicingImportSavedForLater="Invoicing Import Saved For Later",r.invoicingEntityLinkClicked="Invoicing Entity Link Clicked",r.invoicingPromoSchedule="Invoicing Schedule Demo",r.integrationConnectClicked="Integration Connect Clicked",r.integrationCredentialsSubmitted="Integration Credentials Submitted",r.integrationConnected="Integration Connected",r.integrationConnectFailed="Integration Connect Failed",r.integrationConnectDismissed="Integration Connect Dismissed",r.integrationDisconnected="Integration Disconnected",r.aiCloseTransactionSearch="AI Close Transaction Search"})(t||(ir.Event=t={})),ir.EVENTS_WITHOUT_SUPER_PROPERTIES=new Set([t.signInClick,t.signInViaGoogleMicrosoft,t.signInViaEmail,t.signInLinkSent])),ir;var t}var ls,us,Ui={};function e_(){return us||(us=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.extractUtmParamsFromUrl=t.EVENTS_WITHOUT_SUPER_PROPERTIES=t.Event=t.Analytics=void 0;const r=(function(){if(as)return Tr;as=1,Object.defineProperty(Tr,"__esModule",{value:!0}),Tr.Analytics=void 0;const i=cs(),s=(h,o)=>{const a=(c=>{if(c==null)return null;if(!c.includes(":"))return c;const u=c.split(":")[1];return u!==""?u:null})(h);return{transaction_id:a,line_item_id:o,transaction_id_and_line_item_id:a!=null&&o!=null?`${a}:${o}`:null}},l=({recommendationFor:h,recommendation:o,recommendationSource:a,recommendationConfidencePercentage:c,alternativeRecommendation:u,alternativeRecommendationSource:p,alternativeRecommendationConfidencePercentage:_,selectedValue:m,numberOfRecommendations:g,transactionId:v,lineId:y})=>({recommendation_for:h,recommendation:o,recommendation_source:a,recommendation_confidence_percentage:c,alternative_recommendation:u,alternative_recommendation_source:p,alternative_recommendation_confidence_percentage:_,selected_value:m,number_of_recommendations:g,...s(v,y)});class d{constructor(o){this.provider=o,this.superProperties={},this.userProperties={},this.userAndSuperProperties={}}static splitUserAndSuperProperties(o){return{userProperties:{$distinct_id:o.$distinct_id??"",user_id:o.user_id??"",role_at_company:o.role_at_company??"",$email:o.$email??"",user_email_domain:o.user_email_domain??"",$first_name:o.$first_name??"",$last_name:o.$last_name??"",company_ids:o.company_ids??[],company_names:o.company_names??[],user_roles:o.user_roles??[],app_type:o.app_type??"web",app_version:o.app_version??"",app_short_version:o.app_short_version??"",profile_type:o.profile_type??void 0,chargebee_customer_id:o.chargebee_customer_id??"",is_zeni:o.is_zeni??void 0},superProperties:{appearance:o.appearance??void 0,company_id:o.company_id??"",company_name:o.company_name??"",user_role:o.user_role??[],tenant_id:o.tenant_id??"",tenant_email_domain:o.tenant_email_domain??""}}}identify(o,a){const c=a??{};this.userAndSuperProperties=Object.assign({},this.userAndSuperProperties,c,{$distinct_id:o,profile_type:"user"});const u=d.splitUserAndSuperProperties(this.userAndSuperProperties);this.userProperties=u.userProperties,this.superProperties=u.superProperties,this.provider.identify(o,this.userProperties)}identifyUserAndCompany(o,a,c,u,p){const _=u??{};this.userAndSuperProperties=Object.assign({},this.userAndSuperProperties,_,{$distinct_id:o==="company"?c:a,user_id:a,company_id:c,profile_type:o});const m=d.splitUserAndSuperProperties(this.userAndSuperProperties);this.userProperties=m.userProperties,this.superProperties=m.superProperties,this.provider.identifyUserAndCompany(o,a,c,this.userProperties,p)}resetUserIdentity(){console.warn("Resetting user identity"),this.superProperties={},this.userProperties={},this.userAndSuperProperties={},this.provider.reset()}track(o){this.fireTrack(o)}trackLogin(o,a,c){this.fireTrack(o,{login_type:a,customer_type:c})}trackSignInClick(o){const a={login_type:o.charAt(0).toUpperCase()+o.slice(1)};this.fireTrack(i.Event.signInClick,a)}trackSignInViaGoogleMicrosoft(){this.fireTrack(i.Event.signInViaGoogleMicrosoft)}trackSignInViaEmail(){this.fireTrack(i.Event.signInViaEmail)}trackSignInLinkSent(){this.fireTrack(i.Event.signInLinkSent)}trackError(o,a,c,u){this.fireTrack(o,{error_referrer:a,error_description:c,error_code:u})}trackSidePanelClicked(o,a){this.fireTrack(i.Event.sidePanelClicked,{sidepanel_click_type:o,sidepanel_click_group_type:a})}trackLogout(o){this.fireTrack(o)}trackSessionTimeoutPopupShown(o){const a={seconds_remaining:o};this.fireTrack(i.Event.sessionTimeoutPopupShown,a)}trackSessionTimeoutClicked(o,a){const c={click_type:o,seconds_remaining:a};this.fireTrack(i.Event.sessionTimeoutClicked,c)}trackSessionTimeoutAutoLogout(){this.fireTrack(i.Event.sessionTimeoutAutoLogout)}trackPageLoaded(o,a,c){this.fireTrack(o,{referrer_card:a,customer_type:c})}trackTransactionList(o,a,c,u,p,_){this.fireTrack(i.Event.transactionList,{account_id:o,account_name:a,referrer_card:c,referrer_account:u,referrer_account_group:p,load_more:_})}trackTransactionDetails(o,a,c,u,p,_,m,g,v,y,k,E,w,C,P){this.fireTrack(i.Event.transactionDetails,{account_id:o,account_name:a,transaction_id:c,transaction_name:u,category:p,class:_,transaction_type:m,transaction_amount:g,transaction_memo:v,line_item_count:y,receipt_file_names:k,referrer_card:E,search_term:w,result_position:C,results_count:P})}trackCompareMode(o,a,c){this.fireTrack(i.Event.compareMode,{is_turned_on:o,referrer_card:a,graph_filter:c})}trackCompareFilterChange(o,a,c,u){this.fireTrack(i.Event.compareFilterChange,{value:o,referrer_card:a,graph_filter:c,clicked_on:u})}trackCompareFilterTimeFrame(o,a,c,u){this.fireTrack(i.Event.compareFilterTimeframe,{referrer_card:o,graph_filter:a,clicked_on:c,value:u})}trackDateRangeFilterChange(o,a,c,u,p){this.fireTrack(i.Event.dateRangeFilter,{parent_card:o,clicked_on:a,compare_mode:c,value:u,bar_name:p})}trackTimeframeSwitch(o,a,c){this.fireTrack(i.Event.timeframeSwitch,{value:o,parent_card:a,referrer_card:c})}trackGraphBar(o,a,c,u){this.fireTrack(i.Event.graphBar,{referrer_card:o,graph_filter:a,compare_mode:c,bar_name:u})}trackInviteSent(o,a,c){this.fireTrack(i.Event.inviteSent,{role:o,count:a,emails:c})}trackRoleChanged(o,a,c){this.fireTrack(i.Event.roleChanged,{old_role:o,new_role:a,member_email:c})}trackRemoveUserAccess(o,a){this.fireTrack(i.Event.removeUserAccess,{role:o,member_email:a})}trackResendInvite(o,a){this.fireTrack(i.Event.resendInvite,{role:o,member_email:a})}trackCompanySwitch(o,a,c){this.fireTrack(i.Event.companySwitch,{new_company_id:o,new_company_name:a,new_user_role:c})}trackDownload(o,a,c,u){this.fireTrack(i.Event.download,{referrer_card:o,graph_filter:a,file_type:c,compare_mode:u})}trackSpendIncomeTrendForTransaction(o,a,c,u,p,_,m,g,v,y){this.fireTrack(o,{referrer_card:a,transaction_id:c,transaction_type:u,transaction_name:p,account_ids:_,account_names:m,class_ids:g,class_names:v,bar_name:y})}trackSpendIncomeTrend(o,a,c,u,p){this.fireTrack(o,{referrer_card:a,bar_name:p,entity_name:u,entity_type:c})}trackSearch(o,a,c,u,p){this.fireTrack(o,{referrer_card:a,entity_type:c,entity_name:u,search_term:p})}trackTransactionDetailReceipt(o,a,c,u,p,_,m){this.fireTrack(o,{attachment_id:a,transaction_id:c,transaction_name:u,transaction_type:p,account_ids:_,account_names:m})}trackTransactionDetailReceiptUpload(o,a,c,u,p,_,m,g){this.fireTrack(i.Event.transactionDetailReceiptAdded,{account_id:o,account_name:a,transaction_id:c,transaction_name:u,transaction_type:p,transaction_memo:_,file_name:m,file_type:g})}trackCardStatementCloseDate(o,a,c,u,p){this.fireTrack(o,{referrer_card:u,account_id:a,account_name:c,value:p})}trackReportGenerated(o,a,c,u,p,_,m,g){const v={report_id:o,file_type:a,time_taken_rest_api:c,time_taken_data_transform:u,time_taken_rendering:p,time_taken_total:_};Object.assign(v,m!=null?{time_taken_pdf_merge:m}:{}),Object.assign(v,g!=null?{time_taken_sub_report_total_max:g}:{}),this.fireTrack(i.Event.reportGenerated,v)}trackInsightsNavigation(o,a){this.fireTrack(o,{referrer_view:a})}trackForecast(){this.fireTrack(i.Event.forecast)}trackForecastSwitch(o,a){this.fireTrack(i.Event.forecastSwitch,{parent_card:o,forecast_name:a})}trackForecastVsActualMode(o,a,c){this.fireTrack(i.Event.forecastVsActualMode,{parent_card:o,forecast_name:a,is_turned_on:c})}trackSpendManagmentFilterClick(o){switch(o){case"bill_pay":this.fireTrack(i.Event.billPayFilterClick);break;case"reimbursement":this.fireTrack(i.Event.reimbursementFilterClick)}}trackSpendManagmentFilterChange(o,a){switch(o){case"bill_pay":this.fireTrack(i.Event.billPayFilterChange,{filter_categories:a});break;case"reimbursement":this.fireTrack(i.Event.reimbursementFilterChange,{filter_categories:a})}}trackSpendManagementDownloadClick(o){switch(o){case"bill_pay":this.fireTrack(i.Event.billPayDownloadClick);break;case"reimbursement":this.fireTrack(i.Event.reimbursementDownloadClick)}}trackBillPayPrivacyPolicy(){this.fireTrack(i.Event.billPayPrivacyPolicy)}trackBillPayAgreement(){this.fireTrack(i.Event.billPayAgreement)}trackReimbursementPrivacyPolicy(){this.fireTrack(i.Event.reimbursementPrivacyPolicy)}trackReimbursementAgreement(){this.fireTrack(i.Event.reimbursementAgreement)}trackReimbursementMileageRateSave(o){const a={mileage_unit_amount:o};this.fireTrack(i.Event.reimbursementMileageRateSave,a)}trackReimbursementMileageRateEdit(){this.fireTrack(i.Event.reimbursementMileageRateEdit)}trackReimbursementPromoScheduleDemo(){this.fireTrack(i.Event.reimbursementPromoSchedule)}trackReimbursementPromoVideo(){this.fireTrack(i.Event.reimbursementPromoVideo)}trackBillPayPromoScheduleDemo(){this.fireTrack(i.Event.billPayPromoSchedule)}trackInvoicingPromoScheduleDemo(){this.fireTrack(i.Event.invoicingPromoSchedule)}trackBillPayPromoVideo(){this.fireTrack(i.Event.billPayPromoVideo)}trackBillPayTaskCard(o){const a={count:o};this.fireTrack(i.Event.billPayTaskCard,a)}trackBillPayCard(o,a){const c={transaction_amount:a,bill_pay_tab_subtab:o};this.fireTrack(i.Event.billPayCard,c)}trackReimbursementCard(o,a){const c={transaction_amount:a,reimbursement_tab_subtab:o};this.fireTrack(i.Event.reimbursementCard,c)}trackReimbursementTaskCard(o){const a={count:o};this.fireTrack(i.Event.reimbursementTaskCard,a)}trackOnboardingConnectQBO(o=!1){const a={is_reconnect:o};this.fireTrack(i.Event.onboardingQBOConnect,a)}trackIntegrationsNotifyMeClicked(o,a){const c={referrer_card:o,connector:a};this.fireTrack(i.Event.integrationsNotifyMeClicked,c)}trackOnboardingSaveQBOConnection(o,a){const c={qbo_realm_id:o,qbo_connection_id:a};this.fireTrack(i.Event.onboardingSaveQBOConnection,c)}trackOnboardingQBOConnectionSuccess(o,a){const c={qbo_realm_id:o,qbo_connection_id:a};this.fireTrack(i.Event.onboardingQBOConnectionSuccess,c)}trackOnboardingQBOConnectionFailed(o,a,c){const u={qbo_realm_id:o,qbo_connection_id:a,qbo_connection_response_message:c};this.fireTrack(i.Event.onboardingQBOConnectionFailed,u)}trackOnboardingAiFinanceTeamViewed(){this.fireTrack(i.Event.onboardingAiFinanceTeamViewed)}trackOnboardingAddressClicked(o){const a={address_type:o};this.fireTrack(i.Event.onboardingAddressClicked,a)}trackOnboardingDocumentUploaded(o,a){const c={document_kind:o,document_type:a};this.fireTrack(i.Event.onboardingDocumentUploaded,c)}trackOnboardingPhoneVerified(){this.fireTrack(i.Event.onboardingPhoneVerified)}trackOnboardingStepSkipped(o){const a={skipped_step:o};this.fireTrack(i.Event.onboardingStepSkipped,a)}trackOnboardingFlowExited(o){const a={exit_destination:o};this.fireTrack(i.Event.onboardingFlowExited,a)}trackOnboardingButtonClicked(o,a,c,u){const p={onboarding_button:o,onboarding_current_step:a,triggered_action:c,action_name:u};this.fireTrack(i.Event.onboardingButtonClicked,p)}buildIntegrationConnectionProps(o,a,c,u=null){return{referrer_card:a,connector:o,connection_type:c,error_message:u}}trackIntegrationConnectClicked(o,a,c){this.fireTrack(i.Event.integrationConnectClicked,this.buildIntegrationConnectionProps(o,a,c))}trackIntegrationCredentialsSubmitted(o,a,c){this.fireTrack(i.Event.integrationCredentialsSubmitted,this.buildIntegrationConnectionProps(o,a,c))}trackIntegrationConnected(o,a,c){this.fireTrack(i.Event.integrationConnected,this.buildIntegrationConnectionProps(o,a,c))}trackIntegrationConnectFailed(o,a,c,u){this.fireTrack(i.Event.integrationConnectFailed,this.buildIntegrationConnectionProps(o,a,c,u))}trackIntegrationDisconnected(o,a,c){this.fireTrack(i.Event.integrationDisconnected,this.buildIntegrationConnectionProps(o,a,c))}trackIntegrationConnectDismissed(o,a,c){this.fireTrack(i.Event.integrationConnectDismissed,this.buildIntegrationConnectionProps(o,a,c))}trackConnectBankAbandoned(o,a){o==="onboarding"&&this.fireTrack(i.Event.onboardingBankConnectAbandoned,{referrer_card:a})}trackOnboardingClickUpdatePaymentDetails(o,a){const c={payment_method:o,customer_type:a};this.fireTrack(i.Event.onboardingClickUpdatePaymentDetails,c)}trackOnboardingCurrentStep(o,a){const c={onboarding_current_step:o,onboarding_previous_step:a};this.fireTrack(i.Event.onboardingActiveStep,c)}trackOnboardingBankAccountPendingVerification(o,a){const c={verification_type:o,plaid_session_id:a};this.fireTrack(i.Event.onboardingBankAccountPendingVerification,c)}trackOnboardingBankAccountVerified(o){const a={verification_type:o};this.fireTrack(i.Event.onboardingBankAccountVerified,a)}trackOnboardingBusinessVerificationCompleted(o,a){const c={document_kind:o,verification_type:a};this.fireTrack(i.Event.onboardingBusinessVerificationCompleted,c)}trackOnboardingBillingAddress(o){const a={billing_address_field:o};this.fireTrack(i.Event.onboardingBillingAddress,a)}trackOnboardingBillingAddressSave(o){const a={address:{street:o.street,suite:o.suite,city:o.city,state:o.state,country:o.country,postal_code:o.postalCode,secondary_info:o.secondaryInfo}};this.fireTrack(i.Event.onboardingBillingAddressSave,a)}trackOnboardingBack(o,a){const c={onboarding_current_step:o,onboarding_previous_step:a};this.fireTrack(i.Event.onboardingBack,c)}trackOnboardingNext(o,a){const c={onboarding_current_step:a,onboarding_previous_step:o};this.fireTrack(i.Event.onboardingNext,c)}trackSaveAddressClicked(o,a){const c={address:{street:a?.street??"",suite:a?.suite??"",city:a?.city??"",state:a?.state??"",country:a?.country??"",postal_code:a?.postalCode??"",secondary_info:a?.secondaryInfo??""}};this.fireTrack(o,c)}trackOnboardingCompanyOfficerSave(o,a,c){const u={company_officer_email:o.email,company_officer_birthday:o.birthday,company_officer_ownership:o.companyOwnership,company_officer_first_name:o.firstName,company_officer_last_name:o.lastName,company_officer_role:o.companyRole,company_officer_document_type_for_verification:o.documentTypeForVerification,company_officer_phone:o.phone,company_officer_address:o.formattedAddress,company_legal_name:a.legalName,completed_fields:c?.completedFields??[],completed_fields_status:c?.status??"not_started"};this.fireTrack(i.Event.onboardingCompanyOfficerSave,u)}trackOnboardingCompanyDetailsSave(o,a,c){const u={company_description:o.companyDescription,company_legal_name:o.legalName,company_industry:o.industry,company_phone:o.phone,company_website:o.website,company_address:o.formattedAddress,inc_date:o.incDate,primary_contact_first_name:c.firstName,primary_contact_last_name:c.lastName,primary_contact_email:c.email,completed_fields:a.completedFields,completed_fields_status:a.status};this.fireTrack(i.Event.onboardingCompanyDetailsSave,u)}trackOnboardingDashboardActivation(o){const a={time_since_quote_sign:o.timeSinceQuoteSign,time_since_quote_sign_in_minutes:o.timeSinceQuoteSignInMinutes,is_kyc_done:o.isKycDone,is_kyb_done:o.isKybDone,payment_type:o.paymentType,payment_source:o.paymentSource,qbo_connection_source:o.qboConnectionSource};this.fireTrack(i.Event.onboardingDashboardActivation,a)}trackOnboardingNewCustomerStarted(){this.fireTrack(i.Event.onboardingNewCustomerStarted)}trackOnboardingAiFinanceTeamAcknowledged(){this.fireTrack(i.Event.onboardingAiFinanceTeamAcknowledged)}trackOnboardingNewCustomerGroupCreationCheck(o,a){const c={company_email_domain:o.companyEmailDomain,primary_contact_email:o.primaryContactEmail,group_name:a.groupName,group_email:a.groupEmail,group_description:a.groupDescription,is_company_email_domain_available:a.isCompanyEmailDomainAvailable};this.fireTrack(i.Event.onboardingNewCustomerGroupCreationCheck,c)}trackOnboardingQBOConnectionSelected(o){const a={first_name:o.firstName,last_name:o.lastName,customer_email:o.customerEmail};o.isZeniOrCustomer==="customer"?this.fireTrack(i.Event.onboardingCustomerManagedQBOConnectionSelected,a):this.fireTrack(i.Event.onboardingZeniManagedQBOConnectionSelected,a)}trackOnboardingZeniManagedQBOConnection(o){const a={first_name:o.firstName,last_name:o.lastName,customer_email:o.customerEmail,qbo_connection_response_message:o.qboConnectionResponseMessage};o.isSuccess?this.fireTrack(i.Event.onboardingZeniManagedQBOConnectionSuccess,a):this.fireTrack(i.Event.onboardingZeniManagedQBOConnectionUnsuccess,a)}trackOnboardingSaveOrSendInvite(o,a,c,u){const p={company_domain:o.companyDomain,primary_contact_email:o.primaryContactEmail,group_name:a.groupName,group_email:a.groupEmail,group_description:a.groupDescription,first_name:c.firstName,last_name:c.lastName,customer_email:c.customerEmail,company_name:c.companyName,entitty_type:c.entittyType,qbo_realm_id:c.qboRealmId,hubspot_id:c.hubSpotId,chargebee_id:c.chargebeeId,products:c.products,is_zeni_managed_qbo_connection_selected:u.isZeniManagedQboConnectionSelected,is_customer_managed_qbo_connection_selected:u.isCustomerManagedQboConnectionSelected,qbo_connection_status:u.qboConnectionStatus,referrer_card:"Cockpit - Onboarding"};u.isSendInvite?u.isInviteAlreadySent?this.fireTrack(i.Event.onboardingResendInvite,p):this.fireTrack(i.Event.onboardingSendInvite,p):this.fireTrack(i.Event.onboardingSave,p)}trackOnboardingSendInvite(o,a,c){const u={company_id:o,company_name:c.companyName,company_domain:c.companyEmailDomain,customer_email:c.customerEmail,referrer_card:"Cockpit - Onboarding List"};this.fireTrack(a?i.Event.onboardingResendInvite:i.Event.onboardingSendInvite,u)}trackOnboardingInterimCard(o){const a={card_click:o};this.fireTrack(i.Event.onboardingInterimCardClick,a)}trackOnboardingLandingPageCardClick(o){const a={card_click:o};this.fireTrack(i.Event.onboardingLandingPageCardClick,a)}trackBusinessVerificationSave(o,a,c,u,p){const _={company_officer_email:o.email,company_officer_birthday:o.birthday,company_officer_ownership:o.companyOwnership,company_officer_first_name:o.firstName,company_officer_last_name:o.lastName,company_officer_role:o.companyRole,company_officer_document_type_for_verification:o.documentTypeForVerification,company_officer_phone:o.phone,company_officer_address:o.formattedAddress,company_description:a.companyDescription,company_legal_name:a.legalName,company_industry:a.industry,company_phone:a.phone,company_website:a.website,company_address:a.formattedAddress,inc_date:a.incDate,primary_contact_first_name:c.firstName,primary_contact_last_name:c.lastName,primary_contact_email:c.email,referrer_card:p};switch(u){case"zeni_accounts":this.fireTrack(i.Event.zeniAccountsBusinessVerificationSave,_);break;case"reimbursement":this.fireTrack(i.Event.reimbursementBusinessVerificationSave,_);break;case"onboarding":this.fireTrack(i.Event.onboardingSkipAndSave,_);break;case"charge_cards":this.fireTrack(i.Event.cardsBusinessVerification,_);break;default:this.fireTrack(i.Event.billPayBusinessVerificationSave,_)}}trackBusinessVerificationSend(o,a,c,u,p){const _={company_officer_email:o.email,company_officer_birthday:o.birthday,company_officer_ownership:o.companyOwnership,company_officer_first_name:o.firstName,company_officer_last_name:o.lastName,company_officer_role:o.companyRole,company_officer_document_type_for_verification:o.documentTypeForVerification,company_officer_phone:o.phone,company_officer_address:o.formattedAddress,company_description:a.companyDescription,company_legal_name:a.legalName,company_industry:a.industry,company_phone:a.phone,company_website:a.website,company_address:a.formattedAddress,inc_date:a.incDate,primary_contact_first_name:c.firstName,primary_contact_last_name:c.lastName,primary_contact_email:c.email,referrer_card:p};switch(u){case"zeni_accounts":this.fireTrack(i.Event.zeniAccountsBusinessVerificationSend,_);break;case"reimbursement":this.fireTrack(i.Event.reimbursementBusinessVerificationSend,_);break;case"charge_cards":this.fireTrack(i.Event.cardsBusinessVerificationSend,_);break;default:this.fireTrack(i.Event.billPayBusinessVerificationSend,_)}}onboardingConnectBankEventsByEventSource(o,a){if(a!=null&&o!=null)switch(a){case"link_bank_account":this.fireTrack(i.Event.onboardingLinkBankAccount,{referrer_card:o});break;case"switch_to_bank_account":this.fireTrack(i.Event.onboardingSwitchToBankAccount,{referrer_card:o});break;case"link_new_bank_account":this.fireTrack(i.Event.onboardingLinkANewBankAccount,{referrer_card:o})}}onboardingConnectBankEventsByEventSourceSuccess(o,a,c,u,p,_){if(_!=null&&p!=null)switch(_){case"link_bank_account":this.fireTrack(i.Event.onboardingLinkBankAccountSuccess,{referrer_card:p,plaid_session_id:o,plaid_account_id:a,is_micro_deposit_verification_done:c??!1,plaid_institution_name:u});break;case"switch_to_bank_account":this.fireTrack(i.Event.onboardingSwitchToBankAccountSuccess,{referrer_card:p,plaid_session_id:o,plaid_account_id:a,is_micro_deposit_verification_done:c??!1,plaid_institution_name:u});break;case"link_new_bank_account":this.fireTrack(i.Event.onboardingLinkANewBankAccountSuccess,{referrer_card:p,plaid_session_id:o,plaid_account_id:a,is_micro_deposit_verification_done:c??!1,plaid_institution_name:u})}}onboardingConnectBankEventsByEventSourceFailure(o,a,c,u,p,_,m){if(m!=null&&_!=null)switch(m){case"link_bank_account":this.fireTrack(i.Event.onboardingLinkBankAccountFailure,{referrer_card:_,error_description:o,error_code:p,plaid_session_id:a,plaid_request_id:c,plaid_institution_name:u});break;case"switch_to_bank_account":this.fireTrack(i.Event.onboardingSwitchToBankAccountFailure,{referrer_card:_,error_description:o,error_code:p,plaid_session_id:a,plaid_request_id:c,plaid_institution_name:u});break;case"link_new_bank_account":this.fireTrack(i.Event.onboardingLinkANewBankAccountFailure,{referrer_card:_,error_description:o,error_code:p,plaid_session_id:a,plaid_request_id:c,plaid_institution_name:u})}}onboardingCreditCardEventsConnectByEventSource(o,a){if(a!=null&&o!=null)switch(a){case"switch_to_credit_card":this.fireTrack(i.Event.onboardingSwitchToCreditCard,{referrer_card:o});break;case"link_new_credit_card":this.fireTrack(i.Event.onboardingLinkNewCard,{referrer_card:o});break;case"link_credit_card":this.fireTrack(i.Event.onboardingLinkCreditCard,{referrer_card:o})}}onboardingCreditCardConnectEventsByEventSourceSuccess(o,a){if(a!=null&&o!=null)switch(a){case"switch_to_credit_card":this.fireTrack(i.Event.onboardingSwitchToCreditCardSuccess,{referrer_card:o});break;case"link_new_credit_card":this.fireTrack(i.Event.onboardingLinkNewCardSuccess,{referrer_card:o});break;case"link_credit_card":this.fireTrack(i.Event.onboardingLinkCreditCardSuccess,{referrer_card:o})}}onboardingCreditCardConnectEventsByEventSourceFailure(o,a,c,u){if(u!=null&&c!=null)switch(u){case"switch_to_credit_card":this.fireTrack(i.Event.onboardingSwitchToCreditCardFailure,{referrer_card:c,error_description:o,error_code:a});break;case"link_new_credit_card":this.fireTrack(i.Event.onboardingLinkNewCardFailure,{referrer_card:c,error_description:o,error_code:a});break;case"link_credit_card":this.fireTrack(i.Event.onboardingLinkCreditCardFailure,{referrer_card:c,error_description:o,error_code:a})}}billingConnectBankEventsByEventSource(o,a){if(a!=null&&o!=null)switch(a){case"link_new_bank_account":this.fireTrack(i.Event.billingLinkNewBankAccount,{referrer_card:o});break;case"switch_to_bank_account":this.fireTrack(i.Event.billingSwitchToBankAccount,{referrer_card:o})}}billingConnectBankEventsByEventSourceSuccess(o,a){if(a!=null&&o!=null)switch(a){case"link_new_bank_account":this.fireTrack(i.Event.billingLinkNewBankAccountSuccess,{referrer_card:o});break;case"switch_to_bank_account":this.fireTrack(i.Event.billingSwitchToBankAccountSuccess,{referrer_card:o})}}billingConnectBankEventsByEventSourceFailure(o,a,c,u){if(u!=null&&c!=null)switch(u){case"link_new_bank_account":this.fireTrack(i.Event.billingLinkNewBankAccountFailure,{referrer_card:c,error_description:o,error_code:a});break;case"switch_to_bank_account":this.fireTrack(i.Event.billingSwitchToBankAccountFailure,{referrer_card:c,error_description:o,error_code:a})}}billingConnectCreditCardEventsByEventSource(o,a){if(a!=null&&o!=null)switch(a){case"switch_to_credit_card":this.fireTrack(i.Event.billingSwitchToCreditCard,{referrer_card:o});break;case"link_new_credit_card":this.fireTrack(i.Event.billingLinkNewCard,{referrer_card:o})}}billingConnectCreditCardEventsByEventSourceSuccess(o,a){if(a!=null&&o!=null)switch(a){case"switch_to_credit_card":this.fireTrack(i.Event.billingSwitchToCreditCardSuccess,{referrer_card:o});break;case"link_new_credit_card":this.fireTrack(i.Event.billingLinkNewCardSuccess,{referrer_card:o})}}billingConnectCreditCardEventsByEventSourceFailure(o,a,c,u){if(u!=null&&c!=null)switch(u){case"switch_to_credit_card":this.fireTrack(i.Event.billingSwitchToCreditCardFailure,{referrer_card:c,error_description:o,error_code:a});break;case"link_new_credit_card":this.fireTrack(i.Event.billingLinkNewCardFailure,{referrer_card:c,error_description:o,error_code:a})}}trackConnectBank(o,a,c){switch(o){case"zeni_accounts":this.fireTrack(i.Event.zeniAccountsConnectBank,{referrer_card:a});break;case"charge_cards":this.fireTrack(i.Event.cardsConnectBank,{referrer_card:a});break;case"reimbursement":this.fireTrack(i.Event.reimbursementConnectBank,{referrer_card:a});break;case"onboarding":this.onboardingConnectBankEventsByEventSource(a,c);break;case"billing":this.billingConnectBankEventsByEventSource(a,c);break;case"bill_pay":this.fireTrack(i.Event.billPayConnectBank,{referrer_card:a});break;default:this.fireTrack(i.Event.otherConnectionConnectBank,{referrer_card:a})}}trackConnectBankSuccess(o,a,c,u,p,_,m){switch(o){case"zeni_accounts":this.fireTrack(i.Event.zeniAccountsConnectBankSuccess,{referrer_card:a});break;case"charge_cards":this.fireTrack(i.Event.cardsConnectBankSuccess,{referrer_card:a});break;case"reimbursement":this.fireTrack(i.Event.reimbursementConnectBankSuccess,{referrer_card:a});break;case"onboarding":this.onboardingConnectBankEventsByEventSourceSuccess(u??null,p??null,_??null,m??null,a,c);break;case"billing":this.billingConnectBankEventsByEventSourceSuccess(a,c);break;case"bill_pay":this.fireTrack(i.Event.billPayConnectBankSuccess,{referrer_card:a});break;default:this.fireTrack(i.Event.otherConnectionConnectBankSuccess,{referrer_card:a})}}trackConnectBankFailure(o,a,c,u,p,_,m,g){switch(o){case"zeni_accounts":this.fireTrack(i.Event.zeniAccountsConnectBankFailure,{error_code:p,error_description:a,referrer_card:c});break;case"charge_cards":this.fireTrack(i.Event.cardsConnectBankFailure,{error_code:p,error_description:a,referrer_card:c});break;case"reimbursement":this.fireTrack(i.Event.reimbursementConnectBankFailure,{error_code:p,error_description:a,referrer_card:c});break;case"onboarding":this.onboardingConnectBankEventsByEventSourceFailure(a,_??null,m??null,g??null,p,c,u);break;case"billing":this.billingConnectBankEventsByEventSourceFailure(a,p,c,u);break;case"bill_pay":this.fireTrack(i.Event.billPayConnectBankFailure,{error_code:p,error_description:a,referrer_card:c});break;default:this.fireTrack(i.Event.otherConnectionConnectBankFailure,{error_code:p,error_description:a,referrer_card:c})}}trackCreditCardConnect(o,a,c){if(c!=null&&a!=null)switch(o){case"onboarding":this.onboardingCreditCardEventsConnectByEventSource(c,a);break;case"billing":this.billingConnectCreditCardEventsByEventSource(c,a)}}trackCreditCardConnectSuccess(o,a,c){if(a!=null&&c!=null)switch(o){case"onboarding":this.onboardingCreditCardConnectEventsByEventSourceSuccess(a,c);break;case"billing":this.billingConnectCreditCardEventsByEventSourceSuccess(a,c)}}trackCreditCardConnectFailure(o,a,c,u,p){if(c!=null&&u!=null)switch(o){case"onboarding":this.onboardingCreditCardConnectEventsByEventSourceFailure(a,p,c,u);break;case"billing":this.billingConnectCreditCardEventsByEventSourceFailure(a,p,c,u)}}trackConnectBankLink(o,a,c,u){switch(c){case"zeni_accounts":this.fireTrack(i.Event.zeniAccountsConnectBankLink,{account_name:a,account_id:o,referrer_card:u});break;case"charge_cards":this.fireTrack(i.Event.cardsConnectBankLink,{account_name:a,account_id:o,referrer_card:u});break;case"reimbursement":this.fireTrack(i.Event.reimbursementConnectBankLink,{account_name:a,account_id:o,referrer_card:u});break;case"onboarding":this.fireTrack(i.Event.onboardingConnectBankLink,{account_name:a,account_id:o,referrer_card:u});break;case"bill_pay":this.fireTrack(i.Event.billPayConnectBankLink,{account_name:a,account_id:o,referrer_card:u});break;default:this.fireTrack(i.Event.otherConnectionsConnectBankLink,{account_name:a,account_id:o,referrer_card:u})}}trackConnectBankGetBalance(o,a){switch(o){case"zeni_accounts":this.fireTrack(i.Event.zeniAccountsConnectBankGetBalance,{referrer_card:a});break;case"charge_cards":this.fireTrack(i.Event.cardsConnectBankGetBalance,{referrer_card:a});break;case"reimbursement":this.fireTrack(i.Event.reimbursementConnectBankGetBalance,{referrer_card:a});break;case"onboarding":this.fireTrack(i.Event.onboardingConnectBankGetBalance,{referrer_card:a});break;case"bill_pay":this.fireTrack(i.Event.billPayConnectBankGetBalance,{referrer_card:a});break;default:this.fireTrack(i.Event.otherConnectionConnectBankGetBalance,{referrer_card:a})}}trackNeedHelp(o){switch(o){case"onboarding":this.fireTrack(i.Event.onboardingNeedHelp,{});break;case"onboarding_interim":this.fireTrack(i.Event.onboardingInterimNeedHelp,{});break;case"onboarding_landing":this.fireTrack(i.Event.onboardingLandingNeedHelp,{});break;case"zeni_accounts":this.fireTrack(i.Event.zeniAccountsNeedHelp,{});break;case"charge_cards":this.fireTrack(i.Event.cardsNeedHelp,{});break;case"reimbursement":this.fireTrack(i.Event.reimbursementNeedHelp,{});break;default:this.fireTrack(i.Event.billPayNeedHelp,{})}}trackAccountsListPageViewed(o,a,c,u,p){this.fireTrack(i.Event.accountsListPageViewed,{zeni_accounts_count:o,external_accounts_count:a,zeni_accounts_available_balance:c,total_yield_earned:u,current_average_yield:p})}trackAccountsListPageClicked(o,a,c){this.fireTrack(i.Event.accountsListPageClicked,{click_type:o,account_name:a,account_status:c})}trackAccountsPromoPageClicked(o){this.fireTrack(i.Event.accountsPromoPageClicked,{click_type:o})}trackTransferBetweenAccountsFormClicked(o,a,c,u,p,_,m,g){this.fireTrack(i.Event.zeniAccountsTransferFormClicked,{click_type:o,current_screen:a,transfer_from_bank_name:c,transfer_to_bank_name:u,amount:p,is_split_transfer:_,split_days_count:m,APY_slider_moved:g})}trackAccountsDepositCheckFormClicked(o,a,c,u,p,_){this.fireTrack(i.Event.accountsDepositCheckFormClicked,{click_type:o,amount:a,source_of_deposit:c,deposited_to:u,front_photo:p,back_photo:_})}trackAccountsDepositCheckFormViewed(){this.fireTrack(i.Event.accountsDepositCheckFormViewed)}trackZeniTransferBetweenAccountsFormViewed(){this.fireTrack(i.Event.zeniAccountsTransferFormViewed)}trackEnableZeniAccounts(){this.fireTrack(i.Event.enableZeniAccounts)}trackZeniAccountsPromoCardClick(o,a){this.fireTrack(i.Event.zeniAccountsPromoCardClick,{card_position:o,click_type:a})}trackZeniAccountsCashBalancePromoClicked(o){this.fireTrack(i.Event.zeniAccountsCashBalancePromoClicked,{click_type:o})}trackPlgPromoClicked(o,a){this.fireTrack(i.Event.plgPromoActionTaken,{page_name:o,clicked_on:a})}getBaseCardProperties(o,a,c,u){return{controller_emails:o,is_credit_card_offered:a.isCreditCardOffered,is_debit_card_offered:a.isDebitCardOffered,is_debit_card_enabled:a.isDebitCardEnabled,is_credit_card_enabled:a.isCreditCardEnabled,credit_account_id:c?.creditAccountId,credit_account_limit:c?.creditAccountLimit,credit_account_available_amount:c?.creditAccountAvailableAmount,credit_account_spent_amount:c?.creditAccountSpentAmount,credit_account_status:c?.creditAccountStatus,credit_account_outstanding_balance:c?.outstandingBalance,deposit_account_id:u?.debitAccountId,deposit_account_name:u?.debitAccountName,deposit_account_balance:u?.debitAccountBalance,debit_cards_spend:u?.debitCardsSpend,deposit_account_status:u?.debitAccountStatus}}getBaseCardPropertiesWithCashback(o,a,c,u,p){return{...this.getBaseCardProperties(o,a,u,p),credit_card_cashback_offer:c?.creditCardCashbackOffer,debit_card_cashback_offer:c?.debitCardCashbackOffer,total_earned_cashback:c?.totalEarnedCashback,redeemed_cashback:c?.redeemedCashback,available_cashback:c?.availableCashback,credit_card_cashback_redemption_mode:c?.creditCardCashbackRedemptionMode,debit_card_cashback_redemption_mode:c?.debitCardCashbackRedemptionMode}}getPaymentSourceProperties(o){return{is_zeni_checking_enabled:o.isZeniCheckingEnabled,is_zeni_checking_payment_source:o.isZeniCheckingPaymentSource,credit_card_payment_source_account_name:o.creditCardPaymentSourceAccountName,credit_card_payment_source_account_type:o.creditCardPaymentSourceAccountType,credit_card_payment_source_last_four_digits:o.creditCardPaymentSourceLastFourDigits,credit_card_payment_source_balance:o.creditCardPaymentSourceBalance}}getCardPaymentProperties(o){return{payment_amount:o.paymentAmount,payment_account_name:o.paymentAccountName,payment_account_type:o.paymentAccountType,payment_account_last_four_digits:o.paymentAccountLastFourDigits,payment_complete_eta:o.paymentCompleteEta,payment_initiated_date:o.paymentInitiatedDate}}trackCardsPromoPageClicked(o){this.fireTrack(i.Event.cardsPromoPageClick,{cards_click_type:o})}trackCardsListPageClicked(o){this.fireTrack(i.Event.cardsListPageClick,{cards_click_type:o})}trackCardsNewCardFormClicked(o,a,c,u,p){this.fireTrack(i.Event.cardsIssueNewCardFormClick,{cards_click_type:p,card_owner:o,card_name:a,amount:u,frequency:c})}trackCardsListRowClicked(o,a,c,u,p,_,m){this.fireTrack(i.Event.cardsListRowClick,{card_owner:o,card_name:a,department:c,utilisation:u,limit:p,frequency:_,is_self_card:m})}trackCardsDetailPageViewed(o,a,c,u,p,_,m,g){this.fireTrack(i.Event.cardsDetailPage,{card_id:o,is_self_card:g,card_owner:a,card_name:c,utilisation:u,limit:p,frequency:_,card_color:m})}trackCardsVerifyPopUpClick(o,a,c,u,p,_,m,g,v){this.fireTrack(i.Event.cardsVerifyPopUpClick,{cards_click_type:m,is_self_card:g,card_owner:a,card_name:c,utilisation:u,limit:p,frequency:_,card_id:o,selected_color:v})}trackCardsDetailPageClicked(o,a,c,u,p,_,m,g,v){this.fireTrack(i.Event.cardsDetailPageClick,{cards_click_type:m,is_self_card:g,card_owner:a,card_name:c,utilisation:u,limit:p,frequency:_,card_id:o,selected_color:v})}trackZeniCardsPromoCardClicked(o,a,c,u,p){this.fireTrack(i.Event.zeniCardsPromoCardClicked,{card_position:c,click_type:a,is_cards_setup:o,user_name:u,credit_limit:p??"NA"})}trackCardsSetupCardsClick(o,a,c){this.fireTrack(i.Event.cardsSetupCardsClick,{controller_emails:o,is_credit_card_offered:a.isCreditCardOffered,is_debit_card_offered:a.isDebitCardOffered,is_debit_card_enabled:a.isDebitCardEnabled,is_credit_card_enabled:a.isCreditCardEnabled,page_name:c})}trackCardsPromoView(o,a,c,u,p){this.fireTrack(i.Event.cardsPromoView,{controller_emails:o,is_credit_card_offered:a.isCreditCardOffered,is_debit_card_offered:a.isDebitCardOffered,is_debit_card_enabled:a.isDebitCardEnabled,is_credit_card_enabled:a.isCreditCardEnabled,promo_format:c,promo_product:u,page_name:p})}trackCardsEnableCardsClick(o,a,c){this.fireTrack(i.Event.cardsEnableCardsClick,{controller_emails:o,is_credit_card_offered:a.isCreditCardOffered,is_debit_card_offered:a.isDebitCardOffered,is_debit_card_enabled:a.isDebitCardEnabled,is_credit_card_enabled:a.isCreditCardEnabled,page_name:c})}trackCardsScheduleDemoClick(o,a,c){this.fireTrack(i.Event.cardsScheduleDemoClick,{controller_emails:o,is_credit_card_offered:a.isCreditCardOffered,is_debit_card_offered:a.isDebitCardOffered,is_debit_card_enabled:a.isDebitCardEnabled,is_credit_card_enabled:a.isCreditCardEnabled,page_name:c})}trackCardsCardListView(o,a,c,u,p){this.fireTrack(i.Event.cardsCardListView,{...this.getBaseCardPropertiesWithCashback(o,a,c,u,p)})}trackCardsCardListSearchClick(o,a,c,u,p){this.fireTrack(i.Event.cardsCardListSearchClick,{...this.getBaseCardPropertiesWithCashback(o,a,c,u,p)})}trackCardsCardListMoreMenuClick(o,a,c,u,p){this.fireTrack(i.Event.cardsCardListMoreMenuClick,{...this.getBaseCardPropertiesWithCashback(o,a,c,u,p)})}trackCardsSettingsClick(o,a,c,u,p){this.fireTrack(i.Event.cardsSettingsClick,{...this.getBaseCardPropertiesWithCashback(o,a,c,u,p)})}trackCardsCardSetupView(o,a,c){this.fireTrack(i.Event.cardsCardSetupView,{controller_emails:o,is_credit_card_offered:a.isCreditCardOffered,is_debit_card_offered:a.isDebitCardOffered,is_debit_card_enabled:a.isDebitCardEnabled,is_credit_card_enabled:a.isCreditCardEnabled,source:c})}trackCardsVerifyIdentityCompanyDetailsClick(o,a,c){this.fireTrack(i.Event.cardsVerifyIdentityCompanyDetailsClick,{controller_emails:o,is_credit_card_offered:a.isCreditCardOffered,is_debit_card_offered:a.isDebitCardOffered,is_debit_card_enabled:a.isDebitCardEnabled,is_credit_card_enabled:a.isCreditCardEnabled,status:c})}trackCardsPaymentAccountChangeClick(o,a,c){this.fireTrack(i.Event.cardsPaymentAccountChangeClick,{controller_emails:o,is_credit_card_offered:a.isCreditCardOffered,is_debit_card_offered:a.isDebitCardOffered,is_debit_card_enabled:a.isDebitCardEnabled,is_credit_card_enabled:a.isCreditCardEnabled,old_payment_account_name:c.oldPaymentAccountName,old_payment_account_balance:c.oldPaymentAccountBalance,new_payment_account_name:c.newPaymentAccountName,new_payment_account_balance:c.newPaymentAccountBalance,is_old_payment_account_recommended:c.isOldPaymentAccountRecommended,is_new_payment_account_recommended:c.isNewPaymentAccountRecommended,old_payment_account_position:c.oldPaymentAccountPosition,new_payment_account_position:c.newPaymentAccountPosition,number_of_payment_accounts:c.numberOfPaymentAccounts})}trackCardsZeniCashAccountChangeClick(o,a,c){this.fireTrack(i.Event.cardsZeniCashAccountChangeClick,{controller_emails:o,is_credit_card_offered:a.isCreditCardOffered,is_debit_card_offered:a.isDebitCardOffered,is_debit_card_enabled:a.isDebitCardEnabled,is_credit_card_enabled:a.isCreditCardEnabled,old_zeni_cash_account:c.oldZeniCashAccount,new_zeni_cash_account:c.newZeniCashAccount,old_zeni_cash_account_position:c.oldZeniCashAccountPosition,new_zeni_cash_account_position:c.newZeniCashAccountPosition,number_of_cash_accounts:c.numberOfCashAccounts})}trackCardsStatementsClick(o,a,c,u,p){this.fireTrack(i.Event.cardsStatementsClick,{...this.getBaseCardPropertiesWithCashback(o,a,c,u,p)})}trackCardsCreditCardStatementsView(o,a,c,u,p){this.fireTrack(i.Event.cardsCreditCardStatementsView,{...this.getBaseCardProperties(o,a,u,p),number_of_statements:c.numberOfStatements,oldest_statement_month_year:c.oldestStatementMonthYear,latest_statement_month_year:c.latestStatementMonthYear})}trackCardsDownloadClick(o,a,c,u,p,_,m,g){this.fireTrack(i.Event.cardsDownloadClick,{...this.getBaseCardPropertiesWithCashback(o,a,c,m,g),page_name:p,position:_,file_category:u.fileCategory,file_type:u.fileType,file_name:u.fileName,file_month_year:u.fileMonthYear})}trackCardsNewCardClick(o,a,c,u,p,_,m,g){this.fireTrack(i.Event.cardsNewCardClick,{...this.getBaseCardPropertiesWithCashback(o,a,c,m,g),click_item:u,action:p,page_name:_})}trackCardsCashbackOverviewClick(o,a,c,u,p,_,m){this.fireTrack(i.Event.cardsCashbackOverviewClick,{...this.getBaseCardPropertiesWithCashback(o,a,c,_,m),click_item:u,action:p})}trackCardsCardListRowClick(o,a,c,u,p,_,m,g,v){this.fireTrack(i.Event.cardsCardListRowClick,{...this.getBaseCardPropertiesWithCashback(o,a,m,g,v),click_item:c,action:u,position:p,card_name:_.cardName,card_owner:_.cardOwner,card_type:_.cardType,card_status:_.cardStatus,card_utilization_amount:_.cardUtilizationAmount,card_utilization_percent:_.cardUtilizationPercent,card_limit:_.cardLimit})}trackCardsCopyIconClick(o,a,c,u,p,_,m,g,v,y){this.fireTrack(i.Event.cardsCopyIconClick,{...this.getBaseCardPropertiesWithCashback(o,a,g,v,y),click_item:u,action:p,action_field:_,action_details:m,page_name:c})}trackCardsCardListSortClick(o,a,c,u,p,_,m,g,v,y){this.fireTrack(i.Event.cardsCardListSortClick,{...this.getBaseCardPropertiesWithCashback(o,a,c,v,y),click_item:u,action:p,action_field:_,action_details:m,page_name:g})}trackCardsCardDetailView(o,a,c,u,p,_,m){this.fireTrack(i.Event.cardsCardDetailView,{...this.getBaseCardProperties(o,a,_,m),card_name:c.cardName,card_type:c.cardType,card_category:c.cardCategory,card_limit:c.cardLimit,card_last_four_digits:c.cardLastFourDigits,card_status:c.cardStatus,card_utilization_percent:c.cardUtilizationPercent,card_id:c.cardId,card_assigned_date:c.cardAssignedDate,card_issued_date:c.cardIssuedDate,card_activated_date:c.cardActivatedDate,card_limit_frequency:c.cardLimitFrequency,card_spent_amount:c.cardSpentAmount,card_available_limit:c.cardAvailableLimit,card_utilization_amount:c.cardUtilizationAmount,total_number_of_declined_transactions:c.totalNumberOfDeclinedTransactions,number_of_declined_transactions_current_month:c.numberOfDeclinedTransactionsCurrentMonth,total_number_of_paid_transactions:c.totalNumberOfPaidTransactions,number_of_paid_transactions_current_month:c.numberOfPaidTransactionsCurrentMonth,total_number_of_canceled_transactions:c.totalNumberOfCanceledTransactions,number_of_canceled_transactions_current_month:c.numberOfCanceledTransactionsCurrentMonth,total_number_of_authorized_transactions:c.totalNumberOfAuthorizedTransactions,number_of_authorized_transactions_current_month:c.numberOfAuthorizedTransactionsCurrentMonth,total_number_of_transactions_with_receipts:c.totalNumberOfTransactionsWithReceipts,number_of_transactions_with_receipts_current_month:c.numberOfTransactionsWithReceiptsCurrentMonth,card_issued_by_name:u.cardIssuedByName,card_issued_by_email:u.cardIssuedByEmail,card_issued_by_user_id:u.cardIssuedByUserId,card_issued_by_role:u.cardIssuedByRole,card_issued_by_department:u.cardIssuedByDepartment,cardholder_name:p.cardholderName,cardholder_email:p.cardholderEmail,cardholder_role:p.cardholderRole,cardholder_user_id:p.cardholderUserId,cardholder_department:p.cardholderDepartment})}trackCardsUpdateSpendLimitInitiated(o,a,c,u,p,_,m,g,v,y){this.fireTrack(i.Event.cardsUpdateSpendLimitInitiated,{...this.getBaseCardProperties(o,a,v,y),card_name:c.cardName,card_type:c.cardType,card_category:c.cardCategory,card_limit:c.cardLimit,card_last_four_digits:c.cardLastFourDigits,card_status:c.cardStatus,card_utilization_amount:c.cardUtilizationAmount,card_utilization_percent:c.cardUtilizationPercent,card_id:c.cardId,card_assigned_date:c.cardAssignedDate,card_issued_date:c.cardIssuedDate,card_activated_date:c.cardActivatedDate,card_limit_frequency:c.cardLimitFrequency,card_spent_amount:c.cardSpentAmount,card_available_limit:c.cardAvailableLimit,total_number_of_declined_transactions:c.totalNumberOfDeclinedTransactions,number_of_declined_transactions_current_month:c.numberOfDeclinedTransactionsCurrentMonth,total_number_of_paid_transactions:c.totalNumberOfPaidTransactions,number_of_paid_transactions_current_month:c.numberOfPaidTransactionsCurrentMonth,total_number_of_canceled_transactions:c.totalNumberOfCanceledTransactions,number_of_canceled_transactions_current_month:c.numberOfCanceledTransactionsCurrentMonth,total_number_of_authorized_transactions:c.totalNumberOfAuthorizedTransactions,number_of_authorized_transactions_current_month:c.numberOfAuthorizedTransactionsCurrentMonth,total_number_of_transactions_with_receipts:c.totalNumberOfTransactionsWithReceipts,number_of_transactions_with_receipts_current_month:c.numberOfTransactionsWithReceiptsCurrentMonth,card_issued_by_name:u.cardIssuedByName,card_issued_by_email:u.cardIssuedByEmail,card_issued_by_user_id:u.cardIssuedByUserId,card_issued_by_role:u.cardIssuedByRole,card_issued_by_department:u.cardIssuedByDepartment,cardholder_name:p.cardholderName,cardholder_email:p.cardholderEmail,cardholder_role:p.cardholderRole,cardholder_user_id:p.cardholderUserId,cardholder_department:p.cardholderDepartment,page_name:_,source:m,recommended_limits:g})}trackCardsUpdateSpendLimitClick(o,a,c,u,p,_,m,g,v,y,k,E,w){this.fireTrack(i.Event.cardsUpdateSpendLimitClick,{...this.getBaseCardProperties(o,a,E,w),card_name:c.cardName,card_type:c.cardType,card_category:c.cardCategory,card_limit:c.cardLimit,card_last_four_digits:c.cardLastFourDigits,card_status:c.cardStatus,card_utilization_amount:c.cardUtilizationAmount,card_utilization_percent:c.cardUtilizationPercent,card_id:c.cardId,card_assigned_date:c.cardAssignedDate,card_issued_date:c.cardIssuedDate,card_activated_date:c.cardActivatedDate,card_limit_frequency:c.cardLimitFrequency,card_spent_amount:c.cardSpentAmount,card_available_limit:c.cardAvailableLimit,total_number_of_declined_transactions:c.totalNumberOfDeclinedTransactions,number_of_declined_transactions_current_month:c.numberOfDeclinedTransactionsCurrentMonth,total_number_of_paid_transactions:c.totalNumberOfPaidTransactions,number_of_paid_transactions_current_month:c.numberOfPaidTransactionsCurrentMonth,total_number_of_canceled_transactions:c.totalNumberOfCanceledTransactions,number_of_canceled_transactions_current_month:c.numberOfCanceledTransactionsCurrentMonth,total_number_of_authorized_transactions:c.totalNumberOfAuthorizedTransactions,number_of_authorized_transactions_current_month:c.numberOfAuthorizedTransactionsCurrentMonth,total_number_of_transactions_with_receipts:c.totalNumberOfTransactionsWithReceipts,number_of_transactions_with_receipts_current_month:c.numberOfTransactionsWithReceiptsCurrentMonth,card_issued_by_name:u.cardIssuedByName,card_issued_by_email:u.cardIssuedByEmail,card_issued_by_user_id:u.cardIssuedByUserId,card_issued_by_role:u.cardIssuedByRole,card_issued_by_department:u.cardIssuedByDepartment,cardholder_name:p.cardholderName,cardholder_email:p.cardholderEmail,cardholder_role:p.cardholderRole,cardholder_user_id:p.cardholderUserId,cardholder_department:p.cardholderDepartment,click_item:m,current_limit:g,new_limit:k,recommended_limits:v,was_recommended_limit_selected:y,card_limit_updated_by_name:_.cardLimitUpdatedByName,card_limit_updated_by_email:_.cardLimitUpdatedByEmail,card_limit_updated_by_role:_.cardLimitUpdatedByRole,card_limit_updated_by_user_id:_.cardLimitUpdatedByUserId})}trackCardsAddToWalletClick(o,a,c,u,p,_,m,g,v){this.fireTrack(i.Event.cardsAddToWalletClick,{...this.getBaseCardProperties(o,a,g,v),card_id:c.cardId,card_name:c.cardName,card_type:c.cardType,card_category:c.cardCategory,card_limit:c.cardLimit,card_last_four_digits:c.cardLastFourDigits,card_status:c.cardStatus,card_assigned_date:c.cardAssignedDate,card_issued_date:c.cardIssuedDate,card_limit_frequency:c.cardLimitFrequency,card_issued_by_name:u.cardIssuedByName,card_issued_by_email:u.cardIssuedByEmail,card_issued_by_user_id:u.cardIssuedByUserId,card_issued_by_role:u.cardIssuedByRole,card_issued_by_department:u.cardIssuedByDepartment,cardholder_name:p.cardholderName,cardholder_email:p.cardholderEmail,cardholder_role:p.cardholderRole,cardholder_user_id:p.cardholderUserId,cardholder_department:p.cardholderDepartment,page_name:_,click_item:m})}trackCardsPayEarlyClick(o,a,c,u,p,_,m,g,v){this.fireTrack(i.Event.cardsPayEarlyClick,{...this.getBaseCardPropertiesWithCashback(o,a,c,g,v),...this.getPaymentSourceProperties(m),click_item:_,page_name:u,source:p})}trackCardsPayEarlyFormView(o,a,c,u,p,_,m,g,v){this.fireTrack(i.Event.cardsPayEarlyFormView,{...this.getBaseCardPropertiesWithCashback(o,a,c,g,v),...this.getPaymentSourceProperties(m),is_autopay_selected:p,payment_amount:_,page_name:u})}trackCardsPayEarlyFormClick(o,a,c,u,p,_,m,g,v){this.fireTrack(i.Event.cardsPayEarlyFormClick,{...this.getBaseCardPropertiesWithCashback(o,a,c,g,v),...this.getPaymentSourceProperties(m),is_autopay_selected:p,...this.getCardPaymentProperties(_),click_item:u})}trackCardsPayEarlyPayNowClick(o,a,c,u,p,_,m,g){this.fireTrack(i.Event.cardsPayEarlyPayNowClick,{...this.getBaseCardPropertiesWithCashback(o,a,c,m,g),...this.getPaymentSourceProperties(_),is_autopay_selected:u,...this.getCardPaymentProperties(p)})}trackEnableBillPay(){this.fireTrack(i.Event.enableBillPay)}trackEnableReimbursement(){this.fireTrack(i.Event.enableReimbursement)}trackUploadInvoice(o,a,c){switch(a){case"w9":this.fireTrack(i.Event.vendor1099W9DocumentUpload,{invoice_upload_method:o,vendor_legal_name:c??""});break;case"reimbursement":this.fireTrack(i.Event.reimbursementInvoiceUpload,{invoice_upload_method:o});break;default:this.fireTrack(i.Event.billPayInvoiceUpload,{invoice_upload_method:o})}}trackInvoiceActionClick(o,a,c,u){this.fireTrack(i.Event.billPayInvoiceActionClick,{bill_stage:o,action_clicked:a,user_name:c,override_data_click:u})}trackBillPaySkipAutofill(){this.fireTrack(i.Event.billPaySkipAutofill)}trackReimbursementSkipAutofill(){this.fireTrack(i.Event.reimbursementSkipAutofill)}trackBillPayNewBill(){this.fireTrack(i.Event.billPayNewBill)}trackReimbursementNewReimbursement(){this.fireTrack(i.Event.reimbursementNewReimbursement)}trackBillPayEditBill(o,a){this.fireTrack(i.Event.billPayEditBill,{bill_id:o,is_recurring_bill:a})}trackReimbursementEditReimbursement(o){this.fireTrack(i.Event.reimbursementEditReimbursement,{reimbursement_id:o})}trackBillPayBillDetails(o,a){this.fireTrack(i.Event.billPayBillDetails,{bill_id:o,is_recurring_bill:a})}trackReimbursementReimbursementDetails(o){this.fireTrack(i.Event.reimbursementReimbursementDetails,{reimbursement_id:o})}trackBillPayReviewBill(o,a,c,u,p,_,m,g,v,y,k,E,w,C){const P={final_vendor_name:_,zeni_rec_vendor_name:m,document_ai_rec_vendor_name:g,bill_id:v,invoice_number:y,invoice_date:a,bill_due_date:k,memo:E,currency:c,collect_from_vendor:u,international_transfer_fee_bearer_payment_method:w,is_recurring_bill:p,payment_method:o};p&&C!=null&&(P.recurring_bill_config={bill_value:C.totalAmount,start_date:C.startDate,end_date:C.endDate,frequency:C.frequency,total_payment_cycles:C.totalPaymentCycles,is_approval_required:C.isApprovalRequired}),this.fireTrack(i.Event.billPayReviewBill,P)}trackReimbursementSubmitReimbursement(o,a,c,u){this.fireTrack(i.Event.reimbursementSubmitReimbursement,{create_date:o,currency:a,total_amount:c,reimbursement_id:u})}trackBillPaySendForApproval(o,a,c,u,p,_,m){const g={bill_id:p,payment_method:o,scheduled_date:a,collect_from_vendor:c,international_transfer_fee_bearer_payment_method:_,is_recurring_bill:u};u&&m!=null&&(g.recurring_bill_config={bill_value:m.totalAmount,start_date:m.startDate,end_date:m.endDate,frequency:m.frequency,total_payment_cycles:m.totalPaymentCycles,is_approval_required:m.isApprovalRequired,is_update_current_bill:m.updateCurrentBill,is_update_future_bills:m.updateFutureRecurringBills}),this.fireTrack(i.Event.billPaySendForApproval,g)}trackBillPayDeleteBill(o,a){this.fireTrack(i.Event.billPayDeleteBill,{bill_id:o,is_recurring_bill:a})}trackBillPayCancelBill(o){this.fireTrack(i.Event.billPayCancelBill,{bill_id:o})}trackBillPayCancelAndDeleteBill(o,a){this.fireTrack(i.Event.billPayCancelAndDeleteBill,{bill_id:o,is_recurring_bill:a})}trackReimbursementListSort(o,a){this.fireTrack(i.Event.reimbursementListSort,{sort_key:o,sort_order:a})}trackReimbursementDeleteReimbursement(o){this.fireTrack(i.Event.reimbursementDeleteReimbursement,{reimbursement_id:o})}trackReimbursementCancelReimbursement(o){this.fireTrack(i.Event.reimbursementCancelReimbursement,{reimbursement_id:o})}trackReimbursementCancelAndDeleteReimbursement(o){this.fireTrack(i.Event.reimbursementCancelAndDeleteReimbursement,{reimbursement_id:o})}trackReimbursementDeleteReimbursementLine(o,a){this.fireTrack(i.Event.reimbursementDeleteReimbursementLine,{reimbursement_id:a,line_id:o})}trackReimbursementSubmitAnywayDuplicateReimbursement(o,a){this.fireTrack(i.Event.reimbursementSubmitAnywayDuplicateReimbursement,{reimbursement_id:a,number_of_duplicate_expenses:o})}trackReimbursementViewDuplicateExpense(o,a){this.fireTrack(i.Event.reimbursementViewDuplicateExpense,{reimbursement_id:a,is_duplicate_within_transaction:o})}trackReimbursementReviewDuplicateReportReimbursement(o,a){this.fireTrack(i.Event.reimbursementReviewDuplicateReportReimbursement,{reimbursement_id:a,number_of_duplicate_expenses:o})}trackReimbursementBulkSelectAll(o,a,c){this.fireTrack(i.Event.reimbursementBulkSelectAll,{report_stage:o,report_status:a,report_type:c})}trackReimbursementBulkDeleted(o,a,c,u){this.fireTrack(i.Event.reimbursementBulkDeleted,{total_reports_deleted:o,report_stage:a,report_status:c,report_type:u})}trackReimbursementBulkSubmit(o,a,c){this.fireTrack(i.Event.reimbursementBulkSubmit,{operation_type:o,report_stage:a,report_status:c})}trackReimbursementBulkSelection(o,a,c,u){this.fireTrack(i.Event.reimbursementBulkSelection,{total_reports_selected:o,report_stage:a,report_status:c,report_type:u})}trackReimbursementBulkPopupConfirm(o,a,c,u){this.fireTrack(i.Event.reimbursementBulkPopupConfirm,{operation_type:o,report_stage:a,report_status:c,report_type:u})}trackBillPayNewVendor(o,a,c,u,p,_,m){this.fireTrack(i.Event.billPayNewVendor,{vendor_name:o,vendor_category:a,vendor_class_name:c,vendor_type:u,vendor_contact_email:p,venfor_contact_name:_,vendor_contact_phone:m})}trackBillPayEditVendor(o){this.fireTrack(i.Event.billPayEditVendor,{vendor_id:o})}trackBillPayExpandVendor(o){this.fireTrack(i.Event.billPayExpandVendor,{vendor_id:o})}trackBillPayChooseNewVendor(){this.fireTrack(i.Event.billPayChooseNewVendor)}trackBillPayCreateNewVendorFromRecDropdown(o){this.fireTrack(i.Event.billPayCreateNewVendorFromDropdown,{vendor_name:o})}trackBillPayMagicLinkPreviewEmail(o){this.fireTrack(i.Event.billPayMagicLinkPreviewEmail,{on_page:o})}trackBillPayMagicLinkSubmitBankAccountDetails(o){this.fireTrack(i.Event.billPayMagicLinkSubmitBankAccountDetails,{bill_id:o})}trackBillPayMagicLinkPageLoad(o,a,c,u,p,_,m){this.fireTrack(i.Event.billPayMagicLinkPageLoad,{tenant_email_domain:o,vendor_id:a,company_name:c,bill_id:u,payment_method:p,currency:_,total_amount:m})}trackBillPayAutoDateChange(o){this.fireTrack(i.Event.billPayAutoDateChange,{bill_id:o})}trackBillPayBulkSelectAll(o,a,c){this.fireTrack(i.Event.billPayBulkSelectAll,{bill_stage:o,bill_status:a,bill_type:c})}trackBillPayBulkDeleted(o,a,c,u){this.fireTrack(i.Event.billPayBulkDeleted,{total_bills_deleted:o,bill_stage:a,bill_status:c,bill_type:u})}trackBillPayBulkSubmit(o,a,c){this.fireTrack(i.Event.billPayBulkSubmit,{operation_type:o,bill_stage:a,bill_status:c})}trackBillPayBulkSelection(o,a,c,u){this.fireTrack(i.Event.billPayBulkSelection,{total_bills_selected:o,bill_stage:a,bill_status:c,bill_type:u})}trackBillPayBulkPopupConfirm(o,a,c,u){this.fireTrack(i.Event.billPayBulkPopupConfirm,{operation_type:o,bill_stage:a,bill_status:c,bill_type:u})}trackBillPayMarkAsPaid(o,a){this.fireTrack(i.Event.billPayMarkAsPaid,{bill_stage:o,bill_status:a})}trackBillPayMarkAsPaidSubmit(o,a,c){this.fireTrack(i.Event.billPayMarkAsPaidSubmit,{payment_mode:o,bill_stage:a,bill_status:c})}trackGroupBySwitch(o,a){this.fireTrack(i.Event.groupBySwitch,{view:o,parent_card:a})}trackUpdateBurnRateCalculatorSettings(o,a,c){this.fireTrack(i.Event.burnRateCalculatorSettings,{accounting_method:o,time_span_id_for_avg_net_burn:a,number_of_months_for_average:c})}trackTransactionDetailsSave(o,a,c,u,p,_,m,g){this.fireTrack(i.Event.transactionDetailsSave,{account_id:o,account_name:a,transaction_id:c,transaction_name:u,transaction_type:p,changed_line_item_count:_,transaction_memo:m,receipt_file_names:g})}trackTransactionTypeUpdateTriggered({amount:o,creditAccountGroup:a,creditAccountId:c,creditAccountName:u,creditAccountType:p,currentTransactionType:_,debitAccountGroup:m,debitAccountId:g,debitAccountName:v,debitAccountType:y,previousTransactionMemo:k,previousTransactionType:E,transactionId:w,updatedTransactionMemo:C}){this.fireTrack(i.Event.transactionTypeUpdateTriggered,{previous_transaction_type:E,current_transaction_type:_,previous_transaction_memo:k,updated_transaction_memo:C,debit_account_name:v,debit_account_id:g,debit_account_type:y,debit_account_group:m,credit_account_name:u,credit_account_id:c,credit_account_type:p,credit_account_group:a,amount:o,transaction_id:w})}trackVendorList(o,a,c,u,p){this.fireTrack(i.Event.vendorList,{vendor_count:c,sort_key:u,spend_trend_key:p,current_tab:o,previous_tab:a})}trackVendorListSort(o,a,c){this.fireTrack(i.Event.vendorListSort,{vendor_count:o,sort_key:a,spend_trend_key:c})}trackVendorListSearch(o){this.fireTrack(i.Event.vendorListSearch,{search_term:o})}trackVendorListSpendTrendSelection(o,a,c){this.fireTrack(i.Event.vendorListSpendTrendSelection,{vendor_count:o,sort_key:a,spend_trend_key:c})}trackVendorDetails(o,a,c,u,p,_,m,g,v,y){this.fireTrack(i.Event.vendorDetails,{vendor_id:o,vendor_name:a,referrer_card:c,vendor_category:u,vendor_class_name:p,spend_trend_indicator_value:m,vendor_spend_last_30days:g,vendor_spend_last_90days:v,vendor_spend_ytd:y,vendor_owner:_})}trackVendorDetailsSave(o,a,c,u,p,_,m,g,v,y,k,E){this.fireTrack(i.Event.vendorDetailsSave,{vendor_id:o,vendor_name:a,vendor_category:c,vendor_class_name:u,vendor_owner:p,saved_vendor_category:_,saved_vendor_class:m,saved_vendor_owner:g,is_recommended_category_selected:v,is_recommended_class_selected:y,category_recommendation_used:k,class_recommendation_used:E})}trackVendorDetailsCancel(o,a,c,u,p){this.fireTrack(i.Event.vendorDetailsCancel,{vendor_id:o,vendor_name:a,vendor_category:c,vendor_class_name:u,vendor_owner:p})}trackVendorDetailsSpendTrendHotlinkClicked(o,a,c,u,p){this.fireTrack(i.Event.vendorDetailsSpendTrendHotlinkClicked,{vendor_id:o,vendor_name:a,vendor_category:c,vendor_class_name:u,vendor_owner:p})}trackAgingReportDownloadClick(o,a,c){this.fireTrack(i.Event.download,{referrer_card:o,sort_key:a,sort_order:c})}trackAgingReportDateChange(o,a,c,u){this.fireTrack(i.Event.agingReportDateChange,{referrer_card:o,current_report_date:a,new_report_date:c,new_report_date_selection:u})}trackAgingReportSortChange(o,a,c){this.fireTrack(i.Event.sort,{referrer_card:o,sort_key:a,sort_order:c})}trackApAgingDetail(o,a,c,u){this.fireTrack(i.Event.apAgingDetail,{referrer_card:o,vendor_id:c,vendor_name:u,current_report_date:a})}trackArAgingDetail(o,a,c,u){this.fireTrack(i.Event.arAgingDetail,{referrer_card:o,customer_id:c,customer_name:u,current_report_date:a})}trackApAgingDetailReportSortChange(o,a,c,u,p){this.fireTrack(i.Event.sort,{referrer_card:"AP Aging Detail",sort_key:o,sort_order:a,vendor_id:u,vendor_name:p,current_report_date:c})}trackArAgingDetailReportSortChange(o,a,c,u,p){this.fireTrack(i.Event.sort,{referrer_card:"AR Aging Detail",sort_key:o,sort_order:a,customer_id:u,customer_name:p,current_report_date:c})}trackApAgingDetailReportDownload(o,a,c,u,p){this.fireTrack(i.Event.download,{referrer_card:"AP Aging Detail",sort_key:o,sort_order:a,vendor_id:u,vendor_name:p,current_report_date:c})}trackArAgingDetailReportDownload(o,a,c,u,p){this.fireTrack(i.Event.download,{referrer_card:"AR Aging Detail",sort_key:o,sort_order:a,customer_id:u,customer_name:p,current_report_date:c})}trackVendorReviewPage(o,a){this.fireTrack(i.Event.vendorReviewList,{vendor_review_source:o,vendor_review_count_total:a})}trackVendorReviewApproveRequested({reviewSource:o,tenantName:a,requestedVendorName:c,originalVendorName:u,approveVendorName:p,approveVendorNameSelectionSource:_,approveVendorReason:m,isGlobalVendorRequested:g,isNewCreatedVendorRequested:v,isVendorNameRecommendationSelected:y,isVendorNameChangedAndSelected:k,wasRecommendationAvailable:E,recommendedVendorName:w,recommendedVendorReason:C}){this.fireTrack(i.Event.vendorReviewGlobalApproveRequest,{vendor_review_source:o,vendor_review_tenant_name:a,old_vendor_name_requested:c,old_vendor_name_original:u,approve_vendor_name_requested:p,approve_vendor_name_recommendation_reason:m,approve_vendor_name_selection_source:_,vendor_name_recommendation:w,vendor_name_recommendation_reason:C,is_vendor_recommended:E,is_recommended_vendor_name_selected:y,is_vendor_renamed:k,is_global_vendor_selected:g,is_vendor_name_new_created_and_selected:v})}trackVendorReviewNewVendorRequested({reviewSource:o,tenantName:a,newRequestedVendorName:c,newRequestedVendorNameSource:u,isVendorNameRecommendationSelected:p,recommendedVendorName:_,recommendedVendorReason:m}){this.fireTrack(i.Event.vendorReviewGlobalNewVendorRequest,{vendor_review_source:o,vendor_review_tenant_name:a,new_vendor_name_requested:c,new_vendor_name_selection_source:u,new_vendor_recommendation_vendor_name:_,new_vendor_recommendation_vendor_name_reason:m,is_recommended_vendor_name_selected:p})}trackVendorReviewNewVendorSaved({reviewSource:o,saveRequestedVendorName:a,saveRequestedVendorSource:c,isVendorNameRecommendationSelected:u,tenantName:p,recommendedVendorName:_,recommendedVendorReason:m}){this.fireTrack(i.Event.vendorReviewGlobalNewVendorSave,{vendor_review_source:o,vendor_review_tenant_name:p,saved_vendor_name:a,saved_vendor_name_selection_source:c,new_vendor_recommendation_vendor_name:_,new_vendor_recommendation_vendor_name_reason:m,is_recommended_vendor_name_selected:u})}trackVendorReviewNewVendorCanceled({reviewSource:o,newRequestedVendorName:a,tenantName:c,recommendedVendorName:u,recommendedVendorReason:p}){this.fireTrack(i.Event.vendorReviewGlobalNewVendorCancel,{vendor_review_source:o,vendor_review_tenant_name:c,new_vendor_name_requested:a,new_vendor_recommendation_vendor_name:u,new_vendor_recommendation_vendor_name_reason:p})}trackVendorReviewSaveVendorRequested({reviewSource:o,vendorName:a,vendorReviewStatus:c,saveRequestedVendorName:u,saveRequestedVendorReason:p,saveRequestedVendorSource:_,isGlobalVendorRequested:m,isVendorNameRetainSelected:g,isVendorNameRecommendationSelected:v,isVendorNameChangedAndSelected:y,wasRecommendationAvailable:k,isVendorNameMarkedAsEmployee:E,isVendorNameMarkedAsLocalContractor:w,recommendedVendorName:C,recommendedVendorReason:P}){this.fireTrack(i.Event.vendorReviewTenantSave,{vendor_review_source:o,old_vendor_name:a,review_status:c,saved_vendor_name:u,save_vendor_name_recommendation_reason:p,saved_vendor_name_source:_,vendor_name_recommendation:C,vendor_name_recommendation_reason:P,is_vendor_name_retain_selected:g,is_recommended_vendor_name_selected:v,is_global_vendor_selected:m,is_vendor_renamed:y,is_vendor_recommended:k,is_vendor_employee:E,is_vendor_contractor:w})}trackVendorReviewMergeInQBORedirectedOrCanceled({reviewSource:o,event:a,vendorName:c,vendorReviewStatus:u,saveRequestedVendorName:p,saveRequestedVendorReason:_,saveRequestedVendorSource:m,isVendorNameRetainSelected:g,isVendorNameRecommendationSelected:v,isVendorNameChangedAndSelected:y,wasRecommendationAvailable:k,recommendedVendorName:E,recommendedVendorReason:w}){this.fireTrack(a,{vendor_review_source:o,old_vendor_name:c,review_status:u,saved_vendor_name:p,save_vendor_name_recommendation_reason:_,saved_vendor_name_source:m,vendor_name_recommendation:E,vendor_name_recommendation_reason:w,is_vendor_name_retain_selected:g,is_recommended_vendor_name_selected:v,is_vendor_renamed:y,is_vendor_recommended:k})}trackVendorReviewRecommendationUpdateContinuedOrCanceled({reviewSource:o,event:a,vendorName:c,vendorReviewStatus:u,saveRequestedVendorName:p,saveRequestedVendorReason:_,saveRequestedVendorSource:m,isVendorNameRetainSelected:g,isVendorNameRecommendationSelected:v,isVendorNameChangedAndSelected:y,wasRecommendationAvailable:k,updatedRecommendedVendorName:E,updatedRecommendedVendorReason:w,recommendedVendorName:C,recommendedVendorReason:P}){this.fireTrack(a,{vendor_review_source:o,old_vendor_name:c,review_status:u,saved_vendor_name:p,save_vendor_name_recommendation_reason:_,saved_vendor_name_source:m,updated_recommendation_vendor_name:E,updated_recommendation_vendor_name_reason:w,vendor_name_recommendation:C,vendor_name_recommendation_reason:P,is_vendor_name_retain_selected:g,is_recommended_vendor_name_selected:v,is_vendor_renamed:y,is_vendor_recommended:k})}trackVendorReviewUpdateVendorCanceled({reviewSource:o,vendorName:a,vendorReviewStatus:c,wasRecommendationAvailable:u,recommendedVendorName:p,recommendedVendorReason:_}){this.fireTrack(i.Event.vendorReviewTenantUpdateCancel,{vendor_review_source:o,old_vendor_name:a,review_status:c,vendor_name_recommendation:p,vendor_name_recommendation_reason:_,is_vendor_recommended:u})}trackVendorReviewWebsiteOpened({reviewSource:o,vendorName:a,wasRecommendationAvailable:c,recommendedVendorName:u,recommendedVendorReason:p,vendorWebsite:_}){this.fireTrack(i.Event.vendorReviewTenantWebsiteOpened,{vendor_review_source:o,old_vendor_name:a,vendor_name_recommendation:u,vendor_name_recommendation_reason:p,is_vendor_recommended:c,vendor_website:_})}trackCockpitTabClicked(o){const a={tab_name:o};this.fireTrack(i.Event.cockpitTabClicked,a)}trackCockpitHealthMonitorRowClicked(o,a,c,u,p,_){const m={company_id:o,company_name:a,churn_percent:_,controller_name:c,nps:u,csat:p};this.fireTrack(i.Event.cockpitHealthMonitorRowClicked,m)}trackHealthMonitorFiltersApplied({filterSelection:o}){this.fireTrack(i.Event.healthMonitorFilterApplied,{parameter:o.parameter,condition:o.condition,logic:o.logic})}trackCockpitHealthMonitorNotificationAlertClicked(o){const a={company_id:o.companyId,company_name:o.companyName,churn_percent:o.churnProbability};this.fireTrack(i.Event.cockpitHealthMonitorNotificationAlertClicked,a)}trackCockpitHealthMonitorChurnFormClicked(o,a){const c={click_type:o,company_id:a.companyId,company_name:a.companyName,zeni_products_and_services:a.zeniProductAndServicesCount,days_to_renewal:a.daysToRenewal,nps:a.netPromoterScore,csat:a.customerSatisfactionScore,external_services_exposure:a.externalServicesExposure,runway_months:a.runwayMonths,dashboard_last_seen:a.dashBoardLastSeen,last_report_sent:a.lastReportSent,churn_percent:a.churnProbability};this.fireTrack(i.Event.cockpitHealthMonitorChurnFormClicked,c)}trackScheduleReviewListLoaded({scheduleType:o,scheduleTab:a,currentTab:c,previousTab:u,scheduleCountTotal:p,categories:_,startMonth:m,endMonth:g,controllerEmails:v,controllerUserIds:y}){this.fireTrack(i.Event.scheduleReviewList,{schedule_type:o,schedule_list_tab:a,schedule_count_total:p,current_tab:c,previous_tab:u,schedule_account_categories_selected:_,schedule_period_start_month:m,schedule_period_end_month:g,controller_emails:v,controller_user_ids:y})}trackScheduleDetailsLoaded({scheduleType:o,transaction:a,scheduleExpenseCategoryAndClass:c,scheduledTransaction:u,vendorName:p,fixedAssetsDetails:_,controllerEmails:m,controllerUserIds:g}){const{transactionDate:v,transactionAmount:y,scheduleCategory:k,scheduleClass:E,description:w}=a,{currentBalance:C,currentStatus:P,startMonth:D,endMonth:b,period:T}=u,{expenseCategory:x,expenseClass:L}=c;this.fireTrack(i.Event.scheduleDetailsPage,{schedule_type:o,vendor_name:p,transaction_date:v,transaction_amount:y,schedule_current_balance:C,schedule_category:k,schedule_class:E,schedule_description:w,schedule_current_status:P,schedule_start_month:D,schedule_end_month:b,schedule_number_of_months:T,expense_category:x,expense_class:L,accumulated_depreciation_category:_?.accumulatedDepreciationCategory??null,asset_id:_?.assetId??null,controller_emails:m,controller_user_ids:g})}trackScheduleDetailsSaved({scheduleType:o,transaction:a,scheduleExpenseCategoryAndClass:c,scheduledTransaction:u,vendorName:p,fixedAssetsDetails:_,controllerEmails:m,controllerUserIds:g}){const{transactionDate:v,transactionAmount:y,scheduleCategory:k,scheduleClass:E,description:w}=a,{currentBalance:C,currentStatus:P,startMonth:D,endMonth:b,period:T}=u,{expenseCategory:x,expenseClass:L}=c;this.fireTrack(i.Event.scheduleDetailsSave,{schedule_type:o,vendor_name:p,transaction_date:v,transaction_amount:y,schedule_current_balance:C,schedule_category:k,schedule_class:E,schedule_description:w,schedule_current_status:P,schedule_start_month:D,schedule_end_month:b,schedule_number_of_months:T,expense_category:x,expense_class:L,accumulated_depreciation_category:_?.accumulatedDepreciationCategory??null,asset_id:_?.assetId??null,controller_emails:m,controller_user_ids:g})}trackScheduleDetailsCanceled({scheduleType:o,transaction:a,scheduleExpenseCategoryAndClass:c,scheduledTransaction:u,vendorName:p,fixedAssetsDetails:_,controllerEmails:m,controllerUserIds:g}){const{transactionDate:v,transactionAmount:y,scheduleCategory:k,scheduleClass:E,description:w}=a,{currentBalance:C,currentStatus:P,startMonth:D,endMonth:b,period:T}=u,{expenseCategory:x,expenseClass:L}=c;this.fireTrack(i.Event.scheduleDetailsCancel,{schedule_type:o,vendor_name:p??"",transaction_date:v,transaction_amount:y,schedule_current_balance:C,schedule_category:k,schedule_class:E,schedule_description:w,schedule_current_status:P,schedule_start_month:D,schedule_end_month:b,schedule_number_of_months:T,expense_category:x,expense_class:L,accumulated_depreciation_category:_?.accumulatedDepreciationCategory??null,asset_id:_?.assetId??null,controller_emails:m,controller_user_ids:g})}trackScheduleDetailsLinkJournalEntry({scheduleType:o,transaction:a,scheduleExpenseCategoryAndClass:c,journalEntryDetails:u,vendorName:p,fixedAssetsDetails:_,controllerEmails:m,controllerUserIds:g}){const{transactionDate:v,transactionAmount:y,scheduleCategory:k,scheduleClass:E}=a,{journalEntryMonth:w,journalEntryPostingDate:C,journalEntryTransactionAmount:P,journalEntryPostingStatus:D,journalEntryMemo:b}=u,{expenseCategory:T,expenseClass:x}=c;this.fireTrack(i.Event.scheduleDetailsLinkJournalEntry,{schedule_type:o,vendor_name:p,transaction_date:v,transaction_amount:y,schedule_category:k,schedule_class:E,journal_entry_month:w,journal_entry_posting_date:C,journal_entry_transaction_amount:P,journal_entry_posting_status:D,journal_entry_memo:b,expense_category:T,expense_class:x,accumulated_depreciation_category:_?.accumulatedDepreciationCategory??null,asset_id:_?.assetId??null,controller_emails:m,controller_user_ids:g})}trackScheduleDetailsViewJournalEntry({scheduleType:o,scheduleExpenseCategoryAndClass:a,journalEntryDetails:c,fixedAssetsDetails:u,controllerEmails:p,controllerUserIds:_}){const{journalEntryMonth:m,journalEntryPostingDate:g,journalEntryTransactionAmount:v,journalEntryPostingStatus:y,journalEntryMemo:k}=c,{expenseCategory:E,expenseClass:w}=a;this.fireTrack(i.Event.scheduleDetailsViewJournalEntry,{schedule_type:o,journal_entry_month:m,journal_entry_posting_date:g,journal_entry_transaction_amount:v,journal_entry_posting_status:y,journal_entry_memo:k,expense_category:E,expense_class:w,accumulated_depreciation_category:u?.accumulatedDepreciationCategory??null,asset_id:u?.assetId??null,controller_emails:p,controller_user_ids:_})}trackScheduleDetailsDeleted({scheduleType:o,transaction:a,scheduleExpenseCategoryAndClass:c,scheduledTransaction:u,vendorName:p,fixedAssetsDetails:_,controllerEmails:m,controllerUserIds:g}){const{transactionDate:v,transactionAmount:y,scheduleCategory:k,scheduleClass:E,description:w}=a,{currentBalance:C,currentStatus:P,startMonth:D,endMonth:b,period:T}=u,{expenseCategory:x,expenseClass:L}=c;this.fireTrack(i.Event.scheduleDetailsDelete,{schedule_type:o,vendor_name:p,transaction_date:v,transaction_amount:y,schedule_current_balance:C,schedule_category:k,schedule_class:E,schedule_description:w,schedule_current_status:P,schedule_start_month:D,schedule_end_month:b,schedule_number_of_months:T,expense_category:x,expense_class:L,accumulated_depreciation_category:_?.accumulatedDepreciationCategory??null,asset_id:_?.assetId??null,controller_emails:m,controller_user_ids:g})}trackScheduleDetailsMarkedAsCompleted({scheduleType:o,transaction:a,scheduledTransaction:c,scheduleExpenseCategoryAndClass:u,vendorName:p,fixedAssetsDetails:_,controllerEmails:m,controllerUserIds:g}){const{transactionDate:v,transactionAmount:y,scheduleCategory:k,scheduleClass:E,description:w}=a,{currentBalance:C,currentStatus:P,startMonth:D,endMonth:b,period:T}=c,{expenseCategory:x,expenseClass:L}=u;this.fireTrack(i.Event.scheduleDetailsMarkComplete,{schedule_type:o,vendor_name:p,transaction_date:v,transaction_amount:y,schedule_current_balance:C,schedule_category:k,schedule_class:E,schedule_description:w,schedule_current_status:P,schedule_start_month:D,schedule_end_month:b,schedule_number_of_months:T,expense_category:x,expense_class:L,accumulated_depreciation_category:_?.accumulatedDepreciationCategory??null,asset_id:_?.assetId??null,controller_emails:m,controller_user_ids:g})}trackScheduleDetailsJournalEntryLinkedSaved({scheduleType:o,transaction:a,scheduleExpenseCategoryAndClass:c,journalEntryDetails:u,vendorName:p,fixedAssetsDetails:_,controllerEmails:m,controllerUserIds:g}){const{transactionDate:v,transactionAmount:y}=a,{journalEntryMonth:k,journalEntryPostingDate:E,journalEntryTransactionAmount:w,journalEntryPostingStatus:C,journalEntryMemo:P,journalEntryQBOLink:D,wasRecommendationAvailable:b,wasRecommendationSelected:T}=u,{expenseCategory:x,expenseClass:L}=c;this.fireTrack(i.Event.scheduleDetailsJournalEntryLinkedSaved,{schedule_type:o,vendor_name:p,transaction_date:v,transaction_amount:y,journal_entry_month:k,journal_entry_posting_date:E,journal_entry_transaction_amount:w,journal_entry_posting_status:C,journal_entry_qbo_link:D,journal_entry_memo:P,is_vendor_recommended:b,was_recommendation_selected:T,expense_category:x,expense_class:L,accumulated_depreciation_category:_?.accumulatedDepreciationCategory??null,asset_id:_?.assetId??null,controller_emails:m,controller_user_ids:g})}trackScheduleDetailsJournalEntryQBOFetched({scheduleType:o,transaction:a,scheduleExpenseCategoryAndClass:c,journalEntryDetails:u,vendorName:p,fixedAssetsDetails:_,controllerEmails:m,controllerUserIds:g}){const{transactionDate:v,transactionAmount:y}=a,{journalEntryMonth:k,journalEntryPostingDate:E,journalEntryTransactionAmount:w,journalEntryPostingStatus:C,journalEntryMemo:P,wasRecommendationAvailable:D,wasRecommendationSelected:b,journalEntryQBOLink:T}=u,{expenseCategory:x,expenseClass:L}=c;this.fireTrack(i.Event.scheduleDetailsJournalEntryQBOFetched,{schedule_type:o,vendor_name:p,transaction_date:v,transaction_amount:y,journal_entry_month:k,journal_entry_posting_date:E,journal_entry_transaction_amount:w,journal_entry_posting_status:C,journal_entry_qbo_link:T,journal_entry_memo:P,is_vendor_recommended:D,was_recommendation_selected:b,expense_category:x,expense_class:L,accumulated_depreciation_category:_?.accumulatedDepreciationCategory??null,asset_id:_?.assetId??null,controller_emails:m,controller_user_ids:g})}trackScheduleDetailsJournalEntryLinkCanceled({scheduleType:o,transaction:a,scheduleExpenseCategoryAndClass:c,journalEntryDetails:u,vendorName:p,fixedAssetsDetails:_,controllerEmails:m,controllerUserIds:g}){const{transactionDate:v,transactionAmount:y}=a,{journalEntryMonth:k,journalEntryPostingDate:E,journalEntryTransactionAmount:w,journalEntryPostingStatus:C,journalEntryMemo:P,wasRecommendationAvailable:D,wasRecommendationSelected:b,journalEntryQBOLink:T}=u,{expenseCategory:x,expenseClass:L}=c;this.fireTrack(i.Event.scheduleDetailsJournalEntryLinkCancel,{schedule_type:o,vendor_name:p,transaction_date:v,transaction_amount:y,journal_entry_month:k,journal_entry_posting_date:E,journal_entry_transaction_amount:w,journal_entry_posting_status:C,journal_entry_qbo_link:T,journal_entry_memo:P,is_vendor_recommended:D,was_recommendation_selected:b,expense_category:x,expense_class:L,accumulated_depreciation_category:_?.accumulatedDepreciationCategory??null,asset_id:_?.assetId??null,controller_emails:m,controller_user_ids:g})}trackScheduleAccruedDetailsNewRequested({scheduleType:o}){this.fireTrack(i.Event.scheduleDetailsNewRequested,{schedule_type:o})}trackScheduleAccruedDetailsLoaded({scheduleType:o,scheduleExpenseCategoryAndClass:a,vendorName:c,controllerEmails:u,schedule:p,controllerUserIds:_}){const{startingBalance:m,scheduleAccountCategory:g,description:v,scheduleCreateDate:y,scheduleMonthlyAmount:k,runningBalance:E,currentStatus:w,startMonth:C,endMonth:P,period:D}=p,{expenseCategory:b,expenseClass:T}=a;this.fireTrack(i.Event.scheduleDetailsPage,{schedule_type:o,controller_emails:u,controller_user_ids:_,schedule_expense_category:b,schedule_expense_class:T,schedule_account_category:g,schedule_create_date:y,schedule_current_balance:E,schedule_current_status:w,schedule_description:v,schedule_end_month:P,schedule_monthly_amount:k,schedule_number_of_months:D,schedule_start_month:C,schedule_starting_balance:m,vendor_name:c})}trackScheduleAccruedDetailsSaved({scheduleType:o,scheduleExpenseCategoryAndClass:a,vendorName:c,controllerEmails:u,schedule:p,controllerUserIds:_}){const{startingBalance:m,scheduleAccountCategory:g,description:v,scheduleCreateDate:y,scheduleMonthlyAmount:k,runningBalance:E,currentStatus:w,startMonth:C,endMonth:P,period:D}=p,{expenseCategory:b,expenseClass:T}=a;this.fireTrack(i.Event.scheduleDetailsSave,{schedule_type:o,controller_emails:u,controller_user_ids:_,schedule_expense_category:b,schedule_expense_class:T,schedule_account_category:g,schedule_create_date:y,schedule_current_balance:E,schedule_current_status:w,schedule_description:v,schedule_end_month:P,schedule_monthly_amount:k,schedule_number_of_months:D,schedule_start_month:C,schedule_starting_balance:m,vendor_name:c})}trackScheduleAccruedDetailsCanceled({scheduleType:o,scheduleExpenseCategoryAndClass:a,vendorName:c,controllerEmails:u,schedule:p,controllerUserIds:_,lastPostedScheduleMonth:m}){const{startingBalance:g,scheduleAccountCategory:v,description:y,scheduleCreateDate:k,scheduleMonthlyAmount:E,runningBalance:w,currentStatus:C,startMonth:P,endMonth:D,period:b}=p,{expenseCategory:T,expenseClass:x}=a;this.fireTrack(i.Event.scheduleDetailsCancel,{schedule_type:o,controller_emails:u,controller_user_ids:_,schedule_expense_category:T,schedule_expense_class:x,schedule_account_category:v,schedule_create_date:k,schedule_current_balance:w,schedule_current_status:C,schedule_description:y,schedule_end_month:D,schedule_monthly_amount:E,schedule_number_of_months:b,schedule_start_month:P,schedule_starting_balance:g,vendor_name:c,schedule_last_month_with_posted_status:m})}trackScheduleAccruedDetailsDeleted({scheduleType:o,scheduleExpenseCategoryAndClass:a,vendorName:c,controllerEmails:u,schedule:p,controllerUserIds:_,scheduleNonPendingLastMonth:m,scheduleNonPendingLastMonthStatus:g}){const{startingBalance:v,scheduleAccountCategory:y,description:k,scheduleCreateDate:E,scheduleMonthlyAmount:w,runningBalance:C,currentStatus:P,startMonth:D,endMonth:b,period:T}=p,{expenseCategory:x,expenseClass:L}=a;this.fireTrack(i.Event.scheduleDetailsDelete,{schedule_type:o,controller_emails:u,controller_user_ids:_,schedule_expense_category:x,schedule_expense_class:L,schedule_account_category:y,schedule_create_date:E,schedule_current_balance:C,schedule_current_status:P,schedule_description:k,schedule_end_month:b,schedule_monthly_amount:w,schedule_number_of_months:T,schedule_start_month:D,schedule_starting_balance:v,vendor_name:c,schedule_non_pending_last_month:m,schedule_non_pending_last_month_status:g})}trackScheduleAccruedDetailsLinkJournalEntry({scheduleType:o,scheduleExpenseCategoryAndClass:a,schedule:c,vendorName:u,journalEntryDetails:p,controllerEmails:_,controllerUserIds:m}){const{journalEntryMonth:g,journalEntryAmount:v,journalEntryBalance:y,journalEntryPostingStatus:k}=p,{scheduleCreateDate:E,scheduleMonthlyAmount:w,currentStatus:C,description:P,endMonth:D,period:b,runningBalance:T,scheduleAccountCategory:x,startMonth:L,startingBalance:U}=c,{expenseCategory:M,expenseClass:q}=a;this.fireTrack(i.Event.scheduleDetailsJournalEntryLinkExpense,{schedule_type:o,schedule_create_date:E,vendor_name:u,schedule_monthly_amount:w,schedule_description:P,schedule_current_status:C,schedule_start_month:L,schedule_end_month:D,schedule_number_of_months:b,schedule_current_balance:T,schedule_starting_balance:U,schedule_account_category:x,schedule_entry_expense_link_amount:v,schedule_entry_expense_link_balance:y,schedule_entry_expense_link_month:g,schedule_entry_current_status:k,schedule_expense_category:M,schedule_expense_class:q,controller_emails:_,controller_user_ids:m})}trackScheduleAccruedDetailsViewJournalEntry({scheduleType:o,scheduleJournalEntryType:a,scheduleExpenseCategoryAndClass:c,schedule:u,vendorName:p,journalEntryDetails:_,controllerEmails:m,controllerUserIds:g}){const{journalEntryMonth:v,journalEntryAmount:y,journalEntryBalance:k,journalEntryPostingStatus:E}=_,{scheduleCreateDate:w,scheduleMonthlyAmount:C,currentStatus:P,description:D,endMonth:b,period:T,runningBalance:x,scheduleAccountCategory:L,startMonth:U,startingBalance:M}=u,{expenseCategory:q,expenseClass:W}=c;this.fireTrack(i.Event.scheduleDetailsViewJournalEntry,{schedule_type:o,schedule_journal_entry_type:a,schedule_create_date:w,vendor_name:p,schedule_monthly_amount:C,schedule_account_category:L,schedule_description:D,schedule_current_status:P,schedule_start_month:U,schedule_end_month:b,schedule_number_of_months:T,schedule_expense_category:q,schedule_expense_class:W,schedule_current_balance:x,schedule_starting_balance:M,schedule_entry_current_status:E,schedule_entry_expense_link_amount:y,schedule_entry_expense_link_balance:k,schedule_entry_expense_link_month:v,controller_emails:m,controller_user_ids:g})}trackScheduleAccruedDetailsJournalEntryViewLinkedExpense({scheduleType:o,scheduleExpenseCategoryAndClass:a,schedule:c,vendorName:u,journalEntryDetails:p,controllerEmails:_,controllerUserIds:m}){const{journalEntryMonth:g,journalEntryAmount:v,journalEntryBalance:y,journalEntryPostingStatus:k}=p,{scheduleCreateDate:E,scheduleMonthlyAmount:w,currentStatus:C,description:P,endMonth:D,period:b,runningBalance:T,scheduleAccountCategory:x,startMonth:L,startingBalance:U}=c,{expenseCategory:M,expenseClass:q}=a;this.fireTrack(i.Event.scheduleDetailsJournalEntryViewLinkedExpense,{schedule_type:o,schedule_create_date:E,vendor_name:u,schedule_monthly_amount:w,schedule_account_category:x,schedule_description:P,schedule_current_status:C,schedule_start_month:L,schedule_end_month:D,schedule_number_of_months:b,schedule_expense_category:M,schedule_expense_class:q,schedule_current_balance:T,schedule_starting_balance:U,schedule_entry_current_status:k,schedule_entry_expense_link_amount:v,schedule_entry_expense_link_balance:y,schedule_entry_expense_link_month:g,controller_emails:_,controller_user_ids:m})}trackScheduleAccruedDetailsJournalEntryLinkCanceled({scheduleType:o,scheduleExpenseCategoryAndClass:a,schedule:c,vendorName:u,journalEntryDetails:p,controllerEmails:_,controllerUserIds:m}){const{journalEntryMonth:g,journalEntryAmount:v,journalEntryBalance:y,journalEntryPostingStatus:k}=p,{scheduleCreateDate:E,scheduleMonthlyAmount:w,currentStatus:C,description:P,endMonth:D,period:b,runningBalance:T,scheduleAccountCategory:x,startMonth:L,startingBalance:U}=c,{expenseCategory:M,expenseClass:q}=a;this.fireTrack(i.Event.scheduleDetailsEntryCanceled,{schedule_type:o,schedule_create_date:E,vendor_name:u,schedule_monthly_amount:w,schedule_description:P,schedule_current_status:C,schedule_start_month:L,schedule_end_month:D,schedule_number_of_months:b,schedule_current_balance:T,schedule_starting_balance:U,schedule_account_category:x,schedule_entry_expense_link_month:g,schedule_expense_category:M,schedule_expense_class:q,schedule_entry_current_status:k,schedule_entry_expense_link_amount:v,schedule_entry_expense_link_balance:y,controller_emails:_,controller_user_ids:m})}trackScheduleAccruedDetailsJournalEntryLinkedLoaded({scheduleType:o,scheduleExpenseCategoryAndClass:a,schedule:c,vendorName:u,journalEntryDetails:p,controllerEmails:_,controllerUserIds:m}){const{currentStatus:g,description:v,endMonth:y,period:k,runningBalance:E,scheduleAccountCategory:w,scheduleCreateDate:C,scheduleMonthlyAmount:P,startMonth:D,startingBalance:b}=c,{wasRecommendationAvailable:T,journalEntryPostingStatus:x}=p,{expenseCategory:L,expenseClass:U}=a;this.fireTrack(i.Event.scheduleDetailsJournalEntryLinkExpenseLoaded,{schedule_type:o,vendor_name:u,schedule_create_date:C,schedule_monthly_amount:P,schedule_description:v,schedule_current_status:g,schedule_start_month:D,schedule_end_month:y,schedule_number_of_months:k,schedule_current_balance:E,schedule_starting_balance:b,schedule_account_category:w,schedule_expense_category:L,schedule_expense_class:U,controller_emails:_,schedule_entry_current_status:x,controller_user_ids:m,is_vendor_recommended:T})}trackScheduleAccruedDetailsJournalEntryLinkedSaved({scheduleType:o,scheduleExpenseCategoryAndClass:a,schedule:c,vendorName:u,transactionDetails:p,journalEntryDetails:_,controllerEmails:m,controllerUserIds:g}){const{currentStatus:v,description:y,endMonth:k,period:E,runningBalance:w,scheduleAccountCategory:C,scheduleCreateDate:P,scheduleMonthlyAmount:D,startMonth:b,startingBalance:T}=c,{wasRecommendationAvailable:x,wasRecommendationSelected:L,journalEntryPostingStatus:U}=_,{linkedTransactionAmount:M,linkedTransactionDate:q,linkedTransactionDescription:W,linkedTransactionType:j}=p,{expenseCategory:re,expenseClass:K}=a;this.fireTrack(i.Event.scheduleDetailsJounralEntryLinkExpenseSaved,{schedule_type:o,vendor_name:u,schedule_create_date:P,schedule_monthly_amount:D,schedule_description:y,schedule_current_status:v,schedule_start_month:b,schedule_end_month:k,schedule_number_of_months:E,schedule_current_balance:w,schedule_starting_balance:T,schedule_account_category:C,schedule_expense_category:re,schedule_expense_class:K,controller_emails:m,controller_user_ids:g,is_vendor_recommended:x,was_recommendation_selected:L,linked_transaction_amount:M,linked_transaction_date:q,schedule_entry_current_status:U,linked_transaction_description:W,linked_transaction_type:j})}trackScheduleAccruedDetailsJournalEntryLinkedCanceled({scheduleType:o,scheduleExpenseCategoryAndClass:a,schedule:c,vendorName:u,journalEntryDetails:p,controllerEmails:_,controllerUserIds:m}){const{currentStatus:g,description:v,endMonth:y,period:k,runningBalance:E,scheduleAccountCategory:w,scheduleCreateDate:C,scheduleMonthlyAmount:P,startMonth:D,startingBalance:b}=c,{wasRecommendationAvailable:T,journalEntryPostingStatus:x}=p,{expenseCategory:L,expenseClass:U}=a;this.fireTrack(i.Event.scheduleDetailsJournalEntryLinkExpenseCanceled,{schedule_type:o,vendor_name:u,schedule_create_date:C,schedule_monthly_amount:P,schedule_description:v,schedule_current_status:g,schedule_start_month:D,schedule_end_month:y,schedule_number_of_months:k,schedule_current_balance:E,schedule_starting_balance:b,schedule_account_category:w,schedule_expense_category:L,schedule_expense_class:U,controller_emails:_,controller_user_ids:m,schedule_entry_current_status:x,is_vendor_recommended:T})}trackCockpitTaskCardClicked({tenantName:o,tenantId:a,user:c,controllerEmails:u}){this.fireTrack(i.Event.cockpitTaskCardClicked,{tenant_name:o,tenant_id:a,user_name:c.name,user_email:c.email,user_role:c.role,controller_emails:u})}trackTaskEdited({tenantName:o,taskId:a,activity:c,createdBy:u,commentsCreated:p}){const{name:_,description:m,status:g,priority:v,assignees:y,numberOfAttachments:k,tags:E,dueDate:w}=c.details;this.fireTrack(i.Event.taskEdited,{tenant_name:o,task_id:a,created_by:u,activity_count:c.count,activity_type:{name:_,description:m,status:g,priority:v,assignees:y,file_attached_count:k,tags:E,due_date:w},activity_by_user:c.byUser,comment_created:p})}trackTaskCreated({tenantName:o,taskId:a,newButtonClicked:c,activity:u,createdBy:p}){const{name:_,description:m,status:g,priority:v,assignees:y,numberOfAttachments:k,tags:E,dueDate:w}=u.details;this.fireTrack(i.Event.newTaskRequested,{tenant_name:o,task_id:a,created_by:p,new_task_button_clicked:c,file_attached_count:k,assignees:y,priority_set:v,task_name:_,task_description:m,task_status:g,tag_name:E?E.join(","):null,task_due_date:w})}trackRewardsPageClicked(o){this.fireTrack(i.Event.rewardsPageClicked,{click_type:o})}trackDashboardCardClicked(o,a){this.fireTrack(i.Event.dashboardCardClicked,{click_type:o,card_position:a})}trackInviteEmailClicked(o,a,c,u){this.fireTrack(i.Event.inviteEmailClicked,{click_type:o,referred_company:a,referred_email:c,invitee_count:u})}trackGetAuditScore(o,a,c,u,p){this.fireTrack(i.Event.getAuditScore,{clicked:o,tenant:a,report_month:c,controller_name:u,report_timestamp:p})}trackAuditScorePercentage(o,a,c,u,p,_,m,g){this.fireTrack(i.Event.auditScorePercentage,{report_timestamp:o,report_month:a,score_percentage:c,issue_type:p,tenant:u,controller_name:m,customer_group:g,no_of_issues:_})}trackAuditIssuesClicked(o,a,c,u){this.fireTrack(i.Event.auditIssuesClicked,{clicked_issue:o,tenant:a,controller_name:c,created_at:u})}trackZeniAssistClick(o,a,c,u,p){this.fireTrack(i.Event.zeniAssistClick,{bill_stage:a,bill_status:o,bill_type:u,error_description:c,invoice_number:p})}trackRetryClick(o,a,c,u,p){this.fireTrack(i.Event.retryClick,{bill_stage:a,bill_status:o,bill_type:u,error_description:c,invoice_number:p})}trackRetryConfirmClick(o,a,c,u,p){this.fireTrack(i.Event.retryConfirmClick,{bill_stage:a,bill_status:o,bill_type:u,error_description:c,invoice_number:p})}trackRefundClick(o,a,c,u,p){this.fireTrack(i.Event.refundClick,{bill_stage:a,bill_status:o,bill_type:u,error_description:c,invoice_number:p})}trackRefundConfirmClick(o,a,c,u,p){this.fireTrack(i.Event.refundConfirmClick,{bill_stage:a,bill_status:o,bill_type:u,error_description:c,invoice_number:p})}trackVendor1099DetailSave(o){this.fireTrack(i.Event.vendor1099DetailsSave,{vendor_legal_name:o})}trackVendor1099ReportDownload(o){this.fireTrack(i.Event.vendor1099ReportDownload,{report:o.includes("All")?"All":o.toUpperCase()})}trackEnableIntlWire(o){this.fireTrack(i.Event.enableIntlWire,{local_currency_enabled:o})}trackSubmitIntlWire(o){this.fireTrack(i.Event.submitIntlWire,{local_currency_enabled:o})}trackIntlWirePaymentSelect(o,a,c,u,p){this.fireTrack(i.Event.intlWirePaymentMethod,{bill_stage:o,bill_status:a,bill_type:c,invoice_number:u,local_currency_enabled:p})}trackMonthEndCloseClicked(o,a,c){this.fireTrack(i.Event.monthCloseClicked,{month_year:`${o}-${a}`,source:c})}trackMonthCloseAuditPage(o,a,c,u,p,_){this.fireTrack(i.Event.monthCloseAuditPage,{month_year:`${o}-${a}`,audit_score:u,refresh_clicked:p,status:c,source:_})}trackTransactionsReviewPage(o,a,c,u,p,_){this.fireTrack(i.Event.transactionsReview,{month_year:`${o}-${a}`,refresh_clicked:p,number_of_transactions:c,transaction_updates:u,source:_})}trackTransactionsAutoCategorisedPage(o,a,c,u,p,_){this.fireTrack(i.Event.transactionsAutoCategorised,{month_year:`${o}-${a}`,refresh_clicked:p,number_of_transactions:c,transaction_updates:u,source:_})}trackAiCloseTransactionSearch({filtersApplied:o,hasResults:a,isFiltered:c,resultsCount:u,searchTerm:p,searchType:_}){this.fireTrack(i.Event.aiCloseTransactionSearch,{filters_applied:o,has_results:a,is_filtered:c,results_count:u,search_term:p,search_type:_,section:"ai_close",tab:"transactions"})}trackMonthCloseScheduleListPage(o,a,c,u,p,_,m,g){this.fireTrack(i.Event.monthCloseScheduleList,{month_year:`${o}-${a}`,refresh_clicked:c,number_of_recommendations:u,failed_postings:p,number_of_prepaid:_.prepaidCount,number_of_fixed_assets:_.fixedAssetsCount,number_of_accrued:_.accruedCount,number_of_one_time_accruals:_.oneTimeAccrualCount,tab_name:m,source:g})}trackFluxAnalysisPage(o,a,c,u,p){this.fireTrack(i.Event.fluxAnalysis,{month_year:`${o}-${a}`,refresh_clicked:c,open_items:u,source:p})}trackFluxAnalysisReviewed(o,a,c,u){this.fireTrack(i.Event.fluxAnalysisReviewed,{month_year:`${o}-${a}`,number_of_items_reviewed:u.length,is_bulk_update:c})}trackMissingReceiptsPage(o,a,c,u,p){this.fireTrack(i.Event.missingReceipts,{month_year:`${o}-${a}`,number_of_transactions:u,refresh_clicked:c,source:p})}trackMissingReceiptAttached(o,a){this.fireTrack(i.Event.missingReceipts,{month_year:`${o}-${a}`,is_attached:!0})}trackInsightsEmailPage(o,a,c,u,p,_,m){this.fireTrack(i.Event.insightsEmail,{month_year:`${o}-${a}`,refresh_clicked:c,email_status:u,audit_score:p,date:_,source:m})}trackMonthEndEmailSentFromCockpit(o,a,c){this.fireTrack(i.Event.monthEndEmailSentFromCockpit,{month_year:`${o}-${a}`,recipient_count:c})}trackCommentAdded(o,a,c,u,p,_){this.fireTrack(i.Event.commentAdded,{page_name:o,commented_on:a,comment_type:c,tenant:u,controller_name:p,created_by:_})}trackCommentActivity(o,a,c,u,p,_,m){this.fireTrack(i.Event.commentActivity,{page_name:o,comment_activity_type:a,tenant:c,controller_name:u,status:p,created_by:_,comment_activity_source:m})}trackSendMoneyClick(){this.fireTrack(i.Event.sendMoneyClick)}trackExpressPayNextClick(o){this.fireTrack(i.Event.expressPayNextClick,{stage:o})}trackExpressPayScheduleClick(){this.fireTrack(i.Event.expressPayScheduleClick)}trackLowBalanceAccountSelected(o,a,c,u,p,_){this.fireTrack(i.Event.lowBalanceAccountSelected,{bill_stage:o,bill_status:a,bill_type:c,invoice_number:u,user_name:p,account_type:_})}trackLowBalanceAccountSentForApproval(o,a,c,u,p,_){this.fireTrack(i.Event.lowBalanceAccountSentForApproval,{bill_stage:o,bill_status:a,bill_type:c,invoice_number:u,user_name:p,account_type:_})}trackLowBalanceAccountApprove(o,a,c,u,p,_){this.fireTrack(i.Event.lowBalanceAccountApprove,{bill_stage:o,bill_status:a,bill_type:c,invoice_number:u,user_name:p,account_type:_})}trackLowBalanceAccountReject(o,a,c,u,p,_){this.fireTrack(i.Event.lowBalanceAccountReject,{bill_stage:o,bill_status:a,bill_type:c,invoice_number:u,user_name:p,account_type:_})}trackLowBalanceAccountChange(o,a,c,u,p,_){this.fireTrack(i.Event.lowBalanceAccountChange,{bill_stage:o,bill_status:a,bill_type:c,invoice_number:u,user_name:p,account_type:_})}trackLowBalanceAccountSchedule(o,a,c,u,p,_){this.fireTrack(i.Event.lowBalanceAccountSchedule,{bill_stage:o,bill_status:a,bill_type:c,invoice_number:u,user_name:p,account_type:_})}trackVendorOperatingExpenses(o,a){this.fireTrack(i.Event.vendorOperatingExpenses,{current_tab:o,previous_tab:a})}trackVendorOperatingExpensesPageLoaded(o){this.fireTrack(i.Event.vendorOperatingExpensesPageLoaded,{source:o})}trackAICFOChatScreenStateChanged(o,a,c,u){this.fireTrack(i.Event.aiCFOChatScreenStateChanged,{action:o,chat_source:a,chat_session_id:c,chat_session_title:u})}trackAICFOChatSessionChanged(o,a,c,u){this.fireTrack(i.Event.aiCFOChatSessionChanged,{action:o,chat_source:a,chat_session_id:c,chat_session_title:u})}trackAICFOChatSubmitted(o,a,c,u,p,_){this.fireTrack(i.Event.aiCFOChatSubmitted,{question_text:o,chat_source:a,chat_session_id:c,chat_message_id:p,chat_session_title:u,index:_})}trackAICFOChatFeedbackGiven(o,a,c,u,p){this.fireTrack(i.Event.aiCFOChatFeedbackGiven,{feedback_type:o,question_text:a,chat_session_id:c,chat_message_id:p,chat_session_title:u})}trackAICFOChatResponseGenerated(o,a,c,u,p,_){this.fireTrack(i.Event.aiCFOChatResponseGenerated,{response_type:o,question_text:a,response_text:c,chat_session_id:u,chat_message_id:_,chat_session_title:p})}trackAICFOChatAnswerGenerated(o,a,c,u,p,_,m,g,v,y){this.fireTrack(i.Event.aiCFOChatAnswerGenerated,{has_visualization:_,visualization_type:m,has_follow_up_questions:c,has_assumptions:u,response_text:o,has_insights:p,question_text:a,chat_session_id:g,chat_message_id:y,chat_session_title:v})}trackAICFOOnboardingScreenStateChanged(o,a){this.fireTrack(i.Event.aiCFOOnboardingScreenStateChanged,{action:o,ai_cfo_onboarding_source:a})}trackAICFOPrivacyPolicy(){this.fireTrack(i.Event.aiCFOPrivacyPolicy)}trackAICFOAgreement(){this.fireTrack(i.Event.aiCFOAgreement)}trackTreasuryNavPromoClick(o){this.fireTrack(i.Event.treasuryNavPromoClick,{clicked_on:o})}trackTreasuryPromoView(o){this.fireTrack(i.Event.treasuryPromoView,{page_name:o})}trackTreasurySetupActionClick(o){this.fireTrack(i.Event.treasurySetupActionClick,{action_type:o})}trackTreasuryProspectusClick(o,a,c){this.fireTrack(i.Event.treasuryProspectusClick,{fund_name:o,fund_ticker:a,page_name:c})}trackTreasuryCalculatorClick(o,a){this.fireTrack(i.Event.treasuryCalculatorClick,{page_name:o,amount:a})}trackTreasuryAgreementView(){this.fireTrack(i.Event.treasuryAgreementView)}trackTreasuryAllocationAction(o,a){this.fireTrack(i.Event.treasuryAllocationAction,{action_type:o,fund_percentage:a})}trackTreasuryRiskAction(o,a,c){this.fireTrack(i.Event.treasuryRiskAction,{action_type:o,risk_score:a,fund_percentage:c})}trackTreasuryVerificationNavigation(o,a){this.fireTrack(i.Event.treasuryVerificationNavigation,{clicked_on:o,verification_status:a})}trackTreasuryTransferAction(o,a,c,u,p,_){this.fireTrack(i.Event.treasuryTransferAction,{clicked_on:o,from_account:a,to_account:c,amount:u,fund_percentage:p,page_name:_})}trackTreasuryDashboardInteraction(o){this.fireTrack(i.Event.treasuryDashboardInteraction,{clicked_on:o})}trackTreasuryPortfolioConfirm(o,a){this.fireTrack(i.Event.treasuryPortfolioConfirm,{risk_score:o,fund_percentage:a})}trackTreasuryPromoCards(o){this.fireTrack(i.Event.treasuryPromoCards,{card_clicked:o})}trackTreasuryPromoVideo(o){this.fireTrack(i.Event.treasuryPromoVideo,{page_name:o})}trackInvoicingActionClick(o,a){this.fireTrack(o,{invoicing_invoice_id:a?.invoiceId,invoicing_customer_id:a?.customerId,invoicing_subscription_id:a?.subscriptionId,invoicing_transaction_id:a?.transactionId,invoicing_coupon_id:a?.couponId,invoicing_credit_note_id:a?.creditNoteId,invoicing_case_id:a?.caseId,invoicing_item_id:a?.itemId,invoicing_session_id:a?.sessionId,invoicing_entity_id:a?.entityId,invoicing_action:a?.action,invoicing_mode:a?.mode,invoicing_status:a?.status,invoicing_item_type:a?.itemType,invoicing_entity:a?.entity,invoicing_tab:a?.tab,invoicing_payment_method:a?.paymentMethod,invoicing_amount:a?.amount,invoicing_line_item_count:a?.lineItemCount,invoicing_linked_invoice_count:a?.linkedInvoiceCount,invoicing_is_recurring:a?.isRecurring,invoicing_fields_changed:a?.fieldsChanged,invoicing_from_screen:a?.fromScreen,invoicing_to_screen:a?.toScreen})}trackTransactionCotView({recommendationFor:o,currentValue:a,recommendation:c,recommendationCot:u,isRecommendationCotAvailable:p,recommendationReason:_,recommendationConfidenceLevel:m,alternativeRecommendation:g,alternativeRecommendationCot:v,isAlternativeRecommendationCotAvailable:y,alternativeRecommendationReason:k,alternativeRecommendationConfidenceLevel:E,transactionPage:w,transactionCurrentStatus:C,recommendationConfidencePercentage:P,alternativeRecommendationConfidencePercentage:D,transactionId:b,lineId:T}){this.fireTrack(i.Event.transactionCotView,{recommendation_for:o,current_value:a,recommendation:c,recommendation_cot:u,is_recommendation_cot_available:p,recommendation_reason:_,recommendation_confidence_percentage:P,recommendation_confidence_level:m,alternative_recommendation:g,alternative_recommendation_cot:v,is_alternative_recommendation_cot_available:y,alternative_recommendation_reason:k,alternative_recommendation_confidence_percentage:D,alternative_recommendation_confidence_level:E,transaction_page:w,transaction_current_status:C,...s(b,T)})}trackTransactionCotDropdownView({recommendationType:o,recommendationFor:a,currentValue:c,recommendation:u,recommendationCot:p,isRecommendationCotAvailable:_,recommendationReason:m,recommendationConfidenceLevel:g,transactionPage:v,transactionCurrentStatus:y,recommendationConfidencePercentage:k,transactionId:E,lineId:w}){this.fireTrack(i.Event.transactionCotDropdownView,{recommendation_type:o,recommendation_for:a,current_value:c,recommendation:u,recommendation_cot:p,is_recommendation_cot_available:_,recommendation_reason:m,recommendation_confidence_percentage:k,recommendation_confidence_level:g,transaction_current_status:y,transaction_page:v,...s(E,w)})}trackTransactionCotViewAlternative({alternativeRecommendationFor:o,alternativeRecommendation:a,alternativeRecommendationCot:c,isAlternativeRecommendationCotAvailable:u,alternativeRecommendationReason:p,alternativeRecommendationConfidenceLevel:_,transactionPage:m,transactionCurrentStatus:g,alternativeRecommendationConfidencePercentage:v,transactionId:y,lineId:k}){this.fireTrack(i.Event.transactionCotViewAlternative,{alternative_recommendation_for:o,alternative_recommendation:a,alternative_recommendation_cot:c,is_alternative_recommendation_cot_available:u,alternative_recommendation_reason:p,alternative_recommendation_confidence_percentage:v,alternative_recommendation_confidence_level:_,transaction_current_status:g,transaction_page:m,...s(y,k)})}trackTransactionCotViewRecommended({recommendationFor:o,currentValue:a,recommendation:c,recommendationCot:u,isRecommendationCotAvailable:p,recommendationReason:_,recommendationConfidenceLevel:m,recommendationConfidencePercentage:g,transactionId:v,lineId:y}){this.fireTrack(i.Event.transactionCotViewRecommended,{recommendation_for:o,current_value:a,recommendation:c,recommendation_cot:u,is_recommendation_cot_available:p,recommendation_reason:_,recommendation_confidence_percentage:g,recommendation_confidence_level:m,...s(v,y)})}trackRecommendationAccepted(o){this.fireTrack(i.Event.recommendationAccepted,l(o))}trackRecommendationFeedbackSubmitted({feedbackReason:o,...a}){this.fireTrack(i.Event.recommendationFeedbackSubmitted,{...l(a),feedback_reason:o})}trackRecommendationFeedbackSkipped(o){this.fireTrack(i.Event.recommendationFeedbackSkipped,l(o))}trackRecommendationFeedbackRetracted(o){this.fireTrack(i.Event.recommendationFeedbackRetracted,l(o))}trackAIPerfHome(o){this.fireTrack(i.Event.aiPerfHome,{perf_snapshot:o})}trackAIPerfRefresh(o){this.fireTrack(i.Event.aiPerfRefresh,{perf_snapshot:o})}trackAIPerfTimePeriodSelect(o){this.fireTrack(i.Event.aiPerfTimePeriodSelect,{perf_snapshot:o})}trackAutoTransferRuleIconClick(o){this.fireTrack(i.Event.autoTransferRuleIconClick,{page_name:o})}trackAutoTransferRuleClick(o){this.fireTrack(i.Event.autoTransferRuleClick,{rule_name:o})}trackAutoTransferRuleReviewClick(o,a,c,u,p){this.fireTrack(i.Event.autoTransferRuleReviewClick,{rule_name:o,amount:a,withdrawal_bank:c,deposit_bank:u,frequency:p})}trackAutoTransferRuleCreateClick(o,a,c,u,p){this.fireTrack(i.Event.autoTransferRuleCreateClick,{rule_name:o,amount:a,withdrawal_bank:c,deposit_bank:u,frequency:p})}trackAutoTransferRuleMoreClick(o,a,c,u,p){this.fireTrack(i.Event.autoTransferRuleMoreClick,{rule_name:o,amount:a,withdrawal_bank:c,deposit_bank:u,frequency:p})}trackAutoTransferRuleActionClick(o,a,c,u,p,_){this.fireTrack(i.Event.autoTransferRuleActionClick,{rule_name:o,action_clicked:a,amount:c,withdrawal_bank:u,deposit_bank:p,frequency:_})}trackAutoTransferRuleActionConfirm(o,a,c,u,p,_,m){this.fireTrack(i.Event.autoTransferRuleActionConfirm,{rule_name:o,action_clicked:a,amount:c,withdrawal_bank:u,deposit_bank:p,frequency:_,update_log:m})}trackAutoTransferRuleActionCancel(o,a,c,u,p,_){this.fireTrack(i.Event.autoTransferRuleActionCancel,{rule_name:o,action_clicked:a,amount:c,withdrawal_bank:u,deposit_bank:p,frequency:_})}fireTrack(o,a){if(i.EVENTS_WITHOUT_SUPER_PROPERTIES.has(o)===!0)return void this.provider.track(o,a);const c=Object.assign({},this.superProperties,a);this.provider.track(o,c)}}return Tr.Analytics=d,Tr})();Object.defineProperty(t,"Analytics",{enumerable:!0,get:function(){return r.Analytics}});const e=cs();Object.defineProperty(t,"EVENTS_WITHOUT_SUPER_PROPERTIES",{enumerable:!0,get:function(){return e.EVENTS_WITHOUT_SUPER_PROPERTIES}}),Object.defineProperty(t,"Event",{enumerable:!0,get:function(){return e.Event}});const n=(ls||(ls=1,Object.defineProperty(Ui,"__esModule",{value:!0}),Ui.extractUtmParamsFromUrl=function(i){if(i==null&&typeof window>"u")return{};const s=i??new URLSearchParams(window.location.search),l={};for(const[d,h]of s.entries())d.startsWith("utm_")&&(l[d]=h);return l}),Ui);Object.defineProperty(t,"extractUtmParamsFromUrl",{enumerable:!0,get:function(){return n.extractUtmParamsFromUrl}})})(ss)),ss}var R,di={};if(typeof window>"u"){var ds={hostname:""};R={crypto:{randomUUID:function(){throw Error("unsupported")}},navigator:{userAgent:"",onLine:!0},document:{createElement:function(){return{}},location:ds,referrer:""},screen:{width:0,height:0},location:ds,addEventListener:function(){},removeEventListener:function(){},dispatchEvent:function(){},CustomEvent:function(){}}}else R=window;function hs(t,r){(r==null||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}function ps(t,r,e,n,i,s,l){try{var d=t[s](l),h=d.value}catch(o){return void e(o)}d.done?r(h):Promise.resolve(h).then(n,i)}function Ca(t){return function(){var r=this,e=arguments;return new Promise((function(n,i){var s=t.apply(r,e);function l(h){ps(s,n,i,l,d,"next",h)}function d(h){ps(s,n,i,l,d,"throw",h)}l(void 0)}))}}function dl(t,r,e){return(dl=pl()?Reflect.construct:function(n,i,s){var l=[null];l.push.apply(l,i);var d=new(Function.bind.apply(n,l));return s&&Si(d,s.prototype),d}).apply(null,arguments)}function Ue(t,r,e){return r&&(function(n,i){for(var s=0;s<i.length;s++){var l=i[s];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(n,l.key,l)}})(t.prototype,r),t}function pe(){return pe=Object.assign||function(t){for(var r=1;r<arguments.length;r++){var e=arguments[r];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}return t},pe.apply(this,arguments)}function hl(t){return(hl=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)})(t)}function $e(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),r&&Si(t,r)}function J(t,r){return r!=null&&typeof Symbol<"u"&&r[Symbol.hasInstance]?!!r[Symbol.hasInstance](t):t instanceof r}function Yr(t,r){if(t==null)return{};var e,n,i={},s=Object.keys(t);for(n=0;n<s.length;n++)e=s[n],r.indexOf(e)>=0||(i[e]=t[e]);return i}function Si(t,r){return(Si=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(t,r)}function ie(t){return t&&typeof Symbol<"u"&&t.constructor===Symbol?"symbol":typeof t}function hi(t){var r=typeof Map=="function"?new Map:void 0;return hi=function(e){if(e===null||(n=e,Function.toString.call(n).indexOf("[native code]")===-1))return e;var n;if(typeof e!="function")throw new TypeError("Super expression must either be null or a function");if(r!==void 0){if(r.has(e))return r.get(e);r.set(e,i)}function i(){return dl(e,arguments,hl(this).constructor)}return i.prototype=Object.create(e.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Si(i,e)},hi(t)}function pl(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch{}return(pl=function(){return!!t})()}function V(t,r){var e=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(e)return(e=e.call(t)).next.bind(e);if(Array.isArray(t)||(e=(function(i,s){if(i){if(typeof i=="string")return hs(i,s);var l=Object.prototype.toString.call(i).slice(8,-1);return l==="Object"&&i.constructor&&(l=i.constructor.name),l==="Map"||l==="Set"?Array.from(l):l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l)?hs(i,s):void 0}})(t))||r){e&&(t=e);var n=0;return function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Xr(t,r){var e,n,i,s,l={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return s={next:d(0),throw:d(1),return:d(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function d(h){return function(o){return(function(a){if(e)throw new TypeError("Generator is already executing.");for(;l;)try{if(e=1,n&&(i=2&a[0]?n.return:a[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,a[1])).done)return i;switch(n=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return l.label++,{value:a[1],done:!1};case 5:l.label++,n=a[1],a=[0];continue;case 7:a=l.ops.pop(),l.trys.pop();continue;default:if(i=l.trys,!((i=i.length>0&&i[i.length-1])||a[0]!==6&&a[0]!==2)){l=0;continue}if(a[0]===3&&(!i||a[1]>i[0]&&a[1]<i[3])){l.label=a[1];break}if(a[0]===6&&l.label<i[1]){l.label=i[1],i=a;break}if(i&&l.label<i[2]){l.label=i[2],l.ops.push(a);break}i[2]&&l.ops.pop(),l.trys.pop();continue}a=r.call(t,l)}catch(c){a=[6,c],n=0}finally{e=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}})([h,o])}}}function fl(t){var r=typeof Symbol=="function"&&Symbol.iterator,e=r&&t[r],n=0;if(e)return e.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")}var fs,Nd=Object.defineProperty,N=function(t,r,e){return(function(n,i,s){return i in n?Nd(n,i,{enumerable:!0,configurable:!0,writable:!0,value:s}):n[i]=s})(t,(r===void 0?"undefined":ie(r))!=="symbol"?r+"":r,e)},Fd=Object.defineProperty,ms=function(t,r,e){return(function(n,i,s){return i in n?Fd(n,i,{enumerable:!0,configurable:!0,writable:!0,value:s}):n[i]=s})(t,(r===void 0?"undefined":ie(r))!=="symbol"?r+"":r,e)},Fe=(function(t){return t[t.Document=0]="Document",t[t.DocumentType=1]="DocumentType",t[t.Element=2]="Element",t[t.Text=3]="Text",t[t.CDATA=4]="CDATA",t[t.Comment=5]="Comment",t})(Fe||{}),_s={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},gs={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},hn={};function wa(t){if(hn[t])return hn[t];var r=globalThis[t],e=r.prototype,n=t in _s?_s[t]:void 0,i=!!(n&&n.every((function(a){var c,u;return!!((u=(c=Object.getOwnPropertyDescriptor(e,a))==null?void 0:c.get)!=null&&u.toString().includes("[native code]"))}))),s=t in gs?gs[t]:void 0,l=!!(s&&s.every((function(a){var c;return typeof e[a]=="function"&&((c=e[a])==null?void 0:c.toString().includes("[native code]"))})));if(i&&l&&!globalThis.Zone)return hn[t]=r.prototype,r.prototype;try{var d=document.createElement("iframe");document.body.appendChild(d);var h=d.contentWindow;if(!h)return r.prototype;var o=h[t].prototype;return document.body.removeChild(d),o?hn[t]=o:e}catch{return e}}var ji={};function Ot(t,r,e){var n,i=t+"."+String(e);if(ji[i])return ji[i].call(r);var s=wa(t),l=(n=Object.getOwnPropertyDescriptor(s,e))==null?void 0:n.get;return l?(ji[i]=l,l.call(r)):r[e]}var qi={};function vs(t,r,e){var n=t+"."+String(e);if(qi[n])return qi[n].bind(r);var i=wa(t)[e];return typeof i!="function"?r[e]:(qi[n]=i,i.bind(r))}var Ge={childNodes:function(t){return Ot("Node",t,"childNodes")},parentNode:function(t){return Ot("Node",t,"parentNode")},parentElement:function(t){return Ot("Node",t,"parentElement")},textContent:function(t){return Ot("Node",t,"textContent")},contains:function(t,r){return vs("Node",t,"contains")(r)},getRootNode:function(t){return vs("Node",t,"getRootNode")()},host:function(t){return t&&"host"in t?Ot("ShadowRoot",t,"host"):null},styleSheets:function(t){return t.styleSheets},shadowRoot:function(t){return t&&"shadowRoot"in t?Ot("Element",t,"shadowRoot"):null},querySelector:function(t,r){return Ot("Element",t,"querySelector")(r)},querySelectorAll:function(t,r){return Ot("Element",t,"querySelectorAll")(r)},mutationObserver:function(){return wa("MutationObserver").constructor},patch:function(t,r,e){try{if(!(r in t))return function(){};var n=t[r],i=e(n);return typeof i=="function"&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:n}})),t[r]=i,function(){t[r]=n}}catch{return function(){}}}};function ml(t){return t.nodeType===t.ELEMENT_NODE}function Wr(t){var r=t&&"host"in t&&"mode"in t&&Ge.host(t)||null;return!!(r&&"shadowRoot"in r&&Ge.shadowRoot(r)===t)}function Gr(t){return Object.prototype.toString.call(t)==="[object ShadowRoot]"}function _o(t){try{var r=t.rules||t.cssRules;if(!r)return null;var e=t.href;!e&&t.ownerNode&&t.ownerNode.ownerDocument&&(e=t.ownerNode.ownerDocument.location.href);var n=Array.from(r,(function(s){return _l(s,e)})).join("");return(i=n).includes(" background-clip: text;")&&!i.includes(" -webkit-background-clip: text;")&&(i=i.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),i}catch{return null}var i}function _l(t,r){if((function(s){return"styleSheet"in s})(t)){var e;try{e=_o(t.styleSheet)||(function(s){var l=s.cssText;if(l.split('"').length<3)return l;var d=["@import","url("+JSON.stringify(s.href)+")"];return s.layerName===""?d.push("layer"):s.layerName&&d.push("layer("+s.layerName+")"),s.supportsText&&d.push("supports("+s.supportsText+")"),s.media.length&&d.push(s.media.mediaText),d.join(" ")+";"})(t)}catch{e=t.cssText}return t.styleSheet.href?mi(e,t.styleSheet.href):e}var n,i=t.cssText;return(function(s){return"selectorText"in s})(t)&&t.selectorText.includes(":")&&(n=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,i=i.replace(n,"$1\\$2")),r?mi(i,r):i}var gl=(function(){function t(){ms(this,"idNodeMap",new Map),ms(this,"nodeMetaMap",new WeakMap)}var r=t.prototype;return r.getId=function(e){var n;if(!e)return-1;var i=(n=this.getMeta(e))==null?void 0:n.id;return i??-1},r.getNode=function(e){return this.idNodeMap.get(e)||null},r.getIds=function(){return Array.from(this.idNodeMap.keys())},r.getMeta=function(e){return this.nodeMetaMap.get(e)||null},r.removeNodeFromMap=function(e){var n=this,i=this.getId(e);this.idNodeMap.delete(i),e.childNodes&&e.childNodes.forEach((function(s){return n.removeNodeFromMap(s)}))},r.has=function(e){return this.idNodeMap.has(e)},r.hasNode=function(e){return this.nodeMetaMap.has(e)},r.add=function(e,n){var i=n.id;this.idNodeMap.set(i,e),this.nodeMetaMap.set(e,n)},r.replace=function(e,n){var i=this.getNode(e);if(i){var s=this.nodeMetaMap.get(i);s&&this.nodeMetaMap.set(n,s)}this.idNodeMap.set(e,n)},r.reset=function(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap},t})();function pi(t){var r=t.element,e=t.maskInputOptions,n=t.tagName,i=t.type,s=t.value,l=t.maskInputFn,d=s||"",h=i&&Yt(i);return(e[n.toLowerCase()]||h&&e[h])&&(d=l?l(d,r):"*".repeat(d.length)),d}function Yt(t){return t.toLowerCase()}var ys="__rrweb_original__";function fi(t){var r=t.type;return t.hasAttribute("data-rr-is-password")?"password":r?Yt(r):null}function bs(t,r){var e;try{e=new URL(t,r??window.location.href)}catch{return null}var n,i=e.pathname.match(/\.([0-9a-z]+)(?:$)/i);return(n=i?.[1])!=null?n:null}var Vd=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Ud=/^(?:[a-z+]+:)?\/\//i,jd=/^www\..*/i,qd=/^(data:)([^,]*),(.*)/i;function mi(t,r){return(t||"").replace(Vd,(function(e,n,i,s,l,d){var h,o=i||l||d,a=n||s||"";if(!o)return e;if(Ud.test(o)||jd.test(o)||qd.test(o))return"url("+a+o+a+")";if(o[0]==="/")return"url("+a+(((h=r).indexOf("//")>-1?h.split("/").slice(0,3).join("/"):h.split("/")[0]).split("?")[0]+o)+a+")";var c=r.split("/"),u=o.split("/");c.pop();for(var p,_=V(u);!(p=_()).done;){var m=p.value;m!=="."&&(m===".."?c.pop():c.push(m))}return"url("+a+c.join("/")+a+")"}))}function pn(t,r){return r===void 0&&(r=!1),r?t.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):t.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}function zd(t,r){return(function(e,n,i){i===void 0&&(i=!1);var s=Array.from(n.childNodes),l=[],d=0;if(s.length>1&&e&&typeof e=="string"){for(var h=pn(e,i),o=h.length/e.length,a=1;a<s.length;a++)if(s[a].textContent&&typeof s[a].textContent=="string"){for(var c=pn(s[a].textContent,i),u=3;u<c.length&&(c[u].match(/[a-zA-Z0-9]/)||c.indexOf(c.substring(0,u),1)!==-1);u++);for(;u<c.length;u++){var p=c.substring(0,u),_=h.split(p),m=-1;if(_.length===2)m=_[0].length;else if(_.length>2&&_[0]===""&&s[a-1].textContent!=="")m=h.indexOf(p,1);else if(_.length===1){if(p=p.substring(0,p.length-1),(_=h.split(p)).length<=1)return l.push(e),l;u=101}else u===c.length-1&&(m=h.indexOf(p));if(_.length>=2&&u>100){var g=s[a-1].textContent;if(g&&typeof g=="string"){var v=pn(g).length;m=h.indexOf(p,v)}m===-1&&(m=_[0].length)}if(m!==-1){for(var y=Math.floor(m/o);y>0&&y<e.length;){if((d+=1)>50*s.length)return l.push(e),l;var k=pn(e.substring(0,y),i);if(k.length===m){l.push(e.substring(0,y)),e=e.substring(y),h=h.substring(m);break}k.length<m?y+=Math.max(1,Math.floor((m-k.length)/o)):y-=Math.max(1,Math.floor((k.length-m)*o))}break}}}}return l.push(e),l})(t,r).join("/* rr_split */")}var or,ks,Wd=1,Gd=new RegExp("[^a-z0-9-_:]");function vl(){return Wd++}var $d=/^[^ \t\n\r\u000c]+/,Hd=/^[, \t\n\r\u000c]+/,Cs=new WeakMap;function Pr(t,r){return r&&r.trim()!==""?Sa(t,r):r}function Zd(t){return!!(t.tagName==="svg"||t.ownerSVGElement)}function Sa(t,r){var e=Cs.get(t);if(e||(e=t.createElement("a"),Cs.set(t,e)),r){if(r.startsWith("blob:")||r.startsWith("data:"))return r}else r="";return e.setAttribute("href",r),e.href}function yl(t,r,e,n){return n&&(e==="src"||e==="href"&&(r!=="use"||n[0]!=="#")||e==="xlink:href"&&n[0]!=="#"?Pr(t,n):e!=="background"||r!=="table"&&r!=="td"&&r!=="th"?e==="srcset"?(function(i,s){if(s.trim()==="")return s;var l=0;function d(p){var _,m=p.exec(s.substring(l));return m?(_=m[0],l+=_.length,_):""}for(var h=[];d(Hd),!(l>=s.length);){var o=d($d);if(o.slice(-1)===",")o=Pr(i,o.substring(0,o.length-1)),h.push(o);else{var a="";o=Pr(i,o);for(var c=!1;;){var u=s.charAt(l);if(u===""){h.push((o+a).trim());break}if(c)u===")"&&(c=!1);else{if(u===","){l+=1,h.push((o+a).trim());break}u==="("&&(c=!0)}a+=u,l+=1}}}return h.join(", ")})(t,n):e==="style"?mi(n,Sa(t)):r==="object"&&e==="data"?Pr(t,n):n:Pr(t,n))}function bl(t,r,e){return(t==="video"||t==="audio")&&r==="autoplay"}function _i(t,r,e){if(!t)return!1;if(t.nodeType!==t.ELEMENT_NODE)return!!e&&_i(Ge.parentNode(t),r,e);for(var n=t.classList.length;n--;){var i=t.classList[n];if(r.test(i))return!0}return!!e&&_i(Ge.parentNode(t),r,e)}function kl(t,r,e,n){var i;if(ml(t)){if(i=t,!Ge.childNodes(i).length)return!1}else{if(Ge.parentElement(t)===null)return!1;i=Ge.parentElement(t)}try{if(typeof r=="string"){if(n){if(i.closest("."+r))return!0}else if(i.classList.contains(r))return!0}else if(_i(i,r,n))return!0;if(e){if(n){if(i.closest(e))return!0}else if(i.matches(e))return!0}}catch{}return!1}function Jd(t,r){var e=r.doc,n=r.mirror,i=r.blockClass,s=r.blockSelector,l=r.needsMask,d=r.inlineStylesheet,h=r.maskInputOptions,o=h===void 0?{}:h,a=r.maskTextFn,c=r.maskInputFn,u=r.dataURLOptions,p=u===void 0?{}:u,_=r.inlineImages,m=r.recordCanvas,g=r.keepIframeSrcFn,v=r.newlyAddedElement,y=v!==void 0&&v,k=r.cssCaptured,E=k!==void 0&&k,w=(function(C,P){if(P.hasNode(C)){var D=P.getId(C);return D===1?void 0:D}})(e,n);switch(t.nodeType){case t.DOCUMENT_NODE:return t.compatMode!=="CSS1Compat"?{type:Fe.Document,childNodes:[],compatMode:t.compatMode}:{type:Fe.Document,childNodes:[]};case t.DOCUMENT_TYPE_NODE:return{type:Fe.DocumentType,name:t.name,publicId:t.publicId,systemId:t.systemId,rootId:w};case t.ELEMENT_NODE:return(function(C,P){for(var D,b=P.doc,T=P.blockClass,x=P.blockSelector,L=P.inlineStylesheet,U=P.maskInputOptions,M=U===void 0?{}:U,q=P.maskInputFn,W=P.dataURLOptions,j=W===void 0?{}:W,re=P.inlineImages,K=P.recordCanvas,H=P.keepIframeSrcFn,z=P.newlyAddedElement,$=z!==void 0&&z,G=P.rootId,O=(function(Ie,Ve,Ye){try{if(typeof Ve=="string"){if(Ie.classList.contains(Ve))return!0}else for(var bt=Ie.classList.length;bt--;){var xt=Ie.classList[bt];if(Ve.test(xt))return!0}if(Ye)return Ie.matches(Ye)}catch{}return!1})(C,T,x),A=(function(Ie){if(J(Ie,HTMLFormElement))return"form";var Ve=Yt(Ie.tagName);return Gd.test(Ve)?"div":Ve})(C),I={},F=C.attributes.length,oe=0;oe<F;oe++){var te=C.attributes[oe];bl(A,te.name,te.value)||(I[te.name]=yl(b,A,Yt(te.name),te.value))}if(A==="link"&&L){var Ae=Array.from(b.styleSheets).find((function(Ie){return Ie.href===C.href})),Re=null;Ae&&(Re=_o(Ae)),Re&&(delete I.rel,delete I.href,I._cssText=Re)}if(A==="style"&&C.sheet){var He=_o(C.sheet);He&&(C.childNodes.length>1&&(He=zd(He,C)),I._cssText=He)}if(A==="input"||A==="textarea"||A==="select"){var et=C.value,Ze=C.checked;I.type!=="radio"&&I.type!=="checkbox"&&I.type!=="submit"&&I.type!=="button"&&et?I.value=pi({element:C,type:fi(C),tagName:A,value:et,maskInputOptions:M,maskInputFn:q}):Ze&&(I.checked=Ze)}if(A==="option"&&(C.selected&&!M.select?I.selected=!0:delete I.selected),A==="dialog"&&C.open&&(I.rr_open_mode=C.matches("dialog:modal")?"modal":"non-modal"),A==="canvas"&&K){if(C.__context==="2d")(function(Ie){var Ve=Ie.getContext("2d");if(!Ve)return!0;for(var Ye=0;Ye<Ie.width;Ye+=50)for(var bt=0;bt<Ie.height;bt+=50){var xt=Ve.getImageData,rr=ys in xt?xt[ys]:xt;if(new Uint32Array(rr.call(Ve,Ye,bt,Math.min(50,Ie.width-Ye),Math.min(50,Ie.height-bt)).data.buffer).some((function(nr){return nr!==0})))return!1}return!0})(C)||(I.rr_dataURL=C.toDataURL(j.type,j.quality));else if(!("__context"in C)){var Je=C.toDataURL(j.type,j.quality),Be=b.createElement("canvas");Be.width=C.width,Be.height=C.height,Je!==Be.toDataURL(j.type,j.quality)&&(I.rr_dataURL=Je)}}if(A==="img"&&re){or||(or=b.createElement("canvas"),ks=or.getContext("2d"));var B=C,ge=B.currentSrc||B.getAttribute("src")||"<unknown-src>",ut=B.crossOrigin,je=function(){B.removeEventListener("load",je);try{or.width=B.naturalWidth,or.height=B.naturalHeight,ks.drawImage(B,0,0),I.rr_dataURL=or.toDataURL(j.type,j.quality)}catch(Ie){if(B.crossOrigin!=="anonymous")return B.crossOrigin="anonymous",void(B.complete&&B.naturalWidth!==0?je():B.addEventListener("load",je));console.warn("Cannot inline img src="+ge+"! Error: "+Ie)}B.crossOrigin==="anonymous"&&(ut?I.crossOrigin=ut:B.removeAttribute("crossorigin"))};B.complete&&B.naturalWidth!==0?je():B.addEventListener("load",je)}if(A==="audio"||A==="video"){var qe=I;qe.rr_mediaState=C.paused?"paused":"played",qe.rr_mediaCurrentTime=C.currentTime,qe.rr_mediaPlaybackRate=C.playbackRate,qe.rr_mediaMuted=C.muted,qe.rr_mediaLoop=C.loop,qe.rr_mediaVolume=C.volume}if($||(C.scrollLeft&&(I.rr_scrollLeft=C.scrollLeft),C.scrollTop&&(I.rr_scrollTop=C.scrollTop)),O){var at=C.getBoundingClientRect(),dt=at.width,tr=at.height;I={class:I.class,rr_width:dt+"px",rr_height:tr+"px"}}A!=="iframe"||H(I.src)||(C.contentDocument||(I.rr_src=I.src),delete I.src);try{customElements.get(A)&&(D=!0)}catch{}return{type:Fe.Element,tagName:A,attributes:I,childNodes:[],isSVG:Zd(C)||void 0,needBlock:O,rootId:G,isCustom:D}})(t,{doc:e,blockClass:i,blockSelector:s,inlineStylesheet:d,maskInputOptions:o,maskInputFn:c,dataURLOptions:p,inlineImages:_,recordCanvas:m,keepIframeSrcFn:g,newlyAddedElement:y,rootId:w});case t.TEXT_NODE:return(function(C,P){var D=P.needsMask,b=P.maskTextFn,T=P.rootId,x=P.cssCaptured,L=Ge.parentNode(C),U=L&&L.tagName,M="",q=U==="STYLE"||void 0,W=U==="SCRIPT"||void 0;return W?M="SCRIPT_PLACEHOLDER":x||(M=Ge.textContent(C),q&&M&&(M=mi(M,Sa(P.doc)))),!q&&!W&&M&&D&&(M=b?b(M,Ge.parentElement(C)):M.replace(/[\S]/g,"*")),{type:Fe.Text,textContent:M||"",rootId:T}})(t,{doc:e,needsMask:l,maskTextFn:a,rootId:w,cssCaptured:E});case t.CDATA_SECTION_NODE:return{type:Fe.CDATA,textContent:"",rootId:w};case t.COMMENT_NODE:return{type:Fe.Comment,textContent:Ge.textContent(t)||"",rootId:w};default:return!1}}function ve(t){return t==null?"":t.toLowerCase()}function yr(t,r){var e=r.doc,n=r.mirror,i=r.blockClass,s=r.blockSelector,l=r.maskTextClass,d=r.maskTextSelector,h=r.skipChild,o=h!==void 0&&h,a=r.inlineStylesheet,c=a===void 0||a,u=r.maskInputOptions,p=u===void 0?{}:u,_=r.maskTextFn,m=r.maskInputFn,g=r.slimDOMOptions,v=r.dataURLOptions,y=v===void 0?{}:v,k=r.inlineImages,E=k!==void 0&&k,w=r.recordCanvas,C=w!==void 0&&w,P=r.onSerialize,D=r.onIframeLoad,b=r.iframeLoadTimeout,T=b===void 0?5e3:b,x=r.onStylesheetLoad,L=r.stylesheetLoadTimeout,U=L===void 0?5e3:L,M=r.keepIframeSrcFn,q=M===void 0?function(){return!1}:M,W=r.newlyAddedElement,j=W!==void 0&&W,re=r.cssCaptured,K=re!==void 0&&re,H=r.needsMask,z=r.preserveWhiteSpace,$=z===void 0||z;H||(H=kl(t,l,d,H===void 0));var G,O=Jd(t,{doc:e,mirror:n,blockClass:i,blockSelector:s,needsMask:H,inlineStylesheet:c,maskInputOptions:p,maskTextFn:_,maskInputFn:m,dataURLOptions:y,inlineImages:E,recordCanvas:C,keepIframeSrcFn:q,newlyAddedElement:j,cssCaptured:K});if(!O)return console.warn(t,"not serialized"),null;G=n.hasNode(t)?n.getId(t):(function(B,ge){return!!(ge.comment&&B.type===Fe.Comment||B.type===Fe.Element&&(ge.script&&(B.tagName==="script"||B.tagName==="link"&&(B.attributes.rel==="preload"&&B.attributes.as==="script"||B.attributes.rel==="modulepreload")||B.tagName==="link"&&B.attributes.rel==="prefetch"&&typeof B.attributes.href=="string"&&bs(B.attributes.href)==="js")||ge.headFavicon&&(B.tagName==="link"&&B.attributes.rel==="shortcut icon"||B.tagName==="meta"&&(ve(B.attributes.name).match(/^msapplication-tile(image|color)$/)||ve(B.attributes.name)==="application-name"||ve(B.attributes.rel)==="icon"||ve(B.attributes.rel)==="apple-touch-icon"||ve(B.attributes.rel)==="shortcut icon"))||B.tagName==="meta"&&(ge.headMetaDescKeywords&&ve(B.attributes.name).match(/^description|keywords$/)||ge.headMetaSocial&&(ve(B.attributes.property).match(/^(og|twitter|fb):/)||ve(B.attributes.name).match(/^(og|twitter):/)||ve(B.attributes.name)==="pinterest")||ge.headMetaRobots&&(ve(B.attributes.name)==="robots"||ve(B.attributes.name)==="googlebot"||ve(B.attributes.name)==="bingbot")||ge.headMetaHttpEquiv&&B.attributes["http-equiv"]!==void 0||ge.headMetaAuthorship&&(ve(B.attributes.name)==="author"||ve(B.attributes.name)==="generator"||ve(B.attributes.name)==="framework"||ve(B.attributes.name)==="publisher"||ve(B.attributes.name)==="progid"||ve(B.attributes.property).match(/^article:/)||ve(B.attributes.property).match(/^product:/))||ge.headMetaVerification&&(ve(B.attributes.name)==="google-site-verification"||ve(B.attributes.name)==="yandex-verification"||ve(B.attributes.name)==="csrf-token"||ve(B.attributes.name)==="p:domain_verify"||ve(B.attributes.name)==="verify-v1"||ve(B.attributes.name)==="verification"||ve(B.attributes.name)==="shopify-checkout-api-token"))))})(O,g)||!$&&O.type===Fe.Text&&!O.textContent.replace(/^\s+|\s+$/gm,"").length?-2:vl();var A=Object.assign(O,{id:G});if(n.add(t,A),G===-2)return null;P&&P(t);var I=!o;if(A.type===Fe.Element){I=I&&!A.needBlock,delete A.needBlock;var F=Ge.shadowRoot(t);F&&Gr(F)&&(A.isShadowHost=!0)}if((A.type===Fe.Document||A.type===Fe.Element)&&I){g.headWhitespace&&A.type===Fe.Element&&A.tagName==="head"&&($=!1);var oe={doc:e,mirror:n,blockClass:i,blockSelector:s,needsMask:H,maskTextClass:l,maskTextSelector:d,skipChild:o,inlineStylesheet:c,maskInputOptions:p,maskTextFn:_,maskInputFn:m,slimDOMOptions:g,dataURLOptions:y,inlineImages:E,recordCanvas:C,preserveWhiteSpace:$,onSerialize:P,onIframeLoad:D,iframeLoadTimeout:T,onStylesheetLoad:x,stylesheetLoadTimeout:U,keepIframeSrcFn:q,cssCaptured:!1};if(!(A.type===Fe.Element&&A.tagName==="textarea"&&A.attributes.value!==void 0)){A.type===Fe.Element&&A.attributes._cssText!==void 0&&typeof A.attributes._cssText=="string"&&(oe.cssCaptured=!0);for(var te,Ae=V(Array.from(Ge.childNodes(t)));!(te=Ae()).done;){var Re=yr(te.value,oe);Re&&A.childNodes.push(Re)}}var He=null;if(ml(t)&&(He=Ge.shadowRoot(t)))for(var et,Ze=V(Array.from(Ge.childNodes(He)));!(et=Ze()).done;){var Je=yr(et.value,oe);Je&&(Gr(He)&&(Je.isShadow=!0),A.childNodes.push(Je))}}var Be=Ge.parentNode(t);return Be&&Wr(Be)&&Gr(Be)&&(A.isShadow=!0),A.type===Fe.Element&&A.tagName==="iframe"&&(function(B,ge,ut){var je=B.contentWindow;if(je){var qe,at=!1;try{qe=je.document.readyState}catch{return}if(qe==="complete"){var dt="about:blank";if(je.location.href!==dt||B.src===dt||B.src==="")return setTimeout(ge,0),B.addEventListener("load",ge);B.addEventListener("load",ge)}else{var tr=setTimeout((function(){at||(ge(),at=!0)}),ut);B.addEventListener("load",(function(){clearTimeout(tr),at=!0,ge()}))}}})(t,(function(){var B=t.contentDocument;if(B&&D){var ge=yr(B,{doc:B,mirror:n,blockClass:i,blockSelector:s,needsMask:H,maskTextClass:l,maskTextSelector:d,skipChild:!1,inlineStylesheet:c,maskInputOptions:p,maskTextFn:_,maskInputFn:m,slimDOMOptions:g,dataURLOptions:y,inlineImages:E,recordCanvas:C,preserveWhiteSpace:$,onSerialize:P,onIframeLoad:D,iframeLoadTimeout:T,onStylesheetLoad:x,stylesheetLoadTimeout:U,keepIframeSrcFn:q});ge&&D(t,ge)}}),T),A.type===Fe.Element&&A.tagName==="link"&&typeof A.attributes.rel=="string"&&(A.attributes.rel==="stylesheet"||A.attributes.rel==="preload"&&typeof A.attributes.href=="string"&&bs(A.attributes.href)==="css")&&(function(B,ge,ut){var je,qe=!1;try{je=B.sheet}catch{return}if(!je){var at=setTimeout((function(){qe||(ge(),qe=!0)}),ut);B.addEventListener("load",(function(){clearTimeout(at),qe=!0,ge()}))}})(t,(function(){if(x){var B=yr(t,{doc:e,mirror:n,blockClass:i,blockSelector:s,needsMask:H,maskTextClass:l,maskTextSelector:d,skipChild:!1,inlineStylesheet:c,maskInputOptions:p,maskTextFn:_,maskInputFn:m,slimDOMOptions:g,dataURLOptions:y,inlineImages:E,recordCanvas:C,preserveWhiteSpace:$,onSerialize:P,onIframeLoad:D,iframeLoadTimeout:T,onStylesheetLoad:x,stylesheetLoadTimeout:U,keepIframeSrcFn:q});B&&x(t,B)}}),U),A}function Yd(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Xd(t){if(t.__esModule)return t;var r=t.default;if(typeof r=="function"){var e=function n(){return J(this,n)?Reflect.construct(r,arguments,this.constructor):r.apply(this,arguments)};e.prototype=r.prototype}else e={};return Object.defineProperty(e,"__esModule",{value:!0}),Object.keys(t).forEach((function(n){var i=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,i.get?i:{enumerable:!0,get:function(){return t[n]}})})),e}var go={exports:{}},ke=String,ws=function(){return{isColorSupported:!1,reset:ke,bold:ke,dim:ke,italic:ke,underline:ke,inverse:ke,hidden:ke,strikethrough:ke,black:ke,red:ke,green:ke,yellow:ke,blue:ke,magenta:ke,cyan:ke,white:ke,gray:ke,bgBlack:ke,bgRed:ke,bgGreen:ke,bgYellow:ke,bgBlue:ke,bgMagenta:ke,bgCyan:ke,bgWhite:ke}};go.exports=ws(),go.exports.createColors=ws;var Qd=go.exports,Oe=Xd(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"}))),Ss=Qd,Es=Oe,vo=(function(t){function r(n,i,s,l,d,h){var o;return(o=t.call(this,n)||this).name="CssSyntaxError",o.reason=n,d&&(o.file=d),l&&(o.source=l),h&&(o.plugin=h),i!==void 0&&s!==void 0&&(typeof i=="number"?(o.line=i,o.column=s):(o.line=i.line,o.column=i.column,o.endLine=s.line,o.endColumn=s.column)),o.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(o,r),o}$e(r,t);var e=r.prototype;return e.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",this.line!==void 0&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},e.showSourceCode=function(n){var i=this;if(!this.source)return"";var s=this.source;n==null&&(n=Ss.isColorSupported),Es&&n&&(s=Es(s));var l,d,h=s.split(/\r?\n/),o=Math.max(this.line-3,0),a=Math.min(this.line+2,h.length),c=String(a).length;if(n){var u=Ss.createColors(!0),p=u.bold,_=u.gray,m=u.red;l=function(g){return p(m(g))},d=function(g){return _(g)}}else l=d=function(g){return g};return h.slice(o,a).map((function(g,v){var y=o+1+v,k=" "+(" "+y).slice(-c)+" | ";if(y===i.line){var E=d(k.replace(/\d/g," "))+g.slice(0,i.column-1).replace(/[^\t]/g," ");return l(">")+d(k)+g+`
2
+ `+E+l("^")}return" "+d(k)+g})).join(`
3
+ `)},e.toString=function(){var n=this.showSourceCode();return n&&(n=`
4
+
5
+ `+n+`
6
+ `),this.name+": "+this.message+n},r})(hi(Error)),Ea=vo;vo.default=vo;var Wt={};Wt.isClean=Symbol("isClean"),Wt.my=Symbol("my");var As={after:`
7
+ `,beforeClose:`
8
+ `,beforeComment:`
9
+ `,beforeDecl:`
10
+ `,beforeOpen:" ",beforeRule:`
11
+ `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1},yo=(function(){function t(e){this.builder=e}var r=t.prototype;return r.atrule=function(e,n){var i="@"+e.name,s=e.params?this.rawValue(e,"params"):"";if(e.raws.afterName!==void 0?i+=e.raws.afterName:s&&(i+=" "),e.nodes)this.block(e,i+s);else{var l=(e.raws.between||"")+(n?";":"");this.builder(i+s+l,e)}},r.beforeAfter=function(e,n){var i;i=e.type==="decl"?this.raw(e,null,"beforeDecl"):e.type==="comment"?this.raw(e,null,"beforeComment"):n==="before"?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");for(var s=e.parent,l=0;s&&s.type!=="root";)l+=1,s=s.parent;if(i.includes(`
12
+ `)){var d=this.raw(e,null,"indent");if(d.length)for(var h=0;h<l;h++)i+=d}return i},r.block=function(e,n){var i,s=this.raw(e,"between","beforeOpen");this.builder(n+s+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),i=this.raw(e,"after")):i=this.raw(e,"after","emptyBody"),i&&this.builder(i),this.builder("}",e,"end")},r.body=function(e){for(var n=e.nodes.length-1;n>0&&e.nodes[n].type==="comment";)n-=1;for(var i=this.raw(e,"semicolon"),s=0;s<e.nodes.length;s++){var l=e.nodes[s],d=this.raw(l,"before");d&&this.builder(d),this.stringify(l,n!==s||i)}},r.comment=function(e){var n=this.raw(e,"left","commentLeft"),i=this.raw(e,"right","commentRight");this.builder("/*"+n+e.text+i+"*/",e)},r.decl=function(e,n){var i=this.raw(e,"between","colon"),s=e.prop+i+this.rawValue(e,"value");e.important&&(s+=e.raws.important||" !important"),n&&(s+=";"),this.builder(s,e)},r.document=function(e){this.body(e)},r.raw=function(e,n,i){var s;if(i||(i=n),n&&(s=e.raws[n])!==void 0)return s;var l=e.parent;if(i==="before"&&(!l||l.type==="root"&&l.first===e||l&&l.type==="document"))return"";if(!l)return As[i];var d=e.root();if(d.rawCache||(d.rawCache={}),d.rawCache[i]!==void 0)return d.rawCache[i];if(i==="before"||i==="after")return this.beforeAfter(e,i);var h,o="raw"+((h=i)[0].toUpperCase()+h.slice(1));return this[o]?s=this[o](d,e):d.walk((function(a){if((s=a.raws[n])!==void 0)return!1})),s===void 0&&(s=As[i]),d.rawCache[i]=s,s},r.rawBeforeClose=function(e){var n;return e.walk((function(i){if(i.nodes&&i.nodes.length>0&&i.raws.after!==void 0)return(n=i.raws.after).includes(`
13
+ `)&&(n=n.replace(/[^\n]+$/,"")),!1})),n&&(n=n.replace(/\S/g,"")),n},r.rawBeforeComment=function(e,n){var i;return e.walkComments((function(s){if(s.raws.before!==void 0)return(i=s.raws.before).includes(`
14
+ `)&&(i=i.replace(/[^\n]+$/,"")),!1})),i===void 0?i=this.raw(n,null,"beforeDecl"):i&&(i=i.replace(/\S/g,"")),i},r.rawBeforeDecl=function(e,n){var i;return e.walkDecls((function(s){if(s.raws.before!==void 0)return(i=s.raws.before).includes(`
15
+ `)&&(i=i.replace(/[^\n]+$/,"")),!1})),i===void 0?i=this.raw(n,null,"beforeRule"):i&&(i=i.replace(/\S/g,"")),i},r.rawBeforeOpen=function(e){var n;return e.walk((function(i){if(i.type!=="decl"&&(n=i.raws.between)!==void 0)return!1})),n},r.rawBeforeRule=function(e){var n;return e.walk((function(i){if(i.nodes&&(i.parent!==e||e.first!==i)&&i.raws.before!==void 0)return(n=i.raws.before).includes(`
16
+ `)&&(n=n.replace(/[^\n]+$/,"")),!1})),n&&(n=n.replace(/\S/g,"")),n},r.rawColon=function(e){var n;return e.walkDecls((function(i){if(i.raws.between!==void 0)return n=i.raws.between.replace(/[^\s:]/g,""),!1})),n},r.rawEmptyBody=function(e){var n;return e.walk((function(i){if(i.nodes&&i.nodes.length===0&&(n=i.raws.after)!==void 0)return!1})),n},r.rawIndent=function(e){return e.raws.indent?e.raws.indent:(e.walk((function(i){var s=i.parent;if(s&&s!==e&&s.parent&&s.parent===e&&i.raws.before!==void 0){var l=i.raws.before.split(`
17
+ `);return n=(n=l[l.length-1]).replace(/\S/g,""),!1}})),n);var n},r.rawSemicolon=function(e){var n;return e.walk((function(i){if(i.nodes&&i.nodes.length&&i.last.type==="decl"&&(n=i.raws.semicolon)!==void 0)return!1})),n},r.rawValue=function(e,n){var i=e[n],s=e.raws[n];return s&&s.value===i?s.raw:i},r.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},r.rule=function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")},r.stringify=function(e,n){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,n)},t})(),Cl=yo;yo.default=yo;var Kd=Cl;function bo(t,r){new Kd(r).stringify(t)}var Ei=bo;bo.default=bo;var fn=Wt.isClean,eh=Wt.my,th=Ea,rh=Cl,nh=Ei;function ko(t,r){var e=new t.constructor;for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&n!=="proxyCache"){var i=t[n],s=i===void 0?"undefined":ie(i);n==="parent"&&s==="object"?r&&(e[n]=r):n==="source"?e[n]=i:Array.isArray(i)?e[n]=i.map((function(l){return ko(l,e)})):(s==="object"&&i!==null&&(i=ko(i)),e[n]=i)}return e}var Co=(function(){function t(e){for(var n in e===void 0&&(e={}),this.raws={},this[fn]=!1,this[eh]=!0,e)if(n==="nodes"){this.nodes=[];for(var i,s=V(e[n]);!(i=s()).done;){var l=i.value;typeof l.clone=="function"?this.append(l.clone()):this.append(l)}}else this[n]=e[n]}var r=t.prototype;return r.addToError=function(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){var n=this.source;e.stack=e.stack.replace(/\n\s{4}at /,"$&"+n.input.from+":"+n.start.line+":"+n.start.column+"$&")}return e},r.after=function(e){return this.parent.insertAfter(this,e),this},r.assign=function(e){for(var n in e===void 0&&(e={}),e)this[n]=e[n];return this},r.before=function(e){return this.parent.insertBefore(this,e),this},r.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},r.clone=function(e){e===void 0&&(e={});var n=ko(this);for(var i in e)n[i]=e[i];return n},r.cloneAfter=function(e){e===void 0&&(e={});var n=this.clone(e);return this.parent.insertAfter(this,n),n},r.cloneBefore=function(e){e===void 0&&(e={});var n=this.clone(e);return this.parent.insertBefore(this,n),n},r.error=function(e,n){if(n===void 0&&(n={}),this.source){var i=this.rangeBy(n),s=i.end,l=i.start;return this.source.input.error(e,{column:l.column,line:l.line},{column:s.column,line:s.line},n)}return new th(e)},r.getProxyProcessor=function(){return{get:function(e,n){return n==="proxyOf"?e:n==="root"?function(){return e.root().toProxy()}:e[n]},set:function(e,n,i){return e[n]===i||(e[n]=i,n!=="prop"&&n!=="value"&&n!=="name"&&n!=="params"&&n!=="important"&&n!=="text"||e.markDirty()),!0}}},r.markDirty=function(){if(this[fn]){this[fn]=!1;for(var e=this;e=e.parent;)e[fn]=!1}},r.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},r.positionBy=function(e,n){var i=this.source.start;if(e.index)i=this.positionInside(e.index,n);else if(e.word){var s=(n=this.toString()).indexOf(e.word);s!==-1&&(i=this.positionInside(s,n))}return i},r.positionInside=function(e,n){for(var i=n||this.toString(),s=this.source.start.column,l=this.source.start.line,d=0;d<e;d++)i[d]===`
18
+ `?(s=1,l+=1):s+=1;return{column:s,line:l}},r.prev=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}},r.rangeBy=function(e){var n={column:this.source.start.column,line:this.source.start.line},i=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:n.column+1,line:n.line};if(e.word){var s=this.toString(),l=s.indexOf(e.word);l!==-1&&(n=this.positionInside(l,s),i=this.positionInside(l+e.word.length,s))}else e.start?n={column:e.start.column,line:e.start.line}:e.index&&(n=this.positionInside(e.index)),e.end?i={column:e.end.column,line:e.end.line}:typeof e.endIndex=="number"?i=this.positionInside(e.endIndex):e.index&&(i=this.positionInside(e.index+1));return(i.line<n.line||i.line===n.line&&i.column<=n.column)&&(i={column:n.column+1,line:n.line}),{end:i,start:n}},r.raw=function(e,n){return new rh().raw(this,e,n)},r.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},r.replaceWith=function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];if(this.parent){for(var s,l=this,d=!1,h=V(n);!(s=h()).done;){var o=s.value;o===this?d=!0:d?(this.parent.insertAfter(l,o),l=o):this.parent.insertBefore(l,o)}d||this.remove()}return this},r.root=function(){for(var e=this;e.parent&&e.parent.type!=="document";)e=e.parent;return e},r.toJSON=function(e,n){var i={},s=n==null;n=n||new Map;var l=0;for(var d in this)if(Object.prototype.hasOwnProperty.call(this,d)&&d!=="parent"&&d!=="proxyCache"){var h=this[d];if(Array.isArray(h))i[d]=h.map((function(a){return(a===void 0?"undefined":ie(a))==="object"&&a.toJSON?a.toJSON(null,n):a}));else if((h===void 0?"undefined":ie(h))==="object"&&h.toJSON)i[d]=h.toJSON(null,n);else if(d==="source"){var o=n.get(h.input);o==null&&(o=l,n.set(h.input,l),l++),i[d]={end:h.end,inputId:o,start:h.start}}else i[d]=h}return s&&(i.inputs=[].concat(n.keys()).map((function(a){return a.toJSON()}))),i},r.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},r.toString=function(e){e===void 0&&(e=nh),e.stringify&&(e=e.stringify);var n="";return e(this,(function(i){n+=i})),n},r.warn=function(e,n,i){var s={node:this};for(var l in i)s[l]=i[l];return e.warn(n,s)},Ue(t,[{key:"proxyOf",get:function(){return this}}]),t})(),Ai=Co;Co.default=Co;var wo=(function(t){function r(e){var n;return e&&e.value!==void 0&&typeof e.value!="string"&&(e=pe({},e,{value:String(e.value)})),(n=t.call(this,e)||this).type="decl",n}return $e(r,t),Ue(r,[{key:"variable",get:function(){return this.prop.startsWith("--")||this.prop[0]==="$"}}]),r})(Ai),Ii=wo;wo.default=wo;var ih=function(t){t===void 0&&(t=21);for(var r="",e=t;e--;)r+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return r},Is=Oe.SourceMapConsumer,Ts=Oe.SourceMapGenerator,oh=Oe.existsSync,ah=Oe.readFileSync,zi=Oe.dirname,sh=Oe.join,So=(function(){function t(e,n){if(n.map!==!1){this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");var i=n.map?n.map.prev:void 0,s=this.loadMap(n.from,i);!this.mapFile&&n.from&&(this.mapFile=n.from),this.mapFile&&(this.root=zi(this.mapFile)),s&&(this.text=s)}}var r=t.prototype;return r.consumer=function(){return this.consumerCache||(this.consumerCache=new Is(this.text)),this.consumerCache},r.decodeInline=function(e){var n;if(/^data:application\/json;charset=utf-?8,/.test(e)||/^data:application\/json,/.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(e)||/^data:application\/json;base64,/.test(e))return n=e.substr(RegExp.lastMatch.length),zt?zt.from(n,"base64").toString():window.atob(n);var i=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+i)},r.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},r.isMap=function(e){return(e===void 0?"undefined":ie(e))==="object"&&(typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections))},r.loadAnnotation=function(e){var n=e.match(/\/\*\s*# sourceMappingURL=/gm);if(n){var i=e.lastIndexOf(n.pop()),s=e.indexOf("*/",i);i>-1&&s>-1&&(this.annotation=this.getAnnotationURL(e.substring(i,s)))}},r.loadFile=function(e){if(this.root=zi(e),oh(e))return this.mapFile=e,ah(e,"utf-8").toString().trim()},r.loadMap=function(e,n){if(n===!1)return!1;if(n){if(typeof n=="string")return n;if(typeof n!="function"){if(J(n,Is))return Ts.fromSourceMap(n).toString();if(J(n,Ts))return n.toString();if(this.isMap(n))return JSON.stringify(n);throw new Error("Unsupported previous source map format: "+n.toString())}var i=n(e);if(i){var s=this.loadFile(i);if(!s)throw new Error("Unable to load previous source map: "+i.toString());return s}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var l=this.annotation;return e&&(l=sh(zi(e),l)),this.loadFile(l)}}},r.startWith=function(e,n){return!!e&&e.substr(0,n.length)===n},r.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},t})(),wl=So;So.default=So;var ch=Oe.SourceMapConsumer,lh=Oe.SourceMapGenerator,Ps=Oe.fileURLToPath,mn=Oe.pathToFileURL,Eo=Oe.isAbsolute,Ao=Oe.resolve,uh=ih,Wi=Oe,Rs=Ea,dh=wl,Gi=Symbol("fromOffsetCache"),hh=!!(ch&&lh),xs=!!(Ao&&Eo),qn=(function(){function t(e,n){if(n===void 0&&(n={}),e==null||(e===void 0?"undefined":ie(e))==="object"&&!e.toString)throw new Error("PostCSS received "+e+" instead of CSS string");if(this.css=e.toString(),this.css[0]==="\uFEFF"||this.css[0]==="￾"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,n.from&&(!xs||/^\w+:\/\//.test(n.from)||Eo(n.from)?this.file=n.from:this.file=Ao(n.from)),xs&&hh){var i=new dh(this.css,n);if(i.text){this.map=i;var s=i.consumer().file;!this.file&&s&&(this.file=this.mapResolve(s))}}this.file||(this.id="<input css "+uh(6)+">"),this.map&&(this.map.file=this.from)}var r=t.prototype;return r.error=function(e,n,i,s){var l,d,h;if(s===void 0&&(s={}),n&&(n===void 0?"undefined":ie(n))==="object"){var o=n,a=i;if(typeof o.offset=="number"){var c=this.fromOffset(o.offset);n=c.line,i=c.col}else n=o.line,i=o.column;if(typeof a.offset=="number"){var u=this.fromOffset(a.offset);d=u.line,h=u.col}else d=a.line,h=a.column}else if(!i){var p=this.fromOffset(n);n=p.line,i=p.col}var _=this.origin(n,i,d,h);return(l=_?new Rs(e,_.endLine===void 0?_.line:{column:_.column,line:_.line},_.endLine===void 0?_.column:{column:_.endColumn,line:_.endLine},_.source,_.file,s.plugin):new Rs(e,d===void 0?n:{column:i,line:n},d===void 0?i:{column:h,line:d},this.css,this.file,s.plugin)).input={column:i,endColumn:h,endLine:d,line:n,source:this.css},this.file&&(mn&&(l.input.url=mn(this.file).toString()),l.input.file=this.file),l},r.fromOffset=function(e){var n;if(this[Gi])n=this[Gi];else{var i=this.css.split(`
19
+ `);n=new Array(i.length);for(var s=0,l=0,d=i.length;l<d;l++)n[l]=s,s+=i[l].length+1;this[Gi]=n}var h=0;if(e>=n[n.length-1])h=n.length-1;else for(var o,a=n.length-2;h<a;)if(e<n[o=h+(a-h>>1)])a=o-1;else{if(!(e>=n[o+1])){h=o;break}h=o+1}return{col:e-n[h]+1,line:h+1}},r.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:Ao(this.map.consumer().sourceRoot||this.map.root||".",e)},r.origin=function(e,n,i,s){if(!this.map)return!1;var l,d,h=this.map.consumer(),o=h.originalPositionFor({column:n,line:e});if(!o.source)return!1;typeof i=="number"&&(l=h.originalPositionFor({column:s,line:i})),d=Eo(o.source)?mn(o.source):new URL(o.source,this.map.consumer().sourceRoot||mn(this.map.mapFile));var a={column:o.column,endColumn:l&&l.column,endLine:l&&l.line,line:o.line,url:d.toString()};if(d.protocol==="file:"){if(!Ps)throw new Error("file: protocol is not available in this PostCSS build");a.file=Ps(d)}var c=h.sourceContentFor(o.source);return c&&(a.source=c),a},r.toJSON=function(){for(var e={},n=0,i=["hasBOM","css","file","id"];n<i.length;n++){var s=i[n];this[s]!=null&&(e[s]=this[s])}return this.map&&(e.map=pe({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},Ue(t,[{key:"from",get:function(){return this.file||this.id}}]),t})(),Ti=qn;qn.default=qn,Wi&&Wi.registerInput&&Wi.registerInput(qn);var Sl=Oe.SourceMapConsumer,zn=Oe.SourceMapGenerator,Wn=Oe.dirname,El=Oe.relative,Al=Oe.resolve,Il=Oe.sep,Os=Oe.pathToFileURL,ph=Ti,fh=!!(Sl&&zn),mh=!!(Wn&&Al&&El&&Il),Tl=(function(){function t(e,n,i,s){this.stringify=e,this.mapOpts=i.map||{},this.root=n,this.opts=i,this.css=s,this.originalCSS=s,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}var r=t.prototype;return r.addAnnotation=function(){var e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";var n=`
20
+ `;this.css.includes(`\r
21
+ `)&&(n=`\r
22
+ `),this.css+=n+"/*# sourceMappingURL="+e+" */"},r.applyPrevMaps=function(){for(var e,n=V(this.previous());!(e=n()).done;){var i=e.value,s=this.toUrl(this.path(i.file)),l=i.root||Wn(i.file),d=void 0;this.mapOpts.sourcesContent===!1?(d=new Sl(i.text)).sourcesContent&&(d.sourcesContent=null):d=i.consumer(),this.map.applySourceMap(d,s,this.toUrl(this.path(l)))}},r.clearAnnotation=function(){if(this.mapOpts.annotation!==!1)if(this.root)for(var e,n=this.root.nodes.length-1;n>=0;n--)(e=this.root.nodes[n]).type==="comment"&&e.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(n);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))},r.generate=function(){if(this.clearAnnotation(),mh&&fh&&this.isMap())return this.generateMap();var e="";return this.stringify(this.root,(function(n){e+=n})),[e]},r.generateMap=function(){if(this.root)this.generateString();else if(this.previous().length===1){var e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=zn.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new zn({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]},r.generateString=function(){var e=this;this.css="",this.map=new zn({file:this.outputFile(),ignoreInvalidMapping:!0});var n,i,s=1,l=1,d="<no source>",h={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,(function(o,a,c){if(e.css+=o,a&&c!=="end"&&(h.generated.line=s,h.generated.column=l-1,a.source&&a.source.start?(h.source=e.sourcePath(a),h.original.line=a.source.start.line,h.original.column=a.source.start.column-1,e.map.addMapping(h)):(h.source=d,h.original.line=1,h.original.column=0,e.map.addMapping(h))),(n=o.match(/\n/g))?(s+=n.length,i=o.lastIndexOf(`
23
+ `),l=o.length-i):l+=o.length,a&&c!=="start"){var u=a.parent||{raws:{}};(a.type==="decl"||a.type==="atrule"&&!a.nodes)&&a===u.last&&!u.raws.semicolon||(a.source&&a.source.end?(h.source=e.sourcePath(a),h.original.line=a.source.end.line,h.original.column=a.source.end.column-1,h.generated.line=s,h.generated.column=l-2,e.map.addMapping(h)):(h.source=d,h.original.line=1,h.original.column=0,h.generated.line=s,h.generated.column=l-1,e.map.addMapping(h)))}}))},r.isAnnotation=function(){return!!this.isInline()||(this.mapOpts.annotation!==void 0?this.mapOpts.annotation:!this.previous().length||this.previous().some((function(e){return e.annotation})))},r.isInline=function(){if(this.mapOpts.inline!==void 0)return this.mapOpts.inline;var e=this.mapOpts.annotation;return(e===void 0||e===!0)&&(!this.previous().length||this.previous().some((function(n){return n.inline})))},r.isMap=function(){return this.opts.map!==void 0?!!this.opts.map:this.previous().length>0},r.isSourcesContent=function(){return this.mapOpts.sourcesContent!==void 0?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some((function(e){return e.withContent()}))},r.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},r.path=function(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;var n=this.memoizedPaths.get(e);if(n)return n;var i=this.opts.to?Wn(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(i=Wn(Al(i,this.mapOpts.annotation)));var s=El(i,e);return this.memoizedPaths.set(e,s),s},r.previous=function(){var e=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk((function(i){if(i.source&&i.source.input.map){var s=i.source.input.map;e.previousMaps.includes(s)||e.previousMaps.push(s)}}));else{var n=new ph(this.originalCSS,this.opts);n.map&&this.previousMaps.push(n.map)}return this.previousMaps},r.setSourcesContent=function(){var e=this,n={};if(this.root)this.root.walk((function(s){if(s.source){var l=s.source.input.from;if(l&&!n[l]){n[l]=!0;var d=e.usesFileUrls?e.toFileUrl(l):e.toUrl(e.path(l));e.map.setSourceContent(d,s.source.input.css)}}}));else if(this.css){var i=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(i,this.css)}},r.sourcePath=function(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))},r.toBase64=function(e){return zt?zt.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},r.toFileUrl=function(e){var n=this.memoizedFileURLs.get(e);if(n)return n;if(Os){var i=Os(e).toString();return this.memoizedFileURLs.set(e,i),i}throw new Error("`map.absolute` option is not available in this PostCSS build")},r.toUrl=function(e){var n=this.memoizedURLs.get(e);if(n)return n;Il==="\\"&&(e=e.replace(/\\/g,"/"));var i=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,i),i},t})(),Io=(function(t){function r(e){var n;return(n=t.call(this,e)||this).type="comment",n}return $e(r,t),r})(Ai),Pi=Io;Io.default=Io;var Pl,Aa,Ia,Rl,xl=Wt.isClean,Ol=Wt.my,Dl=Ii,Bl=Pi;function Ml(t){return t.map((function(r){return r.nodes&&(r.nodes=Ml(r.nodes)),delete r.source,r}))}function Ll(t){if(t[xl]=!1,t.proxyOf.nodes)for(var r,e=V(t.proxyOf.nodes);!(r=e()).done;)Ll(r.value)}var Tt=(function(t){function r(){return t.apply(this,arguments)||this}$e(r,t);var e=r.prototype;return e.append=function(){for(var n=arguments.length,i=new Array(n),s=0;s<n;s++)i[s]=arguments[s];for(var l,d=V(i);!(l=d()).done;)for(var h,o=l.value,a=V(this.normalize(o,this.last));!(h=a()).done;){var c=h.value;this.proxyOf.nodes.push(c)}return this.markDirty(),this},e.cleanRaws=function(n){if(t.prototype.cleanRaws.call(this,n),this.nodes)for(var i,s=V(this.nodes);!(i=s()).done;)i.value.cleanRaws(n)},e.each=function(n){if(this.proxyOf.nodes){for(var i,s,l=this.getIterator();this.indexes[l]<this.proxyOf.nodes.length&&(i=this.indexes[l],(s=n(this.proxyOf.nodes[i],i))!==!1);)this.indexes[l]+=1;return delete this.indexes[l],s}},e.every=function(n){return this.nodes.every(n)},e.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var n=this.lastEach;return this.indexes[n]=0,n},e.getProxyProcessor=function(){return{get:function(n,i){return i==="proxyOf"?n:n[i]?i==="each"||typeof i=="string"&&i.startsWith("walk")?function(){for(var s=arguments.length,l=new Array(s),d=0;d<s;d++)l[d]=arguments[d];var h;return(h=n)[i].apply(h,[].concat(l.map((function(o){return typeof o=="function"?function(a,c){return o(a.toProxy(),c)}:o}))))}:i==="every"||i==="some"?function(s){return n[i]((function(l){for(var d=arguments.length,h=new Array(d>1?d-1:0),o=1;o<d;o++)h[o-1]=arguments[o];return s.apply(void 0,[].concat([l.toProxy()],h))}))}:i==="root"?function(){return n.root().toProxy()}:i==="nodes"?n.nodes.map((function(s){return s.toProxy()})):i==="first"||i==="last"?n[i].toProxy():n[i]:n[i]},set:function(n,i,s){return n[i]===s||(n[i]=s,i!=="name"&&i!=="params"&&i!=="selector"||n.markDirty()),!0}}},e.index=function(n){return typeof n=="number"?n:(n.proxyOf&&(n=n.proxyOf),this.proxyOf.nodes.indexOf(n))},e.insertAfter=function(n,i){var s,l=this.index(n),d=this.normalize(i,this.proxyOf.nodes[l]).reverse();l=this.index(n);for(var h,o=V(d);!(h=o()).done;){var a=h.value;this.proxyOf.nodes.splice(l+1,0,a)}for(var c in this.indexes)l<(s=this.indexes[c])&&(this.indexes[c]=s+d.length);return this.markDirty(),this},e.insertBefore=function(n,i){var s,l=this.index(n),d=l===0&&"prepend",h=this.normalize(i,this.proxyOf.nodes[l],d).reverse();l=this.index(n);for(var o,a=V(h);!(o=a()).done;){var c=o.value;this.proxyOf.nodes.splice(l,0,c)}for(var u in this.indexes)l<=(s=this.indexes[u])&&(this.indexes[u]=s+h.length);return this.markDirty(),this},e.normalize=function(n,i){var s=this;if(typeof n=="string")n=Ml(Pl(n).nodes);else if(n===void 0)n=[];else if(Array.isArray(n))for(var l,d=V(n=n.slice(0));!(l=d()).done;){var h=l.value;h.parent&&h.parent.removeChild(h,"ignore")}else if(n.type==="root"&&this.type!=="document")for(var o,a=V(n=n.nodes.slice(0));!(o=a()).done;){var c=o.value;c.parent&&c.parent.removeChild(c,"ignore")}else if(n.type)n=[n];else if(n.prop){if(n.value===void 0)throw new Error("Value field is missed in node creation");typeof n.value!="string"&&(n.value=String(n.value)),n=[new Dl(n)]}else if(n.selector)n=[new Aa(n)];else if(n.name)n=[new Ia(n)];else{if(!n.text)throw new Error("Unknown node type in node creation");n=[new Bl(n)]}return n.map((function(u){return u[Ol]||r.rebuild(u),(u=u.proxyOf).parent&&u.parent.removeChild(u),u[xl]&&Ll(u),u.raws.before===void 0&&i&&i.raws.before!==void 0&&(u.raws.before=i.raws.before.replace(/\S/g,"")),u.parent=s.proxyOf,u}))},e.prepend=function(){for(var n=arguments.length,i=new Array(n),s=0;s<n;s++)i[s]=arguments[s];for(var l,d=V(i=i.reverse());!(l=d()).done;){for(var h,o=l.value,a=this.normalize(o,this.first,"prepend").reverse(),c=V(a);!(h=c()).done;){var u=h.value;this.proxyOf.nodes.unshift(u)}for(var p in this.indexes)this.indexes[p]=this.indexes[p]+a.length}return this.markDirty(),this},e.push=function(n){return n.parent=this,this.proxyOf.nodes.push(n),this},e.removeAll=function(){for(var n,i=V(this.proxyOf.nodes);!(n=i()).done;)n.value.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this},e.removeChild=function(n){var i;for(var s in n=this.index(n),this.proxyOf.nodes[n].parent=void 0,this.proxyOf.nodes.splice(n,1),this.indexes)(i=this.indexes[s])>=n&&(this.indexes[s]=i-1);return this.markDirty(),this},e.replaceValues=function(n,i,s){return s||(s=i,i={}),this.walkDecls((function(l){i.props&&!i.props.includes(l.prop)||i.fast&&!l.value.includes(i.fast)||(l.value=l.value.replace(n,s))})),this.markDirty(),this},e.some=function(n){return this.nodes.some(n)},e.walk=function(n){return this.each((function(i,s){var l;try{l=n(i,s)}catch(d){throw i.addToError(d)}return l!==!1&&i.walk&&(l=i.walk(n)),l}))},e.walkAtRules=function(n,i){return i?J(n,RegExp)?this.walk((function(s,l){if(s.type==="atrule"&&n.test(s.name))return i(s,l)})):this.walk((function(s,l){if(s.type==="atrule"&&s.name===n)return i(s,l)})):(i=n,this.walk((function(s,l){if(s.type==="atrule")return i(s,l)})))},e.walkComments=function(n){return this.walk((function(i,s){if(i.type==="comment")return n(i,s)}))},e.walkDecls=function(n,i){return i?J(n,RegExp)?this.walk((function(s,l){if(s.type==="decl"&&n.test(s.prop))return i(s,l)})):this.walk((function(s,l){if(s.type==="decl"&&s.prop===n)return i(s,l)})):(i=n,this.walk((function(s,l){if(s.type==="decl")return i(s,l)})))},e.walkRules=function(n,i){return i?J(n,RegExp)?this.walk((function(s,l){if(s.type==="rule"&&n.test(s.selector))return i(s,l)})):this.walk((function(s,l){if(s.type==="rule"&&s.selector===n)return i(s,l)})):(i=n,this.walk((function(s,l){if(s.type==="rule")return i(s,l)})))},Ue(r,[{key:"first",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}},{key:"last",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}]),r})(Ai);Tt.registerParse=function(t){Pl=t},Tt.registerRule=function(t){Aa=t},Tt.registerAtRule=function(t){Ia=t},Tt.registerRoot=function(t){Rl=t};var Qt=Tt;Tt.default=Tt,Tt.rebuild=function(t){t.type==="atrule"?Object.setPrototypeOf(t,Ia.prototype):t.type==="rule"?Object.setPrototypeOf(t,Aa.prototype):t.type==="decl"?Object.setPrototypeOf(t,Dl.prototype):t.type==="comment"?Object.setPrototypeOf(t,Bl.prototype):t.type==="root"&&Object.setPrototypeOf(t,Rl.prototype),t[Ol]=!0,t.nodes&&t.nodes.forEach((function(r){Tt.rebuild(r)}))};var Nl,Fl,Qr=(function(t){function r(e){var n;return(n=t.call(this,pe({type:"document"},e))||this).nodes||(n.nodes=[]),n}return $e(r,t),r.prototype.toResult=function(e){return e===void 0&&(e={}),new Nl(new Fl,this,e).stringify()},r})(Qt);Qr.registerLazyResult=function(t){Nl=t},Qr.registerProcessor=function(t){Fl=t};var Ta=Qr;Qr.default=Qr;var To=(function(){function t(r,e){if(e===void 0&&(e={}),this.type="warning",this.text=r,e.node&&e.node.source){var n=e.node.rangeBy(e);this.line=n.start.line,this.column=n.start.column,this.endLine=n.end.line,this.endColumn=n.end.column}for(var i in e)this[i]=e[i]}return t.prototype.toString=function(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text},t})(),Vl=To;To.default=To;var _h=Vl,Po=(function(){function t(e,n,i){this.processor=e,this.messages=[],this.root=n,this.opts=i,this.css=void 0,this.map=void 0}var r=t.prototype;return r.toString=function(){return this.css},r.warn=function(e,n){n===void 0&&(n={}),n.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(n.plugin=this.lastPlugin.postcssPlugin);var i=new _h(e,n);return this.messages.push(i),i},r.warnings=function(){return this.messages.filter((function(e){return e.type==="warning"}))},Ue(t,[{key:"content",get:function(){return this.css}}]),t})(),Pa=Po;Po.default=Po;var $i=39,Ds=34,_n=92,Bs=47,gn=10,Rr=32,vn=12,yn=9,bn=13,gh=91,vh=93,yh=40,bh=41,kh=123,Ch=125,wh=59,Sh=42,Eh=58,Ah=64,kn=/[\t\n\f\r "#'()/;[\\\]{}]/g,Cn=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Ih=/.[\r\n"'(/\\]/,Ms=/[\da-f]/i,Ul=Qt,Gn=(function(t){function r(n){var i;return(i=t.call(this,n)||this).type="atrule",i}$e(r,t);var e=r.prototype;return e.append=function(){for(var n=arguments.length,i=new Array(n),s=0;s<n;s++)i[s]=arguments[s];var l;return this.proxyOf.nodes||(this.nodes=[]),(l=t.prototype.append).call.apply(l,[].concat([this],i))},e.prepend=function(){for(var n=arguments.length,i=new Array(n),s=0;s<n;s++)i[s]=arguments[s];var l;return this.proxyOf.nodes||(this.nodes=[]),(l=t.prototype.prepend).call.apply(l,[].concat([this],i))},r})(Ul),Ra=Gn;Gn.default=Gn,Ul.registerAtRule(Gn);var jl,ql,zl=Qt,Cr=(function(t){function r(n){var i;return(i=t.call(this,n)||this).type="root",i.nodes||(i.nodes=[]),i}$e(r,t);var e=r.prototype;return e.normalize=function(n,i,s){var l=t.prototype.normalize.call(this,n);if(i){if(s==="prepend")this.nodes.length>1?i.raws.before=this.nodes[1].raws.before:delete i.raws.before;else if(this.first!==i)for(var d,h=V(l);!(d=h()).done;)d.value.raws.before=i.raws.before}return l},e.removeChild=function(n,i){var s=this.index(n);return!i&&s===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[s].raws.before),t.prototype.removeChild.call(this,n)},e.toResult=function(n){return n===void 0&&(n={}),new jl(new ql,this,n).stringify()},r})(zl);Cr.registerLazyResult=function(t){jl=t},Cr.registerProcessor=function(t){ql=t};var cn=Cr;Cr.default=Cr,zl.registerRoot(Cr);var Kr={comma:function(t){return Kr.split(t,[","],!0)},space:function(t){return Kr.split(t,[" ",`
24
+ `," "])},split:function(t,r,e){for(var n,i=[],s="",l=!1,d=0,h=!1,o="",a=!1,c=V(t);!(n=c()).done;){var u=n.value;a?a=!1:u==="\\"?a=!0:h?u===o&&(h=!1):u==='"'||u==="'"?(h=!0,o=u):u==="("?d+=1:u===")"?d>0&&(d-=1):d===0&&r.includes(u)&&(l=!0),l?(s!==""&&i.push(s.trim()),s="",l=!1):s+=u}return(e||s!=="")&&i.push(s.trim()),i}},Wl=Kr;Kr.default=Kr;var Gl=Qt,Th=Wl,$n=(function(t){function r(e){var n;return(n=t.call(this,e)||this).type="rule",n.nodes||(n.nodes=[]),n}return $e(r,t),Ue(r,[{key:"selectors",get:function(){return Th.comma(this.selector)},set:function(e){var n=this.selector?this.selector.match(/,\s*/):null,i=n?n[0]:","+this.raw("between","beforeOpen");this.selector=e.join(i)}}]),r})(Gl),xa=$n;$n.default=$n,Gl.registerRule($n);var Ph=Ii,Rh=function(t,r){r===void 0&&(r={});var e,n,i,s,l,d,h,o,a,c,u=t.css.valueOf(),p=r.ignoreErrors,_=u.length,m=0,g=[],v=[];function y(k){throw t.error("Unclosed "+k,m)}return{back:function(k){v.push(k)},endOfFile:function(){return v.length===0&&m>=_},nextToken:function(k){if(v.length)return v.pop();if(!(m>=_)){var E=!!k&&k.ignoreUnclosed;switch(e=u.charCodeAt(m)){case gn:case Rr:case yn:case bn:case vn:n=m;do n+=1,e=u.charCodeAt(n);while(e===Rr||e===gn||e===yn||e===bn||e===vn);c=["space",u.slice(m,n)],m=n-1;break;case gh:case vh:case kh:case Ch:case Eh:case wh:case bh:var w=String.fromCharCode(e);c=[w,w,m];break;case yh:if(o=g.length?g.pop()[1]:"",a=u.charCodeAt(m+1),o==="url"&&a!==$i&&a!==Ds&&a!==Rr&&a!==gn&&a!==yn&&a!==vn&&a!==bn){n=m;do{if(d=!1,(n=u.indexOf(")",n+1))===-1){if(p||E){n=m;break}y("bracket")}for(h=n;u.charCodeAt(h-1)===_n;)h-=1,d=!d}while(d);c=["brackets",u.slice(m,n+1),m,n],m=n}else n=u.indexOf(")",m+1),s=u.slice(m,n+1),n===-1||Ih.test(s)?c=["(","(",m]:(c=["brackets",s,m,n],m=n);break;case $i:case Ds:i=e===$i?"'":'"',n=m;do{if(d=!1,(n=u.indexOf(i,n+1))===-1){if(p||E){n=m+1;break}y("string")}for(h=n;u.charCodeAt(h-1)===_n;)h-=1,d=!d}while(d);c=["string",u.slice(m,n+1),m,n],m=n;break;case Ah:kn.lastIndex=m+1,kn.test(u),n=kn.lastIndex===0?u.length-1:kn.lastIndex-2,c=["at-word",u.slice(m,n+1),m,n],m=n;break;case _n:for(n=m,l=!0;u.charCodeAt(n+1)===_n;)n+=1,l=!l;if(e=u.charCodeAt(n+1),l&&e!==Bs&&e!==Rr&&e!==gn&&e!==yn&&e!==bn&&e!==vn&&(n+=1,Ms.test(u.charAt(n)))){for(;Ms.test(u.charAt(n+1));)n+=1;u.charCodeAt(n+1)===Rr&&(n+=1)}c=["word",u.slice(m,n+1),m,n],m=n;break;default:e===Bs&&u.charCodeAt(m+1)===Sh?((n=u.indexOf("*/",m+2)+1)===0&&(p||E?n=u.length:y("comment")),c=["comment",u.slice(m,n+1),m,n],m=n):(Cn.lastIndex=m+1,Cn.test(u),n=Cn.lastIndex===0?u.length-1:Cn.lastIndex-2,c=["word",u.slice(m,n+1),m,n],g.push(c),m=n)}return m++,c}},position:function(){return m}}},xh=Pi,Oh=Ra,Dh=cn,Ls=xa,Ns={empty:!0,space:!0},Bh=(function(){function t(e){this.input=e,this.root=new Dh,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}var r=t.prototype;return r.atrule=function(e){var n,i,s,l=new Oh;l.name=e[1].slice(1),l.name===""&&this.unnamedAtrule(l,e),this.init(l,e[2]);for(var d=!1,h=!1,o=[],a=[];!this.tokenizer.endOfFile();){if((n=(e=this.tokenizer.nextToken())[0])==="("||n==="["?a.push(n==="("?")":"]"):n==="{"&&a.length>0?a.push("}"):n===a[a.length-1]&&a.pop(),a.length===0){if(n===";"){l.source.end=this.getPosition(e[2]),l.source.end.offset++,this.semicolon=!0;break}if(n==="{"){h=!0;break}if(n==="}"){if(o.length>0){for(i=o[s=o.length-1];i&&i[0]==="space";)i=o[--s];i&&(l.source.end=this.getPosition(i[3]||i[2]),l.source.end.offset++)}this.end(e);break}o.push(e)}else o.push(e);if(this.tokenizer.endOfFile()){d=!0;break}}l.raws.between=this.spacesAndCommentsFromEnd(o),o.length?(l.raws.afterName=this.spacesAndCommentsFromStart(o),this.raw(l,"params",o),d&&(e=o[o.length-1],l.source.end=this.getPosition(e[3]||e[2]),l.source.end.offset++,this.spaces=l.raws.between,l.raws.between="")):(l.raws.afterName="",l.params=""),h&&(l.nodes=[],this.current=l)},r.checkMissedSemicolon=function(e){var n=this.colon(e);if(n!==!1){for(var i,s=0,l=n-1;l>=0&&((i=e[l])[0]==="space"||(s+=1)!==2);l--);throw this.input.error("Missed semicolon",i[0]==="word"?i[3]+1:i[2])}},r.colon=function(e){for(var n,i,s,l,d=0,h=V(e.entries());!(l=h()).done;){var o=l.value,a=o[0];if((i=(n=o[1])[0])==="("&&(d+=1),i===")"&&(d-=1),d===0&&i===":"){if(s){if(s[0]==="word"&&s[1]==="progid")continue;return a}this.doubleColon(n)}s=n}return!1},r.comment=function(e){var n=new xh;this.init(n,e[2]),n.source.end=this.getPosition(e[3]||e[2]),n.source.end.offset++;var i=e[1].slice(2,-2);if(/^\s*$/.test(i))n.text="",n.raws.left=i,n.raws.right="";else{var s=i.match(/^(\s*)([^]*\S)(\s*)$/);n.text=s[2],n.raws.left=s[1],n.raws.right=s[3]}},r.createTokenizer=function(){this.tokenizer=Rh(this.input)},r.decl=function(e,n){var i=new Ph;this.init(i,e[0][2]);var s,l=e[e.length-1];for(l[0]===";"&&(this.semicolon=!0,e.pop()),i.source.end=this.getPosition(l[3]||l[2]||(function(g){for(var v=g.length-1;v>=0;v--){var y=g[v],k=y[3]||y[2];if(k)return k}})(e)),i.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),i.raws.before+=e.shift()[1];for(i.source.start=this.getPosition(e[0][2]),i.prop="";e.length;){var d=e[0][0];if(d===":"||d==="space"||d==="comment")break;i.prop+=e.shift()[1]}for(i.raws.between="";e.length;){if((s=e.shift())[0]===":"){i.raws.between+=s[1];break}s[0]==="word"&&/\w/.test(s[1])&&this.unknownWord([s]),i.raws.between+=s[1]}i.prop[0]!=="_"&&i.prop[0]!=="*"||(i.raws.before+=i.prop[0],i.prop=i.prop.slice(1));for(var h,o=[];e.length&&((h=e[0][0])==="space"||h==="comment");)o.push(e.shift());this.precheckMissedSemicolon(e);for(var a=e.length-1;a>=0;a--){if((s=e[a])[1].toLowerCase()==="!important"){i.important=!0;var c=this.stringFrom(e,a);(c=this.spacesFromEnd(e)+c)!==" !important"&&(i.raws.important=c);break}if(s[1].toLowerCase()==="important"){for(var u=e.slice(0),p="",_=a;_>0;_--){var m=u[_][0];if(p.trim().indexOf("!")===0&&m!=="space")break;p=u.pop()[1]+p}p.trim().indexOf("!")===0&&(i.important=!0,i.raws.important=p,e=u)}if(s[0]!=="space"&&s[0]!=="comment")break}e.some((function(g){return g[0]!=="space"&&g[0]!=="comment"}))&&(i.raws.between+=o.map((function(g){return g[1]})).join(""),o=[]),this.raw(i,"value",o.concat(e),n),i.value.includes(":")&&!n&&this.checkMissedSemicolon(e)},r.doubleColon=function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})},r.emptyRule=function(e){var n=new Ls;this.init(n,e[2]),n.selector="",n.raws.between="",this.current=n},r.end=function(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)},r.endFile=function(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())},r.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var n=this.current.nodes[this.current.nodes.length-1];n&&n.type==="rule"&&!n.raws.ownSemicolon&&(n.raws.ownSemicolon=this.spaces,this.spaces="")}},r.getPosition=function(e){var n=this.input.fromOffset(e);return{column:n.col,line:n.line,offset:e}},r.init=function(e,n){this.current.push(e),e.source={input:this.input,start:this.getPosition(n)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)},r.other=function(e){for(var n=!1,i=null,s=!1,l=null,d=[],h=e[1].startsWith("--"),o=[],a=e;a;){if(i=a[0],o.push(a),i==="("||i==="[")l||(l=a),d.push(i==="("?")":"]");else if(h&&s&&i==="{")l||(l=a),d.push("}");else if(d.length===0){if(i===";"){if(s)return void this.decl(o,h);break}if(i==="{")return void this.rule(o);if(i==="}"){this.tokenizer.back(o.pop()),n=!0;break}i===":"&&(s=!0)}else i===d[d.length-1]&&(d.pop(),d.length===0&&(l=null));a=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(n=!0),d.length>0&&this.unclosedBracket(l),n&&s){if(!h)for(;o.length&&((a=o[o.length-1][0])==="space"||a==="comment");)this.tokenizer.back(o.pop());this.decl(o,h)}else this.unknownWord(o)},r.parse=function(){for(var e;!this.tokenizer.endOfFile();)switch((e=this.tokenizer.nextToken())[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()},r.precheckMissedSemicolon=function(){},r.raw=function(e,n,i,s){for(var l,d,h,o,a=i.length,c="",u=!0,p=0;p<a;p+=1)(d=(l=i[p])[0])!=="space"||p!==a-1||s?d==="comment"?(o=i[p-1]?i[p-1][0]:"empty",h=i[p+1]?i[p+1][0]:"empty",Ns[o]||Ns[h]||c.slice(-1)===","?u=!1:c+=l[1]):c+=l[1]:u=!1;if(!u){var _=i.reduce((function(m,g){return m+g[1]}),"");e.raws[n]={raw:_,value:c}}e[n]=c},r.rule=function(e){e.pop();var n=new Ls;this.init(n,e[0][2]),n.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(n,"selector",e),this.current=n},r.spacesAndCommentsFromEnd=function(e){for(var n,i="";e.length&&((n=e[e.length-1][0])==="space"||n==="comment");)i=e.pop()[1]+i;return i},r.spacesAndCommentsFromStart=function(e){for(var n,i="";e.length&&((n=e[0][0])==="space"||n==="comment");)i+=e.shift()[1];return i},r.spacesFromEnd=function(e){for(var n="";e.length&&e[e.length-1][0]==="space";)n=e.pop()[1]+n;return n},r.stringFrom=function(e,n){for(var i="",s=n;s<e.length;s++)i+=e[s][1];return e.splice(n,e.length-n),i},r.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)},r.unclosedBracket=function(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})},r.unexpectedClose=function(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})},r.unknownWord=function(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})},r.unnamedAtrule=function(e,n){throw this.input.error("At-rule without name",{offset:n[2]},{offset:n[2]+n[1].length})},t})(),Mh=Qt,Lh=Bh,Nh=Ti;function Hn(t,r){var e=new Nh(t,r),n=new Lh(e);try{n.parse()}catch(i){throw i}return n.root}var Oa=Hn;Hn.default=Hn,Mh.registerParse(Hn);var pt=Wt.isClean,Fh=Wt.my,Vh=Tl,Uh=Ei,jh=Qt,qh=Ta,Fs=Pa,zh=Oa,Wh=cn,Gh={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},$h={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},Hh={Once:!0,postcssPlugin:!0,prepare:!0};function xr(t){return(t===void 0?"undefined":ie(t))==="object"&&typeof t.then=="function"}function $l(t){var r=!1,e=Gh[t.type];return t.type==="decl"?r=t.prop.toLowerCase():t.type==="atrule"&&(r=t.name.toLowerCase()),r&&t.append?[e,e+"-"+r,0,e+"Exit",e+"Exit-"+r]:r?[e,e+"-"+r,e+"Exit",e+"Exit-"+r]:t.append?[e,0,e+"Exit"]:[e,e+"Exit"]}function Vs(t){return{eventIndex:0,events:t.type==="document"?["Document",0,"DocumentExit"]:t.type==="root"?["Root",0,"RootExit"]:$l(t),iterator:0,node:t,visitorIndex:0,visitors:[]}}function Ro(t){return t[pt]=!1,t.nodes&&t.nodes.forEach((function(r){return Ro(r)})),t}var xo={},br=(function(){function t(e,n,i){var s,l=this;if(this.stringified=!1,this.processed=!1,(n===void 0?"undefined":ie(n))!=="object"||n===null||n.type!=="root"&&n.type!=="document")if(J(n,t)||J(n,Fs))s=Ro(n.root),n.map&&(i.map===void 0&&(i.map={}),i.map.inline||(i.map.inline=!1),i.map.prev=n.map);else{var d=zh;i.syntax&&(d=i.syntax.parse),i.parser&&(d=i.parser),d.parse&&(d=d.parse);try{s=d(n,i)}catch(h){this.processed=!0,this.error=h}s&&!s[Fh]&&jh.rebuild(s)}else s=Ro(n);this.result=new Fs(e,s,i),this.helpers=pe({},xo,{postcss:xo,result:this.result}),this.plugins=this.processor.plugins.map((function(h){return(h===void 0?"undefined":ie(h))==="object"&&h.prepare?pe({},h,h.prepare(l.result)):h}))}var r=t.prototype;return r.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},r.catch=function(e){return this.async().catch(e)},r.finally=function(e){return this.async().then(e,e)},r.getAsyncError=function(){throw new Error("Use process(css).then(cb) to work with async plugins")},r.handleError=function(e,n){var i=this.result.lastPlugin;try{n&&n.addToError(e),this.error=e,e.name!=="CssSyntaxError"||e.plugin?i.postcssVersion:(e.plugin=i.postcssPlugin,e.setMessage())}catch(s){console&&console.error&&console.error(s)}return e},r.prepareVisitors=function(){var e=this;this.listeners={};for(var n,i=function(o,a,c){e.listeners[a]||(e.listeners[a]=[]),e.listeners[a].push([o,c])},s=V(this.plugins);!(n=s()).done;){var l=n.value;if((l===void 0?"undefined":ie(l))==="object")for(var d in l){if(!$h[d]&&/^[A-Z]/.test(d))throw new Error("Unknown event "+d+" in "+l.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!Hh[d])if(ie(l[d])==="object")for(var h in l[d])i(l,h==="*"?d:d+"-"+h.toLowerCase(),l[d][h]);else typeof l[d]=="function"&&i(l,d,l[d])}}this.hasListener=Object.keys(this.listeners).length>0},r.runAsync=function(){var e=this;return Ca((function(){var n,i,s,l,d,h,o,a,c,u,p,_;return Xr(this,(function(m){switch(m.label){case 0:e.plugin=0,n=0,m.label=1;case 1:if(!(n<e.plugins.length))return[3,6];if(i=e.plugins[n],!xr(s=e.runOnRoot(i)))return[3,5];m.label=2;case 2:return m.trys.push([2,4,,5]),[4,s];case 3:return m.sent(),[3,5];case 4:throw l=m.sent(),e.handleError(l);case 5:return n++,[3,1];case 6:if(e.prepareVisitors(),!e.hasListener)return[3,18];d=e.result.root,m.label=7;case 7:if(d[pt])return[3,14];d[pt]=!0,h=[Vs(d)],m.label=8;case 8:if(!(h.length>0))return[3,13];if(!xr(o=e.visitTick(h)))return[3,12];m.label=9;case 9:return m.trys.push([9,11,,12]),[4,o];case 10:return m.sent(),[3,12];case 11:throw a=m.sent(),c=h[h.length-1].node,e.handleError(a,c);case 12:return[3,8];case 13:return[3,7];case 14:if(!e.listeners.OnceExit)return[3,18];u=function(){var g,v,y,k,E;return Xr(this,(function(w){switch(w.label){case 0:g=_.value,v=g[0],y=g[1],e.result.lastPlugin=v,w.label=1;case 1:return w.trys.push([1,6,,7]),d.type!=="document"?[3,3]:(k=d.nodes.map((function(C){return y(C,e.helpers)})),[4,Promise.all(k)]);case 2:return w.sent(),[3,5];case 3:return[4,y(d,e.helpers)];case 4:w.sent(),w.label=5;case 5:return[3,7];case 6:throw E=w.sent(),e.handleError(E);case 7:return[2]}}))},p=V(e.listeners.OnceExit),m.label=15;case 15:return(_=p()).done?[3,18]:[5,fl(u())];case 16:m.sent(),m.label=17;case 17:return[3,15];case 18:return e.processed=!0,[2,e.stringify()]}}))}))()},r.runOnRoot=function(e){var n=this;this.result.lastPlugin=e;try{if((e===void 0?"undefined":ie(e))==="object"&&e.Once){if(this.result.root.type==="document"){var i=this.result.root.nodes.map((function(s){return e.Once(s,n.helpers)}));return xr(i[0])?Promise.all(i):i}return e.Once(this.result.root,this.helpers)}if(typeof e=="function")return e(this.result.root,this.result)}catch(s){throw this.handleError(s)}},r.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,n=Uh;e.syntax&&(n=e.syntax.stringify),e.stringifier&&(n=e.stringifier),n.stringify&&(n=n.stringify);var i=new Vh(n,this.result.root,this.result.opts).generate();return this.result.css=i[0],this.result.map=i[1],this.result},r.sync=function(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(var e,n=V(this.plugins);!(e=n()).done;){var i=e.value;if(xr(this.runOnRoot(i)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var s=this.result.root;!s[pt];)s[pt]=!0,this.walkSync(s);if(this.listeners.OnceExit)if(s.type==="document")for(var l,d=V(s.nodes);!(l=d()).done;){var h=l.value;this.visitSync(this.listeners.OnceExit,h)}else this.visitSync(this.listeners.OnceExit,s)}return this.result},r.then=function(e,n){return this.async().then(e,n)},r.toString=function(){return this.css},r.visitSync=function(e,n){for(var i,s=V(e);!(i=s()).done;){var l=i.value,d=l[0],h=l[1];this.result.lastPlugin=d;var o=void 0;try{o=h(n,this.helpers)}catch(a){throw this.handleError(a,n.proxyOf)}if(n.type!=="root"&&n.type!=="document"&&!n.parent)return!0;if(xr(o))throw this.getAsyncError()}},r.visitTick=function(e){var n=e[e.length-1],i=n.node,s=n.visitors;if(i.type==="root"||i.type==="document"||i.parent){if(s.length>0&&n.visitorIndex<s.length){var l=s[n.visitorIndex],d=l[0],h=l[1];n.visitorIndex+=1,n.visitorIndex===s.length&&(n.visitors=[],n.visitorIndex=0),this.result.lastPlugin=d;try{return h(i.toProxy(),this.helpers)}catch(p){throw this.handleError(p,i)}}if(n.iterator!==0){for(var o,a=n.iterator;o=i.nodes[i.indexes[a]];)if(i.indexes[a]+=1,!o[pt])return o[pt]=!0,void e.push(Vs(o));n.iterator=0,delete i.indexes[a]}for(var c=n.events;n.eventIndex<c.length;){var u=c[n.eventIndex];if(n.eventIndex+=1,u===0)return void(i.nodes&&i.nodes.length&&(i[pt]=!0,n.iterator=i.getIterator()));if(this.listeners[u])return void(n.visitors=this.listeners[u])}e.pop()}else e.pop()},r.walkSync=function(e){var n=this;e[pt]=!0;for(var i,s=V($l(e));!(i=s()).done;){var l=i.value;if(l===0)e.nodes&&e.each((function(h){h[pt]||n.walkSync(h)}));else{var d=this.listeners[l];if(d&&this.visitSync(d,e.toProxy()))return}}},r.warnings=function(){return this.sync().warnings()},Ue(t,[{key:"content",get:function(){return this.stringify().content}},{key:"css",get:function(){return this.stringify().css}},{key:"map",get:function(){return this.stringify().map}},{key:"messages",get:function(){return this.sync().messages}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){return this.sync().root}},{key:Symbol.toStringTag,get:function(){return"LazyResult"}}]),t})();br.registerPostcss=function(t){xo=t};var Hl=br;br.default=br,Wh.registerLazyResult(br),qh.registerLazyResult(br);var Zh=Tl,Jh=Ei,Yh=Oa,Xh=Pa,Oo=(function(){function t(e,n,i){var s;n=n.toString(),this.stringified=!1,this._processor=e,this._css=n,this._opts=i,this._map=void 0;var l=Jh;this.result=new Xh(this._processor,s,this._opts),this.result.css=n;var d=this;Object.defineProperty(this.result,"root",{get:function(){return d.root}});var h=new Zh(l,s,this._opts,n);if(h.isMap()){var o=h.generate(),a=o[0],c=o[1];a&&(this.result.css=a),c&&(this.result.map=c)}else h.clearAnnotation(),this.result.css=h.css}var r=t.prototype;return r.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},r.catch=function(e){return this.async().catch(e)},r.finally=function(e){return this.async().then(e,e)},r.sync=function(){if(this.error)throw this.error;return this.result},r.then=function(e,n){return this.async().then(e,n)},r.toString=function(){return this._css},r.warnings=function(){return[]},Ue(t,[{key:"content",get:function(){return this.result.css}},{key:"css",get:function(){return this.result.css}},{key:"map",get:function(){return this.result.map}},{key:"messages",get:function(){return[]}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){if(this._root)return this._root;var e,n=Yh;try{e=n(this._css,this._opts)}catch(i){this.error=i}if(this.error)throw this.error;return this._root=e,e}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),t})(),Qh=Oo;Oo.default=Oo;var Kh=Qh,ep=Hl,tp=Ta,rp=cn,Nr=(function(){function t(e){e===void 0&&(e=[]),this.version="8.4.38",this.plugins=this.normalize(e)}var r=t.prototype;return r.normalize=function(e){for(var n,i=[],s=V(e);!(n=s()).done;){var l=n.value;if(l.postcss===!0?l=l():l.postcss&&(l=l.postcss),(l===void 0?"undefined":ie(l))==="object"&&Array.isArray(l.plugins))i=i.concat(l.plugins);else if((l===void 0?"undefined":ie(l))==="object"&&l.postcssPlugin)i.push(l);else if(typeof l=="function")i.push(l);else if((l===void 0?"undefined":ie(l))!=="object"||!l.parse&&!l.stringify)throw new Error(l+" is not a PostCSS plugin")}return i},r.process=function(e,n){return n===void 0&&(n={}),this.plugins.length||n.parser||n.stringifier||n.syntax?new ep(this,e,n):new Kh(this,e,n)},r.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},t})(),np=Nr;Nr.default=Nr,rp.registerProcessor(Nr),tp.registerProcessor(Nr);var ip=Ii,op=wl,ap=Pi,sp=Ra,cp=Ti,lp=cn,up=xa;function en(t,r){if(Array.isArray(t))return t.map((function(a){return en(a)}));var e=t.inputs,n=Yr(t,["inputs"]);if(e){r=[];for(var i,s=V(e);!(i=s()).done;){var l=pe({},i.value,{__proto__:cp.prototype});l.map&&(l.map=pe({},l.map,{__proto__:op.prototype})),r.push(l)}}if(n.nodes&&(n.nodes=t.nodes.map((function(a){return en(a,r)}))),n.source){var d=n.source,h=d.inputId,o=Yr(d,["inputId"]);n.source=o,h!=null&&(n.source.input=r[h])}if(n.type==="root")return new lp(n);if(n.type==="decl")return new ip(n);if(n.type==="rule")return new up(n);if(n.type==="comment")return new ap(n);if(n.type==="atrule")return new sp(n);throw new Error("Unknown node type: "+t.type)}var dp=en;en.default=en;var hp=Ea,Us=Ii,pp=Hl,fp=Qt,Do=np,mp=Ei,_p=dp,js=Ta,gp=Vl,qs=Pi,zs=Ra,vp=Pa,yp=Ti,bp=Oa,kp=Wl,Ws=xa,Gs=cn,Cp=Ai;function me(){for(var t=arguments.length,r=new Array(t),e=0;e<t;e++)r[e]=arguments[e];return r.length===1&&Array.isArray(r[0])&&(r=r[0]),new Do(r)}me.plugin=function(t,r){var e,n=!1;function i(){for(var s=arguments.length,l=new Array(s),d=0;d<s;d++)l[d]=arguments[d];console&&console.warn&&!n&&(n=!0,console.warn(t+`: postcss.plugin was deprecated. Migration guide:
25
+ https://evilmartians.com/chronicles/postcss-8-plugin-migration`),di.LANG&&di.LANG.startsWith("cn")&&console.warn(t+`: 里面 postcss.plugin 被弃用. 迁移指南:
26
+ https://www.w3ctech.com/topic/2226`));var h=r.apply(void 0,[].concat(l));return h.postcssPlugin=t,h.postcssVersion=new Do().version,h}return Object.defineProperty(i,"postcss",{get:function(){return e||(e=i()),e}}),i.process=function(s,l,d){return me([i(d)]).process(s,l)},i},me.stringify=mp,me.parse=bp,me.fromJSON=_p,me.list=kp,me.comment=function(t){return new qs(t)},me.atRule=function(t){return new zs(t)},me.decl=function(t){return new Us(t)},me.rule=function(t){return new Ws(t)},me.root=function(t){return new Gs(t)},me.document=function(t){return new js(t)},me.CssSyntaxError=hp,me.Declaration=Us,me.Container=fp,me.Processor=Do,me.Document=js,me.Comment=qs,me.Warning=gp,me.AtRule=zs,me.Result=vp,me.Input=yp,me.Rule=Ws,me.Root=Gs,me.Node=Cp,pp.registerPostcss(me);var wp=me;me.default=me;var Se=Yd(wp);Se.stringify,Se.fromJSON,Se.plugin,Se.parse,Se.list,Se.document,Se.comment,Se.atRule,Se.rule,Se.decl,Se.root,Se.CssSyntaxError,Se.Declaration,Se.Container,Se.Processor,Se.Document,Se.Comment,Se.Warning,Se.AtRule,Se.Result,Se.Input,Se.Rule,Se.Root,Se.Node;var Sp=Object.defineProperty,rt=function(t,r,e){return(function(n,i,s){return i in n?Sp(n,i,{enumerable:!0,configurable:!0,writable:!0,value:s}):n[i]=s})(t,(r===void 0?"undefined":ie(r))!=="symbol"?r+"":r,e)};function Ep(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Ap(t){if(t.__esModule)return t;var r=t.default;if(typeof r=="function"){var e=function n(){return J(this,n)?Reflect.construct(r,arguments,this.constructor):r.apply(this,arguments)};e.prototype=r.prototype}else e={};return Object.defineProperty(e,"__esModule",{value:!0}),Object.keys(t).forEach((function(n){var i=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,i.get?i:{enumerable:!0,get:function(){return t[n]}})})),e}var Bo={exports:{}},Ce=String,$s=function(){return{isColorSupported:!1,reset:Ce,bold:Ce,dim:Ce,italic:Ce,underline:Ce,inverse:Ce,hidden:Ce,strikethrough:Ce,black:Ce,red:Ce,green:Ce,yellow:Ce,blue:Ce,magenta:Ce,cyan:Ce,white:Ce,gray:Ce,bgBlack:Ce,bgRed:Ce,bgGreen:Ce,bgYellow:Ce,bgBlue:Ce,bgMagenta:Ce,bgCyan:Ce,bgWhite:Ce}};Bo.exports=$s(),Bo.exports.createColors=$s;var Ip=Bo.exports,De=Ap(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"}))),Hs=Ip,Zs=De,Mo=(function(t){function r(n,i,s,l,d,h){var o;return(o=t.call(this,n)||this).name="CssSyntaxError",o.reason=n,d&&(o.file=d),l&&(o.source=l),h&&(o.plugin=h),i!==void 0&&s!==void 0&&(typeof i=="number"?(o.line=i,o.column=s):(o.line=i.line,o.column=i.column,o.endLine=s.line,o.endColumn=s.column)),o.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(o,r),o}$e(r,t);var e=r.prototype;return e.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",this.line!==void 0&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},e.showSourceCode=function(n){var i=this;if(!this.source)return"";var s=this.source;n==null&&(n=Hs.isColorSupported),Zs&&n&&(s=Zs(s));var l,d,h=s.split(/\r?\n/),o=Math.max(this.line-3,0),a=Math.min(this.line+2,h.length),c=String(a).length;if(n){var u=Hs.createColors(!0),p=u.bold,_=u.gray,m=u.red;l=function(g){return p(m(g))},d=function(g){return _(g)}}else l=d=function(g){return g};return h.slice(o,a).map((function(g,v){var y=o+1+v,k=" "+(" "+y).slice(-c)+" | ";if(y===i.line){var E=d(k.replace(/\d/g," "))+g.slice(0,i.column-1).replace(/[^\t]/g," ");return l(">")+d(k)+g+`
27
+ `+E+l("^")}return" "+d(k)+g})).join(`
28
+ `)},e.toString=function(){var n=this.showSourceCode();return n&&(n=`
29
+
30
+ `+n+`
31
+ `),this.name+": "+this.message+n},r})(hi(Error)),Da=Mo;Mo.default=Mo;var Gt={};Gt.isClean=Symbol("isClean"),Gt.my=Symbol("my");var Js={after:`
32
+ `,beforeClose:`
33
+ `,beforeComment:`
34
+ `,beforeDecl:`
35
+ `,beforeOpen:" ",beforeRule:`
36
+ `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1},Lo=(function(){function t(e){this.builder=e}var r=t.prototype;return r.atrule=function(e,n){var i="@"+e.name,s=e.params?this.rawValue(e,"params"):"";if(e.raws.afterName!==void 0?i+=e.raws.afterName:s&&(i+=" "),e.nodes)this.block(e,i+s);else{var l=(e.raws.between||"")+(n?";":"");this.builder(i+s+l,e)}},r.beforeAfter=function(e,n){var i;i=e.type==="decl"?this.raw(e,null,"beforeDecl"):e.type==="comment"?this.raw(e,null,"beforeComment"):n==="before"?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");for(var s=e.parent,l=0;s&&s.type!=="root";)l+=1,s=s.parent;if(i.includes(`
37
+ `)){var d=this.raw(e,null,"indent");if(d.length)for(var h=0;h<l;h++)i+=d}return i},r.block=function(e,n){var i,s=this.raw(e,"between","beforeOpen");this.builder(n+s+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),i=this.raw(e,"after")):i=this.raw(e,"after","emptyBody"),i&&this.builder(i),this.builder("}",e,"end")},r.body=function(e){for(var n=e.nodes.length-1;n>0&&e.nodes[n].type==="comment";)n-=1;for(var i=this.raw(e,"semicolon"),s=0;s<e.nodes.length;s++){var l=e.nodes[s],d=this.raw(l,"before");d&&this.builder(d),this.stringify(l,n!==s||i)}},r.comment=function(e){var n=this.raw(e,"left","commentLeft"),i=this.raw(e,"right","commentRight");this.builder("/*"+n+e.text+i+"*/",e)},r.decl=function(e,n){var i=this.raw(e,"between","colon"),s=e.prop+i+this.rawValue(e,"value");e.important&&(s+=e.raws.important||" !important"),n&&(s+=";"),this.builder(s,e)},r.document=function(e){this.body(e)},r.raw=function(e,n,i){var s;if(i||(i=n),n&&(s=e.raws[n])!==void 0)return s;var l=e.parent;if(i==="before"&&(!l||l.type==="root"&&l.first===e||l&&l.type==="document"))return"";if(!l)return Js[i];var d=e.root();if(d.rawCache||(d.rawCache={}),d.rawCache[i]!==void 0)return d.rawCache[i];if(i==="before"||i==="after")return this.beforeAfter(e,i);var h,o="raw"+((h=i)[0].toUpperCase()+h.slice(1));return this[o]?s=this[o](d,e):d.walk((function(a){if((s=a.raws[n])!==void 0)return!1})),s===void 0&&(s=Js[i]),d.rawCache[i]=s,s},r.rawBeforeClose=function(e){var n;return e.walk((function(i){if(i.nodes&&i.nodes.length>0&&i.raws.after!==void 0)return(n=i.raws.after).includes(`
38
+ `)&&(n=n.replace(/[^\n]+$/,"")),!1})),n&&(n=n.replace(/\S/g,"")),n},r.rawBeforeComment=function(e,n){var i;return e.walkComments((function(s){if(s.raws.before!==void 0)return(i=s.raws.before).includes(`
39
+ `)&&(i=i.replace(/[^\n]+$/,"")),!1})),i===void 0?i=this.raw(n,null,"beforeDecl"):i&&(i=i.replace(/\S/g,"")),i},r.rawBeforeDecl=function(e,n){var i;return e.walkDecls((function(s){if(s.raws.before!==void 0)return(i=s.raws.before).includes(`
40
+ `)&&(i=i.replace(/[^\n]+$/,"")),!1})),i===void 0?i=this.raw(n,null,"beforeRule"):i&&(i=i.replace(/\S/g,"")),i},r.rawBeforeOpen=function(e){var n;return e.walk((function(i){if(i.type!=="decl"&&(n=i.raws.between)!==void 0)return!1})),n},r.rawBeforeRule=function(e){var n;return e.walk((function(i){if(i.nodes&&(i.parent!==e||e.first!==i)&&i.raws.before!==void 0)return(n=i.raws.before).includes(`
41
+ `)&&(n=n.replace(/[^\n]+$/,"")),!1})),n&&(n=n.replace(/\S/g,"")),n},r.rawColon=function(e){var n;return e.walkDecls((function(i){if(i.raws.between!==void 0)return n=i.raws.between.replace(/[^\s:]/g,""),!1})),n},r.rawEmptyBody=function(e){var n;return e.walk((function(i){if(i.nodes&&i.nodes.length===0&&(n=i.raws.after)!==void 0)return!1})),n},r.rawIndent=function(e){return e.raws.indent?e.raws.indent:(e.walk((function(i){var s=i.parent;if(s&&s!==e&&s.parent&&s.parent===e&&i.raws.before!==void 0){var l=i.raws.before.split(`
42
+ `);return n=(n=l[l.length-1]).replace(/\S/g,""),!1}})),n);var n},r.rawSemicolon=function(e){var n;return e.walk((function(i){if(i.nodes&&i.nodes.length&&i.last.type==="decl"&&(n=i.raws.semicolon)!==void 0)return!1})),n},r.rawValue=function(e,n){var i=e[n],s=e.raws[n];return s&&s.value===i?s.raw:i},r.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},r.rule=function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")},r.stringify=function(e,n){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,n)},t})(),Zl=Lo;Lo.default=Lo;var Tp=Zl;function No(t,r){new Tp(r).stringify(t)}var Ri=No;No.default=No;var wn=Gt.isClean,Pp=Gt.my,Rp=Da,xp=Zl,Op=Ri;function Fo(t,r){var e=new t.constructor;for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&n!=="proxyCache"){var i=t[n],s=i===void 0?"undefined":ie(i);n==="parent"&&s==="object"?r&&(e[n]=r):n==="source"?e[n]=i:Array.isArray(i)?e[n]=i.map((function(l){return Fo(l,e)})):(s==="object"&&i!==null&&(i=Fo(i)),e[n]=i)}return e}var Vo=(function(){function t(e){for(var n in e===void 0&&(e={}),this.raws={},this[wn]=!1,this[Pp]=!0,e)if(n==="nodes"){this.nodes=[];for(var i,s=V(e[n]);!(i=s()).done;){var l=i.value;typeof l.clone=="function"?this.append(l.clone()):this.append(l)}}else this[n]=e[n]}var r=t.prototype;return r.addToError=function(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){var n=this.source;e.stack=e.stack.replace(/\n\s{4}at /,"$&"+n.input.from+":"+n.start.line+":"+n.start.column+"$&")}return e},r.after=function(e){return this.parent.insertAfter(this,e),this},r.assign=function(e){for(var n in e===void 0&&(e={}),e)this[n]=e[n];return this},r.before=function(e){return this.parent.insertBefore(this,e),this},r.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},r.clone=function(e){e===void 0&&(e={});var n=Fo(this);for(var i in e)n[i]=e[i];return n},r.cloneAfter=function(e){e===void 0&&(e={});var n=this.clone(e);return this.parent.insertAfter(this,n),n},r.cloneBefore=function(e){e===void 0&&(e={});var n=this.clone(e);return this.parent.insertBefore(this,n),n},r.error=function(e,n){if(n===void 0&&(n={}),this.source){var i=this.rangeBy(n),s=i.end,l=i.start;return this.source.input.error(e,{column:l.column,line:l.line},{column:s.column,line:s.line},n)}return new Rp(e)},r.getProxyProcessor=function(){return{get:function(e,n){return n==="proxyOf"?e:n==="root"?function(){return e.root().toProxy()}:e[n]},set:function(e,n,i){return e[n]===i||(e[n]=i,n!=="prop"&&n!=="value"&&n!=="name"&&n!=="params"&&n!=="important"&&n!=="text"||e.markDirty()),!0}}},r.markDirty=function(){if(this[wn]){this[wn]=!1;for(var e=this;e=e.parent;)e[wn]=!1}},r.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},r.positionBy=function(e,n){var i=this.source.start;if(e.index)i=this.positionInside(e.index,n);else if(e.word){var s=(n=this.toString()).indexOf(e.word);s!==-1&&(i=this.positionInside(s,n))}return i},r.positionInside=function(e,n){for(var i=n||this.toString(),s=this.source.start.column,l=this.source.start.line,d=0;d<e;d++)i[d]===`
43
+ `?(s=1,l+=1):s+=1;return{column:s,line:l}},r.prev=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}},r.rangeBy=function(e){var n={column:this.source.start.column,line:this.source.start.line},i=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:n.column+1,line:n.line};if(e.word){var s=this.toString(),l=s.indexOf(e.word);l!==-1&&(n=this.positionInside(l,s),i=this.positionInside(l+e.word.length,s))}else e.start?n={column:e.start.column,line:e.start.line}:e.index&&(n=this.positionInside(e.index)),e.end?i={column:e.end.column,line:e.end.line}:typeof e.endIndex=="number"?i=this.positionInside(e.endIndex):e.index&&(i=this.positionInside(e.index+1));return(i.line<n.line||i.line===n.line&&i.column<=n.column)&&(i={column:n.column+1,line:n.line}),{end:i,start:n}},r.raw=function(e,n){return new xp().raw(this,e,n)},r.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},r.replaceWith=function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];if(this.parent){for(var s,l=this,d=!1,h=V(n);!(s=h()).done;){var o=s.value;o===this?d=!0:d?(this.parent.insertAfter(l,o),l=o):this.parent.insertBefore(l,o)}d||this.remove()}return this},r.root=function(){for(var e=this;e.parent&&e.parent.type!=="document";)e=e.parent;return e},r.toJSON=function(e,n){var i={},s=n==null;n=n||new Map;var l=0;for(var d in this)if(Object.prototype.hasOwnProperty.call(this,d)&&d!=="parent"&&d!=="proxyCache"){var h=this[d];if(Array.isArray(h))i[d]=h.map((function(a){return(a===void 0?"undefined":ie(a))==="object"&&a.toJSON?a.toJSON(null,n):a}));else if((h===void 0?"undefined":ie(h))==="object"&&h.toJSON)i[d]=h.toJSON(null,n);else if(d==="source"){var o=n.get(h.input);o==null&&(o=l,n.set(h.input,l),l++),i[d]={end:h.end,inputId:o,start:h.start}}else i[d]=h}return s&&(i.inputs=[].concat(n.keys()).map((function(a){return a.toJSON()}))),i},r.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},r.toString=function(e){e===void 0&&(e=Op),e.stringify&&(e=e.stringify);var n="";return e(this,(function(i){n+=i})),n},r.warn=function(e,n,i){var s={node:this};for(var l in i)s[l]=i[l];return e.warn(n,s)},Ue(t,[{key:"proxyOf",get:function(){return this}}]),t})(),xi=Vo;Vo.default=Vo;var Uo=(function(t){function r(e){var n;return e&&e.value!==void 0&&typeof e.value!="string"&&(e=pe({},e,{value:String(e.value)})),(n=t.call(this,e)||this).type="decl",n}return $e(r,t),Ue(r,[{key:"variable",get:function(){return this.prop.startsWith("--")||this.prop[0]==="$"}}]),r})(xi),Oi=Uo;Uo.default=Uo;var Dp=function(t){t===void 0&&(t=21);for(var r="",e=t;e--;)r+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return r},Ys=De.SourceMapConsumer,Xs=De.SourceMapGenerator,Bp=De.existsSync,Mp=De.readFileSync,Hi=De.dirname,Lp=De.join,jo=(function(){function t(e,n){if(n.map!==!1){this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");var i=n.map?n.map.prev:void 0,s=this.loadMap(n.from,i);!this.mapFile&&n.from&&(this.mapFile=n.from),this.mapFile&&(this.root=Hi(this.mapFile)),s&&(this.text=s)}}var r=t.prototype;return r.consumer=function(){return this.consumerCache||(this.consumerCache=new Ys(this.text)),this.consumerCache},r.decodeInline=function(e){var n;if(/^data:application\/json;charset=utf-?8,/.test(e)||/^data:application\/json,/.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(e)||/^data:application\/json;base64,/.test(e))return n=e.substr(RegExp.lastMatch.length),zt?zt.from(n,"base64").toString():window.atob(n);var i=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+i)},r.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},r.isMap=function(e){return(e===void 0?"undefined":ie(e))==="object"&&(typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections))},r.loadAnnotation=function(e){var n=e.match(/\/\*\s*# sourceMappingURL=/gm);if(n){var i=e.lastIndexOf(n.pop()),s=e.indexOf("*/",i);i>-1&&s>-1&&(this.annotation=this.getAnnotationURL(e.substring(i,s)))}},r.loadFile=function(e){if(this.root=Hi(e),Bp(e))return this.mapFile=e,Mp(e,"utf-8").toString().trim()},r.loadMap=function(e,n){if(n===!1)return!1;if(n){if(typeof n=="string")return n;if(typeof n!="function"){if(J(n,Ys))return Xs.fromSourceMap(n).toString();if(J(n,Xs))return n.toString();if(this.isMap(n))return JSON.stringify(n);throw new Error("Unsupported previous source map format: "+n.toString())}var i=n(e);if(i){var s=this.loadFile(i);if(!s)throw new Error("Unable to load previous source map: "+i.toString());return s}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var l=this.annotation;return e&&(l=Lp(Hi(e),l)),this.loadFile(l)}}},r.startWith=function(e,n){return!!e&&e.substr(0,n.length)===n},r.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},t})(),Jl=jo;jo.default=jo;var Np=De.SourceMapConsumer,Fp=De.SourceMapGenerator,Qs=De.fileURLToPath,Sn=De.pathToFileURL,qo=De.isAbsolute,zo=De.resolve,Vp=Dp,Zi=De,Ks=Da,Up=Jl,Ji=Symbol("fromOffsetCache"),jp=!!(Np&&Fp),ec=!!(zo&&qo),Zn=(function(){function t(e,n){if(n===void 0&&(n={}),e==null||(e===void 0?"undefined":ie(e))==="object"&&!e.toString)throw new Error("PostCSS received "+e+" instead of CSS string");if(this.css=e.toString(),this.css[0]==="\uFEFF"||this.css[0]==="￾"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,n.from&&(!ec||/^\w+:\/\//.test(n.from)||qo(n.from)?this.file=n.from:this.file=zo(n.from)),ec&&jp){var i=new Up(this.css,n);if(i.text){this.map=i;var s=i.consumer().file;!this.file&&s&&(this.file=this.mapResolve(s))}}this.file||(this.id="<input css "+Vp(6)+">"),this.map&&(this.map.file=this.from)}var r=t.prototype;return r.error=function(e,n,i,s){var l,d,h;if(s===void 0&&(s={}),n&&(n===void 0?"undefined":ie(n))==="object"){var o=n,a=i;if(typeof o.offset=="number"){var c=this.fromOffset(o.offset);n=c.line,i=c.col}else n=o.line,i=o.column;if(typeof a.offset=="number"){var u=this.fromOffset(a.offset);d=u.line,h=u.col}else d=a.line,h=a.column}else if(!i){var p=this.fromOffset(n);n=p.line,i=p.col}var _=this.origin(n,i,d,h);return(l=_?new Ks(e,_.endLine===void 0?_.line:{column:_.column,line:_.line},_.endLine===void 0?_.column:{column:_.endColumn,line:_.endLine},_.source,_.file,s.plugin):new Ks(e,d===void 0?n:{column:i,line:n},d===void 0?i:{column:h,line:d},this.css,this.file,s.plugin)).input={column:i,endColumn:h,endLine:d,line:n,source:this.css},this.file&&(Sn&&(l.input.url=Sn(this.file).toString()),l.input.file=this.file),l},r.fromOffset=function(e){var n;if(this[Ji])n=this[Ji];else{var i=this.css.split(`
44
+ `);n=new Array(i.length);for(var s=0,l=0,d=i.length;l<d;l++)n[l]=s,s+=i[l].length+1;this[Ji]=n}var h=0;if(e>=n[n.length-1])h=n.length-1;else for(var o,a=n.length-2;h<a;)if(e<n[o=h+(a-h>>1)])a=o-1;else{if(!(e>=n[o+1])){h=o;break}h=o+1}return{col:e-n[h]+1,line:h+1}},r.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:zo(this.map.consumer().sourceRoot||this.map.root||".",e)},r.origin=function(e,n,i,s){if(!this.map)return!1;var l,d,h=this.map.consumer(),o=h.originalPositionFor({column:n,line:e});if(!o.source)return!1;typeof i=="number"&&(l=h.originalPositionFor({column:s,line:i})),d=qo(o.source)?Sn(o.source):new URL(o.source,this.map.consumer().sourceRoot||Sn(this.map.mapFile));var a={column:o.column,endColumn:l&&l.column,endLine:l&&l.line,line:o.line,url:d.toString()};if(d.protocol==="file:"){if(!Qs)throw new Error("file: protocol is not available in this PostCSS build");a.file=Qs(d)}var c=h.sourceContentFor(o.source);return c&&(a.source=c),a},r.toJSON=function(){for(var e={},n=0,i=["hasBOM","css","file","id"];n<i.length;n++){var s=i[n];this[s]!=null&&(e[s]=this[s])}return this.map&&(e.map=pe({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},Ue(t,[{key:"from",get:function(){return this.file||this.id}}]),t})(),Di=Zn;Zn.default=Zn,Zi&&Zi.registerInput&&Zi.registerInput(Zn);var Yl=De.SourceMapConsumer,Jn=De.SourceMapGenerator,Yn=De.dirname,Xl=De.relative,Ql=De.resolve,Kl=De.sep,tc=De.pathToFileURL,qp=Di,zp=!!(Yl&&Jn),Wp=!!(Yn&&Ql&&Xl&&Kl),eu=(function(){function t(e,n,i,s){this.stringify=e,this.mapOpts=i.map||{},this.root=n,this.opts=i,this.css=s,this.originalCSS=s,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}var r=t.prototype;return r.addAnnotation=function(){var e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";var n=`
45
+ `;this.css.includes(`\r
46
+ `)&&(n=`\r
47
+ `),this.css+=n+"/*# sourceMappingURL="+e+" */"},r.applyPrevMaps=function(){for(var e,n=V(this.previous());!(e=n()).done;){var i=e.value,s=this.toUrl(this.path(i.file)),l=i.root||Yn(i.file),d=void 0;this.mapOpts.sourcesContent===!1?(d=new Yl(i.text)).sourcesContent&&(d.sourcesContent=null):d=i.consumer(),this.map.applySourceMap(d,s,this.toUrl(this.path(l)))}},r.clearAnnotation=function(){if(this.mapOpts.annotation!==!1)if(this.root)for(var e,n=this.root.nodes.length-1;n>=0;n--)(e=this.root.nodes[n]).type==="comment"&&e.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(n);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))},r.generate=function(){if(this.clearAnnotation(),Wp&&zp&&this.isMap())return this.generateMap();var e="";return this.stringify(this.root,(function(n){e+=n})),[e]},r.generateMap=function(){if(this.root)this.generateString();else if(this.previous().length===1){var e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=Jn.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new Jn({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]},r.generateString=function(){var e=this;this.css="",this.map=new Jn({file:this.outputFile(),ignoreInvalidMapping:!0});var n,i,s=1,l=1,d="<no source>",h={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,(function(o,a,c){if(e.css+=o,a&&c!=="end"&&(h.generated.line=s,h.generated.column=l-1,a.source&&a.source.start?(h.source=e.sourcePath(a),h.original.line=a.source.start.line,h.original.column=a.source.start.column-1,e.map.addMapping(h)):(h.source=d,h.original.line=1,h.original.column=0,e.map.addMapping(h))),(n=o.match(/\n/g))?(s+=n.length,i=o.lastIndexOf(`
48
+ `),l=o.length-i):l+=o.length,a&&c!=="start"){var u=a.parent||{raws:{}};(a.type==="decl"||a.type==="atrule"&&!a.nodes)&&a===u.last&&!u.raws.semicolon||(a.source&&a.source.end?(h.source=e.sourcePath(a),h.original.line=a.source.end.line,h.original.column=a.source.end.column-1,h.generated.line=s,h.generated.column=l-2,e.map.addMapping(h)):(h.source=d,h.original.line=1,h.original.column=0,h.generated.line=s,h.generated.column=l-1,e.map.addMapping(h)))}}))},r.isAnnotation=function(){return!!this.isInline()||(this.mapOpts.annotation!==void 0?this.mapOpts.annotation:!this.previous().length||this.previous().some((function(e){return e.annotation})))},r.isInline=function(){if(this.mapOpts.inline!==void 0)return this.mapOpts.inline;var e=this.mapOpts.annotation;return(e===void 0||e===!0)&&(!this.previous().length||this.previous().some((function(n){return n.inline})))},r.isMap=function(){return this.opts.map!==void 0?!!this.opts.map:this.previous().length>0},r.isSourcesContent=function(){return this.mapOpts.sourcesContent!==void 0?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some((function(e){return e.withContent()}))},r.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},r.path=function(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;var n=this.memoizedPaths.get(e);if(n)return n;var i=this.opts.to?Yn(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(i=Yn(Ql(i,this.mapOpts.annotation)));var s=Xl(i,e);return this.memoizedPaths.set(e,s),s},r.previous=function(){var e=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk((function(i){if(i.source&&i.source.input.map){var s=i.source.input.map;e.previousMaps.includes(s)||e.previousMaps.push(s)}}));else{var n=new qp(this.originalCSS,this.opts);n.map&&this.previousMaps.push(n.map)}return this.previousMaps},r.setSourcesContent=function(){var e=this,n={};if(this.root)this.root.walk((function(s){if(s.source){var l=s.source.input.from;if(l&&!n[l]){n[l]=!0;var d=e.usesFileUrls?e.toFileUrl(l):e.toUrl(e.path(l));e.map.setSourceContent(d,s.source.input.css)}}}));else if(this.css){var i=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(i,this.css)}},r.sourcePath=function(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))},r.toBase64=function(e){return zt?zt.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},r.toFileUrl=function(e){var n=this.memoizedFileURLs.get(e);if(n)return n;if(tc){var i=tc(e).toString();return this.memoizedFileURLs.set(e,i),i}throw new Error("`map.absolute` option is not available in this PostCSS build")},r.toUrl=function(e){var n=this.memoizedURLs.get(e);if(n)return n;Kl==="\\"&&(e=e.replace(/\\/g,"/"));var i=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,i),i},t})(),Wo=(function(t){function r(e){var n;return(n=t.call(this,e)||this).type="comment",n}return $e(r,t),r})(xi),Bi=Wo;Wo.default=Wo;var tu,Ba,Ma,ru,nu=Gt.isClean,iu=Gt.my,ou=Oi,au=Bi;function su(t){return t.map((function(r){return r.nodes&&(r.nodes=su(r.nodes)),delete r.source,r}))}function cu(t){if(t[nu]=!1,t.proxyOf.nodes)for(var r,e=V(t.proxyOf.nodes);!(r=e()).done;)cu(r.value)}var Pt=(function(t){function r(){return t.apply(this,arguments)||this}$e(r,t);var e=r.prototype;return e.append=function(){for(var n=arguments.length,i=new Array(n),s=0;s<n;s++)i[s]=arguments[s];for(var l,d=V(i);!(l=d()).done;)for(var h,o=l.value,a=V(this.normalize(o,this.last));!(h=a()).done;){var c=h.value;this.proxyOf.nodes.push(c)}return this.markDirty(),this},e.cleanRaws=function(n){if(t.prototype.cleanRaws.call(this,n),this.nodes)for(var i,s=V(this.nodes);!(i=s()).done;)i.value.cleanRaws(n)},e.each=function(n){if(this.proxyOf.nodes){for(var i,s,l=this.getIterator();this.indexes[l]<this.proxyOf.nodes.length&&(i=this.indexes[l],(s=n(this.proxyOf.nodes[i],i))!==!1);)this.indexes[l]+=1;return delete this.indexes[l],s}},e.every=function(n){return this.nodes.every(n)},e.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var n=this.lastEach;return this.indexes[n]=0,n},e.getProxyProcessor=function(){return{get:function(n,i){return i==="proxyOf"?n:n[i]?i==="each"||typeof i=="string"&&i.startsWith("walk")?function(){for(var s=arguments.length,l=new Array(s),d=0;d<s;d++)l[d]=arguments[d];var h;return(h=n)[i].apply(h,[].concat(l.map((function(o){return typeof o=="function"?function(a,c){return o(a.toProxy(),c)}:o}))))}:i==="every"||i==="some"?function(s){return n[i]((function(l){for(var d=arguments.length,h=new Array(d>1?d-1:0),o=1;o<d;o++)h[o-1]=arguments[o];return s.apply(void 0,[].concat([l.toProxy()],h))}))}:i==="root"?function(){return n.root().toProxy()}:i==="nodes"?n.nodes.map((function(s){return s.toProxy()})):i==="first"||i==="last"?n[i].toProxy():n[i]:n[i]},set:function(n,i,s){return n[i]===s||(n[i]=s,i!=="name"&&i!=="params"&&i!=="selector"||n.markDirty()),!0}}},e.index=function(n){return typeof n=="number"?n:(n.proxyOf&&(n=n.proxyOf),this.proxyOf.nodes.indexOf(n))},e.insertAfter=function(n,i){var s,l=this.index(n),d=this.normalize(i,this.proxyOf.nodes[l]).reverse();l=this.index(n);for(var h,o=V(d);!(h=o()).done;){var a=h.value;this.proxyOf.nodes.splice(l+1,0,a)}for(var c in this.indexes)l<(s=this.indexes[c])&&(this.indexes[c]=s+d.length);return this.markDirty(),this},e.insertBefore=function(n,i){var s,l=this.index(n),d=l===0&&"prepend",h=this.normalize(i,this.proxyOf.nodes[l],d).reverse();l=this.index(n);for(var o,a=V(h);!(o=a()).done;){var c=o.value;this.proxyOf.nodes.splice(l,0,c)}for(var u in this.indexes)l<=(s=this.indexes[u])&&(this.indexes[u]=s+h.length);return this.markDirty(),this},e.normalize=function(n,i){var s=this;if(typeof n=="string")n=su(tu(n).nodes);else if(n===void 0)n=[];else if(Array.isArray(n))for(var l,d=V(n=n.slice(0));!(l=d()).done;){var h=l.value;h.parent&&h.parent.removeChild(h,"ignore")}else if(n.type==="root"&&this.type!=="document")for(var o,a=V(n=n.nodes.slice(0));!(o=a()).done;){var c=o.value;c.parent&&c.parent.removeChild(c,"ignore")}else if(n.type)n=[n];else if(n.prop){if(n.value===void 0)throw new Error("Value field is missed in node creation");typeof n.value!="string"&&(n.value=String(n.value)),n=[new ou(n)]}else if(n.selector)n=[new Ba(n)];else if(n.name)n=[new Ma(n)];else{if(!n.text)throw new Error("Unknown node type in node creation");n=[new au(n)]}return n.map((function(u){return u[iu]||r.rebuild(u),(u=u.proxyOf).parent&&u.parent.removeChild(u),u[nu]&&cu(u),u.raws.before===void 0&&i&&i.raws.before!==void 0&&(u.raws.before=i.raws.before.replace(/\S/g,"")),u.parent=s.proxyOf,u}))},e.prepend=function(){for(var n=arguments.length,i=new Array(n),s=0;s<n;s++)i[s]=arguments[s];for(var l,d=V(i=i.reverse());!(l=d()).done;){for(var h,o=l.value,a=this.normalize(o,this.first,"prepend").reverse(),c=V(a);!(h=c()).done;){var u=h.value;this.proxyOf.nodes.unshift(u)}for(var p in this.indexes)this.indexes[p]=this.indexes[p]+a.length}return this.markDirty(),this},e.push=function(n){return n.parent=this,this.proxyOf.nodes.push(n),this},e.removeAll=function(){for(var n,i=V(this.proxyOf.nodes);!(n=i()).done;)n.value.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this},e.removeChild=function(n){var i;for(var s in n=this.index(n),this.proxyOf.nodes[n].parent=void 0,this.proxyOf.nodes.splice(n,1),this.indexes)(i=this.indexes[s])>=n&&(this.indexes[s]=i-1);return this.markDirty(),this},e.replaceValues=function(n,i,s){return s||(s=i,i={}),this.walkDecls((function(l){i.props&&!i.props.includes(l.prop)||i.fast&&!l.value.includes(i.fast)||(l.value=l.value.replace(n,s))})),this.markDirty(),this},e.some=function(n){return this.nodes.some(n)},e.walk=function(n){return this.each((function(i,s){var l;try{l=n(i,s)}catch(d){throw i.addToError(d)}return l!==!1&&i.walk&&(l=i.walk(n)),l}))},e.walkAtRules=function(n,i){return i?J(n,RegExp)?this.walk((function(s,l){if(s.type==="atrule"&&n.test(s.name))return i(s,l)})):this.walk((function(s,l){if(s.type==="atrule"&&s.name===n)return i(s,l)})):(i=n,this.walk((function(s,l){if(s.type==="atrule")return i(s,l)})))},e.walkComments=function(n){return this.walk((function(i,s){if(i.type==="comment")return n(i,s)}))},e.walkDecls=function(n,i){return i?J(n,RegExp)?this.walk((function(s,l){if(s.type==="decl"&&n.test(s.prop))return i(s,l)})):this.walk((function(s,l){if(s.type==="decl"&&s.prop===n)return i(s,l)})):(i=n,this.walk((function(s,l){if(s.type==="decl")return i(s,l)})))},e.walkRules=function(n,i){return i?J(n,RegExp)?this.walk((function(s,l){if(s.type==="rule"&&n.test(s.selector))return i(s,l)})):this.walk((function(s,l){if(s.type==="rule"&&s.selector===n)return i(s,l)})):(i=n,this.walk((function(s,l){if(s.type==="rule")return i(s,l)})))},Ue(r,[{key:"first",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}},{key:"last",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}]),r})(xi);Pt.registerParse=function(t){tu=t},Pt.registerRule=function(t){Ba=t},Pt.registerAtRule=function(t){Ma=t},Pt.registerRoot=function(t){ru=t};var Kt=Pt;Pt.default=Pt,Pt.rebuild=function(t){t.type==="atrule"?Object.setPrototypeOf(t,Ma.prototype):t.type==="rule"?Object.setPrototypeOf(t,Ba.prototype):t.type==="decl"?Object.setPrototypeOf(t,ou.prototype):t.type==="comment"?Object.setPrototypeOf(t,au.prototype):t.type==="root"&&Object.setPrototypeOf(t,ru.prototype),t[iu]=!0,t.nodes&&t.nodes.forEach((function(r){Pt.rebuild(r)}))};var lu,uu,tn=(function(t){function r(e){var n;return(n=t.call(this,pe({type:"document"},e))||this).nodes||(n.nodes=[]),n}return $e(r,t),r.prototype.toResult=function(e){return e===void 0&&(e={}),new lu(new uu,this,e).stringify()},r})(Kt);tn.registerLazyResult=function(t){lu=t},tn.registerProcessor=function(t){uu=t};var La=tn;tn.default=tn;var Go=(function(){function t(r,e){if(e===void 0&&(e={}),this.type="warning",this.text=r,e.node&&e.node.source){var n=e.node.rangeBy(e);this.line=n.start.line,this.column=n.start.column,this.endLine=n.end.line,this.endColumn=n.end.column}for(var i in e)this[i]=e[i]}return t.prototype.toString=function(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text},t})(),du=Go;Go.default=Go;var Gp=du,$o=(function(){function t(e,n,i){this.processor=e,this.messages=[],this.root=n,this.opts=i,this.css=void 0,this.map=void 0}var r=t.prototype;return r.toString=function(){return this.css},r.warn=function(e,n){n===void 0&&(n={}),n.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(n.plugin=this.lastPlugin.postcssPlugin);var i=new Gp(e,n);return this.messages.push(i),i},r.warnings=function(){return this.messages.filter((function(e){return e.type==="warning"}))},Ue(t,[{key:"content",get:function(){return this.css}}]),t})(),Na=$o;$o.default=$o;var Yi=39,rc=34,En=92,nc=47,An=10,Or=32,In=12,Tn=9,Pn=13,$p=91,Hp=93,Zp=40,Jp=41,Yp=123,Xp=125,Qp=59,Kp=42,ef=58,tf=64,Rn=/[\t\n\f\r "#'()/;[\\\]{}]/g,xn=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,rf=/.[\r\n"'(/\\]/,ic=/[\da-f]/i,hu=Kt,Xn=(function(t){function r(n){var i;return(i=t.call(this,n)||this).type="atrule",i}$e(r,t);var e=r.prototype;return e.append=function(){for(var n=arguments.length,i=new Array(n),s=0;s<n;s++)i[s]=arguments[s];var l;return this.proxyOf.nodes||(this.nodes=[]),(l=t.prototype.append).call.apply(l,[].concat([this],i))},e.prepend=function(){for(var n=arguments.length,i=new Array(n),s=0;s<n;s++)i[s]=arguments[s];var l;return this.proxyOf.nodes||(this.nodes=[]),(l=t.prototype.prepend).call.apply(l,[].concat([this],i))},r})(hu),Fa=Xn;Xn.default=Xn,hu.registerAtRule(Xn);var pu,fu,mu=Kt,wr=(function(t){function r(n){var i;return(i=t.call(this,n)||this).type="root",i.nodes||(i.nodes=[]),i}$e(r,t);var e=r.prototype;return e.normalize=function(n,i,s){var l=t.prototype.normalize.call(this,n);if(i){if(s==="prepend")this.nodes.length>1?i.raws.before=this.nodes[1].raws.before:delete i.raws.before;else if(this.first!==i)for(var d,h=V(l);!(d=h()).done;)d.value.raws.before=i.raws.before}return l},e.removeChild=function(n,i){var s=this.index(n);return!i&&s===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[s].raws.before),t.prototype.removeChild.call(this,n)},e.toResult=function(n){return n===void 0&&(n={}),new pu(new fu,this,n).stringify()},r})(mu);wr.registerLazyResult=function(t){pu=t},wr.registerProcessor=function(t){fu=t};var ln=wr;wr.default=wr,mu.registerRoot(wr);var rn={comma:function(t){return rn.split(t,[","],!0)},space:function(t){return rn.split(t,[" ",`
49
+ `," "])},split:function(t,r,e){for(var n,i=[],s="",l=!1,d=0,h=!1,o="",a=!1,c=V(t);!(n=c()).done;){var u=n.value;a?a=!1:u==="\\"?a=!0:h?u===o&&(h=!1):u==='"'||u==="'"?(h=!0,o=u):u==="("?d+=1:u===")"?d>0&&(d-=1):d===0&&r.includes(u)&&(l=!0),l?(s!==""&&i.push(s.trim()),s="",l=!1):s+=u}return(e||s!=="")&&i.push(s.trim()),i}},_u=rn;rn.default=rn;var gu=Kt,nf=_u,Qn=(function(t){function r(e){var n;return(n=t.call(this,e)||this).type="rule",n.nodes||(n.nodes=[]),n}return $e(r,t),Ue(r,[{key:"selectors",get:function(){return nf.comma(this.selector)},set:function(e){var n=this.selector?this.selector.match(/,\s*/):null,i=n?n[0]:","+this.raw("between","beforeOpen");this.selector=e.join(i)}}]),r})(gu),Va=Qn;Qn.default=Qn,gu.registerRule(Qn);var of=Oi,af=function(t,r){r===void 0&&(r={});var e,n,i,s,l,d,h,o,a,c,u=t.css.valueOf(),p=r.ignoreErrors,_=u.length,m=0,g=[],v=[];function y(k){throw t.error("Unclosed "+k,m)}return{back:function(k){v.push(k)},endOfFile:function(){return v.length===0&&m>=_},nextToken:function(k){if(v.length)return v.pop();if(!(m>=_)){var E=!!k&&k.ignoreUnclosed;switch(e=u.charCodeAt(m)){case An:case Or:case Tn:case Pn:case In:n=m;do n+=1,e=u.charCodeAt(n);while(e===Or||e===An||e===Tn||e===Pn||e===In);c=["space",u.slice(m,n)],m=n-1;break;case $p:case Hp:case Yp:case Xp:case ef:case Qp:case Jp:var w=String.fromCharCode(e);c=[w,w,m];break;case Zp:if(o=g.length?g.pop()[1]:"",a=u.charCodeAt(m+1),o==="url"&&a!==Yi&&a!==rc&&a!==Or&&a!==An&&a!==Tn&&a!==In&&a!==Pn){n=m;do{if(d=!1,(n=u.indexOf(")",n+1))===-1){if(p||E){n=m;break}y("bracket")}for(h=n;u.charCodeAt(h-1)===En;)h-=1,d=!d}while(d);c=["brackets",u.slice(m,n+1),m,n],m=n}else n=u.indexOf(")",m+1),s=u.slice(m,n+1),n===-1||rf.test(s)?c=["(","(",m]:(c=["brackets",s,m,n],m=n);break;case Yi:case rc:i=e===Yi?"'":'"',n=m;do{if(d=!1,(n=u.indexOf(i,n+1))===-1){if(p||E){n=m+1;break}y("string")}for(h=n;u.charCodeAt(h-1)===En;)h-=1,d=!d}while(d);c=["string",u.slice(m,n+1),m,n],m=n;break;case tf:Rn.lastIndex=m+1,Rn.test(u),n=Rn.lastIndex===0?u.length-1:Rn.lastIndex-2,c=["at-word",u.slice(m,n+1),m,n],m=n;break;case En:for(n=m,l=!0;u.charCodeAt(n+1)===En;)n+=1,l=!l;if(e=u.charCodeAt(n+1),l&&e!==nc&&e!==Or&&e!==An&&e!==Tn&&e!==Pn&&e!==In&&(n+=1,ic.test(u.charAt(n)))){for(;ic.test(u.charAt(n+1));)n+=1;u.charCodeAt(n+1)===Or&&(n+=1)}c=["word",u.slice(m,n+1),m,n],m=n;break;default:e===nc&&u.charCodeAt(m+1)===Kp?((n=u.indexOf("*/",m+2)+1)===0&&(p||E?n=u.length:y("comment")),c=["comment",u.slice(m,n+1),m,n],m=n):(xn.lastIndex=m+1,xn.test(u),n=xn.lastIndex===0?u.length-1:xn.lastIndex-2,c=["word",u.slice(m,n+1),m,n],g.push(c),m=n)}return m++,c}},position:function(){return m}}},sf=Bi,cf=Fa,lf=ln,oc=Va,ac={empty:!0,space:!0},uf=(function(){function t(e){this.input=e,this.root=new lf,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}var r=t.prototype;return r.atrule=function(e){var n,i,s,l=new cf;l.name=e[1].slice(1),l.name===""&&this.unnamedAtrule(l,e),this.init(l,e[2]);for(var d=!1,h=!1,o=[],a=[];!this.tokenizer.endOfFile();){if((n=(e=this.tokenizer.nextToken())[0])==="("||n==="["?a.push(n==="("?")":"]"):n==="{"&&a.length>0?a.push("}"):n===a[a.length-1]&&a.pop(),a.length===0){if(n===";"){l.source.end=this.getPosition(e[2]),l.source.end.offset++,this.semicolon=!0;break}if(n==="{"){h=!0;break}if(n==="}"){if(o.length>0){for(i=o[s=o.length-1];i&&i[0]==="space";)i=o[--s];i&&(l.source.end=this.getPosition(i[3]||i[2]),l.source.end.offset++)}this.end(e);break}o.push(e)}else o.push(e);if(this.tokenizer.endOfFile()){d=!0;break}}l.raws.between=this.spacesAndCommentsFromEnd(o),o.length?(l.raws.afterName=this.spacesAndCommentsFromStart(o),this.raw(l,"params",o),d&&(e=o[o.length-1],l.source.end=this.getPosition(e[3]||e[2]),l.source.end.offset++,this.spaces=l.raws.between,l.raws.between="")):(l.raws.afterName="",l.params=""),h&&(l.nodes=[],this.current=l)},r.checkMissedSemicolon=function(e){var n=this.colon(e);if(n!==!1){for(var i,s=0,l=n-1;l>=0&&((i=e[l])[0]==="space"||(s+=1)!==2);l--);throw this.input.error("Missed semicolon",i[0]==="word"?i[3]+1:i[2])}},r.colon=function(e){for(var n,i,s,l,d=0,h=V(e.entries());!(l=h()).done;){var o=l.value,a=o[0];if((i=(n=o[1])[0])==="("&&(d+=1),i===")"&&(d-=1),d===0&&i===":"){if(s){if(s[0]==="word"&&s[1]==="progid")continue;return a}this.doubleColon(n)}s=n}return!1},r.comment=function(e){var n=new sf;this.init(n,e[2]),n.source.end=this.getPosition(e[3]||e[2]),n.source.end.offset++;var i=e[1].slice(2,-2);if(/^\s*$/.test(i))n.text="",n.raws.left=i,n.raws.right="";else{var s=i.match(/^(\s*)([^]*\S)(\s*)$/);n.text=s[2],n.raws.left=s[1],n.raws.right=s[3]}},r.createTokenizer=function(){this.tokenizer=af(this.input)},r.decl=function(e,n){var i=new of;this.init(i,e[0][2]);var s,l=e[e.length-1];for(l[0]===";"&&(this.semicolon=!0,e.pop()),i.source.end=this.getPosition(l[3]||l[2]||(function(g){for(var v=g.length-1;v>=0;v--){var y=g[v],k=y[3]||y[2];if(k)return k}})(e)),i.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),i.raws.before+=e.shift()[1];for(i.source.start=this.getPosition(e[0][2]),i.prop="";e.length;){var d=e[0][0];if(d===":"||d==="space"||d==="comment")break;i.prop+=e.shift()[1]}for(i.raws.between="";e.length;){if((s=e.shift())[0]===":"){i.raws.between+=s[1];break}s[0]==="word"&&/\w/.test(s[1])&&this.unknownWord([s]),i.raws.between+=s[1]}i.prop[0]!=="_"&&i.prop[0]!=="*"||(i.raws.before+=i.prop[0],i.prop=i.prop.slice(1));for(var h,o=[];e.length&&((h=e[0][0])==="space"||h==="comment");)o.push(e.shift());this.precheckMissedSemicolon(e);for(var a=e.length-1;a>=0;a--){if((s=e[a])[1].toLowerCase()==="!important"){i.important=!0;var c=this.stringFrom(e,a);(c=this.spacesFromEnd(e)+c)!==" !important"&&(i.raws.important=c);break}if(s[1].toLowerCase()==="important"){for(var u=e.slice(0),p="",_=a;_>0;_--){var m=u[_][0];if(p.trim().indexOf("!")===0&&m!=="space")break;p=u.pop()[1]+p}p.trim().indexOf("!")===0&&(i.important=!0,i.raws.important=p,e=u)}if(s[0]!=="space"&&s[0]!=="comment")break}e.some((function(g){return g[0]!=="space"&&g[0]!=="comment"}))&&(i.raws.between+=o.map((function(g){return g[1]})).join(""),o=[]),this.raw(i,"value",o.concat(e),n),i.value.includes(":")&&!n&&this.checkMissedSemicolon(e)},r.doubleColon=function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})},r.emptyRule=function(e){var n=new oc;this.init(n,e[2]),n.selector="",n.raws.between="",this.current=n},r.end=function(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)},r.endFile=function(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())},r.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var n=this.current.nodes[this.current.nodes.length-1];n&&n.type==="rule"&&!n.raws.ownSemicolon&&(n.raws.ownSemicolon=this.spaces,this.spaces="")}},r.getPosition=function(e){var n=this.input.fromOffset(e);return{column:n.col,line:n.line,offset:e}},r.init=function(e,n){this.current.push(e),e.source={input:this.input,start:this.getPosition(n)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)},r.other=function(e){for(var n=!1,i=null,s=!1,l=null,d=[],h=e[1].startsWith("--"),o=[],a=e;a;){if(i=a[0],o.push(a),i==="("||i==="[")l||(l=a),d.push(i==="("?")":"]");else if(h&&s&&i==="{")l||(l=a),d.push("}");else if(d.length===0){if(i===";"){if(s)return void this.decl(o,h);break}if(i==="{")return void this.rule(o);if(i==="}"){this.tokenizer.back(o.pop()),n=!0;break}i===":"&&(s=!0)}else i===d[d.length-1]&&(d.pop(),d.length===0&&(l=null));a=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(n=!0),d.length>0&&this.unclosedBracket(l),n&&s){if(!h)for(;o.length&&((a=o[o.length-1][0])==="space"||a==="comment");)this.tokenizer.back(o.pop());this.decl(o,h)}else this.unknownWord(o)},r.parse=function(){for(var e;!this.tokenizer.endOfFile();)switch((e=this.tokenizer.nextToken())[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()},r.precheckMissedSemicolon=function(){},r.raw=function(e,n,i,s){for(var l,d,h,o,a=i.length,c="",u=!0,p=0;p<a;p+=1)(d=(l=i[p])[0])!=="space"||p!==a-1||s?d==="comment"?(o=i[p-1]?i[p-1][0]:"empty",h=i[p+1]?i[p+1][0]:"empty",ac[o]||ac[h]||c.slice(-1)===","?u=!1:c+=l[1]):c+=l[1]:u=!1;if(!u){var _=i.reduce((function(m,g){return m+g[1]}),"");e.raws[n]={raw:_,value:c}}e[n]=c},r.rule=function(e){e.pop();var n=new oc;this.init(n,e[0][2]),n.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(n,"selector",e),this.current=n},r.spacesAndCommentsFromEnd=function(e){for(var n,i="";e.length&&((n=e[e.length-1][0])==="space"||n==="comment");)i=e.pop()[1]+i;return i},r.spacesAndCommentsFromStart=function(e){for(var n,i="";e.length&&((n=e[0][0])==="space"||n==="comment");)i+=e.shift()[1];return i},r.spacesFromEnd=function(e){for(var n="";e.length&&e[e.length-1][0]==="space";)n=e.pop()[1]+n;return n},r.stringFrom=function(e,n){for(var i="",s=n;s<e.length;s++)i+=e[s][1];return e.splice(n,e.length-n),i},r.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)},r.unclosedBracket=function(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})},r.unexpectedClose=function(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})},r.unknownWord=function(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})},r.unnamedAtrule=function(e,n){throw this.input.error("At-rule without name",{offset:n[2]},{offset:n[2]+n[1].length})},t})(),df=Kt,hf=uf,pf=Di;function Kn(t,r){var e=new pf(t,r),n=new hf(e);try{n.parse()}catch(i){throw i}return n.root}var Ua=Kn;Kn.default=Kn,df.registerParse(Kn);var ft=Gt.isClean,ff=Gt.my,mf=eu,_f=Ri,gf=Kt,vf=La,sc=Na,yf=Ua,bf=ln,kf={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Cf={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},wf={Once:!0,postcssPlugin:!0,prepare:!0};function Dr(t){return(t===void 0?"undefined":ie(t))==="object"&&typeof t.then=="function"}function vu(t){var r=!1,e=kf[t.type];return t.type==="decl"?r=t.prop.toLowerCase():t.type==="atrule"&&(r=t.name.toLowerCase()),r&&t.append?[e,e+"-"+r,0,e+"Exit",e+"Exit-"+r]:r?[e,e+"-"+r,e+"Exit",e+"Exit-"+r]:t.append?[e,0,e+"Exit"]:[e,e+"Exit"]}function cc(t){return{eventIndex:0,events:t.type==="document"?["Document",0,"DocumentExit"]:t.type==="root"?["Root",0,"RootExit"]:vu(t),iterator:0,node:t,visitorIndex:0,visitors:[]}}function Ho(t){return t[ft]=!1,t.nodes&&t.nodes.forEach((function(r){return Ho(r)})),t}var Zo={},kr=(function(){function t(e,n,i){var s,l=this;if(this.stringified=!1,this.processed=!1,(n===void 0?"undefined":ie(n))!=="object"||n===null||n.type!=="root"&&n.type!=="document")if(J(n,t)||J(n,sc))s=Ho(n.root),n.map&&(i.map===void 0&&(i.map={}),i.map.inline||(i.map.inline=!1),i.map.prev=n.map);else{var d=yf;i.syntax&&(d=i.syntax.parse),i.parser&&(d=i.parser),d.parse&&(d=d.parse);try{s=d(n,i)}catch(h){this.processed=!0,this.error=h}s&&!s[ff]&&gf.rebuild(s)}else s=Ho(n);this.result=new sc(e,s,i),this.helpers=pe({},Zo,{postcss:Zo,result:this.result}),this.plugins=this.processor.plugins.map((function(h){return(h===void 0?"undefined":ie(h))==="object"&&h.prepare?pe({},h,h.prepare(l.result)):h}))}var r=t.prototype;return r.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},r.catch=function(e){return this.async().catch(e)},r.finally=function(e){return this.async().then(e,e)},r.getAsyncError=function(){throw new Error("Use process(css).then(cb) to work with async plugins")},r.handleError=function(e,n){var i=this.result.lastPlugin;try{n&&n.addToError(e),this.error=e,e.name!=="CssSyntaxError"||e.plugin?i.postcssVersion:(e.plugin=i.postcssPlugin,e.setMessage())}catch(s){console&&console.error&&console.error(s)}return e},r.prepareVisitors=function(){var e=this;this.listeners={};for(var n,i=function(o,a,c){e.listeners[a]||(e.listeners[a]=[]),e.listeners[a].push([o,c])},s=V(this.plugins);!(n=s()).done;){var l=n.value;if((l===void 0?"undefined":ie(l))==="object")for(var d in l){if(!Cf[d]&&/^[A-Z]/.test(d))throw new Error("Unknown event "+d+" in "+l.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!wf[d])if(ie(l[d])==="object")for(var h in l[d])i(l,h==="*"?d:d+"-"+h.toLowerCase(),l[d][h]);else typeof l[d]=="function"&&i(l,d,l[d])}}this.hasListener=Object.keys(this.listeners).length>0},r.runAsync=function(){var e=this;return Ca((function(){var n,i,s,l,d,h,o,a,c,u,p,_;return Xr(this,(function(m){switch(m.label){case 0:e.plugin=0,n=0,m.label=1;case 1:if(!(n<e.plugins.length))return[3,6];if(i=e.plugins[n],!Dr(s=e.runOnRoot(i)))return[3,5];m.label=2;case 2:return m.trys.push([2,4,,5]),[4,s];case 3:return m.sent(),[3,5];case 4:throw l=m.sent(),e.handleError(l);case 5:return n++,[3,1];case 6:if(e.prepareVisitors(),!e.hasListener)return[3,18];d=e.result.root,m.label=7;case 7:if(d[ft])return[3,14];d[ft]=!0,h=[cc(d)],m.label=8;case 8:if(!(h.length>0))return[3,13];if(!Dr(o=e.visitTick(h)))return[3,12];m.label=9;case 9:return m.trys.push([9,11,,12]),[4,o];case 10:return m.sent(),[3,12];case 11:throw a=m.sent(),c=h[h.length-1].node,e.handleError(a,c);case 12:return[3,8];case 13:return[3,7];case 14:if(!e.listeners.OnceExit)return[3,18];u=function(){var g,v,y,k,E;return Xr(this,(function(w){switch(w.label){case 0:g=_.value,v=g[0],y=g[1],e.result.lastPlugin=v,w.label=1;case 1:return w.trys.push([1,6,,7]),d.type!=="document"?[3,3]:(k=d.nodes.map((function(C){return y(C,e.helpers)})),[4,Promise.all(k)]);case 2:return w.sent(),[3,5];case 3:return[4,y(d,e.helpers)];case 4:w.sent(),w.label=5;case 5:return[3,7];case 6:throw E=w.sent(),e.handleError(E);case 7:return[2]}}))},p=V(e.listeners.OnceExit),m.label=15;case 15:return(_=p()).done?[3,18]:[5,fl(u())];case 16:m.sent(),m.label=17;case 17:return[3,15];case 18:return e.processed=!0,[2,e.stringify()]}}))}))()},r.runOnRoot=function(e){var n=this;this.result.lastPlugin=e;try{if((e===void 0?"undefined":ie(e))==="object"&&e.Once){if(this.result.root.type==="document"){var i=this.result.root.nodes.map((function(s){return e.Once(s,n.helpers)}));return Dr(i[0])?Promise.all(i):i}return e.Once(this.result.root,this.helpers)}if(typeof e=="function")return e(this.result.root,this.result)}catch(s){throw this.handleError(s)}},r.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,n=_f;e.syntax&&(n=e.syntax.stringify),e.stringifier&&(n=e.stringifier),n.stringify&&(n=n.stringify);var i=new mf(n,this.result.root,this.result.opts).generate();return this.result.css=i[0],this.result.map=i[1],this.result},r.sync=function(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(var e,n=V(this.plugins);!(e=n()).done;){var i=e.value;if(Dr(this.runOnRoot(i)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var s=this.result.root;!s[ft];)s[ft]=!0,this.walkSync(s);if(this.listeners.OnceExit)if(s.type==="document")for(var l,d=V(s.nodes);!(l=d()).done;){var h=l.value;this.visitSync(this.listeners.OnceExit,h)}else this.visitSync(this.listeners.OnceExit,s)}return this.result},r.then=function(e,n){return this.async().then(e,n)},r.toString=function(){return this.css},r.visitSync=function(e,n){for(var i,s=V(e);!(i=s()).done;){var l=i.value,d=l[0],h=l[1];this.result.lastPlugin=d;var o=void 0;try{o=h(n,this.helpers)}catch(a){throw this.handleError(a,n.proxyOf)}if(n.type!=="root"&&n.type!=="document"&&!n.parent)return!0;if(Dr(o))throw this.getAsyncError()}},r.visitTick=function(e){var n=e[e.length-1],i=n.node,s=n.visitors;if(i.type==="root"||i.type==="document"||i.parent){if(s.length>0&&n.visitorIndex<s.length){var l=s[n.visitorIndex],d=l[0],h=l[1];n.visitorIndex+=1,n.visitorIndex===s.length&&(n.visitors=[],n.visitorIndex=0),this.result.lastPlugin=d;try{return h(i.toProxy(),this.helpers)}catch(p){throw this.handleError(p,i)}}if(n.iterator!==0){for(var o,a=n.iterator;o=i.nodes[i.indexes[a]];)if(i.indexes[a]+=1,!o[ft])return o[ft]=!0,void e.push(cc(o));n.iterator=0,delete i.indexes[a]}for(var c=n.events;n.eventIndex<c.length;){var u=c[n.eventIndex];if(n.eventIndex+=1,u===0)return void(i.nodes&&i.nodes.length&&(i[ft]=!0,n.iterator=i.getIterator()));if(this.listeners[u])return void(n.visitors=this.listeners[u])}e.pop()}else e.pop()},r.walkSync=function(e){var n=this;e[ft]=!0;for(var i,s=V(vu(e));!(i=s()).done;){var l=i.value;if(l===0)e.nodes&&e.each((function(h){h[ft]||n.walkSync(h)}));else{var d=this.listeners[l];if(d&&this.visitSync(d,e.toProxy()))return}}},r.warnings=function(){return this.sync().warnings()},Ue(t,[{key:"content",get:function(){return this.stringify().content}},{key:"css",get:function(){return this.stringify().css}},{key:"map",get:function(){return this.stringify().map}},{key:"messages",get:function(){return this.sync().messages}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){return this.sync().root}},{key:Symbol.toStringTag,get:function(){return"LazyResult"}}]),t})();kr.registerPostcss=function(t){Zo=t};var yu=kr;kr.default=kr,bf.registerLazyResult(kr),vf.registerLazyResult(kr);var Sf=eu,Ef=Ri,Af=Ua,If=Na,Jo=(function(){function t(e,n,i){var s;n=n.toString(),this.stringified=!1,this._processor=e,this._css=n,this._opts=i,this._map=void 0;var l=Ef;this.result=new If(this._processor,s,this._opts),this.result.css=n;var d=this;Object.defineProperty(this.result,"root",{get:function(){return d.root}});var h=new Sf(l,s,this._opts,n);if(h.isMap()){var o=h.generate(),a=o[0],c=o[1];a&&(this.result.css=a),c&&(this.result.map=c)}else h.clearAnnotation(),this.result.css=h.css}var r=t.prototype;return r.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},r.catch=function(e){return this.async().catch(e)},r.finally=function(e){return this.async().then(e,e)},r.sync=function(){if(this.error)throw this.error;return this.result},r.then=function(e,n){return this.async().then(e,n)},r.toString=function(){return this._css},r.warnings=function(){return[]},Ue(t,[{key:"content",get:function(){return this.result.css}},{key:"css",get:function(){return this.result.css}},{key:"map",get:function(){return this.result.map}},{key:"messages",get:function(){return[]}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){if(this._root)return this._root;var e,n=Af;try{e=n(this._css,this._opts)}catch(i){this.error=i}if(this.error)throw this.error;return this._root=e,e}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),t})(),Tf=Jo;Jo.default=Jo;var Pf=Tf,Rf=yu,xf=La,Of=ln,Fr=(function(){function t(e){e===void 0&&(e=[]),this.version="8.4.38",this.plugins=this.normalize(e)}var r=t.prototype;return r.normalize=function(e){for(var n,i=[],s=V(e);!(n=s()).done;){var l=n.value;if(l.postcss===!0?l=l():l.postcss&&(l=l.postcss),(l===void 0?"undefined":ie(l))==="object"&&Array.isArray(l.plugins))i=i.concat(l.plugins);else if((l===void 0?"undefined":ie(l))==="object"&&l.postcssPlugin)i.push(l);else if(typeof l=="function")i.push(l);else if((l===void 0?"undefined":ie(l))!=="object"||!l.parse&&!l.stringify)throw new Error(l+" is not a PostCSS plugin")}return i},r.process=function(e,n){return n===void 0&&(n={}),this.plugins.length||n.parser||n.stringifier||n.syntax?new Rf(this,e,n):new Pf(this,e,n)},r.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},t})(),Df=Fr;Fr.default=Fr,Of.registerProcessor(Fr),xf.registerProcessor(Fr);var Bf=Oi,Mf=Jl,Lf=Bi,Nf=Fa,Ff=Di,Vf=ln,Uf=Va;function nn(t,r){if(Array.isArray(t))return t.map((function(a){return nn(a)}));var e=t.inputs,n=Yr(t,["inputs"]);if(e){r=[];for(var i,s=V(e);!(i=s()).done;){var l=pe({},i.value,{__proto__:Ff.prototype});l.map&&(l.map=pe({},l.map,{__proto__:Mf.prototype})),r.push(l)}}if(n.nodes&&(n.nodes=t.nodes.map((function(a){return nn(a,r)}))),n.source){var d=n.source,h=d.inputId,o=Yr(d,["inputId"]);n.source=o,h!=null&&(n.source.input=r[h])}if(n.type==="root")return new Vf(n);if(n.type==="decl")return new Bf(n);if(n.type==="rule")return new Uf(n);if(n.type==="comment")return new Lf(n);if(n.type==="atrule")return new Nf(n);throw new Error("Unknown node type: "+t.type)}var jf=nn;nn.default=nn;var qf=Da,lc=Oi,zf=yu,Wf=Kt,Yo=Df,Gf=Ri,$f=jf,uc=La,Hf=du,dc=Bi,hc=Fa,Zf=Na,Jf=Di,Yf=Ua,Xf=_u,pc=Va,fc=ln,Qf=xi;function _e(){for(var t=arguments.length,r=new Array(t),e=0;e<t;e++)r[e]=arguments[e];return r.length===1&&Array.isArray(r[0])&&(r=r[0]),new Yo(r)}_e.plugin=function(t,r){var e,n=!1;function i(){for(var s=arguments.length,l=new Array(s),d=0;d<s;d++)l[d]=arguments[d];console&&console.warn&&!n&&(n=!0,console.warn(t+`: postcss.plugin was deprecated. Migration guide:
50
+ https://evilmartians.com/chronicles/postcss-8-plugin-migration`),di.LANG&&di.LANG.startsWith("cn")&&console.warn(t+`: 里面 postcss.plugin 被弃用. 迁移指南:
51
+ https://www.w3ctech.com/topic/2226`));var h=r.apply(void 0,[].concat(l));return h.postcssPlugin=t,h.postcssVersion=new Yo().version,h}return Object.defineProperty(i,"postcss",{get:function(){return e||(e=i()),e}}),i.process=function(s,l,d){return _e([i(d)]).process(s,l)},i},_e.stringify=Gf,_e.parse=Yf,_e.fromJSON=$f,_e.list=Xf,_e.comment=function(t){return new dc(t)},_e.atRule=function(t){return new hc(t)},_e.decl=function(t){return new lc(t)},_e.rule=function(t){return new pc(t)},_e.root=function(t){return new fc(t)},_e.document=function(t){return new uc(t)},_e.CssSyntaxError=qf,_e.Declaration=lc,_e.Container=Wf,_e.Processor=Yo,_e.Document=uc,_e.Comment=dc,_e.Warning=Hf,_e.AtRule=hc,_e.Result=Zf,_e.Input=Jf,_e.Rule=pc,_e.Root=fc,_e.Node=Qf,zf.registerPostcss(_e);var Kf=_e;_e.default=_e;var Ee=Ep(Kf);Ee.stringify,Ee.fromJSON,Ee.plugin,Ee.parse,Ee.list,Ee.document,Ee.comment,Ee.atRule,Ee.rule,Ee.decl,Ee.root,Ee.CssSyntaxError,Ee.Declaration,Ee.Container,Ee.Processor,Ee.Document,Ee.Comment,Ee.Warning,Ee.AtRule,Ee.Result,Ee.Input,Ee.Rule,Ee.Root,Ee.Node;var em=(function(){function t(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];rt(this,"parentElement",null),rt(this,"parentNode",null),rt(this,"ownerDocument"),rt(this,"firstChild",null),rt(this,"lastChild",null),rt(this,"previousSibling",null),rt(this,"nextSibling",null),rt(this,"ELEMENT_NODE",1),rt(this,"TEXT_NODE",3),rt(this,"nodeType"),rt(this,"nodeName"),rt(this,"RRNodeType")}var r=t.prototype;return r.contains=function(e){if(!J(e,t)||e.ownerDocument!==this.ownerDocument)return!1;if(e===this)return!0;for(;e.parentNode;){if(e.parentNode===this)return!0;e=e.parentNode}return!1},r.appendChild=function(e){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")},r.insertBefore=function(e,n){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")},r.removeChild=function(e){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")},r.toString=function(){return"RRNode"},Ue(t,[{key:"childNodes",get:function(){for(var e=[],n=this.firstChild;n;)e.push(n),n=n.nextSibling;return e}}]),t})(),mc={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},_c={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},On={};function ja(t){if(On[t])return On[t];var r=globalThis[t],e=r.prototype,n=t in mc?mc[t]:void 0,i=!!(n&&n.every((function(a){var c,u;return!!((u=(c=Object.getOwnPropertyDescriptor(e,a))==null?void 0:c.get)!=null&&u.toString().includes("[native code]"))}))),s=t in _c?_c[t]:void 0,l=!!(s&&s.every((function(a){var c;return typeof e[a]=="function"&&((c=e[a])==null?void 0:c.toString().includes("[native code]"))})));if(i&&l&&!globalThis.Zone)return On[t]=r.prototype,r.prototype;try{var d=document.createElement("iframe");document.body.appendChild(d);var h=d.contentWindow;if(!h)return r.prototype;var o=h[t].prototype;return document.body.removeChild(d),o?On[t]=o:e}catch{return e}}var Xi={};function Dt(t,r,e){var n,i=t+"."+String(e);if(Xi[i])return Xi[i].call(r);var s=ja(t),l=(n=Object.getOwnPropertyDescriptor(s,e))==null?void 0:n.get;return l?(Xi[i]=l,l.call(r)):r[e]}var Qi={};function gc(t,r,e){var n=t+"."+String(e);if(Qi[n])return Qi[n].bind(r);var i=ja(t)[e];return typeof i!="function"?r[e]:(Qi[n]=i,i.bind(r))}function bu(){return ja("MutationObserver").constructor}function Xt(t,r,e){try{if(!(r in t))return function(){};var n=t[r],i=e(n);return typeof i=="function"&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:n}})),t[r]=i,function(){t[r]=n}}catch{return function(){}}}var ce={childNodes:function(t){return Dt("Node",t,"childNodes")},parentNode:function(t){return Dt("Node",t,"parentNode")},parentElement:function(t){return Dt("Node",t,"parentElement")},textContent:function(t){return Dt("Node",t,"textContent")},contains:function(t,r){return gc("Node",t,"contains")(r)},getRootNode:function(t){return gc("Node",t,"getRootNode")()},host:function(t){return t&&"host"in t?Dt("ShadowRoot",t,"host"):null},styleSheets:function(t){return t.styleSheets},shadowRoot:function(t){return t&&"shadowRoot"in t?Dt("Element",t,"shadowRoot"):null},querySelector:function(t,r){return Dt("Element",t,"querySelector")(r)},querySelectorAll:function(t,r){return Dt("Element",t,"querySelectorAll")(r)},mutationObserver:bu,patch:Xt};function Qe(t,r,e){e===void 0&&(e=document);var n={capture:!0,passive:!0};return e.addEventListener(t,r,n),function(){return e.removeEventListener(t,r,n)}}var dr=`Please stop import mirror directly. Instead of that,\r
52
+ now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
53
+ or you can use record.mirror to access the mirror instance during recording.`,vc={map:{},getId:function(){return console.error(dr),-1},getNode:function(){return console.error(dr),null},removeNodeFromMap:function(){console.error(dr)},has:function(){return console.error(dr),!1},reset:function(){console.error(dr)}};function Vr(t,r,e){e===void 0&&(e={});var n=null,i=0;return function(){for(var s=arguments.length,l=new Array(s),d=0;d<s;d++)l[d]=arguments[d];var h=Date.now();i||e.leading!==!1||(i=h);var o=r-(h-i),a=this;o<=0||o>r?(n&&(clearTimeout(n),n=null),i=h,t.apply(a,l)):n||e.trailing===!1||(n=setTimeout((function(){i=e.leading===!1?0:Date.now(),n=null,t.apply(a,l)}),o))}}function Mi(t,r,e,n,i){i===void 0&&(i=window);var s=i.Object.getOwnPropertyDescriptor(t,r);return i.Object.defineProperty(t,r,n?e:{set:function(l){var d=this;setTimeout((function(){e.set.call(d,l)}),0),s&&s.set&&s.set.call(this,l)}}),function(){return Mi(t,r,s||{},!0)}}typeof window<"u"&&window.Proxy&&window.Reflect&&(vc=new Proxy(vc,{get:function(t,r,e){return r==="map"&&console.error(dr),Reflect.get(t,r,e)}}));var gi=Date.now;function ku(t){var r,e,n,i,s=t.document;return{left:s.scrollingElement?s.scrollingElement.scrollLeft:t.pageXOffset!==void 0?t.pageXOffset:s.documentElement.scrollLeft||s?.body&&((r=ce.parentElement(s.body))==null?void 0:r.scrollLeft)||((e=s?.body)==null?void 0:e.scrollLeft)||0,top:s.scrollingElement?s.scrollingElement.scrollTop:t.pageYOffset!==void 0?t.pageYOffset:s?.documentElement.scrollTop||s?.body&&((n=ce.parentElement(s.body))==null?void 0:n.scrollTop)||((i=s?.body)==null?void 0:i.scrollTop)||0}}function Cu(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function wu(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Su(t){return t?t.nodeType===t.ELEMENT_NODE?t:ce.parentElement(t):null}function Ke(t,r,e,n){if(!t)return!1;var i=Su(t);if(!i)return!1;try{if(typeof r=="string"){if(i.classList.contains(r)||n&&i.closest("."+r)!==null)return!0}else if(_i(i,r,n))return!0}catch{}return!!(e&&(i.matches(e)||n&&i.closest(e)!==null))}function Ki(t,r,e){return!(t.tagName!=="TITLE"||!e.headTitleMutations)||r.getId(t)===-2}function Eu(t,r){if(Wr(t))return!1;var e=r.getId(t);if(!r.has(e))return!0;var n=ce.parentNode(t);return(!n||n.nodeType!==t.DOCUMENT_NODE)&&(!n||Eu(n,r))}function Xo(t){return!!t.changedTouches}function Au(t,r){return!!(t.nodeName==="IFRAME"&&r.getMeta(t))}function Iu(t,r){return!!(t.nodeName==="LINK"&&t.nodeType===t.ELEMENT_NODE&&t.getAttribute&&t.getAttribute("rel")==="stylesheet"&&r.getMeta(t))}function Qo(t){return!!t&&(J(t,em)&&"shadowRoot"in t?!!t.shadowRoot:!!ce.shadowRoot(t))}/[1-9][0-9]{12}/.test(Date.now().toString())||(gi=function(){return new Date().getTime()});var tm=(function(){function t(){N(this,"id",1),N(this,"styleIDMap",new WeakMap),N(this,"idStyleMap",new Map)}var r=t.prototype;return r.getId=function(e){var n;return(n=this.styleIDMap.get(e))!=null?n:-1},r.has=function(e){return this.styleIDMap.has(e)},r.add=function(e,n){return this.has(e)?this.getId(e):(i=n===void 0?this.id++:n,this.styleIDMap.set(e,i),this.idStyleMap.set(i,e),i);var i},r.getStyle=function(e){return this.idStyleMap.get(e)||null},r.reset=function(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1},r.generateId=function(){return this.id++},t})();function Tu(t){var r,e=null;return"getRootNode"in t&&((r=ce.getRootNode(t))==null?void 0:r.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&ce.host(ce.getRootNode(t))&&(e=ce.host(ce.getRootNode(t))),e}function rm(t){var r=t.ownerDocument;if(!r)return!1;var e=(function(n){for(var i,s=n;i=Tu(s);)s=i;return s})(t);return ce.contains(r,e)}function Pu(t){var r=t.ownerDocument;return!!r&&(ce.contains(r,t)||rm(t))}var le=(function(t){return t[t.DomContentLoaded=0]="DomContentLoaded",t[t.Load=1]="Load",t[t.FullSnapshot=2]="FullSnapshot",t[t.IncrementalSnapshot=3]="IncrementalSnapshot",t[t.Meta=4]="Meta",t[t.Custom=5]="Custom",t[t.Plugin=6]="Plugin",t})(le||{}),X=(function(t){return t[t.Mutation=0]="Mutation",t[t.MouseMove=1]="MouseMove",t[t.MouseInteraction=2]="MouseInteraction",t[t.Scroll=3]="Scroll",t[t.ViewportResize=4]="ViewportResize",t[t.Input=5]="Input",t[t.TouchMove=6]="TouchMove",t[t.MediaInteraction=7]="MediaInteraction",t[t.StyleSheetRule=8]="StyleSheetRule",t[t.CanvasMutation=9]="CanvasMutation",t[t.Font=10]="Font",t[t.Log=11]="Log",t[t.Drag=12]="Drag",t[t.StyleDeclaration=13]="StyleDeclaration",t[t.Selection=14]="Selection",t[t.AdoptedStyleSheet=15]="AdoptedStyleSheet",t[t.CustomElement=16]="CustomElement",t})(X||{}),tt=(function(t){return t[t.MouseUp=0]="MouseUp",t[t.MouseDown=1]="MouseDown",t[t.Click=2]="Click",t[t.ContextMenu=3]="ContextMenu",t[t.DblClick=4]="DblClick",t[t.Focus=5]="Focus",t[t.Blur=6]="Blur",t[t.TouchStart=7]="TouchStart",t[t.TouchMove_Departed=8]="TouchMove_Departed",t[t.TouchEnd=9]="TouchEnd",t[t.TouchCancel=10]="TouchCancel",t})(tt||{}),wt=(function(t){return t[t.Mouse=0]="Mouse",t[t.Pen=1]="Pen",t[t.Touch=2]="Touch",t})(wt||{}),hr=(function(t){return t[t["2D"]=0]="2D",t[t.WebGL=1]="WebGL",t[t.WebGL2=2]="WebGL2",t})(hr||{}),pr=(function(t){return t[t.Play=0]="Play",t[t.Pause=1]="Pause",t[t.Seeked=2]="Seeked",t[t.VolumeChange=3]="VolumeChange",t[t.RateChange=4]="RateChange",t})(pr||{}),Ru=(function(t){return t[t.Document=0]="Document",t[t.DocumentType=1]="DocumentType",t[t.Element=2]="Element",t[t.Text=3]="Text",t[t.CDATA=4]="CDATA",t[t.Comment=5]="Comment",t})(Ru||{});function yc(t){return"__ln"in t}var $r,nm=(function(){function t(){N(this,"length",0),N(this,"head",null),N(this,"tail",null)}var r=t.prototype;return r.get=function(e){if(e>=this.length)throw new Error("Position outside of list range");for(var n=this.head,i=0;i<e;i++)n=n?.next||null;return n},r.addNode=function(e){var n={value:e,previous:null,next:null};if(e.__ln=n,e.previousSibling&&yc(e.previousSibling)){var i=e.previousSibling.__ln.next;n.next=i,n.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=n,i&&(i.previous=n)}else if(e.nextSibling&&yc(e.nextSibling)&&e.nextSibling.__ln.previous){var s=e.nextSibling.__ln.previous;n.previous=s,n.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=n,s&&(s.next=n)}else this.head&&(this.head.previous=n),n.next=this.head,this.head=n;n.next===null&&(this.tail=n),this.length++},r.removeNode=function(e){var n=e.__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),e.__ln&&delete e.__ln,this.length--)},t})(),bc=function(t,r){return t+"@"+r},im=(function(){function t(){var e=this;N(this,"frozen",!1),N(this,"locked",!1),N(this,"texts",[]),N(this,"attributes",[]),N(this,"attributeMap",new WeakMap),N(this,"removes",[]),N(this,"mapRemoves",[]),N(this,"movedMap",{}),N(this,"addedSet",new Set),N(this,"movedSet",new Set),N(this,"droppedSet",new Set),N(this,"removesSubTreeCache",new Set),N(this,"mutationCb"),N(this,"blockClass"),N(this,"blockSelector"),N(this,"maskTextClass"),N(this,"maskTextSelector"),N(this,"inlineStylesheet"),N(this,"maskInputOptions"),N(this,"maskTextFn"),N(this,"maskInputFn"),N(this,"keepIframeSrcFn"),N(this,"recordCanvas"),N(this,"inlineImages"),N(this,"slimDOMOptions"),N(this,"dataURLOptions"),N(this,"doc"),N(this,"mirror"),N(this,"iframeManager"),N(this,"stylesheetManager"),N(this,"shadowDomManager"),N(this,"canvasManager"),N(this,"processedNodeManager"),N(this,"unattachedDoc"),N(this,"processMutations",(function(n){n.forEach(e.processMutation),e.emit()})),N(this,"emit",(function(){if(!e.frozen&&!e.locked){for(var n=[],i=new Set,s=new nm,l=function(b){for(var T=b,x=-2;x===-2;)x=(T=T&&T.nextSibling)&&e.mirror.getId(T);return x},d=function(b){var T=ce.parentNode(b);if(T&&Pu(b)){var x=!1;if(b.nodeType===Node.TEXT_NODE){var L=T.tagName;if(L==="TEXTAREA")return;L==="STYLE"&&e.addedSet.has(T)&&(x=!0)}var U=Wr(T)?e.mirror.getId(Tu(b)):e.mirror.getId(T),M=l(b);if(U===-1||M===-1)return s.addNode(b);var q=yr(b,{doc:e.doc,mirror:e.mirror,blockClass:e.blockClass,blockSelector:e.blockSelector,maskTextClass:e.maskTextClass,maskTextSelector:e.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:e.inlineStylesheet,maskInputOptions:e.maskInputOptions,maskTextFn:e.maskTextFn,maskInputFn:e.maskInputFn,slimDOMOptions:e.slimDOMOptions,dataURLOptions:e.dataURLOptions,recordCanvas:e.recordCanvas,inlineImages:e.inlineImages,onSerialize:function(W){Au(W,e.mirror)&&e.iframeManager.addIframe(W),Iu(W,e.mirror)&&e.stylesheetManager.trackLinkElement(W),Qo(b)&&e.shadowDomManager.addShadowRoot(ce.shadowRoot(b),e.doc)},onIframeLoad:function(W,j){e.iframeManager.attachIframe(W,j),e.shadowDomManager.observeAttachShadow(W)},onStylesheetLoad:function(W,j){e.stylesheetManager.attachLinkElement(W,j)},cssCaptured:x});q&&(n.push({parentId:U,nextId:M,node:q}),i.add(q.id))}};e.mapRemoves.length;)e.mirror.removeNodeFromMap(e.mapRemoves.shift());for(var h,o=V(e.movedSet);!(h=o()).done;){var a=h.value;kc(e.removesSubTreeCache,a,e.mirror)&&!e.movedSet.has(ce.parentNode(a))||d(a)}for(var c,u=V(e.addedSet);!(c=u()).done;){var p=c.value;Cc(e.droppedSet,p)||kc(e.removesSubTreeCache,p,e.mirror)?Cc(e.movedSet,p)?d(p):e.droppedSet.add(p):d(p)}for(var _=null;s.length;){var m=null;if(_){var g=e.mirror.getId(ce.parentNode(_.value)),v=l(_.value);g!==-1&&v!==-1&&(m=_)}if(!m)for(var y=s.tail;y;){var k=y;if(y=y.previous,k){var E=e.mirror.getId(ce.parentNode(k.value));if(l(k.value)===-1)continue;if(E!==-1){m=k;break}var w=k.value,C=ce.parentNode(w);if(C&&C.nodeType===Node.DOCUMENT_FRAGMENT_NODE){var P=ce.host(C);if(e.mirror.getId(P)!==-1){m=k;break}}}}if(!m){for(;s.head;)s.removeNode(s.head.value);break}_=m.previous,s.removeNode(m.value),d(m.value)}var D={texts:e.texts.map((function(b){var T=b.node,x=ce.parentNode(T);return x&&x.tagName==="TEXTAREA"&&e.genTextAreaValueMutation(x),{id:e.mirror.getId(T),value:b.value}})).filter((function(b){return!i.has(b.id)})).filter((function(b){return e.mirror.has(b.id)})),attributes:e.attributes.map((function(b){var T=b.attributes;if(typeof T.style=="string"){var x=JSON.stringify(b.styleDiff),L=JSON.stringify(b._unchangedStyles);x.length<T.style.length&&(x+L).split("var(").length===T.style.split("var(").length&&(T.style=b.styleDiff)}return{id:e.mirror.getId(b.node),attributes:T}})).filter((function(b){return!i.has(b.id)})).filter((function(b){return e.mirror.has(b.id)})),removes:e.removes,adds:n};(D.texts.length||D.attributes.length||D.removes.length||D.adds.length)&&(e.texts=[],e.attributes=[],e.attributeMap=new WeakMap,e.removes=[],e.addedSet=new Set,e.movedSet=new Set,e.droppedSet=new Set,e.removesSubTreeCache=new Set,e.movedMap={},e.mutationCb(D))}})),N(this,"genTextAreaValueMutation",(function(n){var i=e.attributeMap.get(n);i||(i={node:n,attributes:{},styleDiff:{},_unchangedStyles:{}},e.attributes.push(i),e.attributeMap.set(n,i));var s=Array.from(ce.childNodes(n),(function(l){return ce.textContent(l)||""})).join("");i.attributes.value=pi({element:n,maskInputOptions:e.maskInputOptions,tagName:n.tagName,type:fi(n),value:s,maskInputFn:e.maskInputFn})})),N(this,"processMutation",(function(n){if(!Ki(n.target,e.mirror,e.slimDOMOptions))switch(n.type){case"characterData":var i=ce.textContent(n.target);Ke(n.target,e.blockClass,e.blockSelector,!1)||i===n.oldValue||e.texts.push({value:kl(n.target,e.maskTextClass,e.maskTextSelector,!0)&&i?e.maskTextFn?e.maskTextFn(i,Su(n.target)):i.replace(/[\S]/g,"*"):i,node:n.target});break;case"attributes":var s=n.target,l=n.attributeName,d=n.target.getAttribute(l);if(l==="value"){var h=fi(s);d=pi({element:s,maskInputOptions:e.maskInputOptions,tagName:s.tagName,type:h,value:d,maskInputFn:e.maskInputFn})}if(Ke(n.target,e.blockClass,e.blockSelector,!1)||d===n.oldValue)return;var o=e.attributeMap.get(n.target);if(s.tagName==="IFRAME"&&l==="src"&&!e.keepIframeSrcFn(d)){if(s.contentDocument)return;l="rr_src"}if(o||(o={node:n.target,attributes:{},styleDiff:{},_unchangedStyles:{}},e.attributes.push(o),e.attributeMap.set(n.target,o)),l==="type"&&s.tagName==="INPUT"&&(n.oldValue||"").toLowerCase()==="password"&&s.setAttribute("data-rr-is-password","true"),!bl(s.tagName,l))if(o.attributes[l]=yl(e.doc,Yt(s.tagName),Yt(l),d),l==="style"){if(!e.unattachedDoc)try{e.unattachedDoc=document.implementation.createHTMLDocument()}catch{e.unattachedDoc=e.doc}var a=e.unattachedDoc.createElement("span");n.oldValue&&a.setAttribute("style",n.oldValue);for(var c,u=V(Array.from(s.style));!(c=u()).done;){var p=c.value,_=s.style.getPropertyValue(p),m=s.style.getPropertyPriority(p);_!==a.style.getPropertyValue(p)||m!==a.style.getPropertyPriority(p)?o.styleDiff[p]=m===""?_:[_,m]:o._unchangedStyles[p]=[_,m]}for(var g,v=V(Array.from(a.style));!(g=v()).done;){var y=g.value;s.style.getPropertyValue(y)===""&&(o.styleDiff[y]=!1)}}else l==="open"&&s.tagName==="DIALOG"&&(s.matches("dialog:modal")?o.attributes.rr_open_mode="modal":o.attributes.rr_open_mode="non-modal");break;case"childList":if(Ke(n.target,e.blockClass,e.blockSelector,!0))return;if(n.target.tagName==="TEXTAREA")return void e.genTextAreaValueMutation(n.target);n.addedNodes.forEach((function(k){return e.genAdds(k,n.target)})),n.removedNodes.forEach((function(k){var E=e.mirror.getId(k),w=Wr(n.target)?e.mirror.getId(ce.host(n.target)):e.mirror.getId(n.target);Ke(n.target,e.blockClass,e.blockSelector,!1)||Ki(k,e.mirror,e.slimDOMOptions)||!(function(C,P){return P.getId(C)!==-1})(k,e.mirror)||(e.addedSet.has(k)?(Ko(e.addedSet,k),e.droppedSet.add(k)):e.addedSet.has(n.target)&&E===-1||Eu(n.target,e.mirror)||(e.movedSet.has(k)&&e.movedMap[bc(E,w)]?Ko(e.movedSet,k):(e.removes.push({parentId:w,id:E,isShadow:!(!Wr(n.target)||!Gr(n.target))||void 0}),(function(C,P){for(var D=[C];D.length;){var b=D.pop();P.has(b)||(P.add(b),ce.childNodes(b).forEach((function(T){return D.push(T)})))}})(k,e.removesSubTreeCache))),e.mapRemoves.push(k))}))}})),N(this,"genAdds",(function(n,i){if(!e.processedNodeManager.inOtherBuffer(n,e)&&!e.addedSet.has(n)&&!e.movedSet.has(n)){if(e.mirror.hasNode(n)){if(Ki(n,e.mirror,e.slimDOMOptions))return;e.movedSet.add(n);var s=null;i&&e.mirror.hasNode(i)&&(s=e.mirror.getId(i)),s&&s!==-1&&(e.movedMap[bc(e.mirror.getId(n),s)]=!0)}else e.addedSet.add(n),e.droppedSet.delete(n);Ke(n,e.blockClass,e.blockSelector,!1)||(ce.childNodes(n).forEach((function(l){return e.genAdds(l)})),Qo(n)&&ce.childNodes(ce.shadowRoot(n)).forEach((function(l){e.processedNodeManager.add(l,e),e.genAdds(l,n)})))}}))}var r=t.prototype;return r.init=function(e){var n=this;["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach((function(i){n[i]=e[i]}))},r.freeze=function(){this.frozen=!0,this.canvasManager.freeze()},r.unfreeze=function(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()},r.isFrozen=function(){return this.frozen},r.lock=function(){this.locked=!0,this.canvasManager.lock()},r.unlock=function(){this.locked=!1,this.canvasManager.unlock(),this.emit()},r.reset=function(){this.shadowDomManager.reset(),this.canvasManager.reset()},t})();function Ko(t,r){t.delete(r),ce.childNodes(r).forEach((function(e){return Ko(t,e)}))}function kc(t,r,e){return t.size!==0&&(function(n,i){var s=ce.parentNode(i);return!!s&&n.has(s)})(t,r)}function Cc(t,r){return t.size!==0&&xu(t,r)}function xu(t,r){var e=ce.parentNode(r);return!!e&&(!!t.has(e)||xu(t,e))}var de=function(t){return $r?function(){for(var r=arguments.length,e=new Array(r),n=0;n<r;n++)e[n]=arguments[n];try{return t.apply(void 0,[].concat(e))}catch(i){if($r&&$r(i)===!0)return;throw i}}:t},Ht=[];function Hr(t){try{if("composedPath"in t){var r=t.composedPath();if(r.length)return r[0]}else if("path"in t&&t.path.length)return t.path[0]}catch{}return t&&t.target}function Ou(t,r){var e=new im;Ht.push(e),e.init(t);var n=new(bu())(de(e.processMutations.bind(e)));return n.observe(r,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),n}function om(t){var r=t.mouseInteractionCb,e=t.doc,n=t.mirror,i=t.blockClass,s=t.blockSelector,l=t.sampling;if(l.mouseInteraction===!1)return function(){};var d=l.mouseInteraction===!0||l.mouseInteraction===void 0?{}:l.mouseInteraction,h=[],o=null;return Object.keys(tt).filter((function(a){return Number.isNaN(Number(a))&&!a.endsWith("_Departed")&&d[a]!==!1})).forEach((function(a){var c=Yt(a),u=(function(p){return function(_){var m=Hr(_);if(!Ke(m,i,s,!0)){var g=null,v=p;if("pointerType"in _){switch(_.pointerType){case"mouse":g=wt.Mouse;break;case"touch":g=wt.Touch;break;case"pen":g=wt.Pen}g===wt.Touch?tt[p]===tt.MouseDown?v="TouchStart":tt[p]===tt.MouseUp&&(v="TouchEnd"):wt.Pen}else Xo(_)&&(g=wt.Touch);g!==null?(o=g,(v.startsWith("Touch")&&g===wt.Touch||v.startsWith("Mouse")&&g===wt.Mouse)&&(g=null)):tt[p]===tt.Click&&(g=o,o=null);var y=Xo(_)?_.changedTouches[0]:_;if(y){var k=n.getId(m),E=y.clientX,w=y.clientY;de(r)(pe({type:tt[v],id:k,x:E,y:w},g!==null&&{pointerType:g}))}}}})(a);if(window.PointerEvent)switch(tt[a]){case tt.MouseDown:case tt.MouseUp:c=c.replace("mouse","pointer");break;case tt.TouchStart:case tt.TouchEnd:return}h.push(Qe(c,u,e))})),de((function(){h.forEach((function(a){return a()}))}))}function Du(t){var r=t.scrollCb,e=t.doc,n=t.mirror,i=t.blockClass,s=t.blockSelector,l=t.sampling;return Qe("scroll",de(Vr(de((function(d){var h=Hr(d);if(h&&!Ke(h,i,s,!0)){var o=n.getId(h);if(h===e&&e.defaultView){var a=ku(e.defaultView);r({id:o,x:a.left,y:a.top})}else r({id:o,x:h.scrollLeft,y:h.scrollTop})}})),l.scroll||100)),e)}var am=["INPUT","TEXTAREA","SELECT"],wc=new WeakMap;function Dn(t){return(function(r,e){if(Bn("CSSGroupingRule")&&J(r.parentRule,CSSGroupingRule)||Bn("CSSMediaRule")&&J(r.parentRule,CSSMediaRule)||Bn("CSSSupportsRule")&&J(r.parentRule,CSSSupportsRule)||Bn("CSSConditionRule")&&J(r.parentRule,CSSConditionRule)){var n=Array.from(r.parentRule.cssRules).indexOf(r);e.unshift(n)}else if(r.parentStyleSheet){var i=Array.from(r.parentStyleSheet.cssRules).indexOf(r);e.unshift(i)}return e})(t,[])}function Bt(t,r,e){var n,i;return t?(t.ownerNode?n=r.getId(t.ownerNode):i=e.getId(t),{styleId:i,id:n}):{}}function Bu(t,r){var e,n,i,s=t.mirror,l=t.stylesheetManager,d=null;d=r.nodeName==="#document"?s.getId(r):s.getId(ce.host(r));var h=r.nodeName==="#document"?(e=r.defaultView)==null?void 0:e.Document:(i=(n=r.ownerDocument)==null?void 0:n.defaultView)==null?void 0:i.ShadowRoot,o=h?.prototype?Object.getOwnPropertyDescriptor(h?.prototype,"adoptedStyleSheets"):void 0;return d!==null&&d!==-1&&h&&o?(Object.defineProperty(r,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get:function(){var a;return(a=o.get)==null?void 0:a.call(this)},set:function(a){var c,u=(c=o.set)==null?void 0:c.call(this,a);if(d!==null&&d!==-1)try{l.adoptStyleSheets(a,d)}catch{}return u}}),de((function(){Object.defineProperty(r,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get:o.get,set:o.set})}))):function(){}}function sm(t,r){r===void 0&&(r={});var e,n=t.doc.defaultView;if(!n)return function(){};(function(b,T){var x=b.mutationCb,L=b.mousemoveCb,U=b.mouseInteractionCb,M=b.scrollCb,q=b.viewportResizeCb,W=b.inputCb,j=b.mediaInteractionCb,re=b.styleSheetRuleCb,K=b.styleDeclarationCb,H=b.canvasMutationCb,z=b.fontCb,$=b.selectionCb,G=b.customElementCb;b.mutationCb=function(){for(var O=arguments.length,A=new Array(O),I=0;I<O;I++)A[I]=arguments[I];var F;T.mutation&&(F=T).mutation.apply(F,[].concat(A)),x.apply(void 0,[].concat(A))},b.mousemoveCb=function(){for(var O=arguments.length,A=new Array(O),I=0;I<O;I++)A[I]=arguments[I];var F;T.mousemove&&(F=T).mousemove.apply(F,[].concat(A)),L.apply(void 0,[].concat(A))},b.mouseInteractionCb=function(){for(var O=arguments.length,A=new Array(O),I=0;I<O;I++)A[I]=arguments[I];var F;T.mouseInteraction&&(F=T).mouseInteraction.apply(F,[].concat(A)),U.apply(void 0,[].concat(A))},b.scrollCb=function(){for(var O=arguments.length,A=new Array(O),I=0;I<O;I++)A[I]=arguments[I];var F;T.scroll&&(F=T).scroll.apply(F,[].concat(A)),M.apply(void 0,[].concat(A))},b.viewportResizeCb=function(){for(var O=arguments.length,A=new Array(O),I=0;I<O;I++)A[I]=arguments[I];var F;T.viewportResize&&(F=T).viewportResize.apply(F,[].concat(A)),q.apply(void 0,[].concat(A))},b.inputCb=function(){for(var O=arguments.length,A=new Array(O),I=0;I<O;I++)A[I]=arguments[I];var F;T.input&&(F=T).input.apply(F,[].concat(A)),W.apply(void 0,[].concat(A))},b.mediaInteractionCb=function(){for(var O=arguments.length,A=new Array(O),I=0;I<O;I++)A[I]=arguments[I];var F;T.mediaInteaction&&(F=T).mediaInteaction.apply(F,[].concat(A)),j.apply(void 0,[].concat(A))},b.styleSheetRuleCb=function(){for(var O=arguments.length,A=new Array(O),I=0;I<O;I++)A[I]=arguments[I];var F;T.styleSheetRule&&(F=T).styleSheetRule.apply(F,[].concat(A)),re.apply(void 0,[].concat(A))},b.styleDeclarationCb=function(){for(var O=arguments.length,A=new Array(O),I=0;I<O;I++)A[I]=arguments[I];var F;T.styleDeclaration&&(F=T).styleDeclaration.apply(F,[].concat(A)),K.apply(void 0,[].concat(A))},b.canvasMutationCb=function(){for(var O=arguments.length,A=new Array(O),I=0;I<O;I++)A[I]=arguments[I];var F;T.canvasMutation&&(F=T).canvasMutation.apply(F,[].concat(A)),H.apply(void 0,[].concat(A))},b.fontCb=function(){for(var O=arguments.length,A=new Array(O),I=0;I<O;I++)A[I]=arguments[I];var F;T.font&&(F=T).font.apply(F,[].concat(A)),z.apply(void 0,[].concat(A))},b.selectionCb=function(){for(var O=arguments.length,A=new Array(O),I=0;I<O;I++)A[I]=arguments[I];var F;T.selection&&(F=T).selection.apply(F,[].concat(A)),$.apply(void 0,[].concat(A))},b.customElementCb=function(){for(var O=arguments.length,A=new Array(O),I=0;I<O;I++)A[I]=arguments[I];var F;T.customElement&&(F=T).customElement.apply(F,[].concat(A)),G.apply(void 0,[].concat(A))}})(t,r),t.recordDOM&&(e=Ou(t,t.doc));var i,s,l,d,h,o=(function(b){var T=b.mousemoveCb,x=b.sampling,L=b.doc,U=b.mirror;if(x.mousemove===!1)return function(){};var M,q=typeof x.mousemove=="number"?x.mousemove:50,W=typeof x.mousemoveCallback=="number"?x.mousemoveCallback:500,j=[],re=Vr(de((function(z){var $=Date.now()-M;T(j.map((function(G){return G.timeOffset-=$,G})),z),j=[],M=null})),W),K=de(Vr(de((function(z){var $=Hr(z),G=Xo(z)?z.changedTouches[0]:z,O=G.clientX,A=G.clientY;M||(M=gi()),j.push({x:O,y:A,id:U.getId($),timeOffset:gi()-M}),re(typeof DragEvent<"u"&&J(z,DragEvent)?X.Drag:J(z,MouseEvent)?X.MouseMove:X.TouchMove)})),q,{trailing:!1})),H=[Qe("mousemove",K,L),Qe("touchmove",K,L),Qe("drag",K,L)];return de((function(){H.forEach((function(z){return z()}))}))})(t),a=om(t),c=Du(t),u=(i={win:n},s=t.viewportResizeCb,l=i.win,d=-1,h=-1,Qe("resize",de(Vr(de((function(){var b=Cu(),T=wu();d===b&&h===T||(s({width:Number(T),height:Number(b)}),d=b,h=T)})),200)),l)),p=(function(b){var T=b.inputCb,x=b.doc,L=b.mirror,U=b.blockClass,M=b.blockSelector,q=b.ignoreClass,W=b.ignoreSelector,j=b.maskInputOptions,re=b.maskInputFn,K=b.sampling,H=b.userTriggeredOnInput;function z(oe){var te=Hr(oe),Ae=oe.isTrusted,Re=te&&te.tagName;if(te&&Re==="OPTION"&&(te=ce.parentElement(te)),te&&Re&&!(am.indexOf(Re)<0)&&!Ke(te,U,M,!0)&&!(te.classList.contains(q)||W&&te.matches(W))){var He=te.value,et=!1,Ze=fi(te)||"";Ze==="radio"||Ze==="checkbox"?et=te.checked:(j[Re.toLowerCase()]||j[Ze])&&(He=pi({element:te,maskInputOptions:j,tagName:Re,type:Ze,value:He,maskInputFn:re})),$(te,H?{text:He,isChecked:et,userTriggered:Ae}:{text:He,isChecked:et});var Je=te.name;Ze==="radio"&&Je&&et&&x.querySelectorAll('input[type="radio"][name="'+Je+'"]').forEach((function(Be){if(Be!==te){var B=Be.value;$(Be,H?{text:B,isChecked:!et,userTriggered:!1}:{text:B,isChecked:!et})}}))}}function $(oe,te){var Ae=wc.get(oe);if(!Ae||Ae.text!==te.text||Ae.isChecked!==te.isChecked){wc.set(oe,te);var Re=L.getId(oe);de(T)(pe({},te,{id:Re}))}}var G=(K.input==="last"?["change"]:["input","change"]).map((function(oe){return Qe(oe,de(z),x)})),O=x.defaultView;if(!O)return function(){G.forEach((function(oe){return oe()}))};var A,I=O.Object.getOwnPropertyDescriptor(O.HTMLInputElement.prototype,"value"),F=[[O.HTMLInputElement.prototype,"value"],[O.HTMLInputElement.prototype,"checked"],[O.HTMLSelectElement.prototype,"value"],[O.HTMLTextAreaElement.prototype,"value"],[O.HTMLSelectElement.prototype,"selectedIndex"],[O.HTMLOptionElement.prototype,"selected"]];return I&&I.set&&(A=G).push.apply(A,[].concat(F.map((function(oe){return Mi(oe[0],oe[1],{set:function(){de(z)({target:this,isTrusted:!1})}},!1,O)})))),de((function(){G.forEach((function(oe){return oe()}))}))})(t),_=(function(b){var T=b.mediaInteractionCb,x=b.blockClass,L=b.blockSelector,U=b.mirror,M=b.sampling,q=b.doc,W=de((function(re){return Vr(de((function(K){var H=Hr(K);if(H&&!Ke(H,x,L,!0)){var z=H.currentTime,$=H.volume,G=H.muted,O=H.playbackRate,A=H.loop;T({type:re,id:U.getId(H),currentTime:z,volume:$,muted:G,playbackRate:O,loop:A})}})),M.media||500)})),j=[Qe("play",W(pr.Play),q),Qe("pause",W(pr.Pause),q),Qe("seeked",W(pr.Seeked),q),Qe("volumechange",W(pr.VolumeChange),q),Qe("ratechange",W(pr.RateChange),q)];return de((function(){j.forEach((function(re){return re()}))}))})(t),m=function(){},g=function(){},v=function(){},y=function(){};t.recordDOM&&(m=(function(b,T){var x=b.styleSheetRuleCb,L=b.mirror,U=b.stylesheetManager,M=T.win;if(!M.CSSStyleSheet||!M.CSSStyleSheet.prototype)return function(){};var q=M.CSSStyleSheet.prototype.insertRule;M.CSSStyleSheet.prototype.insertRule=new Proxy(q,{apply:de((function(z,$,G){var O=G[0],A=G[1],I=Bt($,L,U.styleMirror),F=I.id,oe=I.styleId;return(F&&F!==-1||oe&&oe!==-1)&&x({id:F,styleId:oe,adds:[{rule:O,index:A}]}),z.apply($,G)}))}),M.CSSStyleSheet.prototype.addRule=function(z,$,G){G===void 0&&(G=this.cssRules.length);var O=z+" { "+$+" }";return M.CSSStyleSheet.prototype.insertRule.apply(this,[O,G])};var W,j,re=M.CSSStyleSheet.prototype.deleteRule;M.CSSStyleSheet.prototype.deleteRule=new Proxy(re,{apply:de((function(z,$,G){var O=G[0],A=Bt($,L,U.styleMirror),I=A.id,F=A.styleId;return(I&&I!==-1||F&&F!==-1)&&x({id:I,styleId:F,removes:[{index:O}]}),z.apply($,G)}))}),M.CSSStyleSheet.prototype.removeRule=function(z){return M.CSSStyleSheet.prototype.deleteRule.apply(this,[z])},M.CSSStyleSheet.prototype.replace&&(W=M.CSSStyleSheet.prototype.replace,M.CSSStyleSheet.prototype.replace=new Proxy(W,{apply:de((function(z,$,G){var O=G[0],A=Bt($,L,U.styleMirror),I=A.id,F=A.styleId;return(I&&I!==-1||F&&F!==-1)&&x({id:I,styleId:F,replace:O}),z.apply($,G)}))})),M.CSSStyleSheet.prototype.replaceSync&&(j=M.CSSStyleSheet.prototype.replaceSync,M.CSSStyleSheet.prototype.replaceSync=new Proxy(j,{apply:de((function(z,$,G){var O=G[0],A=Bt($,L,U.styleMirror),I=A.id,F=A.styleId;return(I&&I!==-1||F&&F!==-1)&&x({id:I,styleId:F,replaceSync:O}),z.apply($,G)}))}));var K={};Mn("CSSGroupingRule")?K.CSSGroupingRule=M.CSSGroupingRule:(Mn("CSSMediaRule")&&(K.CSSMediaRule=M.CSSMediaRule),Mn("CSSConditionRule")&&(K.CSSConditionRule=M.CSSConditionRule),Mn("CSSSupportsRule")&&(K.CSSSupportsRule=M.CSSSupportsRule));var H={};return Object.entries(K).forEach((function(z){var $=z[0],G=z[1];H[$]={insertRule:G.prototype.insertRule,deleteRule:G.prototype.deleteRule},G.prototype.insertRule=new Proxy(H[$].insertRule,{apply:de((function(O,A,I){var F=I[0],oe=I[1],te=Bt(A.parentStyleSheet,L,U.styleMirror),Ae=te.id,Re=te.styleId;return(Ae&&Ae!==-1||Re&&Re!==-1)&&x({id:Ae,styleId:Re,adds:[{rule:F,index:[].concat(Dn(A),[oe||0])}]}),O.apply(A,I)}))}),G.prototype.deleteRule=new Proxy(H[$].deleteRule,{apply:de((function(O,A,I){var F=I[0],oe=Bt(A.parentStyleSheet,L,U.styleMirror),te=oe.id,Ae=oe.styleId;return(te&&te!==-1||Ae&&Ae!==-1)&&x({id:te,styleId:Ae,removes:[{index:[].concat(Dn(A),[F])}]}),O.apply(A,I)}))})})),de((function(){M.CSSStyleSheet.prototype.insertRule=q,M.CSSStyleSheet.prototype.deleteRule=re,W&&(M.CSSStyleSheet.prototype.replace=W),j&&(M.CSSStyleSheet.prototype.replaceSync=j),Object.entries(K).forEach((function(z){var $=z[0],G=z[1];G.prototype.insertRule=H[$].insertRule,G.prototype.deleteRule=H[$].deleteRule}))}))})(t,{win:n}),g=Bu(t,t.doc),v=(function(b,T){var x=b.styleDeclarationCb,L=b.mirror,U=b.ignoreCSSAttributes,M=b.stylesheetManager,q=T.win,W=q.CSSStyleDeclaration.prototype.setProperty;q.CSSStyleDeclaration.prototype.setProperty=new Proxy(W,{apply:de((function(re,K,H){var z,$=H[0],G=H[1],O=H[2];if(U.has($))return W.apply(K,[$,G,O]);var A=Bt((z=K.parentRule)==null?void 0:z.parentStyleSheet,L,M.styleMirror),I=A.id,F=A.styleId;return(I&&I!==-1||F&&F!==-1)&&x({id:I,styleId:F,set:{property:$,value:G,priority:O},index:Dn(K.parentRule)}),re.apply(K,H)}))});var j=q.CSSStyleDeclaration.prototype.removeProperty;return q.CSSStyleDeclaration.prototype.removeProperty=new Proxy(j,{apply:de((function(re,K,H){var z,$=H[0];if(U.has($))return j.apply(K,[$]);var G=Bt((z=K.parentRule)==null?void 0:z.parentStyleSheet,L,M.styleMirror),O=G.id,A=G.styleId;return(O&&O!==-1||A&&A!==-1)&&x({id:O,styleId:A,remove:{property:$},index:Dn(K.parentRule)}),re.apply(K,H)}))}),de((function(){q.CSSStyleDeclaration.prototype.setProperty=W,q.CSSStyleDeclaration.prototype.removeProperty=j}))})(t,{win:n}),t.collectFonts&&(y=(function(b){var T=b.fontCb,x=b.doc,L=x.defaultView;if(!L)return function(){};var U=[],M=new WeakMap,q=L.FontFace;L.FontFace=function(j,re,K){var H=new q(j,re,K);return M.set(H,{family:j,buffer:typeof re!="string",descriptors:K,fontSource:typeof re=="string"?re:JSON.stringify(Array.from(new Uint8Array(re)))}),H};var W=Xt(x.fonts,"add",(function(j){return function(re){return setTimeout(de((function(){var K=M.get(re);K&&(T(K),M.delete(re))})),0),j.apply(this,[re])}}));return U.push((function(){L.FontFace=q})),U.push(W),de((function(){U.forEach((function(j){return j()}))}))})(t)));for(var k,E=(function(b){var T=b.doc,x=b.mirror,L=b.blockClass,U=b.blockSelector,M=b.selectionCb,q=!0,W=de((function(){var j=T.getSelection();if(!(!j||q&&j?.isCollapsed)){q=j.isCollapsed||!1;for(var re=[],K=j.rangeCount||0,H=0;H<K;H++){var z=j.getRangeAt(H),$=z.startContainer,G=z.startOffset,O=z.endContainer,A=z.endOffset;Ke($,L,U,!0)||Ke(O,L,U,!0)||re.push({start:x.getId($),startOffset:G,end:x.getId(O),endOffset:A})}M({ranges:re})}}));return W(),Qe("selectionchange",W)})(t),w=(function(b){var T=b.doc,x=b.customElementCb,L=T.defaultView;return L&&L.customElements?Xt(L.customElements,"define",(function(U){return function(M,q,W){try{x({define:{name:M}})}catch{console.warn("Custom element callback failed for "+M)}return U.apply(this,[M,q,W])}})):function(){}})(t),C=[],P=V(t.plugins);!(k=P()).done;){var D=k.value;C.push(D.observer(D.callback,n,D.options))}return de((function(){Ht.forEach((function(b){return b.reset()})),e?.disconnect(),o(),a(),c(),u(),p(),_(),m(),g(),v(),y(),E(),w(),C.forEach((function(b){return b()}))}))}function Bn(t){return window[t]!==void 0}function Mn(t){return!!(window[t]!==void 0&&window[t].prototype&&"insertRule"in window[t].prototype&&"deleteRule"in window[t].prototype)}for(var Sc=(function(){function t(e){N(this,"iframeIdToRemoteIdMap",new WeakMap),N(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=e}var r=t.prototype;return r.getId=function(e,n,i,s){var l=i||this.getIdToRemoteIdMap(e),d=s||this.getRemoteIdToIdMap(e),h=l.get(n);return h||(h=this.generateIdFn(),l.set(n,h),d.set(h,n)),h},r.getIds=function(e,n){var i=this,s=this.getIdToRemoteIdMap(e),l=this.getRemoteIdToIdMap(e);return n.map((function(d){return i.getId(e,d,s,l)}))},r.getRemoteId=function(e,n,i){var s=i||this.getRemoteIdToIdMap(e);if(typeof n!="number")return n;var l=s.get(n);return l||-1},r.getRemoteIds=function(e,n){var i=this,s=this.getRemoteIdToIdMap(e);return n.map((function(l){return i.getRemoteId(e,l,s)}))},r.reset=function(e){if(!e)return this.iframeIdToRemoteIdMap=new WeakMap,void(this.iframeRemoteIdToIdMap=new WeakMap);this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)},r.getIdToRemoteIdMap=function(e){var n=this.iframeIdToRemoteIdMap.get(e);return n||(n=new Map,this.iframeIdToRemoteIdMap.set(e,n)),n},r.getRemoteIdToIdMap=function(e){var n=this.iframeRemoteIdToIdMap.get(e);return n||(n=new Map,this.iframeRemoteIdToIdMap.set(e,n)),n},t})(),cm=(function(){function t(e){N(this,"iframes",new WeakMap),N(this,"crossOriginIframeMap",new WeakMap),N(this,"crossOriginIframeMirror",new Sc(vl)),N(this,"crossOriginIframeStyleMirror"),N(this,"crossOriginIframeRootIdMap",new WeakMap),N(this,"mirror"),N(this,"mutationCb"),N(this,"wrappedEmit"),N(this,"loadListener"),N(this,"stylesheetManager"),N(this,"recordCrossOriginIframes"),this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new Sc(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}var r=t.prototype;return r.addIframe=function(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)},r.addLoadListener=function(e){this.loadListener=e},r.attachIframe=function(e,n){var i,s;this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:n}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&((i=e.contentWindow)==null||i.addEventListener("message",this.handleMessage.bind(this))),(s=this.loadListener)==null||s.call(this,e),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&e.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))},r.handleMessage=function(e){var n=e;if(n.data.type==="rrweb"&&n.origin===n.data.origin&&e.source){var i=this.crossOriginIframeMap.get(e.source);if(i){var s=this.transformCrossOriginEvent(i,n.data.event);s&&this.wrappedEmit(s,n.data.isCheckout)}}},r.transformCrossOriginEvent=function(e,n){var i,s=this;switch(n.type){case le.FullSnapshot:this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(n.data.node,e);var l=n.data.node.id;return this.crossOriginIframeRootIdMap.set(e,l),this.patchRootIdOnNode(n.data.node,l),{timestamp:n.timestamp,type:le.IncrementalSnapshot,data:{source:X.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:n.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}};case le.Meta:case le.Load:case le.DomContentLoaded:return!1;case le.Plugin:return n;case le.Custom:return this.replaceIds(n.data.payload,e,["id","parentId","previousId","nextId"]),n;case le.IncrementalSnapshot:switch(n.data.source){case X.Mutation:return n.data.adds.forEach((function(d){s.replaceIds(d,e,["parentId","nextId","previousId"]),s.replaceIdOnNode(d.node,e);var h=s.crossOriginIframeRootIdMap.get(e);h&&s.patchRootIdOnNode(d.node,h)})),n.data.removes.forEach((function(d){s.replaceIds(d,e,["parentId","id"])})),n.data.attributes.forEach((function(d){s.replaceIds(d,e,["id"])})),n.data.texts.forEach((function(d){s.replaceIds(d,e,["id"])})),n;case X.Drag:case X.TouchMove:case X.MouseMove:return n.data.positions.forEach((function(d){s.replaceIds(d,e,["id"])})),n;case X.ViewportResize:return!1;case X.MediaInteraction:case X.MouseInteraction:case X.Scroll:case X.CanvasMutation:case X.Input:return this.replaceIds(n.data,e,["id"]),n;case X.StyleSheetRule:case X.StyleDeclaration:return this.replaceIds(n.data,e,["id"]),this.replaceStyleIds(n.data,e,["styleId"]),n;case X.Font:return n;case X.Selection:return n.data.ranges.forEach((function(d){s.replaceIds(d,e,["start","end"])})),n;case X.AdoptedStyleSheet:return this.replaceIds(n.data,e,["id"]),this.replaceStyleIds(n.data,e,["styleIds"]),(i=n.data.styles)==null||i.forEach((function(d){s.replaceStyleIds(d,e,["styleId"])})),n}}return!1},r.replace=function(e,n,i,s){for(var l,d=V(s);!(l=d()).done;){var h=l.value;(Array.isArray(n[h])||typeof n[h]=="number")&&(Array.isArray(n[h])?n[h]=e.getIds(i,n[h]):n[h]=e.getId(i,n[h]))}return n},r.replaceIds=function(e,n,i){return this.replace(this.crossOriginIframeMirror,e,n,i)},r.replaceStyleIds=function(e,n,i){return this.replace(this.crossOriginIframeStyleMirror,e,n,i)},r.replaceIdOnNode=function(e,n){var i=this;this.replaceIds(e,n,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach((function(s){i.replaceIdOnNode(s,n)}))},r.patchRootIdOnNode=function(e,n){var i=this;e.type===Ru.Document||e.rootId||(e.rootId=n),"childNodes"in e&&e.childNodes.forEach((function(s){i.patchRootIdOnNode(s,n)}))},t})(),lm=(function(){function t(e){N(this,"shadowDoms",new WeakSet),N(this,"mutationCb"),N(this,"scrollCb"),N(this,"bypassOptions"),N(this,"mirror"),N(this,"restoreHandlers",[]),this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}var r=t.prototype;return r.init=function(){this.reset(),this.patchAttachShadow(Element,document)},r.addShadowRoot=function(e,n){var i=this;if(Gr(e)&&!this.shadowDoms.has(e)){this.shadowDoms.add(e);var s=Ou(pe({},this.bypassOptions,{doc:n,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),e);this.restoreHandlers.push((function(){return s.disconnect()})),this.restoreHandlers.push(Du(pe({},this.bypassOptions,{scrollCb:this.scrollCb,doc:e,mirror:this.mirror}))),setTimeout((function(){e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&i.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,i.mirror.getId(ce.host(e))),i.restoreHandlers.push(Bu({mirror:i.mirror,stylesheetManager:i.bypassOptions.stylesheetManager},e))}),0)}},r.observeAttachShadow=function(e){e.contentWindow&&e.contentDocument&&this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)},r.patchAttachShadow=function(e,n){var i=this;this.restoreHandlers.push(Xt(e.prototype,"attachShadow",(function(s){return function(l){var d=s.call(this,l),h=ce.shadowRoot(this);return h&&Pu(this)&&i.addShadowRoot(h,n),d}})))},r.reset=function(){this.restoreHandlers.forEach((function(e){try{e()}catch{}})),this.restoreHandlers=[],this.shadowDoms=new WeakSet},t})(),Ur="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",um=typeof Uint8Array>"u"?[]:new Uint8Array(256),Ln=0;Ln<64;Ln++)um[Ur.charCodeAt(Ln)]=Ln;var Ec=new Map,Mu=function(t,r,e){if(t&&(Nu(t,r)||(t===void 0?"undefined":ie(t))==="object")){var n=(function(s,l){var d=Ec.get(s);return d||(d=new Map,Ec.set(s,d)),d.has(l)||d.set(l,[]),d.get(l)})(e,t.constructor.name),i=n.indexOf(t);return i===-1&&(i=n.length,n.push(t)),i}};function ei(t,r,e){return J(t,Array)?t.map((function(n){return ei(n,r,e)})):t===null?t:J(t,Float32Array)||J(t,Float64Array)||J(t,Int32Array)||J(t,Uint32Array)||J(t,Uint8Array)||J(t,Uint16Array)||J(t,Int16Array)||J(t,Int8Array)||J(t,Uint8ClampedArray)?{rr_type:t.constructor.name,args:[Object.values(t)]}:J(t,ArrayBuffer)?{rr_type:t.constructor.name,base64:(function(n){var i,s=new Uint8Array(n),l=s.length,d="";for(i=0;i<l;i+=3)d+=Ur[s[i]>>2],d+=Ur[(3&s[i])<<4|s[i+1]>>4],d+=Ur[(15&s[i+1])<<2|s[i+2]>>6],d+=Ur[63&s[i+2]];return l%3==2?d=d.substring(0,d.length-1)+"=":l%3==1&&(d=d.substring(0,d.length-2)+"=="),d})(t)}:J(t,DataView)?{rr_type:t.constructor.name,args:[ei(t.buffer,r,e),t.byteOffset,t.byteLength]}:J(t,HTMLImageElement)?{rr_type:t.constructor.name,src:t.src}:J(t,HTMLCanvasElement)?{rr_type:"HTMLImageElement",src:t.toDataURL()}:J(t,ImageData)?{rr_type:t.constructor.name,args:[ei(t.data,r,e),t.width,t.height]}:Nu(t,r)||(t===void 0?"undefined":ie(t))==="object"?{rr_type:t.constructor.name,index:Mu(t,r,e)}:t}var Lu=function(t,r,e){return t.map((function(n){return ei(n,r,e)}))},Nu=function(t,r){var e=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter((function(n){return typeof r[n]=="function"}));return!!e.find((function(n){return J(t,r[n])}))};function Ac(t,r,e,n){var i=[];try{var s=Xt(t.HTMLCanvasElement.prototype,"getContext",(function(l){return function(d){for(var h=arguments.length,o=new Array(h>1?h-1:0),a=1;a<h;a++)o[a-1]=arguments[a];if(!Ke(this,r,e,!0)){var c=(function(p){return p==="experimental-webgl"?"webgl":p})(d);if("__context"in this||(this.__context=c),n&&["webgl","webgl2"].includes(c))if(o[0]&&ie(o[0])==="object"){var u=o[0];u.preserveDrawingBuffer||(u.preserveDrawingBuffer=!0)}else o.splice(0,1,{preserveDrawingBuffer:!0})}return l.apply(this,[].concat([d],o))}}));i.push(s)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return function(){i.forEach((function(l){return l()}))}}function Ic(t,r,e,n,i,s){for(var l,d=function(){var a=l.value;if(["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(a))return"continue";try{if(typeof t[a]!="function")return"continue";var c=Xt(t,a,(function(p){return function(){for(var _=arguments.length,m=new Array(_),g=0;g<_;g++)m[g]=arguments[g];var v=p.apply(this,m);if(Mu(v,s,this),"tagName"in this.canvas&&!Ke(this.canvas,n,i,!0)){var y=Lu(m,s,this),k={type:r,property:a,args:y};e(this.canvas,k)}return v}}));h.push(c)}catch{var u=Mi(t,a,{set:function(_){e(this.canvas,{type:r,property:a,args:[_],setter:!0})}});h.push(u)}},h=[],o=V(Object.getOwnPropertyNames(t));!(l=o()).done;)d();return h}var Tc,Fu="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=",Pc=typeof window<"u"&&window.Blob&&new Blob([(Tc=Fu,Uint8Array.from(atob(Tc),(function(t){return t.charCodeAt(0)})))],{type:"text/javascript;charset=utf-8"});function dm(t){var r;try{if(!(r=Pc&&(window.URL||window.webkitURL).createObjectURL(Pc)))throw"";var e=new Worker(r,{name:t?.name});return e.addEventListener("error",(function(){(window.URL||window.webkitURL).revokeObjectURL(r)})),e}catch{return new Worker("data:text/javascript;base64,"+Fu,{name:t?.name})}finally{r&&(window.URL||window.webkitURL).revokeObjectURL(r)}}var Pe,ti,eo,hm=(function(){function t(e){var n=this;N(this,"pendingCanvasMutations",new Map),N(this,"rafStamps",{latestId:0,invokeId:null}),N(this,"mirror"),N(this,"mutationCb"),N(this,"resetObservers"),N(this,"frozen",!1),N(this,"locked",!1),N(this,"processMutation",(function(c,u){!(n.rafStamps.invokeId&&n.rafStamps.latestId!==n.rafStamps.invokeId)&&n.rafStamps.invokeId||(n.rafStamps.invokeId=n.rafStamps.latestId),n.pendingCanvasMutations.has(c)||n.pendingCanvasMutations.set(c,[]),n.pendingCanvasMutations.get(c).push(u)}));var i=e.sampling,s=i===void 0?"all":i,l=e.win,d=e.blockClass,h=e.blockSelector,o=e.recordCanvas,a=e.dataURLOptions;this.mutationCb=e.mutationCb,this.mirror=e.mirror,o&&s==="all"&&this.initCanvasMutationObserver(l,d,h),o&&typeof s=="number"&&this.initCanvasFPSObserver(s,l,d,h,{dataURLOptions:a})}var r=t.prototype;return r.reset=function(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()},r.freeze=function(){this.frozen=!0},r.unfreeze=function(){this.frozen=!1},r.lock=function(){this.locked=!0},r.unlock=function(){this.locked=!1},r.initCanvasFPSObserver=function(e,n,i,s,l){var d=this,h=Ac(n,i,s,!0),o=new Map,a=new dm;a.onmessage=function(m){var g=m.data.id;if(o.set(g,!1),"base64"in m.data){var v=m.data,y=v.base64,k=v.type,E=v.width,w=v.height;d.mutationCb({id:g,type:hr["2D"],commands:[{property:"clearRect",args:[0,0,E,w]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:y}],type:k}]},0,0]}]})}};var c,u=1e3/e,p=0,_=function(m){if(p&&m-p<u)c=requestAnimationFrame(_);else{p=m;var g,v=d;(g=[],n.document.querySelectorAll("canvas").forEach((function(y){Ke(y,i,s,!0)||g.push(y)})),g).forEach(Ca((function(y){var k,E,w,C;return Xr(this,(function(P){switch(P.label){case 0:return E=v.mirror.getId(y),o.get(E)?[2]:y.width===0||y.height===0?[2]:(o.set(E,!0),["webgl","webgl2"].includes(y.__context)&&(w=y.getContext(y.__context),((k=w?.getContextAttributes())==null?void 0:k.preserveDrawingBuffer)===!1&&w.clear(w.COLOR_BUFFER_BIT)),[4,createImageBitmap(y)]);case 1:return C=P.sent(),a.postMessage({id:E,bitmap:C,width:y.width,height:y.height,dataURLOptions:l.dataURLOptions},[C]),[2]}}))}))),c=requestAnimationFrame(_)}};c=requestAnimationFrame(_),this.resetObservers=function(){h(),cancelAnimationFrame(c)}},r.initCanvasMutationObserver=function(e,n,i){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();var s=Ac(e,n,i,!1),l=(function(h,o,a,c){for(var u,p=function(){var g=u.value;try{if(typeof o.CanvasRenderingContext2D.prototype[g]!="function")return"continue";var v=Xt(o.CanvasRenderingContext2D.prototype,g,(function(k){return function(){for(var E=this,w=arguments.length,C=new Array(w),P=0;P<w;P++)C[P]=arguments[P];return Ke(this.canvas,a,c,!0)||setTimeout((function(){var D=Lu(C,o,E);h(E.canvas,{type:hr["2D"],property:g,args:D})}),0),k.apply(this,C)}}));_.push(v)}catch{var y=Mi(o.CanvasRenderingContext2D.prototype,g,{set:function(E){h(this.canvas,{type:hr["2D"],property:g,args:[E],setter:!0})}});_.push(y)}},_=[],m=V(Object.getOwnPropertyNames(o.CanvasRenderingContext2D.prototype));!(u=m()).done;)p();return function(){_.forEach((function(g){return g()}))}})(this.processMutation.bind(this),e,n,i),d=(function(h,o,a,c){var u,p,_=[];return(u=_).push.apply(u,[].concat(Ic(o.WebGLRenderingContext.prototype,hr.WebGL,h,a,c,o))),o.WebGL2RenderingContext!==void 0&&(p=_).push.apply(p,[].concat(Ic(o.WebGL2RenderingContext.prototype,hr.WebGL2,h,a,c,o))),function(){_.forEach((function(m){return m()}))}})(this.processMutation.bind(this),e,n,i);this.resetObservers=function(){s(),l(),d()}},r.startPendingCanvasMutationFlusher=function(){var e=this;requestAnimationFrame((function(){return e.flushPendingCanvasMutations()}))},r.startRAFTimestamping=function(){var e=this,n=function(i){e.rafStamps.latestId=i,requestAnimationFrame(n)};requestAnimationFrame(n)},r.flushPendingCanvasMutations=function(){var e=this;this.pendingCanvasMutations.forEach((function(n,i){var s=e.mirror.getId(i);e.flushPendingCanvasMutationFor(i,s)})),requestAnimationFrame((function(){return e.flushPendingCanvasMutations()}))},r.flushPendingCanvasMutationFor=function(e,n){if(!this.frozen&&!this.locked){var i=this.pendingCanvasMutations.get(e);if(i&&n!==-1){var s=i.map((function(d){return d.type,Yr(d,["type"])})),l=i[0].type;this.mutationCb({id:n,type:l,commands:s}),this.pendingCanvasMutations.delete(e)}}},t})(),pm=(function(){function t(e){N(this,"trackedLinkElements",new WeakSet),N(this,"mutationCb"),N(this,"adoptedStyleSheetCb"),N(this,"styleMirror",new tm),this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}var r=t.prototype;return r.attachLinkElement=function(e,n){"_cssText"in n.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:n.id,attributes:n.attributes}]}),this.trackLinkElement(e)},r.trackLinkElement=function(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))},r.adoptStyleSheets=function(e,n){var i,s=function(){var a=l.value,c=void 0;i.styleMirror.has(a)?c=i.styleMirror.getId(a):(c=i.styleMirror.add(a),h.push({styleId:c,rules:Array.from(a.rules||CSSRule,(function(u,p){return{rule:_l(u,a.href),index:p}}))})),d.styleIds.push(c)};if(e.length!==0){for(var l,d={id:n,styleIds:[]},h=[],o=V(e);!(l=o()).done;)i=this,s();h.length>0&&(d.styles=h),this.adoptedStyleSheetCb(d)}},r.reset=function(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet},r.trackStylesheetInLinkElement=function(e){},t})(),fm=(function(){function t(){N(this,"nodeMap",new WeakMap),N(this,"active",!1)}var r=t.prototype;return r.inOtherBuffer=function(e,n){var i=this.nodeMap.get(e);return i&&Array.from(i).some((function(s){return s!==n}))},r.add=function(e,n){var i=this;this.active||(this.active=!0,requestAnimationFrame((function(){i.nodeMap=new WeakMap,i.active=!1}))),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(n))},r.destroy=function(){},t})(),vi=!1;try{if(Array.from([1],(function(t){return 2*t}))[0]!==2){var to=document.createElement("iframe");document.body.appendChild(to),Array.from=((fs=to.contentWindow)==null?void 0:fs.Array.from)||Array.from,document.body.removeChild(to)}}catch(t){console.debug("Unable to override Array.from",t)}var Rc,ar,st=new gl;function Nt(t){t===void 0&&(t={});var r=t.emit,e=t.checkoutEveryNms,n=t.checkoutEveryNth,i=t.blockClass,s=i===void 0?"rr-block":i,l=t.blockSelector,d=l===void 0?null:l,h=t.ignoreClass,o=h===void 0?"rr-ignore":h,a=t.ignoreSelector,c=a===void 0?null:a,u=t.maskTextClass,p=u===void 0?"rr-mask":u,_=t.maskTextSelector,m=_===void 0?null:_,g=t.inlineStylesheet,v=g===void 0||g,y=t.maskAllInputs,k=t.maskInputOptions,E=t.slimDOMOptions,w=t.maskInputFn,C=t.maskTextFn,P=t.hooks,D=t.packFn,b=t.sampling,T=b===void 0?{}:b,x=t.dataURLOptions,L=x===void 0?{}:x,U=t.mousemoveWait,M=t.recordDOM,q=M===void 0||M,W=t.recordCanvas,j=W!==void 0&&W,re=t.recordCrossOriginIframes,K=re!==void 0&&re,H=t.recordAfter,z=H===void 0?t.recordAfter==="DOMContentLoaded"?t.recordAfter:"load":H,$=t.userTriggeredOnInput,G=$!==void 0&&$,O=t.collectFonts,A=O!==void 0&&O,I=t.inlineImages,F=I!==void 0&&I,oe=t.plugins,te=t.keepIframeSrcFn,Ae=te===void 0?function(){return!1}:te,Re=t.ignoreCSSAttributes,He=Re===void 0?new Set([]):Re,et=t.errorHandler;$r=et;var Ze=!K||window.parent===window,Je=!1;if(!Ze)try{window.parent.document&&(Je=!1)}catch{Je=!0}if(Ze&&!r)throw new Error("emit function is required");if(!Ze&&!Je)return function(){};U!==void 0&&T.mousemove===void 0&&(T.mousemove=U),st.reset();var Be,B,ge=y===!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,password:!0,hidden:!0}:k!==void 0?k:{password:!0},ut=E===!0||E==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:E==="all",headMetaDescKeywords:E==="all",headTitleMutations:E==="all"}:E||{};Be===void 0&&(Be=window),"NodeList"in Be&&!Be.NodeList.prototype.forEach&&(Be.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in Be&&!Be.DOMTokenList.prototype.forEach&&(Be.DOMTokenList.prototype.forEach=Array.prototype.forEach);var je=0,qe=function(fe){for(var ze,Z=V(oe||[]);!(ze=Z()).done;){var be=ze.value;be.eventProcessor&&(fe=be.eventProcessor(fe))}return D&&!Je&&(fe=D(fe)),fe};Pe=function(fe,ze){var Z,be=fe;if(be.timestamp=gi(),!((Z=Ht[0])!=null&&Z.isFrozen())||be.type===le.FullSnapshot||be.type===le.IncrementalSnapshot&&be.data.source===X.Mutation||Ht.forEach((function(dn){return dn.unfreeze()})),Ze)r?.(qe(be),ze);else if(Je){var Te={type:"rrweb",event:qe(be),origin:window.location.origin,isCheckout:ze};window.parent.postMessage(Te,"*")}if(be.type===le.FullSnapshot)B=be,je=0;else if(be.type===le.IncrementalSnapshot){if(be.data.source===X.Mutation&&be.data.isAttachIframe)return;je++;var un=n&&je>=n,Fi=e&&be.timestamp-B.timestamp>e;(un||Fi)&&ti(!0)}};for(var at,dt=function(fe){Pe({type:le.IncrementalSnapshot,data:pe({source:X.Mutation},fe)})},tr=function(fe){return Pe({type:le.IncrementalSnapshot,data:pe({source:X.Scroll},fe)})},Ie=function(fe){return Pe({type:le.IncrementalSnapshot,data:pe({source:X.CanvasMutation},fe)})},Ve=new pm({mutationCb:dt,adoptedStyleSheetCb:function(fe){return Pe({type:le.IncrementalSnapshot,data:pe({source:X.AdoptedStyleSheet},fe)})}}),Ye=new cm({mirror:st,mutationCb:dt,stylesheetManager:Ve,recordCrossOriginIframes:K,wrappedEmit:Pe}),bt=V(oe||[]);!(at=bt()).done;){var xt=at.value;xt.getMirror&&xt.getMirror({nodeMirror:st,crossOriginIframeMirror:Ye.crossOriginIframeMirror,crossOriginIframeStyleMirror:Ye.crossOriginIframeStyleMirror})}var rr=new fm;eo=new hm({recordCanvas:j,mutationCb:Ie,win:window,blockClass:s,blockSelector:d,mirror:st,sampling:T.canvas,dataURLOptions:L});var nr=new lm({mutationCb:dt,scrollCb:tr,bypassOptions:{blockClass:s,blockSelector:d,maskTextClass:p,maskTextSelector:m,inlineStylesheet:v,maskInputOptions:ge,dataURLOptions:L,maskTextFn:C,maskInputFn:w,recordCanvas:j,inlineImages:F,sampling:T,slimDOMOptions:ut,iframeManager:Ye,stylesheetManager:Ve,canvasManager:eo,keepIframeSrcFn:Ae,processedNodeManager:rr},mirror:st});ti=function(fe){if(fe===void 0&&(fe=!1),q){Pe({type:le.Meta,data:{href:window.location.href,width:wu(),height:Cu()}},fe),Ve.reset(),nr.init(),Ht.forEach((function(Z){return Z.lock()}));var ze=(function(Z,be){var Te=be||{},un=Te.mirror,Fi=un===void 0?new gl:un,dn=Te.blockClass,kd=dn===void 0?"rr-block":dn,Ya=Te.blockSelector,Cd=Ya===void 0?null:Ya,Xa=Te.maskTextClass,wd=Xa===void 0?"rr-mask":Xa,Qa=Te.maskTextSelector,Sd=Qa===void 0?null:Qa,Ka=Te.inlineStylesheet,Ed=Ka===void 0||Ka,es=Te.inlineImages,Ad=es!==void 0&&es,ts=Te.recordCanvas,Id=ts!==void 0&&ts,rs=Te.maskAllInputs,Vi=rs!==void 0&&rs,Td=Te.maskTextFn,Pd=Te.maskInputFn,ns=Te.slimDOM,Ir=ns!==void 0&&ns,Rd=Te.dataURLOptions,xd=Te.preserveWhiteSpace,Od=Te.onSerialize,Dd=Te.onIframeLoad,Bd=Te.iframeLoadTimeout,Md=Te.onStylesheetLoad,Ld=Te.stylesheetLoadTimeout,is=Te.keepIframeSrcFn;return yr(Z,{doc:Z,mirror:Fi,blockClass:kd,blockSelector:Cd,maskTextClass:wd,maskTextSelector:Sd,skipChild:!1,inlineStylesheet:Ed,maskInputOptions:Vi===!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,password:!0,hidden:!0}:Vi===!1?{password:!0}:Vi,maskTextFn:Td,maskInputFn:Pd,slimDOMOptions:Ir===!0||Ir==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:Ir==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:Ir===!1?{}:Ir,dataURLOptions:Rd,inlineImages:Ad,recordCanvas:Id,preserveWhiteSpace:xd,onSerialize:Od,onIframeLoad:Dd,iframeLoadTimeout:Bd,onStylesheetLoad:Md,stylesheetLoadTimeout:Ld,keepIframeSrcFn:is===void 0?function(){return!1}:is,newlyAddedElement:!1})})(document,{mirror:st,blockClass:s,blockSelector:d,maskTextClass:p,maskTextSelector:m,inlineStylesheet:v,maskAllInputs:ge,maskTextFn:C,maskInputFn:w,slimDOM:ut,dataURLOptions:L,recordCanvas:j,inlineImages:F,onSerialize:function(Z){Au(Z,st)&&Ye.addIframe(Z),Iu(Z,st)&&Ve.trackLinkElement(Z),Qo(Z)&&nr.addShadowRoot(ce.shadowRoot(Z),document)},onIframeLoad:function(Z,be){Ye.attachIframe(Z,be),nr.observeAttachShadow(Z)},onStylesheetLoad:function(Z,be){Ve.attachLinkElement(Z,be)},keepIframeSrcFn:Ae});if(!ze)return console.warn("Failed to snapshot the document");Pe({type:le.FullSnapshot,data:{node:ze,initialOffset:ku(window)}},fe),Ht.forEach((function(Z){return Z.unlock()})),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&Ve.adoptStyleSheets(document.adoptedStyleSheets,st.getId(document))}};try{var Ar=[],Ja=function(fe){var ze;return de(sm)({mutationCb:dt,mousemoveCb:function(Z,be){return Pe({type:le.IncrementalSnapshot,data:{source:be,positions:Z}})},mouseInteractionCb:function(Z){return Pe({type:le.IncrementalSnapshot,data:pe({source:X.MouseInteraction},Z)})},scrollCb:tr,viewportResizeCb:function(Z){return Pe({type:le.IncrementalSnapshot,data:pe({source:X.ViewportResize},Z)})},inputCb:function(Z){return Pe({type:le.IncrementalSnapshot,data:pe({source:X.Input},Z)})},mediaInteractionCb:function(Z){return Pe({type:le.IncrementalSnapshot,data:pe({source:X.MediaInteraction},Z)})},styleSheetRuleCb:function(Z){return Pe({type:le.IncrementalSnapshot,data:pe({source:X.StyleSheetRule},Z)})},styleDeclarationCb:function(Z){return Pe({type:le.IncrementalSnapshot,data:pe({source:X.StyleDeclaration},Z)})},canvasMutationCb:Ie,fontCb:function(Z){return Pe({type:le.IncrementalSnapshot,data:pe({source:X.Font},Z)})},selectionCb:function(Z){Pe({type:le.IncrementalSnapshot,data:pe({source:X.Selection},Z)})},customElementCb:function(Z){Pe({type:le.IncrementalSnapshot,data:pe({source:X.CustomElement},Z)})},blockClass:s,ignoreClass:o,ignoreSelector:c,maskTextClass:p,maskTextSelector:m,maskInputOptions:ge,inlineStylesheet:v,sampling:T,recordDOM:q,recordCanvas:j,inlineImages:F,userTriggeredOnInput:G,collectFonts:A,doc:fe,maskInputFn:w,maskTextFn:C,keepIframeSrcFn:Ae,blockSelector:d,slimDOMOptions:ut,dataURLOptions:L,mirror:st,iframeManager:Ye,stylesheetManager:Ve,shadowDomManager:nr,processedNodeManager:rr,canvasManager:eo,ignoreCSSAttributes:He,plugins:((ze=oe?.filter((function(Z){return Z.observer})))==null?void 0:ze.map((function(Z){return{observer:Z.observer,options:Z.options,callback:function(be){return Pe({type:le.Plugin,data:{plugin:Z.name,payload:be}})}}})))||[]},P)};Ye.addLoadListener((function(fe){try{Ar.push(Ja(fe.contentDocument))}catch(ze){console.warn(ze)}}));var Ni=function(){ti(),Ar.push(Ja(document)),vi=!0};return document.readyState==="interactive"||document.readyState==="complete"?Ni():(Ar.push(Qe("DOMContentLoaded",(function(){Pe({type:le.DomContentLoaded,data:{}}),z==="DOMContentLoaded"&&Ni()}))),Ar.push(Qe("load",(function(){Pe({type:le.Load,data:{}}),z==="load"&&Ni()}),window))),function(){Ar.forEach((function(fe){try{fe()}catch(ze){String(ze).toLowerCase().includes("cross-origin")||console.warn(ze)}})),rr.destroy(),vi=!1,$r=void 0}}catch(fe){console.warn(fe)}}Nt.addCustomEvent=function(t,r){if(!vi)throw new Error("please add custom event after start recording");Pe({type:le.Custom,data:{tag:t,payload:r}})},Nt.freezePage=function(){Ht.forEach((function(t){return t.freeze()}))},Nt.takeFullSnapshot=function(t){if(!vi)throw new Error("please take full snapshot after start recording");ti(t)},Nt.mirror=st,(ar=Rc||(Rc={}))[ar.NotStarted=0]="NotStarted",ar[ar.Running=1]="Running",ar[ar.Stopped=2]="Stopped",Nt.addCustomEvent,Nt.freezePage,Nt.takeFullSnapshot;var mm=Object.defineProperty,Nn=function(t,r,e){return(function(n,i,s){return i in n?mm(n,i,{enumerable:!0,configurable:!0,writable:!0,value:s}):n[i]=s})(t,(r===void 0?"undefined":ie(r))!=="symbol"?r+"":r,e)},sr=(function(){function t(r){Nn(this,"fileName"),Nn(this,"functionName"),Nn(this,"lineNumber"),Nn(this,"columnNumber"),this.fileName=r.fileName||"",this.functionName=r.functionName||"",this.lineNumber=r.lineNumber,this.columnNumber=r.columnNumber}return t.prototype.toString=function(){var r=this.lineNumber||"",e=this.columnNumber||"";return this.functionName?this.functionName+" ("+this.fileName+":"+r+":"+e+")":this.fileName+":"+r+":"+e},t})(),_m=/(^|@)\S+:\d+/,xc=/^\s*at .*(\S+:\d+|\(native\))/m,gm=/^(eval@)?(\[native code])?$/,ro={parse:function(t){return t?t.stacktrace!==void 0||t["opera#sourceloc"]!==void 0?this.parseOpera(t):t.stack&&t.stack.match(xc)?this.parseV8OrIE(t):t.stack?this.parseFFOrSafari(t):(console.warn("[console-record-plugin]: Failed to parse error object:",t),[]):[]},extractLocation:function(t){if(t.indexOf(":")===-1)return[t];var r=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(t.replace(/[()]/g,""));if(!r)throw new Error("Cannot parse given url: "+t);return[r[1],r[2]||void 0,r[3]||void 0]},parseV8OrIE:function(t){return t.stack.split(`
54
+ `).filter((function(r){return!!r.match(xc)}),this).map((function(r){r.indexOf("(eval ")>-1&&(r=r.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(\),.*$)/g,""));var e=r.replace(/^\s+/,"").replace(/\(eval code/g,"("),n=e.match(/ (\((.+):(\d+):(\d+)\)$)/),i=(e=n?e.replace(n[0],""):e).split(/\s+/).slice(1),s=this.extractLocation(n?n[1]:i.pop()),l=i.join(" ")||void 0,d=["eval","<anonymous>"].indexOf(s[0])>-1?void 0:s[0];return new sr({functionName:l,fileName:d,lineNumber:s[1],columnNumber:s[2]})}),this)},parseFFOrSafari:function(t){return t.stack.split(`
55
+ `).filter((function(r){return!r.match(gm)}),this).map((function(r){if(r.indexOf(" > eval")>-1&&(r=r.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),r.indexOf("@")===-1&&r.indexOf(":")===-1)return new sr({functionName:r});var e=/((.*".+"[^@]*)?[^@]*)(?:@)/,n=r.match(e),i=n&&n[1]?n[1]:void 0,s=this.extractLocation(r.replace(e,""));return new sr({functionName:i,fileName:s[0],lineNumber:s[1],columnNumber:s[2]})}),this)},parseOpera:function(t){return!t.stacktrace||t.message.indexOf(`
56
+ `)>-1&&t.message.split(`
57
+ `).length>t.stacktrace.split(`
58
+ `).length?this.parseOpera9(t):t.stack?this.parseOpera11(t):this.parseOpera10(t)},parseOpera9:function(t){for(var r=/Line (\d+).*script (?:in )?(\S+)/i,e=t.message.split(`
59
+ `),n=[],i=2,s=e.length;i<s;i+=2){var l=r.exec(e[i]);l&&n.push(new sr({fileName:l[2],lineNumber:parseFloat(l[1])}))}return n},parseOpera10:function(t){for(var r=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,e=t.stacktrace.split(`
60
+ `),n=[],i=0,s=e.length;i<s;i+=2){var l=r.exec(e[i]);l&&n.push(new sr({functionName:l[3]||void 0,fileName:l[2],lineNumber:parseFloat(l[1])}))}return n},parseOpera11:function(t){return t.stack.split(`
61
+ `).filter((function(r){return!!r.match(_m)&&!r.match(/^Error created at/)}),this).map((function(r){var e=r.split("@"),n=this.extractLocation(e.pop()),i=(e.shift()||"").replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^)]*\)/g,"")||void 0;return new sr({functionName:i,fileName:n[0],lineNumber:n[1],columnNumber:n[2]})}),this)}};function vm(t){if(!t||!t.outerHTML)return"";for(var r="";t.parentElement;){var e=t.localName;if(!e)break;e=e.toLowerCase();var n=t.parentElement,i=[];if(n.children&&n.children.length>0)for(var s=0;s<n.children.length;s++){var l=n.children[s];l.localName&&l.localName.toLowerCase&&l.localName.toLowerCase()===e&&i.push(l)}i.length>1&&(e+=":eq("+i.indexOf(t)+")"),r=e+(r?">"+r:""),t=n}return r}function ea(t){return Object.prototype.toString.call(t)==="[object Object]"}function Vu(t,r){if(r===0)return!0;for(var e,n=V(Object.keys(t));!(e=n()).done;){var i=e.value;if(ea(t[i])&&Vu(t[i],r-1))return!0}return!1}function cr(t,r){var e={numOfKeysLimit:50,depthOfLimit:4};Object.assign(e,r);var n=[],i=[];return JSON.stringify(t,(function(s,l){if(n.length>0){var d=n.indexOf(this);~d?n.splice(d+1):n.push(this),~d?i.splice(d,1/0,s):i.push(s),~n.indexOf(l)&&(l=n[0]===l?"[Circular ~]":"[Circular ~."+i.slice(0,n.indexOf(l)).join(".")+"]")}else n.push(l);if(l===null)return l;if(l===void 0)return"undefined";if((function(c){return!!(ea(c)&&Object.keys(c).length>e.numOfKeysLimit||typeof c=="function"||ea(c)&&Vu(c,e.depthOfLimit))})(l))return(function(c){var u=c.toString();return e.stringLengthLimit&&u.length>e.stringLengthLimit&&(u=u.slice(0,e.stringLengthLimit)+"..."),u})(l);if((l===void 0?"undefined":ie(l))==="bigint")return l.toString()+"n";if(J(l,Event)){var h={};for(var o in l){var a=l[o];Array.isArray(a)?h[o]=vm(a.length?a[0]:null):h[o]=a}return h}return J(l,Node)?J(l,HTMLElement)?l?l.outerHTML:"":l.nodeName:J(l,Error)?l.stack?l.stack+`
62
+ End of stack for Error object`:l.name+": "+l.message:l}))}var Oc={level:["assert","clear","count","countReset","debug","dir","dirxml","error","group","groupCollapsed","groupEnd","info","log","table","time","timeEnd","timeLog","trace","warn"],lengthThreshold:1e3,logger:"console"};function ym(t,r,e){var n,i=e?Object.assign({},Oc,e):Oc,s=i.logger;if(!s)return function(){};n=typeof s=="string"?r[s]:s;var l=0,d=!1,h=[];if(i.level.includes("error")){var o=function(m){var g=m.message,v=m.error,y=ro.parse(v).map((function(E){return E.toString()})),k=[cr(g,i.stringifyOptions)];t({level:"error",trace:y,payload:k})};r.addEventListener("error",o),h.push((function(){r.removeEventListener("error",o)}));var a=function(m){var g,v;J(m.reason,Error)?v=[cr("Uncaught (in promise) "+(g=m.reason).name+": "+g.message,i.stringifyOptions)]:(g=new Error,v=[cr("Uncaught (in promise)",i.stringifyOptions),cr(m.reason,i.stringifyOptions)]);var y=ro.parse(g).map((function(k){return k.toString()}));t({level:"error",trace:y,payload:v})};r.addEventListener("unhandledrejection",a),h.push((function(){r.removeEventListener("unhandledrejection",a)}))}for(var c,u=V(i.level);!(c=u()).done;){var p=c.value;h.push(_(n,p))}return function(){h.forEach((function(m){return m()}))};function _(m,g){var v=this;return m[g]?(function(y,k,E){try{if(!(k in y))return function(){};var w=y[k],C=E(w);return typeof C=="function"&&(C.prototype=C.prototype||{},Object.defineProperties(C,{__rrweb_original__:{enumerable:!1,value:w}})),y[k]=C,function(){y[k]=w}}catch{return function(){}}})(m,g,(function(y){var k=v;return function(){for(var E=arguments.length,w=new Array(E),C=0;C<E;C++)w[C]=arguments[C];if(y.apply(k,w),!(g==="assert"&&w[0]||d)){d=!0;try{var P=ro.parse(new Error).map((function(b){return b.toString()})).splice(1),D=(g==="assert"?w.slice(1):w).map((function(b){return cr(b,i.stringifyOptions)}));++l<i.lengthThreshold?t({level:g,trace:P,payload:D}):l===i.lengthThreshold&&t({level:"warn",trace:[],payload:[cr("The number of log records reached the threshold.")]})}catch(b){y.apply(void 0,[].concat(["rrweb logger error:",b],w))}finally{d=!1}}}})):function(){}}}var Ut,ta,ra,Dc=R.setImmediate,Bc=Object.prototype.toString,bm=Dc!==void 0?function(t){return Dc(t)}:setTimeout;try{Object.defineProperty({},"x",{}),Ut=function(t,r,e,n){return Object.defineProperty(t,r,{value:e,writable:!0,configurable:n!==!1})}}catch{Ut=function(r,e,n){return r[e]=n,r}}function yi(t,r){ra.add(t,r),ta||(ta=bm(ra.drain))}function Uu(t){var r,e=typeof t;return t===null||e!=="object"&&e!=="function"||(r=t.then),typeof r=="function"&&r}function qa(){for(var t=0;t<this.chain.length;t++)km(this,this.state===1?this.chain[t].success:this.chain[t].failure,this.chain[t]);this.chain.length=0}function km(t,r,e){var n,i;try{r===!1?e.reject(t.msg):(n=r===!0?t.msg:r.call(void 0,t.msg))===e.promise?e.reject(TypeError("Promise-chain cycle")):(i=Uu(n))?i.call(n,e.resolve,e.reject):e.resolve(n)}catch(s){e.reject(s)}}function ju(t){var r,e=this;if(!e.triggered){e.triggered=!0,e.def&&(e=e.def);try{(r=Uu(t))?yi((function(){var n=new Lc(e);try{r.call(t,(function(){ju.apply(n,arguments)}),(function(){Zr.apply(n,arguments)}))}catch(i){Zr.call(n,i)}})):(e.msg=t,e.state=1,e.chain.length>0&&yi(qa,e))}catch(n){Zr.call(new Lc(e),n)}}}function Zr(t){var r=this;r.triggered||(r.triggered=!0,r.def&&(r=r.def),r.msg=t,r.state=2,r.chain.length>0&&yi(qa,r))}function Mc(t,r,e,n){for(var i=0;i<r.length;i++)(function(s){t.resolve(r[s]).then((function(l){e(s,l)}),n)})(i)}function Lc(t){this.def=t,this.triggered=!1}function Cm(t){this.promise=t,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function Vt(t){if(typeof t!="function")throw TypeError("Not a function");if(this.__NPO__!==0)throw TypeError("Not a promise");this.__NPO__=1;var r=new Cm(this);this.then=function(e,n){var i={success:typeof e!="function"||e,failure:typeof n=="function"&&n};return i.promise=new this.constructor((function(s,l){if(typeof s!="function"||typeof l!="function")throw TypeError("Not a function");i.resolve=s,i.reject=l})),r.chain.push(i),r.state!==0&&yi(qa,r),i.promise},this.catch=function(e){return this.then(void 0,e)};try{t.call(void 0,(function(e){ju.call(r,e)}),(function(e){Zr.call(r,e)}))}catch(e){Zr.call(r,e)}}ra=(function(){var t,r,e;function n(i,s){this.fn=i,this.self=s,this.next=void 0}return{add:function(i,s){e=new n(i,s),r?r.next=e:t=e,r=e,e=void 0},drain:function(){var i=t;for(t=r=ta=void 0;i;)i.fn.call(i.self),i=i.next}}})();var he,Nc=Ut({},"constructor",Vt,!1);Vt.prototype=Nc,Ut(Nc,"__NPO__",0,!1),Ut(Vt,"resolve",(function(t){return t&&typeof t=="object"&&t.__NPO__===1?t:new this((function(r,e){if(typeof r!="function"||typeof e!="function")throw TypeError("Not a function");r(t)}))})),Ut(Vt,"reject",(function(t){return new this((function(r,e){if(typeof r!="function"||typeof e!="function")throw TypeError("Not a function");e(t)}))})),Ut(Vt,"all",(function(t){var r=this;return Bc.call(t)!=="[object Array]"?r.reject(TypeError("Not an array")):t.length===0?r.resolve([]):new r((function(e,n){if(typeof e!="function"||typeof n!="function")throw TypeError("Not a function");var i=t.length,s=Array(i),l=0;Mc(r,t,(function(d,h){s[d]=h,++l===i&&e(s)}),n)}))})),Ut(Vt,"race",(function(t){var r=this;return Bc.call(t)!=="[object Array]"?r.reject(TypeError("Not an array")):new r((function(e,n){if(typeof e!="function"||typeof n!="function")throw TypeError("Not a function");Mc(r,t,(function(i,s){e(s)}),n)}))})),he=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1?Promise:Vt;var Fn,Y,no,Vn,io,kt,ue,oo,ao,ht,ot={DEBUG:!1,LIB_VERSION:"2.73.0"},Jr=864e5,Fc=8e3,Li=Array.prototype,wm=Function.prototype,qu=Object.prototype,$t=Li.slice,Br=qu.toString,Un=qu.hasOwnProperty,Me=R.console,Rt=R.navigator,Q=R.document,jr=R.opera,Vc=R.screen,_t=Rt.userAgent,so=wm.bind,Uc=Li.forEach,jc=Li.indexOf,qc=Li.map,Sm=Array.isArray,co={},f={trim:function(t){return t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},se={log:function(){if(ot.DEBUG&&!f.isUndefined(Me)&&Me)try{Me.log.apply(Me,arguments)}catch{f.each(arguments,(function(r){Me.log(r)}))}},warn:function(){if(ot.DEBUG&&!f.isUndefined(Me)&&Me){var t=["Mixpanel warning:"].concat(f.toArray(arguments));try{Me.warn.apply(Me,t)}catch{f.each(t,(function(e){Me.warn(e)}))}}},error:function(){if(ot.DEBUG&&!f.isUndefined(Me)&&Me){var t=["Mixpanel error:"].concat(f.toArray(arguments));try{Me.error.apply(Me,t)}catch{f.each(t,(function(e){Me.error(e)}))}}},critical:function(){if(!f.isUndefined(Me)&&Me){var t=["Mixpanel error:"].concat(f.toArray(arguments));try{Me.error.apply(Me,t)}catch{f.each(t,(function(e){Me.error(e)}))}}}},lo=function(t,r){return function(){return arguments[0]="["+r+"] "+arguments[0],t.apply(se,arguments)}},er=function(t){return{log:lo(se.log,t),error:lo(se.error,t),critical:lo(se.critical,t)}},on=function(t){return function(){try{return t.apply(this,arguments)}catch(r){se.critical("Implementation error. Please turn on debug and contact support@mixpanel.com."),ot.DEBUG&&se.critical(r)}}},zu=function(t){var r=t.prototype;for(var e in r)typeof r[e]=="function"&&(r[e]=on(r[e]))};f.bind=function(t,r){var e,n;if(so&&t.bind===so)return so.apply(t,$t.call(arguments,1));if(!f.isFunction(t))throw new TypeError;return e=$t.call(arguments,2),n=function(){if(!(this instanceof n))return t.apply(r,e.concat($t.call(arguments)));var i={};i.prototype=t.prototype;var s=new i;i.prototype=null;var l=t.apply(s,e.concat($t.call(arguments)));return Object(l)===l?l:s},n},f.each=function(t,r,e){if(t!=null){if(Uc&&t.forEach===Uc)t.forEach(r,e);else if(t.length===+t.length){for(var n=0,i=t.length;n<i;n++)if(n in t&&r.call(e,t[n],n,t)===co)return}else for(var s in t)if(Un.call(t,s)&&r.call(e,t[s],s,t)===co)return}},f.extend=function(t){return f.each($t.call(arguments,1),(function(r){for(var e in r)r[e]!==void 0&&(t[e]=r[e])})),t},f.isArray=Sm||function(t){return Br.call(t)==="[object Array]"},f.isFunction=function(t){try{return/^\s*\bfunction\b/.test(t)}catch{return!1}},f.isArguments=function(t){return!(!t||!Un.call(t,"callee"))},f.toArray=function(t){return t?t.toArray?t.toArray():f.isArray(t)||f.isArguments(t)?$t.call(t):f.values(t):[]},f.map=function(t,r,e){if(qc&&t.map===qc)return t.map(r,e);var n=[];return f.each(t,(function(i){n.push(r.call(e,i))})),n},f.keys=function(t){var r=[];return t===null||f.each(t,(function(e,n){r[r.length]=n})),r},f.values=function(t){var r=[];return t===null||f.each(t,(function(e){r[r.length]=e})),r},f.include=function(t,r){var e=!1;return t===null?e:jc&&t.indexOf===jc?t.indexOf(r)!=-1:(f.each(t,(function(n){if(e||(e=n===r))return co})),e)},f.includes=function(t,r){return t.indexOf(r)!==-1},f.inherit=function(t,r){return t.prototype=new r,t.prototype.constructor=t,t.superclass=r.prototype,t},f.isObject=function(t){return t===Object(t)&&!f.isArray(t)},f.isEmptyObject=function(t){if(f.isObject(t)){for(var r in t)if(Un.call(t,r))return!1;return!0}return!1},f.isUndefined=function(t){return t===void 0},f.isString=function(t){return Br.call(t)=="[object String]"},f.isDate=function(t){return Br.call(t)=="[object Date]"},f.isNumber=function(t){return Br.call(t)=="[object Number]"},f.isElement=function(t){return!(!t||t.nodeType!==1)},f.encodeDates=function(t){return f.each(t,(function(r,e){f.isDate(r)?t[e]=f.formatDate(r):f.isObject(r)&&(t[e]=f.encodeDates(r))})),t},f.timestamp=function(){return Date.now=Date.now||function(){return+new Date},Date.now()},f.formatDate=function(t){function r(e){return e<10?"0"+e:e}return t.getUTCFullYear()+"-"+r(t.getUTCMonth()+1)+"-"+r(t.getUTCDate())+"T"+r(t.getUTCHours())+":"+r(t.getUTCMinutes())+":"+r(t.getUTCSeconds())},f.strip_empty_properties=function(t){var r={};return f.each(t,(function(e,n){f.isString(e)&&e.length>0&&(r[n]=e)})),r},f.truncate=function(t,r){var e;return typeof t=="string"?e=t.slice(0,r):f.isArray(t)?(e=[],f.each(t,(function(n){e.push(f.truncate(n,r))}))):f.isObject(t)?(e={},f.each(t,(function(n,i){e[i]=f.truncate(n,r)}))):e=t,e},f.JSONEncode=(function(){return function(t){var r=function(n){var i=/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,s={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};return i.lastIndex=0,i.test(n)?'"'+n.replace(i,(function(l){var d=s[l];return typeof d=="string"?d:"\\u"+("0000"+l.charCodeAt(0).toString(16)).slice(-4)}))+'"':'"'+n+'"'},e=function(n,i){var s="",l=0,d="",h="",o=0,a=s,c=[],u=i[n];switch(u&&typeof u=="object"&&typeof u.toJSON=="function"&&(u=u.toJSON(n)),typeof u){case"string":return r(u);case"number":return isFinite(u)?String(u):"null";case"boolean":case"null":return String(u);case"object":if(!u)return"null";if(s+=" ",c=[],Br.apply(u)==="[object Array]"){for(o=u.length,l=0;l<o;l+=1)c[l]=e(l,u)||"null";return h=c.length===0?"[]":s?`[
63
+ `+s+c.join(`,
64
+ `+s)+`
65
+ `+a+"]":"["+c.join(",")+"]",s=a,h}for(d in u)Un.call(u,d)&&(h=e(d,u))&&c.push(r(d)+(s?": ":":")+h);return h=c.length===0?"{}":s?"{"+c.join(",")+a+"}":"{"+c.join(",")+"}",s=a,h}};return e("",{"":t})}})(),f.JSONDecode=(io={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:`
66
+ `,r:"\r",t:" "},kt=function(t){var r=new SyntaxError(t);throw r.at=Fn,r.text=no,r},ue=function(t){return t&&t!==Y&&kt("Expected '"+t+"' instead of '"+Y+"'"),Y=no.charAt(Fn),Fn+=1,Y},oo=function(){var t,r="";for(Y==="-"&&(r="-",ue("-"));Y>="0"&&Y<="9";)r+=Y,ue();if(Y===".")for(r+=".";ue()&&Y>="0"&&Y<="9";)r+=Y;if(Y==="e"||Y==="E")for(r+=Y,ue(),Y!=="-"&&Y!=="+"||(r+=Y,ue());Y>="0"&&Y<="9";)r+=Y,ue();if(t=+r,isFinite(t))return t;kt("Bad number")},ao=function(){var t,r,e,n="";if(Y==='"')for(;ue();){if(Y==='"')return ue(),n;if(Y==="\\")if(ue(),Y==="u"){for(e=0,r=0;r<4&&(t=parseInt(ue(),16),isFinite(t));r+=1)e=16*e+t;n+=String.fromCharCode(e)}else{if(typeof io[Y]!="string")break;n+=io[Y]}else n+=Y}kt("Bad string")},ht=function(){for(;Y&&Y<=" ";)ue()},Vn=function(){switch(ht(),Y){case"{":return(function(){var t,r={};if(Y==="{"){if(ue("{"),ht(),Y==="}")return ue("}"),r;for(;Y;){if(t=ao(),ht(),ue(":"),Object.hasOwnProperty.call(r,t)&&kt('Duplicate key "'+t+'"'),r[t]=Vn(),ht(),Y==="}")return ue("}"),r;ue(","),ht()}}kt("Bad object")})();case"[":return(function(){var t=[];if(Y==="["){if(ue("["),ht(),Y==="]")return ue("]"),t;for(;Y;){if(t.push(Vn()),ht(),Y==="]")return ue("]"),t;ue(","),ht()}}kt("Bad array")})();case'"':return ao();case"-":return oo();default:return Y>="0"&&Y<="9"?oo():(function(){switch(Y){case"t":return ue("t"),ue("r"),ue("u"),ue("e"),!0;case"f":return ue("f"),ue("a"),ue("l"),ue("s"),ue("e"),!1;case"n":return ue("n"),ue("u"),ue("l"),ue("l"),null}kt('Unexpected "'+Y+'"')})()}},function(t){var r;return no=t,Fn=0,Y=" ",r=Vn(),ht(),Y&&kt("Syntax error"),r}),f.base64Encode=function(t){var r,e,n,i,s,l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",d=0,h=0,o="",a=[];if(!t)return t;t=f.utf8Encode(t);do r=(s=t.charCodeAt(d++)<<16|t.charCodeAt(d++)<<8|t.charCodeAt(d++))>>18&63,e=s>>12&63,n=s>>6&63,i=63&s,a[h++]=l.charAt(r)+l.charAt(e)+l.charAt(n)+l.charAt(i);while(d<t.length);switch(o=a.join(""),t.length%3){case 1:o=o.slice(0,-2)+"==";break;case 2:o=o.slice(0,-1)+"="}return o},f.utf8Encode=function(t){var r,e,n,i,s="";for(r=e=0,n=(t=(t+"").replace(/\r\n/g,`
67
+ `).replace(/\r/g,`
68
+ `)).length,i=0;i<n;i++){var l=t.charCodeAt(i),d=null;l<128?e++:d=l>127&&l<2048?String.fromCharCode(l>>6|192,63&l|128):String.fromCharCode(l>>12|224,l>>6&63|128,63&l|128),d!==null&&(e>r&&(s+=t.substring(r,e)),s+=d,r=e=i+1)}return e>r&&(s+=t.substring(r,t.length)),s},f.UUID=function(){try{return R.crypto.randomUUID()}catch{for(var t=new Array(36),r=0;r<36;r++)t[r]=Math.floor(16*Math.random());return t[14]=4,t[19]=t[19]&=-5,t[19]=t[19]|=8,t[8]=t[13]=t[18]=t[23]="-",f.map(t,(function(n){return n.toString(16)})).join("")}};var zc=["ahrefsbot","ahrefssiteaudit","amazonbot","baiduspider","bingbot","bingpreview","chrome-lighthouse","facebookexternal","petalbot","pinterest","screaming frog","yahoo! slurp","yandex","adsbot-google","apis-google","duplexweb-google","feedfetcher-google","google favicon","google web preview","google-read-aloud","googlebot","googleweblight","mediapartners-google","storebot-google"];f.isBlockedUA=function(t){var r;for(t=t.toLowerCase(),r=0;r<zc.length;r++)if(t.indexOf(zc[r])!==-1)return!0;return!1},f.HTTPBuildQuery=function(t,r){var e,n,i=[];return f.isUndefined(r)&&(r="&"),f.each(t,(function(s,l){e=encodeURIComponent(s.toString()),n=encodeURIComponent(l),i[i.length]=n+"="+e})),i.join(r)},f.getQueryParam=function(t,r){r=r.replace(/[[]/g,"\\[").replace(/[\]]/g,"\\]");var e=new RegExp("[\\?&]"+r+"=([^&#]*)").exec(t);if(e===null||e&&typeof e[1]!="string"&&e[1].length)return"";var n=e[1];try{n=decodeURIComponent(n)}catch{se.error("Skipping decoding for malformed query param: "+n)}return n.replace(/\+/g," ")},f.cookie={get:function(t){for(var r=t+"=",e=Q.cookie.split(";"),n=0;n<e.length;n++){for(var i=e[n];i.charAt(0)==" ";)i=i.substring(1,i.length);if(i.indexOf(r)===0)return decodeURIComponent(i.substring(r.length,i.length))}return null},parse:function(t){var r;try{r=f.JSONDecode(f.cookie.get(t))||{}}catch{}return r},set_seconds:function(t,r,e,n,i,s,l){var d="",h="",o="";if(l)d="; domain="+l;else if(n){var a=Gc(Q.location.hostname);d=a?"; domain=."+a:""}if(e){var c=new Date;c.setTime(c.getTime()+1e3*e),h="; expires="+c.toGMTString()}s&&(i=!0,o="; SameSite=None"),i&&(o+="; secure"),Q.cookie=t+"="+encodeURIComponent(r)+h+"; path=/"+d+o},set:function(t,r,e,n,i,s,l){var d="",h="",o="";if(l)d="; domain="+l;else if(n){var a=Gc(Q.location.hostname);d=a?"; domain=."+a:""}if(e){var c=new Date;c.setTime(c.getTime()+24*e*60*60*1e3),h="; expires="+c.toGMTString()}s&&(i=!0,o="; SameSite=None"),i&&(o+="; secure");var u=t+"="+encodeURIComponent(r)+h+"; path=/"+d+o;return Q.cookie=u,u},remove:function(t,r,e){f.cookie.set(t,"",-1,r,!1,!1,e)}};var Wu=function(t){var r=!0;try{var e="__mplss_"+za(8);t.setItem(e,"xyz"),t.getItem(e)!=="xyz"&&(r=!1),t.removeItem(e)}catch{r=!1}return r},uo=null,an=function(t,r){return uo===null||r?uo=Wu(t||R.localStorage):uo},ho=null;function Wc(t,r,e){var n=function(i){se.error(r+" error: "+i)};return{is_supported:function(i){var s=e(t,i);return s||se.error(r+" unsupported"),s},error:n,get:function(i){try{return t.getItem(i)}catch(s){n(s)}return null},parse:function(i){try{return f.JSONDecode(t.getItem(i))||{}}catch{}return null},set:function(i,s){try{t.setItem(i,s)}catch(l){n(l)}},remove:function(i){try{t.removeItem(i)}catch(s){n(s)}}}}f.localStorage=Wc(R.localStorage,"localStorage",an),f.sessionStorage=Wc(R.sessionStorage,"sessionStorage",(function(t,r){return ho===null||r?ho=Wu(t||R.sessionStorage):ho})),f.register_event=(function(){function t(r){return r&&(r.preventDefault=t.preventDefault,r.stopPropagation=t.stopPropagation),r}return t.preventDefault=function(){this.returnValue=!1},t.stopPropagation=function(){this.cancelBubble=!0},function(r,e,n,i,s){if(r)if(r.addEventListener&&!i)r.addEventListener(e,n,!!s);else{var l="on"+e,d=r[l];r[l]=(function(h,o,a){var c=function(u){if(u=u||t(R.event)){var p,_,m=!0;return f.isFunction(a)&&(p=a(u)),_=o.call(h,u),p!==!1&&_!==!1||(m=!1),m}};return c})(r,n,d)}else se.error("No valid element provided to register_event")}})();var Em=new RegExp('^(\\w*)\\[(\\w+)([=~\\|\\^\\$\\*]?)=?"?([^\\]"]*)"?\\]$');f.dom_query=(function(){function t(i){return i.all?i.all:i.getElementsByTagName("*")}var r=/[\t\r\n]/g;function e(i,s){var l=" "+s+" ";return(" "+i.className+" ").replace(r," ").indexOf(l)>=0}function n(i){if(!Q.getElementsByTagName)return[];var s,l,d,h,o,a,c,u,p,_,m=i.split(" "),g=[Q];for(a=0;a<m.length;a++)if((s=m[a].replace(/^\s+/,"").replace(/\s+$/,"")).indexOf("#")>-1){d=(l=s.split("#"))[0];var v=l[1],y=Q.getElementById(v);if(!y||d&&y.nodeName.toLowerCase()!=d)return[];g=[y]}else if(s.indexOf(".")>-1){d=(l=s.split("."))[0];var k=l[1];for(d||(d="*"),h=[],o=0,c=0;c<g.length;c++)for(p=d=="*"?t(g[c]):g[c].getElementsByTagName(d),u=0;u<p.length;u++)h[o++]=p[u];for(g=[],_=0,c=0;c<h.length;c++)h[c].className&&f.isString(h[c].className)&&e(h[c],k)&&(g[_++]=h[c])}else{var E=s.match(Em);if(E){d=E[1];var w,C=E[2],P=E[3],D=E[4];for(d||(d="*"),h=[],o=0,c=0;c<g.length;c++)for(p=d=="*"?t(g[c]):g[c].getElementsByTagName(d),u=0;u<p.length;u++)h[o++]=p[u];switch(g=[],_=0,P){case"=":w=function(b){return b.getAttribute(C)==D};break;case"~":w=function(b){return b.getAttribute(C).match(new RegExp("\\b"+D+"\\b"))};break;case"|":w=function(b){return b.getAttribute(C).match(new RegExp("^"+D+"-?"))};break;case"^":w=function(b){return b.getAttribute(C).indexOf(D)===0};break;case"$":w=function(b){return b.getAttribute(C).lastIndexOf(D)==b.getAttribute(C).length-D.length};break;case"*":w=function(b){return b.getAttribute(C).indexOf(D)>-1};break;default:w=function(b){return b.getAttribute(C)}}for(g=[],_=0,c=0;c<h.length;c++)w(h[c])&&(g[_++]=h[c])}else{for(d=s,h=[],o=0,c=0;c<g.length;c++)for(p=g[c].getElementsByTagName(d),u=0;u<p.length;u++)h[o++]=p[u];g=h}}return g}return function(i){return f.isElement(i)?[i]:f.isObject(i)&&!f.isUndefined(i.length)?i:n.call(this,i)}})();var Am=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","utm_id","utm_source_platform","utm_campaign_id","utm_creative_format","utm_marketing_tactic"],Im=["dclid","fbclid","gclid","ko_click_id","li_fat_id","msclkid","sccid","ttclid","twclid","wbraid"];f.info={campaignParams:function(t){var r="",e={};return f.each(Am,(function(n){(r=f.getQueryParam(Q.URL,n)).length?e[n]=r:t!==void 0&&(e[n]=t)})),e},clickParams:function(){var t="",r={};return f.each(Im,(function(e){(t=f.getQueryParam(Q.URL,e)).length&&(r[e]=t)})),r},marketingParams:function(){return f.extend(f.info.campaignParams(),f.info.clickParams())},searchEngine:function(t){return t.search("https?://(.*)google.([^/?]*)")===0?"google":t.search("https?://(.*)bing.com")===0?"bing":t.search("https?://(.*)yahoo.com")===0?"yahoo":t.search("https?://(.*)duckduckgo.com")===0?"duckduckgo":null},searchInfo:function(t){var r=f.info.searchEngine(t),e=r!="yahoo"?"q":"p",n={};if(r!==null){n.$search_engine=r;var i=f.getQueryParam(t,e);i.length&&(n.mp_keyword=i)}return n},browser:function(t,r,e){return r=r||"",e||f.includes(t," OPR/")?f.includes(t,"Mini")?"Opera Mini":"Opera":/(BlackBerry|PlayBook|BB10)/i.test(t)?"BlackBerry":f.includes(t,"IEMobile")||f.includes(t,"WPDesktop")?"Internet Explorer Mobile":f.includes(t,"SamsungBrowser/")?"Samsung Internet":f.includes(t,"Edge")||f.includes(t,"Edg/")?"Microsoft Edge":f.includes(t,"FBIOS")?"Facebook Mobile":f.includes(t,"Whale/")?"Whale Browser":f.includes(t,"Chrome")?"Chrome":f.includes(t,"CriOS")?"Chrome iOS":f.includes(t,"UCWEB")||f.includes(t,"UCBrowser")?"UC Browser":f.includes(t,"FxiOS")?"Firefox iOS":f.includes(r,"Apple")?f.includes(t,"Mobile")?"Mobile Safari":"Safari":f.includes(t,"Android")?"Android Mobile":f.includes(t,"Konqueror")?"Konqueror":f.includes(t,"Firefox")?"Firefox":f.includes(t,"MSIE")||f.includes(t,"Trident/")?"Internet Explorer":f.includes(t,"Gecko")?"Mozilla":""},browserVersion:function(t,r,e){var n={"Internet Explorer Mobile":/rv:(\d+(\.\d+)?)/,"Microsoft Edge":/Edge?\/(\d+(\.\d+)?)/,Chrome:/Chrome\/(\d+(\.\d+)?)/,"Chrome iOS":/CriOS\/(\d+(\.\d+)?)/,"UC Browser":/(UCBrowser|UCWEB)\/(\d+(\.\d+)?)/,Safari:/Version\/(\d+(\.\d+)?)/,"Mobile Safari":/Version\/(\d+(\.\d+)?)/,Opera:/(Opera|OPR)\/(\d+(\.\d+)?)/,Firefox:/Firefox\/(\d+(\.\d+)?)/,"Firefox iOS":/FxiOS\/(\d+(\.\d+)?)/,Konqueror:/Konqueror:(\d+(\.\d+)?)/,BlackBerry:/BlackBerry (\d+(\.\d+)?)/,"Android Mobile":/android\s(\d+(\.\d+)?)/,"Samsung Internet":/SamsungBrowser\/(\d+(\.\d+)?)/,"Internet Explorer":/(rv:|MSIE )(\d+(\.\d+)?)/,Mozilla:/rv:(\d+(\.\d+)?)/,"Whale Browser":/Whale\/(\d+(\.\d+)?)/}[f.info.browser(t,r,e)];if(n===void 0)return null;var i=t.match(n);return i?parseFloat(i[i.length-2]):null},os:function(){var t=_t;return/Windows/i.test(t)?/Phone/.test(t)||/WPDesktop/.test(t)?"Windows Phone":"Windows":/(iPhone|iPad|iPod)/.test(t)?"iOS":/Android/.test(t)?"Android":/(BlackBerry|PlayBook|BB10)/i.test(t)?"BlackBerry":/Mac/i.test(t)?"Mac OS X":/Linux/.test(t)?"Linux":/CrOS/.test(t)?"Chrome OS":""},device:function(t){return/Windows Phone/i.test(t)||/WPDesktop/.test(t)?"Windows Phone":/iPad/.test(t)?"iPad":/iPod/.test(t)?"iPod Touch":/iPhone/.test(t)?"iPhone":/(BlackBerry|PlayBook|BB10)/i.test(t)?"BlackBerry":/Android/.test(t)?"Android":""},referringDomain:function(t){var r=t.split("/");return r.length>=3?r[2]:""},currentUrl:function(){return R.location.href},properties:function(t){return typeof t!="object"&&(t={}),f.extend(f.strip_empty_properties({$os:f.info.os(),$browser:f.info.browser(_t,Rt.vendor,jr),$referrer:Q.referrer,$referring_domain:f.info.referringDomain(Q.referrer),$device:f.info.device(_t)}),{$current_url:f.info.currentUrl(),$browser_version:f.info.browserVersion(_t,Rt.vendor,jr),$screen_height:Vc.height,$screen_width:Vc.width,mp_lib:"web",$lib_version:ot.LIB_VERSION,$insert_id:za(),time:f.timestamp()/1e3},f.strip_empty_properties(t))},people_properties:function(){return f.extend(f.strip_empty_properties({$os:f.info.os(),$browser:f.info.browser(_t,Rt.vendor,jr)}),{$browser_version:f.info.browserVersion(_t,Rt.vendor,jr)})},mpPageViewProperties:function(){return f.strip_empty_properties({current_page_title:Q.title,current_domain:R.location.hostname,current_url_path:R.location.pathname,current_url_protocol:R.location.protocol,current_url_search:R.location.search})}};var za=function(t){var r=Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10);return t?r.substring(0,t):r},Tm=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i,Pm=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,Gc=function(t){var r=Pm,e=t.split("."),n=e[e.length-1];(n.length>4||n==="com"||n==="org")&&(r=Tm);var i=t.match(r);return i?i[0]:""},qt=function(){},Sr=null,ri=null;typeof JSON<"u"&&(Sr=JSON.stringify,ri=JSON.parse),Sr=Sr||f.JSONEncode,ri=ri||f.JSONDecode;f.info=f.info,f.info.browser=f.info.browser,f.info.browserVersion=f.info.browserVersion,f.info.device=f.info.device,f.info.properties=f.info.properties,f.isBlockedUA=f.isBlockedUA,f.isEmptyObject=f.isEmptyObject,f.isObject=f.isObject,f.JSONDecode=f.JSONDecode,f.JSONEncode=f.JSONEncode,f.toArray=f.toArray,f.NPO=Vt;var Gu="mixpanelRecordingEvents",Wa="mixpanelRecordingRegistry",Rm=[Gu,Wa],ct=function(t){this.dbPromise=null,this.storeName=t};ct.prototype._openDb=function(){return new he((function(t,r){var e=R.indexedDB.open("mixpanelBrowserDb",1);e.onerror=function(){r(e.error)},e.onsuccess=function(){t(e.result)},e.onupgradeneeded=function(n){var i=n.target.result;Rm.forEach((function(s){i.createObjectStore(s)}))}}))},ct.prototype.init=function(){return R.indexedDB?(this.dbPromise||(this.dbPromise=this._openDb()),this.dbPromise.then((function(t){return t instanceof R.IDBDatabase?he.resolve():he.reject(t)}))):he.reject("indexedDB is not supported in this browser")},ct.prototype.isInitialized=function(){return!!this.dbPromise},ct.prototype.makeTransaction=function(t,r){var e=this.storeName,n=function(i){return new he((function(s,l){var d=i.transaction(e,t);d.oncomplete=function(){s(d)},d.onabort=d.onerror=function(){l(d.error)},r(d.objectStore(e))}))};return this.dbPromise.then(n).catch((function(i){return i&&i.name==="InvalidStateError"?(this.dbPromise=this._openDb(),this.dbPromise.then(n)):he.reject(i)}).bind(this))},ct.prototype.setItem=function(t,r){return this.makeTransaction("readwrite",(function(e){e.put(r,t)}))},ct.prototype.getItem=function(t){var r;return this.makeTransaction("readonly",(function(e){r=e.get(t)})).then((function(){return r.result}))},ct.prototype.removeItem=function(t){return this.makeTransaction("readwrite",(function(r){r.delete(t)}))},ct.prototype.getAll=function(){var t;return this.makeTransaction("readonly",(function(r){t=r.getAll()})).then((function(){return t.result}))};function xm(t,r){Zu(!0,t,r)}function Om(t,r){Zu(!1,t,r)}function Dm(t,r){return Hu(t,r)==="1"}function $u(t,r){if((function(n){if(n&&n.ignoreDnt)return!1;var i=n&&n.window||R,s=i.navigator||{},l=!1;return f.each([s.doNotTrack,s.msDoNotTrack,i.doNotTrack],(function(d){f.includes([!0,1,"1","yes"],d)&&(l=!0)})),l})(r))return se.warn('This browser has "Do Not Track" enabled. This will prevent the Mixpanel SDK from sending any data. To ignore the "Do Not Track" browser setting, initialize the Mixpanel instance with the config "ignore_dnt: true"'),!0;var e=Hu(t,r)==="0";return e&&se.warn("You are opted out of Mixpanel tracking. This will prevent the Mixpanel SDK from sending any data."),e}function Ft(t){return Ha(t,(function(r){return this.get_config(r)}))}function Mt(t){return Ha(t,(function(r){return this._get_config(r)}))}function lr(t){return Ha(t,(function(r){return this._get_config(r)}))}function Bm(t,r){Ga(r=r||{}).remove($a(t,r),!!r.crossSubdomainCookie,r.cookieDomain)}function Ga(t){return(t=t||{}).persistenceType==="localStorage"?f.localStorage:f.cookie}function $a(t,r){return((r=r||{}).persistencePrefix||"__mp_opt_in_out_")+t}function Hu(t,r){return Ga(r).get($a(t,r))}function Zu(t,r,e){f.isString(r)&&r.length?(Ga(e=e||{}).set($a(r,e),t?1:0,f.isNumber(e.cookieExpiration)?e.cookieExpiration:null,!!e.crossSubdomainCookie,!!e.secureCookie,!!e.crossSiteCookie,e.cookieDomain),e.track&&t&&e.track(e.trackEventName||"$opt_in",e.trackProperties,{send_immediately:!0})):se.error("gdpr."+(t?"optIn":"optOut")+" called with an invalid token")}function Ha(t,r){return function(){var e=!1;try{var n=r.call(this,"token"),i=r.call(this,"ignore_dnt"),s=r.call(this,"opt_out_tracking_persistence_type"),l=r.call(this,"opt_out_tracking_cookie_prefix"),d=r.call(this,"window");n&&(e=$u(n,{ignoreDnt:i,persistenceType:s,persistencePrefix:l,window:d}))}catch(o){se.error("Unexpected error when checking tracking opt-out status: "+o)}if(!e)return t.apply(this,arguments);var h=arguments[arguments.length-1];typeof h=="function"&&h(0)}}var Mm=er("lock"),Ju=function(t,r){r=r||{},this.storageKey=t,this.storage=r.storage||R.localStorage,this.pollIntervalMS=r.pollIntervalMS||100,this.timeoutMS=r.timeoutMS||2e3,this.promiseImpl=r.promiseImpl||he};Ju.prototype.withLock=function(t,r){return new this.promiseImpl(f.bind((function(e,n){var i=r||new Date().getTime()+"|"+Math.random(),s=new Date().getTime(),l=this.storageKey,d=this.pollIntervalMS,h=this.timeoutMS,o=this.storage,a=l+":X",c=l+":Y",u=l+":Z",p=function(y){if(new Date().getTime()-s>h)return Mm.error("Timeout waiting for mutex on "+l+"; clearing lock. ["+i+"]"),o.removeItem(u),o.removeItem(c),void g();setTimeout((function(){try{y()}catch(k){n(k)}}),d*(Math.random()+.1))},_=function(y,k){y()?k():p((function(){_(y,k)}))},m=function(){var y=o.getItem(c);return(!y||y===i)&&(o.setItem(c,i),o.getItem(c)===i||(an(o,!0)||n(new Error("localStorage support dropped while acquiring lock")),!1))},g=function(){o.setItem(a,i),_(m,(function(){o.getItem(a)!==i?p((function(){o.getItem(c)===i?_((function(){return!o.getItem(u)}),v):g()})):v()}))},v=function(){o.setItem(u,"1");var y=function(){o.removeItem(u),o.getItem(c)===i&&o.removeItem(c),o.getItem(a)===i&&o.removeItem(a)};t().then((function(k){y(),e(k)})).catch((function(k){y(),n(k)}))};try{if(!an(o,!0))throw new Error("localStorage support check failed");g()}catch(y){n(y)}}),this))};var fr=function(t){this.storage=t||R.localStorage};fr.prototype.init=function(){return he.resolve()},fr.prototype.isInitialized=function(){return!0},fr.prototype.setItem=function(t,r){return new he(f.bind((function(e,n){try{this.storage.setItem(t,Sr(r))}catch(i){n(i)}e()}),this))},fr.prototype.getItem=function(t){return new he(f.bind((function(r,e){var n;try{n=ri(this.storage.getItem(t))}catch(i){e(i)}r(n)}),this))},fr.prototype.removeItem=function(t){return new he(f.bind((function(r,e){try{this.storage.removeItem(t)}catch(n){e(n)}r()}),this))};var $c=er("batch"),yt=function(t,r){var e,n,i,s;r=r||{},this.storageKey=t,this.usePersistence=r.usePersistence,this.usePersistence&&(this.queueStorage=r.queueStorage||new fr,this.lock=new Ju(t,{storage:r.sharedLockStorage||R.localStorage,timeoutMS:r.sharedLockTimeoutMS})),this.reportError=r.errorReporter||f.bind($c.error,$c),this.pid=r.pid||null,this.memQueue=[],this.initialized=!1,r.enqueueThrottleMs?this.enqueuePersisted=(e=f.bind(this._enqueuePersisted,this),n=r.enqueueThrottleMs,i=null,s=[],function(l){var d=this;return s.push(l),i||(i=new he((function(h){setTimeout((function(){var o=e.apply(d,[s]);i=null,s=[],h(o)}),n)}))),i}):this.enqueuePersisted=f.bind((function(l){return this._enqueuePersisted([l])}),this)};yt.prototype.ensureInit=function(){return this.initialized||!this.usePersistence?he.resolve():this.queueStorage.init().then(f.bind((function(){this.initialized=!0}),this)).catch(f.bind((function(t){this.reportError("Error initializing queue persistence. Disabling persistence",t),this.initialized=!0,this.usePersistence=!1}),this))},yt.prototype.enqueue=function(t,r){var e={id:za(),flushAfter:new Date().getTime()+2*r,payload:t};return this.usePersistence?this.enqueuePersisted(e):(this.memQueue.push(e),he.resolve(!0))},yt.prototype._enqueuePersisted=function(t){var r=f.bind((function(){return this.ensureInit().then(f.bind((function(){return this.readFromStorage()}),this)).then(f.bind((function(e){return this.saveToStorage(e.concat(t))}),this)).then(f.bind((function(e){return e&&(this.memQueue=this.memQueue.concat(t)),e}),this)).catch(f.bind((function(e){return this.reportError("Error enqueueing items",e,t),!1}),this))}),this);return this.lock.withLock(r,this.pid).catch(f.bind((function(e){return this.reportError("Error acquiring storage lock",e),!1}),this))},yt.prototype.fillBatch=function(t){var r=this.memQueue.slice(0,t);return this.usePersistence&&r.length<t?this.ensureInit().then(f.bind((function(){return this.readFromStorage()}),this)).then(f.bind((function(e){if(e.length){var n={};f.each(r,(function(l){n[l.id]=!0}));for(var i=0;i<e.length;i++){var s=e[i];if(new Date().getTime()>s.flushAfter&&!n[s.id]&&(s.orphaned=!0,r.push(s),r.length>=t))break}}return r}),this)):he.resolve(r)};var Hc=function(t,r){var e=[];return f.each(t,(function(n){n.id&&!r[n.id]&&e.push(n)})),e};yt.prototype.removeItemsByID=function(t){var r={};if(f.each(t,(function(n){r[n]=!0})),this.memQueue=Hc(this.memQueue,r),this.usePersistence){var e=f.bind((function(){return this.ensureInit().then(f.bind((function(){return this.readFromStorage()}),this)).then(f.bind((function(n){return n=Hc(n,r),this.saveToStorage(n)}),this)).then(f.bind((function(){return this.readFromStorage()}),this)).then(f.bind((function(n){for(var i=0;i<n.length;i++){var s=n[i];if(s.id&&r[s.id])throw new Error("Item not removed from storage")}return!0}),this)).catch(f.bind((function(n){return this.reportError("Error removing items",n,t),!1}),this))}),this);return this.lock.withLock(e,this.pid).catch(f.bind((function(n){return this.reportError("Error acquiring storage lock",n),!an(this.lock.storage,!0)&&e().then(f.bind((function(i){return i||this.queueStorage.removeItem(this.storageKey).then((function(){return i}))}),this)).catch(f.bind((function(i){return this.reportError("Error clearing queue",i),!1}),this))}),this))}return he.resolve(!0)};var Zc=function(t,r){var e=[];return f.each(t,(function(n){var i=n.id;if(i in r){var s=r[i];s!==null&&(n.payload=s,e.push(n))}else e.push(n)})),e};yt.prototype.updatePayloads=function(t){return this.memQueue=Zc(this.memQueue,t),this.usePersistence?this.lock.withLock(f.bind((function(){return this.ensureInit().then(f.bind((function(){return this.readFromStorage()}),this)).then(f.bind((function(r){return r=Zc(r,t),this.saveToStorage(r)}),this)).catch(f.bind((function(r){return this.reportError("Error updating items",t,r),!1}),this))}),this),this.pid).catch(f.bind((function(r){return this.reportError("Error acquiring storage lock",r),!1}),this)):he.resolve(!0)},yt.prototype.readFromStorage=function(){return this.ensureInit().then(f.bind((function(){return this.queueStorage.getItem(this.storageKey)}),this)).then(f.bind((function(t){return t&&(f.isArray(t)||(this.reportError("Invalid storage entry:",t),t=null)),t||[]}),this)).catch(f.bind((function(t){return this.reportError("Error retrieving queue",t),[]}),this))},yt.prototype.saveToStorage=function(t){return this.ensureInit().then(f.bind((function(){return this.queueStorage.setItem(this.storageKey,t)}),this)).then((function(){return!0})).catch(f.bind((function(r){return this.reportError("Error saving queue",r),!1}),this))},yt.prototype.clear=function(){return this.memQueue=[],this.usePersistence?this.ensureInit().then(f.bind((function(){return this.queueStorage.removeItem(this.storageKey)}),this)):he.resolve()};var Mr=er("batch"),nt=function(t,r){this.errorReporter=r.errorReporter,this.queue=new yt(t,{errorReporter:f.bind(this.reportError,this),queueStorage:r.queueStorage,sharedLockStorage:r.sharedLockStorage,sharedLockTimeoutMS:r.sharedLockTimeoutMS,usePersistence:r.usePersistence,enqueueThrottleMs:r.enqueueThrottleMs}),this.libConfig=r.libConfig,this.sendRequest=r.sendRequestFunc,this.beforeSendHook=r.beforeSendHook,this.stopAllBatching=r.stopAllBatchingFunc,this.batchSize=this.libConfig.batch_size,this.flushInterval=this.libConfig.batch_flush_interval_ms,this.stopped=!this.libConfig.batch_autostart,this.consecutiveRemovalFailures=0,this.itemIdsSentSuccessfully={},this.flushOnlyOnInterval=r.flushOnlyOnInterval||!1,this._flushPromise=null};nt.prototype.enqueue=function(t){return this.queue.enqueue(t,this.flushInterval)},nt.prototype.start=function(){return this.stopped=!1,this.consecutiveRemovalFailures=0,this.flush()},nt.prototype.stop=function(){this.stopped=!0,this.timeoutID&&(clearTimeout(this.timeoutID),this.timeoutID=null)},nt.prototype.clear=function(){return this.queue.clear()},nt.prototype.resetBatchSize=function(){this.batchSize=this.libConfig.batch_size},nt.prototype.resetFlush=function(){this.scheduleFlush(this.libConfig.batch_flush_interval_ms)},nt.prototype.scheduleFlush=function(t){this.flushInterval=t,this.stopped||(this.timeoutID=setTimeout(f.bind((function(){this.stopped||(this._flushPromise=this.flush())}),this),this.flushInterval))},nt.prototype.sendRequestPromise=function(t,r){return new he(f.bind((function(e){this.sendRequest(t,r,e)}),this))},nt.prototype.flush=function(t){if(this.requestInProgress)return Mr.log("Flush: Request already in progress"),he.resolve();this.requestInProgress=!0,t=t||{};var r=this.libConfig.batch_request_timeout_ms,e=new Date().getTime(),n=this.batchSize;return this.queue.fillBatch(n).then(f.bind((function(i){var s=i.length===n,l=[],d={};if(f.each(i,(function(c){var u=c.payload;if(this.beforeSendHook&&!c.orphaned&&(u=this.beforeSendHook(u)),u){u.event&&u.properties&&(u.properties=f.extend({},u.properties,{mp_sent_by_lib_version:ot.LIB_VERSION}));var p=!0,_=c.id;_?(this.itemIdsSentSuccessfully[_]||0)>5&&(this.reportError("[dupe] item ID sent too many times, not sending",{item:c,batchSize:i.length,timesSent:this.itemIdsSentSuccessfully[_]}),p=!1):this.reportError("[dupe] found item with no ID",{item:c}),p&&l.push(u)}d[c.id]=u}),this),l.length<1)return this.requestInProgress=!1,this.resetFlush(),he.resolve();var h=f.bind((function(){return this.queue.removeItemsByID(f.map(i,(function(c){return c.id}))).then(f.bind((function(c){return f.each(i,f.bind((function(u){var p=u.id;p?(this.itemIdsSentSuccessfully[p]=this.itemIdsSentSuccessfully[p]||0,this.itemIdsSentSuccessfully[p]++,this.itemIdsSentSuccessfully[p]>5&&this.reportError("[dupe] item ID sent too many times",{item:u,batchSize:i.length,timesSent:this.itemIdsSentSuccessfully[p]})):this.reportError("[dupe] found item with no ID while removing",{item:u})}),this)),c?(this.consecutiveRemovalFailures=0,this.flushOnlyOnInterval&&!s?(this.resetFlush(),he.resolve()):this.flush()):(++this.consecutiveRemovalFailures>5?(this.reportError("Too many queue failures; disabling batching system."),this.stopAllBatching()):this.resetFlush(),he.resolve())}),this))}),this),o=f.bind((function(c){this.requestInProgress=!1;try{if(t.unloading)return this.queue.updatePayloads(d);if(f.isObject(c)&&c.error==="timeout"&&new Date().getTime()-e>=r)return this.reportError("Network timeout; retrying"),this.flush();if(f.isObject(c)&&(c.httpStatusCode>=500||c.httpStatusCode===429||c.httpStatusCode<=0&&(_=R.navigator.onLine,!f.isUndefined(_)&&!_)||c.error==="timeout")){var u=2*this.flushInterval;return c.retryAfter&&(u=1e3*parseInt(c.retryAfter,10)||u),u=Math.min(6e5,u),this.reportError("Error; retry in "+u+" ms"),this.scheduleFlush(u),he.resolve()}if(f.isObject(c)&&c.httpStatusCode===413){if(i.length>1){var p=Math.max(1,Math.floor(n/2));return this.batchSize=Math.min(this.batchSize,p,i.length-1),this.reportError("413 response; reducing batch size to "+this.batchSize),this.resetFlush(),he.resolve()}return this.reportError("Single-event request too large; dropping",i),this.resetBatchSize(),h()}return h()}catch(m){this.reportError("Error handling API response",m),this.resetFlush()}var _}),this),a={method:"POST",verbose:!0,ignore_json_errors:!0,timeout_ms:r};return t.unloading&&(a.transport="sendBeacon"),Mr.log("MIXPANEL REQUEST:",l),this.sendRequestPromise(l,a).then(o)}),this)).catch(f.bind((function(i){this.reportError("Error flushing request queue",i),this.resetFlush()}),this))},nt.prototype.reportError=function(t,r){if(Mr.error.apply(Mr.error,arguments),this.errorReporter)try{r instanceof Error||(r=new Error(t)),this.errorReporter(t,r)}catch(e){Mr.error(e)}};var na=function(t){var r=Date.now();return!t||r>t.maxExpires||r>t.idleExpires},ur=er("recorder"),Lm=R.CompressionStream,Nm={batch_size:1e3,batch_flush_interval_ms:1e4,batch_request_timeout_ms:9e4,batch_autostart:!0},Fm=new Set([X.MouseMove,X.MouseInteraction,X.Scroll,X.ViewportResize,X.Input,X.TouchMove,X.MediaInteraction,X.Drag,X.Selection]),Ne=function(t){this._mixpanel=t.mixpanelInstance,this._onIdleTimeout=t.onIdleTimeout||qt,this._onMaxLengthReached=t.onMaxLengthReached||qt,this._onBatchSent=t.onBatchSent||qt,this._rrwebRecord=t.rrwebRecord||null,this._stopRecording=null,this.replayId=t.replayId,this.batchStartUrl=t.batchStartUrl||null,this.replayStartUrl=t.replayStartUrl||null,this.idleExpires=t.idleExpires||null,this.maxExpires=t.maxExpires||null,this.replayStartTime=t.replayStartTime||null,this.lastEventTimestamp=t.lastEventTimestamp||null,this.seqNo=t.seqNo||0,this.idleTimeoutId=null,this.maxTimeoutId=null,this.recordMaxMs=Jr,this.recordMinMs=0;var r=an(t.sharedLockStorage,!0)&&!this.getConfig("disable_persistence");this.batcherKey="__mprec_"+this.getConfig("name")+"_"+this.getConfig("token")+"_"+this.replayId,this.queueStorage=new ct(Gu),this.batcher=new nt(this.batcherKey,{errorReporter:this.reportError.bind(this),flushOnlyOnInterval:!0,libConfig:Nm,sendRequestFunc:this.flushEventsWithOptOut.bind(this),queueStorage:this.queueStorage,sharedLockStorage:t.sharedLockStorage,usePersistence:r,stopAllBatchingFunc:this.stopRecording.bind(this),enqueueThrottleMs:250,sharedLockTimeoutMS:1e4})};Ne.prototype.getUserIdInfo=function(){if(this.finalFlushUserIdInfo)return this.finalFlushUserIdInfo;var t={distinct_id:String(this._mixpanel.get_distinct_id())},r=this._mixpanel.get_property("$device_id");r&&(t.$device_id=r);var e=this._mixpanel.get_property("$user_id");return e&&(t.$user_id=e),t},Ne.prototype.unloadPersistedData=function(){return this.batcher.stop(),this.queueStorage.init().catch((function(){this.reportError("Error initializing IndexedDB storage for unloading persisted data.")}).bind(this)).then((function(){return this.getDurationMs()<this._getRecordMinMs()?this.queueStorage.removeItem(this.batcherKey):this.batcher.flush().then((function(){return this.queueStorage.removeItem(this.batcherKey)}).bind(this))}).bind(this))},Ne.prototype.getConfig=function(t){return this._mixpanel.get_config(t)},Ne.prototype.get_config=function(t){return this.getConfig(t)},Ne.prototype.startRecording=function(t){if(this._rrwebRecord!==null)if(this._stopRecording===null){this.recordMaxMs=this.getConfig("record_max_ms"),this.recordMaxMs>Jr&&(this.recordMaxMs=Jr,ur.critical("record_max_ms cannot be greater than "+Jr+"ms. Capping value.")),this.maxExpires||(this.maxExpires=new Date().getTime()+this.recordMaxMs),this.recordMinMs=this._getRecordMinMs(),this.replayStartTime||(this.replayStartTime=new Date().getTime(),this.batchStartUrl=f.info.currentUrl(),this.replayStartUrl=f.info.currentUrl()),t||this.recordMinMs>0?this.batcher.stop():this.batcher.start();var r=(function(){clearTimeout(this.idleTimeoutId);var s=this.getConfig("record_idle_timeout_ms");this.idleTimeoutId=setTimeout(this._onIdleTimeout,s),this.idleExpires=new Date().getTime()+s}).bind(this);r();var e,n=this.getConfig("record_block_selector");n!==""&&n!==null||(n=void 0);try{this._stopRecording=this._rrwebRecord({emit:(function(s){this.idleExpires&&this.idleExpires<s.timestamp?this._onIdleTimeout():((function(l){return l.type===le.IncrementalSnapshot&&Fm.has(l.data.source)})(s)&&(this.batcher.stopped&&new Date().getTime()-this.replayStartTime>=this.recordMinMs&&this.batcher.start(),r()),this.__enqueuePromise=this.batcher.enqueue(s),(this.lastEventTimestamp===null||s.timestamp>this.lastEventTimestamp)&&(this.lastEventTimestamp=s.timestamp))}).bind(this),blockClass:this.getConfig("record_block_class"),blockSelector:n,collectFonts:this.getConfig("record_collect_fonts"),dataURLOptions:{type:"image/webp",quality:.6},maskAllInputs:!0,maskTextClass:this.getConfig("record_mask_text_class"),maskTextSelector:this.getConfig("record_mask_text_selector"),recordCanvas:this.getConfig("record_canvas"),sampling:{canvas:15},plugins:this.getConfig("record_console")?[(e={stringifyOptions:{stringLengthLimit:1e3,numOfKeysLimit:50,depthOfLimit:2}},{name:"rrweb/console@1",observer:ym,options:e})]:[]})}catch(s){this.reportError("Unexpected error when starting rrweb recording.",s)}if(typeof this._stopRecording!="function")return this.reportError("rrweb failed to start, skipping this recording."),this._stopRecording=null,void this.stopRecording();var i=this.maxExpires-new Date().getTime();this.maxTimeoutId=setTimeout(this._onMaxLengthReached.bind(this),i)}else ur.log("Recording already in progress, skipping startRecording.");else this.reportError("rrweb record function not provided. ")},Ne.prototype.stopRecording=function(t){if(this.finalFlushUserIdInfo=this.getUserIdInfo(),!this.isRrwebStopped()){try{this._stopRecording()}catch(e){this.reportError("Error with rrweb stopRecording",e)}this._stopRecording=null}var r;return this.batcher.stopped?r=this.batcher.clear():t||(r=this.batcher.flush()),this.batcher.stop(),clearTimeout(this.idleTimeoutId),clearTimeout(this.maxTimeoutId),r},Ne.prototype.isRrwebStopped=function(){return this._stopRecording===null},Ne.prototype.flushEventsWithOptOut=function(t,r,e){var n=(function(i){i===0&&(this.stopRecording(),e({error:"Tracking has been opted out, stopping recording."}))}).bind(this);this._flushEvents(t,r,e,n)},Ne.prototype.serialize=function(){var t;try{t=this._mixpanel.get_tab_id()}catch(r){this.reportError("Error getting tab ID for serialization ",r),t=null}return{replayId:this.replayId,seqNo:this.seqNo,replayStartTime:this.replayStartTime,batchStartUrl:this.batchStartUrl,replayStartUrl:this.replayStartUrl,lastEventTimestamp:this.lastEventTimestamp,idleExpires:this.idleExpires,maxExpires:this.maxExpires,tabId:t}},Ne.deserialize=function(t,r){return new Ne(f.extend({},r,{replayId:t.replayId,batchStartUrl:t.batchStartUrl,replayStartUrl:t.replayStartUrl,idleExpires:t.idleExpires,maxExpires:t.maxExpires,replayStartTime:t.replayStartTime,lastEventTimestamp:t.lastEventTimestamp,seqNo:t.seqNo,sharedLockStorage:r.sharedLockStorage}))},Ne.prototype._sendRequest=function(t,r,e,n){var i=(function(l,d){l.status===200&&this.replayId===t&&(this.seqNo++,this.batchStartUrl=f.info.currentUrl()),this._onBatchSent(),n({status:0,httpStatusCode:l.status,responseBody:d,retryAfter:l.headers.get("Retry-After")})}).bind(this),s=this._mixpanel.get_api_host&&this._mixpanel.get_api_host("record")||this.getConfig("api_host");R.fetch(s+"/"+this.getConfig("api_routes").record+"?"+new URLSearchParams(r),{method:"POST",headers:{Authorization:"Basic "+btoa(this.getConfig("token")+":"),"Content-Type":"application/octet-stream"},body:e}).then((function(l){l.json().then((function(d){i(l,d)})).catch((function(d){n({error:d})}))})).catch((function(l){n({error:l,httpStatusCode:0})}))},Ne.prototype._flushEvents=Ft((function(t,r,e){var n=t.length;if(n>0){for(var i=this.replayId,s=1/0,l=-1/0,d=!1,h=0;h<n;h++)s=Math.min(s,t[h].timestamp),l=Math.max(l,t[h].timestamp),t[h].type===le.FullSnapshot&&(d=!0);if(this.seqNo===0){if(!d)return e({error:"First batch does not contain a full snapshot. Aborting recording."}),void this.stopRecording(!0);this.replayStartTime=s}else this.replayStartTime||(this.reportError("Replay start time not set but seqNo is not 0. Using current batch start time as a fallback."),this.replayStartTime=s);var o=l-this.replayStartTime,a={$current_url:this.batchStartUrl,$lib_version:ot.LIB_VERSION,batch_start_time:s/1e3,mp_lib:"web",replay_id:i,replay_length_ms:o,replay_start_time:this.replayStartTime/1e3,replay_start_url:this.replayStartUrl,seq:this.seqNo},c=JSON.stringify(t);if(Object.assign(a,this.getUserIdInfo()),(function(p,_,m){if(!R.CompressionStream)return!1;var g=f.info.browser(p,_,m),v=f.info.browserVersion(p,_,m);return!((g==="Safari"||g==="Mobile Safari")&&v>=16.4&&v<16.6)})(_t,Rt.vendor,jr)){var u=new Blob([c],{type:"application/json"}).stream().pipeThrough(new Lm("gzip"));new Response(u).blob().then((function(p){a.format="gzip",this._sendRequest(i,a,p,e)}).bind(this))}else a.format="body",this._sendRequest(i,a,c,e)}})),Ne.prototype.reportError=function(t,r){ur.error.apply(ur.error,arguments);try{r||t instanceof Error||(t=new Error(t)),this.getConfig("error_reporter")(t,r)}catch(e){ur.error(e)}},Ne.prototype.getDurationMs=function(){return this.replayStartTime===null?0:this.lastEventTimestamp===null?new Date().getTime()-this.replayStartTime:this.lastEventTimestamp-this.replayStartTime},Ne.prototype._getRecordMinMs=function(){var t=this.getConfig("record_min_ms");return t>Fc?(ur.critical("record_min_ms cannot be greater than 8000ms. Capping value."),Fc):t};var St=function(t){this.idb=new ct(Wa),this.errorReporter=t.errorReporter,this.mixpanelInstance=t.mixpanelInstance,this.sharedLockStorage=t.sharedLockStorage};St.prototype.isPersistenceEnabled=function(){return!this.mixpanelInstance.get_config("disable_persistence")},St.prototype.handleError=function(t){this.errorReporter("IndexedDB error: ",t)},St.prototype.setActiveRecording=function(t){if(!this.isPersistenceEnabled())return he.resolve();var r=t.tabId;return r?this.idb.init().then((function(){return this.idb.setItem(r,t)}).bind(this)).catch(this.handleError.bind(this)):(console.warn("No tab ID is set, cannot persist recording metadata."),he.resolve())},St.prototype.getActiveRecording=function(){return this.isPersistenceEnabled()?this.idb.init().then((function(){return this.idb.getItem(this.mixpanelInstance.get_tab_id())}).bind(this)).then((function(t){return na(t)?null:t}).bind(this)).catch(this.handleError.bind(this)):he.resolve(null)},St.prototype.clearActiveRecording=function(){return this.isPersistenceEnabled()?this.markActiveRecordingExpired():this.deleteActiveRecording()},St.prototype.markActiveRecordingExpired=function(){return this.getActiveRecording().then((function(t){if(t)return t.maxExpires=0,this.setActiveRecording(t)}).bind(this)).catch(this.handleError.bind(this))},St.prototype.deleteActiveRecording=function(){return this.idb.isInitialized()?this.idb.removeItem(this.mixpanelInstance.get_tab_id()).catch(this.handleError.bind(this)):he.resolve()},St.prototype.flushInactiveRecordings=function(){return this.isPersistenceEnabled()?this.idb.init().then((function(){return this.idb.getAll()}).bind(this)).then((function(t){var r=t.filter((function(e){return na(e)})).map((function(e){return Ne.deserialize(e,{mixpanelInstance:this.mixpanelInstance,sharedLockStorage:this.sharedLockStorage}).unloadPersistedData().then((function(){return this.idb.removeItem(e.tabId)}).bind(this)).catch(this.handleError.bind(this))}).bind(this));return he.all(r)}).bind(this)).catch(this.handleError.bind(this)):he.resolve([])};var qr=er("recorder"),Ct=function(t,r,e){this.mixpanelInstance=t,this.rrwebRecord=r||Nt,this.sharedLockStorage=e,this.recordingRegistry=new St({mixpanelInstance:this.mixpanelInstance,errorReporter:qr.error,sharedLockStorage:e}),this._flushInactivePromise=this.recordingRegistry.flushInactiveRecordings(),this.activeRecording=null,this.stopRecordingInProgress=!1};Ct.prototype.startRecording=function(t){if(t=t||{},!this.activeRecording||this.activeRecording.isRrwebStopped()){var r=(function(){qr.log("Idle timeout reached, restarting recording."),this.resetRecording()}).bind(this),e=(function(){qr.log("Max recording length reached, stopping recording."),this.resetRecording()}).bind(this),n=(function(){this.recordingRegistry.setActiveRecording(this.activeRecording.serialize()),this.__flushPromise=this.activeRecording.batcher._flushPromise}).bind(this),i={mixpanelInstance:this.mixpanelInstance,onBatchSent:n,onIdleTimeout:r,onMaxLengthReached:e,replayId:f.UUID(),rrwebRecord:this.rrwebRecord,sharedLockStorage:this.sharedLockStorage};return t.activeSerializedRecording?this.activeRecording=Ne.deserialize(t.activeSerializedRecording,i):this.activeRecording=new Ne(i),this.activeRecording.startRecording(t.shouldStopBatcher),this.recordingRegistry.setActiveRecording(this.activeRecording.serialize())}qr.log("Recording already in progress, skipping startRecording.")},Ct.prototype.stopRecording=function(){return this.stopRecordingInProgress=!0,this._stopCurrentRecording(!1,!0).then((function(){return this.recordingRegistry.clearActiveRecording()}).bind(this)).then((function(){this.stopRecordingInProgress=!1}).bind(this))},Ct.prototype.pauseRecording=function(){return this._stopCurrentRecording(!1)},Ct.prototype._stopCurrentRecording=function(t,r){if(this.activeRecording){var e=this.activeRecording.stopRecording(t);return r&&(this.activeRecording=null),e}return he.resolve()},Ct.prototype.resumeRecording=function(t){return this.activeRecording&&this.activeRecording.isRrwebStopped()?(this.activeRecording.startRecording(!1),he.resolve(null)):this.recordingRegistry.getActiveRecording().then((function(r){return r&&!this.stopRecordingInProgress?this.startRecording({activeSerializedRecording:r}):t?this.startRecording({shouldStopBatcher:!1}):(qr.log("No resumable recording found."),null)}).bind(this))},Ct.prototype.resetRecording=function(){this.stopRecording(),this.startRecording({shouldStopBatcher:!0})},Ct.prototype.getActiveReplayId=function(){return this.activeRecording&&!this.activeRecording.isRrwebStopped()?this.activeRecording.replayId:null},Object.defineProperty(Ct.prototype,"replayId",{get:function(){return this.getActiveReplayId()}}),R.__mp_recorder=Ct;var sn="change",At="click",ia="hashchange",Jc="load",Lt="mp_locationchange",Yc="popstate",bi="scrollend",oa="scroll",ki="submit",Xc="visibilitychange",Vm=["clientX","clientY","offsetX","offsetY","pageX","pageY","screenX","screenY","x","y"],Qc=["mp-include"],aa=["mp-no-track"],Kc=aa.concat(["mp-sensitive"]),Um=["aria-label","aria-labelledby","aria-describedby","href","name","role","title","type"],jm={button:!0,checkbox:!0,combobox:!0,grid:!0,link:!0,listbox:!0,menu:!0,menubar:!0,menuitem:!0,menuitemcheckbox:!0,menuitemradio:!0,navigation:!0,option:!0,radio:!0,radiogroup:!0,searchbox:!0,slider:!0,spinbutton:!0,switch:!0,tab:!0,tablist:!0,textbox:!0,tree:!0,treegrid:!0,treeitem:!0},qm={base:!0,head:!0,html:!0,link:!0,meta:!0,script:!0,style:!0,title:!0,br:!0,hr:!0,wbr:!0,noscript:!0,picture:!0,source:!0,template:!0,track:!0},zm={article:!0,div:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,p:!0,section:!0,span:!0},el=["onclick","onmousedown","onmouseup","onpointerdown","onpointerup","ontouchend","ontouchstart"],ye=er("autocapture");function sa(t){for(var r={},e=Yu(t).split(" "),n=0;n<e.length;n++){var i=e[n];i&&(r[i]=!0)}return r}function Yu(t){switch(typeof t.className){case"string":return t.className;case"object":return t.className.baseVal||t.getAttribute("class")||"";default:return""}}function Wm(t){if(t.previousElementSibling)return t.previousElementSibling;do t=t.previousSibling;while(t&&!Xu(t));return t}function tl(t,r,e,n,i,s){var l={$classes:Yu(t).split(" "),$tag_name:t.tagName.toLowerCase()},d=t.id;d&&(l.$id=d),Za(t,r,i,s)&&f.each(Um.concat(n),(function(c){if(t.hasAttribute(c)&&!e[c]){var u=t.getAttribute(c);Ci(u)&&(l["$attr-"+c]=u)}}));for(var h=1,o=1,a=t;a=Wm(a);)h++,a.tagName===t.tagName&&o++;return l.$nth_child=h,l.$nth_of_type=o,l}function Gm(t,r){var e=r.allowElementCallback,n=r.allowSelectors||[],i=r.blockAttrs||[],s=r.blockElementCallback,l=r.blockSelectors||[],d=r.captureTextContent||!1,h=r.captureExtraAttrs||[],o=r.capturedForHeatMap||!1,a={};f.each(i,(function(w){a[w]=!0}));var c=null,u=t.target===void 0?t.srcElement:t.target;if(Qu(u)&&(u=u.parentNode),(function(w,C){if(!w||gt(w,"html")||!Xu(w))return!1;switch(w.tagName.toLowerCase()){case"form":return C.type===ki;case"input":return["button","submit"].indexOf(w.getAttribute("type"))===-1?C.type===sn:C.type===At;case"select":case"textarea":return C.type===sn;default:return C.type===At}})(u,t)&&ca(u,t,e,n)&&!po(u,t,s,l)){for(var p=[u],_=u;_.parentNode&&!gt(_,"body");)p.push(_.parentNode),_=_.parentNode;var m,g=[],v=!1;if(f.each(p,(function(w){var C=Za(w,t,e,n);a.href||w.tagName.toLowerCase()!=="a"||(m=w.getAttribute("href"),m=C&&Ci(m)&&m),po(w,t,s,l)&&(v=!0),g.push(tl(w,t,a,h,e,n))}),this),!v){var y=Q.documentElement;if(c={$event_type:t.type,$host:R.location.host,$pathname:R.location.pathname,$elements:g,$el_attr__href:m,$viewportHeight:Math.max(y.clientHeight,R.innerHeight||0),$viewportWidth:Math.max(y.clientWidth,R.innerWidth||0),$pageHeight:Q.body.offsetHeight||0,$pageWidth:Q.body.offsetWidth||0},f.each(h,(function(w){if(!a[w]&&u.hasAttribute(w)){var C=u.getAttribute(w);Ci(C)&&(c["$el_attr__"+w]=C)}})),d&&(k=rl(u,t,e,n))&&k.length&&(c.$el_text=k),t.type===At&&(f.each(Vm,(function(w){w in t&&(c["$"+w]=t[w])})),o&&(c.$captured_for_heatmap=!0),u=(function(w){for(var C=w.target,P=w.composedPath(),D=0;D<P.length;D++){var b=P[D];if(gt(b,"a")||gt(b,"button")||gt(b,"input")||gt(b,"select")||b.getAttribute&&b.getAttribute("role")==="button"){C=b;break}if(b===C)break}return C})(t)),d){var k=rl(u,t,e,n);k&&k.length&&(c.$el_text=k)}if(u){if(!ca(u,t,e,n)||po(u,t,s,l))return null;var E=tl(u,t,a,h,e,n);c.$target=E,c.$el_classes=E.$classes,f.extend(c,f.strip_empty_properties({$el_id:E.$id,$el_tag_name:E.$tag_name}))}}}return c}function rl(t,r,e,n){var i="";return Za(t,r,e,n)&&t.childNodes&&t.childNodes.length&&f.each(t.childNodes,(function(s){Qu(s)&&s.textContent&&(i+=f.trim(s.textContent).split(/(\s+)/).filter(Ci).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255))})),f.trim(i)}function ca(t,r,e,n){if(e)try{if(!e(t,r))return!1}catch(l){return ye.critical("Error while checking element in allowElementCallback",l),!1}if(!n.length)return!0;for(var i=0;i<n.length;i++){var s=n[i];try{if(t.matches(s))return!0}catch(l){ye.critical("Error while checking selector: "+s,l)}}return!1}function po(t,r,e,n){var i;if(e)try{if(e(t,r))return!0}catch(d){return ye.critical("Error while checking element in blockElementCallback",d),!0}if(n&&n.length)for(i=0;i<n.length;i++){var s=n[i];try{if(t.matches(s))return!0}catch(d){ye.critical("Error while checking selector: "+s,d)}}var l=sa(t);for(i=0;i<aa.length;i++)if(l[aa[i]])return!0;return!1}function Xu(t){return t&&t.nodeType===1}function gt(t,r){return t&&t.tagName&&t.tagName.toLowerCase()===r.toLowerCase()}function Qu(t){return t&&t.nodeType===3}function Za(t,r,e,n){var i;if(!ca(t,r,e,n))return!1;for(var s=t;s.parentNode&&!gt(s,"body");s=s.parentNode){var l=sa(s);for(i=0;i<Kc.length;i++)if(l[Kc[i]])return!1}var d=sa(t);for(i=0;i<Qc.length;i++)if(d[Qc[i]])return!0;if(gt(t,"input")||gt(t,"select")||gt(t,"textarea")||t.getAttribute("contenteditable")==="true")return!1;var h=t.type||"";if(typeof h=="string")switch(h.toLowerCase()){case"hidden":case"password":return!1}var o=t.name||t.id||"";return!(typeof o=="string"&&/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i.test(o.replace(/[^a-zA-Z0-9]/g,"")))}function Ci(t){return!(t===null||f.isUndefined(t)||typeof t=="string"&&(t=f.trim(t),/^(?:(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11}))$/.test((t||"").replace(/[- ]/g,""))||/(^\d{3}-?\d{2}-?\d{4}$)/.test(t)))}function nl(t){var r="onscrollend"in R,e=on(t),n=bi;if(!r){var i=null;e=on((function(){clearTimeout(i),i=setTimeout(t,100)})),n=oa}return{listener:e,eventType:n}}function fo(t){var r=t.tagName.toLowerCase();return r==="button"||r==="input"||r==="select"||r==="textarea"||r==="details"||r==="dialog"||!!t.isContentEditable||!!(t.onclick||t.onmousedown||t.onmouseup||t.ontouchstart||t.ontouchend)||!!(function(e){for(var n=0;n<el.length;n++)if(e.hasAttribute(el[n]))return!0;return!1})(t)||!!(function(e){var n=e.getAttribute("role");if(!n)return!1;var i=n.trim().split(/\s+/)[0].toLowerCase();return jm[i]})(t)||!(r!=="a"||!t.hasAttribute("href"))||!!t.hasAttribute("tabindex")}function Ku(t){if(!t||!t.tagName)return!0;var r=t.tagName.toLowerCase();if(qm[r])return!0;if(fo(t))return!1;for(var e=t.parentElement,n=0;e&&n<5;){if(fo(e))return!1;if(e.getRootNode&&e.getRootNode()!==Q){var i=e.getRootNode();if(i.host&&fo(i.host))return!1}e=e.parentElement,n++}return!!zm[r]}function ed(t){return"composedPath"in t?t.composedPath():[]}function il(t){var r=ed(t);return r&&r.length>0?r[0]:t.target||t.srcElement}function td(){this.clicks=[]}function mr(t,r){this.changeCallback=t||function(){},this.observerConfig=r,this.observedShadowRoots=null,this.shadowObservers=[]}td.prototype.isRageClick=function(t,r){var e=(r=r||{}).threshold_px||30,n=r.timeout_ms||1e3,i=r.click_count||4;if(r.interactive_elements_only){var s=il(t);if(!s||Ku(s))return!1}var l=Date.now(),d=t.pageX,h=t.pageY,o=this.clicks[this.clicks.length-1];if(o&&l-o.timestamp<n&&Math.sqrt(Math.pow(d-o.x,2)+Math.pow(h-o.y,2))<e){if(this.clicks.push({x:d,y:h,timestamp:l}),this.clicks.length>=i)return this.clicks=[],!0}else this.clicks=[{x:d,y:h,timestamp:l}];return!1},mr.prototype.getEventTarget=function(t){if(this.observedShadowRoots)return il(t)},mr.prototype.observeFromEvent=function(t){if(this.observedShadowRoots)for(var r=ed(t),e=0;e<r.length;e++){var n=r[e];n&&n.shadowRoot&&this.observeShadowRoot(n.shadowRoot)}},mr.prototype.observeShadowRoot=function(t){if(this.observedShadowRoots&&!this.observedShadowRoots.has(t)){var r=this;try{this.observedShadowRoots.add(t);var e=new window.MutationObserver((function(){r.changeCallback()}));e.observe(t,this.observerConfig),this.shadowObservers.push(e)}catch(n){ye.critical("Error while observing shadow root",n)}}},mr.prototype.start=function(){this.observedShadowRoots||(typeof WeakSet<"u"?this.observedShadowRoots=new WeakSet:ye.critical("Shadow DOM observation unavailable: WeakSet not supported"))},mr.prototype.stop=function(){if(this.observedShadowRoots){for(var t=0;t<this.shadowObservers.length;t++)try{this.shadowObservers[t].disconnect()}catch(r){ye.critical("Error while disconnecting shadow DOM observer",r)}this.shadowObservers=[],this.observedShadowRoots=null}};var $m=[sn,"input",ki,"select","toggle"],Hm=[bi],Zm=[ia],ol={characterData:!0,childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class","hidden","checked","selected","value","display","visibility"]};function mt(t){this.eventListeners=[],this.mutationObserver=null,this.shadowDOMObserver=null,this.isTracking=!1,this.lastChangeEventTimestamp=0,this.pendingClicks=[],this.onDeadClickCallback=t,this.processingActive=!1,this.processingTimeout=null}mt.prototype.addClick=function(t){var r=this.shadowDOMObserver&&this.shadowDOMObserver.getEventTarget(t);return r||(r=t.target||t.srcElement),!(!r||Ku(r))&&(this.shadowDOMObserver&&this.shadowDOMObserver.observeFromEvent(t),this.pendingClicks.push({element:r,event:t,timestamp:Date.now()}),!0)},mt.prototype.trackClick=function(t,r){if(!this.isTracking)return!1;var e=this.addClick(t);return e&&this.triggerProcessing(r),e},mt.prototype.getDeadClicks=function(t){if(this.pendingClicks.length===0)return[];var r=t.timeout_ms,e=Date.now(),n=this.pendingClicks.slice();this.pendingClicks=[];for(var i=[],s=0;s<n.length;s++){var l=n[s];e-l.timestamp>=r?this.hasChangesAfter(l.timestamp)||i.push(l):this.pendingClicks.push(l)}return i},mt.prototype.hasChangesAfter=function(t){return this.lastChangeEventTimestamp>=t-100},mt.prototype.recordChangeEvent=function(){this.lastChangeEventTimestamp=Date.now()},mt.prototype.triggerProcessing=function(t){this.processingActive||(this.processingActive=!0,this.processRecursively(t))},mt.prototype.processRecursively=function(t){if(this.isTracking&&this.onDeadClickCallback){var r=t.timeout_ms,e=this;this.processingTimeout=setTimeout((function(){if(e.processingActive){for(var n=e.getDeadClicks(t),i=0;i<n.length;i++)e.onDeadClickCallback(n[i].event);e.pendingClicks.length>0?e.processRecursively(t):e.processingActive=!1}}),r)}else this.processingActive=!1},mt.prototype.startTracking=function(){if(!this.isTracking){this.isTracking=!0;var t=this;$m.forEach((function(e){var n=function(){t.recordChangeEvent()};document.addEventListener(e,n,{capture:!0,passive:!0}),t.eventListeners.push({target:document,event:e,handler:n,options:{capture:!0,passive:!0}})})),Zm.forEach((function(e){var n=function(){t.recordChangeEvent()};window.addEventListener(e,n),t.eventListeners.push({target:window,event:e,handler:n})})),Hm.forEach((function(e){var n=function(){t.recordChangeEvent()};window.addEventListener(e,n,{passive:!0}),t.eventListeners.push({target:window,event:e,handler:n,options:{passive:!0}})}));var r=function(){t.recordChangeEvent()};if(document.addEventListener("selectionchange",r),t.eventListeners.push({target:document,event:"selectionchange",handler:r}),window.MutationObserver)try{this.mutationObserver=new window.MutationObserver((function(){t.recordChangeEvent()})),this.mutationObserver.observe(document.body||document.documentElement,ol)}catch(e){ye.critical("Error while setting up mutation observer",e)}if(window.customElements)try{this.shadowDOMObserver=new mr((function(){t.recordChangeEvent()}),ol),this.shadowDOMObserver.start()}catch(e){ye.critical("Error while setting up shadow DOM observer",e),this.shadowDOMObserver=null}}},mt.prototype.stopTracking=function(){if(this.isTracking){this.isTracking=!1,this.pendingClicks=[],this.lastChangeEventTimestamp=0,this.processingActive=!1,this.processingTimeout&&(clearTimeout(this.processingTimeout),this.processingTimeout=null);for(var t=0;t<this.eventListeners.length;t++){var r=this.eventListeners[t];try{r.target.removeEventListener(r.event,r.handler,r.options)}catch(e){ye.critical("Error while removing event listener",e)}}if(this.eventListeners=[],this.mutationObserver){try{this.mutationObserver.disconnect()}catch(e){ye.critical("Error while disconnecting mutation observer",e)}this.mutationObserver=null}if(this.shadowDOMObserver){try{this.shadowDOMObserver.stop()}catch(e){ye.critical("Error while stopping shadow DOM observer",e)}this.shadowDOMObserver=null}}};var al="autocapture",rd="full-url",nd="allow_selectors",id="allow_url_regexes",od="block_attrs",ad="block_element_callback",sd="block_selectors",cd="block_url_regexes",ld="capture_extra_attrs",ud="capture_text_content",dd="scroll_capture_all",hd="scroll_depth_percent_checkpoints",ni="click",ii="dead_click",la="input",pd="pageview",oi="rage_click",ua="scroll",ai="page_leave",da="submit",Le={};Le[nd]=[],Le[id]=[],Le[od]=[],Le[ad]=null,Le[sd]=[],Le[cd]=[],Le[ld]=[],Le[ud]=!1,Le[dd]=!1,Le[hd]=[25,50,75,100],Le[ni]=!0,Le[ii]=!0,Le[la]=!0,Le[pd]=rd,Le[oi]=!0,Le[ua]=!0,Le[ai]=!1,Le[da]=!0;var Lr={$mp_autocapture:!0},sl="$mp_click",cl="$mp_dead_click",ll="$mp_rage_click",xe=function(t){this.mp=t,this.maxScrollViewDepth=0,this.hasTrackedScrollSession=!1,this.previousScrollHeight=0};xe.prototype.init=function(){(function(){try{return!!Q.createElement("div").matches}catch{return!1}})()?(this.initPageListeners(),this.initPageviewTracking(),this.initClickTracking(),this.initDeadClickTracking(),this.initInputTracking(),this.initScrollTracking(),this.initSubmitTracking(),this.initRageClickTracking(),this.initPageLeaveTracking()):ye.critical("Autocapture unavailable: missing required DOM APIs")},xe.prototype.getFullConfig=function(){var t=this.mp.get_config(al);return t?f.isObject(t)?f.extend({},Le,t):Le:{}},xe.prototype.getConfig=function(t){return this.getFullConfig()[t]},xe.prototype.currentUrlBlocked=function(){var t,r=f.info.currentUrl(),e=this.getConfig(id)||[];if(e.length){var n=!1;for(t=0;t<e.length;t++){var i=e[t];try{if(r.match(i)){n=!0;break}}catch(l){return ye.critical("Error while checking block URL regex: "+i,l),!0}}if(!n)return!0}var s=this.getConfig(cd)||[];if(!s||!s.length)return!1;for(t=0;t<s.length;t++)try{if(r.match(s[t]))return!0}catch(l){return ye.critical("Error while checking block URL regex: "+s[t],l),!0}return!1},xe.prototype.pageviewTrackingConfig=function(){return this.mp.get_config(al)?this.getConfig(pd):this.mp.get_config("track_pageview")},xe.prototype.trackDomEvent=function(t,r){if(!this.currentUrlBlocked()){var e=this.mp.is_recording_heatmap_data()&&(r===sl&&!this.getConfig(ni)||r===ll&&!this._getClickTrackingConfig(oi)||r===cl&&!this._getClickTrackingConfig(ii)),n=Gm(t,{allowElementCallback:this.getConfig("allow_element_callback"),allowSelectors:this.getConfig(nd),blockAttrs:this.getConfig(od),blockElementCallback:this.getConfig(ad),blockSelectors:this.getConfig(sd),captureExtraAttrs:this.getConfig(ld),captureTextContent:this.getConfig(ud),capturedForHeatMap:e});n&&(f.extend(n,Lr),this.mp.track(r,n))}},xe.prototype.initPageListeners=function(){if(R.removeEventListener(Yc,this.listenerPopstate),R.removeEventListener(ia,this.listenerHashchange),this.pageviewTrackingConfig()||this.getConfig(ai)||this.mp.get_config("record_heatmap_data")){this.listenerPopstate=function(){R.dispatchEvent(new Event(Lt))},this.listenerHashchange=function(){R.dispatchEvent(new Event(Lt))},R.addEventListener(Yc,this.listenerPopstate),R.addEventListener(ia,this.listenerHashchange);var t=R.history.pushState;typeof t=="function"&&(R.history.pushState=function(e,n,i){t.call(R.history,e,n,i),R.dispatchEvent(new Event(Lt))});var r=R.history.replaceState;typeof r=="function"&&(R.history.replaceState=function(e,n,i){r.call(R.history,e,n,i),R.dispatchEvent(new Event(Lt))})}},xe.prototype._getClickTrackingConfig=function(t){var r=this.getConfig(t);return r?r===!0?{}:typeof r=="object"?r:{}:null},xe.prototype._trackPageLeave=function(t,r,e){if(!this.hasTrackedScrollSession&&(this.getConfig(ai)||this.mp.is_recording_heatmap_data())){this.hasTrackedScrollSession=!0;var n=Math.max(Q.documentElement.clientHeight,R.innerHeight||0),i=Math.round(Math.max(this.maxScrollViewDepth-n,0)/(e-n)*100),s=Math.round(n/e*100);e<=n&&(i=100,s=100);var l=f.extend({$max_scroll_view_depth:this.maxScrollViewDepth,$max_scroll_percentage:i,$fold_line_percentage:s,$scroll_height:e,$event_type:t.type,$current_url:r||f.info.currentUrl(),$viewportHeight:n,$viewportWidth:Math.max(Q.documentElement.clientWidth,R.innerWidth||0),$captured_for_heatmap:this.mp.is_recording_heatmap_data()},Lr);this.mp.track("$mp_page_leave",l,{transport:"sendBeacon"})}},xe.prototype._initScrollDepthTracking=function(){if(R.removeEventListener(oa,this.listenerScrollDepth),R.removeEventListener(bi,this.listenerScrollDepth),this.mp.get_config("record_heatmap_data")){ye.log("Initializing scroll depth tracking"),this.maxScrollViewDepth=Math.max(Q.documentElement.clientHeight,R.innerHeight||0);var t=nl((function(){if(!this.currentUrlBlocked()){var r=Math.max(Q.documentElement.clientHeight,R.innerHeight||0)+R.scrollY;r>this.maxScrollViewDepth&&(this.maxScrollViewDepth=r),this.previousScrollHeight=Q.body.scrollHeight}}).bind(this));this.listenerScrollDepth=t.listener,R.addEventListener(t.eventType,this.listenerScrollDepth)}},xe.prototype.initClickTracking=function(){R.removeEventListener(At,this.listenerClick),(this.getConfig(ni)||this.mp.get_config("record_heatmap_data"))&&(ye.log("Initializing click tracking"),this.listenerClick=(function(t){(this.getConfig(ni)||this.mp.is_recording_heatmap_data())&&this.trackDomEvent(t,sl)}).bind(this),R.addEventListener(At,this.listenerClick))},xe.prototype.initDeadClickTracking=function(){this._getClickTrackingConfig(ii)||this.mp.get_config("record_heatmap_data")?(ye.log("Initializing dead click tracking"),this._deadClickTracker||(this._deadClickTracker=new mt((function(t){this.trackDomEvent(t,cl)}).bind(this)),this._deadClickTracker.startTracking()),this.listenerDeadClick||(this.listenerDeadClick=(function(t){var r=this._getClickTrackingConfig(ii);if((r||this.mp.is_recording_heatmap_data())&&!this.currentUrlBlocked()){var e=r||{};e.timeout_ms||(e.timeout_ms=500),this._deadClickTracker.trackClick(t,e)}}).bind(this),R.addEventListener(At,this.listenerDeadClick))):this.stopDeadClickTracking()},xe.prototype.initInputTracking=function(){R.removeEventListener(sn,this.listenerChange),this.getConfig(la)&&(ye.log("Initializing input tracking"),this.listenerChange=(function(t){this.getConfig(la)&&this.trackDomEvent(t,"$mp_input_change")}).bind(this),R.addEventListener(sn,this.listenerChange))},xe.prototype.initPageviewTracking=function(){if(R.removeEventListener(Lt,this.listenerLocationchange),this.pageviewTrackingConfig()){ye.log("Initializing pageview tracking");var t="",r=!1;this.currentUrlBlocked()||(r=this.mp.track_pageview(Lr)),r&&(t=f.info.currentUrl()),this.listenerLocationchange=on((function(){if(!this.currentUrlBlocked()){var e=f.info.currentUrl(),n=!1,i=e.split("#")[0].split("?")[0]!==t.split("#")[0].split("?")[0],s=this.pageviewTrackingConfig();s===rd?n=e!==t:s==="url-with-path-and-query-string"?n=e.split("#")[0]!==t.split("#")[0]:s==="url-with-path"&&(n=i),n&&(this.mp.track_pageview(Lr)&&(t=e),i&&(this.lastScrollCheckpoint=0,ye.log("Path change: re-initializing scroll depth checkpoints")))}}).bind(this)),R.addEventListener(Lt,this.listenerLocationchange)}},xe.prototype.initRageClickTracking=function(){R.removeEventListener(At,this.listenerRageClick),(this._getClickTrackingConfig(oi)||this.mp.get_config("record_heatmap_data"))&&(ye.log("Initializing rage click tracking"),this._rageClickTracker||(this._rageClickTracker=new td),this.listenerRageClick=(function(t){var r=this._getClickTrackingConfig(oi);(r||this.mp.is_recording_heatmap_data())&&(this.currentUrlBlocked()||this._rageClickTracker.isRageClick(t,r)&&this.trackDomEvent(t,ll))}).bind(this),R.addEventListener(At,this.listenerRageClick))},xe.prototype.initScrollTracking=function(){if(R.removeEventListener(bi,this.listenerScroll),R.removeEventListener(oa,this.listenerScroll),this.getConfig(ua)){ye.log("Initializing scroll tracking"),this.lastScrollCheckpoint=0;var t=nl((function(){if(this.getConfig(ua)&&!this.currentUrlBlocked()){var r=this.getConfig(dd),e=(this.getConfig(hd)||[]).slice().sort((function(o,a){return o-a})),n=R.scrollY,i=f.extend({$scroll_top:n},Lr);try{var s=Q.body.scrollHeight,l=Math.round(n/(s-R.innerHeight)*100);if(i.$scroll_height=s,i.$scroll_percentage=l,l>this.lastScrollCheckpoint)for(var d=0;d<e.length;d++){var h=e[d];l>=h&&this.lastScrollCheckpoint<h&&(i.$scroll_checkpoint=h,this.lastScrollCheckpoint=h,r=!0)}}catch(o){ye.critical("Error while calculating scroll percentage",o)}r&&this.mp.track("$mp_scroll",i)}}).bind(this));this.listenerScroll=t.listener,R.addEventListener(t.eventType,this.listenerScroll)}},xe.prototype.initSubmitTracking=function(){R.removeEventListener(ki,this.listenerSubmit),this.getConfig(da)&&(ye.log("Initializing submit tracking"),this.listenerSubmit=(function(t){this.getConfig(da)&&this.trackDomEvent(t,"$mp_submit")}).bind(this),R.addEventListener(ki,this.listenerSubmit))},xe.prototype.initPageLeaveTracking=function(){if(Q.removeEventListener(Xc,this.listenerPageLeaveVisibilitychange),R.removeEventListener(Lt,this.listenerPageLeaveLocationchange),R.removeEventListener(Jc,this.listenerPageLoad),this.getConfig(ai)||this.mp.get_config("record_heatmap_data")){ye.log("Initializing page visibility tracking."),this._initScrollDepthTracking();var t=f.info.currentUrl();this.listenerPageLoad=(function(){this.previousScrollHeight=Q.body.scrollHeight}).bind(this),R.addEventListener(Jc,this.listenerPageLoad),this.listenerPageLeaveLocationchange=on((function(r){if(!this.currentUrlBlocked()){var e=f.info.currentUrl();e!==t&&(this._trackPageLeave(r,t,this.previousScrollHeight),t=e,this.maxScrollViewDepth=Math.max(Q.documentElement.clientHeight,R.innerHeight||0),this.previousScrollHeight=Q.body.scrollHeight,this.hasTrackedScrollSession=!1)}}).bind(this)),R.addEventListener(Lt,this.listenerPageLeaveLocationchange),this.listenerPageLeaveVisibilitychange=(function(r){Q.hidden&&this._trackPageLeave(r,t,this.previousScrollHeight)}).bind(this),Q.addEventListener(Xc,this.listenerPageLeaveVisibilitychange)}},xe.prototype.stopDeadClickTracking=function(){this.listenerDeadClick&&(R.removeEventListener(At,this.listenerDeadClick),this.listenerDeadClick=null),this._deadClickTracker&&(this._deadClickTracker.stopTracking(),this._deadClickTracker=null)},zu(xe);var Xe=er("flags"),jn="flags",si="context",ha={};ha[si]={};var ae=function(t){this.fetch=R.fetch,this.getFullApiRoute=t.getFullApiRoute,this.getMpConfig=t.getConfigFunc,this.setMpConfig=t.setConfigFunc,this.getMpProperty=t.getPropertyFunc,this.track=t.trackingFunc};ae.prototype.init=function(){this.minApisSupported()?(this.flags=null,this.fetchFlags(),this.trackedFeatures=new Set):Xe.critical("Feature Flags unavailable: missing minimum required APIs")},ae.prototype.getFullConfig=function(){var t=this.getMpConfig(jn);return t?f.isObject(t)?f.extend({},ha,t):ha:{}},ae.prototype.getConfig=function(t){return this.getFullConfig()[t]},ae.prototype.isSystemEnabled=function(){return!!this.getMpConfig(jn)},ae.prototype.updateContext=function(t,r){if(!this.isSystemEnabled())return Xe.critical("Feature Flags not enabled, cannot update context"),Promise.resolve();var e=this.getMpConfig(jn);f.isObject(e)||(e={});var n=r&&r.replace?{}:this.getConfig(si);return e[si]=f.extend({},n,t),this.setMpConfig(jn,e),this.fetchFlags()},ae.prototype.areFlagsReady=function(){return this.isSystemEnabled()||Xe.error("Feature Flags not enabled"),!!this.flags},ae.prototype.fetchFlags=function(){if(!this.isSystemEnabled())return Promise.resolve();var t=this.getMpProperty("distinct_id"),r=this.getMpProperty("$device_id"),e="00-"+f.UUID().replace(/-/g,"")+"-"+f.UUID().replace(/-/g,"").substring(0,16)+"-01";Xe.log("Fetching flags for distinct ID: "+t);var n=f.extend({distinct_id:t,device_id:r},this.getConfig(si)),i=new URLSearchParams;i.set("context",JSON.stringify(n)),i.set("token",this.getMpConfig("token")),i.set("mp_lib","web"),i.set("$lib_version",ot.LIB_VERSION);var s=this.getFullApiRoute()+"?"+i.toString();return this._fetchInProgressStartTime=Date.now(),this.fetchPromise=this.fetch.call(R,s,{method:"GET",headers:{Authorization:"Basic "+btoa(this.getMpConfig("token")+":"),traceparent:e}}).then((function(l){return this.markFetchComplete(),l.json().then((function(d){var h=d.flags;if(!h)throw new Error("No flags in API response");var o=new Map;f.each(h,(function(a,c){o.set(c,{key:a.variant_key,value:a.variant_value,experiment_id:a.experiment_id,is_experiment_active:a.is_experiment_active,is_qa_tester:a.is_qa_tester})})),this.flags=o,this._traceparent=e}).bind(this)).catch((function(d){this.markFetchComplete(),Xe.error(d)}).bind(this))}).bind(this)).catch((function(l){this.markFetchComplete(),Xe.error(l)}).bind(this)),this.fetchPromise},ae.prototype.markFetchComplete=function(){this._fetchInProgressStartTime?(this._fetchStartTime=this._fetchInProgressStartTime,this._fetchCompleteTime=Date.now(),this._fetchLatency=this._fetchCompleteTime-this._fetchStartTime,this._fetchInProgressStartTime=null):Xe.error("Fetch in progress started time not set, cannot mark fetch complete")},ae.prototype.getVariant=function(t,r){return this.fetchPromise?this.fetchPromise.then((function(){return this.getVariantSync(t,r)}).bind(this)).catch((function(e){return Xe.error(e),r})):new Promise((function(e){Xe.critical("Feature Flags not initialized"),e(r)}))},ae.prototype.getVariantSync=function(t,r){if(!this.areFlagsReady())return Xe.log("Flags not loaded yet"),r;var e=this.flags.get(t);return e?(this.trackFeatureCheck(t,e),e):(Xe.log('No flag found: "'+t+'"'),r)},ae.prototype.getVariantValue=function(t,r){return this.getVariant(t,{value:r}).then((function(e){return e.value})).catch((function(e){return Xe.error(e),r}))},ae.prototype.getFeatureData=function(t,r){return Xe.critical("mixpanel.flags.get_feature_data() is deprecated and will be removed in a future release. Use mixpanel.flags.get_variant_value() instead."),this.getVariantValue(t,r)},ae.prototype.getVariantValueSync=function(t,r){return this.getVariantSync(t,{value:r}).value},ae.prototype.isEnabled=function(t,r){return this.getVariantValue(t).then((function(){return this.isEnabledSync(t,r)}).bind(this)).catch((function(e){return Xe.error(e),r}))},ae.prototype.isEnabledSync=function(t,r){r=r||!1;var e=this.getVariantValueSync(t,r);return e!==!0&&e!==!1&&(Xe.error('Feature flag "'+t+'" value: '+e+" is not a boolean; returning fallback value: "+r),e=r),e},ae.prototype.trackFeatureCheck=function(t,r){if(!this.trackedFeatures.has(t)){this.trackedFeatures.add(t);var e={"Experiment name":t,"Variant name":r.key,$experiment_type:"feature_flag","Variant fetch start time":new Date(this._fetchStartTime).toISOString(),"Variant fetch complete time":new Date(this._fetchCompleteTime).toISOString(),"Variant fetch latency (ms)":this._fetchLatency,"Variant fetch traceparent":this._traceparent};r.experiment_id!=="undefined"&&(e.$experiment_id=r.experiment_id),r.is_experiment_active!=="undefined"&&(e.$is_experiment_active=r.is_experiment_active),r.is_qa_tester!=="undefined"&&(e.$is_qa_tester=r.is_qa_tester),this.track("$experiment_started",e)}},ae.prototype.minApisSupported=function(){return!!this.fetch&&typeof Promise<"u"&&typeof Map<"u"&&typeof Set<"u"},zu(ae),ae.prototype.are_flags_ready=ae.prototype.areFlagsReady,ae.prototype.get_variant=ae.prototype.getVariant,ae.prototype.get_variant_sync=ae.prototype.getVariantSync,ae.prototype.get_variant_value=ae.prototype.getVariantValue,ae.prototype.get_variant_value_sync=ae.prototype.getVariantValueSync,ae.prototype.is_enabled=ae.prototype.isEnabled,ae.prototype.is_enabled_sync=ae.prototype.isEnabledSync,ae.prototype.update_context=ae.prototype.updateContext,ae.prototype.get_feature_data=ae.prototype.getFeatureData;var Et=function(){};Et.prototype.create_properties=function(){},Et.prototype.event_handler=function(){},Et.prototype.after_track_handler=function(){},Et.prototype.init=function(t){return this.mp=t,this},Et.prototype.track=function(t,r,e,n){var i=this,s=f.dom_query(t);if(s.length!==0)return f.each(s,(function(l){f.register_event(l,this.override_event,(function(d){var h={},o=i.create_properties(e,this),a=i.mp.get_config("track_links_timeout");i.event_handler(d,this,h),window.setTimeout(i.track_callback(n,o,h,!0),a),i.mp.track(r,o,i.track_callback(n,o,h))}))}),this),!0;se.error("The DOM query ("+t+") returned 0 elements")},Et.prototype.track_callback=function(t,r,e,n){n=n||!1;var i=this;return function(){e.callback_fired||(e.callback_fired=!0,t&&t(n,r)===!1||i.after_track_handler(r,e,n))}},Et.prototype.create_properties=function(t,r){return typeof t=="function"?t(r):f.extend({},t)};var _r=function(){this.override_event="click"};f.inherit(_r,Et),_r.prototype.create_properties=function(t,r){var e=_r.superclass.create_properties.apply(this,arguments);return r.href&&(e.url=r.href),e},_r.prototype.event_handler=function(t,r,e){e.new_tab=t.which===2||t.metaKey||t.ctrlKey||r.target==="_blank",e.href=r.href,e.new_tab||t.preventDefault()},_r.prototype.after_track_handler=function(t,r){r.new_tab||setTimeout((function(){window.location=r.href}),0)};var ci=function(){this.override_event="submit"};f.inherit(ci,Et),ci.prototype.event_handler=function(t,r,e){e.element=r,t.preventDefault()},ci.prototype.after_track_handler=function(t,r){setTimeout((function(){r.element.submit()}),0)};var jt="$set",Er="$set_once",lt="$unset",Zt="$add",vt="$append",Jt="$union",It="$remove",fd={set_action:function(t,r){var e={},n={};return f.isObject(t)?f.each(t,(function(i,s){this._is_reserved_property(s)||(n[s]=i)}),this):n[t]=r,e[jt]=n,e},unset_action:function(t){var r={},e=[];return f.isArray(t)||(t=[t]),f.each(t,(function(n){this._is_reserved_property(n)||e.push(n)}),this),r[lt]=e,r},set_once_action:function(t,r){var e={},n={};return f.isObject(t)?f.each(t,(function(i,s){this._is_reserved_property(s)||(n[s]=i)}),this):n[t]=r,e[Er]=n,e},union_action:function(t,r){var e={},n={};return f.isObject(t)?f.each(t,(function(i,s){this._is_reserved_property(s)||(n[s]=f.isArray(i)?i:[i])}),this):n[t]=f.isArray(r)?r:[r],e[Jt]=n,e},append_action:function(t,r){var e={},n={};return f.isObject(t)?f.each(t,(function(i,s){this._is_reserved_property(s)||(n[s]=i)}),this):n[t]=r,e[vt]=n,e},remove_action:function(t,r){var e={},n={};return f.isObject(t)?f.each(t,(function(i,s){this._is_reserved_property(s)||(n[s]=i)}),this):n[t]=r,e[It]=n,e},delete_action:function(){var t={$delete:""};return t}},we=function(){};f.extend(we.prototype,fd),we.prototype._init=function(t,r,e){this._mixpanel=t,this._group_key=r,this._group_id=e},we.prototype.set=lr((function(t,r,e){var n=this.set_action(t,r);return f.isObject(t)&&(e=r),this._send_request(n,e)})),we.prototype.set_once=lr((function(t,r,e){var n=this.set_once_action(t,r);return f.isObject(t)&&(e=r),this._send_request(n,e)})),we.prototype.unset=lr((function(t,r){var e=this.unset_action(t);return this._send_request(e,r)})),we.prototype.union=lr((function(t,r,e){f.isObject(t)&&(e=r);var n=this.union_action(t,r);return this._send_request(n,e)})),we.prototype.delete=lr((function(t){var r=this.delete_action();return this._send_request(r,t)})),we.prototype.remove=lr((function(t,r,e){var n=this.remove_action(t,r);return this._send_request(n,e)})),we.prototype._send_request=function(t,r){t.$group_key=this._group_key,t.$group_id=this._group_id,t.$token=this._get_config("token");var e=f.encodeDates(t);return this._mixpanel._track_or_batch({type:"groups",data:e,endpoint:this._mixpanel.get_api_host("groups")+"/"+this._get_config("api_routes").groups,batcher:this._mixpanel.request_batchers.groups},r)},we.prototype._is_reserved_property=function(t){return t==="$group_key"||t==="$group_id"},we.prototype._get_config=function(t){return this._mixpanel.get_config(t)},we.prototype.toString=function(){return this._mixpanel.toString()+".group."+this._group_key+"."+this._group_id},we.prototype.remove=we.prototype.remove,we.prototype.set=we.prototype.set,we.prototype.set_once=we.prototype.set_once,we.prototype.union=we.prototype.union,we.prototype.unset=we.prototype.unset,we.prototype.toString=we.prototype.toString;var ee=function(){};f.extend(ee.prototype,fd),ee.prototype._init=function(t){this._mixpanel=t},ee.prototype.set=Mt((function(t,r,e){var n=this.set_action(t,r);return f.isObject(t)&&(e=r),this._get_config("save_referrer")&&this._mixpanel.persistence.update_referrer_info(document.referrer),n[jt]=f.extend({},f.info.people_properties(),n[jt]),this._send_request(n,e)})),ee.prototype.set_once=Mt((function(t,r,e){var n=this.set_once_action(t,r);return f.isObject(t)&&(e=r),this._send_request(n,e)})),ee.prototype.unset=Mt((function(t,r){var e=this.unset_action(t);return this._send_request(e,r)})),ee.prototype.increment=Mt((function(t,r,e){var n={},i={};return f.isObject(t)?(f.each(t,(function(s,l){if(!this._is_reserved_property(l)){if(isNaN(parseFloat(s)))return void se.error("Invalid increment value passed to mixpanel.people.increment - must be a number");i[l]=s}}),this),e=r):(f.isUndefined(r)&&(r=1),i[t]=r),n[Zt]=i,this._send_request(n,e)})),ee.prototype.append=Mt((function(t,r,e){f.isObject(t)&&(e=r);var n=this.append_action(t,r);return this._send_request(n,e)})),ee.prototype.remove=Mt((function(t,r,e){f.isObject(t)&&(e=r);var n=this.remove_action(t,r);return this._send_request(n,e)})),ee.prototype.union=Mt((function(t,r,e){f.isObject(t)&&(e=r);var n=this.union_action(t,r);return this._send_request(n,e)})),ee.prototype.track_charge=Mt((function(){se.error("mixpanel.people.track_charge() is deprecated and no longer has any effect.")})),ee.prototype.clear_charges=function(t){return this.set("$transactions",[],t)},ee.prototype.delete_user=function(){if(this._identify_called()){var t={$delete:this._mixpanel.get_distinct_id()};return this._send_request(t)}se.error("mixpanel.people.delete_user() requires you to call identify() first")},ee.prototype.toString=function(){return this._mixpanel.toString()+".people"},ee.prototype._send_request=function(t,r){t.$token=this._get_config("token"),t.$distinct_id=this._mixpanel.get_distinct_id();var e=this._mixpanel.get_property("$device_id"),n=this._mixpanel.get_property("$user_id"),i=this._mixpanel.get_property("$had_persisted_distinct_id");e&&(t.$device_id=e),n&&(t.$user_id=n),i&&(t.$had_persisted_distinct_id=i);var s=f.encodeDates(t);return this._identify_called()?this._mixpanel._track_or_batch({type:"people",data:s,endpoint:this._mixpanel.get_api_host("people")+"/"+this._get_config("api_routes").engage,batcher:this._mixpanel.request_batchers.people},r):(this._enqueue(t),f.isUndefined(r)||(this._get_config("verbose")?r({status:-1,error:null}):r(-1)),f.truncate(s,255))},ee.prototype._get_config=function(t){return this._mixpanel.get_config(t)},ee.prototype._identify_called=function(){return this._mixpanel._flags.identify_called===!0},ee.prototype._enqueue=function(t){jt in t?this._mixpanel.persistence._add_to_people_queue(jt,t):Er in t?this._mixpanel.persistence._add_to_people_queue(Er,t):lt in t?this._mixpanel.persistence._add_to_people_queue(lt,t):Zt in t?this._mixpanel.persistence._add_to_people_queue(Zt,t):vt in t?this._mixpanel.persistence._add_to_people_queue(vt,t):It in t?this._mixpanel.persistence._add_to_people_queue(It,t):Jt in t?this._mixpanel.persistence._add_to_people_queue(Jt,t):se.error("Invalid call to _enqueue():",t)},ee.prototype._flush_one_queue=function(t,r,e,n){var i=this,s=f.extend({},this._mixpanel.persistence.load_queue(t)),l=s;f.isUndefined(s)||!f.isObject(s)||f.isEmptyObject(s)||(i._mixpanel.persistence._pop_from_people_queue(t,s),i._mixpanel.persistence.save(),n&&(l=n(s)),r.call(i,l,(function(d,h){d===0&&i._mixpanel.persistence._add_to_people_queue(t,s),f.isUndefined(e)||e(d,h)})))},ee.prototype._flush=function(t,r,e,n,i,s,l){var d=this;this._flush_one_queue(jt,this.set,t),this._flush_one_queue(Er,this.set_once,n),this._flush_one_queue(lt,this.unset,s,(function(g){return f.keys(g)})),this._flush_one_queue(Zt,this.increment,r),this._flush_one_queue(Jt,this.union,i);var h=this._mixpanel.persistence.load_queue(vt);if(!f.isUndefined(h)&&f.isArray(h)&&h.length)for(var o,a=function(g,v){g===0&&d._mixpanel.persistence._add_to_people_queue(vt,o),f.isUndefined(e)||e(g,v)},c=h.length-1;c>=0;c--)h=this._mixpanel.persistence.load_queue(vt),o=h.pop(),d._mixpanel.persistence.save(),f.isEmptyObject(o)||d.append(o,a);var u=this._mixpanel.persistence.load_queue(It);if(!f.isUndefined(u)&&f.isArray(u)&&u.length)for(var p,_=function(g,v){g===0&&d._mixpanel.persistence._add_to_people_queue(It,p),f.isUndefined(l)||l(g,v)},m=u.length-1;m>=0;m--)u=this._mixpanel.persistence.load_queue(It),p=u.pop(),d._mixpanel.persistence.save(),f.isEmptyObject(p)||d.remove(p,_)},ee.prototype._is_reserved_property=function(t){return t==="$distinct_id"||t==="$token"||t==="$device_id"||t==="$user_id"||t==="$had_persisted_distinct_id"},ee.prototype.set=ee.prototype.set,ee.prototype.set_once=ee.prototype.set_once,ee.prototype.unset=ee.prototype.unset,ee.prototype.increment=ee.prototype.increment,ee.prototype.append=ee.prototype.append,ee.prototype.remove=ee.prototype.remove,ee.prototype.union=ee.prototype.union,ee.prototype.track_charge=ee.prototype.track_charge,ee.prototype.clear_charges=ee.prototype.clear_charges,ee.prototype.delete_user=ee.prototype.delete_user,ee.prototype.toString=ee.prototype.toString;var wi,pa="__mps",fa="__mpso",ma="__mpus",_a="__mpa",ga="__mpap",va="__mpr",ya="__mpu",md="$people_distinct_id",li="__alias",zr="__timers",Jm=[pa,fa,ma,_a,ga,va,ya,md,li,zr],ne=function(t){this.props={},this.campaign_params_saved=!1,t.persistence_name?this.name="mp_"+t.persistence_name:this.name="mp_"+t.token+"_mixpanel";var r=t.persistence;r!=="cookie"&&r!=="localStorage"&&(se.critical("Unknown persistence type "+r+"; falling back to cookie"),r=t.persistence="cookie"),r==="localStorage"&&f.localStorage.is_supported()?this.storage=f.localStorage:this.storage=f.cookie,this.load(),this.update_config(t),this.upgrade(),this.save()};ne.prototype.properties=function(){var t={};return this.load(),f.each(this.props,(function(r,e){f.include(Jm,e)||(t[e]=r)})),t},ne.prototype.load=function(){if(!this.disabled){var t=this.storage.parse(this.name);t&&(this.props=f.extend({},t))}},ne.prototype.upgrade=function(){var t,r;this.storage===f.localStorage?(t=f.cookie.parse(this.name),f.cookie.remove(this.name),f.cookie.remove(this.name,!0),t&&this.register_once(t)):this.storage===f.cookie&&(r=f.localStorage.parse(this.name),f.localStorage.remove(this.name),r&&this.register_once(r))},ne.prototype.save=function(){this.disabled||this.storage.set(this.name,Sr(this.props),this.expire_days,this.cross_subdomain,this.secure,this.cross_site,this.cookie_domain)},ne.prototype.load_prop=function(t){return this.load(),this.props[t]},ne.prototype.remove=function(){this.storage.remove(this.name,!1,this.cookie_domain),this.storage.remove(this.name,!0,this.cookie_domain)},ne.prototype.clear=function(){this.remove(),this.props={}},ne.prototype.register_once=function(t,r,e){return!!f.isObject(t)&&(r===void 0&&(r="None"),this.expire_days=e===void 0?this.default_expiry:e,this.load(),f.each(t,(function(n,i){this.props.hasOwnProperty(i)&&this.props[i]!==r||(this.props[i]=n)}),this),this.save(),!0)},ne.prototype.register=function(t,r){return!!f.isObject(t)&&(this.expire_days=r===void 0?this.default_expiry:r,this.load(),f.extend(this.props,t),this.save(),!0)},ne.prototype.unregister=function(t){this.load(),t in this.props&&(delete this.props[t],this.save())},ne.prototype.update_search_keyword=function(t){this.register(f.info.searchInfo(t))},ne.prototype.update_referrer_info=function(t){this.register_once({$initial_referrer:t||"$direct",$initial_referring_domain:f.info.referringDomain(t)||"$direct"},"")},ne.prototype.get_referrer_info=function(){return f.strip_empty_properties({$initial_referrer:this.props.$initial_referrer,$initial_referring_domain:this.props.$initial_referring_domain})},ne.prototype.update_config=function(t){this.default_expiry=this.expire_days=t.cookie_expiration,this.set_disabled(t.disable_persistence),this.set_cookie_domain(t.cookie_domain),this.set_cross_site(t.cross_site_cookie),this.set_cross_subdomain(t.cross_subdomain_cookie),this.set_secure(t.secure_cookie)},ne.prototype.set_disabled=function(t){this.disabled=t,this.disabled?this.remove():this.save()},ne.prototype.set_cookie_domain=function(t){t!==this.cookie_domain&&(this.remove(),this.cookie_domain=t,this.save())},ne.prototype.set_cross_site=function(t){t!==this.cross_site&&(this.cross_site=t,this.remove(),this.save())},ne.prototype.set_cross_subdomain=function(t){t!==this.cross_subdomain&&(this.cross_subdomain=t,this.remove(),this.save())},ne.prototype.get_cross_subdomain=function(){return this.cross_subdomain},ne.prototype.set_secure=function(t){t!==this.secure&&(this.secure=!!t,this.remove(),this.save())},ne.prototype._add_to_people_queue=function(t,r){var e=this._get_queue_key(t),n=r[t],i=this._get_or_create_queue(jt),s=this._get_or_create_queue(Er),l=this._get_or_create_queue(lt),d=this._get_or_create_queue(Zt),h=this._get_or_create_queue(Jt),o=this._get_or_create_queue(It,[]),a=this._get_or_create_queue(vt,[]);e===pa?(f.extend(i,n),this._pop_from_people_queue(Zt,n),this._pop_from_people_queue(Jt,n),this._pop_from_people_queue(lt,n)):e===fa?(f.each(n,(function(c,u){u in s||(s[u]=c)})),this._pop_from_people_queue(lt,n)):e===ma?f.each(n,(function(c){f.each([i,s,d,h],(function(u){c in u&&delete u[c]})),f.each(a,(function(u){c in u&&delete u[c]})),l[c]=!0})):e===_a?(f.each(n,(function(c,u){u in i?i[u]+=c:(u in d||(d[u]=0),d[u]+=c)}),this),this._pop_from_people_queue(lt,n)):e===ya?(f.each(n,(function(c,u){f.isArray(c)&&(u in h||(h[u]=[]),f.each(c,(function(p){f.include(h[u],p)||h[u].push(p)})))})),this._pop_from_people_queue(lt,n)):e===va?(o.push(n),this._pop_from_people_queue(vt,n)):e===ga&&(a.push(n),this._pop_from_people_queue(lt,n)),se.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):"),se.log(r),this.save()},ne.prototype._pop_from_people_queue=function(t,r){var e=this.props[this._get_queue_key(t)];f.isUndefined(e)||f.each(r,(function(n,i){t===vt||t===It?f.each(e,(function(s){s[i]===n&&delete s[i]})):delete e[i]}),this)},ne.prototype.load_queue=function(t){return this.load_prop(this._get_queue_key(t))},ne.prototype._get_queue_key=function(t){return t===jt?pa:t===Er?fa:t===lt?ma:t===Zt?_a:t===vt?ga:t===It?va:t===Jt?ya:void se.error("Invalid queue:",t)},ne.prototype._get_or_create_queue=function(t,r){var e=this._get_queue_key(t);return r=f.isUndefined(r)?{}:r,this.props[e]||(this.props[e]=r)},ne.prototype.set_event_timer=function(t,r){var e=this.load_prop(zr)||{};e[t]=r,this.props[zr]=e,this.save()},ne.prototype.remove_event_timer=function(t){var r=(this.load_prop(zr)||{})[t];return f.isUndefined(r)||(delete this.props[zr][t],this.save()),r};var We,_d=function(t,r){throw new Error(t+" not available in this build.")},it="mixpanel",gd="base64",ba="$device:",gr=R.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest,vd=!gr&&_t.indexOf("MSIE")===-1&&_t.indexOf("Mozilla")===-1,ui=null;Rt.sendBeacon&&(ui=function(){return Rt.sendBeacon.apply(Rt,arguments)});var yd={track:"track/",engage:"engage/",groups:"groups/",record:"record/",flags:"flags/"},ul={api_host:"https://api-js.mixpanel.com",api_hosts:{},api_routes:yd,api_extra_query_params:{},api_method:"POST",api_transport:"XHR",api_payload_format:gd,app_host:"https://mixpanel.com",autocapture:!1,cdn:"https://cdn.mxpnl.com",cross_site_cookie:!1,cross_subdomain_cookie:!0,error_reporter:qt,flags:!1,persistence:"cookie",persistence_name:"",cookie_domain:"",cookie_name:"",loaded:qt,mp_loader:null,track_marketing:!0,track_pageview:!1,skip_first_touch_marketing:!1,store_google:!0,stop_utm_persistence:!1,save_referrer:!0,test:!1,verbose:!1,img:!1,debug:!1,track_links_timeout:300,cookie_expiration:365,upgrade:!1,disable_persistence:!1,disable_cookie:!1,secure_cookie:!1,ip:!0,opt_out_tracking_by_default:!1,opt_out_persistence_by_default:!1,opt_out_tracking_persistence_type:"localStorage",opt_out_tracking_cookie_prefix:null,property_blacklist:[],xhr_headers:{},ignore_dnt:!1,batch_requests:!0,batch_size:50,batch_flush_interval_ms:5e3,batch_request_timeout_ms:9e4,batch_autostart:!0,hooks:{},record_block_class:new RegExp("^(mp-block|fs-exclude|amp-block|rr-block|ph-no-capture)$"),record_block_selector:"img, video, audio",record_canvas:!1,record_collect_fonts:!1,record_console:!0,record_heatmap_data:!1,record_idle_timeout_ms:18e5,record_mask_text_class:new RegExp("^(mp-mask|fs-mask|amp-mask|rr-mask|ph-mask)$"),record_mask_text_selector:"*",record_max_ms:Jr,record_min_ms:0,record_sessions_percent:0,recorder_src:"https://cdn.mxpnl.com/libs/mixpanel-recorder.min.js"},bd=!1,S=function(){},ka=function(t,r,e){var n,i=e===it?We:We[e];if(i&&wi===0)n=i;else{if(i&&!f.isArray(i))return void se.error("You have already initialized "+e);n=new S}if(n._cached_groups={},n._init(t,r,e),n.people=new ee,n.people._init(n),!n.get_config("skip_first_touch_marketing")){var s=f.info.campaignParams(null),l={},d=!1;f.each(s,(function(o,a){l["initial_"+a]=o,o&&(d=!0)})),d&&n.people.set_once(l)}ot.DEBUG=ot.DEBUG||n.get_config("debug");var h=wi===0?"module":"snippet";return R.dispatchEvent(new R.CustomEvent("$mp_sdk_to_extension_event",{detail:{instance:n,source:h,token:t,name:e,info:f.info}})),!f.isUndefined(i)&&f.isArray(i)&&(n._execute_array.call(n.people,i.people),n._execute_array(i)),n};S.prototype.init=function(t,r,e){if(f.isUndefined(e))this.report_error("You must name your new library: init(token, config, name)");else{if(e!==it){var n=ka(t,r,e);return We[e]=n,n._loaded(),n}this.report_error("You must initialize the main mixpanel object right after you include the Mixpanel js snippet")}},S.prototype._init=function(t,r,e){r=r||{},this.__loaded=!0,this.config={};var n={};if("api_payload_format"in r||(r.api_host||ul.api_host).match(/\.mixpanel\.com/)&&(n.api_payload_format="json"),this.hooks={},this.set_config(f.extend({},ul,n,r,{name:e,token:t,callback_fn:(e===it?e:it+"."+e)+"._jsc"})),this._jsc=qt,this.__dom_loaded_queue=[],this.__request_queue=[],this.__disabled_events=[],this._flags={disable_all_events:!1,identify_called:!1},this.request_batchers={},this._batch_requests=this.get_config("batch_requests"),this._batch_requests)if(f.localStorage.is_supported(!0)&&gr){if(this.init_batchers(),ui&&R.addEventListener){var i=f.bind((function(){this.request_batchers.events.stopped||this.request_batchers.events.flush({unloading:!0})}),this);R.addEventListener("pagehide",(function(l){l.persisted&&i()})),R.addEventListener("visibilitychange",(function(){Q.visibilityState==="hidden"&&i()}))}}else this._batch_requests=!1,se.log("Turning off Mixpanel request-queueing; needs XHR and localStorage support"),f.each(this.get_batcher_configs(),(function(l){se.log("Clearing batch queue "+l.queue_key),f.localStorage.remove(l.queue_key)}));this.persistence=this.cookie=new ne(this.config),this.unpersisted_superprops={},this._gdpr_init();var s=f.UUID();this.get_distinct_id()||this.register_once({distinct_id:ba+s,$device_id:s},""),this.flags=new ae({getFullApiRoute:f.bind((function(){return this.get_api_host("flags")+"/"+this.get_config("api_routes").flags}),this),getConfigFunc:f.bind(this.get_config,this),setConfigFunc:f.bind(this.set_config,this),getPropertyFunc:f.bind(this.get_property,this),trackingFunc:f.bind(this.track,this)}),this.flags.init(),this.flags=this.flags,this.autocapture=new xe(this),this.autocapture.init(),this._init_tab_id(),this._check_and_start_session_recording()},S.prototype._init_tab_id=function(){if(this.get_config("disable_persistence"))se.log("Tab ID initialization skipped due to disable_persistence config");else if(f.sessionStorage.is_supported())try{var t=this.get_config("name")+"_"+this.get_config("token"),r="mp_tab_id_"+t,e="mp_gen_new_tab_id_"+t;!f.sessionStorage.get(e)&&f.sessionStorage.get(r)||f.sessionStorage.set(r,"$tab-"+f.UUID()),f.sessionStorage.set(e,"1"),this.tab_id=f.sessionStorage.get(r),R.addEventListener("beforeunload",(function(){f.sessionStorage.remove(e)}))}catch(n){this.report_error("Error initializing tab id",n)}else this.report_error("Session storage is not supported, cannot keep track of unique tab ID.")},S.prototype.get_tab_id=function(){return this.tab_id||null},S.prototype._should_load_recorder=function(){if(this.get_config("disable_persistence"))return se.log("Load recorder check skipped due to disable_persistence config"),Promise.resolve(!1);var t=new ct(Wa),r=this.get_tab_id();return t.init().then((function(){return t.getAll()})).then((function(e){for(var n=0;n<e.length;n++)if(na(e[n])||e[n].tabId===r)return!0;return!1})).catch(f.bind((function(e){this.report_error("Error checking recording registry",e)}),this))},S.prototype._check_and_start_session_recording=Ft((function(t){if(R.MutationObserver){var r=f.bind((function(n){var i=f.bind((function(){this._recorder=this._recorder||new R.__mp_recorder(this),this._recorder.resumeRecording(n)}),this);f.isUndefined(R.__mp_recorder)?_d(this.get_config("recorder_src"),i):i()}),this),e=this.get_config("record_sessions_percent")>0&&100*Math.random()<=this.get_config("record_sessions_percent");t||e?r(!0):this._should_load_recorder().then((function(n){n&&r(!1)}))}else se.critical("Browser does not support MutationObserver; skipping session recording")})),S.prototype.start_session_recording=function(){this._check_and_start_session_recording(!0)},S.prototype.stop_session_recording=function(){return this._recorder?this._recorder.stopRecording():Promise.resolve()},S.prototype.pause_session_recording=function(){return this._recorder?this._recorder.pauseRecording():Promise.resolve()},S.prototype.resume_session_recording=function(){return this._recorder?this._recorder.resumeRecording():Promise.resolve()},S.prototype.is_recording_heatmap_data=function(){return this._get_session_replay_id()&&this.get_config("record_heatmap_data")},S.prototype.get_session_recording_properties=function(){var t={},r=this._get_session_replay_id();return r&&(t.$mp_replay_id=r),t},S.prototype.get_session_replay_url=function(){var t=null,r=this._get_session_replay_id();return r&&(t="https://mixpanel.com/projects/replay-redirect?"+f.HTTPBuildQuery({replay_id:r,distinct_id:this.get_distinct_id(),token:this.get_config("token")})),t},S.prototype._get_session_replay_id=function(){var t=null;return this._recorder&&(t=this._recorder.replayId),t||null},S.prototype.__get_recorder=function(){return this._recorder},S.prototype._loaded=function(){if(this.get_config("loaded")(this),this._set_default_superprops(),this.people.set_once(this.persistence.get_referrer_info()),this.get_config("store_google")&&this.get_config("stop_utm_persistence")){var t=f.info.campaignParams(null);f.each(t,(function(r,e){this.unregister(e)}).bind(this))}},S.prototype._set_default_superprops=function(){this.persistence.update_search_keyword(Q.referrer),this.get_config("store_google")&&!this.get_config("stop_utm_persistence")&&this.register(f.info.campaignParams()),this.get_config("save_referrer")&&this.persistence.update_referrer_info(Q.referrer)},S.prototype._dom_loaded=function(){f.each(this.__dom_loaded_queue,(function(t){this._track_dom.apply(this,t)}),this),this.has_opted_out_tracking()||f.each(this.__request_queue,(function(t){this._send_request.apply(this,t)}),this),delete this.__dom_loaded_queue,delete this.__request_queue},S.prototype._track_dom=function(t,r){if(this.get_config("img"))return this.report_error("You can't use DOM tracking functions with img = true."),!1;if(!bd)return this.__dom_loaded_queue.push([t,r]),!1;var e=new t().init(this);return e.track.apply(e,r)},S.prototype._prepare_callback=function(t,r){if(f.isUndefined(t))return null;if(gr)return function(s){t(s,r)};var e=this._jsc,n=""+Math.floor(1e8*Math.random()),i=this.get_config("callback_fn")+"["+n+"]";return e[n]=function(s){delete e[n],t(s,r)},i},S.prototype._send_request=function(t,r,e,n){var i=!0;if(vd)return this.__request_queue.push(arguments),i;var s={method:this.get_config("api_method"),transport:this.get_config("api_transport"),verbose:this.get_config("verbose")},l=null;n||!f.isFunction(e)&&typeof e!="string"||(n=e,e=null),e=f.extend(s,e||{}),gr||(e.method="GET");var d=e.method==="POST",h=ui&&d&&e.transport.toLowerCase()==="sendbeacon",o=e.verbose;r.verbose&&(o=!0),this.get_config("test")&&(r.test=1),o&&(r.verbose=1),this.get_config("img")&&(r.img=1),gr||(n?r.callback=n:(o||this.get_config("test"))&&(r.callback="(function(){})")),r.ip=this.get_config("ip")?1:0,r._=new Date().getTime().toString(),d&&(l="data="+encodeURIComponent(r.data),delete r.data),f.extend(r,this.get_config("api_extra_query_params")),t+="?"+f.HTTPBuildQuery(r);var a=this;if("img"in r){var c=Q.createElement("img");c.src=t,Q.body.appendChild(c)}else if(h){try{i=ui(t,l)}catch(v){a.report_error(v),i=!1}try{n&&n(i?1:0)}catch(v){a.report_error(v)}}else if(gr)try{var u=new XMLHttpRequest;u.open(e.method,t,!0);var p=this.get_config("xhr_headers");if(d&&(p["Content-Type"]="application/x-www-form-urlencoded"),f.each(p,(function(v,y){u.setRequestHeader(y,v)})),e.timeout_ms&&u.timeout!==void 0){u.timeout=e.timeout_ms;var _=new Date().getTime()}u.withCredentials=!0,u.onreadystatechange=function(){var v;if(u.readyState===4){if(u.status===200){if(n)if(o){var y;try{y=f.JSONDecode(u.responseText)}catch(E){if(a.report_error(E),!e.ignore_json_errors)return;y=u.responseText}n(y)}else n(Number(u.responseText))}else if(v=u.timeout&&!u.status&&new Date().getTime()-_>=u.timeout?"timeout":"Bad HTTP status: "+u.status+" "+u.statusText,a.report_error(v),n)if(o){var k=u.responseHeaders||{};n({status:0,httpStatusCode:u.status,error:v,retryAfter:k["Retry-After"]})}else n(0)}},u.send(l)}catch(v){a.report_error(v),i=!1}else{var m=Q.createElement("script");m.type="text/javascript",m.async=!0,m.defer=!0,m.src=t;var g=Q.getElementsByTagName("script")[0];g.parentNode.insertBefore(m,g)}return i},S.prototype._execute_array=function(t){var r,e=[],n=[],i=[];f.each(t,(function(l){l&&(r=l[0],f.isArray(r)?i.push(l):typeof l=="function"?l.call(this):f.isArray(l)&&r==="alias"?e.push(l):f.isArray(l)&&r.indexOf("track")!==-1&&typeof this[r]=="function"?i.push(l):n.push(l))}),this);var s=function(l,d){f.each(l,(function(h){if(f.isArray(h[0])){var o=d;f.each(h,(function(a){o=o[a[0]].apply(o,a.slice(1))}))}else this[h[0]].apply(this,h.slice(1))}),d)};s(e,this),s(n,this),s(i,this)},S.prototype.are_batchers_initialized=function(){return!!this.request_batchers.events},S.prototype.get_batcher_configs=function(){var t="__mpq_"+this.get_config("token");return this._batcher_configs=this._batcher_configs||{events:{type:"events",api_name:"track",queue_key:t+"_ev"},people:{type:"people",api_name:"engage",queue_key:t+"_pp"},groups:{type:"groups",api_name:"groups",queue_key:t+"_gr"}},this._batcher_configs},S.prototype.init_batchers=function(){if(!this.are_batchers_initialized()){var t=f.bind((function(e){return new nt(e.queue_key,{libConfig:this.config,errorReporter:this.get_config("error_reporter"),sendRequestFunc:f.bind((function(n,i,s){var l=this.get_config("api_routes");this._send_request(this.get_api_host(e.api_name)+"/"+l[e.api_name],this._encode_data_for_request(n),i,this._prepare_callback(s,n))}),this),beforeSendHook:f.bind((function(n){var i=this._run_hook("before_send_"+e.type,n);return i?i[0]:null}),this),stopAllBatchingFunc:f.bind(this.stop_batch_senders,this),usePersistence:!0})}),this),r=this.get_batcher_configs();this.request_batchers={events:t(r.events),people:t(r.people),groups:t(r.groups)}}this.get_config("batch_autostart")&&this.start_batch_senders()},S.prototype.start_batch_senders=function(){this._batchers_were_started=!0,this.are_batchers_initialized()&&(this._batch_requests=!0,f.each(this.request_batchers,(function(t){t.start()})))},S.prototype.stop_batch_senders=function(){this._batch_requests=!1,f.each(this.request_batchers,(function(t){t.stop(),t.clear()}))},S.prototype.push=function(t){this._execute_array([t])},S.prototype.disable=function(t){t===void 0?this._flags.disable_all_events=!0:this.__disabled_events=this.__disabled_events.concat(t)},S.prototype._encode_data_for_request=function(t){var r=Sr(t);return this.get_config("api_payload_format")===gd&&(r=f.base64Encode(r)),{data:r}},S.prototype._track_or_batch=function(t,r){var e=f.truncate(t.data,255),n=t.endpoint,i=t.batcher,s=t.should_send_immediately,l=t.send_request_options||{};r=r||qt;var d=!0,h=f.bind((function(){return l.skip_hooks||(e=this._run_hook("before_send_"+t.type,e))&&(e=e[0]),e?(se.log("MIXPANEL REQUEST:"),se.log(e),this._send_request(n,this._encode_data_for_request(e),l,this._prepare_callback(r,e))):null}),this);return this._batch_requests&&!s?i.enqueue(e).then((function(o){o?r(1,e):h()})):d=h(),d&&e},S.prototype.track=Ft((function(t,r,e,n){var i;if(!e||!e.skip_hooks){if((i=this._run_hook("before_track",t,r))===null)return;t=i[0],r=i[1]}n||typeof e!="function"||(n=e,e=null);var s=(e=e||{}).transport;s&&(e.transport=s);var l=e.send_immediately;if(typeof n!="function"&&(n=qt),f.isUndefined(t))this.report_error("No event name provided to mixpanel.track");else{if(!this._event_is_disabled(t)){(r=f.extend({},r)).token=this.get_config("token");var d=this.persistence.remove_event_timer(t);if(!f.isUndefined(d)){var h=new Date().getTime()-d;r.$duration=parseFloat((h/1e3).toFixed(3))}this._set_default_superprops();var o=this.get_config("track_marketing")?f.info.marketingParams():{};r=f.extend({},f.info.properties({mp_loader:this.get_config("mp_loader")}),o,this.persistence.properties(),this.unpersisted_superprops,this.get_session_recording_properties(),r);var a=this.get_config("property_blacklist");f.isArray(a)?f.each(a,(function(u){delete r[u]})):this.report_error("Invalid value for property_blacklist config: "+a);var c={event:t,properties:r};return i=this._track_or_batch({type:"events",data:c,endpoint:this.get_api_host("events")+"/"+this.get_config("api_routes").track,batcher:this.request_batchers.events,should_send_immediately:l,send_request_options:e},n)}n(0)}})),S.prototype.set_group=Ft((function(t,r,e){f.isArray(r)||(r=[r]);var n={};return n[t]=r,this.register(n),this.people.set(t,r,e)})),S.prototype.add_group=Ft((function(t,r,e){var n=this.get_property(t),i={};return n===void 0?(i[t]=[r],this.register(i)):n.indexOf(r)===-1&&(n.push(r),i[t]=n,this.register(i)),this.people.union(t,r,e)})),S.prototype.remove_group=Ft((function(t,r,e){var n=this.get_property(t);if(n!==void 0){var i=n.indexOf(r);i>-1&&(n.splice(i,1),this.register({group_key:n})),n.length===0&&this.unregister(t)}return this.people.remove(t,r,e)})),S.prototype.track_with_groups=Ft((function(t,r,e,n){var i=f.extend({},r||{});return f.each(e,(function(s,l){s!=null&&(i[l]=s)})),this.track(t,i,n)})),S.prototype._create_map_key=function(t,r){return t+"_"+JSON.stringify(r)},S.prototype._remove_group_from_cache=function(t,r){delete this._cached_groups[this._create_map_key(t,r)]},S.prototype.get_group=function(t,r){var e=this._create_map_key(t,r),n=this._cached_groups[e];return n!==void 0&&n._group_key===t&&n._group_id===r||((n=new we)._init(this,t,r),this._cached_groups[e]=n),n},S.prototype.track_pageview=Ft((function(t,r){typeof t!="object"&&(t={});var e=(r=r||{}).event_name||"$mp_web_page_view",n=f.extend(f.info.mpPageViewProperties(),f.info.campaignParams(),f.info.clickParams()),i=f.extend({},n,t);return this.track(e,i)})),S.prototype.track_links=function(){return this._track_dom.call(this,_r,arguments)},S.prototype.track_forms=function(){return this._track_dom.call(this,ci,arguments)},S.prototype.time_event=function(t){f.isUndefined(t)?this.report_error("No event name provided to mixpanel.time_event"):this._event_is_disabled(t)||this.persistence.set_event_timer(t,new Date().getTime())};var Ym={persistent:!0},mo=function(t){var r;return r=f.isObject(t)?t:f.isUndefined(t)?{}:{days:t},f.extend({},Ym,r)};S.prototype.register=function(t,r){var e=this._run_hook("before_register",t,r);if(e!==null){t=e[0],r=e[1];var n=mo(r);n.persistent?this.persistence.register(t,n.days):f.extend(this.unpersisted_superprops,t)}},S.prototype.register_once=function(t,r,e){var n=this._run_hook("before_register_once",t,r,e);if(n!==null){t=n[0],r=n[1],e=n[2];var i=mo(e);i.persistent?this.persistence.register_once(t,r,i.days):(r===void 0&&(r="None"),f.each(t,(function(s,l){this.unpersisted_superprops.hasOwnProperty(l)&&this.unpersisted_superprops[l]!==r||(this.unpersisted_superprops[l]=s)}),this))}},S.prototype.unregister=function(t,r){var e=this._run_hook("before_unregister",t,r);e!==null&&(t=e[0],r=e[1],(r=mo(r)).persistent?this.persistence.unregister(t):delete this.unpersisted_superprops[t])},S.prototype._register_single=function(t,r){var e={};e[t]=r,this.register(e)},S.prototype.identify=function(t,r,e,n,i,s,l,d){var h=this._run_hook("before_identify",t);if(h===null)return-1;t=h[0];var o=this.get_distinct_id();if(t&&o!==t){if(typeof t=="string"&&t.indexOf(ba)===0)return this.report_error("distinct_id cannot have $device: prefix"),-1;this.register({$user_id:t})}if(!this.get_property("$device_id")){var a=o;this.register_once({$had_persisted_distinct_id:!0,$device_id:a},"")}t!==o&&t!==this.get_property(li)&&(this.unregister(li),this.register({distinct_id:t})),this._flags.identify_called=!0,this.people._flush(r,e,n,i,s,l,d),t!==o&&this.track("$identify",{distinct_id:t,$anon_distinct_id:o},{skip_hooks:!0}),t!==o&&this.flags.fetchFlags()},S.prototype.reset=function(){this.stop_session_recording(),this.persistence.clear(),this._flags.identify_called=!1;var t=f.UUID();this.register_once({distinct_id:ba+t,$device_id:t},""),this._check_and_start_session_recording()},S.prototype.get_distinct_id=function(){return this.get_property("distinct_id")},S.prototype.alias=function(t,r){if(t===this.get_property(md))return this.report_error("Attempting to create alias for existing People user - aborting."),-2;var e=this;return f.isUndefined(r)&&(r=this.get_distinct_id()),t!==r?(this._register_single(li,t),this.track("$create_alias",{alias:t,distinct_id:r},{skip_hooks:!0},(function(){e.identify(t)}))):(this.report_error("alias matches current distinct_id - skipping api call."),this.identify(t),-1)},S.prototype.name_tag=function(t){this._register_single("mp_name_tag",t)},S.prototype.set_config=function(t){f.isObject(t)&&(f.extend(this.config,t),t.batch_size&&f.each(this.request_batchers,(function(r){r.resetBatchSize()})),this.get_config("persistence_name")||(this.config.persistence_name=this.config.cookie_name),this.get_config("disable_persistence")||(this.config.disable_persistence=this.config.disable_cookie),this.persistence&&this.persistence.update_config(this.config),ot.DEBUG=ot.DEBUG||this.get_config("debug"),("autocapture"in t||"record_heatmap_data"in t)&&this.autocapture&&this.autocapture.init(),f.isObject(t.hooks)&&(this.hooks={},f.each(t.hooks,(function(r,e){if(f.isFunction(r))this.hooks[e]=[r];else if(f.isArray(r)){this.hooks[e]=[];for(var n=0;n<r.length;n++)f.isFunction(r[n])||se.critical("Invalid hook added. Hook is not a function"),this.hooks[e].push(r[n])}else se.critical("Invalid hooks added. Ensure that the hook values passed into config.hooks are functions or arrays of functions.")}),this)))},S.prototype.get_config=function(t){return this.config[t]},S.prototype._run_hook=function(t){var r=$t.call(arguments,1);return f.each(this.hooks[t],(function(e){if(r===null)return null;var n=e.apply(this,r);n===void 0?(this.report_error(t+" hook did not return a valid value"),r=null):(f.isArray(n)||(n=[n]),r.splice.apply(r,[0,n.length].concat(n)))}),this),r},S.prototype.get_property=function(t){return this.persistence.load_prop([t])},S.prototype.get_api_host=function(t){return this.get_config("api_hosts")[t]||this.get_config("api_host")},S.prototype.toString=function(){var t=this.get_config("name");return t!==it&&(t=it+"."+t),t},S.prototype._event_is_disabled=function(t){return f.isBlockedUA(_t)||this._flags.disable_all_events||f.include(this.__disabled_events,t)},S.prototype._gdpr_init=function(){this.get_config("opt_out_tracking_persistence_type")==="localStorage"&&f.localStorage.is_supported()&&(!this.has_opted_in_tracking()&&this.has_opted_in_tracking({persistence_type:"cookie"})&&this.opt_in_tracking({enable_persistence:!1}),!this.has_opted_out_tracking()&&this.has_opted_out_tracking({persistence_type:"cookie"})&&this.opt_out_tracking({clear_persistence:!1}),this.clear_opt_in_out_tracking({persistence_type:"cookie",enable_persistence:!1})),this.has_opted_out_tracking()?this._gdpr_update_persistence({clear_persistence:!0}):this.has_opted_in_tracking()||!this.get_config("opt_out_tracking_by_default")&&!f.cookie.get("mp_optout")||(f.cookie.remove("mp_optout"),this.opt_out_tracking({clear_persistence:this.get_config("opt_out_persistence_by_default")}))},S.prototype._gdpr_update_persistence=function(t){var r;if(t&&t.clear_persistence)r=!0;else{if(!t||!t.enable_persistence)return;r=!1}this.get_config("disable_persistence")||this.persistence.disabled===r||this.persistence.set_disabled(r),r?(this.stop_batch_senders(),this.stop_session_recording()):this._batchers_were_started&&this.start_batch_senders()},S.prototype._gdpr_call_func=function(t,r){return r=f.extend({track:f.bind(this.track,this),persistence_type:this.get_config("opt_out_tracking_persistence_type"),cookie_prefix:this.get_config("opt_out_tracking_cookie_prefix"),cookie_expiration:this.get_config("cookie_expiration"),cross_site_cookie:this.get_config("cross_site_cookie"),cross_subdomain_cookie:this.get_config("cross_subdomain_cookie"),cookie_domain:this.get_config("cookie_domain"),secure_cookie:this.get_config("secure_cookie"),ignore_dnt:this.get_config("ignore_dnt")},r),f.localStorage.is_supported()||(r.persistence_type="cookie"),t(this.get_config("token"),{track:r.track,trackEventName:r.track_event_name,trackProperties:r.track_properties,persistenceType:r.persistence_type,persistencePrefix:r.cookie_prefix,cookieDomain:r.cookie_domain,cookieExpiration:r.cookie_expiration,crossSiteCookie:r.cross_site_cookie,crossSubdomainCookie:r.cross_subdomain_cookie,secureCookie:r.secure_cookie,ignoreDnt:r.ignore_dnt})},S.prototype.opt_in_tracking=function(t){t=f.extend({enable_persistence:!0},t),this._gdpr_call_func(xm,t),this._gdpr_update_persistence(t)},S.prototype.opt_out_tracking=function(t){(t=f.extend({clear_persistence:!0,delete_user:!0},t)).delete_user&&this.people&&this.people._identify_called()&&(this.people.delete_user(),this.people.clear_charges()),this._gdpr_call_func(Om,t),this._gdpr_update_persistence(t)},S.prototype.has_opted_in_tracking=function(t){return this._gdpr_call_func(Dm,t)},S.prototype.has_opted_out_tracking=function(t){return this._gdpr_call_func($u,t)},S.prototype.clear_opt_in_out_tracking=function(t){t=f.extend({enable_persistence:!0},t),this._gdpr_call_func(Bm,t),this._gdpr_update_persistence(t)},S.prototype.report_error=function(t,r){se.error.apply(se.error,arguments);try{r||t instanceof Error||(t=new Error(t)),this.get_config("error_reporter")(t,r)}catch(e){se.error(e)}},S.prototype.add_hook=function(t,r){this.hooks[t]||(this.hooks[t]=[]),this.hooks[t].push(r)},S.prototype.remove_hook=function(t,r){var e;this.hooks[t]&&((e=this.hooks[t].indexOf(r))!==-1?this.hooks[t].splice(e,1):se.log("remove_hook failed. Matching hook was not found"))},S.prototype.init=S.prototype.init,S.prototype.reset=S.prototype.reset,S.prototype.disable=S.prototype.disable,S.prototype.time_event=S.prototype.time_event,S.prototype.track=S.prototype.track,S.prototype.track_links=S.prototype.track_links,S.prototype.track_forms=S.prototype.track_forms,S.prototype.track_pageview=S.prototype.track_pageview,S.prototype.register=S.prototype.register,S.prototype.register_once=S.prototype.register_once,S.prototype.unregister=S.prototype.unregister,S.prototype.identify=S.prototype.identify,S.prototype.alias=S.prototype.alias,S.prototype.name_tag=S.prototype.name_tag,S.prototype.set_config=S.prototype.set_config,S.prototype.get_config=S.prototype.get_config,S.prototype.get_api_host=S.prototype.get_api_host,S.prototype.get_property=S.prototype.get_property,S.prototype.get_distinct_id=S.prototype.get_distinct_id,S.prototype.toString=S.prototype.toString,S.prototype.opt_out_tracking=S.prototype.opt_out_tracking,S.prototype.opt_in_tracking=S.prototype.opt_in_tracking,S.prototype.has_opted_out_tracking=S.prototype.has_opted_out_tracking,S.prototype.has_opted_in_tracking=S.prototype.has_opted_in_tracking,S.prototype.clear_opt_in_out_tracking=S.prototype.clear_opt_in_out_tracking,S.prototype.get_group=S.prototype.get_group,S.prototype.set_group=S.prototype.set_group,S.prototype.add_group=S.prototype.add_group,S.prototype.remove_group=S.prototype.remove_group,S.prototype.add_hook=S.prototype.add_hook,S.prototype.remove_hook=S.prototype.remove_hook,S.prototype.track_with_groups=S.prototype.track_with_groups,S.prototype.start_batch_senders=S.prototype.start_batch_senders,S.prototype.stop_batch_senders=S.prototype.stop_batch_senders,S.prototype.start_session_recording=S.prototype.start_session_recording,S.prototype.stop_session_recording=S.prototype.stop_session_recording,S.prototype.pause_session_recording=S.prototype.pause_session_recording,S.prototype.resume_session_recording=S.prototype.resume_session_recording,S.prototype.get_session_recording_properties=S.prototype.get_session_recording_properties,S.prototype.get_session_replay_url=S.prototype.get_session_replay_url,S.prototype.get_tab_id=S.prototype.get_tab_id,S.prototype.DEFAULT_API_ROUTES=yd,S.prototype.__get_recorder=S.prototype.__get_recorder,ne.prototype.properties=ne.prototype.properties,ne.prototype.update_search_keyword=ne.prototype.update_search_keyword,ne.prototype.update_referrer_info=ne.prototype.update_referrer_info,ne.prototype.get_cross_subdomain=ne.prototype.get_cross_subdomain,ne.prototype.clear=ne.prototype.clear;var vr={},Xm=function(){We.init=function(t,r,e){if(e)return We[e]||(We[e]=vr[e]=ka(t,r,e),We[e]._loaded()),We[e];var n=We;vr[it]?n=vr[it]:t&&((n=ka(t,r,it))._loaded(),vr[it]=n),We=n,wi===1&&(R[it]=We),f.each(vr,(function(i,s){s!==it&&(We[s]=i)})),We._=f}},t_=(_d=function(t,r){r()},wi=0,We=new S,Xm(),We.init(),(function(){function t(){t.done||(t.done=!0,bd=!0,vd=!1,f.each(vr,(function(e){e._dom_loaded()})))}if(Q.addEventListener)Q.readyState==="complete"?t():Q.addEventListener("DOMContentLoaded",t,!1);else if(Q.attachEvent){Q.attachEvent("onreadystatechange",t);var r=!1;try{r=R.frameElement===null}catch{}Q.documentElement.doScroll&&r&&(function e(){try{Q.documentElement.doScroll("left")}catch{return void setTimeout(e,1)}t()})()}f.register_event(R,"load",t,!0)})(),We);export{t_ as m,e_ as r};