codex 1.8.13__py3-none-any.whl → 1.8.14__py3-none-any.whl
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.
Potentially problematic release.
This version of codex might be problematic. Click here for more details.
- codex/librarian/scribe/importer/read/foreign_keys.py +1 -1
- codex/signals/os_signals.py +8 -3
- codex/static_root/assets/VCheckbox-DSiToISz.36b2c3106f70.js +1 -0
- codex/static_root/assets/VCheckbox-DSiToISz.36b2c3106f70.js.br +0 -0
- codex/static_root/assets/VCheckbox-DSiToISz.36b2c3106f70.js.gz +0 -0
- codex/static_root/assets/VCheckbox-DSiToISz.js +1 -0
- codex/static_root/assets/VCheckbox-DSiToISz.js.br +0 -0
- codex/static_root/assets/VCheckbox-DSiToISz.js.gz +0 -0
- codex/static_root/assets/{VCheckboxBtn-CqdpagcB.890842fbdebe.js → VCheckboxBtn-CYmOhPsT.064f0ca6833f.js} +1 -1
- codex/static_root/assets/VCheckboxBtn-CYmOhPsT.064f0ca6833f.js.br +0 -0
- codex/static_root/assets/VCheckboxBtn-CYmOhPsT.064f0ca6833f.js.gz +0 -0
- codex/static_root/assets/{VCheckboxBtn-CqdpagcB.js → VCheckboxBtn-CYmOhPsT.js} +1 -1
- codex/static_root/assets/VCheckboxBtn-CYmOhPsT.js.br +0 -0
- codex/static_root/assets/VCheckboxBtn-CYmOhPsT.js.gz +0 -0
- codex/static_root/assets/VCombobox-BPA3Li01.560d65a1fd9e.js +1 -0
- codex/static_root/assets/VCombobox-BPA3Li01.560d65a1fd9e.js.br +0 -0
- codex/static_root/assets/VCombobox-BPA3Li01.560d65a1fd9e.js.gz +0 -0
- codex/static_root/assets/VCombobox-BPA3Li01.js +1 -0
- codex/static_root/assets/VCombobox-BPA3Li01.js.br +0 -0
- codex/static_root/assets/VCombobox-BPA3Li01.js.gz +0 -0
- codex/static_root/assets/VCombobox-D3yUbBJX.341d3f641979.css +1 -0
- codex/static_root/assets/VCombobox-D3yUbBJX.341d3f641979.css.br +0 -0
- codex/static_root/assets/VCombobox-D3yUbBJX.341d3f641979.css.gz +0 -0
- codex/static_root/assets/VCombobox-D3yUbBJX.css +1 -0
- codex/static_root/assets/VCombobox-D3yUbBJX.css.br +0 -0
- codex/static_root/assets/VCombobox-D3yUbBJX.css.gz +0 -0
- codex/static_root/assets/VDialog-BFf48e97.3689a9d36779.js +1 -0
- codex/static_root/assets/VDialog-BFf48e97.3689a9d36779.js.br +0 -0
- codex/static_root/assets/VDialog-BFf48e97.3689a9d36779.js.gz +0 -0
- codex/static_root/assets/VDialog-BFf48e97.js +1 -0
- codex/static_root/assets/VDialog-BFf48e97.js.br +0 -0
- codex/static_root/assets/VDialog-BFf48e97.js.gz +0 -0
- codex/static_root/assets/{VDialog-CpWjrJ0R.610ffc6302d4.css → VDialog-cfA1435M.9d74582347d0.css} +1 -1
- codex/static_root/assets/VDialog-cfA1435M.9d74582347d0.css.br +0 -0
- codex/static_root/assets/VDialog-cfA1435M.9d74582347d0.css.gz +0 -0
- codex/static_root/assets/{VDialog-CpWjrJ0R.css → VDialog-cfA1435M.css} +1 -1
- codex/static_root/assets/VDialog-cfA1435M.css.br +0 -0
- codex/static_root/assets/VDialog-cfA1435M.css.gz +0 -0
- codex/static_root/assets/VDivider-Dtis_q2S.9e74f9b00677.js +1 -0
- codex/static_root/assets/VDivider-Dtis_q2S.9e74f9b00677.js.br +0 -0
- codex/static_root/assets/VDivider-Dtis_q2S.9e74f9b00677.js.gz +0 -0
- codex/static_root/assets/VDivider-Dtis_q2S.js +1 -0
- codex/static_root/assets/VDivider-Dtis_q2S.js.br +0 -0
- codex/static_root/assets/VDivider-Dtis_q2S.js.gz +0 -0
- codex/static_root/assets/VExpansionPanels-B8KjM0Qi.css +1 -0
- codex/static_root/assets/VExpansionPanels-B8KjM0Qi.css.br +0 -0
- codex/static_root/assets/VExpansionPanels-B8KjM0Qi.css.gz +0 -0
- codex/static_root/assets/VExpansionPanels-B8KjM0Qi.e4aca21014f2.css +1 -0
- codex/static_root/assets/VExpansionPanels-B8KjM0Qi.e4aca21014f2.css.br +0 -0
- codex/static_root/assets/VExpansionPanels-B8KjM0Qi.e4aca21014f2.css.gz +0 -0
- codex/static_root/assets/VExpansionPanels-DFJglYob.df0a5305e017.js +1 -0
- codex/static_root/assets/VExpansionPanels-DFJglYob.df0a5305e017.js.br +0 -0
- codex/static_root/assets/VExpansionPanels-DFJglYob.df0a5305e017.js.gz +0 -0
- codex/static_root/assets/VExpansionPanels-DFJglYob.js +1 -0
- codex/static_root/assets/VExpansionPanels-DFJglYob.js.br +0 -0
- codex/static_root/assets/VExpansionPanels-DFJglYob.js.gz +0 -0
- codex/static_root/assets/{VForm-J2mEa_og.ff05ef3e7ff4.js → VForm-BNXhV_uk.f87afb6d84da.js} +1 -1
- codex/static_root/assets/VForm-BNXhV_uk.f87afb6d84da.js.br +0 -0
- codex/static_root/assets/VForm-BNXhV_uk.f87afb6d84da.js.gz +0 -0
- codex/static_root/assets/{VForm-J2mEa_og.js → VForm-BNXhV_uk.js} +1 -1
- codex/static_root/assets/VForm-BNXhV_uk.js.br +0 -0
- codex/static_root/assets/VForm-BNXhV_uk.js.gz +0 -0
- codex/static_root/assets/{VRadioGroup-jPA1T3rE.b041ec78a828.js → VRadioGroup-BlGhrl3W.93a79cebc3eb.js} +1 -1
- codex/static_root/assets/VRadioGroup-BlGhrl3W.93a79cebc3eb.js.br +0 -0
- codex/static_root/assets/VRadioGroup-BlGhrl3W.93a79cebc3eb.js.gz +0 -0
- codex/static_root/assets/{VRadioGroup-jPA1T3rE.js → VRadioGroup-BlGhrl3W.js} +1 -1
- codex/static_root/assets/VRadioGroup-BlGhrl3W.js.br +0 -0
- codex/static_root/assets/VRadioGroup-BlGhrl3W.js.gz +0 -0
- codex/static_root/assets/{VSelect-BbzE_-2K.a86df90a9d55.css → VSelect-BvTTr4RP.be69766e6916.css} +1 -1
- codex/static_root/assets/VSelect-BvTTr4RP.be69766e6916.css.br +0 -0
- codex/static_root/assets/VSelect-BvTTr4RP.be69766e6916.css.gz +0 -0
- codex/static_root/assets/{VSelect-BbzE_-2K.css → VSelect-BvTTr4RP.css} +1 -1
- codex/static_root/assets/VSelect-BvTTr4RP.css.br +0 -0
- codex/static_root/assets/VSelect-BvTTr4RP.css.gz +0 -0
- codex/static_root/assets/VSelect-DIXHkKJm.22846e456715.js +1 -0
- codex/static_root/assets/VSelect-DIXHkKJm.22846e456715.js.br +0 -0
- codex/static_root/assets/VSelect-DIXHkKJm.22846e456715.js.gz +0 -0
- codex/static_root/assets/VSelect-DIXHkKJm.js +1 -0
- codex/static_root/assets/VSelect-DIXHkKJm.js.br +0 -0
- codex/static_root/assets/VSelect-DIXHkKJm.js.gz +0 -0
- codex/static_root/assets/VSelectionControl-R4GtShoa.css +1 -0
- codex/static_root/assets/VSelectionControl-R4GtShoa.css.br +0 -0
- codex/static_root/assets/VSelectionControl-R4GtShoa.css.gz +0 -0
- codex/static_root/assets/VSelectionControl-R4GtShoa.f3ebc2149a3a.css +1 -0
- codex/static_root/assets/VSelectionControl-R4GtShoa.f3ebc2149a3a.css.br +0 -0
- codex/static_root/assets/VSelectionControl-R4GtShoa.f3ebc2149a3a.css.gz +0 -0
- codex/static_root/assets/VSelectionControl-xYnmeS9J.279721e1b13d.js +1 -0
- codex/static_root/assets/VSelectionControl-xYnmeS9J.279721e1b13d.js.br +0 -0
- codex/static_root/assets/VSelectionControl-xYnmeS9J.279721e1b13d.js.gz +0 -0
- codex/static_root/assets/VSelectionControl-xYnmeS9J.js +1 -0
- codex/static_root/assets/VSelectionControl-xYnmeS9J.js.br +0 -0
- codex/static_root/assets/VSelectionControl-xYnmeS9J.js.gz +0 -0
- codex/static_root/assets/{VTable-KYw5fCd8.311b2d4fb655.js → VTable-BK7gXlps.d1758b79332d.js} +1 -1
- codex/static_root/assets/VTable-BK7gXlps.d1758b79332d.js.br +0 -0
- codex/static_root/assets/VTable-BK7gXlps.d1758b79332d.js.gz +0 -0
- codex/static_root/assets/{VTable-KYw5fCd8.js → VTable-BK7gXlps.js} +1 -1
- codex/static_root/assets/VTable-BK7gXlps.js.br +0 -0
- codex/static_root/assets/VTable-BK7gXlps.js.gz +0 -0
- codex/static_root/assets/VWindowItem-0tN6eYpd.773c981aa12a.js +1 -0
- codex/static_root/assets/VWindowItem-0tN6eYpd.773c981aa12a.js.br +0 -0
- codex/static_root/assets/VWindowItem-0tN6eYpd.773c981aa12a.js.gz +0 -0
- codex/static_root/assets/VWindowItem-0tN6eYpd.js +1 -0
- codex/static_root/assets/VWindowItem-0tN6eYpd.js.br +0 -0
- codex/static_root/assets/VWindowItem-0tN6eYpd.js.gz +0 -0
- codex/static_root/assets/VWindowItem-CWv03gfN.css +1 -0
- codex/static_root/assets/VWindowItem-CWv03gfN.css.br +0 -0
- codex/static_root/assets/VWindowItem-CWv03gfN.css.gz +0 -0
- codex/static_root/assets/VWindowItem-CWv03gfN.ddad20bc51ba.css +1 -0
- codex/static_root/assets/VWindowItem-CWv03gfN.ddad20bc51ba.css.br +0 -0
- codex/static_root/assets/VWindowItem-CWv03gfN.ddad20bc51ba.css.gz +0 -0
- codex/static_root/assets/admin-BSeSK58M.5e0ec404b68a.js +1 -0
- codex/static_root/assets/admin-BSeSK58M.5e0ec404b68a.js.br +0 -0
- codex/static_root/assets/admin-BSeSK58M.5e0ec404b68a.js.gz +0 -0
- codex/static_root/assets/admin-BSeSK58M.js +1 -0
- codex/static_root/assets/admin-BSeSK58M.js.br +0 -0
- codex/static_root/assets/admin-BSeSK58M.js.gz +0 -0
- codex/static_root/assets/{admin-D7dHJsJ4.5a7b2f5af603.js → admin-C6VbbEgi.1b7afd86e270.js} +1 -1
- codex/static_root/assets/admin-C6VbbEgi.1b7afd86e270.js.br +0 -0
- codex/static_root/assets/admin-C6VbbEgi.1b7afd86e270.js.gz +0 -0
- codex/static_root/assets/{admin-D7dHJsJ4.js → admin-C6VbbEgi.js} +1 -1
- codex/static_root/assets/admin-C6VbbEgi.js.br +0 -0
- codex/static_root/assets/admin-C6VbbEgi.js.gz +0 -0
- codex/static_root/assets/{admin-menu-Y-2f4f-t.7c6bffa811c0.js → admin-menu-CJIeXccy.a8f894508762.js} +1 -1
- codex/static_root/assets/admin-menu-CJIeXccy.a8f894508762.js.br +0 -0
- codex/static_root/assets/admin-menu-CJIeXccy.a8f894508762.js.gz +0 -0
- codex/static_root/assets/{admin-menu-Y-2f4f-t.js → admin-menu-CJIeXccy.js} +1 -1
- codex/static_root/assets/admin-menu-CJIeXccy.js.br +0 -0
- codex/static_root/assets/admin-menu-CJIeXccy.js.gz +0 -0
- codex/static_root/assets/{admin-settings-button-progress-CX4KtKvA.37ae80a378e4.js → admin-settings-button-progress-vOeMypwd.5db8039f1f8b.js} +1 -1
- codex/static_root/assets/admin-settings-button-progress-vOeMypwd.5db8039f1f8b.js.br +3 -0
- codex/static_root/assets/admin-settings-button-progress-vOeMypwd.5db8039f1f8b.js.gz +0 -0
- codex/static_root/assets/{admin-settings-button-progress-CX4KtKvA.js → admin-settings-button-progress-vOeMypwd.js} +1 -1
- codex/static_root/assets/admin-settings-button-progress-vOeMypwd.js.br +3 -0
- codex/static_root/assets/admin-settings-button-progress-vOeMypwd.js.gz +0 -0
- codex/static_root/assets/browser-CKD3rgcs.31efed76525d.js +1 -0
- codex/static_root/assets/browser-CKD3rgcs.31efed76525d.js.br +0 -0
- codex/static_root/assets/browser-CKD3rgcs.31efed76525d.js.gz +0 -0
- codex/static_root/assets/browser-CKD3rgcs.js +1 -0
- codex/static_root/assets/browser-CKD3rgcs.js.br +0 -0
- codex/static_root/assets/browser-CKD3rgcs.js.gz +0 -0
- codex/static_root/assets/change-password-dialog-DoBLv9WU.2f5b656e6981.js +1 -0
- codex/static_root/assets/change-password-dialog-DoBLv9WU.2f5b656e6981.js.br +0 -0
- codex/static_root/assets/change-password-dialog-DoBLv9WU.2f5b656e6981.js.gz +0 -0
- codex/static_root/assets/change-password-dialog-DoBLv9WU.js +1 -0
- codex/static_root/assets/change-password-dialog-DoBLv9WU.js.br +0 -0
- codex/static_root/assets/change-password-dialog-DoBLv9WU.js.gz +0 -0
- codex/static_root/assets/{confirm-dialog-Bc3Bw4Wf.df54617c5796.js → confirm-dialog-WKjj039l.7945cc0aca6f.js} +1 -1
- codex/static_root/assets/confirm-dialog-WKjj039l.7945cc0aca6f.js.br +0 -0
- codex/static_root/assets/confirm-dialog-WKjj039l.7945cc0aca6f.js.gz +0 -0
- codex/static_root/assets/{confirm-dialog-Bc3Bw4Wf.js → confirm-dialog-WKjj039l.js} +1 -1
- codex/static_root/assets/confirm-dialog-WKjj039l.js.br +0 -0
- codex/static_root/assets/confirm-dialog-WKjj039l.js.gz +0 -0
- codex/static_root/assets/{datetime-column-zWcVwgyi.03ad8c8b24a1.js → datetime-column-cHNNkd7r.0fa4cabd2ff5.js} +1 -1
- codex/static_root/assets/datetime-column-cHNNkd7r.0fa4cabd2ff5.js.br +1 -0
- codex/static_root/assets/datetime-column-cHNNkd7r.0fa4cabd2ff5.js.gz +0 -0
- codex/static_root/assets/{datetime-column-zWcVwgyi.js → datetime-column-cHNNkd7r.js} +1 -1
- codex/static_root/assets/datetime-column-cHNNkd7r.js.br +1 -0
- codex/static_root/assets/datetime-column-cHNNkd7r.js.gz +0 -0
- codex/static_root/assets/filter-Bu2xCEP4.d632e004db3e.js +1 -0
- codex/static_root/assets/filter-Bu2xCEP4.d632e004db3e.js.br +0 -0
- codex/static_root/assets/filter-Bu2xCEP4.d632e004db3e.js.gz +0 -0
- codex/static_root/assets/filter-Bu2xCEP4.js +1 -0
- codex/static_root/assets/filter-Bu2xCEP4.js.br +0 -0
- codex/static_root/assets/filter-Bu2xCEP4.js.gz +0 -0
- codex/static_root/assets/flag-tab-COY8uzS6.05e7ab1f0aef.js +1 -0
- codex/static_root/assets/flag-tab-COY8uzS6.05e7ab1f0aef.js.br +0 -0
- codex/static_root/assets/flag-tab-COY8uzS6.05e7ab1f0aef.js.gz +0 -0
- codex/static_root/assets/flag-tab-COY8uzS6.js +1 -0
- codex/static_root/assets/flag-tab-COY8uzS6.js.br +0 -0
- codex/static_root/assets/flag-tab-COY8uzS6.js.gz +0 -0
- codex/static_root/assets/forwardRefs-BXEe8ItZ.a2cf13851d8e.js +1 -0
- codex/static_root/assets/forwardRefs-BXEe8ItZ.a2cf13851d8e.js.br +0 -0
- codex/static_root/assets/forwardRefs-BXEe8ItZ.a2cf13851d8e.js.gz +0 -0
- codex/static_root/assets/forwardRefs-BXEe8ItZ.js +1 -0
- codex/static_root/assets/forwardRefs-BXEe8ItZ.js.br +0 -0
- codex/static_root/assets/forwardRefs-BXEe8ItZ.js.gz +0 -0
- codex/static_root/assets/forwardRefs-CecUXkvN.css +1 -0
- codex/static_root/assets/forwardRefs-CecUXkvN.css.br +0 -0
- codex/static_root/assets/forwardRefs-CecUXkvN.css.gz +0 -0
- codex/static_root/assets/forwardRefs-CecUXkvN.d595d41108e3.css +1 -0
- codex/static_root/assets/forwardRefs-CecUXkvN.d595d41108e3.css.br +0 -0
- codex/static_root/assets/forwardRefs-CecUXkvN.d595d41108e3.css.gz +0 -0
- codex/static_root/assets/{group-tab-BSr4dJJW.e36d5a728ebc.js → group-tab-CqHKA3Rv.bd829d9ff902.js} +1 -1
- codex/static_root/assets/group-tab-CqHKA3Rv.bd829d9ff902.js.br +0 -0
- codex/static_root/assets/group-tab-CqHKA3Rv.bd829d9ff902.js.gz +0 -0
- codex/static_root/assets/{group-tab-BSr4dJJW.js → group-tab-CqHKA3Rv.js} +1 -1
- codex/static_root/assets/group-tab-CqHKA3Rv.js.br +0 -0
- codex/static_root/assets/group-tab-CqHKA3Rv.js.gz +0 -0
- codex/static_root/assets/http-error-BAYySiBp.392f8e13b8a9.js +1 -0
- codex/static_root/assets/http-error-BAYySiBp.392f8e13b8a9.js.br +0 -0
- codex/static_root/assets/http-error-BAYySiBp.392f8e13b8a9.js.gz +0 -0
- codex/static_root/assets/http-error-BAYySiBp.js +1 -0
- codex/static_root/assets/http-error-BAYySiBp.js.br +0 -0
- codex/static_root/assets/http-error-BAYySiBp.js.gz +0 -0
- codex/static_root/assets/index-CuPwxeMJ.096be94db12c.js +1 -0
- codex/static_root/assets/index-CuPwxeMJ.096be94db12c.js.br +0 -0
- codex/static_root/assets/index-CuPwxeMJ.096be94db12c.js.gz +0 -0
- codex/static_root/assets/index-CuPwxeMJ.js +1 -0
- codex/static_root/assets/index-CuPwxeMJ.js.br +0 -0
- codex/static_root/assets/index-CuPwxeMJ.js.gz +0 -0
- codex/static_root/assets/{library-tab-B_PHwUZ-.516218e664f8.js → library-tab-DHtd9G39.a6068c595e8f.js} +1 -1
- codex/static_root/assets/library-tab-DHtd9G39.a6068c595e8f.js.br +0 -0
- codex/static_root/assets/library-tab-DHtd9G39.a6068c595e8f.js.gz +0 -0
- codex/static_root/assets/{library-tab-B_PHwUZ-.js → library-tab-DHtd9G39.js} +1 -1
- codex/static_root/assets/library-tab-DHtd9G39.js.br +0 -0
- codex/static_root/assets/library-tab-DHtd9G39.js.gz +0 -0
- codex/static_root/assets/{main-B8_0rUnw.a9be0875ae25.css → main-CZN13qLI.12debfe1e227.css} +1 -1
- codex/static_root/assets/main-CZN13qLI.12debfe1e227.css.br +0 -0
- codex/static_root/assets/{main-B8_0rUnw.a9be0875ae25.css.gz → main-CZN13qLI.12debfe1e227.css.gz} +0 -0
- codex/static_root/assets/{main-B8_0rUnw.css → main-CZN13qLI.css} +1 -1
- codex/static_root/assets/main-CZN13qLI.css.br +0 -0
- codex/static_root/assets/{main-B8_0rUnw.css.gz → main-CZN13qLI.css.gz} +0 -0
- codex/static_root/assets/main-d46UvpG6.9af3aed7efe8.js +39 -0
- codex/static_root/assets/main-d46UvpG6.9af3aed7efe8.js.br +0 -0
- codex/static_root/assets/main-d46UvpG6.9af3aed7efe8.js.gz +0 -0
- codex/static_root/assets/main-d46UvpG6.js +39 -0
- codex/static_root/assets/main-d46UvpG6.js.br +0 -0
- codex/static_root/assets/main-d46UvpG6.js.gz +0 -0
- codex/static_root/assets/pager-full-pdf-8uR2kH3x.2618772c88d6.js +1 -0
- codex/static_root/assets/pager-full-pdf-8uR2kH3x.2618772c88d6.js.br +0 -0
- codex/static_root/assets/pager-full-pdf-8uR2kH3x.2618772c88d6.js.gz +0 -0
- codex/static_root/assets/pager-full-pdf-8uR2kH3x.js +1 -0
- codex/static_root/assets/pager-full-pdf-8uR2kH3x.js.br +0 -0
- codex/static_root/assets/pager-full-pdf-8uR2kH3x.js.gz +0 -0
- codex/static_root/assets/{pagination-toolbar-CWi6EIET.c440bd1066b0.js → pagination-toolbar-Bj2tvIp6.b956898491b1.js} +1 -1
- codex/static_root/assets/pagination-toolbar-Bj2tvIp6.b956898491b1.js.br +0 -0
- codex/static_root/assets/pagination-toolbar-Bj2tvIp6.b956898491b1.js.gz +0 -0
- codex/static_root/assets/{pagination-toolbar-CWi6EIET.js → pagination-toolbar-Bj2tvIp6.js} +1 -1
- codex/static_root/assets/pagination-toolbar-Bj2tvIp6.js.br +0 -0
- codex/static_root/assets/pagination-toolbar-Bj2tvIp6.js.gz +0 -0
- codex/static_root/assets/{pdf-doc-BFFOclVi.b0ec00bfb616.js → pdf-doc-CAzVDc80.440339054422.js} +1 -1
- codex/static_root/assets/pdf-doc-CAzVDc80.440339054422.js.br +0 -0
- codex/static_root/assets/pdf-doc-CAzVDc80.440339054422.js.gz +0 -0
- codex/static_root/assets/{pdf-doc-BFFOclVi.js → pdf-doc-CAzVDc80.js} +1 -1
- codex/static_root/assets/pdf-doc-CAzVDc80.js.br +0 -0
- codex/static_root/assets/pdf-doc-CAzVDc80.js.gz +0 -0
- codex/static_root/assets/{reader-DxFZyySj.340be27f9b2d.js → reader-Bi_CT2rk.2048477e3d9a.js} +2 -2
- codex/static_root/assets/reader-Bi_CT2rk.2048477e3d9a.js.br +0 -0
- codex/static_root/assets/reader-Bi_CT2rk.2048477e3d9a.js.gz +0 -0
- codex/static_root/assets/{reader-DxFZyySj.js → reader-Bi_CT2rk.js} +2 -2
- codex/static_root/assets/reader-Bi_CT2rk.js.br +0 -0
- codex/static_root/assets/reader-Bi_CT2rk.js.gz +0 -0
- codex/static_root/assets/relation-chips-D2XLYFHm.c0c38d2a39ae.js +1 -0
- codex/static_root/assets/relation-chips-D2XLYFHm.c0c38d2a39ae.js.br +0 -0
- codex/static_root/assets/relation-chips-D2XLYFHm.c0c38d2a39ae.js.gz +0 -0
- codex/static_root/assets/relation-chips-D2XLYFHm.js +1 -0
- codex/static_root/assets/relation-chips-D2XLYFHm.js.br +0 -0
- codex/static_root/assets/relation-chips-D2XLYFHm.js.gz +0 -0
- codex/static_root/assets/relation-chips-WaEhcyda.870ff99b3d8b.css +1 -0
- codex/static_root/assets/relation-chips-WaEhcyda.870ff99b3d8b.css.br +0 -0
- codex/static_root/assets/relation-chips-WaEhcyda.870ff99b3d8b.css.gz +0 -0
- codex/static_root/assets/relation-chips-WaEhcyda.css +1 -0
- codex/static_root/assets/relation-chips-WaEhcyda.css.br +0 -0
- codex/static_root/assets/relation-chips-WaEhcyda.css.gz +0 -0
- codex/static_root/assets/{settings-drawer-BD44Ahju.54110f5e27ec.js → settings-drawer-CjqFmP5f.a1c27430b554.js} +2 -2
- codex/static_root/assets/settings-drawer-CjqFmP5f.a1c27430b554.js.br +0 -0
- codex/static_root/assets/settings-drawer-CjqFmP5f.a1c27430b554.js.gz +0 -0
- codex/static_root/assets/{settings-drawer-BD44Ahju.js → settings-drawer-CjqFmP5f.js} +2 -2
- codex/static_root/assets/settings-drawer-CjqFmP5f.js.br +0 -0
- codex/static_root/assets/settings-drawer-CjqFmP5f.js.gz +0 -0
- codex/static_root/assets/{settings-drawer-D7bFOc4_.9748ddd58be9.css → settings-drawer-d-7mkVdG.15838d8ecd33.css} +1 -1
- codex/static_root/assets/settings-drawer-d-7mkVdG.15838d8ecd33.css.br +0 -0
- codex/static_root/assets/settings-drawer-d-7mkVdG.15838d8ecd33.css.gz +0 -0
- codex/static_root/assets/{settings-drawer-D7bFOc4_.css → settings-drawer-d-7mkVdG.css} +1 -1
- codex/static_root/assets/settings-drawer-d-7mkVdG.css.br +0 -0
- codex/static_root/assets/settings-drawer-d-7mkVdG.css.gz +0 -0
- codex/static_root/assets/ssrBoot-Bn2PfqMS.a3d5b2b28349.js +1 -0
- codex/static_root/assets/ssrBoot-Bn2PfqMS.a3d5b2b28349.js.br +0 -0
- codex/static_root/assets/ssrBoot-Bn2PfqMS.a3d5b2b28349.js.gz +0 -0
- codex/static_root/assets/ssrBoot-Bn2PfqMS.js +1 -0
- codex/static_root/assets/ssrBoot-Bn2PfqMS.js.br +0 -0
- codex/static_root/assets/ssrBoot-Bn2PfqMS.js.gz +0 -0
- codex/static_root/assets/stats-tab-CQYF0r5W.3eeaa933ecfd.js +1 -0
- codex/static_root/assets/stats-tab-CQYF0r5W.3eeaa933ecfd.js.br +0 -0
- codex/static_root/assets/stats-tab-CQYF0r5W.3eeaa933ecfd.js.gz +0 -0
- codex/static_root/assets/stats-tab-CQYF0r5W.js +1 -0
- codex/static_root/assets/stats-tab-CQYF0r5W.js.br +0 -0
- codex/static_root/assets/stats-tab-CQYF0r5W.js.gz +0 -0
- codex/static_root/assets/task-tab-DZ6XCKiv.11d725b52725.js +1 -0
- codex/static_root/assets/task-tab-DZ6XCKiv.11d725b52725.js.br +0 -0
- codex/static_root/assets/task-tab-DZ6XCKiv.11d725b52725.js.gz +0 -0
- codex/static_root/assets/task-tab-DZ6XCKiv.js +1 -0
- codex/static_root/assets/task-tab-DZ6XCKiv.js.br +0 -0
- codex/static_root/assets/task-tab-DZ6XCKiv.js.gz +0 -0
- codex/static_root/assets/task-tab-DvSJmG8K.css +1 -0
- codex/static_root/assets/{task-tab-CW4DQ3KN.81812f9208e5.css.br → task-tab-DvSJmG8K.css.br} +1 -1
- codex/static_root/assets/task-tab-DvSJmG8K.css.gz +0 -0
- codex/static_root/assets/task-tab-DvSJmG8K.daf7fb2dfecf.css +1 -0
- codex/static_root/assets/{task-tab-CW4DQ3KN.css.br → task-tab-DvSJmG8K.daf7fb2dfecf.css.br} +1 -1
- codex/static_root/assets/task-tab-DvSJmG8K.daf7fb2dfecf.css.gz +0 -0
- codex/static_root/assets/{unauthorized-CN4zNUwv.6cef38be7edd.js → unauthorized-B0KN5ef3.3e4c44632a20.js} +1 -1
- codex/static_root/assets/unauthorized-B0KN5ef3.3e4c44632a20.js.br +0 -0
- codex/static_root/assets/unauthorized-B0KN5ef3.3e4c44632a20.js.gz +0 -0
- codex/static_root/assets/{unauthorized-CN4zNUwv.js → unauthorized-B0KN5ef3.js} +1 -1
- codex/static_root/assets/unauthorized-B0KN5ef3.js.br +0 -0
- codex/static_root/assets/unauthorized-B0KN5ef3.js.gz +0 -0
- codex/static_root/assets/unauthorized-ChdZFt-1.8a4ba062faeb.css +1 -0
- codex/static_root/assets/unauthorized-ChdZFt-1.8a4ba062faeb.css.br +0 -0
- codex/static_root/assets/unauthorized-ChdZFt-1.8a4ba062faeb.css.gz +0 -0
- codex/static_root/assets/unauthorized-ChdZFt-1.css +1 -0
- codex/static_root/assets/unauthorized-ChdZFt-1.css.br +0 -0
- codex/static_root/assets/unauthorized-ChdZFt-1.css.gz +0 -0
- codex/static_root/assets/{user-tab-BfK1ySCm.24ed1c97836c.js → user-tab-WoOwFzFw.2e07ebc79118.js} +1 -1
- codex/static_root/assets/user-tab-WoOwFzFw.2e07ebc79118.js.br +0 -0
- codex/static_root/assets/user-tab-WoOwFzFw.2e07ebc79118.js.gz +0 -0
- codex/static_root/assets/{user-tab-BfK1ySCm.js → user-tab-WoOwFzFw.js} +1 -1
- codex/static_root/assets/user-tab-WoOwFzFw.js.br +0 -0
- codex/static_root/assets/user-tab-WoOwFzFw.js.gz +0 -0
- codex/static_root/manifest.69541e47c159.json +760 -0
- codex/static_root/manifest.69541e47c159.json.br +0 -0
- codex/static_root/manifest.69541e47c159.json.gz +0 -0
- codex/static_root/manifest.json +343 -343
- codex/static_root/manifest.json.br +0 -0
- codex/static_root/manifest.json.gz +0 -0
- codex/static_root/staticfiles.json +1 -1
- codex/views/browser/params.py +1 -1
- codex/views/reader/params.py +1 -1
- codex/views/settings.py +2 -1
- {codex-1.8.13.dist-info → codex-1.8.14.dist-info}/METADATA +3 -3
- {codex-1.8.13.dist-info → codex-1.8.14.dist-info}/RECORD +322 -322
- codex/static_root/assets/VCheckbox-BwGe90i7.05dba0fbfebd.js +0 -1
- codex/static_root/assets/VCheckbox-BwGe90i7.05dba0fbfebd.js.br +0 -0
- codex/static_root/assets/VCheckbox-BwGe90i7.05dba0fbfebd.js.gz +0 -0
- codex/static_root/assets/VCheckbox-BwGe90i7.js +0 -1
- codex/static_root/assets/VCheckbox-BwGe90i7.js.br +0 -0
- codex/static_root/assets/VCheckbox-BwGe90i7.js.gz +0 -0
- codex/static_root/assets/VCheckboxBtn-CqdpagcB.890842fbdebe.js.br +0 -0
- codex/static_root/assets/VCheckboxBtn-CqdpagcB.890842fbdebe.js.gz +0 -0
- codex/static_root/assets/VCheckboxBtn-CqdpagcB.js.br +0 -0
- codex/static_root/assets/VCheckboxBtn-CqdpagcB.js.gz +0 -0
- codex/static_root/assets/VCombobox-DHFthaP6.942336d23612.css +0 -1
- codex/static_root/assets/VCombobox-DHFthaP6.942336d23612.css.br +0 -0
- codex/static_root/assets/VCombobox-DHFthaP6.942336d23612.css.gz +0 -0
- codex/static_root/assets/VCombobox-DHFthaP6.css +0 -1
- codex/static_root/assets/VCombobox-DHFthaP6.css.br +0 -0
- codex/static_root/assets/VCombobox-DHFthaP6.css.gz +0 -0
- codex/static_root/assets/VCombobox-HMiIZRsM.883f0e2ffc0a.js +0 -1
- codex/static_root/assets/VCombobox-HMiIZRsM.883f0e2ffc0a.js.br +0 -0
- codex/static_root/assets/VCombobox-HMiIZRsM.883f0e2ffc0a.js.gz +0 -0
- codex/static_root/assets/VCombobox-HMiIZRsM.js +0 -1
- codex/static_root/assets/VCombobox-HMiIZRsM.js.br +0 -0
- codex/static_root/assets/VCombobox-HMiIZRsM.js.gz +0 -0
- codex/static_root/assets/VDialog-B1OSC1f5.012d5d362d84.js +0 -1
- codex/static_root/assets/VDialog-B1OSC1f5.012d5d362d84.js.br +0 -0
- codex/static_root/assets/VDialog-B1OSC1f5.012d5d362d84.js.gz +0 -0
- codex/static_root/assets/VDialog-B1OSC1f5.js +0 -1
- codex/static_root/assets/VDialog-B1OSC1f5.js.br +0 -0
- codex/static_root/assets/VDialog-B1OSC1f5.js.gz +0 -0
- codex/static_root/assets/VDialog-CpWjrJ0R.610ffc6302d4.css.br +0 -0
- codex/static_root/assets/VDialog-CpWjrJ0R.610ffc6302d4.css.gz +0 -0
- codex/static_root/assets/VDialog-CpWjrJ0R.css.br +0 -0
- codex/static_root/assets/VDialog-CpWjrJ0R.css.gz +0 -0
- codex/static_root/assets/VDivider-6KdInZc6.c4c11ffd8782.js +0 -1
- codex/static_root/assets/VDivider-6KdInZc6.c4c11ffd8782.js.br +0 -0
- codex/static_root/assets/VDivider-6KdInZc6.c4c11ffd8782.js.gz +0 -0
- codex/static_root/assets/VDivider-6KdInZc6.js +0 -1
- codex/static_root/assets/VDivider-6KdInZc6.js.br +0 -0
- codex/static_root/assets/VDivider-6KdInZc6.js.gz +0 -0
- codex/static_root/assets/VExpansionPanels-Bwkzb0Oy.6614e5f857f1.js +0 -1
- codex/static_root/assets/VExpansionPanels-Bwkzb0Oy.6614e5f857f1.js.br +0 -0
- codex/static_root/assets/VExpansionPanels-Bwkzb0Oy.6614e5f857f1.js.gz +0 -0
- codex/static_root/assets/VExpansionPanels-Bwkzb0Oy.js +0 -1
- codex/static_root/assets/VExpansionPanels-Bwkzb0Oy.js.br +0 -0
- codex/static_root/assets/VExpansionPanels-Bwkzb0Oy.js.gz +0 -0
- codex/static_root/assets/VExpansionPanels-RsCANmDP.5b17872981df.css +0 -1
- codex/static_root/assets/VExpansionPanels-RsCANmDP.5b17872981df.css.br +0 -0
- codex/static_root/assets/VExpansionPanels-RsCANmDP.5b17872981df.css.gz +0 -0
- codex/static_root/assets/VExpansionPanels-RsCANmDP.css +0 -1
- codex/static_root/assets/VExpansionPanels-RsCANmDP.css.br +0 -0
- codex/static_root/assets/VExpansionPanels-RsCANmDP.css.gz +0 -0
- codex/static_root/assets/VForm-J2mEa_og.ff05ef3e7ff4.js.br +0 -0
- codex/static_root/assets/VForm-J2mEa_og.ff05ef3e7ff4.js.gz +0 -0
- codex/static_root/assets/VForm-J2mEa_og.js.br +0 -0
- codex/static_root/assets/VForm-J2mEa_og.js.gz +0 -0
- codex/static_root/assets/VRadioGroup-jPA1T3rE.b041ec78a828.js.br +0 -0
- codex/static_root/assets/VRadioGroup-jPA1T3rE.b041ec78a828.js.gz +0 -0
- codex/static_root/assets/VRadioGroup-jPA1T3rE.js.br +0 -0
- codex/static_root/assets/VRadioGroup-jPA1T3rE.js.gz +0 -0
- codex/static_root/assets/VSelect-BbzE_-2K.a86df90a9d55.css.br +0 -0
- codex/static_root/assets/VSelect-BbzE_-2K.a86df90a9d55.css.gz +0 -0
- codex/static_root/assets/VSelect-BbzE_-2K.css.br +0 -0
- codex/static_root/assets/VSelect-BbzE_-2K.css.gz +0 -0
- codex/static_root/assets/VSelect-CP3Eb9Go.137c60644b7e.js +0 -1
- codex/static_root/assets/VSelect-CP3Eb9Go.137c60644b7e.js.br +0 -0
- codex/static_root/assets/VSelect-CP3Eb9Go.137c60644b7e.js.gz +0 -0
- codex/static_root/assets/VSelect-CP3Eb9Go.js +0 -1
- codex/static_root/assets/VSelect-CP3Eb9Go.js.br +0 -0
- codex/static_root/assets/VSelect-CP3Eb9Go.js.gz +0 -0
- codex/static_root/assets/VSelectionControl-3mF3UtxV.331471e38863.js +0 -1
- codex/static_root/assets/VSelectionControl-3mF3UtxV.331471e38863.js.br +0 -0
- codex/static_root/assets/VSelectionControl-3mF3UtxV.331471e38863.js.gz +0 -0
- codex/static_root/assets/VSelectionControl-3mF3UtxV.js +0 -1
- codex/static_root/assets/VSelectionControl-3mF3UtxV.js.br +0 -0
- codex/static_root/assets/VSelectionControl-3mF3UtxV.js.gz +0 -0
- codex/static_root/assets/VSelectionControl-RqBzwjYi.css +0 -1
- codex/static_root/assets/VSelectionControl-RqBzwjYi.css.br +0 -0
- codex/static_root/assets/VSelectionControl-RqBzwjYi.css.gz +0 -0
- codex/static_root/assets/VSelectionControl-RqBzwjYi.ee7425525e63.css +0 -1
- codex/static_root/assets/VSelectionControl-RqBzwjYi.ee7425525e63.css.br +0 -0
- codex/static_root/assets/VSelectionControl-RqBzwjYi.ee7425525e63.css.gz +0 -0
- codex/static_root/assets/VTable-KYw5fCd8.311b2d4fb655.js.br +0 -0
- codex/static_root/assets/VTable-KYw5fCd8.311b2d4fb655.js.gz +0 -0
- codex/static_root/assets/VTable-KYw5fCd8.js.br +0 -0
- codex/static_root/assets/VTable-KYw5fCd8.js.gz +0 -0
- codex/static_root/assets/VWindowItem-BUML2ecc.a2574b84b5d8.js +0 -1
- codex/static_root/assets/VWindowItem-BUML2ecc.a2574b84b5d8.js.br +0 -0
- codex/static_root/assets/VWindowItem-BUML2ecc.a2574b84b5d8.js.gz +0 -0
- codex/static_root/assets/VWindowItem-BUML2ecc.js +0 -1
- codex/static_root/assets/VWindowItem-BUML2ecc.js.br +0 -0
- codex/static_root/assets/VWindowItem-BUML2ecc.js.gz +0 -0
- codex/static_root/assets/VWindowItem-QQWUVqMX.c22e707ac99c.css +0 -1
- codex/static_root/assets/VWindowItem-QQWUVqMX.c22e707ac99c.css.br +0 -5
- codex/static_root/assets/VWindowItem-QQWUVqMX.c22e707ac99c.css.gz +0 -0
- codex/static_root/assets/VWindowItem-QQWUVqMX.css +0 -1
- codex/static_root/assets/VWindowItem-QQWUVqMX.css.br +0 -5
- codex/static_root/assets/VWindowItem-QQWUVqMX.css.gz +0 -0
- codex/static_root/assets/admin-D7dHJsJ4.5a7b2f5af603.js.br +0 -0
- codex/static_root/assets/admin-D7dHJsJ4.5a7b2f5af603.js.gz +0 -0
- codex/static_root/assets/admin-D7dHJsJ4.js.br +0 -0
- codex/static_root/assets/admin-D7dHJsJ4.js.gz +0 -0
- codex/static_root/assets/admin-DuXJR8qW.c11eb83c62fe.js +0 -1
- codex/static_root/assets/admin-DuXJR8qW.c11eb83c62fe.js.br +0 -0
- codex/static_root/assets/admin-DuXJR8qW.c11eb83c62fe.js.gz +0 -0
- codex/static_root/assets/admin-DuXJR8qW.js +0 -1
- codex/static_root/assets/admin-DuXJR8qW.js.br +0 -0
- codex/static_root/assets/admin-DuXJR8qW.js.gz +0 -0
- codex/static_root/assets/admin-menu-Y-2f4f-t.7c6bffa811c0.js.br +0 -0
- codex/static_root/assets/admin-menu-Y-2f4f-t.7c6bffa811c0.js.gz +0 -0
- codex/static_root/assets/admin-menu-Y-2f4f-t.js.br +0 -0
- codex/static_root/assets/admin-menu-Y-2f4f-t.js.gz +0 -0
- codex/static_root/assets/admin-settings-button-progress-CX4KtKvA.37ae80a378e4.js.br +0 -0
- codex/static_root/assets/admin-settings-button-progress-CX4KtKvA.37ae80a378e4.js.gz +0 -0
- codex/static_root/assets/admin-settings-button-progress-CX4KtKvA.js.br +0 -0
- codex/static_root/assets/admin-settings-button-progress-CX4KtKvA.js.gz +0 -0
- codex/static_root/assets/browser-CqubhCxg.1e6645d0b01b.js +0 -1
- codex/static_root/assets/browser-CqubhCxg.1e6645d0b01b.js.br +0 -0
- codex/static_root/assets/browser-CqubhCxg.1e6645d0b01b.js.gz +0 -0
- codex/static_root/assets/browser-CqubhCxg.js +0 -1
- codex/static_root/assets/browser-CqubhCxg.js.br +0 -0
- codex/static_root/assets/browser-CqubhCxg.js.gz +0 -0
- codex/static_root/assets/change-password-dialog-CB7sPDF5.74381403a3ef.js +0 -1
- codex/static_root/assets/change-password-dialog-CB7sPDF5.74381403a3ef.js.br +0 -0
- codex/static_root/assets/change-password-dialog-CB7sPDF5.74381403a3ef.js.gz +0 -0
- codex/static_root/assets/change-password-dialog-CB7sPDF5.js +0 -1
- codex/static_root/assets/change-password-dialog-CB7sPDF5.js.br +0 -0
- codex/static_root/assets/change-password-dialog-CB7sPDF5.js.gz +0 -0
- codex/static_root/assets/confirm-dialog-Bc3Bw4Wf.df54617c5796.js.br +0 -0
- codex/static_root/assets/confirm-dialog-Bc3Bw4Wf.df54617c5796.js.gz +0 -0
- codex/static_root/assets/confirm-dialog-Bc3Bw4Wf.js.br +0 -0
- codex/static_root/assets/confirm-dialog-Bc3Bw4Wf.js.gz +0 -0
- codex/static_root/assets/datetime-column-zWcVwgyi.03ad8c8b24a1.js.br +0 -0
- codex/static_root/assets/datetime-column-zWcVwgyi.03ad8c8b24a1.js.gz +0 -0
- codex/static_root/assets/datetime-column-zWcVwgyi.js.br +0 -0
- codex/static_root/assets/datetime-column-zWcVwgyi.js.gz +0 -0
- codex/static_root/assets/filter-DWF4EaH3.e92b5573507a.js +0 -1
- codex/static_root/assets/filter-DWF4EaH3.e92b5573507a.js.br +0 -0
- codex/static_root/assets/filter-DWF4EaH3.e92b5573507a.js.gz +0 -0
- codex/static_root/assets/filter-DWF4EaH3.js +0 -1
- codex/static_root/assets/filter-DWF4EaH3.js.br +0 -0
- codex/static_root/assets/filter-DWF4EaH3.js.gz +0 -0
- codex/static_root/assets/flag-tab-GTA-yaU7.7c095722ebed.js +0 -1
- codex/static_root/assets/flag-tab-GTA-yaU7.7c095722ebed.js.br +0 -0
- codex/static_root/assets/flag-tab-GTA-yaU7.7c095722ebed.js.gz +0 -0
- codex/static_root/assets/flag-tab-GTA-yaU7.js +0 -1
- codex/static_root/assets/flag-tab-GTA-yaU7.js.br +0 -0
- codex/static_root/assets/flag-tab-GTA-yaU7.js.gz +0 -0
- codex/static_root/assets/forwardRefs-CGimG8CQ.b99b41ed1eed.js +0 -1
- codex/static_root/assets/forwardRefs-CGimG8CQ.b99b41ed1eed.js.br +0 -0
- codex/static_root/assets/forwardRefs-CGimG8CQ.b99b41ed1eed.js.gz +0 -0
- codex/static_root/assets/forwardRefs-CGimG8CQ.js +0 -1
- codex/static_root/assets/forwardRefs-CGimG8CQ.js.br +0 -0
- codex/static_root/assets/forwardRefs-CGimG8CQ.js.gz +0 -0
- codex/static_root/assets/forwardRefs-vX-mze-3.cfdcd69926d9.css +0 -1
- codex/static_root/assets/forwardRefs-vX-mze-3.cfdcd69926d9.css.br +0 -0
- codex/static_root/assets/forwardRefs-vX-mze-3.cfdcd69926d9.css.gz +0 -0
- codex/static_root/assets/forwardRefs-vX-mze-3.css +0 -1
- codex/static_root/assets/forwardRefs-vX-mze-3.css.br +0 -0
- codex/static_root/assets/forwardRefs-vX-mze-3.css.gz +0 -0
- codex/static_root/assets/group-tab-BSr4dJJW.e36d5a728ebc.js.br +0 -0
- codex/static_root/assets/group-tab-BSr4dJJW.e36d5a728ebc.js.gz +0 -0
- codex/static_root/assets/group-tab-BSr4dJJW.js.br +0 -0
- codex/static_root/assets/group-tab-BSr4dJJW.js.gz +0 -0
- codex/static_root/assets/http-error-CwCiNlwC.386c711703ef.js +0 -1
- codex/static_root/assets/http-error-CwCiNlwC.386c711703ef.js.br +0 -0
- codex/static_root/assets/http-error-CwCiNlwC.386c711703ef.js.gz +0 -0
- codex/static_root/assets/http-error-CwCiNlwC.js +0 -1
- codex/static_root/assets/http-error-CwCiNlwC.js.br +0 -0
- codex/static_root/assets/http-error-CwCiNlwC.js.gz +0 -0
- codex/static_root/assets/index-DOP9KYca.5d9b48ff6f1a.js +0 -1
- codex/static_root/assets/index-DOP9KYca.5d9b48ff6f1a.js.br +0 -0
- codex/static_root/assets/index-DOP9KYca.5d9b48ff6f1a.js.gz +0 -0
- codex/static_root/assets/index-DOP9KYca.js +0 -1
- codex/static_root/assets/index-DOP9KYca.js.br +0 -0
- codex/static_root/assets/index-DOP9KYca.js.gz +0 -0
- codex/static_root/assets/library-tab-B_PHwUZ-.516218e664f8.js.br +0 -0
- codex/static_root/assets/library-tab-B_PHwUZ-.516218e664f8.js.gz +0 -0
- codex/static_root/assets/library-tab-B_PHwUZ-.js.br +0 -0
- codex/static_root/assets/library-tab-B_PHwUZ-.js.gz +0 -0
- codex/static_root/assets/main-B8_0rUnw.a9be0875ae25.css.br +0 -0
- codex/static_root/assets/main-B8_0rUnw.css.br +0 -0
- codex/static_root/assets/main-BERoK-j2.3915bda15ee5.js +0 -39
- codex/static_root/assets/main-BERoK-j2.3915bda15ee5.js.br +0 -0
- codex/static_root/assets/main-BERoK-j2.3915bda15ee5.js.gz +0 -0
- codex/static_root/assets/main-BERoK-j2.js +0 -39
- codex/static_root/assets/main-BERoK-j2.js.br +0 -0
- codex/static_root/assets/main-BERoK-j2.js.gz +0 -0
- codex/static_root/assets/pager-full-pdf-Bs_Q1Bfa.2408a027dbe1.js +0 -1
- codex/static_root/assets/pager-full-pdf-Bs_Q1Bfa.2408a027dbe1.js.br +0 -0
- codex/static_root/assets/pager-full-pdf-Bs_Q1Bfa.2408a027dbe1.js.gz +0 -0
- codex/static_root/assets/pager-full-pdf-Bs_Q1Bfa.js +0 -1
- codex/static_root/assets/pager-full-pdf-Bs_Q1Bfa.js.br +0 -0
- codex/static_root/assets/pager-full-pdf-Bs_Q1Bfa.js.gz +0 -0
- codex/static_root/assets/pagination-toolbar-CWi6EIET.c440bd1066b0.js.br +0 -0
- codex/static_root/assets/pagination-toolbar-CWi6EIET.c440bd1066b0.js.gz +0 -0
- codex/static_root/assets/pagination-toolbar-CWi6EIET.js.br +0 -0
- codex/static_root/assets/pagination-toolbar-CWi6EIET.js.gz +0 -0
- codex/static_root/assets/pdf-doc-BFFOclVi.b0ec00bfb616.js.br +0 -0
- codex/static_root/assets/pdf-doc-BFFOclVi.b0ec00bfb616.js.gz +0 -0
- codex/static_root/assets/pdf-doc-BFFOclVi.js.br +0 -0
- codex/static_root/assets/pdf-doc-BFFOclVi.js.gz +0 -0
- codex/static_root/assets/reader-DxFZyySj.340be27f9b2d.js.br +0 -0
- codex/static_root/assets/reader-DxFZyySj.340be27f9b2d.js.gz +0 -0
- codex/static_root/assets/reader-DxFZyySj.js.br +0 -0
- codex/static_root/assets/reader-DxFZyySj.js.gz +0 -0
- codex/static_root/assets/relation-chips-C4GQrh_b.f1e80447ddb4.js +0 -1
- codex/static_root/assets/relation-chips-C4GQrh_b.f1e80447ddb4.js.br +0 -0
- codex/static_root/assets/relation-chips-C4GQrh_b.f1e80447ddb4.js.gz +0 -0
- codex/static_root/assets/relation-chips-C4GQrh_b.js +0 -1
- codex/static_root/assets/relation-chips-C4GQrh_b.js.br +0 -0
- codex/static_root/assets/relation-chips-C4GQrh_b.js.gz +0 -0
- codex/static_root/assets/relation-chips-CpiT_4k-.b72d78f512e6.css +0 -1
- codex/static_root/assets/relation-chips-CpiT_4k-.b72d78f512e6.css.br +0 -0
- codex/static_root/assets/relation-chips-CpiT_4k-.b72d78f512e6.css.gz +0 -0
- codex/static_root/assets/relation-chips-CpiT_4k-.css +0 -1
- codex/static_root/assets/relation-chips-CpiT_4k-.css.br +0 -0
- codex/static_root/assets/relation-chips-CpiT_4k-.css.gz +0 -0
- codex/static_root/assets/settings-drawer-BD44Ahju.54110f5e27ec.js.br +0 -0
- codex/static_root/assets/settings-drawer-BD44Ahju.54110f5e27ec.js.gz +0 -0
- codex/static_root/assets/settings-drawer-BD44Ahju.js.br +0 -0
- codex/static_root/assets/settings-drawer-BD44Ahju.js.gz +0 -0
- codex/static_root/assets/settings-drawer-D7bFOc4_.9748ddd58be9.css.br +0 -0
- codex/static_root/assets/settings-drawer-D7bFOc4_.9748ddd58be9.css.gz +0 -0
- codex/static_root/assets/settings-drawer-D7bFOc4_.css.br +0 -0
- codex/static_root/assets/settings-drawer-D7bFOc4_.css.gz +0 -0
- codex/static_root/assets/ssrBoot-_TndNOM6.a99eba568e94.js +0 -1
- codex/static_root/assets/ssrBoot-_TndNOM6.a99eba568e94.js.br +0 -0
- codex/static_root/assets/ssrBoot-_TndNOM6.a99eba568e94.js.gz +0 -0
- codex/static_root/assets/ssrBoot-_TndNOM6.js +0 -1
- codex/static_root/assets/ssrBoot-_TndNOM6.js.br +0 -0
- codex/static_root/assets/ssrBoot-_TndNOM6.js.gz +0 -0
- codex/static_root/assets/stats-tab-Dzy_P00k.ea54237a2011.js +0 -1
- codex/static_root/assets/stats-tab-Dzy_P00k.ea54237a2011.js.br +0 -0
- codex/static_root/assets/stats-tab-Dzy_P00k.ea54237a2011.js.gz +0 -0
- codex/static_root/assets/stats-tab-Dzy_P00k.js +0 -1
- codex/static_root/assets/stats-tab-Dzy_P00k.js.br +0 -0
- codex/static_root/assets/stats-tab-Dzy_P00k.js.gz +0 -0
- codex/static_root/assets/task-tab-CW4DQ3KN.81812f9208e5.css +0 -1
- codex/static_root/assets/task-tab-CW4DQ3KN.81812f9208e5.css.gz +0 -0
- codex/static_root/assets/task-tab-CW4DQ3KN.css +0 -1
- codex/static_root/assets/task-tab-CW4DQ3KN.css.gz +0 -0
- codex/static_root/assets/task-tab-DUpMTPbM.bf11c5676008.js +0 -1
- codex/static_root/assets/task-tab-DUpMTPbM.bf11c5676008.js.br +0 -0
- codex/static_root/assets/task-tab-DUpMTPbM.bf11c5676008.js.gz +0 -0
- codex/static_root/assets/task-tab-DUpMTPbM.js +0 -1
- codex/static_root/assets/task-tab-DUpMTPbM.js.br +0 -0
- codex/static_root/assets/task-tab-DUpMTPbM.js.gz +0 -0
- codex/static_root/assets/unauthorized-BBwsmi0O.19d4882b821d.css +0 -1
- codex/static_root/assets/unauthorized-BBwsmi0O.19d4882b821d.css.br +0 -0
- codex/static_root/assets/unauthorized-BBwsmi0O.19d4882b821d.css.gz +0 -0
- codex/static_root/assets/unauthorized-BBwsmi0O.css +0 -1
- codex/static_root/assets/unauthorized-BBwsmi0O.css.br +0 -0
- codex/static_root/assets/unauthorized-BBwsmi0O.css.gz +0 -0
- codex/static_root/assets/unauthorized-CN4zNUwv.6cef38be7edd.js.br +0 -0
- codex/static_root/assets/unauthorized-CN4zNUwv.6cef38be7edd.js.gz +0 -0
- codex/static_root/assets/unauthorized-CN4zNUwv.js.br +0 -0
- codex/static_root/assets/unauthorized-CN4zNUwv.js.gz +0 -0
- codex/static_root/assets/user-tab-BfK1ySCm.24ed1c97836c.js.br +0 -0
- codex/static_root/assets/user-tab-BfK1ySCm.24ed1c97836c.js.gz +0 -0
- codex/static_root/assets/user-tab-BfK1ySCm.js.br +0 -0
- codex/static_root/assets/user-tab-BfK1ySCm.js.gz +0 -0
- codex/static_root/manifest.c30398ff70cf.json +0 -760
- codex/static_root/manifest.c30398ff70cf.json.br +0 -0
- codex/static_root/manifest.c30398ff70cf.json.gz +0 -0
- {codex-1.8.13.dist-info → codex-1.8.14.dist-info}/WHEEL +0 -0
- {codex-1.8.13.dist-info → codex-1.8.14.dist-info}/entry_points.txt +0 -0
codex/static_root/assets/{pdf-doc-BFFOclVi.b0ec00bfb616.js → pdf-doc-CAzVDc80.440339054422.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{cS as $e,aU as $s,r as lm,t as dm,c as Um,q as cc,aV as jQ,bm as mh,v as PF,F as Zm,A as tm,a6 as SR,b as TR,H as XR,n as Fm,bj as cm,cr as pR,_ as Wm,C as am,E as Vm,w as sm,y as nm,d as Qm,al as uR,cT as im}from"./main-BERoK-j2.js";var Rm=Object.defineProperty,Mh=U=>{throw TypeError(U)},Nm=(U,l,d)=>l in U?Rm(U,l,{enumerable:!0,configurable:!0,writable:!0,value:d}):U[l]=d,v=(U,l,d)=>Nm(U,typeof l!="symbol"?l+"":l,d),VR=(U,l,d)=>l.has(U)||Mh("Cannot "+d),W=(U,l,d)=>(VR(U,l,"read from private field"),d?d.call(U):l.get(U)),e=(U,l,d)=>l.has(U)?Mh("Cannot add the same private member more than once"):l instanceof WeakSet?l.add(U):l.set(U,d),R=(U,l,d,Z)=>(VR(U,l,"write to private field"),l.set(U,d),d),h=(U,l,d)=>(VR(U,l,"access private method"),d),Td=(U,l,d,Z)=>({set _(t){R(U,l,t)},get _(){return W(U,l,Z)}}),hm={9306:((U,l,d)=>{var Z=d(4901),t=d(6823),F=TypeError;U.exports=function(c){if(Z(c))return c;throw new F(t(c)+" is not a function")}}),3506:((U,l,d)=>{var Z=d(3925),t=String,F=TypeError;U.exports=function(c){if(Z(c))return c;throw new F("Can't set "+t(c)+" as a prototype")}}),7080:((U,l,d)=>{var Z=d(4402).has;U.exports=function(t){return Z(t),t}}),679:((U,l,d)=>{var Z=d(1625),t=TypeError;U.exports=function(F,c){if(Z(c,F))return F;throw new t("Incorrect invocation")}}),8551:((U,l,d)=>{var Z=d(34),t=String,F=TypeError;U.exports=function(c){if(Z(c))return c;throw new F(t(c)+" is not an object")}}),7811:(U=>{U.exports=typeof ArrayBuffer<"u"&&typeof DataView<"u"}),7394:((U,l,d)=>{var Z=d(4576),t=d(6706),F=d(2195),c=Z.ArrayBuffer,a=Z.TypeError;U.exports=c&&t(c.prototype,"byteLength","get")||function(V){if(F(V)!=="ArrayBuffer")throw new a("ArrayBuffer expected");return V.byteLength}}),3238:((U,l,d)=>{var Z=d(4576),t=d(7476),F=d(7394),c=Z.ArrayBuffer,a=c&&c.prototype,V=a&&t(a.slice);U.exports=function(s){if(F(s)!==0||!V)return!1;try{return V(s,0,0),!1}catch{return!0}}}),5169:((U,l,d)=>{var Z=d(3238),t=TypeError;U.exports=function(F){if(Z(F))throw new t("ArrayBuffer is detached");return F}}),5636:((U,l,d)=>{var Z=d(4576),t=d(9504),F=d(6706),c=d(7696),a=d(5169),V=d(7394),s=d(4483),n=d(1548),Q=Z.structuredClone,i=Z.ArrayBuffer,N=Z.DataView,b=Math.min,m=i.prototype,M=N.prototype,J=t(m.slice),S=F(m,"resizable","get"),G=F(m,"maxByteLength","get"),T=t(M.getInt8),p=t(M.setInt8);U.exports=(n||s)&&function(u,Y,o){var X=V(u),B=Y===void 0?X:c(Y),y=!S||!S(u),E;if(a(u),n&&(u=Q(u,{transfer:[u]}),X===B&&(o||y)))return u;if(X>=B&&(!o||y))E=J(u,0,B);else{var D=o&&!y&&G?{maxByteLength:G(u)}:void 0;E=new i(B,D);for(var w=new N(u),I=new N(E),L=b(B,X),H=0;H<L;H++)p(I,H,T(w,H))}return n||s(u),E}}),4644:((U,l,d)=>{var Z=d(7811),t=d(3724),F=d(4576),c=d(4901),a=d(34),V=d(9297),s=d(6955),n=d(6823),Q=d(6699),i=d(6840),N=d(2106),b=d(1625),m=d(2787),M=d(2967),J=d(8227),S=d(3392),G=d(1181),T=G.enforce,p=G.get,u=F.Int8Array,Y=u&&u.prototype,o=F.Uint8ClampedArray,X=o&&o.prototype,B=u&&m(u),y=Y&&m(Y),E=Object.prototype,D=F.TypeError,w=J("toStringTag"),I=S("TYPED_ARRAY_TAG"),L="TypedArrayConstructor",H=Z&&!!M&&s(F.opera)!=="Opera",f=!1,Vl,Ml,Jl,il={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},hl={BigInt64Array:8,BigUint64Array:8},MU=function(A){if(!a(A))return!1;var pl=s(A);return pl==="DataView"||V(il,pl)||V(hl,pl)},JU=function(A){var pl=m(A);if(a(pl)){var Hl=p(pl);return Hl&&V(Hl,L)?Hl[L]:JU(pl)}},C=function(A){if(!a(A))return!1;var pl=s(A);return V(il,pl)||V(hl,pl)},z=function(A){if(C(A))return A;throw new D("Target is not a typed array")},r=function(A){if(c(A)&&(!M||b(B,A)))return A;throw new D(n(A)+" is not a typed array constructor")},$=function(A,pl,Hl,GU){if(t){if(Hl)for(var md in il){var cd=F[md];if(cd&&V(cd.prototype,A))try{delete cd.prototype[A]}catch{try{cd.prototype[A]=pl}catch{}}}(!y[A]||Hl)&&i(y,A,Hl?pl:H&&Y[A]||pl,GU)}},bl=function(A,pl,Hl){var GU,md;if(t){if(M){if(Hl){for(GU in il)if(md=F[GU],md&&V(md,A))try{delete md[A]}catch{}}if(!B[A]||Hl)try{return i(B,A,Hl?pl:H&&B[A]||pl)}catch{}else return}for(GU in il)md=F[GU],md&&(!md[A]||Hl)&&i(md,A,pl)}};for(Vl in il)Ml=F[Vl],Jl=Ml&&Ml.prototype,Jl?T(Jl)[L]=Ml:H=!1;for(Vl in hl)Ml=F[Vl],Jl=Ml&&Ml.prototype,Jl&&(T(Jl)[L]=Ml);if((!H||!c(B)||B===Function.prototype)&&(B=function(){throw new D("Incorrect invocation")},H))for(Vl in il)F[Vl]&&M(F[Vl],B);if((!H||!y||y===E)&&(y=B.prototype,H))for(Vl in il)F[Vl]&&M(F[Vl].prototype,y);if(H&&m(X)!==y&&M(X,y),t&&!V(y,w)){f=!0,N(y,w,{configurable:!0,get:function(){return a(this)?this[I]:void 0}});for(Vl in il)F[Vl]&&Q(F[Vl],I,Vl)}U.exports={NATIVE_ARRAY_BUFFER_VIEWS:H,TYPED_ARRAY_TAG:f&&I,aTypedArray:z,aTypedArrayConstructor:r,exportTypedArrayMethod:$,exportTypedArrayStaticMethod:bl,getTypedArrayConstructor:JU,isView:MU,isTypedArray:C,TypedArray:B,TypedArrayPrototype:y}}),5370:((U,l,d)=>{var Z=d(6198);U.exports=function(t,F,c){for(var a=0,V=arguments.length>2?c:Z(F),s=new t(V);V>a;)s[a]=F[a++];return s}}),9617:((U,l,d)=>{var Z=d(5397),t=d(5610),F=d(6198),c=function(a){return function(V,s,n){var Q=Z(V),i=F(Q);if(i===0)return!a&&-1;var N=t(n,i),b;if(a&&s!==s){for(;i>N;)if(b=Q[N++],b!==b)return!0}else for(;i>N;N++)if((a||N in Q)&&Q[N]===s)return a||N||0;return!a&&-1}};U.exports={includes:c(!0),indexOf:c(!1)}}),4527:((U,l,d)=>{var Z=d(3724),t=d(4376),F=TypeError,c=Object.getOwnPropertyDescriptor,a=Z&&!(function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(V){return V instanceof TypeError}})();U.exports=a?function(V,s){if(t(V)&&!c(V,"length").writable)throw new F("Cannot set read only .length");return V.length=s}:function(V,s){return V.length=s}}),7680:((U,l,d)=>{var Z=d(9504);U.exports=Z([].slice)}),7628:((U,l,d)=>{var Z=d(6198);U.exports=function(t,F){for(var c=Z(t),a=new F(c),V=0;V<c;V++)a[V]=t[c-V-1];return a}}),9928:((U,l,d)=>{var Z=d(6198),t=d(1291),F=RangeError;U.exports=function(c,a,V,s){var n=Z(c),Q=t(V),i=Q<0?n+Q:Q;if(i>=n||i<0)throw new F("Incorrect index");for(var N=new a(n),b=0;b<n;b++)N[b]=b===i?s:c[b];return N}}),6319:((U,l,d)=>{var Z=d(8551),t=d(9539);U.exports=function(F,c,a,V){try{return V?c(Z(a)[0],a[1]):c(a)}catch(s){t(F,"throw",s)}}}),2195:((U,l,d)=>{var Z=d(9504),t=Z({}.toString),F=Z("".slice);U.exports=function(c){return F(t(c),8,-1)}}),6955:((U,l,d)=>{var Z=d(2140),t=d(4901),F=d(2195),c=d(8227),a=c("toStringTag"),V=Object,s=F((function(){return arguments})())==="Arguments",n=function(Q,i){try{return Q[i]}catch{}};U.exports=Z?F:function(Q){var i,N,b;return Q===void 0?"Undefined":Q===null?"Null":typeof(N=n(i=V(Q),a))=="string"?N:s?F(i):(b=F(i))==="Object"&&t(i.callee)?"Arguments":b}}),7740:((U,l,d)=>{var Z=d(9297),t=d(5031),F=d(7347),c=d(4913);U.exports=function(a,V,s){for(var n=t(V),Q=c.f,i=F.f,N=0;N<n.length;N++){var b=n[N];!Z(a,b)&&!(s&&Z(s,b))&&Q(a,b,i(V,b))}}}),2211:((U,l,d)=>{var Z=d(9039);U.exports=!Z(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})}),2529:(U=>{U.exports=function(l,d){return{value:l,done:d}}}),6699:((U,l,d)=>{var Z=d(3724),t=d(4913),F=d(6980);U.exports=Z?function(c,a,V){return t.f(c,a,F(1,V))}:function(c,a,V){return c[a]=V,c}}),6980:(U=>{U.exports=function(l,d){return{enumerable:!(l&1),configurable:!(l&2),writable:!(l&4),value:d}}}),4659:((U,l,d)=>{var Z=d(3724),t=d(4913),F=d(6980);U.exports=function(c,a,V){Z?t.f(c,a,F(0,V)):c[a]=V}}),2106:((U,l,d)=>{var Z=d(283),t=d(4913);U.exports=function(F,c,a){return a.get&&Z(a.get,c,{getter:!0}),a.set&&Z(a.set,c,{setter:!0}),t.f(F,c,a)}}),6840:((U,l,d)=>{var Z=d(4901),t=d(4913),F=d(283),c=d(9433);U.exports=function(a,V,s,n){n||(n={});var Q=n.enumerable,i=n.name!==void 0?n.name:V;if(Z(s)&&F(s,i,n),n.global)Q?a[V]=s:c(V,s);else{try{n.unsafe?a[V]&&(Q=!0):delete a[V]}catch{}Q?a[V]=s:t.f(a,V,{value:s,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return a}}),6279:((U,l,d)=>{var Z=d(6840);U.exports=function(t,F,c){for(var a in F)Z(t,a,F[a],c);return t}}),9433:((U,l,d)=>{var Z=d(4576),t=Object.defineProperty;U.exports=function(F,c){try{t(Z,F,{value:c,configurable:!0,writable:!0})}catch{Z[F]=c}return c}}),3724:((U,l,d)=>{var Z=d(9039);U.exports=!Z(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})}),4483:((U,l,d)=>{var Z=d(4576),t=d(9429),F=d(1548),c=Z.structuredClone,a=Z.ArrayBuffer,V=Z.MessageChannel,s=!1,n,Q,i,N;if(F)s=function(b){c(b,{transfer:[b]})};else if(a)try{V||(n=t("worker_threads"),n&&(V=n.MessageChannel)),V&&(Q=new V,i=new a(2),N=function(b){Q.port1.postMessage(null,[b])},i.byteLength===2&&(N(i),i.byteLength===0&&(s=N)))}catch{}U.exports=s}),4055:((U,l,d)=>{var Z=d(4576),t=d(34),F=Z.document,c=t(F)&&t(F.createElement);U.exports=function(a){return c?F.createElement(a):{}}}),6837:(U=>{var l=TypeError,d=9007199254740991;U.exports=function(Z){if(Z>d)throw l("Maximum allowed index exceeded");return Z}}),5002:(U=>{U.exports={IndexSizeError:{s:"INDEX_SIZE_ERR",c:1,m:1},DOMStringSizeError:{s:"DOMSTRING_SIZE_ERR",c:2,m:0},HierarchyRequestError:{s:"HIERARCHY_REQUEST_ERR",c:3,m:1},WrongDocumentError:{s:"WRONG_DOCUMENT_ERR",c:4,m:1},InvalidCharacterError:{s:"INVALID_CHARACTER_ERR",c:5,m:1},NoDataAllowedError:{s:"NO_DATA_ALLOWED_ERR",c:6,m:0},NoModificationAllowedError:{s:"NO_MODIFICATION_ALLOWED_ERR",c:7,m:1},NotFoundError:{s:"NOT_FOUND_ERR",c:8,m:1},NotSupportedError:{s:"NOT_SUPPORTED_ERR",c:9,m:1},InUseAttributeError:{s:"INUSE_ATTRIBUTE_ERR",c:10,m:1},InvalidStateError:{s:"INVALID_STATE_ERR",c:11,m:1},SyntaxError:{s:"SYNTAX_ERR",c:12,m:1},InvalidModificationError:{s:"INVALID_MODIFICATION_ERR",c:13,m:1},NamespaceError:{s:"NAMESPACE_ERR",c:14,m:1},InvalidAccessError:{s:"INVALID_ACCESS_ERR",c:15,m:1},ValidationError:{s:"VALIDATION_ERR",c:16,m:0},TypeMismatchError:{s:"TYPE_MISMATCH_ERR",c:17,m:1},SecurityError:{s:"SECURITY_ERR",c:18,m:1},NetworkError:{s:"NETWORK_ERR",c:19,m:1},AbortError:{s:"ABORT_ERR",c:20,m:1},URLMismatchError:{s:"URL_MISMATCH_ERR",c:21,m:1},QuotaExceededError:{s:"QUOTA_EXCEEDED_ERR",c:22,m:1},TimeoutError:{s:"TIMEOUT_ERR",c:23,m:1},InvalidNodeTypeError:{s:"INVALID_NODE_TYPE_ERR",c:24,m:1},DataCloneError:{s:"DATA_CLONE_ERR",c:25,m:1}}}),8727:(U=>{U.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]}),6193:((U,l,d)=>{var Z=d(4215);U.exports=Z==="NODE"}),2839:((U,l,d)=>{var Z=d(4576),t=Z.navigator,F=t&&t.userAgent;U.exports=F?String(F):""}),9519:((U,l,d)=>{var Z=d(4576),t=d(2839),F=Z.process,c=Z.Deno,a=F&&F.versions||c&&c.version,V=a&&a.v8,s,n;V&&(s=V.split("."),n=s[0]>0&&s[0]<4?1:+(s[0]+s[1])),!n&&t&&(s=t.match(/Edge\/(\d+)/),(!s||s[1]>=74)&&(s=t.match(/Chrome\/(\d+)/),s&&(n=+s[1]))),U.exports=n}),4215:((U,l,d)=>{var Z=d(4576),t=d(2839),F=d(2195),c=function(a){return t.slice(0,a.length)===a};U.exports=(function(){return c("Bun/")?"BUN":c("Cloudflare-Workers")?"CLOUDFLARE":c("Deno/")?"DENO":c("Node.js/")?"NODE":Z.Bun&&typeof Bun.version=="string"?"BUN":Z.Deno&&typeof Deno.version=="object"?"DENO":F(Z.process)==="process"?"NODE":Z.window&&Z.document?"BROWSER":"REST"})()}),8574:((U,l,d)=>{var Z=d(9504),t=Error,F=Z("".replace),c=(function(s){return String(new t(s).stack)})("zxcasd"),a=/\n\s*at [^:]*:[^\n]*/,V=a.test(c);U.exports=function(s,n){if(V&&typeof s=="string"&&!t.prepareStackTrace)for(;n--;)s=F(s,a,"");return s}}),6518:((U,l,d)=>{var Z=d(4576),t=d(7347).f,F=d(6699),c=d(6840),a=d(9433),V=d(7740),s=d(2796);U.exports=function(n,Q){var i=n.target,N=n.global,b=n.stat,m,M,J,S,G,T;if(N?M=Z:b?M=Z[i]||a(i,{}):M=Z[i]&&Z[i].prototype,M)for(J in Q){if(G=Q[J],n.dontCallGetSet?(T=t(M,J),S=T&&T.value):S=M[J],m=s(N?J:i+(b?".":"#")+J,n.forced),!m&&S!==void 0){if(typeof G==typeof S)continue;V(G,S)}(n.sham||S&&S.sham)&&F(G,"sham",!0),c(M,J,G,n)}}}),9039:(U=>{U.exports=function(l){try{return!!l()}catch{return!0}}}),8745:((U,l,d)=>{var Z=d(616),t=Function.prototype,F=t.apply,c=t.call;U.exports=typeof Reflect=="object"&&Reflect.apply||(Z?c.bind(F):function(){return c.apply(F,arguments)})}),6080:((U,l,d)=>{var Z=d(7476),t=d(9306),F=d(616),c=Z(Z.bind);U.exports=function(a,V){return t(a),V===void 0?a:F?c(a,V):function(){return a.apply(V,arguments)}}}),616:((U,l,d)=>{var Z=d(9039);U.exports=!Z(function(){var t=(function(){}).bind();return typeof t!="function"||t.hasOwnProperty("prototype")})}),9565:((U,l,d)=>{var Z=d(616),t=Function.prototype.call;U.exports=Z?t.bind(t):function(){return t.apply(t,arguments)}}),350:((U,l,d)=>{var Z=d(3724),t=d(9297),F=Function.prototype,c=Z&&Object.getOwnPropertyDescriptor,a=t(F,"name"),V=a&&(function(){}).name==="something",s=a&&(!Z||Z&&c(F,"name").configurable);U.exports={EXISTS:a,PROPER:V,CONFIGURABLE:s}}),6706:((U,l,d)=>{var Z=d(9504),t=d(9306);U.exports=function(F,c,a){try{return Z(t(Object.getOwnPropertyDescriptor(F,c)[a]))}catch{}}}),7476:((U,l,d)=>{var Z=d(2195),t=d(9504);U.exports=function(F){if(Z(F)==="Function")return t(F)}}),9504:((U,l,d)=>{var Z=d(616),t=Function.prototype,F=t.call,c=Z&&t.bind.bind(F,F);U.exports=Z?c:function(a){return function(){return F.apply(a,arguments)}}}),9429:((U,l,d)=>{var Z=d(4576),t=d(6193);U.exports=function(F){if(t){try{return Z.process.getBuiltinModule(F)}catch{}try{return Function('return require("'+F+'")')()}catch{}}}}),7751:((U,l,d)=>{var Z=d(4576),t=d(4901),F=function(c){return t(c)?c:void 0};U.exports=function(c,a){return arguments.length<2?F(Z[c]):Z[c]&&Z[c][a]}}),1767:(U=>{U.exports=function(l){return{iterator:l,next:l.next,done:!1}}}),8646:((U,l,d)=>{var Z=d(9565),t=d(8551),F=d(1767),c=d(851);U.exports=function(a,V){(!V||typeof a!="string")&&t(a);var s=c(a);return F(t(s!==void 0?Z(s,a):a))}}),851:((U,l,d)=>{var Z=d(6955),t=d(5966),F=d(4117),c=d(6269),a=d(8227),V=a("iterator");U.exports=function(s){if(!F(s))return t(s,V)||t(s,"@@iterator")||c[Z(s)]}}),81:((U,l,d)=>{var Z=d(9565),t=d(9306),F=d(8551),c=d(6823),a=d(851),V=TypeError;U.exports=function(s,n){var Q=arguments.length<2?a(s):n;if(t(Q))return F(Z(Q,s));throw new V(c(s)+" is not iterable")}}),5966:((U,l,d)=>{var Z=d(9306),t=d(4117);U.exports=function(F,c){var a=F[c];return t(a)?void 0:Z(a)}}),3789:((U,l,d)=>{var Z=d(9306),t=d(8551),F=d(9565),c=d(1291),a=d(1767),V="Invalid size",s=RangeError,n=TypeError,Q=Math.max,i=function(N,b){this.set=N,this.size=Q(b,0),this.has=Z(N.has),this.keys=Z(N.keys)};i.prototype={getIterator:function(){return a(t(F(this.keys,this.set)))},includes:function(N){return F(this.has,this.set,N)}},U.exports=function(N){t(N);var b=+N.size;if(b!==b)throw new n(V);var m=c(b);if(m<0)throw new s(V);return new i(N,m)}}),4576:(function(U){var l=function(d){return d&&d.Math===Math&&d};U.exports=l(typeof globalThis=="object"&&globalThis)||l(typeof window=="object"&&window)||l(typeof self=="object"&&self)||l(typeof global=="object"&&global)||l(typeof this=="object"&&this)||(function(){return this})()||Function("return this")()}),9297:((U,l,d)=>{var Z=d(9504),t=d(8981),F=Z({}.hasOwnProperty);U.exports=Object.hasOwn||function(c,a){return F(t(c),a)}}),421:(U=>{U.exports={}}),397:((U,l,d)=>{var Z=d(7751);U.exports=Z("document","documentElement")}),5917:((U,l,d)=>{var Z=d(3724),t=d(9039),F=d(4055);U.exports=!Z&&!t(function(){return Object.defineProperty(F("div"),"a",{get:function(){return 7}}).a!==7})}),7055:((U,l,d)=>{var Z=d(9504),t=d(9039),F=d(2195),c=Object,a=Z("".split);U.exports=t(function(){return!c("z").propertyIsEnumerable(0)})?function(V){return F(V)==="String"?a(V,""):c(V)}:c}),3167:((U,l,d)=>{var Z=d(4901),t=d(34),F=d(2967);U.exports=function(c,a,V){var s,n;return F&&Z(s=a.constructor)&&s!==V&&t(n=s.prototype)&&n!==V.prototype&&F(c,n),c}}),3706:((U,l,d)=>{var Z=d(9504),t=d(4901),F=d(7629),c=Z(Function.toString);t(F.inspectSource)||(F.inspectSource=function(a){return c(a)}),U.exports=F.inspectSource}),1181:((U,l,d)=>{var Z=d(8622),t=d(4576),F=d(34),c=d(6699),a=d(9297),V=d(7629),s=d(6119),n=d(421),Q="Object already initialized",i=t.TypeError,N=t.WeakMap,b,m,M,J=function(p){return M(p)?m(p):b(p,{})},S=function(p){return function(u){var Y;if(!F(u)||(Y=m(u)).type!==p)throw new i("Incompatible receiver, "+p+" required");return Y}};if(Z||V.state){var G=V.state||(V.state=new N);G.get=G.get,G.has=G.has,G.set=G.set,b=function(p,u){if(G.has(p))throw new i(Q);return u.facade=p,G.set(p,u),u},m=function(p){return G.get(p)||{}},M=function(p){return G.has(p)}}else{var T=s("state");n[T]=!0,b=function(p,u){if(a(p,T))throw new i(Q);return u.facade=p,c(p,T,u),u},m=function(p){return a(p,T)?p[T]:{}},M=function(p){return a(p,T)}}U.exports={set:b,get:m,has:M,enforce:J,getterFor:S}}),4209:((U,l,d)=>{var Z=d(8227),t=d(6269),F=Z("iterator"),c=Array.prototype;U.exports=function(a){return a!==void 0&&(t.Array===a||c[F]===a)}}),4376:((U,l,d)=>{var Z=d(2195);U.exports=Array.isArray||function(t){return Z(t)==="Array"}}),1108:((U,l,d)=>{var Z=d(6955);U.exports=function(t){var F=Z(t);return F==="BigInt64Array"||F==="BigUint64Array"}}),4901:(U=>{var l=typeof document=="object"&&document.all;U.exports=typeof l>"u"&&l!==void 0?function(d){return typeof d=="function"||d===l}:function(d){return typeof d=="function"}}),2796:((U,l,d)=>{var Z=d(9039),t=d(4901),F=/#|\.prototype\./,c=function(Q,i){var N=V[a(Q)];return N===n?!0:N===s?!1:t(i)?Z(i):!!i},a=c.normalize=function(Q){return String(Q).replace(F,".").toLowerCase()},V=c.data={},s=c.NATIVE="N",n=c.POLYFILL="P";U.exports=c}),4117:(U=>{U.exports=function(l){return l==null}}),34:((U,l,d)=>{var Z=d(4901);U.exports=function(t){return typeof t=="object"?t!==null:Z(t)}}),3925:((U,l,d)=>{var Z=d(34);U.exports=function(t){return Z(t)||t===null}}),6395:(U=>{U.exports=!1}),757:((U,l,d)=>{var Z=d(7751),t=d(4901),F=d(1625),c=d(7040),a=Object;U.exports=c?function(V){return typeof V=="symbol"}:function(V){var s=Z("Symbol");return t(s)&&F(s.prototype,a(V))}}),507:((U,l,d)=>{var Z=d(9565);U.exports=function(t,F,c){for(var a=c?t:t.iterator,V=t.next,s,n;!(s=Z(V,a)).done;)if(n=F(s.value),n!==void 0)return n}}),2652:((U,l,d)=>{var Z=d(6080),t=d(9565),F=d(8551),c=d(6823),a=d(4209),V=d(6198),s=d(1625),n=d(81),Q=d(851),i=d(9539),N=TypeError,b=function(M,J){this.stopped=M,this.result=J},m=b.prototype;U.exports=function(M,J,S){var G=S&&S.that,T=!!(S&&S.AS_ENTRIES),p=!!(S&&S.IS_RECORD),u=!!(S&&S.IS_ITERATOR),Y=!!(S&&S.INTERRUPTED),o=Z(J,G),X,B,y,E,D,w,I,L=function(f){return X&&i(X,"normal",f),new b(!0,f)},H=function(f){return T?(F(f),Y?o(f[0],f[1],L):o(f[0],f[1])):Y?o(f,L):o(f)};if(p)X=M.iterator;else if(u)X=M;else{if(B=Q(M),!B)throw new N(c(M)+" is not iterable");if(a(B)){for(y=0,E=V(M);E>y;y++)if(D=H(M[y]),D&&s(m,D))return D;return new b(!1)}X=n(M,B)}for(w=p?M.next:X.next;!(I=t(w,X)).done;){try{D=H(I.value)}catch(f){i(X,"throw",f)}if(typeof D=="object"&&D&&s(m,D))return D}return new b(!1)}}),9539:((U,l,d)=>{var Z=d(9565),t=d(8551),F=d(5966);U.exports=function(c,a,V){var s,n;t(c);try{if(s=F(c,"return"),!s){if(a==="throw")throw V;return V}s=Z(s,c)}catch(Q){n=!0,s=Q}if(a==="throw")throw V;if(n)throw s;return t(s),V}}),9462:((U,l,d)=>{var Z=d(9565),t=d(2360),F=d(6699),c=d(6279),a=d(8227),V=d(1181),s=d(5966),n=d(7657).IteratorPrototype,Q=d(2529),i=d(9539),N=a("toStringTag"),b="IteratorHelper",m="WrapForValidIterator",M=V.set,J=function(T){var p=V.getterFor(T?m:b);return c(t(n),{next:function(){var u=p(this);if(T)return u.nextHandler();try{var Y=u.done?void 0:u.nextHandler();return Q(Y,u.done)}catch(o){throw u.done=!0,o}},return:function(){var u=p(this),Y=u.iterator;if(u.done=!0,T){var o=s(Y,"return");return o?Z(o,Y):Q(void 0,!0)}if(u.inner)try{i(u.inner.iterator,"normal")}catch(X){return i(Y,"throw",X)}return Y&&i(Y,"normal"),Q(void 0,!0)}})},S=J(!0),G=J(!1);F(G,N,"Iterator Helper"),U.exports=function(T,p){var u=function(Y,o){o?(o.iterator=Y.iterator,o.next=Y.next):o=Y,o.type=p?m:b,o.nextHandler=T,o.counter=0,o.done=!1,M(this,o)};return u.prototype=p?S:G,u}}),713:((U,l,d)=>{var Z=d(9565),t=d(9306),F=d(8551),c=d(1767),a=d(9462),V=d(6319),s=a(function(){var n=this.iterator,Q=F(Z(this.next,n)),i=this.done=!!Q.done;if(!i)return V(n,this.mapper,[Q.value,this.counter++],!0)});U.exports=function(n){return F(this),t(n),new s(c(this),{mapper:n})}}),7657:((U,l,d)=>{var Z=d(9039),t=d(4901),F=d(34),c=d(2360),a=d(2787),V=d(6840),s=d(8227),n=d(6395),Q=s("iterator"),i=!1,N,b,m;[].keys&&(m=[].keys(),"next"in m?(b=a(a(m)),b!==Object.prototype&&(N=b)):i=!0);var M=!F(N)||Z(function(){var J={};return N[Q].call(J)!==J});M?N={}:n&&(N=c(N)),t(N[Q])||V(N,Q,function(){return this}),U.exports={IteratorPrototype:N,BUGGY_SAFARI_ITERATORS:i}}),6269:(U=>{U.exports={}}),6198:((U,l,d)=>{var Z=d(8014);U.exports=function(t){return Z(t.length)}}),283:((U,l,d)=>{var Z=d(9504),t=d(9039),F=d(4901),c=d(9297),a=d(3724),V=d(350).CONFIGURABLE,s=d(3706),n=d(1181),Q=n.enforce,i=n.get,N=String,b=Object.defineProperty,m=Z("".slice),M=Z("".replace),J=Z([].join),S=a&&!t(function(){return b(function(){},"length",{value:8}).length!==8}),G=String(String).split("String"),T=U.exports=function(p,u,Y){m(N(u),0,7)==="Symbol("&&(u="["+M(N(u),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),Y&&Y.getter&&(u="get "+u),Y&&Y.setter&&(u="set "+u),(!c(p,"name")||V&&p.name!==u)&&(a?b(p,"name",{value:u,configurable:!0}):p.name=u),S&&Y&&c(Y,"arity")&&p.length!==Y.arity&&b(p,"length",{value:Y.arity});try{Y&&c(Y,"constructor")&&Y.constructor?a&&b(p,"prototype",{writable:!1}):p.prototype&&(p.prototype=void 0)}catch{}var o=Q(p);return c(o,"source")||(o.source=J(G,typeof u=="string"?u:"")),p};Function.prototype.toString=T(function(){return F(this)&&i(this).source||s(this)},"toString")}),741:(U=>{var l=Math.ceil,d=Math.floor;U.exports=Math.trunc||function(Z){var t=+Z;return(t>0?d:l)(t)}}),6043:((U,l,d)=>{var Z=d(9306),t=TypeError,F=function(c){var a,V;this.promise=new c(function(s,n){if(a!==void 0||V!==void 0)throw new t("Bad Promise constructor");a=s,V=n}),this.resolve=Z(a),this.reject=Z(V)};U.exports.f=function(c){return new F(c)}}),2603:((U,l,d)=>{var Z=d(655);U.exports=function(t,F){return t===void 0?arguments.length<2?"":F:Z(t)}}),4149:(U=>{var l=RangeError;U.exports=function(d){if(d===d)return d;throw new l("NaN is not allowed")}}),2360:((U,l,d)=>{var Z=d(8551),t=d(6801),F=d(8727),c=d(421),a=d(397),V=d(4055),s=d(6119),n=">",Q="<",i="prototype",N="script",b=s("IE_PROTO"),m=function(){},M=function(p){return Q+N+n+p+Q+"/"+N+n},J=function(p){p.write(M("")),p.close();var u=p.parentWindow.Object;return p=null,u},S=function(){var p=V("iframe"),u="java"+N+":",Y;return p.style.display="none",a.appendChild(p),p.src=String(u),Y=p.contentWindow.document,Y.open(),Y.write(M("document.F=Object")),Y.close(),Y.F},G,T=function(){try{G=new ActiveXObject("htmlfile")}catch{}T=typeof document<"u"?document.domain&&G?J(G):S():J(G);for(var p=F.length;p--;)delete T[i][F[p]];return T()};c[b]=!0,U.exports=Object.create||function(p,u){var Y;return p!==null?(m[i]=Z(p),Y=new m,m[i]=null,Y[b]=p):Y=T(),u===void 0?Y:t.f(Y,u)}}),6801:((U,l,d)=>{var Z=d(3724),t=d(8686),F=d(4913),c=d(8551),a=d(5397),V=d(1072);l.f=Z&&!t?Object.defineProperties:function(s,n){c(s);for(var Q=a(n),i=V(n),N=i.length,b=0,m;N>b;)F.f(s,m=i[b++],Q[m]);return s}}),4913:((U,l,d)=>{var Z=d(3724),t=d(5917),F=d(8686),c=d(8551),a=d(6969),V=TypeError,s=Object.defineProperty,n=Object.getOwnPropertyDescriptor,Q="enumerable",i="configurable",N="writable";l.f=Z?F?function(b,m,M){if(c(b),m=a(m),c(M),typeof b=="function"&&m==="prototype"&&"value"in M&&N in M&&!M[N]){var J=n(b,m);J&&J[N]&&(b[m]=M.value,M={configurable:i in M?M[i]:J[i],enumerable:Q in M?M[Q]:J[Q],writable:!1})}return s(b,m,M)}:s:function(b,m,M){if(c(b),m=a(m),c(M),t)try{return s(b,m,M)}catch{}if("get"in M||"set"in M)throw new V("Accessors not supported");return"value"in M&&(b[m]=M.value),b}}),7347:((U,l,d)=>{var Z=d(3724),t=d(9565),F=d(8773),c=d(6980),a=d(5397),V=d(6969),s=d(9297),n=d(5917),Q=Object.getOwnPropertyDescriptor;l.f=Z?Q:function(i,N){if(i=a(i),N=V(N),n)try{return Q(i,N)}catch{}if(s(i,N))return c(!t(F.f,i,N),i[N])}}),8480:((U,l,d)=>{var Z=d(1828),t=d(8727),F=t.concat("length","prototype");l.f=Object.getOwnPropertyNames||function(c){return Z(c,F)}}),3717:((U,l)=>{l.f=Object.getOwnPropertySymbols}),2787:((U,l,d)=>{var Z=d(9297),t=d(4901),F=d(8981),c=d(6119),a=d(2211),V=c("IE_PROTO"),s=Object,n=s.prototype;U.exports=a?s.getPrototypeOf:function(Q){var i=F(Q);if(Z(i,V))return i[V];var N=i.constructor;return t(N)&&i instanceof N?N.prototype:i instanceof s?n:null}}),1625:((U,l,d)=>{var Z=d(9504);U.exports=Z({}.isPrototypeOf)}),1828:((U,l,d)=>{var Z=d(9504),t=d(9297),F=d(5397),c=d(9617).indexOf,a=d(421),V=Z([].push);U.exports=function(s,n){var Q=F(s),i=0,N=[],b;for(b in Q)!t(a,b)&&t(Q,b)&&V(N,b);for(;n.length>i;)t(Q,b=n[i++])&&(~c(N,b)||V(N,b));return N}}),1072:((U,l,d)=>{var Z=d(1828),t=d(8727);U.exports=Object.keys||function(F){return Z(F,t)}}),8773:((U,l)=>{var d={}.propertyIsEnumerable,Z=Object.getOwnPropertyDescriptor,t=Z&&!d.call({1:2},1);l.f=t?function(F){var c=Z(this,F);return!!c&&c.enumerable}:d}),2967:((U,l,d)=>{var Z=d(6706),t=d(34),F=d(7750),c=d(3506);U.exports=Object.setPrototypeOf||("__proto__"in{}?(function(){var a=!1,V={},s;try{s=Z(Object.prototype,"__proto__","set"),s(V,[]),a=V instanceof Array}catch{}return function(n,Q){return F(n),c(Q),t(n)&&(a?s(n,Q):n.__proto__=Q),n}})():void 0)}),4270:((U,l,d)=>{var Z=d(9565),t=d(4901),F=d(34),c=TypeError;U.exports=function(a,V){var s,n;if(V==="string"&&t(s=a.toString)&&!F(n=Z(s,a))||t(s=a.valueOf)&&!F(n=Z(s,a))||V!=="string"&&t(s=a.toString)&&!F(n=Z(s,a)))return n;throw new c("Can't convert object to primitive value")}}),5031:((U,l,d)=>{var Z=d(7751),t=d(9504),F=d(8480),c=d(3717),a=d(8551),V=t([].concat);U.exports=Z("Reflect","ownKeys")||function(s){var n=F.f(a(s)),Q=c.f;return Q?V(n,Q(s)):n}}),8235:((U,l,d)=>{var Z=d(9504),t=d(9297),F=SyntaxError,c=parseInt,a=String.fromCharCode,V=Z("".charAt),s=Z("".slice),n=Z(/./.exec),Q={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":`
|
|
1
|
+
import{cT as $e,aV as $s,r as lm,t as dm,c as Um,v as cc,aW as jQ,bo as mh,w as PF,F as Zm,B as tm,a7 as SR,b as TR,I as XR,n as Fm,bl as cm,bY as pR,_ as Wm,D as am,G as Vm,x as sm,z as nm,d as Qm,am as uR,cU as im}from"./main-d46UvpG6.js";var Rm=Object.defineProperty,Mh=U=>{throw TypeError(U)},Nm=(U,l,d)=>l in U?Rm(U,l,{enumerable:!0,configurable:!0,writable:!0,value:d}):U[l]=d,v=(U,l,d)=>Nm(U,typeof l!="symbol"?l+"":l,d),VR=(U,l,d)=>l.has(U)||Mh("Cannot "+d),W=(U,l,d)=>(VR(U,l,"read from private field"),d?d.call(U):l.get(U)),e=(U,l,d)=>l.has(U)?Mh("Cannot add the same private member more than once"):l instanceof WeakSet?l.add(U):l.set(U,d),R=(U,l,d,Z)=>(VR(U,l,"write to private field"),l.set(U,d),d),h=(U,l,d)=>(VR(U,l,"access private method"),d),Td=(U,l,d,Z)=>({set _(t){R(U,l,t)},get _(){return W(U,l,Z)}}),hm={9306:((U,l,d)=>{var Z=d(4901),t=d(6823),F=TypeError;U.exports=function(c){if(Z(c))return c;throw new F(t(c)+" is not a function")}}),3506:((U,l,d)=>{var Z=d(3925),t=String,F=TypeError;U.exports=function(c){if(Z(c))return c;throw new F("Can't set "+t(c)+" as a prototype")}}),7080:((U,l,d)=>{var Z=d(4402).has;U.exports=function(t){return Z(t),t}}),679:((U,l,d)=>{var Z=d(1625),t=TypeError;U.exports=function(F,c){if(Z(c,F))return F;throw new t("Incorrect invocation")}}),8551:((U,l,d)=>{var Z=d(34),t=String,F=TypeError;U.exports=function(c){if(Z(c))return c;throw new F(t(c)+" is not an object")}}),7811:(U=>{U.exports=typeof ArrayBuffer<"u"&&typeof DataView<"u"}),7394:((U,l,d)=>{var Z=d(4576),t=d(6706),F=d(2195),c=Z.ArrayBuffer,a=Z.TypeError;U.exports=c&&t(c.prototype,"byteLength","get")||function(V){if(F(V)!=="ArrayBuffer")throw new a("ArrayBuffer expected");return V.byteLength}}),3238:((U,l,d)=>{var Z=d(4576),t=d(7476),F=d(7394),c=Z.ArrayBuffer,a=c&&c.prototype,V=a&&t(a.slice);U.exports=function(s){if(F(s)!==0||!V)return!1;try{return V(s,0,0),!1}catch{return!0}}}),5169:((U,l,d)=>{var Z=d(3238),t=TypeError;U.exports=function(F){if(Z(F))throw new t("ArrayBuffer is detached");return F}}),5636:((U,l,d)=>{var Z=d(4576),t=d(9504),F=d(6706),c=d(7696),a=d(5169),V=d(7394),s=d(4483),n=d(1548),Q=Z.structuredClone,i=Z.ArrayBuffer,N=Z.DataView,b=Math.min,m=i.prototype,M=N.prototype,J=t(m.slice),S=F(m,"resizable","get"),G=F(m,"maxByteLength","get"),T=t(M.getInt8),p=t(M.setInt8);U.exports=(n||s)&&function(u,Y,o){var X=V(u),B=Y===void 0?X:c(Y),y=!S||!S(u),E;if(a(u),n&&(u=Q(u,{transfer:[u]}),X===B&&(o||y)))return u;if(X>=B&&(!o||y))E=J(u,0,B);else{var D=o&&!y&&G?{maxByteLength:G(u)}:void 0;E=new i(B,D);for(var w=new N(u),I=new N(E),L=b(B,X),H=0;H<L;H++)p(I,H,T(w,H))}return n||s(u),E}}),4644:((U,l,d)=>{var Z=d(7811),t=d(3724),F=d(4576),c=d(4901),a=d(34),V=d(9297),s=d(6955),n=d(6823),Q=d(6699),i=d(6840),N=d(2106),b=d(1625),m=d(2787),M=d(2967),J=d(8227),S=d(3392),G=d(1181),T=G.enforce,p=G.get,u=F.Int8Array,Y=u&&u.prototype,o=F.Uint8ClampedArray,X=o&&o.prototype,B=u&&m(u),y=Y&&m(Y),E=Object.prototype,D=F.TypeError,w=J("toStringTag"),I=S("TYPED_ARRAY_TAG"),L="TypedArrayConstructor",H=Z&&!!M&&s(F.opera)!=="Opera",f=!1,Vl,Ml,Jl,il={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},hl={BigInt64Array:8,BigUint64Array:8},MU=function(A){if(!a(A))return!1;var pl=s(A);return pl==="DataView"||V(il,pl)||V(hl,pl)},JU=function(A){var pl=m(A);if(a(pl)){var Hl=p(pl);return Hl&&V(Hl,L)?Hl[L]:JU(pl)}},C=function(A){if(!a(A))return!1;var pl=s(A);return V(il,pl)||V(hl,pl)},z=function(A){if(C(A))return A;throw new D("Target is not a typed array")},r=function(A){if(c(A)&&(!M||b(B,A)))return A;throw new D(n(A)+" is not a typed array constructor")},$=function(A,pl,Hl,GU){if(t){if(Hl)for(var md in il){var cd=F[md];if(cd&&V(cd.prototype,A))try{delete cd.prototype[A]}catch{try{cd.prototype[A]=pl}catch{}}}(!y[A]||Hl)&&i(y,A,Hl?pl:H&&Y[A]||pl,GU)}},bl=function(A,pl,Hl){var GU,md;if(t){if(M){if(Hl){for(GU in il)if(md=F[GU],md&&V(md,A))try{delete md[A]}catch{}}if(!B[A]||Hl)try{return i(B,A,Hl?pl:H&&B[A]||pl)}catch{}else return}for(GU in il)md=F[GU],md&&(!md[A]||Hl)&&i(md,A,pl)}};for(Vl in il)Ml=F[Vl],Jl=Ml&&Ml.prototype,Jl?T(Jl)[L]=Ml:H=!1;for(Vl in hl)Ml=F[Vl],Jl=Ml&&Ml.prototype,Jl&&(T(Jl)[L]=Ml);if((!H||!c(B)||B===Function.prototype)&&(B=function(){throw new D("Incorrect invocation")},H))for(Vl in il)F[Vl]&&M(F[Vl],B);if((!H||!y||y===E)&&(y=B.prototype,H))for(Vl in il)F[Vl]&&M(F[Vl].prototype,y);if(H&&m(X)!==y&&M(X,y),t&&!V(y,w)){f=!0,N(y,w,{configurable:!0,get:function(){return a(this)?this[I]:void 0}});for(Vl in il)F[Vl]&&Q(F[Vl],I,Vl)}U.exports={NATIVE_ARRAY_BUFFER_VIEWS:H,TYPED_ARRAY_TAG:f&&I,aTypedArray:z,aTypedArrayConstructor:r,exportTypedArrayMethod:$,exportTypedArrayStaticMethod:bl,getTypedArrayConstructor:JU,isView:MU,isTypedArray:C,TypedArray:B,TypedArrayPrototype:y}}),5370:((U,l,d)=>{var Z=d(6198);U.exports=function(t,F,c){for(var a=0,V=arguments.length>2?c:Z(F),s=new t(V);V>a;)s[a]=F[a++];return s}}),9617:((U,l,d)=>{var Z=d(5397),t=d(5610),F=d(6198),c=function(a){return function(V,s,n){var Q=Z(V),i=F(Q);if(i===0)return!a&&-1;var N=t(n,i),b;if(a&&s!==s){for(;i>N;)if(b=Q[N++],b!==b)return!0}else for(;i>N;N++)if((a||N in Q)&&Q[N]===s)return a||N||0;return!a&&-1}};U.exports={includes:c(!0),indexOf:c(!1)}}),4527:((U,l,d)=>{var Z=d(3724),t=d(4376),F=TypeError,c=Object.getOwnPropertyDescriptor,a=Z&&!(function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(V){return V instanceof TypeError}})();U.exports=a?function(V,s){if(t(V)&&!c(V,"length").writable)throw new F("Cannot set read only .length");return V.length=s}:function(V,s){return V.length=s}}),7680:((U,l,d)=>{var Z=d(9504);U.exports=Z([].slice)}),7628:((U,l,d)=>{var Z=d(6198);U.exports=function(t,F){for(var c=Z(t),a=new F(c),V=0;V<c;V++)a[V]=t[c-V-1];return a}}),9928:((U,l,d)=>{var Z=d(6198),t=d(1291),F=RangeError;U.exports=function(c,a,V,s){var n=Z(c),Q=t(V),i=Q<0?n+Q:Q;if(i>=n||i<0)throw new F("Incorrect index");for(var N=new a(n),b=0;b<n;b++)N[b]=b===i?s:c[b];return N}}),6319:((U,l,d)=>{var Z=d(8551),t=d(9539);U.exports=function(F,c,a,V){try{return V?c(Z(a)[0],a[1]):c(a)}catch(s){t(F,"throw",s)}}}),2195:((U,l,d)=>{var Z=d(9504),t=Z({}.toString),F=Z("".slice);U.exports=function(c){return F(t(c),8,-1)}}),6955:((U,l,d)=>{var Z=d(2140),t=d(4901),F=d(2195),c=d(8227),a=c("toStringTag"),V=Object,s=F((function(){return arguments})())==="Arguments",n=function(Q,i){try{return Q[i]}catch{}};U.exports=Z?F:function(Q){var i,N,b;return Q===void 0?"Undefined":Q===null?"Null":typeof(N=n(i=V(Q),a))=="string"?N:s?F(i):(b=F(i))==="Object"&&t(i.callee)?"Arguments":b}}),7740:((U,l,d)=>{var Z=d(9297),t=d(5031),F=d(7347),c=d(4913);U.exports=function(a,V,s){for(var n=t(V),Q=c.f,i=F.f,N=0;N<n.length;N++){var b=n[N];!Z(a,b)&&!(s&&Z(s,b))&&Q(a,b,i(V,b))}}}),2211:((U,l,d)=>{var Z=d(9039);U.exports=!Z(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})}),2529:(U=>{U.exports=function(l,d){return{value:l,done:d}}}),6699:((U,l,d)=>{var Z=d(3724),t=d(4913),F=d(6980);U.exports=Z?function(c,a,V){return t.f(c,a,F(1,V))}:function(c,a,V){return c[a]=V,c}}),6980:(U=>{U.exports=function(l,d){return{enumerable:!(l&1),configurable:!(l&2),writable:!(l&4),value:d}}}),4659:((U,l,d)=>{var Z=d(3724),t=d(4913),F=d(6980);U.exports=function(c,a,V){Z?t.f(c,a,F(0,V)):c[a]=V}}),2106:((U,l,d)=>{var Z=d(283),t=d(4913);U.exports=function(F,c,a){return a.get&&Z(a.get,c,{getter:!0}),a.set&&Z(a.set,c,{setter:!0}),t.f(F,c,a)}}),6840:((U,l,d)=>{var Z=d(4901),t=d(4913),F=d(283),c=d(9433);U.exports=function(a,V,s,n){n||(n={});var Q=n.enumerable,i=n.name!==void 0?n.name:V;if(Z(s)&&F(s,i,n),n.global)Q?a[V]=s:c(V,s);else{try{n.unsafe?a[V]&&(Q=!0):delete a[V]}catch{}Q?a[V]=s:t.f(a,V,{value:s,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return a}}),6279:((U,l,d)=>{var Z=d(6840);U.exports=function(t,F,c){for(var a in F)Z(t,a,F[a],c);return t}}),9433:((U,l,d)=>{var Z=d(4576),t=Object.defineProperty;U.exports=function(F,c){try{t(Z,F,{value:c,configurable:!0,writable:!0})}catch{Z[F]=c}return c}}),3724:((U,l,d)=>{var Z=d(9039);U.exports=!Z(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})}),4483:((U,l,d)=>{var Z=d(4576),t=d(9429),F=d(1548),c=Z.structuredClone,a=Z.ArrayBuffer,V=Z.MessageChannel,s=!1,n,Q,i,N;if(F)s=function(b){c(b,{transfer:[b]})};else if(a)try{V||(n=t("worker_threads"),n&&(V=n.MessageChannel)),V&&(Q=new V,i=new a(2),N=function(b){Q.port1.postMessage(null,[b])},i.byteLength===2&&(N(i),i.byteLength===0&&(s=N)))}catch{}U.exports=s}),4055:((U,l,d)=>{var Z=d(4576),t=d(34),F=Z.document,c=t(F)&&t(F.createElement);U.exports=function(a){return c?F.createElement(a):{}}}),6837:(U=>{var l=TypeError,d=9007199254740991;U.exports=function(Z){if(Z>d)throw l("Maximum allowed index exceeded");return Z}}),5002:(U=>{U.exports={IndexSizeError:{s:"INDEX_SIZE_ERR",c:1,m:1},DOMStringSizeError:{s:"DOMSTRING_SIZE_ERR",c:2,m:0},HierarchyRequestError:{s:"HIERARCHY_REQUEST_ERR",c:3,m:1},WrongDocumentError:{s:"WRONG_DOCUMENT_ERR",c:4,m:1},InvalidCharacterError:{s:"INVALID_CHARACTER_ERR",c:5,m:1},NoDataAllowedError:{s:"NO_DATA_ALLOWED_ERR",c:6,m:0},NoModificationAllowedError:{s:"NO_MODIFICATION_ALLOWED_ERR",c:7,m:1},NotFoundError:{s:"NOT_FOUND_ERR",c:8,m:1},NotSupportedError:{s:"NOT_SUPPORTED_ERR",c:9,m:1},InUseAttributeError:{s:"INUSE_ATTRIBUTE_ERR",c:10,m:1},InvalidStateError:{s:"INVALID_STATE_ERR",c:11,m:1},SyntaxError:{s:"SYNTAX_ERR",c:12,m:1},InvalidModificationError:{s:"INVALID_MODIFICATION_ERR",c:13,m:1},NamespaceError:{s:"NAMESPACE_ERR",c:14,m:1},InvalidAccessError:{s:"INVALID_ACCESS_ERR",c:15,m:1},ValidationError:{s:"VALIDATION_ERR",c:16,m:0},TypeMismatchError:{s:"TYPE_MISMATCH_ERR",c:17,m:1},SecurityError:{s:"SECURITY_ERR",c:18,m:1},NetworkError:{s:"NETWORK_ERR",c:19,m:1},AbortError:{s:"ABORT_ERR",c:20,m:1},URLMismatchError:{s:"URL_MISMATCH_ERR",c:21,m:1},QuotaExceededError:{s:"QUOTA_EXCEEDED_ERR",c:22,m:1},TimeoutError:{s:"TIMEOUT_ERR",c:23,m:1},InvalidNodeTypeError:{s:"INVALID_NODE_TYPE_ERR",c:24,m:1},DataCloneError:{s:"DATA_CLONE_ERR",c:25,m:1}}}),8727:(U=>{U.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]}),6193:((U,l,d)=>{var Z=d(4215);U.exports=Z==="NODE"}),2839:((U,l,d)=>{var Z=d(4576),t=Z.navigator,F=t&&t.userAgent;U.exports=F?String(F):""}),9519:((U,l,d)=>{var Z=d(4576),t=d(2839),F=Z.process,c=Z.Deno,a=F&&F.versions||c&&c.version,V=a&&a.v8,s,n;V&&(s=V.split("."),n=s[0]>0&&s[0]<4?1:+(s[0]+s[1])),!n&&t&&(s=t.match(/Edge\/(\d+)/),(!s||s[1]>=74)&&(s=t.match(/Chrome\/(\d+)/),s&&(n=+s[1]))),U.exports=n}),4215:((U,l,d)=>{var Z=d(4576),t=d(2839),F=d(2195),c=function(a){return t.slice(0,a.length)===a};U.exports=(function(){return c("Bun/")?"BUN":c("Cloudflare-Workers")?"CLOUDFLARE":c("Deno/")?"DENO":c("Node.js/")?"NODE":Z.Bun&&typeof Bun.version=="string"?"BUN":Z.Deno&&typeof Deno.version=="object"?"DENO":F(Z.process)==="process"?"NODE":Z.window&&Z.document?"BROWSER":"REST"})()}),8574:((U,l,d)=>{var Z=d(9504),t=Error,F=Z("".replace),c=(function(s){return String(new t(s).stack)})("zxcasd"),a=/\n\s*at [^:]*:[^\n]*/,V=a.test(c);U.exports=function(s,n){if(V&&typeof s=="string"&&!t.prepareStackTrace)for(;n--;)s=F(s,a,"");return s}}),6518:((U,l,d)=>{var Z=d(4576),t=d(7347).f,F=d(6699),c=d(6840),a=d(9433),V=d(7740),s=d(2796);U.exports=function(n,Q){var i=n.target,N=n.global,b=n.stat,m,M,J,S,G,T;if(N?M=Z:b?M=Z[i]||a(i,{}):M=Z[i]&&Z[i].prototype,M)for(J in Q){if(G=Q[J],n.dontCallGetSet?(T=t(M,J),S=T&&T.value):S=M[J],m=s(N?J:i+(b?".":"#")+J,n.forced),!m&&S!==void 0){if(typeof G==typeof S)continue;V(G,S)}(n.sham||S&&S.sham)&&F(G,"sham",!0),c(M,J,G,n)}}}),9039:(U=>{U.exports=function(l){try{return!!l()}catch{return!0}}}),8745:((U,l,d)=>{var Z=d(616),t=Function.prototype,F=t.apply,c=t.call;U.exports=typeof Reflect=="object"&&Reflect.apply||(Z?c.bind(F):function(){return c.apply(F,arguments)})}),6080:((U,l,d)=>{var Z=d(7476),t=d(9306),F=d(616),c=Z(Z.bind);U.exports=function(a,V){return t(a),V===void 0?a:F?c(a,V):function(){return a.apply(V,arguments)}}}),616:((U,l,d)=>{var Z=d(9039);U.exports=!Z(function(){var t=(function(){}).bind();return typeof t!="function"||t.hasOwnProperty("prototype")})}),9565:((U,l,d)=>{var Z=d(616),t=Function.prototype.call;U.exports=Z?t.bind(t):function(){return t.apply(t,arguments)}}),350:((U,l,d)=>{var Z=d(3724),t=d(9297),F=Function.prototype,c=Z&&Object.getOwnPropertyDescriptor,a=t(F,"name"),V=a&&(function(){}).name==="something",s=a&&(!Z||Z&&c(F,"name").configurable);U.exports={EXISTS:a,PROPER:V,CONFIGURABLE:s}}),6706:((U,l,d)=>{var Z=d(9504),t=d(9306);U.exports=function(F,c,a){try{return Z(t(Object.getOwnPropertyDescriptor(F,c)[a]))}catch{}}}),7476:((U,l,d)=>{var Z=d(2195),t=d(9504);U.exports=function(F){if(Z(F)==="Function")return t(F)}}),9504:((U,l,d)=>{var Z=d(616),t=Function.prototype,F=t.call,c=Z&&t.bind.bind(F,F);U.exports=Z?c:function(a){return function(){return F.apply(a,arguments)}}}),9429:((U,l,d)=>{var Z=d(4576),t=d(6193);U.exports=function(F){if(t){try{return Z.process.getBuiltinModule(F)}catch{}try{return Function('return require("'+F+'")')()}catch{}}}}),7751:((U,l,d)=>{var Z=d(4576),t=d(4901),F=function(c){return t(c)?c:void 0};U.exports=function(c,a){return arguments.length<2?F(Z[c]):Z[c]&&Z[c][a]}}),1767:(U=>{U.exports=function(l){return{iterator:l,next:l.next,done:!1}}}),8646:((U,l,d)=>{var Z=d(9565),t=d(8551),F=d(1767),c=d(851);U.exports=function(a,V){(!V||typeof a!="string")&&t(a);var s=c(a);return F(t(s!==void 0?Z(s,a):a))}}),851:((U,l,d)=>{var Z=d(6955),t=d(5966),F=d(4117),c=d(6269),a=d(8227),V=a("iterator");U.exports=function(s){if(!F(s))return t(s,V)||t(s,"@@iterator")||c[Z(s)]}}),81:((U,l,d)=>{var Z=d(9565),t=d(9306),F=d(8551),c=d(6823),a=d(851),V=TypeError;U.exports=function(s,n){var Q=arguments.length<2?a(s):n;if(t(Q))return F(Z(Q,s));throw new V(c(s)+" is not iterable")}}),5966:((U,l,d)=>{var Z=d(9306),t=d(4117);U.exports=function(F,c){var a=F[c];return t(a)?void 0:Z(a)}}),3789:((U,l,d)=>{var Z=d(9306),t=d(8551),F=d(9565),c=d(1291),a=d(1767),V="Invalid size",s=RangeError,n=TypeError,Q=Math.max,i=function(N,b){this.set=N,this.size=Q(b,0),this.has=Z(N.has),this.keys=Z(N.keys)};i.prototype={getIterator:function(){return a(t(F(this.keys,this.set)))},includes:function(N){return F(this.has,this.set,N)}},U.exports=function(N){t(N);var b=+N.size;if(b!==b)throw new n(V);var m=c(b);if(m<0)throw new s(V);return new i(N,m)}}),4576:(function(U){var l=function(d){return d&&d.Math===Math&&d};U.exports=l(typeof globalThis=="object"&&globalThis)||l(typeof window=="object"&&window)||l(typeof self=="object"&&self)||l(typeof global=="object"&&global)||l(typeof this=="object"&&this)||(function(){return this})()||Function("return this")()}),9297:((U,l,d)=>{var Z=d(9504),t=d(8981),F=Z({}.hasOwnProperty);U.exports=Object.hasOwn||function(c,a){return F(t(c),a)}}),421:(U=>{U.exports={}}),397:((U,l,d)=>{var Z=d(7751);U.exports=Z("document","documentElement")}),5917:((U,l,d)=>{var Z=d(3724),t=d(9039),F=d(4055);U.exports=!Z&&!t(function(){return Object.defineProperty(F("div"),"a",{get:function(){return 7}}).a!==7})}),7055:((U,l,d)=>{var Z=d(9504),t=d(9039),F=d(2195),c=Object,a=Z("".split);U.exports=t(function(){return!c("z").propertyIsEnumerable(0)})?function(V){return F(V)==="String"?a(V,""):c(V)}:c}),3167:((U,l,d)=>{var Z=d(4901),t=d(34),F=d(2967);U.exports=function(c,a,V){var s,n;return F&&Z(s=a.constructor)&&s!==V&&t(n=s.prototype)&&n!==V.prototype&&F(c,n),c}}),3706:((U,l,d)=>{var Z=d(9504),t=d(4901),F=d(7629),c=Z(Function.toString);t(F.inspectSource)||(F.inspectSource=function(a){return c(a)}),U.exports=F.inspectSource}),1181:((U,l,d)=>{var Z=d(8622),t=d(4576),F=d(34),c=d(6699),a=d(9297),V=d(7629),s=d(6119),n=d(421),Q="Object already initialized",i=t.TypeError,N=t.WeakMap,b,m,M,J=function(p){return M(p)?m(p):b(p,{})},S=function(p){return function(u){var Y;if(!F(u)||(Y=m(u)).type!==p)throw new i("Incompatible receiver, "+p+" required");return Y}};if(Z||V.state){var G=V.state||(V.state=new N);G.get=G.get,G.has=G.has,G.set=G.set,b=function(p,u){if(G.has(p))throw new i(Q);return u.facade=p,G.set(p,u),u},m=function(p){return G.get(p)||{}},M=function(p){return G.has(p)}}else{var T=s("state");n[T]=!0,b=function(p,u){if(a(p,T))throw new i(Q);return u.facade=p,c(p,T,u),u},m=function(p){return a(p,T)?p[T]:{}},M=function(p){return a(p,T)}}U.exports={set:b,get:m,has:M,enforce:J,getterFor:S}}),4209:((U,l,d)=>{var Z=d(8227),t=d(6269),F=Z("iterator"),c=Array.prototype;U.exports=function(a){return a!==void 0&&(t.Array===a||c[F]===a)}}),4376:((U,l,d)=>{var Z=d(2195);U.exports=Array.isArray||function(t){return Z(t)==="Array"}}),1108:((U,l,d)=>{var Z=d(6955);U.exports=function(t){var F=Z(t);return F==="BigInt64Array"||F==="BigUint64Array"}}),4901:(U=>{var l=typeof document=="object"&&document.all;U.exports=typeof l>"u"&&l!==void 0?function(d){return typeof d=="function"||d===l}:function(d){return typeof d=="function"}}),2796:((U,l,d)=>{var Z=d(9039),t=d(4901),F=/#|\.prototype\./,c=function(Q,i){var N=V[a(Q)];return N===n?!0:N===s?!1:t(i)?Z(i):!!i},a=c.normalize=function(Q){return String(Q).replace(F,".").toLowerCase()},V=c.data={},s=c.NATIVE="N",n=c.POLYFILL="P";U.exports=c}),4117:(U=>{U.exports=function(l){return l==null}}),34:((U,l,d)=>{var Z=d(4901);U.exports=function(t){return typeof t=="object"?t!==null:Z(t)}}),3925:((U,l,d)=>{var Z=d(34);U.exports=function(t){return Z(t)||t===null}}),6395:(U=>{U.exports=!1}),757:((U,l,d)=>{var Z=d(7751),t=d(4901),F=d(1625),c=d(7040),a=Object;U.exports=c?function(V){return typeof V=="symbol"}:function(V){var s=Z("Symbol");return t(s)&&F(s.prototype,a(V))}}),507:((U,l,d)=>{var Z=d(9565);U.exports=function(t,F,c){for(var a=c?t:t.iterator,V=t.next,s,n;!(s=Z(V,a)).done;)if(n=F(s.value),n!==void 0)return n}}),2652:((U,l,d)=>{var Z=d(6080),t=d(9565),F=d(8551),c=d(6823),a=d(4209),V=d(6198),s=d(1625),n=d(81),Q=d(851),i=d(9539),N=TypeError,b=function(M,J){this.stopped=M,this.result=J},m=b.prototype;U.exports=function(M,J,S){var G=S&&S.that,T=!!(S&&S.AS_ENTRIES),p=!!(S&&S.IS_RECORD),u=!!(S&&S.IS_ITERATOR),Y=!!(S&&S.INTERRUPTED),o=Z(J,G),X,B,y,E,D,w,I,L=function(f){return X&&i(X,"normal",f),new b(!0,f)},H=function(f){return T?(F(f),Y?o(f[0],f[1],L):o(f[0],f[1])):Y?o(f,L):o(f)};if(p)X=M.iterator;else if(u)X=M;else{if(B=Q(M),!B)throw new N(c(M)+" is not iterable");if(a(B)){for(y=0,E=V(M);E>y;y++)if(D=H(M[y]),D&&s(m,D))return D;return new b(!1)}X=n(M,B)}for(w=p?M.next:X.next;!(I=t(w,X)).done;){try{D=H(I.value)}catch(f){i(X,"throw",f)}if(typeof D=="object"&&D&&s(m,D))return D}return new b(!1)}}),9539:((U,l,d)=>{var Z=d(9565),t=d(8551),F=d(5966);U.exports=function(c,a,V){var s,n;t(c);try{if(s=F(c,"return"),!s){if(a==="throw")throw V;return V}s=Z(s,c)}catch(Q){n=!0,s=Q}if(a==="throw")throw V;if(n)throw s;return t(s),V}}),9462:((U,l,d)=>{var Z=d(9565),t=d(2360),F=d(6699),c=d(6279),a=d(8227),V=d(1181),s=d(5966),n=d(7657).IteratorPrototype,Q=d(2529),i=d(9539),N=a("toStringTag"),b="IteratorHelper",m="WrapForValidIterator",M=V.set,J=function(T){var p=V.getterFor(T?m:b);return c(t(n),{next:function(){var u=p(this);if(T)return u.nextHandler();try{var Y=u.done?void 0:u.nextHandler();return Q(Y,u.done)}catch(o){throw u.done=!0,o}},return:function(){var u=p(this),Y=u.iterator;if(u.done=!0,T){var o=s(Y,"return");return o?Z(o,Y):Q(void 0,!0)}if(u.inner)try{i(u.inner.iterator,"normal")}catch(X){return i(Y,"throw",X)}return Y&&i(Y,"normal"),Q(void 0,!0)}})},S=J(!0),G=J(!1);F(G,N,"Iterator Helper"),U.exports=function(T,p){var u=function(Y,o){o?(o.iterator=Y.iterator,o.next=Y.next):o=Y,o.type=p?m:b,o.nextHandler=T,o.counter=0,o.done=!1,M(this,o)};return u.prototype=p?S:G,u}}),713:((U,l,d)=>{var Z=d(9565),t=d(9306),F=d(8551),c=d(1767),a=d(9462),V=d(6319),s=a(function(){var n=this.iterator,Q=F(Z(this.next,n)),i=this.done=!!Q.done;if(!i)return V(n,this.mapper,[Q.value,this.counter++],!0)});U.exports=function(n){return F(this),t(n),new s(c(this),{mapper:n})}}),7657:((U,l,d)=>{var Z=d(9039),t=d(4901),F=d(34),c=d(2360),a=d(2787),V=d(6840),s=d(8227),n=d(6395),Q=s("iterator"),i=!1,N,b,m;[].keys&&(m=[].keys(),"next"in m?(b=a(a(m)),b!==Object.prototype&&(N=b)):i=!0);var M=!F(N)||Z(function(){var J={};return N[Q].call(J)!==J});M?N={}:n&&(N=c(N)),t(N[Q])||V(N,Q,function(){return this}),U.exports={IteratorPrototype:N,BUGGY_SAFARI_ITERATORS:i}}),6269:(U=>{U.exports={}}),6198:((U,l,d)=>{var Z=d(8014);U.exports=function(t){return Z(t.length)}}),283:((U,l,d)=>{var Z=d(9504),t=d(9039),F=d(4901),c=d(9297),a=d(3724),V=d(350).CONFIGURABLE,s=d(3706),n=d(1181),Q=n.enforce,i=n.get,N=String,b=Object.defineProperty,m=Z("".slice),M=Z("".replace),J=Z([].join),S=a&&!t(function(){return b(function(){},"length",{value:8}).length!==8}),G=String(String).split("String"),T=U.exports=function(p,u,Y){m(N(u),0,7)==="Symbol("&&(u="["+M(N(u),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),Y&&Y.getter&&(u="get "+u),Y&&Y.setter&&(u="set "+u),(!c(p,"name")||V&&p.name!==u)&&(a?b(p,"name",{value:u,configurable:!0}):p.name=u),S&&Y&&c(Y,"arity")&&p.length!==Y.arity&&b(p,"length",{value:Y.arity});try{Y&&c(Y,"constructor")&&Y.constructor?a&&b(p,"prototype",{writable:!1}):p.prototype&&(p.prototype=void 0)}catch{}var o=Q(p);return c(o,"source")||(o.source=J(G,typeof u=="string"?u:"")),p};Function.prototype.toString=T(function(){return F(this)&&i(this).source||s(this)},"toString")}),741:(U=>{var l=Math.ceil,d=Math.floor;U.exports=Math.trunc||function(Z){var t=+Z;return(t>0?d:l)(t)}}),6043:((U,l,d)=>{var Z=d(9306),t=TypeError,F=function(c){var a,V;this.promise=new c(function(s,n){if(a!==void 0||V!==void 0)throw new t("Bad Promise constructor");a=s,V=n}),this.resolve=Z(a),this.reject=Z(V)};U.exports.f=function(c){return new F(c)}}),2603:((U,l,d)=>{var Z=d(655);U.exports=function(t,F){return t===void 0?arguments.length<2?"":F:Z(t)}}),4149:(U=>{var l=RangeError;U.exports=function(d){if(d===d)return d;throw new l("NaN is not allowed")}}),2360:((U,l,d)=>{var Z=d(8551),t=d(6801),F=d(8727),c=d(421),a=d(397),V=d(4055),s=d(6119),n=">",Q="<",i="prototype",N="script",b=s("IE_PROTO"),m=function(){},M=function(p){return Q+N+n+p+Q+"/"+N+n},J=function(p){p.write(M("")),p.close();var u=p.parentWindow.Object;return p=null,u},S=function(){var p=V("iframe"),u="java"+N+":",Y;return p.style.display="none",a.appendChild(p),p.src=String(u),Y=p.contentWindow.document,Y.open(),Y.write(M("document.F=Object")),Y.close(),Y.F},G,T=function(){try{G=new ActiveXObject("htmlfile")}catch{}T=typeof document<"u"?document.domain&&G?J(G):S():J(G);for(var p=F.length;p--;)delete T[i][F[p]];return T()};c[b]=!0,U.exports=Object.create||function(p,u){var Y;return p!==null?(m[i]=Z(p),Y=new m,m[i]=null,Y[b]=p):Y=T(),u===void 0?Y:t.f(Y,u)}}),6801:((U,l,d)=>{var Z=d(3724),t=d(8686),F=d(4913),c=d(8551),a=d(5397),V=d(1072);l.f=Z&&!t?Object.defineProperties:function(s,n){c(s);for(var Q=a(n),i=V(n),N=i.length,b=0,m;N>b;)F.f(s,m=i[b++],Q[m]);return s}}),4913:((U,l,d)=>{var Z=d(3724),t=d(5917),F=d(8686),c=d(8551),a=d(6969),V=TypeError,s=Object.defineProperty,n=Object.getOwnPropertyDescriptor,Q="enumerable",i="configurable",N="writable";l.f=Z?F?function(b,m,M){if(c(b),m=a(m),c(M),typeof b=="function"&&m==="prototype"&&"value"in M&&N in M&&!M[N]){var J=n(b,m);J&&J[N]&&(b[m]=M.value,M={configurable:i in M?M[i]:J[i],enumerable:Q in M?M[Q]:J[Q],writable:!1})}return s(b,m,M)}:s:function(b,m,M){if(c(b),m=a(m),c(M),t)try{return s(b,m,M)}catch{}if("get"in M||"set"in M)throw new V("Accessors not supported");return"value"in M&&(b[m]=M.value),b}}),7347:((U,l,d)=>{var Z=d(3724),t=d(9565),F=d(8773),c=d(6980),a=d(5397),V=d(6969),s=d(9297),n=d(5917),Q=Object.getOwnPropertyDescriptor;l.f=Z?Q:function(i,N){if(i=a(i),N=V(N),n)try{return Q(i,N)}catch{}if(s(i,N))return c(!t(F.f,i,N),i[N])}}),8480:((U,l,d)=>{var Z=d(1828),t=d(8727),F=t.concat("length","prototype");l.f=Object.getOwnPropertyNames||function(c){return Z(c,F)}}),3717:((U,l)=>{l.f=Object.getOwnPropertySymbols}),2787:((U,l,d)=>{var Z=d(9297),t=d(4901),F=d(8981),c=d(6119),a=d(2211),V=c("IE_PROTO"),s=Object,n=s.prototype;U.exports=a?s.getPrototypeOf:function(Q){var i=F(Q);if(Z(i,V))return i[V];var N=i.constructor;return t(N)&&i instanceof N?N.prototype:i instanceof s?n:null}}),1625:((U,l,d)=>{var Z=d(9504);U.exports=Z({}.isPrototypeOf)}),1828:((U,l,d)=>{var Z=d(9504),t=d(9297),F=d(5397),c=d(9617).indexOf,a=d(421),V=Z([].push);U.exports=function(s,n){var Q=F(s),i=0,N=[],b;for(b in Q)!t(a,b)&&t(Q,b)&&V(N,b);for(;n.length>i;)t(Q,b=n[i++])&&(~c(N,b)||V(N,b));return N}}),1072:((U,l,d)=>{var Z=d(1828),t=d(8727);U.exports=Object.keys||function(F){return Z(F,t)}}),8773:((U,l)=>{var d={}.propertyIsEnumerable,Z=Object.getOwnPropertyDescriptor,t=Z&&!d.call({1:2},1);l.f=t?function(F){var c=Z(this,F);return!!c&&c.enumerable}:d}),2967:((U,l,d)=>{var Z=d(6706),t=d(34),F=d(7750),c=d(3506);U.exports=Object.setPrototypeOf||("__proto__"in{}?(function(){var a=!1,V={},s;try{s=Z(Object.prototype,"__proto__","set"),s(V,[]),a=V instanceof Array}catch{}return function(n,Q){return F(n),c(Q),t(n)&&(a?s(n,Q):n.__proto__=Q),n}})():void 0)}),4270:((U,l,d)=>{var Z=d(9565),t=d(4901),F=d(34),c=TypeError;U.exports=function(a,V){var s,n;if(V==="string"&&t(s=a.toString)&&!F(n=Z(s,a))||t(s=a.valueOf)&&!F(n=Z(s,a))||V!=="string"&&t(s=a.toString)&&!F(n=Z(s,a)))return n;throw new c("Can't convert object to primitive value")}}),5031:((U,l,d)=>{var Z=d(7751),t=d(9504),F=d(8480),c=d(3717),a=d(8551),V=t([].concat);U.exports=Z("Reflect","ownKeys")||function(s){var n=F.f(a(s)),Q=c.f;return Q?V(n,Q(s)):n}}),8235:((U,l,d)=>{var Z=d(9504),t=d(9297),F=SyntaxError,c=parseInt,a=String.fromCharCode,V=Z("".charAt),s=Z("".slice),n=Z(/./.exec),Q={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":`
|
|
2
2
|
`,"\\r":"\r","\\t":" "},i=/^[\da-f]{4}$/i,N=/^[\u0000-\u001F]$/;U.exports=function(b,m){for(var M=!0,J="";m<b.length;){var S=V(b,m);if(S==="\\"){var G=s(b,m,m+2);if(t(Q,G))J+=Q[G],m+=2;else if(G==="\\u"){m+=2;var T=s(b,m,m+4);if(!n(i,T))throw new F("Bad Unicode escape at: "+m);J+=a(c(T,16)),m+=4}else throw new F('Unknown escape sequence: "'+G+'"')}else if(S==='"'){M=!1,m++;break}else{if(n(N,S))throw new F("Bad control character in string literal at: "+m);J+=S,m++}}if(M)throw new F("Unterminated string at: "+m);return{value:J,end:m}}}),1103:(U=>{U.exports=function(l){try{return{error:!1,value:l()}}catch(d){return{error:!0,value:d}}}}),7750:((U,l,d)=>{var Z=d(4117),t=TypeError;U.exports=function(F){if(Z(F))throw new t("Can't call method on "+F);return F}}),9286:((U,l,d)=>{var Z=d(4402),t=d(8469),F=Z.Set,c=Z.add;U.exports=function(a){var V=new F;return t(a,function(s){c(V,s)}),V}}),3440:((U,l,d)=>{var Z=d(7080),t=d(4402),F=d(9286),c=d(5170),a=d(3789),V=d(8469),s=d(507),n=t.has,Q=t.remove;U.exports=function(i){var N=Z(this),b=a(i),m=F(N);return c(N)<=b.size?V(N,function(M){b.includes(M)&&Q(m,M)}):s(b.getIterator(),function(M){n(N,M)&&Q(m,M)}),m}}),4402:((U,l,d)=>{var Z=d(9504),t=Set.prototype;U.exports={Set,add:Z(t.add),has:Z(t.has),remove:Z(t.delete),proto:t}}),8750:((U,l,d)=>{var Z=d(7080),t=d(4402),F=d(5170),c=d(3789),a=d(8469),V=d(507),s=t.Set,n=t.add,Q=t.has;U.exports=function(i){var N=Z(this),b=c(i),m=new s;return F(N)>b.size?V(b.getIterator(),function(M){Q(N,M)&&n(m,M)}):a(N,function(M){b.includes(M)&&n(m,M)}),m}}),4449:((U,l,d)=>{var Z=d(7080),t=d(4402).has,F=d(5170),c=d(3789),a=d(8469),V=d(507),s=d(9539);U.exports=function(n){var Q=Z(this),i=c(n);if(F(Q)<=i.size)return a(Q,function(b){if(i.includes(b))return!1},!0)!==!1;var N=i.getIterator();return V(N,function(b){if(t(Q,b))return s(N,"normal",!1)})!==!1}}),3838:((U,l,d)=>{var Z=d(7080),t=d(5170),F=d(8469),c=d(3789);U.exports=function(a){var V=Z(this),s=c(a);return t(V)>s.size?!1:F(V,function(n){if(!s.includes(n))return!1},!0)!==!1}}),8527:((U,l,d)=>{var Z=d(7080),t=d(4402).has,F=d(5170),c=d(3789),a=d(507),V=d(9539);U.exports=function(s){var n=Z(this),Q=c(s);if(F(n)<Q.size)return!1;var i=Q.getIterator();return a(i,function(N){if(!t(n,N))return V(i,"normal",!1)})!==!1}}),8469:((U,l,d)=>{var Z=d(9504),t=d(507),F=d(4402),c=F.Set,a=F.proto,V=Z(a.forEach),s=Z(a.keys),n=s(new c).next;U.exports=function(Q,i,N){return N?t({iterator:s(Q),next:n},i):V(Q,i)}}),4916:((U,l,d)=>{var Z=d(7751),t=function(F){return{size:F,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}};U.exports=function(F){var c=Z("Set");try{new c()[F](t(0));try{return new c()[F](t(-1)),!1}catch{return!0}}catch{return!1}}}),5170:((U,l,d)=>{var Z=d(6706),t=d(4402);U.exports=Z(t.proto,"size","get")||function(F){return F.size}}),3650:((U,l,d)=>{var Z=d(7080),t=d(4402),F=d(9286),c=d(3789),a=d(507),V=t.add,s=t.has,n=t.remove;U.exports=function(Q){var i=Z(this),N=c(Q).getIterator(),b=F(i);return a(N,function(m){s(i,m)?n(b,m):V(b,m)}),b}}),4204:((U,l,d)=>{var Z=d(7080),t=d(4402).add,F=d(9286),c=d(3789),a=d(507);U.exports=function(V){var s=Z(this),n=c(V).getIterator(),Q=F(s);return a(n,function(i){t(Q,i)}),Q}}),6119:((U,l,d)=>{var Z=d(5745),t=d(3392),F=Z("keys");U.exports=function(c){return F[c]||(F[c]=t(c))}}),7629:((U,l,d)=>{var Z=d(6395),t=d(4576),F=d(9433),c="__core-js_shared__",a=U.exports=t[c]||F(c,{});(a.versions||(a.versions=[])).push({version:"3.39.0",mode:Z?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.39.0/LICENSE",source:"https://github.com/zloirock/core-js"})}),5745:((U,l,d)=>{var Z=d(7629);U.exports=function(t,F){return Z[t]||(Z[t]=F||{})}}),1548:((U,l,d)=>{var Z=d(4576),t=d(9039),F=d(9519),c=d(4215),a=Z.structuredClone;U.exports=!!a&&!t(function(){if(c==="DENO"&&F>92||c==="NODE"&&F>94||c==="BROWSER"&&F>97)return!1;var V=new ArrayBuffer(8),s=a(V,{transfer:[V]});return V.byteLength!==0||s.byteLength!==8})}),4495:((U,l,d)=>{var Z=d(9519),t=d(9039),F=d(4576),c=F.String;U.exports=!!Object.getOwnPropertySymbols&&!t(function(){var a=Symbol("symbol detection");return!c(a)||!(Object(a)instanceof Symbol)||!Symbol.sham&&Z&&Z<41})}),5610:((U,l,d)=>{var Z=d(1291),t=Math.max,F=Math.min;U.exports=function(c,a){var V=Z(c);return V<0?t(V+a,0):F(V,a)}}),5854:((U,l,d)=>{var Z=d(2777),t=TypeError;U.exports=function(F){var c=Z(F,"number");if(typeof c=="number")throw new t("Can't convert number to bigint");return BigInt(c)}}),7696:((U,l,d)=>{var Z=d(1291),t=d(8014),F=RangeError;U.exports=function(c){if(c===void 0)return 0;var a=Z(c),V=t(a);if(a!==V)throw new F("Wrong length or index");return V}}),5397:((U,l,d)=>{var Z=d(7055),t=d(7750);U.exports=function(F){return Z(t(F))}}),1291:((U,l,d)=>{var Z=d(741);U.exports=function(t){var F=+t;return F!==F||F===0?0:Z(F)}}),8014:((U,l,d)=>{var Z=d(1291),t=Math.min;U.exports=function(F){var c=Z(F);return c>0?t(c,9007199254740991):0}}),8981:((U,l,d)=>{var Z=d(7750),t=Object;U.exports=function(F){return t(Z(F))}}),9590:((U,l,d)=>{var Z=d(1291),t=RangeError;U.exports=function(F){var c=Z(F);if(c<0)throw new t("The argument can't be less than 0");return c}}),2777:((U,l,d)=>{var Z=d(9565),t=d(34),F=d(757),c=d(5966),a=d(4270),V=d(8227),s=TypeError,n=V("toPrimitive");U.exports=function(Q,i){if(!t(Q)||F(Q))return Q;var N=c(Q,n),b;if(N){if(i===void 0&&(i="default"),b=Z(N,Q,i),!t(b)||F(b))return b;throw new s("Can't convert object to primitive value")}return i===void 0&&(i="number"),a(Q,i)}}),6969:((U,l,d)=>{var Z=d(2777),t=d(757);U.exports=function(F){var c=Z(F,"string");return t(c)?c:c+""}}),2140:((U,l,d)=>{var Z=d(8227),t=Z("toStringTag"),F={};F[t]="z",U.exports=String(F)==="[object z]"}),655:((U,l,d)=>{var Z=d(6955),t=String;U.exports=function(F){if(Z(F)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return t(F)}}),6823:(U=>{var l=String;U.exports=function(d){try{return l(d)}catch{return"Object"}}}),3392:((U,l,d)=>{var Z=d(9504),t=0,F=Math.random(),c=Z(1 .toString);U.exports=function(a){return"Symbol("+(a===void 0?"":a)+")_"+c(++t+F,36)}}),7040:((U,l,d)=>{var Z=d(4495);U.exports=Z&&!Symbol.sham&&typeof Symbol.iterator=="symbol"}),8686:((U,l,d)=>{var Z=d(3724),t=d(9039);U.exports=Z&&t(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})}),2812:(U=>{var l=TypeError;U.exports=function(d,Z){if(d<Z)throw new l("Not enough arguments");return d}}),8622:((U,l,d)=>{var Z=d(4576),t=d(4901),F=Z.WeakMap;U.exports=t(F)&&/native code/.test(String(F))}),8227:((U,l,d)=>{var Z=d(4576),t=d(5745),F=d(9297),c=d(3392),a=d(4495),V=d(7040),s=Z.Symbol,n=t("wks"),Q=V?s.for||s:s&&s.withoutSetter||c;U.exports=function(i){return F(n,i)||(n[i]=a&&F(s,i)?s[i]:Q("Symbol."+i)),n[i]}}),6573:((U,l,d)=>{var Z=d(3724),t=d(2106),F=d(3238),c=ArrayBuffer.prototype;Z&&!("detached"in c)&&t(c,"detached",{configurable:!0,get:function(){return F(this)}})}),7936:((U,l,d)=>{var Z=d(6518),t=d(5636);t&&Z({target:"ArrayBuffer",proto:!0},{transferToFixedLength:function(){return t(this,arguments.length?arguments[0]:void 0,!1)}})}),8100:((U,l,d)=>{var Z=d(6518),t=d(5636);t&&Z({target:"ArrayBuffer",proto:!0},{transfer:function(){return t(this,arguments.length?arguments[0]:void 0,!0)}})}),4114:((U,l,d)=>{var Z=d(6518),t=d(8981),F=d(6198),c=d(4527),a=d(6837),V=d(9039),s=V(function(){return[].push.call({length:4294967296},1)!==4294967297}),n=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(i){return i instanceof TypeError}},Q=s||!n();Z({target:"Array",proto:!0,arity:1,forced:Q},{push:function(i){var N=t(this),b=F(N),m=arguments.length;a(b+m);for(var M=0;M<m;M++)N[b]=arguments[M],b++;return c(N,b),b}})}),8111:((U,l,d)=>{var Z=d(6518),t=d(4576),F=d(679),c=d(8551),a=d(4901),V=d(2787),s=d(2106),n=d(4659),Q=d(9039),i=d(9297),N=d(8227),b=d(7657).IteratorPrototype,m=d(3724),M=d(6395),J="constructor",S="Iterator",G=N("toStringTag"),T=TypeError,p=t[S],u=M||!a(p)||p.prototype!==b||!Q(function(){p({})}),Y=function(){if(F(this,b),V(this)===b)throw new T("Abstract class Iterator not directly constructable")},o=function(X,B){m?s(b,X,{configurable:!0,get:function(){return B},set:function(y){if(c(this),this===b)throw new T("You can't redefine this property");i(this,X)?this[X]=y:n(this,X,y)}}):b[X]=B};i(b,G)||o(G,S),(u||!i(b,J)||b[J]===Object)&&o(J,Y),Y.prototype=b,Z({global:!0,constructor:!0,forced:u},{Iterator:Y})}),9314:((U,l,d)=>{var Z=d(6518),t=d(9565),F=d(8551),c=d(1767),a=d(4149),V=d(9590),s=d(9462),n=d(6395),Q=s(function(){for(var i=this.iterator,N=this.next,b,m;this.remaining;)if(this.remaining--,b=F(t(N,i)),m=this.done=!!b.done,m)return;if(b=F(t(N,i)),m=this.done=!!b.done,!m)return b.value});Z({target:"Iterator",proto:!0,real:!0,forced:n},{drop:function(i){F(this);var N=V(a(+i));return new Q(c(this),{remaining:N})}})}),1148:((U,l,d)=>{var Z=d(6518),t=d(2652),F=d(9306),c=d(8551),a=d(1767);Z({target:"Iterator",proto:!0,real:!0},{every:function(V){c(this),F(V);var s=a(this),n=0;return!t(s,function(Q,i){if(!V(Q,n++))return i()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})}),2489:((U,l,d)=>{var Z=d(6518),t=d(9565),F=d(9306),c=d(8551),a=d(1767),V=d(9462),s=d(6319),n=d(6395),Q=V(function(){for(var i=this.iterator,N=this.predicate,b=this.next,m,M,J;;){if(m=c(t(b,i)),M=this.done=!!m.done,M)return;if(J=m.value,s(i,N,[J,this.counter++],!0))return J}});Z({target:"Iterator",proto:!0,real:!0,forced:n},{filter:function(i){return c(this),F(i),new Q(a(this),{predicate:i})}})}),531:((U,l,d)=>{var Z=d(6518),t=d(9565),F=d(9306),c=d(8551),a=d(1767),V=d(8646),s=d(9462),n=d(9539),Q=d(6395),i=s(function(){for(var N=this.iterator,b=this.mapper,m,M;;){if(M=this.inner)try{if(m=c(t(M.next,M.iterator)),!m.done)return m.value;this.inner=null}catch(J){n(N,"throw",J)}if(m=c(t(this.next,N)),this.done=!!m.done)return;try{this.inner=V(b(m.value,this.counter++),!1)}catch(J){n(N,"throw",J)}}});Z({target:"Iterator",proto:!0,real:!0,forced:Q},{flatMap:function(N){return c(this),F(N),new i(a(this),{mapper:N,inner:null})}})}),1701:((U,l,d)=>{var Z=d(6518),t=d(713),F=d(6395);Z({target:"Iterator",proto:!0,real:!0,forced:F},{map:t})}),3579:((U,l,d)=>{var Z=d(6518),t=d(2652),F=d(9306),c=d(8551),a=d(1767);Z({target:"Iterator",proto:!0,real:!0},{some:function(V){c(this),F(V);var s=a(this),n=0;return t(s,function(Q,i){if(V(Q,n++))return i()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})}),1689:((U,l,d)=>{var Z=d(6518),t=d(4576),F=d(8745),c=d(7680),a=d(6043),V=d(9306),s=d(1103),n=t.Promise,Q=!1,i=!n||!n.try||s(function(){n.try(function(N){Q=N===8},8)}).error||!Q;Z({target:"Promise",stat:!0,forced:i},{try:function(N){var b=arguments.length>1?c(arguments,1):[],m=a.f(this),M=s(function(){return F(V(N),void 0,b)});return(M.error?m.reject:m.resolve)(M.value),m.promise}})}),4628:((U,l,d)=>{var Z=d(6518),t=d(6043);Z({target:"Promise",stat:!0},{withResolvers:function(){var F=t.f(this);return{promise:F.promise,resolve:F.resolve,reject:F.reject}}})}),7642:((U,l,d)=>{var Z=d(6518),t=d(3440),F=d(4916);Z({target:"Set",proto:!0,real:!0,forced:!F("difference")},{difference:t})}),8004:((U,l,d)=>{var Z=d(6518),t=d(9039),F=d(8750),c=d(4916),a=!c("intersection")||t(function(){return String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))!=="3,2"});Z({target:"Set",proto:!0,real:!0,forced:a},{intersection:F})}),3853:((U,l,d)=>{var Z=d(6518),t=d(4449),F=d(4916);Z({target:"Set",proto:!0,real:!0,forced:!F("isDisjointFrom")},{isDisjointFrom:t})}),5876:((U,l,d)=>{var Z=d(6518),t=d(3838),F=d(4916);Z({target:"Set",proto:!0,real:!0,forced:!F("isSubsetOf")},{isSubsetOf:t})}),2475:((U,l,d)=>{var Z=d(6518),t=d(8527),F=d(4916);Z({target:"Set",proto:!0,real:!0,forced:!F("isSupersetOf")},{isSupersetOf:t})}),5024:((U,l,d)=>{var Z=d(6518),t=d(3650),F=d(4916);Z({target:"Set",proto:!0,real:!0,forced:!F("symmetricDifference")},{symmetricDifference:t})}),1698:((U,l,d)=>{var Z=d(6518),t=d(4204),F=d(4916);Z({target:"Set",proto:!0,real:!0,forced:!F("union")},{union:t})}),7467:((U,l,d)=>{var Z=d(7628),t=d(4644),F=t.aTypedArray,c=t.exportTypedArrayMethod,a=t.getTypedArrayConstructor;c("toReversed",function(){return Z(F(this),a(this))})}),4732:((U,l,d)=>{var Z=d(4644),t=d(9504),F=d(9306),c=d(5370),a=Z.aTypedArray,V=Z.getTypedArrayConstructor,s=Z.exportTypedArrayMethod,n=t(Z.TypedArrayPrototype.sort);s("toSorted",function(Q){Q!==void 0&&F(Q);var i=a(this),N=c(V(i),i);return n(N,Q)})}),9577:((U,l,d)=>{var Z=d(9928),t=d(4644),F=d(1108),c=d(1291),a=d(5854),V=t.aTypedArray,s=t.getTypedArrayConstructor,n=t.exportTypedArrayMethod,Q=!!(function(){try{new Int8Array(1).with(2,{valueOf:function(){throw 8}})}catch(i){return i===8}})();n("with",function(i,N){var b=V(this),m=c(i),M=F(b)?a(N):+N;return Z(b,s(b),m,M)},!Q)}),8992:((U,l,d)=>{d(8111)}),4743:((U,l,d)=>{d(9314)}),3215:((U,l,d)=>{d(1148)}),4520:((U,l,d)=>{d(2489)}),670:((U,l,d)=>{d(531)}),1454:((U,l,d)=>{d(1701)}),7550:((U,l,d)=>{d(3579)}),8335:((U,l,d)=>{var Z=d(6518),t=d(3724),F=d(4576),c=d(7751),a=d(9504),V=d(9565),s=d(4901),n=d(34),Q=d(4376),i=d(9297),N=d(655),b=d(6198),m=d(4659),M=d(9039),J=d(8235),S=d(4495),G=F.JSON,T=F.Number,p=F.SyntaxError,u=G&&G.parse,Y=c("Object","keys"),o=Object.getOwnPropertyDescriptor,X=a("".charAt),B=a("".slice),y=a(/./.exec),E=a([].push),D=/^\d$/,w=/^[1-9]$/,I=/^[\d-]$/,L=/^[\t\n\r ]$/,H=0,f=1,Vl=function(C,z){C=N(C);var r=new hl(C,0),$=r.parse(),bl=$.value,A=r.skip(L,$.end);if(A<C.length)throw new p('Unexpected extra character: "'+X(C,A)+'" after the parsed data at: '+A);return s(z)?Ml({"":bl},"",z,$):bl},Ml=function(C,z,r,$){var bl=C[z],A=$&&bl===$.value,pl=A&&typeof $.source=="string"?{source:$.source}:{},Hl,GU,md,cd,Fc;if(n(bl)){var GR=Q(bl),Ga=A?$.nodes:GR?[]:{};if(GR)for(Hl=Ga.length,md=b(bl),cd=0;cd<md;cd++)Jl(bl,cd,Ml(bl,""+cd,r,cd<Hl?Ga[cd]:void 0));else for(GU=Y(bl),md=b(GU),cd=0;cd<md;cd++)Fc=GU[cd],Jl(bl,Fc,Ml(bl,Fc,r,i(Ga,Fc)?Ga[Fc]:void 0))}return V(r,C,z,bl,pl)},Jl=function(C,z,r){if(t){var $=o(C,z);if($&&!$.configurable)return}r===void 0?delete C[z]:m(C,z,r)},il=function(C,z,r,$){this.value=C,this.end=z,this.source=r,this.nodes=$},hl=function(C,z){this.source=C,this.index=z};hl.prototype={fork:function(C){return new hl(this.source,C)},parse:function(){var C=this.source,z=this.skip(L,this.index),r=this.fork(z),$=X(C,z);if(y(I,$))return r.number();switch($){case"{":return r.object();case"[":return r.array();case'"':return r.string();case"t":return r.keyword(!0);case"f":return r.keyword(!1);case"n":return r.keyword(null)}throw new p('Unexpected character: "'+$+'" at: '+z)},node:function(C,z,r,$,bl){return new il(z,$,C?null:B(this.source,r,$),bl)},object:function(){for(var C=this.source,z=this.index+1,r=!1,$={},bl={};z<C.length;){if(z=this.until(['"',"}"],z),X(C,z)==="}"&&!r){z++;break}var A=this.fork(z).string(),pl=A.value;z=A.end,z=this.until([":"],z)+1,z=this.skip(L,z),A=this.fork(z).parse(),m(bl,pl,A),m($,pl,A.value),z=this.until([",","}"],A.end);var Hl=X(C,z);if(Hl===",")r=!0,z++;else if(Hl==="}"){z++;break}}return this.node(f,$,this.index,z,bl)},array:function(){for(var C=this.source,z=this.index+1,r=!1,$=[],bl=[];z<C.length;){if(z=this.skip(L,z),X(C,z)==="]"&&!r){z++;break}var A=this.fork(z).parse();if(E(bl,A),E($,A.value),z=this.until([",","]"],A.end),X(C,z)===",")r=!0,z++;else if(X(C,z)==="]"){z++;break}}return this.node(f,$,this.index,z,bl)},string:function(){var C=this.index,z=J(this.source,this.index+1);return this.node(H,z.value,C,z.end)},number:function(){var C=this.source,z=this.index,r=z;if(X(C,r)==="-"&&r++,X(C,r)==="0")r++;else if(y(w,X(C,r)))r=this.skip(D,r+1);else throw new p("Failed to parse number at: "+r);if(X(C,r)==="."&&(r=this.skip(D,r+1)),X(C,r)==="e"||X(C,r)==="E"){r++,(X(C,r)==="+"||X(C,r)==="-")&&r++;var $=r;if(r=this.skip(D,r),$===r)throw new p("Failed to parse number's exponent value at: "+r)}return this.node(H,T(B(C,z,r)),z,r)},keyword:function(C){var z=""+C,r=this.index,$=r+z.length;if(B(this.source,r,$)!==z)throw new p("Failed to parse value at: "+r);return this.node(H,C,r,$)},skip:function(C,z){for(var r=this.source;z<r.length&&y(C,X(r,z));z++);return z},until:function(C,z){z=this.skip(L,z);for(var r=X(this.source,z),$=0;$<C.length;$++)if(C[$]===r)return z;throw new p('Unexpected character: "'+r+'" at: '+z)}};var MU=M(function(){var C="9007199254740993",z;return u(C,function(r,$,bl){z=bl.source}),z!==C}),JU=S&&!M(function(){return 1/u("-0 ")!==-1/0});Z({target:"JSON",stat:!0,forced:MU},{parse:function(C,z){return JU&&!s(z)?u(C):Vl(C,z)}})}),5247:((U,l,d)=>{d(1689)}),4979:((U,l,d)=>{var Z=d(6518),t=d(4576),F=d(7751),c=d(6980),a=d(4913).f,V=d(9297),s=d(679),n=d(3167),Q=d(2603),i=d(5002),N=d(8574),b=d(3724),m=d(6395),M="DOMException",J=F("Error"),S=F(M),G=function(){s(this,T);var I=arguments.length,L=Q(I<1?void 0:arguments[0]),H=Q(I<2?void 0:arguments[1],"Error"),f=new S(L,H),Vl=new J(L);return Vl.name=M,a(f,"stack",c(1,N(Vl.stack,1))),n(f,this,G),f},T=G.prototype=S.prototype,p="stack"in new J(M),u="stack"in new S(1,2),Y=S&&b&&Object.getOwnPropertyDescriptor(t,M),o=!!Y&&!(Y.writable&&Y.configurable),X=p&&!o&&!u;Z({global:!0,constructor:!0,forced:m||X},{DOMException:X?G:S});var B=F(M),y=B.prototype;if(y.constructor!==B){m||a(y,"constructor",c(1,B));for(var E in i)if(V(i,E)){var D=i[E],w=D.s;V(B,w)||a(B,w,c(6,D.c))}}}),4603:((U,l,d)=>{var Z=d(6840),t=d(9504),F=d(655),c=d(2812),a=URLSearchParams,V=a.prototype,s=t(V.append),n=t(V.delete),Q=t(V.forEach),i=t([].push),N=new a("a=1&a=2&b=3");N.delete("a",1),N.delete("b",void 0),N+""!="a=2"&&Z(V,"delete",function(b){var m=arguments.length,M=m<2?void 0:arguments[1];if(m&&M===void 0)return n(this,b);var J=[];Q(this,function(X,B){i(J,{key:B,value:X})}),c(m,1);for(var S=F(b),G=F(M),T=0,p=0,u=!1,Y=J.length,o;T<Y;)o=J[T++],u||o.key===S?(u=!0,n(this,o.key)):p++;for(;p<Y;)o=J[p++],o.key===S&&o.value===G||s(this,o.key,o.value)},{enumerable:!0,unsafe:!0})}),7566:((U,l,d)=>{var Z=d(6840),t=d(9504),F=d(655),c=d(2812),a=URLSearchParams,V=a.prototype,s=t(V.getAll),n=t(V.has),Q=new a("a=1");(Q.has("a",2)||!Q.has("a",void 0))&&Z(V,"has",function(i){var N=arguments.length,b=N<2?void 0:arguments[1];if(N&&b===void 0)return n(this,i);var m=s(this,i);c(N,1);for(var M=F(b),J=0;J<m.length;)if(m[J++]===M)return!0;return!1},{enumerable:!0,unsafe:!0})}),8721:((U,l,d)=>{var Z=d(3724),t=d(9504),F=d(2106),c=URLSearchParams.prototype,a=t(c.forEach);Z&&!("size"in c)&&F(c,"size",{get:function(){var V=0;return a(this,function(){V++}),V},configurable:!0,enumerable:!0})})},YR={};function Wl(U){var l=YR[U];if(l!==void 0)return l.exports;var d=YR[U]={exports:{}};return hm[U].call(d.exports,d,d.exports,Wl),d.exports}Wl.d=(U,l)=>{for(var d in l)Wl.o(l,d)&&!Wl.o(U,d)&&Object.defineProperty(U,d,{enumerable:!0,get:l[d]})};Wl.o=(U,l)=>Object.prototype.hasOwnProperty.call(U,l);var _=globalThis.pdfjsLib={};Wl.d(_,{AbortException:()=>Rt,AnnotationEditorLayer:()=>yM,AnnotationEditorParamsType:()=>tl,AnnotationEditorType:()=>dl,AnnotationEditorUIManager:()=>Na,AnnotationLayer:()=>mM,AnnotationMode:()=>$Z,ColorPicker:()=>jb,DOMSVGFactory:()=>eR,DrawLayer:()=>kM,FeatureTest:()=>Xd,GlobalWorkerOptions:()=>o0,ImageKind:()=>GV,InvalidPDFException:()=>gQ,MissingPDFException:()=>Ra,OPS:()=>hU,OutputScale:()=>NR,PDFDataRangeTransport:()=>sb,PDFDateString:()=>Sh,PDFWorker:()=>xV,PasswordResponses:()=>Mm,PermissionFlag:()=>mm,PixelsPerInch:()=>Zc,RenderingCancelledException:()=>QR,TextLayer:()=>ni,TouchManager:()=>kh,UnexpectedResponseException:()=>ln,Util:()=>O,VerbosityLevel:()=>yn,XfaLayer:()=>ib,build:()=>q2,createValidAbsoluteUrl:()=>Tm,fetchData:()=>In,getDocument:()=>x2,getFilenameFromUrl:()=>zm,getPdfFilenameFromUrl:()=>Lm,getXfaPageViewport:()=>Im,isDataScheme:()=>Dn,isPdfFile:()=>iR,noContextMenu:()=>mU,normalizeUnicode:()=>om,setLayerDimensions:()=>GF,shadow:()=>Ul,stopEvent:()=>Kd,version:()=>_2});Wl(4114);Wl(6573);Wl(8100);Wl(7936);Wl(7467);Wl(4732);Wl(9577);Wl(5247);Wl(4979);Wl(4603);Wl(7566);Wl(8721);const ed=typeof process=="object"&&process+""=="[object process]"&&!process.versions.nw&&!(process.versions.electron&&process.type&&process.type!=="browser"),Jh=[1,0,0,1,0,0],OQ=[.001,0,0,.001,0,0],bm=1e7,jn=1.35,jd={ANY:1,DISPLAY:2,PRINT:4,ANNOTATIONS_FORMS:16,ANNOTATIONS_STORAGE:32,ANNOTATIONS_DISABLE:64,IS_EDITING:128,OPLIST:256},$Z={DISABLE:0,ENABLE:1,ENABLE_FORMS:2,ENABLE_STORAGE:3},em="pdfjs_internal_editor_",dl={DISABLE:-1,NONE:0,FREETEXT:3,HIGHLIGHT:9,STAMP:13,INK:15},tl={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,DRAW_STEP:41},mm={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048},Vd={FILL:0,STROKE:1,FILL_STROKE:2,INVISIBLE:3,FILL_STROKE_MASK:3,ADD_TO_PATH_FLAG:4},GV={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3},jl={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},Wc={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5},yn={ERRORS:0,WARNINGS:1,INFOS:5},hU={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,setStrokeTransparent:92,setFillTransparent:93},Mm={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};let kn=yn.WARNINGS;function Jm(U){Number.isInteger(U)&&(kn=U)}function Gm(){return kn}function zn(U){kn>=yn.INFOS&&console.log(`Info: ${U}`)}function q(U){kn>=yn.WARNINGS&&console.log(`Warning: ${U}`)}function el(U){throw new Error(U)}function wl(U,l){U||el(l)}function Sm(U){switch(U?.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}function Tm(U,l=null,d=null){if(!U)return null;try{if(d&&typeof U=="string"){if(d.addDefaultProtocol&&U.startsWith("www.")){const t=U.match(/\./g);t?.length>=2&&(U=`http://${U}`)}if(d.tryConvertEncoding)try{U=Bm(U)}catch{}}const Z=l?new URL(U,l):new URL(U);if(Sm(Z))return Z}catch{}return null}function Ul(U,l,d,Z=!1){return Object.defineProperty(U,l,{value:d,enumerable:!Z,configurable:!0,writable:!1}),d}const ht=(function(){function U(l,d){this.message=l,this.name=d}return U.prototype=new Error,U.constructor=U,U})();class BR extends ht{constructor(l,d){super(l,"PasswordException"),this.code=d}}class On extends ht{constructor(l,d){super(l,"UnknownErrorException"),this.details=d}}let gQ=class extends ht{constructor(U){super(U,"InvalidPDFException")}},Ra=class extends ht{constructor(U){super(U,"MissingPDFException")}},ln=class extends ht{constructor(U,l){super(U,"UnexpectedResponseException"),this.status=l}};class Xm extends ht{constructor(l){super(l,"FormatError")}}let Rt=class extends ht{constructor(U){super(U,"AbortException")}};function Gh(U){(typeof U!="object"||U?.length===void 0)&&el("Invalid argument for bytesToString");const l=U.length,d=8192;if(l<d)return String.fromCharCode.apply(null,U);const Z=[];for(let t=0;t<l;t+=d){const F=Math.min(t+d,l),c=U.subarray(t,F);Z.push(String.fromCharCode.apply(null,c))}return Z.join("")}function Ln(U){typeof U!="string"&&el("Invalid argument for stringToBytes");const l=U.length,d=new Uint8Array(l);for(let Z=0;Z<l;++Z)d[Z]=U.charCodeAt(Z)&255;return d}function pm(U){return String.fromCharCode(U>>24&255,U>>16&255,U>>8&255,U&255)}function sR(U){const l=Object.create(null);for(const[d,Z]of U)l[d]=Z;return l}function um(){const U=new Uint8Array(4);return U[0]=1,new Uint32Array(U.buffer,0,1)[0]===1}function Ym(){try{return new Function(""),!0}catch{return!1}}class Xd{static get isLittleEndian(){return Ul(this,"isLittleEndian",um())}static get isEvalSupported(){return Ul(this,"isEvalSupported",Ym())}static get isOffscreenCanvasSupported(){return Ul(this,"isOffscreenCanvasSupported",typeof OffscreenCanvas<"u")}static get isImageDecoderSupported(){return Ul(this,"isImageDecoderSupported",typeof ImageDecoder<"u")}static get platform(){return typeof navigator<"u"&&typeof navigator?.platform=="string"?Ul(this,"platform",{isMac:navigator.platform.includes("Mac"),isWindows:navigator.platform.includes("Win"),isFirefox:typeof navigator?.userAgent=="string"&&navigator.userAgent.includes("Firefox")}):Ul(this,"platform",{isMac:!1,isWindows:!1,isFirefox:!1})}static get isCSSRoundSupported(){var l,d;return Ul(this,"isCSSRoundSupported",(d=(l=globalThis.CSS)==null?void 0:l.supports)==null?void 0:d.call(l,"width: round(1.5px, 1px)"))}}const gn=Array.from(Array(256).keys(),U=>U.toString(16).padStart(2,"0"));var bt,Kn,Sa,Hn;let O=(Kn=class{static makeHexColor(U,l,d){return`#${gn[U]}${gn[l]}${gn[d]}`}static scaleMinMax(U,l){let d;U[0]?(U[0]<0&&(d=l[0],l[0]=l[2],l[2]=d),l[0]*=U[0],l[2]*=U[0],U[3]<0&&(d=l[1],l[1]=l[3],l[3]=d),l[1]*=U[3],l[3]*=U[3]):(d=l[0],l[0]=l[1],l[1]=d,d=l[2],l[2]=l[3],l[3]=d,U[1]<0&&(d=l[1],l[1]=l[3],l[3]=d),l[1]*=U[1],l[3]*=U[1],U[2]<0&&(d=l[0],l[0]=l[2],l[2]=d),l[0]*=U[2],l[2]*=U[2]),l[0]+=U[4],l[1]+=U[5],l[2]+=U[4],l[3]+=U[5]}static transform(U,l){return[U[0]*l[0]+U[2]*l[1],U[1]*l[0]+U[3]*l[1],U[0]*l[2]+U[2]*l[3],U[1]*l[2]+U[3]*l[3],U[0]*l[4]+U[2]*l[5]+U[4],U[1]*l[4]+U[3]*l[5]+U[5]]}static applyTransform(U,l){const d=U[0]*l[0]+U[1]*l[2]+l[4],Z=U[0]*l[1]+U[1]*l[3]+l[5];return[d,Z]}static applyInverseTransform(U,l){const d=l[0]*l[3]-l[1]*l[2],Z=(U[0]*l[3]-U[1]*l[2]+l[2]*l[5]-l[4]*l[3])/d,t=(-U[0]*l[1]+U[1]*l[0]+l[4]*l[1]-l[5]*l[0])/d;return[Z,t]}static getAxialAlignedBoundingBox(U,l){const d=this.applyTransform(U,l),Z=this.applyTransform(U.slice(2,4),l),t=this.applyTransform([U[0],U[3]],l),F=this.applyTransform([U[2],U[1]],l);return[Math.min(d[0],Z[0],t[0],F[0]),Math.min(d[1],Z[1],t[1],F[1]),Math.max(d[0],Z[0],t[0],F[0]),Math.max(d[1],Z[1],t[1],F[1])]}static inverseTransform(U){const l=U[0]*U[3]-U[1]*U[2];return[U[3]/l,-U[1]/l,-U[2]/l,U[0]/l,(U[2]*U[5]-U[4]*U[3])/l,(U[4]*U[1]-U[5]*U[0])/l]}static singularValueDecompose2dScale(U){const l=[U[0],U[2],U[1],U[3]],d=U[0]*l[0]+U[1]*l[2],Z=U[0]*l[1]+U[1]*l[3],t=U[2]*l[0]+U[3]*l[2],F=U[2]*l[1]+U[3]*l[3],c=(d+F)/2,a=Math.sqrt((d+F)**2-4*(d*F-t*Z))/2,V=c+a||1,s=c-a||1;return[Math.sqrt(V),Math.sqrt(s)]}static normalizeRect(U){const l=U.slice(0);return U[0]>U[2]&&(l[0]=U[2],l[2]=U[0]),U[1]>U[3]&&(l[1]=U[3],l[3]=U[1]),l}static intersect(U,l){const d=Math.max(Math.min(U[0],U[2]),Math.min(l[0],l[2])),Z=Math.min(Math.max(U[0],U[2]),Math.max(l[0],l[2]));if(d>Z)return null;const t=Math.max(Math.min(U[1],U[3]),Math.min(l[1],l[3])),F=Math.min(Math.max(U[1],U[3]),Math.max(l[1],l[3]));return t>F?null:[d,t,Z,F]}static bezierBoundingBox(U,l,d,Z,t,F,c,a,V){return V?(V[0]=Math.min(V[0],U,c),V[1]=Math.min(V[1],l,a),V[2]=Math.max(V[2],U,c),V[3]=Math.max(V[3],l,a)):V=[Math.min(U,c),Math.min(l,a),Math.max(U,c),Math.max(l,a)],h(this,bt,Hn).call(this,U,d,t,c,l,Z,F,a,3*(-U+3*(d-t)+c),6*(U-2*d+t),3*(d-U),V),h(this,bt,Hn).call(this,U,d,t,c,l,Z,F,a,3*(-l+3*(Z-F)+a),6*(l-2*Z+F),3*(Z-l),V),V}},bt=new WeakSet,Sa=function(U,l,d,Z,t,F,c,a,V,s){if(V<=0||V>=1)return;const n=1-V,Q=V*V,i=Q*V,N=n*(n*(n*U+3*V*l)+3*Q*d)+i*Z,b=n*(n*(n*t+3*V*F)+3*Q*c)+i*a;s[0]=Math.min(s[0],N),s[1]=Math.min(s[1],b),s[2]=Math.max(s[2],N),s[3]=Math.max(s[3],b)},Hn=function(U,l,d,Z,t,F,c,a,V,s,n,Q){if(Math.abs(V)<1e-12){Math.abs(s)>=1e-12&&h(this,bt,Sa).call(this,U,l,d,Z,t,F,c,a,-n/s,Q);return}const i=s**2-4*n*V;if(i<0)return;const N=Math.sqrt(i),b=2*V;h(this,bt,Sa).call(this,U,l,d,Z,t,F,c,a,(-s+N)/b,Q),h(this,bt,Sa).call(this,U,l,d,Z,t,F,c,a,(-s-N)/b,Q)},e(Kn,bt),Kn);function Bm(U){return decodeURIComponent(escape(U))}let vn=null,oR=null;function om(U){return vn||(vn=/([\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,oR=new Map([["ſt","ſt"]])),U.replaceAll(vn,(l,d,Z)=>d?d.normalize("NFKC"):oR.get(Z))}function ym(){if(typeof crypto.randomUUID=="function")return crypto.randomUUID();const U=new Uint8Array(32);return crypto.getRandomValues(U),Gh(U)}const nR="pdfjs_internal_id_";function km(U){return Uint8Array.prototype.toBase64?U.toBase64():btoa(Gh(U))}Wl(4628);Wl(7642);Wl(8004);Wl(3853);Wl(5876);Wl(2475);Wl(5024);Wl(1698);Wl(1454);Wl(8992);Wl(4743);Wl(3215);Wl(7550);Wl(8335);const qU="http://www.w3.org/2000/svg";var et;let Zc=(et=class{},v(et,"CSS",96),v(et,"PDF",72),v(et,"PDF_TO_CSS_UNITS",et.CSS/et.PDF),et);async function In(U,l="text"){if(xc(U,document.baseURI)){const d=await fetch(U);if(!d.ok)throw new Error(d.statusText);switch(l){case"arraybuffer":return d.arrayBuffer();case"blob":return d.blob();case"json":return d.json()}return d.text()}return new Promise((d,Z)=>{const t=new XMLHttpRequest;t.open("GET",U,!0),t.responseType=l,t.onreadystatechange=()=>{if(t.readyState===XMLHttpRequest.DONE){if(t.status===200||t.status===0){switch(l){case"arraybuffer":case"blob":case"json":d(t.response);return}d(t.responseText);return}Z(new Error(t.statusText))}},t.send(null)})}class ma{constructor({viewBox:l,userUnit:d,scale:Z,rotation:t,offsetX:F=0,offsetY:c=0,dontFlip:a=!1}){this.viewBox=l,this.userUnit=d,this.scale=Z,this.rotation=t,this.offsetX=F,this.offsetY=c,Z*=d;const V=(l[2]+l[0])/2,s=(l[3]+l[1])/2;let n,Q,i,N;switch(t%=360,t<0&&(t+=360),t){case 180:n=-1,Q=0,i=0,N=1;break;case 90:n=0,Q=1,i=1,N=0;break;case 270:n=0,Q=-1,i=-1,N=0;break;case 0:n=1,Q=0,i=0,N=-1;break;default:throw new Error("PageViewport: Invalid rotation, must be a multiple of 90 degrees.")}a&&(i=-i,N=-N);let b,m,M,J;n===0?(b=Math.abs(s-l[1])*Z+F,m=Math.abs(V-l[0])*Z+c,M=(l[3]-l[1])*Z,J=(l[2]-l[0])*Z):(b=Math.abs(V-l[0])*Z+F,m=Math.abs(s-l[1])*Z+c,M=(l[2]-l[0])*Z,J=(l[3]-l[1])*Z),this.transform=[n*Z,Q*Z,i*Z,N*Z,b-n*Z*V-i*Z*s,m-Q*Z*V-N*Z*s],this.width=M,this.height=J}get rawDims(){const{userUnit:l,viewBox:d}=this,Z=d.map(t=>t*l);return Ul(this,"rawDims",{pageWidth:Z[2]-Z[0],pageHeight:Z[3]-Z[1],pageX:Z[0],pageY:Z[1]})}clone({scale:l=this.scale,rotation:d=this.rotation,offsetX:Z=this.offsetX,offsetY:t=this.offsetY,dontFlip:F=!1}={}){return new ma({viewBox:this.viewBox.slice(),userUnit:this.userUnit,scale:l,rotation:d,offsetX:Z,offsetY:t,dontFlip:F})}convertToViewportPoint(l,d){return O.applyTransform([l,d],this.transform)}convertToViewportRectangle(l){const d=O.applyTransform([l[0],l[1]],this.transform),Z=O.applyTransform([l[2],l[3]],this.transform);return[d[0],d[1],Z[0],Z[1]]}convertToPdfPoint(l,d){return O.applyInverseTransform([l,d],this.transform)}}let QR=class extends ht{constructor(U,l=0){super(U,"RenderingCancelledException"),this.extraDelay=l}};function Dn(U){const l=U.length;let d=0;for(;d<l&&U[d].trim()==="";)d++;return U.substring(d,d+5).toLowerCase()==="data:"}function iR(U){return typeof U=="string"&&/\.pdf$/i.test(U)}function zm(U){return[U]=U.split(/[#?]/,1),U.substring(U.lastIndexOf("/")+1)}function Lm(U,l="document.pdf"){if(typeof U!="string")return l;if(Dn(U))return q('getPdfFilenameFromUrl: ignore "data:"-URL for performance reasons.'),l;const d=/^(?:(?:[^:]+:)?\/\/[^/]+)?([^?#]*)(\?[^#]*)?(#.*)?$/,Z=/[^/?#=]+\.pdf\b(?!.*\.pdf\b)/i,t=d.exec(U);let F=Z.exec(t[1])||Z.exec(t[2])||Z.exec(t[3]);if(F&&(F=F[0],F.includes("%")))try{F=Z.exec(decodeURIComponent(F))[0]}catch{}return F||l}class yR{constructor(){v(this,"started",Object.create(null)),v(this,"times",[])}time(l){l in this.started&&q(`Timer is already running for ${l}`),this.started[l]=Date.now()}timeEnd(l){l in this.started||q(`Timer has not been started for ${l}`),this.times.push({name:l,start:this.started[l],end:Date.now()}),delete this.started[l]}toString(){const l=[];let d=0;for(const{name:Z}of this.times)d=Math.max(Z.length,d);for(const{name:Z,start:t,end:F}of this.times)l.push(`${Z.padEnd(d)} ${F-t}ms
|
|
3
3
|
`);return l.join("")}}function xc(U,l){try{const{protocol:d}=l?new URL(U,l):new URL(U);return d==="http:"||d==="https:"}catch{return!1}}function mU(U){U.preventDefault()}function Kd(U){U.preventDefault(),U.stopPropagation()}var Pn,ac;let Sh=(Pn=class{static toDateObject(U){if(!U||typeof U!="string")return null;W(this,ac)||R(this,ac,new RegExp("^D:(\\d{4})(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?([Z|+|-])?(\\d{2})?'?(\\d{2})?'?"));const l=W(this,ac).exec(U);if(!l)return null;const d=parseInt(l[1],10);let Z=parseInt(l[2],10);Z=Z>=1&&Z<=12?Z-1:0;let t=parseInt(l[3],10);t=t>=1&&t<=31?t:1;let F=parseInt(l[4],10);F=F>=0&&F<=23?F:0;let c=parseInt(l[5],10);c=c>=0&&c<=59?c:0;let a=parseInt(l[6],10);a=a>=0&&a<=59?a:0;const V=l[7]||"Z";let s=parseInt(l[8],10);s=s>=0&&s<=23?s:0;let n=parseInt(l[9],10)||0;return n=n>=0&&n<=59?n:0,V==="-"?(F+=s,c+=n):V==="+"&&(F-=s,c-=n),new Date(Date.UTC(d,Z,t,F,c,a))}},ac=new WeakMap,e(Pn,ac),Pn);function Im(U,{scale:l=1,rotation:d=0}){const{width:Z,height:t}=U.attributes.style,F=[0,0,parseInt(Z),parseInt(t)];return new ma({viewBox:F,userUnit:1,scale:l,rotation:d})}function RR(U){if(U.startsWith("#")){const l=parseInt(U.slice(1),16);return[(l&16711680)>>16,(l&65280)>>8,l&255]}return U.startsWith("rgb(")?U.slice(4,-1).split(",").map(l=>parseInt(l)):U.startsWith("rgba(")?U.slice(5,-1).split(",").map(l=>parseInt(l)).slice(0,3):(q(`Not a valid color format: "${U}"`),[0,0,0])}function Dm(U){const l=document.createElement("span");l.style.visibility="hidden",document.body.append(l);for(const d of U.keys()){l.style.color=d;const Z=window.getComputedStyle(l).color;U.set(d,RR(Z))}l.remove()}function Sl(U){const{a:l,b:d,c:Z,d:t,e:F,f:c}=U.getTransform();return[l,d,Z,t,F,c]}function SU(U){const{a:l,b:d,c:Z,d:t,e:F,f:c}=U.getTransform().invertSelf();return[l,d,Z,t,F,c]}function GF(U,l,d=!1,Z=!0){if(l instanceof ma){const{pageWidth:t,pageHeight:F}=l.rawDims,{style:c}=U,a=Xd.isCSSRoundSupported,V=`var(--scale-factor) * ${t}px`,s=`var(--scale-factor) * ${F}px`,n=a?`round(down, ${V}, var(--scale-round-x, 1px))`:`calc(${V})`,Q=a?`round(down, ${s}, var(--scale-round-y, 1px))`:`calc(${s})`;!d||l.rotation%180===0?(c.width=n,c.height=Q):(c.width=Q,c.height=n)}Z&&U.setAttribute("data-main-rotation",l.rotation)}let NR=class{constructor(){const U=window.devicePixelRatio||1;this.sx=U,this.sy=U}get scaled(){return this.sx!==1||this.sy!==1}get symmetric(){return this.sx===this.sy}};var wt,fF,OU,p0,SV,zW,KQ,Th,xU,kR,zR,dn,Xh,HQ;const TV=class XV{constructor(l){e(this,xU),e(this,wt,null),e(this,fF,null),e(this,OU),e(this,p0,null),e(this,SV,null),R(this,OU,l),W(XV,zW)||R(XV,zW,Object.freeze({freetext:"pdfjs-editor-remove-freetext-button",highlight:"pdfjs-editor-remove-highlight-button",ink:"pdfjs-editor-remove-ink-button",stamp:"pdfjs-editor-remove-stamp-button"}))}render(){const l=R(this,wt,document.createElement("div"));l.classList.add("editToolbar","hidden"),l.setAttribute("role","toolbar");const d=W(this,OU)._uiManager._signal;l.addEventListener("contextmenu",mU,{signal:d}),l.addEventListener("pointerdown",h(XV,KQ,Th),{signal:d});const Z=R(this,p0,document.createElement("div"));Z.className="buttons",l.append(Z);const t=W(this,OU).toolbarPosition;if(t){const{style:F}=l,c=W(this,OU)._uiManager.direction==="ltr"?1-t[0]:t[0];F.insetInlineEnd=`${100*c}%`,F.top=`calc(${100*t[1]}% + var(--editor-toolbar-vert-offset))`}return h(this,xU,Xh).call(this),l}get div(){return W(this,wt)}hide(){var l;W(this,wt).classList.add("hidden"),(l=W(this,fF))==null||l.hideDropdown()}show(){var l;W(this,wt).classList.remove("hidden"),(l=W(this,SV))==null||l.shown()}async addAltText(l){const d=await l.render();h(this,xU,dn).call(this,d),W(this,p0).prepend(d,W(this,xU,HQ)),R(this,SV,l)}addColorPicker(l){R(this,fF,l);const d=l.renderButton();h(this,xU,dn).call(this,d),W(this,p0).prepend(d,W(this,xU,HQ))}remove(){var l;W(this,wt).remove(),(l=W(this,fF))==null||l.destroy(),R(this,fF,null)}};wt=new WeakMap,fF=new WeakMap,OU=new WeakMap,p0=new WeakMap,SV=new WeakMap,zW=new WeakMap,KQ=new WeakSet,Th=function(U){U.stopPropagation()},xU=new WeakSet,kR=function(U){W(this,OU)._focusEventsAllowed=!1,Kd(U)},zR=function(U){W(this,OU)._focusEventsAllowed=!0,Kd(U)},dn=function(U){const l=W(this,OU)._uiManager._signal;U.addEventListener("focusin",h(this,xU,kR).bind(this),{capture:!0,signal:l}),U.addEventListener("focusout",h(this,xU,zR).bind(this),{capture:!0,signal:l}),U.addEventListener("contextmenu",mU,{signal:l})},Xh=function(){const{editorType:U,_uiManager:l}=W(this,OU),d=document.createElement("button");d.className="delete",d.tabIndex=0,d.setAttribute("data-l10n-id",W(TV,zW)[U]),h(this,xU,dn).call(this,d),d.addEventListener("click",Z=>{l.delete()},{signal:l._signal}),W(this,p0).append(d)},HQ=function(){const U=document.createElement("div");return U.className="divider",U},e(TV,KQ),e(TV,zW,null);let Em=TV;var pV,VF,u0,LW,ph,uh,LR;class wm{constructor(l){e(this,LW),e(this,pV,null),e(this,VF,null),e(this,u0),R(this,u0,l)}show(l,d,Z){const[t,F]=h(this,LW,uh).call(this,d,Z),{style:c}=W(this,VF)||R(this,VF,h(this,LW,ph).call(this));l.append(W(this,VF)),c.insetInlineEnd=`${100*t}%`,c.top=`calc(${100*F}% + var(--editor-toolbar-vert-offset))`}hide(){W(this,VF).remove()}}pV=new WeakMap,VF=new WeakMap,u0=new WeakMap,LW=new WeakSet,ph=function(){const U=R(this,VF,document.createElement("div"));U.className="editToolbar",U.setAttribute("role","toolbar"),U.addEventListener("contextmenu",mU,{signal:W(this,u0)._signal});const l=R(this,pV,document.createElement("div"));return l.className="buttons",U.append(l),h(this,LW,LR).call(this),U},uh=function(U,l){let d=0,Z=0;for(const t of U){const F=t.y+t.height;if(F<d)continue;const c=t.x+(l?t.width:0);if(F>d){Z=c,d=F;continue}l?c>Z&&(Z=c):c<Z&&(Z=c)}return[l?1-Z:Z,d]},LR=function(){const U=document.createElement("button");U.className="highlightButton",U.tabIndex=0,U.setAttribute("data-l10n-id","pdfjs-highlight-floating-button1");const l=document.createElement("span");U.append(l),l.className="visuallyHidden",l.setAttribute("data-l10n-id","pdfjs-highlight-floating-button-label");const d=W(this,u0)._signal;U.addEventListener("contextmenu",mU,{signal:d}),U.addEventListener("click",()=>{W(this,u0).highlightSelection("floating_button")},{signal:d}),W(this,pV).append(U)};function Un(U,l,d){for(const Z of d)l.addEventListener(Z,U[Z].bind(U))}var vQ;class Cm{constructor(){e(this,vQ,0)}get id(){return`${em}${Td(this,vQ)._++}`}}vQ=new WeakMap;var IW,Zn,Ol,jc,uV;const Yh=class{constructor(){e(this,jc),e(this,IW,ym()),e(this,Zn,0),e(this,Ol,null)}static get _isSVGFittingCanvas(){const l='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>',d=new OffscreenCanvas(1,3).getContext("2d",{willReadFrequently:!0}),Z=new Image;Z.src=l;const t=Z.decode().then(()=>(d.drawImage(Z,0,0,1,1,0,0,1,3),new Uint32Array(d.getImageData(0,0,1,1).data.buffer)[0]===0));return Ul(this,"_isSVGFittingCanvas",t)}async getFromFile(l){const{lastModified:d,name:Z,size:t,type:F}=l;return h(this,jc,uV).call(this,`${d}_${Z}_${t}_${F}`,l)}async getFromUrl(l){return h(this,jc,uV).call(this,l,l)}async getFromBlob(l,d){const Z=await d;return h(this,jc,uV).call(this,l,Z)}async getFromId(l){W(this,Ol)||R(this,Ol,new Map);const d=W(this,Ol).get(l);if(!d)return null;if(d.bitmap)return d.refCounter+=1,d;if(d.file)return this.getFromFile(d.file);if(d.blobPromise){const{blobPromise:Z}=d;return delete d.blobPromise,this.getFromBlob(d.id,Z)}return this.getFromUrl(d.url)}getFromCanvas(l,d){W(this,Ol)||R(this,Ol,new Map);let Z=W(this,Ol).get(l);if(Z!=null&&Z.bitmap)return Z.refCounter+=1,Z;const t=new OffscreenCanvas(d.width,d.height);return t.getContext("2d").drawImage(d,0,0),Z={bitmap:t.transferToImageBitmap(),id:`image_${W(this,IW)}_${Td(this,Zn)._++}`,refCounter:1,isSvg:!1},W(this,Ol).set(l,Z),W(this,Ol).set(Z.id,Z),Z}getSvgUrl(l){const d=W(this,Ol).get(l);return d!=null&&d.isSvg?d.svgUrl:null}deleteId(l){var d;W(this,Ol)||R(this,Ol,new Map);const Z=W(this,Ol).get(l);if(!Z||(Z.refCounter-=1,Z.refCounter!==0))return;const{bitmap:t}=Z;if(!Z.url&&!Z.file){const F=new OffscreenCanvas(t.width,t.height);F.getContext("bitmaprenderer").transferFromImageBitmap(t),Z.blobPromise=F.convertToBlob()}(d=t.close)==null||d.call(t),Z.bitmap=null}isValidId(l){return l.startsWith(`image_${W(this,IW)}_`)}};IW=new WeakMap,Zn=new WeakMap,Ol=new WeakMap,jc=new WeakSet,uV=async function(U,l){W(this,Ol)||R(this,Ol,new Map);let d=W(this,Ol).get(U);if(d===null)return null;if(d!=null&&d.bitmap)return d.refCounter+=1,d;try{d||(d={bitmap:null,id:`image_${W(this,IW)}_${Td(this,Zn)._++}`,refCounter:0,isSvg:!1});let Z;if(typeof l=="string"?(d.url=l,Z=await In(l,"blob")):l instanceof File?Z=d.file=l:l instanceof Blob&&(Z=l),Z.type==="image/svg+xml"){const t=Yh._isSVGFittingCanvas,F=new FileReader,c=new Image,a=new Promise((V,s)=>{c.onload=()=>{d.bitmap=c,d.isSvg=!0,V()},F.onload=async()=>{const n=d.svgUrl=F.result;c.src=await t?`${n}#svgView(preserveAspectRatio(none))`:n},c.onerror=F.onerror=s});F.readAsDataURL(Z),await a}else d.bitmap=await createImageBitmap(Z);d.refCounter=1}catch(Z){q(Z),d=null}return W(this,Ol).set(U,d),d&&W(this,Ol).set(d.id,d),d};let rm=Yh;var Il,Ct,YV,Gl;class xm{constructor(l=128){e(this,Il,[]),e(this,Ct,!1),e(this,YV),e(this,Gl,-1),R(this,YV,l)}add({cmd:l,undo:d,post:Z,mustExec:t,type:F=NaN,overwriteIfSameType:c=!1,keepUndo:a=!1}){if(t&&l(),W(this,Ct))return;const V={cmd:l,undo:d,post:Z,type:F};if(W(this,Gl)===-1){W(this,Il).length>0&&(W(this,Il).length=0),R(this,Gl,0),W(this,Il).push(V);return}if(c&&W(this,Il)[W(this,Gl)].type===F){a&&(V.undo=W(this,Il)[W(this,Gl)].undo),W(this,Il)[W(this,Gl)]=V;return}const s=W(this,Gl)+1;s===W(this,YV)?W(this,Il).splice(0,1):(R(this,Gl,s),s<W(this,Il).length&&W(this,Il).splice(s)),W(this,Il).push(V)}undo(){if(W(this,Gl)===-1)return;R(this,Ct,!0);const{undo:l,post:d}=W(this,Il)[W(this,Gl)];l(),d?.(),R(this,Ct,!1),R(this,Gl,W(this,Gl)-1)}redo(){if(W(this,Gl)<W(this,Il).length-1){R(this,Gl,W(this,Gl)+1),R(this,Ct,!0);const{cmd:l,post:d}=W(this,Il)[W(this,Gl)];l(),d?.(),R(this,Ct,!1)}}hasSomethingToUndo(){return W(this,Gl)!==-1}hasSomethingToRedo(){return W(this,Gl)<W(this,Il).length-1}cleanType(l){if(W(this,Gl)!==-1){for(let d=W(this,Gl);d>=0;d--)if(W(this,Il)[d].type!==l){W(this,Il).splice(d+1,W(this,Gl)-d),R(this,Gl,d);return}W(this,Il).length=0,R(this,Gl,-1)}}destroy(){R(this,Il,null)}}Il=new WeakMap,Ct=new WeakMap,YV=new WeakMap,Gl=new WeakMap;var PQ,Bh;class Ma{constructor(l){e(this,PQ),this.buffer=[],this.callbacks=new Map,this.allKeys=new Set;const{isMac:d}=Xd.platform;for(const[Z,t,F={}]of l)for(const c of Z){const a=c.startsWith("mac+");d&&a?(this.callbacks.set(c.slice(4),{callback:t,options:F}),this.allKeys.add(c.split("+").at(-1))):!d&&!a&&(this.callbacks.set(c,{callback:t,options:F}),this.allKeys.add(c.split("+").at(-1)))}}exec(l,d){if(!this.allKeys.has(d.key))return;const Z=this.callbacks.get(h(this,PQ,Bh).call(this,d));if(!Z)return;const{callback:t,options:{bubbles:F=!1,args:c=[],checker:a=null}}=Z;a&&!a(l,d)||(t.bind(l,...c,d)(),F||Kd(d))}}PQ=new WeakSet,Bh=function(U){U.altKey&&this.buffer.push("alt"),U.ctrlKey&&this.buffer.push("ctrl"),U.metaKey&&this.buffer.push("meta"),U.shiftKey&&this.buffer.push("shift"),this.buffer.push(U.key);const l=this.buffer.join("+");return this.buffer.length=0,l};const oh=class yh{get _colors(){const l=new Map([["CanvasText",null],["Canvas",null]]);return Dm(l),Ul(this,"_colors",l)}convert(l){const d=RR(l);if(!window.matchMedia("(forced-colors: active)").matches)return d;for(const[Z,t]of this._colors)if(t.every((F,c)=>F===d[c]))return yh._colorsMapping.get(Z);return d}getHexCode(l){const d=this._colors.get(l);return d?O.makeHexColor(...d):l}};v(oh,"_colorsMapping",new Map([["CanvasText",[0,0,0]],["Canvas",[255,255,255]]]));let jm=oh;var Vc,Hd,vl,Wd,sc,TZ,XF,aU,mt,pF,nc,uF,HU,TU,YF,Ta,Xa,Qc,pa,vU,Mt,ic,Jt,XU,fn,Gt,ua,St,BF,Ya,Ba,Al,Rl,XZ,oF,Rc,oa,Tt,PU,pZ,ya,VU,yF,g,ka,An,IR,DR,za,ER,wR,CR,_n,rR,qn,$n,xR,Md,fU,jR,OR,lQ,gR,Nc,dQ;let Na=(yF=class{constructor(U,l,d,Z,t,F,c,a,V,s,n,Q,i){e(this,g),e(this,Vc,new AbortController),e(this,Hd,null),e(this,vl,new Map),e(this,Wd,new Map),e(this,sc,null),e(this,TZ,null),e(this,XF,null),e(this,aU,new xm),e(this,mt,null),e(this,pF,null),e(this,nc,0),e(this,uF,new Set),e(this,HU,null),e(this,TU,null),e(this,YF,new Set),v(this,"_editorUndoBar",null),e(this,Ta,!1),e(this,Xa,!1),e(this,Qc,!1),e(this,pa,null),e(this,vU,null),e(this,Mt,null),e(this,ic,null),e(this,Jt,!1),e(this,XU,null),e(this,fn,new Cm),e(this,Gt,!1),e(this,ua,!1),e(this,St,null),e(this,BF,null),e(this,Ya,null),e(this,Ba,null),e(this,Al,dl.NONE),e(this,Rl,new Set),e(this,XZ,null),e(this,oF,null),e(this,Rc,null),e(this,oa,{isEditing:!1,isEmpty:!0,hasSomethingToUndo:!1,hasSomethingToRedo:!1,hasSelectedEditor:!1,hasSelectedText:!1}),e(this,Tt,[0,0]),e(this,PU,null),e(this,pZ,null),e(this,ya,null),e(this,VU,null);const N=this._signal=W(this,Vc).signal;R(this,pZ,U),R(this,ya,l),R(this,sc,d),this._eventBus=Z,Z._on("editingaction",this.onEditingAction.bind(this),{signal:N}),Z._on("pagechanging",this.onPageChanging.bind(this),{signal:N}),Z._on("scalechanging",this.onScaleChanging.bind(this),{signal:N}),Z._on("rotationchanging",this.onRotationChanging.bind(this),{signal:N}),Z._on("setpreference",this.onSetPreference.bind(this),{signal:N}),Z._on("switchannotationeditorparams",b=>this.updateParams(b.type,b.value),{signal:N}),h(this,g,ER).call(this),h(this,g,xR).call(this),h(this,g,_n).call(this),R(this,TZ,t.annotationStorage),R(this,pa,t.filterFactory),R(this,oF,F),R(this,ic,c||null),R(this,Ta,a),R(this,Xa,V),R(this,Qc,s),R(this,Ba,n||null),this.viewParameters={realScale:Zc.PDF_TO_CSS_UNITS,rotation:0},this.isShiftKeyDown=!1,this._editorUndoBar=Q||null,this._supportsPinchToZoom=i!==!1}static get _keyboardManager(){const U=yF.prototype,l=F=>W(F,pZ).contains(document.activeElement)&&document.activeElement.tagName!=="BUTTON"&&F.hasSomethingToControl(),d=(F,{target:c})=>{if(c instanceof HTMLInputElement){const{type:a}=c;return a!=="text"&&a!=="number"}return!0},Z=this.TRANSLATE_SMALL,t=this.TRANSLATE_BIG;return Ul(this,"_keyboardManager",new Ma([[["ctrl+a","mac+meta+a"],U.selectAll,{checker:d}],[["ctrl+z","mac+meta+z"],U.undo,{checker:d}],[["ctrl+y","ctrl+shift+z","mac+meta+shift+z","ctrl+shift+Z","mac+meta+shift+Z"],U.redo,{checker:d}],[["Backspace","alt+Backspace","ctrl+Backspace","shift+Backspace","mac+Backspace","mac+alt+Backspace","mac+ctrl+Backspace","Delete","ctrl+Delete","shift+Delete","mac+Delete"],U.delete,{checker:d}],[["Enter","mac+Enter"],U.addNewEditorFromKeyboard,{checker:(F,{target:c})=>!(c instanceof HTMLButtonElement)&&W(F,pZ).contains(c)&&!F.isEnterHandled}],[[" ","mac+ "],U.addNewEditorFromKeyboard,{checker:(F,{target:c})=>!(c instanceof HTMLButtonElement)&&W(F,pZ).contains(document.activeElement)}],[["Escape","mac+Escape"],U.unselectAll],[["ArrowLeft","mac+ArrowLeft"],U.translateSelectedEditors,{args:[-Z,0],checker:l}],[["ctrl+ArrowLeft","mac+shift+ArrowLeft"],U.translateSelectedEditors,{args:[-t,0],checker:l}],[["ArrowRight","mac+ArrowRight"],U.translateSelectedEditors,{args:[Z,0],checker:l}],[["ctrl+ArrowRight","mac+shift+ArrowRight"],U.translateSelectedEditors,{args:[t,0],checker:l}],[["ArrowUp","mac+ArrowUp"],U.translateSelectedEditors,{args:[0,-Z],checker:l}],[["ctrl+ArrowUp","mac+shift+ArrowUp"],U.translateSelectedEditors,{args:[0,-t],checker:l}],[["ArrowDown","mac+ArrowDown"],U.translateSelectedEditors,{args:[0,Z],checker:l}],[["ctrl+ArrowDown","mac+shift+ArrowDown"],U.translateSelectedEditors,{args:[0,t],checker:l}]]))}destroy(){var U,l,d,Z,t;(U=W(this,VU))==null||U.resolve(),R(this,VU,null),(l=W(this,Vc))==null||l.abort(),R(this,Vc,null),this._signal=null;for(const F of W(this,Wd).values())F.destroy();W(this,Wd).clear(),W(this,vl).clear(),W(this,YF).clear(),R(this,Hd,null),W(this,Rl).clear(),W(this,aU).destroy(),(d=W(this,sc))==null||d.destroy(),(Z=W(this,XU))==null||Z.hide(),R(this,XU,null),W(this,vU)&&(clearTimeout(W(this,vU)),R(this,vU,null)),W(this,PU)&&(clearTimeout(W(this,PU)),R(this,PU,null)),(t=this._editorUndoBar)==null||t.destroy()}combinedSignal(U){return AbortSignal.any([this._signal,U.signal])}get mlManager(){return W(this,Ba)}get useNewAltTextFlow(){return W(this,Xa)}get useNewAltTextWhenAddingImage(){return W(this,Qc)}get hcmFilter(){return Ul(this,"hcmFilter",W(this,oF)?W(this,pa).addHCMFilter(W(this,oF).foreground,W(this,oF).background):"none")}get direction(){return Ul(this,"direction",getComputedStyle(W(this,pZ)).direction)}get highlightColors(){return Ul(this,"highlightColors",W(this,ic)?new Map(W(this,ic).split(",").map(U=>U.split("=").map(l=>l.trim()))):null)}get highlightColorNames(){return Ul(this,"highlightColorNames",this.highlightColors?new Map(Array.from(this.highlightColors,U=>U.reverse())):null)}setCurrentDrawingSession(U){U?(this.unselectAll(),this.disableUserSelect(!0)):this.disableUserSelect(!1),R(this,pF,U)}setMainHighlightColorPicker(U){R(this,Ya,U)}editAltText(U,l=!1){var d;(d=W(this,sc))==null||d.editAltText(this,U,l)}switchToMode(U,l){this._eventBus.on("annotationeditormodechanged",l,{once:!0,signal:this._signal}),this._eventBus.dispatch("showannotationeditorui",{source:this,mode:U})}setPreference(U,l){this._eventBus.dispatch("setpreference",{source:this,name:U,value:l})}onSetPreference({name:U,value:l}){switch(U){case"enableNewAltTextWhenAddingImage":R(this,Qc,l);break}}onPageChanging({pageNumber:U}){R(this,nc,U-1)}focusMainContainer(){W(this,pZ).focus()}findParent(U,l){for(const d of W(this,Wd).values()){const{x:Z,y:t,width:F,height:c}=d.div.getBoundingClientRect();if(U>=Z&&U<=Z+F&&l>=t&&l<=t+c)return d}return null}disableUserSelect(U=!1){W(this,ya).classList.toggle("noUserSelect",U)}addShouldRescale(U){W(this,YF).add(U)}removeShouldRescale(U){W(this,YF).delete(U)}onScaleChanging({scale:U}){var l;this.commitOrRemove(),this.viewParameters.realScale=U*Zc.PDF_TO_CSS_UNITS;for(const d of W(this,YF))d.onScaleChanging();(l=W(this,pF))==null||l.onScaleChanging()}onRotationChanging({pagesRotation:U}){this.commitOrRemove(),this.viewParameters.rotation=U}highlightSelection(U=""){const l=document.getSelection();if(!l||l.isCollapsed)return;const{anchorNode:d,anchorOffset:Z,focusNode:t,focusOffset:F}=l,c=l.toString(),a=h(this,g,ka).call(this,l).closest(".textLayer"),V=this.getSelectionBoxes(a);if(!V)return;l.empty();const s=h(this,g,An).call(this,a),n=W(this,Al)===dl.NONE,Q=()=>{s?.createAndAddNewEditor({x:0,y:0},!1,{methodOfCreation:U,boxes:V,anchorNode:d,anchorOffset:Z,focusNode:t,focusOffset:F,text:c}),n&&this.showAllEditors("highlight",!0,!0)};if(n){this.switchToMode(dl.HIGHLIGHT,Q);return}Q()}addToAnnotationStorage(U){!U.isEmpty()&&W(this,TZ)&&!W(this,TZ).has(U.id)&&W(this,TZ).setValue(U.id,U)}blur(){if(this.isShiftKeyDown=!1,W(this,Jt)&&(R(this,Jt,!1),h(this,g,za).call(this,"main_toolbar")),!this.hasSelection)return;const{activeElement:U}=document;for(const l of W(this,Rl))if(l.div.contains(U)){R(this,BF,[l,U]),l._focusEventsAllowed=!1;break}}focus(){if(!W(this,BF))return;const[U,l]=W(this,BF);R(this,BF,null),l.addEventListener("focusin",()=>{U._focusEventsAllowed=!0},{once:!0,signal:this._signal}),l.focus()}addEditListeners(){h(this,g,_n).call(this),h(this,g,qn).call(this)}removeEditListeners(){h(this,g,rR).call(this),h(this,g,$n).call(this)}dragOver(U){for(const{type:l}of U.dataTransfer.items)for(const d of W(this,TU))if(d.isHandlingMimeForPasting(l)){U.dataTransfer.dropEffect="copy",U.preventDefault();return}}drop(U){for(const l of U.dataTransfer.items)for(const d of W(this,TU))if(d.isHandlingMimeForPasting(l.type)){d.paste(l,this.currentLayer),U.preventDefault();return}}copy(U){var l;if(U.preventDefault(),(l=W(this,Hd))==null||l.commitOrRemove(),!this.hasSelection)return;const d=[];for(const Z of W(this,Rl)){const t=Z.serialize(!0);t&&d.push(t)}d.length!==0&&U.clipboardData.setData("application/pdfjs",JSON.stringify(d))}cut(U){this.copy(U),this.delete()}async paste(U){U.preventDefault();const{clipboardData:l}=U;for(const t of l.items)for(const F of W(this,TU))if(F.isHandlingMimeForPasting(t.type)){F.paste(t,this.currentLayer);return}let d=l.getData("application/pdfjs");if(!d)return;try{d=JSON.parse(d)}catch(t){q(`paste: "${t.message}".`);return}if(!Array.isArray(d))return;this.unselectAll();const Z=this.currentLayer;try{const t=[];for(const a of d){const V=await Z.deserialize(a);if(!V)return;t.push(V)}const F=()=>{for(const a of t)h(this,g,lQ).call(this,a);h(this,g,dQ).call(this,t)},c=()=>{for(const a of t)a.remove()};this.addCommands({cmd:F,undo:c,mustExec:!0})}catch(t){q(`paste: "${t.message}".`)}}keydown(U){!this.isShiftKeyDown&&U.key==="Shift"&&(this.isShiftKeyDown=!0),W(this,Al)!==dl.NONE&&!this.isEditorHandlingKeyboard&&yF._keyboardManager.exec(this,U)}keyup(U){this.isShiftKeyDown&&U.key==="Shift"&&(this.isShiftKeyDown=!1,W(this,Jt)&&(R(this,Jt,!1),h(this,g,za).call(this,"main_toolbar")))}onEditingAction({name:U}){switch(U){case"undo":case"redo":case"delete":case"selectAll":this[U]();break;case"highlightSelection":this.highlightSelection("context_menu");break}}setEditingState(U){U?(h(this,g,wR).call(this),h(this,g,qn).call(this),h(this,g,Md).call(this,{isEditing:W(this,Al)!==dl.NONE,isEmpty:h(this,g,Nc).call(this),hasSomethingToUndo:W(this,aU).hasSomethingToUndo(),hasSomethingToRedo:W(this,aU).hasSomethingToRedo(),hasSelectedEditor:!1})):(h(this,g,CR).call(this),h(this,g,$n).call(this),h(this,g,Md).call(this,{isEditing:!1}),this.disableUserSelect(!1))}registerEditorTypes(U){if(!W(this,TU)){R(this,TU,U);for(const l of W(this,TU))h(this,g,fU).call(this,l.defaultPropertiesToUpdate)}}getId(){return W(this,fn).id}get currentLayer(){return W(this,Wd).get(W(this,nc))}getLayer(U){return W(this,Wd).get(U)}get currentPageIndex(){return W(this,nc)}addLayer(U){W(this,Wd).set(U.pageIndex,U),W(this,Gt)?U.enable():U.disable()}removeLayer(U){W(this,Wd).delete(U.pageIndex)}async updateMode(U,l=null,d=!1){var Z;if(W(this,Al)!==U&&!(W(this,VU)&&(await W(this,VU).promise,!W(this,VU)))){if(R(this,VU,Promise.withResolvers()),R(this,Al,U),U===dl.NONE){this.setEditingState(!1),h(this,g,OR).call(this),(Z=this._editorUndoBar)==null||Z.hide(),W(this,VU).resolve();return}this.setEditingState(!0),await h(this,g,jR).call(this),this.unselectAll();for(const t of W(this,Wd).values())t.updateMode(U);if(!l){d&&this.addNewEditorFromKeyboard(),W(this,VU).resolve();return}for(const t of W(this,vl).values())t.annotationElementId===l?(this.setSelected(t),t.enterInEditMode()):t.unselect();W(this,VU).resolve()}}addNewEditorFromKeyboard(){this.currentLayer.canCreateNewEmptyEditor()&&this.currentLayer.addNewEditor()}updateToolbar(U){U!==W(this,Al)&&this._eventBus.dispatch("switchannotationeditormode",{source:this,mode:U})}updateParams(U,l){var d;if(W(this,TU)){switch(U){case tl.CREATE:this.currentLayer.addNewEditor();return;case tl.HIGHLIGHT_DEFAULT_COLOR:(d=W(this,Ya))==null||d.updateColor(l);break;case tl.HIGHLIGHT_SHOW_ALL:this._eventBus.dispatch("reporttelemetry",{source:this,details:{type:"editing",data:{type:"highlight",action:"toggle_visibility"}}}),(W(this,Rc)||R(this,Rc,new Map)).set(U,l),this.showAllEditors("highlight",l);break}for(const Z of W(this,Rl))Z.updateParams(U,l);for(const Z of W(this,TU))Z.updateDefaultParams(U,l)}}showAllEditors(U,l,d=!1){var Z;for(const t of W(this,vl).values())t.editorType===U&&t.show(l);(((Z=W(this,Rc))==null?void 0:Z.get(tl.HIGHLIGHT_SHOW_ALL))??!0)!==l&&h(this,g,fU).call(this,[[tl.HIGHLIGHT_SHOW_ALL,l]])}enableWaiting(U=!1){if(W(this,ua)!==U){R(this,ua,U);for(const l of W(this,Wd).values())U?l.disableClick():l.enableClick(),l.div.classList.toggle("waiting",U)}}getEditors(U){const l=[];for(const d of W(this,vl).values())d.pageIndex===U&&l.push(d);return l}getEditor(U){return W(this,vl).get(U)}addEditor(U){W(this,vl).set(U.id,U)}removeEditor(U){var l;U.div.contains(document.activeElement)&&(W(this,vU)&&clearTimeout(W(this,vU)),R(this,vU,setTimeout(()=>{this.focusMainContainer(),R(this,vU,null)},0))),W(this,vl).delete(U.id),this.unselect(U),(!U.annotationElementId||!W(this,uF).has(U.annotationElementId))&&((l=W(this,TZ))==null||l.remove(U.id))}addDeletedAnnotationElement(U){W(this,uF).add(U.annotationElementId),this.addChangedExistingAnnotation(U),U.deleted=!0}isDeletedAnnotationElement(U){return W(this,uF).has(U)}removeDeletedAnnotationElement(U){W(this,uF).delete(U.annotationElementId),this.removeChangedExistingAnnotation(U),U.deleted=!1}setActiveEditor(U){W(this,Hd)!==U&&(R(this,Hd,U),U&&h(this,g,fU).call(this,U.propertiesToUpdate))}updateUI(U){W(this,g,gR)===U&&h(this,g,fU).call(this,U.propertiesToUpdate)}updateUIForDefaultProperties(U){h(this,g,fU).call(this,U.defaultPropertiesToUpdate)}toggleSelected(U){if(W(this,Rl).has(U)){W(this,Rl).delete(U),U.unselect(),h(this,g,Md).call(this,{hasSelectedEditor:this.hasSelection});return}W(this,Rl).add(U),U.select(),h(this,g,fU).call(this,U.propertiesToUpdate),h(this,g,Md).call(this,{hasSelectedEditor:!0})}setSelected(U){var l;(l=W(this,pF))==null||l.commitOrRemove();for(const d of W(this,Rl))d!==U&&d.unselect();W(this,Rl).clear(),W(this,Rl).add(U),U.select(),h(this,g,fU).call(this,U.propertiesToUpdate),h(this,g,Md).call(this,{hasSelectedEditor:!0})}isSelected(U){return W(this,Rl).has(U)}get firstSelectedEditor(){return W(this,Rl).values().next().value}unselect(U){U.unselect(),W(this,Rl).delete(U),h(this,g,Md).call(this,{hasSelectedEditor:this.hasSelection})}get hasSelection(){return W(this,Rl).size!==0}get isEnterHandled(){return W(this,Rl).size===1&&this.firstSelectedEditor.isEnterHandled}undo(){var U;W(this,aU).undo(),h(this,g,Md).call(this,{hasSomethingToUndo:W(this,aU).hasSomethingToUndo(),hasSomethingToRedo:!0,isEmpty:h(this,g,Nc).call(this)}),(U=this._editorUndoBar)==null||U.hide()}redo(){W(this,aU).redo(),h(this,g,Md).call(this,{hasSomethingToUndo:!0,hasSomethingToRedo:W(this,aU).hasSomethingToRedo(),isEmpty:h(this,g,Nc).call(this)})}addCommands(U){W(this,aU).add(U),h(this,g,Md).call(this,{hasSomethingToUndo:!0,hasSomethingToRedo:!1,isEmpty:h(this,g,Nc).call(this)})}cleanUndoStack(U){W(this,aU).cleanType(U)}delete(){var U;this.commitOrRemove();const l=(U=this.currentLayer)==null?void 0:U.endDrawingSession(!0);if(!this.hasSelection&&!l)return;const d=l?[l]:[...W(this,Rl)],Z=()=>{var F;(F=this._editorUndoBar)==null||F.show(t,d.length===1?d[0].editorType:d.length);for(const c of d)c.remove()},t=()=>{for(const F of d)h(this,g,lQ).call(this,F)};this.addCommands({cmd:Z,undo:t,mustExec:!0})}commitOrRemove(){var U;(U=W(this,Hd))==null||U.commitOrRemove()}hasSomethingToControl(){return W(this,Hd)||this.hasSelection}selectAll(){for(const U of W(this,Rl))U.commit();h(this,g,dQ).call(this,W(this,vl).values())}unselectAll(){var U;if(!(W(this,Hd)&&(W(this,Hd).commitOrRemove(),W(this,Al)!==dl.NONE))&&!((U=W(this,pF))!=null&&U.commitOrRemove())&&this.hasSelection){for(const l of W(this,Rl))l.unselect();W(this,Rl).clear(),h(this,g,Md).call(this,{hasSelectedEditor:!1})}}translateSelectedEditors(U,l,d=!1){if(d||this.commitOrRemove(),!this.hasSelection)return;W(this,Tt)[0]+=U,W(this,Tt)[1]+=l;const[Z,t]=W(this,Tt),F=[...W(this,Rl)];W(this,PU)&&clearTimeout(W(this,PU)),R(this,PU,setTimeout(()=>{R(this,PU,null),W(this,Tt)[0]=W(this,Tt)[1]=0,this.addCommands({cmd:()=>{for(const a of F)W(this,vl).has(a.id)&&a.translateInPage(Z,t)},undo:()=>{for(const a of F)W(this,vl).has(a.id)&&a.translateInPage(-Z,-t)},mustExec:!1})},1e3));for(const a of F)a.translateInPage(U,l)}setUpDragSession(){if(this.hasSelection){this.disableUserSelect(!0),R(this,HU,new Map);for(const U of W(this,Rl))W(this,HU).set(U,{savedX:U.x,savedY:U.y,savedPageIndex:U.pageIndex,newX:0,newY:0,newPageIndex:-1})}}endDragSession(){if(!W(this,HU))return!1;this.disableUserSelect(!1);const U=W(this,HU);R(this,HU,null);let l=!1;for(const[{x:Z,y:t,pageIndex:F},c]of U)c.newX=Z,c.newY=t,c.newPageIndex=F,l||(l=Z!==c.savedX||t!==c.savedY||F!==c.savedPageIndex);if(!l)return!1;const d=(Z,t,F,c)=>{if(W(this,vl).has(Z.id)){const a=W(this,Wd).get(c);a?Z._setParentAndPosition(a,t,F):(Z.pageIndex=c,Z.x=t,Z.y=F)}};return this.addCommands({cmd:()=>{for(const[Z,{newX:t,newY:F,newPageIndex:c}]of U)d(Z,t,F,c)},undo:()=>{for(const[Z,{savedX:t,savedY:F,savedPageIndex:c}]of U)d(Z,t,F,c)},mustExec:!0}),!0}dragSelectedEditors(U,l){if(W(this,HU))for(const d of W(this,HU).keys())d.drag(U,l)}rebuild(U){if(U.parent===null){const l=this.getLayer(U.pageIndex);l?(l.changeParent(U),l.addOrRebuild(U)):(this.addEditor(U),this.addToAnnotationStorage(U),U.rebuild())}else U.parent.addOrRebuild(U)}get isEditorHandlingKeyboard(){var U;return((U=this.getActive())==null?void 0:U.shouldGetKeyboardEvents())||W(this,Rl).size===1&&this.firstSelectedEditor.shouldGetKeyboardEvents()}isActive(U){return W(this,Hd)===U}getActive(){return W(this,Hd)}getMode(){return W(this,Al)}get imageManager(){return Ul(this,"imageManager",new rm)}getSelectionBoxes(U){if(!U)return null;const l=document.getSelection();for(let V=0,s=l.rangeCount;V<s;V++)if(!U.contains(l.getRangeAt(V).commonAncestorContainer))return null;const{x:d,y:Z,width:t,height:F}=U.getBoundingClientRect();let c;switch(U.getAttribute("data-main-rotation")){case"90":c=(V,s,n,Q)=>({x:(s-Z)/F,y:1-(V+n-d)/t,width:Q/F,height:n/t});break;case"180":c=(V,s,n,Q)=>({x:1-(V+n-d)/t,y:1-(s+Q-Z)/F,width:n/t,height:Q/F});break;case"270":c=(V,s,n,Q)=>({x:1-(s+Q-Z)/F,y:(V-d)/t,width:Q/F,height:n/t});break;default:c=(V,s,n,Q)=>({x:(V-d)/t,y:(s-Z)/F,width:n/t,height:Q/F});break}const a=[];for(let V=0,s=l.rangeCount;V<s;V++){const n=l.getRangeAt(V);if(!n.collapsed)for(const{x:Q,y:i,width:N,height:b}of n.getClientRects())N===0||b===0||a.push(c(Q,i,N,b))}return a.length===0?null:a}addChangedExistingAnnotation({annotationElementId:U,id:l}){(W(this,XF)||R(this,XF,new Map)).set(U,l)}removeChangedExistingAnnotation({annotationElementId:U}){var l;(l=W(this,XF))==null||l.delete(U)}renderAnnotationElement(U){var l;const d=(l=W(this,XF))==null?void 0:l.get(U.data.id);if(!d)return;const Z=W(this,TZ).getRawValue(d);Z&&(W(this,Al)===dl.NONE&&!Z.hasBeenModified||Z.renderAnnotationElement(U))}},Vc=new WeakMap,Hd=new WeakMap,vl=new WeakMap,Wd=new WeakMap,sc=new WeakMap,TZ=new WeakMap,XF=new WeakMap,aU=new WeakMap,mt=new WeakMap,pF=new WeakMap,nc=new WeakMap,uF=new WeakMap,HU=new WeakMap,TU=new WeakMap,YF=new WeakMap,Ta=new WeakMap,Xa=new WeakMap,Qc=new WeakMap,pa=new WeakMap,vU=new WeakMap,Mt=new WeakMap,ic=new WeakMap,Jt=new WeakMap,XU=new WeakMap,fn=new WeakMap,Gt=new WeakMap,ua=new WeakMap,St=new WeakMap,BF=new WeakMap,Ya=new WeakMap,Ba=new WeakMap,Al=new WeakMap,Rl=new WeakMap,XZ=new WeakMap,oF=new WeakMap,Rc=new WeakMap,oa=new WeakMap,Tt=new WeakMap,PU=new WeakMap,pZ=new WeakMap,ya=new WeakMap,VU=new WeakMap,g=new WeakSet,ka=function({anchorNode:U}){return U.nodeType===Node.TEXT_NODE?U.parentElement:U},An=function(U){const{currentLayer:l}=this;if(l.hasTextLayer(U))return l;for(const d of W(this,Wd).values())if(d.hasTextLayer(U))return d;return null},IR=function(){const U=document.getSelection();if(!U||U.isCollapsed)return;const l=h(this,g,ka).call(this,U).closest(".textLayer"),d=this.getSelectionBoxes(l);d&&(W(this,XU)||R(this,XU,new wm(this)),W(this,XU).show(l,d,this.direction==="ltr"))},DR=function(){var U,l,d;const Z=document.getSelection();if(!Z||Z.isCollapsed){W(this,XZ)&&((U=W(this,XU))==null||U.hide(),R(this,XZ,null),h(this,g,Md).call(this,{hasSelectedText:!1}));return}const{anchorNode:t}=Z;if(t===W(this,XZ))return;const F=h(this,g,ka).call(this,Z).closest(".textLayer");if(!F){W(this,XZ)&&((l=W(this,XU))==null||l.hide(),R(this,XZ,null),h(this,g,Md).call(this,{hasSelectedText:!1}));return}if((d=W(this,XU))==null||d.hide(),R(this,XZ,t),h(this,g,Md).call(this,{hasSelectedText:!0}),!(W(this,Al)!==dl.HIGHLIGHT&&W(this,Al)!==dl.NONE)&&(W(this,Al)===dl.HIGHLIGHT&&this.showAllEditors("highlight",!0,!0),R(this,Jt,this.isShiftKeyDown),!this.isShiftKeyDown)){const c=W(this,Al)===dl.HIGHLIGHT?h(this,g,An).call(this,F):null;c?.toggleDrawing();const a=new AbortController,V=this.combinedSignal(a),s=n=>{n.type==="pointerup"&&n.button!==0||(a.abort(),c?.toggleDrawing(!0),n.type==="pointerup"&&h(this,g,za).call(this,"main_toolbar"))};window.addEventListener("pointerup",s,{signal:V}),window.addEventListener("blur",s,{signal:V})}},za=function(U=""){W(this,Al)===dl.HIGHLIGHT?this.highlightSelection(U):W(this,Ta)&&h(this,g,IR).call(this)},ER=function(){document.addEventListener("selectionchange",h(this,g,DR).bind(this),{signal:this._signal})},wR=function(){if(W(this,Mt))return;R(this,Mt,new AbortController);const U=this.combinedSignal(W(this,Mt));window.addEventListener("focus",this.focus.bind(this),{signal:U}),window.addEventListener("blur",this.blur.bind(this),{signal:U})},CR=function(){var U;(U=W(this,Mt))==null||U.abort(),R(this,Mt,null)},_n=function(){if(W(this,St))return;R(this,St,new AbortController);const U=this.combinedSignal(W(this,St));window.addEventListener("keydown",this.keydown.bind(this),{signal:U}),window.addEventListener("keyup",this.keyup.bind(this),{signal:U})},rR=function(){var U;(U=W(this,St))==null||U.abort(),R(this,St,null)},qn=function(){if(W(this,mt))return;R(this,mt,new AbortController);const U=this.combinedSignal(W(this,mt));document.addEventListener("copy",this.copy.bind(this),{signal:U}),document.addEventListener("cut",this.cut.bind(this),{signal:U}),document.addEventListener("paste",this.paste.bind(this),{signal:U})},$n=function(){var U;(U=W(this,mt))==null||U.abort(),R(this,mt,null)},xR=function(){const U=this._signal;document.addEventListener("dragover",this.dragOver.bind(this),{signal:U}),document.addEventListener("drop",this.drop.bind(this),{signal:U})},Md=function(U){Object.entries(U).some(([l,d])=>W(this,oa)[l]!==d)&&(this._eventBus.dispatch("annotationeditorstateschanged",{source:this,details:Object.assign(W(this,oa),U)}),W(this,Al)===dl.HIGHLIGHT&&U.hasSelectedEditor===!1&&h(this,g,fU).call(this,[[tl.HIGHLIGHT_FREE,!0]]))},fU=function(U){this._eventBus.dispatch("annotationeditorparamschanged",{source:this,details:U})},jR=async function(){if(!W(this,Gt)){R(this,Gt,!0);const U=[];for(const l of W(this,Wd).values())U.push(l.enable());await Promise.all(U);for(const l of W(this,vl).values())l.enable()}},OR=function(){if(this.unselectAll(),W(this,Gt)){R(this,Gt,!1);for(const U of W(this,Wd).values())U.disable();for(const U of W(this,vl).values())U.disable()}},lQ=function(U){const l=W(this,Wd).get(U.pageIndex);l?l.addOrRebuild(U):(this.addEditor(U),this.addToAnnotationStorage(U))},gR=function(){let U=null;for(U of W(this,Rl));return U},Nc=function(){if(W(this,vl).size===0)return!0;if(W(this,vl).size===1)for(const U of W(this,vl).values())return U.isEmpty();return!1},dQ=function(U){for(const l of W(this,Rl))l.unselect();W(this,Rl).clear();for(const l of U)l.isEmpty()||(W(this,Rl).add(l),l.select());h(this,g,Md).call(this,{hasSelectedEditor:this.hasSelection})},v(yF,"TRANSLATE_SMALL",1),v(yF,"TRANSLATE_BIG",10),yF);var Fd,iZ,LU,DW,VZ,UU,Oc,$U,Od,zZ,AF,sZ,Vt,RZ,EW,BV;const gc=class LZ{constructor(l){e(this,RZ),e(this,Fd,null),e(this,iZ,!1),e(this,LU,null),e(this,DW,null),e(this,VZ,null),e(this,UU,null),e(this,Oc,!1),e(this,$U,null),e(this,Od,null),e(this,zZ,null),e(this,AF,null),e(this,sZ,!1),R(this,Od,l),R(this,sZ,l._uiManager.useNewAltTextFlow),W(LZ,Vt)||R(LZ,Vt,Object.freeze({added:"pdfjs-editor-new-alt-text-added-button","added-label":"pdfjs-editor-new-alt-text-added-button-label",missing:"pdfjs-editor-new-alt-text-missing-button","missing-label":"pdfjs-editor-new-alt-text-missing-button-label",review:"pdfjs-editor-new-alt-text-to-review-button","review-label":"pdfjs-editor-new-alt-text-to-review-button-label"}))}static initialize(l){LZ._l10n??(LZ._l10n=l)}async render(){const l=R(this,LU,document.createElement("button"));l.className="altText",l.tabIndex="0";const d=R(this,DW,document.createElement("span"));l.append(d),W(this,sZ)?(l.classList.add("new"),l.setAttribute("data-l10n-id",W(LZ,Vt).missing),d.setAttribute("data-l10n-id",W(LZ,Vt)["missing-label"])):(l.setAttribute("data-l10n-id","pdfjs-editor-alt-text-button"),d.setAttribute("data-l10n-id","pdfjs-editor-alt-text-button-label"));const Z=W(this,Od)._uiManager._signal;l.addEventListener("contextmenu",mU,{signal:Z}),l.addEventListener("pointerdown",F=>F.stopPropagation(),{signal:Z});const t=F=>{F.preventDefault(),W(this,Od)._uiManager.editAltText(W(this,Od)),W(this,sZ)&&W(this,Od)._reportTelemetry({action:"pdfjs.image.alt_text.image_status_label_clicked",data:{label:W(this,RZ,EW)}})};return l.addEventListener("click",t,{capture:!0,signal:Z}),l.addEventListener("keydown",F=>{F.target===l&&F.key==="Enter"&&(R(this,Oc,!0),t(F))},{signal:Z}),await h(this,RZ,BV).call(this),l}finish(){W(this,LU)&&(W(this,LU).focus({focusVisible:W(this,Oc)}),R(this,Oc,!1))}isEmpty(){return W(this,sZ)?W(this,Fd)===null:!W(this,Fd)&&!W(this,iZ)}hasData(){return W(this,sZ)?W(this,Fd)!==null||!!W(this,zZ):this.isEmpty()}get guessedText(){return W(this,zZ)}async setGuessedText(l){W(this,Fd)===null&&(R(this,zZ,l),R(this,AF,await LZ._l10n.get("pdfjs-editor-new-alt-text-generated-alt-text-with-disclaimer",{generatedAltText:l})),h(this,RZ,BV).call(this))}toggleAltTextBadge(l=!1){var d;if(!W(this,sZ)||W(this,Fd)){(d=W(this,$U))==null||d.remove(),R(this,$U,null);return}if(!W(this,$U)){const Z=R(this,$U,document.createElement("div"));Z.className="noAltTextBadge",W(this,Od).div.append(Z)}W(this,$U).classList.toggle("hidden",!l)}serialize(l){let d=W(this,Fd);return!l&&W(this,zZ)===d&&(d=W(this,AF)),{altText:d,decorative:W(this,iZ),guessedText:W(this,zZ),textWithDisclaimer:W(this,AF)}}get data(){return{altText:W(this,Fd),decorative:W(this,iZ)}}set data({altText:l,decorative:d,guessedText:Z,textWithDisclaimer:t,cancel:F=!1}){Z&&(R(this,zZ,Z),R(this,AF,t)),!(W(this,Fd)===l&&W(this,iZ)===d)&&(F||(R(this,Fd,l),R(this,iZ,d)),h(this,RZ,BV).call(this))}toggle(l=!1){W(this,LU)&&(!l&&W(this,UU)&&(clearTimeout(W(this,UU)),R(this,UU,null)),W(this,LU).disabled=!l)}shown(){W(this,Od)._reportTelemetry({action:"pdfjs.image.alt_text.image_status_label_displayed",data:{label:W(this,RZ,EW)}})}destroy(){var l,d;(l=W(this,LU))==null||l.remove(),R(this,LU,null),R(this,DW,null),R(this,VZ,null),(d=W(this,$U))==null||d.remove(),R(this,$U,null)}};Fd=new WeakMap,iZ=new WeakMap,LU=new WeakMap,DW=new WeakMap,VZ=new WeakMap,UU=new WeakMap,Oc=new WeakMap,$U=new WeakMap,Od=new WeakMap,zZ=new WeakMap,AF=new WeakMap,sZ=new WeakMap,Vt=new WeakMap,RZ=new WeakSet,EW=function(){return W(this,Fd)&&"added"||W(this,Fd)===null&&this.guessedText&&"review"||"missing"},BV=async function(){var U,l,d;const Z=W(this,LU);if(!Z)return;if(W(this,sZ)){if(Z.classList.toggle("done",!!W(this,Fd)),Z.setAttribute("data-l10n-id",W(gc,Vt)[W(this,RZ,EW)]),(U=W(this,DW))==null||U.setAttribute("data-l10n-id",W(gc,Vt)[`${W(this,RZ,EW)}-label`]),!W(this,Fd)){(l=W(this,VZ))==null||l.remove();return}}else{if(!W(this,Fd)&&!W(this,iZ)){Z.classList.remove("done"),(d=W(this,VZ))==null||d.remove();return}Z.classList.add("done"),Z.setAttribute("data-l10n-id","pdfjs-editor-alt-text-edit-button")}let t=W(this,VZ);if(!t){R(this,VZ,t=document.createElement("span")),t.className="tooltip",t.setAttribute("role","tooltip"),t.id=`alt-text-tooltip-${W(this,Od).id}`;const c=100,a=W(this,Od)._uiManager._signal;a.addEventListener("abort",()=>{clearTimeout(W(this,UU)),R(this,UU,null)},{once:!0}),Z.addEventListener("mouseenter",()=>{R(this,UU,setTimeout(()=>{R(this,UU,null),W(this,VZ).classList.add("show"),W(this,Od)._reportTelemetry({action:"alt_text_tooltip"})},c))},{signal:a}),Z.addEventListener("mouseleave",()=>{var V;W(this,UU)&&(clearTimeout(W(this,UU)),R(this,UU,null)),(V=W(this,VZ))==null||V.classList.remove("show")},{signal:a})}W(this,iZ)?t.setAttribute("data-l10n-id","pdfjs-editor-alt-text-decorative-tooltip"):(t.removeAttribute("data-l10n-id"),t.textContent=W(this,Fd)),t.parentNode||Z.append(t);const F=W(this,Od).getImageForAltText();F?.setAttribute("aria-describedby",t.id)},e(gc,Vt,null),v(gc,"_l10n",null);let KR=gc;var La,kF,Ia,Da,Ea,wa,Ca,hc,uZ,zF,Xt,LF,HR,vR,UQ,ZQ;let kh=(ZQ=class{constructor({container:U,isPinchingDisabled:l=null,isPinchingStopped:d=null,onPinchStart:Z=null,onPinching:t=null,onPinchEnd:F=null,signal:c}){e(this,LF),e(this,La),e(this,kF,!1),e(this,Ia,null),e(this,Da),e(this,Ea),e(this,wa),e(this,Ca),e(this,hc),e(this,uZ,null),e(this,zF),e(this,Xt,null),R(this,La,U),R(this,Ia,d),R(this,Da,l),R(this,Ea,Z),R(this,wa,t),R(this,Ca,F),R(this,zF,new AbortController),R(this,hc,AbortSignal.any([c,W(this,zF).signal])),U.addEventListener("touchstart",h(this,LF,HR).bind(this),{passive:!1,signal:W(this,hc)})}get MIN_TOUCH_DISTANCE_TO_PINCH(){return Ul(this,"MIN_TOUCH_DISTANCE_TO_PINCH",35/(window.devicePixelRatio||1))}destroy(){var U;(U=W(this,zF))==null||U.abort(),R(this,zF,null)}},La=new WeakMap,kF=new WeakMap,Ia=new WeakMap,Da=new WeakMap,Ea=new WeakMap,wa=new WeakMap,Ca=new WeakMap,hc=new WeakMap,uZ=new WeakMap,zF=new WeakMap,Xt=new WeakMap,LF=new WeakSet,HR=function(U){var l,d,Z;if((l=W(this,Da))!=null&&l.call(this)||U.touches.length<2)return;if(!W(this,Xt)){R(this,Xt,new AbortController);const c=AbortSignal.any([W(this,hc),W(this,Xt).signal]),a=W(this,La),V={signal:c,passive:!1};a.addEventListener("touchmove",h(this,LF,vR).bind(this),V),a.addEventListener("touchend",h(this,LF,UQ).bind(this),V),a.addEventListener("touchcancel",h(this,LF,UQ).bind(this),V),(d=W(this,Ea))==null||d.call(this)}if(Kd(U),U.touches.length!==2||(Z=W(this,Ia))!=null&&Z.call(this)){R(this,uZ,null);return}let[t,F]=U.touches;t.identifier>F.identifier&&([t,F]=[F,t]),R(this,uZ,{touch0X:t.screenX,touch0Y:t.screenY,touch1X:F.screenX,touch1Y:F.screenY})},vR=function(U){var l;if(!W(this,uZ)||U.touches.length!==2)return;let[d,Z]=U.touches;d.identifier>Z.identifier&&([d,Z]=[Z,d]);const{screenX:t,screenY:F}=d,{screenX:c,screenY:a}=Z,V=W(this,uZ),{touch0X:s,touch0Y:n,touch1X:Q,touch1Y:i}=V,N=Q-s,b=i-n,m=c-t,M=a-F,J=Math.hypot(m,M)||1,S=Math.hypot(N,b)||1;if(!W(this,kF)&&Math.abs(S-J)<=ZQ.MIN_TOUCH_DISTANCE_TO_PINCH)return;if(V.touch0X=t,V.touch0Y=F,V.touch1X=c,V.touch1Y=a,U.preventDefault(),!W(this,kF)){R(this,kF,!0);return}const G=[(t+c)/2,(F+a)/2];(l=W(this,wa))==null||l.call(this,G,S,J)},UQ=function(U){var l;W(this,Xt).abort(),R(this,Xt,null),(l=W(this,Ca))==null||l.call(this),W(this,uZ)&&(U.preventDefault(),R(this,uZ,null),R(this,kF,!1))},ZQ);var _F,DU,Tl,Kc,rt,oV,qF,Rd,$F,gZ,RF,tn,Y0,Qd,yV,l0,st,lZ,Hc,vc,Pd,sF,kV,fQ,al,AQ,Fn,_Q,ra,zh,PR,tQ,xa,qQ,Lh,Ih,Dh,$Q,Eh,li,wh,Ch,rh,di,wW;const kl=class _l{constructor(l){e(this,al),e(this,_F,null),e(this,DU,null),e(this,Tl,null),e(this,Kc,!1),e(this,rt,null),e(this,oV,""),e(this,qF,!1),e(this,Rd,null),e(this,$F,null),e(this,gZ,null),e(this,RF,null),e(this,tn,""),e(this,Y0,!1),e(this,Qd,null),e(this,yV,!1),e(this,l0,!1),e(this,st,!1),e(this,lZ,null),e(this,Hc,0),e(this,vc,0),e(this,Pd,null),e(this,sF,null),v(this,"_editToolbar",null),v(this,"_initialOptions",Object.create(null)),v(this,"_initialData",null),v(this,"_isVisible",!0),v(this,"_uiManager",null),v(this,"_focusEventsAllowed",!0),e(this,kV,!1),e(this,fQ,_l._zIndex++),this.parent=l.parent,this.id=l.id,this.width=this.height=null,this.pageIndex=l.parent.pageIndex,this.name=l.name,this.div=null,this._uiManager=l.uiManager,this.annotationElementId=null,this._willKeepAspectRatio=!1,this._initialOptions.isCentered=l.isCentered,this._structTreeParentId=null;const{rotation:d,rawDims:{pageWidth:Z,pageHeight:t,pageX:F,pageY:c}}=this.parent.viewport;this.rotation=d,this.pageRotation=(360+d-this._uiManager.viewParameters.rotation)%360,this.pageDimensions=[Z,t],this.pageTranslation=[F,c];const[a,V]=this.parentDimensions;this.x=l.x/a,this.y=l.y/V,this.isAttachedToDOM=!1,this.deleted=!1}static get _resizerKeyboardManager(){const l=_l.prototype._resizeWithKeyboard,d=Na.TRANSLATE_SMALL,Z=Na.TRANSLATE_BIG;return Ul(this,"_resizerKeyboardManager",new Ma([[["ArrowLeft","mac+ArrowLeft"],l,{args:[-d,0]}],[["ctrl+ArrowLeft","mac+shift+ArrowLeft"],l,{args:[-Z,0]}],[["ArrowRight","mac+ArrowRight"],l,{args:[d,0]}],[["ctrl+ArrowRight","mac+shift+ArrowRight"],l,{args:[Z,0]}],[["ArrowUp","mac+ArrowUp"],l,{args:[0,-d]}],[["ctrl+ArrowUp","mac+shift+ArrowUp"],l,{args:[0,-Z]}],[["ArrowDown","mac+ArrowDown"],l,{args:[0,d]}],[["ctrl+ArrowDown","mac+shift+ArrowDown"],l,{args:[0,Z]}],[["Escape","mac+Escape"],_l.prototype._stopResizingWithKeyboard]]))}get editorType(){return Object.getPrototypeOf(this).constructor._type}static get isDrawer(){return!1}static get _defaultLineColor(){return Ul(this,"_defaultLineColor",this._colorManager.getHexCode("CanvasText"))}static deleteAnnotationElement(l){const d=new Om({id:l.parent.getNextId(),parent:l.parent,uiManager:l._uiManager});d.annotationElementId=l.annotationElementId,d.deleted=!0,d._uiManager.addToAnnotationStorage(d)}static initialize(l,d){if(_l._l10n??(_l._l10n=l),_l._l10nResizer||(_l._l10nResizer=Object.freeze({topLeft:"pdfjs-editor-resizer-top-left",topMiddle:"pdfjs-editor-resizer-top-middle",topRight:"pdfjs-editor-resizer-top-right",middleRight:"pdfjs-editor-resizer-middle-right",bottomRight:"pdfjs-editor-resizer-bottom-right",bottomMiddle:"pdfjs-editor-resizer-bottom-middle",bottomLeft:"pdfjs-editor-resizer-bottom-left",middleLeft:"pdfjs-editor-resizer-middle-left"})),_l._borderLineWidth!==-1)return;const Z=getComputedStyle(document.documentElement);_l._borderLineWidth=parseFloat(Z.getPropertyValue("--outline-width"))||0}static updateDefaultParams(l,d){}static get defaultPropertiesToUpdate(){return[]}static isHandlingMimeForPasting(l){return!1}static paste(l,d){el("Not implemented")}get propertiesToUpdate(){return[]}get _isDraggable(){return W(this,kV)}set _isDraggable(l){var d;R(this,kV,l),(d=this.div)==null||d.classList.toggle("draggable",l)}get isEnterHandled(){return!0}center(){const[l,d]=this.pageDimensions;switch(this.parentRotation){case 90:this.x-=this.height*d/(l*2),this.y+=this.width*l/(d*2);break;case 180:this.x+=this.width/2,this.y+=this.height/2;break;case 270:this.x+=this.height*d/(l*2),this.y-=this.width*l/(d*2);break;default:this.x-=this.width/2,this.y-=this.height/2;break}this.fixAndSetPosition()}addCommands(l){this._uiManager.addCommands(l)}get currentLayer(){return this._uiManager.currentLayer}setInBackground(){this.div.style.zIndex=0}setInForeground(){this.div.style.zIndex=W(this,fQ)}setParent(l){l!==null?(this.pageIndex=l.pageIndex,this.pageDimensions=l.pageDimensions):h(this,al,wW).call(this),this.parent=l}focusin(l){this._focusEventsAllowed&&(W(this,Y0)?R(this,Y0,!1):this.parent.setSelected(this))}focusout(l){var d;if(!this._focusEventsAllowed||!this.isAttachedToDOM)return;const Z=l.relatedTarget;Z!=null&&Z.closest(`#${this.id}`)||(l.preventDefault(),(d=this.parent)!=null&&d.isMultipleSelection||this.commitOrRemove())}commitOrRemove(){this.isEmpty()?this.remove():this.commit()}commit(){this.addToAnnotationStorage()}addToAnnotationStorage(){this._uiManager.addToAnnotationStorage(this)}setAt(l,d,Z,t){const[F,c]=this.parentDimensions;[Z,t]=this.screenToPageTranslation(Z,t),this.x=(l+Z)/F,this.y=(d+t)/c,this.fixAndSetPosition()}translate(l,d){h(this,al,AQ).call(this,this.parentDimensions,l,d)}translateInPage(l,d){W(this,Qd)||R(this,Qd,[this.x,this.y,this.width,this.height]),h(this,al,AQ).call(this,this.pageDimensions,l,d),this.div.scrollIntoView({block:"nearest"})}drag(l,d){W(this,Qd)||R(this,Qd,[this.x,this.y,this.width,this.height]);const{div:Z,parentDimensions:[t,F]}=this;if(this.x+=l/t,this.y+=d/F,this.parent&&(this.x<0||this.x>1||this.y<0||this.y>1)){const{x:Q,y:i}=this.div.getBoundingClientRect();this.parent.findNewParent(this,Q,i)&&(this.x-=Math.floor(this.x),this.y-=Math.floor(this.y))}let{x:c,y:a}=this;const[V,s]=this.getBaseTranslation();c+=V,a+=s;const{style:n}=Z;n.left=`${(100*c).toFixed(2)}%`,n.top=`${(100*a).toFixed(2)}%`,this._onTranslating(c,a),Z.scrollIntoView({block:"nearest"})}_onTranslating(l,d){}_onTranslated(l,d){}get _hasBeenMoved(){return!!W(this,Qd)&&(W(this,Qd)[0]!==this.x||W(this,Qd)[1]!==this.y)}get _hasBeenResized(){return!!W(this,Qd)&&(W(this,Qd)[2]!==this.width||W(this,Qd)[3]!==this.height)}getBaseTranslation(){const[l,d]=this.parentDimensions,{_borderLineWidth:Z}=_l,t=Z/l,F=Z/d;switch(this.rotation){case 90:return[-t,F];case 180:return[t,F];case 270:return[t,-F];default:return[-t,-F]}}get _mustFixPosition(){return!0}fixAndSetPosition(l=this.rotation){const{div:{style:d},pageDimensions:[Z,t]}=this;let{x:F,y:c,width:a,height:V}=this;if(a*=Z,V*=t,F*=Z,c*=t,this._mustFixPosition)switch(l){case 0:F=Math.max(0,Math.min(Z-a,F)),c=Math.max(0,Math.min(t-V,c));break;case 90:F=Math.max(0,Math.min(Z-V,F)),c=Math.min(t,Math.max(a,c));break;case 180:F=Math.min(Z,Math.max(a,F)),c=Math.min(t,Math.max(V,c));break;case 270:F=Math.min(Z,Math.max(V,F)),c=Math.max(0,Math.min(t-a,c));break}this.x=F/=Z,this.y=c/=t;const[s,n]=this.getBaseTranslation();F+=s,c+=n,d.left=`${(100*F).toFixed(2)}%`,d.top=`${(100*c).toFixed(2)}%`,this.moveInDOM()}screenToPageTranslation(l,d){var Z;return h(Z=_l,Fn,_Q).call(Z,l,d,this.parentRotation)}pageTranslationToScreen(l,d){var Z;return h(Z=_l,Fn,_Q).call(Z,l,d,360-this.parentRotation)}get parentScale(){return this._uiManager.viewParameters.realScale}get parentRotation(){return(this._uiManager.viewParameters.rotation+this.pageRotation)%360}get parentDimensions(){const{parentScale:l,pageDimensions:[d,Z]}=this;return[d*l,Z*l]}setDims(l,d){const[Z,t]=this.parentDimensions,{style:F}=this.div;F.width=`${(100*l/Z).toFixed(2)}%`,W(this,qF)||(F.height=`${(100*d/t).toFixed(2)}%`)}fixDims(){const{style:l}=this.div,{height:d,width:Z}=l,t=Z.endsWith("%"),F=!W(this,qF)&&d.endsWith("%");if(t&&F)return;const[c,a]=this.parentDimensions;t||(l.width=`${(100*parseFloat(Z)/c).toFixed(2)}%`),!W(this,qF)&&!F&&(l.height=`${(100*parseFloat(d)/a).toFixed(2)}%`)}getInitialTranslation(){return[0,0]}_onResized(){}static _round(l){return Math.round(l*1e4)/1e4}_onResizing(){}altTextFinish(){var l;(l=W(this,Tl))==null||l.finish()}async addEditToolbar(){return this._editToolbar||W(this,l0)?this._editToolbar:(this._editToolbar=new Em(this),this.div.append(this._editToolbar.render()),W(this,Tl)&&await this._editToolbar.addAltText(W(this,Tl)),this._editToolbar)}removeEditToolbar(){var l;this._editToolbar&&(this._editToolbar.remove(),this._editToolbar=null,(l=W(this,Tl))==null||l.destroy())}addContainer(l){var d;const Z=(d=this._editToolbar)==null?void 0:d.div;Z?Z.before(l):this.div.append(l)}getClientDimensions(){return this.div.getBoundingClientRect()}async addAltTextButton(){W(this,Tl)||(KR.initialize(_l._l10n),R(this,Tl,new KR(this)),W(this,_F)&&(W(this,Tl).data=W(this,_F),R(this,_F,null)),await this.addEditToolbar())}get altTextData(){var l;return(l=W(this,Tl))==null?void 0:l.data}set altTextData(l){W(this,Tl)&&(W(this,Tl).data=l)}get guessedAltText(){var l;return(l=W(this,Tl))==null?void 0:l.guessedText}async setGuessedAltText(l){var d;await((d=W(this,Tl))==null?void 0:d.setGuessedText(l))}serializeAltText(l){var d;return(d=W(this,Tl))==null?void 0:d.serialize(l)}hasAltText(){return!!W(this,Tl)&&!W(this,Tl).isEmpty()}hasAltTextData(){var l;return((l=W(this,Tl))==null?void 0:l.hasData())??!1}render(){var l;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=W(this,Kc)?-1:0,this._isVisible||this.div.classList.add("hidden"),this.setInForeground(),h(this,al,li).call(this);const[d,Z]=this.parentDimensions;this.parentRotation%180!==0&&(this.div.style.maxWidth=`${(100*Z/d).toFixed(2)}%`,this.div.style.maxHeight=`${(100*d/Z).toFixed(2)}%`);const[t,F]=this.getInitialTranslation();return this.translate(t,F),Un(this,this.div,["pointerdown"]),this.isResizable&&this._uiManager._supportsPinchToZoom&&(W(this,sF)||R(this,sF,new kh({container:this.div,isPinchingDisabled:()=>!this.isSelected,onPinchStart:h(this,al,Lh).bind(this),onPinching:h(this,al,Ih).bind(this),onPinchEnd:h(this,al,Dh).bind(this),signal:this._uiManager._signal}))),(l=this._uiManager._editorUndoBar)==null||l.hide(),this.div}pointerdown(l){const{isMac:d}=Xd.platform;if(l.button!==0||l.ctrlKey&&d){l.preventDefault();return}if(R(this,Y0,!0),this._isDraggable){h(this,al,Eh).call(this,l);return}h(this,al,$Q).call(this,l)}get isSelected(){return this._uiManager.isSelected(this)}_onStartDragging(){}_onStopDragging(){}moveInDOM(){W(this,lZ)&&clearTimeout(W(this,lZ)),R(this,lZ,setTimeout(()=>{var l;R(this,lZ,null),(l=this.parent)==null||l.moveEditorInDOM(this)},0))}_setParentAndPosition(l,d,Z){l.changeParent(this),this.x=d,this.y=Z,this.fixAndSetPosition(),this._onTranslated()}getRect(l,d,Z=this.rotation){const t=this.parentScale,[F,c]=this.pageDimensions,[a,V]=this.pageTranslation,s=l/t,n=d/t,Q=this.x*F,i=this.y*c,N=this.width*F,b=this.height*c;switch(Z){case 0:return[Q+s+a,c-i-n-b+V,Q+s+N+a,c-i-n+V];case 90:return[Q+n+a,c-i+s+V,Q+n+b+a,c-i+s+N+V];case 180:return[Q-s-N+a,c-i+n+V,Q-s+a,c-i+n+b+V];case 270:return[Q-n-b+a,c-i-s-N+V,Q-n+a,c-i-s+V];default:throw new Error("Invalid rotation")}}getRectInCurrentCoords(l,d){const[Z,t,F,c]=l,a=F-Z,V=c-t;switch(this.rotation){case 0:return[Z,d-c,a,V];case 90:return[Z,d-t,V,a];case 180:return[F,d-t,a,V];case 270:return[F,d-c,V,a];default:throw new Error("Invalid rotation")}}onceAdded(l){}isEmpty(){return!1}enableEditMode(){R(this,l0,!0)}disableEditMode(){R(this,l0,!1)}isInEditMode(){return W(this,l0)}shouldGetKeyboardEvents(){return W(this,st)}needsToBeRebuilt(){return this.div&&!this.isAttachedToDOM}get isOnScreen(){const{top:l,left:d,bottom:Z,right:t}=this.getClientDimensions(),{innerHeight:F,innerWidth:c}=window;return d<c&&t>0&&l<F&&Z>0}rebuild(){h(this,al,li).call(this)}rotate(l){}resize(){}serializeDeleted(){var l;return{id:this.annotationElementId,deleted:!0,pageIndex:this.pageIndex,popupRef:((l=this._initialData)==null?void 0:l.popupRef)||""}}serialize(l=!1,d=null){el("An editor must be serializable")}static async deserialize(l,d,Z){const t=new this.prototype.constructor({parent:d,id:d.getNextId(),uiManager:Z});t.rotation=l.rotation,R(t,_F,l.accessibilityData);const[F,c]=t.pageDimensions,[a,V,s,n]=t.getRectInCurrentCoords(l.rect,c);return t.x=a/F,t.y=V/c,t.width=s/F,t.height=n/c,t}get hasBeenModified(){return!!this.annotationElementId&&(this.deleted||this.serialize()!==null)}remove(){var l,d;if((l=W(this,RF))==null||l.abort(),R(this,RF,null),this.isEmpty()||this.commit(),this.parent?this.parent.remove(this):this._uiManager.removeEditor(this),W(this,lZ)&&(clearTimeout(W(this,lZ)),R(this,lZ,null)),h(this,al,wW).call(this),this.removeEditToolbar(),W(this,Pd)){for(const Z of W(this,Pd).values())clearTimeout(Z);R(this,Pd,null)}this.parent=null,(d=W(this,sF))==null||d.destroy(),R(this,sF,null)}get isResizable(){return!1}makeResizable(){this.isResizable&&(h(this,al,zh).call(this),W(this,Rd).classList.remove("hidden"),Un(this,this.div,["keydown"]))}get toolbarPosition(){return null}keydown(l){if(!this.isResizable||l.target!==this.div||l.key!=="Enter")return;this._uiManager.setSelected(this),R(this,gZ,{savedX:this.x,savedY:this.y,savedWidth:this.width,savedHeight:this.height});const d=W(this,Rd).children;if(!W(this,DU)){R(this,DU,Array.from(d));const c=h(this,al,wh).bind(this),a=h(this,al,Ch).bind(this),V=this._uiManager._signal;for(const s of W(this,DU)){const n=s.getAttribute("data-resizer-name");s.setAttribute("role","spinbutton"),s.addEventListener("keydown",c,{signal:V}),s.addEventListener("blur",a,{signal:V}),s.addEventListener("focus",h(this,al,rh).bind(this,n),{signal:V}),s.setAttribute("data-l10n-id",_l._l10nResizer[n])}}const Z=W(this,DU)[0];let t=0;for(const c of d){if(c===Z)break;t++}const F=(360-this.rotation+this.parentRotation)%360/90*(W(this,DU).length/4);if(F!==t){if(F<t)for(let a=0;a<t-F;a++)W(this,Rd).append(W(this,Rd).firstChild);else if(F>t)for(let a=0;a<F-t;a++)W(this,Rd).firstChild.before(W(this,Rd).lastChild);let c=0;for(const a of d){const V=W(this,DU)[c++].getAttribute("data-resizer-name");a.setAttribute("data-l10n-id",_l._l10nResizer[V])}}h(this,al,di).call(this,0),R(this,st,!0),W(this,Rd).firstChild.focus({focusVisible:!0}),l.preventDefault(),l.stopImmediatePropagation()}_resizeWithKeyboard(l,d){W(this,st)&&h(this,al,qQ).call(this,W(this,tn),{deltaX:l,deltaY:d,fromKeyboard:!0})}_stopResizingWithKeyboard(){h(this,al,wW).call(this),this.div.focus()}select(){var l,d,Z;if(this.makeResizable(),(l=this.div)==null||l.classList.add("selectedEditor"),!this._editToolbar){this.addEditToolbar().then(()=>{var t,F;(t=this.div)!=null&&t.classList.contains("selectedEditor")&&((F=this._editToolbar)==null||F.show())});return}(d=this._editToolbar)==null||d.show(),(Z=W(this,Tl))==null||Z.toggleAltTextBadge(!1)}unselect(){var l,d,Z,t,F;(l=W(this,Rd))==null||l.classList.add("hidden"),(d=this.div)==null||d.classList.remove("selectedEditor"),(Z=this.div)!=null&&Z.contains(document.activeElement)&&this._uiManager.currentLayer.div.focus({preventScroll:!0}),(t=this._editToolbar)==null||t.hide(),(F=W(this,Tl))==null||F.toggleAltTextBadge(!0)}updateParams(l,d){}disableEditing(){}enableEditing(){}enterInEditMode(){}getImageForAltText(){return null}get contentDiv(){return this.div}get isEditing(){return W(this,yV)}set isEditing(l){R(this,yV,l),this.parent&&(l?(this.parent.setSelected(this),this.parent.setActiveEditor(this)):this.parent.setActiveEditor(null))}setAspectRatio(l,d){R(this,qF,!0);const Z=l/d,{style:t}=this.div;t.aspectRatio=Z,t.height="auto"}static get MIN_SIZE(){return 16}static canCreateNewEmptyEditor(){return!0}get telemetryInitialData(){return{action:"added"}}get telemetryFinalData(){return null}_reportTelemetry(l,d=!1){if(d){W(this,Pd)||R(this,Pd,new Map);const{action:Z}=l;let t=W(this,Pd).get(Z);t&&clearTimeout(t),t=setTimeout(()=>{this._reportTelemetry(l),W(this,Pd).delete(Z),W(this,Pd).size===0&&R(this,Pd,null)},_l._telemetryTimeout),W(this,Pd).set(Z,t);return}l.type||(l.type=this.editorType),this._uiManager._eventBus.dispatch("reporttelemetry",{source:this,details:{type:"editing",data:l}})}show(l=this._isVisible){this.div.classList.toggle("hidden",!l),this._isVisible=l}enable(){this.div&&(this.div.tabIndex=0),R(this,Kc,!1)}disable(){this.div&&(this.div.tabIndex=-1),R(this,Kc,!0)}renderAnnotationElement(l){let d=l.container.querySelector(".annotationContent");if(!d)d=document.createElement("div"),d.classList.add("annotationContent",this.editorType),l.container.prepend(d);else if(d.nodeName==="CANVAS"){const Z=d;d=document.createElement("div"),d.classList.add("annotationContent",this.editorType),Z.before(d)}return d}resetAnnotationElement(l){const{firstChild:d}=l.container;d?.nodeName==="DIV"&&d.classList.contains("annotationContent")&&d.remove()}};_F=new WeakMap,DU=new WeakMap,Tl=new WeakMap,Kc=new WeakMap,rt=new WeakMap,oV=new WeakMap,qF=new WeakMap,Rd=new WeakMap,$F=new WeakMap,gZ=new WeakMap,RF=new WeakMap,tn=new WeakMap,Y0=new WeakMap,Qd=new WeakMap,yV=new WeakMap,l0=new WeakMap,st=new WeakMap,lZ=new WeakMap,Hc=new WeakMap,vc=new WeakMap,Pd=new WeakMap,sF=new WeakMap,kV=new WeakMap,fQ=new WeakMap,al=new WeakSet,AQ=function([U,l],d,Z){[d,Z]=this.screenToPageTranslation(d,Z),this.x+=d/U,this.y+=Z/l,this._onTranslating(this.x,this.y),this.fixAndSetPosition()},Fn=new WeakSet,_Q=function(U,l,d){switch(d){case 90:return[l,-U];case 180:return[-U,-l];case 270:return[-l,U];default:return[U,l]}},ra=function(U){switch(U){case 90:{const[l,d]=this.pageDimensions;return[0,-l/d,d/l,0]}case 180:return[-1,0,0,-1];case 270:{const[l,d]=this.pageDimensions;return[0,l/d,-d/l,0]}default:return[1,0,0,1]}},zh=function(){if(W(this,Rd))return;R(this,Rd,document.createElement("div")),W(this,Rd).classList.add("resizers");const U=this._willKeepAspectRatio?["topLeft","topRight","bottomRight","bottomLeft"]:["topLeft","topMiddle","topRight","middleRight","bottomRight","bottomMiddle","bottomLeft","middleLeft"],l=this._uiManager._signal;for(const d of U){const Z=document.createElement("div");W(this,Rd).append(Z),Z.classList.add("resizer",d),Z.setAttribute("data-resizer-name",d),Z.addEventListener("pointerdown",h(this,al,PR).bind(this,d),{signal:l}),Z.addEventListener("contextmenu",mU,{signal:l}),Z.tabIndex=-1}this.div.prepend(W(this,Rd))},PR=function(U,l){var d;l.preventDefault();const{isMac:Z}=Xd.platform;if(l.button!==0||l.ctrlKey&&Z)return;(d=W(this,Tl))==null||d.toggle(!1);const t=this._isDraggable;this._isDraggable=!1,R(this,$F,[l.screenX,l.screenY]);const F=new AbortController,c=this._uiManager.combinedSignal(F);this.parent.togglePointerEvents(!1),window.addEventListener("pointermove",h(this,al,qQ).bind(this,U),{passive:!0,capture:!0,signal:c}),window.addEventListener("touchmove",Kd,{passive:!1,signal:c}),window.addEventListener("contextmenu",mU,{signal:c}),R(this,gZ,{savedX:this.x,savedY:this.y,savedWidth:this.width,savedHeight:this.height});const a=this.parent.div.style.cursor,V=this.div.style.cursor;this.div.style.cursor=this.parent.div.style.cursor=window.getComputedStyle(l.target).cursor;const s=()=>{var n;F.abort(),this.parent.togglePointerEvents(!0),(n=W(this,Tl))==null||n.toggle(!0),this._isDraggable=t,this.parent.div.style.cursor=a,this.div.style.cursor=V,h(this,al,xa).call(this)};window.addEventListener("pointerup",s,{signal:c}),window.addEventListener("blur",s,{signal:c})},tQ=function(U,l,d,Z){this.width=d,this.height=Z,this.x=U,this.y=l;const[t,F]=this.parentDimensions;this.setDims(t*d,F*Z),this.fixAndSetPosition(),this._onResized()},xa=function(){if(!W(this,gZ))return;const{savedX:U,savedY:l,savedWidth:d,savedHeight:Z}=W(this,gZ);R(this,gZ,null);const t=this.x,F=this.y,c=this.width,a=this.height;t===U&&F===l&&c===d&&a===Z||this.addCommands({cmd:h(this,al,tQ).bind(this,t,F,c,a),undo:h(this,al,tQ).bind(this,U,l,d,Z),mustExec:!0})},qQ=function(U,l){const[d,Z]=this.parentDimensions,t=this.x,F=this.y,c=this.width,a=this.height,V=kl.MIN_SIZE/d,s=kl.MIN_SIZE/Z,n=h(this,al,ra).call(this,this.rotation),Q=(I,L)=>[n[0]*I+n[2]*L,n[1]*I+n[3]*L],i=h(this,al,ra).call(this,360-this.rotation),N=(I,L)=>[i[0]*I+i[2]*L,i[1]*I+i[3]*L];let b,m,M=!1,J=!1;switch(U){case"topLeft":M=!0,b=(I,L)=>[0,0],m=(I,L)=>[I,L];break;case"topMiddle":b=(I,L)=>[I/2,0],m=(I,L)=>[I/2,L];break;case"topRight":M=!0,b=(I,L)=>[I,0],m=(I,L)=>[0,L];break;case"middleRight":J=!0,b=(I,L)=>[I,L/2],m=(I,L)=>[0,L/2];break;case"bottomRight":M=!0,b=(I,L)=>[I,L],m=(I,L)=>[0,0];break;case"bottomMiddle":b=(I,L)=>[I/2,L],m=(I,L)=>[I/2,0];break;case"bottomLeft":M=!0,b=(I,L)=>[0,L],m=(I,L)=>[I,0];break;case"middleLeft":J=!0,b=(I,L)=>[0,L/2],m=(I,L)=>[I,L/2];break}const S=b(c,a),G=m(c,a);let T=Q(...G);const p=kl._round(t+T[0]),u=kl._round(F+T[1]);let Y=1,o=1,X,B;if(l.fromKeyboard)({deltaX:X,deltaY:B}=l);else{const{screenX:I,screenY:L}=l,[H,f]=W(this,$F);[X,B]=this.screenToPageTranslation(I-H,L-f),W(this,$F)[0]=I,W(this,$F)[1]=L}if([X,B]=N(X/d,B/Z),M){const I=Math.hypot(c,a);Y=o=Math.max(Math.min(Math.hypot(G[0]-S[0]-X,G[1]-S[1]-B)/I,1/c,1/a),V/c,s/a)}else J?Y=Math.max(V,Math.min(1,Math.abs(G[0]-S[0]-X)))/c:o=Math.max(s,Math.min(1,Math.abs(G[1]-S[1]-B)))/a;const y=kl._round(c*Y),E=kl._round(a*o);T=Q(...m(y,E));const D=p-T[0],w=u-T[1];W(this,Qd)||R(this,Qd,[this.x,this.y,this.width,this.height]),this.width=y,this.height=E,this.x=D,this.y=w,this.setDims(d*y,Z*E),this.fixAndSetPosition(),this._onResizing()},Lh=function(){var U;R(this,gZ,{savedX:this.x,savedY:this.y,savedWidth:this.width,savedHeight:this.height}),(U=W(this,Tl))==null||U.toggle(!1),this.parent.togglePointerEvents(!1)},Ih=function(U,l,d){let Z=.7*(d/l)+1-.7;if(Z===1)return;const t=h(this,al,ra).call(this,this.rotation),F=(T,p)=>[t[0]*T+t[2]*p,t[1]*T+t[3]*p],[c,a]=this.parentDimensions,V=this.x,s=this.y,n=this.width,Q=this.height,i=kl.MIN_SIZE/c,N=kl.MIN_SIZE/a;Z=Math.max(Math.min(Z,1/n,1/Q),i/n,N/Q);const b=kl._round(n*Z),m=kl._round(Q*Z);if(b===n&&m===Q)return;W(this,Qd)||R(this,Qd,[V,s,n,Q]);const M=F(n/2,Q/2),J=kl._round(V+M[0]),S=kl._round(s+M[1]),G=F(b/2,m/2);this.x=J-G[0],this.y=S-G[1],this.width=b,this.height=m,this.setDims(c*b,a*m),this.fixAndSetPosition(),this._onResizing()},Dh=function(){var U;(U=W(this,Tl))==null||U.toggle(!0),this.parent.togglePointerEvents(!0),h(this,al,xa).call(this)},$Q=function(U){const{isMac:l}=Xd.platform;U.ctrlKey&&!l||U.shiftKey||U.metaKey&&l?this.parent.toggleSelected(this):this.parent.setSelected(this)},Eh=function(U){const{isSelected:l}=this;this._uiManager.setUpDragSession();let d=!1;const Z=new AbortController,t=this._uiManager.combinedSignal(Z),F={capture:!0,passive:!1,signal:t},c=V=>{Z.abort(),R(this,rt,null),R(this,Y0,!1),this._uiManager.endDragSession()||h(this,al,$Q).call(this,V),d&&this._onStopDragging()};l&&(R(this,Hc,U.clientX),R(this,vc,U.clientY),R(this,rt,U.pointerId),R(this,oV,U.pointerType),window.addEventListener("pointermove",V=>{d||(d=!0,this._onStartDragging());const{clientX:s,clientY:n,pointerId:Q}=V;if(Q!==W(this,rt)){Kd(V);return}const[i,N]=this.screenToPageTranslation(s-W(this,Hc),n-W(this,vc));R(this,Hc,s),R(this,vc,n),this._uiManager.dragSelectedEditors(i,N)},F),window.addEventListener("touchmove",Kd,F),window.addEventListener("pointerdown",V=>{V.pointerType===W(this,oV)&&(W(this,sF)||V.isPrimary)&&c(V),Kd(V)},F));const a=V=>{if(!W(this,rt)||W(this,rt)===V.pointerId){c(V);return}Kd(V)};window.addEventListener("pointerup",a,{signal:t}),window.addEventListener("blur",a,{signal:t})},li=function(){if(W(this,RF)||!this.div)return;R(this,RF,new AbortController);const U=this._uiManager.combinedSignal(W(this,RF));this.div.addEventListener("focusin",this.focusin.bind(this),{signal:U}),this.div.addEventListener("focusout",this.focusout.bind(this),{signal:U})},wh=function(U){kl._resizerKeyboardManager.exec(this,U)},Ch=function(U){var l;W(this,st)&&((l=U.relatedTarget)==null?void 0:l.parentNode)!==W(this,Rd)&&h(this,al,wW).call(this)},rh=function(U){R(this,tn,W(this,st)?U:"")},di=function(U){if(W(this,DU))for(const l of W(this,DU))l.tabIndex=U},wW=function(){R(this,st,!1),h(this,al,di).call(this,-1),h(this,al,xa).call(this)},e(kl,Fn),v(kl,"_l10n",null),v(kl,"_l10nResizer",null),v(kl,"_borderLineWidth",-1),v(kl,"_colorManager",new jm),v(kl,"_zIndex",1),v(kl,"_telemetryTimeout",1e3);let Ll=kl;class Om extends Ll{constructor(l){super(l),this.annotationElementId=l.annotationElementId,this.deleted=!0}serialize(){return this.serializeDeleted()}}const fR=3285377520,vd=4294901760,pU=65535;class xh{constructor(l){this.h1=l?l&4294967295:fR,this.h2=l?l&4294967295:fR}update(l){let d,Z;if(typeof l=="string"){d=new Uint8Array(l.length*2),Z=0;for(let m=0,M=l.length;m<M;m++){const J=l.charCodeAt(m);J<=255?d[Z++]=J:(d[Z++]=J>>>8,d[Z++]=J&255)}}else if(ArrayBuffer.isView(l))d=l.slice(),Z=d.byteLength;else throw new Error("Invalid data format, must be a string or TypedArray.");const t=Z>>2,F=Z-t*4,c=new Uint32Array(d.buffer,0,t);let a=0,V=0,s=this.h1,n=this.h2;const Q=3432918353,i=461845907,N=Q&pU,b=i&pU;for(let m=0;m<t;m++)m&1?(a=c[m],a=a*Q&vd|a*N&pU,a=a<<15|a>>>17,a=a*i&vd|a*b&pU,s^=a,s=s<<13|s>>>19,s=s*5+3864292196):(V=c[m],V=V*Q&vd|V*N&pU,V=V<<15|V>>>17,V=V*i&vd|V*b&pU,n^=V,n=n<<13|n>>>19,n=n*5+3864292196);switch(a=0,F){case 3:a^=d[t*4+2]<<16;case 2:a^=d[t*4+1]<<8;case 1:a^=d[t*4],a=a*Q&vd|a*N&pU,a=a<<15|a>>>17,a=a*i&vd|a*b&pU,t&1?s^=a:n^=a}this.h1=s,this.h2=n}hexdigest(){let l=this.h1,d=this.h2;return l^=d>>>1,l=l*3981806797&vd|l*36045&pU,d=d*4283543511&vd|((d<<16|l>>>16)*2950163797&vd)>>>16,l^=d>>>1,l=l*444984403&vd|l*60499&pU,d=d*3301882366&vd|((d<<16|l>>>16)*3120437893&vd)>>>16,l^=d>>>1,(l>>>0).toString(16).padStart(8,"0")+(d>>>0).toString(16).padStart(8,"0")}}const Ui=Object.freeze({map:null,hash:"",transfer:void 0});var K0,d0,ql,Zi,jh;class hR{constructor(){e(this,Zi),e(this,K0,!1),e(this,d0,null),e(this,ql,new Map),this.onSetModified=null,this.onResetModified=null,this.onAnnotationEditor=null}getValue(l,d){const Z=W(this,ql).get(l);return Z===void 0?d:Object.assign(d,Z)}getRawValue(l){return W(this,ql).get(l)}remove(l){if(W(this,ql).delete(l),W(this,ql).size===0&&this.resetModified(),typeof this.onAnnotationEditor=="function"){for(const d of W(this,ql).values())if(d instanceof Ll)return;this.onAnnotationEditor(null)}}setValue(l,d){const Z=W(this,ql).get(l);let t=!1;if(Z!==void 0)for(const[F,c]of Object.entries(d))Z[F]!==c&&(t=!0,Z[F]=c);else t=!0,W(this,ql).set(l,d);t&&h(this,Zi,jh).call(this),d instanceof Ll&&typeof this.onAnnotationEditor=="function"&&this.onAnnotationEditor(d.constructor._type)}has(l){return W(this,ql).has(l)}getAll(){return W(this,ql).size>0?sR(W(this,ql)):null}setAll(l){for(const[d,Z]of Object.entries(l))this.setValue(d,Z)}get size(){return W(this,ql).size}resetModified(){W(this,K0)&&(R(this,K0,!1),typeof this.onResetModified=="function"&&this.onResetModified())}get print(){return new Oh(this)}get serializable(){if(W(this,ql).size===0)return Ui;const l=new Map,d=new xh,Z=[],t=Object.create(null);let F=!1;for(const[c,a]of W(this,ql)){const V=a instanceof Ll?a.serialize(!1,t):a;V&&(l.set(c,V),d.update(`${c}:${JSON.stringify(V)}`),F||(F=!!V.bitmap))}if(F)for(const c of l.values())c.bitmap&&Z.push(c.bitmap);return l.size>0?{map:l,hash:d.hexdigest(),transfer:Z}:Ui}get editorStats(){let l=null;const d=new Map;for(const Z of W(this,ql).values()){if(!(Z instanceof Ll))continue;const t=Z.telemetryFinalData;if(!t)continue;const{type:F}=t;d.has(F)||d.set(F,Object.getPrototypeOf(Z).constructor),l||(l=Object.create(null));const c=l[F]||(l[F]=new Map);for(const[a,V]of Object.entries(t)){if(a==="type")continue;let s=c.get(a);s||(s=new Map,c.set(a,s));const n=s.get(V)??0;s.set(V,n+1)}}for(const[Z,t]of d)l[Z]=t.computeTelemetryFinalData(l[Z]);return l}resetModifiedIds(){R(this,d0,null)}get modifiedIds(){if(W(this,d0))return W(this,d0);const l=[];for(const d of W(this,ql).values())!(d instanceof Ll)||!d.annotationElementId||!d.serialize()||l.push(d.annotationElementId);return R(this,d0,{ids:new Set(l),hash:l.join(",")})}}K0=new WeakMap,d0=new WeakMap,ql=new WeakMap,Zi=new WeakSet,jh=function(){W(this,K0)||(R(this,K0,!0),typeof this.onSetModified=="function"&&this.onSetModified())};var zV;class Oh extends hR{constructor(l){super(),e(this,zV);const{map:d,hash:Z,transfer:t}=l.serializable,F=structuredClone(d,t?{transfer:t}:null);R(this,zV,{map:F,hash:Z,transfer:t})}get print(){el("Should not call PrintAnnotationStorage.print")}get serializable(){return W(this,zV)}get modifiedIds(){return Ul(this,"modifiedIds",{ids:new Set,hash:""})}}zV=new WeakMap;var Pc;class gm{constructor({ownerDocument:l=globalThis.document,styleElement:d=null}){e(this,Pc,new Set),this._document=l,this.nativeFontFaces=new Set,this.styleElement=null,this.loadingRequests=[],this.loadTestFontId=0}addNativeFontFace(l){this.nativeFontFaces.add(l),this._document.fonts.add(l)}removeNativeFontFace(l){this.nativeFontFaces.delete(l),this._document.fonts.delete(l)}insertRule(l){this.styleElement||(this.styleElement=this._document.createElement("style"),this._document.documentElement.getElementsByTagName("head")[0].append(this.styleElement));const d=this.styleElement.sheet;d.insertRule(l,d.cssRules.length)}clear(){for(const l of this.nativeFontFaces)this._document.fonts.delete(l);this.nativeFontFaces.clear(),W(this,Pc).clear(),this.styleElement&&(this.styleElement.remove(),this.styleElement=null)}async loadSystemFont({systemFontInfo:l,_inspectFont:d}){if(!(!l||W(this,Pc).has(l.loadedName))){if(wl(!this.disableFontFace,"loadSystemFont shouldn't be called when `disableFontFace` is set."),this.isFontLoadingAPISupported){const{loadedName:Z,src:t,style:F}=l,c=new FontFace(Z,t,F);this.addNativeFontFace(c);try{await c.load(),W(this,Pc).add(Z),d?.(l)}catch{q(`Cannot load system font: ${l.baseFontName}, installing it could help to improve PDF rendering.`),this.removeNativeFontFace(c)}return}el("Not implemented: loadSystemFont without the Font Loading API.")}}async bind(l){if(l.attached||l.missingFile&&!l.systemFontInfo)return;if(l.attached=!0,l.systemFontInfo){await this.loadSystemFont(l);return}if(this.isFontLoadingAPISupported){const Z=l.createNativeFontFace();if(Z){this.addNativeFontFace(Z);try{await Z.loaded}catch(t){throw q(`Failed to load font '${Z.family}': '${t}'.`),l.disableFontFace=!0,t}}return}const d=l.createFontFaceRule();if(d){if(this.insertRule(d),this.isSyncFontLoadingSupported)return;await new Promise(Z=>{const t=this._queueLoadingCallback(Z);this._prepareFontLoadEvent(l,t)})}}get isFontLoadingAPISupported(){var l;const d=!!((l=this._document)!=null&&l.fonts);return Ul(this,"isFontLoadingAPISupported",d)}get isSyncFontLoadingSupported(){let l=!1;return(ed||typeof navigator<"u"&&typeof navigator?.userAgent=="string"&&/Mozilla\/5.0.*?rv:\d+.*? Gecko/.test(navigator.userAgent))&&(l=!0),Ul(this,"isSyncFontLoadingSupported",l)}_queueLoadingCallback(l){function d(){for(wl(!t.done,"completeRequest() cannot be called twice."),t.done=!0;Z.length>0&&Z[0].done;){const F=Z.shift();setTimeout(F.callback,0)}}const{loadingRequests:Z}=this,t={done:!1,complete:d,callback:l};return Z.push(t),t}get _loadTestFont(){const l=atob("T1RUTwALAIAAAwAwQ0ZGIDHtZg4AAAOYAAAAgUZGVE1lkzZwAAAEHAAAABxHREVGABQAFQAABDgAAAAeT1MvMlYNYwkAAAEgAAAAYGNtYXABDQLUAAACNAAAAUJoZWFk/xVFDQAAALwAAAA2aGhlYQdkA+oAAAD0AAAAJGhtdHgD6AAAAAAEWAAAAAZtYXhwAAJQAAAAARgAAAAGbmFtZVjmdH4AAAGAAAAAsXBvc3T/hgAzAAADeAAAACAAAQAAAAEAALZRFsRfDzz1AAsD6AAAAADOBOTLAAAAAM4KHDwAAAAAA+gDIQAAAAgAAgAAAAAAAAABAAADIQAAAFoD6AAAAAAD6AABAAAAAAAAAAAAAAAAAAAAAQAAUAAAAgAAAAQD6AH0AAUAAAKKArwAAACMAooCvAAAAeAAMQECAAACAAYJAAAAAAAAAAAAAQAAAAAAAAAAAAAAAFBmRWQAwAAuAC4DIP84AFoDIQAAAAAAAQAAAAAAAAAAACAAIAABAAAADgCuAAEAAAAAAAAAAQAAAAEAAAAAAAEAAQAAAAEAAAAAAAIAAQAAAAEAAAAAAAMAAQAAAAEAAAAAAAQAAQAAAAEAAAAAAAUAAQAAAAEAAAAAAAYAAQAAAAMAAQQJAAAAAgABAAMAAQQJAAEAAgABAAMAAQQJAAIAAgABAAMAAQQJAAMAAgABAAMAAQQJAAQAAgABAAMAAQQJAAUAAgABAAMAAQQJAAYAAgABWABYAAAAAAAAAwAAAAMAAAAcAAEAAAAAADwAAwABAAAAHAAEACAAAAAEAAQAAQAAAC7//wAAAC7////TAAEAAAAAAAABBgAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAD/gwAyAAAAAQAAAAAAAAAAAAAAAAAAAAABAAQEAAEBAQJYAAEBASH4DwD4GwHEAvgcA/gXBIwMAYuL+nz5tQXkD5j3CBLnEQACAQEBIVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYAAABAQAADwACAQEEE/t3Dov6fAH6fAT+fPp8+nwHDosMCvm1Cvm1DAz6fBQAAAAAAAABAAAAAMmJbzEAAAAAzgTjFQAAAADOBOQpAAEAAAAAAAAADAAUAAQAAAABAAAAAgABAAAAAAAAAAAD6AAAAAAAAA==");return Ul(this,"_loadTestFont",l)}_prepareFontLoadEvent(l,d){function Z(G,T){return G.charCodeAt(T)<<24|G.charCodeAt(T+1)<<16|G.charCodeAt(T+2)<<8|G.charCodeAt(T+3)&255}function t(G,T,p,u){const Y=G.substring(0,T),o=G.substring(T+p);return Y+u+o}let F,c;const a=this._document.createElement("canvas");a.width=1,a.height=1;const V=a.getContext("2d");let s=0;function n(G,T){if(++s>30){q("Load test font never loaded."),T();return}if(V.font="30px "+G,V.fillText(".",0,20),V.getImageData(0,0,1,1).data[3]>0){T();return}setTimeout(n.bind(null,G,T))}const Q=`lt${Date.now()}${this.loadTestFontId++}`;let i=this._loadTestFont;i=t(i,976,Q.length,Q);const N=16,b=1482184792;let m=Z(i,N);for(F=0,c=Q.length-3;F<c;F+=4)m=m-b+Z(Q,F)|0;F<Q.length&&(m=m-b+Z(Q+"XXX",F)|0),i=t(i,N,4,pm(m));const M=`url(data:font/opentype;base64,${btoa(i)});`,J=`@font-face {font-family:"${Q}";src:${M}}`;this.insertRule(J);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 G of[l.loadedName,Q]){const T=this._document.createElement("span");T.textContent="Hi",T.style.fontFamily=G,S.append(T)}this._document.body.append(S),n(Q,()=>{S.remove(),d.complete()})}}Pc=new WeakMap;class Km{constructor(l,{disableFontFace:d=!1,fontExtraProperties:Z=!1,inspectFont:t=null}){this.compiledGlyphs=Object.create(null);for(const F in l)this[F]=l[F];this.disableFontFace=d===!0,this.fontExtraProperties=Z===!0,this._inspectFont=t}createNativeFontFace(){var l;if(!this.data||this.disableFontFace)return null;let d;if(!this.cssFontInfo)d=new FontFace(this.loadedName,this.data,{});else{const Z={weight:this.cssFontInfo.fontWeight};this.cssFontInfo.italicAngle&&(Z.style=`oblique ${this.cssFontInfo.italicAngle}deg`),d=new FontFace(this.cssFontInfo.fontFamily,this.data,Z)}return(l=this._inspectFont)==null||l.call(this,this),d}createFontFaceRule(){var l;if(!this.data||this.disableFontFace)return null;const d=`url(data:${this.mimetype};base64,${km(this.data)});`;let Z;if(!this.cssFontInfo)Z=`@font-face {font-family:"${this.loadedName}";src:${d}}`;else{let t=`font-weight: ${this.cssFontInfo.fontWeight};`;this.cssFontInfo.italicAngle&&(t+=`font-style: oblique ${this.cssFontInfo.italicAngle}deg;`),Z=`@font-face {font-family:"${this.cssFontInfo.fontFamily}";${t}src:${d}}`}return(l=this._inspectFont)==null||l.call(this,this,d),Z}getPathGenerator(l,d){if(this.compiledGlyphs[d]!==void 0)return this.compiledGlyphs[d];const Z=this.loadedName+"_path_"+d;let t;try{t=l.get(Z)}catch(c){q(`getPathGenerator - ignoring character: "${c}".`)}const F=new Path2D(t||"");return this.fontExtraProperties||l.delete(Z),this.compiledGlyphs[d]=F}}const ja={DATA:1,ERROR:2},Dl={CANCEL:1,CANCEL_COMPLETE:2,CLOSE:3,ENQUEUE:4,ERROR:5,PULL:6,PULL_COMPLETE:7,START_COMPLETE:8};function AR(){}function od(U){if(U instanceof Rt||U instanceof gQ||U instanceof Ra||U instanceof BR||U instanceof ln||U instanceof On)return U;switch(U instanceof Error||typeof U=="object"&&U!==null||el('wrapReason: Expected "reason" to be a (possibly cloned) Error.'),U.name){case"AbortException":return new Rt(U.message);case"InvalidPDFException":return new gQ(U.message);case"MissingPDFException":return new Ra(U.message);case"PasswordException":return new BR(U.message,U.code);case"UnexpectedResponseException":return new ln(U.message,U.status);case"UnknownErrorException":return new On(U.message,U.details)}return new On(U.message,U.toString())}var fc,KZ,gh,_R,qR,Oa;class Ac{constructor(l,d,Z){e(this,KZ),e(this,fc,new AbortController),this.sourceName=l,this.targetName=d,this.comObj=Z,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),Z.addEventListener("message",h(this,KZ,gh).bind(this),{signal:W(this,fc).signal})}on(l,d){const Z=this.actionHandler;if(Z[l])throw new Error(`There is already an actionName called "${l}"`);Z[l]=d}send(l,d,Z){this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:l,data:d},Z)}sendWithPromise(l,d,Z){const t=this.callbackId++,F=Promise.withResolvers();this.callbackCapabilities[t]=F;try{this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:l,callbackId:t,data:d},Z)}catch(c){F.reject(c)}return F.promise}sendWithStream(l,d,Z,t){const F=this.streamId++,c=this.sourceName,a=this.targetName,V=this.comObj;return new ReadableStream({start:s=>{const n=Promise.withResolvers();return this.streamControllers[F]={controller:s,startCall:n,pullCall:null,cancelCall:null,isClosed:!1},V.postMessage({sourceName:c,targetName:a,action:l,streamId:F,data:d,desiredSize:s.desiredSize},t),n.promise},pull:s=>{const n=Promise.withResolvers();return this.streamControllers[F].pullCall=n,V.postMessage({sourceName:c,targetName:a,stream:Dl.PULL,streamId:F,desiredSize:s.desiredSize}),n.promise},cancel:s=>{wl(s instanceof Error,"cancel must have a valid reason");const n=Promise.withResolvers();return this.streamControllers[F].cancelCall=n,this.streamControllers[F].isClosed=!0,V.postMessage({sourceName:c,targetName:a,stream:Dl.CANCEL,streamId:F,reason:od(s)}),n.promise}},Z)}destroy(){var l;(l=W(this,fc))==null||l.abort(),R(this,fc,null)}}fc=new WeakMap,KZ=new WeakSet,gh=function({data:U}){if(U.targetName!==this.sourceName)return;if(U.stream){h(this,KZ,qR).call(this,U);return}if(U.callback){const d=U.callbackId,Z=this.callbackCapabilities[d];if(!Z)throw new Error(`Cannot resolve callback ${d}`);if(delete this.callbackCapabilities[d],U.callback===ja.DATA)Z.resolve(U.data);else if(U.callback===ja.ERROR)Z.reject(od(U.reason));else throw new Error("Unexpected callback case");return}const l=this.actionHandler[U.action];if(!l)throw new Error(`Unknown action from worker: ${U.action}`);if(U.callbackId){const d=this.sourceName,Z=U.sourceName,t=this.comObj;Promise.try(l,U.data).then(function(F){t.postMessage({sourceName:d,targetName:Z,callback:ja.DATA,callbackId:U.callbackId,data:F})},function(F){t.postMessage({sourceName:d,targetName:Z,callback:ja.ERROR,callbackId:U.callbackId,reason:od(F)})});return}if(U.streamId){h(this,KZ,_R).call(this,U);return}l(U.data)},_R=function(U){const l=U.streamId,d=this.sourceName,Z=U.sourceName,t=this.comObj,F=this,c=this.actionHandler[U.action],a={enqueue(V,s=1,n){if(this.isCancelled)return;const Q=this.desiredSize;this.desiredSize-=s,Q>0&&this.desiredSize<=0&&(this.sinkCapability=Promise.withResolvers(),this.ready=this.sinkCapability.promise),t.postMessage({sourceName:d,targetName:Z,stream:Dl.ENQUEUE,streamId:l,chunk:V},n)},close(){this.isCancelled||(this.isCancelled=!0,t.postMessage({sourceName:d,targetName:Z,stream:Dl.CLOSE,streamId:l}),delete F.streamSinks[l])},error(V){wl(V instanceof Error,"error must have a valid reason"),!this.isCancelled&&(this.isCancelled=!0,t.postMessage({sourceName:d,targetName:Z,stream:Dl.ERROR,streamId:l,reason:od(V)}))},sinkCapability:Promise.withResolvers(),onPull:null,onCancel:null,isCancelled:!1,desiredSize:U.desiredSize,ready:null};a.sinkCapability.resolve(),a.ready=a.sinkCapability.promise,this.streamSinks[l]=a,Promise.try(c,U.data,a).then(function(){t.postMessage({sourceName:d,targetName:Z,stream:Dl.START_COMPLETE,streamId:l,success:!0})},function(V){t.postMessage({sourceName:d,targetName:Z,stream:Dl.START_COMPLETE,streamId:l,reason:od(V)})})},qR=function(U){const l=U.streamId,d=this.sourceName,Z=U.sourceName,t=this.comObj,F=this.streamControllers[l],c=this.streamSinks[l];switch(U.stream){case Dl.START_COMPLETE:U.success?F.startCall.resolve():F.startCall.reject(od(U.reason));break;case Dl.PULL_COMPLETE:U.success?F.pullCall.resolve():F.pullCall.reject(od(U.reason));break;case Dl.PULL:if(!c){t.postMessage({sourceName:d,targetName:Z,stream:Dl.PULL_COMPLETE,streamId:l,success:!0});break}c.desiredSize<=0&&U.desiredSize>0&&c.sinkCapability.resolve(),c.desiredSize=U.desiredSize,Promise.try(c.onPull||AR).then(function(){t.postMessage({sourceName:d,targetName:Z,stream:Dl.PULL_COMPLETE,streamId:l,success:!0})},function(V){t.postMessage({sourceName:d,targetName:Z,stream:Dl.PULL_COMPLETE,streamId:l,reason:od(V)})});break;case Dl.ENQUEUE:if(wl(F,"enqueue should have stream controller"),F.isClosed)break;F.controller.enqueue(U.chunk);break;case Dl.CLOSE:if(wl(F,"close should have stream controller"),F.isClosed)break;F.isClosed=!0,F.controller.close(),h(this,KZ,Oa).call(this,F,l);break;case Dl.ERROR:wl(F,"error should have stream controller"),F.controller.error(od(U.reason)),h(this,KZ,Oa).call(this,F,l);break;case Dl.CANCEL_COMPLETE:U.success?F.cancelCall.resolve():F.cancelCall.reject(od(U.reason)),h(this,KZ,Oa).call(this,F,l);break;case Dl.CANCEL:if(!c)break;const a=od(U.reason);Promise.try(c.onCancel||AR,a).then(function(){t.postMessage({sourceName:d,targetName:Z,stream:Dl.CANCEL_COMPLETE,streamId:l,success:!0})},function(V){t.postMessage({sourceName:d,targetName:Z,stream:Dl.CANCEL_COMPLETE,streamId:l,reason:od(V)})}),c.sinkCapability.reject(a),c.isCancelled=!0,delete this.streamSinks[l];break;default:throw new Error("Unexpected stream case")}},Oa=async function(U,l){var d,Z,t;await Promise.allSettled([(d=U.startCall)==null?void 0:d.promise,(Z=U.pullCall)==null?void 0:Z.promise,(t=U.cancelCall)==null?void 0:t.promise]),delete this.streamControllers[l]};var LV;class Kh{constructor({enableHWA:l=!1}){e(this,LV,!1),R(this,LV,l)}create(l,d){if(l<=0||d<=0)throw new Error("Invalid canvas size");const Z=this._createCanvas(l,d);return{canvas:Z,context:Z.getContext("2d",{willReadFrequently:!W(this,LV)})}}reset(l,d,Z){if(!l.canvas)throw new Error("Canvas is not specified");if(d<=0||Z<=0)throw new Error("Invalid canvas size");l.canvas.width=d,l.canvas.height=Z}destroy(l){if(!l.canvas)throw new Error("Canvas is not specified");l.canvas.width=0,l.canvas.height=0,l.canvas=null,l.context=null}_createCanvas(l,d){el("Abstract method `_createCanvas` called.")}}LV=new WeakMap;class Hm extends Kh{constructor({ownerDocument:l=globalThis.document,enableHWA:d=!1}){super({enableHWA:d}),this._document=l}_createCanvas(l,d){const Z=this._document.createElement("canvas");return Z.width=l,Z.height=d,Z}}class Hh{constructor({baseUrl:l=null,isCompressed:d=!0}){this.baseUrl=l,this.isCompressed=d}async fetch({name:l}){if(!this.baseUrl)throw new Error("Ensure that the `cMapUrl` and `cMapPacked` API parameters are provided.");if(!l)throw new Error("CMap name must be specified.");const d=this.baseUrl+l+(this.isCompressed?".bcmap":"");return this._fetch(d).then(Z=>({cMapData:Z,isCompressed:this.isCompressed})).catch(Z=>{throw new Error(`Unable to load ${this.isCompressed?"binary ":""}CMap at: ${d}`)})}async _fetch(l){el("Abstract method `_fetch` called.")}}class vh extends Hh{async _fetch(l){const d=await In(l,this.isCompressed?"arraybuffer":"text");return d instanceof ArrayBuffer?new Uint8Array(d):Ln(d)}}Wl(4520);class Ph{addFilter(l){return"none"}addHCMFilter(l,d){return"none"}addAlphaFilter(l){return"none"}addLuminosityFilter(l){return"none"}addHighlightHCMFilter(l,d,Z,t,F){return"none"}destroy(l=!1){}}var U0,H0,lt,IZ,Gd,NF,Z0,K,sd,_c,B0,IV,t0,fh,ti,F0,bc,qc,Fi,$c;class vm extends Ph{constructor({docId:l,ownerDocument:d=globalThis.document}){super(),e(this,K),e(this,U0),e(this,H0),e(this,lt),e(this,IZ),e(this,Gd),e(this,NF),e(this,Z0,0),R(this,IZ,l),R(this,Gd,d)}addFilter(l){if(!l)return"none";let d=W(this,K,sd).get(l);if(d)return d;const[Z,t,F]=h(this,K,IV).call(this,l),c=l.length===1?Z:`${Z}${t}${F}`;if(d=W(this,K,sd).get(c),d)return W(this,K,sd).set(l,d),d;const a=`g_${W(this,IZ)}_transfer_map_${Td(this,Z0)._++}`,V=h(this,K,t0).call(this,a);W(this,K,sd).set(l,V),W(this,K,sd).set(c,V);const s=h(this,K,F0).call(this,a);return h(this,K,qc).call(this,Z,t,F,s),V}addHCMFilter(l,d){var Z;const t=`${l}-${d}`,F="base";let c=W(this,K,_c).get(F);if(c?.key===t||(c?((Z=c.filter)==null||Z.remove(),c.key=t,c.url="none",c.filter=null):(c={key:t,url:"none",filter:null},W(this,K,_c).set(F,c)),!l||!d))return c.url;const a=h(this,K,$c).call(this,l);l=O.makeHexColor(...a);const V=h(this,K,$c).call(this,d);if(d=O.makeHexColor(...V),W(this,K,B0).style.color="",l==="#000000"&&d==="#ffffff"||l===d)return c.url;const s=new Array(256);for(let b=0;b<=255;b++){const m=b/255;s[b]=m<=.03928?m/12.92:((m+.055)/1.055)**2.4}const n=s.join(","),Q=`g_${W(this,IZ)}_hcm_filter`,i=c.filter=h(this,K,F0).call(this,Q);h(this,K,qc).call(this,n,n,n,i),h(this,K,ti).call(this,i);const N=(b,m)=>{const M=a[b]/255,J=V[b]/255,S=new Array(m+1);for(let G=0;G<=m;G++)S[G]=M+G/m*(J-M);return S.join(",")};return h(this,K,qc).call(this,N(0,5),N(1,5),N(2,5),i),c.url=h(this,K,t0).call(this,Q),c.url}addAlphaFilter(l){let d=W(this,K,sd).get(l);if(d)return d;const[Z]=h(this,K,IV).call(this,[l]),t=`alpha_${Z}`;if(d=W(this,K,sd).get(t),d)return W(this,K,sd).set(l,d),d;const F=`g_${W(this,IZ)}_alpha_map_${Td(this,Z0)._++}`,c=h(this,K,t0).call(this,F);W(this,K,sd).set(l,c),W(this,K,sd).set(t,c);const a=h(this,K,F0).call(this,F);return h(this,K,Fi).call(this,Z,a),c}addLuminosityFilter(l){let d=W(this,K,sd).get(l||"luminosity");if(d)return d;let Z,t;if(l?([Z]=h(this,K,IV).call(this,[l]),t=`luminosity_${Z}`):t="luminosity",d=W(this,K,sd).get(t),d)return W(this,K,sd).set(l,d),d;const F=`g_${W(this,IZ)}_luminosity_map_${Td(this,Z0)._++}`,c=h(this,K,t0).call(this,F);W(this,K,sd).set(l,c),W(this,K,sd).set(t,c);const a=h(this,K,F0).call(this,F);return h(this,K,fh).call(this,a),l&&h(this,K,Fi).call(this,Z,a),c}addHighlightHCMFilter(l,d,Z,t,F){var c;const a=`${d}-${Z}-${t}-${F}`;let V=W(this,K,_c).get(l);if(V?.key===a||(V?((c=V.filter)==null||c.remove(),V.key=a,V.url="none",V.filter=null):(V={key:a,url:"none",filter:null},W(this,K,_c).set(l,V)),!d||!Z))return V.url;const[s,n]=[d,Z].map(h(this,K,$c).bind(this));let Q=Math.round(.2126*s[0]+.7152*s[1]+.0722*s[2]),i=Math.round(.2126*n[0]+.7152*n[1]+.0722*n[2]),[N,b]=[t,F].map(h(this,K,$c).bind(this));i<Q&&([Q,i,N,b]=[i,Q,b,N]),W(this,K,B0).style.color="";const m=(S,G,T)=>{const p=new Array(256),u=(i-Q)/T,Y=S/255,o=(G-S)/(255*T);let X=0;for(let B=0;B<=T;B++){const y=Math.round(Q+B*u),E=Y+B*o;for(let D=X;D<=y;D++)p[D]=E;X=y+1}for(let B=X;B<256;B++)p[B]=p[X-1];return p.join(",")},M=`g_${W(this,IZ)}_hcm_${l}_filter`,J=V.filter=h(this,K,F0).call(this,M);return h(this,K,ti).call(this,J),h(this,K,qc).call(this,m(N[0],b[0],5),m(N[1],b[1],5),m(N[2],b[2],5),J),V.url=h(this,K,t0).call(this,M),V.url}destroy(l=!1){var d,Z,t,F;l&&(d=W(this,NF))!=null&&d.size||((Z=W(this,lt))==null||Z.parentNode.parentNode.remove(),R(this,lt,null),(t=W(this,H0))==null||t.clear(),R(this,H0,null),(F=W(this,NF))==null||F.clear(),R(this,NF,null),R(this,Z0,0))}}U0=new WeakMap,H0=new WeakMap,lt=new WeakMap,IZ=new WeakMap,Gd=new WeakMap,NF=new WeakMap,Z0=new WeakMap,K=new WeakSet,sd=function(){return W(this,H0)||R(this,H0,new Map)},_c=function(){return W(this,NF)||R(this,NF,new Map)},B0=function(){if(!W(this,lt)){const U=W(this,Gd).createElement("div"),{style:l}=U;l.visibility="hidden",l.contain="strict",l.width=l.height=0,l.position="absolute",l.top=l.left=0,l.zIndex=-1;const d=W(this,Gd).createElementNS(qU,"svg");d.setAttribute("width",0),d.setAttribute("height",0),R(this,lt,W(this,Gd).createElementNS(qU,"defs")),U.append(d),d.append(W(this,lt)),W(this,Gd).body.append(U)}return W(this,lt)},IV=function(U){if(U.length===1){const a=U[0],V=new Array(256);for(let n=0;n<256;n++)V[n]=a[n]/255;const s=V.join(",");return[s,s,s]}const[l,d,Z]=U,t=new Array(256),F=new Array(256),c=new Array(256);for(let a=0;a<256;a++)t[a]=l[a]/255,F[a]=d[a]/255,c[a]=Z[a]/255;return[t.join(","),F.join(","),c.join(",")]},t0=function(U){if(W(this,U0)===void 0){R(this,U0,"");const l=W(this,Gd).URL;l!==W(this,Gd).baseURI&&(Dn(l)?q('#createUrl: ignore "data:"-URL for performance reasons.'):R(this,U0,l.split("#",1)[0]))}return`url(${W(this,U0)}#${U})`},fh=function(U){const l=W(this,Gd).createElementNS(qU,"feColorMatrix");l.setAttribute("type","matrix"),l.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"),U.append(l)},ti=function(U){const l=W(this,Gd).createElementNS(qU,"feColorMatrix");l.setAttribute("type","matrix"),l.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"),U.append(l)},F0=function(U){const l=W(this,Gd).createElementNS(qU,"filter");return l.setAttribute("color-interpolation-filters","sRGB"),l.setAttribute("id",U),W(this,K,B0).append(l),l},bc=function(U,l,d){const Z=W(this,Gd).createElementNS(qU,l);Z.setAttribute("type","discrete"),Z.setAttribute("tableValues",d),U.append(Z)},qc=function(U,l,d,Z){const t=W(this,Gd).createElementNS(qU,"feComponentTransfer");Z.append(t),h(this,K,bc).call(this,t,"feFuncR",U),h(this,K,bc).call(this,t,"feFuncG",l),h(this,K,bc).call(this,t,"feFuncB",d)},Fi=function(U,l){const d=W(this,Gd).createElementNS(qU,"feComponentTransfer");l.append(d),h(this,K,bc).call(this,d,"feFuncA",U)},$c=function(U){return W(this,K,B0).style.color=U,RR(getComputedStyle(W(this,K,B0)).getPropertyValue("color"))};class Ah{constructor({baseUrl:l=null}){this.baseUrl=l}async fetch({filename:l}){if(!this.baseUrl)throw new Error("Ensure that the `standardFontDataUrl` API parameter is provided.");if(!l)throw new Error("Font filename must be specified.");const d=`${this.baseUrl}${l}`;return this._fetch(d).catch(Z=>{throw new Error(`Unable to load font data at: ${d}`)})}async _fetch(l){el("Abstract method `_fetch` called.")}}class _h extends Ah{async _fetch(l){const d=await In(l,"arraybuffer");return new Uint8Array(d)}}if(ed){let U;try{const l=process.getBuiltinModule("module").createRequire(import.meta.url);try{U=l("@napi-rs/canvas")}catch(d){q(`Cannot load "@napi-rs/canvas" package: "${d}".`)}}catch(l){q(`Cannot access the \`require\` function: "${l}".`)}globalThis.DOMMatrix||(U!=null&&U.DOMMatrix?globalThis.DOMMatrix=U.DOMMatrix:q("Cannot polyfill `DOMMatrix`, rendering may be broken.")),globalThis.ImageData||(U!=null&&U.ImageData?globalThis.ImageData=U.ImageData:q("Cannot polyfill `ImageData`, rendering may be broken.")),globalThis.Path2D||(U!=null&&U.Path2D?globalThis.Path2D=U.Path2D:q("Cannot polyfill `Path2D`, rendering may be broken."))}async function qh(U){const l=await process.getBuiltinModule("fs").promises.readFile(U);return new Uint8Array(l)}class Pm extends Ph{}class fm extends Kh{_createCanvas(l,d){return process.getBuiltinModule("module").createRequire(import.meta.url)("@napi-rs/canvas").createCanvas(l,d)}}class Am extends Hh{async _fetch(l){return qh(l)}}class _m extends Ah{async _fetch(l){return qh(l)}}const hd={FILL:"Fill",STROKE:"Stroke",SHADING:"Shading"};function ci(U,l){if(!l)return;const d=l[2]-l[0],Z=l[3]-l[1],t=new Path2D;t.rect(l[0],l[1],d,Z),U.clip(t)}class bR{getPattern(){el("Abstract method `getPattern` called.")}}class qm extends bR{constructor(l){super(),this._type=l[1],this._bbox=l[2],this._colorStops=l[3],this._p0=l[4],this._p1=l[5],this._r0=l[6],this._r1=l[7],this.matrix=null}_createGradient(l){let d;this._type==="axial"?d=l.createLinearGradient(this._p0[0],this._p0[1],this._p1[0],this._p1[1]):this._type==="radial"&&(d=l.createRadialGradient(this._p0[0],this._p0[1],this._r0,this._p1[0],this._p1[1],this._r1));for(const Z of this._colorStops)d.addColorStop(Z[0],Z[1]);return d}getPattern(l,d,Z,t){let F;if(t===hd.STROKE||t===hd.FILL){const c=d.current.getClippedPathBoundingBox(t,Sl(l))||[0,0,0,0],a=Math.ceil(c[2]-c[0])||1,V=Math.ceil(c[3]-c[1])||1,s=d.cachedCanvases.getCanvas("pattern",a,V),n=s.context;n.clearRect(0,0,n.canvas.width,n.canvas.height),n.beginPath(),n.rect(0,0,n.canvas.width,n.canvas.height),n.translate(-c[0],-c[1]),Z=O.transform(Z,[1,0,0,1,c[0],c[1]]),n.transform(...d.baseTransform),this.matrix&&n.transform(...this.matrix),ci(n,this._bbox),n.fillStyle=this._createGradient(n),n.fill(),F=l.createPattern(s.canvas,"no-repeat");const Q=new DOMMatrix(Z);F.setTransform(Q)}else ci(l,this._bbox),F=this._createGradient(l);return F}}function FQ(U,l,d,Z,t,F,c,a){const V=l.coords,s=l.colors,n=U.data,Q=U.width*4;let i;V[d+1]>V[Z+1]&&(i=d,d=Z,Z=i,i=F,F=c,c=i),V[Z+1]>V[t+1]&&(i=Z,Z=t,t=i,i=c,c=a,a=i),V[d+1]>V[Z+1]&&(i=d,d=Z,Z=i,i=F,F=c,c=i);const N=(V[d]+l.offsetX)*l.scaleX,b=(V[d+1]+l.offsetY)*l.scaleY,m=(V[Z]+l.offsetX)*l.scaleX,M=(V[Z+1]+l.offsetY)*l.scaleY,J=(V[t]+l.offsetX)*l.scaleX,S=(V[t+1]+l.offsetY)*l.scaleY;if(b>=S)return;const G=s[F],T=s[F+1],p=s[F+2],u=s[c],Y=s[c+1],o=s[c+2],X=s[a],B=s[a+1],y=s[a+2],E=Math.round(b),D=Math.round(S);let w,I,L,H,f,Vl,Ml,Jl;for(let il=E;il<=D;il++){if(il<M){const z=il<b?0:(b-il)/(b-M);w=N-(N-m)*z,I=G-(G-u)*z,L=T-(T-Y)*z,H=p-(p-o)*z}else{let z;il>S?z=1:M===S?z=0:z=(M-il)/(M-S),w=m-(m-J)*z,I=u-(u-X)*z,L=Y-(Y-B)*z,H=o-(o-y)*z}let hl;il<b?hl=0:il>S?hl=1:hl=(b-il)/(b-S),f=N-(N-J)*hl,Vl=G-(G-X)*hl,Ml=T-(T-B)*hl,Jl=p-(p-y)*hl;const MU=Math.round(Math.min(w,f)),JU=Math.round(Math.max(w,f));let C=Q*il+MU*4;for(let z=MU;z<=JU;z++)hl=(w-z)/(w-f),hl<0?hl=0:hl>1&&(hl=1),n[C++]=I-(I-Vl)*hl|0,n[C++]=L-(L-Ml)*hl|0,n[C++]=H-(H-Jl)*hl|0,n[C++]=255}}function $m(U,l,d){const Z=l.coords,t=l.colors;let F,c;switch(l.type){case"lattice":const a=l.verticesPerRow,V=Math.floor(Z.length/a)-1,s=a-1;for(F=0;F<V;F++){let n=F*a;for(let Q=0;Q<s;Q++,n++)FQ(U,d,Z[n],Z[n+1],Z[n+a],t[n],t[n+1],t[n+a]),FQ(U,d,Z[n+a+1],Z[n+1],Z[n+a],t[n+a+1],t[n+1],t[n+a])}break;case"triangles":for(F=0,c=Z.length;F<c;F+=3)FQ(U,d,Z[F],Z[F+1],Z[F+2],t[F],t[F+1],t[F+2]);break;default:throw new Error("illegal figure")}}class l2 extends bR{constructor(l){super(),this._coords=l[2],this._colors=l[3],this._figures=l[4],this._bounds=l[5],this._bbox=l[7],this._background=l[8],this.matrix=null}_createMeshCanvas(l,d,Z){const t=Math.floor(this._bounds[0]),F=Math.floor(this._bounds[1]),c=Math.ceil(this._bounds[2])-t,a=Math.ceil(this._bounds[3])-F,V=Math.min(Math.ceil(Math.abs(c*l[0]*1.1)),3e3),s=Math.min(Math.ceil(Math.abs(a*l[1]*1.1)),3e3),n=c/V,Q=a/s,i={coords:this._coords,colors:this._colors,offsetX:-t,offsetY:-F,scaleX:1/n,scaleY:1/Q},N=V+4,b=s+4,m=Z.getCanvas("mesh",N,b),M=m.context,J=M.createImageData(V,s);if(d){const S=J.data;for(let G=0,T=S.length;G<T;G+=4)S[G]=d[0],S[G+1]=d[1],S[G+2]=d[2],S[G+3]=255}for(const S of this._figures)$m(J,S,i);return M.putImageData(J,2,2),{canvas:m.canvas,offsetX:t-2*n,offsetY:F-2*Q,scaleX:n,scaleY:Q}}getPattern(l,d,Z,t){ci(l,this._bbox);let F;if(t===hd.SHADING)F=O.singularValueDecompose2dScale(Sl(l));else if(F=O.singularValueDecompose2dScale(d.baseTransform),this.matrix){const a=O.singularValueDecompose2dScale(this.matrix);F=[F[0]*a[0],F[1]*a[1]]}const c=this._createMeshCanvas(F,t===hd.SHADING?null:this._background,d.cachedCanvases);return t!==hd.SHADING&&(l.setTransform(...d.baseTransform),this.matrix&&l.transform(...this.matrix)),l.translate(c.offsetX,c.offsetY),l.scale(c.scaleX,c.scaleY),l.createPattern(c.canvas,"no-repeat")}}class d2 extends bR{getPattern(){return"hotpink"}}function U2(U){switch(U[0]){case"RadialAxial":return new qm(U);case"Mesh":return new l2(U);case"Dummy":return new d2}throw new Error(`Unknown IR type: ${U[0]}`)}const $R={COLORED:1,UNCOLORED:2},$h=class lb{constructor(l,d,Z,t,F){this.operatorList=l[2],this.matrix=l[3],this.bbox=l[4],this.xstep=l[5],this.ystep=l[6],this.paintType=l[7],this.tilingType=l[8],this.color=d,this.ctx=Z,this.canvasGraphicsFactory=t,this.baseTransform=F}createPatternCanvas(l){const{bbox:d,operatorList:Z,paintType:t,tilingType:F,color:c,canvasGraphicsFactory:a}=this;let{xstep:V,ystep:s}=this;V=Math.abs(V),s=Math.abs(s),zn("TilingType: "+F);const n=d[0],Q=d[1],i=d[2],N=d[3],b=i-n,m=N-Q,M=O.singularValueDecompose2dScale(this.matrix),J=O.singularValueDecompose2dScale(this.baseTransform),S=M[0]*J[0],G=M[1]*J[1];let T=b,p=m,u=!1,Y=!1;const o=Math.ceil(V*S),X=Math.ceil(s*G),B=Math.ceil(b*S),y=Math.ceil(m*G);o>=B?T=V:u=!0,X>=y?p=s:Y=!0;const E=this.getSizeAndScale(T,this.ctx.canvas.width,S),D=this.getSizeAndScale(p,this.ctx.canvas.height,G),w=l.cachedCanvases.getCanvas("pattern",E.size,D.size),I=w.context,L=a.createCanvasGraphics(I);if(L.groupLevel=l.groupLevel,this.setFillAndStrokeStyleToContext(L,t,c),I.translate(-E.scale*n,-D.scale*Q),L.transform(E.scale,0,0,D.scale,0,0),I.save(),this.clipBbox(L,n,Q,i,N),L.baseTransform=Sl(L.ctx),L.executeOperatorList(Z),L.endDrawing(),I.restore(),u||Y){const H=w.canvas;u&&(T=V),Y&&(p=s);const f=this.getSizeAndScale(T,this.ctx.canvas.width,S),Vl=this.getSizeAndScale(p,this.ctx.canvas.height,G),Ml=f.size,Jl=Vl.size,il=l.cachedCanvases.getCanvas("pattern-workaround",Ml,Jl),hl=il.context,MU=u?Math.floor(b/V):0,JU=Y?Math.floor(m/s):0;for(let C=0;C<=MU;C++)for(let z=0;z<=JU;z++)hl.drawImage(H,Ml*C,Jl*z,Ml,Jl,0,0,Ml,Jl);return{canvas:il.canvas,scaleX:f.scale,scaleY:Vl.scale,offsetX:n,offsetY:Q}}return{canvas:w.canvas,scaleX:E.scale,scaleY:D.scale,offsetX:n,offsetY:Q}}getSizeAndScale(l,d,Z){const t=Math.max(lb.MAX_PATTERN_SIZE,d);let F=Math.ceil(l*Z);return F>=t?F=t:Z=F/l,{scale:Z,size:F}}clipBbox(l,d,Z,t,F){const c=t-d,a=F-Z;l.ctx.rect(d,Z,c,a),l.current.updateRectMinMax(Sl(l.ctx),[d,Z,t,F]),l.clip(),l.endPath()}setFillAndStrokeStyleToContext(l,d,Z){const t=l.ctx,F=l.current;switch(d){case $R.COLORED:const c=this.ctx;t.fillStyle=c.fillStyle,t.strokeStyle=c.strokeStyle,F.fillColor=c.fillStyle,F.strokeColor=c.strokeStyle;break;case $R.UNCOLORED:const a=O.makeHexColor(Z[0],Z[1],Z[2]);t.fillStyle=a,t.strokeStyle=a,F.fillColor=a,F.strokeColor=a;break;default:throw new Xm(`Unsupported paint type: ${d}`)}}getPattern(l,d,Z,t){let F=Z;t!==hd.SHADING&&(F=O.transform(F,d.baseTransform),this.matrix&&(F=O.transform(F,this.matrix)));const c=this.createPatternCanvas(d);let a=new DOMMatrix(F);a=a.translate(c.offsetX,c.offsetY),a=a.scale(1/c.scaleX,1/c.scaleY);const V=l.createPattern(c.canvas,"repeat");return V.setTransform(a),V}};v($h,"MAX_PATTERN_SIZE",3e3);let Z2=$h;function t2({src:U,srcPos:l=0,dest:d,width:Z,height:t,nonBlackColor:F=4294967295,inverseDecode:c=!1}){const a=Xd.isLittleEndian?4278190080:255,[V,s]=c?[F,a]:[a,F],n=Z>>3,Q=Z&7,i=U.length;d=new Uint32Array(d.buffer);let N=0;for(let b=0;b<t;b++){for(const M=l+n;l<M;l++){const J=l<i?U[l]:255;d[N++]=J&128?s:V,d[N++]=J&64?s:V,d[N++]=J&32?s:V,d[N++]=J&16?s:V,d[N++]=J&8?s:V,d[N++]=J&4?s:V,d[N++]=J&2?s:V,d[N++]=J&1?s:V}if(Q===0)continue;const m=l<i?U[l++]:255;for(let M=0;M<Q;M++)d[N++]=m&1<<7-M?s:V}return{srcPos:l,destPos:N}}const lN=16,dN=100,F2=15,UN=10,ZN=1e3,kd=16;function c2(U,l){if(U._removeMirroring)throw new Error("Context is already forwarding operations.");U.__originalSave=U.save,U.__originalRestore=U.restore,U.__originalRotate=U.rotate,U.__originalScale=U.scale,U.__originalTranslate=U.translate,U.__originalTransform=U.transform,U.__originalSetTransform=U.setTransform,U.__originalResetTransform=U.resetTransform,U.__originalClip=U.clip,U.__originalMoveTo=U.moveTo,U.__originalLineTo=U.lineTo,U.__originalBezierCurveTo=U.bezierCurveTo,U.__originalRect=U.rect,U.__originalClosePath=U.closePath,U.__originalBeginPath=U.beginPath,U._removeMirroring=()=>{U.save=U.__originalSave,U.restore=U.__originalRestore,U.rotate=U.__originalRotate,U.scale=U.__originalScale,U.translate=U.__originalTranslate,U.transform=U.__originalTransform,U.setTransform=U.__originalSetTransform,U.resetTransform=U.__originalResetTransform,U.clip=U.__originalClip,U.moveTo=U.__originalMoveTo,U.lineTo=U.__originalLineTo,U.bezierCurveTo=U.__originalBezierCurveTo,U.rect=U.__originalRect,U.closePath=U.__originalClosePath,U.beginPath=U.__originalBeginPath,delete U._removeMirroring},U.save=function(){l.save(),this.__originalSave()},U.restore=function(){l.restore(),this.__originalRestore()},U.translate=function(d,Z){l.translate(d,Z),this.__originalTranslate(d,Z)},U.scale=function(d,Z){l.scale(d,Z),this.__originalScale(d,Z)},U.transform=function(d,Z,t,F,c,a){l.transform(d,Z,t,F,c,a),this.__originalTransform(d,Z,t,F,c,a)},U.setTransform=function(d,Z,t,F,c,a){l.setTransform(d,Z,t,F,c,a),this.__originalSetTransform(d,Z,t,F,c,a)},U.resetTransform=function(){l.resetTransform(),this.__originalResetTransform()},U.rotate=function(d){l.rotate(d),this.__originalRotate(d)},U.clip=function(d){l.clip(d),this.__originalClip(d)},U.moveTo=function(d,Z){l.moveTo(d,Z),this.__originalMoveTo(d,Z)},U.lineTo=function(d,Z){l.lineTo(d,Z),this.__originalLineTo(d,Z)},U.bezierCurveTo=function(d,Z,t,F,c,a){l.bezierCurveTo(d,Z,t,F,c,a),this.__originalBezierCurveTo(d,Z,t,F,c,a)},U.rect=function(d,Z,t,F){l.rect(d,Z,t,F),this.__originalRect(d,Z,t,F)},U.closePath=function(){l.closePath(),this.__originalClosePath()},U.beginPath=function(){l.beginPath(),this.__originalBeginPath()}}class W2{constructor(l){this.canvasFactory=l,this.cache=Object.create(null)}getCanvas(l,d,Z){let t;return this.cache[l]!==void 0?(t=this.cache[l],this.canvasFactory.reset(t,d,Z)):(t=this.canvasFactory.create(d,Z),this.cache[l]=t),t}delete(l){delete this.cache[l]}clear(){for(const l in this.cache){const d=this.cache[l];this.canvasFactory.destroy(d),delete this.cache[l]}}}function ga(U,l,d,Z,t,F,c,a,V,s){const[n,Q,i,N,b,m]=Sl(U);if(Q===0&&i===0){const S=c*n+b,G=Math.round(S),T=a*N+m,p=Math.round(T),u=(c+V)*n+b,Y=Math.abs(Math.round(u)-G)||1,o=(a+s)*N+m,X=Math.abs(Math.round(o)-p)||1;return U.setTransform(Math.sign(n),0,0,Math.sign(N),G,p),U.drawImage(l,d,Z,t,F,0,0,Y,X),U.setTransform(n,Q,i,N,b,m),[Y,X]}if(n===0&&N===0){const S=a*i+b,G=Math.round(S),T=c*Q+m,p=Math.round(T),u=(a+s)*i+b,Y=Math.abs(Math.round(u)-G)||1,o=(c+V)*Q+m,X=Math.abs(Math.round(o)-p)||1;return U.setTransform(0,Math.sign(Q),Math.sign(i),0,G,p),U.drawImage(l,d,Z,t,F,0,0,X,Y),U.setTransform(n,Q,i,N,b,m),[X,Y]}U.drawImage(l,d,Z,t,F,c,a,V,s);const M=Math.hypot(n,Q),J=Math.hypot(i,N);return[M*V,J*s]}function a2(U){const{width:l,height:d}=U;if(l>ZN||d>ZN)return null;const Z=1e3,t=new Uint8Array([0,2,4,0,1,0,5,4,8,10,0,8,0,2,1,0]),F=l+1;let c=new Uint8Array(F*(d+1)),a,V,s;const n=l+7&-8;let Q=new Uint8Array(n*d),i=0;for(const M of U.data){let J=128;for(;J>0;)Q[i++]=M&J?0:255,J>>=1}let N=0;for(i=0,Q[i]!==0&&(c[0]=1,++N),V=1;V<l;V++)Q[i]!==Q[i+1]&&(c[V]=Q[i]?2:1,++N),i++;for(Q[i]!==0&&(c[V]=2,++N),a=1;a<d;a++){i=a*n,s=a*F,Q[i-n]!==Q[i]&&(c[s]=Q[i]?1:8,++N);let M=(Q[i]?4:0)+(Q[i-n]?8:0);for(V=1;V<l;V++)M=(M>>2)+(Q[i+1]?4:0)+(Q[i-n+1]?8:0),t[M]&&(c[s+V]=t[M],++N),i++;if(Q[i-n]!==Q[i]&&(c[s+V]=Q[i]?2:4,++N),N>Z)return null}for(i=n*(d-1),s=a*F,Q[i]!==0&&(c[s]=8,++N),V=1;V<l;V++)Q[i]!==Q[i+1]&&(c[s+V]=Q[i]?4:8,++N),i++;if(Q[i]!==0&&(c[s+V]=4,++N),N>Z)return null;const b=new Int32Array([0,F,-1,0,-F,0,0,0,1]),m=new Path2D;for(a=0;N&&a<=d;a++){let M=a*F;const J=M+l;for(;M<J&&!c[M];)M++;if(M===J)continue;m.moveTo(M%F,a);const S=M;let G=c[M];do{const T=b[G];do M+=T;while(!c[M]);const p=c[M];p!==5&&p!==10?(G=p,c[M]=0):(G=p&51*G>>4,c[M]&=G>>2|G<<2),m.lineTo(M%F,M/F|0),c[M]||--N}while(S!==M);--a}return Q=null,c=null,function(M){M.save(),M.scale(1/l,-1/d),M.translate(0,-d),M.fill(m),M.beginPath(),M.restore()}}class tN{constructor(l,d){this.alphaIsShape=!1,this.fontSize=0,this.fontSizeScale=1,this.textMatrix=Jh,this.textMatrixScale=1,this.fontMatrix=OQ,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=Vd.FILL,this.textRise=0,this.fillColor="#000000",this.strokeColor="#000000",this.patternFill=!1,this.patternStroke=!1,this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.activeSMask=null,this.transferMaps="none",this.startNewPathAndClipBox([0,0,l,d])}clone(){const l=Object.create(this);return l.clipBox=this.clipBox.slice(),l}setCurrentPoint(l,d){this.x=l,this.y=d}updatePathMinMax(l,d,Z){[d,Z]=O.applyTransform([d,Z],l),this.minX=Math.min(this.minX,d),this.minY=Math.min(this.minY,Z),this.maxX=Math.max(this.maxX,d),this.maxY=Math.max(this.maxY,Z)}updateRectMinMax(l,d){const Z=O.applyTransform(d,l),t=O.applyTransform(d.slice(2),l),F=O.applyTransform([d[0],d[3]],l),c=O.applyTransform([d[2],d[1]],l);this.minX=Math.min(this.minX,Z[0],t[0],F[0],c[0]),this.minY=Math.min(this.minY,Z[1],t[1],F[1],c[1]),this.maxX=Math.max(this.maxX,Z[0],t[0],F[0],c[0]),this.maxY=Math.max(this.maxY,Z[1],t[1],F[1],c[1])}updateScalingPathMinMax(l,d){O.scaleMinMax(l,d),this.minX=Math.min(this.minX,d[0]),this.minY=Math.min(this.minY,d[1]),this.maxX=Math.max(this.maxX,d[2]),this.maxY=Math.max(this.maxY,d[3])}updateCurvePathMinMax(l,d,Z,t,F,c,a,V,s,n){const Q=O.bezierBoundingBox(d,Z,t,F,c,a,V,s,n);n||this.updateRectMinMax(l,Q)}getPathBoundingBox(l=hd.FILL,d=null){const Z=[this.minX,this.minY,this.maxX,this.maxY];if(l===hd.STROKE){d||el("Stroke bounding box must include transform.");const t=O.singularValueDecompose2dScale(d),F=t[0]*this.lineWidth/2,c=t[1]*this.lineWidth/2;Z[0]-=F,Z[1]-=c,Z[2]+=F,Z[3]+=c}return Z}updateClipFromPath(){const l=O.intersect(this.clipBox,this.getPathBoundingBox());this.startNewPathAndClipBox(l||[0,0,0,0])}isEmptyClip(){return this.minX===1/0}startNewPathAndClipBox(l){this.clipBox=l,this.minX=1/0,this.minY=1/0,this.maxX=0,this.maxY=0}getClippedPathBoundingBox(l=hd.FILL,d=null){return O.intersect(this.clipBox,this.getPathBoundingBox(l,d))}}function FN(U,l){if(l instanceof ImageData){U.putImageData(l,0,0);return}const d=l.height,Z=l.width,t=d%kd,F=(d-t)/kd,c=t===0?F:F+1,a=U.createImageData(Z,kd);let V=0,s;const n=l.data,Q=a.data;let i,N,b,m;if(l.kind===GV.GRAYSCALE_1BPP){const M=n.byteLength,J=new Uint32Array(Q.buffer,0,Q.byteLength>>2),S=J.length,G=Z+7>>3,T=4294967295,p=Xd.isLittleEndian?4278190080:255;for(i=0;i<c;i++){for(b=i<F?kd:t,s=0,N=0;N<b;N++){const u=M-V;let Y=0;const o=u>G?Z:u*8-7,X=o&-8;let B=0,y=0;for(;Y<X;Y+=8)y=n[V++],J[s++]=y&128?T:p,J[s++]=y&64?T:p,J[s++]=y&32?T:p,J[s++]=y&16?T:p,J[s++]=y&8?T:p,J[s++]=y&4?T:p,J[s++]=y&2?T:p,J[s++]=y&1?T:p;for(;Y<o;Y++)B===0&&(y=n[V++],B=128),J[s++]=y&B?T:p,B>>=1}for(;s<S;)J[s++]=0;U.putImageData(a,0,i*kd)}}else if(l.kind===GV.RGBA_32BPP){for(N=0,m=Z*kd*4,i=0;i<F;i++)Q.set(n.subarray(V,V+m)),V+=m,U.putImageData(a,0,N),N+=kd;i<c&&(m=Z*t*4,Q.set(n.subarray(V,V+m)),U.putImageData(a,0,N))}else if(l.kind===GV.RGB_24BPP)for(b=kd,m=Z*b,i=0;i<c;i++){for(i>=F&&(b=t,m=Z*b),s=0,N=m;N--;)Q[s++]=n[V++],Q[s++]=n[V++],Q[s++]=n[V++],Q[s++]=255;U.putImageData(a,0,i*kd)}else throw new Error(`bad image kind: ${l.kind}`)}function cN(U,l){if(l.bitmap){U.drawImage(l.bitmap,0,0);return}const d=l.height,Z=l.width,t=d%kd,F=(d-t)/kd,c=t===0?F:F+1,a=U.createImageData(Z,kd);let V=0;const s=l.data,n=a.data;for(let Q=0;Q<c;Q++){const i=Q<F?kd:t;({srcPos:V}=t2({src:s,srcPos:V,dest:n,width:Z,height:i,nonBlackColor:0})),U.putImageData(a,0,Q*kd)}}function ec(U,l){const d=["strokeStyle","fillStyle","fillRule","globalAlpha","lineWidth","lineCap","lineJoin","miterLimit","globalCompositeOperation","font","filter"];for(const Z of d)U[Z]!==void 0&&(l[Z]=U[Z]);U.setLineDash!==void 0&&(l.setLineDash(U.getLineDash()),l.lineDashOffset=U.lineDashOffset)}function Ka(U){if(U.strokeStyle=U.fillStyle="#000000",U.fillRule="nonzero",U.globalAlpha=1,U.lineWidth=1,U.lineCap="butt",U.lineJoin="miter",U.miterLimit=10,U.globalCompositeOperation="source-over",U.font="10px sans-serif",U.setLineDash!==void 0&&(U.setLineDash([]),U.lineDashOffset=0),!ed){const{filter:l}=U;l!=="none"&&l!==""&&(U.filter="none")}}function WN(U,l){if(l)return!0;const d=O.singularValueDecompose2dScale(U);d[0]=Math.fround(d[0]),d[1]=Math.fround(d[1]);const Z=Math.fround((globalThis.devicePixelRatio||1)*Zc.PDF_TO_CSS_UNITS);return d[0]<=Z&&d[1]<=Z}const V2=["butt","round","square"],s2=["miter","round","bevel"],n2={},aN={};var DZ,Wi,ai,Vi;const Q2=class db{constructor(l,d,Z,t,F,{optionalContentConfig:c,markedContentStack:a=null},V,s){e(this,DZ),this.ctx=l,this.current=new tN(this.ctx.canvas.width,this.ctx.canvas.height),this.stateStack=[],this.pendingClip=null,this.pendingEOFill=!1,this.res=null,this.xobjs=null,this.commonObjs=d,this.objs=Z,this.canvasFactory=t,this.filterFactory=F,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=a||[],this.optionalContentConfig=c,this.cachedCanvases=new W2(this.canvasFactory),this.cachedPatterns=new Map,this.annotationCanvasMap=V,this.viewportScale=1,this.outputScaleX=1,this.outputScaleY=1,this.pageColors=s,this._cachedScaleForStroking=[-1,0],this._cachedGetSinglePixelWidth=null,this._cachedBitmapsMap=new Map}getObject(l,d=null){return typeof l=="string"?l.startsWith("g_")?this.commonObjs.get(l):this.objs.get(l):d}beginDrawing({transform:l,viewport:d,transparency:Z=!1,background:t=null}){const F=this.ctx.canvas.width,c=this.ctx.canvas.height,a=this.ctx.fillStyle;if(this.ctx.fillStyle=t||"#ffffff",this.ctx.fillRect(0,0,F,c),this.ctx.fillStyle=a,Z){const V=this.cachedCanvases.getCanvas("transparent",F,c);this.compositeCtx=this.ctx,this.transparentCanvas=V.canvas,this.ctx=V.context,this.ctx.save(),this.ctx.transform(...Sl(this.compositeCtx))}this.ctx.save(),Ka(this.ctx),l&&(this.ctx.transform(...l),this.outputScaleX=l[0],this.outputScaleY=l[0]),this.ctx.transform(...d.transform),this.viewportScale=d.scale,this.baseTransform=Sl(this.ctx)}executeOperatorList(l,d,Z,t){const F=l.argsArray,c=l.fnArray;let a=d||0;const V=F.length;if(V===a)return a;const s=V-a>UN&&typeof Z=="function",n=s?Date.now()+F2:0;let Q=0;const i=this.commonObjs,N=this.objs;let b;for(;;){if(t!==void 0&&a===t.nextBreakPoint)return t.breakIt(a,Z),a;if(b=c[a],b!==hU.dependency)this[b].apply(this,F[a]);else for(const m of F[a]){const M=m.startsWith("g_")?i:N;if(!M.has(m))return M.get(m,Z),a}if(a++,a===V)return a;if(s&&++Q>UN){if(Date.now()>n)return Z(),a;Q=0}}}endDrawing(){h(this,DZ,Wi).call(this),this.cachedCanvases.clear(),this.cachedPatterns.clear();for(const l of this._cachedBitmapsMap.values()){for(const d of l.values())typeof HTMLCanvasElement<"u"&&d instanceof HTMLCanvasElement&&(d.width=d.height=0);l.clear()}this._cachedBitmapsMap.clear(),h(this,DZ,ai).call(this)}_scaleImage(l,d){const Z=l.width??l.displayWidth,t=l.height??l.displayHeight;let F=Math.max(Math.hypot(d[0],d[1]),1),c=Math.max(Math.hypot(d[2],d[3]),1),a=Z,V=t,s="prescale1",n,Q;for(;F>2&&a>1||c>2&&V>1;){let i=a,N=V;F>2&&a>1&&(i=a>=16384?Math.floor(a/2)-1||1:Math.ceil(a/2),F/=a/i),c>2&&V>1&&(N=V>=16384?Math.floor(V/2)-1||1:Math.ceil(V)/2,c/=V/N),n=this.cachedCanvases.getCanvas(s,i,N),Q=n.context,Q.clearRect(0,0,i,N),Q.drawImage(l,0,0,a,V,0,0,i,N),l=n.canvas,a=i,V=N,s=s==="prescale1"?"prescale2":"prescale1"}return{img:l,paintWidth:a,paintHeight:V}}_createMaskCanvas(l){const d=this.ctx,{width:Z,height:t}=l,F=this.current.fillColor,c=this.current.patternFill,a=Sl(d);let V,s,n,Q;if((l.bitmap||l.data)&&l.count>1){const o=l.bitmap||l.data.buffer;s=JSON.stringify(c?a:[a.slice(0,4),F]),V=this._cachedBitmapsMap.get(o),V||(V=new Map,this._cachedBitmapsMap.set(o,V));const X=V.get(s);if(X&&!c){const B=Math.round(Math.min(a[0],a[2])+a[4]),y=Math.round(Math.min(a[1],a[3])+a[5]);return{canvas:X,offsetX:B,offsetY:y}}n=X}n||(Q=this.cachedCanvases.getCanvas("maskCanvas",Z,t),cN(Q.context,l));let i=O.transform(a,[1/Z,0,0,-1/t,0,0]);i=O.transform(i,[1,0,0,1,0,-t]);const[N,b,m,M]=O.getAxialAlignedBoundingBox([0,0,Z,t],i),J=Math.round(m-N)||1,S=Math.round(M-b)||1,G=this.cachedCanvases.getCanvas("fillCanvas",J,S),T=G.context,p=N,u=b;T.translate(-p,-u),T.transform(...i),n||(n=this._scaleImage(Q.canvas,SU(T)),n=n.img,V&&c&&V.set(s,n)),T.imageSmoothingEnabled=WN(Sl(T),l.interpolate),ga(T,n,0,0,n.width,n.height,0,0,Z,t),T.globalCompositeOperation="source-in";const Y=O.transform(SU(T),[1,0,0,1,-p,-u]);return T.fillStyle=c?F.getPattern(d,this,Y,hd.FILL):F,T.fillRect(0,0,Z,t),V&&!c&&(this.cachedCanvases.delete("fillCanvas"),V.set(s,G.canvas)),{canvas:G.canvas,offsetX:Math.round(p),offsetY:Math.round(u)}}setLineWidth(l){l!==this.current.lineWidth&&(this._cachedScaleForStroking[0]=-1),this.current.lineWidth=l,this.ctx.lineWidth=l}setLineCap(l){this.ctx.lineCap=V2[l]}setLineJoin(l){this.ctx.lineJoin=s2[l]}setMiterLimit(l){this.ctx.miterLimit=l}setDash(l,d){const Z=this.ctx;Z.setLineDash!==void 0&&(Z.setLineDash(l),Z.lineDashOffset=d)}setRenderingIntent(l){}setFlatness(l){}setGState(l){for(const[d,Z]of l)switch(d){case"LW":this.setLineWidth(Z);break;case"LC":this.setLineCap(Z);break;case"LJ":this.setLineJoin(Z);break;case"ML":this.setMiterLimit(Z);break;case"D":this.setDash(Z[0],Z[1]);break;case"RI":this.setRenderingIntent(Z);break;case"FL":this.setFlatness(Z);break;case"Font":this.setFont(Z[0],Z[1]);break;case"CA":this.current.strokeAlpha=Z;break;case"ca":this.current.fillAlpha=Z,this.ctx.globalAlpha=Z;break;case"BM":this.ctx.globalCompositeOperation=Z;break;case"SMask":this.current.activeSMask=Z?this.tempSMask:null,this.tempSMask=null,this.checkSMaskState();break;case"TR":this.ctx.filter=this.current.transferMaps=this.filterFactory.addFilter(Z);break}}get inSMaskMode(){return!!this.suspendedCtx}checkSMaskState(){const l=this.inSMaskMode;this.current.activeSMask&&!l?this.beginSMaskMode():!this.current.activeSMask&&l&&this.endSMaskMode()}beginSMaskMode(){if(this.inSMaskMode)throw new Error("beginSMaskMode called while already in smask mode");const l=this.ctx.canvas.width,d=this.ctx.canvas.height,Z="smaskGroupAt"+this.groupLevel,t=this.cachedCanvases.getCanvas(Z,l,d);this.suspendedCtx=this.ctx,this.ctx=t.context;const F=this.ctx;F.setTransform(...Sl(this.suspendedCtx)),ec(this.suspendedCtx,F),c2(F,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(),ec(this.ctx,this.suspendedCtx),this.ctx=this.suspendedCtx,this.suspendedCtx=null}compose(l){if(!this.current.activeSMask)return;l?(l[0]=Math.floor(l[0]),l[1]=Math.floor(l[1]),l[2]=Math.ceil(l[2]),l[3]=Math.ceil(l[3])):l=[0,0,this.ctx.canvas.width,this.ctx.canvas.height];const d=this.current.activeSMask,Z=this.suspendedCtx;this.composeSMask(Z,d,this.ctx,l),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(l,d,Z,t){const F=t[0],c=t[1],a=t[2]-F,V=t[3]-c;a===0||V===0||(this.genericComposeSMask(d.context,Z,a,V,d.subtype,d.backdrop,d.transferMap,F,c,d.offsetX,d.offsetY),l.save(),l.globalAlpha=1,l.globalCompositeOperation="source-over",l.setTransform(1,0,0,1,0,0),l.drawImage(Z.canvas,0,0),l.restore())}genericComposeSMask(l,d,Z,t,F,c,a,V,s,n,Q){let i=l.canvas,N=V-n,b=s-Q;if(c){const M=O.makeHexColor(...c);if(N<0||b<0||N+Z>i.width||b+t>i.height){const J=this.cachedCanvases.getCanvas("maskExtension",Z,t),S=J.context;S.drawImage(i,-N,-b),S.globalCompositeOperation="destination-atop",S.fillStyle=M,S.fillRect(0,0,Z,t),S.globalCompositeOperation="source-over",i=J.canvas,N=b=0}else{l.save(),l.globalAlpha=1,l.setTransform(1,0,0,1,0,0);const J=new Path2D;J.rect(N,b,Z,t),l.clip(J),l.globalCompositeOperation="destination-atop",l.fillStyle=M,l.fillRect(N,b,Z,t),l.restore()}}d.save(),d.globalAlpha=1,d.setTransform(1,0,0,1,0,0),F==="Alpha"&&a?d.filter=this.filterFactory.addAlphaFilter(a):F==="Luminosity"&&(d.filter=this.filterFactory.addLuminosityFilter(a));const m=new Path2D;m.rect(V,s,Z,t),d.clip(m),d.globalCompositeOperation="destination-in",d.drawImage(i,N,b,Z,t,V,s,Z,t),d.restore()}save(){this.inSMaskMode?(ec(this.ctx,this.suspendedCtx),this.suspendedCtx.save()):this.ctx.save();const l=this.current;this.stateStack.push(l),this.current=l.clone()}restore(){this.stateStack.length===0&&this.inSMaskMode&&this.endSMaskMode(),this.stateStack.length!==0&&(this.current=this.stateStack.pop(),this.inSMaskMode?(this.suspendedCtx.restore(),ec(this.suspendedCtx,this.ctx)):this.ctx.restore(),this.checkSMaskState(),this.pendingClip=null,this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null)}transform(l,d,Z,t,F,c){this.ctx.transform(l,d,Z,t,F,c),this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null}constructPath(l,d,Z){const t=this.ctx,F=this.current;let c=F.x,a=F.y,V,s;const n=Sl(t),Q=n[0]===0&&n[3]===0||n[1]===0&&n[2]===0,i=Q?Z.slice(0):null;for(let N=0,b=0,m=l.length;N<m;N++)switch(l[N]|0){case hU.rectangle:c=d[b++],a=d[b++];const M=d[b++],J=d[b++],S=c+M,G=a+J;t.moveTo(c,a),M===0||J===0?t.lineTo(S,G):(t.lineTo(S,a),t.lineTo(S,G),t.lineTo(c,G)),Q||F.updateRectMinMax(n,[c,a,S,G]),t.closePath();break;case hU.moveTo:c=d[b++],a=d[b++],t.moveTo(c,a),Q||F.updatePathMinMax(n,c,a);break;case hU.lineTo:c=d[b++],a=d[b++],t.lineTo(c,a),Q||F.updatePathMinMax(n,c,a);break;case hU.curveTo:V=c,s=a,c=d[b+4],a=d[b+5],t.bezierCurveTo(d[b],d[b+1],d[b+2],d[b+3],c,a),F.updateCurvePathMinMax(n,V,s,d[b],d[b+1],d[b+2],d[b+3],c,a,i),b+=6;break;case hU.curveTo2:V=c,s=a,t.bezierCurveTo(c,a,d[b],d[b+1],d[b+2],d[b+3]),F.updateCurvePathMinMax(n,V,s,c,a,d[b],d[b+1],d[b+2],d[b+3],i),c=d[b+2],a=d[b+3],b+=4;break;case hU.curveTo3:V=c,s=a,c=d[b+2],a=d[b+3],t.bezierCurveTo(d[b],d[b+1],c,a,c,a),F.updateCurvePathMinMax(n,V,s,d[b],d[b+1],c,a,c,a,i),b+=4;break;case hU.closePath:t.closePath();break}Q&&F.updateScalingPathMinMax(n,i),F.setCurrentPoint(c,a)}closePath(){this.ctx.closePath()}stroke(l=!0){const d=this.ctx,Z=this.current.strokeColor;d.globalAlpha=this.current.strokeAlpha,this.contentVisible&&(typeof Z=="object"&&Z!=null&&Z.getPattern?(d.save(),d.strokeStyle=Z.getPattern(d,this,SU(d),hd.STROKE),this.rescaleAndStroke(!1),d.restore()):this.rescaleAndStroke(!0)),l&&this.consumePath(this.current.getClippedPathBoundingBox()),d.globalAlpha=this.current.fillAlpha}closeStroke(){this.closePath(),this.stroke()}fill(l=!0){const d=this.ctx,Z=this.current.fillColor,t=this.current.patternFill;let F=!1;t&&(d.save(),d.fillStyle=Z.getPattern(d,this,SU(d),hd.FILL),F=!0);const c=this.current.getClippedPathBoundingBox();this.contentVisible&&c!==null&&(this.pendingEOFill?(d.fill("evenodd"),this.pendingEOFill=!1):d.fill()),F&&d.restore(),l&&this.consumePath(c)}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=n2}eoClip(){this.pendingClip=aN}beginText(){this.current.textMatrix=Jh,this.current.textMatrixScale=1,this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0}endText(){const l=this.pendingTextPaths,d=this.ctx;if(l===void 0){d.beginPath();return}const Z=new Path2D,t=d.getTransform().invertSelf();for(const{transform:F,x:c,y:a,fontSize:V,path:s}of l)Z.addPath(s,new DOMMatrix(F).preMultiplySelf(t).translate(c,a).scale(V,-V));d.clip(Z),d.beginPath(),delete this.pendingTextPaths}setCharSpacing(l){this.current.charSpacing=l}setWordSpacing(l){this.current.wordSpacing=l}setHScale(l){this.current.textHScale=l/100}setLeading(l){this.current.leading=-l}setFont(l,d){var Z;const t=this.commonObjs.get(l),F=this.current;if(!t)throw new Error(`Can't find font for ${l}`);if(F.fontMatrix=t.fontMatrix||OQ,(F.fontMatrix[0]===0||F.fontMatrix[3]===0)&&q("Invalid font matrix for font "+l),d<0?(d=-d,F.fontDirection=-1):F.fontDirection=1,this.current.font=t,this.current.fontSize=d,t.isType3Font)return;const c=t.loadedName||"sans-serif",a=((Z=t.systemFontInfo)==null?void 0:Z.css)||`"${c}", ${t.fallbackName}`;let V="normal";t.black?V="900":t.bold&&(V="bold");const s=t.italic?"italic":"normal";let n=d;d<lN?n=lN:d>dN&&(n=dN),this.current.fontSizeScale=d/n,this.ctx.font=`${s} ${V} ${n}px ${a}`}setTextRenderingMode(l){this.current.textRenderingMode=l}setTextRise(l){this.current.textRise=l}moveText(l,d){this.current.x=this.current.lineX+=l,this.current.y=this.current.lineY+=d}setLeadingMoveText(l,d){this.setLeading(-d),this.moveText(l,d)}setTextMatrix(l,d,Z,t,F,c){this.current.textMatrix=[l,d,Z,t,F,c],this.current.textMatrixScale=Math.hypot(l,d),this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0}nextLine(){this.moveText(0,this.current.leading)}paintChar(l,d,Z,t,F){const c=this.ctx,a=this.current,V=a.font,s=a.textRenderingMode,n=a.fontSize/a.fontSizeScale,Q=s&Vd.FILL_STROKE_MASK,i=!!(s&Vd.ADD_TO_PATH_FLAG),N=a.patternFill&&!V.missingFile,b=a.patternStroke&&!V.missingFile;let m;if((V.disableFontFace||i||N||b)&&(m=V.getPathGenerator(this.commonObjs,l)),V.disableFontFace||N||b){if(c.save(),c.translate(d,Z),c.scale(n,-n),Q===Vd.FILL||Q===Vd.FILL_STROKE)if(t){const M=c.getTransform();c.setTransform(...t),c.fill(h(this,DZ,Vi).call(this,m,M,t))}else c.fill(m);if(Q===Vd.STROKE||Q===Vd.FILL_STROKE)if(F){const M=c.getTransform();c.setTransform(...F),c.stroke(h(this,DZ,Vi).call(this,m,M,F))}else c.lineWidth/=n,c.stroke(m);c.restore()}else(Q===Vd.FILL||Q===Vd.FILL_STROKE)&&c.fillText(l,d,Z),(Q===Vd.STROKE||Q===Vd.FILL_STROKE)&&c.strokeText(l,d,Z);i&&(this.pendingTextPaths||(this.pendingTextPaths=[])).push({transform:Sl(c),x:d,y:Z,fontSize:n,path:m})}get isFontSubpixelAAEnabled(){const{context:l}=this.cachedCanvases.getCanvas("isFontSubpixelAAEnabled",10,10);l.scale(1.5,1),l.fillText("I",0,10);const d=l.getImageData(0,0,10,10).data;let Z=!1;for(let t=3;t<d.length;t+=4)if(d[t]>0&&d[t]<255){Z=!0;break}return Ul(this,"isFontSubpixelAAEnabled",Z)}showText(l){const d=this.current,Z=d.font;if(Z.isType3Font)return this.showType3Text(l);const t=d.fontSize;if(t===0)return;const F=this.ctx,c=d.fontSizeScale,a=d.charSpacing,V=d.wordSpacing,s=d.fontDirection,n=d.textHScale*s,Q=l.length,i=Z.vertical,N=i?1:-1,b=Z.defaultVMetrics,m=t*d.fontMatrix[0],M=d.textRenderingMode===Vd.FILL&&!Z.disableFontFace&&!d.patternFill;F.save(),F.transform(...d.textMatrix),F.translate(d.x,d.y+d.textRise),s>0?F.scale(n,-1):F.scale(n,1);let J,S;if(d.patternFill){F.save();const Y=d.fillColor.getPattern(F,this,SU(F),hd.FILL);J=Sl(F),F.restore(),F.fillStyle=Y}if(d.patternStroke){F.save();const Y=d.strokeColor.getPattern(F,this,SU(F),hd.STROKE);S=Sl(F),F.restore(),F.strokeStyle=Y}let G=d.lineWidth;const T=d.textMatrixScale;if(T===0||G===0){const Y=d.textRenderingMode&Vd.FILL_STROKE_MASK;(Y===Vd.STROKE||Y===Vd.FILL_STROKE)&&(G=this.getSinglePixelWidth())}else G/=T;if(c!==1&&(F.scale(c,c),G/=c),F.lineWidth=G,Z.isInvalidPDFjsFont){const Y=[];let o=0;for(const X of l)Y.push(X.unicode),o+=X.width;F.fillText(Y.join(""),0,0),d.x+=o*m*n,F.restore(),this.compose();return}let p=0,u;for(u=0;u<Q;++u){const Y=l[u];if(typeof Y=="number"){p+=N*Y*t/1e3;continue}let o=!1;const X=(Y.isSpace?V:0)+a,B=Y.fontChar,y=Y.accent;let E,D,w=Y.width;if(i){const L=Y.vmetric||b,H=-(Y.vmetric?L[1]:w*.5)*m,f=L[2]*m;w=L?-L[0]:w,E=H/c,D=(p+f)/c}else E=p/c,D=0;if(Z.remeasure&&w>0){const L=F.measureText(B).width*1e3/t*c;if(w<L&&this.isFontSubpixelAAEnabled){const H=w/L;o=!0,F.save(),F.scale(H,1),E/=H}else w!==L&&(E+=(w-L)/2e3*t/c)}if(this.contentVisible&&(Y.isInFont||Z.missingFile)){if(M&&!y)F.fillText(B,E,D);else if(this.paintChar(B,E,D,J,S),y){const L=E+t*y.offset.x/c,H=D-t*y.offset.y/c;this.paintChar(y.fontChar,L,H,J,S)}}const I=i?w*m-X*s:w*m+X*s;p+=I,o&&F.restore()}i?d.y-=p:d.x+=p*n,F.restore(),this.compose()}showType3Text(l){const d=this.ctx,Z=this.current,t=Z.font,F=Z.fontSize,c=Z.fontDirection,a=t.vertical?1:-1,V=Z.charSpacing,s=Z.wordSpacing,n=Z.textHScale*c,Q=Z.fontMatrix||OQ,i=l.length,N=Z.textRenderingMode===Vd.INVISIBLE;let b,m,M,J;if(!(N||F===0)){for(this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null,d.save(),d.transform(...Z.textMatrix),d.translate(Z.x,Z.y),d.scale(n,c),b=0;b<i;++b){if(m=l[b],typeof m=="number"){J=a*m*F/1e3,this.ctx.translate(J,0),Z.x+=J*n;continue}const S=(m.isSpace?s:0)+V,G=t.charProcOperatorList[m.operatorListId];if(!G){q(`Type3 character "${m.operatorListId}" is not available.`);continue}this.contentVisible&&(this.processingType3=m,this.save(),d.scale(F,F),d.transform(...Q),this.executeOperatorList(G),this.restore()),M=O.applyTransform([m.width,0],Q)[0]*F+S,d.translate(M,0),Z.x+=M*n}d.restore(),this.processingType3=null}}setCharWidth(l,d){}setCharWidthAndBounds(l,d,Z,t,F,c){this.ctx.rect(Z,t,F-Z,c-t),this.ctx.clip(),this.endPath()}getColorN_Pattern(l){let d;if(l[0]==="TilingPattern"){const Z=l[1],t=this.baseTransform||Sl(this.ctx),F={createCanvasGraphics:c=>new db(c,this.commonObjs,this.objs,this.canvasFactory,this.filterFactory,{optionalContentConfig:this.optionalContentConfig,markedContentStack:this.markedContentStack})};d=new Z2(l,Z,this.ctx,F,t)}else d=this._getPattern(l[1],l[2]);return d}setStrokeColorN(){this.current.strokeColor=this.getColorN_Pattern(arguments),this.current.patternStroke=!0}setFillColorN(){this.current.fillColor=this.getColorN_Pattern(arguments),this.current.patternFill=!0}setStrokeRGBColor(l,d,Z){this.ctx.strokeStyle=this.current.strokeColor=O.makeHexColor(l,d,Z),this.current.patternStroke=!1}setStrokeTransparent(){this.ctx.strokeStyle=this.current.strokeColor="transparent",this.current.patternStroke=!1}setFillRGBColor(l,d,Z){this.ctx.fillStyle=this.current.fillColor=O.makeHexColor(l,d,Z),this.current.patternFill=!1}setFillTransparent(){this.ctx.fillStyle=this.current.fillColor="transparent",this.current.patternFill=!1}_getPattern(l,d=null){let Z;return this.cachedPatterns.has(l)?Z=this.cachedPatterns.get(l):(Z=U2(this.getObject(l)),this.cachedPatterns.set(l,Z)),d&&(Z.matrix=d),Z}shadingFill(l){if(!this.contentVisible)return;const d=this.ctx;this.save();const Z=this._getPattern(l);d.fillStyle=Z.getPattern(d,this,SU(d),hd.SHADING);const t=SU(d);if(t){const{width:F,height:c}=d.canvas,[a,V,s,n]=O.getAxialAlignedBoundingBox([0,0,F,c],t);this.ctx.fillRect(a,V,s-a,n-V)}else this.ctx.fillRect(-1e10,-1e10,2e10,2e10);this.compose(this.current.getClippedPathBoundingBox()),this.restore()}beginInlineImage(){el("Should not call beginInlineImage")}beginImageData(){el("Should not call beginImageData")}paintFormXObjectBegin(l,d){if(this.contentVisible&&(this.save(),this.baseTransformStack.push(this.baseTransform),l&&this.transform(...l),this.baseTransform=Sl(this.ctx),d)){const Z=d[2]-d[0],t=d[3]-d[1];this.ctx.rect(d[0],d[1],Z,t),this.current.updateRectMinMax(Sl(this.ctx),d),this.clip(),this.endPath()}}paintFormXObjectEnd(){this.contentVisible&&(this.restore(),this.baseTransform=this.baseTransformStack.pop())}beginGroup(l){if(!this.contentVisible)return;this.save(),this.inSMaskMode&&(this.endSMaskMode(),this.current.activeSMask=null);const d=this.ctx;l.isolated||zn("TODO: Support non-isolated groups."),l.knockout&&q("Knockout groups not supported.");const Z=Sl(d);if(l.matrix&&d.transform(...l.matrix),!l.bbox)throw new Error("Bounding box is required.");let t=O.getAxialAlignedBoundingBox(l.bbox,Sl(d));const F=[0,0,d.canvas.width,d.canvas.height];t=O.intersect(t,F)||[0,0,0,0];const c=Math.floor(t[0]),a=Math.floor(t[1]),V=Math.max(Math.ceil(t[2])-c,1),s=Math.max(Math.ceil(t[3])-a,1);this.current.startNewPathAndClipBox([0,0,V,s]);let n="groupAt"+this.groupLevel;l.smask&&(n+="_smask_"+this.smaskCounter++%2);const Q=this.cachedCanvases.getCanvas(n,V,s),i=Q.context;i.translate(-c,-a),i.transform(...Z),l.smask?this.smaskStack.push({canvas:Q.canvas,context:i,offsetX:c,offsetY:a,subtype:l.smask.subtype,backdrop:l.smask.backdrop,transferMap:l.smask.transferMap||null,startTransformInverse:null}):(d.setTransform(1,0,0,1,0,0),d.translate(c,a),d.save()),ec(d,i),this.ctx=i,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(d),this.groupLevel++}endGroup(l){if(!this.contentVisible)return;this.groupLevel--;const d=this.ctx,Z=this.groupStack.pop();if(this.ctx=Z,this.ctx.imageSmoothingEnabled=!1,l.smask)this.tempSMask=this.smaskStack.pop(),this.restore();else{this.ctx.restore();const t=Sl(this.ctx);this.restore(),this.ctx.save(),this.ctx.setTransform(...t);const F=O.getAxialAlignedBoundingBox([0,0,d.canvas.width,d.canvas.height],t);this.ctx.drawImage(d.canvas,0,0),this.ctx.restore(),this.compose(F)}}beginAnnotation(l,d,Z,t,F){if(h(this,DZ,Wi).call(this),Ka(this.ctx),this.ctx.save(),this.save(),this.baseTransform&&this.ctx.setTransform(...this.baseTransform),d){const c=d[2]-d[0],a=d[3]-d[1];if(F&&this.annotationCanvasMap){Z=Z.slice(),Z[4]-=d[0],Z[5]-=d[1],d=d.slice(),d[0]=d[1]=0,d[2]=c,d[3]=a;const[V,s]=O.singularValueDecompose2dScale(Sl(this.ctx)),{viewportScale:n}=this,Q=Math.ceil(c*this.outputScaleX*n),i=Math.ceil(a*this.outputScaleY*n);this.annotationCanvas=this.canvasFactory.create(Q,i);const{canvas:N,context:b}=this.annotationCanvas;this.annotationCanvasMap.set(l,N),this.annotationCanvas.savedCtx=this.ctx,this.ctx=b,this.ctx.save(),this.ctx.setTransform(V,0,0,-s,0,a*s),Ka(this.ctx)}else Ka(this.ctx),this.endPath(),this.ctx.rect(d[0],d[1],c,a),this.ctx.clip(),this.ctx.beginPath()}this.current=new tN(this.ctx.canvas.width,this.ctx.canvas.height),this.transform(...Z),this.transform(...t)}endAnnotation(){this.annotationCanvas&&(this.ctx.restore(),h(this,DZ,ai).call(this),this.ctx=this.annotationCanvas.savedCtx,delete this.annotationCanvas.savedCtx,delete this.annotationCanvas)}paintImageMaskXObject(l){if(!this.contentVisible)return;const d=l.count;l=this.getObject(l.data,l),l.count=d;const Z=this.ctx,t=this.processingType3;if(t&&(t.compiled===void 0&&(t.compiled=a2(l)),t.compiled)){t.compiled(Z);return}const F=this._createMaskCanvas(l),c=F.canvas;Z.save(),Z.setTransform(1,0,0,1,0,0),Z.drawImage(c,F.offsetX,F.offsetY),Z.restore(),this.compose()}paintImageMaskXObjectRepeat(l,d,Z=0,t=0,F,c){if(!this.contentVisible)return;l=this.getObject(l.data,l);const a=this.ctx;a.save();const V=Sl(a);a.transform(d,Z,t,F,0,0);const s=this._createMaskCanvas(l);a.setTransform(1,0,0,1,s.offsetX-V[4],s.offsetY-V[5]);for(let n=0,Q=c.length;n<Q;n+=2){const i=O.transform(V,[d,Z,t,F,c[n],c[n+1]]),[N,b]=O.applyTransform([0,0],i);a.drawImage(s.canvas,N,b)}a.restore(),this.compose()}paintImageMaskXObjectGroup(l){if(!this.contentVisible)return;const d=this.ctx,Z=this.current.fillColor,t=this.current.patternFill;for(const F of l){const{data:c,width:a,height:V,transform:s}=F,n=this.cachedCanvases.getCanvas("maskCanvas",a,V),Q=n.context;Q.save();const i=this.getObject(c,F);cN(Q,i),Q.globalCompositeOperation="source-in",Q.fillStyle=t?Z.getPattern(Q,this,SU(d),hd.FILL):Z,Q.fillRect(0,0,a,V),Q.restore(),d.save(),d.transform(...s),d.scale(1,-1),ga(d,n.canvas,0,0,a,V,0,-1,1,1),d.restore()}this.compose()}paintImageXObject(l){if(!this.contentVisible)return;const d=this.getObject(l);if(!d){q("Dependent image isn't ready yet");return}this.paintInlineImageXObject(d)}paintImageXObjectRepeat(l,d,Z,t){if(!this.contentVisible)return;const F=this.getObject(l);if(!F){q("Dependent image isn't ready yet");return}const c=F.width,a=F.height,V=[];for(let s=0,n=t.length;s<n;s+=2)V.push({transform:[d,0,0,Z,t[s],t[s+1]],x:0,y:0,w:c,h:a});this.paintInlineImageXObjectGroup(F,V)}applyTransferMapsToCanvas(l){return this.current.transferMaps!=="none"&&(l.filter=this.current.transferMaps,l.drawImage(l.canvas,0,0),l.filter="none"),l.canvas}applyTransferMapsToBitmap(l){if(this.current.transferMaps==="none")return l.bitmap;const{bitmap:d,width:Z,height:t}=l,F=this.cachedCanvases.getCanvas("inlineImage",Z,t),c=F.context;return c.filter=this.current.transferMaps,c.drawImage(d,0,0),c.filter="none",F.canvas}paintInlineImageXObject(l){if(!this.contentVisible)return;const d=l.width,Z=l.height,t=this.ctx;if(this.save(),!ed){const{filter:a}=t;a!=="none"&&a!==""&&(t.filter="none")}t.scale(1/d,-1/Z);let F;if(l.bitmap)F=this.applyTransferMapsToBitmap(l);else if(typeof HTMLElement=="function"&&l instanceof HTMLElement||!l.data)F=l;else{const a=this.cachedCanvases.getCanvas("inlineImage",d,Z).context;FN(a,l),F=this.applyTransferMapsToCanvas(a)}const c=this._scaleImage(F,SU(t));t.imageSmoothingEnabled=WN(Sl(t),l.interpolate),ga(t,c.img,0,0,c.paintWidth,c.paintHeight,0,-Z,d,Z),this.compose(),this.restore()}paintInlineImageXObjectGroup(l,d){if(!this.contentVisible)return;const Z=this.ctx;let t;if(l.bitmap)t=l.bitmap;else{const F=l.width,c=l.height,a=this.cachedCanvases.getCanvas("inlineImage",F,c).context;FN(a,l),t=this.applyTransferMapsToCanvas(a)}for(const F of d)Z.save(),Z.transform(...F.transform),Z.scale(1,-1),ga(Z,t,F.x,F.y,F.w,F.h,0,-1,1,1),Z.restore();this.compose()}paintSolidColorImageMask(){this.contentVisible&&(this.ctx.fillRect(0,0,1,1),this.compose())}markPoint(l){}markPointProps(l,d){}beginMarkedContent(l){this.markedContentStack.push({visible:!0})}beginMarkedContentProps(l,d){l==="OC"?this.markedContentStack.push({visible:this.optionalContentConfig.isVisible(d)}):this.markedContentStack.push({visible:!0}),this.contentVisible=this.isContentVisible()}endMarkedContent(){this.markedContentStack.pop(),this.contentVisible=this.isContentVisible()}beginCompat(){}endCompat(){}consumePath(l){const d=this.current.isEmptyClip();this.pendingClip&&this.current.updateClipFromPath(),this.pendingClip||this.compose(l);const Z=this.ctx;this.pendingClip&&(d||(this.pendingClip===aN?Z.clip("evenodd"):Z.clip()),this.pendingClip=null),this.current.startNewPathAndClipBox(this.current.clipBox),Z.beginPath()}getSinglePixelWidth(){if(!this._cachedGetSinglePixelWidth){const l=Sl(this.ctx);if(l[1]===0&&l[2]===0)this._cachedGetSinglePixelWidth=1/Math.min(Math.abs(l[0]),Math.abs(l[3]));else{const d=Math.abs(l[0]*l[3]-l[2]*l[1]),Z=Math.hypot(l[0],l[2]),t=Math.hypot(l[1],l[3]);this._cachedGetSinglePixelWidth=Math.max(Z,t)/d}}return this._cachedGetSinglePixelWidth}getScaleForStroking(){if(this._cachedScaleForStroking[0]===-1){const{lineWidth:l}=this.current,{a:d,b:Z,c:t,d:F}=this.ctx.getTransform();let c,a;if(Z===0&&t===0){const V=Math.abs(d),s=Math.abs(F);if(V===s)if(l===0)c=a=1/V;else{const n=V*l;c=a=n<1?1/n:1}else if(l===0)c=1/V,a=1/s;else{const n=V*l,Q=s*l;c=n<1?1/n:1,a=Q<1?1/Q:1}}else{const V=Math.abs(d*F-Z*t),s=Math.hypot(d,Z),n=Math.hypot(t,F);if(l===0)c=n/V,a=s/V;else{const Q=l*V;c=n>Q?n/Q:1,a=s>Q?s/Q:1}}this._cachedScaleForStroking[0]=c,this._cachedScaleForStroking[1]=a}return this._cachedScaleForStroking}rescaleAndStroke(l){const{ctx:d}=this,{lineWidth:Z}=this.current,[t,F]=this.getScaleForStroking();if(d.lineWidth=Z||1,t===1&&F===1){d.stroke();return}const c=d.getLineDash();if(l&&d.save(),d.scale(t,F),c.length>0){const a=Math.max(t,F);d.setLineDash(c.map(V=>V/a)),d.lineDashOffset/=a}d.stroke(),l&&d.restore()}isContentVisible(){for(let l=this.markedContentStack.length-1;l>=0;l--)if(!this.markedContentStack[l].visible)return!1;return!0}};DZ=new WeakSet,Wi=function(){for(;this.stateStack.length||this.inSMaskMode;)this.restore();this.current.activeSMask=null,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)},ai=function(){if(this.pageColors){const U=this.filterFactory.addHCMFilter(this.pageColors.foreground,this.pageColors.background);if(U!=="none"){const l=this.ctx.filter;this.ctx.filter=U,this.ctx.drawImage(this.ctx.canvas,0,0),this.ctx.filter=l}}},Vi=function(U,l,d){const Z=new Path2D;return Z.addPath(U,new DOMMatrix(d).invertSelf().multiplySelf(l)),Z};let DV=Q2;for(const U in hU)DV.prototype[U]!==void 0&&(DV.prototype[hU[U]]=DV.prototype[U]);var Ha,va,Pa;let o0=(Ha=class{static get workerPort(){return W(this,va)}static set workerPort(U){if(!(typeof Worker<"u"&&U instanceof Worker)&&U!==null)throw new Error("Invalid `workerPort` type.");R(this,va,U)}static get workerSrc(){return W(this,Pa)}static set workerSrc(U){if(typeof U!="string")throw new Error("Invalid `workerSrc` type.");R(this,Pa,U)}},va=new WeakMap,Pa=new WeakMap,e(Ha,va,null),e(Ha,Pa,""),Ha);var c0,EV;class i2{constructor({parsedData:l,rawData:d}){e(this,c0),e(this,EV),R(this,c0,l),R(this,EV,d)}getRaw(){return W(this,EV)}get(l){return W(this,c0).get(l)??null}getAll(){return sR(W(this,c0))}has(l){return W(this,c0).has(l)}}c0=new WeakMap,EV=new WeakMap;const W0=Symbol("INTERNAL");var wV,CV,rV,lW;class R2{constructor(l,{name:d,intent:Z,usage:t,rbGroups:F}){e(this,wV,!1),e(this,CV,!1),e(this,rV,!1),e(this,lW,!0),R(this,wV,!!(l&jd.DISPLAY)),R(this,CV,!!(l&jd.PRINT)),this.name=d,this.intent=Z,this.usage=t,this.rbGroups=F}get visible(){if(W(this,rV))return W(this,lW);if(!W(this,lW))return!1;const{print:l,view:d}=this.usage;return W(this,wV)?d?.viewState!=="OFF":W(this,CV)?l?.printState!=="OFF":!0}_setVisible(l,d,Z=!1){l!==W0&&el("Internal method `_setVisible` called."),R(this,rV,Z),R(this,lW,d)}}wV=new WeakMap,CV=new WeakMap,rV=new WeakMap,lW=new WeakMap;var xt,Nl,dW,UW,cn,si;class N2{constructor(l,d=jd.DISPLAY){if(e(this,cn),e(this,xt,null),e(this,Nl,new Map),e(this,dW,null),e(this,UW,null),this.renderingIntent=d,this.name=null,this.creator=null,l!==null){this.name=l.name,this.creator=l.creator,R(this,UW,l.order);for(const Z of l.groups)W(this,Nl).set(Z.id,new R2(d,Z));if(l.baseState==="OFF")for(const Z of W(this,Nl).values())Z._setVisible(W0,!1);for(const Z of l.on)W(this,Nl).get(Z)._setVisible(W0,!0);for(const Z of l.off)W(this,Nl).get(Z)._setVisible(W0,!1);R(this,dW,this.getHash())}}isVisible(l){if(W(this,Nl).size===0)return!0;if(!l)return zn("Optional content group not defined."),!0;if(l.type==="OCG")return W(this,Nl).has(l.id)?W(this,Nl).get(l.id).visible:(q(`Optional content group not found: ${l.id}`),!0);if(l.type==="OCMD"){if(l.expression)return h(this,cn,si).call(this,l.expression);if(!l.policy||l.policy==="AnyOn"){for(const d of l.ids){if(!W(this,Nl).has(d))return q(`Optional content group not found: ${d}`),!0;if(W(this,Nl).get(d).visible)return!0}return!1}else if(l.policy==="AllOn"){for(const d of l.ids){if(!W(this,Nl).has(d))return q(`Optional content group not found: ${d}`),!0;if(!W(this,Nl).get(d).visible)return!1}return!0}else if(l.policy==="AnyOff"){for(const d of l.ids){if(!W(this,Nl).has(d))return q(`Optional content group not found: ${d}`),!0;if(!W(this,Nl).get(d).visible)return!0}return!1}else if(l.policy==="AllOff"){for(const d of l.ids){if(!W(this,Nl).has(d))return q(`Optional content group not found: ${d}`),!0;if(W(this,Nl).get(d).visible)return!1}return!0}return q(`Unknown optional content policy ${l.policy}.`),!0}return q(`Unknown group type ${l.type}.`),!0}setVisibility(l,d=!0,Z=!0){var t;const F=W(this,Nl).get(l);if(!F){q(`Optional content group not found: ${l}`);return}if(Z&&d&&F.rbGroups.length)for(const c of F.rbGroups)for(const a of c)a!==l&&((t=W(this,Nl).get(a))==null||t._setVisible(W0,!1,!0));F._setVisible(W0,!!d,!0),R(this,xt,null)}setOCGState({state:l,preserveRB:d}){let Z;for(const t of l){switch(t){case"ON":case"OFF":case"Toggle":Z=t;continue}const F=W(this,Nl).get(t);if(F)switch(Z){case"ON":this.setVisibility(t,!0,d);break;case"OFF":this.setVisibility(t,!1,d);break;case"Toggle":this.setVisibility(t,!F.visible,d);break}}R(this,xt,null)}get hasInitialVisibility(){return W(this,dW)===null||this.getHash()===W(this,dW)}getOrder(){return W(this,Nl).size?W(this,UW)?W(this,UW).slice():[...W(this,Nl).keys()]:null}getGroups(){return W(this,Nl).size>0?sR(W(this,Nl)):null}getGroup(l){return W(this,Nl).get(l)||null}getHash(){if(W(this,xt)!==null)return W(this,xt);const l=new xh;for(const[d,Z]of W(this,Nl))l.update(`${d}:${Z.visible}`);return R(this,xt,l.hexdigest())}}xt=new WeakMap,Nl=new WeakMap,dW=new WeakMap,UW=new WeakMap,cn=new WeakSet,si=function(U){const l=U.length;if(l<2)return!0;const d=U[0];for(let Z=1;Z<l;Z++){const t=U[Z];let F;if(Array.isArray(t))F=h(this,cn,si).call(this,t);else if(W(this,Nl).has(t))F=W(this,Nl).get(t).visible;else return q(`Optional content group not found: ${t}`),!0;switch(d){case"And":if(!F)return!1;break;case"Or":if(F)return!0;break;case"Not":return!F;default:return!0}}return d==="And"};class h2{constructor(l,{disableRange:d=!1,disableStream:Z=!1}){wl(l,'PDFDataTransportStream - missing required "pdfDataRangeTransport" argument.');const{length:t,initialData:F,progressiveDone:c,contentDispositionFilename:a}=l;if(this._queuedChunks=[],this._progressiveDone=c,this._contentDispositionFilename=a,F?.length>0){const V=F instanceof Uint8Array&&F.byteLength===F.buffer.byteLength?F.buffer:new Uint8Array(F).buffer;this._queuedChunks.push(V)}this._pdfDataRangeTransport=l,this._isStreamingSupported=!Z,this._isRangeSupported=!d,this._contentLength=t,this._fullRequestReader=null,this._rangeReaders=[],l.addRangeListener((V,s)=>{this._onReceiveData({begin:V,chunk:s})}),l.addProgressListener((V,s)=>{this._onProgress({loaded:V,total:s})}),l.addProgressiveReadListener(V=>{this._onReceiveData({chunk:V})}),l.addProgressiveDoneListener(()=>{this._onProgressiveDone()}),l.transportReady()}_onReceiveData({begin:l,chunk:d}){const Z=d instanceof Uint8Array&&d.byteLength===d.buffer.byteLength?d.buffer:new Uint8Array(d).buffer;if(l===void 0)this._fullRequestReader?this._fullRequestReader._enqueue(Z):this._queuedChunks.push(Z);else{const t=this._rangeReaders.some(function(F){return F._begin!==l?!1:(F._enqueue(Z),!0)});wl(t,"_onReceiveData - no `PDFDataTransportStreamRangeReader` instance found.")}}get _progressiveDataLength(){var l;return((l=this._fullRequestReader)==null?void 0:l._loaded)??0}_onProgress(l){var d,Z,t,F;l.total===void 0?(Z=(d=this._rangeReaders[0])==null?void 0:d.onProgress)==null||Z.call(d,{loaded:l.loaded}):(F=(t=this._fullRequestReader)==null?void 0:t.onProgress)==null||F.call(t,{loaded:l.loaded,total:l.total})}_onProgressiveDone(){var l;(l=this._fullRequestReader)==null||l.progressiveDone(),this._progressiveDone=!0}_removeRangeReader(l){const d=this._rangeReaders.indexOf(l);d>=0&&this._rangeReaders.splice(d,1)}getFullReader(){wl(!this._fullRequestReader,"PDFDataTransportStream.getFullReader can only be called once.");const l=this._queuedChunks;return this._queuedChunks=null,new b2(this,l,this._progressiveDone,this._contentDispositionFilename)}getRangeReader(l,d){if(d<=this._progressiveDataLength)return null;const Z=new e2(this,l,d);return this._pdfDataRangeTransport.requestDataRange(l,d),this._rangeReaders.push(Z),Z}cancelAllRequests(l){var d;(d=this._fullRequestReader)==null||d.cancel(l);for(const Z of this._rangeReaders.slice(0))Z.cancel(l);this._pdfDataRangeTransport.abort()}}class b2{constructor(l,d,Z=!1,t=null){this._stream=l,this._done=Z||!1,this._filename=iR(t)?t:null,this._queuedChunks=d||[],this._loaded=0;for(const F of this._queuedChunks)this._loaded+=F.byteLength;this._requests=[],this._headersReady=Promise.resolve(),l._fullRequestReader=this,this.onProgress=null}_enqueue(l){this._done||(this._requests.length>0?this._requests.shift().resolve({value:l,done:!1}):this._queuedChunks.push(l),this._loaded+=l.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 l=Promise.withResolvers();return this._requests.push(l),l.promise}cancel(l){this._done=!0;for(const d of this._requests)d.resolve({value:void 0,done:!0});this._requests.length=0}progressiveDone(){this._done||(this._done=!0)}}class e2{constructor(l,d,Z){this._stream=l,this._begin=d,this._end=Z,this._queuedChunk=null,this._requests=[],this._done=!1,this.onProgress=null}_enqueue(l){if(!this._done){if(this._requests.length===0)this._queuedChunk=l;else{this._requests.shift().resolve({value:l,done:!1});for(const d of this._requests)d.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 d=this._queuedChunk;return this._queuedChunk=null,{value:d,done:!1}}if(this._done)return{value:void 0,done:!0};const l=Promise.withResolvers();return this._requests.push(l),l.promise}cancel(l){this._done=!0;for(const d of this._requests)d.resolve({value:void 0,done:!0});this._requests.length=0,this._stream._removeRangeReader(this)}}function m2(U){let l=!0,d=Z("filename\\*","i").exec(U);if(d){d=d[1];let n=a(d);return n=unescape(n),n=V(n),n=s(n),F(n)}if(d=c(U),d){const n=s(d);return F(n)}if(d=Z("filename","i").exec(U),d){d=d[1];let n=a(d);return n=s(n),F(n)}function Z(n,Q){return new RegExp("(?:^|;)\\s*"+n+'\\s*=\\s*([^";\\s][^;\\s]*|"(?:[^"\\\\]|\\\\"?)+"?)',Q)}function t(n,Q){if(n){if(!/^[\x00-\xFF]+$/.test(Q))return Q;try{const i=new TextDecoder(n,{fatal:!0}),N=Ln(Q);Q=i.decode(N),l=!1}catch{}}return Q}function F(n){return l&&/[\x80-\xff]/.test(n)&&(n=t("utf-8",n),l&&(n=t("iso-8859-1",n))),n}function c(n){const Q=[];let i;const N=Z("filename\\*((?!0\\d)\\d+)(\\*?)","ig");for(;(i=N.exec(n))!==null;){let[,m,M,J]=i;if(m=parseInt(m,10),m in Q){if(m===0)break;continue}Q[m]=[M,J]}const b=[];for(let m=0;m<Q.length&&m in Q;++m){let[M,J]=Q[m];J=a(J),M&&(J=unescape(J),m===0&&(J=V(J))),b.push(J)}return b.join("")}function a(n){if(n.startsWith('"')){const Q=n.slice(1).split('\\"');for(let i=0;i<Q.length;++i){const N=Q[i].indexOf('"');N!==-1&&(Q[i]=Q[i].slice(0,N),Q.length=i+1),Q[i]=Q[i].replaceAll(/\\(.)/g,"$1")}n=Q.join('"')}return n}function V(n){const Q=n.indexOf("'");if(Q===-1)return n;const i=n.slice(0,Q),N=n.slice(Q+1).replace(/^[^']*'/,"");return t(i,N)}function s(n){return!n.startsWith("=?")||/[\x00-\x19\x80-\xff]/.test(n)?n:n.replaceAll(/=\?([\w-]*)\?([QqBb])\?((?:[^?]|\?(?!=))*)\?=/g,function(Q,i,N,b){if(N==="q"||N==="Q")return b=b.replaceAll("_"," "),b=b.replaceAll(/=([0-9a-fA-F]{2})/g,function(m,M){return String.fromCharCode(parseInt(M,16))}),t(i,b);try{b=atob(b)}catch{}return t(i,b)})}return""}function Ub(U,l){const d=new Headers;if(!U||!l||typeof l!="object")return d;for(const Z in l){const t=l[Z];t!==void 0&&d.append(Z,t)}return d}function En(U){try{return new URL(U).origin}catch{}return null}function Zb({responseHeaders:U,isHttp:l,rangeChunkSize:d,disableRange:Z}){const t={allowRangeRequests:!1,suggestedLength:void 0},F=parseInt(U.get("Content-Length"),10);return!Number.isInteger(F)||(t.suggestedLength=F,F<=2*d)||Z||!l||U.get("Accept-Ranges")!=="bytes"||(U.get("Content-Encoding")||"identity")!=="identity"||(t.allowRangeRequests=!0),t}function tb(U){const l=U.get("Content-Disposition");if(l){let d=m2(l);if(d.includes("%"))try{d=decodeURIComponent(d)}catch{}if(iR(d))return d}return null}function wn(U,l){return U===404||U===0&&l.startsWith("file:")?new Ra('Missing PDF "'+l+'".'):new ln(`Unexpected server response (${U}) while retrieving PDF "${l}".`,U)}function Fb(U){return U===200||U===206}function cb(U,l,d){return{method:"GET",headers:U,signal:d.signal,mode:"cors",credentials:l?"include":"same-origin",redirect:"follow"}}function Wb(U){return U instanceof Uint8Array?U.buffer:U instanceof ArrayBuffer?U:(q(`getArrayBuffer - unexpected data format: ${U}`),new Uint8Array(U).buffer)}class VN{constructor(l){v(this,"_responseOrigin",null),this.source=l,this.isHttp=/^https?:/i.test(l.url),this.headers=Ub(this.isHttp,l.httpHeaders),this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){var l;return((l=this._fullRequestReader)==null?void 0:l._loaded)??0}getFullReader(){return wl(!this._fullRequestReader,"PDFFetchStream.getFullReader can only be called once."),this._fullRequestReader=new M2(this),this._fullRequestReader}getRangeReader(l,d){if(d<=this._progressiveDataLength)return null;const Z=new J2(this,l,d);return this._rangeRequestReaders.push(Z),Z}cancelAllRequests(l){var d;(d=this._fullRequestReader)==null||d.cancel(l);for(const Z of this._rangeRequestReaders.slice(0))Z.cancel(l)}}class M2{constructor(l){this._stream=l,this._reader=null,this._loaded=0,this._filename=null;const d=l.source;this._withCredentials=d.withCredentials||!1,this._contentLength=d.length,this._headersCapability=Promise.withResolvers(),this._disableRange=d.disableRange||!1,this._rangeChunkSize=d.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),this._abortController=new AbortController,this._isStreamingSupported=!d.disableStream,this._isRangeSupported=!d.disableRange;const Z=new Headers(l.headers),t=d.url;fetch(t,cb(Z,this._withCredentials,this._abortController)).then(F=>{if(l._responseOrigin=En(F.url),!Fb(F.status))throw wn(F.status,t);this._reader=F.body.getReader(),this._headersCapability.resolve();const c=F.headers,{allowRangeRequests:a,suggestedLength:V}=Zb({responseHeaders:c,isHttp:l.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=a,this._contentLength=V||this._contentLength,this._filename=tb(c),!this._isStreamingSupported&&this._isRangeSupported&&this.cancel(new Rt("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(){var l;await this._headersCapability.promise;const{value:d,done:Z}=await this._reader.read();return Z?{value:d,done:Z}:(this._loaded+=d.byteLength,(l=this.onProgress)==null||l.call(this,{loaded:this._loaded,total:this._contentLength}),{value:Wb(d),done:!1})}cancel(l){var d;(d=this._reader)==null||d.cancel(l),this._abortController.abort()}}class J2{constructor(l,d,Z){this._stream=l,this._reader=null,this._loaded=0;const t=l.source;this._withCredentials=t.withCredentials||!1,this._readCapability=Promise.withResolvers(),this._isStreamingSupported=!t.disableStream,this._abortController=new AbortController;const F=new Headers(l.headers);F.append("Range",`bytes=${d}-${Z-1}`);const c=t.url;fetch(c,cb(F,this._withCredentials,this._abortController)).then(a=>{const V=En(a.url);if(V!==l._responseOrigin)throw new Error(`Expected range response-origin "${V}" to match "${l._responseOrigin}".`);if(!Fb(a.status))throw wn(a.status,c);this._readCapability.resolve(),this._reader=a.body.getReader()}).catch(this._readCapability.reject),this.onProgress=null}get isStreamingSupported(){return this._isStreamingSupported}async read(){var l;await this._readCapability.promise;const{value:d,done:Z}=await this._reader.read();return Z?{value:d,done:Z}:(this._loaded+=d.byteLength,(l=this.onProgress)==null||l.call(this,{loaded:this._loaded}),{value:Wb(d),done:!1})}cancel(l){var d;(d=this._reader)==null||d.cancel(l),this._abortController.abort()}}const cQ=200,WQ=206;function G2(U){const l=U.response;return typeof l!="string"?l:Ln(l).buffer}class S2{constructor({url:l,httpHeaders:d,withCredentials:Z}){v(this,"_responseOrigin",null),this.url=l,this.isHttp=/^https?:/i.test(l),this.headers=Ub(this.isHttp,d),this.withCredentials=Z||!1,this.currXhrId=0,this.pendingRequests=Object.create(null)}request(l){const d=new XMLHttpRequest,Z=this.currXhrId++,t=this.pendingRequests[Z]={xhr:d};d.open("GET",this.url),d.withCredentials=this.withCredentials;for(const[F,c]of this.headers)d.setRequestHeader(F,c);return this.isHttp&&"begin"in l&&"end"in l?(d.setRequestHeader("Range",`bytes=${l.begin}-${l.end-1}`),t.expectedStatus=WQ):t.expectedStatus=cQ,d.responseType="arraybuffer",wl(l.onError,"Expected `onError` callback to be provided."),d.onerror=()=>{l.onError(d.status)},d.onreadystatechange=this.onStateChange.bind(this,Z),d.onprogress=this.onProgress.bind(this,Z),t.onHeadersReceived=l.onHeadersReceived,t.onDone=l.onDone,t.onError=l.onError,t.onProgress=l.onProgress,d.send(null),Z}onProgress(l,d){var Z;const t=this.pendingRequests[l];t&&((Z=t.onProgress)==null||Z.call(t,d))}onStateChange(l,d){const Z=this.pendingRequests[l];if(!Z)return;const t=Z.xhr;if(t.readyState>=2&&Z.onHeadersReceived&&(Z.onHeadersReceived(),delete Z.onHeadersReceived),t.readyState!==4||!(l in this.pendingRequests))return;if(delete this.pendingRequests[l],t.status===0&&this.isHttp){Z.onError(t.status);return}const F=t.status||cQ;if(!(F===cQ&&Z.expectedStatus===WQ)&&F!==Z.expectedStatus){Z.onError(t.status);return}const c=G2(t);if(F===WQ){const a=t.getResponseHeader("Content-Range"),V=/bytes (\d+)-(\d+)\/(\d+)/.exec(a);V?Z.onDone({begin:parseInt(V[1],10),chunk:c}):(q('Missing or invalid "Content-Range" header.'),Z.onError(0))}else c?Z.onDone({begin:0,chunk:c}):Z.onError(t.status)}getRequestXhr(l){return this.pendingRequests[l].xhr}isPendingRequest(l){return l in this.pendingRequests}abortRequest(l){const d=this.pendingRequests[l].xhr;delete this.pendingRequests[l],d.abort()}}class T2{constructor(l){this._source=l,this._manager=new S2(l),this._rangeChunkSize=l.rangeChunkSize,this._fullRequestReader=null,this._rangeRequestReaders=[]}_onRangeRequestReaderClosed(l){const d=this._rangeRequestReaders.indexOf(l);d>=0&&this._rangeRequestReaders.splice(d,1)}getFullReader(){return wl(!this._fullRequestReader,"PDFNetworkStream.getFullReader can only be called once."),this._fullRequestReader=new X2(this._manager,this._source),this._fullRequestReader}getRangeReader(l,d){const Z=new p2(this._manager,l,d);return Z.onClosed=this._onRangeRequestReaderClosed.bind(this),this._rangeRequestReaders.push(Z),Z}cancelAllRequests(l){var d;(d=this._fullRequestReader)==null||d.cancel(l);for(const Z of this._rangeRequestReaders.slice(0))Z.cancel(l)}}class X2{constructor(l,d){this._manager=l,this._url=d.url,this._fullRequestId=l.request({onHeadersReceived:this._onHeadersReceived.bind(this),onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)}),this._headersCapability=Promise.withResolvers(),this._disableRange=d.disableRange||!1,this._contentLength=d.length,this._rangeChunkSize=d.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 l=this._fullRequestId,d=this._manager.getRequestXhr(l);this._manager._responseOrigin=En(d.responseURL);const Z=d.getAllResponseHeaders(),t=new Headers(Z?Z.trimStart().replace(/[^\S ]+$/,"").split(/[\r\n]+/).map(a=>{const[V,...s]=a.split(": ");return[V,s.join(": ")]}):[]),{allowRangeRequests:F,suggestedLength:c}=Zb({responseHeaders:t,isHttp:this._manager.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});F&&(this._isRangeSupported=!0),this._contentLength=c||this._contentLength,this._filename=tb(t),this._isRangeSupported&&this._manager.abortRequest(l),this._headersCapability.resolve()}_onDone(l){if(l&&(this._requests.length>0?this._requests.shift().resolve({value:l.chunk,done:!1}):this._cachedChunks.push(l.chunk)),this._done=!0,!(this._cachedChunks.length>0)){for(const d of this._requests)d.resolve({value:void 0,done:!0});this._requests.length=0}}_onError(l){this._storedError=wn(l,this._url),this._headersCapability.reject(this._storedError);for(const d of this._requests)d.reject(this._storedError);this._requests.length=0,this._cachedChunks.length=0}_onProgress(l){var d;(d=this.onProgress)==null||d.call(this,{loaded:l.loaded,total:l.lengthComputable?l.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._headersCapability.promise}async read(){if(await this._headersCapability.promise,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 l=Promise.withResolvers();return this._requests.push(l),l.promise}cancel(l){this._done=!0,this._headersCapability.reject(l);for(const d of this._requests)d.resolve({value:void 0,done:!0});this._requests.length=0,this._manager.isPendingRequest(this._fullRequestId)&&this._manager.abortRequest(this._fullRequestId),this._fullRequestReader=null}}class p2{constructor(l,d,Z){this._manager=l,this._url=l.url,this._requestId=l.request({begin:d,end:Z,onHeadersReceived:this._onHeadersReceived.bind(this),onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)}),this._requests=[],this._queuedChunk=null,this._done=!1,this._storedError=void 0,this.onProgress=null,this.onClosed=null}_onHeadersReceived(){var l;const d=En((l=this._manager.getRequestXhr(this._requestId))==null?void 0:l.responseURL);d!==this._manager._responseOrigin&&(this._storedError=new Error(`Expected range response-origin "${d}" to match "${this._manager._responseOrigin}".`),this._onError(0))}_close(){var l;(l=this.onClosed)==null||l.call(this,this)}_onDone(l){const d=l.chunk;this._requests.length>0?this._requests.shift().resolve({value:d,done:!1}):this._queuedChunk=d,this._done=!0;for(const Z of this._requests)Z.resolve({value:void 0,done:!0});this._requests.length=0,this._close()}_onError(l){this._storedError??(this._storedError=wn(l,this._url));for(const d of this._requests)d.reject(this._storedError);this._requests.length=0,this._queuedChunk=null}_onProgress(l){var d;this.isStreamingSupported||(d=this.onProgress)==null||d.call(this,{loaded:l.loaded})}get isStreamingSupported(){return!1}async read(){if(this._storedError)throw this._storedError;if(this._queuedChunk!==null){const d=this._queuedChunk;return this._queuedChunk=null,{value:d,done:!1}}if(this._done)return{value:void 0,done:!0};const l=Promise.withResolvers();return this._requests.push(l),l.promise}cancel(l){this._done=!0;for(const d of this._requests)d.resolve({value:void 0,done:!0});this._requests.length=0,this._manager.isPendingRequest(this._requestId)&&this._manager.abortRequest(this._requestId),this._close()}}const u2=/^[a-z][a-z0-9\-+.]+:/i;function Y2(U){if(u2.test(U))return new URL(U);const l=process.getBuiltinModule("url");return new URL(l.pathToFileURL(U))}class B2{constructor(l){this.source=l,this.url=Y2(l.url),wl(this.url.protocol==="file:","PDFNodeStream only supports file:// URLs."),this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){var l;return((l=this._fullRequestReader)==null?void 0:l._loaded)??0}getFullReader(){return wl(!this._fullRequestReader,"PDFNodeStream.getFullReader can only be called once."),this._fullRequestReader=new o2(this),this._fullRequestReader}getRangeReader(l,d){if(d<=this._progressiveDataLength)return null;const Z=new y2(this,l,d);return this._rangeRequestReaders.push(Z),Z}cancelAllRequests(l){var d;(d=this._fullRequestReader)==null||d.cancel(l);for(const Z of this._rangeRequestReaders.slice(0))Z.cancel(l)}}class o2{constructor(l){this._url=l.url,this._done=!1,this._storedError=null,this.onProgress=null;const d=l.source;this._contentLength=d.length,this._loaded=0,this._filename=null,this._disableRange=d.disableRange||!1,this._rangeChunkSize=d.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),this._isStreamingSupported=!d.disableStream,this._isRangeSupported=!d.disableRange,this._readableStream=null,this._readCapability=Promise.withResolvers(),this._headersCapability=Promise.withResolvers();const Z=process.getBuiltinModule("fs");Z.promises.lstat(this._url).then(t=>{this._contentLength=t.size,this._setReadableStream(Z.createReadStream(this._url)),this._headersCapability.resolve()},t=>{t.code==="ENOENT"&&(t=new Ra(`Missing PDF "${this._url}".`)),this._storedError=t,this._headersCapability.reject(t)})}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(){var l;if(await this._readCapability.promise,this._done)return{value:void 0,done:!0};if(this._storedError)throw this._storedError;const d=this._readableStream.read();return d===null?(this._readCapability=Promise.withResolvers(),this.read()):(this._loaded+=d.length,(l=this.onProgress)==null||l.call(this,{loaded:this._loaded,total:this._contentLength}),{value:new Uint8Array(d).buffer,done:!1})}cancel(l){if(!this._readableStream){this._error(l);return}this._readableStream.destroy(l)}_error(l){this._storedError=l,this._readCapability.resolve()}_setReadableStream(l){this._readableStream=l,l.on("readable",()=>{this._readCapability.resolve()}),l.on("end",()=>{l.destroy(),this._done=!0,this._readCapability.resolve()}),l.on("error",d=>{this._error(d)}),!this._isStreamingSupported&&this._isRangeSupported&&this._error(new Rt("streaming is disabled")),this._storedError&&this._readableStream.destroy(this._storedError)}}class y2{constructor(l,d,Z){this._url=l.url,this._done=!1,this._storedError=null,this.onProgress=null,this._loaded=0,this._readableStream=null,this._readCapability=Promise.withResolvers();const t=l.source;this._isStreamingSupported=!t.disableStream;const F=process.getBuiltinModule("fs");this._setReadableStream(F.createReadStream(this._url,{start:d,end:Z-1}))}get isStreamingSupported(){return this._isStreamingSupported}async read(){var l;if(await this._readCapability.promise,this._done)return{value:void 0,done:!0};if(this._storedError)throw this._storedError;const d=this._readableStream.read();return d===null?(this._readCapability=Promise.withResolvers(),this.read()):(this._loaded+=d.length,(l=this.onProgress)==null||l.call(this,{loaded:this._loaded}),{value:new Uint8Array(d).buffer,done:!1})}cancel(l){if(!this._readableStream){this._error(l);return}this._readableStream.destroy(l)}_error(l){this._storedError=l,this._readCapability.resolve()}_setReadableStream(l){this._readableStream=l,l.on("readable",()=>{this._readCapability.resolve()}),l.on("end",()=>{l.destroy(),this._done=!0,this._readCapability.resolve()}),l.on("error",d=>{this._error(d)}),this._storedError&&this._readableStream.destroy(this._storedError)}}const k2=1e5,pd=30,z2=.8;var sN,pt,Ld,fa,Aa,ut,YZ,_a,qa,IF,mc,Mc,Yt,Jc,$a,Gc,DF,lV,dV,rl,EF,wF,UV,Bt,Sc,CF,nN,QN,aQ,AU,ZV,VQ,iN,RN;let ni=(rl=class{constructor({textContentSource:U,container:l,viewport:d}){e(this,CF),e(this,pt,Promise.withResolvers()),e(this,Ld,null),e(this,fa,!1),e(this,Aa,!!((sN=globalThis.FontInspector)!=null&&sN.enabled)),e(this,ut,null),e(this,YZ,null),e(this,_a,0),e(this,qa,0),e(this,IF,null),e(this,mc,null),e(this,Mc,0),e(this,Yt,0),e(this,Jc,Object.create(null)),e(this,$a,[]),e(this,Gc,null),e(this,DF,[]),e(this,lV,new WeakMap),e(this,dV,null);var Z;if(U instanceof ReadableStream)R(this,Gc,U);else if(typeof U=="object")R(this,Gc,new ReadableStream({start(V){V.enqueue(U),V.close()}}));else throw new Error('No "textContentSource" parameter specified.');R(this,Ld,R(this,mc,l)),R(this,Yt,d.scale*(globalThis.devicePixelRatio||1)),R(this,Mc,d.rotation),R(this,YZ,{div:null,properties:null,ctx:null});const{pageWidth:t,pageHeight:F,pageX:c,pageY:a}=d.rawDims;R(this,dV,[1,0,0,-1,-c,a+F]),R(this,qa,t),R(this,_a,F),h(Z=rl,AU,iN).call(Z),GF(l,d),W(this,pt).promise.finally(()=>{W(rl,Sc).delete(this),R(this,YZ,null),R(this,Jc,null)}).catch(()=>{})}static get fontFamilyMap(){const{isWindows:U,isFirefox:l}=Xd.platform;return Ul(this,"fontFamilyMap",new Map([["sans-serif",`${U&&l?"Calibri, ":""}sans-serif`],["monospace",`${U&&l?"Lucida Console, ":""}monospace`]]))}render(){const U=()=>{W(this,IF).read().then(({value:l,done:d})=>{if(d){W(this,pt).resolve();return}W(this,ut)??R(this,ut,l.lang),Object.assign(W(this,Jc),l.styles),h(this,CF,nN).call(this,l.items),U()},W(this,pt).reject)};return R(this,IF,W(this,Gc).getReader()),W(rl,Sc).add(this),U(),W(this,pt).promise}update({viewport:U,onBefore:l=null}){var d;const Z=U.scale*(globalThis.devicePixelRatio||1),t=U.rotation;if(t!==W(this,Mc)&&(l?.(),R(this,Mc,t),GF(W(this,mc),{rotation:t})),Z!==W(this,Yt)){l?.(),R(this,Yt,Z);const F={div:null,properties:null,ctx:h(d=rl,AU,ZV).call(d,W(this,ut))};for(const c of W(this,DF))F.properties=W(this,lV).get(c),F.div=c,h(this,CF,aQ).call(this,F)}}cancel(){var U;const l=new Rt("TextLayer task cancelled.");(U=W(this,IF))==null||U.cancel(l).catch(()=>{}),R(this,IF,null),W(this,pt).reject(l)}get textDivs(){return W(this,DF)}get textContentItemsStr(){return W(this,$a)}static cleanup(){if(!(W(this,Sc).size>0)){W(this,EF).clear();for(const{canvas:U}of W(this,wF).values())U.remove();W(this,wF).clear()}}},pt=new WeakMap,Ld=new WeakMap,fa=new WeakMap,Aa=new WeakMap,ut=new WeakMap,YZ=new WeakMap,_a=new WeakMap,qa=new WeakMap,IF=new WeakMap,mc=new WeakMap,Mc=new WeakMap,Yt=new WeakMap,Jc=new WeakMap,$a=new WeakMap,Gc=new WeakMap,DF=new WeakMap,lV=new WeakMap,dV=new WeakMap,EF=new WeakMap,wF=new WeakMap,UV=new WeakMap,Bt=new WeakMap,Sc=new WeakMap,CF=new WeakSet,nN=function(U){var l,d;if(W(this,fa))return;(d=W(this,YZ)).ctx??(d.ctx=h(l=rl,AU,ZV).call(l,W(this,ut)));const Z=W(this,DF),t=W(this,$a);for(const F of U){if(Z.length>k2){q("Ignoring additional textDivs for performance reasons."),R(this,fa,!0);return}if(F.str===void 0){if(F.type==="beginMarkedContentProps"||F.type==="beginMarkedContent"){const c=W(this,Ld);R(this,Ld,document.createElement("span")),W(this,Ld).classList.add("markedContent"),F.id!==null&&W(this,Ld).setAttribute("id",`${F.id}`),c.append(W(this,Ld))}else F.type==="endMarkedContent"&&R(this,Ld,W(this,Ld).parentNode);continue}t.push(F.str),h(this,CF,QN).call(this,F)}},QN=function(U){var l;const d=document.createElement("span"),Z={angle:0,canvasWidth:0,hasText:U.str!=="",hasEOL:U.hasEOL,fontSize:0};W(this,DF).push(d);const t=O.transform(W(this,dV),U.transform);let F=Math.atan2(t[1],t[0]);const c=W(this,Jc)[U.fontName];c.vertical&&(F+=Math.PI/2);let a=W(this,Aa)&&c.fontSubstitution||c.fontFamily;a=rl.fontFamilyMap.get(a)||a;const V=Math.hypot(t[2],t[3]),s=V*h(l=rl,AU,RN).call(l,a,W(this,ut));let n,Q;F===0?(n=t[4],Q=t[5]-s):(n=t[4]+s*Math.sin(F),Q=t[5]-s*Math.cos(F));const i="calc(var(--scale-factor)*",N=d.style;W(this,Ld)===W(this,mc)?(N.left=`${(100*n/W(this,qa)).toFixed(2)}%`,N.top=`${(100*Q/W(this,_a)).toFixed(2)}%`):(N.left=`${i}${n.toFixed(2)}px)`,N.top=`${i}${Q.toFixed(2)}px)`),N.fontSize=`${i}${(W(rl,Bt)*V).toFixed(2)}px)`,N.fontFamily=a,Z.fontSize=V,d.setAttribute("role","presentation"),d.textContent=U.str,d.dir=U.dir,W(this,Aa)&&(d.dataset.fontName=c.fontSubstitutionLoadedName||U.fontName),F!==0&&(Z.angle=F*(180/Math.PI));let b=!1;if(U.str.length>1)b=!0;else if(U.str!==" "&&U.transform[0]!==U.transform[3]){const m=Math.abs(U.transform[0]),M=Math.abs(U.transform[3]);m!==M&&Math.max(m,M)/Math.min(m,M)>1.5&&(b=!0)}if(b&&(Z.canvasWidth=c.vertical?U.height:U.width),W(this,lV).set(d,Z),W(this,YZ).div=d,W(this,YZ).properties=Z,h(this,CF,aQ).call(this,W(this,YZ)),Z.hasText&&W(this,Ld).append(d),Z.hasEOL){const m=document.createElement("br");m.setAttribute("role","presentation"),W(this,Ld).append(m)}},aQ=function(U){var l;const{div:d,properties:Z,ctx:t}=U,{style:F}=d;let c="";if(W(rl,Bt)>1&&(c=`scale(${1/W(rl,Bt)})`),Z.canvasWidth!==0&&Z.hasText){const{fontFamily:a}=F,{canvasWidth:V,fontSize:s}=Z;h(l=rl,AU,VQ).call(l,t,s*W(this,Yt),a);const{width:n}=t.measureText(d.textContent);n>0&&(c=`scaleX(${V*W(this,Yt)/n}) ${c}`)}Z.angle!==0&&(c=`rotate(${Z.angle}deg) ${c}`),c.length>0&&(F.transform=c)},AU=new WeakSet,ZV=function(U=null){let l=W(this,wF).get(U||(U=""));if(!l){const d=document.createElement("canvas");d.className="hiddenCanvasElement",d.lang=U,document.body.append(d),l=d.getContext("2d",{alpha:!1,willReadFrequently:!0}),W(this,wF).set(U,l),W(this,UV).set(l,{size:0,family:""})}return l},VQ=function(U,l,d){const Z=W(this,UV).get(U);l===Z.size&&d===Z.family||(U.font=`${l}px ${d}`,Z.size=l,Z.family=d)},iN=function(){if(W(this,Bt)!==null)return;const U=document.createElement("div");U.style.opacity=0,U.style.lineHeight=1,U.style.fontSize="1px",U.style.position="absolute",U.textContent="X",document.body.append(U),R(this,Bt,U.getBoundingClientRect().height),U.remove()},RN=function(U,l){const d=W(this,EF).get(U);if(d)return d;const Z=h(this,AU,ZV).call(this,l);Z.canvas.width=Z.canvas.height=pd,h(this,AU,VQ).call(this,Z,pd,U);const t=Z.measureText("");let F=t.fontBoundingBoxAscent,c=Math.abs(t.fontBoundingBoxDescent);if(F){const s=F/(F+c);return W(this,EF).set(U,s),Z.canvas.width=Z.canvas.height=0,s}Z.strokeStyle="red",Z.clearRect(0,0,pd,pd),Z.strokeText("g",0,0);let a=Z.getImageData(0,0,pd,pd).data;c=0;for(let s=a.length-1-3;s>=0;s-=4)if(a[s]>0){c=Math.ceil(s/4/pd);break}Z.clearRect(0,0,pd,pd),Z.strokeText("A",0,pd),a=Z.getImageData(0,0,pd,pd).data,F=0;for(let s=0,n=a.length;s<n;s+=4)if(a[s]>0){F=pd-Math.floor(s/4/pd);break}Z.canvas.width=Z.canvas.height=0;const V=F?F/(F+c):z2;return W(this,EF).set(U,V),V},e(rl,AU),e(rl,EF,new Map),e(rl,wF,new Map),e(rl,UV,new WeakMap),e(rl,Bt,null),e(rl,Sc,new Set),rl);class ha{static textContent(l){const d=[],Z={items:d,styles:Object.create(null)};function t(F){var c;if(!F)return;let a=null;const V=F.name;if(V==="#text")a=F.value;else if(ha.shouldBuildText(V))(c=F?.attributes)!=null&&c.textContent?a=F.attributes.textContent:F.value&&(a=F.value);else return;if(a!==null&&d.push({str:a}),!!F.children)for(const s of F.children)t(s)}return t(l),Z}static shouldBuildText(l){return!(l==="textarea"||l==="input"||l==="option"||l==="select")}}const L2=65536,I2=100,D2=5e3,E2=ed?fm:Hm,w2=ed?Am:vh,C2=ed?Pm:vm,r2=ed?_m:_h;function x2(U={}){typeof U=="string"||U instanceof URL?U={url:U}:(U instanceof ArrayBuffer||ArrayBuffer.isView(U))&&(U={data:U});const l=new g2,{docId:d}=l,Z=U.url?j2(U.url):null,t=U.data?O2(U.data):null,F=U.httpHeaders||null,c=U.withCredentials===!0,a=U.password??null,V=U.range instanceof sb?U.range:null,s=Number.isInteger(U.rangeChunkSize)&&U.rangeChunkSize>0?U.rangeChunkSize:L2;let n=U.worker instanceof xV?U.worker:null;const Q=U.verbosity,i=typeof U.docBaseUrl=="string"&&!Dn(U.docBaseUrl)?U.docBaseUrl:null,N=typeof U.cMapUrl=="string"?U.cMapUrl:null,b=U.cMapPacked!==!1,m=U.CMapReaderFactory||w2,M=typeof U.standardFontDataUrl=="string"?U.standardFontDataUrl:null,J=U.StandardFontDataFactory||r2,S=U.stopAtErrors!==!0,G=Number.isInteger(U.maxImageSize)&&U.maxImageSize>-1?U.maxImageSize:-1,T=U.isEvalSupported!==!1,p=typeof U.isOffscreenCanvasSupported=="boolean"?U.isOffscreenCanvasSupported:!ed,u=typeof U.isImageDecoderSupported=="boolean"?U.isImageDecoderSupported:!ed&&(Xd.platform.isFirefox||!globalThis.chrome),Y=Number.isInteger(U.canvasMaxAreaInBytes)?U.canvasMaxAreaInBytes:-1,o=typeof U.disableFontFace=="boolean"?U.disableFontFace:ed,X=U.fontExtraProperties===!0,B=U.enableXfa===!0,y=U.ownerDocument||globalThis.document,E=U.disableRange===!0,D=U.disableStream===!0,w=U.disableAutoFetch===!0,I=U.pdfBug===!0,L=U.CanvasFactory||E2,H=U.FilterFactory||C2,f=U.enableHWA===!0,Vl=V?V.length:U.length??NaN,Ml=typeof U.useSystemFonts=="boolean"?U.useSystemFonts:!ed&&!o,Jl=typeof U.useWorkerFetch=="boolean"?U.useWorkerFetch:m===vh&&J===_h&&N&&M&&xc(N,document.baseURI)&&xc(M,document.baseURI),il=null;Jm(Q);const hl={canvasFactory:new L({ownerDocument:y,enableHWA:f}),filterFactory:new H({docId:d,ownerDocument:y}),cMapReaderFactory:Jl?null:new m({baseUrl:N,isCompressed:b}),standardFontDataFactory:Jl?null:new J({baseUrl:M})};if(!n){const C={verbosity:Q,port:o0.workerPort};n=C.port?xV.fromPort(C):new xV(C),l._worker=n}const MU={docId:d,apiVersion:"4.10.38",data:t,password:a,disableAutoFetch:w,rangeChunkSize:s,length:Vl,docBaseUrl:i,enableXfa:B,evaluatorOptions:{maxImageSize:G,disableFontFace:o,ignoreErrors:S,isEvalSupported:T,isOffscreenCanvasSupported:p,isImageDecoderSupported:u,canvasMaxAreaInBytes:Y,fontExtraProperties:X,useSystemFonts:Ml,cMapUrl:Jl?N:null,standardFontDataUrl:Jl?M:null}},JU={disableFontFace:o,fontExtraProperties:X,ownerDocument:y,pdfBug:I,styleElement:il,loadingParams:{disableAutoFetch:w,enableXfa:B}};return n.promise.then(function(){if(l.destroyed)throw new Error("Loading aborted");if(n.destroyed)throw new Error("Worker was destroyed");const C=n.messageHandler.sendWithPromise("GetDocRequest",MU,t?[t.buffer]:null);let z;if(V)z=new h2(V,{disableRange:E,disableStream:D});else if(!t){if(!Z)throw new Error("getDocument - no `url` parameter provided.");let r;if(ed)if(xc(Z)){if(typeof fetch>"u"||typeof Response>"u"||!("body"in Response.prototype))throw new Error("getDocument - the Fetch API was disabled in Node.js, see `--no-experimental-fetch`.");r=VN}else r=B2;else r=xc(Z)?VN:T2;z=new r({url:Z,length:Vl,httpHeaders:F,withCredentials:c,rangeChunkSize:s,disableRange:E,disableStream:D})}return C.then(r=>{if(l.destroyed)throw new Error("Loading aborted");if(n.destroyed)throw new Error("Worker was destroyed");const $=new Ac(d,r,n.port),bl=new P2($,l,z,JU,hl);l._transport=bl,$.send("Ready",null)})}).catch(l._capability.reject),l}function j2(U){if(U instanceof URL)return U.href;try{return new URL(U,window.location).href}catch{if(ed&&typeof U=="string")return U}throw new Error("Invalid PDF url data: either string or URL-object is expected in the url property.")}function O2(U){if(ed&&typeof Buffer<"u"&&U instanceof Buffer)throw new Error("Please provide binary data as `Uint8Array`, rather than `Buffer`.");if(U instanceof Uint8Array&&U.byteLength===U.buffer.byteLength)return U;if(typeof U=="string")return Ln(U);if(U instanceof ArrayBuffer||ArrayBuffer.isView(U)||typeof U=="object"&&!isNaN(U?.length))return new Uint8Array(U);throw new Error("Invalid PDF binary data: either TypedArray, string, or array-like object is expected in the data property.")}function NN(U){return typeof U=="object"&&Number.isInteger(U?.num)&&U.num>=0&&Number.isInteger(U?.gen)&&U.gen>=0}var Qi;const ab=class Vb{constructor(){this._capability=Promise.withResolvers(),this._transport=null,this._worker=null,this.docId=`d${Td(Vb,Qi)._++}`,this.destroyed=!1,this.onPassword=null,this.onProgress=null}get promise(){return this._capability.promise}async destroy(){var l,d,Z,t;this.destroyed=!0;try{(l=this._worker)!=null&&l.port&&(this._worker._pendingDestroy=!0),await((d=this._transport)==null?void 0:d.destroy())}catch(F){throw(Z=this._worker)!=null&&Z.port&&delete this._worker._pendingDestroy,F}this._transport=null,(t=this._worker)==null||t.destroy(),this._worker=null}};Qi=new WeakMap,e(ab,Qi,0);let g2=ab,sb=class{constructor(U,l,d=!1,Z=null){this.length=U,this.initialData=l,this.progressiveDone=d,this.contentDispositionFilename=Z,this._rangeListeners=[],this._progressListeners=[],this._progressiveReadListeners=[],this._progressiveDoneListeners=[],this._readyCapability=Promise.withResolvers()}addRangeListener(U){this._rangeListeners.push(U)}addProgressListener(U){this._progressListeners.push(U)}addProgressiveReadListener(U){this._progressiveReadListeners.push(U)}addProgressiveDoneListener(U){this._progressiveDoneListeners.push(U)}onDataRange(U,l){for(const d of this._rangeListeners)d(U,l)}onDataProgress(U,l){this._readyCapability.promise.then(()=>{for(const d of this._progressListeners)d(U,l)})}onDataProgressiveRead(U){this._readyCapability.promise.then(()=>{for(const l of this._progressiveReadListeners)l(U)})}onDataProgressiveDone(){this._readyCapability.promise.then(()=>{for(const U of this._progressiveDoneListeners)U()})}transportReady(){this._readyCapability.resolve()}requestDataRange(U,l){el("Abstract method PDFDataRangeTransport.requestDataRange")}abort(){}};class K2{constructor(l,d){this._pdfInfo=l,this._transport=d}get annotationStorage(){return this._transport.annotationStorage}get canvasFactory(){return this._transport.canvasFactory}get filterFactory(){return this._transport.filterFactory}get numPages(){return this._pdfInfo.numPages}get fingerprints(){return this._pdfInfo.fingerprints}get isPureXfa(){return Ul(this,"isPureXfa",!!this._transport._htmlForXfa)}get allXfaHtml(){return this._transport._htmlForXfa}getPage(l){return this._transport.getPage(l)}getPageIndex(l){return this._transport.getPageIndex(l)}getDestinations(){return this._transport.getDestinations()}getDestination(l){return this._transport.getDestination(l)}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:l="display"}={}){const{renderingIntent:d}=this._transport.getRenderingIntent(l);return this._transport.getOptionalContentConfig(d)}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(l=!1){return this._transport.startCleanup(l||this.isPureXfa)}destroy(){return this.loadingTask.destroy()}cachedPageNumber(l){return this._transport.cachedPageNumber(l)}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()}}var jt,dt,EU,y0,Wn;class H2{constructor(l,d,Z,t=!1){e(this,EU),e(this,jt,null),e(this,dt,!1),this._pageIndex=l,this._pageInfo=d,this._transport=Z,this._stats=t?new yR:null,this._pdfBug=t,this.commonObjs=Z.commonObjs,this.objs=new nb,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:l,rotation:d=this.rotate,offsetX:Z=0,offsetY:t=0,dontFlip:F=!1}={}){return new ma({viewBox:this.view,userUnit:this.userUnit,scale:l,rotation:d,offsetX:Z,offsetY:t,dontFlip:F})}getAnnotations({intent:l="display"}={}){const{renderingIntent:d}=this._transport.getRenderingIntent(l);return this._transport.getAnnotations(this._pageIndex,d)}getJSActions(){return this._transport.getPageJSActions(this._pageIndex)}get filterFactory(){return this._transport.filterFactory}get isPureXfa(){return Ul(this,"isPureXfa",!!this._transport._htmlForXfa)}async getXfa(){var l;return((l=this._transport._htmlForXfa)==null?void 0:l.children[this._pageIndex])||null}render({canvasContext:l,viewport:d,intent:Z="display",annotationMode:t=$Z.ENABLE,transform:F=null,background:c=null,optionalContentConfigPromise:a=null,annotationCanvasMap:V=null,pageColors:s=null,printAnnotationStorage:n=null,isEditing:Q=!1}){var i,N;(i=this._stats)==null||i.time("Overall");const b=this._transport.getRenderingIntent(Z,t,n,Q),{renderingIntent:m,cacheKey:M}=b;R(this,dt,!1),h(this,EU,Wn).call(this),a||(a=this._transport.getOptionalContentConfig(m));let J=this._intentStates.get(M);J||(J=Object.create(null),this._intentStates.set(M,J)),J.streamReaderCancelTimeout&&(clearTimeout(J.streamReaderCancelTimeout),J.streamReaderCancelTimeout=null);const S=!!(m&jd.PRINT);J.displayReadyCapability||(J.displayReadyCapability=Promise.withResolvers(),J.operatorList={fnArray:[],argsArray:[],lastChunk:!1,separateAnnots:null},(N=this._stats)==null||N.time("Page Request"),this._pumpOperatorList(b));const G=u=>{var Y;J.renderTasks.delete(T),(this._maybeCleanupAfterRender||S)&&R(this,dt,!0),h(this,EU,y0).call(this,!S),u?(T.capability.reject(u),this._abortOperatorList({intentState:J,reason:u instanceof Error?u:new Error(u)})):T.capability.resolve(),this._stats&&(this._stats.timeEnd("Rendering"),this._stats.timeEnd("Overall"),(Y=globalThis.Stats)!=null&&Y.enabled&&globalThis.Stats.add(this.pageNumber,this._stats))},T=new A2({callback:G,params:{canvasContext:l,viewport:d,transform:F,background:c},objs:this.objs,commonObjs:this.commonObjs,annotationCanvasMap:V,operatorList:J.operatorList,pageIndex:this._pageIndex,canvasFactory:this._transport.canvasFactory,filterFactory:this._transport.filterFactory,useRequestAnimationFrame:!S,pdfBug:this._pdfBug,pageColors:s});(J.renderTasks||(J.renderTasks=new Set)).add(T);const p=T.task;return Promise.all([J.displayReadyCapability.promise,a]).then(([u,Y])=>{var o;if(this.destroyed){G();return}if((o=this._stats)==null||o.time("Rendering"),!(Y.renderingIntent&m))throw new Error("Must use the same `intent`-argument when calling the `PDFPageProxy.render` and `PDFDocumentProxy.getOptionalContentConfig` methods.");T.initializeGraphics({transparency:u,optionalContentConfig:Y}),T.operatorListChanged()}).catch(G),p}getOperatorList({intent:l="display",annotationMode:d=$Z.ENABLE,printAnnotationStorage:Z=null,isEditing:t=!1}={}){var F;function c(){V.operatorList.lastChunk&&(V.opListReadCapability.resolve(V.operatorList),V.renderTasks.delete(s))}const a=this._transport.getRenderingIntent(l,d,Z,t,!0);let V=this._intentStates.get(a.cacheKey);V||(V=Object.create(null),this._intentStates.set(a.cacheKey,V));let s;return V.opListReadCapability||(s=Object.create(null),s.operatorListChanged=c,V.opListReadCapability=Promise.withResolvers(),(V.renderTasks||(V.renderTasks=new Set)).add(s),V.operatorList={fnArray:[],argsArray:[],lastChunk:!1,separateAnnots:null},(F=this._stats)==null||F.time("Page Request"),this._pumpOperatorList(a)),V.opListReadCapability.promise}streamTextContent({includeMarkedContent:l=!1,disableNormalization:d=!1}={}){return this._transport.messageHandler.sendWithStream("GetTextContent",{pageIndex:this._pageIndex,includeMarkedContent:l===!0,disableNormalization:d===!0},{highWaterMark:100,size(Z){return Z.items.length}})}getTextContent(l={}){if(this._transport._htmlForXfa)return this.getXfa().then(Z=>ha.textContent(Z));const d=this.streamTextContent(l);return new Promise(function(Z,t){function F(){c.read().then(function({value:V,done:s}){if(s){Z(a);return}a.lang??(a.lang=V.lang),Object.assign(a.styles,V.styles),a.items.push(...V.items),F()},t)}const c=d.getReader(),a={items:[],styles:Object.create(null),lang:null};F()})}getStructTree(){return this._transport.getStructTree(this._pageIndex)}_destroy(){this.destroyed=!0;const l=[];for(const d of this._intentStates.values())if(this._abortOperatorList({intentState:d,reason:new Error("Page was destroyed."),force:!0}),!d.opListReadCapability)for(const Z of d.renderTasks)l.push(Z.completed),Z.cancel();return this.objs.clear(),R(this,dt,!1),h(this,EU,Wn).call(this),Promise.all(l)}cleanup(l=!1){R(this,dt,!0);const d=h(this,EU,y0).call(this,!1);return l&&d&&this._stats&&(this._stats=new yR),d}_startRenderPage(l,d){var Z,t;const F=this._intentStates.get(d);F&&((Z=this._stats)==null||Z.timeEnd("Page Request"),(t=F.displayReadyCapability)==null||t.resolve(l))}_renderPageChunk(l,d){for(let Z=0,t=l.length;Z<t;Z++)d.operatorList.fnArray.push(l.fnArray[Z]),d.operatorList.argsArray.push(l.argsArray[Z]);d.operatorList.lastChunk=l.lastChunk,d.operatorList.separateAnnots=l.separateAnnots;for(const Z of d.renderTasks)Z.operatorListChanged();l.lastChunk&&h(this,EU,y0).call(this,!0)}_pumpOperatorList({renderingIntent:l,cacheKey:d,annotationStorageSerializable:Z,modifiedIds:t}){const{map:F,transfer:c}=Z,a=this._transport.messageHandler.sendWithStream("GetOperatorList",{pageIndex:this._pageIndex,intent:l,cacheKey:d,annotationStorage:F,modifiedIds:t},c).getReader(),V=this._intentStates.get(d);V.streamReader=a;const s=()=>{a.read().then(({value:n,done:Q})=>{if(Q){V.streamReader=null;return}this._transport.destroyed||(this._renderPageChunk(n,V),s())},n=>{if(V.streamReader=null,!this._transport.destroyed){if(V.operatorList){V.operatorList.lastChunk=!0;for(const Q of V.renderTasks)Q.operatorListChanged();h(this,EU,y0).call(this,!0)}if(V.displayReadyCapability)V.displayReadyCapability.reject(n);else if(V.opListReadCapability)V.opListReadCapability.reject(n);else throw n}})};s()}_abortOperatorList({intentState:l,reason:d,force:Z=!1}){if(l.streamReader){if(l.streamReaderCancelTimeout&&(clearTimeout(l.streamReaderCancelTimeout),l.streamReaderCancelTimeout=null),!Z){if(l.renderTasks.size>0)return;if(d instanceof QR){let t=I2;d.extraDelay>0&&d.extraDelay<1e3&&(t+=d.extraDelay),l.streamReaderCancelTimeout=setTimeout(()=>{l.streamReaderCancelTimeout=null,this._abortOperatorList({intentState:l,reason:d,force:!0})},t);return}}if(l.streamReader.cancel(new Rt(d.message)).catch(()=>{}),l.streamReader=null,!this._transport.destroyed){for(const[t,F]of this._intentStates)if(F===l){this._intentStates.delete(t);break}this.cleanup()}}}get stats(){return this._stats}}jt=new WeakMap,dt=new WeakMap,EU=new WeakSet,y0=function(U=!1){if(h(this,EU,Wn).call(this),!W(this,dt)||this.destroyed)return!1;if(U)return R(this,jt,setTimeout(()=>{R(this,jt,null),h(this,EU,y0).call(this,!1)},D2)),!1;for(const{renderTasks:l,operatorList:d}of this._intentStates.values())if(l.size>0||!d.lastChunk)return!1;return this._intentStates.clear(),this.objs.clear(),R(this,dt,!1),!0},Wn=function(){W(this,jt)&&(clearTimeout(W(this,jt)),R(this,jt,null))};var EZ,ii;class v2{constructor(){e(this,EZ,new Map),e(this,ii,Promise.resolve())}postMessage(l,d){const Z={data:structuredClone(l,d?{transfer:d}:null)};W(this,ii).then(()=>{for(const[t]of W(this,EZ))t.call(this,Z)})}addEventListener(l,d,Z=null){let t=null;if(Z?.signal instanceof AbortSignal){const{signal:F}=Z;if(F.aborted){q("LoopbackPort - cannot use an `aborted` signal.");return}const c=()=>this.removeEventListener(l,d);t=()=>F.removeEventListener("abort",c),F.addEventListener("abort",c)}W(this,EZ).set(d,t)}removeEventListener(l,d){const Z=W(this,EZ).get(d);Z?.(),W(this,EZ).delete(d)}terminate(){for(const[,l]of W(this,EZ))l?.();W(this,EZ).clear()}}EZ=new WeakMap,ii=new WeakMap;var ul,sQ,rF,ot,Tc,tV,Xc,FV;let xV=(ul=class{constructor({name:U=null,port:l=null,verbosity:d=Gm()}={}){e(this,Tc);var Z;if(this.name=U,this.destroyed=!1,this.verbosity=d,this._readyCapability=Promise.withResolvers(),this._port=null,this._webWorker=null,this._messageHandler=null,l){if((Z=W(ul,ot))!=null&&Z.has(l))throw new Error("Cannot use more than one PDFWorker per port.");(W(ul,ot)||R(ul,ot,new WeakMap)).set(l,this),this._initializeFromPort(l);return}this._initialize()}get promise(){return this._readyCapability.promise}get port(){return this._port}get messageHandler(){return this._messageHandler}_initializeFromPort(U){this._port=U,this._messageHandler=new Ac("main","worker",U),this._messageHandler.on("ready",function(){}),h(this,Tc,tV).call(this)}_initialize(){if(W(ul,rF)||W(ul,Xc,FV)){this._setupFakeWorker();return}let{workerSrc:U}=ul;try{ul._isSameOrigin(window.location.href,U)||(U=ul._createCDNWrapper(new URL(U,window.location).href));const l=new Worker(U,{type:"module"}),d=new Ac("main","worker",l),Z=()=>{t.abort(),d.destroy(),l.terminate(),this.destroyed?this._readyCapability.reject(new Error("Worker was destroyed")):this._setupFakeWorker()},t=new AbortController;l.addEventListener("error",()=>{this._webWorker||Z()},{signal:t.signal}),d.on("test",c=>{if(t.abort(),this.destroyed||!c){Z();return}this._messageHandler=d,this._port=l,this._webWorker=l,h(this,Tc,tV).call(this)}),d.on("ready",c=>{if(t.abort(),this.destroyed){Z();return}try{F()}catch{this._setupFakeWorker()}});const F=()=>{const c=new Uint8Array;d.send("test",c,[c.buffer])};F();return}catch{zn("The worker has been disabled.")}this._setupFakeWorker()}_setupFakeWorker(){W(ul,rF)||(q("Setting up fake worker."),R(ul,rF,!0)),ul._setupFakeWorkerGlobal.then(U=>{if(this.destroyed){this._readyCapability.reject(new Error("Worker was destroyed"));return}const l=new v2;this._port=l;const d=`fake${Td(ul,sQ)._++}`,Z=new Ac(d+"_worker",d,l);U.setup(Z,l),this._messageHandler=new Ac(d,d+"_worker",l),h(this,Tc,tV).call(this)}).catch(U=>{this._readyCapability.reject(new Error(`Setting up fake worker failed: "${U.message}".`))})}destroy(){var U,l,d;this.destroyed=!0,(U=this._webWorker)==null||U.terminate(),this._webWorker=null,(l=W(ul,ot))==null||l.delete(this._port),this._port=null,(d=this._messageHandler)==null||d.destroy(),this._messageHandler=null}static fromPort(U){var l;if(!(U!=null&&U.port))throw new Error("PDFWorker.fromPort - invalid method signature.");const d=(l=W(this,ot))==null?void 0:l.get(U.port);if(d){if(d._pendingDestroy)throw new Error("PDFWorker.fromPort - the worker is being destroyed.\nPlease remember to await `PDFDocumentLoadingTask.destroy()`-calls.");return d}return new ul(U)}static get workerSrc(){if(o0.workerSrc)return o0.workerSrc;throw new Error('No "GlobalWorkerOptions.workerSrc" specified.')}static get _setupFakeWorkerGlobal(){return Ul(this,"_setupFakeWorkerGlobal",(async()=>W(this,Xc,FV)?W(this,Xc,FV):(await import(this.workerSrc)).WorkerMessageHandler)())}},sQ=new WeakMap,rF=new WeakMap,ot=new WeakMap,Tc=new WeakSet,tV=function(){this._readyCapability.resolve(),this._messageHandler.send("configure",{verbosity:this.verbosity})},Xc=new WeakSet,FV=function(){var U;try{return((U=globalThis.pdfjsWorker)==null?void 0:U.WorkerMessageHandler)||null}catch{return null}},e(ul,Xc),e(ul,sQ,0),e(ul,rF,!1),e(ul,ot),ed&&(R(ul,rF,!0),o0.workerSrc||(o0.workerSrc="./pdf.worker.mjs")),ul._isSameOrigin=(U,l)=>{let d;try{if(d=new URL(U),!d.origin||d.origin==="null")return!1}catch{return!1}const Z=new URL(l,d);return d.origin===Z.origin},ul._createCDNWrapper=U=>{const l=`await import("${U}");`;return URL.createObjectURL(new Blob([l],{type:"text/javascript"}))},ul);var Ut,dZ,ZW,tW,wZ,a0,FW;class P2{constructor(l,d,Z,t,F){e(this,a0),e(this,Ut,new Map),e(this,dZ,new Map),e(this,ZW,new Map),e(this,tW,new Map),e(this,wZ,null),this.messageHandler=l,this.loadingTask=d,this.commonObjs=new nb,this.fontLoader=new gm({ownerDocument:t.ownerDocument,styleElement:t.styleElement}),this.loadingParams=t.loadingParams,this._params=t,this.canvasFactory=F.canvasFactory,this.filterFactory=F.filterFactory,this.cMapReaderFactory=F.cMapReaderFactory,this.standardFontDataFactory=F.standardFontDataFactory,this.destroyed=!1,this.destroyCapability=null,this._networkStream=Z,this._fullReader=null,this._lastProgress=null,this.downloadInfoCapability=Promise.withResolvers(),this.setupMessageHandler()}get annotationStorage(){return Ul(this,"annotationStorage",new hR)}getRenderingIntent(l,d=$Z.ENABLE,Z=null,t=!1,F=!1){let c=jd.DISPLAY,a=Ui;switch(l){case"any":c=jd.ANY;break;case"display":break;case"print":c=jd.PRINT;break;default:q(`getRenderingIntent - invalid intent: ${l}`)}const V=c&jd.PRINT&&Z instanceof Oh?Z:this.annotationStorage;switch(d){case $Z.DISABLE:c+=jd.ANNOTATIONS_DISABLE;break;case $Z.ENABLE:break;case $Z.ENABLE_FORMS:c+=jd.ANNOTATIONS_FORMS;break;case $Z.ENABLE_STORAGE:c+=jd.ANNOTATIONS_STORAGE,a=V.serializable;break;default:q(`getRenderingIntent - invalid annotationMode: ${d}`)}t&&(c+=jd.IS_EDITING),F&&(c+=jd.OPLIST);const{ids:s,hash:n}=V.modifiedIds,Q=[c,a.hash,n];return{renderingIntent:c,cacheKey:Q.join("_"),annotationStorageSerializable:a,modifiedIds:s}}destroy(){var l;if(this.destroyCapability)return this.destroyCapability.promise;this.destroyed=!0,this.destroyCapability=Promise.withResolvers(),(l=W(this,wZ))==null||l.reject(new Error("Worker was destroyed during onPassword callback"));const d=[];for(const t of W(this,dZ).values())d.push(t._destroy());W(this,dZ).clear(),W(this,ZW).clear(),W(this,tW).clear(),this.hasOwnProperty("annotationStorage")&&this.annotationStorage.resetModified();const Z=this.messageHandler.sendWithPromise("Terminate",null);return d.push(Z),Promise.all(d).then(()=>{var t,F;this.commonObjs.clear(),this.fontLoader.clear(),W(this,Ut).clear(),this.filterFactory.destroy(),ni.cleanup(),(t=this._networkStream)==null||t.cancelAllRequests(new Rt("Worker was terminated.")),(F=this.messageHandler)==null||F.destroy(),this.messageHandler=null,this.destroyCapability.resolve()},this.destroyCapability.reject),this.destroyCapability.promise}setupMessageHandler(){const{messageHandler:l,loadingTask:d}=this;l.on("GetReader",(Z,t)=>{wl(this._networkStream,"GetReader - no `IPDFStream` instance available."),this._fullReader=this._networkStream.getFullReader(),this._fullReader.onProgress=F=>{this._lastProgress={loaded:F.loaded,total:F.total}},t.onPull=()=>{this._fullReader.read().then(function({value:F,done:c}){if(c){t.close();return}wl(F instanceof ArrayBuffer,"GetReader - expected an ArrayBuffer."),t.enqueue(new Uint8Array(F),1,[F])}).catch(F=>{t.error(F)})},t.onCancel=F=>{this._fullReader.cancel(F),t.ready.catch(c=>{if(!this.destroyed)throw c})}}),l.on("ReaderHeadersReady",async Z=>{var t;await this._fullReader.headersReady;const{isStreamingSupported:F,isRangeSupported:c,contentLength:a}=this._fullReader;return(!F||!c)&&(this._lastProgress&&((t=d.onProgress)==null||t.call(d,this._lastProgress)),this._fullReader.onProgress=V=>{var s;(s=d.onProgress)==null||s.call(d,{loaded:V.loaded,total:V.total})}),{isStreamingSupported:F,isRangeSupported:c,contentLength:a}}),l.on("GetRangeReader",(Z,t)=>{wl(this._networkStream,"GetRangeReader - no `IPDFStream` instance available.");const F=this._networkStream.getRangeReader(Z.begin,Z.end);if(!F){t.close();return}t.onPull=()=>{F.read().then(function({value:c,done:a}){if(a){t.close();return}wl(c instanceof ArrayBuffer,"GetRangeReader - expected an ArrayBuffer."),t.enqueue(new Uint8Array(c),1,[c])}).catch(c=>{t.error(c)})},t.onCancel=c=>{F.cancel(c),t.ready.catch(a=>{if(!this.destroyed)throw a})}}),l.on("GetDoc",({pdfInfo:Z})=>{this._numPages=Z.numPages,this._htmlForXfa=Z.htmlForXfa,delete Z.htmlForXfa,d._capability.resolve(new K2(Z,this))}),l.on("DocException",Z=>{d._capability.reject(od(Z))}),l.on("PasswordRequest",Z=>{R(this,wZ,Promise.withResolvers());try{if(!d.onPassword)throw od(Z);const t=F=>{F instanceof Error?W(this,wZ).reject(F):W(this,wZ).resolve({password:F})};d.onPassword(t,Z.code)}catch(t){W(this,wZ).reject(t)}return W(this,wZ).promise}),l.on("DataLoaded",Z=>{var t;(t=d.onProgress)==null||t.call(d,{loaded:Z.length,total:Z.length}),this.downloadInfoCapability.resolve(Z)}),l.on("StartRenderPage",Z=>{this.destroyed||W(this,dZ).get(Z.pageIndex)._startRenderPage(Z.transparency,Z.cacheKey)}),l.on("commonobj",([Z,t,F])=>{var c;if(this.destroyed||this.commonObjs.has(Z))return null;switch(t){case"Font":const{disableFontFace:a,fontExtraProperties:V,pdfBug:s}=this._params;if("error"in F){const N=F.error;q(`Error during font loading: ${N}`),this.commonObjs.resolve(Z,N);break}const n=s&&(c=globalThis.FontInspector)!=null&&c.enabled?(N,b)=>globalThis.FontInspector.fontAdded(N,b):null,Q=new Km(F,{disableFontFace:a,fontExtraProperties:V,inspectFont:n});this.fontLoader.bind(Q).catch(()=>l.sendWithPromise("FontFallback",{id:Z})).finally(()=>{!V&&Q.data&&(Q.data=null),this.commonObjs.resolve(Z,Q)});break;case"CopyLocalImage":const{imageRef:i}=F;wl(i,"The imageRef must be defined.");for(const N of W(this,dZ).values())for(const[,b]of N.objs)if(b?.ref===i)return b.dataLen?(this.commonObjs.resolve(Z,structuredClone(b)),b.dataLen):null;break;case"FontPath":case"Image":case"Pattern":this.commonObjs.resolve(Z,F);break;default:throw new Error(`Got unknown common object type ${t}`)}return null}),l.on("obj",([Z,t,F,c])=>{var a;if(this.destroyed)return;const V=W(this,dZ).get(t);if(!V.objs.has(Z)){if(V._intentStates.size===0){(a=c?.bitmap)==null||a.close();return}switch(F){case"Image":V.objs.resolve(Z,c),c?.dataLen>bm&&(V._maybeCleanupAfterRender=!0);break;case"Pattern":V.objs.resolve(Z,c);break;default:throw new Error(`Got unknown object type ${F}`)}}}),l.on("DocProgress",Z=>{var t;this.destroyed||(t=d.onProgress)==null||t.call(d,{loaded:Z.loaded,total:Z.total})}),l.on("FetchBuiltInCMap",async Z=>{if(this.destroyed)throw new Error("Worker was destroyed.");if(!this.cMapReaderFactory)throw new Error("CMapReaderFactory not initialized, see the `useWorkerFetch` parameter.");return this.cMapReaderFactory.fetch(Z)}),l.on("FetchStandardFontData",async Z=>{if(this.destroyed)throw new Error("Worker was destroyed.");if(!this.standardFontDataFactory)throw new Error("StandardFontDataFactory not initialized, see the `useWorkerFetch` parameter.");return this.standardFontDataFactory.fetch(Z)})}getData(){return this.messageHandler.sendWithPromise("GetData",null)}saveDocument(){var l;this.annotationStorage.size<=0&&q("saveDocument called while `annotationStorage` is empty, please use the getData-method instead.");const{map:d,transfer:Z}=this.annotationStorage.serializable;return this.messageHandler.sendWithPromise("SaveDocument",{isPureXfa:!!this._htmlForXfa,numPages:this._numPages,annotationStorage:d,filename:((l=this._fullReader)==null?void 0:l.filename)??null},Z).finally(()=>{this.annotationStorage.resetModified()})}getPage(l){if(!Number.isInteger(l)||l<=0||l>this._numPages)return Promise.reject(new Error("Invalid page request."));const d=l-1,Z=W(this,ZW).get(d);if(Z)return Z;const t=this.messageHandler.sendWithPromise("GetPage",{pageIndex:d}).then(F=>{if(this.destroyed)throw new Error("Transport destroyed");F.refStr&&W(this,tW).set(F.refStr,l);const c=new H2(d,F,this,this._params.pdfBug);return W(this,dZ).set(d,c),c});return W(this,ZW).set(d,t),t}getPageIndex(l){return NN(l)?this.messageHandler.sendWithPromise("GetPageIndex",{num:l.num,gen:l.gen}):Promise.reject(new Error("Invalid pageIndex request."))}getAnnotations(l,d){return this.messageHandler.sendWithPromise("GetAnnotations",{pageIndex:l,intent:d})}getFieldObjects(){return h(this,a0,FW).call(this,"GetFieldObjects")}hasJSActions(){return h(this,a0,FW).call(this,"HasJSActions")}getCalculationOrderIds(){return this.messageHandler.sendWithPromise("GetCalculationOrderIds",null)}getDestinations(){return this.messageHandler.sendWithPromise("GetDestinations",null)}getDestination(l){return typeof l!="string"?Promise.reject(new Error("Invalid destination request.")):this.messageHandler.sendWithPromise("GetDestination",{id:l})}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 h(this,a0,FW).call(this,"GetDocJSActions")}getPageJSActions(l){return this.messageHandler.sendWithPromise("GetPageJSActions",{pageIndex:l})}getStructTree(l){return this.messageHandler.sendWithPromise("GetStructTree",{pageIndex:l})}getOutline(){return this.messageHandler.sendWithPromise("GetOutline",null)}getOptionalContentConfig(l){return h(this,a0,FW).call(this,"GetOptionalContentConfig").then(d=>new N2(d,l))}getPermissions(){return this.messageHandler.sendWithPromise("GetPermissions",null)}getMetadata(){const l="GetMetadata",d=W(this,Ut).get(l);if(d)return d;const Z=this.messageHandler.sendWithPromise(l,null).then(t=>{var F,c;return{info:t[0],metadata:t[1]?new i2(t[1]):null,contentDispositionFilename:((F=this._fullReader)==null?void 0:F.filename)??null,contentLength:((c=this._fullReader)==null?void 0:c.contentLength)??null}});return W(this,Ut).set(l,Z),Z}getMarkInfo(){return this.messageHandler.sendWithPromise("GetMarkInfo",null)}async startCleanup(l=!1){if(!this.destroyed){await this.messageHandler.sendWithPromise("Cleanup",null);for(const d of W(this,dZ).values())if(!d.cleanup())throw new Error(`startCleanup: Page ${d.pageNumber} is currently rendering.`);this.commonObjs.clear(),l||this.fontLoader.clear(),W(this,Ut).clear(),this.filterFactory.destroy(!0),ni.cleanup()}}cachedPageNumber(l){if(!NN(l))return null;const d=l.gen===0?`${l.num}R`:`${l.num}R${l.gen}`;return W(this,tW).get(d)??null}}Ut=new WeakMap,dZ=new WeakMap,ZW=new WeakMap,tW=new WeakMap,wZ=new WeakMap,a0=new WeakSet,FW=function(U,l=null){const d=W(this,Ut).get(U);if(d)return d;const Z=this.messageHandler.sendWithPromise(U,l);return W(this,Ut).set(U,Z),Z};const cW=Symbol("INITIAL_DATA");var qd,jV,Ri;class nb{constructor(){e(this,jV),e(this,qd,Object.create(null))}get(l,d=null){if(d){const t=h(this,jV,Ri).call(this,l);return t.promise.then(()=>d(t.data)),null}const Z=W(this,qd)[l];if(!Z||Z.data===cW)throw new Error(`Requesting object that isn't resolved yet ${l}.`);return Z.data}has(l){const d=W(this,qd)[l];return!!d&&d.data!==cW}delete(l){const d=W(this,qd)[l];return!d||d.data===cW?!1:(delete W(this,qd)[l],!0)}resolve(l,d=null){const Z=h(this,jV,Ri).call(this,l);Z.data=d,Z.resolve()}clear(){var l;for(const d in W(this,qd)){const{data:Z}=W(this,qd)[d];(l=Z?.bitmap)==null||l.close()}R(this,qd,Object.create(null))}*[Symbol.iterator](){for(const l in W(this,qd)){const{data:d}=W(this,qd)[l];d!==cW&&(yield[l,d])}}}qd=new WeakMap,jV=new WeakSet,Ri=function(U){var l;return(l=W(this,qd))[U]||(l[U]={...Promise.withResolvers(),data:cW})};var Ot;class f2{constructor(l){e(this,Ot,null),R(this,Ot,l),this.onContinue=null}get promise(){return W(this,Ot).capability.promise}cancel(l=0){W(this,Ot).cancel(null,l)}get separateAnnots(){const{separateAnnots:l}=W(this,Ot).operatorList;if(!l)return!1;const{annotationCanvasMap:d}=W(this,Ot);return l.form||l.canvas&&d?.size>0}}Ot=new WeakMap;var gt,k0;const Qb=class WW{constructor({callback:l,params:d,objs:Z,commonObjs:t,annotationCanvasMap:F,operatorList:c,pageIndex:a,canvasFactory:V,filterFactory:s,useRequestAnimationFrame:n=!1,pdfBug:Q=!1,pageColors:i=null}){e(this,gt,null),this.callback=l,this.params=d,this.objs=Z,this.commonObjs=t,this.annotationCanvasMap=F,this.operatorListIdx=null,this.operatorList=c,this._pageIndex=a,this.canvasFactory=V,this.filterFactory=s,this._pdfBug=Q,this.pageColors=i,this.running=!1,this.graphicsReadyCallback=null,this.graphicsReady=!1,this._useRequestAnimationFrame=n===!0&&typeof window<"u",this.cancelled=!1,this.capability=Promise.withResolvers(),this.task=new f2(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=d.canvasContext.canvas}get completed(){return this.capability.promise.catch(function(){})}initializeGraphics({transparency:l=!1,optionalContentConfig:d}){var Z,t;if(this.cancelled)return;if(this._canvas){if(W(WW,k0).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.");W(WW,k0).add(this._canvas)}this._pdfBug&&(Z=globalThis.StepperManager)!=null&&Z.enabled&&(this.stepper=globalThis.StepperManager.create(this._pageIndex),this.stepper.init(this.operatorList),this.stepper.nextBreakPoint=this.stepper.getNextBreakPoint());const{canvasContext:F,viewport:c,transform:a,background:V}=this.params;this.gfx=new DV(F,this.commonObjs,this.objs,this.canvasFactory,this.filterFactory,{optionalContentConfig:d},this.annotationCanvasMap,this.pageColors),this.gfx.beginDrawing({transform:a,viewport:c,transparency:l,background:V}),this.operatorListIdx=0,this.graphicsReady=!0,(t=this.graphicsReadyCallback)==null||t.call(this)}cancel(l=null,d=0){var Z;this.running=!1,this.cancelled=!0,(Z=this.gfx)==null||Z.endDrawing(),W(this,gt)&&(window.cancelAnimationFrame(W(this,gt)),R(this,gt,null)),W(WW,k0).delete(this._canvas),this.callback(l||new QR(`Rendering cancelled, page ${this._pageIndex+1}`,d))}operatorListChanged(){var l;if(!this.graphicsReady){this.graphicsReadyCallback||(this.graphicsReadyCallback=this._continueBound);return}(l=this.stepper)==null||l.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?R(this,gt,window.requestAnimationFrame(()=>{R(this,gt,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(),W(WW,k0).delete(this._canvas),this.callback())))}};gt=new WeakMap,k0=new WeakMap,e(Qb,k0,new WeakSet);let A2=Qb;const _2="4.10.38",q2="f9bea397f";Wl(670);function hN(U){return Math.floor(Math.max(0,Math.min(1,U))*255).toString(16).padStart(2,"0")}function pc(U){return Math.max(0,Math.min(255,255*U))}class bN{static CMYK_G([l,d,Z,t]){return["G",1-Math.min(1,.3*l+.59*Z+.11*d+t)]}static G_CMYK([l]){return["CMYK",0,0,0,1-l]}static G_RGB([l]){return["RGB",l,l,l]}static G_rgb([l]){return l=pc(l),[l,l,l]}static G_HTML([l]){const d=hN(l);return`#${d}${d}${d}`}static RGB_G([l,d,Z]){return["G",.3*l+.59*d+.11*Z]}static RGB_rgb(l){return l.map(pc)}static RGB_HTML(l){return`#${l.map(hN).join("")}`}static T_HTML(){return"#00000000"}static T_rgb(){return[null]}static CMYK_RGB([l,d,Z,t]){return["RGB",1-Math.min(1,l+t),1-Math.min(1,Z+t),1-Math.min(1,d+t)]}static CMYK_rgb([l,d,Z,t]){return[pc(1-Math.min(1,l+t)),pc(1-Math.min(1,Z+t)),pc(1-Math.min(1,d+t))]}static CMYK_HTML(l){const d=this.CMYK_RGB(l).slice(1);return this.RGB_HTML(d)}static RGB_CMYK([l,d,Z]){const t=1-l,F=1-d,c=1-Z,a=Math.min(t,F,c);return["CMYK",t,F,c,a]}}class $2{create(l,d,Z=!1){if(l<=0||d<=0)throw new Error("Invalid SVG dimensions");const t=this._createSVG("svg:svg");return t.setAttribute("version","1.1"),Z||(t.setAttribute("width",`${l}px`),t.setAttribute("height",`${d}px`)),t.setAttribute("preserveAspectRatio","none"),t.setAttribute("viewBox",`0 0 ${l} ${d}`),t}createElement(l){if(typeof l!="string")throw new Error("Invalid SVG element type");return this._createSVG(l)}_createSVG(l){el("Abstract method `_createSVG` called.")}}let eR=class extends $2{_createSVG(U){return document.createElementNS(qU,U)}},ib=class{static setupStorage(U,l,d,Z,t){const F=Z.getValue(l,{value:null});switch(d.name){case"textarea":if(F.value!==null&&(U.textContent=F.value),t==="print")break;U.addEventListener("input",c=>{Z.setValue(l,{value:c.target.value})});break;case"input":if(d.attributes.type==="radio"||d.attributes.type==="checkbox"){if(F.value===d.attributes.xfaOn?U.setAttribute("checked",!0):F.value===d.attributes.xfaOff&&U.removeAttribute("checked"),t==="print")break;U.addEventListener("change",c=>{Z.setValue(l,{value:c.target.checked?c.target.getAttribute("xfaOn"):c.target.getAttribute("xfaOff")})})}else{if(F.value!==null&&U.setAttribute("value",F.value),t==="print")break;U.addEventListener("input",c=>{Z.setValue(l,{value:c.target.value})})}break;case"select":if(F.value!==null){U.setAttribute("value",F.value);for(const c of d.children)c.attributes.value===F.value?c.attributes.selected=!0:c.attributes.hasOwnProperty("selected")&&delete c.attributes.selected}U.addEventListener("input",c=>{const a=c.target.options,V=a.selectedIndex===-1?"":a[a.selectedIndex].value;Z.setValue(l,{value:V})});break}}static setAttributes({html:U,element:l,storage:d=null,intent:Z,linkService:t}){const{attributes:F}=l,c=U instanceof HTMLAnchorElement;F.type==="radio"&&(F.name=`${F.name}-${Z}`);for(const[a,V]of Object.entries(F))if(V!=null)switch(a){case"class":V.length&&U.setAttribute(a,V.join(" "));break;case"dataId":break;case"id":U.setAttribute("data-element-id",V);break;case"style":Object.assign(U.style,V);break;case"textContent":U.textContent=V;break;default:(!c||a!=="href"&&a!=="newWindow")&&U.setAttribute(a,V)}c&&t.addLinkAttributes(U,F.href,F.newWindow),d&&F.dataId&&this.setupStorage(U,F.dataId,l,d)}static render(U){var l,d;const Z=U.annotationStorage,t=U.linkService,F=U.xfaHtml,c=U.intent||"display",a=document.createElement(F.name);F.attributes&&this.setAttributes({html:a,element:F,intent:c,linkService:t});const V=c!=="richText",s=U.div;if(s.append(a),U.viewport){const i=`matrix(${U.viewport.transform.join(",")})`;s.style.transform=i}V&&s.setAttribute("class","xfaLayer xfaFont");const n=[];if(F.children.length===0){if(F.value){const i=document.createTextNode(F.value);a.append(i),V&&ha.shouldBuildText(F.name)&&n.push(i)}return{textDivs:n}}const Q=[[F,-1,a]];for(;Q.length>0;){const[i,N,b]=Q.at(-1);if(N+1===i.children.length){Q.pop();continue}const m=i.children[++Q.at(-1)[1]];if(m===null)continue;const{name:M}=m;if(M==="#text"){const S=document.createTextNode(m.value);n.push(S),b.append(S);continue}const J=(l=m?.attributes)!=null&&l.xmlns?document.createElementNS(m.attributes.xmlns,M):document.createElement(M);if(b.append(J),m.attributes&&this.setAttributes({html:J,element:m,storage:Z,intent:c,linkService:t}),((d=m.children)==null?void 0:d.length)>0)Q.push([m,-1,J]);else if(m.value){const S=document.createTextNode(m.value);V&&ha.shouldBuildText(M)&&n.push(S),J.append(S)}}for(const i of s.querySelectorAll(".xfaNonInteractive input, .xfaNonInteractive textarea"))i.setAttribute("readOnly",!0);return{textDivs:n}}static update(U){const l=`matrix(${U.viewport.transform.join(",")})`;U.div.style.transform=l,U.div.hidden=!1}};const Ja=1e3,lM=9,SF=new WeakSet;function Nt(U){return{width:U[2]-U[0],height:U[3]-U[1]}}class dM{static create(l){switch(l.data.annotationType){case jl.LINK:return new bb(l);case jl.TEXT:return new ZM(l);case jl.WIDGET:switch(l.data.fieldType){case"Tx":return new tM(l);case"Btn":return l.data.radioButton?new eb(l):l.data.checkBox?new cM(l):new WM(l);case"Ch":return new aM(l);case"Sig":return new FM(l)}return new TF(l);case jl.POPUP:return new hi(l);case jl.FREETEXT:return new Jb(l);case jl.LINE:return new sM(l);case jl.SQUARE:return new nM(l);case jl.CIRCLE:return new QM(l);case jl.POLYLINE:return new Gb(l);case jl.CARET:return new RM(l);case jl.INK:return new mR(l);case jl.POLYGON:return new iM(l);case jl.HIGHLIGHT:return new Sb(l);case jl.UNDERLINE:return new NM(l);case jl.SQUIGGLY:return new hM(l);case jl.STRIKEOUT:return new bM(l);case jl.STAMP:return new Tb(l);case jl.FILEATTACHMENT:return new eM(l);default:return new Kl(l)}}}var Kt,aW,VW,OV,Ni;const UM=class Rb{constructor(l,{isRenderable:d=!1,ignoreBorder:Z=!1,createQuadrilaterals:t=!1}={}){e(this,OV),e(this,Kt,null),e(this,aW,!1),e(this,VW,null),this.isRenderable=d,this.data=l.data,this.layer=l.layer,this.linkService=l.linkService,this.downloadManager=l.downloadManager,this.imageResourcesPath=l.imageResourcesPath,this.renderForms=l.renderForms,this.svgFactory=l.svgFactory,this.annotationStorage=l.annotationStorage,this.enableScripting=l.enableScripting,this.hasJSActions=l.hasJSActions,this._fieldObjects=l.fieldObjects,this.parent=l.parent,d&&(this.container=this._createContainer(Z)),t&&this._createQuadrilaterals()}static _hasPopupData({titleObj:l,contentsObj:d,richText:Z}){return!!(l!=null&&l.str||d!=null&&d.str||Z!=null&&Z.str)}get _isEditable(){return this.data.isEditable}get hasPopupData(){return Rb._hasPopupData(this.data)}updateEdited(l){var d;if(!this.container)return;W(this,Kt)||R(this,Kt,{rect:this.data.rect.slice(0)});const{rect:Z}=l;Z&&h(this,OV,Ni).call(this,Z),(d=W(this,VW))==null||d.popup.updateEdited(l)}resetEdited(){var l;W(this,Kt)&&(h(this,OV,Ni).call(this,W(this,Kt).rect),(l=W(this,VW))==null||l.popup.resetEdited(),R(this,Kt,null))}_createContainer(l){const{data:d,parent:{page:Z,viewport:t}}=this,F=document.createElement("section");F.setAttribute("data-annotation-id",d.id),this instanceof TF||(F.tabIndex=Ja);const{style:c}=F;if(c.zIndex=this.parent.zIndex++,d.alternativeText&&(F.title=d.alternativeText),d.noRotate&&F.classList.add("norotate"),!d.rect||this instanceof hi){const{rotation:m}=d;return!d.hasOwnCanvas&&m!==0&&this.setRotation(m,F),F}const{width:a,height:V}=Nt(d.rect);if(!l&&d.borderStyle.width>0){c.borderWidth=`${d.borderStyle.width}px`;const m=d.borderStyle.horizontalCornerRadius,M=d.borderStyle.verticalCornerRadius;if(m>0||M>0){const S=`calc(${m}px * var(--scale-factor)) / calc(${M}px * var(--scale-factor))`;c.borderRadius=S}else if(this instanceof eb){const S=`calc(${a}px * var(--scale-factor)) / calc(${V}px * var(--scale-factor))`;c.borderRadius=S}switch(d.borderStyle.style){case Wc.SOLID:c.borderStyle="solid";break;case Wc.DASHED:c.borderStyle="dashed";break;case Wc.BEVELED:q("Unimplemented border style: beveled");break;case Wc.INSET:q("Unimplemented border style: inset");break;case Wc.UNDERLINE:c.borderBottomStyle="solid";break}const J=d.borderColor||null;J?(R(this,aW,!0),c.borderColor=O.makeHexColor(J[0]|0,J[1]|0,J[2]|0)):c.borderWidth=0}const s=O.normalizeRect([d.rect[0],Z.view[3]-d.rect[1]+Z.view[1],d.rect[2],Z.view[3]-d.rect[3]+Z.view[1]]),{pageWidth:n,pageHeight:Q,pageX:i,pageY:N}=t.rawDims;c.left=`${100*(s[0]-i)/n}%`,c.top=`${100*(s[1]-N)/Q}%`;const{rotation:b}=d;return d.hasOwnCanvas||b===0?(c.width=`${100*a/n}%`,c.height=`${100*V/Q}%`):this.setRotation(b,F),F}setRotation(l,d=this.container){if(!this.data.rect)return;const{pageWidth:Z,pageHeight:t}=this.parent.viewport.rawDims,{width:F,height:c}=Nt(this.data.rect);let a,V;l%180===0?(a=100*F/Z,V=100*c/t):(a=100*c/Z,V=100*F/t),d.style.width=`${a}%`,d.style.height=`${V}%`,d.setAttribute("data-main-rotation",(360-l)%360)}get _commonActions(){const l=(d,Z,t)=>{const F=t.detail[d],c=F[0],a=F.slice(1);t.target.style[Z]=bN[`${c}_HTML`](a),this.annotationStorage.setValue(this.data.id,{[Z]:bN[`${c}_rgb`](a)})};return Ul(this,"_commonActions",{display:d=>{const{display:Z}=d.detail,t=Z%2===1;this.container.style.visibility=t?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{noView:t,noPrint:Z===1||Z===2})},print:d=>{this.annotationStorage.setValue(this.data.id,{noPrint:!d.detail.print})},hidden:d=>{const{hidden:Z}=d.detail;this.container.style.visibility=Z?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{noPrint:Z,noView:Z})},focus:d=>{setTimeout(()=>d.target.focus({preventScroll:!1}),0)},userName:d=>{d.target.title=d.detail.userName},readonly:d=>{d.target.disabled=d.detail.readonly},required:d=>{this._setRequired(d.target,d.detail.required)},bgColor:d=>{l("bgColor","backgroundColor",d)},fillColor:d=>{l("fillColor","backgroundColor",d)},fgColor:d=>{l("fgColor","color",d)},textColor:d=>{l("textColor","color",d)},borderColor:d=>{l("borderColor","borderColor",d)},strokeColor:d=>{l("strokeColor","borderColor",d)},rotation:d=>{const Z=d.detail.rotation;this.setRotation(Z),this.annotationStorage.setValue(this.data.id,{rotation:Z})}})}_dispatchEventFromSandbox(l,d){const Z=this._commonActions;for(const t of Object.keys(d.detail)){const F=l[t]||Z[t];F?.(d)}}_setDefaultPropertiesFromJS(l){if(!this.enableScripting)return;const d=this.annotationStorage.getRawValue(this.data.id);if(!d)return;const Z=this._commonActions;for(const[t,F]of Object.entries(d)){const c=Z[t];if(c){const a={detail:{[t]:F},target:l};c(a),delete d[t]}}}_createQuadrilaterals(){if(!this.container)return;const{quadPoints:l}=this.data;if(!l)return;const[d,Z,t,F]=this.data.rect.map(m=>Math.fround(m));if(l.length===8){const[m,M,J,S]=l.subarray(2,6);if(t===m&&F===M&&d===J&&Z===S)return}const{style:c}=this.container;let a;if(W(this,aW)){const{borderColor:m,borderWidth:M}=c;c.borderWidth=0,a=["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="${m}" stroke-width="${M}">`],this.container.classList.add("hasBorder")}const V=t-d,s=F-Z,{svgFactory:n}=this,Q=n.createElement("svg");Q.classList.add("quadrilateralsContainer"),Q.setAttribute("width",0),Q.setAttribute("height",0);const i=n.createElement("defs");Q.append(i);const N=n.createElement("clipPath"),b=`clippath_${this.data.id}`;N.setAttribute("id",b),N.setAttribute("clipPathUnits","objectBoundingBox"),i.append(N);for(let m=2,M=l.length;m<M;m+=8){const J=l[m],S=l[m+1],G=l[m+2],T=l[m+3],p=n.createElement("rect"),u=(G-d)/V,Y=(F-S)/s,o=(J-G)/V,X=(S-T)/s;p.setAttribute("x",u),p.setAttribute("y",Y),p.setAttribute("width",o),p.setAttribute("height",X),N.append(p),a?.push(`<rect vector-effect="non-scaling-stroke" x="${u}" y="${Y}" width="${o}" height="${X}"/>`)}W(this,aW)&&(a.push("</g></svg>')"),c.backgroundImage=a.join("")),this.container.append(Q),this.container.style.clipPath=`url(#${b})`}_createPopup(){const{data:l}=this,d=R(this,VW,new hi({data:{color:l.color,titleObj:l.titleObj,modificationDate:l.modificationDate,contentsObj:l.contentsObj,richText:l.richText,parentRect:l.rect,borderStyle:0,id:`popup_${l.id}`,rotation:l.rotation},parent:this.parent,elements:[this]}));this.parent.div.append(d.render())}render(){el("Abstract method `AnnotationElement.render` called")}_getElementsByName(l,d=null){const Z=[];if(this._fieldObjects){const t=this._fieldObjects[l];if(t)for(const{page:F,id:c,exportValues:a}of t){if(F===-1||c===d)continue;const V=typeof a=="string"?a:null,s=document.querySelector(`[data-element-id="${c}"]`);if(s&&!SF.has(s)){q(`_getElementsByName - element not allowed: ${c}`);continue}Z.push({id:c,exportValue:V,domElement:s})}return Z}for(const t of document.getElementsByName(l)){const{exportValue:F}=t,c=t.getAttribute("data-element-id");c!==d&&SF.has(t)&&Z.push({id:c,exportValue:F,domElement:t})}return Z}show(){var l;this.container&&(this.container.hidden=!1),(l=this.popup)==null||l.maybeShow()}hide(){var l;this.container&&(this.container.hidden=!0),(l=this.popup)==null||l.forceHide()}getElementsToTriggerPopup(){return this.container}addHighlightArea(){const l=this.getElementsToTriggerPopup();if(Array.isArray(l))for(const d of l)d.classList.add("highlightArea");else l.classList.add("highlightArea")}_editOnDoubleClick(){if(!this._isEditable)return;const{annotationEditorType:l,data:{id:d}}=this;this.container.addEventListener("dblclick",()=>{var Z;(Z=this.linkService.eventBus)==null||Z.dispatch("switchannotationeditormode",{source:this,mode:l,editId:d})})}};Kt=new WeakMap,aW=new WeakMap,VW=new WeakMap,OV=new WeakSet,Ni=function(U){const{container:{style:l},data:{rect:d,rotation:Z},parent:{viewport:{rawDims:{pageWidth:t,pageHeight:F,pageX:c,pageY:a}}}}=this;d?.splice(0,4,...U);const{width:V,height:s}=Nt(U);l.left=`${100*(U[0]-c)/t}%`,l.top=`${100*(F-U[3]+a)/F}%`,Z===0?(l.width=`${100*V/t}%`,l.height=`${100*s/F}%`):this.setRotation(Z)};let Kl=UM;var wU,hF,Nb,hb;class bb extends Kl{constructor(l,d=null){super(l,{isRenderable:!0,ignoreBorder:!!(d!=null&&d.ignoreBorder),createQuadrilaterals:!0}),e(this,wU),this.isTooltipOnly=l.data.isTooltipOnly}render(){const{data:l,linkService:d}=this,Z=document.createElement("a");Z.setAttribute("data-element-id",l.id);let t=!1;return l.url?(d.addLinkAttributes(Z,l.url,l.newWindow),t=!0):l.action?(this._bindNamedAction(Z,l.action),t=!0):l.attachment?(h(this,wU,Nb).call(this,Z,l.attachment,l.attachmentDest),t=!0):l.setOCGState?(h(this,wU,hb).call(this,Z,l.setOCGState),t=!0):l.dest?(this._bindLink(Z,l.dest),t=!0):(l.actions&&(l.actions.Action||l.actions["Mouse Up"]||l.actions["Mouse Down"])&&this.enableScripting&&this.hasJSActions&&(this._bindJSAction(Z,l),t=!0),l.resetForm?(this._bindResetFormAction(Z,l.resetForm),t=!0):this.isTooltipOnly&&!t&&(this._bindLink(Z,""),t=!0)),this.container.classList.add("linkAnnotation"),t&&this.container.append(Z),this.container}_bindLink(l,d){l.href=this.linkService.getDestinationHash(d),l.onclick=()=>(d&&this.linkService.goToDestination(d),!1),(d||d==="")&&h(this,wU,hF).call(this)}_bindNamedAction(l,d){l.href=this.linkService.getAnchorUrl(""),l.onclick=()=>(this.linkService.executeNamedAction(d),!1),h(this,wU,hF).call(this)}_bindJSAction(l,d){l.href=this.linkService.getAnchorUrl("");const Z=new Map([["Action","onclick"],["Mouse Up","onmouseup"],["Mouse Down","onmousedown"]]);for(const t of Object.keys(d.actions)){const F=Z.get(t);F&&(l[F]=()=>{var c;return(c=this.linkService.eventBus)==null||c.dispatch("dispatcheventinsandbox",{source:this,detail:{id:d.id,name:t}}),!1})}l.onclick||(l.onclick=()=>!1),h(this,wU,hF).call(this)}_bindResetFormAction(l,d){const Z=l.onclick;if(Z||(l.href=this.linkService.getAnchorUrl("")),h(this,wU,hF).call(this),!this._fieldObjects){q('_bindResetFormAction - "resetForm" action not supported, ensure that the `fieldObjects` parameter is provided.'),Z||(l.onclick=()=>!1);return}l.onclick=()=>{var t;Z?.();const{fields:F,refs:c,include:a}=d,V=[];if(F.length!==0||c.length!==0){const Q=new Set(c);for(const i of F){const N=this._fieldObjects[i]||[];for(const{id:b}of N)Q.add(b)}for(const i of Object.values(this._fieldObjects))for(const N of i)Q.has(N.id)===a&&V.push(N)}else for(const Q of Object.values(this._fieldObjects))V.push(...Q);const s=this.annotationStorage,n=[];for(const Q of V){const{id:i}=Q;switch(n.push(i),Q.type){case"text":{const b=Q.defaultValue||"";s.setValue(i,{value:b});break}case"checkbox":case"radiobutton":{const b=Q.defaultValue===Q.exportValues;s.setValue(i,{value:b});break}case"combobox":case"listbox":{const b=Q.defaultValue||"";s.setValue(i,{value:b});break}default:continue}const N=document.querySelector(`[data-element-id="${i}"]`);if(N){if(!SF.has(N)){q(`_bindResetFormAction - element not allowed: ${i}`);continue}}else continue;N.dispatchEvent(new Event("resetform"))}return this.enableScripting&&((t=this.linkService.eventBus)==null||t.dispatch("dispatcheventinsandbox",{source:this,detail:{id:"app",ids:n,name:"ResetForm"}})),!1}}}wU=new WeakSet,hF=function(){this.container.setAttribute("data-internal-link","")},Nb=function(U,l,d=null){U.href=this.linkService.getAnchorUrl(""),l.description&&(U.title=l.description),U.onclick=()=>{var Z;return(Z=this.downloadManager)==null||Z.openOrDownloadData(l.content,l.filename,d),!1},h(this,wU,hF).call(this)},hb=function(U,l){U.href=this.linkService.getAnchorUrl(""),U.onclick=()=>(this.linkService.executeSetOCGState(l),!1),h(this,wU,hF).call(this)};class ZM extends Kl{constructor(l){super(l,{isRenderable:!0})}render(){this.container.classList.add("textAnnotation");const l=document.createElement("img");return l.src=this.imageResourcesPath+"annotation-"+this.data.name.toLowerCase()+".svg",l.setAttribute("data-l10n-id","pdfjs-text-annotation-type"),l.setAttribute("data-l10n-args",JSON.stringify({type:this.data.name})),!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container.append(l),this.container}}class TF extends Kl{render(){return this.container}showElementAndHideCanvas(l){var d;this.data.hasOwnCanvas&&(((d=l.previousSibling)==null?void 0:d.nodeName)==="CANVAS"&&(l.previousSibling.hidden=!0),l.hidden=!1)}_getKeyModifier(l){return Xd.platform.isMac?l.metaKey:l.ctrlKey}_setEventListener(l,d,Z,t,F){Z.includes("mouse")?l.addEventListener(Z,c=>{var a;(a=this.linkService.eventBus)==null||a.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:t,value:F(c),shift:c.shiftKey,modifier:this._getKeyModifier(c)}})}):l.addEventListener(Z,c=>{var a;if(Z==="blur"){if(!d.focused||!c.relatedTarget)return;d.focused=!1}else if(Z==="focus"){if(d.focused)return;d.focused=!0}F&&((a=this.linkService.eventBus)==null||a.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:t,value:F(c)}}))})}_setEventListeners(l,d,Z,t){var F,c,a;for(const[V,s]of Z)(s==="Action"||(F=this.data.actions)!=null&&F[s])&&((s==="Focus"||s==="Blur")&&(d||(d={focused:!1})),this._setEventListener(l,d,V,s,t),s==="Focus"&&!((c=this.data.actions)!=null&&c.Blur)?this._setEventListener(l,d,"blur","Blur",null):s==="Blur"&&!((a=this.data.actions)!=null&&a.Focus)&&this._setEventListener(l,d,"focus","Focus",null))}_setBackgroundColor(l){const d=this.data.backgroundColor||null;l.style.backgroundColor=d===null?"transparent":O.makeHexColor(d[0],d[1],d[2])}_setTextStyle(l){const d=["left","center","right"],{fontColor:Z}=this.data.defaultAppearanceData,t=this.data.defaultAppearanceData.fontSize||lM,F=l.style;let c;const a=2,V=s=>Math.round(10*s)/10;if(this.data.multiLine){const s=Math.abs(this.data.rect[3]-this.data.rect[1]-a),n=Math.round(s/(jn*t))||1,Q=s/n;c=Math.min(t,V(Q/jn))}else{const s=Math.abs(this.data.rect[3]-this.data.rect[1]-a);c=Math.min(t,V(s/jn))}F.fontSize=`calc(${c}px * var(--scale-factor))`,F.color=O.makeHexColor(Z[0],Z[1],Z[2]),this.data.textAlignment!==null&&(F.textAlign=d[this.data.textAlignment])}_setRequired(l,d){d?l.setAttribute("required",!0):l.removeAttribute("required"),l.setAttribute("aria-required",d)}}class tM extends TF{constructor(l){const d=l.renderForms||l.data.hasOwnCanvas||!l.data.hasAppearance&&!!l.data.fieldValue;super(l,{isRenderable:d})}setPropertyOnSiblings(l,d,Z,t){const F=this.annotationStorage;for(const c of this._getElementsByName(l.name,l.id))c.domElement&&(c.domElement[d]=Z),F.setValue(c.id,{[t]:Z})}render(){var l,d;const Z=this.annotationStorage,t=this.data.id;this.container.classList.add("textWidgetAnnotation");let F=null;if(this.renderForms){const c=Z.getValue(t,{value:this.data.fieldValue});let a=c.value||"";const V=Z.getValue(t,{charLimit:this.data.maxLen}).charLimit;V&&a.length>V&&(a=a.slice(0,V));let s=c.formattedValue||((l=this.data.textContent)==null?void 0:l.join(`
|
|
4
4
|
`))||null;s&&this.data.comb&&(s=s.replaceAll(/\s+/g,""));const n={userValue:a,formattedValue:s,lastCommittedValue:null,commitKey:1,focused:!1};this.data.multiLine?(F=document.createElement("textarea"),F.textContent=s??a,this.data.doNotScroll&&(F.style.overflowY="hidden")):(F=document.createElement("input"),F.type="text",F.setAttribute("value",s??a),this.data.doNotScroll&&(F.style.overflowX="hidden")),this.data.hasOwnCanvas&&(F.hidden=!0),SF.add(F),F.setAttribute("data-element-id",t),F.disabled=this.data.readOnly,F.name=this.data.fieldName,F.tabIndex=Ja,this._setRequired(F,this.data.required),V&&(F.maxLength=V),F.addEventListener("input",i=>{Z.setValue(t,{value:i.target.value}),this.setPropertyOnSiblings(F,"value",i.target.value,"value"),n.formattedValue=null}),F.addEventListener("resetform",i=>{const N=this.data.defaultFieldValue??"";F.value=n.userValue=N,n.formattedValue=null});let Q=i=>{const{formattedValue:N}=n;N!=null&&(i.target.value=N),i.target.scrollLeft=0};if(this.enableScripting&&this.hasJSActions){F.addEventListener("focus",N=>{var b;if(n.focused)return;const{target:m}=N;n.userValue&&(m.value=n.userValue),n.lastCommittedValue=m.value,n.commitKey=1,(b=this.data.actions)!=null&&b.Focus||(n.focused=!0)}),F.addEventListener("updatefromsandbox",N=>{this.showElementAndHideCanvas(N.target);const b={value(m){n.userValue=m.detail.value??"",Z.setValue(t,{value:n.userValue.toString()}),m.target.value=n.userValue},formattedValue(m){const{formattedValue:M}=m.detail;n.formattedValue=M,M!=null&&m.target!==document.activeElement&&(m.target.value=M),Z.setValue(t,{formattedValue:M})},selRange(m){m.target.setSelectionRange(...m.detail.selRange)},charLimit:m=>{var M;const{charLimit:J}=m.detail,{target:S}=m;if(J===0){S.removeAttribute("maxLength");return}S.setAttribute("maxLength",J);let G=n.userValue;!G||G.length<=J||(G=G.slice(0,J),S.value=n.userValue=G,Z.setValue(t,{value:G}),(M=this.linkService.eventBus)==null||M.dispatch("dispatcheventinsandbox",{source:this,detail:{id:t,name:"Keystroke",value:G,willCommit:!0,commitKey:1,selStart:S.selectionStart,selEnd:S.selectionEnd}}))}};this._dispatchEventFromSandbox(b,N)}),F.addEventListener("keydown",N=>{var b;n.commitKey=1;let m=-1;if(N.key==="Escape"?m=0:N.key==="Enter"&&!this.data.multiLine?m=2:N.key==="Tab"&&(n.commitKey=3),m===-1)return;const{value:M}=N.target;n.lastCommittedValue!==M&&(n.lastCommittedValue=M,n.userValue=M,(b=this.linkService.eventBus)==null||b.dispatch("dispatcheventinsandbox",{source:this,detail:{id:t,name:"Keystroke",value:M,willCommit:!0,commitKey:m,selStart:N.target.selectionStart,selEnd:N.target.selectionEnd}}))});const i=Q;Q=null,F.addEventListener("blur",N=>{var b,m;if(!n.focused||!N.relatedTarget)return;(b=this.data.actions)!=null&&b.Blur||(n.focused=!1);const{value:M}=N.target;n.userValue=M,n.lastCommittedValue!==M&&((m=this.linkService.eventBus)==null||m.dispatch("dispatcheventinsandbox",{source:this,detail:{id:t,name:"Keystroke",value:M,willCommit:!0,commitKey:n.commitKey,selStart:N.target.selectionStart,selEnd:N.target.selectionEnd}})),i(N)}),(d=this.data.actions)!=null&&d.Keystroke&&F.addEventListener("beforeinput",N=>{var b;n.lastCommittedValue=null;const{data:m,target:M}=N,{value:J,selectionStart:S,selectionEnd:G}=M;let T=S,p=G;switch(N.inputType){case"deleteWordBackward":{const u=J.substring(0,S).match(/\w*[^\w]*$/);u&&(T-=u[0].length);break}case"deleteWordForward":{const u=J.substring(S).match(/^[^\w]*\w*/);u&&(p+=u[0].length);break}case"deleteContentBackward":S===G&&(T-=1);break;case"deleteContentForward":S===G&&(p+=1);break}N.preventDefault(),(b=this.linkService.eventBus)==null||b.dispatch("dispatcheventinsandbox",{source:this,detail:{id:t,name:"Keystroke",value:J,change:m||"",willCommit:!1,selStart:T,selEnd:p}})}),this._setEventListeners(F,n,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],N=>N.target.value)}if(Q&&F.addEventListener("blur",Q),this.data.comb){const i=(this.data.rect[2]-this.data.rect[0])/V;F.classList.add("comb"),F.style.letterSpacing=`calc(${i}px * var(--scale-factor) - 1ch)`}}else F=document.createElement("div"),F.textContent=this.data.fieldValue,F.style.verticalAlign="middle",F.style.display="table-cell",this.data.hasOwnCanvas&&(F.hidden=!0);return this._setTextStyle(F),this._setBackgroundColor(F),this._setDefaultPropertiesFromJS(F),this.container.append(F),this.container}}class FM extends TF{constructor(l){super(l,{isRenderable:!!l.data.hasOwnCanvas})}}class cM extends TF{constructor(l){super(l,{isRenderable:l.renderForms})}render(){const l=this.annotationStorage,d=this.data,Z=d.id;let t=l.getValue(Z,{value:d.exportValue===d.fieldValue}).value;typeof t=="string"&&(t=t!=="Off",l.setValue(Z,{value:t})),this.container.classList.add("buttonWidgetAnnotation","checkBox");const F=document.createElement("input");return SF.add(F),F.setAttribute("data-element-id",Z),F.disabled=d.readOnly,this._setRequired(F,this.data.required),F.type="checkbox",F.name=d.fieldName,t&&F.setAttribute("checked",!0),F.setAttribute("exportValue",d.exportValue),F.tabIndex=Ja,F.addEventListener("change",c=>{const{name:a,checked:V}=c.target;for(const s of this._getElementsByName(a,Z)){const n=V&&s.exportValue===d.exportValue;s.domElement&&(s.domElement.checked=n),l.setValue(s.id,{value:n})}l.setValue(Z,{value:V})}),F.addEventListener("resetform",c=>{const a=d.defaultFieldValue||"Off";c.target.checked=a===d.exportValue}),this.enableScripting&&this.hasJSActions&&(F.addEventListener("updatefromsandbox",c=>{const a={value(V){V.target.checked=V.detail.value!=="Off",l.setValue(Z,{value:V.target.checked})}};this._dispatchEventFromSandbox(a,c)}),this._setEventListeners(F,null,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],c=>c.target.checked)),this._setBackgroundColor(F),this._setDefaultPropertiesFromJS(F),this.container.append(F),this.container}}class eb extends TF{constructor(l){super(l,{isRenderable:l.renderForms})}render(){this.container.classList.add("buttonWidgetAnnotation","radioButton");const l=this.annotationStorage,d=this.data,Z=d.id;let t=l.getValue(Z,{value:d.fieldValue===d.buttonValue}).value;if(typeof t=="string"&&(t=t!==d.buttonValue,l.setValue(Z,{value:t})),t)for(const c of this._getElementsByName(d.fieldName,Z))l.setValue(c.id,{value:!1});const F=document.createElement("input");if(SF.add(F),F.setAttribute("data-element-id",Z),F.disabled=d.readOnly,this._setRequired(F,this.data.required),F.type="radio",F.name=d.fieldName,t&&F.setAttribute("checked",!0),F.tabIndex=Ja,F.addEventListener("change",c=>{const{name:a,checked:V}=c.target;for(const s of this._getElementsByName(a,Z))l.setValue(s.id,{value:!1});l.setValue(Z,{value:V})}),F.addEventListener("resetform",c=>{const a=d.defaultFieldValue;c.target.checked=a!=null&&a===d.buttonValue}),this.enableScripting&&this.hasJSActions){const c=d.buttonValue;F.addEventListener("updatefromsandbox",a=>{const V={value:s=>{const n=c===s.detail.value;for(const Q of this._getElementsByName(s.target.name)){const i=n&&Q.id===Z;Q.domElement&&(Q.domElement.checked=i),l.setValue(Q.id,{value:i})}}};this._dispatchEventFromSandbox(V,a)}),this._setEventListeners(F,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)}return this._setBackgroundColor(F),this._setDefaultPropertiesFromJS(F),this.container.append(F),this.container}}class WM extends bb{constructor(l){super(l,{ignoreBorder:l.data.hasAppearance})}render(){const l=super.render();l.classList.add("buttonWidgetAnnotation","pushButton");const d=l.lastChild;return this.enableScripting&&this.hasJSActions&&d&&(this._setDefaultPropertiesFromJS(d),d.addEventListener("updatefromsandbox",Z=>{this._dispatchEventFromSandbox({},Z)})),l}}class aM extends TF{constructor(l){super(l,{isRenderable:l.renderForms})}render(){this.container.classList.add("choiceWidgetAnnotation");const l=this.annotationStorage,d=this.data.id,Z=l.getValue(d,{value:this.data.fieldValue}),t=document.createElement("select");SF.add(t),t.setAttribute("data-element-id",d),t.disabled=this.data.readOnly,this._setRequired(t,this.data.required),t.name=this.data.fieldName,t.tabIndex=Ja;let F=this.data.combo&&this.data.options.length>0;this.data.combo||(t.size=this.data.options.length,this.data.multiSelect&&(t.multiple=!0)),t.addEventListener("resetform",n=>{const Q=this.data.defaultFieldValue;for(const i of t.options)i.selected=i.value===Q});for(const n of this.data.options){const Q=document.createElement("option");Q.textContent=n.displayValue,Q.value=n.exportValue,Z.value.includes(n.exportValue)&&(Q.setAttribute("selected",!0),F=!1),t.append(Q)}let c=null;if(F){const n=document.createElement("option");n.value=" ",n.setAttribute("hidden",!0),n.setAttribute("selected",!0),t.prepend(n),c=()=>{n.remove(),t.removeEventListener("input",c),c=null},t.addEventListener("input",c)}const a=n=>{const Q=n?"value":"textContent",{options:i,multiple:N}=t;return N?Array.prototype.filter.call(i,b=>b.selected).map(b=>b[Q]):i.selectedIndex===-1?null:i[i.selectedIndex][Q]};let V=a(!1);const s=n=>{const Q=n.target.options;return Array.prototype.map.call(Q,i=>({displayValue:i.textContent,exportValue:i.value}))};return this.enableScripting&&this.hasJSActions?(t.addEventListener("updatefromsandbox",n=>{const Q={value(i){c?.();const N=i.detail.value,b=new Set(Array.isArray(N)?N:[N]);for(const m of t.options)m.selected=b.has(m.value);l.setValue(d,{value:a(!0)}),V=a(!1)},multipleSelection(i){t.multiple=!0},remove(i){const N=t.options,b=i.detail.remove;N[b].selected=!1,t.remove(b),N.length>0&&Array.prototype.findIndex.call(N,m=>m.selected)===-1&&(N[0].selected=!0),l.setValue(d,{value:a(!0),items:s(i)}),V=a(!1)},clear(i){for(;t.length!==0;)t.remove(0);l.setValue(d,{value:null,items:[]}),V=a(!1)},insert(i){const{index:N,displayValue:b,exportValue:m}=i.detail.insert,M=t.children[N],J=document.createElement("option");J.textContent=b,J.value=m,M?M.before(J):t.append(J),l.setValue(d,{value:a(!0),items:s(i)}),V=a(!1)},items(i){const{items:N}=i.detail;for(;t.length!==0;)t.remove(0);for(const b of N){const{displayValue:m,exportValue:M}=b,J=document.createElement("option");J.textContent=m,J.value=M,t.append(J)}t.options.length>0&&(t.options[0].selected=!0),l.setValue(d,{value:a(!0),items:s(i)}),V=a(!1)},indices(i){const N=new Set(i.detail.indices);for(const b of i.target.options)b.selected=N.has(b.index);l.setValue(d,{value:a(!0)}),V=a(!1)},editable(i){i.target.disabled=!i.detail.editable}};this._dispatchEventFromSandbox(Q,n)}),t.addEventListener("input",n=>{var Q;const i=a(!0),N=a(!1);l.setValue(d,{value:i}),n.preventDefault(),(Q=this.linkService.eventBus)==null||Q.dispatch("dispatcheventinsandbox",{source:this,detail:{id:d,name:"Keystroke",value:V,change:N,changeEx:i,willCommit:!1,commitKey:1,keyDown:!1}})}),this._setEventListeners(t,null,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"],["input","Action"],["input","Validate"]],n=>n.target.value)):t.addEventListener("input",function(n){l.setValue(d,{value:a(!0)})}),this.data.combo&&this._setTextStyle(t),this._setBackgroundColor(t),this._setDefaultPropertiesFromJS(t),this.container.append(t),this.container}}class hi extends Kl{constructor(l){const{data:d,elements:Z}=l;super(l,{isRenderable:Kl._hasPopupData(d)}),this.elements=Z,this.popup=null}render(){this.container.classList.add("popupAnnotation");const l=this.popup=new VM({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}),d=[];for(const Z of this.elements)Z.popup=l,Z.container.ariaHasPopup="dialog",d.push(Z.data.id),Z.addHighlightArea();return this.container.setAttribute("aria-controls",d.map(Z=>`${nR}${Z}`).join(",")),this.container}}var CW,bi,ei,rW,V0,zl,HZ,sW,an,Vn,xW,CZ,IU,Zt,sn,tt,gV,Ht,s0,gl,KV,nQ,eN,mb,Mb,mN,nn,Qn,mi;class VM{constructor({container:l,color:d,elements:Z,titleObj:t,modificationDate:F,contentsObj:c,richText:a,parent:V,rect:s,parentRect:n,open:Q}){e(this,gl),e(this,CW,h(this,gl,Mb).bind(this)),e(this,bi,h(this,gl,mi).bind(this)),e(this,ei,h(this,gl,Qn).bind(this)),e(this,rW,h(this,gl,nn).bind(this)),e(this,V0,null),e(this,zl,null),e(this,HZ,null),e(this,sW,null),e(this,an,null),e(this,Vn,null),e(this,xW,null),e(this,CZ,!1),e(this,IU,null),e(this,Zt,null),e(this,sn,null),e(this,tt,null),e(this,gV,null),e(this,Ht,null),e(this,s0,!1);var i;R(this,zl,l),R(this,gV,t),R(this,HZ,c),R(this,tt,a),R(this,Vn,V),R(this,V0,d),R(this,sn,s),R(this,xW,n),R(this,an,Z),R(this,sW,Sh.toDateObject(F)),this.trigger=Z.flatMap(N=>N.getElementsToTriggerPopup());for(const N of this.trigger)N.addEventListener("click",W(this,rW)),N.addEventListener("mouseenter",W(this,ei)),N.addEventListener("mouseleave",W(this,bi)),N.classList.add("popupTriggerArea");for(const N of Z)(i=N.container)==null||i.addEventListener("keydown",W(this,CW));W(this,zl).hidden=!0,Q&&h(this,gl,nn).call(this)}render(){if(W(this,IU))return;const l=R(this,IU,document.createElement("div"));if(l.className="popup",W(this,V0)){const F=l.style.outlineColor=O.makeHexColor(...W(this,V0));CSS.supports("background-color","color-mix(in srgb, red 30%, white)")?l.style.backgroundColor=`color-mix(in srgb, ${F} 30%, white)`:l.style.backgroundColor=O.makeHexColor(...W(this,V0).map(c=>Math.floor(.7*(255-c)+c)))}const d=document.createElement("span");d.className="header";const Z=document.createElement("h1");if(d.append(Z),{dir:Z.dir,str:Z.textContent}=W(this,gV),l.append(d),W(this,sW)){const F=document.createElement("span");F.classList.add("popupDate"),F.setAttribute("data-l10n-id","pdfjs-annotation-date-time-string"),F.setAttribute("data-l10n-args",JSON.stringify({dateObj:W(this,sW).valueOf()})),d.append(F)}const t=W(this,gl,KV);if(t)ib.render({xfaHtml:t,intent:"richText",div:l}),l.lastChild.classList.add("richText","popupContent");else{const F=this._formatContents(W(this,HZ));l.append(F)}W(this,zl).append(l)}_formatContents({str:l,dir:d}){const Z=document.createElement("p");Z.classList.add("popupContent"),Z.dir=d;const t=l.split(/(?:\r\n?|\n)/);for(let F=0,c=t.length;F<c;++F){const a=t[F];Z.append(document.createTextNode(a)),F<c-1&&Z.append(document.createElement("br"))}return Z}updateEdited({rect:l,popupContent:d}){var Z;W(this,Ht)||R(this,Ht,{contentsObj:W(this,HZ),richText:W(this,tt)}),l&&R(this,Zt,null),d&&(R(this,tt,h(this,gl,mb).call(this,d)),R(this,HZ,null)),(Z=W(this,IU))==null||Z.remove(),R(this,IU,null)}resetEdited(){var l;W(this,Ht)&&({contentsObj:Td(this,HZ)._,richText:Td(this,tt)._}=W(this,Ht),R(this,Ht,null),(l=W(this,IU))==null||l.remove(),R(this,IU,null),R(this,Zt,null))}forceHide(){R(this,s0,this.isVisible),W(this,s0)&&(W(this,zl).hidden=!0)}maybeShow(){W(this,s0)&&(W(this,IU)||h(this,gl,Qn).call(this),R(this,s0,!1),W(this,zl).hidden=!1)}get isVisible(){return W(this,zl).hidden===!1}}CW=new WeakMap,bi=new WeakMap,ei=new WeakMap,rW=new WeakMap,V0=new WeakMap,zl=new WeakMap,HZ=new WeakMap,sW=new WeakMap,an=new WeakMap,Vn=new WeakMap,xW=new WeakMap,CZ=new WeakMap,IU=new WeakMap,Zt=new WeakMap,sn=new WeakMap,tt=new WeakMap,gV=new WeakMap,Ht=new WeakMap,s0=new WeakMap,gl=new WeakSet,KV=function(){const U=W(this,tt),l=W(this,HZ);return U!=null&&U.str&&(!(l!=null&&l.str)||l.str===U.str)&&W(this,tt).html||null},nQ=function(){var U,l,d;return((d=(l=(U=W(this,gl,KV))==null?void 0:U.attributes)==null?void 0:l.style)==null?void 0:d.fontSize)||0},eN=function(){var U,l,d;return((d=(l=(U=W(this,gl,KV))==null?void 0:U.attributes)==null?void 0:l.style)==null?void 0:d.color)||null},mb=function(U){const l=[],d={str:U,html:{name:"div",attributes:{dir:"auto"},children:[{name:"p",children:l}]}},Z={style:{color:W(this,gl,eN),fontSize:W(this,gl,nQ)?`calc(${W(this,gl,nQ)}px * var(--scale-factor))`:""}};for(const t of U.split(`
|