@getflip/swirl-components-react 0.197.1 → 0.199.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_commonjsHelpers-d20b9603.2d9b8855.js +27 -0
- package/dist/file-manager.entry.d3c12b33.js +57 -0
- package/dist/index-267776a4.6beb4f4b.js +38 -0
- package/dist/index.9d32bf5e.js +3193 -0
- package/dist/{maska-4866b970.5336f9cb.js → maska-c5119b9a.aa658697.js} +761 -746
- package/dist/stencil-generated/react-component-lib/utils/attachProps.d.ts +4 -0
- package/dist/{swirl-accordion-item.entry.0b17e302.js → swirl-accordion-item.entry.c8f141b1.js} +11 -11
- package/dist/{swirl-accordion.entry.e8a4eeac.js → swirl-accordion.entry.2399c4e3.js} +6 -6
- package/dist/{swirl-action-list-section.entry.ce233fc7.js → swirl-action-list-section.entry.dc550e33.js} +6 -6
- package/dist/swirl-action-list_3.entry.f3f22abb.js +103 -0
- package/dist/swirl-app-bar.entry.42f8e516.js +45 -0
- package/dist/swirl-app-icon.entry.86b42a2e.js +23 -0
- package/dist/{swirl-app-layout_6.entry.92644ce6.js → swirl-app-layout_6.entry.12a55696.js} +110 -110
- package/dist/swirl-autocomplete.entry.8ae10ce4.js +115 -0
- package/dist/{swirl-avatar-group.entry.bf8bacf2.js → swirl-avatar-group.entry.c8022fb7.js} +12 -12
- package/dist/{swirl-avatar.entry.ae7e7eab.js → swirl-avatar.entry.5a8a2c9b.js} +9 -9
- package/dist/{swirl-badge.entry.b81abbe0.js → swirl-badge.entry.c4492a4e.js} +6 -6
- package/dist/{swirl-banner.entry.3b6f8acb.js → swirl-banner.entry.98bc99ca.js} +14 -14
- package/dist/{swirl-box.entry.6a7d4dd7.js → swirl-box.entry.89cbee8e.js} +7 -7
- package/dist/{swirl-button-group.entry.1a980301.js → swirl-button-group.entry.a6db0795.js} +6 -6
- package/dist/{swirl-button.entry.57ce96b2.js → swirl-button.entry.ac49771a.js} +7 -7
- package/dist/{swirl-card.entry.a7ff44c0.js → swirl-card.entry.2f2c085f.js} +15 -15
- package/dist/swirl-carousel-slide.entry.ab4ebbd5.js +19 -0
- package/dist/{swirl-carousel.entry.77844e1a.js → swirl-carousel.entry.6f3152a5.js} +21 -21
- package/dist/{swirl-checkbox.entry.b9896603.js → swirl-checkbox.entry.c5a5cf73.js} +8 -8
- package/dist/{swirl-chip.entry.bd2dad7b.js → swirl-chip.entry.52ca695f.js} +7 -7
- package/dist/{swirl-color-input.entry.225483fa.js → swirl-color-input.entry.ed1ac963.js} +32 -32
- package/dist/swirl-columns.entry.97902107.js +18 -0
- package/dist/swirl-components-react.js +1 -1
- package/dist/swirl-components-react.umd.cjs +53 -53
- package/dist/swirl-console-layout.entry.db6e498a.js +68 -0
- package/dist/{swirl-date-input.entry.5e7de1c5.js → swirl-date-input.entry.d3b7c4c0.js} +22 -21
- package/dist/{swirl-date-picker_2.entry.c9e67424.js → swirl-date-picker_2.entry.6cced33e.js} +11 -11
- package/dist/{swirl-description-list-item.entry.b4c7fe29.js → swirl-description-list-item.entry.a6500e2a.js} +8 -8
- package/dist/swirl-description-list.entry.f9ff364b.js +15 -0
- package/dist/{swirl-dialog.entry.3458f6e1.js → swirl-dialog.entry.072a5427.js} +15 -15
- package/dist/swirl-emoji-clap.entry.dc23d17d.js +17 -0
- package/dist/swirl-emoji-happy.entry.14a5592f.js +17 -0
- package/dist/swirl-emoji-idea.entry.da819fac.js +17 -0
- package/dist/swirl-emoji-love.entry.8ed16949.js +17 -0
- package/dist/swirl-emoji-sad.entry.cec0b5e7.js +17 -0
- package/dist/swirl-emoji-thumbs-up.entry.7c756562.js +17 -0
- package/dist/swirl-emoji.entry.b651e1d3.js +16 -0
- package/dist/{swirl-file-uploader.entry.07cfeabb.js → swirl-file-uploader.entry.4176faec.js} +7 -7
- package/dist/{swirl-file-viewer_7.entry.9ca90d82.js → swirl-file-viewer_7.entry.9644cbfc.js} +915 -909
- package/dist/{swirl-form-control.entry.baddfb77.js → swirl-form-control.entry.1ecb8cdc.js} +13 -13
- package/dist/swirl-form-group.entry.8693e5e5.js +17 -0
- package/dist/{swirl-heading.entry.62b2d5fc.js → swirl-heading.entry.67fe7a4f.js} +5 -5
- package/dist/swirl-icon-add-moderator.entry.6ae31584.js +19 -0
- package/dist/swirl-icon-add-photo.entry.a4d3f548.js +19 -0
- package/dist/swirl-icon-add-reaction.entry.5ec9d2b9.js +19 -0
- package/dist/swirl-icon-add_6.entry.426deeac.js +84 -0
- package/dist/swirl-icon-admin-panel-settings.entry.3b3de734.js +19 -0
- package/dist/swirl-icon-ai.entry.8df7e049.js +19 -0
- package/dist/swirl-icon-apps.entry.687c2c46.js +19 -0
- package/dist/swirl-icon-arrow-back_4.entry.75f1ecf4.js +58 -0
- package/dist/swirl-icon-arrow-downward_2.entry.6792addb.js +32 -0
- package/dist/swirl-icon-arrow-left_4.entry.d9291b2e.js +59 -0
- package/dist/swirl-icon-arrow-right-small.entry.1f49da93.js +19 -0
- package/dist/swirl-icon-attachment.entry.c0ac5dc4.js +19 -0
- package/dist/swirl-icon-bar-chart.entry.68381083.js +19 -0
- package/dist/swirl-icon-block.entry.538b4905.js +19 -0
- package/dist/swirl-icon-bookmark-filled.entry.b2719e4a.js +19 -0
- package/dist/swirl-icon-bookmark.entry.80a8ea59.js +19 -0
- package/dist/swirl-icon-cancel_4.entry.2619ffec.js +58 -0
- package/dist/swirl-icon-chat-bubble.entry.72931f1b.js +19 -0
- package/dist/swirl-icon-chats-filled.entry.2d029d98.js +19 -0
- package/dist/swirl-icon-chats.entry.072b5584.js +19 -0
- package/dist/swirl-icon-check-circle_2.entry.86d7238e.js +32 -0
- package/dist/swirl-icon-check-small_3.entry.312053ec.js +77 -0
- package/dist/swirl-icon-check-strong.entry.57f2fa67.js +19 -0
- package/dist/swirl-icon-check.entry.8c5fcd81.js +19 -0
- package/dist/swirl-icon-chevron-left.entry.1960b6c4.js +19 -0
- package/dist/swirl-icon-chevron-right.entry.1c012dde.js +19 -0
- package/dist/swirl-icon-close-small.entry.433a462f.js +19 -0
- package/dist/swirl-icon-close.entry.1f6722c2.js +19 -0
- package/dist/swirl-icon-cloud-upload.entry.68880676.js +19 -0
- package/dist/swirl-icon-column.entry.881e271b.js +19 -0
- package/dist/swirl-icon-comment.entry.14c15189.js +19 -0
- package/dist/swirl-icon-copy.entry.daec8224.js +19 -0
- package/dist/swirl-icon-dark-mode.entry.afe78540.js +19 -0
- package/dist/swirl-icon-date-range.entry.0cc6888a.js +19 -0
- package/dist/swirl-icon-delete.entry.85b1301a.js +19 -0
- package/dist/swirl-icon-description.entry.36e42571.js +19 -0
- package/dist/swirl-icon-desktop.entry.0355491e.js +19 -0
- package/dist/swirl-icon-directory-filled.entry.8933e396.js +19 -0
- package/dist/swirl-icon-directory.entry.6b5303d1.js +19 -0
- package/dist/swirl-icon-discover.entry.8cd4c98c.js +19 -0
- package/dist/swirl-icon-dot.entry.ab6f3b63.js +19 -0
- package/dist/swirl-icon-double-arrow-right.entry.10f6a50a.js +19 -0
- package/dist/swirl-icon-download.entry.c94ffa38.js +19 -0
- package/dist/swirl-icon-edit.entry.7f1fea0b.js +19 -0
- package/dist/swirl-icon-emoji-mood.entry.5ca7e8ff.js +19 -0
- package/dist/swirl-icon-emoji-satisfied.entry.d64ca422.js +19 -0
- package/dist/swirl-icon-error_3.entry.be0466d2.js +58 -0
- package/dist/swirl-icon-expand-more.entry.2d9db49c.js +19 -0
- package/dist/swirl-icon-filter.entry.ca392652.js +19 -0
- package/dist/swirl-icon-folder.entry.ca267617.js +19 -0
- package/dist/swirl-icon-format-h-one.entry.511abddc.js +19 -0
- package/dist/swirl-icon-gif.entry.15232aa1.js +19 -0
- package/dist/swirl-icon-group-add.entry.7c17aa06.js +19 -0
- package/dist/swirl-icon-group-assign.entry.a5f23902.js +19 -0
- package/dist/swirl-icon-groups-filled.entry.8b39a921.js +19 -0
- package/dist/swirl-icon-groups.entry.2ffc0e38.js +19 -0
- package/dist/swirl-icon-hamburger-menu.entry.b62cec4e.js +19 -0
- package/dist/swirl-icon-help.entry.6f034719.js +19 -0
- package/dist/swirl-icon-highlight.entry.87de0131.js +19 -0
- package/dist/swirl-icon-home.entry.8de9d3c6.js +19 -0
- package/dist/swirl-icon-image.entry.b6654da7.js +19 -0
- package/dist/swirl-icon-improve-text.entry.78219a9d.js +19 -0
- package/dist/swirl-icon-info.entry.bb5be418.js +19 -0
- package/dist/swirl-icon-insert-below.entry.fe0a1efd.js +19 -0
- package/dist/swirl-icon-insert-on-top.entry.3c47fc05.js +19 -0
- package/dist/swirl-icon-inventory.entry.f0038549.js +19 -0
- package/dist/swirl-icon-keyboard-hide.entry.e346968a.js +19 -0
- package/dist/swirl-icon-light-mode.entry.17d421cd.js +19 -0
- package/dist/swirl-icon-like.entry.d1e547e9.js +19 -0
- package/dist/swirl-icon-link.entry.40e9e4be.js +19 -0
- package/dist/swirl-icon-load.entry.0d4f1591.js +19 -0
- package/dist/swirl-icon-lock-open.entry.6f13e5f8.js +19 -0
- package/dist/swirl-icon-lock-person.entry.7e9e5b40.js +19 -0
- package/dist/swirl-icon-lock.entry.2c5aacac.js +19 -0
- package/dist/swirl-icon-login.entry.ba26a031.js +19 -0
- package/dist/swirl-icon-logout.entry.ccd3c4ef.js +19 -0
- package/dist/swirl-icon-long-text.entry.bb2817d8.js +19 -0
- package/dist/swirl-icon-mail.entry.d8bf61e9.js +19 -0
- package/dist/swirl-icon-manage-accounts.entry.d2d1a670.js +19 -0
- package/dist/swirl-icon-mark-chat-read.entry.b2fada16.js +19 -0
- package/dist/swirl-icon-mark-chat-unread.entry.62c2addb.js +19 -0
- package/dist/swirl-icon-mention.entry.91ea15c9.js +19 -0
- package/dist/swirl-icon-menu-filled.entry.f82f5ba4.js +19 -0
- package/dist/swirl-icon-menu.entry.ba608fde.js +19 -0
- package/dist/swirl-icon-message.entry.0d223cca.js +19 -0
- package/dist/swirl-icon-mic.entry.c43483cf.js +19 -0
- package/dist/swirl-icon-more-horizontal.entry.03d2279b.js +19 -0
- package/dist/swirl-icon-news-filled.entry.54e10a7e.js +19 -0
- package/dist/swirl-icon-news-off.entry.600a4cda.js +19 -0
- package/dist/swirl-icon-news.entry.f35c91d6.js +19 -0
- package/dist/swirl-icon-notifications-active.entry.edd779a8.js +19 -0
- package/dist/swirl-icon-notifications-off.entry.a568c56e.js +19 -0
- package/dist/swirl-icon-notifications.entry.0fc05b70.js +19 -0
- package/dist/swirl-icon-open-in-full.entry.c09a4e67.js +19 -0
- package/dist/swirl-icon-open-in-new.entry.3ce6cb8e.js +19 -0
- package/dist/swirl-icon-pause-circle.entry.b846ee86.js +19 -0
- package/dist/swirl-icon-pause.entry.ade87623.js +19 -0
- package/dist/swirl-icon-people-alt.entry.1cda415a.js +19 -0
- package/dist/swirl-icon-person-off.entry.94d86ab7.js +19 -0
- package/dist/swirl-icon-person.entry.971e830b.js +19 -0
- package/dist/swirl-icon-phone.entry.b9bc7db4.js +19 -0
- package/dist/swirl-icon-photo-camera.entry.33ee05bb.js +19 -0
- package/dist/swirl-icon-place.entry.d47519ee.js +19 -0
- package/dist/swirl-icon-play-arrow.entry.bfdfecf6.js +19 -0
- package/dist/swirl-icon-poll.entry.56d65c83.js +19 -0
- package/dist/swirl-icon-print.entry.d1cdb3b6.js +19 -0
- package/dist/swirl-icon-recieved.entry.b61f4ab7.js +19 -0
- package/dist/swirl-icon-remove-moderator.entry.ee801f6a.js +19 -0
- package/dist/swirl-icon-reply.entry.abdc6f12.js +19 -0
- package/dist/swirl-icon-report.entry.2e0fda12.js +19 -0
- package/dist/swirl-icon-roadmap.entry.4f9a7341.js +19 -0
- package/dist/swirl-icon-search-strong.entry.f8532211.js +19 -0
- package/dist/swirl-icon-search.entry.3107623a.js +19 -0
- package/dist/swirl-icon-secure.entry.d665acb8.js +19 -0
- package/dist/swirl-icon-send.entry.f294b36e.js +19 -0
- package/dist/swirl-icon-settings.entry.2b1bce73.js +19 -0
- package/dist/swirl-icon-short-text.entry.67e6d936.js +19 -0
- package/dist/swirl-icon-simplify.entry.b87af70e.js +19 -0
- package/dist/swirl-icon-spellcheck.entry.85157c08.js +19 -0
- package/dist/swirl-icon-stop.entry.94db8502.js +19 -0
- package/dist/swirl-icon-sync.entry.a6467341.js +19 -0
- package/dist/swirl-icon-tasks-filled.entry.973365d3.js +19 -0
- package/dist/swirl-icon-tasks.entry.af8fba70.js +19 -0
- package/dist/swirl-icon-terminal.entry.ab566585.js +19 -0
- package/dist/swirl-icon-time-filled.entry.406a0464.js +19 -0
- package/dist/swirl-icon-time.entry.2b292b5e.js +19 -0
- package/dist/swirl-icon-today-filled.entry.7b19747a.js +19 -0
- package/dist/swirl-icon-translate.entry.ade34b24.js +19 -0
- package/dist/swirl-icon-tree-structure.entry.94dd5aa9.js +19 -0
- package/dist/swirl-icon-undo.entry.4fa62caf.js +19 -0
- package/dist/swirl-icon-unlock-person.entry.a7eb3aea.js +19 -0
- package/dist/swirl-icon-user-add.entry.6bdb10c4.js +19 -0
- package/dist/swirl-icon-user-assign.entry.d570fee6.js +19 -0
- package/dist/swirl-icon-video-camera.entry.d1b06b18.js +19 -0
- package/dist/swirl-icon-video-library.entry.38394b67.js +19 -0
- package/dist/swirl-icon-voice.entry.25039314.js +19 -0
- package/dist/swirl-icon-work.entry.2f905d86.js +19 -0
- package/dist/swirl-icon.entry.11912a15.js +16 -0
- package/dist/{swirl-image-grid-item.entry.2b392144.js → swirl-image-grid-item.entry.76199d6a.js} +18 -18
- package/dist/{swirl-image-grid.entry.0fb079c9.js → swirl-image-grid.entry.3d000272.js} +6 -6
- package/dist/swirl-inline-notification.entry.a7ff9f2d.js +17 -0
- package/dist/{swirl-inline-status.entry.751e2fb2.js → swirl-inline-status.entry.66b8edc1.js} +10 -10
- package/dist/swirl-lightbox.entry.eb0bbb32.js +136 -0
- package/dist/{swirl-link.entry.092e494f.js → swirl-link.entry.7c07d678.js} +4 -4
- package/dist/{swirl-list.entry.e13e8ff6.js → swirl-list.entry.06d3efe0.js} +8 -8
- package/dist/{swirl-menu-item.entry.5458af28.js → swirl-menu-item.entry.61a05216.js} +25 -25
- package/dist/{swirl-menu.entry.5f3db857.js → swirl-menu.entry.669ba100.js} +34 -34
- package/dist/{swirl-modal.entry.ca31555f.js → swirl-modal.entry.09d31bdf.js} +29 -29
- package/dist/{swirl-option-list-section.entry.695b5045.js → swirl-option-list-section.entry.91aa5d6c.js} +6 -6
- package/dist/{swirl-option-list_2.entry.b18f8ef8.js → swirl-option-list_2.entry.c115ea15.js} +14 -14
- package/dist/swirl-pagination.entry.d1f1a371.js +38 -0
- package/dist/swirl-pdf-reader.entry.5949465e.js +109 -0
- package/dist/{swirl-popover_2.entry.45581ec5.js → swirl-popover_2.entry.c8d438c9.js} +21 -21
- package/dist/{swirl-progress-indicator.entry.6a82180f.js → swirl-progress-indicator.entry.ffb3986f.js} +9 -9
- package/dist/{swirl-radio-group.entry.c7768181.js → swirl-radio-group.entry.77dc50d1.js} +6 -6
- package/dist/{swirl-radio.entry.4caa8465.js → swirl-radio.entry.c7e60f42.js} +8 -8
- package/dist/{swirl-resource-list-file-item.entry.f7b2e3c1.js → swirl-resource-list-file-item.entry.270cbc23.js} +8 -8
- package/dist/{swirl-search.entry.a54ed8d6.js → swirl-search.entry.1f3cbbe5.js} +26 -26
- package/dist/{swirl-select.entry.c29e7068.js → swirl-select.entry.18719f2a.js} +13 -13
- package/dist/{swirl-shell-layout.entry.cb685206.js → swirl-shell-layout.entry.2136a431.js} +9 -9
- package/dist/{swirl-shell-navigation-item.entry.e2b59ab7.js → swirl-shell-navigation-item.entry.4385374f.js} +10 -10
- package/dist/{swirl-skeleton-box.entry.81920663.js → swirl-skeleton-box.entry.18f6cd45.js} +7 -7
- package/dist/{swirl-skeleton-text.entry.63c4c8d2.js → swirl-skeleton-text.entry.857b03ca.js} +6 -6
- package/dist/{swirl-stack.entry.0f6b5394.js → swirl-stack.entry.447b9f47.js} +8 -8
- package/dist/{swirl-status-indicator.entry.63176767.js → swirl-status-indicator.entry.afeeeb18.js} +5 -5
- package/dist/{swirl-switch.entry.d8e76e70.js → swirl-switch.entry.2243e6e8.js} +8 -8
- package/dist/swirl-symbol-account-circle.entry.8d0ce905.js +17 -0
- package/dist/swirl-symbol-alternate-email.entry.ca4e22b1.js +17 -0
- package/dist/swirl-symbol-android.entry.45059350.js +17 -0
- package/dist/swirl-symbol-announcement.entry.b4c45002.js +17 -0
- package/dist/swirl-symbol-backup.entry.77de6485.js +17 -0
- package/dist/swirl-symbol-beach-access.entry.a3d981c5.js +17 -0
- package/dist/swirl-symbol-bookmark.entry.e95fb37f.js +17 -0
- package/dist/swirl-symbol-cloud.entry.9b7139cf.js +17 -0
- package/dist/swirl-symbol-coronavirus.entry.e639c99c.js +17 -0
- package/dist/swirl-symbol-desktop-windows.entry.2c439200.js +17 -0
- package/dist/swirl-symbol-directions-car-filled.entry.ad52ef9f.js +17 -0
- package/dist/swirl-symbol-edit-calendar.entry.430a5220.js +17 -0
- package/dist/swirl-symbol-email.entry.031bf07a.js +17 -0
- package/dist/swirl-symbol-emoji-food-beverage.entry.a0e9a717.js +17 -0
- package/dist/swirl-symbol-event-menu.entry.9bd76aef.js +17 -0
- package/dist/swirl-symbol-facebook.entry.d613596e.js +17 -0
- package/dist/swirl-symbol-favorite.entry.b7933a92.js +17 -0
- package/dist/swirl-symbol-fitness-center.entry.f385d18b.js +17 -0
- package/dist/swirl-symbol-flag.entry.41391366.js +17 -0
- package/dist/swirl-symbol-folder.entry.da596713.js +17 -0
- package/dist/swirl-symbol-globe.entry.6e5a417c.js +17 -0
- package/dist/swirl-symbol-groups.entry.1e395f7e.js +17 -0
- package/dist/swirl-symbol-help.entry.e5c02b72.js +17 -0
- package/dist/swirl-symbol-image.entry.43947aaa.js +17 -0
- package/dist/swirl-symbol-info-menu.entry.cc69848d.js +17 -0
- package/dist/swirl-symbol-instagram.entry.9c824e70.js +17 -0
- package/dist/swirl-symbol-ios.entry.2775c07e.js +17 -0
- package/dist/swirl-symbol-language.entry.ae21d588.js +17 -0
- package/dist/swirl-symbol-leaderboard.entry.bd7d1e6f.js +17 -0
- package/dist/swirl-symbol-lightbulb.entry.d67d74ac.js +17 -0
- package/dist/swirl-symbol-linkedin.entry.f8a49932.js +17 -0
- package/dist/swirl-symbol-location-on.entry.5fcbb4ae.js +17 -0
- package/dist/swirl-symbol-loyalty.entry.d5355c7f.js +17 -0
- package/dist/swirl-symbol-maps-home-work.entry.e2809eed.js +17 -0
- package/dist/swirl-symbol-notifications.entry.2d8257c4.js +17 -0
- package/dist/swirl-symbol-open-in-new.entry.7655d2b4.js +17 -0
- package/dist/swirl-symbol-pedal-bike.entry.74cf4e9a.js +17 -0
- package/dist/swirl-symbol-pinterest.entry.784a5e08.js +17 -0
- package/dist/swirl-symbol-policy.entry.10e4dc97.js +17 -0
- package/dist/swirl-symbol-push-pin.entry.6d7fc6f1.js +17 -0
- package/dist/swirl-symbol-redeem.entry.462507a6.js +17 -0
- package/dist/swirl-symbol-report-problem.entry.202e6b49.js +17 -0
- package/dist/swirl-symbol-restaurant.entry.aabada17.js +17 -0
- package/dist/swirl-symbol-roadmap.entry.eb15af8c.js +17 -0
- package/dist/swirl-symbol-room.entry.cad721df.js +17 -0
- package/dist/swirl-symbol-savings.entry.3b6ed577.js +17 -0
- package/dist/swirl-symbol-settings-voice.entry.a036a0a5.js +17 -0
- package/dist/swirl-symbol-shopping-cart.entry.34c0362c.js +17 -0
- package/dist/swirl-symbol-smartphone.entry.5a96be64.js +17 -0
- package/dist/swirl-symbol-star.entry.f1489b4d.js +17 -0
- package/dist/swirl-symbol-supervisor-account.entry.b1faf760.js +17 -0
- package/dist/swirl-symbol-thumbs-up-down.entry.a862886d.js +17 -0
- package/dist/swirl-symbol-twitter.entry.dfdf82e7.js +17 -0
- package/dist/swirl-symbol-wb-sunny.entry.90b74c5d.js +17 -0
- package/dist/swirl-symbol-wechat.entry.5ec8c230.js +17 -0
- package/dist/swirl-symbol-weibo.entry.fc24826b.js +17 -0
- package/dist/swirl-symbol-work.entry.7d10a4b8.js +17 -0
- package/dist/swirl-symbol-xing.entry.d8b4a973.js +17 -0
- package/dist/swirl-symbol-youtube.entry.8139ff9e.js +17 -0
- package/dist/swirl-symbol.entry.81586c5b.js +16 -0
- package/dist/{swirl-tab-bar.entry.6930cd0b.js → swirl-tab-bar.entry.2d274422.js} +6 -6
- package/dist/swirl-tab.entry.c8b9e55d.js +17 -0
- package/dist/{swirl-table-cell.entry.f20d1892.js → swirl-table-cell.entry.8849e8b8.js} +6 -6
- package/dist/{swirl-table-column.entry.d3d4d5fe.js → swirl-table-column.entry.2587d97d.js} +11 -11
- package/dist/{swirl-table-row-group.entry.2f840945.js → swirl-table-row-group.entry.d096161b.js} +7 -7
- package/dist/{swirl-table-row.entry.0102c137.js → swirl-table-row.entry.e5defa5d.js} +8 -8
- package/dist/{swirl-table.entry.43916b1a.js → swirl-table.entry.17b52ae9.js} +12 -12
- package/dist/{swirl-tabs.entry.5de16dc3.js → swirl-tabs.entry.b553d7d9.js} +16 -16
- package/dist/{swirl-text-input.entry.4c770aec.js → swirl-text-input.entry.64782d9b.js} +9 -9
- package/dist/{swirl-text.entry.288783ea.js → swirl-text.entry.4e26a561.js} +76 -73
- package/dist/{swirl-theme-provider.entry.5df1648b.js → swirl-theme-provider.entry.3d90bebb.js} +5 -5
- package/dist/{swirl-time-input.entry.f8ee0a10.js → swirl-time-input.entry.1737929f.js} +29 -28
- package/dist/{swirl-toast-provider.entry.8636d80c.js → swirl-toast-provider.entry.b620950e.js} +6 -6
- package/dist/{swirl-toast.entry.6fcc09d0.js → swirl-toast.entry.0ab29ff5.js} +7 -7
- package/dist/{swirl-toolbar.entry.23264142.js → swirl-toolbar.entry.a391b399.js} +6 -6
- package/dist/{swirl-tooltip.entry.319754fd.js → swirl-tooltip.entry.e05390b0.js} +16 -16
- package/dist/{swirl-tree-navigation-item.entry.c8254019.js → swirl-tree-navigation-item.entry.12ae87f7.js} +6 -6
- package/dist/swirl-video-thumbnail.entry.bd212717.js +88 -0
- package/dist/swirl-visually-hidden.entry.1dc8f32e.js +15 -0
- package/dist/{wc-datepicker.entry.d923f766.js → wc-datepicker.entry.d2330d44.js} +9 -9
- package/package.json +2 -2
- package/dist/file-manager.entry.859063e0.js +0 -57
- package/dist/index-d280dafb.186cdb0e.js +0 -71
- package/dist/index.a5290183.js +0 -3012
- package/dist/swirl-action-list_3.entry.97592733.js +0 -103
- package/dist/swirl-app-bar.entry.15eee13f.js +0 -45
- package/dist/swirl-app-icon.entry.5ee9663c.js +0 -23
- package/dist/swirl-autocomplete.entry.74a458c1.js +0 -115
- package/dist/swirl-carousel-slide.entry.4b355199.js +0 -19
- package/dist/swirl-columns.entry.0bc8c0de.js +0 -18
- package/dist/swirl-console-layout.entry.b4fb4388.js +0 -68
- package/dist/swirl-description-list.entry.e3b921a9.js +0 -15
- package/dist/swirl-emoji-clap.entry.bb740b44.js +0 -17
- package/dist/swirl-emoji-happy.entry.df0b3f10.js +0 -17
- package/dist/swirl-emoji-idea.entry.a1e5c8b5.js +0 -17
- package/dist/swirl-emoji-love.entry.5ee9851f.js +0 -17
- package/dist/swirl-emoji-sad.entry.a8aa1837.js +0 -17
- package/dist/swirl-emoji-thumbs-up.entry.063aca10.js +0 -17
- package/dist/swirl-emoji.entry.aa81a4d8.js +0 -16
- package/dist/swirl-form-group.entry.8ec0ebb1.js +0 -17
- package/dist/swirl-icon-add-moderator.entry.fe274051.js +0 -19
- package/dist/swirl-icon-add-photo.entry.28b99034.js +0 -19
- package/dist/swirl-icon-add-reaction.entry.da7c7275.js +0 -19
- package/dist/swirl-icon-add_6.entry.799d739d.js +0 -84
- package/dist/swirl-icon-admin-panel-settings.entry.1602d7ad.js +0 -19
- package/dist/swirl-icon-ai.entry.754076d3.js +0 -19
- package/dist/swirl-icon-apps.entry.c9ce96a8.js +0 -19
- package/dist/swirl-icon-arrow-back_4.entry.fc54accf.js +0 -58
- package/dist/swirl-icon-arrow-downward_2.entry.3aa397be.js +0 -32
- package/dist/swirl-icon-arrow-left_4.entry.cf45f612.js +0 -59
- package/dist/swirl-icon-arrow-right-small.entry.311a8150.js +0 -19
- package/dist/swirl-icon-attachment.entry.3fa14211.js +0 -19
- package/dist/swirl-icon-bar-chart.entry.1163297d.js +0 -19
- package/dist/swirl-icon-block.entry.15c18fad.js +0 -19
- package/dist/swirl-icon-bookmark-filled.entry.cbace9db.js +0 -19
- package/dist/swirl-icon-bookmark.entry.2e22aa18.js +0 -19
- package/dist/swirl-icon-cancel_4.entry.2ddd1662.js +0 -58
- package/dist/swirl-icon-chat-bubble.entry.be49c58f.js +0 -19
- package/dist/swirl-icon-chats-filled.entry.ca5cccf0.js +0 -19
- package/dist/swirl-icon-chats.entry.99572e2f.js +0 -19
- package/dist/swirl-icon-check-circle_2.entry.ef23105e.js +0 -32
- package/dist/swirl-icon-check-small_3.entry.ff487841.js +0 -77
- package/dist/swirl-icon-check-strong.entry.13bf7aa5.js +0 -19
- package/dist/swirl-icon-check.entry.2ac2f84f.js +0 -19
- package/dist/swirl-icon-chevron-left.entry.0394010c.js +0 -19
- package/dist/swirl-icon-chevron-right.entry.e9e91ff3.js +0 -19
- package/dist/swirl-icon-close-small.entry.1695969a.js +0 -19
- package/dist/swirl-icon-close.entry.23e74ba0.js +0 -19
- package/dist/swirl-icon-cloud-upload.entry.e30cc58a.js +0 -19
- package/dist/swirl-icon-column.entry.8f99fecc.js +0 -19
- package/dist/swirl-icon-comment.entry.2956175d.js +0 -19
- package/dist/swirl-icon-copy.entry.d12042e8.js +0 -19
- package/dist/swirl-icon-dark-mode.entry.8e80f6d5.js +0 -19
- package/dist/swirl-icon-date-range.entry.145e2233.js +0 -19
- package/dist/swirl-icon-delete.entry.7275d800.js +0 -19
- package/dist/swirl-icon-description.entry.7ae73a8c.js +0 -19
- package/dist/swirl-icon-desktop.entry.8c06dbc3.js +0 -19
- package/dist/swirl-icon-directory-filled.entry.d8cf4da6.js +0 -19
- package/dist/swirl-icon-directory.entry.288619ff.js +0 -19
- package/dist/swirl-icon-discover.entry.16030103.js +0 -19
- package/dist/swirl-icon-dot.entry.50213b3a.js +0 -19
- package/dist/swirl-icon-double-arrow-right.entry.d2057ff9.js +0 -19
- package/dist/swirl-icon-download.entry.08d170fb.js +0 -19
- package/dist/swirl-icon-edit.entry.83be11d7.js +0 -19
- package/dist/swirl-icon-emoji-mood.entry.82c984a5.js +0 -19
- package/dist/swirl-icon-emoji-satisfied.entry.9de3ad8a.js +0 -19
- package/dist/swirl-icon-error_3.entry.c95eea00.js +0 -58
- package/dist/swirl-icon-expand-more.entry.e2c61b25.js +0 -19
- package/dist/swirl-icon-filter.entry.8160ead6.js +0 -19
- package/dist/swirl-icon-folder.entry.b5cd743e.js +0 -19
- package/dist/swirl-icon-format-h-one.entry.2e40ee85.js +0 -19
- package/dist/swirl-icon-gif.entry.4ba7c828.js +0 -19
- package/dist/swirl-icon-group-add.entry.2980a132.js +0 -19
- package/dist/swirl-icon-group-assign.entry.b21a3dfe.js +0 -19
- package/dist/swirl-icon-groups-filled.entry.3df1b3fb.js +0 -19
- package/dist/swirl-icon-groups.entry.97741051.js +0 -19
- package/dist/swirl-icon-hamburger-menu.entry.98f2c0b7.js +0 -19
- package/dist/swirl-icon-help.entry.dee5dcd0.js +0 -19
- package/dist/swirl-icon-highlight.entry.8eb2db71.js +0 -19
- package/dist/swirl-icon-home.entry.4414a607.js +0 -19
- package/dist/swirl-icon-image.entry.928730f8.js +0 -19
- package/dist/swirl-icon-improve-text.entry.27d14a0e.js +0 -19
- package/dist/swirl-icon-info.entry.602f7958.js +0 -19
- package/dist/swirl-icon-insert-below.entry.cfd518aa.js +0 -19
- package/dist/swirl-icon-insert-on-top.entry.49c94e3a.js +0 -19
- package/dist/swirl-icon-inventory.entry.a798fca4.js +0 -19
- package/dist/swirl-icon-keyboard-hide.entry.88b17074.js +0 -19
- package/dist/swirl-icon-light-mode.entry.c7affc35.js +0 -19
- package/dist/swirl-icon-like.entry.e660a93c.js +0 -19
- package/dist/swirl-icon-link.entry.57fcfd60.js +0 -19
- package/dist/swirl-icon-load.entry.2969b1e8.js +0 -19
- package/dist/swirl-icon-lock-open.entry.62e61a24.js +0 -19
- package/dist/swirl-icon-lock-person.entry.859977ac.js +0 -19
- package/dist/swirl-icon-lock.entry.40284e49.js +0 -19
- package/dist/swirl-icon-login.entry.86483e7a.js +0 -19
- package/dist/swirl-icon-logout.entry.c70e6dac.js +0 -19
- package/dist/swirl-icon-long-text.entry.9e14fe94.js +0 -19
- package/dist/swirl-icon-mail.entry.334d799c.js +0 -19
- package/dist/swirl-icon-manage-accounts.entry.c4ffd308.js +0 -19
- package/dist/swirl-icon-mark-chat-read.entry.0fdb894d.js +0 -19
- package/dist/swirl-icon-mark-chat-unread.entry.8a8d0b58.js +0 -19
- package/dist/swirl-icon-mention.entry.51c24ace.js +0 -19
- package/dist/swirl-icon-menu-filled.entry.495a3e1f.js +0 -19
- package/dist/swirl-icon-menu.entry.9ee0de2b.js +0 -19
- package/dist/swirl-icon-message.entry.ea7419d2.js +0 -19
- package/dist/swirl-icon-mic.entry.3757259f.js +0 -19
- package/dist/swirl-icon-more-horizontal.entry.061e4ecc.js +0 -19
- package/dist/swirl-icon-news-filled.entry.cef687a1.js +0 -19
- package/dist/swirl-icon-news-off.entry.64cb7d1b.js +0 -19
- package/dist/swirl-icon-news.entry.7c2068c8.js +0 -19
- package/dist/swirl-icon-notifications-active.entry.a2a9a096.js +0 -19
- package/dist/swirl-icon-notifications-off.entry.d4902e55.js +0 -19
- package/dist/swirl-icon-notifications.entry.b5d388d7.js +0 -19
- package/dist/swirl-icon-open-in-full.entry.120028d4.js +0 -19
- package/dist/swirl-icon-open-in-new.entry.577ac753.js +0 -19
- package/dist/swirl-icon-pause-circle.entry.84ece357.js +0 -19
- package/dist/swirl-icon-pause.entry.8fb2e7ec.js +0 -19
- package/dist/swirl-icon-people-alt.entry.d57e4768.js +0 -19
- package/dist/swirl-icon-person-off.entry.5f7a00e0.js +0 -19
- package/dist/swirl-icon-person.entry.bb48f038.js +0 -19
- package/dist/swirl-icon-phone.entry.88a86a03.js +0 -19
- package/dist/swirl-icon-photo-camera.entry.f1434c21.js +0 -19
- package/dist/swirl-icon-place.entry.85f42096.js +0 -19
- package/dist/swirl-icon-play-arrow.entry.7cb4a17f.js +0 -19
- package/dist/swirl-icon-poll.entry.95225071.js +0 -19
- package/dist/swirl-icon-print.entry.15861637.js +0 -19
- package/dist/swirl-icon-recieved.entry.b0bfe205.js +0 -19
- package/dist/swirl-icon-remove-moderator.entry.f01c3704.js +0 -19
- package/dist/swirl-icon-reply.entry.701f05a4.js +0 -19
- package/dist/swirl-icon-report.entry.96df68b5.js +0 -19
- package/dist/swirl-icon-roadmap.entry.2bf00de9.js +0 -19
- package/dist/swirl-icon-search-strong.entry.6e219a57.js +0 -19
- package/dist/swirl-icon-search.entry.424df49c.js +0 -19
- package/dist/swirl-icon-secure.entry.9f80831f.js +0 -19
- package/dist/swirl-icon-send.entry.ce58a0a1.js +0 -19
- package/dist/swirl-icon-settings.entry.9dad2168.js +0 -19
- package/dist/swirl-icon-short-text.entry.18fee1f0.js +0 -19
- package/dist/swirl-icon-simplify.entry.f9c82b3d.js +0 -19
- package/dist/swirl-icon-spellcheck.entry.664bed56.js +0 -19
- package/dist/swirl-icon-stop.entry.cdcbcb1a.js +0 -19
- package/dist/swirl-icon-sync.entry.93116a94.js +0 -19
- package/dist/swirl-icon-tasks-filled.entry.13f67654.js +0 -19
- package/dist/swirl-icon-tasks.entry.254c7e2d.js +0 -19
- package/dist/swirl-icon-terminal.entry.e064fd08.js +0 -19
- package/dist/swirl-icon-time-filled.entry.160f7cac.js +0 -19
- package/dist/swirl-icon-time.entry.a1413215.js +0 -19
- package/dist/swirl-icon-today-filled.entry.6a0728ee.js +0 -19
- package/dist/swirl-icon-translate.entry.b1dfb124.js +0 -19
- package/dist/swirl-icon-tree-structure.entry.c3ef5980.js +0 -19
- package/dist/swirl-icon-undo.entry.31c00da3.js +0 -19
- package/dist/swirl-icon-unlock-person.entry.3556d7b1.js +0 -19
- package/dist/swirl-icon-user-add.entry.997bf29a.js +0 -19
- package/dist/swirl-icon-user-assign.entry.70430851.js +0 -19
- package/dist/swirl-icon-video-camera.entry.040aa77c.js +0 -19
- package/dist/swirl-icon-video-library.entry.62e735bc.js +0 -19
- package/dist/swirl-icon-voice.entry.5f5b853b.js +0 -19
- package/dist/swirl-icon-work.entry.a4414670.js +0 -19
- package/dist/swirl-icon.entry.802f1b73.js +0 -16
- package/dist/swirl-inline-notification.entry.949eec2a.js +0 -17
- package/dist/swirl-lightbox.entry.0068e44e.js +0 -136
- package/dist/swirl-pagination.entry.fcb196ee.js +0 -38
- package/dist/swirl-pdf-reader.entry.a0bfe4f3.js +0 -109
- package/dist/swirl-symbol-account-circle.entry.90300909.js +0 -17
- package/dist/swirl-symbol-alternate-email.entry.160ef4a8.js +0 -17
- package/dist/swirl-symbol-android.entry.98038a6b.js +0 -17
- package/dist/swirl-symbol-announcement.entry.3fe4c253.js +0 -17
- package/dist/swirl-symbol-backup.entry.fd32cb79.js +0 -17
- package/dist/swirl-symbol-beach-access.entry.8df72c80.js +0 -17
- package/dist/swirl-symbol-bookmark.entry.4ac153af.js +0 -17
- package/dist/swirl-symbol-cloud.entry.0c1a52df.js +0 -17
- package/dist/swirl-symbol-coronavirus.entry.0acc9c5b.js +0 -17
- package/dist/swirl-symbol-desktop-windows.entry.c1fce311.js +0 -17
- package/dist/swirl-symbol-directions-car-filled.entry.ebcfbbe9.js +0 -17
- package/dist/swirl-symbol-edit-calendar.entry.1dfb7b4f.js +0 -17
- package/dist/swirl-symbol-email.entry.c4d92368.js +0 -17
- package/dist/swirl-symbol-emoji-food-beverage.entry.4007dfa7.js +0 -17
- package/dist/swirl-symbol-event-menu.entry.2adfbec3.js +0 -17
- package/dist/swirl-symbol-facebook.entry.04c5e929.js +0 -17
- package/dist/swirl-symbol-favorite.entry.abd09d45.js +0 -17
- package/dist/swirl-symbol-fitness-center.entry.d11b5a58.js +0 -17
- package/dist/swirl-symbol-flag.entry.aed8fdbd.js +0 -17
- package/dist/swirl-symbol-folder.entry.a8fe88aa.js +0 -17
- package/dist/swirl-symbol-globe.entry.670339d0.js +0 -17
- package/dist/swirl-symbol-groups.entry.24584a5d.js +0 -17
- package/dist/swirl-symbol-help.entry.0e52fff2.js +0 -17
- package/dist/swirl-symbol-image.entry.c7c0f341.js +0 -17
- package/dist/swirl-symbol-info-menu.entry.be592909.js +0 -17
- package/dist/swirl-symbol-instagram.entry.3f9c7629.js +0 -17
- package/dist/swirl-symbol-ios.entry.fc3b933e.js +0 -17
- package/dist/swirl-symbol-language.entry.ab86ab07.js +0 -17
- package/dist/swirl-symbol-leaderboard.entry.c7b1efed.js +0 -17
- package/dist/swirl-symbol-lightbulb.entry.405d9d29.js +0 -17
- package/dist/swirl-symbol-linkedin.entry.0b47aa95.js +0 -17
- package/dist/swirl-symbol-location-on.entry.f7ff8a70.js +0 -17
- package/dist/swirl-symbol-loyalty.entry.d017e5b9.js +0 -17
- package/dist/swirl-symbol-maps-home-work.entry.61b8356e.js +0 -17
- package/dist/swirl-symbol-notifications.entry.58c0c832.js +0 -17
- package/dist/swirl-symbol-open-in-new.entry.f8c7f57e.js +0 -17
- package/dist/swirl-symbol-pedal-bike.entry.43a1a6c2.js +0 -17
- package/dist/swirl-symbol-pinterest.entry.0b9c6688.js +0 -17
- package/dist/swirl-symbol-policy.entry.872a13a7.js +0 -17
- package/dist/swirl-symbol-push-pin.entry.79a23d86.js +0 -17
- package/dist/swirl-symbol-redeem.entry.bd8ee402.js +0 -17
- package/dist/swirl-symbol-report-problem.entry.777faf5b.js +0 -17
- package/dist/swirl-symbol-restaurant.entry.62ae9d34.js +0 -17
- package/dist/swirl-symbol-roadmap.entry.f15b1582.js +0 -17
- package/dist/swirl-symbol-room.entry.3543e354.js +0 -17
- package/dist/swirl-symbol-savings.entry.00b4a492.js +0 -17
- package/dist/swirl-symbol-settings-voice.entry.c653a6c3.js +0 -17
- package/dist/swirl-symbol-shopping-cart.entry.264feb48.js +0 -17
- package/dist/swirl-symbol-smartphone.entry.356e8452.js +0 -17
- package/dist/swirl-symbol-star.entry.f84c3a93.js +0 -17
- package/dist/swirl-symbol-supervisor-account.entry.0d511faa.js +0 -17
- package/dist/swirl-symbol-thumbs-up-down.entry.89371d56.js +0 -17
- package/dist/swirl-symbol-twitter.entry.592111c5.js +0 -17
- package/dist/swirl-symbol-wb-sunny.entry.def5a83a.js +0 -17
- package/dist/swirl-symbol-wechat.entry.b8b97654.js +0 -17
- package/dist/swirl-symbol-weibo.entry.ceca9f72.js +0 -17
- package/dist/swirl-symbol-work.entry.06c63930.js +0 -17
- package/dist/swirl-symbol-xing.entry.c12c92d5.js +0 -17
- package/dist/swirl-symbol-youtube.entry.99003d63.js +0 -17
- package/dist/swirl-symbol.entry.d8a40b21.js +0 -16
- package/dist/swirl-tab.entry.bdedf943.js +0 -17
- package/dist/swirl-video-thumbnail.entry.e96b11ae.js +0 -88
- package/dist/swirl-visually-hidden.entry.259640c3.js +0 -15
- /package/dist/{floating-ui.dom.esm-b73e243b.647a7c7e.js → floating-ui.dom.esm-bef21834.ec4a9cbf.js} +0 -0
- /package/dist/{utils-c5f2f98f.af14538a.js → utils-aab10c80.240adddc.js} +0 -0
package/dist/{swirl-file-viewer_7.entry.9ca90d82.js → swirl-file-viewer_7.entry.9644cbfc.js}
RENAMED
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import { r as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { r as zt, c as Rt, h as qe, H as jt, g as Qt } from "./index.9d32bf5e.js";
|
|
2
|
+
import { c as vt, g as ea, a as qr, b as ta } from "./_commonjsHelpers-d20b9603.2d9b8855.js";
|
|
3
|
+
import { c as ra } from "./index-267776a4.6beb4f4b.js";
|
|
4
|
+
import { d as na, e as ia, i as aa } from "./utils-aab10c80.240adddc.js";
|
|
4
5
|
import "react";
|
|
5
6
|
import "react-dom";
|
|
6
|
-
var
|
|
7
|
+
var Wn = { exports: {} };
|
|
8
|
+
(function(Le, Ee) {
|
|
7
9
|
(function(Ie, Te) {
|
|
8
10
|
Te();
|
|
9
11
|
})(vt, function() {
|
|
@@ -73,10 +75,10 @@ var na = cr(function(Le, Ee) {
|
|
|
73
75
|
});
|
|
74
76
|
B.saveAs = n.saveAs = n, Le.exports = n;
|
|
75
77
|
});
|
|
76
|
-
});
|
|
77
|
-
const
|
|
78
|
+
})(Wn);
|
|
79
|
+
const sa = ":host{display:block;width:100%;height:100%;pointer-events:none}:host *{box-sizing:border-box}.file-viewer{display:flex;width:100%;height:100%;justify-content:center;align-items:center}.file-viewer__file{display:inline-flex;width:100%;height:100%;justify-content:center;align-items:center}", oa = sa, la = class {
|
|
78
80
|
constructor(Le) {
|
|
79
|
-
|
|
81
|
+
zt(this, Le), this.activate = Rt(this, "activate", 7), this.visiblePagesChange = Rt(this, "visiblePagesChange", 7), this.onActivate = (Ee) => {
|
|
80
82
|
this.activate.emit(Ee.detail);
|
|
81
83
|
}, this.onVisiblePagesChange = (Ee) => {
|
|
82
84
|
this.visiblePagesChange.emit(Ee.detail);
|
|
@@ -84,39 +86,40 @@ const ia = ":host{display:block;width:100%;height:100%;pointer-events:none}:host
|
|
|
84
86
|
}
|
|
85
87
|
async download() {
|
|
86
88
|
const Le = this.fileName || this.file.split("/").pop(), Ee = await fetch(this.file);
|
|
87
|
-
|
|
89
|
+
Wn.exports.saveAs(await Ee.blob(), Le);
|
|
88
90
|
}
|
|
89
91
|
async print() {
|
|
90
92
|
this.type === "application/pdf" && this.viewer.print();
|
|
91
93
|
}
|
|
92
94
|
render() {
|
|
93
95
|
const Le = !Boolean(this.type) || !this.type.startsWith("image/") && !this.type.startsWith("video/") && !this.type.startsWith("audio/") && this.type !== "text/plain" && this.type !== "text/csv" && this.type !== "application/pdf";
|
|
94
|
-
return qe(
|
|
96
|
+
return qe(jt, { key: "da23b25e3fc17fd714c4532507c1d26df275f336" }, qe("div", { key: "5dd8417cf70644da57c39b0e187fa54fe699179d", class: "file-viewer" }, this.type && this.active && qe("div", { key: "440868e8a0442b2e029d26b1e134e5d7c3b4ddf4", class: "file-viewer__file" }, this.type.startsWith("image/") && qe("swirl-file-viewer-image", { key: "9c2115a78377a54623287226e7fbe52a88c8b8ef", description: this.description, errorMessage: this.errorMessage, file: this.file, ref: (Ee) => this.viewer = Ee }), this.type === "text/plain" && qe("swirl-file-viewer-text", { key: "808f327a5155c533c24378ec89d09759ebefc535", errorMessage: this.errorMessage, file: this.file, ref: (Ee) => this.viewer = Ee }), this.type === "text/csv" && qe("swirl-file-viewer-csv", { key: "292f0a389cf7e2b39ab239e2052c45c915cfa98f", errorMessage: this.errorMessage, file: this.file, ref: (Ee) => this.viewer = Ee }), this.type === "application/pdf" && qe("swirl-file-viewer-pdf", { key: "6c7994182db80172a0cc82a007db9e6af5c2471d", errorMessage: this.errorMessage, file: this.file, onActivate: this.onActivate, onVisiblePagesChange: this.onVisiblePagesChange, ref: (Ee) => this.viewer = Ee, viewMode: this.viewMode, workerSrc: this.pdfWorkerSrc, zoom: this.zoom }), this.type.startsWith("video/") && qe("swirl-file-viewer-video", { key: "1d6ce2afce4777074a302585c7f99f9e018d229f", autoplay: this.autoplay, file: this.file, ref: (Ee) => this.viewer = Ee, type: this.type }), this.type.startsWith("audio/") && qe("swirl-file-viewer-audio", { key: "31b074cc119974f03ffaa57527c07c2017a083de", autoplay: this.autoplay, file: this.file, ref: (Ee) => this.viewer = Ee, type: this.type }), Le && qe("swirl-inline-error", { key: "64e1baef690acce5dfc08081846628422b02c706", message: this.typeUnsupportedMessage }))));
|
|
95
97
|
}
|
|
96
98
|
};
|
|
97
|
-
|
|
98
|
-
const
|
|
99
|
+
la.style = oa;
|
|
100
|
+
const ca = ":host{display:inline-flex;width:100%;height:100%;pointer-events:auto}:host *{box-sizing:border-box}.file-viewer-audio__audio{width:100%;height:100%}", ua = ca, da = class {
|
|
99
101
|
constructor(Le) {
|
|
100
|
-
|
|
102
|
+
zt(this, Le), this.activate = Rt(this, "activate", 7), this.autoplay = void 0, this.file = void 0, this.type = void 0;
|
|
101
103
|
}
|
|
102
104
|
componentDidLoad() {
|
|
103
105
|
this.activate.emit(this.el);
|
|
104
106
|
}
|
|
105
107
|
render() {
|
|
106
|
-
return qe(
|
|
108
|
+
return qe(jt, { key: "ce3e7b2fa054ce3a3e08eb5abd74bebc10c55439", class: "file-viewer-audio" }, qe("audio", { key: "bf58fa829e842a1084ff6cad79a1d833e01a16a5", autoplay: this.autoplay, class: "file-viewer-audio__audio", controls: !0 }, qe("source", { key: "2dfbc94cc24e6d03122e5c852d06402f6e0d2b55", src: this.file, type: this.type })));
|
|
107
109
|
}
|
|
108
110
|
get el() {
|
|
109
111
|
return Qt(this);
|
|
110
112
|
}
|
|
111
113
|
};
|
|
112
|
-
|
|
113
|
-
var
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
114
|
+
da.style = ua;
|
|
115
|
+
var Un = { exports: {} };
|
|
116
|
+
/* @license
|
|
117
|
+
Papa Parse
|
|
118
|
+
v5.3.2
|
|
119
|
+
https://github.com/mholt/PapaParse
|
|
120
|
+
License: MIT
|
|
121
|
+
*/
|
|
122
|
+
(function(Le, Ee) {
|
|
120
123
|
(function(Ie, Te) {
|
|
121
124
|
Le.exports = Te();
|
|
122
125
|
})(vt, function Ie() {
|
|
@@ -642,10 +645,10 @@ var la = cr(function(Le, Ee) {
|
|
|
642
645
|
}
|
|
643
646
|
}), (T.prototype = Object.create(c.prototype)).constructor = T, (R.prototype = Object.create(c.prototype)).constructor = R, (O.prototype = Object.create(O.prototype)).constructor = O, (P.prototype = Object.create(c.prototype)).constructor = P, n;
|
|
644
647
|
});
|
|
645
|
-
});
|
|
646
|
-
const
|
|
648
|
+
})(Un);
|
|
649
|
+
const ha = ":host{position:relative;display:inline-flex;width:100%;max-height:100%;pointer-events:auto}:host *{box-sizing:border-box}.file-viewer-csv__csv{overflow:auto;width:100%;max-height:100%;padding:var(--s-space-16);background-color:var(--s-background-default)}.file-viewer-csv__table{margin-right:auto;margin-left:auto;border-collapse:collapse;line-height:var(--s-line-height-base)}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.file-viewer-csv__table{font-size:var(--s-font-size-sm);line-height:var(--s-line-height-sm)}}.file-viewer-csv__cell{padding:var(--s-space-8);border:var(--s-border-width-default) solid var(--s-border-default)}.file-viewer-csv__spinner{position:absolute;display:flex;justify-content:center;align-items:center;background-color:rgba(0, 0, 0, 0.2);inset:0}.file-viewer-csv__error{position:absolute;top:50%;left:50%;transform:translate3d(-50%, -50%, 0)}", fa = ha, pa = class {
|
|
647
650
|
constructor(Le) {
|
|
648
|
-
|
|
651
|
+
zt(this, Le), this.activate = Rt(this, "activate", 7), this.errorMessage = "File could not be loaded.", this.file = void 0, this.data = void 0, this.error = void 0, this.loading = void 0;
|
|
649
652
|
}
|
|
650
653
|
componentWillLoad() {
|
|
651
654
|
this.updateTable();
|
|
@@ -657,7 +660,7 @@ const ca = ":host{position:relative;display:inline-flex;width:100%;max-height:10
|
|
|
657
660
|
var Le;
|
|
658
661
|
this.error = !1, this.loading = !0;
|
|
659
662
|
try {
|
|
660
|
-
const Ee = await fetch(this.file), Ie =
|
|
663
|
+
const Ee = await fetch(this.file), Ie = Un.exports.parse(await Ee.text(), {
|
|
661
664
|
dynamicTyping: !0,
|
|
662
665
|
fastMode: !1,
|
|
663
666
|
skipEmptyLines: !0
|
|
@@ -673,7 +676,7 @@ const ca = ":host{position:relative;display:inline-flex;width:100%;max-height:10
|
|
|
673
676
|
}
|
|
674
677
|
render() {
|
|
675
678
|
var Le;
|
|
676
|
-
return qe(
|
|
679
|
+
return qe(jt, { key: "a6586fc47dcd80bf52d51314cabfbed7c4830c1a", class: "file-viewer-csv", exportparts: "file-viewer-csv__table" }, this.error && qe("swirl-inline-error", { key: "ca27c0ae1b2c20d8db8d8e5fa4f377b573779bc9", class: "file-viewer-csv__error", message: this.errorMessage }), qe("div", { key: "8402b62f1b26ae0508be359691f17ecb57b7bd54", class: "file-viewer-csv__csv", tabIndex: 0 }, qe("table", { key: "130889f9586fc7dd72fa8e05f7a01ae85c530239", class: "file-viewer-csv__table", part: "file-viewer-csv__table" }, qe("tbody", { key: "566b7a8fc3be56ec32eac3050f7d0af34ed1a2c4" }, (Le = this.data) == null ? void 0 : Le.map((Ee, Ie) => qe("tr", { class: "file-viewer-csv__row", key: `row-${Ie}` }, Ee.map((Te, De) => qe("td", { class: "file-viewer-csv__cell", key: `cell-${Ie}-${De}` }, Te))))))), this.loading && qe("div", { key: "a42c7d26451761d6bfb954587c4414969338b44f", class: "file-viewer-csv__spinner" }, qe("swirl-spinner", { key: "98e8d51ab6c6c4a60cdafee33a6a126a5b07c2a3" })));
|
|
677
680
|
}
|
|
678
681
|
get el() {
|
|
679
682
|
return Qt(this);
|
|
@@ -684,10 +687,10 @@ const ca = ":host{position:relative;display:inline-flex;width:100%;max-height:10
|
|
|
684
687
|
};
|
|
685
688
|
}
|
|
686
689
|
};
|
|
687
|
-
|
|
688
|
-
const
|
|
690
|
+
pa.style = fa;
|
|
691
|
+
const ga = ":host{position:relative;display:inline-flex;max-height:100%;pointer-events:auto}:host *{box-sizing:border-box}.file-viewer-image__image{max-width:100%;-o-object-fit:contain;object-fit:contain}.file-viewer-image__spinner{position:absolute;display:flex;justify-content:center;align-items:center;background-color:rgba(0, 0, 0, 0.2);inset:0}.file-viewer-image__error{position:absolute;top:50%;left:50%;transform:translate3d(-50%, -50%, 0)}", ma = ga, va = class {
|
|
689
692
|
constructor(Le) {
|
|
690
|
-
|
|
693
|
+
zt(this, Le), this.activate = Rt(this, "activate", 7), this.panX = 0, this.panY = 0, this.zoom = 1, this.onError = () => {
|
|
691
694
|
this.error = !0, this.loading = !1;
|
|
692
695
|
}, this.onLoad = () => {
|
|
693
696
|
this.error = !1, this.loading = !1;
|
|
@@ -759,7 +762,7 @@ const da = ":host{position:relative;display:inline-flex;max-height:100%;pointer-
|
|
|
759
762
|
return this.updateZoomAndPan(1);
|
|
760
763
|
}
|
|
761
764
|
render() {
|
|
762
|
-
return qe(
|
|
765
|
+
return qe(jt, { key: "d22f862837d687c629200746f735f8d22b8e7932", class: "file-viewer-image", onDblClick: this.onDblClick, onWheel: this.onWheel, onPointerDown: this.onPointerDown, onPointerMove: this.onPointerMove, onPointerUp: this.onPointerUp, onTouchStart: this.onTouchStart, onTouchMove: this.onTouchMove, onTouchEnd: this.onTouchEnd }, this.error && qe("swirl-inline-error", { key: "9f1f719e8e7ae5c7b1e4c42f751e0e4a106ef383", class: "file-viewer-image__error", message: this.errorMessage }), qe("img", { key: "085da1bf26b898da40e263c29ea632795dd9e80b", alt: this.description, class: "file-viewer-image__image", onError: this.onError, onLoad: this.onLoad, ref: (Le) => this.imageEl = Le, src: this.file }), this.loading && qe("div", { key: "a884fc390afabfe9469f82e92e254f740547c270", class: "file-viewer-image__spinner" }, qe("swirl-spinner", { key: "54a9087520aafd89dab5ac75488b51f4f0d01f89" })));
|
|
763
766
|
}
|
|
764
767
|
get el() {
|
|
765
768
|
return Qt(this);
|
|
@@ -770,13 +773,14 @@ const da = ":host{position:relative;display:inline-flex;max-height:100%;pointer-
|
|
|
770
773
|
};
|
|
771
774
|
}
|
|
772
775
|
};
|
|
773
|
-
|
|
774
|
-
var
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
776
|
+
va.style = ma;
|
|
777
|
+
var Or = { exports: {} }, zn = { exports: {} };
|
|
778
|
+
/*!
|
|
779
|
+
* DOMMatrix v1.0.3 (https://thednp.github.io/dommatrix/)
|
|
780
|
+
* Copyright 2022 © thednp
|
|
781
|
+
* Licensed under MIT (https://github.com/thednp/DOMMatrix/blob/master/LICENSE)
|
|
782
|
+
*/
|
|
783
|
+
(function(Le, Ee) {
|
|
780
784
|
(function(Ie, Te) {
|
|
781
785
|
Le.exports = Te();
|
|
782
786
|
})(vt, function() {
|
|
@@ -1064,7 +1068,9 @@ var fa = cr(function(Le, Ee) {
|
|
|
1064
1068
|
var y = "1.0.3", D = y;
|
|
1065
1069
|
return Object.assign(P, { Version: D }), P;
|
|
1066
1070
|
});
|
|
1067
|
-
})
|
|
1071
|
+
})(zn);
|
|
1072
|
+
var Kr = { exports: {} };
|
|
1073
|
+
(function(Le, Ee) {
|
|
1068
1074
|
(function(Ie, Te) {
|
|
1069
1075
|
Te(Ee);
|
|
1070
1076
|
})(vt, function(Ie) {
|
|
@@ -1386,10 +1392,10 @@ var fa = cr(function(Le, Ee) {
|
|
|
1386
1392
|
}, e;
|
|
1387
1393
|
}(), ze = {
|
|
1388
1394
|
next: function() {
|
|
1389
|
-
return Pe(this) ? this._asyncIteratorImpl.next() : m(
|
|
1395
|
+
return Pe(this) ? this._asyncIteratorImpl.next() : m(H("next"));
|
|
1390
1396
|
},
|
|
1391
1397
|
return: function(e) {
|
|
1392
|
-
return Pe(this) ? this._asyncIteratorImpl.return(e) : m(
|
|
1398
|
+
return Pe(this) ? this._asyncIteratorImpl.return(e) : m(H("return"));
|
|
1393
1399
|
}
|
|
1394
1400
|
};
|
|
1395
1401
|
Ce !== void 0 && Object.setPrototypeOf(ze, Ce);
|
|
@@ -1406,7 +1412,7 @@ var fa = cr(function(Le, Ee) {
|
|
|
1406
1412
|
return !1;
|
|
1407
1413
|
}
|
|
1408
1414
|
}
|
|
1409
|
-
function
|
|
1415
|
+
function H(e) {
|
|
1410
1416
|
return new TypeError("ReadableStreamAsyncIterator." + e + " can only be used on a ReadableSteamAsyncIterator");
|
|
1411
1417
|
}
|
|
1412
1418
|
var Q = Number.isNaN || function(e) {
|
|
@@ -1415,7 +1421,7 @@ var fa = cr(function(Le, Ee) {
|
|
|
1415
1421
|
function G(e) {
|
|
1416
1422
|
return e.slice();
|
|
1417
1423
|
}
|
|
1418
|
-
function
|
|
1424
|
+
function V(e, i, x, K, pe) {
|
|
1419
1425
|
new Uint8Array(e).set(new Uint8Array(x, K, pe), i);
|
|
1420
1426
|
}
|
|
1421
1427
|
function oe(e) {
|
|
@@ -1425,7 +1431,7 @@ var fa = cr(function(Le, Ee) {
|
|
|
1425
1431
|
if (e.slice)
|
|
1426
1432
|
return e.slice(i, x);
|
|
1427
1433
|
var K = x - i, pe = new ArrayBuffer(K);
|
|
1428
|
-
return
|
|
1434
|
+
return V(pe, 0, e, i, K), pe;
|
|
1429
1435
|
}
|
|
1430
1436
|
function ke(e) {
|
|
1431
1437
|
return !(typeof e != "number" || Q(e) || e < 0);
|
|
@@ -1456,20 +1462,20 @@ var fa = cr(function(Le, Ee) {
|
|
|
1456
1462
|
}
|
|
1457
1463
|
return Object.defineProperty(e.prototype, "view", {
|
|
1458
1464
|
get: function() {
|
|
1459
|
-
if (!
|
|
1465
|
+
if (!Ve(this))
|
|
1460
1466
|
throw Mr("view");
|
|
1461
1467
|
return this._view;
|
|
1462
1468
|
},
|
|
1463
1469
|
enumerable: !1,
|
|
1464
1470
|
configurable: !0
|
|
1465
1471
|
}), e.prototype.respond = function(i) {
|
|
1466
|
-
if (!
|
|
1472
|
+
if (!Ve(this))
|
|
1467
1473
|
throw Mr("respond");
|
|
1468
1474
|
if (S(i, 1, "respond"), i = _(i, "First parameter"), this._associatedReadableByteStreamController === void 0)
|
|
1469
1475
|
throw new TypeError("This BYOB request has been invalidated");
|
|
1470
1476
|
At(this._associatedReadableByteStreamController, i);
|
|
1471
1477
|
}, e.prototype.respondWithNewView = function(i) {
|
|
1472
|
-
if (!
|
|
1478
|
+
if (!Ve(this))
|
|
1473
1479
|
throw Mr("respondWithNewView");
|
|
1474
1480
|
if (S(i, 1, "respondWithNewView"), !ArrayBuffer.isView(i))
|
|
1475
1481
|
throw new TypeError("You can only respond with array buffer views");
|
|
@@ -1542,7 +1548,7 @@ var fa = cr(function(Le, Ee) {
|
|
|
1542
1548
|
var x = this._controlledReadableByteStream;
|
|
1543
1549
|
if (this._queueTotalSize > 0) {
|
|
1544
1550
|
var K = this._queue.shift();
|
|
1545
|
-
this._queueTotalSize -= K.byteLength,
|
|
1551
|
+
this._queueTotalSize -= K.byteLength, He(this);
|
|
1546
1552
|
var pe = new Uint8Array(K.buffer, K.byteOffset, K.byteLength);
|
|
1547
1553
|
i._chunkSteps(pe);
|
|
1548
1554
|
return;
|
|
@@ -1584,7 +1590,7 @@ var fa = cr(function(Le, Ee) {
|
|
|
1584
1590
|
function We(e) {
|
|
1585
1591
|
return !v(e) || !Object.prototype.hasOwnProperty.call(e, "_controlledReadableByteStream") ? !1 : e instanceof be;
|
|
1586
1592
|
}
|
|
1587
|
-
function
|
|
1593
|
+
function Ve(e) {
|
|
1588
1594
|
return !v(e) || !Object.prototype.hasOwnProperty.call(e, "_associatedReadableByteStreamController") ? !1 : e instanceof ae;
|
|
1589
1595
|
}
|
|
1590
1596
|
function me(e) {
|
|
@@ -1610,7 +1616,7 @@ var fa = cr(function(Le, Ee) {
|
|
|
1610
1616
|
var x = !1;
|
|
1611
1617
|
e._state === "closed" && (x = !0);
|
|
1612
1618
|
var K = Ne(i);
|
|
1613
|
-
i.readerType === "default" ? J(e, K, x) :
|
|
1619
|
+
i.readerType === "default" ? J(e, K, x) : Gn(e, K, x);
|
|
1614
1620
|
}
|
|
1615
1621
|
function Ne(e) {
|
|
1616
1622
|
var i = e.bytesFilled, x = e.elementSize;
|
|
@@ -1624,14 +1630,14 @@ var fa = cr(function(Le, Ee) {
|
|
|
1624
1630
|
Me > K && (Ue = Me - i.bytesFilled, Ke = !0);
|
|
1625
1631
|
for (var Je = e._queue; Ue > 0; ) {
|
|
1626
1632
|
var et = Je.peek(), rt = Math.min(Ue, et.byteLength), dt = i.byteOffset + i.bytesFilled;
|
|
1627
|
-
|
|
1633
|
+
V(i.buffer, dt, et.buffer, et.byteOffset, rt), et.byteLength === rt ? Je.shift() : (et.byteOffset += rt, et.byteLength -= rt), e._queueTotalSize -= rt, Xe(e, rt, i), Ue -= rt;
|
|
1628
1634
|
}
|
|
1629
1635
|
return Ke;
|
|
1630
1636
|
}
|
|
1631
1637
|
function Xe(e, i, x) {
|
|
1632
1638
|
x.bytesFilled += i;
|
|
1633
1639
|
}
|
|
1634
|
-
function
|
|
1640
|
+
function He(e) {
|
|
1635
1641
|
e._queueTotalSize === 0 && e._closeRequested ? (st(e), sr(e._controlledReadableByteStream)) : me(e);
|
|
1636
1642
|
}
|
|
1637
1643
|
function je(e) {
|
|
@@ -1670,7 +1676,7 @@ var fa = cr(function(Le, Ee) {
|
|
|
1670
1676
|
if (e._queueTotalSize > 0) {
|
|
1671
1677
|
if (Ge(e, Ue)) {
|
|
1672
1678
|
var Je = Ne(Ue);
|
|
1673
|
-
|
|
1679
|
+
He(e), x._chunkSteps(Je);
|
|
1674
1680
|
return;
|
|
1675
1681
|
}
|
|
1676
1682
|
if (e._closeRequested) {
|
|
@@ -1767,7 +1773,7 @@ var fa = cr(function(Le, Ee) {
|
|
|
1767
1773
|
function xt(e) {
|
|
1768
1774
|
if (e._byobRequest === null && e._pendingPullIntos.length > 0) {
|
|
1769
1775
|
var i = e._pendingPullIntos.peek(), x = new Uint8Array(i.buffer, i.byteOffset + i.bytesFilled, i.byteLength - i.bytesFilled), K = Object.create(ae.prototype);
|
|
1770
|
-
|
|
1776
|
+
$n(K, e, x), e._byobRequest = K;
|
|
1771
1777
|
}
|
|
1772
1778
|
return e._byobRequest;
|
|
1773
1779
|
}
|
|
@@ -1813,7 +1819,7 @@ var fa = cr(function(Le, Ee) {
|
|
|
1813
1819
|
pt(i, Ke);
|
|
1814
1820
|
});
|
|
1815
1821
|
}
|
|
1816
|
-
function
|
|
1822
|
+
function jn(e, i, x) {
|
|
1817
1823
|
var K = Object.create(be.prototype), pe = function() {
|
|
1818
1824
|
}, Ae = function() {
|
|
1819
1825
|
return P(void 0);
|
|
@@ -1832,7 +1838,7 @@ var fa = cr(function(Le, Ee) {
|
|
|
1832
1838
|
throw new TypeError("autoAllocateChunkSize must be greater than 0");
|
|
1833
1839
|
Qr(e, K, pe, Ae, Me, x, Ue);
|
|
1834
1840
|
}
|
|
1835
|
-
function
|
|
1841
|
+
function $n(e, i, x) {
|
|
1836
1842
|
e._associatedReadableByteStreamController = i, e._view = x;
|
|
1837
1843
|
}
|
|
1838
1844
|
function Mr(e) {
|
|
@@ -1847,7 +1853,7 @@ var fa = cr(function(Le, Ee) {
|
|
|
1847
1853
|
function Zr(e, i) {
|
|
1848
1854
|
e._reader._readIntoRequests.push(i);
|
|
1849
1855
|
}
|
|
1850
|
-
function
|
|
1856
|
+
function Gn(e, i, x) {
|
|
1851
1857
|
var K = e._reader, pe = K._readIntoRequests.shift();
|
|
1852
1858
|
x ? pe._closeSteps(i) : pe._chunkSteps(i);
|
|
1853
1859
|
}
|
|
@@ -1868,15 +1874,15 @@ var fa = cr(function(Le, Ee) {
|
|
|
1868
1874
|
}
|
|
1869
1875
|
return Object.defineProperty(e.prototype, "closed", {
|
|
1870
1876
|
get: function() {
|
|
1871
|
-
return Nt(this) ? this._closedPromise : m(
|
|
1877
|
+
return Nt(this) ? this._closedPromise : m(cr("closed"));
|
|
1872
1878
|
},
|
|
1873
1879
|
enumerable: !1,
|
|
1874
1880
|
configurable: !0
|
|
1875
1881
|
}), e.prototype.cancel = function(i) {
|
|
1876
|
-
return i === void 0 && (i = void 0), Nt(this) ? this._ownerReadableStream === void 0 ? m(g("cancel")) : a(this, i) : m(
|
|
1882
|
+
return i === void 0 && (i = void 0), Nt(this) ? this._ownerReadableStream === void 0 ? m(g("cancel")) : a(this, i) : m(cr("cancel"));
|
|
1877
1883
|
}, e.prototype.read = function(i) {
|
|
1878
1884
|
if (!Nt(this))
|
|
1879
|
-
return m(
|
|
1885
|
+
return m(cr("read"));
|
|
1880
1886
|
if (!ArrayBuffer.isView(i))
|
|
1881
1887
|
return m(new TypeError("view must be an array buffer view"));
|
|
1882
1888
|
if (i.byteLength === 0)
|
|
@@ -1901,7 +1907,7 @@ var fa = cr(function(Le, Ee) {
|
|
|
1901
1907
|
return tn(this, i, Ae), pe;
|
|
1902
1908
|
}, e.prototype.releaseLock = function() {
|
|
1903
1909
|
if (!Nt(this))
|
|
1904
|
-
throw
|
|
1910
|
+
throw cr("releaseLock");
|
|
1905
1911
|
if (this._ownerReadableStream !== void 0) {
|
|
1906
1912
|
if (this._readIntoRequests.length > 0)
|
|
1907
1913
|
throw new TypeError("Tried to release a reader lock when that reader has pending read() calls un-settled");
|
|
@@ -1925,7 +1931,7 @@ var fa = cr(function(Le, Ee) {
|
|
|
1925
1931
|
var K = e._ownerReadableStream;
|
|
1926
1932
|
K._disturbed = !0, K._state === "errored" ? x._errorSteps(K._storedError) : ct(K._readableStreamController, i, x);
|
|
1927
1933
|
}
|
|
1928
|
-
function
|
|
1934
|
+
function cr(e) {
|
|
1929
1935
|
return new TypeError("ReadableStreamBYOBReader.prototype." + e + " can only be used on a ReadableStreamBYOBReader");
|
|
1930
1936
|
}
|
|
1931
1937
|
function er(e, i) {
|
|
@@ -1936,61 +1942,61 @@ var fa = cr(function(Le, Ee) {
|
|
|
1936
1942
|
throw new RangeError("Invalid highWaterMark");
|
|
1937
1943
|
return x;
|
|
1938
1944
|
}
|
|
1939
|
-
function
|
|
1945
|
+
function ur(e) {
|
|
1940
1946
|
var i = e.size;
|
|
1941
1947
|
return i || function() {
|
|
1942
1948
|
return 1;
|
|
1943
1949
|
};
|
|
1944
1950
|
}
|
|
1945
|
-
function
|
|
1951
|
+
function dr(e, i) {
|
|
1946
1952
|
ye(e, i);
|
|
1947
1953
|
var x = e == null ? void 0 : e.highWaterMark, K = e == null ? void 0 : e.size;
|
|
1948
1954
|
return {
|
|
1949
1955
|
highWaterMark: x === void 0 ? void 0 : j(x),
|
|
1950
|
-
size: K === void 0 ? void 0 :
|
|
1956
|
+
size: K === void 0 ? void 0 : Vn(K, i + " has member 'size' that")
|
|
1951
1957
|
};
|
|
1952
1958
|
}
|
|
1953
|
-
function
|
|
1959
|
+
function Vn(e, i) {
|
|
1954
1960
|
return Se(e, i), function(x) {
|
|
1955
1961
|
return j(e(x));
|
|
1956
1962
|
};
|
|
1957
1963
|
}
|
|
1958
|
-
function
|
|
1964
|
+
function Hn(e, i) {
|
|
1959
1965
|
ye(e, i);
|
|
1960
1966
|
var x = e == null ? void 0 : e.abort, K = e == null ? void 0 : e.close, pe = e == null ? void 0 : e.start, Ae = e == null ? void 0 : e.type, Me = e == null ? void 0 : e.write;
|
|
1961
1967
|
return {
|
|
1962
|
-
abort: x === void 0 ? void 0 :
|
|
1963
|
-
close: K === void 0 ? void 0 :
|
|
1964
|
-
start: pe === void 0 ? void 0 :
|
|
1965
|
-
write: Me === void 0 ? void 0 :
|
|
1968
|
+
abort: x === void 0 ? void 0 : Xn(x, e, i + " has member 'abort' that"),
|
|
1969
|
+
close: K === void 0 ? void 0 : Yn(K, e, i + " has member 'close' that"),
|
|
1970
|
+
start: pe === void 0 ? void 0 : qn(pe, e, i + " has member 'start' that"),
|
|
1971
|
+
write: Me === void 0 ? void 0 : Kn(Me, e, i + " has member 'write' that"),
|
|
1966
1972
|
type: Ae
|
|
1967
1973
|
};
|
|
1968
1974
|
}
|
|
1969
|
-
function
|
|
1975
|
+
function Xn(e, i, x) {
|
|
1970
1976
|
return Se(e, x), function(K) {
|
|
1971
1977
|
return p(e, i, [K]);
|
|
1972
1978
|
};
|
|
1973
1979
|
}
|
|
1974
|
-
function
|
|
1980
|
+
function Yn(e, i, x) {
|
|
1975
1981
|
return Se(e, x), function() {
|
|
1976
1982
|
return p(e, i, []);
|
|
1977
1983
|
};
|
|
1978
1984
|
}
|
|
1979
|
-
function
|
|
1985
|
+
function qn(e, i, x) {
|
|
1980
1986
|
return Se(e, x), function(K) {
|
|
1981
1987
|
return F(e, i, [K]);
|
|
1982
1988
|
};
|
|
1983
1989
|
}
|
|
1984
|
-
function
|
|
1990
|
+
function Kn(e, i, x) {
|
|
1985
1991
|
return Se(e, x), function(K, pe) {
|
|
1986
1992
|
return p(e, i, [K, pe]);
|
|
1987
1993
|
};
|
|
1988
1994
|
}
|
|
1989
1995
|
function rn(e, i) {
|
|
1990
|
-
if (
|
|
1996
|
+
if (!$t(e))
|
|
1991
1997
|
throw new TypeError(i + " is not a WritableStream.");
|
|
1992
1998
|
}
|
|
1993
|
-
function
|
|
1999
|
+
function Qn(e) {
|
|
1994
2000
|
if (typeof e != "object" || e === null)
|
|
1995
2001
|
return !1;
|
|
1996
2002
|
try {
|
|
@@ -1999,37 +2005,37 @@ var fa = cr(function(Le, Ee) {
|
|
|
1999
2005
|
return !1;
|
|
2000
2006
|
}
|
|
2001
2007
|
}
|
|
2002
|
-
var
|
|
2003
|
-
function
|
|
2004
|
-
if (
|
|
2008
|
+
var Jn = typeof AbortController == "function";
|
|
2009
|
+
function Zn() {
|
|
2010
|
+
if (Jn)
|
|
2005
2011
|
return new AbortController();
|
|
2006
2012
|
}
|
|
2007
2013
|
var tr = function() {
|
|
2008
2014
|
function e(i, x) {
|
|
2009
2015
|
i === void 0 && (i = {}), x === void 0 && (x = {}), i === void 0 ? i = null : C(i, "First parameter");
|
|
2010
|
-
var K =
|
|
2016
|
+
var K = dr(x, "Second parameter"), pe = Hn(i, "First parameter");
|
|
2011
2017
|
an(this);
|
|
2012
2018
|
var Ae = pe.type;
|
|
2013
2019
|
if (Ae !== void 0)
|
|
2014
2020
|
throw new RangeError("Invalid type is specified");
|
|
2015
|
-
var Me =
|
|
2016
|
-
|
|
2021
|
+
var Me = ur(K), Ue = er(K, 1);
|
|
2022
|
+
fi(this, pe, Ue, Me);
|
|
2017
2023
|
}
|
|
2018
2024
|
return Object.defineProperty(e.prototype, "locked", {
|
|
2019
2025
|
get: function() {
|
|
2020
|
-
if (
|
|
2021
|
-
throw
|
|
2022
|
-
return
|
|
2026
|
+
if (!$t(this))
|
|
2027
|
+
throw mr("locked");
|
|
2028
|
+
return Gt(this);
|
|
2023
2029
|
},
|
|
2024
2030
|
enumerable: !1,
|
|
2025
2031
|
configurable: !0
|
|
2026
2032
|
}), e.prototype.abort = function(i) {
|
|
2027
|
-
return i === void 0 && (i = void 0),
|
|
2033
|
+
return i === void 0 && (i = void 0), $t(this) ? Gt(this) ? m(new TypeError("Cannot abort a stream that already has a writer")) : hr(this, i) : m(mr("abort"));
|
|
2028
2034
|
}, e.prototype.close = function() {
|
|
2029
|
-
return
|
|
2035
|
+
return $t(this) ? Gt(this) ? m(new TypeError("Cannot close a stream that already has a writer")) : _t(this) ? m(new TypeError("Cannot close an already-closing stream")) : sn(this) : m(mr("close"));
|
|
2030
2036
|
}, e.prototype.getWriter = function() {
|
|
2031
|
-
if (
|
|
2032
|
-
throw
|
|
2037
|
+
if (!$t(this))
|
|
2038
|
+
throw mr("getWriter");
|
|
2033
2039
|
return nn(this);
|
|
2034
2040
|
}, e;
|
|
2035
2041
|
}();
|
|
@@ -2045,7 +2051,7 @@ var fa = cr(function(Le, Ee) {
|
|
|
2045
2051
|
function nn(e) {
|
|
2046
2052
|
return new rr(e);
|
|
2047
2053
|
}
|
|
2048
|
-
function
|
|
2054
|
+
function ei(e, i, x, K, pe, Ae) {
|
|
2049
2055
|
pe === void 0 && (pe = 1), Ae === void 0 && (Ae = function() {
|
|
2050
2056
|
return 1;
|
|
2051
2057
|
});
|
|
@@ -2057,13 +2063,13 @@ var fa = cr(function(Le, Ee) {
|
|
|
2057
2063
|
function an(e) {
|
|
2058
2064
|
e._state = "writable", e._storedError = void 0, e._writer = void 0, e._writableStreamController = void 0, e._writeRequests = new u(), e._inFlightWriteRequest = void 0, e._closeRequest = void 0, e._inFlightCloseRequest = void 0, e._pendingAbortRequest = void 0, e._backpressure = !1;
|
|
2059
2065
|
}
|
|
2060
|
-
function
|
|
2066
|
+
function $t(e) {
|
|
2061
2067
|
return !v(e) || !Object.prototype.hasOwnProperty.call(e, "_writableStreamController") ? !1 : e instanceof tr;
|
|
2062
2068
|
}
|
|
2063
|
-
function
|
|
2069
|
+
function Gt(e) {
|
|
2064
2070
|
return e._writer !== void 0;
|
|
2065
2071
|
}
|
|
2066
|
-
function
|
|
2072
|
+
function hr(e, i) {
|
|
2067
2073
|
var x;
|
|
2068
2074
|
if (e._state === "closed" || e._state === "errored")
|
|
2069
2075
|
return P(void 0);
|
|
@@ -2097,9 +2103,9 @@ var fa = cr(function(Le, Ee) {
|
|
|
2097
2103
|
};
|
|
2098
2104
|
e._closeRequest = Me;
|
|
2099
2105
|
}), K = e._writer;
|
|
2100
|
-
return K !== void 0 && e._backpressure && i === "writable" && Gr(K),
|
|
2106
|
+
return K !== void 0 && e._backpressure && i === "writable" && Gr(K), pi(e._writableStreamController), x;
|
|
2101
2107
|
}
|
|
2102
|
-
function
|
|
2108
|
+
function ti(e) {
|
|
2103
2109
|
var i = O(function(x, K) {
|
|
2104
2110
|
var pe = {
|
|
2105
2111
|
_resolve: x,
|
|
@@ -2121,7 +2127,7 @@ var fa = cr(function(Le, Ee) {
|
|
|
2121
2127
|
var x = e._writableStreamController;
|
|
2122
2128
|
e._state = "erroring", e._storedError = i;
|
|
2123
2129
|
var K = e._writer;
|
|
2124
|
-
K !== void 0 && ln(K, i), !
|
|
2130
|
+
K !== void 0 && ln(K, i), !si(e) && x._started && Lr(e);
|
|
2125
2131
|
}
|
|
2126
2132
|
function Lr(e) {
|
|
2127
2133
|
e._state = "errored", e._writableStreamController[z]();
|
|
@@ -2129,70 +2135,70 @@ var fa = cr(function(Le, Ee) {
|
|
|
2129
2135
|
if (e._writeRequests.forEach(function(pe) {
|
|
2130
2136
|
pe._reject(i);
|
|
2131
2137
|
}), e._writeRequests = new u(), e._pendingAbortRequest === void 0) {
|
|
2132
|
-
|
|
2138
|
+
fr(e);
|
|
2133
2139
|
return;
|
|
2134
2140
|
}
|
|
2135
2141
|
var x = e._pendingAbortRequest;
|
|
2136
2142
|
if (e._pendingAbortRequest = void 0, x._wasAlreadyErroring) {
|
|
2137
|
-
x._reject(i),
|
|
2143
|
+
x._reject(i), fr(e);
|
|
2138
2144
|
return;
|
|
2139
2145
|
}
|
|
2140
2146
|
var K = e._writableStreamController[Z](x._reason);
|
|
2141
2147
|
D(K, function() {
|
|
2142
|
-
x._resolve(),
|
|
2148
|
+
x._resolve(), fr(e);
|
|
2143
2149
|
}, function(pe) {
|
|
2144
|
-
x._reject(pe),
|
|
2150
|
+
x._reject(pe), fr(e);
|
|
2145
2151
|
});
|
|
2146
2152
|
}
|
|
2147
|
-
function
|
|
2153
|
+
function ri(e) {
|
|
2148
2154
|
e._inFlightWriteRequest._resolve(void 0), e._inFlightWriteRequest = void 0;
|
|
2149
2155
|
}
|
|
2150
|
-
function
|
|
2156
|
+
function ni(e, i) {
|
|
2151
2157
|
e._inFlightWriteRequest._reject(i), e._inFlightWriteRequest = void 0, Ir(e, i);
|
|
2152
2158
|
}
|
|
2153
|
-
function
|
|
2159
|
+
function ii(e) {
|
|
2154
2160
|
e._inFlightCloseRequest._resolve(void 0), e._inFlightCloseRequest = void 0;
|
|
2155
2161
|
var i = e._state;
|
|
2156
2162
|
i === "erroring" && (e._storedError = void 0, e._pendingAbortRequest !== void 0 && (e._pendingAbortRequest._resolve(), e._pendingAbortRequest = void 0)), e._state = "closed";
|
|
2157
2163
|
var x = e._writer;
|
|
2158
2164
|
x !== void 0 && mn(x);
|
|
2159
2165
|
}
|
|
2160
|
-
function
|
|
2166
|
+
function ai(e, i) {
|
|
2161
2167
|
e._inFlightCloseRequest._reject(i), e._inFlightCloseRequest = void 0, e._pendingAbortRequest !== void 0 && (e._pendingAbortRequest._reject(i), e._pendingAbortRequest = void 0), Ir(e, i);
|
|
2162
2168
|
}
|
|
2163
2169
|
function _t(e) {
|
|
2164
2170
|
return !(e._closeRequest === void 0 && e._inFlightCloseRequest === void 0);
|
|
2165
2171
|
}
|
|
2166
|
-
function
|
|
2172
|
+
function si(e) {
|
|
2167
2173
|
return !(e._inFlightWriteRequest === void 0 && e._inFlightCloseRequest === void 0);
|
|
2168
2174
|
}
|
|
2169
|
-
function
|
|
2175
|
+
function oi(e) {
|
|
2170
2176
|
e._inFlightCloseRequest = e._closeRequest, e._closeRequest = void 0;
|
|
2171
2177
|
}
|
|
2172
|
-
function
|
|
2178
|
+
function li(e) {
|
|
2173
2179
|
e._inFlightWriteRequest = e._writeRequests.shift();
|
|
2174
2180
|
}
|
|
2175
|
-
function
|
|
2181
|
+
function fr(e) {
|
|
2176
2182
|
e._closeRequest !== void 0 && (e._closeRequest._reject(e._storedError), e._closeRequest = void 0);
|
|
2177
2183
|
var i = e._writer;
|
|
2178
2184
|
i !== void 0 && jr(i, e._storedError);
|
|
2179
2185
|
}
|
|
2180
2186
|
function Nr(e, i) {
|
|
2181
2187
|
var x = e._writer;
|
|
2182
|
-
x !== void 0 && i !== e._backpressure && (i ?
|
|
2188
|
+
x !== void 0 && i !== e._backpressure && (i ? Ai(x) : Gr(x)), e._backpressure = i;
|
|
2183
2189
|
}
|
|
2184
2190
|
var rr = function() {
|
|
2185
2191
|
function e(i) {
|
|
2186
|
-
if (S(i, 1, "WritableStreamDefaultWriter"), rn(i, "First parameter"),
|
|
2192
|
+
if (S(i, 1, "WritableStreamDefaultWriter"), rn(i, "First parameter"), Gt(i))
|
|
2187
2193
|
throw new TypeError("This stream has already been locked for exclusive writing by another writer");
|
|
2188
2194
|
this._ownerWritableStream = i, i._writer = this;
|
|
2189
2195
|
var x = i._state;
|
|
2190
2196
|
if (x === "writable")
|
|
2191
|
-
!_t(i) && i._backpressure ?
|
|
2197
|
+
!_t(i) && i._backpressure ? br(this) : vn(this), vr(this);
|
|
2192
2198
|
else if (x === "erroring")
|
|
2193
|
-
$r(this, i._storedError),
|
|
2199
|
+
$r(this, i._storedError), vr(this);
|
|
2194
2200
|
else if (x === "closed")
|
|
2195
|
-
vn(this),
|
|
2201
|
+
vn(this), yi(this);
|
|
2196
2202
|
else {
|
|
2197
2203
|
var K = i._storedError;
|
|
2198
2204
|
$r(this, K), gn(this, K);
|
|
@@ -2210,7 +2216,7 @@ var fa = cr(function(Le, Ee) {
|
|
|
2210
2216
|
throw Wt("desiredSize");
|
|
2211
2217
|
if (this._ownerWritableStream === void 0)
|
|
2212
2218
|
throw nr("desiredSize");
|
|
2213
|
-
return
|
|
2219
|
+
return hi(this);
|
|
2214
2220
|
},
|
|
2215
2221
|
enumerable: !1,
|
|
2216
2222
|
configurable: !0
|
|
@@ -2221,7 +2227,7 @@ var fa = cr(function(Le, Ee) {
|
|
|
2221
2227
|
enumerable: !1,
|
|
2222
2228
|
configurable: !0
|
|
2223
2229
|
}), e.prototype.abort = function(i) {
|
|
2224
|
-
return i === void 0 && (i = void 0), Bt(this) ? this._ownerWritableStream === void 0 ? m(nr("abort")) :
|
|
2230
|
+
return i === void 0 && (i = void 0), Bt(this) ? this._ownerWritableStream === void 0 ? m(nr("abort")) : ci(this, i) : m(Wt("abort"));
|
|
2225
2231
|
}, e.prototype.close = function() {
|
|
2226
2232
|
if (!Bt(this))
|
|
2227
2233
|
return m(Wt("close"));
|
|
@@ -2251,34 +2257,34 @@ var fa = cr(function(Le, Ee) {
|
|
|
2251
2257
|
function Bt(e) {
|
|
2252
2258
|
return !v(e) || !Object.prototype.hasOwnProperty.call(e, "_ownerWritableStream") ? !1 : e instanceof rr;
|
|
2253
2259
|
}
|
|
2254
|
-
function
|
|
2260
|
+
function ci(e, i) {
|
|
2255
2261
|
var x = e._ownerWritableStream;
|
|
2256
|
-
return
|
|
2262
|
+
return hr(x, i);
|
|
2257
2263
|
}
|
|
2258
2264
|
function on(e) {
|
|
2259
2265
|
var i = e._ownerWritableStream;
|
|
2260
2266
|
return sn(i);
|
|
2261
2267
|
}
|
|
2262
|
-
function
|
|
2268
|
+
function ui(e) {
|
|
2263
2269
|
var i = e._ownerWritableStream, x = i._state;
|
|
2264
2270
|
return _t(i) || x === "closed" ? P(void 0) : x === "errored" ? m(i._storedError) : on(e);
|
|
2265
2271
|
}
|
|
2266
|
-
function
|
|
2267
|
-
e._closedPromiseState === "pending" ? jr(e, i) :
|
|
2272
|
+
function di(e, i) {
|
|
2273
|
+
e._closedPromiseState === "pending" ? jr(e, i) : Si(e, i);
|
|
2268
2274
|
}
|
|
2269
2275
|
function ln(e, i) {
|
|
2270
|
-
e._readyPromiseState === "pending" ? bn(e, i) :
|
|
2276
|
+
e._readyPromiseState === "pending" ? bn(e, i) : wi(e, i);
|
|
2271
2277
|
}
|
|
2272
|
-
function
|
|
2278
|
+
function hi(e) {
|
|
2273
2279
|
var i = e._ownerWritableStream, x = i._state;
|
|
2274
2280
|
return x === "errored" || x === "erroring" ? null : x === "closed" ? 0 : fn(i._writableStreamController);
|
|
2275
2281
|
}
|
|
2276
2282
|
function cn(e) {
|
|
2277
2283
|
var i = e._ownerWritableStream, x = new TypeError("Writer was released and can no longer be used to monitor the stream's closedness");
|
|
2278
|
-
ln(e, x),
|
|
2284
|
+
ln(e, x), di(e, x), i._writer = void 0, e._ownerWritableStream = void 0;
|
|
2279
2285
|
}
|
|
2280
2286
|
function un(e, i) {
|
|
2281
|
-
var x = e._ownerWritableStream, K = x._writableStreamController, pe =
|
|
2287
|
+
var x = e._ownerWritableStream, K = x._writableStreamController, pe = gi(K, i);
|
|
2282
2288
|
if (x !== e._ownerWritableStream)
|
|
2283
2289
|
return m(nr("write to"));
|
|
2284
2290
|
var Ae = x._state;
|
|
@@ -2288,8 +2294,8 @@ var fa = cr(function(Le, Ee) {
|
|
|
2288
2294
|
return m(new TypeError("The stream is closing or closed and cannot be written to"));
|
|
2289
2295
|
if (Ae === "erroring")
|
|
2290
2296
|
return m(x._storedError);
|
|
2291
|
-
var Me =
|
|
2292
|
-
return
|
|
2297
|
+
var Me = ti(x);
|
|
2298
|
+
return mi(K, i, pe), Me;
|
|
2293
2299
|
}
|
|
2294
2300
|
var dn = {}, Vt = function() {
|
|
2295
2301
|
function e() {
|
|
@@ -2320,7 +2326,7 @@ var fa = cr(function(Le, Ee) {
|
|
|
2320
2326
|
x === "writable" && pn(this, i);
|
|
2321
2327
|
}, e.prototype[Z] = function(i) {
|
|
2322
2328
|
var x = this._abortAlgorithm(i);
|
|
2323
|
-
return
|
|
2329
|
+
return pr(this), x;
|
|
2324
2330
|
}, e.prototype[z] = function() {
|
|
2325
2331
|
te(this);
|
|
2326
2332
|
}, e;
|
|
@@ -2337,17 +2343,17 @@ var fa = cr(function(Le, Ee) {
|
|
|
2337
2343
|
return !v(e) || !Object.prototype.hasOwnProperty.call(e, "_controlledWritableStream") ? !1 : e instanceof Vt;
|
|
2338
2344
|
}
|
|
2339
2345
|
function hn(e, i, x, K, pe, Ae, Me, Ue) {
|
|
2340
|
-
i._controlledWritableStream = e, e._writableStreamController = i, i._queue = void 0, i._queueTotalSize = void 0, te(i), i._abortReason = void 0, i._abortController =
|
|
2346
|
+
i._controlledWritableStream = e, e._writableStreamController = i, i._queue = void 0, i._queueTotalSize = void 0, te(i), i._abortReason = void 0, i._abortController = Zn(), i._started = !1, i._strategySizeAlgorithm = Ue, i._strategyHWM = Me, i._writeAlgorithm = K, i._closeAlgorithm = pe, i._abortAlgorithm = Ae;
|
|
2341
2347
|
var Ke = Ur(i);
|
|
2342
2348
|
Nr(e, Ke);
|
|
2343
2349
|
var Je = x(), et = P(Je);
|
|
2344
2350
|
D(et, function() {
|
|
2345
|
-
i._started = !0,
|
|
2351
|
+
i._started = !0, gr(i);
|
|
2346
2352
|
}, function(rt) {
|
|
2347
2353
|
i._started = !0, Ir(e, rt);
|
|
2348
2354
|
});
|
|
2349
2355
|
}
|
|
2350
|
-
function
|
|
2356
|
+
function fi(e, i, x, K) {
|
|
2351
2357
|
var pe = Object.create(Vt.prototype), Ae = function() {
|
|
2352
2358
|
}, Me = function() {
|
|
2353
2359
|
return P(void 0);
|
|
@@ -2366,13 +2372,13 @@ var fa = cr(function(Le, Ee) {
|
|
|
2366
2372
|
return i.abort(Je);
|
|
2367
2373
|
}), hn(e, pe, Ae, Me, Ue, Ke, x, K);
|
|
2368
2374
|
}
|
|
2369
|
-
function
|
|
2375
|
+
function pr(e) {
|
|
2370
2376
|
e._writeAlgorithm = void 0, e._closeAlgorithm = void 0, e._abortAlgorithm = void 0, e._strategySizeAlgorithm = void 0;
|
|
2371
2377
|
}
|
|
2372
|
-
function
|
|
2373
|
-
Be(e, dn, 0),
|
|
2378
|
+
function pi(e) {
|
|
2379
|
+
Be(e, dn, 0), gr(e);
|
|
2374
2380
|
}
|
|
2375
|
-
function
|
|
2381
|
+
function gi(e, i) {
|
|
2376
2382
|
try {
|
|
2377
2383
|
return e._strategySizeAlgorithm(i);
|
|
2378
2384
|
} catch (x) {
|
|
@@ -2382,7 +2388,7 @@ var fa = cr(function(Le, Ee) {
|
|
|
2382
2388
|
function fn(e) {
|
|
2383
2389
|
return e._strategyHWM - e._queueTotalSize;
|
|
2384
2390
|
}
|
|
2385
|
-
function
|
|
2391
|
+
function mi(e, i, x) {
|
|
2386
2392
|
try {
|
|
2387
2393
|
Be(e, i, x);
|
|
2388
2394
|
} catch (Ae) {
|
|
@@ -2394,9 +2400,9 @@ var fa = cr(function(Le, Ee) {
|
|
|
2394
2400
|
var pe = Ur(e);
|
|
2395
2401
|
Nr(K, pe);
|
|
2396
2402
|
}
|
|
2397
|
-
|
|
2403
|
+
gr(e);
|
|
2398
2404
|
}
|
|
2399
|
-
function
|
|
2405
|
+
function gr(e) {
|
|
2400
2406
|
var i = e._controlledWritableStream;
|
|
2401
2407
|
if (!!e._started && i._inFlightWriteRequest === void 0) {
|
|
2402
2408
|
var x = i._state;
|
|
@@ -2406,37 +2412,37 @@ var fa = cr(function(Le, Ee) {
|
|
|
2406
2412
|
}
|
|
2407
2413
|
if (e._queue.length !== 0) {
|
|
2408
2414
|
var K = ge(e);
|
|
2409
|
-
K === dn ?
|
|
2415
|
+
K === dn ? vi(e) : bi(e, K);
|
|
2410
2416
|
}
|
|
2411
2417
|
}
|
|
2412
2418
|
}
|
|
2413
2419
|
function Wr(e, i) {
|
|
2414
2420
|
e._controlledWritableStream._state === "writable" && pn(e, i);
|
|
2415
2421
|
}
|
|
2416
|
-
function
|
|
2422
|
+
function vi(e) {
|
|
2417
2423
|
var i = e._controlledWritableStream;
|
|
2418
|
-
|
|
2424
|
+
oi(i), Re(e);
|
|
2419
2425
|
var x = e._closeAlgorithm();
|
|
2420
|
-
|
|
2421
|
-
|
|
2426
|
+
pr(e), D(x, function() {
|
|
2427
|
+
ii(i);
|
|
2422
2428
|
}, function(K) {
|
|
2423
|
-
|
|
2429
|
+
ai(i, K);
|
|
2424
2430
|
});
|
|
2425
2431
|
}
|
|
2426
|
-
function
|
|
2432
|
+
function bi(e, i) {
|
|
2427
2433
|
var x = e._controlledWritableStream;
|
|
2428
|
-
|
|
2434
|
+
li(x);
|
|
2429
2435
|
var K = e._writeAlgorithm(i);
|
|
2430
2436
|
D(K, function() {
|
|
2431
|
-
|
|
2437
|
+
ri(x);
|
|
2432
2438
|
var pe = x._state;
|
|
2433
2439
|
if (Re(e), !_t(x) && pe === "writable") {
|
|
2434
2440
|
var Ae = Ur(e);
|
|
2435
2441
|
Nr(x, Ae);
|
|
2436
2442
|
}
|
|
2437
|
-
|
|
2443
|
+
gr(e);
|
|
2438
2444
|
}, function(pe) {
|
|
2439
|
-
x._state === "writable" &&
|
|
2445
|
+
x._state === "writable" && pr(e), ni(x, pe);
|
|
2440
2446
|
});
|
|
2441
2447
|
}
|
|
2442
2448
|
function Ur(e) {
|
|
@@ -2445,9 +2451,9 @@ var fa = cr(function(Le, Ee) {
|
|
|
2445
2451
|
}
|
|
2446
2452
|
function pn(e, i) {
|
|
2447
2453
|
var x = e._controlledWritableStream;
|
|
2448
|
-
|
|
2454
|
+
pr(e), Dr(x, i);
|
|
2449
2455
|
}
|
|
2450
|
-
function
|
|
2456
|
+
function mr(e) {
|
|
2451
2457
|
return new TypeError("WritableStream.prototype." + e + " can only be used on a WritableStream");
|
|
2452
2458
|
}
|
|
2453
2459
|
function zr(e) {
|
|
@@ -2459,51 +2465,51 @@ var fa = cr(function(Le, Ee) {
|
|
|
2459
2465
|
function nr(e) {
|
|
2460
2466
|
return new TypeError("Cannot " + e + " a stream using a released writer");
|
|
2461
2467
|
}
|
|
2462
|
-
function
|
|
2468
|
+
function vr(e) {
|
|
2463
2469
|
e._closedPromise = O(function(i, x) {
|
|
2464
2470
|
e._closedPromise_resolve = i, e._closedPromise_reject = x, e._closedPromiseState = "pending";
|
|
2465
2471
|
});
|
|
2466
2472
|
}
|
|
2467
2473
|
function gn(e, i) {
|
|
2468
|
-
|
|
2474
|
+
vr(e), jr(e, i);
|
|
2469
2475
|
}
|
|
2470
|
-
function
|
|
2471
|
-
|
|
2476
|
+
function yi(e) {
|
|
2477
|
+
vr(e), mn(e);
|
|
2472
2478
|
}
|
|
2473
2479
|
function jr(e, i) {
|
|
2474
2480
|
e._closedPromise_reject !== void 0 && (h(e._closedPromise), e._closedPromise_reject(i), e._closedPromise_resolve = void 0, e._closedPromise_reject = void 0, e._closedPromiseState = "rejected");
|
|
2475
2481
|
}
|
|
2476
|
-
function
|
|
2482
|
+
function Si(e, i) {
|
|
2477
2483
|
gn(e, i);
|
|
2478
2484
|
}
|
|
2479
2485
|
function mn(e) {
|
|
2480
2486
|
e._closedPromise_resolve !== void 0 && (e._closedPromise_resolve(void 0), e._closedPromise_resolve = void 0, e._closedPromise_reject = void 0, e._closedPromiseState = "resolved");
|
|
2481
2487
|
}
|
|
2482
|
-
function
|
|
2488
|
+
function br(e) {
|
|
2483
2489
|
e._readyPromise = O(function(i, x) {
|
|
2484
2490
|
e._readyPromise_resolve = i, e._readyPromise_reject = x;
|
|
2485
2491
|
}), e._readyPromiseState = "pending";
|
|
2486
2492
|
}
|
|
2487
2493
|
function $r(e, i) {
|
|
2488
|
-
|
|
2494
|
+
br(e), bn(e, i);
|
|
2489
2495
|
}
|
|
2490
2496
|
function vn(e) {
|
|
2491
|
-
|
|
2497
|
+
br(e), Gr(e);
|
|
2492
2498
|
}
|
|
2493
2499
|
function bn(e, i) {
|
|
2494
2500
|
e._readyPromise_reject !== void 0 && (h(e._readyPromise), e._readyPromise_reject(i), e._readyPromise_resolve = void 0, e._readyPromise_reject = void 0, e._readyPromiseState = "rejected");
|
|
2495
2501
|
}
|
|
2496
|
-
function
|
|
2497
|
-
|
|
2502
|
+
function Ai(e) {
|
|
2503
|
+
br(e);
|
|
2498
2504
|
}
|
|
2499
|
-
function
|
|
2505
|
+
function wi(e, i) {
|
|
2500
2506
|
$r(e, i);
|
|
2501
2507
|
}
|
|
2502
2508
|
function Gr(e) {
|
|
2503
2509
|
e._readyPromise_resolve !== void 0 && (e._readyPromise_resolve(void 0), e._readyPromise_resolve = void 0, e._readyPromise_reject = void 0, e._readyPromiseState = "fulfilled");
|
|
2504
2510
|
}
|
|
2505
2511
|
var yn = typeof DOMException < "u" ? DOMException : void 0;
|
|
2506
|
-
function
|
|
2512
|
+
function _i(e) {
|
|
2507
2513
|
if (!(typeof e == "function" || typeof e == "object"))
|
|
2508
2514
|
return !1;
|
|
2509
2515
|
try {
|
|
@@ -2512,13 +2518,13 @@ var fa = cr(function(Le, Ee) {
|
|
|
2512
2518
|
return !1;
|
|
2513
2519
|
}
|
|
2514
2520
|
}
|
|
2515
|
-
function
|
|
2521
|
+
function Ei() {
|
|
2516
2522
|
var e = function(x, K) {
|
|
2517
2523
|
this.message = x || "", this.name = K || "Error", Error.captureStackTrace && Error.captureStackTrace(this, this.constructor);
|
|
2518
2524
|
};
|
|
2519
2525
|
return e.prototype = Object.create(Error.prototype), Object.defineProperty(e.prototype, "constructor", { value: e, writable: !0, configurable: !0 }), e;
|
|
2520
2526
|
}
|
|
2521
|
-
var
|
|
2527
|
+
var Ci = _i(yn) ? yn : Ei();
|
|
2522
2528
|
function Sn(e, i, x, K, pe, Ae) {
|
|
2523
2529
|
var Me = L(e), Ue = nn(i);
|
|
2524
2530
|
e._disturbed = !0;
|
|
@@ -2527,9 +2533,9 @@ var fa = cr(function(Le, Ee) {
|
|
|
2527
2533
|
var dt;
|
|
2528
2534
|
if (Ae !== void 0) {
|
|
2529
2535
|
if (dt = function() {
|
|
2530
|
-
var Ye = new
|
|
2536
|
+
var Ye = new Ci("Aborted", "AbortError"), it = [];
|
|
2531
2537
|
K || it.push(function() {
|
|
2532
|
-
return i._state === "writable" ?
|
|
2538
|
+
return i._state === "writable" ? hr(i, Ye) : P(void 0);
|
|
2533
2539
|
}), pe || it.push(function() {
|
|
2534
2540
|
return e._state === "readable" ? yt(e, Ye) : P(void 0);
|
|
2535
2541
|
}), mt(function() {
|
|
@@ -2546,12 +2552,12 @@ var fa = cr(function(Le, Ee) {
|
|
|
2546
2552
|
function St() {
|
|
2547
2553
|
return O(function(Ye, it) {
|
|
2548
2554
|
function lt(Tt) {
|
|
2549
|
-
Tt ? Ye() : y(
|
|
2555
|
+
Tt ? Ye() : y(Yt(), lt, it);
|
|
2550
2556
|
}
|
|
2551
2557
|
lt(!1);
|
|
2552
2558
|
});
|
|
2553
2559
|
}
|
|
2554
|
-
function
|
|
2560
|
+
function Yt() {
|
|
2555
2561
|
return Ke ? P(!0) : y(Ue._readyPromise, function() {
|
|
2556
2562
|
return O(function(Ye, it) {
|
|
2557
2563
|
fe(Me, {
|
|
@@ -2568,7 +2574,7 @@ var fa = cr(function(Le, Ee) {
|
|
|
2568
2574
|
}
|
|
2569
2575
|
if (ft(e, Me._closedPromise, function(Ye) {
|
|
2570
2576
|
K ? Pt(!0, Ye) : mt(function() {
|
|
2571
|
-
return
|
|
2577
|
+
return hr(i, Ye);
|
|
2572
2578
|
}, !0, Ye);
|
|
2573
2579
|
}), ft(i, Ue._closedPromise, function(Ye) {
|
|
2574
2580
|
pe ? Pt(!0, Ye) : mt(function() {
|
|
@@ -2576,7 +2582,7 @@ var fa = cr(function(Le, Ee) {
|
|
|
2576
2582
|
}, !0, Ye);
|
|
2577
2583
|
}), Ct(e, Me._closedPromise, function() {
|
|
2578
2584
|
x ? Pt() : mt(function() {
|
|
2579
|
-
return
|
|
2585
|
+
return ui(Ue);
|
|
2580
2586
|
});
|
|
2581
2587
|
}), _t(i) || i._state === "closed") {
|
|
2582
2588
|
var It = new TypeError("the destination writable stream closed before all data could be piped to it");
|
|
@@ -2619,58 +2625,58 @@ var fa = cr(function(Le, Ee) {
|
|
|
2619
2625
|
}
|
|
2620
2626
|
});
|
|
2621
2627
|
}
|
|
2622
|
-
var
|
|
2628
|
+
var Ht = function() {
|
|
2623
2629
|
function e() {
|
|
2624
2630
|
throw new TypeError("Illegal constructor");
|
|
2625
2631
|
}
|
|
2626
2632
|
return Object.defineProperty(e.prototype, "desiredSize", {
|
|
2627
2633
|
get: function() {
|
|
2628
|
-
if (!
|
|
2629
|
-
throw
|
|
2630
|
-
return
|
|
2634
|
+
if (!yr(this))
|
|
2635
|
+
throw wr("desiredSize");
|
|
2636
|
+
return Vr(this);
|
|
2631
2637
|
},
|
|
2632
2638
|
enumerable: !1,
|
|
2633
2639
|
configurable: !0
|
|
2634
2640
|
}), e.prototype.close = function() {
|
|
2635
|
-
if (!
|
|
2636
|
-
throw
|
|
2637
|
-
if (!
|
|
2641
|
+
if (!yr(this))
|
|
2642
|
+
throw wr("close");
|
|
2643
|
+
if (!Xt(this))
|
|
2638
2644
|
throw new TypeError("The stream is not in a state that permits close");
|
|
2639
2645
|
ar(this);
|
|
2640
2646
|
}, e.prototype.enqueue = function(i) {
|
|
2641
|
-
if (i === void 0 && (i = void 0), !
|
|
2642
|
-
throw
|
|
2643
|
-
if (!
|
|
2647
|
+
if (i === void 0 && (i = void 0), !yr(this))
|
|
2648
|
+
throw wr("enqueue");
|
|
2649
|
+
if (!Xt(this))
|
|
2644
2650
|
throw new TypeError("The stream is not in a state that permits enqueue");
|
|
2645
|
-
return
|
|
2651
|
+
return Ar(this, i);
|
|
2646
2652
|
}, e.prototype.error = function(i) {
|
|
2647
|
-
if (i === void 0 && (i = void 0), !
|
|
2648
|
-
throw
|
|
2653
|
+
if (i === void 0 && (i = void 0), !yr(this))
|
|
2654
|
+
throw wr("error");
|
|
2649
2655
|
kt(this, i);
|
|
2650
2656
|
}, e.prototype[$] = function(i) {
|
|
2651
2657
|
te(this);
|
|
2652
2658
|
var x = this._cancelAlgorithm(i);
|
|
2653
|
-
return
|
|
2659
|
+
return Sr(this), x;
|
|
2654
2660
|
}, e.prototype[U] = function(i) {
|
|
2655
2661
|
var x = this._controlledReadableStream;
|
|
2656
2662
|
if (this._queue.length > 0) {
|
|
2657
2663
|
var K = Re(this);
|
|
2658
|
-
this._closeRequested && this._queue.length === 0 ? (
|
|
2664
|
+
this._closeRequested && this._queue.length === 0 ? (Sr(this), sr(x)) : ir(this), i._chunkSteps(K);
|
|
2659
2665
|
} else
|
|
2660
2666
|
X(x, i), ir(this);
|
|
2661
2667
|
}, e;
|
|
2662
2668
|
}();
|
|
2663
|
-
Object.defineProperties(
|
|
2669
|
+
Object.defineProperties(Ht.prototype, {
|
|
2664
2670
|
close: { enumerable: !0 },
|
|
2665
2671
|
enqueue: { enumerable: !0 },
|
|
2666
2672
|
error: { enumerable: !0 },
|
|
2667
2673
|
desiredSize: { enumerable: !0 }
|
|
2668
|
-
}), typeof Te.toStringTag == "symbol" && Object.defineProperty(
|
|
2674
|
+
}), typeof Te.toStringTag == "symbol" && Object.defineProperty(Ht.prototype, Te.toStringTag, {
|
|
2669
2675
|
value: "ReadableStreamDefaultController",
|
|
2670
2676
|
configurable: !0
|
|
2671
2677
|
});
|
|
2672
|
-
function
|
|
2673
|
-
return !v(e) || !Object.prototype.hasOwnProperty.call(e, "_controlledReadableStream") ? !1 : e instanceof
|
|
2678
|
+
function yr(e) {
|
|
2679
|
+
return !v(e) || !Object.prototype.hasOwnProperty.call(e, "_controlledReadableStream") ? !1 : e instanceof Ht;
|
|
2674
2680
|
}
|
|
2675
2681
|
function ir(e) {
|
|
2676
2682
|
var i = An(e);
|
|
@@ -2690,24 +2696,24 @@ var fa = cr(function(Le, Ee) {
|
|
|
2690
2696
|
}
|
|
2691
2697
|
function An(e) {
|
|
2692
2698
|
var i = e._controlledReadableStream;
|
|
2693
|
-
if (!
|
|
2699
|
+
if (!Xt(e) || !e._started)
|
|
2694
2700
|
return !1;
|
|
2695
2701
|
if (Ft(i) && ie(i) > 0)
|
|
2696
2702
|
return !0;
|
|
2697
|
-
var x =
|
|
2703
|
+
var x = Vr(e);
|
|
2698
2704
|
return x > 0;
|
|
2699
2705
|
}
|
|
2700
|
-
function
|
|
2706
|
+
function Sr(e) {
|
|
2701
2707
|
e._pullAlgorithm = void 0, e._cancelAlgorithm = void 0, e._strategySizeAlgorithm = void 0;
|
|
2702
2708
|
}
|
|
2703
2709
|
function ar(e) {
|
|
2704
|
-
if (!!
|
|
2710
|
+
if (!!Xt(e)) {
|
|
2705
2711
|
var i = e._controlledReadableStream;
|
|
2706
|
-
e._closeRequested = !0, e._queue.length === 0 && (
|
|
2712
|
+
e._closeRequested = !0, e._queue.length === 0 && (Sr(e), sr(i));
|
|
2707
2713
|
}
|
|
2708
2714
|
}
|
|
2709
|
-
function
|
|
2710
|
-
if (!!
|
|
2715
|
+
function Ar(e, i) {
|
|
2716
|
+
if (!!Xt(e)) {
|
|
2711
2717
|
var x = e._controlledReadableStream;
|
|
2712
2718
|
if (Ft(x) && ie(x) > 0)
|
|
2713
2719
|
J(x, i, !1);
|
|
@@ -2729,16 +2735,16 @@ var fa = cr(function(Le, Ee) {
|
|
|
2729
2735
|
}
|
|
2730
2736
|
function kt(e, i) {
|
|
2731
2737
|
var x = e._controlledReadableStream;
|
|
2732
|
-
x._state === "readable" && (te(e),
|
|
2738
|
+
x._state === "readable" && (te(e), Sr(e), Cn(x, i));
|
|
2733
2739
|
}
|
|
2734
|
-
function
|
|
2740
|
+
function Vr(e) {
|
|
2735
2741
|
var i = e._controlledReadableStream._state;
|
|
2736
2742
|
return i === "errored" ? null : i === "closed" ? 0 : e._strategyHWM - e._queueTotalSize;
|
|
2737
2743
|
}
|
|
2738
|
-
function
|
|
2744
|
+
function Ti(e) {
|
|
2739
2745
|
return !An(e);
|
|
2740
2746
|
}
|
|
2741
|
-
function
|
|
2747
|
+
function Xt(e) {
|
|
2742
2748
|
var i = e._controlledReadableStream._state;
|
|
2743
2749
|
return !e._closeRequested && i === "readable";
|
|
2744
2750
|
}
|
|
@@ -2751,8 +2757,8 @@ var fa = cr(function(Le, Ee) {
|
|
|
2751
2757
|
kt(i, Ke);
|
|
2752
2758
|
});
|
|
2753
2759
|
}
|
|
2754
|
-
function
|
|
2755
|
-
var pe = Object.create(
|
|
2760
|
+
function Pi(e, i, x, K) {
|
|
2761
|
+
var pe = Object.create(Ht.prototype), Ae = function() {
|
|
2756
2762
|
}, Me = function() {
|
|
2757
2763
|
return P(void 0);
|
|
2758
2764
|
}, Ue = function() {
|
|
@@ -2766,13 +2772,13 @@ var fa = cr(function(Le, Ee) {
|
|
|
2766
2772
|
return i.cancel(Ke);
|
|
2767
2773
|
}), wn(e, pe, Ae, Me, Ue, x, K);
|
|
2768
2774
|
}
|
|
2769
|
-
function
|
|
2775
|
+
function wr(e) {
|
|
2770
2776
|
return new TypeError("ReadableStreamDefaultController.prototype." + e + " can only be used on a ReadableStreamDefaultController");
|
|
2771
2777
|
}
|
|
2772
|
-
function
|
|
2773
|
-
return We(e._readableStreamController) ?
|
|
2778
|
+
function Ri(e, i) {
|
|
2779
|
+
return We(e._readableStreamController) ? ki(e) : xi(e);
|
|
2774
2780
|
}
|
|
2775
|
-
function
|
|
2781
|
+
function xi(e, i) {
|
|
2776
2782
|
var x = L(e), K = !1, pe = !1, Ae = !1, Me = !1, Ue, Ke, Je, et, rt, dt = O(function(ft) {
|
|
2777
2783
|
rt = ft;
|
|
2778
2784
|
});
|
|
@@ -2785,7 +2791,7 @@ var fa = cr(function(Le, Ee) {
|
|
|
2785
2791
|
w(function() {
|
|
2786
2792
|
pe = !1;
|
|
2787
2793
|
var mt = Ct, Pt = Ct;
|
|
2788
|
-
Ae ||
|
|
2794
|
+
Ae || Ar(Je._readableStreamController, mt), Me || Ar(et._readableStreamController, Pt), K = !1, pe && St();
|
|
2789
2795
|
});
|
|
2790
2796
|
},
|
|
2791
2797
|
_closeSteps: function() {
|
|
@@ -2797,7 +2803,7 @@ var fa = cr(function(Le, Ee) {
|
|
|
2797
2803
|
};
|
|
2798
2804
|
return fe(x, ft), P(void 0);
|
|
2799
2805
|
}
|
|
2800
|
-
function
|
|
2806
|
+
function Yt(ft) {
|
|
2801
2807
|
if (Ae = !0, Ue = ft, Me) {
|
|
2802
2808
|
var Ct = G([Ue, Ke]), mt = yt(e, Ct);
|
|
2803
2809
|
rt(mt);
|
|
@@ -2813,11 +2819,11 @@ var fa = cr(function(Le, Ee) {
|
|
|
2813
2819
|
}
|
|
2814
2820
|
function Et() {
|
|
2815
2821
|
}
|
|
2816
|
-
return Je =
|
|
2822
|
+
return Je = Hr(Et, St, Yt), et = Hr(Et, St, It), l(x._closedPromise, function(ft) {
|
|
2817
2823
|
kt(Je._readableStreamController, ft), kt(et._readableStreamController, ft), (!Ae || !Me) && rt(void 0);
|
|
2818
2824
|
}), [Je, et];
|
|
2819
2825
|
}
|
|
2820
|
-
function
|
|
2826
|
+
function ki(e) {
|
|
2821
2827
|
var i = L(e), x = !1, K = !1, pe = !1, Ae = !1, Me = !1, Ue, Ke, Je, et, rt, dt = O(function(ot) {
|
|
2822
2828
|
rt = ot;
|
|
2823
2829
|
});
|
|
@@ -2826,7 +2832,7 @@ var fa = cr(function(Le, Ee) {
|
|
|
2826
2832
|
ot === i && (pt(Je._readableStreamController, Ye), pt(et._readableStreamController, Ye), (!Ae || !Me) && rt(void 0));
|
|
2827
2833
|
});
|
|
2828
2834
|
}
|
|
2829
|
-
function
|
|
2835
|
+
function Yt() {
|
|
2830
2836
|
Nt(i) && (f(i), i = L(e), St(i));
|
|
2831
2837
|
var ot = {
|
|
2832
2838
|
_chunkSteps: function(Ye) {
|
|
@@ -2858,9 +2864,9 @@ var fa = cr(function(Le, Ee) {
|
|
|
2858
2864
|
_chunkSteps: function(Dt) {
|
|
2859
2865
|
w(function() {
|
|
2860
2866
|
K = !1, pe = !1;
|
|
2861
|
-
var
|
|
2867
|
+
var qt = Ye ? Me : Ae, lr = Ye ? Ae : Me;
|
|
2862
2868
|
if (lr)
|
|
2863
|
-
|
|
2869
|
+
qt || wt(it._readableStreamController, Dt);
|
|
2864
2870
|
else {
|
|
2865
2871
|
var Bn = void 0;
|
|
2866
2872
|
try {
|
|
@@ -2869,15 +2875,15 @@ var fa = cr(function(Le, Ee) {
|
|
|
2869
2875
|
pt(it._readableStreamController, Yr), pt(lt._readableStreamController, Yr), rt(yt(e, Yr));
|
|
2870
2876
|
return;
|
|
2871
2877
|
}
|
|
2872
|
-
|
|
2878
|
+
qt || wt(it._readableStreamController, Dt), bt(lt._readableStreamController, Bn);
|
|
2873
2879
|
}
|
|
2874
2880
|
x = !1, K ? Et() : pe && ft();
|
|
2875
2881
|
});
|
|
2876
2882
|
},
|
|
2877
2883
|
_closeSteps: function(Dt) {
|
|
2878
2884
|
x = !1;
|
|
2879
|
-
var
|
|
2880
|
-
|
|
2885
|
+
var qt = Ye ? Me : Ae, lr = Ye ? Ae : Me;
|
|
2886
|
+
qt || gt(it._readableStreamController), lr || gt(lt._readableStreamController), Dt !== void 0 && (qt || wt(it._readableStreamController, Dt), !lr && lt._readableStreamController._pendingPullIntos.length > 0 && At(lt._readableStreamController, 0)), (!qt || !lr) && rt(void 0);
|
|
2881
2887
|
},
|
|
2882
2888
|
_errorSteps: function() {
|
|
2883
2889
|
x = !1;
|
|
@@ -2890,14 +2896,14 @@ var fa = cr(function(Le, Ee) {
|
|
|
2890
2896
|
return K = !0, P(void 0);
|
|
2891
2897
|
x = !0;
|
|
2892
2898
|
var ot = xt(Je._readableStreamController);
|
|
2893
|
-
return ot === null ?
|
|
2899
|
+
return ot === null ? Yt() : It(ot._view, !1), P(void 0);
|
|
2894
2900
|
}
|
|
2895
2901
|
function ft() {
|
|
2896
2902
|
if (x)
|
|
2897
2903
|
return pe = !0, P(void 0);
|
|
2898
2904
|
x = !0;
|
|
2899
2905
|
var ot = xt(et._readableStreamController);
|
|
2900
|
-
return ot === null ?
|
|
2906
|
+
return ot === null ? Yt() : It(ot._view, !0), P(void 0);
|
|
2901
2907
|
}
|
|
2902
2908
|
function Ct(ot) {
|
|
2903
2909
|
if (Ae = !0, Ue = ot, Me) {
|
|
@@ -2917,50 +2923,50 @@ var fa = cr(function(Le, Ee) {
|
|
|
2917
2923
|
}
|
|
2918
2924
|
return Je = En(Pt, Et, Ct), et = En(Pt, ft, mt), St(i), [Je, et];
|
|
2919
2925
|
}
|
|
2920
|
-
function
|
|
2926
|
+
function Oi(e, i) {
|
|
2921
2927
|
ye(e, i);
|
|
2922
2928
|
var x = e, K = x == null ? void 0 : x.autoAllocateChunkSize, pe = x == null ? void 0 : x.cancel, Ae = x == null ? void 0 : x.pull, Me = x == null ? void 0 : x.start, Ue = x == null ? void 0 : x.type;
|
|
2923
2929
|
return {
|
|
2924
2930
|
autoAllocateChunkSize: K === void 0 ? void 0 : _(K, i + " has member 'autoAllocateChunkSize' that"),
|
|
2925
|
-
cancel: pe === void 0 ? void 0 :
|
|
2926
|
-
pull: Ae === void 0 ? void 0 :
|
|
2927
|
-
start: Me === void 0 ? void 0 :
|
|
2928
|
-
type: Ue === void 0 ? void 0 :
|
|
2931
|
+
cancel: pe === void 0 ? void 0 : Mi(pe, x, i + " has member 'cancel' that"),
|
|
2932
|
+
pull: Ae === void 0 ? void 0 : Fi(Ae, x, i + " has member 'pull' that"),
|
|
2933
|
+
start: Me === void 0 ? void 0 : Ii(Me, x, i + " has member 'start' that"),
|
|
2934
|
+
type: Ue === void 0 ? void 0 : Di(Ue, i + " has member 'type' that")
|
|
2929
2935
|
};
|
|
2930
2936
|
}
|
|
2931
|
-
function
|
|
2937
|
+
function Mi(e, i, x) {
|
|
2932
2938
|
return Se(e, x), function(K) {
|
|
2933
2939
|
return p(e, i, [K]);
|
|
2934
2940
|
};
|
|
2935
2941
|
}
|
|
2936
|
-
function
|
|
2942
|
+
function Fi(e, i, x) {
|
|
2937
2943
|
return Se(e, x), function(K) {
|
|
2938
2944
|
return p(e, i, [K]);
|
|
2939
2945
|
};
|
|
2940
2946
|
}
|
|
2941
|
-
function
|
|
2947
|
+
function Ii(e, i, x) {
|
|
2942
2948
|
return Se(e, x), function(K) {
|
|
2943
2949
|
return F(e, i, [K]);
|
|
2944
2950
|
};
|
|
2945
2951
|
}
|
|
2946
|
-
function
|
|
2952
|
+
function Di(e, i) {
|
|
2947
2953
|
if (e = "" + e, e !== "bytes")
|
|
2948
2954
|
throw new TypeError(i + " '" + e + "' is not a valid enumeration value for ReadableStreamType");
|
|
2949
2955
|
return e;
|
|
2950
2956
|
}
|
|
2951
|
-
function
|
|
2957
|
+
function Li(e, i) {
|
|
2952
2958
|
ye(e, i);
|
|
2953
2959
|
var x = e == null ? void 0 : e.mode;
|
|
2954
2960
|
return {
|
|
2955
|
-
mode: x === void 0 ? void 0 :
|
|
2961
|
+
mode: x === void 0 ? void 0 : Ni(x, i + " has member 'mode' that")
|
|
2956
2962
|
};
|
|
2957
2963
|
}
|
|
2958
|
-
function
|
|
2964
|
+
function Ni(e, i) {
|
|
2959
2965
|
if (e = "" + e, e !== "byob")
|
|
2960
2966
|
throw new TypeError(i + " '" + e + "' is not a valid enumeration value for ReadableStreamReaderMode");
|
|
2961
2967
|
return e;
|
|
2962
2968
|
}
|
|
2963
|
-
function
|
|
2969
|
+
function Bi(e, i) {
|
|
2964
2970
|
ye(e, i);
|
|
2965
2971
|
var x = e == null ? void 0 : e.preventCancel;
|
|
2966
2972
|
return { preventCancel: Boolean(x) };
|
|
@@ -2968,18 +2974,18 @@ var fa = cr(function(Le, Ee) {
|
|
|
2968
2974
|
function _n(e, i) {
|
|
2969
2975
|
ye(e, i);
|
|
2970
2976
|
var x = e == null ? void 0 : e.preventAbort, K = e == null ? void 0 : e.preventCancel, pe = e == null ? void 0 : e.preventClose, Ae = e == null ? void 0 : e.signal;
|
|
2971
|
-
return Ae !== void 0 &&
|
|
2977
|
+
return Ae !== void 0 && Wi(Ae, i + " has member 'signal' that"), {
|
|
2972
2978
|
preventAbort: Boolean(x),
|
|
2973
2979
|
preventCancel: Boolean(K),
|
|
2974
2980
|
preventClose: Boolean(pe),
|
|
2975
2981
|
signal: Ae
|
|
2976
2982
|
};
|
|
2977
2983
|
}
|
|
2978
|
-
function
|
|
2979
|
-
if (!
|
|
2984
|
+
function Wi(e, i) {
|
|
2985
|
+
if (!Qn(e))
|
|
2980
2986
|
throw new TypeError(i + " is not an AbortSignal.");
|
|
2981
2987
|
}
|
|
2982
|
-
function
|
|
2988
|
+
function Ui(e, i) {
|
|
2983
2989
|
ye(e, i);
|
|
2984
2990
|
var x = e == null ? void 0 : e.readable;
|
|
2985
2991
|
N(x, "readable", "ReadableWritablePair"), M(x, i + " has member 'readable' that");
|
|
@@ -2989,15 +2995,15 @@ var fa = cr(function(Le, Ee) {
|
|
|
2989
2995
|
var Ot = function() {
|
|
2990
2996
|
function e(i, x) {
|
|
2991
2997
|
i === void 0 && (i = {}), x === void 0 && (x = {}), i === void 0 ? i = null : C(i, "First parameter");
|
|
2992
|
-
var K =
|
|
2998
|
+
var K = dr(x, "Second parameter"), pe = Oi(i, "First parameter");
|
|
2993
2999
|
if (Xr(this), pe.type === "bytes") {
|
|
2994
3000
|
if (K.size !== void 0)
|
|
2995
3001
|
throw new RangeError("The strategy for a byte stream cannot have a size function");
|
|
2996
3002
|
var Ae = er(K, 0);
|
|
2997
|
-
|
|
3003
|
+
jn(this, pe, Ae);
|
|
2998
3004
|
} else {
|
|
2999
|
-
var Me =
|
|
3000
|
-
|
|
3005
|
+
var Me = ur(K), Ae = er(K, 1);
|
|
3006
|
+
Pi(this, pe, Ae, Me);
|
|
3001
3007
|
}
|
|
3002
3008
|
}
|
|
3003
3009
|
return Object.defineProperty(e.prototype, "locked", {
|
|
@@ -3013,16 +3019,16 @@ var fa = cr(function(Le, Ee) {
|
|
|
3013
3019
|
}, e.prototype.getReader = function(i) {
|
|
3014
3020
|
if (i === void 0 && (i = void 0), !Mt(this))
|
|
3015
3021
|
throw Ut("getReader");
|
|
3016
|
-
var x =
|
|
3022
|
+
var x = Li(i, "First parameter");
|
|
3017
3023
|
return x.mode === void 0 ? L(this) : Jr(this);
|
|
3018
3024
|
}, e.prototype.pipeThrough = function(i, x) {
|
|
3019
3025
|
if (x === void 0 && (x = {}), !Mt(this))
|
|
3020
3026
|
throw Ut("pipeThrough");
|
|
3021
3027
|
S(i, 1, "pipeThrough");
|
|
3022
|
-
var K =
|
|
3028
|
+
var K = Ui(i, "First parameter"), pe = _n(x, "Second parameter");
|
|
3023
3029
|
if (Ft(this))
|
|
3024
3030
|
throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked ReadableStream");
|
|
3025
|
-
if (
|
|
3031
|
+
if (Gt(K.writable))
|
|
3026
3032
|
throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked WritableStream");
|
|
3027
3033
|
var Ae = Sn(this, K.writable, pe.preventClose, pe.preventAbort, pe.preventCancel, pe.signal);
|
|
3028
3034
|
return h(Ae), K.readable;
|
|
@@ -3031,7 +3037,7 @@ var fa = cr(function(Le, Ee) {
|
|
|
3031
3037
|
return m(Ut("pipeTo"));
|
|
3032
3038
|
if (i === void 0)
|
|
3033
3039
|
return m("Parameter 1 is required in 'pipeTo'.");
|
|
3034
|
-
if (
|
|
3040
|
+
if (!$t(i))
|
|
3035
3041
|
return m(new TypeError("ReadableStream.prototype.pipeTo's first argument must be a WritableStream"));
|
|
3036
3042
|
var K;
|
|
3037
3043
|
try {
|
|
@@ -3039,16 +3045,16 @@ var fa = cr(function(Le, Ee) {
|
|
|
3039
3045
|
} catch (pe) {
|
|
3040
3046
|
return m(pe);
|
|
3041
3047
|
}
|
|
3042
|
-
return Ft(this) ? m(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked ReadableStream")) :
|
|
3048
|
+
return Ft(this) ? m(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked ReadableStream")) : Gt(i) ? m(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked WritableStream")) : Sn(this, i, K.preventClose, K.preventAbort, K.preventCancel, K.signal);
|
|
3043
3049
|
}, e.prototype.tee = function() {
|
|
3044
3050
|
if (!Mt(this))
|
|
3045
3051
|
throw Ut("tee");
|
|
3046
|
-
var i =
|
|
3052
|
+
var i = Ri(this);
|
|
3047
3053
|
return G(i);
|
|
3048
3054
|
}, e.prototype.values = function(i) {
|
|
3049
3055
|
if (i === void 0 && (i = void 0), !Mt(this))
|
|
3050
3056
|
throw Ut("values");
|
|
3051
|
-
var x =
|
|
3057
|
+
var x = Bi(i, "First parameter");
|
|
3052
3058
|
return Fe(this, x.preventCancel);
|
|
3053
3059
|
}, e;
|
|
3054
3060
|
}();
|
|
@@ -3068,13 +3074,13 @@ var fa = cr(function(Le, Ee) {
|
|
|
3068
3074
|
writable: !0,
|
|
3069
3075
|
configurable: !0
|
|
3070
3076
|
});
|
|
3071
|
-
function
|
|
3077
|
+
function Hr(e, i, x, K, pe) {
|
|
3072
3078
|
K === void 0 && (K = 1), pe === void 0 && (pe = function() {
|
|
3073
3079
|
return 1;
|
|
3074
3080
|
});
|
|
3075
3081
|
var Ae = Object.create(Ot.prototype);
|
|
3076
3082
|
Xr(Ae);
|
|
3077
|
-
var Me = Object.create(
|
|
3083
|
+
var Me = Object.create(Ht.prototype);
|
|
3078
3084
|
return wn(Ae, Me, e, i, x, K, pe), Ae;
|
|
3079
3085
|
}
|
|
3080
3086
|
function En(e, i, x) {
|
|
@@ -3141,7 +3147,7 @@ var fa = cr(function(Le, Ee) {
|
|
|
3141
3147
|
});
|
|
3142
3148
|
} catch {
|
|
3143
3149
|
}
|
|
3144
|
-
var
|
|
3150
|
+
var _r = function() {
|
|
3145
3151
|
function e(i) {
|
|
3146
3152
|
S(i, 1, "ByteLengthQueuingStrategy"), i = Tn(i, "First parameter"), this._byteLengthQueuingStrategyHighWaterMark = i.highWaterMark;
|
|
3147
3153
|
}
|
|
@@ -3163,10 +3169,10 @@ var fa = cr(function(Le, Ee) {
|
|
|
3163
3169
|
configurable: !0
|
|
3164
3170
|
}), e;
|
|
3165
3171
|
}();
|
|
3166
|
-
Object.defineProperties(
|
|
3172
|
+
Object.defineProperties(_r.prototype, {
|
|
3167
3173
|
highWaterMark: { enumerable: !0 },
|
|
3168
3174
|
size: { enumerable: !0 }
|
|
3169
|
-
}), typeof Te.toStringTag == "symbol" && Object.defineProperty(
|
|
3175
|
+
}), typeof Te.toStringTag == "symbol" && Object.defineProperty(_r.prototype, Te.toStringTag, {
|
|
3170
3176
|
value: "ByteLengthQueuingStrategy",
|
|
3171
3177
|
configurable: !0
|
|
3172
3178
|
});
|
|
@@ -3174,7 +3180,7 @@ var fa = cr(function(Le, Ee) {
|
|
|
3174
3180
|
return new TypeError("ByteLengthQueuingStrategy.prototype." + e + " can only be used on a ByteLengthQueuingStrategy");
|
|
3175
3181
|
}
|
|
3176
3182
|
function xn(e) {
|
|
3177
|
-
return !v(e) || !Object.prototype.hasOwnProperty.call(e, "_byteLengthQueuingStrategyHighWaterMark") ? !1 : e instanceof
|
|
3183
|
+
return !v(e) || !Object.prototype.hasOwnProperty.call(e, "_byteLengthQueuingStrategyHighWaterMark") ? !1 : e instanceof _r;
|
|
3178
3184
|
}
|
|
3179
3185
|
var kn = function() {
|
|
3180
3186
|
return 1;
|
|
@@ -3186,7 +3192,7 @@ var fa = cr(function(Le, Ee) {
|
|
|
3186
3192
|
});
|
|
3187
3193
|
} catch {
|
|
3188
3194
|
}
|
|
3189
|
-
var
|
|
3195
|
+
var Er = function() {
|
|
3190
3196
|
function e(i) {
|
|
3191
3197
|
S(i, 1, "CountQueuingStrategy"), i = Tn(i, "First parameter"), this._countQueuingStrategyHighWaterMark = i.highWaterMark;
|
|
3192
3198
|
}
|
|
@@ -3208,10 +3214,10 @@ var fa = cr(function(Le, Ee) {
|
|
|
3208
3214
|
configurable: !0
|
|
3209
3215
|
}), e;
|
|
3210
3216
|
}();
|
|
3211
|
-
Object.defineProperties(
|
|
3217
|
+
Object.defineProperties(Er.prototype, {
|
|
3212
3218
|
highWaterMark: { enumerable: !0 },
|
|
3213
3219
|
size: { enumerable: !0 }
|
|
3214
|
-
}), typeof Te.toStringTag == "symbol" && Object.defineProperty(
|
|
3220
|
+
}), typeof Te.toStringTag == "symbol" && Object.defineProperty(Er.prototype, Te.toStringTag, {
|
|
3215
3221
|
value: "CountQueuingStrategy",
|
|
3216
3222
|
configurable: !0
|
|
3217
3223
|
});
|
|
@@ -3219,46 +3225,46 @@ var fa = cr(function(Le, Ee) {
|
|
|
3219
3225
|
return new TypeError("CountQueuingStrategy.prototype." + e + " can only be used on a CountQueuingStrategy");
|
|
3220
3226
|
}
|
|
3221
3227
|
function Mn(e) {
|
|
3222
|
-
return !v(e) || !Object.prototype.hasOwnProperty.call(e, "_countQueuingStrategyHighWaterMark") ? !1 : e instanceof
|
|
3228
|
+
return !v(e) || !Object.prototype.hasOwnProperty.call(e, "_countQueuingStrategyHighWaterMark") ? !1 : e instanceof Er;
|
|
3223
3229
|
}
|
|
3224
|
-
function
|
|
3230
|
+
function zi(e, i) {
|
|
3225
3231
|
ye(e, i);
|
|
3226
3232
|
var x = e == null ? void 0 : e.flush, K = e == null ? void 0 : e.readableType, pe = e == null ? void 0 : e.start, Ae = e == null ? void 0 : e.transform, Me = e == null ? void 0 : e.writableType;
|
|
3227
3233
|
return {
|
|
3228
|
-
flush: x === void 0 ? void 0 :
|
|
3234
|
+
flush: x === void 0 ? void 0 : ji(x, e, i + " has member 'flush' that"),
|
|
3229
3235
|
readableType: K,
|
|
3230
|
-
start: pe === void 0 ? void 0 :
|
|
3231
|
-
transform: Ae === void 0 ? void 0 :
|
|
3236
|
+
start: pe === void 0 ? void 0 : $i(pe, e, i + " has member 'start' that"),
|
|
3237
|
+
transform: Ae === void 0 ? void 0 : Gi(Ae, e, i + " has member 'transform' that"),
|
|
3232
3238
|
writableType: Me
|
|
3233
3239
|
};
|
|
3234
3240
|
}
|
|
3235
|
-
function
|
|
3241
|
+
function ji(e, i, x) {
|
|
3236
3242
|
return Se(e, x), function(K) {
|
|
3237
3243
|
return p(e, i, [K]);
|
|
3238
3244
|
};
|
|
3239
3245
|
}
|
|
3240
|
-
function
|
|
3246
|
+
function $i(e, i, x) {
|
|
3241
3247
|
return Se(e, x), function(K) {
|
|
3242
3248
|
return F(e, i, [K]);
|
|
3243
3249
|
};
|
|
3244
3250
|
}
|
|
3245
|
-
function
|
|
3251
|
+
function Gi(e, i, x) {
|
|
3246
3252
|
return Se(e, x), function(K, pe) {
|
|
3247
3253
|
return p(e, i, [K, pe]);
|
|
3248
3254
|
};
|
|
3249
3255
|
}
|
|
3250
|
-
var
|
|
3256
|
+
var Cr = function() {
|
|
3251
3257
|
function e(i, x, K) {
|
|
3252
3258
|
i === void 0 && (i = {}), x === void 0 && (x = {}), K === void 0 && (K = {}), i === void 0 && (i = null);
|
|
3253
|
-
var pe =
|
|
3259
|
+
var pe = dr(x, "Second parameter"), Ae = dr(K, "Third parameter"), Me = zi(i, "First parameter");
|
|
3254
3260
|
if (Me.readableType !== void 0)
|
|
3255
3261
|
throw new RangeError("Invalid readableType specified");
|
|
3256
3262
|
if (Me.writableType !== void 0)
|
|
3257
3263
|
throw new RangeError("Invalid writableType specified");
|
|
3258
|
-
var Ue = er(Ae, 0), Ke =
|
|
3264
|
+
var Ue = er(Ae, 0), Ke = ur(Ae), Je = er(pe, 1), et = ur(pe), rt, dt = O(function(St) {
|
|
3259
3265
|
rt = St;
|
|
3260
3266
|
});
|
|
3261
|
-
|
|
3267
|
+
Vi(this, dt, Je, et, Ue, Ke), Xi(this, Me), Me.start !== void 0 ? rt(Me.start(this._transformStreamController)) : rt(void 0);
|
|
3262
3268
|
}
|
|
3263
3269
|
return Object.defineProperty(e.prototype, "readable", {
|
|
3264
3270
|
get: function() {
|
|
@@ -3278,45 +3284,45 @@ var fa = cr(function(Le, Ee) {
|
|
|
3278
3284
|
configurable: !0
|
|
3279
3285
|
}), e;
|
|
3280
3286
|
}();
|
|
3281
|
-
Object.defineProperties(
|
|
3287
|
+
Object.defineProperties(Cr.prototype, {
|
|
3282
3288
|
readable: { enumerable: !0 },
|
|
3283
3289
|
writable: { enumerable: !0 }
|
|
3284
|
-
}), typeof Te.toStringTag == "symbol" && Object.defineProperty(
|
|
3290
|
+
}), typeof Te.toStringTag == "symbol" && Object.defineProperty(Cr.prototype, Te.toStringTag, {
|
|
3285
3291
|
value: "TransformStream",
|
|
3286
3292
|
configurable: !0
|
|
3287
3293
|
});
|
|
3288
|
-
function
|
|
3294
|
+
function Vi(e, i, x, K, pe, Ae) {
|
|
3289
3295
|
function Me() {
|
|
3290
3296
|
return i;
|
|
3291
3297
|
}
|
|
3292
3298
|
function Ue(dt) {
|
|
3293
|
-
return
|
|
3299
|
+
return Ki(e, dt);
|
|
3294
3300
|
}
|
|
3295
3301
|
function Ke(dt) {
|
|
3296
|
-
return
|
|
3302
|
+
return Qi(e, dt);
|
|
3297
3303
|
}
|
|
3298
3304
|
function Je() {
|
|
3299
|
-
return
|
|
3305
|
+
return Ji(e);
|
|
3300
3306
|
}
|
|
3301
|
-
e._writable =
|
|
3307
|
+
e._writable = ei(Me, Ue, Je, Ke, x, K);
|
|
3302
3308
|
function et() {
|
|
3303
|
-
return
|
|
3309
|
+
return Zi(e);
|
|
3304
3310
|
}
|
|
3305
3311
|
function rt(dt) {
|
|
3306
|
-
return
|
|
3312
|
+
return Pr(e, dt), P(void 0);
|
|
3307
3313
|
}
|
|
3308
|
-
e._readable =
|
|
3314
|
+
e._readable = Hr(Me, et, rt, pe, Ae), e._backpressure = void 0, e._backpressureChangePromise = void 0, e._backpressureChangePromise_resolve = void 0, Rr(e, !0), e._transformStreamController = void 0;
|
|
3309
3315
|
}
|
|
3310
3316
|
function Fn(e) {
|
|
3311
|
-
return !v(e) || !Object.prototype.hasOwnProperty.call(e, "_transformStreamController") ? !1 : e instanceof
|
|
3317
|
+
return !v(e) || !Object.prototype.hasOwnProperty.call(e, "_transformStreamController") ? !1 : e instanceof Cr;
|
|
3318
|
+
}
|
|
3319
|
+
function Tr(e, i) {
|
|
3320
|
+
kt(e._readable._readableStreamController, i), Pr(e, i);
|
|
3312
3321
|
}
|
|
3313
3322
|
function Pr(e, i) {
|
|
3314
|
-
|
|
3323
|
+
In(e._transformStreamController), Wr(e._writable._writableStreamController, i), e._backpressure && Rr(e, !1);
|
|
3315
3324
|
}
|
|
3316
3325
|
function Rr(e, i) {
|
|
3317
|
-
In(e._transformStreamController), Wr(e._writable._writableStreamController, i), e._backpressure && xr(e, !1);
|
|
3318
|
-
}
|
|
3319
|
-
function xr(e, i) {
|
|
3320
3326
|
e._backpressureChangePromise !== void 0 && e._backpressureChangePromise_resolve(), e._backpressureChangePromise = O(function(x) {
|
|
3321
3327
|
e._backpressureChangePromise_resolve = x;
|
|
3322
3328
|
}), e._backpressure = i;
|
|
@@ -3327,25 +3333,25 @@ var fa = cr(function(Le, Ee) {
|
|
|
3327
3333
|
}
|
|
3328
3334
|
return Object.defineProperty(e.prototype, "desiredSize", {
|
|
3329
3335
|
get: function() {
|
|
3330
|
-
if (!
|
|
3331
|
-
throw
|
|
3336
|
+
if (!xr(this))
|
|
3337
|
+
throw kr("desiredSize");
|
|
3332
3338
|
var i = this._controlledTransformStream._readable._readableStreamController;
|
|
3333
|
-
return
|
|
3339
|
+
return Vr(i);
|
|
3334
3340
|
},
|
|
3335
3341
|
enumerable: !1,
|
|
3336
3342
|
configurable: !0
|
|
3337
3343
|
}), e.prototype.enqueue = function(i) {
|
|
3338
|
-
if (i === void 0 && (i = void 0), !
|
|
3339
|
-
throw
|
|
3344
|
+
if (i === void 0 && (i = void 0), !xr(this))
|
|
3345
|
+
throw kr("enqueue");
|
|
3340
3346
|
Dn(this, i);
|
|
3341
3347
|
}, e.prototype.error = function(i) {
|
|
3342
|
-
if (i === void 0 && (i = void 0), !
|
|
3343
|
-
throw
|
|
3344
|
-
|
|
3348
|
+
if (i === void 0 && (i = void 0), !xr(this))
|
|
3349
|
+
throw kr("error");
|
|
3350
|
+
Yi(this, i);
|
|
3345
3351
|
}, e.prototype.terminate = function() {
|
|
3346
|
-
if (!
|
|
3347
|
-
throw
|
|
3348
|
-
|
|
3352
|
+
if (!xr(this))
|
|
3353
|
+
throw kr("terminate");
|
|
3354
|
+
qi(this);
|
|
3349
3355
|
}, e;
|
|
3350
3356
|
}();
|
|
3351
3357
|
Object.defineProperties(or.prototype, {
|
|
@@ -3357,13 +3363,13 @@ var fa = cr(function(Le, Ee) {
|
|
|
3357
3363
|
value: "TransformStreamDefaultController",
|
|
3358
3364
|
configurable: !0
|
|
3359
3365
|
});
|
|
3360
|
-
function
|
|
3366
|
+
function xr(e) {
|
|
3361
3367
|
return !v(e) || !Object.prototype.hasOwnProperty.call(e, "_controlledTransformStream") ? !1 : e instanceof or;
|
|
3362
3368
|
}
|
|
3363
|
-
function
|
|
3369
|
+
function Hi(e, i, x, K) {
|
|
3364
3370
|
i._controlledTransformStream = e, e._transformStreamController = i, i._transformAlgorithm = x, i._flushAlgorithm = K;
|
|
3365
3371
|
}
|
|
3366
|
-
function
|
|
3372
|
+
function Xi(e, i) {
|
|
3367
3373
|
var x = Object.create(or.prototype), K = function(Ae) {
|
|
3368
3374
|
try {
|
|
3369
3375
|
return Dn(x, Ae), P(void 0);
|
|
@@ -3377,39 +3383,39 @@ var fa = cr(function(Le, Ee) {
|
|
|
3377
3383
|
return i.transform(Ae, x);
|
|
3378
3384
|
}), i.flush !== void 0 && (pe = function() {
|
|
3379
3385
|
return i.flush(x);
|
|
3380
|
-
}),
|
|
3386
|
+
}), Hi(e, x, K, pe);
|
|
3381
3387
|
}
|
|
3382
3388
|
function In(e) {
|
|
3383
3389
|
e._transformAlgorithm = void 0, e._flushAlgorithm = void 0;
|
|
3384
3390
|
}
|
|
3385
3391
|
function Dn(e, i) {
|
|
3386
3392
|
var x = e._controlledTransformStream, K = x._readable._readableStreamController;
|
|
3387
|
-
if (!
|
|
3393
|
+
if (!Xt(K))
|
|
3388
3394
|
throw new TypeError("Readable side is not in a state that permits enqueue");
|
|
3389
3395
|
try {
|
|
3390
|
-
|
|
3396
|
+
Ar(K, i);
|
|
3391
3397
|
} catch (Ae) {
|
|
3392
|
-
throw
|
|
3398
|
+
throw Pr(x, Ae), x._readable._storedError;
|
|
3393
3399
|
}
|
|
3394
|
-
var pe =
|
|
3395
|
-
pe !== x._backpressure &&
|
|
3400
|
+
var pe = Ti(K);
|
|
3401
|
+
pe !== x._backpressure && Rr(x, !0);
|
|
3396
3402
|
}
|
|
3397
|
-
function
|
|
3398
|
-
|
|
3403
|
+
function Yi(e, i) {
|
|
3404
|
+
Tr(e._controlledTransformStream, i);
|
|
3399
3405
|
}
|
|
3400
3406
|
function Ln(e, i) {
|
|
3401
3407
|
var x = e._transformAlgorithm(i);
|
|
3402
3408
|
return A(x, void 0, function(K) {
|
|
3403
|
-
throw
|
|
3409
|
+
throw Tr(e._controlledTransformStream, K), K;
|
|
3404
3410
|
});
|
|
3405
3411
|
}
|
|
3406
|
-
function
|
|
3412
|
+
function qi(e) {
|
|
3407
3413
|
var i = e._controlledTransformStream, x = i._readable._readableStreamController;
|
|
3408
3414
|
ar(x);
|
|
3409
3415
|
var K = new TypeError("TransformStream terminated");
|
|
3410
|
-
|
|
3416
|
+
Pr(i, K);
|
|
3411
3417
|
}
|
|
3412
|
-
function
|
|
3418
|
+
function Ki(e, i) {
|
|
3413
3419
|
var x = e._transformStreamController;
|
|
3414
3420
|
if (e._backpressure) {
|
|
3415
3421
|
var K = e._backpressureChangePromise;
|
|
@@ -3422,36 +3428,36 @@ var fa = cr(function(Le, Ee) {
|
|
|
3422
3428
|
}
|
|
3423
3429
|
return Ln(x, i);
|
|
3424
3430
|
}
|
|
3425
|
-
function
|
|
3426
|
-
return
|
|
3431
|
+
function Qi(e, i) {
|
|
3432
|
+
return Tr(e, i), P(void 0);
|
|
3427
3433
|
}
|
|
3428
|
-
function
|
|
3434
|
+
function Ji(e) {
|
|
3429
3435
|
var i = e._readable, x = e._transformStreamController, K = x._flushAlgorithm();
|
|
3430
3436
|
return In(x), A(K, function() {
|
|
3431
3437
|
if (i._state === "errored")
|
|
3432
3438
|
throw i._storedError;
|
|
3433
3439
|
ar(i._readableStreamController);
|
|
3434
3440
|
}, function(pe) {
|
|
3435
|
-
throw
|
|
3441
|
+
throw Tr(e, pe), i._storedError;
|
|
3436
3442
|
});
|
|
3437
3443
|
}
|
|
3438
|
-
function
|
|
3439
|
-
return
|
|
3444
|
+
function Zi(e) {
|
|
3445
|
+
return Rr(e, !1), e._backpressureChangePromise;
|
|
3440
3446
|
}
|
|
3441
|
-
function
|
|
3447
|
+
function kr(e) {
|
|
3442
3448
|
return new TypeError("TransformStreamDefaultController.prototype." + e + " can only be used on a TransformStreamDefaultController");
|
|
3443
3449
|
}
|
|
3444
3450
|
function Nn(e) {
|
|
3445
3451
|
return new TypeError("TransformStream.prototype." + e + " can only be used on a TransformStream");
|
|
3446
3452
|
}
|
|
3447
|
-
Ie.ByteLengthQueuingStrategy =
|
|
3453
|
+
Ie.ByteLengthQueuingStrategy = _r, Ie.CountQueuingStrategy = Er, Ie.ReadableByteStreamController = be, Ie.ReadableStream = Ot, Ie.ReadableStreamBYOBReader = Zt, Ie.ReadableStreamBYOBRequest = ae, Ie.ReadableStreamDefaultController = Ht, Ie.ReadableStreamDefaultReader = he, Ie.TransformStream = Cr, Ie.TransformStreamDefaultController = or, Ie.WritableStream = tr, Ie.WritableStreamDefaultController = Vt, Ie.WritableStreamDefaultWriter = rr, Object.defineProperty(Ie, "__esModule", { value: !0 });
|
|
3448
3454
|
});
|
|
3449
|
-
});
|
|
3450
|
-
const
|
|
3455
|
+
})(Kr, Kr.exports);
|
|
3456
|
+
const ba = {}, ya = /* @__PURE__ */ Object.freeze({
|
|
3451
3457
|
__proto__: null,
|
|
3452
|
-
default:
|
|
3453
|
-
}),
|
|
3454
|
-
|
|
3458
|
+
default: ba
|
|
3459
|
+
}), Kt = /* @__PURE__ */ ta(ya);
|
|
3460
|
+
(function(Le, Ee) {
|
|
3455
3461
|
(function(Te, De) {
|
|
3456
3462
|
Le.exports = De();
|
|
3457
3463
|
})(globalThis, () => (() => {
|
|
@@ -3460,7 +3466,7 @@ var Kr = cr(function(Le, Ee) {
|
|
|
3460
3466
|
(B, v, n) => {
|
|
3461
3467
|
Object.defineProperty(v, "__esModule", {
|
|
3462
3468
|
value: !0
|
|
3463
|
-
}), v.VerbosityLevel = v.Util = v.UnknownErrorException = v.UnexpectedResponseException = v.UNSUPPORTED_FEATURES = v.TextRenderingMode = v.StreamType = v.RenderingIntentFlag = v.PermissionFlag = v.PasswordResponses = v.PasswordException = v.PageActionEventType = v.OPS = v.MissingPDFException = v.LINE_FACTOR = v.LINE_DESCENT_FACTOR = v.InvalidPDFException = v.ImageKind = v.IDENTITY_MATRIX = v.FormatError = v.FontType = v.FeatureTest = v.FONT_IDENTITY_MATRIX = v.DocumentActionEventType = v.CMapCompressionType = v.BaseException = v.AnnotationType = v.AnnotationStateModelType = v.AnnotationReviewState = v.AnnotationReplyType = v.AnnotationMode = v.AnnotationMarkedState = v.AnnotationFlag = v.AnnotationFieldFlag = v.AnnotationEditorType = v.AnnotationEditorPrefix = v.AnnotationEditorParamsType = v.AnnotationBorderStyleType = v.AnnotationActionEventType = v.AbortException = void 0, v.arrayByteLength = se, v.arraysToBytes = he, v.assert = Se, v.bytesToString = J, v.createPromiseCapability = Be, v.createValidAbsoluteUrl = C, v.escapeString = Q, v.getModificationDate = Re, v.getVerbosityLevel = I, v.info = ee, v.isArrayBuffer = ke, v.isArrayEqual = ce, v.isAscii = G, v.objectFromMap = ve, v.objectSize = fe, v.setVerbosityLevel = U, v.shadow = S, v.string32 = le, v.stringToBytes = ie, v.stringToPDFString =
|
|
3469
|
+
}), v.VerbosityLevel = v.Util = v.UnknownErrorException = v.UnexpectedResponseException = v.UNSUPPORTED_FEATURES = v.TextRenderingMode = v.StreamType = v.RenderingIntentFlag = v.PermissionFlag = v.PasswordResponses = v.PasswordException = v.PageActionEventType = v.OPS = v.MissingPDFException = v.LINE_FACTOR = v.LINE_DESCENT_FACTOR = v.InvalidPDFException = v.ImageKind = v.IDENTITY_MATRIX = v.FormatError = v.FontType = v.FeatureTest = v.FONT_IDENTITY_MATRIX = v.DocumentActionEventType = v.CMapCompressionType = v.BaseException = v.AnnotationType = v.AnnotationStateModelType = v.AnnotationReviewState = v.AnnotationReplyType = v.AnnotationMode = v.AnnotationMarkedState = v.AnnotationFlag = v.AnnotationFieldFlag = v.AnnotationEditorType = v.AnnotationEditorPrefix = v.AnnotationEditorParamsType = v.AnnotationBorderStyleType = v.AnnotationActionEventType = v.AbortException = void 0, v.arrayByteLength = se, v.arraysToBytes = he, v.assert = Se, v.bytesToString = J, v.createPromiseCapability = Be, v.createValidAbsoluteUrl = C, v.escapeString = Q, v.getModificationDate = Re, v.getVerbosityLevel = I, v.info = ee, v.isArrayBuffer = ke, v.isArrayEqual = ce, v.isAscii = G, v.objectFromMap = ve, v.objectSize = fe, v.setVerbosityLevel = U, v.shadow = S, v.string32 = le, v.stringToBytes = ie, v.stringToPDFString = H, v.stringToUTF16BEString = V, v.stringToUTF8String = oe, v.unreachable = ye, v.utf8StringToString = _e, v.warn = de, n(2);
|
|
3464
3470
|
const o = [1, 0, 0, 1, 0, 0];
|
|
3465
3471
|
v.IDENTITY_MATRIX = o;
|
|
3466
3472
|
const c = [1e-3, 0, 0, 1e-3, 0, 0];
|
|
@@ -3943,7 +3949,7 @@ var Kr = cr(function(Le, Ee) {
|
|
|
3943
3949
|
return String.fromCharCode.apply(null, ge);
|
|
3944
3950
|
const be = [];
|
|
3945
3951
|
for (let We = 0; We < te; We += ae) {
|
|
3946
|
-
const
|
|
3952
|
+
const Ve = Math.min(We + ae, te), me = ge.subarray(We, Ve);
|
|
3947
3953
|
be.push(String.fromCharCode.apply(null, me));
|
|
3948
3954
|
}
|
|
3949
3955
|
return be.join("");
|
|
@@ -3967,12 +3973,12 @@ var Kr = cr(function(Le, Ee) {
|
|
|
3967
3973
|
if (te === 1 && ge[0] instanceof Uint8Array)
|
|
3968
3974
|
return ge[0];
|
|
3969
3975
|
let ae = 0;
|
|
3970
|
-
for (let
|
|
3971
|
-
ae += se(ge[
|
|
3976
|
+
for (let Ve = 0; Ve < te; Ve++)
|
|
3977
|
+
ae += se(ge[Ve]);
|
|
3972
3978
|
let be = 0;
|
|
3973
3979
|
const We = new Uint8Array(ae);
|
|
3974
|
-
for (let
|
|
3975
|
-
let me = ge[
|
|
3980
|
+
for (let Ve = 0; Ve < te; Ve++) {
|
|
3981
|
+
let me = ge[Ve];
|
|
3976
3982
|
me instanceof Uint8Array || (typeof me == "string" ? me = ie(me) : me = new Uint8Array(me));
|
|
3977
3983
|
const ue = me.byteLength;
|
|
3978
3984
|
We.set(me, be), be += ue;
|
|
@@ -4027,12 +4033,12 @@ var Kr = cr(function(Le, Ee) {
|
|
|
4027
4033
|
return [be, We];
|
|
4028
4034
|
}
|
|
4029
4035
|
static applyInverseTransform(te, ae) {
|
|
4030
|
-
const be = ae[0] * ae[3] - ae[1] * ae[2], We = (te[0] * ae[3] - te[1] * ae[2] + ae[2] * ae[5] - ae[4] * ae[3]) / be,
|
|
4031
|
-
return [We,
|
|
4036
|
+
const be = ae[0] * ae[3] - ae[1] * ae[2], We = (te[0] * ae[3] - te[1] * ae[2] + ae[2] * ae[5] - ae[4] * ae[3]) / be, Ve = (-te[0] * ae[1] + te[1] * ae[0] + ae[4] * ae[1] - ae[5] * ae[0]) / be;
|
|
4037
|
+
return [We, Ve];
|
|
4032
4038
|
}
|
|
4033
4039
|
static getAxialAlignedBoundingBox(te, ae) {
|
|
4034
|
-
const be = Fe.applyTransform(te, ae), We = Fe.applyTransform(te.slice(2, 4), ae),
|
|
4035
|
-
return [Math.min(be[0], We[0],
|
|
4040
|
+
const be = Fe.applyTransform(te, ae), We = Fe.applyTransform(te.slice(2, 4), ae), Ve = Fe.applyTransform([te[0], te[3]], ae), me = Fe.applyTransform([te[2], te[1]], ae);
|
|
4041
|
+
return [Math.min(be[0], We[0], Ve[0], me[0]), Math.min(be[1], We[1], Ve[1], me[1]), Math.max(be[0], We[0], Ve[0], me[0]), Math.max(be[1], We[1], Ve[1], me[1])];
|
|
4036
4042
|
}
|
|
4037
4043
|
static inverseTransform(te) {
|
|
4038
4044
|
const ae = te[0] * te[3] - te[1] * te[2];
|
|
@@ -4042,7 +4048,7 @@ var Kr = cr(function(Le, Ee) {
|
|
|
4042
4048
|
return [te[0] * ae[0] + te[1] * ae[1] + te[2] * ae[2], te[3] * ae[0] + te[4] * ae[1] + te[5] * ae[2], te[6] * ae[0] + te[7] * ae[1] + te[8] * ae[2]];
|
|
4043
4049
|
}
|
|
4044
4050
|
static singularValueDecompose2dScale(te) {
|
|
4045
|
-
const ae = [te[0], te[2], te[1], te[3]], be = te[0] * ae[0] + te[1] * ae[2], We = te[0] * ae[1] + te[1] * ae[3],
|
|
4051
|
+
const ae = [te[0], te[2], te[1], te[3]], be = te[0] * ae[0] + te[1] * ae[2], We = te[0] * ae[1] + te[1] * ae[3], Ve = te[2] * ae[0] + te[3] * ae[2], me = te[2] * ae[1] + te[3] * ae[3], ue = (be + me) / 2, xe = Math.sqrt((be + me) ** 2 - 4 * (be * me - Ve * We)) / 2, Ne = ue + xe || 1, $e = ue - xe || 1;
|
|
4046
4052
|
return [Math.sqrt(Ne), Math.sqrt($e)];
|
|
4047
4053
|
}
|
|
4048
4054
|
static normalizeRect(te) {
|
|
@@ -4053,31 +4059,31 @@ var Kr = cr(function(Le, Ee) {
|
|
|
4053
4059
|
const be = Math.max(Math.min(te[0], te[2]), Math.min(ae[0], ae[2])), We = Math.min(Math.max(te[0], te[2]), Math.max(ae[0], ae[2]));
|
|
4054
4060
|
if (be > We)
|
|
4055
4061
|
return null;
|
|
4056
|
-
const
|
|
4057
|
-
return
|
|
4062
|
+
const Ve = Math.max(Math.min(te[1], te[3]), Math.min(ae[1], ae[3])), me = Math.min(Math.max(te[1], te[3]), Math.max(ae[1], ae[3]));
|
|
4063
|
+
return Ve > me ? null : [be, Ve, We, me];
|
|
4058
4064
|
}
|
|
4059
|
-
static bezierBoundingBox(te, ae, be, We,
|
|
4065
|
+
static bezierBoundingBox(te, ae, be, We, Ve, me, ue, xe) {
|
|
4060
4066
|
const Ne = [], $e = [[], []];
|
|
4061
|
-
let Ge, Xe,
|
|
4067
|
+
let Ge, Xe, He, je, Ze, ct, tt, at;
|
|
4062
4068
|
for (let st = 0; st < 2; ++st) {
|
|
4063
|
-
if (st === 0 ? (Xe = 6 * te - 12 * be + 6 *
|
|
4069
|
+
if (st === 0 ? (Xe = 6 * te - 12 * be + 6 * Ve, Ge = -3 * te + 9 * be - 9 * Ve + 3 * ue, He = 3 * be - 3 * te) : (Xe = 6 * ae - 12 * We + 6 * me, Ge = -3 * ae + 9 * We - 9 * me + 3 * xe, He = 3 * We - 3 * ae), Math.abs(Ge) < 1e-12) {
|
|
4064
4070
|
if (Math.abs(Xe) < 1e-12)
|
|
4065
4071
|
continue;
|
|
4066
|
-
je = -
|
|
4072
|
+
je = -He / Xe, 0 < je && je < 1 && Ne.push(je);
|
|
4067
4073
|
continue;
|
|
4068
4074
|
}
|
|
4069
|
-
tt = Xe * Xe - 4 *
|
|
4075
|
+
tt = Xe * Xe - 4 * He * Ge, at = Math.sqrt(tt), !(tt < 0) && (Ze = (-Xe + at) / (2 * Ge), 0 < Ze && Ze < 1 && Ne.push(Ze), ct = (-Xe - at) / (2 * Ge), 0 < ct && ct < 1 && Ne.push(ct));
|
|
4070
4076
|
}
|
|
4071
4077
|
let ut = Ne.length, nt;
|
|
4072
4078
|
const ht = ut;
|
|
4073
4079
|
for (; ut--; )
|
|
4074
|
-
je = Ne[ut], nt = 1 - je, $e[0][ut] = nt * nt * nt * te + 3 * nt * nt * je * be + 3 * nt * je * je *
|
|
4080
|
+
je = Ne[ut], nt = 1 - je, $e[0][ut] = nt * nt * nt * te + 3 * nt * nt * je * be + 3 * nt * je * je * Ve + je * je * je * ue, $e[1][ut] = nt * nt * nt * ae + 3 * nt * nt * je * We + 3 * nt * je * je * me + je * je * je * xe;
|
|
4075
4081
|
return $e[0][ht] = te, $e[1][ht] = ae, $e[0][ht + 1] = ue, $e[1][ht + 1] = xe, $e[0].length = $e[1].length = ht + 2, [Math.min(...$e[0]), Math.min(...$e[1]), Math.max(...$e[0]), Math.max(...$e[1])];
|
|
4076
4082
|
}
|
|
4077
4083
|
}
|
|
4078
4084
|
v.Util = Fe;
|
|
4079
4085
|
const Pe = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 728, 711, 710, 729, 733, 731, 730, 732, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8226, 8224, 8225, 8230, 8212, 8211, 402, 8260, 8249, 8250, 8722, 8240, 8222, 8220, 8221, 8216, 8217, 8218, 8482, 64257, 64258, 321, 338, 352, 376, 381, 305, 322, 339, 353, 382, 0, 8364];
|
|
4080
|
-
function
|
|
4086
|
+
function H(ge) {
|
|
4081
4087
|
if (ge[0] >= "\xEF") {
|
|
4082
4088
|
let ae;
|
|
4083
4089
|
if (ge[0] === "\xFE" && ge[1] === "\xFF" ? ae = "utf-16be" : ge[0] === "\xFF" && ge[1] === "\xFE" ? ae = "utf-16le" : ge[0] === "\xEF" && ge[1] === "\xBB" && ge[2] === "\xBF" && (ae = "utf-8"), ae)
|
|
@@ -4104,7 +4110,7 @@ var Kr = cr(function(Le, Ee) {
|
|
|
4104
4110
|
function G(ge) {
|
|
4105
4111
|
return /^[\x00-\x7F]*$/.test(ge);
|
|
4106
4112
|
}
|
|
4107
|
-
function
|
|
4113
|
+
function V(ge) {
|
|
4108
4114
|
const te = ["\xFE\xFF"];
|
|
4109
4115
|
for (let ae = 0, be = ge.length; ae < be; ae++) {
|
|
4110
4116
|
const We = ge.charCodeAt(ae);
|
|
@@ -4160,9 +4166,9 @@ var Kr = cr(function(Le, Ee) {
|
|
|
4160
4166
|
return Buffer.from(T, "base64").toString("binary");
|
|
4161
4167
|
});
|
|
4162
4168
|
}(), function() {
|
|
4163
|
-
globalThis.DOMMatrix || !o.isNodeJS || (globalThis.DOMMatrix =
|
|
4169
|
+
globalThis.DOMMatrix || !o.isNodeJS || (globalThis.DOMMatrix = zn.exports);
|
|
4164
4170
|
}(), function() {
|
|
4165
|
-
globalThis.ReadableStream || !o.isNodeJS || (globalThis.ReadableStream =
|
|
4171
|
+
globalThis.ReadableStream || !o.isNodeJS || (globalThis.ReadableStream = Kr.exports.ReadableStream);
|
|
4166
4172
|
}(), function() {
|
|
4167
4173
|
Array.prototype.at || n(4);
|
|
4168
4174
|
}(), function() {
|
|
@@ -5606,11 +5612,11 @@ var Kr = cr(function(Le, Ee) {
|
|
|
5606
5612
|
var Re = ce(new T.AggregateError([1], fe, { cause: 3 }));
|
|
5607
5613
|
return Re.name != "AggregateError" || Re.errors[0] != 1 || Re.message != fe || Re.cause != 3;
|
|
5608
5614
|
});
|
|
5609
|
-
}, Fe = T.structuredClone, Pe = o || !Oe(Fe, re) || !Oe(Fe, S) || !ze(Fe),
|
|
5615
|
+
}, Fe = T.structuredClone, Pe = o || !Oe(Fe, re) || !Oe(Fe, S) || !ze(Fe), H = !Fe && Ce(function(ce) {
|
|
5610
5616
|
return new de(fe, { detail: ce }).detail;
|
|
5611
|
-
}), Q = Ce(Fe) ||
|
|
5617
|
+
}), Q = Ce(Fe) || H, G = function(ce) {
|
|
5612
5618
|
throw new S("Uncloneable type: " + ce, ve);
|
|
5613
|
-
},
|
|
5619
|
+
}, V = function(ce, Re) {
|
|
5614
5620
|
throw new S((Re || "Cloning") + " of " + ce + " cannot be properly polyfilled in this engine", ve);
|
|
5615
5621
|
}, oe = function(ce, Re) {
|
|
5616
5622
|
if (l(ce) && G("Symbol"), !r(ce))
|
|
@@ -5620,7 +5626,7 @@ var Kr = cr(function(Le, Ee) {
|
|
|
5620
5626
|
return _(Re, ce);
|
|
5621
5627
|
} else
|
|
5622
5628
|
Re = new j();
|
|
5623
|
-
var Be = w(ce), ge = !1, te, ae, be, We,
|
|
5629
|
+
var Be = w(ce), ge = !1, te, ae, be, We, Ve, me, ue, xe, Ne, $e;
|
|
5624
5630
|
switch (Be) {
|
|
5625
5631
|
case "Array":
|
|
5626
5632
|
be = [], ge = !0;
|
|
@@ -5689,28 +5695,28 @@ var Kr = cr(function(Le, Ee) {
|
|
|
5689
5695
|
case "Float64Array":
|
|
5690
5696
|
case "BigInt64Array":
|
|
5691
5697
|
case "BigUint64Array":
|
|
5692
|
-
te = T[Be], r(te) ||
|
|
5698
|
+
te = T[Be], r(te) || V(Be), be = new te(oe(ce.buffer, Re), ce.byteOffset, Be === "DataView" ? ce.byteLength : ce.length);
|
|
5693
5699
|
break;
|
|
5694
5700
|
case "DOMQuad":
|
|
5695
5701
|
try {
|
|
5696
5702
|
be = new DOMQuad(oe(ce.p1, Re), oe(ce.p2, Re), oe(ce.p3, Re), oe(ce.p4, Re));
|
|
5697
5703
|
} catch {
|
|
5698
|
-
Q ? be = Q(ce) :
|
|
5704
|
+
Q ? be = Q(ce) : V(Be);
|
|
5699
5705
|
}
|
|
5700
5706
|
break;
|
|
5701
5707
|
case "FileList":
|
|
5702
5708
|
if (te = T.DataTransfer, D(te)) {
|
|
5703
|
-
for (We = new te(),
|
|
5704
|
-
We.items.add(oe(ce[
|
|
5709
|
+
for (We = new te(), Ve = 0, me = u(ce); Ve < me; Ve++)
|
|
5710
|
+
We.items.add(oe(ce[Ve], Re));
|
|
5705
5711
|
be = We.files;
|
|
5706
5712
|
} else
|
|
5707
|
-
Q ? be = Q(ce) :
|
|
5713
|
+
Q ? be = Q(ce) : V(Be);
|
|
5708
5714
|
break;
|
|
5709
5715
|
case "ImageData":
|
|
5710
5716
|
try {
|
|
5711
5717
|
be = new ImageData(oe(ce.data, Re), ce.width, ce.height, { colorSpace: ce.colorSpace });
|
|
5712
5718
|
} catch {
|
|
5713
|
-
Q ? be = Q(ce) :
|
|
5719
|
+
Q ? be = Q(ce) : V(Be);
|
|
5714
5720
|
}
|
|
5715
5721
|
break;
|
|
5716
5722
|
default:
|
|
@@ -5734,13 +5740,13 @@ var Kr = cr(function(Le, Ee) {
|
|
|
5734
5740
|
be = new q(le(ce));
|
|
5735
5741
|
break;
|
|
5736
5742
|
case "ArrayBuffer":
|
|
5737
|
-
te = T.DataView, !te && typeof ce.slice != "function" &&
|
|
5743
|
+
te = T.DataView, !te && typeof ce.slice != "function" && V(Be);
|
|
5738
5744
|
try {
|
|
5739
5745
|
if (typeof ce.slice == "function")
|
|
5740
5746
|
be = ce.slice(0);
|
|
5741
5747
|
else
|
|
5742
|
-
for (me = ce.byteLength, be = new ArrayBuffer(me), Ne = new te(ce), $e = new te(be),
|
|
5743
|
-
$e.setUint8(
|
|
5748
|
+
for (me = ce.byteLength, be = new ArrayBuffer(me), Ne = new te(ce), $e = new te(be), Ve = 0; Ve < me; Ve++)
|
|
5749
|
+
$e.setUint8(Ve, Ne.getUint8(Ve));
|
|
5744
5750
|
} catch {
|
|
5745
5751
|
throw new S("ArrayBuffer is detached", ve);
|
|
5746
5752
|
}
|
|
@@ -5752,7 +5758,7 @@ var Kr = cr(function(Le, Ee) {
|
|
|
5752
5758
|
try {
|
|
5753
5759
|
be = ce.slice(0, ce.size, ce.type);
|
|
5754
5760
|
} catch {
|
|
5755
|
-
|
|
5761
|
+
V(Be);
|
|
5756
5762
|
}
|
|
5757
5763
|
break;
|
|
5758
5764
|
case "DOMPoint":
|
|
@@ -5761,7 +5767,7 @@ var Kr = cr(function(Le, Ee) {
|
|
|
5761
5767
|
try {
|
|
5762
5768
|
be = te.fromPoint ? te.fromPoint(ce) : new te(ce.x, ce.y, ce.z, ce.w);
|
|
5763
5769
|
} catch {
|
|
5764
|
-
|
|
5770
|
+
V(Be);
|
|
5765
5771
|
}
|
|
5766
5772
|
break;
|
|
5767
5773
|
case "DOMRect":
|
|
@@ -5770,7 +5776,7 @@ var Kr = cr(function(Le, Ee) {
|
|
|
5770
5776
|
try {
|
|
5771
5777
|
be = te.fromRect ? te.fromRect(ce) : new te(ce.x, ce.y, ce.width, ce.height);
|
|
5772
5778
|
} catch {
|
|
5773
|
-
|
|
5779
|
+
V(Be);
|
|
5774
5780
|
}
|
|
5775
5781
|
break;
|
|
5776
5782
|
case "DOMMatrix":
|
|
@@ -5779,12 +5785,12 @@ var Kr = cr(function(Le, Ee) {
|
|
|
5779
5785
|
try {
|
|
5780
5786
|
be = te.fromMatrix ? te.fromMatrix(ce) : new te(ce);
|
|
5781
5787
|
} catch {
|
|
5782
|
-
|
|
5788
|
+
V(Be);
|
|
5783
5789
|
}
|
|
5784
5790
|
break;
|
|
5785
5791
|
case "AudioData":
|
|
5786
5792
|
case "VideoFrame":
|
|
5787
|
-
y(ce.clone) ||
|
|
5793
|
+
y(ce.clone) || V(Be);
|
|
5788
5794
|
try {
|
|
5789
5795
|
be = ce.clone();
|
|
5790
5796
|
} catch {
|
|
@@ -5795,7 +5801,7 @@ var Kr = cr(function(Le, Ee) {
|
|
|
5795
5801
|
try {
|
|
5796
5802
|
be = new File([ce], ce.name, ce);
|
|
5797
5803
|
} catch {
|
|
5798
|
-
|
|
5804
|
+
V(Be);
|
|
5799
5805
|
}
|
|
5800
5806
|
break;
|
|
5801
5807
|
case "CryptoKey":
|
|
@@ -5804,7 +5810,7 @@ var Kr = cr(function(Le, Ee) {
|
|
|
5804
5810
|
case "ImageBitmap":
|
|
5805
5811
|
case "RTCCertificate":
|
|
5806
5812
|
case "WebAssembly.Module":
|
|
5807
|
-
|
|
5813
|
+
V(Be);
|
|
5808
5814
|
default:
|
|
5809
5815
|
G(Be);
|
|
5810
5816
|
}
|
|
@@ -5813,8 +5819,8 @@ var Kr = cr(function(Le, Ee) {
|
|
|
5813
5819
|
switch (Be) {
|
|
5814
5820
|
case "Array":
|
|
5815
5821
|
case "Object":
|
|
5816
|
-
for (ue = X(ce),
|
|
5817
|
-
xe = ue[
|
|
5822
|
+
for (ue = X(ce), Ve = 0, me = u(ue); Ve < me; Ve++)
|
|
5823
|
+
xe = ue[Ve], p(be, xe, oe(ce[xe], Re));
|
|
5818
5824
|
break;
|
|
5819
5825
|
case "Map":
|
|
5820
5826
|
ce.forEach(function(Ge, Xe) {
|
|
@@ -5844,17 +5850,17 @@ var Kr = cr(function(Le, Ee) {
|
|
|
5844
5850
|
A(ce, function(Ne) {
|
|
5845
5851
|
J(Be, h(Ne));
|
|
5846
5852
|
});
|
|
5847
|
-
var ge = 0, te = u(Be), ae, be, We,
|
|
5853
|
+
var ge = 0, te = u(Be), ae, be, We, Ve, me, ue, xe;
|
|
5848
5854
|
if (_e)
|
|
5849
|
-
for (
|
|
5850
|
-
M(Re, Be[ge],
|
|
5855
|
+
for (Ve = Fe(Be, { transfer: Be }); ge < te; )
|
|
5856
|
+
M(Re, Be[ge], Ve[ge++]);
|
|
5851
5857
|
else
|
|
5852
5858
|
for (; ge < te; ) {
|
|
5853
5859
|
if (ae = Be[ge++], d(Re, ae))
|
|
5854
5860
|
throw new S("Duplicate transferable", ve);
|
|
5855
5861
|
switch (be = w(ae), be) {
|
|
5856
5862
|
case "ImageBitmap":
|
|
5857
|
-
We = T.OffscreenCanvas, D(We) ||
|
|
5863
|
+
We = T.OffscreenCanvas, D(We) || V(be, we);
|
|
5858
5864
|
try {
|
|
5859
5865
|
ue = new We(ae.width, ae.height), xe = ue.getContext("bitmaprenderer"), xe.transferFromImageBitmap(ae), me = ue.transferToImageBitmap();
|
|
5860
5866
|
} catch {
|
|
@@ -5862,7 +5868,7 @@ var Kr = cr(function(Le, Ee) {
|
|
|
5862
5868
|
break;
|
|
5863
5869
|
case "AudioData":
|
|
5864
5870
|
case "VideoFrame":
|
|
5865
|
-
(!y(ae.clone) || !y(ae.close)) &&
|
|
5871
|
+
(!y(ae.clone) || !y(ae.close)) && V(be, we);
|
|
5866
5872
|
try {
|
|
5867
5873
|
me = ae.clone(), ae.close();
|
|
5868
5874
|
} catch {
|
|
@@ -5874,7 +5880,7 @@ var Kr = cr(function(Le, Ee) {
|
|
|
5874
5880
|
case "ReadableStream":
|
|
5875
5881
|
case "TransformStream":
|
|
5876
5882
|
case "WritableStream":
|
|
5877
|
-
|
|
5883
|
+
V(be, we);
|
|
5878
5884
|
}
|
|
5879
5885
|
if (me === void 0)
|
|
5880
5886
|
throw new S("This object cannot be transferred: " + be, ve);
|
|
@@ -5974,59 +5980,59 @@ var Kr = cr(function(Le, Ee) {
|
|
|
5974
5980
|
value: !0
|
|
5975
5981
|
}), v.build = v.RenderTask = v.PDFWorkerUtil = v.PDFWorker = v.PDFPageProxy = v.PDFDocumentProxy = v.PDFDocumentLoadingTask = v.PDFDataRangeTransport = v.LoopbackPort = v.DefaultStandardFontDataFactory = v.DefaultCanvasFactory = v.DefaultCMapReaderFactory = void 0, v.getDocument = I, v.setPDFNetworkStreamFactory = U, v.version = void 0;
|
|
5976
5982
|
var o = n(1), c = n(130), T = n(133), R = n(136), O = n(137), P = n(140), m = n(3), y = n(141), D = n(142), r = n(143), l = n(144), A = n(145);
|
|
5977
|
-
function h(Pe,
|
|
5978
|
-
p(Pe,
|
|
5983
|
+
function h(Pe, H) {
|
|
5984
|
+
p(Pe, H), H.add(Pe);
|
|
5979
5985
|
}
|
|
5980
|
-
function w(Pe,
|
|
5981
|
-
if (!
|
|
5986
|
+
function w(Pe, H, Q) {
|
|
5987
|
+
if (!H.has(Pe))
|
|
5982
5988
|
throw new TypeError("attempted to get private field on non-instance");
|
|
5983
5989
|
return Q;
|
|
5984
5990
|
}
|
|
5985
|
-
function F(Pe,
|
|
5986
|
-
p(Pe,
|
|
5991
|
+
function F(Pe, H, Q) {
|
|
5992
|
+
p(Pe, H), H.set(Pe, Q);
|
|
5987
5993
|
}
|
|
5988
|
-
function p(Pe,
|
|
5989
|
-
if (
|
|
5994
|
+
function p(Pe, H) {
|
|
5995
|
+
if (H.has(Pe))
|
|
5990
5996
|
throw new TypeError("Cannot initialize the same private elements twice on an object");
|
|
5991
5997
|
}
|
|
5992
|
-
function b(Pe,
|
|
5993
|
-
var G = t(Pe,
|
|
5998
|
+
function b(Pe, H, Q) {
|
|
5999
|
+
var G = t(Pe, H, "set");
|
|
5994
6000
|
return f(Pe, G, Q), Q;
|
|
5995
6001
|
}
|
|
5996
|
-
function u(Pe,
|
|
5997
|
-
var Q = t(Pe,
|
|
6002
|
+
function u(Pe, H) {
|
|
6003
|
+
var Q = t(Pe, H, "get");
|
|
5998
6004
|
return k(Pe, Q);
|
|
5999
6005
|
}
|
|
6000
|
-
function t(Pe,
|
|
6001
|
-
if (!
|
|
6006
|
+
function t(Pe, H, Q) {
|
|
6007
|
+
if (!H.has(Pe))
|
|
6002
6008
|
throw new TypeError("attempted to " + Q + " private field on non-instance");
|
|
6003
|
-
return
|
|
6009
|
+
return H.get(Pe);
|
|
6004
6010
|
}
|
|
6005
|
-
function a(Pe,
|
|
6006
|
-
return W(Pe,
|
|
6011
|
+
function a(Pe, H, Q, G) {
|
|
6012
|
+
return W(Pe, H), E(Q, "set"), f(Pe, Q, G), G;
|
|
6007
6013
|
}
|
|
6008
|
-
function f(Pe,
|
|
6009
|
-
if (
|
|
6010
|
-
|
|
6014
|
+
function f(Pe, H, Q) {
|
|
6015
|
+
if (H.set)
|
|
6016
|
+
H.set.call(Pe, Q);
|
|
6011
6017
|
else {
|
|
6012
|
-
if (!
|
|
6018
|
+
if (!H.writable)
|
|
6013
6019
|
throw new TypeError("attempted to set read only private field");
|
|
6014
|
-
|
|
6020
|
+
H.value = Q;
|
|
6015
6021
|
}
|
|
6016
6022
|
}
|
|
6017
|
-
function g(Pe,
|
|
6018
|
-
return W(Pe,
|
|
6023
|
+
function g(Pe, H, Q) {
|
|
6024
|
+
return W(Pe, H), E(Q, "get"), k(Pe, Q);
|
|
6019
6025
|
}
|
|
6020
|
-
function E(Pe,
|
|
6026
|
+
function E(Pe, H) {
|
|
6021
6027
|
if (Pe === void 0)
|
|
6022
|
-
throw new TypeError("attempted to " +
|
|
6028
|
+
throw new TypeError("attempted to " + H + " private static field before its declaration");
|
|
6023
6029
|
}
|
|
6024
|
-
function W(Pe,
|
|
6025
|
-
if (Pe !==
|
|
6030
|
+
function W(Pe, H) {
|
|
6031
|
+
if (Pe !== H)
|
|
6026
6032
|
throw new TypeError("Private static access of wrong provenance");
|
|
6027
6033
|
}
|
|
6028
|
-
function k(Pe,
|
|
6029
|
-
return
|
|
6034
|
+
function k(Pe, H) {
|
|
6035
|
+
return H.get ? H.get.call(Pe) : H.value;
|
|
6030
6036
|
}
|
|
6031
6037
|
const ne = 65536, q = 100;
|
|
6032
6038
|
let re = T.DOMCanvasFactory;
|
|
@@ -6037,17 +6043,17 @@ var Kr = cr(function(Le, Ee) {
|
|
|
6037
6043
|
if (v.DefaultStandardFontDataFactory = z, m.isNodeJS) {
|
|
6038
6044
|
const {
|
|
6039
6045
|
NodeCanvasFactory: Pe,
|
|
6040
|
-
NodeCMapReaderFactory:
|
|
6046
|
+
NodeCMapReaderFactory: H,
|
|
6041
6047
|
NodeStandardFontDataFactory: Q
|
|
6042
6048
|
} = n(146);
|
|
6043
|
-
v.DefaultCanvasFactory = re = Pe, v.DefaultCMapReaderFactory = Z =
|
|
6049
|
+
v.DefaultCanvasFactory = re = Pe, v.DefaultCMapReaderFactory = Z = H, v.DefaultStandardFontDataFactory = z = Q;
|
|
6044
6050
|
}
|
|
6045
6051
|
let $;
|
|
6046
6052
|
function U(Pe) {
|
|
6047
6053
|
$ = Pe;
|
|
6048
6054
|
}
|
|
6049
6055
|
function I(Pe) {
|
|
6050
|
-
const
|
|
6056
|
+
const H = new de();
|
|
6051
6057
|
let Q;
|
|
6052
6058
|
if (typeof Pe == "string" || Pe instanceof URL)
|
|
6053
6059
|
Q = {
|
|
@@ -6069,7 +6075,7 @@ var Kr = cr(function(Le, Ee) {
|
|
|
6069
6075
|
Q = Pe;
|
|
6070
6076
|
}
|
|
6071
6077
|
const G = /* @__PURE__ */ Object.create(null);
|
|
6072
|
-
let
|
|
6078
|
+
let V = null, oe = null;
|
|
6073
6079
|
for (const ke in Q) {
|
|
6074
6080
|
const ce = Q[ke];
|
|
6075
6081
|
switch (ke) {
|
|
@@ -6087,7 +6093,7 @@ var Kr = cr(function(Le, Ee) {
|
|
|
6087
6093
|
}
|
|
6088
6094
|
throw new Error("Invalid PDF url data: either string or URL-object is expected in the url property.");
|
|
6089
6095
|
case "range":
|
|
6090
|
-
|
|
6096
|
+
V = ce;
|
|
6091
6097
|
continue;
|
|
6092
6098
|
case "worker":
|
|
6093
6099
|
oe = ce;
|
|
@@ -6116,22 +6122,22 @@ var Kr = cr(function(Le, Ee) {
|
|
|
6116
6122
|
verbosity: G.verbosity,
|
|
6117
6123
|
port: P.GlobalWorkerOptions.workerPort
|
|
6118
6124
|
};
|
|
6119
|
-
oe = ke.port ? d.fromPort(ke) : new d(ke),
|
|
6125
|
+
oe = ke.port ? d.fromPort(ke) : new d(ke), H._worker = oe;
|
|
6120
6126
|
}
|
|
6121
|
-
const _e =
|
|
6127
|
+
const _e = H.docId;
|
|
6122
6128
|
return oe.promise.then(function() {
|
|
6123
|
-
if (
|
|
6129
|
+
if (H.destroyed)
|
|
6124
6130
|
throw new Error("Loading aborted");
|
|
6125
|
-
const ke = ee(oe, G,
|
|
6131
|
+
const ke = ee(oe, G, V, _e), ce = new Promise(function(Re) {
|
|
6126
6132
|
let Be;
|
|
6127
|
-
|
|
6133
|
+
V ? Be = new l.PDFDataTransportStream({
|
|
6128
6134
|
length: G.length,
|
|
6129
6135
|
initialData: G.initialData,
|
|
6130
6136
|
progressiveDone: G.progressiveDone,
|
|
6131
6137
|
contentDispositionFilename: G.contentDispositionFilename,
|
|
6132
6138
|
disableRange: G.disableRange,
|
|
6133
6139
|
disableStream: G.disableStream
|
|
6134
|
-
},
|
|
6140
|
+
}, V) : G.data || (Be = $({
|
|
6135
6141
|
url: G.url,
|
|
6136
6142
|
length: G.length,
|
|
6137
6143
|
httpHeaders: G.httpHeaders,
|
|
@@ -6143,54 +6149,54 @@ var Kr = cr(function(Le, Ee) {
|
|
|
6143
6149
|
});
|
|
6144
6150
|
return Promise.all([ke, ce]).then(function(Re) {
|
|
6145
6151
|
let [Be, ge] = Re;
|
|
6146
|
-
if (
|
|
6152
|
+
if (H.destroyed)
|
|
6147
6153
|
throw new Error("Loading aborted");
|
|
6148
|
-
const te = new y.MessageHandler(_e, Be, oe.port), ae = new ie(te,
|
|
6149
|
-
|
|
6154
|
+
const te = new y.MessageHandler(_e, Be, oe.port), ae = new ie(te, H, ge, G);
|
|
6155
|
+
H._transport = ae, te.send("Ready", null);
|
|
6150
6156
|
});
|
|
6151
|
-
}).catch(
|
|
6157
|
+
}).catch(H._capability.reject), H;
|
|
6152
6158
|
}
|
|
6153
|
-
async function ee(Pe,
|
|
6159
|
+
async function ee(Pe, H, Q, G) {
|
|
6154
6160
|
if (Pe.destroyed)
|
|
6155
6161
|
throw new Error("Worker was destroyed");
|
|
6156
|
-
Q && (
|
|
6157
|
-
const
|
|
6162
|
+
Q && (H.length = Q.length, H.initialData = Q.initialData, H.progressiveDone = Q.progressiveDone, H.contentDispositionFilename = Q.contentDispositionFilename);
|
|
6163
|
+
const V = await Pe.messageHandler.sendWithPromise("GetDocRequest", {
|
|
6158
6164
|
docId: G,
|
|
6159
6165
|
apiVersion: "2.16.105",
|
|
6160
6166
|
source: {
|
|
6161
|
-
data:
|
|
6162
|
-
url:
|
|
6163
|
-
password:
|
|
6164
|
-
disableAutoFetch:
|
|
6165
|
-
rangeChunkSize:
|
|
6166
|
-
length:
|
|
6167
|
+
data: H.data,
|
|
6168
|
+
url: H.url,
|
|
6169
|
+
password: H.password,
|
|
6170
|
+
disableAutoFetch: H.disableAutoFetch,
|
|
6171
|
+
rangeChunkSize: H.rangeChunkSize,
|
|
6172
|
+
length: H.length
|
|
6167
6173
|
},
|
|
6168
|
-
maxImageSize:
|
|
6169
|
-
disableFontFace:
|
|
6170
|
-
docBaseUrl:
|
|
6171
|
-
ignoreErrors:
|
|
6172
|
-
isEvalSupported:
|
|
6173
|
-
fontExtraProperties:
|
|
6174
|
-
enableXfa:
|
|
6175
|
-
useSystemFonts:
|
|
6176
|
-
cMapUrl:
|
|
6177
|
-
standardFontDataUrl:
|
|
6174
|
+
maxImageSize: H.maxImageSize,
|
|
6175
|
+
disableFontFace: H.disableFontFace,
|
|
6176
|
+
docBaseUrl: H.docBaseUrl,
|
|
6177
|
+
ignoreErrors: H.ignoreErrors,
|
|
6178
|
+
isEvalSupported: H.isEvalSupported,
|
|
6179
|
+
fontExtraProperties: H.fontExtraProperties,
|
|
6180
|
+
enableXfa: H.enableXfa,
|
|
6181
|
+
useSystemFonts: H.useSystemFonts,
|
|
6182
|
+
cMapUrl: H.useWorkerFetch ? H.cMapUrl : null,
|
|
6183
|
+
standardFontDataUrl: H.useWorkerFetch ? H.standardFontDataUrl : null
|
|
6178
6184
|
});
|
|
6179
|
-
if (
|
|
6185
|
+
if (H.data && (H.data = null), Pe.destroyed)
|
|
6180
6186
|
throw new Error("Worker was destroyed");
|
|
6181
|
-
return
|
|
6187
|
+
return V;
|
|
6182
6188
|
}
|
|
6183
6189
|
class de {
|
|
6184
6190
|
constructor() {
|
|
6185
|
-
var
|
|
6186
|
-
this._capability = (0, o.createPromiseCapability)(), this._transport = null, this._worker = null, this.docId = `d${a(de, de, ye, (
|
|
6191
|
+
var H, Q;
|
|
6192
|
+
this._capability = (0, o.createPromiseCapability)(), this._transport = null, this._worker = null, this.docId = `d${a(de, de, ye, (H = g(de, de, ye), Q = H++, H)), Q}`, this.destroyed = !1, this.onPassword = null, this.onProgress = null, this.onUnsupportedFeature = null;
|
|
6187
6193
|
}
|
|
6188
6194
|
get promise() {
|
|
6189
6195
|
return this._capability.promise;
|
|
6190
6196
|
}
|
|
6191
6197
|
async destroy() {
|
|
6192
|
-
var
|
|
6193
|
-
this.destroyed = !0, await ((
|
|
6198
|
+
var H;
|
|
6199
|
+
this.destroyed = !0, await ((H = this._transport) === null || H === void 0 ? void 0 : H.destroy()), this._transport = null, this._worker && (this._worker.destroy(), this._worker = null);
|
|
6194
6200
|
}
|
|
6195
6201
|
}
|
|
6196
6202
|
v.PDFDocumentLoadingTask = de;
|
|
@@ -6199,48 +6205,48 @@ var Kr = cr(function(Le, Ee) {
|
|
|
6199
6205
|
value: 0
|
|
6200
6206
|
};
|
|
6201
6207
|
class Se {
|
|
6202
|
-
constructor(
|
|
6203
|
-
let G = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1,
|
|
6204
|
-
this.length =
|
|
6208
|
+
constructor(H, Q) {
|
|
6209
|
+
let G = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1, V = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : null;
|
|
6210
|
+
this.length = H, this.initialData = Q, this.progressiveDone = G, this.contentDispositionFilename = V, this._rangeListeners = [], this._progressListeners = [], this._progressiveReadListeners = [], this._progressiveDoneListeners = [], this._readyCapability = (0, o.createPromiseCapability)();
|
|
6205
6211
|
}
|
|
6206
|
-
addRangeListener(
|
|
6207
|
-
this._rangeListeners.push(
|
|
6212
|
+
addRangeListener(H) {
|
|
6213
|
+
this._rangeListeners.push(H);
|
|
6208
6214
|
}
|
|
6209
|
-
addProgressListener(
|
|
6210
|
-
this._progressListeners.push(
|
|
6215
|
+
addProgressListener(H) {
|
|
6216
|
+
this._progressListeners.push(H);
|
|
6211
6217
|
}
|
|
6212
|
-
addProgressiveReadListener(
|
|
6213
|
-
this._progressiveReadListeners.push(
|
|
6218
|
+
addProgressiveReadListener(H) {
|
|
6219
|
+
this._progressiveReadListeners.push(H);
|
|
6214
6220
|
}
|
|
6215
|
-
addProgressiveDoneListener(
|
|
6216
|
-
this._progressiveDoneListeners.push(
|
|
6221
|
+
addProgressiveDoneListener(H) {
|
|
6222
|
+
this._progressiveDoneListeners.push(H);
|
|
6217
6223
|
}
|
|
6218
|
-
onDataRange(
|
|
6224
|
+
onDataRange(H, Q) {
|
|
6219
6225
|
for (const G of this._rangeListeners)
|
|
6220
|
-
G(
|
|
6226
|
+
G(H, Q);
|
|
6221
6227
|
}
|
|
6222
|
-
onDataProgress(
|
|
6228
|
+
onDataProgress(H, Q) {
|
|
6223
6229
|
this._readyCapability.promise.then(() => {
|
|
6224
6230
|
for (const G of this._progressListeners)
|
|
6225
|
-
G(
|
|
6231
|
+
G(H, Q);
|
|
6226
6232
|
});
|
|
6227
6233
|
}
|
|
6228
|
-
onDataProgressiveRead(
|
|
6234
|
+
onDataProgressiveRead(H) {
|
|
6229
6235
|
this._readyCapability.promise.then(() => {
|
|
6230
6236
|
for (const Q of this._progressiveReadListeners)
|
|
6231
|
-
Q(
|
|
6237
|
+
Q(H);
|
|
6232
6238
|
});
|
|
6233
6239
|
}
|
|
6234
6240
|
onDataProgressiveDone() {
|
|
6235
6241
|
this._readyCapability.promise.then(() => {
|
|
6236
|
-
for (const
|
|
6237
|
-
|
|
6242
|
+
for (const H of this._progressiveDoneListeners)
|
|
6243
|
+
H();
|
|
6238
6244
|
});
|
|
6239
6245
|
}
|
|
6240
6246
|
transportReady() {
|
|
6241
6247
|
this._readyCapability.resolve();
|
|
6242
6248
|
}
|
|
6243
|
-
requestDataRange(
|
|
6249
|
+
requestDataRange(H, Q) {
|
|
6244
6250
|
(0, o.unreachable)("Abstract method PDFDataRangeTransport.requestDataRange");
|
|
6245
6251
|
}
|
|
6246
6252
|
abort() {
|
|
@@ -6248,8 +6254,8 @@ var Kr = cr(function(Le, Ee) {
|
|
|
6248
6254
|
}
|
|
6249
6255
|
v.PDFDataRangeTransport = Se;
|
|
6250
6256
|
class Y {
|
|
6251
|
-
constructor(
|
|
6252
|
-
this._pdfInfo =
|
|
6257
|
+
constructor(H, Q) {
|
|
6258
|
+
this._pdfInfo = H, this._transport = Q, Object.defineProperty(this, "fingerprint", {
|
|
6253
6259
|
get() {
|
|
6254
6260
|
return (0, T.deprecated)("`PDFDocumentProxy.fingerprint`, please use `PDFDocumentProxy.fingerprints` instead."), this.fingerprints[0];
|
|
6255
6261
|
}
|
|
@@ -6278,17 +6284,17 @@ var Kr = cr(function(Le, Ee) {
|
|
|
6278
6284
|
get allXfaHtml() {
|
|
6279
6285
|
return this._transport._htmlForXfa;
|
|
6280
6286
|
}
|
|
6281
|
-
getPage(
|
|
6282
|
-
return this._transport.getPage(
|
|
6287
|
+
getPage(H) {
|
|
6288
|
+
return this._transport.getPage(H);
|
|
6283
6289
|
}
|
|
6284
|
-
getPageIndex(
|
|
6285
|
-
return this._transport.getPageIndex(
|
|
6290
|
+
getPageIndex(H) {
|
|
6291
|
+
return this._transport.getPageIndex(H);
|
|
6286
6292
|
}
|
|
6287
6293
|
getDestinations() {
|
|
6288
6294
|
return this._transport.getDestinations();
|
|
6289
6295
|
}
|
|
6290
|
-
getDestination(
|
|
6291
|
-
return this._transport.getDestination(
|
|
6296
|
+
getDestination(H) {
|
|
6297
|
+
return this._transport.getDestination(H);
|
|
6292
6298
|
}
|
|
6293
6299
|
getPageLabels() {
|
|
6294
6300
|
return this._transport.getPageLabels();
|
|
@@ -6336,8 +6342,8 @@ var Kr = cr(function(Le, Ee) {
|
|
|
6336
6342
|
return this._transport.downloadInfoCapability.promise;
|
|
6337
6343
|
}
|
|
6338
6344
|
cleanup() {
|
|
6339
|
-
let
|
|
6340
|
-
return this._transport.startCleanup(
|
|
6345
|
+
let H = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1;
|
|
6346
|
+
return this._transport.startCleanup(H || this.isPureXfa);
|
|
6341
6347
|
}
|
|
6342
6348
|
destroy() {
|
|
6343
6349
|
return this.loadingTask.destroy();
|
|
@@ -6363,9 +6369,9 @@ var Kr = cr(function(Le, Ee) {
|
|
|
6363
6369
|
}
|
|
6364
6370
|
v.PDFDocumentProxy = Y;
|
|
6365
6371
|
class C {
|
|
6366
|
-
constructor(
|
|
6372
|
+
constructor(H, Q, G, V) {
|
|
6367
6373
|
let oe = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !1;
|
|
6368
|
-
this._pageIndex =
|
|
6374
|
+
this._pageIndex = H, this._pageInfo = Q, this._ownerDocument = V, this._transport = G, this._stats = oe ? new T.StatTimer() : null, this._pdfBug = oe, this.commonObjs = G.commonObjs, this.objs = new le(), this._bitmaps = /* @__PURE__ */ new Set(), this.cleanupAfterRender = !1, this.pendingCleanup = !1, this._intentStates = /* @__PURE__ */ new Map(), this._annotationPromises = /* @__PURE__ */ new Map(), this.destroyed = !1;
|
|
6369
6375
|
}
|
|
6370
6376
|
get pageNumber() {
|
|
6371
6377
|
return this._pageIndex + 1;
|
|
@@ -6384,29 +6390,29 @@ var Kr = cr(function(Le, Ee) {
|
|
|
6384
6390
|
}
|
|
6385
6391
|
getViewport() {
|
|
6386
6392
|
let {
|
|
6387
|
-
scale:
|
|
6393
|
+
scale: H,
|
|
6388
6394
|
rotation: Q = this.rotate,
|
|
6389
6395
|
offsetX: G = 0,
|
|
6390
|
-
offsetY:
|
|
6396
|
+
offsetY: V = 0,
|
|
6391
6397
|
dontFlip: oe = !1
|
|
6392
6398
|
} = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
6393
6399
|
return new T.PageViewport({
|
|
6394
6400
|
viewBox: this.view,
|
|
6395
|
-
scale:
|
|
6401
|
+
scale: H,
|
|
6396
6402
|
rotation: Q,
|
|
6397
6403
|
offsetX: G,
|
|
6398
|
-
offsetY:
|
|
6404
|
+
offsetY: V,
|
|
6399
6405
|
dontFlip: oe
|
|
6400
6406
|
});
|
|
6401
6407
|
}
|
|
6402
6408
|
getAnnotations() {
|
|
6403
6409
|
let {
|
|
6404
|
-
intent:
|
|
6410
|
+
intent: H = "display"
|
|
6405
6411
|
} = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
6406
|
-
const Q = this._transport.getRenderingIntent(
|
|
6412
|
+
const Q = this._transport.getRenderingIntent(H);
|
|
6407
6413
|
let G = this._annotationPromises.get(Q.cacheKey);
|
|
6408
|
-
return G || (G = this._transport.getAnnotations(this._pageIndex, Q.renderingIntent), this._annotationPromises.set(Q.cacheKey, G), G = G.then((
|
|
6409
|
-
for (const oe of
|
|
6414
|
+
return G || (G = this._transport.getAnnotations(this._pageIndex, Q.renderingIntent), this._annotationPromises.set(Q.cacheKey, G), G = G.then((V) => {
|
|
6415
|
+
for (const oe of V)
|
|
6410
6416
|
oe.titleObj !== void 0 && Object.defineProperty(oe, "title", {
|
|
6411
6417
|
get() {
|
|
6412
6418
|
return (0, T.deprecated)("`title`-property on annotation, please use `titleObj` instead."), oe.titleObj.str;
|
|
@@ -6416,18 +6422,18 @@ var Kr = cr(function(Le, Ee) {
|
|
|
6416
6422
|
return (0, T.deprecated)("`contents`-property on annotation, please use `contentsObj` instead."), oe.contentsObj.str;
|
|
6417
6423
|
}
|
|
6418
6424
|
});
|
|
6419
|
-
return
|
|
6425
|
+
return V;
|
|
6420
6426
|
})), G;
|
|
6421
6427
|
}
|
|
6422
6428
|
getJSActions() {
|
|
6423
6429
|
return this._jsActionsPromise || (this._jsActionsPromise = this._transport.getPageJSActions(this._pageIndex));
|
|
6424
6430
|
}
|
|
6425
6431
|
async getXfa() {
|
|
6426
|
-
var
|
|
6427
|
-
return ((
|
|
6432
|
+
var H;
|
|
6433
|
+
return ((H = this._transport._htmlForXfa) === null || H === void 0 ? void 0 : H.children[this._pageIndex]) || null;
|
|
6428
6434
|
}
|
|
6429
|
-
render(
|
|
6430
|
-
var Q, G,
|
|
6435
|
+
render(H) {
|
|
6436
|
+
var Q, G, V;
|
|
6431
6437
|
let {
|
|
6432
6438
|
canvasContext: oe,
|
|
6433
6439
|
viewport: _e,
|
|
@@ -6440,10 +6446,10 @@ var Kr = cr(function(Le, Ee) {
|
|
|
6440
6446
|
optionalContentConfigPromise: ae = null,
|
|
6441
6447
|
annotationCanvasMap: be = null,
|
|
6442
6448
|
pageColors: We = null,
|
|
6443
|
-
printAnnotationStorage:
|
|
6444
|
-
} =
|
|
6449
|
+
printAnnotationStorage: Ve = null
|
|
6450
|
+
} = H;
|
|
6445
6451
|
((Q = arguments[0]) === null || Q === void 0 ? void 0 : Q.renderInteractiveForms) !== void 0 && ((0, T.deprecated)("render no longer accepts the `renderInteractiveForms`-option, please use the `annotationMode`-option instead."), arguments[0].renderInteractiveForms === !0 && ce === o.AnnotationMode.ENABLE && (ce = o.AnnotationMode.ENABLE_FORMS)), ((G = arguments[0]) === null || G === void 0 ? void 0 : G.includeAnnotationStorage) !== void 0 && ((0, T.deprecated)("render no longer accepts the `includeAnnotationStorage`-option, please use the `annotationMode`-option instead."), arguments[0].includeAnnotationStorage === !0 && ce === o.AnnotationMode.ENABLE && (ce = o.AnnotationMode.ENABLE_STORAGE)), this._stats && this._stats.time("Overall");
|
|
6446
|
-
const me = this._transport.getRenderingIntent(ke, ce,
|
|
6452
|
+
const me = this._transport.getRenderingIntent(ke, ce, Ve);
|
|
6447
6453
|
this.pendingCleanup = !1, ae || (ae = this._transport.getOptionalContentConfig());
|
|
6448
6454
|
let ue = this._intentStates.get(me.cacheKey);
|
|
6449
6455
|
ue || (ue = /* @__PURE__ */ Object.create(null), this._intentStates.set(me.cacheKey, ue)), ue.streamReaderCancelTimeout && (clearTimeout(ue.streamReaderCancelTimeout), ue.streamReaderCancelTimeout = null);
|
|
@@ -6456,10 +6462,10 @@ var Kr = cr(function(Le, Ee) {
|
|
|
6456
6462
|
lastChunk: !1,
|
|
6457
6463
|
separateAnnots: null
|
|
6458
6464
|
}, this._stats && this._stats.time("Page Request"), this._pumpOperatorList(me));
|
|
6459
|
-
const $e = (
|
|
6460
|
-
ue.renderTasks.delete(Ge), (this.cleanupAfterRender || Ne) && (this.pendingCleanup = !0), this._tryCleanup(),
|
|
6465
|
+
const $e = (He) => {
|
|
6466
|
+
ue.renderTasks.delete(Ge), (this.cleanupAfterRender || Ne) && (this.pendingCleanup = !0), this._tryCleanup(), He ? (Ge.capability.reject(He), this._abortOperatorList({
|
|
6461
6467
|
intentState: ue,
|
|
6462
|
-
reason:
|
|
6468
|
+
reason: He instanceof Error ? He : new Error(He)
|
|
6463
6469
|
})) : Ge.capability.resolve(), this._stats && (this._stats.timeEnd("Rendering"), this._stats.timeEnd("Overall"));
|
|
6464
6470
|
}, Ge = new Ce({
|
|
6465
6471
|
callback: $e,
|
|
@@ -6480,10 +6486,10 @@ var Kr = cr(function(Le, Ee) {
|
|
|
6480
6486
|
pdfBug: this._pdfBug,
|
|
6481
6487
|
pageColors: We
|
|
6482
6488
|
});
|
|
6483
|
-
((
|
|
6489
|
+
((V = ue).renderTasks || (V.renderTasks = /* @__PURE__ */ new Set())).add(Ge);
|
|
6484
6490
|
const Xe = Ge.task;
|
|
6485
|
-
return Promise.all([ue.displayReadyCapability.promise, ae]).then((
|
|
6486
|
-
let [je, Ze] =
|
|
6491
|
+
return Promise.all([ue.displayReadyCapability.promise, ae]).then((He) => {
|
|
6492
|
+
let [je, Ze] = He;
|
|
6487
6493
|
if (this.pendingCleanup) {
|
|
6488
6494
|
$e();
|
|
6489
6495
|
return;
|
|
@@ -6496,20 +6502,20 @@ var Kr = cr(function(Le, Ee) {
|
|
|
6496
6502
|
}
|
|
6497
6503
|
getOperatorList() {
|
|
6498
6504
|
let {
|
|
6499
|
-
intent:
|
|
6505
|
+
intent: H = "display",
|
|
6500
6506
|
annotationMode: Q = o.AnnotationMode.ENABLE,
|
|
6501
6507
|
printAnnotationStorage: G = null
|
|
6502
6508
|
} = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
6503
|
-
function
|
|
6509
|
+
function V() {
|
|
6504
6510
|
_e.operatorList.lastChunk && (_e.opListReadCapability.resolve(_e.operatorList), _e.renderTasks.delete(ke));
|
|
6505
6511
|
}
|
|
6506
|
-
const oe = this._transport.getRenderingIntent(
|
|
6512
|
+
const oe = this._transport.getRenderingIntent(H, Q, G, !0);
|
|
6507
6513
|
let _e = this._intentStates.get(oe.cacheKey);
|
|
6508
6514
|
_e || (_e = /* @__PURE__ */ Object.create(null), this._intentStates.set(oe.cacheKey, _e));
|
|
6509
6515
|
let ke;
|
|
6510
6516
|
if (!_e.opListReadCapability) {
|
|
6511
6517
|
var ce;
|
|
6512
|
-
ke = /* @__PURE__ */ Object.create(null), ke.operatorListChanged =
|
|
6518
|
+
ke = /* @__PURE__ */ Object.create(null), ke.operatorListChanged = V, _e.opListReadCapability = (0, o.createPromiseCapability)(), ((ce = _e).renderTasks || (ce.renderTasks = /* @__PURE__ */ new Set())).add(ke), _e.operatorList = {
|
|
6513
6519
|
fnArray: [],
|
|
6514
6520
|
argsArray: [],
|
|
6515
6521
|
lastChunk: !1,
|
|
@@ -6520,27 +6526,27 @@ var Kr = cr(function(Le, Ee) {
|
|
|
6520
6526
|
}
|
|
6521
6527
|
streamTextContent() {
|
|
6522
6528
|
let {
|
|
6523
|
-
disableCombineTextItems:
|
|
6529
|
+
disableCombineTextItems: H = !1,
|
|
6524
6530
|
includeMarkedContent: Q = !1
|
|
6525
6531
|
} = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
6526
6532
|
const G = 100;
|
|
6527
6533
|
return this._transport.messageHandler.sendWithStream("GetTextContent", {
|
|
6528
6534
|
pageIndex: this._pageIndex,
|
|
6529
|
-
combineTextItems:
|
|
6535
|
+
combineTextItems: H !== !0,
|
|
6530
6536
|
includeMarkedContent: Q === !0
|
|
6531
6537
|
}, {
|
|
6532
6538
|
highWaterMark: G,
|
|
6533
|
-
size(
|
|
6534
|
-
return
|
|
6539
|
+
size(V) {
|
|
6540
|
+
return V.items.length;
|
|
6535
6541
|
}
|
|
6536
6542
|
});
|
|
6537
6543
|
}
|
|
6538
6544
|
getTextContent() {
|
|
6539
|
-
let
|
|
6545
|
+
let H = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
6540
6546
|
if (this._transport._htmlForXfa)
|
|
6541
6547
|
return this.getXfa().then((G) => A.XfaText.textContent(G));
|
|
6542
|
-
const Q = this.streamTextContent(
|
|
6543
|
-
return new Promise(function(G,
|
|
6548
|
+
const Q = this.streamTextContent(H);
|
|
6549
|
+
return new Promise(function(G, V) {
|
|
6544
6550
|
function oe() {
|
|
6545
6551
|
_e.read().then(function(ce) {
|
|
6546
6552
|
let {
|
|
@@ -6552,7 +6558,7 @@ var Kr = cr(function(Le, Ee) {
|
|
|
6552
6558
|
return;
|
|
6553
6559
|
}
|
|
6554
6560
|
Object.assign(ke.styles, Re.styles), ke.items.push(...Re.items), oe();
|
|
6555
|
-
},
|
|
6561
|
+
}, V);
|
|
6556
6562
|
}
|
|
6557
6563
|
const _e = Q.getReader(), ke = {
|
|
6558
6564
|
items: [],
|
|
@@ -6566,7 +6572,7 @@ var Kr = cr(function(Le, Ee) {
|
|
|
6566
6572
|
}
|
|
6567
6573
|
_destroy() {
|
|
6568
6574
|
this.destroyed = !0;
|
|
6569
|
-
const
|
|
6575
|
+
const H = [];
|
|
6570
6576
|
for (const Q of this._intentStates.values())
|
|
6571
6577
|
if (this._abortOperatorList({
|
|
6572
6578
|
intentState: Q,
|
|
@@ -6574,18 +6580,18 @@ var Kr = cr(function(Le, Ee) {
|
|
|
6574
6580
|
force: !0
|
|
6575
6581
|
}), !Q.opListReadCapability)
|
|
6576
6582
|
for (const G of Q.renderTasks)
|
|
6577
|
-
|
|
6583
|
+
H.push(G.completed), G.cancel();
|
|
6578
6584
|
this.objs.clear();
|
|
6579
6585
|
for (const Q of this._bitmaps)
|
|
6580
6586
|
Q.close();
|
|
6581
|
-
return this._bitmaps.clear(), this._annotationPromises.clear(), this._jsActionsPromise = null, this._structTreePromise = null, this.pendingCleanup = !1, Promise.all(
|
|
6587
|
+
return this._bitmaps.clear(), this._annotationPromises.clear(), this._jsActionsPromise = null, this._structTreePromise = null, this.pendingCleanup = !1, Promise.all(H);
|
|
6582
6588
|
}
|
|
6583
6589
|
cleanup() {
|
|
6584
|
-
let
|
|
6585
|
-
return this.pendingCleanup = !0, this._tryCleanup(
|
|
6590
|
+
let H = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1;
|
|
6591
|
+
return this.pendingCleanup = !0, this._tryCleanup(H);
|
|
6586
6592
|
}
|
|
6587
6593
|
_tryCleanup() {
|
|
6588
|
-
let
|
|
6594
|
+
let H = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1;
|
|
6589
6595
|
if (!this.pendingCleanup)
|
|
6590
6596
|
return !1;
|
|
6591
6597
|
for (const {
|
|
@@ -6594,34 +6600,34 @@ var Kr = cr(function(Le, Ee) {
|
|
|
6594
6600
|
} of this._intentStates.values())
|
|
6595
6601
|
if (Q.size > 0 || !G.lastChunk)
|
|
6596
6602
|
return !1;
|
|
6597
|
-
this._intentStates.clear(), this.objs.clear(), this._annotationPromises.clear(), this._jsActionsPromise = null, this._structTreePromise = null,
|
|
6603
|
+
this._intentStates.clear(), this.objs.clear(), this._annotationPromises.clear(), this._jsActionsPromise = null, this._structTreePromise = null, H && this._stats && (this._stats = new T.StatTimer());
|
|
6598
6604
|
for (const Q of this._bitmaps)
|
|
6599
6605
|
Q.close();
|
|
6600
6606
|
return this._bitmaps.clear(), this.pendingCleanup = !1, !0;
|
|
6601
6607
|
}
|
|
6602
|
-
_startRenderPage(
|
|
6608
|
+
_startRenderPage(H, Q) {
|
|
6603
6609
|
const G = this._intentStates.get(Q);
|
|
6604
|
-
!G || (this._stats && this._stats.timeEnd("Page Request"), G.displayReadyCapability && G.displayReadyCapability.resolve(
|
|
6610
|
+
!G || (this._stats && this._stats.timeEnd("Page Request"), G.displayReadyCapability && G.displayReadyCapability.resolve(H));
|
|
6605
6611
|
}
|
|
6606
|
-
_renderPageChunk(
|
|
6607
|
-
for (let G = 0,
|
|
6608
|
-
Q.operatorList.fnArray.push(
|
|
6609
|
-
Q.operatorList.lastChunk =
|
|
6612
|
+
_renderPageChunk(H, Q) {
|
|
6613
|
+
for (let G = 0, V = H.length; G < V; G++)
|
|
6614
|
+
Q.operatorList.fnArray.push(H.fnArray[G]), Q.operatorList.argsArray.push(H.argsArray[G]);
|
|
6615
|
+
Q.operatorList.lastChunk = H.lastChunk, Q.operatorList.separateAnnots = H.separateAnnots;
|
|
6610
6616
|
for (const G of Q.renderTasks)
|
|
6611
6617
|
G.operatorListChanged();
|
|
6612
|
-
|
|
6618
|
+
H.lastChunk && this._tryCleanup();
|
|
6613
6619
|
}
|
|
6614
|
-
_pumpOperatorList(
|
|
6620
|
+
_pumpOperatorList(H) {
|
|
6615
6621
|
let {
|
|
6616
6622
|
renderingIntent: Q,
|
|
6617
6623
|
cacheKey: G,
|
|
6618
|
-
annotationStorageMap:
|
|
6619
|
-
} =
|
|
6624
|
+
annotationStorageMap: V
|
|
6625
|
+
} = H;
|
|
6620
6626
|
const _e = this._transport.messageHandler.sendWithStream("GetOperatorList", {
|
|
6621
6627
|
pageIndex: this._pageIndex,
|
|
6622
6628
|
intent: Q,
|
|
6623
6629
|
cacheKey: G,
|
|
6624
|
-
annotationStorage:
|
|
6630
|
+
annotationStorage: V
|
|
6625
6631
|
}).getReader(), ke = this._intentStates.get(G);
|
|
6626
6632
|
ke.streamReader = _e;
|
|
6627
6633
|
const ce = () => {
|
|
@@ -6654,14 +6660,14 @@ var Kr = cr(function(Le, Ee) {
|
|
|
6654
6660
|
};
|
|
6655
6661
|
ce();
|
|
6656
6662
|
}
|
|
6657
|
-
_abortOperatorList(
|
|
6663
|
+
_abortOperatorList(H) {
|
|
6658
6664
|
let {
|
|
6659
6665
|
intentState: Q,
|
|
6660
6666
|
reason: G,
|
|
6661
|
-
force:
|
|
6662
|
-
} =
|
|
6667
|
+
force: V = !1
|
|
6668
|
+
} = H;
|
|
6663
6669
|
if (!!Q.streamReader) {
|
|
6664
|
-
if (!
|
|
6670
|
+
if (!V) {
|
|
6665
6671
|
if (Q.renderTasks.size > 0)
|
|
6666
6672
|
return;
|
|
6667
6673
|
if (G instanceof T.RenderingCancelledException) {
|
|
@@ -6695,19 +6701,19 @@ var Kr = cr(function(Le, Ee) {
|
|
|
6695
6701
|
constructor() {
|
|
6696
6702
|
this._listeners = [], this._deferred = Promise.resolve();
|
|
6697
6703
|
}
|
|
6698
|
-
postMessage(
|
|
6704
|
+
postMessage(H, Q) {
|
|
6699
6705
|
const G = {
|
|
6700
|
-
data: structuredClone(
|
|
6706
|
+
data: structuredClone(H, Q)
|
|
6701
6707
|
};
|
|
6702
6708
|
this._deferred.then(() => {
|
|
6703
|
-
for (const
|
|
6704
|
-
|
|
6709
|
+
for (const V of this._listeners)
|
|
6710
|
+
V.call(this, G);
|
|
6705
6711
|
});
|
|
6706
6712
|
}
|
|
6707
|
-
addEventListener(
|
|
6713
|
+
addEventListener(H, Q) {
|
|
6708
6714
|
this._listeners.push(Q);
|
|
6709
6715
|
}
|
|
6710
|
-
removeEventListener(
|
|
6716
|
+
removeEventListener(H, Q) {
|
|
6711
6717
|
const G = this._listeners.indexOf(Q);
|
|
6712
6718
|
this._listeners.splice(G, 1);
|
|
6713
6719
|
}
|
|
@@ -6730,7 +6736,7 @@ var Kr = cr(function(Le, Ee) {
|
|
|
6730
6736
|
const Pe = (j = document) === null || j === void 0 || (s = j.currentScript) === null || s === void 0 ? void 0 : s.src;
|
|
6731
6737
|
Pe && (N.fallbackWorkerSrc = Pe.replace(/(\.(?:min\.)?js)(\?.*)?$/i, ".worker$1$2"));
|
|
6732
6738
|
}
|
|
6733
|
-
N.isSameOrigin = function(Pe,
|
|
6739
|
+
N.isSameOrigin = function(Pe, H) {
|
|
6734
6740
|
let Q;
|
|
6735
6741
|
try {
|
|
6736
6742
|
if (Q = new URL(Pe), !Q.origin || Q.origin === "null")
|
|
@@ -6738,23 +6744,23 @@ var Kr = cr(function(Le, Ee) {
|
|
|
6738
6744
|
} catch {
|
|
6739
6745
|
return !1;
|
|
6740
6746
|
}
|
|
6741
|
-
const G = new URL(
|
|
6747
|
+
const G = new URL(H, Q);
|
|
6742
6748
|
return Q.origin === G.origin;
|
|
6743
6749
|
}, N.createCDNWrapper = function(Pe) {
|
|
6744
|
-
const
|
|
6745
|
-
return URL.createObjectURL(new Blob([
|
|
6750
|
+
const H = `importScripts("${Pe}");`;
|
|
6751
|
+
return URL.createObjectURL(new Blob([H]));
|
|
6746
6752
|
};
|
|
6747
6753
|
}
|
|
6748
6754
|
class d {
|
|
6749
6755
|
constructor() {
|
|
6750
6756
|
let {
|
|
6751
|
-
name:
|
|
6757
|
+
name: H = null,
|
|
6752
6758
|
port: Q = null,
|
|
6753
6759
|
verbosity: G = (0, o.getVerbosityLevel)()
|
|
6754
6760
|
} = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
6755
6761
|
if (Q && g(d, d, _).has(Q))
|
|
6756
6762
|
throw new Error("Cannot use more than one PDFWorker per port.");
|
|
6757
|
-
if (this.name =
|
|
6763
|
+
if (this.name = H, this.destroyed = !1, this.verbosity = G, this._readyCapability = (0, o.createPromiseCapability)(), this._port = null, this._webWorker = null, this._messageHandler = null, Q) {
|
|
6758
6764
|
g(d, d, _).set(Q, this), this._initializeFromPort(Q);
|
|
6759
6765
|
return;
|
|
6760
6766
|
}
|
|
@@ -6769,25 +6775,25 @@ var Kr = cr(function(Le, Ee) {
|
|
|
6769
6775
|
get messageHandler() {
|
|
6770
6776
|
return this._messageHandler;
|
|
6771
6777
|
}
|
|
6772
|
-
_initializeFromPort(
|
|
6773
|
-
this._port =
|
|
6778
|
+
_initializeFromPort(H) {
|
|
6779
|
+
this._port = H, this._messageHandler = new y.MessageHandler("main", "worker", H), this._messageHandler.on("ready", function() {
|
|
6774
6780
|
}), this._readyCapability.resolve();
|
|
6775
6781
|
}
|
|
6776
6782
|
_initialize() {
|
|
6777
6783
|
if (!N.isWorkerDisabled && !d._mainThreadWorkerMessageHandler) {
|
|
6778
6784
|
let {
|
|
6779
|
-
workerSrc:
|
|
6785
|
+
workerSrc: H
|
|
6780
6786
|
} = d;
|
|
6781
6787
|
try {
|
|
6782
|
-
N.isSameOrigin(window.location.href,
|
|
6783
|
-
const Q = new Worker(
|
|
6788
|
+
N.isSameOrigin(window.location.href, H) || (H = N.createCDNWrapper(new URL(H, window.location).href));
|
|
6789
|
+
const Q = new Worker(H), G = new y.MessageHandler("main", "worker", Q), V = () => {
|
|
6784
6790
|
Q.removeEventListener("error", oe), G.destroy(), Q.terminate(), this.destroyed ? this._readyCapability.reject(new Error("Worker was destroyed")) : this._setupFakeWorker();
|
|
6785
6791
|
}, oe = () => {
|
|
6786
|
-
this._webWorker ||
|
|
6792
|
+
this._webWorker || V();
|
|
6787
6793
|
};
|
|
6788
6794
|
Q.addEventListener("error", oe), G.on("test", (ke) => {
|
|
6789
6795
|
if (Q.removeEventListener("error", oe), this.destroyed) {
|
|
6790
|
-
|
|
6796
|
+
V();
|
|
6791
6797
|
return;
|
|
6792
6798
|
}
|
|
6793
6799
|
ke ? (this._messageHandler = G, this._port = Q, this._webWorker = Q, this._readyCapability.resolve(), G.send("configure", {
|
|
@@ -6795,7 +6801,7 @@ var Kr = cr(function(Le, Ee) {
|
|
|
6795
6801
|
})) : (this._setupFakeWorker(), G.destroy(), Q.terminate());
|
|
6796
6802
|
}), G.on("ready", (ke) => {
|
|
6797
6803
|
if (Q.removeEventListener("error", oe), this.destroyed) {
|
|
6798
|
-
|
|
6804
|
+
V();
|
|
6799
6805
|
return;
|
|
6800
6806
|
}
|
|
6801
6807
|
try {
|
|
@@ -6817,30 +6823,30 @@ var Kr = cr(function(Le, Ee) {
|
|
|
6817
6823
|
this._setupFakeWorker();
|
|
6818
6824
|
}
|
|
6819
6825
|
_setupFakeWorker() {
|
|
6820
|
-
N.isWorkerDisabled || ((0, o.warn)("Setting up fake worker."), N.isWorkerDisabled = !0), d._setupFakeWorkerGlobal.then((
|
|
6826
|
+
N.isWorkerDisabled || ((0, o.warn)("Setting up fake worker."), N.isWorkerDisabled = !0), d._setupFakeWorkerGlobal.then((H) => {
|
|
6821
6827
|
if (this.destroyed) {
|
|
6822
6828
|
this._readyCapability.reject(new Error("Worker was destroyed"));
|
|
6823
6829
|
return;
|
|
6824
6830
|
}
|
|
6825
6831
|
const Q = new S();
|
|
6826
6832
|
this._port = Q;
|
|
6827
|
-
const G = `fake${N.fakeWorkerId++}`,
|
|
6828
|
-
|
|
6833
|
+
const G = `fake${N.fakeWorkerId++}`, V = new y.MessageHandler(G + "_worker", G, Q);
|
|
6834
|
+
H.setup(V, Q);
|
|
6829
6835
|
const oe = new y.MessageHandler(G, G + "_worker", Q);
|
|
6830
6836
|
this._messageHandler = oe, this._readyCapability.resolve(), oe.send("configure", {
|
|
6831
6837
|
verbosity: this.verbosity
|
|
6832
6838
|
});
|
|
6833
|
-
}).catch((
|
|
6834
|
-
this._readyCapability.reject(new Error(`Setting up fake worker failed: "${
|
|
6839
|
+
}).catch((H) => {
|
|
6840
|
+
this._readyCapability.reject(new Error(`Setting up fake worker failed: "${H.message}".`));
|
|
6835
6841
|
});
|
|
6836
6842
|
}
|
|
6837
6843
|
destroy() {
|
|
6838
6844
|
this.destroyed = !0, this._webWorker && (this._webWorker.terminate(), this._webWorker = null), g(d, d, _).delete(this._port), this._port = null, this._messageHandler && (this._messageHandler.destroy(), this._messageHandler = null);
|
|
6839
6845
|
}
|
|
6840
|
-
static fromPort(
|
|
6841
|
-
if (!(
|
|
6846
|
+
static fromPort(H) {
|
|
6847
|
+
if (!(H != null && H.port))
|
|
6842
6848
|
throw new Error("PDFWorker.fromPort - invalid method signature.");
|
|
6843
|
-
return g(this, d, _).has(
|
|
6849
|
+
return g(this, d, _).has(H.port) ? g(this, d, _).get(H.port) : new d(H);
|
|
6844
6850
|
}
|
|
6845
6851
|
static get workerSrc() {
|
|
6846
6852
|
if (P.GlobalWorkerOptions.workerSrc)
|
|
@@ -6851,18 +6857,18 @@ var Kr = cr(function(Le, Ee) {
|
|
|
6851
6857
|
}
|
|
6852
6858
|
static get _mainThreadWorkerMessageHandler() {
|
|
6853
6859
|
try {
|
|
6854
|
-
var
|
|
6855
|
-
return ((
|
|
6860
|
+
var H;
|
|
6861
|
+
return ((H = globalThis.pdfjsWorker) === null || H === void 0 ? void 0 : H.WorkerMessageHandler) || null;
|
|
6856
6862
|
} catch {
|
|
6857
6863
|
return null;
|
|
6858
6864
|
}
|
|
6859
6865
|
}
|
|
6860
6866
|
static get _setupFakeWorkerGlobal() {
|
|
6861
|
-
const
|
|
6867
|
+
const H = async () => {
|
|
6862
6868
|
const Q = this._mainThreadWorkerMessageHandler;
|
|
6863
|
-
return Q || (m.isNodeJS && typeof qr == "function" ? qr().WorkerMessageHandler : (await (0, T.loadScript)(this.workerSrc), window.pdfjsWorker.WorkerMessageHandler));
|
|
6869
|
+
return Q || (m.isNodeJS && typeof qr == "function" ? qr(this.workerSrc).WorkerMessageHandler : (await (0, T.loadScript)(this.workerSrc), window.pdfjsWorker.WorkerMessageHandler));
|
|
6864
6870
|
};
|
|
6865
|
-
return (0, o.shadow)(this, "_setupFakeWorkerGlobal",
|
|
6871
|
+
return (0, o.shadow)(this, "_setupFakeWorkerGlobal", H());
|
|
6866
6872
|
}
|
|
6867
6873
|
}
|
|
6868
6874
|
v.PDFWorker = d;
|
|
@@ -6875,7 +6881,7 @@ var Kr = cr(function(Le, Ee) {
|
|
|
6875
6881
|
};
|
|
6876
6882
|
var M = /* @__PURE__ */ new WeakMap(), L = /* @__PURE__ */ new WeakMap(), X = /* @__PURE__ */ new WeakMap(), J = /* @__PURE__ */ new WeakMap();
|
|
6877
6883
|
class ie {
|
|
6878
|
-
constructor(
|
|
6884
|
+
constructor(H, Q, G, V) {
|
|
6879
6885
|
F(this, M, {
|
|
6880
6886
|
writable: !0,
|
|
6881
6887
|
value: null
|
|
@@ -6888,16 +6894,16 @@ var Kr = cr(function(Le, Ee) {
|
|
|
6888
6894
|
}), F(this, J, {
|
|
6889
6895
|
writable: !0,
|
|
6890
6896
|
value: null
|
|
6891
|
-
}), this.messageHandler =
|
|
6897
|
+
}), this.messageHandler = H, this.loadingTask = Q, this.commonObjs = new le(), this.fontLoader = new R.FontLoader({
|
|
6892
6898
|
docId: Q.docId,
|
|
6893
6899
|
onUnsupportedFeature: this._onUnsupportedFeature.bind(this),
|
|
6894
|
-
ownerDocument:
|
|
6895
|
-
styleElement:
|
|
6896
|
-
}), this._params =
|
|
6897
|
-
baseUrl:
|
|
6898
|
-
isCompressed:
|
|
6899
|
-
}), this.StandardFontDataFactory = new
|
|
6900
|
-
baseUrl:
|
|
6900
|
+
ownerDocument: V.ownerDocument,
|
|
6901
|
+
styleElement: V.styleElement
|
|
6902
|
+
}), this._params = V, V.useWorkerFetch || (this.CMapReaderFactory = new V.CMapReaderFactory({
|
|
6903
|
+
baseUrl: V.cMapUrl,
|
|
6904
|
+
isCompressed: V.cMapPacked
|
|
6905
|
+
}), this.StandardFontDataFactory = new V.StandardFontDataFactory({
|
|
6906
|
+
baseUrl: V.standardFontDataUrl
|
|
6901
6907
|
})), this.destroyed = !1, this.destroyCapability = null, this._passwordCapability = null, this._networkStream = G, this._fullReader = null, this._lastProgress = null, this.downloadInfoCapability = (0, o.createPromiseCapability)(), this.setupMessageHandler();
|
|
6902
6908
|
}
|
|
6903
6909
|
get annotationStorage() {
|
|
@@ -6906,9 +6912,9 @@ var Kr = cr(function(Le, Ee) {
|
|
|
6906
6912
|
get stats() {
|
|
6907
6913
|
return u(this, M);
|
|
6908
6914
|
}
|
|
6909
|
-
getRenderingIntent(
|
|
6910
|
-
let Q = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : o.AnnotationMode.ENABLE, G = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null,
|
|
6911
|
-
switch (
|
|
6915
|
+
getRenderingIntent(H) {
|
|
6916
|
+
let Q = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : o.AnnotationMode.ENABLE, G = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null, V = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !1, oe = o.RenderingIntentFlag.DISPLAY, _e = null;
|
|
6917
|
+
switch (H) {
|
|
6912
6918
|
case "any":
|
|
6913
6919
|
oe = o.RenderingIntentFlag.ANY;
|
|
6914
6920
|
break;
|
|
@@ -6918,7 +6924,7 @@ var Kr = cr(function(Le, Ee) {
|
|
|
6918
6924
|
oe = o.RenderingIntentFlag.PRINT;
|
|
6919
6925
|
break;
|
|
6920
6926
|
default:
|
|
6921
|
-
(0, o.warn)(`getRenderingIntent - invalid intent: ${
|
|
6927
|
+
(0, o.warn)(`getRenderingIntent - invalid intent: ${H}`);
|
|
6922
6928
|
}
|
|
6923
6929
|
switch (Q) {
|
|
6924
6930
|
case o.AnnotationMode.DISABLE:
|
|
@@ -6935,7 +6941,7 @@ var Kr = cr(function(Le, Ee) {
|
|
|
6935
6941
|
default:
|
|
6936
6942
|
(0, o.warn)(`getRenderingIntent - invalid annotationMode: ${Q}`);
|
|
6937
6943
|
}
|
|
6938
|
-
return
|
|
6944
|
+
return V && (oe += o.RenderingIntentFlag.OPLIST), {
|
|
6939
6945
|
renderingIntent: oe,
|
|
6940
6946
|
cacheKey: `${oe}_${c.AnnotationStorage.getHash(_e)}`,
|
|
6941
6947
|
annotationStorageMap: _e
|
|
@@ -6945,48 +6951,48 @@ var Kr = cr(function(Le, Ee) {
|
|
|
6945
6951
|
if (this.destroyCapability)
|
|
6946
6952
|
return this.destroyCapability.promise;
|
|
6947
6953
|
this.destroyed = !0, this.destroyCapability = (0, o.createPromiseCapability)(), this._passwordCapability && this._passwordCapability.reject(new Error("Worker was destroyed during onPassword callback"));
|
|
6948
|
-
const
|
|
6954
|
+
const H = [];
|
|
6949
6955
|
for (const G of u(this, L).values())
|
|
6950
|
-
|
|
6956
|
+
H.push(G._destroy());
|
|
6951
6957
|
u(this, L).clear(), u(this, X).clear(), this.hasOwnProperty("annotationStorage") && this.annotationStorage.resetModified();
|
|
6952
6958
|
const Q = this.messageHandler.sendWithPromise("Terminate", null);
|
|
6953
|
-
return
|
|
6959
|
+
return H.push(Q), Promise.all(H).then(() => {
|
|
6954
6960
|
this.commonObjs.clear(), this.fontLoader.clear(), b(this, J, null), this._getFieldObjectsPromise = null, this._hasJSActionsPromise = null, this._networkStream && this._networkStream.cancelAllRequests(new o.AbortException("Worker was terminated.")), this.messageHandler && (this.messageHandler.destroy(), this.messageHandler = null), this.destroyCapability.resolve();
|
|
6955
6961
|
}, this.destroyCapability.reject), this.destroyCapability.promise;
|
|
6956
6962
|
}
|
|
6957
6963
|
setupMessageHandler() {
|
|
6958
6964
|
const {
|
|
6959
|
-
messageHandler:
|
|
6965
|
+
messageHandler: H,
|
|
6960
6966
|
loadingTask: Q
|
|
6961
6967
|
} = this;
|
|
6962
|
-
|
|
6968
|
+
H.on("GetReader", (G, V) => {
|
|
6963
6969
|
(0, o.assert)(this._networkStream, "GetReader - no `IPDFStream` instance available."), this._fullReader = this._networkStream.getFullReader(), this._fullReader.onProgress = (oe) => {
|
|
6964
6970
|
this._lastProgress = {
|
|
6965
6971
|
loaded: oe.loaded,
|
|
6966
6972
|
total: oe.total
|
|
6967
6973
|
};
|
|
6968
|
-
},
|
|
6974
|
+
}, V.onPull = () => {
|
|
6969
6975
|
this._fullReader.read().then(function(oe) {
|
|
6970
6976
|
let {
|
|
6971
6977
|
value: _e,
|
|
6972
6978
|
done: ke
|
|
6973
6979
|
} = oe;
|
|
6974
6980
|
if (ke) {
|
|
6975
|
-
|
|
6981
|
+
V.close();
|
|
6976
6982
|
return;
|
|
6977
6983
|
}
|
|
6978
|
-
(0, o.assert)((0, o.isArrayBuffer)(_e), "GetReader - expected an ArrayBuffer."),
|
|
6984
|
+
(0, o.assert)((0, o.isArrayBuffer)(_e), "GetReader - expected an ArrayBuffer."), V.enqueue(new Uint8Array(_e), 1, [_e]);
|
|
6979
6985
|
}).catch((oe) => {
|
|
6980
|
-
|
|
6986
|
+
V.error(oe);
|
|
6981
6987
|
});
|
|
6982
|
-
},
|
|
6983
|
-
this._fullReader.cancel(oe),
|
|
6988
|
+
}, V.onCancel = (oe) => {
|
|
6989
|
+
this._fullReader.cancel(oe), V.ready.catch((_e) => {
|
|
6984
6990
|
if (!this.destroyed)
|
|
6985
6991
|
throw _e;
|
|
6986
6992
|
});
|
|
6987
6993
|
};
|
|
6988
|
-
}),
|
|
6989
|
-
const
|
|
6994
|
+
}), H.on("ReaderHeadersReady", (G) => {
|
|
6995
|
+
const V = (0, o.createPromiseCapability)(), oe = this._fullReader;
|
|
6990
6996
|
return oe.headersReady.then(() => {
|
|
6991
6997
|
if (!oe.isStreamingSupported || !oe.isRangeSupported) {
|
|
6992
6998
|
if (this._lastProgress) {
|
|
@@ -7001,93 +7007,93 @@ var Kr = cr(function(Le, Ee) {
|
|
|
7001
7007
|
});
|
|
7002
7008
|
};
|
|
7003
7009
|
}
|
|
7004
|
-
|
|
7010
|
+
V.resolve({
|
|
7005
7011
|
isStreamingSupported: oe.isStreamingSupported,
|
|
7006
7012
|
isRangeSupported: oe.isRangeSupported,
|
|
7007
7013
|
contentLength: oe.contentLength
|
|
7008
7014
|
});
|
|
7009
|
-
},
|
|
7010
|
-
}),
|
|
7015
|
+
}, V.reject), V.promise;
|
|
7016
|
+
}), H.on("GetRangeReader", (G, V) => {
|
|
7011
7017
|
(0, o.assert)(this._networkStream, "GetRangeReader - no `IPDFStream` instance available.");
|
|
7012
7018
|
const oe = this._networkStream.getRangeReader(G.begin, G.end);
|
|
7013
7019
|
if (!oe) {
|
|
7014
|
-
|
|
7020
|
+
V.close();
|
|
7015
7021
|
return;
|
|
7016
7022
|
}
|
|
7017
|
-
|
|
7023
|
+
V.onPull = () => {
|
|
7018
7024
|
oe.read().then(function(_e) {
|
|
7019
7025
|
let {
|
|
7020
7026
|
value: ke,
|
|
7021
7027
|
done: ce
|
|
7022
7028
|
} = _e;
|
|
7023
7029
|
if (ce) {
|
|
7024
|
-
|
|
7030
|
+
V.close();
|
|
7025
7031
|
return;
|
|
7026
7032
|
}
|
|
7027
|
-
(0, o.assert)((0, o.isArrayBuffer)(ke), "GetRangeReader - expected an ArrayBuffer."),
|
|
7033
|
+
(0, o.assert)((0, o.isArrayBuffer)(ke), "GetRangeReader - expected an ArrayBuffer."), V.enqueue(new Uint8Array(ke), 1, [ke]);
|
|
7028
7034
|
}).catch((_e) => {
|
|
7029
|
-
|
|
7035
|
+
V.error(_e);
|
|
7030
7036
|
});
|
|
7031
|
-
},
|
|
7032
|
-
oe.cancel(_e),
|
|
7037
|
+
}, V.onCancel = (_e) => {
|
|
7038
|
+
oe.cancel(_e), V.ready.catch((ke) => {
|
|
7033
7039
|
if (!this.destroyed)
|
|
7034
7040
|
throw ke;
|
|
7035
7041
|
});
|
|
7036
7042
|
};
|
|
7037
|
-
}),
|
|
7043
|
+
}), H.on("GetDoc", (G) => {
|
|
7038
7044
|
let {
|
|
7039
|
-
pdfInfo:
|
|
7045
|
+
pdfInfo: V
|
|
7040
7046
|
} = G;
|
|
7041
|
-
this._numPages =
|
|
7042
|
-
}),
|
|
7043
|
-
let
|
|
7047
|
+
this._numPages = V.numPages, this._htmlForXfa = V.htmlForXfa, delete V.htmlForXfa, Q._capability.resolve(new Y(V, this));
|
|
7048
|
+
}), H.on("DocException", function(G) {
|
|
7049
|
+
let V;
|
|
7044
7050
|
switch (G.name) {
|
|
7045
7051
|
case "PasswordException":
|
|
7046
|
-
|
|
7052
|
+
V = new o.PasswordException(G.message, G.code);
|
|
7047
7053
|
break;
|
|
7048
7054
|
case "InvalidPDFException":
|
|
7049
|
-
|
|
7055
|
+
V = new o.InvalidPDFException(G.message);
|
|
7050
7056
|
break;
|
|
7051
7057
|
case "MissingPDFException":
|
|
7052
|
-
|
|
7058
|
+
V = new o.MissingPDFException(G.message);
|
|
7053
7059
|
break;
|
|
7054
7060
|
case "UnexpectedResponseException":
|
|
7055
|
-
|
|
7061
|
+
V = new o.UnexpectedResponseException(G.message, G.status);
|
|
7056
7062
|
break;
|
|
7057
7063
|
case "UnknownErrorException":
|
|
7058
|
-
|
|
7064
|
+
V = new o.UnknownErrorException(G.message, G.details);
|
|
7059
7065
|
break;
|
|
7060
7066
|
default:
|
|
7061
7067
|
(0, o.unreachable)("DocException - expected a valid Error.");
|
|
7062
7068
|
}
|
|
7063
|
-
Q._capability.reject(
|
|
7064
|
-
}),
|
|
7069
|
+
Q._capability.reject(V);
|
|
7070
|
+
}), H.on("PasswordRequest", (G) => {
|
|
7065
7071
|
if (this._passwordCapability = (0, o.createPromiseCapability)(), Q.onPassword) {
|
|
7066
|
-
const
|
|
7072
|
+
const V = (oe) => {
|
|
7067
7073
|
oe instanceof Error ? this._passwordCapability.reject(oe) : this._passwordCapability.resolve({
|
|
7068
7074
|
password: oe
|
|
7069
7075
|
});
|
|
7070
7076
|
};
|
|
7071
7077
|
try {
|
|
7072
|
-
Q.onPassword(
|
|
7078
|
+
Q.onPassword(V, G.code);
|
|
7073
7079
|
} catch (oe) {
|
|
7074
7080
|
this._passwordCapability.reject(oe);
|
|
7075
7081
|
}
|
|
7076
7082
|
} else
|
|
7077
7083
|
this._passwordCapability.reject(new o.PasswordException(G.message, G.code));
|
|
7078
7084
|
return this._passwordCapability.promise;
|
|
7079
|
-
}),
|
|
7080
|
-
var
|
|
7081
|
-
(
|
|
7085
|
+
}), H.on("DataLoaded", (G) => {
|
|
7086
|
+
var V;
|
|
7087
|
+
(V = Q.onProgress) === null || V === void 0 || V.call(Q, {
|
|
7082
7088
|
loaded: G.length,
|
|
7083
7089
|
total: G.length
|
|
7084
7090
|
}), this.downloadInfoCapability.resolve(G);
|
|
7085
|
-
}),
|
|
7091
|
+
}), H.on("StartRenderPage", (G) => {
|
|
7086
7092
|
if (this.destroyed)
|
|
7087
7093
|
return;
|
|
7088
7094
|
u(this, L).get(G.pageIndex)._startRenderPage(G.transparency, G.cacheKey);
|
|
7089
|
-
}),
|
|
7090
|
-
var
|
|
7095
|
+
}), H.on("commonobj", (G) => {
|
|
7096
|
+
var V;
|
|
7091
7097
|
let [oe, _e, ke] = G;
|
|
7092
7098
|
if (!this.destroyed && !this.commonObjs.has(oe))
|
|
7093
7099
|
switch (_e) {
|
|
@@ -7099,7 +7105,7 @@ var Kr = cr(function(Le, Ee) {
|
|
|
7099
7105
|
break;
|
|
7100
7106
|
}
|
|
7101
7107
|
let Re = null;
|
|
7102
|
-
ce.pdfBug && (
|
|
7108
|
+
ce.pdfBug && (V = globalThis.FontInspector) !== null && V !== void 0 && V.enabled && (Re = {
|
|
7103
7109
|
registerFont(ge, te) {
|
|
7104
7110
|
globalThis.FontInspector.fontAdded(ge, te);
|
|
7105
7111
|
}
|
|
@@ -7111,7 +7117,7 @@ var Kr = cr(function(Le, Ee) {
|
|
|
7111
7117
|
onUnsupportedFeature: this._onUnsupportedFeature.bind(this),
|
|
7112
7118
|
fontRegistry: Re
|
|
7113
7119
|
});
|
|
7114
|
-
this.fontLoader.bind(Be).catch((ge) =>
|
|
7120
|
+
this.fontLoader.bind(Be).catch((ge) => H.sendWithPromise("FontFallback", {
|
|
7115
7121
|
id: oe
|
|
7116
7122
|
})).finally(() => {
|
|
7117
7123
|
!ce.fontExtraProperties && Be.data && (Be.data = null), this.commonObjs.resolve(oe, Be);
|
|
@@ -7124,15 +7130,15 @@ var Kr = cr(function(Le, Ee) {
|
|
|
7124
7130
|
default:
|
|
7125
7131
|
throw new Error(`Got unknown common object type ${_e}`);
|
|
7126
7132
|
}
|
|
7127
|
-
}),
|
|
7128
|
-
let [
|
|
7133
|
+
}), H.on("obj", (G) => {
|
|
7134
|
+
let [V, oe, _e, ke] = G;
|
|
7129
7135
|
if (this.destroyed)
|
|
7130
7136
|
return;
|
|
7131
7137
|
const ce = u(this, L).get(oe);
|
|
7132
|
-
if (!ce.objs.has(
|
|
7138
|
+
if (!ce.objs.has(V))
|
|
7133
7139
|
switch (_e) {
|
|
7134
7140
|
case "Image":
|
|
7135
|
-
ce.objs.resolve(
|
|
7141
|
+
ce.objs.resolve(V, ke);
|
|
7136
7142
|
const Be = 8e6;
|
|
7137
7143
|
if (ke) {
|
|
7138
7144
|
let ge;
|
|
@@ -7151,41 +7157,41 @@ var Kr = cr(function(Le, Ee) {
|
|
|
7151
7157
|
}
|
|
7152
7158
|
break;
|
|
7153
7159
|
case "Pattern":
|
|
7154
|
-
ce.objs.resolve(
|
|
7160
|
+
ce.objs.resolve(V, ke);
|
|
7155
7161
|
break;
|
|
7156
7162
|
default:
|
|
7157
7163
|
throw new Error(`Got unknown object type ${_e}`);
|
|
7158
7164
|
}
|
|
7159
|
-
}),
|
|
7160
|
-
var
|
|
7161
|
-
this.destroyed || (
|
|
7165
|
+
}), H.on("DocProgress", (G) => {
|
|
7166
|
+
var V;
|
|
7167
|
+
this.destroyed || (V = Q.onProgress) === null || V === void 0 || V.call(Q, {
|
|
7162
7168
|
loaded: G.loaded,
|
|
7163
7169
|
total: G.total
|
|
7164
7170
|
});
|
|
7165
|
-
}),
|
|
7171
|
+
}), H.on("DocStats", (G) => {
|
|
7166
7172
|
this.destroyed || b(this, M, Object.freeze({
|
|
7167
7173
|
streamTypes: Object.freeze(G.streamTypes),
|
|
7168
7174
|
fontTypes: Object.freeze(G.fontTypes)
|
|
7169
7175
|
}));
|
|
7170
|
-
}),
|
|
7176
|
+
}), H.on("UnsupportedFeature", this._onUnsupportedFeature.bind(this)), H.on("FetchBuiltInCMap", (G) => this.destroyed ? Promise.reject(new Error("Worker was destroyed.")) : this.CMapReaderFactory ? this.CMapReaderFactory.fetch(G) : Promise.reject(new Error("CMapReaderFactory not initialized, see the `useWorkerFetch` parameter."))), H.on("FetchStandardFontData", (G) => this.destroyed ? Promise.reject(new Error("Worker was destroyed.")) : this.StandardFontDataFactory ? this.StandardFontDataFactory.fetch(G) : Promise.reject(new Error("StandardFontDataFactory not initialized, see the `useWorkerFetch` parameter.")));
|
|
7171
7177
|
}
|
|
7172
|
-
_onUnsupportedFeature(
|
|
7178
|
+
_onUnsupportedFeature(H) {
|
|
7173
7179
|
var Q, G;
|
|
7174
7180
|
let {
|
|
7175
|
-
featureId:
|
|
7176
|
-
} =
|
|
7177
|
-
this.destroyed || (Q = (G = this.loadingTask).onUnsupportedFeature) === null || Q === void 0 || Q.call(G,
|
|
7181
|
+
featureId: V
|
|
7182
|
+
} = H;
|
|
7183
|
+
this.destroyed || (Q = (G = this.loadingTask).onUnsupportedFeature) === null || Q === void 0 || Q.call(G, V);
|
|
7178
7184
|
}
|
|
7179
7185
|
getData() {
|
|
7180
7186
|
return this.messageHandler.sendWithPromise("GetData", null);
|
|
7181
7187
|
}
|
|
7182
|
-
getPage(
|
|
7183
|
-
if (!Number.isInteger(
|
|
7188
|
+
getPage(H) {
|
|
7189
|
+
if (!Number.isInteger(H) || H <= 0 || H > this._numPages)
|
|
7184
7190
|
return Promise.reject(new Error("Invalid page request."));
|
|
7185
|
-
const Q =
|
|
7191
|
+
const Q = H - 1, G = u(this, X).get(Q);
|
|
7186
7192
|
if (G)
|
|
7187
7193
|
return G;
|
|
7188
|
-
const
|
|
7194
|
+
const V = this.messageHandler.sendWithPromise("GetPage", {
|
|
7189
7195
|
pageIndex: Q
|
|
7190
7196
|
}).then((oe) => {
|
|
7191
7197
|
if (this.destroyed)
|
|
@@ -7193,27 +7199,27 @@ var Kr = cr(function(Le, Ee) {
|
|
|
7193
7199
|
const _e = new C(Q, oe, this, this._params.ownerDocument, this._params.pdfBug);
|
|
7194
7200
|
return u(this, L).set(Q, _e), _e;
|
|
7195
7201
|
});
|
|
7196
|
-
return u(this, X).set(Q,
|
|
7202
|
+
return u(this, X).set(Q, V), V;
|
|
7197
7203
|
}
|
|
7198
|
-
getPageIndex(
|
|
7199
|
-
return typeof
|
|
7200
|
-
num:
|
|
7201
|
-
gen:
|
|
7204
|
+
getPageIndex(H) {
|
|
7205
|
+
return typeof H != "object" || H === null || !Number.isInteger(H.num) || H.num < 0 || !Number.isInteger(H.gen) || H.gen < 0 ? Promise.reject(new Error("Invalid pageIndex request.")) : this.messageHandler.sendWithPromise("GetPageIndex", {
|
|
7206
|
+
num: H.num,
|
|
7207
|
+
gen: H.gen
|
|
7202
7208
|
});
|
|
7203
7209
|
}
|
|
7204
|
-
getAnnotations(
|
|
7210
|
+
getAnnotations(H, Q) {
|
|
7205
7211
|
return this.messageHandler.sendWithPromise("GetAnnotations", {
|
|
7206
|
-
pageIndex:
|
|
7212
|
+
pageIndex: H,
|
|
7207
7213
|
intent: Q
|
|
7208
7214
|
});
|
|
7209
7215
|
}
|
|
7210
7216
|
saveDocument() {
|
|
7211
|
-
var
|
|
7217
|
+
var H, Q;
|
|
7212
7218
|
return this.messageHandler.sendWithPromise("SaveDocument", {
|
|
7213
7219
|
isPureXfa: !!this._htmlForXfa,
|
|
7214
7220
|
numPages: this._numPages,
|
|
7215
7221
|
annotationStorage: this.annotationStorage.serializable,
|
|
7216
|
-
filename: (
|
|
7222
|
+
filename: (H = (Q = this._fullReader) === null || Q === void 0 ? void 0 : Q.filename) !== null && H !== void 0 ? H : null
|
|
7217
7223
|
}).finally(() => {
|
|
7218
7224
|
this.annotationStorage.resetModified();
|
|
7219
7225
|
});
|
|
@@ -7230,9 +7236,9 @@ var Kr = cr(function(Le, Ee) {
|
|
|
7230
7236
|
getDestinations() {
|
|
7231
7237
|
return this.messageHandler.sendWithPromise("GetDestinations", null);
|
|
7232
7238
|
}
|
|
7233
|
-
getDestination(
|
|
7234
|
-
return typeof
|
|
7235
|
-
id:
|
|
7239
|
+
getDestination(H) {
|
|
7240
|
+
return typeof H != "string" ? Promise.reject(new Error("Invalid destination request.")) : this.messageHandler.sendWithPromise("GetDestination", {
|
|
7241
|
+
id: H
|
|
7236
7242
|
});
|
|
7237
7243
|
}
|
|
7238
7244
|
getPageLabels() {
|
|
@@ -7259,33 +7265,33 @@ var Kr = cr(function(Le, Ee) {
|
|
|
7259
7265
|
getDocJSActions() {
|
|
7260
7266
|
return this.messageHandler.sendWithPromise("GetDocJSActions", null);
|
|
7261
7267
|
}
|
|
7262
|
-
getPageJSActions(
|
|
7268
|
+
getPageJSActions(H) {
|
|
7263
7269
|
return this.messageHandler.sendWithPromise("GetPageJSActions", {
|
|
7264
|
-
pageIndex:
|
|
7270
|
+
pageIndex: H
|
|
7265
7271
|
});
|
|
7266
7272
|
}
|
|
7267
|
-
getStructTree(
|
|
7273
|
+
getStructTree(H) {
|
|
7268
7274
|
return this.messageHandler.sendWithPromise("GetStructTree", {
|
|
7269
|
-
pageIndex:
|
|
7275
|
+
pageIndex: H
|
|
7270
7276
|
});
|
|
7271
7277
|
}
|
|
7272
7278
|
getOutline() {
|
|
7273
7279
|
return this.messageHandler.sendWithPromise("GetOutline", null);
|
|
7274
7280
|
}
|
|
7275
7281
|
getOptionalContentConfig() {
|
|
7276
|
-
return this.messageHandler.sendWithPromise("GetOptionalContentConfig", null).then((
|
|
7282
|
+
return this.messageHandler.sendWithPromise("GetOptionalContentConfig", null).then((H) => new r.OptionalContentConfig(H));
|
|
7277
7283
|
}
|
|
7278
7284
|
getPermissions() {
|
|
7279
7285
|
return this.messageHandler.sendWithPromise("GetPermissions", null);
|
|
7280
7286
|
}
|
|
7281
7287
|
getMetadata() {
|
|
7282
|
-
return u(this, J) || b(this, J, this.messageHandler.sendWithPromise("GetMetadata", null).then((
|
|
7283
|
-
var Q, G,
|
|
7288
|
+
return u(this, J) || b(this, J, this.messageHandler.sendWithPromise("GetMetadata", null).then((H) => {
|
|
7289
|
+
var Q, G, V, oe;
|
|
7284
7290
|
return {
|
|
7285
|
-
info:
|
|
7286
|
-
metadata:
|
|
7291
|
+
info: H[0],
|
|
7292
|
+
metadata: H[1] ? new D.Metadata(H[1]) : null,
|
|
7287
7293
|
contentDispositionFilename: (Q = (G = this._fullReader) === null || G === void 0 ? void 0 : G.filename) !== null && Q !== void 0 ? Q : null,
|
|
7288
|
-
contentLength: (
|
|
7294
|
+
contentLength: (V = (oe = this._fullReader) === null || oe === void 0 ? void 0 : oe.contentLength) !== null && V !== void 0 ? V : null
|
|
7289
7295
|
};
|
|
7290
7296
|
}));
|
|
7291
7297
|
}
|
|
@@ -7293,19 +7299,19 @@ var Kr = cr(function(Le, Ee) {
|
|
|
7293
7299
|
return this.messageHandler.sendWithPromise("GetMarkInfo", null);
|
|
7294
7300
|
}
|
|
7295
7301
|
async startCleanup() {
|
|
7296
|
-
let
|
|
7302
|
+
let H = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1;
|
|
7297
7303
|
if (await this.messageHandler.sendWithPromise("Cleanup", null), !this.destroyed) {
|
|
7298
7304
|
for (const Q of u(this, L).values())
|
|
7299
7305
|
if (!Q.cleanup())
|
|
7300
7306
|
throw new Error(`startCleanup: Page ${Q.pageNumber} is currently rendering.`);
|
|
7301
|
-
this.commonObjs.clear(),
|
|
7307
|
+
this.commonObjs.clear(), H || this.fontLoader.clear(), b(this, J, null), this._getFieldObjectsPromise = null, this._hasJSActionsPromise = null;
|
|
7302
7308
|
}
|
|
7303
7309
|
}
|
|
7304
7310
|
get loadingParams() {
|
|
7305
|
-
const
|
|
7311
|
+
const H = this._params;
|
|
7306
7312
|
return (0, o.shadow)(this, "loadingParams", {
|
|
7307
|
-
disableAutoFetch:
|
|
7308
|
-
enableXfa:
|
|
7313
|
+
disableAutoFetch: H.disableAutoFetch,
|
|
7314
|
+
enableXfa: H.enableXfa
|
|
7309
7315
|
});
|
|
7310
7316
|
}
|
|
7311
7317
|
}
|
|
@@ -7317,24 +7323,24 @@ var Kr = cr(function(Le, Ee) {
|
|
|
7317
7323
|
value: /* @__PURE__ */ Object.create(null)
|
|
7318
7324
|
});
|
|
7319
7325
|
}
|
|
7320
|
-
get(
|
|
7326
|
+
get(H) {
|
|
7321
7327
|
let Q = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null;
|
|
7322
7328
|
if (Q) {
|
|
7323
|
-
const
|
|
7324
|
-
return
|
|
7329
|
+
const V = w(this, he, fe).call(this, H);
|
|
7330
|
+
return V.capability.promise.then(() => Q(V.data)), null;
|
|
7325
7331
|
}
|
|
7326
|
-
const G = u(this, se)[
|
|
7332
|
+
const G = u(this, se)[H];
|
|
7327
7333
|
if (!(G != null && G.capability.settled))
|
|
7328
|
-
throw new Error(`Requesting object that isn't resolved yet ${
|
|
7334
|
+
throw new Error(`Requesting object that isn't resolved yet ${H}.`);
|
|
7329
7335
|
return G.data;
|
|
7330
7336
|
}
|
|
7331
|
-
has(
|
|
7332
|
-
const Q = u(this, se)[
|
|
7337
|
+
has(H) {
|
|
7338
|
+
const Q = u(this, se)[H];
|
|
7333
7339
|
return (Q == null ? void 0 : Q.capability.settled) || !1;
|
|
7334
7340
|
}
|
|
7335
|
-
resolve(
|
|
7341
|
+
resolve(H) {
|
|
7336
7342
|
let Q = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null;
|
|
7337
|
-
const G = w(this, he, fe).call(this,
|
|
7343
|
+
const G = w(this, he, fe).call(this, H);
|
|
7338
7344
|
G.data = Q, G.capability.resolve();
|
|
7339
7345
|
}
|
|
7340
7346
|
clear() {
|
|
@@ -7342,19 +7348,19 @@ var Kr = cr(function(Le, Ee) {
|
|
|
7342
7348
|
}
|
|
7343
7349
|
}
|
|
7344
7350
|
function fe(Pe) {
|
|
7345
|
-
const
|
|
7346
|
-
return
|
|
7351
|
+
const H = u(this, se)[Pe];
|
|
7352
|
+
return H || (u(this, se)[Pe] = {
|
|
7347
7353
|
capability: (0, o.createPromiseCapability)(),
|
|
7348
7354
|
data: null
|
|
7349
7355
|
});
|
|
7350
7356
|
}
|
|
7351
7357
|
var ve = /* @__PURE__ */ new WeakMap();
|
|
7352
7358
|
class we {
|
|
7353
|
-
constructor(
|
|
7359
|
+
constructor(H) {
|
|
7354
7360
|
F(this, ve, {
|
|
7355
7361
|
writable: !0,
|
|
7356
7362
|
value: null
|
|
7357
|
-
}), b(this, ve,
|
|
7363
|
+
}), b(this, ve, H), this.onContinue = null;
|
|
7358
7364
|
}
|
|
7359
7365
|
get promise() {
|
|
7360
7366
|
return u(this, ve).capability.promise;
|
|
@@ -7364,23 +7370,23 @@ var Kr = cr(function(Le, Ee) {
|
|
|
7364
7370
|
}
|
|
7365
7371
|
get separateAnnots() {
|
|
7366
7372
|
const {
|
|
7367
|
-
separateAnnots:
|
|
7373
|
+
separateAnnots: H
|
|
7368
7374
|
} = u(this, ve).operatorList;
|
|
7369
|
-
if (!
|
|
7375
|
+
if (!H)
|
|
7370
7376
|
return !1;
|
|
7371
7377
|
const {
|
|
7372
7378
|
annotationCanvasMap: Q
|
|
7373
7379
|
} = u(this, ve);
|
|
7374
|
-
return
|
|
7380
|
+
return H.form || H.canvas && (Q == null ? void 0 : Q.size) > 0;
|
|
7375
7381
|
}
|
|
7376
7382
|
}
|
|
7377
7383
|
v.RenderTask = we;
|
|
7378
7384
|
class Ce {
|
|
7379
|
-
constructor(
|
|
7385
|
+
constructor(H) {
|
|
7380
7386
|
let {
|
|
7381
7387
|
callback: Q,
|
|
7382
7388
|
params: G,
|
|
7383
|
-
objs:
|
|
7389
|
+
objs: V,
|
|
7384
7390
|
commonObjs: oe,
|
|
7385
7391
|
annotationCanvasMap: _e,
|
|
7386
7392
|
operatorList: ke,
|
|
@@ -7389,19 +7395,19 @@ var Kr = cr(function(Le, Ee) {
|
|
|
7389
7395
|
useRequestAnimationFrame: Be = !1,
|
|
7390
7396
|
pdfBug: ge = !1,
|
|
7391
7397
|
pageColors: te = null
|
|
7392
|
-
} =
|
|
7393
|
-
this.callback = Q, this.params = G, this.objs =
|
|
7398
|
+
} = H;
|
|
7399
|
+
this.callback = Q, this.params = G, this.objs = V, this.commonObjs = oe, this.annotationCanvasMap = _e, this.operatorListIdx = null, this.operatorList = ke, this._pageIndex = ce, this.canvasFactory = Re, this._pdfBug = ge, this.pageColors = te, this.running = !1, this.graphicsReadyCallback = null, this.graphicsReady = !1, this._useRequestAnimationFrame = Be === !0 && typeof window < "u", this.cancelled = !1, this.capability = (0, o.createPromiseCapability)(), this.task = new we(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 = G.canvasContext.canvas;
|
|
7394
7400
|
}
|
|
7395
7401
|
get completed() {
|
|
7396
7402
|
return this.capability.promise.catch(function() {
|
|
7397
7403
|
});
|
|
7398
7404
|
}
|
|
7399
|
-
initializeGraphics(
|
|
7405
|
+
initializeGraphics(H) {
|
|
7400
7406
|
var Q;
|
|
7401
7407
|
let {
|
|
7402
7408
|
transparency: G = !1,
|
|
7403
|
-
optionalContentConfig:
|
|
7404
|
-
} =
|
|
7409
|
+
optionalContentConfig: V
|
|
7410
|
+
} = H;
|
|
7405
7411
|
if (this.cancelled)
|
|
7406
7412
|
return;
|
|
7407
7413
|
if (this._canvas) {
|
|
@@ -7417,7 +7423,7 @@ var Kr = cr(function(Le, Ee) {
|
|
|
7417
7423
|
imageLayer: ce,
|
|
7418
7424
|
background: Re
|
|
7419
7425
|
} = this.params;
|
|
7420
|
-
this.gfx = new O.CanvasGraphics(oe, this.commonObjs, this.objs, this.canvasFactory, ce,
|
|
7426
|
+
this.gfx = new O.CanvasGraphics(oe, this.commonObjs, this.objs, this.canvasFactory, ce, V, this.annotationCanvasMap, this.pageColors), this.gfx.beginDrawing({
|
|
7421
7427
|
transform: ke,
|
|
7422
7428
|
viewport: _e,
|
|
7423
7429
|
transparency: G,
|
|
@@ -7425,8 +7431,8 @@ var Kr = cr(function(Le, Ee) {
|
|
|
7425
7431
|
}), this.operatorListIdx = 0, this.graphicsReady = !0, this.graphicsReadyCallback && this.graphicsReadyCallback();
|
|
7426
7432
|
}
|
|
7427
7433
|
cancel() {
|
|
7428
|
-
let
|
|
7429
|
-
this.running = !1, this.cancelled = !0, this.gfx && this.gfx.endDrawing(), this._canvas && g(Ce, Ce, Oe).delete(this._canvas), this.callback(
|
|
7434
|
+
let H = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : null;
|
|
7435
|
+
this.running = !1, this.cancelled = !0, this.gfx && this.gfx.endDrawing(), this._canvas && g(Ce, Ce, Oe).delete(this._canvas), this.callback(H || new T.RenderingCancelledException(`Rendering cancelled, page ${this._pageIndex + 1}`, "canvas"));
|
|
7430
7436
|
}
|
|
7431
7437
|
operatorListChanged() {
|
|
7432
7438
|
if (!this.graphicsReady) {
|
|
@@ -7825,52 +7831,52 @@ var Kr = cr(function(Le, Ee) {
|
|
|
7825
7831
|
value: !0
|
|
7826
7832
|
}), v.KeyboardManager = v.CommandManager = v.ColorManager = v.AnnotationEditorUIManager = void 0, v.bindEvents = h, v.opacityToHex = w;
|
|
7827
7833
|
var o = n(1), c = n(133);
|
|
7828
|
-
function T(G,
|
|
7829
|
-
return
|
|
7834
|
+
function T(G, V, oe) {
|
|
7835
|
+
return V in G ? Object.defineProperty(G, V, { value: oe, enumerable: !0, configurable: !0, writable: !0 }) : G[V] = oe, G;
|
|
7830
7836
|
}
|
|
7831
|
-
function R(G,
|
|
7832
|
-
m(G,
|
|
7837
|
+
function R(G, V) {
|
|
7838
|
+
m(G, V), V.add(G);
|
|
7833
7839
|
}
|
|
7834
|
-
function O(G,
|
|
7835
|
-
if (!
|
|
7840
|
+
function O(G, V, oe) {
|
|
7841
|
+
if (!V.has(G))
|
|
7836
7842
|
throw new TypeError("attempted to get private field on non-instance");
|
|
7837
7843
|
return oe;
|
|
7838
7844
|
}
|
|
7839
|
-
function P(G,
|
|
7840
|
-
m(G,
|
|
7845
|
+
function P(G, V, oe) {
|
|
7846
|
+
m(G, V), V.set(G, oe);
|
|
7841
7847
|
}
|
|
7842
|
-
function m(G,
|
|
7843
|
-
if (
|
|
7848
|
+
function m(G, V) {
|
|
7849
|
+
if (V.has(G))
|
|
7844
7850
|
throw new TypeError("Cannot initialize the same private elements twice on an object");
|
|
7845
7851
|
}
|
|
7846
|
-
function y(G,
|
|
7847
|
-
var _e = l(G,
|
|
7852
|
+
function y(G, V, oe) {
|
|
7853
|
+
var _e = l(G, V, "set");
|
|
7848
7854
|
return D(G, _e, oe), oe;
|
|
7849
7855
|
}
|
|
7850
|
-
function D(G,
|
|
7851
|
-
if (
|
|
7852
|
-
|
|
7856
|
+
function D(G, V, oe) {
|
|
7857
|
+
if (V.set)
|
|
7858
|
+
V.set.call(G, oe);
|
|
7853
7859
|
else {
|
|
7854
|
-
if (!
|
|
7860
|
+
if (!V.writable)
|
|
7855
7861
|
throw new TypeError("attempted to set read only private field");
|
|
7856
|
-
|
|
7862
|
+
V.value = oe;
|
|
7857
7863
|
}
|
|
7858
7864
|
}
|
|
7859
|
-
function r(G,
|
|
7860
|
-
var oe = l(G,
|
|
7865
|
+
function r(G, V) {
|
|
7866
|
+
var oe = l(G, V, "get");
|
|
7861
7867
|
return A(G, oe);
|
|
7862
7868
|
}
|
|
7863
|
-
function l(G,
|
|
7864
|
-
if (!
|
|
7869
|
+
function l(G, V, oe) {
|
|
7870
|
+
if (!V.has(G))
|
|
7865
7871
|
throw new TypeError("attempted to " + oe + " private field on non-instance");
|
|
7866
|
-
return
|
|
7872
|
+
return V.get(G);
|
|
7867
7873
|
}
|
|
7868
|
-
function A(G,
|
|
7869
|
-
return
|
|
7874
|
+
function A(G, V) {
|
|
7875
|
+
return V.get ? V.get.call(G) : V.value;
|
|
7870
7876
|
}
|
|
7871
|
-
function h(G,
|
|
7877
|
+
function h(G, V, oe) {
|
|
7872
7878
|
for (const _e of oe)
|
|
7873
|
-
|
|
7879
|
+
V.addEventListener(_e, G[_e].bind(G));
|
|
7874
7880
|
}
|
|
7875
7881
|
function w(G) {
|
|
7876
7882
|
return Math.round(Math.min(255, Math.max(1, 255 * G))).toString(16).padStart(2, "0");
|
|
@@ -7884,14 +7890,14 @@ var Kr = cr(function(Le, Ee) {
|
|
|
7884
7890
|
});
|
|
7885
7891
|
}
|
|
7886
7892
|
getId() {
|
|
7887
|
-
var
|
|
7888
|
-
return `${o.AnnotationEditorPrefix}${y(this, F, (
|
|
7893
|
+
var V, oe;
|
|
7894
|
+
return `${o.AnnotationEditorPrefix}${y(this, F, (V = r(this, F), oe = V++, V)), oe}`;
|
|
7889
7895
|
}
|
|
7890
7896
|
}
|
|
7891
7897
|
var b = /* @__PURE__ */ new WeakMap(), u = /* @__PURE__ */ new WeakMap(), t = /* @__PURE__ */ new WeakMap(), a = /* @__PURE__ */ new WeakMap();
|
|
7892
7898
|
class f {
|
|
7893
7899
|
constructor() {
|
|
7894
|
-
let
|
|
7900
|
+
let V = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 128;
|
|
7895
7901
|
P(this, b, {
|
|
7896
7902
|
writable: !0,
|
|
7897
7903
|
value: []
|
|
@@ -7904,9 +7910,9 @@ var Kr = cr(function(Le, Ee) {
|
|
|
7904
7910
|
}), P(this, a, {
|
|
7905
7911
|
writable: !0,
|
|
7906
7912
|
value: -1
|
|
7907
|
-
}), y(this, t,
|
|
7913
|
+
}), y(this, t, V);
|
|
7908
7914
|
}
|
|
7909
|
-
add(
|
|
7915
|
+
add(V) {
|
|
7910
7916
|
let {
|
|
7911
7917
|
cmd: oe,
|
|
7912
7918
|
undo: _e,
|
|
@@ -7914,7 +7920,7 @@ var Kr = cr(function(Le, Ee) {
|
|
|
7914
7920
|
type: ce = NaN,
|
|
7915
7921
|
overwriteIfSameType: Re = !1,
|
|
7916
7922
|
keepUndo: Be = !1
|
|
7917
|
-
} =
|
|
7923
|
+
} = V;
|
|
7918
7924
|
if (ke && oe(), r(this, u))
|
|
7919
7925
|
return;
|
|
7920
7926
|
const ge = {
|
|
@@ -7952,34 +7958,34 @@ var Kr = cr(function(Le, Ee) {
|
|
|
7952
7958
|
v.CommandManager = f;
|
|
7953
7959
|
var g = /* @__PURE__ */ new WeakSet();
|
|
7954
7960
|
class E {
|
|
7955
|
-
constructor(
|
|
7961
|
+
constructor(V) {
|
|
7956
7962
|
R(this, g), this.buffer = [], this.callbacks = /* @__PURE__ */ new Map(), this.allKeys = /* @__PURE__ */ new Set();
|
|
7957
7963
|
const oe = E.platform.isMac;
|
|
7958
|
-
for (const [_e, ke] of
|
|
7964
|
+
for (const [_e, ke] of V)
|
|
7959
7965
|
for (const ce of _e) {
|
|
7960
7966
|
const Re = ce.startsWith("mac+");
|
|
7961
7967
|
oe && Re ? (this.callbacks.set(ce.slice(4), ke), this.allKeys.add(ce.split("+").at(-1))) : !oe && !Re && (this.callbacks.set(ce, ke), this.allKeys.add(ce.split("+").at(-1)));
|
|
7962
7968
|
}
|
|
7963
7969
|
}
|
|
7964
7970
|
static get platform() {
|
|
7965
|
-
const
|
|
7971
|
+
const V = typeof navigator < "u" ? navigator.platform : "";
|
|
7966
7972
|
return (0, o.shadow)(this, "platform", {
|
|
7967
|
-
isWin:
|
|
7968
|
-
isMac:
|
|
7973
|
+
isWin: V.includes("Win"),
|
|
7974
|
+
isMac: V.includes("Mac")
|
|
7969
7975
|
});
|
|
7970
7976
|
}
|
|
7971
|
-
exec(
|
|
7977
|
+
exec(V, oe) {
|
|
7972
7978
|
if (!this.allKeys.has(oe.key))
|
|
7973
7979
|
return;
|
|
7974
7980
|
const _e = this.callbacks.get(O(this, g, W).call(this, oe));
|
|
7975
|
-
!_e || (_e.bind(
|
|
7981
|
+
!_e || (_e.bind(V)(), oe.stopPropagation(), oe.preventDefault());
|
|
7976
7982
|
}
|
|
7977
7983
|
}
|
|
7978
7984
|
v.KeyboardManager = E;
|
|
7979
7985
|
function W(G) {
|
|
7980
7986
|
G.altKey && this.buffer.push("alt"), G.ctrlKey && this.buffer.push("ctrl"), G.metaKey && this.buffer.push("meta"), G.shiftKey && this.buffer.push("shift"), this.buffer.push(G.key);
|
|
7981
|
-
const
|
|
7982
|
-
return this.buffer.length = 0,
|
|
7987
|
+
const V = this.buffer.join("+");
|
|
7988
|
+
return this.buffer.length = 0, V;
|
|
7983
7989
|
}
|
|
7984
7990
|
var k = /* @__PURE__ */ new WeakMap();
|
|
7985
7991
|
class ne {
|
|
@@ -7989,8 +7995,8 @@ var Kr = cr(function(Le, Ee) {
|
|
|
7989
7995
|
value: null
|
|
7990
7996
|
});
|
|
7991
7997
|
}
|
|
7992
|
-
copy(
|
|
7993
|
-
!
|
|
7998
|
+
copy(V) {
|
|
7999
|
+
!V || (Array.isArray(V) ? y(this, k, V.map((oe) => oe.serialize())) : y(this, k, [V.serialize()]), y(this, k, r(this, k).filter((oe) => !!oe)), r(this, k).length === 0 && y(this, k, null));
|
|
7994
8000
|
}
|
|
7995
8001
|
paste() {
|
|
7996
8002
|
return r(this, k);
|
|
@@ -8004,11 +8010,11 @@ var Kr = cr(function(Le, Ee) {
|
|
|
8004
8010
|
}
|
|
8005
8011
|
class q {
|
|
8006
8012
|
get _colors() {
|
|
8007
|
-
const
|
|
8008
|
-
return (0, c.getColorValues)(
|
|
8013
|
+
const V = /* @__PURE__ */ new Map([["CanvasText", null], ["Canvas", null]]);
|
|
8014
|
+
return (0, c.getColorValues)(V), (0, o.shadow)(this, "_colors", V);
|
|
8009
8015
|
}
|
|
8010
|
-
convert(
|
|
8011
|
-
const oe = (0, c.getRGB)(
|
|
8016
|
+
convert(V) {
|
|
8017
|
+
const oe = (0, c.getRGB)(V);
|
|
8012
8018
|
if (!window.matchMedia("(forced-colors: active)").matches)
|
|
8013
8019
|
return oe;
|
|
8014
8020
|
for (const [_e, ke] of this._colors)
|
|
@@ -8016,15 +8022,15 @@ var Kr = cr(function(Le, Ee) {
|
|
|
8016
8022
|
return q._colorsMapping.get(_e);
|
|
8017
8023
|
return oe;
|
|
8018
8024
|
}
|
|
8019
|
-
getHexCode(
|
|
8020
|
-
const oe = this._colors.get(
|
|
8021
|
-
return oe ? o.Util.makeHexColor(...oe) :
|
|
8025
|
+
getHexCode(V) {
|
|
8026
|
+
const oe = this._colors.get(V);
|
|
8027
|
+
return oe ? o.Util.makeHexColor(...oe) : V;
|
|
8022
8028
|
}
|
|
8023
8029
|
}
|
|
8024
8030
|
v.ColorManager = q, T(q, "_colorsMapping", /* @__PURE__ */ new Map([["CanvasText", [0, 0, 0]], ["Canvas", [255, 255, 255]]]));
|
|
8025
8031
|
var re = /* @__PURE__ */ new WeakMap(), Z = /* @__PURE__ */ new WeakMap(), z = /* @__PURE__ */ new WeakMap(), $ = /* @__PURE__ */ new WeakMap(), U = /* @__PURE__ */ new WeakMap(), I = /* @__PURE__ */ new WeakMap(), ee = /* @__PURE__ */ new WeakMap(), de = /* @__PURE__ */ new WeakMap(), ye = /* @__PURE__ */ new WeakMap(), Se = /* @__PURE__ */ new WeakMap(), Y = /* @__PURE__ */ new WeakMap(), C = /* @__PURE__ */ new WeakMap(), S = /* @__PURE__ */ new WeakMap(), N = /* @__PURE__ */ new WeakMap(), j = /* @__PURE__ */ new WeakMap(), s = /* @__PURE__ */ new WeakMap(), d = /* @__PURE__ */ new WeakMap(), _ = /* @__PURE__ */ new WeakSet(), M = /* @__PURE__ */ new WeakSet(), L = /* @__PURE__ */ new WeakSet(), X = /* @__PURE__ */ new WeakSet(), J = /* @__PURE__ */ new WeakSet(), ie = /* @__PURE__ */ new WeakSet(), se = /* @__PURE__ */ new WeakSet(), he = /* @__PURE__ */ new WeakSet(), le = /* @__PURE__ */ new WeakSet();
|
|
8026
8032
|
class fe {
|
|
8027
|
-
constructor(
|
|
8033
|
+
constructor(V, oe) {
|
|
8028
8034
|
R(this, le), R(this, he), R(this, se), R(this, ie), R(this, J), R(this, X), R(this, L), R(this, M), R(this, _), P(this, re, {
|
|
8029
8035
|
writable: !0,
|
|
8030
8036
|
value: null
|
|
@@ -8083,34 +8089,34 @@ var Kr = cr(function(Le, Ee) {
|
|
|
8083
8089
|
}), P(this, d, {
|
|
8084
8090
|
writable: !0,
|
|
8085
8091
|
value: null
|
|
8086
|
-
}), y(this, d,
|
|
8092
|
+
}), y(this, d, V), y(this, de, oe), r(this, de)._on("editingaction", r(this, N)), r(this, de)._on("pagechanging", r(this, j));
|
|
8087
8093
|
}
|
|
8088
8094
|
destroy() {
|
|
8089
8095
|
O(this, M, we).call(this), r(this, de)._off("editingaction", r(this, N)), r(this, de)._off("pagechanging", r(this, j));
|
|
8090
|
-
for (const
|
|
8091
|
-
|
|
8096
|
+
for (const V of r(this, z).values())
|
|
8097
|
+
V.destroy();
|
|
8092
8098
|
r(this, z).clear(), r(this, Z).clear(), y(this, re, null), r(this, C).clear(), r(this, $).destroy(), r(this, U).destroy();
|
|
8093
8099
|
}
|
|
8094
|
-
onPageChanging(
|
|
8100
|
+
onPageChanging(V) {
|
|
8095
8101
|
let {
|
|
8096
8102
|
pageNumber: oe
|
|
8097
|
-
} =
|
|
8103
|
+
} = V;
|
|
8098
8104
|
y(this, I, oe - 1);
|
|
8099
8105
|
}
|
|
8100
8106
|
focusMainContainer() {
|
|
8101
8107
|
r(this, d).focus();
|
|
8102
8108
|
}
|
|
8103
|
-
keydown(
|
|
8109
|
+
keydown(V) {
|
|
8104
8110
|
var oe;
|
|
8105
|
-
(oe = this.getActive()) !== null && oe !== void 0 && oe.shouldGetKeyboardEvents() || fe._keyboardManager.exec(this,
|
|
8111
|
+
(oe = this.getActive()) !== null && oe !== void 0 && oe.shouldGetKeyboardEvents() || fe._keyboardManager.exec(this, V);
|
|
8106
8112
|
}
|
|
8107
|
-
onEditingAction(
|
|
8108
|
-
["undo", "redo", "cut", "copy", "paste", "delete", "selectAll"].includes(
|
|
8113
|
+
onEditingAction(V) {
|
|
8114
|
+
["undo", "redo", "cut", "copy", "paste", "delete", "selectAll"].includes(V.name) && this[V.name]();
|
|
8109
8115
|
}
|
|
8110
|
-
setEditingState(
|
|
8111
|
-
|
|
8116
|
+
setEditingState(V) {
|
|
8117
|
+
V ? (O(this, _, ve).call(this), O(this, L, Ce).call(this, {
|
|
8112
8118
|
isEditing: r(this, Y) !== o.AnnotationEditorType.NONE,
|
|
8113
|
-
isEmpty: O(this, he,
|
|
8119
|
+
isEmpty: O(this, he, H).call(this),
|
|
8114
8120
|
hasSomethingToUndo: r(this, U).hasSomethingToUndo(),
|
|
8115
8121
|
hasSomethingToRedo: r(this, U).hasSomethingToRedo(),
|
|
8116
8122
|
hasSelectedEditor: !1,
|
|
@@ -8119,82 +8125,82 @@ var Kr = cr(function(Le, Ee) {
|
|
|
8119
8125
|
isEditing: !1
|
|
8120
8126
|
}));
|
|
8121
8127
|
}
|
|
8122
|
-
registerEditorTypes(
|
|
8123
|
-
y(this, ee,
|
|
8128
|
+
registerEditorTypes(V) {
|
|
8129
|
+
y(this, ee, V);
|
|
8124
8130
|
for (const oe of r(this, ee))
|
|
8125
8131
|
O(this, X, Oe).call(this, oe.defaultPropertiesToUpdate);
|
|
8126
8132
|
}
|
|
8127
8133
|
getId() {
|
|
8128
8134
|
return r(this, ye).getId();
|
|
8129
8135
|
}
|
|
8130
|
-
addLayer(
|
|
8131
|
-
r(this, z).set(
|
|
8136
|
+
addLayer(V) {
|
|
8137
|
+
r(this, z).set(V.pageIndex, V), r(this, Se) ? V.enable() : V.disable();
|
|
8132
8138
|
}
|
|
8133
|
-
removeLayer(
|
|
8134
|
-
r(this, z).delete(
|
|
8139
|
+
removeLayer(V) {
|
|
8140
|
+
r(this, z).delete(V.pageIndex);
|
|
8135
8141
|
}
|
|
8136
|
-
updateMode(
|
|
8137
|
-
if (y(this, Y,
|
|
8142
|
+
updateMode(V) {
|
|
8143
|
+
if (y(this, Y, V), V === o.AnnotationEditorType.NONE)
|
|
8138
8144
|
this.setEditingState(!1), O(this, ie, Fe).call(this);
|
|
8139
8145
|
else {
|
|
8140
8146
|
this.setEditingState(!0), O(this, J, ze).call(this);
|
|
8141
8147
|
for (const oe of r(this, z).values())
|
|
8142
|
-
oe.updateMode(
|
|
8148
|
+
oe.updateMode(V);
|
|
8143
8149
|
}
|
|
8144
8150
|
}
|
|
8145
|
-
updateToolbar(
|
|
8146
|
-
|
|
8151
|
+
updateToolbar(V) {
|
|
8152
|
+
V !== r(this, Y) && r(this, de).dispatch("switchannotationeditormode", {
|
|
8147
8153
|
source: this,
|
|
8148
|
-
mode:
|
|
8154
|
+
mode: V
|
|
8149
8155
|
});
|
|
8150
8156
|
}
|
|
8151
|
-
updateParams(
|
|
8157
|
+
updateParams(V, oe) {
|
|
8152
8158
|
for (const _e of r(this, C))
|
|
8153
|
-
_e.updateParams(
|
|
8159
|
+
_e.updateParams(V, oe);
|
|
8154
8160
|
for (const _e of r(this, ee))
|
|
8155
|
-
_e.updateDefaultParams(
|
|
8161
|
+
_e.updateDefaultParams(V, oe);
|
|
8156
8162
|
}
|
|
8157
|
-
getEditors(
|
|
8163
|
+
getEditors(V) {
|
|
8158
8164
|
const oe = [];
|
|
8159
8165
|
for (const _e of r(this, Z).values())
|
|
8160
|
-
_e.pageIndex ===
|
|
8166
|
+
_e.pageIndex === V && oe.push(_e);
|
|
8161
8167
|
return oe;
|
|
8162
8168
|
}
|
|
8163
|
-
getEditor(
|
|
8164
|
-
return r(this, Z).get(
|
|
8169
|
+
getEditor(V) {
|
|
8170
|
+
return r(this, Z).get(V);
|
|
8165
8171
|
}
|
|
8166
|
-
addEditor(
|
|
8167
|
-
r(this, Z).set(
|
|
8172
|
+
addEditor(V) {
|
|
8173
|
+
r(this, Z).set(V.id, V);
|
|
8168
8174
|
}
|
|
8169
|
-
removeEditor(
|
|
8170
|
-
r(this, Z).delete(
|
|
8175
|
+
removeEditor(V) {
|
|
8176
|
+
r(this, Z).delete(V.id), this.unselect(V);
|
|
8171
8177
|
}
|
|
8172
|
-
setActiveEditor(
|
|
8173
|
-
r(this, re) !==
|
|
8178
|
+
setActiveEditor(V) {
|
|
8179
|
+
r(this, re) !== V && (y(this, re, V), V && O(this, X, Oe).call(this, V.propertiesToUpdate));
|
|
8174
8180
|
}
|
|
8175
|
-
toggleSelected(
|
|
8176
|
-
if (r(this, C).has(
|
|
8177
|
-
r(this, C).delete(
|
|
8181
|
+
toggleSelected(V) {
|
|
8182
|
+
if (r(this, C).has(V)) {
|
|
8183
|
+
r(this, C).delete(V), V.unselect(), O(this, L, Ce).call(this, {
|
|
8178
8184
|
hasSelectedEditor: this.hasSelection
|
|
8179
8185
|
});
|
|
8180
8186
|
return;
|
|
8181
8187
|
}
|
|
8182
|
-
r(this, C).add(
|
|
8188
|
+
r(this, C).add(V), V.select(), O(this, X, Oe).call(this, V.propertiesToUpdate), O(this, L, Ce).call(this, {
|
|
8183
8189
|
hasSelectedEditor: !0
|
|
8184
8190
|
});
|
|
8185
8191
|
}
|
|
8186
|
-
setSelected(
|
|
8192
|
+
setSelected(V) {
|
|
8187
8193
|
for (const oe of r(this, C))
|
|
8188
|
-
oe !==
|
|
8189
|
-
r(this, C).clear(), r(this, C).add(
|
|
8194
|
+
oe !== V && oe.unselect();
|
|
8195
|
+
r(this, C).clear(), r(this, C).add(V), V.select(), O(this, X, Oe).call(this, V.propertiesToUpdate), O(this, L, Ce).call(this, {
|
|
8190
8196
|
hasSelectedEditor: !0
|
|
8191
8197
|
});
|
|
8192
8198
|
}
|
|
8193
|
-
isSelected(
|
|
8194
|
-
return r(this, C).has(
|
|
8199
|
+
isSelected(V) {
|
|
8200
|
+
return r(this, C).has(V);
|
|
8195
8201
|
}
|
|
8196
|
-
unselect(
|
|
8197
|
-
|
|
8202
|
+
unselect(V) {
|
|
8203
|
+
V.unselect(), r(this, C).delete(V), O(this, L, Ce).call(this, {
|
|
8198
8204
|
hasSelectedEditor: this.hasSelection
|
|
8199
8205
|
});
|
|
8200
8206
|
}
|
|
@@ -8205,31 +8211,31 @@ var Kr = cr(function(Le, Ee) {
|
|
|
8205
8211
|
r(this, U).undo(), O(this, L, Ce).call(this, {
|
|
8206
8212
|
hasSomethingToUndo: r(this, U).hasSomethingToUndo(),
|
|
8207
8213
|
hasSomethingToRedo: !0,
|
|
8208
|
-
isEmpty: O(this, he,
|
|
8214
|
+
isEmpty: O(this, he, H).call(this)
|
|
8209
8215
|
});
|
|
8210
8216
|
}
|
|
8211
8217
|
redo() {
|
|
8212
8218
|
r(this, U).redo(), O(this, L, Ce).call(this, {
|
|
8213
8219
|
hasSomethingToUndo: !0,
|
|
8214
8220
|
hasSomethingToRedo: r(this, U).hasSomethingToRedo(),
|
|
8215
|
-
isEmpty: O(this, he,
|
|
8221
|
+
isEmpty: O(this, he, H).call(this)
|
|
8216
8222
|
});
|
|
8217
8223
|
}
|
|
8218
|
-
addCommands(
|
|
8219
|
-
r(this, U).add(
|
|
8224
|
+
addCommands(V) {
|
|
8225
|
+
r(this, U).add(V), O(this, L, Ce).call(this, {
|
|
8220
8226
|
hasSomethingToUndo: !0,
|
|
8221
8227
|
hasSomethingToRedo: !1,
|
|
8222
|
-
isEmpty: O(this, he,
|
|
8228
|
+
isEmpty: O(this, he, H).call(this)
|
|
8223
8229
|
});
|
|
8224
8230
|
}
|
|
8225
8231
|
delete() {
|
|
8226
8232
|
if (r(this, re) && r(this, re).commitOrRemove(), !this.hasSelection)
|
|
8227
8233
|
return;
|
|
8228
|
-
const
|
|
8229
|
-
for (const ke of
|
|
8234
|
+
const V = [...r(this, C)], oe = () => {
|
|
8235
|
+
for (const ke of V)
|
|
8230
8236
|
ke.remove();
|
|
8231
8237
|
}, _e = () => {
|
|
8232
|
-
for (const ke of
|
|
8238
|
+
for (const ke of V)
|
|
8233
8239
|
O(this, se, Pe).call(this, ke);
|
|
8234
8240
|
};
|
|
8235
8241
|
this.addCommands({
|
|
@@ -8240,12 +8246,12 @@ var Kr = cr(function(Le, Ee) {
|
|
|
8240
8246
|
}
|
|
8241
8247
|
copy() {
|
|
8242
8248
|
if (r(this, re) && r(this, re).commitOrRemove(), this.hasSelection) {
|
|
8243
|
-
const
|
|
8249
|
+
const V = [];
|
|
8244
8250
|
for (const oe of r(this, C))
|
|
8245
|
-
oe.isEmpty() ||
|
|
8246
|
-
if (
|
|
8251
|
+
oe.isEmpty() || V.push(oe);
|
|
8252
|
+
if (V.length === 0)
|
|
8247
8253
|
return;
|
|
8248
|
-
r(this, $).copy(
|
|
8254
|
+
r(this, $).copy(V), O(this, L, Ce).call(this, {
|
|
8249
8255
|
hasEmptyClipboard: !1
|
|
8250
8256
|
});
|
|
8251
8257
|
}
|
|
@@ -8257,7 +8263,7 @@ var Kr = cr(function(Le, Ee) {
|
|
|
8257
8263
|
if (r(this, $).isEmpty())
|
|
8258
8264
|
return;
|
|
8259
8265
|
this.unselectAll();
|
|
8260
|
-
const
|
|
8266
|
+
const V = r(this, z).get(r(this, I)), oe = r(this, $).paste().map((ce) => V.deserialize(ce)), _e = () => {
|
|
8261
8267
|
for (const ce of oe)
|
|
8262
8268
|
O(this, se, Pe).call(this, ce);
|
|
8263
8269
|
O(this, le, Q).call(this, oe);
|
|
@@ -8272,8 +8278,8 @@ var Kr = cr(function(Le, Ee) {
|
|
|
8272
8278
|
});
|
|
8273
8279
|
}
|
|
8274
8280
|
selectAll() {
|
|
8275
|
-
for (const
|
|
8276
|
-
|
|
8281
|
+
for (const V of r(this, C))
|
|
8282
|
+
V.commit();
|
|
8277
8283
|
O(this, le, Q).call(this, r(this, Z).values());
|
|
8278
8284
|
}
|
|
8279
8285
|
unselectAll() {
|
|
@@ -8282,15 +8288,15 @@ var Kr = cr(function(Le, Ee) {
|
|
|
8282
8288
|
return;
|
|
8283
8289
|
}
|
|
8284
8290
|
if (O(this, le, Q).size !== 0) {
|
|
8285
|
-
for (const
|
|
8286
|
-
|
|
8291
|
+
for (const V of r(this, C))
|
|
8292
|
+
V.unselect();
|
|
8287
8293
|
r(this, C).clear(), O(this, L, Ce).call(this, {
|
|
8288
8294
|
hasSelectedEditor: !1
|
|
8289
8295
|
});
|
|
8290
8296
|
}
|
|
8291
8297
|
}
|
|
8292
|
-
isActive(
|
|
8293
|
-
return r(this, re) ===
|
|
8298
|
+
isActive(V) {
|
|
8299
|
+
return r(this, re) === V;
|
|
8294
8300
|
}
|
|
8295
8301
|
getActive() {
|
|
8296
8302
|
return r(this, re);
|
|
@@ -8336,10 +8342,10 @@ var Kr = cr(function(Le, Ee) {
|
|
|
8336
8342
|
}
|
|
8337
8343
|
}
|
|
8338
8344
|
function Pe(G) {
|
|
8339
|
-
const
|
|
8340
|
-
|
|
8345
|
+
const V = r(this, z).get(G.pageIndex);
|
|
8346
|
+
V ? V.addOrRebuild(G) : this.addEditor(G);
|
|
8341
8347
|
}
|
|
8342
|
-
function
|
|
8348
|
+
function H() {
|
|
8343
8349
|
if (r(this, Z).size === 0)
|
|
8344
8350
|
return !0;
|
|
8345
8351
|
if (r(this, Z).size === 1)
|
|
@@ -8349,8 +8355,8 @@ var Kr = cr(function(Le, Ee) {
|
|
|
8349
8355
|
}
|
|
8350
8356
|
function Q(G) {
|
|
8351
8357
|
r(this, C).clear();
|
|
8352
|
-
for (const
|
|
8353
|
-
|
|
8358
|
+
for (const V of G)
|
|
8359
|
+
V.isEmpty() || (r(this, C).add(V), V.select());
|
|
8354
8360
|
O(this, L, Ce).call(this, {
|
|
8355
8361
|
hasSelectedEditor: !0
|
|
8356
8362
|
});
|
|
@@ -9117,11 +9123,11 @@ var Kr = cr(function(Le, Ee) {
|
|
|
9117
9123
|
function u(Y, C, S, N, j, s, d, _, M, L) {
|
|
9118
9124
|
const [X, J, ie, se, he, le] = (0, o.getCurrentTransform)(Y);
|
|
9119
9125
|
if (J === 0 && ie === 0) {
|
|
9120
|
-
const we = d * X + he, Ce = Math.round(we), Oe = _ * se + le, ze = Math.round(Oe), Fe = (d + M) * X + he, Pe = Math.abs(Math.round(Fe) - Ce) || 1,
|
|
9126
|
+
const we = d * X + he, Ce = Math.round(we), Oe = _ * se + le, ze = Math.round(Oe), Fe = (d + M) * X + he, Pe = Math.abs(Math.round(Fe) - Ce) || 1, H = (_ + L) * se + le, Q = Math.abs(Math.round(H) - ze) || 1;
|
|
9121
9127
|
return Y.setTransform(Math.sign(X), 0, 0, Math.sign(se), Ce, ze), Y.drawImage(C, S, N, j, s, 0, 0, Pe, Q), Y.setTransform(X, J, ie, se, he, le), [Pe, Q];
|
|
9122
9128
|
}
|
|
9123
9129
|
if (X === 0 && se === 0) {
|
|
9124
|
-
const we = _ * ie + he, Ce = Math.round(we), Oe = d * J + le, ze = Math.round(Oe), Fe = (_ + L) * ie + he, Pe = Math.abs(Math.round(Fe) - Ce) || 1,
|
|
9130
|
+
const we = _ * ie + he, Ce = Math.round(we), Oe = d * J + le, ze = Math.round(Oe), Fe = (_ + L) * ie + he, Pe = Math.abs(Math.round(Fe) - Ce) || 1, H = (d + M) * J + le, Q = Math.abs(Math.round(H) - ze) || 1;
|
|
9125
9131
|
return Y.setTransform(0, Math.sign(J), Math.sign(ie), 0, Ce, ze), Y.drawImage(C, S, N, j, s, 0, 0, Q, Pe), Y.setTransform(X, J, ie, se, he, le), [Q, Pe];
|
|
9126
9132
|
}
|
|
9127
9133
|
Y.drawImage(C, S, N, j, s, d, _, M, L);
|
|
@@ -9258,13 +9264,13 @@ var Kr = cr(function(Le, Ee) {
|
|
|
9258
9264
|
break;
|
|
9259
9265
|
}
|
|
9260
9266
|
if (C.kind === c.ImageKind.GRAYSCALE_1BPP) {
|
|
9261
|
-
const ze = J.byteLength, Fe = new Uint32Array(ie.buffer, 0, ie.byteLength >> 2), Pe = Fe.length,
|
|
9267
|
+
const ze = J.byteLength, Fe = new Uint32Array(ie.buffer, 0, ie.byteLength >> 2), Pe = Fe.length, H = j + 7 >> 3;
|
|
9262
9268
|
let Q = 4294967295, G = c.FeatureTest.isLittleEndian ? 4278190080 : 255;
|
|
9263
9269
|
for (Oe && Oe[0] === 255 && Oe[255] === 0 && ([Q, G] = [G, Q]), se = 0; se < _; se++) {
|
|
9264
9270
|
for (le = se < d ? F : s, X = 0, he = 0; he < le; he++) {
|
|
9265
|
-
const
|
|
9271
|
+
const V = ze - L;
|
|
9266
9272
|
let oe = 0;
|
|
9267
|
-
const _e =
|
|
9273
|
+
const _e = V > H ? j : V * 8 - 7, ke = _e & -8;
|
|
9268
9274
|
let ce = 0, Re = 0;
|
|
9269
9275
|
for (; oe < ke; oe += 8)
|
|
9270
9276
|
Re = J[L++], Fe[X++] = Re & 128 ? Q : G, Fe[X++] = Re & 64 ? Q : G, Fe[X++] = Re & 32 ? Q : G, Fe[X++] = Re & 16 ? Q : G, Fe[X++] = Re & 8 ? Q : G, Fe[X++] = Re & 4 ? Q : G, Fe[X++] = Re & 2 ? Q : G, Fe[X++] = Re & 1 ? Q : G;
|
|
@@ -9479,15 +9485,15 @@ var Kr = cr(function(Le, Ee) {
|
|
|
9479
9485
|
} = C, s = this.current.fillColor, d = this.current.patternFill, _ = (0, o.getCurrentTransform)(S);
|
|
9480
9486
|
let M, L, X, J;
|
|
9481
9487
|
if ((C.bitmap || C.data) && C.count > 1) {
|
|
9482
|
-
const Pe = C.bitmap || C.data.buffer,
|
|
9483
|
-
L = JSON.stringify(d ?
|
|
9488
|
+
const Pe = C.bitmap || C.data.buffer, H = _.slice(0, 4);
|
|
9489
|
+
L = JSON.stringify(d ? H : [H, s]), M = this._cachedBitmapsMap.get(Pe), M || (M = /* @__PURE__ */ new Map(), this._cachedBitmapsMap.set(Pe, M));
|
|
9484
9490
|
const Q = M.get(L);
|
|
9485
9491
|
if (Q && !d) {
|
|
9486
|
-
const G = Math.round(Math.min(_[0], _[2]) + _[4]),
|
|
9492
|
+
const G = Math.round(Math.min(_[0], _[2]) + _[4]), V = Math.round(Math.min(_[1], _[3]) + _[5]);
|
|
9487
9493
|
return {
|
|
9488
9494
|
canvas: Q,
|
|
9489
9495
|
offsetX: G,
|
|
9490
|
-
offsetY:
|
|
9496
|
+
offsetY: V
|
|
9491
9497
|
};
|
|
9492
9498
|
}
|
|
9493
9499
|
X = Q;
|
|
@@ -9795,31 +9801,31 @@ var Kr = cr(function(Le, Ee) {
|
|
|
9795
9801
|
continue;
|
|
9796
9802
|
}
|
|
9797
9803
|
let Pe = !1;
|
|
9798
|
-
const
|
|
9799
|
-
let
|
|
9804
|
+
const H = (Fe.isSpace ? M : 0) + _, Q = Fe.fontChar, G = Fe.accent;
|
|
9805
|
+
let V, oe, _e = Fe.width;
|
|
9800
9806
|
if (ie) {
|
|
9801
9807
|
const ce = Fe.vmetric || he, Re = -(Fe.vmetric ? ce[1] : _e * 0.5) * le, Be = ce[2] * le;
|
|
9802
|
-
_e = ce ? -ce[0] : _e,
|
|
9808
|
+
_e = ce ? -ce[0] : _e, V = Re / d, oe = (Oe + Be) / d;
|
|
9803
9809
|
} else
|
|
9804
|
-
|
|
9810
|
+
V = Oe / d, oe = 0;
|
|
9805
9811
|
if (N.remeasure && _e > 0) {
|
|
9806
9812
|
const ce = s.measureText(Q).width * 1e3 / j * d;
|
|
9807
9813
|
if (_e < ce && this.isFontSubpixelAAEnabled) {
|
|
9808
9814
|
const Re = _e / ce;
|
|
9809
|
-
Pe = !0, s.save(), s.scale(Re, 1),
|
|
9815
|
+
Pe = !0, s.save(), s.scale(Re, 1), V /= Re;
|
|
9810
9816
|
} else
|
|
9811
|
-
_e !== ce && (
|
|
9817
|
+
_e !== ce && (V += (_e - ce) / 2e3 * j / d);
|
|
9812
9818
|
}
|
|
9813
9819
|
if (this.contentVisible && (Fe.isInFont || N.missingFile)) {
|
|
9814
9820
|
if (fe && !G)
|
|
9815
|
-
s.fillText(Q,
|
|
9816
|
-
else if (this.paintChar(Q,
|
|
9817
|
-
const ce =
|
|
9821
|
+
s.fillText(Q, V, oe);
|
|
9822
|
+
else if (this.paintChar(Q, V, oe, ve), G) {
|
|
9823
|
+
const ce = V + j * G.offset.x / d, Re = oe - j * G.offset.y / d;
|
|
9818
9824
|
this.paintChar(G.fontChar, ce, Re, ve);
|
|
9819
9825
|
}
|
|
9820
9826
|
}
|
|
9821
9827
|
let ke;
|
|
9822
|
-
ie ? ke = _e * le -
|
|
9828
|
+
ie ? ke = _e * le - H * L : ke = _e * le + H * L, Oe += ke, Pe && s.restore();
|
|
9823
9829
|
}
|
|
9824
9830
|
ie ? S.y -= Oe : S.x += Oe * X, s.restore(), this.compose();
|
|
9825
9831
|
}
|
|
@@ -11287,7 +11293,7 @@ var Kr = cr(function(Le, Ee) {
|
|
|
11287
11293
|
var o = n(134);
|
|
11288
11294
|
const c = function(P) {
|
|
11289
11295
|
return new Promise((m, y) => {
|
|
11290
|
-
|
|
11296
|
+
Kt.readFile(P, (r, l) => {
|
|
11291
11297
|
if (r || !l) {
|
|
11292
11298
|
y(new Error(r));
|
|
11293
11299
|
return;
|
|
@@ -11298,7 +11304,7 @@ var Kr = cr(function(Le, Ee) {
|
|
|
11298
11304
|
};
|
|
11299
11305
|
class T extends o.BaseCanvasFactory {
|
|
11300
11306
|
_createCanvas(m, y) {
|
|
11301
|
-
return
|
|
11307
|
+
return Kt.createCanvas(m, y);
|
|
11302
11308
|
}
|
|
11303
11309
|
}
|
|
11304
11310
|
v.NodeCanvasFactory = T;
|
|
@@ -12028,7 +12034,7 @@ var Kr = cr(function(Le, Ee) {
|
|
|
12028
12034
|
return [[o.AnnotationEditorParamsType.INK_THICKNESS, this.thickness || fe._defaultThickness], [o.AnnotationEditorParamsType.INK_COLOR, this.color || fe._defaultColor || c.AnnotationEditor._defaultLineColor], [o.AnnotationEditorParamsType.INK_OPACITY, Math.round(100 * ((ue = this.opacity) !== null && ue !== void 0 ? ue : fe._defaultOpacity))]];
|
|
12029
12035
|
}
|
|
12030
12036
|
rebuild() {
|
|
12031
|
-
super.rebuild(), this.div !== null && (this.canvas || (p(this, j,
|
|
12037
|
+
super.rebuild(), this.div !== null && (this.canvas || (p(this, j, V).call(this), p(this, s, oe).call(this)), this.isAttachedToDOM || (this.parent.add(this), p(this, d, _e).call(this)), p(this, he, We).call(this));
|
|
12032
12038
|
}
|
|
12033
12039
|
remove() {
|
|
12034
12040
|
this.canvas !== null && (this.isEmpty() || this.commit(), this.canvas.width = this.canvas.height = 0, this.canvas.remove(), this.canvas = null, h(this, re).disconnect(), l(this, re, null), super.remove());
|
|
@@ -12067,14 +12073,14 @@ var Kr = cr(function(Le, Ee) {
|
|
|
12067
12073
|
if (this.div)
|
|
12068
12074
|
return this.div;
|
|
12069
12075
|
let ue, xe;
|
|
12070
|
-
this.width && (ue = this.x, xe = this.y), super.render(), fe._l10nPromise.get("editor_ink_aria_label").then((
|
|
12076
|
+
this.width && (ue = this.x, xe = this.y), super.render(), fe._l10nPromise.get("editor_ink_aria_label").then((He) => {
|
|
12071
12077
|
var je;
|
|
12072
|
-
return (je = this.div) === null || je === void 0 ? void 0 : je.setAttribute("aria-label",
|
|
12078
|
+
return (je = this.div) === null || je === void 0 ? void 0 : je.setAttribute("aria-label", He);
|
|
12073
12079
|
});
|
|
12074
12080
|
const [Ne, $e, Ge, Xe] = p(this, de, Oe).call(this);
|
|
12075
|
-
if (this.setAt(Ne, $e, 0, 0), this.setDims(Ge, Xe), p(this, j,
|
|
12076
|
-
const [
|
|
12077
|
-
this.setAt(ue *
|
|
12081
|
+
if (this.setAt(Ne, $e, 0, 0), this.setDims(Ge, Xe), p(this, j, V).call(this), this.width) {
|
|
12082
|
+
const [He, je] = this.parent.viewportBaseDimensions;
|
|
12083
|
+
this.setAt(ue * He, xe * je, this.width * He, this.height * je), l(this, ne, !0), p(this, d, _e).call(this), this.setDims(this.width * He, this.height * je), p(this, S, Q).call(this), p(this, le, Ve).call(this), this.div.classList.add("disabled");
|
|
12078
12084
|
} else
|
|
12079
12085
|
this.div.classList.add("editing"), this.enableEditMode();
|
|
12080
12086
|
return p(this, s, oe).call(this), this.div;
|
|
@@ -12090,23 +12096,23 @@ var Kr = cr(function(Le, Ee) {
|
|
|
12090
12096
|
static deserialize(ue, xe) {
|
|
12091
12097
|
const Ne = super.deserialize(ue, xe);
|
|
12092
12098
|
Ne.thickness = ue.thickness, Ne.color = o.Util.makeHexColor(...ue.color), Ne.opacity = ue.opacity;
|
|
12093
|
-
const [$e, Ge] = xe.pageDimensions, Xe = Ne.width * $e,
|
|
12094
|
-
l(Ne, u, Xe /
|
|
12099
|
+
const [$e, Ge] = xe.pageDimensions, Xe = Ne.width * $e, He = Ne.height * Ge, je = xe.scaleFactor, Ze = ue.thickness / 2;
|
|
12100
|
+
l(Ne, u, Xe / He), l(Ne, k, !0), l(Ne, Z, Math.round(Xe)), l(Ne, z, Math.round(He));
|
|
12095
12101
|
for (const {
|
|
12096
12102
|
bezier: tt
|
|
12097
12103
|
} of ue.paths) {
|
|
12098
12104
|
const at = [];
|
|
12099
12105
|
Ne.paths.push(at);
|
|
12100
|
-
let ut = je * (tt[0] - Ze), nt = je * (
|
|
12106
|
+
let ut = je * (tt[0] - Ze), nt = je * (He - tt[1] - Ze);
|
|
12101
12107
|
for (let st = 2, gt = tt.length; st < gt; st += 6) {
|
|
12102
|
-
const bt = je * (tt[st] - Ze), pt = je * (
|
|
12108
|
+
const bt = je * (tt[st] - Ze), pt = je * (He - tt[st + 1] - Ze), xt = je * (tt[st + 2] - Ze), Lt = je * (He - tt[st + 3] - Ze), At = je * (tt[st + 4] - Ze), wt = je * (He - tt[st + 5] - Ze);
|
|
12103
12109
|
at.push([[ut, nt], [bt, pt], [xt, Lt], [At, wt]]), ut = At, nt = wt;
|
|
12104
12110
|
}
|
|
12105
12111
|
const ht = D(this, fe, Re).call(this, at);
|
|
12106
12112
|
Ne.bezierPath2D.push(ht);
|
|
12107
12113
|
}
|
|
12108
12114
|
const ct = p(Ne, ie, ae).call(Ne);
|
|
12109
|
-
return l(Ne, a, Math.max(b, ct[2] - ct[0])), l(Ne, t, Math.max(b, ct[3] - ct[1])), p(Ne, _, ke).call(Ne, Xe,
|
|
12115
|
+
return l(Ne, a, Math.max(b, ct[2] - ct[0])), l(Ne, t, Math.max(b, ct[3] - ct[1])), p(Ne, _, ke).call(Ne, Xe, He), Ne;
|
|
12110
12116
|
}
|
|
12111
12117
|
serialize() {
|
|
12112
12118
|
if (this.isEmpty())
|
|
@@ -12204,7 +12210,7 @@ var Kr = cr(function(Le, Ee) {
|
|
|
12204
12210
|
const [xe, Ne] = this.currentPath.at(-1);
|
|
12205
12211
|
me === xe && ue === Ne || (this.currentPath.push([me, ue]), l(this, q, [me, ue]));
|
|
12206
12212
|
}
|
|
12207
|
-
function
|
|
12213
|
+
function H(me, ue) {
|
|
12208
12214
|
this.ctx.closePath(), l(this, $, null), me = Math.min(Math.max(me, 0), this.canvas.width), ue = Math.min(Math.max(ue, 0), this.canvas.height);
|
|
12209
12215
|
const [xe, Ne] = this.currentPath.at(-1);
|
|
12210
12216
|
(me !== xe || ue !== Ne) && this.currentPath.push([me, ue]);
|
|
@@ -12219,12 +12225,12 @@ var Kr = cr(function(Le, Ee) {
|
|
|
12219
12225
|
this.currentPath.length = 0;
|
|
12220
12226
|
const Xe = () => {
|
|
12221
12227
|
this.paths.push($e), this.bezierPath2D.push(Ge), this.rebuild();
|
|
12222
|
-
},
|
|
12223
|
-
this.paths.pop(), this.bezierPath2D.pop(), this.paths.length === 0 ? this.remove() : (this.canvas || (p(this, j,
|
|
12228
|
+
}, He = () => {
|
|
12229
|
+
this.paths.pop(), this.bezierPath2D.pop(), this.paths.length === 0 ? this.remove() : (this.canvas || (p(this, j, V).call(this), p(this, s, oe).call(this)), p(this, he, We).call(this));
|
|
12224
12230
|
};
|
|
12225
12231
|
this.parent.addCommands({
|
|
12226
12232
|
cmd: Xe,
|
|
12227
|
-
undo:
|
|
12233
|
+
undo: He,
|
|
12228
12234
|
mustExec: !0
|
|
12229
12235
|
});
|
|
12230
12236
|
}
|
|
@@ -12243,9 +12249,9 @@ var Kr = cr(function(Le, Ee) {
|
|
|
12243
12249
|
ue.stroke(xe);
|
|
12244
12250
|
}
|
|
12245
12251
|
function G(me) {
|
|
12246
|
-
p(this, C,
|
|
12252
|
+
p(this, C, H).call(this, me.offsetX, me.offsetY), this.canvas.removeEventListener("pointerleave", h(this, g)), this.canvas.removeEventListener("pointermove", h(this, f)), this.parent.addToAnnotationStorage(this);
|
|
12247
12253
|
}
|
|
12248
|
-
function
|
|
12254
|
+
function V() {
|
|
12249
12255
|
this.canvas = document.createElement("canvas"), this.canvas.width = this.canvas.height = 0, this.canvas.className = "inkEditorCanvas", fe._l10nPromise.get("editor_ink_canvas_aria_label").then((me) => {
|
|
12250
12256
|
var ue;
|
|
12251
12257
|
return (ue = this.canvas) === null || ue === void 0 ? void 0 : ue.setAttribute("aria-label", me);
|
|
@@ -12274,49 +12280,49 @@ var Kr = cr(function(Le, Ee) {
|
|
|
12274
12280
|
function Re(me) {
|
|
12275
12281
|
const ue = new Path2D();
|
|
12276
12282
|
for (let xe = 0, Ne = me.length; xe < Ne; xe++) {
|
|
12277
|
-
const [$e, Ge, Xe,
|
|
12278
|
-
xe === 0 && ue.moveTo(...$e), ue.bezierCurveTo(Ge[0], Ge[1], Xe[0], Xe[1],
|
|
12283
|
+
const [$e, Ge, Xe, He] = me[xe];
|
|
12284
|
+
xe === 0 && ue.moveTo(...$e), ue.bezierCurveTo(Ge[0], Ge[1], Xe[0], Xe[1], He[0], He[1]);
|
|
12279
12285
|
}
|
|
12280
12286
|
return ue;
|
|
12281
12287
|
}
|
|
12282
12288
|
function Be(me, ue, xe, Ne) {
|
|
12283
12289
|
const Ge = [], Xe = this.thickness / 2;
|
|
12284
|
-
let
|
|
12290
|
+
let He, je;
|
|
12285
12291
|
for (const Ze of this.paths) {
|
|
12286
|
-
|
|
12292
|
+
He = [], je = [];
|
|
12287
12293
|
for (let ct = 0, tt = Ze.length; ct < tt; ct++) {
|
|
12288
12294
|
const [at, ut, nt, ht] = Ze[ct], st = me * (at[0] + ue) + Xe, gt = Ne - me * (at[1] + xe) - Xe, bt = me * (ut[0] + ue) + Xe, pt = Ne - me * (ut[1] + xe) - Xe, xt = me * (nt[0] + ue) + Xe, Lt = Ne - me * (nt[1] + xe) - Xe, At = me * (ht[0] + ue) + Xe, wt = Ne - me * (ht[1] + xe) - Xe;
|
|
12289
|
-
ct === 0 && (
|
|
12295
|
+
ct === 0 && (He.push(st, gt), je.push(st, gt)), He.push(bt, pt, xt, Lt, At, wt), p(this, X, ge).call(this, st, gt, bt, pt, xt, Lt, At, wt, 4, je);
|
|
12290
12296
|
}
|
|
12291
12297
|
Ge.push({
|
|
12292
|
-
bezier:
|
|
12298
|
+
bezier: He,
|
|
12293
12299
|
points: je
|
|
12294
12300
|
});
|
|
12295
12301
|
}
|
|
12296
12302
|
return Ge;
|
|
12297
12303
|
}
|
|
12298
|
-
function ge(me, ue, xe, Ne, $e, Ge, Xe,
|
|
12299
|
-
if (p(this, J, te).call(this, me, ue, xe, Ne, $e, Ge, Xe,
|
|
12300
|
-
Ze.push(Xe,
|
|
12304
|
+
function ge(me, ue, xe, Ne, $e, Ge, Xe, He, je, Ze) {
|
|
12305
|
+
if (p(this, J, te).call(this, me, ue, xe, Ne, $e, Ge, Xe, He)) {
|
|
12306
|
+
Ze.push(Xe, He);
|
|
12301
12307
|
return;
|
|
12302
12308
|
}
|
|
12303
12309
|
for (let ct = 1; ct < je - 1; ct++) {
|
|
12304
12310
|
const tt = ct / je, at = 1 - tt;
|
|
12305
12311
|
let ut = tt * me + at * xe, nt = tt * ue + at * Ne, ht = tt * xe + at * $e, st = tt * Ne + at * Ge;
|
|
12306
|
-
const gt = tt * $e + at * Xe, bt = tt * Ge + at *
|
|
12312
|
+
const gt = tt * $e + at * Xe, bt = tt * Ge + at * He;
|
|
12307
12313
|
ut = tt * ut + at * ht, nt = tt * nt + at * st, ht = tt * ht + at * gt, st = tt * st + at * bt, ut = tt * ut + at * ht, nt = tt * nt + at * st, Ze.push(ut, nt);
|
|
12308
12314
|
}
|
|
12309
|
-
Ze.push(Xe,
|
|
12315
|
+
Ze.push(Xe, He);
|
|
12310
12316
|
}
|
|
12311
|
-
function te(me, ue, xe, Ne, $e, Ge, Xe,
|
|
12312
|
-
const Ze = (3 * xe - 2 * me - Xe) ** 2, ct = (3 * Ne - 2 * ue -
|
|
12317
|
+
function te(me, ue, xe, Ne, $e, Ge, Xe, He) {
|
|
12318
|
+
const Ze = (3 * xe - 2 * me - Xe) ** 2, ct = (3 * Ne - 2 * ue - He) ** 2, tt = (3 * $e - me - 2 * Xe) ** 2, at = (3 * Ge - ue - 2 * He) ** 2;
|
|
12313
12319
|
return Math.max(Ze, tt) + Math.max(ct, at) <= 10;
|
|
12314
12320
|
}
|
|
12315
12321
|
function ae() {
|
|
12316
12322
|
let me = 1 / 0, ue = -1 / 0, xe = 1 / 0, Ne = -1 / 0;
|
|
12317
12323
|
for (const $e of this.paths)
|
|
12318
|
-
for (const [Ge, Xe,
|
|
12319
|
-
const Ze = o.Util.bezierBoundingBox(...Ge, ...Xe, ...
|
|
12324
|
+
for (const [Ge, Xe, He, je] of $e) {
|
|
12325
|
+
const Ze = o.Util.bezierBoundingBox(...Ge, ...Xe, ...He, ...je);
|
|
12320
12326
|
me = Math.min(me, Ze[0]), xe = Math.min(xe, Ze[1]), ue = Math.max(ue, Ze[2]), Ne = Math.max(Ne, Ze[3]);
|
|
12321
12327
|
}
|
|
12322
12328
|
return [me, xe, ue, Ne];
|
|
@@ -12335,13 +12341,13 @@ var Kr = cr(function(Le, Ee) {
|
|
|
12335
12341
|
const ue = p(this, ie, ae).call(this), xe = p(this, se, be).call(this);
|
|
12336
12342
|
l(this, a, Math.max(b, ue[2] - ue[0])), l(this, t, Math.max(b, ue[3] - ue[1]));
|
|
12337
12343
|
const Ne = Math.ceil(xe + h(this, a) * this.scaleFactor), $e = Math.ceil(xe + h(this, t) * this.scaleFactor), [Ge, Xe] = this.parent.viewportBaseDimensions;
|
|
12338
|
-
this.width = Ne / Ge, this.height = $e / Xe, l(this, u, Ne / $e), p(this, le,
|
|
12339
|
-
const
|
|
12344
|
+
this.width = Ne / Ge, this.height = $e / Xe, l(this, u, Ne / $e), p(this, le, Ve).call(this);
|
|
12345
|
+
const He = this.translationX, je = this.translationY;
|
|
12340
12346
|
this.translationX = -ue[0], this.translationY = -ue[1], p(this, d, _e).call(this), p(this, S, Q).call(this), l(this, Z, Ne), l(this, z, $e), this.setDims(Ne, $e);
|
|
12341
12347
|
const Ze = me ? xe / this.scaleFactor / 2 : 0;
|
|
12342
|
-
this.translate(
|
|
12348
|
+
this.translate(He - this.translationX - Ze, je - this.translationY - Ze);
|
|
12343
12349
|
}
|
|
12344
|
-
function
|
|
12350
|
+
function Ve() {
|
|
12345
12351
|
const {
|
|
12346
12352
|
style: me
|
|
12347
12353
|
} = this.div;
|
|
@@ -13168,13 +13174,13 @@ var Kr = cr(function(Le, Ee) {
|
|
|
13168
13174
|
let Fe = Oe, Pe = ze;
|
|
13169
13175
|
switch (le.inputType) {
|
|
13170
13176
|
case "deleteWordBackward": {
|
|
13171
|
-
const
|
|
13172
|
-
|
|
13177
|
+
const H = Ce.substring(0, Oe).match(/\w*[^\w]*$/);
|
|
13178
|
+
H && (Fe -= H[0].length);
|
|
13173
13179
|
break;
|
|
13174
13180
|
}
|
|
13175
13181
|
case "deleteWordForward": {
|
|
13176
|
-
const
|
|
13177
|
-
|
|
13182
|
+
const H = Ce.substring(Oe).match(/^[^\w]*\w*/);
|
|
13183
|
+
H && (Pe += H[0].length);
|
|
13178
13184
|
break;
|
|
13179
13185
|
}
|
|
13180
13186
|
case "deleteContentBackward":
|
|
@@ -14524,7 +14530,7 @@ var Kr = cr(function(Le, Ee) {
|
|
|
14524
14530
|
try {
|
|
14525
14531
|
let Z;
|
|
14526
14532
|
parseInt(process.versions.node) >= 8 ? Z = re : Z = Buffer.from(re);
|
|
14527
|
-
const z =
|
|
14533
|
+
const z = require("zlib").deflateSync(Z, {
|
|
14528
14534
|
level: 9
|
|
14529
14535
|
});
|
|
14530
14536
|
return z instanceof Uint8Array ? z : new Uint8Array(z);
|
|
@@ -15174,7 +15180,7 @@ var Kr = cr(function(Le, Ee) {
|
|
|
15174
15180
|
value: !0
|
|
15175
15181
|
}), v.PDFNodeStream = void 0;
|
|
15176
15182
|
var o = n(1), c = n(158);
|
|
15177
|
-
const T =
|
|
15183
|
+
const T = Kt, R = Kt, O = Kt, P = Kt, m = /^file:\/\/\/[a-zA-Z]:\//;
|
|
15178
15184
|
function y(b) {
|
|
15179
15185
|
const u = P.parse(b);
|
|
15180
15186
|
return u.protocol === "file:" || u.host ? u : /^[a-z]:[/\\]/i.test(b) ? P.parse(`file:///${b}`) : (u.host || (u.protocol = "file:"), u);
|
|
@@ -16162,12 +16168,12 @@ var Kr = cr(function(Le, Ee) {
|
|
|
16162
16168
|
}
|
|
16163
16169
|
})(), Qe;
|
|
16164
16170
|
})());
|
|
16165
|
-
});
|
|
16166
|
-
const
|
|
16167
|
-
window.pdf =
|
|
16168
|
-
const
|
|
16171
|
+
})(Or);
|
|
16172
|
+
const Sa = /* @__PURE__ */ ea(Or.exports), Aa = ":host{position:relative;display:inline-flex;width:100%;height:100%;pointer-events:auto}:host(.file-viewer-pdf--view-mode-side-by-side) .file-viewer-pdf__pages{display:grid;grid-template-columns:repeat(2, 1fr);grid-row-gap:var(--s-space-8);grid-column-gap:var(--s-space-8);grid-auto-rows:auto}:host(.file-viewer-pdf--view-mode-side-by-side) .file-viewer-pdf__page{margin:0}:host(.file-viewer-pdf--view-mode-side-by-side) .file-viewer-pdf__page:nth-child(odd){justify-self:end}:host(.file-viewer-pdf--view-mode-side-by-side) .file-viewer-pdf__page:nth-child(even){justify-self:start}:host *{box-sizing:border-box}.file-viewer-pdf__pages{overflow:auto;width:100%;height:100%}@media (min-width: 768px){.file-viewer-pdf__pages{padding:var(--s-space-16)}}.file-viewer-pdf__page{position:relative;margin-right:auto;margin-left:auto;border-bottom:var(--s-border-width-default) solid var(--s-border-default);background-color:#fff}@media (min-width: 768px){.file-viewer-pdf__page{border:var(--s-border-width-default) solid var(--s-border-default)}.file-viewer-pdf__page:not(:last-of-type){margin-bottom:var(--s-space-8)}}.file-viewer-pdf__page-spinner{position:absolute;top:50%;left:50%;transform:translate3d(-50%, -50%, 0)}.file-viewer-pdf__canvas{display:flex;width:100%;height:100%;margin-right:auto;margin-left:auto}.file-viewer-pdf__text-container{position:absolute;overflow:hidden;line-height:1;text-align:initial;-webkit-user-select:none;-moz-user-select:none;user-select:none;inset:0;-webkit-text-size-adjust:none;-moz-text-size-adjust:none;text-size-adjust:none;forced-color-adjust:none}.file-viewer-pdf__text-container>*{position:absolute;color:transparent;white-space:pre;cursor:text;transform-origin:0% 0%}.file-viewer-pdf__text-container>*.markedContent{top:0;height:0}.file-viewer-pdf__text-container>*.highlight{margin:-1px;padding:1px;border-radius:4px;background-color:rgba(180, 0, 170, 1)}.file-viewer-pdf__text-container>*.highlight.appended{position:initial}.file-viewer-pdf__text-container>*.highlight.begin{border-radius:4px 0 0 4px}.file-viewer-pdf__text-container>*.highlight.end{border-radius:0 4px 4px 0}.file-viewer-pdf__text-container>*.highlight.middle{border-radius:0}.file-viewer-pdf__text-container>*.highlight.selected{background-color:rgba(0, 100, 0, 1)}.file-viewer-pdf__text-container>*.endOfContent{position:absolute;z-index:-1;top:100%;right:0;bottom:0;left:0;display:block;cursor:default;-webkit-user-select:none;-moz-user-select:none;user-select:none}.file-viewer-pdf__text-container>*.endOfContent.active{top:0}.file-viewer-pdf__text-container>br::-moz-selection{background:transparent}.file-viewer-pdf__text-container>br::selection{background:transparent}@media (min-width: 768px){.file-viewer-pdf__text-container{-webkit-user-select:auto;-moz-user-select:auto;user-select:auto}}.file-viewer-pdf__spinner{position:absolute;display:flex;justify-content:center;align-items:center;background-color:rgba(0, 0, 0, 0.2);inset:0}.file-viewer-pdf__error{position:absolute;top:50%;left:50%;transform:translate3d(-50%, -50%, 0)}.file-viewer-pdf__pagination{position:absolute;bottom:var(--s-space-16);left:50%;padding:var(--s-space-4) var(--s-space-12);border-radius:var(--s-border-radius-base);color:var(--s-text-on-image);background-color:rgba(0, 0, 0, 0.6);font-weight:var(--s-font-weight-medium);line-height:var(--s-line-height-base);transform:translateX(-50%);pointer-events:none}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.file-viewer-pdf__pagination{font-size:var(--s-font-size-sm);line-height:var(--s-line-height-sm)}}", wa = Aa;
|
|
16173
|
+
window.pdf = Sa;
|
|
16174
|
+
const _a = class {
|
|
16169
16175
|
constructor(Le) {
|
|
16170
|
-
|
|
16176
|
+
zt(this, Le), this.activate = Rt(this, "activate", 7), this.visiblePagesChange = Rt(this, "visiblePagesChange", 7), this.pages = [], this.renderingPageNumbers = [], this.recentScrollPosition = { x: 0, y: 0 }, this.determineScrollStatus = () => {
|
|
16171
16177
|
var Ie, Te, De;
|
|
16172
16178
|
const Ee = Math.ceil(((Ie = this.scrollContainer) == null ? void 0 : Ie.scrollTop) + ((Te = this.scrollContainer) == null ? void 0 : Te.offsetHeight)) >= ((De = this.scrollContainer) == null ? void 0 : De.scrollHeight);
|
|
16173
16179
|
Ee !== this.scrolledDown && (this.scrolledDown = Ee);
|
|
@@ -16177,11 +16183,11 @@ const ya = class {
|
|
|
16177
16183
|
x: Math.round(((Ee = this.scrollContainer) == null ? void 0 : Ee.scrollLeft) / ((Ie = this.scrollContainer) == null ? void 0 : Ie.scrollWidth) * 100) / 100,
|
|
16178
16184
|
y: Math.round(((Te = this.scrollContainer) == null ? void 0 : Te.scrollTop) / ((De = this.scrollContainer) == null ? void 0 : De.scrollHeight) * 100) / 100
|
|
16179
16185
|
};
|
|
16180
|
-
}, this.onScroll =
|
|
16186
|
+
}, this.onScroll = na(() => {
|
|
16181
16187
|
this.updateVisiblePages(), this.determineScrollStatus(), this.storeRecentScrollPosition();
|
|
16182
16188
|
}, 60), this.errorMessage = "File could not be loaded.", this.file = void 0, this.singlePageMode = void 0, this.viewMode = "single", this.workerSrc = "/pdfjs/pdf.worker.min.js", this.zoom = 1, this.doc = void 0, this.error = void 0, this.loading = !0, this.renderedPages = [], this.scrolledDown = !1, this.singlePageModePage = 1, this.visiblePages = [];
|
|
16183
16189
|
}
|
|
16184
|
-
|
|
16190
|
+
componentWillLoad() {
|
|
16185
16191
|
window.pdf.GlobalWorkerOptions.workerSrc = this.workerSrc;
|
|
16186
16192
|
}
|
|
16187
16193
|
async componentDidLoad() {
|
|
@@ -16238,7 +16244,7 @@ const ya = class {
|
|
|
16238
16244
|
async getPages() {
|
|
16239
16245
|
this.error = !1, this.loading = !0;
|
|
16240
16246
|
try {
|
|
16241
|
-
Boolean(this.doc) && this.doc.destroy(), this.doc = await
|
|
16247
|
+
Boolean(this.doc) && this.doc.destroy(), this.doc = await Or.exports.getDocument({ isEvalSupported: !1, url: this.file }).promise;
|
|
16242
16248
|
const Le = [];
|
|
16243
16249
|
for (let Ee = 1; Ee <= this.doc.numPages; Ee++)
|
|
16244
16250
|
Le.push(this.doc.getPage(Ee));
|
|
@@ -16289,12 +16295,12 @@ const ya = class {
|
|
|
16289
16295
|
let Ie = [];
|
|
16290
16296
|
if (this.singlePageMode)
|
|
16291
16297
|
Ie = [this.singlePageModePage];
|
|
16292
|
-
else if (Ie = Le ? Ee.map((De) => +De.dataset.pageNumber) : Ee.filter((De) =>
|
|
16298
|
+
else if (Ie = Le ? Ee.map((De) => +De.dataset.pageNumber) : Ee.filter((De) => ia(De, this.scrollContainer) > 0).map((De) => +De.dataset.pageNumber), this.visiblePages.length === Ie.length && this.visiblePages.every((De) => Ie.includes(De)))
|
|
16293
16299
|
return;
|
|
16294
16300
|
this.visiblePages = Ie, await this.renderVisiblePages(Le), this.visiblePagesChange.emit(this.visiblePages);
|
|
16295
16301
|
}
|
|
16296
16302
|
async renderTextLayer(Le, Ee) {
|
|
16297
|
-
|
|
16303
|
+
Or.exports.renderTextLayer({
|
|
16298
16304
|
container: Ee,
|
|
16299
16305
|
textContent: await Le.getTextContent(),
|
|
16300
16306
|
viewport: Le.getViewport({
|
|
@@ -16353,7 +16359,7 @@ const ya = class {
|
|
|
16353
16359
|
}
|
|
16354
16360
|
getScale(Le) {
|
|
16355
16361
|
var Ie;
|
|
16356
|
-
const Ee =
|
|
16362
|
+
const Ee = aa() ? 0 : 32;
|
|
16357
16363
|
return this.zoom === "auto" ? (((Ie = this.scrollContainer) == null ? void 0 : Ie.clientWidth) - Ee) / Le.view[2] : isNaN(this.zoom) ? 1 : this.zoom;
|
|
16358
16364
|
}
|
|
16359
16365
|
restoreScrollPosition() {
|
|
@@ -16361,8 +16367,8 @@ const ya = class {
|
|
|
16361
16367
|
this.scrollContainer.scrollTop = this.recentScrollPosition.y * ((Le = this.scrollContainer) == null ? void 0 : Le.scrollHeight), this.scrollContainer.scrollLeft = this.recentScrollPosition.x * ((Ee = this.scrollContainer) == null ? void 0 : Ee.scrollWidth);
|
|
16362
16368
|
}
|
|
16363
16369
|
render() {
|
|
16364
|
-
const Le = !this.error && !this.loading && this.visiblePages.length > 0, Ee = this.scrolledDown && !this.singlePageMode ? this.pages.length - 1 : this.visiblePages[0], Ie = this.loading, Te =
|
|
16365
|
-
return qe(
|
|
16370
|
+
const Le = !this.error && !this.loading && this.visiblePages.length > 0, Ee = this.scrolledDown && !this.singlePageMode ? this.pages.length - 1 : this.visiblePages[0], Ie = this.loading, Te = ra("file-viewer-pdf", `file-viewer-pdf--view-mode-${this.viewMode}`);
|
|
16371
|
+
return qe(jt, { key: "7cd381303edb62915bbde5549409bcf467bc1bac", class: Te, exportparts: "file-viewer-pdf__pagination" }, this.error && qe("swirl-inline-error", { key: "f65efc22521c5dcae52686b3c1518865715b5d27", class: "file-viewer-pdf__error", message: this.errorMessage }), qe("div", { key: "d516ee5c9d52f0e1172c83ac4cd28604aac4d4b0", "aria-describedby": "pagination", class: "file-viewer-pdf__pages", onScroll: this.onScroll, ref: (De) => this.scrollContainer = De }, this.pages.map((De) => {
|
|
16366
16372
|
const Qe = De.getViewport({
|
|
16367
16373
|
scale: this.getScale(De)
|
|
16368
16374
|
}), B = Qe.height, v = Qe.width, n = this.renderedPages.includes(De.pageNumber);
|
|
@@ -16370,7 +16376,7 @@ const ya = class {
|
|
|
16370
16376
|
width: `${v}px`,
|
|
16371
16377
|
height: `${B}px`
|
|
16372
16378
|
}, tabIndex: 0 }, !n && qe("swirl-spinner", { class: "file-viewer-pdf__page-spinner" }), qe("canvas", { class: "file-viewer-pdf__canvas", style: { opacity: n ? "1" : "0" } }), qe("div", { class: "file-viewer-pdf__text-container" }));
|
|
16373
|
-
})), Le && qe("span", { class: "file-viewer-pdf__pagination", id: "pagination", part: "file-viewer-pdf__pagination" }, qe("span", { "aria-current": "page" }, Ee), " / ", this.doc.numPages), Ie && qe("div", { class: "file-viewer-pdf__spinner" }, qe("swirl-spinner",
|
|
16379
|
+
})), Le && qe("span", { key: "be800deec536186ccfccf6083a97c48054d0306b", class: "file-viewer-pdf__pagination", id: "pagination", part: "file-viewer-pdf__pagination" }, qe("span", { key: "ef996fa512c39cec9d98ce5fcbead15975e41cbc", "aria-current": "page" }, Ee), " / ", this.doc.numPages), Ie && qe("div", { key: "a61a815702069b0b948bf3a2d07cc71cffe0b858", class: "file-viewer-pdf__spinner" }, qe("swirl-spinner", { key: "cb0fad578849aab272755ad9e0e455e22972ba81" })));
|
|
16374
16380
|
}
|
|
16375
16381
|
get el() {
|
|
16376
16382
|
return Qt(this);
|
|
@@ -16383,10 +16389,10 @@ const ya = class {
|
|
|
16383
16389
|
};
|
|
16384
16390
|
}
|
|
16385
16391
|
};
|
|
16386
|
-
|
|
16387
|
-
const
|
|
16392
|
+
_a.style = wa;
|
|
16393
|
+
const Ea = ":host{position:relative;display:inline-flex;width:100%;max-height:100%;pointer-events:auto}:host *{box-sizing:border-box}.file-viewer-text__text{overflow:auto;width:100%;max-height:100%;margin:0;padding:0;padding:var(--s-space-16);background-color:var(--s-background-default);font-family:var(--s-font-family-code)}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.file-viewer-text__text{font-size:var(--s-font-size-sm);line-height:var(--s-line-height-sm)}}.file-viewer-text__spinner{position:absolute;display:flex;justify-content:center;align-items:center;background-color:rgba(0, 0, 0, 0.2);inset:0}.file-viewer-text__error{position:absolute;top:50%;left:50%;transform:translate3d(-50%, -50%, 0)}", Ca = Ea, Ta = class {
|
|
16388
16394
|
constructor(Le) {
|
|
16389
|
-
|
|
16395
|
+
zt(this, Le), this.activate = Rt(this, "activate", 7), this.errorMessage = "File could not be loaded.", this.file = void 0, this.error = void 0, this.loading = void 0, this.text = void 0;
|
|
16390
16396
|
}
|
|
16391
16397
|
componentWillLoad() {
|
|
16392
16398
|
this.updateText();
|
|
@@ -16404,7 +16410,7 @@ const Sa = ":host{position:relative;display:inline-flex;width:100%;max-height:10
|
|
|
16404
16410
|
}
|
|
16405
16411
|
}
|
|
16406
16412
|
render() {
|
|
16407
|
-
return qe(
|
|
16413
|
+
return qe(jt, { key: "8cb3ce5645f5cc35a4858a1934f555e834ab3bf4", class: "file-viewer-text", exportparts: "file-viewer-text__text" }, this.error && qe("swirl-inline-error", { key: "7934c0bc2bde528ae8c58fc016e5154b864556ef", class: "file-viewer-text__error", message: this.errorMessage }), qe("pre", { key: "bdc5ef491b3cb89a71d5001ed5be412aaf1ead20", class: "file-viewer-text__text", part: "file-viewer-text__text", tabIndex: 0 }, this.text), this.loading && qe("div", { key: "0784bf2ca76ab80ac1384a02a2dc428af4971df9", class: "file-viewer-text__spinner" }, qe("swirl-spinner", { key: "e91a29335b34d0d076674b0b16fc98531a35b326" })));
|
|
16408
16414
|
}
|
|
16409
16415
|
get el() {
|
|
16410
16416
|
return Qt(this);
|
|
@@ -16415,28 +16421,28 @@ const Sa = ":host{position:relative;display:inline-flex;width:100%;max-height:10
|
|
|
16415
16421
|
};
|
|
16416
16422
|
}
|
|
16417
16423
|
};
|
|
16418
|
-
|
|
16419
|
-
const
|
|
16424
|
+
Ta.style = Ca;
|
|
16425
|
+
const Pa = ":host{display:inline-flex;width:100%;max-height:100%;pointer-events:auto}:host *{box-sizing:border-box}.file-viewer-video__video{width:100%;background-color:rgba(0, 0, 0, 1)}", Ra = Pa, xa = class {
|
|
16420
16426
|
constructor(Le) {
|
|
16421
|
-
|
|
16427
|
+
zt(this, Le), this.activate = Rt(this, "activate", 7), this.autoplay = void 0, this.file = void 0, this.type = void 0;
|
|
16422
16428
|
}
|
|
16423
16429
|
componentDidLoad() {
|
|
16424
16430
|
this.activate.emit(this.el);
|
|
16425
16431
|
}
|
|
16426
16432
|
render() {
|
|
16427
|
-
return qe(
|
|
16433
|
+
return qe(jt, { key: "6be4421ad023363aae955adcb74fa649113bbbf5", class: "file-viewer-video" }, qe("video", { key: "3f53ae48b334257161e0a52a1c5cc5038ead97dc", autoplay: this.autoplay, class: "file-viewer-video__video", controls: !0 }, qe("source", { key: "85d8b485ab6d6a5fa71d47d4e052283843152522", src: this.file, type: this.type })));
|
|
16428
16434
|
}
|
|
16429
16435
|
get el() {
|
|
16430
16436
|
return Qt(this);
|
|
16431
16437
|
}
|
|
16432
16438
|
};
|
|
16433
|
-
|
|
16439
|
+
xa.style = Ra;
|
|
16434
16440
|
export {
|
|
16435
|
-
|
|
16436
|
-
|
|
16437
|
-
|
|
16438
|
-
|
|
16439
|
-
|
|
16440
|
-
|
|
16441
|
-
|
|
16441
|
+
la as swirl_file_viewer,
|
|
16442
|
+
da as swirl_file_viewer_audio,
|
|
16443
|
+
pa as swirl_file_viewer_csv,
|
|
16444
|
+
va as swirl_file_viewer_image,
|
|
16445
|
+
_a as swirl_file_viewer_pdf,
|
|
16446
|
+
Ta as swirl_file_viewer_text,
|
|
16447
|
+
xa as swirl_file_viewer_video
|
|
16442
16448
|
};
|