@zeniai/web-app-ui 5.3.63-dev → 5.3.64-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 (127) hide show
  1. package/dist/assets/{AccountMappingScreen-BRZHYOUR.js → AccountMappingScreen-xfXO279W.js} +2 -2
  2. package/dist/assets/{ActualMatchingMatchDetailScreen-CT_TfQgQ.js → ActualMatchingMatchDetailScreen-ByqHVLf7.js} +1 -1
  3. package/dist/assets/AddressRoutes-BWVJyPk8.js +1 -0
  4. package/dist/assets/{AddressScreen-CrINuapd.js → AddressScreen-CrPViFiu.js} +2 -2
  5. package/dist/assets/{AiCfoScreen-BXw0LDjo.js → AiCfoScreen-DXsXYKZU.js} +1 -1
  6. package/dist/assets/{AppDrawer-DZIMVdFc.js → AppDrawer-B2rHD8Zo.js} +1 -1
  7. package/dist/assets/{BillPayApprovalRoutes-Dp_PkbIk.js → BillPayApprovalRoutes-CMAUuUUB.js} +1 -1
  8. package/dist/assets/{BillPayRoutes-CUUjBefv.js → BillPayRoutes-Dmusj5HX.js} +1 -1
  9. package/dist/assets/{BusinessVerificationPageScreen-DFamYzxa.js → BusinessVerificationPageScreen-C-aPhqey.js} +2 -2
  10. package/dist/assets/CardsAiCfoScreen-CTX5PjYy.js +14 -0
  11. package/dist/assets/{ChargeCardRoutes-DzIBuJeY.js → ChargeCardRoutes-JBiL4Thy.js} +1 -1
  12. package/dist/assets/CompanyPassportScreen-Df3GjmsH.js +1 -0
  13. package/dist/assets/ConnectionAuthScreen-CRXLzdg9.js +11 -0
  14. package/dist/assets/CustomerOnboardingAuthScreen-DSYY256B.js +1 -0
  15. package/dist/assets/{CustomerOnboardingRoutes-CjmJGGJm.js → CustomerOnboardingRoutes-C2sAsjXY.js} +3 -3
  16. package/dist/assets/{DashboardRoutes-ByHBLKcB.js → DashboardRoutes-B3_TJQND.js} +4 -4
  17. package/dist/assets/{DefaultTenantHome-Dm9FOXup.js → DefaultTenantHome-4mMU5w7G.js} +1 -1
  18. package/dist/assets/{DomesticWireDetailScreen-086WQWRB.js → DomesticWireDetailScreen-DQXD1NSK.js} +3 -3
  19. package/dist/assets/{DrawerScreen-B5BqRZEJ.js → DrawerScreen-DyQejCID.js} +1 -1
  20. package/dist/assets/{EntityDetailRoutes-BuN3sXNp.js → EntityDetailRoutes-0npRYuOC.js} +1 -1
  21. package/dist/assets/{ExpenseAutomationRoutes-Ce3IicTe.js → ExpenseAutomationRoutes-SlF4KM3u.js} +7 -7
  22. package/dist/assets/FeaturePreviewScreen-OtBPdCPK.js +1 -0
  23. package/dist/assets/{HubSpotOAuthCallbackScreen-BRUwb2B6.js → HubSpotOAuthCallbackScreen-CtTG0u9D.js} +1 -1
  24. package/dist/assets/{InboxNotificationsProvider-x0fdv66l.js → InboxNotificationsProvider-CYNlrTK-.js} +1 -1
  25. package/dist/assets/InvoicingRoutes-DBwLj6Ir.js +2 -0
  26. package/dist/assets/{MagicLinkRoutes-C5BKMtwW.js → MagicLinkRoutes-D5UwoWcf.js} +8 -8
  27. package/dist/assets/{MagicLinkSignInScreen-9LYlxmop.js → MagicLinkSignInScreen-B_572HKC.js} +1 -1
  28. package/dist/assets/{MobileAppDrawer-DX2JnkbM.js → MobileAppDrawer-DLFLa7hS.js} +1 -1
  29. package/dist/assets/NotFoundScreen-DzxbROot.js +1 -0
  30. package/dist/assets/{NotificationRoutes-DICT3yoM.js → NotificationRoutes-D7MHUmyT.js} +1 -1
  31. package/dist/assets/{OAuthConsentScreen-BmiLDdxn.js → OAuthConsentScreen-iNKlAsfd.js} +1 -1
  32. package/dist/assets/{PandLWithForecastRoutes-DAq9XRB1.js → PandLWithForecastRoutes-COCZ3G6X.js} +1 -1
  33. package/dist/assets/{PaymentLinkScreen-Cz1wlNqO.js → PaymentLinkScreen-Bh4jK9uE.js} +9 -9
  34. package/dist/assets/{PeopleRoutes-DgYtveDU.js → PeopleRoutes-BkRUXc0D.js} +5 -5
  35. package/dist/assets/{PerformanceRoutes-B6iTINLg.js → PerformanceRoutes-BzDFWREu.js} +1 -1
  36. package/dist/assets/{Preview-Dz6yJNce.js → Preview-Cqz8sG2s.js} +1 -1
  37. package/dist/assets/{QBOConnectionScreen-D8eeXRWb.js → QBOConnectionScreen-DreC-yDW.js} +1 -1
  38. package/dist/assets/{ReimbursementApprovalRoutes-CE6y6IwA.js → ReimbursementApprovalRoutes-DPScUcq4.js} +1 -1
  39. package/dist/assets/{ReimbursementApprovalRuleDetailScreen-BT_O_PEv.js → ReimbursementApprovalRuleDetailScreen-BxglZgWl.js} +1 -1
  40. package/dist/assets/{ReimbursementRoutes-BmOT-3C-.js → ReimbursementRoutes-DveTyQyE.js} +4 -4
  41. package/dist/assets/{ReportsRoutes-CqUKv9Uh.js → ReportsRoutes-BZjyXdiB.js} +1 -1
  42. package/dist/assets/RewardsRoutes-zL93sOaR.js +1 -0
  43. package/dist/assets/{ScheduleDetailsPrepaidExpensesScreen-CLEogplJ.js → ScheduleDetailsPrepaidExpensesScreen-PbMzJVD9.js} +5 -5
  44. package/dist/assets/{ScreenRoutes-xDjhbdP1.js → ScreenRoutes-Bl2EONFe.js} +2 -2
  45. package/dist/assets/{SettingsRoutes-QcMcR-j3.js → SettingsRoutes-hveOvbi9.js} +4 -4
  46. package/dist/assets/{SetupPagesScreen-fuvb0IYd.js → SetupPagesScreen-B8kiMdZf.js} +5 -5
  47. package/dist/assets/SignInScreen-CGBu1NjI.js +1 -0
  48. package/dist/assets/SignOutScreen-D0F6FeVm.js +9 -0
  49. package/dist/assets/{TaskListScreen-C2urPjKT.js → TaskListScreen-Bi73r_uo.js} +2 -2
  50. package/dist/assets/{TaskRoutes-BuzkCbPW.js → TaskRoutes-DCW1uZnF.js} +2 -2
  51. package/dist/assets/TransactionDetailRoutes-CWMSCIXL.js +1 -0
  52. package/dist/assets/{TransactionDetailScreen-CQr1YyP0.js → TransactionDetailScreen-DVFrl6h2.js} +2 -2
  53. package/dist/assets/{TransactionListRoutes-BTidVr9Z.js → TransactionListRoutes-B3tJhd_n.js} +1 -1
  54. package/dist/assets/{TreasuryRoutes-CbD79DO8.js → TreasuryRoutes-BPVOZ6Bj.js} +5 -5
  55. package/dist/assets/{VendorsRoutes-CCYu89Uf.js → VendorsRoutes-CHDVO5Sr.js} +1 -1
  56. package/dist/assets/{WiseConfirmationScreen-B0HeU8Sh.js → WiseConfirmationScreen-Du3rEKnE.js} +1 -1
  57. package/dist/assets/{ZeniAccountRoutes-CoRmS3Mc.js → ZeniAccountRoutes-BzLWpyYJ.js} +9 -9
  58. package/dist/assets/{ZeniAccountStatementScreen-BnpFJ5jB.js → ZeniAccountStatementScreen-DaV7I7ku.js} +1 -1
  59. package/dist/assets/{accountMappingHelper-tmyjt9rr.js → accountMappingHelper-Gh8rpbjD.js} +1 -1
  60. package/dist/assets/analytics-S5MhEivL.js +68 -0
  61. package/dist/assets/{analyticsHelper-BEL0ra9X.js → analyticsHelper-Ch9SsWjb.js} +1 -1
  62. package/dist/assets/{core-CHD8T-IM.js → core-Cc7wW2EM.js} +1 -1
  63. package/dist/assets/{decodeURIComponentSafe-p_nrn8Pg.js → decodeURIComponentSafe-DhqIXi_U.js} +1 -1
  64. package/dist/assets/{dnd-Dwi6R-ey.js → dnd-DEyyKSEC.js} +1 -1
  65. package/dist/assets/{empty-CeRjDJvl.js → empty-6MFM8UPN.js} +1 -1
  66. package/dist/assets/{empty-CZC5CrVC.js → empty-CjY9w6q2.js} +1 -1
  67. package/dist/assets/{emptyVideoElement-BQ5qxpg6.js → emptyVideoElement-MGXFhhLz.js} +1 -1
  68. package/dist/assets/{epic-BW8jUHg5.js → epic-D9Y6xcsI.js} +1 -1
  69. package/dist/assets/{expenseAutomationHelper-kGR6VZFG.js → expenseAutomationHelper-iXuIUZiF.js} +1 -1
  70. package/dist/assets/{getLocaleForTenant-D-or0iZO.js → getLocaleForTenant-Bgt5rFzV.js} +1 -1
  71. package/dist/assets/{index-BVHBHjSe.js → index-2QCkbhu2.js} +1 -1
  72. package/dist/assets/{index-BMy5YH8G.js → index-BZ6qOKkD.js} +1 -1
  73. package/dist/assets/{index-yiW1aZfy.js → index-Cm43WhAF.js} +2 -2
  74. package/dist/assets/{index-CKiMoeFX.js → index-D2oCZR3F.js} +1 -1
  75. package/dist/assets/{index-XRUedCJ0.js → index-DpnxiqBj.js} +1 -1
  76. package/dist/assets/{index-C1KaIuMT.js → index-gtGWrJ79.js} +1 -1
  77. package/dist/assets/{index-w09kaOHP.js → index-ldlm2cjp.js} +1 -1
  78. package/dist/assets/{index-DKH4PK2B.js → index-vIt7RQvO.js} +4561 -4561
  79. package/dist/assets/{lexical-CMNdypK6.js → lexical-DXgKWO29.js} +1 -1
  80. package/dist/assets/{liveblocks-e6rGc1UF.js → liveblocks-CgHUgeBY.js} +1 -1
  81. package/dist/assets/{lottie-B778bt56.js → lottie-C1A2hiZE.js} +1 -1
  82. package/dist/assets/{mui-NTaF3UaY.js → mui-C4zFSCiU.js} +1 -1
  83. package/dist/assets/{pathToGoBack-3T3qt1CN.js → pathToGoBack-C17GqrA7.js} +1 -1
  84. package/dist/assets/{pdf-lib-CSbJ_JNk.js → pdf-lib-CsM74zBq.js} +1 -1
  85. package/dist/assets/{pdf-Bx92ZlM_.js → pdf-rXyPRm1U.js} +3 -3
  86. package/dist/assets/{plaid-DdTo7m1-.js → plaid-vsHcqLdj.js} +1 -1
  87. package/dist/assets/{pusher-TnSBrmnt.js → pusher-C0EhdUPA.js} +1 -1
  88. package/dist/assets/{react-BRi8TcMI.js → react-BU_8yW5D.js} +1 -1
  89. package/dist/assets/{react-Ci1ltUcy.js → react-CEepHjWP.js} +1 -1
  90. package/dist/assets/{react-Ba46BK4D.js → react-CzfY0Vx3.js} +1 -1
  91. package/dist/assets/{react-DJOUavGZ.js → react-DG8YneWb.js} +1 -1
  92. package/dist/assets/{react-B75Gnqob.js → react-Gc0eJCMR.js} +1 -1
  93. package/dist/assets/{react-COkaiBQo.js → react-Yy9ZuxR6.js} +1 -1
  94. package/dist/assets/{recharts-C6xUtcdL.js → recharts-DJGeJ2v_.js} +1 -1
  95. package/dist/assets/{routePaths-CGyE-cU7.js → routePaths-C0UIXwMQ.js} +1 -1
  96. package/dist/assets/{sentry-DsyKtMW2.js → sentry-DSWD_gIh.js} +1 -1
  97. package/dist/assets/{stripSplatSuffix-CKrdD9MQ.js → stripSplatSuffix-kLnY55Qt.js} +1 -1
  98. package/dist/assets/{url-Zl9uXQ4e.js → url-DCbpXgdk.js} +1 -1
  99. package/dist/assets/{url-ClJewK9Y.js → url-DUlo21cY.js} +1 -1
  100. package/dist/assets/{useActualMatchingMatchDetail-Cc17Q5Tv.js → useActualMatchingMatchDetail-CwcmHDQ8.js} +1 -1
  101. package/dist/assets/{useAiCfoDashboardSuggestedQuestionsChips-CHbHmZzx.js → useAiCfoDashboardSuggestedQuestionsChips-BFr557mr.js} +1 -1
  102. package/dist/assets/useAskAiCfoHostNavButtonProps-7-6nPEHY.js +1 -0
  103. package/dist/assets/{useChargeCardPusherEvents-BWi4_PP5.js → useChargeCardPusherEvents-BVr00Fos.js} +1 -1
  104. package/dist/assets/{useDeviceId-VsdzmSZI.js → useDeviceId-B5zol9VP.js} +1 -1
  105. package/dist/assets/{useEmailConnectResultRefresh-ClXdZp-6.js → useEmailConnectResultRefresh-HcMCYvt9.js} +1 -1
  106. package/dist/assets/{useInitialThreadRequest-DDr_z_RH.js → useInitialThreadRequest-D4Y8xhXu.js} +1 -1
  107. package/dist/assets/{useTaskManagerAccess-CUv6a62x.js → useTaskManagerAccess-BeNfkHpZ.js} +1 -1
  108. package/dist/assets/{useTaskManagerPusherEvents-DCIopLVZ.js → useTaskManagerPusherEvents-X_H33C0C.js} +1 -1
  109. package/dist/assets/{utils-CCA3F0sZ.js → utils-DiIEQ7_h.js} +1 -1
  110. package/dist/assets/{withTransactionSidePanel-B_xgLNm6.js → withTransactionSidePanel-DkQdwLfY.js} +4 -4
  111. package/dist/assets/{zeni-epic-state-BO3zdDfL.js → zeni-epic-state-BVJjEVAA.js} +3 -3
  112. package/dist/index.html +1 -1
  113. package/package.json +3 -3
  114. package/dist/assets/AddressRoutes-CisWqyoC.js +0 -1
  115. package/dist/assets/CardsAiCfoScreen-Cx5KkOYw.js +0 -14
  116. package/dist/assets/CompanyPassportScreen-CENbDnLW.js +0 -1
  117. package/dist/assets/ConnectionAuthScreen-DTyZxcME.js +0 -11
  118. package/dist/assets/CustomerOnboardingAuthScreen-zLmHJyqv.js +0 -1
  119. package/dist/assets/FeaturePreviewScreen-D54Nwanb.js +0 -1
  120. package/dist/assets/InvoicingRoutes-IQsFojD0.js +0 -2
  121. package/dist/assets/NotFoundScreen-CtgFRYZy.js +0 -1
  122. package/dist/assets/RewardsRoutes-D5CR9NnI.js +0 -1
  123. package/dist/assets/SignInScreen-ekGlkjLH.js +0 -1
  124. package/dist/assets/SignOutScreen-9NJIr2hr.js +0 -9
  125. package/dist/assets/TransactionDetailRoutes-D99Yv6kv.js +0 -1
  126. package/dist/assets/analytics-C3e3An3a.js +0 -68
  127. package/dist/assets/useAskAiCfoHostNavButtonProps-BcCbRGDK.js +0 -1
