@zeniai/web-cockpit-ui 1.15.0-dev → 1.15.1-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.
- package/dist/assets/{ACHDetailsPage-DYlcHRQe-lxtPXqrl.js → ACHDetailsPage-CUzXxtOD-D58ed7uT.js} +1 -1
- package/dist/assets/{AIPerformancePage-DpXZ7sco-B8d5E6QI.js → AIPerformancePage-O2oT7VD7-B6QMOBUy.js} +13 -13
- package/dist/assets/{AccountInfoPage-BEOrrVQS-L5aJOIaA.js → AccountInfoPage-B6jxAqA6-BUFslhTv.js} +1 -1
- package/dist/assets/{AccountInfoPageContent-BJkLJK6O-CmMcM25y.js → AccountInfoPageContent-Dm4_RVtp-7_DDYrUM.js} +1 -1
- package/dist/assets/{AccountLockedInfoModal-BeLLlH_Y-DAQUptbF.js → AccountLockedInfoModal-4gi6evfx-WlzE3tch.js} +1 -1
- package/dist/assets/{AccountReconDetailsDrawerPage-D2Hx_l3u-BYxEEZJn.js → AccountReconDetailsDrawerPage-Cm4KEIyT-DvN83q1j.js} +3 -3
- package/dist/assets/{AccountRow-B0gU16A_-Ks_Pft1z.js → AccountRow-B16HgkVQ-dG_dWaCL.js} +1 -1
- package/dist/assets/{AccountsPromoCardStack-CuLhbb_W-BwlxSNV8.js → AccountsPromoCardStack-D5OgsEYb-3g8gXWBP.js} +1 -1
- package/dist/assets/AddAddressForCardDrawer-Cw6wTXEm-Ne9lwqPK.js +6 -0
- package/dist/assets/{AddToWalletPage-DNPLnpTq-CxRyEwld.js → AddToWalletPage-vXWBje7k-B9_XOYgG.js} +4 -4
- package/dist/assets/{AgingReportsPage-Bff4u7T1-DOBvEqCj.js → AgingReportsPage-CmzapJ6B-B4fRPdaL.js} +3 -3
- package/dist/assets/{AllUserItems-D8zdAu_1-C-zZqgmo.js → AllUserItems-CW-BAUK2-B9Q1lPJb.js} +1 -1
- package/dist/assets/{ApAgingDetailPage-2NsAj3gO-DfogwLMb.js → ApAgingDetailPage-DBCM7hZZ-ChVResPi.js} +5 -5
- package/dist/assets/{AppBasePage-Uyk9GOud-D7f8hWuo.js → AppBasePage-B3uZsUDM-CkKVhlEN.js} +1 -1
- package/dist/assets/{AppDrawerContent-RX7rx40V-DlBxQF_L.js → AppDrawerContent-D4EVpqHP-BynJPN1Q.js} +6 -6
- package/dist/assets/{ApprovalRulesSettingsPage-BKxa78xI-BrpnOxmu.js → ApprovalRulesSettingsPage-DTLJUdYp-C8DjXSqL.js} +1 -1
- package/dist/assets/{ArAgingChart-BxTkvrC9-BgC5YBPR.js → ArAgingChart-BJ8nRdT6-PCsSRezt.js} +4 -4
- package/dist/assets/{ArAgingDetailPage-CnUgFF1M-Bb_-bJZp.js → ArAgingDetailPage-hd2ALORD-DPaGaG4h.js} +5 -5
- package/dist/assets/{AttachmentView-zHGhIkWo-C64qXCAp.js → AttachmentView-2FZ6X1gL-Cy8tYEtq.js} +1 -1
- package/dist/assets/{BankAccountSection-HRSyjIxV-CV6PAaFg.js → BankAccountSection-BbX4r1dP-BVn949x0.js} +1 -1
- package/dist/assets/{BankAccountWarningSection-CNusQFRM-4Y94-VD5.js → BankAccountWarningSection-CqlrCLSb-4sdBnqih.js} +1 -1
- package/dist/assets/{BankConnectionsSettingsPage-CzumYsEx-f1xJXYSm.js → BankConnectionsSettingsPage-DLeiSryp-DwwrFPU_.js} +1 -1
- package/dist/assets/{BillDetailPage-CgCMZFw1-pAtGUG0W.js → BillDetailPage-l0WIOXCJ-DfE-sU4P.js} +1 -1
- package/dist/assets/{BillPayApprovalRuleDetailPage-DnhdBw3a-BtwlYdoz.js → BillPayApprovalRuleDetailPage-BOMCy57E-CAzd0WOM.js} +4 -4
- package/dist/assets/{BillPayApprovalRulesPage-S80WUW0f-Cw75zLq9.js → BillPayApprovalRulesPage-D_iQkfQr-Dlin1Cm9.js} +1 -1
- package/dist/assets/{BillPayPromoPage-DOEbuNgH-BglT_61W.js → BillPayPromoPage-Dsl0YvUE-DF_BWBKa.js} +9 -9
- package/dist/assets/{BillPaySetUpPage-Tb-gBoFT-Po5Zl1ZL.js → BillPaySetUpPage-MLf77bPI-BQQY77ue.js} +3 -3
- package/dist/assets/{BillingSettingsPage-ZupDcNHz-B6O6l_7B.js → BillingSettingsPage-n1PkJEDe-CIU_V4L-.js} +8 -8
- package/dist/assets/{BillsBulkReviewDrawerPage-CJrUtHKz-B78eSann.js → BillsBulkReviewDrawerPage-C_4lLm2g-CagoY_n4.js} +1 -1
- package/dist/assets/{BoxItem-42doFhpg-BDC_fDqi.js → BoxItem-CZdVWyVJ-Ck7WXLSC.js} +1 -1
- package/dist/assets/{BusinessVerificationPage-De9zCAm7-geq4Sk8A.js → BusinessVerificationPage-DKTSnhnQ-CiETQcAD.js} +1 -1
- package/dist/assets/{CardNumberSubText-C6jdBRC2-YbNbzp0H.js → CardNumberSubText-BhtdU0IQ-BBiDBBhs.js} +1 -1
- package/dist/assets/{CashbackDetailPage-B2drd1Nz-BAvHe1xx.js → CashbackDetailPage-BL-JN6N2-DM7Co55u.js} +8 -8
- package/dist/assets/{ChargeCardDetailPage-bk-pzoDR-DTGxBulo.js → ChargeCardDetailPage-DeUmuiMY-Dftn0md6.js} +1 -1
- package/dist/assets/{ChargeCardListPage-DlI8ZfB0-CMLNFzih.js → ChargeCardListPage-B2OEzCZI-DRTpob3Y.js} +1 -1
- package/dist/assets/{ChargeCardListTable-CooASbVZ-CSvbg9sF.js → ChargeCardListTable-BwYAxG4d-BDrITjcg.js} +1 -1
- package/dist/assets/ChargeCardPaymentHistoryPage-COWdn2l7-D7wLS9yc.js +565 -0
- package/dist/assets/{ChargeCardPromoPage-DBSmL-ms-DBZo83zK.js → ChargeCardPromoPage-TkHihj_n-DsNKfZLq.js} +10 -10
- package/dist/assets/{ChargeCardSetupPage-cou3N3Iv-BSBfzNx6.js → ChargeCardSetupPage-CkonrAnT-D4zZH8iB.js} +3 -3
- package/dist/assets/{ChargeCardStatementsPage-Z05M_t51-O2I36ZAe.js → ChargeCardStatementsPage-DVgAcNNC-DlapdY_k.js} +1 -1
- package/dist/assets/{CheckDepositDrawerPage-B-bTb9ct-CleglNSV.js → CheckDepositDrawerPage-DV7strdp-DIjE0Er3.js} +1 -1
- package/dist/assets/{CollapsableReportTable-DLOi0feI-SZFbl9NV.js → CollapsableReportTable-BS7TgK8B-Ck1A0h-X.js} +1 -1
- package/dist/assets/{CompanyOfficerDetailsSection-DVpqCb72-DOikAEBj.js → CompanyOfficerDetailsSection-BotE5oj4-BAJaZgbn.js} +1 -1
- package/dist/assets/{CompanyPassportCard-B8PLT6MG-BUc5HZU7.js → CompanyPassportCard-Bx4KhQfs-Cq5ggOmg.js} +2 -2
- package/dist/assets/{CompanyPassportPage-CQZPgrNF-KJN_fT4M.js → CompanyPassportPage-i1SEs7VJ-Djluu3GS.js} +1 -1
- package/dist/assets/{CompleteProfile-fNSWTbef-pSYliRNx.js → CompleteProfile-DWOv7odD-C_i36-ce.js} +1 -1
- package/dist/assets/{ConfettiBurst-B6ej_xoO-BzptsIBR.js → ConfettiBurst-D52CuNQL-H3h7bAw9.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-BO4_TNWg-EUNhPwxD.js → CreateOrEditVendorPage-9LgI-Wd0-BZGgNM2M.js} +1 -1
- package/dist/assets/{CreditCardPaymentDrawerPage-CsHjU-sm-BX_z_XTl.js → CreditCardPaymentDrawerPage-wHK6Ds5I-BlFWnrY1.js} +1 -1
- package/dist/assets/{CurrencySelectField-DsZTOj_T-DmNXNRTP.js → CurrencySelectField-CbGyQ8Yq-BBTidwoM.js} +1 -1
- package/dist/assets/{CustomerOnboardingActivationPage-Cvdehiay-Ci2xJTUc.js → CustomerOnboardingActivationPage-LNgj0BYj-DDGYdiCm.js} +1 -1
- package/dist/assets/CustomerOnboardingContainerPage-DLdgYP_E-YLcbGvSV.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-DrfNm65u-Bi4SumgH.js → CustomerOnboardingDetailPageSkeleton-BF484X8E-CaE39Z82.js} +1 -1
- package/dist/assets/{CustomerOnboardingNoStepsPage-CtIWYEfR-CA6QH1RJ.js → CustomerOnboardingNoStepsPage-Dri4v3Rf-SMHqZamP.js} +1 -1
- package/dist/assets/{CustomerOnboardingPage-Db6sGSGl-C--ab3S1.js → CustomerOnboardingPage-BkdhcwN8-D99zerXB.js} +1 -1
- package/dist/assets/CustomerOnboardingProductSuitePage-CDJfucTI-BVV4jNqa.js +202 -0
- package/dist/assets/{Dashboard-cbXIPzMy-DLCpLMr4.js → Dashboard-w2AGQi2P-DrVf9Yya.js} +55 -55
- package/dist/assets/{DashboardReportPage-Pc0G2Tok-BRmpg3ok.js → DashboardReportPage-NzF6nutN-DSZitKtw.js} +1 -1
- package/dist/assets/{DashboardSidebarBackgroundAnimation-CSzhyK4K-DW7vdml5.js → DashboardSidebarBackgroundAnimation-vcuSFRHQ-CXXDOfjW.js} +1 -1
- package/dist/assets/{DepositAccTransactionItem-XvCjkHDS-DQ2tNEjM.js → DepositAccTransactionItem-SRWW7dWo-Bq8glEON.js} +1 -1
- package/dist/assets/{DepositAccTransactionListPage-DqPIPHi9-DnAhb4M6.js → DepositAccTransactionListPage-BSq-FxKT-D5HpKscp.js} +1 -1
- package/dist/assets/{DomesticWireDetailsPage-DjUvG0tD-BhbPV8HA.js → DomesticWireDetailsPage-Daor0MDI-BzIX5Sll.js} +1 -1
- package/dist/assets/{DownloadOverlay-C7r6PAam-BvXPoC9j.js → DownloadOverlay-DkSROLX2-BV0uInlq.js} +1 -1
- package/dist/assets/{DrawerPage-BEV7nWrL-CqfdeYhP.js → DrawerPage-BnMCcEWw-BXOkrI5R.js} +9 -9
- package/dist/assets/{EditPeoplePage-BnQqStEx-Cbm0H-hi.js → EditPeoplePage-Ld339aav-BKidG2ge.js} +1 -1
- package/dist/assets/{EditReimbursementDetailPage-DLjRDR48-DAmxctvz.js → EditReimbursementDetailPage-BaMG1YJG-BZAQQMK3.js} +1 -1
- package/dist/assets/EntityDetailPage-DRZiqaCb-B_QVK0o1.js +18 -0
- package/dist/assets/{EntitySummarySection-C361-4tS-UJPRLBoI.js → EntitySummarySection-Bs0NywbK-BzG0U_qN.js} +1 -1
- package/dist/assets/{ExpenseAutomationOverviewPage-BLvAzAmO-JyE5jYzJ.js → ExpenseAutomationOverviewPage-B_-wUXCx-Q7Nf_H07.js} +1 -1
- package/dist/assets/{ExpenseAutomationPage-CE_qMXSG-DlDCSSSs.js → ExpenseAutomationPage-CG1Hpwz8-CW8z-7iO.js} +1 -1
- package/dist/assets/{ExpressPayPage-CDowSjHC-DolGHHJS.js → ExpressPayPage-CEf0O3S_-C7xNk40H.js} +7 -7
- package/dist/assets/{FeaturePreviewPage-DsJEfObK-B9lh1mEQ.js → FeaturePreviewPage-7G9DSgAA-dIRq9Ned.js} +1 -1
- package/dist/assets/{FollowStepsSection-h449vQkQ-BXixJ0VK.js → FollowStepsSection-CoXcJ6WL-BDHFkDzZ.js} +1 -1
- package/dist/assets/{GlobalReviewListPage-DGOKRsKI-CAnqX1u0.js → GlobalReviewListPage-BSfJybtY-D-EekdXE.js} +1 -1
- package/dist/assets/{InformationCardStack-xhdujEcL-COTShhF9.js → InformationCardStack-DnoAMdjH-BkgD0Khh.js} +2 -2
- package/dist/assets/{InsightsCardStack-zRynyTFj-CqnhwImM.js → InsightsCardStack-BLtip0dt-CdpS0MPm.js} +2 -2
- package/dist/assets/{InsightsSection-C4fMfxQ4-BGGNiljS.js → InsightsSection-26UEfz7s-DvD8Ccwt.js} +2 -2
- package/dist/assets/{IntegrationsSettingsPage-fqQsGUmw-CRKZpnAv.js → IntegrationsSettingsPage-QVOqOc9I-BQQ4M8i8.js} +2 -2
- package/dist/assets/{InternationalWireSwiftDetailsPage-CIMxKADX-CYl4ll0M.js → InternationalWireSwiftDetailsPage-B7UVdQjs-Dxjq2-if.js} +1 -1
- package/dist/assets/{InternationalWireVerificationPage-DpmSzzre-gDdhOqko.js → InternationalWireVerificationPage-Cvita0lc-B390_mEJ.js} +2 -2
- package/dist/assets/{InviteFormPage-C7fxnyMS-ChsV2A2J.js → InviteFormPage-ptg2-Do2-Dsr3cxPP.js} +1 -1
- package/dist/assets/{InvitePageListView-ktOXziSw-ClMd1Rgx.js → InvitePageListView-CoCiU_RJ-DlHeTkam.js} +20 -20
- package/dist/assets/{InvitePeoplePage-C_4adNch-DPbyAjsn.js → InvitePeoplePage-CIiwEl_L-BEUpkDfI.js} +1 -1
- package/dist/assets/{InvoiceUploadSection-W4vdQGvo-DAuF5vcp.js → InvoiceUploadSection-by1gHnS2-ByjzglAY.js} +1 -1
- package/dist/assets/{IssueChargeCardPage-CdV757XH-B0b8pyku.js → IssueChargeCardPage-CawHdTL3-Mn0Xu6jy.js} +1 -1
- package/dist/assets/{LabeledAddressValue-Ce_wDml5-CoYtFscl.js → LabeledAddressValue-BVpOlAt0-BM8gI0N5.js} +1 -1
- package/dist/assets/{LabeledAddressValueField-BrYbXck--8qVwdGMU.js → LabeledAddressValueField-BW6ytr8f-DmYyMrEv.js} +1 -1
- package/dist/assets/{LabeledControlledCheckBoxField-f2c-AeS4-DagKbuzo.js → LabeledControlledCheckBoxField-DEaBzW9R-59_aD_t9.js} +1 -1
- package/dist/assets/{LabeledCountryMultiSelectField-BLOMdq_H-CLNHA2Sp.js → LabeledCountryMultiSelectField-DOEcKGdZ-O8xmxgl_.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-BWuogpe6-DITM3Hn0.js → LabeledCreatableSingleSelectField-Bsowq6Ia-CpyK3LNE.js} +1 -1
- package/dist/assets/{LabeledDocumentField-Ch2zD7s7-Nw7bBUJi.js → LabeledDocumentField-DHqxzbx7-DKNafkiA.js} +1 -1
- package/dist/assets/{LabeledDropDownFormattedTextField-BA8tzPzQ-Big6_AMJ.js → LabeledDropDownFormattedTextField-C_2HymZs-DpANtqUG.js} +1 -1
- package/dist/assets/{LabeledMultiSelectField-CA9PUCf3-CGx9bMTu.js → LabeledMultiSelectField-wuzYNgjQ-D8K8tQ-i.js} +1 -1
- package/dist/assets/{LabeledText-D7eLbH80-Bs-kfAE-.js → LabeledText-DMjMKupg-DYP6gFxm.js} +1 -1
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-CleX9Raw-CCmlbQ1T.js → LabeledUserSingleSelectWithSubtitlesField-D2PQRKp0-CAFuEck_.js} +1 -1
- package/dist/assets/{LabeledZeniRolesDropDownField-Cte6kRTw-CB2TIDv8.js → LabeledZeniRolesDropDownField-C2WL6H1u-BXDtctub.js} +1 -1
- package/dist/assets/{LinkJETransactionPage-DicS5kKg-DOb356xm.js → LinkJETransactionPage-6wvu7KQx-BKOAennG.js} +1 -1
- package/dist/assets/{LockCardPage-DRYg_fxU-CFGUEJ0X.js → LockCardPage-DHjkslVx-BLTQi4Ro.js} +1 -1
- package/dist/assets/{LowBalancePopup-BJfagMN7-DFWlKz1e.js → LowBalancePopup-IPPewOnk-C3ft7dAK.js} +1 -1
- package/dist/assets/MagicLinkACHDetailsPage-BQvuNI4u-DgnKjMFk.js +1 -0
- package/dist/assets/MagicLinkDomesticWireDetailsPage-BEr-7K3J-BdD6RXkL.js +1 -0
- package/dist/assets/MagicLinkInternationalWireDetailsPage-DliPDETx-zEl4JPNd.js +1 -0
- package/dist/assets/{MagicLinkSuccessPage-BRWymdWH-suMYBps1.js → MagicLinkSuccessPage-0Pn_6wi4-BDYzvhnJ.js} +1 -1
- package/dist/assets/{MagicLinkTitleSection-D5ORaO0D-oMV_fYKL.js → MagicLinkTitleSection-zMEqv8xp-Dw1lipYQ.js} +1 -1
- package/dist/assets/MailingDetailsSection-BRCMsb6d-Bg6C6Qx3.js +21 -0
- package/dist/assets/{Menu-C9v-W9TY-DRVyGpH4.js → Menu-CjpiRi32-CBwxThCE.js} +1 -1
- package/dist/assets/{MyBankConnectionsSettingsPage-C4YJleyg-DKQ0iSMd.js → MyBankConnectionsSettingsPage-DsuI81Dg-BZvQVl9M.js} +1 -1
- package/dist/assets/{MyPendingActivationChargeCardListPage-D-6TnbYs-g9LqO-rS.js → MyPendingActivationChargeCardListPage-BP2ZNfJQ-C1IGZ0Aj.js} +1 -1
- package/dist/assets/{MyProfileSettingsPage-BMNBcdq8-CzuZjUxB.js → MyProfileSettingsPage-Bx776Bw1-B3dkfEvc.js} +1 -1
- package/dist/assets/{NavBarWithPicker-Cv7tOmjd-BXBZWsng.js → NavBarWithPicker-B7KOipTP-BRApBTO0.js} +1 -1
- package/dist/assets/{NavigationArrow-DAs7ECFZ-rFu_aZmo.js → NavigationArrow-qaYGOFR3-BsTNc95E.js} +1 -1
- package/dist/assets/{NavigationDots-DISWi4Mq-BdTnuTup.js → NavigationDots-U7wL0ya4-Br1fZ1mY.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-DGFtrDg1-BDtdrE9G.js → NewGlobalMerchantPage-BMLg6RYp-BRiqVwVI.js} +1 -1
- package/dist/assets/{NoDataChart-gfqauMvY-CAbYCdyQ.js → NoDataChart-DoN6Mneo-tV8Dt3om.js} +1 -1
- package/dist/assets/{NoDataTable-C1_gqVi7-D4ANXF0d.js → NoDataTable-BMDDs83M-Dpk0AfuR.js} +1 -1
- package/dist/assets/{NotFoundPage-CdWhiWjz-DDjAX_Ng.js → NotFoundPage-ys6HcZUO-byf07x0N.js} +8 -8
- package/dist/assets/{NotificationSettingsPage-C4SZ6Qwg-DbitLXBD.js → NotificationSettingsPage-Cfrj3b7B-DQREI7pG.js} +1 -1
- package/dist/assets/{NotificationsListConfig-B-g9kb6x-CND-RON9.js → NotificationsListConfig-Cqcn0C6L-mVPCNJk6.js} +1 -1
- package/dist/assets/{NotificationsPage-jxpX3iRG-UGS5Y_9i.js → NotificationsPage-Bri7Dj80-Cv5FRQtl.js} +1 -1
- package/dist/assets/{OpExByVendorPage-B13tAq03-Dd8cq0hz.js → OpExByVendorPage-Dwk6JAu7-BDuhx0f7.js} +1 -1
- package/dist/assets/{OverlayContainerPage-Daz3A7cI-DlMlal7_.js → OverlayContainerPage-Daz3A7cI-CNivODsb.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-D3kcPKd0-sYhFB1EB.js → PandLWithForecastPage-D9muoIzS-BHKR537x.js} +2 -2
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-DjdhL9mT-4CseF2mz.js → PaymentAccountSetupBillingAddressSection-BcQ07YZL-sTtrymnZ.js} +1 -1
- package/dist/assets/{PeoplePage-Du_TRX4h-C2Rmmn5d.js → PeoplePage-BZwxMiLM-5s0-HkTL.js} +13 -13
- package/dist/assets/{Preview-CSeZ_uBx.js → Preview-mA1nVDX3.js} +1 -1
- package/dist/assets/{ProductsCarousel-y6q9BbqK-B9m9tH0o.js → ProductsCarousel-HFHMMFnQ-DrHOVGTY.js} +1 -1
- package/dist/assets/{PromoBaseCards-CLQMN7aT-BxeQG0rP.js → PromoBaseCards-Bwm7huaB-m2dOzdVj.js} +1 -1
- package/dist/assets/{QBOConnectionDialog-R4ZWjJsY-DNCk7fny.js → QBOConnectionDialog-B5v60lo1-GNrkjfxe.js} +1 -1
- package/dist/assets/{QBOSetupSection-D--nxfIh-Difre144.js → QBOSetupSection-BFxjIzV1-B2t1VavS.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRuleDetailPage-OXenWhiy-Cj4gr0h0.js → ReimbursementApprovalRuleDetailPage-D7eJT6hf-BQOWuUEe.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRulesPage-BJaSXRQF-DF9kihjD.js → ReimbursementApprovalRulesPage-B6WJ19jK-CKNTvHH7.js} +1 -1
- package/dist/assets/{ReimbursementDetailPage-BeFEzgmP-DZ-1wgaR.js → ReimbursementDetailPage-CEyFEPK5-BstF-oGE.js} +1 -1
- package/dist/assets/{ReimbursementPromoPage-C0sHIJm4-YN1RP5MA.js → ReimbursementPromoPage-BjhlxlPR-BZ1GzMRv.js} +4 -4
- package/dist/assets/{ReimbursementSetUpPage-C85Q6ZnB-DbK7lPyD.js → ReimbursementSetUpPage-pC4KuigM-BDlDJUML.js} +4 -4
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-B5RzRA4c-PwRYjy1t.js → ReimbursementsBulkReviewDrawerPage-CucXnBt6-CAc1E2XO.js} +1 -1
- package/dist/assets/{ReloadCard-BT0lSFUP-CF34SUO7.js → ReloadCard-DhRbLcVA-DIQafdWZ.js} +1 -1
- package/dist/assets/{ReportTableViewSelector-rl6XGWA_-CSxPHelL.js → ReportTableViewSelector-ByxUIrcT-BjUKZAAK.js} +1 -1
- package/dist/assets/{ReportsPage-DV0bbi_D-1o0LJL4r.js → ReportsPage-e1xmk9Ua-DWkV6LH_.js} +5 -5
- package/dist/assets/{RevenueChart-CxvHfkxr-BmSB0A7U.js → RevenueChart-C7uaOhqz-CyB_o3bQ.js} +1 -1
- package/dist/assets/{ReviewDetailsPage-CX2XB44j-BHiKofo4.js → ReviewDetailsPage-Dk0Rw7L_-B6ijKV2H.js} +1 -1
- package/dist/assets/{ReviewOverlay-DdOo3pcK-BVp3d9bK.js → ReviewOverlay-Bthl69qw-RmWq0Cob.js} +1 -1
- package/dist/assets/{RoleWithToolTip-C08wfnGb-CFjb8VCB.js → RoleWithToolTip-New3P2vC-2KCZppVG.js} +1 -1
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-BmZgiTVc-C4es4cDL.js → ScheduleDetailsFixedAssetsPage-DiwkB2J--BPJp47yZ.js} +1 -1
- package/dist/assets/{ScheduleDetailsPage-BqX1EZGE-B4pi2I25.js → ScheduleDetailsPage-BLc828ST-CP2yCdiU.js} +1 -1
- package/dist/assets/{ScheduleSequenceTable-DU3dXX6V-BMdU_3TL.js → ScheduleSequenceTable-CEQZEbUs-BdHNsPry.js} +1 -1
- package/dist/assets/{ScreenRoutes-BOb1-zin.js → ScreenRoutes-D_sWKkhc.js} +1 -1
- package/dist/assets/{SetUpAccountSection-Clz60vjw-CDcwloM0.js → SetUpAccountSection-CywFKgZo-MmKR4ndQ.js} +1 -1
- package/dist/assets/{SignIn-B79R5ayU-BtVW5pl0.js → SignIn-D7PmDE-R-DymRL_3M.js} +12 -12
- package/dist/assets/{SignInScreen-CsaRmLqD.js → SignInScreen-C-VG_lKe.js} +1 -1
- package/dist/assets/{SpendManagementListViewPage-C3gJ8vag-CRVtgLhw.js → SpendManagementListViewPage-DJgNAGhp-JXA21DLB.js} +3 -3
- package/dist/assets/{SpendManagementPerTabPage-DmCZhFWY-Dsjzi1bn.js → SpendManagementPerTabPage-B_muN4XH-u8KoBsHd.js} +1 -1
- package/dist/assets/{SpendManagementSection-mtTZeiX8-DB_R_dFU.js → SpendManagementSection-BO--0F_T-COrpCsmV.js} +1 -1
- package/dist/assets/StatementItem-_50yBwO1-CwjTPUgJ.js +31 -0
- package/dist/assets/{StatementsPage-DgoXqABR-NsGiWIFr.js → StatementsPage-DkcgOLaa-BdVtg5cn.js} +1 -1
- package/dist/assets/{StatusSwitcher-DRDFuzoj-DFWyQSIu.js → StatusSwitcher-Bcqhq2ht-tjRFz3FC.js} +1 -1
- package/dist/assets/{SubTabSwitcher-Bj1N3zLn-DocBm2NX.js → SubTabSwitcher-BNSMaUoP-C0dI-kdw.js} +1 -1
- package/dist/assets/{SummaryCard-BNrPt21W-z-I2nOL_.js → SummaryCard-DUTikTiQ-CorF8AqM.js} +1 -1
- package/dist/assets/{TaskManagementPage-svW7FNT3-CdR83JXD.js → TaskManagementPage-K2ahivqx-Cw8lnZhf.js} +1 -1
- package/dist/assets/{TimeRangeSwitcher-wio5OjI3-BFQK4ykL.js → TimeRangeSwitcher-CaV1qK_v-9kKZ6AfJ.js} +11 -11
- package/dist/assets/{TimeframeSwitcher-234cbGUX-GrV_gRdd.js → TimeframeSwitcher-COkEJy3J-45wKe_Sn.js} +1 -1
- package/dist/assets/{TimeframeSwitcherWithToggle-B65LibQx-O8FBApDz.js → TimeframeSwitcherWithToggle-CPP1tWQ_-D4EHb91u.js} +2 -2
- package/dist/assets/{TopExCard-DFm0V6Sa-CuS6D-g2.js → TopExCard-CLkfO6zN-v91Jdaeu.js} +1 -1
- package/dist/assets/{TopExDetailPage-B4UamIS--DvTevd6J.js → TopExDetailPage-CUoODDhA-zH5Xy9H2.js} +4 -4
- package/dist/assets/{TransactionDetailPage-BiGPVM2O-BIqR8D1A.js → TransactionDetailPage-BTonMpH2-DgSPoDVR.js} +1 -1
- package/dist/assets/{TransactionList-BQ2dvALf-DExPb7_Y.js → TransactionList-B8eL6jhA-Di9L9RKc.js} +1 -1
- package/dist/assets/{TransactionListBig-Ca4yYTqY-DpBtFr0L.js → TransactionListBig-BI0Egbwq-BwzSPZzZ.js} +1 -1
- package/dist/assets/{TransactionListPage-CaSfmS5A-B8TNgEwP.js → TransactionListPage-DxGLszcx-DAoYnm1i.js} +2 -2
- package/dist/assets/{TransactionVendorDetailPage-CH7qHDUF-CdstXkoA.js → TransactionVendorDetailPage-BnqP7rIa-BU85_A7u.js} +1 -1
- package/dist/assets/{TransferDrawerPage-5IgzdfVN-CuTPVgyu.js → TransferDrawerPage-BvKebmux-o6Yl4bGU.js} +1 -1
- package/dist/assets/{TreasuryOverviewPage-CyMGJE8x-BqzDON9-.js → TreasuryOverviewPage-DqlUffnH-Bn5k5ejI.js} +27 -27
- package/dist/assets/{TreasuryPromoPage-DQabp_BI-lYWtZagK.js → TreasuryPromoPage-DqZE9SWj-Bp0vqbWD.js} +1 -1
- package/dist/assets/{TreasuryStatementsPage-DyJbkTPX-DQbO4X2A.js → TreasuryStatementsPage-Cyj4xmLP-DxZc3Yqs.js} +1 -1
- package/dist/assets/{TreasuryTaxLetterPage-BSIqzP7E-BachcLIH.js → TreasuryTaxLetterPage-04gxKt0a-DDLLJmzC.js} +2 -2
- package/dist/assets/{TrendChart-DLlQzxzM-PPRPEN_l.js → TrendChart-Cb8wnBqS-Di_U3EIl.js} +1 -1
- package/dist/assets/{TrendWithTransactions-CjGbUTLS-CZ3CCR3q.js → TrendWithTransactions-_49jEzFf-D4MyPHxb.js} +3 -3
- package/dist/assets/{UncategorizedAccountsMappingPage-CgJuXRnT-4h1DDmrY.js → UncategorizedAccountsMappingPage-WTwSitI6-BqjGQcpf.js} +1 -1
- package/dist/assets/{UnitIntegrationPage-Dew9WP2L-B7QG_5u7.js → UnitIntegrationPage-C3HFSJ9I-BVEgdEbm.js} +1 -1
- package/dist/assets/{UploadAdditionalDocumentOverlay-CoO-S_pc-DdAruGua.js → UploadAdditionalDocumentOverlay-UdsrwN9K-D09XF6PT.js} +1 -1
- package/dist/assets/{Vendor2FAPopup-2JZx7Ouz-DmIxVSxV.js → Vendor2FAPopup-BS-3oZPR-C_3L-M1N.js} +1 -1
- package/dist/assets/VendorACHDetailsPage-DBr7crZ5-FdMIuie9.js +1 -0
- package/dist/assets/{VendorDetailPage-DcpigP-V-CLpuuI3V.js → VendorDetailPage-CJQeB1km-B4OkDlMh.js} +5 -5
- package/dist/assets/VendorDomesticWireDetailsPage-BRIKuuUP-j1Nnt0f3.js +1 -0
- package/dist/assets/{VendorFiling1099EditablePage-BK_AfMvG-BcMvx9ZT.js → VendorFiling1099EditablePage-C2zwrfg_-BSkCYiG1.js} +1 -1
- package/dist/assets/{VendorFirstReviewPage-BnGpb03v-CQ1grmaD.js → VendorFirstReviewPage-BeDtBSt0-DLLC2Nix.js} +1 -1
- package/dist/assets/{VendorInternationalWireDetailsPage-Bs_MIbDV-D_-xScY6.js → VendorInternationalWireDetailsPage-BVI-FIhY-DxEIS0E-.js} +1 -1
- package/dist/assets/VendorInternationalWireSwiftDetailsPage-D4H4XkkY-B3GBnsRt.js +1 -0
- package/dist/assets/{VendorsAccountsSection-V7IwNhkN-D-eiPu30.js → VendorsAccountsSection-DlO_YtSs-DR5OkKrn.js} +1 -1
- package/dist/assets/{VerifyDevice-Dc3oeJbw-D5d8Wn7A.js → VerifyDevice-CVr0FwHa-DAB6OPBb.js} +1 -1
- package/dist/assets/{VideoPlayer-XU1YwohK-BaDXYiVP.js → VideoPlayer-HL-oU9Ri-BnQLsV6M.js} +2 -2
- package/dist/assets/{VideoPopup-BKLcIVcV-C8tsI7gn.js → VideoPopup-Dw57i43Q-BXsiVF5S.js} +5 -5
- package/dist/assets/{WarningsDrawerPage-DE6hNSem-DTjl6BDC.js → WarningsDrawerPage-DOFirhc3-Ch_HhDH0.js} +1 -1
- package/dist/assets/{ZeniAccountDetailPage-B3txxml4-BrnXOri_.js → ZeniAccountDetailPage-ByCgz534-Dsg1GtqQ.js} +1 -1
- package/dist/assets/{ZeniAccountListViewPage-D8AbqSI--lXEmxuQ-.js → ZeniAccountListViewPage-yATacDeU-5emCk5r8.js} +1 -1
- package/dist/assets/{ZeniAccountNavBarPieces-CNM-e6b3-CrP6I6p5.js → ZeniAccountNavBarPieces-Yb3HCUq4-CdqCHII0.js} +1 -1
- package/dist/assets/{ZeniAccountPromoPage-CcZOtFpv-D5dUYpiY.js → ZeniAccountPromoPage-4iBPGLEt-CS6doMp4.js} +1 -1
- package/dist/assets/{ZeniAccountSetupPage-COA09GMm-BsBo4Yw_.js → ZeniAccountSetupPage-bdXuLfgB-Cy2PUDIb.js} +1 -1
- package/dist/assets/{ZeniCopyright-DqbjGQWk-D3uyyuTN.js → ZeniCopyright-C_Hgn3Qx-CHqYLJwq.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-NJ7GeTlf-DqVr8V-Q.js → ZeniTransferAmountSlider-DBhodWDh-BViJCc8g.js} +1 -1
- package/dist/assets/{add-to-wallet-DgdBD8_G-CF63trjm.js → add-to-wallet-DgdBD8_G-B2xhCimT.js} +1 -1
- package/dist/assets/{analytics-D0z7Cz17.js → analytics-CO_4s2X8.js} +1 -1
- package/dist/assets/{analyticsHelper-D1UvETVa.js → analyticsHelper-C-V4F33Q.js} +1 -1
- package/dist/assets/{analyticsHelper-C2PAija--B2XRbUD9.js → analyticsHelper-DTl4FgRU-DCg1Wj_c.js} +1 -1
- package/dist/assets/{arrow-south-east-round-PEovUgvH-Cun1Cxd1.js → arrow-south-east-round-PEovUgvH-BLOUsrLT.js} +1 -1
- package/dist/assets/{auto-transfer-rule-mbafm5D3-DPk-N0wE.js → auto-transfer-rule-mbafm5D3-DXWlGTms.js} +1 -1
- package/dist/assets/{chartTypes-B9jQTJLQ-B-uICCus.js → chartTypes-wLUiIPlP-CGvYnBXb.js} +1 -1
- package/dist/assets/{commonDimensions-BgvFMAEM-jw0M4GDE.js → commonDimensions-DGz_YafU-DaJiwvC8.js} +1 -1
- package/dist/assets/{commonTypes-PtDfk70--ByVvU-Tm.js → commonTypes-Gv0Fff59-KWmxkMG2.js} +1 -1
- package/dist/assets/{constants-DleDZ7Hr.js → constants-B80Lbuf7.js} +1 -1
- package/dist/assets/{core-9PMMelIA.js → core-D7_k1EhP.js} +1 -1
- package/dist/assets/{dash.all.min-ClWxXI22.js → dash.all.min-D84aFlTu.js} +1 -1
- package/dist/assets/{detailCommon-BjRXEZFj-BMuJy_GS.js → detailCommon-C-kv1ST5-00YEtv_m.js} +6 -6
- package/dist/assets/{downloadPdf-ZSABdzxr-CSS_LmUU.js → downloadPdf-a0dx3Bka-DXudTOPx.js} +1 -1
- package/dist/assets/{empty-Bp9uyDV_.js → empty-BK-FM9Fc.js} +1 -1
- package/dist/assets/{empty-D5Zf29Ub.js → empty-D7ZL3ibO.js} +1 -1
- package/dist/assets/{epic-Di7g1fbQ.js → epic-BKSpf58y.js} +1 -1
- package/dist/assets/{gift-box-Cmt9OgIZ-m0hJlqL5.js → gift-box-Cmt9OgIZ-BvDbzpBs.js} +1 -1
- package/dist/assets/{graphic-no-data-l-DU4J8fDt-cg6FAACa.js → graphic-no-data-l-DU4J8fDt-DnBDJsPD.js} +1 -1
- package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-qDT1cGx5.js → graphic-no-data-net-burn-l-CzmycA0m-D8mbIWvo.js} +1 -1
- package/dist/assets/{handshake-BPg58FML-DFhtOw8z.js → handshake-BPg58FML-B-s0K2Gk.js} +1 -1
- package/dist/assets/{index-DNxMom6d.js → index-AC1SIzUs.js} +1 -1
- package/dist/assets/{index-DW6fMwk4.js → index-BCqMlt2D.js} +1 -1
- package/dist/assets/{index-4hZvJwkO.js → index-CIdXBggf.js} +1 -1
- package/dist/assets/{index-0WIxY_w_.js → index-CN_MjJna.js} +1 -1
- package/dist/assets/{index-CbXRL6aP.js → index-CocAByQY.js} +1 -1
- package/dist/assets/{index-Bs2B-MQ4.js → index-qaSB49F0.js} +9 -9
- package/dist/assets/{index-BLOmj_st.js → index-yGtk6ceJ.js} +1 -1
- package/dist/assets/{lexical-CaQwXIc3.js → lexical-CGMN4tXG.js} +1 -1
- package/dist/assets/{liveblocks-48Yy2aTy.js → liveblocks-BmXYR5uO.js} +1 -1
- package/dist/assets/{lottie-ChwWMuYN.js → lottie--pGIoexZ.js} +1 -1
- package/dist/assets/mapLoadingInProgressToTreeNode-Dn79CwqB-DWPPY5_g.js +1 -0
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-DCsXPZ77-B7l0JH-0.js → mapSectionWithAcOnlyToTreeNode-DXbOFz3E-BdYTpUAO.js} +1 -1
- package/dist/assets/mapSpacerToTreeNode-D7hBnjRr-B3iPFPg7.js +1 -0
- package/dist/assets/{mapTimeframeBalancesToTreeNode-q_WorOhv-vY1YncA0.js → mapTimeframeBalancesToTreeNode-CQWxQdJu-UtXiI9zI.js} +1 -1
- package/dist/assets/mapTimeframeBalancesToTreeNode-ph17cvaS-DS1-lnZY.js +1 -0
- package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-DFZvknEc-BH5TYlER.js → mapTimeframeHeaderLoadingInProgressToTreeNode-FwPcTyoF-D6D_67kw.js} +1 -1
- package/dist/assets/{mui-snKYaegN.js → mui-Fyk6sRCR.js} +1 -1
- package/dist/assets/{page-detail-CWX5S47F-D1nl1r9M.js → page-detail-CWX5S47F-CTsT95lG.js} +1 -1
- package/dist/assets/{radio-default-CiSgisfh-BY9nqKUM.js → radio-default-CiSgisfh-DyFeMuig.js} +1 -1
- package/dist/assets/{react-B2deW7HO.js → react-89jLopxj.js} +1 -1
- package/dist/assets/{react-CiQEdtzT.js → react-8lAMKDVs.js} +1 -1
- package/dist/assets/{react-C-MrqhIX.js → react-CZ_9akaZ.js} +1 -1
- package/dist/assets/{react-o70ZlKb0.js → react-CazNrypD.js} +1 -1
- package/dist/assets/{react-BpEW9tPq.js → react-Cw0TtY4U.js} +1 -1
- package/dist/assets/{react-BNn_K56n.js → react-DywPl4iN.js} +1 -1
- package/dist/assets/{react-DHTHtXgj.js → react-E7ETqwTX.js} +1 -1
- package/dist/assets/{react-BddMC_36.js → react-OOqLEgIT.js} +2 -2
- package/dist/assets/{recharts-DGmpNqLb.js → recharts-j_eh1fXg.js} +1 -1
- package/dist/assets/{sentry-gm2R3TtK.js → sentry-D4D7HRQR.js} +1 -1
- package/dist/assets/{shield-DOlUxcFf-DNx-Nq5U.js → shield-DOlUxcFf-D9ihfdgR.js} +1 -1
- package/dist/assets/toCOABalancesWithID-CdKQhpIb-CFgx5sWA.js +1 -0
- package/dist/assets/{toChartData-CVxc3i6E-Jb1kbIeZ.js → toChartData-BlyUYoV7-DsdeBaUU.js} +1 -1
- package/dist/assets/{uploadAttachment-CBATb9_e-Bf8RMkbX.js → uploadAttachment-BkEbu6k9-DdujAAv5.js} +1 -1
- package/dist/assets/{uploadReceipts-CPw64UYa-DwtdWb2a.js → uploadReceipts-CPw64UYa-C1oywu4M.js} +1 -1
- package/dist/assets/{url-B3spPAaB.js → url-BwHZRaSJ.js} +1 -1
- package/dist/assets/{url-CsktLD4A.js → url-DStI5MA9.js} +1 -1
- package/dist/assets/{useLongPress-GCK2COYQ-5GfLl0ml.js → useLongPress-GCK2COYQ-BS3t10_q.js} +1 -1
- package/dist/assets/{usp-line-BBd1wKwW-DO5-Shw0.js → usp-line-BBd1wKwW-DELeCmm4.js} +1 -1
- package/dist/assets/{utils-C7Aiy3iw.js → utils-BTQ24URD.js} +1 -1
- package/dist/assets/{zeni-epic-state-D2RxwWrl.js → zeni-epic-state-I555vKHy.js} +3 -3
- package/dist/index.html +1 -1
- package/package.json +4 -4
- package/dist/assets/AddAddressForCardDrawer-CNkdq378-DvUXwFrO.js +0 -6
- package/dist/assets/ChargeCardPaymentHistoryPage-DnxJwv-T-SsEma55z.js +0 -553
- package/dist/assets/CustomerOnboardingContainerPage-ZVvSCumS-nk4WVXpw.js +0 -1
- package/dist/assets/CustomerOnboardingProductSuitePage-DHSPLF5F-BeorfiRM.js +0 -202
- package/dist/assets/EntityDetailPage-BaKoO9FG-BDiZrnyD.js +0 -18
- package/dist/assets/MagicLinkACHDetailsPage-BeUu65LP-h79CD54_.js +0 -1
- package/dist/assets/MagicLinkDomesticWireDetailsPage-CO7IswK8-3R9uoHM3.js +0 -1
- package/dist/assets/MagicLinkInternationalWireDetailsPage-bKdrX7dk-BH9XfZTx.js +0 -1
- package/dist/assets/MailingDetailsSection-B_0EH3Eh-Dx6cptzU.js +0 -21
- package/dist/assets/StatementItem-C9KsTdoM-CvW9SwJx.js +0 -31
- package/dist/assets/VendorACHDetailsPage-DVqS0EVe-BvHJQnhv.js +0 -1
- package/dist/assets/VendorDomesticWireDetailsPage-BrvN0BZx-Cb_0-TC6.js +0 -1
- package/dist/assets/VendorInternationalWireSwiftDetailsPage-CJMBOb8y-CNYkR-9e.js +0 -1
- package/dist/assets/mapLoadingInProgressToTreeNode-ilouYnTd-DoZ0huih.js +0 -1
- package/dist/assets/mapSpacerToTreeNode-CEKoJAIb-Ca0optUS.js +0 -1
- package/dist/assets/mapTimeframeBalancesToTreeNode-Cki-np8X-STcH44eC.js +0 -1
- package/dist/assets/toCOABalancesWithID-CcsM8Vr1-Ca_vxtPe.js +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/empty-Bp9uyDV_.js","assets/sentry-gm2R3TtK.js","assets/empty-D5Zf29Ub.js","assets/index-CbXRL6aP.js","assets/index-4hZvJwkO.js","assets/zeni-epic-state-D2RxwWrl.js","assets/core-9PMMelIA.js","assets/utils-C7Aiy3iw.js","assets/recharts-DGmpNqLb.js","assets/url-B3spPAaB.js","assets/index-0WIxY_w_.js","assets/index-DNxMom6d.js","assets/url-CsktLD4A.js","assets/index-BLOmj_st.js","assets/constants-DleDZ7Hr.js","assets/OverlayContainerPage-Daz3A7cI-DlMlal7_.js","assets/mui-snKYaegN.js","assets/liveblocks-48Yy2aTy.js","assets/lottie-ChwWMuYN.js","assets/analytics-D0z7Cz17.js","assets/lexical-CaQwXIc3.js","assets/ConfettiBurst-B6ej_xoO-BzptsIBR.js","assets/SignIn-B79R5ayU-BtVW5pl0.js","assets/ZeniCopyright-DqbjGQWk-D3uyyuTN.js","assets/ProductsCarousel-y6q9BbqK-B9m9tH0o.js","assets/handshake-BPg58FML-DFhtOw8z.js","assets/Dashboard-cbXIPzMy-DLCpLMr4.js","assets/DashboardSidebarBackgroundAnimation-CSzhyK4K-DW7vdml5.js","assets/ArAgingChart-BxTkvrC9-BgC5YBPR.js","assets/chartTypes-B9jQTJLQ-B-uICCus.js","assets/ReloadCard-BT0lSFUP-CF34SUO7.js","assets/TopExCard-DFm0V6Sa-CuS6D-g2.js","assets/graphic-no-data-l-DU4J8fDt-cg6FAACa.js","assets/RevenueChart-CxvHfkxr-BmSB0A7U.js","assets/toCOABalancesWithID-CcsM8Vr1-Ca_vxtPe.js","assets/toChartData-CVxc3i6E-Jb1kbIeZ.js","assets/InsightsCardStack-zRynyTFj-CqnhwImM.js","assets/SummaryCard-BNrPt21W-z-I2nOL_.js","assets/NavigationArrow-DAs7ECFZ-rFu_aZmo.js","assets/NavigationDots-DISWi4Mq-BdTnuTup.js","assets/arrow-south-east-round-PEovUgvH-Cun1Cxd1.js","assets/AccountsPromoCardStack-CuLhbb_W-BwlxSNV8.js","assets/CompanyPassportCard-B8PLT6MG-BUc5HZU7.js","assets/gift-box-Cmt9OgIZ-m0hJlqL5.js","assets/InformationCardStack-xhdujEcL-COTShhF9.js","assets/graphic-no-data-net-burn-l-CzmycA0m-qDT1cGx5.js","assets/PromoBaseCards-CLQMN7aT-BxeQG0rP.js","assets/VideoPlayer-XU1YwohK-BaDXYiVP.js","assets/AppDrawerContent-RX7rx40V-DlBxQF_L.js","assets/TransactionListBig-Ca4yYTqY-DpBtFr0L.js","assets/TransactionListPage-CaSfmS5A-B8TNgEwP.js","assets/TransactionList-BQ2dvALf-DExPb7_Y.js","assets/BoxItem-42doFhpg-BDC_fDqi.js","assets/commonDimensions-BgvFMAEM-jw0M4GDE.js","assets/page-detail-CWX5S47F-D1nl1r9M.js","assets/DashboardReportPage-Pc0G2Tok-BRmpg3ok.js","assets/analyticsHelper-C2PAija--B2XRbUD9.js","assets/ReportTableViewSelector-rl6XGWA_-CSxPHelL.js","assets/CollapsableReportTable-DLOi0feI-SZFbl9NV.js","assets/AccountRow-B0gU16A_-Ks_Pft1z.js","assets/InsightsSection-C4fMfxQ4-BGGNiljS.js","assets/detailCommon-BjRXEZFj-BMuJy_GS.js","assets/NoDataChart-gfqauMvY-CAbYCdyQ.js","assets/getReferrerType-DjPOy76W-DRP5VHem.js","assets/TimeRangeSwitcher-wio5OjI3-BFQK4ykL.js","assets/TimeframeSwitcher-234cbGUX-GrV_gRdd.js","assets/mapSectionWithAcOnlyToTreeNode-DCsXPZ77-B7l0JH-0.js","assets/NoDataTable-C1_gqVi7-D4ANXF0d.js","assets/mapTimeframeHeaderLoadingInProgressToTreeNode-DFZvknEc-BH5TYlER.js","assets/mapLoadingInProgressToTreeNode-ilouYnTd-DoZ0huih.js","assets/ReportsPage-DV0bbi_D-1o0LJL4r.js","assets/TimeframeSwitcherWithToggle-B65LibQx-O8FBApDz.js","assets/DownloadOverlay-C7r6PAam-BvXPoC9j.js","assets/mapTimeframeBalancesToTreeNode-q_WorOhv-vY1YncA0.js","assets/TopExDetailPage-B4UamIS--DvTevd6J.js","assets/TransactionDetailPage-BiGPVM2O-BIqR8D1A.js","assets/LabeledControlledCheckBoxField-f2c-AeS4-DagKbuzo.js","assets/TrendWithTransactions-CjGbUTLS-CZ3CCR3q.js","assets/TrendChart-DLlQzxzM-PPRPEN_l.js","assets/uploadAttachment-CBATb9_e-Bf8RMkbX.js","assets/radio-default-CiSgisfh-BY9nqKUM.js","assets/QBOConnectionDialog-R4ZWjJsY-DNCk7fny.js","assets/VerifyDevice-Dc3oeJbw-D5d8Wn7A.js","assets/AccountLockedInfoModal-BeLLlH_Y-DAQUptbF.js","assets/PeoplePage-Du_TRX4h-C2Rmmn5d.js","assets/Menu-C9v-W9TY-DRVyGpH4.js","assets/RoleWithToolTip-C08wfnGb-CFjb8VCB.js","assets/PandLWithForecastPage-D3kcPKd0-sYhFB1EB.js","assets/NavBarWithPicker-Cv7tOmjd-BXBZWsng.js","assets/usp-line-BBd1wKwW-DO5-Shw0.js","assets/EntityDetailPage-BaKoO9FG-BDiZrnyD.js","assets/NotFoundPage-CdWhiWjz-DDjAX_Ng.js","assets/CompanyPassportPage-CQZPgrNF-KJN_fT4M.js","assets/LabeledCreatableSingleSelectField-BWuogpe6-DITM3Hn0.js","assets/LabeledDocumentField-Ch2zD7s7-Nw7bBUJi.js","assets/LabeledAddressValue-Ce_wDml5-CoYtFscl.js","assets/LabeledMultiSelectField-CA9PUCf3-CGx9bMTu.js","assets/CreateOrEditVendorPage-BO4_TNWg-EUNhPwxD.js","assets/VendorACHDetailsPage-DVqS0EVe-BvHJQnhv.js","assets/ACHDetailsPage-DYlcHRQe-lxtPXqrl.js","assets/BankAccountWarningSection-CNusQFRM-4Y94-VD5.js","assets/MagicLinkTitleSection-D5ORaO0D-oMV_fYKL.js","assets/BankAccountSection-HRSyjIxV-CV6PAaFg.js","assets/VendorDomesticWireDetailsPage-BrvN0BZx-Cb_0-TC6.js","assets/DomesticWireDetailsPage-DjUvG0tD-BhbPV8HA.js","assets/MailingDetailsSection-B_0EH3Eh-Dx6cptzU.js","assets/LabeledAddressValueField-BrYbXck--8qVwdGMU.js","assets/VendorInternationalWireDetailsPage-Bs_MIbDV-D_-xScY6.js","assets/CurrencySelectField-DsZTOj_T-DmNXNRTP.js","assets/ReviewDetailsPage-CX2XB44j-BHiKofo4.js","assets/LowBalancePopup-BJfagMN7-DFWlKz1e.js","assets/LabeledText-D7eLbH80-Bs-kfAE-.js","assets/BillPayPromoPage-DOEbuNgH-BglT_61W.js","assets/VideoPopup-BKLcIVcV-C8tsI7gn.js","assets/BillPaySetUpPage-Tb-gBoFT-Po5Zl1ZL.js","assets/UploadAdditionalDocumentOverlay-CoO-S_pc-DdAruGua.js","assets/ApprovalRulesSettingsPage-BKxa78xI-BrpnOxmu.js","assets/BankConnectionsSettingsPage-CzumYsEx-f1xJXYSm.js","assets/SetUpAccountSection-Clz60vjw-CDcwloM0.js","assets/MyBankConnectionsSettingsPage-C4YJleyg-DKQ0iSMd.js","assets/MyProfileSettingsPage-BMNBcdq8-CzuZjUxB.js","assets/LabeledUserSingleSelectWithSubtitlesField-CleX9Raw-CCmlbQ1T.js","assets/LabeledZeniRolesDropDownField-Cte6kRTw-CB2TIDv8.js","assets/NotificationSettingsPage-C4SZ6Qwg-DbitLXBD.js","assets/BusinessVerificationPage-De9zCAm7-geq4Sk8A.js","assets/CompanyOfficerDetailsSection-DVpqCb72-DOikAEBj.js","assets/LabeledCountryMultiSelectField-BLOMdq_H-CLNHA2Sp.js","assets/commonTypes-PtDfk70--ByVvU-Tm.js","assets/ReimbursementPromoPage-C0sHIJm4-YN1RP5MA.js","assets/ReimbursementSetUpPage-C85Q6ZnB-DbK7lPyD.js","assets/BillDetailPage-CgCMZFw1-pAtGUG0W.js","assets/InvoiceUploadSection-W4vdQGvo-DAuF5vcp.js","assets/AttachmentView-zHGhIkWo-C64qXCAp.js","assets/uploadReceipts-CPw64UYa-DwtdWb2a.js","assets/BillPayApprovalRulesPage-S80WUW0f-Cw75zLq9.js","assets/BillPayApprovalRuleDetailPage-DnhdBw3a-BtwlYdoz.js","assets/FollowStepsSection-h449vQkQ-BXixJ0VK.js","assets/ReimbursementApprovalRulesPage-BJaSXRQF-DF9kihjD.js","assets/ReimbursementApprovalRuleDetailPage-OXenWhiy-Cj4gr0h0.js","assets/EditReimbursementDetailPage-DLjRDR48-DAmxctvz.js","assets/types-DyvtCprH-NFPm5TaG.js","assets/ReimbursementDetailPage-BeFEzgmP-DZ-1wgaR.js","assets/InvitePeoplePage-C_4adNch-DPbyAjsn.js","assets/AllUserItems-D8zdAu_1-C-zZqgmo.js","assets/CompleteProfile-fNSWTbef-pSYliRNx.js","assets/EditPeoplePage-BnQqStEx-Cbm0H-hi.js","assets/AppBasePage-Uyk9GOud-D7f8hWuo.js","assets/SpendManagementListViewPage-C3gJ8vag-CRVtgLhw.js","assets/SpendManagementSection-mtTZeiX8-DB_R_dFU.js","assets/StatusSwitcher-DRDFuzoj-DFWyQSIu.js","assets/VendorDetailPage-DcpigP-V-CLpuuI3V.js","assets/SubTabSwitcher-Bj1N3zLn-DocBm2NX.js","assets/LabeledDropDownFormattedTextField-BA8tzPzQ-Big6_AMJ.js","assets/VendorFiling1099EditablePage-BK_AfMvG-BcMvx9ZT.js","assets/ZeniAccountListViewPage-D8AbqSI--lXEmxuQ-.js","assets/auto-transfer-rule-mbafm5D3-DPk-N0wE.js","assets/shield-DOlUxcFf-DNx-Nq5U.js","assets/ZeniAccountNavBarPieces-CNM-e6b3-CrP6I6p5.js","assets/ZeniTransferAmountSlider-NJ7GeTlf-DqVr8V-Q.js","assets/ZeniAccountDetailPage-B3txxml4-BrnXOri_.js","assets/downloadPdf-ZSABdzxr-CSS_LmUU.js","assets/DepositAccTransactionItem-XvCjkHDS-DQ2tNEjM.js","assets/AccountInfoPage-BEOrrVQS-L5aJOIaA.js","assets/AccountInfoPageContent-BJkLJK6O-CmMcM25y.js","assets/TransferDrawerPage-5IgzdfVN-CuTPVgyu.js","assets/CreditCardPaymentDrawerPage-CsHjU-sm-BX_z_XTl.js","assets/CheckDepositDrawerPage-B-bTb9ct-CleglNSV.js","assets/ZeniAccountPromoPage-CcZOtFpv-D5dUYpiY.js","assets/ZeniAccountSetupPage-COA09GMm-BsBo4Yw_.js","assets/DepositAccTransactionListPage-DqPIPHi9-DnAhb4M6.js","assets/StatementsPage-DgoXqABR-NsGiWIFr.js","assets/StatementItem-C9KsTdoM-CvW9SwJx.js","assets/TransactionVendorDetailPage-CH7qHDUF-CdstXkoA.js","assets/CustomerOnboardingPage-Db6sGSGl-C--ab3S1.js","assets/PaymentAccountSetupBillingAddressSection-DjdhL9mT-4CseF2mz.js","assets/CustomerOnboardingDetailPageSkeleton-DrfNm65u-Bi4SumgH.js","assets/QBOSetupSection-D--nxfIh-Difre144.js","assets/CustomerOnboardingContainerPage-ZVvSCumS-nk4WVXpw.js","assets/CustomerOnboardingNoStepsPage-CtIWYEfR-CA6QH1RJ.js","assets/CustomerOnboardingProductSuitePage-DHSPLF5F-BeorfiRM.js","assets/CustomerOnboardingActivationPage-Cvdehiay-Ci2xJTUc.js","assets/BillingSettingsPage-ZupDcNHz-B6O6l_7B.js","assets/UncategorizedAccountsMappingPage-CgJuXRnT-4h1DDmrY.js","assets/VendorsAccountsSection-V7IwNhkN-D-eiPu30.js","assets/IntegrationsSettingsPage-fqQsGUmw-CRKZpnAv.js","assets/UnitIntegrationPage-Dew9WP2L-B7QG_5u7.js","assets/MagicLinkACHDetailsPage-BeUu65LP-h79CD54_.js","assets/MagicLinkDomesticWireDetailsPage-CO7IswK8-3R9uoHM3.js","assets/MagicLinkInternationalWireDetailsPage-bKdrX7dk-BH9XfZTx.js","assets/InternationalWireSwiftDetailsPage-CIMxKADX-CYl4ll0M.js","assets/MagicLinkSuccessPage-BRWymdWH-suMYBps1.js","assets/Vendor2FAPopup-2JZx7Ouz-DmIxVSxV.js","assets/AgingReportsPage-Bff4u7T1-DOBvEqCj.js","assets/mapSpacerToTreeNode-CEKoJAIb-Ca0optUS.js","assets/agingReportHelper-ovKP-qSS-Cx4Hdid-.js","assets/ApAgingDetailPage-2NsAj3gO-DfogwLMb.js","assets/EntitySummarySection-C361-4tS-UJPRLBoI.js","assets/ArAgingDetailPage-CnUgFF1M-Bb_-bJZp.js","assets/OpExByVendorPage-B13tAq03-Dd8cq0hz.js","assets/mapTimeframeBalancesToTreeNode-Cki-np8X-STcH44eC.js","assets/VendorInternationalWireSwiftDetailsPage-CJMBOb8y-CNYkR-9e.js","assets/VendorFirstReviewPage-BnGpb03v-CQ1grmaD.js","assets/NewGlobalMerchantPage-DGFtrDg1-BDtdrE9G.js","assets/GlobalReviewListPage-DGOKRsKI-CAnqX1u0.js","assets/ScheduleDetailsPage-BqX1EZGE-B4pi2I25.js","assets/ScheduleSequenceTable-DU3dXX6V-BMdU_3TL.js","assets/ScheduleDetailsFixedAssetsPage-BmZgiTVc-C4es4cDL.js","assets/LinkJETransactionPage-DicS5kKg-DOb356xm.js","assets/ChargeCardPromoPage-DBSmL-ms-DBZo83zK.js","assets/ChargeCardSetupPage-cou3N3Iv-BSBfzNx6.js","assets/ChargeCardListPage-DlI8ZfB0-CMLNFzih.js","assets/ChargeCardListTable-CooASbVZ-CSvbg9sF.js","assets/CardNumberSubText-C6jdBRC2-YbNbzp0H.js","assets/LockCardPage-DRYg_fxU-CFGUEJ0X.js","assets/MyPendingActivationChargeCardListPage-D-6TnbYs-g9LqO-rS.js","assets/ChargeCardDetailPage-bk-pzoDR-DTGxBulo.js","assets/add-to-wallet-DgdBD8_G-CF63trjm.js","assets/CashbackDetailPage-B2drd1Nz-BAvHe1xx.js","assets/ChargeCardStatementsPage-Z05M_t51-O2I36ZAe.js","assets/ChargeCardPaymentHistoryPage-DnxJwv-T-SsEma55z.js","assets/IssueChargeCardPage-CdV757XH-B0b8pyku.js","assets/AddToWalletPage-DNPLnpTq-CxRyEwld.js","assets/AddAddressForCardDrawer-CNkdq378-DvUXwFrO.js","assets/TaskManagementPage-svW7FNT3-CdR83JXD.js","assets/NotificationsListConfig-B-g9kb6x-CND-RON9.js","assets/InvitePageListView-ktOXziSw-ClMd1Rgx.js","assets/InviteFormPage-C7fxnyMS-ChsV2A2J.js","assets/DrawerPage-BEV7nWrL-CqfdeYhP.js","assets/NotificationsPage-jxpX3iRG-UGS5Y_9i.js","assets/useLongPress-GCK2COYQ-5GfLl0ml.js","assets/FeaturePreviewPage-DsJEfObK-B9lh1mEQ.js","assets/BillsBulkReviewDrawerPage-CJrUtHKz-B78eSann.js","assets/ReviewOverlay-DdOo3pcK-BVp3d9bK.js","assets/ReimbursementsBulkReviewDrawerPage-B5RzRA4c-PwRYjy1t.js","assets/ExpenseAutomationOverviewPage-BLvAzAmO-JyE5jYzJ.js","assets/AIPerformancePage-DpXZ7sco-B8d5E6QI.js","assets/ExpenseAutomationPage-CE_qMXSG-DlDCSSSs.js","assets/AccountReconDetailsDrawerPage-D2Hx_l3u-BYxEEZJn.js","assets/InternationalWireVerificationPage-DpmSzzre-gDdhOqko.js","assets/ExpressPayPage-CDowSjHC-DolGHHJS.js","assets/TreasuryPromoPage-DQabp_BI-lYWtZagK.js","assets/TreasuryOverviewPage-CyMGJE8x-BqzDON9-.js","assets/TreasuryStatementsPage-DyJbkTPX-DQbO4X2A.js","assets/TreasuryTaxLetterPage-BSIqzP7E-BachcLIH.js","assets/WarningsDrawerPage-DE6hNSem-DTjl6BDC.js","assets/ScreenRoutes-BOb1-zin.js","assets/analyticsHelper-D1UvETVa.js","assets/SignInScreen-CsaRmLqD.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{a as b,S as C,R as Lye,b as Mc,p as l1,g as lw,e as Dye,s as Dz,d as Mz,r as Ts,w as Mye,f as Pye,i as Iye,j as jye,k as Rye,l as Oye,m as Fye}from"./sentry-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/empty-BK-FM9Fc.js","assets/sentry-D4D7HRQR.js","assets/empty-D7ZL3ibO.js","assets/index-CocAByQY.js","assets/index-CIdXBggf.js","assets/zeni-epic-state-I555vKHy.js","assets/core-D7_k1EhP.js","assets/utils-BTQ24URD.js","assets/recharts-j_eh1fXg.js","assets/url-BwHZRaSJ.js","assets/index-CN_MjJna.js","assets/index-AC1SIzUs.js","assets/url-DStI5MA9.js","assets/index-yGtk6ceJ.js","assets/constants-B80Lbuf7.js","assets/OverlayContainerPage-Daz3A7cI-CNivODsb.js","assets/mui-Fyk6sRCR.js","assets/liveblocks-BmXYR5uO.js","assets/lottie--pGIoexZ.js","assets/analytics-CO_4s2X8.js","assets/lexical-CGMN4tXG.js","assets/ConfettiBurst-D52CuNQL-H3h7bAw9.js","assets/SignIn-D7PmDE-R-DymRL_3M.js","assets/ZeniCopyright-C_Hgn3Qx-CHqYLJwq.js","assets/ProductsCarousel-HFHMMFnQ-DrHOVGTY.js","assets/handshake-BPg58FML-B-s0K2Gk.js","assets/Dashboard-w2AGQi2P-DrVf9Yya.js","assets/DashboardSidebarBackgroundAnimation-vcuSFRHQ-CXXDOfjW.js","assets/ArAgingChart-BJ8nRdT6-PCsSRezt.js","assets/chartTypes-wLUiIPlP-CGvYnBXb.js","assets/ReloadCard-DhRbLcVA-DIQafdWZ.js","assets/TopExCard-CLkfO6zN-v91Jdaeu.js","assets/graphic-no-data-l-DU4J8fDt-DnBDJsPD.js","assets/RevenueChart-C7uaOhqz-CyB_o3bQ.js","assets/toCOABalancesWithID-CdKQhpIb-CFgx5sWA.js","assets/toChartData-BlyUYoV7-DsdeBaUU.js","assets/InsightsCardStack-BLtip0dt-CdpS0MPm.js","assets/SummaryCard-DUTikTiQ-CorF8AqM.js","assets/NavigationArrow-qaYGOFR3-BsTNc95E.js","assets/NavigationDots-U7wL0ya4-Br1fZ1mY.js","assets/arrow-south-east-round-PEovUgvH-BLOUsrLT.js","assets/AccountsPromoCardStack-D5OgsEYb-3g8gXWBP.js","assets/CompanyPassportCard-Bx4KhQfs-Cq5ggOmg.js","assets/gift-box-Cmt9OgIZ-BvDbzpBs.js","assets/InformationCardStack-DnoAMdjH-BkgD0Khh.js","assets/graphic-no-data-net-burn-l-CzmycA0m-D8mbIWvo.js","assets/PromoBaseCards-Bwm7huaB-m2dOzdVj.js","assets/VideoPlayer-HL-oU9Ri-BnQLsV6M.js","assets/AppDrawerContent-D4EVpqHP-BynJPN1Q.js","assets/TransactionListBig-BI0Egbwq-BwzSPZzZ.js","assets/TransactionListPage-DxGLszcx-DAoYnm1i.js","assets/TransactionList-B8eL6jhA-Di9L9RKc.js","assets/BoxItem-CZdVWyVJ-Ck7WXLSC.js","assets/commonDimensions-DGz_YafU-DaJiwvC8.js","assets/page-detail-CWX5S47F-CTsT95lG.js","assets/DashboardReportPage-NzF6nutN-DSZitKtw.js","assets/analyticsHelper-DTl4FgRU-DCg1Wj_c.js","assets/ReportTableViewSelector-ByxUIrcT-BjUKZAAK.js","assets/CollapsableReportTable-BS7TgK8B-Ck1A0h-X.js","assets/AccountRow-B16HgkVQ-dG_dWaCL.js","assets/InsightsSection-26UEfz7s-DvD8Ccwt.js","assets/detailCommon-C-kv1ST5-00YEtv_m.js","assets/NoDataChart-DoN6Mneo-tV8Dt3om.js","assets/getReferrerType-DjPOy76W-DRP5VHem.js","assets/TimeRangeSwitcher-CaV1qK_v-9kKZ6AfJ.js","assets/TimeframeSwitcher-COkEJy3J-45wKe_Sn.js","assets/mapSectionWithAcOnlyToTreeNode-DXbOFz3E-BdYTpUAO.js","assets/NoDataTable-BMDDs83M-Dpk0AfuR.js","assets/mapTimeframeHeaderLoadingInProgressToTreeNode-FwPcTyoF-D6D_67kw.js","assets/mapLoadingInProgressToTreeNode-Dn79CwqB-DWPPY5_g.js","assets/ReportsPage-e1xmk9Ua-DWkV6LH_.js","assets/TimeframeSwitcherWithToggle-CPP1tWQ_-D4EHb91u.js","assets/DownloadOverlay-DkSROLX2-BV0uInlq.js","assets/mapTimeframeBalancesToTreeNode-CQWxQdJu-UtXiI9zI.js","assets/TopExDetailPage-CUoODDhA-zH5Xy9H2.js","assets/TransactionDetailPage-BTonMpH2-DgSPoDVR.js","assets/LabeledControlledCheckBoxField-DEaBzW9R-59_aD_t9.js","assets/TrendWithTransactions-_49jEzFf-D4MyPHxb.js","assets/TrendChart-Cb8wnBqS-Di_U3EIl.js","assets/uploadAttachment-BkEbu6k9-DdujAAv5.js","assets/radio-default-CiSgisfh-DyFeMuig.js","assets/QBOConnectionDialog-B5v60lo1-GNrkjfxe.js","assets/VerifyDevice-CVr0FwHa-DAB6OPBb.js","assets/AccountLockedInfoModal-4gi6evfx-WlzE3tch.js","assets/PeoplePage-BZwxMiLM-5s0-HkTL.js","assets/Menu-CjpiRi32-CBwxThCE.js","assets/RoleWithToolTip-New3P2vC-2KCZppVG.js","assets/PandLWithForecastPage-D9muoIzS-BHKR537x.js","assets/NavBarWithPicker-B7KOipTP-BRApBTO0.js","assets/usp-line-BBd1wKwW-DELeCmm4.js","assets/EntityDetailPage-DRZiqaCb-B_QVK0o1.js","assets/NotFoundPage-ys6HcZUO-byf07x0N.js","assets/CompanyPassportPage-i1SEs7VJ-Djluu3GS.js","assets/LabeledCreatableSingleSelectField-Bsowq6Ia-CpyK3LNE.js","assets/LabeledDocumentField-DHqxzbx7-DKNafkiA.js","assets/LabeledAddressValue-BVpOlAt0-BM8gI0N5.js","assets/LabeledMultiSelectField-wuzYNgjQ-D8K8tQ-i.js","assets/CreateOrEditVendorPage-9LgI-Wd0-BZGgNM2M.js","assets/VendorACHDetailsPage-DBr7crZ5-FdMIuie9.js","assets/ACHDetailsPage-CUzXxtOD-D58ed7uT.js","assets/BankAccountWarningSection-CqlrCLSb-4sdBnqih.js","assets/MagicLinkTitleSection-zMEqv8xp-Dw1lipYQ.js","assets/BankAccountSection-BbX4r1dP-BVn949x0.js","assets/VendorDomesticWireDetailsPage-BRIKuuUP-j1Nnt0f3.js","assets/DomesticWireDetailsPage-Daor0MDI-BzIX5Sll.js","assets/MailingDetailsSection-BRCMsb6d-Bg6C6Qx3.js","assets/LabeledAddressValueField-BW6ytr8f-DmYyMrEv.js","assets/VendorInternationalWireDetailsPage-BVI-FIhY-DxEIS0E-.js","assets/CurrencySelectField-CbGyQ8Yq-BBTidwoM.js","assets/ReviewDetailsPage-Dk0Rw7L_-B6ijKV2H.js","assets/LowBalancePopup-IPPewOnk-C3ft7dAK.js","assets/LabeledText-DMjMKupg-DYP6gFxm.js","assets/BillPayPromoPage-Dsl0YvUE-DF_BWBKa.js","assets/VideoPopup-Dw57i43Q-BXsiVF5S.js","assets/BillPaySetUpPage-MLf77bPI-BQQY77ue.js","assets/UploadAdditionalDocumentOverlay-UdsrwN9K-D09XF6PT.js","assets/ApprovalRulesSettingsPage-DTLJUdYp-C8DjXSqL.js","assets/BankConnectionsSettingsPage-DLeiSryp-DwwrFPU_.js","assets/SetUpAccountSection-CywFKgZo-MmKR4ndQ.js","assets/MyBankConnectionsSettingsPage-DsuI81Dg-BZvQVl9M.js","assets/MyProfileSettingsPage-Bx776Bw1-B3dkfEvc.js","assets/LabeledUserSingleSelectWithSubtitlesField-D2PQRKp0-CAFuEck_.js","assets/LabeledZeniRolesDropDownField-C2WL6H1u-BXDtctub.js","assets/NotificationSettingsPage-Cfrj3b7B-DQREI7pG.js","assets/BusinessVerificationPage-DKTSnhnQ-CiETQcAD.js","assets/CompanyOfficerDetailsSection-BotE5oj4-BAJaZgbn.js","assets/LabeledCountryMultiSelectField-DOEcKGdZ-O8xmxgl_.js","assets/commonTypes-Gv0Fff59-KWmxkMG2.js","assets/ReimbursementPromoPage-BjhlxlPR-BZ1GzMRv.js","assets/ReimbursementSetUpPage-pC4KuigM-BDlDJUML.js","assets/BillDetailPage-l0WIOXCJ-DfE-sU4P.js","assets/InvoiceUploadSection-by1gHnS2-ByjzglAY.js","assets/AttachmentView-2FZ6X1gL-Cy8tYEtq.js","assets/uploadReceipts-CPw64UYa-C1oywu4M.js","assets/BillPayApprovalRulesPage-D_iQkfQr-Dlin1Cm9.js","assets/BillPayApprovalRuleDetailPage-BOMCy57E-CAzd0WOM.js","assets/FollowStepsSection-CoXcJ6WL-BDHFkDzZ.js","assets/ReimbursementApprovalRulesPage-B6WJ19jK-CKNTvHH7.js","assets/ReimbursementApprovalRuleDetailPage-D7eJT6hf-BQOWuUEe.js","assets/EditReimbursementDetailPage-BaMG1YJG-BZAQQMK3.js","assets/types-DyvtCprH-NFPm5TaG.js","assets/ReimbursementDetailPage-CEyFEPK5-BstF-oGE.js","assets/InvitePeoplePage-CIiwEl_L-BEUpkDfI.js","assets/AllUserItems-CW-BAUK2-B9Q1lPJb.js","assets/CompleteProfile-DWOv7odD-C_i36-ce.js","assets/EditPeoplePage-Ld339aav-BKidG2ge.js","assets/AppBasePage-B3uZsUDM-CkKVhlEN.js","assets/SpendManagementListViewPage-DJgNAGhp-JXA21DLB.js","assets/SpendManagementSection-BO--0F_T-COrpCsmV.js","assets/StatusSwitcher-Bcqhq2ht-tjRFz3FC.js","assets/VendorDetailPage-CJQeB1km-B4OkDlMh.js","assets/SubTabSwitcher-BNSMaUoP-C0dI-kdw.js","assets/LabeledDropDownFormattedTextField-C_2HymZs-DpANtqUG.js","assets/VendorFiling1099EditablePage-C2zwrfg_-BSkCYiG1.js","assets/ZeniAccountListViewPage-yATacDeU-5emCk5r8.js","assets/auto-transfer-rule-mbafm5D3-DXWlGTms.js","assets/shield-DOlUxcFf-D9ihfdgR.js","assets/ZeniAccountNavBarPieces-Yb3HCUq4-CdqCHII0.js","assets/ZeniTransferAmountSlider-DBhodWDh-BViJCc8g.js","assets/ZeniAccountDetailPage-ByCgz534-Dsg1GtqQ.js","assets/downloadPdf-a0dx3Bka-DXudTOPx.js","assets/DepositAccTransactionItem-SRWW7dWo-Bq8glEON.js","assets/AccountInfoPage-B6jxAqA6-BUFslhTv.js","assets/AccountInfoPageContent-Dm4_RVtp-7_DDYrUM.js","assets/TransferDrawerPage-BvKebmux-o6Yl4bGU.js","assets/CreditCardPaymentDrawerPage-wHK6Ds5I-BlFWnrY1.js","assets/CheckDepositDrawerPage-DV7strdp-DIjE0Er3.js","assets/ZeniAccountPromoPage-4iBPGLEt-CS6doMp4.js","assets/ZeniAccountSetupPage-bdXuLfgB-Cy2PUDIb.js","assets/DepositAccTransactionListPage-BSq-FxKT-D5HpKscp.js","assets/StatementsPage-DkcgOLaa-BdVtg5cn.js","assets/StatementItem-_50yBwO1-CwjTPUgJ.js","assets/TransactionVendorDetailPage-BnqP7rIa-BU85_A7u.js","assets/CustomerOnboardingPage-BkdhcwN8-D99zerXB.js","assets/PaymentAccountSetupBillingAddressSection-BcQ07YZL-sTtrymnZ.js","assets/CustomerOnboardingDetailPageSkeleton-BF484X8E-CaE39Z82.js","assets/QBOSetupSection-BFxjIzV1-B2t1VavS.js","assets/CustomerOnboardingContainerPage-DLdgYP_E-YLcbGvSV.js","assets/CustomerOnboardingNoStepsPage-Dri4v3Rf-SMHqZamP.js","assets/CustomerOnboardingProductSuitePage-CDJfucTI-BVV4jNqa.js","assets/CustomerOnboardingActivationPage-LNgj0BYj-DDGYdiCm.js","assets/BillingSettingsPage-n1PkJEDe-CIU_V4L-.js","assets/UncategorizedAccountsMappingPage-WTwSitI6-BqjGQcpf.js","assets/VendorsAccountsSection-DlO_YtSs-DR5OkKrn.js","assets/IntegrationsSettingsPage-QVOqOc9I-BQQ4M8i8.js","assets/UnitIntegrationPage-C3HFSJ9I-BVEgdEbm.js","assets/MagicLinkACHDetailsPage-BQvuNI4u-DgnKjMFk.js","assets/MagicLinkDomesticWireDetailsPage-BEr-7K3J-BdD6RXkL.js","assets/MagicLinkInternationalWireDetailsPage-DliPDETx-zEl4JPNd.js","assets/InternationalWireSwiftDetailsPage-B7UVdQjs-Dxjq2-if.js","assets/MagicLinkSuccessPage-0Pn_6wi4-BDYzvhnJ.js","assets/Vendor2FAPopup-BS-3oZPR-C_3L-M1N.js","assets/AgingReportsPage-CmzapJ6B-B4fRPdaL.js","assets/mapSpacerToTreeNode-D7hBnjRr-B3iPFPg7.js","assets/agingReportHelper-ovKP-qSS-Cx4Hdid-.js","assets/ApAgingDetailPage-DBCM7hZZ-ChVResPi.js","assets/EntitySummarySection-Bs0NywbK-BzG0U_qN.js","assets/ArAgingDetailPage-hd2ALORD-DPaGaG4h.js","assets/OpExByVendorPage-Dwk6JAu7-BDuhx0f7.js","assets/mapTimeframeBalancesToTreeNode-ph17cvaS-DS1-lnZY.js","assets/VendorInternationalWireSwiftDetailsPage-D4H4XkkY-B3GBnsRt.js","assets/VendorFirstReviewPage-BeDtBSt0-DLLC2Nix.js","assets/NewGlobalMerchantPage-BMLg6RYp-BRiqVwVI.js","assets/GlobalReviewListPage-BSfJybtY-D-EekdXE.js","assets/ScheduleDetailsPage-BLc828ST-CP2yCdiU.js","assets/ScheduleSequenceTable-CEQZEbUs-BdHNsPry.js","assets/ScheduleDetailsFixedAssetsPage-DiwkB2J--BPJp47yZ.js","assets/LinkJETransactionPage-6wvu7KQx-BKOAennG.js","assets/ChargeCardPromoPage-TkHihj_n-DsNKfZLq.js","assets/ChargeCardSetupPage-CkonrAnT-D4zZH8iB.js","assets/ChargeCardListPage-B2OEzCZI-DRTpob3Y.js","assets/ChargeCardListTable-BwYAxG4d-BDrITjcg.js","assets/CardNumberSubText-BhtdU0IQ-BBiDBBhs.js","assets/LockCardPage-DHjkslVx-BLTQi4Ro.js","assets/MyPendingActivationChargeCardListPage-BP2ZNfJQ-C1IGZ0Aj.js","assets/ChargeCardDetailPage-DeUmuiMY-Dftn0md6.js","assets/add-to-wallet-DgdBD8_G-B2xhCimT.js","assets/CashbackDetailPage-BL-JN6N2-DM7Co55u.js","assets/ChargeCardStatementsPage-DVgAcNNC-DlapdY_k.js","assets/ChargeCardPaymentHistoryPage-COWdn2l7-D7wLS9yc.js","assets/IssueChargeCardPage-CawHdTL3-Mn0Xu6jy.js","assets/AddToWalletPage-vXWBje7k-B9_XOYgG.js","assets/AddAddressForCardDrawer-Cw6wTXEm-Ne9lwqPK.js","assets/TaskManagementPage-K2ahivqx-Cw8lnZhf.js","assets/NotificationsListConfig-Cqcn0C6L-mVPCNJk6.js","assets/InvitePageListView-CoCiU_RJ-DlHeTkam.js","assets/InviteFormPage-ptg2-Do2-Dsr3cxPP.js","assets/DrawerPage-BnMCcEWw-BXOkrI5R.js","assets/NotificationsPage-Bri7Dj80-Cv5FRQtl.js","assets/useLongPress-GCK2COYQ-BS3t10_q.js","assets/FeaturePreviewPage-7G9DSgAA-dIRq9Ned.js","assets/BillsBulkReviewDrawerPage-C_4lLm2g-CagoY_n4.js","assets/ReviewOverlay-Bthl69qw-RmWq0Cob.js","assets/ReimbursementsBulkReviewDrawerPage-CucXnBt6-CAc1E2XO.js","assets/ExpenseAutomationOverviewPage-B_-wUXCx-Q7Nf_H07.js","assets/AIPerformancePage-O2oT7VD7-B6QMOBUy.js","assets/ExpenseAutomationPage-CG1Hpwz8-CW8z-7iO.js","assets/AccountReconDetailsDrawerPage-Cm4KEIyT-DvN83q1j.js","assets/InternationalWireVerificationPage-Cvita0lc-B390_mEJ.js","assets/ExpressPayPage-CEf0O3S_-C7xNk40H.js","assets/TreasuryPromoPage-DqZE9SWj-Bp0vqbWD.js","assets/TreasuryOverviewPage-DqlUffnH-Bn5k5ejI.js","assets/TreasuryStatementsPage-Cyj4xmLP-DxZc3Yqs.js","assets/TreasuryTaxLetterPage-04gxKt0a-DDLLJmzC.js","assets/WarningsDrawerPage-DOFirhc3-Ch_HhDH0.js","assets/ScreenRoutes-D_sWKkhc.js","assets/analyticsHelper-C-V4F33Q.js","assets/SignInScreen-C-VG_lKe.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{a as b,S as C,R as Lye,b as Mc,p as l1,g as lw,e as Dye,s as Dz,d as Mz,r as Ts,w as Mye,f as Pye,i as Iye,j as jye,k as Rye,l as Oye,m as Fye}from"./sentry-D4D7HRQR.js";import{j as Wt,_ as ER,a as tl,u as hce,T as Nye,C as zye,b as Bye,c as q7,d as Z7,e as Hye,f as mce,g as Vye,h as Uye,L as Wye,i as Pz,k as Yye,l as Gye,P as qye,m as Zye,n as Kye,o as fce,p as Qye,q as Xye,I as Iz,r as Jye,s as eve,t as tve,v as rve,w as nve,x as ove,y as gce,z as ive,A as ave,B as sve}from"./liveblocks-BmXYR5uO.js";import{f as yce,Y as Ph,r as rl,b as lve,u as cw,g as C1,h as cve,i as _R,j as dve,R as uve,k as G$,N as pve,l as hve,m as mve,B as fve}from"./core-D7_k1EhP.js";import{B as rv,ba as bt,bb as gve,bc as jz,bd as z0,be as yve,bf as TR,bg as pg,bh as Rt,bi as vce,bj as bce,bk as AR,bl as po,bm as Rz,bn as c1,bo as vve,bp as h7,bq as bve,br as wve,bs as xve,bt as Oz,bu as Cve,bv as $ve,bw as Sve,bx as kve,by as Eve,bz as _ve,bA as Tve,bB as Ave,bC as LR,bD as Lve,bE as wP,bF as Dve,bG as wce,bH as m0,bI as jl,bJ as xce,bK as nv,bL as pr,bM as Mve,bN as Ih,bO as xP,bP as Nl,bQ as Pve,bR as Ive,bS as jve,bT as Rve,bU as Ove,bV as Fve,bW as Nve,bX as zve,bY as Bve,bZ as Cce,b_ as dw,b$ as Hve,c0 as Vve,c1 as $ce,c2 as Uve,c3 as Wve,c4 as Sce,c5 as Yve,c6 as Fz,c7 as Gve,c8 as qve,c9 as kce,ca as Ece,cb as Zve,cc as _ce,cd as hg,ce as uw,cf as Tce,cg as CP,ch as Kve,ci as Qve,cj as Xve,ck as ov,cl as Jve,cm as Ace,cn as Lce,co as Dce,cp as Mce,cq as Pce,cr as ebe,cs as tbe,ct as rbe,cu as Ice,cv as $P,cw as nbe,cx as jce,cy as obe,cz as ibe,cA as abe,cB as sbe,cC as lbe,cD as cbe,cE as dbe,cF as ube,cG as pbe,cH as hbe,v as mbe,cI as pw,cJ as Rce,cK as Oce,cL as fbe,cM as gbe,cN as ybe,cO as vbe,cP as bbe,cQ as wbe,cR as xbe,cS as Cbe,cT as $be,cU as Nz,cV as Sbe,cW as kbe,cX as Ebe,cY as _be}from"./zeni-epic-state-I555vKHy.js";import{T as Fce,j as gr,n as m,c as at,k as tn,C as Nce,G as DR,u as Tbe}from"./mui-Fyk6sRCR.js";import{L as zz}from"./lottie--pGIoexZ.js";import{r as Abe,m as gh}from"./analytics-CO_4s2X8.js";import{E as vn,c as mg,P as Lbe}from"./recharts-j_eh1fXg.js";import{r as bi}from"./lexical-CGMN4tXG.js";import{r as Dbe}from"./utils-BTQ24URD.js";(function(){try{var e=typeof window<"u"?window:typeof Mc<"u"?Mc:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="b4f7d23d-214e-4c1c-8b22-e755594d4048",e._sentryDebugIdIdentifier="sentry-dbid-b4f7d23d-214e-4c1c-8b22-e755594d4048")}catch{}})();(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0});function r(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(o){if(o.ep)return;o.ep=!0;const i=r(o);fetch(o.href,i)}})();var Z6={},Bz;function Mbe(){if(Bz)return Z6;Bz=1;var e=yce();return Z6.createRoot=e.createRoot,Z6.hydrateRoot=e.hydrateRoot,Z6}var Pbe=Mbe();function k0(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function or(){return or=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},or.apply(null,arguments)}function bs(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function iv(e,t){return iv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},iv(e,t)}function fg(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,iv(e,t)}var ws=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof Mc<"u"?Mc:typeof self<"u"?self:{};function $r(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Hz={exports:{}},Hn={};/** @license React v16.13.1
|
|
3
3
|
* react-is.production.min.js
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -286,7 +286,7 @@ and limitations under the License.
|
|
|
286
286
|
see this guide: https://github.com/louisbrunner/dnd-multi-backend/tree/master/packages/react-dnd-multi-backend#migrating-from-5xx`);if(_r(this,zs)[l])throw new Error(`You must specify a unique 'id' property in your Backend entry:
|
|
287
287
|
${JSON.stringify(i)} (conflicts with: ${JSON.stringify(_r(this,zs)[l])})`);return{id:l,instance:a,preview:i.preview??!1,transition:i.transition,skipDispatchOnTransition:i.skipDispatchOnTransition??!1}}),this.setup=()=>{if(!(typeof window>"u")){if(Iy.isSetUp)throw new Error("Cannot have two MultiBackends at the same time.");Iy.isSetUp=!0,_r(this,XI).call(this,window),_r(this,zs)[_r(this,Ns)].instance.setup()}},this.teardown=()=>{typeof window>"u"||(Iy.isSetUp=!1,_r(this,JI).call(this,window),_r(this,zs)[_r(this,Ns)].instance.teardown())},this.connectDragSource=(n,o,i)=>_r(this,j5).call(this,"connectDragSource",n,o,i),this.connectDragPreview=(n,o,i)=>_r(this,j5).call(this,"connectDragPreview",n,o,i),this.connectDropTarget=(n,o,i)=>_r(this,j5).call(this,"connectDropTarget",n,o,i),this.profile=()=>_r(this,zs)[_r(this,Ns)].instance.profile(),this.previewEnabled=()=>_r(this,zs)[_r(this,Ns)].preview,this.previewsList=()=>_r(this,I5),this.backendsList=()=>_r(this,Eu),Cl(this,XI,n=>{_r(this,Eu).forEach(o=>{o.transition&&n.addEventListener(o.transition.event,_r(this,My))})}),Cl(this,JI,n=>{_r(this,Eu).forEach(o=>{o.transition&&n.removeEventListener(o.transition.event,_r(this,My))})}),Cl(this,My,n=>{let o=_r(this,Ns);if(_r(this,Eu).some(i=>i.id!==_r(this,Ns)&&i.transition&&i.transition.check(n)?(wh(this,Ns,i.id),!0):!1),_r(this,Ns)!==o){_r(this,zs)[o].instance.teardown(),Object.keys(_r(this,H2)).forEach(d=>{let u=_r(this,H2)[d];u.unsubscribe(),u.unsubscribe=_r(this,Py).call(this,u.func,...u.args)}),_r(this,I5).backendChanged(this);let i=_r(this,zs)[_r(this,Ns)];if(i.instance.setup(),i.skipDispatchOnTransition)return;let a=n.constructor,l=new a(n.type,n);n.target?.dispatchEvent(l)}}),Cl(this,Py,(n,o,i,a)=>_r(this,zs)[_r(this,Ns)].instance[n](o,i,a)),Cl(this,j5,(n,o,i,a)=>{let l=`${n}_${o}`,d=_r(this,Py).call(this,n,o,i,a);return _r(this,H2)[l]={func:n,args:[o,i,a],unsubscribe:d},()=>{_r(this,H2)[l].unsubscribe(),delete _r(this,H2)[l]}}),!r||!r.backends||r.backends.length<1)throw new Error(`You must specify at least one Backend, if you are coming from 2.x.x (or don't understand this error)
|
|
288
288
|
see this guide: https://github.com/louisbrunner/dnd-multi-backend/tree/master/packages/react-dnd-multi-backend#migrating-from-2xx`);wh(this,I5,new a1t),wh(this,zs,{}),wh(this,Eu,[]),r.backends.forEach(n=>{let o=_r(this,QI).call(this,e,t,n);_r(this,zs)[o.id]=o,_r(this,Eu).push(o)}),wh(this,Ns,_r(this,Eu)[0].id),wh(this,H2,{})}},Dge=Iy;Ns=new WeakMap,I5=new WeakMap,zs=new WeakMap,Eu=new WeakMap,H2=new WeakMap,QI=new WeakMap,XI=new WeakMap,JI=new WeakMap,My=new WeakMap,Py=new WeakMap,j5=new WeakMap,Dge.isSetUp=!1;var s1t=(e,t,r)=>new Dge(e,t,r),Mge=(e,t)=>({event:e,check:t}),l1t=Mge("touchstart",e=>{let t=e;return t.touches!==null&&t.touches!==void 0}),c1t=Mge("mousedown",e=>e.type.indexOf("touch")===-1&&e.type.indexOf("mouse")!==-1);const FF=b.createContext({dragDropManager:void 0});function zr(e,t,...r){if(d1t()&&t===void 0)throw new Error("invariant requires an error message argument");if(!e){let n;if(t===void 0)n=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{let o=0;n=new Error(t.replace(/%s/g,function(){return r[o++]})),n.name="Invariant Violation"}throw n.framesToPop=1,n}}function d1t(){return typeof l1<"u"&&!0}function u1t(e,t,r){return t.split(".").reduce((n,o)=>n&&n[o]?n[o]:r||null,e)}function p1t(e,t){return e.filter(r=>r!==t)}function Pge(e){return typeof e=="object"}function h1t(e,t){const r=new Map,n=i=>{r.set(i,r.has(i)?r.get(i)+1:1)};e.forEach(n),t.forEach(n);const o=[];return r.forEach((i,a)=>{i===1&&o.push(a)}),o}function m1t(e,t){return e.filter(r=>t.indexOf(r)>-1)}const NF="dnd-core/INIT_COORDS",yx="dnd-core/BEGIN_DRAG",zF="dnd-core/PUBLISH_DRAG_SOURCE",vx="dnd-core/HOVER",bx="dnd-core/DROP",wx="dnd-core/END_DRAG";function RX(e,t){return{type:NF,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}const f1t={type:NF,payload:{clientOffset:null,sourceClientOffset:null}};function g1t(e){return function(r=[],n={publishSource:!0}){const{publishSource:o=!0,clientOffset:i,getSourceClientOffset:a}=n,l=e.getMonitor(),d=e.getRegistry();e.dispatch(RX(i)),y1t(r,l,d);const u=w1t(r,l);if(u==null){e.dispatch(f1t);return}let p=null;if(i){if(!a)throw new Error("getSourceClientOffset must be defined");v1t(a),p=a(u)}e.dispatch(RX(i,p));const f=d.getSource(u).beginDrag(l,u);if(f==null)return;b1t(f),d.pinSource(u);const g=d.getSourceType(u);return{type:yx,payload:{itemType:g,item:f,sourceId:u,clientOffset:i||null,sourceClientOffset:p||null,isSourcePublic:!!o}}}}function y1t(e,t,r){zr(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach(function(n){zr(r.getSource(n),"Expected sourceIds to be registered.")})}function v1t(e){zr(typeof e=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function b1t(e){zr(Pge(e),"Item must be an object.")}function w1t(e,t){let r=null;for(let n=e.length-1;n>=0;n--)if(t.canDragSource(e[n])){r=e[n];break}return r}function x1t(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function C1t(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(o){return Object.getOwnPropertyDescriptor(r,o).enumerable}))),n.forEach(function(o){x1t(e,o,r[o])})}return e}function $1t(e){return function(r={}){const n=e.getMonitor(),o=e.getRegistry();S1t(n),_1t(n).forEach((a,l)=>{const d=k1t(a,l,o,n),u={type:bx,payload:{dropResult:C1t({},r,d)}};e.dispatch(u)})}}function S1t(e){zr(e.isDragging(),"Cannot call drop while not dragging."),zr(!e.didDrop(),"Cannot call drop twice during one drag operation.")}function k1t(e,t,r,n){const o=r.getTarget(e);let i=o?o.drop(n,e):void 0;return E1t(i),typeof i>"u"&&(i=t===0?{}:n.getDropResult()),i}function E1t(e){zr(typeof e>"u"||Pge(e),"Drop result must either be an object or undefined.")}function _1t(e){const t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}function T1t(e){return function(){const r=e.getMonitor(),n=e.getRegistry();A1t(r);const o=r.getSourceId();return o!=null&&(n.getSource(o,!0).endDrag(r,o),n.unpinSource()),{type:wx}}}function A1t(e){zr(e.isDragging(),"Cannot call endDrag while not dragging.")}function ej(e,t){return t===null?e===null:Array.isArray(e)?e.some(r=>r===t):e===t}function L1t(e){return function(r,{clientOffset:n}={}){D1t(r);const o=r.slice(0),i=e.getMonitor(),a=e.getRegistry(),l=i.getItemType();return P1t(o,a,l),M1t(o,i,a),I1t(o,i,a),{type:vx,payload:{targetIds:o,clientOffset:n||null}}}}function D1t(e){zr(Array.isArray(e),"Expected targetIds to be an array.")}function M1t(e,t,r){zr(t.isDragging(),"Cannot call hover while not dragging."),zr(!t.didDrop(),"Cannot call hover after drop.");for(let n=0;n<e.length;n++){const o=e[n];zr(e.lastIndexOf(o)===n,"Expected targetIds to be unique in the passed array.");const i=r.getTarget(o);zr(i,"Expected targetIds to be registered.")}}function P1t(e,t,r){for(let n=e.length-1;n>=0;n--){const o=e[n],i=t.getTargetType(o);ej(i,r)||e.splice(n,1)}}function I1t(e,t,r){e.forEach(function(n){r.getTarget(n).hover(t,n)})}function j1t(e){return function(){if(e.getMonitor().isDragging())return{type:zF}}}function R1t(e){return{beginDrag:g1t(e),publishDragSource:j1t(e),hover:L1t(e),drop:$1t(e),endDrag:T1t(e)}}class O1t{receiveBackend(t){this.backend=t}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){const t=this,{dispatch:r}=this.store;function n(i){return(...a)=>{const l=i.apply(t,a);typeof l<"u"&&r(l)}}const o=R1t(this);return Object.keys(o).reduce((i,a)=>{const l=o[a];return i[a]=n(l),i},{})}dispatch(t){this.store.dispatch(t)}constructor(t,r){this.isSetUp=!1,this.handleRefCountChange=()=>{const n=this.store.getState().refCount>0;this.backend&&(n&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!n&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=t,this.monitor=r,t.subscribe(this.handleRefCountChange)}}function F1t(e,t){return{x:e.x+t.x,y:e.y+t.y}}function Ige(e,t){return{x:e.x-t.x,y:e.y-t.y}}function N1t(e){const{clientOffset:t,initialClientOffset:r,initialSourceClientOffset:n}=e;return!t||!r||!n?null:Ige(F1t(t,n),r)}function z1t(e){const{clientOffset:t,initialClientOffset:r}=e;return!t||!r?null:Ige(t,r)}const e7=[],BF=[];e7.__IS_NONE__=!0;BF.__IS_ALL__=!0;function B1t(e,t){return e===e7?!1:e===BF||typeof t>"u"?!0:m1t(t,e).length>0}class H1t{subscribeToStateChange(t,r={}){const{handlerIds:n}=r;zr(typeof t=="function","listener must be a function."),zr(typeof n>"u"||Array.isArray(n),"handlerIds, when specified, must be an array of strings.");let o=this.store.getState().stateId;const i=()=>{const a=this.store.getState(),l=a.stateId;try{l===o||l===o+1&&!B1t(a.dirtyHandlerIds,n)||t()}finally{o=l}};return this.store.subscribe(i)}subscribeToOffsetChange(t){zr(typeof t=="function","listener must be a function.");let r=this.store.getState().dragOffset;const n=()=>{const o=this.store.getState().dragOffset;o!==r&&(r=o,t())};return this.store.subscribe(n)}canDragSource(t){if(!t)return!1;const r=this.registry.getSource(t);return zr(r,`Expected to find a valid source. sourceId=${t}`),this.isDragging()?!1:r.canDrag(this,t)}canDropOnTarget(t){if(!t)return!1;const r=this.registry.getTarget(t);if(zr(r,`Expected to find a valid target. targetId=${t}`),!this.isDragging()||this.didDrop())return!1;const n=this.registry.getTargetType(t),o=this.getItemType();return ej(n,o)&&r.canDrop(this,t)}isDragging(){return!!this.getItemType()}isDraggingSource(t){if(!t)return!1;const r=this.registry.getSource(t,!0);if(zr(r,`Expected to find a valid source. sourceId=${t}`),!this.isDragging()||!this.isSourcePublic())return!1;const n=this.registry.getSourceType(t),o=this.getItemType();return n!==o?!1:r.isDragging(this,t)}isOverTarget(t,r={shallow:!1}){if(!t)return!1;const{shallow:n}=r;if(!this.isDragging())return!1;const o=this.registry.getTargetType(t),i=this.getItemType();if(i&&!ej(o,i))return!1;const a=this.getTargetIds();if(!a.length)return!1;const l=a.indexOf(t);return n?l===a.length-1:l>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return!!this.store.getState().dragOperation.isSourcePublic}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return N1t(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return z1t(this.store.getState().dragOffset)}constructor(t,r){this.store=t,this.registry=r}}const OX=typeof Mc<"u"?Mc:self,jge=OX.MutationObserver||OX.WebKitMutationObserver;function Rge(e){return function(){const r=setTimeout(o,0),n=setInterval(o,50);function o(){clearTimeout(r),clearInterval(n),e()}}}function V1t(e){let t=1;const r=new jge(e),n=document.createTextNode("");return r.observe(n,{characterData:!0}),function(){t=-t,n.data=t}}const U1t=typeof jge=="function"?V1t:Rge;class W1t{enqueueTask(t){const{queue:r,requestFlush:n}=this;r.length||(n(),this.flushing=!0),r[r.length]=t}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:t}=this;for(;this.index<t.length;){const r=this.index;if(this.index++,t[r].call(),this.index>this.capacity){for(let n=0,o=t.length-this.index;n<o;n++)t[n]=t[n+this.index];t.length-=this.index,this.index=0}}t.length=0,this.index=0,this.flushing=!1},this.registerPendingError=t=>{this.pendingErrors.push(t),this.requestErrorThrow()},this.requestFlush=U1t(this.flush),this.requestErrorThrow=Rge(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}}class Y1t{call(){try{this.task&&this.task()}catch(t){this.onError(t)}finally{this.task=null,this.release(this)}}constructor(t,r){this.onError=t,this.release=r,this.task=null}}class G1t{create(t){const r=this.freeTasks,n=r.length?r.pop():new Y1t(this.onError,o=>r[r.length]=o);return n.task=t,n}constructor(t){this.onError=t,this.freeTasks=[]}}const Oge=new W1t,q1t=new G1t(Oge.registerPendingError);function Z1t(e){Oge.enqueueTask(q1t.create(e))}const HF="dnd-core/ADD_SOURCE",VF="dnd-core/ADD_TARGET",UF="dnd-core/REMOVE_SOURCE",xx="dnd-core/REMOVE_TARGET";function K1t(e){return{type:HF,payload:{sourceId:e}}}function Q1t(e){return{type:VF,payload:{targetId:e}}}function X1t(e){return{type:UF,payload:{sourceId:e}}}function J1t(e){return{type:xx,payload:{targetId:e}}}function eut(e){zr(typeof e.canDrag=="function","Expected canDrag to be a function."),zr(typeof e.beginDrag=="function","Expected beginDrag to be a function."),zr(typeof e.endDrag=="function","Expected endDrag to be a function.")}function tut(e){zr(typeof e.canDrop=="function","Expected canDrop to be a function."),zr(typeof e.hover=="function","Expected hover to be a function."),zr(typeof e.drop=="function","Expected beginDrag to be a function.")}function tj(e,t){if(t&&Array.isArray(e)){e.forEach(r=>tj(r,!1));return}zr(typeof e=="string"||typeof e=="symbol",t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}var Ll;(function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"})(Ll||(Ll={}));let rut=0;function nut(){return rut++}function out(e){const t=nut().toString();switch(e){case Ll.SOURCE:return`S${t}`;case Ll.TARGET:return`T${t}`;default:throw new Error(`Unknown Handler Role: ${e}`)}}function FX(e){switch(e[0]){case"S":return Ll.SOURCE;case"T":return Ll.TARGET;default:throw new Error(`Cannot parse handler ID: ${e}`)}}function NX(e,t){const r=e.entries();let n=!1;do{const{done:o,value:[,i]}=r.next();if(i===t)return!0;n=!!o}while(!n);return!1}class iut{addSource(t,r){tj(t),eut(r);const n=this.addHandler(Ll.SOURCE,t,r);return this.store.dispatch(K1t(n)),n}addTarget(t,r){tj(t,!0),tut(r);const n=this.addHandler(Ll.TARGET,t,r);return this.store.dispatch(Q1t(n)),n}containsHandler(t){return NX(this.dragSources,t)||NX(this.dropTargets,t)}getSource(t,r=!1){return zr(this.isSourceId(t),"Expected a valid source ID."),r&&t===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(t)}getTarget(t){return zr(this.isTargetId(t),"Expected a valid target ID."),this.dropTargets.get(t)}getSourceType(t){return zr(this.isSourceId(t),"Expected a valid source ID."),this.types.get(t)}getTargetType(t){return zr(this.isTargetId(t),"Expected a valid target ID."),this.types.get(t)}isSourceId(t){return FX(t)===Ll.SOURCE}isTargetId(t){return FX(t)===Ll.TARGET}removeSource(t){zr(this.getSource(t),"Expected an existing source."),this.store.dispatch(X1t(t)),Z1t(()=>{this.dragSources.delete(t),this.types.delete(t)})}removeTarget(t){zr(this.getTarget(t),"Expected an existing target."),this.store.dispatch(J1t(t)),this.dropTargets.delete(t),this.types.delete(t)}pinSource(t){const r=this.getSource(t);zr(r,"Expected an existing source."),this.pinnedSourceId=t,this.pinnedSource=r}unpinSource(){zr(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(t,r,n){const o=out(t);return this.types.set(o,r),t===Ll.SOURCE?this.dragSources.set(o,n):t===Ll.TARGET&&this.dropTargets.set(o,n),o}constructor(t){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=t}}const aut=(e,t)=>e===t;function sut(e,t){return!e&&!t?!0:!e||!t?!1:e.x===t.x&&e.y===t.y}function lut(e,t,r=aut){if(e.length!==t.length)return!1;for(let n=0;n<e.length;++n)if(!r(e[n],t[n]))return!1;return!0}function cut(e=e7,t){switch(t.type){case vx:break;case HF:case VF:case xx:case UF:return e7;case yx:case zF:case wx:case bx:default:return BF}const{targetIds:r=[],prevTargetIds:n=[]}=t.payload,o=h1t(r,n);if(!(o.length>0||!lut(r,n)))return e7;const a=n[n.length-1],l=r[r.length-1];return a!==l&&(a&&o.push(a),l&&o.push(l)),o}function dut(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function uut(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(o){return Object.getOwnPropertyDescriptor(r,o).enumerable}))),n.forEach(function(o){dut(e,o,r[o])})}return e}const zX={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function put(e=zX,t){const{payload:r}=t;switch(t.type){case NF:case yx:return{initialSourceClientOffset:r.sourceClientOffset,initialClientOffset:r.clientOffset,clientOffset:r.clientOffset};case vx:return sut(e.clientOffset,r.clientOffset)?e:uut({},e,{clientOffset:r.clientOffset});case wx:case bx:return zX;default:return e}}function hut(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function D3(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(o){return Object.getOwnPropertyDescriptor(r,o).enumerable}))),n.forEach(function(o){hut(e,o,r[o])})}return e}const mut={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function fut(e=mut,t){const{payload:r}=t;switch(t.type){case yx:return D3({},e,{itemType:r.itemType,item:r.item,sourceId:r.sourceId,isSourcePublic:r.isSourcePublic,dropResult:null,didDrop:!1});case zF:return D3({},e,{isSourcePublic:!0});case vx:return D3({},e,{targetIds:r.targetIds});case xx:return e.targetIds.indexOf(r.targetId)===-1?e:D3({},e,{targetIds:p1t(e.targetIds,r.targetId)});case bx:return D3({},e,{dropResult:r.dropResult,didDrop:!0,targetIds:[]});case wx:return D3({},e,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}}function gut(e=0,t){switch(t.type){case HF:case VF:return e+1;case UF:case xx:return e-1;default:return e}}function yut(e=0){return e+1}function vut(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function but(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(o){return Object.getOwnPropertyDescriptor(r,o).enumerable}))),n.forEach(function(o){vut(e,o,r[o])})}return e}function wut(e={},t){return{dirtyHandlerIds:cut(e.dirtyHandlerIds,{type:t.type,payload:but({},t.payload,{prevTargetIds:u1t(e,"dragOperation.targetIds",[])})}),dragOffset:put(e.dragOffset,t),refCount:gut(e.refCount,t),dragOperation:fut(e.dragOperation,t),stateId:yut(e.stateId)}}function xut(e,t=void 0,r={},n=!1){const o=Cut(n),i=new H1t(o,new iut(o)),a=new O1t(o,i),l=e(a,t,r);return a.receiveBackend(l),a}function Cut(e){const t=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__;return lve(wut,e&&t&&t({name:"dnd-core",instanceId:"dnd-core"}))}function $ut(e,t){if(e==null)return{};var r=Sut(e,t),n,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Sut(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,i;for(i=0;i<n.length;i++)o=n[i],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}let BX=0;const jy=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");var kut=b.memo(function(t){var{children:r}=t,n=$ut(t,["children"]);const[o,i]=Eut(n);return b.useEffect(()=>{if(i){const a=Fge();return++BX,()=>{--BX===0&&(a[jy]=null)}}},[]),Wt.jsx(FF.Provider,{value:o,children:r})});function Eut(e){if("manager"in e)return[{dragDropManager:e.manager},!1];const t=_ut(e.backend,e.context,e.options,e.debugMode),r=!e.context;return[t,r]}function _ut(e,t=Fge(),r,n){const o=t;return o[jy]||(o[jy]={dragDropManager:xut(e,t,r,n)}),o[jy]}function Fge(){return typeof Mc<"u"?Mc:window}var tL,HX;function Tut(){return HX||(HX=1,tL=function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var n,o,i;if(Array.isArray(t)){if(n=t.length,n!=r.length)return!1;for(o=n;o--!==0;)if(!e(t[o],r[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(i=Object.keys(t),n=i.length,n!==Object.keys(r).length)return!1;for(o=n;o--!==0;)if(!Object.prototype.hasOwnProperty.call(r,i[o]))return!1;for(o=n;o--!==0;){var a=i[o];if(!e(t[a],r[a]))return!1}return!0}return t!==t&&r!==r}),tL}var Aut=Tut();const Lut=lw(Aut),sm=typeof window<"u"?b.useLayoutEffect:b.useEffect;function Nge(e,t,r){const[n,o]=b.useState(()=>t(e)),i=b.useCallback(()=>{const a=t(e);Lut(n,a)||(o(a),r&&r())},[n,e,r]);return sm(i),[n,i]}function Dut(e,t,r){const[n,o]=Nge(e,t,r);return sm(function(){const a=e.getHandlerId();if(a!=null)return e.subscribeToStateChange(o,{handlerIds:[a]})},[e,o]),n}function zge(e,t,r){return Dut(t,e||(()=>({})),()=>r.reconnect())}function Bge(e,t){const r=[];return typeof e!="function"&&r.push(e),b.useMemo(()=>typeof e=="function"?e():e,r)}function Mut(e){return b.useMemo(()=>e.hooks.dragSource(),[e])}function Put(e){return b.useMemo(()=>e.hooks.dragPreview(),[e])}let rL=!1,nL=!1;class Iut{receiveHandlerId(t){this.sourceId=t}getHandlerId(){return this.sourceId}canDrag(){zr(!rL,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return rL=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{rL=!1}}isDragging(){if(!this.sourceId)return!1;zr(!nL,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return nL=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{nL=!1}}subscribeToStateChange(t,r){return this.internalMonitor.subscribeToStateChange(t,r)}isDraggingSource(t){return this.internalMonitor.isDraggingSource(t)}isOverTarget(t,r){return this.internalMonitor.isOverTarget(t,r)}getTargetIds(){return this.internalMonitor.getTargetIds()}isSourcePublic(){return this.internalMonitor.isSourcePublic()}getSourceId(){return this.internalMonitor.getSourceId()}subscribeToOffsetChange(t){return this.internalMonitor.subscribeToOffsetChange(t)}canDragSource(t){return this.internalMonitor.canDragSource(t)}canDropOnTarget(t){return this.internalMonitor.canDropOnTarget(t)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(t){this.sourceId=null,this.internalMonitor=t.getMonitor()}}let oL=!1;class jut{receiveHandlerId(t){this.targetId=t}getHandlerId(){return this.targetId}subscribeToStateChange(t,r){return this.internalMonitor.subscribeToStateChange(t,r)}canDrop(){if(!this.targetId)return!1;zr(!oL,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return oL=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{oL=!1}}isOver(t){return this.targetId?this.internalMonitor.isOverTarget(this.targetId,t):!1}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(t){this.targetId=null,this.internalMonitor=t.getMonitor()}}function Rut(e,t,r){const n=r.getRegistry(),o=n.addTarget(e,t);return[o,()=>n.removeTarget(o)]}function Out(e,t,r){const n=r.getRegistry(),o=n.addSource(e,t);return[o,()=>n.removeSource(o)]}function rj(e,t,r,n){let o;if(o!==void 0)return!!o;if(e===t)return!0;if(typeof e!="object"||!e||typeof t!="object"||!t)return!1;const i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;const l=Object.prototype.hasOwnProperty.bind(t);for(let d=0;d<i.length;d++){const u=i[d];if(!l(u))return!1;const p=e[u],h=t[u];if(o=void 0,o===!1||o===void 0&&p!==h)return!1}return!0}function nj(e){return e!==null&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Fut(e){if(typeof e.type=="string")return;const t=e.type.displayName||e.type.name||"the component";throw new Error(`Only native element nodes can now be passed to React DnD connectors.You can either wrap ${t} into a <div>, or turn it into a drag source or a drop target itself.`)}function Nut(e){return(t=null,r=null)=>{if(!b.isValidElement(t)){const i=t;return e(i,r),i}const n=t;return Fut(n),zut(n,r?i=>e(i,r):e)}}function Hge(e){const t={};return Object.keys(e).forEach(r=>{const n=e[r];if(r.endsWith("Ref"))t[r]=e[r];else{const o=Nut(n);t[r]=()=>o}}),t}function VX(e,t){typeof e=="function"?e(t):e.current=t}function zut(e,t){const r=e.ref;return zr(typeof r!="string","Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),r?b.cloneElement(e,{ref:n=>{VX(r,n),VX(t,n)}}):b.cloneElement(e,{ref:t})}class But{receiveHandlerId(t){this.handlerId!==t&&(this.handlerId=t,this.reconnect())}get connectTarget(){return this.dragSource}get dragSourceOptions(){return this.dragSourceOptionsInternal}set dragSourceOptions(t){this.dragSourceOptionsInternal=t}get dragPreviewOptions(){return this.dragPreviewOptionsInternal}set dragPreviewOptions(t){this.dragPreviewOptionsInternal=t}reconnect(){const t=this.reconnectDragSource();this.reconnectDragPreview(t)}reconnectDragSource(){const t=this.dragSource,r=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return r&&this.disconnectDragSource(),this.handlerId?t?(r&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=t,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,t,this.dragSourceOptions)),r):(this.lastConnectedDragSource=t,r):r}reconnectDragPreview(t=!1){const r=this.dragPreview,n=t||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();if(n&&this.disconnectDragPreview(),!!this.handlerId){if(!r){this.lastConnectedDragPreview=r;return}n&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=r,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,r,this.dragPreviewOptions))}}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didConnectedDragSourceChange(){return this.lastConnectedDragSource!==this.dragSource}didConnectedDragPreviewChange(){return this.lastConnectedDragPreview!==this.dragPreview}didDragSourceOptionsChange(){return!rj(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!rj(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}disconnectDragSource(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}disconnectDragPreview(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}get dragSource(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}get dragPreview(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}clearDragSource(){this.dragSourceNode=null,this.dragSourceRef=null}clearDragPreview(){this.dragPreviewNode=null,this.dragPreviewRef=null}constructor(t){this.hooks=Hge({dragSource:(r,n)=>{this.clearDragSource(),this.dragSourceOptions=n||null,nj(r)?this.dragSourceRef=r:this.dragSourceNode=r,this.reconnectDragSource()},dragPreview:(r,n)=>{this.clearDragPreview(),this.dragPreviewOptions=n||null,nj(r)?this.dragPreviewRef=r:this.dragPreviewNode=r,this.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=t}}class Hut{get connectTarget(){return this.dropTarget}reconnect(){const t=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();t&&this.disconnectDropTarget();const r=this.dropTarget;if(this.handlerId){if(!r){this.lastConnectedDropTarget=r;return}t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=r,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,r,this.dropTargetOptions))}}receiveHandlerId(t){t!==this.handlerId&&(this.handlerId=t,this.reconnect())}get dropTargetOptions(){return this.dropTargetOptionsInternal}set dropTargetOptions(t){this.dropTargetOptionsInternal=t}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didDropTargetChange(){return this.lastConnectedDropTarget!==this.dropTarget}didOptionsChange(){return!rj(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}disconnectDropTarget(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}get dropTarget(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}clearDropTarget(){this.dropTargetRef=null,this.dropTargetNode=null}constructor(t){this.hooks=Hge({dropTarget:(r,n)=>{this.clearDropTarget(),this.dropTargetOptions=n,nj(r)?this.dropTargetRef=r:this.dropTargetNode=r,this.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=t}}function _m(){const{dragDropManager:e}=b.useContext(FF);return zr(e!=null,"Expected drag drop context"),e}function Vut(e,t){const r=_m(),n=b.useMemo(()=>new But(r.getBackend()),[r]);return sm(()=>(n.dragSourceOptions=e||null,n.reconnect(),()=>n.disconnectDragSource()),[n,e]),sm(()=>(n.dragPreviewOptions=t||null,n.reconnect(),()=>n.disconnectDragPreview()),[n,t]),n}function Uut(){const e=_m();return b.useMemo(()=>new Iut(e),[e])}class Wut{beginDrag(){const t=this.spec,r=this.monitor;let n=null;return typeof t.item=="object"?n=t.item:typeof t.item=="function"?n=t.item(r):n={},n??null}canDrag(){const t=this.spec,r=this.monitor;return typeof t.canDrag=="boolean"?t.canDrag:typeof t.canDrag=="function"?t.canDrag(r):!0}isDragging(t,r){const n=this.spec,o=this.monitor,{isDragging:i}=n;return i?i(o):r===t.getSourceId()}endDrag(){const t=this.spec,r=this.monitor,n=this.connector,{end:o}=t;o&&o(r.getItem(),r),n.reconnect()}constructor(t,r,n){this.spec=t,this.monitor=r,this.connector=n}}function Yut(e,t,r){const n=b.useMemo(()=>new Wut(e,t,r),[t,r]);return b.useEffect(()=>{n.spec=e},[e]),n}function Gut(e){return b.useMemo(()=>{const t=e.type;return zr(t!=null,"spec.type must be defined"),t},[e])}function qut(e,t,r){const n=_m(),o=Yut(e,t,r),i=Gut(e);sm(function(){if(i!=null){const[l,d]=Out(i,o,n);return t.receiveHandlerId(l),r.receiveHandlerId(l),d}},[n,t,r,o,i])}function Zut(e,t){const r=Bge(e);zr(!r.begin,"useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");const n=Uut(),o=Vut(r.options,r.previewOptions);return qut(r,n,o),[zge(r.collect,n,o),Mut(o),Put(o)]}function Kut(e){const r=_m().getMonitor(),[n,o]=Nge(r,e);return b.useEffect(()=>r.subscribeToOffsetChange(o)),b.useEffect(()=>r.subscribeToStateChange(o)),n}function Qut(e){return b.useMemo(()=>e.hooks.dropTarget(),[e])}function Xut(e){const t=_m(),r=b.useMemo(()=>new Hut(t.getBackend()),[t]);return sm(()=>(r.dropTargetOptions=e||null,r.reconnect(),()=>r.disconnectDropTarget()),[e]),r}function Jut(){const e=_m();return b.useMemo(()=>new jut(e),[e])}function e2t(e){const{accept:t}=e;return b.useMemo(()=>(zr(e.accept!=null,"accept must be defined"),Array.isArray(t)?t:[t]),[t])}class t2t{canDrop(){const t=this.spec,r=this.monitor;return t.canDrop?t.canDrop(r.getItem(),r):!0}hover(){const t=this.spec,r=this.monitor;t.hover&&t.hover(r.getItem(),r)}drop(){const t=this.spec,r=this.monitor;if(t.drop)return t.drop(r.getItem(),r)}constructor(t,r){this.spec=t,this.monitor=r}}function r2t(e,t){const r=b.useMemo(()=>new t2t(e,t),[t]);return b.useEffect(()=>{r.spec=e},[e]),r}function n2t(e,t,r){const n=_m(),o=r2t(e,t),i=e2t(e);sm(function(){const[l,d]=Rut(i,o,n);return t.receiveHandlerId(l),r.receiveHandlerId(l),d},[n,t,o,r,i.map(a=>a.toString()).join("|")])}function o2t(e,t){const r=Bge(e),n=Jut(),o=Xut(r.options);return n2t(r,n,o),[zge(r.collect,n,o),Qut(o)]}var oj=(e,t)=>({x:e.x-t.x,y:e.y-t.y}),i2t=e=>{let t=e.getInitialClientOffset(),r=e.getInitialSourceClientOffset();return t===null||r===null?{x:0,y:0}:oj(t,r)},a2t=(e,t)=>{let r=e.getClientOffset();if(r===null)return null;if(!t.current||!t.current.getBoundingClientRect)return oj(r,i2t(e));let n=t.current.getBoundingClientRect(),o={x:n.width/2,y:n.height/2};return oj(r,o)},s2t=e=>{let t=`translate(${e.x.toFixed(1)}px, ${e.y.toFixed(1)}px)`;return{pointerEvents:"none",position:"fixed",top:0,left:0,transform:t,WebkitTransform:t}},l2t=()=>{let e=b.useRef(null),t=Kut(r=>({currentOffset:a2t(r,e),isDragging:r.isDragging(),itemType:r.getItemType(),item:r.getItem(),monitor:r}));return!t.isDragging||t.currentOffset===null?{display:!1}:{display:!0,itemType:t.itemType,item:t.item,style:s2t(t.currentOffset),monitor:t.monitor,ref:e}};b.createContext(void 0);var c2t=b.createContext(null),d2t=({portal:e,...t})=>{let[r,n]=b.useState(null);return C.createElement(c2t.Provider,{value:e??r},C.createElement(kut,{backend:s1t,...t}),e?null:C.createElement("div",{ref:n}))},u2t=()=>{let[e,t]=b.useState(!1),r=b.useContext(FF);return b.useEffect(()=>{let n=r?.dragDropManager?.getBackend(),o={backendChanged:i=>{t(i.previewEnabled())}};return t(n.previewEnabled()),n.previewsList().register(o),()=>{n.previewsList().unregister(o)}},[r,r.dragDropManager]),e},p2t=()=>{let e=u2t(),t=l2t();return e?t:{display:!1}},b0;(function(e){e.mouse="mouse",e.touch="touch",e.keyboard="keyboard"})(b0||(b0={}));class h2t{get delay(){var t;return(t=this.args.delay)!==null&&t!==void 0?t:0}get scrollAngleRanges(){return this.args.scrollAngleRanges}get getDropTargetElementsAtPoint(){return this.args.getDropTargetElementsAtPoint}get ignoreContextMenu(){var t;return(t=this.args.ignoreContextMenu)!==null&&t!==void 0?t:!1}get enableHoverOutsideTarget(){var t;return(t=this.args.enableHoverOutsideTarget)!==null&&t!==void 0?t:!1}get enableKeyboardEvents(){var t;return(t=this.args.enableKeyboardEvents)!==null&&t!==void 0?t:!1}get enableMouseEvents(){var t;return(t=this.args.enableMouseEvents)!==null&&t!==void 0?t:!1}get enableTouchEvents(){var t;return(t=this.args.enableTouchEvents)!==null&&t!==void 0?t:!0}get touchSlop(){return this.args.touchSlop||0}get delayTouchStart(){var t,r,n,o;return(o=(n=(t=this.args)===null||t===void 0?void 0:t.delayTouchStart)!==null&&n!==void 0?n:(r=this.args)===null||r===void 0?void 0:r.delay)!==null&&o!==void 0?o:0}get delayMouseStart(){var t,r,n,o;return(o=(n=(t=this.args)===null||t===void 0?void 0:t.delayMouseStart)!==null&&n!==void 0?n:(r=this.args)===null||r===void 0?void 0:r.delay)!==null&&o!==void 0?o:0}get window(){if(this.context&&this.context.window)return this.context.window;if(typeof window<"u")return window}get document(){var t;if(!((t=this.context)===null||t===void 0)&&t.document)return this.context.document;if(this.window)return this.window.document}get rootElement(){var t;return((t=this.args)===null||t===void 0?void 0:t.rootElement)||this.document}constructor(t,r){this.args=t,this.context=r}}function m2t(e,t,r,n){return Math.sqrt(Math.pow(Math.abs(r-e),2)+Math.pow(Math.abs(n-t),2))}function f2t(e,t,r,n,o){if(!o)return!1;const i=Math.atan2(n-t,r-e)*180/Math.PI+180;for(let a=0;a<o.length;++a){const l=o[a];if(l&&(l.start==null||i>=l.start)&&(l.end==null||i<=l.end))return!0}return!1}const g2t={Left:1},y2t={Left:0};function iL(e){return e.button===void 0||e.button===y2t.Left}function v2t(e){return e.buttons===void 0||(e.buttons&g2t.Left)===0}function Vge(e){return!!e.targetTouches}const b2t=1;function w2t(e){const t=e.nodeType===b2t?e:e.parentElement;if(!t)return;const{top:r,left:n}=t.getBoundingClientRect();return{x:n,y:r}}function x2t(e,t){if(e.targetTouches.length===1)return ib(e.targetTouches[0]);if(t&&e.touches.length===1&&e.touches[0].target===t.target)return ib(e.touches[0])}function ib(e,t){return Vge(e)?x2t(e,t):{x:e.clientX,y:e.clientY}}const UX=(()=>{let e=!1;try{addEventListener("test",()=>{},Object.defineProperty({},"passive",{get(){return e=!0,!0}}))}catch{}return e})(),V4={[b0.mouse]:{start:"mousedown",move:"mousemove",end:"mouseup",contextmenu:"contextmenu"},[b0.touch]:{start:"touchstart",move:"touchmove",end:"touchend"},[b0.keyboard]:{keydown:"keydown"}};class t7{profile(){var t;return{sourceNodes:this.sourceNodes.size,sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,targetNodes:this.targetNodes.size,dragOverTargetIds:((t=this.dragOverTargetIds)===null||t===void 0?void 0:t.length)||0}}get document(){return this.options.document}setup(){const t=this.options.rootElement;t&&(zr(!t7.isSetUp,"Cannot have two Touch backends at the same time."),t7.isSetUp=!0,this.addEventListener(t,"start",this.getTopMoveStartHandler()),this.addEventListener(t,"start",this.handleTopMoveStartCapture,!0),this.addEventListener(t,"move",this.handleTopMove),this.addEventListener(t,"move",this.handleTopMoveCapture,!0),this.addEventListener(t,"end",this.handleTopMoveEndCapture,!0),this.options.enableMouseEvents&&!this.options.ignoreContextMenu&&this.addEventListener(t,"contextmenu",this.handleTopMoveEndCapture),this.options.enableKeyboardEvents&&this.addEventListener(t,"keydown",this.handleCancelOnEscape,!0))}teardown(){const t=this.options.rootElement;t&&(t7.isSetUp=!1,this._mouseClientOffset={},this.removeEventListener(t,"start",this.handleTopMoveStartCapture,!0),this.removeEventListener(t,"start",this.handleTopMoveStart),this.removeEventListener(t,"move",this.handleTopMoveCapture,!0),this.removeEventListener(t,"move",this.handleTopMove),this.removeEventListener(t,"end",this.handleTopMoveEndCapture,!0),this.options.enableMouseEvents&&!this.options.ignoreContextMenu&&this.removeEventListener(t,"contextmenu",this.handleTopMoveEndCapture),this.options.enableKeyboardEvents&&this.removeEventListener(t,"keydown",this.handleCancelOnEscape,!0),this.uninstallSourceNodeRemovalObserver())}addEventListener(t,r,n,o=!1){const i=UX?{capture:o,passive:!1}:o;this.listenerTypes.forEach(function(a){const l=V4[a][r];l&&t.addEventListener(l,n,i)})}removeEventListener(t,r,n,o=!1){const i=UX?{capture:o,passive:!1}:o;this.listenerTypes.forEach(function(a){const l=V4[a][r];l&&t.removeEventListener(l,n,i)})}connectDragSource(t,r){const n=this.handleMoveStart.bind(this,t);return this.sourceNodes.set(t,r),this.addEventListener(r,"start",n),()=>{this.sourceNodes.delete(t),this.removeEventListener(r,"start",n)}}connectDragPreview(t,r,n){return this.sourcePreviewNodeOptions.set(t,n),this.sourcePreviewNodes.set(t,r),()=>{this.sourcePreviewNodes.delete(t),this.sourcePreviewNodeOptions.delete(t)}}connectDropTarget(t,r){const n=this.options.rootElement;if(!this.document||!n)return()=>{};const o=i=>{if(!this.document||!n||!this.monitor.isDragging())return;let a;switch(i.type){case V4.mouse.move:a={x:i.clientX,y:i.clientY};break;case V4.touch.move:var l,d;a={x:((l=i.touches[0])===null||l===void 0?void 0:l.clientX)||0,y:((d=i.touches[0])===null||d===void 0?void 0:d.clientY)||0};break}const u=a!=null?this.document.elementFromPoint(a.x,a.y):void 0,p=u&&r.contains(u);if(u===r||p)return this.handleMove(i,t)};return this.addEventListener(this.document.body,"move",o),this.targetNodes.set(t,r),()=>{this.document&&(this.targetNodes.delete(t),this.removeEventListener(this.document.body,"move",o))}}getTopMoveStartHandler(){return!this.options.delayTouchStart&&!this.options.delayMouseStart?this.handleTopMoveStart:this.handleTopMoveStartDelay}installSourceNodeRemovalObserver(t){this.uninstallSourceNodeRemovalObserver(),this.draggedSourceNode=t,this.draggedSourceNodeRemovalObserver=new MutationObserver(()=>{t&&!t.parentElement&&(this.resurrectSourceNode(),this.uninstallSourceNodeRemovalObserver())}),!(!t||!t.parentElement)&&this.draggedSourceNodeRemovalObserver.observe(t.parentElement,{childList:!0})}resurrectSourceNode(){this.document&&this.draggedSourceNode&&(this.draggedSourceNode.style.display="none",this.draggedSourceNode.removeAttribute("data-reactid"),this.document.body.appendChild(this.draggedSourceNode))}uninstallSourceNodeRemovalObserver(){this.draggedSourceNodeRemovalObserver&&this.draggedSourceNodeRemovalObserver.disconnect(),this.draggedSourceNodeRemovalObserver=void 0,this.draggedSourceNode=void 0}constructor(t,r,n){this.getSourceClientOffset=o=>{const i=this.sourceNodes.get(o);return i&&w2t(i)},this.handleTopMoveStartCapture=o=>{iL(o)&&(this.moveStartSourceIds=[])},this.handleMoveStart=o=>{Array.isArray(this.moveStartSourceIds)&&this.moveStartSourceIds.unshift(o)},this.handleTopMoveStart=o=>{if(!iL(o))return;const i=ib(o);i&&(Vge(o)&&(this.lastTargetTouchFallback=o.targetTouches[0]),this._mouseClientOffset=i),this.waitingForDelay=!1},this.handleTopMoveStartDelay=o=>{if(!iL(o))return;const i=o.type===V4.touch.start?this.options.delayTouchStart:this.options.delayMouseStart;this.timeout=setTimeout(this.handleTopMoveStart.bind(this,o),i),this.waitingForDelay=!0},this.handleTopMoveCapture=()=>{this.dragOverTargetIds=[]},this.handleMove=(o,i)=>{this.dragOverTargetIds&&this.dragOverTargetIds.unshift(i)},this.handleTopMove=o=>{if(this.timeout&&clearTimeout(this.timeout),!this.document||this.waitingForDelay)return;const{moveStartSourceIds:i,dragOverTargetIds:a}=this,l=this.options.enableHoverOutsideTarget,d=ib(o,this.lastTargetTouchFallback);if(!d)return;if(this._isScrolling||!this.monitor.isDragging()&&f2t(this._mouseClientOffset.x||0,this._mouseClientOffset.y||0,d.x,d.y,this.options.scrollAngleRanges)){this._isScrolling=!0;return}if(!this.monitor.isDragging()&&this._mouseClientOffset.hasOwnProperty("x")&&i&&m2t(this._mouseClientOffset.x||0,this._mouseClientOffset.y||0,d.x,d.y)>(this.options.touchSlop?this.options.touchSlop:0)&&(this.moveStartSourceIds=void 0,this.actions.beginDrag(i,{clientOffset:this._mouseClientOffset,getSourceClientOffset:this.getSourceClientOffset,publishSource:!1})),!this.monitor.isDragging())return;const u=this.sourceNodes.get(this.monitor.getSourceId());this.installSourceNodeRemovalObserver(u),this.actions.publishDragSource(),o.cancelable&&o.preventDefault();const p=(a||[]).map(y=>this.targetNodes.get(y)).filter(y=>!!y),h=this.options.getDropTargetElementsAtPoint?this.options.getDropTargetElementsAtPoint(d.x,d.y,p):this.document.elementsFromPoint(d.x,d.y),f=[];for(const y in h){if(!h.hasOwnProperty(y))continue;let v=h[y];for(v!=null&&f.push(v);v;)v=v.parentElement,v&&f.indexOf(v)===-1&&f.push(v)}const g=f.filter(y=>p.indexOf(y)>-1).map(y=>this._getDropTargetId(y)).filter(y=>!!y).filter((y,v,w)=>w.indexOf(y)===v);if(l)for(const y in this.targetNodes){const v=this.targetNodes.get(y);if(u&&v&&v.contains(u)&&g.indexOf(y)===-1){g.unshift(y);break}}g.reverse(),this.actions.hover(g,{clientOffset:d})},this._getDropTargetId=o=>{const i=this.targetNodes.keys();let a=i.next();for(;a.done===!1;){const l=a.value;if(o===this.targetNodes.get(l))return l;a=i.next()}},this.handleTopMoveEndCapture=o=>{if(this._isScrolling=!1,this.lastTargetTouchFallback=void 0,!!v2t(o)){if(!this.monitor.isDragging()||this.monitor.didDrop()){this.moveStartSourceIds=void 0;return}o.cancelable&&o.preventDefault(),this._mouseClientOffset={},this.uninstallSourceNodeRemovalObserver(),this.actions.drop(),this.actions.endDrag()}},this.handleCancelOnEscape=o=>{o.key==="Escape"&&this.monitor.isDragging()&&(this._mouseClientOffset={},this.uninstallSourceNodeRemovalObserver(),this.actions.endDrag())},this.options=new h2t(n,r),this.actions=t.getActions(),this.monitor=t.getMonitor(),this.sourceNodes=new Map,this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.targetNodes=new Map,this.listenerTypes=[],this._mouseClientOffset={},this._isScrolling=!1,this.options.enableMouseEvents&&this.listenerTypes.push(b0.mouse),this.options.enableTouchEvents&&this.listenerTypes.push(b0.touch),this.options.enableKeyboardEvents&&this.listenerTypes.push(b0.keyboard)}}const C2t=function(t,r={},n={}){return new t7(t,r,n)};var Sn=Abe(),r7={};r7.d=(e,t)=>{for(var r in t)r7.o(t,r)&&!r7.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})};r7.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var kr=globalThis.pdfjsLib={};r7.d(kr,{AbortException:()=>Am,AnnotationEditorLayer:()=>Lu,AnnotationEditorParamsType:()=>Pr,AnnotationEditorType:()=>fn,AnnotationEditorUIManager:()=>P0,AnnotationLayer:()=>wpt,AnnotationMode:()=>K2,CMapCompressionType:()=>aj,ColorPicker:()=>a1,DOMSVGFactory:()=>GF,DrawLayer:()=>ba,FeatureTest:()=>xs,GlobalWorkerOptions:()=>A7,ImageKind:()=>Ry,InvalidPDFException:()=>Wge,MissingPDFException:()=>Tm,OPS:()=>kc,Outliner:()=>mj,PDFDataRangeTransport:()=>l4e,PDFDateString:()=>Qge,PDFWorker:()=>El,PasswordResponses:()=>E2t,PermissionFlag:()=>k2t,PixelsPerInch:()=>Jf,RenderingCancelledException:()=>qF,TextLayer:()=>lb,UnexpectedResponseException:()=>kx,Util:()=>ar,VerbosityLevel:()=>Cx,XfaLayer:()=>d4e,build:()=>ept,createValidAbsoluteUrl:()=>L2t,fetchData:()=>Dx,getDocument:()=>W0t,getFilenameFromUrl:()=>z2t,getPdfFilenameFromUrl:()=>B2t,getXfaPageViewport:()=>H2t,isDataScheme:()=>ZF,isPdfFile:()=>KF,noContextMenu:()=>ks,normalizeUnicode:()=>R2t,renderTextLayer:()=>R0t,setLayerDimensions:()=>lm,shadow:()=>bn,updateTextLayer:()=>O0t,version:()=>J0t});const ka=typeof l1=="object"&&l1+""=="[object process]"&&!l1.versions.nw&&!(l1.versions.electron&&l1.type&&l1.type!=="browser"),Uge=[1,0,0,1,0,0],ij=[.001,0,0,.001,0,0],$2t=1e7,aL=1.35,Sl={ANY:1,DISPLAY:2,PRINT:4,ANNOTATIONS_FORMS:16,ANNOTATIONS_STORAGE:32,ANNOTATIONS_DISABLE:64,OPLIST:256},K2={DISABLE:0,ENABLE:1,ENABLE_FORMS:2,ENABLE_STORAGE:3},S2t="pdfjs_internal_editor_",fn={DISABLE:-1,NONE:0,FREETEXT:3,HIGHLIGHT:9,STAMP:13,INK:15},Pr={RESIZE:1,CREATE:2,FREETEXT_SIZE:11,FREETEXT_COLOR:12,FREETEXT_OPACITY:13,INK_COLOR:21,INK_THICKNESS:22,INK_OPACITY:23,HIGHLIGHT_COLOR:31,HIGHLIGHT_DEFAULT_COLOR:32,HIGHLIGHT_THICKNESS:33,HIGHLIGHT_FREE:34,HIGHLIGHT_SHOW_ALL:35},k2t={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048},va={FILL:0,STROKE:1,FILL_STROKE:2,INVISIBLE:3,FILL_STROKE_MASK:3,ADD_TO_PATH_FLAG:4},Ry={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3},ki={TEXT:1,LINK:2,FREETEXT:3,LINE:4,SQUARE:5,CIRCLE:6,POLYGON:7,POLYLINE:8,HIGHLIGHT:9,UNDERLINE:10,SQUIGGLY:11,STRIKEOUT:12,STAMP:13,CARET:14,INK:15,POPUP:16,FILEATTACHMENT:17,WIDGET:20},U4={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5},Cx={ERRORS:0,WARNINGS:1,INFOS:5},aj={NONE:0,BINARY:1},kc={dependency:1,setLineWidth:2,setLineCap:3,setLineJoin:4,setMiterLimit:5,setDash:6,setRenderingIntent:7,setFlatness:8,setGState:9,save:10,restore:11,transform:12,moveTo:13,lineTo:14,curveTo:15,curveTo2:16,curveTo3:17,closePath:18,rectangle:19,stroke:20,closeStroke:21,fill:22,eoFill:23,fillStroke:24,eoFillStroke:25,closeFillStroke:26,closeEOFillStroke:27,endPath:28,clip:29,eoClip:30,beginText:31,endText:32,setCharSpacing:33,setWordSpacing:34,setHScale:35,setLeading:36,setFont:37,setTextRenderingMode:38,setTextRise:39,moveText:40,setLeadingMoveText:41,setTextMatrix:42,nextLine:43,showText:44,showSpacedText:45,nextLineShowText:46,nextLineSetSpacingShowText:47,setCharWidth:48,setCharWidthAndBounds:49,setStrokeColorSpace:50,setFillColorSpace:51,setStrokeColor:52,setStrokeColorN:53,setFillColor:54,setFillColorN:55,setStrokeGray:56,setFillGray:57,setStrokeRGBColor:58,setFillRGBColor:59,setStrokeCMYKColor:60,setFillCMYKColor:61,shadingFill:62,beginInlineImage:63,beginImageData:64,endInlineImage:65,paintXObject:66,markPoint:67,markPointProps:68,beginMarkedContent:69,beginMarkedContentProps:70,endMarkedContent:71,beginCompat:72,endCompat:73,paintFormXObjectBegin:74,paintFormXObjectEnd:75,beginGroup:76,endGroup:77,beginAnnotation:80,endAnnotation:81,paintImageMaskXObject:83,paintImageMaskXObjectGroup:84,paintImageXObject:85,paintInlineImageXObject:86,paintInlineImageXObjectGroup:87,paintImageXObjectRepeat:88,paintImageMaskXObjectRepeat:89,paintSolidColorImageMask:90,constructPath:91},E2t={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};let $x=Cx.WARNINGS;function _2t(e){Number.isInteger(e)&&($x=e)}function T2t(){return $x}function Sx(e){$x>=Cx.INFOS&&console.log(`Info: ${e}`)}function Xr(e){$x>=Cx.WARNINGS&&console.log(`Warning: ${e}`)}function to(e){throw new Error(e)}function Li(e,t){e||to(t)}function A2t(e){switch(e?.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}function L2t(e,t=null,r=null){if(!e)return null;try{if(r&&typeof e=="string"&&(r.addDefaultProtocol&&e.startsWith("www.")&&e.match(/\./g)?.length>=2&&(e=`http://${e}`),r.tryConvertEncoding))try{e=j2t(e)}catch{}const n=t?new URL(e,t):new URL(e);if(A2t(n))return n}catch{}return null}function bn(e,t,r,n=!1){return Object.defineProperty(e,t,{value:r,enumerable:!n,configurable:!0,writable:!1}),r}const G0=function(){function t(r,n){this.constructor===t&&to("Cannot initialize BaseException."),this.message=r,this.name=n}return t.prototype=new Error,t.constructor=t,t}();class sj extends G0{constructor(t,r){super(t,"PasswordException"),this.code=r}}class lj extends G0{constructor(t,r){super(t,"UnknownErrorException"),this.details=r}}class Wge extends G0{constructor(t){super(t,"InvalidPDFException")}}class Tm extends G0{constructor(t){super(t,"MissingPDFException")}}class kx extends G0{constructor(t,r){super(t,"UnexpectedResponseException"),this.status=r}}class D2t extends G0{constructor(t){super(t,"FormatError")}}class Am extends G0{constructor(t){super(t,"AbortException")}}function Yge(e){(typeof e!="object"||e?.length===void 0)&&to("Invalid argument for bytesToString");const t=e.length,r=8192;if(t<r)return String.fromCharCode.apply(null,e);const n=[];for(let o=0;o<t;o+=r){const i=Math.min(o+r,t),a=e.subarray(o,i);n.push(String.fromCharCode.apply(null,a))}return n.join("")}function Ex(e){typeof e!="string"&&to("Invalid argument for stringToBytes");const t=e.length,r=new Uint8Array(t);for(let n=0;n<t;++n)r[n]=e.charCodeAt(n)&255;return r}function M2t(e){return String.fromCharCode(e>>24&255,e>>16&255,e>>8&255,e&255)}function WF(e){const t=Object.create(null);for(const[r,n]of e)t[r]=n;return t}function P2t(){const e=new Uint8Array(4);return e[0]=1,new Uint32Array(e.buffer,0,1)[0]===1}function I2t(){try{return new Function(""),!0}catch{return!1}}class xs{static get isLittleEndian(){return bn(this,"isLittleEndian",P2t())}static get isEvalSupported(){return bn(this,"isEvalSupported",I2t())}static get isOffscreenCanvasSupported(){return bn(this,"isOffscreenCanvasSupported",typeof OffscreenCanvas<"u")}static get platform(){return typeof navigator<"u"&&typeof navigator?.platform=="string"?bn(this,"platform",{isMac:navigator.platform.includes("Mac")}):bn(this,"platform",{isMac:!1})}static get isCSSRoundSupported(){return bn(this,"isCSSRoundSupported",globalThis.CSS?.supports?.("width: round(1.5px, 1px)"))}}const sL=Array.from(Array(256).keys(),e=>e.toString(16).padStart(2,"0"));class ar{static makeHexColor(t,r,n){return`#${sL[t]}${sL[r]}${sL[n]}`}static scaleMinMax(t,r){let n;t[0]?(t[0]<0&&(n=r[0],r[0]=r[2],r[2]=n),r[0]*=t[0],r[2]*=t[0],t[3]<0&&(n=r[1],r[1]=r[3],r[3]=n),r[1]*=t[3],r[3]*=t[3]):(n=r[0],r[0]=r[1],r[1]=n,n=r[2],r[2]=r[3],r[3]=n,t[1]<0&&(n=r[1],r[1]=r[3],r[3]=n),r[1]*=t[1],r[3]*=t[1],t[2]<0&&(n=r[0],r[0]=r[2],r[2]=n),r[0]*=t[2],r[2]*=t[2]),r[0]+=t[4],r[1]+=t[5],r[2]+=t[4],r[3]+=t[5]}static transform(t,r){return[t[0]*r[0]+t[2]*r[1],t[1]*r[0]+t[3]*r[1],t[0]*r[2]+t[2]*r[3],t[1]*r[2]+t[3]*r[3],t[0]*r[4]+t[2]*r[5]+t[4],t[1]*r[4]+t[3]*r[5]+t[5]]}static applyTransform(t,r){const n=t[0]*r[0]+t[1]*r[2]+r[4],o=t[0]*r[1]+t[1]*r[3]+r[5];return[n,o]}static applyInverseTransform(t,r){const n=r[0]*r[3]-r[1]*r[2],o=(t[0]*r[3]-t[1]*r[2]+r[2]*r[5]-r[4]*r[3])/n,i=(-t[0]*r[1]+t[1]*r[0]+r[4]*r[1]-r[5]*r[0])/n;return[o,i]}static getAxialAlignedBoundingBox(t,r){const n=this.applyTransform(t,r),o=this.applyTransform(t.slice(2,4),r),i=this.applyTransform([t[0],t[3]],r),a=this.applyTransform([t[2],t[1]],r);return[Math.min(n[0],o[0],i[0],a[0]),Math.min(n[1],o[1],i[1],a[1]),Math.max(n[0],o[0],i[0],a[0]),Math.max(n[1],o[1],i[1],a[1])]}static inverseTransform(t){const r=t[0]*t[3]-t[1]*t[2];return[t[3]/r,-t[1]/r,-t[2]/r,t[0]/r,(t[2]*t[5]-t[4]*t[3])/r,(t[4]*t[1]-t[5]*t[0])/r]}static singularValueDecompose2dScale(t){const r=[t[0],t[2],t[1],t[3]],n=t[0]*r[0]+t[1]*r[2],o=t[0]*r[1]+t[1]*r[3],i=t[2]*r[0]+t[3]*r[2],a=t[2]*r[1]+t[3]*r[3],l=(n+a)/2,d=Math.sqrt((n+a)**2-4*(n*a-i*o))/2,u=l+d||1,p=l-d||1;return[Math.sqrt(u),Math.sqrt(p)]}static normalizeRect(t){const r=t.slice(0);return t[0]>t[2]&&(r[0]=t[2],r[2]=t[0]),t[1]>t[3]&&(r[1]=t[3],r[3]=t[1]),r}static intersect(t,r){const n=Math.max(Math.min(t[0],t[2]),Math.min(r[0],r[2])),o=Math.min(Math.max(t[0],t[2]),Math.max(r[0],r[2]));if(n>o)return null;const i=Math.max(Math.min(t[1],t[3]),Math.min(r[1],r[3])),a=Math.min(Math.max(t[1],t[3]),Math.max(r[1],r[3]));return i>a?null:[n,i,o,a]}static#e(t,r,n,o,i,a,l,d,u,p){if(u<=0||u>=1)return;const h=1-u,f=u*u,g=f*u,y=h*(h*(h*t+3*u*r)+3*f*n)+g*o,v=h*(h*(h*i+3*u*a)+3*f*l)+g*d;p[0]=Math.min(p[0],y),p[1]=Math.min(p[1],v),p[2]=Math.max(p[2],y),p[3]=Math.max(p[3],v)}static#t(t,r,n,o,i,a,l,d,u,p,h,f){if(Math.abs(u)<1e-12){Math.abs(p)>=1e-12&&this.#e(t,r,n,o,i,a,l,d,-h/p,f);return}const g=p**2-4*h*u;if(g<0)return;const y=Math.sqrt(g),v=2*u;this.#e(t,r,n,o,i,a,l,d,(-p+y)/v,f),this.#e(t,r,n,o,i,a,l,d,(-p-y)/v,f)}static bezierBoundingBox(t,r,n,o,i,a,l,d,u){return u?(u[0]=Math.min(u[0],t,l),u[1]=Math.min(u[1],r,d),u[2]=Math.max(u[2],t,l),u[3]=Math.max(u[3],r,d)):u=[Math.min(t,l),Math.min(r,d),Math.max(t,l),Math.max(r,d)],this.#t(t,n,i,l,r,o,a,d,3*(-t+3*(n-i)+l),6*(t-2*n+i),3*(n-t),u),this.#t(t,n,i,l,r,o,a,d,3*(-r+3*(o-a)+d),6*(r-2*o+a),3*(o-r),u),u}}function j2t(e){return decodeURIComponent(escape(e))}let lL=null,WX=null;function R2t(e){return lL||(lL=/([\u00a0\u00b5\u037e\u0eb3\u2000-\u200a\u202f\u2126\ufb00-\ufb04\ufb06\ufb20-\ufb36\ufb38-\ufb3c\ufb3e\ufb40-\ufb41\ufb43-\ufb44\ufb46-\ufba1\ufba4-\ufba9\ufbae-\ufbb1\ufbd3-\ufbdc\ufbde-\ufbe7\ufbea-\ufbf8\ufbfc-\ufbfd\ufc00-\ufc5d\ufc64-\ufcf1\ufcf5-\ufd3d\ufd88\ufdf4\ufdfa-\ufdfb\ufe71\ufe77\ufe79\ufe7b\ufe7d]+)|(\ufb05+)/gu,WX=new Map([["ſt","ſt"]])),e.replaceAll(lL,(t,r,n)=>r?r.normalize("NFKC"):WX.get(n))}function O2t(){if(typeof crypto<"u"&&typeof crypto?.randomUUID=="function")return crypto.randomUUID();const e=new Uint8Array(32);if(typeof crypto<"u"&&typeof crypto?.getRandomValues=="function")crypto.getRandomValues(e);else for(let t=0;t<32;t++)e[t]=Math.floor(Math.random()*255);return Yge(e)}const Gge="pdfjs_internal_id_",fu={BEZIER_CURVE_TO:0,MOVE_TO:1,LINE_TO:2,QUADRATIC_CURVE_TO:3,RESTORE:4,SAVE:5,SCALE:6,TRANSFORM:7,TRANSLATE:8};class _x{constructor(){this.constructor===_x&&to("Cannot initialize BaseFilterFactory.")}addFilter(t){return"none"}addHCMFilter(t,r){return"none"}addAlphaFilter(t){return"none"}addLuminosityFilter(t){return"none"}addHighlightHCMFilter(t,r,n,o,i){return"none"}destroy(t=!1){}}class Tx{#e=!1;constructor({enableHWA:t=!1}={}){this.constructor===Tx&&to("Cannot initialize BaseCanvasFactory."),this.#e=t}create(t,r){if(t<=0||r<=0)throw new Error("Invalid canvas size");const n=this._createCanvas(t,r);return{canvas:n,context:n.getContext("2d",{willReadFrequently:!this.#e})}}reset(t,r,n){if(!t.canvas)throw new Error("Canvas is not specified");if(r<=0||n<=0)throw new Error("Invalid canvas size");t.canvas.width=r,t.canvas.height=n}destroy(t){if(!t.canvas)throw new Error("Canvas is not specified");t.canvas.width=0,t.canvas.height=0,t.canvas=null,t.context=null}_createCanvas(t,r){to("Abstract method `_createCanvas` called.")}}class Ax{constructor({baseUrl:t=null,isCompressed:r=!0}){this.constructor===Ax&&to("Cannot initialize BaseCMapReaderFactory."),this.baseUrl=t,this.isCompressed=r}async fetch({name:t}){if(!this.baseUrl)throw new Error('The CMap "baseUrl" parameter must be specified, ensure that the "cMapUrl" and "cMapPacked" API parameters are provided.');if(!t)throw new Error("CMap name must be specified.");const r=this.baseUrl+t+(this.isCompressed?".bcmap":""),n=this.isCompressed?aj.BINARY:aj.NONE;return this._fetchData(r,n).catch(o=>{throw new Error(`Unable to load ${this.isCompressed?"binary ":""}CMap at: ${r}`)})}_fetchData(t,r){to("Abstract method `_fetchData` called.")}}class Lx{constructor({baseUrl:t=null}){this.constructor===Lx&&to("Cannot initialize BaseStandardFontDataFactory."),this.baseUrl=t}async fetch({filename:t}){if(!this.baseUrl)throw new Error('The standard font "baseUrl" parameter must be specified, ensure that the "standardFontDataUrl" API parameter is provided.');if(!t)throw new Error("Font filename must be specified.");const r=`${this.baseUrl}${t}`;return this._fetchData(r).catch(n=>{throw new Error(`Unable to load font data at: ${r}`)})}_fetchData(t){to("Abstract method `_fetchData` called.")}}class YF{constructor(){this.constructor===YF&&to("Cannot initialize BaseSVGFactory.")}create(t,r,n=!1){if(t<=0||r<=0)throw new Error("Invalid SVG dimensions");const o=this._createSVG("svg:svg");return o.setAttribute("version","1.1"),n||(o.setAttribute("width",`${t}px`),o.setAttribute("height",`${r}px`)),o.setAttribute("preserveAspectRatio","none"),o.setAttribute("viewBox",`0 0 ${t} ${r}`),o}createElement(t){if(typeof t!="string")throw new Error("Invalid SVG element type");return this._createSVG(t)}_createSVG(t){to("Abstract method `_createSVG` called.")}}const _u="http://www.w3.org/2000/svg";class Jf{static CSS=96;static PDF=72;static PDF_TO_CSS_UNITS=this.CSS/this.PDF}class F2t extends _x{#e;#t;#r;#o;#s;#n=0;constructor({docId:t,ownerDocument:r=globalThis.document}={}){super(),this.#r=t,this.#o=r}get#i(){return this.#e||=new Map}get#l(){return this.#s||=new Map}get#d(){if(!this.#t){const t=this.#o.createElement("div"),{style:r}=t;r.visibility="hidden",r.contain="strict",r.width=r.height=0,r.position="absolute",r.top=r.left=0,r.zIndex=-1;const n=this.#o.createElementNS(_u,"svg");n.setAttribute("width",0),n.setAttribute("height",0),this.#t=this.#o.createElementNS(_u,"defs"),t.append(n),n.append(this.#t),this.#o.body.append(t)}return this.#t}#u(t){if(t.length===1){const d=t[0],u=new Array(256);for(let h=0;h<256;h++)u[h]=d[h]/255;const p=u.join(",");return[p,p,p]}const[r,n,o]=t,i=new Array(256),a=new Array(256),l=new Array(256);for(let d=0;d<256;d++)i[d]=r[d]/255,a[d]=n[d]/255,l[d]=o[d]/255;return[i.join(","),a.join(","),l.join(",")]}addFilter(t){if(!t)return"none";let r=this.#i.get(t);if(r)return r;const[n,o,i]=this.#u(t),a=t.length===1?n:`${n}${o}${i}`;if(r=this.#i.get(a),r)return this.#i.set(t,r),r;const l=`g_${this.#r}_transfer_map_${this.#n++}`,d=`url(#${l})`;this.#i.set(t,d),this.#i.set(a,d);const u=this.#a(l);return this.#g(n,o,i,u),d}addHCMFilter(t,r){const n=`${t}-${r}`,o="base";let i=this.#l.get(o);if(i?.key===n||(i?(i.filter?.remove(),i.key=n,i.url="none",i.filter=null):(i={key:n,url:"none",filter:null},this.#l.set(o,i)),!t||!r))return i.url;const a=this.#v(t);t=ar.makeHexColor(...a);const l=this.#v(r);if(r=ar.makeHexColor(...l),this.#d.style.color="",t==="#000000"&&r==="#ffffff"||t===r)return i.url;const d=new Array(256);for(let g=0;g<=255;g++){const y=g/255;d[g]=y<=.03928?y/12.92:((y+.055)/1.055)**2.4}const u=d.join(","),p=`g_${this.#r}_hcm_filter`,h=i.filter=this.#a(p);this.#g(u,u,u,h),this.#c(h);const f=(g,y)=>{const v=a[g]/255,w=l[g]/255,x=new Array(y+1);for(let $=0;$<=y;$++)x[$]=v+$/y*(w-v);return x.join(",")};return this.#g(f(0,5),f(1,5),f(2,5),h),i.url=`url(#${p})`,i.url}addAlphaFilter(t){let r=this.#i.get(t);if(r)return r;const[n]=this.#u([t]),o=`alpha_${n}`;if(r=this.#i.get(o),r)return this.#i.set(t,r),r;const i=`g_${this.#r}_alpha_map_${this.#n++}`,a=`url(#${i})`;this.#i.set(t,a),this.#i.set(o,a);const l=this.#a(i);return this.#p(n,l),a}addLuminosityFilter(t){let r=this.#i.get(t||"luminosity");if(r)return r;let n,o;if(t?([n]=this.#u([t]),o=`luminosity_${n}`):o="luminosity",r=this.#i.get(o),r)return this.#i.set(t,r),r;const i=`g_${this.#r}_luminosity_map_${this.#n++}`,a=`url(#${i})`;this.#i.set(t,a),this.#i.set(o,a);const l=this.#a(i);return this.#h(l),t&&this.#p(n,l),a}addHighlightHCMFilter(t,r,n,o,i){const a=`${r}-${n}-${o}-${i}`;let l=this.#l.get(t);if(l?.key===a||(l?(l.filter?.remove(),l.key=a,l.url="none",l.filter=null):(l={key:a,url:"none",filter:null},this.#l.set(t,l)),!r||!n))return l.url;const[d,u]=[r,n].map(this.#v.bind(this));let p=Math.round(.2126*d[0]+.7152*d[1]+.0722*d[2]),h=Math.round(.2126*u[0]+.7152*u[1]+.0722*u[2]),[f,g]=[o,i].map(this.#v.bind(this));h<p&&([p,h,f,g]=[h,p,g,f]),this.#d.style.color="";const y=(x,$,S)=>{const k=new Array(256),T=(h-p)/S,E=x/255,A=($-x)/(255*S);let P=0;for(let D=0;D<=S;D++){const O=Math.round(p+D*T),V=E+D*A;for(let j=P;j<=O;j++)k[j]=V;P=O+1}for(let D=P;D<256;D++)k[D]=k[P-1];return k.join(",")},v=`g_${this.#r}_hcm_${t}_filter`,w=l.filter=this.#a(v);return this.#c(w),this.#g(y(f[0],g[0],5),y(f[1],g[1],5),y(f[2],g[2],5),w),l.url=`url(#${v})`,l.url}destroy(t=!1){t&&this.#l.size!==0||(this.#t&&(this.#t.parentNode.parentNode.remove(),this.#t=null),this.#e&&(this.#e.clear(),this.#e=null),this.#n=0)}#h(t){const r=this.#o.createElementNS(_u,"feColorMatrix");r.setAttribute("type","matrix"),r.setAttribute("values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.3 0.59 0.11 0 0"),t.append(r)}#c(t){const r=this.#o.createElementNS(_u,"feColorMatrix");r.setAttribute("type","matrix"),r.setAttribute("values","0.2126 0.7152 0.0722 0 0 0.2126 0.7152 0.0722 0 0 0.2126 0.7152 0.0722 0 0 0 0 0 1 0"),t.append(r)}#a(t){const r=this.#o.createElementNS(_u,"filter");return r.setAttribute("color-interpolation-filters","sRGB"),r.setAttribute("id",t),this.#d.append(r),r}#m(t,r,n){const o=this.#o.createElementNS(_u,r);o.setAttribute("type","discrete"),o.setAttribute("tableValues",n),t.append(o)}#g(t,r,n,o){const i=this.#o.createElementNS(_u,"feComponentTransfer");o.append(i),this.#m(i,"feFuncR",t),this.#m(i,"feFuncG",r),this.#m(i,"feFuncB",n)}#p(t,r){const n=this.#o.createElementNS(_u,"feComponentTransfer");r.append(n),this.#m(n,"feFuncA",t)}#v(t){return this.#d.style.color=t,QF(getComputedStyle(this.#d).getPropertyValue("color"))}}class N2t extends Tx{constructor({ownerDocument:t=globalThis.document,enableHWA:r=!1}={}){super({enableHWA:r}),this._document=t}_createCanvas(t,r){const n=this._document.createElement("canvas");return n.width=t,n.height=r,n}}async function Dx(e,t="text"){if(R5(e,document.baseURI)){const r=await fetch(e);if(!r.ok)throw new Error(r.statusText);switch(t){case"arraybuffer":return r.arrayBuffer();case"blob":return r.blob();case"json":return r.json()}return r.text()}return new Promise((r,n)=>{const o=new XMLHttpRequest;o.open("GET",e,!0),o.responseType=t,o.onreadystatechange=()=>{if(o.readyState===XMLHttpRequest.DONE){if(o.status===200||o.status===0){switch(t){case"arraybuffer":case"blob":case"json":r(o.response);return}r(o.responseText);return}n(new Error(o.statusText))}},o.send(null)})}class qge extends Ax{_fetchData(t,r){return Dx(t,this.isCompressed?"arraybuffer":"text").then(n=>({cMapData:n instanceof ArrayBuffer?new Uint8Array(n):Ex(n),compressionType:r}))}}class Zge extends Lx{_fetchData(t){return Dx(t,"arraybuffer").then(r=>new Uint8Array(r))}}class GF extends YF{_createSVG(t){return document.createElementNS(_u,t)}}class m6{constructor({viewBox:t,scale:r,rotation:n,offsetX:o=0,offsetY:i=0,dontFlip:a=!1}){this.viewBox=t,this.scale=r,this.rotation=n,this.offsetX=o,this.offsetY=i;const l=(t[2]+t[0])/2,d=(t[3]+t[1])/2;let u,p,h,f;switch(n%=360,n<0&&(n+=360),n){case 180:u=-1,p=0,h=0,f=1;break;case 90:u=0,p=1,h=1,f=0;break;case 270:u=0,p=-1,h=-1,f=0;break;case 0:u=1,p=0,h=0,f=-1;break;default:throw new Error("PageViewport: Invalid rotation, must be a multiple of 90 degrees.")}a&&(h=-h,f=-f);let g,y,v,w;u===0?(g=Math.abs(d-t[1])*r+o,y=Math.abs(l-t[0])*r+i,v=(t[3]-t[1])*r,w=(t[2]-t[0])*r):(g=Math.abs(l-t[0])*r+o,y=Math.abs(d-t[1])*r+i,v=(t[2]-t[0])*r,w=(t[3]-t[1])*r),this.transform=[u*r,p*r,h*r,f*r,g-u*r*l-h*r*d,y-p*r*l-f*r*d],this.width=v,this.height=w}get rawDims(){const{viewBox:t}=this;return bn(this,"rawDims",{pageWidth:t[2]-t[0],pageHeight:t[3]-t[1],pageX:t[0],pageY:t[1]})}clone({scale:t=this.scale,rotation:r=this.rotation,offsetX:n=this.offsetX,offsetY:o=this.offsetY,dontFlip:i=!1}={}){return new m6({viewBox:this.viewBox.slice(),scale:t,rotation:r,offsetX:n,offsetY:o,dontFlip:i})}convertToViewportPoint(t,r){return ar.applyTransform([t,r],this.transform)}convertToViewportRectangle(t){const r=ar.applyTransform([t[0],t[1]],this.transform),n=ar.applyTransform([t[2],t[3]],this.transform);return[r[0],r[1],n[0],n[1]]}convertToPdfPoint(t,r){return ar.applyInverseTransform([t,r],this.transform)}}class qF extends G0{constructor(t,r=0){super(t,"RenderingCancelledException"),this.extraDelay=r}}function ZF(e){const t=e.length;let r=0;for(;r<t&&e[r].trim()==="";)r++;return e.substring(r,r+5).toLowerCase()==="data:"}function KF(e){return typeof e=="string"&&/\.pdf$/i.test(e)}function z2t(e){return[e]=e.split(/[#?]/,1),e.substring(e.lastIndexOf("/")+1)}function B2t(e,t="document.pdf"){if(typeof e!="string")return t;if(ZF(e))return Xr('getPdfFilenameFromUrl: ignore "data:"-URL for performance reasons.'),t;const r=/^(?:(?:[^:]+:)?\/\/[^/]+)?([^?#]*)(\?[^#]*)?(#.*)?$/,n=/[^/?#=]+\.pdf\b(?!.*\.pdf\b)/i,o=r.exec(e);let i=n.exec(o[1])||n.exec(o[2])||n.exec(o[3]);if(i&&(i=i[0],i.includes("%")))try{i=n.exec(decodeURIComponent(i))[0]}catch{}return i||t}class YX{started=Object.create(null);times=[];time(t){t in this.started&&Xr(`Timer is already running for ${t}`),this.started[t]=Date.now()}timeEnd(t){t in this.started||Xr(`Timer has not been started for ${t}`),this.times.push({name:t,start:this.started[t],end:Date.now()}),delete this.started[t]}toString(){const t=[];let r=0;for(const{name:n}of this.times)r=Math.max(n.length,r);for(const{name:n,start:o,end:i}of this.times)t.push(`${n.padEnd(r)} ${i-o}ms
|
|
289
|
-
`);return t.join("")}}function R5(e,t){try{const{protocol:r}=t?new URL(e,t):new URL(e);return r==="http:"||r==="https:"}catch{return!1}}function ks(e){e.preventDefault()}function Kge(e){console.log("Deprecated API usage: "+e)}let GX;class Qge{static toDateObject(t){if(!t||typeof t!="string")return null;GX||=new RegExp("^D:(\\d{4})(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?([Z|+|-])?(\\d{2})?'?(\\d{2})?'?");const r=GX.exec(t);if(!r)return null;const n=parseInt(r[1],10);let o=parseInt(r[2],10);o=o>=1&&o<=12?o-1:0;let i=parseInt(r[3],10);i=i>=1&&i<=31?i:1;let a=parseInt(r[4],10);a=a>=0&&a<=23?a:0;let l=parseInt(r[5],10);l=l>=0&&l<=59?l:0;let d=parseInt(r[6],10);d=d>=0&&d<=59?d:0;const u=r[7]||"Z";let p=parseInt(r[8],10);p=p>=0&&p<=23?p:0;let h=parseInt(r[9],10)||0;return h=h>=0&&h<=59?h:0,u==="-"?(a+=p,l+=h):u==="+"&&(a-=p,l-=h),new Date(Date.UTC(n,o,i,a,l,d))}}function H2t(e,{scale:t=1,rotation:r=0}){const{width:n,height:o}=e.attributes.style,i=[0,0,parseInt(n),parseInt(o)];return new m6({viewBox:i,scale:t,rotation:r})}function QF(e){if(e.startsWith("#")){const t=parseInt(e.slice(1),16);return[(t&16711680)>>16,(t&65280)>>8,t&255]}return e.startsWith("rgb(")?e.slice(4,-1).split(",").map(t=>parseInt(t)):e.startsWith("rgba(")?e.slice(5,-1).split(",").map(t=>parseInt(t)).slice(0,3):(Xr(`Not a valid color format: "${e}"`),[0,0,0])}function V2t(e){const t=document.createElement("span");t.style.visibility="hidden",document.body.append(t);for(const r of e.keys()){t.style.color=r;const n=window.getComputedStyle(t).color;e.set(r,QF(n))}t.remove()}function Po(e){const{a:t,b:r,c:n,d:o,e:i,f:a}=e.getTransform();return[t,r,n,o,i,a]}function gu(e){const{a:t,b:r,c:n,d:o,e:i,f:a}=e.getTransform().invertSelf();return[t,r,n,o,i,a]}function lm(e,t,r=!1,n=!0){if(t instanceof m6){const{pageWidth:o,pageHeight:i}=t.rawDims,{style:a}=e,l=xs.isCSSRoundSupported,d=`var(--scale-factor) * ${o}px`,u=`var(--scale-factor) * ${i}px`,p=l?`round(${d}, 1px)`:`calc(${d})`,h=l?`round(${u}, 1px)`:`calc(${u})`;!r||t.rotation%180===0?(a.width=p,a.height=h):(a.width=h,a.height=p)}n&&e.setAttribute("data-main-rotation",t.rotation)}class XF{#e=null;#t=null;#r;#o=null;constructor(t){this.#r=t}render(){const t=this.#e=document.createElement("div");t.className="editToolbar",t.setAttribute("role","toolbar");const r=this.#r._uiManager._signal;t.addEventListener("contextmenu",ks,{signal:r}),t.addEventListener("pointerdown",XF.#s,{signal:r});const n=this.#o=document.createElement("div");n.className="buttons",t.append(n);const o=this.#r.toolbarPosition;if(o){const{style:i}=t,a=this.#r._uiManager.direction==="ltr"?1-o[0]:o[0];i.insetInlineEnd=`${100*a}%`,i.top=`calc(${100*o[1]}% + var(--editor-toolbar-vert-offset))`}return this.#d(),t}static#s(t){t.stopPropagation()}#n(t){this.#r._focusEventsAllowed=!1,t.preventDefault(),t.stopPropagation()}#i(t){this.#r._focusEventsAllowed=!0,t.preventDefault(),t.stopPropagation()}#l(t){const r=this.#r._uiManager._signal;t.addEventListener("focusin",this.#n.bind(this),{capture:!0,signal:r}),t.addEventListener("focusout",this.#i.bind(this),{capture:!0,signal:r}),t.addEventListener("contextmenu",ks,{signal:r})}hide(){this.#e.classList.add("hidden"),this.#t?.hideDropdown()}show(){this.#e.classList.remove("hidden")}#d(){const t=document.createElement("button");t.className="delete",t.tabIndex=0,t.setAttribute("data-l10n-id",`pdfjs-editor-remove-${this.#r.editorType}-button`),this.#l(t),t.addEventListener("click",r=>{this.#r._uiManager.delete()},{signal:this.#r._uiManager._signal}),this.#o.append(t)}get#u(){const t=document.createElement("div");return t.className="divider",t}addAltTextButton(t){this.#l(t),this.#o.prepend(t,this.#u)}addColorPicker(t){this.#t=t;const r=t.renderButton();this.#l(r),this.#o.prepend(r,this.#u)}remove(){this.#e.remove(),this.#t?.destroy(),this.#t=null}}class U2t{#e=null;#t=null;#r;constructor(t){this.#r=t}#o(){const t=this.#t=document.createElement("div");t.className="editToolbar",t.setAttribute("role","toolbar"),t.addEventListener("contextmenu",ks,{signal:this.#r._signal});const r=this.#e=document.createElement("div");return r.className="buttons",t.append(r),this.#n(),t}#s(t,r){let n=0,o=0;for(const i of t){const a=i.y+i.height;if(a<n)continue;const l=i.x+(r?i.width:0);if(a>n){o=l,n=a;continue}r?l>o&&(o=l):l<o&&(o=l)}return[r?1-o:o,n]}show(t,r,n){const[o,i]=this.#s(r,n),{style:a}=this.#t||=this.#o();t.append(this.#t),a.insetInlineEnd=`${100*o}%`,a.top=`calc(${100*i}% + var(--editor-toolbar-vert-offset))`}hide(){this.#t.remove()}#n(){const t=document.createElement("button");t.className="highlightButton",t.tabIndex=0,t.setAttribute("data-l10n-id","pdfjs-highlight-floating-button1");const r=document.createElement("span");t.append(r),r.className="visuallyHidden",r.setAttribute("data-l10n-id","pdfjs-highlight-floating-button-label");const n=this.#r._signal;t.addEventListener("contextmenu",ks,{signal:n}),t.addEventListener("click",()=>{this.#r.highlightSelection("floating_button")},{signal:n}),this.#e.append(t)}}function ab(e,t,r){for(const n of r)t.addEventListener(n,e[n].bind(e))}function W2t(e){return Math.round(Math.min(255,Math.max(1,255*e))).toString(16).padStart(2,"0")}class Y2t{#e=0;get id(){return`${S2t}${this.#e++}`}}class JF{#e=O2t();#t=0;#r=null;static get _isSVGFittingCanvas(){const t='data:image/svg+xml;charset=UTF-8,<svg viewBox="0 0 1 1" width="1" height="1" xmlns="http://www.w3.org/2000/svg"><rect width="1" height="1" style="fill:red;"/></svg>',n=new OffscreenCanvas(1,3).getContext("2d",{willReadFrequently:!0}),o=new Image;o.src=t;const i=o.decode().then(()=>(n.drawImage(o,0,0,1,1,0,0,1,3),new Uint32Array(n.getImageData(0,0,1,1).data.buffer)[0]===0));return bn(this,"_isSVGFittingCanvas",i)}async#o(t,r){this.#r||=new Map;let n=this.#r.get(t);if(n===null)return null;if(n?.bitmap)return n.refCounter+=1,n;try{n||={bitmap:null,id:`image_${this.#e}_${this.#t++}`,refCounter:0,isSvg:!1};let o;if(typeof r=="string"?(n.url=r,o=await Dx(r,"blob")):o=n.file=r,o.type==="image/svg+xml"){const i=JF._isSVGFittingCanvas,a=new FileReader,l=new Image,d=new Promise((u,p)=>{l.onload=()=>{n.bitmap=l,n.isSvg=!0,u()},a.onload=async()=>{const h=n.svgUrl=a.result;l.src=await i?`${h}#svgView(preserveAspectRatio(none))`:h},l.onerror=a.onerror=p});a.readAsDataURL(o),await d}else n.bitmap=await createImageBitmap(o);n.refCounter=1}catch(o){console.error(o),n=null}return this.#r.set(t,n),n&&this.#r.set(n.id,n),n}async getFromFile(t){const{lastModified:r,name:n,size:o,type:i}=t;return this.#o(`${r}_${n}_${o}_${i}`,t)}async getFromUrl(t){return this.#o(t,t)}async getFromId(t){this.#r||=new Map;const r=this.#r.get(t);return r?r.bitmap?(r.refCounter+=1,r):r.file?this.getFromFile(r.file):this.getFromUrl(r.url):null}getSvgUrl(t){const r=this.#r.get(t);return r?.isSvg?r.svgUrl:null}deleteId(t){this.#r||=new Map;const r=this.#r.get(t);r&&(r.refCounter-=1,r.refCounter===0&&(r.bitmap=null))}isValidId(t){return t.startsWith(`image_${this.#e}_`)}}class G2t{#e=[];#t=!1;#r;#o=-1;constructor(t=128){this.#r=t}add({cmd:t,undo:r,post:n,mustExec:o,type:i=NaN,overwriteIfSameType:a=!1,keepUndo:l=!1}){if(o&&t(),this.#t)return;const d={cmd:t,undo:r,post:n,type:i};if(this.#o===-1){this.#e.length>0&&(this.#e.length=0),this.#o=0,this.#e.push(d);return}if(a&&this.#e[this.#o].type===i){l&&(d.undo=this.#e[this.#o].undo),this.#e[this.#o]=d;return}const u=this.#o+1;u===this.#r?this.#e.splice(0,1):(this.#o=u,u<this.#e.length&&this.#e.splice(u)),this.#e.push(d)}undo(){if(this.#o===-1)return;this.#t=!0;const{undo:t,post:r}=this.#e[this.#o];t(),r?.(),this.#t=!1,this.#o-=1}redo(){if(this.#o<this.#e.length-1){this.#o+=1,this.#t=!0;const{cmd:t,post:r}=this.#e[this.#o];t(),r?.(),this.#t=!1}}hasSomethingToUndo(){return this.#o!==-1}hasSomethingToRedo(){return this.#o<this.#e.length-1}destroy(){this.#e=null}}class f6{constructor(t){this.buffer=[],this.callbacks=new Map,this.allKeys=new Set;const{isMac:r}=xs.platform;for(const[n,o,i={}]of t)for(const a of n){const l=a.startsWith("mac+");r&&l?(this.callbacks.set(a.slice(4),{callback:o,options:i}),this.allKeys.add(a.split("+").at(-1))):!r&&!l&&(this.callbacks.set(a,{callback:o,options:i}),this.allKeys.add(a.split("+").at(-1)))}}#e(t){t.altKey&&this.buffer.push("alt"),t.ctrlKey&&this.buffer.push("ctrl"),t.metaKey&&this.buffer.push("meta"),t.shiftKey&&this.buffer.push("shift"),this.buffer.push(t.key);const r=this.buffer.join("+");return this.buffer.length=0,r}exec(t,r){if(!this.allKeys.has(r.key))return;const n=this.callbacks.get(this.#e(r));if(!n)return;const{callback:o,options:{bubbles:i=!1,args:a=[],checker:l=null}}=n;l&&!l(t,r)||(o.bind(t,...a,r)(),i||(r.stopPropagation(),r.preventDefault()))}}class eN{static _colorsMapping=new Map([["CanvasText",[0,0,0]],["Canvas",[255,255,255]]]);get _colors(){const t=new Map([["CanvasText",null],["Canvas",null]]);return V2t(t),bn(this,"_colors",t)}convert(t){const r=QF(t);if(!window.matchMedia("(forced-colors: active)").matches)return r;for(const[n,o]of this._colors)if(o.every((i,a)=>i===r[a]))return eN._colorsMapping.get(n);return r}getHexCode(t){const r=this._colors.get(t);return r?ar.makeHexColor(...r):t}}class P0{#e=new AbortController;#t=null;#r=new Map;#o=new Map;#s=null;#n=null;#i=null;#l=new G2t;#d=0;#u=new Set;#h=null;#c=null;#a=new Set;#m=!1;#g=null;#p=null;#v=null;#f=!1;#b=null;#x=new Y2t;#$=!1;#k=!1;#E=null;#L=null;#S=null;#w=fn.NONE;#y=new Set;#C=null;#_=null;#T=null;#M=this.blur.bind(this);#D=this.focus.bind(this);#j=this.copy.bind(this);#P=this.cut.bind(this);#R=this.paste.bind(this);#I=this.keydown.bind(this);#U=this.keyup.bind(this);#W=this.onEditingAction.bind(this);#H=this.onPageChanging.bind(this);#z=this.onScaleChanging.bind(this);#O=this.onRotationChanging.bind(this);#Z={isEditing:!1,isEmpty:!0,hasSomethingToUndo:!1,hasSomethingToRedo:!1,hasSelectedEditor:!1,hasSelectedText:!1};#V=[0,0];#F=null;#B=null;#K=null;static TRANSLATE_SMALL=1;static TRANSLATE_BIG=10;static get _keyboardManager(){const t=P0.prototype,r=a=>a.#B.contains(document.activeElement)&&document.activeElement.tagName!=="BUTTON"&&a.hasSomethingToControl(),n=(a,{target:l})=>{if(l instanceof HTMLInputElement){const{type:d}=l;return d!=="text"&&d!=="number"}return!0},o=this.TRANSLATE_SMALL,i=this.TRANSLATE_BIG;return bn(this,"_keyboardManager",new f6([[["ctrl+a","mac+meta+a"],t.selectAll,{checker:n}],[["ctrl+z","mac+meta+z"],t.undo,{checker:n}],[["ctrl+y","ctrl+shift+z","mac+meta+shift+z","ctrl+shift+Z","mac+meta+shift+Z"],t.redo,{checker:n}],[["Backspace","alt+Backspace","ctrl+Backspace","shift+Backspace","mac+Backspace","mac+alt+Backspace","mac+ctrl+Backspace","Delete","ctrl+Delete","shift+Delete","mac+Delete"],t.delete,{checker:n}],[["Enter","mac+Enter"],t.addNewEditorFromKeyboard,{checker:(a,{target:l})=>!(l instanceof HTMLButtonElement)&&a.#B.contains(l)&&!a.isEnterHandled}],[[" ","mac+ "],t.addNewEditorFromKeyboard,{checker:(a,{target:l})=>!(l instanceof HTMLButtonElement)&&a.#B.contains(document.activeElement)}],[["Escape","mac+Escape"],t.unselectAll],[["ArrowLeft","mac+ArrowLeft"],t.translateSelectedEditors,{args:[-o,0],checker:r}],[["ctrl+ArrowLeft","mac+shift+ArrowLeft"],t.translateSelectedEditors,{args:[-i,0],checker:r}],[["ArrowRight","mac+ArrowRight"],t.translateSelectedEditors,{args:[o,0],checker:r}],[["ctrl+ArrowRight","mac+shift+ArrowRight"],t.translateSelectedEditors,{args:[i,0],checker:r}],[["ArrowUp","mac+ArrowUp"],t.translateSelectedEditors,{args:[0,-o],checker:r}],[["ctrl+ArrowUp","mac+shift+ArrowUp"],t.translateSelectedEditors,{args:[0,-i],checker:r}],[["ArrowDown","mac+ArrowDown"],t.translateSelectedEditors,{args:[0,o],checker:r}],[["ctrl+ArrowDown","mac+shift+ArrowDown"],t.translateSelectedEditors,{args:[0,i],checker:r}]]))}constructor(t,r,n,o,i,a,l,d,u){this._signal=this.#e.signal,this.#B=t,this.#K=r,this.#s=n,this._eventBus=o,this._eventBus._on("editingaction",this.#W),this._eventBus._on("pagechanging",this.#H),this._eventBus._on("scalechanging",this.#z),this._eventBus._on("rotationchanging",this.#O),this.#oe(),this.#le(),this.#Q(),this.#n=i.annotationStorage,this.#g=i.filterFactory,this.#_=a,this.#v=l||null,this.#m=d,this.#S=u||null,this.viewParameters={realScale:Jf.PDF_TO_CSS_UNITS,rotation:0},this.isShiftKeyDown=!1}destroy(){this.#e?.abort(),this.#e=null,this._signal=null,this._eventBus._off("editingaction",this.#W),this._eventBus._off("pagechanging",this.#H),this._eventBus._off("scalechanging",this.#z),this._eventBus._off("rotationchanging",this.#O);for(const t of this.#o.values())t.destroy();this.#o.clear(),this.#r.clear(),this.#a.clear(),this.#t=null,this.#y.clear(),this.#l.destroy(),this.#s?.destroy(),this.#b?.hide(),this.#b=null,this.#p&&(clearTimeout(this.#p),this.#p=null),this.#F&&(clearTimeout(this.#F),this.#F=null)}async mlGuess(t){return this.#S?.guess(t)||null}get hasMLManager(){return!!this.#S}get hcmFilter(){return bn(this,"hcmFilter",this.#_?this.#g.addHCMFilter(this.#_.foreground,this.#_.background):"none")}get direction(){return bn(this,"direction",getComputedStyle(this.#B).direction)}get highlightColors(){return bn(this,"highlightColors",this.#v?new Map(this.#v.split(",").map(t=>t.split("=").map(r=>r.trim()))):null)}get highlightColorNames(){return bn(this,"highlightColorNames",this.highlightColors?new Map(Array.from(this.highlightColors,t=>t.reverse())):null)}setMainHighlightColorPicker(t){this.#L=t}editAltText(t){this.#s?.editAltText(this,t)}onPageChanging({pageNumber:t}){this.#d=t-1}focusMainContainer(){this.#B.focus()}findParent(t,r){for(const n of this.#o.values()){const{x:o,y:i,width:a,height:l}=n.div.getBoundingClientRect();if(t>=o&&t<=o+a&&r>=i&&r<=i+l)return n}return null}disableUserSelect(t=!1){this.#K.classList.toggle("noUserSelect",t)}addShouldRescale(t){this.#a.add(t)}removeShouldRescale(t){this.#a.delete(t)}onScaleChanging({scale:t}){this.commitOrRemove(),this.viewParameters.realScale=t*Jf.PDF_TO_CSS_UNITS;for(const r of this.#a)r.onScaleChanging()}onRotationChanging({pagesRotation:t}){this.commitOrRemove(),this.viewParameters.rotation=t}#G({anchorNode:t}){return t.nodeType===Node.TEXT_NODE?t.parentElement:t}highlightSelection(t=""){const r=document.getSelection();if(!r||r.isCollapsed)return;const{anchorNode:n,anchorOffset:o,focusNode:i,focusOffset:a}=r,l=r.toString(),u=this.#G(r).closest(".textLayer"),p=this.getSelectionBoxes(u);if(p){r.empty(),this.#w===fn.NONE&&(this._eventBus.dispatch("showannotationeditorui",{source:this,mode:fn.HIGHLIGHT}),this.showAllEditors("highlight",!0,!0));for(const h of this.#o.values())if(h.hasTextLayer(u)){h.createAndAddNewEditor({x:0,y:0},!1,{methodOfCreation:t,boxes:p,anchorNode:n,anchorOffset:o,focusNode:i,focusOffset:a,text:l});break}}}#re(){const t=document.getSelection();if(!t||t.isCollapsed)return;const n=this.#G(t).closest(".textLayer"),o=this.getSelectionBoxes(n);o&&(this.#b||=new U2t(this),this.#b.show(n,o,this.direction==="ltr"))}addToAnnotationStorage(t){!t.isEmpty()&&this.#n&&!this.#n.has(t.id)&&this.#n.setValue(t.id,t)}#ne(){const t=document.getSelection();if(!t||t.isCollapsed){this.#C&&(this.#b?.hide(),this.#C=null,this.#A({hasSelectedText:!1}));return}const{anchorNode:r}=t;if(r===this.#C)return;if(!this.#G(t).closest(".textLayer")){this.#C&&(this.#b?.hide(),this.#C=null,this.#A({hasSelectedText:!1}));return}if(this.#b?.hide(),this.#C=r,this.#A({hasSelectedText:!0}),!(this.#w!==fn.HIGHLIGHT&&this.#w!==fn.NONE)&&(this.#w===fn.HIGHLIGHT&&this.showAllEditors("highlight",!0,!0),this.#f=this.isShiftKeyDown,!this.isShiftKeyDown)){const i=this._signal,a=l=>{l.type==="pointerup"&&l.button!==0||(window.removeEventListener("pointerup",a),window.removeEventListener("blur",a),l.type==="pointerup"&&this.#q("main_toolbar"))};window.addEventListener("pointerup",a,{signal:i}),window.addEventListener("blur",a,{signal:i})}}#q(t=""){this.#w===fn.HIGHLIGHT?this.highlightSelection(t):this.#m&&this.#re()}#oe(){document.addEventListener("selectionchange",this.#ne.bind(this),{signal:this._signal})}#ie(){const t=this._signal;window.addEventListener("focus",this.#D,{signal:t}),window.addEventListener("blur",this.#M,{signal:t})}#ae(){window.removeEventListener("focus",this.#D),window.removeEventListener("blur",this.#M)}blur(){if(this.isShiftKeyDown=!1,this.#f&&(this.#f=!1,this.#q("main_toolbar")),!this.hasSelection)return;const{activeElement:t}=document;for(const r of this.#y)if(r.div.contains(t)){this.#E=[r,t],r._focusEventsAllowed=!1;break}}focus(){if(!this.#E)return;const[t,r]=this.#E;this.#E=null,r.addEventListener("focusin",()=>{t._focusEventsAllowed=!0},{once:!0,signal:this._signal}),r.focus()}#Q(){const t=this._signal;window.addEventListener("keydown",this.#I,{signal:t}),window.addEventListener("keyup",this.#U,{signal:t})}#se(){window.removeEventListener("keydown",this.#I),window.removeEventListener("keyup",this.#U)}#X(){const t=this._signal;document.addEventListener("copy",this.#j,{signal:t}),document.addEventListener("cut",this.#P,{signal:t}),document.addEventListener("paste",this.#R,{signal:t})}#J(){document.removeEventListener("copy",this.#j),document.removeEventListener("cut",this.#P),document.removeEventListener("paste",this.#R)}#le(){const t=this._signal;document.addEventListener("dragover",this.dragOver.bind(this),{signal:t}),document.addEventListener("drop",this.drop.bind(this),{signal:t})}addEditListeners(){this.#Q(),this.#X()}removeEditListeners(){this.#se(),this.#J()}dragOver(t){for(const{type:r}of t.dataTransfer.items)for(const n of this.#c)if(n.isHandlingMimeForPasting(r)){t.dataTransfer.dropEffect="copy",t.preventDefault();return}}drop(t){for(const r of t.dataTransfer.items)for(const n of this.#c)if(n.isHandlingMimeForPasting(r.type)){n.paste(r,this.currentLayer),t.preventDefault();return}}copy(t){if(t.preventDefault(),this.#t?.commitOrRemove(),!this.hasSelection)return;const r=[];for(const n of this.#y){const o=n.serialize(!0);o&&r.push(o)}r.length!==0&&t.clipboardData.setData("application/pdfjs",JSON.stringify(r))}cut(t){this.copy(t),this.delete()}paste(t){t.preventDefault();const{clipboardData:r}=t;for(const i of r.items)for(const a of this.#c)if(a.isHandlingMimeForPasting(i.type)){a.paste(i,this.currentLayer);return}let n=r.getData("application/pdfjs");if(!n)return;try{n=JSON.parse(n)}catch(i){Xr(`paste: "${i.message}".`);return}if(!Array.isArray(n))return;this.unselectAll();const o=this.currentLayer;try{const i=[];for(const d of n){const u=o.deserialize(d);if(!u)return;i.push(u)}const a=()=>{for(const d of i)this.#ee(d);this.#te(i)},l=()=>{for(const d of i)d.remove()};this.addCommands({cmd:a,undo:l,mustExec:!0})}catch(i){Xr(`paste: "${i.message}".`)}}keydown(t){!this.isShiftKeyDown&&t.key==="Shift"&&(this.isShiftKeyDown=!0),this.#w!==fn.NONE&&!this.isEditorHandlingKeyboard&&P0._keyboardManager.exec(this,t)}keyup(t){this.isShiftKeyDown&&t.key==="Shift"&&(this.isShiftKeyDown=!1,this.#f&&(this.#f=!1,this.#q("main_toolbar")))}onEditingAction({name:t}){switch(t){case"undo":case"redo":case"delete":case"selectAll":this[t]();break;case"highlightSelection":this.highlightSelection("context_menu");break}}#A(t){Object.entries(t).some(([n,o])=>this.#Z[n]!==o)&&(this._eventBus.dispatch("annotationeditorstateschanged",{source:this,details:Object.assign(this.#Z,t)}),this.#w===fn.HIGHLIGHT&&t.hasSelectedEditor===!1&&this.#N([[Pr.HIGHLIGHT_FREE,!0]]))}#N(t){this._eventBus.dispatch("annotationeditorparamschanged",{source:this,details:t})}setEditingState(t){t?(this.#ie(),this.#X(),this.#A({isEditing:this.#w!==fn.NONE,isEmpty:this.#Y(),hasSomethingToUndo:this.#l.hasSomethingToUndo(),hasSomethingToRedo:this.#l.hasSomethingToRedo(),hasSelectedEditor:!1})):(this.#ae(),this.#J(),this.#A({isEditing:!1}),this.disableUserSelect(!1))}registerEditorTypes(t){if(!this.#c){this.#c=t;for(const r of this.#c)this.#N(r.defaultPropertiesToUpdate)}}getId(){return this.#x.id}get currentLayer(){return this.#o.get(this.#d)}getLayer(t){return this.#o.get(t)}get currentPageIndex(){return this.#d}addLayer(t){this.#o.set(t.pageIndex,t),this.#$?t.enable():t.disable()}removeLayer(t){this.#o.delete(t.pageIndex)}updateMode(t,r=null,n=!1){if(this.#w!==t){if(this.#w=t,t===fn.NONE){this.setEditingState(!1),this.#de();return}this.setEditingState(!0),this.#ce(),this.unselectAll();for(const o of this.#o.values())o.updateMode(t);if(!r&&n){this.addNewEditorFromKeyboard();return}if(r){for(const o of this.#r.values())if(o.annotationElementId===r){this.setSelected(o),o.enterInEditMode();break}}}}addNewEditorFromKeyboard(){this.currentLayer.canCreateNewEmptyEditor()&&this.currentLayer.addNewEditor()}updateToolbar(t){t!==this.#w&&this._eventBus.dispatch("switchannotationeditormode",{source:this,mode:t})}updateParams(t,r){if(this.#c){switch(t){case Pr.CREATE:this.currentLayer.addNewEditor();return;case Pr.HIGHLIGHT_DEFAULT_COLOR:this.#L?.updateColor(r);break;case Pr.HIGHLIGHT_SHOW_ALL:this._eventBus.dispatch("reporttelemetry",{source:this,details:{type:"editing",data:{type:"highlight",action:"toggle_visibility"}}}),(this.#T||=new Map).set(t,r),this.showAllEditors("highlight",r);break}for(const n of this.#y)n.updateParams(t,r);for(const n of this.#c)n.updateDefaultParams(t,r)}}showAllEditors(t,r,n=!1){for(const i of this.#r.values())i.editorType===t&&i.show(r);(this.#T?.get(Pr.HIGHLIGHT_SHOW_ALL)??!0)!==r&&this.#N([[Pr.HIGHLIGHT_SHOW_ALL,r]])}enableWaiting(t=!1){if(this.#k!==t){this.#k=t;for(const r of this.#o.values())t?r.disableClick():r.enableClick(),r.div.classList.toggle("waiting",t)}}#ce(){if(!this.#$){this.#$=!0;for(const t of this.#o.values())t.enable();for(const t of this.#r.values())t.enable()}}#de(){if(this.unselectAll(),this.#$){this.#$=!1;for(const t of this.#o.values())t.disable();for(const t of this.#r.values())t.disable()}}getEditors(t){const r=[];for(const n of this.#r.values())n.pageIndex===t&&r.push(n);return r}getEditor(t){return this.#r.get(t)}addEditor(t){this.#r.set(t.id,t)}removeEditor(t){t.div.contains(document.activeElement)&&(this.#p&&clearTimeout(this.#p),this.#p=setTimeout(()=>{this.focusMainContainer(),this.#p=null},0)),this.#r.delete(t.id),this.unselect(t),(!t.annotationElementId||!this.#u.has(t.annotationElementId))&&this.#n?.remove(t.id)}addDeletedAnnotationElement(t){this.#u.add(t.annotationElementId),this.addChangedExistingAnnotation(t),t.deleted=!0}isDeletedAnnotationElement(t){return this.#u.has(t)}removeDeletedAnnotationElement(t){this.#u.delete(t.annotationElementId),this.removeChangedExistingAnnotation(t),t.deleted=!1}#ee(t){const r=this.#o.get(t.pageIndex);r?r.addOrRebuild(t):(this.addEditor(t),this.addToAnnotationStorage(t))}setActiveEditor(t){this.#t!==t&&(this.#t=t,t&&this.#N(t.propertiesToUpdate))}get#ue(){let t=null;for(t of this.#y);return t}updateUI(t){this.#ue===t&&this.#N(t.propertiesToUpdate)}toggleSelected(t){if(this.#y.has(t)){this.#y.delete(t),t.unselect(),this.#A({hasSelectedEditor:this.hasSelection});return}this.#y.add(t),t.select(),this.#N(t.propertiesToUpdate),this.#A({hasSelectedEditor:!0})}setSelected(t){for(const r of this.#y)r!==t&&r.unselect();this.#y.clear(),this.#y.add(t),t.select(),this.#N(t.propertiesToUpdate),this.#A({hasSelectedEditor:!0})}isSelected(t){return this.#y.has(t)}get firstSelectedEditor(){return this.#y.values().next().value}unselect(t){t.unselect(),this.#y.delete(t),this.#A({hasSelectedEditor:this.hasSelection})}get hasSelection(){return this.#y.size!==0}get isEnterHandled(){return this.#y.size===1&&this.firstSelectedEditor.isEnterHandled}undo(){this.#l.undo(),this.#A({hasSomethingToUndo:this.#l.hasSomethingToUndo(),hasSomethingToRedo:!0,isEmpty:this.#Y()})}redo(){this.#l.redo(),this.#A({hasSomethingToUndo:!0,hasSomethingToRedo:this.#l.hasSomethingToRedo(),isEmpty:this.#Y()})}addCommands(t){this.#l.add(t),this.#A({hasSomethingToUndo:!0,hasSomethingToRedo:!1,isEmpty:this.#Y()})}#Y(){if(this.#r.size===0)return!0;if(this.#r.size===1)for(const t of this.#r.values())return t.isEmpty();return!1}delete(){if(this.commitOrRemove(),!this.hasSelection)return;const t=[...this.#y],r=()=>{for(const o of t)o.remove()},n=()=>{for(const o of t)this.#ee(o)};this.addCommands({cmd:r,undo:n,mustExec:!0})}commitOrRemove(){this.#t?.commitOrRemove()}hasSomethingToControl(){return this.#t||this.hasSelection}#te(t){for(const r of this.#y)r.unselect();this.#y.clear();for(const r of t)r.isEmpty()||(this.#y.add(r),r.select());this.#A({hasSelectedEditor:this.hasSelection})}selectAll(){for(const t of this.#y)t.commit();this.#te(this.#r.values())}unselectAll(){if(!(this.#t&&(this.#t.commitOrRemove(),this.#w!==fn.NONE))&&this.hasSelection){for(const t of this.#y)t.unselect();this.#y.clear(),this.#A({hasSelectedEditor:!1})}}translateSelectedEditors(t,r,n=!1){if(n||this.commitOrRemove(),!this.hasSelection)return;this.#V[0]+=t,this.#V[1]+=r;const[o,i]=this.#V,a=[...this.#y],l=1e3;this.#F&&clearTimeout(this.#F),this.#F=setTimeout(()=>{this.#F=null,this.#V[0]=this.#V[1]=0,this.addCommands({cmd:()=>{for(const d of a)this.#r.has(d.id)&&d.translateInPage(o,i)},undo:()=>{for(const d of a)this.#r.has(d.id)&&d.translateInPage(-o,-i)},mustExec:!1})},l);for(const d of a)d.translateInPage(t,r)}setUpDragSession(){if(this.hasSelection){this.disableUserSelect(!0),this.#h=new Map;for(const t of this.#y)this.#h.set(t,{savedX:t.x,savedY:t.y,savedPageIndex:t.pageIndex,newX:0,newY:0,newPageIndex:-1})}}endDragSession(){if(!this.#h)return!1;this.disableUserSelect(!1);const t=this.#h;this.#h=null;let r=!1;for(const[{x:o,y:i,pageIndex:a},l]of t)l.newX=o,l.newY=i,l.newPageIndex=a,r||=o!==l.savedX||i!==l.savedY||a!==l.savedPageIndex;if(!r)return!1;const n=(o,i,a,l)=>{if(this.#r.has(o.id)){const d=this.#o.get(l);d?o._setParentAndPosition(d,i,a):(o.pageIndex=l,o.x=i,o.y=a)}};return this.addCommands({cmd:()=>{for(const[o,{newX:i,newY:a,newPageIndex:l}]of t)n(o,i,a,l)},undo:()=>{for(const[o,{savedX:i,savedY:a,savedPageIndex:l}]of t)n(o,i,a,l)},mustExec:!0}),!0}dragSelectedEditors(t,r){if(this.#h)for(const n of this.#h.keys())n.drag(t,r)}rebuild(t){if(t.parent===null){const r=this.getLayer(t.pageIndex);r?(r.changeParent(t),r.addOrRebuild(t)):(this.addEditor(t),this.addToAnnotationStorage(t),t.rebuild())}else t.parent.addOrRebuild(t)}get isEditorHandlingKeyboard(){return this.getActive()?.shouldGetKeyboardEvents()||this.#y.size===1&&this.firstSelectedEditor.shouldGetKeyboardEvents()}isActive(t){return this.#t===t}getActive(){return this.#t}getMode(){return this.#w}get imageManager(){return bn(this,"imageManager",new JF)}getSelectionBoxes(t){if(!t)return null;const r=document.getSelection();for(let u=0,p=r.rangeCount;u<p;u++)if(!t.contains(r.getRangeAt(u).commonAncestorContainer))return null;const{x:n,y:o,width:i,height:a}=t.getBoundingClientRect();let l;switch(t.getAttribute("data-main-rotation")){case"90":l=(u,p,h,f)=>({x:(p-o)/a,y:1-(u+h-n)/i,width:f/a,height:h/i});break;case"180":l=(u,p,h,f)=>({x:1-(u+h-n)/i,y:1-(p+f-o)/a,width:h/i,height:f/a});break;case"270":l=(u,p,h,f)=>({x:1-(p+f-o)/a,y:(u-n)/i,width:f/a,height:h/i});break;default:l=(u,p,h,f)=>({x:(u-n)/i,y:(p-o)/a,width:h/i,height:f/a});break}const d=[];for(let u=0,p=r.rangeCount;u<p;u++){const h=r.getRangeAt(u);if(!h.collapsed)for(const{x:f,y:g,width:y,height:v}of h.getClientRects())y===0||v===0||d.push(l(f,g,y,v))}return d.length===0?null:d}addChangedExistingAnnotation({annotationElementId:t,id:r}){(this.#i||=new Map).set(t,r)}removeChangedExistingAnnotation({annotationElementId:t}){this.#i?.delete(t)}renderAnnotationElement(t){const r=this.#i?.get(t.data.id);if(!r)return;const n=this.#n.getRawValue(r);n&&(this.#w===fn.NONE&&!n.hasBeenModified||n.renderAnnotationElement(t))}}class Bh{#e="";#t=!1;#r=null;#o=null;#s=null;#n=!1;#i=null;static _l10nPromise=null;constructor(t){this.#i=t}static initialize(t){Bh._l10nPromise||=t}async render(){const t=this.#r=document.createElement("button");t.className="altText";const r=await Bh._l10nPromise.get("pdfjs-editor-alt-text-button-label");t.textContent=r,t.setAttribute("aria-label",r),t.tabIndex="0";const n=this.#i._uiManager._signal;t.addEventListener("contextmenu",ks,{signal:n}),t.addEventListener("pointerdown",i=>i.stopPropagation(),{signal:n});const o=i=>{i.preventDefault(),this.#i._uiManager.editAltText(this.#i)};return t.addEventListener("click",o,{capture:!0,signal:n}),t.addEventListener("keydown",i=>{i.target===t&&i.key==="Enter"&&(this.#n=!0,o(i))},{signal:n}),await this.#l(),t}finish(){this.#r&&(this.#r.focus({focusVisible:this.#n}),this.#n=!1)}isEmpty(){return!this.#e&&!this.#t}get data(){return{altText:this.#e,decorative:this.#t}}set data({altText:t,decorative:r}){this.#e===t&&this.#t===r||(this.#e=t,this.#t=r,this.#l())}toggle(t=!1){this.#r&&(!t&&this.#s&&(clearTimeout(this.#s),this.#s=null),this.#r.disabled=!t)}destroy(){this.#r?.remove(),this.#r=null,this.#o=null}async#l(){const t=this.#r;if(!t)return;if(!this.#e&&!this.#t){t.classList.remove("done"),this.#o?.remove();return}t.classList.add("done"),Bh._l10nPromise.get("pdfjs-editor-alt-text-edit-button-label").then(o=>{t.setAttribute("aria-label",o)});let r=this.#o;if(!r){this.#o=r=document.createElement("span"),r.className="tooltip",r.setAttribute("role","tooltip");const o=r.id=`alt-text-tooltip-${this.#i.id}`;t.setAttribute("aria-describedby",o);const i=100,a=this.#i._uiManager._signal;a.addEventListener("abort",()=>{clearTimeout(this.#s),this.#s=null},{once:!0}),t.addEventListener("mouseenter",()=>{this.#s=setTimeout(()=>{this.#s=null,this.#o.classList.add("show"),this.#i._reportTelemetry({action:"alt_text_tooltip"})},i)},{signal:a}),t.addEventListener("mouseleave",()=>{this.#s&&(clearTimeout(this.#s),this.#s=null),this.#o?.classList.remove("show")},{signal:a})}r.innerText=this.#t?await Bh._l10nPromise.get("pdfjs-editor-alt-text-decorative-tooltip"):this.#e,r.parentNode||t.append(r),this.#i.getImageForAltText()?.setAttribute("aria-describedby",r.id)}}class Tr{#e=null;#t=null;#r=null;#o=!1;#s=!1;#n=null;#i=null;#l=this.focusin.bind(this);#d=this.focusout.bind(this);#u=null;#h="";#c=!1;#a=null;#m=!1;#g=!1;#p=!1;#v=null;#f=0;#b=0;#x=null;_initialOptions=Object.create(null);_isVisible=!0;_uiManager=null;_focusEventsAllowed=!0;_l10nPromise=null;#$=!1;#k=Tr._zIndex++;static _borderLineWidth=-1;static _colorManager=new eN;static _zIndex=1;static _telemetryTimeout=1e3;static get _resizerKeyboardManager(){const t=Tr.prototype._resizeWithKeyboard,r=P0.TRANSLATE_SMALL,n=P0.TRANSLATE_BIG;return bn(this,"_resizerKeyboardManager",new f6([[["ArrowLeft","mac+ArrowLeft"],t,{args:[-r,0]}],[["ctrl+ArrowLeft","mac+shift+ArrowLeft"],t,{args:[-n,0]}],[["ArrowRight","mac+ArrowRight"],t,{args:[r,0]}],[["ctrl+ArrowRight","mac+shift+ArrowRight"],t,{args:[n,0]}],[["ArrowUp","mac+ArrowUp"],t,{args:[0,-r]}],[["ctrl+ArrowUp","mac+shift+ArrowUp"],t,{args:[0,-n]}],[["ArrowDown","mac+ArrowDown"],t,{args:[0,r]}],[["ctrl+ArrowDown","mac+shift+ArrowDown"],t,{args:[0,n]}],[["Escape","mac+Escape"],Tr.prototype._stopResizingWithKeyboard]]))}constructor(t){this.constructor===Tr&&to("Cannot initialize AnnotationEditor."),this.parent=t.parent,this.id=t.id,this.width=this.height=null,this.pageIndex=t.parent.pageIndex,this.name=t.name,this.div=null,this._uiManager=t.uiManager,this.annotationElementId=null,this._willKeepAspectRatio=!1,this._initialOptions.isCentered=t.isCentered,this._structTreeParentId=null;const{rotation:r,rawDims:{pageWidth:n,pageHeight:o,pageX:i,pageY:a}}=this.parent.viewport;this.rotation=r,this.pageRotation=(360+r-this._uiManager.viewParameters.rotation)%360,this.pageDimensions=[n,o],this.pageTranslation=[i,a];const[l,d]=this.parentDimensions;this.x=t.x/l,this.y=t.y/d,this.isAttachedToDOM=!1,this.deleted=!1}get editorType(){return Object.getPrototypeOf(this).constructor._type}static get _defaultLineColor(){return bn(this,"_defaultLineColor",this._colorManager.getHexCode("CanvasText"))}static deleteAnnotationElement(t){const r=new q2t({id:t.parent.getNextId(),parent:t.parent,uiManager:t._uiManager});r.annotationElementId=t.annotationElementId,r.deleted=!0,r._uiManager.addToAnnotationStorage(r)}static initialize(t,r,n){if(Tr._l10nPromise||=new Map(["pdfjs-editor-alt-text-button-label","pdfjs-editor-alt-text-edit-button-label","pdfjs-editor-alt-text-decorative-tooltip","pdfjs-editor-resizer-label-topLeft","pdfjs-editor-resizer-label-topMiddle","pdfjs-editor-resizer-label-topRight","pdfjs-editor-resizer-label-middleRight","pdfjs-editor-resizer-label-bottomRight","pdfjs-editor-resizer-label-bottomMiddle","pdfjs-editor-resizer-label-bottomLeft","pdfjs-editor-resizer-label-middleLeft"].map(i=>[i,t.get(i.replaceAll(/([A-Z])/g,a=>`-${a.toLowerCase()}`))])),n?.strings)for(const i of n.strings)Tr._l10nPromise.set(i,t.get(i));if(Tr._borderLineWidth!==-1)return;const o=getComputedStyle(document.documentElement);Tr._borderLineWidth=parseFloat(o.getPropertyValue("--outline-width"))||0}static updateDefaultParams(t,r){}static get defaultPropertiesToUpdate(){return[]}static isHandlingMimeForPasting(t){return!1}static paste(t,r){to("Not implemented")}get propertiesToUpdate(){return[]}get _isDraggable(){return this.#$}set _isDraggable(t){this.#$=t,this.div?.classList.toggle("draggable",t)}get isEnterHandled(){return!0}center(){const[t,r]=this.pageDimensions;switch(this.parentRotation){case 90:this.x-=this.height*r/(t*2),this.y+=this.width*t/(r*2);break;case 180:this.x+=this.width/2,this.y+=this.height/2;break;case 270:this.x+=this.height*r/(t*2),this.y-=this.width*t/(r*2);break;default:this.x-=this.width/2,this.y-=this.height/2;break}this.fixAndSetPosition()}addCommands(t){this._uiManager.addCommands(t)}get currentLayer(){return this._uiManager.currentLayer}setInBackground(){this.div.style.zIndex=0}setInForeground(){this.div.style.zIndex=this.#k}setParent(t){t!==null?(this.pageIndex=t.pageIndex,this.pageDimensions=t.pageDimensions):this.#I(),this.parent=t}focusin(t){this._focusEventsAllowed&&(this.#c?this.#c=!1:this.parent.setSelected(this))}focusout(t){!this._focusEventsAllowed||!this.isAttachedToDOM||t.relatedTarget?.closest(`#${this.id}`)||(t.preventDefault(),this.parent?.isMultipleSelection||this.commitOrRemove())}commitOrRemove(){this.isEmpty()?this.remove():this.commit()}commit(){this.addToAnnotationStorage()}addToAnnotationStorage(){this._uiManager.addToAnnotationStorage(this)}setAt(t,r,n,o){const[i,a]=this.parentDimensions;[n,o]=this.screenToPageTranslation(n,o),this.x=(t+n)/i,this.y=(r+o)/a,this.fixAndSetPosition()}#E([t,r],n,o){[n,o]=this.screenToPageTranslation(n,o),this.x+=n/t,this.y+=o/r,this.fixAndSetPosition()}translate(t,r){this.#E(this.parentDimensions,t,r)}translateInPage(t,r){this.#a||=[this.x,this.y],this.#E(this.pageDimensions,t,r),this.div.scrollIntoView({block:"nearest"})}drag(t,r){this.#a||=[this.x,this.y];const[n,o]=this.parentDimensions;if(this.x+=t/n,this.y+=r/o,this.parent&&(this.x<0||this.x>1||this.y<0||this.y>1)){const{x:u,y:p}=this.div.getBoundingClientRect();this.parent.findNewParent(this,u,p)&&(this.x-=Math.floor(this.x),this.y-=Math.floor(this.y))}let{x:i,y:a}=this;const[l,d]=this.getBaseTranslation();i+=l,a+=d,this.div.style.left=`${(100*i).toFixed(2)}%`,this.div.style.top=`${(100*a).toFixed(2)}%`,this.div.scrollIntoView({block:"nearest"})}get _hasBeenMoved(){return!!this.#a&&(this.#a[0]!==this.x||this.#a[1]!==this.y)}getBaseTranslation(){const[t,r]=this.parentDimensions,{_borderLineWidth:n}=Tr,o=n/t,i=n/r;switch(this.rotation){case 90:return[-o,i];case 180:return[o,i];case 270:return[o,-i];default:return[-o,-i]}}get _mustFixPosition(){return!0}fixAndSetPosition(t=this.rotation){const[r,n]=this.pageDimensions;let{x:o,y:i,width:a,height:l}=this;if(a*=r,l*=n,o*=r,i*=n,this._mustFixPosition)switch(t){case 0:o=Math.max(0,Math.min(r-a,o)),i=Math.max(0,Math.min(n-l,i));break;case 90:o=Math.max(0,Math.min(r-l,o)),i=Math.min(n,Math.max(a,i));break;case 180:o=Math.min(r,Math.max(a,o)),i=Math.min(n,Math.max(l,i));break;case 270:o=Math.min(r,Math.max(l,o)),i=Math.max(0,Math.min(n-a,i));break}this.x=o/=r,this.y=i/=n;const[d,u]=this.getBaseTranslation();o+=d,i+=u;const{style:p}=this.div;p.left=`${(100*o).toFixed(2)}%`,p.top=`${(100*i).toFixed(2)}%`,this.moveInDOM()}static#L(t,r,n){switch(n){case 90:return[r,-t];case 180:return[-t,-r];case 270:return[-r,t];default:return[t,r]}}screenToPageTranslation(t,r){return Tr.#L(t,r,this.parentRotation)}pageTranslationToScreen(t,r){return Tr.#L(t,r,360-this.parentRotation)}#S(t){switch(t){case 90:{const[r,n]=this.pageDimensions;return[0,-r/n,n/r,0]}case 180:return[-1,0,0,-1];case 270:{const[r,n]=this.pageDimensions;return[0,r/n,-n/r,0]}default:return[1,0,0,1]}}get parentScale(){return this._uiManager.viewParameters.realScale}get parentRotation(){return(this._uiManager.viewParameters.rotation+this.pageRotation)%360}get parentDimensions(){const{parentScale:t,pageDimensions:[r,n]}=this,o=r*t,i=n*t;return xs.isCSSRoundSupported?[Math.round(o),Math.round(i)]:[o,i]}setDims(t,r){const[n,o]=this.parentDimensions;this.div.style.width=`${(100*t/n).toFixed(2)}%`,this.#s||(this.div.style.height=`${(100*r/o).toFixed(2)}%`)}fixDims(){const{style:t}=this.div,{height:r,width:n}=t,o=n.endsWith("%"),i=!this.#s&&r.endsWith("%");if(o&&i)return;const[a,l]=this.parentDimensions;o||(t.width=`${(100*parseFloat(n)/a).toFixed(2)}%`),!this.#s&&!i&&(t.height=`${(100*parseFloat(r)/l).toFixed(2)}%`)}getInitialTranslation(){return[0,0]}#w(){if(this.#n)return;this.#n=document.createElement("div"),this.#n.classList.add("resizers");const t=this._willKeepAspectRatio?["topLeft","topRight","bottomRight","bottomLeft"]:["topLeft","topMiddle","topRight","middleRight","bottomRight","bottomMiddle","bottomLeft","middleLeft"],r=this._uiManager._signal;for(const n of t){const o=document.createElement("div");this.#n.append(o),o.classList.add("resizer",n),o.setAttribute("data-resizer-name",n),o.addEventListener("pointerdown",this.#y.bind(this,n),{signal:r}),o.addEventListener("contextmenu",ks,{signal:r}),o.tabIndex=-1}this.div.prepend(this.#n)}#y(t,r){r.preventDefault();const{isMac:n}=xs.platform;if(r.button!==0||r.ctrlKey&&n)return;this.#r?.toggle(!1);const o=this.#_.bind(this,t),i=this._isDraggable;this._isDraggable=!1;const a=this._uiManager._signal,l={passive:!0,capture:!0,signal:a};this.parent.togglePointerEvents(!1),window.addEventListener("pointermove",o,l),window.addEventListener("contextmenu",ks,{signal:a});const d=this.x,u=this.y,p=this.width,h=this.height,f=this.parent.div.style.cursor,g=this.div.style.cursor;this.div.style.cursor=this.parent.div.style.cursor=window.getComputedStyle(r.target).cursor;const y=()=>{this.parent.togglePointerEvents(!0),this.#r?.toggle(!0),this._isDraggable=i,window.removeEventListener("pointerup",y),window.removeEventListener("blur",y),window.removeEventListener("pointermove",o,l),window.removeEventListener("contextmenu",ks),this.parent.div.style.cursor=f,this.div.style.cursor=g,this.#C(d,u,p,h)};window.addEventListener("pointerup",y,{signal:a}),window.addEventListener("blur",y,{signal:a})}#C(t,r,n,o){const i=this.x,a=this.y,l=this.width,d=this.height;i===t&&a===r&&l===n&&d===o||this.addCommands({cmd:()=>{this.width=l,this.height=d,this.x=i,this.y=a;const[u,p]=this.parentDimensions;this.setDims(u*l,p*d),this.fixAndSetPosition()},undo:()=>{this.width=n,this.height=o,this.x=t,this.y=r;const[u,p]=this.parentDimensions;this.setDims(u*n,p*o),this.fixAndSetPosition()},mustExec:!0})}#_(t,r){const[n,o]=this.parentDimensions,i=this.x,a=this.y,l=this.width,d=this.height,u=Tr.MIN_SIZE/n,p=Tr.MIN_SIZE/o,h=I=>Math.round(I*1e4)/1e4,f=this.#S(this.rotation),g=(I,L)=>[f[0]*I+f[2]*L,f[1]*I+f[3]*L],y=this.#S(360-this.rotation),v=(I,L)=>[y[0]*I+y[2]*L,y[1]*I+y[3]*L];let w,x,$=!1,S=!1;switch(t){case"topLeft":$=!0,w=(I,L)=>[0,0],x=(I,L)=>[I,L];break;case"topMiddle":w=(I,L)=>[I/2,0],x=(I,L)=>[I/2,L];break;case"topRight":$=!0,w=(I,L)=>[I,0],x=(I,L)=>[0,L];break;case"middleRight":S=!0,w=(I,L)=>[I,L/2],x=(I,L)=>[0,L/2];break;case"bottomRight":$=!0,w=(I,L)=>[I,L],x=(I,L)=>[0,0];break;case"bottomMiddle":w=(I,L)=>[I/2,L],x=(I,L)=>[I/2,0];break;case"bottomLeft":$=!0,w=(I,L)=>[0,L],x=(I,L)=>[I,0];break;case"middleLeft":S=!0,w=(I,L)=>[0,L/2],x=(I,L)=>[I,L/2];break}const k=w(l,d),T=x(l,d);let E=g(...T);const A=h(i+E[0]),P=h(a+E[1]);let D=1,O=1,[V,j]=this.screenToPageTranslation(r.movementX,r.movementY);if([V,j]=v(V/n,j/o),$){const I=Math.hypot(l,d);D=O=Math.max(Math.min(Math.hypot(T[0]-k[0]-V,T[1]-k[1]-j)/I,1/l,1/d),u/l,p/d)}else S?D=Math.max(u,Math.min(1,Math.abs(T[0]-k[0]-V)))/l:O=Math.max(p,Math.min(1,Math.abs(T[1]-k[1]-j)))/d;const q=h(l*D),W=h(d*O);E=g(...x(q,W));const F=A-E[0],H=P-E[1];this.width=q,this.height=W,this.x=F,this.y=H,this.setDims(n*q,o*W),this.fixAndSetPosition()}altTextFinish(){this.#r?.finish()}async addEditToolbar(){return this.#u||this.#g?this.#u:(this.#u=new XF(this),this.div.append(this.#u.render()),this.#r&&this.#u.addAltTextButton(await this.#r.render()),this.#u)}removeEditToolbar(){this.#u&&(this.#u.remove(),this.#u=null,this.#r?.destroy())}getClientDimensions(){return this.div.getBoundingClientRect()}async addAltTextButton(){this.#r||(Bh.initialize(Tr._l10nPromise),this.#r=new Bh(this),this.#e&&(this.#r.data=this.#e,this.#e=null),await this.addEditToolbar())}get altTextData(){return this.#r?.data}set altTextData(t){this.#r&&(this.#r.data=t)}hasAltText(){return!this.#r?.isEmpty()}render(){this.div=document.createElement("div"),this.div.setAttribute("data-editor-rotation",(360-this.rotation)%360),this.div.className=this.name,this.div.setAttribute("id",this.id),this.div.tabIndex=this.#o?-1:0,this._isVisible||this.div.classList.add("hidden"),this.setInForeground();const t=this._uiManager._signal;this.div.addEventListener("focusin",this.#l,{signal:t}),this.div.addEventListener("focusout",this.#d,{signal:t});const[r,n]=this.parentDimensions;this.parentRotation%180!==0&&(this.div.style.maxWidth=`${(100*n/r).toFixed(2)}%`,this.div.style.maxHeight=`${(100*r/n).toFixed(2)}%`);const[o,i]=this.getInitialTranslation();return this.translate(o,i),ab(this,this.div,["pointerdown"]),this.div}pointerdown(t){const{isMac:r}=xs.platform;if(t.button!==0||t.ctrlKey&&r){t.preventDefault();return}if(this.#c=!0,this._isDraggable){this.#M(t);return}this.#T(t)}#T(t){const{isMac:r}=xs.platform;t.ctrlKey&&!r||t.shiftKey||t.metaKey&&r?this.parent.toggleSelected(this):this.parent.setSelected(this)}#M(t){const r=this._uiManager.isSelected(this);this._uiManager.setUpDragSession();let n,o;const i=this._uiManager._signal;r&&(this.div.classList.add("moving"),n={passive:!0,capture:!0,signal:i},this.#f=t.clientX,this.#b=t.clientY,o=l=>{const{clientX:d,clientY:u}=l,[p,h]=this.screenToPageTranslation(d-this.#f,u-this.#b);this.#f=d,this.#b=u,this._uiManager.dragSelectedEditors(p,h)},window.addEventListener("pointermove",o,n));const a=()=>{window.removeEventListener("pointerup",a),window.removeEventListener("blur",a),r&&(this.div.classList.remove("moving"),window.removeEventListener("pointermove",o,n)),this.#c=!1,this._uiManager.endDragSession()||this.#T(t)};window.addEventListener("pointerup",a,{signal:i}),window.addEventListener("blur",a,{signal:i})}moveInDOM(){this.#v&&clearTimeout(this.#v),this.#v=setTimeout(()=>{this.#v=null,this.parent?.moveEditorInDOM(this)},0)}_setParentAndPosition(t,r,n){t.changeParent(this),this.x=r,this.y=n,this.fixAndSetPosition()}getRect(t,r,n=this.rotation){const o=this.parentScale,[i,a]=this.pageDimensions,[l,d]=this.pageTranslation,u=t/o,p=r/o,h=this.x*i,f=this.y*a,g=this.width*i,y=this.height*a;switch(n){case 0:return[h+u+l,a-f-p-y+d,h+u+g+l,a-f-p+d];case 90:return[h+p+l,a-f+u+d,h+p+y+l,a-f+u+g+d];case 180:return[h-u-g+l,a-f+p+d,h-u+l,a-f+p+y+d];case 270:return[h-p-y+l,a-f-u-g+d,h-p+l,a-f-u+d];default:throw new Error("Invalid rotation")}}getRectInCurrentCoords(t,r){const[n,o,i,a]=t,l=i-n,d=a-o;switch(this.rotation){case 0:return[n,r-a,l,d];case 90:return[n,r-o,d,l];case 180:return[i,r-o,l,d];case 270:return[i,r-a,d,l];default:throw new Error("Invalid rotation")}}onceAdded(){}isEmpty(){return!1}enableEditMode(){this.#g=!0}disableEditMode(){this.#g=!1}isInEditMode(){return this.#g}shouldGetKeyboardEvents(){return this.#p}needsToBeRebuilt(){return this.div&&!this.isAttachedToDOM}rebuild(){const t=this._uiManager._signal;this.div?.addEventListener("focusin",this.#l,{signal:t}),this.div?.addEventListener("focusout",this.#d,{signal:t})}rotate(t){}serialize(t=!1,r=null){to("An editor must be serializable")}static deserialize(t,r,n){const o=new this.prototype.constructor({parent:r,id:r.getNextId(),uiManager:n});o.rotation=t.rotation,o.#e=t.accessibilityData;const[i,a]=o.pageDimensions,[l,d,u,p]=o.getRectInCurrentCoords(t.rect,a);return o.x=l/i,o.y=d/a,o.width=u/i,o.height=p/a,o}get hasBeenModified(){return!!this.annotationElementId&&(this.deleted||this.serialize()!==null)}remove(){if(this.div.removeEventListener("focusin",this.#l),this.div.removeEventListener("focusout",this.#d),this.isEmpty()||this.commit(),this.parent?this.parent.remove(this):this._uiManager.removeEditor(this),this.#v&&(clearTimeout(this.#v),this.#v=null),this.#I(),this.removeEditToolbar(),this.#x){for(const t of this.#x.values())clearTimeout(t);this.#x=null}this.parent=null}get isResizable(){return!1}makeResizable(){this.isResizable&&(this.#w(),this.#n.classList.remove("hidden"),ab(this,this.div,["keydown"]))}get toolbarPosition(){return null}keydown(t){if(!this.isResizable||t.target!==this.div||t.key!=="Enter")return;this._uiManager.setSelected(this),this.#i={savedX:this.x,savedY:this.y,savedWidth:this.width,savedHeight:this.height};const r=this.#n.children;if(!this.#t){this.#t=Array.from(r);const a=this.#D.bind(this),l=this.#j.bind(this),d=this._uiManager._signal;for(const u of this.#t){const p=u.getAttribute("data-resizer-name");u.setAttribute("role","spinbutton"),u.addEventListener("keydown",a,{signal:d}),u.addEventListener("blur",l,{signal:d}),u.addEventListener("focus",this.#P.bind(this,p),{signal:d}),Tr._l10nPromise.get(`pdfjs-editor-resizer-label-${p}`).then(h=>u.setAttribute("aria-label",h))}}const n=this.#t[0];let o=0;for(const a of r){if(a===n)break;o++}const i=(360-this.rotation+this.parentRotation)%360/90*(this.#t.length/4);if(i!==o){if(i<o)for(let l=0;l<o-i;l++)this.#n.append(this.#n.firstChild);else if(i>o)for(let l=0;l<i-o;l++)this.#n.firstChild.before(this.#n.lastChild);let a=0;for(const l of r){const u=this.#t[a++].getAttribute("data-resizer-name");Tr._l10nPromise.get(`pdfjs-editor-resizer-label-${u}`).then(p=>l.setAttribute("aria-label",p))}}this.#R(0),this.#p=!0,this.#n.firstChild.focus({focusVisible:!0}),t.preventDefault(),t.stopImmediatePropagation()}#D(t){Tr._resizerKeyboardManager.exec(this,t)}#j(t){this.#p&&t.relatedTarget?.parentNode!==this.#n&&this.#I()}#P(t){this.#h=this.#p?t:""}#R(t){if(this.#t)for(const r of this.#t)r.tabIndex=t}_resizeWithKeyboard(t,r){this.#p&&this.#_(this.#h,{movementX:t,movementY:r})}#I(){if(this.#p=!1,this.#R(-1),this.#i){const{savedX:t,savedY:r,savedWidth:n,savedHeight:o}=this.#i;this.#C(t,r,n,o),this.#i=null}}_stopResizingWithKeyboard(){this.#I(),this.div.focus()}select(){if(this.makeResizable(),this.div?.classList.add("selectedEditor"),!this.#u){this.addEditToolbar().then(()=>{this.div?.classList.contains("selectedEditor")&&this.#u?.show()});return}this.#u?.show()}unselect(){this.#n?.classList.add("hidden"),this.div?.classList.remove("selectedEditor"),this.div?.contains(document.activeElement)&&this._uiManager.currentLayer.div.focus({preventScroll:!0}),this.#u?.hide()}updateParams(t,r){}disableEditing(){}enableEditing(){}enterInEditMode(){}getImageForAltText(){return null}get contentDiv(){return this.div}get isEditing(){return this.#m}set isEditing(t){this.#m=t,this.parent&&(t?(this.parent.setSelected(this),this.parent.setActiveEditor(this)):this.parent.setActiveEditor(null))}setAspectRatio(t,r){this.#s=!0;const n=t/r,{style:o}=this.div;o.aspectRatio=n,o.height="auto"}static get MIN_SIZE(){return 16}static canCreateNewEmptyEditor(){return!0}get telemetryInitialData(){return{action:"added"}}get telemetryFinalData(){return null}_reportTelemetry(t,r=!1){if(r){this.#x||=new Map;const{action:n}=t;let o=this.#x.get(n);o&&clearTimeout(o),o=setTimeout(()=>{this._reportTelemetry(t),this.#x.delete(n),this.#x.size===0&&(this.#x=null)},Tr._telemetryTimeout),this.#x.set(n,o);return}t.type||=this.editorType,this._uiManager._eventBus.dispatch("reporttelemetry",{source:this,details:{type:"editing",data:t}})}show(t=this._isVisible){this.div.classList.toggle("hidden",!t),this._isVisible=t}enable(){this.div&&(this.div.tabIndex=0),this.#o=!1}disable(){this.div&&(this.div.tabIndex=-1),this.#o=!0}renderAnnotationElement(t){let r=t.container.querySelector(".annotationContent");if(!r)r=document.createElement("div"),r.classList.add("annotationContent",this.editorType),t.container.prepend(r);else if(r.nodeName==="CANVAS"){const n=r;r=document.createElement("div"),r.classList.add("annotationContent",this.editorType),n.before(r)}return r}resetAnnotationElement(t){const{firstChild:r}=t.container;r.nodeName==="DIV"&&r.classList.contains("annotationContent")&&r.remove()}}class q2t extends Tr{constructor(t){super(t),this.annotationElementId=t.annotationElementId,this.deleted=!0}serialize(){return{id:this.annotationElementId,deleted:!0,pageIndex:this.pageIndex}}}const qX=3285377520,yl=4294901760,Qd=65535;class Xge{constructor(t){this.h1=t?t&4294967295:qX,this.h2=t?t&4294967295:qX}update(t){let r,n;if(typeof t=="string"){r=new Uint8Array(t.length*2),n=0;for(let v=0,w=t.length;v<w;v++){const x=t.charCodeAt(v);x<=255?r[n++]=x:(r[n++]=x>>>8,r[n++]=x&255)}}else if(ArrayBuffer.isView(t))r=t.slice(),n=r.byteLength;else throw new Error("Invalid data format, must be a string or TypedArray.");const o=n>>2,i=n-o*4,a=new Uint32Array(r.buffer,0,o);let l=0,d=0,u=this.h1,p=this.h2;const h=3432918353,f=461845907,g=h&Qd,y=f&Qd;for(let v=0;v<o;v++)v&1?(l=a[v],l=l*h&yl|l*g&Qd,l=l<<15|l>>>17,l=l*f&yl|l*y&Qd,u^=l,u=u<<13|u>>>19,u=u*5+3864292196):(d=a[v],d=d*h&yl|d*g&Qd,d=d<<15|d>>>17,d=d*f&yl|d*y&Qd,p^=d,p=p<<13|p>>>19,p=p*5+3864292196);switch(l=0,i){case 3:l^=r[o*4+2]<<16;case 2:l^=r[o*4+1]<<8;case 1:l^=r[o*4],l=l*h&yl|l*g&Qd,l=l<<15|l>>>17,l=l*f&yl|l*y&Qd,o&1?u^=l:p^=l}this.h1=u,this.h2=p}hexdigest(){let t=this.h1,r=this.h2;return t^=r>>>1,t=t*3981806797&yl|t*36045&Qd,r=r*4283543511&yl|((r<<16|t>>>16)*2950163797&yl)>>>16,t^=r>>>1,t=t*444984403&yl|t*60499&Qd,r=r*3301882366&yl|((r<<16|t>>>16)*3120437893&yl)>>>16,t^=r>>>1,(t>>>0).toString(16).padStart(8,"0")+(r>>>0).toString(16).padStart(8,"0")}}const cj=Object.freeze({map:null,hash:"",transfer:void 0});class tN{#e=!1;#t=new Map;constructor(){this.onSetModified=null,this.onResetModified=null,this.onAnnotationEditor=null}getValue(t,r){const n=this.#t.get(t);return n===void 0?r:Object.assign(r,n)}getRawValue(t){return this.#t.get(t)}remove(t){if(this.#t.delete(t),this.#t.size===0&&this.resetModified(),typeof this.onAnnotationEditor=="function"){for(const r of this.#t.values())if(r instanceof Tr)return;this.onAnnotationEditor(null)}}setValue(t,r){const n=this.#t.get(t);let o=!1;if(n!==void 0)for(const[i,a]of Object.entries(r))n[i]!==a&&(o=!0,n[i]=a);else o=!0,this.#t.set(t,r);o&&this.#r(),r instanceof Tr&&typeof this.onAnnotationEditor=="function"&&this.onAnnotationEditor(r.constructor._type)}has(t){return this.#t.has(t)}getAll(){return this.#t.size>0?WF(this.#t):null}setAll(t){for(const[r,n]of Object.entries(t))this.setValue(r,n)}get size(){return this.#t.size}#r(){this.#e||(this.#e=!0,typeof this.onSetModified=="function"&&this.onSetModified())}resetModified(){this.#e&&(this.#e=!1,typeof this.onResetModified=="function"&&this.onResetModified())}get print(){return new Jge(this)}get serializable(){if(this.#t.size===0)return cj;const t=new Map,r=new Xge,n=[],o=Object.create(null);let i=!1;for(const[a,l]of this.#t){const d=l instanceof Tr?l.serialize(!1,o):l;d&&(t.set(a,d),r.update(`${a}:${JSON.stringify(d)}`),i||=!!d.bitmap)}if(i)for(const a of t.values())a.bitmap&&n.push(a.bitmap);return t.size>0?{map:t,hash:r.hexdigest(),transfer:n}:cj}get editorStats(){let t=null;const r=new Map;for(const n of this.#t.values()){if(!(n instanceof Tr))continue;const o=n.telemetryFinalData;if(!o)continue;const{type:i}=o;r.has(i)||r.set(i,Object.getPrototypeOf(n).constructor),t||=Object.create(null);const a=t[i]||=new Map;for(const[l,d]of Object.entries(o)){if(l==="type")continue;let u=a.get(l);u||(u=new Map,a.set(l,u));const p=u.get(d)??0;u.set(d,p+1)}}for(const[n,o]of r)t[n]=o.computeTelemetryFinalData(t[n]);return t}}class Jge extends tN{#e;constructor(t){super();const{map:r,hash:n,transfer:o}=t.serializable,i=structuredClone(r,o?{transfer:o}:null);this.#e={map:i,hash:n,transfer:o}}get print(){to("Should not call PrintAnnotationStorage.print")}get serializable(){return this.#e}}class Z2t{#e=new Set;constructor({ownerDocument:t=globalThis.document,styleElement:r=null}){this._document=t,this.nativeFontFaces=new Set,this.styleElement=null,this.loadingRequests=[],this.loadTestFontId=0}addNativeFontFace(t){this.nativeFontFaces.add(t),this._document.fonts.add(t)}removeNativeFontFace(t){this.nativeFontFaces.delete(t),this._document.fonts.delete(t)}insertRule(t){this.styleElement||(this.styleElement=this._document.createElement("style"),this._document.documentElement.getElementsByTagName("head")[0].append(this.styleElement));const r=this.styleElement.sheet;r.insertRule(t,r.cssRules.length)}clear(){for(const t of this.nativeFontFaces)this._document.fonts.delete(t);this.nativeFontFaces.clear(),this.#e.clear(),this.styleElement&&(this.styleElement.remove(),this.styleElement=null)}async loadSystemFont({systemFontInfo:t,_inspectFont:r}){if(!(!t||this.#e.has(t.loadedName))){if(Li(!this.disableFontFace,"loadSystemFont shouldn't be called when `disableFontFace` is set."),this.isFontLoadingAPISupported){const{loadedName:n,src:o,style:i}=t,a=new FontFace(n,o,i);this.addNativeFontFace(a);try{await a.load(),this.#e.add(n),r?.(t)}catch{Xr(`Cannot load system font: ${t.baseFontName}, installing it could help to improve PDF rendering.`),this.removeNativeFontFace(a)}return}to("Not implemented: loadSystemFont without the Font Loading API.")}}async bind(t){if(t.attached||t.missingFile&&!t.systemFontInfo)return;if(t.attached=!0,t.systemFontInfo){await this.loadSystemFont(t);return}if(this.isFontLoadingAPISupported){const n=t.createNativeFontFace();if(n){this.addNativeFontFace(n);try{await n.loaded}catch(o){throw Xr(`Failed to load font '${n.family}': '${o}'.`),t.disableFontFace=!0,o}}return}const r=t.createFontFaceRule();if(r){if(this.insertRule(r),this.isSyncFontLoadingSupported)return;await new Promise(n=>{const o=this._queueLoadingCallback(n);this._prepareFontLoadEvent(t,o)})}}get isFontLoadingAPISupported(){const t=!!this._document?.fonts;return bn(this,"isFontLoadingAPISupported",t)}get isSyncFontLoadingSupported(){let t=!1;return(ka||typeof navigator<"u"&&typeof navigator?.userAgent=="string"&&/Mozilla\/5.0.*?rv:\d+.*? Gecko/.test(navigator.userAgent))&&(t=!0),bn(this,"isSyncFontLoadingSupported",t)}_queueLoadingCallback(t){function r(){for(Li(!o.done,"completeRequest() cannot be called twice."),o.done=!0;n.length>0&&n[0].done;){const i=n.shift();setTimeout(i.callback,0)}}const{loadingRequests:n}=this,o={done:!1,complete:r,callback:t};return n.push(o),o}get _loadTestFont(){const t=atob("T1RUTwALAIAAAwAwQ0ZGIDHtZg4AAAOYAAAAgUZGVE1lkzZwAAAEHAAAABxHREVGABQAFQAABDgAAAAeT1MvMlYNYwkAAAEgAAAAYGNtYXABDQLUAAACNAAAAUJoZWFk/xVFDQAAALwAAAA2aGhlYQdkA+oAAAD0AAAAJGhtdHgD6AAAAAAEWAAAAAZtYXhwAAJQAAAAARgAAAAGbmFtZVjmdH4AAAGAAAAAsXBvc3T/hgAzAAADeAAAACAAAQAAAAEAALZRFsRfDzz1AAsD6AAAAADOBOTLAAAAAM4KHDwAAAAAA+gDIQAAAAgAAgAAAAAAAAABAAADIQAAAFoD6AAAAAAD6AABAAAAAAAAAAAAAAAAAAAAAQAAUAAAAgAAAAQD6AH0AAUAAAKKArwAAACMAooCvAAAAeAAMQECAAACAAYJAAAAAAAAAAAAAQAAAAAAAAAAAAAAAFBmRWQAwAAuAC4DIP84AFoDIQAAAAAAAQAAAAAAAAAAACAAIAABAAAADgCuAAEAAAAAAAAAAQAAAAEAAAAAAAEAAQAAAAEAAAAAAAIAAQAAAAEAAAAAAAMAAQAAAAEAAAAAAAQAAQAAAAEAAAAAAAUAAQAAAAEAAAAAAAYAAQAAAAMAAQQJAAAAAgABAAMAAQQJAAEAAgABAAMAAQQJAAIAAgABAAMAAQQJAAMAAgABAAMAAQQJAAQAAgABAAMAAQQJAAUAAgABAAMAAQQJAAYAAgABWABYAAAAAAAAAwAAAAMAAAAcAAEAAAAAADwAAwABAAAAHAAEACAAAAAEAAQAAQAAAC7//wAAAC7////TAAEAAAAAAAABBgAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAD/gwAyAAAAAQAAAAAAAAAAAAAAAAAAAAABAAQEAAEBAQJYAAEBASH4DwD4GwHEAvgcA/gXBIwMAYuL+nz5tQXkD5j3CBLnEQACAQEBIVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYAAABAQAADwACAQEEE/t3Dov6fAH6fAT+fPp8+nwHDosMCvm1Cvm1DAz6fBQAAAAAAAABAAAAAMmJbzEAAAAAzgTjFQAAAADOBOQpAAEAAAAAAAAADAAUAAQAAAABAAAAAgABAAAAAAAAAAAD6AAAAAAAAA==");return bn(this,"_loadTestFont",t)}_prepareFontLoadEvent(t,r){function n(k,T){return k.charCodeAt(T)<<24|k.charCodeAt(T+1)<<16|k.charCodeAt(T+2)<<8|k.charCodeAt(T+3)&255}function o(k,T,E,A){const P=k.substring(0,T),D=k.substring(T+E);return P+A+D}let i,a;const l=this._document.createElement("canvas");l.width=1,l.height=1;const d=l.getContext("2d");let u=0;function p(k,T){if(++u>30){Xr("Load test font never loaded."),T();return}if(d.font="30px "+k,d.fillText(".",0,20),d.getImageData(0,0,1,1).data[3]>0){T();return}setTimeout(p.bind(null,k,T))}const h=`lt${Date.now()}${this.loadTestFontId++}`;let f=this._loadTestFont;f=o(f,976,h.length,h);const y=16,v=1482184792;let w=n(f,y);for(i=0,a=h.length-3;i<a;i+=4)w=w-v+n(h,i)|0;i<h.length&&(w=w-v+n(h+"XXX",i)|0),f=o(f,y,4,M2t(w));const x=`url(data:font/opentype;base64,${btoa(f)});`,$=`@font-face {font-family:"${h}";src:${x}}`;this.insertRule($);const S=this._document.createElement("div");S.style.visibility="hidden",S.style.width=S.style.height="10px",S.style.position="absolute",S.style.top=S.style.left="0px";for(const k of[t.loadedName,h]){const T=this._document.createElement("span");T.textContent="Hi",T.style.fontFamily=k,S.append(T)}this._document.body.append(S),p(h,()=>{S.remove(),r.complete()})}}class K2t{constructor(t,{disableFontFace:r=!1,inspectFont:n=null}){this.compiledGlyphs=Object.create(null);for(const o in t)this[o]=t[o];this.disableFontFace=r===!0,this._inspectFont=n}createNativeFontFace(){if(!this.data||this.disableFontFace)return null;let t;if(!this.cssFontInfo)t=new FontFace(this.loadedName,this.data,{});else{const r={weight:this.cssFontInfo.fontWeight};this.cssFontInfo.italicAngle&&(r.style=`oblique ${this.cssFontInfo.italicAngle}deg`),t=new FontFace(this.cssFontInfo.fontFamily,this.data,r)}return this._inspectFont?.(this),t}createFontFaceRule(){if(!this.data||this.disableFontFace)return null;const t=Yge(this.data),r=`url(data:${this.mimetype};base64,${btoa(t)});`;let n;if(!this.cssFontInfo)n=`@font-face {font-family:"${this.loadedName}";src:${r}}`;else{let o=`font-weight: ${this.cssFontInfo.fontWeight};`;this.cssFontInfo.italicAngle&&(o+=`font-style: oblique ${this.cssFontInfo.italicAngle}deg;`),n=`@font-face {font-family:"${this.cssFontInfo.fontFamily}";${o}src:${r}}`}return this._inspectFont?.(this,r),n}getPathGenerator(t,r){if(this.compiledGlyphs[r]!==void 0)return this.compiledGlyphs[r];let n;try{n=t.get(this.loadedName+"_path_"+r)}catch(i){Xr(`getPathGenerator - ignoring character: "${i}".`)}if(!Array.isArray(n)||n.length===0)return this.compiledGlyphs[r]=function(i,a){};const o=[];for(let i=0,a=n.length;i<a;)switch(n[i++]){case fu.BEZIER_CURVE_TO:{const[l,d,u,p,h,f]=n.slice(i,i+6);o.push(g=>g.bezierCurveTo(l,d,u,p,h,f)),i+=6}break;case fu.MOVE_TO:{const[l,d]=n.slice(i,i+2);o.push(u=>u.moveTo(l,d)),i+=2}break;case fu.LINE_TO:{const[l,d]=n.slice(i,i+2);o.push(u=>u.lineTo(l,d)),i+=2}break;case fu.QUADRATIC_CURVE_TO:{const[l,d,u,p]=n.slice(i,i+4);o.push(h=>h.quadraticCurveTo(l,d,u,p)),i+=4}break;case fu.RESTORE:o.push(l=>l.restore());break;case fu.SAVE:o.push(l=>l.save());break;case fu.SCALE:Li(o.length===2,"Scale command is only valid at the third position.");break;case fu.TRANSFORM:{const[l,d,u,p,h,f]=n.slice(i,i+6);o.push(g=>g.transform(l,d,u,p,h,f)),i+=6}break;case fu.TRANSLATE:{const[l,d]=n.slice(i,i+2);o.push(u=>u.translate(l,d)),i+=2}break}return this.compiledGlyphs[r]=function(a,l){o[0](a),o[1](a),a.scale(l,-l);for(let d=2,u=o.length;d<u;d++)o[d](a)}}}if(ka){var dj=Promise.withResolvers(),uj=null;(async()=>{const t=await bt(()=>import("./empty-Bp9uyDV_.js").then(l=>l.e),__vite__mapDeps([0,1,2])),r=await bt(()=>import("./index-CbXRL6aP.js").then(l=>l.i),__vite__mapDeps([3,1,4,5,6,7,8,9])),n=await bt(()=>import("./index-0WIxY_w_.js").then(l=>l.i),__vite__mapDeps([10,1,11,4,5,6,7,8,9])),o=await bt(()=>import("./url-CsktLD4A.js").then(l=>l.u),__vite__mapDeps([12,1,9,7,5,6,8]));let i,a;return new Map(Object.entries({fs:t,http:r,https:n,url:o,canvas:i,path2d:a}))})().then(t=>{uj=t,dj.resolve()},t=>{Xr(`loadPackages: ${t}`),uj=new Map,dj.resolve()})}class z1{static get promise(){return dj.promise}static get(t){return uj?.get(t)}}const e4e=function(e){return z1.get("fs").promises.readFile(e).then(r=>new Uint8Array(r))};class Q2t extends _x{}class X2t extends Tx{_createCanvas(t,r){return z1.get("canvas").createCanvas(t,r)}}class J2t extends Ax{_fetchData(t,r){return e4e(t).then(n=>({cMapData:n,compressionType:r}))}}class e0t extends Lx{_fetchData(t){return e4e(t)}}const Wa={FILL:"Fill",STROKE:"Stroke",SHADING:"Shading"};function pj(e,t){if(!t)return;const r=t[2]-t[0],n=t[3]-t[1],o=new Path2D;o.rect(t[0],t[1],r,n),e.clip(o)}class g6{constructor(){this.constructor===g6&&to("Cannot initialize BaseShadingPattern.")}getPattern(){to("Abstract method `getPattern` called.")}}class t0t extends g6{constructor(t){super(),this._type=t[1],this._bbox=t[2],this._colorStops=t[3],this._p0=t[4],this._p1=t[5],this._r0=t[6],this._r1=t[7],this.matrix=null}_createGradient(t){let r;this._type==="axial"?r=t.createLinearGradient(this._p0[0],this._p0[1],this._p1[0],this._p1[1]):this._type==="radial"&&(r=t.createRadialGradient(this._p0[0],this._p0[1],this._r0,this._p1[0],this._p1[1],this._r1));for(const n of this._colorStops)r.addColorStop(n[0],n[1]);return r}getPattern(t,r,n,o){let i;if(o===Wa.STROKE||o===Wa.FILL){const a=r.current.getClippedPathBoundingBox(o,Po(t))||[0,0,0,0],l=Math.ceil(a[2]-a[0])||1,d=Math.ceil(a[3]-a[1])||1,u=r.cachedCanvases.getCanvas("pattern",l,d,!0),p=u.context;p.clearRect(0,0,p.canvas.width,p.canvas.height),p.beginPath(),p.rect(0,0,p.canvas.width,p.canvas.height),p.translate(-a[0],-a[1]),n=ar.transform(n,[1,0,0,1,a[0],a[1]]),p.transform(...r.baseTransform),this.matrix&&p.transform(...this.matrix),pj(p,this._bbox),p.fillStyle=this._createGradient(p),p.fill(),i=t.createPattern(u.canvas,"no-repeat");const h=new DOMMatrix(n);i.setTransform(h)}else pj(t,this._bbox),i=this._createGradient(t);return i}}function cL(e,t,r,n,o,i,a,l){const d=t.coords,u=t.colors,p=e.data,h=e.width*4;let f;d[r+1]>d[n+1]&&(f=r,r=n,n=f,f=i,i=a,a=f),d[n+1]>d[o+1]&&(f=n,n=o,o=f,f=a,a=l,l=f),d[r+1]>d[n+1]&&(f=r,r=n,n=f,f=i,i=a,a=f);const g=(d[r]+t.offsetX)*t.scaleX,y=(d[r+1]+t.offsetY)*t.scaleY,v=(d[n]+t.offsetX)*t.scaleX,w=(d[n+1]+t.offsetY)*t.scaleY,x=(d[o]+t.offsetX)*t.scaleX,$=(d[o+1]+t.offsetY)*t.scaleY;if(y>=$)return;const S=u[i],k=u[i+1],T=u[i+2],E=u[a],A=u[a+1],P=u[a+2],D=u[l],O=u[l+1],V=u[l+2],j=Math.round(y),q=Math.round($);let W,F,H,I,L,z,B,ee;for(let Z=j;Z<=q;Z++){if(Z<w){const fe=Z<y?0:(y-Z)/(y-w);W=g-(g-v)*fe,F=S-(S-E)*fe,H=k-(k-A)*fe,I=T-(T-P)*fe}else{let fe;Z>$?fe=1:w===$?fe=0:fe=(w-Z)/(w-$),W=v-(v-x)*fe,F=E-(E-D)*fe,H=A-(A-O)*fe,I=P-(P-V)*fe}let U;Z<y?U=0:Z>$?U=1:U=(y-Z)/(y-$),L=g-(g-x)*U,z=S-(S-D)*U,B=k-(k-O)*U,ee=T-(T-V)*U;const Q=Math.round(Math.min(W,L)),X=Math.round(Math.max(W,L));let ae=h*Z+Q*4;for(let fe=Q;fe<=X;fe++)U=(W-fe)/(W-L),U<0?U=0:U>1&&(U=1),p[ae++]=F-(F-z)*U|0,p[ae++]=H-(H-B)*U|0,p[ae++]=I-(I-ee)*U|0,p[ae++]=255}}function r0t(e,t,r){const n=t.coords,o=t.colors;let i,a;switch(t.type){case"lattice":const l=t.verticesPerRow,d=Math.floor(n.length/l)-1,u=l-1;for(i=0;i<d;i++){let p=i*l;for(let h=0;h<u;h++,p++)cL(e,r,n[p],n[p+1],n[p+l],o[p],o[p+1],o[p+l]),cL(e,r,n[p+l+1],n[p+1],n[p+l],o[p+l+1],o[p+1],o[p+l])}break;case"triangles":for(i=0,a=n.length;i<a;i+=3)cL(e,r,n[i],n[i+1],n[i+2],o[i],o[i+1],o[i+2]);break;default:throw new Error("illegal figure")}}class n0t extends g6{constructor(t){super(),this._coords=t[2],this._colors=t[3],this._figures=t[4],this._bounds=t[5],this._bbox=t[7],this._background=t[8],this.matrix=null}_createMeshCanvas(t,r,n){const l=Math.floor(this._bounds[0]),d=Math.floor(this._bounds[1]),u=Math.ceil(this._bounds[2])-l,p=Math.ceil(this._bounds[3])-d,h=Math.min(Math.ceil(Math.abs(u*t[0]*1.1)),3e3),f=Math.min(Math.ceil(Math.abs(p*t[1]*1.1)),3e3),g=u/h,y=p/f,v={coords:this._coords,colors:this._colors,offsetX:-l,offsetY:-d,scaleX:1/g,scaleY:1/y},w=h+2*2,x=f+2*2,$=n.getCanvas("mesh",w,x,!1),S=$.context,k=S.createImageData(h,f);if(r){const E=k.data;for(let A=0,P=E.length;A<P;A+=4)E[A]=r[0],E[A+1]=r[1],E[A+2]=r[2],E[A+3]=255}for(const E of this._figures)r0t(k,E,v);return S.putImageData(k,2,2),{canvas:$.canvas,offsetX:l-2*g,offsetY:d-2*y,scaleX:g,scaleY:y}}getPattern(t,r,n,o){pj(t,this._bbox);let i;if(o===Wa.SHADING)i=ar.singularValueDecompose2dScale(Po(t));else if(i=ar.singularValueDecompose2dScale(r.baseTransform),this.matrix){const l=ar.singularValueDecompose2dScale(this.matrix);i=[i[0]*l[0],i[1]*l[1]]}const a=this._createMeshCanvas(i,o===Wa.SHADING?null:this._background,r.cachedCanvases);return o!==Wa.SHADING&&(t.setTransform(...r.baseTransform),this.matrix&&t.transform(...this.matrix)),t.translate(a.offsetX,a.offsetY),t.scale(a.scaleX,a.scaleY),t.createPattern(a.canvas,"no-repeat")}}class o0t extends g6{getPattern(){return"hotpink"}}function i0t(e){switch(e[0]){case"RadialAxial":return new t0t(e);case"Mesh":return new n0t(e);case"Dummy":return new o0t}throw new Error(`Unknown IR type: ${e[0]}`)}const ZX={COLORED:1,UNCOLORED:2};class rN{static MAX_PATTERN_SIZE=3e3;constructor(t,r,n,o,i){this.operatorList=t[2],this.matrix=t[3],this.bbox=t[4],this.xstep=t[5],this.ystep=t[6],this.paintType=t[7],this.tilingType=t[8],this.color=r,this.ctx=n,this.canvasGraphicsFactory=o,this.baseTransform=i}createPatternCanvas(t){const r=this.operatorList,n=this.bbox,o=this.xstep,i=this.ystep,a=this.paintType,l=this.tilingType,d=this.color,u=this.canvasGraphicsFactory;Sx("TilingType: "+l);const p=n[0],h=n[1],f=n[2],g=n[3],y=ar.singularValueDecompose2dScale(this.matrix),v=ar.singularValueDecompose2dScale(this.baseTransform),w=[y[0]*v[0],y[1]*v[1]],x=this.getSizeAndScale(o,this.ctx.canvas.width,w[0]),$=this.getSizeAndScale(i,this.ctx.canvas.height,w[1]),S=t.cachedCanvases.getCanvas("pattern",x.size,$.size,!0),k=S.context,T=u.createCanvasGraphics(k);T.groupLevel=t.groupLevel,this.setFillAndStrokeStyleToContext(T,a,d);let E=p,A=h,P=f,D=g;return p<0&&(E=0,P+=Math.abs(p)),h<0&&(A=0,D+=Math.abs(h)),k.translate(-(x.scale*E),-($.scale*A)),T.transform(x.scale,0,0,$.scale,0,0),k.save(),this.clipBbox(T,E,A,P,D),T.baseTransform=Po(T.ctx),T.executeOperatorList(r),T.endDrawing(),{canvas:S.canvas,scaleX:x.scale,scaleY:$.scale,offsetX:E,offsetY:A}}getSizeAndScale(t,r,n){t=Math.abs(t);const o=Math.max(rN.MAX_PATTERN_SIZE,r);let i=Math.ceil(t*n);return i>=o?i=o:n=i/t,{scale:n,size:i}}clipBbox(t,r,n,o,i){const a=o-r,l=i-n;t.ctx.rect(r,n,a,l),t.current.updateRectMinMax(Po(t.ctx),[r,n,o,i]),t.clip(),t.endPath()}setFillAndStrokeStyleToContext(t,r,n){const o=t.ctx,i=t.current;switch(r){case ZX.COLORED:const a=this.ctx;o.fillStyle=a.fillStyle,o.strokeStyle=a.strokeStyle,i.fillColor=a.fillStyle,i.strokeColor=a.strokeStyle;break;case ZX.UNCOLORED:const l=ar.makeHexColor(n[0],n[1],n[2]);o.fillStyle=l,o.strokeStyle=l,i.fillColor=l,i.strokeColor=l;break;default:throw new D2t(`Unsupported paint type: ${r}`)}}getPattern(t,r,n,o){let i=n;o!==Wa.SHADING&&(i=ar.transform(i,r.baseTransform),this.matrix&&(i=ar.transform(i,this.matrix)));const a=this.createPatternCanvas(r);let l=new DOMMatrix(i);l=l.translate(a.offsetX,a.offsetY),l=l.scale(1/a.scaleX,1/a.scaleY);const d=t.createPattern(a.canvas,"repeat");return d.setTransform(l),d}}function a0t({src:e,srcPos:t=0,dest:r,width:n,height:o,nonBlackColor:i=4294967295,inverseDecode:a=!1}){const l=xs.isLittleEndian?4278190080:255,[d,u]=a?[i,l]:[l,i],p=n>>3,h=n&7,f=e.length;r=new Uint32Array(r.buffer);let g=0;for(let y=0;y<o;y++){for(const w=t+p;t<w;t++){const x=t<f?e[t]:255;r[g++]=x&128?u:d,r[g++]=x&64?u:d,r[g++]=x&32?u:d,r[g++]=x&16?u:d,r[g++]=x&8?u:d,r[g++]=x&4?u:d,r[g++]=x&2?u:d,r[g++]=x&1?u:d}if(h===0)continue;const v=t<f?e[t++]:255;for(let w=0;w<h;w++)r[g++]=v&1<<7-w?u:d}return{srcPos:t,destPos:g}}const KX=16,QX=100,s0t=15,XX=10,JX=1e3,hs=16;function l0t(e,t){if(e._removeMirroring)throw new Error("Context is already forwarding operations.");e.__originalSave=e.save,e.__originalRestore=e.restore,e.__originalRotate=e.rotate,e.__originalScale=e.scale,e.__originalTranslate=e.translate,e.__originalTransform=e.transform,e.__originalSetTransform=e.setTransform,e.__originalResetTransform=e.resetTransform,e.__originalClip=e.clip,e.__originalMoveTo=e.moveTo,e.__originalLineTo=e.lineTo,e.__originalBezierCurveTo=e.bezierCurveTo,e.__originalRect=e.rect,e.__originalClosePath=e.closePath,e.__originalBeginPath=e.beginPath,e._removeMirroring=()=>{e.save=e.__originalSave,e.restore=e.__originalRestore,e.rotate=e.__originalRotate,e.scale=e.__originalScale,e.translate=e.__originalTranslate,e.transform=e.__originalTransform,e.setTransform=e.__originalSetTransform,e.resetTransform=e.__originalResetTransform,e.clip=e.__originalClip,e.moveTo=e.__originalMoveTo,e.lineTo=e.__originalLineTo,e.bezierCurveTo=e.__originalBezierCurveTo,e.rect=e.__originalRect,e.closePath=e.__originalClosePath,e.beginPath=e.__originalBeginPath,delete e._removeMirroring},e.save=function(){t.save(),this.__originalSave()},e.restore=function(){t.restore(),this.__originalRestore()},e.translate=function(n,o){t.translate(n,o),this.__originalTranslate(n,o)},e.scale=function(n,o){t.scale(n,o),this.__originalScale(n,o)},e.transform=function(n,o,i,a,l,d){t.transform(n,o,i,a,l,d),this.__originalTransform(n,o,i,a,l,d)},e.setTransform=function(n,o,i,a,l,d){t.setTransform(n,o,i,a,l,d),this.__originalSetTransform(n,o,i,a,l,d)},e.resetTransform=function(){t.resetTransform(),this.__originalResetTransform()},e.rotate=function(n){t.rotate(n),this.__originalRotate(n)},e.clip=function(n){t.clip(n),this.__originalClip(n)},e.moveTo=function(r,n){t.moveTo(r,n),this.__originalMoveTo(r,n)},e.lineTo=function(r,n){t.lineTo(r,n),this.__originalLineTo(r,n)},e.bezierCurveTo=function(r,n,o,i,a,l){t.bezierCurveTo(r,n,o,i,a,l),this.__originalBezierCurveTo(r,n,o,i,a,l)},e.rect=function(r,n,o,i){t.rect(r,n,o,i),this.__originalRect(r,n,o,i)},e.closePath=function(){t.closePath(),this.__originalClosePath()},e.beginPath=function(){t.beginPath(),this.__originalBeginPath()}}class c0t{constructor(t){this.canvasFactory=t,this.cache=Object.create(null)}getCanvas(t,r,n){let o;return this.cache[t]!==void 0?(o=this.cache[t],this.canvasFactory.reset(o,r,n)):(o=this.canvasFactory.create(r,n),this.cache[t]=o),o}delete(t){delete this.cache[t]}clear(){for(const t in this.cache){const r=this.cache[t];this.canvasFactory.destroy(r),delete this.cache[t]}}}function I9(e,t,r,n,o,i,a,l,d,u){const[p,h,f,g,y,v]=Po(e);if(h===0&&f===0){const $=a*p+y,S=Math.round($),k=l*g+v,T=Math.round(k),E=(a+d)*p+y,A=Math.abs(Math.round(E)-S)||1,P=(l+u)*g+v,D=Math.abs(Math.round(P)-T)||1;return e.setTransform(Math.sign(p),0,0,Math.sign(g),S,T),e.drawImage(t,r,n,o,i,0,0,A,D),e.setTransform(p,h,f,g,y,v),[A,D]}if(p===0&&g===0){const $=l*f+y,S=Math.round($),k=a*h+v,T=Math.round(k),E=(l+u)*f+y,A=Math.abs(Math.round(E)-S)||1,P=(a+d)*h+v,D=Math.abs(Math.round(P)-T)||1;return e.setTransform(0,Math.sign(h),Math.sign(f),0,S,T),e.drawImage(t,r,n,o,i,0,0,D,A),e.setTransform(p,h,f,g,y,v),[D,A]}e.drawImage(t,r,n,o,i,a,l,d,u);const w=Math.hypot(p,h),x=Math.hypot(f,g);return[w*d,x*u]}function d0t(e){const{width:t,height:r}=e;if(t>JX||r>JX)return null;const n=1e3,o=new Uint8Array([0,2,4,0,1,0,5,4,8,10,0,8,0,2,1,0]),i=t+1;let a=new Uint8Array(i*(r+1)),l,d,u;const p=t+7&-8;let h=new Uint8Array(p*r),f=0;for(const x of e.data){let $=128;for(;$>0;)h[f++]=x&$?0:255,$>>=1}let g=0;for(f=0,h[f]!==0&&(a[0]=1,++g),d=1;d<t;d++)h[f]!==h[f+1]&&(a[d]=h[f]?2:1,++g),f++;for(h[f]!==0&&(a[d]=2,++g),l=1;l<r;l++){f=l*p,u=l*i,h[f-p]!==h[f]&&(a[u]=h[f]?1:8,++g);let x=(h[f]?4:0)+(h[f-p]?8:0);for(d=1;d<t;d++)x=(x>>2)+(h[f+1]?4:0)+(h[f-p+1]?8:0),o[x]&&(a[u+d]=o[x],++g),f++;if(h[f-p]!==h[f]&&(a[u+d]=h[f]?2:4,++g),g>n)return null}for(f=p*(r-1),u=l*i,h[f]!==0&&(a[u]=8,++g),d=1;d<t;d++)h[f]!==h[f+1]&&(a[u+d]=h[f]?4:8,++g),f++;if(h[f]!==0&&(a[u+d]=4,++g),g>n)return null;const y=new Int32Array([0,i,-1,0,-i,0,0,0,1]),v=new Path2D;for(l=0;g&&l<=r;l++){let x=l*i;const $=x+t;for(;x<$&&!a[x];)x++;if(x===$)continue;v.moveTo(x%i,l);const S=x;let k=a[x];do{const T=y[k];do x+=T;while(!a[x]);const E=a[x];E!==5&&E!==10?(k=E,a[x]=0):(k=E&51*k>>4,a[x]&=k>>2|k<<2),v.lineTo(x%i,x/i|0),a[x]||--g}while(S!==x);--l}return h=null,a=null,function(x){x.save(),x.scale(1/t,-1/r),x.translate(0,-r),x.fill(v),x.beginPath(),x.restore()}}class eJ{constructor(t,r){this.alphaIsShape=!1,this.fontSize=0,this.fontSizeScale=1,this.textMatrix=Uge,this.textMatrixScale=1,this.fontMatrix=ij,this.leading=0,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRenderingMode=va.FILL,this.textRise=0,this.fillColor="#000000",this.strokeColor="#000000",this.patternFill=!1,this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.activeSMask=null,this.transferMaps="none",this.startNewPathAndClipBox([0,0,t,r])}clone(){const t=Object.create(this);return t.clipBox=this.clipBox.slice(),t}setCurrentPoint(t,r){this.x=t,this.y=r}updatePathMinMax(t,r,n){[r,n]=ar.applyTransform([r,n],t),this.minX=Math.min(this.minX,r),this.minY=Math.min(this.minY,n),this.maxX=Math.max(this.maxX,r),this.maxY=Math.max(this.maxY,n)}updateRectMinMax(t,r){const n=ar.applyTransform(r,t),o=ar.applyTransform(r.slice(2),t),i=ar.applyTransform([r[0],r[3]],t),a=ar.applyTransform([r[2],r[1]],t);this.minX=Math.min(this.minX,n[0],o[0],i[0],a[0]),this.minY=Math.min(this.minY,n[1],o[1],i[1],a[1]),this.maxX=Math.max(this.maxX,n[0],o[0],i[0],a[0]),this.maxY=Math.max(this.maxY,n[1],o[1],i[1],a[1])}updateScalingPathMinMax(t,r){ar.scaleMinMax(t,r),this.minX=Math.min(this.minX,r[0]),this.minY=Math.min(this.minY,r[1]),this.maxX=Math.max(this.maxX,r[2]),this.maxY=Math.max(this.maxY,r[3])}updateCurvePathMinMax(t,r,n,o,i,a,l,d,u,p){const h=ar.bezierBoundingBox(r,n,o,i,a,l,d,u,p);p||this.updateRectMinMax(t,h)}getPathBoundingBox(t=Wa.FILL,r=null){const n=[this.minX,this.minY,this.maxX,this.maxY];if(t===Wa.STROKE){r||to("Stroke bounding box must include transform.");const o=ar.singularValueDecompose2dScale(r),i=o[0]*this.lineWidth/2,a=o[1]*this.lineWidth/2;n[0]-=i,n[1]-=a,n[2]+=i,n[3]+=a}return n}updateClipFromPath(){const t=ar.intersect(this.clipBox,this.getPathBoundingBox());this.startNewPathAndClipBox(t||[0,0,0,0])}isEmptyClip(){return this.minX===1/0}startNewPathAndClipBox(t){this.clipBox=t,this.minX=1/0,this.minY=1/0,this.maxX=0,this.maxY=0}getClippedPathBoundingBox(t=Wa.FILL,r=null){return ar.intersect(this.clipBox,this.getPathBoundingBox(t,r))}}function tJ(e,t){if(typeof ImageData<"u"&&t instanceof ImageData){e.putImageData(t,0,0);return}const r=t.height,n=t.width,o=r%hs,i=(r-o)/hs,a=o===0?i:i+1,l=e.createImageData(n,hs);let d=0,u;const p=t.data,h=l.data;let f,g,y,v;if(t.kind===Ry.GRAYSCALE_1BPP){const w=p.byteLength,x=new Uint32Array(h.buffer,0,h.byteLength>>2),$=x.length,S=n+7>>3,k=4294967295,T=xs.isLittleEndian?4278190080:255;for(f=0;f<a;f++){for(y=f<i?hs:o,u=0,g=0;g<y;g++){const E=w-d;let A=0;const P=E>S?n:E*8-7,D=P&-8;let O=0,V=0;for(;A<D;A+=8)V=p[d++],x[u++]=V&128?k:T,x[u++]=V&64?k:T,x[u++]=V&32?k:T,x[u++]=V&16?k:T,x[u++]=V&8?k:T,x[u++]=V&4?k:T,x[u++]=V&2?k:T,x[u++]=V&1?k:T;for(;A<P;A++)O===0&&(V=p[d++],O=128),x[u++]=V&O?k:T,O>>=1}for(;u<$;)x[u++]=0;e.putImageData(l,0,f*hs)}}else if(t.kind===Ry.RGBA_32BPP){for(g=0,v=n*hs*4,f=0;f<i;f++)h.set(p.subarray(d,d+v)),d+=v,e.putImageData(l,0,g),g+=hs;f<a&&(v=n*o*4,h.set(p.subarray(d,d+v)),e.putImageData(l,0,g))}else if(t.kind===Ry.RGB_24BPP)for(y=hs,v=n*y,f=0;f<a;f++){for(f>=i&&(y=o,v=n*y),u=0,g=v;g--;)h[u++]=p[d++],h[u++]=p[d++],h[u++]=p[d++],h[u++]=255;e.putImageData(l,0,f*hs)}else throw new Error(`bad image kind: ${t.kind}`)}function rJ(e,t){if(t.bitmap){e.drawImage(t.bitmap,0,0);return}const r=t.height,n=t.width,o=r%hs,i=(r-o)/hs,a=o===0?i:i+1,l=e.createImageData(n,hs);let d=0;const u=t.data,p=l.data;for(let h=0;h<a;h++){const f=h<i?hs:o;({srcPos:d}=a0t({src:u,srcPos:d,dest:p,width:n,height:f,nonBlackColor:0})),e.putImageData(l,0,h*hs)}}function W4(e,t){const r=["strokeStyle","fillStyle","fillRule","globalAlpha","lineWidth","lineCap","lineJoin","miterLimit","globalCompositeOperation","font","filter"];for(const n of r)e[n]!==void 0&&(t[n]=e[n]);e.setLineDash!==void 0&&(t.setLineDash(e.getLineDash()),t.lineDashOffset=e.lineDashOffset)}function j9(e){if(e.strokeStyle=e.fillStyle="#000000",e.fillRule="nonzero",e.globalAlpha=1,e.lineWidth=1,e.lineCap="butt",e.lineJoin="miter",e.miterLimit=10,e.globalCompositeOperation="source-over",e.font="10px sans-serif",e.setLineDash!==void 0&&(e.setLineDash([]),e.lineDashOffset=0),!ka){const{filter:t}=e;t!=="none"&&t!==""&&(e.filter="none")}}function nJ(e,t){if(t)return!0;const r=ar.singularValueDecompose2dScale(e);r[0]=Math.fround(r[0]),r[1]=Math.fround(r[1]);const n=Math.fround((globalThis.devicePixelRatio||1)*Jf.PDF_TO_CSS_UNITS);return r[0]<=n&&r[1]<=n}const u0t=["butt","round","square"],p0t=["miter","round","bevel"],h0t={},oJ={};class _f{constructor(t,r,n,o,i,{optionalContentConfig:a,markedContentStack:l=null},d,u){this.ctx=t,this.current=new eJ(this.ctx.canvas.width,this.ctx.canvas.height),this.stateStack=[],this.pendingClip=null,this.pendingEOFill=!1,this.res=null,this.xobjs=null,this.commonObjs=r,this.objs=n,this.canvasFactory=o,this.filterFactory=i,this.groupStack=[],this.processingType3=null,this.baseTransform=null,this.baseTransformStack=[],this.groupLevel=0,this.smaskStack=[],this.smaskCounter=0,this.tempSMask=null,this.suspendedCtx=null,this.contentVisible=!0,this.markedContentStack=l||[],this.optionalContentConfig=a,this.cachedCanvases=new c0t(this.canvasFactory),this.cachedPatterns=new Map,this.annotationCanvasMap=d,this.viewportScale=1,this.outputScaleX=1,this.outputScaleY=1,this.pageColors=u,this._cachedScaleForStroking=[-1,0],this._cachedGetSinglePixelWidth=null,this._cachedBitmapsMap=new Map}getObject(t,r=null){return typeof t=="string"?t.startsWith("g_")?this.commonObjs.get(t):this.objs.get(t):r}beginDrawing({transform:t,viewport:r,transparency:n=!1,background:o=null}){const i=this.ctx.canvas.width,a=this.ctx.canvas.height,l=this.ctx.fillStyle;if(this.ctx.fillStyle=o||"#ffffff",this.ctx.fillRect(0,0,i,a),this.ctx.fillStyle=l,n){const d=this.cachedCanvases.getCanvas("transparent",i,a);this.compositeCtx=this.ctx,this.transparentCanvas=d.canvas,this.ctx=d.context,this.ctx.save(),this.ctx.transform(...Po(this.compositeCtx))}this.ctx.save(),j9(this.ctx),t&&(this.ctx.transform(...t),this.outputScaleX=t[0],this.outputScaleY=t[0]),this.ctx.transform(...r.transform),this.viewportScale=r.scale,this.baseTransform=Po(this.ctx)}executeOperatorList(t,r,n,o){const i=t.argsArray,a=t.fnArray;let l=r||0;const d=i.length;if(d===l)return l;const u=d-l>XX&&typeof n=="function",p=u?Date.now()+s0t:0;let h=0;const f=this.commonObjs,g=this.objs;let y;for(;;){if(o!==void 0&&l===o.nextBreakPoint)return o.breakIt(l,n),l;if(y=a[l],y!==kc.dependency)this[y].apply(this,i[l]);else for(const v of i[l]){const w=v.startsWith("g_")?f:g;if(!w.has(v))return w.get(v,n),l}if(l++,l===d)return l;if(u&&++h>XX){if(Date.now()>p)return n(),l;h=0}}}#e(){for(;this.stateStack.length||this.inSMaskMode;)this.restore();this.ctx.restore(),this.transparentCanvas&&(this.ctx=this.compositeCtx,this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.drawImage(this.transparentCanvas,0,0),this.ctx.restore(),this.transparentCanvas=null)}endDrawing(){this.#e(),this.cachedCanvases.clear(),this.cachedPatterns.clear();for(const t of this._cachedBitmapsMap.values()){for(const r of t.values())typeof HTMLCanvasElement<"u"&&r instanceof HTMLCanvasElement&&(r.width=r.height=0);t.clear()}this._cachedBitmapsMap.clear(),this.#t()}#t(){if(this.pageColors){const t=this.filterFactory.addHCMFilter(this.pageColors.foreground,this.pageColors.background);if(t!=="none"){const r=this.ctx.filter;this.ctx.filter=t,this.ctx.drawImage(this.ctx.canvas,0,0),this.ctx.filter=r}}}_scaleImage(t,r){const n=t.width,o=t.height;let i=Math.max(Math.hypot(r[0],r[1]),1),a=Math.max(Math.hypot(r[2],r[3]),1),l=n,d=o,u="prescale1",p,h;for(;i>2&&l>1||a>2&&d>1;){let f=l,g=d;i>2&&l>1&&(f=l>=16384?Math.floor(l/2)-1||1:Math.ceil(l/2),i/=l/f),a>2&&d>1&&(g=d>=16384?Math.floor(d/2)-1||1:Math.ceil(d)/2,a/=d/g),p=this.cachedCanvases.getCanvas(u,f,g),h=p.context,h.clearRect(0,0,f,g),h.drawImage(t,0,0,l,d,0,0,f,g),t=p.canvas,l=f,d=g,u=u==="prescale1"?"prescale2":"prescale1"}return{img:t,paintWidth:l,paintHeight:d}}_createMaskCanvas(t){const r=this.ctx,{width:n,height:o}=t,i=this.current.fillColor,a=this.current.patternFill,l=Po(r);let d,u,p,h;if((t.bitmap||t.data)&&t.count>1){const P=t.bitmap||t.data.buffer;u=JSON.stringify(a?l:[l.slice(0,4),i]),d=this._cachedBitmapsMap.get(P),d||(d=new Map,this._cachedBitmapsMap.set(P,d));const D=d.get(u);if(D&&!a){const O=Math.round(Math.min(l[0],l[2])+l[4]),V=Math.round(Math.min(l[1],l[3])+l[5]);return{canvas:D,offsetX:O,offsetY:V}}p=D}p||(h=this.cachedCanvases.getCanvas("maskCanvas",n,o),rJ(h.context,t));let f=ar.transform(l,[1/n,0,0,-1/o,0,0]);f=ar.transform(f,[1,0,0,1,0,-o]);const[g,y,v,w]=ar.getAxialAlignedBoundingBox([0,0,n,o],f),x=Math.round(v-g)||1,$=Math.round(w-y)||1,S=this.cachedCanvases.getCanvas("fillCanvas",x,$),k=S.context,T=g,E=y;k.translate(-T,-E),k.transform(...f),p||(p=this._scaleImage(h.canvas,gu(k)),p=p.img,d&&a&&d.set(u,p)),k.imageSmoothingEnabled=nJ(Po(k),t.interpolate),I9(k,p,0,0,p.width,p.height,0,0,n,o),k.globalCompositeOperation="source-in";const A=ar.transform(gu(k),[1,0,0,1,-T,-E]);return k.fillStyle=a?i.getPattern(r,this,A,Wa.FILL):i,k.fillRect(0,0,n,o),d&&!a&&(this.cachedCanvases.delete("fillCanvas"),d.set(u,S.canvas)),{canvas:S.canvas,offsetX:Math.round(T),offsetY:Math.round(E)}}setLineWidth(t){t!==this.current.lineWidth&&(this._cachedScaleForStroking[0]=-1),this.current.lineWidth=t,this.ctx.lineWidth=t}setLineCap(t){this.ctx.lineCap=u0t[t]}setLineJoin(t){this.ctx.lineJoin=p0t[t]}setMiterLimit(t){this.ctx.miterLimit=t}setDash(t,r){const n=this.ctx;n.setLineDash!==void 0&&(n.setLineDash(t),n.lineDashOffset=r)}setRenderingIntent(t){}setFlatness(t){}setGState(t){for(const[r,n]of t)switch(r){case"LW":this.setLineWidth(n);break;case"LC":this.setLineCap(n);break;case"LJ":this.setLineJoin(n);break;case"ML":this.setMiterLimit(n);break;case"D":this.setDash(n[0],n[1]);break;case"RI":this.setRenderingIntent(n);break;case"FL":this.setFlatness(n);break;case"Font":this.setFont(n[0],n[1]);break;case"CA":this.current.strokeAlpha=n;break;case"ca":this.current.fillAlpha=n,this.ctx.globalAlpha=n;break;case"BM":this.ctx.globalCompositeOperation=n;break;case"SMask":this.current.activeSMask=n?this.tempSMask:null,this.tempSMask=null,this.checkSMaskState();break;case"TR":this.ctx.filter=this.current.transferMaps=this.filterFactory.addFilter(n);break}}get inSMaskMode(){return!!this.suspendedCtx}checkSMaskState(){const t=this.inSMaskMode;this.current.activeSMask&&!t?this.beginSMaskMode():!this.current.activeSMask&&t&&this.endSMaskMode()}beginSMaskMode(){if(this.inSMaskMode)throw new Error("beginSMaskMode called while already in smask mode");const t=this.ctx.canvas.width,r=this.ctx.canvas.height,n="smaskGroupAt"+this.groupLevel,o=this.cachedCanvases.getCanvas(n,t,r);this.suspendedCtx=this.ctx,this.ctx=o.context;const i=this.ctx;i.setTransform(...Po(this.suspendedCtx)),W4(this.suspendedCtx,i),l0t(i,this.suspendedCtx),this.setGState([["BM","source-over"],["ca",1],["CA",1]])}endSMaskMode(){if(!this.inSMaskMode)throw new Error("endSMaskMode called while not in smask mode");this.ctx._removeMirroring(),W4(this.ctx,this.suspendedCtx),this.ctx=this.suspendedCtx,this.suspendedCtx=null}compose(t){if(!this.current.activeSMask)return;t?(t[0]=Math.floor(t[0]),t[1]=Math.floor(t[1]),t[2]=Math.ceil(t[2]),t[3]=Math.ceil(t[3])):t=[0,0,this.ctx.canvas.width,this.ctx.canvas.height];const r=this.current.activeSMask,n=this.suspendedCtx;this.composeSMask(n,r,this.ctx,t),this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.clearRect(0,0,this.ctx.canvas.width,this.ctx.canvas.height),this.ctx.restore()}composeSMask(t,r,n,o){const i=o[0],a=o[1],l=o[2]-i,d=o[3]-a;l===0||d===0||(this.genericComposeSMask(r.context,n,l,d,r.subtype,r.backdrop,r.transferMap,i,a,r.offsetX,r.offsetY),t.save(),t.globalAlpha=1,t.globalCompositeOperation="source-over",t.setTransform(1,0,0,1,0,0),t.drawImage(n.canvas,0,0),t.restore())}genericComposeSMask(t,r,n,o,i,a,l,d,u,p,h){let f=t.canvas,g=d-p,y=u-h;if(a){if(g<0||y<0||g+n>f.width||y+o>f.height){const w=this.cachedCanvases.getCanvas("maskExtension",n,o),x=w.context;x.drawImage(f,-g,-y),a.some($=>$!==0)&&(x.globalCompositeOperation="destination-atop",x.fillStyle=ar.makeHexColor(...a),x.fillRect(0,0,n,o),x.globalCompositeOperation="source-over"),f=w.canvas,g=y=0}else if(a.some(w=>w!==0)){t.save(),t.globalAlpha=1,t.setTransform(1,0,0,1,0,0);const w=new Path2D;w.rect(g,y,n,o),t.clip(w),t.globalCompositeOperation="destination-atop",t.fillStyle=ar.makeHexColor(...a),t.fillRect(g,y,n,o),t.restore()}}r.save(),r.globalAlpha=1,r.setTransform(1,0,0,1,0,0),i==="Alpha"&&l?r.filter=this.filterFactory.addAlphaFilter(l):i==="Luminosity"&&(r.filter=this.filterFactory.addLuminosityFilter(l));const v=new Path2D;v.rect(d,u,n,o),r.clip(v),r.globalCompositeOperation="destination-in",r.drawImage(f,g,y,n,o,d,u,n,o),r.restore()}save(){this.inSMaskMode?(W4(this.ctx,this.suspendedCtx),this.suspendedCtx.save()):this.ctx.save();const t=this.current;this.stateStack.push(t),this.current=t.clone()}restore(){this.stateStack.length===0&&this.inSMaskMode&&this.endSMaskMode(),this.stateStack.length!==0&&(this.current=this.stateStack.pop(),this.inSMaskMode?(this.suspendedCtx.restore(),W4(this.suspendedCtx,this.ctx)):this.ctx.restore(),this.checkSMaskState(),this.pendingClip=null,this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null)}transform(t,r,n,o,i,a){this.ctx.transform(t,r,n,o,i,a),this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null}constructPath(t,r,n){const o=this.ctx,i=this.current;let a=i.x,l=i.y,d,u;const p=Po(o),h=p[0]===0&&p[3]===0||p[1]===0&&p[2]===0,f=h?n.slice(0):null;for(let g=0,y=0,v=t.length;g<v;g++)switch(t[g]|0){case kc.rectangle:a=r[y++],l=r[y++];const w=r[y++],x=r[y++],$=a+w,S=l+x;o.moveTo(a,l),w===0||x===0?o.lineTo($,S):(o.lineTo($,l),o.lineTo($,S),o.lineTo(a,S)),h||i.updateRectMinMax(p,[a,l,$,S]),o.closePath();break;case kc.moveTo:a=r[y++],l=r[y++],o.moveTo(a,l),h||i.updatePathMinMax(p,a,l);break;case kc.lineTo:a=r[y++],l=r[y++],o.lineTo(a,l),h||i.updatePathMinMax(p,a,l);break;case kc.curveTo:d=a,u=l,a=r[y+4],l=r[y+5],o.bezierCurveTo(r[y],r[y+1],r[y+2],r[y+3],a,l),i.updateCurvePathMinMax(p,d,u,r[y],r[y+1],r[y+2],r[y+3],a,l,f),y+=6;break;case kc.curveTo2:d=a,u=l,o.bezierCurveTo(a,l,r[y],r[y+1],r[y+2],r[y+3]),i.updateCurvePathMinMax(p,d,u,a,l,r[y],r[y+1],r[y+2],r[y+3],f),a=r[y+2],l=r[y+3],y+=4;break;case kc.curveTo3:d=a,u=l,a=r[y+2],l=r[y+3],o.bezierCurveTo(r[y],r[y+1],a,l,a,l),i.updateCurvePathMinMax(p,d,u,r[y],r[y+1],a,l,a,l,f),y+=4;break;case kc.closePath:o.closePath();break}h&&i.updateScalingPathMinMax(p,f),i.setCurrentPoint(a,l)}closePath(){this.ctx.closePath()}stroke(t=!0){const r=this.ctx,n=this.current.strokeColor;r.globalAlpha=this.current.strokeAlpha,this.contentVisible&&(typeof n=="object"&&n?.getPattern?(r.save(),r.strokeStyle=n.getPattern(r,this,gu(r),Wa.STROKE),this.rescaleAndStroke(!1),r.restore()):this.rescaleAndStroke(!0)),t&&this.consumePath(this.current.getClippedPathBoundingBox()),r.globalAlpha=this.current.fillAlpha}closeStroke(){this.closePath(),this.stroke()}fill(t=!0){const r=this.ctx,n=this.current.fillColor,o=this.current.patternFill;let i=!1;o&&(r.save(),r.fillStyle=n.getPattern(r,this,gu(r),Wa.FILL),i=!0);const a=this.current.getClippedPathBoundingBox();this.contentVisible&&a!==null&&(this.pendingEOFill?(r.fill("evenodd"),this.pendingEOFill=!1):r.fill()),i&&r.restore(),t&&this.consumePath(a)}eoFill(){this.pendingEOFill=!0,this.fill()}fillStroke(){this.fill(!1),this.stroke(!1),this.consumePath()}eoFillStroke(){this.pendingEOFill=!0,this.fillStroke()}closeFillStroke(){this.closePath(),this.fillStroke()}closeEOFillStroke(){this.pendingEOFill=!0,this.closePath(),this.fillStroke()}endPath(){this.consumePath()}clip(){this.pendingClip=h0t}eoClip(){this.pendingClip=oJ}beginText(){this.current.textMatrix=Uge,this.current.textMatrixScale=1,this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0}endText(){const t=this.pendingTextPaths,r=this.ctx;if(t===void 0){r.beginPath();return}r.save(),r.beginPath();for(const n of t)r.setTransform(...n.transform),r.translate(n.x,n.y),n.addToPath(r,n.fontSize);r.restore(),r.clip(),r.beginPath(),delete this.pendingTextPaths}setCharSpacing(t){this.current.charSpacing=t}setWordSpacing(t){this.current.wordSpacing=t}setHScale(t){this.current.textHScale=t/100}setLeading(t){this.current.leading=-t}setFont(t,r){const n=this.commonObjs.get(t),o=this.current;if(!n)throw new Error(`Can't find font for ${t}`);if(o.fontMatrix=n.fontMatrix||ij,(o.fontMatrix[0]===0||o.fontMatrix[3]===0)&&Xr("Invalid font matrix for font "+t),r<0?(r=-r,o.fontDirection=-1):o.fontDirection=1,this.current.font=n,this.current.fontSize=r,n.isType3Font)return;const i=n.loadedName||"sans-serif",a=n.systemFontInfo?.css||`"${i}", ${n.fallbackName}`;let l="normal";n.black?l="900":n.bold&&(l="bold");const d=n.italic?"italic":"normal";let u=r;r<KX?u=KX:r>QX&&(u=QX),this.current.fontSizeScale=r/u,this.ctx.font=`${d} ${l} ${u}px ${a}`}setTextRenderingMode(t){this.current.textRenderingMode=t}setTextRise(t){this.current.textRise=t}moveText(t,r){this.current.x=this.current.lineX+=t,this.current.y=this.current.lineY+=r}setLeadingMoveText(t,r){this.setLeading(-r),this.moveText(t,r)}setTextMatrix(t,r,n,o,i,a){this.current.textMatrix=[t,r,n,o,i,a],this.current.textMatrixScale=Math.hypot(t,r),this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0}nextLine(){this.moveText(0,this.current.leading)}paintChar(t,r,n,o){const i=this.ctx,a=this.current,l=a.font,d=a.textRenderingMode,u=a.fontSize/a.fontSizeScale,p=d&va.FILL_STROKE_MASK,h=!!(d&va.ADD_TO_PATH_FLAG),f=a.patternFill&&!l.missingFile;let g;(l.disableFontFace||h||f)&&(g=l.getPathGenerator(this.commonObjs,t)),l.disableFontFace||f?(i.save(),i.translate(r,n),i.beginPath(),g(i,u),o&&i.setTransform(...o),(p===va.FILL||p===va.FILL_STROKE)&&i.fill(),(p===va.STROKE||p===va.FILL_STROKE)&&i.stroke(),i.restore()):((p===va.FILL||p===va.FILL_STROKE)&&i.fillText(t,r,n),(p===va.STROKE||p===va.FILL_STROKE)&&i.strokeText(t,r,n)),h&&(this.pendingTextPaths||=[]).push({transform:Po(i),x:r,y:n,fontSize:u,addToPath:g})}get isFontSubpixelAAEnabled(){const{context:t}=this.cachedCanvases.getCanvas("isFontSubpixelAAEnabled",10,10);t.scale(1.5,1),t.fillText("I",0,10);const r=t.getImageData(0,0,10,10).data;let n=!1;for(let o=3;o<r.length;o+=4)if(r[o]>0&&r[o]<255){n=!0;break}return bn(this,"isFontSubpixelAAEnabled",n)}showText(t){const r=this.current,n=r.font;if(n.isType3Font)return this.showType3Text(t);const o=r.fontSize;if(o===0)return;const i=this.ctx,a=r.fontSizeScale,l=r.charSpacing,d=r.wordSpacing,u=r.fontDirection,p=r.textHScale*u,h=t.length,f=n.vertical,g=f?1:-1,y=n.defaultVMetrics,v=o*r.fontMatrix[0],w=r.textRenderingMode===va.FILL&&!n.disableFontFace&&!r.patternFill;i.save(),i.transform(...r.textMatrix),i.translate(r.x,r.y+r.textRise),u>0?i.scale(p,-1):i.scale(p,1);let x;if(r.patternFill){i.save();const E=r.fillColor.getPattern(i,this,gu(i),Wa.FILL);x=Po(i),i.restore(),i.fillStyle=E}let $=r.lineWidth;const S=r.textMatrixScale;if(S===0||$===0){const E=r.textRenderingMode&va.FILL_STROKE_MASK;(E===va.STROKE||E===va.FILL_STROKE)&&($=this.getSinglePixelWidth())}else $/=S;if(a!==1&&(i.scale(a,a),$/=a),i.lineWidth=$,n.isInvalidPDFjsFont){const E=[];let A=0;for(const P of t)E.push(P.unicode),A+=P.width;i.fillText(E.join(""),0,0),r.x+=A*v*p,i.restore(),this.compose();return}let k=0,T;for(T=0;T<h;++T){const E=t[T];if(typeof E=="number"){k+=g*E*o/1e3;continue}let A=!1;const P=(E.isSpace?d:0)+l,D=E.fontChar,O=E.accent;let V,j,q=E.width;if(f){const F=E.vmetric||y,H=-(E.vmetric?F[1]:q*.5)*v,I=F[2]*v;q=F?-F[0]:q,V=H/a,j=(k+I)/a}else V=k/a,j=0;if(n.remeasure&&q>0){const F=i.measureText(D).width*1e3/o*a;if(q<F&&this.isFontSubpixelAAEnabled){const H=q/F;A=!0,i.save(),i.scale(H,1),V/=H}else q!==F&&(V+=(q-F)/2e3*o/a)}if(this.contentVisible&&(E.isInFont||n.missingFile)){if(w&&!O)i.fillText(D,V,j);else if(this.paintChar(D,V,j,x),O){const F=V+o*O.offset.x/a,H=j-o*O.offset.y/a;this.paintChar(O.fontChar,F,H,x)}}const W=f?q*v-P*u:q*v+P*u;k+=W,A&&i.restore()}f?r.y-=k:r.x+=k*p,i.restore(),this.compose()}showType3Text(t){const r=this.ctx,n=this.current,o=n.font,i=n.fontSize,a=n.fontDirection,l=o.vertical?1:-1,d=n.charSpacing,u=n.wordSpacing,p=n.textHScale*a,h=n.fontMatrix||ij,f=t.length,g=n.textRenderingMode===va.INVISIBLE;let y,v,w,x;if(!(g||i===0)){for(this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null,r.save(),r.transform(...n.textMatrix),r.translate(n.x,n.y),r.scale(p,a),y=0;y<f;++y){if(v=t[y],typeof v=="number"){x=l*v*i/1e3,this.ctx.translate(x,0),n.x+=x*p;continue}const $=(v.isSpace?u:0)+d,S=o.charProcOperatorList[v.operatorListId];if(!S){Xr(`Type3 character "${v.operatorListId}" is not available.`);continue}this.contentVisible&&(this.processingType3=v,this.save(),r.scale(i,i),r.transform(...h),this.executeOperatorList(S),this.restore()),w=ar.applyTransform([v.width,0],h)[0]*i+$,r.translate(w,0),n.x+=w*p}r.restore(),this.processingType3=null}}setCharWidth(t,r){}setCharWidthAndBounds(t,r,n,o,i,a){this.ctx.rect(n,o,i-n,a-o),this.ctx.clip(),this.endPath()}getColorN_Pattern(t){let r;if(t[0]==="TilingPattern"){const n=t[1],o=this.baseTransform||Po(this.ctx),i={createCanvasGraphics:a=>new _f(a,this.commonObjs,this.objs,this.canvasFactory,this.filterFactory,{optionalContentConfig:this.optionalContentConfig,markedContentStack:this.markedContentStack})};r=new rN(t,n,this.ctx,i,o)}else r=this._getPattern(t[1],t[2]);return r}setStrokeColorN(){this.current.strokeColor=this.getColorN_Pattern(arguments)}setFillColorN(){this.current.fillColor=this.getColorN_Pattern(arguments),this.current.patternFill=!0}setStrokeRGBColor(t,r,n){const o=ar.makeHexColor(t,r,n);this.ctx.strokeStyle=o,this.current.strokeColor=o}setFillRGBColor(t,r,n){const o=ar.makeHexColor(t,r,n);this.ctx.fillStyle=o,this.current.fillColor=o,this.current.patternFill=!1}_getPattern(t,r=null){let n;return this.cachedPatterns.has(t)?n=this.cachedPatterns.get(t):(n=i0t(this.getObject(t)),this.cachedPatterns.set(t,n)),r&&(n.matrix=r),n}shadingFill(t){if(!this.contentVisible)return;const r=this.ctx;this.save();const n=this._getPattern(t);r.fillStyle=n.getPattern(r,this,gu(r),Wa.SHADING);const o=gu(r);if(o){const{width:i,height:a}=r.canvas,[l,d,u,p]=ar.getAxialAlignedBoundingBox([0,0,i,a],o);this.ctx.fillRect(l,d,u-l,p-d)}else this.ctx.fillRect(-1e10,-1e10,2e10,2e10);this.compose(this.current.getClippedPathBoundingBox()),this.restore()}beginInlineImage(){to("Should not call beginInlineImage")}beginImageData(){to("Should not call beginImageData")}paintFormXObjectBegin(t,r){if(this.contentVisible&&(this.save(),this.baseTransformStack.push(this.baseTransform),t&&this.transform(...t),this.baseTransform=Po(this.ctx),r)){const n=r[2]-r[0],o=r[3]-r[1];this.ctx.rect(r[0],r[1],n,o),this.current.updateRectMinMax(Po(this.ctx),r),this.clip(),this.endPath()}}paintFormXObjectEnd(){this.contentVisible&&(this.restore(),this.baseTransform=this.baseTransformStack.pop())}beginGroup(t){if(!this.contentVisible)return;this.save(),this.inSMaskMode&&(this.endSMaskMode(),this.current.activeSMask=null);const r=this.ctx;t.isolated||Sx("TODO: Support non-isolated groups."),t.knockout&&Xr("Knockout groups not supported.");const n=Po(r);if(t.matrix&&r.transform(...t.matrix),!t.bbox)throw new Error("Bounding box is required.");let o=ar.getAxialAlignedBoundingBox(t.bbox,Po(r));const i=[0,0,r.canvas.width,r.canvas.height];o=ar.intersect(o,i)||[0,0,0,0];const a=Math.floor(o[0]),l=Math.floor(o[1]),d=Math.max(Math.ceil(o[2])-a,1),u=Math.max(Math.ceil(o[3])-l,1);this.current.startNewPathAndClipBox([0,0,d,u]);let p="groupAt"+this.groupLevel;t.smask&&(p+="_smask_"+this.smaskCounter++%2);const h=this.cachedCanvases.getCanvas(p,d,u),f=h.context;f.translate(-a,-l),f.transform(...n),t.smask?this.smaskStack.push({canvas:h.canvas,context:f,offsetX:a,offsetY:l,subtype:t.smask.subtype,backdrop:t.smask.backdrop,transferMap:t.smask.transferMap||null,startTransformInverse:null}):(r.setTransform(1,0,0,1,0,0),r.translate(a,l),r.save()),W4(r,f),this.ctx=f,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(r),this.groupLevel++}endGroup(t){if(!this.contentVisible)return;this.groupLevel--;const r=this.ctx,n=this.groupStack.pop();if(this.ctx=n,this.ctx.imageSmoothingEnabled=!1,t.smask)this.tempSMask=this.smaskStack.pop(),this.restore();else{this.ctx.restore();const o=Po(this.ctx);this.restore(),this.ctx.save(),this.ctx.setTransform(...o);const i=ar.getAxialAlignedBoundingBox([0,0,r.canvas.width,r.canvas.height],o);this.ctx.drawImage(r.canvas,0,0),this.ctx.restore(),this.compose(i)}}beginAnnotation(t,r,n,o,i){if(this.#e(),j9(this.ctx),this.ctx.save(),this.save(),this.baseTransform&&this.ctx.setTransform(...this.baseTransform),r){const a=r[2]-r[0],l=r[3]-r[1];if(i&&this.annotationCanvasMap){n=n.slice(),n[4]-=r[0],n[5]-=r[1],r=r.slice(),r[0]=r[1]=0,r[2]=a,r[3]=l;const[d,u]=ar.singularValueDecompose2dScale(Po(this.ctx)),{viewportScale:p}=this,h=Math.ceil(a*this.outputScaleX*p),f=Math.ceil(l*this.outputScaleY*p);this.annotationCanvas=this.canvasFactory.create(h,f);const{canvas:g,context:y}=this.annotationCanvas;this.annotationCanvasMap.set(t,g),this.annotationCanvas.savedCtx=this.ctx,this.ctx=y,this.ctx.save(),this.ctx.setTransform(d,0,0,-u,0,l*u),j9(this.ctx)}else j9(this.ctx),this.ctx.rect(r[0],r[1],a,l),this.ctx.clip(),this.endPath()}this.current=new eJ(this.ctx.canvas.width,this.ctx.canvas.height),this.transform(...n),this.transform(...o)}endAnnotation(){this.annotationCanvas&&(this.ctx.restore(),this.#t(),this.ctx=this.annotationCanvas.savedCtx,delete this.annotationCanvas.savedCtx,delete this.annotationCanvas)}paintImageMaskXObject(t){if(!this.contentVisible)return;const r=t.count;t=this.getObject(t.data,t),t.count=r;const n=this.ctx,o=this.processingType3;if(o&&(o.compiled===void 0&&(o.compiled=d0t(t)),o.compiled)){o.compiled(n);return}const i=this._createMaskCanvas(t),a=i.canvas;n.save(),n.setTransform(1,0,0,1,0,0),n.drawImage(a,i.offsetX,i.offsetY),n.restore(),this.compose()}paintImageMaskXObjectRepeat(t,r,n=0,o=0,i,a){if(!this.contentVisible)return;t=this.getObject(t.data,t);const l=this.ctx;l.save();const d=Po(l);l.transform(r,n,o,i,0,0);const u=this._createMaskCanvas(t);l.setTransform(1,0,0,1,u.offsetX-d[4],u.offsetY-d[5]);for(let p=0,h=a.length;p<h;p+=2){const f=ar.transform(d,[r,n,o,i,a[p],a[p+1]]),[g,y]=ar.applyTransform([0,0],f);l.drawImage(u.canvas,g,y)}l.restore(),this.compose()}paintImageMaskXObjectGroup(t){if(!this.contentVisible)return;const r=this.ctx,n=this.current.fillColor,o=this.current.patternFill;for(const i of t){const{data:a,width:l,height:d,transform:u}=i,p=this.cachedCanvases.getCanvas("maskCanvas",l,d),h=p.context;h.save();const f=this.getObject(a,i);rJ(h,f),h.globalCompositeOperation="source-in",h.fillStyle=o?n.getPattern(h,this,gu(r),Wa.FILL):n,h.fillRect(0,0,l,d),h.restore(),r.save(),r.transform(...u),r.scale(1,-1),I9(r,p.canvas,0,0,l,d,0,-1,1,1),r.restore()}this.compose()}paintImageXObject(t){if(!this.contentVisible)return;const r=this.getObject(t);if(!r){Xr("Dependent image isn't ready yet");return}this.paintInlineImageXObject(r)}paintImageXObjectRepeat(t,r,n,o){if(!this.contentVisible)return;const i=this.getObject(t);if(!i){Xr("Dependent image isn't ready yet");return}const a=i.width,l=i.height,d=[];for(let u=0,p=o.length;u<p;u+=2)d.push({transform:[r,0,0,n,o[u],o[u+1]],x:0,y:0,w:a,h:l});this.paintInlineImageXObjectGroup(i,d)}applyTransferMapsToCanvas(t){return this.current.transferMaps!=="none"&&(t.filter=this.current.transferMaps,t.drawImage(t.canvas,0,0),t.filter="none"),t.canvas}applyTransferMapsToBitmap(t){if(this.current.transferMaps==="none")return t.bitmap;const{bitmap:r,width:n,height:o}=t,i=this.cachedCanvases.getCanvas("inlineImage",n,o),a=i.context;return a.filter=this.current.transferMaps,a.drawImage(r,0,0),a.filter="none",i.canvas}paintInlineImageXObject(t){if(!this.contentVisible)return;const r=t.width,n=t.height,o=this.ctx;if(this.save(),!ka){const{filter:l}=o;l!=="none"&&l!==""&&(o.filter="none")}o.scale(1/r,-1/n);let i;if(t.bitmap)i=this.applyTransferMapsToBitmap(t);else if(typeof HTMLElement=="function"&&t instanceof HTMLElement||!t.data)i=t;else{const d=this.cachedCanvases.getCanvas("inlineImage",r,n).context;tJ(d,t),i=this.applyTransferMapsToCanvas(d)}const a=this._scaleImage(i,gu(o));o.imageSmoothingEnabled=nJ(Po(o),t.interpolate),I9(o,a.img,0,0,a.paintWidth,a.paintHeight,0,-n,r,n),this.compose(),this.restore()}paintInlineImageXObjectGroup(t,r){if(!this.contentVisible)return;const n=this.ctx;let o;if(t.bitmap)o=t.bitmap;else{const i=t.width,a=t.height,d=this.cachedCanvases.getCanvas("inlineImage",i,a).context;tJ(d,t),o=this.applyTransferMapsToCanvas(d)}for(const i of r)n.save(),n.transform(...i.transform),n.scale(1,-1),I9(n,o,i.x,i.y,i.w,i.h,0,-1,1,1),n.restore();this.compose()}paintSolidColorImageMask(){this.contentVisible&&(this.ctx.fillRect(0,0,1,1),this.compose())}markPoint(t){}markPointProps(t,r){}beginMarkedContent(t){this.markedContentStack.push({visible:!0})}beginMarkedContentProps(t,r){t==="OC"?this.markedContentStack.push({visible:this.optionalContentConfig.isVisible(r)}):this.markedContentStack.push({visible:!0}),this.contentVisible=this.isContentVisible()}endMarkedContent(){this.markedContentStack.pop(),this.contentVisible=this.isContentVisible()}beginCompat(){}endCompat(){}consumePath(t){const r=this.current.isEmptyClip();this.pendingClip&&this.current.updateClipFromPath(),this.pendingClip||this.compose(t);const n=this.ctx;this.pendingClip&&(r||(this.pendingClip===oJ?n.clip("evenodd"):n.clip()),this.pendingClip=null),this.current.startNewPathAndClipBox(this.current.clipBox),n.beginPath()}getSinglePixelWidth(){if(!this._cachedGetSinglePixelWidth){const t=Po(this.ctx);if(t[1]===0&&t[2]===0)this._cachedGetSinglePixelWidth=1/Math.min(Math.abs(t[0]),Math.abs(t[3]));else{const r=Math.abs(t[0]*t[3]-t[2]*t[1]),n=Math.hypot(t[0],t[2]),o=Math.hypot(t[1],t[3]);this._cachedGetSinglePixelWidth=Math.max(n,o)/r}}return this._cachedGetSinglePixelWidth}getScaleForStroking(){if(this._cachedScaleForStroking[0]===-1){const{lineWidth:t}=this.current,{a:r,b:n,c:o,d:i}=this.ctx.getTransform();let a,l;if(n===0&&o===0){const d=Math.abs(r),u=Math.abs(i);if(d===u)if(t===0)a=l=1/d;else{const p=d*t;a=l=p<1?1/p:1}else if(t===0)a=1/d,l=1/u;else{const p=d*t,h=u*t;a=p<1?1/p:1,l=h<1?1/h:1}}else{const d=Math.abs(r*i-n*o),u=Math.hypot(r,n),p=Math.hypot(o,i);if(t===0)a=p/d,l=u/d;else{const h=t*d;a=p>h?p/h:1,l=u>h?u/h:1}}this._cachedScaleForStroking[0]=a,this._cachedScaleForStroking[1]=l}return this._cachedScaleForStroking}rescaleAndStroke(t){const{ctx:r}=this,{lineWidth:n}=this.current,[o,i]=this.getScaleForStroking();if(r.lineWidth=n||1,o===1&&i===1){r.stroke();return}const a=r.getLineDash();if(t&&r.save(),r.scale(o,i),a.length>0){const l=Math.max(o,i);r.setLineDash(a.map(d=>d/l)),r.lineDashOffset/=l}r.stroke(),t&&r.restore()}isContentVisible(){for(let t=this.markedContentStack.length-1;t>=0;t--)if(!this.markedContentStack[t].visible)return!1;return!0}}for(const e in kc)_f.prototype[e]!==void 0&&(_f.prototype[kc[e]]=_f.prototype[e]);class A7{static#e=null;static#t="";static get workerPort(){return this.#e}static set workerPort(t){if(!(typeof Worker<"u"&&t instanceof Worker)&&t!==null)throw new Error("Invalid `workerPort` type.");this.#e=t}static get workerSrc(){return this.#t}static set workerSrc(t){if(typeof t!="string")throw new Error("Invalid `workerSrc` type.");this.#t=t}}const R9={DATA:1,ERROR:2},si={CANCEL:1,CANCEL_COMPLETE:2,CLOSE:3,ENQUEUE:4,ERROR:5,PULL:6,PULL_COMPLETE:7,START_COMPLETE:8};function Rs(e){switch(e instanceof Error||typeof e=="object"&&e!==null||to('wrapReason: Expected "reason" to be a (possibly cloned) Error.'),e.name){case"AbortException":return new Am(e.message);case"MissingPDFException":return new Tm(e.message);case"PasswordException":return new sj(e.message,e.code);case"UnexpectedResponseException":return new kx(e.message,e.status);case"UnknownErrorException":return new lj(e.message,e.details);default:return new lj(e.message,e.toString())}}class O5{constructor(t,r,n){this.sourceName=t,this.targetName=r,this.comObj=n,this.callbackId=1,this.streamId=1,this.streamSinks=Object.create(null),this.streamControllers=Object.create(null),this.callbackCapabilities=Object.create(null),this.actionHandler=Object.create(null),this._onComObjOnMessage=o=>{const i=o.data;if(i.targetName!==this.sourceName)return;if(i.stream){this.#t(i);return}if(i.callback){const l=i.callbackId,d=this.callbackCapabilities[l];if(!d)throw new Error(`Cannot resolve callback ${l}`);if(delete this.callbackCapabilities[l],i.callback===R9.DATA)d.resolve(i.data);else if(i.callback===R9.ERROR)d.reject(Rs(i.reason));else throw new Error("Unexpected callback case");return}const a=this.actionHandler[i.action];if(!a)throw new Error(`Unknown action from worker: ${i.action}`);if(i.callbackId){const l=this.sourceName,d=i.sourceName;new Promise(function(u){u(a(i.data))}).then(function(u){n.postMessage({sourceName:l,targetName:d,callback:R9.DATA,callbackId:i.callbackId,data:u})},function(u){n.postMessage({sourceName:l,targetName:d,callback:R9.ERROR,callbackId:i.callbackId,reason:Rs(u)})});return}if(i.streamId){this.#e(i);return}a(i.data)},n.addEventListener("message",this._onComObjOnMessage)}on(t,r){const n=this.actionHandler;if(n[t])throw new Error(`There is already an actionName called "${t}"`);n[t]=r}send(t,r,n){this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:t,data:r},n)}sendWithPromise(t,r,n){const o=this.callbackId++,i=Promise.withResolvers();this.callbackCapabilities[o]=i;try{this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:t,callbackId:o,data:r},n)}catch(a){i.reject(a)}return i.promise}sendWithStream(t,r,n,o){const i=this.streamId++,a=this.sourceName,l=this.targetName,d=this.comObj;return new ReadableStream({start:u=>{const p=Promise.withResolvers();return this.streamControllers[i]={controller:u,startCall:p,pullCall:null,cancelCall:null,isClosed:!1},d.postMessage({sourceName:a,targetName:l,action:t,streamId:i,data:r,desiredSize:u.desiredSize},o),p.promise},pull:u=>{const p=Promise.withResolvers();return this.streamControllers[i].pullCall=p,d.postMessage({sourceName:a,targetName:l,stream:si.PULL,streamId:i,desiredSize:u.desiredSize}),p.promise},cancel:u=>{Li(u instanceof Error,"cancel must have a valid reason");const p=Promise.withResolvers();return this.streamControllers[i].cancelCall=p,this.streamControllers[i].isClosed=!0,d.postMessage({sourceName:a,targetName:l,stream:si.CANCEL,streamId:i,reason:Rs(u)}),p.promise}},n)}#e(t){const r=t.streamId,n=this.sourceName,o=t.sourceName,i=this.comObj,a=this,l=this.actionHandler[t.action],d={enqueue(u,p=1,h){if(this.isCancelled)return;const f=this.desiredSize;this.desiredSize-=p,f>0&&this.desiredSize<=0&&(this.sinkCapability=Promise.withResolvers(),this.ready=this.sinkCapability.promise),i.postMessage({sourceName:n,targetName:o,stream:si.ENQUEUE,streamId:r,chunk:u},h)},close(){this.isCancelled||(this.isCancelled=!0,i.postMessage({sourceName:n,targetName:o,stream:si.CLOSE,streamId:r}),delete a.streamSinks[r])},error(u){Li(u instanceof Error,"error must have a valid reason"),!this.isCancelled&&(this.isCancelled=!0,i.postMessage({sourceName:n,targetName:o,stream:si.ERROR,streamId:r,reason:Rs(u)}))},sinkCapability:Promise.withResolvers(),onPull:null,onCancel:null,isCancelled:!1,desiredSize:t.desiredSize,ready:null};d.sinkCapability.resolve(),d.ready=d.sinkCapability.promise,this.streamSinks[r]=d,new Promise(function(u){u(l(t.data,d))}).then(function(){i.postMessage({sourceName:n,targetName:o,stream:si.START_COMPLETE,streamId:r,success:!0})},function(u){i.postMessage({sourceName:n,targetName:o,stream:si.START_COMPLETE,streamId:r,reason:Rs(u)})})}#t(t){const r=t.streamId,n=this.sourceName,o=t.sourceName,i=this.comObj,a=this.streamControllers[r],l=this.streamSinks[r];switch(t.stream){case si.START_COMPLETE:t.success?a.startCall.resolve():a.startCall.reject(Rs(t.reason));break;case si.PULL_COMPLETE:t.success?a.pullCall.resolve():a.pullCall.reject(Rs(t.reason));break;case si.PULL:if(!l){i.postMessage({sourceName:n,targetName:o,stream:si.PULL_COMPLETE,streamId:r,success:!0});break}l.desiredSize<=0&&t.desiredSize>0&&l.sinkCapability.resolve(),l.desiredSize=t.desiredSize,new Promise(function(d){d(l.onPull?.())}).then(function(){i.postMessage({sourceName:n,targetName:o,stream:si.PULL_COMPLETE,streamId:r,success:!0})},function(d){i.postMessage({sourceName:n,targetName:o,stream:si.PULL_COMPLETE,streamId:r,reason:Rs(d)})});break;case si.ENQUEUE:if(Li(a,"enqueue should have stream controller"),a.isClosed)break;a.controller.enqueue(t.chunk);break;case si.CLOSE:if(Li(a,"close should have stream controller"),a.isClosed)break;a.isClosed=!0,a.controller.close(),this.#r(a,r);break;case si.ERROR:Li(a,"error should have stream controller"),a.controller.error(Rs(t.reason)),this.#r(a,r);break;case si.CANCEL_COMPLETE:t.success?a.cancelCall.resolve():a.cancelCall.reject(Rs(t.reason)),this.#r(a,r);break;case si.CANCEL:if(!l)break;new Promise(function(d){d(l.onCancel?.(Rs(t.reason)))}).then(function(){i.postMessage({sourceName:n,targetName:o,stream:si.CANCEL_COMPLETE,streamId:r,success:!0})},function(d){i.postMessage({sourceName:n,targetName:o,stream:si.CANCEL_COMPLETE,streamId:r,reason:Rs(d)})}),l.sinkCapability.reject(Rs(t.reason)),l.isCancelled=!0,delete this.streamSinks[r];break;default:throw new Error("Unexpected stream case")}}async#r(t,r){await Promise.allSettled([t.startCall?.promise,t.pullCall?.promise,t.cancelCall?.promise]),delete this.streamControllers[r]}destroy(){this.comObj.removeEventListener("message",this._onComObjOnMessage)}}class m0t{#e;#t;constructor({parsedData:t,rawData:r}){this.#e=t,this.#t=r}getRaw(){return this.#t}get(t){return this.#e.get(t)??null}getAll(){return WF(this.#e)}has(t){return this.#e.has(t)}}const V2=Symbol("INTERNAL");class f0t{#e=!1;#t=!1;#r=!1;#o=!0;constructor(t,{name:r,intent:n,usage:o}){this.#e=!!(t&Sl.DISPLAY),this.#t=!!(t&Sl.PRINT),this.name=r,this.intent=n,this.usage=o}get visible(){if(this.#r)return this.#o;if(!this.#o)return!1;const{print:t,view:r}=this.usage;return this.#e?r?.viewState!=="OFF":this.#t?t?.printState!=="OFF":!0}_setVisible(t,r,n=!1){t!==V2&&to("Internal method `_setVisible` called."),this.#r=n,this.#o=r}}class g0t{#e=null;#t=new Map;#r=null;#o=null;constructor(t,r=Sl.DISPLAY){if(this.renderingIntent=r,this.name=null,this.creator=null,t!==null){this.name=t.name,this.creator=t.creator,this.#o=t.order;for(const n of t.groups)this.#t.set(n.id,new f0t(r,n));if(t.baseState==="OFF")for(const n of this.#t.values())n._setVisible(V2,!1);for(const n of t.on)this.#t.get(n)._setVisible(V2,!0);for(const n of t.off)this.#t.get(n)._setVisible(V2,!1);this.#r=this.getHash()}}#s(t){const r=t.length;if(r<2)return!0;const n=t[0];for(let o=1;o<r;o++){const i=t[o];let a;if(Array.isArray(i))a=this.#s(i);else if(this.#t.has(i))a=this.#t.get(i).visible;else return Xr(`Optional content group not found: ${i}`),!0;switch(n){case"And":if(!a)return!1;break;case"Or":if(a)return!0;break;case"Not":return!a;default:return!0}}return n==="And"}isVisible(t){if(this.#t.size===0)return!0;if(!t)return Sx("Optional content group not defined."),!0;if(t.type==="OCG")return this.#t.has(t.id)?this.#t.get(t.id).visible:(Xr(`Optional content group not found: ${t.id}`),!0);if(t.type==="OCMD"){if(t.expression)return this.#s(t.expression);if(!t.policy||t.policy==="AnyOn"){for(const r of t.ids){if(!this.#t.has(r))return Xr(`Optional content group not found: ${r}`),!0;if(this.#t.get(r).visible)return!0}return!1}else if(t.policy==="AllOn"){for(const r of t.ids){if(!this.#t.has(r))return Xr(`Optional content group not found: ${r}`),!0;if(!this.#t.get(r).visible)return!1}return!0}else if(t.policy==="AnyOff"){for(const r of t.ids){if(!this.#t.has(r))return Xr(`Optional content group not found: ${r}`),!0;if(!this.#t.get(r).visible)return!0}return!1}else if(t.policy==="AllOff"){for(const r of t.ids){if(!this.#t.has(r))return Xr(`Optional content group not found: ${r}`),!0;if(this.#t.get(r).visible)return!1}return!0}return Xr(`Unknown optional content policy ${t.policy}.`),!0}return Xr(`Unknown group type ${t.type}.`),!0}setVisibility(t,r=!0){const n=this.#t.get(t);if(!n){Xr(`Optional content group not found: ${t}`);return}n._setVisible(V2,!!r,!0),this.#e=null}setOCGState({state:t,preserveRB:r}){let n;for(const o of t){switch(o){case"ON":case"OFF":case"Toggle":n=o;continue}const i=this.#t.get(o);if(i)switch(n){case"ON":i._setVisible(V2,!0);break;case"OFF":i._setVisible(V2,!1);break;case"Toggle":i._setVisible(V2,!i.visible);break}}this.#e=null}get hasInitialVisibility(){return this.#r===null||this.getHash()===this.#r}getOrder(){return this.#t.size?this.#o?this.#o.slice():[...this.#t.keys()]:null}getGroups(){return this.#t.size>0?WF(this.#t):null}getGroup(t){return this.#t.get(t)||null}getHash(){if(this.#e!==null)return this.#e;const t=new Xge;for(const[r,n]of this.#t)t.update(`${r}:${n.visible}`);return this.#e=t.hexdigest()}}class y0t{constructor(t,{disableRange:r=!1,disableStream:n=!1}){Li(t,'PDFDataTransportStream - missing required "pdfDataRangeTransport" argument.');const{length:o,initialData:i,progressiveDone:a,contentDispositionFilename:l}=t;if(this._queuedChunks=[],this._progressiveDone=a,this._contentDispositionFilename=l,i?.length>0){const d=i instanceof Uint8Array&&i.byteLength===i.buffer.byteLength?i.buffer:new Uint8Array(i).buffer;this._queuedChunks.push(d)}this._pdfDataRangeTransport=t,this._isStreamingSupported=!n,this._isRangeSupported=!r,this._contentLength=o,this._fullRequestReader=null,this._rangeReaders=[],t.addRangeListener((d,u)=>{this._onReceiveData({begin:d,chunk:u})}),t.addProgressListener((d,u)=>{this._onProgress({loaded:d,total:u})}),t.addProgressiveReadListener(d=>{this._onReceiveData({chunk:d})}),t.addProgressiveDoneListener(()=>{this._onProgressiveDone()}),t.transportReady()}_onReceiveData({begin:t,chunk:r}){const n=r instanceof Uint8Array&&r.byteLength===r.buffer.byteLength?r.buffer:new Uint8Array(r).buffer;if(t===void 0)this._fullRequestReader?this._fullRequestReader._enqueue(n):this._queuedChunks.push(n);else{const o=this._rangeReaders.some(function(i){return i._begin!==t?!1:(i._enqueue(n),!0)});Li(o,"_onReceiveData - no `PDFDataTransportStreamRangeReader` instance found.")}}get _progressiveDataLength(){return this._fullRequestReader?._loaded??0}_onProgress(t){t.total===void 0?this._rangeReaders[0]?.onProgress?.({loaded:t.loaded}):this._fullRequestReader?.onProgress?.({loaded:t.loaded,total:t.total})}_onProgressiveDone(){this._fullRequestReader?.progressiveDone(),this._progressiveDone=!0}_removeRangeReader(t){const r=this._rangeReaders.indexOf(t);r>=0&&this._rangeReaders.splice(r,1)}getFullReader(){Li(!this._fullRequestReader,"PDFDataTransportStream.getFullReader can only be called once.");const t=this._queuedChunks;return this._queuedChunks=null,new v0t(this,t,this._progressiveDone,this._contentDispositionFilename)}getRangeReader(t,r){if(r<=this._progressiveDataLength)return null;const n=new b0t(this,t,r);return this._pdfDataRangeTransport.requestDataRange(t,r),this._rangeReaders.push(n),n}cancelAllRequests(t){this._fullRequestReader?.cancel(t);for(const r of this._rangeReaders.slice(0))r.cancel(t);this._pdfDataRangeTransport.abort()}}class v0t{constructor(t,r,n=!1,o=null){this._stream=t,this._done=n||!1,this._filename=KF(o)?o:null,this._queuedChunks=r||[],this._loaded=0;for(const i of this._queuedChunks)this._loaded+=i.byteLength;this._requests=[],this._headersReady=Promise.resolve(),t._fullRequestReader=this,this.onProgress=null}_enqueue(t){this._done||(this._requests.length>0?this._requests.shift().resolve({value:t,done:!1}):this._queuedChunks.push(t),this._loaded+=t.byteLength)}get headersReady(){return this._headersReady}get filename(){return this._filename}get isRangeSupported(){return this._stream._isRangeSupported}get isStreamingSupported(){return this._stream._isStreamingSupported}get contentLength(){return this._stream._contentLength}async read(){if(this._queuedChunks.length>0)return{value:this._queuedChunks.shift(),done:!1};if(this._done)return{value:void 0,done:!0};const t=Promise.withResolvers();return this._requests.push(t),t.promise}cancel(t){this._done=!0;for(const r of this._requests)r.resolve({value:void 0,done:!0});this._requests.length=0}progressiveDone(){this._done||(this._done=!0)}}class b0t{constructor(t,r,n){this._stream=t,this._begin=r,this._end=n,this._queuedChunk=null,this._requests=[],this._done=!1,this.onProgress=null}_enqueue(t){if(!this._done){if(this._requests.length===0)this._queuedChunk=t;else{this._requests.shift().resolve({value:t,done:!1});for(const n of this._requests)n.resolve({value:void 0,done:!0});this._requests.length=0}this._done=!0,this._stream._removeRangeReader(this)}}get isStreamingSupported(){return!1}async read(){if(this._queuedChunk){const r=this._queuedChunk;return this._queuedChunk=null,{value:r,done:!1}}if(this._done)return{value:void 0,done:!0};const t=Promise.withResolvers();return this._requests.push(t),t.promise}cancel(t){this._done=!0;for(const r of this._requests)r.resolve({value:void 0,done:!0});this._requests.length=0,this._stream._removeRangeReader(this)}}function w0t(e){let t=!0,r=n("filename\\*","i").exec(e);if(r){r=r[1];let p=l(r);return p=unescape(p),p=d(p),p=u(p),i(p)}if(r=a(e),r){const p=u(r);return i(p)}if(r=n("filename","i").exec(e),r){r=r[1];let p=l(r);return p=u(p),i(p)}function n(p,h){return new RegExp("(?:^|;)\\s*"+p+'\\s*=\\s*([^";\\s][^;\\s]*|"(?:[^"\\\\]|\\\\"?)+"?)',h)}function o(p,h){if(p){if(!/^[\x00-\xFF]+$/.test(h))return h;try{const f=new TextDecoder(p,{fatal:!0}),g=Ex(h);h=f.decode(g),t=!1}catch{}}return h}function i(p){return t&&/[\x80-\xff]/.test(p)&&(p=o("utf-8",p),t&&(p=o("iso-8859-1",p))),p}function a(p){const h=[];let f;const g=n("filename\\*((?!0\\d)\\d+)(\\*?)","ig");for(;(f=g.exec(p))!==null;){let[,v,w,x]=f;if(v=parseInt(v,10),v in h){if(v===0)break;continue}h[v]=[w,x]}const y=[];for(let v=0;v<h.length&&v in h;++v){let[w,x]=h[v];x=l(x),w&&(x=unescape(x),v===0&&(x=d(x))),y.push(x)}return y.join("")}function l(p){if(p.startsWith('"')){const h=p.slice(1).split('\\"');for(let f=0;f<h.length;++f){const g=h[f].indexOf('"');g!==-1&&(h[f]=h[f].slice(0,g),h.length=f+1),h[f]=h[f].replaceAll(/\\(.)/g,"$1")}p=h.join('"')}return p}function d(p){const h=p.indexOf("'");if(h===-1)return p;const f=p.slice(0,h),y=p.slice(h+1).replace(/^[^']*'/,"");return o(f,y)}function u(p){return!p.startsWith("=?")||/[\x00-\x19\x80-\xff]/.test(p)?p:p.replaceAll(/=\?([\w-]*)\?([QqBb])\?((?:[^?]|\?(?!=))*)\?=/g,function(h,f,g,y){if(g==="q"||g==="Q")return y=y.replaceAll("_"," "),y=y.replaceAll(/=([0-9a-fA-F]{2})/g,function(v,w){return String.fromCharCode(parseInt(w,16))}),o(f,y);try{y=atob(y)}catch{}return o(f,y)})}return""}function nN({getResponseHeader:e,isHttp:t,rangeChunkSize:r,disableRange:n}){const o={allowRangeRequests:!1,suggestedLength:void 0},i=parseInt(e("Content-Length"),10);return!Number.isInteger(i)||(o.suggestedLength=i,i<=2*r)||n||!t||e("Accept-Ranges")!=="bytes"||(e("Content-Encoding")||"identity")!=="identity"||(o.allowRangeRequests=!0),o}function oN(e){const t=e("Content-Disposition");if(t){let r=w0t(t);if(r.includes("%"))try{r=decodeURIComponent(r)}catch{}if(KF(r))return r}return null}function Mx(e,t){return e===404||e===0&&t.startsWith("file:")?new Tm('Missing PDF "'+t+'".'):new kx(`Unexpected server response (${e}) while retrieving PDF "${t}".`,e)}function t4e(e){return e===200||e===206}function r4e(e,t,r){return{method:"GET",headers:e,signal:r.signal,mode:"cors",credentials:t?"include":"same-origin",redirect:"follow"}}function n4e(e){const t=new Headers;for(const r in e){const n=e[r];n!==void 0&&t.append(r,n)}return t}function o4e(e){return e instanceof Uint8Array?e.buffer:e instanceof ArrayBuffer?e:(Xr(`getArrayBuffer - unexpected data format: ${e}`),new Uint8Array(e).buffer)}class iJ{constructor(t){this.source=t,this.isHttp=/^https?:/i.test(t.url),this.httpHeaders=this.isHttp&&t.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){return this._fullRequestReader?._loaded??0}getFullReader(){return Li(!this._fullRequestReader,"PDFFetchStream.getFullReader can only be called once."),this._fullRequestReader=new x0t(this),this._fullRequestReader}getRangeReader(t,r){if(r<=this._progressiveDataLength)return null;const n=new C0t(this,t,r);return this._rangeRequestReaders.push(n),n}cancelAllRequests(t){this._fullRequestReader?.cancel(t);for(const r of this._rangeRequestReaders.slice(0))r.cancel(t)}}class x0t{constructor(t){this._stream=t,this._reader=null,this._loaded=0,this._filename=null;const r=t.source;this._withCredentials=r.withCredentials||!1,this._contentLength=r.length,this._headersCapability=Promise.withResolvers(),this._disableRange=r.disableRange||!1,this._rangeChunkSize=r.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),this._abortController=new AbortController,this._isStreamingSupported=!r.disableStream,this._isRangeSupported=!r.disableRange,this._headers=n4e(this._stream.httpHeaders);const n=r.url;fetch(n,r4e(this._headers,this._withCredentials,this._abortController)).then(o=>{if(!t4e(o.status))throw Mx(o.status,n);this._reader=o.body.getReader(),this._headersCapability.resolve();const i=d=>o.headers.get(d),{allowRangeRequests:a,suggestedLength:l}=nN({getResponseHeader:i,isHttp:this._stream.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=a,this._contentLength=l||this._contentLength,this._filename=oN(i),!this._isStreamingSupported&&this._isRangeSupported&&this.cancel(new Am("Streaming is disabled."))}).catch(this._headersCapability.reject),this.onProgress=null}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}async read(){await this._headersCapability.promise;const{value:t,done:r}=await this._reader.read();return r?{value:t,done:r}:(this._loaded+=t.byteLength,this.onProgress?.({loaded:this._loaded,total:this._contentLength}),{value:o4e(t),done:!1})}cancel(t){this._reader?.cancel(t),this._abortController.abort()}}class C0t{constructor(t,r,n){this._stream=t,this._reader=null,this._loaded=0;const o=t.source;this._withCredentials=o.withCredentials||!1,this._readCapability=Promise.withResolvers(),this._isStreamingSupported=!o.disableStream,this._abortController=new AbortController,this._headers=n4e(this._stream.httpHeaders),this._headers.append("Range",`bytes=${r}-${n-1}`);const i=o.url;fetch(i,r4e(this._headers,this._withCredentials,this._abortController)).then(a=>{if(!t4e(a.status))throw Mx(a.status,i);this._readCapability.resolve(),this._reader=a.body.getReader()}).catch(this._readCapability.reject),this.onProgress=null}get isStreamingSupported(){return this._isStreamingSupported}async read(){await this._readCapability.promise;const{value:t,done:r}=await this._reader.read();return r?{value:t,done:r}:(this._loaded+=t.byteLength,this.onProgress?.({loaded:this._loaded}),{value:o4e(t),done:!1})}cancel(t){this._reader?.cancel(t),this._abortController.abort()}}const dL=200,uL=206;function $0t(e){const t=e.response;return typeof t!="string"?t:Ex(t).buffer}class S0t{constructor(t,r={}){this.url=t,this.isHttp=/^https?:/i.test(t),this.httpHeaders=this.isHttp&&r.httpHeaders||Object.create(null),this.withCredentials=r.withCredentials||!1,this.currXhrId=0,this.pendingRequests=Object.create(null)}requestRange(t,r,n){const o={begin:t,end:r};for(const i in n)o[i]=n[i];return this.request(o)}requestFull(t){return this.request(t)}request(t){const r=new XMLHttpRequest,n=this.currXhrId++,o=this.pendingRequests[n]={xhr:r};r.open("GET",this.url),r.withCredentials=this.withCredentials;for(const i in this.httpHeaders){const a=this.httpHeaders[i];a!==void 0&&r.setRequestHeader(i,a)}return this.isHttp&&"begin"in t&&"end"in t?(r.setRequestHeader("Range",`bytes=${t.begin}-${t.end-1}`),o.expectedStatus=uL):o.expectedStatus=dL,r.responseType="arraybuffer",t.onError&&(r.onerror=function(i){t.onError(r.status)}),r.onreadystatechange=this.onStateChange.bind(this,n),r.onprogress=this.onProgress.bind(this,n),o.onHeadersReceived=t.onHeadersReceived,o.onDone=t.onDone,o.onError=t.onError,o.onProgress=t.onProgress,r.send(null),n}onProgress(t,r){const n=this.pendingRequests[t];n&&n.onProgress?.(r)}onStateChange(t,r){const n=this.pendingRequests[t];if(!n)return;const o=n.xhr;if(o.readyState>=2&&n.onHeadersReceived&&(n.onHeadersReceived(),delete n.onHeadersReceived),o.readyState!==4||!(t in this.pendingRequests))return;if(delete this.pendingRequests[t],o.status===0&&this.isHttp){n.onError?.(o.status);return}const i=o.status||dL;if(!(i===dL&&n.expectedStatus===uL)&&i!==n.expectedStatus){n.onError?.(o.status);return}const l=$0t(o);if(i===uL){const d=o.getResponseHeader("Content-Range"),u=/bytes (\d+)-(\d+)\/(\d+)/.exec(d);n.onDone({begin:parseInt(u[1],10),chunk:l})}else l?n.onDone({begin:0,chunk:l}):n.onError?.(o.status)}getRequestXhr(t){return this.pendingRequests[t].xhr}isPendingRequest(t){return t in this.pendingRequests}abortRequest(t){const r=this.pendingRequests[t].xhr;delete this.pendingRequests[t],r.abort()}}class k0t{constructor(t){this._source=t,this._manager=new S0t(t.url,{httpHeaders:t.httpHeaders,withCredentials:t.withCredentials}),this._rangeChunkSize=t.rangeChunkSize,this._fullRequestReader=null,this._rangeRequestReaders=[]}_onRangeRequestReaderClosed(t){const r=this._rangeRequestReaders.indexOf(t);r>=0&&this._rangeRequestReaders.splice(r,1)}getFullReader(){return Li(!this._fullRequestReader,"PDFNetworkStream.getFullReader can only be called once."),this._fullRequestReader=new E0t(this._manager,this._source),this._fullRequestReader}getRangeReader(t,r){const n=new _0t(this._manager,t,r);return n.onClosed=this._onRangeRequestReaderClosed.bind(this),this._rangeRequestReaders.push(n),n}cancelAllRequests(t){this._fullRequestReader?.cancel(t);for(const r of this._rangeRequestReaders.slice(0))r.cancel(t)}}class E0t{constructor(t,r){this._manager=t;const n={onHeadersReceived:this._onHeadersReceived.bind(this),onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=r.url,this._fullRequestId=t.requestFull(n),this._headersReceivedCapability=Promise.withResolvers(),this._disableRange=r.disableRange||!1,this._contentLength=r.length,this._rangeChunkSize=r.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),this._isStreamingSupported=!1,this._isRangeSupported=!1,this._cachedChunks=[],this._requests=[],this._done=!1,this._storedError=void 0,this._filename=null,this.onProgress=null}_onHeadersReceived(){const t=this._fullRequestId,r=this._manager.getRequestXhr(t),n=a=>r.getResponseHeader(a),{allowRangeRequests:o,suggestedLength:i}=nN({getResponseHeader:n,isHttp:this._manager.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});o&&(this._isRangeSupported=!0),this._contentLength=i||this._contentLength,this._filename=oN(n),this._isRangeSupported&&this._manager.abortRequest(t),this._headersReceivedCapability.resolve()}_onDone(t){if(t&&(this._requests.length>0?this._requests.shift().resolve({value:t.chunk,done:!1}):this._cachedChunks.push(t.chunk)),this._done=!0,!(this._cachedChunks.length>0)){for(const r of this._requests)r.resolve({value:void 0,done:!0});this._requests.length=0}}_onError(t){this._storedError=Mx(t,this._url),this._headersReceivedCapability.reject(this._storedError);for(const r of this._requests)r.reject(this._storedError);this._requests.length=0,this._cachedChunks.length=0}_onProgress(t){this.onProgress?.({loaded:t.loaded,total:t.lengthComputable?t.total:this._contentLength})}get filename(){return this._filename}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}get contentLength(){return this._contentLength}get headersReady(){return this._headersReceivedCapability.promise}async read(){if(this._storedError)throw this._storedError;if(this._cachedChunks.length>0)return{value:this._cachedChunks.shift(),done:!1};if(this._done)return{value:void 0,done:!0};const t=Promise.withResolvers();return this._requests.push(t),t.promise}cancel(t){this._done=!0,this._headersReceivedCapability.reject(t);for(const r of this._requests)r.resolve({value:void 0,done:!0});this._requests.length=0,this._manager.isPendingRequest(this._fullRequestId)&&this._manager.abortRequest(this._fullRequestId),this._fullRequestReader=null}}class _0t{constructor(t,r,n){this._manager=t;const o={onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=t.url,this._requestId=t.requestRange(r,n,o),this._requests=[],this._queuedChunk=null,this._done=!1,this._storedError=void 0,this.onProgress=null,this.onClosed=null}_close(){this.onClosed?.(this)}_onDone(t){const r=t.chunk;this._requests.length>0?this._requests.shift().resolve({value:r,done:!1}):this._queuedChunk=r,this._done=!0;for(const n of this._requests)n.resolve({value:void 0,done:!0});this._requests.length=0,this._close()}_onError(t){this._storedError=Mx(t,this._url);for(const r of this._requests)r.reject(this._storedError);this._requests.length=0,this._queuedChunk=null}_onProgress(t){this.isStreamingSupported||this.onProgress?.({loaded:t.loaded})}get isStreamingSupported(){return!1}async read(){if(this._storedError)throw this._storedError;if(this._queuedChunk!==null){const r=this._queuedChunk;return this._queuedChunk=null,{value:r,done:!1}}if(this._done)return{value:void 0,done:!0};const t=Promise.withResolvers();return this._requests.push(t),t.promise}cancel(t){this._done=!0;for(const r of this._requests)r.resolve({value:void 0,done:!0});this._requests.length=0,this._manager.isPendingRequest(this._requestId)&&this._manager.abortRequest(this._requestId),this._close()}}const i4e=/^file:\/\/\/[a-zA-Z]:\//;function T0t(e){const t=z1.get("url"),r=t.parse(e);return r.protocol==="file:"||r.host?r:/^[a-z]:[/\\]/i.test(e)?t.parse(`file:///${e}`):(r.host||(r.protocol="file:"),r)}class A0t{constructor(t){this.source=t,this.url=T0t(t.url),this.isHttp=this.url.protocol==="http:"||this.url.protocol==="https:",this.isFsUrl=this.url.protocol==="file:",this.httpHeaders=this.isHttp&&t.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){return this._fullRequestReader?._loaded??0}getFullReader(){return Li(!this._fullRequestReader,"PDFNodeStream.getFullReader can only be called once."),this._fullRequestReader=this.isFsUrl?new M0t(this):new L0t(this),this._fullRequestReader}getRangeReader(t,r){if(r<=this._progressiveDataLength)return null;const n=this.isFsUrl?new P0t(this,t,r):new D0t(this,t,r);return this._rangeRequestReaders.push(n),n}cancelAllRequests(t){this._fullRequestReader?.cancel(t);for(const r of this._rangeRequestReaders.slice(0))r.cancel(t)}}class a4e{constructor(t){this._url=t.url,this._done=!1,this._storedError=null,this.onProgress=null;const r=t.source;this._contentLength=r.length,this._loaded=0,this._filename=null,this._disableRange=r.disableRange||!1,this._rangeChunkSize=r.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),this._isStreamingSupported=!r.disableStream,this._isRangeSupported=!r.disableRange,this._readableStream=null,this._readCapability=Promise.withResolvers(),this._headersCapability=Promise.withResolvers()}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}async read(){if(await this._readCapability.promise,this._done)return{value:void 0,done:!0};if(this._storedError)throw this._storedError;const t=this._readableStream.read();return t===null?(this._readCapability=Promise.withResolvers(),this.read()):(this._loaded+=t.length,this.onProgress?.({loaded:this._loaded,total:this._contentLength}),{value:new Uint8Array(t).buffer,done:!1})}cancel(t){if(!this._readableStream){this._error(t);return}this._readableStream.destroy(t)}_error(t){this._storedError=t,this._readCapability.resolve()}_setReadableStream(t){this._readableStream=t,t.on("readable",()=>{this._readCapability.resolve()}),t.on("end",()=>{t.destroy(),this._done=!0,this._readCapability.resolve()}),t.on("error",r=>{this._error(r)}),!this._isStreamingSupported&&this._isRangeSupported&&this._error(new Am("streaming is disabled")),this._storedError&&this._readableStream.destroy(this._storedError)}}class s4e{constructor(t){this._url=t.url,this._done=!1,this._storedError=null,this.onProgress=null,this._loaded=0,this._readableStream=null,this._readCapability=Promise.withResolvers();const r=t.source;this._isStreamingSupported=!r.disableStream}get isStreamingSupported(){return this._isStreamingSupported}async read(){if(await this._readCapability.promise,this._done)return{value:void 0,done:!0};if(this._storedError)throw this._storedError;const t=this._readableStream.read();return t===null?(this._readCapability=Promise.withResolvers(),this.read()):(this._loaded+=t.length,this.onProgress?.({loaded:this._loaded}),{value:new Uint8Array(t).buffer,done:!1})}cancel(t){if(!this._readableStream){this._error(t);return}this._readableStream.destroy(t)}_error(t){this._storedError=t,this._readCapability.resolve()}_setReadableStream(t){this._readableStream=t,t.on("readable",()=>{this._readCapability.resolve()}),t.on("end",()=>{t.destroy(),this._done=!0,this._readCapability.resolve()}),t.on("error",r=>{this._error(r)}),this._storedError&&this._readableStream.destroy(this._storedError)}}function sb(e,t){return{protocol:e.protocol,auth:e.auth,host:e.hostname,port:e.port,path:e.path,method:"GET",headers:t}}class L0t extends a4e{constructor(t){super(t);const r=n=>{if(n.statusCode===404){const l=new Tm(`Missing PDF "${this._url}".`);this._storedError=l,this._headersCapability.reject(l);return}this._headersCapability.resolve(),this._setReadableStream(n);const o=l=>this._readableStream.headers[l.toLowerCase()],{allowRangeRequests:i,suggestedLength:a}=nN({getResponseHeader:o,isHttp:t.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=i,this._contentLength=a||this._contentLength,this._filename=oN(o)};if(this._request=null,this._url.protocol==="http:"){const n=z1.get("http");this._request=n.request(sb(this._url,t.httpHeaders),r)}else{const n=z1.get("https");this._request=n.request(sb(this._url,t.httpHeaders),r)}this._request.on("error",n=>{this._storedError=n,this._headersCapability.reject(n)}),this._request.end()}}class D0t extends s4e{constructor(t,r,n){super(t),this._httpHeaders={};for(const i in t.httpHeaders){const a=t.httpHeaders[i];a!==void 0&&(this._httpHeaders[i]=a)}this._httpHeaders.Range=`bytes=${r}-${n-1}`;const o=i=>{if(i.statusCode===404){const a=new Tm(`Missing PDF "${this._url}".`);this._storedError=a;return}this._setReadableStream(i)};if(this._request=null,this._url.protocol==="http:"){const i=z1.get("http");this._request=i.request(sb(this._url,this._httpHeaders),o)}else{const i=z1.get("https");this._request=i.request(sb(this._url,this._httpHeaders),o)}this._request.on("error",i=>{this._storedError=i}),this._request.end()}}class M0t extends a4e{constructor(t){super(t);let r=decodeURIComponent(this._url.path);i4e.test(this._url.href)&&(r=r.replace(/^\//,""));const n=z1.get("fs");n.promises.lstat(r).then(o=>{this._contentLength=o.size,this._setReadableStream(n.createReadStream(r)),this._headersCapability.resolve()},o=>{o.code==="ENOENT"&&(o=new Tm(`Missing PDF "${r}".`)),this._storedError=o,this._headersCapability.reject(o)})}}class P0t extends s4e{constructor(t,r,n){super(t);let o=decodeURIComponent(this._url.path);i4e.test(this._url.href)&&(o=o.replace(/^\//,""));const i=z1.get("fs");this._setReadableStream(i.createReadStream(o,{start:r,end:n-1}))}}const I0t=1e5,ls=30,j0t=.8;let lb=class t1{#e=Promise.withResolvers();#t=null;#r=!1;#o=!!globalThis.FontInspector?.enabled;#s=null;#n=null;#i=0;#l=0;#d=null;#u=null;#h=0;#c=0;#a=Object.create(null);#m=[];#g=null;#p=[];#v=new WeakMap;#f=null;static#b=new Map;static#x=new Map;static#$=null;static#k=new Set;constructor({textContentSource:t,container:r,viewport:n}){if(t instanceof ReadableStream)this.#g=t;else if(typeof t=="object")this.#g=new ReadableStream({start(d){d.enqueue(t),d.close()}});else throw new Error('No "textContentSource" parameter specified.');this.#t=this.#u=r,this.#c=n.scale*(globalThis.devicePixelRatio||1),this.#h=n.rotation,this.#n={prevFontSize:null,prevFontFamily:null,div:null,properties:null,ctx:null};const{pageWidth:o,pageHeight:i,pageX:a,pageY:l}=n.rawDims;this.#f=[1,0,0,-1,-a,l+i],this.#l=o,this.#i=i,t1.#y(),lm(r,n),this.#e.promise.catch(()=>{}).then(()=>{t1.#k.delete(this),this.#n=null,this.#a=null})}render(){const t=()=>{this.#d.read().then(({value:r,done:n})=>{if(n){this.#e.resolve();return}this.#s??=r.lang,Object.assign(this.#a,r.styles),this.#E(r.items),t()},this.#e.reject)};return this.#d=this.#g.getReader(),t1.#k.add(this),t(),this.#e.promise}update({viewport:t,onBefore:r=null}){const n=t.scale*(globalThis.devicePixelRatio||1),o=t.rotation;if(o!==this.#h&&(r?.(),this.#h=o,lm(this.#u,{rotation:o})),n!==this.#c){r?.(),this.#c=n;const i={prevFontSize:null,prevFontFamily:null,div:null,properties:null,ctx:t1.#w(this.#s)};for(const a of this.#p)i.properties=this.#v.get(a),i.div=a,this.#S(i)}}cancel(){const t=new Am("TextLayer task cancelled.");this.#d?.cancel(t).catch(()=>{}),this.#d=null,this.#e.reject(t)}get textDivs(){return this.#p}get textContentItemsStr(){return this.#m}#E(t){if(this.#r)return;this.#n.ctx??=t1.#w(this.#s);const r=this.#p,n=this.#m;for(const o of t){if(r.length>I0t){Xr("Ignoring additional textDivs for performance reasons."),this.#r=!0;return}if(o.str===void 0){if(o.type==="beginMarkedContentProps"||o.type==="beginMarkedContent"){const i=this.#t;this.#t=document.createElement("span"),this.#t.classList.add("markedContent"),o.id!==null&&this.#t.setAttribute("id",`${o.id}`),i.append(this.#t)}else o.type==="endMarkedContent"&&(this.#t=this.#t.parentNode);continue}n.push(o.str),this.#L(o)}}#L(t){const r=document.createElement("span"),n={angle:0,canvasWidth:0,hasText:t.str!=="",hasEOL:t.hasEOL,fontSize:0};this.#p.push(r);const o=ar.transform(this.#f,t.transform);let i=Math.atan2(o[1],o[0]);const a=this.#a[t.fontName];a.vertical&&(i+=Math.PI/2);const l=this.#o&&a.fontSubstitution||a.fontFamily,d=Math.hypot(o[2],o[3]),u=d*t1.#C(l,this.#s);let p,h;i===0?(p=o[4],h=o[5]-u):(p=o[4]+u*Math.sin(i),h=o[5]-u*Math.cos(i));const f="calc(var(--scale-factor)*",g=r.style;this.#t===this.#u?(g.left=`${(100*p/this.#l).toFixed(2)}%`,g.top=`${(100*h/this.#i).toFixed(2)}%`):(g.left=`${f}${p.toFixed(2)}px)`,g.top=`${f}${h.toFixed(2)}px)`),g.fontSize=`${f}${(t1.#$*d).toFixed(2)}px)`,g.fontFamily=l,n.fontSize=d,r.setAttribute("role","presentation"),r.textContent=t.str,r.dir=t.dir,this.#o&&(r.dataset.fontName=a.fontSubstitutionLoadedName||t.fontName),i!==0&&(n.angle=i*(180/Math.PI));let y=!1;if(t.str.length>1)y=!0;else if(t.str!==" "&&t.transform[0]!==t.transform[3]){const v=Math.abs(t.transform[0]),w=Math.abs(t.transform[3]);v!==w&&Math.max(v,w)/Math.min(v,w)>1.5&&(y=!0)}if(y&&(n.canvasWidth=a.vertical?t.height:t.width),this.#v.set(r,n),this.#n.div=r,this.#n.properties=n,this.#S(this.#n),n.hasText&&this.#t.append(r),n.hasEOL){const v=document.createElement("br");v.setAttribute("role","presentation"),this.#t.append(v)}}#S(t){const{div:r,properties:n,ctx:o,prevFontSize:i,prevFontFamily:a}=t,{style:l}=r;let d="";if(t1.#$>1&&(d=`scale(${1/t1.#$})`),n.canvasWidth!==0&&n.hasText){const{fontFamily:u}=l,{canvasWidth:p,fontSize:h}=n;(i!==h||a!==u)&&(o.font=`${h*this.#c}px ${u}`,t.prevFontSize=h,t.prevFontFamily=u);const{width:f}=o.measureText(r.textContent);f>0&&(d=`scaleX(${p*this.#c/f}) ${d}`)}n.angle!==0&&(d=`rotate(${n.angle}deg) ${d}`),d.length>0&&(l.transform=d)}static cleanup(){if(!(this.#k.size>0)){this.#b.clear();for(const{canvas:t}of this.#x.values())t.remove();this.#x.clear()}}static#w(t=null){let r=this.#x.get(t||="");if(!r){const n=document.createElement("canvas");n.className="hiddenCanvasElement",n.lang=t,document.body.append(n),r=n.getContext("2d",{alpha:!1,willReadFrequently:!0}),this.#x.set(t,r)}return r}static#y(){if(this.#$!==null)return;const t=document.createElement("div");t.style.opacity=0,t.style.lineHeight=1,t.style.fontSize="1px",t.textContent="X",document.body.append(t),this.#$=t.getBoundingClientRect().height,t.remove()}static#C(t,r){const n=this.#b.get(t);if(n)return n;const o=this.#w(r),i=o.font;o.canvas.width=o.canvas.height=ls,o.font=`${ls}px ${t}`;const a=o.measureText("");let l=a.fontBoundingBoxAscent,d=Math.abs(a.fontBoundingBoxDescent);if(l){const h=l/(l+d);return this.#b.set(t,h),o.canvas.width=o.canvas.height=0,o.font=i,h}o.strokeStyle="red",o.clearRect(0,0,ls,ls),o.strokeText("g",0,0);let u=o.getImageData(0,0,ls,ls).data;d=0;for(let h=u.length-1-3;h>=0;h-=4)if(u[h]>0){d=Math.ceil(h/4/ls);break}o.clearRect(0,0,ls,ls),o.strokeText("A",0,ls),u=o.getImageData(0,0,ls,ls).data,l=0;for(let h=0,f=u.length;h<f;h+=4)if(u[h]>0){l=ls-Math.floor(h/4/ls);break}o.canvas.width=o.canvas.height=0,o.font=i;const p=l?l/(l+d):j0t;return this.#b.set(t,p),p}};function R0t(){Kge("`renderTextLayer`, please use `TextLayer` instead.");const{textContentSource:e,container:t,viewport:r,...n}=arguments[0],o=Object.keys(n);o.length>0&&Xr("Ignoring `renderTextLayer` parameters: "+o.join(", "));const i=new lb({textContentSource:e,container:t,viewport:r}),{textDivs:a,textContentItemsStr:l}=i;return{promise:i.render(),textDivs:a,textContentItemsStr:l}}function O0t(){Kge("`updateTextLayer`, please use `TextLayer` instead.")}class L7{static textContent(t){const r=[],n={items:r,styles:Object.create(null)};function o(i){if(!i)return;let a=null;const l=i.name;if(l==="#text")a=i.value;else if(L7.shouldBuildText(l))i?.attributes?.textContent?a=i.attributes.textContent:i.value&&(a=i.value);else return;if(a!==null&&r.push({str:a}),!!i.children)for(const d of i.children)o(d)}return o(t),n}static shouldBuildText(t){return!(t==="textarea"||t==="input"||t==="option"||t==="select")}}const F0t=65536,N0t=100,z0t=5e3,B0t=ka?X2t:N2t,H0t=ka?J2t:qge,V0t=ka?Q2t:F2t,U0t=ka?e0t:Zge;function W0t(e={}){typeof e=="string"||e instanceof URL?e={url:e}:(e instanceof ArrayBuffer||ArrayBuffer.isView(e))&&(e={data:e});const t=new iN,{docId:r}=t,n=e.url?Y0t(e.url):null,o=e.data?G0t(e.data):null,i=e.httpHeaders||null,a=e.withCredentials===!0,l=e.password??null,d=e.range instanceof l4e?e.range:null,u=Number.isInteger(e.rangeChunkSize)&&e.rangeChunkSize>0?e.rangeChunkSize:F0t;let p=e.worker instanceof El?e.worker:null;const h=e.verbosity,f=typeof e.docBaseUrl=="string"&&!ZF(e.docBaseUrl)?e.docBaseUrl:null,g=typeof e.cMapUrl=="string"?e.cMapUrl:null,y=e.cMapPacked!==!1,v=e.CMapReaderFactory||H0t,w=typeof e.standardFontDataUrl=="string"?e.standardFontDataUrl:null,x=e.StandardFontDataFactory||U0t,$=e.stopAtErrors!==!0,S=Number.isInteger(e.maxImageSize)&&e.maxImageSize>-1?e.maxImageSize:-1,k=e.isEvalSupported!==!1,T=typeof e.isOffscreenCanvasSupported=="boolean"?e.isOffscreenCanvasSupported:!ka,E=Number.isInteger(e.canvasMaxAreaInBytes)?e.canvasMaxAreaInBytes:-1,A=typeof e.disableFontFace=="boolean"?e.disableFontFace:ka,P=e.fontExtraProperties===!0,D=e.enableXfa===!0,O=e.ownerDocument||globalThis.document,V=e.disableRange===!0,j=e.disableStream===!0,q=e.disableAutoFetch===!0,W=e.pdfBug===!0,F=e.enableHWA===!0,H=d?d.length:e.length??NaN,I=typeof e.useSystemFonts=="boolean"?e.useSystemFonts:!ka&&!A,L=typeof e.useWorkerFetch=="boolean"?e.useWorkerFetch:v===qge&&x===Zge&&g&&w&&R5(g,document.baseURI)&&R5(w,document.baseURI),z=e.canvasFactory||new B0t({ownerDocument:O,enableHWA:F}),B=e.filterFactory||new V0t({docId:r,ownerDocument:O}),ee=null;_2t(h);const Z={canvasFactory:z,filterFactory:B};if(L||(Z.cMapReaderFactory=new v({baseUrl:g,isCompressed:y}),Z.standardFontDataFactory=new x({baseUrl:w})),!p){const X={verbosity:h,port:A7.workerPort};p=X.port?El.fromPort(X):new El(X),t._worker=p}const U={docId:r,apiVersion:"4.4.168",data:o,password:l,disableAutoFetch:q,rangeChunkSize:u,length:H,docBaseUrl:f,enableXfa:D,evaluatorOptions:{maxImageSize:S,disableFontFace:A,ignoreErrors:$,isEvalSupported:k,isOffscreenCanvasSupported:T,canvasMaxAreaInBytes:E,fontExtraProperties:P,useSystemFonts:I,cMapUrl:L?g:null,standardFontDataUrl:L?w:null}},Q={disableFontFace:A,fontExtraProperties:P,ownerDocument:O,pdfBug:W,styleElement:ee,loadingParams:{disableAutoFetch:q,enableXfa:D}};return p.promise.then(function(){if(t.destroyed)throw new Error("Loading aborted");if(p.destroyed)throw new Error("Worker was destroyed");const X=p.messageHandler.sendWithPromise("GetDocRequest",U,o?[o.buffer]:null);let ae;if(d)ae=new y0t(d,{disableRange:V,disableStream:j});else if(!o){if(!n)throw new Error("getDocument - no `url` parameter provided.");ae=(ce=>ka?function(){return typeof fetch<"u"&&typeof Response<"u"&&"body"in Response.prototype}()&&R5(ce.url)?new iJ(ce):new A0t(ce):R5(ce.url)?new iJ(ce):new k0t(ce))({url:n,length:H,httpHeaders:i,withCredentials:a,rangeChunkSize:u,disableRange:V,disableStream:j})}return X.then(fe=>{if(t.destroyed)throw new Error("Loading aborted");if(p.destroyed)throw new Error("Worker was destroyed");const ce=new O5(r,fe,p.port),se=new Q0t(ce,t,ae,Q,Z);t._transport=se,ce.send("Ready",null)})}).catch(t._capability.reject),t}function Y0t(e){if(e instanceof URL)return e.href;try{return new URL(e,window.location).href}catch{if(ka&&typeof e=="string")return e}throw new Error("Invalid PDF url data: either string or URL-object is expected in the url property.")}function G0t(e){if(ka&&typeof rv<"u"&&e instanceof rv)throw new Error("Please provide binary data as `Uint8Array`, rather than `Buffer`.");if(e instanceof Uint8Array&&e.byteLength===e.buffer.byteLength)return e;if(typeof e=="string")return Ex(e);if(e instanceof ArrayBuffer||ArrayBuffer.isView(e)||typeof e=="object"&&!isNaN(e?.length))return new Uint8Array(e);throw new Error("Invalid PDF binary data: either TypedArray, string, or array-like object is expected in the data property.")}function aJ(e){return typeof e=="object"&&Number.isInteger(e?.num)&&e.num>=0&&Number.isInteger(e?.gen)&&e.gen>=0}class iN{static#e=0;constructor(){this._capability=Promise.withResolvers(),this._transport=null,this._worker=null,this.docId=`d${iN.#e++}`,this.destroyed=!1,this.onPassword=null,this.onProgress=null}get promise(){return this._capability.promise}async destroy(){this.destroyed=!0;try{this._worker?.port&&(this._worker._pendingDestroy=!0),await this._transport?.destroy()}catch(t){throw this._worker?.port&&delete this._worker._pendingDestroy,t}this._transport=null,this._worker&&(this._worker.destroy(),this._worker=null)}}let l4e=class{constructor(t,r,n=!1,o=null){this.length=t,this.initialData=r,this.progressiveDone=n,this.contentDispositionFilename=o,this._rangeListeners=[],this._progressListeners=[],this._progressiveReadListeners=[],this._progressiveDoneListeners=[],this._readyCapability=Promise.withResolvers()}addRangeListener(t){this._rangeListeners.push(t)}addProgressListener(t){this._progressListeners.push(t)}addProgressiveReadListener(t){this._progressiveReadListeners.push(t)}addProgressiveDoneListener(t){this._progressiveDoneListeners.push(t)}onDataRange(t,r){for(const n of this._rangeListeners)n(t,r)}onDataProgress(t,r){this._readyCapability.promise.then(()=>{for(const n of this._progressListeners)n(t,r)})}onDataProgressiveRead(t){this._readyCapability.promise.then(()=>{for(const r of this._progressiveReadListeners)r(t)})}onDataProgressiveDone(){this._readyCapability.promise.then(()=>{for(const t of this._progressiveDoneListeners)t()})}transportReady(){this._readyCapability.resolve()}requestDataRange(t,r){to("Abstract method PDFDataRangeTransport.requestDataRange")}abort(){}};class q0t{constructor(t,r){this._pdfInfo=t,this._transport=r}get annotationStorage(){return this._transport.annotationStorage}get filterFactory(){return this._transport.filterFactory}get numPages(){return this._pdfInfo.numPages}get fingerprints(){return this._pdfInfo.fingerprints}get isPureXfa(){return bn(this,"isPureXfa",!!this._transport._htmlForXfa)}get allXfaHtml(){return this._transport._htmlForXfa}getPage(t){return this._transport.getPage(t)}getPageIndex(t){return this._transport.getPageIndex(t)}getDestinations(){return this._transport.getDestinations()}getDestination(t){return this._transport.getDestination(t)}getPageLabels(){return this._transport.getPageLabels()}getPageLayout(){return this._transport.getPageLayout()}getPageMode(){return this._transport.getPageMode()}getViewerPreferences(){return this._transport.getViewerPreferences()}getOpenAction(){return this._transport.getOpenAction()}getAttachments(){return this._transport.getAttachments()}getJSActions(){return this._transport.getDocJSActions()}getOutline(){return this._transport.getOutline()}getOptionalContentConfig({intent:t="display"}={}){const{renderingIntent:r}=this._transport.getRenderingIntent(t);return this._transport.getOptionalContentConfig(r)}getPermissions(){return this._transport.getPermissions()}getMetadata(){return this._transport.getMetadata()}getMarkInfo(){return this._transport.getMarkInfo()}getData(){return this._transport.getData()}saveDocument(){return this._transport.saveDocument()}getDownloadInfo(){return this._transport.downloadInfoCapability.promise}cleanup(t=!1){return this._transport.startCleanup(t||this.isPureXfa)}destroy(){return this.loadingTask.destroy()}cachedPageNumber(t){return this._transport.cachedPageNumber(t)}get loadingParams(){return this._transport.loadingParams}get loadingTask(){return this._transport.loadingTask}getFieldObjects(){return this._transport.getFieldObjects()}hasJSActions(){return this._transport.hasJSActions()}getCalculationOrderIds(){return this._transport.getCalculationOrderIds()}}class Z0t{#e=null;#t=!1;constructor(t,r,n,o=!1){this._pageIndex=t,this._pageInfo=r,this._transport=n,this._stats=o?new YX:null,this._pdfBug=o,this.commonObjs=n.commonObjs,this.objs=new c4e,this._maybeCleanupAfterRender=!1,this._intentStates=new Map,this.destroyed=!1}get pageNumber(){return this._pageIndex+1}get rotate(){return this._pageInfo.rotate}get ref(){return this._pageInfo.ref}get userUnit(){return this._pageInfo.userUnit}get view(){return this._pageInfo.view}getViewport({scale:t,rotation:r=this.rotate,offsetX:n=0,offsetY:o=0,dontFlip:i=!1}={}){return new m6({viewBox:this.view,scale:t,rotation:r,offsetX:n,offsetY:o,dontFlip:i})}getAnnotations({intent:t="display"}={}){const{renderingIntent:r}=this._transport.getRenderingIntent(t);return this._transport.getAnnotations(this._pageIndex,r)}getJSActions(){return this._transport.getPageJSActions(this._pageIndex)}get filterFactory(){return this._transport.filterFactory}get isPureXfa(){return bn(this,"isPureXfa",!!this._transport._htmlForXfa)}async getXfa(){return this._transport._htmlForXfa?.children[this._pageIndex]||null}render({canvasContext:t,viewport:r,intent:n="display",annotationMode:o=K2.ENABLE,transform:i=null,background:a=null,optionalContentConfigPromise:l=null,annotationCanvasMap:d=null,pageColors:u=null,printAnnotationStorage:p=null}){this._stats?.time("Overall");const h=this._transport.getRenderingIntent(n,o,p),{renderingIntent:f,cacheKey:g}=h;this.#t=!1,this.#o(),l||=this._transport.getOptionalContentConfig(f);let y=this._intentStates.get(g);y||(y=Object.create(null),this._intentStates.set(g,y)),y.streamReaderCancelTimeout&&(clearTimeout(y.streamReaderCancelTimeout),y.streamReaderCancelTimeout=null);const v=!!(f&Sl.PRINT);y.displayReadyCapability||(y.displayReadyCapability=Promise.withResolvers(),y.operatorList={fnArray:[],argsArray:[],lastChunk:!1,separateAnnots:null},this._stats?.time("Page Request"),this._pumpOperatorList(h));const w=S=>{y.renderTasks.delete(x),(this._maybeCleanupAfterRender||v)&&(this.#t=!0),this.#r(!v),S?(x.capability.reject(S),this._abortOperatorList({intentState:y,reason:S instanceof Error?S:new Error(S)})):x.capability.resolve(),this._stats&&(this._stats.timeEnd("Rendering"),this._stats.timeEnd("Overall"),globalThis.Stats?.enabled&&globalThis.Stats.add(this.pageNumber,this._stats))},x=new mf({callback:w,params:{canvasContext:t,viewport:r,transform:i,background:a},objs:this.objs,commonObjs:this.commonObjs,annotationCanvasMap:d,operatorList:y.operatorList,pageIndex:this._pageIndex,canvasFactory:this._transport.canvasFactory,filterFactory:this._transport.filterFactory,useRequestAnimationFrame:!v,pdfBug:this._pdfBug,pageColors:u});(y.renderTasks||=new Set).add(x);const $=x.task;return Promise.all([y.displayReadyCapability.promise,l]).then(([S,k])=>{if(this.destroyed){w();return}if(this._stats?.time("Rendering"),!(k.renderingIntent&f))throw new Error("Must use the same `intent`-argument when calling the `PDFPageProxy.render` and `PDFDocumentProxy.getOptionalContentConfig` methods.");x.initializeGraphics({transparency:S,optionalContentConfig:k}),x.operatorListChanged()}).catch(w),$}getOperatorList({intent:t="display",annotationMode:r=K2.ENABLE,printAnnotationStorage:n=null}={}){function o(){a.operatorList.lastChunk&&(a.opListReadCapability.resolve(a.operatorList),a.renderTasks.delete(l))}const i=this._transport.getRenderingIntent(t,r,n,!0);let a=this._intentStates.get(i.cacheKey);a||(a=Object.create(null),this._intentStates.set(i.cacheKey,a));let l;return a.opListReadCapability||(l=Object.create(null),l.operatorListChanged=o,a.opListReadCapability=Promise.withResolvers(),(a.renderTasks||=new Set).add(l),a.operatorList={fnArray:[],argsArray:[],lastChunk:!1,separateAnnots:null},this._stats?.time("Page Request"),this._pumpOperatorList(i)),a.opListReadCapability.promise}streamTextContent({includeMarkedContent:t=!1,disableNormalization:r=!1}={}){return this._transport.messageHandler.sendWithStream("GetTextContent",{pageIndex:this._pageIndex,includeMarkedContent:t===!0,disableNormalization:r===!0},{highWaterMark:100,size(o){return o.items.length}})}getTextContent(t={}){if(this._transport._htmlForXfa)return this.getXfa().then(n=>L7.textContent(n));const r=this.streamTextContent(t);return new Promise(function(n,o){function i(){a.read().then(function({value:d,done:u}){if(u){n(l);return}l.lang??=d.lang,Object.assign(l.styles,d.styles),l.items.push(...d.items),i()},o)}const a=r.getReader(),l={items:[],styles:Object.create(null),lang:null};i()})}getStructTree(){return this._transport.getStructTree(this._pageIndex)}_destroy(){this.destroyed=!0;const t=[];for(const r of this._intentStates.values())if(this._abortOperatorList({intentState:r,reason:new Error("Page was destroyed."),force:!0}),!r.opListReadCapability)for(const n of r.renderTasks)t.push(n.completed),n.cancel();return this.objs.clear(),this.#t=!1,this.#o(),Promise.all(t)}cleanup(t=!1){this.#t=!0;const r=this.#r(!1);return t&&r&&(this._stats&&=new YX),r}#r(t=!1){if(this.#o(),!this.#t||this.destroyed)return!1;if(t)return this.#e=setTimeout(()=>{this.#e=null,this.#r(!1)},z0t),!1;for(const{renderTasks:r,operatorList:n}of this._intentStates.values())if(r.size>0||!n.lastChunk)return!1;return this._intentStates.clear(),this.objs.clear(),this.#t=!1,!0}#o(){this.#e&&(clearTimeout(this.#e),this.#e=null)}_startRenderPage(t,r){const n=this._intentStates.get(r);n&&(this._stats?.timeEnd("Page Request"),n.displayReadyCapability?.resolve(t))}_renderPageChunk(t,r){for(let n=0,o=t.length;n<o;n++)r.operatorList.fnArray.push(t.fnArray[n]),r.operatorList.argsArray.push(t.argsArray[n]);r.operatorList.lastChunk=t.lastChunk,r.operatorList.separateAnnots=t.separateAnnots;for(const n of r.renderTasks)n.operatorListChanged();t.lastChunk&&this.#r(!0)}_pumpOperatorList({renderingIntent:t,cacheKey:r,annotationStorageSerializable:n}){const{map:o,transfer:i}=n,l=this._transport.messageHandler.sendWithStream("GetOperatorList",{pageIndex:this._pageIndex,intent:t,cacheKey:r,annotationStorage:o},i).getReader(),d=this._intentStates.get(r);d.streamReader=l;const u=()=>{l.read().then(({value:p,done:h})=>{if(h){d.streamReader=null;return}this._transport.destroyed||(this._renderPageChunk(p,d),u())},p=>{if(d.streamReader=null,!this._transport.destroyed){if(d.operatorList){d.operatorList.lastChunk=!0;for(const h of d.renderTasks)h.operatorListChanged();this.#r(!0)}if(d.displayReadyCapability)d.displayReadyCapability.reject(p);else if(d.opListReadCapability)d.opListReadCapability.reject(p);else throw p}})};u()}_abortOperatorList({intentState:t,reason:r,force:n=!1}){if(t.streamReader){if(t.streamReaderCancelTimeout&&(clearTimeout(t.streamReaderCancelTimeout),t.streamReaderCancelTimeout=null),!n){if(t.renderTasks.size>0)return;if(r instanceof qF){let o=N0t;r.extraDelay>0&&r.extraDelay<1e3&&(o+=r.extraDelay),t.streamReaderCancelTimeout=setTimeout(()=>{t.streamReaderCancelTimeout=null,this._abortOperatorList({intentState:t,reason:r,force:!0})},o);return}}if(t.streamReader.cancel(new Am(r.message)).catch(()=>{}),t.streamReader=null,!this._transport.destroyed){for(const[o,i]of this._intentStates)if(i===t){this._intentStates.delete(o);break}this.cleanup()}}}get stats(){return this._stats}}class K0t{#e=new Set;#t=Promise.resolve();postMessage(t,r){const n={data:structuredClone(t,r?{transfer:r}:null)};this.#t.then(()=>{for(const o of this.#e)o.call(this,n)})}addEventListener(t,r){this.#e.add(r)}removeEventListener(t,r){this.#e.delete(r)}terminate(){this.#e.clear()}}const Iu={isWorkerDisabled:!1,fakeWorkerId:0};ka&&(Iu.isWorkerDisabled=!0,A7.workerSrc||="./pdf.worker.mjs"),Iu.isSameOrigin=function(e,t){let r;try{if(r=new URL(e),!r.origin||r.origin==="null")return!1}catch{return!1}const n=new URL(t,r);return r.origin===n.origin},Iu.createCDNWrapper=function(e){const t=`await import("${e}");`;return URL.createObjectURL(new Blob([t],{type:"text/javascript"}))};class El{static#e;constructor({name:t=null,port:r=null,verbosity:n=T2t()}={}){if(this.name=t,this.destroyed=!1,this.verbosity=n,this._readyCapability=Promise.withResolvers(),this._port=null,this._webWorker=null,this._messageHandler=null,r){if(El.#e?.has(r))throw new Error("Cannot use more than one PDFWorker per port.");(El.#e||=new WeakMap).set(r,this),this._initializeFromPort(r);return}this._initialize()}get promise(){return ka?Promise.all([z1.promise,this._readyCapability.promise]):this._readyCapability.promise}#t(){this._readyCapability.resolve(),this._messageHandler.send("configure",{verbosity:this.verbosity})}get port(){return this._port}get messageHandler(){return this._messageHandler}_initializeFromPort(t){this._port=t,this._messageHandler=new O5("main","worker",t),this._messageHandler.on("ready",function(){}),this.#t()}_initialize(){if(Iu.isWorkerDisabled||El.#r){this._setupFakeWorker();return}let{workerSrc:t}=El;try{Iu.isSameOrigin(window.location.href,t)||(t=Iu.createCDNWrapper(new URL(t,window.location).href));const r=new Worker(t,{type:"module"}),n=new O5("main","worker",r),o=()=>{i.abort(),n.destroy(),r.terminate(),this.destroyed?this._readyCapability.reject(new Error("Worker was destroyed")):this._setupFakeWorker()},i=new AbortController;r.addEventListener("error",()=>{this._webWorker||o()},{signal:i.signal}),n.on("test",l=>{if(i.abort(),this.destroyed||!l){o();return}this._messageHandler=n,this._port=r,this._webWorker=r,this.#t()}),n.on("ready",l=>{if(i.abort(),this.destroyed){o();return}try{a()}catch{this._setupFakeWorker()}});const a=()=>{const l=new Uint8Array;n.send("test",l,[l.buffer])};a();return}catch{Sx("The worker has been disabled.")}this._setupFakeWorker()}_setupFakeWorker(){Iu.isWorkerDisabled||(Xr("Setting up fake worker."),Iu.isWorkerDisabled=!0),El._setupFakeWorkerGlobal.then(t=>{if(this.destroyed){this._readyCapability.reject(new Error("Worker was destroyed"));return}const r=new K0t;this._port=r;const n=`fake${Iu.fakeWorkerId++}`,o=new O5(n+"_worker",n,r);t.setup(o,r),this._messageHandler=new O5(n,n+"_worker",r),this.#t()}).catch(t=>{this._readyCapability.reject(new Error(`Setting up fake worker failed: "${t.message}".`))})}destroy(){this.destroyed=!0,this._webWorker&&(this._webWorker.terminate(),this._webWorker=null),El.#e?.delete(this._port),this._port=null,this._messageHandler&&(this._messageHandler.destroy(),this._messageHandler=null)}static fromPort(t){if(!t?.port)throw new Error("PDFWorker.fromPort - invalid method signature.");const r=this.#e?.get(t.port);if(r){if(r._pendingDestroy)throw new Error("PDFWorker.fromPort - the worker is being destroyed.\nPlease remember to await `PDFDocumentLoadingTask.destroy()`-calls.");return r}return new El(t)}static get workerSrc(){if(A7.workerSrc)return A7.workerSrc;throw new Error('No "GlobalWorkerOptions.workerSrc" specified.')}static get#r(){try{return globalThis.pdfjsWorker?.WorkerMessageHandler||null}catch{return null}}static get _setupFakeWorkerGlobal(){return bn(this,"_setupFakeWorkerGlobal",(async()=>this.#r?this.#r:(await import(this.workerSrc)).WorkerMessageHandler)())}}class Q0t{#e=new Map;#t=new Map;#r=new Map;#o=new Map;#s=null;constructor(t,r,n,o,i){this.messageHandler=t,this.loadingTask=r,this.commonObjs=new c4e,this.fontLoader=new Z2t({ownerDocument:o.ownerDocument,styleElement:o.styleElement}),this.loadingParams=o.loadingParams,this._params=o,this.canvasFactory=i.canvasFactory,this.filterFactory=i.filterFactory,this.cMapReaderFactory=i.cMapReaderFactory,this.standardFontDataFactory=i.standardFontDataFactory,this.destroyed=!1,this.destroyCapability=null,this._networkStream=n,this._fullReader=null,this._lastProgress=null,this.downloadInfoCapability=Promise.withResolvers(),this.setupMessageHandler()}#n(t,r=null){const n=this.#e.get(t);if(n)return n;const o=this.messageHandler.sendWithPromise(t,r);return this.#e.set(t,o),o}get annotationStorage(){return bn(this,"annotationStorage",new tN)}getRenderingIntent(t,r=K2.ENABLE,n=null,o=!1){let i=Sl.DISPLAY,a=cj;switch(t){case"any":i=Sl.ANY;break;case"display":break;case"print":i=Sl.PRINT;break;default:Xr(`getRenderingIntent - invalid intent: ${t}`)}switch(r){case K2.DISABLE:i+=Sl.ANNOTATIONS_DISABLE;break;case K2.ENABLE:break;case K2.ENABLE_FORMS:i+=Sl.ANNOTATIONS_FORMS;break;case K2.ENABLE_STORAGE:i+=Sl.ANNOTATIONS_STORAGE,a=(i&Sl.PRINT&&n instanceof Jge?n:this.annotationStorage).serializable;break;default:Xr(`getRenderingIntent - invalid annotationMode: ${r}`)}return o&&(i+=Sl.OPLIST),{renderingIntent:i,cacheKey:`${i}_${a.hash}`,annotationStorageSerializable:a}}destroy(){if(this.destroyCapability)return this.destroyCapability.promise;this.destroyed=!0,this.destroyCapability=Promise.withResolvers(),this.#s?.reject(new Error("Worker was destroyed during onPassword callback"));const t=[];for(const n of this.#t.values())t.push(n._destroy());this.#t.clear(),this.#r.clear(),this.#o.clear(),this.hasOwnProperty("annotationStorage")&&this.annotationStorage.resetModified();const r=this.messageHandler.sendWithPromise("Terminate",null);return t.push(r),Promise.all(t).then(()=>{this.commonObjs.clear(),this.fontLoader.clear(),this.#e.clear(),this.filterFactory.destroy(),lb.cleanup(),this._networkStream?.cancelAllRequests(new Am("Worker was terminated.")),this.messageHandler&&(this.messageHandler.destroy(),this.messageHandler=null),this.destroyCapability.resolve()},this.destroyCapability.reject),this.destroyCapability.promise}setupMessageHandler(){const{messageHandler:t,loadingTask:r}=this;t.on("GetReader",(n,o)=>{Li(this._networkStream,"GetReader - no `IPDFStream` instance available."),this._fullReader=this._networkStream.getFullReader(),this._fullReader.onProgress=i=>{this._lastProgress={loaded:i.loaded,total:i.total}},o.onPull=()=>{this._fullReader.read().then(function({value:i,done:a}){if(a){o.close();return}Li(i instanceof ArrayBuffer,"GetReader - expected an ArrayBuffer."),o.enqueue(new Uint8Array(i),1,[i])}).catch(i=>{o.error(i)})},o.onCancel=i=>{this._fullReader.cancel(i),o.ready.catch(a=>{if(!this.destroyed)throw a})}}),t.on("ReaderHeadersReady",n=>{const o=Promise.withResolvers(),i=this._fullReader;return i.headersReady.then(()=>{(!i.isStreamingSupported||!i.isRangeSupported)&&(this._lastProgress&&r.onProgress?.(this._lastProgress),i.onProgress=a=>{r.onProgress?.({loaded:a.loaded,total:a.total})}),o.resolve({isStreamingSupported:i.isStreamingSupported,isRangeSupported:i.isRangeSupported,contentLength:i.contentLength})},o.reject),o.promise}),t.on("GetRangeReader",(n,o)=>{Li(this._networkStream,"GetRangeReader - no `IPDFStream` instance available.");const i=this._networkStream.getRangeReader(n.begin,n.end);if(!i){o.close();return}o.onPull=()=>{i.read().then(function({value:a,done:l}){if(l){o.close();return}Li(a instanceof ArrayBuffer,"GetRangeReader - expected an ArrayBuffer."),o.enqueue(new Uint8Array(a),1,[a])}).catch(a=>{o.error(a)})},o.onCancel=a=>{i.cancel(a),o.ready.catch(l=>{if(!this.destroyed)throw l})}}),t.on("GetDoc",({pdfInfo:n})=>{this._numPages=n.numPages,this._htmlForXfa=n.htmlForXfa,delete n.htmlForXfa,r._capability.resolve(new q0t(n,this))}),t.on("DocException",function(n){let o;switch(n.name){case"PasswordException":o=new sj(n.message,n.code);break;case"InvalidPDFException":o=new Wge(n.message);break;case"MissingPDFException":o=new Tm(n.message);break;case"UnexpectedResponseException":o=new kx(n.message,n.status);break;case"UnknownErrorException":o=new lj(n.message,n.details);break;default:to("DocException - expected a valid Error.")}r._capability.reject(o)}),t.on("PasswordRequest",n=>{if(this.#s=Promise.withResolvers(),r.onPassword){const o=i=>{i instanceof Error?this.#s.reject(i):this.#s.resolve({password:i})};try{r.onPassword(o,n.code)}catch(i){this.#s.reject(i)}}else this.#s.reject(new sj(n.message,n.code));return this.#s.promise}),t.on("DataLoaded",n=>{r.onProgress?.({loaded:n.length,total:n.length}),this.downloadInfoCapability.resolve(n)}),t.on("StartRenderPage",n=>{if(this.destroyed)return;this.#t.get(n.pageIndex)._startRenderPage(n.transparency,n.cacheKey)}),t.on("commonobj",([n,o,i])=>{if(this.destroyed||this.commonObjs.has(n))return null;switch(o){case"Font":const{disableFontFace:a,fontExtraProperties:l,pdfBug:d}=this._params;if("error"in i){const f=i.error;Xr(`Error during font loading: ${f}`),this.commonObjs.resolve(n,f);break}const u=d&&globalThis.FontInspector?.enabled?(f,g)=>globalThis.FontInspector.fontAdded(f,g):null,p=new K2t(i,{disableFontFace:a,inspectFont:u});this.fontLoader.bind(p).catch(()=>t.sendWithPromise("FontFallback",{id:n})).finally(()=>{!l&&p.data&&(p.data=null),this.commonObjs.resolve(n,p)});break;case"CopyLocalImage":const{imageRef:h}=i;Li(h,"The imageRef must be defined.");for(const f of this.#t.values())for(const[,g]of f.objs)if(g?.ref===h)return g.dataLen?(this.commonObjs.resolve(n,structuredClone(g)),g.dataLen):null;break;case"FontPath":case"Image":case"Pattern":this.commonObjs.resolve(n,i);break;default:throw new Error(`Got unknown common object type ${o}`)}return null}),t.on("obj",([n,o,i,a])=>{if(this.destroyed)return;const l=this.#t.get(o);if(!l.objs.has(n)){if(l._intentStates.size===0){a?.bitmap?.close();return}switch(i){case"Image":l.objs.resolve(n,a),a?.dataLen>$2t&&(l._maybeCleanupAfterRender=!0);break;case"Pattern":l.objs.resolve(n,a);break;default:throw new Error(`Got unknown object type ${i}`)}}}),t.on("DocProgress",n=>{this.destroyed||r.onProgress?.({loaded:n.loaded,total:n.total})}),t.on("FetchBuiltInCMap",n=>this.destroyed?Promise.reject(new Error("Worker was destroyed.")):this.cMapReaderFactory?this.cMapReaderFactory.fetch(n):Promise.reject(new Error("CMapReaderFactory not initialized, see the `useWorkerFetch` parameter."))),t.on("FetchStandardFontData",n=>this.destroyed?Promise.reject(new Error("Worker was destroyed.")):this.standardFontDataFactory?this.standardFontDataFactory.fetch(n):Promise.reject(new Error("StandardFontDataFactory not initialized, see the `useWorkerFetch` parameter.")))}getData(){return this.messageHandler.sendWithPromise("GetData",null)}saveDocument(){this.annotationStorage.size<=0&&Xr("saveDocument called while `annotationStorage` is empty, please use the getData-method instead.");const{map:t,transfer:r}=this.annotationStorage.serializable;return this.messageHandler.sendWithPromise("SaveDocument",{isPureXfa:!!this._htmlForXfa,numPages:this._numPages,annotationStorage:t,filename:this._fullReader?.filename??null},r).finally(()=>{this.annotationStorage.resetModified()})}getPage(t){if(!Number.isInteger(t)||t<=0||t>this._numPages)return Promise.reject(new Error("Invalid page request."));const r=t-1,n=this.#r.get(r);if(n)return n;const o=this.messageHandler.sendWithPromise("GetPage",{pageIndex:r}).then(i=>{if(this.destroyed)throw new Error("Transport destroyed");i.refStr&&this.#o.set(i.refStr,t);const a=new Z0t(r,i,this,this._params.pdfBug);return this.#t.set(r,a),a});return this.#r.set(r,o),o}getPageIndex(t){return aJ(t)?this.messageHandler.sendWithPromise("GetPageIndex",{num:t.num,gen:t.gen}):Promise.reject(new Error("Invalid pageIndex request."))}getAnnotations(t,r){return this.messageHandler.sendWithPromise("GetAnnotations",{pageIndex:t,intent:r})}getFieldObjects(){return this.#n("GetFieldObjects")}hasJSActions(){return this.#n("HasJSActions")}getCalculationOrderIds(){return this.messageHandler.sendWithPromise("GetCalculationOrderIds",null)}getDestinations(){return this.messageHandler.sendWithPromise("GetDestinations",null)}getDestination(t){return typeof t!="string"?Promise.reject(new Error("Invalid destination request.")):this.messageHandler.sendWithPromise("GetDestination",{id:t})}getPageLabels(){return this.messageHandler.sendWithPromise("GetPageLabels",null)}getPageLayout(){return this.messageHandler.sendWithPromise("GetPageLayout",null)}getPageMode(){return this.messageHandler.sendWithPromise("GetPageMode",null)}getViewerPreferences(){return this.messageHandler.sendWithPromise("GetViewerPreferences",null)}getOpenAction(){return this.messageHandler.sendWithPromise("GetOpenAction",null)}getAttachments(){return this.messageHandler.sendWithPromise("GetAttachments",null)}getDocJSActions(){return this.#n("GetDocJSActions")}getPageJSActions(t){return this.messageHandler.sendWithPromise("GetPageJSActions",{pageIndex:t})}getStructTree(t){return this.messageHandler.sendWithPromise("GetStructTree",{pageIndex:t})}getOutline(){return this.messageHandler.sendWithPromise("GetOutline",null)}getOptionalContentConfig(t){return this.#n("GetOptionalContentConfig").then(r=>new g0t(r,t))}getPermissions(){return this.messageHandler.sendWithPromise("GetPermissions",null)}getMetadata(){const t="GetMetadata",r=this.#e.get(t);if(r)return r;const n=this.messageHandler.sendWithPromise(t,null).then(o=>({info:o[0],metadata:o[1]?new m0t(o[1]):null,contentDispositionFilename:this._fullReader?.filename??null,contentLength:this._fullReader?.contentLength??null}));return this.#e.set(t,n),n}getMarkInfo(){return this.messageHandler.sendWithPromise("GetMarkInfo",null)}async startCleanup(t=!1){if(!this.destroyed){await this.messageHandler.sendWithPromise("Cleanup",null);for(const r of this.#t.values())if(!r.cleanup())throw new Error(`startCleanup: Page ${r.pageNumber} is currently rendering.`);this.commonObjs.clear(),t||this.fontLoader.clear(),this.#e.clear(),this.filterFactory.destroy(!0),lb.cleanup()}}cachedPageNumber(t){if(!aJ(t))return null;const r=t.gen===0?`${t.num}R`:`${t.num}R${t.gen}`;return this.#o.get(r)??null}}const O9=Symbol("INITIAL_DATA");class c4e{#e=Object.create(null);#t(t){return this.#e[t]||={...Promise.withResolvers(),data:O9}}get(t,r=null){if(r){const o=this.#t(t);return o.promise.then(()=>r(o.data)),null}const n=this.#e[t];if(!n||n.data===O9)throw new Error(`Requesting object that isn't resolved yet ${t}.`);return n.data}has(t){const r=this.#e[t];return!!r&&r.data!==O9}resolve(t,r=null){const n=this.#t(t);n.data=r,n.resolve()}clear(){for(const t in this.#e){const{data:r}=this.#e[t];r?.bitmap?.close()}this.#e=Object.create(null)}*[Symbol.iterator](){for(const t in this.#e){const{data:r}=this.#e[t];r!==O9&&(yield[t,r])}}}class X0t{#e=null;constructor(t){this.#e=t,this.onContinue=null}get promise(){return this.#e.capability.promise}cancel(t=0){this.#e.cancel(null,t)}get separateAnnots(){const{separateAnnots:t}=this.#e.operatorList;if(!t)return!1;const{annotationCanvasMap:r}=this.#e;return t.form||t.canvas&&r?.size>0}}class mf{#e=null;static#t=new WeakSet;constructor({callback:t,params:r,objs:n,commonObjs:o,annotationCanvasMap:i,operatorList:a,pageIndex:l,canvasFactory:d,filterFactory:u,useRequestAnimationFrame:p=!1,pdfBug:h=!1,pageColors:f=null}){this.callback=t,this.params=r,this.objs=n,this.commonObjs=o,this.annotationCanvasMap=i,this.operatorListIdx=null,this.operatorList=a,this._pageIndex=l,this.canvasFactory=d,this.filterFactory=u,this._pdfBug=h,this.pageColors=f,this.running=!1,this.graphicsReadyCallback=null,this.graphicsReady=!1,this._useRequestAnimationFrame=p===!0&&typeof window<"u",this.cancelled=!1,this.capability=Promise.withResolvers(),this.task=new X0t(this),this._cancelBound=this.cancel.bind(this),this._continueBound=this._continue.bind(this),this._scheduleNextBound=this._scheduleNext.bind(this),this._nextBound=this._next.bind(this),this._canvas=r.canvasContext.canvas}get completed(){return this.capability.promise.catch(function(){})}initializeGraphics({transparency:t=!1,optionalContentConfig:r}){if(this.cancelled)return;if(this._canvas){if(mf.#t.has(this._canvas))throw new Error("Cannot use the same canvas during multiple render() operations. Use different canvas or ensure previous operations were cancelled or completed.");mf.#t.add(this._canvas)}this._pdfBug&&globalThis.StepperManager?.enabled&&(this.stepper=globalThis.StepperManager.create(this._pageIndex),this.stepper.init(this.operatorList),this.stepper.nextBreakPoint=this.stepper.getNextBreakPoint());const{canvasContext:n,viewport:o,transform:i,background:a}=this.params;this.gfx=new _f(n,this.commonObjs,this.objs,this.canvasFactory,this.filterFactory,{optionalContentConfig:r},this.annotationCanvasMap,this.pageColors),this.gfx.beginDrawing({transform:i,viewport:o,transparency:t,background:a}),this.operatorListIdx=0,this.graphicsReady=!0,this.graphicsReadyCallback?.()}cancel(t=null,r=0){this.running=!1,this.cancelled=!0,this.gfx?.endDrawing(),this.#e&&(window.cancelAnimationFrame(this.#e),this.#e=null),mf.#t.delete(this._canvas),this.callback(t||new qF(`Rendering cancelled, page ${this._pageIndex+1}`,r))}operatorListChanged(){if(!this.graphicsReady){this.graphicsReadyCallback||=this._continueBound;return}this.stepper?.updateOperatorList(this.operatorList),!this.running&&this._continue()}_continue(){this.running=!0,!this.cancelled&&(this.task.onContinue?this.task.onContinue(this._scheduleNextBound):this._scheduleNext())}_scheduleNext(){this._useRequestAnimationFrame?this.#e=window.requestAnimationFrame(()=>{this.#e=null,this._nextBound().catch(this._cancelBound)}):Promise.resolve().then(this._nextBound).catch(this._cancelBound)}async _next(){this.cancelled||(this.operatorListIdx=this.gfx.executeOperatorList(this.operatorList,this.operatorListIdx,this._continueBound,this.stepper),this.operatorListIdx===this.operatorList.argsArray.length&&(this.running=!1,this.operatorList.lastChunk&&(this.gfx.endDrawing(),mf.#t.delete(this._canvas),this.callback())))}}const J0t="4.4.168",ept="19fbc8998";function sJ(e){return Math.floor(Math.max(0,Math.min(1,e))*255).toString(16).padStart(2,"0")}function Y4(e){return Math.max(0,Math.min(255,255*e))}class lJ{static CMYK_G([t,r,n,o]){return["G",1-Math.min(1,.3*t+.59*n+.11*r+o)]}static G_CMYK([t]){return["CMYK",0,0,0,1-t]}static G_RGB([t]){return["RGB",t,t,t]}static G_rgb([t]){return t=Y4(t),[t,t,t]}static G_HTML([t]){const r=sJ(t);return`#${r}${r}${r}`}static RGB_G([t,r,n]){return["G",.3*t+.59*r+.11*n]}static RGB_rgb(t){return t.map(Y4)}static RGB_HTML(t){return`#${t.map(sJ).join("")}`}static T_HTML(){return"#00000000"}static T_rgb(){return[null]}static CMYK_RGB([t,r,n,o]){return["RGB",1-Math.min(1,t+o),1-Math.min(1,n+o),1-Math.min(1,r+o)]}static CMYK_rgb([t,r,n,o]){return[Y4(1-Math.min(1,t+o)),Y4(1-Math.min(1,n+o)),Y4(1-Math.min(1,r+o))]}static CMYK_HTML(t){const r=this.CMYK_RGB(t).slice(1);return this.RGB_HTML(r)}static RGB_CMYK([t,r,n]){const o=1-t,i=1-r,a=1-n,l=Math.min(o,i,a);return["CMYK",o,i,a,l]}}class d4e{static setupStorage(t,r,n,o,i){const a=o.getValue(r,{value:null});switch(n.name){case"textarea":if(a.value!==null&&(t.textContent=a.value),i==="print")break;t.addEventListener("input",l=>{o.setValue(r,{value:l.target.value})});break;case"input":if(n.attributes.type==="radio"||n.attributes.type==="checkbox"){if(a.value===n.attributes.xfaOn?t.setAttribute("checked",!0):a.value===n.attributes.xfaOff&&t.removeAttribute("checked"),i==="print")break;t.addEventListener("change",l=>{o.setValue(r,{value:l.target.checked?l.target.getAttribute("xfaOn"):l.target.getAttribute("xfaOff")})})}else{if(a.value!==null&&t.setAttribute("value",a.value),i==="print")break;t.addEventListener("input",l=>{o.setValue(r,{value:l.target.value})})}break;case"select":if(a.value!==null){t.setAttribute("value",a.value);for(const l of n.children)l.attributes.value===a.value?l.attributes.selected=!0:l.attributes.hasOwnProperty("selected")&&delete l.attributes.selected}t.addEventListener("input",l=>{const d=l.target.options,u=d.selectedIndex===-1?"":d[d.selectedIndex].value;o.setValue(r,{value:u})});break}}static setAttributes({html:t,element:r,storage:n=null,intent:o,linkService:i}){const{attributes:a}=r,l=t instanceof HTMLAnchorElement;a.type==="radio"&&(a.name=`${a.name}-${o}`);for(const[d,u]of Object.entries(a))if(u!=null)switch(d){case"class":u.length&&t.setAttribute(d,u.join(" "));break;case"dataId":break;case"id":t.setAttribute("data-element-id",u);break;case"style":Object.assign(t.style,u);break;case"textContent":t.textContent=u;break;default:(!l||d!=="href"&&d!=="newWindow")&&t.setAttribute(d,u)}l&&i.addLinkAttributes(t,a.href,a.newWindow),n&&a.dataId&&this.setupStorage(t,a.dataId,r,n)}static render(t){const r=t.annotationStorage,n=t.linkService,o=t.xfaHtml,i=t.intent||"display",a=document.createElement(o.name);o.attributes&&this.setAttributes({html:a,element:o,intent:i,linkService:n});const l=i!=="richText",d=t.div;if(d.append(a),t.viewport){const h=`matrix(${t.viewport.transform.join(",")})`;d.style.transform=h}l&&d.setAttribute("class","xfaLayer xfaFont");const u=[];if(o.children.length===0){if(o.value){const h=document.createTextNode(o.value);a.append(h),l&&L7.shouldBuildText(o.name)&&u.push(h)}return{textDivs:u}}const p=[[o,-1,a]];for(;p.length>0;){const[h,f,g]=p.at(-1);if(f+1===h.children.length){p.pop();continue}const y=h.children[++p.at(-1)[1]];if(y===null)continue;const{name:v}=y;if(v==="#text"){const x=document.createTextNode(y.value);u.push(x),g.append(x);continue}const w=y?.attributes?.xmlns?document.createElementNS(y.attributes.xmlns,v):document.createElement(v);if(g.append(w),y.attributes&&this.setAttributes({html:w,element:y,storage:r,intent:i,linkService:n}),y.children?.length>0)p.push([y,-1,w]);else if(y.value){const x=document.createTextNode(y.value);l&&L7.shouldBuildText(v)&&u.push(x),w.append(x)}}for(const h of d.querySelectorAll(".xfaNonInteractive input, .xfaNonInteractive textarea"))h.setAttribute("readOnly",!0);return{textDivs:u}}static update(t){const r=`matrix(${t.viewport.transform.join(",")})`;t.div.style.transform=r,t.div.hidden=!1}}const y6=1e3,tpt=9,cm=new WeakSet;function t2(e){return{width:e[2]-e[0],height:e[3]-e[1]}}class rpt{static create(t){switch(t.data.annotationType){case ki.LINK:return new u4e(t);case ki.TEXT:return new npt(t);case ki.WIDGET:switch(t.data.fieldType){case"Tx":return new opt(t);case"Btn":return t.data.radioButton?new p4e(t):t.data.checkBox?new apt(t):new spt(t);case"Ch":return new lpt(t);case"Sig":return new ipt(t)}return new Lm(t);case ki.POPUP:return new hj(t);case ki.FREETEXT:return new h4e(t);case ki.LINE:return new dpt(t);case ki.SQUARE:return new upt(t);case ki.CIRCLE:return new ppt(t);case ki.POLYLINE:return new m4e(t);case ki.CARET:return new mpt(t);case ki.INK:return new f4e(t);case ki.POLYGON:return new hpt(t);case ki.HIGHLIGHT:return new fpt(t);case ki.UNDERLINE:return new gpt(t);case ki.SQUIGGLY:return new ypt(t);case ki.STRIKEOUT:return new vpt(t);case ki.STAMP:return new g4e(t);case ki.FILEATTACHMENT:return new bpt(t);default:return new ti(t)}}}class ti{#e=null;#t=!1;#r=null;constructor(t,{isRenderable:r=!1,ignoreBorder:n=!1,createQuadrilaterals:o=!1}={}){this.isRenderable=r,this.data=t.data,this.layer=t.layer,this.linkService=t.linkService,this.downloadManager=t.downloadManager,this.imageResourcesPath=t.imageResourcesPath,this.renderForms=t.renderForms,this.svgFactory=t.svgFactory,this.annotationStorage=t.annotationStorage,this.enableScripting=t.enableScripting,this.hasJSActions=t.hasJSActions,this._fieldObjects=t.fieldObjects,this.parent=t.parent,r&&(this.container=this._createContainer(n)),o&&this._createQuadrilaterals()}static _hasPopupData({titleObj:t,contentsObj:r,richText:n}){return!!(t?.str||r?.str||n?.str)}get hasPopupData(){return ti._hasPopupData(this.data)}updateEdited(t){if(!this.container)return;this.#e||={rect:this.data.rect.slice(0)};const{rect:r}=t;r&&this.#o(r),this.#r?.popup.updateEdited(t)}resetEdited(){this.#e&&(this.#o(this.#e.rect),this.#r?.popup.resetEdited(),this.#e=null)}#o(t){const{container:{style:r},data:{rect:n,rotation:o},parent:{viewport:{rawDims:{pageWidth:i,pageHeight:a,pageX:l,pageY:d}}}}=this;n?.splice(0,4,...t);const{width:u,height:p}=t2(t);r.left=`${100*(t[0]-l)/i}%`,r.top=`${100*(a-t[3]+d)/a}%`,o===0?(r.width=`${100*u/i}%`,r.height=`${100*p/a}%`):this.setRotation(o)}_createContainer(t){const{data:r,parent:{page:n,viewport:o}}=this,i=document.createElement("section");i.setAttribute("data-annotation-id",r.id),this instanceof Lm||(i.tabIndex=y6);const{style:a}=i;if(a.zIndex=this.parent.zIndex++,r.popupRef&&i.setAttribute("aria-haspopup","dialog"),r.alternativeText&&(i.title=r.alternativeText),r.noRotate&&i.classList.add("norotate"),!r.rect||this instanceof hj){const{rotation:v}=r;return!r.hasOwnCanvas&&v!==0&&this.setRotation(v,i),i}const{width:l,height:d}=t2(r.rect);if(!t&&r.borderStyle.width>0){a.borderWidth=`${r.borderStyle.width}px`;const v=r.borderStyle.horizontalCornerRadius,w=r.borderStyle.verticalCornerRadius;if(v>0||w>0){const $=`calc(${v}px * var(--scale-factor)) / calc(${w}px * var(--scale-factor))`;a.borderRadius=$}else if(this instanceof p4e){const $=`calc(${l}px * var(--scale-factor)) / calc(${d}px * var(--scale-factor))`;a.borderRadius=$}switch(r.borderStyle.style){case U4.SOLID:a.borderStyle="solid";break;case U4.DASHED:a.borderStyle="dashed";break;case U4.BEVELED:Xr("Unimplemented border style: beveled");break;case U4.INSET:Xr("Unimplemented border style: inset");break;case U4.UNDERLINE:a.borderBottomStyle="solid";break}const x=r.borderColor||null;x?(this.#t=!0,a.borderColor=ar.makeHexColor(x[0]|0,x[1]|0,x[2]|0)):a.borderWidth=0}const u=ar.normalizeRect([r.rect[0],n.view[3]-r.rect[1]+n.view[1],r.rect[2],n.view[3]-r.rect[3]+n.view[1]]),{pageWidth:p,pageHeight:h,pageX:f,pageY:g}=o.rawDims;a.left=`${100*(u[0]-f)/p}%`,a.top=`${100*(u[1]-g)/h}%`;const{rotation:y}=r;return r.hasOwnCanvas||y===0?(a.width=`${100*l/p}%`,a.height=`${100*d/h}%`):this.setRotation(y,i),i}setRotation(t,r=this.container){if(!this.data.rect)return;const{pageWidth:n,pageHeight:o}=this.parent.viewport.rawDims,{width:i,height:a}=t2(this.data.rect);let l,d;t%180===0?(l=100*i/n,d=100*a/o):(l=100*a/n,d=100*i/o),r.style.width=`${l}%`,r.style.height=`${d}%`,r.setAttribute("data-main-rotation",(360-t)%360)}get _commonActions(){const t=(r,n,o)=>{const i=o.detail[r],a=i[0],l=i.slice(1);o.target.style[n]=lJ[`${a}_HTML`](l),this.annotationStorage.setValue(this.data.id,{[n]:lJ[`${a}_rgb`](l)})};return bn(this,"_commonActions",{display:r=>{const{display:n}=r.detail,o=n%2===1;this.container.style.visibility=o?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{noView:o,noPrint:n===1||n===2})},print:r=>{this.annotationStorage.setValue(this.data.id,{noPrint:!r.detail.print})},hidden:r=>{const{hidden:n}=r.detail;this.container.style.visibility=n?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{noPrint:n,noView:n})},focus:r=>{setTimeout(()=>r.target.focus({preventScroll:!1}),0)},userName:r=>{r.target.title=r.detail.userName},readonly:r=>{r.target.disabled=r.detail.readonly},required:r=>{this._setRequired(r.target,r.detail.required)},bgColor:r=>{t("bgColor","backgroundColor",r)},fillColor:r=>{t("fillColor","backgroundColor",r)},fgColor:r=>{t("fgColor","color",r)},textColor:r=>{t("textColor","color",r)},borderColor:r=>{t("borderColor","borderColor",r)},strokeColor:r=>{t("strokeColor","borderColor",r)},rotation:r=>{const n=r.detail.rotation;this.setRotation(n),this.annotationStorage.setValue(this.data.id,{rotation:n})}})}_dispatchEventFromSandbox(t,r){const n=this._commonActions;for(const o of Object.keys(r.detail))(t[o]||n[o])?.(r)}_setDefaultPropertiesFromJS(t){if(!this.enableScripting)return;const r=this.annotationStorage.getRawValue(this.data.id);if(!r)return;const n=this._commonActions;for(const[o,i]of Object.entries(r)){const a=n[o];if(a){const l={detail:{[o]:i},target:t};a(l),delete r[o]}}}_createQuadrilaterals(){if(!this.container)return;const{quadPoints:t}=this.data;if(!t)return;const[r,n,o,i]=this.data.rect.map(v=>Math.fround(v));if(t.length===8){const[v,w,x,$]=t.subarray(2,6);if(o===v&&i===w&&r===x&&n===$)return}const{style:a}=this.container;let l;if(this.#t){const{borderColor:v,borderWidth:w}=a;a.borderWidth=0,l=["url('data:image/svg+xml;utf8,",'<svg xmlns="http://www.w3.org/2000/svg"',' preserveAspectRatio="none" viewBox="0 0 1 1">',`<g fill="transparent" stroke="${v}" stroke-width="${w}">`],this.container.classList.add("hasBorder")}const d=o-r,u=i-n,{svgFactory:p}=this,h=p.createElement("svg");h.classList.add("quadrilateralsContainer"),h.setAttribute("width",0),h.setAttribute("height",0);const f=p.createElement("defs");h.append(f);const g=p.createElement("clipPath"),y=`clippath_${this.data.id}`;g.setAttribute("id",y),g.setAttribute("clipPathUnits","objectBoundingBox"),f.append(g);for(let v=2,w=t.length;v<w;v+=8){const x=t[v],$=t[v+1],S=t[v+2],k=t[v+3],T=p.createElement("rect"),E=(S-r)/d,A=(i-$)/u,P=(x-S)/d,D=($-k)/u;T.setAttribute("x",E),T.setAttribute("y",A),T.setAttribute("width",P),T.setAttribute("height",D),g.append(T),l?.push(`<rect vector-effect="non-scaling-stroke" x="${E}" y="${A}" width="${P}" height="${D}"/>`)}this.#t&&(l.push("</g></svg>')"),a.backgroundImage=l.join("")),this.container.append(h),this.container.style.clipPath=`url(#${y})`}_createPopup(){const{container:t,data:r}=this;t.setAttribute("aria-haspopup","dialog");const n=this.#r=new hj({data:{color:r.color,titleObj:r.titleObj,modificationDate:r.modificationDate,contentsObj:r.contentsObj,richText:r.richText,parentRect:r.rect,borderStyle:0,id:`popup_${r.id}`,rotation:r.rotation},parent:this.parent,elements:[this]});this.parent.div.append(n.render())}render(){to("Abstract method `AnnotationElement.render` called")}_getElementsByName(t,r=null){const n=[];if(this._fieldObjects){const o=this._fieldObjects[t];if(o)for(const{page:i,id:a,exportValues:l}of o){if(i===-1||a===r)continue;const d=typeof l=="string"?l:null,u=document.querySelector(`[data-element-id="${a}"]`);if(u&&!cm.has(u)){Xr(`_getElementsByName - element not allowed: ${a}`);continue}n.push({id:a,exportValue:d,domElement:u})}return n}for(const o of document.getElementsByName(t)){const{exportValue:i}=o,a=o.getAttribute("data-element-id");a!==r&&cm.has(o)&&n.push({id:a,exportValue:i,domElement:o})}return n}show(){this.container&&(this.container.hidden=!1),this.popup?.maybeShow()}hide(){this.container&&(this.container.hidden=!0),this.popup?.forceHide()}getElementsToTriggerPopup(){return this.container}addHighlightArea(){const t=this.getElementsToTriggerPopup();if(Array.isArray(t))for(const r of t)r.classList.add("highlightArea");else t.classList.add("highlightArea")}get _isEditable(){return!1}_editOnDoubleClick(){if(!this._isEditable)return;const{annotationEditorType:t,data:{id:r}}=this;this.container.addEventListener("dblclick",()=>{this.linkService.eventBus?.dispatch("switchannotationeditormode",{source:this,mode:t,editId:r})})}}class u4e extends ti{constructor(t,r=null){super(t,{isRenderable:!0,ignoreBorder:!!r?.ignoreBorder,createQuadrilaterals:!0}),this.isTooltipOnly=t.data.isTooltipOnly}render(){const{data:t,linkService:r}=this,n=document.createElement("a");n.setAttribute("data-element-id",t.id);let o=!1;return t.url?(r.addLinkAttributes(n,t.url,t.newWindow),o=!0):t.action?(this._bindNamedAction(n,t.action),o=!0):t.attachment?(this.#t(n,t.attachment,t.attachmentDest),o=!0):t.setOCGState?(this.#r(n,t.setOCGState),o=!0):t.dest?(this._bindLink(n,t.dest),o=!0):(t.actions&&(t.actions.Action||t.actions["Mouse Up"]||t.actions["Mouse Down"])&&this.enableScripting&&this.hasJSActions&&(this._bindJSAction(n,t),o=!0),t.resetForm?(this._bindResetFormAction(n,t.resetForm),o=!0):this.isTooltipOnly&&!o&&(this._bindLink(n,""),o=!0)),this.container.classList.add("linkAnnotation"),o&&this.container.append(n),this.container}#e(){this.container.setAttribute("data-internal-link","")}_bindLink(t,r){t.href=this.linkService.getDestinationHash(r),t.onclick=()=>(r&&this.linkService.goToDestination(r),!1),(r||r==="")&&this.#e()}_bindNamedAction(t,r){t.href=this.linkService.getAnchorUrl(""),t.onclick=()=>(this.linkService.executeNamedAction(r),!1),this.#e()}#t(t,r,n=null){t.href=this.linkService.getAnchorUrl(""),r.description&&(t.title=r.description),t.onclick=()=>(this.downloadManager?.openOrDownloadData(r.content,r.filename,n),!1),this.#e()}#r(t,r){t.href=this.linkService.getAnchorUrl(""),t.onclick=()=>(this.linkService.executeSetOCGState(r),!1),this.#e()}_bindJSAction(t,r){t.href=this.linkService.getAnchorUrl("");const n=new Map([["Action","onclick"],["Mouse Up","onmouseup"],["Mouse Down","onmousedown"]]);for(const o of Object.keys(r.actions)){const i=n.get(o);i&&(t[i]=()=>(this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:r.id,name:o}}),!1))}t.onclick||(t.onclick=()=>!1),this.#e()}_bindResetFormAction(t,r){const n=t.onclick;if(n||(t.href=this.linkService.getAnchorUrl("")),this.#e(),!this._fieldObjects){Xr('_bindResetFormAction - "resetForm" action not supported, ensure that the `fieldObjects` parameter is provided.'),n||(t.onclick=()=>!1);return}t.onclick=()=>{n?.();const{fields:o,refs:i,include:a}=r,l=[];if(o.length!==0||i.length!==0){const p=new Set(i);for(const h of o){const f=this._fieldObjects[h]||[];for(const{id:g}of f)p.add(g)}for(const h of Object.values(this._fieldObjects))for(const f of h)p.has(f.id)===a&&l.push(f)}else for(const p of Object.values(this._fieldObjects))l.push(...p);const d=this.annotationStorage,u=[];for(const p of l){const{id:h}=p;switch(u.push(h),p.type){case"text":{const g=p.defaultValue||"";d.setValue(h,{value:g});break}case"checkbox":case"radiobutton":{const g=p.defaultValue===p.exportValues;d.setValue(h,{value:g});break}case"combobox":case"listbox":{const g=p.defaultValue||"";d.setValue(h,{value:g});break}default:continue}const f=document.querySelector(`[data-element-id="${h}"]`);if(f){if(!cm.has(f)){Xr(`_bindResetFormAction - element not allowed: ${h}`);continue}}else continue;f.dispatchEvent(new Event("resetform"))}return this.enableScripting&&this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:"app",ids:u,name:"ResetForm"}}),!1}}}class npt extends ti{constructor(t){super(t,{isRenderable:!0})}render(){this.container.classList.add("textAnnotation");const t=document.createElement("img");return t.src=this.imageResourcesPath+"annotation-"+this.data.name.toLowerCase()+".svg",t.setAttribute("data-l10n-id","pdfjs-text-annotation-type"),t.setAttribute("data-l10n-args",JSON.stringify({type:this.data.name})),!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container.append(t),this.container}}class Lm extends ti{render(){return this.container}showElementAndHideCanvas(t){this.data.hasOwnCanvas&&(t.previousSibling?.nodeName==="CANVAS"&&(t.previousSibling.hidden=!0),t.hidden=!1)}_getKeyModifier(t){return xs.platform.isMac?t.metaKey:t.ctrlKey}_setEventListener(t,r,n,o,i){n.includes("mouse")?t.addEventListener(n,a=>{this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:o,value:i(a),shift:a.shiftKey,modifier:this._getKeyModifier(a)}})}):t.addEventListener(n,a=>{if(n==="blur"){if(!r.focused||!a.relatedTarget)return;r.focused=!1}else if(n==="focus"){if(r.focused)return;r.focused=!0}i&&this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:o,value:i(a)}})})}_setEventListeners(t,r,n,o){for(const[i,a]of n)(a==="Action"||this.data.actions?.[a])&&((a==="Focus"||a==="Blur")&&(r||={focused:!1}),this._setEventListener(t,r,i,a,o),a==="Focus"&&!this.data.actions?.Blur?this._setEventListener(t,r,"blur","Blur",null):a==="Blur"&&!this.data.actions?.Focus&&this._setEventListener(t,r,"focus","Focus",null))}_setBackgroundColor(t){const r=this.data.backgroundColor||null;t.style.backgroundColor=r===null?"transparent":ar.makeHexColor(r[0],r[1],r[2])}_setTextStyle(t){const r=["left","center","right"],{fontColor:n}=this.data.defaultAppearanceData,o=this.data.defaultAppearanceData.fontSize||tpt,i=t.style;let a;const l=2,d=u=>Math.round(10*u)/10;if(this.data.multiLine){const u=Math.abs(this.data.rect[3]-this.data.rect[1]-l),p=Math.round(u/(aL*o))||1,h=u/p;a=Math.min(o,d(h/aL))}else{const u=Math.abs(this.data.rect[3]-this.data.rect[1]-l);a=Math.min(o,d(u/aL))}i.fontSize=`calc(${a}px * var(--scale-factor))`,i.color=ar.makeHexColor(n[0],n[1],n[2]),this.data.textAlignment!==null&&(i.textAlign=r[this.data.textAlignment])}_setRequired(t,r){r?t.setAttribute("required",!0):t.removeAttribute("required"),t.setAttribute("aria-required",r)}}class opt extends Lm{constructor(t){const r=t.renderForms||t.data.hasOwnCanvas||!t.data.hasAppearance&&!!t.data.fieldValue;super(t,{isRenderable:r})}setPropertyOnSiblings(t,r,n,o){const i=this.annotationStorage;for(const a of this._getElementsByName(t.name,t.id))a.domElement&&(a.domElement[r]=n),i.setValue(a.id,{[o]:n})}render(){const t=this.annotationStorage,r=this.data.id;this.container.classList.add("textWidgetAnnotation");let n=null;if(this.renderForms){const o=t.getValue(r,{value:this.data.fieldValue});let i=o.value||"";const a=t.getValue(r,{charLimit:this.data.maxLen}).charLimit;a&&i.length>a&&(i=i.slice(0,a));let l=o.formattedValue||this.data.textContent?.join(`
|
|
289
|
+
`);return t.join("")}}function R5(e,t){try{const{protocol:r}=t?new URL(e,t):new URL(e);return r==="http:"||r==="https:"}catch{return!1}}function ks(e){e.preventDefault()}function Kge(e){console.log("Deprecated API usage: "+e)}let GX;class Qge{static toDateObject(t){if(!t||typeof t!="string")return null;GX||=new RegExp("^D:(\\d{4})(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?([Z|+|-])?(\\d{2})?'?(\\d{2})?'?");const r=GX.exec(t);if(!r)return null;const n=parseInt(r[1],10);let o=parseInt(r[2],10);o=o>=1&&o<=12?o-1:0;let i=parseInt(r[3],10);i=i>=1&&i<=31?i:1;let a=parseInt(r[4],10);a=a>=0&&a<=23?a:0;let l=parseInt(r[5],10);l=l>=0&&l<=59?l:0;let d=parseInt(r[6],10);d=d>=0&&d<=59?d:0;const u=r[7]||"Z";let p=parseInt(r[8],10);p=p>=0&&p<=23?p:0;let h=parseInt(r[9],10)||0;return h=h>=0&&h<=59?h:0,u==="-"?(a+=p,l+=h):u==="+"&&(a-=p,l-=h),new Date(Date.UTC(n,o,i,a,l,d))}}function H2t(e,{scale:t=1,rotation:r=0}){const{width:n,height:o}=e.attributes.style,i=[0,0,parseInt(n),parseInt(o)];return new m6({viewBox:i,scale:t,rotation:r})}function QF(e){if(e.startsWith("#")){const t=parseInt(e.slice(1),16);return[(t&16711680)>>16,(t&65280)>>8,t&255]}return e.startsWith("rgb(")?e.slice(4,-1).split(",").map(t=>parseInt(t)):e.startsWith("rgba(")?e.slice(5,-1).split(",").map(t=>parseInt(t)).slice(0,3):(Xr(`Not a valid color format: "${e}"`),[0,0,0])}function V2t(e){const t=document.createElement("span");t.style.visibility="hidden",document.body.append(t);for(const r of e.keys()){t.style.color=r;const n=window.getComputedStyle(t).color;e.set(r,QF(n))}t.remove()}function Po(e){const{a:t,b:r,c:n,d:o,e:i,f:a}=e.getTransform();return[t,r,n,o,i,a]}function gu(e){const{a:t,b:r,c:n,d:o,e:i,f:a}=e.getTransform().invertSelf();return[t,r,n,o,i,a]}function lm(e,t,r=!1,n=!0){if(t instanceof m6){const{pageWidth:o,pageHeight:i}=t.rawDims,{style:a}=e,l=xs.isCSSRoundSupported,d=`var(--scale-factor) * ${o}px`,u=`var(--scale-factor) * ${i}px`,p=l?`round(${d}, 1px)`:`calc(${d})`,h=l?`round(${u}, 1px)`:`calc(${u})`;!r||t.rotation%180===0?(a.width=p,a.height=h):(a.width=h,a.height=p)}n&&e.setAttribute("data-main-rotation",t.rotation)}class XF{#e=null;#t=null;#r;#o=null;constructor(t){this.#r=t}render(){const t=this.#e=document.createElement("div");t.className="editToolbar",t.setAttribute("role","toolbar");const r=this.#r._uiManager._signal;t.addEventListener("contextmenu",ks,{signal:r}),t.addEventListener("pointerdown",XF.#s,{signal:r});const n=this.#o=document.createElement("div");n.className="buttons",t.append(n);const o=this.#r.toolbarPosition;if(o){const{style:i}=t,a=this.#r._uiManager.direction==="ltr"?1-o[0]:o[0];i.insetInlineEnd=`${100*a}%`,i.top=`calc(${100*o[1]}% + var(--editor-toolbar-vert-offset))`}return this.#d(),t}static#s(t){t.stopPropagation()}#n(t){this.#r._focusEventsAllowed=!1,t.preventDefault(),t.stopPropagation()}#i(t){this.#r._focusEventsAllowed=!0,t.preventDefault(),t.stopPropagation()}#l(t){const r=this.#r._uiManager._signal;t.addEventListener("focusin",this.#n.bind(this),{capture:!0,signal:r}),t.addEventListener("focusout",this.#i.bind(this),{capture:!0,signal:r}),t.addEventListener("contextmenu",ks,{signal:r})}hide(){this.#e.classList.add("hidden"),this.#t?.hideDropdown()}show(){this.#e.classList.remove("hidden")}#d(){const t=document.createElement("button");t.className="delete",t.tabIndex=0,t.setAttribute("data-l10n-id",`pdfjs-editor-remove-${this.#r.editorType}-button`),this.#l(t),t.addEventListener("click",r=>{this.#r._uiManager.delete()},{signal:this.#r._uiManager._signal}),this.#o.append(t)}get#u(){const t=document.createElement("div");return t.className="divider",t}addAltTextButton(t){this.#l(t),this.#o.prepend(t,this.#u)}addColorPicker(t){this.#t=t;const r=t.renderButton();this.#l(r),this.#o.prepend(r,this.#u)}remove(){this.#e.remove(),this.#t?.destroy(),this.#t=null}}class U2t{#e=null;#t=null;#r;constructor(t){this.#r=t}#o(){const t=this.#t=document.createElement("div");t.className="editToolbar",t.setAttribute("role","toolbar"),t.addEventListener("contextmenu",ks,{signal:this.#r._signal});const r=this.#e=document.createElement("div");return r.className="buttons",t.append(r),this.#n(),t}#s(t,r){let n=0,o=0;for(const i of t){const a=i.y+i.height;if(a<n)continue;const l=i.x+(r?i.width:0);if(a>n){o=l,n=a;continue}r?l>o&&(o=l):l<o&&(o=l)}return[r?1-o:o,n]}show(t,r,n){const[o,i]=this.#s(r,n),{style:a}=this.#t||=this.#o();t.append(this.#t),a.insetInlineEnd=`${100*o}%`,a.top=`calc(${100*i}% + var(--editor-toolbar-vert-offset))`}hide(){this.#t.remove()}#n(){const t=document.createElement("button");t.className="highlightButton",t.tabIndex=0,t.setAttribute("data-l10n-id","pdfjs-highlight-floating-button1");const r=document.createElement("span");t.append(r),r.className="visuallyHidden",r.setAttribute("data-l10n-id","pdfjs-highlight-floating-button-label");const n=this.#r._signal;t.addEventListener("contextmenu",ks,{signal:n}),t.addEventListener("click",()=>{this.#r.highlightSelection("floating_button")},{signal:n}),this.#e.append(t)}}function ab(e,t,r){for(const n of r)t.addEventListener(n,e[n].bind(e))}function W2t(e){return Math.round(Math.min(255,Math.max(1,255*e))).toString(16).padStart(2,"0")}class Y2t{#e=0;get id(){return`${S2t}${this.#e++}`}}class JF{#e=O2t();#t=0;#r=null;static get _isSVGFittingCanvas(){const t='data:image/svg+xml;charset=UTF-8,<svg viewBox="0 0 1 1" width="1" height="1" xmlns="http://www.w3.org/2000/svg"><rect width="1" height="1" style="fill:red;"/></svg>',n=new OffscreenCanvas(1,3).getContext("2d",{willReadFrequently:!0}),o=new Image;o.src=t;const i=o.decode().then(()=>(n.drawImage(o,0,0,1,1,0,0,1,3),new Uint32Array(n.getImageData(0,0,1,1).data.buffer)[0]===0));return bn(this,"_isSVGFittingCanvas",i)}async#o(t,r){this.#r||=new Map;let n=this.#r.get(t);if(n===null)return null;if(n?.bitmap)return n.refCounter+=1,n;try{n||={bitmap:null,id:`image_${this.#e}_${this.#t++}`,refCounter:0,isSvg:!1};let o;if(typeof r=="string"?(n.url=r,o=await Dx(r,"blob")):o=n.file=r,o.type==="image/svg+xml"){const i=JF._isSVGFittingCanvas,a=new FileReader,l=new Image,d=new Promise((u,p)=>{l.onload=()=>{n.bitmap=l,n.isSvg=!0,u()},a.onload=async()=>{const h=n.svgUrl=a.result;l.src=await i?`${h}#svgView(preserveAspectRatio(none))`:h},l.onerror=a.onerror=p});a.readAsDataURL(o),await d}else n.bitmap=await createImageBitmap(o);n.refCounter=1}catch(o){console.error(o),n=null}return this.#r.set(t,n),n&&this.#r.set(n.id,n),n}async getFromFile(t){const{lastModified:r,name:n,size:o,type:i}=t;return this.#o(`${r}_${n}_${o}_${i}`,t)}async getFromUrl(t){return this.#o(t,t)}async getFromId(t){this.#r||=new Map;const r=this.#r.get(t);return r?r.bitmap?(r.refCounter+=1,r):r.file?this.getFromFile(r.file):this.getFromUrl(r.url):null}getSvgUrl(t){const r=this.#r.get(t);return r?.isSvg?r.svgUrl:null}deleteId(t){this.#r||=new Map;const r=this.#r.get(t);r&&(r.refCounter-=1,r.refCounter===0&&(r.bitmap=null))}isValidId(t){return t.startsWith(`image_${this.#e}_`)}}class G2t{#e=[];#t=!1;#r;#o=-1;constructor(t=128){this.#r=t}add({cmd:t,undo:r,post:n,mustExec:o,type:i=NaN,overwriteIfSameType:a=!1,keepUndo:l=!1}){if(o&&t(),this.#t)return;const d={cmd:t,undo:r,post:n,type:i};if(this.#o===-1){this.#e.length>0&&(this.#e.length=0),this.#o=0,this.#e.push(d);return}if(a&&this.#e[this.#o].type===i){l&&(d.undo=this.#e[this.#o].undo),this.#e[this.#o]=d;return}const u=this.#o+1;u===this.#r?this.#e.splice(0,1):(this.#o=u,u<this.#e.length&&this.#e.splice(u)),this.#e.push(d)}undo(){if(this.#o===-1)return;this.#t=!0;const{undo:t,post:r}=this.#e[this.#o];t(),r?.(),this.#t=!1,this.#o-=1}redo(){if(this.#o<this.#e.length-1){this.#o+=1,this.#t=!0;const{cmd:t,post:r}=this.#e[this.#o];t(),r?.(),this.#t=!1}}hasSomethingToUndo(){return this.#o!==-1}hasSomethingToRedo(){return this.#o<this.#e.length-1}destroy(){this.#e=null}}class f6{constructor(t){this.buffer=[],this.callbacks=new Map,this.allKeys=new Set;const{isMac:r}=xs.platform;for(const[n,o,i={}]of t)for(const a of n){const l=a.startsWith("mac+");r&&l?(this.callbacks.set(a.slice(4),{callback:o,options:i}),this.allKeys.add(a.split("+").at(-1))):!r&&!l&&(this.callbacks.set(a,{callback:o,options:i}),this.allKeys.add(a.split("+").at(-1)))}}#e(t){t.altKey&&this.buffer.push("alt"),t.ctrlKey&&this.buffer.push("ctrl"),t.metaKey&&this.buffer.push("meta"),t.shiftKey&&this.buffer.push("shift"),this.buffer.push(t.key);const r=this.buffer.join("+");return this.buffer.length=0,r}exec(t,r){if(!this.allKeys.has(r.key))return;const n=this.callbacks.get(this.#e(r));if(!n)return;const{callback:o,options:{bubbles:i=!1,args:a=[],checker:l=null}}=n;l&&!l(t,r)||(o.bind(t,...a,r)(),i||(r.stopPropagation(),r.preventDefault()))}}class eN{static _colorsMapping=new Map([["CanvasText",[0,0,0]],["Canvas",[255,255,255]]]);get _colors(){const t=new Map([["CanvasText",null],["Canvas",null]]);return V2t(t),bn(this,"_colors",t)}convert(t){const r=QF(t);if(!window.matchMedia("(forced-colors: active)").matches)return r;for(const[n,o]of this._colors)if(o.every((i,a)=>i===r[a]))return eN._colorsMapping.get(n);return r}getHexCode(t){const r=this._colors.get(t);return r?ar.makeHexColor(...r):t}}class P0{#e=new AbortController;#t=null;#r=new Map;#o=new Map;#s=null;#n=null;#i=null;#l=new G2t;#d=0;#u=new Set;#h=null;#c=null;#a=new Set;#m=!1;#g=null;#p=null;#v=null;#f=!1;#b=null;#x=new Y2t;#$=!1;#k=!1;#E=null;#L=null;#S=null;#w=fn.NONE;#y=new Set;#C=null;#_=null;#T=null;#M=this.blur.bind(this);#D=this.focus.bind(this);#j=this.copy.bind(this);#P=this.cut.bind(this);#R=this.paste.bind(this);#I=this.keydown.bind(this);#U=this.keyup.bind(this);#W=this.onEditingAction.bind(this);#H=this.onPageChanging.bind(this);#z=this.onScaleChanging.bind(this);#O=this.onRotationChanging.bind(this);#Z={isEditing:!1,isEmpty:!0,hasSomethingToUndo:!1,hasSomethingToRedo:!1,hasSelectedEditor:!1,hasSelectedText:!1};#V=[0,0];#F=null;#B=null;#K=null;static TRANSLATE_SMALL=1;static TRANSLATE_BIG=10;static get _keyboardManager(){const t=P0.prototype,r=a=>a.#B.contains(document.activeElement)&&document.activeElement.tagName!=="BUTTON"&&a.hasSomethingToControl(),n=(a,{target:l})=>{if(l instanceof HTMLInputElement){const{type:d}=l;return d!=="text"&&d!=="number"}return!0},o=this.TRANSLATE_SMALL,i=this.TRANSLATE_BIG;return bn(this,"_keyboardManager",new f6([[["ctrl+a","mac+meta+a"],t.selectAll,{checker:n}],[["ctrl+z","mac+meta+z"],t.undo,{checker:n}],[["ctrl+y","ctrl+shift+z","mac+meta+shift+z","ctrl+shift+Z","mac+meta+shift+Z"],t.redo,{checker:n}],[["Backspace","alt+Backspace","ctrl+Backspace","shift+Backspace","mac+Backspace","mac+alt+Backspace","mac+ctrl+Backspace","Delete","ctrl+Delete","shift+Delete","mac+Delete"],t.delete,{checker:n}],[["Enter","mac+Enter"],t.addNewEditorFromKeyboard,{checker:(a,{target:l})=>!(l instanceof HTMLButtonElement)&&a.#B.contains(l)&&!a.isEnterHandled}],[[" ","mac+ "],t.addNewEditorFromKeyboard,{checker:(a,{target:l})=>!(l instanceof HTMLButtonElement)&&a.#B.contains(document.activeElement)}],[["Escape","mac+Escape"],t.unselectAll],[["ArrowLeft","mac+ArrowLeft"],t.translateSelectedEditors,{args:[-o,0],checker:r}],[["ctrl+ArrowLeft","mac+shift+ArrowLeft"],t.translateSelectedEditors,{args:[-i,0],checker:r}],[["ArrowRight","mac+ArrowRight"],t.translateSelectedEditors,{args:[o,0],checker:r}],[["ctrl+ArrowRight","mac+shift+ArrowRight"],t.translateSelectedEditors,{args:[i,0],checker:r}],[["ArrowUp","mac+ArrowUp"],t.translateSelectedEditors,{args:[0,-o],checker:r}],[["ctrl+ArrowUp","mac+shift+ArrowUp"],t.translateSelectedEditors,{args:[0,-i],checker:r}],[["ArrowDown","mac+ArrowDown"],t.translateSelectedEditors,{args:[0,o],checker:r}],[["ctrl+ArrowDown","mac+shift+ArrowDown"],t.translateSelectedEditors,{args:[0,i],checker:r}]]))}constructor(t,r,n,o,i,a,l,d,u){this._signal=this.#e.signal,this.#B=t,this.#K=r,this.#s=n,this._eventBus=o,this._eventBus._on("editingaction",this.#W),this._eventBus._on("pagechanging",this.#H),this._eventBus._on("scalechanging",this.#z),this._eventBus._on("rotationchanging",this.#O),this.#oe(),this.#le(),this.#Q(),this.#n=i.annotationStorage,this.#g=i.filterFactory,this.#_=a,this.#v=l||null,this.#m=d,this.#S=u||null,this.viewParameters={realScale:Jf.PDF_TO_CSS_UNITS,rotation:0},this.isShiftKeyDown=!1}destroy(){this.#e?.abort(),this.#e=null,this._signal=null,this._eventBus._off("editingaction",this.#W),this._eventBus._off("pagechanging",this.#H),this._eventBus._off("scalechanging",this.#z),this._eventBus._off("rotationchanging",this.#O);for(const t of this.#o.values())t.destroy();this.#o.clear(),this.#r.clear(),this.#a.clear(),this.#t=null,this.#y.clear(),this.#l.destroy(),this.#s?.destroy(),this.#b?.hide(),this.#b=null,this.#p&&(clearTimeout(this.#p),this.#p=null),this.#F&&(clearTimeout(this.#F),this.#F=null)}async mlGuess(t){return this.#S?.guess(t)||null}get hasMLManager(){return!!this.#S}get hcmFilter(){return bn(this,"hcmFilter",this.#_?this.#g.addHCMFilter(this.#_.foreground,this.#_.background):"none")}get direction(){return bn(this,"direction",getComputedStyle(this.#B).direction)}get highlightColors(){return bn(this,"highlightColors",this.#v?new Map(this.#v.split(",").map(t=>t.split("=").map(r=>r.trim()))):null)}get highlightColorNames(){return bn(this,"highlightColorNames",this.highlightColors?new Map(Array.from(this.highlightColors,t=>t.reverse())):null)}setMainHighlightColorPicker(t){this.#L=t}editAltText(t){this.#s?.editAltText(this,t)}onPageChanging({pageNumber:t}){this.#d=t-1}focusMainContainer(){this.#B.focus()}findParent(t,r){for(const n of this.#o.values()){const{x:o,y:i,width:a,height:l}=n.div.getBoundingClientRect();if(t>=o&&t<=o+a&&r>=i&&r<=i+l)return n}return null}disableUserSelect(t=!1){this.#K.classList.toggle("noUserSelect",t)}addShouldRescale(t){this.#a.add(t)}removeShouldRescale(t){this.#a.delete(t)}onScaleChanging({scale:t}){this.commitOrRemove(),this.viewParameters.realScale=t*Jf.PDF_TO_CSS_UNITS;for(const r of this.#a)r.onScaleChanging()}onRotationChanging({pagesRotation:t}){this.commitOrRemove(),this.viewParameters.rotation=t}#G({anchorNode:t}){return t.nodeType===Node.TEXT_NODE?t.parentElement:t}highlightSelection(t=""){const r=document.getSelection();if(!r||r.isCollapsed)return;const{anchorNode:n,anchorOffset:o,focusNode:i,focusOffset:a}=r,l=r.toString(),u=this.#G(r).closest(".textLayer"),p=this.getSelectionBoxes(u);if(p){r.empty(),this.#w===fn.NONE&&(this._eventBus.dispatch("showannotationeditorui",{source:this,mode:fn.HIGHLIGHT}),this.showAllEditors("highlight",!0,!0));for(const h of this.#o.values())if(h.hasTextLayer(u)){h.createAndAddNewEditor({x:0,y:0},!1,{methodOfCreation:t,boxes:p,anchorNode:n,anchorOffset:o,focusNode:i,focusOffset:a,text:l});break}}}#re(){const t=document.getSelection();if(!t||t.isCollapsed)return;const n=this.#G(t).closest(".textLayer"),o=this.getSelectionBoxes(n);o&&(this.#b||=new U2t(this),this.#b.show(n,o,this.direction==="ltr"))}addToAnnotationStorage(t){!t.isEmpty()&&this.#n&&!this.#n.has(t.id)&&this.#n.setValue(t.id,t)}#ne(){const t=document.getSelection();if(!t||t.isCollapsed){this.#C&&(this.#b?.hide(),this.#C=null,this.#A({hasSelectedText:!1}));return}const{anchorNode:r}=t;if(r===this.#C)return;if(!this.#G(t).closest(".textLayer")){this.#C&&(this.#b?.hide(),this.#C=null,this.#A({hasSelectedText:!1}));return}if(this.#b?.hide(),this.#C=r,this.#A({hasSelectedText:!0}),!(this.#w!==fn.HIGHLIGHT&&this.#w!==fn.NONE)&&(this.#w===fn.HIGHLIGHT&&this.showAllEditors("highlight",!0,!0),this.#f=this.isShiftKeyDown,!this.isShiftKeyDown)){const i=this._signal,a=l=>{l.type==="pointerup"&&l.button!==0||(window.removeEventListener("pointerup",a),window.removeEventListener("blur",a),l.type==="pointerup"&&this.#q("main_toolbar"))};window.addEventListener("pointerup",a,{signal:i}),window.addEventListener("blur",a,{signal:i})}}#q(t=""){this.#w===fn.HIGHLIGHT?this.highlightSelection(t):this.#m&&this.#re()}#oe(){document.addEventListener("selectionchange",this.#ne.bind(this),{signal:this._signal})}#ie(){const t=this._signal;window.addEventListener("focus",this.#D,{signal:t}),window.addEventListener("blur",this.#M,{signal:t})}#ae(){window.removeEventListener("focus",this.#D),window.removeEventListener("blur",this.#M)}blur(){if(this.isShiftKeyDown=!1,this.#f&&(this.#f=!1,this.#q("main_toolbar")),!this.hasSelection)return;const{activeElement:t}=document;for(const r of this.#y)if(r.div.contains(t)){this.#E=[r,t],r._focusEventsAllowed=!1;break}}focus(){if(!this.#E)return;const[t,r]=this.#E;this.#E=null,r.addEventListener("focusin",()=>{t._focusEventsAllowed=!0},{once:!0,signal:this._signal}),r.focus()}#Q(){const t=this._signal;window.addEventListener("keydown",this.#I,{signal:t}),window.addEventListener("keyup",this.#U,{signal:t})}#se(){window.removeEventListener("keydown",this.#I),window.removeEventListener("keyup",this.#U)}#X(){const t=this._signal;document.addEventListener("copy",this.#j,{signal:t}),document.addEventListener("cut",this.#P,{signal:t}),document.addEventListener("paste",this.#R,{signal:t})}#J(){document.removeEventListener("copy",this.#j),document.removeEventListener("cut",this.#P),document.removeEventListener("paste",this.#R)}#le(){const t=this._signal;document.addEventListener("dragover",this.dragOver.bind(this),{signal:t}),document.addEventListener("drop",this.drop.bind(this),{signal:t})}addEditListeners(){this.#Q(),this.#X()}removeEditListeners(){this.#se(),this.#J()}dragOver(t){for(const{type:r}of t.dataTransfer.items)for(const n of this.#c)if(n.isHandlingMimeForPasting(r)){t.dataTransfer.dropEffect="copy",t.preventDefault();return}}drop(t){for(const r of t.dataTransfer.items)for(const n of this.#c)if(n.isHandlingMimeForPasting(r.type)){n.paste(r,this.currentLayer),t.preventDefault();return}}copy(t){if(t.preventDefault(),this.#t?.commitOrRemove(),!this.hasSelection)return;const r=[];for(const n of this.#y){const o=n.serialize(!0);o&&r.push(o)}r.length!==0&&t.clipboardData.setData("application/pdfjs",JSON.stringify(r))}cut(t){this.copy(t),this.delete()}paste(t){t.preventDefault();const{clipboardData:r}=t;for(const i of r.items)for(const a of this.#c)if(a.isHandlingMimeForPasting(i.type)){a.paste(i,this.currentLayer);return}let n=r.getData("application/pdfjs");if(!n)return;try{n=JSON.parse(n)}catch(i){Xr(`paste: "${i.message}".`);return}if(!Array.isArray(n))return;this.unselectAll();const o=this.currentLayer;try{const i=[];for(const d of n){const u=o.deserialize(d);if(!u)return;i.push(u)}const a=()=>{for(const d of i)this.#ee(d);this.#te(i)},l=()=>{for(const d of i)d.remove()};this.addCommands({cmd:a,undo:l,mustExec:!0})}catch(i){Xr(`paste: "${i.message}".`)}}keydown(t){!this.isShiftKeyDown&&t.key==="Shift"&&(this.isShiftKeyDown=!0),this.#w!==fn.NONE&&!this.isEditorHandlingKeyboard&&P0._keyboardManager.exec(this,t)}keyup(t){this.isShiftKeyDown&&t.key==="Shift"&&(this.isShiftKeyDown=!1,this.#f&&(this.#f=!1,this.#q("main_toolbar")))}onEditingAction({name:t}){switch(t){case"undo":case"redo":case"delete":case"selectAll":this[t]();break;case"highlightSelection":this.highlightSelection("context_menu");break}}#A(t){Object.entries(t).some(([n,o])=>this.#Z[n]!==o)&&(this._eventBus.dispatch("annotationeditorstateschanged",{source:this,details:Object.assign(this.#Z,t)}),this.#w===fn.HIGHLIGHT&&t.hasSelectedEditor===!1&&this.#N([[Pr.HIGHLIGHT_FREE,!0]]))}#N(t){this._eventBus.dispatch("annotationeditorparamschanged",{source:this,details:t})}setEditingState(t){t?(this.#ie(),this.#X(),this.#A({isEditing:this.#w!==fn.NONE,isEmpty:this.#Y(),hasSomethingToUndo:this.#l.hasSomethingToUndo(),hasSomethingToRedo:this.#l.hasSomethingToRedo(),hasSelectedEditor:!1})):(this.#ae(),this.#J(),this.#A({isEditing:!1}),this.disableUserSelect(!1))}registerEditorTypes(t){if(!this.#c){this.#c=t;for(const r of this.#c)this.#N(r.defaultPropertiesToUpdate)}}getId(){return this.#x.id}get currentLayer(){return this.#o.get(this.#d)}getLayer(t){return this.#o.get(t)}get currentPageIndex(){return this.#d}addLayer(t){this.#o.set(t.pageIndex,t),this.#$?t.enable():t.disable()}removeLayer(t){this.#o.delete(t.pageIndex)}updateMode(t,r=null,n=!1){if(this.#w!==t){if(this.#w=t,t===fn.NONE){this.setEditingState(!1),this.#de();return}this.setEditingState(!0),this.#ce(),this.unselectAll();for(const o of this.#o.values())o.updateMode(t);if(!r&&n){this.addNewEditorFromKeyboard();return}if(r){for(const o of this.#r.values())if(o.annotationElementId===r){this.setSelected(o),o.enterInEditMode();break}}}}addNewEditorFromKeyboard(){this.currentLayer.canCreateNewEmptyEditor()&&this.currentLayer.addNewEditor()}updateToolbar(t){t!==this.#w&&this._eventBus.dispatch("switchannotationeditormode",{source:this,mode:t})}updateParams(t,r){if(this.#c){switch(t){case Pr.CREATE:this.currentLayer.addNewEditor();return;case Pr.HIGHLIGHT_DEFAULT_COLOR:this.#L?.updateColor(r);break;case Pr.HIGHLIGHT_SHOW_ALL:this._eventBus.dispatch("reporttelemetry",{source:this,details:{type:"editing",data:{type:"highlight",action:"toggle_visibility"}}}),(this.#T||=new Map).set(t,r),this.showAllEditors("highlight",r);break}for(const n of this.#y)n.updateParams(t,r);for(const n of this.#c)n.updateDefaultParams(t,r)}}showAllEditors(t,r,n=!1){for(const i of this.#r.values())i.editorType===t&&i.show(r);(this.#T?.get(Pr.HIGHLIGHT_SHOW_ALL)??!0)!==r&&this.#N([[Pr.HIGHLIGHT_SHOW_ALL,r]])}enableWaiting(t=!1){if(this.#k!==t){this.#k=t;for(const r of this.#o.values())t?r.disableClick():r.enableClick(),r.div.classList.toggle("waiting",t)}}#ce(){if(!this.#$){this.#$=!0;for(const t of this.#o.values())t.enable();for(const t of this.#r.values())t.enable()}}#de(){if(this.unselectAll(),this.#$){this.#$=!1;for(const t of this.#o.values())t.disable();for(const t of this.#r.values())t.disable()}}getEditors(t){const r=[];for(const n of this.#r.values())n.pageIndex===t&&r.push(n);return r}getEditor(t){return this.#r.get(t)}addEditor(t){this.#r.set(t.id,t)}removeEditor(t){t.div.contains(document.activeElement)&&(this.#p&&clearTimeout(this.#p),this.#p=setTimeout(()=>{this.focusMainContainer(),this.#p=null},0)),this.#r.delete(t.id),this.unselect(t),(!t.annotationElementId||!this.#u.has(t.annotationElementId))&&this.#n?.remove(t.id)}addDeletedAnnotationElement(t){this.#u.add(t.annotationElementId),this.addChangedExistingAnnotation(t),t.deleted=!0}isDeletedAnnotationElement(t){return this.#u.has(t)}removeDeletedAnnotationElement(t){this.#u.delete(t.annotationElementId),this.removeChangedExistingAnnotation(t),t.deleted=!1}#ee(t){const r=this.#o.get(t.pageIndex);r?r.addOrRebuild(t):(this.addEditor(t),this.addToAnnotationStorage(t))}setActiveEditor(t){this.#t!==t&&(this.#t=t,t&&this.#N(t.propertiesToUpdate))}get#ue(){let t=null;for(t of this.#y);return t}updateUI(t){this.#ue===t&&this.#N(t.propertiesToUpdate)}toggleSelected(t){if(this.#y.has(t)){this.#y.delete(t),t.unselect(),this.#A({hasSelectedEditor:this.hasSelection});return}this.#y.add(t),t.select(),this.#N(t.propertiesToUpdate),this.#A({hasSelectedEditor:!0})}setSelected(t){for(const r of this.#y)r!==t&&r.unselect();this.#y.clear(),this.#y.add(t),t.select(),this.#N(t.propertiesToUpdate),this.#A({hasSelectedEditor:!0})}isSelected(t){return this.#y.has(t)}get firstSelectedEditor(){return this.#y.values().next().value}unselect(t){t.unselect(),this.#y.delete(t),this.#A({hasSelectedEditor:this.hasSelection})}get hasSelection(){return this.#y.size!==0}get isEnterHandled(){return this.#y.size===1&&this.firstSelectedEditor.isEnterHandled}undo(){this.#l.undo(),this.#A({hasSomethingToUndo:this.#l.hasSomethingToUndo(),hasSomethingToRedo:!0,isEmpty:this.#Y()})}redo(){this.#l.redo(),this.#A({hasSomethingToUndo:!0,hasSomethingToRedo:this.#l.hasSomethingToRedo(),isEmpty:this.#Y()})}addCommands(t){this.#l.add(t),this.#A({hasSomethingToUndo:!0,hasSomethingToRedo:!1,isEmpty:this.#Y()})}#Y(){if(this.#r.size===0)return!0;if(this.#r.size===1)for(const t of this.#r.values())return t.isEmpty();return!1}delete(){if(this.commitOrRemove(),!this.hasSelection)return;const t=[...this.#y],r=()=>{for(const o of t)o.remove()},n=()=>{for(const o of t)this.#ee(o)};this.addCommands({cmd:r,undo:n,mustExec:!0})}commitOrRemove(){this.#t?.commitOrRemove()}hasSomethingToControl(){return this.#t||this.hasSelection}#te(t){for(const r of this.#y)r.unselect();this.#y.clear();for(const r of t)r.isEmpty()||(this.#y.add(r),r.select());this.#A({hasSelectedEditor:this.hasSelection})}selectAll(){for(const t of this.#y)t.commit();this.#te(this.#r.values())}unselectAll(){if(!(this.#t&&(this.#t.commitOrRemove(),this.#w!==fn.NONE))&&this.hasSelection){for(const t of this.#y)t.unselect();this.#y.clear(),this.#A({hasSelectedEditor:!1})}}translateSelectedEditors(t,r,n=!1){if(n||this.commitOrRemove(),!this.hasSelection)return;this.#V[0]+=t,this.#V[1]+=r;const[o,i]=this.#V,a=[...this.#y],l=1e3;this.#F&&clearTimeout(this.#F),this.#F=setTimeout(()=>{this.#F=null,this.#V[0]=this.#V[1]=0,this.addCommands({cmd:()=>{for(const d of a)this.#r.has(d.id)&&d.translateInPage(o,i)},undo:()=>{for(const d of a)this.#r.has(d.id)&&d.translateInPage(-o,-i)},mustExec:!1})},l);for(const d of a)d.translateInPage(t,r)}setUpDragSession(){if(this.hasSelection){this.disableUserSelect(!0),this.#h=new Map;for(const t of this.#y)this.#h.set(t,{savedX:t.x,savedY:t.y,savedPageIndex:t.pageIndex,newX:0,newY:0,newPageIndex:-1})}}endDragSession(){if(!this.#h)return!1;this.disableUserSelect(!1);const t=this.#h;this.#h=null;let r=!1;for(const[{x:o,y:i,pageIndex:a},l]of t)l.newX=o,l.newY=i,l.newPageIndex=a,r||=o!==l.savedX||i!==l.savedY||a!==l.savedPageIndex;if(!r)return!1;const n=(o,i,a,l)=>{if(this.#r.has(o.id)){const d=this.#o.get(l);d?o._setParentAndPosition(d,i,a):(o.pageIndex=l,o.x=i,o.y=a)}};return this.addCommands({cmd:()=>{for(const[o,{newX:i,newY:a,newPageIndex:l}]of t)n(o,i,a,l)},undo:()=>{for(const[o,{savedX:i,savedY:a,savedPageIndex:l}]of t)n(o,i,a,l)},mustExec:!0}),!0}dragSelectedEditors(t,r){if(this.#h)for(const n of this.#h.keys())n.drag(t,r)}rebuild(t){if(t.parent===null){const r=this.getLayer(t.pageIndex);r?(r.changeParent(t),r.addOrRebuild(t)):(this.addEditor(t),this.addToAnnotationStorage(t),t.rebuild())}else t.parent.addOrRebuild(t)}get isEditorHandlingKeyboard(){return this.getActive()?.shouldGetKeyboardEvents()||this.#y.size===1&&this.firstSelectedEditor.shouldGetKeyboardEvents()}isActive(t){return this.#t===t}getActive(){return this.#t}getMode(){return this.#w}get imageManager(){return bn(this,"imageManager",new JF)}getSelectionBoxes(t){if(!t)return null;const r=document.getSelection();for(let u=0,p=r.rangeCount;u<p;u++)if(!t.contains(r.getRangeAt(u).commonAncestorContainer))return null;const{x:n,y:o,width:i,height:a}=t.getBoundingClientRect();let l;switch(t.getAttribute("data-main-rotation")){case"90":l=(u,p,h,f)=>({x:(p-o)/a,y:1-(u+h-n)/i,width:f/a,height:h/i});break;case"180":l=(u,p,h,f)=>({x:1-(u+h-n)/i,y:1-(p+f-o)/a,width:h/i,height:f/a});break;case"270":l=(u,p,h,f)=>({x:1-(p+f-o)/a,y:(u-n)/i,width:f/a,height:h/i});break;default:l=(u,p,h,f)=>({x:(u-n)/i,y:(p-o)/a,width:h/i,height:f/a});break}const d=[];for(let u=0,p=r.rangeCount;u<p;u++){const h=r.getRangeAt(u);if(!h.collapsed)for(const{x:f,y:g,width:y,height:v}of h.getClientRects())y===0||v===0||d.push(l(f,g,y,v))}return d.length===0?null:d}addChangedExistingAnnotation({annotationElementId:t,id:r}){(this.#i||=new Map).set(t,r)}removeChangedExistingAnnotation({annotationElementId:t}){this.#i?.delete(t)}renderAnnotationElement(t){const r=this.#i?.get(t.data.id);if(!r)return;const n=this.#n.getRawValue(r);n&&(this.#w===fn.NONE&&!n.hasBeenModified||n.renderAnnotationElement(t))}}class Bh{#e="";#t=!1;#r=null;#o=null;#s=null;#n=!1;#i=null;static _l10nPromise=null;constructor(t){this.#i=t}static initialize(t){Bh._l10nPromise||=t}async render(){const t=this.#r=document.createElement("button");t.className="altText";const r=await Bh._l10nPromise.get("pdfjs-editor-alt-text-button-label");t.textContent=r,t.setAttribute("aria-label",r),t.tabIndex="0";const n=this.#i._uiManager._signal;t.addEventListener("contextmenu",ks,{signal:n}),t.addEventListener("pointerdown",i=>i.stopPropagation(),{signal:n});const o=i=>{i.preventDefault(),this.#i._uiManager.editAltText(this.#i)};return t.addEventListener("click",o,{capture:!0,signal:n}),t.addEventListener("keydown",i=>{i.target===t&&i.key==="Enter"&&(this.#n=!0,o(i))},{signal:n}),await this.#l(),t}finish(){this.#r&&(this.#r.focus({focusVisible:this.#n}),this.#n=!1)}isEmpty(){return!this.#e&&!this.#t}get data(){return{altText:this.#e,decorative:this.#t}}set data({altText:t,decorative:r}){this.#e===t&&this.#t===r||(this.#e=t,this.#t=r,this.#l())}toggle(t=!1){this.#r&&(!t&&this.#s&&(clearTimeout(this.#s),this.#s=null),this.#r.disabled=!t)}destroy(){this.#r?.remove(),this.#r=null,this.#o=null}async#l(){const t=this.#r;if(!t)return;if(!this.#e&&!this.#t){t.classList.remove("done"),this.#o?.remove();return}t.classList.add("done"),Bh._l10nPromise.get("pdfjs-editor-alt-text-edit-button-label").then(o=>{t.setAttribute("aria-label",o)});let r=this.#o;if(!r){this.#o=r=document.createElement("span"),r.className="tooltip",r.setAttribute("role","tooltip");const o=r.id=`alt-text-tooltip-${this.#i.id}`;t.setAttribute("aria-describedby",o);const i=100,a=this.#i._uiManager._signal;a.addEventListener("abort",()=>{clearTimeout(this.#s),this.#s=null},{once:!0}),t.addEventListener("mouseenter",()=>{this.#s=setTimeout(()=>{this.#s=null,this.#o.classList.add("show"),this.#i._reportTelemetry({action:"alt_text_tooltip"})},i)},{signal:a}),t.addEventListener("mouseleave",()=>{this.#s&&(clearTimeout(this.#s),this.#s=null),this.#o?.classList.remove("show")},{signal:a})}r.innerText=this.#t?await Bh._l10nPromise.get("pdfjs-editor-alt-text-decorative-tooltip"):this.#e,r.parentNode||t.append(r),this.#i.getImageForAltText()?.setAttribute("aria-describedby",r.id)}}class Tr{#e=null;#t=null;#r=null;#o=!1;#s=!1;#n=null;#i=null;#l=this.focusin.bind(this);#d=this.focusout.bind(this);#u=null;#h="";#c=!1;#a=null;#m=!1;#g=!1;#p=!1;#v=null;#f=0;#b=0;#x=null;_initialOptions=Object.create(null);_isVisible=!0;_uiManager=null;_focusEventsAllowed=!0;_l10nPromise=null;#$=!1;#k=Tr._zIndex++;static _borderLineWidth=-1;static _colorManager=new eN;static _zIndex=1;static _telemetryTimeout=1e3;static get _resizerKeyboardManager(){const t=Tr.prototype._resizeWithKeyboard,r=P0.TRANSLATE_SMALL,n=P0.TRANSLATE_BIG;return bn(this,"_resizerKeyboardManager",new f6([[["ArrowLeft","mac+ArrowLeft"],t,{args:[-r,0]}],[["ctrl+ArrowLeft","mac+shift+ArrowLeft"],t,{args:[-n,0]}],[["ArrowRight","mac+ArrowRight"],t,{args:[r,0]}],[["ctrl+ArrowRight","mac+shift+ArrowRight"],t,{args:[n,0]}],[["ArrowUp","mac+ArrowUp"],t,{args:[0,-r]}],[["ctrl+ArrowUp","mac+shift+ArrowUp"],t,{args:[0,-n]}],[["ArrowDown","mac+ArrowDown"],t,{args:[0,r]}],[["ctrl+ArrowDown","mac+shift+ArrowDown"],t,{args:[0,n]}],[["Escape","mac+Escape"],Tr.prototype._stopResizingWithKeyboard]]))}constructor(t){this.constructor===Tr&&to("Cannot initialize AnnotationEditor."),this.parent=t.parent,this.id=t.id,this.width=this.height=null,this.pageIndex=t.parent.pageIndex,this.name=t.name,this.div=null,this._uiManager=t.uiManager,this.annotationElementId=null,this._willKeepAspectRatio=!1,this._initialOptions.isCentered=t.isCentered,this._structTreeParentId=null;const{rotation:r,rawDims:{pageWidth:n,pageHeight:o,pageX:i,pageY:a}}=this.parent.viewport;this.rotation=r,this.pageRotation=(360+r-this._uiManager.viewParameters.rotation)%360,this.pageDimensions=[n,o],this.pageTranslation=[i,a];const[l,d]=this.parentDimensions;this.x=t.x/l,this.y=t.y/d,this.isAttachedToDOM=!1,this.deleted=!1}get editorType(){return Object.getPrototypeOf(this).constructor._type}static get _defaultLineColor(){return bn(this,"_defaultLineColor",this._colorManager.getHexCode("CanvasText"))}static deleteAnnotationElement(t){const r=new q2t({id:t.parent.getNextId(),parent:t.parent,uiManager:t._uiManager});r.annotationElementId=t.annotationElementId,r.deleted=!0,r._uiManager.addToAnnotationStorage(r)}static initialize(t,r,n){if(Tr._l10nPromise||=new Map(["pdfjs-editor-alt-text-button-label","pdfjs-editor-alt-text-edit-button-label","pdfjs-editor-alt-text-decorative-tooltip","pdfjs-editor-resizer-label-topLeft","pdfjs-editor-resizer-label-topMiddle","pdfjs-editor-resizer-label-topRight","pdfjs-editor-resizer-label-middleRight","pdfjs-editor-resizer-label-bottomRight","pdfjs-editor-resizer-label-bottomMiddle","pdfjs-editor-resizer-label-bottomLeft","pdfjs-editor-resizer-label-middleLeft"].map(i=>[i,t.get(i.replaceAll(/([A-Z])/g,a=>`-${a.toLowerCase()}`))])),n?.strings)for(const i of n.strings)Tr._l10nPromise.set(i,t.get(i));if(Tr._borderLineWidth!==-1)return;const o=getComputedStyle(document.documentElement);Tr._borderLineWidth=parseFloat(o.getPropertyValue("--outline-width"))||0}static updateDefaultParams(t,r){}static get defaultPropertiesToUpdate(){return[]}static isHandlingMimeForPasting(t){return!1}static paste(t,r){to("Not implemented")}get propertiesToUpdate(){return[]}get _isDraggable(){return this.#$}set _isDraggable(t){this.#$=t,this.div?.classList.toggle("draggable",t)}get isEnterHandled(){return!0}center(){const[t,r]=this.pageDimensions;switch(this.parentRotation){case 90:this.x-=this.height*r/(t*2),this.y+=this.width*t/(r*2);break;case 180:this.x+=this.width/2,this.y+=this.height/2;break;case 270:this.x+=this.height*r/(t*2),this.y-=this.width*t/(r*2);break;default:this.x-=this.width/2,this.y-=this.height/2;break}this.fixAndSetPosition()}addCommands(t){this._uiManager.addCommands(t)}get currentLayer(){return this._uiManager.currentLayer}setInBackground(){this.div.style.zIndex=0}setInForeground(){this.div.style.zIndex=this.#k}setParent(t){t!==null?(this.pageIndex=t.pageIndex,this.pageDimensions=t.pageDimensions):this.#I(),this.parent=t}focusin(t){this._focusEventsAllowed&&(this.#c?this.#c=!1:this.parent.setSelected(this))}focusout(t){!this._focusEventsAllowed||!this.isAttachedToDOM||t.relatedTarget?.closest(`#${this.id}`)||(t.preventDefault(),this.parent?.isMultipleSelection||this.commitOrRemove())}commitOrRemove(){this.isEmpty()?this.remove():this.commit()}commit(){this.addToAnnotationStorage()}addToAnnotationStorage(){this._uiManager.addToAnnotationStorage(this)}setAt(t,r,n,o){const[i,a]=this.parentDimensions;[n,o]=this.screenToPageTranslation(n,o),this.x=(t+n)/i,this.y=(r+o)/a,this.fixAndSetPosition()}#E([t,r],n,o){[n,o]=this.screenToPageTranslation(n,o),this.x+=n/t,this.y+=o/r,this.fixAndSetPosition()}translate(t,r){this.#E(this.parentDimensions,t,r)}translateInPage(t,r){this.#a||=[this.x,this.y],this.#E(this.pageDimensions,t,r),this.div.scrollIntoView({block:"nearest"})}drag(t,r){this.#a||=[this.x,this.y];const[n,o]=this.parentDimensions;if(this.x+=t/n,this.y+=r/o,this.parent&&(this.x<0||this.x>1||this.y<0||this.y>1)){const{x:u,y:p}=this.div.getBoundingClientRect();this.parent.findNewParent(this,u,p)&&(this.x-=Math.floor(this.x),this.y-=Math.floor(this.y))}let{x:i,y:a}=this;const[l,d]=this.getBaseTranslation();i+=l,a+=d,this.div.style.left=`${(100*i).toFixed(2)}%`,this.div.style.top=`${(100*a).toFixed(2)}%`,this.div.scrollIntoView({block:"nearest"})}get _hasBeenMoved(){return!!this.#a&&(this.#a[0]!==this.x||this.#a[1]!==this.y)}getBaseTranslation(){const[t,r]=this.parentDimensions,{_borderLineWidth:n}=Tr,o=n/t,i=n/r;switch(this.rotation){case 90:return[-o,i];case 180:return[o,i];case 270:return[o,-i];default:return[-o,-i]}}get _mustFixPosition(){return!0}fixAndSetPosition(t=this.rotation){const[r,n]=this.pageDimensions;let{x:o,y:i,width:a,height:l}=this;if(a*=r,l*=n,o*=r,i*=n,this._mustFixPosition)switch(t){case 0:o=Math.max(0,Math.min(r-a,o)),i=Math.max(0,Math.min(n-l,i));break;case 90:o=Math.max(0,Math.min(r-l,o)),i=Math.min(n,Math.max(a,i));break;case 180:o=Math.min(r,Math.max(a,o)),i=Math.min(n,Math.max(l,i));break;case 270:o=Math.min(r,Math.max(l,o)),i=Math.max(0,Math.min(n-a,i));break}this.x=o/=r,this.y=i/=n;const[d,u]=this.getBaseTranslation();o+=d,i+=u;const{style:p}=this.div;p.left=`${(100*o).toFixed(2)}%`,p.top=`${(100*i).toFixed(2)}%`,this.moveInDOM()}static#L(t,r,n){switch(n){case 90:return[r,-t];case 180:return[-t,-r];case 270:return[-r,t];default:return[t,r]}}screenToPageTranslation(t,r){return Tr.#L(t,r,this.parentRotation)}pageTranslationToScreen(t,r){return Tr.#L(t,r,360-this.parentRotation)}#S(t){switch(t){case 90:{const[r,n]=this.pageDimensions;return[0,-r/n,n/r,0]}case 180:return[-1,0,0,-1];case 270:{const[r,n]=this.pageDimensions;return[0,r/n,-n/r,0]}default:return[1,0,0,1]}}get parentScale(){return this._uiManager.viewParameters.realScale}get parentRotation(){return(this._uiManager.viewParameters.rotation+this.pageRotation)%360}get parentDimensions(){const{parentScale:t,pageDimensions:[r,n]}=this,o=r*t,i=n*t;return xs.isCSSRoundSupported?[Math.round(o),Math.round(i)]:[o,i]}setDims(t,r){const[n,o]=this.parentDimensions;this.div.style.width=`${(100*t/n).toFixed(2)}%`,this.#s||(this.div.style.height=`${(100*r/o).toFixed(2)}%`)}fixDims(){const{style:t}=this.div,{height:r,width:n}=t,o=n.endsWith("%"),i=!this.#s&&r.endsWith("%");if(o&&i)return;const[a,l]=this.parentDimensions;o||(t.width=`${(100*parseFloat(n)/a).toFixed(2)}%`),!this.#s&&!i&&(t.height=`${(100*parseFloat(r)/l).toFixed(2)}%`)}getInitialTranslation(){return[0,0]}#w(){if(this.#n)return;this.#n=document.createElement("div"),this.#n.classList.add("resizers");const t=this._willKeepAspectRatio?["topLeft","topRight","bottomRight","bottomLeft"]:["topLeft","topMiddle","topRight","middleRight","bottomRight","bottomMiddle","bottomLeft","middleLeft"],r=this._uiManager._signal;for(const n of t){const o=document.createElement("div");this.#n.append(o),o.classList.add("resizer",n),o.setAttribute("data-resizer-name",n),o.addEventListener("pointerdown",this.#y.bind(this,n),{signal:r}),o.addEventListener("contextmenu",ks,{signal:r}),o.tabIndex=-1}this.div.prepend(this.#n)}#y(t,r){r.preventDefault();const{isMac:n}=xs.platform;if(r.button!==0||r.ctrlKey&&n)return;this.#r?.toggle(!1);const o=this.#_.bind(this,t),i=this._isDraggable;this._isDraggable=!1;const a=this._uiManager._signal,l={passive:!0,capture:!0,signal:a};this.parent.togglePointerEvents(!1),window.addEventListener("pointermove",o,l),window.addEventListener("contextmenu",ks,{signal:a});const d=this.x,u=this.y,p=this.width,h=this.height,f=this.parent.div.style.cursor,g=this.div.style.cursor;this.div.style.cursor=this.parent.div.style.cursor=window.getComputedStyle(r.target).cursor;const y=()=>{this.parent.togglePointerEvents(!0),this.#r?.toggle(!0),this._isDraggable=i,window.removeEventListener("pointerup",y),window.removeEventListener("blur",y),window.removeEventListener("pointermove",o,l),window.removeEventListener("contextmenu",ks),this.parent.div.style.cursor=f,this.div.style.cursor=g,this.#C(d,u,p,h)};window.addEventListener("pointerup",y,{signal:a}),window.addEventListener("blur",y,{signal:a})}#C(t,r,n,o){const i=this.x,a=this.y,l=this.width,d=this.height;i===t&&a===r&&l===n&&d===o||this.addCommands({cmd:()=>{this.width=l,this.height=d,this.x=i,this.y=a;const[u,p]=this.parentDimensions;this.setDims(u*l,p*d),this.fixAndSetPosition()},undo:()=>{this.width=n,this.height=o,this.x=t,this.y=r;const[u,p]=this.parentDimensions;this.setDims(u*n,p*o),this.fixAndSetPosition()},mustExec:!0})}#_(t,r){const[n,o]=this.parentDimensions,i=this.x,a=this.y,l=this.width,d=this.height,u=Tr.MIN_SIZE/n,p=Tr.MIN_SIZE/o,h=I=>Math.round(I*1e4)/1e4,f=this.#S(this.rotation),g=(I,L)=>[f[0]*I+f[2]*L,f[1]*I+f[3]*L],y=this.#S(360-this.rotation),v=(I,L)=>[y[0]*I+y[2]*L,y[1]*I+y[3]*L];let w,x,$=!1,S=!1;switch(t){case"topLeft":$=!0,w=(I,L)=>[0,0],x=(I,L)=>[I,L];break;case"topMiddle":w=(I,L)=>[I/2,0],x=(I,L)=>[I/2,L];break;case"topRight":$=!0,w=(I,L)=>[I,0],x=(I,L)=>[0,L];break;case"middleRight":S=!0,w=(I,L)=>[I,L/2],x=(I,L)=>[0,L/2];break;case"bottomRight":$=!0,w=(I,L)=>[I,L],x=(I,L)=>[0,0];break;case"bottomMiddle":w=(I,L)=>[I/2,L],x=(I,L)=>[I/2,0];break;case"bottomLeft":$=!0,w=(I,L)=>[0,L],x=(I,L)=>[I,0];break;case"middleLeft":S=!0,w=(I,L)=>[0,L/2],x=(I,L)=>[I,L/2];break}const k=w(l,d),T=x(l,d);let E=g(...T);const A=h(i+E[0]),P=h(a+E[1]);let D=1,O=1,[V,j]=this.screenToPageTranslation(r.movementX,r.movementY);if([V,j]=v(V/n,j/o),$){const I=Math.hypot(l,d);D=O=Math.max(Math.min(Math.hypot(T[0]-k[0]-V,T[1]-k[1]-j)/I,1/l,1/d),u/l,p/d)}else S?D=Math.max(u,Math.min(1,Math.abs(T[0]-k[0]-V)))/l:O=Math.max(p,Math.min(1,Math.abs(T[1]-k[1]-j)))/d;const q=h(l*D),W=h(d*O);E=g(...x(q,W));const F=A-E[0],H=P-E[1];this.width=q,this.height=W,this.x=F,this.y=H,this.setDims(n*q,o*W),this.fixAndSetPosition()}altTextFinish(){this.#r?.finish()}async addEditToolbar(){return this.#u||this.#g?this.#u:(this.#u=new XF(this),this.div.append(this.#u.render()),this.#r&&this.#u.addAltTextButton(await this.#r.render()),this.#u)}removeEditToolbar(){this.#u&&(this.#u.remove(),this.#u=null,this.#r?.destroy())}getClientDimensions(){return this.div.getBoundingClientRect()}async addAltTextButton(){this.#r||(Bh.initialize(Tr._l10nPromise),this.#r=new Bh(this),this.#e&&(this.#r.data=this.#e,this.#e=null),await this.addEditToolbar())}get altTextData(){return this.#r?.data}set altTextData(t){this.#r&&(this.#r.data=t)}hasAltText(){return!this.#r?.isEmpty()}render(){this.div=document.createElement("div"),this.div.setAttribute("data-editor-rotation",(360-this.rotation)%360),this.div.className=this.name,this.div.setAttribute("id",this.id),this.div.tabIndex=this.#o?-1:0,this._isVisible||this.div.classList.add("hidden"),this.setInForeground();const t=this._uiManager._signal;this.div.addEventListener("focusin",this.#l,{signal:t}),this.div.addEventListener("focusout",this.#d,{signal:t});const[r,n]=this.parentDimensions;this.parentRotation%180!==0&&(this.div.style.maxWidth=`${(100*n/r).toFixed(2)}%`,this.div.style.maxHeight=`${(100*r/n).toFixed(2)}%`);const[o,i]=this.getInitialTranslation();return this.translate(o,i),ab(this,this.div,["pointerdown"]),this.div}pointerdown(t){const{isMac:r}=xs.platform;if(t.button!==0||t.ctrlKey&&r){t.preventDefault();return}if(this.#c=!0,this._isDraggable){this.#M(t);return}this.#T(t)}#T(t){const{isMac:r}=xs.platform;t.ctrlKey&&!r||t.shiftKey||t.metaKey&&r?this.parent.toggleSelected(this):this.parent.setSelected(this)}#M(t){const r=this._uiManager.isSelected(this);this._uiManager.setUpDragSession();let n,o;const i=this._uiManager._signal;r&&(this.div.classList.add("moving"),n={passive:!0,capture:!0,signal:i},this.#f=t.clientX,this.#b=t.clientY,o=l=>{const{clientX:d,clientY:u}=l,[p,h]=this.screenToPageTranslation(d-this.#f,u-this.#b);this.#f=d,this.#b=u,this._uiManager.dragSelectedEditors(p,h)},window.addEventListener("pointermove",o,n));const a=()=>{window.removeEventListener("pointerup",a),window.removeEventListener("blur",a),r&&(this.div.classList.remove("moving"),window.removeEventListener("pointermove",o,n)),this.#c=!1,this._uiManager.endDragSession()||this.#T(t)};window.addEventListener("pointerup",a,{signal:i}),window.addEventListener("blur",a,{signal:i})}moveInDOM(){this.#v&&clearTimeout(this.#v),this.#v=setTimeout(()=>{this.#v=null,this.parent?.moveEditorInDOM(this)},0)}_setParentAndPosition(t,r,n){t.changeParent(this),this.x=r,this.y=n,this.fixAndSetPosition()}getRect(t,r,n=this.rotation){const o=this.parentScale,[i,a]=this.pageDimensions,[l,d]=this.pageTranslation,u=t/o,p=r/o,h=this.x*i,f=this.y*a,g=this.width*i,y=this.height*a;switch(n){case 0:return[h+u+l,a-f-p-y+d,h+u+g+l,a-f-p+d];case 90:return[h+p+l,a-f+u+d,h+p+y+l,a-f+u+g+d];case 180:return[h-u-g+l,a-f+p+d,h-u+l,a-f+p+y+d];case 270:return[h-p-y+l,a-f-u-g+d,h-p+l,a-f-u+d];default:throw new Error("Invalid rotation")}}getRectInCurrentCoords(t,r){const[n,o,i,a]=t,l=i-n,d=a-o;switch(this.rotation){case 0:return[n,r-a,l,d];case 90:return[n,r-o,d,l];case 180:return[i,r-o,l,d];case 270:return[i,r-a,d,l];default:throw new Error("Invalid rotation")}}onceAdded(){}isEmpty(){return!1}enableEditMode(){this.#g=!0}disableEditMode(){this.#g=!1}isInEditMode(){return this.#g}shouldGetKeyboardEvents(){return this.#p}needsToBeRebuilt(){return this.div&&!this.isAttachedToDOM}rebuild(){const t=this._uiManager._signal;this.div?.addEventListener("focusin",this.#l,{signal:t}),this.div?.addEventListener("focusout",this.#d,{signal:t})}rotate(t){}serialize(t=!1,r=null){to("An editor must be serializable")}static deserialize(t,r,n){const o=new this.prototype.constructor({parent:r,id:r.getNextId(),uiManager:n});o.rotation=t.rotation,o.#e=t.accessibilityData;const[i,a]=o.pageDimensions,[l,d,u,p]=o.getRectInCurrentCoords(t.rect,a);return o.x=l/i,o.y=d/a,o.width=u/i,o.height=p/a,o}get hasBeenModified(){return!!this.annotationElementId&&(this.deleted||this.serialize()!==null)}remove(){if(this.div.removeEventListener("focusin",this.#l),this.div.removeEventListener("focusout",this.#d),this.isEmpty()||this.commit(),this.parent?this.parent.remove(this):this._uiManager.removeEditor(this),this.#v&&(clearTimeout(this.#v),this.#v=null),this.#I(),this.removeEditToolbar(),this.#x){for(const t of this.#x.values())clearTimeout(t);this.#x=null}this.parent=null}get isResizable(){return!1}makeResizable(){this.isResizable&&(this.#w(),this.#n.classList.remove("hidden"),ab(this,this.div,["keydown"]))}get toolbarPosition(){return null}keydown(t){if(!this.isResizable||t.target!==this.div||t.key!=="Enter")return;this._uiManager.setSelected(this),this.#i={savedX:this.x,savedY:this.y,savedWidth:this.width,savedHeight:this.height};const r=this.#n.children;if(!this.#t){this.#t=Array.from(r);const a=this.#D.bind(this),l=this.#j.bind(this),d=this._uiManager._signal;for(const u of this.#t){const p=u.getAttribute("data-resizer-name");u.setAttribute("role","spinbutton"),u.addEventListener("keydown",a,{signal:d}),u.addEventListener("blur",l,{signal:d}),u.addEventListener("focus",this.#P.bind(this,p),{signal:d}),Tr._l10nPromise.get(`pdfjs-editor-resizer-label-${p}`).then(h=>u.setAttribute("aria-label",h))}}const n=this.#t[0];let o=0;for(const a of r){if(a===n)break;o++}const i=(360-this.rotation+this.parentRotation)%360/90*(this.#t.length/4);if(i!==o){if(i<o)for(let l=0;l<o-i;l++)this.#n.append(this.#n.firstChild);else if(i>o)for(let l=0;l<i-o;l++)this.#n.firstChild.before(this.#n.lastChild);let a=0;for(const l of r){const u=this.#t[a++].getAttribute("data-resizer-name");Tr._l10nPromise.get(`pdfjs-editor-resizer-label-${u}`).then(p=>l.setAttribute("aria-label",p))}}this.#R(0),this.#p=!0,this.#n.firstChild.focus({focusVisible:!0}),t.preventDefault(),t.stopImmediatePropagation()}#D(t){Tr._resizerKeyboardManager.exec(this,t)}#j(t){this.#p&&t.relatedTarget?.parentNode!==this.#n&&this.#I()}#P(t){this.#h=this.#p?t:""}#R(t){if(this.#t)for(const r of this.#t)r.tabIndex=t}_resizeWithKeyboard(t,r){this.#p&&this.#_(this.#h,{movementX:t,movementY:r})}#I(){if(this.#p=!1,this.#R(-1),this.#i){const{savedX:t,savedY:r,savedWidth:n,savedHeight:o}=this.#i;this.#C(t,r,n,o),this.#i=null}}_stopResizingWithKeyboard(){this.#I(),this.div.focus()}select(){if(this.makeResizable(),this.div?.classList.add("selectedEditor"),!this.#u){this.addEditToolbar().then(()=>{this.div?.classList.contains("selectedEditor")&&this.#u?.show()});return}this.#u?.show()}unselect(){this.#n?.classList.add("hidden"),this.div?.classList.remove("selectedEditor"),this.div?.contains(document.activeElement)&&this._uiManager.currentLayer.div.focus({preventScroll:!0}),this.#u?.hide()}updateParams(t,r){}disableEditing(){}enableEditing(){}enterInEditMode(){}getImageForAltText(){return null}get contentDiv(){return this.div}get isEditing(){return this.#m}set isEditing(t){this.#m=t,this.parent&&(t?(this.parent.setSelected(this),this.parent.setActiveEditor(this)):this.parent.setActiveEditor(null))}setAspectRatio(t,r){this.#s=!0;const n=t/r,{style:o}=this.div;o.aspectRatio=n,o.height="auto"}static get MIN_SIZE(){return 16}static canCreateNewEmptyEditor(){return!0}get telemetryInitialData(){return{action:"added"}}get telemetryFinalData(){return null}_reportTelemetry(t,r=!1){if(r){this.#x||=new Map;const{action:n}=t;let o=this.#x.get(n);o&&clearTimeout(o),o=setTimeout(()=>{this._reportTelemetry(t),this.#x.delete(n),this.#x.size===0&&(this.#x=null)},Tr._telemetryTimeout),this.#x.set(n,o);return}t.type||=this.editorType,this._uiManager._eventBus.dispatch("reporttelemetry",{source:this,details:{type:"editing",data:t}})}show(t=this._isVisible){this.div.classList.toggle("hidden",!t),this._isVisible=t}enable(){this.div&&(this.div.tabIndex=0),this.#o=!1}disable(){this.div&&(this.div.tabIndex=-1),this.#o=!0}renderAnnotationElement(t){let r=t.container.querySelector(".annotationContent");if(!r)r=document.createElement("div"),r.classList.add("annotationContent",this.editorType),t.container.prepend(r);else if(r.nodeName==="CANVAS"){const n=r;r=document.createElement("div"),r.classList.add("annotationContent",this.editorType),n.before(r)}return r}resetAnnotationElement(t){const{firstChild:r}=t.container;r.nodeName==="DIV"&&r.classList.contains("annotationContent")&&r.remove()}}class q2t extends Tr{constructor(t){super(t),this.annotationElementId=t.annotationElementId,this.deleted=!0}serialize(){return{id:this.annotationElementId,deleted:!0,pageIndex:this.pageIndex}}}const qX=3285377520,yl=4294901760,Qd=65535;class Xge{constructor(t){this.h1=t?t&4294967295:qX,this.h2=t?t&4294967295:qX}update(t){let r,n;if(typeof t=="string"){r=new Uint8Array(t.length*2),n=0;for(let v=0,w=t.length;v<w;v++){const x=t.charCodeAt(v);x<=255?r[n++]=x:(r[n++]=x>>>8,r[n++]=x&255)}}else if(ArrayBuffer.isView(t))r=t.slice(),n=r.byteLength;else throw new Error("Invalid data format, must be a string or TypedArray.");const o=n>>2,i=n-o*4,a=new Uint32Array(r.buffer,0,o);let l=0,d=0,u=this.h1,p=this.h2;const h=3432918353,f=461845907,g=h&Qd,y=f&Qd;for(let v=0;v<o;v++)v&1?(l=a[v],l=l*h&yl|l*g&Qd,l=l<<15|l>>>17,l=l*f&yl|l*y&Qd,u^=l,u=u<<13|u>>>19,u=u*5+3864292196):(d=a[v],d=d*h&yl|d*g&Qd,d=d<<15|d>>>17,d=d*f&yl|d*y&Qd,p^=d,p=p<<13|p>>>19,p=p*5+3864292196);switch(l=0,i){case 3:l^=r[o*4+2]<<16;case 2:l^=r[o*4+1]<<8;case 1:l^=r[o*4],l=l*h&yl|l*g&Qd,l=l<<15|l>>>17,l=l*f&yl|l*y&Qd,o&1?u^=l:p^=l}this.h1=u,this.h2=p}hexdigest(){let t=this.h1,r=this.h2;return t^=r>>>1,t=t*3981806797&yl|t*36045&Qd,r=r*4283543511&yl|((r<<16|t>>>16)*2950163797&yl)>>>16,t^=r>>>1,t=t*444984403&yl|t*60499&Qd,r=r*3301882366&yl|((r<<16|t>>>16)*3120437893&yl)>>>16,t^=r>>>1,(t>>>0).toString(16).padStart(8,"0")+(r>>>0).toString(16).padStart(8,"0")}}const cj=Object.freeze({map:null,hash:"",transfer:void 0});class tN{#e=!1;#t=new Map;constructor(){this.onSetModified=null,this.onResetModified=null,this.onAnnotationEditor=null}getValue(t,r){const n=this.#t.get(t);return n===void 0?r:Object.assign(r,n)}getRawValue(t){return this.#t.get(t)}remove(t){if(this.#t.delete(t),this.#t.size===0&&this.resetModified(),typeof this.onAnnotationEditor=="function"){for(const r of this.#t.values())if(r instanceof Tr)return;this.onAnnotationEditor(null)}}setValue(t,r){const n=this.#t.get(t);let o=!1;if(n!==void 0)for(const[i,a]of Object.entries(r))n[i]!==a&&(o=!0,n[i]=a);else o=!0,this.#t.set(t,r);o&&this.#r(),r instanceof Tr&&typeof this.onAnnotationEditor=="function"&&this.onAnnotationEditor(r.constructor._type)}has(t){return this.#t.has(t)}getAll(){return this.#t.size>0?WF(this.#t):null}setAll(t){for(const[r,n]of Object.entries(t))this.setValue(r,n)}get size(){return this.#t.size}#r(){this.#e||(this.#e=!0,typeof this.onSetModified=="function"&&this.onSetModified())}resetModified(){this.#e&&(this.#e=!1,typeof this.onResetModified=="function"&&this.onResetModified())}get print(){return new Jge(this)}get serializable(){if(this.#t.size===0)return cj;const t=new Map,r=new Xge,n=[],o=Object.create(null);let i=!1;for(const[a,l]of this.#t){const d=l instanceof Tr?l.serialize(!1,o):l;d&&(t.set(a,d),r.update(`${a}:${JSON.stringify(d)}`),i||=!!d.bitmap)}if(i)for(const a of t.values())a.bitmap&&n.push(a.bitmap);return t.size>0?{map:t,hash:r.hexdigest(),transfer:n}:cj}get editorStats(){let t=null;const r=new Map;for(const n of this.#t.values()){if(!(n instanceof Tr))continue;const o=n.telemetryFinalData;if(!o)continue;const{type:i}=o;r.has(i)||r.set(i,Object.getPrototypeOf(n).constructor),t||=Object.create(null);const a=t[i]||=new Map;for(const[l,d]of Object.entries(o)){if(l==="type")continue;let u=a.get(l);u||(u=new Map,a.set(l,u));const p=u.get(d)??0;u.set(d,p+1)}}for(const[n,o]of r)t[n]=o.computeTelemetryFinalData(t[n]);return t}}class Jge extends tN{#e;constructor(t){super();const{map:r,hash:n,transfer:o}=t.serializable,i=structuredClone(r,o?{transfer:o}:null);this.#e={map:i,hash:n,transfer:o}}get print(){to("Should not call PrintAnnotationStorage.print")}get serializable(){return this.#e}}class Z2t{#e=new Set;constructor({ownerDocument:t=globalThis.document,styleElement:r=null}){this._document=t,this.nativeFontFaces=new Set,this.styleElement=null,this.loadingRequests=[],this.loadTestFontId=0}addNativeFontFace(t){this.nativeFontFaces.add(t),this._document.fonts.add(t)}removeNativeFontFace(t){this.nativeFontFaces.delete(t),this._document.fonts.delete(t)}insertRule(t){this.styleElement||(this.styleElement=this._document.createElement("style"),this._document.documentElement.getElementsByTagName("head")[0].append(this.styleElement));const r=this.styleElement.sheet;r.insertRule(t,r.cssRules.length)}clear(){for(const t of this.nativeFontFaces)this._document.fonts.delete(t);this.nativeFontFaces.clear(),this.#e.clear(),this.styleElement&&(this.styleElement.remove(),this.styleElement=null)}async loadSystemFont({systemFontInfo:t,_inspectFont:r}){if(!(!t||this.#e.has(t.loadedName))){if(Li(!this.disableFontFace,"loadSystemFont shouldn't be called when `disableFontFace` is set."),this.isFontLoadingAPISupported){const{loadedName:n,src:o,style:i}=t,a=new FontFace(n,o,i);this.addNativeFontFace(a);try{await a.load(),this.#e.add(n),r?.(t)}catch{Xr(`Cannot load system font: ${t.baseFontName}, installing it could help to improve PDF rendering.`),this.removeNativeFontFace(a)}return}to("Not implemented: loadSystemFont without the Font Loading API.")}}async bind(t){if(t.attached||t.missingFile&&!t.systemFontInfo)return;if(t.attached=!0,t.systemFontInfo){await this.loadSystemFont(t);return}if(this.isFontLoadingAPISupported){const n=t.createNativeFontFace();if(n){this.addNativeFontFace(n);try{await n.loaded}catch(o){throw Xr(`Failed to load font '${n.family}': '${o}'.`),t.disableFontFace=!0,o}}return}const r=t.createFontFaceRule();if(r){if(this.insertRule(r),this.isSyncFontLoadingSupported)return;await new Promise(n=>{const o=this._queueLoadingCallback(n);this._prepareFontLoadEvent(t,o)})}}get isFontLoadingAPISupported(){const t=!!this._document?.fonts;return bn(this,"isFontLoadingAPISupported",t)}get isSyncFontLoadingSupported(){let t=!1;return(ka||typeof navigator<"u"&&typeof navigator?.userAgent=="string"&&/Mozilla\/5.0.*?rv:\d+.*? Gecko/.test(navigator.userAgent))&&(t=!0),bn(this,"isSyncFontLoadingSupported",t)}_queueLoadingCallback(t){function r(){for(Li(!o.done,"completeRequest() cannot be called twice."),o.done=!0;n.length>0&&n[0].done;){const i=n.shift();setTimeout(i.callback,0)}}const{loadingRequests:n}=this,o={done:!1,complete:r,callback:t};return n.push(o),o}get _loadTestFont(){const t=atob("T1RUTwALAIAAAwAwQ0ZGIDHtZg4AAAOYAAAAgUZGVE1lkzZwAAAEHAAAABxHREVGABQAFQAABDgAAAAeT1MvMlYNYwkAAAEgAAAAYGNtYXABDQLUAAACNAAAAUJoZWFk/xVFDQAAALwAAAA2aGhlYQdkA+oAAAD0AAAAJGhtdHgD6AAAAAAEWAAAAAZtYXhwAAJQAAAAARgAAAAGbmFtZVjmdH4AAAGAAAAAsXBvc3T/hgAzAAADeAAAACAAAQAAAAEAALZRFsRfDzz1AAsD6AAAAADOBOTLAAAAAM4KHDwAAAAAA+gDIQAAAAgAAgAAAAAAAAABAAADIQAAAFoD6AAAAAAD6AABAAAAAAAAAAAAAAAAAAAAAQAAUAAAAgAAAAQD6AH0AAUAAAKKArwAAACMAooCvAAAAeAAMQECAAACAAYJAAAAAAAAAAAAAQAAAAAAAAAAAAAAAFBmRWQAwAAuAC4DIP84AFoDIQAAAAAAAQAAAAAAAAAAACAAIAABAAAADgCuAAEAAAAAAAAAAQAAAAEAAAAAAAEAAQAAAAEAAAAAAAIAAQAAAAEAAAAAAAMAAQAAAAEAAAAAAAQAAQAAAAEAAAAAAAUAAQAAAAEAAAAAAAYAAQAAAAMAAQQJAAAAAgABAAMAAQQJAAEAAgABAAMAAQQJAAIAAgABAAMAAQQJAAMAAgABAAMAAQQJAAQAAgABAAMAAQQJAAUAAgABAAMAAQQJAAYAAgABWABYAAAAAAAAAwAAAAMAAAAcAAEAAAAAADwAAwABAAAAHAAEACAAAAAEAAQAAQAAAC7//wAAAC7////TAAEAAAAAAAABBgAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAD/gwAyAAAAAQAAAAAAAAAAAAAAAAAAAAABAAQEAAEBAQJYAAEBASH4DwD4GwHEAvgcA/gXBIwMAYuL+nz5tQXkD5j3CBLnEQACAQEBIVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYAAABAQAADwACAQEEE/t3Dov6fAH6fAT+fPp8+nwHDosMCvm1Cvm1DAz6fBQAAAAAAAABAAAAAMmJbzEAAAAAzgTjFQAAAADOBOQpAAEAAAAAAAAADAAUAAQAAAABAAAAAgABAAAAAAAAAAAD6AAAAAAAAA==");return bn(this,"_loadTestFont",t)}_prepareFontLoadEvent(t,r){function n(k,T){return k.charCodeAt(T)<<24|k.charCodeAt(T+1)<<16|k.charCodeAt(T+2)<<8|k.charCodeAt(T+3)&255}function o(k,T,E,A){const P=k.substring(0,T),D=k.substring(T+E);return P+A+D}let i,a;const l=this._document.createElement("canvas");l.width=1,l.height=1;const d=l.getContext("2d");let u=0;function p(k,T){if(++u>30){Xr("Load test font never loaded."),T();return}if(d.font="30px "+k,d.fillText(".",0,20),d.getImageData(0,0,1,1).data[3]>0){T();return}setTimeout(p.bind(null,k,T))}const h=`lt${Date.now()}${this.loadTestFontId++}`;let f=this._loadTestFont;f=o(f,976,h.length,h);const y=16,v=1482184792;let w=n(f,y);for(i=0,a=h.length-3;i<a;i+=4)w=w-v+n(h,i)|0;i<h.length&&(w=w-v+n(h+"XXX",i)|0),f=o(f,y,4,M2t(w));const x=`url(data:font/opentype;base64,${btoa(f)});`,$=`@font-face {font-family:"${h}";src:${x}}`;this.insertRule($);const S=this._document.createElement("div");S.style.visibility="hidden",S.style.width=S.style.height="10px",S.style.position="absolute",S.style.top=S.style.left="0px";for(const k of[t.loadedName,h]){const T=this._document.createElement("span");T.textContent="Hi",T.style.fontFamily=k,S.append(T)}this._document.body.append(S),p(h,()=>{S.remove(),r.complete()})}}class K2t{constructor(t,{disableFontFace:r=!1,inspectFont:n=null}){this.compiledGlyphs=Object.create(null);for(const o in t)this[o]=t[o];this.disableFontFace=r===!0,this._inspectFont=n}createNativeFontFace(){if(!this.data||this.disableFontFace)return null;let t;if(!this.cssFontInfo)t=new FontFace(this.loadedName,this.data,{});else{const r={weight:this.cssFontInfo.fontWeight};this.cssFontInfo.italicAngle&&(r.style=`oblique ${this.cssFontInfo.italicAngle}deg`),t=new FontFace(this.cssFontInfo.fontFamily,this.data,r)}return this._inspectFont?.(this),t}createFontFaceRule(){if(!this.data||this.disableFontFace)return null;const t=Yge(this.data),r=`url(data:${this.mimetype};base64,${btoa(t)});`;let n;if(!this.cssFontInfo)n=`@font-face {font-family:"${this.loadedName}";src:${r}}`;else{let o=`font-weight: ${this.cssFontInfo.fontWeight};`;this.cssFontInfo.italicAngle&&(o+=`font-style: oblique ${this.cssFontInfo.italicAngle}deg;`),n=`@font-face {font-family:"${this.cssFontInfo.fontFamily}";${o}src:${r}}`}return this._inspectFont?.(this,r),n}getPathGenerator(t,r){if(this.compiledGlyphs[r]!==void 0)return this.compiledGlyphs[r];let n;try{n=t.get(this.loadedName+"_path_"+r)}catch(i){Xr(`getPathGenerator - ignoring character: "${i}".`)}if(!Array.isArray(n)||n.length===0)return this.compiledGlyphs[r]=function(i,a){};const o=[];for(let i=0,a=n.length;i<a;)switch(n[i++]){case fu.BEZIER_CURVE_TO:{const[l,d,u,p,h,f]=n.slice(i,i+6);o.push(g=>g.bezierCurveTo(l,d,u,p,h,f)),i+=6}break;case fu.MOVE_TO:{const[l,d]=n.slice(i,i+2);o.push(u=>u.moveTo(l,d)),i+=2}break;case fu.LINE_TO:{const[l,d]=n.slice(i,i+2);o.push(u=>u.lineTo(l,d)),i+=2}break;case fu.QUADRATIC_CURVE_TO:{const[l,d,u,p]=n.slice(i,i+4);o.push(h=>h.quadraticCurveTo(l,d,u,p)),i+=4}break;case fu.RESTORE:o.push(l=>l.restore());break;case fu.SAVE:o.push(l=>l.save());break;case fu.SCALE:Li(o.length===2,"Scale command is only valid at the third position.");break;case fu.TRANSFORM:{const[l,d,u,p,h,f]=n.slice(i,i+6);o.push(g=>g.transform(l,d,u,p,h,f)),i+=6}break;case fu.TRANSLATE:{const[l,d]=n.slice(i,i+2);o.push(u=>u.translate(l,d)),i+=2}break}return this.compiledGlyphs[r]=function(a,l){o[0](a),o[1](a),a.scale(l,-l);for(let d=2,u=o.length;d<u;d++)o[d](a)}}}if(ka){var dj=Promise.withResolvers(),uj=null;(async()=>{const t=await bt(()=>import("./empty-BK-FM9Fc.js").then(l=>l.e),__vite__mapDeps([0,1,2])),r=await bt(()=>import("./index-CocAByQY.js").then(l=>l.i),__vite__mapDeps([3,1,4,5,6,7,8,9])),n=await bt(()=>import("./index-CN_MjJna.js").then(l=>l.i),__vite__mapDeps([10,1,11,4,5,6,7,8,9])),o=await bt(()=>import("./url-DStI5MA9.js").then(l=>l.u),__vite__mapDeps([12,1,9,7,5,6,8]));let i,a;return new Map(Object.entries({fs:t,http:r,https:n,url:o,canvas:i,path2d:a}))})().then(t=>{uj=t,dj.resolve()},t=>{Xr(`loadPackages: ${t}`),uj=new Map,dj.resolve()})}class z1{static get promise(){return dj.promise}static get(t){return uj?.get(t)}}const e4e=function(e){return z1.get("fs").promises.readFile(e).then(r=>new Uint8Array(r))};class Q2t extends _x{}class X2t extends Tx{_createCanvas(t,r){return z1.get("canvas").createCanvas(t,r)}}class J2t extends Ax{_fetchData(t,r){return e4e(t).then(n=>({cMapData:n,compressionType:r}))}}class e0t extends Lx{_fetchData(t){return e4e(t)}}const Wa={FILL:"Fill",STROKE:"Stroke",SHADING:"Shading"};function pj(e,t){if(!t)return;const r=t[2]-t[0],n=t[3]-t[1],o=new Path2D;o.rect(t[0],t[1],r,n),e.clip(o)}class g6{constructor(){this.constructor===g6&&to("Cannot initialize BaseShadingPattern.")}getPattern(){to("Abstract method `getPattern` called.")}}class t0t extends g6{constructor(t){super(),this._type=t[1],this._bbox=t[2],this._colorStops=t[3],this._p0=t[4],this._p1=t[5],this._r0=t[6],this._r1=t[7],this.matrix=null}_createGradient(t){let r;this._type==="axial"?r=t.createLinearGradient(this._p0[0],this._p0[1],this._p1[0],this._p1[1]):this._type==="radial"&&(r=t.createRadialGradient(this._p0[0],this._p0[1],this._r0,this._p1[0],this._p1[1],this._r1));for(const n of this._colorStops)r.addColorStop(n[0],n[1]);return r}getPattern(t,r,n,o){let i;if(o===Wa.STROKE||o===Wa.FILL){const a=r.current.getClippedPathBoundingBox(o,Po(t))||[0,0,0,0],l=Math.ceil(a[2]-a[0])||1,d=Math.ceil(a[3]-a[1])||1,u=r.cachedCanvases.getCanvas("pattern",l,d,!0),p=u.context;p.clearRect(0,0,p.canvas.width,p.canvas.height),p.beginPath(),p.rect(0,0,p.canvas.width,p.canvas.height),p.translate(-a[0],-a[1]),n=ar.transform(n,[1,0,0,1,a[0],a[1]]),p.transform(...r.baseTransform),this.matrix&&p.transform(...this.matrix),pj(p,this._bbox),p.fillStyle=this._createGradient(p),p.fill(),i=t.createPattern(u.canvas,"no-repeat");const h=new DOMMatrix(n);i.setTransform(h)}else pj(t,this._bbox),i=this._createGradient(t);return i}}function cL(e,t,r,n,o,i,a,l){const d=t.coords,u=t.colors,p=e.data,h=e.width*4;let f;d[r+1]>d[n+1]&&(f=r,r=n,n=f,f=i,i=a,a=f),d[n+1]>d[o+1]&&(f=n,n=o,o=f,f=a,a=l,l=f),d[r+1]>d[n+1]&&(f=r,r=n,n=f,f=i,i=a,a=f);const g=(d[r]+t.offsetX)*t.scaleX,y=(d[r+1]+t.offsetY)*t.scaleY,v=(d[n]+t.offsetX)*t.scaleX,w=(d[n+1]+t.offsetY)*t.scaleY,x=(d[o]+t.offsetX)*t.scaleX,$=(d[o+1]+t.offsetY)*t.scaleY;if(y>=$)return;const S=u[i],k=u[i+1],T=u[i+2],E=u[a],A=u[a+1],P=u[a+2],D=u[l],O=u[l+1],V=u[l+2],j=Math.round(y),q=Math.round($);let W,F,H,I,L,z,B,ee;for(let Z=j;Z<=q;Z++){if(Z<w){const fe=Z<y?0:(y-Z)/(y-w);W=g-(g-v)*fe,F=S-(S-E)*fe,H=k-(k-A)*fe,I=T-(T-P)*fe}else{let fe;Z>$?fe=1:w===$?fe=0:fe=(w-Z)/(w-$),W=v-(v-x)*fe,F=E-(E-D)*fe,H=A-(A-O)*fe,I=P-(P-V)*fe}let U;Z<y?U=0:Z>$?U=1:U=(y-Z)/(y-$),L=g-(g-x)*U,z=S-(S-D)*U,B=k-(k-O)*U,ee=T-(T-V)*U;const Q=Math.round(Math.min(W,L)),X=Math.round(Math.max(W,L));let ae=h*Z+Q*4;for(let fe=Q;fe<=X;fe++)U=(W-fe)/(W-L),U<0?U=0:U>1&&(U=1),p[ae++]=F-(F-z)*U|0,p[ae++]=H-(H-B)*U|0,p[ae++]=I-(I-ee)*U|0,p[ae++]=255}}function r0t(e,t,r){const n=t.coords,o=t.colors;let i,a;switch(t.type){case"lattice":const l=t.verticesPerRow,d=Math.floor(n.length/l)-1,u=l-1;for(i=0;i<d;i++){let p=i*l;for(let h=0;h<u;h++,p++)cL(e,r,n[p],n[p+1],n[p+l],o[p],o[p+1],o[p+l]),cL(e,r,n[p+l+1],n[p+1],n[p+l],o[p+l+1],o[p+1],o[p+l])}break;case"triangles":for(i=0,a=n.length;i<a;i+=3)cL(e,r,n[i],n[i+1],n[i+2],o[i],o[i+1],o[i+2]);break;default:throw new Error("illegal figure")}}class n0t extends g6{constructor(t){super(),this._coords=t[2],this._colors=t[3],this._figures=t[4],this._bounds=t[5],this._bbox=t[7],this._background=t[8],this.matrix=null}_createMeshCanvas(t,r,n){const l=Math.floor(this._bounds[0]),d=Math.floor(this._bounds[1]),u=Math.ceil(this._bounds[2])-l,p=Math.ceil(this._bounds[3])-d,h=Math.min(Math.ceil(Math.abs(u*t[0]*1.1)),3e3),f=Math.min(Math.ceil(Math.abs(p*t[1]*1.1)),3e3),g=u/h,y=p/f,v={coords:this._coords,colors:this._colors,offsetX:-l,offsetY:-d,scaleX:1/g,scaleY:1/y},w=h+2*2,x=f+2*2,$=n.getCanvas("mesh",w,x,!1),S=$.context,k=S.createImageData(h,f);if(r){const E=k.data;for(let A=0,P=E.length;A<P;A+=4)E[A]=r[0],E[A+1]=r[1],E[A+2]=r[2],E[A+3]=255}for(const E of this._figures)r0t(k,E,v);return S.putImageData(k,2,2),{canvas:$.canvas,offsetX:l-2*g,offsetY:d-2*y,scaleX:g,scaleY:y}}getPattern(t,r,n,o){pj(t,this._bbox);let i;if(o===Wa.SHADING)i=ar.singularValueDecompose2dScale(Po(t));else if(i=ar.singularValueDecompose2dScale(r.baseTransform),this.matrix){const l=ar.singularValueDecompose2dScale(this.matrix);i=[i[0]*l[0],i[1]*l[1]]}const a=this._createMeshCanvas(i,o===Wa.SHADING?null:this._background,r.cachedCanvases);return o!==Wa.SHADING&&(t.setTransform(...r.baseTransform),this.matrix&&t.transform(...this.matrix)),t.translate(a.offsetX,a.offsetY),t.scale(a.scaleX,a.scaleY),t.createPattern(a.canvas,"no-repeat")}}class o0t extends g6{getPattern(){return"hotpink"}}function i0t(e){switch(e[0]){case"RadialAxial":return new t0t(e);case"Mesh":return new n0t(e);case"Dummy":return new o0t}throw new Error(`Unknown IR type: ${e[0]}`)}const ZX={COLORED:1,UNCOLORED:2};class rN{static MAX_PATTERN_SIZE=3e3;constructor(t,r,n,o,i){this.operatorList=t[2],this.matrix=t[3],this.bbox=t[4],this.xstep=t[5],this.ystep=t[6],this.paintType=t[7],this.tilingType=t[8],this.color=r,this.ctx=n,this.canvasGraphicsFactory=o,this.baseTransform=i}createPatternCanvas(t){const r=this.operatorList,n=this.bbox,o=this.xstep,i=this.ystep,a=this.paintType,l=this.tilingType,d=this.color,u=this.canvasGraphicsFactory;Sx("TilingType: "+l);const p=n[0],h=n[1],f=n[2],g=n[3],y=ar.singularValueDecompose2dScale(this.matrix),v=ar.singularValueDecompose2dScale(this.baseTransform),w=[y[0]*v[0],y[1]*v[1]],x=this.getSizeAndScale(o,this.ctx.canvas.width,w[0]),$=this.getSizeAndScale(i,this.ctx.canvas.height,w[1]),S=t.cachedCanvases.getCanvas("pattern",x.size,$.size,!0),k=S.context,T=u.createCanvasGraphics(k);T.groupLevel=t.groupLevel,this.setFillAndStrokeStyleToContext(T,a,d);let E=p,A=h,P=f,D=g;return p<0&&(E=0,P+=Math.abs(p)),h<0&&(A=0,D+=Math.abs(h)),k.translate(-(x.scale*E),-($.scale*A)),T.transform(x.scale,0,0,$.scale,0,0),k.save(),this.clipBbox(T,E,A,P,D),T.baseTransform=Po(T.ctx),T.executeOperatorList(r),T.endDrawing(),{canvas:S.canvas,scaleX:x.scale,scaleY:$.scale,offsetX:E,offsetY:A}}getSizeAndScale(t,r,n){t=Math.abs(t);const o=Math.max(rN.MAX_PATTERN_SIZE,r);let i=Math.ceil(t*n);return i>=o?i=o:n=i/t,{scale:n,size:i}}clipBbox(t,r,n,o,i){const a=o-r,l=i-n;t.ctx.rect(r,n,a,l),t.current.updateRectMinMax(Po(t.ctx),[r,n,o,i]),t.clip(),t.endPath()}setFillAndStrokeStyleToContext(t,r,n){const o=t.ctx,i=t.current;switch(r){case ZX.COLORED:const a=this.ctx;o.fillStyle=a.fillStyle,o.strokeStyle=a.strokeStyle,i.fillColor=a.fillStyle,i.strokeColor=a.strokeStyle;break;case ZX.UNCOLORED:const l=ar.makeHexColor(n[0],n[1],n[2]);o.fillStyle=l,o.strokeStyle=l,i.fillColor=l,i.strokeColor=l;break;default:throw new D2t(`Unsupported paint type: ${r}`)}}getPattern(t,r,n,o){let i=n;o!==Wa.SHADING&&(i=ar.transform(i,r.baseTransform),this.matrix&&(i=ar.transform(i,this.matrix)));const a=this.createPatternCanvas(r);let l=new DOMMatrix(i);l=l.translate(a.offsetX,a.offsetY),l=l.scale(1/a.scaleX,1/a.scaleY);const d=t.createPattern(a.canvas,"repeat");return d.setTransform(l),d}}function a0t({src:e,srcPos:t=0,dest:r,width:n,height:o,nonBlackColor:i=4294967295,inverseDecode:a=!1}){const l=xs.isLittleEndian?4278190080:255,[d,u]=a?[i,l]:[l,i],p=n>>3,h=n&7,f=e.length;r=new Uint32Array(r.buffer);let g=0;for(let y=0;y<o;y++){for(const w=t+p;t<w;t++){const x=t<f?e[t]:255;r[g++]=x&128?u:d,r[g++]=x&64?u:d,r[g++]=x&32?u:d,r[g++]=x&16?u:d,r[g++]=x&8?u:d,r[g++]=x&4?u:d,r[g++]=x&2?u:d,r[g++]=x&1?u:d}if(h===0)continue;const v=t<f?e[t++]:255;for(let w=0;w<h;w++)r[g++]=v&1<<7-w?u:d}return{srcPos:t,destPos:g}}const KX=16,QX=100,s0t=15,XX=10,JX=1e3,hs=16;function l0t(e,t){if(e._removeMirroring)throw new Error("Context is already forwarding operations.");e.__originalSave=e.save,e.__originalRestore=e.restore,e.__originalRotate=e.rotate,e.__originalScale=e.scale,e.__originalTranslate=e.translate,e.__originalTransform=e.transform,e.__originalSetTransform=e.setTransform,e.__originalResetTransform=e.resetTransform,e.__originalClip=e.clip,e.__originalMoveTo=e.moveTo,e.__originalLineTo=e.lineTo,e.__originalBezierCurveTo=e.bezierCurveTo,e.__originalRect=e.rect,e.__originalClosePath=e.closePath,e.__originalBeginPath=e.beginPath,e._removeMirroring=()=>{e.save=e.__originalSave,e.restore=e.__originalRestore,e.rotate=e.__originalRotate,e.scale=e.__originalScale,e.translate=e.__originalTranslate,e.transform=e.__originalTransform,e.setTransform=e.__originalSetTransform,e.resetTransform=e.__originalResetTransform,e.clip=e.__originalClip,e.moveTo=e.__originalMoveTo,e.lineTo=e.__originalLineTo,e.bezierCurveTo=e.__originalBezierCurveTo,e.rect=e.__originalRect,e.closePath=e.__originalClosePath,e.beginPath=e.__originalBeginPath,delete e._removeMirroring},e.save=function(){t.save(),this.__originalSave()},e.restore=function(){t.restore(),this.__originalRestore()},e.translate=function(n,o){t.translate(n,o),this.__originalTranslate(n,o)},e.scale=function(n,o){t.scale(n,o),this.__originalScale(n,o)},e.transform=function(n,o,i,a,l,d){t.transform(n,o,i,a,l,d),this.__originalTransform(n,o,i,a,l,d)},e.setTransform=function(n,o,i,a,l,d){t.setTransform(n,o,i,a,l,d),this.__originalSetTransform(n,o,i,a,l,d)},e.resetTransform=function(){t.resetTransform(),this.__originalResetTransform()},e.rotate=function(n){t.rotate(n),this.__originalRotate(n)},e.clip=function(n){t.clip(n),this.__originalClip(n)},e.moveTo=function(r,n){t.moveTo(r,n),this.__originalMoveTo(r,n)},e.lineTo=function(r,n){t.lineTo(r,n),this.__originalLineTo(r,n)},e.bezierCurveTo=function(r,n,o,i,a,l){t.bezierCurveTo(r,n,o,i,a,l),this.__originalBezierCurveTo(r,n,o,i,a,l)},e.rect=function(r,n,o,i){t.rect(r,n,o,i),this.__originalRect(r,n,o,i)},e.closePath=function(){t.closePath(),this.__originalClosePath()},e.beginPath=function(){t.beginPath(),this.__originalBeginPath()}}class c0t{constructor(t){this.canvasFactory=t,this.cache=Object.create(null)}getCanvas(t,r,n){let o;return this.cache[t]!==void 0?(o=this.cache[t],this.canvasFactory.reset(o,r,n)):(o=this.canvasFactory.create(r,n),this.cache[t]=o),o}delete(t){delete this.cache[t]}clear(){for(const t in this.cache){const r=this.cache[t];this.canvasFactory.destroy(r),delete this.cache[t]}}}function I9(e,t,r,n,o,i,a,l,d,u){const[p,h,f,g,y,v]=Po(e);if(h===0&&f===0){const $=a*p+y,S=Math.round($),k=l*g+v,T=Math.round(k),E=(a+d)*p+y,A=Math.abs(Math.round(E)-S)||1,P=(l+u)*g+v,D=Math.abs(Math.round(P)-T)||1;return e.setTransform(Math.sign(p),0,0,Math.sign(g),S,T),e.drawImage(t,r,n,o,i,0,0,A,D),e.setTransform(p,h,f,g,y,v),[A,D]}if(p===0&&g===0){const $=l*f+y,S=Math.round($),k=a*h+v,T=Math.round(k),E=(l+u)*f+y,A=Math.abs(Math.round(E)-S)||1,P=(a+d)*h+v,D=Math.abs(Math.round(P)-T)||1;return e.setTransform(0,Math.sign(h),Math.sign(f),0,S,T),e.drawImage(t,r,n,o,i,0,0,D,A),e.setTransform(p,h,f,g,y,v),[D,A]}e.drawImage(t,r,n,o,i,a,l,d,u);const w=Math.hypot(p,h),x=Math.hypot(f,g);return[w*d,x*u]}function d0t(e){const{width:t,height:r}=e;if(t>JX||r>JX)return null;const n=1e3,o=new Uint8Array([0,2,4,0,1,0,5,4,8,10,0,8,0,2,1,0]),i=t+1;let a=new Uint8Array(i*(r+1)),l,d,u;const p=t+7&-8;let h=new Uint8Array(p*r),f=0;for(const x of e.data){let $=128;for(;$>0;)h[f++]=x&$?0:255,$>>=1}let g=0;for(f=0,h[f]!==0&&(a[0]=1,++g),d=1;d<t;d++)h[f]!==h[f+1]&&(a[d]=h[f]?2:1,++g),f++;for(h[f]!==0&&(a[d]=2,++g),l=1;l<r;l++){f=l*p,u=l*i,h[f-p]!==h[f]&&(a[u]=h[f]?1:8,++g);let x=(h[f]?4:0)+(h[f-p]?8:0);for(d=1;d<t;d++)x=(x>>2)+(h[f+1]?4:0)+(h[f-p+1]?8:0),o[x]&&(a[u+d]=o[x],++g),f++;if(h[f-p]!==h[f]&&(a[u+d]=h[f]?2:4,++g),g>n)return null}for(f=p*(r-1),u=l*i,h[f]!==0&&(a[u]=8,++g),d=1;d<t;d++)h[f]!==h[f+1]&&(a[u+d]=h[f]?4:8,++g),f++;if(h[f]!==0&&(a[u+d]=4,++g),g>n)return null;const y=new Int32Array([0,i,-1,0,-i,0,0,0,1]),v=new Path2D;for(l=0;g&&l<=r;l++){let x=l*i;const $=x+t;for(;x<$&&!a[x];)x++;if(x===$)continue;v.moveTo(x%i,l);const S=x;let k=a[x];do{const T=y[k];do x+=T;while(!a[x]);const E=a[x];E!==5&&E!==10?(k=E,a[x]=0):(k=E&51*k>>4,a[x]&=k>>2|k<<2),v.lineTo(x%i,x/i|0),a[x]||--g}while(S!==x);--l}return h=null,a=null,function(x){x.save(),x.scale(1/t,-1/r),x.translate(0,-r),x.fill(v),x.beginPath(),x.restore()}}class eJ{constructor(t,r){this.alphaIsShape=!1,this.fontSize=0,this.fontSizeScale=1,this.textMatrix=Uge,this.textMatrixScale=1,this.fontMatrix=ij,this.leading=0,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRenderingMode=va.FILL,this.textRise=0,this.fillColor="#000000",this.strokeColor="#000000",this.patternFill=!1,this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.activeSMask=null,this.transferMaps="none",this.startNewPathAndClipBox([0,0,t,r])}clone(){const t=Object.create(this);return t.clipBox=this.clipBox.slice(),t}setCurrentPoint(t,r){this.x=t,this.y=r}updatePathMinMax(t,r,n){[r,n]=ar.applyTransform([r,n],t),this.minX=Math.min(this.minX,r),this.minY=Math.min(this.minY,n),this.maxX=Math.max(this.maxX,r),this.maxY=Math.max(this.maxY,n)}updateRectMinMax(t,r){const n=ar.applyTransform(r,t),o=ar.applyTransform(r.slice(2),t),i=ar.applyTransform([r[0],r[3]],t),a=ar.applyTransform([r[2],r[1]],t);this.minX=Math.min(this.minX,n[0],o[0],i[0],a[0]),this.minY=Math.min(this.minY,n[1],o[1],i[1],a[1]),this.maxX=Math.max(this.maxX,n[0],o[0],i[0],a[0]),this.maxY=Math.max(this.maxY,n[1],o[1],i[1],a[1])}updateScalingPathMinMax(t,r){ar.scaleMinMax(t,r),this.minX=Math.min(this.minX,r[0]),this.minY=Math.min(this.minY,r[1]),this.maxX=Math.max(this.maxX,r[2]),this.maxY=Math.max(this.maxY,r[3])}updateCurvePathMinMax(t,r,n,o,i,a,l,d,u,p){const h=ar.bezierBoundingBox(r,n,o,i,a,l,d,u,p);p||this.updateRectMinMax(t,h)}getPathBoundingBox(t=Wa.FILL,r=null){const n=[this.minX,this.minY,this.maxX,this.maxY];if(t===Wa.STROKE){r||to("Stroke bounding box must include transform.");const o=ar.singularValueDecompose2dScale(r),i=o[0]*this.lineWidth/2,a=o[1]*this.lineWidth/2;n[0]-=i,n[1]-=a,n[2]+=i,n[3]+=a}return n}updateClipFromPath(){const t=ar.intersect(this.clipBox,this.getPathBoundingBox());this.startNewPathAndClipBox(t||[0,0,0,0])}isEmptyClip(){return this.minX===1/0}startNewPathAndClipBox(t){this.clipBox=t,this.minX=1/0,this.minY=1/0,this.maxX=0,this.maxY=0}getClippedPathBoundingBox(t=Wa.FILL,r=null){return ar.intersect(this.clipBox,this.getPathBoundingBox(t,r))}}function tJ(e,t){if(typeof ImageData<"u"&&t instanceof ImageData){e.putImageData(t,0,0);return}const r=t.height,n=t.width,o=r%hs,i=(r-o)/hs,a=o===0?i:i+1,l=e.createImageData(n,hs);let d=0,u;const p=t.data,h=l.data;let f,g,y,v;if(t.kind===Ry.GRAYSCALE_1BPP){const w=p.byteLength,x=new Uint32Array(h.buffer,0,h.byteLength>>2),$=x.length,S=n+7>>3,k=4294967295,T=xs.isLittleEndian?4278190080:255;for(f=0;f<a;f++){for(y=f<i?hs:o,u=0,g=0;g<y;g++){const E=w-d;let A=0;const P=E>S?n:E*8-7,D=P&-8;let O=0,V=0;for(;A<D;A+=8)V=p[d++],x[u++]=V&128?k:T,x[u++]=V&64?k:T,x[u++]=V&32?k:T,x[u++]=V&16?k:T,x[u++]=V&8?k:T,x[u++]=V&4?k:T,x[u++]=V&2?k:T,x[u++]=V&1?k:T;for(;A<P;A++)O===0&&(V=p[d++],O=128),x[u++]=V&O?k:T,O>>=1}for(;u<$;)x[u++]=0;e.putImageData(l,0,f*hs)}}else if(t.kind===Ry.RGBA_32BPP){for(g=0,v=n*hs*4,f=0;f<i;f++)h.set(p.subarray(d,d+v)),d+=v,e.putImageData(l,0,g),g+=hs;f<a&&(v=n*o*4,h.set(p.subarray(d,d+v)),e.putImageData(l,0,g))}else if(t.kind===Ry.RGB_24BPP)for(y=hs,v=n*y,f=0;f<a;f++){for(f>=i&&(y=o,v=n*y),u=0,g=v;g--;)h[u++]=p[d++],h[u++]=p[d++],h[u++]=p[d++],h[u++]=255;e.putImageData(l,0,f*hs)}else throw new Error(`bad image kind: ${t.kind}`)}function rJ(e,t){if(t.bitmap){e.drawImage(t.bitmap,0,0);return}const r=t.height,n=t.width,o=r%hs,i=(r-o)/hs,a=o===0?i:i+1,l=e.createImageData(n,hs);let d=0;const u=t.data,p=l.data;for(let h=0;h<a;h++){const f=h<i?hs:o;({srcPos:d}=a0t({src:u,srcPos:d,dest:p,width:n,height:f,nonBlackColor:0})),e.putImageData(l,0,h*hs)}}function W4(e,t){const r=["strokeStyle","fillStyle","fillRule","globalAlpha","lineWidth","lineCap","lineJoin","miterLimit","globalCompositeOperation","font","filter"];for(const n of r)e[n]!==void 0&&(t[n]=e[n]);e.setLineDash!==void 0&&(t.setLineDash(e.getLineDash()),t.lineDashOffset=e.lineDashOffset)}function j9(e){if(e.strokeStyle=e.fillStyle="#000000",e.fillRule="nonzero",e.globalAlpha=1,e.lineWidth=1,e.lineCap="butt",e.lineJoin="miter",e.miterLimit=10,e.globalCompositeOperation="source-over",e.font="10px sans-serif",e.setLineDash!==void 0&&(e.setLineDash([]),e.lineDashOffset=0),!ka){const{filter:t}=e;t!=="none"&&t!==""&&(e.filter="none")}}function nJ(e,t){if(t)return!0;const r=ar.singularValueDecompose2dScale(e);r[0]=Math.fround(r[0]),r[1]=Math.fround(r[1]);const n=Math.fround((globalThis.devicePixelRatio||1)*Jf.PDF_TO_CSS_UNITS);return r[0]<=n&&r[1]<=n}const u0t=["butt","round","square"],p0t=["miter","round","bevel"],h0t={},oJ={};class _f{constructor(t,r,n,o,i,{optionalContentConfig:a,markedContentStack:l=null},d,u){this.ctx=t,this.current=new eJ(this.ctx.canvas.width,this.ctx.canvas.height),this.stateStack=[],this.pendingClip=null,this.pendingEOFill=!1,this.res=null,this.xobjs=null,this.commonObjs=r,this.objs=n,this.canvasFactory=o,this.filterFactory=i,this.groupStack=[],this.processingType3=null,this.baseTransform=null,this.baseTransformStack=[],this.groupLevel=0,this.smaskStack=[],this.smaskCounter=0,this.tempSMask=null,this.suspendedCtx=null,this.contentVisible=!0,this.markedContentStack=l||[],this.optionalContentConfig=a,this.cachedCanvases=new c0t(this.canvasFactory),this.cachedPatterns=new Map,this.annotationCanvasMap=d,this.viewportScale=1,this.outputScaleX=1,this.outputScaleY=1,this.pageColors=u,this._cachedScaleForStroking=[-1,0],this._cachedGetSinglePixelWidth=null,this._cachedBitmapsMap=new Map}getObject(t,r=null){return typeof t=="string"?t.startsWith("g_")?this.commonObjs.get(t):this.objs.get(t):r}beginDrawing({transform:t,viewport:r,transparency:n=!1,background:o=null}){const i=this.ctx.canvas.width,a=this.ctx.canvas.height,l=this.ctx.fillStyle;if(this.ctx.fillStyle=o||"#ffffff",this.ctx.fillRect(0,0,i,a),this.ctx.fillStyle=l,n){const d=this.cachedCanvases.getCanvas("transparent",i,a);this.compositeCtx=this.ctx,this.transparentCanvas=d.canvas,this.ctx=d.context,this.ctx.save(),this.ctx.transform(...Po(this.compositeCtx))}this.ctx.save(),j9(this.ctx),t&&(this.ctx.transform(...t),this.outputScaleX=t[0],this.outputScaleY=t[0]),this.ctx.transform(...r.transform),this.viewportScale=r.scale,this.baseTransform=Po(this.ctx)}executeOperatorList(t,r,n,o){const i=t.argsArray,a=t.fnArray;let l=r||0;const d=i.length;if(d===l)return l;const u=d-l>XX&&typeof n=="function",p=u?Date.now()+s0t:0;let h=0;const f=this.commonObjs,g=this.objs;let y;for(;;){if(o!==void 0&&l===o.nextBreakPoint)return o.breakIt(l,n),l;if(y=a[l],y!==kc.dependency)this[y].apply(this,i[l]);else for(const v of i[l]){const w=v.startsWith("g_")?f:g;if(!w.has(v))return w.get(v,n),l}if(l++,l===d)return l;if(u&&++h>XX){if(Date.now()>p)return n(),l;h=0}}}#e(){for(;this.stateStack.length||this.inSMaskMode;)this.restore();this.ctx.restore(),this.transparentCanvas&&(this.ctx=this.compositeCtx,this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.drawImage(this.transparentCanvas,0,0),this.ctx.restore(),this.transparentCanvas=null)}endDrawing(){this.#e(),this.cachedCanvases.clear(),this.cachedPatterns.clear();for(const t of this._cachedBitmapsMap.values()){for(const r of t.values())typeof HTMLCanvasElement<"u"&&r instanceof HTMLCanvasElement&&(r.width=r.height=0);t.clear()}this._cachedBitmapsMap.clear(),this.#t()}#t(){if(this.pageColors){const t=this.filterFactory.addHCMFilter(this.pageColors.foreground,this.pageColors.background);if(t!=="none"){const r=this.ctx.filter;this.ctx.filter=t,this.ctx.drawImage(this.ctx.canvas,0,0),this.ctx.filter=r}}}_scaleImage(t,r){const n=t.width,o=t.height;let i=Math.max(Math.hypot(r[0],r[1]),1),a=Math.max(Math.hypot(r[2],r[3]),1),l=n,d=o,u="prescale1",p,h;for(;i>2&&l>1||a>2&&d>1;){let f=l,g=d;i>2&&l>1&&(f=l>=16384?Math.floor(l/2)-1||1:Math.ceil(l/2),i/=l/f),a>2&&d>1&&(g=d>=16384?Math.floor(d/2)-1||1:Math.ceil(d)/2,a/=d/g),p=this.cachedCanvases.getCanvas(u,f,g),h=p.context,h.clearRect(0,0,f,g),h.drawImage(t,0,0,l,d,0,0,f,g),t=p.canvas,l=f,d=g,u=u==="prescale1"?"prescale2":"prescale1"}return{img:t,paintWidth:l,paintHeight:d}}_createMaskCanvas(t){const r=this.ctx,{width:n,height:o}=t,i=this.current.fillColor,a=this.current.patternFill,l=Po(r);let d,u,p,h;if((t.bitmap||t.data)&&t.count>1){const P=t.bitmap||t.data.buffer;u=JSON.stringify(a?l:[l.slice(0,4),i]),d=this._cachedBitmapsMap.get(P),d||(d=new Map,this._cachedBitmapsMap.set(P,d));const D=d.get(u);if(D&&!a){const O=Math.round(Math.min(l[0],l[2])+l[4]),V=Math.round(Math.min(l[1],l[3])+l[5]);return{canvas:D,offsetX:O,offsetY:V}}p=D}p||(h=this.cachedCanvases.getCanvas("maskCanvas",n,o),rJ(h.context,t));let f=ar.transform(l,[1/n,0,0,-1/o,0,0]);f=ar.transform(f,[1,0,0,1,0,-o]);const[g,y,v,w]=ar.getAxialAlignedBoundingBox([0,0,n,o],f),x=Math.round(v-g)||1,$=Math.round(w-y)||1,S=this.cachedCanvases.getCanvas("fillCanvas",x,$),k=S.context,T=g,E=y;k.translate(-T,-E),k.transform(...f),p||(p=this._scaleImage(h.canvas,gu(k)),p=p.img,d&&a&&d.set(u,p)),k.imageSmoothingEnabled=nJ(Po(k),t.interpolate),I9(k,p,0,0,p.width,p.height,0,0,n,o),k.globalCompositeOperation="source-in";const A=ar.transform(gu(k),[1,0,0,1,-T,-E]);return k.fillStyle=a?i.getPattern(r,this,A,Wa.FILL):i,k.fillRect(0,0,n,o),d&&!a&&(this.cachedCanvases.delete("fillCanvas"),d.set(u,S.canvas)),{canvas:S.canvas,offsetX:Math.round(T),offsetY:Math.round(E)}}setLineWidth(t){t!==this.current.lineWidth&&(this._cachedScaleForStroking[0]=-1),this.current.lineWidth=t,this.ctx.lineWidth=t}setLineCap(t){this.ctx.lineCap=u0t[t]}setLineJoin(t){this.ctx.lineJoin=p0t[t]}setMiterLimit(t){this.ctx.miterLimit=t}setDash(t,r){const n=this.ctx;n.setLineDash!==void 0&&(n.setLineDash(t),n.lineDashOffset=r)}setRenderingIntent(t){}setFlatness(t){}setGState(t){for(const[r,n]of t)switch(r){case"LW":this.setLineWidth(n);break;case"LC":this.setLineCap(n);break;case"LJ":this.setLineJoin(n);break;case"ML":this.setMiterLimit(n);break;case"D":this.setDash(n[0],n[1]);break;case"RI":this.setRenderingIntent(n);break;case"FL":this.setFlatness(n);break;case"Font":this.setFont(n[0],n[1]);break;case"CA":this.current.strokeAlpha=n;break;case"ca":this.current.fillAlpha=n,this.ctx.globalAlpha=n;break;case"BM":this.ctx.globalCompositeOperation=n;break;case"SMask":this.current.activeSMask=n?this.tempSMask:null,this.tempSMask=null,this.checkSMaskState();break;case"TR":this.ctx.filter=this.current.transferMaps=this.filterFactory.addFilter(n);break}}get inSMaskMode(){return!!this.suspendedCtx}checkSMaskState(){const t=this.inSMaskMode;this.current.activeSMask&&!t?this.beginSMaskMode():!this.current.activeSMask&&t&&this.endSMaskMode()}beginSMaskMode(){if(this.inSMaskMode)throw new Error("beginSMaskMode called while already in smask mode");const t=this.ctx.canvas.width,r=this.ctx.canvas.height,n="smaskGroupAt"+this.groupLevel,o=this.cachedCanvases.getCanvas(n,t,r);this.suspendedCtx=this.ctx,this.ctx=o.context;const i=this.ctx;i.setTransform(...Po(this.suspendedCtx)),W4(this.suspendedCtx,i),l0t(i,this.suspendedCtx),this.setGState([["BM","source-over"],["ca",1],["CA",1]])}endSMaskMode(){if(!this.inSMaskMode)throw new Error("endSMaskMode called while not in smask mode");this.ctx._removeMirroring(),W4(this.ctx,this.suspendedCtx),this.ctx=this.suspendedCtx,this.suspendedCtx=null}compose(t){if(!this.current.activeSMask)return;t?(t[0]=Math.floor(t[0]),t[1]=Math.floor(t[1]),t[2]=Math.ceil(t[2]),t[3]=Math.ceil(t[3])):t=[0,0,this.ctx.canvas.width,this.ctx.canvas.height];const r=this.current.activeSMask,n=this.suspendedCtx;this.composeSMask(n,r,this.ctx,t),this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.clearRect(0,0,this.ctx.canvas.width,this.ctx.canvas.height),this.ctx.restore()}composeSMask(t,r,n,o){const i=o[0],a=o[1],l=o[2]-i,d=o[3]-a;l===0||d===0||(this.genericComposeSMask(r.context,n,l,d,r.subtype,r.backdrop,r.transferMap,i,a,r.offsetX,r.offsetY),t.save(),t.globalAlpha=1,t.globalCompositeOperation="source-over",t.setTransform(1,0,0,1,0,0),t.drawImage(n.canvas,0,0),t.restore())}genericComposeSMask(t,r,n,o,i,a,l,d,u,p,h){let f=t.canvas,g=d-p,y=u-h;if(a){if(g<0||y<0||g+n>f.width||y+o>f.height){const w=this.cachedCanvases.getCanvas("maskExtension",n,o),x=w.context;x.drawImage(f,-g,-y),a.some($=>$!==0)&&(x.globalCompositeOperation="destination-atop",x.fillStyle=ar.makeHexColor(...a),x.fillRect(0,0,n,o),x.globalCompositeOperation="source-over"),f=w.canvas,g=y=0}else if(a.some(w=>w!==0)){t.save(),t.globalAlpha=1,t.setTransform(1,0,0,1,0,0);const w=new Path2D;w.rect(g,y,n,o),t.clip(w),t.globalCompositeOperation="destination-atop",t.fillStyle=ar.makeHexColor(...a),t.fillRect(g,y,n,o),t.restore()}}r.save(),r.globalAlpha=1,r.setTransform(1,0,0,1,0,0),i==="Alpha"&&l?r.filter=this.filterFactory.addAlphaFilter(l):i==="Luminosity"&&(r.filter=this.filterFactory.addLuminosityFilter(l));const v=new Path2D;v.rect(d,u,n,o),r.clip(v),r.globalCompositeOperation="destination-in",r.drawImage(f,g,y,n,o,d,u,n,o),r.restore()}save(){this.inSMaskMode?(W4(this.ctx,this.suspendedCtx),this.suspendedCtx.save()):this.ctx.save();const t=this.current;this.stateStack.push(t),this.current=t.clone()}restore(){this.stateStack.length===0&&this.inSMaskMode&&this.endSMaskMode(),this.stateStack.length!==0&&(this.current=this.stateStack.pop(),this.inSMaskMode?(this.suspendedCtx.restore(),W4(this.suspendedCtx,this.ctx)):this.ctx.restore(),this.checkSMaskState(),this.pendingClip=null,this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null)}transform(t,r,n,o,i,a){this.ctx.transform(t,r,n,o,i,a),this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null}constructPath(t,r,n){const o=this.ctx,i=this.current;let a=i.x,l=i.y,d,u;const p=Po(o),h=p[0]===0&&p[3]===0||p[1]===0&&p[2]===0,f=h?n.slice(0):null;for(let g=0,y=0,v=t.length;g<v;g++)switch(t[g]|0){case kc.rectangle:a=r[y++],l=r[y++];const w=r[y++],x=r[y++],$=a+w,S=l+x;o.moveTo(a,l),w===0||x===0?o.lineTo($,S):(o.lineTo($,l),o.lineTo($,S),o.lineTo(a,S)),h||i.updateRectMinMax(p,[a,l,$,S]),o.closePath();break;case kc.moveTo:a=r[y++],l=r[y++],o.moveTo(a,l),h||i.updatePathMinMax(p,a,l);break;case kc.lineTo:a=r[y++],l=r[y++],o.lineTo(a,l),h||i.updatePathMinMax(p,a,l);break;case kc.curveTo:d=a,u=l,a=r[y+4],l=r[y+5],o.bezierCurveTo(r[y],r[y+1],r[y+2],r[y+3],a,l),i.updateCurvePathMinMax(p,d,u,r[y],r[y+1],r[y+2],r[y+3],a,l,f),y+=6;break;case kc.curveTo2:d=a,u=l,o.bezierCurveTo(a,l,r[y],r[y+1],r[y+2],r[y+3]),i.updateCurvePathMinMax(p,d,u,a,l,r[y],r[y+1],r[y+2],r[y+3],f),a=r[y+2],l=r[y+3],y+=4;break;case kc.curveTo3:d=a,u=l,a=r[y+2],l=r[y+3],o.bezierCurveTo(r[y],r[y+1],a,l,a,l),i.updateCurvePathMinMax(p,d,u,r[y],r[y+1],a,l,a,l,f),y+=4;break;case kc.closePath:o.closePath();break}h&&i.updateScalingPathMinMax(p,f),i.setCurrentPoint(a,l)}closePath(){this.ctx.closePath()}stroke(t=!0){const r=this.ctx,n=this.current.strokeColor;r.globalAlpha=this.current.strokeAlpha,this.contentVisible&&(typeof n=="object"&&n?.getPattern?(r.save(),r.strokeStyle=n.getPattern(r,this,gu(r),Wa.STROKE),this.rescaleAndStroke(!1),r.restore()):this.rescaleAndStroke(!0)),t&&this.consumePath(this.current.getClippedPathBoundingBox()),r.globalAlpha=this.current.fillAlpha}closeStroke(){this.closePath(),this.stroke()}fill(t=!0){const r=this.ctx,n=this.current.fillColor,o=this.current.patternFill;let i=!1;o&&(r.save(),r.fillStyle=n.getPattern(r,this,gu(r),Wa.FILL),i=!0);const a=this.current.getClippedPathBoundingBox();this.contentVisible&&a!==null&&(this.pendingEOFill?(r.fill("evenodd"),this.pendingEOFill=!1):r.fill()),i&&r.restore(),t&&this.consumePath(a)}eoFill(){this.pendingEOFill=!0,this.fill()}fillStroke(){this.fill(!1),this.stroke(!1),this.consumePath()}eoFillStroke(){this.pendingEOFill=!0,this.fillStroke()}closeFillStroke(){this.closePath(),this.fillStroke()}closeEOFillStroke(){this.pendingEOFill=!0,this.closePath(),this.fillStroke()}endPath(){this.consumePath()}clip(){this.pendingClip=h0t}eoClip(){this.pendingClip=oJ}beginText(){this.current.textMatrix=Uge,this.current.textMatrixScale=1,this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0}endText(){const t=this.pendingTextPaths,r=this.ctx;if(t===void 0){r.beginPath();return}r.save(),r.beginPath();for(const n of t)r.setTransform(...n.transform),r.translate(n.x,n.y),n.addToPath(r,n.fontSize);r.restore(),r.clip(),r.beginPath(),delete this.pendingTextPaths}setCharSpacing(t){this.current.charSpacing=t}setWordSpacing(t){this.current.wordSpacing=t}setHScale(t){this.current.textHScale=t/100}setLeading(t){this.current.leading=-t}setFont(t,r){const n=this.commonObjs.get(t),o=this.current;if(!n)throw new Error(`Can't find font for ${t}`);if(o.fontMatrix=n.fontMatrix||ij,(o.fontMatrix[0]===0||o.fontMatrix[3]===0)&&Xr("Invalid font matrix for font "+t),r<0?(r=-r,o.fontDirection=-1):o.fontDirection=1,this.current.font=n,this.current.fontSize=r,n.isType3Font)return;const i=n.loadedName||"sans-serif",a=n.systemFontInfo?.css||`"${i}", ${n.fallbackName}`;let l="normal";n.black?l="900":n.bold&&(l="bold");const d=n.italic?"italic":"normal";let u=r;r<KX?u=KX:r>QX&&(u=QX),this.current.fontSizeScale=r/u,this.ctx.font=`${d} ${l} ${u}px ${a}`}setTextRenderingMode(t){this.current.textRenderingMode=t}setTextRise(t){this.current.textRise=t}moveText(t,r){this.current.x=this.current.lineX+=t,this.current.y=this.current.lineY+=r}setLeadingMoveText(t,r){this.setLeading(-r),this.moveText(t,r)}setTextMatrix(t,r,n,o,i,a){this.current.textMatrix=[t,r,n,o,i,a],this.current.textMatrixScale=Math.hypot(t,r),this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0}nextLine(){this.moveText(0,this.current.leading)}paintChar(t,r,n,o){const i=this.ctx,a=this.current,l=a.font,d=a.textRenderingMode,u=a.fontSize/a.fontSizeScale,p=d&va.FILL_STROKE_MASK,h=!!(d&va.ADD_TO_PATH_FLAG),f=a.patternFill&&!l.missingFile;let g;(l.disableFontFace||h||f)&&(g=l.getPathGenerator(this.commonObjs,t)),l.disableFontFace||f?(i.save(),i.translate(r,n),i.beginPath(),g(i,u),o&&i.setTransform(...o),(p===va.FILL||p===va.FILL_STROKE)&&i.fill(),(p===va.STROKE||p===va.FILL_STROKE)&&i.stroke(),i.restore()):((p===va.FILL||p===va.FILL_STROKE)&&i.fillText(t,r,n),(p===va.STROKE||p===va.FILL_STROKE)&&i.strokeText(t,r,n)),h&&(this.pendingTextPaths||=[]).push({transform:Po(i),x:r,y:n,fontSize:u,addToPath:g})}get isFontSubpixelAAEnabled(){const{context:t}=this.cachedCanvases.getCanvas("isFontSubpixelAAEnabled",10,10);t.scale(1.5,1),t.fillText("I",0,10);const r=t.getImageData(0,0,10,10).data;let n=!1;for(let o=3;o<r.length;o+=4)if(r[o]>0&&r[o]<255){n=!0;break}return bn(this,"isFontSubpixelAAEnabled",n)}showText(t){const r=this.current,n=r.font;if(n.isType3Font)return this.showType3Text(t);const o=r.fontSize;if(o===0)return;const i=this.ctx,a=r.fontSizeScale,l=r.charSpacing,d=r.wordSpacing,u=r.fontDirection,p=r.textHScale*u,h=t.length,f=n.vertical,g=f?1:-1,y=n.defaultVMetrics,v=o*r.fontMatrix[0],w=r.textRenderingMode===va.FILL&&!n.disableFontFace&&!r.patternFill;i.save(),i.transform(...r.textMatrix),i.translate(r.x,r.y+r.textRise),u>0?i.scale(p,-1):i.scale(p,1);let x;if(r.patternFill){i.save();const E=r.fillColor.getPattern(i,this,gu(i),Wa.FILL);x=Po(i),i.restore(),i.fillStyle=E}let $=r.lineWidth;const S=r.textMatrixScale;if(S===0||$===0){const E=r.textRenderingMode&va.FILL_STROKE_MASK;(E===va.STROKE||E===va.FILL_STROKE)&&($=this.getSinglePixelWidth())}else $/=S;if(a!==1&&(i.scale(a,a),$/=a),i.lineWidth=$,n.isInvalidPDFjsFont){const E=[];let A=0;for(const P of t)E.push(P.unicode),A+=P.width;i.fillText(E.join(""),0,0),r.x+=A*v*p,i.restore(),this.compose();return}let k=0,T;for(T=0;T<h;++T){const E=t[T];if(typeof E=="number"){k+=g*E*o/1e3;continue}let A=!1;const P=(E.isSpace?d:0)+l,D=E.fontChar,O=E.accent;let V,j,q=E.width;if(f){const F=E.vmetric||y,H=-(E.vmetric?F[1]:q*.5)*v,I=F[2]*v;q=F?-F[0]:q,V=H/a,j=(k+I)/a}else V=k/a,j=0;if(n.remeasure&&q>0){const F=i.measureText(D).width*1e3/o*a;if(q<F&&this.isFontSubpixelAAEnabled){const H=q/F;A=!0,i.save(),i.scale(H,1),V/=H}else q!==F&&(V+=(q-F)/2e3*o/a)}if(this.contentVisible&&(E.isInFont||n.missingFile)){if(w&&!O)i.fillText(D,V,j);else if(this.paintChar(D,V,j,x),O){const F=V+o*O.offset.x/a,H=j-o*O.offset.y/a;this.paintChar(O.fontChar,F,H,x)}}const W=f?q*v-P*u:q*v+P*u;k+=W,A&&i.restore()}f?r.y-=k:r.x+=k*p,i.restore(),this.compose()}showType3Text(t){const r=this.ctx,n=this.current,o=n.font,i=n.fontSize,a=n.fontDirection,l=o.vertical?1:-1,d=n.charSpacing,u=n.wordSpacing,p=n.textHScale*a,h=n.fontMatrix||ij,f=t.length,g=n.textRenderingMode===va.INVISIBLE;let y,v,w,x;if(!(g||i===0)){for(this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null,r.save(),r.transform(...n.textMatrix),r.translate(n.x,n.y),r.scale(p,a),y=0;y<f;++y){if(v=t[y],typeof v=="number"){x=l*v*i/1e3,this.ctx.translate(x,0),n.x+=x*p;continue}const $=(v.isSpace?u:0)+d,S=o.charProcOperatorList[v.operatorListId];if(!S){Xr(`Type3 character "${v.operatorListId}" is not available.`);continue}this.contentVisible&&(this.processingType3=v,this.save(),r.scale(i,i),r.transform(...h),this.executeOperatorList(S),this.restore()),w=ar.applyTransform([v.width,0],h)[0]*i+$,r.translate(w,0),n.x+=w*p}r.restore(),this.processingType3=null}}setCharWidth(t,r){}setCharWidthAndBounds(t,r,n,o,i,a){this.ctx.rect(n,o,i-n,a-o),this.ctx.clip(),this.endPath()}getColorN_Pattern(t){let r;if(t[0]==="TilingPattern"){const n=t[1],o=this.baseTransform||Po(this.ctx),i={createCanvasGraphics:a=>new _f(a,this.commonObjs,this.objs,this.canvasFactory,this.filterFactory,{optionalContentConfig:this.optionalContentConfig,markedContentStack:this.markedContentStack})};r=new rN(t,n,this.ctx,i,o)}else r=this._getPattern(t[1],t[2]);return r}setStrokeColorN(){this.current.strokeColor=this.getColorN_Pattern(arguments)}setFillColorN(){this.current.fillColor=this.getColorN_Pattern(arguments),this.current.patternFill=!0}setStrokeRGBColor(t,r,n){const o=ar.makeHexColor(t,r,n);this.ctx.strokeStyle=o,this.current.strokeColor=o}setFillRGBColor(t,r,n){const o=ar.makeHexColor(t,r,n);this.ctx.fillStyle=o,this.current.fillColor=o,this.current.patternFill=!1}_getPattern(t,r=null){let n;return this.cachedPatterns.has(t)?n=this.cachedPatterns.get(t):(n=i0t(this.getObject(t)),this.cachedPatterns.set(t,n)),r&&(n.matrix=r),n}shadingFill(t){if(!this.contentVisible)return;const r=this.ctx;this.save();const n=this._getPattern(t);r.fillStyle=n.getPattern(r,this,gu(r),Wa.SHADING);const o=gu(r);if(o){const{width:i,height:a}=r.canvas,[l,d,u,p]=ar.getAxialAlignedBoundingBox([0,0,i,a],o);this.ctx.fillRect(l,d,u-l,p-d)}else this.ctx.fillRect(-1e10,-1e10,2e10,2e10);this.compose(this.current.getClippedPathBoundingBox()),this.restore()}beginInlineImage(){to("Should not call beginInlineImage")}beginImageData(){to("Should not call beginImageData")}paintFormXObjectBegin(t,r){if(this.contentVisible&&(this.save(),this.baseTransformStack.push(this.baseTransform),t&&this.transform(...t),this.baseTransform=Po(this.ctx),r)){const n=r[2]-r[0],o=r[3]-r[1];this.ctx.rect(r[0],r[1],n,o),this.current.updateRectMinMax(Po(this.ctx),r),this.clip(),this.endPath()}}paintFormXObjectEnd(){this.contentVisible&&(this.restore(),this.baseTransform=this.baseTransformStack.pop())}beginGroup(t){if(!this.contentVisible)return;this.save(),this.inSMaskMode&&(this.endSMaskMode(),this.current.activeSMask=null);const r=this.ctx;t.isolated||Sx("TODO: Support non-isolated groups."),t.knockout&&Xr("Knockout groups not supported.");const n=Po(r);if(t.matrix&&r.transform(...t.matrix),!t.bbox)throw new Error("Bounding box is required.");let o=ar.getAxialAlignedBoundingBox(t.bbox,Po(r));const i=[0,0,r.canvas.width,r.canvas.height];o=ar.intersect(o,i)||[0,0,0,0];const a=Math.floor(o[0]),l=Math.floor(o[1]),d=Math.max(Math.ceil(o[2])-a,1),u=Math.max(Math.ceil(o[3])-l,1);this.current.startNewPathAndClipBox([0,0,d,u]);let p="groupAt"+this.groupLevel;t.smask&&(p+="_smask_"+this.smaskCounter++%2);const h=this.cachedCanvases.getCanvas(p,d,u),f=h.context;f.translate(-a,-l),f.transform(...n),t.smask?this.smaskStack.push({canvas:h.canvas,context:f,offsetX:a,offsetY:l,subtype:t.smask.subtype,backdrop:t.smask.backdrop,transferMap:t.smask.transferMap||null,startTransformInverse:null}):(r.setTransform(1,0,0,1,0,0),r.translate(a,l),r.save()),W4(r,f),this.ctx=f,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(r),this.groupLevel++}endGroup(t){if(!this.contentVisible)return;this.groupLevel--;const r=this.ctx,n=this.groupStack.pop();if(this.ctx=n,this.ctx.imageSmoothingEnabled=!1,t.smask)this.tempSMask=this.smaskStack.pop(),this.restore();else{this.ctx.restore();const o=Po(this.ctx);this.restore(),this.ctx.save(),this.ctx.setTransform(...o);const i=ar.getAxialAlignedBoundingBox([0,0,r.canvas.width,r.canvas.height],o);this.ctx.drawImage(r.canvas,0,0),this.ctx.restore(),this.compose(i)}}beginAnnotation(t,r,n,o,i){if(this.#e(),j9(this.ctx),this.ctx.save(),this.save(),this.baseTransform&&this.ctx.setTransform(...this.baseTransform),r){const a=r[2]-r[0],l=r[3]-r[1];if(i&&this.annotationCanvasMap){n=n.slice(),n[4]-=r[0],n[5]-=r[1],r=r.slice(),r[0]=r[1]=0,r[2]=a,r[3]=l;const[d,u]=ar.singularValueDecompose2dScale(Po(this.ctx)),{viewportScale:p}=this,h=Math.ceil(a*this.outputScaleX*p),f=Math.ceil(l*this.outputScaleY*p);this.annotationCanvas=this.canvasFactory.create(h,f);const{canvas:g,context:y}=this.annotationCanvas;this.annotationCanvasMap.set(t,g),this.annotationCanvas.savedCtx=this.ctx,this.ctx=y,this.ctx.save(),this.ctx.setTransform(d,0,0,-u,0,l*u),j9(this.ctx)}else j9(this.ctx),this.ctx.rect(r[0],r[1],a,l),this.ctx.clip(),this.endPath()}this.current=new eJ(this.ctx.canvas.width,this.ctx.canvas.height),this.transform(...n),this.transform(...o)}endAnnotation(){this.annotationCanvas&&(this.ctx.restore(),this.#t(),this.ctx=this.annotationCanvas.savedCtx,delete this.annotationCanvas.savedCtx,delete this.annotationCanvas)}paintImageMaskXObject(t){if(!this.contentVisible)return;const r=t.count;t=this.getObject(t.data,t),t.count=r;const n=this.ctx,o=this.processingType3;if(o&&(o.compiled===void 0&&(o.compiled=d0t(t)),o.compiled)){o.compiled(n);return}const i=this._createMaskCanvas(t),a=i.canvas;n.save(),n.setTransform(1,0,0,1,0,0),n.drawImage(a,i.offsetX,i.offsetY),n.restore(),this.compose()}paintImageMaskXObjectRepeat(t,r,n=0,o=0,i,a){if(!this.contentVisible)return;t=this.getObject(t.data,t);const l=this.ctx;l.save();const d=Po(l);l.transform(r,n,o,i,0,0);const u=this._createMaskCanvas(t);l.setTransform(1,0,0,1,u.offsetX-d[4],u.offsetY-d[5]);for(let p=0,h=a.length;p<h;p+=2){const f=ar.transform(d,[r,n,o,i,a[p],a[p+1]]),[g,y]=ar.applyTransform([0,0],f);l.drawImage(u.canvas,g,y)}l.restore(),this.compose()}paintImageMaskXObjectGroup(t){if(!this.contentVisible)return;const r=this.ctx,n=this.current.fillColor,o=this.current.patternFill;for(const i of t){const{data:a,width:l,height:d,transform:u}=i,p=this.cachedCanvases.getCanvas("maskCanvas",l,d),h=p.context;h.save();const f=this.getObject(a,i);rJ(h,f),h.globalCompositeOperation="source-in",h.fillStyle=o?n.getPattern(h,this,gu(r),Wa.FILL):n,h.fillRect(0,0,l,d),h.restore(),r.save(),r.transform(...u),r.scale(1,-1),I9(r,p.canvas,0,0,l,d,0,-1,1,1),r.restore()}this.compose()}paintImageXObject(t){if(!this.contentVisible)return;const r=this.getObject(t);if(!r){Xr("Dependent image isn't ready yet");return}this.paintInlineImageXObject(r)}paintImageXObjectRepeat(t,r,n,o){if(!this.contentVisible)return;const i=this.getObject(t);if(!i){Xr("Dependent image isn't ready yet");return}const a=i.width,l=i.height,d=[];for(let u=0,p=o.length;u<p;u+=2)d.push({transform:[r,0,0,n,o[u],o[u+1]],x:0,y:0,w:a,h:l});this.paintInlineImageXObjectGroup(i,d)}applyTransferMapsToCanvas(t){return this.current.transferMaps!=="none"&&(t.filter=this.current.transferMaps,t.drawImage(t.canvas,0,0),t.filter="none"),t.canvas}applyTransferMapsToBitmap(t){if(this.current.transferMaps==="none")return t.bitmap;const{bitmap:r,width:n,height:o}=t,i=this.cachedCanvases.getCanvas("inlineImage",n,o),a=i.context;return a.filter=this.current.transferMaps,a.drawImage(r,0,0),a.filter="none",i.canvas}paintInlineImageXObject(t){if(!this.contentVisible)return;const r=t.width,n=t.height,o=this.ctx;if(this.save(),!ka){const{filter:l}=o;l!=="none"&&l!==""&&(o.filter="none")}o.scale(1/r,-1/n);let i;if(t.bitmap)i=this.applyTransferMapsToBitmap(t);else if(typeof HTMLElement=="function"&&t instanceof HTMLElement||!t.data)i=t;else{const d=this.cachedCanvases.getCanvas("inlineImage",r,n).context;tJ(d,t),i=this.applyTransferMapsToCanvas(d)}const a=this._scaleImage(i,gu(o));o.imageSmoothingEnabled=nJ(Po(o),t.interpolate),I9(o,a.img,0,0,a.paintWidth,a.paintHeight,0,-n,r,n),this.compose(),this.restore()}paintInlineImageXObjectGroup(t,r){if(!this.contentVisible)return;const n=this.ctx;let o;if(t.bitmap)o=t.bitmap;else{const i=t.width,a=t.height,d=this.cachedCanvases.getCanvas("inlineImage",i,a).context;tJ(d,t),o=this.applyTransferMapsToCanvas(d)}for(const i of r)n.save(),n.transform(...i.transform),n.scale(1,-1),I9(n,o,i.x,i.y,i.w,i.h,0,-1,1,1),n.restore();this.compose()}paintSolidColorImageMask(){this.contentVisible&&(this.ctx.fillRect(0,0,1,1),this.compose())}markPoint(t){}markPointProps(t,r){}beginMarkedContent(t){this.markedContentStack.push({visible:!0})}beginMarkedContentProps(t,r){t==="OC"?this.markedContentStack.push({visible:this.optionalContentConfig.isVisible(r)}):this.markedContentStack.push({visible:!0}),this.contentVisible=this.isContentVisible()}endMarkedContent(){this.markedContentStack.pop(),this.contentVisible=this.isContentVisible()}beginCompat(){}endCompat(){}consumePath(t){const r=this.current.isEmptyClip();this.pendingClip&&this.current.updateClipFromPath(),this.pendingClip||this.compose(t);const n=this.ctx;this.pendingClip&&(r||(this.pendingClip===oJ?n.clip("evenodd"):n.clip()),this.pendingClip=null),this.current.startNewPathAndClipBox(this.current.clipBox),n.beginPath()}getSinglePixelWidth(){if(!this._cachedGetSinglePixelWidth){const t=Po(this.ctx);if(t[1]===0&&t[2]===0)this._cachedGetSinglePixelWidth=1/Math.min(Math.abs(t[0]),Math.abs(t[3]));else{const r=Math.abs(t[0]*t[3]-t[2]*t[1]),n=Math.hypot(t[0],t[2]),o=Math.hypot(t[1],t[3]);this._cachedGetSinglePixelWidth=Math.max(n,o)/r}}return this._cachedGetSinglePixelWidth}getScaleForStroking(){if(this._cachedScaleForStroking[0]===-1){const{lineWidth:t}=this.current,{a:r,b:n,c:o,d:i}=this.ctx.getTransform();let a,l;if(n===0&&o===0){const d=Math.abs(r),u=Math.abs(i);if(d===u)if(t===0)a=l=1/d;else{const p=d*t;a=l=p<1?1/p:1}else if(t===0)a=1/d,l=1/u;else{const p=d*t,h=u*t;a=p<1?1/p:1,l=h<1?1/h:1}}else{const d=Math.abs(r*i-n*o),u=Math.hypot(r,n),p=Math.hypot(o,i);if(t===0)a=p/d,l=u/d;else{const h=t*d;a=p>h?p/h:1,l=u>h?u/h:1}}this._cachedScaleForStroking[0]=a,this._cachedScaleForStroking[1]=l}return this._cachedScaleForStroking}rescaleAndStroke(t){const{ctx:r}=this,{lineWidth:n}=this.current,[o,i]=this.getScaleForStroking();if(r.lineWidth=n||1,o===1&&i===1){r.stroke();return}const a=r.getLineDash();if(t&&r.save(),r.scale(o,i),a.length>0){const l=Math.max(o,i);r.setLineDash(a.map(d=>d/l)),r.lineDashOffset/=l}r.stroke(),t&&r.restore()}isContentVisible(){for(let t=this.markedContentStack.length-1;t>=0;t--)if(!this.markedContentStack[t].visible)return!1;return!0}}for(const e in kc)_f.prototype[e]!==void 0&&(_f.prototype[kc[e]]=_f.prototype[e]);class A7{static#e=null;static#t="";static get workerPort(){return this.#e}static set workerPort(t){if(!(typeof Worker<"u"&&t instanceof Worker)&&t!==null)throw new Error("Invalid `workerPort` type.");this.#e=t}static get workerSrc(){return this.#t}static set workerSrc(t){if(typeof t!="string")throw new Error("Invalid `workerSrc` type.");this.#t=t}}const R9={DATA:1,ERROR:2},si={CANCEL:1,CANCEL_COMPLETE:2,CLOSE:3,ENQUEUE:4,ERROR:5,PULL:6,PULL_COMPLETE:7,START_COMPLETE:8};function Rs(e){switch(e instanceof Error||typeof e=="object"&&e!==null||to('wrapReason: Expected "reason" to be a (possibly cloned) Error.'),e.name){case"AbortException":return new Am(e.message);case"MissingPDFException":return new Tm(e.message);case"PasswordException":return new sj(e.message,e.code);case"UnexpectedResponseException":return new kx(e.message,e.status);case"UnknownErrorException":return new lj(e.message,e.details);default:return new lj(e.message,e.toString())}}class O5{constructor(t,r,n){this.sourceName=t,this.targetName=r,this.comObj=n,this.callbackId=1,this.streamId=1,this.streamSinks=Object.create(null),this.streamControllers=Object.create(null),this.callbackCapabilities=Object.create(null),this.actionHandler=Object.create(null),this._onComObjOnMessage=o=>{const i=o.data;if(i.targetName!==this.sourceName)return;if(i.stream){this.#t(i);return}if(i.callback){const l=i.callbackId,d=this.callbackCapabilities[l];if(!d)throw new Error(`Cannot resolve callback ${l}`);if(delete this.callbackCapabilities[l],i.callback===R9.DATA)d.resolve(i.data);else if(i.callback===R9.ERROR)d.reject(Rs(i.reason));else throw new Error("Unexpected callback case");return}const a=this.actionHandler[i.action];if(!a)throw new Error(`Unknown action from worker: ${i.action}`);if(i.callbackId){const l=this.sourceName,d=i.sourceName;new Promise(function(u){u(a(i.data))}).then(function(u){n.postMessage({sourceName:l,targetName:d,callback:R9.DATA,callbackId:i.callbackId,data:u})},function(u){n.postMessage({sourceName:l,targetName:d,callback:R9.ERROR,callbackId:i.callbackId,reason:Rs(u)})});return}if(i.streamId){this.#e(i);return}a(i.data)},n.addEventListener("message",this._onComObjOnMessage)}on(t,r){const n=this.actionHandler;if(n[t])throw new Error(`There is already an actionName called "${t}"`);n[t]=r}send(t,r,n){this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:t,data:r},n)}sendWithPromise(t,r,n){const o=this.callbackId++,i=Promise.withResolvers();this.callbackCapabilities[o]=i;try{this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:t,callbackId:o,data:r},n)}catch(a){i.reject(a)}return i.promise}sendWithStream(t,r,n,o){const i=this.streamId++,a=this.sourceName,l=this.targetName,d=this.comObj;return new ReadableStream({start:u=>{const p=Promise.withResolvers();return this.streamControllers[i]={controller:u,startCall:p,pullCall:null,cancelCall:null,isClosed:!1},d.postMessage({sourceName:a,targetName:l,action:t,streamId:i,data:r,desiredSize:u.desiredSize},o),p.promise},pull:u=>{const p=Promise.withResolvers();return this.streamControllers[i].pullCall=p,d.postMessage({sourceName:a,targetName:l,stream:si.PULL,streamId:i,desiredSize:u.desiredSize}),p.promise},cancel:u=>{Li(u instanceof Error,"cancel must have a valid reason");const p=Promise.withResolvers();return this.streamControllers[i].cancelCall=p,this.streamControllers[i].isClosed=!0,d.postMessage({sourceName:a,targetName:l,stream:si.CANCEL,streamId:i,reason:Rs(u)}),p.promise}},n)}#e(t){const r=t.streamId,n=this.sourceName,o=t.sourceName,i=this.comObj,a=this,l=this.actionHandler[t.action],d={enqueue(u,p=1,h){if(this.isCancelled)return;const f=this.desiredSize;this.desiredSize-=p,f>0&&this.desiredSize<=0&&(this.sinkCapability=Promise.withResolvers(),this.ready=this.sinkCapability.promise),i.postMessage({sourceName:n,targetName:o,stream:si.ENQUEUE,streamId:r,chunk:u},h)},close(){this.isCancelled||(this.isCancelled=!0,i.postMessage({sourceName:n,targetName:o,stream:si.CLOSE,streamId:r}),delete a.streamSinks[r])},error(u){Li(u instanceof Error,"error must have a valid reason"),!this.isCancelled&&(this.isCancelled=!0,i.postMessage({sourceName:n,targetName:o,stream:si.ERROR,streamId:r,reason:Rs(u)}))},sinkCapability:Promise.withResolvers(),onPull:null,onCancel:null,isCancelled:!1,desiredSize:t.desiredSize,ready:null};d.sinkCapability.resolve(),d.ready=d.sinkCapability.promise,this.streamSinks[r]=d,new Promise(function(u){u(l(t.data,d))}).then(function(){i.postMessage({sourceName:n,targetName:o,stream:si.START_COMPLETE,streamId:r,success:!0})},function(u){i.postMessage({sourceName:n,targetName:o,stream:si.START_COMPLETE,streamId:r,reason:Rs(u)})})}#t(t){const r=t.streamId,n=this.sourceName,o=t.sourceName,i=this.comObj,a=this.streamControllers[r],l=this.streamSinks[r];switch(t.stream){case si.START_COMPLETE:t.success?a.startCall.resolve():a.startCall.reject(Rs(t.reason));break;case si.PULL_COMPLETE:t.success?a.pullCall.resolve():a.pullCall.reject(Rs(t.reason));break;case si.PULL:if(!l){i.postMessage({sourceName:n,targetName:o,stream:si.PULL_COMPLETE,streamId:r,success:!0});break}l.desiredSize<=0&&t.desiredSize>0&&l.sinkCapability.resolve(),l.desiredSize=t.desiredSize,new Promise(function(d){d(l.onPull?.())}).then(function(){i.postMessage({sourceName:n,targetName:o,stream:si.PULL_COMPLETE,streamId:r,success:!0})},function(d){i.postMessage({sourceName:n,targetName:o,stream:si.PULL_COMPLETE,streamId:r,reason:Rs(d)})});break;case si.ENQUEUE:if(Li(a,"enqueue should have stream controller"),a.isClosed)break;a.controller.enqueue(t.chunk);break;case si.CLOSE:if(Li(a,"close should have stream controller"),a.isClosed)break;a.isClosed=!0,a.controller.close(),this.#r(a,r);break;case si.ERROR:Li(a,"error should have stream controller"),a.controller.error(Rs(t.reason)),this.#r(a,r);break;case si.CANCEL_COMPLETE:t.success?a.cancelCall.resolve():a.cancelCall.reject(Rs(t.reason)),this.#r(a,r);break;case si.CANCEL:if(!l)break;new Promise(function(d){d(l.onCancel?.(Rs(t.reason)))}).then(function(){i.postMessage({sourceName:n,targetName:o,stream:si.CANCEL_COMPLETE,streamId:r,success:!0})},function(d){i.postMessage({sourceName:n,targetName:o,stream:si.CANCEL_COMPLETE,streamId:r,reason:Rs(d)})}),l.sinkCapability.reject(Rs(t.reason)),l.isCancelled=!0,delete this.streamSinks[r];break;default:throw new Error("Unexpected stream case")}}async#r(t,r){await Promise.allSettled([t.startCall?.promise,t.pullCall?.promise,t.cancelCall?.promise]),delete this.streamControllers[r]}destroy(){this.comObj.removeEventListener("message",this._onComObjOnMessage)}}class m0t{#e;#t;constructor({parsedData:t,rawData:r}){this.#e=t,this.#t=r}getRaw(){return this.#t}get(t){return this.#e.get(t)??null}getAll(){return WF(this.#e)}has(t){return this.#e.has(t)}}const V2=Symbol("INTERNAL");class f0t{#e=!1;#t=!1;#r=!1;#o=!0;constructor(t,{name:r,intent:n,usage:o}){this.#e=!!(t&Sl.DISPLAY),this.#t=!!(t&Sl.PRINT),this.name=r,this.intent=n,this.usage=o}get visible(){if(this.#r)return this.#o;if(!this.#o)return!1;const{print:t,view:r}=this.usage;return this.#e?r?.viewState!=="OFF":this.#t?t?.printState!=="OFF":!0}_setVisible(t,r,n=!1){t!==V2&&to("Internal method `_setVisible` called."),this.#r=n,this.#o=r}}class g0t{#e=null;#t=new Map;#r=null;#o=null;constructor(t,r=Sl.DISPLAY){if(this.renderingIntent=r,this.name=null,this.creator=null,t!==null){this.name=t.name,this.creator=t.creator,this.#o=t.order;for(const n of t.groups)this.#t.set(n.id,new f0t(r,n));if(t.baseState==="OFF")for(const n of this.#t.values())n._setVisible(V2,!1);for(const n of t.on)this.#t.get(n)._setVisible(V2,!0);for(const n of t.off)this.#t.get(n)._setVisible(V2,!1);this.#r=this.getHash()}}#s(t){const r=t.length;if(r<2)return!0;const n=t[0];for(let o=1;o<r;o++){const i=t[o];let a;if(Array.isArray(i))a=this.#s(i);else if(this.#t.has(i))a=this.#t.get(i).visible;else return Xr(`Optional content group not found: ${i}`),!0;switch(n){case"And":if(!a)return!1;break;case"Or":if(a)return!0;break;case"Not":return!a;default:return!0}}return n==="And"}isVisible(t){if(this.#t.size===0)return!0;if(!t)return Sx("Optional content group not defined."),!0;if(t.type==="OCG")return this.#t.has(t.id)?this.#t.get(t.id).visible:(Xr(`Optional content group not found: ${t.id}`),!0);if(t.type==="OCMD"){if(t.expression)return this.#s(t.expression);if(!t.policy||t.policy==="AnyOn"){for(const r of t.ids){if(!this.#t.has(r))return Xr(`Optional content group not found: ${r}`),!0;if(this.#t.get(r).visible)return!0}return!1}else if(t.policy==="AllOn"){for(const r of t.ids){if(!this.#t.has(r))return Xr(`Optional content group not found: ${r}`),!0;if(!this.#t.get(r).visible)return!1}return!0}else if(t.policy==="AnyOff"){for(const r of t.ids){if(!this.#t.has(r))return Xr(`Optional content group not found: ${r}`),!0;if(!this.#t.get(r).visible)return!0}return!1}else if(t.policy==="AllOff"){for(const r of t.ids){if(!this.#t.has(r))return Xr(`Optional content group not found: ${r}`),!0;if(this.#t.get(r).visible)return!1}return!0}return Xr(`Unknown optional content policy ${t.policy}.`),!0}return Xr(`Unknown group type ${t.type}.`),!0}setVisibility(t,r=!0){const n=this.#t.get(t);if(!n){Xr(`Optional content group not found: ${t}`);return}n._setVisible(V2,!!r,!0),this.#e=null}setOCGState({state:t,preserveRB:r}){let n;for(const o of t){switch(o){case"ON":case"OFF":case"Toggle":n=o;continue}const i=this.#t.get(o);if(i)switch(n){case"ON":i._setVisible(V2,!0);break;case"OFF":i._setVisible(V2,!1);break;case"Toggle":i._setVisible(V2,!i.visible);break}}this.#e=null}get hasInitialVisibility(){return this.#r===null||this.getHash()===this.#r}getOrder(){return this.#t.size?this.#o?this.#o.slice():[...this.#t.keys()]:null}getGroups(){return this.#t.size>0?WF(this.#t):null}getGroup(t){return this.#t.get(t)||null}getHash(){if(this.#e!==null)return this.#e;const t=new Xge;for(const[r,n]of this.#t)t.update(`${r}:${n.visible}`);return this.#e=t.hexdigest()}}class y0t{constructor(t,{disableRange:r=!1,disableStream:n=!1}){Li(t,'PDFDataTransportStream - missing required "pdfDataRangeTransport" argument.');const{length:o,initialData:i,progressiveDone:a,contentDispositionFilename:l}=t;if(this._queuedChunks=[],this._progressiveDone=a,this._contentDispositionFilename=l,i?.length>0){const d=i instanceof Uint8Array&&i.byteLength===i.buffer.byteLength?i.buffer:new Uint8Array(i).buffer;this._queuedChunks.push(d)}this._pdfDataRangeTransport=t,this._isStreamingSupported=!n,this._isRangeSupported=!r,this._contentLength=o,this._fullRequestReader=null,this._rangeReaders=[],t.addRangeListener((d,u)=>{this._onReceiveData({begin:d,chunk:u})}),t.addProgressListener((d,u)=>{this._onProgress({loaded:d,total:u})}),t.addProgressiveReadListener(d=>{this._onReceiveData({chunk:d})}),t.addProgressiveDoneListener(()=>{this._onProgressiveDone()}),t.transportReady()}_onReceiveData({begin:t,chunk:r}){const n=r instanceof Uint8Array&&r.byteLength===r.buffer.byteLength?r.buffer:new Uint8Array(r).buffer;if(t===void 0)this._fullRequestReader?this._fullRequestReader._enqueue(n):this._queuedChunks.push(n);else{const o=this._rangeReaders.some(function(i){return i._begin!==t?!1:(i._enqueue(n),!0)});Li(o,"_onReceiveData - no `PDFDataTransportStreamRangeReader` instance found.")}}get _progressiveDataLength(){return this._fullRequestReader?._loaded??0}_onProgress(t){t.total===void 0?this._rangeReaders[0]?.onProgress?.({loaded:t.loaded}):this._fullRequestReader?.onProgress?.({loaded:t.loaded,total:t.total})}_onProgressiveDone(){this._fullRequestReader?.progressiveDone(),this._progressiveDone=!0}_removeRangeReader(t){const r=this._rangeReaders.indexOf(t);r>=0&&this._rangeReaders.splice(r,1)}getFullReader(){Li(!this._fullRequestReader,"PDFDataTransportStream.getFullReader can only be called once.");const t=this._queuedChunks;return this._queuedChunks=null,new v0t(this,t,this._progressiveDone,this._contentDispositionFilename)}getRangeReader(t,r){if(r<=this._progressiveDataLength)return null;const n=new b0t(this,t,r);return this._pdfDataRangeTransport.requestDataRange(t,r),this._rangeReaders.push(n),n}cancelAllRequests(t){this._fullRequestReader?.cancel(t);for(const r of this._rangeReaders.slice(0))r.cancel(t);this._pdfDataRangeTransport.abort()}}class v0t{constructor(t,r,n=!1,o=null){this._stream=t,this._done=n||!1,this._filename=KF(o)?o:null,this._queuedChunks=r||[],this._loaded=0;for(const i of this._queuedChunks)this._loaded+=i.byteLength;this._requests=[],this._headersReady=Promise.resolve(),t._fullRequestReader=this,this.onProgress=null}_enqueue(t){this._done||(this._requests.length>0?this._requests.shift().resolve({value:t,done:!1}):this._queuedChunks.push(t),this._loaded+=t.byteLength)}get headersReady(){return this._headersReady}get filename(){return this._filename}get isRangeSupported(){return this._stream._isRangeSupported}get isStreamingSupported(){return this._stream._isStreamingSupported}get contentLength(){return this._stream._contentLength}async read(){if(this._queuedChunks.length>0)return{value:this._queuedChunks.shift(),done:!1};if(this._done)return{value:void 0,done:!0};const t=Promise.withResolvers();return this._requests.push(t),t.promise}cancel(t){this._done=!0;for(const r of this._requests)r.resolve({value:void 0,done:!0});this._requests.length=0}progressiveDone(){this._done||(this._done=!0)}}class b0t{constructor(t,r,n){this._stream=t,this._begin=r,this._end=n,this._queuedChunk=null,this._requests=[],this._done=!1,this.onProgress=null}_enqueue(t){if(!this._done){if(this._requests.length===0)this._queuedChunk=t;else{this._requests.shift().resolve({value:t,done:!1});for(const n of this._requests)n.resolve({value:void 0,done:!0});this._requests.length=0}this._done=!0,this._stream._removeRangeReader(this)}}get isStreamingSupported(){return!1}async read(){if(this._queuedChunk){const r=this._queuedChunk;return this._queuedChunk=null,{value:r,done:!1}}if(this._done)return{value:void 0,done:!0};const t=Promise.withResolvers();return this._requests.push(t),t.promise}cancel(t){this._done=!0;for(const r of this._requests)r.resolve({value:void 0,done:!0});this._requests.length=0,this._stream._removeRangeReader(this)}}function w0t(e){let t=!0,r=n("filename\\*","i").exec(e);if(r){r=r[1];let p=l(r);return p=unescape(p),p=d(p),p=u(p),i(p)}if(r=a(e),r){const p=u(r);return i(p)}if(r=n("filename","i").exec(e),r){r=r[1];let p=l(r);return p=u(p),i(p)}function n(p,h){return new RegExp("(?:^|;)\\s*"+p+'\\s*=\\s*([^";\\s][^;\\s]*|"(?:[^"\\\\]|\\\\"?)+"?)',h)}function o(p,h){if(p){if(!/^[\x00-\xFF]+$/.test(h))return h;try{const f=new TextDecoder(p,{fatal:!0}),g=Ex(h);h=f.decode(g),t=!1}catch{}}return h}function i(p){return t&&/[\x80-\xff]/.test(p)&&(p=o("utf-8",p),t&&(p=o("iso-8859-1",p))),p}function a(p){const h=[];let f;const g=n("filename\\*((?!0\\d)\\d+)(\\*?)","ig");for(;(f=g.exec(p))!==null;){let[,v,w,x]=f;if(v=parseInt(v,10),v in h){if(v===0)break;continue}h[v]=[w,x]}const y=[];for(let v=0;v<h.length&&v in h;++v){let[w,x]=h[v];x=l(x),w&&(x=unescape(x),v===0&&(x=d(x))),y.push(x)}return y.join("")}function l(p){if(p.startsWith('"')){const h=p.slice(1).split('\\"');for(let f=0;f<h.length;++f){const g=h[f].indexOf('"');g!==-1&&(h[f]=h[f].slice(0,g),h.length=f+1),h[f]=h[f].replaceAll(/\\(.)/g,"$1")}p=h.join('"')}return p}function d(p){const h=p.indexOf("'");if(h===-1)return p;const f=p.slice(0,h),y=p.slice(h+1).replace(/^[^']*'/,"");return o(f,y)}function u(p){return!p.startsWith("=?")||/[\x00-\x19\x80-\xff]/.test(p)?p:p.replaceAll(/=\?([\w-]*)\?([QqBb])\?((?:[^?]|\?(?!=))*)\?=/g,function(h,f,g,y){if(g==="q"||g==="Q")return y=y.replaceAll("_"," "),y=y.replaceAll(/=([0-9a-fA-F]{2})/g,function(v,w){return String.fromCharCode(parseInt(w,16))}),o(f,y);try{y=atob(y)}catch{}return o(f,y)})}return""}function nN({getResponseHeader:e,isHttp:t,rangeChunkSize:r,disableRange:n}){const o={allowRangeRequests:!1,suggestedLength:void 0},i=parseInt(e("Content-Length"),10);return!Number.isInteger(i)||(o.suggestedLength=i,i<=2*r)||n||!t||e("Accept-Ranges")!=="bytes"||(e("Content-Encoding")||"identity")!=="identity"||(o.allowRangeRequests=!0),o}function oN(e){const t=e("Content-Disposition");if(t){let r=w0t(t);if(r.includes("%"))try{r=decodeURIComponent(r)}catch{}if(KF(r))return r}return null}function Mx(e,t){return e===404||e===0&&t.startsWith("file:")?new Tm('Missing PDF "'+t+'".'):new kx(`Unexpected server response (${e}) while retrieving PDF "${t}".`,e)}function t4e(e){return e===200||e===206}function r4e(e,t,r){return{method:"GET",headers:e,signal:r.signal,mode:"cors",credentials:t?"include":"same-origin",redirect:"follow"}}function n4e(e){const t=new Headers;for(const r in e){const n=e[r];n!==void 0&&t.append(r,n)}return t}function o4e(e){return e instanceof Uint8Array?e.buffer:e instanceof ArrayBuffer?e:(Xr(`getArrayBuffer - unexpected data format: ${e}`),new Uint8Array(e).buffer)}class iJ{constructor(t){this.source=t,this.isHttp=/^https?:/i.test(t.url),this.httpHeaders=this.isHttp&&t.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){return this._fullRequestReader?._loaded??0}getFullReader(){return Li(!this._fullRequestReader,"PDFFetchStream.getFullReader can only be called once."),this._fullRequestReader=new x0t(this),this._fullRequestReader}getRangeReader(t,r){if(r<=this._progressiveDataLength)return null;const n=new C0t(this,t,r);return this._rangeRequestReaders.push(n),n}cancelAllRequests(t){this._fullRequestReader?.cancel(t);for(const r of this._rangeRequestReaders.slice(0))r.cancel(t)}}class x0t{constructor(t){this._stream=t,this._reader=null,this._loaded=0,this._filename=null;const r=t.source;this._withCredentials=r.withCredentials||!1,this._contentLength=r.length,this._headersCapability=Promise.withResolvers(),this._disableRange=r.disableRange||!1,this._rangeChunkSize=r.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),this._abortController=new AbortController,this._isStreamingSupported=!r.disableStream,this._isRangeSupported=!r.disableRange,this._headers=n4e(this._stream.httpHeaders);const n=r.url;fetch(n,r4e(this._headers,this._withCredentials,this._abortController)).then(o=>{if(!t4e(o.status))throw Mx(o.status,n);this._reader=o.body.getReader(),this._headersCapability.resolve();const i=d=>o.headers.get(d),{allowRangeRequests:a,suggestedLength:l}=nN({getResponseHeader:i,isHttp:this._stream.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=a,this._contentLength=l||this._contentLength,this._filename=oN(i),!this._isStreamingSupported&&this._isRangeSupported&&this.cancel(new Am("Streaming is disabled."))}).catch(this._headersCapability.reject),this.onProgress=null}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}async read(){await this._headersCapability.promise;const{value:t,done:r}=await this._reader.read();return r?{value:t,done:r}:(this._loaded+=t.byteLength,this.onProgress?.({loaded:this._loaded,total:this._contentLength}),{value:o4e(t),done:!1})}cancel(t){this._reader?.cancel(t),this._abortController.abort()}}class C0t{constructor(t,r,n){this._stream=t,this._reader=null,this._loaded=0;const o=t.source;this._withCredentials=o.withCredentials||!1,this._readCapability=Promise.withResolvers(),this._isStreamingSupported=!o.disableStream,this._abortController=new AbortController,this._headers=n4e(this._stream.httpHeaders),this._headers.append("Range",`bytes=${r}-${n-1}`);const i=o.url;fetch(i,r4e(this._headers,this._withCredentials,this._abortController)).then(a=>{if(!t4e(a.status))throw Mx(a.status,i);this._readCapability.resolve(),this._reader=a.body.getReader()}).catch(this._readCapability.reject),this.onProgress=null}get isStreamingSupported(){return this._isStreamingSupported}async read(){await this._readCapability.promise;const{value:t,done:r}=await this._reader.read();return r?{value:t,done:r}:(this._loaded+=t.byteLength,this.onProgress?.({loaded:this._loaded}),{value:o4e(t),done:!1})}cancel(t){this._reader?.cancel(t),this._abortController.abort()}}const dL=200,uL=206;function $0t(e){const t=e.response;return typeof t!="string"?t:Ex(t).buffer}class S0t{constructor(t,r={}){this.url=t,this.isHttp=/^https?:/i.test(t),this.httpHeaders=this.isHttp&&r.httpHeaders||Object.create(null),this.withCredentials=r.withCredentials||!1,this.currXhrId=0,this.pendingRequests=Object.create(null)}requestRange(t,r,n){const o={begin:t,end:r};for(const i in n)o[i]=n[i];return this.request(o)}requestFull(t){return this.request(t)}request(t){const r=new XMLHttpRequest,n=this.currXhrId++,o=this.pendingRequests[n]={xhr:r};r.open("GET",this.url),r.withCredentials=this.withCredentials;for(const i in this.httpHeaders){const a=this.httpHeaders[i];a!==void 0&&r.setRequestHeader(i,a)}return this.isHttp&&"begin"in t&&"end"in t?(r.setRequestHeader("Range",`bytes=${t.begin}-${t.end-1}`),o.expectedStatus=uL):o.expectedStatus=dL,r.responseType="arraybuffer",t.onError&&(r.onerror=function(i){t.onError(r.status)}),r.onreadystatechange=this.onStateChange.bind(this,n),r.onprogress=this.onProgress.bind(this,n),o.onHeadersReceived=t.onHeadersReceived,o.onDone=t.onDone,o.onError=t.onError,o.onProgress=t.onProgress,r.send(null),n}onProgress(t,r){const n=this.pendingRequests[t];n&&n.onProgress?.(r)}onStateChange(t,r){const n=this.pendingRequests[t];if(!n)return;const o=n.xhr;if(o.readyState>=2&&n.onHeadersReceived&&(n.onHeadersReceived(),delete n.onHeadersReceived),o.readyState!==4||!(t in this.pendingRequests))return;if(delete this.pendingRequests[t],o.status===0&&this.isHttp){n.onError?.(o.status);return}const i=o.status||dL;if(!(i===dL&&n.expectedStatus===uL)&&i!==n.expectedStatus){n.onError?.(o.status);return}const l=$0t(o);if(i===uL){const d=o.getResponseHeader("Content-Range"),u=/bytes (\d+)-(\d+)\/(\d+)/.exec(d);n.onDone({begin:parseInt(u[1],10),chunk:l})}else l?n.onDone({begin:0,chunk:l}):n.onError?.(o.status)}getRequestXhr(t){return this.pendingRequests[t].xhr}isPendingRequest(t){return t in this.pendingRequests}abortRequest(t){const r=this.pendingRequests[t].xhr;delete this.pendingRequests[t],r.abort()}}class k0t{constructor(t){this._source=t,this._manager=new S0t(t.url,{httpHeaders:t.httpHeaders,withCredentials:t.withCredentials}),this._rangeChunkSize=t.rangeChunkSize,this._fullRequestReader=null,this._rangeRequestReaders=[]}_onRangeRequestReaderClosed(t){const r=this._rangeRequestReaders.indexOf(t);r>=0&&this._rangeRequestReaders.splice(r,1)}getFullReader(){return Li(!this._fullRequestReader,"PDFNetworkStream.getFullReader can only be called once."),this._fullRequestReader=new E0t(this._manager,this._source),this._fullRequestReader}getRangeReader(t,r){const n=new _0t(this._manager,t,r);return n.onClosed=this._onRangeRequestReaderClosed.bind(this),this._rangeRequestReaders.push(n),n}cancelAllRequests(t){this._fullRequestReader?.cancel(t);for(const r of this._rangeRequestReaders.slice(0))r.cancel(t)}}class E0t{constructor(t,r){this._manager=t;const n={onHeadersReceived:this._onHeadersReceived.bind(this),onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=r.url,this._fullRequestId=t.requestFull(n),this._headersReceivedCapability=Promise.withResolvers(),this._disableRange=r.disableRange||!1,this._contentLength=r.length,this._rangeChunkSize=r.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),this._isStreamingSupported=!1,this._isRangeSupported=!1,this._cachedChunks=[],this._requests=[],this._done=!1,this._storedError=void 0,this._filename=null,this.onProgress=null}_onHeadersReceived(){const t=this._fullRequestId,r=this._manager.getRequestXhr(t),n=a=>r.getResponseHeader(a),{allowRangeRequests:o,suggestedLength:i}=nN({getResponseHeader:n,isHttp:this._manager.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});o&&(this._isRangeSupported=!0),this._contentLength=i||this._contentLength,this._filename=oN(n),this._isRangeSupported&&this._manager.abortRequest(t),this._headersReceivedCapability.resolve()}_onDone(t){if(t&&(this._requests.length>0?this._requests.shift().resolve({value:t.chunk,done:!1}):this._cachedChunks.push(t.chunk)),this._done=!0,!(this._cachedChunks.length>0)){for(const r of this._requests)r.resolve({value:void 0,done:!0});this._requests.length=0}}_onError(t){this._storedError=Mx(t,this._url),this._headersReceivedCapability.reject(this._storedError);for(const r of this._requests)r.reject(this._storedError);this._requests.length=0,this._cachedChunks.length=0}_onProgress(t){this.onProgress?.({loaded:t.loaded,total:t.lengthComputable?t.total:this._contentLength})}get filename(){return this._filename}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}get contentLength(){return this._contentLength}get headersReady(){return this._headersReceivedCapability.promise}async read(){if(this._storedError)throw this._storedError;if(this._cachedChunks.length>0)return{value:this._cachedChunks.shift(),done:!1};if(this._done)return{value:void 0,done:!0};const t=Promise.withResolvers();return this._requests.push(t),t.promise}cancel(t){this._done=!0,this._headersReceivedCapability.reject(t);for(const r of this._requests)r.resolve({value:void 0,done:!0});this._requests.length=0,this._manager.isPendingRequest(this._fullRequestId)&&this._manager.abortRequest(this._fullRequestId),this._fullRequestReader=null}}class _0t{constructor(t,r,n){this._manager=t;const o={onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=t.url,this._requestId=t.requestRange(r,n,o),this._requests=[],this._queuedChunk=null,this._done=!1,this._storedError=void 0,this.onProgress=null,this.onClosed=null}_close(){this.onClosed?.(this)}_onDone(t){const r=t.chunk;this._requests.length>0?this._requests.shift().resolve({value:r,done:!1}):this._queuedChunk=r,this._done=!0;for(const n of this._requests)n.resolve({value:void 0,done:!0});this._requests.length=0,this._close()}_onError(t){this._storedError=Mx(t,this._url);for(const r of this._requests)r.reject(this._storedError);this._requests.length=0,this._queuedChunk=null}_onProgress(t){this.isStreamingSupported||this.onProgress?.({loaded:t.loaded})}get isStreamingSupported(){return!1}async read(){if(this._storedError)throw this._storedError;if(this._queuedChunk!==null){const r=this._queuedChunk;return this._queuedChunk=null,{value:r,done:!1}}if(this._done)return{value:void 0,done:!0};const t=Promise.withResolvers();return this._requests.push(t),t.promise}cancel(t){this._done=!0;for(const r of this._requests)r.resolve({value:void 0,done:!0});this._requests.length=0,this._manager.isPendingRequest(this._requestId)&&this._manager.abortRequest(this._requestId),this._close()}}const i4e=/^file:\/\/\/[a-zA-Z]:\//;function T0t(e){const t=z1.get("url"),r=t.parse(e);return r.protocol==="file:"||r.host?r:/^[a-z]:[/\\]/i.test(e)?t.parse(`file:///${e}`):(r.host||(r.protocol="file:"),r)}class A0t{constructor(t){this.source=t,this.url=T0t(t.url),this.isHttp=this.url.protocol==="http:"||this.url.protocol==="https:",this.isFsUrl=this.url.protocol==="file:",this.httpHeaders=this.isHttp&&t.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){return this._fullRequestReader?._loaded??0}getFullReader(){return Li(!this._fullRequestReader,"PDFNodeStream.getFullReader can only be called once."),this._fullRequestReader=this.isFsUrl?new M0t(this):new L0t(this),this._fullRequestReader}getRangeReader(t,r){if(r<=this._progressiveDataLength)return null;const n=this.isFsUrl?new P0t(this,t,r):new D0t(this,t,r);return this._rangeRequestReaders.push(n),n}cancelAllRequests(t){this._fullRequestReader?.cancel(t);for(const r of this._rangeRequestReaders.slice(0))r.cancel(t)}}class a4e{constructor(t){this._url=t.url,this._done=!1,this._storedError=null,this.onProgress=null;const r=t.source;this._contentLength=r.length,this._loaded=0,this._filename=null,this._disableRange=r.disableRange||!1,this._rangeChunkSize=r.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),this._isStreamingSupported=!r.disableStream,this._isRangeSupported=!r.disableRange,this._readableStream=null,this._readCapability=Promise.withResolvers(),this._headersCapability=Promise.withResolvers()}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}async read(){if(await this._readCapability.promise,this._done)return{value:void 0,done:!0};if(this._storedError)throw this._storedError;const t=this._readableStream.read();return t===null?(this._readCapability=Promise.withResolvers(),this.read()):(this._loaded+=t.length,this.onProgress?.({loaded:this._loaded,total:this._contentLength}),{value:new Uint8Array(t).buffer,done:!1})}cancel(t){if(!this._readableStream){this._error(t);return}this._readableStream.destroy(t)}_error(t){this._storedError=t,this._readCapability.resolve()}_setReadableStream(t){this._readableStream=t,t.on("readable",()=>{this._readCapability.resolve()}),t.on("end",()=>{t.destroy(),this._done=!0,this._readCapability.resolve()}),t.on("error",r=>{this._error(r)}),!this._isStreamingSupported&&this._isRangeSupported&&this._error(new Am("streaming is disabled")),this._storedError&&this._readableStream.destroy(this._storedError)}}class s4e{constructor(t){this._url=t.url,this._done=!1,this._storedError=null,this.onProgress=null,this._loaded=0,this._readableStream=null,this._readCapability=Promise.withResolvers();const r=t.source;this._isStreamingSupported=!r.disableStream}get isStreamingSupported(){return this._isStreamingSupported}async read(){if(await this._readCapability.promise,this._done)return{value:void 0,done:!0};if(this._storedError)throw this._storedError;const t=this._readableStream.read();return t===null?(this._readCapability=Promise.withResolvers(),this.read()):(this._loaded+=t.length,this.onProgress?.({loaded:this._loaded}),{value:new Uint8Array(t).buffer,done:!1})}cancel(t){if(!this._readableStream){this._error(t);return}this._readableStream.destroy(t)}_error(t){this._storedError=t,this._readCapability.resolve()}_setReadableStream(t){this._readableStream=t,t.on("readable",()=>{this._readCapability.resolve()}),t.on("end",()=>{t.destroy(),this._done=!0,this._readCapability.resolve()}),t.on("error",r=>{this._error(r)}),this._storedError&&this._readableStream.destroy(this._storedError)}}function sb(e,t){return{protocol:e.protocol,auth:e.auth,host:e.hostname,port:e.port,path:e.path,method:"GET",headers:t}}class L0t extends a4e{constructor(t){super(t);const r=n=>{if(n.statusCode===404){const l=new Tm(`Missing PDF "${this._url}".`);this._storedError=l,this._headersCapability.reject(l);return}this._headersCapability.resolve(),this._setReadableStream(n);const o=l=>this._readableStream.headers[l.toLowerCase()],{allowRangeRequests:i,suggestedLength:a}=nN({getResponseHeader:o,isHttp:t.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=i,this._contentLength=a||this._contentLength,this._filename=oN(o)};if(this._request=null,this._url.protocol==="http:"){const n=z1.get("http");this._request=n.request(sb(this._url,t.httpHeaders),r)}else{const n=z1.get("https");this._request=n.request(sb(this._url,t.httpHeaders),r)}this._request.on("error",n=>{this._storedError=n,this._headersCapability.reject(n)}),this._request.end()}}class D0t extends s4e{constructor(t,r,n){super(t),this._httpHeaders={};for(const i in t.httpHeaders){const a=t.httpHeaders[i];a!==void 0&&(this._httpHeaders[i]=a)}this._httpHeaders.Range=`bytes=${r}-${n-1}`;const o=i=>{if(i.statusCode===404){const a=new Tm(`Missing PDF "${this._url}".`);this._storedError=a;return}this._setReadableStream(i)};if(this._request=null,this._url.protocol==="http:"){const i=z1.get("http");this._request=i.request(sb(this._url,this._httpHeaders),o)}else{const i=z1.get("https");this._request=i.request(sb(this._url,this._httpHeaders),o)}this._request.on("error",i=>{this._storedError=i}),this._request.end()}}class M0t extends a4e{constructor(t){super(t);let r=decodeURIComponent(this._url.path);i4e.test(this._url.href)&&(r=r.replace(/^\//,""));const n=z1.get("fs");n.promises.lstat(r).then(o=>{this._contentLength=o.size,this._setReadableStream(n.createReadStream(r)),this._headersCapability.resolve()},o=>{o.code==="ENOENT"&&(o=new Tm(`Missing PDF "${r}".`)),this._storedError=o,this._headersCapability.reject(o)})}}class P0t extends s4e{constructor(t,r,n){super(t);let o=decodeURIComponent(this._url.path);i4e.test(this._url.href)&&(o=o.replace(/^\//,""));const i=z1.get("fs");this._setReadableStream(i.createReadStream(o,{start:r,end:n-1}))}}const I0t=1e5,ls=30,j0t=.8;let lb=class t1{#e=Promise.withResolvers();#t=null;#r=!1;#o=!!globalThis.FontInspector?.enabled;#s=null;#n=null;#i=0;#l=0;#d=null;#u=null;#h=0;#c=0;#a=Object.create(null);#m=[];#g=null;#p=[];#v=new WeakMap;#f=null;static#b=new Map;static#x=new Map;static#$=null;static#k=new Set;constructor({textContentSource:t,container:r,viewport:n}){if(t instanceof ReadableStream)this.#g=t;else if(typeof t=="object")this.#g=new ReadableStream({start(d){d.enqueue(t),d.close()}});else throw new Error('No "textContentSource" parameter specified.');this.#t=this.#u=r,this.#c=n.scale*(globalThis.devicePixelRatio||1),this.#h=n.rotation,this.#n={prevFontSize:null,prevFontFamily:null,div:null,properties:null,ctx:null};const{pageWidth:o,pageHeight:i,pageX:a,pageY:l}=n.rawDims;this.#f=[1,0,0,-1,-a,l+i],this.#l=o,this.#i=i,t1.#y(),lm(r,n),this.#e.promise.catch(()=>{}).then(()=>{t1.#k.delete(this),this.#n=null,this.#a=null})}render(){const t=()=>{this.#d.read().then(({value:r,done:n})=>{if(n){this.#e.resolve();return}this.#s??=r.lang,Object.assign(this.#a,r.styles),this.#E(r.items),t()},this.#e.reject)};return this.#d=this.#g.getReader(),t1.#k.add(this),t(),this.#e.promise}update({viewport:t,onBefore:r=null}){const n=t.scale*(globalThis.devicePixelRatio||1),o=t.rotation;if(o!==this.#h&&(r?.(),this.#h=o,lm(this.#u,{rotation:o})),n!==this.#c){r?.(),this.#c=n;const i={prevFontSize:null,prevFontFamily:null,div:null,properties:null,ctx:t1.#w(this.#s)};for(const a of this.#p)i.properties=this.#v.get(a),i.div=a,this.#S(i)}}cancel(){const t=new Am("TextLayer task cancelled.");this.#d?.cancel(t).catch(()=>{}),this.#d=null,this.#e.reject(t)}get textDivs(){return this.#p}get textContentItemsStr(){return this.#m}#E(t){if(this.#r)return;this.#n.ctx??=t1.#w(this.#s);const r=this.#p,n=this.#m;for(const o of t){if(r.length>I0t){Xr("Ignoring additional textDivs for performance reasons."),this.#r=!0;return}if(o.str===void 0){if(o.type==="beginMarkedContentProps"||o.type==="beginMarkedContent"){const i=this.#t;this.#t=document.createElement("span"),this.#t.classList.add("markedContent"),o.id!==null&&this.#t.setAttribute("id",`${o.id}`),i.append(this.#t)}else o.type==="endMarkedContent"&&(this.#t=this.#t.parentNode);continue}n.push(o.str),this.#L(o)}}#L(t){const r=document.createElement("span"),n={angle:0,canvasWidth:0,hasText:t.str!=="",hasEOL:t.hasEOL,fontSize:0};this.#p.push(r);const o=ar.transform(this.#f,t.transform);let i=Math.atan2(o[1],o[0]);const a=this.#a[t.fontName];a.vertical&&(i+=Math.PI/2);const l=this.#o&&a.fontSubstitution||a.fontFamily,d=Math.hypot(o[2],o[3]),u=d*t1.#C(l,this.#s);let p,h;i===0?(p=o[4],h=o[5]-u):(p=o[4]+u*Math.sin(i),h=o[5]-u*Math.cos(i));const f="calc(var(--scale-factor)*",g=r.style;this.#t===this.#u?(g.left=`${(100*p/this.#l).toFixed(2)}%`,g.top=`${(100*h/this.#i).toFixed(2)}%`):(g.left=`${f}${p.toFixed(2)}px)`,g.top=`${f}${h.toFixed(2)}px)`),g.fontSize=`${f}${(t1.#$*d).toFixed(2)}px)`,g.fontFamily=l,n.fontSize=d,r.setAttribute("role","presentation"),r.textContent=t.str,r.dir=t.dir,this.#o&&(r.dataset.fontName=a.fontSubstitutionLoadedName||t.fontName),i!==0&&(n.angle=i*(180/Math.PI));let y=!1;if(t.str.length>1)y=!0;else if(t.str!==" "&&t.transform[0]!==t.transform[3]){const v=Math.abs(t.transform[0]),w=Math.abs(t.transform[3]);v!==w&&Math.max(v,w)/Math.min(v,w)>1.5&&(y=!0)}if(y&&(n.canvasWidth=a.vertical?t.height:t.width),this.#v.set(r,n),this.#n.div=r,this.#n.properties=n,this.#S(this.#n),n.hasText&&this.#t.append(r),n.hasEOL){const v=document.createElement("br");v.setAttribute("role","presentation"),this.#t.append(v)}}#S(t){const{div:r,properties:n,ctx:o,prevFontSize:i,prevFontFamily:a}=t,{style:l}=r;let d="";if(t1.#$>1&&(d=`scale(${1/t1.#$})`),n.canvasWidth!==0&&n.hasText){const{fontFamily:u}=l,{canvasWidth:p,fontSize:h}=n;(i!==h||a!==u)&&(o.font=`${h*this.#c}px ${u}`,t.prevFontSize=h,t.prevFontFamily=u);const{width:f}=o.measureText(r.textContent);f>0&&(d=`scaleX(${p*this.#c/f}) ${d}`)}n.angle!==0&&(d=`rotate(${n.angle}deg) ${d}`),d.length>0&&(l.transform=d)}static cleanup(){if(!(this.#k.size>0)){this.#b.clear();for(const{canvas:t}of this.#x.values())t.remove();this.#x.clear()}}static#w(t=null){let r=this.#x.get(t||="");if(!r){const n=document.createElement("canvas");n.className="hiddenCanvasElement",n.lang=t,document.body.append(n),r=n.getContext("2d",{alpha:!1,willReadFrequently:!0}),this.#x.set(t,r)}return r}static#y(){if(this.#$!==null)return;const t=document.createElement("div");t.style.opacity=0,t.style.lineHeight=1,t.style.fontSize="1px",t.textContent="X",document.body.append(t),this.#$=t.getBoundingClientRect().height,t.remove()}static#C(t,r){const n=this.#b.get(t);if(n)return n;const o=this.#w(r),i=o.font;o.canvas.width=o.canvas.height=ls,o.font=`${ls}px ${t}`;const a=o.measureText("");let l=a.fontBoundingBoxAscent,d=Math.abs(a.fontBoundingBoxDescent);if(l){const h=l/(l+d);return this.#b.set(t,h),o.canvas.width=o.canvas.height=0,o.font=i,h}o.strokeStyle="red",o.clearRect(0,0,ls,ls),o.strokeText("g",0,0);let u=o.getImageData(0,0,ls,ls).data;d=0;for(let h=u.length-1-3;h>=0;h-=4)if(u[h]>0){d=Math.ceil(h/4/ls);break}o.clearRect(0,0,ls,ls),o.strokeText("A",0,ls),u=o.getImageData(0,0,ls,ls).data,l=0;for(let h=0,f=u.length;h<f;h+=4)if(u[h]>0){l=ls-Math.floor(h/4/ls);break}o.canvas.width=o.canvas.height=0,o.font=i;const p=l?l/(l+d):j0t;return this.#b.set(t,p),p}};function R0t(){Kge("`renderTextLayer`, please use `TextLayer` instead.");const{textContentSource:e,container:t,viewport:r,...n}=arguments[0],o=Object.keys(n);o.length>0&&Xr("Ignoring `renderTextLayer` parameters: "+o.join(", "));const i=new lb({textContentSource:e,container:t,viewport:r}),{textDivs:a,textContentItemsStr:l}=i;return{promise:i.render(),textDivs:a,textContentItemsStr:l}}function O0t(){Kge("`updateTextLayer`, please use `TextLayer` instead.")}class L7{static textContent(t){const r=[],n={items:r,styles:Object.create(null)};function o(i){if(!i)return;let a=null;const l=i.name;if(l==="#text")a=i.value;else if(L7.shouldBuildText(l))i?.attributes?.textContent?a=i.attributes.textContent:i.value&&(a=i.value);else return;if(a!==null&&r.push({str:a}),!!i.children)for(const d of i.children)o(d)}return o(t),n}static shouldBuildText(t){return!(t==="textarea"||t==="input"||t==="option"||t==="select")}}const F0t=65536,N0t=100,z0t=5e3,B0t=ka?X2t:N2t,H0t=ka?J2t:qge,V0t=ka?Q2t:F2t,U0t=ka?e0t:Zge;function W0t(e={}){typeof e=="string"||e instanceof URL?e={url:e}:(e instanceof ArrayBuffer||ArrayBuffer.isView(e))&&(e={data:e});const t=new iN,{docId:r}=t,n=e.url?Y0t(e.url):null,o=e.data?G0t(e.data):null,i=e.httpHeaders||null,a=e.withCredentials===!0,l=e.password??null,d=e.range instanceof l4e?e.range:null,u=Number.isInteger(e.rangeChunkSize)&&e.rangeChunkSize>0?e.rangeChunkSize:F0t;let p=e.worker instanceof El?e.worker:null;const h=e.verbosity,f=typeof e.docBaseUrl=="string"&&!ZF(e.docBaseUrl)?e.docBaseUrl:null,g=typeof e.cMapUrl=="string"?e.cMapUrl:null,y=e.cMapPacked!==!1,v=e.CMapReaderFactory||H0t,w=typeof e.standardFontDataUrl=="string"?e.standardFontDataUrl:null,x=e.StandardFontDataFactory||U0t,$=e.stopAtErrors!==!0,S=Number.isInteger(e.maxImageSize)&&e.maxImageSize>-1?e.maxImageSize:-1,k=e.isEvalSupported!==!1,T=typeof e.isOffscreenCanvasSupported=="boolean"?e.isOffscreenCanvasSupported:!ka,E=Number.isInteger(e.canvasMaxAreaInBytes)?e.canvasMaxAreaInBytes:-1,A=typeof e.disableFontFace=="boolean"?e.disableFontFace:ka,P=e.fontExtraProperties===!0,D=e.enableXfa===!0,O=e.ownerDocument||globalThis.document,V=e.disableRange===!0,j=e.disableStream===!0,q=e.disableAutoFetch===!0,W=e.pdfBug===!0,F=e.enableHWA===!0,H=d?d.length:e.length??NaN,I=typeof e.useSystemFonts=="boolean"?e.useSystemFonts:!ka&&!A,L=typeof e.useWorkerFetch=="boolean"?e.useWorkerFetch:v===qge&&x===Zge&&g&&w&&R5(g,document.baseURI)&&R5(w,document.baseURI),z=e.canvasFactory||new B0t({ownerDocument:O,enableHWA:F}),B=e.filterFactory||new V0t({docId:r,ownerDocument:O}),ee=null;_2t(h);const Z={canvasFactory:z,filterFactory:B};if(L||(Z.cMapReaderFactory=new v({baseUrl:g,isCompressed:y}),Z.standardFontDataFactory=new x({baseUrl:w})),!p){const X={verbosity:h,port:A7.workerPort};p=X.port?El.fromPort(X):new El(X),t._worker=p}const U={docId:r,apiVersion:"4.4.168",data:o,password:l,disableAutoFetch:q,rangeChunkSize:u,length:H,docBaseUrl:f,enableXfa:D,evaluatorOptions:{maxImageSize:S,disableFontFace:A,ignoreErrors:$,isEvalSupported:k,isOffscreenCanvasSupported:T,canvasMaxAreaInBytes:E,fontExtraProperties:P,useSystemFonts:I,cMapUrl:L?g:null,standardFontDataUrl:L?w:null}},Q={disableFontFace:A,fontExtraProperties:P,ownerDocument:O,pdfBug:W,styleElement:ee,loadingParams:{disableAutoFetch:q,enableXfa:D}};return p.promise.then(function(){if(t.destroyed)throw new Error("Loading aborted");if(p.destroyed)throw new Error("Worker was destroyed");const X=p.messageHandler.sendWithPromise("GetDocRequest",U,o?[o.buffer]:null);let ae;if(d)ae=new y0t(d,{disableRange:V,disableStream:j});else if(!o){if(!n)throw new Error("getDocument - no `url` parameter provided.");ae=(ce=>ka?function(){return typeof fetch<"u"&&typeof Response<"u"&&"body"in Response.prototype}()&&R5(ce.url)?new iJ(ce):new A0t(ce):R5(ce.url)?new iJ(ce):new k0t(ce))({url:n,length:H,httpHeaders:i,withCredentials:a,rangeChunkSize:u,disableRange:V,disableStream:j})}return X.then(fe=>{if(t.destroyed)throw new Error("Loading aborted");if(p.destroyed)throw new Error("Worker was destroyed");const ce=new O5(r,fe,p.port),se=new Q0t(ce,t,ae,Q,Z);t._transport=se,ce.send("Ready",null)})}).catch(t._capability.reject),t}function Y0t(e){if(e instanceof URL)return e.href;try{return new URL(e,window.location).href}catch{if(ka&&typeof e=="string")return e}throw new Error("Invalid PDF url data: either string or URL-object is expected in the url property.")}function G0t(e){if(ka&&typeof rv<"u"&&e instanceof rv)throw new Error("Please provide binary data as `Uint8Array`, rather than `Buffer`.");if(e instanceof Uint8Array&&e.byteLength===e.buffer.byteLength)return e;if(typeof e=="string")return Ex(e);if(e instanceof ArrayBuffer||ArrayBuffer.isView(e)||typeof e=="object"&&!isNaN(e?.length))return new Uint8Array(e);throw new Error("Invalid PDF binary data: either TypedArray, string, or array-like object is expected in the data property.")}function aJ(e){return typeof e=="object"&&Number.isInteger(e?.num)&&e.num>=0&&Number.isInteger(e?.gen)&&e.gen>=0}class iN{static#e=0;constructor(){this._capability=Promise.withResolvers(),this._transport=null,this._worker=null,this.docId=`d${iN.#e++}`,this.destroyed=!1,this.onPassword=null,this.onProgress=null}get promise(){return this._capability.promise}async destroy(){this.destroyed=!0;try{this._worker?.port&&(this._worker._pendingDestroy=!0),await this._transport?.destroy()}catch(t){throw this._worker?.port&&delete this._worker._pendingDestroy,t}this._transport=null,this._worker&&(this._worker.destroy(),this._worker=null)}}let l4e=class{constructor(t,r,n=!1,o=null){this.length=t,this.initialData=r,this.progressiveDone=n,this.contentDispositionFilename=o,this._rangeListeners=[],this._progressListeners=[],this._progressiveReadListeners=[],this._progressiveDoneListeners=[],this._readyCapability=Promise.withResolvers()}addRangeListener(t){this._rangeListeners.push(t)}addProgressListener(t){this._progressListeners.push(t)}addProgressiveReadListener(t){this._progressiveReadListeners.push(t)}addProgressiveDoneListener(t){this._progressiveDoneListeners.push(t)}onDataRange(t,r){for(const n of this._rangeListeners)n(t,r)}onDataProgress(t,r){this._readyCapability.promise.then(()=>{for(const n of this._progressListeners)n(t,r)})}onDataProgressiveRead(t){this._readyCapability.promise.then(()=>{for(const r of this._progressiveReadListeners)r(t)})}onDataProgressiveDone(){this._readyCapability.promise.then(()=>{for(const t of this._progressiveDoneListeners)t()})}transportReady(){this._readyCapability.resolve()}requestDataRange(t,r){to("Abstract method PDFDataRangeTransport.requestDataRange")}abort(){}};class q0t{constructor(t,r){this._pdfInfo=t,this._transport=r}get annotationStorage(){return this._transport.annotationStorage}get filterFactory(){return this._transport.filterFactory}get numPages(){return this._pdfInfo.numPages}get fingerprints(){return this._pdfInfo.fingerprints}get isPureXfa(){return bn(this,"isPureXfa",!!this._transport._htmlForXfa)}get allXfaHtml(){return this._transport._htmlForXfa}getPage(t){return this._transport.getPage(t)}getPageIndex(t){return this._transport.getPageIndex(t)}getDestinations(){return this._transport.getDestinations()}getDestination(t){return this._transport.getDestination(t)}getPageLabels(){return this._transport.getPageLabels()}getPageLayout(){return this._transport.getPageLayout()}getPageMode(){return this._transport.getPageMode()}getViewerPreferences(){return this._transport.getViewerPreferences()}getOpenAction(){return this._transport.getOpenAction()}getAttachments(){return this._transport.getAttachments()}getJSActions(){return this._transport.getDocJSActions()}getOutline(){return this._transport.getOutline()}getOptionalContentConfig({intent:t="display"}={}){const{renderingIntent:r}=this._transport.getRenderingIntent(t);return this._transport.getOptionalContentConfig(r)}getPermissions(){return this._transport.getPermissions()}getMetadata(){return this._transport.getMetadata()}getMarkInfo(){return this._transport.getMarkInfo()}getData(){return this._transport.getData()}saveDocument(){return this._transport.saveDocument()}getDownloadInfo(){return this._transport.downloadInfoCapability.promise}cleanup(t=!1){return this._transport.startCleanup(t||this.isPureXfa)}destroy(){return this.loadingTask.destroy()}cachedPageNumber(t){return this._transport.cachedPageNumber(t)}get loadingParams(){return this._transport.loadingParams}get loadingTask(){return this._transport.loadingTask}getFieldObjects(){return this._transport.getFieldObjects()}hasJSActions(){return this._transport.hasJSActions()}getCalculationOrderIds(){return this._transport.getCalculationOrderIds()}}class Z0t{#e=null;#t=!1;constructor(t,r,n,o=!1){this._pageIndex=t,this._pageInfo=r,this._transport=n,this._stats=o?new YX:null,this._pdfBug=o,this.commonObjs=n.commonObjs,this.objs=new c4e,this._maybeCleanupAfterRender=!1,this._intentStates=new Map,this.destroyed=!1}get pageNumber(){return this._pageIndex+1}get rotate(){return this._pageInfo.rotate}get ref(){return this._pageInfo.ref}get userUnit(){return this._pageInfo.userUnit}get view(){return this._pageInfo.view}getViewport({scale:t,rotation:r=this.rotate,offsetX:n=0,offsetY:o=0,dontFlip:i=!1}={}){return new m6({viewBox:this.view,scale:t,rotation:r,offsetX:n,offsetY:o,dontFlip:i})}getAnnotations({intent:t="display"}={}){const{renderingIntent:r}=this._transport.getRenderingIntent(t);return this._transport.getAnnotations(this._pageIndex,r)}getJSActions(){return this._transport.getPageJSActions(this._pageIndex)}get filterFactory(){return this._transport.filterFactory}get isPureXfa(){return bn(this,"isPureXfa",!!this._transport._htmlForXfa)}async getXfa(){return this._transport._htmlForXfa?.children[this._pageIndex]||null}render({canvasContext:t,viewport:r,intent:n="display",annotationMode:o=K2.ENABLE,transform:i=null,background:a=null,optionalContentConfigPromise:l=null,annotationCanvasMap:d=null,pageColors:u=null,printAnnotationStorage:p=null}){this._stats?.time("Overall");const h=this._transport.getRenderingIntent(n,o,p),{renderingIntent:f,cacheKey:g}=h;this.#t=!1,this.#o(),l||=this._transport.getOptionalContentConfig(f);let y=this._intentStates.get(g);y||(y=Object.create(null),this._intentStates.set(g,y)),y.streamReaderCancelTimeout&&(clearTimeout(y.streamReaderCancelTimeout),y.streamReaderCancelTimeout=null);const v=!!(f&Sl.PRINT);y.displayReadyCapability||(y.displayReadyCapability=Promise.withResolvers(),y.operatorList={fnArray:[],argsArray:[],lastChunk:!1,separateAnnots:null},this._stats?.time("Page Request"),this._pumpOperatorList(h));const w=S=>{y.renderTasks.delete(x),(this._maybeCleanupAfterRender||v)&&(this.#t=!0),this.#r(!v),S?(x.capability.reject(S),this._abortOperatorList({intentState:y,reason:S instanceof Error?S:new Error(S)})):x.capability.resolve(),this._stats&&(this._stats.timeEnd("Rendering"),this._stats.timeEnd("Overall"),globalThis.Stats?.enabled&&globalThis.Stats.add(this.pageNumber,this._stats))},x=new mf({callback:w,params:{canvasContext:t,viewport:r,transform:i,background:a},objs:this.objs,commonObjs:this.commonObjs,annotationCanvasMap:d,operatorList:y.operatorList,pageIndex:this._pageIndex,canvasFactory:this._transport.canvasFactory,filterFactory:this._transport.filterFactory,useRequestAnimationFrame:!v,pdfBug:this._pdfBug,pageColors:u});(y.renderTasks||=new Set).add(x);const $=x.task;return Promise.all([y.displayReadyCapability.promise,l]).then(([S,k])=>{if(this.destroyed){w();return}if(this._stats?.time("Rendering"),!(k.renderingIntent&f))throw new Error("Must use the same `intent`-argument when calling the `PDFPageProxy.render` and `PDFDocumentProxy.getOptionalContentConfig` methods.");x.initializeGraphics({transparency:S,optionalContentConfig:k}),x.operatorListChanged()}).catch(w),$}getOperatorList({intent:t="display",annotationMode:r=K2.ENABLE,printAnnotationStorage:n=null}={}){function o(){a.operatorList.lastChunk&&(a.opListReadCapability.resolve(a.operatorList),a.renderTasks.delete(l))}const i=this._transport.getRenderingIntent(t,r,n,!0);let a=this._intentStates.get(i.cacheKey);a||(a=Object.create(null),this._intentStates.set(i.cacheKey,a));let l;return a.opListReadCapability||(l=Object.create(null),l.operatorListChanged=o,a.opListReadCapability=Promise.withResolvers(),(a.renderTasks||=new Set).add(l),a.operatorList={fnArray:[],argsArray:[],lastChunk:!1,separateAnnots:null},this._stats?.time("Page Request"),this._pumpOperatorList(i)),a.opListReadCapability.promise}streamTextContent({includeMarkedContent:t=!1,disableNormalization:r=!1}={}){return this._transport.messageHandler.sendWithStream("GetTextContent",{pageIndex:this._pageIndex,includeMarkedContent:t===!0,disableNormalization:r===!0},{highWaterMark:100,size(o){return o.items.length}})}getTextContent(t={}){if(this._transport._htmlForXfa)return this.getXfa().then(n=>L7.textContent(n));const r=this.streamTextContent(t);return new Promise(function(n,o){function i(){a.read().then(function({value:d,done:u}){if(u){n(l);return}l.lang??=d.lang,Object.assign(l.styles,d.styles),l.items.push(...d.items),i()},o)}const a=r.getReader(),l={items:[],styles:Object.create(null),lang:null};i()})}getStructTree(){return this._transport.getStructTree(this._pageIndex)}_destroy(){this.destroyed=!0;const t=[];for(const r of this._intentStates.values())if(this._abortOperatorList({intentState:r,reason:new Error("Page was destroyed."),force:!0}),!r.opListReadCapability)for(const n of r.renderTasks)t.push(n.completed),n.cancel();return this.objs.clear(),this.#t=!1,this.#o(),Promise.all(t)}cleanup(t=!1){this.#t=!0;const r=this.#r(!1);return t&&r&&(this._stats&&=new YX),r}#r(t=!1){if(this.#o(),!this.#t||this.destroyed)return!1;if(t)return this.#e=setTimeout(()=>{this.#e=null,this.#r(!1)},z0t),!1;for(const{renderTasks:r,operatorList:n}of this._intentStates.values())if(r.size>0||!n.lastChunk)return!1;return this._intentStates.clear(),this.objs.clear(),this.#t=!1,!0}#o(){this.#e&&(clearTimeout(this.#e),this.#e=null)}_startRenderPage(t,r){const n=this._intentStates.get(r);n&&(this._stats?.timeEnd("Page Request"),n.displayReadyCapability?.resolve(t))}_renderPageChunk(t,r){for(let n=0,o=t.length;n<o;n++)r.operatorList.fnArray.push(t.fnArray[n]),r.operatorList.argsArray.push(t.argsArray[n]);r.operatorList.lastChunk=t.lastChunk,r.operatorList.separateAnnots=t.separateAnnots;for(const n of r.renderTasks)n.operatorListChanged();t.lastChunk&&this.#r(!0)}_pumpOperatorList({renderingIntent:t,cacheKey:r,annotationStorageSerializable:n}){const{map:o,transfer:i}=n,l=this._transport.messageHandler.sendWithStream("GetOperatorList",{pageIndex:this._pageIndex,intent:t,cacheKey:r,annotationStorage:o},i).getReader(),d=this._intentStates.get(r);d.streamReader=l;const u=()=>{l.read().then(({value:p,done:h})=>{if(h){d.streamReader=null;return}this._transport.destroyed||(this._renderPageChunk(p,d),u())},p=>{if(d.streamReader=null,!this._transport.destroyed){if(d.operatorList){d.operatorList.lastChunk=!0;for(const h of d.renderTasks)h.operatorListChanged();this.#r(!0)}if(d.displayReadyCapability)d.displayReadyCapability.reject(p);else if(d.opListReadCapability)d.opListReadCapability.reject(p);else throw p}})};u()}_abortOperatorList({intentState:t,reason:r,force:n=!1}){if(t.streamReader){if(t.streamReaderCancelTimeout&&(clearTimeout(t.streamReaderCancelTimeout),t.streamReaderCancelTimeout=null),!n){if(t.renderTasks.size>0)return;if(r instanceof qF){let o=N0t;r.extraDelay>0&&r.extraDelay<1e3&&(o+=r.extraDelay),t.streamReaderCancelTimeout=setTimeout(()=>{t.streamReaderCancelTimeout=null,this._abortOperatorList({intentState:t,reason:r,force:!0})},o);return}}if(t.streamReader.cancel(new Am(r.message)).catch(()=>{}),t.streamReader=null,!this._transport.destroyed){for(const[o,i]of this._intentStates)if(i===t){this._intentStates.delete(o);break}this.cleanup()}}}get stats(){return this._stats}}class K0t{#e=new Set;#t=Promise.resolve();postMessage(t,r){const n={data:structuredClone(t,r?{transfer:r}:null)};this.#t.then(()=>{for(const o of this.#e)o.call(this,n)})}addEventListener(t,r){this.#e.add(r)}removeEventListener(t,r){this.#e.delete(r)}terminate(){this.#e.clear()}}const Iu={isWorkerDisabled:!1,fakeWorkerId:0};ka&&(Iu.isWorkerDisabled=!0,A7.workerSrc||="./pdf.worker.mjs"),Iu.isSameOrigin=function(e,t){let r;try{if(r=new URL(e),!r.origin||r.origin==="null")return!1}catch{return!1}const n=new URL(t,r);return r.origin===n.origin},Iu.createCDNWrapper=function(e){const t=`await import("${e}");`;return URL.createObjectURL(new Blob([t],{type:"text/javascript"}))};class El{static#e;constructor({name:t=null,port:r=null,verbosity:n=T2t()}={}){if(this.name=t,this.destroyed=!1,this.verbosity=n,this._readyCapability=Promise.withResolvers(),this._port=null,this._webWorker=null,this._messageHandler=null,r){if(El.#e?.has(r))throw new Error("Cannot use more than one PDFWorker per port.");(El.#e||=new WeakMap).set(r,this),this._initializeFromPort(r);return}this._initialize()}get promise(){return ka?Promise.all([z1.promise,this._readyCapability.promise]):this._readyCapability.promise}#t(){this._readyCapability.resolve(),this._messageHandler.send("configure",{verbosity:this.verbosity})}get port(){return this._port}get messageHandler(){return this._messageHandler}_initializeFromPort(t){this._port=t,this._messageHandler=new O5("main","worker",t),this._messageHandler.on("ready",function(){}),this.#t()}_initialize(){if(Iu.isWorkerDisabled||El.#r){this._setupFakeWorker();return}let{workerSrc:t}=El;try{Iu.isSameOrigin(window.location.href,t)||(t=Iu.createCDNWrapper(new URL(t,window.location).href));const r=new Worker(t,{type:"module"}),n=new O5("main","worker",r),o=()=>{i.abort(),n.destroy(),r.terminate(),this.destroyed?this._readyCapability.reject(new Error("Worker was destroyed")):this._setupFakeWorker()},i=new AbortController;r.addEventListener("error",()=>{this._webWorker||o()},{signal:i.signal}),n.on("test",l=>{if(i.abort(),this.destroyed||!l){o();return}this._messageHandler=n,this._port=r,this._webWorker=r,this.#t()}),n.on("ready",l=>{if(i.abort(),this.destroyed){o();return}try{a()}catch{this._setupFakeWorker()}});const a=()=>{const l=new Uint8Array;n.send("test",l,[l.buffer])};a();return}catch{Sx("The worker has been disabled.")}this._setupFakeWorker()}_setupFakeWorker(){Iu.isWorkerDisabled||(Xr("Setting up fake worker."),Iu.isWorkerDisabled=!0),El._setupFakeWorkerGlobal.then(t=>{if(this.destroyed){this._readyCapability.reject(new Error("Worker was destroyed"));return}const r=new K0t;this._port=r;const n=`fake${Iu.fakeWorkerId++}`,o=new O5(n+"_worker",n,r);t.setup(o,r),this._messageHandler=new O5(n,n+"_worker",r),this.#t()}).catch(t=>{this._readyCapability.reject(new Error(`Setting up fake worker failed: "${t.message}".`))})}destroy(){this.destroyed=!0,this._webWorker&&(this._webWorker.terminate(),this._webWorker=null),El.#e?.delete(this._port),this._port=null,this._messageHandler&&(this._messageHandler.destroy(),this._messageHandler=null)}static fromPort(t){if(!t?.port)throw new Error("PDFWorker.fromPort - invalid method signature.");const r=this.#e?.get(t.port);if(r){if(r._pendingDestroy)throw new Error("PDFWorker.fromPort - the worker is being destroyed.\nPlease remember to await `PDFDocumentLoadingTask.destroy()`-calls.");return r}return new El(t)}static get workerSrc(){if(A7.workerSrc)return A7.workerSrc;throw new Error('No "GlobalWorkerOptions.workerSrc" specified.')}static get#r(){try{return globalThis.pdfjsWorker?.WorkerMessageHandler||null}catch{return null}}static get _setupFakeWorkerGlobal(){return bn(this,"_setupFakeWorkerGlobal",(async()=>this.#r?this.#r:(await import(this.workerSrc)).WorkerMessageHandler)())}}class Q0t{#e=new Map;#t=new Map;#r=new Map;#o=new Map;#s=null;constructor(t,r,n,o,i){this.messageHandler=t,this.loadingTask=r,this.commonObjs=new c4e,this.fontLoader=new Z2t({ownerDocument:o.ownerDocument,styleElement:o.styleElement}),this.loadingParams=o.loadingParams,this._params=o,this.canvasFactory=i.canvasFactory,this.filterFactory=i.filterFactory,this.cMapReaderFactory=i.cMapReaderFactory,this.standardFontDataFactory=i.standardFontDataFactory,this.destroyed=!1,this.destroyCapability=null,this._networkStream=n,this._fullReader=null,this._lastProgress=null,this.downloadInfoCapability=Promise.withResolvers(),this.setupMessageHandler()}#n(t,r=null){const n=this.#e.get(t);if(n)return n;const o=this.messageHandler.sendWithPromise(t,r);return this.#e.set(t,o),o}get annotationStorage(){return bn(this,"annotationStorage",new tN)}getRenderingIntent(t,r=K2.ENABLE,n=null,o=!1){let i=Sl.DISPLAY,a=cj;switch(t){case"any":i=Sl.ANY;break;case"display":break;case"print":i=Sl.PRINT;break;default:Xr(`getRenderingIntent - invalid intent: ${t}`)}switch(r){case K2.DISABLE:i+=Sl.ANNOTATIONS_DISABLE;break;case K2.ENABLE:break;case K2.ENABLE_FORMS:i+=Sl.ANNOTATIONS_FORMS;break;case K2.ENABLE_STORAGE:i+=Sl.ANNOTATIONS_STORAGE,a=(i&Sl.PRINT&&n instanceof Jge?n:this.annotationStorage).serializable;break;default:Xr(`getRenderingIntent - invalid annotationMode: ${r}`)}return o&&(i+=Sl.OPLIST),{renderingIntent:i,cacheKey:`${i}_${a.hash}`,annotationStorageSerializable:a}}destroy(){if(this.destroyCapability)return this.destroyCapability.promise;this.destroyed=!0,this.destroyCapability=Promise.withResolvers(),this.#s?.reject(new Error("Worker was destroyed during onPassword callback"));const t=[];for(const n of this.#t.values())t.push(n._destroy());this.#t.clear(),this.#r.clear(),this.#o.clear(),this.hasOwnProperty("annotationStorage")&&this.annotationStorage.resetModified();const r=this.messageHandler.sendWithPromise("Terminate",null);return t.push(r),Promise.all(t).then(()=>{this.commonObjs.clear(),this.fontLoader.clear(),this.#e.clear(),this.filterFactory.destroy(),lb.cleanup(),this._networkStream?.cancelAllRequests(new Am("Worker was terminated.")),this.messageHandler&&(this.messageHandler.destroy(),this.messageHandler=null),this.destroyCapability.resolve()},this.destroyCapability.reject),this.destroyCapability.promise}setupMessageHandler(){const{messageHandler:t,loadingTask:r}=this;t.on("GetReader",(n,o)=>{Li(this._networkStream,"GetReader - no `IPDFStream` instance available."),this._fullReader=this._networkStream.getFullReader(),this._fullReader.onProgress=i=>{this._lastProgress={loaded:i.loaded,total:i.total}},o.onPull=()=>{this._fullReader.read().then(function({value:i,done:a}){if(a){o.close();return}Li(i instanceof ArrayBuffer,"GetReader - expected an ArrayBuffer."),o.enqueue(new Uint8Array(i),1,[i])}).catch(i=>{o.error(i)})},o.onCancel=i=>{this._fullReader.cancel(i),o.ready.catch(a=>{if(!this.destroyed)throw a})}}),t.on("ReaderHeadersReady",n=>{const o=Promise.withResolvers(),i=this._fullReader;return i.headersReady.then(()=>{(!i.isStreamingSupported||!i.isRangeSupported)&&(this._lastProgress&&r.onProgress?.(this._lastProgress),i.onProgress=a=>{r.onProgress?.({loaded:a.loaded,total:a.total})}),o.resolve({isStreamingSupported:i.isStreamingSupported,isRangeSupported:i.isRangeSupported,contentLength:i.contentLength})},o.reject),o.promise}),t.on("GetRangeReader",(n,o)=>{Li(this._networkStream,"GetRangeReader - no `IPDFStream` instance available.");const i=this._networkStream.getRangeReader(n.begin,n.end);if(!i){o.close();return}o.onPull=()=>{i.read().then(function({value:a,done:l}){if(l){o.close();return}Li(a instanceof ArrayBuffer,"GetRangeReader - expected an ArrayBuffer."),o.enqueue(new Uint8Array(a),1,[a])}).catch(a=>{o.error(a)})},o.onCancel=a=>{i.cancel(a),o.ready.catch(l=>{if(!this.destroyed)throw l})}}),t.on("GetDoc",({pdfInfo:n})=>{this._numPages=n.numPages,this._htmlForXfa=n.htmlForXfa,delete n.htmlForXfa,r._capability.resolve(new q0t(n,this))}),t.on("DocException",function(n){let o;switch(n.name){case"PasswordException":o=new sj(n.message,n.code);break;case"InvalidPDFException":o=new Wge(n.message);break;case"MissingPDFException":o=new Tm(n.message);break;case"UnexpectedResponseException":o=new kx(n.message,n.status);break;case"UnknownErrorException":o=new lj(n.message,n.details);break;default:to("DocException - expected a valid Error.")}r._capability.reject(o)}),t.on("PasswordRequest",n=>{if(this.#s=Promise.withResolvers(),r.onPassword){const o=i=>{i instanceof Error?this.#s.reject(i):this.#s.resolve({password:i})};try{r.onPassword(o,n.code)}catch(i){this.#s.reject(i)}}else this.#s.reject(new sj(n.message,n.code));return this.#s.promise}),t.on("DataLoaded",n=>{r.onProgress?.({loaded:n.length,total:n.length}),this.downloadInfoCapability.resolve(n)}),t.on("StartRenderPage",n=>{if(this.destroyed)return;this.#t.get(n.pageIndex)._startRenderPage(n.transparency,n.cacheKey)}),t.on("commonobj",([n,o,i])=>{if(this.destroyed||this.commonObjs.has(n))return null;switch(o){case"Font":const{disableFontFace:a,fontExtraProperties:l,pdfBug:d}=this._params;if("error"in i){const f=i.error;Xr(`Error during font loading: ${f}`),this.commonObjs.resolve(n,f);break}const u=d&&globalThis.FontInspector?.enabled?(f,g)=>globalThis.FontInspector.fontAdded(f,g):null,p=new K2t(i,{disableFontFace:a,inspectFont:u});this.fontLoader.bind(p).catch(()=>t.sendWithPromise("FontFallback",{id:n})).finally(()=>{!l&&p.data&&(p.data=null),this.commonObjs.resolve(n,p)});break;case"CopyLocalImage":const{imageRef:h}=i;Li(h,"The imageRef must be defined.");for(const f of this.#t.values())for(const[,g]of f.objs)if(g?.ref===h)return g.dataLen?(this.commonObjs.resolve(n,structuredClone(g)),g.dataLen):null;break;case"FontPath":case"Image":case"Pattern":this.commonObjs.resolve(n,i);break;default:throw new Error(`Got unknown common object type ${o}`)}return null}),t.on("obj",([n,o,i,a])=>{if(this.destroyed)return;const l=this.#t.get(o);if(!l.objs.has(n)){if(l._intentStates.size===0){a?.bitmap?.close();return}switch(i){case"Image":l.objs.resolve(n,a),a?.dataLen>$2t&&(l._maybeCleanupAfterRender=!0);break;case"Pattern":l.objs.resolve(n,a);break;default:throw new Error(`Got unknown object type ${i}`)}}}),t.on("DocProgress",n=>{this.destroyed||r.onProgress?.({loaded:n.loaded,total:n.total})}),t.on("FetchBuiltInCMap",n=>this.destroyed?Promise.reject(new Error("Worker was destroyed.")):this.cMapReaderFactory?this.cMapReaderFactory.fetch(n):Promise.reject(new Error("CMapReaderFactory not initialized, see the `useWorkerFetch` parameter."))),t.on("FetchStandardFontData",n=>this.destroyed?Promise.reject(new Error("Worker was destroyed.")):this.standardFontDataFactory?this.standardFontDataFactory.fetch(n):Promise.reject(new Error("StandardFontDataFactory not initialized, see the `useWorkerFetch` parameter.")))}getData(){return this.messageHandler.sendWithPromise("GetData",null)}saveDocument(){this.annotationStorage.size<=0&&Xr("saveDocument called while `annotationStorage` is empty, please use the getData-method instead.");const{map:t,transfer:r}=this.annotationStorage.serializable;return this.messageHandler.sendWithPromise("SaveDocument",{isPureXfa:!!this._htmlForXfa,numPages:this._numPages,annotationStorage:t,filename:this._fullReader?.filename??null},r).finally(()=>{this.annotationStorage.resetModified()})}getPage(t){if(!Number.isInteger(t)||t<=0||t>this._numPages)return Promise.reject(new Error("Invalid page request."));const r=t-1,n=this.#r.get(r);if(n)return n;const o=this.messageHandler.sendWithPromise("GetPage",{pageIndex:r}).then(i=>{if(this.destroyed)throw new Error("Transport destroyed");i.refStr&&this.#o.set(i.refStr,t);const a=new Z0t(r,i,this,this._params.pdfBug);return this.#t.set(r,a),a});return this.#r.set(r,o),o}getPageIndex(t){return aJ(t)?this.messageHandler.sendWithPromise("GetPageIndex",{num:t.num,gen:t.gen}):Promise.reject(new Error("Invalid pageIndex request."))}getAnnotations(t,r){return this.messageHandler.sendWithPromise("GetAnnotations",{pageIndex:t,intent:r})}getFieldObjects(){return this.#n("GetFieldObjects")}hasJSActions(){return this.#n("HasJSActions")}getCalculationOrderIds(){return this.messageHandler.sendWithPromise("GetCalculationOrderIds",null)}getDestinations(){return this.messageHandler.sendWithPromise("GetDestinations",null)}getDestination(t){return typeof t!="string"?Promise.reject(new Error("Invalid destination request.")):this.messageHandler.sendWithPromise("GetDestination",{id:t})}getPageLabels(){return this.messageHandler.sendWithPromise("GetPageLabels",null)}getPageLayout(){return this.messageHandler.sendWithPromise("GetPageLayout",null)}getPageMode(){return this.messageHandler.sendWithPromise("GetPageMode",null)}getViewerPreferences(){return this.messageHandler.sendWithPromise("GetViewerPreferences",null)}getOpenAction(){return this.messageHandler.sendWithPromise("GetOpenAction",null)}getAttachments(){return this.messageHandler.sendWithPromise("GetAttachments",null)}getDocJSActions(){return this.#n("GetDocJSActions")}getPageJSActions(t){return this.messageHandler.sendWithPromise("GetPageJSActions",{pageIndex:t})}getStructTree(t){return this.messageHandler.sendWithPromise("GetStructTree",{pageIndex:t})}getOutline(){return this.messageHandler.sendWithPromise("GetOutline",null)}getOptionalContentConfig(t){return this.#n("GetOptionalContentConfig").then(r=>new g0t(r,t))}getPermissions(){return this.messageHandler.sendWithPromise("GetPermissions",null)}getMetadata(){const t="GetMetadata",r=this.#e.get(t);if(r)return r;const n=this.messageHandler.sendWithPromise(t,null).then(o=>({info:o[0],metadata:o[1]?new m0t(o[1]):null,contentDispositionFilename:this._fullReader?.filename??null,contentLength:this._fullReader?.contentLength??null}));return this.#e.set(t,n),n}getMarkInfo(){return this.messageHandler.sendWithPromise("GetMarkInfo",null)}async startCleanup(t=!1){if(!this.destroyed){await this.messageHandler.sendWithPromise("Cleanup",null);for(const r of this.#t.values())if(!r.cleanup())throw new Error(`startCleanup: Page ${r.pageNumber} is currently rendering.`);this.commonObjs.clear(),t||this.fontLoader.clear(),this.#e.clear(),this.filterFactory.destroy(!0),lb.cleanup()}}cachedPageNumber(t){if(!aJ(t))return null;const r=t.gen===0?`${t.num}R`:`${t.num}R${t.gen}`;return this.#o.get(r)??null}}const O9=Symbol("INITIAL_DATA");class c4e{#e=Object.create(null);#t(t){return this.#e[t]||={...Promise.withResolvers(),data:O9}}get(t,r=null){if(r){const o=this.#t(t);return o.promise.then(()=>r(o.data)),null}const n=this.#e[t];if(!n||n.data===O9)throw new Error(`Requesting object that isn't resolved yet ${t}.`);return n.data}has(t){const r=this.#e[t];return!!r&&r.data!==O9}resolve(t,r=null){const n=this.#t(t);n.data=r,n.resolve()}clear(){for(const t in this.#e){const{data:r}=this.#e[t];r?.bitmap?.close()}this.#e=Object.create(null)}*[Symbol.iterator](){for(const t in this.#e){const{data:r}=this.#e[t];r!==O9&&(yield[t,r])}}}class X0t{#e=null;constructor(t){this.#e=t,this.onContinue=null}get promise(){return this.#e.capability.promise}cancel(t=0){this.#e.cancel(null,t)}get separateAnnots(){const{separateAnnots:t}=this.#e.operatorList;if(!t)return!1;const{annotationCanvasMap:r}=this.#e;return t.form||t.canvas&&r?.size>0}}class mf{#e=null;static#t=new WeakSet;constructor({callback:t,params:r,objs:n,commonObjs:o,annotationCanvasMap:i,operatorList:a,pageIndex:l,canvasFactory:d,filterFactory:u,useRequestAnimationFrame:p=!1,pdfBug:h=!1,pageColors:f=null}){this.callback=t,this.params=r,this.objs=n,this.commonObjs=o,this.annotationCanvasMap=i,this.operatorListIdx=null,this.operatorList=a,this._pageIndex=l,this.canvasFactory=d,this.filterFactory=u,this._pdfBug=h,this.pageColors=f,this.running=!1,this.graphicsReadyCallback=null,this.graphicsReady=!1,this._useRequestAnimationFrame=p===!0&&typeof window<"u",this.cancelled=!1,this.capability=Promise.withResolvers(),this.task=new X0t(this),this._cancelBound=this.cancel.bind(this),this._continueBound=this._continue.bind(this),this._scheduleNextBound=this._scheduleNext.bind(this),this._nextBound=this._next.bind(this),this._canvas=r.canvasContext.canvas}get completed(){return this.capability.promise.catch(function(){})}initializeGraphics({transparency:t=!1,optionalContentConfig:r}){if(this.cancelled)return;if(this._canvas){if(mf.#t.has(this._canvas))throw new Error("Cannot use the same canvas during multiple render() operations. Use different canvas or ensure previous operations were cancelled or completed.");mf.#t.add(this._canvas)}this._pdfBug&&globalThis.StepperManager?.enabled&&(this.stepper=globalThis.StepperManager.create(this._pageIndex),this.stepper.init(this.operatorList),this.stepper.nextBreakPoint=this.stepper.getNextBreakPoint());const{canvasContext:n,viewport:o,transform:i,background:a}=this.params;this.gfx=new _f(n,this.commonObjs,this.objs,this.canvasFactory,this.filterFactory,{optionalContentConfig:r},this.annotationCanvasMap,this.pageColors),this.gfx.beginDrawing({transform:i,viewport:o,transparency:t,background:a}),this.operatorListIdx=0,this.graphicsReady=!0,this.graphicsReadyCallback?.()}cancel(t=null,r=0){this.running=!1,this.cancelled=!0,this.gfx?.endDrawing(),this.#e&&(window.cancelAnimationFrame(this.#e),this.#e=null),mf.#t.delete(this._canvas),this.callback(t||new qF(`Rendering cancelled, page ${this._pageIndex+1}`,r))}operatorListChanged(){if(!this.graphicsReady){this.graphicsReadyCallback||=this._continueBound;return}this.stepper?.updateOperatorList(this.operatorList),!this.running&&this._continue()}_continue(){this.running=!0,!this.cancelled&&(this.task.onContinue?this.task.onContinue(this._scheduleNextBound):this._scheduleNext())}_scheduleNext(){this._useRequestAnimationFrame?this.#e=window.requestAnimationFrame(()=>{this.#e=null,this._nextBound().catch(this._cancelBound)}):Promise.resolve().then(this._nextBound).catch(this._cancelBound)}async _next(){this.cancelled||(this.operatorListIdx=this.gfx.executeOperatorList(this.operatorList,this.operatorListIdx,this._continueBound,this.stepper),this.operatorListIdx===this.operatorList.argsArray.length&&(this.running=!1,this.operatorList.lastChunk&&(this.gfx.endDrawing(),mf.#t.delete(this._canvas),this.callback())))}}const J0t="4.4.168",ept="19fbc8998";function sJ(e){return Math.floor(Math.max(0,Math.min(1,e))*255).toString(16).padStart(2,"0")}function Y4(e){return Math.max(0,Math.min(255,255*e))}class lJ{static CMYK_G([t,r,n,o]){return["G",1-Math.min(1,.3*t+.59*n+.11*r+o)]}static G_CMYK([t]){return["CMYK",0,0,0,1-t]}static G_RGB([t]){return["RGB",t,t,t]}static G_rgb([t]){return t=Y4(t),[t,t,t]}static G_HTML([t]){const r=sJ(t);return`#${r}${r}${r}`}static RGB_G([t,r,n]){return["G",.3*t+.59*r+.11*n]}static RGB_rgb(t){return t.map(Y4)}static RGB_HTML(t){return`#${t.map(sJ).join("")}`}static T_HTML(){return"#00000000"}static T_rgb(){return[null]}static CMYK_RGB([t,r,n,o]){return["RGB",1-Math.min(1,t+o),1-Math.min(1,n+o),1-Math.min(1,r+o)]}static CMYK_rgb([t,r,n,o]){return[Y4(1-Math.min(1,t+o)),Y4(1-Math.min(1,n+o)),Y4(1-Math.min(1,r+o))]}static CMYK_HTML(t){const r=this.CMYK_RGB(t).slice(1);return this.RGB_HTML(r)}static RGB_CMYK([t,r,n]){const o=1-t,i=1-r,a=1-n,l=Math.min(o,i,a);return["CMYK",o,i,a,l]}}class d4e{static setupStorage(t,r,n,o,i){const a=o.getValue(r,{value:null});switch(n.name){case"textarea":if(a.value!==null&&(t.textContent=a.value),i==="print")break;t.addEventListener("input",l=>{o.setValue(r,{value:l.target.value})});break;case"input":if(n.attributes.type==="radio"||n.attributes.type==="checkbox"){if(a.value===n.attributes.xfaOn?t.setAttribute("checked",!0):a.value===n.attributes.xfaOff&&t.removeAttribute("checked"),i==="print")break;t.addEventListener("change",l=>{o.setValue(r,{value:l.target.checked?l.target.getAttribute("xfaOn"):l.target.getAttribute("xfaOff")})})}else{if(a.value!==null&&t.setAttribute("value",a.value),i==="print")break;t.addEventListener("input",l=>{o.setValue(r,{value:l.target.value})})}break;case"select":if(a.value!==null){t.setAttribute("value",a.value);for(const l of n.children)l.attributes.value===a.value?l.attributes.selected=!0:l.attributes.hasOwnProperty("selected")&&delete l.attributes.selected}t.addEventListener("input",l=>{const d=l.target.options,u=d.selectedIndex===-1?"":d[d.selectedIndex].value;o.setValue(r,{value:u})});break}}static setAttributes({html:t,element:r,storage:n=null,intent:o,linkService:i}){const{attributes:a}=r,l=t instanceof HTMLAnchorElement;a.type==="radio"&&(a.name=`${a.name}-${o}`);for(const[d,u]of Object.entries(a))if(u!=null)switch(d){case"class":u.length&&t.setAttribute(d,u.join(" "));break;case"dataId":break;case"id":t.setAttribute("data-element-id",u);break;case"style":Object.assign(t.style,u);break;case"textContent":t.textContent=u;break;default:(!l||d!=="href"&&d!=="newWindow")&&t.setAttribute(d,u)}l&&i.addLinkAttributes(t,a.href,a.newWindow),n&&a.dataId&&this.setupStorage(t,a.dataId,r,n)}static render(t){const r=t.annotationStorage,n=t.linkService,o=t.xfaHtml,i=t.intent||"display",a=document.createElement(o.name);o.attributes&&this.setAttributes({html:a,element:o,intent:i,linkService:n});const l=i!=="richText",d=t.div;if(d.append(a),t.viewport){const h=`matrix(${t.viewport.transform.join(",")})`;d.style.transform=h}l&&d.setAttribute("class","xfaLayer xfaFont");const u=[];if(o.children.length===0){if(o.value){const h=document.createTextNode(o.value);a.append(h),l&&L7.shouldBuildText(o.name)&&u.push(h)}return{textDivs:u}}const p=[[o,-1,a]];for(;p.length>0;){const[h,f,g]=p.at(-1);if(f+1===h.children.length){p.pop();continue}const y=h.children[++p.at(-1)[1]];if(y===null)continue;const{name:v}=y;if(v==="#text"){const x=document.createTextNode(y.value);u.push(x),g.append(x);continue}const w=y?.attributes?.xmlns?document.createElementNS(y.attributes.xmlns,v):document.createElement(v);if(g.append(w),y.attributes&&this.setAttributes({html:w,element:y,storage:r,intent:i,linkService:n}),y.children?.length>0)p.push([y,-1,w]);else if(y.value){const x=document.createTextNode(y.value);l&&L7.shouldBuildText(v)&&u.push(x),w.append(x)}}for(const h of d.querySelectorAll(".xfaNonInteractive input, .xfaNonInteractive textarea"))h.setAttribute("readOnly",!0);return{textDivs:u}}static update(t){const r=`matrix(${t.viewport.transform.join(",")})`;t.div.style.transform=r,t.div.hidden=!1}}const y6=1e3,tpt=9,cm=new WeakSet;function t2(e){return{width:e[2]-e[0],height:e[3]-e[1]}}class rpt{static create(t){switch(t.data.annotationType){case ki.LINK:return new u4e(t);case ki.TEXT:return new npt(t);case ki.WIDGET:switch(t.data.fieldType){case"Tx":return new opt(t);case"Btn":return t.data.radioButton?new p4e(t):t.data.checkBox?new apt(t):new spt(t);case"Ch":return new lpt(t);case"Sig":return new ipt(t)}return new Lm(t);case ki.POPUP:return new hj(t);case ki.FREETEXT:return new h4e(t);case ki.LINE:return new dpt(t);case ki.SQUARE:return new upt(t);case ki.CIRCLE:return new ppt(t);case ki.POLYLINE:return new m4e(t);case ki.CARET:return new mpt(t);case ki.INK:return new f4e(t);case ki.POLYGON:return new hpt(t);case ki.HIGHLIGHT:return new fpt(t);case ki.UNDERLINE:return new gpt(t);case ki.SQUIGGLY:return new ypt(t);case ki.STRIKEOUT:return new vpt(t);case ki.STAMP:return new g4e(t);case ki.FILEATTACHMENT:return new bpt(t);default:return new ti(t)}}}class ti{#e=null;#t=!1;#r=null;constructor(t,{isRenderable:r=!1,ignoreBorder:n=!1,createQuadrilaterals:o=!1}={}){this.isRenderable=r,this.data=t.data,this.layer=t.layer,this.linkService=t.linkService,this.downloadManager=t.downloadManager,this.imageResourcesPath=t.imageResourcesPath,this.renderForms=t.renderForms,this.svgFactory=t.svgFactory,this.annotationStorage=t.annotationStorage,this.enableScripting=t.enableScripting,this.hasJSActions=t.hasJSActions,this._fieldObjects=t.fieldObjects,this.parent=t.parent,r&&(this.container=this._createContainer(n)),o&&this._createQuadrilaterals()}static _hasPopupData({titleObj:t,contentsObj:r,richText:n}){return!!(t?.str||r?.str||n?.str)}get hasPopupData(){return ti._hasPopupData(this.data)}updateEdited(t){if(!this.container)return;this.#e||={rect:this.data.rect.slice(0)};const{rect:r}=t;r&&this.#o(r),this.#r?.popup.updateEdited(t)}resetEdited(){this.#e&&(this.#o(this.#e.rect),this.#r?.popup.resetEdited(),this.#e=null)}#o(t){const{container:{style:r},data:{rect:n,rotation:o},parent:{viewport:{rawDims:{pageWidth:i,pageHeight:a,pageX:l,pageY:d}}}}=this;n?.splice(0,4,...t);const{width:u,height:p}=t2(t);r.left=`${100*(t[0]-l)/i}%`,r.top=`${100*(a-t[3]+d)/a}%`,o===0?(r.width=`${100*u/i}%`,r.height=`${100*p/a}%`):this.setRotation(o)}_createContainer(t){const{data:r,parent:{page:n,viewport:o}}=this,i=document.createElement("section");i.setAttribute("data-annotation-id",r.id),this instanceof Lm||(i.tabIndex=y6);const{style:a}=i;if(a.zIndex=this.parent.zIndex++,r.popupRef&&i.setAttribute("aria-haspopup","dialog"),r.alternativeText&&(i.title=r.alternativeText),r.noRotate&&i.classList.add("norotate"),!r.rect||this instanceof hj){const{rotation:v}=r;return!r.hasOwnCanvas&&v!==0&&this.setRotation(v,i),i}const{width:l,height:d}=t2(r.rect);if(!t&&r.borderStyle.width>0){a.borderWidth=`${r.borderStyle.width}px`;const v=r.borderStyle.horizontalCornerRadius,w=r.borderStyle.verticalCornerRadius;if(v>0||w>0){const $=`calc(${v}px * var(--scale-factor)) / calc(${w}px * var(--scale-factor))`;a.borderRadius=$}else if(this instanceof p4e){const $=`calc(${l}px * var(--scale-factor)) / calc(${d}px * var(--scale-factor))`;a.borderRadius=$}switch(r.borderStyle.style){case U4.SOLID:a.borderStyle="solid";break;case U4.DASHED:a.borderStyle="dashed";break;case U4.BEVELED:Xr("Unimplemented border style: beveled");break;case U4.INSET:Xr("Unimplemented border style: inset");break;case U4.UNDERLINE:a.borderBottomStyle="solid";break}const x=r.borderColor||null;x?(this.#t=!0,a.borderColor=ar.makeHexColor(x[0]|0,x[1]|0,x[2]|0)):a.borderWidth=0}const u=ar.normalizeRect([r.rect[0],n.view[3]-r.rect[1]+n.view[1],r.rect[2],n.view[3]-r.rect[3]+n.view[1]]),{pageWidth:p,pageHeight:h,pageX:f,pageY:g}=o.rawDims;a.left=`${100*(u[0]-f)/p}%`,a.top=`${100*(u[1]-g)/h}%`;const{rotation:y}=r;return r.hasOwnCanvas||y===0?(a.width=`${100*l/p}%`,a.height=`${100*d/h}%`):this.setRotation(y,i),i}setRotation(t,r=this.container){if(!this.data.rect)return;const{pageWidth:n,pageHeight:o}=this.parent.viewport.rawDims,{width:i,height:a}=t2(this.data.rect);let l,d;t%180===0?(l=100*i/n,d=100*a/o):(l=100*a/n,d=100*i/o),r.style.width=`${l}%`,r.style.height=`${d}%`,r.setAttribute("data-main-rotation",(360-t)%360)}get _commonActions(){const t=(r,n,o)=>{const i=o.detail[r],a=i[0],l=i.slice(1);o.target.style[n]=lJ[`${a}_HTML`](l),this.annotationStorage.setValue(this.data.id,{[n]:lJ[`${a}_rgb`](l)})};return bn(this,"_commonActions",{display:r=>{const{display:n}=r.detail,o=n%2===1;this.container.style.visibility=o?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{noView:o,noPrint:n===1||n===2})},print:r=>{this.annotationStorage.setValue(this.data.id,{noPrint:!r.detail.print})},hidden:r=>{const{hidden:n}=r.detail;this.container.style.visibility=n?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{noPrint:n,noView:n})},focus:r=>{setTimeout(()=>r.target.focus({preventScroll:!1}),0)},userName:r=>{r.target.title=r.detail.userName},readonly:r=>{r.target.disabled=r.detail.readonly},required:r=>{this._setRequired(r.target,r.detail.required)},bgColor:r=>{t("bgColor","backgroundColor",r)},fillColor:r=>{t("fillColor","backgroundColor",r)},fgColor:r=>{t("fgColor","color",r)},textColor:r=>{t("textColor","color",r)},borderColor:r=>{t("borderColor","borderColor",r)},strokeColor:r=>{t("strokeColor","borderColor",r)},rotation:r=>{const n=r.detail.rotation;this.setRotation(n),this.annotationStorage.setValue(this.data.id,{rotation:n})}})}_dispatchEventFromSandbox(t,r){const n=this._commonActions;for(const o of Object.keys(r.detail))(t[o]||n[o])?.(r)}_setDefaultPropertiesFromJS(t){if(!this.enableScripting)return;const r=this.annotationStorage.getRawValue(this.data.id);if(!r)return;const n=this._commonActions;for(const[o,i]of Object.entries(r)){const a=n[o];if(a){const l={detail:{[o]:i},target:t};a(l),delete r[o]}}}_createQuadrilaterals(){if(!this.container)return;const{quadPoints:t}=this.data;if(!t)return;const[r,n,o,i]=this.data.rect.map(v=>Math.fround(v));if(t.length===8){const[v,w,x,$]=t.subarray(2,6);if(o===v&&i===w&&r===x&&n===$)return}const{style:a}=this.container;let l;if(this.#t){const{borderColor:v,borderWidth:w}=a;a.borderWidth=0,l=["url('data:image/svg+xml;utf8,",'<svg xmlns="http://www.w3.org/2000/svg"',' preserveAspectRatio="none" viewBox="0 0 1 1">',`<g fill="transparent" stroke="${v}" stroke-width="${w}">`],this.container.classList.add("hasBorder")}const d=o-r,u=i-n,{svgFactory:p}=this,h=p.createElement("svg");h.classList.add("quadrilateralsContainer"),h.setAttribute("width",0),h.setAttribute("height",0);const f=p.createElement("defs");h.append(f);const g=p.createElement("clipPath"),y=`clippath_${this.data.id}`;g.setAttribute("id",y),g.setAttribute("clipPathUnits","objectBoundingBox"),f.append(g);for(let v=2,w=t.length;v<w;v+=8){const x=t[v],$=t[v+1],S=t[v+2],k=t[v+3],T=p.createElement("rect"),E=(S-r)/d,A=(i-$)/u,P=(x-S)/d,D=($-k)/u;T.setAttribute("x",E),T.setAttribute("y",A),T.setAttribute("width",P),T.setAttribute("height",D),g.append(T),l?.push(`<rect vector-effect="non-scaling-stroke" x="${E}" y="${A}" width="${P}" height="${D}"/>`)}this.#t&&(l.push("</g></svg>')"),a.backgroundImage=l.join("")),this.container.append(h),this.container.style.clipPath=`url(#${y})`}_createPopup(){const{container:t,data:r}=this;t.setAttribute("aria-haspopup","dialog");const n=this.#r=new hj({data:{color:r.color,titleObj:r.titleObj,modificationDate:r.modificationDate,contentsObj:r.contentsObj,richText:r.richText,parentRect:r.rect,borderStyle:0,id:`popup_${r.id}`,rotation:r.rotation},parent:this.parent,elements:[this]});this.parent.div.append(n.render())}render(){to("Abstract method `AnnotationElement.render` called")}_getElementsByName(t,r=null){const n=[];if(this._fieldObjects){const o=this._fieldObjects[t];if(o)for(const{page:i,id:a,exportValues:l}of o){if(i===-1||a===r)continue;const d=typeof l=="string"?l:null,u=document.querySelector(`[data-element-id="${a}"]`);if(u&&!cm.has(u)){Xr(`_getElementsByName - element not allowed: ${a}`);continue}n.push({id:a,exportValue:d,domElement:u})}return n}for(const o of document.getElementsByName(t)){const{exportValue:i}=o,a=o.getAttribute("data-element-id");a!==r&&cm.has(o)&&n.push({id:a,exportValue:i,domElement:o})}return n}show(){this.container&&(this.container.hidden=!1),this.popup?.maybeShow()}hide(){this.container&&(this.container.hidden=!0),this.popup?.forceHide()}getElementsToTriggerPopup(){return this.container}addHighlightArea(){const t=this.getElementsToTriggerPopup();if(Array.isArray(t))for(const r of t)r.classList.add("highlightArea");else t.classList.add("highlightArea")}get _isEditable(){return!1}_editOnDoubleClick(){if(!this._isEditable)return;const{annotationEditorType:t,data:{id:r}}=this;this.container.addEventListener("dblclick",()=>{this.linkService.eventBus?.dispatch("switchannotationeditormode",{source:this,mode:t,editId:r})})}}class u4e extends ti{constructor(t,r=null){super(t,{isRenderable:!0,ignoreBorder:!!r?.ignoreBorder,createQuadrilaterals:!0}),this.isTooltipOnly=t.data.isTooltipOnly}render(){const{data:t,linkService:r}=this,n=document.createElement("a");n.setAttribute("data-element-id",t.id);let o=!1;return t.url?(r.addLinkAttributes(n,t.url,t.newWindow),o=!0):t.action?(this._bindNamedAction(n,t.action),o=!0):t.attachment?(this.#t(n,t.attachment,t.attachmentDest),o=!0):t.setOCGState?(this.#r(n,t.setOCGState),o=!0):t.dest?(this._bindLink(n,t.dest),o=!0):(t.actions&&(t.actions.Action||t.actions["Mouse Up"]||t.actions["Mouse Down"])&&this.enableScripting&&this.hasJSActions&&(this._bindJSAction(n,t),o=!0),t.resetForm?(this._bindResetFormAction(n,t.resetForm),o=!0):this.isTooltipOnly&&!o&&(this._bindLink(n,""),o=!0)),this.container.classList.add("linkAnnotation"),o&&this.container.append(n),this.container}#e(){this.container.setAttribute("data-internal-link","")}_bindLink(t,r){t.href=this.linkService.getDestinationHash(r),t.onclick=()=>(r&&this.linkService.goToDestination(r),!1),(r||r==="")&&this.#e()}_bindNamedAction(t,r){t.href=this.linkService.getAnchorUrl(""),t.onclick=()=>(this.linkService.executeNamedAction(r),!1),this.#e()}#t(t,r,n=null){t.href=this.linkService.getAnchorUrl(""),r.description&&(t.title=r.description),t.onclick=()=>(this.downloadManager?.openOrDownloadData(r.content,r.filename,n),!1),this.#e()}#r(t,r){t.href=this.linkService.getAnchorUrl(""),t.onclick=()=>(this.linkService.executeSetOCGState(r),!1),this.#e()}_bindJSAction(t,r){t.href=this.linkService.getAnchorUrl("");const n=new Map([["Action","onclick"],["Mouse Up","onmouseup"],["Mouse Down","onmousedown"]]);for(const o of Object.keys(r.actions)){const i=n.get(o);i&&(t[i]=()=>(this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:r.id,name:o}}),!1))}t.onclick||(t.onclick=()=>!1),this.#e()}_bindResetFormAction(t,r){const n=t.onclick;if(n||(t.href=this.linkService.getAnchorUrl("")),this.#e(),!this._fieldObjects){Xr('_bindResetFormAction - "resetForm" action not supported, ensure that the `fieldObjects` parameter is provided.'),n||(t.onclick=()=>!1);return}t.onclick=()=>{n?.();const{fields:o,refs:i,include:a}=r,l=[];if(o.length!==0||i.length!==0){const p=new Set(i);for(const h of o){const f=this._fieldObjects[h]||[];for(const{id:g}of f)p.add(g)}for(const h of Object.values(this._fieldObjects))for(const f of h)p.has(f.id)===a&&l.push(f)}else for(const p of Object.values(this._fieldObjects))l.push(...p);const d=this.annotationStorage,u=[];for(const p of l){const{id:h}=p;switch(u.push(h),p.type){case"text":{const g=p.defaultValue||"";d.setValue(h,{value:g});break}case"checkbox":case"radiobutton":{const g=p.defaultValue===p.exportValues;d.setValue(h,{value:g});break}case"combobox":case"listbox":{const g=p.defaultValue||"";d.setValue(h,{value:g});break}default:continue}const f=document.querySelector(`[data-element-id="${h}"]`);if(f){if(!cm.has(f)){Xr(`_bindResetFormAction - element not allowed: ${h}`);continue}}else continue;f.dispatchEvent(new Event("resetform"))}return this.enableScripting&&this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:"app",ids:u,name:"ResetForm"}}),!1}}}class npt extends ti{constructor(t){super(t,{isRenderable:!0})}render(){this.container.classList.add("textAnnotation");const t=document.createElement("img");return t.src=this.imageResourcesPath+"annotation-"+this.data.name.toLowerCase()+".svg",t.setAttribute("data-l10n-id","pdfjs-text-annotation-type"),t.setAttribute("data-l10n-args",JSON.stringify({type:this.data.name})),!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container.append(t),this.container}}class Lm extends ti{render(){return this.container}showElementAndHideCanvas(t){this.data.hasOwnCanvas&&(t.previousSibling?.nodeName==="CANVAS"&&(t.previousSibling.hidden=!0),t.hidden=!1)}_getKeyModifier(t){return xs.platform.isMac?t.metaKey:t.ctrlKey}_setEventListener(t,r,n,o,i){n.includes("mouse")?t.addEventListener(n,a=>{this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:o,value:i(a),shift:a.shiftKey,modifier:this._getKeyModifier(a)}})}):t.addEventListener(n,a=>{if(n==="blur"){if(!r.focused||!a.relatedTarget)return;r.focused=!1}else if(n==="focus"){if(r.focused)return;r.focused=!0}i&&this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:o,value:i(a)}})})}_setEventListeners(t,r,n,o){for(const[i,a]of n)(a==="Action"||this.data.actions?.[a])&&((a==="Focus"||a==="Blur")&&(r||={focused:!1}),this._setEventListener(t,r,i,a,o),a==="Focus"&&!this.data.actions?.Blur?this._setEventListener(t,r,"blur","Blur",null):a==="Blur"&&!this.data.actions?.Focus&&this._setEventListener(t,r,"focus","Focus",null))}_setBackgroundColor(t){const r=this.data.backgroundColor||null;t.style.backgroundColor=r===null?"transparent":ar.makeHexColor(r[0],r[1],r[2])}_setTextStyle(t){const r=["left","center","right"],{fontColor:n}=this.data.defaultAppearanceData,o=this.data.defaultAppearanceData.fontSize||tpt,i=t.style;let a;const l=2,d=u=>Math.round(10*u)/10;if(this.data.multiLine){const u=Math.abs(this.data.rect[3]-this.data.rect[1]-l),p=Math.round(u/(aL*o))||1,h=u/p;a=Math.min(o,d(h/aL))}else{const u=Math.abs(this.data.rect[3]-this.data.rect[1]-l);a=Math.min(o,d(u/aL))}i.fontSize=`calc(${a}px * var(--scale-factor))`,i.color=ar.makeHexColor(n[0],n[1],n[2]),this.data.textAlignment!==null&&(i.textAlign=r[this.data.textAlignment])}_setRequired(t,r){r?t.setAttribute("required",!0):t.removeAttribute("required"),t.setAttribute("aria-required",r)}}class opt extends Lm{constructor(t){const r=t.renderForms||t.data.hasOwnCanvas||!t.data.hasAppearance&&!!t.data.fieldValue;super(t,{isRenderable:r})}setPropertyOnSiblings(t,r,n,o){const i=this.annotationStorage;for(const a of this._getElementsByName(t.name,t.id))a.domElement&&(a.domElement[r]=n),i.setValue(a.id,{[o]:n})}render(){const t=this.annotationStorage,r=this.data.id;this.container.classList.add("textWidgetAnnotation");let n=null;if(this.renderForms){const o=t.getValue(r,{value:this.data.fieldValue});let i=o.value||"";const a=t.getValue(r,{charLimit:this.data.maxLen}).charLimit;a&&i.length>a&&(i=i.slice(0,a));let l=o.formattedValue||this.data.textContent?.join(`
|
|
290
290
|
`)||null;l&&this.data.comb&&(l=l.replaceAll(/\s+/g,""));const d={userValue:i,formattedValue:l,lastCommittedValue:null,commitKey:1,focused:!1};this.data.multiLine?(n=document.createElement("textarea"),n.textContent=l??i,this.data.doNotScroll&&(n.style.overflowY="hidden")):(n=document.createElement("input"),n.type="text",n.setAttribute("value",l??i),this.data.doNotScroll&&(n.style.overflowX="hidden")),this.data.hasOwnCanvas&&(n.hidden=!0),cm.add(n),n.setAttribute("data-element-id",r),n.disabled=this.data.readOnly,n.name=this.data.fieldName,n.tabIndex=y6,this._setRequired(n,this.data.required),a&&(n.maxLength=a),n.addEventListener("input",p=>{t.setValue(r,{value:p.target.value}),this.setPropertyOnSiblings(n,"value",p.target.value,"value"),d.formattedValue=null}),n.addEventListener("resetform",p=>{const h=this.data.defaultFieldValue??"";n.value=d.userValue=h,d.formattedValue=null});let u=p=>{const{formattedValue:h}=d;h!=null&&(p.target.value=h),p.target.scrollLeft=0};if(this.enableScripting&&this.hasJSActions){n.addEventListener("focus",h=>{if(d.focused)return;const{target:f}=h;d.userValue&&(f.value=d.userValue),d.lastCommittedValue=f.value,d.commitKey=1,this.data.actions?.Focus||(d.focused=!0)}),n.addEventListener("updatefromsandbox",h=>{this.showElementAndHideCanvas(h.target);const f={value(g){d.userValue=g.detail.value??"",t.setValue(r,{value:d.userValue.toString()}),g.target.value=d.userValue},formattedValue(g){const{formattedValue:y}=g.detail;d.formattedValue=y,y!=null&&g.target!==document.activeElement&&(g.target.value=y),t.setValue(r,{formattedValue:y})},selRange(g){g.target.setSelectionRange(...g.detail.selRange)},charLimit:g=>{const{charLimit:y}=g.detail,{target:v}=g;if(y===0){v.removeAttribute("maxLength");return}v.setAttribute("maxLength",y);let w=d.userValue;!w||w.length<=y||(w=w.slice(0,y),v.value=d.userValue=w,t.setValue(r,{value:w}),this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:r,name:"Keystroke",value:w,willCommit:!0,commitKey:1,selStart:v.selectionStart,selEnd:v.selectionEnd}}))}};this._dispatchEventFromSandbox(f,h)}),n.addEventListener("keydown",h=>{d.commitKey=1;let f=-1;if(h.key==="Escape"?f=0:h.key==="Enter"&&!this.data.multiLine?f=2:h.key==="Tab"&&(d.commitKey=3),f===-1)return;const{value:g}=h.target;d.lastCommittedValue!==g&&(d.lastCommittedValue=g,d.userValue=g,this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:r,name:"Keystroke",value:g,willCommit:!0,commitKey:f,selStart:h.target.selectionStart,selEnd:h.target.selectionEnd}}))});const p=u;u=null,n.addEventListener("blur",h=>{if(!d.focused||!h.relatedTarget)return;this.data.actions?.Blur||(d.focused=!1);const{value:f}=h.target;d.userValue=f,d.lastCommittedValue!==f&&this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:r,name:"Keystroke",value:f,willCommit:!0,commitKey:d.commitKey,selStart:h.target.selectionStart,selEnd:h.target.selectionEnd}}),p(h)}),this.data.actions?.Keystroke&&n.addEventListener("beforeinput",h=>{d.lastCommittedValue=null;const{data:f,target:g}=h,{value:y,selectionStart:v,selectionEnd:w}=g;let x=v,$=w;switch(h.inputType){case"deleteWordBackward":{const S=y.substring(0,v).match(/\w*[^\w]*$/);S&&(x-=S[0].length);break}case"deleteWordForward":{const S=y.substring(v).match(/^[^\w]*\w*/);S&&($+=S[0].length);break}case"deleteContentBackward":v===w&&(x-=1);break;case"deleteContentForward":v===w&&($+=1);break}h.preventDefault(),this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:r,name:"Keystroke",value:y,change:f||"",willCommit:!1,selStart:x,selEnd:$}})}),this._setEventListeners(n,d,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],h=>h.target.value)}if(u&&n.addEventListener("blur",u),this.data.comb){const h=(this.data.rect[2]-this.data.rect[0])/a;n.classList.add("comb"),n.style.letterSpacing=`calc(${h}px * var(--scale-factor) - 1ch)`}}else n=document.createElement("div"),n.textContent=this.data.fieldValue,n.style.verticalAlign="middle",n.style.display="table-cell",this.data.hasOwnCanvas&&(n.hidden=!0);return this._setTextStyle(n),this._setBackgroundColor(n),this._setDefaultPropertiesFromJS(n),this.container.append(n),this.container}}class ipt extends Lm{constructor(t){super(t,{isRenderable:!!t.data.hasOwnCanvas})}}class apt extends Lm{constructor(t){super(t,{isRenderable:t.renderForms})}render(){const t=this.annotationStorage,r=this.data,n=r.id;let o=t.getValue(n,{value:r.exportValue===r.fieldValue}).value;typeof o=="string"&&(o=o!=="Off",t.setValue(n,{value:o})),this.container.classList.add("buttonWidgetAnnotation","checkBox");const i=document.createElement("input");return cm.add(i),i.setAttribute("data-element-id",n),i.disabled=r.readOnly,this._setRequired(i,this.data.required),i.type="checkbox",i.name=r.fieldName,o&&i.setAttribute("checked",!0),i.setAttribute("exportValue",r.exportValue),i.tabIndex=y6,i.addEventListener("change",a=>{const{name:l,checked:d}=a.target;for(const u of this._getElementsByName(l,n)){const p=d&&u.exportValue===r.exportValue;u.domElement&&(u.domElement.checked=p),t.setValue(u.id,{value:p})}t.setValue(n,{value:d})}),i.addEventListener("resetform",a=>{const l=r.defaultFieldValue||"Off";a.target.checked=l===r.exportValue}),this.enableScripting&&this.hasJSActions&&(i.addEventListener("updatefromsandbox",a=>{const l={value(d){d.target.checked=d.detail.value!=="Off",t.setValue(n,{value:d.target.checked})}};this._dispatchEventFromSandbox(l,a)}),this._setEventListeners(i,null,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],a=>a.target.checked)),this._setBackgroundColor(i),this._setDefaultPropertiesFromJS(i),this.container.append(i),this.container}}class p4e extends Lm{constructor(t){super(t,{isRenderable:t.renderForms})}render(){this.container.classList.add("buttonWidgetAnnotation","radioButton");const t=this.annotationStorage,r=this.data,n=r.id;let o=t.getValue(n,{value:r.fieldValue===r.buttonValue}).value;if(typeof o=="string"&&(o=o!==r.buttonValue,t.setValue(n,{value:o})),o)for(const a of this._getElementsByName(r.fieldName,n))t.setValue(a.id,{value:!1});const i=document.createElement("input");if(cm.add(i),i.setAttribute("data-element-id",n),i.disabled=r.readOnly,this._setRequired(i,this.data.required),i.type="radio",i.name=r.fieldName,o&&i.setAttribute("checked",!0),i.tabIndex=y6,i.addEventListener("change",a=>{const{name:l,checked:d}=a.target;for(const u of this._getElementsByName(l,n))t.setValue(u.id,{value:!1});t.setValue(n,{value:d})}),i.addEventListener("resetform",a=>{const l=r.defaultFieldValue;a.target.checked=l!=null&&l===r.buttonValue}),this.enableScripting&&this.hasJSActions){const a=r.buttonValue;i.addEventListener("updatefromsandbox",l=>{const d={value:u=>{const p=a===u.detail.value;for(const h of this._getElementsByName(u.target.name)){const f=p&&h.id===n;h.domElement&&(h.domElement.checked=f),t.setValue(h.id,{value:f})}}};this._dispatchEventFromSandbox(d,l)}),this._setEventListeners(i,null,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],l=>l.target.checked)}return this._setBackgroundColor(i),this._setDefaultPropertiesFromJS(i),this.container.append(i),this.container}}class spt extends u4e{constructor(t){super(t,{ignoreBorder:t.data.hasAppearance})}render(){const t=super.render();t.classList.add("buttonWidgetAnnotation","pushButton");const r=t.lastChild;return this.enableScripting&&this.hasJSActions&&r&&(this._setDefaultPropertiesFromJS(r),r.addEventListener("updatefromsandbox",n=>{this._dispatchEventFromSandbox({},n)})),t}}class lpt extends Lm{constructor(t){super(t,{isRenderable:t.renderForms})}render(){this.container.classList.add("choiceWidgetAnnotation");const t=this.annotationStorage,r=this.data.id,n=t.getValue(r,{value:this.data.fieldValue}),o=document.createElement("select");cm.add(o),o.setAttribute("data-element-id",r),o.disabled=this.data.readOnly,this._setRequired(o,this.data.required),o.name=this.data.fieldName,o.tabIndex=y6;let i=this.data.combo&&this.data.options.length>0;this.data.combo||(o.size=this.data.options.length,this.data.multiSelect&&(o.multiple=!0)),o.addEventListener("resetform",p=>{const h=this.data.defaultFieldValue;for(const f of o.options)f.selected=f.value===h});for(const p of this.data.options){const h=document.createElement("option");h.textContent=p.displayValue,h.value=p.exportValue,n.value.includes(p.exportValue)&&(h.setAttribute("selected",!0),i=!1),o.append(h)}let a=null;if(i){const p=document.createElement("option");p.value=" ",p.setAttribute("hidden",!0),p.setAttribute("selected",!0),o.prepend(p),a=()=>{p.remove(),o.removeEventListener("input",a),a=null},o.addEventListener("input",a)}const l=p=>{const h=p?"value":"textContent",{options:f,multiple:g}=o;return g?Array.prototype.filter.call(f,y=>y.selected).map(y=>y[h]):f.selectedIndex===-1?null:f[f.selectedIndex][h]};let d=l(!1);const u=p=>{const h=p.target.options;return Array.prototype.map.call(h,f=>({displayValue:f.textContent,exportValue:f.value}))};return this.enableScripting&&this.hasJSActions?(o.addEventListener("updatefromsandbox",p=>{const h={value(f){a?.();const g=f.detail.value,y=new Set(Array.isArray(g)?g:[g]);for(const v of o.options)v.selected=y.has(v.value);t.setValue(r,{value:l(!0)}),d=l(!1)},multipleSelection(f){o.multiple=!0},remove(f){const g=o.options,y=f.detail.remove;g[y].selected=!1,o.remove(y),g.length>0&&Array.prototype.findIndex.call(g,w=>w.selected)===-1&&(g[0].selected=!0),t.setValue(r,{value:l(!0),items:u(f)}),d=l(!1)},clear(f){for(;o.length!==0;)o.remove(0);t.setValue(r,{value:null,items:[]}),d=l(!1)},insert(f){const{index:g,displayValue:y,exportValue:v}=f.detail.insert,w=o.children[g],x=document.createElement("option");x.textContent=y,x.value=v,w?w.before(x):o.append(x),t.setValue(r,{value:l(!0),items:u(f)}),d=l(!1)},items(f){const{items:g}=f.detail;for(;o.length!==0;)o.remove(0);for(const y of g){const{displayValue:v,exportValue:w}=y,x=document.createElement("option");x.textContent=v,x.value=w,o.append(x)}o.options.length>0&&(o.options[0].selected=!0),t.setValue(r,{value:l(!0),items:u(f)}),d=l(!1)},indices(f){const g=new Set(f.detail.indices);for(const y of f.target.options)y.selected=g.has(y.index);t.setValue(r,{value:l(!0)}),d=l(!1)},editable(f){f.target.disabled=!f.detail.editable}};this._dispatchEventFromSandbox(h,p)}),o.addEventListener("input",p=>{const h=l(!0),f=l(!1);t.setValue(r,{value:h}),p.preventDefault(),this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:r,name:"Keystroke",value:d,change:f,changeEx:h,willCommit:!1,commitKey:1,keyDown:!1}})}),this._setEventListeners(o,null,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"],["input","Action"],["input","Validate"]],p=>p.target.value)):o.addEventListener("input",function(p){t.setValue(r,{value:l(!0)})}),this.data.combo&&this._setTextStyle(o),this._setBackgroundColor(o),this._setDefaultPropertiesFromJS(o),this.container.append(o),this.container}}class hj extends ti{constructor(t){const{data:r,elements:n}=t;super(t,{isRenderable:ti._hasPopupData(r)}),this.elements=n,this.popup=null}render(){this.container.classList.add("popupAnnotation");const t=this.popup=new cpt({container:this.container,color:this.data.color,titleObj:this.data.titleObj,modificationDate:this.data.modificationDate,contentsObj:this.data.contentsObj,richText:this.data.richText,rect:this.data.rect,parentRect:this.data.parentRect||null,parent:this.parent,elements:this.elements,open:this.data.open}),r=[];for(const n of this.elements)n.popup=t,r.push(n.data.id),n.addHighlightArea();return this.container.setAttribute("aria-controls",r.map(n=>`${Gge}${n}`).join(",")),this.container}}class cpt{#e=this.#L.bind(this);#t=this.#C.bind(this);#r=this.#y.bind(this);#o=this.#w.bind(this);#s=null;#n=null;#i=null;#l=null;#d=null;#u=null;#h=null;#c=!1;#a=null;#m=null;#g=null;#p=null;#v=null;#f=null;#b=!1;constructor({container:t,color:r,elements:n,titleObj:o,modificationDate:i,contentsObj:a,richText:l,parent:d,rect:u,parentRect:p,open:h}){this.#n=t,this.#v=o,this.#i=a,this.#p=l,this.#u=d,this.#s=r,this.#g=u,this.#h=p,this.#d=n,this.#l=Qge.toDateObject(i),this.trigger=n.flatMap(f=>f.getElementsToTriggerPopup());for(const f of this.trigger)f.addEventListener("click",this.#o),f.addEventListener("mouseenter",this.#r),f.addEventListener("mouseleave",this.#t),f.classList.add("popupTriggerArea");for(const f of n)f.container?.addEventListener("keydown",this.#e);this.#n.hidden=!0,h&&this.#w()}render(){if(this.#a)return;const t=this.#a=document.createElement("div");if(t.className="popup",this.#s){const i=t.style.outlineColor=ar.makeHexColor(...this.#s);CSS.supports("background-color","color-mix(in srgb, red 30%, white)")?t.style.backgroundColor=`color-mix(in srgb, ${i} 30%, white)`:t.style.backgroundColor=ar.makeHexColor(...this.#s.map(l=>Math.floor(.7*(255-l)+l)))}const r=document.createElement("span");r.className="header";const n=document.createElement("h1");if(r.append(n),{dir:n.dir,str:n.textContent}=this.#v,t.append(r),this.#l){const i=document.createElement("span");i.classList.add("popupDate"),i.setAttribute("data-l10n-id","pdfjs-annotation-date-string"),i.setAttribute("data-l10n-args",JSON.stringify({date:this.#l.toLocaleDateString(),time:this.#l.toLocaleTimeString()})),r.append(i)}const o=this.#x;if(o)d4e.render({xfaHtml:o,intent:"richText",div:t}),t.lastChild.classList.add("richText","popupContent");else{const i=this._formatContents(this.#i);t.append(i)}this.#n.append(t)}get#x(){const t=this.#p,r=this.#i;return t?.str&&(!r?.str||r.str===t.str)&&this.#p.html||null}get#$(){return this.#x?.attributes?.style?.fontSize||0}get#k(){return this.#x?.attributes?.style?.color||null}#E(t){const r=[],n={str:t,html:{name:"div",attributes:{dir:"auto"},children:[{name:"p",children:r}]}},o={style:{color:this.#k,fontSize:this.#$?`calc(${this.#$}px * var(--scale-factor))`:""}};for(const i of t.split(`
|
|
291
291
|
`))r.push({name:"span",value:i,attributes:o});return n}_formatContents({str:t,dir:r}){const n=document.createElement("p");n.classList.add("popupContent"),n.dir=r;const o=t.split(/(?:\r\n?|\n)/);for(let i=0,a=o.length;i<a;++i){const l=o[i];n.append(document.createTextNode(l)),i<a-1&&n.append(document.createElement("br"))}return n}#L(t){t.altKey||t.shiftKey||t.ctrlKey||t.metaKey||(t.key==="Enter"||t.key==="Escape"&&this.#c)&&this.#w()}updateEdited({rect:t,popupContent:r}){this.#f||={contentsObj:this.#i,richText:this.#p},t&&(this.#m=null),r&&(this.#p=this.#E(r),this.#i=null),this.#a?.remove(),this.#a=null}resetEdited(){this.#f&&({contentsObj:this.#i,richText:this.#p}=this.#f,this.#f=null,this.#a?.remove(),this.#a=null,this.#m=null)}#S(){if(this.#m!==null)return;const{page:{view:t},viewport:{rawDims:{pageWidth:r,pageHeight:n,pageX:o,pageY:i}}}=this.#u;let a=!!this.#h,l=a?this.#h:this.#g;for(const y of this.#d)if(!l||ar.intersect(y.data.rect,l)!==null){l=y.data.rect,a=!0;break}const d=ar.normalizeRect([l[0],t[3]-l[1]+t[1],l[2],t[3]-l[3]+t[1]]),p=a?l[2]-l[0]+5:0,h=d[0]+p,f=d[1];this.#m=[100*(h-o)/r,100*(f-i)/n];const{style:g}=this.#n;g.left=`${this.#m[0]}%`,g.top=`${this.#m[1]}%`}#w(){this.#c=!this.#c,this.#c?(this.#y(),this.#n.addEventListener("click",this.#o),this.#n.addEventListener("keydown",this.#e)):(this.#C(),this.#n.removeEventListener("click",this.#o),this.#n.removeEventListener("keydown",this.#e))}#y(){this.#a||this.render(),this.isVisible?this.#c&&this.#n.classList.add("focused"):(this.#S(),this.#n.hidden=!1,this.#n.style.zIndex=parseInt(this.#n.style.zIndex)+1e3)}#C(){this.#n.classList.remove("focused"),!(this.#c||!this.isVisible)&&(this.#n.hidden=!0,this.#n.style.zIndex=parseInt(this.#n.style.zIndex)-1e3)}forceHide(){this.#b=this.isVisible,this.#b&&(this.#n.hidden=!0)}maybeShow(){this.#b&&(this.#a||this.#y(),this.#b=!1,this.#n.hidden=!1)}get isVisible(){return this.#n.hidden===!1}}class h4e extends ti{constructor(t){super(t,{isRenderable:!0,ignoreBorder:!0}),this.textContent=t.data.textContent,this.textPosition=t.data.textPosition,this.annotationEditorType=fn.FREETEXT}render(){if(this.container.classList.add("freeTextAnnotation"),this.textContent){const t=document.createElement("div");t.classList.add("annotationTextContent"),t.setAttribute("role","comment");for(const r of this.textContent){const n=document.createElement("span");n.textContent=r,t.append(n)}this.container.append(t)}return!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this._editOnDoubleClick(),this.container}get _isEditable(){return this.data.hasOwnCanvas}}class dpt extends ti{#e=null;constructor(t){super(t,{isRenderable:!0,ignoreBorder:!0})}render(){this.container.classList.add("lineAnnotation");const t=this.data,{width:r,height:n}=t2(t.rect),o=this.svgFactory.create(r,n,!0),i=this.#e=this.svgFactory.createElement("svg:line");return i.setAttribute("x1",t.rect[2]-t.lineCoordinates[0]),i.setAttribute("y1",t.rect[3]-t.lineCoordinates[1]),i.setAttribute("x2",t.rect[2]-t.lineCoordinates[2]),i.setAttribute("y2",t.rect[3]-t.lineCoordinates[3]),i.setAttribute("stroke-width",t.borderStyle.width||1),i.setAttribute("stroke","transparent"),i.setAttribute("fill","transparent"),o.append(i),this.container.append(o),!t.popupRef&&this.hasPopupData&&this._createPopup(),this.container}getElementsToTriggerPopup(){return this.#e}addHighlightArea(){this.container.classList.add("highlightArea")}}class upt extends ti{#e=null;constructor(t){super(t,{isRenderable:!0,ignoreBorder:!0})}render(){this.container.classList.add("squareAnnotation");const t=this.data,{width:r,height:n}=t2(t.rect),o=this.svgFactory.create(r,n,!0),i=t.borderStyle.width,a=this.#e=this.svgFactory.createElement("svg:rect");return a.setAttribute("x",i/2),a.setAttribute("y",i/2),a.setAttribute("width",r-i),a.setAttribute("height",n-i),a.setAttribute("stroke-width",i||1),a.setAttribute("stroke","transparent"),a.setAttribute("fill","transparent"),o.append(a),this.container.append(o),!t.popupRef&&this.hasPopupData&&this._createPopup(),this.container}getElementsToTriggerPopup(){return this.#e}addHighlightArea(){this.container.classList.add("highlightArea")}}class ppt extends ti{#e=null;constructor(t){super(t,{isRenderable:!0,ignoreBorder:!0})}render(){this.container.classList.add("circleAnnotation");const t=this.data,{width:r,height:n}=t2(t.rect),o=this.svgFactory.create(r,n,!0),i=t.borderStyle.width,a=this.#e=this.svgFactory.createElement("svg:ellipse");return a.setAttribute("cx",r/2),a.setAttribute("cy",n/2),a.setAttribute("rx",r/2-i/2),a.setAttribute("ry",n/2-i/2),a.setAttribute("stroke-width",i||1),a.setAttribute("stroke","transparent"),a.setAttribute("fill","transparent"),o.append(a),this.container.append(o),!t.popupRef&&this.hasPopupData&&this._createPopup(),this.container}getElementsToTriggerPopup(){return this.#e}addHighlightArea(){this.container.classList.add("highlightArea")}}class m4e extends ti{#e=null;constructor(t){super(t,{isRenderable:!0,ignoreBorder:!0}),this.containerClassName="polylineAnnotation",this.svgElementName="svg:polyline"}render(){this.container.classList.add(this.containerClassName);const{data:{rect:t,vertices:r,borderStyle:n,popupRef:o}}=this;if(!r)return this.container;const{width:i,height:a}=t2(t),l=this.svgFactory.create(i,a,!0);let d=[];for(let p=0,h=r.length;p<h;p+=2){const f=r[p]-t[0],g=t[3]-r[p+1];d.push(`${f},${g}`)}d=d.join(" ");const u=this.#e=this.svgFactory.createElement(this.svgElementName);return u.setAttribute("points",d),u.setAttribute("stroke-width",n.width||1),u.setAttribute("stroke","transparent"),u.setAttribute("fill","transparent"),l.append(u),this.container.append(l),!o&&this.hasPopupData&&this._createPopup(),this.container}getElementsToTriggerPopup(){return this.#e}addHighlightArea(){this.container.classList.add("highlightArea")}}class hpt extends m4e{constructor(t){super(t),this.containerClassName="polygonAnnotation",this.svgElementName="svg:polygon"}}class mpt extends ti{constructor(t){super(t,{isRenderable:!0,ignoreBorder:!0})}render(){return this.container.classList.add("caretAnnotation"),!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container}}class f4e extends ti{#e=[];constructor(t){super(t,{isRenderable:!0,ignoreBorder:!0}),this.containerClassName="inkAnnotation",this.svgElementName="svg:polyline",this.annotationEditorType=fn.INK}render(){this.container.classList.add(this.containerClassName);const{data:{rect:t,inkLists:r,borderStyle:n,popupRef:o}}=this,{width:i,height:a}=t2(t),l=this.svgFactory.create(i,a,!0);for(const d of r){let u=[];for(let h=0,f=d.length;h<f;h+=2){const g=d[h]-t[0],y=t[3]-d[h+1];u.push(`${g},${y}`)}u=u.join(" ");const p=this.svgFactory.createElement(this.svgElementName);this.#e.push(p),p.setAttribute("points",u),p.setAttribute("stroke-width",n.width||1),p.setAttribute("stroke","transparent"),p.setAttribute("fill","transparent"),!o&&this.hasPopupData&&this._createPopup(),l.append(p)}return this.container.append(l),this.container}getElementsToTriggerPopup(){return this.#e}addHighlightArea(){this.container.classList.add("highlightArea")}}class fpt extends ti{constructor(t){super(t,{isRenderable:!0,ignoreBorder:!0,createQuadrilaterals:!0})}render(){return!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container.classList.add("highlightAnnotation"),this.container}}class gpt extends ti{constructor(t){super(t,{isRenderable:!0,ignoreBorder:!0,createQuadrilaterals:!0})}render(){return!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container.classList.add("underlineAnnotation"),this.container}}class ypt extends ti{constructor(t){super(t,{isRenderable:!0,ignoreBorder:!0,createQuadrilaterals:!0})}render(){return!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container.classList.add("squigglyAnnotation"),this.container}}class vpt extends ti{constructor(t){super(t,{isRenderable:!0,ignoreBorder:!0,createQuadrilaterals:!0})}render(){return!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container.classList.add("strikeoutAnnotation"),this.container}}class g4e extends ti{constructor(t){super(t,{isRenderable:!0,ignoreBorder:!0})}render(){return this.container.classList.add("stampAnnotation"),!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container}}class bpt extends ti{#e=null;constructor(t){super(t,{isRenderable:!0});const{file:r}=this.data;this.filename=r.filename,this.content=r.content,this.linkService.eventBus?.dispatch("fileattachmentannotation",{source:this,...r})}render(){this.container.classList.add("fileAttachmentAnnotation");const{container:t,data:r}=this;let n;r.hasAppearance||r.fillAlpha===0?n=document.createElement("div"):(n=document.createElement("img"),n.src=`${this.imageResourcesPath}annotation-${/paperclip/i.test(r.name)?"paperclip":"pushpin"}.svg`,r.fillAlpha&&r.fillAlpha<1&&(n.style=`filter: opacity(${Math.round(r.fillAlpha*100)}%);`)),n.addEventListener("dblclick",this.#t.bind(this)),this.#e=n;const{isMac:o}=xs.platform;return t.addEventListener("keydown",i=>{i.key==="Enter"&&(o?i.metaKey:i.ctrlKey)&&this.#t()}),!r.popupRef&&this.hasPopupData?this._createPopup():n.classList.add("popupTriggerArea"),t.append(n),t}getElementsToTriggerPopup(){return this.#e}addHighlightArea(){this.container.classList.add("highlightArea")}#t(){this.downloadManager?.openOrDownloadData(this.content,this.filename)}}let wpt=class{#e=null;#t=null;#r=new Map;constructor({div:t,accessibilityManager:r,annotationCanvasMap:n,annotationEditorUIManager:o,page:i,viewport:a}){this.div=t,this.#e=r,this.#t=n,this.page=i,this.viewport=a,this.zIndex=0,this._annotationEditorUIManager=o}#o(t,r){const n=t.firstChild||t;n.id=`${Gge}${r}`,this.div.append(t),this.#e?.moveElementInDOM(this.div,t,n,!1)}async render(t){const{annotations:r}=t,n=this.div;lm(n,this.viewport);const o=new Map,i={data:null,layer:n,linkService:t.linkService,downloadManager:t.downloadManager,imageResourcesPath:t.imageResourcesPath||"",renderForms:t.renderForms!==!1,svgFactory:new GF,annotationStorage:t.annotationStorage||new tN,enableScripting:t.enableScripting===!0,hasJSActions:t.hasJSActions,fieldObjects:t.fieldObjects,parent:this,elements:null};for(const a of r){if(a.noHTML)continue;const l=a.annotationType===ki.POPUP;if(l){const p=o.get(a.id);if(!p)continue;i.elements=p}else{const{width:p,height:h}=t2(a.rect);if(p<=0||h<=0)continue}i.data=a;const d=rpt.create(i);if(!d.isRenderable)continue;if(!l&&a.popupRef){const p=o.get(a.popupRef);p?p.push(d):o.set(a.popupRef,[d])}const u=d.render();a.hidden&&(u.style.visibility="hidden"),this.#o(u,a.id),d.annotationEditorType>0&&(this.#r.set(d.data.id,d),this._annotationEditorUIManager?.renderAnnotationElement(d))}this.#s()}update({viewport:t}){const r=this.div;this.viewport=t,lm(r,{rotation:t.rotation}),this.#s(),r.hidden=!1}#s(){if(!this.#t)return;const t=this.div;for(const[r,n]of this.#t){const o=t.querySelector(`[data-annotation-id="${r}"]`);if(!o)continue;n.className="annotationContent";const{firstChild:i}=o;i?i.nodeName==="CANVAS"?i.replaceWith(n):i.classList.contains("annotationContent")?i.after(n):i.before(n):o.append(n)}this.#t.clear()}getEditableAnnotations(){return Array.from(this.#r.values())}getEditableAnnotation(t){return this.#r.get(t)}};const F9=/\r\n?|\n/g;class _i extends Tr{#e=this.editorDivBlur.bind(this);#t=this.editorDivFocus.bind(this);#r=this.editorDivInput.bind(this);#o=this.editorDivKeydown.bind(this);#s=this.editorDivPaste.bind(this);#n;#i="";#l=`${this.id}-editor`;#d;#u=null;static _freeTextDefaultContent="";static _internalPadding=0;static _defaultColor=null;static _defaultFontSize=10;static get _keyboardManager(){const t=_i.prototype,r=i=>i.isEmpty(),n=P0.TRANSLATE_SMALL,o=P0.TRANSLATE_BIG;return bn(this,"_keyboardManager",new f6([[["ctrl+s","mac+meta+s","ctrl+p","mac+meta+p"],t.commitOrRemove,{bubbles:!0}],[["ctrl+Enter","mac+meta+Enter","Escape","mac+Escape"],t.commitOrRemove],[["ArrowLeft","mac+ArrowLeft"],t._translateEmpty,{args:[-n,0],checker:r}],[["ctrl+ArrowLeft","mac+shift+ArrowLeft"],t._translateEmpty,{args:[-o,0],checker:r}],[["ArrowRight","mac+ArrowRight"],t._translateEmpty,{args:[n,0],checker:r}],[["ctrl+ArrowRight","mac+shift+ArrowRight"],t._translateEmpty,{args:[o,0],checker:r}],[["ArrowUp","mac+ArrowUp"],t._translateEmpty,{args:[0,-n],checker:r}],[["ctrl+ArrowUp","mac+shift+ArrowUp"],t._translateEmpty,{args:[0,-o],checker:r}],[["ArrowDown","mac+ArrowDown"],t._translateEmpty,{args:[0,n],checker:r}],[["ctrl+ArrowDown","mac+shift+ArrowDown"],t._translateEmpty,{args:[0,o],checker:r}]]))}static _type="freetext";static _editorType=fn.FREETEXT;constructor(t){super({...t,name:"freeTextEditor"}),this.#n=t.color||_i._defaultColor||Tr._defaultLineColor,this.#d=t.fontSize||_i._defaultFontSize}static initialize(t,r){Tr.initialize(t,r,{strings:["pdfjs-free-text-default-content"]});const n=getComputedStyle(document.documentElement);this._internalPadding=parseFloat(n.getPropertyValue("--freetext-padding"))}static updateDefaultParams(t,r){switch(t){case Pr.FREETEXT_SIZE:_i._defaultFontSize=r;break;case Pr.FREETEXT_COLOR:_i._defaultColor=r;break}}updateParams(t,r){switch(t){case Pr.FREETEXT_SIZE:this.#h(r);break;case Pr.FREETEXT_COLOR:this.#c(r);break}}static get defaultPropertiesToUpdate(){return[[Pr.FREETEXT_SIZE,_i._defaultFontSize],[Pr.FREETEXT_COLOR,_i._defaultColor||Tr._defaultLineColor]]}get propertiesToUpdate(){return[[Pr.FREETEXT_SIZE,this.#d],[Pr.FREETEXT_COLOR,this.#n]]}#h(t){const r=o=>{this.editorDiv.style.fontSize=`calc(${o}px * var(--scale-factor))`,this.translate(0,-(o-this.#d)*this.parentScale),this.#d=o,this.#m()},n=this.#d;this.addCommands({cmd:r.bind(this,t),undo:r.bind(this,n),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:Pr.FREETEXT_SIZE,overwriteIfSameType:!0,keepUndo:!0})}#c(t){const r=o=>{this.#n=this.editorDiv.style.color=o},n=this.#n;this.addCommands({cmd:r.bind(this,t),undo:r.bind(this,n),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:Pr.FREETEXT_COLOR,overwriteIfSameType:!0,keepUndo:!0})}_translateEmpty(t,r){this._uiManager.translateSelectedEditors(t,r,!0)}getInitialTranslation(){const t=this.parentScale;return[-_i._internalPadding*t,-(_i._internalPadding+this.#d)*t]}rebuild(){this.parent&&(super.rebuild(),this.div!==null&&(this.isAttachedToDOM||this.parent.add(this)))}enableEditMode(){if(this.isInEditMode())return;this.parent.setEditingState(!1),this.parent.updateToolbar(fn.FREETEXT),super.enableEditMode(),this.overlayDiv.classList.remove("enabled"),this.editorDiv.contentEditable=!0,this._isDraggable=!1,this.div.removeAttribute("aria-activedescendant");const t=this._uiManager._signal;this.editorDiv.addEventListener("keydown",this.#o,{signal:t}),this.editorDiv.addEventListener("focus",this.#t,{signal:t}),this.editorDiv.addEventListener("blur",this.#e,{signal:t}),this.editorDiv.addEventListener("input",this.#r,{signal:t}),this.editorDiv.addEventListener("paste",this.#s,{signal:t})}disableEditMode(){this.isInEditMode()&&(this.parent.setEditingState(!0),super.disableEditMode(),this.overlayDiv.classList.add("enabled"),this.editorDiv.contentEditable=!1,this.div.setAttribute("aria-activedescendant",this.#l),this._isDraggable=!0,this.editorDiv.removeEventListener("keydown",this.#o),this.editorDiv.removeEventListener("focus",this.#t),this.editorDiv.removeEventListener("blur",this.#e),this.editorDiv.removeEventListener("input",this.#r),this.editorDiv.removeEventListener("paste",this.#s),this.div.focus({preventScroll:!0}),this.isEditing=!1,this.parent.div.classList.add("freetextEditing"))}focusin(t){this._focusEventsAllowed&&(super.focusin(t),t.target!==this.editorDiv&&this.editorDiv.focus())}onceAdded(){this.width||(this.enableEditMode(),this.editorDiv.focus(),this._initialOptions?.isCentered&&this.center(),this._initialOptions=null)}isEmpty(){return!this.editorDiv||this.editorDiv.innerText.trim()===""}remove(){this.isEditing=!1,this.parent&&(this.parent.setEditingState(!0),this.parent.div.classList.add("freetextEditing")),super.remove()}#a(){const t=[];this.editorDiv.normalize();for(const r of this.editorDiv.childNodes)t.push(_i.#g(r));return t.join(`
|
|
292
292
|
`)}#m(){const[t,r]=this.parentDimensions;let n;if(this.isAttachedToDOM)n=this.div.getBoundingClientRect();else{const{currentLayer:o,div:i}=this,a=i.style.display,l=i.classList.contains("hidden");i.classList.remove("hidden"),i.style.display="hidden",o.div.append(this.div),n=i.getBoundingClientRect(),i.remove(),i.style.display=a,i.classList.toggle("hidden",l)}this.rotation%180===this.parentRotation%180?(this.width=n.width/t,this.height=n.height/r):(this.width=n.height/t,this.height=n.width/r),this.fixAndSetPosition()}commit(){if(!this.isInEditMode())return;super.commit(),this.disableEditMode();const t=this.#i,r=this.#i=this.#a().trimEnd();if(t===r)return;const n=o=>{if(this.#i=o,!o){this.remove();return}this.#p(),this._uiManager.rebuild(this),this.#m()};this.addCommands({cmd:()=>{n(r)},undo:()=>{n(t)},mustExec:!1}),this.#m()}shouldGetKeyboardEvents(){return this.isInEditMode()}enterInEditMode(){this.enableEditMode(),this.editorDiv.focus()}dblclick(t){this.enterInEditMode()}keydown(t){t.target===this.div&&t.key==="Enter"&&(this.enterInEditMode(),t.preventDefault())}editorDivKeydown(t){_i._keyboardManager.exec(this,t)}editorDivFocus(t){this.isEditing=!0}editorDivBlur(t){this.isEditing=!1}editorDivInput(t){this.parent.div.classList.toggle("freetextEditing",this.isEmpty())}disableEditing(){this.editorDiv.setAttribute("role","comment"),this.editorDiv.removeAttribute("aria-multiline")}enableEditing(){this.editorDiv.setAttribute("role","textbox"),this.editorDiv.setAttribute("aria-multiline",!0)}render(){if(this.div)return this.div;let t,r;this.width&&(t=this.x,r=this.y),super.render(),this.editorDiv=document.createElement("div"),this.editorDiv.className="internal",this.editorDiv.setAttribute("id",this.#l),this.editorDiv.setAttribute("data-l10n-id","pdfjs-free-text"),this.enableEditing(),Tr._l10nPromise.get("pdfjs-free-text-default-content").then(o=>this.editorDiv?.setAttribute("default-content",o)),this.editorDiv.contentEditable=!0;const{style:n}=this.editorDiv;if(n.fontSize=`calc(${this.#d}px * var(--scale-factor))`,n.color=this.#n,this.div.append(this.editorDiv),this.overlayDiv=document.createElement("div"),this.overlayDiv.classList.add("overlay","enabled"),this.div.append(this.overlayDiv),ab(this,this.div,["dblclick","keydown"]),this.width){const[o,i]=this.parentDimensions;if(this.annotationElementId){const{position:a}=this.#u;let[l,d]=this.getInitialTranslation();[l,d]=this.pageTranslationToScreen(l,d);const[u,p]=this.pageDimensions,[h,f]=this.pageTranslation;let g,y;switch(this.rotation){case 0:g=t+(a[0]-h)/u,y=r+this.height-(a[1]-f)/p;break;case 90:g=t+(a[0]-h)/u,y=r-(a[1]-f)/p,[l,d]=[d,-l];break;case 180:g=t-this.width+(a[0]-h)/u,y=r-(a[1]-f)/p,[l,d]=[-l,-d];break;case 270:g=t+(a[0]-h-this.height*p)/u,y=r+(a[1]-f-this.width*u)/p,[l,d]=[-d,l];break}this.setAt(g*o,y*i,l,d)}else this.setAt(t*o,r*i,this.width*o,this.height*i);this.#p(),this._isDraggable=!0,this.editorDiv.contentEditable=!1}else this._isDraggable=!1,this.editorDiv.contentEditable=!0;return this.div}static#g(t){return(t.nodeType===Node.TEXT_NODE?t.nodeValue:t.innerText).replaceAll(F9,"")}editorDivPaste(t){const r=t.clipboardData||window.clipboardData,{types:n}=r;if(n.length===1&&n[0]==="text/plain")return;t.preventDefault();const o=_i.#f(r.getData("text")||"").replaceAll(F9,`
|
|
@@ -365,7 +365,7 @@ You can change this for every line item on the bill. `,vendorExists:"This is an
|
|
|
365
365
|
<company_name>'s Finance team`,buttonText:"Enter <payment_type> Details"},popUp:{title:"Add Vendor Email",description:"We'll email your vendor to provide their <payment_type> details.",placeholder:"Add email",buttons:{save:"Save",cancel:"Cancel"}},magicLinkScreen:{title:"<tenant_name> wants to pay you",description:"Add your bank account details to get paid by <tenant_name> through Zeni Bill Pay.",encrypted:"Encrypted",successTitle:"Thank you for providing the account details.",successNote:"We are currently working on your payment."}},recurringBill:{paymentType:"Payment Type",recurring:"Recurring",recurringCycle:"Recurring Cycle - ",deleteRecurringTitle:"Delete Recurring Bill?",deleteRecurringAlertText:"Deleting this bill will also remove all future instances, leading to the discontinuation of payments to the vendor.",cancelAndDeleteRecurringTitle:"Cancel and Delete Recurring Bill?",cancelAndDeleteRecurringAlertText:"By proceeding, you’re not only canceling the current bill but also removing all future instances, leading to the end of payments to the vendor.",paymentTypeOptions:["One-time Payment","Recurring Payment"],frequencyOptions:[{label:"Weekly",value:"weekly"},{label:"BiWeekly",value:"biweekly"},{label:"Monthly",value:"monthly"},{label:"Quarterly",value:"quarterly"}],frequencyPlaceholder:"Select frequency",endDatePlaceholder:"Select end date",requiresApprovalOptions:{current:"For this bill only (Remaining bills in this series will be auto-approved)",all:"For all bills in this series"},requiresApprovalOptionsSelectedLabels:{current:"For this bill only",all:"For all bills in this series"},formLabels:{requiresApproval:"Requires Approval"},endDateSelector:{formLabels:{selectEndDate:"Select end date",totalPayments:"Total No. Payments"}},paymentCountPrefix:"No. of Payments",paymentSchedule:"Payment Schedule",hidePaymentSchedule:"Hide Payment Schedule",showPaymentSchedule:"Show Payment Schedule",isHoliday:"is a holiday",editRecurringPopup:{title:"Do you want to update?",selectOptions:[{label:"All bills in this series",value:"all"},{label:"This bill only",value:"current"}]}},zeniAssist:{refundTitle:"Confirm Refund",refundDescription:`Are you sure you want to initiate a refund for this bill?
|
|
366
366
|
Refund process will take 1-2 business days.`,accountNumber:"Account No.",amount:"Amount",proceed:"Proceed",tooltip:"Zeni Assist",connectToTeamTooltip:"Please connect with the engineering team to resolve this issue."},paymentOutsideZeni:{offline:"Offline",popUpTitle:"Add payment details",defaultDateInfo:"If not added, the date will default to 1st of this month.",reviewInfo:'Once approved, find this bill in your "Awaiting my Approval" tab to "Mark as Paid."',markAsPaid:"Mark as Paid",paymentModeLabel:"Payment Mode:",selectMethod:"Select method",selectDate:"Select date ",paymentModeOptions:[{label:"ACH",value:"ach"},{label:"ACH Same Day",value:"ach_same_day"},{label:"Cash",value:"cash"},{label:"Check",value:"check"},{label:"Domestic Wire",value:"us_domestic_wire"},{label:"International Wire",value:"international_wire"},{label:"Other",value:"other"}],banner:{title:'After the bill is approved, it will move to your "Awaiting My Approval" tab.',description:'Once payment is done, you can return to this bill to "Mark as Paid."'}}},bulkActions:{exceptions:{bookCloseDateDelete:"This bill can't be deleted now as it is from a previous accounting period.",bookCloseDateProcessing:"This bill can't be processed now as it is from a previous accounting period.",processingSelectTogether:'Only bills under "Processing" status can be selected together.',processingWithOthers:'Bills under "Processing" status can’t be selected with others.',cancelProcessing:"Bill payment cannot be canceled as it has been already processed.",cancelRecurring:"Recurring Bill can't be canceled.",deleteRecurring:"Recurring Bill can't be deleted.",noActionRecurring:"Recurring bill can't be canceled or deleted."},duplicateWarning:{title:"An update to this bill is currently in progress.",description:"Please wait until the process is complete before making any further changes."},popUps:{reject:{title:"Reject <_payment_>",description:"By rejecting <_this_> <_payment_>, the approval process will not move forward and no <_payment_> will be issued. Help your team understand why <_this_> <_bill_> should not be paid."},delete:{title:"Delete <_bill_>",descriptionDraft:"Are you sure you want to delete <_this_> <_bill_>? This action cannot be undone.",descriptionRecurring:"Deleting stops current <_payment_> and all the future recurring bill cycles. Help your team understand why?",descriptionOther:"By deleting <_this_> <_bill_>, <_it_> will not move forward and no <_payment_> will be issued. Help your team understand why."},cancel:{title:"Cancel <_bill_>",description:"By cancelling <_this_> <_bill_>, <_it_> will not move forward and no <_payment_> will be issued. Help your team understand why."}},reviewPage:{billsReviewed:{title:"<_bill_> <_has_> been reviewed",description:"<_bill_> <_is_> ready to proceed.",descriptionError:"The selected <_bill_> <_do_> not have the required information to proceed. Please fill in all details and try again."},billsReviewing:{title:"We are reviewing your <_bill_>",description:"This process may take a few seconds."},removeOrProceed:"Remove bill or proceed for approval"},bill:"Bill",bills:"Bills",selected:" selected",payment:"Payment",payments:"Payments"},insufficientFunds:{lowBalance:"(Low Balance)",lowBalanceIn:"Low balance in __account__",addMoney:"Low balance! Please add money to this account",addOrSwitch:"Low balance! Add money or switch accounts by __date__ to avoid bill payment failure",addOrSwitchInitiateTransfer:"Add money or switch accounts to initiate the transfer.",popUp:{title:"Low Balance",hasLowBalance:" has low balance.",addMoney:"Please add money or switch accounts by ",avoidFailure:" to avoid payment failure."}}},reimbursement:{reimbursementByTabs:{newReimbursementTitle:"New Reimbursement",pageTitle:"Reimbursements",noDataText:`To add new reimbursements, click on the
|
|
367
367
|
'New Reimbursement' button and get started.`,noDataWithFilterText:"No reimbursements matched your search.",reimbursementOrganizedInfo:"All your reimbursement reports are organized in one place here.",reimbursementApprovedText:"Reimbursement approved",reimbursementRejectedText:"Reimbursement rejected",sortBy:"Sort By:",searchPlaceHolder:"Search by report name or creator",emailInfoTitle:"Add Receipts via Email",emailInfoDescription1:"Send your receipts to this email, and we'll scan them for review in your reimbursements drafts.",emailInfoDescription2:"If multiple receipts are included in the email, they will be combined into one reimbursement report.",emailInfoDescription3:"For each email you dispatch, we will draft an individual reimbursement report.",noDataTextViaMail:"Create reimbursement drafts by sending your",receiptTo:"receipts to",header:{name:"Name",type:"Type",status:"Status",amount:"Amount",submitted:"Submitted",created:"Created",paymentDate:"Payment Date",paidOn:"Paid On"},reimbursementType:{type:"Type",mileage:"Mileage",out_of_pocket:"Out of pocket",titleForBoth:"Both",both:"Out of pocket and Milleage"},tabsById:{draft:"Drafts",myDrafts:"My Drafts",pending_approval:"Approvals",scheduled:"Scheduled",paid:"Paid",all:"All",failed:"Failed",cancelled:"Canceled",overdue:"Overdue",rejected:"Rejected",awaitingApproval:"Awaiting Approval",ach:"ACH",wire:"Wire",returned:"Returned",awaitingMyApproval:"Awaiting My Approval",awaitingAllApproval:"Awaiting All Approval",deleted:"Deleted"},byText:"by",orText:"or",dots:"...",hyphenText:"-"},reimbursementPromo:{title:"Reimbursements",promoText:"Reimburse employees at lightning speed, absolutely free.",employeePendingPromoText:"Reimbursements set up process is pending, please check with your admin.",employeeAcceptPromoText:"The simplest way to apply for reimbursement",aiPoweredText:{bold:"AI-powered",regular:" receipts processing helps you create reports in seconds."},simplestText:{bold:"Simplest",regular:" way to pay employees for out-of-pocket expenses."},multiLevelApprovalText:{bold:"Multi-level approval",regular:" flows allow you to stay in control of payments."},setupReimbursementButton:"Setup Reimbursements",createNewReimbursementButton:"Create New Reimbursements",scheduleDemoButton:"Schedule Demo",terms:{setupTerms1:'By clicking "Setup Reimbursements", I have read and accepted the ',createTerms1:'By clicking "Create New Reimbursements", you agree to our ',zeniAgreement:"Terms of Service",terms2:" and ",privacyPolicy:"Privacy Policy",privacyPolicyUrl:"https://www.zeni.ai/privacy-policy",tosUrl:"https://www.zeni.ai/terms",terms3:". ✌🏻"},orText:"OR"},reimbursementSetup:{yourMileage:"Your mileage rate should be the same or higher than ¢ __defaultMileageUnitAmount__ as per IRS guidelines.",setupTitle:"Reimbursements",setupSubTitle:"To setup reimbursements - we require you to confirm your business identity, set up ACH details and mileage rates.",approvalSubTitle:"Reimbursements will require approvals based on the rules you create.",enableReimbursements:"Enable Reimbursements",terms:'By clicking "Enable Reimbursements," I authorize Zeni to debit from this bank account to repay using Zeni Reimbursements.',mileageHeader:"Setup Mileage Rate",mileageEditTitle:"Edit Mileage Rate",mileageAddTitle:"Add Mileage Rate",mileageSubTitle:"Standard mileage rate you've to set for business-related travel.",perText:"per",save:"Save"},reimbursementApproval:{approvalPageSubTitle:"All reimbursements will go through the following approval policy.",amountPerRemiLabel:"If amount per reimbursement is between:",amountPerRemiGreaterLabel:"If amount per reimbursement is greater than or equal to:"},reimbursementDetail:{tooltip:{category:'The "category" update recommendation is __based__'},deletedCategoryError:"Selected category was deleted in QuickBooks. Please select an active one.",deletedClassError:"Selected class was deleted in QuickBooks. Please select an active one.",duplicatePopUpInfo:{title:"Preparing For Submission",primaryButtonText:"Review Report",secondaryButtonText:"Submit Anyway",reviewingExpenses:"Reviewing expenses",reviewedAllExpenses:"Reviewed all expenses",detectDuplicates:"Detect duplicates",detectingDuplicates:"Detecting duplicates",duplicateExpensesFound:"Duplicate expense(s) found",failedToSubmit:"Failed to submit, please try again",failedToDetect:"Failed to detect duplicate bills, please try again",noDuplicatesFound:"No duplicates found",submitReport:"Submit report",submittingReport:"Submitting report"},thereSeems:"There seems to be a duplicate expense(s) uploaded in this report.",pleaseFind:"Please find more details below.",thisExpense:"This expense is a duplicate. Make sure you are not submitting again.",thisExpenseReview:"This expense is a duplicate. Please review it before approving.",viewOriginalExpense:"View original expense",paymentArrived:"Payment arrived:",accountNameConnector:"XXXX",invalidRoutingNumber:"Invalid routing number",invalidAccountNumber:"Invalid account number",invalidBankName:"Bank Name is required for account.",accountNumberDontMatch:"Your account numbers don’t match!",saveAccount:"Save Account",accountExistWarning:"Account already exists.",saveAccountManually:"Save your bank account manually",setupAchPayments:"Setup ACH Payments",loginToBank:"Log in securely to your bank to get reimbursement payments ",connectYourBank:"Connect your Bank",amountExchangeRateTooltip:"We use Open Exchange Rates to calculate the currency conversion based on real time rates at the time of transaction.",requireReceipt:"Require receipt for a value of $75 or above",emptyValue:"--",by:"By",or:"OR",deleteConfirmation:"Are you sure you want to remove?",missingReceipt:"Missing Receipt",deleteReimbursement:"Delete Reimbursement",delete:"Delete",replace:"Replace",missingReceiptDescription:"Transactions of value $75 or above require a receipt.",newReimbursementTitle:"New Reimbursement",editReimbursementTitle:"Edit Reimbursement",addReimbursement:"Add Reimbursement",addBankAccount:"Add Bank Account",yourBankAccount:"Your Bank Account:",selectBankAccount:"Select bank account",receivePaymentTo:"Receive Payment At",merchant:"Merchant:",merchantPlaceholder:"Select merchant",transactionDate:"Transaction Date:",amount:"Amount:",memo:"Memo:",category:"Category:",categoryPlaceholder:"Select category",department:"Department:",distanceInMiles:"Distance in Miles:",addMerchant:"Add merchant",datePlaceholder:"Select date",addAmount:"Add amount",addMemo:"Add memo",addDepartment:"Add department",outOfPocketKey:"out_of_pocket",mileageKey:"mileage",outOfPocket:"Out of Pocket",mileage:"Mileage",addMiles:"Add miles",reportTitle:"Report Title:",lunchWithClient:"E.g. Lunch with client",whatFor:"What’s It For?",reimbursement:"Reimbursement",reimbursementType:"Reimbursement Type:",reportStatus:"Report Status",total:"Total",banner:"Zeni has retrieved data from this receipt(s) and auto-filled this report.",discardTitle:"Discard unsaved changes?",discardDescription:"Changes are not automatically saved. Your changes will be lost if you continue.",overwriteTitle:"Are you sure you want to overwrite the data?",overwriteDescription:"By overwriting the data, you will replace the existing row content with the data from the new receipt which you uploaded.",uploadLimitTitle:"You have exceeded the file upload size limit",uploadLimitDescription:"Please make sure the size of all receipts should not exceed 32MB. You could either compress the file sizes or upload another report",buttons:{rejectReport:"Reject Report",reject:"Reject",approveReport:"Approve Report",approve:"Approve",deleteReport:"Delete Report",editAndResubmit:"Edit & Re-Submit",edit:"Edit",saveChanges:"Save Changes",save:"Save",resubmit:"Re-Submit",submit:"Submit",discardChanges:"Discard Changes",delete:"Delete",cancel:"Cancel",send:"Send",cancelAndDelete:"Cancel & Delete",remove:"Remove",yes:"Yes",no:"No",discard:"Discard",okay:"Okay"},deleteDraftTitle:"Delete draft?",deleteReportTitle:"Delete Report?",cancelReportTitle:"Cancel Report?",cancelAndDeleteReportTitle:"Cancel & Delete Report?",deleteAlertDescription:"Are you sure you want to delete this report? This action cannot be undone.",cancelAlertDescription:"Are you sure you want to cancel this report? This action cannot be undone.",cancelAndDeleteAlertDescription:"Are you sure you want to cancel & delete this report? This action cannot be undone.",deleteBankAccountTitle:"Are you sure you want to delete this bank account?",deleteBankAccountDescription:"If submitted reimbursements are using this account, they will get paid on the same. However, you’ll have to select an existing one or add a new account to submit new reimbursements.",noReceiptAttached:"No receipt attached",dropReceipt:{upload:"Upload",single:"single",or:"or",multiple:"multiple",receipts:"receipts",receipt:"receipt"},dropReceiptDescription:"Zeni will read the receipt(s) and autofill the reimbursement for you.",reimbursementActivity:"Reimbursement Activity",rejectRemiTitlePrefix:"Reject reimbursement for",rejectRemiDescription:"By rejecting this payment the approval process will not move forward and no payments will be issued. Help your team understand why this bill should not be paid.",rejectRejectReasonPlaceholder:"Add rejection reason (required)"},bulkActions:{exceptions:{processingSelectTogether:'Only reports under "Processing" status can be selected together.',processingWithOthers:'Report(s) under "Processing" status can’t be selected with others.'},duplicateWarning:{title:"An update to this report is currently in progress.",description:"Please wait until the process is complete before making any further changes."},popUps:{reject:{title:"Reject __report__",description:"By rejecting <_this_> <_payment_>, the approval process will not move forward and no <_payment_> will be issued. Help your team understand why <_this_> __report__ should not be paid."},delete:{title:"Delete __report__",descriptionDraft:"Are you sure you want to delete <_this_> __report__? This action cannot be undone.",descriptionOther:"By deleting <_this_> __report__, <_it_> will not move forward and no <_payment_> will be issued. Help your team understand why."},cancel:{title:"Cancel __report__",description:"By cancelling <_this_> __report__, <_it_> will not move forward and no <_payment_> will be issued. Help your team understand why."}},reviewPage:{reportsReviewed:{title:"__report__ <_has_> been reviewed",description:"__report__ <_is_> ready to proceed.",descriptionError:"The selected __report__ <_do_> not have the required information to proceed. Please fill in all details and try again."},reportsReviewing:{title:"We are reviewing your __report__",description:"This process may take a few seconds."}},report:"Report",reports:"Reports"}},commonProgressBar:{newBillProgressStates:["Draft","Approval","Schedule","Payment"],draftProgressStates:["Created","Approval","Schedule","Payment"],scheduleProgressStates:["Created","Approved","Scheduled","Payment"],paidProgressStates:["Created","Approved","Scheduled","Paid"],offlinePaymentStates:["Created","Approved","Schedule","Payment"],alertableStates:["rejected","returned","failed","cancelled","pending_vendor_action"],paymentDatePrefix:"Expected by",newBillProgressBarSubText:"Great! We’ve got your bill.",markedAsPaid:"Marked as Paid"},zeniAccounts:{common:{totalYieldEarned:"Total Yield Earned",currentAverageYield:"Current Average Yield:"},zeniAccountSetUp:{setupTitle:"Checking",enableAccounts:"Enable Accounts",setupSubTitle:"Manage your business verification, bank details to make Zeni work better for you.",link_account:"Linked Account",setup_payment:"Setup Payment"},accountSectionHeader:"Linked Account",zeniAccountsPromo:{title:"Checking",promoText1:"Business Banking Reimagined",promoText2:"Fast, Risk-Free, and Built for Scale",earnUptoText:{bold:"Earn up to __rate__% APY ",regular:"on your cash"},insuranceText:{bold:"Up to __amount__ ",regular:"in FDIC insurance to protect your cash"},noHiddenFee:{bold:"No hidden or monthly fees, ",regular:"just great banking"},expertSupport:{bold:"24/7 expert support ",regular:"from your Zeni team"},scheduleDemoButton:"Schedule Demo",setupAccountsButton:"Setup Checking",terms:{terms1:'By clicking "Setup Checking", I have read and accepted the ',zeniAgreement:"Zeni Accounts Agreement",terms2:" and ",privacyPolicy:"Privacy Policy",terms3:" ✌🏻"},disclaimer:"Zeni is a financial technology company and not a bank. Banking services are provided by Thread Bank; Member FDIC.",iconTexts:{title:"Traditional Banks",unInsuredAmount:"$2.75M",unInsured:"Uninsured",insuredAmount:"$250K",insured:"FDIC Insured",fdicCovered:"FDIC Insured",footNote:"Based on an example balance of $3M",yAxisAmounts:["$3M","$2.5M","$2M","$1.5M","$1M","$500K","$0"]},orText:"OR"},zeniAccountList:{title:"Accounts",noDataText:`To add new account, click on the
|
|
368
|
-
'Add Business Account' button and get started.`,totalAvailableBalance:"Available Balance",insuredFund:"Insured Funds",insuranceInfo:"Up to __amount__ FDIC Insured",currentAverageYield:"Current Average Yield:",active:"Active",unlinkAccount:"Unlink Account",addFundBtnText:"Add Funds",addAccountText:"Add Business Account",linkExternalAccount:"Link External Account",yieldTooltip:"This is the amount you've earned on your funds since opening your accounts.",insuranceTooltip:"Your accounts are FDIC insured up to __amount__. You are protected by the highest level of FDIC insurance currently available.",balanceTooltip:{base:"Your Available balance does not include processing transactions.",balance:"Total balance:",processing:"Processing transactions:",available:"Available balance:"},createPopUpInfo:{title:"Add a business account",description:"This will create a new business account with its own account number.",primaryButtonText:"Create",secondaryButtonText:"Cancel",placeholder:"Add account nickname"},addFundsPopUpInfo:{title:"Account is now set up.",description:"Add funds to this account. Your balance is covered up to __amount__ by FDIC Insurance, and you will earn up to __rate__% APY. Don't miss our example below to see what you could gain!",primaryButtonText:"Add funds",secondaryButtonText:"Not now"},billPayupPopUpInfo:{title:"Take Me to Bill Pay",description:"You can access bills feature when you want to pay someone.",primaryButtonText:"Proceed",secondaryButtonText:"Not Now"},tabsById:{zeniAccounts:"Checking",externalAccounts:"External Accounts",wireDetails:"Wire Details",achDetails:"ACH Details"},transferDrawer:{calculator:{sliderTooltipText:"% APY",greaterThanTwoAndHalfMillion:"> 2.5M",footerText:{earnUptoText:"Earn up to __rate__% APY",showYieldCalculator:"Show Yield Calculator",annualYieldEarned:"Annual Yield Earned:",annualYieldEarnedTooltipText:"This is the amount you'll earn on your funds on an annualized basis.",forTotalBalance:"For Total Balance:",for:"For ",hide:"Hide"},heading:"Your balance is covered up to __amount__ by FDIC Insurance, and you will earn up to __rate__% APY. Don't miss our example below to see what you could gain!"},title:"Transfer Between Accounts",subTitle:"Transferred funds typically take 1-2 business days to show in the account.",amountLabel:"Amount",amountError:"Amount is required to transfer between accounts",transferFromLabel:"Transfer From",transferFromError:"Select account to transfer between accounts",transferToError:"Select account to transfer between accounts",transferToLabel:"Transfer To",amountPlaceholder:"$0",transferFromPlaceholder:"Select Account",transferToPlaceholder:"Select Account",holiday:"holiday",footNote:'By clicking "Transfer," I authorize Zeni to initiate the transfer.',cancelBtn:"Cancel",transferBtn:"Transfer",internal:{transferSuccessMsgPrefix:"You’ve transferred ",transferSuccessMsgMidfix:" from ",transferSuccessMsgMidfix2:" to "},external:{transferSuccessMsgPrefix:"You’ve transferred ",transferSuccessMsgMidfix:" from ",transferSuccessMsgMidfix1:" to ",transferSuccessMsgMidfix2:" The money should arrive within 1-2 business days."},anotherTransferBtn:"Another Transfer",selectAddAccount:"Add Bank Account",reviewAndConfirm:"Review & Confirm",theDaily:"The daily bank transfer limit is __dailyLimit__.",sinceYourDeposit:" Since your deposit exceeds the limit, the amount will be split across multiple days.",splitPaymentTimeline:"Split Payment Timeline",youCanUse:"You can use a wire transfer if you want to transfer the entire amount at once. ",wireTransfer:"Wire Transfer",selectYour:"Select your Zeni Checking Account for incoming wire",wireInstruction:"Wire Instructions for __accountName__",backToChecking:"Back to Checking",wireTransferDescriptionLine1:"Initiate the wire from your bank using the instructions below. Wires must come from a domestic bank account. Your deposit will show up in Zeni the next business day after you send it.",wireTransferDescriptionLine2:"Your wire will reflect in your account the day after submission. Note that foreign or third-party wires are not accepted at this time."},checkDepositDrawer:{title:"Check Deposit",subTitle:"Deposited check usually take 4-5 business days to appear in your account.",amountLabel:"Amount:",sourceLabel:"Source of Deposit:",depositToLabel:"Deposited To:",amountPlaceholder:"$0",sourcePlaceholder:"Type here",depositToPlaceholder:"Select Account",footNote:'By clicking "Deposit", I authorize Zeni to initiate the deposit',cancelBtn:"Cancel",depositBtn:"Deposit",checkPicLabel:"Check Pictures",picGuides:['Sign the check and write "For mobile deposit at Zeni only" on the back of the check.',"Make sure all account info is clearly visible.","Checks must be issued by a US bank."],transferSuccessMsgPrefix:"We’re reviewing your ",transferSuccessMsgSuffix:" check deposit. The money should arrive within 1 to 2 business days. Please keep the check with you until it clears.",goToAccountBtn:"Go to Account",makeAnotherTransferBtn:"Deposit Another Check",frontSide:"Front Side",frontSideError:"Front side picture is required for check deposit.",backSideError:"Back side picture is required for check deposit.",backSide:"Back Side",uploadDocument:"Upload document",dragDropClickPlaceholder:"Drag & Drop or Click"}},zeniAccountDetail:{title:"Zeni Saving",accDetails:"Account Details",bankLetter:"Bank Letter",bankLetterPdf:"zeni-bank-letter-",viewAll:"View All",transactions:"Recent Transactions",statements:"Statements",bankLetterTitle:"Zeni - Bank Verification Letter",achTitle:"ACH Details",wireTitle:"Domestic Wire Details",intlWireTitle:"International Wire Details",show:"Show",hide:"Hide",closeAccountPopUp:{title:"Are you sure?",description:"Your remaining balance will be immediately transferred to your Primary checking account, ending with ",primaryButtonText:"Yes",secondaryButtonText:"No"},editNamePopUp:{title:"Edit nick name",description:"Account nickname",primaryButtonText:"Update",secondaryButtonText:"Cancel"},nullScreenHeading:"Current balance is $0",noTransactionText:"You don't have any transactions yet!"},transactionList:{title:"- Transactions"},moveMoney:{title:"Move Money",closeAccount:"Close Account",editNickName:"Edit Account Nick Name",accountStatement:"Account Statements",sendMoney:"Send Money",payBills:"Pay Bills",transfer:"Transfer Between Accounts",checkDeposit:"Deposit a Check"},statements:{title:"Accounts Statements",noStatements:"No Statements found"},expressPay:{pageTitle:"Send Money",schedulePayment:"Schedule Payment",sendMoney:"Send Money",recipientSectionTitle:"Who’s It For?",paymentSectionTitle:"Payment Details",recipientName:"Recipient Name:",recipientType:"Recipient Type:",recipientEmail:"Recipient Email:",paymentTo:"Add account",reciept:"Receipt / Invoice:",placeholders:{recipientName:"Search or type a recipient name",recipientNameMobile:"Type a recipient name",recipientType:"Select type",recipientEmail:"Add email",paymentTo:"Add account"},progressBar:{stateOne:"Recipient Details",stateTwo:"Payment Details",stateThree:"Review & Schedule"},phoneNumberPopup:"Users must verify their phone number. We recommend using a phone number that you access frequently."}},activity:{approvals:"Approvals",activity:"Activity"},filters:{categoryPlaceholder:"Category",categoryOptions:{},filterByLabel:"Filter By",addFilterBtnText:"Add Filter",clearFilterBtnText:"Clear filter",clearAllBtnText:"Clear All",from:"From",to:"To",enDash:"–",select:"Select",searchPlaceholder:"Search For Vendors",filterCategories:{bills:{vendorName:"Vendor",paymentMethod:"Payment Method",paymentType:"Payment Type",status:"Status",amount:"Amount",creationDate:"Creation Date",invoiceDate:"Invoice Date",paymentDate:"Payment Date",dueDate:"Due Date"},reimbursements:{createdBy:"Created By",paymentMethod:"Payment Method",status:"Status",amount:"Amount",creationDate:"Creation Date",receiptDate:"Submitted Date"},taskManagement:{status:"Status",priority:"Priority",dueDate:"Due Date",tag:"Tag",creationDate:"Created At",assignee:"Assignee"},chargeCardPaymentHistory:{repaymentDate:"Payment Date",sourceAccount:"Source Account",status:"Payment Status",initiatedBy:"Initiated By"}},filterOptions:{billAmountOptions:[{label:"< 5K",value:"-10000000<->5000"},{label:"5K to 10K",value:"5000<->10000"},{label:"10K to 20K",value:"10000<->20000"},{label:"> 20K",value:"20000<->10000000"}],reimbursementAmountOptions:[{label:"< 100",value:"-10000000<->100"},{label:"100 to 500",value:"100<->500"},{label:"500 to 1000",value:"500<->1000"},{label:"> 1000",value:"1000<->10000000"}],paymentMethodOptions:[{label:"ACH",value:"ach_standard"},{label:"ACH Same Day",value:"ach_same-day"},{label:"Domestic Wire",value:"wire_us-domestic"},{label:"International Wire",value:"wire_international"},{label:"Offline",value:"outside-zeni_outside-zeni"}],paymentHistoryStatusOptions:[{label:"In Progress",value:"Pending"},{label:"Complete",value:"Sent"},{label:"Failed",value:"Rejected"}],commonStatusOptions:[{label:"Draft",value:"draft"},{label:"Pending Approval",value:"pending_approval"},{label:"Approved",value:"approved"},{label:"Rejected",value:"rejected"},{label:"Scheduled",value:"scheduled"},{label:"Processing",value:"processing"},{label:"Paid",value:"paid"},{label:"Canceled",value:"cancelled"},{label:"Returned",value:"returned"},{label:"Failed",value:"failed"}],billStatusOptions:[{label:"Pending Vendor Action",value:"pending_vendor_action"},{label:"Overdue",value:"overdue"}],billPaymentTypeOptions:[{label:"One-time Payment",value:"one-time"},{label:"Recurring Payment",value:"recurring"}]}},moreMenuOptions:[{label:"Settings",value:"settings"},{label:"Download",value:"download"},{label:"Pay Early",value:"payEarly"},{label:"Statements",value:"statements"},{label:"Payment History",value:"paymentHistory"}],downloads:{defaultDownloadFileName:"Spend Management Transactions.xlsx",download:"Download",downloading:"Downloading..."},chargeCard:{statements:{title:"Credit Card Statements",noStatements:"No Statements found"},paymentHistory:{retryPayment:"Retry Payment",autopay:"Autopay",manual:"Manual",sourceAccountUnknown:"Unknown Account",searchPlaceHolder:"Search payment history...",pageTitle:"Credit Card Payment History",header:{paymentDate:"Payment Date",sourceAccount:"Source Account",paymentStatus:"Payment Status",initiatedBy:"Initiated By",amount:"Amount"},status:{PendingReview:"In Progress",Pending:"In Progress",Sent:"Complete",Clear:"Complete",Rejected:"Failed",Returned:"Failed"},noPaymentHistoryMatchedSearch:"No payment history matched your search.",noPaymentHistoryAvailable:"No payment history found."},common:{reasonLabel:"Reason",expense:"expense",expenses:"expenses",cards:"Cards",card:"Card",selected:"Selected",reason:{lost:"Lost or stolen",fraud:"Fraud detected",not_needed:"Not needed",other:"Other"},recurringExpenses:"Recurring Expenses",merchant:"Merchant",nextPaymentDate:"Next Payment Date",amount:"Amount",letUsKnowWhy:"Let Us Know Why"},closeCard:{reasonPlaceholder:"Add reason (optional)",closeCards:"Close Cards",closeCard:"Close Card",multipleCardsNoRecurringExpenses:"Closing these _number_of_cards_ cards will be a permanent action.",multipleCardsHasRecurringExpenses:"Closing these _number_of_cards_ cards cancel _number_of_recurring_expenses_ recurring",multipleCardsHasRecurringExpensesSuffix:" linked to it. This is a permanent action.",firstCardHasRecurringExpenses:"Closing this card will cancel _number_of_recurring_expenses_ recurring _expense_ linked to it. This is a permanent action.",youNeedToProvideReasonToCloseCard:"You need to provide a reason to close the card"},lockCard:{reasonPlaceholder:"Add reason (optional)",youNeedToProvideReasonToLockCard:"You need to provide a reason to lock the card",lockCards:"Lock Cards",lockCard:"Lock Card",firstCardNoRecurringExpenses:"Locking this card pauses all expenses through it. You can unlock it anytime to resume.",firstCardHasRecurringExpenses:"Locking this card pauses _number_of_recurring_expenses_ recurring _expense_ linked to it. You can unlock it anytime to resume.",multipleCardsNoRecurringExpenses:"These _number_of_cards_ cards will be locked but can be unlocked later.",multipleCardsHasRecurringExpenses:"These _number_of_cards_ cards will be locked but can be unlocked later, pausing its _number_of_recurring_expenses_ recurring"},cardList:{overview:"Overview",totalCashback:"Total Cashback",moreActionsTooltip:"More actions",title:{debit:"Debit Cards",credit:"Credit Cards",cards:"Cards"},searchPlaceHolder:"Search by owner, card name or department",sortBy:"Sort By:",headerElementDisplayName:"Spend management list view inner element type",newBtnLabel:"New",noDataWithFilterText:"No cards matched your search.",noDataText:'Click on the "New" button to issue cards.',getStarted:"Get Started",bulkActions:{exceptionMessages:{closedCardsCannotBeSelected:"Closed cards can't be selected",onlyCardsUnderStatusCanBeSelectedTogether:"Only cards under __status__ status can be selected together",cardAlreadyLocked:"Card is already locked",onlyActiveCardsCanBeLocked:"Only active cards can be locked",cardNotLocked:"Card is not locked",onlyActiveOrInactiveCardsCanBeClosed:"Only active or inactive cards can be closed",onlyActiveOrLockedCardsCanHaveLimitsUpdated:"Only active or locked cards can have limits updated",onlyCardsWithPendingInvitesCanBeRevoked:"Only cards with pending invites can be revoked",cardCannotBeSelectedForAction:"This card cannot be selected for this action"},selected:" selected"},header:{owner:"Owner",cardName:"Card Name",cardType:"Card Type",utilisation:"Utilization",status:"Status",limit:"Limit"},status:{active:"Active",inactive:"Pending Activation",frozen:"Frozen",stolen:"Stolen",lost:"Lost",closed_by_customer:"Closed",suspected_fraud:"Suspected Fraud",request_on_hold:"Pending",locked:"Locked",closed:"Closed"},unassignedCard:"Unassigned Cards: ",slashMonth:"/ Month",virtualCard:"Virtual",physicalCard:"Physical",tooltip:{business_virtual_credit_card:{cardUser:" needs to complete their profile to access this card.",self:"You need to complete your profile to access this card."},business_physical_credit_card:{cardUser:" needs to complete their profile before the card can be shipped.",self:"You need to complete your profile before the card can be shipped."},business_virtual_debit_card:{cardUser:" needs to complete their profile to access this card.",self:"You need to complete your profile to access this card."},business_physical_debit_card:{cardUser:" needs to complete their profile before the card can be shipped.",self:"You need to complete your profile before the card can be shipped."}},sendReminder:"Send Reminder",creditCardBalance:"Credit Card Balance",debitCardSpend:"Debit Card Spend",compareToLastMonth:"compared to last month"},cashbackDetail:{header:{month:"Month",cashback:"Cashback"},title:"Cashback",totalEarned:"Total Earned",redeemed:"Redeemed",available:"Available",tillDate:"Till Date"},issueCard:{card:"Card",title:"New Card",creditCard:"Credit Card",debitCard:"Debit Card",usersPlaceholder:"Who’s it for?",cardNamePlaceholder:"Add card name",amountPlaceholder:"Add amount",frequencyPlaceholder:"Select frequency",cardholderLabel:"Cardholder: ",cardholdersLabel:"Cardholders: ",connectedAccountLabel:"Connected Account: ",selectAccountPlaceholder:"Select account",cardNameLabel:"Card Name: ",amountLabel:"Amount: ",frequencyLabel:"Frequency: ",amountExceedError:"Amount exceeds _amount_ limit",amountExceedDebitCardError:"Amount exceeds the max. limit of _amount_",primaryBtnText:"Issue Card",secondaryBtnText:"Cancel",physicalCard:"Physical",virtualCard:"Virtual",frequencySubLabels:{monthly:"Limit resets every calendar month",quarterly:"Resets every 3 calendar months (Jan, Apr, Jul, Oct)",weekly:"Limit resets every Monday (12 UTC)",yearly:"Limit resets every calendar year"},address:{custom:"Custom",personal:"Personal",company:"Company",shippingAddressLabel:"Shipping Address:",customAddressText:"Address used to ship the card and won't be saved",personalAddressText:"Address set by _name_ in their personal profile",addCustomAddress:"Add Custom Address"},addCard:"Add Card",deleteCard:"Delete Card",type:"Type:",remove:"Remove",deleteConfirmation:"Are you sure you want to remove?",additionalInfoPhysical:"You can choose only one cardholder",additionalInfoVirtual:"You can choose multiple cardholders",cardLimitWarning:"Card Limit Reached"},cardOnboarding:{title:"Activate Your Card",oneLastStep:"One last step!",sectionTitle:"Personal Details",addressAdditionalInfo:"Physical card will be delivered to this address.",cvvPlaceholder:"Enter CVV",cardIsOnItsWay:"Congratulations! You're all set and your card is on its way",activateYourCard:"Congratulations! You're all set to activate your card",setYourPin:"Congratulations! Your card is activated—set your PIN to start using it",setFourDigitPIN:"Set a four-digit PIN",setFourDigitPinTitle:"Set a 4-digit numeric PIN for your card ending",setPin:"Set PIN",validExpiryDate:"Please ensure you enter a valid expiry date",validCVV:"Please ensure you enter a valid CVV",yourCardWillShipToBelow:"Your card will ship to below address in 7-10 business days",cardShippingAddress:"Card shipping address",creditCardLimit:"Credit card limit:",debitCardLimit:"Debit card limit:"},cardDetails:{cardClosedMessage:"The card is closed and can no longer be used.",cardLockedByAdminMessage:"Your card is locked by an Admin. Contact Admin to unlock it.",cardLockedMessage:"This card is currently locked and can't be used.",existingPin:"Existing PIN:",newPin:"New PIN:",pinAttemptsReached:"PIN attempts reached. Please try again after 24 hours",incorrectCurrentPIN:"Incorrect existing PIN. Please try again.",forgotYourPin:"Forgot your PIN?",callTollFree:"Call the toll-free number on the back of your card to reset it.",moreOptions:{changePin:"Change PIN",updateSpendLimit:"Update Spend Limit",rename:"Rename",lock:"Lock",unlock:"Unlock",close:"Close",revokeInvite:"Revoke Invite"},header:{merchant:"Merchant",paymentDate:"Payment Date",receipts:"Receipts",type:"Type",amount:"Amount"},singleFileUploadSizeErrorMessage:"File size exceeds the maximum limit. Please upload a file under __maxFileSize__",multipleFileUploadSizeErrorMessage:"One or more files exceed the maximum limit. Please upload files under __maxFileSize__ each",paymentDate:"Payment Date:",failedToFetchCardWebText:"Failed to load card details. Please click to try again.",failedToFetchCardMobileText:"Failed to load card details. Please tap to try again.",clickTheCardToCopyDetailsText:"Click the card to copy details",clickTheCardToFetchDetailsText:"Click the card to fetch details",adminsCannotAccess:"Admins cannot access card details of another user.",tapCardCopyText:"Tap card > Copy details > Add to wallet",verifyCard:"Verify Card",cardColours:"Card Colors",limit:"Limit",perMonth:"Per Month",owner:"Card Owner",address:"Billing Address",transactionListTitle:"Transactions",transactionListTooltip:"Transactions over $__receiptRequiredAboveAmount__ need receipts, as per policy.",noDataText:"You don’t have any transactions yet!",viewReceipt:"View Receipt",addReceipt:"Add Receipt",addMissingReceipt:"Add Missing Receipt",transactionTable:{emptyTransactions:{title:"Your card is ready!",subTitle:"Use it today and easily track your spendings"},pendingProfileCompletion:{title:"Pending profile completion",subTitle:{business_physical_credit_card:`__user__ needs to complete their profile
|
|
368
|
+
'Add Business Account' button and get started.`,totalAvailableBalance:"Available Balance",insuredFund:"Insured Funds",insuranceInfo:"Up to __amount__ FDIC Insured",currentAverageYield:"Current Average Yield:",active:"Active",unlinkAccount:"Unlink Account",addFundBtnText:"Add Funds",addAccountText:"Add Business Account",linkExternalAccount:"Link External Account",yieldTooltip:"This is the amount you've earned on your funds since opening your accounts.",insuranceTooltip:"Your accounts are FDIC insured up to __amount__. You are protected by the highest level of FDIC insurance currently available.",balanceTooltip:{base:"Your Available balance does not include processing transactions.",balance:"Total balance:",processing:"Processing transactions:",available:"Available balance:"},createPopUpInfo:{title:"Add a business account",description:"This will create a new business account with its own account number.",primaryButtonText:"Create",secondaryButtonText:"Cancel",placeholder:"Add account nickname"},addFundsPopUpInfo:{title:"Account is now set up.",description:"Add funds to this account. Your balance is covered up to __amount__ by FDIC Insurance, and you will earn up to __rate__% APY. Don't miss our example below to see what you could gain!",primaryButtonText:"Add funds",secondaryButtonText:"Not now"},billPayupPopUpInfo:{title:"Take Me to Bill Pay",description:"You can access bills feature when you want to pay someone.",primaryButtonText:"Proceed",secondaryButtonText:"Not Now"},tabsById:{zeniAccounts:"Checking",externalAccounts:"External Accounts",wireDetails:"Wire Details",achDetails:"ACH Details"},transferDrawer:{calculator:{sliderTooltipText:"% APY",greaterThanTwoAndHalfMillion:"> 2.5M",footerText:{earnUptoText:"Earn up to __rate__% APY",showYieldCalculator:"Show Yield Calculator",annualYieldEarned:"Annual Yield Earned:",annualYieldEarnedTooltipText:"This is the amount you'll earn on your funds on an annualized basis.",forTotalBalance:"For Total Balance:",for:"For ",hide:"Hide"},heading:"Your balance is covered up to __amount__ by FDIC Insurance, and you will earn up to __rate__% APY. Don't miss our example below to see what you could gain!"},title:"Transfer Between Accounts",subTitle:"Transferred funds typically take 1-2 business days to show in the account.",amountLabel:"Amount",amountError:"Amount is required to transfer between accounts",transferFromLabel:"Transfer From",transferFromError:"Select account to transfer between accounts",transferToError:"Select account to transfer between accounts",transferToLabel:"Transfer To",amountPlaceholder:"$0",transferFromPlaceholder:"Select Account",transferToPlaceholder:"Select Account",holiday:"holiday",footNote:'By clicking "Transfer," I authorize Zeni to initiate the transfer.',cancelBtn:"Cancel",transferBtn:"Transfer",internal:{transferSuccessMsgPrefix:"You’ve transferred ",transferSuccessMsgMidfix:" from ",transferSuccessMsgMidfix2:" to "},external:{transferSuccessMsgPrefix:"You’ve transferred ",transferSuccessMsgMidfix:" from ",transferSuccessMsgMidfix1:" to ",transferSuccessMsgMidfix2:" The money should arrive within 1-2 business days."},anotherTransferBtn:"Another Transfer",selectAddAccount:"Add Bank Account",reviewAndConfirm:"Review & Confirm",theDaily:"The daily bank transfer limit is __dailyLimit__.",sinceYourDeposit:" Since your deposit exceeds the limit, the amount will be split across multiple days.",splitPaymentTimeline:"Split Payment Timeline",youCanUse:"You can use a wire transfer if you want to transfer the entire amount at once. ",wireTransfer:"Wire Transfer",selectYour:"Select your Zeni Checking Account for incoming wire",wireInstruction:"Wire Instructions for __accountName__",backToChecking:"Back to Checking",wireTransferDescriptionLine1:"Initiate the wire from your bank using the instructions below. Wires must come from a domestic bank account. Your deposit will show up in Zeni the next business day after you send it.",wireTransferDescriptionLine2:"Your wire will reflect in your account the day after submission. Note that foreign or third-party wires are not accepted at this time."},checkDepositDrawer:{title:"Check Deposit",subTitle:"Deposited check usually take 4-5 business days to appear in your account.",amountLabel:"Amount:",sourceLabel:"Source of Deposit:",depositToLabel:"Deposited To:",amountPlaceholder:"$0",sourcePlaceholder:"Type here",depositToPlaceholder:"Select Account",footNote:'By clicking "Deposit", I authorize Zeni to initiate the deposit',cancelBtn:"Cancel",depositBtn:"Deposit",checkPicLabel:"Check Pictures",picGuides:['Sign the check and write "For mobile deposit at Zeni only" on the back of the check.',"Make sure all account info is clearly visible.","Checks must be issued by a US bank."],transferSuccessMsgPrefix:"We’re reviewing your ",transferSuccessMsgSuffix:" check deposit. The money should arrive within 1 to 2 business days. Please keep the check with you until it clears.",goToAccountBtn:"Go to Account",makeAnotherTransferBtn:"Deposit Another Check",frontSide:"Front Side",frontSideError:"Front side picture is required for check deposit.",backSideError:"Back side picture is required for check deposit.",backSide:"Back Side",uploadDocument:"Upload document",dragDropClickPlaceholder:"Drag & Drop or Click"}},zeniAccountDetail:{title:"Zeni Saving",accDetails:"Account Details",bankLetter:"Bank Letter",bankLetterPdf:"zeni-bank-letter-",viewAll:"View All",transactions:"Recent Transactions",statements:"Statements",bankLetterTitle:"Zeni - Bank Verification Letter",achTitle:"ACH Details",wireTitle:"Domestic Wire Details",intlWireTitle:"International Wire Details",show:"Show",hide:"Hide",closeAccountPopUp:{title:"Are you sure?",description:"Your remaining balance will be immediately transferred to your Primary checking account, ending with ",primaryButtonText:"Yes",secondaryButtonText:"No"},editNamePopUp:{title:"Edit nick name",description:"Account nickname",primaryButtonText:"Update",secondaryButtonText:"Cancel"},nullScreenHeading:"Current balance is $0",noTransactionText:"You don't have any transactions yet!"},transactionList:{title:"- Transactions"},moveMoney:{title:"Move Money",closeAccount:"Close Account",editNickName:"Edit Account Nick Name",accountStatement:"Account Statements",sendMoney:"Send Money",payBills:"Pay Bills",transfer:"Transfer Between Accounts",checkDeposit:"Deposit a Check"},statements:{title:"Accounts Statements",noStatements:"No Statements found"},expressPay:{pageTitle:"Send Money",schedulePayment:"Schedule Payment",sendMoney:"Send Money",recipientSectionTitle:"Who’s It For?",paymentSectionTitle:"Payment Details",recipientName:"Recipient Name:",recipientType:"Recipient Type:",recipientEmail:"Recipient Email:",paymentTo:"Add account",reciept:"Receipt / Invoice:",placeholders:{recipientName:"Search or type a recipient name",recipientNameMobile:"Type a recipient name",recipientType:"Select type",recipientEmail:"Add email",paymentTo:"Add account"},progressBar:{stateOne:"Recipient Details",stateTwo:"Payment Details",stateThree:"Review & Schedule"},phoneNumberPopup:"Users must verify their phone number. We recommend using a phone number that you access frequently."}},activity:{approvals:"Approvals",activity:"Activity"},filters:{categoryPlaceholder:"Category",categoryOptions:{},filterByLabel:"Filter By",addFilterBtnText:"Add Filter",clearFilterBtnText:"Clear filter",clearAllBtnText:"Clear All",from:"From",to:"To",enDash:"–",select:"Select",searchPlaceholder:"Search For Vendors",filterCategories:{bills:{vendorName:"Vendor",paymentMethod:"Payment Method",paymentType:"Payment Type",status:"Status",amount:"Amount",creationDate:"Creation Date",invoiceDate:"Invoice Date",paymentDate:"Payment Date",dueDate:"Due Date"},reimbursements:{createdBy:"Created By",paymentMethod:"Payment Method",status:"Status",amount:"Amount",creationDate:"Creation Date",receiptDate:"Submitted Date"},taskManagement:{status:"Status",priority:"Priority",dueDate:"Due Date",tag:"Tag",creationDate:"Created At",assignee:"Assignee"},chargeCardPaymentHistory:{repaymentDate:"Payment Date",sourceAccount:"Source Account",status:"Payment Status",initiatedBy:"Initiated By"}},filterOptions:{billAmountOptions:[{label:"< 5K",value:"-10000000<->5000"},{label:"5K to 10K",value:"5000<->10000"},{label:"10K to 20K",value:"10000<->20000"},{label:"> 20K",value:"20000<->10000000"}],reimbursementAmountOptions:[{label:"< 100",value:"-10000000<->100"},{label:"100 to 500",value:"100<->500"},{label:"500 to 1000",value:"500<->1000"},{label:"> 1000",value:"1000<->10000000"}],paymentMethodOptions:[{label:"ACH",value:"ach_standard"},{label:"ACH Same Day",value:"ach_same-day"},{label:"Domestic Wire",value:"wire_us-domestic"},{label:"International Wire",value:"wire_international"},{label:"Offline",value:"outside-zeni_outside-zeni"}],paymentHistoryStatusOptions:[{label:"In Progress",value:"Pending"},{label:"Complete",value:"Sent"},{label:"Failed",value:"Rejected"}],commonStatusOptions:[{label:"Draft",value:"draft"},{label:"Pending Approval",value:"pending_approval"},{label:"Approved",value:"approved"},{label:"Rejected",value:"rejected"},{label:"Scheduled",value:"scheduled"},{label:"Processing",value:"processing"},{label:"Paid",value:"paid"},{label:"Canceled",value:"cancelled"},{label:"Returned",value:"returned"},{label:"Failed",value:"failed"}],billStatusOptions:[{label:"Pending Vendor Action",value:"pending_vendor_action"},{label:"Overdue",value:"overdue"}],billPaymentTypeOptions:[{label:"One-time Payment",value:"one-time"},{label:"Recurring Payment",value:"recurring"}]}},moreMenuOptions:[{label:"Settings",value:"settings"},{label:"Download",value:"download"},{label:"Pay Early",value:"payEarly"},{label:"Statements",value:"statements"},{label:"Payment History",value:"paymentHistory"}],downloads:{defaultDownloadFileName:"Spend Management Transactions.xlsx",download:"Download",downloading:"Downloading..."},chargeCard:{statements:{title:"Credit Card Statements",noStatements:"No Statements found"},paymentHistory:{retryPayment:"Retry Payment",autopay:"Autopay",manual:"Manual",sourceAccountUnknown:"Unknown Account",searchPlaceHolder:"Search payment history...",pageTitle:"Credit Card Payment History",initiatedOn:"Initiated on:",completedOn:"Completed on:",header:{paymentDate:"Payment Date",sourceAccount:"Source Account",paymentStatus:"Payment Status",initiatedBy:"Initiated By",amount:"Amount"},status:{PendingReview:"In Progress",Pending:"In Progress",Sent:"Complete",Clear:"Complete",Rejected:"Failed",Returned:"Failed"},noPaymentHistoryMatchedSearch:"No payment history matched your search.",noPaymentHistoryAvailable:"No payment history found."},common:{reasonLabel:"Reason",expense:"expense",expenses:"expenses",cards:"Cards",card:"Card",selected:"Selected",reason:{lost:"Lost or stolen",fraud:"Fraud detected",not_needed:"Not needed",other:"Other"},recurringExpenses:"Recurring Expenses",merchant:"Merchant",nextPaymentDate:"Next Payment Date",amount:"Amount",letUsKnowWhy:"Let Us Know Why"},closeCard:{reasonPlaceholder:"Add reason (optional)",closeCards:"Close Cards",closeCard:"Close Card",multipleCardsNoRecurringExpenses:"Closing these _number_of_cards_ cards will be a permanent action.",multipleCardsHasRecurringExpenses:"Closing these _number_of_cards_ cards cancel _number_of_recurring_expenses_ recurring",multipleCardsHasRecurringExpensesSuffix:" linked to it. This is a permanent action.",firstCardHasRecurringExpenses:"Closing this card will cancel _number_of_recurring_expenses_ recurring _expense_ linked to it. This is a permanent action.",youNeedToProvideReasonToCloseCard:"You need to provide a reason to close the card"},lockCard:{reasonPlaceholder:"Add reason (optional)",youNeedToProvideReasonToLockCard:"You need to provide a reason to lock the card",lockCards:"Lock Cards",lockCard:"Lock Card",firstCardNoRecurringExpenses:"Locking this card pauses all expenses through it. You can unlock it anytime to resume.",firstCardHasRecurringExpenses:"Locking this card pauses _number_of_recurring_expenses_ recurring _expense_ linked to it. You can unlock it anytime to resume.",multipleCardsNoRecurringExpenses:"These _number_of_cards_ cards will be locked but can be unlocked later.",multipleCardsHasRecurringExpenses:"These _number_of_cards_ cards will be locked but can be unlocked later, pausing its _number_of_recurring_expenses_ recurring"},cardList:{overview:"Overview",totalCashback:"Total Cashback",moreActionsTooltip:"More actions",title:{debit:"Debit Cards",credit:"Credit Cards",cards:"Cards"},searchPlaceHolder:"Search by owner, card name or department",sortBy:"Sort By:",headerElementDisplayName:"Spend management list view inner element type",newBtnLabel:"New",noDataWithFilterText:"No cards matched your search.",noDataText:'Click on the "New" button to issue cards.',getStarted:"Get Started",bulkActions:{exceptionMessages:{closedCardsCannotBeSelected:"Closed cards can't be selected",onlyCardsUnderStatusCanBeSelectedTogether:"Only cards under __status__ status can be selected together",cardAlreadyLocked:"Card is already locked",onlyActiveCardsCanBeLocked:"Only active cards can be locked",cardNotLocked:"Card is not locked",onlyActiveOrInactiveCardsCanBeClosed:"Only active or inactive cards can be closed",onlyActiveOrLockedCardsCanHaveLimitsUpdated:"Only active or locked cards can have limits updated",onlyCardsWithPendingInvitesCanBeRevoked:"Only cards with pending invites can be revoked",cardCannotBeSelectedForAction:"This card cannot be selected for this action"},selected:" selected"},header:{owner:"Owner",cardName:"Card Name",cardType:"Card Type",utilisation:"Utilization",status:"Status",limit:"Limit"},status:{active:"Active",inactive:"Pending Activation",frozen:"Frozen",stolen:"Stolen",lost:"Lost",closed_by_customer:"Closed",suspected_fraud:"Suspected Fraud",request_on_hold:"Pending",locked:"Locked",closed:"Closed"},unassignedCard:"Unassigned Cards: ",slashMonth:"/ Month",virtualCard:"Virtual",physicalCard:"Physical",tooltip:{business_virtual_credit_card:{cardUser:" needs to complete their profile to access this card.",self:"You need to complete your profile to access this card."},business_physical_credit_card:{cardUser:" needs to complete their profile before the card can be shipped.",self:"You need to complete your profile before the card can be shipped."},business_virtual_debit_card:{cardUser:" needs to complete their profile to access this card.",self:"You need to complete your profile to access this card."},business_physical_debit_card:{cardUser:" needs to complete their profile before the card can be shipped.",self:"You need to complete your profile before the card can be shipped."}},sendReminder:"Send Reminder",creditCardBalance:"Credit Card Balance",debitCardSpend:"Debit Card Spend",compareToLastMonth:"compared to last month"},cashbackDetail:{header:{month:"Month",cashback:"Cashback"},title:"Cashback",totalEarned:"Total Earned",redeemed:"Redeemed",available:"Available",tillDate:"Till Date"},issueCard:{card:"Card",title:"New Card",creditCard:"Credit Card",debitCard:"Debit Card",usersPlaceholder:"Who’s it for?",cardNamePlaceholder:"Add card name",amountPlaceholder:"Add amount",frequencyPlaceholder:"Select frequency",cardholderLabel:"Cardholder: ",cardholdersLabel:"Cardholders: ",connectedAccountLabel:"Connected Account: ",selectAccountPlaceholder:"Select account",cardNameLabel:"Card Name: ",amountLabel:"Amount: ",frequencyLabel:"Frequency: ",amountExceedError:"Amount exceeds _amount_ limit",amountExceedDebitCardError:"Amount exceeds the max. limit of _amount_",primaryBtnText:"Issue Card",secondaryBtnText:"Cancel",physicalCard:"Physical",virtualCard:"Virtual",frequencySubLabels:{monthly:"Limit resets every calendar month",quarterly:"Resets every 3 calendar months (Jan, Apr, Jul, Oct)",weekly:"Limit resets every Monday (12 UTC)",yearly:"Limit resets every calendar year"},address:{custom:"Custom",personal:"Personal",company:"Company",shippingAddressLabel:"Shipping Address:",customAddressText:"Address used to ship the card and won't be saved",personalAddressText:"Address set by _name_ in their personal profile",addCustomAddress:"Add Custom Address"},addCard:"Add Card",deleteCard:"Delete Card",type:"Type:",remove:"Remove",deleteConfirmation:"Are you sure you want to remove?",additionalInfoPhysical:"You can choose only one cardholder",additionalInfoVirtual:"You can choose multiple cardholders",cardLimitWarning:"Card Limit Reached"},cardOnboarding:{title:"Activate Your Card",oneLastStep:"One last step!",sectionTitle:"Personal Details",addressAdditionalInfo:"Physical card will be delivered to this address.",cvvPlaceholder:"Enter CVV",cardIsOnItsWay:"Congratulations! You're all set and your card is on its way",activateYourCard:"Congratulations! You're all set to activate your card",setYourPin:"Congratulations! Your card is activated—set your PIN to start using it",setFourDigitPIN:"Set a four-digit PIN",setFourDigitPinTitle:"Set a 4-digit numeric PIN for your card ending",setPin:"Set PIN",validExpiryDate:"Please ensure you enter a valid expiry date",validCVV:"Please ensure you enter a valid CVV",yourCardWillShipToBelow:"Your card will ship to below address in 7-10 business days",cardShippingAddress:"Card shipping address",creditCardLimit:"Credit card limit:",debitCardLimit:"Debit card limit:"},cardDetails:{cardClosedMessage:"The card is closed and can no longer be used.",cardLockedByAdminMessage:"Your card is locked by an Admin. Contact Admin to unlock it.",cardLockedMessage:"This card is currently locked and can't be used.",existingPin:"Existing PIN:",newPin:"New PIN:",pinAttemptsReached:"PIN attempts reached. Please try again after 24 hours",incorrectCurrentPIN:"Incorrect existing PIN. Please try again.",forgotYourPin:"Forgot your PIN?",callTollFree:"Call the toll-free number on the back of your card to reset it.",moreOptions:{changePin:"Change PIN",updateSpendLimit:"Update Spend Limit",rename:"Rename",lock:"Lock",unlock:"Unlock",close:"Close",revokeInvite:"Revoke Invite"},header:{merchant:"Merchant",paymentDate:"Payment Date",receipts:"Receipts",type:"Type",amount:"Amount"},singleFileUploadSizeErrorMessage:"File size exceeds the maximum limit. Please upload a file under __maxFileSize__",multipleFileUploadSizeErrorMessage:"One or more files exceed the maximum limit. Please upload files under __maxFileSize__ each",paymentDate:"Payment Date:",failedToFetchCardWebText:"Failed to load card details. Please click to try again.",failedToFetchCardMobileText:"Failed to load card details. Please tap to try again.",clickTheCardToCopyDetailsText:"Click the card to copy details",clickTheCardToFetchDetailsText:"Click the card to fetch details",adminsCannotAccess:"Admins cannot access card details of another user.",tapCardCopyText:"Tap card > Copy details > Add to wallet",verifyCard:"Verify Card",cardColours:"Card Colors",limit:"Limit",perMonth:"Per Month",owner:"Card Owner",address:"Billing Address",transactionListTitle:"Transactions",transactionListTooltip:"Transactions over $__receiptRequiredAboveAmount__ need receipts, as per policy.",noDataText:"You don’t have any transactions yet!",viewReceipt:"View Receipt",addReceipt:"Add Receipt",addMissingReceipt:"Add Missing Receipt",transactionTable:{emptyTransactions:{title:"Your card is ready!",subTitle:"Use it today and easily track your spendings"},pendingProfileCompletion:{title:"Pending profile completion",subTitle:{business_physical_credit_card:`__user__ needs to complete their profile
|
|
369
369
|
before the card can be shipped`,business_virtual_credit_card:`__user__ needs to complete their profile
|
|
370
370
|
to access this card`,business_physical_debit_card:`__user__ needs to complete their profile
|
|
371
371
|
before the card can be shipped`,business_virtual_debit_card:`__user__ needs to complete their profile
|
|
@@ -457,7 +457,7 @@ You can change this for every line item on the bill. `,vendorExists:"This is an
|
|
|
457
457
|
<company_name>'s Finance team`,buttonText:"Enter <payment_type> Details"},popUp:{title:"Add Vendor Email",description:"We'll email your vendor to provide their <payment_type> details.",placeholder:"Add email",buttons:{save:"Save",cancel:"Cancel"}},magicLinkScreen:{title:"<tenant_name> wants to pay you",description:"Add your bank account details to get paid by <tenant_name> through Zeni Bill Pay.",encrypted:"Encrypted",successTitle:"Thank you for providing the account details.",successNote:"We are currently working on your payment."}},recurringBill:{paymentType:"Payment Type",recurring:"Recurring",recurringCycle:"Recurring Cycle - ",deleteRecurringTitle:"Delete Recurring Bill?",deleteRecurringAlertText:"Deleting this bill will also remove all future instances, leading to the discontinuation of payments to the vendor.",cancelAndDeleteRecurringTitle:"Cancel and Delete Recurring Bill?",cancelAndDeleteRecurringAlertText:"By proceeding, you’re not only canceling the current bill but also removing all future instances, leading to the end of payments to the vendor.",paymentTypeOptions:["One-time Payment","Recurring Payment"],frequencyOptions:[{label:"Weekly",value:"weekly"},{label:"BiWeekly",value:"biweekly"},{label:"Monthly",value:"monthly"},{label:"Quarterly",value:"quarterly"}],frequencyPlaceholder:"Select frequency",endDatePlaceholder:"Select end date",requiresApprovalOptions:{current:"For this bill only (Remaining bills in this series will be auto-approved)",all:"For all bills in this series"},requiresApprovalOptionsSelectedLabels:{current:"For this bill only",all:"For all bills in this series"},formLabels:{requiresApproval:"Requires Approval"},endDateSelector:{formLabels:{selectEndDate:"Select end date",totalPayments:"Total No. Payments"}},paymentCountPrefix:"No. of Payments",paymentSchedule:"Payment Schedule",hidePaymentSchedule:"Hide Payment Schedule",showPaymentSchedule:"Show Payment Schedule",isHoliday:"is a holiday",editRecurringPopup:{title:"Do you want to update?",selectOptions:[{label:"All bills in this series",value:"all"},{label:"This bill only",value:"current"}]}},zeniAssist:{refundTitle:"Confirm Refund",refundDescription:`Are you sure you want to initiate a refund for this bill?
|
|
458
458
|
Refund process will take 1-2 business days.`,accountNumber:"Account No.",amount:"Amount",proceed:"Proceed",tooltip:"Zeni Assist",connectToTeamTooltip:"Please connect with the engineering team to resolve this issue."},paymentOutsideZeni:{offline:"Offline",popUpTitle:"Add payment details",defaultDateInfo:"If not added, the date will default to 1st of this month.",reviewInfo:'Once approved, find this bill in your "Awaiting my Approval" tab to "Mark as Paid."',markAsPaid:"Mark as Paid",paymentModeLabel:"Payment Mode:",selectMethod:"Select method",selectDate:"Select date ",paymentModeOptions:[{label:"ACH",value:"ach"},{label:"ACH Same Day",value:"ach_same_day"},{label:"Cash",value:"cash"},{label:"Check",value:"check"},{label:"Domestic Wire",value:"us_domestic_wire"},{label:"International Wire",value:"international_wire"},{label:"Other",value:"other"}],banner:{title:'After the bill is approved, it will move to your "Awaiting My Approval" tab.',description:'Once payment is done, you can return to this bill to "Mark as Paid."'}}},bulkActions:{exceptions:{bookCloseDateDelete:"This bill can't be deleted now as it is from a previous accounting period.",bookCloseDateProcessing:"This bill can't be processed now as it is from a previous accounting period.",processingSelectTogether:'Only bills under "Processing" status can be selected together.',processingWithOthers:'Bills under "Processing" status can’t be selected with others.',cancelProcessing:"Bill payment cannot be canceled as it has been already processed.",cancelRecurring:"Recurring Bill can't be canceled.",deleteRecurring:"Recurring Bill can't be deleted.",noActionRecurring:"Recurring bill can't be canceled or deleted."},duplicateWarning:{title:"An update to this bill is currently in progress.",description:"Please wait until the process is complete before making any further changes."},popUps:{reject:{title:"Reject <_payment_>",description:"By rejecting <_this_> <_payment_>, the approval process will not move forward and no <_payment_> will be issued. Help your team understand why <_this_> <_bill_> should not be paid."},delete:{title:"Delete <_bill_>",descriptionDraft:"Are you sure you want to delete <_this_> <_bill_>? This action cannot be undone.",descriptionRecurring:"Deleting stops current <_payment_> and all the future recurring bill cycles. Help your team understand why?",descriptionOther:"By deleting <_this_> <_bill_>, <_it_> will not move forward and no <_payment_> will be issued. Help your team understand why."},cancel:{title:"Cancel <_bill_>",description:"By cancelling <_this_> <_bill_>, <_it_> will not move forward and no <_payment_> will be issued. Help your team understand why."}},reviewPage:{billsReviewed:{title:"<_bill_> <_has_> been reviewed",description:"<_bill_> <_is_> ready to proceed.",descriptionError:"The selected <_bill_> <_do_> not have the required information to proceed. Please fill in all details and try again."},billsReviewing:{title:"We are reviewing your <_bill_>",description:"This process may take a few seconds."},removeOrProceed:"Remove bill or proceed for approval"},bill:"Bill",bills:"Bills",selected:" selected",payment:"Payment",payments:"Payments"},insufficientFunds:{lowBalance:"(Low Balance)",lowBalanceIn:"Low balance in __account__",addMoney:"Low balance! Please add money to this account",addOrSwitch:"Low balance! Add money or switch accounts by __date__ to avoid bill payment failure",addOrSwitchInitiateTransfer:"Add money or switch accounts to initiate the transfer.",popUp:{title:"Low Balance",hasLowBalance:"has low balance.",addMoney:"Please add money or switch accounts by",avoidFailure:"to avoid payment failure."}}},reimbursement:{reimbursementByTabs:{newReimbursementTitle:"New Reimbursement",pageTitle:"Reimbursements",noDataText:`To add new reimbursements, click on the
|
|
459
459
|
'New Reimbursement' button and get started.`,noDataWithFilterText:"No reimbursements matched your search.",reimbursementOrganizedInfo:"All your reimbursement reports are organized in one place here.",reimbursementApprovedText:"Reimbursement approved",reimbursementRejectedText:"Reimbursement rejected",sortBy:"Sort By:",searchPlaceHolder:"Search by report name or creator",emailInfoTitle:"Add Receipts via Email",emailInfoDescription1:"Send your receipts to this email, and we'll scan them for review in your reimbursements drafts.",emailInfoDescription2:"If multiple receipts are included in the email, they will be combined into one reimbursement report.",emailInfoDescription3:"For each email you dispatch, we will draft an individual reimbursement report.",noDataTextViaMail:"Create reimbursement drafts by sending your",receiptTo:"receipts to",header:{name:"Name",type:"Type",status:"Status",amount:"Amount",submitted:"Submitted",created:"Created",paymentDate:"Payment Date",paidOn:"Paid On"},reimbursementType:{type:"Type",mileage:"Mileage",out_of_pocket:"Out of pocket",titleForBoth:"Both",both:"Out of pocket and Milleage"},tabsById:{draft:"Drafts",myDrafts:"My Drafts",pending_approval:"Approvals",scheduled:"Scheduled",paid:"Paid",all:"All",failed:"Failed",cancelled:"Canceled",overdue:"Overdue",rejected:"Rejected",awaitingApproval:"Awaiting Approval",ach:"ACH",wire:"Wire",returned:"Returned",awaitingMyApproval:"Awaiting My Approval",awaitingAllApproval:"Awaiting All Approval",deleted:"Deleted"},byText:"by",orText:"or",dots:"...",hyphenText:"-"},reimbursementPromo:{title:"Reimbursements",promoText:"Reimburse employees at lightning speed, absolutely free.",employeePendingPromoText:"Reimbursements set up process is pending, please check with your admin.",employeeAcceptPromoText:"The simplest way to apply for reimbursement",aiPoweredText:{bold:"AI-powered",regular:" receipts processing helps you create reports in seconds."},simplestText:{bold:"Simplest",regular:" way to pay employees for out-of-pocket expenses."},multiLevelApprovalText:{bold:"Multi-level approval",regular:" flows allow you to stay in control of payments."},setupReimbursementButton:"Setup Reimbursements",scheduleDemoButton:"Schedule Demo",createNewReimbursementButton:"Create New Reimbursements",terms:{setupTerms1:'By clicking "Setup Reimbursements", I have read and accepted the ',createTerms1:'By clicking "Create New Reimbursements", you agree to our ',zeniAgreement:"Terms of Service",terms2:" and ",privacyPolicy:"Privacy Policy",privacyPolicyUrl:"https://www.zeni.ai/privacy-policy",tosUrl:"https://www.zeni.ai/terms",terms3:". ✌🏻"},orText:"OR"},reimbursementSetup:{yourMileage:"Your mileage rate should be the same or higher than ¢ __defaultMileageUnitAmount__ as per IRS guidelines.",setupTitle:"Reimbursements",setupSubTitle:"To setup reimbursements - we require you to confirm your business identity, set up ACH details and mileage rates.",approvalSubTitle:"Reimbursements will require approvals based on the rules you create.",enableReimbursements:"Enable Reimbursements",terms:'By clicking "Enable Reimbursements," I authorize Zeni to debit from this bank account to repay using Zeni Reimbursements.',mileageHeader:"Setup Mileage Rate",mileageEditTitle:"Edit Mileage Rate",mileageAddTitle:"Add Mileage Rate",mileageSubTitle:"Standard mileage rate you've to set for business-related travel.",perText:"per",save:"Save"},reimbursementApproval:{approvalPageSubTitle:"All reimbursements will go through the following approval policy.",amountPerRemiLabel:"If amount per reimbursement is between:",amountPerRemiGreaterLabel:"If amount per reimbursement is greater than or equal to:"},reimbursementDetail:{deletedCategoryError:"Selected category was deleted in QuickBooks. Please select an active one.",deletedClassError:"Selected class was deleted in QuickBooks. Please select an active one.",duplicatePopUpInfo:{title:"Preparing For Submission",primaryButtonText:"Review Report",secondaryButtonText:"Submit Anyway",reviewingExpenses:"Reviewing expenses",reviewedAllExpenses:"Reviewed all expenses",detectDuplicates:"Detect duplicates",detectingDuplicates:"Detecting duplicates",duplicateExpensesFound:"Duplicate expense(s) found",failedToSubmit:"Failed to submit, please try again",failedToDetect:"Failed to detect duplicate bills, please try again",noDuplicatesFound:"No duplicates found",submitReport:"Submit report",submittingReport:"Submitting report"},thereSeems:"There seems to be a duplicate expense(s) uploaded in this report.",pleaseFind:"Please find more details below.",thisExpense:"This expense is a duplicate. Make sure you are not submitting again.",thisExpenseReview:"This expense is a duplicate. Please review it before approving.",viewOriginalExpense:"View original expense",tooltip:{category:'The "category" update recommendation is __based__'},paymentArrived:"Payment arrived:",accountNameConnector:"XXXX",invalidRoutingNumber:"Invalid routing number",invalidAccountNumber:"Invalid account number",invalidBankName:"Bank Name is required for account.",accountNumberDontMatch:"Your account numbers don’t match!",saveAccount:"Save Account",accountExistWarning:"Account already exists.",saveAccountManually:"Save your bank account manually",setupAchPayments:"Setup ACH Payments",loginToBank:"Log in securely to your bank to get reimbursement payments ",connectYourBank:"Connect your Bank",amountExchangeRateTooltip:"We use Open Exchange Rates to calculate the currency conversion based on real time rates at the time of transaction.",requireReceipt:"Require receipt for a value of $75 or above",emptyValue:"--",by:"By",or:"OR",deleteConfirmation:"Are you sure you want to remove?",missingReceipt:"Missing Receipt",deleteReimbursement:"Delete Reimbursement",delete:"Delete",replace:"Replace",missingReceiptDescription:"Transactions of value $75 or above require a receipt.",newReimbursementTitle:"New Reimbursement",editReimbursementTitle:"Edit Reimbursement",addReimbursement:"Add Reimbursement",addBankAccount:"Add Bank Account",yourBankAccount:"Your Bank Account:",selectBankAccount:"Select bank account",receivePaymentTo:"Receive Payment At",merchant:"Merchant:",merchantPlaceholder:"Select merchant",transactionDate:"Transaction Date:",amount:"Amount:",memo:"Memo:",category:"Category:",categoryPlaceholder:"Select category",department:"Department:",distanceInMiles:"Distance in Miles:",addMerchant:"Add merchant",datePlaceholder:"Select date",addAmount:"Add amount",addMemo:"Add memo",addDepartment:"Add department",outOfPocketKey:"out_of_pocket",mileageKey:"mileage",outOfPocket:"Out of Pocket",mileage:"Mileage",addMiles:"Add miles",reportTitle:"Report Title:",lunchWithClient:"E.g. Lunch with client",whatFor:"What’s It For?",reimbursement:"Reimbursement",reimbursementType:"Reimbursement Type:",reportStatus:"Report Status",total:"Total",banner:"Zeni has retrieved data from this receipt(s) and auto-filled this report.",discardTitle:"Discard unsaved changes?",discardDescription:"Changes are not automatically saved. Your changes will be lost if you continue.",overwriteTitle:"Are you sure you want to overwrite the data?",overwriteDescription:"By overwrtting the data, you will replace the existing row content with the data from the new receipt which you uploaded.",uploadLimitTitle:"You have exceeded the file upload size limit",uploadLimitDescription:"Please make sure the size of all receipts should not exceed 32MB. You could either compress the file sizes or upload another report",buttons:{rejectReport:"Reject Report",reject:"Reject",approveReport:"Approve Report",approve:"Approve",deleteReport:"Delete Report",editAndResubmit:"Edit & Re-Submit",edit:"Edit",saveChanges:"Save Changes",save:"Save",resubmit:"Re-Submit",submit:"Submit",discardChanges:"Discard Changes",delete:"Delete",cancel:"Cancel",send:"Send",cancelAndDelete:"Cancel & Delete",remove:"Remove",yes:"Yes",no:"No",discard:"Discard",okay:"Okay"},deleteDraftTitle:"Delete draft?",deleteReportTitle:"Delete Report?",cancelReportTitle:"Cancel Report?",cancelAndDeleteReportTitle:"Cancel & Delete Report?",deleteAlertDescription:"Are you sure you want to delete this report? This action cannot be undone.",cancelAlertDescription:"Are you sure you want to cancel this report? This action cannot be undone.",cancelAndDeleteAlertDescription:"Are you sure you want to cancel & delete this report? This action cannot be undone.",deleteBankAccountTitle:"Are you sure you want to delete this bank account?",deleteBankAccountDescription:"If submitted reimbursements are using this account, they will get paid on the same. However, you’ll have to select an existing one or add a new account to submit new reimbursements.",noReceiptAttached:"No receipt attached",dropReceipt:{upload:"Upload",single:"single",or:"or",multiple:"multiple",receipts:"receipts",receipt:"receipt"},dropReceiptDescription:"Zeni will read the receipt(s) and autofill the reimbursement for you.",reimbursementActivity:"Reimbursement Activity",rejectRemiTitlePrefix:"Reject reimbursement for",rejectRemiDescription:"By rejecting this payment the approval process will not move forward and no payments will be issued. Help your team understand why this bill should not be paid.",rejectRejectReasonPlaceholder:"Add rejection reason (required)"},bulkActions:{exceptions:{processingSelectTogether:'Only reports under "Processing" status can be selected together.',processingWithOthers:'Report(s) under "Processing" status can’t be selected with others.'},duplicateWarning:{title:"An update to this report is currently in progress.",description:"Please wait until the process is complete before making any further changes."},popUps:{reject:{title:"Reject __report__",description:"By rejecting <_this_> <_payment_>, the approval process will not move forward and no <_payment_> will be issued. Help your team understand why <_this_> __report__ should not be paid."},delete:{title:"Delete __report__",descriptionDraft:"Are you sure you want to delete <_this_> __report__? This action cannot be undone.",descriptionOther:"By deleting <_this_> __report__, <_it_> will not move forward and no <_payment_> will be issued. Help your team understand why."},cancel:{title:"Cancel __report__",description:"By cancelling <_this_> __report__, <_it_> will not move forward and no <_payment_> will be issued. Help your team understand why."}},reviewPage:{reportsReviewed:{title:"__report__ <_has_> been reviewed",description:"__report__ <_is_> ready to proceed.",descriptionError:"The selected __report__ <_do_> not have the required information to proceed. Please fill in all details and try again."},reportsReviewing:{title:"We are reviewing your __report__",description:"This process may take a few seconds."}},report:"Report",reports:"Reports"}},commonProgressBar:{newBillProgressStates:["Draft","Approval","Schedule","Payment"],draftProgressStates:["Created","Approval","Schedule","Payment"],scheduleProgressStates:["Created","Approved","Scheduled","Payment"],paidProgressStates:["Created","Approved","Scheduled","Paid"],offlinePaymentStates:["Created","Approved","Schedule","Payment"],alertableStates:["rejected","returned","failed","cancelled"],paymentDatePrefix:"Expected by",newBillProgressBarSubText:"Great! We’ve got your bill.",markedAsPaid:"Marked as Paid"},zeniAccounts:{common:{totalYieldEarned:"Total Yield Earned",currentAverageYield:"Current Average Yield:"},zeniAccountSetUp:{setupTitle:"Checking",enableAccounts:"Enable Accounts",setupSubTitle:"Manage your business verification, bank details to make Zeni work better for you.",link_account:"Linked Account",setup_payment:"Setup Payment"},accountSectionHeader:"Linked Account",zeniAccountsPromo:{title:"Checking",promoText1:"Business Banking Reimagined",promoText2:"Fast, Risk-Free, and Built for Scale",earnUptoText:{bold:"Earn up to __rate__% APY ",regular:"on your cash"},insuranceText:{bold:"Up to __amount__ ",regular:"in FDIC insurance to protect your cash"},noHiddenFee:{bold:"No hidden or monthly fees, ",regular:"just great banking"},expertSupport:{bold:"24/7 expert support ",regular:"from your Zeni team"},scheduleDemoButton:"Schedule Demo",setupAccountsButton:"Setup Checking",terms:{terms1:'By clicking "Setup Checking", I have read and accepted the ',zeniAgreement:"Zeni Accounts Agreement",terms2:" and ",privacyPolicy:"Privacy Policy",terms3:". ✌🏻"},disclaimer:"Zeni is a financial technology company and not a bank. Banking services are provided by Thread Bank; Member FDIC.",iconTexts:{title:"Traditional Banks",unInsuredAmount:"$2.75M",unInsured:"Uninsured",insuredAmount:"$250K",insured:"FDIC Insured",fdicCovered:"FDIC Insured",footNote:"Based on an example balance of $3M",yAxisAmounts:["$3M","$2.5M","$2M","$1.5M","$1M","$500K","$0"]},orText:"OR"},zeniAccountList:{title:"Accounts",noDataText:`To add new account, click on the
|
|
460
|
-
'Add Bussiness Account' button and get started.`,totalAvailableBalance:"Available Balance",insuredFund:"Insured Funds",insuranceInfo:"Up to __amount__ FDIC Insured",currentAverageYield:"Current Average Yield:",active:"Active",unlinkAccount:"Unlink Account",addFundBtnText:"Add Funds",addAccountText:"Add Business Account",linkExternalAccount:"Link External Account",yieldTooltip:"This is the amount you've earned on your funds since opening your accounts.",insuranceTooltip:"Your accounts are FDIC insured up to __amount__. You are protected by the highest level of FDIC insurance currently available.",balanceTooltip:{base:"Your Available balance does not include processing transactions.",balance:"Total balance:",processing:"Processing transactions:",available:"Available balance:"},createPopUpInfo:{title:"Add a business account",description:"This will create a new business account with its own account number.",primaryButtonText:"Create",secondaryButtonText:"Cancel",placeholder:"Add account nickname"},addFundsPopUpInfo:{title:"Account is now set up.",description:"Add funds to this account. Your balance is covered up to __amount__ by FDIC Insurance, and you will earn up to __rate__% APY. Don't miss our example below to see what you could gain!",primaryButtonText:"Add funds",secondaryButtonText:"Not now"},billPayupPopUpInfo:{title:"Take Me to Bill Pay",description:"You can access bills feature when you want to pay someone.",primaryButtonText:"Proceed",secondaryButtonText:"Not Now"},tabsById:{zeniAccounts:"Checking",externalAccounts:"External Accounts",wireDetails:"Wire Details",achDetails:"ACH Details"},transferDrawer:{calculator:{sliderTooltipText:"% APY",greaterThanTwoAndHalfMillion:"> 2.5M",footerText:{earnUptoText:"Earn up to __rate__% APY",showYieldCalculator:"Show Yield Calculator",annualYieldEarned:"Annual Yield Earned: ",annualYieldEarnedTooltipText:"This is the amount you'll earn on your funds on an annualized basis.",forTotalBalance:"For Total Balance:",for:"For ",hide:"Hide",greaterThanTwoAndHalfMillion:"> 2.5M"},heading:"Your balance is covered up to __amount__ by FDIC Insurance, and you will earn up to __rate__% APY. Don't miss our example below to see what you could gain!"},title:"Transfer Between Accounts",subTitle:"Transferred funds typically take 1-2 business days to show in the account.",amountLabel:"Amount",amountError:"Amount is required to transfer between accounts",transferFromLabel:"Transfer From",transferFromError:"Select account to transfer between accounts",transferToError:"Select account to transfer between accounts",transferToLabel:"Transfer To",amountPlaceholder:"$0",transferFromPlaceholder:"Select Account",transferToPlaceholder:"Select Account",holiday:"holiday",footNote:'By clicking "Transfer," I authorize Zeni to initiate the transfer.',cancelBtn:"Cancel",transferBtn:"Transfer",internal:{transferSuccessMsgPrefix:"You’ve transferred ",transferSuccessMsgMidfix:" from ",transferSuccessMsgMidfix2:" to "},external:{transferSuccessMsgPrefix:"You’ve transferred ",transferSuccessMsgMidfix:" from ",transferSuccessMsgMidfix1:" to ",transferSuccessMsgMidfix2:" The money should arrive within 1-2 business days."},anotherTransferBtn:"Another Transfer",selectAddAccount:"Add Bank Account",reviewAndConfirm:"Review & Confirm",theDaily:"The daily bank transfer limit is __dailyLimit__.",sinceYourDeposit:" Since your deposit exceeds the limit, the amount will be split across multiple days.",splitPaymentTimeline:"Split Payment Timeline",youCanUse:"You can use a wire transfer if you want to transfer the entire amount at once. ",wireTransfer:"Wire Transfer",selectYour:"Select your Zeni Checking Account for incoming wire",wireInstruction:"Wire Instructions for __accountName__",backToChecking:"Back to Checking",wireTransferDescriptionLine1:"Initiate the wire from your bank using the instructions below. Wires must come from a domestic bank account. Your deposit will show up in Zeni the next business day after you send it.",wireTransferDescriptionLine2:"Your wire will reflect in your account the day after submission. Note that foreign or third-party wires are not accepted at this time."},checkDepositDrawer:{title:"Check Deposit",subTitle:"Deposited check usually take 4-5 business days to appear in your account.",amountLabel:"Amount:",sourceLabel:"Source of Deposit:",depositToLabel:"Deposited To:",amountPlaceholder:"$0",sourcePlaceholder:"Type here",depositToPlaceholder:"Select Account",footNote:'By clicking "Deposit", I authorize Zeni to initiate the deposit',cancelBtn:"Cancel",depositBtn:"Deposit",checkPicLabel:"Check Pictures",picGuides:['Sign the check and write "For mobile deposit at Zeni only" on the back of the check.',"Make sure all account info is clearly visible.","Checks must be issued by a US bank."],transferSuccessMsgPrefix:"We’re reviewing your ",transferSuccessMsgSuffix:" check deposit. The money should arrive within 1 to 2 business days. Please keep the check with you until it clears.",goToAccountBtn:"Go to Account",makeAnotherTransferBtn:"Deposit Another Check",frontSide:"Front Side",backSide:"Back Side",frontSideError:"Front side picture is required for check deposit.",backSideError:"Back side picture is required for check deposit.",uploadDocument:"Upload document",dragDropClickPlaceholder:"Drag & Drop or Click"}},zeniAccountDetail:{title:"Zeni Saving",accDetails:"Account Details",bankLetter:"Bank Letter",bankLetterPdf:"zeni-bank-letter-",viewAll:"View All",transactions:"Recent Transactions",statements:"Statements",bankLetterTitle:"Zeni - Bank Verification Letter",achTitle:"ACH Details",wireTitle:"Domestic Wire Details",intlWireTitle:"International Wire Details",show:"Show",hide:"Hide",closeAccountPopUp:{title:"Are you sure?",description:"Your remaining balance will be immediately transferred to your Primary checking account, ending with ",primaryButtonText:"Yes",secondaryButtonText:"No"},editNamePopUp:{title:"Edit nick name",description:"Account nickname",primaryButtonText:"Update",secondaryButtonText:"Cancel"},nullScreenHeading:"Current balance is $0",noTransactionText:"You don't have any transactions yet!"},transactionList:{title:"- Transactions"},moveMoney:{title:"Move Money",closeAccount:"Close Account",editNickName:"Edit Account Nick Name",accountStatement:"Account Statements",sendMoney:"Send Money",payBills:"Pay Bills",transfer:"Transfer Between Accounts",checkDeposit:"Deposit a Check"},statements:{title:"Accounts Statements",noStatements:"No Statements found"},expressPay:{pageTitle:"Send Money",schedulePayment:"Schedule Payment",sendMoney:"Send Money",recipientSectionTitle:"Who’s It For?",paymentSectionTitle:"Payment Details",recipientName:"Recipient Name:",recipientType:"Recipient Type:",recipientEmail:"Recipient Email:",paymentTo:"Add account",reciept:"Receipt / Invoice:",placeholders:{recipientName:"Search or type a recipient name",recipientNameMobile:"Type a recipient name",recipientType:"Select type",recipientEmail:"Add email",paymentTo:"Add account"},progressBar:{stateOne:"Recipient Details",stateTwo:"Payment Details",stateThree:"Review & Schedule"},phoneNumberPopup:"Users must verify their phone number. We recommend using a phone number that you access frequently."}},activity:{approvals:"Approvals",activity:"Activity"},filters:{categoryPlaceholder:"Category",categoryOptions:{},filterByLabel:"Filter By",addFilterBtnText:"Add Filter",clearFilterBtnText:"Clear filter",clearAllBtnText:"Clear All",from:"From",to:"To",enDash:"–",select:"Select",searchPlaceholder:"Search For Vendors",filterCategories:{bills:{vendorName:"Vendor",paymentMethod:"Payment Method",paymentType:"Payment Type",status:"Status",amount:"Amount",creationDate:"Creation Date",invoiceDate:"Invoice Date",paymentDate:"Payment Date",dueDate:"Due Date"},reimbursements:{createdBy:"Created By",paymentMethod:"Payment Method",status:"Status",amount:"Amount",creationDate:"Creation Date",receiptDate:"Submitted Date"},taskManagement:{status:"Status",priority:"Priority",dueDate:"Due Date",tag:"Tag",creationDate:"Created At",assignee:"Assignee"},chargeCardPaymentHistory:{repaymentDate:"Payment Date",sourceAccount:"Source Account",status:"Payment Status",initiatedBy:"Initiated By"}},filterOptions:{billAmountOptions:[{label:"< 5K",value:"-10000000<->5000"},{label:"5K to 10K",value:"5000<->10000"},{label:"10K to 20K",value:"10000<->20000"},{label:"> 20K",value:"20000<->10000000"}],reimbursementAmountOptions:[{label:"< 100",value:"-10000000<->100"},{label:"100 to 500",value:"100<->500"},{label:"500 to 1000",value:"500<->1000"},{label:"> 1000",value:"1000<->10000000"}],paymentMethodOptions:[{label:"ACH",value:"ach_standard"},{label:"ACH Same Day",value:"ach_same-day"},{label:"Domestic Wire",value:"wire_us-domestic"},{label:"International Wire",value:"wire_international"},{label:"Offline",value:"outside-zeni_outside-zeni"}],paymentHistoryStatusOptions:[{label:"In Progress",value:"Pending"},{label:"Complete",value:"Sent"},{label:"Failed",value:"Rejected"}],commonStatusOptions:[{label:"Draft",value:"draft"},{label:"Pending Approval",value:"pending_approval"},{label:"Approved",value:"approved"},{label:"Rejected",value:"rejected"},{label:"Scheduled",value:"scheduled"},{label:"Processing",value:"processing"},{label:"Paid",value:"paid"},{label:"Canceled",value:"cancelled"},{label:"Returned",value:"returned"},{label:"Failed",value:"failed"}],billStatusOptions:[{label:"Pending Vendor Action",value:"pending_vendor_action"},{label:"Overdue",value:"overdue"}],billPaymentTypeOptions:[{label:"One-time Payment",value:"one-time"},{label:"Recurring Payment",value:"recurring"}]}},moreMenuOptions:[{label:"Settings",value:"settings"},{label:"Download",value:"download"},{label:"Pay Early",value:"payEarly"},{label:"Statements",value:"statements"},{label:"Payment History",value:"paymentHistory"}],downloads:{defaultDownloadFileName:"Spend Management Transactions.xlsx",download:"Download",downloading:"Downloading..."},chargeCard:{statements:{title:"Credit Card Statements",noStatements:"No Statements found"},paymentHistory:{retryPayment:"Retry Payment",autopay:"Autopay",manual:"Manual",sourceAccountUnknown:"Unknown Account",searchPlaceHolder:"Search payment history...",pageTitle:"Credit Card Payment History",header:{paymentDate:"Payment Date",sourceAccount:"Source Account",paymentStatus:"Payment Status",initiatedBy:"Initiated By",amount:"Amount"},status:{PendingReview:"In Progress",Pending:"In Progress",Sent:"Complete",Clear:"Complete",Rejected:"Failed",Returned:"Failed"},noPaymentHistoryMatchedSearch:"No payment history matched your search.",noPaymentHistoryAvailable:"No payment history found."},common:{reasonLabel:"Reason",expense:"expense",expenses:"expenses",cards:"Cards",card:"Card",selected:"Selected",reason:{lost:"Lost or stolen",fraud:"Fraud detected",not_needed:"Not needed",other:"Other"},recurringExpenses:"Recurring Expenses",merchant:"Merchant",nextPaymentDate:"Next Payment Date",amount:"Amount",letUsKnowWhy:"Let Us Know Why"},closeCard:{reasonPlaceholder:"Add reason (optional)",closeCards:"Close Cards",closeCard:"Close Card",multipleCardsNoRecurringExpenses:"Closing these _number_of_cards_ cards will be a permanent action.",multipleCardsHasRecurringExpenses:"Closing these _number_of_cards_ cards cancel _number_of_recurring_expenses_ recurring",multipleCardsHasRecurringExpensesSuffix:" linked to it. This is a permanent action.",firstCardHasRecurringExpenses:"Closing this card will cancel _number_of_recurring_expenses_ recurring _expense_ linked to it. This is a permanent action.",youNeedToProvideReasonToCloseCard:"You need to provide a reason to close the card"},lockCard:{reason:{lost:"Lost or stolen",fraud:"Fraud detected",not_needed:"Not needed",other:"Other"},reasonPlaceholder:"Add reason (optional)",youNeedToProvideReasonToLockCard:"You need to provide a reason to lock the card",lockCards:"Lock Cards",lockCard:"Lock Card",firstCardNoRecurringExpenses:"Locking this card pauses all expenses through it. You can unlock it anytime to resume.",firstCardHasRecurringExpenses:"Locking this card pauses _number_of_recurring_expenses_ recurring _expense_ linked to it. You can unlock it anytime to resume.",multipleCardsNoRecurringExpenses:"These _number_of_cards_ cards will be locked but can be unlocked later.",multipleCardsHasRecurringExpenses:"These _number_of_cards_ cards will be locked but can be unlocked later, pausing its _number_of_recurring_expenses_ recurring"},cardList:{overview:"Overview",totalCashback:"Total Cashback",moreActionsTooltip:"More actions",title:{debit:"Debit Cards",credit:"Credit Cards",cards:"Cards"},searchPlaceHolder:"Search by owner, card name or department",sortBy:"Sort By:",headerElementDisplayName:"Spend management list view inner element type",newBtnLabel:"New",noDataWithFilterText:"No cards matched your search.",noDataText:'Click on the "New" button to issue cards.',getStarted:"Get Started",bulkActions:{exceptionMessages:{closedCardsCannotBeSelected:"Closed cards can't be selected",onlyCardsUnderStatusCanBeSelectedTogether:"Only cards under __status__ status can be selected together",cardAlreadyLocked:"Card is already locked",onlyActiveCardsCanBeLocked:"Only active cards can be locked",cardNotLocked:"Card is not locked",onlyActiveOrInactiveCardsCanBeClosed:"Only active or inactive cards can be closed",onlyActiveOrLockedCardsCanHaveLimitsUpdated:"Only active or locked cards can have limits updated",onlyCardsWithPendingInvitesCanBeRevoked:"Only cards with pending invites can be revoked",cardCannotBeSelectedForAction:"This card cannot be selected for this action"},selected:" selected"},header:{owner:"Owner",cardName:"Card Name",cardType:"Card Type",status:"Status",utilisation:"Utilization",limit:"Limit"},status:{active:"Active",inactive:"Pending Activation",frozen:"Frozen",stolen:"Stolen",lost:"Lost",closed_by_customer:"Closed",suspected_fraud:"Suspected Fraud",request_on_hold:"Pending",locked:"Locked",closed:"Closed"},unassignedCard:"Unassigned Cards: ",slashMonth:"/ Month",virtualCard:"Virtual",physicalCard:"Physical",tooltip:{business_virtual_credit_card:{cardUser:" needs to complete their profile to access this card.",self:"You need to complete your profile to access this card."},business_physical_credit_card:{cardUser:" needs to complete their profile before the card can be shipped.",self:"You need to complete your profile before the card can be shipped."},business_virtual_debit_card:{cardUser:" needs to complete their profile to access this card.",self:"You need to complete your profile to access this card."},business_physical_debit_card:{cardUser:" needs to complete their profile before the card can be shipped.",self:"You need to complete your profile before the card can be shipped."}},sendReminder:"Send Reminder",creditCardBalance:"Credit Card Balance",debitCardSpend:"Debit Card Spend",compareToLastMonth:"compared to last month"},cashbackDetail:{header:{month:"Month",cashback:"Cashback"},title:"Cashback",totalEarned:"Total Earned",redeemed:"Redeemed",available:"Available",tillDate:"Till Date"},issueCard:{card:"Card",title:"New Card",creditCard:"Credit Card",debitCard:"Debit Card",usersPlaceholder:"Who’s it for?",cardNamePlaceholder:"Add card name",amountPlaceholder:"Add amount",frequencyPlaceholder:"Select frequency",cardholderLabel:"Cardholder: ",cardholdersLabel:"Cardholders: ",connectedAccountLabel:"Connected Account: ",selectAccountPlaceholder:"Select account",cardNameLabel:"Card Name: ",amountLabel:"Amount: ",frequencyLabel:"Frequency: ",amountExceedError:"Amount exceeds _amount_ limit",amountExceedDebitCardError:"Amount exceeds the max. limit of _amount_",primaryBtnText:"Issue Card",secondaryBtnText:"Cancel",physicalCard:"Physical",virtualCard:"Virtual",frequencySubLabels:{monthly:"Limit resets every calendar month",quarterly:"Resets every 3 calendar months (Jan, Apr, Jul, Oct)",weekly:"Limit resets every Monday (12 UTC)",yearly:"Limit resets every calendar year"},address:{custom:"Custom",personal:"Personal",company:"Company",shippingAddressLabel:"Shipping Address:",customAddressText:"Address used to ship the card and won't be saved",personalAddressText:"Address set by _name_ in their personal profile",addCustomAddress:"Add Custom Address"},addCard:"Add Card",deleteCard:"Delete Card",type:"Type:",remove:"Remove",deleteConfirmation:"Are you sure you want to remove?",additionalInfoPhysical:"You can choose only one cardholder",additionalInfoVirtual:"You can choose multiple cardholders",cardLimitWarning:"Card Limit Reached"},cardOnboarding:{title:"Activate Your Card",oneLastStep:"One last step!",sectionTitle:"Personal Details",addressAdditionalInfo:"Physical card will be delivered to this address.",cvvPlaceholder:"Enter CVV",cardIsOnItsWay:"Congratulations! You're all set and your card is on its way",activateYourCard:"Congratulations! You're all set to activate your card",setYourPin:"Congratulations! Your card is activated—set your PIN to start using it",setFourDigitPIN:"Set a four-digit PIN",setFourDigitPinTitle:"Set a 4-digit numeric PIN for your card ending",setPin:"Set PIN",validExpiryDate:"Please ensure you enter a valid expiry date",validCVV:"Please ensure you enter a valid CVV",yourCardWillShipToBelow:"Your card will ship to below address in 7-10 business days",cardShippingAddress:"Card shipping address",creditCardLimit:"Credit card limit:",debitCardLimit:"Debit card limit:"},payEarly:{pay:"Pay",payNow:"Pay Now",billDueIn:"Bill due in",creditLimitLow:"Credit Limit Low",paymentInitiated:"Payment Initiated",paymentOf:"Payment of",isProcessing:"is processing.",madeOn:"made on",isProcessingAndWillUpdateTheCreditLimitIn23BusinessDays:"is processing and will update the credit limit in 2–3 business days.",isProcessingAndWillResetTheCreditLimitIn23BusinessDays:"is processing and will reset the credit limit in 2–3 business days.",theCompanyCreditLimitWillUpdateIn23BusinessDays:"The company’s credit limit will update in 2–3 business days.",transactionsMayBeDeclinedBecauseTheCompanyCreditLimitIsRunningLow:"Transactions may be declined because the company's credit limit is running low. ",transactionsMayBeDeclinedBecauseTheCreditLimitIsRunningLow:"Transactions may be declined because the credit limit is running low.",payEarly:"Pay Early",creditLimitIsLow:"Credit Limit is Low",creditLimitIsRunningLow:`Credit limit is running low.
|
|
460
|
+
'Add Bussiness Account' button and get started.`,totalAvailableBalance:"Available Balance",insuredFund:"Insured Funds",insuranceInfo:"Up to __amount__ FDIC Insured",currentAverageYield:"Current Average Yield:",active:"Active",unlinkAccount:"Unlink Account",addFundBtnText:"Add Funds",addAccountText:"Add Business Account",linkExternalAccount:"Link External Account",yieldTooltip:"This is the amount you've earned on your funds since opening your accounts.",insuranceTooltip:"Your accounts are FDIC insured up to __amount__. You are protected by the highest level of FDIC insurance currently available.",balanceTooltip:{base:"Your Available balance does not include processing transactions.",balance:"Total balance:",processing:"Processing transactions:",available:"Available balance:"},createPopUpInfo:{title:"Add a business account",description:"This will create a new business account with its own account number.",primaryButtonText:"Create",secondaryButtonText:"Cancel",placeholder:"Add account nickname"},addFundsPopUpInfo:{title:"Account is now set up.",description:"Add funds to this account. Your balance is covered up to __amount__ by FDIC Insurance, and you will earn up to __rate__% APY. Don't miss our example below to see what you could gain!",primaryButtonText:"Add funds",secondaryButtonText:"Not now"},billPayupPopUpInfo:{title:"Take Me to Bill Pay",description:"You can access bills feature when you want to pay someone.",primaryButtonText:"Proceed",secondaryButtonText:"Not Now"},tabsById:{zeniAccounts:"Checking",externalAccounts:"External Accounts",wireDetails:"Wire Details",achDetails:"ACH Details"},transferDrawer:{calculator:{sliderTooltipText:"% APY",greaterThanTwoAndHalfMillion:"> 2.5M",footerText:{earnUptoText:"Earn up to __rate__% APY",showYieldCalculator:"Show Yield Calculator",annualYieldEarned:"Annual Yield Earned: ",annualYieldEarnedTooltipText:"This is the amount you'll earn on your funds on an annualized basis.",forTotalBalance:"For Total Balance:",for:"For ",hide:"Hide",greaterThanTwoAndHalfMillion:"> 2.5M"},heading:"Your balance is covered up to __amount__ by FDIC Insurance, and you will earn up to __rate__% APY. Don't miss our example below to see what you could gain!"},title:"Transfer Between Accounts",subTitle:"Transferred funds typically take 1-2 business days to show in the account.",amountLabel:"Amount",amountError:"Amount is required to transfer between accounts",transferFromLabel:"Transfer From",transferFromError:"Select account to transfer between accounts",transferToError:"Select account to transfer between accounts",transferToLabel:"Transfer To",amountPlaceholder:"$0",transferFromPlaceholder:"Select Account",transferToPlaceholder:"Select Account",holiday:"holiday",footNote:'By clicking "Transfer," I authorize Zeni to initiate the transfer.',cancelBtn:"Cancel",transferBtn:"Transfer",internal:{transferSuccessMsgPrefix:"You’ve transferred ",transferSuccessMsgMidfix:" from ",transferSuccessMsgMidfix2:" to "},external:{transferSuccessMsgPrefix:"You’ve transferred ",transferSuccessMsgMidfix:" from ",transferSuccessMsgMidfix1:" to ",transferSuccessMsgMidfix2:" The money should arrive within 1-2 business days."},anotherTransferBtn:"Another Transfer",selectAddAccount:"Add Bank Account",reviewAndConfirm:"Review & Confirm",theDaily:"The daily bank transfer limit is __dailyLimit__.",sinceYourDeposit:" Since your deposit exceeds the limit, the amount will be split across multiple days.",splitPaymentTimeline:"Split Payment Timeline",youCanUse:"You can use a wire transfer if you want to transfer the entire amount at once. ",wireTransfer:"Wire Transfer",selectYour:"Select your Zeni Checking Account for incoming wire",wireInstruction:"Wire Instructions for __accountName__",backToChecking:"Back to Checking",wireTransferDescriptionLine1:"Initiate the wire from your bank using the instructions below. Wires must come from a domestic bank account. Your deposit will show up in Zeni the next business day after you send it.",wireTransferDescriptionLine2:"Your wire will reflect in your account the day after submission. Note that foreign or third-party wires are not accepted at this time."},checkDepositDrawer:{title:"Check Deposit",subTitle:"Deposited check usually take 4-5 business days to appear in your account.",amountLabel:"Amount:",sourceLabel:"Source of Deposit:",depositToLabel:"Deposited To:",amountPlaceholder:"$0",sourcePlaceholder:"Type here",depositToPlaceholder:"Select Account",footNote:'By clicking "Deposit", I authorize Zeni to initiate the deposit',cancelBtn:"Cancel",depositBtn:"Deposit",checkPicLabel:"Check Pictures",picGuides:['Sign the check and write "For mobile deposit at Zeni only" on the back of the check.',"Make sure all account info is clearly visible.","Checks must be issued by a US bank."],transferSuccessMsgPrefix:"We’re reviewing your ",transferSuccessMsgSuffix:" check deposit. The money should arrive within 1 to 2 business days. Please keep the check with you until it clears.",goToAccountBtn:"Go to Account",makeAnotherTransferBtn:"Deposit Another Check",frontSide:"Front Side",backSide:"Back Side",frontSideError:"Front side picture is required for check deposit.",backSideError:"Back side picture is required for check deposit.",uploadDocument:"Upload document",dragDropClickPlaceholder:"Drag & Drop or Click"}},zeniAccountDetail:{title:"Zeni Saving",accDetails:"Account Details",bankLetter:"Bank Letter",bankLetterPdf:"zeni-bank-letter-",viewAll:"View All",transactions:"Recent Transactions",statements:"Statements",bankLetterTitle:"Zeni - Bank Verification Letter",achTitle:"ACH Details",wireTitle:"Domestic Wire Details",intlWireTitle:"International Wire Details",show:"Show",hide:"Hide",closeAccountPopUp:{title:"Are you sure?",description:"Your remaining balance will be immediately transferred to your Primary checking account, ending with ",primaryButtonText:"Yes",secondaryButtonText:"No"},editNamePopUp:{title:"Edit nick name",description:"Account nickname",primaryButtonText:"Update",secondaryButtonText:"Cancel"},nullScreenHeading:"Current balance is $0",noTransactionText:"You don't have any transactions yet!"},transactionList:{title:"- Transactions"},moveMoney:{title:"Move Money",closeAccount:"Close Account",editNickName:"Edit Account Nick Name",accountStatement:"Account Statements",sendMoney:"Send Money",payBills:"Pay Bills",transfer:"Transfer Between Accounts",checkDeposit:"Deposit a Check"},statements:{title:"Accounts Statements",noStatements:"No Statements found"},expressPay:{pageTitle:"Send Money",schedulePayment:"Schedule Payment",sendMoney:"Send Money",recipientSectionTitle:"Who’s It For?",paymentSectionTitle:"Payment Details",recipientName:"Recipient Name:",recipientType:"Recipient Type:",recipientEmail:"Recipient Email:",paymentTo:"Add account",reciept:"Receipt / Invoice:",placeholders:{recipientName:"Search or type a recipient name",recipientNameMobile:"Type a recipient name",recipientType:"Select type",recipientEmail:"Add email",paymentTo:"Add account"},progressBar:{stateOne:"Recipient Details",stateTwo:"Payment Details",stateThree:"Review & Schedule"},phoneNumberPopup:"Users must verify their phone number. We recommend using a phone number that you access frequently."}},activity:{approvals:"Approvals",activity:"Activity"},filters:{categoryPlaceholder:"Category",categoryOptions:{},filterByLabel:"Filter By",addFilterBtnText:"Add Filter",clearFilterBtnText:"Clear filter",clearAllBtnText:"Clear All",from:"From",to:"To",enDash:"–",select:"Select",searchPlaceholder:"Search For Vendors",filterCategories:{bills:{vendorName:"Vendor",paymentMethod:"Payment Method",paymentType:"Payment Type",status:"Status",amount:"Amount",creationDate:"Creation Date",invoiceDate:"Invoice Date",paymentDate:"Payment Date",dueDate:"Due Date"},reimbursements:{createdBy:"Created By",paymentMethod:"Payment Method",status:"Status",amount:"Amount",creationDate:"Creation Date",receiptDate:"Submitted Date"},taskManagement:{status:"Status",priority:"Priority",dueDate:"Due Date",tag:"Tag",creationDate:"Created At",assignee:"Assignee"},chargeCardPaymentHistory:{repaymentDate:"Payment Date",sourceAccount:"Source Account",status:"Payment Status",initiatedBy:"Initiated By"}},filterOptions:{billAmountOptions:[{label:"< 5K",value:"-10000000<->5000"},{label:"5K to 10K",value:"5000<->10000"},{label:"10K to 20K",value:"10000<->20000"},{label:"> 20K",value:"20000<->10000000"}],reimbursementAmountOptions:[{label:"< 100",value:"-10000000<->100"},{label:"100 to 500",value:"100<->500"},{label:"500 to 1000",value:"500<->1000"},{label:"> 1000",value:"1000<->10000000"}],paymentMethodOptions:[{label:"ACH",value:"ach_standard"},{label:"ACH Same Day",value:"ach_same-day"},{label:"Domestic Wire",value:"wire_us-domestic"},{label:"International Wire",value:"wire_international"},{label:"Offline",value:"outside-zeni_outside-zeni"}],paymentHistoryStatusOptions:[{label:"In Progress",value:"Pending"},{label:"Complete",value:"Sent"},{label:"Failed",value:"Rejected"}],commonStatusOptions:[{label:"Draft",value:"draft"},{label:"Pending Approval",value:"pending_approval"},{label:"Approved",value:"approved"},{label:"Rejected",value:"rejected"},{label:"Scheduled",value:"scheduled"},{label:"Processing",value:"processing"},{label:"Paid",value:"paid"},{label:"Canceled",value:"cancelled"},{label:"Returned",value:"returned"},{label:"Failed",value:"failed"}],billStatusOptions:[{label:"Pending Vendor Action",value:"pending_vendor_action"},{label:"Overdue",value:"overdue"}],billPaymentTypeOptions:[{label:"One-time Payment",value:"one-time"},{label:"Recurring Payment",value:"recurring"}]}},moreMenuOptions:[{label:"Settings",value:"settings"},{label:"Download",value:"download"},{label:"Pay Early",value:"payEarly"},{label:"Statements",value:"statements"},{label:"Payment History",value:"paymentHistory"}],downloads:{defaultDownloadFileName:"Spend Management Transactions.xlsx",download:"Download",downloading:"Downloading..."},chargeCard:{statements:{title:"Credit Card Statements",noStatements:"No Statements found"},paymentHistory:{retryPayment:"Retry Payment",autopay:"Autopay",manual:"Manual",sourceAccountUnknown:"Unknown Account",searchPlaceHolder:"Search payment history...",pageTitle:"Credit Card Payment History",initiatedOn:"Initiated on:",completedOn:"Completed on:",header:{paymentDate:"Payment Date",sourceAccount:"Source Account",paymentStatus:"Payment Status",initiatedBy:"Initiated By",amount:"Amount"},status:{PendingReview:"In Progress",Pending:"In Progress",Sent:"Complete",Clear:"Complete",Rejected:"Failed",Returned:"Failed"},noPaymentHistoryMatchedSearch:"No payment history matched your search.",noPaymentHistoryAvailable:"No payment history found."},common:{reasonLabel:"Reason",expense:"expense",expenses:"expenses",cards:"Cards",card:"Card",selected:"Selected",reason:{lost:"Lost or stolen",fraud:"Fraud detected",not_needed:"Not needed",other:"Other"},recurringExpenses:"Recurring Expenses",merchant:"Merchant",nextPaymentDate:"Next Payment Date",amount:"Amount",letUsKnowWhy:"Let Us Know Why"},closeCard:{reasonPlaceholder:"Add reason (optional)",closeCards:"Close Cards",closeCard:"Close Card",multipleCardsNoRecurringExpenses:"Closing these _number_of_cards_ cards will be a permanent action.",multipleCardsHasRecurringExpenses:"Closing these _number_of_cards_ cards cancel _number_of_recurring_expenses_ recurring",multipleCardsHasRecurringExpensesSuffix:" linked to it. This is a permanent action.",firstCardHasRecurringExpenses:"Closing this card will cancel _number_of_recurring_expenses_ recurring _expense_ linked to it. This is a permanent action.",youNeedToProvideReasonToCloseCard:"You need to provide a reason to close the card"},lockCard:{reason:{lost:"Lost or stolen",fraud:"Fraud detected",not_needed:"Not needed",other:"Other"},reasonPlaceholder:"Add reason (optional)",youNeedToProvideReasonToLockCard:"You need to provide a reason to lock the card",lockCards:"Lock Cards",lockCard:"Lock Card",firstCardNoRecurringExpenses:"Locking this card pauses all expenses through it. You can unlock it anytime to resume.",firstCardHasRecurringExpenses:"Locking this card pauses _number_of_recurring_expenses_ recurring _expense_ linked to it. You can unlock it anytime to resume.",multipleCardsNoRecurringExpenses:"These _number_of_cards_ cards will be locked but can be unlocked later.",multipleCardsHasRecurringExpenses:"These _number_of_cards_ cards will be locked but can be unlocked later, pausing its _number_of_recurring_expenses_ recurring"},cardList:{overview:"Overview",totalCashback:"Total Cashback",moreActionsTooltip:"More actions",title:{debit:"Debit Cards",credit:"Credit Cards",cards:"Cards"},searchPlaceHolder:"Search by owner, card name or department",sortBy:"Sort By:",headerElementDisplayName:"Spend management list view inner element type",newBtnLabel:"New",noDataWithFilterText:"No cards matched your search.",noDataText:'Click on the "New" button to issue cards.',getStarted:"Get Started",bulkActions:{exceptionMessages:{closedCardsCannotBeSelected:"Closed cards can't be selected",onlyCardsUnderStatusCanBeSelectedTogether:"Only cards under __status__ status can be selected together",cardAlreadyLocked:"Card is already locked",onlyActiveCardsCanBeLocked:"Only active cards can be locked",cardNotLocked:"Card is not locked",onlyActiveOrInactiveCardsCanBeClosed:"Only active or inactive cards can be closed",onlyActiveOrLockedCardsCanHaveLimitsUpdated:"Only active or locked cards can have limits updated",onlyCardsWithPendingInvitesCanBeRevoked:"Only cards with pending invites can be revoked",cardCannotBeSelectedForAction:"This card cannot be selected for this action"},selected:" selected"},header:{owner:"Owner",cardName:"Card Name",cardType:"Card Type",status:"Status",utilisation:"Utilization",limit:"Limit"},status:{active:"Active",inactive:"Pending Activation",frozen:"Frozen",stolen:"Stolen",lost:"Lost",closed_by_customer:"Closed",suspected_fraud:"Suspected Fraud",request_on_hold:"Pending",locked:"Locked",closed:"Closed"},unassignedCard:"Unassigned Cards: ",slashMonth:"/ Month",virtualCard:"Virtual",physicalCard:"Physical",tooltip:{business_virtual_credit_card:{cardUser:" needs to complete their profile to access this card.",self:"You need to complete your profile to access this card."},business_physical_credit_card:{cardUser:" needs to complete their profile before the card can be shipped.",self:"You need to complete your profile before the card can be shipped."},business_virtual_debit_card:{cardUser:" needs to complete their profile to access this card.",self:"You need to complete your profile to access this card."},business_physical_debit_card:{cardUser:" needs to complete their profile before the card can be shipped.",self:"You need to complete your profile before the card can be shipped."}},sendReminder:"Send Reminder",creditCardBalance:"Credit Card Balance",debitCardSpend:"Debit Card Spend",compareToLastMonth:"compared to last month"},cashbackDetail:{header:{month:"Month",cashback:"Cashback"},title:"Cashback",totalEarned:"Total Earned",redeemed:"Redeemed",available:"Available",tillDate:"Till Date"},issueCard:{card:"Card",title:"New Card",creditCard:"Credit Card",debitCard:"Debit Card",usersPlaceholder:"Who’s it for?",cardNamePlaceholder:"Add card name",amountPlaceholder:"Add amount",frequencyPlaceholder:"Select frequency",cardholderLabel:"Cardholder: ",cardholdersLabel:"Cardholders: ",connectedAccountLabel:"Connected Account: ",selectAccountPlaceholder:"Select account",cardNameLabel:"Card Name: ",amountLabel:"Amount: ",frequencyLabel:"Frequency: ",amountExceedError:"Amount exceeds _amount_ limit",amountExceedDebitCardError:"Amount exceeds the max. limit of _amount_",primaryBtnText:"Issue Card",secondaryBtnText:"Cancel",physicalCard:"Physical",virtualCard:"Virtual",frequencySubLabels:{monthly:"Limit resets every calendar month",quarterly:"Resets every 3 calendar months (Jan, Apr, Jul, Oct)",weekly:"Limit resets every Monday (12 UTC)",yearly:"Limit resets every calendar year"},address:{custom:"Custom",personal:"Personal",company:"Company",shippingAddressLabel:"Shipping Address:",customAddressText:"Address used to ship the card and won't be saved",personalAddressText:"Address set by _name_ in their personal profile",addCustomAddress:"Add Custom Address"},addCard:"Add Card",deleteCard:"Delete Card",type:"Type:",remove:"Remove",deleteConfirmation:"Are you sure you want to remove?",additionalInfoPhysical:"You can choose only one cardholder",additionalInfoVirtual:"You can choose multiple cardholders",cardLimitWarning:"Card Limit Reached"},cardOnboarding:{title:"Activate Your Card",oneLastStep:"One last step!",sectionTitle:"Personal Details",addressAdditionalInfo:"Physical card will be delivered to this address.",cvvPlaceholder:"Enter CVV",cardIsOnItsWay:"Congratulations! You're all set and your card is on its way",activateYourCard:"Congratulations! You're all set to activate your card",setYourPin:"Congratulations! Your card is activated—set your PIN to start using it",setFourDigitPIN:"Set a four-digit PIN",setFourDigitPinTitle:"Set a 4-digit numeric PIN for your card ending",setPin:"Set PIN",validExpiryDate:"Please ensure you enter a valid expiry date",validCVV:"Please ensure you enter a valid CVV",yourCardWillShipToBelow:"Your card will ship to below address in 7-10 business days",cardShippingAddress:"Card shipping address",creditCardLimit:"Credit card limit:",debitCardLimit:"Debit card limit:"},payEarly:{pay:"Pay",payNow:"Pay Now",billDueIn:"Bill due in",creditLimitLow:"Credit Limit Low",paymentInitiated:"Payment Initiated",paymentOf:"Payment of",isProcessing:"is processing.",madeOn:"made on",isProcessingAndWillUpdateTheCreditLimitIn23BusinessDays:"is processing and will update the credit limit in 2–3 business days.",isProcessingAndWillResetTheCreditLimitIn23BusinessDays:"is processing and will reset the credit limit in 2–3 business days.",theCompanyCreditLimitWillUpdateIn23BusinessDays:"The company’s credit limit will update in 2–3 business days.",transactionsMayBeDeclinedBecauseTheCompanyCreditLimitIsRunningLow:"Transactions may be declined because the company's credit limit is running low. ",transactionsMayBeDeclinedBecauseTheCreditLimitIsRunningLow:"Transactions may be declined because the credit limit is running low.",payEarly:"Pay Early",creditLimitIsLow:"Credit Limit is Low",creditLimitIsRunningLow:`Credit limit is running low.
|
|
461
461
|
Pay now to continue spending.`,enableAutoPay:"Enable autopay when credit card balance reaches __autoPayThreshold__% of the limit",earn:"Earn ",whenYouPayViaZeniChecking:" when you pay via Zeni Checking",creditCardPayment:"Credit Card Payment",youvePaid:"You've paid ",theCreditLimitWillResetWithin23BusinessDays:`
|
|
462
462
|
The credit limit will reset within 2-3 business days.`,theCreditLimitWillUpdateWithin23BusinessDays:`
|
|
463
463
|
The credit limit will update within 2-3 business days.`,theCreditLimitWillResetWithin24Hours:`
|
|
@@ -5397,7 +5397,7 @@ Initiate your first transfer to start earning yield.`,insuredFundsTooltip:"Secur
|
|
|
5397
5397
|
padding-top: ${e=>_s.ButtonContainerPaddingTop.valuePx(e.windowSize)};
|
|
5398
5398
|
`,VHt=m.div``,UHt=m(SHt)`
|
|
5399
5399
|
transform: scale(1, 0.9);
|
|
5400
|
-
`,WHt=m(Xa)``,YHt=14e5,b7e=1e7,GHt=32e6,qHt=["application/postscript","application/pdf","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/vnd.ms-excel","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.oasis.opendocument.text","application/vnd.oasis.opendocument.spreadsheet","application/rtf","text/plain","text/html","text/csv","text/xml","image/jpg","image/jpeg","image/png","image/svg+xml","image/webp","image/gif","image/heic","image/heif","application/x-excel","image/tiff","image/tif","application/xml"],ZHt=e=>z0(e,qHt),I7=({fileType:e="file",value:t,isSizeLimitForEachFile:r=!1,fileRef:n,multiple:o=!0,name:i,acceptableTypes:a,sizeLimit:l,isDisabled:d=!1,onFileSizeError:u,onFileChange:p})=>{const h=["application/postscript","application/pdf","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/vnd.ms-excel","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.oasis.opendocument.text","application/vnd.oasis.opendocument.spreadsheet","application/rtf","text/plain","text/html","text/csv","text/xml","image/jpeg","image/png","image/svg+xml","image/webp","image/gif","image/heic","image/heif"];return s.jsx("input",{type:e,ref:n,value:t,name:i,size:1e3,disabled:d,"data-testid":ke("file-input",i),onChange:f=>{let g=0;if(l!=null&&f.target.files!=null&&f.target.files.length>0){if(r&&f.target.files.length===1&&f.target.files[0].size>l){u?.(!0,!0),f.target.value="";return}for(let y=0;y<f.target.files.length;y++){if(r&&f.target.files[y].size>l){u?.(!0,!1),f.target.value="";return}g=g+f.target.files[y].size}g>l?(u?.(!0),f.target.value=""):(u?.(!1),p(f),f.target.value="")}else u?.(!1),p(f),f.target.value=""},style:{display:"none"},accept:(a??h).toString(),multiple:o})},w7e="application/pdf",x7e=["image/jpg","image/jpeg","image/png","image/webp","image/bmp"],KHt={useWebWorker:!0,maxWidthOrHeight:1920,initialQuality:.92,maxSizeMB:2},QHt=async(e,t)=>{if(x7e.includes(e.type)===!1)return e;const r=await ea(e,{useWebWorker:!0,maxWidthOrHeight:900,initialQuality:1,maxSizeMB:1.4}),n=r.lastModified,o=r.type.split("/")[1];let i=`image_${n}.${o}`;return t!=null&&(i=`${t}.${o}`),new File([r],i,{lastModified:n,type:r.type})},XHt=async(e,t)=>{if(x7e.includes(e.type)===!1)return e;const r=await ea(e,KHt),n=r.type.split("/")[1],o=`${t.replace(/\.[^.]+$/,"")||"image"}.${n}`;return new File([r],o,{lastModified:e.lastModified,type:r.type})},JHt=1.5,eVt=.7;function tVt(e,t){return new Promise((r,n)=>{e.toBlob(o=>{if(o==null){n(new Error("canvas.toBlob returned null"));return}r(o)},"image/jpeg",t)})}async function rVt(e,t,r){const n=e.getViewport({scale:t}),o=document.createElement("canvas");o.width=Math.floor(n.width),o.height=Math.floor(n.height);const i=o.getContext("2d");if(i==null)throw new Error("Could not get canvas 2d context");return await e.render({canvasContext:i,viewport:n}).promise,(await tVt(o,r)).arrayBuffer()}async function nVt(e,t){const[{PDFDocument:r},n]=await Promise.all([bt(()=>import("./index-
|
|
5400
|
+
`,WHt=m(Xa)``,YHt=14e5,b7e=1e7,GHt=32e6,qHt=["application/postscript","application/pdf","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/vnd.ms-excel","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.oasis.opendocument.text","application/vnd.oasis.opendocument.spreadsheet","application/rtf","text/plain","text/html","text/csv","text/xml","image/jpg","image/jpeg","image/png","image/svg+xml","image/webp","image/gif","image/heic","image/heif","application/x-excel","image/tiff","image/tif","application/xml"],ZHt=e=>z0(e,qHt),I7=({fileType:e="file",value:t,isSizeLimitForEachFile:r=!1,fileRef:n,multiple:o=!0,name:i,acceptableTypes:a,sizeLimit:l,isDisabled:d=!1,onFileSizeError:u,onFileChange:p})=>{const h=["application/postscript","application/pdf","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/vnd.ms-excel","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.oasis.opendocument.text","application/vnd.oasis.opendocument.spreadsheet","application/rtf","text/plain","text/html","text/csv","text/xml","image/jpeg","image/png","image/svg+xml","image/webp","image/gif","image/heic","image/heif"];return s.jsx("input",{type:e,ref:n,value:t,name:i,size:1e3,disabled:d,"data-testid":ke("file-input",i),onChange:f=>{let g=0;if(l!=null&&f.target.files!=null&&f.target.files.length>0){if(r&&f.target.files.length===1&&f.target.files[0].size>l){u?.(!0,!0),f.target.value="";return}for(let y=0;y<f.target.files.length;y++){if(r&&f.target.files[y].size>l){u?.(!0,!1),f.target.value="";return}g=g+f.target.files[y].size}g>l?(u?.(!0),f.target.value=""):(u?.(!1),p(f),f.target.value="")}else u?.(!1),p(f),f.target.value=""},style:{display:"none"},accept:(a??h).toString(),multiple:o})},w7e="application/pdf",x7e=["image/jpg","image/jpeg","image/png","image/webp","image/bmp"],KHt={useWebWorker:!0,maxWidthOrHeight:1920,initialQuality:.92,maxSizeMB:2},QHt=async(e,t)=>{if(x7e.includes(e.type)===!1)return e;const r=await ea(e,{useWebWorker:!0,maxWidthOrHeight:900,initialQuality:1,maxSizeMB:1.4}),n=r.lastModified,o=r.type.split("/")[1];let i=`image_${n}.${o}`;return t!=null&&(i=`${t}.${o}`),new File([r],i,{lastModified:n,type:r.type})},XHt=async(e,t)=>{if(x7e.includes(e.type)===!1)return e;const r=await ea(e,KHt),n=r.type.split("/")[1],o=`${t.replace(/\.[^.]+$/,"")||"image"}.${n}`;return new File([r],o,{lastModified:e.lastModified,type:r.type})},JHt=1.5,eVt=.7;function tVt(e,t){return new Promise((r,n)=>{e.toBlob(o=>{if(o==null){n(new Error("canvas.toBlob returned null"));return}r(o)},"image/jpeg",t)})}async function rVt(e,t,r){const n=e.getViewport({scale:t}),o=document.createElement("canvas");o.width=Math.floor(n.width),o.height=Math.floor(n.height);const i=o.getContext("2d");if(i==null)throw new Error("Could not get canvas 2d context");return await e.render({canvasContext:i,viewport:n}).promise,(await tVt(o,r)).arrayBuffer()}async function nVt(e,t){const[{PDFDocument:r},n]=await Promise.all([bt(()=>import("./index-yGtk6ceJ.js"),__vite__mapDeps([13,5,1,6,14])),bt(()=>Promise.resolve().then(()=>omt),void 0).then(p=>p.pdfjs)]),o=await e.arrayBuffer(),i=await n.getDocument({data:new Uint8Array(o)}).promise,a=i.numPages,l=await r.create();for(let p=1;p<=a;p++){const h=await i.getPage(p),f=await rVt(h,JHt,eVt),g=await l.embedJpg(new Uint8Array(f)),y=g.scale(1);l.addPage([y.width,y.height]).drawImage(g,{x:0,y:0,width:y.width,height:y.height})}const d=await l.save(),u=t.toLowerCase().endsWith(".pdf")?t:`${t}.pdf`;return new File([d],u,{type:w7e,lastModified:e.lastModified})}async function oVt(e,t){const r=e instanceof File?e:new File([e],t,{type:e.type});if(e.type===w7e){const o=await nVt(r,t);return o.size<r.size?{blob:o,name:o.name}:{blob:e,name:t}}const n=await XHt(r,t);return{blob:n,name:n.name}}async function IZr(e,t){const r=await Promise.all(e.map((n,o)=>{const i=t[o]??`file_${o}`;return oVt(n,i).catch(a=>(console.warn("[compressReceiptFiles] compression failed, using original:",a instanceof Error?a.message:a),{blob:n,name:i}))}));return{blobs:r.map(n=>n.blob),names:r.map(n=>n.name)}}const iVt=({fileType:e="file",fileRef:t,name:r,value:n="",multiple:o=!1,acceptableTypes:i,onFileSizeError:a,onImageChange:l})=>s.jsx("input",{type:e,ref:t,name:r,value:n,size:1e3,"data-testid":ke("input-file-element-mobile",r),onChange:async d=>{const u=d.target.files?.[0],p=u?.size;u!=null&&p!=null?(a?.(!1),l(u),d.target.value=""):(a?.(!0),d.target.value="")},style:{display:"none"},accept:`${(i??"image/jpg, image/jpeg").toString()}`,multiple:o,capture:!0}),C7e=({shouldDisplay:e,width:t=30,height:r=30,styles:n,animationInLoop:o=!1})=>{const[,i]=i5e(a5e),[a]=Ic("MoneyTransferSuccess");return C.useEffect(()=>{e&&i(!0)},[e,i]),e&&a!=null?s.jsx(O1,{style:{width:t,height:r,...n},play:!0,animationData:a,loop:o,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):null},aVt=e=>tn`
|
|
5401
5401
|
0% {
|
|
5402
5402
|
width: 0%;
|
|
5403
5403
|
}
|
|
@@ -21492,7 +21492,7 @@ to {
|
|
|
21492
21492
|
display: flex;
|
|
21493
21493
|
flex-direction: column;
|
|
21494
21494
|
row-gap: ${e=>_l.sectionRowGap.valuePx(e.windowSize)};
|
|
21495
|
-
`,E9e=e=>`${e}_form`,h8r=Object.freeze(Object.defineProperty({__proto__:null,default:s8r,trackTreasuryTransferAnalytics:Gy,uniqueName:E9e},Symbol.toStringTag,{value:"Module"}));vt(()=>Promise.resolve().then(()=>LIt));const lXr=vt(()=>bt(()=>import("./OverlayContainerPage-Daz3A7cI-DlMlal7_.js"),__vite__mapDeps([15,16,1,17,6,8,5,18,19,20,7])));vt(()=>bt(()=>import("./ConfettiBurst-B6ej_xoO-BzptsIBR.js"),__vite__mapDeps([21,1,17,6,8,5,16,18,19,20,7])));vt(()=>Promise.resolve().then(()=>uUt));const cXr=vt(()=>bt(()=>import("./SignIn-B79R5ayU-BtVW5pl0.js"),__vite__mapDeps([22,1,16,17,6,8,5,23,24,25,18,19,20,7])));vt(()=>bt(()=>import("./Dashboard-cbXIPzMy-DLCpLMr4.js"),__vite__mapDeps([26,1,16,17,6,8,5,27,28,29,30,31,32,33,34,35,36,37,38,39,40,18,19,20,7,41,42,43,44,45,46,47,21])));vt(()=>bt(()=>import("./AppDrawerContent-RX7rx40V-DlBxQF_L.js"),__vite__mapDeps([48,1,16,17,6,8,5,27,18,19,20,7])));vt(()=>bt(()=>import("./TransactionListBig-Ca4yYTqY-DpBtFr0L.js"),__vite__mapDeps([49,1,16,17,6,8,5,41,37,30,38,39,18,19,20,7])));vt(()=>bt(()=>import("./TransactionListPage-CaSfmS5A-B8TNgEwP.js"),__vite__mapDeps([50,1,16,17,6,8,5,51,52,53,54,18,19,20,7])));vt(()=>bt(()=>import("./DashboardReportPage-Pc0G2Tok-BRmpg3ok.js"),__vite__mapDeps([55,1,16,17,6,8,5,56,57,58,59,60,39,61,33,29,34,35,62,63,64,65,66,67,32,68,69,18,19,20,7])));vt(()=>bt(()=>import("./ReportsPage-DV0bbi_D-1o0LJL4r.js"),__vite__mapDeps([70,1,16,17,6,8,5,56,57,58,59,64,71,65,72,54,18,19,20,7,66,73,68,69])));vt(()=>bt(()=>import("./TopExDetailPage-B4UamIS--DvTevd6J.js"),__vite__mapDeps([74,16,1,17,6,8,5,31,30,32,65,67,18,19,20,7])));vt(()=>bt(()=>import("./TransactionDetailPage-BiGPVM2O-BIqR8D1A.js"),__vite__mapDeps([75,1,16,17,6,8,5,76,77,78,29,34,35,18,19,20,7,62,60,39,51,52,53,79,80])));vt(()=>bt(()=>import("./QBOConnectionDialog-R4ZWjJsY-DNCk7fny.js"),__vite__mapDeps([81,16,1,17,6,8,5,18,19,20,7])));vt(()=>bt(()=>import("./VerifyDevice-Dc3oeJbw-D5d8Wn7A.js"),__vite__mapDeps([82,1,16,17,6,8,5,83,25,18,19,20,7])));vt(()=>bt(()=>import("./AccountLockedInfoModal-BeLLlH_Y-DAQUptbF.js"),__vite__mapDeps([83,16,1,17,6,8,5,25,18,19,20,7])).then(e=>e.a));vt(()=>bt(()=>import("./InsightsCardStack-zRynyTFj-CqnhwImM.js"),__vite__mapDeps([36,1,37,30,16,17,6,8,5,38,39,40,18,19,20,7])));vt(()=>bt(()=>import("./InformationCardStack-xhdujEcL-COTShhF9.js"),__vite__mapDeps([44,1,37,30,16,17,6,8,5,38,39,18,19,20,7])));vt(()=>bt(()=>import("./DownloadOverlay-C7r6PAam-BvXPoC9j.js"),__vite__mapDeps([72,1,16,17,6,8,5,56,57,58,59,54,18,19,20,7])));vt(()=>bt(()=>import("./PeoplePage-Du_TRX4h-C2Rmmn5d.js"),__vite__mapDeps([84,1,16,17,6,8,5,85,86,18,19,20,7])));vt(()=>bt(()=>import("./PandLWithForecastPage-D3kcPKd0-sYhFB1EB.js"),__vite__mapDeps([87,1,16,17,6,8,5,88,56,71,65,58,59,89,66,73,18,19,20,7])));vt(()=>bt(()=>import("./TrendChart-DLlQzxzM-PPRPEN_l.js"),__vite__mapDeps([78,1,5,6,29,16,17,8,34,35,18,19,20,7])));vt(()=>bt(()=>import("./EntityDetailPage-BaKoO9FG-BDiZrnyD.js"),__vite__mapDeps([90,16,1,17,6,8,5,77,78,29,34,35,18,19,20,7,62,60,39,51,52,53])));const dXr=vt(()=>bt(()=>import("./NotFoundPage-CdWhiWjz-DDjAX_Ng.js"),__vite__mapDeps([91,16,1,17,6,8,5,23,18,19,20,7]))),uXr=vt(()=>Promise.resolve().then(()=>BYt));vt(()=>bt(()=>import("./CompanyPassportCard-B8PLT6MG-BUc5HZU7.js"),__vite__mapDeps([42,16,1,17,6,8,5,37,30,18,19,20,7])));vt(()=>bt(()=>import("./CompanyPassportPage-CQZPgrNF-KJN_fT4M.js"),__vite__mapDeps([92,1,16,17,6,8,5,93,94,95,96,18,19,20,7])));vt(()=>bt(()=>import("./CreateOrEditVendorPage-BO4_TNWg-EUNhPwxD.js"),__vite__mapDeps([97,1,16,17,6,8,5,18,19,20,7])));vt(()=>bt(()=>import("./VendorACHDetailsPage-DVqS0EVe-BvHJQnhv.js"),__vite__mapDeps([98,1,99,16,17,6,8,5,100,101,102,18,19,20,7])));vt(()=>bt(()=>import("./VendorDomesticWireDetailsPage-BrvN0BZx-Cb_0-TC6.js"),__vite__mapDeps([103,1,104,16,17,6,8,5,102,101,100,105,106,18,19,20,7])));vt(()=>bt(()=>import("./VendorInternationalWireDetailsPage-Bs_MIbDV-D_-xScY6.js"),__vite__mapDeps([107,1,16,17,6,8,5,100,105,106,108,18,19,20,7])));vt(()=>bt(()=>import("./ReviewDetailsPage-CX2XB44j-BHiKofo4.js"),__vite__mapDeps([109,1,16,17,6,8,5,110,111,18,19,20,7])));vt(()=>bt(()=>import("./BillPayPromoPage-DOEbuNgH-BglT_61W.js"),__vite__mapDeps([112,1,16,17,6,8,5,113,47,89,18,19,20,7])));vt(()=>bt(()=>import("./BillPaySetUpPage-Tb-gBoFT-Po5Zl1ZL.js"),__vite__mapDeps([114,1,16,17,6,8,5,115,18,19,20,7])));vt(()=>bt(()=>import("./ApprovalRulesSettingsPage-BKxa78xI-BrpnOxmu.js"),__vite__mapDeps([116,16,1,17,6,8,5,18,19,20,7])));vt(()=>bt(()=>import("./BankConnectionsSettingsPage-CzumYsEx-f1xJXYSm.js"),__vite__mapDeps([117,1,16,17,6,8,5,118,18,19,20,7])));vt(()=>bt(()=>import("./MyBankConnectionsSettingsPage-C4YJleyg-DKQ0iSMd.js"),__vite__mapDeps([119,1,16,17,6,8,5,18,19,20,7])));vt(()=>bt(()=>import("./MyProfileSettingsPage-BMNBcdq8-CzuZjUxB.js"),__vite__mapDeps([120,1,16,17,6,8,5,106,121,86,122,18,19,20,7])));vt(()=>bt(()=>import("./NotificationSettingsPage-C4SZ6Qwg-DbitLXBD.js"),__vite__mapDeps([123,1,16,17,6,8,5,18,19,20,7])));vt(()=>bt(()=>import("./BusinessVerificationPage-De9zCAm7-geq4Sk8A.js"),__vite__mapDeps([124,1,16,17,6,8,5,125,106,126,93,94,96,127,18,19,20,7])));vt(()=>bt(()=>import("./ReimbursementPromoPage-C0sHIJm4-YN1RP5MA.js"),__vite__mapDeps([128,1,16,17,6,8,5,113,47,89,18,19,20,7])));vt(()=>bt(()=>import("./ReimbursementSetUpPage-C85Q6ZnB-DbK7lPyD.js"),__vite__mapDeps([129,1,16,17,6,8,5,115,18,19,20,7])));vt(()=>Promise.resolve().then(()=>tlr));vt(()=>bt(()=>import("./BillDetailPage-CgCMZFw1-pAtGUG0W.js"),__vite__mapDeps([130,1,16,17,6,8,5,110,18,19,20,7])));vt(()=>bt(()=>import("./InvoiceUploadSection-W4vdQGvo-DAuF5vcp.js"),__vite__mapDeps([131,1,16,17,6,8,5,132,18,19,20,7,133])));vt(()=>bt(()=>import("./BillPayApprovalRulesPage-S80WUW0f-Cw75zLq9.js"),__vite__mapDeps([134,16,1,17,6,8,5,18,19,20,7])));vt(()=>bt(()=>import("./BillPayApprovalRuleDetailPage-DnhdBw3a-BtwlYdoz.js"),__vite__mapDeps([135,1,16,17,6,8,5,136,18,19,20,7])));vt(()=>bt(()=>import("./ReimbursementApprovalRulesPage-BJaSXRQF-DF9kihjD.js"),__vite__mapDeps([137,16,1,17,6,8,5,18,19,20,7])));vt(()=>bt(()=>import("./ReimbursementApprovalRuleDetailPage-OXenWhiy-Cj4gr0h0.js"),__vite__mapDeps([138,1,16,17,6,8,5,136,18,19,20,7])));const pXr=vt(()=>Promise.resolve().then(()=>yOt));vt(()=>bt(()=>import("./EditReimbursementDetailPage-DLjRDR48-DAmxctvz.js"),__vite__mapDeps([139,1,16,17,6,8,5,131,132,18,19,20,7,133,140,93,108,102,100,80])));vt(()=>bt(()=>import("./ReimbursementDetailPage-BeFEzgmP-DZ-1wgaR.js"),__vite__mapDeps([141,1,16,17,6,8,5,131,132,18,19,20,7,133,140])));vt(()=>bt(()=>import("./InvitePeoplePage-C_4adNch-DPbyAjsn.js"),__vite__mapDeps([142,1,16,17,6,8,5,143,121,86,122,18,19,20,7])));vt(()=>bt(()=>import("./CompleteProfile-fNSWTbef-pSYliRNx.js"),__vite__mapDeps([144,1,16,17,6,8,5,95,18,19,20,7])));vt(()=>bt(()=>import("./EditPeoplePage-BnQqStEx-Cbm0H-hi.js"),__vite__mapDeps([145,1,16,17,6,8,5,143,121,86,122,18,19,20,7])));const m8r=vt(()=>bt(()=>import("./AppBasePage-Uyk9GOud-D7f8hWuo.js"),__vite__mapDeps([146,16,1,17,6,8,5,18,19,20,7])));vt(()=>bt(()=>import("./SpendManagementListViewPage-C3gJ8vag-CRVtgLhw.js"),__vite__mapDeps([147,5,1,6,16,17,8,148,149,18,19,20,7])).then(e=>e.S));vt(()=>bt(()=>import("./VendorDetailPage-DcpigP-V-CLpuuI3V.js"),__vite__mapDeps([150,1,16,17,6,8,5,151,51,52,53,77,78,29,34,35,18,19,20,7,62,60,39,40,106,152])));vt(()=>bt(()=>import("./VendorFiling1099EditablePage-BK_AfMvG-BcMvx9ZT.js"),__vite__mapDeps([153,1,16,17,6,8,5,152,18,19,20,7])));vt(()=>bt(()=>import("./ZeniAccountListViewPage-D8AbqSI--lXEmxuQ-.js"),__vite__mapDeps([154,1,16,17,6,8,5,155,156,157,158,18,19,20,7])));vt(()=>bt(()=>import("./ZeniAccountDetailPage-B3txxml4-BrnXOri_.js"),__vite__mapDeps([159,1,16,17,6,8,5,52,53,160,161,157,18,19,20,7])));vt(()=>bt(()=>import("./AccountInfoPage-BEOrrVQS-L5aJOIaA.js"),__vite__mapDeps([162,1,16,17,6,8,5,149,163,160,53,18,19,20,7])));vt(()=>bt(()=>import("./TransferDrawerPage-5IgzdfVN-CuTPVgyu.js"),__vite__mapDeps([164,1,16,17,6,8,5,158,163,160,53,18,19,20,7])));vt(()=>bt(()=>import("./CreditCardPaymentDrawerPage-CsHjU-sm-BX_z_XTl.js"),__vite__mapDeps([165,16,1,17,6,8,5,76,18,19,20,7])));vt(()=>bt(()=>import("./CheckDepositDrawerPage-B-bTb9ct-CleglNSV.js"),__vite__mapDeps([166,1,16,17,6,8,5,18,19,20,7])));vt(()=>bt(()=>import("./ZeniAccountPromoPage-CcZOtFpv-D5dUYpiY.js"),__vite__mapDeps([167,1,16,17,6,8,5,89,18,19,20,7])));vt(()=>bt(()=>import("./ZeniAccountSetupPage-COA09GMm-BsBo4Yw_.js"),__vite__mapDeps([168,1,16,17,6,8,5,115,18,19,20,7])));vt(()=>bt(()=>import("./DepositAccTransactionListPage-DqPIPHi9-DnAhb4M6.js"),__vite__mapDeps([169,1,16,17,6,8,5,52,53,161,18,19,20,7])));vt(()=>bt(()=>import("./StatementsPage-DgoXqABR-NsGiWIFr.js"),__vite__mapDeps([170,1,16,17,6,8,5,52,53,171,160,18,19,20,7])));vt(()=>bt(()=>import("./TransactionVendorDetailPage-CH7qHDUF-CdstXkoA.js"),__vite__mapDeps([172,1,16,17,6,8,5,18,19,20,7])));vt(()=>bt(()=>import("./CustomerOnboardingPage-Db6sGSGl-C--ab3S1.js"),__vite__mapDeps([173,1,16,17,6,8,5,174,127,118,175,125,106,126,93,94,96,176,81,18,19,20,7])));vt(()=>bt(()=>import("./CustomerOnboardingContainerPage-ZVvSCumS-nk4WVXpw.js"),__vite__mapDeps([177,178,16,1,17,6,8,5,174,127,118,175,18,19,20,7,173,125,106,126,93,94,96,176,81])));vt(()=>bt(()=>import("./CustomerOnboardingNoStepsPage-CtIWYEfR-CA6QH1RJ.js"),__vite__mapDeps([178,16,1,17,6,8,5,174,127,118,175,18,19,20,7])));vt(()=>bt(()=>import("./CustomerOnboardingProductSuitePage-DHSPLF5F-BeorfiRM.js"),__vite__mapDeps([179,1,16,17,6,8,5,21,18,19,20,7,24])));vt(()=>bt(()=>import("./CustomerOnboardingActivationPage-Cvdehiay-Ci2xJTUc.js"),__vite__mapDeps([180,1,16,17,6,8,5,18,19,20,7])));vt(()=>bt(()=>import("./BillingSettingsPage-ZupDcNHz-B6O6l_7B.js"),__vite__mapDeps([181,1,16,17,6,8,5,174,127,118,18,19,20,7])));vt(()=>bt(()=>import("./UncategorizedAccountsMappingPage-CgJuXRnT-4h1DDmrY.js"),__vite__mapDeps([182,1,16,17,6,8,5,183,18,19,20,7])));vt(()=>bt(()=>import("./IntegrationsSettingsPage-fqQsGUmw-CRKZpnAv.js"),__vite__mapDeps([184,16,1,17,6,8,5,176,81,18,19,20,7])));vt(()=>bt(()=>import("./UnitIntegrationPage-Dew9WP2L-B7QG_5u7.js"),__vite__mapDeps([185,1,16,17,6,8,5,18,19,20,7])));vt(()=>bt(()=>import("./MagicLinkACHDetailsPage-BeUu65LP-h79CD54_.js"),__vite__mapDeps([186,99,1,16,17,6,8,5,100,101,102,18,19,20,7])));vt(()=>bt(()=>import("./MagicLinkDomesticWireDetailsPage-CO7IswK8-3R9uoHM3.js"),__vite__mapDeps([187,104,1,16,17,6,8,5,102,101,100,105,106,18,19,20,7])));vt(()=>bt(()=>import("./MagicLinkInternationalWireDetailsPage-bKdrX7dk-BH9XfZTx.js"),__vite__mapDeps([188,189,1,16,17,6,8,5,100,105,106,101,18,19,20,7])));vt(()=>bt(()=>import("./AttachmentView-zHGhIkWo-C64qXCAp.js"),__vite__mapDeps([132,1,16,17,6,8,5,18,19,20,7])));vt(()=>bt(()=>import("./MagicLinkSuccessPage-BRWymdWH-suMYBps1.js"),__vite__mapDeps([190,16,1,17,6,8,5,18,19,20,7])));vt(()=>bt(()=>import("./Vendor2FAPopup-2JZx7Ouz-DmIxVSxV.js"),__vite__mapDeps([191,1,17,6,8,5,16,18,19,20,7])));vt(()=>bt(()=>import("./AgingReportsPage-Bff4u7T1-DOBvEqCj.js"),__vite__mapDeps([192,1,16,17,6,8,5,63,28,29,62,58,59,67,32,193,194,18,19,20,7])));vt(()=>bt(()=>import("./ApAgingDetailPage-2NsAj3gO-DfogwLMb.js"),__vite__mapDeps([195,1,16,17,6,8,5,196,194,18,19,20,7])));vt(()=>bt(()=>import("./ArAgingDetailPage-CnUgFF1M-Bb_-bJZp.js"),__vite__mapDeps([197,1,16,17,6,8,5,196,194,18,19,20,7])));vt(()=>bt(()=>import("./OpExByVendorPage-B13tAq03-Dd8cq0hz.js"),__vite__mapDeps([198,1,16,17,6,8,5,29,35,56,64,58,59,71,65,62,67,32,61,63,199,69,193,18,19,20,7])));vt(()=>bt(()=>import("./VendorInternationalWireSwiftDetailsPage-CJMBOb8y-CNYkR-9e.js"),__vite__mapDeps([200,1,189,16,17,6,8,5,100,105,106,101,18,19,20,7])));vt(()=>bt(()=>import("./VendorFirstReviewPage-BnGpb03v-CQ1grmaD.js"),__vite__mapDeps([201,1,16,17,6,8,5,85,18,19,20,7])));const hXr=vt(()=>bt(()=>import("./NewGlobalMerchantPage-DGFtrDg1-BDtdrE9G.js"),__vite__mapDeps([202,1,16,17,6,8,5,18,19,20,7]))),mXr=vt(()=>bt(()=>import("./GlobalReviewListPage-DGOKRsKI-CAnqX1u0.js"),__vite__mapDeps([203,1,16,17,6,8,5,18,19,20,7])));vt(()=>bt(()=>import("./ScheduleDetailsPage-BqX1EZGE-B4pi2I25.js"),__vite__mapDeps([204,1,16,17,6,8,5,205,18,19,20,7])));vt(()=>bt(()=>import("./ScheduleDetailsFixedAssetsPage-BmZgiTVc-C4es4cDL.js"),__vite__mapDeps([206,1,16,17,6,8,5,205,18,19,20,7])));vt(()=>bt(()=>import("./LinkJETransactionPage-DicS5kKg-DOb356xm.js"),__vite__mapDeps([207,1,16,17,6,8,5,75,76,77,78,29,34,35,18,19,20,7,62,60,39,51,52,53,79,80])));vt(()=>bt(()=>import("./ChargeCardPromoPage-DBSmL-ms-DBZo83zK.js"),__vite__mapDeps([208,1,16,17,6,8,5,39,46,89,18,19,20,7])));vt(()=>bt(()=>import("./ChargeCardSetupPage-cou3N3Iv-BSBfzNx6.js"),__vite__mapDeps([209,1,16,17,6,8,5,76,115,18,19,20,7])));vt(()=>bt(()=>import("./ChargeCardListPage-DlI8ZfB0-CMLNFzih.js"),__vite__mapDeps([210,1,16,17,6,8,5,148,211,85,86,212,208,39,46,89,18,19,20,7,213,45,40])));vt(()=>bt(()=>import("./MyPendingActivationChargeCardListPage-D-6TnbYs-g9LqO-rS.js"),__vite__mapDeps([214,16,1,17,6,8,5,211,85,86,212,18,19,20,7])));vt(()=>bt(()=>import("./ChargeCardDetailPage-bk-pzoDR-DTGxBulo.js"),__vite__mapDeps([215,1,16,17,6,8,5,39,216,18,212,133,213,86,19,20,7])));vt(()=>bt(()=>import("./CashbackDetailPage-B2drd1Nz-BAvHe1xx.js"),__vite__mapDeps([217,16,1,17,6,8,5,60,39,18,19,20,7])));vt(()=>bt(()=>import("./ChargeCardStatementsPage-Z05M_t51-O2I36ZAe.js"),__vite__mapDeps([218,16,1,17,6,8,5,52,53,160,18,19,20,7])));vt(()=>bt(()=>import("./ChargeCardPaymentHistoryPage-DnxJwv-T-SsEma55z.js"),__vite__mapDeps([219,1,16,17,6,8,5,148,147,149,18,19,20,7,155])));vt(()=>bt(()=>import("./IssueChargeCardPage-CdV757XH-B0b8pyku.js"),__vite__mapDeps([220,1,16,17,6,8,5,121,86,18,19,20,7])));vt(()=>bt(()=>import("./AddToWalletPage-DNPLnpTq-CxRyEwld.js"),__vite__mapDeps([221,1,16,17,6,8,5,216,18,19,20,7])));vt(()=>bt(()=>import("./AddAddressForCardDrawer-CNkdq378-DvUXwFrO.js"),__vite__mapDeps([222,1,16,17,6,8,5,18,19,20,7])));vt(()=>bt(()=>import("./TaskManagementPage-svW7FNT3-CdR83JXD.js"),__vite__mapDeps([223,1,16,17,6,8,5,148,224,147,149,18,19,20,7])));vt(()=>bt(()=>Promise.resolve().then(()=>zwr),void 0).then(e=>e.m));vt(()=>bt(()=>import("./InvitePageListView-ktOXziSw-ClMd1Rgx.js"),__vite__mapDeps([225,1,16,17,6,8,5,43,18,19,20,7])));vt(()=>bt(()=>import("./InviteFormPage-C7fxnyMS-ChsV2A2J.js"),__vite__mapDeps([226,1,16,17,6,8,5,18,19,20,7])));vt(()=>bt(()=>import("./DrawerPage-BEV7nWrL-CqfdeYhP.js"),__vite__mapDeps([227,16,1,17,6,8,5,18,19,20,7])));vt(()=>bt(()=>import("./NotificationsPage-jxpX3iRG-UGS5Y_9i.js"),__vite__mapDeps([228,1,16,17,6,8,5,151,229,224,18,19,20,7])));vt(()=>bt(()=>import("./FeaturePreviewPage-DsJEfObK-B9lh1mEQ.js"),__vite__mapDeps([230,16,1,17,6,8,5,18,19,20,7])));vt(()=>bt(()=>import("./BillsBulkReviewDrawerPage-CJrUtHKz-B78eSann.js"),__vite__mapDeps([231,1,5,6,232,16,17,8,18,19,20,7])));vt(()=>bt(()=>import("./ReimbursementsBulkReviewDrawerPage-B5RzRA4c-PwRYjy1t.js"),__vite__mapDeps([233,1,5,6,232,16,17,8,18,19,20,7])));vt(()=>bt(()=>import("./ExpenseAutomationOverviewPage-BLvAzAmO-JyE5jYzJ.js"),__vite__mapDeps([234,1,16,17,6,8,5,18,19,20,7])));vt(()=>bt(()=>import("./AIPerformancePage-DpXZ7sco-B8d5E6QI.js"),__vite__mapDeps([235,1,16,17,6,8,5,88,18,19,20,7])));vt(()=>bt(()=>import("./ExpenseAutomationPage-CE_qMXSG-DlDCSSSs.js"),__vite__mapDeps([236,1,16,17,6,8,5,58,59,199,69,183,79,18,19,20,7])));vt(()=>bt(()=>import("./AccountReconDetailsDrawerPage-D2Hx_l3u-BYxEEZJn.js"),__vite__mapDeps([237,1,16,17,6,8,5,59,18,19,20,7])));vt(()=>bt(()=>import("./InternationalWireVerificationPage-DpmSzzre-gDdhOqko.js"),__vite__mapDeps([238,1,16,17,6,8,5,126,94,18,19,20,7])));vt(()=>bt(()=>import("./ExpressPayPage-CDowSjHC-DolGHHJS.js"),__vite__mapDeps([239,1,16,17,6,8,5,94,111,18,19,20,7])));vt(()=>bt(()=>import("./TreasuryPromoPage-DQabp_BI-lYWtZagK.js"),__vite__mapDeps([240,1,16,17,6,8,5,47,155,156,18,19,20,7])));vt(()=>Promise.resolve().then(()=>h8r));vt(()=>Promise.resolve().then(()=>t8r));vt(()=>Promise.resolve().then(()=>a6r));vt(()=>bt(()=>import("./TreasuryOverviewPage-CyMGJE8x-BqzDON9-.js"),__vite__mapDeps([241,1,16,17,6,8,5,53,52,156,18,19,20,7])));vt(()=>bt(()=>import("./TreasuryStatementsPage-DyJbkTPX-DQbO4X2A.js"),__vite__mapDeps([242,1,16,17,6,8,5,52,53,171,160,18,19,20,7])));vt(()=>bt(()=>import("./TreasuryTaxLetterPage-BSIqzP7E-BachcLIH.js"),__vite__mapDeps([243,1,16,17,6,8,5,52,53,171,160,18,19,20,7])));const f8r=e=>b.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},b.createElement("rect",{x:3.16187,y:4.9248,width:16,height:16,rx:2,stroke:"currentColor",strokeWidth:1.5}),b.createElement("path",{d:"M9.75 1.9248H18.1619C20.371 1.9248 22.1619 3.71567 22.1619 5.9248V15",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round"}),b.createElement("path",{d:"M15.4644 10.7257L10.4607 15.494C10.3977 15.5542 10.3231 15.6009 10.2415 15.6314C10.1598 15.6619 10.0728 15.6754 9.98577 15.6712C9.8999 15.6671 9.81573 15.6459 9.73823 15.6087C9.66073 15.5715 9.59148 15.5191 9.53459 15.4546L7.2569 12.8672",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),g8r=e=>b.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},b.createElement("path",{d:"M1.40002 7H22.5756",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),b.createElement("path",{d:"M8.065 17.29H15.9105",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),b.createElement("path",{d:"M4.26514 12.1444H19.7104",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),y8r=TR(new Date().getFullYear(),0),v8r=[...Array(12)].map((e,t)=>y8r.add(t,"month").format(de.getLocalizedStrings().dateFormat.visual.MMMMFormat)),_9e=()=>Rt().subtract(1,"quarter").endOf("quarter"),T9e=()=>Rt().subtract(1,"month").endOf("month"),fXr=({options:e,selectedDate:t})=>{const r=de.getLocalizedStrings().dateFormat.analytics.MMSlashDDSlashYYYYFormat;return e.find(n=>n.value==="month"?t.format(r)===T9e().format(r):n.value==="quarter"?t.format(r)===_9e().format(r):!1)?.value},b8r=e=>e==="month"?T9e():_9e(),A9e=e=>v8r.findIndex(t=>t===e)+1,w8r=m(Z4e)`
|
|
21495
|
+
`,E9e=e=>`${e}_form`,h8r=Object.freeze(Object.defineProperty({__proto__:null,default:s8r,trackTreasuryTransferAnalytics:Gy,uniqueName:E9e},Symbol.toStringTag,{value:"Module"}));vt(()=>Promise.resolve().then(()=>LIt));const lXr=vt(()=>bt(()=>import("./OverlayContainerPage-Daz3A7cI-CNivODsb.js"),__vite__mapDeps([15,16,1,17,6,8,5,18,19,20,7])));vt(()=>bt(()=>import("./ConfettiBurst-D52CuNQL-H3h7bAw9.js"),__vite__mapDeps([21,1,17,6,8,5,16,18,19,20,7])));vt(()=>Promise.resolve().then(()=>uUt));const cXr=vt(()=>bt(()=>import("./SignIn-D7PmDE-R-DymRL_3M.js"),__vite__mapDeps([22,1,16,17,6,8,5,23,24,25,18,19,20,7])));vt(()=>bt(()=>import("./Dashboard-w2AGQi2P-DrVf9Yya.js"),__vite__mapDeps([26,1,16,17,6,8,5,27,28,29,30,31,32,33,34,35,36,37,38,39,40,18,19,20,7,41,42,43,44,45,46,47,21])));vt(()=>bt(()=>import("./AppDrawerContent-D4EVpqHP-BynJPN1Q.js"),__vite__mapDeps([48,1,16,17,6,8,5,27,18,19,20,7])));vt(()=>bt(()=>import("./TransactionListBig-BI0Egbwq-BwzSPZzZ.js"),__vite__mapDeps([49,1,16,17,6,8,5,41,37,30,38,39,18,19,20,7])));vt(()=>bt(()=>import("./TransactionListPage-DxGLszcx-DAoYnm1i.js"),__vite__mapDeps([50,1,16,17,6,8,5,51,52,53,54,18,19,20,7])));vt(()=>bt(()=>import("./DashboardReportPage-NzF6nutN-DSZitKtw.js"),__vite__mapDeps([55,1,16,17,6,8,5,56,57,58,59,60,39,61,33,29,34,35,62,63,64,65,66,67,32,68,69,18,19,20,7])));vt(()=>bt(()=>import("./ReportsPage-e1xmk9Ua-DWkV6LH_.js"),__vite__mapDeps([70,1,16,17,6,8,5,56,57,58,59,64,71,65,72,54,18,19,20,7,66,73,68,69])));vt(()=>bt(()=>import("./TopExDetailPage-CUoODDhA-zH5Xy9H2.js"),__vite__mapDeps([74,16,1,17,6,8,5,31,30,32,65,67,18,19,20,7])));vt(()=>bt(()=>import("./TransactionDetailPage-BTonMpH2-DgSPoDVR.js"),__vite__mapDeps([75,1,16,17,6,8,5,76,77,78,29,34,35,18,19,20,7,62,60,39,51,52,53,79,80])));vt(()=>bt(()=>import("./QBOConnectionDialog-B5v60lo1-GNrkjfxe.js"),__vite__mapDeps([81,16,1,17,6,8,5,18,19,20,7])));vt(()=>bt(()=>import("./VerifyDevice-CVr0FwHa-DAB6OPBb.js"),__vite__mapDeps([82,1,16,17,6,8,5,83,25,18,19,20,7])));vt(()=>bt(()=>import("./AccountLockedInfoModal-4gi6evfx-WlzE3tch.js"),__vite__mapDeps([83,16,1,17,6,8,5,25,18,19,20,7])).then(e=>e.a));vt(()=>bt(()=>import("./InsightsCardStack-BLtip0dt-CdpS0MPm.js"),__vite__mapDeps([36,1,37,30,16,17,6,8,5,38,39,40,18,19,20,7])));vt(()=>bt(()=>import("./InformationCardStack-DnoAMdjH-BkgD0Khh.js"),__vite__mapDeps([44,1,37,30,16,17,6,8,5,38,39,18,19,20,7])));vt(()=>bt(()=>import("./DownloadOverlay-DkSROLX2-BV0uInlq.js"),__vite__mapDeps([72,1,16,17,6,8,5,56,57,58,59,54,18,19,20,7])));vt(()=>bt(()=>import("./PeoplePage-BZwxMiLM-5s0-HkTL.js"),__vite__mapDeps([84,1,16,17,6,8,5,85,86,18,19,20,7])));vt(()=>bt(()=>import("./PandLWithForecastPage-D9muoIzS-BHKR537x.js"),__vite__mapDeps([87,1,16,17,6,8,5,88,56,71,65,58,59,89,66,73,18,19,20,7])));vt(()=>bt(()=>import("./TrendChart-Cb8wnBqS-Di_U3EIl.js"),__vite__mapDeps([78,1,5,6,29,16,17,8,34,35,18,19,20,7])));vt(()=>bt(()=>import("./EntityDetailPage-DRZiqaCb-B_QVK0o1.js"),__vite__mapDeps([90,16,1,17,6,8,5,77,78,29,34,35,18,19,20,7,62,60,39,51,52,53])));const dXr=vt(()=>bt(()=>import("./NotFoundPage-ys6HcZUO-byf07x0N.js"),__vite__mapDeps([91,16,1,17,6,8,5,23,18,19,20,7]))),uXr=vt(()=>Promise.resolve().then(()=>BYt));vt(()=>bt(()=>import("./CompanyPassportCard-Bx4KhQfs-Cq5ggOmg.js"),__vite__mapDeps([42,16,1,17,6,8,5,37,30,18,19,20,7])));vt(()=>bt(()=>import("./CompanyPassportPage-i1SEs7VJ-Djluu3GS.js"),__vite__mapDeps([92,1,16,17,6,8,5,93,94,95,96,18,19,20,7])));vt(()=>bt(()=>import("./CreateOrEditVendorPage-9LgI-Wd0-BZGgNM2M.js"),__vite__mapDeps([97,1,16,17,6,8,5,18,19,20,7])));vt(()=>bt(()=>import("./VendorACHDetailsPage-DBr7crZ5-FdMIuie9.js"),__vite__mapDeps([98,1,99,16,17,6,8,5,100,101,102,18,19,20,7])));vt(()=>bt(()=>import("./VendorDomesticWireDetailsPage-BRIKuuUP-j1Nnt0f3.js"),__vite__mapDeps([103,1,104,16,17,6,8,5,102,101,100,105,106,18,19,20,7])));vt(()=>bt(()=>import("./VendorInternationalWireDetailsPage-BVI-FIhY-DxEIS0E-.js"),__vite__mapDeps([107,1,16,17,6,8,5,100,105,106,108,18,19,20,7])));vt(()=>bt(()=>import("./ReviewDetailsPage-Dk0Rw7L_-B6ijKV2H.js"),__vite__mapDeps([109,1,16,17,6,8,5,110,111,18,19,20,7])));vt(()=>bt(()=>import("./BillPayPromoPage-Dsl0YvUE-DF_BWBKa.js"),__vite__mapDeps([112,1,16,17,6,8,5,113,47,89,18,19,20,7])));vt(()=>bt(()=>import("./BillPaySetUpPage-MLf77bPI-BQQY77ue.js"),__vite__mapDeps([114,1,16,17,6,8,5,115,18,19,20,7])));vt(()=>bt(()=>import("./ApprovalRulesSettingsPage-DTLJUdYp-C8DjXSqL.js"),__vite__mapDeps([116,16,1,17,6,8,5,18,19,20,7])));vt(()=>bt(()=>import("./BankConnectionsSettingsPage-DLeiSryp-DwwrFPU_.js"),__vite__mapDeps([117,1,16,17,6,8,5,118,18,19,20,7])));vt(()=>bt(()=>import("./MyBankConnectionsSettingsPage-DsuI81Dg-BZvQVl9M.js"),__vite__mapDeps([119,1,16,17,6,8,5,18,19,20,7])));vt(()=>bt(()=>import("./MyProfileSettingsPage-Bx776Bw1-B3dkfEvc.js"),__vite__mapDeps([120,1,16,17,6,8,5,106,121,86,122,18,19,20,7])));vt(()=>bt(()=>import("./NotificationSettingsPage-Cfrj3b7B-DQREI7pG.js"),__vite__mapDeps([123,1,16,17,6,8,5,18,19,20,7])));vt(()=>bt(()=>import("./BusinessVerificationPage-DKTSnhnQ-CiETQcAD.js"),__vite__mapDeps([124,1,16,17,6,8,5,125,106,126,93,94,96,127,18,19,20,7])));vt(()=>bt(()=>import("./ReimbursementPromoPage-BjhlxlPR-BZ1GzMRv.js"),__vite__mapDeps([128,1,16,17,6,8,5,113,47,89,18,19,20,7])));vt(()=>bt(()=>import("./ReimbursementSetUpPage-pC4KuigM-BDlDJUML.js"),__vite__mapDeps([129,1,16,17,6,8,5,115,18,19,20,7])));vt(()=>Promise.resolve().then(()=>tlr));vt(()=>bt(()=>import("./BillDetailPage-l0WIOXCJ-DfE-sU4P.js"),__vite__mapDeps([130,1,16,17,6,8,5,110,18,19,20,7])));vt(()=>bt(()=>import("./InvoiceUploadSection-by1gHnS2-ByjzglAY.js"),__vite__mapDeps([131,1,16,17,6,8,5,132,18,19,20,7,133])));vt(()=>bt(()=>import("./BillPayApprovalRulesPage-D_iQkfQr-Dlin1Cm9.js"),__vite__mapDeps([134,16,1,17,6,8,5,18,19,20,7])));vt(()=>bt(()=>import("./BillPayApprovalRuleDetailPage-BOMCy57E-CAzd0WOM.js"),__vite__mapDeps([135,1,16,17,6,8,5,136,18,19,20,7])));vt(()=>bt(()=>import("./ReimbursementApprovalRulesPage-B6WJ19jK-CKNTvHH7.js"),__vite__mapDeps([137,16,1,17,6,8,5,18,19,20,7])));vt(()=>bt(()=>import("./ReimbursementApprovalRuleDetailPage-D7eJT6hf-BQOWuUEe.js"),__vite__mapDeps([138,1,16,17,6,8,5,136,18,19,20,7])));const pXr=vt(()=>Promise.resolve().then(()=>yOt));vt(()=>bt(()=>import("./EditReimbursementDetailPage-BaMG1YJG-BZAQQMK3.js"),__vite__mapDeps([139,1,16,17,6,8,5,131,132,18,19,20,7,133,140,93,108,102,100,80])));vt(()=>bt(()=>import("./ReimbursementDetailPage-CEyFEPK5-BstF-oGE.js"),__vite__mapDeps([141,1,16,17,6,8,5,131,132,18,19,20,7,133,140])));vt(()=>bt(()=>import("./InvitePeoplePage-CIiwEl_L-BEUpkDfI.js"),__vite__mapDeps([142,1,16,17,6,8,5,143,121,86,122,18,19,20,7])));vt(()=>bt(()=>import("./CompleteProfile-DWOv7odD-C_i36-ce.js"),__vite__mapDeps([144,1,16,17,6,8,5,95,18,19,20,7])));vt(()=>bt(()=>import("./EditPeoplePage-Ld339aav-BKidG2ge.js"),__vite__mapDeps([145,1,16,17,6,8,5,143,121,86,122,18,19,20,7])));const m8r=vt(()=>bt(()=>import("./AppBasePage-B3uZsUDM-CkKVhlEN.js"),__vite__mapDeps([146,16,1,17,6,8,5,18,19,20,7])));vt(()=>bt(()=>import("./SpendManagementListViewPage-DJgNAGhp-JXA21DLB.js"),__vite__mapDeps([147,5,1,6,16,17,8,148,149,18,19,20,7])).then(e=>e.S));vt(()=>bt(()=>import("./VendorDetailPage-CJQeB1km-B4OkDlMh.js"),__vite__mapDeps([150,1,16,17,6,8,5,151,51,52,53,77,78,29,34,35,18,19,20,7,62,60,39,40,106,152])));vt(()=>bt(()=>import("./VendorFiling1099EditablePage-C2zwrfg_-BSkCYiG1.js"),__vite__mapDeps([153,1,16,17,6,8,5,152,18,19,20,7])));vt(()=>bt(()=>import("./ZeniAccountListViewPage-yATacDeU-5emCk5r8.js"),__vite__mapDeps([154,1,16,17,6,8,5,155,156,157,158,18,19,20,7])));vt(()=>bt(()=>import("./ZeniAccountDetailPage-ByCgz534-Dsg1GtqQ.js"),__vite__mapDeps([159,1,16,17,6,8,5,52,53,160,161,157,18,19,20,7])));vt(()=>bt(()=>import("./AccountInfoPage-B6jxAqA6-BUFslhTv.js"),__vite__mapDeps([162,1,16,17,6,8,5,149,163,160,53,18,19,20,7])));vt(()=>bt(()=>import("./TransferDrawerPage-BvKebmux-o6Yl4bGU.js"),__vite__mapDeps([164,1,16,17,6,8,5,158,163,160,53,18,19,20,7])));vt(()=>bt(()=>import("./CreditCardPaymentDrawerPage-wHK6Ds5I-BlFWnrY1.js"),__vite__mapDeps([165,16,1,17,6,8,5,76,18,19,20,7])));vt(()=>bt(()=>import("./CheckDepositDrawerPage-DV7strdp-DIjE0Er3.js"),__vite__mapDeps([166,1,16,17,6,8,5,18,19,20,7])));vt(()=>bt(()=>import("./ZeniAccountPromoPage-4iBPGLEt-CS6doMp4.js"),__vite__mapDeps([167,1,16,17,6,8,5,89,18,19,20,7])));vt(()=>bt(()=>import("./ZeniAccountSetupPage-bdXuLfgB-Cy2PUDIb.js"),__vite__mapDeps([168,1,16,17,6,8,5,115,18,19,20,7])));vt(()=>bt(()=>import("./DepositAccTransactionListPage-BSq-FxKT-D5HpKscp.js"),__vite__mapDeps([169,1,16,17,6,8,5,52,53,161,18,19,20,7])));vt(()=>bt(()=>import("./StatementsPage-DkcgOLaa-BdVtg5cn.js"),__vite__mapDeps([170,1,16,17,6,8,5,52,53,171,160,18,19,20,7])));vt(()=>bt(()=>import("./TransactionVendorDetailPage-BnqP7rIa-BU85_A7u.js"),__vite__mapDeps([172,1,16,17,6,8,5,18,19,20,7])));vt(()=>bt(()=>import("./CustomerOnboardingPage-BkdhcwN8-D99zerXB.js"),__vite__mapDeps([173,1,16,17,6,8,5,174,127,118,175,125,106,126,93,94,96,176,81,18,19,20,7])));vt(()=>bt(()=>import("./CustomerOnboardingContainerPage-DLdgYP_E-YLcbGvSV.js"),__vite__mapDeps([177,178,16,1,17,6,8,5,174,127,118,175,18,19,20,7,173,125,106,126,93,94,96,176,81])));vt(()=>bt(()=>import("./CustomerOnboardingNoStepsPage-Dri4v3Rf-SMHqZamP.js"),__vite__mapDeps([178,16,1,17,6,8,5,174,127,118,175,18,19,20,7])));vt(()=>bt(()=>import("./CustomerOnboardingProductSuitePage-CDJfucTI-BVV4jNqa.js"),__vite__mapDeps([179,1,16,17,6,8,5,21,18,19,20,7,24])));vt(()=>bt(()=>import("./CustomerOnboardingActivationPage-LNgj0BYj-DDGYdiCm.js"),__vite__mapDeps([180,1,16,17,6,8,5,18,19,20,7])));vt(()=>bt(()=>import("./BillingSettingsPage-n1PkJEDe-CIU_V4L-.js"),__vite__mapDeps([181,1,16,17,6,8,5,174,127,118,18,19,20,7])));vt(()=>bt(()=>import("./UncategorizedAccountsMappingPage-WTwSitI6-BqjGQcpf.js"),__vite__mapDeps([182,1,16,17,6,8,5,183,18,19,20,7])));vt(()=>bt(()=>import("./IntegrationsSettingsPage-QVOqOc9I-BQQ4M8i8.js"),__vite__mapDeps([184,16,1,17,6,8,5,176,81,18,19,20,7])));vt(()=>bt(()=>import("./UnitIntegrationPage-C3HFSJ9I-BVEgdEbm.js"),__vite__mapDeps([185,1,16,17,6,8,5,18,19,20,7])));vt(()=>bt(()=>import("./MagicLinkACHDetailsPage-BQvuNI4u-DgnKjMFk.js"),__vite__mapDeps([186,99,1,16,17,6,8,5,100,101,102,18,19,20,7])));vt(()=>bt(()=>import("./MagicLinkDomesticWireDetailsPage-BEr-7K3J-BdD6RXkL.js"),__vite__mapDeps([187,104,1,16,17,6,8,5,102,101,100,105,106,18,19,20,7])));vt(()=>bt(()=>import("./MagicLinkInternationalWireDetailsPage-DliPDETx-zEl4JPNd.js"),__vite__mapDeps([188,189,1,16,17,6,8,5,100,105,106,101,18,19,20,7])));vt(()=>bt(()=>import("./AttachmentView-2FZ6X1gL-Cy8tYEtq.js"),__vite__mapDeps([132,1,16,17,6,8,5,18,19,20,7])));vt(()=>bt(()=>import("./MagicLinkSuccessPage-0Pn_6wi4-BDYzvhnJ.js"),__vite__mapDeps([190,16,1,17,6,8,5,18,19,20,7])));vt(()=>bt(()=>import("./Vendor2FAPopup-BS-3oZPR-C_3L-M1N.js"),__vite__mapDeps([191,1,17,6,8,5,16,18,19,20,7])));vt(()=>bt(()=>import("./AgingReportsPage-CmzapJ6B-B4fRPdaL.js"),__vite__mapDeps([192,1,16,17,6,8,5,63,28,29,62,58,59,67,32,193,194,18,19,20,7])));vt(()=>bt(()=>import("./ApAgingDetailPage-DBCM7hZZ-ChVResPi.js"),__vite__mapDeps([195,1,16,17,6,8,5,196,194,18,19,20,7])));vt(()=>bt(()=>import("./ArAgingDetailPage-hd2ALORD-DPaGaG4h.js"),__vite__mapDeps([197,1,16,17,6,8,5,196,194,18,19,20,7])));vt(()=>bt(()=>import("./OpExByVendorPage-Dwk6JAu7-BDuhx0f7.js"),__vite__mapDeps([198,1,16,17,6,8,5,29,35,56,64,58,59,71,65,62,67,32,61,63,199,69,193,18,19,20,7])));vt(()=>bt(()=>import("./VendorInternationalWireSwiftDetailsPage-D4H4XkkY-B3GBnsRt.js"),__vite__mapDeps([200,1,189,16,17,6,8,5,100,105,106,101,18,19,20,7])));vt(()=>bt(()=>import("./VendorFirstReviewPage-BeDtBSt0-DLLC2Nix.js"),__vite__mapDeps([201,1,16,17,6,8,5,85,18,19,20,7])));const hXr=vt(()=>bt(()=>import("./NewGlobalMerchantPage-BMLg6RYp-BRiqVwVI.js"),__vite__mapDeps([202,1,16,17,6,8,5,18,19,20,7]))),mXr=vt(()=>bt(()=>import("./GlobalReviewListPage-BSfJybtY-D-EekdXE.js"),__vite__mapDeps([203,1,16,17,6,8,5,18,19,20,7])));vt(()=>bt(()=>import("./ScheduleDetailsPage-BLc828ST-CP2yCdiU.js"),__vite__mapDeps([204,1,16,17,6,8,5,205,18,19,20,7])));vt(()=>bt(()=>import("./ScheduleDetailsFixedAssetsPage-DiwkB2J--BPJp47yZ.js"),__vite__mapDeps([206,1,16,17,6,8,5,205,18,19,20,7])));vt(()=>bt(()=>import("./LinkJETransactionPage-6wvu7KQx-BKOAennG.js"),__vite__mapDeps([207,1,16,17,6,8,5,75,76,77,78,29,34,35,18,19,20,7,62,60,39,51,52,53,79,80])));vt(()=>bt(()=>import("./ChargeCardPromoPage-TkHihj_n-DsNKfZLq.js"),__vite__mapDeps([208,1,16,17,6,8,5,39,46,89,18,19,20,7])));vt(()=>bt(()=>import("./ChargeCardSetupPage-CkonrAnT-D4zZH8iB.js"),__vite__mapDeps([209,1,16,17,6,8,5,76,115,18,19,20,7])));vt(()=>bt(()=>import("./ChargeCardListPage-B2OEzCZI-DRTpob3Y.js"),__vite__mapDeps([210,1,16,17,6,8,5,148,211,85,86,212,208,39,46,89,18,19,20,7,213,45,40])));vt(()=>bt(()=>import("./MyPendingActivationChargeCardListPage-BP2ZNfJQ-C1IGZ0Aj.js"),__vite__mapDeps([214,16,1,17,6,8,5,211,85,86,212,18,19,20,7])));vt(()=>bt(()=>import("./ChargeCardDetailPage-DeUmuiMY-Dftn0md6.js"),__vite__mapDeps([215,1,16,17,6,8,5,39,216,18,212,133,213,86,19,20,7])));vt(()=>bt(()=>import("./CashbackDetailPage-BL-JN6N2-DM7Co55u.js"),__vite__mapDeps([217,16,1,17,6,8,5,60,39,18,19,20,7])));vt(()=>bt(()=>import("./ChargeCardStatementsPage-DVgAcNNC-DlapdY_k.js"),__vite__mapDeps([218,16,1,17,6,8,5,52,53,160,18,19,20,7])));vt(()=>bt(()=>import("./ChargeCardPaymentHistoryPage-COWdn2l7-D7wLS9yc.js"),__vite__mapDeps([219,1,16,17,6,8,5,148,147,149,18,19,20,7,155])));vt(()=>bt(()=>import("./IssueChargeCardPage-CawHdTL3-Mn0Xu6jy.js"),__vite__mapDeps([220,1,16,17,6,8,5,121,86,18,19,20,7])));vt(()=>bt(()=>import("./AddToWalletPage-vXWBje7k-B9_XOYgG.js"),__vite__mapDeps([221,1,16,17,6,8,5,216,18,19,20,7])));vt(()=>bt(()=>import("./AddAddressForCardDrawer-Cw6wTXEm-Ne9lwqPK.js"),__vite__mapDeps([222,1,16,17,6,8,5,18,19,20,7])));vt(()=>bt(()=>import("./TaskManagementPage-K2ahivqx-Cw8lnZhf.js"),__vite__mapDeps([223,1,16,17,6,8,5,148,224,147,149,18,19,20,7])));vt(()=>bt(()=>Promise.resolve().then(()=>zwr),void 0).then(e=>e.m));vt(()=>bt(()=>import("./InvitePageListView-CoCiU_RJ-DlHeTkam.js"),__vite__mapDeps([225,1,16,17,6,8,5,43,18,19,20,7])));vt(()=>bt(()=>import("./InviteFormPage-ptg2-Do2-Dsr3cxPP.js"),__vite__mapDeps([226,1,16,17,6,8,5,18,19,20,7])));vt(()=>bt(()=>import("./DrawerPage-BnMCcEWw-BXOkrI5R.js"),__vite__mapDeps([227,16,1,17,6,8,5,18,19,20,7])));vt(()=>bt(()=>import("./NotificationsPage-Bri7Dj80-Cv5FRQtl.js"),__vite__mapDeps([228,1,16,17,6,8,5,151,229,224,18,19,20,7])));vt(()=>bt(()=>import("./FeaturePreviewPage-7G9DSgAA-dIRq9Ned.js"),__vite__mapDeps([230,16,1,17,6,8,5,18,19,20,7])));vt(()=>bt(()=>import("./BillsBulkReviewDrawerPage-C_4lLm2g-CagoY_n4.js"),__vite__mapDeps([231,1,5,6,232,16,17,8,18,19,20,7])));vt(()=>bt(()=>import("./ReimbursementsBulkReviewDrawerPage-CucXnBt6-CAc1E2XO.js"),__vite__mapDeps([233,1,5,6,232,16,17,8,18,19,20,7])));vt(()=>bt(()=>import("./ExpenseAutomationOverviewPage-B_-wUXCx-Q7Nf_H07.js"),__vite__mapDeps([234,1,16,17,6,8,5,18,19,20,7])));vt(()=>bt(()=>import("./AIPerformancePage-O2oT7VD7-B6QMOBUy.js"),__vite__mapDeps([235,1,16,17,6,8,5,88,18,19,20,7])));vt(()=>bt(()=>import("./ExpenseAutomationPage-CG1Hpwz8-CW8z-7iO.js"),__vite__mapDeps([236,1,16,17,6,8,5,58,59,199,69,183,79,18,19,20,7])));vt(()=>bt(()=>import("./AccountReconDetailsDrawerPage-Cm4KEIyT-DvN83q1j.js"),__vite__mapDeps([237,1,16,17,6,8,5,59,18,19,20,7])));vt(()=>bt(()=>import("./InternationalWireVerificationPage-Cvita0lc-B390_mEJ.js"),__vite__mapDeps([238,1,16,17,6,8,5,126,94,18,19,20,7])));vt(()=>bt(()=>import("./ExpressPayPage-CEf0O3S_-C7xNk40H.js"),__vite__mapDeps([239,1,16,17,6,8,5,94,111,18,19,20,7])));vt(()=>bt(()=>import("./TreasuryPromoPage-DqZE9SWj-Bp0vqbWD.js"),__vite__mapDeps([240,1,16,17,6,8,5,47,155,156,18,19,20,7])));vt(()=>Promise.resolve().then(()=>h8r));vt(()=>Promise.resolve().then(()=>t8r));vt(()=>Promise.resolve().then(()=>a6r));vt(()=>bt(()=>import("./TreasuryOverviewPage-DqlUffnH-Bn5k5ejI.js"),__vite__mapDeps([241,1,16,17,6,8,5,53,52,156,18,19,20,7])));vt(()=>bt(()=>import("./TreasuryStatementsPage-Cyj4xmLP-DxZc3Yqs.js"),__vite__mapDeps([242,1,16,17,6,8,5,52,53,171,160,18,19,20,7])));vt(()=>bt(()=>import("./TreasuryTaxLetterPage-04gxKt0a-DDLLJmzC.js"),__vite__mapDeps([243,1,16,17,6,8,5,52,53,171,160,18,19,20,7])));const f8r=e=>b.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},b.createElement("rect",{x:3.16187,y:4.9248,width:16,height:16,rx:2,stroke:"currentColor",strokeWidth:1.5}),b.createElement("path",{d:"M9.75 1.9248H18.1619C20.371 1.9248 22.1619 3.71567 22.1619 5.9248V15",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round"}),b.createElement("path",{d:"M15.4644 10.7257L10.4607 15.494C10.3977 15.5542 10.3231 15.6009 10.2415 15.6314C10.1598 15.6619 10.0728 15.6754 9.98577 15.6712C9.8999 15.6671 9.81573 15.6459 9.73823 15.6087C9.66073 15.5715 9.59148 15.5191 9.53459 15.4546L7.2569 12.8672",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),g8r=e=>b.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},b.createElement("path",{d:"M1.40002 7H22.5756",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),b.createElement("path",{d:"M8.065 17.29H15.9105",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),b.createElement("path",{d:"M4.26514 12.1444H19.7104",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),y8r=TR(new Date().getFullYear(),0),v8r=[...Array(12)].map((e,t)=>y8r.add(t,"month").format(de.getLocalizedStrings().dateFormat.visual.MMMMFormat)),_9e=()=>Rt().subtract(1,"quarter").endOf("quarter"),T9e=()=>Rt().subtract(1,"month").endOf("month"),fXr=({options:e,selectedDate:t})=>{const r=de.getLocalizedStrings().dateFormat.analytics.MMSlashDDSlashYYYYFormat;return e.find(n=>n.value==="month"?t.format(r)===T9e().format(r):n.value==="quarter"?t.format(r)===_9e().format(r):!1)?.value},b8r=e=>e==="month"?T9e():_9e(),A9e=e=>v8r.findIndex(t=>t===e)+1,w8r=m(Z4e)`
|
|
21496
21496
|
border: none;
|
|
21497
21497
|
background-color: ${e=>e.theme.colors.grey5};
|
|
21498
21498
|
width: 105px;
|
|
@@ -29387,7 +29387,7 @@ ${e}`,KAr=e=>b.createElement("svg",{width:38,height:39,viewBox:"0 0 38 39",fill:
|
|
|
29387
29387
|
&:hover {
|
|
29388
29388
|
color: ${e=>e.theme.colors.primary};
|
|
29389
29389
|
}
|
|
29390
|
-
`,FXr=vt(()=>bt(()=>import("./WarningsDrawerPage-DE6hNSem-DTjl6BDC.js"),__vite__mapDeps([244,16,1,17,6,8,5,18,19,20,7])));var rWr=Dbe();const p7=lw(rWr);class nWr{getSignedInUser(){const t=window.localStorage.getItem(this.ZENI_SESSION_ID),r=window.localStorage.getItem(this.ZENI_SIGNED_IN_USER);if(r!=null&&t!=null)return JSON.parse(this.decrypt(r,t))}getShowNegativeAmountInParenthesis(){const t=window.localStorage.getItem(this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS),r=window.localStorage.getItem(this.ZENI_SESSION_ID);return t!=null&&r!=null?JSON.parse(this.decrypt(t,r)):!1}getShowNegativeAmountInParenthesisPDF(){const t=window.localStorage.getItem(this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS_PDF),r=window.localStorage.getItem(this.ZENI_SESSION_ID);return t!=null&&r!=null?JSON.parse(this.decrypt(t,r)):!0}getSignedInUserTenant(t){const r=window.localStorage.getItem(this.ZENI_SIGNED_IN_USER_TENANTS),n=window.localStorage.getItem(this.ZENI_SESSION_ID);if(r!=null&&n!=null)return JSON.parse(this.decrypt(r,n)).find(i=>i.tenantEmailDomain===t)}getSignedInUserTenantWithId(t){const r=window.localStorage.getItem(this.ZENI_SIGNED_IN_USER_TENANTS),n=window.localStorage.getItem(this.ZENI_SESSION_ID);if(r!=null&&n!=null)return JSON.parse(this.decrypt(r,n)).find(i=>i.tenantId===t)}getForceRefreshedComponents(){const t=window.localStorage.getItem(this.ZENI_SESSION_ID),r=window.localStorage.getItem(this.ZENI_FORCE_REFRESHED_COMPONENTS);if(r&&t!=null){const n=this.decrypt(r,t);return n?JSON.parse(n):[]}return[]}saveForceRefreshedComponents(t){const r=window.localStorage.getItem(this.ZENI_SESSION_ID);r!=null?window.localStorage.setItem(this.ZENI_FORCE_REFRESHED_COMPONENTS,this.encrypt(JSON.stringify(t),r)):console.warn("Can't update the force refreshed components when the user is logged out!")}saveSignedInUserWithSession(t,r){if(t==null||r==null)throw new Error("Can't accept nil for user or session Id");window.localStorage.setItem(this.ZENI_SESSION_ID,r),window.localStorage.setItem(this.ZENI_SIGNED_IN_USER,this.encrypt(JSON.stringify(t),r))}saveSignedInUserTenants(t,r){const n=r??window.localStorage.getItem(this.ZENI_SESSION_ID);n!=null?window.localStorage.setItem(this.ZENI_SIGNED_IN_USER_TENANTS,this.encrypt(JSON.stringify(t),n)):console.warn("Can't update the setting when the user is logged out!")}saveShowNegativeAmountInParenthesis(t){const r=window.localStorage.getItem(this.ZENI_SESSION_ID);if(r!=null)window.localStorage.setItem(this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS,this.encrypt(JSON.stringify(t),r));else throw new Error("Can't update the setting when the user is logged out!")}saveShowNegativeAmountInParenthesisPDF(t){const r=window.localStorage.getItem(this.ZENI_SESSION_ID);if(r!=null)window.localStorage.setItem(this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS_PDF,this.encrypt(JSON.stringify(t),r));else throw new Error("Can't update the setting when the user is logged out!")}isSignedIn(){return[this.ZENI_SESSION_ID,this.ZENI_SIGNED_IN_USER].map(r=>window.localStorage.getItem(r)!=null).reduce((r,n)=>r&&n)}clearAll(){this.ALL_IDs.forEach(t=>window.localStorage.removeItem(t))}setTheme(t){const r=window.localStorage.getItem(this.ZENI_SESSION_ID);r!=null&&window.localStorage.setItem(this.ZENI_THEME,this.encrypt(t,r))}getTheme(){const t=window.localStorage.getItem(this.ZENI_THEME),r=window.localStorage.getItem(this.ZENI_SESSION_ID);if(t!=null&&r!==null)return this.decrypt(t,r)}encrypt(t,r){return p7.AES.encrypt(t,r).toString()}decrypt(t,r){return p7.AES.decrypt(t,r).toString(p7.enc.Utf8)}ZENI_SESSION_ID="ZENI_SESSION_ID";ZENI_SIGNED_IN_USER="ZENI_SIGNED_IN_USER";ZENI_SIGNED_IN_USER_TENANTS="ZENI_SIGNED_IN_USER_TENANTS";ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS="ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS";ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS_PDF="ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS_PDF";ZENI_THEME="ZENI_THEME";ZENI_FORCE_REFRESHED_COMPONENTS="ZENI_FORCE_REFRESHED_COMPONENTS";ALL_IDs=[this.ZENI_SESSION_ID,this.ZENI_SIGNED_IN_USER,this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS,this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS_PDF,this.ZENI_SIGNED_IN_USER_TENANTS,this.ZENI_THEME,this.ZENI_FORCE_REFRESHED_COMPONENTS]}const la=new nWr,oWr=({children:e})=>{const t=Tbe("(prefers-color-scheme: dark)"),[r,n]=C.useState({dark:t});b.useEffect(()=>{const a=la.getTheme()==null?t:la.getTheme()==="dark";r.dark!==a&&n({dark:a})},[r,t]);const o=()=>{const a=!r.dark;la.setTheme(a?"dark":"light"),n({...r,dark:a})},i=r.dark?vur():yur();return Wt.jsx(uur,{dark:r.dark,webAppTheme:i,toggle:o,children:e})},iWr=["sandbox","production"],aWr=e=>z0(e,iWr),sWr=e=>{switch(e){case"DEV":case"QA":case"PUNE":case"SUNNYVALE":case"DELHI":case"MOHALI":return"sandbox";case"PROD":case"NEXT":return"production";default:return"sandbox"}},lWr=["development","staging","production"],cWr=e=>z0(e,lWr),dWr=e=>{switch(e){case"QA":case"PUNE":case"SUNNYVALE":case"DELHI":case"MOHALI":return"staging";case"PROD":case"NEXT":return"production";case"DEV":default:return"development"}},uWr=["DEV","QA","PUNE","SUNNYVALE","DELHI","MOHALI","PROD","NEXT"],pWr=e=>z0(e,uWr),h1=pWr("DEV"),kR=()=>h1==="DEV"||h1==="QA"||h1==="PUNE"||h1==="SUNNYVALE"||h1==="DELHI"||h1==="MOHALI",vz="https://zeni-webapp-dev.uc.r.appspot.com",hWr="63d3a2406505a5737a2b4debdb513f20",NXr=aWr(sWr(h1)),mWr=cWr(dWr(h1));function fWr(e,t){return p7.AES.decrypt(e,t).toString(p7.enc.Utf8)}const gWr="ZENI-WEB-APP-",bye=.9,ui={sentryDsn:"",sentryTraceSamplingRate:1,googleClientId:"",googleMapsAPIKey:"",microsoftClientId:"",mixpanelToken:"",pusherClientSecret:"",pusherCluster:"",quickbooksKey:"",appUrl:"",featureClientSecret:"",featureClientSecretCockpit:"",cardVaultId:"",stripeKey:"",qboRedirectionUrl:"",mixpanelUrl:"",mixpanelHMUrl:""};let vm,bz;function yWr(e){ui.sentryDsn=e.keys.SENTRY_DSN,ui.sentryTraceSamplingRate=e.keys.SENTRY_TRACE_SAMPLE_RATES!=null?parseInt(e.keys.SENTRY_TRACE_SAMPLE_RATES):bye,ui.googleClientId=e.keys.GOOGLE_CLIENT_ID,ui.googleMapsAPIKey=e.keys.GOOGLE_MAP_KEY,ui.microsoftClientId=e.keys.MICROSOFT_CLIENT_ID,ui.mixpanelToken=e.keys.MIXPANEL_TOKEN,ui.pusherClientSecret=e.keys.PUSHER_CLIENT_SECRET,ui.pusherCluster=e.keys.PUSHER_CLUSTER,ui.quickbooksKey=e.keys.QUICKBOOK_TOKEN,ui.appUrl=e.keys.WEB_ENDPOINT,ui.featureClientSecret=e.keys.STATSIG_CLIENT_SECRET,ui.featureClientSecretCockpit=e.keys.STATSIG_CLIENT_SECRET_COCKPIT,ui.cardVaultId=e.keys.UNIT_VAULT_ID,ui.stripeKey=e.keys.STRIPE_KEY,ui.qboRedirectionUrl=e.keys.QBO_URL,ui.mixpanelUrl=e.keys.MIXPANEL_URL,ui.mixpanelHMUrl=e.keys.MIXPANEL_HM_URL,bz=e.externalEndPoints,vm=e.apiEndPoints,vWr()}function vWr(){try{const e=new Set;if(vm!=null){for(const t of Object.values(vm))if(typeof t=="string"&&t.startsWith("http"))try{e.add(new URL(t).origin)}catch{}}for(const t of e){const r=document.createElement("link");r.rel="preconnect",r.href=t,r.crossOrigin="anonymous",document.head.appendChild(r)}}catch{}}async function bWr(){const t=encodeURIComponent(JSON.stringify({environment:h1}));try{const r=await fetch(`${vz}/api/keys?query=${t}`);if(!r.ok)throw new Error(`HTTP error! status: ${r.status}`);return await r.json()}catch(r){return console.error("Error fetching details:",r),null}}let cce=!1;function py(){cce||(gh.init(hWr,{api_host:bz.mixpanelBaseUrl,ignore_dnt:!0}),cce=!0)}class Mh{identify(t,r){if(py(),this.#r=t,t!=null&&r!=null&&(Mh.#t==null||mbe({userId:t,traits:r},Mh.#t)!==!0)){const{$email:n,...o}={...r};gh.identify(t),n&&n!=null&&gh.people.set_once({$email:n}),gh.people.set(o),Mh.#t={userId:t,traits:r},kR()&&console.log(`*** Called people set with userId ${t} traits ${JSON.stringify(r)} `)}}identifyUserAndCompany(t,r,n,o,i){throw Error("Use identify in the web-app!!")}track(t,r){if(py(),this.#r!=null){const n={distinct_id:this.#r,...r};gh.track(t,n)}else console.error("user is not identified :(, so can not fire event");kR()&&console.log(`*** firing ${t} with props ${JSON.stringify(r)}`)}alias(t,r){py(),gh.alias(t,r)}reset(){py(),gh.identify(void 0),this.#r=void 0,Mh.#t=void 0}static get analytics(){return this.#e}static#e=new Sn.Analytics(new Mh);static#t;#r}const F$=Mh.analytics,wWr=()=>{const e=cw(),t=C1(r=>r.companyState);if(e.pathname.includes("/management/parent/")){const r=e.pathname.split("/")[3],n=t.companiesById[r];if(n!=null)return`${n.companyInfo.name} ${de.getLocalizedStrings().cockpit.cockpitHeaderSubsidiaryText}`}if(e.pathname.includes("management/month-end-report/company/")){const r=e.pathname.split("/")[4],n=t.companiesById[r];if(n!=null)return n.companyInfo.name}},dce=e=>{switch(e){case"healthMonitor":return"health-monitor";case"taskManager":return"task-manager";default:return e}},zXr=e=>{switch(e){case"healthMonitor":return"health monitor";case"taskManager":return"task manager";default:return e}};function xWr(e,t){return{updateDownloadStateHandler:r=>{e(fbe(r))},onZeniLogoClick:()=>{t.themeState.toggle()},onLogOutClick:()=>{e(Rce()),e(Oce(!1)),la.clearAll();const r=t.locationHook.state?.origin??"/";t.navigate(r,{replace:!0})},onNewCustomerClick:()=>{t.navigate("/onboarding/new"),F$?.trackOnboardingNewCustomerStarted()},onThreadClick:(r,n,o)=>{const i=r.entityType.split(".");if(i.length===2){const a=Mse(i[0]);if(a!=null){const l=dce(a);t.navigate(`/${l}`),o(r,n)}else console.warn(`Invalid navigation target in thread: ${i[0]}`)}},onNotificationClick:(r,n,o)=>{const i=r.entityType.split(".");if(r.isGlobalComment&&i.length===2){const a=Mse(i[0]);if(a!=null){const l=dce(a);t.navigate(`/${l}`),o(r,n)}else console.warn(`Invalid navigation target in notification: ${i[0]}`)}}}}function CWr(e,t){const{signedInUser:r,cockpitHeader:n}=t,o=e.tenantState.currentTenantId,a=pw(e)?.companyName??"",l={userId:r?.userId??"",sessionId:r?.zeniSessionId??"",tenantId:o??""};return{signedInUser:r,cockpitHeader:n,downloadState:e.companyViewState.downloadState,downloadParams:{currentTenantCompanyName:a,cockpitEndPoint:`${vz}/cockpitTabs`,authParams:l}}}const $Wr=cve(CWr,xWr)(oTr);function SWr(){const e=dur(),t=la.getSignedInUser(),r=_R(),n=cw(),o=wWr(),i=C1(d=>gbe(d)),a={tabsFileType:"excel",tabs:["management","subscription","portfolio","onboarding","healthMonitor"],filterByTabs:i.filterByTabs,timezone:ybe()},l=n.pathname.split("/")[1];return Wt.jsx($Wr,{locationHook:n,themeState:e,signedInUser:t,cockpitHeader:o,allTabsViews:i,defaultOptions:a,analytics:F$,currentTab:l,navigate:r})}const kWr=["/management/*","/subscription/*","/onboarding/*","/portfolio/*","/audit/*","/health-monitor/*","/task-manager/*"];function EWr({appContent:e}){const t=kWr.filter(r=>dve(r)).length===0;return Wt.jsxs(Wt.Fragment,{children:[t?null:Wt.jsx(SWr,{}),Wt.jsx(Wt.Fragment,{children:e})]})}const _Wr="cockpit",wye="init-enter";function TWr({location:e,visitedUrl:t}){const{pathname:r}=e;return b.useLayoutEffect(()=>{const n=t.get(r||wye);uce(n!==void 0?n:0)}),null}const AWr=b.memo(TWr,(e,t)=>{const{location:r,visitedUrl:n}=e,{location:o}=t,i=r.pathname||wye,a=LWr();return n.set(i,a),!((o.pathname!==r.pathname||o.search!==r.search)&&o.hash==="")}),uce=(e=0)=>window.requestAnimationFrame(()=>{window.scrollTo(0,e)}),LWr=()=>{let e=0;return document!=null&&document.documentElement!==null&&(e=document.documentElement.scrollTop),window.pageYOffset||e},xye=e=>b.lazy(async()=>{const t=e.toString(),r=la.getForceRefreshedComponents(),n=new Set(r),o=n.has(t);try{const i=await e();return n.delete(t),la.saveForceRefreshedComponents(Array.from(n)),i}catch(i){throw o||(n.add(t),la.saveForceRefreshedComponents(Array.from(n)),location.reload()),i}}),DWr=xye(()=>bt(()=>import("./ScreenRoutes-BOb1-zin.js"),__vite__mapDeps([245,5,1,6,17,8,246,16,7,2,14,4,9,11,18,19,20]))),MWr=xye(()=>bt(()=>import("./SignInScreen-CsaRmLqD.js"),__vite__mapDeps([247,17,1,6,8,5,246,16,18,19,20,7])));function PWr(){const e=b.useRef();e.current==null&&(e.current=new Map);const t=_R(),r=cw(),n=new URLSearchParams(r.search),o=n?.get("utm_source"),i=n?.get("utm_medium");return b.useEffect(()=>{const a="signin/auth";la.isSignedIn()===!1&&!r.pathname.includes(a)&&t(a,{replace:!0,state:{...r.state,message:"...",origin:r.pathname,queryParams:{utmSource:o,utmMedium:i}}})}),Wt.jsxs(RWr,{children:[Wt.jsx(AWr,{visitedUrl:e.current,location:r}),Wt.jsx(IWr,{})]})}const IWr=()=>{const e=la.isSignedIn(),t=la.getSignedInUser(),r=e&&AR(t),n=C1(d=>pw(d)),o={userId:t?.userId??"",sessionId:t?.zeniSessionId??"",tenantId:n.tenantId??""},i=C1(d=>vbe(d)),l=C1(d=>bbe(d)).map(d=>({companyId:d.companyId,tenantId:d.tenantId,companyName:d.name}));return Wt.jsx(yfr,{roomId:_Wr,authParams:o,users:i,companies:l,authUrlEndPoint:`${vm.tenantMicroServiceBaseUrl}/1.0/commenting/auth`,fetchZeniUsers:!1,commentingUsersUrlEndPoint:`${vm.tenantMicroServiceBaseUrl}/1.0/users/zeni-users`,autoConnect:r,withRoomProvider:!1,loggedInUser:t,withThreadsProvider:!0,filter:{application:"cockpit"},children:Wt.jsx(jWr,{})})},jWr=()=>Wt.jsx(b.Suspense,{fallback:Wt.jsx(OWr,{children:Wt.jsx(vr,{size:"Large",start:!0})}),children:Wt.jsxs(uve,{children:[Wt.jsx(G$,{path:"/",element:Wt.jsx(pve,{to:"management",replace:!0})}),Wt.jsx(G$,{path:"/signin/auth",element:Wt.jsx(MWr,{})}),Wt.jsx(G$,{path:"*",element:Wt.jsx(EWr,{appContent:Wt.jsx(DWr,{})})})]})}),RWr=Zt("div")``,OWr=Zt("div")`
|
|
29390
|
+
`,FXr=vt(()=>bt(()=>import("./WarningsDrawerPage-DOFirhc3-Ch_HhDH0.js"),__vite__mapDeps([244,16,1,17,6,8,5,18,19,20,7])));var rWr=Dbe();const p7=lw(rWr);class nWr{getSignedInUser(){const t=window.localStorage.getItem(this.ZENI_SESSION_ID),r=window.localStorage.getItem(this.ZENI_SIGNED_IN_USER);if(r!=null&&t!=null)return JSON.parse(this.decrypt(r,t))}getShowNegativeAmountInParenthesis(){const t=window.localStorage.getItem(this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS),r=window.localStorage.getItem(this.ZENI_SESSION_ID);return t!=null&&r!=null?JSON.parse(this.decrypt(t,r)):!1}getShowNegativeAmountInParenthesisPDF(){const t=window.localStorage.getItem(this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS_PDF),r=window.localStorage.getItem(this.ZENI_SESSION_ID);return t!=null&&r!=null?JSON.parse(this.decrypt(t,r)):!0}getSignedInUserTenant(t){const r=window.localStorage.getItem(this.ZENI_SIGNED_IN_USER_TENANTS),n=window.localStorage.getItem(this.ZENI_SESSION_ID);if(r!=null&&n!=null)return JSON.parse(this.decrypt(r,n)).find(i=>i.tenantEmailDomain===t)}getSignedInUserTenantWithId(t){const r=window.localStorage.getItem(this.ZENI_SIGNED_IN_USER_TENANTS),n=window.localStorage.getItem(this.ZENI_SESSION_ID);if(r!=null&&n!=null)return JSON.parse(this.decrypt(r,n)).find(i=>i.tenantId===t)}getForceRefreshedComponents(){const t=window.localStorage.getItem(this.ZENI_SESSION_ID),r=window.localStorage.getItem(this.ZENI_FORCE_REFRESHED_COMPONENTS);if(r&&t!=null){const n=this.decrypt(r,t);return n?JSON.parse(n):[]}return[]}saveForceRefreshedComponents(t){const r=window.localStorage.getItem(this.ZENI_SESSION_ID);r!=null?window.localStorage.setItem(this.ZENI_FORCE_REFRESHED_COMPONENTS,this.encrypt(JSON.stringify(t),r)):console.warn("Can't update the force refreshed components when the user is logged out!")}saveSignedInUserWithSession(t,r){if(t==null||r==null)throw new Error("Can't accept nil for user or session Id");window.localStorage.setItem(this.ZENI_SESSION_ID,r),window.localStorage.setItem(this.ZENI_SIGNED_IN_USER,this.encrypt(JSON.stringify(t),r))}saveSignedInUserTenants(t,r){const n=r??window.localStorage.getItem(this.ZENI_SESSION_ID);n!=null?window.localStorage.setItem(this.ZENI_SIGNED_IN_USER_TENANTS,this.encrypt(JSON.stringify(t),n)):console.warn("Can't update the setting when the user is logged out!")}saveShowNegativeAmountInParenthesis(t){const r=window.localStorage.getItem(this.ZENI_SESSION_ID);if(r!=null)window.localStorage.setItem(this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS,this.encrypt(JSON.stringify(t),r));else throw new Error("Can't update the setting when the user is logged out!")}saveShowNegativeAmountInParenthesisPDF(t){const r=window.localStorage.getItem(this.ZENI_SESSION_ID);if(r!=null)window.localStorage.setItem(this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS_PDF,this.encrypt(JSON.stringify(t),r));else throw new Error("Can't update the setting when the user is logged out!")}isSignedIn(){return[this.ZENI_SESSION_ID,this.ZENI_SIGNED_IN_USER].map(r=>window.localStorage.getItem(r)!=null).reduce((r,n)=>r&&n)}clearAll(){this.ALL_IDs.forEach(t=>window.localStorage.removeItem(t))}setTheme(t){const r=window.localStorage.getItem(this.ZENI_SESSION_ID);r!=null&&window.localStorage.setItem(this.ZENI_THEME,this.encrypt(t,r))}getTheme(){const t=window.localStorage.getItem(this.ZENI_THEME),r=window.localStorage.getItem(this.ZENI_SESSION_ID);if(t!=null&&r!==null)return this.decrypt(t,r)}encrypt(t,r){return p7.AES.encrypt(t,r).toString()}decrypt(t,r){return p7.AES.decrypt(t,r).toString(p7.enc.Utf8)}ZENI_SESSION_ID="ZENI_SESSION_ID";ZENI_SIGNED_IN_USER="ZENI_SIGNED_IN_USER";ZENI_SIGNED_IN_USER_TENANTS="ZENI_SIGNED_IN_USER_TENANTS";ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS="ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS";ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS_PDF="ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS_PDF";ZENI_THEME="ZENI_THEME";ZENI_FORCE_REFRESHED_COMPONENTS="ZENI_FORCE_REFRESHED_COMPONENTS";ALL_IDs=[this.ZENI_SESSION_ID,this.ZENI_SIGNED_IN_USER,this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS,this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS_PDF,this.ZENI_SIGNED_IN_USER_TENANTS,this.ZENI_THEME,this.ZENI_FORCE_REFRESHED_COMPONENTS]}const la=new nWr,oWr=({children:e})=>{const t=Tbe("(prefers-color-scheme: dark)"),[r,n]=C.useState({dark:t});b.useEffect(()=>{const a=la.getTheme()==null?t:la.getTheme()==="dark";r.dark!==a&&n({dark:a})},[r,t]);const o=()=>{const a=!r.dark;la.setTheme(a?"dark":"light"),n({...r,dark:a})},i=r.dark?vur():yur();return Wt.jsx(uur,{dark:r.dark,webAppTheme:i,toggle:o,children:e})},iWr=["sandbox","production"],aWr=e=>z0(e,iWr),sWr=e=>{switch(e){case"DEV":case"QA":case"PUNE":case"SUNNYVALE":case"DELHI":case"MOHALI":return"sandbox";case"PROD":case"NEXT":return"production";default:return"sandbox"}},lWr=["development","staging","production"],cWr=e=>z0(e,lWr),dWr=e=>{switch(e){case"QA":case"PUNE":case"SUNNYVALE":case"DELHI":case"MOHALI":return"staging";case"PROD":case"NEXT":return"production";case"DEV":default:return"development"}},uWr=["DEV","QA","PUNE","SUNNYVALE","DELHI","MOHALI","PROD","NEXT"],pWr=e=>z0(e,uWr),h1=pWr("DEV"),kR=()=>h1==="DEV"||h1==="QA"||h1==="PUNE"||h1==="SUNNYVALE"||h1==="DELHI"||h1==="MOHALI",vz="https://zeni-webapp-dev.uc.r.appspot.com",hWr="63d3a2406505a5737a2b4debdb513f20",NXr=aWr(sWr(h1)),mWr=cWr(dWr(h1));function fWr(e,t){return p7.AES.decrypt(e,t).toString(p7.enc.Utf8)}const gWr="ZENI-WEB-APP-",bye=.9,ui={sentryDsn:"",sentryTraceSamplingRate:1,googleClientId:"",googleMapsAPIKey:"",microsoftClientId:"",mixpanelToken:"",pusherClientSecret:"",pusherCluster:"",quickbooksKey:"",appUrl:"",featureClientSecret:"",featureClientSecretCockpit:"",cardVaultId:"",stripeKey:"",qboRedirectionUrl:"",mixpanelUrl:"",mixpanelHMUrl:""};let vm,bz;function yWr(e){ui.sentryDsn=e.keys.SENTRY_DSN,ui.sentryTraceSamplingRate=e.keys.SENTRY_TRACE_SAMPLE_RATES!=null?parseInt(e.keys.SENTRY_TRACE_SAMPLE_RATES):bye,ui.googleClientId=e.keys.GOOGLE_CLIENT_ID,ui.googleMapsAPIKey=e.keys.GOOGLE_MAP_KEY,ui.microsoftClientId=e.keys.MICROSOFT_CLIENT_ID,ui.mixpanelToken=e.keys.MIXPANEL_TOKEN,ui.pusherClientSecret=e.keys.PUSHER_CLIENT_SECRET,ui.pusherCluster=e.keys.PUSHER_CLUSTER,ui.quickbooksKey=e.keys.QUICKBOOK_TOKEN,ui.appUrl=e.keys.WEB_ENDPOINT,ui.featureClientSecret=e.keys.STATSIG_CLIENT_SECRET,ui.featureClientSecretCockpit=e.keys.STATSIG_CLIENT_SECRET_COCKPIT,ui.cardVaultId=e.keys.UNIT_VAULT_ID,ui.stripeKey=e.keys.STRIPE_KEY,ui.qboRedirectionUrl=e.keys.QBO_URL,ui.mixpanelUrl=e.keys.MIXPANEL_URL,ui.mixpanelHMUrl=e.keys.MIXPANEL_HM_URL,bz=e.externalEndPoints,vm=e.apiEndPoints,vWr()}function vWr(){try{const e=new Set;if(vm!=null){for(const t of Object.values(vm))if(typeof t=="string"&&t.startsWith("http"))try{e.add(new URL(t).origin)}catch{}}for(const t of e){const r=document.createElement("link");r.rel="preconnect",r.href=t,r.crossOrigin="anonymous",document.head.appendChild(r)}}catch{}}async function bWr(){const t=encodeURIComponent(JSON.stringify({environment:h1}));try{const r=await fetch(`${vz}/api/keys?query=${t}`);if(!r.ok)throw new Error(`HTTP error! status: ${r.status}`);return await r.json()}catch(r){return console.error("Error fetching details:",r),null}}let cce=!1;function py(){cce||(gh.init(hWr,{api_host:bz.mixpanelBaseUrl,ignore_dnt:!0}),cce=!0)}class Mh{identify(t,r){if(py(),this.#r=t,t!=null&&r!=null&&(Mh.#t==null||mbe({userId:t,traits:r},Mh.#t)!==!0)){const{$email:n,...o}={...r};gh.identify(t),n&&n!=null&&gh.people.set_once({$email:n}),gh.people.set(o),Mh.#t={userId:t,traits:r},kR()&&console.log(`*** Called people set with userId ${t} traits ${JSON.stringify(r)} `)}}identifyUserAndCompany(t,r,n,o,i){throw Error("Use identify in the web-app!!")}track(t,r){if(py(),this.#r!=null){const n={distinct_id:this.#r,...r};gh.track(t,n)}else console.error("user is not identified :(, so can not fire event");kR()&&console.log(`*** firing ${t} with props ${JSON.stringify(r)}`)}alias(t,r){py(),gh.alias(t,r)}reset(){py(),gh.identify(void 0),this.#r=void 0,Mh.#t=void 0}static get analytics(){return this.#e}static#e=new Sn.Analytics(new Mh);static#t;#r}const F$=Mh.analytics,wWr=()=>{const e=cw(),t=C1(r=>r.companyState);if(e.pathname.includes("/management/parent/")){const r=e.pathname.split("/")[3],n=t.companiesById[r];if(n!=null)return`${n.companyInfo.name} ${de.getLocalizedStrings().cockpit.cockpitHeaderSubsidiaryText}`}if(e.pathname.includes("management/month-end-report/company/")){const r=e.pathname.split("/")[4],n=t.companiesById[r];if(n!=null)return n.companyInfo.name}},dce=e=>{switch(e){case"healthMonitor":return"health-monitor";case"taskManager":return"task-manager";default:return e}},zXr=e=>{switch(e){case"healthMonitor":return"health monitor";case"taskManager":return"task manager";default:return e}};function xWr(e,t){return{updateDownloadStateHandler:r=>{e(fbe(r))},onZeniLogoClick:()=>{t.themeState.toggle()},onLogOutClick:()=>{e(Rce()),e(Oce(!1)),la.clearAll();const r=t.locationHook.state?.origin??"/";t.navigate(r,{replace:!0})},onNewCustomerClick:()=>{t.navigate("/onboarding/new"),F$?.trackOnboardingNewCustomerStarted()},onThreadClick:(r,n,o)=>{const i=r.entityType.split(".");if(i.length===2){const a=Mse(i[0]);if(a!=null){const l=dce(a);t.navigate(`/${l}`),o(r,n)}else console.warn(`Invalid navigation target in thread: ${i[0]}`)}},onNotificationClick:(r,n,o)=>{const i=r.entityType.split(".");if(r.isGlobalComment&&i.length===2){const a=Mse(i[0]);if(a!=null){const l=dce(a);t.navigate(`/${l}`),o(r,n)}else console.warn(`Invalid navigation target in notification: ${i[0]}`)}}}}function CWr(e,t){const{signedInUser:r,cockpitHeader:n}=t,o=e.tenantState.currentTenantId,a=pw(e)?.companyName??"",l={userId:r?.userId??"",sessionId:r?.zeniSessionId??"",tenantId:o??""};return{signedInUser:r,cockpitHeader:n,downloadState:e.companyViewState.downloadState,downloadParams:{currentTenantCompanyName:a,cockpitEndPoint:`${vz}/cockpitTabs`,authParams:l}}}const $Wr=cve(CWr,xWr)(oTr);function SWr(){const e=dur(),t=la.getSignedInUser(),r=_R(),n=cw(),o=wWr(),i=C1(d=>gbe(d)),a={tabsFileType:"excel",tabs:["management","subscription","portfolio","onboarding","healthMonitor"],filterByTabs:i.filterByTabs,timezone:ybe()},l=n.pathname.split("/")[1];return Wt.jsx($Wr,{locationHook:n,themeState:e,signedInUser:t,cockpitHeader:o,allTabsViews:i,defaultOptions:a,analytics:F$,currentTab:l,navigate:r})}const kWr=["/management/*","/subscription/*","/onboarding/*","/portfolio/*","/audit/*","/health-monitor/*","/task-manager/*"];function EWr({appContent:e}){const t=kWr.filter(r=>dve(r)).length===0;return Wt.jsxs(Wt.Fragment,{children:[t?null:Wt.jsx(SWr,{}),Wt.jsx(Wt.Fragment,{children:e})]})}const _Wr="cockpit",wye="init-enter";function TWr({location:e,visitedUrl:t}){const{pathname:r}=e;return b.useLayoutEffect(()=>{const n=t.get(r||wye);uce(n!==void 0?n:0)}),null}const AWr=b.memo(TWr,(e,t)=>{const{location:r,visitedUrl:n}=e,{location:o}=t,i=r.pathname||wye,a=LWr();return n.set(i,a),!((o.pathname!==r.pathname||o.search!==r.search)&&o.hash==="")}),uce=(e=0)=>window.requestAnimationFrame(()=>{window.scrollTo(0,e)}),LWr=()=>{let e=0;return document!=null&&document.documentElement!==null&&(e=document.documentElement.scrollTop),window.pageYOffset||e},xye=e=>b.lazy(async()=>{const t=e.toString(),r=la.getForceRefreshedComponents(),n=new Set(r),o=n.has(t);try{const i=await e();return n.delete(t),la.saveForceRefreshedComponents(Array.from(n)),i}catch(i){throw o||(n.add(t),la.saveForceRefreshedComponents(Array.from(n)),location.reload()),i}}),DWr=xye(()=>bt(()=>import("./ScreenRoutes-D_sWKkhc.js"),__vite__mapDeps([245,5,1,6,17,8,246,16,7,2,14,4,9,11,18,19,20]))),MWr=xye(()=>bt(()=>import("./SignInScreen-C-VG_lKe.js"),__vite__mapDeps([247,17,1,6,8,5,246,16,18,19,20,7])));function PWr(){const e=b.useRef();e.current==null&&(e.current=new Map);const t=_R(),r=cw(),n=new URLSearchParams(r.search),o=n?.get("utm_source"),i=n?.get("utm_medium");return b.useEffect(()=>{const a="signin/auth";la.isSignedIn()===!1&&!r.pathname.includes(a)&&t(a,{replace:!0,state:{...r.state,message:"...",origin:r.pathname,queryParams:{utmSource:o,utmMedium:i}}})}),Wt.jsxs(RWr,{children:[Wt.jsx(AWr,{visitedUrl:e.current,location:r}),Wt.jsx(IWr,{})]})}const IWr=()=>{const e=la.isSignedIn(),t=la.getSignedInUser(),r=e&&AR(t),n=C1(d=>pw(d)),o={userId:t?.userId??"",sessionId:t?.zeniSessionId??"",tenantId:n.tenantId??""},i=C1(d=>vbe(d)),l=C1(d=>bbe(d)).map(d=>({companyId:d.companyId,tenantId:d.tenantId,companyName:d.name}));return Wt.jsx(yfr,{roomId:_Wr,authParams:o,users:i,companies:l,authUrlEndPoint:`${vm.tenantMicroServiceBaseUrl}/1.0/commenting/auth`,fetchZeniUsers:!1,commentingUsersUrlEndPoint:`${vm.tenantMicroServiceBaseUrl}/1.0/users/zeni-users`,autoConnect:r,withRoomProvider:!1,loggedInUser:t,withThreadsProvider:!0,filter:{application:"cockpit"},children:Wt.jsx(jWr,{})})},jWr=()=>Wt.jsx(b.Suspense,{fallback:Wt.jsx(OWr,{children:Wt.jsx(vr,{size:"Large",start:!0})}),children:Wt.jsxs(uve,{children:[Wt.jsx(G$,{path:"/",element:Wt.jsx(pve,{to:"management",replace:!0})}),Wt.jsx(G$,{path:"/signin/auth",element:Wt.jsx(MWr,{})}),Wt.jsx(G$,{path:"*",element:Wt.jsx(EWr,{appContent:Wt.jsx(DWr,{})})})]})}),RWr=Zt("div")``,OWr=Zt("div")`
|
|
29391
29391
|
display: flex;
|
|
29392
29392
|
flex: 1 1 auto;
|
|
29393
29393
|
flex-direction: row;
|
|
@@ -29398,4 +29398,4 @@ ${e}`,KAr=e=>b.createElement("svg",{width:38,height:39,viewBox:"0 0 38 39",fill:
|
|
|
29398
29398
|
background-color: ${e=>e.theme.colors.background};
|
|
29399
29399
|
`;function FWr(){de.updateAppLocaleID("en"),HWr();const e=VWr(),[t,r]=b.useState(!1),n=b.useCallback(i=>{i.data?.type==="UPDATE_READY"?r(!0):i.data?.type==="HIDE_UPDATE_POPUP"&&r(!1)},[]);b.useEffect(()=>("serviceWorker"in navigator&&(navigator.serviceWorker.addEventListener("message",n),navigator.serviceWorker.addEventListener("controllerchange",()=>{r(!1)})),()=>{navigator.serviceWorker.removeEventListener("message",n)}),[n]);const o=()=>{r(!1),window.location.reload()};return Wt.jsx(oWr,{children:Wt.jsx(hve,{store:e,children:Wt.jsx(gmt,{children:Wt.jsxs(IDt,{children:[t?Wt.jsx(nRt,{onPrimaryClick:o}):null,Wt.jsx(zWr,{})]})})})})}const NWr=()=>{const e=la.getSignedInUser(),t=C1($=>pw($)),r=C1($=>$be($,t.companyId)),n=cw(),o=_R(),i=mve(),a=t?.excludedResources?.fetchState=="Completed"?t.excludedResources.resources:[];b.useEffect(()=>()=>{i(Nz())},[]);const l=C1($=>Sbe($)),d=t?.externalConnections?.accounting[0]?.connectionName,u=()=>{i(Nz())},p=b.useMemo(()=>kbe(t.userRole),[t.userRole]),h=C1($=>$.companyViewState.zeniUsers),f=b.useMemo(()=>{const $=h.fetchState==="Error"&&Ebe(h.error);return $&&console.warn("Auto-logout triggered due to invalid session"),$},[h.fetchState,h.error]),g=b.useMemo(()=>{const $=h.fetchState==="Error"&&_be(h.error)===!0;return $&&console.warn("Page is not accessible, show 404"),$},[h.fetchState,h.error]),y=b.useRef(!1);b.useEffect(()=>(f&&!y.current&&(y.current=!0,v()),()=>{y.current=!1}),[f]),b.useEffect(()=>{g&&window.open("/page-not-found","_self")},[g]);const v=b.useCallback(()=>{i(Rce()),i(Oce(!1)),la.clearAll();const $=n.state?.origin??"/";o($,{replace:!0})},[]),w=b.useMemo(()=>la.getSignedInUser(),[]),x=b.useMemo(()=>({userId:w?.userId??"",sessionId:w?.zeniSessionId??"",tenantId:t.tenantId??""}),[w,t.tenantId]);return Wt.jsx(GDt,{globalInfo:{loggedInUser:e,loggedInUserRole:t?.userRole,excludedResources:a,loggedInUserRoleMap:p,currentTenant:t,connectionName:d,controllersList:r},children:Wt.jsx(FDt,{toolkit:{analytics:F$,sentry:Iye,authParams:x},children:Wt.jsxs(BLt,{endPoint:{url:vz},children:[Wt.jsx(m8r,{isOnDashboard:!1,showSnackbar:l.isSnackbarOpen,snackbar:{message:l.message,messageType:l.messageType,onRemoveSnackbar:u,showStatusIcon:l.showStatusIcon}}),Wt.jsx(PWr,{})]})})})},zWr=()=>{const e=la.isSignedIn(),r=C1(n=>pw(n)).companyId;return Wt.jsx(BIt,{isUserSignedIn:e,featureGateCustomFields:{companyId:r},zeniFeatureConfig:{currentFeatureEnv:mWr,featureClientSecret:ui.featureClientSecretCockpit,providerEndPoint:bz.statsigBaseUrl},children:Wt.jsx(NWr,{})})},BWr=Mye(FWr);function HWr(){console.log("Initialize any 3rd party libs!")}let bP=null;function VWr(){return bP===null&&(bP=UWr(),wbe().catch(e=>{console.error("Failed to load feature epics:",e),Pye(e,{tags:{critical:"true",module:"epicManager"}}),alert(`The application failed to load required modules. Some features may not work correctly.
|
|
29400
29400
|
|
|
29401
|
-
Please refresh the page to try again.`)})),bP}function UWr(){console.warn(`initializing epic state with url ${JSON.stringify(vm)}`);const e=la.getSignedInUser(),t=xbe(vm,e?.userId,e?.zeniSessionId,void 0,kR()),r=Cbe();return r.userId!=null&&F$.identify(r.userId,{tenant_id:r.tenantId}),t}const WWr=!!(window.location.hostname==="localhost"||window.location.hostname==="[::1]"||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/)),YWr="DEV",GWr="https://zeni-webapp-dev.uc.r.appspot.com",pce=`/service-worker.js?v=${Date.now()}&env=${YWr}&endpoint=${encodeURIComponent(GWr)}`;function qWr(e){if("serviceWorker"in navigator){if(new URL("https://dev.app.zeni.ai",window.location.href).origin!==window.location.origin)return;window.addEventListener("load",()=>{WWr?ZWr(pce):Cye(pce)})}}function Cye(e,t){navigator.serviceWorker.register(e).then(r=>{r.onupdatefound=()=>{const n=r.installing;n!=null&&(n.onstatechange=()=>{n.state==="installed"&&(navigator.serviceWorker.controller?(console.log("New content available; will be used when all tabs are closed."),navigator.serviceWorker.controller?.postMessage({type:"UPDATE_READY"}),r.waiting?.postMessage({type:"SKIP_WAITING"})):console.log("Content is cached for offline use."))})},r.waiting&&r.waiting.postMessage({type:"SKIP_WAITING"}),navigator.serviceWorker.addEventListener("controllerchange",()=>{console.log("New service worker activated."),r.active?.postMessage({type:"CLIENTS_CLAIM"})})}).catch(r=>{console.error("Error during service worker registration:",r)})}function ZWr(e,t){fetch(e,{headers:{"Service-Worker":"script"}}).then(r=>{const n=r.headers.get("content-type");r.status===404||n!=null&&!n.includes("javascript")?navigator.serviceWorker.ready.then(o=>{o.unregister().then(()=>window.location.reload())}):Cye(e)}).catch(()=>{console.log("No internet connection found. App is running in offline mode.")})}const KWr=la.getSignedInUser(),QWr=KWr?.zeniSessionId;async function XWr(){try{const e=await bWr(),t=fWr(e,gWr+h1);yWr(JSON.parse(t)),Pbe.createRoot(document.getElementById("root")).render(Wt.jsx(C.StrictMode,{children:Wt.jsx(fve,{basename:"/cockpit",children:Wt.jsx(BWr,{})})})),JWr()}catch(e){console.error("Error initializing app:",e)}}function JWr(){const e=()=>{jye({dsn:ui.sentryDsn,integrations:[Rye(),Oye({maskAllText:!0,blockAllMedia:!0})],tracesSampleRate:ui.sentryTraceSamplingRate??bye,replaysSessionSampleRate:0,replaysOnErrorSampleRate:1,beforeSendTransaction(t){return t.breadcrumbs&&(t.breadcrumbs=t.breadcrumbs.filter(r=>r.category!=="console"?!0:(r.message??"").toLowerCase().includes("called people set")||Array.isArray(r.data?.arguments)&&r.data.arguments.some(o=>typeof o=="string"&&o.toLowerCase().includes("called people set"))?!1:(Array.isArray(r.data?.arguments)&&(r.data.arguments=r.data.arguments.map(o=>{if(typeof o=="string"&&o.includes("user_roles"))try{const i=o.match(/\{.*\}/s);if(i!==null){const a=JSON.parse(i[0]);if(a.user_roles!=null)return delete a.user_roles,o.replace(i[0],JSON.stringify(a))}}catch{}return o})),!0))),t}}),Fye("session-id",QWr)};typeof requestIdleCallback=="function"?requestIdleCallback(e):setTimeout(e,0)}XWr();qWr();export{LXr as $,SXr as A,l$ as B,dXr as C,NXr as D,Qm as E,de as F,MKr as G,Sn as H,uXr as I,pXr as J,PXr as K,Ar as L,ro as M,d$ as N,tGr as O,MXr as P,DXr as Q,Ot as R,hXr as S,mXr as T,FXr as U,s as V,EXr as W,OXr as X,jXr as Y,IXr as Z,RXr as _,ll as a,J0 as a$,NKr as a0,zKr as a1,AXr as a2,TXr as a3,kXr as a4,xye as a5,cXr as a6,dur as a7,cl as a8,Ao as a9,Pqr as aA,In as aB,TYr as aC,kYr as aD,AYr as aE,EYr as aF,_Yr as aG,qa as aH,FKr as aI,OKr as aJ,PKr as aK,tr as aL,k6 as aM,ke as aN,wn as aO,Ma as aP,IKr as aQ,Yo as aR,_d as aS,ft as aT,yt as aU,jKr as aV,jc as aW,Ic as aX,Ig as aY,Eo as aZ,ua as a_,xo as aa,$Yr as ab,To as ac,Rg as ad,W9 as ae,X1 as af,k$ as ag,n$t as ah,ot as ai,SYr as aj,CYr as ak,Ze as al,$t as am,go as an,qr as ao,zd as ap,kn as aq,u2 as ar,see as as,lo as at,Ja as au,Oy as av,da as aw,_Mt as ax,s6 as ay,LYr as az,K as b,uN as b$,Rc as b0,RKr as b1,Sm as b2,s7r as b3,O1 as b4,Wh as b5,Hr as b6,gN as b7,Nn as b8,hn as b9,j1 as bA,_Kr as bB,Ow as bC,yN as bD,dn as bE,Do as bF,ht as bG,FYr as bH,es as bI,qGr as bJ,G1 as bK,ZGr as bL,Vg as bM,fi as bN,$Et as bO,F0 as bP,c5e as bQ,kt as bR,TUt as bS,Xa as bT,vYr as bU,att as bV,D6 as bW,Iyr as bX,jyr as bY,Hi as bZ,Z1 as b_,tc as ba,Fxt as bb,Akt as bc,gvt as bd,Pd as be,nc as bf,m2 as bg,kN as bh,YQr as bi,JQr as bj,ZQr as bk,qQr as bl,uoe as bm,Wl as bn,EN as bo,hd as bp,bYr as bq,WCt as br,K1 as bs,Sp as bt,A6 as bu,R1 as bv,b5e as bw,Xl as bx,xDt as by,_Gr as bz,R as c,q1 as c$,lc as c0,_6 as c1,pDt as c2,j9e as c3,f6e as c4,jN as c5,l5e as c6,Hb as c7,ON as c8,FN as c9,Fd as cA,w6 as cB,Qa as cC,M7 as cD,VYr as cE,eo as cF,WLt as cG,wa as cH,F7 as cI,WUt as cJ,I9e as cK,fm as cL,b7e as cM,cGr as cN,m$r as cO,_t as cP,UYr as cQ,aGr as cR,J9e as cS,nz as cT,h2 as cU,en as cV,ts as cW,ni as cX,axt as cY,m5e as cZ,TKt as c_,j6 as ca,ZDt as cb,pZr as cc,B6e as cd,H6e as ce,Yw as cf,hr as cg,g8r as ch,CN as ci,V1 as cj,CKr as ck,wne as cl,wYr as cm,B1 as cn,R0 as co,s2 as cp,Bwr as cq,Y1 as cr,mZr as cs,Die as ct,Ob as cu,mlr as cv,el as cw,gb as cx,aNt as cy,Ls as cz,wt as d,Kqr as d$,DJ as d0,Hg as d1,i5e as d2,La as d3,L$ as d4,PYr as d5,MYr as d6,DYr as d7,_6e as d8,_$ as d9,RZr as dA,xN as dB,rqt as dC,lte as dD,cte as dE,iqt as dF,aqt as dG,V4e as dH,Thr as dI,X9e as dJ,WOt as dK,zg as dL,B1r as dM,_Ft as dN,AFt as dO,NQr as dP,Y3r as dQ,UZr as dR,jqr as dS,Qqr as dT,Wqr as dU,Uqr as dV,qqr as dW,Gqr as dX,Yqr as dY,Hqr as dZ,Bqr as d_,tz as da,jYr as db,IYr as dc,RYr as dd,EKr as de,OYr as df,fo as dg,NYr as dh,Nit as di,zYr as dj,a$r as dk,BYr as dl,fdr as dm,C$ as dn,Ng as dp,Ul as dq,V3 as dr,dte as ds,nqt as dt,oqt as du,vN as dv,FZr as dw,NZr as dx,zZr as dy,OZr as dz,F$ as e,TZr as e$,Zqr as e0,zqr as e1,Nqr as e2,wee as e3,Vqr as e4,nZr as e5,Fqr as e6,Oqr as e7,rZr as e8,Rqr as e9,mN as eA,_3r as eB,T3r as eC,E3r as eD,Bg as eE,BKr as eF,Lp as eG,Q1 as eH,Da as eI,Q9e as eJ,D$ as eK,km as eL,yNt as eM,vNt as eN,cIt as eO,ast as eP,Mf as eQ,qZr as eR,ULt as eS,WYr as eT,GZr as eU,P6 as eV,M6 as eW,R7e as eX,Wm as eY,sWe as eZ,qZe as e_,tZr as ea,oZr as eb,HYr as ec,iZr as ed,FQr as ee,i9e as ef,c6 as eg,Jqr as eh,Eh as ei,I6 as ej,xmr as ek,DFt as el,LFt as em,TFt as en,It as eo,P7 as ep,pm as eq,wmr as er,LL as es,NN as et,vFt as eu,aZr as ev,mb as ew,Br as ex,Utt as ey,$6 as ez,ui as f,cZr as f$,_or as f0,R7 as f1,KN as f2,Eor as f3,tg as f4,Ntr as f5,aHt as f6,qw as f7,Cor as f8,iHt as f9,ag as fA,ig as fB,O0 as fC,p1 as fD,R5r as fE,F5e as fF,wjt as fG,yjt as fH,Q7e as fI,f4r as fJ,I4r as fK,T6 as fL,x6 as fM,$N as fN,xGr as fO,uZr as fP,Mqr as fQ,YZr as fR,sZr as fS,dZr as fT,lZr as fU,hZr as fV,y$r as fW,wOt as fX,P$ as fY,Nd as fZ,Zl as f_,oHt as fa,zee as fb,FEe as fc,y$ as fd,$a as fe,VZr as ff,xa as fg,Ca as fh,Aor as fi,Tor as fj,L6 as fk,S7e as fl,b6e as fm,Iqr as fn,um as fo,Ogr as fp,Jj as fq,I5r as fr,GOt as fs,Ngr as ft,xb as fu,jZr as fv,cN as fw,t5r as fx,j5r as fy,mm as fz,m$ as g,L9e as g$,lNt as g0,vjt as g1,a_r as g2,qj as g3,t7e as g4,X5e as g5,Ugr as g6,Cb as g7,q7e as g8,sGr as g9,$7e as gA,svt as gB,oRt as gC,eZr as gD,rg as gE,wGr as gF,p$ as gG,k6e as gH,SJ as gI,kb as gJ,om as gK,kmr as gL,x$ as gM,K$r as gN,rGr as gO,xue as gP,sl as gQ,F7e as gR,PZr as gS,xJt as gT,QN as gU,XN as gV,bN as gW,c$ as gX,vt as gY,E6 as gZ,Kyr as g_,LZr as ga,ife as gb,b6 as gc,j7e as gd,G7e as ge,co as gf,G5e as gg,p2 as gh,Ir as gi,rHt as gj,MBt as gk,jar as gl,j7 as gm,o7 as gn,Qrr as go,Fee as gp,Ap as gq,jt as gr,JN as gs,E$ as gt,eg as gu,Rtr as gv,I7 as gw,GHt as gx,IZr as gy,dVt as gz,_Xr as h,rR as h$,f9e as h0,V8r as h1,q8r as h2,ryr as h3,YYr as h4,Z8r as h5,G8r as h6,n7 as h7,Mj as h8,gWt as h9,HZr as hA,sZt as hB,U4r as hC,V4r as hD,e5e as hE,x$r as hF,B_ as hG,bGr as hH,uHt as hI,hN as hJ,kF as hK,SF as hL,Z4 as hM,YKr as hN,WKr as hO,GKr as hP,zne as hQ,r9e as hR,VKr as hS,UKr as hT,t9e as hU,M7e as hV,rlr as hW,lGr as hX,GLt as hY,d2 as hZ,fXr as h_,ng as ha,v7e as hb,g7e as hc,y7e as hd,IZt as he,QZt as hf,oGr as hg,iGr as hh,UN as hi,WN as hj,dGr as hk,OEt as hl,f7e as hm,up as hn,TYt as ho,DZr as hp,MZr as hq,C7e as hr,jd as hs,BZr as ht,Uyr as hu,q3r as hv,S$ as hw,vZr as hx,ep as hy,E6e as hz,zXr as i,H4r as i$,$Kr as i0,kKr as i1,iRt as i2,SKr as i3,XKr as i4,rQr as i5,nQr as i6,eQr as i7,tQr as i8,JKr as i9,Uhr as iA,_Qr as iB,Vb as iC,LKr as iD,SQr as iE,uQr as iF,nGr as iG,uKr as iH,J4e as iI,koe as iJ,wDt as iK,gXr as iL,yXr as iM,bXr as iN,wXr as iO,$ie as iP,kxt as iQ,X6e as iR,U2r as iS,Tyr as iT,rOt as iU,aXr as iV,R6e as iW,qwr as iX,Gwr as iY,Ayr as iZ,iXr as i_,oQr as ia,zir as ib,vGr as ic,mjt as id,OQr as ie,VYt as ig,yGr as ih,fkr as ii,mQr as ij,kQr as ik,hQr as il,RQr as im,dQr as io,pQr as ip,Vpr as iq,wQr as ir,Qne as is,EQr as it,Cmr as iu,dmr as iv,sQt as iw,DQr as ix,u9e as iy,c9e as iz,dce as j,f8r as j$,WZr as j0,pOt as j1,rXr as j2,pGr as j3,tKr as j4,oXr as j5,uGr as j6,hGr as j7,nXr as j8,w$ as j9,B9e as jA,z9e as jB,N9e as jC,O9e as jD,Xbr as jE,F9e as jF,Og as jG,pN as jH,GYr as jI,$Xr as jJ,aCr as jK,Pxr as jL,iCr as jM,Tu as jN,lg as jO,sCr as jP,sz as jQ,lz as jR,dh as jS,Uwr as jT,Z4e as jU,mGr as jV,gjt as jW,Rvr as jX,Dyr as jY,Myr as jZ,gGr as j_,Rbt as ja,Qlr as jb,FLt as jc,bZr as jd,mDt as je,kGr as jf,EGr as jg,Nyr as jh,vXr as ji,scr as jj,vDt as jk,sc as jl,YIt as jm,rKr as jn,pHt as jo,xd as jp,PYt as jq,Jbr as jr,Qbr as js,fN as jt,qy as ju,U9e as jv,U7 as jw,V9e as jx,cg as jy,H9e as jz,vr as k,xZr as k$,XCt as k0,fGr as k1,hDt as k2,qYr as k3,s_r as k4,yZr as k5,KQr as k6,j5e as k7,Pyr as k8,SGr as k9,s5e as kA,o8e as kB,g8e as kC,_se as kD,AN as kE,h8e as kF,Ikr as kG,H4e as kH,z5 as kI,DKr as kJ,z7 as kK,Lmr as kL,LKt as kM,jj as kN,AZr as kO,RBt as kP,pBt as kQ,B7e as kR,fJt as kS,Wwr as kT,sXr as kU,CZr as kV,CXr as kW,gZr as kX,wZr as kY,$Zr as kZ,SZr as k_,mmt as ka,$Gr as kb,CGr as kc,Lyr as kd,PIt as ke,Xqr as kf,n8e as kg,d8e as kh,T1 as ki,R$ as kj,dg as kk,u8e as kl,Jb as km,c8e as kn,qLt as ko,ev as kp,J6e as kq,s8e as kr,Qkr as ks,a8e as kt,p8e as ku,mR as kv,z6 as kw,e_r as kx,Y7 as ky,l8e as kz,Go as l,_Zr as l0,EZr as l1,kZr as l2,PKt as l3,xXr as l4,fZr as l5,Ywr as l6,vfr as m,Ut as n,c as o,M as p,Ye as q,HKr as r,Fg as s,T5e as t,Bd as u,GQr as v,k5e as w,lXr as x,G as y,la as z};
|
|
29401
|
+
Please refresh the page to try again.`)})),bP}function UWr(){console.warn(`initializing epic state with url ${JSON.stringify(vm)}`);const e=la.getSignedInUser(),t=xbe(vm,e?.userId,e?.zeniSessionId,void 0,kR()),r=Cbe();return r.userId!=null&&F$.identify(r.userId,{tenant_id:r.tenantId}),t}const WWr=!!(window.location.hostname==="localhost"||window.location.hostname==="[::1]"||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/)),YWr="DEV",GWr="https://zeni-webapp-dev.uc.r.appspot.com",pce=`/service-worker.js?v=${Date.now()}&env=${YWr}&endpoint=${encodeURIComponent(GWr)}`;function qWr(e){if("serviceWorker"in navigator){if(new URL("https://dev.app.zeni.ai",window.location.href).origin!==window.location.origin)return;window.addEventListener("load",()=>{WWr?ZWr(pce):Cye(pce)})}}function Cye(e,t){navigator.serviceWorker.register(e).then(r=>{r.onupdatefound=()=>{const n=r.installing;n!=null&&(n.onstatechange=()=>{n.state==="installed"&&(navigator.serviceWorker.controller?(console.log("New content available; will be used when all tabs are closed."),navigator.serviceWorker.controller?.postMessage({type:"UPDATE_READY"}),r.waiting?.postMessage({type:"SKIP_WAITING"})):console.log("Content is cached for offline use."))})},r.waiting&&r.waiting.postMessage({type:"SKIP_WAITING"}),navigator.serviceWorker.addEventListener("controllerchange",()=>{console.log("New service worker activated."),r.active?.postMessage({type:"CLIENTS_CLAIM"})})}).catch(r=>{console.error("Error during service worker registration:",r)})}function ZWr(e,t){fetch(e,{headers:{"Service-Worker":"script"}}).then(r=>{const n=r.headers.get("content-type");r.status===404||n!=null&&!n.includes("javascript")?navigator.serviceWorker.ready.then(o=>{o.unregister().then(()=>window.location.reload())}):Cye(e)}).catch(()=>{console.log("No internet connection found. App is running in offline mode.")})}const KWr=la.getSignedInUser(),QWr=KWr?.zeniSessionId;async function XWr(){try{const e=await bWr(),t=fWr(e,gWr+h1);yWr(JSON.parse(t)),Pbe.createRoot(document.getElementById("root")).render(Wt.jsx(C.StrictMode,{children:Wt.jsx(fve,{basename:"/cockpit",children:Wt.jsx(BWr,{})})})),JWr()}catch(e){console.error("Error initializing app:",e)}}function JWr(){const e=()=>{jye({dsn:ui.sentryDsn,integrations:[Rye(),Oye({maskAllText:!0,blockAllMedia:!0})],tracesSampleRate:ui.sentryTraceSamplingRate??bye,replaysSessionSampleRate:0,replaysOnErrorSampleRate:1,beforeSendTransaction(t){return t.breadcrumbs&&(t.breadcrumbs=t.breadcrumbs.filter(r=>r.category!=="console"?!0:(r.message??"").toLowerCase().includes("called people set")||Array.isArray(r.data?.arguments)&&r.data.arguments.some(o=>typeof o=="string"&&o.toLowerCase().includes("called people set"))?!1:(Array.isArray(r.data?.arguments)&&(r.data.arguments=r.data.arguments.map(o=>{if(typeof o=="string"&&o.includes("user_roles"))try{const i=o.match(/\{.*\}/s);if(i!==null){const a=JSON.parse(i[0]);if(a.user_roles!=null)return delete a.user_roles,o.replace(i[0],JSON.stringify(a))}}catch{}return o})),!0))),t}}),Fye("session-id",QWr)};typeof requestIdleCallback=="function"?requestIdleCallback(e):setTimeout(e,0)}XWr();qWr();export{LXr as $,SXr as A,l$ as B,dXr as C,NXr as D,Qm as E,de as F,MKr as G,Sn as H,uXr as I,pXr as J,PXr as K,Ar as L,ro as M,d$ as N,tGr as O,MXr as P,DXr as Q,Ot as R,hXr as S,mXr as T,FXr as U,s as V,EXr as W,OXr as X,jXr as Y,IXr as Z,RXr as _,ll as a,J0 as a$,NKr as a0,zKr as a1,AXr as a2,TXr as a3,kXr as a4,xye as a5,cXr as a6,dur as a7,cl as a8,Ao as a9,Pqr as aA,In as aB,TYr as aC,kYr as aD,AYr as aE,EYr as aF,_Yr as aG,qa as aH,FKr as aI,OKr as aJ,PKr as aK,tr as aL,k6 as aM,ke as aN,wn as aO,Ma as aP,IKr as aQ,Yo as aR,_d as aS,ft as aT,yt as aU,jKr as aV,jc as aW,Ic as aX,Ig as aY,Eo as aZ,ua as a_,xo as aa,$Yr as ab,To as ac,Rg as ad,W9 as ae,X1 as af,k$ as ag,n$t as ah,ot as ai,SYr as aj,CYr as ak,Ze as al,$t as am,go as an,qr as ao,zd as ap,kn as aq,u2 as ar,see as as,lo as at,Ja as au,Oy as av,da as aw,_Mt as ax,s6 as ay,LYr as az,K as b,uN as b$,Rc as b0,RKr as b1,Sm as b2,s7r as b3,O1 as b4,Wh as b5,Hr as b6,gN as b7,Nn as b8,hn as b9,j1 as bA,_Kr as bB,Ow as bC,yN as bD,dn as bE,Do as bF,ht as bG,FYr as bH,es as bI,qGr as bJ,G1 as bK,ZGr as bL,Vg as bM,fi as bN,$Et as bO,F0 as bP,c5e as bQ,kt as bR,TUt as bS,Xa as bT,vYr as bU,att as bV,D6 as bW,Iyr as bX,jyr as bY,Hi as bZ,Z1 as b_,tc as ba,Fxt as bb,Akt as bc,gvt as bd,Pd as be,nc as bf,m2 as bg,kN as bh,YQr as bi,JQr as bj,ZQr as bk,qQr as bl,uoe as bm,Wl as bn,EN as bo,hd as bp,bYr as bq,WCt as br,K1 as bs,Sp as bt,A6 as bu,R1 as bv,b5e as bw,Xl as bx,xDt as by,_Gr as bz,R as c,q1 as c$,lc as c0,_6 as c1,pDt as c2,j9e as c3,f6e as c4,jN as c5,l5e as c6,Hb as c7,ON as c8,FN as c9,Fd as cA,w6 as cB,Qa as cC,M7 as cD,VYr as cE,eo as cF,WLt as cG,wa as cH,F7 as cI,WUt as cJ,I9e as cK,fm as cL,b7e as cM,cGr as cN,m$r as cO,_t as cP,UYr as cQ,aGr as cR,J9e as cS,nz as cT,h2 as cU,en as cV,ts as cW,ni as cX,axt as cY,m5e as cZ,TKt as c_,j6 as ca,ZDt as cb,pZr as cc,B6e as cd,H6e as ce,Yw as cf,hr as cg,g8r as ch,CN as ci,V1 as cj,CKr as ck,wne as cl,wYr as cm,B1 as cn,R0 as co,s2 as cp,Bwr as cq,Y1 as cr,mZr as cs,Die as ct,Ob as cu,mlr as cv,el as cw,gb as cx,aNt as cy,Ls as cz,wt as d,Kqr as d$,DJ as d0,Hg as d1,i5e as d2,La as d3,L$ as d4,PYr as d5,MYr as d6,DYr as d7,_6e as d8,_$ as d9,RZr as dA,xN as dB,rqt as dC,lte as dD,cte as dE,iqt as dF,aqt as dG,V4e as dH,Thr as dI,X9e as dJ,WOt as dK,zg as dL,B1r as dM,_Ft as dN,AFt as dO,NQr as dP,Y3r as dQ,UZr as dR,jqr as dS,Qqr as dT,Wqr as dU,Uqr as dV,qqr as dW,Gqr as dX,Yqr as dY,Hqr as dZ,Bqr as d_,tz as da,jYr as db,IYr as dc,RYr as dd,EKr as de,OYr as df,fo as dg,NYr as dh,Nit as di,zYr as dj,a$r as dk,BYr as dl,fdr as dm,C$ as dn,Ng as dp,Ul as dq,V3 as dr,dte as ds,nqt as dt,oqt as du,vN as dv,FZr as dw,NZr as dx,zZr as dy,OZr as dz,F$ as e,TZr as e$,Zqr as e0,zqr as e1,Nqr as e2,wee as e3,Vqr as e4,nZr as e5,Fqr as e6,Oqr as e7,rZr as e8,Rqr as e9,mN as eA,_3r as eB,T3r as eC,E3r as eD,Bg as eE,BKr as eF,Lp as eG,Q1 as eH,Da as eI,Q9e as eJ,D$ as eK,km as eL,yNt as eM,vNt as eN,cIt as eO,ast as eP,Mf as eQ,qZr as eR,ULt as eS,WYr as eT,GZr as eU,P6 as eV,M6 as eW,R7e as eX,Wm as eY,sWe as eZ,qZe as e_,tZr as ea,oZr as eb,HYr as ec,iZr as ed,FQr as ee,i9e as ef,c6 as eg,Jqr as eh,Eh as ei,I6 as ej,xmr as ek,DFt as el,LFt as em,TFt as en,It as eo,P7 as ep,pm as eq,wmr as er,LL as es,NN as et,vFt as eu,aZr as ev,mb as ew,Br as ex,Utt as ey,$6 as ez,ui as f,cZr as f$,_or as f0,R7 as f1,KN as f2,Eor as f3,tg as f4,Ntr as f5,aHt as f6,qw as f7,Cor as f8,iHt as f9,ag as fA,ig as fB,O0 as fC,p1 as fD,R5r as fE,F5e as fF,wjt as fG,yjt as fH,Q7e as fI,f4r as fJ,I4r as fK,T6 as fL,x6 as fM,$N as fN,xGr as fO,uZr as fP,Mqr as fQ,YZr as fR,sZr as fS,dZr as fT,lZr as fU,hZr as fV,y$r as fW,wOt as fX,P$ as fY,Nd as fZ,Zl as f_,oHt as fa,zee as fb,FEe as fc,y$ as fd,$a as fe,VZr as ff,xa as fg,Ca as fh,Aor as fi,Tor as fj,L6 as fk,S7e as fl,b6e as fm,Iqr as fn,um as fo,Ogr as fp,Jj as fq,I5r as fr,GOt as fs,Ngr as ft,xb as fu,jZr as fv,cN as fw,t5r as fx,j5r as fy,mm as fz,m$ as g,L9e as g$,lNt as g0,vjt as g1,a_r as g2,qj as g3,t7e as g4,X5e as g5,Ugr as g6,Cb as g7,q7e as g8,sGr as g9,$7e as gA,svt as gB,oRt as gC,eZr as gD,rg as gE,wGr as gF,p$ as gG,k6e as gH,SJ as gI,kb as gJ,om as gK,kmr as gL,x$ as gM,K$r as gN,rGr as gO,xue as gP,sl as gQ,F7e as gR,PZr as gS,xJt as gT,QN as gU,XN as gV,bN as gW,c$ as gX,vt as gY,E6 as gZ,Kyr as g_,LZr as ga,ife as gb,b6 as gc,j7e as gd,G7e as ge,co as gf,G5e as gg,p2 as gh,Ir as gi,rHt as gj,MBt as gk,jar as gl,j7 as gm,o7 as gn,Qrr as go,Fee as gp,Ap as gq,jt as gr,JN as gs,E$ as gt,eg as gu,Rtr as gv,I7 as gw,GHt as gx,IZr as gy,dVt as gz,_Xr as h,rR as h$,f9e as h0,V8r as h1,q8r as h2,ryr as h3,YYr as h4,Z8r as h5,G8r as h6,n7 as h7,Mj as h8,gWt as h9,HZr as hA,sZt as hB,U4r as hC,V4r as hD,e5e as hE,x$r as hF,B_ as hG,bGr as hH,uHt as hI,hN as hJ,kF as hK,SF as hL,Z4 as hM,YKr as hN,WKr as hO,GKr as hP,zne as hQ,r9e as hR,VKr as hS,UKr as hT,t9e as hU,M7e as hV,rlr as hW,lGr as hX,GLt as hY,d2 as hZ,fXr as h_,ng as ha,v7e as hb,g7e as hc,y7e as hd,IZt as he,QZt as hf,oGr as hg,iGr as hh,UN as hi,WN as hj,dGr as hk,OEt as hl,f7e as hm,up as hn,TYt as ho,DZr as hp,MZr as hq,C7e as hr,jd as hs,BZr as ht,Uyr as hu,q3r as hv,S$ as hw,vZr as hx,ep as hy,E6e as hz,zXr as i,H4r as i$,$Kr as i0,kKr as i1,iRt as i2,SKr as i3,XKr as i4,rQr as i5,nQr as i6,eQr as i7,tQr as i8,JKr as i9,Uhr as iA,_Qr as iB,Vb as iC,LKr as iD,SQr as iE,uQr as iF,nGr as iG,uKr as iH,J4e as iI,koe as iJ,wDt as iK,gXr as iL,yXr as iM,bXr as iN,wXr as iO,$ie as iP,kxt as iQ,X6e as iR,U2r as iS,Tyr as iT,rOt as iU,aXr as iV,R6e as iW,qwr as iX,Gwr as iY,Ayr as iZ,iXr as i_,oQr as ia,zir as ib,vGr as ic,mjt as id,OQr as ie,VYt as ig,yGr as ih,fkr as ii,mQr as ij,kQr as ik,hQr as il,RQr as im,dQr as io,pQr as ip,Vpr as iq,wQr as ir,Qne as is,EQr as it,Cmr as iu,dmr as iv,sQt as iw,DQr as ix,u9e as iy,c9e as iz,dce as j,gGr as j$,WZr as j0,pOt as j1,rXr as j2,pGr as j3,tKr as j4,oXr as j5,uGr as j6,hGr as j7,nXr as j8,w$ as j9,H9e as jA,B9e as jB,z9e as jC,N9e as jD,O9e as jE,Xbr as jF,F9e as jG,Og as jH,pN as jI,GYr as jJ,$Xr as jK,aCr as jL,Pxr as jM,iCr as jN,Tu as jO,lg as jP,sCr as jQ,sz as jR,lz as jS,dh as jT,Uwr as jU,Z4e as jV,mGr as jW,gjt as jX,Rvr as jY,Dyr as jZ,Myr as j_,Rbt as ja,Qlr as jb,FLt as jc,bZr as jd,mDt as je,kGr as jf,EGr as jg,Nyr as jh,vXr as ji,DIt as jj,scr as jk,vDt as jl,sc as jm,YIt as jn,rKr as jo,pHt as jp,xd as jq,PYt as jr,Jbr as js,Qbr as jt,fN as ju,qy as jv,U9e as jw,U7 as jx,V9e as jy,cg as jz,vr as k,SZr as k$,f8r as k0,XCt as k1,fGr as k2,hDt as k3,qYr as k4,s_r as k5,yZr as k6,KQr as k7,j5e as k8,Pyr as k9,l8e as kA,s5e as kB,o8e as kC,g8e as kD,_se as kE,AN as kF,h8e as kG,Ikr as kH,H4e as kI,z5 as kJ,DKr as kK,z7 as kL,Lmr as kM,LKt as kN,jj as kO,AZr as kP,RBt as kQ,pBt as kR,B7e as kS,fJt as kT,Wwr as kU,sXr as kV,CZr as kW,CXr as kX,gZr as kY,wZr as kZ,$Zr as k_,SGr as ka,mmt as kb,$Gr as kc,CGr as kd,Lyr as ke,PIt as kf,Xqr as kg,n8e as kh,d8e as ki,T1 as kj,R$ as kk,dg as kl,u8e as km,Jb as kn,c8e as ko,qLt as kp,ev as kq,J6e as kr,s8e as ks,Qkr as kt,a8e as ku,p8e as kv,mR as kw,z6 as kx,e_r as ky,Y7 as kz,Go as l,xZr as l0,_Zr as l1,EZr as l2,kZr as l3,PKt as l4,xXr as l5,fZr as l6,Ywr as l7,vfr as m,Ut as n,c as o,M as p,Ye as q,HKr as r,Fg as s,T5e as t,Bd as u,GQr as v,k5e as w,lXr as x,G as y,la as z};
|