@@ -0,0 +1,68 @@
1
+ import"./sentry-DSWD_gIh.js";import{L as zt}from"./zeni-epic-state-BVJjEVAA.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new t.Error().stack;n&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[n]="46d233f7-b99f-4e5a-9364-0f2fb60b5697",t._sentryDebugIdIdentifier="sentry-dbid-46d233f7-b99f-4e5a-9364-0f2fb60b5697")}catch{}})();var os,as,ss={},Pn={},on={};function cs(){return os||(os=1,Object.defineProperty(on,"__esModule",{value:!0}),on.EVENTS_WITHOUT_SUPER_PROPERTIES=on.Event=void 0,(function(n){n.dashboard="Dashboard",n.cashBalance="Cash Balance",n.cardBalance="Card Balance",n.cashPosition="Cash Position",n.revenues="Revenues",n.operatingExpenses="Operating Expenses",n.topExpenses="Top Expenses",n.burnRate="Burn Rate",n.cashInCashOut="Cash In, Cash Out",n.howItWorks="How It Works",n.insights="Insights",n.brexAd="Brex Ad",n.companyPassport="Company Passport",n.addAddress="Add Address",n.editAddress="Edit Address",n.saveAddressClicked="Save Address Clicked",n.reports="Reports",n.profitAndLoss="Profit & Loss",n.balanceSheet="Balance Sheet",n.cashFlow="Cash Flow",n.profitAndLossWithForecast="Profit & Loss with Forecast",n.balanceSheetWithForecast="Balance Sheet with Forecast",n.cashFlowWithForecast="Cash Flow with Forecast",n.sidePanelClicked="Side Panel Clicked",n.transactionList="Transaction List",n.transactionDetails="Transaction Details",n.transactionDetailsSave="Transaction Details Save",n.transactionTypeUpdateTriggered="Transaction Type Update Triggered",n.transactionDetailReceiptOpened="Transaction Details Receipt Opened",n.transactionDetailReceiptDeleted="Attachment Deleted",n.transactionDetailReceiptAdded="Transaction Details Receipt Added",n.compareMode="Compare Mode",n.compareFilterChange="Compare Filter Change",n.compareFilterTimeframe="Compare Filter Timeframe",n.dateRangeFilter="Date Range Filter",n.timeframeSwitch="Timeframe Switch",n.graphBar="Graph Bar",n.cardStatementCloseDateClicked="Card Statement Close Date Clicked",n.cardStatementCloseDateSaved="Card Statement Close Date Saved",n.forecast="Forecast",n.forecastSwitch="Forecast Switch",n.forecastVsActualMode="Forecast vs Actual Mode",n.members="Members",n.inviteSent="Invite Sent",n.roleChanged="Role Changed",n.removeUserAccess="Remove User Access",n.resendInvite="Resend Invite",n.companySwitch="Company Switch",n.download="Download",n.sort="Sort",n.incomeTrend="Income Trend",n.spendTrend="Spend Trend",n.search="Search",n.login="Login",n.loginButton="Login Button",n.signInClick="Sign In click",n.signInViaGoogleMicrosoft="Sign In Via Google Microsoft",n.signInViaEmail="Sign In Via Email",n.signInLinkSent="Sign In Link Sent",n.loginSuccess="Login Success",n.loginFailure="Login Fail",n.logoutButton="Logout Button",n.logoutSuccess="Logout Success",n.logoutFailure="Logout Fail",n.sessionTimeoutPopupShown="Session Timeout Popup Shown",n.sessionTimeoutClicked="Session Timeout Clicked",n.sessionTimeoutAutoLogout="Session Timeout Auto Logout",n.reportGenerated="Report Generated",n.aiCFOPage="AI CFO Page",n.aiCFOChatScreenStateChanged="AI CFO Chat Screen State Changed",n.aiCFOChatSessionChanged="AI CFO Chat Session Changed",n.aiCFOChatSubmitted="AI CFO Chat Submitted",n.aiCFOChatFeedbackGiven="AI CFO Chat Feedback Given",n.aiCFOChatResponseGenerated="AI CFO Chat Response Generated",n.aiCFOChatAnswerGenerated="AI CFO Chat Answer Generated",n.aiCFOOnboardingScreenStateChanged="AI CFO Onboarding Screen State Changed",n.onboardingLinkClicked="Onboarding Invite Link Click",n.onboardingNeedHelp="Onboarding Need Help",n.onboardingInterimNeedHelp="Onboarding Interim Page Need Help",n.onboardingLandingNeedHelp="Onboarding Landing Page Need Help",n.onboardingPage="Onboarding Page",n.onboardingInterimPage="Onboarding Interim Page",n.onboardingLandingPage="Onboarding Landing Page",n.onboardingQBOConnect="Onboarding QBO Connect Clicked",n.onboardingSaveQBOConnection="Onboarding Save QBO Connection",n.onboardingClickUpdatePaymentDetails="Onboarding Landing Page Update Payment Details",n.onboardingSkipAndSave="Onboarding skip (save details if any) and activate dashboard",n.onboardingCompanyOfficerSave="Onboarding Company Officer Save",n.onboardingCompanyDetailsSave="Onboarding Company Details Save",n.onboardingBusinessVerificationCompleted="Onboarding Business Verification Completed",n.onboardingDashboardActivation="Onboarding Dashboard Activation",n.onboardingAiFinanceTeamAcknowledged="Onboarding AI Finance Team Acknowledged",n.onboardingAiFinanceTeamViewed="Onboarding AI Finance Team Viewed",n.onboardingQBOConnectionSuccess="Onboarding QBO Connection Success",n.onboardingQBOConnectionFailed="Onboarding QBO Connection Failed",n.onboardingAddressClicked="Onboarding Address Clicked",n.onboardingDocumentUploaded="Onboarding Document Uploaded",n.onboardingPhoneVerified="Onboarding Phone Verified",n.onboardingStepSkipped="Onboarding Step Skipped",n.onboardingFlowExited="Onboarding Flow Exited",n.onboardingButtonClicked="Onboarding Button Clicked",n.onboardingConnectBank="Onboarding Connect Bank",n.onboardingConnectBankSuccess="Onboarding Connect Bank Success",n.onboardingConnectBankFailure="Onboarding Connect Bank Failure",n.onboardingConnectBankLink="Onboarding Connect Bank Link",n.onboardingConnectBankGetBalance="Onboarding Connect Bank Get Balance",n.onboardingBankConnectAbandoned="Onboarding Bank Connect Abandoned",n.onboardingNewCustomerStarted="Onboarding New Customer Started",n.onboardingNewCustomerGroupCreationCheck="Onboarding New Customer Group Creation Check",n.onboardingZeniManagedQBOConnectionSelected="Onboarding Zeni Managed QBO Connection Selected",n.onboardingCustomerManagedQBOConnectionSelected="Onboarding Customer Managed Connection QBO Selected",n.onboardingZeniManagedQBOConnectionSuccess="Onboarding Zeni Managed QBO Connection Successful",n.onboardingZeniManagedQBOConnectionUnsuccess="Onboarding Zeni Managed QBO Connection Unsuccessful",n.onboardingSendInvite="Onboarding Send Invite",n.onboardingResendInvite="Onboarding Resend Invite",n.onboardingSave="Onboarding Save",n.onboardingBillingAddress="Onboarding Billing Address Clicked",n.onboardingBillingAddressSave="Onboarding Billing Address Save",n.onboardingNext="Onboarding Next",n.onboardingBack="Onboarding Back",n.onboardingActiveStep="Onboarding Active Step",n.onboardingLinkBankAccount="Onboarding Link A Bank Account",n.onboardingLinkBankAccountSuccess="Onboarding Link A Bank Account Success",n.onboardingLinkBankAccountFailure="Onboarding Link A Bank Account Failure",n.onboardingLinkANewBankAccount="Onboarding Link A New Bank Account",n.onboardingLinkANewBankAccountSuccess="Onboarding Link A New Bank Account Success",n.onboardingLinkANewBankAccountFailure="Onboarding Link A New Bank Account Failure",n.onboardingLinkCreditCard="Onboarding Link Credit Card",n.onboardingLinkCreditCardSuccess="Onboarding Link Credit Card Success",n.onboardingLinkCreditCardFailure="Onboarding Link Credit Card Failure",n.onboardingLinkNewCard="Onboarding Link a New Credit Card",n.onboardingLinkNewCardSuccess="Onboarding Link a New Credit Card Success",n.onboardingLinkNewCardFailure="Onboarding Link a New Credit Card Failure",n.onboardingBankAccountPendingVerification="Onboarding Bank Account Pending Verification",n.onboardingBankAccountVerified="Onboarding Bank Account Verified",n.onboardingSwitchToBankAccount="Onboarding Switch To Bank Account",n.onboardingSwitchToBankAccountSuccess="Onboarding Switch To Bank Account Success",n.onboardingSwitchToBankAccountFailure="Onboarding Switch To Bank Account Failure",n.onboardingSwitchToCreditCard="Onboarding Switch To Credit Card",n.onboardingSwitchToCreditCardSuccess="Onboarding Switch To Credit Card Success",n.onboardingSwitchToCreditCardFailure="Onboarding Switch To Credit Card Failure",n.onboardingInterimCardClick="Onboarding Interim Page Card Click",n.onboardingLandingPageCardClick="Onboarding Landing Page Card Click",n.billingLinkNewBankAccount="Billing Link a New Bank Account",n.billingLinkNewBankAccountSuccess="Billing Link a New Bank Account Success",n.billingLinkNewBankAccountFailure="Billing Link a New Bank Account Failure",n.billingSwitchToCreditCard="Billing Switch To Credit Card",n.billingSwitchToCreditCardSuccess="Billing Switch To Credit Card Success",n.billingSwitchToCreditCardFailure="Billing Switch To Credit Card Failure",n.billingSwitchToBankAccount="Billing Switch To Bank Account",n.billingSwitchToBankAccountSuccess="Billing Switch To Bank Account Success",n.billingSwitchToBankAccountFailure="Billing Switch To Bank Account Failure",n.billingLinkNewCard="Billing Link a New Card",n.billingLinkNewCardSuccess="Billing Link a New Card Success",n.billingLinkNewCardFailure="Billing Link a New Card Failure",n.billPayHome="Bill Pay Home",n.billPaySetup="Bill Pay Setup",n.billPayPromoPage="Bill Pay Promo",n.billPayNeedHelp="Bill Pay Need Help",n.billPayBusinessVerification="Bill Pay Business Verification",n.billPayBusinessVerificationSave="Bill Pay Business Verification Save",n.billPayBusinessVerificationSend="Bill Pay Business Verification Send",n.billPayBusinessVerificationAddOfficer="Bill Pay Business Verification Add Officer",n.billPayConnectBank="Bill Pay Connect Bank",n.billPayConnectBankSuccess="Bill Pay Connect Bank Success",n.billPayConnectBankFailure="Bill Pay Connect Bank Failure",n.billPayConnectBankLink="Bill Pay Connect Bank Link",n.billPayConnectBankGetBalance="Bill Pay Connect Bank Get Balance",n.enableBillPay="Enable Bill Pay",n.billPayDrafts="Bill Pay Drafts",n.billPayDraftsOverdue="Bill Pay Drafts Overdue",n.billPayApprovals="Bill Pay Approvals",n.billPayApprovalsAwaitingApproval="Bill Pay Approvals Awaiting Approval",n.billPayApprovalsAwaitingMyApproval="Bill Pay Approvals Awaiting My Approval",n.billPayApprovalsOverdue="Bill Pay Approvals Overdue",n.billPayApprovalsRejected="Bill Pay Approvals Rejected",n.billPayApprovalsDeleted="Bill Pay Approvals Deleted",n.billPayScheduled="Bill Pay Scheduled",n.billPayScheduledFailed="Bill Pay Scheduled Failed",n.billPayScheduledCancelled="Bill Pay Scheduled Cancelled",n.billPayScheduledDeleted="Bill Pay Scheduled Deleted",n.billPayPaid="Bill Pay Paid",n.billPayPaidACH="Bill Pay Paid ACH",n.billPayPaidWire="Bill Pay Paid Wire",n.billPayPaidDeleted="Bill Pay Paid Deleted",n.billPayPaidOffline="Bill Pay Paid Offline",n.billPayNewBill="Bill Pay New Bill",n.billPayInvoiceUpload="Bill Pay Invoice Upload",n.billPaySkipAutofill="Bill Pay Skip Autofill",n.billPayInvoiceActionClick="Bill Pay Invoice Action Click",n.billPayBillDetails="Bill Pay Bill Details",n.billPayEditBill="Bill Pay Edit Bill",n.billPayDeleteBill="Bill Pay Delete Bill",n.billPayCancelBill="Bill Pay Cancel Bill",n.billPayCancelAndDeleteBill="Bill Pay Cancel And Delete Bill",n.billPayReviewBill="Bill Pay Review Bill",n.billPaySendForApproval="Bill Pay Send For Approval",n.billPayMagicLinkPreviewEmail="Bill Pay MagicLink Preview Email",n.billPayMagicLinkPageLoad="Bill Pay MagicLink Page Load",n.billPayMagicLinkSubmitBankAccountDetails="Bill Pay MagicLink Submit Bank Account Details",n.billPayFilterClick="Bill Pay Filter Click",n.billPayFilterChange="Bill Pay Filter Change",n.billPayDownloadClick="Bill Pay Download Click",n.billPayNewVendor="Bill Pay New Vendor",n.billPayEditVendor="Bill Pay Edit Vendor",n.billPayExpandVendor="Bill Pay Expand Vendor",n.billPayChooseNewVendor="Bill Pay Choose New Vendor",n.billPayCreateNewVendorFromDropdown="Bill Pay Create New Vendor From Dropdown",n.billPayAutoDateChange="Book Close - Auto Date Change",n.billPayPrivacyPolicy="Bill Pay Privacy Policy",n.billPayAgreement="Bill Pay Agreement",n.billPayPromoSchedule="Bill Pay Schedule Demo",n.billPayPromoVideo="Bill Pay Promo Video",n.billPayTaskCard="Bill Pay Task Card",n.billPayCard="Bill Pay Card",n.enableIntlWire="Enable International Wire",n.submitIntlWire="International Wire Submit",n.intlWirePaymentMethod="International Wire Payment Method",n.zeniAssistClick="Zeni Assist Click",n.retryClick="Retry Click",n.retryConfirmClick="Retry Confirm Click",n.refundClick="Refund Click",n.refundConfirmClick="Refund Confirm Click",n.billPayBulkSelectAll="Bill Pay Bulk Select All",n.billPayBulkDeleted="Bill Pay Bulk Deleted",n.billPayBulkSubmit="Bill Pay Bulk Submit",n.billPayBulkSelection="Bill Pay Bulk Selection",n.billPayBulkPopupConfirm="Bill Pay Bulk Popup Confirm",n.billPayMarkAsPaid="Mark As Paid",n.billPayMarkAsPaidSubmit="Mark As Paid Submit",n.lowBalanceAccountSelected="Low Balance Account Selected",n.lowBalanceAccountSentForApproval="Low Balance Account Sent for Approval",n.lowBalanceAccountApprove="Low Balance Account Approve",n.lowBalanceAccountReject="Low Balance Account Reject",n.lowBalanceAccountChange="Low Balance Account Change",n.lowBalanceAccountSchedule="Low Balance Account Schedule",n.cockpitTabClicked="Cockpit Tab Clicked",n.cockpitHealthMonitorRowClicked="Cockpit Health Monitor Row Clicked",n.cockpitHealthMonitorChurnFormClicked="Cockpit Health Monitor Churn Form Click",n.cockpitHealthMonitorNotificationAlertClicked="Cockpit Health Monitor Notification Alert Clicked",n.reimbursementHome="Reimbursement Home",n.reimbursementSetup="Reimbursement Setup",n.reimbursementPromoPage="Reimbursement Promo",n.reimbursementTaskCard="Reimbursement Task Card",n.reimbursementFilterClick="Reimbursement Filter Click",n.reimbursementFilterChange="Reimbursement Filter Change",n.reimbursementDownloadClick="Reimbursement Download Click",n.reimbursementBulkSelectAll="Reimbursement Bulk Select All",n.reimbursementBulkDeleted="Reimbursement Bulk Deleted",n.reimbursementBulkSubmit="Reimbursement Bulk Submit",n.reimbursementBulkSelection="Reimbursement Bulk Selection",n.reimbursementBulkPopupConfirm="Reimbursement Bulk Popup Confirm",n.accountsListPageViewed="Accounts List Page Viewed",n.zeniAccountsSetup="Zeni Accounts Setup",n.accountsPromoPageViewed="Accounts Promo Page Viewed",n.zeniAccountsPromoCardClick="Zeni Accounts Promo Card Click",n.zeniAccountsCashBalancePromoClicked="Zeni Accounts Cash Balance Promo Clicked",n.zeniAccountsNeedHelp="Zeni Accounts Need Help",n.zeniAccountsBusinessVerification="Zeni Accounts Business Verification",n.zeniAccountsBusinessVerificationSave="Zeni Accounts Business Verification Save",n.zeniAccountsBusinessVerificationSend="Zeni Accounts Business Verification Send",n.plgPromoActionTaken="Promo Action Taken",n.cardsPromoPage="Cards Promo Page Viewed",n.cardsPromoPageClick="Cards Promo Page Clicked",n.cardsListPage="Cards List Page Viewed",n.cardsListPageClick="Cards List Page Clicked",n.cardsIssueNewCardFormClick="Issue New Card Form Clicked",n.cardsListRowClick="Cards List Row Clicked",n.cardsDetailPage="Cards Detail Page Viewed",n.cardsDetailPageClick="Cards Detail Page Clicked",n.cardsVerifyPopUpClick="Cards Verify Pop-Up Clicked",n.cardsSetupVisited="Cards Setup Page Visited",n.cardsPromoView="Cards Promo View",n.cardsSetupCardsClick="Cards Set Up Cards Click",n.cardsEnableCardsClick="Cards Enable Cards Click",n.cardsScheduleDemoClick="Cards Schedule Demo Click",n.cardsCardListView="Cards Card List View",n.cardsCardListSearchClick="Cards Card List Search Click",n.cardsCardListMoreMenuClick="Cards Card List More Menu Click",n.cardsSettingsClick="Cards Settings Click",n.cardsCardSetupView="Cards Card Setup View",n.cardsVerifyIdentityCompanyDetailsClick="Cards Verify Identity & Company Details Click",n.cardsPaymentAccountChangeClick="Cards Payment Account Change Click",n.cardsZeniCashAccountChangeClick="Cards Zeni Cash Account Change Click",n.cardsStatementsClick="Cards Statements Click",n.cardsCreditCardStatementsView="Cards Credit Card Statements View",n.cardsDownloadClick="Cards Download Click",n.cardsNewCardClick="Cards New Card Click",n.cardsCashbackOverviewClick="Cards Cashback Overview Click",n.cardsCardListRowClick="Cards Card List Row Click",n.cardsCopyIconClick="Cards Copy Icon Click",n.cardsCardListSortClick="Cards Card List Sort Click",n.cardsCardDetailView="Cards Card Detail View",n.cardsUpdateSpendLimitInitiated="Cards Update Spend Limit Initiated",n.cardsUpdateSpendLimitClick="Cards Update Spend Limit Click",n.cardsAddToWalletClick="Cards Add to Wallet Click",n.cardsNeedHelp="Cards Need Help",n.cardsBusinessVerification="Cards Business Verification",n.cardsBusinessVerificationSave="Cards Business Verification Save",n.cardsBusinessVerificationSend="Cards Business Verification Send",n.cardsConnectBank="Cards Connect Bank",n.cardsConnectBankSuccess="Cards Connect Bank Success",n.cardsConnectBankFailure="Cards Connect Bank Failure",n.cardsConnectBankGetBalance="Cards Connect Bank Get Balance",n.cardsConnectBankLink="Cards Connect Bank Link",n.zeniCardsPromoCardClicked="Zeni Cards Promo Card Click",n.cardsPayEarlyClick="Cards Pay Early Click",n.cardsPayEarlyFormView="Cards Pay Early Form View",n.cardsPayEarlyFormClick="Cards Pay Early Form Click",n.cardsPayEarlyPayNowClick="Cards Pay Early Pay Now Click",n.accountsListPageClicked="Accounts List Page Clicked",n.zeniAccountsTransferFormViewed="Transfer Between Accounts Form Viewed",n.zeniAccountsTransferFormClicked="Transfer Between Accounts Form Clicked",n.accountsDepositCheckFormViewed="Accounts Deposit Check Form Viewed",n.accountsDepositCheckFormClicked="Accounts Deposit Check Form Clicked",n.accountsPromoPageClicked="Accounts Promo Page Clicked",n.zeniAccountsSettingPageVisited="Zeni Accounts Setting Page Visited",n.zeniAccountsConnectBank="Zeni Accounts Connect Bank",n.zeniAccountsConnectBankSuccess="Zeni Accounts Connect Bank Success",n.zeniAccountsConnectBankFailure="Zeni Accounts Connect Bank Failure",n.zeniAccountsConnectBankGetBalance="Zeni Accounts Connect Bank Get Balance",n.zeniAccountsConnectBankLink="Zeni Accounts Connect Bank Link",n.enableZeniAccounts="Enable Zeni Accounts",n.reimbursementNeedHelp="Reimbursement Need Help",n.reimbursementBusinessVerification="Reimbursement Business Verification",n.reimbursementBusinessVerificationSave="Reimbursement Business Verification Save",n.reimbursementBusinessVerificationSend="Reimbursement Business Verification Send",n.reimbursementBusinessVerificationAddOfficer="Reimbursement Business Verification Add Officer",n.reimbursementConnectBank="Reimbursement Connect Bank",n.reimbursementConnectBankSuccess="Reimbursement Connect Bank Success",n.reimbursementConnectBankFailure="Reimbursement Connect Bank Failure",n.reimbursementConnectBankLink="Reimbursement Connect Bank Link",n.reimbursementConnectBankGetBalance="Reimbursement Connect Bank Get Balance",n.enableReimbursement="Enable Reimbursement",n.reimbursementMileageRateSave="Reimbursement Mileage Rate Save",n.reimbursementMileageRateEdit="Reimbursement Mileage Rate Edit",n.reimbursementPrivacyPolicy="Reimbursement Privacy Policy",n.reimbursementAgreement="Reimbursement Agreement",n.reimbursementPromoSchedule="Reimbursement Schedule Demo",n.reimbursementPromoVideo="Reimbursement Promo Video",n.reimbursementCard="Reimbursement Card",n.reimbursementDrafts="Reimbursement Drafts",n.reimbursementMyDrafts="Reimbursement My Drafts",n.reimbursementApprovals="Reimbursement Approvals",n.reimbursementApprovalsAwaitingApproval="Reimbursement Approvals Awaiting Approval",n.reimbursementApprovalsAwaitingAllApproval="Reimbursement Approvals Awaiting All Approval",n.reimbursementApprovalsAwaitingMyApproval="Reimbursement Approvals Awaiting My Approval",n.reimbursementApprovalsRejected="Reimbursement Approvals Rejected",n.reimbursementApprovalsDeleted="Reimbursement Approvals Deleted",n.reimbursementScheduled="Reimbursement Scheduled",n.reimbursementScheduledFailed="Reimbursement Scheduled Failed",n.reimbursementScheduledCancelled="Reimbursement Scheduled Cancelled",n.reimbursementScheduledDeleted="Reimbursement Scheduled Deleted",n.reimbursementPaid="Reimbursement Paid",n.reimbursementPaidACH="Reimbursement Paid ACH",n.reimbursementPaidDeleted="Reimbursement Paid Deleted",n.reimbursementListSort="Reimbursement List Sort",n.reimbursementNewReimbursement="Reimbursement New Reimbursement",n.reimbursementInvoiceUpload="Reimbursement Invoice Upload",n.reimbursementSkipAutofill="Reimbursement Skip Autofill",n.reimbursementSubmitReimbursement="Reimbursement Submit Reimbursement",n.reimbursementReimbursementDetails="Reimbursement Reimbursement Details",n.reimbursementEditReimbursement="Reimbursement Edit Reimbursement",n.reimbursementDeleteReimbursement="Reimbursement Delete Reimbursement",n.reimbursementCancelReimbursement="Reimbursement Cancel Reimbursement",n.reimbursementCancelAndDeleteReimbursement="Reimbursement Cancel And Delete Reimbursement",n.reimbursementSubmitAnywayDuplicateReimbursement="Reimbursement Submit Anyway Duplicate Reimbursement",n.reimbursementReviewDuplicateReportReimbursement="Reimbursement Review Duplicate Report Reimbursement",n.reimbursementDeleteReimbursementLine="Reimbursement Delete Reimbursement Line",n.reimbursementViewDuplicateExpense="Reimbursement View Duplicate Expense",n.groupBySwitch="Group By Switch",n.burnRateCalculatorSettings="Burn Rate Calculator Settings",n.vendorList="Vendor List",n.vendorListSort="Vendor List Sort",n.vendorListSpendTrendSelection="Vendor List Spend Trend Selection",n.vendorListSearch="Vendor List Search",n.vendorDetails="Vendor Details",n.vendorDetailsSave="Vendor Details Save",n.vendorDetailsCancel="Vendor Details Cancel",n.vendorDetailsSpendTrendHotlinkClicked="Vendor Details Spend Trend Hotlink Clicked",n.vendorOperatingExpenses="Operating Expenses By Vendor",n.vendorOperatingExpensesPageLoaded="Operating Expenses By Vendor Page Loaded",n.agingReport="Aging Report",n.agingReportDateChange="Aging Report Date Change",n.apAgingDetail="AP Aging Detail",n.arAgingDetail="AR Aging Detail",n.vendorTenantReviewListPage="Vendor Dedupe Tenant Review List Page",n.vendorGlobalReviewListPage="Vendor Dedupe Global Review List Page",n.vendorReviewList="Vendor Dedupe Review List Loaded",n.vendorReviewTenantSave="Vendor Dedupe First Review",n.vendorReviewTenantMergeInQBORedirect="Vendor Dedupe Merge in QBO Redirected",n.vendorReviewTenantMergeInQBOCancel="Vendor Dedupe Merge in QBO Canceled",n.vendorReviewTenantRecommendationUpdateContinue="Vendor Dedupe Recommendation Update Continued",n.vendorReviewTenantRecommendationUpdateCancel="Vendor Dedupe Recommendation Update Canceled",n.vendorReviewTenantUpdateCancel="Vendor Dedupe Update Canceled",n.vendorReviewTenantWebsiteOpened="Vendor Dedupe Website Opened",n.vendorReviewGlobalApproveRequest="Vendor Dedupe Approve Requested",n.vendorReviewGlobalNewVendorRequest="Vendor Dedupe New Vendor Requested",n.vendorReviewGlobalNewVendorSave="Vendor Dedupe New Vendor Saved",n.vendorReviewGlobalNewVendorCancel="Vendor Dedupe New Vendor Canceled",n.vendor1099ListPage="Vendors 1099",n.vendor1099TabSettingsSave="1099 Settings Save",n.vendor1099AccountingSettingsSave="Settings Accounting 1099 Save",n.vendor1099W9DocumentUpload="1099 Vendor W9 Upload",n.vendor1099DetailsSave="1099 Vendor Save",n.vendor1099ReportDownload="1099 Download",n.scheduleReviewList="Schedule Review List Loaded",n.scheduleReviewListDownload="Schedule Review List Download",n.scheduleDetailsPage="Schedule Details Loaded",n.scheduleDetailsNewRequested="Schedule Details New Requested",n.scheduleDetailsPreview="Schedule Details Previewed",n.scheduleDetailsSave="Schedule Details Saved",n.scheduleDetailsCancel="Schedule Details Canceled",n.scheduleDetailsLinkJournalEntry="Schedule Details Link Journal Entry",n.scheduleDetailsViewJournalEntry="Schedule Details View Journal Entry",n.scheduleDetailsJournalEntryViewLinkedExpense="Schedule Details Journal Entry View Linked Expense",n.scheduleDetailsJournalEntryLinkedSaved="Schedule Details Journal Entry Linked Saved",n.scheduleDetailsJournalEntryQBOFetched="Schedule Details Journal Entry QBO Fetched",n.scheduleDetailsJournalEntryLinkCancel="Schedule Details Journal Entry Link Canceled",n.scheduleDetailsEntryCanceled="Schedule Details Entry Canceled",n.scheduleDetailsJournalEntryLinkExpense="Schedule Details Journal Entry Link Expense",n.scheduleDetailsJournalEntryLinkExpenseLoaded="Schedule Details Journal Entry Link Expense Loaded",n.scheduleDetailsJournalEntryLinkExpenseCanceled="Schedule Details Journal Entry Link Expense Canceled",n.scheduleDetailsJounralEntryLinkExpenseSaved="Schedule Details Journal Entry Linked Expense Saved",n.scheduleDetailsDelete="Schedule Details Deleted",n.scheduleDetailsMarkComplete="Schedule Details Marked As Complete",n.taskListPage="Task List Page",n.taskDetailPage="Task Detail Page",n.cockpitTaskCardClicked="Cockpit Task Card Clicked",n.taskEdited="Task Edited",n.newTaskRequested="New Task Requested",n.healthMonitorFilterApplied="Health Monitor Filter Applied",n.error="Error",n.rewardsPageViewed="Rewards Page Viewed",n.rewardsPageClicked="Rewards Page Clicked",n.dashboardCardClicked="Dashboard Card Clicked",n.inviteEmailViewed="Rewards Invite Email Viewed",n.inviteEmailClicked="Rewards Invite Email Clicked",n.getAuditScore="Get Score",n.auditScorePercentage="Score %",n.auditIssueType="Issue Type",n.auditIssuesClicked="Issue Clicked",n.commentAdded="Comment Added",n.commentActivity="Comment Activity",n.monthCloseClicked="Month Close Clicked",n.monthCloseAuditPage="Month Close: Audit Page",n.transactionsReview="Transactions: Review",n.transactionsAutoCategorised="Transactions: Autocategorised",n.monthCloseScheduleList="Month Close: Schedule List",n.fluxAnalysis="Flux Analysis",n.fluxAnalysisReviewed="Flux Analysis: Reviewed",n.missingReceipts="Missing Receipts",n.receiptsAttached="Receipt Attached",n.insightsEmail="Insights Email",n.monthEndEmailSentFromCockpit="Month End Email Sent From Cockpit",n.sendMoneyClick="Send Money Click",n.expressPayNextClick="Express Pay Next Click",n.expressPayScheduleClick="Express Pay Schedule Click",n.aiCFOPrivacyPolicy="AI CFO Privacy Policy",n.aiCFOAgreement="AI CFO Agreement",n.treasuryNavPromoClick="Treasury Nav Promo Click",n.treasuryPromoView="Treasury Promo View",n.treasurySetupActionClick="Treasury Setup Action Click",n.treasuryProspectusClick="Treasury Prospectus Click",n.treasuryCalculatorClick="Treasury Calculator Click",n.treasuryAgreementView="Treasury Agreement View",n.treasuryAllocationAction="Treasury Allocation Action",n.treasuryRiskAction="Treasury Risk Action",n.treasuryVerificationNavigation="Treasury Verification Navigation",n.treasuryTransferAction="Treasury Transfer Action",n.treasuryDashboardInteraction="Treasury Dashboard Interaction",n.treasuryPortfolioConfirm="Treasury Portfolio Confirm",n.treasuryPromoCards="Treasury Promo Cards",n.treasuryPromoVideo="Treasury Promo Video",n.transactionCotView="Transaction Cot View",n.transactionCotDropdownView="Transaction Cot Dropdown View",n.transactionCotViewAlternative="Transaction Cot View Alternative",n.transactionCotViewRecommended="Transaction Cot View Recommended",n.recommendationAccepted="Recommendation Accepted",n.recommendationFeedbackSubmitted="Recommendation Feedback Submitted",n.recommendationFeedbackSkipped="Recommendation Feedback Skipped",n.recommendationFeedbackRetracted="Recommendation Feedback Retracted",n.aiPerfHome="AI Perf Home",n.aiPerfRefresh="AI Perf Refresh",n.aiPerfTimePeriodSelect="AI Perf Time Period Select",n.otherConnectionConnectBank="Other Connection Connect Bank",n.otherConnectionConnectBankSuccess="Other Connections Connect Bank Success",n.otherConnectionConnectBankFailure="Other Connections Connect Bank Failure",n.otherConnectionsConnectBankLink="Other Connections Connect Bank Link",n.otherConnectionConnectBankGetBalance="Other Connection Connect Bank Get Balance",n.autoTransferRuleIconClick="Auto Transfer Rule Icon Click",n.autoTransferRuleClick="Auto Transfer Rule Click",n.autoTransferRuleReviewClick="Auto Transfer Rule Review Click",n.autoTransferRuleCreateClick="Auto Transfer Rule Create Click",n.autoTransferRuleMoreClick="Auto Transfer Rule More Click",n.autoTransferRuleActionClick="Auto Transfer Rule Action Click",n.autoTransferRuleActionConfirm="Auto Transfer Rule Action Confirm",n.autoTransferRuleActionCancel="Auto Transfer Rule Action Cancel",n.integrationsNotifyMeClicked="Integrations Notify Me Clicked",n.invoicingOverviewPage="Invoicing Overview Page",n.invoicingInvoicesListPage="Invoicing Invoices List Page",n.invoicingCreateInvoicePage="Invoicing Create Invoice Page",n.invoicingInvoiceDetailPage="Invoicing Invoice Detail Page",n.invoicingCustomersListPage="Invoicing Customers List Page",n.invoicingCustomerFormPage="Invoicing Customer Form Page",n.invoicingCustomerDetailPage="Invoicing Customer Detail Page",n.invoicingSubscriptionsListPage="Invoicing Subscriptions List Page",n.invoicingSubscriptionFormPage="Invoicing Subscription Form Page",n.invoicingSubscriptionDetailPage="Invoicing Subscription Detail Page",n.invoicingPaymentsListPage="Invoicing Payments List Page",n.invoicingRecordPaymentPage="Invoicing Record Payment Page",n.invoicingTransactionDetailPage="Invoicing Transaction Detail Page",n.invoicingCreditsListPage="Invoicing Credits List Page",n.invoicingCreditDetailPage="Invoicing Credit Detail Page",n.invoicingDiscountsListPage="Invoicing Discounts List Page",n.invoicingCouponFormPage="Invoicing Coupon Form Page",n.invoicingDiscountDetailPage="Invoicing Discount Detail Page",n.invoicingDunningListPage="Invoicing Dunning List Page",n.invoicingDunningDetailPage="Invoicing Dunning Detail Page",n.invoicingCatalogPage="Invoicing Catalog Page",n.invoicingCatalogItemFormPage="Invoicing Catalog Item Form Page",n.invoicingCatalogItemDetailPage="Invoicing Catalog Item Detail Page",n.invoicingSettingsPage="Invoicing Settings Page",n.invoicingAuditLogPage="Invoicing Audit Log Page",n.invoicingDataImportHubPage="Invoicing Data Import Hub Page",n.invoicingDataImportMigratePage="Invoicing Data Import Migrate Page",n.invoicingDataImportDetailPage="Invoicing Data Import Detail Page",n.invoicingIssueCreditNotePage="Invoicing Issue Credit Note Page",n.invoicingPromoPage="Invoicing Promo Page",n.invoicingBrandingSettingsPage="Invoicing Branding Settings Page",n.invoicingDunningSettingsPage="Invoicing Dunning Settings Page",n.invoicingIntegrationsSettingsPage="Invoicing Integrations Settings Page",n.invoicingPaymentDestinationSettingsPage="Invoicing Payment Destination Settings Page",n.invoicingQboSettingsPage="Invoicing QBO Settings Page",n.invoicingViewInvoicesClicked="Invoicing View Invoices Clicked",n.invoicingViewPaymentsClicked="Invoicing View Payments Clicked",n.invoicingSubscriptionTileClicked="Invoicing Subscription Tile Clicked",n.invoicingCreateInvoiceClicked="Invoicing Create Invoice Clicked",n.invoicingInvoiceRowClicked="Invoicing Invoice Row Clicked",n.invoicingImportCsvClicked="Invoicing Import CSV Clicked",n.invoicingListLoadMore="Invoicing List Load More",n.invoicingInvoiceCreated="Invoicing Invoice Submitted",n.invoicingCreateInvoiceCancelled="Invoicing Create Invoice Cancelled",n.invoicingInvoiceEdited="Invoicing Invoice Edited",n.invoicingInvoiceReminderSent="Invoicing Send Reminder Clicked",n.invoicingRecordPaymentClicked="Invoicing Record Payment Clicked",n.invoicingCreditNoteIssued="Invoicing Issue Credit Note Submitted",n.invoicingIssueCreditNoteClicked="Invoicing Issue Credit Note Clicked",n.invoicingInvoiceVoided="Invoicing Void Invoice Submitted",n.invoicingInvoiceRegenerated="Invoicing Regenerate Invoice Clicked",n.invoicingAddCustomerClicked="Invoicing Add Customer Clicked",n.invoicingCustomerRowClicked="Invoicing Customer Row Clicked",n.invoicingCustomerSaved="Invoicing Customer Saved",n.invoicingCustomerFormCancelled="Invoicing Customer Form Cancelled",n.invoicingCustomerEdited="Invoicing Customer Edited",n.invoicingPromotionalCreditsClicked="Invoicing Promotional Credits Clicked",n.invoicingPromotionalCreditsAdded="Invoicing Promotional Credits Added",n.invoicingPaymentMethodAddClicked="Invoicing Payment Method Add Clicked",n.invoicingPaymentMethodSaved="Invoicing Payment Method Saved",n.invoicingPaymentLinkSent="Invoicing Payment Link Sent",n.invoicingAddSubscriptionClicked="Invoicing Add Subscription Clicked",n.invoicingSubscriptionRowClicked="Invoicing Subscription Row Clicked",n.invoicingSubscriptionLifecycleAction="Invoicing Subscription Lifecycle Action",n.invoicingSubscriptionSaved="Invoicing Subscription Saved",n.invoicingSubscriptionFormCancelled="Invoicing Subscription Form Cancelled",n.invoicingSubscriptionEdited="Invoicing Subscription Edited",n.invoicingPaymentRowClicked="Invoicing Payment Row Clicked",n.invoicingPaymentRecorded="Invoicing Record Payment Submitted",n.invoicingRecordPaymentCancelled="Invoicing Record Payment Cancelled",n.invoicingTransactionCaptured="Invoicing Transaction Captured",n.invoicingCreditNoteRowClicked="Invoicing Credit Note Row Clicked",n.invoicingCreateCouponClicked="Invoicing Create Coupon Clicked",n.invoicingDiscountRowClicked="Invoicing Discount Row Clicked",n.invoicingCouponLifecycleAction="Invoicing Coupon Lifecycle Action",n.invoicingCouponSaved="Invoicing Coupon Saved",n.invoicingCouponFormCancelled="Invoicing Coupon Form Cancelled",n.invoicingCouponEdited="Invoicing Coupon Edited",n.invoicingDunningCaseRowClicked="Invoicing Dunning Case Row Clicked",n.invoicingDunningAction="Invoicing Dunning Action",n.invoicingAddCatalogItemClicked="Invoicing Add Catalog Item Clicked",n.invoicingCatalogItemRowClicked="Invoicing Catalog Item Row Clicked",n.invoicingCatalogItemLifecycleAction="Invoicing Catalog Item Lifecycle Action",n.invoicingCatalogItemSaved="Invoicing Catalog Item Saved",n.invoicingCatalogItemFormCancelled="Invoicing Catalog Item Form Cancelled",n.invoicingCatalogItemEdited="Invoicing Catalog Item Edited",n.invoicingSettingsSaved="Invoicing Settings Saved",n.invoicingTermsAccepted="Invoicing Terms Accepted",n.invoicingEnableClicked="Invoicing Enable Clicked",n.invoicingStripeConnectClicked="Invoicing Stripe Connect Clicked",n.invoicingStripeDisconnected="Invoicing Stripe Disconnected",n.invoicingQboAction="Invoicing QBO Action",n.invoicingChargebeeCredentialsSaved="Invoicing Chargebee Credentials Saved",n.invoicingIntegrationDisconnected="Invoicing Integration Disconnected",n.invoicingLogoRemoved="Invoicing Logo Removed",n.invoicingLogoRenamed="Invoicing Logo Renamed",n.invoicingLogoUploaded="Invoicing Logo Uploaded",n.invoicingNewImportClicked="Invoicing New Import Clicked",n.invoicingImportSessionAction="Invoicing Import Session Action",n.invoicingChargebeeConnectClicked="Invoicing Chargebee Connect Clicked",n.invoicingImportTemplatesDownloaded="Invoicing Import Templates Downloaded",n.invoicingImportFileUploaded="Invoicing Import File Uploaded",n.invoicingImportStarted="Invoicing Start Import Clicked",n.invoicingImportSavedForLater="Invoicing Import Saved For Later",n.invoicingEntityLinkClicked="Invoicing Entity Link Clicked",n.invoicingPromoSchedule="Invoicing Schedule Demo",n.integrationConnectClicked="Integration Connect Clicked",n.integrationCredentialsSubmitted="Integration Credentials Submitted",n.integrationConnected="Integration Connected",n.integrationConnectFailed="Integration Connect Failed",n.integrationConnectDismissed="Integration Connect Dismissed",n.integrationDisconnected="Integration Disconnected",n.aiCloseTransactionSearch="AI Close Transaction Search"})(t||(on.Event=t={})),on.EVENTS_WITHOUT_SUPER_PROPERTIES=new Set([t.signInClick,t.signInViaGoogleMicrosoft,t.signInViaEmail,t.signInLinkSent])),on;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 n=(function(){if(as)return Pn;as=1,Object.defineProperty(Pn,"__esModule",{value:!0}),Pn.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:ne,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:ne,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 Pn.Analytics=d,Pn})();Object.defineProperty(t,"Analytics",{enumerable:!0,get:function(){return n.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 r=(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 r.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,n){(n==null||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e<n;e++)r[e]=t[e];return r}function ps(t,n,e,r,i,s,l){try{var d=t[s](l),h=d.value}catch(o){return void e(o)}d.done?n(h):Promise.resolve(h).then(r,i)}function Ca(t){return function(){var n=this,e=arguments;return new Promise((function(r,i){var s=t.apply(n,e);function l(h){ps(s,r,i,l,d,"next",h)}function d(h){ps(s,r,i,l,d,"throw",h)}l(void 0)}))}}function dl(t,n,e){return(dl=pl()?Reflect.construct:function(r,i,s){var l=[null];l.push.apply(l,i);var d=new(Function.bind.apply(r,l));return s&&Si(d,s.prototype),d}).apply(null,arguments)}function Ue(t,n,e){return n&&(function(r,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(r,l.key,l)}})(t.prototype,n),t}function pe(){return pe=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t},pe.apply(this,arguments)}function hl(t){return(hl=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)})(t)}function $e(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),n&&Si(t,n)}function J(t,n){return n!=null&&typeof Symbol<"u"&&n[Symbol.hasInstance]?!!n[Symbol.hasInstance](t):t instanceof n}function Qn(t,n){if(t==null)return{};var e,r,i={},s=Object.keys(t);for(r=0;r<s.length;r++)e=s[r],n.indexOf(e)>=0||(i[e]=t[e]);return i}function Si(t,n){return(Si=Object.setPrototypeOf||function(e,r){return e.__proto__=r,e})(t,n)}function ie(t){return t&&typeof Symbol<"u"&&t.constructor===Symbol?"symbol":typeof t}function hi(t){var n=typeof Map=="function"?new Map:void 0;return hi=function(e){if(e===null||(r=e,Function.toString.call(r).indexOf("[native code]")===-1))return e;var r;if(typeof e!="function")throw new TypeError("Super expression must either be null or a function");if(n!==void 0){if(n.has(e))return n.get(e);n.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,n){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))||n){e&&(t=e);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}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 Xn(t,n){var e,r,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,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=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++,r=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=n.call(t,l)}catch(c){a=[6,c],r=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 n=typeof Symbol=="function"&&Symbol.iterator,e=n&&t[n],r=0;if(e)return e.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}var fs,Nd=Object.defineProperty,N=function(t,n,e){return(function(r,i,s){return i in r?Nd(r,i,{enumerable:!0,configurable:!0,writable:!0,value:s}):r[i]=s})(t,(n===void 0?"undefined":ie(n))!=="symbol"?n+"":n,e)},Fd=Object.defineProperty,ms=function(t,n,e){return(function(r,i,s){return i in r?Fd(r,i,{enumerable:!0,configurable:!0,writable:!0,value:s}):r[i]=s})(t,(n===void 0?"undefined":ie(n))!=="symbol"?n+"":n,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"]},hr={};function wa(t){if(hr[t])return hr[t];var n=globalThis[t],e=n.prototype,r=t in _s?_s[t]:void 0,i=!!(r&&r.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 hr[t]=n.prototype,n.prototype;try{var d=document.createElement("iframe");document.body.appendChild(d);var h=d.contentWindow;if(!h)return n.prototype;var o=h[t].prototype;return document.body.removeChild(d),o?hr[t]=o:e}catch{return e}}var ji={};function Ot(t,n,e){var r,i=t+"."+String(e);if(ji[i])return ji[i].call(n);var s=wa(t),l=(r=Object.getOwnPropertyDescriptor(s,e))==null?void 0:r.get;return l?(ji[i]=l,l.call(n)):n[e]}var qi={};function vs(t,n,e){var r=t+"."+String(e);if(qi[r])return qi[r].bind(n);var i=wa(t)[e];return typeof i!="function"?n[e]:(qi[r]=i,i.bind(n))}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,n){return vs("Node",t,"contains")(n)},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,n){return Ot("Element",t,"querySelector")(n)},querySelectorAll:function(t,n){return Ot("Element",t,"querySelectorAll")(n)},mutationObserver:function(){return wa("MutationObserver").constructor},patch:function(t,n,e){try{if(!(n in t))return function(){};var r=t[n],i=e(r);return typeof i=="function"&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),t[n]=i,function(){t[n]=r}}catch{return function(){}}}};function ml(t){return t.nodeType===t.ELEMENT_NODE}function Gn(t){var n=t&&"host"in t&&"mode"in t&&Ge.host(t)||null;return!!(n&&"shadowRoot"in n&&Ge.shadowRoot(n)===t)}function $n(t){return Object.prototype.toString.call(t)==="[object ShadowRoot]"}function _o(t){try{var n=t.rules||t.cssRules;if(!n)return null;var e=t.href;!e&&t.ownerNode&&t.ownerNode.ownerDocument&&(e=t.ownerNode.ownerDocument.location.href);var r=Array.from(n,(function(s){return _l(s,e)})).join("");return(i=r).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,n){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 r,i=t.cssText;return(function(s){return"selectorText"in s})(t)&&t.selectorText.includes(":")&&(r=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,i=i.replace(r,"$1\\$2")),n?mi(i,n):i}var gl=(function(){function t(){ms(this,"idNodeMap",new Map),ms(this,"nodeMetaMap",new WeakMap)}var n=t.prototype;return n.getId=function(e){var r;if(!e)return-1;var i=(r=this.getMeta(e))==null?void 0:r.id;return i??-1},n.getNode=function(e){return this.idNodeMap.get(e)||null},n.getIds=function(){return Array.from(this.idNodeMap.keys())},n.getMeta=function(e){return this.nodeMetaMap.get(e)||null},n.removeNodeFromMap=function(e){var r=this,i=this.getId(e);this.idNodeMap.delete(i),e.childNodes&&e.childNodes.forEach((function(s){return r.removeNodeFromMap(s)}))},n.has=function(e){return this.idNodeMap.has(e)},n.hasNode=function(e){return this.nodeMetaMap.has(e)},n.add=function(e,r){var i=r.id;this.idNodeMap.set(i,e),this.nodeMetaMap.set(e,r)},n.replace=function(e,r){var i=this.getNode(e);if(i){var s=this.nodeMetaMap.get(i);s&&this.nodeMetaMap.set(r,s)}this.idNodeMap.set(e,r)},n.reset=function(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap},t})();function pi(t){var n=t.element,e=t.maskInputOptions,r=t.tagName,i=t.type,s=t.value,l=t.maskInputFn,d=s||"",h=i&&Yt(i);return(e[r.toLowerCase()]||h&&e[h])&&(d=l?l(d,n):"*".repeat(d.length)),d}function Yt(t){return t.toLowerCase()}var ys="__rrweb_original__";function fi(t){var n=t.type;return t.hasAttribute("data-rr-is-password")?"password":n?Yt(n):null}function bs(t,n){var e;try{e=new URL(t,n??window.location.href)}catch{return null}var r,i=e.pathname.match(/\.([0-9a-z]+)(?:$)/i);return(r=i?.[1])!=null?r:null}var Vd=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Ud=/^(?:[a-z+]+:)?\/\//i,jd=/^www\..*/i,qd=/^(data:)([^,]*),(.*)/i;function mi(t,n){return(t||"").replace(Vd,(function(e,r,i,s,l,d){var h,o=i||l||d,a=r||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=n).indexOf("//")>-1?h.split("/").slice(0,3).join("/"):h.split("/")[0]).split("?")[0]+o)+a+")";var c=n.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 pr(t,n){return n===void 0&&(n=!1),n?t.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):t.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}function zd(t,n){return(function(e,r,i){i===void 0&&(i=!1);var s=Array.from(r.childNodes),l=[],d=0;if(s.length>1&&e&&typeof e=="string"){for(var h=pr(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=pr(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=pr(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=pr(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,n).join("/* rr_split */")}var an,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 Rn(t,n){return n&&n.trim()!==""?Sa(t,n):n}function Zd(t){return!!(t.tagName==="svg"||t.ownerSVGElement)}function Sa(t,n){var e=Cs.get(t);if(e||(e=t.createElement("a"),Cs.set(t,e)),n){if(n.startsWith("blob:")||n.startsWith("data:"))return n}else n="";return e.setAttribute("href",n),e.href}function yl(t,n,e,r){return r&&(e==="src"||e==="href"&&(n!=="use"||r[0]!=="#")||e==="xlink:href"&&r[0]!=="#"?Rn(t,r):e!=="background"||n!=="table"&&n!=="td"&&n!=="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=Rn(i,o.substring(0,o.length-1)),h.push(o);else{var a="";o=Rn(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,r):e==="style"?mi(r,Sa(t)):n==="object"&&e==="data"?Rn(t,r):r:Rn(t,r))}function bl(t,n,e){return(t==="video"||t==="audio")&&n==="autoplay"}function _i(t,n,e){if(!t)return!1;if(t.nodeType!==t.ELEMENT_NODE)return!!e&&_i(Ge.parentNode(t),n,e);for(var r=t.classList.length;r--;){var i=t.classList[r];if(n.test(i))return!0}return!!e&&_i(Ge.parentNode(t),n,e)}function kl(t,n,e,r){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 n=="string"){if(r){if(i.closest("."+n))return!0}else if(i.classList.contains(n))return!0}else if(_i(i,n,r))return!0;if(e){if(r){if(i.closest(e))return!0}else if(i.matches(e))return!0}}catch{}return!1}function Jd(t,n){var e=n.doc,r=n.mirror,i=n.blockClass,s=n.blockSelector,l=n.needsMask,d=n.inlineStylesheet,h=n.maskInputOptions,o=h===void 0?{}:h,a=n.maskTextFn,c=n.maskInputFn,u=n.dataURLOptions,p=u===void 0?{}:u,_=n.inlineImages,m=n.recordCanvas,g=n.keepIframeSrcFn,v=n.newlyAddedElement,y=v!==void 0&&v,k=n.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,r);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,ne=P.inlineImages,K=P.recordCanvas,H=P.keepIframeSrcFn,z=P.newlyAddedElement,$=z!==void 0&&z,G=P.rootId,O=(function(Ae,Ve,Ye){try{if(typeof Ve=="string"){if(Ae.classList.contains(Ve))return!0}else for(var bt=Ae.classList.length;bt--;){var xt=Ae.classList[bt];if(Ve.test(xt))return!0}if(Ye)return Ae.matches(Ye)}catch{}return!1})(C,T,x),I=(function(Ae){if(J(Ae,HTMLFormElement))return"form";var Ve=Yt(Ae.tagName);return Gd.test(Ve)?"div":Ve})(C),A={},F=C.attributes.length,oe=0;oe<F;oe++){var te=C.attributes[oe];bl(I,te.name,te.value)||(A[te.name]=yl(b,I,Yt(te.name),te.value))}if(I==="link"&&L){var Ie=Array.from(b.styleSheets).find((function(Ae){return Ae.href===C.href})),Re=null;Ie&&(Re=_o(Ie)),Re&&(delete A.rel,delete A.href,A._cssText=Re)}if(I==="style"&&C.sheet){var He=_o(C.sheet);He&&(C.childNodes.length>1&&(He=zd(He,C)),A._cssText=He)}if(I==="input"||I==="textarea"||I==="select"){var et=C.value,Ze=C.checked;A.type!=="radio"&&A.type!=="checkbox"&&A.type!=="submit"&&A.type!=="button"&&et?A.value=pi({element:C,type:fi(C),tagName:I,value:et,maskInputOptions:M,maskInputFn:q}):Ze&&(A.checked=Ze)}if(I==="option"&&(C.selected&&!M.select?A.selected=!0:delete A.selected),I==="dialog"&&C.open&&(A.rr_open_mode=C.matches("dialog:modal")?"modal":"non-modal"),I==="canvas"&&K){if(C.__context==="2d")(function(Ae){var Ve=Ae.getContext("2d");if(!Ve)return!0;for(var Ye=0;Ye<Ae.width;Ye+=50)for(var bt=0;bt<Ae.height;bt+=50){var xt=Ve.getImageData,nn=ys in xt?xt[ys]:xt;if(new Uint32Array(nn.call(Ve,Ye,bt,Math.min(50,Ae.width-Ye),Math.min(50,Ae.height-bt)).data.buffer).some((function(rn){return rn!==0})))return!1}return!0})(C)||(A.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)&&(A.rr_dataURL=Je)}}if(I==="img"&&ne){an||(an=b.createElement("canvas"),ks=an.getContext("2d"));var B=C,ge=B.currentSrc||B.getAttribute("src")||"<unknown-src>",ut=B.crossOrigin,je=function(){B.removeEventListener("load",je);try{an.width=B.naturalWidth,an.height=B.naturalHeight,ks.drawImage(B,0,0),A.rr_dataURL=an.toDataURL(j.type,j.quality)}catch(Ae){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: "+Ae)}B.crossOrigin==="anonymous"&&(ut?A.crossOrigin=ut:B.removeAttribute("crossorigin"))};B.complete&&B.naturalWidth!==0?je():B.addEventListener("load",je)}if(I==="audio"||I==="video"){var qe=A;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&&(A.rr_scrollLeft=C.scrollLeft),C.scrollTop&&(A.rr_scrollTop=C.scrollTop)),O){var at=C.getBoundingClientRect(),dt=at.width,tn=at.height;A={class:A.class,rr_width:dt+"px",rr_height:tn+"px"}}I!=="iframe"||H(A.src)||(C.contentDocument||(A.rr_src=A.src),delete A.src);try{customElements.get(I)&&(D=!0)}catch{}return{type:Fe.Element,tagName:I,attributes:A,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 bn(t,n){var e=n.doc,r=n.mirror,i=n.blockClass,s=n.blockSelector,l=n.maskTextClass,d=n.maskTextSelector,h=n.skipChild,o=h!==void 0&&h,a=n.inlineStylesheet,c=a===void 0||a,u=n.maskInputOptions,p=u===void 0?{}:u,_=n.maskTextFn,m=n.maskInputFn,g=n.slimDOMOptions,v=n.dataURLOptions,y=v===void 0?{}:v,k=n.inlineImages,E=k!==void 0&&k,w=n.recordCanvas,C=w!==void 0&&w,P=n.onSerialize,D=n.onIframeLoad,b=n.iframeLoadTimeout,T=b===void 0?5e3:b,x=n.onStylesheetLoad,L=n.stylesheetLoadTimeout,U=L===void 0?5e3:L,M=n.keepIframeSrcFn,q=M===void 0?function(){return!1}:M,W=n.newlyAddedElement,j=W!==void 0&&W,ne=n.cssCaptured,K=ne!==void 0&&ne,H=n.needsMask,z=n.preserveWhiteSpace,$=z===void 0||z;H||(H=kl(t,l,d,H===void 0));var G,O=Jd(t,{doc:e,mirror:r,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=r.hasNode(t)?r.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 I=Object.assign(O,{id:G});if(r.add(t,I),G===-2)return null;P&&P(t);var A=!o;if(I.type===Fe.Element){A=A&&!I.needBlock,delete I.needBlock;var F=Ge.shadowRoot(t);F&&$n(F)&&(I.isShadowHost=!0)}if((I.type===Fe.Document||I.type===Fe.Element)&&A){g.headWhitespace&&I.type===Fe.Element&&I.tagName==="head"&&($=!1);var oe={doc:e,mirror:r,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(!(I.type===Fe.Element&&I.tagName==="textarea"&&I.attributes.value!==void 0)){I.type===Fe.Element&&I.attributes._cssText!==void 0&&typeof I.attributes._cssText=="string"&&(oe.cssCaptured=!0);for(var te,Ie=V(Array.from(Ge.childNodes(t)));!(te=Ie()).done;){var Re=bn(te.value,oe);Re&&I.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=bn(et.value,oe);Je&&($n(He)&&(Je.isShadow=!0),I.childNodes.push(Je))}}var Be=Ge.parentNode(t);return Be&&Gn(Be)&&$n(Be)&&(I.isShadow=!0),I.type===Fe.Element&&I.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 tn=setTimeout((function(){at||(ge(),at=!0)}),ut);B.addEventListener("load",(function(){clearTimeout(tn),at=!0,ge()}))}}})(t,(function(){var B=t.contentDocument;if(B&&D){var ge=bn(B,{doc:B,mirror:r,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),I.type===Fe.Element&&I.tagName==="link"&&typeof I.attributes.rel=="string"&&(I.attributes.rel==="stylesheet"||I.attributes.rel==="preload"&&typeof I.attributes.href=="string"&&bs(I.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=bn(t,{doc:e,mirror:r,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),I}function Yd(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Qd(t){if(t.__esModule)return t;var n=t.default;if(typeof n=="function"){var e=function r(){return J(this,r)?Reflect.construct(n,arguments,this.constructor):n.apply(this,arguments)};e.prototype=n.prototype}else e={};return Object.defineProperty(e,"__esModule",{value:!0}),Object.keys(t).forEach((function(r){var i=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,i.get?i:{enumerable:!0,get:function(){return t[r]}})})),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 Xd=go.exports,Oe=Qd(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"}))),Ss=Xd,Es=Oe,vo=(function(t){function n(r,i,s,l,d,h){var o;return(o=t.call(this,r)||this).name="CssSyntaxError",o.reason=r,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,n),o}$e(n,t);var e=n.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(r){var i=this;if(!this.source)return"";var s=this.source;r==null&&(r=Ss.isColorSupported),Es&&r&&(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(r){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 r=this.showSourceCode();return r&&(r=`
4
+
5
+ `+r+`
6
+ `),this.name+": "+this.message+r},n})(hi(Error)),Ea=vo;vo.default=vo;var Wt={};Wt.isClean=Symbol("isClean"),Wt.my=Symbol("my");var Is={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 n=t.prototype;return n.atrule=function(e,r){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||"")+(r?";":"");this.builder(i+s+l,e)}},n.beforeAfter=function(e,r){var i;i=e.type==="decl"?this.raw(e,null,"beforeDecl"):e.type==="comment"?this.raw(e,null,"beforeComment"):r==="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},n.block=function(e,r){var i,s=this.raw(e,"between","beforeOpen");this.builder(r+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")},n.body=function(e){for(var r=e.nodes.length-1;r>0&&e.nodes[r].type==="comment";)r-=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,r!==s||i)}},n.comment=function(e){var r=this.raw(e,"left","commentLeft"),i=this.raw(e,"right","commentRight");this.builder("/*"+r+e.text+i+"*/",e)},n.decl=function(e,r){var i=this.raw(e,"between","colon"),s=e.prop+i+this.rawValue(e,"value");e.important&&(s+=e.raws.important||" !important"),r&&(s+=";"),this.builder(s,e)},n.document=function(e){this.body(e)},n.raw=function(e,r,i){var s;if(i||(i=r),r&&(s=e.raws[r])!==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 Is[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[r])!==void 0)return!1})),s===void 0&&(s=Is[i]),d.rawCache[i]=s,s},n.rawBeforeClose=function(e){var r;return e.walk((function(i){if(i.nodes&&i.nodes.length>0&&i.raws.after!==void 0)return(r=i.raws.after).includes(`
13
+ `)&&(r=r.replace(/[^\n]+$/,"")),!1})),r&&(r=r.replace(/\S/g,"")),r},n.rawBeforeComment=function(e,r){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(r,null,"beforeDecl"):i&&(i=i.replace(/\S/g,"")),i},n.rawBeforeDecl=function(e,r){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(r,null,"beforeRule"):i&&(i=i.replace(/\S/g,"")),i},n.rawBeforeOpen=function(e){var r;return e.walk((function(i){if(i.type!=="decl"&&(r=i.raws.between)!==void 0)return!1})),r},n.rawBeforeRule=function(e){var r;return e.walk((function(i){if(i.nodes&&(i.parent!==e||e.first!==i)&&i.raws.before!==void 0)return(r=i.raws.before).includes(`
16
+ `)&&(r=r.replace(/[^\n]+$/,"")),!1})),r&&(r=r.replace(/\S/g,"")),r},n.rawColon=function(e){var r;return e.walkDecls((function(i){if(i.raws.between!==void 0)return r=i.raws.between.replace(/[^\s:]/g,""),!1})),r},n.rawEmptyBody=function(e){var r;return e.walk((function(i){if(i.nodes&&i.nodes.length===0&&(r=i.raws.after)!==void 0)return!1})),r},n.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 r=(r=l[l.length-1]).replace(/\S/g,""),!1}})),r);var r},n.rawSemicolon=function(e){var r;return e.walk((function(i){if(i.nodes&&i.nodes.length&&i.last.type==="decl"&&(r=i.raws.semicolon)!==void 0)return!1})),r},n.rawValue=function(e,r){var i=e[r],s=e.raws[r];return s&&s.value===i?s.raw:i},n.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},n.rule=function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")},n.stringify=function(e,r){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,r)},t})(),Cl=yo;yo.default=yo;var Kd=Cl;function bo(t,n){new Kd(n).stringify(t)}var Ei=bo;bo.default=bo;var fr=Wt.isClean,eh=Wt.my,th=Ea,nh=Cl,rh=Ei;function ko(t,n){var e=new t.constructor;for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&r!=="proxyCache"){var i=t[r],s=i===void 0?"undefined":ie(i);r==="parent"&&s==="object"?n&&(e[r]=n):r==="source"?e[r]=i:Array.isArray(i)?e[r]=i.map((function(l){return ko(l,e)})):(s==="object"&&i!==null&&(i=ko(i)),e[r]=i)}return e}var Co=(function(){function t(e){for(var r in e===void 0&&(e={}),this.raws={},this[fr]=!1,this[eh]=!0,e)if(r==="nodes"){this.nodes=[];for(var i,s=V(e[r]);!(i=s()).done;){var l=i.value;typeof l.clone=="function"?this.append(l.clone()):this.append(l)}}else this[r]=e[r]}var n=t.prototype;return n.addToError=function(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){var r=this.source;e.stack=e.stack.replace(/\n\s{4}at /,"$&"+r.input.from+":"+r.start.line+":"+r.start.column+"$&")}return e},n.after=function(e){return this.parent.insertAfter(this,e),this},n.assign=function(e){for(var r in e===void 0&&(e={}),e)this[r]=e[r];return this},n.before=function(e){return this.parent.insertBefore(this,e),this},n.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},n.clone=function(e){e===void 0&&(e={});var r=ko(this);for(var i in e)r[i]=e[i];return r},n.cloneAfter=function(e){e===void 0&&(e={});var r=this.clone(e);return this.parent.insertAfter(this,r),r},n.cloneBefore=function(e){e===void 0&&(e={});var r=this.clone(e);return this.parent.insertBefore(this,r),r},n.error=function(e,r){if(r===void 0&&(r={}),this.source){var i=this.rangeBy(r),s=i.end,l=i.start;return this.source.input.error(e,{column:l.column,line:l.line},{column:s.column,line:s.line},r)}return new th(e)},n.getProxyProcessor=function(){return{get:function(e,r){return r==="proxyOf"?e:r==="root"?function(){return e.root().toProxy()}:e[r]},set:function(e,r,i){return e[r]===i||(e[r]=i,r!=="prop"&&r!=="value"&&r!=="name"&&r!=="params"&&r!=="important"&&r!=="text"||e.markDirty()),!0}}},n.markDirty=function(){if(this[fr]){this[fr]=!1;for(var e=this;e=e.parent;)e[fr]=!1}},n.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},n.positionBy=function(e,r){var i=this.source.start;if(e.index)i=this.positionInside(e.index,r);else if(e.word){var s=(r=this.toString()).indexOf(e.word);s!==-1&&(i=this.positionInside(s,r))}return i},n.positionInside=function(e,r){for(var i=r||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}},n.prev=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}},n.rangeBy=function(e){var r={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:r.column+1,line:r.line};if(e.word){var s=this.toString(),l=s.indexOf(e.word);l!==-1&&(r=this.positionInside(l,s),i=this.positionInside(l+e.word.length,s))}else e.start?r={column:e.start.column,line:e.start.line}:e.index&&(r=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<r.line||i.line===r.line&&i.column<=r.column)&&(i={column:r.column+1,line:r.line}),{end:i,start:r}},n.raw=function(e,r){return new nh().raw(this,e,r)},n.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},n.replaceWith=function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];if(this.parent){for(var s,l=this,d=!1,h=V(r);!(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},n.root=function(){for(var e=this;e.parent&&e.parent.type!=="document";)e=e.parent;return e},n.toJSON=function(e,r){var i={},s=r==null;r=r||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,r):a}));else if((h===void 0?"undefined":ie(h))==="object"&&h.toJSON)i[d]=h.toJSON(null,r);else if(d==="source"){var o=r.get(h.input);o==null&&(o=l,r.set(h.input,l),l++),i[d]={end:h.end,inputId:o,start:h.start}}else i[d]=h}return s&&(i.inputs=[].concat(r.keys()).map((function(a){return a.toJSON()}))),i},n.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},n.toString=function(e){e===void 0&&(e=rh),e.stringify&&(e=e.stringify);var r="";return e(this,(function(i){r+=i})),r},n.warn=function(e,r,i){var s={node:this};for(var l in i)s[l]=i[l];return e.warn(r,s)},Ue(t,[{key:"proxyOf",get:function(){return this}}]),t})(),Ii=Co;Co.default=Co;var wo=(function(t){function n(e){var r;return e&&e.value!==void 0&&typeof e.value!="string"&&(e=pe({},e,{value:String(e.value)})),(r=t.call(this,e)||this).type="decl",r}return $e(n,t),Ue(n,[{key:"variable",get:function(){return this.prop.startsWith("--")||this.prop[0]==="$"}}]),n})(Ii),Ai=wo;wo.default=wo;var ih=function(t){t===void 0&&(t=21);for(var n="",e=t;e--;)n+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return n},As=Oe.SourceMapConsumer,Ts=Oe.SourceMapGenerator,oh=Oe.existsSync,ah=Oe.readFileSync,zi=Oe.dirname,sh=Oe.join,So=(function(){function t(e,r){if(r.map!==!1){this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");var i=r.map?r.map.prev:void 0,s=this.loadMap(r.from,i);!this.mapFile&&r.from&&(this.mapFile=r.from),this.mapFile&&(this.root=zi(this.mapFile)),s&&(this.text=s)}}var n=t.prototype;return n.consumer=function(){return this.consumerCache||(this.consumerCache=new As(this.text)),this.consumerCache},n.decodeInline=function(e){var r;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 r=e.substr(RegExp.lastMatch.length),zt?zt.from(r,"base64").toString():window.atob(r);var i=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+i)},n.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},n.isMap=function(e){return(e===void 0?"undefined":ie(e))==="object"&&(typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections))},n.loadAnnotation=function(e){var r=e.match(/\/\*\s*# sourceMappingURL=/gm);if(r){var i=e.lastIndexOf(r.pop()),s=e.indexOf("*/",i);i>-1&&s>-1&&(this.annotation=this.getAnnotationURL(e.substring(i,s)))}},n.loadFile=function(e){if(this.root=zi(e),oh(e))return this.mapFile=e,ah(e,"utf-8").toString().trim()},n.loadMap=function(e,r){if(r===!1)return!1;if(r){if(typeof r=="string")return r;if(typeof r!="function"){if(J(r,As))return Ts.fromSourceMap(r).toString();if(J(r,Ts))return r.toString();if(this.isMap(r))return JSON.stringify(r);throw new Error("Unsupported previous source map format: "+r.toString())}var i=r(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)}}},n.startWith=function(e,r){return!!e&&e.substr(0,r.length)===r},n.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,mr=Oe.pathToFileURL,Eo=Oe.isAbsolute,Io=Oe.resolve,uh=ih,Wi=Oe,Rs=Ea,dh=wl,Gi=Symbol("fromOffsetCache"),hh=!!(ch&&lh),xs=!!(Io&&Eo),qr=(function(){function t(e,r){if(r===void 0&&(r={}),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,r.from&&(!xs||/^\w+:\/\//.test(r.from)||Eo(r.from)?this.file=r.from:this.file=Io(r.from)),xs&&hh){var i=new dh(this.css,r);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 n=t.prototype;return n.error=function(e,r,i,s){var l,d,h;if(s===void 0&&(s={}),r&&(r===void 0?"undefined":ie(r))==="object"){var o=r,a=i;if(typeof o.offset=="number"){var c=this.fromOffset(o.offset);r=c.line,i=c.col}else r=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(r);r=p.line,i=p.col}var _=this.origin(r,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?r:{column:i,line:r},d===void 0?i:{column:h,line:d},this.css,this.file,s.plugin)).input={column:i,endColumn:h,endLine:d,line:r,source:this.css},this.file&&(mr&&(l.input.url=mr(this.file).toString()),l.input.file=this.file),l},n.fromOffset=function(e){var r;if(this[Gi])r=this[Gi];else{var i=this.css.split(`
19
+ `);r=new Array(i.length);for(var s=0,l=0,d=i.length;l<d;l++)r[l]=s,s+=i[l].length+1;this[Gi]=r}var h=0;if(e>=r[r.length-1])h=r.length-1;else for(var o,a=r.length-2;h<a;)if(e<r[o=h+(a-h>>1)])a=o-1;else{if(!(e>=r[o+1])){h=o;break}h=o+1}return{col:e-r[h]+1,line:h+1}},n.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:Io(this.map.consumer().sourceRoot||this.map.root||".",e)},n.origin=function(e,r,i,s){if(!this.map)return!1;var l,d,h=this.map.consumer(),o=h.originalPositionFor({column:r,line:e});if(!o.source)return!1;typeof i=="number"&&(l=h.originalPositionFor({column:s,line:i})),d=Eo(o.source)?mr(o.source):new URL(o.source,this.map.consumer().sourceRoot||mr(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},n.toJSON=function(){for(var e={},r=0,i=["hasBOM","css","file","id"];r<i.length;r++){var s=i[r];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=qr;qr.default=qr,Wi&&Wi.registerInput&&Wi.registerInput(qr);var Sl=Oe.SourceMapConsumer,zr=Oe.SourceMapGenerator,Wr=Oe.dirname,El=Oe.relative,Il=Oe.resolve,Al=Oe.sep,Os=Oe.pathToFileURL,ph=Ti,fh=!!(Sl&&zr),mh=!!(Wr&&Il&&El&&Al),Tl=(function(){function t(e,r,i,s){this.stringify=e,this.mapOpts=i.map||{},this.root=r,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 n=t.prototype;return n.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 r=`
20
+ `;this.css.includes(`\r
21
+ `)&&(r=`\r
22
+ `),this.css+=r+"/*# sourceMappingURL="+e+" */"},n.applyPrevMaps=function(){for(var e,r=V(this.previous());!(e=r()).done;){var i=e.value,s=this.toUrl(this.path(i.file)),l=i.root||Wr(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)))}},n.clearAnnotation=function(){if(this.mapOpts.annotation!==!1)if(this.root)for(var e,r=this.root.nodes.length-1;r>=0;r--)(e=this.root.nodes[r]).type==="comment"&&e.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(r);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))},n.generate=function(){if(this.clearAnnotation(),mh&&fh&&this.isMap())return this.generateMap();var e="";return this.stringify(this.root,(function(r){e+=r})),[e]},n.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=zr.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new zr({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]},n.generateString=function(){var e=this;this.css="",this.map=new zr({file:this.outputFile(),ignoreInvalidMapping:!0});var r,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))),(r=o.match(/\n/g))?(s+=r.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)))}}))},n.isAnnotation=function(){return!!this.isInline()||(this.mapOpts.annotation!==void 0?this.mapOpts.annotation:!this.previous().length||this.previous().some((function(e){return e.annotation})))},n.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(r){return r.inline})))},n.isMap=function(){return this.opts.map!==void 0?!!this.opts.map:this.previous().length>0},n.isSourcesContent=function(){return this.mapOpts.sourcesContent!==void 0?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some((function(e){return e.withContent()}))},n.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},n.path=function(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;var r=this.memoizedPaths.get(e);if(r)return r;var i=this.opts.to?Wr(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(i=Wr(Il(i,this.mapOpts.annotation)));var s=El(i,e);return this.memoizedPaths.set(e,s),s},n.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 r=new ph(this.originalCSS,this.opts);r.map&&this.previousMaps.push(r.map)}return this.previousMaps},n.setSourcesContent=function(){var e=this,r={};if(this.root)this.root.walk((function(s){if(s.source){var l=s.source.input.from;if(l&&!r[l]){r[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)}},n.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))},n.toBase64=function(e){return zt?zt.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},n.toFileUrl=function(e){var r=this.memoizedFileURLs.get(e);if(r)return r;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")},n.toUrl=function(e){var r=this.memoizedURLs.get(e);if(r)return r;Al==="\\"&&(e=e.replace(/\\/g,"/"));var i=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,i),i},t})(),Ao=(function(t){function n(e){var r;return(r=t.call(this,e)||this).type="comment",r}return $e(n,t),n})(Ii),Pi=Ao;Ao.default=Ao;var Pl,Ia,Aa,Rl,xl=Wt.isClean,Ol=Wt.my,Dl=Ai,Bl=Pi;function Ml(t){return t.map((function(n){return n.nodes&&(n.nodes=Ml(n.nodes)),delete n.source,n}))}function Ll(t){if(t[xl]=!1,t.proxyOf.nodes)for(var n,e=V(t.proxyOf.nodes);!(n=e()).done;)Ll(n.value)}var Tt=(function(t){function n(){return t.apply(this,arguments)||this}$e(n,t);var e=n.prototype;return e.append=function(){for(var r=arguments.length,i=new Array(r),s=0;s<r;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(r){if(t.prototype.cleanRaws.call(this,r),this.nodes)for(var i,s=V(this.nodes);!(i=s()).done;)i.value.cleanRaws(r)},e.each=function(r){if(this.proxyOf.nodes){for(var i,s,l=this.getIterator();this.indexes[l]<this.proxyOf.nodes.length&&(i=this.indexes[l],(s=r(this.proxyOf.nodes[i],i))!==!1);)this.indexes[l]+=1;return delete this.indexes[l],s}},e.every=function(r){return this.nodes.every(r)},e.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var r=this.lastEach;return this.indexes[r]=0,r},e.getProxyProcessor=function(){return{get:function(r,i){return i==="proxyOf"?r:r[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=r)[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 r[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 r.root().toProxy()}:i==="nodes"?r.nodes.map((function(s){return s.toProxy()})):i==="first"||i==="last"?r[i].toProxy():r[i]:r[i]},set:function(r,i,s){return r[i]===s||(r[i]=s,i!=="name"&&i!=="params"&&i!=="selector"||r.markDirty()),!0}}},e.index=function(r){return typeof r=="number"?r:(r.proxyOf&&(r=r.proxyOf),this.proxyOf.nodes.indexOf(r))},e.insertAfter=function(r,i){var s,l=this.index(r),d=this.normalize(i,this.proxyOf.nodes[l]).reverse();l=this.index(r);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(r,i){var s,l=this.index(r),d=l===0&&"prepend",h=this.normalize(i,this.proxyOf.nodes[l],d).reverse();l=this.index(r);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(r,i){var s=this;if(typeof r=="string")r=Ml(Pl(r).nodes);else if(r===void 0)r=[];else if(Array.isArray(r))for(var l,d=V(r=r.slice(0));!(l=d()).done;){var h=l.value;h.parent&&h.parent.removeChild(h,"ignore")}else if(r.type==="root"&&this.type!=="document")for(var o,a=V(r=r.nodes.slice(0));!(o=a()).done;){var c=o.value;c.parent&&c.parent.removeChild(c,"ignore")}else if(r.type)r=[r];else if(r.prop){if(r.value===void 0)throw new Error("Value field is missed in node creation");typeof r.value!="string"&&(r.value=String(r.value)),r=[new Dl(r)]}else if(r.selector)r=[new Ia(r)];else if(r.name)r=[new Aa(r)];else{if(!r.text)throw new Error("Unknown node type in node creation");r=[new Bl(r)]}return r.map((function(u){return u[Ol]||n.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 r=arguments.length,i=new Array(r),s=0;s<r;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(r){return r.parent=this,this.proxyOf.nodes.push(r),this},e.removeAll=function(){for(var r,i=V(this.proxyOf.nodes);!(r=i()).done;)r.value.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this},e.removeChild=function(r){var i;for(var s in r=this.index(r),this.proxyOf.nodes[r].parent=void 0,this.proxyOf.nodes.splice(r,1),this.indexes)(i=this.indexes[s])>=r&&(this.indexes[s]=i-1);return this.markDirty(),this},e.replaceValues=function(r,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(r,s))})),this.markDirty(),this},e.some=function(r){return this.nodes.some(r)},e.walk=function(r){return this.each((function(i,s){var l;try{l=r(i,s)}catch(d){throw i.addToError(d)}return l!==!1&&i.walk&&(l=i.walk(r)),l}))},e.walkAtRules=function(r,i){return i?J(r,RegExp)?this.walk((function(s,l){if(s.type==="atrule"&&r.test(s.name))return i(s,l)})):this.walk((function(s,l){if(s.type==="atrule"&&s.name===r)return i(s,l)})):(i=r,this.walk((function(s,l){if(s.type==="atrule")return i(s,l)})))},e.walkComments=function(r){return this.walk((function(i,s){if(i.type==="comment")return r(i,s)}))},e.walkDecls=function(r,i){return i?J(r,RegExp)?this.walk((function(s,l){if(s.type==="decl"&&r.test(s.prop))return i(s,l)})):this.walk((function(s,l){if(s.type==="decl"&&s.prop===r)return i(s,l)})):(i=r,this.walk((function(s,l){if(s.type==="decl")return i(s,l)})))},e.walkRules=function(r,i){return i?J(r,RegExp)?this.walk((function(s,l){if(s.type==="rule"&&r.test(s.selector))return i(s,l)})):this.walk((function(s,l){if(s.type==="rule"&&s.selector===r)return i(s,l)})):(i=r,this.walk((function(s,l){if(s.type==="rule")return i(s,l)})))},Ue(n,[{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]}}]),n})(Ii);Tt.registerParse=function(t){Pl=t},Tt.registerRule=function(t){Ia=t},Tt.registerAtRule=function(t){Aa=t},Tt.registerRoot=function(t){Rl=t};var Xt=Tt;Tt.default=Tt,Tt.rebuild=function(t){t.type==="atrule"?Object.setPrototypeOf(t,Aa.prototype):t.type==="rule"?Object.setPrototypeOf(t,Ia.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(n){Tt.rebuild(n)}))};var Nl,Fl,Kn=(function(t){function n(e){var r;return(r=t.call(this,pe({type:"document"},e))||this).nodes||(r.nodes=[]),r}return $e(n,t),n.prototype.toResult=function(e){return e===void 0&&(e={}),new Nl(new Fl,this,e).stringify()},n})(Xt);Kn.registerLazyResult=function(t){Nl=t},Kn.registerProcessor=function(t){Fl=t};var Ta=Kn;Kn.default=Kn;var To=(function(){function t(n,e){if(e===void 0&&(e={}),this.type="warning",this.text=n,e.node&&e.node.source){var r=e.node.rangeBy(e);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.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,r,i){this.processor=e,this.messages=[],this.root=r,this.opts=i,this.css=void 0,this.map=void 0}var n=t.prototype;return n.toString=function(){return this.css},n.warn=function(e,r){r===void 0&&(r={}),r.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(r.plugin=this.lastPlugin.postcssPlugin);var i=new _h(e,r);return this.messages.push(i),i},n.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,_r=92,Bs=47,gr=10,xn=32,vr=12,yr=9,br=13,gh=91,vh=93,yh=40,bh=41,kh=123,Ch=125,wh=59,Sh=42,Eh=58,Ih=64,kr=/[\t\n\f\r "#'()/;[\\\]{}]/g,Cr=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Ah=/.[\r\n"'(/\\]/,Ms=/[\da-f]/i,Ul=Xt,Gr=(function(t){function n(r){var i;return(i=t.call(this,r)||this).type="atrule",i}$e(n,t);var e=n.prototype;return e.append=function(){for(var r=arguments.length,i=new Array(r),s=0;s<r;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 r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];var l;return this.proxyOf.nodes||(this.nodes=[]),(l=t.prototype.prepend).call.apply(l,[].concat([this],i))},n})(Ul),Ra=Gr;Gr.default=Gr,Ul.registerAtRule(Gr);var jl,ql,zl=Xt,wn=(function(t){function n(r){var i;return(i=t.call(this,r)||this).type="root",i.nodes||(i.nodes=[]),i}$e(n,t);var e=n.prototype;return e.normalize=function(r,i,s){var l=t.prototype.normalize.call(this,r);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(r,i){var s=this.index(r);return!i&&s===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[s].raws.before),t.prototype.removeChild.call(this,r)},e.toResult=function(r){return r===void 0&&(r={}),new jl(new ql,this,r).stringify()},n})(zl);wn.registerLazyResult=function(t){jl=t},wn.registerProcessor=function(t){ql=t};var cr=wn;wn.default=wn,zl.registerRoot(wn);var er={comma:function(t){return er.split(t,[","],!0)},space:function(t){return er.split(t,[" ",`
24
+ `," "])},split:function(t,n,e){for(var r,i=[],s="",l=!1,d=0,h=!1,o="",a=!1,c=V(t);!(r=c()).done;){var u=r.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&&n.includes(u)&&(l=!0),l?(s!==""&&i.push(s.trim()),s="",l=!1):s+=u}return(e||s!=="")&&i.push(s.trim()),i}},Wl=er;er.default=er;var Gl=Xt,Th=Wl,$r=(function(t){function n(e){var r;return(r=t.call(this,e)||this).type="rule",r.nodes||(r.nodes=[]),r}return $e(n,t),Ue(n,[{key:"selectors",get:function(){return Th.comma(this.selector)},set:function(e){var r=this.selector?this.selector.match(/,\s*/):null,i=r?r[0]:","+this.raw("between","beforeOpen");this.selector=e.join(i)}}]),n})(Gl),xa=$r;$r.default=$r,Gl.registerRule($r);var Ph=Ai,Rh=function(t,n){n===void 0&&(n={});var e,r,i,s,l,d,h,o,a,c,u=t.css.valueOf(),p=n.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 gr:case xn:case yr:case br:case vr:r=m;do r+=1,e=u.charCodeAt(r);while(e===xn||e===gr||e===yr||e===br||e===vr);c=["space",u.slice(m,r)],m=r-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!==xn&&a!==gr&&a!==yr&&a!==vr&&a!==br){r=m;do{if(d=!1,(r=u.indexOf(")",r+1))===-1){if(p||E){r=m;break}y("bracket")}for(h=r;u.charCodeAt(h-1)===_r;)h-=1,d=!d}while(d);c=["brackets",u.slice(m,r+1),m,r],m=r}else r=u.indexOf(")",m+1),s=u.slice(m,r+1),r===-1||Ah.test(s)?c=["(","(",m]:(c=["brackets",s,m,r],m=r);break;case $i:case Ds:i=e===$i?"'":'"',r=m;do{if(d=!1,(r=u.indexOf(i,r+1))===-1){if(p||E){r=m+1;break}y("string")}for(h=r;u.charCodeAt(h-1)===_r;)h-=1,d=!d}while(d);c=["string",u.slice(m,r+1),m,r],m=r;break;case Ih:kr.lastIndex=m+1,kr.test(u),r=kr.lastIndex===0?u.length-1:kr.lastIndex-2,c=["at-word",u.slice(m,r+1),m,r],m=r;break;case _r:for(r=m,l=!0;u.charCodeAt(r+1)===_r;)r+=1,l=!l;if(e=u.charCodeAt(r+1),l&&e!==Bs&&e!==xn&&e!==gr&&e!==yr&&e!==br&&e!==vr&&(r+=1,Ms.test(u.charAt(r)))){for(;Ms.test(u.charAt(r+1));)r+=1;u.charCodeAt(r+1)===xn&&(r+=1)}c=["word",u.slice(m,r+1),m,r],m=r;break;default:e===Bs&&u.charCodeAt(m+1)===Sh?((r=u.indexOf("*/",m+2)+1)===0&&(p||E?r=u.length:y("comment")),c=["comment",u.slice(m,r+1),m,r],m=r):(Cr.lastIndex=m+1,Cr.test(u),r=Cr.lastIndex===0?u.length-1:Cr.lastIndex-2,c=["word",u.slice(m,r+1),m,r],g.push(c),m=r)}return m++,c}},position:function(){return m}}},xh=Pi,Oh=Ra,Dh=cr,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 n=t.prototype;return n.atrule=function(e){var r,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((r=(e=this.tokenizer.nextToken())[0])==="("||r==="["?a.push(r==="("?")":"]"):r==="{"&&a.length>0?a.push("}"):r===a[a.length-1]&&a.pop(),a.length===0){if(r===";"){l.source.end=this.getPosition(e[2]),l.source.end.offset++,this.semicolon=!0;break}if(r==="{"){h=!0;break}if(r==="}"){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)},n.checkMissedSemicolon=function(e){var r=this.colon(e);if(r!==!1){for(var i,s=0,l=r-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])}},n.colon=function(e){for(var r,i,s,l,d=0,h=V(e.entries());!(l=h()).done;){var o=l.value,a=o[0];if((i=(r=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(r)}s=r}return!1},n.comment=function(e){var r=new xh;this.init(r,e[2]),r.source.end=this.getPosition(e[3]||e[2]),r.source.end.offset++;var i=e[1].slice(2,-2);if(/^\s*$/.test(i))r.text="",r.raws.left=i,r.raws.right="";else{var s=i.match(/^(\s*)([^]*\S)(\s*)$/);r.text=s[2],r.raws.left=s[1],r.raws.right=s[3]}},n.createTokenizer=function(){this.tokenizer=Rh(this.input)},n.decl=function(e,r){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),r),i.value.includes(":")&&!r&&this.checkMissedSemicolon(e)},n.doubleColon=function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})},n.emptyRule=function(e){var r=new Ls;this.init(r,e[2]),r.selector="",r.raws.between="",this.current=r},n.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)},n.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())},n.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var r=this.current.nodes[this.current.nodes.length-1];r&&r.type==="rule"&&!r.raws.ownSemicolon&&(r.raws.ownSemicolon=this.spaces,this.spaces="")}},n.getPosition=function(e){var r=this.input.fromOffset(e);return{column:r.col,line:r.line,offset:e}},n.init=function(e,r){this.current.push(e),e.source={input:this.input,start:this.getPosition(r)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)},n.other=function(e){for(var r=!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()),r=!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()&&(r=!0),d.length>0&&this.unclosedBracket(l),r&&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)},n.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()},n.precheckMissedSemicolon=function(){},n.raw=function(e,r,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[r]={raw:_,value:c}}e[r]=c},n.rule=function(e){e.pop();var r=new Ls;this.init(r,e[0][2]),r.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(r,"selector",e),this.current=r},n.spacesAndCommentsFromEnd=function(e){for(var r,i="";e.length&&((r=e[e.length-1][0])==="space"||r==="comment");)i=e.pop()[1]+i;return i},n.spacesAndCommentsFromStart=function(e){for(var r,i="";e.length&&((r=e[0][0])==="space"||r==="comment");)i+=e.shift()[1];return i},n.spacesFromEnd=function(e){for(var r="";e.length&&e[e.length-1][0]==="space";)r=e.pop()[1]+r;return r},n.stringFrom=function(e,r){for(var i="",s=r;s<e.length;s++)i+=e[s][1];return e.splice(r,e.length-r),i},n.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)},n.unclosedBracket=function(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})},n.unexpectedClose=function(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})},n.unknownWord=function(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})},n.unnamedAtrule=function(e,r){throw this.input.error("At-rule without name",{offset:r[2]},{offset:r[2]+r[1].length})},t})(),Mh=Xt,Lh=Bh,Nh=Ti;function Hr(t,n){var e=new Nh(t,n),r=new Lh(e);try{r.parse()}catch(i){throw i}return r.root}var Oa=Hr;Hr.default=Hr,Mh.registerParse(Hr);var pt=Wt.isClean,Fh=Wt.my,Vh=Tl,Uh=Ei,jh=Xt,qh=Ta,Fs=Pa,zh=Oa,Wh=cr,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 On(t){return(t===void 0?"undefined":ie(t))==="object"&&typeof t.then=="function"}function $l(t){var n=!1,e=Gh[t.type];return t.type==="decl"?n=t.prop.toLowerCase():t.type==="atrule"&&(n=t.name.toLowerCase()),n&&t.append?[e,e+"-"+n,0,e+"Exit",e+"Exit-"+n]:n?[e,e+"-"+n,e+"Exit",e+"Exit-"+n]: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(n){return Ro(n)})),t}var xo={},kn=(function(){function t(e,r,i){var s,l=this;if(this.stringified=!1,this.processed=!1,(r===void 0?"undefined":ie(r))!=="object"||r===null||r.type!=="root"&&r.type!=="document")if(J(r,t)||J(r,Fs))s=Ro(r.root),r.map&&(i.map===void 0&&(i.map={}),i.map.inline||(i.map.inline=!1),i.map.prev=r.map);else{var d=zh;i.syntax&&(d=i.syntax.parse),i.parser&&(d=i.parser),d.parse&&(d=d.parse);try{s=d(r,i)}catch(h){this.processed=!0,this.error=h}s&&!s[Fh]&&jh.rebuild(s)}else s=Ro(r);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 n=t.prototype;return n.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},n.catch=function(e){return this.async().catch(e)},n.finally=function(e){return this.async().then(e,e)},n.getAsyncError=function(){throw new Error("Use process(css).then(cb) to work with async plugins")},n.handleError=function(e,r){var i=this.result.lastPlugin;try{r&&r.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},n.prepareVisitors=function(){var e=this;this.listeners={};for(var r,i=function(o,a,c){e.listeners[a]||(e.listeners[a]=[]),e.listeners[a].push([o,c])},s=V(this.plugins);!(r=s()).done;){var l=r.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},n.runAsync=function(){var e=this;return Ca((function(){var r,i,s,l,d,h,o,a,c,u,p,_;return Xn(this,(function(m){switch(m.label){case 0:e.plugin=0,r=0,m.label=1;case 1:if(!(r<e.plugins.length))return[3,6];if(i=e.plugins[r],!On(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 r++,[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(!On(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 Xn(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()]}}))}))()},n.runOnRoot=function(e){var r=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,r.helpers)}));return On(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)}},n.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,r=Uh;e.syntax&&(r=e.syntax.stringify),e.stringifier&&(r=e.stringifier),r.stringify&&(r=r.stringify);var i=new Vh(r,this.result.root,this.result.opts).generate();return this.result.css=i[0],this.result.map=i[1],this.result},n.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,r=V(this.plugins);!(e=r()).done;){var i=e.value;if(On(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},n.then=function(e,r){return this.async().then(e,r)},n.toString=function(){return this.css},n.visitSync=function(e,r){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(r,this.helpers)}catch(a){throw this.handleError(a,r.proxyOf)}if(r.type!=="root"&&r.type!=="document"&&!r.parent)return!0;if(On(o))throw this.getAsyncError()}},n.visitTick=function(e){var r=e[e.length-1],i=r.node,s=r.visitors;if(i.type==="root"||i.type==="document"||i.parent){if(s.length>0&&r.visitorIndex<s.length){var l=s[r.visitorIndex],d=l[0],h=l[1];r.visitorIndex+=1,r.visitorIndex===s.length&&(r.visitors=[],r.visitorIndex=0),this.result.lastPlugin=d;try{return h(i.toProxy(),this.helpers)}catch(p){throw this.handleError(p,i)}}if(r.iterator!==0){for(var o,a=r.iterator;o=i.nodes[i.indexes[a]];)if(i.indexes[a]+=1,!o[pt])return o[pt]=!0,void e.push(Vs(o));r.iterator=0,delete i.indexes[a]}for(var c=r.events;r.eventIndex<c.length;){var u=c[r.eventIndex];if(r.eventIndex+=1,u===0)return void(i.nodes&&i.nodes.length&&(i[pt]=!0,r.iterator=i.getIterator()));if(this.listeners[u])return void(r.visitors=this.listeners[u])}e.pop()}else e.pop()},n.walkSync=function(e){var r=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]||r.walkSync(h)}));else{var d=this.listeners[l];if(d&&this.visitSync(d,e.toProxy()))return}}},n.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})();kn.registerPostcss=function(t){xo=t};var Hl=kn;kn.default=kn,Wh.registerLazyResult(kn),qh.registerLazyResult(kn);var Zh=Tl,Jh=Ei,Yh=Oa,Qh=Pa,Oo=(function(){function t(e,r,i){var s;r=r.toString(),this.stringified=!1,this._processor=e,this._css=r,this._opts=i,this._map=void 0;var l=Jh;this.result=new Qh(this._processor,s,this._opts),this.result.css=r;var d=this;Object.defineProperty(this.result,"root",{get:function(){return d.root}});var h=new Zh(l,s,this._opts,r);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 n=t.prototype;return n.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},n.catch=function(e){return this.async().catch(e)},n.finally=function(e){return this.async().then(e,e)},n.sync=function(){if(this.error)throw this.error;return this.result},n.then=function(e,r){return this.async().then(e,r)},n.toString=function(){return this._css},n.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,r=Yh;try{e=r(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})(),Xh=Oo;Oo.default=Oo;var Kh=Xh,ep=Hl,tp=Ta,np=cr,Fn=(function(){function t(e){e===void 0&&(e=[]),this.version="8.4.38",this.plugins=this.normalize(e)}var n=t.prototype;return n.normalize=function(e){for(var r,i=[],s=V(e);!(r=s()).done;){var l=r.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},n.process=function(e,r){return r===void 0&&(r={}),this.plugins.length||r.parser||r.stringifier||r.syntax?new ep(this,e,r):new Kh(this,e,r)},n.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},t})(),rp=Fn;Fn.default=Fn,np.registerProcessor(Fn),tp.registerProcessor(Fn);var ip=Ai,op=wl,ap=Pi,sp=Ra,cp=Ti,lp=cr,up=xa;function tr(t,n){if(Array.isArray(t))return t.map((function(a){return tr(a)}));var e=t.inputs,r=Qn(t,["inputs"]);if(e){n=[];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})),n.push(l)}}if(r.nodes&&(r.nodes=t.nodes.map((function(a){return tr(a,n)}))),r.source){var d=r.source,h=d.inputId,o=Qn(d,["inputId"]);r.source=o,h!=null&&(r.source.input=n[h])}if(r.type==="root")return new lp(r);if(r.type==="decl")return new ip(r);if(r.type==="rule")return new up(r);if(r.type==="comment")return new ap(r);if(r.type==="atrule")return new sp(r);throw new Error("Unknown node type: "+t.type)}var dp=tr;tr.default=tr;var hp=Ea,Us=Ai,pp=Hl,fp=Xt,Do=rp,mp=Ei,_p=dp,js=Ta,gp=Vl,qs=Pi,zs=Ra,vp=Pa,yp=Ti,bp=Oa,kp=Wl,Ws=xa,Gs=cr,Cp=Ii;function me(){for(var t=arguments.length,n=new Array(t),e=0;e<t;e++)n[e]=arguments[e];return n.length===1&&Array.isArray(n[0])&&(n=n[0]),new Do(n)}me.plugin=function(t,n){var e,r=!1;function i(){for(var s=arguments.length,l=new Array(s),d=0;d<s;d++)l[d]=arguments[d];console&&console.warn&&!r&&(r=!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=n.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,nt=function(t,n,e){return(function(r,i,s){return i in r?Sp(r,i,{enumerable:!0,configurable:!0,writable:!0,value:s}):r[i]=s})(t,(n===void 0?"undefined":ie(n))!=="symbol"?n+"":n,e)};function Ep(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Ip(t){if(t.__esModule)return t;var n=t.default;if(typeof n=="function"){var e=function r(){return J(this,r)?Reflect.construct(n,arguments,this.constructor):n.apply(this,arguments)};e.prototype=n.prototype}else e={};return Object.defineProperty(e,"__esModule",{value:!0}),Object.keys(t).forEach((function(r){var i=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,i.get?i:{enumerable:!0,get:function(){return t[r]}})})),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 Ap=Bo.exports,De=Ip(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"}))),Hs=Ap,Zs=De,Mo=(function(t){function n(r,i,s,l,d,h){var o;return(o=t.call(this,r)||this).name="CssSyntaxError",o.reason=r,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,n),o}$e(n,t);var e=n.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(r){var i=this;if(!this.source)return"";var s=this.source;r==null&&(r=Hs.isColorSupported),Zs&&r&&(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(r){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 r=this.showSourceCode();return r&&(r=`
29
+
30
+ `+r+`
31
+ `),this.name+": "+this.message+r},n})(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 n=t.prototype;return n.atrule=function(e,r){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||"")+(r?";":"");this.builder(i+s+l,e)}},n.beforeAfter=function(e,r){var i;i=e.type==="decl"?this.raw(e,null,"beforeDecl"):e.type==="comment"?this.raw(e,null,"beforeComment"):r==="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},n.block=function(e,r){var i,s=this.raw(e,"between","beforeOpen");this.builder(r+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")},n.body=function(e){for(var r=e.nodes.length-1;r>0&&e.nodes[r].type==="comment";)r-=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,r!==s||i)}},n.comment=function(e){var r=this.raw(e,"left","commentLeft"),i=this.raw(e,"right","commentRight");this.builder("/*"+r+e.text+i+"*/",e)},n.decl=function(e,r){var i=this.raw(e,"between","colon"),s=e.prop+i+this.rawValue(e,"value");e.important&&(s+=e.raws.important||" !important"),r&&(s+=";"),this.builder(s,e)},n.document=function(e){this.body(e)},n.raw=function(e,r,i){var s;if(i||(i=r),r&&(s=e.raws[r])!==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[r])!==void 0)return!1})),s===void 0&&(s=Js[i]),d.rawCache[i]=s,s},n.rawBeforeClose=function(e){var r;return e.walk((function(i){if(i.nodes&&i.nodes.length>0&&i.raws.after!==void 0)return(r=i.raws.after).includes(`
38
+ `)&&(r=r.replace(/[^\n]+$/,"")),!1})),r&&(r=r.replace(/\S/g,"")),r},n.rawBeforeComment=function(e,r){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(r,null,"beforeDecl"):i&&(i=i.replace(/\S/g,"")),i},n.rawBeforeDecl=function(e,r){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(r,null,"beforeRule"):i&&(i=i.replace(/\S/g,"")),i},n.rawBeforeOpen=function(e){var r;return e.walk((function(i){if(i.type!=="decl"&&(r=i.raws.between)!==void 0)return!1})),r},n.rawBeforeRule=function(e){var r;return e.walk((function(i){if(i.nodes&&(i.parent!==e||e.first!==i)&&i.raws.before!==void 0)return(r=i.raws.before).includes(`
41
+ `)&&(r=r.replace(/[^\n]+$/,"")),!1})),r&&(r=r.replace(/\S/g,"")),r},n.rawColon=function(e){var r;return e.walkDecls((function(i){if(i.raws.between!==void 0)return r=i.raws.between.replace(/[^\s:]/g,""),!1})),r},n.rawEmptyBody=function(e){var r;return e.walk((function(i){if(i.nodes&&i.nodes.length===0&&(r=i.raws.after)!==void 0)return!1})),r},n.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 r=(r=l[l.length-1]).replace(/\S/g,""),!1}})),r);var r},n.rawSemicolon=function(e){var r;return e.walk((function(i){if(i.nodes&&i.nodes.length&&i.last.type==="decl"&&(r=i.raws.semicolon)!==void 0)return!1})),r},n.rawValue=function(e,r){var i=e[r],s=e.raws[r];return s&&s.value===i?s.raw:i},n.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},n.rule=function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")},n.stringify=function(e,r){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,r)},t})(),Zl=Lo;Lo.default=Lo;var Tp=Zl;function No(t,n){new Tp(n).stringify(t)}var Ri=No;No.default=No;var wr=Gt.isClean,Pp=Gt.my,Rp=Da,xp=Zl,Op=Ri;function Fo(t,n){var e=new t.constructor;for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&r!=="proxyCache"){var i=t[r],s=i===void 0?"undefined":ie(i);r==="parent"&&s==="object"?n&&(e[r]=n):r==="source"?e[r]=i:Array.isArray(i)?e[r]=i.map((function(l){return Fo(l,e)})):(s==="object"&&i!==null&&(i=Fo(i)),e[r]=i)}return e}var Vo=(function(){function t(e){for(var r in e===void 0&&(e={}),this.raws={},this[wr]=!1,this[Pp]=!0,e)if(r==="nodes"){this.nodes=[];for(var i,s=V(e[r]);!(i=s()).done;){var l=i.value;typeof l.clone=="function"?this.append(l.clone()):this.append(l)}}else this[r]=e[r]}var n=t.prototype;return n.addToError=function(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){var r=this.source;e.stack=e.stack.replace(/\n\s{4}at /,"$&"+r.input.from+":"+r.start.line+":"+r.start.column+"$&")}return e},n.after=function(e){return this.parent.insertAfter(this,e),this},n.assign=function(e){for(var r in e===void 0&&(e={}),e)this[r]=e[r];return this},n.before=function(e){return this.parent.insertBefore(this,e),this},n.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},n.clone=function(e){e===void 0&&(e={});var r=Fo(this);for(var i in e)r[i]=e[i];return r},n.cloneAfter=function(e){e===void 0&&(e={});var r=this.clone(e);return this.parent.insertAfter(this,r),r},n.cloneBefore=function(e){e===void 0&&(e={});var r=this.clone(e);return this.parent.insertBefore(this,r),r},n.error=function(e,r){if(r===void 0&&(r={}),this.source){var i=this.rangeBy(r),s=i.end,l=i.start;return this.source.input.error(e,{column:l.column,line:l.line},{column:s.column,line:s.line},r)}return new Rp(e)},n.getProxyProcessor=function(){return{get:function(e,r){return r==="proxyOf"?e:r==="root"?function(){return e.root().toProxy()}:e[r]},set:function(e,r,i){return e[r]===i||(e[r]=i,r!=="prop"&&r!=="value"&&r!=="name"&&r!=="params"&&r!=="important"&&r!=="text"||e.markDirty()),!0}}},n.markDirty=function(){if(this[wr]){this[wr]=!1;for(var e=this;e=e.parent;)e[wr]=!1}},n.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},n.positionBy=function(e,r){var i=this.source.start;if(e.index)i=this.positionInside(e.index,r);else if(e.word){var s=(r=this.toString()).indexOf(e.word);s!==-1&&(i=this.positionInside(s,r))}return i},n.positionInside=function(e,r){for(var i=r||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}},n.prev=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}},n.rangeBy=function(e){var r={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:r.column+1,line:r.line};if(e.word){var s=this.toString(),l=s.indexOf(e.word);l!==-1&&(r=this.positionInside(l,s),i=this.positionInside(l+e.word.length,s))}else e.start?r={column:e.start.column,line:e.start.line}:e.index&&(r=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<r.line||i.line===r.line&&i.column<=r.column)&&(i={column:r.column+1,line:r.line}),{end:i,start:r}},n.raw=function(e,r){return new xp().raw(this,e,r)},n.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},n.replaceWith=function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];if(this.parent){for(var s,l=this,d=!1,h=V(r);!(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},n.root=function(){for(var e=this;e.parent&&e.parent.type!=="document";)e=e.parent;return e},n.toJSON=function(e,r){var i={},s=r==null;r=r||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,r):a}));else if((h===void 0?"undefined":ie(h))==="object"&&h.toJSON)i[d]=h.toJSON(null,r);else if(d==="source"){var o=r.get(h.input);o==null&&(o=l,r.set(h.input,l),l++),i[d]={end:h.end,inputId:o,start:h.start}}else i[d]=h}return s&&(i.inputs=[].concat(r.keys()).map((function(a){return a.toJSON()}))),i},n.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},n.toString=function(e){e===void 0&&(e=Op),e.stringify&&(e=e.stringify);var r="";return e(this,(function(i){r+=i})),r},n.warn=function(e,r,i){var s={node:this};for(var l in i)s[l]=i[l];return e.warn(r,s)},Ue(t,[{key:"proxyOf",get:function(){return this}}]),t})(),xi=Vo;Vo.default=Vo;var Uo=(function(t){function n(e){var r;return e&&e.value!==void 0&&typeof e.value!="string"&&(e=pe({},e,{value:String(e.value)})),(r=t.call(this,e)||this).type="decl",r}return $e(n,t),Ue(n,[{key:"variable",get:function(){return this.prop.startsWith("--")||this.prop[0]==="$"}}]),n})(xi),Oi=Uo;Uo.default=Uo;var Dp=function(t){t===void 0&&(t=21);for(var n="",e=t;e--;)n+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return n},Ys=De.SourceMapConsumer,Qs=De.SourceMapGenerator,Bp=De.existsSync,Mp=De.readFileSync,Hi=De.dirname,Lp=De.join,jo=(function(){function t(e,r){if(r.map!==!1){this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");var i=r.map?r.map.prev:void 0,s=this.loadMap(r.from,i);!this.mapFile&&r.from&&(this.mapFile=r.from),this.mapFile&&(this.root=Hi(this.mapFile)),s&&(this.text=s)}}var n=t.prototype;return n.consumer=function(){return this.consumerCache||(this.consumerCache=new Ys(this.text)),this.consumerCache},n.decodeInline=function(e){var r;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 r=e.substr(RegExp.lastMatch.length),zt?zt.from(r,"base64").toString():window.atob(r);var i=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+i)},n.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},n.isMap=function(e){return(e===void 0?"undefined":ie(e))==="object"&&(typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections))},n.loadAnnotation=function(e){var r=e.match(/\/\*\s*# sourceMappingURL=/gm);if(r){var i=e.lastIndexOf(r.pop()),s=e.indexOf("*/",i);i>-1&&s>-1&&(this.annotation=this.getAnnotationURL(e.substring(i,s)))}},n.loadFile=function(e){if(this.root=Hi(e),Bp(e))return this.mapFile=e,Mp(e,"utf-8").toString().trim()},n.loadMap=function(e,r){if(r===!1)return!1;if(r){if(typeof r=="string")return r;if(typeof r!="function"){if(J(r,Ys))return Qs.fromSourceMap(r).toString();if(J(r,Qs))return r.toString();if(this.isMap(r))return JSON.stringify(r);throw new Error("Unsupported previous source map format: "+r.toString())}var i=r(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)}}},n.startWith=function(e,r){return!!e&&e.substr(0,r.length)===r},n.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},t})(),Jl=jo;jo.default=jo;var Np=De.SourceMapConsumer,Fp=De.SourceMapGenerator,Xs=De.fileURLToPath,Sr=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),Zr=(function(){function t(e,r){if(r===void 0&&(r={}),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,r.from&&(!ec||/^\w+:\/\//.test(r.from)||qo(r.from)?this.file=r.from:this.file=zo(r.from)),ec&&jp){var i=new Up(this.css,r);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 n=t.prototype;return n.error=function(e,r,i,s){var l,d,h;if(s===void 0&&(s={}),r&&(r===void 0?"undefined":ie(r))==="object"){var o=r,a=i;if(typeof o.offset=="number"){var c=this.fromOffset(o.offset);r=c.line,i=c.col}else r=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(r);r=p.line,i=p.col}var _=this.origin(r,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?r:{column:i,line:r},d===void 0?i:{column:h,line:d},this.css,this.file,s.plugin)).input={column:i,endColumn:h,endLine:d,line:r,source:this.css},this.file&&(Sr&&(l.input.url=Sr(this.file).toString()),l.input.file=this.file),l},n.fromOffset=function(e){var r;if(this[Ji])r=this[Ji];else{var i=this.css.split(`
44
+ `);r=new Array(i.length);for(var s=0,l=0,d=i.length;l<d;l++)r[l]=s,s+=i[l].length+1;this[Ji]=r}var h=0;if(e>=r[r.length-1])h=r.length-1;else for(var o,a=r.length-2;h<a;)if(e<r[o=h+(a-h>>1)])a=o-1;else{if(!(e>=r[o+1])){h=o;break}h=o+1}return{col:e-r[h]+1,line:h+1}},n.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:zo(this.map.consumer().sourceRoot||this.map.root||".",e)},n.origin=function(e,r,i,s){if(!this.map)return!1;var l,d,h=this.map.consumer(),o=h.originalPositionFor({column:r,line:e});if(!o.source)return!1;typeof i=="number"&&(l=h.originalPositionFor({column:s,line:i})),d=qo(o.source)?Sr(o.source):new URL(o.source,this.map.consumer().sourceRoot||Sr(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(!Xs)throw new Error("file: protocol is not available in this PostCSS build");a.file=Xs(d)}var c=h.sourceContentFor(o.source);return c&&(a.source=c),a},n.toJSON=function(){for(var e={},r=0,i=["hasBOM","css","file","id"];r<i.length;r++){var s=i[r];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=Zr;Zr.default=Zr,Zi&&Zi.registerInput&&Zi.registerInput(Zr);var Yl=De.SourceMapConsumer,Jr=De.SourceMapGenerator,Yr=De.dirname,Ql=De.relative,Xl=De.resolve,Kl=De.sep,tc=De.pathToFileURL,qp=Di,zp=!!(Yl&&Jr),Wp=!!(Yr&&Xl&&Ql&&Kl),eu=(function(){function t(e,r,i,s){this.stringify=e,this.mapOpts=i.map||{},this.root=r,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 n=t.prototype;return n.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 r=`
45
+ `;this.css.includes(`\r
46
+ `)&&(r=`\r
47
+ `),this.css+=r+"/*# sourceMappingURL="+e+" */"},n.applyPrevMaps=function(){for(var e,r=V(this.previous());!(e=r()).done;){var i=e.value,s=this.toUrl(this.path(i.file)),l=i.root||Yr(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)))}},n.clearAnnotation=function(){if(this.mapOpts.annotation!==!1)if(this.root)for(var e,r=this.root.nodes.length-1;r>=0;r--)(e=this.root.nodes[r]).type==="comment"&&e.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(r);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))},n.generate=function(){if(this.clearAnnotation(),Wp&&zp&&this.isMap())return this.generateMap();var e="";return this.stringify(this.root,(function(r){e+=r})),[e]},n.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=Jr.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new Jr({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]},n.generateString=function(){var e=this;this.css="",this.map=new Jr({file:this.outputFile(),ignoreInvalidMapping:!0});var r,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))),(r=o.match(/\n/g))?(s+=r.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)))}}))},n.isAnnotation=function(){return!!this.isInline()||(this.mapOpts.annotation!==void 0?this.mapOpts.annotation:!this.previous().length||this.previous().some((function(e){return e.annotation})))},n.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(r){return r.inline})))},n.isMap=function(){return this.opts.map!==void 0?!!this.opts.map:this.previous().length>0},n.isSourcesContent=function(){return this.mapOpts.sourcesContent!==void 0?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some((function(e){return e.withContent()}))},n.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},n.path=function(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;var r=this.memoizedPaths.get(e);if(r)return r;var i=this.opts.to?Yr(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(i=Yr(Xl(i,this.mapOpts.annotation)));var s=Ql(i,e);return this.memoizedPaths.set(e,s),s},n.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 r=new qp(this.originalCSS,this.opts);r.map&&this.previousMaps.push(r.map)}return this.previousMaps},n.setSourcesContent=function(){var e=this,r={};if(this.root)this.root.walk((function(s){if(s.source){var l=s.source.input.from;if(l&&!r[l]){r[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)}},n.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))},n.toBase64=function(e){return zt?zt.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},n.toFileUrl=function(e){var r=this.memoizedFileURLs.get(e);if(r)return r;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")},n.toUrl=function(e){var r=this.memoizedURLs.get(e);if(r)return r;Kl==="\\"&&(e=e.replace(/\\/g,"/"));var i=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,i),i},t})(),Wo=(function(t){function n(e){var r;return(r=t.call(this,e)||this).type="comment",r}return $e(n,t),n})(xi),Bi=Wo;Wo.default=Wo;var tu,Ba,Ma,nu,ru=Gt.isClean,iu=Gt.my,ou=Oi,au=Bi;function su(t){return t.map((function(n){return n.nodes&&(n.nodes=su(n.nodes)),delete n.source,n}))}function cu(t){if(t[ru]=!1,t.proxyOf.nodes)for(var n,e=V(t.proxyOf.nodes);!(n=e()).done;)cu(n.value)}var Pt=(function(t){function n(){return t.apply(this,arguments)||this}$e(n,t);var e=n.prototype;return e.append=function(){for(var r=arguments.length,i=new Array(r),s=0;s<r;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(r){if(t.prototype.cleanRaws.call(this,r),this.nodes)for(var i,s=V(this.nodes);!(i=s()).done;)i.value.cleanRaws(r)},e.each=function(r){if(this.proxyOf.nodes){for(var i,s,l=this.getIterator();this.indexes[l]<this.proxyOf.nodes.length&&(i=this.indexes[l],(s=r(this.proxyOf.nodes[i],i))!==!1);)this.indexes[l]+=1;return delete this.indexes[l],s}},e.every=function(r){return this.nodes.every(r)},e.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var r=this.lastEach;return this.indexes[r]=0,r},e.getProxyProcessor=function(){return{get:function(r,i){return i==="proxyOf"?r:r[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=r)[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 r[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 r.root().toProxy()}:i==="nodes"?r.nodes.map((function(s){return s.toProxy()})):i==="first"||i==="last"?r[i].toProxy():r[i]:r[i]},set:function(r,i,s){return r[i]===s||(r[i]=s,i!=="name"&&i!=="params"&&i!=="selector"||r.markDirty()),!0}}},e.index=function(r){return typeof r=="number"?r:(r.proxyOf&&(r=r.proxyOf),this.proxyOf.nodes.indexOf(r))},e.insertAfter=function(r,i){var s,l=this.index(r),d=this.normalize(i,this.proxyOf.nodes[l]).reverse();l=this.index(r);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(r,i){var s,l=this.index(r),d=l===0&&"prepend",h=this.normalize(i,this.proxyOf.nodes[l],d).reverse();l=this.index(r);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(r,i){var s=this;if(typeof r=="string")r=su(tu(r).nodes);else if(r===void 0)r=[];else if(Array.isArray(r))for(var l,d=V(r=r.slice(0));!(l=d()).done;){var h=l.value;h.parent&&h.parent.removeChild(h,"ignore")}else if(r.type==="root"&&this.type!=="document")for(var o,a=V(r=r.nodes.slice(0));!(o=a()).done;){var c=o.value;c.parent&&c.parent.removeChild(c,"ignore")}else if(r.type)r=[r];else if(r.prop){if(r.value===void 0)throw new Error("Value field is missed in node creation");typeof r.value!="string"&&(r.value=String(r.value)),r=[new ou(r)]}else if(r.selector)r=[new Ba(r)];else if(r.name)r=[new Ma(r)];else{if(!r.text)throw new Error("Unknown node type in node creation");r=[new au(r)]}return r.map((function(u){return u[iu]||n.rebuild(u),(u=u.proxyOf).parent&&u.parent.removeChild(u),u[ru]&&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 r=arguments.length,i=new Array(r),s=0;s<r;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(r){return r.parent=this,this.proxyOf.nodes.push(r),this},e.removeAll=function(){for(var r,i=V(this.proxyOf.nodes);!(r=i()).done;)r.value.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this},e.removeChild=function(r){var i;for(var s in r=this.index(r),this.proxyOf.nodes[r].parent=void 0,this.proxyOf.nodes.splice(r,1),this.indexes)(i=this.indexes[s])>=r&&(this.indexes[s]=i-1);return this.markDirty(),this},e.replaceValues=function(r,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(r,s))})),this.markDirty(),this},e.some=function(r){return this.nodes.some(r)},e.walk=function(r){return this.each((function(i,s){var l;try{l=r(i,s)}catch(d){throw i.addToError(d)}return l!==!1&&i.walk&&(l=i.walk(r)),l}))},e.walkAtRules=function(r,i){return i?J(r,RegExp)?this.walk((function(s,l){if(s.type==="atrule"&&r.test(s.name))return i(s,l)})):this.walk((function(s,l){if(s.type==="atrule"&&s.name===r)return i(s,l)})):(i=r,this.walk((function(s,l){if(s.type==="atrule")return i(s,l)})))},e.walkComments=function(r){return this.walk((function(i,s){if(i.type==="comment")return r(i,s)}))},e.walkDecls=function(r,i){return i?J(r,RegExp)?this.walk((function(s,l){if(s.type==="decl"&&r.test(s.prop))return i(s,l)})):this.walk((function(s,l){if(s.type==="decl"&&s.prop===r)return i(s,l)})):(i=r,this.walk((function(s,l){if(s.type==="decl")return i(s,l)})))},e.walkRules=function(r,i){return i?J(r,RegExp)?this.walk((function(s,l){if(s.type==="rule"&&r.test(s.selector))return i(s,l)})):this.walk((function(s,l){if(s.type==="rule"&&s.selector===r)return i(s,l)})):(i=r,this.walk((function(s,l){if(s.type==="rule")return i(s,l)})))},Ue(n,[{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]}}]),n})(xi);Pt.registerParse=function(t){tu=t},Pt.registerRule=function(t){Ba=t},Pt.registerAtRule=function(t){Ma=t},Pt.registerRoot=function(t){nu=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,nu.prototype),t[iu]=!0,t.nodes&&t.nodes.forEach((function(n){Pt.rebuild(n)}))};var lu,uu,nr=(function(t){function n(e){var r;return(r=t.call(this,pe({type:"document"},e))||this).nodes||(r.nodes=[]),r}return $e(n,t),n.prototype.toResult=function(e){return e===void 0&&(e={}),new lu(new uu,this,e).stringify()},n})(Kt);nr.registerLazyResult=function(t){lu=t},nr.registerProcessor=function(t){uu=t};var La=nr;nr.default=nr;var Go=(function(){function t(n,e){if(e===void 0&&(e={}),this.type="warning",this.text=n,e.node&&e.node.source){var r=e.node.rangeBy(e);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.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,r,i){this.processor=e,this.messages=[],this.root=r,this.opts=i,this.css=void 0,this.map=void 0}var n=t.prototype;return n.toString=function(){return this.css},n.warn=function(e,r){r===void 0&&(r={}),r.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(r.plugin=this.lastPlugin.postcssPlugin);var i=new Gp(e,r);return this.messages.push(i),i},n.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,nc=34,Er=92,rc=47,Ir=10,Dn=32,Ar=12,Tr=9,Pr=13,$p=91,Hp=93,Zp=40,Jp=41,Yp=123,Qp=125,Xp=59,Kp=42,ef=58,tf=64,Rr=/[\t\n\f\r "#'()/;[\\\]{}]/g,xr=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,nf=/.[\r\n"'(/\\]/,ic=/[\da-f]/i,hu=Kt,Qr=(function(t){function n(r){var i;return(i=t.call(this,r)||this).type="atrule",i}$e(n,t);var e=n.prototype;return e.append=function(){for(var r=arguments.length,i=new Array(r),s=0;s<r;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 r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];var l;return this.proxyOf.nodes||(this.nodes=[]),(l=t.prototype.prepend).call.apply(l,[].concat([this],i))},n})(hu),Fa=Qr;Qr.default=Qr,hu.registerAtRule(Qr);var pu,fu,mu=Kt,Sn=(function(t){function n(r){var i;return(i=t.call(this,r)||this).type="root",i.nodes||(i.nodes=[]),i}$e(n,t);var e=n.prototype;return e.normalize=function(r,i,s){var l=t.prototype.normalize.call(this,r);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(r,i){var s=this.index(r);return!i&&s===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[s].raws.before),t.prototype.removeChild.call(this,r)},e.toResult=function(r){return r===void 0&&(r={}),new pu(new fu,this,r).stringify()},n})(mu);Sn.registerLazyResult=function(t){pu=t},Sn.registerProcessor=function(t){fu=t};var lr=Sn;Sn.default=Sn,mu.registerRoot(Sn);var rr={comma:function(t){return rr.split(t,[","],!0)},space:function(t){return rr.split(t,[" ",`
49
+ `," "])},split:function(t,n,e){for(var r,i=[],s="",l=!1,d=0,h=!1,o="",a=!1,c=V(t);!(r=c()).done;){var u=r.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&&n.includes(u)&&(l=!0),l?(s!==""&&i.push(s.trim()),s="",l=!1):s+=u}return(e||s!=="")&&i.push(s.trim()),i}},_u=rr;rr.default=rr;var gu=Kt,rf=_u,Xr=(function(t){function n(e){var r;return(r=t.call(this,e)||this).type="rule",r.nodes||(r.nodes=[]),r}return $e(n,t),Ue(n,[{key:"selectors",get:function(){return rf.comma(this.selector)},set:function(e){var r=this.selector?this.selector.match(/,\s*/):null,i=r?r[0]:","+this.raw("between","beforeOpen");this.selector=e.join(i)}}]),n})(gu),Va=Xr;Xr.default=Xr,gu.registerRule(Xr);var of=Oi,af=function(t,n){n===void 0&&(n={});var e,r,i,s,l,d,h,o,a,c,u=t.css.valueOf(),p=n.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 Ir:case Dn:case Tr:case Pr:case Ar:r=m;do r+=1,e=u.charCodeAt(r);while(e===Dn||e===Ir||e===Tr||e===Pr||e===Ar);c=["space",u.slice(m,r)],m=r-1;break;case $p:case Hp:case Yp:case Qp:case ef:case Xp: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!==nc&&a!==Dn&&a!==Ir&&a!==Tr&&a!==Ar&&a!==Pr){r=m;do{if(d=!1,(r=u.indexOf(")",r+1))===-1){if(p||E){r=m;break}y("bracket")}for(h=r;u.charCodeAt(h-1)===Er;)h-=1,d=!d}while(d);c=["brackets",u.slice(m,r+1),m,r],m=r}else r=u.indexOf(")",m+1),s=u.slice(m,r+1),r===-1||nf.test(s)?c=["(","(",m]:(c=["brackets",s,m,r],m=r);break;case Yi:case nc:i=e===Yi?"'":'"',r=m;do{if(d=!1,(r=u.indexOf(i,r+1))===-1){if(p||E){r=m+1;break}y("string")}for(h=r;u.charCodeAt(h-1)===Er;)h-=1,d=!d}while(d);c=["string",u.slice(m,r+1),m,r],m=r;break;case tf:Rr.lastIndex=m+1,Rr.test(u),r=Rr.lastIndex===0?u.length-1:Rr.lastIndex-2,c=["at-word",u.slice(m,r+1),m,r],m=r;break;case Er:for(r=m,l=!0;u.charCodeAt(r+1)===Er;)r+=1,l=!l;if(e=u.charCodeAt(r+1),l&&e!==rc&&e!==Dn&&e!==Ir&&e!==Tr&&e!==Pr&&e!==Ar&&(r+=1,ic.test(u.charAt(r)))){for(;ic.test(u.charAt(r+1));)r+=1;u.charCodeAt(r+1)===Dn&&(r+=1)}c=["word",u.slice(m,r+1),m,r],m=r;break;default:e===rc&&u.charCodeAt(m+1)===Kp?((r=u.indexOf("*/",m+2)+1)===0&&(p||E?r=u.length:y("comment")),c=["comment",u.slice(m,r+1),m,r],m=r):(xr.lastIndex=m+1,xr.test(u),r=xr.lastIndex===0?u.length-1:xr.lastIndex-2,c=["word",u.slice(m,r+1),m,r],g.push(c),m=r)}return m++,c}},position:function(){return m}}},sf=Bi,cf=Fa,lf=lr,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 n=t.prototype;return n.atrule=function(e){var r,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((r=(e=this.tokenizer.nextToken())[0])==="("||r==="["?a.push(r==="("?")":"]"):r==="{"&&a.length>0?a.push("}"):r===a[a.length-1]&&a.pop(),a.length===0){if(r===";"){l.source.end=this.getPosition(e[2]),l.source.end.offset++,this.semicolon=!0;break}if(r==="{"){h=!0;break}if(r==="}"){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)},n.checkMissedSemicolon=function(e){var r=this.colon(e);if(r!==!1){for(var i,s=0,l=r-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])}},n.colon=function(e){for(var r,i,s,l,d=0,h=V(e.entries());!(l=h()).done;){var o=l.value,a=o[0];if((i=(r=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(r)}s=r}return!1},n.comment=function(e){var r=new sf;this.init(r,e[2]),r.source.end=this.getPosition(e[3]||e[2]),r.source.end.offset++;var i=e[1].slice(2,-2);if(/^\s*$/.test(i))r.text="",r.raws.left=i,r.raws.right="";else{var s=i.match(/^(\s*)([^]*\S)(\s*)$/);r.text=s[2],r.raws.left=s[1],r.raws.right=s[3]}},n.createTokenizer=function(){this.tokenizer=af(this.input)},n.decl=function(e,r){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),r),i.value.includes(":")&&!r&&this.checkMissedSemicolon(e)},n.doubleColon=function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})},n.emptyRule=function(e){var r=new oc;this.init(r,e[2]),r.selector="",r.raws.between="",this.current=r},n.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)},n.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())},n.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var r=this.current.nodes[this.current.nodes.length-1];r&&r.type==="rule"&&!r.raws.ownSemicolon&&(r.raws.ownSemicolon=this.spaces,this.spaces="")}},n.getPosition=function(e){var r=this.input.fromOffset(e);return{column:r.col,line:r.line,offset:e}},n.init=function(e,r){this.current.push(e),e.source={input:this.input,start:this.getPosition(r)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)},n.other=function(e){for(var r=!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()),r=!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()&&(r=!0),d.length>0&&this.unclosedBracket(l),r&&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)},n.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()},n.precheckMissedSemicolon=function(){},n.raw=function(e,r,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[r]={raw:_,value:c}}e[r]=c},n.rule=function(e){e.pop();var r=new oc;this.init(r,e[0][2]),r.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(r,"selector",e),this.current=r},n.spacesAndCommentsFromEnd=function(e){for(var r,i="";e.length&&((r=e[e.length-1][0])==="space"||r==="comment");)i=e.pop()[1]+i;return i},n.spacesAndCommentsFromStart=function(e){for(var r,i="";e.length&&((r=e[0][0])==="space"||r==="comment");)i+=e.shift()[1];return i},n.spacesFromEnd=function(e){for(var r="";e.length&&e[e.length-1][0]==="space";)r=e.pop()[1]+r;return r},n.stringFrom=function(e,r){for(var i="",s=r;s<e.length;s++)i+=e[s][1];return e.splice(r,e.length-r),i},n.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)},n.unclosedBracket=function(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})},n.unexpectedClose=function(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})},n.unknownWord=function(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})},n.unnamedAtrule=function(e,r){throw this.input.error("At-rule without name",{offset:r[2]},{offset:r[2]+r[1].length})},t})(),df=Kt,hf=uf,pf=Di;function Kr(t,n){var e=new pf(t,n),r=new hf(e);try{r.parse()}catch(i){throw i}return r.root}var Ua=Kr;Kr.default=Kr,df.registerParse(Kr);var ft=Gt.isClean,ff=Gt.my,mf=eu,_f=Ri,gf=Kt,vf=La,sc=Na,yf=Ua,bf=lr,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 Bn(t){return(t===void 0?"undefined":ie(t))==="object"&&typeof t.then=="function"}function vu(t){var n=!1,e=kf[t.type];return t.type==="decl"?n=t.prop.toLowerCase():t.type==="atrule"&&(n=t.name.toLowerCase()),n&&t.append?[e,e+"-"+n,0,e+"Exit",e+"Exit-"+n]:n?[e,e+"-"+n,e+"Exit",e+"Exit-"+n]: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(n){return Ho(n)})),t}var Zo={},Cn=(function(){function t(e,r,i){var s,l=this;if(this.stringified=!1,this.processed=!1,(r===void 0?"undefined":ie(r))!=="object"||r===null||r.type!=="root"&&r.type!=="document")if(J(r,t)||J(r,sc))s=Ho(r.root),r.map&&(i.map===void 0&&(i.map={}),i.map.inline||(i.map.inline=!1),i.map.prev=r.map);else{var d=yf;i.syntax&&(d=i.syntax.parse),i.parser&&(d=i.parser),d.parse&&(d=d.parse);try{s=d(r,i)}catch(h){this.processed=!0,this.error=h}s&&!s[ff]&&gf.rebuild(s)}else s=Ho(r);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 n=t.prototype;return n.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},n.catch=function(e){return this.async().catch(e)},n.finally=function(e){return this.async().then(e,e)},n.getAsyncError=function(){throw new Error("Use process(css).then(cb) to work with async plugins")},n.handleError=function(e,r){var i=this.result.lastPlugin;try{r&&r.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},n.prepareVisitors=function(){var e=this;this.listeners={};for(var r,i=function(o,a,c){e.listeners[a]||(e.listeners[a]=[]),e.listeners[a].push([o,c])},s=V(this.plugins);!(r=s()).done;){var l=r.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},n.runAsync=function(){var e=this;return Ca((function(){var r,i,s,l,d,h,o,a,c,u,p,_;return Xn(this,(function(m){switch(m.label){case 0:e.plugin=0,r=0,m.label=1;case 1:if(!(r<e.plugins.length))return[3,6];if(i=e.plugins[r],!Bn(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 r++,[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(!Bn(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 Xn(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()]}}))}))()},n.runOnRoot=function(e){var r=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,r.helpers)}));return Bn(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)}},n.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,r=_f;e.syntax&&(r=e.syntax.stringify),e.stringifier&&(r=e.stringifier),r.stringify&&(r=r.stringify);var i=new mf(r,this.result.root,this.result.opts).generate();return this.result.css=i[0],this.result.map=i[1],this.result},n.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,r=V(this.plugins);!(e=r()).done;){var i=e.value;if(Bn(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},n.then=function(e,r){return this.async().then(e,r)},n.toString=function(){return this.css},n.visitSync=function(e,r){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(r,this.helpers)}catch(a){throw this.handleError(a,r.proxyOf)}if(r.type!=="root"&&r.type!=="document"&&!r.parent)return!0;if(Bn(o))throw this.getAsyncError()}},n.visitTick=function(e){var r=e[e.length-1],i=r.node,s=r.visitors;if(i.type==="root"||i.type==="document"||i.parent){if(s.length>0&&r.visitorIndex<s.length){var l=s[r.visitorIndex],d=l[0],h=l[1];r.visitorIndex+=1,r.visitorIndex===s.length&&(r.visitors=[],r.visitorIndex=0),this.result.lastPlugin=d;try{return h(i.toProxy(),this.helpers)}catch(p){throw this.handleError(p,i)}}if(r.iterator!==0){for(var o,a=r.iterator;o=i.nodes[i.indexes[a]];)if(i.indexes[a]+=1,!o[ft])return o[ft]=!0,void e.push(cc(o));r.iterator=0,delete i.indexes[a]}for(var c=r.events;r.eventIndex<c.length;){var u=c[r.eventIndex];if(r.eventIndex+=1,u===0)return void(i.nodes&&i.nodes.length&&(i[ft]=!0,r.iterator=i.getIterator()));if(this.listeners[u])return void(r.visitors=this.listeners[u])}e.pop()}else e.pop()},n.walkSync=function(e){var r=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]||r.walkSync(h)}));else{var d=this.listeners[l];if(d&&this.visitSync(d,e.toProxy()))return}}},n.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})();Cn.registerPostcss=function(t){Zo=t};var yu=Cn;Cn.default=Cn,bf.registerLazyResult(Cn),vf.registerLazyResult(Cn);var Sf=eu,Ef=Ri,If=Ua,Af=Na,Jo=(function(){function t(e,r,i){var s;r=r.toString(),this.stringified=!1,this._processor=e,this._css=r,this._opts=i,this._map=void 0;var l=Ef;this.result=new Af(this._processor,s,this._opts),this.result.css=r;var d=this;Object.defineProperty(this.result,"root",{get:function(){return d.root}});var h=new Sf(l,s,this._opts,r);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 n=t.prototype;return n.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},n.catch=function(e){return this.async().catch(e)},n.finally=function(e){return this.async().then(e,e)},n.sync=function(){if(this.error)throw this.error;return this.result},n.then=function(e,r){return this.async().then(e,r)},n.toString=function(){return this._css},n.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,r=If;try{e=r(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=lr,Vn=(function(){function t(e){e===void 0&&(e=[]),this.version="8.4.38",this.plugins=this.normalize(e)}var n=t.prototype;return n.normalize=function(e){for(var r,i=[],s=V(e);!(r=s()).done;){var l=r.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},n.process=function(e,r){return r===void 0&&(r={}),this.plugins.length||r.parser||r.stringifier||r.syntax?new Rf(this,e,r):new Pf(this,e,r)},n.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},t})(),Df=Vn;Vn.default=Vn,Of.registerProcessor(Vn),xf.registerProcessor(Vn);var Bf=Oi,Mf=Jl,Lf=Bi,Nf=Fa,Ff=Di,Vf=lr,Uf=Va;function ir(t,n){if(Array.isArray(t))return t.map((function(a){return ir(a)}));var e=t.inputs,r=Qn(t,["inputs"]);if(e){n=[];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})),n.push(l)}}if(r.nodes&&(r.nodes=t.nodes.map((function(a){return ir(a,n)}))),r.source){var d=r.source,h=d.inputId,o=Qn(d,["inputId"]);r.source=o,h!=null&&(r.source.input=n[h])}if(r.type==="root")return new Vf(r);if(r.type==="decl")return new Bf(r);if(r.type==="rule")return new Uf(r);if(r.type==="comment")return new Lf(r);if(r.type==="atrule")return new Nf(r);throw new Error("Unknown node type: "+t.type)}var jf=ir;ir.default=ir;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,Qf=_u,pc=Va,fc=lr,Xf=xi;function _e(){for(var t=arguments.length,n=new Array(t),e=0;e<t;e++)n[e]=arguments[e];return n.length===1&&Array.isArray(n[0])&&(n=n[0]),new Yo(n)}_e.plugin=function(t,n){var e,r=!1;function i(){for(var s=arguments.length,l=new Array(s),d=0;d<s;d++)l[d]=arguments[d];console&&console.warn&&!r&&(r=!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=n.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=Qf,_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=Xf,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,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];nt(this,"parentElement",null),nt(this,"parentNode",null),nt(this,"ownerDocument"),nt(this,"firstChild",null),nt(this,"lastChild",null),nt(this,"previousSibling",null),nt(this,"nextSibling",null),nt(this,"ELEMENT_NODE",1),nt(this,"TEXT_NODE",3),nt(this,"nodeType"),nt(this,"nodeName"),nt(this,"RRNodeType")}var n=t.prototype;return n.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},n.appendChild=function(e){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")},n.insertBefore=function(e,r){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")},n.removeChild=function(e){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")},n.toString=function(){return"RRNode"},Ue(t,[{key:"childNodes",get:function(){for(var e=[],r=this.firstChild;r;)e.push(r),r=r.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"]},Or={};function ja(t){if(Or[t])return Or[t];var n=globalThis[t],e=n.prototype,r=t in mc?mc[t]:void 0,i=!!(r&&r.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 Or[t]=n.prototype,n.prototype;try{var d=document.createElement("iframe");document.body.appendChild(d);var h=d.contentWindow;if(!h)return n.prototype;var o=h[t].prototype;return document.body.removeChild(d),o?Or[t]=o:e}catch{return e}}var Qi={};function Dt(t,n,e){var r,i=t+"."+String(e);if(Qi[i])return Qi[i].call(n);var s=ja(t),l=(r=Object.getOwnPropertyDescriptor(s,e))==null?void 0:r.get;return l?(Qi[i]=l,l.call(n)):n[e]}var Xi={};function gc(t,n,e){var r=t+"."+String(e);if(Xi[r])return Xi[r].bind(n);var i=ja(t)[e];return typeof i!="function"?n[e]:(Xi[r]=i,i.bind(n))}function bu(){return ja("MutationObserver").constructor}function Qt(t,n,e){try{if(!(n in t))return function(){};var r=t[n],i=e(r);return typeof i=="function"&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),t[n]=i,function(){t[n]=r}}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,n){return gc("Node",t,"contains")(n)},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,n){return Dt("Element",t,"querySelector")(n)},querySelectorAll:function(t,n){return Dt("Element",t,"querySelectorAll")(n)},mutationObserver:bu,patch:Qt};function Xe(t,n,e){e===void 0&&(e=document);var r={capture:!0,passive:!0};return e.addEventListener(t,n,r),function(){return e.removeEventListener(t,n,r)}}var hn=`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(hn),-1},getNode:function(){return console.error(hn),null},removeNodeFromMap:function(){console.error(hn)},has:function(){return console.error(hn),!1},reset:function(){console.error(hn)}};function Un(t,n,e){e===void 0&&(e={});var r=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=n-(h-i),a=this;o<=0||o>n?(r&&(clearTimeout(r),r=null),i=h,t.apply(a,l)):r||e.trailing===!1||(r=setTimeout((function(){i=e.leading===!1?0:Date.now(),r=null,t.apply(a,l)}),o))}}function Mi(t,n,e,r,i){i===void 0&&(i=window);var s=i.Object.getOwnPropertyDescriptor(t,n);return i.Object.defineProperty(t,n,r?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,n,s||{},!0)}}typeof window<"u"&&window.Proxy&&window.Reflect&&(vc=new Proxy(vc,{get:function(t,n,e){return n==="map"&&console.error(hn),Reflect.get(t,n,e)}}));var gi=Date.now;function ku(t){var n,e,r,i,s=t.document;return{left:s.scrollingElement?s.scrollingElement.scrollLeft:t.pageXOffset!==void 0?t.pageXOffset:s.documentElement.scrollLeft||s?.body&&((n=ce.parentElement(s.body))==null?void 0:n.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&&((r=ce.parentElement(s.body))==null?void 0:r.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,n,e,r){if(!t)return!1;var i=Su(t);if(!i)return!1;try{if(typeof n=="string"){if(i.classList.contains(n)||r&&i.closest("."+n)!==null)return!0}else if(_i(i,n,r))return!0}catch{}return!!(e&&(i.matches(e)||r&&i.closest(e)!==null))}function Ki(t,n,e){return!(t.tagName!=="TITLE"||!e.headTitleMutations)||n.getId(t)===-2}function Eu(t,n){if(Gn(t))return!1;var e=n.getId(t);if(!n.has(e))return!0;var r=ce.parentNode(t);return(!r||r.nodeType!==t.DOCUMENT_NODE)&&(!r||Eu(r,n))}function Qo(t){return!!t.changedTouches}function Iu(t,n){return!!(t.nodeName==="IFRAME"&&n.getMeta(t))}function Au(t,n){return!!(t.nodeName==="LINK"&&t.nodeType===t.ELEMENT_NODE&&t.getAttribute&&t.getAttribute("rel")==="stylesheet"&&n.getMeta(t))}function Xo(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 n=t.prototype;return n.getId=function(e){var r;return(r=this.styleIDMap.get(e))!=null?r:-1},n.has=function(e){return this.styleIDMap.has(e)},n.add=function(e,r){return this.has(e)?this.getId(e):(i=r===void 0?this.id++:r,this.styleIDMap.set(e,i),this.idStyleMap.set(i,e),i);var i},n.getStyle=function(e){return this.idStyleMap.get(e)||null},n.reset=function(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1},n.generateId=function(){return this.id++},t})();function Tu(t){var n,e=null;return"getRootNode"in t&&((n=ce.getRootNode(t))==null?void 0:n.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&ce.host(ce.getRootNode(t))&&(e=ce.host(ce.getRootNode(t))),e}function nm(t){var n=t.ownerDocument;if(!n)return!1;var e=(function(r){for(var i,s=r;i=Tu(s);)s=i;return s})(t);return ce.contains(n,e)}function Pu(t){var n=t.ownerDocument;return!!n&&(ce.contains(n,t)||nm(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||{}),Q=(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})(Q||{}),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||{}),pn=(function(t){return t[t["2D"]=0]="2D",t[t.WebGL=1]="WebGL",t[t.WebGL2=2]="WebGL2",t})(pn||{}),fn=(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})(fn||{}),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 Hn,rm=(function(){function t(){N(this,"length",0),N(this,"head",null),N(this,"tail",null)}var n=t.prototype;return n.get=function(e){if(e>=this.length)throw new Error("Position outside of list range");for(var r=this.head,i=0;i<e;i++)r=r?.next||null;return r},n.addNode=function(e){var r={value:e,previous:null,next:null};if(e.__ln=r,e.previousSibling&&yc(e.previousSibling)){var i=e.previousSibling.__ln.next;r.next=i,r.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=r,i&&(i.previous=r)}else if(e.nextSibling&&yc(e.nextSibling)&&e.nextSibling.__ln.previous){var s=e.nextSibling.__ln.previous;r.previous=s,r.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=r,s&&(s.next=r)}else this.head&&(this.head.previous=r),r.next=this.head,this.head=r;r.next===null&&(this.tail=r),this.length++},n.removeNode=function(e){var r=e.__ln;this.head&&(r.previous?(r.previous.next=r.next,r.next?r.next.previous=r.previous:this.tail=r.previous):(this.head=r.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)},t})(),bc=function(t,n){return t+"@"+n},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(r){r.forEach(e.processMutation),e.emit()})),N(this,"emit",(function(){if(!e.frozen&&!e.locked){for(var r=[],i=new Set,s=new rm,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=Gn(T)?e.mirror.getId(Tu(b)):e.mirror.getId(T),M=l(b);if(U===-1||M===-1)return s.addNode(b);var q=bn(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){Iu(W,e.mirror)&&e.iframeManager.addIframe(W),Au(W,e.mirror)&&e.stylesheetManager.trackLinkElement(W),Xo(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&&(r.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:r};(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(r){var i=e.attributeMap.get(r);i||(i={node:r,attributes:{},styleDiff:{},_unchangedStyles:{}},e.attributes.push(i),e.attributeMap.set(r,i));var s=Array.from(ce.childNodes(r),(function(l){return ce.textContent(l)||""})).join("");i.attributes.value=pi({element:r,maskInputOptions:e.maskInputOptions,tagName:r.tagName,type:fi(r),value:s,maskInputFn:e.maskInputFn})})),N(this,"processMutation",(function(r){if(!Ki(r.target,e.mirror,e.slimDOMOptions))switch(r.type){case"characterData":var i=ce.textContent(r.target);Ke(r.target,e.blockClass,e.blockSelector,!1)||i===r.oldValue||e.texts.push({value:kl(r.target,e.maskTextClass,e.maskTextSelector,!0)&&i?e.maskTextFn?e.maskTextFn(i,Su(r.target)):i.replace(/[\S]/g,"*"):i,node:r.target});break;case"attributes":var s=r.target,l=r.attributeName,d=r.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(r.target,e.blockClass,e.blockSelector,!1)||d===r.oldValue)return;var o=e.attributeMap.get(r.target);if(s.tagName==="IFRAME"&&l==="src"&&!e.keepIframeSrcFn(d)){if(s.contentDocument)return;l="rr_src"}if(o||(o={node:r.target,attributes:{},styleDiff:{},_unchangedStyles:{}},e.attributes.push(o),e.attributeMap.set(r.target,o)),l==="type"&&s.tagName==="INPUT"&&(r.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");r.oldValue&&a.setAttribute("style",r.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(r.target,e.blockClass,e.blockSelector,!0))return;if(r.target.tagName==="TEXTAREA")return void e.genTextAreaValueMutation(r.target);r.addedNodes.forEach((function(k){return e.genAdds(k,r.target)})),r.removedNodes.forEach((function(k){var E=e.mirror.getId(k),w=Gn(r.target)?e.mirror.getId(ce.host(r.target)):e.mirror.getId(r.target);Ke(r.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(r.target)&&E===-1||Eu(r.target,e.mirror)||(e.movedSet.has(k)&&e.movedMap[bc(E,w)]?Ko(e.movedSet,k):(e.removes.push({parentId:w,id:E,isShadow:!(!Gn(r.target)||!$n(r.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(r,i){if(!e.processedNodeManager.inOtherBuffer(r,e)&&!e.addedSet.has(r)&&!e.movedSet.has(r)){if(e.mirror.hasNode(r)){if(Ki(r,e.mirror,e.slimDOMOptions))return;e.movedSet.add(r);var s=null;i&&e.mirror.hasNode(i)&&(s=e.mirror.getId(i)),s&&s!==-1&&(e.movedMap[bc(e.mirror.getId(r),s)]=!0)}else e.addedSet.add(r),e.droppedSet.delete(r);Ke(r,e.blockClass,e.blockSelector,!1)||(ce.childNodes(r).forEach((function(l){return e.genAdds(l)})),Xo(r)&&ce.childNodes(ce.shadowRoot(r)).forEach((function(l){e.processedNodeManager.add(l,e),e.genAdds(l,r)})))}}))}var n=t.prototype;return n.init=function(e){var r=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){r[i]=e[i]}))},n.freeze=function(){this.frozen=!0,this.canvasManager.freeze()},n.unfreeze=function(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()},n.isFrozen=function(){return this.frozen},n.lock=function(){this.locked=!0,this.canvasManager.lock()},n.unlock=function(){this.locked=!1,this.canvasManager.unlock(),this.emit()},n.reset=function(){this.shadowDomManager.reset(),this.canvasManager.reset()},t})();function Ko(t,n){t.delete(n),ce.childNodes(n).forEach((function(e){return Ko(t,e)}))}function kc(t,n,e){return t.size!==0&&(function(r,i){var s=ce.parentNode(i);return!!s&&r.has(s)})(t,n)}function Cc(t,n){return t.size!==0&&xu(t,n)}function xu(t,n){var e=ce.parentNode(n);return!!e&&(!!t.has(e)||xu(t,e))}var de=function(t){return Hn?function(){for(var n=arguments.length,e=new Array(n),r=0;r<n;r++)e[r]=arguments[r];try{return t.apply(void 0,[].concat(e))}catch(i){if(Hn&&Hn(i)===!0)return;throw i}}:t},Ht=[];function Zn(t){try{if("composedPath"in t){var n=t.composedPath();if(n.length)return n[0]}else if("path"in t&&t.path.length)return t.path[0]}catch{}return t&&t.target}function Ou(t,n){var e=new im;Ht.push(e),e.init(t);var r=new(bu())(de(e.processMutations.bind(e)));return r.observe(n,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),r}function om(t){var n=t.mouseInteractionCb,e=t.doc,r=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=Zn(_);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 Qo(_)&&(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=Qo(_)?_.changedTouches[0]:_;if(y){var k=r.getId(m),E=y.clientX,w=y.clientY;de(n)(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(Xe(c,u,e))})),de((function(){h.forEach((function(a){return a()}))}))}function Du(t){var n=t.scrollCb,e=t.doc,r=t.mirror,i=t.blockClass,s=t.blockSelector,l=t.sampling;return Xe("scroll",de(Un(de((function(d){var h=Zn(d);if(h&&!Ke(h,i,s,!0)){var o=r.getId(h);if(h===e&&e.defaultView){var a=ku(e.defaultView);n({id:o,x:a.left,y:a.top})}else n({id:o,x:h.scrollLeft,y:h.scrollTop})}})),l.scroll||100)),e)}var am=["INPUT","TEXTAREA","SELECT"],wc=new WeakMap;function Dr(t){return(function(n,e){if(Br("CSSGroupingRule")&&J(n.parentRule,CSSGroupingRule)||Br("CSSMediaRule")&&J(n.parentRule,CSSMediaRule)||Br("CSSSupportsRule")&&J(n.parentRule,CSSSupportsRule)||Br("CSSConditionRule")&&J(n.parentRule,CSSConditionRule)){var r=Array.from(n.parentRule.cssRules).indexOf(n);e.unshift(r)}else if(n.parentStyleSheet){var i=Array.from(n.parentStyleSheet.cssRules).indexOf(n);e.unshift(i)}return e})(t,[])}function Bt(t,n,e){var r,i;return t?(t.ownerNode?r=n.getId(t.ownerNode):i=e.getId(t),{styleId:i,id:r}):{}}function Bu(t,n){var e,r,i,s=t.mirror,l=t.stylesheetManager,d=null;d=n.nodeName==="#document"?s.getId(n):s.getId(ce.host(n));var h=n.nodeName==="#document"?(e=n.defaultView)==null?void 0:e.Document:(i=(r=n.ownerDocument)==null?void 0:r.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(n,"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(n,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get:o.get,set:o.set})}))):function(){}}function sm(t,n){n===void 0&&(n={});var e,r=t.doc.defaultView;if(!r)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,ne=b.styleSheetRuleCb,K=b.styleDeclarationCb,H=b.canvasMutationCb,z=b.fontCb,$=b.selectionCb,G=b.customElementCb;b.mutationCb=function(){for(var O=arguments.length,I=new Array(O),A=0;A<O;A++)I[A]=arguments[A];var F;T.mutation&&(F=T).mutation.apply(F,[].concat(I)),x.apply(void 0,[].concat(I))},b.mousemoveCb=function(){for(var O=arguments.length,I=new Array(O),A=0;A<O;A++)I[A]=arguments[A];var F;T.mousemove&&(F=T).mousemove.apply(F,[].concat(I)),L.apply(void 0,[].concat(I))},b.mouseInteractionCb=function(){for(var O=arguments.length,I=new Array(O),A=0;A<O;A++)I[A]=arguments[A];var F;T.mouseInteraction&&(F=T).mouseInteraction.apply(F,[].concat(I)),U.apply(void 0,[].concat(I))},b.scrollCb=function(){for(var O=arguments.length,I=new Array(O),A=0;A<O;A++)I[A]=arguments[A];var F;T.scroll&&(F=T).scroll.apply(F,[].concat(I)),M.apply(void 0,[].concat(I))},b.viewportResizeCb=function(){for(var O=arguments.length,I=new Array(O),A=0;A<O;A++)I[A]=arguments[A];var F;T.viewportResize&&(F=T).viewportResize.apply(F,[].concat(I)),q.apply(void 0,[].concat(I))},b.inputCb=function(){for(var O=arguments.length,I=new Array(O),A=0;A<O;A++)I[A]=arguments[A];var F;T.input&&(F=T).input.apply(F,[].concat(I)),W.apply(void 0,[].concat(I))},b.mediaInteractionCb=function(){for(var O=arguments.length,I=new Array(O),A=0;A<O;A++)I[A]=arguments[A];var F;T.mediaInteaction&&(F=T).mediaInteaction.apply(F,[].concat(I)),j.apply(void 0,[].concat(I))},b.styleSheetRuleCb=function(){for(var O=arguments.length,I=new Array(O),A=0;A<O;A++)I[A]=arguments[A];var F;T.styleSheetRule&&(F=T).styleSheetRule.apply(F,[].concat(I)),ne.apply(void 0,[].concat(I))},b.styleDeclarationCb=function(){for(var O=arguments.length,I=new Array(O),A=0;A<O;A++)I[A]=arguments[A];var F;T.styleDeclaration&&(F=T).styleDeclaration.apply(F,[].concat(I)),K.apply(void 0,[].concat(I))},b.canvasMutationCb=function(){for(var O=arguments.length,I=new Array(O),A=0;A<O;A++)I[A]=arguments[A];var F;T.canvasMutation&&(F=T).canvasMutation.apply(F,[].concat(I)),H.apply(void 0,[].concat(I))},b.fontCb=function(){for(var O=arguments.length,I=new Array(O),A=0;A<O;A++)I[A]=arguments[A];var F;T.font&&(F=T).font.apply(F,[].concat(I)),z.apply(void 0,[].concat(I))},b.selectionCb=function(){for(var O=arguments.length,I=new Array(O),A=0;A<O;A++)I[A]=arguments[A];var F;T.selection&&(F=T).selection.apply(F,[].concat(I)),$.apply(void 0,[].concat(I))},b.customElementCb=function(){for(var O=arguments.length,I=new Array(O),A=0;A<O;A++)I[A]=arguments[A];var F;T.customElement&&(F=T).customElement.apply(F,[].concat(I)),G.apply(void 0,[].concat(I))}})(t,n),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=[],ne=Un(de((function(z){var $=Date.now()-M;T(j.map((function(G){return G.timeOffset-=$,G})),z),j=[],M=null})),W),K=de(Un(de((function(z){var $=Zn(z),G=Qo(z)?z.changedTouches[0]:z,O=G.clientX,I=G.clientY;M||(M=gi()),j.push({x:O,y:I,id:U.getId($),timeOffset:gi()-M}),ne(typeof DragEvent<"u"&&J(z,DragEvent)?Q.Drag:J(z,MouseEvent)?Q.MouseMove:Q.TouchMove)})),q,{trailing:!1})),H=[Xe("mousemove",K,L),Xe("touchmove",K,L),Xe("drag",K,L)];return de((function(){H.forEach((function(z){return z()}))}))})(t),a=om(t),c=Du(t),u=(i={win:r},s=t.viewportResizeCb,l=i.win,d=-1,h=-1,Xe("resize",de(Un(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,ne=b.maskInputFn,K=b.sampling,H=b.userTriggeredOnInput;function z(oe){var te=Zn(oe),Ie=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:ne})),$(te,H?{text:He,isChecked:et,userTriggered:Ie}:{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 Ie=wc.get(oe);if(!Ie||Ie.text!==te.text||Ie.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 Xe(oe,de(z),x)})),O=x.defaultView;if(!O)return function(){G.forEach((function(oe){return oe()}))};var I,A=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 A&&A.set&&(I=G).push.apply(I,[].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(ne){return Un(de((function(K){var H=Zn(K);if(H&&!Ke(H,x,L,!0)){var z=H.currentTime,$=H.volume,G=H.muted,O=H.playbackRate,I=H.loop;T({type:ne,id:U.getId(H),currentTime:z,volume:$,muted:G,playbackRate:O,loop:I})}})),M.media||500)})),j=[Xe("play",W(fn.Play),q),Xe("pause",W(fn.Pause),q),Xe("seeked",W(fn.Seeked),q),Xe("volumechange",W(fn.VolumeChange),q),Xe("ratechange",W(fn.RateChange),q)];return de((function(){j.forEach((function(ne){return ne()}))}))})(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],I=G[1],A=Bt($,L,U.styleMirror),F=A.id,oe=A.styleId;return(F&&F!==-1||oe&&oe!==-1)&&x({id:F,styleId:oe,adds:[{rule:O,index:I}]}),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,ne=M.CSSStyleSheet.prototype.deleteRule;M.CSSStyleSheet.prototype.deleteRule=new Proxy(ne,{apply:de((function(z,$,G){var O=G[0],I=Bt($,L,U.styleMirror),A=I.id,F=I.styleId;return(A&&A!==-1||F&&F!==-1)&&x({id:A,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],I=Bt($,L,U.styleMirror),A=I.id,F=I.styleId;return(A&&A!==-1||F&&F!==-1)&&x({id:A,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],I=Bt($,L,U.styleMirror),A=I.id,F=I.styleId;return(A&&A!==-1||F&&F!==-1)&&x({id:A,styleId:F,replaceSync:O}),z.apply($,G)}))}));var K={};Mr("CSSGroupingRule")?K.CSSGroupingRule=M.CSSGroupingRule:(Mr("CSSMediaRule")&&(K.CSSMediaRule=M.CSSMediaRule),Mr("CSSConditionRule")&&(K.CSSConditionRule=M.CSSConditionRule),Mr("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,I,A){var F=A[0],oe=A[1],te=Bt(I.parentStyleSheet,L,U.styleMirror),Ie=te.id,Re=te.styleId;return(Ie&&Ie!==-1||Re&&Re!==-1)&&x({id:Ie,styleId:Re,adds:[{rule:F,index:[].concat(Dr(I),[oe||0])}]}),O.apply(I,A)}))}),G.prototype.deleteRule=new Proxy(H[$].deleteRule,{apply:de((function(O,I,A){var F=A[0],oe=Bt(I.parentStyleSheet,L,U.styleMirror),te=oe.id,Ie=oe.styleId;return(te&&te!==-1||Ie&&Ie!==-1)&&x({id:te,styleId:Ie,removes:[{index:[].concat(Dr(I),[F])}]}),O.apply(I,A)}))})})),de((function(){M.CSSStyleSheet.prototype.insertRule=q,M.CSSStyleSheet.prototype.deleteRule=ne,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:r}),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(ne,K,H){var z,$=H[0],G=H[1],O=H[2];if(U.has($))return W.apply(K,[$,G,O]);var I=Bt((z=K.parentRule)==null?void 0:z.parentStyleSheet,L,M.styleMirror),A=I.id,F=I.styleId;return(A&&A!==-1||F&&F!==-1)&&x({id:A,styleId:F,set:{property:$,value:G,priority:O},index:Dr(K.parentRule)}),ne.apply(K,H)}))});var j=q.CSSStyleDeclaration.prototype.removeProperty;return q.CSSStyleDeclaration.prototype.removeProperty=new Proxy(j,{apply:de((function(ne,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,I=G.styleId;return(O&&O!==-1||I&&I!==-1)&&x({id:O,styleId:I,remove:{property:$},index:Dr(K.parentRule)}),ne.apply(K,H)}))}),de((function(){q.CSSStyleDeclaration.prototype.setProperty=W,q.CSSStyleDeclaration.prototype.removeProperty=j}))})(t,{win:r}),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,ne,K){var H=new q(j,ne,K);return M.set(H,{family:j,buffer:typeof ne!="string",descriptors:K,fontSource:typeof ne=="string"?ne:JSON.stringify(Array.from(new Uint8Array(ne)))}),H};var W=Qt(x.fonts,"add",(function(j){return function(ne){return setTimeout(de((function(){var K=M.get(ne);K&&(T(K),M.delete(ne))})),0),j.apply(this,[ne])}}));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 ne=[],K=j.rangeCount||0,H=0;H<K;H++){var z=j.getRangeAt(H),$=z.startContainer,G=z.startOffset,O=z.endContainer,I=z.endOffset;Ke($,L,U,!0)||Ke(O,L,U,!0)||ne.push({start:x.getId($),startOffset:G,end:x.getId(O),endOffset:I})}M({ranges:ne})}}));return W(),Xe("selectionchange",W)})(t),w=(function(b){var T=b.doc,x=b.customElementCb,L=T.defaultView;return L&&L.customElements?Qt(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,r,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 Br(t){return window[t]!==void 0}function Mr(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 n=t.prototype;return n.getId=function(e,r,i,s){var l=i||this.getIdToRemoteIdMap(e),d=s||this.getRemoteIdToIdMap(e),h=l.get(r);return h||(h=this.generateIdFn(),l.set(r,h),d.set(h,r)),h},n.getIds=function(e,r){var i=this,s=this.getIdToRemoteIdMap(e),l=this.getRemoteIdToIdMap(e);return r.map((function(d){return i.getId(e,d,s,l)}))},n.getRemoteId=function(e,r,i){var s=i||this.getRemoteIdToIdMap(e);if(typeof r!="number")return r;var l=s.get(r);return l||-1},n.getRemoteIds=function(e,r){var i=this,s=this.getRemoteIdToIdMap(e);return r.map((function(l){return i.getRemoteId(e,l,s)}))},n.reset=function(e){if(!e)return this.iframeIdToRemoteIdMap=new WeakMap,void(this.iframeRemoteIdToIdMap=new WeakMap);this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)},n.getIdToRemoteIdMap=function(e){var r=this.iframeIdToRemoteIdMap.get(e);return r||(r=new Map,this.iframeIdToRemoteIdMap.set(e,r)),r},n.getRemoteIdToIdMap=function(e){var r=this.iframeRemoteIdToIdMap.get(e);return r||(r=new Map,this.iframeRemoteIdToIdMap.set(e,r)),r},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 n=t.prototype;return n.addIframe=function(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)},n.addLoadListener=function(e){this.loadListener=e},n.attachIframe=function(e,r){var i,s;this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:r}],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))},n.handleMessage=function(e){var r=e;if(r.data.type==="rrweb"&&r.origin===r.data.origin&&e.source){var i=this.crossOriginIframeMap.get(e.source);if(i){var s=this.transformCrossOriginEvent(i,r.data.event);s&&this.wrappedEmit(s,r.data.isCheckout)}}},n.transformCrossOriginEvent=function(e,r){var i,s=this;switch(r.type){case le.FullSnapshot:this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(r.data.node,e);var l=r.data.node.id;return this.crossOriginIframeRootIdMap.set(e,l),this.patchRootIdOnNode(r.data.node,l),{timestamp:r.timestamp,type:le.IncrementalSnapshot,data:{source:Q.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:r.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}};case le.Meta:case le.Load:case le.DomContentLoaded:return!1;case le.Plugin:return r;case le.Custom:return this.replaceIds(r.data.payload,e,["id","parentId","previousId","nextId"]),r;case le.IncrementalSnapshot:switch(r.data.source){case Q.Mutation:return r.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)})),r.data.removes.forEach((function(d){s.replaceIds(d,e,["parentId","id"])})),r.data.attributes.forEach((function(d){s.replaceIds(d,e,["id"])})),r.data.texts.forEach((function(d){s.replaceIds(d,e,["id"])})),r;case Q.Drag:case Q.TouchMove:case Q.MouseMove:return r.data.positions.forEach((function(d){s.replaceIds(d,e,["id"])})),r;case Q.ViewportResize:return!1;case Q.MediaInteraction:case Q.MouseInteraction:case Q.Scroll:case Q.CanvasMutation:case Q.Input:return this.replaceIds(r.data,e,["id"]),r;case Q.StyleSheetRule:case Q.StyleDeclaration:return this.replaceIds(r.data,e,["id"]),this.replaceStyleIds(r.data,e,["styleId"]),r;case Q.Font:return r;case Q.Selection:return r.data.ranges.forEach((function(d){s.replaceIds(d,e,["start","end"])})),r;case Q.AdoptedStyleSheet:return this.replaceIds(r.data,e,["id"]),this.replaceStyleIds(r.data,e,["styleIds"]),(i=r.data.styles)==null||i.forEach((function(d){s.replaceStyleIds(d,e,["styleId"])})),r}}return!1},n.replace=function(e,r,i,s){for(var l,d=V(s);!(l=d()).done;){var h=l.value;(Array.isArray(r[h])||typeof r[h]=="number")&&(Array.isArray(r[h])?r[h]=e.getIds(i,r[h]):r[h]=e.getId(i,r[h]))}return r},n.replaceIds=function(e,r,i){return this.replace(this.crossOriginIframeMirror,e,r,i)},n.replaceStyleIds=function(e,r,i){return this.replace(this.crossOriginIframeStyleMirror,e,r,i)},n.replaceIdOnNode=function(e,r){var i=this;this.replaceIds(e,r,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach((function(s){i.replaceIdOnNode(s,r)}))},n.patchRootIdOnNode=function(e,r){var i=this;e.type===Ru.Document||e.rootId||(e.rootId=r),"childNodes"in e&&e.childNodes.forEach((function(s){i.patchRootIdOnNode(s,r)}))},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 n=t.prototype;return n.init=function(){this.reset(),this.patchAttachShadow(Element,document)},n.addShadowRoot=function(e,r){var i=this;if($n(e)&&!this.shadowDoms.has(e)){this.shadowDoms.add(e);var s=Ou(pe({},this.bypassOptions,{doc:r,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)}},n.observeAttachShadow=function(e){e.contentWindow&&e.contentDocument&&this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)},n.patchAttachShadow=function(e,r){var i=this;this.restoreHandlers.push(Qt(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,r),d}})))},n.reset=function(){this.restoreHandlers.forEach((function(e){try{e()}catch{}})),this.restoreHandlers=[],this.shadowDoms=new WeakSet},t})(),jn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",um=typeof Uint8Array>"u"?[]:new Uint8Array(256),Lr=0;Lr<64;Lr++)um[jn.charCodeAt(Lr)]=Lr;var Ec=new Map,Mu=function(t,n,e){if(t&&(Nu(t,n)||(t===void 0?"undefined":ie(t))==="object")){var r=(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=r.indexOf(t);return i===-1&&(i=r.length,r.push(t)),i}};function ei(t,n,e){return J(t,Array)?t.map((function(r){return ei(r,n,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(r){var i,s=new Uint8Array(r),l=s.length,d="";for(i=0;i<l;i+=3)d+=jn[s[i]>>2],d+=jn[(3&s[i])<<4|s[i+1]>>4],d+=jn[(15&s[i+1])<<2|s[i+2]>>6],d+=jn[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,n,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,n,e),t.width,t.height]}:Nu(t,n)||(t===void 0?"undefined":ie(t))==="object"?{rr_type:t.constructor.name,index:Mu(t,n,e)}:t}var Lu=function(t,n,e){return t.map((function(r){return ei(r,n,e)}))},Nu=function(t,n){var e=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter((function(r){return typeof n[r]=="function"}));return!!e.find((function(r){return J(t,n[r])}))};function Ic(t,n,e,r){var i=[];try{var s=Qt(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,n,e,!0)){var c=(function(p){return p==="experimental-webgl"?"webgl":p})(d);if("__context"in this||(this.__context=c),r&&["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 Ac(t,n,e,r,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=Qt(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,r,i,!0)){var y=Lu(m,s,this),k={type:n,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:n,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 n;try{if(!(n=Pc&&(window.URL||window.webkitURL).createObjectURL(Pc)))throw"";var e=new Worker(n,{name:t?.name});return e.addEventListener("error",(function(){(window.URL||window.webkitURL).revokeObjectURL(n)})),e}catch{return new Worker("data:text/javascript;base64,"+Fu,{name:t?.name})}finally{n&&(window.URL||window.webkitURL).revokeObjectURL(n)}}var Pe,ti,eo,hm=(function(){function t(e){var r=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){!(r.rafStamps.invokeId&&r.rafStamps.latestId!==r.rafStamps.invokeId)&&r.rafStamps.invokeId||(r.rafStamps.invokeId=r.rafStamps.latestId),r.pendingCanvasMutations.has(c)||r.pendingCanvasMutations.set(c,[]),r.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 n=t.prototype;return n.reset=function(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()},n.freeze=function(){this.frozen=!0},n.unfreeze=function(){this.frozen=!1},n.lock=function(){this.locked=!0},n.unlock=function(){this.locked=!1},n.initCanvasFPSObserver=function(e,r,i,s,l){var d=this,h=Ic(r,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:pn["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=[],r.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 Xn(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)}},n.initCanvasMutationObserver=function(e,r,i){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();var s=Ic(e,r,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=Qt(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:pn["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:pn["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,r,i),d=(function(h,o,a,c){var u,p,_=[];return(u=_).push.apply(u,[].concat(Ac(o.WebGLRenderingContext.prototype,pn.WebGL,h,a,c,o))),o.WebGL2RenderingContext!==void 0&&(p=_).push.apply(p,[].concat(Ac(o.WebGL2RenderingContext.prototype,pn.WebGL2,h,a,c,o))),function(){_.forEach((function(m){return m()}))}})(this.processMutation.bind(this),e,r,i);this.resetObservers=function(){s(),l(),d()}},n.startPendingCanvasMutationFlusher=function(){var e=this;requestAnimationFrame((function(){return e.flushPendingCanvasMutations()}))},n.startRAFTimestamping=function(){var e=this,r=function(i){e.rafStamps.latestId=i,requestAnimationFrame(r)};requestAnimationFrame(r)},n.flushPendingCanvasMutations=function(){var e=this;this.pendingCanvasMutations.forEach((function(r,i){var s=e.mirror.getId(i);e.flushPendingCanvasMutationFor(i,s)})),requestAnimationFrame((function(){return e.flushPendingCanvasMutations()}))},n.flushPendingCanvasMutationFor=function(e,r){if(!this.frozen&&!this.locked){var i=this.pendingCanvasMutations.get(e);if(i&&r!==-1){var s=i.map((function(d){return d.type,Qn(d,["type"])})),l=i[0].type;this.mutationCb({id:r,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 n=t.prototype;return n.attachLinkElement=function(e,r){"_cssText"in r.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:r.id,attributes:r.attributes}]}),this.trackLinkElement(e)},n.trackLinkElement=function(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))},n.adoptStyleSheets=function(e,r){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:r,styleIds:[]},h=[],o=V(e);!(l=o()).done;)i=this,s();h.length>0&&(d.styles=h),this.adoptedStyleSheetCb(d)}},n.reset=function(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet},n.trackStylesheetInLinkElement=function(e){},t})(),fm=(function(){function t(){N(this,"nodeMap",new WeakMap),N(this,"active",!1)}var n=t.prototype;return n.inOtherBuffer=function(e,r){var i=this.nodeMap.get(e);return i&&Array.from(i).some((function(s){return s!==r}))},n.add=function(e,r){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(r))},n.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,sn,st=new gl;function Nt(t){t===void 0&&(t={});var n=t.emit,e=t.checkoutEveryNms,r=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,ne=t.recordCrossOriginIframes,K=ne!==void 0&&ne,H=t.recordAfter,z=H===void 0?t.recordAfter==="DOMContentLoaded"?t.recordAfter:"load":H,$=t.userTriggeredOnInput,G=$!==void 0&&$,O=t.collectFonts,I=O!==void 0&&O,A=t.inlineImages,F=A!==void 0&&A,oe=t.plugins,te=t.keepIframeSrcFn,Ie=te===void 0?function(){return!1}:te,Re=t.ignoreCSSAttributes,He=Re===void 0?new Set([]):Re,et=t.errorHandler;Hn=et;var Ze=!K||window.parent===window,Je=!1;if(!Ze)try{window.parent.document&&(Je=!1)}catch{Je=!0}if(Ze&&!n)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===Q.Mutation||Ht.forEach((function(dr){return dr.unfreeze()})),Ze)n?.(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===Q.Mutation&&be.data.isAttachIframe)return;je++;var ur=r&&je>=r,Fi=e&&be.timestamp-B.timestamp>e;(ur||Fi)&&ti(!0)}};for(var at,dt=function(fe){Pe({type:le.IncrementalSnapshot,data:pe({source:Q.Mutation},fe)})},tn=function(fe){return Pe({type:le.IncrementalSnapshot,data:pe({source:Q.Scroll},fe)})},Ae=function(fe){return Pe({type:le.IncrementalSnapshot,data:pe({source:Q.CanvasMutation},fe)})},Ve=new pm({mutationCb:dt,adoptedStyleSheetCb:function(fe){return Pe({type:le.IncrementalSnapshot,data:pe({source:Q.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 nn=new fm;eo=new hm({recordCanvas:j,mutationCb:Ae,win:window,blockClass:s,blockSelector:d,mirror:st,sampling:T.canvas,dataURLOptions:L});var rn=new lm({mutationCb:dt,scrollCb:tn,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:Ie,processedNodeManager:nn},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(),rn.init(),Ht.forEach((function(Z){return Z.lock()}));var ze=(function(Z,be){var Te=be||{},ur=Te.mirror,Fi=ur===void 0?new gl:ur,dr=Te.blockClass,kd=dr===void 0?"rr-block":dr,Ya=Te.blockSelector,Cd=Ya===void 0?null:Ya,Qa=Te.maskTextClass,wd=Qa===void 0?"rr-mask":Qa,Xa=Te.maskTextSelector,Sd=Xa===void 0?null:Xa,Ka=Te.inlineStylesheet,Ed=Ka===void 0||Ka,es=Te.inlineImages,Id=es!==void 0&&es,ts=Te.recordCanvas,Ad=ts!==void 0&&ts,ns=Te.maskAllInputs,Vi=ns!==void 0&&ns,Td=Te.maskTextFn,Pd=Te.maskInputFn,rs=Te.slimDOM,Tn=rs!==void 0&&rs,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 bn(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:Tn===!0||Tn==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:Tn==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:Tn===!1?{}:Tn,dataURLOptions:Rd,inlineImages:Id,recordCanvas:Ad,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){Iu(Z,st)&&Ye.addIframe(Z),Au(Z,st)&&Ve.trackLinkElement(Z),Xo(Z)&&rn.addShadowRoot(ce.shadowRoot(Z),document)},onIframeLoad:function(Z,be){Ye.attachIframe(Z,be),rn.observeAttachShadow(Z)},onStylesheetLoad:function(Z,be){Ve.attachLinkElement(Z,be)},keepIframeSrcFn:Ie});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 An=[],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:Q.MouseInteraction},Z)})},scrollCb:tn,viewportResizeCb:function(Z){return Pe({type:le.IncrementalSnapshot,data:pe({source:Q.ViewportResize},Z)})},inputCb:function(Z){return Pe({type:le.IncrementalSnapshot,data:pe({source:Q.Input},Z)})},mediaInteractionCb:function(Z){return Pe({type:le.IncrementalSnapshot,data:pe({source:Q.MediaInteraction},Z)})},styleSheetRuleCb:function(Z){return Pe({type:le.IncrementalSnapshot,data:pe({source:Q.StyleSheetRule},Z)})},styleDeclarationCb:function(Z){return Pe({type:le.IncrementalSnapshot,data:pe({source:Q.StyleDeclaration},Z)})},canvasMutationCb:Ae,fontCb:function(Z){return Pe({type:le.IncrementalSnapshot,data:pe({source:Q.Font},Z)})},selectionCb:function(Z){Pe({type:le.IncrementalSnapshot,data:pe({source:Q.Selection},Z)})},customElementCb:function(Z){Pe({type:le.IncrementalSnapshot,data:pe({source:Q.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:I,doc:fe,maskInputFn:w,maskTextFn:C,keepIframeSrcFn:Ie,blockSelector:d,slimDOMOptions:ut,dataURLOptions:L,mirror:st,iframeManager:Ye,stylesheetManager:Ve,shadowDomManager:rn,processedNodeManager:nn,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{An.push(Ja(fe.contentDocument))}catch(ze){console.warn(ze)}}));var Ni=function(){ti(),An.push(Ja(document)),vi=!0};return document.readyState==="interactive"||document.readyState==="complete"?Ni():(An.push(Xe("DOMContentLoaded",(function(){Pe({type:le.DomContentLoaded,data:{}}),z==="DOMContentLoaded"&&Ni()}))),An.push(Xe("load",(function(){Pe({type:le.Load,data:{}}),z==="load"&&Ni()}),window))),function(){An.forEach((function(fe){try{fe()}catch(ze){String(ze).toLowerCase().includes("cross-origin")||console.warn(ze)}})),nn.destroy(),vi=!1,Hn=void 0}}catch(fe){console.warn(fe)}}Nt.addCustomEvent=function(t,n){if(!vi)throw new Error("please add custom event after start recording");Pe({type:le.Custom,data:{tag:t,payload:n}})},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,(sn=Rc||(Rc={}))[sn.NotStarted=0]="NotStarted",sn[sn.Running=1]="Running",sn[sn.Stopped=2]="Stopped",Nt.addCustomEvent,Nt.freezePage,Nt.takeFullSnapshot;var mm=Object.defineProperty,Nr=function(t,n,e){return(function(r,i,s){return i in r?mm(r,i,{enumerable:!0,configurable:!0,writable:!0,value:s}):r[i]=s})(t,(n===void 0?"undefined":ie(n))!=="symbol"?n+"":n,e)},cn=(function(){function t(n){Nr(this,"fileName"),Nr(this,"functionName"),Nr(this,"lineNumber"),Nr(this,"columnNumber"),this.fileName=n.fileName||"",this.functionName=n.functionName||"",this.lineNumber=n.lineNumber,this.columnNumber=n.columnNumber}return t.prototype.toString=function(){var n=this.lineNumber||"",e=this.columnNumber||"";return this.functionName?this.functionName+" ("+this.fileName+":"+n+":"+e+")":this.fileName+":"+n+":"+e},t})(),_m=/(^|@)\S+:\d+/,xc=/^\s*at .*(\S+:\d+|\(native\))/m,gm=/^(eval@)?(\[native code])?$/,no={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 n=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(t.replace(/[()]/g,""));if(!n)throw new Error("Cannot parse given url: "+t);return[n[1],n[2]||void 0,n[3]||void 0]},parseV8OrIE:function(t){return t.stack.split(`
54
+ `).filter((function(n){return!!n.match(xc)}),this).map((function(n){n.indexOf("(eval ")>-1&&(n=n.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(\),.*$)/g,""));var e=n.replace(/^\s+/,"").replace(/\(eval code/g,"("),r=e.match(/ (\((.+):(\d+):(\d+)\)$)/),i=(e=r?e.replace(r[0],""):e).split(/\s+/).slice(1),s=this.extractLocation(r?r[1]:i.pop()),l=i.join(" ")||void 0,d=["eval","<anonymous>"].indexOf(s[0])>-1?void 0:s[0];return new cn({functionName:l,fileName:d,lineNumber:s[1],columnNumber:s[2]})}),this)},parseFFOrSafari:function(t){return t.stack.split(`
55
+ `).filter((function(n){return!n.match(gm)}),this).map((function(n){if(n.indexOf(" > eval")>-1&&(n=n.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),n.indexOf("@")===-1&&n.indexOf(":")===-1)return new cn({functionName:n});var e=/((.*".+"[^@]*)?[^@]*)(?:@)/,r=n.match(e),i=r&&r[1]?r[1]:void 0,s=this.extractLocation(n.replace(e,""));return new cn({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 n=/Line (\d+).*script (?:in )?(\S+)/i,e=t.message.split(`
59
+ `),r=[],i=2,s=e.length;i<s;i+=2){var l=n.exec(e[i]);l&&r.push(new cn({fileName:l[2],lineNumber:parseFloat(l[1])}))}return r},parseOpera10:function(t){for(var n=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,e=t.stacktrace.split(`
60
+ `),r=[],i=0,s=e.length;i<s;i+=2){var l=n.exec(e[i]);l&&r.push(new cn({functionName:l[3]||void 0,fileName:l[2],lineNumber:parseFloat(l[1])}))}return r},parseOpera11:function(t){return t.stack.split(`
61
+ `).filter((function(n){return!!n.match(_m)&&!n.match(/^Error created at/)}),this).map((function(n){var e=n.split("@"),r=this.extractLocation(e.pop()),i=(e.shift()||"").replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^)]*\)/g,"")||void 0;return new cn({functionName:i,fileName:r[0],lineNumber:r[1],columnNumber:r[2]})}),this)}};function vm(t){if(!t||!t.outerHTML)return"";for(var n="";t.parentElement;){var e=t.localName;if(!e)break;e=e.toLowerCase();var r=t.parentElement,i=[];if(r.children&&r.children.length>0)for(var s=0;s<r.children.length;s++){var l=r.children[s];l.localName&&l.localName.toLowerCase&&l.localName.toLowerCase()===e&&i.push(l)}i.length>1&&(e+=":eq("+i.indexOf(t)+")"),n=e+(n?">"+n:""),t=r}return n}function ea(t){return Object.prototype.toString.call(t)==="[object Object]"}function Vu(t,n){if(n===0)return!0;for(var e,r=V(Object.keys(t));!(e=r()).done;){var i=e.value;if(ea(t[i])&&Vu(t[i],n-1))return!0}return!1}function ln(t,n){var e={numOfKeysLimit:50,depthOfLimit:4};Object.assign(e,n);var r=[],i=[];return JSON.stringify(t,(function(s,l){if(r.length>0){var d=r.indexOf(this);~d?r.splice(d+1):r.push(this),~d?i.splice(d,1/0,s):i.push(s),~r.indexOf(l)&&(l=r[0]===l?"[Circular ~]":"[Circular ~."+i.slice(0,r.indexOf(l)).join(".")+"]")}else r.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,n,e){var r,i=e?Object.assign({},Oc,e):Oc,s=i.logger;if(!s)return function(){};r=typeof s=="string"?n[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=no.parse(v).map((function(E){return E.toString()})),k=[ln(g,i.stringifyOptions)];t({level:"error",trace:y,payload:k})};n.addEventListener("error",o),h.push((function(){n.removeEventListener("error",o)}));var a=function(m){var g,v;J(m.reason,Error)?v=[ln("Uncaught (in promise) "+(g=m.reason).name+": "+g.message,i.stringifyOptions)]:(g=new Error,v=[ln("Uncaught (in promise)",i.stringifyOptions),ln(m.reason,i.stringifyOptions)]);var y=no.parse(g).map((function(k){return k.toString()}));t({level:"error",trace:y,payload:v})};n.addEventListener("unhandledrejection",a),h.push((function(){n.removeEventListener("unhandledrejection",a)}))}for(var c,u=V(i.level);!(c=u()).done;){var p=c.value;h.push(_(r,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=no.parse(new Error).map((function(b){return b.toString()})).splice(1),D=(g==="assert"?w.slice(1):w).map((function(b){return ln(b,i.stringifyOptions)}));++l<i.lengthThreshold?t({level:g,trace:P,payload:D}):l===i.lengthThreshold&&t({level:"warn",trace:[],payload:[ln("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,na,Dc=R.setImmediate,Bc=Object.prototype.toString,bm=Dc!==void 0?function(t){return Dc(t)}:setTimeout;try{Object.defineProperty({},"x",{}),Ut=function(t,n,e,r){return Object.defineProperty(t,n,{value:e,writable:!0,configurable:r!==!1})}}catch{Ut=function(n,e,r){return n[e]=r,n}}function yi(t,n){na.add(t,n),ta||(ta=bm(na.drain))}function Uu(t){var n,e=typeof t;return t===null||e!=="object"&&e!=="function"||(n=t.then),typeof n=="function"&&n}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,n,e){var r,i;try{n===!1?e.reject(t.msg):(r=n===!0?t.msg:n.call(void 0,t.msg))===e.promise?e.reject(TypeError("Promise-chain cycle")):(i=Uu(r))?i.call(r,e.resolve,e.reject):e.resolve(r)}catch(s){e.reject(s)}}function ju(t){var n,e=this;if(!e.triggered){e.triggered=!0,e.def&&(e=e.def);try{(n=Uu(t))?yi((function(){var r=new Lc(e);try{n.call(t,(function(){ju.apply(r,arguments)}),(function(){Jn.apply(r,arguments)}))}catch(i){Jn.call(r,i)}})):(e.msg=t,e.state=1,e.chain.length>0&&yi(qa,e))}catch(r){Jn.call(new Lc(e),r)}}}function Jn(t){var n=this;n.triggered||(n.triggered=!0,n.def&&(n=n.def),n.msg=t,n.state=2,n.chain.length>0&&yi(qa,n))}function Mc(t,n,e,r){for(var i=0;i<n.length;i++)(function(s){t.resolve(n[s]).then((function(l){e(s,l)}),r)})(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 n=new Cm(this);this.then=function(e,r){var i={success:typeof e!="function"||e,failure:typeof r=="function"&&r};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})),n.chain.push(i),n.state!==0&&yi(qa,n),i.promise},this.catch=function(e){return this.then(void 0,e)};try{t.call(void 0,(function(e){ju.call(n,e)}),(function(e){Jn.call(n,e)}))}catch(e){Jn.call(n,e)}}na=(function(){var t,n,e;function r(i,s){this.fn=i,this.self=s,this.next=void 0}return{add:function(i,s){e=new r(i,s),n?n.next=e:t=e,n=e,e=void 0},drain:function(){var i=t;for(t=n=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(n,e){if(typeof n!="function"||typeof e!="function")throw TypeError("Not a function");n(t)}))})),Ut(Vt,"reject",(function(t){return new this((function(n,e){if(typeof n!="function"||typeof e!="function")throw TypeError("Not a function");e(t)}))})),Ut(Vt,"all",(function(t){var n=this;return Bc.call(t)!=="[object Array]"?n.reject(TypeError("Not an array")):t.length===0?n.resolve([]):new n((function(e,r){if(typeof e!="function"||typeof r!="function")throw TypeError("Not a function");var i=t.length,s=Array(i),l=0;Mc(n,t,(function(d,h){s[d]=h,++l===i&&e(s)}),r)}))})),Ut(Vt,"race",(function(t){var n=this;return Bc.call(t)!=="[object Array]"?n.reject(TypeError("Not an array")):new n((function(e,r){if(typeof e!="function"||typeof r!="function")throw TypeError("Not a function");Mc(n,t,(function(i,s){e(s)}),r)}))})),he=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1?Promise:Vt;var Fr,Y,ro,Vr,io,kt,ue,oo,ao,ht,ot={DEBUG:!1,LIB_VERSION:"2.73.0"},Yn=864e5,Fc=8e3,Li=Array.prototype,wm=Function.prototype,qu=Object.prototype,$t=Li.slice,Mn=qu.toString,Ur=qu.hasOwnProperty,Me=R.console,Rt=R.navigator,X=R.document,qn=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(n){Me.log(n)}))}},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,n){return function(){return arguments[0]="["+n+"] "+arguments[0],t.apply(se,arguments)}},en=function(t){return{log:lo(se.log,t),error:lo(se.error,t),critical:lo(se.critical,t)}},or=function(t){return function(){try{return t.apply(this,arguments)}catch(n){se.critical("Implementation error. Please turn on debug and contact support@mixpanel.com."),ot.DEBUG&&se.critical(n)}}},zu=function(t){var n=t.prototype;for(var e in n)typeof n[e]=="function"&&(n[e]=or(n[e]))};f.bind=function(t,n){var e,r;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),r=function(){if(!(this instanceof r))return t.apply(n,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},r},f.each=function(t,n,e){if(t!=null){if(Uc&&t.forEach===Uc)t.forEach(n,e);else if(t.length===+t.length){for(var r=0,i=t.length;r<i;r++)if(r in t&&n.call(e,t[r],r,t)===co)return}else for(var s in t)if(Ur.call(t,s)&&n.call(e,t[s],s,t)===co)return}},f.extend=function(t){return f.each($t.call(arguments,1),(function(n){for(var e in n)n[e]!==void 0&&(t[e]=n[e])})),t},f.isArray=Sm||function(t){return Mn.call(t)==="[object Array]"},f.isFunction=function(t){try{return/^\s*\bfunction\b/.test(t)}catch{return!1}},f.isArguments=function(t){return!(!t||!Ur.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,n,e){if(qc&&t.map===qc)return t.map(n,e);var r=[];return f.each(t,(function(i){r.push(n.call(e,i))})),r},f.keys=function(t){var n=[];return t===null||f.each(t,(function(e,r){n[n.length]=r})),n},f.values=function(t){var n=[];return t===null||f.each(t,(function(e){n[n.length]=e})),n},f.include=function(t,n){var e=!1;return t===null?e:jc&&t.indexOf===jc?t.indexOf(n)!=-1:(f.each(t,(function(r){if(e||(e=r===n))return co})),e)},f.includes=function(t,n){return t.indexOf(n)!==-1},f.inherit=function(t,n){return t.prototype=new n,t.prototype.constructor=t,t.superclass=n.prototype,t},f.isObject=function(t){return t===Object(t)&&!f.isArray(t)},f.isEmptyObject=function(t){if(f.isObject(t)){for(var n in t)if(Ur.call(t,n))return!1;return!0}return!1},f.isUndefined=function(t){return t===void 0},f.isString=function(t){return Mn.call(t)=="[object String]"},f.isDate=function(t){return Mn.call(t)=="[object Date]"},f.isNumber=function(t){return Mn.call(t)=="[object Number]"},f.isElement=function(t){return!(!t||t.nodeType!==1)},f.encodeDates=function(t){return f.each(t,(function(n,e){f.isDate(n)?t[e]=f.formatDate(n):f.isObject(n)&&(t[e]=f.encodeDates(n))})),t},f.timestamp=function(){return Date.now=Date.now||function(){return+new Date},Date.now()},f.formatDate=function(t){function n(e){return e<10?"0"+e:e}return t.getUTCFullYear()+"-"+n(t.getUTCMonth()+1)+"-"+n(t.getUTCDate())+"T"+n(t.getUTCHours())+":"+n(t.getUTCMinutes())+":"+n(t.getUTCSeconds())},f.strip_empty_properties=function(t){var n={};return f.each(t,(function(e,r){f.isString(e)&&e.length>0&&(n[r]=e)})),n},f.truncate=function(t,n){var e;return typeof t=="string"?e=t.slice(0,n):f.isArray(t)?(e=[],f.each(t,(function(r){e.push(f.truncate(r,n))}))):f.isObject(t)?(e={},f.each(t,(function(r,i){e[i]=f.truncate(r,n)}))):e=t,e},f.JSONEncode=(function(){return function(t){var n=function(r){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(r)?'"'+r.replace(i,(function(l){var d=s[l];return typeof d=="string"?d:"\\u"+("0000"+l.charCodeAt(0).toString(16)).slice(-4)}))+'"':'"'+r+'"'},e=function(r,i){var s="",l=0,d="",h="",o=0,a=s,c=[],u=i[r];switch(u&&typeof u=="object"&&typeof u.toJSON=="function"&&(u=u.toJSON(r)),typeof u){case"string":return n(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=[],Mn.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)Ur.call(u,d)&&(h=e(d,u))&&c.push(n(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 n=new SyntaxError(t);throw n.at=Fr,n.text=ro,n},ue=function(t){return t&&t!==Y&&kt("Expected '"+t+"' instead of '"+Y+"'"),Y=ro.charAt(Fr),Fr+=1,Y},oo=function(){var t,n="";for(Y==="-"&&(n="-",ue("-"));Y>="0"&&Y<="9";)n+=Y,ue();if(Y===".")for(n+=".";ue()&&Y>="0"&&Y<="9";)n+=Y;if(Y==="e"||Y==="E")for(n+=Y,ue(),Y!=="-"&&Y!=="+"||(n+=Y,ue());Y>="0"&&Y<="9";)n+=Y,ue();if(t=+n,isFinite(t))return t;kt("Bad number")},ao=function(){var t,n,e,r="";if(Y==='"')for(;ue();){if(Y==='"')return ue(),r;if(Y==="\\")if(ue(),Y==="u"){for(e=0,n=0;n<4&&(t=parseInt(ue(),16),isFinite(t));n+=1)e=16*e+t;r+=String.fromCharCode(e)}else{if(typeof io[Y]!="string")break;r+=io[Y]}else r+=Y}kt("Bad string")},ht=function(){for(;Y&&Y<=" ";)ue()},Vr=function(){switch(ht(),Y){case"{":return(function(){var t,n={};if(Y==="{"){if(ue("{"),ht(),Y==="}")return ue("}"),n;for(;Y;){if(t=ao(),ht(),ue(":"),Object.hasOwnProperty.call(n,t)&&kt('Duplicate key "'+t+'"'),n[t]=Vr(),ht(),Y==="}")return ue("}"),n;ue(","),ht()}}kt("Bad object")})();case"[":return(function(){var t=[];if(Y==="["){if(ue("["),ht(),Y==="]")return ue("]"),t;for(;Y;){if(t.push(Vr()),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 n;return ro=t,Fr=0,Y=" ",n=Vr(),ht(),Y&&kt("Syntax error"),n}),f.base64Encode=function(t){var n,e,r,i,s,l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",d=0,h=0,o="",a=[];if(!t)return t;t=f.utf8Encode(t);do n=(s=t.charCodeAt(d++)<<16|t.charCodeAt(d++)<<8|t.charCodeAt(d++))>>18&63,e=s>>12&63,r=s>>6&63,i=63&s,a[h++]=l.charAt(n)+l.charAt(e)+l.charAt(r)+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 n,e,r,i,s="";for(n=e=0,r=(t=(t+"").replace(/\r\n/g,`
67
+ `).replace(/\r/g,`
68
+ `)).length,i=0;i<r;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>n&&(s+=t.substring(n,e)),s+=d,n=e=i+1)}return e>n&&(s+=t.substring(n,t.length)),s},f.UUID=function(){try{return R.crypto.randomUUID()}catch{for(var t=new Array(36),n=0;n<36;n++)t[n]=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(r){return r.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 n;for(t=t.toLowerCase(),n=0;n<zc.length;n++)if(t.indexOf(zc[n])!==-1)return!0;return!1},f.HTTPBuildQuery=function(t,n){var e,r,i=[];return f.isUndefined(n)&&(n="&"),f.each(t,(function(s,l){e=encodeURIComponent(s.toString()),r=encodeURIComponent(l),i[i.length]=r+"="+e})),i.join(n)},f.getQueryParam=function(t,n){n=n.replace(/[[]/g,"\\[").replace(/[\]]/g,"\\]");var e=new RegExp("[\\?&]"+n+"=([^&#]*)").exec(t);if(e===null||e&&typeof e[1]!="string"&&e[1].length)return"";var r=e[1];try{r=decodeURIComponent(r)}catch{se.error("Skipping decoding for malformed query param: "+r)}return r.replace(/\+/g," ")},f.cookie={get:function(t){for(var n=t+"=",e=X.cookie.split(";"),r=0;r<e.length;r++){for(var i=e[r];i.charAt(0)==" ";)i=i.substring(1,i.length);if(i.indexOf(n)===0)return decodeURIComponent(i.substring(n.length,i.length))}return null},parse:function(t){var n;try{n=f.JSONDecode(f.cookie.get(t))||{}}catch{}return n},set_seconds:function(t,n,e,r,i,s,l){var d="",h="",o="";if(l)d="; domain="+l;else if(r){var a=Gc(X.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"),X.cookie=t+"="+encodeURIComponent(n)+h+"; path=/"+d+o},set:function(t,n,e,r,i,s,l){var d="",h="",o="";if(l)d="; domain="+l;else if(r){var a=Gc(X.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(n)+h+"; path=/"+d+o;return X.cookie=u,u},remove:function(t,n,e){f.cookie.set(t,"",-1,n,!1,!1,e)}};var Wu=function(t){var n=!0;try{var e="__mplss_"+za(8);t.setItem(e,"xyz"),t.getItem(e)!=="xyz"&&(n=!1),t.removeItem(e)}catch{n=!1}return n},uo=null,ar=function(t,n){return uo===null||n?uo=Wu(t||R.localStorage):uo},ho=null;function Wc(t,n,e){var r=function(i){se.error(n+" error: "+i)};return{is_supported:function(i){var s=e(t,i);return s||se.error(n+" unsupported"),s},error:r,get:function(i){try{return t.getItem(i)}catch(s){r(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){r(l)}},remove:function(i){try{t.removeItem(i)}catch(s){r(s)}}}}f.localStorage=Wc(R.localStorage,"localStorage",ar),f.sessionStorage=Wc(R.sessionStorage,"sessionStorage",(function(t,n){return ho===null||n?ho=Wu(t||R.sessionStorage):ho})),f.register_event=(function(){function t(n){return n&&(n.preventDefault=t.preventDefault,n.stopPropagation=t.stopPropagation),n}return t.preventDefault=function(){this.returnValue=!1},t.stopPropagation=function(){this.cancelBubble=!0},function(n,e,r,i,s){if(n)if(n.addEventListener&&!i)n.addEventListener(e,r,!!s);else{var l="on"+e,d=n[l];n[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})(n,r,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 n=/[\t\r\n]/g;function e(i,s){var l=" "+s+" ";return(" "+i.className+" ").replace(n," ").indexOf(l)>=0}function r(i){if(!X.getElementsByTagName)return[];var s,l,d,h,o,a,c,u,p,_,m=i.split(" "),g=[X];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=X.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:r.call(this,i)}})();var Im=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","utm_id","utm_source_platform","utm_campaign_id","utm_creative_format","utm_marketing_tactic"],Am=["dclid","fbclid","gclid","ko_click_id","li_fat_id","msclkid","sccid","ttclid","twclid","wbraid"];f.info={campaignParams:function(t){var n="",e={};return f.each(Im,(function(r){(n=f.getQueryParam(X.URL,r)).length?e[r]=n:t!==void 0&&(e[r]=t)})),e},clickParams:function(){var t="",n={};return f.each(Am,(function(e){(t=f.getQueryParam(X.URL,e)).length&&(n[e]=t)})),n},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 n=f.info.searchEngine(t),e=n!="yahoo"?"q":"p",r={};if(n!==null){r.$search_engine=n;var i=f.getQueryParam(t,e);i.length&&(r.mp_keyword=i)}return r},browser:function(t,n,e){return n=n||"",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(n,"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,n,e){var r={"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,n,e)];if(r===void 0)return null;var i=t.match(r);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 n=t.split("/");return n.length>=3?n[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,qn),$referrer:X.referrer,$referring_domain:f.info.referringDomain(X.referrer),$device:f.info.device(_t)}),{$current_url:f.info.currentUrl(),$browser_version:f.info.browserVersion(_t,Rt.vendor,qn),$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,qn)}),{$browser_version:f.info.browserVersion(_t,Rt.vendor,qn)})},mpPageViewProperties:function(){return f.strip_empty_properties({current_page_title:X.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 n=Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10);return t?n.substring(0,t):n},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 n=Pm,e=t.split("."),r=e[e.length-1];(r.length>4||r==="com"||r==="org")&&(n=Tm);var i=t.match(n);return i?i[0]:""},qt=function(){},En=null,ni=null;typeof JSON<"u"&&(En=JSON.stringify,ni=JSON.parse),En=En||f.JSONEncode,ni=ni||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,n){var e=R.indexedDB.open("mixpanelBrowserDb",1);e.onerror=function(){n(e.error)},e.onsuccess=function(){t(e.result)},e.onupgradeneeded=function(r){var i=r.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,n){var e=this.storeName,r=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)},n(d.objectStore(e))}))};return this.dbPromise.then(r).catch((function(i){return i&&i.name==="InvalidStateError"?(this.dbPromise=this._openDb(),this.dbPromise.then(r)):he.reject(i)}).bind(this))},ct.prototype.setItem=function(t,n){return this.makeTransaction("readwrite",(function(e){e.put(n,t)}))},ct.prototype.getItem=function(t){var n;return this.makeTransaction("readonly",(function(e){n=e.get(t)})).then((function(){return n.result}))},ct.prototype.removeItem=function(t){return this.makeTransaction("readwrite",(function(n){n.delete(t)}))},ct.prototype.getAll=function(){var t;return this.makeTransaction("readonly",(function(n){t=n.getAll()})).then((function(){return t.result}))};function xm(t,n){Zu(!0,t,n)}function Om(t,n){Zu(!1,t,n)}function Dm(t,n){return Hu(t,n)==="1"}function $u(t,n){if((function(r){if(r&&r.ignoreDnt)return!1;var i=r&&r.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})(n))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,n)==="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(n){return this.get_config(n)}))}function Mt(t){return Ha(t,(function(n){return this._get_config(n)}))}function un(t){return Ha(t,(function(n){return this._get_config(n)}))}function Bm(t,n){Ga(n=n||{}).remove($a(t,n),!!n.crossSubdomainCookie,n.cookieDomain)}function Ga(t){return(t=t||{}).persistenceType==="localStorage"?f.localStorage:f.cookie}function $a(t,n){return((n=n||{}).persistencePrefix||"__mp_opt_in_out_")+t}function Hu(t,n){return Ga(n).get($a(t,n))}function Zu(t,n,e){f.isString(n)&&n.length?(Ga(e=e||{}).set($a(n,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,n){return function(){var e=!1;try{var r=n.call(this,"token"),i=n.call(this,"ignore_dnt"),s=n.call(this,"opt_out_tracking_persistence_type"),l=n.call(this,"opt_out_tracking_cookie_prefix"),d=n.call(this,"window");r&&(e=$u(r,{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=en("lock"),Ju=function(t,n){n=n||{},this.storageKey=t,this.storage=n.storage||R.localStorage,this.pollIntervalMS=n.pollIntervalMS||100,this.timeoutMS=n.timeoutMS||2e3,this.promiseImpl=n.promiseImpl||he};Ju.prototype.withLock=function(t,n){return new this.promiseImpl(f.bind((function(e,r){var i=n||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){r(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||(ar(o,!0)||r(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(),r(k)}))};try{if(!ar(o,!0))throw new Error("localStorage support check failed");g()}catch(y){r(y)}}),this))};var mn=function(t){this.storage=t||R.localStorage};mn.prototype.init=function(){return he.resolve()},mn.prototype.isInitialized=function(){return!0},mn.prototype.setItem=function(t,n){return new he(f.bind((function(e,r){try{this.storage.setItem(t,En(n))}catch(i){r(i)}e()}),this))},mn.prototype.getItem=function(t){return new he(f.bind((function(n,e){var r;try{r=ni(this.storage.getItem(t))}catch(i){e(i)}n(r)}),this))},mn.prototype.removeItem=function(t){return new he(f.bind((function(n,e){try{this.storage.removeItem(t)}catch(r){e(r)}n()}),this))};var $c=en("batch"),yt=function(t,n){var e,r,i,s;n=n||{},this.storageKey=t,this.usePersistence=n.usePersistence,this.usePersistence&&(this.queueStorage=n.queueStorage||new mn,this.lock=new Ju(t,{storage:n.sharedLockStorage||R.localStorage,timeoutMS:n.sharedLockTimeoutMS})),this.reportError=n.errorReporter||f.bind($c.error,$c),this.pid=n.pid||null,this.memQueue=[],this.initialized=!1,n.enqueueThrottleMs?this.enqueuePersisted=(e=f.bind(this._enqueuePersisted,this),r=n.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)}),r)}))),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,n){var e={id:za(),flushAfter:new Date().getTime()+2*n,payload:t};return this.usePersistence?this.enqueuePersisted(e):(this.memQueue.push(e),he.resolve(!0))},yt.prototype._enqueuePersisted=function(t){var n=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(n,this.pid).catch(f.bind((function(e){return this.reportError("Error acquiring storage lock",e),!1}),this))},yt.prototype.fillBatch=function(t){var n=this.memQueue.slice(0,t);return this.usePersistence&&n.length<t?this.ensureInit().then(f.bind((function(){return this.readFromStorage()}),this)).then(f.bind((function(e){if(e.length){var r={};f.each(n,(function(l){r[l.id]=!0}));for(var i=0;i<e.length;i++){var s=e[i];if(new Date().getTime()>s.flushAfter&&!r[s.id]&&(s.orphaned=!0,n.push(s),n.length>=t))break}}return n}),this)):he.resolve(n)};var Hc=function(t,n){var e=[];return f.each(t,(function(r){r.id&&!n[r.id]&&e.push(r)})),e};yt.prototype.removeItemsByID=function(t){var n={};if(f.each(t,(function(r){n[r]=!0})),this.memQueue=Hc(this.memQueue,n),this.usePersistence){var e=f.bind((function(){return this.ensureInit().then(f.bind((function(){return this.readFromStorage()}),this)).then(f.bind((function(r){return r=Hc(r,n),this.saveToStorage(r)}),this)).then(f.bind((function(){return this.readFromStorage()}),this)).then(f.bind((function(r){for(var i=0;i<r.length;i++){var s=r[i];if(s.id&&n[s.id])throw new Error("Item not removed from storage")}return!0}),this)).catch(f.bind((function(r){return this.reportError("Error removing items",r,t),!1}),this))}),this);return this.lock.withLock(e,this.pid).catch(f.bind((function(r){return this.reportError("Error acquiring storage lock",r),!ar(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,n){var e=[];return f.each(t,(function(r){var i=r.id;if(i in n){var s=n[i];s!==null&&(r.payload=s,e.push(r))}else e.push(r)})),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(n){return n=Zc(n,t),this.saveToStorage(n)}),this)).catch(f.bind((function(n){return this.reportError("Error updating items",t,n),!1}),this))}),this),this.pid).catch(f.bind((function(n){return this.reportError("Error acquiring storage lock",n),!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(n){return this.reportError("Error saving queue",n),!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 Ln=en("batch"),rt=function(t,n){this.errorReporter=n.errorReporter,this.queue=new yt(t,{errorReporter:f.bind(this.reportError,this),queueStorage:n.queueStorage,sharedLockStorage:n.sharedLockStorage,sharedLockTimeoutMS:n.sharedLockTimeoutMS,usePersistence:n.usePersistence,enqueueThrottleMs:n.enqueueThrottleMs}),this.libConfig=n.libConfig,this.sendRequest=n.sendRequestFunc,this.beforeSendHook=n.beforeSendHook,this.stopAllBatching=n.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=n.flushOnlyOnInterval||!1,this._flushPromise=null};rt.prototype.enqueue=function(t){return this.queue.enqueue(t,this.flushInterval)},rt.prototype.start=function(){return this.stopped=!1,this.consecutiveRemovalFailures=0,this.flush()},rt.prototype.stop=function(){this.stopped=!0,this.timeoutID&&(clearTimeout(this.timeoutID),this.timeoutID=null)},rt.prototype.clear=function(){return this.queue.clear()},rt.prototype.resetBatchSize=function(){this.batchSize=this.libConfig.batch_size},rt.prototype.resetFlush=function(){this.scheduleFlush(this.libConfig.batch_flush_interval_ms)},rt.prototype.scheduleFlush=function(t){this.flushInterval=t,this.stopped||(this.timeoutID=setTimeout(f.bind((function(){this.stopped||(this._flushPromise=this.flush())}),this),this.flushInterval))},rt.prototype.sendRequestPromise=function(t,n){return new he(f.bind((function(e){this.sendRequest(t,n,e)}),this))},rt.prototype.flush=function(t){if(this.requestInProgress)return Ln.log("Flush: Request already in progress"),he.resolve();this.requestInProgress=!0,t=t||{};var n=this.libConfig.batch_request_timeout_ms,e=new Date().getTime(),r=this.batchSize;return this.queue.fillBatch(r).then(f.bind((function(i){var s=i.length===r,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>=n)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(r/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:n};return t.unloading&&(a.transport="sendBeacon"),Ln.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))},rt.prototype.reportError=function(t,n){if(Ln.error.apply(Ln.error,arguments),this.errorReporter)try{n instanceof Error||(n=new Error(t)),this.errorReporter(t,n)}catch(e){Ln.error(e)}};var ra=function(t){var n=Date.now();return!t||n>t.maxExpires||n>t.idleExpires},dn=en("recorder"),Lm=R.CompressionStream,Nm={batch_size:1e3,batch_flush_interval_ms:1e4,batch_request_timeout_ms:9e4,batch_autostart:!0},Fm=new Set([Q.MouseMove,Q.MouseInteraction,Q.Scroll,Q.ViewportResize,Q.Input,Q.TouchMove,Q.MediaInteraction,Q.Drag,Q.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=Yn,this.recordMinMs=0;var n=ar(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 rt(this.batcherKey,{errorReporter:this.reportError.bind(this),flushOnlyOnInterval:!0,libConfig:Nm,sendRequestFunc:this.flushEventsWithOptOut.bind(this),queueStorage:this.queueStorage,sharedLockStorage:t.sharedLockStorage,usePersistence:n,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())},n=this._mixpanel.get_property("$device_id");n&&(t.$device_id=n);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>Yn&&(this.recordMaxMs=Yn,dn.critical("record_max_ms cannot be greater than "+Yn+"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 n=(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);n();var e,r=this.getConfig("record_block_selector");r!==""&&r!==null||(r=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(),n()),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:r,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 dn.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 n;return this.batcher.stopped?n=this.batcher.clear():t||(n=this.batcher.flush()),this.batcher.stop(),clearTimeout(this.idleTimeoutId),clearTimeout(this.maxTimeoutId),n},Ne.prototype.isRrwebStopped=function(){return this._stopRecording===null},Ne.prototype.flushEventsWithOptOut=function(t,n,e){var r=(function(i){i===0&&(this.stopRecording(),e({error:"Tracking has been opted out, stopping recording."}))}).bind(this);this._flushEvents(t,n,e,r)},Ne.prototype.serialize=function(){var t;try{t=this._mixpanel.get_tab_id()}catch(n){this.reportError("Error getting tab ID for serialization ",n),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,n){return new Ne(f.extend({},n,{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:n.sharedLockStorage}))},Ne.prototype._sendRequest=function(t,n,e,r){var i=(function(l,d){l.status===200&&this.replayId===t&&(this.seqNo++,this.batchStartUrl=f.info.currentUrl()),this._onBatchSent(),r({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(n),{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){r({error:d})}))})).catch((function(l){r({error:l,httpStatusCode:0})}))},Ne.prototype._flushEvents=Ft((function(t,n,e){var r=t.length;if(r>0){for(var i=this.replayId,s=1/0,l=-1/0,d=!1,h=0;h<r;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,qn)){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,n){dn.error.apply(dn.error,arguments);try{n||t instanceof Error||(t=new Error(t)),this.getConfig("error_reporter")(t,n)}catch(e){dn.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?(dn.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 n=t.tabId;return n?this.idb.init().then((function(){return this.idb.setItem(n,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 ra(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 n=t.filter((function(e){return ra(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(n)}).bind(this)).catch(this.handleError.bind(this)):he.resolve([])};var zn=en("recorder"),Ct=function(t,n,e){this.mixpanelInstance=t,this.rrwebRecord=n||Nt,this.sharedLockStorage=e,this.recordingRegistry=new St({mixpanelInstance:this.mixpanelInstance,errorReporter:zn.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 n=(function(){zn.log("Idle timeout reached, restarting recording."),this.resetRecording()}).bind(this),e=(function(){zn.log("Max recording length reached, stopping recording."),this.resetRecording()}).bind(this),r=(function(){this.recordingRegistry.setActiveRecording(this.activeRecording.serialize()),this.__flushPromise=this.activeRecording.batcher._flushPromise}).bind(this),i={mixpanelInstance:this.mixpanelInstance,onBatchSent:r,onIdleTimeout:n,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())}zn.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,n){if(this.activeRecording){var e=this.activeRecording.stopRecording(t);return n&&(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(n){return n&&!this.stopRecordingInProgress?this.startRecording({activeSerializedRecording:n}):t?this.startRecording({shouldStopBatcher:!1}):(zn.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 sr="change",It="click",ia="hashchange",Jc="load",Lt="mp_locationchange",Yc="popstate",bi="scrollend",oa="scroll",ki="submit",Qc="visibilitychange",Vm=["clientX","clientY","offsetX","offsetY","pageX","pageY","screenX","screenY","x","y"],Xc=["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=en("autocapture");function sa(t){for(var n={},e=Yu(t).split(" "),r=0;r<e.length;r++){var i=e[r];i&&(n[i]=!0)}return n}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&&!Qu(t));return t}function tl(t,n,e,r,i,s){var l={$classes:Yu(t).split(" "),$tag_name:t.tagName.toLowerCase()},d=t.id;d&&(l.$id=d),Za(t,n,i,s)&&f.each(Um.concat(r),(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,n){var e=n.allowElementCallback,r=n.allowSelectors||[],i=n.blockAttrs||[],s=n.blockElementCallback,l=n.blockSelectors||[],d=n.captureTextContent||!1,h=n.captureExtraAttrs||[],o=n.capturedForHeatMap||!1,a={};f.each(i,(function(w){a[w]=!0}));var c=null,u=t.target===void 0?t.srcElement:t.target;if(Xu(u)&&(u=u.parentNode),(function(w,C){if(!w||gt(w,"html")||!Qu(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===sr:C.type===It;case"select":case"textarea":return C.type===sr;default:return C.type===It}})(u,t)&&ca(u,t,e,r)&&!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,r);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,r))}),this),!v){var y=X.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:X.body.offsetHeight||0,$pageWidth:X.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=nl(u,t,e,r))&&k.length&&(c.$el_text=k),t.type===It&&(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=nl(u,t,e,r);k&&k.length&&(c.$el_text=k)}if(u){if(!ca(u,t,e,r)||po(u,t,s,l))return null;var E=tl(u,t,a,h,e,r);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 nl(t,n,e,r){var i="";return Za(t,n,e,r)&&t.childNodes&&t.childNodes.length&&f.each(t.childNodes,(function(s){Xu(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,n,e,r){if(e)try{if(!e(t,n))return!1}catch(l){return ye.critical("Error while checking element in allowElementCallback",l),!1}if(!r.length)return!0;for(var i=0;i<r.length;i++){var s=r[i];try{if(t.matches(s))return!0}catch(l){ye.critical("Error while checking selector: "+s,l)}}return!1}function po(t,n,e,r){var i;if(e)try{if(e(t,n))return!0}catch(d){return ye.critical("Error while checking element in blockElementCallback",d),!0}if(r&&r.length)for(i=0;i<r.length;i++){var s=r[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 Qu(t){return t&&t.nodeType===1}function gt(t,n){return t&&t.tagName&&t.tagName.toLowerCase()===n.toLowerCase()}function Xu(t){return t&&t.nodeType===3}function Za(t,n,e,r){var i;if(!ca(t,n,e,r))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<Xc.length;i++)if(d[Xc[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 rl(t){var n="onscrollend"in R,e=or(t),r=bi;if(!n){var i=null;e=or((function(){clearTimeout(i),i=setTimeout(t,100)})),r=oa}return{listener:e,eventType:r}}function fo(t){var n=t.tagName.toLowerCase();return n==="button"||n==="input"||n==="select"||n==="textarea"||n==="details"||n==="dialog"||!!t.isContentEditable||!!(t.onclick||t.onmousedown||t.onmouseup||t.ontouchstart||t.ontouchend)||!!(function(e){for(var r=0;r<el.length;r++)if(e.hasAttribute(el[r]))return!0;return!1})(t)||!!(function(e){var r=e.getAttribute("role");if(!r)return!1;var i=r.trim().split(/\s+/)[0].toLowerCase();return jm[i]})(t)||!(n!=="a"||!t.hasAttribute("href"))||!!t.hasAttribute("tabindex")}function Ku(t){if(!t||!t.tagName)return!0;var n=t.tagName.toLowerCase();if(qm[n])return!0;if(fo(t))return!1;for(var e=t.parentElement,r=0;e&&r<5;){if(fo(e))return!1;if(e.getRootNode&&e.getRootNode()!==X){var i=e.getRootNode();if(i.host&&fo(i.host))return!1}e=e.parentElement,r++}return!!zm[n]}function ed(t){return"composedPath"in t?t.composedPath():[]}function il(t){var n=ed(t);return n&&n.length>0?n[0]:t.target||t.srcElement}function td(){this.clicks=[]}function _n(t,n){this.changeCallback=t||function(){},this.observerConfig=n,this.observedShadowRoots=null,this.shadowObservers=[]}td.prototype.isRageClick=function(t,n){var e=(n=n||{}).threshold_px||30,r=n.timeout_ms||1e3,i=n.click_count||4;if(n.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<r&&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},_n.prototype.getEventTarget=function(t){if(this.observedShadowRoots)return il(t)},_n.prototype.observeFromEvent=function(t){if(this.observedShadowRoots)for(var n=ed(t),e=0;e<n.length;e++){var r=n[e];r&&r.shadowRoot&&this.observeShadowRoot(r.shadowRoot)}},_n.prototype.observeShadowRoot=function(t){if(this.observedShadowRoots&&!this.observedShadowRoots.has(t)){var n=this;try{this.observedShadowRoots.add(t);var e=new window.MutationObserver((function(){n.changeCallback()}));e.observe(t,this.observerConfig),this.shadowObservers.push(e)}catch(r){ye.critical("Error while observing shadow root",r)}}},_n.prototype.start=function(){this.observedShadowRoots||(typeof WeakSet<"u"?this.observedShadowRoots=new WeakSet:ye.critical("Shadow DOM observation unavailable: WeakSet not supported"))},_n.prototype.stop=function(){if(this.observedShadowRoots){for(var t=0;t<this.shadowObservers.length;t++)try{this.shadowObservers[t].disconnect()}catch(n){ye.critical("Error while disconnecting shadow DOM observer",n)}this.shadowObservers=[],this.observedShadowRoots=null}};var $m=[sr,"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 n=this.shadowDOMObserver&&this.shadowDOMObserver.getEventTarget(t);return n||(n=t.target||t.srcElement),!(!n||Ku(n))&&(this.shadowDOMObserver&&this.shadowDOMObserver.observeFromEvent(t),this.pendingClicks.push({element:n,event:t,timestamp:Date.now()}),!0)},mt.prototype.trackClick=function(t,n){if(!this.isTracking)return!1;var e=this.addClick(t);return e&&this.triggerProcessing(n),e},mt.prototype.getDeadClicks=function(t){if(this.pendingClicks.length===0)return[];var n=t.timeout_ms,e=Date.now(),r=this.pendingClicks.slice();this.pendingClicks=[];for(var i=[],s=0;s<r.length;s++){var l=r[s];e-l.timestamp>=n?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 n=t.timeout_ms,e=this;this.processingTimeout=setTimeout((function(){if(e.processingActive){for(var r=e.getDeadClicks(t),i=0;i<r.length;i++)e.onDeadClickCallback(r[i].event);e.pendingClicks.length>0?e.processRecursively(t):e.processingActive=!1}}),n)}else this.processingActive=!1},mt.prototype.startTracking=function(){if(!this.isTracking){this.isTracking=!0;var t=this;$m.forEach((function(e){var r=function(){t.recordChangeEvent()};document.addEventListener(e,r,{capture:!0,passive:!0}),t.eventListeners.push({target:document,event:e,handler:r,options:{capture:!0,passive:!0}})})),Zm.forEach((function(e){var r=function(){t.recordChangeEvent()};window.addEventListener(e,r),t.eventListeners.push({target:window,event:e,handler:r})})),Hm.forEach((function(e){var r=function(){t.recordChangeEvent()};window.addEventListener(e,r,{passive:!0}),t.eventListeners.push({target:window,event:e,handler:r,options:{passive:!0}})}));var n=function(){t.recordChangeEvent()};if(document.addEventListener("selectionchange",n),t.eventListeners.push({target:document,event:"selectionchange",handler:n}),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 _n((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 n=this.eventListeners[t];try{n.target.removeEventListener(n.event,n.handler,n.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",nd="full-url",rd="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",ri="click",ii="dead_click",la="input",pd="pageview",oi="rage_click",ua="scroll",ai="page_leave",da="submit",Le={};Le[rd]=[],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[ri]=!0,Le[ii]=!0,Le[la]=!0,Le[pd]=nd,Le[oi]=!0,Le[ua]=!0,Le[ai]=!1,Le[da]=!0;var Nn={$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!!X.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,n=f.info.currentUrl(),e=this.getConfig(id)||[];if(e.length){var r=!1;for(t=0;t<e.length;t++){var i=e[t];try{if(n.match(i)){r=!0;break}}catch(l){return ye.critical("Error while checking block URL regex: "+i,l),!0}}if(!r)return!0}var s=this.getConfig(cd)||[];if(!s||!s.length)return!1;for(t=0;t<s.length;t++)try{if(n.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,n){if(!this.currentUrlBlocked()){var e=this.mp.is_recording_heatmap_data()&&(n===sl&&!this.getConfig(ri)||n===ll&&!this._getClickTrackingConfig(oi)||n===cl&&!this._getClickTrackingConfig(ii)),r=Gm(t,{allowElementCallback:this.getConfig("allow_element_callback"),allowSelectors:this.getConfig(rd),blockAttrs:this.getConfig(od),blockElementCallback:this.getConfig(ad),blockSelectors:this.getConfig(sd),captureExtraAttrs:this.getConfig(ld),captureTextContent:this.getConfig(ud),capturedForHeatMap:e});r&&(f.extend(r,Nn),this.mp.track(n,r))}},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,r,i){t.call(R.history,e,r,i),R.dispatchEvent(new Event(Lt))});var n=R.history.replaceState;typeof n=="function"&&(R.history.replaceState=function(e,r,i){n.call(R.history,e,r,i),R.dispatchEvent(new Event(Lt))})}},xe.prototype._getClickTrackingConfig=function(t){var n=this.getConfig(t);return n?n===!0?{}:typeof n=="object"?n:{}:null},xe.prototype._trackPageLeave=function(t,n,e){if(!this.hasTrackedScrollSession&&(this.getConfig(ai)||this.mp.is_recording_heatmap_data())){this.hasTrackedScrollSession=!0;var r=Math.max(X.documentElement.clientHeight,R.innerHeight||0),i=Math.round(Math.max(this.maxScrollViewDepth-r,0)/(e-r)*100),s=Math.round(r/e*100);e<=r&&(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:n||f.info.currentUrl(),$viewportHeight:r,$viewportWidth:Math.max(X.documentElement.clientWidth,R.innerWidth||0),$captured_for_heatmap:this.mp.is_recording_heatmap_data()},Nn);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(X.documentElement.clientHeight,R.innerHeight||0);var t=rl((function(){if(!this.currentUrlBlocked()){var n=Math.max(X.documentElement.clientHeight,R.innerHeight||0)+R.scrollY;n>this.maxScrollViewDepth&&(this.maxScrollViewDepth=n),this.previousScrollHeight=X.body.scrollHeight}}).bind(this));this.listenerScrollDepth=t.listener,R.addEventListener(t.eventType,this.listenerScrollDepth)}},xe.prototype.initClickTracking=function(){R.removeEventListener(It,this.listenerClick),(this.getConfig(ri)||this.mp.get_config("record_heatmap_data"))&&(ye.log("Initializing click tracking"),this.listenerClick=(function(t){(this.getConfig(ri)||this.mp.is_recording_heatmap_data())&&this.trackDomEvent(t,sl)}).bind(this),R.addEventListener(It,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 n=this._getClickTrackingConfig(ii);if((n||this.mp.is_recording_heatmap_data())&&!this.currentUrlBlocked()){var e=n||{};e.timeout_ms||(e.timeout_ms=500),this._deadClickTracker.trackClick(t,e)}}).bind(this),R.addEventListener(It,this.listenerDeadClick))):this.stopDeadClickTracking()},xe.prototype.initInputTracking=function(){R.removeEventListener(sr,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(sr,this.listenerChange))},xe.prototype.initPageviewTracking=function(){if(R.removeEventListener(Lt,this.listenerLocationchange),this.pageviewTrackingConfig()){ye.log("Initializing pageview tracking");var t="",n=!1;this.currentUrlBlocked()||(n=this.mp.track_pageview(Nn)),n&&(t=f.info.currentUrl()),this.listenerLocationchange=or((function(){if(!this.currentUrlBlocked()){var e=f.info.currentUrl(),r=!1,i=e.split("#")[0].split("?")[0]!==t.split("#")[0].split("?")[0],s=this.pageviewTrackingConfig();s===nd?r=e!==t:s==="url-with-path-and-query-string"?r=e.split("#")[0]!==t.split("#")[0]:s==="url-with-path"&&(r=i),r&&(this.mp.track_pageview(Nn)&&(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(It,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 n=this._getClickTrackingConfig(oi);(n||this.mp.is_recording_heatmap_data())&&(this.currentUrlBlocked()||this._rageClickTracker.isRageClick(t,n)&&this.trackDomEvent(t,ll))}).bind(this),R.addEventListener(It,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=rl((function(){if(this.getConfig(ua)&&!this.currentUrlBlocked()){var n=this.getConfig(dd),e=(this.getConfig(hd)||[]).slice().sort((function(o,a){return o-a})),r=R.scrollY,i=f.extend({$scroll_top:r},Nn);try{var s=X.body.scrollHeight,l=Math.round(r/(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,n=!0)}}catch(o){ye.critical("Error while calculating scroll percentage",o)}n&&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(X.removeEventListener(Qc,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=X.body.scrollHeight}).bind(this),R.addEventListener(Jc,this.listenerPageLoad),this.listenerPageLeaveLocationchange=or((function(n){if(!this.currentUrlBlocked()){var e=f.info.currentUrl();e!==t&&(this._trackPageLeave(n,t,this.previousScrollHeight),t=e,this.maxScrollViewDepth=Math.max(X.documentElement.clientHeight,R.innerHeight||0),this.previousScrollHeight=X.body.scrollHeight,this.hasTrackedScrollSession=!1)}}).bind(this)),R.addEventListener(Lt,this.listenerPageLeaveLocationchange),this.listenerPageLeaveVisibilitychange=(function(n){X.hidden&&this._trackPageLeave(n,t,this.previousScrollHeight)}).bind(this),X.addEventListener(Qc,this.listenerPageLeaveVisibilitychange)}},xe.prototype.stopDeadClickTracking=function(){this.listenerDeadClick&&(R.removeEventListener(It,this.listenerDeadClick),this.listenerDeadClick=null),this._deadClickTracker&&(this._deadClickTracker.stopTracking(),this._deadClickTracker=null)},zu(xe);var Qe=en("flags"),jr="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):Qe.critical("Feature Flags unavailable: missing minimum required APIs")},ae.prototype.getFullConfig=function(){var t=this.getMpConfig(jr);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(jr)},ae.prototype.updateContext=function(t,n){if(!this.isSystemEnabled())return Qe.critical("Feature Flags not enabled, cannot update context"),Promise.resolve();var e=this.getMpConfig(jr);f.isObject(e)||(e={});var r=n&&n.replace?{}:this.getConfig(si);return e[si]=f.extend({},r,t),this.setMpConfig(jr,e),this.fetchFlags()},ae.prototype.areFlagsReady=function(){return this.isSystemEnabled()||Qe.error("Feature Flags not enabled"),!!this.flags},ae.prototype.fetchFlags=function(){if(!this.isSystemEnabled())return Promise.resolve();var t=this.getMpProperty("distinct_id"),n=this.getMpProperty("$device_id"),e="00-"+f.UUID().replace(/-/g,"")+"-"+f.UUID().replace(/-/g,"").substring(0,16)+"-01";Qe.log("Fetching flags for distinct ID: "+t);var r=f.extend({distinct_id:t,device_id:n},this.getConfig(si)),i=new URLSearchParams;i.set("context",JSON.stringify(r)),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(),Qe.error(d)}).bind(this))}).bind(this)).catch((function(l){this.markFetchComplete(),Qe.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):Qe.error("Fetch in progress started time not set, cannot mark fetch complete")},ae.prototype.getVariant=function(t,n){return this.fetchPromise?this.fetchPromise.then((function(){return this.getVariantSync(t,n)}).bind(this)).catch((function(e){return Qe.error(e),n})):new Promise((function(e){Qe.critical("Feature Flags not initialized"),e(n)}))},ae.prototype.getVariantSync=function(t,n){if(!this.areFlagsReady())return Qe.log("Flags not loaded yet"),n;var e=this.flags.get(t);return e?(this.trackFeatureCheck(t,e),e):(Qe.log('No flag found: "'+t+'"'),n)},ae.prototype.getVariantValue=function(t,n){return this.getVariant(t,{value:n}).then((function(e){return e.value})).catch((function(e){return Qe.error(e),n}))},ae.prototype.getFeatureData=function(t,n){return Qe.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,n)},ae.prototype.getVariantValueSync=function(t,n){return this.getVariantSync(t,{value:n}).value},ae.prototype.isEnabled=function(t,n){return this.getVariantValue(t).then((function(){return this.isEnabledSync(t,n)}).bind(this)).catch((function(e){return Qe.error(e),n}))},ae.prototype.isEnabledSync=function(t,n){n=n||!1;var e=this.getVariantValueSync(t,n);return e!==!0&&e!==!1&&(Qe.error('Feature flag "'+t+'" value: '+e+" is not a boolean; returning fallback value: "+n),e=n),e},ae.prototype.trackFeatureCheck=function(t,n){if(!this.trackedFeatures.has(t)){this.trackedFeatures.add(t);var e={"Experiment name":t,"Variant name":n.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};n.experiment_id!=="undefined"&&(e.$experiment_id=n.experiment_id),n.is_experiment_active!=="undefined"&&(e.$is_experiment_active=n.is_experiment_active),n.is_qa_tester!=="undefined"&&(e.$is_qa_tester=n.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,n,e,r){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(r,o,h,!0),a),i.mp.track(n,o,i.track_callback(r,o,h))}))}),this),!0;se.error("The DOM query ("+t+") returned 0 elements")},Et.prototype.track_callback=function(t,n,e,r){r=r||!1;var i=this;return function(){e.callback_fired||(e.callback_fired=!0,t&&t(r,n)===!1||i.after_track_handler(n,e,r))}},Et.prototype.create_properties=function(t,n){return typeof t=="function"?t(n):f.extend({},t)};var gn=function(){this.override_event="click"};f.inherit(gn,Et),gn.prototype.create_properties=function(t,n){var e=gn.superclass.create_properties.apply(this,arguments);return n.href&&(e.url=n.href),e},gn.prototype.event_handler=function(t,n,e){e.new_tab=t.which===2||t.metaKey||t.ctrlKey||n.target==="_blank",e.href=n.href,e.new_tab||t.preventDefault()},gn.prototype.after_track_handler=function(t,n){n.new_tab||setTimeout((function(){window.location=n.href}),0)};var ci=function(){this.override_event="submit"};f.inherit(ci,Et),ci.prototype.event_handler=function(t,n,e){e.element=n,t.preventDefault()},ci.prototype.after_track_handler=function(t,n){setTimeout((function(){n.element.submit()}),0)};var jt="$set",In="$set_once",lt="$unset",Zt="$add",vt="$append",Jt="$union",At="$remove",fd={set_action:function(t,n){var e={},r={};return f.isObject(t)?f.each(t,(function(i,s){this._is_reserved_property(s)||(r[s]=i)}),this):r[t]=n,e[jt]=r,e},unset_action:function(t){var n={},e=[];return f.isArray(t)||(t=[t]),f.each(t,(function(r){this._is_reserved_property(r)||e.push(r)}),this),n[lt]=e,n},set_once_action:function(t,n){var e={},r={};return f.isObject(t)?f.each(t,(function(i,s){this._is_reserved_property(s)||(r[s]=i)}),this):r[t]=n,e[In]=r,e},union_action:function(t,n){var e={},r={};return f.isObject(t)?f.each(t,(function(i,s){this._is_reserved_property(s)||(r[s]=f.isArray(i)?i:[i])}),this):r[t]=f.isArray(n)?n:[n],e[Jt]=r,e},append_action:function(t,n){var e={},r={};return f.isObject(t)?f.each(t,(function(i,s){this._is_reserved_property(s)||(r[s]=i)}),this):r[t]=n,e[vt]=r,e},remove_action:function(t,n){var e={},r={};return f.isObject(t)?f.each(t,(function(i,s){this._is_reserved_property(s)||(r[s]=i)}),this):r[t]=n,e[At]=r,e},delete_action:function(){var t={$delete:""};return t}},we=function(){};f.extend(we.prototype,fd),we.prototype._init=function(t,n,e){this._mixpanel=t,this._group_key=n,this._group_id=e},we.prototype.set=un((function(t,n,e){var r=this.set_action(t,n);return f.isObject(t)&&(e=n),this._send_request(r,e)})),we.prototype.set_once=un((function(t,n,e){var r=this.set_once_action(t,n);return f.isObject(t)&&(e=n),this._send_request(r,e)})),we.prototype.unset=un((function(t,n){var e=this.unset_action(t);return this._send_request(e,n)})),we.prototype.union=un((function(t,n,e){f.isObject(t)&&(e=n);var r=this.union_action(t,n);return this._send_request(r,e)})),we.prototype.delete=un((function(t){var n=this.delete_action();return this._send_request(n,t)})),we.prototype.remove=un((function(t,n,e){var r=this.remove_action(t,n);return this._send_request(r,e)})),we.prototype._send_request=function(t,n){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},n)},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,n,e){var r=this.set_action(t,n);return f.isObject(t)&&(e=n),this._get_config("save_referrer")&&this._mixpanel.persistence.update_referrer_info(document.referrer),r[jt]=f.extend({},f.info.people_properties(),r[jt]),this._send_request(r,e)})),ee.prototype.set_once=Mt((function(t,n,e){var r=this.set_once_action(t,n);return f.isObject(t)&&(e=n),this._send_request(r,e)})),ee.prototype.unset=Mt((function(t,n){var e=this.unset_action(t);return this._send_request(e,n)})),ee.prototype.increment=Mt((function(t,n,e){var r={},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=n):(f.isUndefined(n)&&(n=1),i[t]=n),r[Zt]=i,this._send_request(r,e)})),ee.prototype.append=Mt((function(t,n,e){f.isObject(t)&&(e=n);var r=this.append_action(t,n);return this._send_request(r,e)})),ee.prototype.remove=Mt((function(t,n,e){f.isObject(t)&&(e=n);var r=this.remove_action(t,n);return this._send_request(r,e)})),ee.prototype.union=Mt((function(t,n,e){f.isObject(t)&&(e=n);var r=this.union_action(t,n);return this._send_request(r,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,n){t.$token=this._get_config("token"),t.$distinct_id=this._mixpanel.get_distinct_id();var e=this._mixpanel.get_property("$device_id"),r=this._mixpanel.get_property("$user_id"),i=this._mixpanel.get_property("$had_persisted_distinct_id");e&&(t.$device_id=e),r&&(t.$user_id=r),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},n):(this._enqueue(t),f.isUndefined(n)||(this._get_config("verbose")?n({status:-1,error:null}):n(-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):In in t?this._mixpanel.persistence._add_to_people_queue(In,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):At in t?this._mixpanel.persistence._add_to_people_queue(At,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,n,e,r){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(),r&&(l=r(s)),n.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,n,e,r,i,s,l){var d=this;this._flush_one_queue(jt,this.set,t),this._flush_one_queue(In,this.set_once,r),this._flush_one_queue(lt,this.unset,s,(function(g){return f.keys(g)})),this._flush_one_queue(Zt,this.increment,n),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(At);if(!f.isUndefined(u)&&f.isArray(u)&&u.length)for(var p,_=function(g,v){g===0&&d._mixpanel.persistence._add_to_people_queue(At,p),f.isUndefined(l)||l(g,v)},m=u.length-1;m>=0;m--)u=this._mixpanel.persistence.load_queue(At),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",Wn="__timers",Jm=[pa,fa,ma,_a,ga,va,ya,md,li,Wn],re=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 n=t.persistence;n!=="cookie"&&n!=="localStorage"&&(se.critical("Unknown persistence type "+n+"; falling back to cookie"),n=t.persistence="cookie"),n==="localStorage"&&f.localStorage.is_supported()?this.storage=f.localStorage:this.storage=f.cookie,this.load(),this.update_config(t),this.upgrade(),this.save()};re.prototype.properties=function(){var t={};return this.load(),f.each(this.props,(function(n,e){f.include(Jm,e)||(t[e]=n)})),t},re.prototype.load=function(){if(!this.disabled){var t=this.storage.parse(this.name);t&&(this.props=f.extend({},t))}},re.prototype.upgrade=function(){var t,n;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&&(n=f.localStorage.parse(this.name),f.localStorage.remove(this.name),n&&this.register_once(n))},re.prototype.save=function(){this.disabled||this.storage.set(this.name,En(this.props),this.expire_days,this.cross_subdomain,this.secure,this.cross_site,this.cookie_domain)},re.prototype.load_prop=function(t){return this.load(),this.props[t]},re.prototype.remove=function(){this.storage.remove(this.name,!1,this.cookie_domain),this.storage.remove(this.name,!0,this.cookie_domain)},re.prototype.clear=function(){this.remove(),this.props={}},re.prototype.register_once=function(t,n,e){return!!f.isObject(t)&&(n===void 0&&(n="None"),this.expire_days=e===void 0?this.default_expiry:e,this.load(),f.each(t,(function(r,i){this.props.hasOwnProperty(i)&&this.props[i]!==n||(this.props[i]=r)}),this),this.save(),!0)},re.prototype.register=function(t,n){return!!f.isObject(t)&&(this.expire_days=n===void 0?this.default_expiry:n,this.load(),f.extend(this.props,t),this.save(),!0)},re.prototype.unregister=function(t){this.load(),t in this.props&&(delete this.props[t],this.save())},re.prototype.update_search_keyword=function(t){this.register(f.info.searchInfo(t))},re.prototype.update_referrer_info=function(t){this.register_once({$initial_referrer:t||"$direct",$initial_referring_domain:f.info.referringDomain(t)||"$direct"},"")},re.prototype.get_referrer_info=function(){return f.strip_empty_properties({$initial_referrer:this.props.$initial_referrer,$initial_referring_domain:this.props.$initial_referring_domain})},re.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)},re.prototype.set_disabled=function(t){this.disabled=t,this.disabled?this.remove():this.save()},re.prototype.set_cookie_domain=function(t){t!==this.cookie_domain&&(this.remove(),this.cookie_domain=t,this.save())},re.prototype.set_cross_site=function(t){t!==this.cross_site&&(this.cross_site=t,this.remove(),this.save())},re.prototype.set_cross_subdomain=function(t){t!==this.cross_subdomain&&(this.cross_subdomain=t,this.remove(),this.save())},re.prototype.get_cross_subdomain=function(){return this.cross_subdomain},re.prototype.set_secure=function(t){t!==this.secure&&(this.secure=!!t,this.remove(),this.save())},re.prototype._add_to_people_queue=function(t,n){var e=this._get_queue_key(t),r=n[t],i=this._get_or_create_queue(jt),s=this._get_or_create_queue(In),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(At,[]),a=this._get_or_create_queue(vt,[]);e===pa?(f.extend(i,r),this._pop_from_people_queue(Zt,r),this._pop_from_people_queue(Jt,r),this._pop_from_people_queue(lt,r)):e===fa?(f.each(r,(function(c,u){u in s||(s[u]=c)})),this._pop_from_people_queue(lt,r)):e===ma?f.each(r,(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(r,(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,r)):e===ya?(f.each(r,(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,r)):e===va?(o.push(r),this._pop_from_people_queue(vt,r)):e===ga&&(a.push(r),this._pop_from_people_queue(lt,r)),se.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):"),se.log(n),this.save()},re.prototype._pop_from_people_queue=function(t,n){var e=this.props[this._get_queue_key(t)];f.isUndefined(e)||f.each(n,(function(r,i){t===vt||t===At?f.each(e,(function(s){s[i]===r&&delete s[i]})):delete e[i]}),this)},re.prototype.load_queue=function(t){return this.load_prop(this._get_queue_key(t))},re.prototype._get_queue_key=function(t){return t===jt?pa:t===In?fa:t===lt?ma:t===Zt?_a:t===vt?ga:t===At?va:t===Jt?ya:void se.error("Invalid queue:",t)},re.prototype._get_or_create_queue=function(t,n){var e=this._get_queue_key(t);return n=f.isUndefined(n)?{}:n,this.props[e]||(this.props[e]=n)},re.prototype.set_event_timer=function(t,n){var e=this.load_prop(Wn)||{};e[t]=n,this.props[Wn]=e,this.save()},re.prototype.remove_event_timer=function(t){var n=(this.load_prop(Wn)||{})[t];return f.isUndefined(n)||(delete this.props[Wn][t],this.save()),n};var We,_d=function(t,n){throw new Error(t+" not available in this build.")},it="mixpanel",gd="base64",ba="$device:",vn=R.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest,vd=!vn&&_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:Yn,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,n,e){var r,i=e===it?We:We[e];if(i&&wi===0)r=i;else{if(i&&!f.isArray(i))return void se.error("You have already initialized "+e);r=new S}if(r._cached_groups={},r._init(t,n,e),r.people=new ee,r.people._init(r),!r.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&&r.people.set_once(l)}ot.DEBUG=ot.DEBUG||r.get_config("debug");var h=wi===0?"module":"snippet";return R.dispatchEvent(new R.CustomEvent("$mp_sdk_to_extension_event",{detail:{instance:r,source:h,token:t,name:e,info:f.info}})),!f.isUndefined(i)&&f.isArray(i)&&(r._execute_array.call(r.people,i.people),r._execute_array(i)),r};S.prototype.init=function(t,n,e){if(f.isUndefined(e))this.report_error("You must name your new library: init(token, config, name)");else{if(e!==it){var r=ka(t,n,e);return We[e]=r,r._loaded(),r}this.report_error("You must initialize the main mixpanel object right after you include the Mixpanel js snippet")}},S.prototype._init=function(t,n,e){n=n||{},this.__loaded=!0,this.config={};var r={};if("api_payload_format"in n||(n.api_host||ul.api_host).match(/\.mixpanel\.com/)&&(r.api_payload_format="json"),this.hooks={},this.set_config(f.extend({},ul,r,n,{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)&&vn){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(){X.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 re(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"),n="mp_tab_id_"+t,e="mp_gen_new_tab_id_"+t;!f.sessionStorage.get(e)&&f.sessionStorage.get(n)||f.sessionStorage.set(n,"$tab-"+f.UUID()),f.sessionStorage.set(e,"1"),this.tab_id=f.sessionStorage.get(n),R.addEventListener("beforeunload",(function(){f.sessionStorage.remove(e)}))}catch(r){this.report_error("Error initializing tab id",r)}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),n=this.get_tab_id();return t.init().then((function(){return t.getAll()})).then((function(e){for(var r=0;r<e.length;r++)if(ra(e[r])||e[r].tabId===n)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 n=f.bind((function(r){var i=f.bind((function(){this._recorder=this._recorder||new R.__mp_recorder(this),this._recorder.resumeRecording(r)}),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?n(!0):this._should_load_recorder().then((function(r){r&&n(!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={},n=this._get_session_replay_id();return n&&(t.$mp_replay_id=n),t},S.prototype.get_session_replay_url=function(){var t=null,n=this._get_session_replay_id();return n&&(t="https://mixpanel.com/projects/replay-redirect?"+f.HTTPBuildQuery({replay_id:n,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(n,e){this.unregister(e)}).bind(this))}},S.prototype._set_default_superprops=function(){this.persistence.update_search_keyword(X.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(X.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,n){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,n]),!1;var e=new t().init(this);return e.track.apply(e,n)},S.prototype._prepare_callback=function(t,n){if(f.isUndefined(t))return null;if(vn)return function(s){t(s,n)};var e=this._jsc,r=""+Math.floor(1e8*Math.random()),i=this.get_config("callback_fn")+"["+r+"]";return e[r]=function(s){delete e[r],t(s,n)},i},S.prototype._send_request=function(t,n,e,r){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;r||!f.isFunction(e)&&typeof e!="string"||(r=e,e=null),e=f.extend(s,e||{}),vn||(e.method="GET");var d=e.method==="POST",h=ui&&d&&e.transport.toLowerCase()==="sendbeacon",o=e.verbose;n.verbose&&(o=!0),this.get_config("test")&&(n.test=1),o&&(n.verbose=1),this.get_config("img")&&(n.img=1),vn||(r?n.callback=r:(o||this.get_config("test"))&&(n.callback="(function(){})")),n.ip=this.get_config("ip")?1:0,n._=new Date().getTime().toString(),d&&(l="data="+encodeURIComponent(n.data),delete n.data),f.extend(n,this.get_config("api_extra_query_params")),t+="?"+f.HTTPBuildQuery(n);var a=this;if("img"in n){var c=X.createElement("img");c.src=t,X.body.appendChild(c)}else if(h){try{i=ui(t,l)}catch(v){a.report_error(v),i=!1}try{r&&r(i?1:0)}catch(v){a.report_error(v)}}else if(vn)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(r)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}r(y)}else r(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),r)if(o){var k=u.responseHeaders||{};r({status:0,httpStatusCode:u.status,error:v,retryAfter:k["Retry-After"]})}else r(0)}},u.send(l)}catch(v){a.report_error(v),i=!1}else{var m=X.createElement("script");m.type="text/javascript",m.async=!0,m.defer=!0,m.src=t;var g=X.getElementsByTagName("script")[0];g.parentNode.insertBefore(m,g)}return i},S.prototype._execute_array=function(t){var n,e=[],r=[],i=[];f.each(t,(function(l){l&&(n=l[0],f.isArray(n)?i.push(l):typeof l=="function"?l.call(this):f.isArray(l)&&n==="alias"?e.push(l):f.isArray(l)&&n.indexOf("track")!==-1&&typeof this[n]=="function"?i.push(l):r.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(r,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 rt(e.queue_key,{libConfig:this.config,errorReporter:this.get_config("error_reporter"),sendRequestFunc:f.bind((function(r,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(r),i,this._prepare_callback(s,r))}),this),beforeSendHook:f.bind((function(r){var i=this._run_hook("before_send_"+e.type,r);return i?i[0]:null}),this),stopAllBatchingFunc:f.bind(this.stop_batch_senders,this),usePersistence:!0})}),this),n=this.get_batcher_configs();this.request_batchers={events:t(n.events),people:t(n.people),groups:t(n.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 n=En(t);return this.get_config("api_payload_format")===gd&&(n=f.base64Encode(n)),{data:n}},S.prototype._track_or_batch=function(t,n){var e=f.truncate(t.data,255),r=t.endpoint,i=t.batcher,s=t.should_send_immediately,l=t.send_request_options||{};n=n||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(r,this._encode_data_for_request(e),l,this._prepare_callback(n,e))):null}),this);return this._batch_requests&&!s?i.enqueue(e).then((function(o){o?n(1,e):h()})):d=h(),d&&e},S.prototype.track=Ft((function(t,n,e,r){var i;if(!e||!e.skip_hooks){if((i=this._run_hook("before_track",t,n))===null)return;t=i[0],n=i[1]}r||typeof e!="function"||(r=e,e=null);var s=(e=e||{}).transport;s&&(e.transport=s);var l=e.send_immediately;if(typeof r!="function"&&(r=qt),f.isUndefined(t))this.report_error("No event name provided to mixpanel.track");else{if(!this._event_is_disabled(t)){(n=f.extend({},n)).token=this.get_config("token");var d=this.persistence.remove_event_timer(t);if(!f.isUndefined(d)){var h=new Date().getTime()-d;n.$duration=parseFloat((h/1e3).toFixed(3))}this._set_default_superprops();var o=this.get_config("track_marketing")?f.info.marketingParams():{};n=f.extend({},f.info.properties({mp_loader:this.get_config("mp_loader")}),o,this.persistence.properties(),this.unpersisted_superprops,this.get_session_recording_properties(),n);var a=this.get_config("property_blacklist");f.isArray(a)?f.each(a,(function(u){delete n[u]})):this.report_error("Invalid value for property_blacklist config: "+a);var c={event:t,properties:n};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},r)}r(0)}})),S.prototype.set_group=Ft((function(t,n,e){f.isArray(n)||(n=[n]);var r={};return r[t]=n,this.register(r),this.people.set(t,n,e)})),S.prototype.add_group=Ft((function(t,n,e){var r=this.get_property(t),i={};return r===void 0?(i[t]=[n],this.register(i)):r.indexOf(n)===-1&&(r.push(n),i[t]=r,this.register(i)),this.people.union(t,n,e)})),S.prototype.remove_group=Ft((function(t,n,e){var r=this.get_property(t);if(r!==void 0){var i=r.indexOf(n);i>-1&&(r.splice(i,1),this.register({group_key:r})),r.length===0&&this.unregister(t)}return this.people.remove(t,n,e)})),S.prototype.track_with_groups=Ft((function(t,n,e,r){var i=f.extend({},n||{});return f.each(e,(function(s,l){s!=null&&(i[l]=s)})),this.track(t,i,r)})),S.prototype._create_map_key=function(t,n){return t+"_"+JSON.stringify(n)},S.prototype._remove_group_from_cache=function(t,n){delete this._cached_groups[this._create_map_key(t,n)]},S.prototype.get_group=function(t,n){var e=this._create_map_key(t,n),r=this._cached_groups[e];return r!==void 0&&r._group_key===t&&r._group_id===n||((r=new we)._init(this,t,n),this._cached_groups[e]=r),r},S.prototype.track_pageview=Ft((function(t,n){typeof t!="object"&&(t={});var e=(n=n||{}).event_name||"$mp_web_page_view",r=f.extend(f.info.mpPageViewProperties(),f.info.campaignParams(),f.info.clickParams()),i=f.extend({},r,t);return this.track(e,i)})),S.prototype.track_links=function(){return this._track_dom.call(this,gn,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 n;return n=f.isObject(t)?t:f.isUndefined(t)?{}:{days:t},f.extend({},Ym,n)};S.prototype.register=function(t,n){var e=this._run_hook("before_register",t,n);if(e!==null){t=e[0],n=e[1];var r=mo(n);r.persistent?this.persistence.register(t,r.days):f.extend(this.unpersisted_superprops,t)}},S.prototype.register_once=function(t,n,e){var r=this._run_hook("before_register_once",t,n,e);if(r!==null){t=r[0],n=r[1],e=r[2];var i=mo(e);i.persistent?this.persistence.register_once(t,n,i.days):(n===void 0&&(n="None"),f.each(t,(function(s,l){this.unpersisted_superprops.hasOwnProperty(l)&&this.unpersisted_superprops[l]!==n||(this.unpersisted_superprops[l]=s)}),this))}},S.prototype.unregister=function(t,n){var e=this._run_hook("before_unregister",t,n);e!==null&&(t=e[0],n=e[1],(n=mo(n)).persistent?this.persistence.unregister(t):delete this.unpersisted_superprops[t])},S.prototype._register_single=function(t,n){var e={};e[t]=n,this.register(e)},S.prototype.identify=function(t,n,e,r,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(n,e,r,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,n){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(n)&&(n=this.get_distinct_id()),t!==n?(this._register_single(li,t),this.track("$create_alias",{alias:t,distinct_id:n},{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(n){n.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(n,e){if(f.isFunction(n))this.hooks[e]=[n];else if(f.isArray(n)){this.hooks[e]=[];for(var r=0;r<n.length;r++)f.isFunction(n[r])||se.critical("Invalid hook added. Hook is not a function"),this.hooks[e].push(n[r])}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 n=$t.call(arguments,1);return f.each(this.hooks[t],(function(e){if(n===null)return null;var r=e.apply(this,n);r===void 0?(this.report_error(t+" hook did not return a valid value"),n=null):(f.isArray(r)||(r=[r]),n.splice.apply(n,[0,r.length].concat(r)))}),this),n},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 n;if(t&&t.clear_persistence)n=!0;else{if(!t||!t.enable_persistence)return;n=!1}this.get_config("disable_persistence")||this.persistence.disabled===n||this.persistence.set_disabled(n),n?(this.stop_batch_senders(),this.stop_session_recording()):this._batchers_were_started&&this.start_batch_senders()},S.prototype._gdpr_call_func=function(t,n){return n=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")},n),f.localStorage.is_supported()||(n.persistence_type="cookie"),t(this.get_config("token"),{track:n.track,trackEventName:n.track_event_name,trackProperties:n.track_properties,persistenceType:n.persistence_type,persistencePrefix:n.cookie_prefix,cookieDomain:n.cookie_domain,cookieExpiration:n.cookie_expiration,crossSiteCookie:n.cross_site_cookie,crossSubdomainCookie:n.cross_subdomain_cookie,secureCookie:n.secure_cookie,ignoreDnt:n.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,n){se.error.apply(se.error,arguments);try{n||t instanceof Error||(t=new Error(t)),this.get_config("error_reporter")(t,n)}catch(e){se.error(e)}},S.prototype.add_hook=function(t,n){this.hooks[t]||(this.hooks[t]=[]),this.hooks[t].push(n)},S.prototype.remove_hook=function(t,n){var e;this.hooks[t]&&((e=this.hooks[t].indexOf(n))!==-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,re.prototype.properties=re.prototype.properties,re.prototype.update_search_keyword=re.prototype.update_search_keyword,re.prototype.update_referrer_info=re.prototype.update_referrer_info,re.prototype.get_cross_subdomain=re.prototype.get_cross_subdomain,re.prototype.clear=re.prototype.clear;var yn={},Qm=function(){We.init=function(t,n,e){if(e)return We[e]||(We[e]=yn[e]=ka(t,n,e),We[e]._loaded()),We[e];var r=We;yn[it]?r=yn[it]:t&&((r=ka(t,n,it))._loaded(),yn[it]=r),We=r,wi===1&&(R[it]=We),f.each(yn,(function(i,s){s!==it&&(We[s]=i)})),We._=f}},t_=(_d=function(t,n){n()},wi=0,We=new S,Qm(),We.init(),(function(){function t(){t.done||(t.done=!0,bd=!0,vd=!1,f.each(yn,(function(e){e._dom_loaded()})))}if(X.addEventListener)X.readyState==="complete"?t():X.addEventListener("DOMContentLoaded",t,!1);else if(X.attachEvent){X.attachEvent("onreadystatechange",t);var n=!1;try{n=R.frameElement===null}catch{}X.documentElement.doScroll&&n&&(function e(){try{X.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};