@getflip/swirl-components-react 0.341.0 → 0.341.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (358) hide show
  1. package/dist/{file-manager.entry.bb2eba81.js → file-manager.entry.1eebb6de.js} +1 -1
  2. package/dist/{index.221de5de.js → index.1e93dc97.js} +355 -355
  3. package/dist/{swirl-accordion-item.entry.d5dbd97f.js → swirl-accordion-item.entry.d386e3da.js} +1 -1
  4. package/dist/{swirl-accordion.entry.0252f2a8.js → swirl-accordion.entry.c6008cac.js} +1 -1
  5. package/dist/{swirl-action-list-section.entry.23761c17.js → swirl-action-list-section.entry.6f4357f9.js} +1 -1
  6. package/dist/{swirl-action-list_2.entry.95ecefa7.js → swirl-action-list_2.entry.1e2e9f3d.js} +1 -1
  7. package/dist/{swirl-app-bar.entry.1a49d0eb.js → swirl-app-bar.entry.807e40b3.js} +1 -1
  8. package/dist/{swirl-app-icon.entry.d902ef50.js → swirl-app-icon.entry.863e35ef.js} +1 -1
  9. package/dist/{swirl-app-layout_5.entry.e4ffbc75.js → swirl-app-layout_5.entry.4f1732c4.js} +1 -1
  10. package/dist/{swirl-autocomplete.entry.ecd04511.js → swirl-autocomplete.entry.32242c79.js} +1 -1
  11. package/dist/{swirl-avatar-group.entry.de5c90a7.js → swirl-avatar-group.entry.192e3c89.js} +1 -1
  12. package/dist/{swirl-avatar.entry.0d880b49.js → swirl-avatar.entry.e4e9e038.js} +1 -1
  13. package/dist/{swirl-badge.entry.036d58c7.js → swirl-badge.entry.1944dbd5.js} +1 -1
  14. package/dist/{swirl-banner.entry.8fea34c1.js → swirl-banner.entry.c1e1d6d1.js} +1 -1
  15. package/dist/{swirl-box.entry.786639e8.js → swirl-box.entry.60a050db.js} +1 -1
  16. package/dist/{swirl-button-group.entry.8f32f009.js → swirl-button-group.entry.b1236f94.js} +1 -1
  17. package/dist/{swirl-button.entry.0ce8e5f7.js → swirl-button.entry.d24e5f9c.js} +1 -1
  18. package/dist/{swirl-card.entry.58712f20.js → swirl-card.entry.5340f92c.js} +1 -1
  19. package/dist/{swirl-carousel-slide.entry.9251ec57.js → swirl-carousel-slide.entry.b3fa9b9e.js} +1 -1
  20. package/dist/{swirl-carousel.entry.2a72ae99.js → swirl-carousel.entry.8ddf2853.js} +1 -1
  21. package/dist/{swirl-checkbox.entry.a571ab06.js → swirl-checkbox.entry.f31cad5e.js} +1 -1
  22. package/dist/{swirl-chip.entry.4951dccc.js → swirl-chip.entry.750f458a.js} +1 -1
  23. package/dist/{swirl-color-input.entry.53a77a97.js → swirl-color-input.entry.49c0f0ed.js} +1 -1
  24. package/dist/{swirl-columns.entry.3a992b4f.js → swirl-columns.entry.26a4ad23.js} +1 -1
  25. package/dist/swirl-components-react.js +1 -1
  26. package/dist/swirl-components-react.umd.cjs +3 -3
  27. package/dist/{swirl-console-layout.entry.8eb0f71d.js → swirl-console-layout.entry.1abb403e.js} +1 -1
  28. package/dist/{swirl-date-input.entry.da1c0213.js → swirl-date-input.entry.7510b671.js} +1 -1
  29. package/dist/{swirl-date-picker_2.entry.a00d4227.js → swirl-date-picker_2.entry.ecfed22e.js} +1 -1
  30. package/dist/{swirl-description-list-item.entry.edf4ebd4.js → swirl-description-list-item.entry.8631ce72.js} +1 -1
  31. package/dist/{swirl-description-list.entry.adb2c25c.js → swirl-description-list.entry.975d5c63.js} +1 -1
  32. package/dist/{swirl-dialog.entry.6feebe43.js → swirl-dialog.entry.78b10b8a.js} +1 -1
  33. package/dist/{swirl-emoji-clap.entry.84e118c1.js → swirl-emoji-clap.entry.fbca4bd6.js} +1 -1
  34. package/dist/{swirl-emoji-happy.entry.5c152f58.js → swirl-emoji-happy.entry.6b636e63.js} +1 -1
  35. package/dist/{swirl-emoji-idea.entry.d7aa3428.js → swirl-emoji-idea.entry.d5a53d3b.js} +1 -1
  36. package/dist/{swirl-emoji-love.entry.9262e018.js → swirl-emoji-love.entry.bc4fd9e7.js} +1 -1
  37. package/dist/{swirl-emoji-sad.entry.d0fd55c1.js → swirl-emoji-sad.entry.ba5c7142.js} +1 -1
  38. package/dist/{swirl-emoji-thumbs-up.entry.a4ccc55b.js → swirl-emoji-thumbs-up.entry.a4f49952.js} +1 -1
  39. package/dist/{swirl-emoji.entry.c05dea58.js → swirl-emoji.entry.7a0b7bc4.js} +1 -1
  40. package/dist/{swirl-file-chip.entry.e3b99808.js → swirl-file-chip.entry.3ae6439f.js} +1 -1
  41. package/dist/{swirl-file-uploader.entry.dfcbd893.js → swirl-file-uploader.entry.37d39c17.js} +1 -1
  42. package/dist/{swirl-file-viewer_8.entry.32b9bd99.js → swirl-file-viewer_8.entry.1f9e736d.js} +7 -4
  43. package/dist/{swirl-form-control.entry.bbd9ca02.js → swirl-form-control.entry.5cfc9f5a.js} +1 -1
  44. package/dist/{swirl-form-group.entry.ca195b05.js → swirl-form-group.entry.97a51242.js} +1 -1
  45. package/dist/{swirl-heading.entry.0676871a.js → swirl-heading.entry.59d5ff2c.js} +1 -1
  46. package/dist/{swirl-icon-add-moderator.entry.afde41aa.js → swirl-icon-add-moderator.entry.2d951621.js} +1 -1
  47. package/dist/{swirl-icon-add-photo.entry.be0201f1.js → swirl-icon-add-photo.entry.ca62e931.js} +1 -1
  48. package/dist/{swirl-icon-add-reaction.entry.70b66133.js → swirl-icon-add-reaction.entry.bd1bb345.js} +1 -1
  49. package/dist/{swirl-icon-add_6.entry.c4b00d3d.js → swirl-icon-add_6.entry.43c5a039.js} +1 -1
  50. package/dist/{swirl-icon-admin-panel-settings.entry.3e670246.js → swirl-icon-admin-panel-settings.entry.8e67af5f.js} +1 -1
  51. package/dist/{swirl-icon-ai-filled.entry.9ff80143.js → swirl-icon-ai-filled.entry.83824f0c.js} +1 -1
  52. package/dist/{swirl-icon-ai.entry.fa30677d.js → swirl-icon-ai.entry.ae542af7.js} +1 -1
  53. package/dist/{swirl-icon-apps.entry.c08ca88b.js → swirl-icon-apps.entry.561608f7.js} +1 -1
  54. package/dist/{swirl-icon-arrow-back_5.entry.77e33174.js → swirl-icon-arrow-back_5.entry.09e15ca2.js} +1 -1
  55. package/dist/{swirl-icon-arrow-downward_2.entry.8ede167c.js → swirl-icon-arrow-downward_2.entry.22f2cf8f.js} +1 -1
  56. package/dist/{swirl-icon-arrow-left_4.entry.a5bf7527.js → swirl-icon-arrow-left_4.entry.a07a48e5.js} +1 -1
  57. package/dist/{swirl-icon-arrow-right-small.entry.441520f7.js → swirl-icon-arrow-right-small.entry.331f1058.js} +1 -1
  58. package/dist/{swirl-icon-aspect-ratio.entry.44beb944.js → swirl-icon-aspect-ratio.entry.3534df98.js} +1 -1
  59. package/dist/{swirl-icon-attachment_6.entry.d3638080.js → swirl-icon-attachment_6.entry.9d94ea11.js} +1 -1
  60. package/dist/{swirl-icon-bar-chart.entry.29681ad9.js → swirl-icon-bar-chart.entry.5c07c2f2.js} +1 -1
  61. package/dist/{swirl-icon-beach-access-filled.entry.28355788.js → swirl-icon-beach-access-filled.entry.c955d734.js} +1 -1
  62. package/dist/{swirl-icon-beach-access.entry.4ca5db03.js → swirl-icon-beach-access.entry.cbd1c6d6.js} +1 -1
  63. package/dist/{swirl-icon-block.entry.2d0e1c55.js → swirl-icon-block.entry.6290b90a.js} +1 -1
  64. package/dist/{swirl-icon-bookmark-filled.entry.d6deaeb4.js → swirl-icon-bookmark-filled.entry.b9505675.js} +1 -1
  65. package/dist/{swirl-icon-bookmark.entry.37442864.js → swirl-icon-bookmark.entry.a049f39e.js} +1 -1
  66. package/dist/{swirl-icon-calendar-add-on-filled.entry.fadfa3d8.js → swirl-icon-calendar-add-on-filled.entry.17968f87.js} +1 -1
  67. package/dist/{swirl-icon-calendar-respond.entry.4f6bce73.js → swirl-icon-calendar-respond.entry.23f848bc.js} +1 -1
  68. package/dist/{swirl-icon-calendar-today.entry.bc62b1e4.js → swirl-icon-calendar-today.entry.f52764a3.js} +1 -1
  69. package/dist/{swirl-icon-call-end.entry.9a11de67.js → swirl-icon-call-end.entry.c4c604e6.js} +1 -1
  70. package/dist/{swirl-icon-call.entry.ee0fe4f7.js → swirl-icon-call.entry.b8a1e3e7.js} +1 -1
  71. package/dist/{swirl-icon-cancel-filled.entry.4611ca78.js → swirl-icon-cancel-filled.entry.4fd4e1a6.js} +1 -1
  72. package/dist/{swirl-icon-cancel_4.entry.325c713a.js → swirl-icon-cancel_4.entry.1edb42de.js} +1 -1
  73. package/dist/{swirl-icon-chat-bubble.entry.81d6f71e.js → swirl-icon-chat-bubble.entry.747e7392.js} +1 -1
  74. package/dist/{swirl-icon-chats-filled.entry.f3547372.js → swirl-icon-chats-filled.entry.1b5a775b.js} +1 -1
  75. package/dist/{swirl-icon-chats.entry.6dafdd33.js → swirl-icon-chats.entry.bc75f75e.js} +1 -1
  76. package/dist/{swirl-icon-check-circle-filled.entry.415b8004.js → swirl-icon-check-circle-filled.entry.110ae2d1.js} +1 -1
  77. package/dist/{swirl-icon-check-circle_2.entry.ba453ddc.js → swirl-icon-check-circle_2.entry.0d8b5b0d.js} +1 -1
  78. package/dist/{swirl-icon-check-small_2.entry.9b4e894f.js → swirl-icon-check-small_2.entry.27f36060.js} +1 -1
  79. package/dist/{swirl-icon-check-strong_2.entry.313f6436.js → swirl-icon-check-strong_2.entry.ccb2f6b9.js} +1 -1
  80. package/dist/{swirl-icon-check.entry.afc7362e.js → swirl-icon-check.entry.d7167c17.js} +1 -1
  81. package/dist/{swirl-icon-chevron-left.entry.9231f81a.js → swirl-icon-chevron-left.entry.b2de0ae9.js} +1 -1
  82. package/dist/{swirl-icon-chevron-right.entry.6ceb8f39.js → swirl-icon-chevron-right.entry.cea33ef7.js} +1 -1
  83. package/dist/{swirl-icon-close-fullscreen.entry.0e42e00a.js → swirl-icon-close-fullscreen.entry.1c06c415.js} +1 -1
  84. package/dist/{swirl-icon-close-small.entry.6e134526.js → swirl-icon-close-small.entry.b3d8032d.js} +1 -1
  85. package/dist/{swirl-icon-close.entry.578c33ba.js → swirl-icon-close.entry.ef4f6c20.js} +1 -1
  86. package/dist/{swirl-icon-cloud-upload.entry.9d85b2cd.js → swirl-icon-cloud-upload.entry.946b5672.js} +1 -1
  87. package/dist/{swirl-icon-column.entry.7164dac2.js → swirl-icon-column.entry.8e62a563.js} +1 -1
  88. package/dist/{swirl-icon-comment.entry.0e0a765d.js → swirl-icon-comment.entry.f3ba2ea6.js} +1 -1
  89. package/dist/{swirl-icon-contrast.entry.b1cf67e1.js → swirl-icon-contrast.entry.af32cda4.js} +1 -1
  90. package/dist/{swirl-icon-copy.entry.aed7ef63.js → swirl-icon-copy.entry.7a608f9e.js} +1 -1
  91. package/dist/{swirl-icon-crop.entry.aa6b648d.js → swirl-icon-crop.entry.ecd68d95.js} +1 -1
  92. package/dist/{swirl-icon-dark-mode.entry.02a3d258.js → swirl-icon-dark-mode.entry.2fac40bb.js} +1 -1
  93. package/dist/{swirl-icon-date-range.entry.936a038b.js → swirl-icon-date-range.entry.09dab106.js} +1 -1
  94. package/dist/{swirl-icon-delete.entry.b50f3b92.js → swirl-icon-delete.entry.d4c6c40d.js} +1 -1
  95. package/dist/{swirl-icon-deployed-code.entry.103f5cae.js → swirl-icon-deployed-code.entry.1e91b689.js} +1 -1
  96. package/dist/{swirl-icon-description.entry.cb9951e2.js → swirl-icon-description.entry.60d36659.js} +1 -1
  97. package/dist/{swirl-icon-desktop.entry.d5682f64.js → swirl-icon-desktop.entry.589f0347.js} +1 -1
  98. package/dist/{swirl-icon-directory-filled.entry.759886e0.js → swirl-icon-directory-filled.entry.e3f92a53.js} +1 -1
  99. package/dist/{swirl-icon-directory.entry.2f5492f9.js → swirl-icon-directory.entry.be855bb6.js} +1 -1
  100. package/dist/{swirl-icon-discover.entry.2432ddb5.js → swirl-icon-discover.entry.212afac3.js} +1 -1
  101. package/dist/{swirl-icon-dock-left.entry.06ca24ec.js → swirl-icon-dock-left.entry.a27ecb9a.js} +1 -1
  102. package/dist/{swirl-icon-door-open.entry.78a63349.js → swirl-icon-door-open.entry.223d0bf7.js} +1 -1
  103. package/dist/{swirl-icon-dot.entry.14fcf944.js → swirl-icon-dot.entry.02e43894.js} +1 -1
  104. package/dist/{swirl-icon-double-arrow-right.entry.598cbc4b.js → swirl-icon-double-arrow-right.entry.a3d65565.js} +1 -1
  105. package/dist/{swirl-icon-download.entry.5acafaf8.js → swirl-icon-download.entry.a3c7c617.js} +1 -1
  106. package/dist/{swirl-icon-edit-note.entry.531e82e2.js → swirl-icon-edit-note.entry.5e520755.js} +1 -1
  107. package/dist/{swirl-icon-edit.entry.4a13e61b.js → swirl-icon-edit.entry.c95cb0c1.js} +1 -1
  108. package/dist/{swirl-icon-emoji-mood.entry.fc55664d.js → swirl-icon-emoji-mood.entry.2bf28eb9.js} +1 -1
  109. package/dist/{swirl-icon-emoji-satisfied.entry.9a59f86d.js → swirl-icon-emoji-satisfied.entry.4ffad182.js} +1 -1
  110. package/dist/{swirl-icon-error_3.entry.7b152528.js → swirl-icon-error_3.entry.0b15fbb8.js} +1 -1
  111. package/dist/{swirl-icon-expand-more.entry.fa32e873.js → swirl-icon-expand-more.entry.f9701724.js} +1 -1
  112. package/dist/{swirl-icon-experiment.entry.1693f576.js → swirl-icon-experiment.entry.cd865475.js} +1 -1
  113. package/dist/{swirl-icon-file.entry.45fa6759.js → swirl-icon-file.entry.4abb2356.js} +1 -1
  114. package/dist/{swirl-icon-filter.entry.3667b252.js → swirl-icon-filter.entry.13f84cca.js} +1 -1
  115. package/dist/{swirl-icon-format-h-one.entry.0ac3144a.js → swirl-icon-format-h-one.entry.a7611749.js} +1 -1
  116. package/dist/{swirl-icon-format-list-bulleted.entry.7d463617.js → swirl-icon-format-list-bulleted.entry.045a72d0.js} +1 -1
  117. package/dist/{swirl-icon-gif_4.entry.8a56f6a4.js → swirl-icon-gif_4.entry.c4116ddc.js} +1 -1
  118. package/dist/{swirl-icon-group-add.entry.f1a5b990.js → swirl-icon-group-add.entry.4334fb43.js} +1 -1
  119. package/dist/{swirl-icon-group-assign.entry.307ef906.js → swirl-icon-group-assign.entry.fdcfd857.js} +1 -1
  120. package/dist/{swirl-icon-groups-filled.entry.c74f1a54.js → swirl-icon-groups-filled.entry.71c80767.js} +1 -1
  121. package/dist/{swirl-icon-groups.entry.3a303272.js → swirl-icon-groups.entry.5e65d8b2.js} +1 -1
  122. package/dist/{swirl-icon-hamburger-menu.entry.c9e53ef6.js → swirl-icon-hamburger-menu.entry.d1a5670f.js} +1 -1
  123. package/dist/{swirl-icon-health-and-safety.entry.abe59b26.js → swirl-icon-health-and-safety.entry.eaa8e71b.js} +1 -1
  124. package/dist/{swirl-icon-help-filled.entry.ca9e0e0e.js → swirl-icon-help-filled.entry.d32f15e4.js} +1 -1
  125. package/dist/{swirl-icon-help.entry.6933d2c8.js → swirl-icon-help.entry.93455768.js} +1 -1
  126. package/dist/{swirl-icon-highlight.entry.757b1701.js → swirl-icon-highlight.entry.c3406965.js} +1 -1
  127. package/dist/{swirl-icon-history.entry.fc2b5981.js → swirl-icon-history.entry.38df5037.js} +1 -1
  128. package/dist/{swirl-icon-home.entry.3a1f1e9a.js → swirl-icon-home.entry.1bf6c066.js} +1 -1
  129. package/dist/{swirl-icon-hr-resting.entry.ff9b6582.js → swirl-icon-hr-resting.entry.88ba9f82.js} +1 -1
  130. package/dist/{swirl-icon-improve-text.entry.2c6450b4.js → swirl-icon-improve-text.entry.9d996ea5.js} +1 -1
  131. package/dist/{swirl-icon-info.entry.b650fc7e.js → swirl-icon-info.entry.f83d3a95.js} +1 -1
  132. package/dist/{swirl-icon-insert-below.entry.b5e72e2d.js → swirl-icon-insert-below.entry.1ba3e825.js} +1 -1
  133. package/dist/{swirl-icon-insert-chart.entry.42201563.js → swirl-icon-insert-chart.entry.f7626b71.js} +1 -1
  134. package/dist/{swirl-icon-insert-on-top.entry.421bb011.js → swirl-icon-insert-on-top.entry.02c68542.js} +1 -1
  135. package/dist/{swirl-icon-inventory-off.entry.83564651.js → swirl-icon-inventory-off.entry.9c0bb37e.js} +1 -1
  136. package/dist/{swirl-icon-inventory.entry.6119f904.js → swirl-icon-inventory.entry.180cf951.js} +1 -1
  137. package/dist/{swirl-icon-key.entry.06bdccc6.js → swirl-icon-key.entry.b70b9943.js} +1 -1
  138. package/dist/{swirl-icon-keyboard-hide.entry.c7e481f6.js → swirl-icon-keyboard-hide.entry.861d162a.js} +1 -1
  139. package/dist/{swirl-icon-keyboard.entry.840e9082.js → swirl-icon-keyboard.entry.10f819e5.js} +1 -1
  140. package/dist/{swirl-icon-light-mode.entry.ac3e8b56.js → swirl-icon-light-mode.entry.87856d2c.js} +1 -1
  141. package/dist/{swirl-icon-like.entry.19932b9b.js → swirl-icon-like.entry.3354bf60.js} +1 -1
  142. package/dist/{swirl-icon-link.entry.8ed6c965.js → swirl-icon-link.entry.ed65e8c2.js} +1 -1
  143. package/dist/{swirl-icon-live.entry.d472c0bc.js → swirl-icon-live.entry.ec3d9d2f.js} +1 -1
  144. package/dist/{swirl-icon-load.entry.143e7d0d.js → swirl-icon-load.entry.cf033a70.js} +1 -1
  145. package/dist/{swirl-icon-location-on.entry.f78ececa.js → swirl-icon-location-on.entry.c2bf9189.js} +1 -1
  146. package/dist/{swirl-icon-lock-open.entry.a319b94e.js → swirl-icon-lock-open.entry.47e8e71a.js} +1 -1
  147. package/dist/{swirl-icon-lock-person.entry.2102deef.js → swirl-icon-lock-person.entry.fe959dda.js} +1 -1
  148. package/dist/{swirl-icon-lock.entry.796ca06b.js → swirl-icon-lock.entry.3521230e.js} +1 -1
  149. package/dist/{swirl-icon-login.entry.7c546fd5.js → swirl-icon-login.entry.3a3c0df1.js} +1 -1
  150. package/dist/{swirl-icon-logout.entry.19f29408.js → swirl-icon-logout.entry.7246c7aa.js} +1 -1
  151. package/dist/{swirl-icon-long-text.entry.c3ce8bcb.js → swirl-icon-long-text.entry.78c33963.js} +1 -1
  152. package/dist/{swirl-icon-mail.entry.f605c4ba.js → swirl-icon-mail.entry.613f4a88.js} +1 -1
  153. package/dist/{swirl-icon-manage-accounts.entry.08a56b34.js → swirl-icon-manage-accounts.entry.d8a708c5.js} +1 -1
  154. package/dist/{swirl-icon-mark-chat-read.entry.ac721076.js → swirl-icon-mark-chat-read.entry.d8327595.js} +1 -1
  155. package/dist/{swirl-icon-mark-chat-unread.entry.b145288d.js → swirl-icon-mark-chat-unread.entry.c8a532c7.js} +1 -1
  156. package/dist/{swirl-icon-mention.entry.9d053e6b.js → swirl-icon-mention.entry.d90742d8.js} +1 -1
  157. package/dist/{swirl-icon-menu-book-filled.entry.2369328d.js → swirl-icon-menu-book-filled.entry.945ad9c1.js} +1 -1
  158. package/dist/{swirl-icon-menu-filled.entry.c6f74689.js → swirl-icon-menu-filled.entry.4f18ce1b.js} +1 -1
  159. package/dist/{swirl-icon-menu.entry.4cab21c0.js → swirl-icon-menu.entry.1f7da433.js} +1 -1
  160. package/dist/{swirl-icon-message.entry.394c2b8a.js → swirl-icon-message.entry.4bd37dd2.js} +1 -1
  161. package/dist/{swirl-icon-mic-off.entry.fda22347.js → swirl-icon-mic-off.entry.05d945bb.js} +1 -1
  162. package/dist/{swirl-icon-mic.entry.256a59fd.js → swirl-icon-mic.entry.1da58a86.js} +1 -1
  163. package/dist/{swirl-icon-more-horizontal.entry.60689956.js → swirl-icon-more-horizontal.entry.0bac31a5.js} +1 -1
  164. package/dist/{swirl-icon-news-filled.entry.83aed458.js → swirl-icon-news-filled.entry.bfae4792.js} +1 -1
  165. package/dist/{swirl-icon-news-off.entry.5c0f5019.js → swirl-icon-news-off.entry.2d11bbca.js} +1 -1
  166. package/dist/{swirl-icon-news.entry.6e7247bf.js → swirl-icon-news.entry.708aa889.js} +1 -1
  167. package/dist/{swirl-icon-next-plan.entry.fb443437.js → swirl-icon-next-plan.entry.fcf9d606.js} +1 -1
  168. package/dist/{swirl-icon-notifications-active.entry.16b2cb8c.js → swirl-icon-notifications-active.entry.1edac8ca.js} +1 -1
  169. package/dist/{swirl-icon-notifications-off.entry.f659a31f.js → swirl-icon-notifications-off.entry.3d50d8a6.js} +1 -1
  170. package/dist/{swirl-icon-notifications.entry.f897a1ef.js → swirl-icon-notifications.entry.9c4ac21d.js} +1 -1
  171. package/dist/{swirl-icon-open-in-full.entry.a19a9e84.js → swirl-icon-open-in-full.entry.a429e69c.js} +1 -1
  172. package/dist/{swirl-icon-open-in-new.entry.65c1c800.js → swirl-icon-open-in-new.entry.4c0e5588.js} +1 -1
  173. package/dist/{swirl-icon-pause-circle.entry.730529e3.js → swirl-icon-pause-circle.entry.ccc7284c.js} +1 -1
  174. package/dist/{swirl-icon-people-alt.entry.c5a3d1ac.js → swirl-icon-people-alt.entry.1551f638.js} +1 -1
  175. package/dist/{swirl-icon-person-off.entry.e19e1d41.js → swirl-icon-person-off.entry.75742a04.js} +1 -1
  176. package/dist/{swirl-icon-person.entry.a0478176.js → swirl-icon-person.entry.24034774.js} +1 -1
  177. package/dist/{swirl-icon-phone.entry.4c1c2b38.js → swirl-icon-phone.entry.f7ed743c.js} +1 -1
  178. package/dist/{swirl-icon-photo-camera.entry.63f2fc15.js → swirl-icon-photo-camera.entry.a0bc6c7a.js} +1 -1
  179. package/dist/{swirl-icon-picture-in-picture.entry.9fad6ee6.js → swirl-icon-picture-in-picture.entry.a45743ba.js} +1 -1
  180. package/dist/{swirl-icon-pin-off.entry.97bb6821.js → swirl-icon-pin-off.entry.385aa3ee.js} +1 -1
  181. package/dist/{swirl-icon-pin.entry.b7753b4d.js → swirl-icon-pin.entry.24571487.js} +1 -1
  182. package/dist/{swirl-icon-place.entry.c00ba756.js → swirl-icon-place.entry.76b57585.js} +1 -1
  183. package/dist/{swirl-icon-poll.entry.7f351ab6.js → swirl-icon-poll.entry.befa7e33.js} +1 -1
  184. package/dist/{swirl-icon-post-approval.entry.d1474e47.js → swirl-icon-post-approval.entry.f938ab08.js} +1 -1
  185. package/dist/{swirl-icon-present.entry.c16f55fb.js → swirl-icon-present.entry.e28ee591.js} +1 -1
  186. package/dist/{swirl-icon-preview.entry.968774f2.js → swirl-icon-preview.entry.407f07af.js} +1 -1
  187. package/dist/{swirl-icon-print.entry.9cdcc577.js → swirl-icon-print.entry.6d392330.js} +1 -1
  188. package/dist/{swirl-icon-public-off.entry.a59270a7.js → swirl-icon-public-off.entry.8c75c5f0.js} +1 -1
  189. package/dist/{swirl-icon-public.entry.1f7737ea.js → swirl-icon-public.entry.042a9552.js} +1 -1
  190. package/dist/{swirl-icon-published-with-changes.entry.e3df9a48.js → swirl-icon-published-with-changes.entry.22528734.js} +1 -1
  191. package/dist/{swirl-icon-ratio-four-to-three.entry.6346ebe5.js → swirl-icon-ratio-four-to-three.entry.85a2577e.js} +1 -1
  192. package/dist/{swirl-icon-ratio-freeform.entry.ac7a209e.js → swirl-icon-ratio-freeform.entry.fc19abfc.js} +1 -1
  193. package/dist/{swirl-icon-ratio-sixteen-to-nine.entry.44262265.js → swirl-icon-ratio-sixteen-to-nine.entry.4c8304e6.js} +1 -1
  194. package/dist/{swirl-icon-ratio-square.entry.879716f2.js → swirl-icon-ratio-square.entry.1a47cfa8.js} +1 -1
  195. package/dist/{swirl-icon-ratio-three-to-four.entry.a55cde7c.js → swirl-icon-ratio-three-to-four.entry.00d93312.js} +1 -1
  196. package/dist/{swirl-icon-ratio-three-to-two.entry.b70af892.js → swirl-icon-ratio-three-to-two.entry.cce81838.js} +1 -1
  197. package/dist/{swirl-icon-recieved.entry.d0dcabdc.js → swirl-icon-recieved.entry.32027381.js} +1 -1
  198. package/dist/{swirl-icon-remove-circle.entry.1f3ce89e.js → swirl-icon-remove-circle.entry.f45a5465.js} +1 -1
  199. package/dist/{swirl-icon-remove-moderator.entry.45beda71.js → swirl-icon-remove-moderator.entry.3a78c307.js} +1 -1
  200. package/dist/{swirl-icon-reply.entry.d8a009ec.js → swirl-icon-reply.entry.a417b06d.js} +1 -1
  201. package/dist/{swirl-icon-report.entry.ae1b671c.js → swirl-icon-report.entry.13058b0d.js} +1 -1
  202. package/dist/{swirl-icon-roadmap.entry.f80fe74d.js → swirl-icon-roadmap.entry.f14ef92e.js} +1 -1
  203. package/dist/{swirl-icon-rotate-left.entry.319346bf.js → swirl-icon-rotate-left.entry.252ebd85.js} +1 -1
  204. package/dist/{swirl-icon-rotate-right.entry.e4df8e05.js → swirl-icon-rotate-right.entry.97d360d1.js} +1 -1
  205. package/dist/{swirl-icon-screenshare-off.entry.50ea7bd5.js → swirl-icon-screenshare-off.entry.b23dd541.js} +1 -1
  206. package/dist/{swirl-icon-screenshare.entry.a238216b.js → swirl-icon-screenshare.entry.78b4b98d.js} +1 -1
  207. package/dist/{swirl-icon-search-strong.entry.97e70471.js → swirl-icon-search-strong.entry.a0eb0d3a.js} +1 -1
  208. package/dist/{swirl-icon-search.entry.766cf975.js → swirl-icon-search.entry.362441e3.js} +1 -1
  209. package/dist/{swirl-icon-secure.entry.83595d67.js → swirl-icon-secure.entry.7e73ffdc.js} +1 -1
  210. package/dist/{swirl-icon-send.entry.f39544d1.js → swirl-icon-send.entry.5ce0cbf8.js} +1 -1
  211. package/dist/{swirl-icon-settings.entry.d6d73b72.js → swirl-icon-settings.entry.6e892114.js} +1 -1
  212. package/dist/{swirl-icon-short-text.entry.40785836.js → swirl-icon-short-text.entry.f1fd29e0.js} +1 -1
  213. package/dist/{swirl-icon-simplify.entry.a7bbd8ed.js → swirl-icon-simplify.entry.f9d6ddd5.js} +1 -1
  214. package/dist/{swirl-icon-spellcheck.entry.98f7e6df.js → swirl-icon-spellcheck.entry.00560eac.js} +1 -1
  215. package/dist/{swirl-icon-stars.entry.87b5ae62.js → swirl-icon-stars.entry.b473dea6.js} +1 -1
  216. package/dist/{swirl-icon-sticky-note.entry.d4ddd0f2.js → swirl-icon-sticky-note.entry.c3b81e94.js} +1 -1
  217. package/dist/{swirl-icon-stop-circle.entry.949aa612.js → swirl-icon-stop-circle.entry.ae06a549.js} +1 -1
  218. package/dist/{swirl-icon-stop.entry.d2b41923.js → swirl-icon-stop.entry.ab1985f6.js} +1 -1
  219. package/dist/{swirl-icon-sunny.entry.7f06d866.js → swirl-icon-sunny.entry.7bc8f285.js} +1 -1
  220. package/dist/{swirl-icon-sync.entry.aef11534.js → swirl-icon-sync.entry.6c56e309.js} +1 -1
  221. package/dist/{swirl-icon-tasks-filled.entry.defeb7d7.js → swirl-icon-tasks-filled.entry.8683ad25.js} +1 -1
  222. package/dist/{swirl-icon-tasks.entry.c07dcf77.js → swirl-icon-tasks.entry.4c84e4ff.js} +1 -1
  223. package/dist/{swirl-icon-terminal.entry.b84b733a.js → swirl-icon-terminal.entry.f31f27e0.js} +1 -1
  224. package/dist/{swirl-icon-time-filled.entry.ba63a817.js → swirl-icon-time-filled.entry.23426b62.js} +1 -1
  225. package/dist/{swirl-icon-time.entry.e334211a.js → swirl-icon-time.entry.e602cc71.js} +1 -1
  226. package/dist/{swirl-icon-today-filled.entry.e95ae8c6.js → swirl-icon-today-filled.entry.f7636f32.js} +1 -1
  227. package/dist/{swirl-icon-translate.entry.995c00ee.js → swirl-icon-translate.entry.845e3d33.js} +1 -1
  228. package/dist/{swirl-icon-tree-structure.entry.3d73d8f0.js → swirl-icon-tree-structure.entry.44758af9.js} +1 -1
  229. package/dist/{swirl-icon-undo.entry.8c21dc69.js → swirl-icon-undo.entry.437e4c54.js} +1 -1
  230. package/dist/{swirl-icon-unlock-person.entry.e300ab71.js → swirl-icon-unlock-person.entry.bc5cb3f7.js} +1 -1
  231. package/dist/{swirl-icon-upload.entry.deeecfb9.js → swirl-icon-upload.entry.bc4317d5.js} +1 -1
  232. package/dist/{swirl-icon-user-add.entry.eafa5856.js → swirl-icon-user-add.entry.088e9710.js} +1 -1
  233. package/dist/{swirl-icon-user-assign.entry.89845339.js → swirl-icon-user-assign.entry.f5d4d1b7.js} +1 -1
  234. package/dist/{swirl-icon-video-camera-off.entry.d309b4bd.js → swirl-icon-video-camera-off.entry.04e495cd.js} +1 -1
  235. package/dist/{swirl-icon-video-camera.entry.4b97081d.js → swirl-icon-video-camera.entry.bf72ae3f.js} +1 -1
  236. package/dist/{swirl-icon-video-library.entry.c7cef161.js → swirl-icon-video-library.entry.c50248a1.js} +1 -1
  237. package/dist/{swirl-icon-view-agenda.entry.e2cda958.js → swirl-icon-view-agenda.entry.752852bd.js} +1 -1
  238. package/dist/{swirl-icon-voice.entry.fbc8ae9d.js → swirl-icon-voice.entry.bf613b83.js} +1 -1
  239. package/dist/{swirl-icon-volume-up.entry.0dbea5ac.js → swirl-icon-volume-up.entry.4e312568.js} +1 -1
  240. package/dist/{swirl-icon-web-asset-off.entry.3a2a1f6e.js → swirl-icon-web-asset-off.entry.41935267.js} +1 -1
  241. package/dist/{swirl-icon-web-asset.entry.3710ac18.js → swirl-icon-web-asset.entry.03021312.js} +1 -1
  242. package/dist/{swirl-icon-work.entry.3ae51c0a.js → swirl-icon-work.entry.902f770f.js} +1 -1
  243. package/dist/{swirl-icon.entry.08e40184.js → swirl-icon.entry.260b27c9.js} +1 -1
  244. package/dist/{swirl-image-grid-item.entry.600da6e2.js → swirl-image-grid-item.entry.a655b728.js} +1 -1
  245. package/dist/{swirl-image-grid.entry.fd965f32.js → swirl-image-grid.entry.b6dbe967.js} +1 -1
  246. package/dist/{swirl-inline-notification.entry.c8b1ab91.js → swirl-inline-notification.entry.d7f64c75.js} +1 -1
  247. package/dist/{swirl-inline-status.entry.7db9e6b7.js → swirl-inline-status.entry.633871d6.js} +1 -1
  248. package/dist/{swirl-lightbox.entry.954b7ee8.js → swirl-lightbox.entry.f7fe1146.js} +1 -1
  249. package/dist/{swirl-link.entry.18b6d5af.js → swirl-link.entry.9ec931f7.js} +1 -1
  250. package/dist/{swirl-list.entry.1f34e85e.js → swirl-list.entry.8667cd75.js} +1 -1
  251. package/dist/{swirl-menu-item.entry.5b5741c1.js → swirl-menu-item.entry.4cb8fdaa.js} +1 -1
  252. package/dist/{swirl-menu.entry.27ddeda9.js → swirl-menu.entry.2c45fb19.js} +6 -4
  253. package/dist/{swirl-modal.entry.bb2810cd.js → swirl-modal.entry.17220874.js} +1 -1
  254. package/dist/{swirl-option-list-section.entry.aefaeb34.js → swirl-option-list-section.entry.d8ff0884.js} +1 -1
  255. package/dist/{swirl-option-list_2.entry.7fcd885f.js → swirl-option-list_2.entry.45a91440.js} +1 -1
  256. package/dist/{swirl-pagination.entry.a120fc23.js → swirl-pagination.entry.9c085763.js} +1 -1
  257. package/dist/{swirl-pdf-reader.entry.36604692.js → swirl-pdf-reader.entry.51193513.js} +1 -1
  258. package/dist/{swirl-popover_2.entry.803e3ad2.js → swirl-popover_2.entry.e3706d7b.js} +1 -1
  259. package/dist/{swirl-progress-indicator.entry.226a2969.js → swirl-progress-indicator.entry.894043ed.js} +1 -1
  260. package/dist/{swirl-radio-group.entry.3c40f552.js → swirl-radio-group.entry.945dcf90.js} +1 -1
  261. package/dist/{swirl-radio.entry.20c3789c.js → swirl-radio.entry.95c907e8.js} +1 -1
  262. package/dist/{swirl-resource-list-file-item.entry.de479201.js → swirl-resource-list-file-item.entry.93c10db9.js} +1 -1
  263. package/dist/{swirl-resource-list-section.entry.5c63fb60.js → swirl-resource-list-section.entry.44c01e06.js} +1 -1
  264. package/dist/{swirl-search.entry.d5f2e1ef.js → swirl-search.entry.6d0c8693.js} +1 -1
  265. package/dist/{swirl-select.entry.a09eef22.js → swirl-select.entry.9b901af2.js} +1 -1
  266. package/dist/{swirl-separator.entry.35478fba.js → swirl-separator.entry.fefb8891.js} +1 -1
  267. package/dist/{swirl-shell-layout.entry.1ba80e9a.js → swirl-shell-layout.entry.9372377d.js} +1 -1
  268. package/dist/{swirl-shell-navigation-item.entry.2c46e4f2.js → swirl-shell-navigation-item.entry.aef90f5f.js} +1 -1
  269. package/dist/{swirl-skeleton-text.entry.cd3fa25f.js → swirl-skeleton-text.entry.3da51f79.js} +1 -1
  270. package/dist/{swirl-stack.entry.faf09814.js → swirl-stack.entry.d801eb53.js} +1 -1
  271. package/dist/{swirl-status-indicator.entry.18ee39c2.js → swirl-status-indicator.entry.1d5f9bbf.js} +1 -1
  272. package/dist/{swirl-switch.entry.687cf791.js → swirl-switch.entry.fa81a3fb.js} +1 -1
  273. package/dist/{swirl-symbol-account-circle.entry.3d9b1495.js → swirl-symbol-account-circle.entry.0e3c5c8b.js} +1 -1
  274. package/dist/{swirl-symbol-alternate-email.entry.efdca8e1.js → swirl-symbol-alternate-email.entry.66a224e7.js} +1 -1
  275. package/dist/{swirl-symbol-android.entry.12afe7c2.js → swirl-symbol-android.entry.4f891065.js} +1 -1
  276. package/dist/{swirl-symbol-announcement.entry.1772ecd0.js → swirl-symbol-announcement.entry.32e094f2.js} +1 -1
  277. package/dist/{swirl-symbol-backup.entry.f0fc7c8e.js → swirl-symbol-backup.entry.f9ba3303.js} +1 -1
  278. package/dist/{swirl-symbol-beach-access.entry.50d70d95.js → swirl-symbol-beach-access.entry.f594cd04.js} +1 -1
  279. package/dist/{swirl-symbol-bookmark.entry.46948201.js → swirl-symbol-bookmark.entry.9a5bf4b0.js} +1 -1
  280. package/dist/{swirl-symbol-cloud.entry.12d4e2d2.js → swirl-symbol-cloud.entry.40f85067.js} +1 -1
  281. package/dist/{swirl-symbol-coronavirus.entry.6b5b2dc3.js → swirl-symbol-coronavirus.entry.1b9b18d5.js} +1 -1
  282. package/dist/{swirl-symbol-desktop-windows.entry.4fc7b6f3.js → swirl-symbol-desktop-windows.entry.5997a415.js} +1 -1
  283. package/dist/{swirl-symbol-directions-car-filled.entry.0bc3e4f5.js → swirl-symbol-directions-car-filled.entry.7094adfc.js} +1 -1
  284. package/dist/{swirl-symbol-edit-calendar.entry.ba7aa1d5.js → swirl-symbol-edit-calendar.entry.686ccaee.js} +1 -1
  285. package/dist/{swirl-symbol-email.entry.525a4886.js → swirl-symbol-email.entry.2f8919b2.js} +1 -1
  286. package/dist/{swirl-symbol-emoji-food-beverage.entry.5556706b.js → swirl-symbol-emoji-food-beverage.entry.a8bcd3f2.js} +1 -1
  287. package/dist/{swirl-symbol-event-menu.entry.f8f6cbf5.js → swirl-symbol-event-menu.entry.1b9b9e09.js} +1 -1
  288. package/dist/{swirl-symbol-facebook.entry.6588a75e.js → swirl-symbol-facebook.entry.a21ccd75.js} +1 -1
  289. package/dist/{swirl-symbol-favorite.entry.4d678167.js → swirl-symbol-favorite.entry.bacd749a.js} +1 -1
  290. package/dist/{swirl-symbol-fitness-center.entry.a7ef619f.js → swirl-symbol-fitness-center.entry.660f1872.js} +1 -1
  291. package/dist/{swirl-symbol-flag.entry.cb93c607.js → swirl-symbol-flag.entry.d9b7d5c3.js} +1 -1
  292. package/dist/{swirl-symbol-folder.entry.2ce3a890.js → swirl-symbol-folder.entry.ea994839.js} +1 -1
  293. package/dist/{swirl-symbol-globe.entry.3b7bb2be.js → swirl-symbol-globe.entry.e84663ea.js} +1 -1
  294. package/dist/{swirl-symbol-groups.entry.f13f0496.js → swirl-symbol-groups.entry.43c1b7c5.js} +1 -1
  295. package/dist/{swirl-symbol-help.entry.0b866d09.js → swirl-symbol-help.entry.4afa1af4.js} +1 -1
  296. package/dist/{swirl-symbol-image.entry.7cbce0db.js → swirl-symbol-image.entry.fab2266c.js} +1 -1
  297. package/dist/{swirl-symbol-info-menu.entry.eec6a5bf.js → swirl-symbol-info-menu.entry.39c23827.js} +1 -1
  298. package/dist/{swirl-symbol-instagram.entry.e4c2b3b9.js → swirl-symbol-instagram.entry.0c49ac6c.js} +1 -1
  299. package/dist/{swirl-symbol-ios.entry.d1f54bb3.js → swirl-symbol-ios.entry.29a79f22.js} +1 -1
  300. package/dist/{swirl-symbol-language.entry.7c6e7a97.js → swirl-symbol-language.entry.0b05d512.js} +1 -1
  301. package/dist/{swirl-symbol-leaderboard.entry.f6bcd614.js → swirl-symbol-leaderboard.entry.c23f8949.js} +1 -1
  302. package/dist/{swirl-symbol-lightbulb.entry.6ffe9f51.js → swirl-symbol-lightbulb.entry.e3a6b0c2.js} +1 -1
  303. package/dist/{swirl-symbol-linkedin.entry.5e1cee3d.js → swirl-symbol-linkedin.entry.29e170cd.js} +1 -1
  304. package/dist/{swirl-symbol-location-on.entry.58099e00.js → swirl-symbol-location-on.entry.35e18161.js} +1 -1
  305. package/dist/{swirl-symbol-loyalty.entry.beb41d4c.js → swirl-symbol-loyalty.entry.df667508.js} +1 -1
  306. package/dist/{swirl-symbol-maps-home-work.entry.86aed0c6.js → swirl-symbol-maps-home-work.entry.5ef859e5.js} +1 -1
  307. package/dist/{swirl-symbol-notifications.entry.948d56a0.js → swirl-symbol-notifications.entry.4610d8a5.js} +1 -1
  308. package/dist/{swirl-symbol-open-in-new.entry.2daf4739.js → swirl-symbol-open-in-new.entry.5997f496.js} +1 -1
  309. package/dist/{swirl-symbol-pedal-bike.entry.a871e83f.js → swirl-symbol-pedal-bike.entry.443b3516.js} +1 -1
  310. package/dist/{swirl-symbol-pinterest.entry.aca2926a.js → swirl-symbol-pinterest.entry.668c231b.js} +1 -1
  311. package/dist/{swirl-symbol-policy.entry.a96cb21c.js → swirl-symbol-policy.entry.e7aab8dc.js} +1 -1
  312. package/dist/{swirl-symbol-push-pin.entry.2925ba7d.js → swirl-symbol-push-pin.entry.8812ca51.js} +1 -1
  313. package/dist/{swirl-symbol-redeem.entry.a782f1b9.js → swirl-symbol-redeem.entry.235a548f.js} +1 -1
  314. package/dist/{swirl-symbol-report-problem.entry.ff4b852d.js → swirl-symbol-report-problem.entry.b4f49422.js} +1 -1
  315. package/dist/{swirl-symbol-restaurant.entry.8389807c.js → swirl-symbol-restaurant.entry.5165db61.js} +1 -1
  316. package/dist/{swirl-symbol-roadmap.entry.a286ba40.js → swirl-symbol-roadmap.entry.2ad7d8aa.js} +1 -1
  317. package/dist/{swirl-symbol-room.entry.97e3f92d.js → swirl-symbol-room.entry.969afd97.js} +1 -1
  318. package/dist/{swirl-symbol-savings.entry.322c0bbe.js → swirl-symbol-savings.entry.2b1166cb.js} +1 -1
  319. package/dist/{swirl-symbol-settings-voice.entry.9443c764.js → swirl-symbol-settings-voice.entry.6186fff2.js} +1 -1
  320. package/dist/{swirl-symbol-shopping-cart.entry.bbbddb9d.js → swirl-symbol-shopping-cart.entry.785f59d8.js} +1 -1
  321. package/dist/{swirl-symbol-smartphone.entry.50d2cd49.js → swirl-symbol-smartphone.entry.91e919c7.js} +1 -1
  322. package/dist/{swirl-symbol-star.entry.91be2b9d.js → swirl-symbol-star.entry.6b5d62b7.js} +1 -1
  323. package/dist/{swirl-symbol-supervisor-account.entry.baecee3f.js → swirl-symbol-supervisor-account.entry.821d80ba.js} +1 -1
  324. package/dist/{swirl-symbol-thumbs-up-down.entry.834d6b60.js → swirl-symbol-thumbs-up-down.entry.f407931e.js} +1 -1
  325. package/dist/{swirl-symbol-twitter.entry.5589a398.js → swirl-symbol-twitter.entry.05f8e337.js} +1 -1
  326. package/dist/{swirl-symbol-wb-sunny.entry.ef97a43b.js → swirl-symbol-wb-sunny.entry.b2e1f34f.js} +1 -1
  327. package/dist/{swirl-symbol-wechat.entry.76188980.js → swirl-symbol-wechat.entry.588372fc.js} +1 -1
  328. package/dist/{swirl-symbol-weibo.entry.7d59030c.js → swirl-symbol-weibo.entry.b75b7356.js} +1 -1
  329. package/dist/{swirl-symbol-work.entry.aba9dddc.js → swirl-symbol-work.entry.80bc96e2.js} +1 -1
  330. package/dist/{swirl-symbol-xing.entry.591e254e.js → swirl-symbol-xing.entry.dd7d82b4.js} +1 -1
  331. package/dist/{swirl-symbol-youtube.entry.55001e14.js → swirl-symbol-youtube.entry.5889c529.js} +1 -1
  332. package/dist/{swirl-symbol.entry.4c82cf54.js → swirl-symbol.entry.df6e9479.js} +1 -1
  333. package/dist/{swirl-tab-bar.entry.d9140d24.js → swirl-tab-bar.entry.5299c842.js} +1 -1
  334. package/dist/{swirl-tab.entry.da7b2765.js → swirl-tab.entry.ef168378.js} +1 -1
  335. package/dist/{swirl-table-cell.entry.ccca2558.js → swirl-table-cell.entry.5c0cee7a.js} +1 -1
  336. package/dist/{swirl-table-column.entry.bbc99f8f.js → swirl-table-column.entry.6fe05bf7.js} +1 -1
  337. package/dist/{swirl-table-row-group.entry.d0e58f64.js → swirl-table-row-group.entry.91ad5123.js} +1 -1
  338. package/dist/{swirl-table-row.entry.85053421.js → swirl-table-row.entry.cec776d9.js} +1 -1
  339. package/dist/{swirl-table.entry.e8bff702.js → swirl-table.entry.b07b667b.js} +1 -1
  340. package/dist/{swirl-tabs.entry.813441ff.js → swirl-tabs.entry.c7c550d6.js} +1 -1
  341. package/dist/{swirl-text-input.entry.fb08310e.js → swirl-text-input.entry.859c0014.js} +1 -1
  342. package/dist/{swirl-text.entry.e8d91d5d.js → swirl-text.entry.8ec949a7.js} +1 -1
  343. package/dist/{swirl-theme-provider.entry.74de1edf.js → swirl-theme-provider.entry.9f21c73e.js} +1 -1
  344. package/dist/{swirl-time-input.entry.7dc4b8c3.js → swirl-time-input.entry.d76ea5cc.js} +1 -1
  345. package/dist/{swirl-toast-provider.entry.3a58574a.js → swirl-toast-provider.entry.cae3886d.js} +1 -1
  346. package/dist/{swirl-toast.entry.52f65729.js → swirl-toast.entry.ec5e2c60.js} +1 -1
  347. package/dist/{swirl-toggle-button.entry.f28a9948.js → swirl-toggle-button.entry.d886913e.js} +1 -1
  348. package/dist/{swirl-toggle-group.entry.800d7f85.js → swirl-toggle-group.entry.19b322d0.js} +1 -1
  349. package/dist/{swirl-toolbar.entry.49576d89.js → swirl-toolbar.entry.0faca67d.js} +1 -1
  350. package/dist/{swirl-tooltip.entry.bb4a83dc.js → swirl-tooltip.entry.c5cedb8e.js} +1 -1
  351. package/dist/{swirl-tree-navigation-item.entry.2da42e2a.js → swirl-tree-navigation-item.entry.6cf3c438.js} +1 -1
  352. package/dist/{swirl-tree-navigation.entry.1f311af8.js → swirl-tree-navigation.entry.32a1ad37.js} +1 -1
  353. package/dist/{swirl-tree-view-item.entry.29aa3d08.js → swirl-tree-view-item.entry.a2d72c30.js} +1 -1
  354. package/dist/{swirl-tree-view.entry.c59551e1.js → swirl-tree-view.entry.ad57e7ba.js} +1 -1
  355. package/dist/{swirl-video-thumbnail.entry.d2a48c45.js → swirl-video-thumbnail.entry.6d05c9f1.js} +1 -1
  356. package/dist/{swirl-visually-hidden.entry.53b828a2.js → swirl-visually-hidden.entry.0a681a3c.js} +1 -1
  357. package/dist/{wc-datepicker.entry.a94e360e.js → wc-datepicker.entry.63d938ad.js} +1 -1
  358. package/package.json +2 -2
@@ -77,7 +77,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
77
77
  */var Tx=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],d0=Tx.join(","),Hx=typeof Element>"u",E6=Hx?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,h0=!Hx&&Element.prototype.getRootNode?function(i){var e;return i==null||(e=i.getRootNode)===null||e===void 0?void 0:e.call(i)}:function(i){return i==null?void 0:i.ownerDocument},u0=function i(e,t){var s;t===void 0&&(t=!0);var r=e==null||(s=e.getAttribute)===null||s===void 0?void 0:s.call(e,"inert"),n=r===""||r==="true",o=n||t&&e&&i(e.parentNode);return o},xJ=function(e){var t,s=e==null||(t=e.getAttribute)===null||t===void 0?void 0:t.call(e,"contenteditable");return s===""||s==="true"},Vx=function(e,t,s){if(u0(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(d0));return t&&E6.call(e,d0)&&r.unshift(e),r=r.filter(s),r},$x=function i(e,t,s){for(var r=[],n=Array.from(e);n.length;){var o=n.shift();if(!u0(o,!1))if(o.tagName==="SLOT"){var l=o.assignedElements(),c=l.length?l:o.children,h=i(c,!0,s);s.flatten?r.push.apply(r,h):r.push({scopeParent:o,candidates:h})}else{var u=E6.call(o,d0);u&&s.filter(o)&&(t||!e.includes(o))&&r.push(o);var f=o.shadowRoot||typeof s.getShadowRoot=="function"&&s.getShadowRoot(o),C=!u0(f,!1)&&(!s.shadowRootFilter||s.shadowRootFilter(o));if(f&&C){var p=i(f===!0?o.children:f.children,!0,s);s.flatten?r.push.apply(r,p):r.push({scopeParent:o,candidates:p})}else n.unshift.apply(n,o.children)}}return r},Ox=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},A6=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||xJ(e))&&!Ox(e)?0:e.tabIndex},kJ=function(e,t){var s=A6(e);return s<0&&t&&!Ox(e)?0:s},SJ=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},Bx=function(e){return e.tagName==="INPUT"},zJ=function(e){return Bx(e)&&e.type==="hidden"},MJ=function(e){var t=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(s){return s.tagName==="SUMMARY"});return t},LJ=function(e,t){for(var s=0;s<e.length;s++)if(e[s].checked&&e[s].form===t)return e[s]},IJ=function(e){if(!e.name)return!0;var t=e.form||h0(e),s=function(l){return t.querySelectorAll('input[type="radio"][name="'+l+'"]')},r;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")r=s(window.CSS.escape(e.name));else try{r=s(e.name)}catch(o){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",o.message),!1}var n=LJ(r,e.form);return!n||n===e},EJ=function(e){return Bx(e)&&e.type==="radio"},AJ=function(e){return EJ(e)&&!IJ(e)},PJ=function(e){var t,s=e&&h0(e),r=(t=s)===null||t===void 0?void 0:t.host,n=!1;if(s&&s!==e){var o,l,c;for(n=!!((o=r)!==null&&o!==void 0&&(l=o.ownerDocument)!==null&&l!==void 0&&l.contains(r)||e!=null&&(c=e.ownerDocument)!==null&&c!==void 0&&c.contains(e));!n&&r;){var h,u,f;s=h0(r),r=(h=s)===null||h===void 0?void 0:h.host,n=!!((u=r)!==null&&u!==void 0&&(f=u.ownerDocument)!==null&&f!==void 0&&f.contains(r))}}return n},Dx=function(e){var t=e.getBoundingClientRect(),s=t.width,r=t.height;return s===0&&r===0},TJ=function(e,t){var s=t.displayCheck,r=t.getShadowRoot;if(getComputedStyle(e).visibility==="hidden")return!0;var n=E6.call(e,"details>summary:first-of-type"),o=n?e.parentElement:e;if(E6.call(o,"details:not([open]) *"))return!0;if(!s||s==="full"||s==="legacy-full"){if(typeof r=="function"){for(var l=e;e;){var c=e.parentElement,h=h0(e);if(c&&!c.shadowRoot&&r(c)===!0)return Dx(e);e.assignedSlot?e=e.assignedSlot:!c&&h!==e.ownerDocument?e=h.host:e=c}e=l}if(PJ(e))return!e.getClientRects().length;if(s!=="legacy-full")return!0}else if(s==="non-zero-area")return Dx(e);return!1},HJ=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName==="FIELDSET"&&t.disabled){for(var s=0;s<t.children.length;s++){var r=t.children.item(s);if(r.tagName==="LEGEND")return E6.call(t,"fieldset[disabled] *")?!0:!r.contains(e)}return!0}t=t.parentElement}return!1},f0=function(e,t){return!(t.disabled||u0(t)||zJ(t)||TJ(t,e)||MJ(t)||HJ(t))},wh=function(e,t){return!(AJ(t)||A6(t)<0||!f0(e,t))},VJ=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},$J=function i(e){var t=[],s=[];return e.forEach(function(r,n){var o=!!r.scopeParent,l=o?r.scopeParent:r,c=kJ(l,o),h=o?i(r.candidates):l;c===0?o?t.push.apply(t,h):t.push(l):s.push({documentOrder:n,tabIndex:c,item:r,isScope:o,content:h})}),s.sort(SJ).reduce(function(r,n){return n.isScope?r.push.apply(r,n.content):r.push(n.content),r},[]).concat(t)},OJ=function(e,t){t=t||{};var s;return t.getShadowRoot?s=$x([e],t.includeContainer,{filter:wh.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:VJ}):s=Vx(e,t.includeContainer,wh.bind(null,t)),$J(s)},BJ=function(e,t){t=t||{};var s;return t.getShadowRoot?s=$x([e],t.includeContainer,{filter:f0.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):s=Vx(e,t.includeContainer,f0.bind(null,t)),s},kr=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return E6.call(e,d0)===!1?!1:wh(t,e)},DJ=Tx.concat("iframe").join(","),vh=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return E6.call(e,DJ)===!1?!1:f0(t,e)};/*!
78
78
  * focus-trap 7.5.4
79
79
  * @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
80
- */function Rx(i,e){var t=Object.keys(i);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(i);e&&(s=s.filter(function(r){return Object.getOwnPropertyDescriptor(i,r).enumerable})),t.push.apply(t,s)}return t}function Zx(i){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Rx(Object(t),!0).forEach(function(s){RJ(i,s,t[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(t)):Rx(Object(t)).forEach(function(s){Object.defineProperty(i,s,Object.getOwnPropertyDescriptor(t,s))})}return i}function RJ(i,e,t){return e=NJ(e),e in i?Object.defineProperty(i,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):i[e]=t,i}function ZJ(i,e){if(typeof i!="object"||i===null)return i;var t=i[Symbol.toPrimitive];if(t!==void 0){var s=t.call(i,e);if(typeof s!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(i)}function NJ(i){var e=ZJ(i,"string");return typeof e=="symbol"?e:String(e)}var Nx={activateTrap:function(e,t){if(e.length>0){var s=e[e.length-1];s!==t&&s.pause()}var r=e.indexOf(t);r===-1||e.splice(r,1),e.push(t)},deactivateTrap:function(e,t){var s=e.indexOf(t);s!==-1&&e.splice(s,1),e.length>0&&e[e.length-1].unpause()}},jJ=function(e){return e.tagName&&e.tagName.toLowerCase()==="input"&&typeof e.select=="function"},FJ=function(e){return(e==null?void 0:e.key)==="Escape"||(e==null?void 0:e.key)==="Esc"||(e==null?void 0:e.keyCode)===27},Qn=function(e){return(e==null?void 0:e.key)==="Tab"||(e==null?void 0:e.keyCode)===9},UJ=function(e){return Qn(e)&&!e.shiftKey},WJ=function(e){return Qn(e)&&e.shiftKey},jx=function(e){return setTimeout(e,0)},Fx=function(e,t){var s=-1;return e.every(function(r,n){return t(r)?(s=n,!1):!0}),s},Jn=function(e){for(var t=arguments.length,s=new Array(t>1?t-1:0),r=1;r<t;r++)s[r-1]=arguments[r];return typeof e=="function"?e.apply(void 0,s):e},C0=function(e){return e.target.shadowRoot&&typeof e.composedPath=="function"?e.composedPath()[0]:e.target},GJ=[],yh=function(e,t){var s=(t==null?void 0:t.document)||document,r=(t==null?void 0:t.trapStack)||GJ,n=Zx({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:UJ,isKeyBackward:WJ},t),o={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},l,c=function(O,D,U){return O&&O[D]!==void 0?O[D]:n[U||D]},h=function(O,D){var U=typeof(D==null?void 0:D.composedPath)=="function"?D.composedPath():void 0;return o.containerGroups.findIndex(function(F){var B=F.container,j=F.tabbableNodes;return B.contains(O)||(U==null?void 0:U.includes(B))||j.find(function(W){return W===O})})},u=function(O){var D=n[O];if(typeof D=="function"){for(var U=arguments.length,F=new Array(U>1?U-1:0),B=1;B<U;B++)F[B-1]=arguments[B];D=D.apply(void 0,F)}if(D===!0&&(D=void 0),!D){if(D===void 0||D===!1)return D;throw new Error("`".concat(O,"` was specified but was not a node, or did not return a node"))}var j=D;if(typeof D=="string"&&(j=s.querySelector(D),!j))throw new Error("`".concat(O,"` as selector refers to no known node"));return j},f=function(){var O=u("initialFocus");if(O===!1)return!1;if(O===void 0||!vh(O,n.tabbableOptions))if(h(s.activeElement)>=0)O=s.activeElement;else{var D=o.tabbableGroups[0],U=D&&D.firstTabbableNode;O=U||u("fallbackFocus")}if(!O)throw new Error("Your focus-trap needs to have at least one focusable element");return O},C=function(){if(o.containerGroups=o.containers.map(function(O){var D=OJ(O,n.tabbableOptions),U=BJ(O,n.tabbableOptions),F=D.length>0?D[0]:void 0,B=D.length>0?D[D.length-1]:void 0,j=U.find(function(o1){return kr(o1)}),W=U.slice().reverse().find(function(o1){return kr(o1)}),Y=!!D.find(function(o1){return A6(o1)>0});return{container:O,tabbableNodes:D,focusableNodes:U,posTabIndexesFound:Y,firstTabbableNode:F,lastTabbableNode:B,firstDomTabbableNode:j,lastDomTabbableNode:W,nextTabbableNode:function(C1){var Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,r1=D.indexOf(C1);return r1<0?Q?U.slice(U.indexOf(C1)+1).find(function(m1){return kr(m1)}):U.slice(0,U.indexOf(C1)).reverse().find(function(m1){return kr(m1)}):D[r1+(Q?1:-1)]}}}),o.tabbableGroups=o.containerGroups.filter(function(O){return O.tabbableNodes.length>0}),o.tabbableGroups.length<=0&&!u("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(o.containerGroups.find(function(O){return O.posTabIndexesFound})&&o.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},p=function Z(O){var D=O.activeElement;if(!!D)return D.shadowRoot&&D.shadowRoot.activeElement!==null?Z(D.shadowRoot):D},m=function Z(O){if(O!==!1&&O!==p(document)){if(!O||!O.focus){Z(f());return}O.focus({preventScroll:!!n.preventScroll}),o.mostRecentlyFocusedNode=O,jJ(O)&&O.select()}},g=function(O){var D=u("setReturnFocus",O);return D||(D===!1?!1:O)},y=function(O){var D=O.target,U=O.event,F=O.isBackward,B=F===void 0?!1:F;D=D||C0(U),C();var j=null;if(o.tabbableGroups.length>0){var W=h(D,U),Y=W>=0?o.containerGroups[W]:void 0;if(W<0)B?j=o.tabbableGroups[o.tabbableGroups.length-1].lastTabbableNode:j=o.tabbableGroups[0].firstTabbableNode;else if(B){var o1=Fx(o.tabbableGroups,function(J){var G=J.firstTabbableNode;return D===G});if(o1<0&&(Y.container===D||vh(D,n.tabbableOptions)&&!kr(D,n.tabbableOptions)&&!Y.nextTabbableNode(D,!1))&&(o1=W),o1>=0){var C1=o1===0?o.tabbableGroups.length-1:o1-1,Q=o.tabbableGroups[C1];j=A6(D)>=0?Q.lastTabbableNode:Q.lastDomTabbableNode}else Qn(U)||(j=Y.nextTabbableNode(D,!1))}else{var r1=Fx(o.tabbableGroups,function(J){var G=J.lastTabbableNode;return D===G});if(r1<0&&(Y.container===D||vh(D,n.tabbableOptions)&&!kr(D,n.tabbableOptions)&&!Y.nextTabbableNode(D))&&(r1=W),r1>=0){var m1=r1===o.tabbableGroups.length-1?0:r1+1,l1=o.tabbableGroups[m1];j=A6(D)>=0?l1.firstTabbableNode:l1.firstDomTabbableNode}else Qn(U)||(j=Y.nextTabbableNode(D))}}else j=u("fallbackFocus");return j},_=function(O){var D=C0(O);if(!(h(D,O)>=0)){if(Jn(n.clickOutsideDeactivates,O)){l.deactivate({returnFocus:n.returnFocusOnDeactivate});return}Jn(n.allowOutsideClick,O)||O.preventDefault()}},z=function(O){var D=C0(O),U=h(D,O)>=0;if(U||D instanceof Document)U&&(o.mostRecentlyFocusedNode=D);else{O.stopImmediatePropagation();var F,B=!0;if(o.mostRecentlyFocusedNode)if(A6(o.mostRecentlyFocusedNode)>0){var j=h(o.mostRecentlyFocusedNode),W=o.containerGroups[j].tabbableNodes;if(W.length>0){var Y=W.findIndex(function(o1){return o1===o.mostRecentlyFocusedNode});Y>=0&&(n.isKeyForward(o.recentNavEvent)?Y+1<W.length&&(F=W[Y+1],B=!1):Y-1>=0&&(F=W[Y-1],B=!1))}}else o.containerGroups.some(function(o1){return o1.tabbableNodes.some(function(C1){return A6(C1)>0})})||(B=!1);else B=!1;B&&(F=y({target:o.mostRecentlyFocusedNode,isBackward:n.isKeyBackward(o.recentNavEvent)})),m(F||o.mostRecentlyFocusedNode||f())}o.recentNavEvent=void 0},E=function(O){var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;o.recentNavEvent=O;var U=y({event:O,isBackward:D});U&&(Qn(O)&&O.preventDefault(),m(U))},H=function(O){if(FJ(O)&&Jn(n.escapeDeactivates,O)!==!1){O.preventDefault(),l.deactivate();return}(n.isKeyForward(O)||n.isKeyBackward(O))&&E(O,n.isKeyBackward(O))},A=function(O){var D=C0(O);h(D,O)>=0||Jn(n.clickOutsideDeactivates,O)||Jn(n.allowOutsideClick,O)||(O.preventDefault(),O.stopImmediatePropagation())},V=function(){if(!!o.active)return Nx.activateTrap(r,l),o.delayInitialFocusTimer=n.delayInitialFocus?jx(function(){m(f())}):m(f()),s.addEventListener("focusin",z,!0),s.addEventListener("mousedown",_,{capture:!0,passive:!1}),s.addEventListener("touchstart",_,{capture:!0,passive:!1}),s.addEventListener("click",A,{capture:!0,passive:!1}),s.addEventListener("keydown",H,{capture:!0,passive:!1}),l},$=function(){if(!!o.active)return s.removeEventListener("focusin",z,!0),s.removeEventListener("mousedown",_,!0),s.removeEventListener("touchstart",_,!0),s.removeEventListener("click",A,!0),s.removeEventListener("keydown",H,!0),l},T=function(O){var D=O.some(function(U){var F=Array.from(U.removedNodes);return F.some(function(B){return B===o.mostRecentlyFocusedNode})});D&&m(f())},P=typeof window<"u"&&"MutationObserver"in window?new MutationObserver(T):void 0,R=function(){!P||(P.disconnect(),o.active&&!o.paused&&o.containers.map(function(O){P.observe(O,{subtree:!0,childList:!0})}))};return l={get active(){return o.active},get paused(){return o.paused},activate:function(O){if(o.active)return this;var D=c(O,"onActivate"),U=c(O,"onPostActivate"),F=c(O,"checkCanFocusTrap");F||C(),o.active=!0,o.paused=!1,o.nodeFocusedBeforeActivation=s.activeElement,D==null||D();var B=function(){F&&C(),V(),R(),U==null||U()};return F?(F(o.containers.concat()).then(B,B),this):(B(),this)},deactivate:function(O){if(!o.active)return this;var D=Zx({onDeactivate:n.onDeactivate,onPostDeactivate:n.onPostDeactivate,checkCanReturnFocus:n.checkCanReturnFocus},O);clearTimeout(o.delayInitialFocusTimer),o.delayInitialFocusTimer=void 0,$(),o.active=!1,o.paused=!1,R(),Nx.deactivateTrap(r,l);var U=c(D,"onDeactivate"),F=c(D,"onPostDeactivate"),B=c(D,"checkCanReturnFocus"),j=c(D,"returnFocus","returnFocusOnDeactivate");U==null||U();var W=function(){jx(function(){j&&m(g(o.nodeFocusedBeforeActivation)),F==null||F()})};return j&&B?(B(g(o.nodeFocusedBeforeActivation)).then(W,W),this):(W(),this)},pause:function(O){if(o.paused||!o.active)return this;var D=c(O,"onPause"),U=c(O,"onPostPause");return o.paused=!0,D==null||D(),$(),R(),U==null||U(),this},unpause:function(O){if(!o.paused||!o.active)return this;var D=c(O,"onUnpause"),U=c(O,"onPostUnpause");return o.paused=!1,D==null||D(),C(),V(),R(),U==null||U(),this},updateContainerElements:function(O){var D=[].concat(O).filter(Boolean);return o.containers=D.map(function(U){return typeof U=="string"?s.querySelector(U):U}),o.active&&C(),R(),this}},l.updateContainerElements(e),l};const YJ=':host{display:block}:host *{box-sizing:border-box}.lightbox{position:fixed;z-index:var(--s-z-40);background-color:rgba(0, 0, 0, 1);inset:0}.lightbox[aria-hidden="true"]{display:none}@media (min-width: 768px){.lightbox{background-color:rgba(0, 0, 0, 0.8)}}.lightbox:not(.lightbox--closing) .lightbox__body{animation:0.15s lightbox-fade-in}@media (prefers-reduced-motion){.lightbox:not(.lightbox--closing) .lightbox__body{animation:none}}.lightbox--closing{animation:0.15s lightbox-fade-out;animation-fill-mode:forwards}@media (prefers-reduced-motion){.lightbox--closing{animation:none}}.lightbox--hide-menu .lightbox__menu{display:none}.lightbox--hide-toolbar .lightbox__toolbar{display:none}.lightbox__body{position:relative;width:100%;height:100%}.lightbox__header{position:absolute;z-index:1;top:0;right:0;left:0;display:flex;padding:var(--s-space-12) var(--s-space-16);justify-content:space-between;align-items:flex-start;pointer-events:none}.lightbox__toolbar{pointer-events:auto}.lightbox__controls{position:absolute;z-index:1;top:50%;right:0;left:0;display:none;padding-right:var(--s-space-16);padding-left:var(--s-space-16);justify-content:space-between;align-items:flex-start;pointer-events:none}@media (min-width: 768px){.lightbox__controls{display:flex}}.lightbox__close-button,.lightbox__menu-button,.lightbox__previous-slide-button,.lightbox__next-slide-button{display:inline-flex;width:2.5rem;height:2.5rem;justify-content:center;align-items:center;border:none;border-radius:50%;color:var(--s-icon-on-image);background-color:rgba(0, 0, 0, 0.6);cursor:pointer;transition:opacity 0.15s;pointer-events:auto}.lightbox__close-button:disabled,.lightbox__menu-button:disabled,.lightbox__previous-slide-button:disabled,.lightbox__next-slide-button:disabled{pointer-events:none;opacity:0}.lightbox__content{overflow:hidden;width:100%;height:100%;-webkit-user-select:none;-moz-user-select:none;user-select:none}.lightbox__slides{display:flex;width:100%;height:100%}.lightbox__slides ::slotted(*){flex-basis:100%;flex-shrink:0;transition:transform 0.3s}@media (min-width: 768px){.lightbox__slides ::slotted(*){padding:4rem 5rem}}@media (prefers-reduced-motion){.lightbox__slides ::slotted(*){transition:none}}.lightbox__pagination{position:absolute;bottom:var(--s-space-32);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: 768px){.lightbox__pagination{display:none}}.lightbox__meta{display:flex;padding-top:var(--s-space-4);padding-right:var(--s-space-16);padding-bottom:var(--s-space-4);padding-left:var(--s-space-16);align-items:center;gap:var(--s-space-12)}@media (min-width: 768px){.lightbox__meta{max-width:18rem}}.lightbox__thumbnail{display:inline-flex;flex-shrink:0}.lightbox__file-info{display:flex;min-width:0;flex-grow:1;flex-direction:column}@keyframes lightbox-fade-in{from{opacity:0}to{opacity:1}}@keyframes lightbox-fade-out{from{opacity:1}to{opacity:0}}',Ux=class{constructor(i){k(this,i),this.activeSlideChange=K(this,"activeSlideChange",7),this.lightboxClose=K(this,"lightboxClose",7),this.closeButtonLabel="Close modal",this.downloadButtonEnabled=!0,this.downloadButtonLabel="Download",this.menuLabel="Slide options",this.menuTriggerLabel="Open slide menu",this.nextSlideButtonLabel="Next slide",this.previousSlideButtonLabel="Previous slide",this.activeSlideIndex=0,this.closing=!1,this.isOpen=!1,this.dragging=!1,this.onCloseButtonClick=()=>{this.close()},this.onDownloadButtonClick=()=>{var e;(e=this.slides[this.activeSlideIndex])==null||e.download(),this.menu.close()},this.onNextSlideClick=()=>{this.activateSlide(Math.min(this.slides.length-1,this.activeSlideIndex+1))},this.onPreviousSlideClick=()=>{this.activateSlide(Math.max(0,this.activeSlideIndex-1))},this.registerSlides=()=>{this.slides=Array.from(this.el.children).filter(e=>e.tagName==="SWIRL-FILE-VIEWER"),this.setSlideAttributes()},this.onPointerDown=e=>{this.slides.length<=1||(this.dragging=!0,this.dragStartPosition=e instanceof MouseEvent?e.clientX:e.touches[0].clientX,this.slides.forEach(t=>{t.style.transition="none"}))},this.onPointerMove=async e=>{var o,l;if(!this.dragging)return;const t=!(e instanceof MouseEvent)&&e.touches.length>1,s=(l=(o=this.slides[this.activeSlideIndex])==null?void 0:o.shadowRoot)==null?void 0:l.querySelector("swirl-file-viewer-image"),r=Boolean(s)?await s.getZoom()>1:!1;if(t||r)return;e.preventDefault();const n=e instanceof MouseEvent?e.clientX-this.dragStartPosition:e.touches[0].clientX-this.dragStartPosition;this.slides.forEach(c=>{const h=this.activeSlideIndex*c.getBoundingClientRect().width;this.dragDelta=n,c.style.transform=`translate3d(${(-h+this.dragDelta)/16}rem, 0, 0)`})},this.onPointerUp=()=>{if(!this.dragging)return;this.dragging=!1,this.dragStartPosition=void 0;const e=this.dragDelta/this.slides[this.activeSlideIndex].getBoundingClientRect().width;this.dragDelta=0;const t=e>.2,s=e<-.2;this.slides.forEach(r=>{r.style.transition=""}),t?this.onPreviousSlideClick():s?this.onNextSlideClick():this.resetSlidePositions()},this.onBackdropClick=e=>{e.target===this.slidesContainer&&this.close()},this.onContextMenu=e=>{this.downloadButtonEnabled||e.preventDefault()}}componentWillLoad(){this.registerSlides()}componentDidLoad(){this.activateSlide(0)}componentDidRender(){var i;(i=this.focusTrap)==null||i.updateContainerElements(this.modalEl)}disconnectedCallback(){var i,e;(i=this.focusTrap)==null||i.deactivate(),this.unlockBodyScroll(),(e=this.containerObserver)==null||e.disconnect(),this.activateSlideTimeout&&clearTimeout(this.activateSlideTimeout),this.closingTimeout&&clearTimeout(this.closingTimeout)}watchActiveSlideIndex(){this.activeSlideChange.emit(this.activeSlideIndex)}onKeyDown(i){!this.isOpen||(i.code==="Escape"?(i.stopImmediatePropagation(),this.close()):i.code==="ArrowLeft"?this.onPreviousSlideClick():i.code==="ArrowRight"&&this.onNextSlideClick())}async open(){this.isOpen=!0,this.lockBodyScroll(),this.activateSlide(this.activeSlideIndex||0),setTimeout(()=>{var i;this.focusTrap=yh(this.modalEl,{allowOutsideClick:!0,checkCanFocusTrap:e=>{var t;return(t=this.containerObserver)==null||t.disconnect(),new Promise(s=>{const r=e[0];if(r.tabIndex!==-1){s();return}this.containerObserver=new MutationObserver(()=>{r.tabIndex!==-1&&(this.containerObserver.disconnect(),s())}),this.containerObserver.observe(r,{attributes:!0,attributeFilter:["tabindex"]})})},tabbableOptions:{getShadowRoot:e=>e.shadowRoot}}),(i=this.focusTrap)==null||i.activate()})}async close(){var i;this.closing||(this.closing=!0,(i=this.focusTrap)==null||i.deactivate(),this.unlockBodyScroll(),this.closingTimeout&&(clearTimeout(this.closingTimeout),this.closingTimeout=void 0),this.closingTimeout=setTimeout(()=>{this.isOpen=!1,this.resetImageZoom(),this.stopAllMediaPlayers(),this.closing=!1,this.lightboxClose.emit()},150))}async activateSlide(i){var e,t;(t=(e=this.menu)==null?void 0:e.close)==null||t.call(e),this.dragging=!1,this.activeSlideIndex=i,this.slides.forEach((s,r)=>{r===this.activeSlideIndex?(s.removeAttribute("aria-hidden"),s.setAttribute("active","true")):r===this.activeSlideIndex-1||r===this.activeSlideIndex+1?(s.setAttribute("aria-hidden","true"),s.setAttribute("active","true")):s.setAttribute("aria-hidden","true"),s.style.transform=`translate3d(-${100*this.activeSlideIndex}%, 0, 0)`}),this.activateSlideTimeout&&(clearTimeout(this.activateSlideTimeout),this.activateSlideTimeout=void 0),this.activateSlideTimeout=setTimeout(()=>{this.slides.forEach((s,r)=>{r!==this.activeSlideIndex&&r!==this.activeSlideIndex-1&&r!==this.activeSlideIndex+1&&s.setAttribute("active","false")})},300),this.stopAllMediaPlayers(),this.resetImageZoom()}setSlideAttributes(){this.slides.forEach(i=>{i.setAttribute("active","false"),i.setAttribute("aria-label",i.file),i.setAttribute("aria-roledescription","slide"),i.setAttribute("role","group"),i.addEventListener("dragstart",e=>e.preventDefault())})}resetSlidePositions(){this.slides.forEach(i=>{i.style.transform=`translate3d(-${100*this.activeSlideIndex}%, 0, 0)`})}getCurrentFileName(){var e;const i=this.slides[this.activeSlideIndex];return(i==null?void 0:i.fileName)||((e=i==null?void 0:i.file)==null?void 0:e.split("/").pop())}getCurrentFileType(){var i;return(i=this.slides[this.activeSlideIndex])==null?void 0:i.type}getCurrentThumbnailUrl(){var i;return(i=this.slides[this.activeSlideIndex])==null?void 0:i.thumbnailUrl}lockBodyScroll(){Xn(this.el)}unlockBodyScroll(){qn(this.el)}getMediaPlayers(){return Ie(this.el,"video")}stopAllMediaPlayers(){this.getMediaPlayers().forEach(i=>i.pause())}resetImageZoom(){this.slides.forEach(i=>{var t;const e=(t=i==null?void 0:i.shadowRoot)==null?void 0:t.querySelector("swirl-file-viewer-image");Boolean(e)&&e.resetZoom()})}render(){const i=this.slides.length>1,e=this.getCurrentFileName(),t=this.getCurrentFileType(),s=this.getCurrentThumbnailUrl(),r=Boolean(this.el.querySelector("[slot='menu-items']"))||this.downloadButtonEnabled,n=Boolean(this.el.querySelector("[slot='toolbar']")),o=L("lightbox",{"lightbox--closing":this.closing,"lightbox--hide-menu":!r,"lightbox--hide-toolbar":!n});return a(q,{key:"7ec2ff7ae859f6b2b763dec791ae0258d96ac1b6"},a("section",{key:"7e240f9db8922e59d49eb1a062e966d8f3c5c035","aria-hidden":String(!this.isOpen),"aria-label":this.label,"aria-modal":"true",class:o,id:"lightbox",onMouseDown:this.onPointerDown,onMouseMove:this.onPointerMove,onMouseOut:this.onPointerUp,onMouseUp:this.onPointerUp,onTouchEnd:this.onPointerUp,onTouchMove:this.onPointerMove,onTouchStart:this.onPointerDown,ref:l=>this.modalEl=l,role:"dialog",tabIndex:this.isOpen?0:-1},a("div",{key:"9343b363ea541c0b686c6bb1ca63c92a64e5469d",class:"lightbox__body",role:"document"},a("header",{key:"c070d7de54889c343c7f97129b888f6c369828e9",class:"lightbox__header"},a("button",{key:"11698cda3f2a92e7716d10da20ee22790fb29a49","aria-label":this.closeButtonLabel,class:"lightbox__close-button",onClick:this.onCloseButtonClick},a("swirl-icon-close",{key:"725e245b862c679400d5b0b7d78e586d2bf7b48f"})),a("div",{key:"b475e286dc610759598498e10c05ee4ff76d2011",class:"lightbox__toolbar"},a("slot",{key:"88a44ec7c0527cf5eb496c53804323969b1527cc",name:"toolbar"})),!this.hideMenu&&a("swirl-popover-trigger",{key:"ecb272423b407c1c4ee0d3999599dbc60e154d86",swirlPopover:this.menu},a("button",{key:"972284d42ba6690257534d37d97325e84e23e5b8","aria-label":this.menuTriggerLabel,class:"lightbox__menu-button"},a("swirl-icon-more-vertikal",{key:"4ab88103db1cd859a330b840bf58860466be7be2"})))),a("div",{key:"b4f62a468b4f50633abca8d650216be04510fa09","aria-roledescription":"carousel",class:"lightbox__content",role:"group"},a("div",{key:"d500d39978fa73fe96fa78d291edc9c76872546c","aria-atomic":"false","aria-live":"polite",class:"lightbox__slides",onClick:this.onBackdropClick,onContextMenu:this.onContextMenu,ref:l=>this.slidesContainer=l},a("slot",{key:"5667ede916bb092ee674c25d2619fba9f655a292",onSlotchange:this.registerSlides}))),a("div",{key:"7dc659f8dbd86c268ff8e725f792246eac7a39a3",class:"lightbox__controls"},a("button",{key:"43304062d2af699d390671ade5fbc72d53b24c48","aria-label":this.previousSlideButtonLabel,class:"lightbox__previous-slide-button",disabled:this.activeSlideIndex===0,onClick:this.onPreviousSlideClick},a("swirl-icon-arrow-left",{key:"86b1dcd59d574cad973f038e7ce43ddeaa9ac987"})),a("button",{key:"1d2e510954c9d8854b9f64710bbbb163e791078b","aria-label":this.nextSlideButtonLabel,class:"lightbox__next-slide-button",disabled:this.activeSlideIndex===this.slides.length-1,onClick:this.onNextSlideClick},a("swirl-icon-arrow-right",{key:"4c5e7ddece5243c0df2414757f2413becc1fc2ea"}))),i&&a("span",{key:"ed04a465d67c1fee34f6b7b8d2dd1a7048e9b1d5",class:"lightbox__pagination"},a("span",{key:"93ab9f05002d13b3fea5bd4e59cae7e021dc4f17","aria-current":"page"},this.activeSlideIndex+1)," /"," ",this.slides.length)),!this.hideMenu&&a("swirl-popover",{key:"971ab4e9096b6e3f1a0974c199a459c25a2ea648",animation:"scale-in-y",disableScrollLock:!0,id:"slide-menu",label:this.menuLabel,placement:"bottom-end",ref:l=>this.menu=l},a("swirl-stack",{key:"fbdbeeead8e738d81b7d877ad60dba10eccd1b4e"},a("div",{key:"2d8226853d74a16fd871d2958f9510f81c6fb031",class:"lightbox__meta"},s&&a("div",{key:"03b456243e7425812d6a75ffad2270b4a17eeb3a",class:"lightbox__thumbnail"},a("swirl-thumbnail",{key:"30704b18fc62de5ff17f7093363aa772d0101227",alt:"",src:s})),a("div",{key:"fa5398fe7a00d13c7b6c282dc6ccbea7d5e1edec",class:"lightbox__file-info"},a("swirl-text",{key:"9e31e8adf6104c82bb32f9aa659b3574dea9c656",truncate:!0,weight:"semibold"},e),a("swirl-text",{key:"a0d9cdda0f9469a672348f43249174b5226457bb",color:"subdued",size:"sm",truncate:!0},t))),r&&a("swirl-separator",{key:"1fa3ed14a300634b88997273ec7f543411fefe48"}),a("swirl-action-list",{key:"8860c08573ede96a23dcd4c60922ec6f0eb5d5bc"},this.downloadButtonEnabled&&a("swirl-action-list-item",{key:"8481a03ab52125ef5b08e400fe63e88607452c52",icon:"<swirl-icon-download></swirl-icon-download>",label:this.downloadButtonLabel,onClick:this.onDownloadButtonClick}),a("slot",{key:"414082b16e5c50cfc4667acc6f948eef787c93fd",name:"menu-items"}))))))}get el(){return h1(this)}static get watchers(){return{activeSlideIndex:["watchActiveSlideIndex"]}}};Ux.style=YJ;const Wx=Object.freeze(Object.defineProperty({__proto__:null,swirl_lightbox:Ux},Symbol.toStringTag,{value:"Module"})),KJ=":host{display:inline-flex}:host *{box-sizing:border-box}.link{color:var(--s-interactive-primary-default);line-height:var(--s-line-height-base);text-underline-offset:var(--s-space-4)}.link:hover{color:var(--s-interactive-primary-hovered)}.link:active{color:var(--s-interactive-primary-pressed)}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.link{font-size:var(--s-font-size-sm);line-height:var(--s-line-height-sm)}}.link--color-subdued{color:var(--s-interactive-neutral-default);font-weight:var(--s-font-weight-medium);text-decoration:none}.link--color-subdued:hover{color:var(--s-interactive-neutral-hovered)}.link--color-subdued:active{color:var(--s-interactive-neutral-pressed)}",Gx=class{constructor(i){k(this,i),this.color="default"}render(){const i=L("link",`link--color-${this.color}`);return a(q,{key:"8967699e1ee450cca8c81810e13d9e121efe5645"},a("a",{key:"af6f382f6549157acd996d45457b475802346d0b",class:i,href:this.href,part:"link",target:this.target},this.label))}};Gx.style=KJ;const Yx=Object.freeze(Object.defineProperty({__proto__:null,swirl_link:Gx},Symbol.toStringTag,{value:"Module"})),XJ=':host{display:block}:host *{box-sizing:border-box}.swirl-list{line-height:var(--s-line-height-base)}.swirl-list ul,.swirl-list ol{margin:0;padding:0;list-style-position:outside;list-style-type:none}.swirl-list ul li{padding-left:1.5rem}.swirl-list ul li:before{display:inline-block;width:1.5rem;margin-left:-1.5rem;text-align:center;content:"\u2022"}.swirl-list ol{counter-reset:item}.swirl-list ol ol{counter-reset:letter}.swirl-list ol ol li:before{content:counter(letter, lower-alpha) ".";counter-increment:letter}.swirl-list ol li{padding-left:1.5rem}.swirl-list ol li:before{display:inline-block;min-width:1.5rem;margin-left:-1.5rem;padding-right:var(--s-space-8);text-align:right;content:counter(item) ".";counter-increment:item;font-variant-numeric:tabular-nums}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.swirl-list{font-size:var(--s-font-size-sm);line-height:var(--s-line-height-sm)}}',Kx=class{constructor(i){k(this,i)}componentDidRender(){Array.from(this.containerEl.children).some(e=>!["UL","OL"].includes(e.tagName))&&console.warn("[SwirlList] Only ul and ol elements are allowed as direct children of <swirl-list />.")}render(){return a(q,{key:"5b1d3e9cb9cdbc98dac11d41c67b1b1b51622fc3"},a("div",{key:"f1490f8d2b6eb6928d06abfaa7164de01eac96a2",class:"swirl-list",ref:i=>this.containerEl=i},a("slot",{key:"a75a41aacb1bc175d877cf3f943ad1889931cc9c"})))}};Kx.style=XJ;const Xx=Object.freeze(Object.defineProperty({__proto__:null,swirl_list:Kx},Symbol.toStringTag,{value:"Module"})),qJ=":host{display:block}:host *{box-sizing:border-box}.menu{width:100%;--swirl-ghost-button-background-default:var(--s-surface-overlay-default);--swirl-ghost-button-background-hovered:var(--s-surface-overlay-hovered);--swirl-ghost-button-background-pressed:var(--s-surface-overlay-pressed)}.menu--mobile.menu--root{position:relative}.menu--mobile.menu--root .menu__menu{top:3.5rem;transition:left 0.2s}.menu--mobile.menu--active .menu__menu{display:block}.menu--mobile .menu__menu{position:absolute;top:0;left:0;display:none;width:100%}:not(.menu--mobile).menu--root{position:relative}:not(.menu--mobile).menu--root .menu__menu{position:relative;padding-top:0;padding-bottom:0}:not(.menu--mobile) :not(.menu--root) .menu__menu{z-index:1;max-width:22.5rem;border-radius:var(--s-border-radius-base);box-shadow:var(--s-shadow-level-1);padding:var(--s-space-4)}:not(.menu--mobile).menu--active .menu__menu{display:block}:not(.menu--mobile) .menu__menu{position:fixed;display:none}.menu__mobile-header{display:flex;height:3.5rem;padding-right:var(--s-space-16);padding-left:var(--s-space-16);justify-content:space-between;align-items:center;border-bottom:var(--s-border-width-default) solid var(--s-border-default);gap:var(--s-space-8)}.menu__mobile-header>*{display:inline-flex;flex-shrink:0}.menu__title{min-width:0;flex-grow:1;flex-shrink:1}.menu__title swirl-heading{min-width:0}.menu__done-button{margin-right:calc(-1 * var(--s-space-8))}.menu__menu{background-color:var(--s-surface-overlay-default)}",qx=class{constructor(i){k(this,i),this.done=K(this,"done",7),this.valueChange=K(this,"valueChange",7),this.active=!0,this.level=0,this.mobileBackButtonLabel="Back",this.mobileCloseMenuButtonLabel="Close menu",this.mobileDoneButtonLabel="Done",this.variant="action",this.activeLevel=0,this.mobileMediaQuery=window.matchMedia("(min-width: 768px)"),this.mediaQueryHandler=()=>{this.updateMobileState()},this.resetMenu=()=>{this.items.forEach(e=>{e.tabIndex=-1}),!(this.level>0)&&setTimeout(()=>{this.activeLevel=0,Ie(this.el,"swirl-menu").forEach(t=>{t.active=!1,t.parentElement.expanded=!1})},this.mobile?200:60)},this.closeMenu=()=>{this.disableAutoUpdate&&this.disableAutoUpdate(),this.swirlPopover.close(),this.resetMenu()},this.reposition=async()=>{if(this.mobile||this.level===0){this.position=void 0;return}const e=this.el.parentElement;!Boolean(e)||!Boolean(this.menuContainer)||requestAnimationFrame(async()=>{this.position=await V9(e,this.menuContainer,{placement:"right-start",strategy:"fixed",middleware:[Rn({mainAxis:-10,crossAxis:0}),I9(),Uc()]})})},this.onKeyDown=e=>{if(e.code==="ArrowDown")e.preventDefault(),e.stopPropagation(),this.focusNextItem();else if(e.code==="ArrowUp")e.preventDefault(),e.stopPropagation(),this.focusPreviousItem();else if(e.code==="ArrowLeft")e.preventDefault(),e.stopPropagation(),this.rootMenu.goBack();else if(e.code==="ArrowRight"){e.preventDefault();const t=Bt(this.items[this.getActiveItemIndex()],"swirl-menu-item");if(!Boolean(t))return;this.rootMenu.activateMenuItem(t)}},this.onClose=()=>{this.closeMenu()},this.onDone=()=>{this.closeMenu(),this.done.emit()},this.onGoBack=()=>{this.rootMenu.goBack()}}componentWillLoad(){this.updateMobileState(),this.updateLevel(),this.observeSlotChanges()}componentDidLoad(){this.mobileMediaQuery.addEventListener("change",this.mediaQueryHandler),this.parentMenu=Bt(this.el.parentElement,"swirl-menu"),this.swirlPopover=Bt(this.el,"swirl-popover"),this.rootMenu=k6(this.el,"swirl-menu").pop(),Boolean(this.parentMenu)&&queueMicrotask(()=>{this.active=!1}),this.swirlPopover.addEventListener("popoverClose",this.resetMenu),this.updateItems()}disconnectedCallback(){var i,e,t,s;(i=this.swirlPopover)==null||i.removeEventListener("popoverClose",this.resetMenu),(t=(e=this.mobileMediaQuery).removeEventListener)==null||t.call(e,"change",this.mediaQueryHandler),(s=this.observer)==null||s.disconnect()}watchActive(){this.reposition(),this.disableAutoUpdate&&this.disableAutoUpdate(),this.disableAutoUpdate=H9(this.el.parentElement,this.menuContainer,this.reposition)}watchValue(){this.updateActiveItem()}async activateMenuItem(i){if(Boolean(this.parentMenu))return;const e=await i.getParentMenu();Ie(this.el,"swirl-menu").filter(r=>r.level>=e.level&&r!==e).forEach(r=>{r.active=!1,r.parentElement.expanded=!1});const s=await i.getSubMenu();!Boolean(s)||(i.expanded=!0,s.active=!0,this.activeLevel=s.level,setTimeout(()=>{s.focusFirstItem()},this.mobile?200:60))}async close(){this.closeMenu()}async goBack(){if(Boolean(this.parentMenu)||this.activeLevel===0)return;const e=(Ie(this.el,"swirl-menu").find(r=>r.level===this.activeLevel&&r.active)||this.rootMenu).parentElement;e.expanded=!1,this.activeLevel=Math.max(this.activeLevel-1,0),Ie(this.el,"swirl-menu").filter(r=>r.level>this.activeLevel).forEach(r=>{r.active=!1}),(Ie(this.el,"swirl-menu").find(r=>r.level===this.activeLevel&&r.active)||this.rootMenu).focusItemAtIndex(Array.from(e.parentElement.children).indexOf(e))}async focusFirstItem(){this.focusItem(this.items[0])}async focusItemAtIndex(i){this.focusItem(this.items[i])}async updateSelection(i){this.valueChange.emit(i.value)}async updateActiveItem(){Ie(this.el,"swirl-menu-item").filter(e=>Bt(e,"swirl-menu")===this.el).forEach(e=>{e.updateValue()}),this.parentMenu&&this.parentMenu.variant==="action"&&this.parentMenu.updateActiveItem()}observeSlotChanges(){this.observer=new MutationObserver(()=>{this.updateItems()}),this.observer.observe(this.el,{childList:!0})}updateMobileState(){const i=ve();i!==this.mobile&&(this.mobile=i)}updateItems(){this.items=[...Ie(this.el,'[role="menuitem"]'),...Ie(this.el,'[role="menuitemradio"]')].filter(i=>Bt(i,"swirl-menu")===this.el)}updateLevel(){const i=k6(this.el.parentNode,"swirl-menu");this.level=i.length}focusItem(i){[...Ie(this.rootMenu,'[role="menuitem"]'),...Ie(this.rootMenu,'[role="menuitemradio"]')].forEach(t=>{t.tabIndex=-1}),Boolean(i)&&(i.tabIndex=0,i.focus())}focusNextItem(){const e=(this.getActiveItemIndex()+1)%this.items.length,t=this.items[e];this.focusItem(t)}focusPreviousItem(){const i=this.getActiveItemIndex(),e=i===0?this.items.length-1:i-1,t=this.items[e];this.focusItem(t)}getActiveItemIndex(){const i=wr();return this.items.findIndex(e=>e===i||e===(i==null?void 0:i.querySelector('[role="menuitem"]'))||e===(i==null?void 0:i.querySelector('[role="menuitemradio"]')))}render(){var n,o;const i=!Boolean(this.parentMenu),e=i&&this.mobile?void 0:this.label,t=i&&this.mobile?"menu-title":void 0,s=i?"menubar":"menu",r=L("menu",`menu--level-${this.level}`,{"menu--active":this.active,"menu--mobile":this.mobile,"menu--root":i});return a(q,{key:"14d513570280eb415edc20e3180babe4e06edb84"},a("div",{key:"95e6ea0c4ef6c860be438e81e136789e0da1aaac",class:r},this.mobile&&i&&a("div",{key:"d3994bd3b4052114473e565f86de1bc61e49d679",class:"menu__mobile-header"},this.activeLevel===0&&a("swirl-button",{key:"f247067e415e2b987990cc824b30b50c99df839d",hideLabel:!0,icon:"<swirl-icon-close></swirl-icon-close>",label:this.mobileCloseMenuButtonLabel,onClick:this.onClose,variant:"plain"}),this.activeLevel>0&&a("swirl-button",{key:"358bc15f34a0731c51effb4f5ace0032a73bc262",hideLabel:!0,icon:"<swirl-icon-chevron-left></swirl-icon-chevron-left>",label:this.mobileBackButtonLabel,onClick:this.onGoBack,variant:"plain"}),a("span",{key:"426f977b65536d7a61acfa857eae758e5e97cf3e",class:"menu__title",id:"menu-title"},a("swirl-heading",{key:"06af6cab0c2c130d6c88500bb99d5668fffd40ec",align:"center",as:"span",level:4,text:this.label,truncate:!0})),a("swirl-button",{key:"ff4bcc9e9bb9c243bb5927bd3a8772acc2c3dfd5",class:"menu__done-button",intent:"primary",label:this.mobileDoneButtonLabel,onClick:this.onDone})),a("div",{key:"30f1216bd6ccc0224e832f2be0d248ca9cfdf6ab","aria-label":e,"aria-labelledby":t,"aria-orientation":"vertical",class:"menu__menu",onKeyDown:this.onKeyDown,ref:l=>this.menuContainer=l,role:s,style:!this.mobile&&this.level>0?{top:Boolean(this.position)?`${(n=this.position)==null?void 0:n.y}px`:"",left:Boolean(this.position)?`${(o=this.position)==null?void 0:o.x}px`:""}:this.mobile?{left:i?`calc(-100% * ${this.activeLevel})`:"100%"}:void 0},a("slot",{key:"b5fe00c7591b29cb9b35ed3ec9e0e6588afa972d"}))))}get el(){return h1(this)}static get watchers(){return{active:["watchActive"],value:["watchValue"]}}};qx.style=qJ;const Qx=Object.freeze(Object.defineProperty({__proto__:null,swirl_menu:qx},Symbol.toStringTag,{value:"Module"})),QJ=":host{display:block}:host *{box-sizing:border-box}.menu-item--expanded ::part(action-list-item){background-color:var(--s-surface-overlay-hovered)}",Jx=class{constructor(i){k(this,i),this.intent="default",this.hasAvatar=!1,this.onSlotChange=()=>{this.subMenu=this.el.querySelector("swirl-menu"),this.updateActionListItemProps()},this.onActionListItemClick=()=>{this.actionListItem.disabled||this.rootMenu.activateMenuItem(this.el)},this.onOptionListItemClick=()=>{this.optionListItem.disabled||this.parentMenu.updateSelection(this.optionListItem)},this.onOptionListItemKeyDown=e=>{if(e.code==="Space")e.preventDefault();else if(e.code==="Enter"){if(this.optionListItem.disabled)return;e.preventDefault(),this.parentMenu.updateSelection(this.optionListItem)}},this.onOptionListItemKeyUp=e=>{if(e.code==="Space"){if(this.optionListItem.disabled)return;e.preventDefault(),this.parentMenu.updateSelection(this.optionListItem)}}}componentWillLoad(){this.parentMenu=Bt(this.el,"swirl-menu"),this.rootMenu=k6(this.el,"swirl-menu").pop(),this.subMenu=this.el.querySelector("swirl-menu"),this.updateAvatarState()}watchExpanded(){this.updateActionListItemProps()}async getSubMenu(){return this.subMenu}async updateValue(){Z3(this)}async getParentMenu(){return this.parentMenu}updateActionListItemProps(){!Boolean(this.actionListItem)||(this.actionListItem.swirlAriaExpanded=this.expanded?"true":void 0,this.actionListItem.swirlAriaHaspopup=Boolean(this.subMenu)?"true":void 0,this.actionListItem.suffix=Boolean(this.subMenu)?'<swirl-icon-chevron-right size="16"></swirl-icon-chevron-right>':void 0)}updateAvatarState(){const i=this.el.querySelector('[slot="avatar"]'),e=Boolean(i);e!==this.hasAvatar&&(this.hasAvatar=e)}renderActionListItem(){var e,t,s;const i=Boolean((e=this.subMenu)==null?void 0:e.value)?(s=Array.from(((t=this.subMenu)==null?void 0:t.querySelectorAll("swirl-menu-item"))||[]).find(r=>{var n;return r.value===((n=this.subMenu)==null?void 0:n.value)}))==null?void 0:s.label:void 0;return a("swirl-action-list-item",{badge:i,description:this.description,disabled:this.disabled,icon:this.icon,iconBadge:this.iconBadge,intent:this.intent,label:this.label,onClick:this.onActionListItemClick,ref:r=>this.actionListItem=r,suffix:this.suffix},this.hasAvatar&&a("slot",{name:"avatar",slot:"avatar"}))}renderOptionListItem(){var e;const i=((e=this.parentMenu)==null?void 0:e.value)===this.value;return a("swirl-option-list-item",{disabled:this.disabled,icon:this.icon,iconBadge:this.iconBadge,label:this.label,onClick:this.onOptionListItemClick,onKeyDown:this.onOptionListItemKeyDown,onKeyUp:this.onOptionListItemKeyUp,ref:t=>this.optionListItem=t,selected:i,swirlAriaRole:"menuitemradio",value:this.value},this.hasAvatar&&a("slot",{name:"avatar",slot:"avatar"}))}render(){var e;const i=L("menu-item",{"menu-item--expanded":this.expanded});return a(q,{key:"9584ff13ba291007f473d52b2554507e7d5e7a2c"},a("div",{key:"3ce1e14dd8bb846b4cb7250b205b16d4ce1da32d",class:i},((e=this.parentMenu)==null?void 0:e.variant)==="selection"?this.renderOptionListItem():this.renderActionListItem(),a("slot",{key:"56205fcbad57558c83749b9062ab0c51a9ffd9c6",onSlotchange:this.onSlotChange})))}get el(){return h1(this)}static get watchers(){return{expanded:["watchExpanded"]}}};Jx.style=QJ;const ek=Object.freeze(Object.defineProperty({__proto__:null,swirl_menu_item:Jx},Symbol.toStringTag,{value:"Module"})),JJ=`:host{display:block}:host *{box-sizing:border-box}.modal{--swirl-ghost-button-background-default:var(--s-surface-overlay-default);--swirl-ghost-button-background-hovered:var(--s-surface-overlay-hovered);--swirl-ghost-button-background-pressed:var(--s-surface-overlay-pressed);--swirl-resource-list-item-background-default:var(
80
+ */function Rx(i,e){var t=Object.keys(i);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(i);e&&(s=s.filter(function(r){return Object.getOwnPropertyDescriptor(i,r).enumerable})),t.push.apply(t,s)}return t}function Zx(i){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Rx(Object(t),!0).forEach(function(s){RJ(i,s,t[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(t)):Rx(Object(t)).forEach(function(s){Object.defineProperty(i,s,Object.getOwnPropertyDescriptor(t,s))})}return i}function RJ(i,e,t){return e=NJ(e),e in i?Object.defineProperty(i,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):i[e]=t,i}function ZJ(i,e){if(typeof i!="object"||i===null)return i;var t=i[Symbol.toPrimitive];if(t!==void 0){var s=t.call(i,e);if(typeof s!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(i)}function NJ(i){var e=ZJ(i,"string");return typeof e=="symbol"?e:String(e)}var Nx={activateTrap:function(e,t){if(e.length>0){var s=e[e.length-1];s!==t&&s.pause()}var r=e.indexOf(t);r===-1||e.splice(r,1),e.push(t)},deactivateTrap:function(e,t){var s=e.indexOf(t);s!==-1&&e.splice(s,1),e.length>0&&e[e.length-1].unpause()}},jJ=function(e){return e.tagName&&e.tagName.toLowerCase()==="input"&&typeof e.select=="function"},FJ=function(e){return(e==null?void 0:e.key)==="Escape"||(e==null?void 0:e.key)==="Esc"||(e==null?void 0:e.keyCode)===27},Qn=function(e){return(e==null?void 0:e.key)==="Tab"||(e==null?void 0:e.keyCode)===9},UJ=function(e){return Qn(e)&&!e.shiftKey},WJ=function(e){return Qn(e)&&e.shiftKey},jx=function(e){return setTimeout(e,0)},Fx=function(e,t){var s=-1;return e.every(function(r,n){return t(r)?(s=n,!1):!0}),s},Jn=function(e){for(var t=arguments.length,s=new Array(t>1?t-1:0),r=1;r<t;r++)s[r-1]=arguments[r];return typeof e=="function"?e.apply(void 0,s):e},C0=function(e){return e.target.shadowRoot&&typeof e.composedPath=="function"?e.composedPath()[0]:e.target},GJ=[],yh=function(e,t){var s=(t==null?void 0:t.document)||document,r=(t==null?void 0:t.trapStack)||GJ,n=Zx({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:UJ,isKeyBackward:WJ},t),o={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},l,c=function(O,D,U){return O&&O[D]!==void 0?O[D]:n[U||D]},h=function(O,D){var U=typeof(D==null?void 0:D.composedPath)=="function"?D.composedPath():void 0;return o.containerGroups.findIndex(function(F){var B=F.container,j=F.tabbableNodes;return B.contains(O)||(U==null?void 0:U.includes(B))||j.find(function(W){return W===O})})},u=function(O){var D=n[O];if(typeof D=="function"){for(var U=arguments.length,F=new Array(U>1?U-1:0),B=1;B<U;B++)F[B-1]=arguments[B];D=D.apply(void 0,F)}if(D===!0&&(D=void 0),!D){if(D===void 0||D===!1)return D;throw new Error("`".concat(O,"` was specified but was not a node, or did not return a node"))}var j=D;if(typeof D=="string"&&(j=s.querySelector(D),!j))throw new Error("`".concat(O,"` as selector refers to no known node"));return j},f=function(){var O=u("initialFocus");if(O===!1)return!1;if(O===void 0||!vh(O,n.tabbableOptions))if(h(s.activeElement)>=0)O=s.activeElement;else{var D=o.tabbableGroups[0],U=D&&D.firstTabbableNode;O=U||u("fallbackFocus")}if(!O)throw new Error("Your focus-trap needs to have at least one focusable element");return O},C=function(){if(o.containerGroups=o.containers.map(function(O){var D=OJ(O,n.tabbableOptions),U=BJ(O,n.tabbableOptions),F=D.length>0?D[0]:void 0,B=D.length>0?D[D.length-1]:void 0,j=U.find(function(o1){return kr(o1)}),W=U.slice().reverse().find(function(o1){return kr(o1)}),Y=!!D.find(function(o1){return A6(o1)>0});return{container:O,tabbableNodes:D,focusableNodes:U,posTabIndexesFound:Y,firstTabbableNode:F,lastTabbableNode:B,firstDomTabbableNode:j,lastDomTabbableNode:W,nextTabbableNode:function(C1){var Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,r1=D.indexOf(C1);return r1<0?Q?U.slice(U.indexOf(C1)+1).find(function(m1){return kr(m1)}):U.slice(0,U.indexOf(C1)).reverse().find(function(m1){return kr(m1)}):D[r1+(Q?1:-1)]}}}),o.tabbableGroups=o.containerGroups.filter(function(O){return O.tabbableNodes.length>0}),o.tabbableGroups.length<=0&&!u("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(o.containerGroups.find(function(O){return O.posTabIndexesFound})&&o.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},p=function Z(O){var D=O.activeElement;if(!!D)return D.shadowRoot&&D.shadowRoot.activeElement!==null?Z(D.shadowRoot):D},m=function Z(O){if(O!==!1&&O!==p(document)){if(!O||!O.focus){Z(f());return}O.focus({preventScroll:!!n.preventScroll}),o.mostRecentlyFocusedNode=O,jJ(O)&&O.select()}},g=function(O){var D=u("setReturnFocus",O);return D||(D===!1?!1:O)},y=function(O){var D=O.target,U=O.event,F=O.isBackward,B=F===void 0?!1:F;D=D||C0(U),C();var j=null;if(o.tabbableGroups.length>0){var W=h(D,U),Y=W>=0?o.containerGroups[W]:void 0;if(W<0)B?j=o.tabbableGroups[o.tabbableGroups.length-1].lastTabbableNode:j=o.tabbableGroups[0].firstTabbableNode;else if(B){var o1=Fx(o.tabbableGroups,function(J){var G=J.firstTabbableNode;return D===G});if(o1<0&&(Y.container===D||vh(D,n.tabbableOptions)&&!kr(D,n.tabbableOptions)&&!Y.nextTabbableNode(D,!1))&&(o1=W),o1>=0){var C1=o1===0?o.tabbableGroups.length-1:o1-1,Q=o.tabbableGroups[C1];j=A6(D)>=0?Q.lastTabbableNode:Q.lastDomTabbableNode}else Qn(U)||(j=Y.nextTabbableNode(D,!1))}else{var r1=Fx(o.tabbableGroups,function(J){var G=J.lastTabbableNode;return D===G});if(r1<0&&(Y.container===D||vh(D,n.tabbableOptions)&&!kr(D,n.tabbableOptions)&&!Y.nextTabbableNode(D))&&(r1=W),r1>=0){var m1=r1===o.tabbableGroups.length-1?0:r1+1,l1=o.tabbableGroups[m1];j=A6(D)>=0?l1.firstTabbableNode:l1.firstDomTabbableNode}else Qn(U)||(j=Y.nextTabbableNode(D))}}else j=u("fallbackFocus");return j},_=function(O){var D=C0(O);if(!(h(D,O)>=0)){if(Jn(n.clickOutsideDeactivates,O)){l.deactivate({returnFocus:n.returnFocusOnDeactivate});return}Jn(n.allowOutsideClick,O)||O.preventDefault()}},z=function(O){var D=C0(O),U=h(D,O)>=0;if(U||D instanceof Document)U&&(o.mostRecentlyFocusedNode=D);else{O.stopImmediatePropagation();var F,B=!0;if(o.mostRecentlyFocusedNode)if(A6(o.mostRecentlyFocusedNode)>0){var j=h(o.mostRecentlyFocusedNode),W=o.containerGroups[j].tabbableNodes;if(W.length>0){var Y=W.findIndex(function(o1){return o1===o.mostRecentlyFocusedNode});Y>=0&&(n.isKeyForward(o.recentNavEvent)?Y+1<W.length&&(F=W[Y+1],B=!1):Y-1>=0&&(F=W[Y-1],B=!1))}}else o.containerGroups.some(function(o1){return o1.tabbableNodes.some(function(C1){return A6(C1)>0})})||(B=!1);else B=!1;B&&(F=y({target:o.mostRecentlyFocusedNode,isBackward:n.isKeyBackward(o.recentNavEvent)})),m(F||o.mostRecentlyFocusedNode||f())}o.recentNavEvent=void 0},E=function(O){var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;o.recentNavEvent=O;var U=y({event:O,isBackward:D});U&&(Qn(O)&&O.preventDefault(),m(U))},H=function(O){if(FJ(O)&&Jn(n.escapeDeactivates,O)!==!1){O.preventDefault(),l.deactivate();return}(n.isKeyForward(O)||n.isKeyBackward(O))&&E(O,n.isKeyBackward(O))},A=function(O){var D=C0(O);h(D,O)>=0||Jn(n.clickOutsideDeactivates,O)||Jn(n.allowOutsideClick,O)||(O.preventDefault(),O.stopImmediatePropagation())},V=function(){if(!!o.active)return Nx.activateTrap(r,l),o.delayInitialFocusTimer=n.delayInitialFocus?jx(function(){m(f())}):m(f()),s.addEventListener("focusin",z,!0),s.addEventListener("mousedown",_,{capture:!0,passive:!1}),s.addEventListener("touchstart",_,{capture:!0,passive:!1}),s.addEventListener("click",A,{capture:!0,passive:!1}),s.addEventListener("keydown",H,{capture:!0,passive:!1}),l},$=function(){if(!!o.active)return s.removeEventListener("focusin",z,!0),s.removeEventListener("mousedown",_,!0),s.removeEventListener("touchstart",_,!0),s.removeEventListener("click",A,!0),s.removeEventListener("keydown",H,!0),l},T=function(O){var D=O.some(function(U){var F=Array.from(U.removedNodes);return F.some(function(B){return B===o.mostRecentlyFocusedNode})});D&&m(f())},P=typeof window<"u"&&"MutationObserver"in window?new MutationObserver(T):void 0,R=function(){!P||(P.disconnect(),o.active&&!o.paused&&o.containers.map(function(O){P.observe(O,{subtree:!0,childList:!0})}))};return l={get active(){return o.active},get paused(){return o.paused},activate:function(O){if(o.active)return this;var D=c(O,"onActivate"),U=c(O,"onPostActivate"),F=c(O,"checkCanFocusTrap");F||C(),o.active=!0,o.paused=!1,o.nodeFocusedBeforeActivation=s.activeElement,D==null||D();var B=function(){F&&C(),V(),R(),U==null||U()};return F?(F(o.containers.concat()).then(B,B),this):(B(),this)},deactivate:function(O){if(!o.active)return this;var D=Zx({onDeactivate:n.onDeactivate,onPostDeactivate:n.onPostDeactivate,checkCanReturnFocus:n.checkCanReturnFocus},O);clearTimeout(o.delayInitialFocusTimer),o.delayInitialFocusTimer=void 0,$(),o.active=!1,o.paused=!1,R(),Nx.deactivateTrap(r,l);var U=c(D,"onDeactivate"),F=c(D,"onPostDeactivate"),B=c(D,"checkCanReturnFocus"),j=c(D,"returnFocus","returnFocusOnDeactivate");U==null||U();var W=function(){jx(function(){j&&m(g(o.nodeFocusedBeforeActivation)),F==null||F()})};return j&&B?(B(g(o.nodeFocusedBeforeActivation)).then(W,W),this):(W(),this)},pause:function(O){if(o.paused||!o.active)return this;var D=c(O,"onPause"),U=c(O,"onPostPause");return o.paused=!0,D==null||D(),$(),R(),U==null||U(),this},unpause:function(O){if(!o.paused||!o.active)return this;var D=c(O,"onUnpause"),U=c(O,"onPostUnpause");return o.paused=!1,D==null||D(),C(),V(),R(),U==null||U(),this},updateContainerElements:function(O){var D=[].concat(O).filter(Boolean);return o.containers=D.map(function(U){return typeof U=="string"?s.querySelector(U):U}),o.active&&C(),R(),this}},l.updateContainerElements(e),l};const YJ=':host{display:block}:host *{box-sizing:border-box}.lightbox{position:fixed;z-index:var(--s-z-40);background-color:rgba(0, 0, 0, 1);inset:0}.lightbox[aria-hidden="true"]{display:none}@media (min-width: 768px){.lightbox{background-color:rgba(0, 0, 0, 0.8)}}.lightbox:not(.lightbox--closing) .lightbox__body{animation:0.15s lightbox-fade-in}@media (prefers-reduced-motion){.lightbox:not(.lightbox--closing) .lightbox__body{animation:none}}.lightbox--closing{animation:0.15s lightbox-fade-out;animation-fill-mode:forwards}@media (prefers-reduced-motion){.lightbox--closing{animation:none}}.lightbox--hide-menu .lightbox__menu{display:none}.lightbox--hide-toolbar .lightbox__toolbar{display:none}.lightbox__body{position:relative;width:100%;height:100%}.lightbox__header{position:absolute;z-index:1;top:0;right:0;left:0;display:flex;padding:var(--s-space-12) var(--s-space-16);justify-content:space-between;align-items:flex-start;pointer-events:none}.lightbox__toolbar{pointer-events:auto}.lightbox__controls{position:absolute;z-index:1;top:50%;right:0;left:0;display:none;padding-right:var(--s-space-16);padding-left:var(--s-space-16);justify-content:space-between;align-items:flex-start;pointer-events:none}@media (min-width: 768px){.lightbox__controls{display:flex}}.lightbox__close-button,.lightbox__menu-button,.lightbox__previous-slide-button,.lightbox__next-slide-button{display:inline-flex;width:2.5rem;height:2.5rem;justify-content:center;align-items:center;border:none;border-radius:50%;color:var(--s-icon-on-image);background-color:rgba(0, 0, 0, 0.6);cursor:pointer;transition:opacity 0.15s;pointer-events:auto}.lightbox__close-button:disabled,.lightbox__menu-button:disabled,.lightbox__previous-slide-button:disabled,.lightbox__next-slide-button:disabled{pointer-events:none;opacity:0}.lightbox__content{overflow:hidden;width:100%;height:100%;-webkit-user-select:none;-moz-user-select:none;user-select:none}.lightbox__slides{display:flex;width:100%;height:100%}.lightbox__slides ::slotted(*){flex-basis:100%;flex-shrink:0;transition:transform 0.3s}@media (min-width: 768px){.lightbox__slides ::slotted(*){padding:4rem 5rem}}@media (prefers-reduced-motion){.lightbox__slides ::slotted(*){transition:none}}.lightbox__pagination{position:absolute;bottom:var(--s-space-32);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: 768px){.lightbox__pagination{display:none}}.lightbox__meta{display:flex;padding-top:var(--s-space-4);padding-right:var(--s-space-16);padding-bottom:var(--s-space-4);padding-left:var(--s-space-16);align-items:center;gap:var(--s-space-12)}@media (min-width: 768px){.lightbox__meta{max-width:18rem}}.lightbox__thumbnail{display:inline-flex;flex-shrink:0}.lightbox__file-info{display:flex;min-width:0;flex-grow:1;flex-direction:column}@keyframes lightbox-fade-in{from{opacity:0}to{opacity:1}}@keyframes lightbox-fade-out{from{opacity:1}to{opacity:0}}',Ux=class{constructor(i){k(this,i),this.activeSlideChange=K(this,"activeSlideChange",7),this.lightboxClose=K(this,"lightboxClose",7),this.closeButtonLabel="Close modal",this.downloadButtonEnabled=!0,this.downloadButtonLabel="Download",this.menuLabel="Slide options",this.menuTriggerLabel="Open slide menu",this.nextSlideButtonLabel="Next slide",this.previousSlideButtonLabel="Previous slide",this.activeSlideIndex=0,this.closing=!1,this.isOpen=!1,this.dragging=!1,this.onCloseButtonClick=()=>{this.close()},this.onDownloadButtonClick=()=>{var e;(e=this.slides[this.activeSlideIndex])==null||e.download(),this.menu.close()},this.onNextSlideClick=()=>{this.activateSlide(Math.min(this.slides.length-1,this.activeSlideIndex+1))},this.onPreviousSlideClick=()=>{this.activateSlide(Math.max(0,this.activeSlideIndex-1))},this.registerSlides=()=>{this.slides=Array.from(this.el.children).filter(e=>e.tagName==="SWIRL-FILE-VIEWER"),this.setSlideAttributes()},this.onPointerDown=e=>{this.slides.length<=1||(this.dragging=!0,this.dragStartPosition=e instanceof MouseEvent?e.clientX:e.touches[0].clientX,this.slides.forEach(t=>{t.style.transition="none"}))},this.onPointerMove=async e=>{var o,l;if(!this.dragging)return;const t=!(e instanceof MouseEvent)&&e.touches.length>1,s=(l=(o=this.slides[this.activeSlideIndex])==null?void 0:o.shadowRoot)==null?void 0:l.querySelector("swirl-file-viewer-image"),r=Boolean(s)?await s.getZoom()>1:!1;if(t||r)return;e.preventDefault();const n=e instanceof MouseEvent?e.clientX-this.dragStartPosition:e.touches[0].clientX-this.dragStartPosition;this.slides.forEach(c=>{const h=this.activeSlideIndex*c.getBoundingClientRect().width;this.dragDelta=n,c.style.transform=`translate3d(${(-h+this.dragDelta)/16}rem, 0, 0)`})},this.onPointerUp=()=>{if(!this.dragging)return;this.dragging=!1,this.dragStartPosition=void 0;const e=this.dragDelta/this.slides[this.activeSlideIndex].getBoundingClientRect().width;this.dragDelta=0;const t=e>.2,s=e<-.2;this.slides.forEach(r=>{r.style.transition=""}),t?this.onPreviousSlideClick():s?this.onNextSlideClick():this.resetSlidePositions()},this.onBackdropClick=e=>{e.target===this.slidesContainer&&this.close()},this.onContextMenu=e=>{this.downloadButtonEnabled||e.preventDefault()}}componentWillLoad(){this.registerSlides()}componentDidLoad(){this.activateSlide(0)}componentDidRender(){var i;(i=this.focusTrap)==null||i.updateContainerElements(this.modalEl)}disconnectedCallback(){var i,e;(i=this.focusTrap)==null||i.deactivate(),this.unlockBodyScroll(),(e=this.containerObserver)==null||e.disconnect(),this.activateSlideTimeout&&clearTimeout(this.activateSlideTimeout),this.closingTimeout&&clearTimeout(this.closingTimeout)}watchActiveSlideIndex(){this.activeSlideChange.emit(this.activeSlideIndex)}onKeyDown(i){!this.isOpen||(i.code==="Escape"?(i.stopImmediatePropagation(),this.close()):i.code==="ArrowLeft"?this.onPreviousSlideClick():i.code==="ArrowRight"&&this.onNextSlideClick())}async open(){this.isOpen=!0,this.lockBodyScroll(),this.activateSlide(this.activeSlideIndex||0),setTimeout(()=>{var i;this.focusTrap=yh(this.modalEl,{allowOutsideClick:!0,checkCanFocusTrap:e=>{var t;return(t=this.containerObserver)==null||t.disconnect(),new Promise(s=>{const r=e[0];if(r.tabIndex!==-1){s();return}this.containerObserver=new MutationObserver(()=>{r.tabIndex!==-1&&(this.containerObserver.disconnect(),s())}),this.containerObserver.observe(r,{attributes:!0,attributeFilter:["tabindex"]})})},tabbableOptions:{getShadowRoot:e=>e.shadowRoot}}),(i=this.focusTrap)==null||i.activate()})}async close(){var i;this.closing||(this.closing=!0,(i=this.focusTrap)==null||i.deactivate(),this.unlockBodyScroll(),this.closingTimeout&&(clearTimeout(this.closingTimeout),this.closingTimeout=void 0),this.closingTimeout=setTimeout(()=>{this.isOpen=!1,this.resetImageZoom(),this.stopAllMediaPlayers(),this.closing=!1,this.lightboxClose.emit()},150))}async activateSlide(i){var e,t;(t=(e=this.menu)==null?void 0:e.close)==null||t.call(e),this.dragging=!1,this.activeSlideIndex=i,this.slides.forEach((s,r)=>{r===this.activeSlideIndex?(s.removeAttribute("aria-hidden"),s.setAttribute("active","true")):r===this.activeSlideIndex-1||r===this.activeSlideIndex+1?(s.setAttribute("aria-hidden","true"),s.setAttribute("active","true")):s.setAttribute("aria-hidden","true"),s.style.transform=`translate3d(-${100*this.activeSlideIndex}%, 0, 0)`}),this.activateSlideTimeout&&(clearTimeout(this.activateSlideTimeout),this.activateSlideTimeout=void 0),this.activateSlideTimeout=setTimeout(()=>{this.slides.forEach((s,r)=>{r!==this.activeSlideIndex&&r!==this.activeSlideIndex-1&&r!==this.activeSlideIndex+1&&s.setAttribute("active","false")})},300),this.stopAllMediaPlayers(),this.resetImageZoom()}setSlideAttributes(){this.slides.forEach(i=>{i.setAttribute("active","false"),i.setAttribute("aria-label",i.file),i.setAttribute("aria-roledescription","slide"),i.setAttribute("role","group"),i.addEventListener("dragstart",e=>e.preventDefault())})}resetSlidePositions(){this.slides.forEach(i=>{i.style.transform=`translate3d(-${100*this.activeSlideIndex}%, 0, 0)`})}getCurrentFileName(){var e;const i=this.slides[this.activeSlideIndex];return(i==null?void 0:i.fileName)||((e=i==null?void 0:i.file)==null?void 0:e.split("/").pop())}getCurrentFileType(){var i;return(i=this.slides[this.activeSlideIndex])==null?void 0:i.type}getCurrentThumbnailUrl(){var i;return(i=this.slides[this.activeSlideIndex])==null?void 0:i.thumbnailUrl}lockBodyScroll(){Xn(this.el)}unlockBodyScroll(){qn(this.el)}getMediaPlayers(){return Ie(this.el,"video")}stopAllMediaPlayers(){this.getMediaPlayers().forEach(i=>i.pause())}resetImageZoom(){this.slides.forEach(i=>{var t;const e=(t=i==null?void 0:i.shadowRoot)==null?void 0:t.querySelector("swirl-file-viewer-image");Boolean(e)&&e.resetZoom()})}render(){const i=this.slides.length>1,e=this.getCurrentFileName(),t=this.getCurrentFileType(),s=this.getCurrentThumbnailUrl(),r=Boolean(this.el.querySelector("[slot='menu-items']"))||this.downloadButtonEnabled,n=Boolean(this.el.querySelector("[slot='toolbar']")),o=L("lightbox",{"lightbox--closing":this.closing,"lightbox--hide-menu":!r,"lightbox--hide-toolbar":!n});return a(q,{key:"7ec2ff7ae859f6b2b763dec791ae0258d96ac1b6"},a("section",{key:"7e240f9db8922e59d49eb1a062e966d8f3c5c035","aria-hidden":String(!this.isOpen),"aria-label":this.label,"aria-modal":"true",class:o,id:"lightbox",onMouseDown:this.onPointerDown,onMouseMove:this.onPointerMove,onMouseOut:this.onPointerUp,onMouseUp:this.onPointerUp,onTouchEnd:this.onPointerUp,onTouchMove:this.onPointerMove,onTouchStart:this.onPointerDown,ref:l=>this.modalEl=l,role:"dialog",tabIndex:this.isOpen?0:-1},a("div",{key:"9343b363ea541c0b686c6bb1ca63c92a64e5469d",class:"lightbox__body",role:"document"},a("header",{key:"c070d7de54889c343c7f97129b888f6c369828e9",class:"lightbox__header"},a("button",{key:"11698cda3f2a92e7716d10da20ee22790fb29a49","aria-label":this.closeButtonLabel,class:"lightbox__close-button",onClick:this.onCloseButtonClick},a("swirl-icon-close",{key:"725e245b862c679400d5b0b7d78e586d2bf7b48f"})),a("div",{key:"b475e286dc610759598498e10c05ee4ff76d2011",class:"lightbox__toolbar"},a("slot",{key:"88a44ec7c0527cf5eb496c53804323969b1527cc",name:"toolbar"})),!this.hideMenu&&a("swirl-popover-trigger",{key:"ecb272423b407c1c4ee0d3999599dbc60e154d86",swirlPopover:this.menu},a("button",{key:"972284d42ba6690257534d37d97325e84e23e5b8","aria-label":this.menuTriggerLabel,class:"lightbox__menu-button"},a("swirl-icon-more-vertikal",{key:"4ab88103db1cd859a330b840bf58860466be7be2"})))),a("div",{key:"b4f62a468b4f50633abca8d650216be04510fa09","aria-roledescription":"carousel",class:"lightbox__content",role:"group"},a("div",{key:"d500d39978fa73fe96fa78d291edc9c76872546c","aria-atomic":"false","aria-live":"polite",class:"lightbox__slides",onClick:this.onBackdropClick,onContextMenu:this.onContextMenu,ref:l=>this.slidesContainer=l},a("slot",{key:"5667ede916bb092ee674c25d2619fba9f655a292",onSlotchange:this.registerSlides}))),a("div",{key:"7dc659f8dbd86c268ff8e725f792246eac7a39a3",class:"lightbox__controls"},a("button",{key:"43304062d2af699d390671ade5fbc72d53b24c48","aria-label":this.previousSlideButtonLabel,class:"lightbox__previous-slide-button",disabled:this.activeSlideIndex===0,onClick:this.onPreviousSlideClick},a("swirl-icon-arrow-left",{key:"86b1dcd59d574cad973f038e7ce43ddeaa9ac987"})),a("button",{key:"1d2e510954c9d8854b9f64710bbbb163e791078b","aria-label":this.nextSlideButtonLabel,class:"lightbox__next-slide-button",disabled:this.activeSlideIndex===this.slides.length-1,onClick:this.onNextSlideClick},a("swirl-icon-arrow-right",{key:"4c5e7ddece5243c0df2414757f2413becc1fc2ea"}))),i&&a("span",{key:"ed04a465d67c1fee34f6b7b8d2dd1a7048e9b1d5",class:"lightbox__pagination"},a("span",{key:"93ab9f05002d13b3fea5bd4e59cae7e021dc4f17","aria-current":"page"},this.activeSlideIndex+1)," /"," ",this.slides.length)),!this.hideMenu&&a("swirl-popover",{key:"971ab4e9096b6e3f1a0974c199a459c25a2ea648",animation:"scale-in-y",disableScrollLock:!0,id:"slide-menu",label:this.menuLabel,placement:"bottom-end",ref:l=>this.menu=l},a("swirl-stack",{key:"fbdbeeead8e738d81b7d877ad60dba10eccd1b4e"},a("div",{key:"2d8226853d74a16fd871d2958f9510f81c6fb031",class:"lightbox__meta"},s&&a("div",{key:"03b456243e7425812d6a75ffad2270b4a17eeb3a",class:"lightbox__thumbnail"},a("swirl-thumbnail",{key:"30704b18fc62de5ff17f7093363aa772d0101227",alt:"",src:s})),a("div",{key:"fa5398fe7a00d13c7b6c282dc6ccbea7d5e1edec",class:"lightbox__file-info"},a("swirl-text",{key:"9e31e8adf6104c82bb32f9aa659b3574dea9c656",truncate:!0,weight:"semibold"},e),a("swirl-text",{key:"a0d9cdda0f9469a672348f43249174b5226457bb",color:"subdued",size:"sm",truncate:!0},t))),r&&a("swirl-separator",{key:"1fa3ed14a300634b88997273ec7f543411fefe48"}),a("swirl-action-list",{key:"8860c08573ede96a23dcd4c60922ec6f0eb5d5bc"},this.downloadButtonEnabled&&a("swirl-action-list-item",{key:"8481a03ab52125ef5b08e400fe63e88607452c52",icon:"<swirl-icon-download></swirl-icon-download>",label:this.downloadButtonLabel,onClick:this.onDownloadButtonClick}),a("slot",{key:"414082b16e5c50cfc4667acc6f948eef787c93fd",name:"menu-items"}))))))}get el(){return h1(this)}static get watchers(){return{activeSlideIndex:["watchActiveSlideIndex"]}}};Ux.style=YJ;const Wx=Object.freeze(Object.defineProperty({__proto__:null,swirl_lightbox:Ux},Symbol.toStringTag,{value:"Module"})),KJ=":host{display:inline-flex}:host *{box-sizing:border-box}.link{color:var(--s-interactive-primary-default);line-height:var(--s-line-height-base);text-underline-offset:var(--s-space-4)}.link:hover{color:var(--s-interactive-primary-hovered)}.link:active{color:var(--s-interactive-primary-pressed)}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.link{font-size:var(--s-font-size-sm);line-height:var(--s-line-height-sm)}}.link--color-subdued{color:var(--s-interactive-neutral-default);font-weight:var(--s-font-weight-medium);text-decoration:none}.link--color-subdued:hover{color:var(--s-interactive-neutral-hovered)}.link--color-subdued:active{color:var(--s-interactive-neutral-pressed)}",Gx=class{constructor(i){k(this,i),this.color="default"}render(){const i=L("link",`link--color-${this.color}`);return a(q,{key:"8967699e1ee450cca8c81810e13d9e121efe5645"},a("a",{key:"af6f382f6549157acd996d45457b475802346d0b",class:i,href:this.href,part:"link",target:this.target},this.label))}};Gx.style=KJ;const Yx=Object.freeze(Object.defineProperty({__proto__:null,swirl_link:Gx},Symbol.toStringTag,{value:"Module"})),XJ=':host{display:block}:host *{box-sizing:border-box}.swirl-list{line-height:var(--s-line-height-base)}.swirl-list ul,.swirl-list ol{margin:0;padding:0;list-style-position:outside;list-style-type:none}.swirl-list ul li{padding-left:1.5rem}.swirl-list ul li:before{display:inline-block;width:1.5rem;margin-left:-1.5rem;text-align:center;content:"\u2022"}.swirl-list ol{counter-reset:item}.swirl-list ol ol{counter-reset:letter}.swirl-list ol ol li:before{content:counter(letter, lower-alpha) ".";counter-increment:letter}.swirl-list ol li{padding-left:1.5rem}.swirl-list ol li:before{display:inline-block;min-width:1.5rem;margin-left:-1.5rem;padding-right:var(--s-space-8);text-align:right;content:counter(item) ".";counter-increment:item;font-variant-numeric:tabular-nums}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.swirl-list{font-size:var(--s-font-size-sm);line-height:var(--s-line-height-sm)}}',Kx=class{constructor(i){k(this,i)}componentDidRender(){Array.from(this.containerEl.children).some(e=>!["UL","OL"].includes(e.tagName))&&console.warn("[SwirlList] Only ul and ol elements are allowed as direct children of <swirl-list />.")}render(){return a(q,{key:"5b1d3e9cb9cdbc98dac11d41c67b1b1b51622fc3"},a("div",{key:"f1490f8d2b6eb6928d06abfaa7164de01eac96a2",class:"swirl-list",ref:i=>this.containerEl=i},a("slot",{key:"a75a41aacb1bc175d877cf3f943ad1889931cc9c"})))}};Kx.style=XJ;const Xx=Object.freeze(Object.defineProperty({__proto__:null,swirl_list:Kx},Symbol.toStringTag,{value:"Module"})),qJ=":host{display:block}:host *{box-sizing:border-box}.menu{width:100%;--swirl-ghost-button-background-default:var(--s-surface-overlay-default);--swirl-ghost-button-background-hovered:var(--s-surface-overlay-hovered);--swirl-ghost-button-background-pressed:var(--s-surface-overlay-pressed)}.menu--mobile.menu--root{position:relative}.menu--mobile.menu--root .menu__menu{top:3.5rem;transition:left 0.2s}.menu--mobile.menu--active .menu__menu{display:block}.menu--mobile .menu__menu{position:absolute;top:0;left:0;display:none;width:100%}:not(.menu--mobile).menu--root{position:relative}:not(.menu--mobile).menu--root .menu__menu{position:relative;padding-top:0;padding-bottom:0}:not(.menu--mobile) :not(.menu--root) .menu__menu{z-index:1;max-width:22.5rem;border-radius:var(--s-border-radius-base);box-shadow:var(--s-shadow-level-1);padding:var(--s-space-4)}:not(.menu--mobile).menu--active .menu__menu{display:block}:not(.menu--mobile) .menu__menu{position:fixed;display:none}.menu__mobile-header{display:flex;height:3.5rem;padding-right:var(--s-space-16);padding-left:var(--s-space-16);justify-content:space-between;align-items:center;border-bottom:var(--s-border-width-default) solid var(--s-border-default);gap:var(--s-space-8)}.menu__mobile-header>*{display:inline-flex;flex-shrink:0}.menu__title{min-width:0;flex-grow:1;flex-shrink:1}.menu__title swirl-heading{min-width:0}.menu__done-button{margin-right:calc(-1 * var(--s-space-8))}.menu__menu{background-color:var(--s-surface-overlay-default)}",qx=class{constructor(i){k(this,i),this.done=K(this,"done",7),this.valueChange=K(this,"valueChange",7),this.active=!0,this.level=0,this.mobileBackButtonLabel="Back",this.mobileCloseMenuButtonLabel="Close menu",this.mobileDoneButtonLabel="Done",this.variant="action",this.activeLevel=0,this.mobileMediaQuery=window.matchMedia("(min-width: 768px)"),this.mediaQueryHandler=()=>{this.updateMobileState()},this.resetMenu=()=>{this.items.forEach(e=>{e.tabIndex=-1}),!(this.level>0)&&setTimeout(()=>{this.activeLevel=0,Ie(this.el,"swirl-menu").forEach(t=>{t.active=!1,t.parentElement.expanded=!1})},this.mobile?200:60)},this.closeMenu=()=>{this.disableAutoUpdate&&this.disableAutoUpdate(),this.swirlPopover.close(),this.resetMenu()},this.reposition=async()=>{if(this.mobile||this.level===0){this.position=void 0;return}const e=this.el.parentElement;!Boolean(e)||!Boolean(this.menuContainer)||requestAnimationFrame(async()=>{this.position=await V9(e,this.menuContainer,{placement:"right-start",strategy:"fixed",middleware:[Rn({mainAxis:-10,crossAxis:0}),I9(),Uc()]})})},this.onKeyDown=e=>{if(e.code==="ArrowDown")e.preventDefault(),e.stopPropagation(),this.focusNextItem();else if(e.code==="ArrowUp")e.preventDefault(),e.stopPropagation(),this.focusPreviousItem();else if(e.code==="ArrowLeft")e.preventDefault(),e.stopPropagation(),this.rootMenu.goBack();else if(e.code==="ArrowRight"){e.preventDefault();const t=Bt(this.items[this.getActiveItemIndex()],"swirl-menu-item");if(!Boolean(t))return;this.rootMenu.activateMenuItem(t)}},this.onClose=()=>{this.closeMenu()},this.onDone=()=>{this.closeMenu(),this.done.emit()},this.onGoBack=()=>{this.rootMenu.goBack()}}componentWillLoad(){this.updateMobileState(),this.updateLevel(),this.observeSlotChanges()}componentDidLoad(){this.mobileMediaQuery.addEventListener("change",this.mediaQueryHandler),this.parentMenu=Bt(this.el.parentElement,"swirl-menu"),this.swirlPopover=Bt(this.el,"swirl-popover"),this.rootMenu=k6(this.el,"swirl-menu").pop(),Boolean(this.parentMenu)&&queueMicrotask(()=>{this.active=!1}),this.swirlPopover.addEventListener("popoverClose",this.resetMenu),this.updateItems()}disconnectedCallback(){var i,e,t,s;(i=this.swirlPopover)==null||i.removeEventListener("popoverClose",this.resetMenu),(t=(e=this.mobileMediaQuery).removeEventListener)==null||t.call(e,"change",this.mediaQueryHandler),(s=this.observer)==null||s.disconnect()}watchActive(){this.reposition(),this.disableAutoUpdate&&this.disableAutoUpdate(),this.disableAutoUpdate=H9(this.el.parentElement,this.menuContainer,this.reposition)}watchValue(){this.updateActiveItem()}async activateMenuItem(i){if(Boolean(this.parentMenu))return;const e=await i.getParentMenu();Ie(this.el,"swirl-menu").filter(r=>r.level>=e.level&&r!==e).forEach(r=>{r.active=!1,r.parentElement.expanded=!1});const s=await i.getSubMenu();!Boolean(s)||(i.expanded=!0,s.active=!0,this.activeLevel=s.level,setTimeout(()=>{s.focusFirstItem()},this.mobile?200:60))}async close(){this.closeMenu()}async goBack(){if(Boolean(this.parentMenu)||this.activeLevel===0)return;const e=(Ie(this.el,"swirl-menu").find(r=>r.level===this.activeLevel&&r.active)||this.rootMenu).parentElement;e.expanded=!1,this.activeLevel=Math.max(this.activeLevel-1,0),Ie(this.el,"swirl-menu").filter(r=>r.level>this.activeLevel).forEach(r=>{r.active=!1}),(Ie(this.el,"swirl-menu").find(r=>r.level===this.activeLevel&&r.active)||this.rootMenu).focusItemAtIndex(Array.from(e.parentElement.children).indexOf(e))}async focusFirstItem(){this.focusItem(this.items[0])}async focusItemAtIndex(i){this.focusItem(this.items[i])}async updateSelection(i){this.valueChange.emit(i.value)}async updateActiveItem(){Ie(this.el,"swirl-menu-item").filter(e=>Bt(e,"swirl-menu")===this.el).forEach(e=>{e.updateValue()}),this.parentMenu&&this.parentMenu.variant==="action"&&this.parentMenu.updateActiveItem()}observeSlotChanges(){this.observer=new MutationObserver(()=>{requestAnimationFrame(()=>{this.updateItems()})}),this.observer.observe(this.el,{childList:!0})}updateMobileState(){const i=ve();i!==this.mobile&&(this.mobile=i)}updateItems(){this.items=[...Ie(this.el,'[role="menuitem"]'),...Ie(this.el,'[role="menuitemradio"]')].filter(i=>Bt(i,"swirl-menu")===this.el)}updateLevel(){const i=k6(this.el.parentNode,"swirl-menu");this.level=i.length}focusItem(i){[...Ie(this.rootMenu,'[role="menuitem"]'),...Ie(this.rootMenu,'[role="menuitemradio"]')].forEach(t=>{t.tabIndex=-1}),Boolean(i)&&(i.tabIndex=0,i.focus())}focusNextItem(){const e=(this.getActiveItemIndex()+1)%this.items.length,t=this.items[e];this.focusItem(t)}focusPreviousItem(){const i=this.getActiveItemIndex(),e=i===0?this.items.length-1:i-1,t=this.items[e];this.focusItem(t)}getActiveItemIndex(){const i=wr();return this.items.findIndex(e=>e===i||e===(i==null?void 0:i.querySelector('[role="menuitem"]'))||e===(i==null?void 0:i.querySelector('[role="menuitemradio"]')))}render(){var n,o;const i=!Boolean(this.parentMenu),e=i&&this.mobile?void 0:this.label,t=i&&this.mobile?"menu-title":void 0,s=i?"menubar":"menu",r=L("menu",`menu--level-${this.level}`,{"menu--active":this.active,"menu--mobile":this.mobile,"menu--root":i});return a(q,{key:"4e5dfba8d1514afa36270f77bcecffa886078f4b"},a("div",{key:"f765e4dae6ebb7596a91cac26d838cd3745d7711",class:r},this.mobile&&i&&a("div",{key:"9527ad2795410f27226f3428ec06dee495dc007e",class:"menu__mobile-header"},this.activeLevel===0&&a("swirl-button",{key:"05a018f52eb78619d3d3aa126ee030db42cb463b",hideLabel:!0,icon:"<swirl-icon-close></swirl-icon-close>",label:this.mobileCloseMenuButtonLabel,onClick:this.onClose,variant:"plain"}),this.activeLevel>0&&a("swirl-button",{key:"71713bb65af8bc72cc6df084884e5d3eeb69d810",hideLabel:!0,icon:"<swirl-icon-chevron-left></swirl-icon-chevron-left>",label:this.mobileBackButtonLabel,onClick:this.onGoBack,variant:"plain"}),a("span",{key:"730a9e03a6e1d327b6e3a30b03ec1471c6509067",class:"menu__title",id:"menu-title"},a("swirl-heading",{key:"110aec04f9a5c4dd9cadd85b33d5b0a61326d435",align:"center",as:"span",level:4,text:this.label,truncate:!0})),a("swirl-button",{key:"9dcc36effd5252cec301a378511fd3fc70630815",class:"menu__done-button",intent:"primary",label:this.mobileDoneButtonLabel,onClick:this.onDone})),a("div",{key:"05df203a130cbd4ec9d03bd2a531862adbf2d9da","aria-label":e,"aria-labelledby":t,"aria-orientation":"vertical",class:"menu__menu",onKeyDown:this.onKeyDown,ref:l=>this.menuContainer=l,role:s,style:!this.mobile&&this.level>0?{top:Boolean(this.position)?`${(n=this.position)==null?void 0:n.y}px`:"",left:Boolean(this.position)?`${(o=this.position)==null?void 0:o.x}px`:""}:this.mobile?{left:i?`calc(-100% * ${this.activeLevel})`:"100%"}:void 0},a("slot",{key:"2b3cd9bf21a1e9a129b99ce813cf3e9384cbf1e6"}))))}get el(){return h1(this)}static get watchers(){return{active:["watchActive"],value:["watchValue"]}}};qx.style=qJ;const Qx=Object.freeze(Object.defineProperty({__proto__:null,swirl_menu:qx},Symbol.toStringTag,{value:"Module"})),QJ=":host{display:block}:host *{box-sizing:border-box}.menu-item--expanded ::part(action-list-item){background-color:var(--s-surface-overlay-hovered)}",Jx=class{constructor(i){k(this,i),this.intent="default",this.hasAvatar=!1,this.onSlotChange=()=>{this.subMenu=this.el.querySelector("swirl-menu"),this.updateActionListItemProps()},this.onActionListItemClick=()=>{this.actionListItem.disabled||this.rootMenu.activateMenuItem(this.el)},this.onOptionListItemClick=()=>{this.optionListItem.disabled||this.parentMenu.updateSelection(this.optionListItem)},this.onOptionListItemKeyDown=e=>{if(e.code==="Space")e.preventDefault();else if(e.code==="Enter"){if(this.optionListItem.disabled)return;e.preventDefault(),this.parentMenu.updateSelection(this.optionListItem)}},this.onOptionListItemKeyUp=e=>{if(e.code==="Space"){if(this.optionListItem.disabled)return;e.preventDefault(),this.parentMenu.updateSelection(this.optionListItem)}}}componentWillLoad(){this.parentMenu=Bt(this.el,"swirl-menu"),this.rootMenu=k6(this.el,"swirl-menu").pop(),this.subMenu=this.el.querySelector("swirl-menu"),this.updateAvatarState()}watchExpanded(){this.updateActionListItemProps()}async getSubMenu(){return this.subMenu}async updateValue(){Z3(this)}async getParentMenu(){return this.parentMenu}updateActionListItemProps(){!Boolean(this.actionListItem)||(this.actionListItem.swirlAriaExpanded=this.expanded?"true":void 0,this.actionListItem.swirlAriaHaspopup=Boolean(this.subMenu)?"true":void 0,this.actionListItem.suffix=Boolean(this.subMenu)?'<swirl-icon-chevron-right size="16"></swirl-icon-chevron-right>':void 0)}updateAvatarState(){const i=this.el.querySelector('[slot="avatar"]'),e=Boolean(i);e!==this.hasAvatar&&(this.hasAvatar=e)}renderActionListItem(){var e,t,s;const i=Boolean((e=this.subMenu)==null?void 0:e.value)?(s=Array.from(((t=this.subMenu)==null?void 0:t.querySelectorAll("swirl-menu-item"))||[]).find(r=>{var n;return r.value===((n=this.subMenu)==null?void 0:n.value)}))==null?void 0:s.label:void 0;return a("swirl-action-list-item",{badge:i,description:this.description,disabled:this.disabled,icon:this.icon,iconBadge:this.iconBadge,intent:this.intent,label:this.label,onClick:this.onActionListItemClick,ref:r=>this.actionListItem=r,suffix:this.suffix},this.hasAvatar&&a("slot",{name:"avatar",slot:"avatar"}))}renderOptionListItem(){var e;const i=((e=this.parentMenu)==null?void 0:e.value)===this.value;return a("swirl-option-list-item",{disabled:this.disabled,icon:this.icon,iconBadge:this.iconBadge,label:this.label,onClick:this.onOptionListItemClick,onKeyDown:this.onOptionListItemKeyDown,onKeyUp:this.onOptionListItemKeyUp,ref:t=>this.optionListItem=t,selected:i,swirlAriaRole:"menuitemradio",value:this.value},this.hasAvatar&&a("slot",{name:"avatar",slot:"avatar"}))}render(){var e;const i=L("menu-item",{"menu-item--expanded":this.expanded});return a(q,{key:"9584ff13ba291007f473d52b2554507e7d5e7a2c"},a("div",{key:"3ce1e14dd8bb846b4cb7250b205b16d4ce1da32d",class:i},((e=this.parentMenu)==null?void 0:e.variant)==="selection"?this.renderOptionListItem():this.renderActionListItem(),a("slot",{key:"56205fcbad57558c83749b9062ab0c51a9ffd9c6",onSlotchange:this.onSlotChange})))}get el(){return h1(this)}static get watchers(){return{expanded:["watchExpanded"]}}};Jx.style=QJ;const ek=Object.freeze(Object.defineProperty({__proto__:null,swirl_menu_item:Jx},Symbol.toStringTag,{value:"Module"})),JJ=`:host{display:block}:host *{box-sizing:border-box}.modal{--swirl-ghost-button-background-default:var(--s-surface-overlay-default);--swirl-ghost-button-background-hovered:var(--s-surface-overlay-hovered);--swirl-ghost-button-background-pressed:var(--s-surface-overlay-pressed);--swirl-resource-list-item-background-default:var(
81
81
  --s-surface-overlay-default
82
82
  );--swirl-resource-list-item-background-hovered:var(
83
83
  --s-surface-overlay-hovered
@@ -546,7 +546,7 @@ License: MIT
546
546
  `),position:g,pageIndex:y-1,rect:u.slice(0),rotation:f,id:C,deleted:!1,popupRef:p}}const o=await super.deserialize(t,s,r);return v(o,qt,t.fontSize),v(o,P3,u1.makeHexColor(...t.color)),v(o,Xt,M(l=Ae,d7,mf).call(l,t.value)),o.annotationElementId=t.id||null,o._initialData=n,o}serialize(t=!1){if(this.isEmpty())return null;if(this.deleted)return this.serializeDeleted();const s=Ae._internalPadding*this.parentScale,r=this.getRect(s,s),n=B1._colorManager.convert(this.isAttachedToDOM?getComputedStyle(this.editorDiv).color:d(this,P3)),o={annotationType:S1.FREETEXT,color:n,fontSize:d(this,qt),value:M(this,ll,qP).call(this),pageIndex:this.pageIndex,rect:r,rotation:this.rotation,structTreeParentId:this._structTreeParentId};return t?(o.isCopy=!0,o):this.annotationElementId&&!M(this,cl,QP).call(this,o)?null:(o.id=this.annotationElementId,o)}renderAnnotationElement(t){const s=super.renderAnnotationElement(t);if(this.deleted)return s;const{style:r}=s;r.fontSize=`calc(${d(this,qt)}px * var(--total-scale-factor))`,r.color=d(this,P3),s.replaceChildren();for(const o of d(this,Xt).split(`
547
547
  `)){const l=document.createElement("div");l.append(o?document.createTextNode(o):document.createElement("br")),s.append(l)}const n=Ae._internalPadding*this.parentScale;return t.updateEdited({rect:this.getRect(n,n),popupContent:d(this,Xt)}),s}resetAnnotationElement(t){super.resetAnnotationElement(t),t.resetEdited()}};let S3=Ae;P3=new WeakMap,Xt=new WeakMap,c7=new WeakMap,$s=new WeakMap,qt=new WeakMap,ol=new WeakSet,YP=function(t){const s=n=>{this.editorDiv.style.fontSize=`calc(${n}px * var(--total-scale-factor))`,this.translate(0,-(n-d(this,qt))*this.parentScale),v(this,qt,n),M(this,jo,dc).call(this)},r=d(this,qt);this.addCommands({cmd:s.bind(this,t),undo:s.bind(this,r),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:T1.FREETEXT_SIZE,overwriteIfSameType:!0,keepUndo:!0})},nl=new WeakSet,KP=function(t){const s=n=>{v(this,P3,this.editorDiv.style.color=n)},r=d(this,P3);this.addCommands({cmd:s.bind(this,t),undo:s.bind(this,r),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:T1.FREETEXT_COLOR,overwriteIfSameType:!0,keepUndo:!0})},al=new WeakSet,XP=function(){var r;const t=[];this.editorDiv.normalize();let s=null;for(const n of this.editorDiv.childNodes)(s==null?void 0:s.nodeType)===Node.TEXT_NODE&&n.nodeName==="BR"||(t.push(M(r=Ae,Fo,hc).call(r,n)),s=n);return t.join(`
548
548
  `)},jo=new WeakSet,dc=function(){const[t,s]=this.parentDimensions;let r;if(this.isAttachedToDOM)r=this.div.getBoundingClientRect();else{const{currentLayer:n,div:o}=this,l=o.style.display,c=o.classList.contains("hidden");o.classList.remove("hidden"),o.style.display="hidden",n.div.append(this.div),r=o.getBoundingClientRect(),o.remove(),o.style.display=l,o.classList.toggle("hidden",c)}this.rotation%180===this.parentRotation%180?(this.width=r.width/t,this.height=r.height/s):(this.width=r.height/t,this.height=r.width/s),this.fixAndSetPosition()},Fo=new WeakSet,hc=function(t){return(t.nodeType===Node.TEXT_NODE?t.nodeValue:t.innerText).replaceAll(J0,"")},Uo=new WeakSet,uc=function(){if(this.editorDiv.replaceChildren(),!!d(this,Xt))for(const t of d(this,Xt).split(`
549
- `)){const s=document.createElement("div");s.append(t?document.createTextNode(t):document.createElement("br")),this.editorDiv.append(s)}},ll=new WeakSet,qP=function(){return d(this,Xt).replaceAll("\xA0"," ")},d7=new WeakSet,mf=function(t){return t.replaceAll(" ","\xA0")},cl=new WeakSet,QP=function(t){const{value:s,fontSize:r,color:n,pageIndex:o}=this._initialData;return this._hasBeenMoved||t.value!==s||t.fontSize!==r||t.color.some((l,c)=>l!==n[c])||t.pageIndex!==o},w(S3,Fo),w(S3,d7),i1(S3,"_freeTextDefaultContent",""),i1(S3,"_internalPadding",0),i1(S3,"_defaultColor",null),i1(S3,"_defaultFontSize",10),i1(S3,"_type","freetext"),i1(S3,"_editorType",S1.FREETEXT);class d1{toSVGPath(){G1("Abstract method `toSVGPath` must be implemented.")}get box(){G1("Abstract getter `box` must be implemented.")}serialize(e,t){G1("Abstract method `serialize` must be implemented.")}static _rescale(e,t,s,r,n,o){o||(o=new Float32Array(e.length));for(let l=0,c=e.length;l<c;l+=2)o[l]=t+e[l]*r,o[l+1]=s+e[l+1]*n;return o}static _rescaleAndSwap(e,t,s,r,n,o){o||(o=new Float32Array(e.length));for(let l=0,c=e.length;l<c;l+=2)o[l]=t+e[l+1]*r,o[l+1]=s+e[l]*n;return o}static _translate(e,t,s,r){r||(r=new Float32Array(e.length));for(let n=0,o=e.length;n<o;n+=2)r[n]=t+e[n],r[n+1]=s+e[n+1];return r}static svgRound(e){return Math.round(e*1e4)}static _normalizePoint(e,t,s,r,n){switch(n){case 90:return[1-t/s,e/r];case 180:return[1-e/s,1-t/r];case 270:return[t/s,1-e/r];default:return[e/s,t/r]}}static _normalizePagePoint(e,t,s){switch(s){case 90:return[1-t,e];case 180:return[1-e,1-t];case 270:return[t,1-e];default:return[e,t]}}static createBezierPoints(e,t,s,r,n,o){return[(e+5*s)/6,(t+5*r)/6,(5*s+n)/6,(5*r+o)/6,(s+n)/2,(r+o)/2]}}i1(d1,"PRECISION",1e-4);const Xo=class{constructor({x:e,y:t},s,r,n,o,l=0){w(this,Ds);w(this,ul);w(this,fl);w(this,Cl);w(this,pl);w(this,bl);w(this,ml);w(this,Qt,void 0);w(this,T3,[]);w(this,Wo,void 0);w(this,Go,void 0);w(this,hi,[]);w(this,E1,new Float32Array(18));w(this,Os,void 0);w(this,Bs,void 0);w(this,h7,void 0);w(this,u7,void 0);w(this,Yo,void 0);w(this,Ko,void 0);w(this,s6,[]);v(this,Qt,s),v(this,Ko,n*r),v(this,Go,o),d(this,E1).set([NaN,NaN,NaN,NaN,e,t],6),v(this,Wo,l),v(this,u7,d(Xo,f7)*r),v(this,h7,d(Xo,hl)*r),v(this,Yo,r),d(this,s6).push(e,t)}isEmpty(){return isNaN(d(this,E1)[8])}add({x:e,y:t}){var P;v(this,Os,e),v(this,Bs,t);const[s,r,n,o]=d(this,Qt);let[l,c,h,u]=d(this,E1).subarray(8,12);const f=e-h,C=t-u,p=Math.hypot(f,C);if(p<d(this,h7))return!1;const m=p-d(this,u7),g=m/p,y=g*f,_=g*C;let z=l,E=c;l=h,c=u,h+=y,u+=_,(P=d(this,s6))==null||P.push(e,t);const H=-_/m,A=y/m,V=H*d(this,Ko),$=A*d(this,Ko);return d(this,E1).set(d(this,E1).subarray(2,8),0),d(this,E1).set([h+V,u+$],4),d(this,E1).set(d(this,E1).subarray(14,18),12),d(this,E1).set([h-V,u-$],16),isNaN(d(this,E1)[6])?(d(this,hi).length===0&&(d(this,E1).set([l+V,c+$],2),d(this,hi).push(NaN,NaN,NaN,NaN,(l+V-s)/n,(c+$-r)/o),d(this,E1).set([l-V,c-$],14),d(this,T3).push(NaN,NaN,NaN,NaN,(l-V-s)/n,(c-$-r)/o)),d(this,E1).set([z,E,l,c,h,u],6),!this.isEmpty()):(d(this,E1).set([z,E,l,c,h,u],6),Math.abs(Math.atan2(E-c,z-l)-Math.atan2(_,y))<Math.PI/2?([l,c,h,u]=d(this,E1).subarray(2,6),d(this,hi).push(NaN,NaN,NaN,NaN,((l+h)/2-s)/n,((c+u)/2-r)/o),[l,c,z,E]=d(this,E1).subarray(14,18),d(this,T3).push(NaN,NaN,NaN,NaN,((z+l)/2-s)/n,((E+c)/2-r)/o),!0):([z,E,l,c,h,u]=d(this,E1).subarray(0,6),d(this,hi).push(((z+5*l)/6-s)/n,((E+5*c)/6-r)/o,((5*l+h)/6-s)/n,((5*c+u)/6-r)/o,((l+h)/2-s)/n,((c+u)/2-r)/o),[h,u,l,c,z,E]=d(this,E1).subarray(12,18),d(this,T3).push(((z+5*l)/6-s)/n,((E+5*c)/6-r)/o,((5*l+h)/6-s)/n,((5*c+u)/6-r)/o,((l+h)/2-s)/n,((c+u)/2-r)/o),!0))}toSVGPath(){if(this.isEmpty())return"";const e=d(this,hi),t=d(this,T3);if(isNaN(d(this,E1)[6])&&!this.isEmpty())return M(this,ul,JP).call(this);const s=[];s.push(`M${e[4]} ${e[5]}`);for(let r=6;r<e.length;r+=6)isNaN(e[r])?s.push(`L${e[r+4]} ${e[r+5]}`):s.push(`C${e[r]} ${e[r+1]} ${e[r+2]} ${e[r+3]} ${e[r+4]} ${e[r+5]}`);M(this,Cl,tT).call(this,s);for(let r=t.length-6;r>=6;r-=6)isNaN(t[r])?s.push(`L${t[r+4]} ${t[r+5]}`):s.push(`C${t[r]} ${t[r+1]} ${t[r+2]} ${t[r+3]} ${t[r+4]} ${t[r+5]}`);return M(this,fl,eT).call(this,s),s.join(" ")}newFreeDrawOutline(e,t,s,r,n,o){return new RA(e,t,s,r,n,o)}getOutlines(){var f,C;const e=d(this,hi),t=d(this,T3),s=d(this,E1),[r,n,o,l]=d(this,Qt),c=new Float32Array(((C=(f=d(this,s6))==null?void 0:f.length)!=null?C:0)+2);for(let p=0,m=c.length-2;p<m;p+=2)c[p]=(d(this,s6)[p]-r)/o,c[p+1]=(d(this,s6)[p+1]-n)/l;if(c[c.length-2]=(d(this,Os)-r)/o,c[c.length-1]=(d(this,Bs)-n)/l,isNaN(s[6])&&!this.isEmpty())return M(this,pl,iT).call(this,c);const h=new Float32Array(d(this,hi).length+24+d(this,T3).length);let u=e.length;for(let p=0;p<u;p+=2){if(isNaN(e[p])){h[p]=h[p+1]=NaN;continue}h[p]=e[p],h[p+1]=e[p+1]}u=M(this,ml,rT).call(this,h,u);for(let p=t.length-6;p>=6;p-=6)for(let m=0;m<6;m+=2){if(isNaN(t[p+m])){h[u]=h[u+1]=NaN,u+=2;continue}h[u]=t[p+m],h[u+1]=t[p+m+1],u+=2}return M(this,bl,sT).call(this,h,u),this.newFreeDrawOutline(h,c,d(this,Qt),d(this,Yo),d(this,Wo),d(this,Go))}};let R6=Xo;Qt=new WeakMap,T3=new WeakMap,Wo=new WeakMap,Go=new WeakMap,hi=new WeakMap,E1=new WeakMap,Os=new WeakMap,Bs=new WeakMap,h7=new WeakMap,u7=new WeakMap,Yo=new WeakMap,Ko=new WeakMap,s6=new WeakMap,f7=new WeakMap,dl=new WeakMap,hl=new WeakMap,Ds=new WeakSet,o9=function(){const e=d(this,E1).subarray(4,6),t=d(this,E1).subarray(16,18),[s,r,n,o]=d(this,Qt);return[(d(this,Os)+(e[0]-t[0])/2-s)/n,(d(this,Bs)+(e[1]-t[1])/2-r)/o,(d(this,Os)+(t[0]-e[0])/2-s)/n,(d(this,Bs)+(t[1]-e[1])/2-r)/o]},ul=new WeakSet,JP=function(){const[e,t,s,r]=d(this,Qt),[n,o,l,c]=M(this,Ds,o9).call(this);return`M${(d(this,E1)[2]-e)/s} ${(d(this,E1)[3]-t)/r} L${(d(this,E1)[4]-e)/s} ${(d(this,E1)[5]-t)/r} L${n} ${o} L${l} ${c} L${(d(this,E1)[16]-e)/s} ${(d(this,E1)[17]-t)/r} L${(d(this,E1)[14]-e)/s} ${(d(this,E1)[15]-t)/r} Z`},fl=new WeakSet,eT=function(e){const t=d(this,T3);e.push(`L${t[4]} ${t[5]} Z`)},Cl=new WeakSet,tT=function(e){const[t,s,r,n]=d(this,Qt),o=d(this,E1).subarray(4,6),l=d(this,E1).subarray(16,18),[c,h,u,f]=M(this,Ds,o9).call(this);e.push(`L${(o[0]-t)/r} ${(o[1]-s)/n} L${c} ${h} L${u} ${f} L${(l[0]-t)/r} ${(l[1]-s)/n}`)},pl=new WeakSet,iT=function(e){const t=d(this,E1),[s,r,n,o]=d(this,Qt),[l,c,h,u]=M(this,Ds,o9).call(this),f=new Float32Array(36);return f.set([NaN,NaN,NaN,NaN,(t[2]-s)/n,(t[3]-r)/o,NaN,NaN,NaN,NaN,(t[4]-s)/n,(t[5]-r)/o,NaN,NaN,NaN,NaN,l,c,NaN,NaN,NaN,NaN,h,u,NaN,NaN,NaN,NaN,(t[16]-s)/n,(t[17]-r)/o,NaN,NaN,NaN,NaN,(t[14]-s)/n,(t[15]-r)/o],0),this.newFreeDrawOutline(f,e,d(this,Qt),d(this,Yo),d(this,Wo),d(this,Go))},bl=new WeakSet,sT=function(e,t){const s=d(this,T3);return e.set([NaN,NaN,NaN,NaN,s[4],s[5]],t),t+=6},ml=new WeakSet,rT=function(e,t){const s=d(this,E1).subarray(4,6),r=d(this,E1).subarray(16,18),[n,o,l,c]=d(this,Qt),[h,u,f,C]=M(this,Ds,o9).call(this);return e.set([NaN,NaN,NaN,NaN,(s[0]-n)/l,(s[1]-o)/c,NaN,NaN,NaN,NaN,h,u,NaN,NaN,NaN,NaN,f,C,NaN,NaN,NaN,NaN,(r[0]-n)/l,(r[1]-o)/c],t),t+=24},w(R6,f7,8),w(R6,dl,2),w(R6,hl,d(Xo,f7)+d(Xo,dl));class RA extends d1{constructor(t,s,r,n,o,l){super();w(this,gl);w(this,qo,void 0);w(this,Rs,new Float32Array(4));w(this,o2,void 0);w(this,C7,void 0);w(this,Jt,void 0);w(this,p7,void 0);w(this,ge,void 0);v(this,ge,t),v(this,Jt,s),v(this,qo,r),v(this,p7,n),v(this,o2,o),v(this,C7,l),this.lastPoint=[NaN,NaN],M(this,gl,oT).call(this,l);const[c,h,u,f]=d(this,Rs);for(let C=0,p=t.length;C<p;C+=2)t[C]=(t[C]-c)/u,t[C+1]=(t[C+1]-h)/f;for(let C=0,p=s.length;C<p;C+=2)s[C]=(s[C]-c)/u,s[C+1]=(s[C+1]-h)/f}toSVGPath(){const t=[`M${d(this,ge)[4]} ${d(this,ge)[5]}`];for(let s=6,r=d(this,ge).length;s<r;s+=6){if(isNaN(d(this,ge)[s])){t.push(`L${d(this,ge)[s+4]} ${d(this,ge)[s+5]}`);continue}t.push(`C${d(this,ge)[s]} ${d(this,ge)[s+1]} ${d(this,ge)[s+2]} ${d(this,ge)[s+3]} ${d(this,ge)[s+4]} ${d(this,ge)[s+5]}`)}return t.push("Z"),t.join(" ")}serialize([t,s,r,n],o){const l=r-t,c=n-s;let h,u;switch(o){case 0:h=d1._rescale(d(this,ge),t,n,l,-c),u=d1._rescale(d(this,Jt),t,n,l,-c);break;case 90:h=d1._rescaleAndSwap(d(this,ge),t,s,l,c),u=d1._rescaleAndSwap(d(this,Jt),t,s,l,c);break;case 180:h=d1._rescale(d(this,ge),r,s,-l,c),u=d1._rescale(d(this,Jt),r,s,-l,c);break;case 270:h=d1._rescaleAndSwap(d(this,ge),r,n,-l,-c),u=d1._rescaleAndSwap(d(this,Jt),r,n,-l,-c);break}return{outline:Array.from(h),points:[Array.from(u)]}}get box(){return d(this,Rs)}newOutliner(t,s,r,n,o,l=0){return new R6(t,s,r,n,o,l)}getNewOutline(t,s){const[r,n,o,l]=d(this,Rs),[c,h,u,f]=d(this,qo),C=o*u,p=l*f,m=r*u+c,g=n*f+h,y=this.newOutliner({x:d(this,Jt)[0]*C+m,y:d(this,Jt)[1]*p+g},d(this,qo),d(this,p7),t,d(this,C7),s!=null?s:d(this,o2));for(let _=2;_<d(this,Jt).length;_+=2)y.add({x:d(this,Jt)[_]*C+m,y:d(this,Jt)[_+1]*p+g});return y.getOutlines()}}qo=new WeakMap,Rs=new WeakMap,o2=new WeakMap,C7=new WeakMap,Jt=new WeakMap,p7=new WeakMap,ge=new WeakMap,gl=new WeakSet,oT=function(t){const s=d(this,ge);let r=s[4],n=s[5];const o=[r,n,r,n];let l=r,c=n;const h=t?Math.max:Math.min;for(let f=6,C=s.length;f<C;f+=6){const p=s[f+4],m=s[f+5];if(isNaN(s[f]))u1.pointBoundingBox(p,m,o),c<m?(l=p,c=m):c===m&&(l=h(l,p));else{const g=[1/0,1/0,-1/0,-1/0];u1.bezierBoundingBox(r,n,...s.slice(f,f+6),g),u1.rectBoundingBox(...g,o),c<g[3]?(l=g[2],c=g[3]):c===g[3]&&(l=h(l,g[2]))}r=p,n=m}const u=d(this,Rs);u[0]=o[0]-d(this,o2),u[1]=o[1]-d(this,o2),u[2]=o[2]-o[0]+2*d(this,o2),u[3]=o[3]-o[1]+2*d(this,o2),this.lastPoint=[l,c]};class yu{constructor(e,t=0,s=0,r=!0){w(this,wl);w(this,Qo);w(this,vl);w(this,yl);w(this,g7);w(this,b7,void 0);w(this,m7,void 0);w(this,r6,[]);w(this,H3,[]);const n=[1/0,1/0,-1/0,-1/0],o=10**-4;for(const{x:p,y:m,width:g,height:y}of e){const _=Math.floor((p-t)/o)*o,z=Math.ceil((p+g+t)/o)*o,E=Math.floor((m-t)/o)*o,H=Math.ceil((m+y+t)/o)*o,A=[_,E,H,!0],V=[z,E,H,!1];d(this,r6).push(A,V),u1.rectBoundingBox(_,E,z,H,n)}const l=n[2]-n[0]+2*s,c=n[3]-n[1]+2*s,h=n[0]-s,u=n[1]-s,f=d(this,r6).at(r?-1:-2),C=[f[0],f[2]];for(const p of d(this,r6)){const[m,g,y]=p;p[0]=(m-h)/l,p[1]=(g-u)/c,p[2]=(y-u)/c}v(this,b7,new Float32Array([h,u,l,c])),v(this,m7,C)}getOutlines(){d(this,r6).sort((t,s)=>t[0]-s[0]||t[1]-s[1]||t[2]-s[2]);const e=[];for(const t of d(this,r6))t[3]?(e.push(...M(this,g7,gf).call(this,t)),M(this,vl,aT).call(this,t)):(M(this,yl,lT).call(this,t),e.push(...M(this,g7,gf).call(this,t)));return M(this,wl,nT).call(this,e)}}b7=new WeakMap,m7=new WeakMap,r6=new WeakMap,H3=new WeakMap,wl=new WeakSet,nT=function(e){const t=[],s=new Set;for(const o of e){const[l,c,h]=o;t.push([l,c,o],[l,h,o])}t.sort((o,l)=>o[1]-l[1]||o[0]-l[0]);for(let o=0,l=t.length;o<l;o+=2){const c=t[o][2],h=t[o+1][2];c.push(h),h.push(c),s.add(c),s.add(h)}const r=[];let n;for(;s.size>0;){const o=s.values().next().value;let[l,c,h,u,f]=o;s.delete(o);let C=l,p=c;for(n=[l,h],r.push(n);;){let m;if(s.has(u))m=u;else if(s.has(f))m=f;else break;s.delete(m),[l,c,h,u,f]=m,C!==l&&(n.push(C,p,l,p===c?c:h),C=l),p=p===c?h:c}n.push(C,p)}return new i61(r,d(this,b7),d(this,m7))},Qo=new WeakSet,fc=function(e){const t=d(this,H3);let s=0,r=t.length-1;for(;s<=r;){const n=s+r>>1,o=t[n][0];if(o===e)return n;o<e?s=n+1:r=n-1}return r+1},vl=new WeakSet,aT=function([,e,t]){const s=M(this,Qo,fc).call(this,e);d(this,H3).splice(s,0,[e,t])},yl=new WeakSet,lT=function([,e,t]){const s=M(this,Qo,fc).call(this,e);for(let r=s;r<d(this,H3).length;r++){const[n,o]=d(this,H3)[r];if(n!==e)break;if(n===e&&o===t){d(this,H3).splice(r,1);return}}for(let r=s-1;r>=0;r--){const[n,o]=d(this,H3)[r];if(n!==e)break;if(n===e&&o===t){d(this,H3).splice(r,1);return}}},g7=new WeakSet,gf=function(e){const[t,s,r]=e,n=[[t,s,r]],o=M(this,Qo,fc).call(this,r);for(let l=0;l<o;l++){const[c,h]=d(this,H3)[l];for(let u=0,f=n.length;u<f;u++){const[,C,p]=n[u];if(!(h<=C||p<=c)){if(C>=c){if(p>h)n[u][1]=h;else{if(f===1)return[];n.splice(u,1),u--,f--}continue}n[u][2]=c,p>h&&n.push([t,h,p])}}}return n};class i61 extends d1{constructor(t,s,r){super();w(this,w7,void 0);w(this,Jo,void 0);v(this,Jo,t),v(this,w7,s),this.lastPoint=r}toSVGPath(){const t=[];for(const s of d(this,Jo)){let[r,n]=s;t.push(`M${r} ${n}`);for(let o=2;o<s.length;o+=2){const l=s[o],c=s[o+1];l===r?(t.push(`V${c}`),n=c):c===n&&(t.push(`H${l}`),r=l)}t.push("Z")}return t.join(" ")}serialize([t,s,r,n],o){const l=[],c=r-t,h=n-s;for(const u of d(this,Jo)){const f=new Array(u.length);for(let C=0;C<u.length;C+=2)f[C]=t+u[C]*c,f[C+1]=n-u[C+1]*h;l.push(f)}return l}get box(){return d(this,w7)}get classNamesForOutlining(){return["highlightOutline"]}}w7=new WeakMap,Jo=new WeakMap;class _u extends R6{newFreeDrawOutline(e,t,s,r,n,o){return new s61(e,t,s,r,n,o)}}class s61 extends RA{newOutliner(e,t,s,r,n,o=0){return new _u(e,t,s,r,n,o)}}const e3=class{constructor({editor:e=null,uiManager:t=null}){w(this,k7);w(this,S7);w(this,z7);w(this,n2);w(this,_l);w(this,ui);w(this,V3,null);w(this,Zs,null);w(this,en,void 0);w(this,Pe,null);w(this,v7,!1);w(this,tn,!1);w(this,y7,null);w(this,_7,void 0);w(this,o6,null);w(this,$3,null);w(this,sn,void 0);var s;e?(v(this,tn,!1),v(this,sn,T1.HIGHLIGHT_COLOR),v(this,y7,e)):(v(this,tn,!0),v(this,sn,T1.HIGHLIGHT_DEFAULT_COLOR)),v(this,$3,(e==null?void 0:e._uiManager)||t),v(this,_7,d(this,$3)._eventBus),v(this,en,(e==null?void 0:e.color)||((s=d(this,$3))==null?void 0:s.highlightColors.values().next().value)||"#FFFF98"),d(e3,x7)||v(e3,x7,Object.freeze({blue:"pdfjs-editor-colorpicker-blue",green:"pdfjs-editor-colorpicker-green",pink:"pdfjs-editor-colorpicker-pink",red:"pdfjs-editor-colorpicker-red",yellow:"pdfjs-editor-colorpicker-yellow"}))}static get _keyboardManager(){return A1(this,"_keyboardManager",new va([[["Escape","mac+Escape"],e3.prototype._hideDropdownFromKeyboard],[[" ","mac+ "],e3.prototype._colorSelectFromKeyboard],[["ArrowDown","ArrowRight","mac+ArrowDown","mac+ArrowRight"],e3.prototype._moveToNext],[["ArrowUp","ArrowLeft","mac+ArrowUp","mac+ArrowLeft"],e3.prototype._moveToPrevious],[["Home","mac+Home"],e3.prototype._moveToBeginning],[["End","mac+End"],e3.prototype._moveToEnd]]))}renderButton(){const e=v(this,V3,document.createElement("button"));e.className="colorPicker",e.tabIndex="0",e.setAttribute("data-l10n-id","pdfjs-editor-colorpicker-button"),e.setAttribute("aria-haspopup",!0);const t=d(this,$3)._signal;e.addEventListener("click",M(this,n2,hr).bind(this),{signal:t}),e.addEventListener("keydown",M(this,z7,yf).bind(this),{signal:t});const s=v(this,Zs,document.createElement("span"));return s.className="swatch",s.setAttribute("aria-hidden",!0),s.style.backgroundColor=d(this,en),e.append(s),e}renderMainDropdown(){const e=v(this,Pe,M(this,k7,wf).call(this));return e.setAttribute("aria-orientation","horizontal"),e.setAttribute("aria-labelledby","highlightColorPickerLabel"),e}_colorSelectFromKeyboard(e){if(e.target===d(this,V3)){M(this,n2,hr).call(this,e);return}const t=e.target.getAttribute("data-color");!t||M(this,S7,vf).call(this,t,e)}_moveToNext(e){var t,s;if(!d(this,ui,v6)){M(this,n2,hr).call(this,e);return}if(e.target===d(this,V3)){(t=d(this,Pe).firstChild)==null||t.focus();return}(s=e.target.nextSibling)==null||s.focus()}_moveToPrevious(e){var t,s;if(e.target===((t=d(this,Pe))==null?void 0:t.firstChild)||e.target===d(this,V3)){d(this,ui,v6)&&this._hideDropdownFromKeyboard();return}d(this,ui,v6)||M(this,n2,hr).call(this,e),(s=e.target.previousSibling)==null||s.focus()}_moveToBeginning(e){var t;if(!d(this,ui,v6)){M(this,n2,hr).call(this,e);return}(t=d(this,Pe).firstChild)==null||t.focus()}_moveToEnd(e){var t;if(!d(this,ui,v6)){M(this,n2,hr).call(this,e);return}(t=d(this,Pe).lastChild)==null||t.focus()}hideDropdown(){var e,t;(e=d(this,Pe))==null||e.classList.add("hidden"),(t=d(this,o6))==null||t.abort(),v(this,o6,null)}_hideDropdownFromKeyboard(){var e;if(!d(this,tn)){if(!d(this,ui,v6)){(e=d(this,y7))==null||e.unselect();return}this.hideDropdown(),d(this,V3).focus({preventScroll:!0,focusVisible:d(this,v7)})}}updateColor(e){if(d(this,Zs)&&(d(this,Zs).style.backgroundColor=e),!d(this,Pe))return;const t=d(this,$3).highlightColors.values();for(const s of d(this,Pe).children)s.setAttribute("aria-selected",t.next().value===e)}destroy(){var e,t;(e=d(this,V3))==null||e.remove(),v(this,V3,null),v(this,Zs,null),(t=d(this,Pe))==null||t.remove(),v(this,Pe,null)}};let Br=e3;V3=new WeakMap,Zs=new WeakMap,en=new WeakMap,Pe=new WeakMap,v7=new WeakMap,tn=new WeakMap,y7=new WeakMap,_7=new WeakMap,o6=new WeakMap,$3=new WeakMap,sn=new WeakMap,x7=new WeakMap,k7=new WeakSet,wf=function(){const e=document.createElement("div"),t=d(this,$3)._signal;e.addEventListener("contextmenu",d3,{signal:t}),e.className="dropdown",e.role="listbox",e.setAttribute("aria-multiselectable",!1),e.setAttribute("aria-orientation","vertical"),e.setAttribute("data-l10n-id","pdfjs-editor-colorpicker-dropdown");for(const[s,r]of d(this,$3).highlightColors){const n=document.createElement("button");n.tabIndex="0",n.role="option",n.setAttribute("data-color",r),n.title=s,n.setAttribute("data-l10n-id",d(e3,x7)[s]);const o=document.createElement("span");n.append(o),o.className="swatch",o.style.backgroundColor=r,n.setAttribute("aria-selected",r===d(this,en)),n.addEventListener("click",M(this,S7,vf).bind(this,r),{signal:t}),e.append(n)}return e.addEventListener("keydown",M(this,z7,yf).bind(this),{signal:t}),e},S7=new WeakSet,vf=function(e,t){t.stopPropagation(),d(this,_7).dispatch("switchannotationeditorparams",{source:this,type:d(this,sn),value:e})},z7=new WeakSet,yf=function(e){e3._keyboardManager.exec(this,e)},n2=new WeakSet,hr=function(e){if(d(this,ui,v6)){this.hideDropdown();return}if(v(this,v7,e.detail===0),d(this,o6)||(v(this,o6,new AbortController),window.addEventListener("pointerdown",M(this,_l,cT).bind(this),{signal:d(this,$3).combinedSignal(d(this,o6))})),d(this,Pe)){d(this,Pe).classList.remove("hidden");return}const t=v(this,Pe,M(this,k7,wf).call(this));d(this,V3).append(t)},_l=new WeakSet,cT=function(e){var t;(t=d(this,Pe))!=null&&t.contains(e.target)||this.hideDropdown()},ui=new WeakSet,v6=function(){return d(this,Pe)&&!d(this,Pe).classList.contains("hidden")},w(Br,x7,null);const de=class extends B1{constructor(t){super({...t,name:"highlightEditor"});w(this,A7);w(this,ln);w(this,xl);w(this,kl);w(this,Sl);w(this,P7);w(this,c2);w(this,zl);w(this,cn);w(this,Fs);w(this,Ml);w(this,Ll);w(this,Al);w(this,rn,null);w(this,M7,0);w(this,a2,void 0);w(this,Ns,null);w(this,on,null);w(this,Vt,null);w(this,L7,null);w(this,I7,0);w(this,js,null);w(this,b3,null);w(this,t3,null);w(this,qe,!1);w(this,nn,null);w(this,l2,void 0);w(this,ct,null);w(this,an,"");w(this,m3,void 0);w(this,E7,"");this.color=t.color||de._defaultColor,v(this,m3,t.thickness||de._defaultThickness),v(this,l2,t.opacity||de._defaultOpacity),v(this,a2,t.boxes||null),v(this,E7,t.methodOfCreation||""),v(this,an,t.text||""),this._isDraggable=!1,this.defaultL10nId="pdfjs-editor-highlight-editor",t.highlightId>-1?(v(this,qe,!0),M(this,ln,Cc).call(this,t),M(this,c2,ur).call(this)):d(this,a2)&&(v(this,rn,t.anchorNode),v(this,M7,t.anchorOffset),v(this,L7,t.focusNode),v(this,I7,t.focusOffset),M(this,A7,_f).call(this),M(this,c2,ur).call(this),this.rotate(this.rotation))}static get _keyboardManager(){const t=de.prototype;return A1(this,"_keyboardManager",new va([[["ArrowLeft","mac+ArrowLeft"],t._moveCaret,{args:[0]}],[["ArrowRight","mac+ArrowRight"],t._moveCaret,{args:[1]}],[["ArrowUp","mac+ArrowUp"],t._moveCaret,{args:[2]}],[["ArrowDown","mac+ArrowDown"],t._moveCaret,{args:[3]}]]))}get telemetryInitialData(){return{action:"added",type:d(this,qe)?"free_highlight":"highlight",color:this._uiManager.highlightColorNames.get(this.color),thickness:d(this,m3),methodOfCreation:d(this,E7)}}get telemetryFinalData(){return{type:"highlight",color:this._uiManager.highlightColorNames.get(this.color)}}static computeTelemetryFinalData(t){return{numberOfColors:t.get("color").size}}static initialize(t,s){var r;B1.initialize(t,s),de._defaultColor||(de._defaultColor=((r=s.highlightColors)==null?void 0:r.values().next().value)||"#fff066")}static updateDefaultParams(t,s){switch(t){case T1.HIGHLIGHT_DEFAULT_COLOR:de._defaultColor=s;break;case T1.HIGHLIGHT_THICKNESS:de._defaultThickness=s;break}}translateInPage(t,s){}get toolbarPosition(){return d(this,nn)}updateParams(t,s){switch(t){case T1.HIGHLIGHT_COLOR:M(this,xl,dT).call(this,s);break;case T1.HIGHLIGHT_THICKNESS:M(this,kl,hT).call(this,s);break}}static get defaultPropertiesToUpdate(){return[[T1.HIGHLIGHT_DEFAULT_COLOR,de._defaultColor],[T1.HIGHLIGHT_THICKNESS,de._defaultThickness]]}get propertiesToUpdate(){return[[T1.HIGHLIGHT_COLOR,this.color||de._defaultColor],[T1.HIGHLIGHT_THICKNESS,d(this,m3)||de._defaultThickness],[T1.HIGHLIGHT_FREE,d(this,qe)]]}async addEditToolbar(){const t=await super.addEditToolbar();return t?(this._uiManager.highlightColors&&(v(this,on,new Br({editor:this})),t.addColorPicker(d(this,on))),t):null}disableEditing(){super.disableEditing(),this.div.classList.toggle("disabled",!0)}enableEditing(){super.enableEditing(),this.div.classList.toggle("disabled",!1)}fixAndSetPosition(){return super.fixAndSetPosition(M(this,Fs,n9).call(this))}getBaseTranslation(){return[0,0]}getRect(t,s){return super.getRect(t,s,M(this,Fs,n9).call(this))}onceAdded(t){this.annotationElementId||this.parent.addUndoableEditor(this),t&&this.div.focus()}remove(){M(this,P7,xf).call(this),this._reportTelemetry({action:"deleted"}),super.remove()}rebuild(){!this.parent||(super.rebuild(),this.div!==null&&(M(this,c2,ur).call(this),this.isAttachedToDOM||this.parent.add(this)))}setParent(t){var r;let s=!1;this.parent&&!t?M(this,P7,xf).call(this):t&&(M(this,c2,ur).call(this,t),s=!this.parent&&((r=this.div)==null?void 0:r.classList.contains("selectedEditor"))),super.setParent(t),this.show(this._isVisible),s&&this.select()}rotate(t){var n,o,l;const{drawLayer:s}=this.parent;let r;d(this,qe)?(t=(t-this.rotation+360)%360,r=M(n=de,n6,An).call(n,d(this,b3).box,t)):r=M(o=de,n6,An).call(o,[this.x,this.y,this.width,this.height],t),s.updateProperties(d(this,t3),{bbox:r,root:{"data-main-rotation":t}}),s.updateProperties(d(this,ct),{bbox:M(l=de,n6,An).call(l,d(this,Vt).box,t),root:{"data-main-rotation":t}})}render(){if(this.div)return this.div;const t=super.render();d(this,an)&&(t.setAttribute("aria-label",d(this,an)),t.setAttribute("role","mark")),d(this,qe)?t.classList.add("free"):this.div.addEventListener("keydown",M(this,zl,fT).bind(this),{signal:this._uiManager._signal});const s=v(this,js,document.createElement("div"));t.append(s),s.setAttribute("aria-hidden","true"),s.className="internal",s.style.clipPath=d(this,Ns);const[r,n]=this.parentDimensions;return this.setDims(this.width*r,this.height*n),QE(this,d(this,js),["pointerover","pointerleave"]),this.enableEditing(),t}pointerover(){var t;this.isSelected||(t=this.parent)==null||t.drawLayer.updateProperties(d(this,ct),{rootClass:{hovered:!0}})}pointerleave(){var t;this.isSelected||(t=this.parent)==null||t.drawLayer.updateProperties(d(this,ct),{rootClass:{hovered:!1}})}_moveCaret(t){switch(this.parent.unselect(this),t){case 0:case 2:M(this,cn,pc).call(this,!0);break;case 1:case 3:M(this,cn,pc).call(this,!1);break}}select(){var t;super.select(),d(this,ct)&&((t=this.parent)==null||t.drawLayer.updateProperties(d(this,ct),{rootClass:{hovered:!1,selected:!0}}))}unselect(){var t;super.unselect(),d(this,ct)&&((t=this.parent)==null||t.drawLayer.updateProperties(d(this,ct),{rootClass:{selected:!1}}),d(this,qe)||M(this,cn,pc).call(this,!1))}get _mustFixPosition(){return!d(this,qe)}show(t=this._isVisible){super.show(t),this.parent&&(this.parent.drawLayer.updateProperties(d(this,t3),{rootClass:{hidden:!t}}),this.parent.drawLayer.updateProperties(d(this,ct),{rootClass:{hidden:!t}}))}static startHighlighting(t,s,{target:r,x:n,y:o}){const{x:l,y:c,width:h,height:u}=r.getBoundingClientRect(),f=new AbortController,C=t.combinedSignal(f),p=m=>{f.abort(),M(this,El,mT).call(this,t,m)};window.addEventListener("blur",p,{signal:C}),window.addEventListener("pointerup",p,{signal:C}),window.addEventListener("pointerdown",pe,{capture:!0,passive:!1,signal:C}),window.addEventListener("contextmenu",d3,{signal:C}),r.addEventListener("pointermove",M(this,Il,bT).bind(this,t),{signal:C}),this._freeHighlight=new _u({x:n,y:o},[l,c,h,u],t.scale,this._defaultThickness/2,s,.001),{id:this._freeHighlightId,clipPathId:this._freeHighlightClipId}=t.drawLayer.draw({bbox:[0,0,1,1],root:{viewBox:"0 0 1 1",fill:this._defaultColor,"fill-opacity":this._defaultOpacity},rootClass:{highlight:!0,free:!0},path:{d:this._freeHighlight.toSVGPath()}},!0,!0)}static async deserialize(t,s,r){var g,y,_,z;let n=null;if(t instanceof BA){const{data:{quadPoints:E,rect:H,rotation:A,id:V,color:$,opacity:T,popupRef:P},parent:{page:{pageNumber:R}}}=t;n=t={annotationType:S1.HIGHLIGHT,color:Array.from($),opacity:T,quadPoints:E,boxes:null,pageIndex:R-1,rect:H.slice(0),rotation:A,id:V,deleted:!1,popupRef:P}}else if(t instanceof vu){const{data:{inkLists:E,rect:H,rotation:A,id:V,color:$,borderStyle:{rawWidth:T},popupRef:P},parent:{page:{pageNumber:R}}}=t;n=t={annotationType:S1.HIGHLIGHT,color:Array.from($),thickness:T,inkLists:E,boxes:null,pageIndex:R-1,rect:H.slice(0),rotation:A,id:V,deleted:!1,popupRef:P}}const{color:o,quadPoints:l,inkLists:c,opacity:h}=t,u=await super.deserialize(t,s,r);u.color=u1.makeHexColor(...o),v(u,l2,h||1),c&&v(u,m3,t.thickness),u.annotationElementId=t.id||null,u._initialData=n;const[f,C]=u.pageDimensions,[p,m]=u.pageTranslation;if(l){const E=v(u,a2,[]);for(let H=0;H<l.length;H+=8)E.push({x:(l[H]-p)/f,y:1-(l[H+1]-m)/C,width:(l[H+2]-l[H])/f,height:(l[H+1]-l[H+5])/C});M(g=u,A7,_f).call(g),M(y=u,c2,ur).call(y),u.rotate(u.rotation)}else if(c){v(u,qe,!0);const E=c[0],H={x:E[0]-p,y:C-(E[1]-m)},A=new _u(H,[0,0,f,C],1,d(u,m3)/2,!0,.001);for(let T=0,P=E.length;T<P;T+=2)H.x=E[T]-p,H.y=C-(E[T+1]-m),A.add(H);const{id:V,clipPathId:$}=s.drawLayer.draw({bbox:[0,0,1,1],root:{viewBox:"0 0 1 1",fill:u.color,"fill-opacity":u._defaultOpacity},rootClass:{highlight:!0,free:!0},path:{d:A.toSVGPath()}},!0,!0);M(_=u,ln,Cc).call(_,{highlightOutlines:A.getOutlines(),highlightId:V,clipPathId:$}),M(z=u,c2,ur).call(z),u.rotate(u.parentRotation)}return u}serialize(t=!1){if(this.isEmpty()||t)return null;if(this.deleted)return this.serializeDeleted();const s=this.getRect(0,0),r=B1._colorManager.convert(this.color),n={annotationType:S1.HIGHLIGHT,color:r,opacity:d(this,l2),thickness:d(this,m3),quadPoints:M(this,Ml,CT).call(this),outlines:M(this,Ll,pT).call(this,s),pageIndex:this.pageIndex,rect:s,rotation:M(this,Fs,n9).call(this),structTreeParentId:this._structTreeParentId};return this.annotationElementId&&!M(this,Al,gT).call(this,n)?null:(n.id=this.annotationElementId,n)}renderAnnotationElement(t){return t.updateEdited({rect:this.getRect(0,0)}),null}static canCreateNewEmptyEditor(){return!1}};let mt=de;rn=new WeakMap,M7=new WeakMap,a2=new WeakMap,Ns=new WeakMap,on=new WeakMap,Vt=new WeakMap,L7=new WeakMap,I7=new WeakMap,js=new WeakMap,b3=new WeakMap,t3=new WeakMap,qe=new WeakMap,nn=new WeakMap,l2=new WeakMap,ct=new WeakMap,an=new WeakMap,m3=new WeakMap,E7=new WeakMap,A7=new WeakSet,_f=function(){const t=new yu(d(this,a2),.001);v(this,b3,t.getOutlines()),[this.x,this.y,this.width,this.height]=d(this,b3).box;const s=new yu(d(this,a2),.0025,.001,this._uiManager.direction==="ltr");v(this,Vt,s.getOutlines());const{lastPoint:r}=d(this,Vt);v(this,nn,[(r[0]-this.x)/this.width,(r[1]-this.y)/this.height])},ln=new WeakSet,Cc=function({highlightOutlines:t,highlightId:s,clipPathId:r}){var f,C;v(this,b3,t);const n=1.5;if(v(this,Vt,t.getNewOutline(d(this,m3)/2+n,.0025)),s>=0)v(this,t3,s),v(this,Ns,r),this.parent.drawLayer.finalizeDraw(s,{bbox:t.box,path:{d:t.toSVGPath()}}),v(this,ct,this.parent.drawLayer.drawOutline({rootClass:{highlightOutline:!0,free:!0},bbox:d(this,Vt).box,path:{d:d(this,Vt).toSVGPath()}},!0));else if(this.parent){const p=this.parent.viewport.rotation;this.parent.drawLayer.updateProperties(d(this,t3),{bbox:M(f=de,n6,An).call(f,d(this,b3).box,(p-this.rotation+360)%360),path:{d:t.toSVGPath()}}),this.parent.drawLayer.updateProperties(d(this,ct),{bbox:M(C=de,n6,An).call(C,d(this,Vt).box,p),path:{d:d(this,Vt).toSVGPath()}})}const[o,l,c,h]=t.box;switch(this.rotation){case 0:this.x=o,this.y=l,this.width=c,this.height=h;break;case 90:{const[p,m]=this.parentDimensions;this.x=l,this.y=1-o,this.width=c*m/p,this.height=h*p/m;break}case 180:this.x=1-o,this.y=1-l,this.width=c,this.height=h;break;case 270:{const[p,m]=this.parentDimensions;this.x=1-l,this.y=o,this.width=c*m/p,this.height=h*p/m;break}}const{lastPoint:u}=d(this,Vt);v(this,nn,[(u[0]-o)/c,(u[1]-l)/h])},xl=new WeakSet,dT=function(t){const s=(o,l)=>{var c,h;this.color=o,v(this,l2,l),(c=this.parent)==null||c.drawLayer.updateProperties(d(this,t3),{root:{fill:o,"fill-opacity":l}}),(h=d(this,on))==null||h.updateColor(o)},r=this.color,n=d(this,l2);this.addCommands({cmd:s.bind(this,t,de._defaultOpacity),undo:s.bind(this,r,n),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:T1.HIGHLIGHT_COLOR,overwriteIfSameType:!0,keepUndo:!0}),this._reportTelemetry({action:"color_changed",color:this._uiManager.highlightColorNames.get(t)},!0)},kl=new WeakSet,hT=function(t){const s=d(this,m3),r=n=>{v(this,m3,n),M(this,Sl,uT).call(this,n)};this.addCommands({cmd:r.bind(this,t),undo:r.bind(this,s),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:T1.INK_THICKNESS,overwriteIfSameType:!0,keepUndo:!0}),this._reportTelemetry({action:"thickness_changed",thickness:t},!0)},Sl=new WeakSet,uT=function(t){if(!d(this,qe))return;M(this,ln,Cc).call(this,{highlightOutlines:d(this,b3).getNewOutline(t/2)}),this.fixAndSetPosition();const[s,r]=this.parentDimensions;this.setDims(this.width*s,this.height*r)},P7=new WeakSet,xf=function(){d(this,t3)===null||!this.parent||(this.parent.drawLayer.remove(d(this,t3)),v(this,t3,null),this.parent.drawLayer.remove(d(this,ct)),v(this,ct,null))},c2=new WeakSet,ur=function(t=this.parent){d(this,t3)===null&&({id:xt(this,t3)._,clipPathId:xt(this,Ns)._}=t.drawLayer.draw({bbox:d(this,b3).box,root:{viewBox:"0 0 1 1",fill:this.color,"fill-opacity":d(this,l2)},rootClass:{highlight:!0,free:d(this,qe)},path:{d:d(this,b3).toSVGPath()}},!1,!0),v(this,ct,t.drawLayer.drawOutline({rootClass:{highlightOutline:!0,free:d(this,qe)},bbox:d(this,Vt).box,path:{d:d(this,Vt).toSVGPath()}},d(this,qe))),d(this,js)&&(d(this,js).style.clipPath=d(this,Ns)))},n6=new WeakSet,An=function([t,s,r,n],o){switch(o){case 90:return[1-s-n,t,n,r];case 180:return[1-t-r,1-s-n,r,n];case 270:return[s,1-t-r,n,r]}return[t,s,r,n]},zl=new WeakSet,fT=function(t){de._keyboardManager.exec(this,t)},cn=new WeakSet,pc=function(t){if(!d(this,rn))return;const s=window.getSelection();t?s.setPosition(d(this,rn),d(this,M7)):s.setPosition(d(this,L7),d(this,I7))},Fs=new WeakSet,n9=function(){return d(this,qe)?this.rotation:0},Ml=new WeakSet,CT=function(){if(d(this,qe))return null;const[t,s]=this.pageDimensions,[r,n]=this.pageTranslation,o=d(this,a2),l=new Float32Array(o.length*8);let c=0;for(const{x:h,y:u,width:f,height:C}of o){const p=h*t+r,m=(1-u)*s+n;l[c]=l[c+4]=p,l[c+1]=l[c+3]=m,l[c+2]=l[c+6]=p+f*t,l[c+5]=l[c+7]=m-C*s,c+=8}return l},Ll=new WeakSet,pT=function(t){return d(this,b3).serialize(t,M(this,Fs,n9).call(this))},Il=new WeakSet,bT=function(t,s){this._freeHighlight.add(s)&&t.drawLayer.updateProperties(this._freeHighlightId,{path:{d:this._freeHighlight.toSVGPath()}})},El=new WeakSet,mT=function(t,s){this._freeHighlight.isEmpty()?t.drawLayer.remove(this._freeHighlightId):t.createAndAddNewEditor(s,!1,{highlightId:this._freeHighlightId,highlightOutlines:this._freeHighlight.getOutlines(),clipPathId:this._freeHighlightClipId,methodOfCreation:"main_toolbar"}),this._freeHighlightId=-1,this._freeHighlight=null,this._freeHighlightClipId=""},Al=new WeakSet,gT=function(t){const{color:s}=this._initialData;return t.color.some((r,n)=>r!==s[n])},w(mt,n6),w(mt,Il),w(mt,El),i1(mt,"_defaultColor",null),i1(mt,"_defaultOpacity",1),i1(mt,"_defaultThickness",12),i1(mt,"_type","highlight"),i1(mt,"_editorType",S1.HIGHLIGHT),i1(mt,"_freeHighlightId",-1),i1(mt,"_freeHighlight",null),i1(mt,"_freeHighlightClipId","");class ZA{constructor(){w(this,Us,Object.create(null))}updateProperty(e,t){this[e]=t,this.updateSVGProperty(e,t)}updateProperties(e){if(!!e)for(const[t,s]of Object.entries(e))t.startsWith("_")||this.updateProperty(t,s)}updateSVGProperty(e,t){d(this,Us)[e]=t}toSVGProperties(){const e=d(this,Us);return v(this,Us,Object.create(null)),{root:e}}reset(){v(this,Us,Object.create(null))}updateAll(e=this){this.updateProperties(e)}clone(){G1("Not implemented")}}Us=new WeakMap;const b1=class extends B1{constructor(t){super(t);w(this,T7);w(this,H7);w(this,V7);w(this,Ks);w(this,Pl);w(this,hn);w(this,Xs);w(this,d6);w(this,i3,null);w(this,dn,void 0);i1(this,"_drawId",null);v(this,dn,t.mustBeCommitted||!1),this._addOutlines(t)}_addOutlines(t){t.drawOutlines&&(M(this,T7,kf).call(this,t),M(this,Ks,a9).call(this))}static _mergeSVGProperties(t,s){const r=new Set(Object.keys(t));for(const[n,o]of Object.entries(s))r.has(n)?Object.assign(t[n],o):t[n]=o;return t}static getDefaultDrawingOptions(t){G1("Not implemented")}static get typesMap(){G1("Not implemented")}static get isDrawer(){return!0}static get supportMultipleDrawings(){return!1}static updateDefaultParams(t,s){const r=this.typesMap.get(t);r&&this._defaultDrawingOptions.updateProperty(r,s),this._currentParent&&(d(b1,Oe).updateProperty(r,s),this._currentParent.drawLayer.updateProperties(this._currentDrawId,this._defaultDrawingOptions.toSVGProperties()))}updateParams(t,s){const r=this.constructor.typesMap.get(t);r&&this._updateProperty(t,r,s)}static get defaultPropertiesToUpdate(){const t=[],s=this._defaultDrawingOptions;for(const[r,n]of this.typesMap)t.push([r,s[n]]);return t}get propertiesToUpdate(){const t=[],{_drawingOptions:s}=this;for(const[r,n]of this.constructor.typesMap)t.push([r,s[n]]);return t}_updateProperty(t,s,r){const n=this._drawingOptions,o=n[s],l=c=>{var u;n.updateProperty(s,c);const h=d(this,i3).updateProperty(s,c);h&&M(this,Xs,l9).call(this,h),(u=this.parent)==null||u.drawLayer.updateProperties(this._drawId,n.toSVGProperties())};this.addCommands({cmd:l.bind(this,r),undo:l.bind(this,o),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:t,overwriteIfSameType:!0,keepUndo:!0})}_onResizing(){var t;(t=this.parent)==null||t.drawLayer.updateProperties(this._drawId,b1._mergeSVGProperties(d(this,i3).getPathResizingSVGProperties(M(this,hn,bc).call(this)),{bbox:M(this,d6,Pn).call(this)}))}_onResized(){var t;(t=this.parent)==null||t.drawLayer.updateProperties(this._drawId,b1._mergeSVGProperties(d(this,i3).getPathResizedSVGProperties(M(this,hn,bc).call(this)),{bbox:M(this,d6,Pn).call(this)}))}_onTranslating(t,s){var r;(r=this.parent)==null||r.drawLayer.updateProperties(this._drawId,{bbox:M(this,d6,Pn).call(this)})}_onTranslated(){var t;(t=this.parent)==null||t.drawLayer.updateProperties(this._drawId,b1._mergeSVGProperties(d(this,i3).getPathTranslatedSVGProperties(M(this,hn,bc).call(this),this.parentDimensions),{bbox:M(this,d6,Pn).call(this)}))}_onStartDragging(){var t;(t=this.parent)==null||t.drawLayer.updateProperties(this._drawId,{rootClass:{moving:!0}})}_onStopDragging(){var t;(t=this.parent)==null||t.drawLayer.updateProperties(this._drawId,{rootClass:{moving:!1}})}commit(){super.commit(),this.disableEditMode(),this.disableEditing()}disableEditing(){super.disableEditing(),this.div.classList.toggle("disabled",!0)}enableEditing(){super.enableEditing(),this.div.classList.toggle("disabled",!1)}getBaseTranslation(){return[0,0]}get isResizable(){return!0}onceAdded(t){this.annotationElementId||this.parent.addUndoableEditor(this),this._isDraggable=!0,d(this,dn)&&(v(this,dn,!1),this.commit(),this.parent.setSelected(this),t&&this.isOnScreen&&this.div.focus())}remove(){M(this,V7,zf).call(this),super.remove()}rebuild(){!this.parent||(super.rebuild(),this.div!==null&&(M(this,Ks,a9).call(this),M(this,Xs,l9).call(this,d(this,i3).box),this.isAttachedToDOM||this.parent.add(this)))}setParent(t){var r;let s=!1;this.parent&&!t?(this._uiManager.removeShouldRescale(this),M(this,V7,zf).call(this)):t&&(this._uiManager.addShouldRescale(this),M(this,Ks,a9).call(this,t),s=!this.parent&&((r=this.div)==null?void 0:r.classList.contains("selectedEditor"))),super.setParent(t),s&&this.select()}rotate(){!this.parent||this.parent.drawLayer.updateProperties(this._drawId,b1._mergeSVGProperties({bbox:M(this,d6,Pn).call(this)},d(this,i3).updateRotation((this.parentRotation-this.rotation+360)%360)))}onScaleChanging(){!this.parent||M(this,Xs,l9).call(this,d(this,i3).updateParentDimensions(this.parentDimensions,this.parent.scale))}static onScaleChangingWhenDrawing(){}render(){if(this.div)return this.div;let t,s;this._isCopy&&(t=this.x,s=this.y);const r=super.render();r.classList.add("draw");const n=document.createElement("div");r.append(n),n.setAttribute("aria-hidden","true"),n.className="internal";const[o,l]=this.parentDimensions;return this.setDims(this.width*o,this.height*l),this._uiManager.addShouldRescale(this),this.disableEditing(),this._isCopy&&this._moveAfterPaste(t,s),r}static createDrawerInstance(t,s,r,n,o){G1("Not implemented")}static startDrawing(t,s,r,n){var y,_;const{target:o,offsetX:l,offsetY:c,pointerId:h,pointerType:u}=n;if(d(b1,l6)&&d(b1,l6)!==u)return;const{viewport:{rotation:f}}=t,{width:C,height:p}=o.getBoundingClientRect(),m=v(b1,Ws,new AbortController),g=t.combinedSignal(m);if(d(b1,a6)||v(b1,a6,h),(y=d(b1,l6))!=null||v(b1,l6,u),window.addEventListener("pointerup",z=>{var E;d(b1,a6)===z.pointerId?this._endDraw(z):(E=d(b1,c6))==null||E.delete(z.pointerId)},{signal:g}),window.addEventListener("pointercancel",z=>{var E;d(b1,a6)===z.pointerId?this._currentParent.endDrawingSession():(E=d(b1,c6))==null||E.delete(z.pointerId)},{signal:g}),window.addEventListener("pointerdown",z=>{d(b1,l6)===z.pointerType&&((d(b1,c6)||v(b1,c6,new Set)).add(z.pointerId),d(b1,Oe).isCancellable()&&(d(b1,Oe).removeLastElement(),d(b1,Oe).isEmpty()?this._currentParent.endDrawingSession(!0):this._endDraw(null)))},{capture:!0,passive:!1,signal:g}),window.addEventListener("contextmenu",d3,{signal:g}),o.addEventListener("pointermove",this._drawMove.bind(this),{signal:g}),o.addEventListener("touchmove",z=>{z.timeStamp===d(b1,Ys)&&pe(z)},{signal:g}),t.toggleDrawing(),(_=s._editorUndoBar)==null||_.hide(),d(b1,Oe)){t.drawLayer.updateProperties(this._currentDrawId,d(b1,Oe).startNew(l,c,C,p,f));return}s.updateUIForDefaultProperties(this),v(b1,Oe,this.createDrawerInstance(l,c,C,p,f)),v(b1,Gs,this.getDefaultDrawingOptions()),this._currentParent=t,{id:this._currentDrawId}=t.drawLayer.draw(this._mergeSVGProperties(d(b1,Gs).toSVGProperties(),d(b1,Oe).defaultSVGProperties),!0,!1)}static _drawMove(t){var o;if(v(b1,Ys,-1),!d(b1,Oe))return;const{offsetX:s,offsetY:r,pointerId:n}=t;if(d(b1,a6)===n){if(((o=d(b1,c6))==null?void 0:o.size)>=1){this._endDraw(t);return}this._currentParent.drawLayer.updateProperties(this._currentDrawId,d(b1,Oe).add(s,r)),v(b1,Ys,t.timeStamp),pe(t)}}static _cleanup(t){t&&(this._currentDrawId=-1,this._currentParent=null,v(b1,Oe,null),v(b1,Gs,null),v(b1,l6,null),v(b1,Ys,NaN)),d(b1,Ws)&&(d(b1,Ws).abort(),v(b1,Ws,null),v(b1,a6,NaN),v(b1,c6,null))}static _endDraw(t){const s=this._currentParent;if(!!s){if(s.toggleDrawing(!0),this._cleanup(!1),(t==null?void 0:t.target)===s.div&&s.drawLayer.updateProperties(this._currentDrawId,d(b1,Oe).end(t.offsetX,t.offsetY)),this.supportMultipleDrawings){const r=d(b1,Oe),n=this._currentDrawId,o=r.getLastElement();s.addCommands({cmd:()=>{s.drawLayer.updateProperties(n,r.setLastElement(o))},undo:()=>{s.drawLayer.updateProperties(n,r.removeLastElement())},mustExec:!1,type:T1.DRAW_STEP});return}this.endDrawing(!1)}}static endDrawing(t){const s=this._currentParent;if(!s)return null;if(s.toggleDrawing(!0),s.cleanUndoStack(T1.DRAW_STEP),!d(b1,Oe).isEmpty()){const{pageDimensions:[r,n],scale:o}=s,l=s.createAndAddNewEditor({offsetX:0,offsetY:0},!1,{drawId:this._currentDrawId,drawOutlines:d(b1,Oe).getOutlines(r*o,n*o,o,this._INNER_MARGIN),drawingOptions:d(b1,Gs),mustBeCommitted:!t});return this._cleanup(!0),l}return s.drawLayer.remove(this._currentDrawId),this._cleanup(!0),null}createDrawingOptions(t){}static deserializeDraw(t,s,r,n,o,l){G1("Not implemented")}static async deserialize(t,s,r){var f,C;const{rawDims:{pageWidth:n,pageHeight:o,pageX:l,pageY:c}}=s.viewport,h=this.deserializeDraw(l,c,n,o,this._INNER_MARGIN,t),u=await super.deserialize(t,s,r);return u.createDrawingOptions(t),M(f=u,T7,kf).call(f,{drawOutlines:h}),M(C=u,Ks,a9).call(C),u.onScaleChanging(),u.rotate(),u}serializeDraw(t){const[s,r]=this.pageTranslation,[n,o]=this.pageDimensions;return d(this,i3).serialize([s,r,n,o],t)}renderAnnotationElement(t){return t.updateEdited({rect:this.getRect(0,0)}),null}static canCreateNewEmptyEditor(){return!1}};let Pt=b1;i3=new WeakMap,dn=new WeakMap,Oe=new WeakMap,Ws=new WeakMap,Gs=new WeakMap,a6=new WeakMap,l6=new WeakMap,c6=new WeakMap,Ys=new WeakMap,T7=new WeakSet,kf=function({drawOutlines:t,drawId:s,drawingOptions:r}){v(this,i3,t),this._drawingOptions||(this._drawingOptions=r),s>=0?(this._drawId=s,this.parent.drawLayer.finalizeDraw(s,t.defaultProperties)):this._drawId=M(this,H7,Sf).call(this,t,this.parent),M(this,Xs,l9).call(this,t.box)},H7=new WeakSet,Sf=function(t,s){const{id:r}=s.drawLayer.draw(b1._mergeSVGProperties(this._drawingOptions.toSVGProperties(),t.defaultSVGProperties),!1,!1);return r},V7=new WeakSet,zf=function(){this._drawId===null||!this.parent||(this.parent.drawLayer.remove(this._drawId),this._drawId=null,this._drawingOptions.reset())},Ks=new WeakSet,a9=function(t=this.parent){if(!(this._drawId!==null&&this.parent===t)){if(this._drawId!==null){this.parent.drawLayer.updateParent(this._drawId,t.drawLayer);return}this._drawingOptions.updateAll(),this._drawId=M(this,H7,Sf).call(this,d(this,i3),t)}},Pl=new WeakSet,wT=function([t,s,r,n]){const{parentDimensions:[o,l],rotation:c}=this;switch(c){case 90:return[s,1-t,r*(l/o),n*(o/l)];case 180:return[1-t,1-s,r,n];case 270:return[1-s,t,r*(l/o),n*(o/l)];default:return[t,s,r,n]}},hn=new WeakSet,bc=function(){const{x:t,y:s,width:r,height:n,parentDimensions:[o,l],rotation:c}=this;switch(c){case 90:return[1-s,t,r*(o/l),n*(l/o)];case 180:return[1-t,1-s,r,n];case 270:return[s,1-t,r*(o/l),n*(l/o)];default:return[t,s,r,n]}},Xs=new WeakSet,l9=function(t){if([this.x,this.y,this.width,this.height]=M(this,Pl,wT).call(this,t),this.div){this.fixAndSetPosition();const[s,r]=this.parentDimensions;this.setDims(this.width*s,this.height*r)}this._onResized()},d6=new WeakSet,Pn=function(){const{x:t,y:s,width:r,height:n,rotation:o,parentRotation:l,parentDimensions:[c,h]}=this;switch((o*4+l)/90){case 1:return[1-s-n,t,n,r];case 2:return[1-t-r,1-s-n,r,n];case 3:return[s,1-t-r,n,r];case 4:return[t,s-r*(c/h),n*(h/c),r*(c/h)];case 5:return[1-s,t,r*(c/h),n*(h/c)];case 6:return[1-t-n*(h/c),1-s,n*(h/c),r*(c/h)];case 7:return[s-r*(c/h),1-t-n*(h/c),r*(c/h),n*(h/c)];case 8:return[t-r,s-n,r,n];case 9:return[1-s,t-r,n,r];case 10:return[1-t,1-s,r,n];case 11:return[s-n,1-t,n,r];case 12:return[t-n*(h/c),s,n*(h/c),r*(c/h)];case 13:return[1-s-r*(c/h),t-n*(h/c),r*(c/h),n*(h/c)];case 14:return[1-t,1-s-r*(c/h),n*(h/c),r*(c/h)];case 15:return[s,1-t,r*(c/h),n*(h/c)];default:return[t,s,r,n]}},i1(Pt,"_currentDrawId",-1),i1(Pt,"_currentParent",null),w(Pt,Oe,null),w(Pt,Ws,null),w(Pt,Gs,null),w(Pt,a6,NaN),w(Pt,l6,null),w(Pt,c6,null),w(Pt,Ys,NaN),i1(Pt,"_INNER_MARGIN",3);class r61{constructor(e,t,s,r,n,o){w(this,fn);w(this,fi,new Float64Array(6));w(this,Be,void 0);w(this,De,void 0);w(this,qs,void 0);w(this,un,void 0);w(this,gt,void 0);w(this,Qe,"");w(this,g3,0);w(this,Qs,new Ea);w(this,Js,void 0);w(this,er,void 0);v(this,Js,s),v(this,er,r),v(this,qs,n),v(this,un,o),[e,t]=M(this,fn,mc).call(this,e,t);const l=v(this,Be,[NaN,NaN,NaN,NaN,e,t]);v(this,gt,[e,t]),v(this,De,[{line:l,points:d(this,gt)}]),d(this,fi).set(l,0)}updateProperty(e,t){e==="stroke-width"&&v(this,un,t)}isEmpty(){return!d(this,De)||d(this,De).length===0}isCancellable(){return d(this,gt).length<=10}add(e,t){[e,t]=M(this,fn,mc).call(this,e,t);const[s,r,n,o]=d(this,fi).subarray(2,6),l=e-n,c=t-o;return Math.hypot(d(this,Js)*l,d(this,er)*c)<=2?null:(d(this,gt).push(e,t),isNaN(s)?(d(this,fi).set([n,o,e,t],2),d(this,Be).push(NaN,NaN,NaN,NaN,e,t),{path:{d:this.toSVGPath()}}):(isNaN(d(this,fi)[0])&&d(this,Be).splice(6,6),d(this,fi).set([s,r,n,o,e,t],0),d(this,Be).push(...d1.createBezierPoints(s,r,n,o,e,t)),{path:{d:this.toSVGPath()}}))}end(e,t){const s=this.add(e,t);return s||(d(this,gt).length===2?{path:{d:this.toSVGPath()}}:null)}startNew(e,t,s,r,n){v(this,Js,s),v(this,er,r),v(this,qs,n),[e,t]=M(this,fn,mc).call(this,e,t);const o=v(this,Be,[NaN,NaN,NaN,NaN,e,t]);v(this,gt,[e,t]);const l=d(this,De).at(-1);return l&&(l.line=new Float32Array(l.line),l.points=new Float32Array(l.points)),d(this,De).push({line:o,points:d(this,gt)}),d(this,fi).set(o,0),v(this,g3,0),this.toSVGPath(),null}getLastElement(){return d(this,De).at(-1)}setLastElement(e){return d(this,De)?(d(this,De).push(e),v(this,Be,e.line),v(this,gt,e.points),v(this,g3,0),{path:{d:this.toSVGPath()}}):d(this,Qs).setLastElement(e)}removeLastElement(){if(!d(this,De))return d(this,Qs).removeLastElement();d(this,De).pop(),v(this,Qe,"");for(let e=0,t=d(this,De).length;e<t;e++){const{line:s,points:r}=d(this,De)[e];v(this,Be,s),v(this,gt,r),v(this,g3,0),this.toSVGPath()}return{path:{d:d(this,Qe)}}}toSVGPath(){const e=d1.svgRound(d(this,Be)[4]),t=d1.svgRound(d(this,Be)[5]);if(d(this,gt).length===2)return v(this,Qe,`${d(this,Qe)} M ${e} ${t} Z`),d(this,Qe);if(d(this,gt).length<=6){const r=d(this,Qe).lastIndexOf("M");v(this,Qe,`${d(this,Qe).slice(0,r)} M ${e} ${t}`),v(this,g3,6)}if(d(this,gt).length===4){const r=d1.svgRound(d(this,Be)[10]),n=d1.svgRound(d(this,Be)[11]);return v(this,Qe,`${d(this,Qe)} L ${r} ${n}`),v(this,g3,12),d(this,Qe)}const s=[];d(this,g3)===0&&(s.push(`M ${e} ${t}`),v(this,g3,6));for(let r=d(this,g3),n=d(this,Be).length;r<n;r+=6){const[o,l,c,h,u,f]=d(this,Be).slice(r,r+6).map(d1.svgRound);s.push(`C${o} ${l} ${c} ${h} ${u} ${f}`)}return v(this,Qe,d(this,Qe)+s.join(" ")),v(this,g3,d(this,Be).length),d(this,Qe)}getOutlines(e,t,s,r){const n=d(this,De).at(-1);return n.line=new Float32Array(n.line),n.points=new Float32Array(n.points),d(this,Qs).build(d(this,De),e,t,s,d(this,qs),d(this,un),r),v(this,fi,null),v(this,Be,null),v(this,De,null),v(this,Qe,null),d(this,Qs)}get defaultSVGProperties(){return{root:{viewBox:"0 0 10000 10000"},rootClass:{draw:!0},bbox:[0,0,1,1]}}}fi=new WeakMap,Be=new WeakMap,De=new WeakMap,qs=new WeakMap,un=new WeakMap,gt=new WeakMap,Qe=new WeakMap,g3=new WeakMap,Qs=new WeakMap,Js=new WeakMap,er=new WeakMap,fn=new WeakSet,mc=function(e,t){return d1._normalizePoint(e,t,d(this,Js),d(this,er),d(this,qs))};class Ea extends d1{constructor(){super(...arguments);w(this,O3);w(this,Tl);w(this,Hl);w(this,Vl);w(this,wt,void 0);w(this,$7,0);w(this,O7,void 0);w(this,s3,void 0);w(this,Ci,void 0);w(this,pi,void 0);w(this,Cn,void 0);w(this,pn,void 0);w(this,tr,void 0)}build(t,s,r,n,o,l,c){v(this,Ci,s),v(this,pi,r),v(this,Cn,n),v(this,pn,o),v(this,tr,l),v(this,O7,c!=null?c:0),v(this,s3,t),M(this,Hl,yT).call(this)}get thickness(){return d(this,tr)}setLastElement(t){return d(this,s3).push(t),{path:{d:this.toSVGPath()}}}removeLastElement(){return d(this,s3).pop(),{path:{d:this.toSVGPath()}}}toSVGPath(){const t=[];for(const{line:s}of d(this,s3)){if(t.push(`M${d1.svgRound(s[4])} ${d1.svgRound(s[5])}`),s.length===6){t.push("Z");continue}if(s.length===12&&isNaN(s[6])){t.push(`L${d1.svgRound(s[10])} ${d1.svgRound(s[11])}`);continue}for(let r=6,n=s.length;r<n;r+=6){const[o,l,c,h,u,f]=s.subarray(r,r+6).map(d1.svgRound);t.push(`C${o} ${l} ${c} ${h} ${u} ${f}`)}}return t.join("")}serialize([t,s,r,n],o){const l=[],c=[],[h,u,f,C]=M(this,Tl,vT).call(this);let p,m,g,y,_,z,E,H,A;switch(d(this,pn)){case 0:A=d1._rescale,p=t,m=s+n,g=r,y=-n,_=t+h*r,z=s+(1-u-C)*n,E=t+(h+f)*r,H=s+(1-u)*n;break;case 90:A=d1._rescaleAndSwap,p=t,m=s,g=r,y=n,_=t+u*r,z=s+h*n,E=t+(u+C)*r,H=s+(h+f)*n;break;case 180:A=d1._rescale,p=t+r,m=s,g=-r,y=n,_=t+(1-h-f)*r,z=s+u*n,E=t+(1-h)*r,H=s+(u+C)*n;break;case 270:A=d1._rescaleAndSwap,p=t+r,m=s+n,g=-r,y=-n,_=t+(1-u-C)*r,z=s+(1-h-f)*n,E=t+(1-u)*r,H=s+(1-h)*n;break}for(const{line:V,points:$}of d(this,s3))l.push(A(V,p,m,g,y,o?new Array(V.length):null)),c.push(A($,p,m,g,y,o?new Array($.length):null));return{lines:l,points:c,rect:[_,z,E,H]}}static deserialize(t,s,r,n,o,{paths:{lines:l,points:c},rotation:h,thickness:u}){const f=[];let C,p,m,g,y;switch(h){case 0:y=d1._rescale,C=-t/r,p=s/n+1,m=1/r,g=-1/n;break;case 90:y=d1._rescaleAndSwap,C=-s/n,p=-t/r,m=1/n,g=1/r;break;case 180:y=d1._rescale,C=t/r+1,p=-s/n,m=-1/r,g=1/n;break;case 270:y=d1._rescaleAndSwap,C=s/n+1,p=t/r+1,m=-1/n,g=-1/r;break}if(!l){l=[];for(const z of c){const E=z.length;if(E===2){l.push(new Float32Array([NaN,NaN,NaN,NaN,z[0],z[1]]));continue}if(E===4){l.push(new Float32Array([NaN,NaN,NaN,NaN,z[0],z[1],NaN,NaN,NaN,NaN,z[2],z[3]]));continue}const H=new Float32Array(3*(E-2));l.push(H);let[A,V,$,T]=z.subarray(0,4);H.set([NaN,NaN,NaN,NaN,A,V],0);for(let P=4;P<E;P+=2){const R=z[P],Z=z[P+1];H.set(d1.createBezierPoints(A,V,$,T,R,Z),(P-2)*3),[A,V,$,T]=[$,T,R,Z]}}}for(let z=0,E=l.length;z<E;z++)f.push({line:y(l[z].map(H=>H!=null?H:NaN),C,p,m,g),points:y(c[z].map(H=>H!=null?H:NaN),C,p,m,g)});const _=new this.prototype.constructor;return _.build(f,r,n,1,h,u,o),_}get box(){return d(this,wt)}updateProperty(t,s){return t==="stroke-width"?M(this,Vl,_T).call(this,s):null}updateParentDimensions([t,s],r){const[n,o]=M(this,O3,v2).call(this);v(this,Ci,t),v(this,pi,s),v(this,Cn,r);const[l,c]=M(this,O3,v2).call(this),h=l-n,u=c-o,f=d(this,wt);return f[0]-=h,f[1]-=u,f[2]+=2*h,f[3]+=2*u,f}updateRotation(t){return v(this,$7,t),{path:{transform:this.rotationTransform}}}get viewBox(){return d(this,wt).map(d1.svgRound).join(" ")}get defaultProperties(){const[t,s]=d(this,wt);return{root:{viewBox:this.viewBox},path:{"transform-origin":`${d1.svgRound(t)} ${d1.svgRound(s)}`}}}get rotationTransform(){const[,,t,s]=d(this,wt);let r=0,n=0,o=0,l=0,c=0,h=0;switch(d(this,$7)){case 90:n=s/t,o=-t/s,c=t;break;case 180:r=-1,l=-1,c=t,h=s;break;case 270:n=-s/t,o=t/s,h=s;break;default:return""}return`matrix(${r} ${n} ${o} ${l} ${d1.svgRound(c)} ${d1.svgRound(h)})`}getPathResizingSVGProperties([t,s,r,n]){const[o,l]=M(this,O3,v2).call(this),[c,h,u,f]=d(this,wt);if(Math.abs(u-o)<=d1.PRECISION||Math.abs(f-l)<=d1.PRECISION){const y=t+r/2-(c+u/2),_=s+n/2-(h+f/2);return{path:{"transform-origin":`${d1.svgRound(t)} ${d1.svgRound(s)}`,transform:`${this.rotationTransform} translate(${y} ${_})`}}}const C=(r-2*o)/(u-2*o),p=(n-2*l)/(f-2*l),m=u/r,g=f/n;return{path:{"transform-origin":`${d1.svgRound(c)} ${d1.svgRound(h)}`,transform:`${this.rotationTransform} scale(${m} ${g}) translate(${d1.svgRound(o)} ${d1.svgRound(l)}) scale(${C} ${p}) translate(${d1.svgRound(-o)} ${d1.svgRound(-l)})`}}}getPathResizedSVGProperties([t,s,r,n]){const[o,l]=M(this,O3,v2).call(this),c=d(this,wt),[h,u,f,C]=c;if(c[0]=t,c[1]=s,c[2]=r,c[3]=n,Math.abs(f-o)<=d1.PRECISION||Math.abs(C-l)<=d1.PRECISION){const _=t+r/2-(h+f/2),z=s+n/2-(u+C/2);for(const{line:E,points:H}of d(this,s3))d1._translate(E,_,z,E),d1._translate(H,_,z,H);return{root:{viewBox:this.viewBox},path:{"transform-origin":`${d1.svgRound(t)} ${d1.svgRound(s)}`,transform:this.rotationTransform||null,d:this.toSVGPath()}}}const p=(r-2*o)/(f-2*o),m=(n-2*l)/(C-2*l),g=-p*(h+o)+t+o,y=-m*(u+l)+s+l;if(p!==1||m!==1||g!==0||y!==0)for(const{line:_,points:z}of d(this,s3))d1._rescale(_,g,y,p,m,_),d1._rescale(z,g,y,p,m,z);return{root:{viewBox:this.viewBox},path:{"transform-origin":`${d1.svgRound(t)} ${d1.svgRound(s)}`,transform:this.rotationTransform||null,d:this.toSVGPath()}}}getPathTranslatedSVGProperties([t,s],r){const[n,o]=r,l=d(this,wt),c=t-l[0],h=s-l[1];if(d(this,Ci)===n&&d(this,pi)===o)for(const{line:u,points:f}of d(this,s3))d1._translate(u,c,h,u),d1._translate(f,c,h,f);else{const u=d(this,Ci)/n,f=d(this,pi)/o;v(this,Ci,n),v(this,pi,o);for(const{line:C,points:p}of d(this,s3))d1._rescale(C,c,h,u,f,C),d1._rescale(p,c,h,u,f,p);l[2]*=u,l[3]*=f}return l[0]=t,l[1]=s,{root:{viewBox:this.viewBox},path:{d:this.toSVGPath(),"transform-origin":`${d1.svgRound(t)} ${d1.svgRound(s)}`}}}get defaultSVGProperties(){const t=d(this,wt);return{root:{viewBox:this.viewBox},rootClass:{draw:!0},path:{d:this.toSVGPath(),"transform-origin":`${d1.svgRound(t[0])} ${d1.svgRound(t[1])}`,transform:this.rotationTransform||null},bbox:t}}}wt=new WeakMap,$7=new WeakMap,O7=new WeakMap,s3=new WeakMap,Ci=new WeakMap,pi=new WeakMap,Cn=new WeakMap,pn=new WeakMap,tr=new WeakMap,O3=new WeakSet,v2=function(t=d(this,tr)){const s=d(this,O7)+t/2*d(this,Cn);return d(this,pn)%180===0?[s/d(this,Ci),s/d(this,pi)]:[s/d(this,pi),s/d(this,Ci)]},Tl=new WeakSet,vT=function(){const[t,s,r,n]=d(this,wt),[o,l]=M(this,O3,v2).call(this,0);return[t+o,s+l,r-2*o,n-2*l]},Hl=new WeakSet,yT=function(){const t=v(this,wt,new Float32Array([1/0,1/0,-1/0,-1/0]));for(const{line:n}of d(this,s3)){if(n.length<=12){for(let c=4,h=n.length;c<h;c+=6)u1.pointBoundingBox(n[c],n[c+1],t);continue}let o=n[4],l=n[5];for(let c=6,h=n.length;c<h;c+=6){const[u,f,C,p,m,g]=n.subarray(c,c+6);u1.bezierBoundingBox(o,l,u,f,C,p,m,g,t),o=m,l=g}}const[s,r]=M(this,O3,v2).call(this);t[0]=ot(t[0]-s,0,1),t[1]=ot(t[1]-r,0,1),t[2]=ot(t[2]+s,0,1),t[3]=ot(t[3]+r,0,1),t[2]-=t[0],t[3]-=t[1]},Vl=new WeakSet,_T=function(t){const[s,r]=M(this,O3,v2).call(this);v(this,tr,t);const[n,o]=M(this,O3,v2).call(this),[l,c]=[n-s,o-r],h=d(this,wt);return h[0]-=l,h[1]-=c,h[2]+=2*l,h[3]+=2*c,h};class e4 extends ZA{constructor(e){super(),this._viewParameters=e,super.updateProperties({fill:"none",stroke:B1._defaultLineColor,"stroke-opacity":1,"stroke-width":1,"stroke-linecap":"round","stroke-linejoin":"round","stroke-miterlimit":10})}updateSVGProperty(e,t){e==="stroke-width"&&(t!=null||(t=this["stroke-width"]),t*=this._viewParameters.realScale),super.updateSVGProperty(e,t)}clone(){const e=new e4(this._viewParameters);return e.updateAll(this),e}}const Vu=class extends Pt{constructor(t){super({...t,name:"inkEditor"});w(this,$l);this._willKeepAspectRatio=!0,this.defaultL10nId="pdfjs-editor-ink-editor"}static initialize(t,s){B1.initialize(t,s),this._defaultDrawingOptions=new e4(s.viewParameters)}static getDefaultDrawingOptions(t){const s=this._defaultDrawingOptions.clone();return s.updateProperties(t),s}static get supportMultipleDrawings(){return!0}static get typesMap(){return A1(this,"typesMap",new Map([[T1.INK_THICKNESS,"stroke-width"],[T1.INK_COLOR,"stroke"],[T1.INK_OPACITY,"stroke-opacity"]]))}static createDrawerInstance(t,s,r,n,o){return new r61(t,s,r,n,o,this._defaultDrawingOptions["stroke-width"])}static deserializeDraw(t,s,r,n,o,l){return Ea.deserialize(t,s,r,n,o,l)}static async deserialize(t,s,r){let n=null;if(t instanceof vu){const{data:{inkLists:l,rect:c,rotation:h,id:u,color:f,opacity:C,borderStyle:{rawWidth:p},popupRef:m},parent:{page:{pageNumber:g}}}=t;n=t={annotationType:S1.INK,color:Array.from(f),thickness:p,opacity:C,paths:{points:l},boxes:null,pageIndex:g-1,rect:c.slice(0),rotation:h,id:u,deleted:!1,popupRef:m}}const o=await super.deserialize(t,s,r);return o.annotationElementId=t.id||null,o._initialData=n,o}onScaleChanging(){if(!this.parent)return;super.onScaleChanging();const{_drawId:t,_drawingOptions:s,parent:r}=this;s.updateSVGProperty("stroke-width"),r.drawLayer.updateProperties(t,s.toSVGProperties())}static onScaleChangingWhenDrawing(){const t=this._currentParent;!t||(super.onScaleChangingWhenDrawing(),this._defaultDrawingOptions.updateSVGProperty("stroke-width"),t.drawLayer.updateProperties(this._currentDrawId,this._defaultDrawingOptions.toSVGProperties()))}createDrawingOptions({color:t,thickness:s,opacity:r}){this._drawingOptions=Vu.getDefaultDrawingOptions({stroke:u1.makeHexColor(...t),"stroke-width":s,"stroke-opacity":r})}serialize(t=!1){if(this.isEmpty())return null;if(this.deleted)return this.serializeDeleted();const{lines:s,points:r,rect:n}=this.serializeDraw(t),{_drawingOptions:{stroke:o,"stroke-opacity":l,"stroke-width":c}}=this,h={annotationType:S1.INK,color:B1._colorManager.convert(o),opacity:l,thickness:c,paths:{lines:s,points:r},pageIndex:this.pageIndex,rect:n,rotation:this.rotation,structTreeParentId:this._structTreeParentId};return t?(h.isCopy=!0,h):this.annotationElementId&&!M(this,$l,xT).call(this,h)?null:(h.id=this.annotationElementId,h)}renderAnnotationElement(t){const{points:s,rect:r}=this.serializeDraw(!1);return t.updateEdited({rect:r,thickness:this._drawingOptions["stroke-width"],points:s}),null}};let Dr=Vu;$l=new WeakSet,xT=function(t){const{color:s,thickness:r,opacity:n,pageIndex:o}=this._initialData;return this._hasBeenMoved||this._hasBeenResized||t.color.some((l,c)=>l!==s[c])||t.thickness!==r||t.opacity!==n||t.pageIndex!==o},i1(Dr,"_type","ink"),i1(Dr,"_editorType",S1.INK),i1(Dr,"_defaultDrawingOptions",null);class xu extends Ea{toSVGPath(){let e=super.toSVGPath();return e.endsWith("Z")||(e+="Z"),e}}const t4=8,Aa=3;class ze{static extractContoursFromText(e,{fontFamily:t,fontStyle:s,fontWeight:r},n,o,l,c){let h=new OffscreenCanvas(1,1),u=h.getContext("2d",{alpha:!1});const f=200,C=u.font=`${s} ${r} ${f}px ${t}`,{actualBoundingBoxLeft:p,actualBoundingBoxRight:m,actualBoundingBoxAscent:g,actualBoundingBoxDescent:y,fontBoundingBoxAscent:_,fontBoundingBoxDescent:z,width:E}=u.measureText(e),H=1.5,A=Math.ceil(Math.max(Math.abs(p)+Math.abs(m)||0,E)*H),V=Math.ceil(Math.max(Math.abs(g)+Math.abs(y)||f,Math.abs(_)+Math.abs(z)||f)*H);h=new OffscreenCanvas(A,V),u=h.getContext("2d",{alpha:!0,willReadFrequently:!0}),u.font=C,u.filter="grayscale(1)",u.fillStyle="white",u.fillRect(0,0,A,V),u.fillStyle="black",u.fillText(e,A*(H-1)/2,V*(3-H)/2);const $=M(this,R7,If).call(this,u.getImageData(0,0,A,V).data),T=M(this,Zl,LT).call(this,$),P=M(this,Z7,Ef).call(this,T),R=M(this,D7,Lf).call(this,$,A,V,P);return this.processDrawnLines({lines:{curves:R,width:A,height:V},pageWidth:n,pageHeight:o,rotation:l,innerMargin:c,mustSmooth:!0,areContours:!0})}static process(e,t,s,r,n){const[o,l,c]=M(this,Nl,IT).call(this,e),[h,u]=M(this,Rl,MT).call(this,o,l,c,Math.hypot(l,c)*d(this,ir).sigmaSFactor,d(this,ir).sigmaR,d(this,ir).kernelSize),f=M(this,Z7,Ef).call(this,u),C=M(this,D7,Lf).call(this,h,l,c,f);return this.processDrawnLines({lines:{curves:C,width:l,height:c},pageWidth:t,pageHeight:s,rotation:r,innerMargin:n,mustSmooth:!0,areContours:!0})}static processDrawnLines({lines:e,pageWidth:t,pageHeight:s,rotation:r,innerMargin:n,mustSmooth:o,areContours:l}){var z;r%180!==0&&([t,s]=[s,t]);const{curves:c,width:h,height:u}=e,f=(z=e.thickness)!=null?z:0,C=[],p=Math.min(t/h,s/u),m=p/t,g=p/s,y=[];for(const{points:E}of c){const H=o?M(this,Dl,zT).call(this,E):E;if(!H)continue;y.push(H);const A=H.length,V=new Float32Array(A),$=new Float32Array(3*(A===2?2:A-2));if(C.push({line:$,points:V}),A===2){V[0]=H[0]*m,V[1]=H[1]*g,$.set([NaN,NaN,NaN,NaN,V[0],V[1]],0);continue}let[T,P,R,Z]=H;T*=m,P*=g,R*=m,Z*=g,V.set([T,P,R,Z],0),$.set([NaN,NaN,NaN,NaN,T,P],0);for(let O=4;O<A;O+=2){const D=V[O]=H[O]*m,U=V[O+1]=H[O+1]*g;$.set(d1.createBezierPoints(T,P,R,Z,D,U),(O-2)*3),[T,P,R,Z]=[R,Z,D,U]}}if(C.length===0)return null;const _=l?new xu:new Ea;return _.build(C,t,s,1,r,l?0:f,n),{outline:_,newCurves:y,areContours:l,thickness:f,width:h,height:u}}static async compressSignature({outlines:e,areContours:t,thickness:s,width:r,height:n}){let o=1/0,l=-1/0,c=0;for(const E of e){c+=E.length;for(let H=2,A=E.length;H<A;H++){const V=E[H]-E[H-2];o=Math.min(o,V),l=Math.max(l,V)}}let h;o>=-128&&l<=127?h=Int8Array:o>=-32768&&l<=32767?h=Int16Array:h=Int32Array;const u=e.length,f=t4+Aa*u,C=new Uint32Array(f);let p=0;C[p++]=f*Uint32Array.BYTES_PER_ELEMENT+(c-2*u)*h.BYTES_PER_ELEMENT,C[p++]=0,C[p++]=r,C[p++]=n,C[p++]=t?0:1,C[p++]=Math.max(0,Math.floor(s!=null?s:0)),C[p++]=u,C[p++]=h.BYTES_PER_ELEMENT;for(const E of e)C[p++]=E.length-2,C[p++]=E[0],C[p++]=E[1];const m=new CompressionStream("deflate-raw"),g=m.writable.getWriter();await g.ready,g.write(C);const y=h.prototype.constructor;for(const E of e){const H=new y(E.length-2);for(let A=2,V=E.length;A<V;A++)H[A-2]=E[A]-E[A-2];g.write(H)}g.close();const _=await new Response(m.readable).arrayBuffer(),z=new Uint8Array(_);return GE(z)}static async decompressSignature(e){try{const t=Hi1(e),{readable:s,writable:r}=new DecompressionStream("deflate-raw"),n=r.getWriter();await n.ready,n.write(t).then(async()=>{await n.ready,await n.close()}).catch(()=>{});let o=null,l=0;for await(const E of s)o||(o=new Uint8Array(new Uint32Array(E.buffer,0,4)[0])),o.set(E,l),l+=E.length;const c=new Uint32Array(o.buffer,0,o.length>>2),h=c[1];if(h!==0)throw new Error(`Invalid version: ${h}`);const u=c[2],f=c[3],C=c[4]===0,p=c[5],m=c[6],g=c[7],y=[],_=(t4+Aa*m)*Uint32Array.BYTES_PER_ELEMENT;let z;switch(g){case Int8Array.BYTES_PER_ELEMENT:z=new Int8Array(o.buffer,_);break;case Int16Array.BYTES_PER_ELEMENT:z=new Int16Array(o.buffer,_);break;case Int32Array.BYTES_PER_ELEMENT:z=new Int32Array(o.buffer,_);break}l=0;for(let E=0;E<m;E++){const H=c[Aa*E+t4],A=new Float32Array(H+2);y.push(A);for(let V=0;V<Aa-1;V++)A[V]=c[Aa*E+t4+V+1];for(let V=0;V<H;V++)A[V+2]=A[V]+z[l++]}return{areContours:C,thickness:p,outlines:y,width:u,height:f}}catch(t){return x1(`decompressSignature: ${t}`),null}}}ir=new WeakMap,B7=new WeakSet,Mf=function(e,t,s,r){return s-=e,r-=t,s===0?r>0?0:4:s===1?r+6:2-r},B3=new WeakMap,Ol=new WeakSet,kT=function(e,t,s,r,n,o,l){const c=M(this,B7,Mf).call(this,s,r,n,o);for(let h=0;h<8;h++){const u=(-h+c-l+16)%8,f=d(this,B3)[2*u],C=d(this,B3)[2*u+1];if(e[(s+f)*t+(r+C)]!==0)return u}return-1},Bl=new WeakSet,ST=function(e,t,s,r,n,o,l){const c=M(this,B7,Mf).call(this,s,r,n,o);for(let h=0;h<8;h++){const u=(h+c+l+16)%8,f=d(this,B3)[2*u],C=d(this,B3)[2*u+1];if(e[(s+f)*t+(r+C)]!==0)return u}return-1},D7=new WeakSet,Lf=function(e,t,s,r){const n=e.length,o=new Int32Array(n);for(let u=0;u<n;u++)o[u]=e[u]<=r?1:0;for(let u=1;u<s-1;u++)o[u*t]=o[u*t+t-1]=0;for(let u=0;u<t;u++)o[u]=o[t*s-1-u]=0;let l=1,c;const h=[];for(let u=1;u<s-1;u++){c=1;for(let f=1;f<t-1;f++){const C=u*t+f,p=o[C];if(p===0)continue;let m=u,g=f;if(p===1&&o[C-1]===0)l+=1,g-=1;else if(p>=1&&o[C+1]===0)l+=1,g+=1,p>1&&(c=p);else{p!==1&&(c=Math.abs(p));continue}const y=[f,u],_=g===f+1,z={isHole:_,points:y,id:l,parent:0};h.push(z);let E;for(const Z of h)if(Z.id===c){E=Z;break}E?E.isHole?z.parent=_?E.parent:c:z.parent=_?c:E.parent:z.parent=_?c:0;const H=M(this,Ol,kT).call(this,o,t,u,f,m,g,0);if(H===-1){o[C]=-l,o[C]!==1&&(c=Math.abs(o[C]));continue}let A=d(this,B3)[2*H],V=d(this,B3)[2*H+1];const $=u+A,T=f+V;m=$,g=T;let P=u,R=f;for(;;){const Z=M(this,Bl,ST).call(this,o,t,P,R,m,g,1);A=d(this,B3)[2*Z],V=d(this,B3)[2*Z+1];const O=P+A,D=R+V;y.push(D,O);const U=P*t+R;if(o[U+1]===0?o[U]=-l:o[U]===1&&(o[U]=l),O===u&&D===f&&P===$&&R===T){o[C]!==1&&(c=Math.abs(o[C]));break}else m=P,g=R,P=O,R=D}}}return h},bn=new WeakSet,gc=function(e,t,s,r){if(s-t<=4){for(let $=t;$<s-2;$+=2)r.push(e[$],e[$+1]);return}const n=e[t],o=e[t+1],l=e[s-4]-n,c=e[s-3]-o,h=Math.hypot(l,c),u=l/h,f=c/h,C=u*o-f*n,p=c/l,m=1/h,g=Math.atan(p),y=Math.cos(g),_=Math.sin(g),z=m*(Math.abs(y)+Math.abs(_)),E=m*(1-z+z**2),H=Math.max(Math.atan(Math.abs(_+y)*E),Math.atan(Math.abs(_-y)*E));let A=0,V=t;for(let $=t+2;$<s-2;$+=2){const T=Math.abs(C-u*e[$+1]+f*e[$]);T>A&&(V=$,A=T)}A>(h*H)**2?(M(this,bn,gc).call(this,e,t,V+2,r),M(this,bn,gc).call(this,e,V,s,r)):r.push(n,o)},Dl=new WeakSet,zT=function(e){const t=[],s=e.length;return M(this,bn,gc).call(this,e,0,s,t),t.push(e[s-2],e[s-1]),t.length<=4?null:t},Rl=new WeakSet,MT=function(e,t,s,r,n,o){const l=new Float32Array(o**2),c=-2*r**2,h=o>>1;for(let g=0;g<o;g++){const y=(g-h)**2;for(let _=0;_<o;_++)l[g*o+_]=Math.exp((y+(_-h)**2)/c)}const u=new Float32Array(256),f=-2*n**2;for(let g=0;g<256;g++)u[g]=Math.exp(g**2/f);const C=e.length,p=new Uint8Array(C),m=new Uint32Array(256);for(let g=0;g<s;g++)for(let y=0;y<t;y++){const _=g*t+y,z=e[_];let E=0,H=0;for(let V=0;V<o;V++){const $=g+V-h;if(!($<0||$>=s))for(let T=0;T<o;T++){const P=y+T-h;if(P<0||P>=t)continue;const R=e[$*t+P],Z=l[V*o+T]*u[Math.abs(R-z)];E+=R*Z,H+=Z}}const A=p[_]=Math.round(E/H);m[A]++}return[p,m]},Zl=new WeakSet,LT=function(e){const t=new Uint32Array(256);for(const s of e)t[s]++;return t},R7=new WeakSet,If=function(e){const t=e.length,s=new Uint8ClampedArray(t>>2);let r=-1/0,n=1/0;for(let l=0,c=s.length;l<c;l++){if(e[(l<<2)+3]===0){r=s[l]=255;continue}const u=s[l]=e[l<<2];u>r&&(r=u),u<n&&(n=u)}const o=255/(r-n);for(let l=0;l<t;l++)s[l]=(s[l]-n)*o;return s},Z7=new WeakSet,Ef=function(e){let t,s=-1/0,r=-1/0;const n=e.findIndex(c=>c!==0);let o=n,l=n;for(t=n;t<256;t++){const c=e[t];c>s&&(t-o>r&&(r=t-o,l=t-1),s=c,o=t)}for(t=l-1;t>=0&&!(e[t]>e[t+1]);t--);return t},Nl=new WeakSet,IT=function(e){const t=e,{width:s,height:r}=e,{maxDim:n}=d(this,ir);let o=s,l=r;if(s>n||r>n){let C=s,p=r,m=Math.log2(Math.max(s,r)/n);const g=Math.floor(m);m=m===g?g-1:g;for(let _=0;_<m;_++){o=Math.ceil(C/2),l=Math.ceil(p/2);const z=new OffscreenCanvas(o,l);z.getContext("2d").drawImage(e,0,0,C,p,0,0,o,l),C=o,p=l,e!==t&&e.close(),e=z.transferToImageBitmap()}const y=Math.min(n/o,n/l);o=Math.round(o*y),l=Math.round(l*y)}const h=new OffscreenCanvas(o,l).getContext("2d",{willReadFrequently:!0});h.filter="grayscale(1)",h.drawImage(e,0,0,e.width,e.height,0,0,o,l);const u=h.getImageData(0,0,o,l).data;return[M(this,R7,If).call(this,u),o,l]},w(ze,B7),w(ze,Ol),w(ze,Bl),w(ze,D7),w(ze,bn),w(ze,Dl),w(ze,Rl),w(ze,Zl),w(ze,R7),w(ze,Z7),w(ze,Nl),w(ze,ir,{maxDim:512,sigmaSFactor:.02,sigmaR:25,kernelSize:16}),w(ze,B3,new Int32Array([0,1,-1,1,-1,0,-1,-1,0,-1,1,-1,1,0,1,1]));class ku extends ZA{constructor(){super(),super.updateProperties({fill:B1._defaultLineColor,"stroke-width":0})}clone(){const e=new ku;return e.updateAll(this),e}}class Su extends e4{constructor(e){super(e),super.updateProperties({stroke:B1._defaultLineColor,"stroke-width":1})}clone(){const e=new Su(this._viewParameters);return e.updateAll(this),e}}const bi=class extends Pt{constructor(t){super({...t,mustBeCommitted:!0,name:"signatureEditor"});w(this,h6,!1);w(this,r3,null);w(this,u6,null);w(this,f6,null);this._willKeepAspectRatio=!0,v(this,u6,t.signatureData||null),v(this,r3,null),this.defaultL10nId="pdfjs-editor-signature-editor1"}static initialize(t,s){B1.initialize(t,s),this._defaultDrawingOptions=new ku,this._defaultDrawnSignatureOptions=new Su(s.viewParameters)}static getDefaultDrawingOptions(t){const s=this._defaultDrawingOptions.clone();return s.updateProperties(t),s}static get supportMultipleDrawings(){return!1}static get typesMap(){return A1(this,"typesMap",new Map)}static get isDrawer(){return!1}get telemetryFinalData(){return{type:"signature",hasDescription:!!d(this,r3)}}static computeTelemetryFinalData(t){var r,n;const s=t.get("hasDescription");return{hasAltText:(r=s.get(!0))!=null?r:0,hasNoAltText:(n=s.get(!1))!=null?n:0}}get isResizable(){return!0}onScaleChanging(){this._drawId!==null&&super.onScaleChanging()}render(){if(this.div)return this.div;let t,s;const{_isCopy:r}=this;if(r&&(this._isCopy=!1,t=this.x,s=this.y),super.render(),this._drawId===null)if(d(this,u6)){const{lines:n,mustSmooth:o,areContours:l,description:c,uuid:h,heightInPage:u}=d(this,u6),{rawDims:{pageWidth:f,pageHeight:C},rotation:p}=this.parent.viewport,m=ze.processDrawnLines({lines:n,pageWidth:f,pageHeight:C,rotation:p,innerMargin:bi._INNER_MARGIN,mustSmooth:o,areContours:l});this.addSignature(m,u,c,h)}else this.div.setAttribute("data-l10n-args",JSON.stringify({description:""})),this.div.hidden=!0,this._uiManager.getSignature(this);return r&&(this._isCopy=!0,this._moveAfterPaste(t,s)),this.div}setUuid(t){v(this,f6,t),this.addEditToolbar()}getUuid(){return d(this,f6)}get description(){return d(this,r3)}set description(t){v(this,r3,t),super.addEditToolbar().then(s=>{s==null||s.updateEditSignatureButton(t)})}getSignaturePreview(){const{newCurves:t,areContours:s,thickness:r,width:n,height:o}=d(this,u6),l=Math.max(n,o),c=ze.processDrawnLines({lines:{curves:t.map(h=>({points:h})),thickness:r,width:n,height:o},pageWidth:l,pageHeight:l,rotation:0,innerMargin:0,mustSmooth:!1,areContours:s});return{areContours:s,outline:c.outline}}async addEditToolbar(){const t=await super.addEditToolbar();return t?(this._uiManager.signatureManager&&d(this,r3)!==null&&(await t.addEditSignatureButton(this._uiManager.signatureManager,d(this,f6),d(this,r3)),t.show()),t):null}addSignature(t,s,r,n){const{x:o,y:l}=this,{outline:c}=v(this,u6,t);v(this,h6,c instanceof xu),v(this,r3,r),this.div.setAttribute("data-l10n-args",JSON.stringify({description:r}));let h;d(this,h6)?h=bi.getDefaultDrawingOptions():(h=bi._defaultDrawnSignatureOptions.clone(),h.updateProperties({"stroke-width":c.thickness})),this._addOutlines({drawOutlines:c,drawingOptions:h});const[u,f]=this.parentDimensions,[,C]=this.pageDimensions;let p=s/C;p=p>=1?.5:p,this.width*=p/this.height,this.width>=1&&(p*=.9/this.width,this.width=.9),this.height=p,this.setDims(u*this.width,f*this.height),this.x=o,this.y=l,this.center(),this._onResized(),this.onScaleChanging(),this.rotate(),this._uiManager.addToAnnotationStorage(this),this.setUuid(n),this._reportTelemetry({action:"pdfjs.signature.inserted",data:{hasBeenSaved:!!n,hasDescription:!!r}}),this.div.hidden=!1}getFromImage(t){const{rawDims:{pageWidth:s,pageHeight:r},rotation:n}=this.parent.viewport;return ze.process(t,s,r,n,bi._INNER_MARGIN)}getFromText(t,s){const{rawDims:{pageWidth:r,pageHeight:n},rotation:o}=this.parent.viewport;return ze.extractContoursFromText(t,s,r,n,o,bi._INNER_MARGIN)}getDrawnSignature(t){const{rawDims:{pageWidth:s,pageHeight:r},rotation:n}=this.parent.viewport;return ze.processDrawnLines({lines:t,pageWidth:s,pageHeight:r,rotation:n,innerMargin:bi._INNER_MARGIN,mustSmooth:!1,areContours:!1})}createDrawingOptions({areContours:t,thickness:s}){t?this._drawingOptions=bi.getDefaultDrawingOptions():(this._drawingOptions=bi._defaultDrawnSignatureOptions.clone(),this._drawingOptions.updateProperties({"stroke-width":s}))}serialize(t=!1){if(this.isEmpty())return null;const{lines:s,points:r,rect:n}=this.serializeDraw(t),{_drawingOptions:{"stroke-width":o}}=this,l={annotationType:S1.SIGNATURE,isSignature:!0,areContours:d(this,h6),color:[0,0,0],thickness:d(this,h6)?0:o,pageIndex:this.pageIndex,rect:n,rotation:this.rotation,structTreeParentId:this._structTreeParentId};return t?(l.paths={lines:s,points:r},l.uuid=d(this,f6),l.isCopy=!0):l.lines=s,d(this,r3)&&(l.accessibilityData={type:"Figure",alt:d(this,r3)}),l}static deserializeDraw(t,s,r,n,o,l){return l.areContours?xu.deserialize(t,s,r,n,o,l):Ea.deserialize(t,s,r,n,o,l)}static async deserialize(t,s,r){var o;const n=await super.deserialize(t,s,r);return v(n,h6,t.areContours),v(n,r3,((o=t.accessibilityData)==null?void 0:o.alt)||""),v(n,f6,t.uuid),n}};let Rr=bi;h6=new WeakMap,r3=new WeakMap,u6=new WeakMap,f6=new WeakMap,i1(Rr,"_type","signature"),i1(Rr,"_editorType",S1.SIGNATURE),i1(Rr,"_defaultDrawingOptions",null);class zu extends B1{constructor(t){super({...t,name:"stampEditor"});w(this,rr);w(this,or);w(this,wn);w(this,vn);w(this,yn);w(this,N7);w(this,_n);w(this,jl);w(this,ie,null);w(this,Re,null);w(this,C6,null);w(this,d2,null);w(this,p6,null);w(this,mn,"");w(this,h2,null);w(this,sr,!1);w(this,mi,null);w(this,o3,!1);w(this,gn,!1);v(this,d2,t.bitmapUrl),v(this,p6,t.bitmapFile),this.defaultL10nId="pdfjs-editor-stamp-editor"}static initialize(t,s){B1.initialize(t,s)}static isHandlingMimeForPasting(t){return N0.includes(t)}static paste(t,s){s.pasteEditor({mode:S1.STAMP},{bitmapFile:t.getAsFile()})}altTextFinish(){this._uiManager.useNewAltTextFlow&&(this.div.hidden=!1),super.altTextFinish()}get telemetryFinalData(){var t;return{type:"stamp",hasAltText:!!((t=this.altTextData)!=null&&t.altText)}}static computeTelemetryFinalData(t){var r,n;const s=t.get("hasAltText");return{hasAltText:(r=s.get(!0))!=null?r:0,hasNoAltText:(n=s.get(!1))!=null?n:0}}async mlGuessAltText(t=null,s=!0){if(this.hasAltTextData())return null;const{mlManager:r}=this._uiManager;if(!r)throw new Error("No ML.");if(!await r.isEnabledFor("altText"))throw new Error("ML isn't enabled for alt text.");const{data:n,width:o,height:l}=t||this.copyCanvas(null,null,!0).imageData,c=await r.guess({name:"altText",request:{data:n,width:o,height:l,channels:n.length/(o*l)}});if(!c)throw new Error("No response from the AI service.");if(c.error)throw new Error("Error from the AI service.");if(c.cancel)return null;if(!c.output)throw new Error("No valid response from the AI service.");const h=c.output;return await this.setGuessedAltText(h),s&&!this.hasAltTextData()&&(this.altTextData={alt:h,decorative:!1}),h}remove(){var t;d(this,Re)&&(v(this,ie,null),this._uiManager.imageManager.deleteId(d(this,Re)),(t=d(this,h2))==null||t.remove(),v(this,h2,null),d(this,mi)&&(clearTimeout(d(this,mi)),v(this,mi,null))),super.remove()}rebuild(){if(!this.parent){d(this,Re)&&M(this,wn,wc).call(this);return}super.rebuild(),this.div!==null&&(d(this,Re)&&d(this,h2)===null&&M(this,wn,wc).call(this),this.isAttachedToDOM||this.parent.add(this))}onceAdded(t){this._isDraggable=!0,t&&this.div.focus()}isEmpty(){return!(d(this,C6)||d(this,ie)||d(this,d2)||d(this,p6)||d(this,Re)||d(this,sr))}get isResizable(){return!0}render(){if(this.div)return this.div;let t,s;return this._isCopy&&(t=this.x,s=this.y),super.render(),this.div.hidden=!0,this.addAltTextButton(),d(this,sr)||(d(this,ie)?M(this,vn,vc).call(this):M(this,wn,wc).call(this)),this._isCopy&&this._moveAfterPaste(t,s),this._uiManager.addShouldRescale(this),this.div}setCanvas(t,s){const{id:r,bitmap:n}=this._uiManager.imageManager.getFromCanvas(t,s);s.remove(),r&&this._uiManager.imageManager.isValidId(r)&&(v(this,Re,r),n&&v(this,ie,n),v(this,sr,!1),M(this,vn,vc).call(this))}_onResized(){this.onScaleChanging()}onScaleChanging(){if(!this.parent)return;d(this,mi)!==null&&clearTimeout(d(this,mi)),v(this,mi,setTimeout(()=>{v(this,mi,null),M(this,N7,Af).call(this)},200))}copyCanvas(t,s,r=!1){var p;t||(t=224);const{width:n,height:o}=d(this,ie),l=new k3;let c=d(this,ie),h=n,u=o,f=null;if(s){if(n>s||o>s){const T=Math.min(s/n,s/o);h=Math.floor(n*T),u=Math.floor(o*T)}f=document.createElement("canvas");const m=f.width=Math.ceil(h*l.sx),g=f.height=Math.ceil(u*l.sy);d(this,o3)||(c=M(this,yn,yc).call(this,m,g));const y=f.getContext("2d");y.filter=this._uiManager.hcmFilter;let _="white",z="#cfcfd8";this._uiManager.hcmFilter!=="none"?z="black":(p=window.matchMedia)!=null&&p.call(window,"(prefers-color-scheme: dark)").matches&&(_="#8f8f9d",z="#42414d");const E=15,H=E*l.sx,A=E*l.sy,V=new OffscreenCanvas(H*2,A*2),$=V.getContext("2d");$.fillStyle=_,$.fillRect(0,0,H*2,A*2),$.fillStyle=z,$.fillRect(0,0,H,A),$.fillRect(H,A,H,A),y.fillStyle=y.createPattern(V,"repeat"),y.fillRect(0,0,m,g),y.drawImage(c,0,0,c.width,c.height,0,0,m,g)}let C=null;if(r){let m,g;if(l.symmetric&&c.width<t&&c.height<t)m=c.width,g=c.height;else if(c=d(this,ie),n>t||o>t){const z=Math.min(t/n,t/o);m=Math.floor(n*z),g=Math.floor(o*z),d(this,o3)||(c=M(this,yn,yc).call(this,m,g))}const _=new OffscreenCanvas(m,g).getContext("2d",{willReadFrequently:!0});_.drawImage(c,0,0,c.width,c.height,0,0,m,g),C={width:m,height:g,data:_.getImageData(0,0,m,g).data}}return{canvas:f,width:h,height:u,imageData:C}}static async deserialize(t,s,r){var y;let n=null,o=!1;if(t instanceof DA){const{data:{rect:_,rotation:z,id:E,structParent:H,popupRef:A},container:V,parent:{page:{pageNumber:$}},canvas:T}=t;let P,R;T?(delete t.canvas,{id:P,bitmap:R}=r.imageManager.getFromCanvas(V.id,T),T.remove()):(o=!0,t._hasNoCanvas=!0);const Z=((y=await s._structTree.getAriaAttributes(`${su}${E}`))==null?void 0:y.get("aria-label"))||"";n=t={annotationType:S1.STAMP,bitmapId:P,bitmap:R,pageIndex:$-1,rect:_.slice(0),rotation:z,id:E,deleted:!1,accessibilityData:{decorative:!1,altText:Z},isSvg:!1,structParent:H,popupRef:A}}const l=await super.deserialize(t,s,r),{rect:c,bitmap:h,bitmapUrl:u,bitmapId:f,isSvg:C,accessibilityData:p}=t;o?(r.addMissingCanvas(t.id,l),v(l,sr,!0)):f&&r.imageManager.isValidId(f)?(v(l,Re,f),h&&v(l,ie,h)):v(l,d2,u),v(l,o3,C);const[m,g]=l.pageDimensions;return l.width=(c[2]-c[0])/m,l.height=(c[3]-c[1])/g,l.annotationElementId=t.id||null,p&&(l.altTextData=p),l._initialData=n,v(l,gn,!!n),l}serialize(t=!1,s=null){var c;if(this.isEmpty())return null;if(this.deleted)return this.serializeDeleted();const r={annotationType:S1.STAMP,bitmapId:d(this,Re),pageIndex:this.pageIndex,rect:this.getRect(0,0),rotation:this.rotation,isSvg:d(this,o3),structTreeParentId:this._structTreeParentId};if(t)return r.bitmapUrl=M(this,_n,_c).call(this,!0),r.accessibilityData=this.serializeAltText(!0),r.isCopy=!0,r;const{decorative:n,altText:o}=this.serializeAltText(!1);if(!n&&o&&(r.accessibilityData={type:"Figure",alt:o}),this.annotationElementId){const h=M(this,jl,ET).call(this,r);if(h.isSame)return null;h.isSameAltText?delete r.accessibilityData:r.accessibilityData.structParent=(c=this._initialData.structParent)!=null?c:-1}if(r.id=this.annotationElementId,s===null)return r;s.stamps||(s.stamps=new Map);const l=d(this,o3)?(r.rect[2]-r.rect[0])*(r.rect[3]-r.rect[1]):null;if(!s.stamps.has(d(this,Re)))s.stamps.set(d(this,Re),{area:l,serialized:r}),r.bitmap=M(this,_n,_c).call(this,!1);else if(d(this,o3)){const h=s.stamps.get(d(this,Re));l>h.area&&(h.area=l,h.serialized.bitmap.close(),h.serialized.bitmap=M(this,_n,_c).call(this,!1))}return r}renderAnnotationElement(t){return t.updateEdited({rect:this.getRect(0,0)}),null}}ie=new WeakMap,Re=new WeakMap,C6=new WeakMap,d2=new WeakMap,p6=new WeakMap,mn=new WeakMap,h2=new WeakMap,sr=new WeakMap,mi=new WeakMap,o3=new WeakMap,gn=new WeakMap,rr=new WeakSet,c9=function(t,s=!1){if(!t){this.remove();return}v(this,ie,t.bitmap),s||(v(this,Re,t.id),v(this,o3,t.isSvg)),t.file&&v(this,mn,t.file.name),M(this,vn,vc).call(this)},or=new WeakSet,d9=function(){if(v(this,C6,null),this._uiManager.enableWaiting(!1),!!d(this,h2)){if(this._uiManager.useNewAltTextWhenAddingImage&&this._uiManager.useNewAltTextFlow&&d(this,ie)){this._editToolbar.hide(),this._uiManager.editAltText(this,!0);return}if(!this._uiManager.useNewAltTextWhenAddingImage&&this._uiManager.useNewAltTextFlow&&d(this,ie)){this._reportTelemetry({action:"pdfjs.image.image_added",data:{alt_text_modal:!1,alt_text_type:"empty"}});try{this.mlGuessAltText()}catch{}}this.div.focus()}},wn=new WeakSet,wc=function(){if(d(this,Re)){this._uiManager.enableWaiting(!0),this._uiManager.imageManager.getFromId(d(this,Re)).then(r=>M(this,rr,c9).call(this,r,!0)).finally(()=>M(this,or,d9).call(this));return}if(d(this,d2)){const r=d(this,d2);v(this,d2,null),this._uiManager.enableWaiting(!0),v(this,C6,this._uiManager.imageManager.getFromUrl(r).then(n=>M(this,rr,c9).call(this,n)).finally(()=>M(this,or,d9).call(this)));return}if(d(this,p6)){const r=d(this,p6);v(this,p6,null),this._uiManager.enableWaiting(!0),v(this,C6,this._uiManager.imageManager.getFromFile(r).then(n=>M(this,rr,c9).call(this,n)).finally(()=>M(this,or,d9).call(this)));return}const t=document.createElement("input");t.type="file",t.accept=N0.join(",");const s=this._uiManager._signal;v(this,C6,new Promise(r=>{t.addEventListener("change",async()=>{if(!t.files||t.files.length===0)this.remove();else{this._uiManager.enableWaiting(!0);const n=await this._uiManager.imageManager.getFromFile(t.files[0]);this._reportTelemetry({action:"pdfjs.image.image_selected",data:{alt_text_modal:this._uiManager.useNewAltTextFlow}}),M(this,rr,c9).call(this,n)}r()},{signal:s}),t.addEventListener("cancel",()=>{this.remove(),r()},{signal:s})}).finally(()=>M(this,or,d9).call(this))),t.click()},vn=new WeakSet,vc=function(){var f;const{div:t}=this;let{width:s,height:r}=d(this,ie);const[n,o]=this.pageDimensions,l=.75;if(this.width)s=this.width*n,r=this.height*o;else if(s>l*n||r>l*o){const C=Math.min(l*n/s,l*o/r);s*=C,r*=C}const[c,h]=this.parentDimensions;this.setDims(s*c/n,r*h/o),this._uiManager.enableWaiting(!1);const u=v(this,h2,document.createElement("canvas"));u.setAttribute("role","img"),this.addContainer(u),this.width=s/n,this.height=r/o,(f=this._initialOptions)!=null&&f.isCentered?this.center():this.fixAndSetPosition(),this._initialOptions=null,(!this._uiManager.useNewAltTextWhenAddingImage||!this._uiManager.useNewAltTextFlow||this.annotationElementId)&&(t.hidden=!1),M(this,N7,Af).call(this),d(this,gn)||(this.parent.addUndoableEditor(this),v(this,gn,!0)),this._reportTelemetry({action:"inserted_image"}),d(this,mn)&&this.div.setAttribute("aria-description",d(this,mn))},yn=new WeakSet,yc=function(t,s){const{width:r,height:n}=d(this,ie);let o=r,l=n,c=d(this,ie);for(;o>2*t||l>2*s;){const h=o,u=l;o>2*t&&(o=o>=16384?Math.floor(o/2)-1:Math.ceil(o/2)),l>2*s&&(l=l>=16384?Math.floor(l/2)-1:Math.ceil(l/2));const f=new OffscreenCanvas(o,l);f.getContext("2d").drawImage(c,0,0,h,u,0,0,o,l),c=f.transferToImageBitmap()}return c},N7=new WeakSet,Af=function(){const[t,s]=this.parentDimensions,{width:r,height:n}=this,o=new k3,l=Math.ceil(r*t*o.sx),c=Math.ceil(n*s*o.sy),h=d(this,h2);if(!h||h.width===l&&h.height===c)return;h.width=l,h.height=c;const u=d(this,o3)?d(this,ie):M(this,yn,yc).call(this,l,c),f=h.getContext("2d");f.filter=this._uiManager.hcmFilter,f.drawImage(u,0,0,u.width,u.height,0,0,l,c)},_n=new WeakSet,_c=function(t){if(t){if(d(this,o3)){const n=this._uiManager.imageManager.getSvgUrl(d(this,Re));if(n)return n}const s=document.createElement("canvas");return{width:s.width,height:s.height}=d(this,ie),s.getContext("2d").drawImage(d(this,ie),0,0),s.toDataURL()}if(d(this,o3)){const[s,r]=this.pageDimensions,n=Math.round(this.width*s*c3.PDF_TO_CSS_UNITS),o=Math.round(this.height*r*c3.PDF_TO_CSS_UNITS),l=new OffscreenCanvas(n,o);return l.getContext("2d").drawImage(d(this,ie),0,0,d(this,ie).width,d(this,ie).height,0,0,n,o),l.transferToImageBitmap()}return structuredClone(d(this,ie))},jl=new WeakSet,ET=function(t){var l;const{pageIndex:s,accessibilityData:{altText:r}}=this._initialData,n=t.pageIndex===s,o=(((l=t.accessibilityData)==null?void 0:l.alt)||"")===r;return{isSame:!this._hasBeenMoved&&!this._hasBeenResized&&n&&o,isSameAltText:o}},i1(zu,"_type","stamp"),i1(zu,"_editorType",S1.STAMP);const p2=class{constructor({uiManager:e,pageIndex:t,div:s,structTreeLayer:r,accessibilityManager:n,annotationLayer:o,drawLayer:l,textLayer:c,viewport:h,l10n:u}){w(this,Fl);w(this,v3);w(this,j7);w(this,F7);w(this,Sn);w(this,nr,void 0);w(this,xn,!1);w(this,gi,null);w(this,b6,null);w(this,u2,null);w(this,w3,new Map);w(this,m6,!1);w(this,kn,!1);w(this,ar,!1);w(this,D3,null);w(this,f2,null);w(this,dt,null);w(this,C2,null);w(this,f1,void 0);const f=[...d(p2,g6).values()];if(!p2._initialized){p2._initialized=!0;for(const C of f)C.initialize(u,e)}e.registerEditorTypes(f),v(this,f1,e),this.pageIndex=t,this.div=s,v(this,nr,n),v(this,gi,o),this.viewport=h,v(this,dt,c),this.drawLayer=l,this._structTree=r,d(this,f1).addLayer(this)}get isEmpty(){return d(this,w3).size===0}get isInvisible(){return this.isEmpty&&d(this,f1).getMode()===S1.NONE}updateToolbar(e){d(this,f1).updateToolbar(e)}updateMode(e=d(this,f1).getMode()){switch(M(this,Sn,xc).call(this),e){case S1.NONE:this.disableTextSelection(),this.togglePointerEvents(!1),this.toggleAnnotationLayerPointerEvents(!0),this.disableClick();return;case S1.INK:this.disableTextSelection(),this.togglePointerEvents(!0),this.enableClick();break;case S1.HIGHLIGHT:this.enableTextSelection(),this.togglePointerEvents(!1),this.disableClick();break;default:this.disableTextSelection(),this.togglePointerEvents(!0),this.enableClick()}this.toggleAnnotationLayerPointerEvents(!1);const{classList:t}=this.div;for(const s of d(p2,g6).values())t.toggle(`${s._type}Editing`,e===s._editorType);this.div.hidden=!1}hasTextLayer(e){var t;return e===((t=d(this,dt))==null?void 0:t.div)}setEditingState(e){d(this,f1).setEditingState(e)}addCommands(e){d(this,f1).addCommands(e)}cleanUndoStack(e){d(this,f1).cleanUndoStack(e)}toggleDrawing(e=!1){this.div.classList.toggle("drawing",!e)}togglePointerEvents(e=!1){this.div.classList.toggle("disabled",!e)}toggleAnnotationLayerPointerEvents(e=!1){var t;(t=d(this,gi))==null||t.div.classList.toggle("disabled",!e)}async enable(){v(this,ar,!0),this.div.tabIndex=0,this.togglePointerEvents(!0);const e=new Set;for(const s of d(this,w3).values())s.enableEditing(),s.show(!0),s.annotationElementId&&(d(this,f1).removeChangedExistingAnnotation(s),e.add(s.annotationElementId));if(!d(this,gi)){v(this,ar,!1);return}const t=d(this,gi).getEditableAnnotations();for(const s of t){if(s.hide(),d(this,f1).isDeletedAnnotationElement(s.data.id)||e.has(s.data.id))continue;const r=await this.deserialize(s);!r||(this.addOrRebuild(r),r.enableEditing())}v(this,ar,!1)}disable(){var r;v(this,kn,!0),this.div.tabIndex=-1,this.togglePointerEvents(!1);const e=new Map,t=new Map;for(const n of d(this,w3).values())if(n.disableEditing(),!!n.annotationElementId){if(n.serialize()!==null){e.set(n.annotationElementId,n);continue}else t.set(n.annotationElementId,n);(r=this.getEditableAnnotation(n.annotationElementId))==null||r.show(),n.remove()}if(d(this,gi)){const n=d(this,gi).getEditableAnnotations();for(const o of n){const{id:l}=o.data;if(d(this,f1).isDeletedAnnotationElement(l))continue;let c=t.get(l);if(c){c.resetAnnotationElement(o),c.show(!1),o.show();continue}c=e.get(l),c&&(d(this,f1).addChangedExistingAnnotation(c),c.renderAnnotationElement(o)&&c.show(!1)),o.show()}}M(this,Sn,xc).call(this),this.isEmpty&&(this.div.hidden=!0);const{classList:s}=this.div;for(const n of d(p2,g6).values())s.remove(`${n._type}Editing`);this.disableTextSelection(),this.toggleAnnotationLayerPointerEvents(!0),v(this,kn,!1)}getEditableAnnotation(e){var t;return((t=d(this,gi))==null?void 0:t.getEditableAnnotation(e))||null}setActiveEditor(e){d(this,f1).getActive()!==e&&d(this,f1).setActiveEditor(e)}enableTextSelection(){var e;if(this.div.tabIndex=-1,((e=d(this,dt))==null?void 0:e.div)&&!d(this,C2)){v(this,C2,new AbortController);const t=d(this,f1).combinedSignal(d(this,C2));d(this,dt).div.addEventListener("pointerdown",M(this,Fl,AT).bind(this),{signal:t}),d(this,dt).div.classList.add("highlighting")}}disableTextSelection(){var e;this.div.tabIndex=0,((e=d(this,dt))==null?void 0:e.div)&&d(this,C2)&&(d(this,C2).abort(),v(this,C2,null),d(this,dt).div.classList.remove("highlighting"))}enableClick(){if(d(this,b6))return;v(this,b6,new AbortController);const e=d(this,f1).combinedSignal(d(this,b6));this.div.addEventListener("pointerdown",this.pointerdown.bind(this),{signal:e});const t=this.pointerup.bind(this);this.div.addEventListener("pointerup",t,{signal:e}),this.div.addEventListener("pointercancel",t,{signal:e})}disableClick(){var e;(e=d(this,b6))==null||e.abort(),v(this,b6,null)}attach(e){d(this,w3).set(e.id,e);const{annotationElementId:t}=e;t&&d(this,f1).isDeletedAnnotationElement(t)&&d(this,f1).removeDeletedAnnotationElement(e)}detach(e){var t;d(this,w3).delete(e.id),(t=d(this,nr))==null||t.removePointerInTextLayer(e.contentDiv),!d(this,kn)&&e.annotationElementId&&d(this,f1).addDeletedAnnotationElement(e)}remove(e){this.detach(e),d(this,f1).removeEditor(e),e.div.remove(),e.isAttachedToDOM=!1}changeParent(e){var t;e.parent!==this&&(e.parent&&e.annotationElementId&&(d(this,f1).addDeletedAnnotationElement(e.annotationElementId),B1.deleteAnnotationElement(e),e.annotationElementId=null),this.attach(e),(t=e.parent)==null||t.detach(e),e.setParent(this),e.div&&e.isAttachedToDOM&&(e.div.remove(),this.div.append(e.div)))}add(e){if(!(e.parent===this&&e.isAttachedToDOM)){if(this.changeParent(e),d(this,f1).addEditor(e),this.attach(e),!e.isAttachedToDOM){const t=e.render();this.div.append(t),e.isAttachedToDOM=!0}e.fixAndSetPosition(),e.onceAdded(!d(this,ar)),d(this,f1).addToAnnotationStorage(e),e._reportTelemetry(e.telemetryInitialData)}}moveEditorInDOM(e){var s;if(!e.isAttachedToDOM)return;const{activeElement:t}=document;e.div.contains(t)&&!d(this,u2)&&(e._focusEventsAllowed=!1,v(this,u2,setTimeout(()=>{v(this,u2,null),e.div.contains(document.activeElement)?e._focusEventsAllowed=!0:(e.div.addEventListener("focusin",()=>{e._focusEventsAllowed=!0},{once:!0,signal:d(this,f1)._signal}),t.focus())},0))),e._structTreeParentId=(s=d(this,nr))==null?void 0:s.moveElementInDOM(this.div,e.div,e.contentDiv,!0)}addOrRebuild(e){e.needsToBeRebuilt()?(e.parent||(e.parent=this),e.rebuild(),e.show()):this.add(e)}addUndoableEditor(e){const t=()=>e._uiManager.rebuild(e),s=()=>{e.remove()};this.addCommands({cmd:t,undo:s,mustExec:!1})}getNextId(){return d(this,f1).getId()}combinedSignal(e){return d(this,f1).combinedSignal(e)}canCreateNewEmptyEditor(){var e;return(e=d(this,v3,vi))==null?void 0:e.canCreateNewEmptyEditor()}async pasteEditor(e,t){this.updateToolbar(e),await d(this,f1).updateMode(e.mode);const{offsetX:s,offsetY:r}=M(this,F7,Tf).call(this),n=this.getNextId(),o=M(this,j7,Pf).call(this,{parent:this,id:n,x:s,y:r,uiManager:d(this,f1),isCentered:!0,...t});o&&this.add(o)}async deserialize(e){var t,s;return await((s=d(p2,g6).get((t=e.annotationType)!=null?t:e.annotationEditorType))==null?void 0:s.deserialize(e,this,d(this,f1)))||null}createAndAddNewEditor(e,t,s={}){const r=this.getNextId(),n=M(this,j7,Pf).call(this,{parent:this,id:r,x:e.offsetX,y:e.offsetY,uiManager:d(this,f1),isCentered:t,...s});return n&&this.add(n),n}addNewEditor(e={}){this.createAndAddNewEditor(M(this,F7,Tf).call(this),!0,e)}setSelected(e){d(this,f1).setSelected(e)}toggleSelected(e){d(this,f1).toggleSelected(e)}unselect(e){d(this,f1).unselect(e)}pointerup(e){var r;const{isMac:t}=Te.platform;if(e.button!==0||e.ctrlKey&&t||e.target!==this.div||!d(this,m6)||(v(this,m6,!1),((r=d(this,v3,vi))==null?void 0:r.isDrawer)&&d(this,v3,vi).supportMultipleDrawings))return;if(!d(this,xn)){v(this,xn,!0);return}const s=d(this,f1).getMode();if(s===S1.STAMP||s===S1.SIGNATURE){d(this,f1).unselectAll();return}this.createAndAddNewEditor(e,!1)}pointerdown(e){var r;if(d(this,f1).getMode()===S1.HIGHLIGHT&&this.enableTextSelection(),d(this,m6)){v(this,m6,!1);return}const{isMac:t}=Te.platform;if(e.button!==0||e.ctrlKey&&t||e.target!==this.div)return;if(v(this,m6,!0),(r=d(this,v3,vi))!=null&&r.isDrawer){this.startDrawingSession(e);return}const s=d(this,f1).getActive();v(this,xn,!s||s.isEmpty())}startDrawingSession(e){if(this.div.focus({preventScroll:!0}),d(this,D3)){d(this,v3,vi).startDrawing(this,d(this,f1),!1,e);return}d(this,f1).setCurrentDrawingSession(this),v(this,D3,new AbortController);const t=d(this,f1).combinedSignal(d(this,D3));this.div.addEventListener("blur",({relatedTarget:s})=>{s&&!this.div.contains(s)&&(v(this,f2,null),this.commitOrRemove())},{signal:t}),d(this,v3,vi).startDrawing(this,d(this,f1),!1,e)}pause(e){if(e){const{activeElement:t}=document;this.div.contains(t)&&v(this,f2,t);return}d(this,f2)&&setTimeout(()=>{var t;(t=d(this,f2))==null||t.focus(),v(this,f2,null)},0)}endDrawingSession(e=!1){return d(this,D3)?(d(this,f1).setCurrentDrawingSession(null),d(this,D3).abort(),v(this,D3,null),v(this,f2,null),d(this,v3,vi).endDrawing(e)):null}findNewParent(e,t,s){const r=d(this,f1).findParent(t,s);return r===null||r===this?!1:(r.changeParent(e),!0)}commitOrRemove(){return d(this,D3)?(this.endDrawingSession(),!0):!1}onScaleChanging(){!d(this,D3)||d(this,v3,vi).onScaleChangingWhenDrawing(this)}destroy(){var e,t;this.commitOrRemove(),((e=d(this,f1).getActive())==null?void 0:e.parent)===this&&(d(this,f1).commitOrRemove(),d(this,f1).setActiveEditor(null)),d(this,u2)&&(clearTimeout(d(this,u2)),v(this,u2,null));for(const s of d(this,w3).values())(t=d(this,nr))==null||t.removePointerInTextLayer(s.contentDiv),s.setParent(null),s.isAttachedToDOM=!1,s.div.remove();this.div=null,d(this,w3).clear(),d(this,f1).removeLayer(this)}render({viewport:e}){this.viewport=e,E2(this.div,e);for(const t of d(this,f1).getEditors(this.pageIndex))this.add(t),t.rebuild();this.updateMode()}update({viewport:e}){d(this,f1).commitOrRemove(),M(this,Sn,xc).call(this);const t=this.viewport.rotation,s=e.rotation;if(this.viewport=e,E2(this.div,{rotation:s}),t!==s)for(const r of d(this,w3).values())r.rotate(s)}get pageDimensions(){const{pageWidth:e,pageHeight:t}=this.viewport.rawDims;return[e,t]}get scale(){return d(this,f1).viewParameters.realScale}};let Zr=p2;nr=new WeakMap,xn=new WeakMap,gi=new WeakMap,b6=new WeakMap,u2=new WeakMap,w3=new WeakMap,m6=new WeakMap,kn=new WeakMap,ar=new WeakMap,D3=new WeakMap,f2=new WeakMap,dt=new WeakMap,C2=new WeakMap,f1=new WeakMap,g6=new WeakMap,Fl=new WeakSet,AT=function(e){d(this,f1).unselectAll();const{target:t}=e;if(t===d(this,dt).div||(t.getAttribute("role")==="img"||t.classList.contains("endOfContent"))&&d(this,dt).div.contains(t)){const{isMac:s}=Te.platform;if(e.button!==0||e.ctrlKey&&s)return;d(this,f1).showAllEditors("highlight",!0,!0),d(this,dt).div.classList.add("free"),this.toggleDrawing(),mt.startHighlighting(this,d(this,f1).direction==="ltr",{target:d(this,dt).div,x:e.x,y:e.y}),d(this,dt).div.addEventListener("pointerup",()=>{d(this,dt).div.classList.remove("free"),this.toggleDrawing(!0)},{once:!0,signal:d(this,f1)._signal}),e.preventDefault()}},v3=new WeakSet,vi=function(){return d(p2,g6).get(d(this,f1).getMode())},j7=new WeakSet,Pf=function(e){const t=d(this,v3,vi);return t?new t.prototype.constructor(e):null},F7=new WeakSet,Tf=function(){const{x:e,y:t,width:s,height:r}=this.div.getBoundingClientRect(),n=Math.max(0,e),o=Math.max(0,t),l=Math.min(window.innerWidth,e+s),c=Math.min(window.innerHeight,t+r),h=(n+l)/2-e,u=(o+c)/2-t,[f,C]=this.viewport.rotation%180===0?[h,u]:[u,h];return{offsetX:f,offsetY:C}},Sn=new WeakSet,xc=function(){for(const e of d(this,w3).values())e.isEmpty()&&e.remove()},i1(Zr,"_initialized",!1),w(Zr,g6,new Map([S3,Dr,zu,mt,Rr].map(e=>[e._editorType,e])));const Je=class{constructor({pageIndex:e}){w(this,W7);w(this,Wl);w(this,G7);w(this,R3,null);w(this,vt,new Map);w(this,lr,new Map);this.pageIndex=e}setParent(e){if(!d(this,R3)){v(this,R3,e);return}if(d(this,R3)!==e){if(d(this,vt).size>0)for(const t of d(this,vt).values())t.remove(),e.append(t);v(this,R3,e)}}static get _svgFactory(){return A1(this,"_svgFactory",new La)}draw(e,t=!1,s=!1){const r=xt(Je,U7)._++,n=M(this,W7,Hf).call(this),o=Je._svgFactory.createElement("defs");n.append(o);const l=Je._svgFactory.createElement("path");o.append(l);const c=`path_p${this.pageIndex}_${r}`;l.setAttribute("id",c),l.setAttribute("vector-effect","non-scaling-stroke"),t&&d(this,lr).set(r,l);const h=s?M(this,Wl,TT).call(this,o,c):null,u=Je._svgFactory.createElement("use");return n.append(u),u.setAttribute("href",`#${c}`),this.updateProperties(n,e),d(this,vt).set(r,n),{id:r,clipPathId:`url(#${h})`}}drawOutline(e,t){const s=xt(Je,U7)._++,r=M(this,W7,Hf).call(this),n=Je._svgFactory.createElement("defs");r.append(n);const o=Je._svgFactory.createElement("path");n.append(o);const l=`path_p${this.pageIndex}_${s}`;o.setAttribute("id",l),o.setAttribute("vector-effect","non-scaling-stroke");let c;if(t){const f=Je._svgFactory.createElement("mask");n.append(f),c=`mask_p${this.pageIndex}_${s}`,f.setAttribute("id",c),f.setAttribute("maskUnits","objectBoundingBox");const C=Je._svgFactory.createElement("rect");f.append(C),C.setAttribute("width","1"),C.setAttribute("height","1"),C.setAttribute("fill","white");const p=Je._svgFactory.createElement("use");f.append(p),p.setAttribute("href",`#${l}`),p.setAttribute("stroke","none"),p.setAttribute("fill","black"),p.setAttribute("fill-rule","nonzero"),p.classList.add("mask")}const h=Je._svgFactory.createElement("use");r.append(h),h.setAttribute("href",`#${l}`),c&&h.setAttribute("mask",`url(#${c})`);const u=h.cloneNode();return r.append(u),h.classList.add("mainOutline"),u.classList.add("secondaryOutline"),this.updateProperties(r,e),d(this,vt).set(s,r),s}finalizeDraw(e,t){d(this,lr).delete(e),this.updateProperties(e,t)}updateProperties(e,t){var c;if(!t)return;const{root:s,bbox:r,rootClass:n,path:o}=t,l=typeof e=="number"?d(this,vt).get(e):e;if(!!l){if(s&&M(this,G7,Vf).call(this,l,s),r&&M(c=Je,Ul,PT).call(c,l,r),n){const{classList:h}=l;for(const[u,f]of Object.entries(n))h.toggle(u,f)}if(o){const u=l.firstChild.firstChild;M(this,G7,Vf).call(this,u,o)}}}updateParent(e,t){if(t===this)return;const s=d(this,vt).get(e);!s||(d(t,R3).append(s),d(this,vt).delete(e),d(t,vt).set(e,s))}remove(e){d(this,lr).delete(e),d(this,R3)!==null&&(d(this,vt).get(e).remove(),d(this,vt).delete(e))}destroy(){v(this,R3,null);for(const e of d(this,vt).values())e.remove();d(this,vt).clear(),d(this,lr).clear()}};let Nr=Je;R3=new WeakMap,vt=new WeakMap,lr=new WeakMap,U7=new WeakMap,Ul=new WeakSet,PT=function(e,[t,s,r,n]){const{style:o}=e;o.top=`${100*s}%`,o.left=`${100*t}%`,o.width=`${100*r}%`,o.height=`${100*n}%`},W7=new WeakSet,Hf=function(){const e=Je._svgFactory.create(1,1,!0);return d(this,R3).append(e),e.setAttribute("aria-hidden",!0),e},Wl=new WeakSet,TT=function(e,t){const s=Je._svgFactory.createElement("clipPath");e.append(s);const r=`clip_${t}`;s.setAttribute("id",r),s.setAttribute("clipPathUnits","objectBoundingBox");const n=Je._svgFactory.createElement("use");return s.append(n),n.setAttribute("href",`#${t}`),n.classList.add("clip"),r},G7=new WeakSet,Vf=function(e,t){for(const[s,r]of Object.entries(t))r===null?e.removeAttribute(s):e.setAttribute(s,r)},w(Nr,Ul),w(Nr,U7,0),globalThis._pdfjsTestingUtils={HighlightOutliner:yu},globalThis.pdfjsLib={AbortException:Vi,AnnotationEditorLayer:Zr,AnnotationEditorParamsType:T1,AnnotationEditorType:S1,AnnotationEditorUIManager:q3,AnnotationLayer:Q0,AnnotationMode:Hi,AnnotationType:Ce,build:EA,ColorPicker:Br,createValidAbsoluteUrl:qh,DOMSVGFactory:La,DrawLayer:Nr,FeatureTest:Te,fetchData:Tr,getDocument:bu,getFilenameFromUrl:YE,getPdfFilenameFromUrl:KE,getUuid:iu,getXfaPageViewport:qE,GlobalWorkerOptions:J3,ImageKind:ha,InvalidPDFException:B0,isDataScheme:ma,isPdfFile:R0,isValidExplicitDest:iA,MathClamp:ot,noContextMenu:d3,normalizeUnicode:WE,OPS:fa,OutputScale:k3,PasswordResponses:NE,PDFDataRangeTransport:mu,PDFDateString:Z0,PDFWorker:ei,PermissionFlag:ZE,PixelsPerInch:c3,RenderingCancelledException:D0,ResponseException:Ca,setLayerDimensions:E2,shadow:A1,SignatureExtractor:ze,stopEvent:pe,SupportedImageMimeTypes:N0,TextLayer:nt,TouchManager:ya,updateUrlHash:Qh,Util:u1,VerbosityLevel:ua,version:IA,XfaLayer:gu};var o61=Object.freeze({__proto__:null,AbortException:Vi,AnnotationEditorLayer:Zr,AnnotationEditorParamsType:T1,AnnotationEditorType:S1,AnnotationEditorUIManager:q3,AnnotationLayer:Q0,AnnotationMode:Hi,AnnotationType:Ce,ColorPicker:Br,DOMSVGFactory:La,DrawLayer:Nr,FeatureTest:Te,GlobalWorkerOptions:J3,ImageKind:ha,InvalidPDFException:B0,MathClamp:ot,OPS:fa,OutputScale:k3,PDFDataRangeTransport:mu,PDFDateString:Z0,PDFWorker:ei,PasswordResponses:NE,PermissionFlag:ZE,PixelsPerInch:c3,RenderingCancelledException:D0,ResponseException:Ca,SignatureExtractor:ze,SupportedImageMimeTypes:N0,TextLayer:nt,TouchManager:ya,Util:u1,VerbosityLevel:ua,XfaLayer:gu,build:EA,createValidAbsoluteUrl:qh,fetchData:Tr,getDocument:bu,getFilenameFromUrl:YE,getPdfFilenameFromUrl:KE,getUuid:iu,getXfaPageViewport:qE,isDataScheme:ma,isPdfFile:R0,isValidExplicitDest:iA,noContextMenu:d3,normalizeUnicode:WE,setLayerDimensions:E2,shadow:A1,stopEvent:pe,updateUrlHash:Qh,version:IA});const n61=":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)}}";window.pdf=o61;const NA=class{constructor(i){k(this,i),this.activate=K(this,"activate",7),this.visiblePagesChange=K(this,"visiblePagesChange",7),this.errorMessage="File could not be loaded.",this.viewMode="single",this.workerSrc="/pdfjs/pdf.worker.min.mjs",this.zoom=1,this.currentPage=null,this.loading=!0,this.renderedPages=[],this.singlePageModePage=1,this.visiblePages=[],this.pages=[],this.renderingPageNumbers=[],this.recentScrollPosition={x:0,y:0},this.storeRecentScrollPosition=()=>{var e,t,s,r;this.recentScrollPosition={x:Math.round(((e=this.scrollContainer)==null?void 0:e.scrollLeft)/((t=this.scrollContainer)==null?void 0:t.scrollWidth)*100)/100,y:Math.round(((s=this.scrollContainer)==null?void 0:s.scrollTop)/((r=this.scrollContainer)==null?void 0:r.scrollHeight)*100)/100}},this.onScroll=F3(()=>{this.updateVisiblePages(),this.storeRecentScrollPosition()},60)}componentWillLoad(){window.pdf.GlobalWorkerOptions.workerSrc=this.workerSrc}async componentDidLoad(){await this.getPages(),await this.updateVisiblePages(),this.activate.emit(this.el)}componentDidRender(){this.updateVisiblePages()}disconnectedCallback(){var i;(i=this.doc)==null||i.destroy()}async onWindowResize(){this.visiblePages=[],this.renderedPages=[],await this.updateVisiblePages()}async watchProps(){await this.getPages(),await this.updateVisiblePages()}async watchViewMode(){queueMicrotask(async()=>{this.visiblePages=[],this.renderedPages=[],await this.updateVisiblePages()})}watchZoom(){queueMicrotask(async()=>{this.restoreScrollPosition(),this.visiblePages=[],this.renderedPages=[],await this.updateVisiblePages()})}async getThumbnails(){return await Promise.all(this.pages.filter(Boolean).map(i=>{const e=i.getViewport({scale:1}),t=document.createElement("canvas");t.width=e.width,t.height=e.height;const s=Math.min(t.width/e.width,t.height/e.height);return i.render({canvasContext:t.getContext("2d"),viewport:i.getViewport({scale:s})}).promise.then(function(){return t})}))}async print(){this.loading=!0,await this.updateVisiblePages(!0),await this.openPrintDialog(),this.loading=!1}async nextPage(){await this.setPage(this.singlePageModePage+1),await this.updateVisiblePages()}async previousPage(){await this.setPage(this.singlePageModePage-1),await this.updateVisiblePages()}async setPage(i){this.singlePageModePage=Math.min(Math.max(i,1),this.pages.length-1),await this.updateVisiblePages()}async getPages(){this.error=!1,this.loading=!0;try{Boolean(this.doc)&&this.doc.destroy(),this.doc=await bu({isEvalSupported:!1,url:this.file}).promise;const i=[];for(let e=1;e<=this.doc.numPages;e++)i.push(this.doc.getPage(e));this.pages=await Promise.all(i),this.loading=!1}catch{this.error=!0,this.loading=!1}}async renderVisiblePages(i){const e=Array.from(this.el.shadowRoot.querySelectorAll("canvas")),t=[];for(const s of e){const r=s.closest(".file-viewer-pdf__page"),n=this.pages.find(o=>(o==null?void 0:o.pageNumber)===+(r==null?void 0:r.dataset.pageNumber));if(!(!Boolean(n)||this.renderingPageNumbers.includes(n.pageNumber))){if(!this.visiblePages.includes(n.pageNumber)&&!i){this.destroyPage(n);continue}if(this.renderedPages.includes(n.pageNumber)&&!i){t.push(n.pageNumber);continue}await this.renderPage(n,s,i),t.push(n.pageNumber)}}this.renderedPages=t}async renderPage(i,e,t){const s=e.closest(".file-viewer-pdf__page"),r=s==null?void 0:s.querySelector(".file-viewer-pdf__text-container");this.renderingPageNumbers=[...this.renderingPageNumbers,i.pageNumber];const n=t?2:this.getScale(i),o=window.devicePixelRatio||1,l=o!==1?[o,0,0,o,0,0]:null,c=i.getViewport({scale:n}),h=e.getContext("2d");e.height=Math.floor(c.height*o),e.width=Math.floor(c.width*o);const u={canvasContext:h,transform:l,viewport:c};try{await i.render(u).promise,i.cleanup(),r.innerHTML="",this.renderTextLayer(i,r).catch(),this.renderingPageNumbers=this.renderingPageNumbers.filter(f=>f!==i.pageNumber)}catch{}}destroyPage(i){const e=this.el.shadowRoot.querySelector(`[data-page-number="${i.pageNumber}"]`),t=e.querySelector("canvas"),s=e.querySelector(".file-viewer-pdf__text-container");t.width=1,t.height=1,t.getContext("2d").clearRect(0,0,t.width,t.height),s.innerHTML=""}async updateVisiblePages(i){const e=Array.from(this.el.shadowRoot.querySelectorAll(".file-viewer-pdf__page"));let t=[],s=null;if(this.singlePageMode)t=[this.singlePageModePage],s=this.singlePageModePage;else if(i)t=e.map(n=>+n.dataset.pageNumber);else{const n=e.map(o=>({pageNumber:+o.dataset.pageNumber,visibleHeight:GN(o,this.scrollContainer)})).filter(({visibleHeight:o})=>o>0);t=n.map(o=>o.pageNumber),n.length>0&&(s=n.reduce((l,c)=>c.visibleHeight>l.visibleHeight?c:l,n[0]).pageNumber)}this.visiblePages.length===t.length&&this.visiblePages.every(n=>t.includes(n))&&this.currentPage===s||(this.visiblePages=t,this.currentPage=s,await this.renderVisiblePages(i),this.visiblePagesChange.emit(this.visiblePages))}async renderTextLayer(i,e){return new nt({container:e,textContentSource:await i.getTextContent(),viewport:i.getViewport({scale:this.getScale(i)})}).render()}async openPrintDialog(){const i=Array.from(this.scrollContainer.querySelectorAll("canvas"));let e=`
549
+ `)){const s=document.createElement("div");s.append(t?document.createTextNode(t):document.createElement("br")),this.editorDiv.append(s)}},ll=new WeakSet,qP=function(){return d(this,Xt).replaceAll("\xA0"," ")},d7=new WeakSet,mf=function(t){return t.replaceAll(" ","\xA0")},cl=new WeakSet,QP=function(t){const{value:s,fontSize:r,color:n,pageIndex:o}=this._initialData;return this._hasBeenMoved||t.value!==s||t.fontSize!==r||t.color.some((l,c)=>l!==n[c])||t.pageIndex!==o},w(S3,Fo),w(S3,d7),i1(S3,"_freeTextDefaultContent",""),i1(S3,"_internalPadding",0),i1(S3,"_defaultColor",null),i1(S3,"_defaultFontSize",10),i1(S3,"_type","freetext"),i1(S3,"_editorType",S1.FREETEXT);class d1{toSVGPath(){G1("Abstract method `toSVGPath` must be implemented.")}get box(){G1("Abstract getter `box` must be implemented.")}serialize(e,t){G1("Abstract method `serialize` must be implemented.")}static _rescale(e,t,s,r,n,o){o||(o=new Float32Array(e.length));for(let l=0,c=e.length;l<c;l+=2)o[l]=t+e[l]*r,o[l+1]=s+e[l+1]*n;return o}static _rescaleAndSwap(e,t,s,r,n,o){o||(o=new Float32Array(e.length));for(let l=0,c=e.length;l<c;l+=2)o[l]=t+e[l+1]*r,o[l+1]=s+e[l]*n;return o}static _translate(e,t,s,r){r||(r=new Float32Array(e.length));for(let n=0,o=e.length;n<o;n+=2)r[n]=t+e[n],r[n+1]=s+e[n+1];return r}static svgRound(e){return Math.round(e*1e4)}static _normalizePoint(e,t,s,r,n){switch(n){case 90:return[1-t/s,e/r];case 180:return[1-e/s,1-t/r];case 270:return[t/s,1-e/r];default:return[e/s,t/r]}}static _normalizePagePoint(e,t,s){switch(s){case 90:return[1-t,e];case 180:return[1-e,1-t];case 270:return[t,1-e];default:return[e,t]}}static createBezierPoints(e,t,s,r,n,o){return[(e+5*s)/6,(t+5*r)/6,(5*s+n)/6,(5*r+o)/6,(s+n)/2,(r+o)/2]}}i1(d1,"PRECISION",1e-4);const Xo=class{constructor({x:e,y:t},s,r,n,o,l=0){w(this,Ds);w(this,ul);w(this,fl);w(this,Cl);w(this,pl);w(this,bl);w(this,ml);w(this,Qt,void 0);w(this,T3,[]);w(this,Wo,void 0);w(this,Go,void 0);w(this,hi,[]);w(this,E1,new Float32Array(18));w(this,Os,void 0);w(this,Bs,void 0);w(this,h7,void 0);w(this,u7,void 0);w(this,Yo,void 0);w(this,Ko,void 0);w(this,s6,[]);v(this,Qt,s),v(this,Ko,n*r),v(this,Go,o),d(this,E1).set([NaN,NaN,NaN,NaN,e,t],6),v(this,Wo,l),v(this,u7,d(Xo,f7)*r),v(this,h7,d(Xo,hl)*r),v(this,Yo,r),d(this,s6).push(e,t)}isEmpty(){return isNaN(d(this,E1)[8])}add({x:e,y:t}){var P;v(this,Os,e),v(this,Bs,t);const[s,r,n,o]=d(this,Qt);let[l,c,h,u]=d(this,E1).subarray(8,12);const f=e-h,C=t-u,p=Math.hypot(f,C);if(p<d(this,h7))return!1;const m=p-d(this,u7),g=m/p,y=g*f,_=g*C;let z=l,E=c;l=h,c=u,h+=y,u+=_,(P=d(this,s6))==null||P.push(e,t);const H=-_/m,A=y/m,V=H*d(this,Ko),$=A*d(this,Ko);return d(this,E1).set(d(this,E1).subarray(2,8),0),d(this,E1).set([h+V,u+$],4),d(this,E1).set(d(this,E1).subarray(14,18),12),d(this,E1).set([h-V,u-$],16),isNaN(d(this,E1)[6])?(d(this,hi).length===0&&(d(this,E1).set([l+V,c+$],2),d(this,hi).push(NaN,NaN,NaN,NaN,(l+V-s)/n,(c+$-r)/o),d(this,E1).set([l-V,c-$],14),d(this,T3).push(NaN,NaN,NaN,NaN,(l-V-s)/n,(c-$-r)/o)),d(this,E1).set([z,E,l,c,h,u],6),!this.isEmpty()):(d(this,E1).set([z,E,l,c,h,u],6),Math.abs(Math.atan2(E-c,z-l)-Math.atan2(_,y))<Math.PI/2?([l,c,h,u]=d(this,E1).subarray(2,6),d(this,hi).push(NaN,NaN,NaN,NaN,((l+h)/2-s)/n,((c+u)/2-r)/o),[l,c,z,E]=d(this,E1).subarray(14,18),d(this,T3).push(NaN,NaN,NaN,NaN,((z+l)/2-s)/n,((E+c)/2-r)/o),!0):([z,E,l,c,h,u]=d(this,E1).subarray(0,6),d(this,hi).push(((z+5*l)/6-s)/n,((E+5*c)/6-r)/o,((5*l+h)/6-s)/n,((5*c+u)/6-r)/o,((l+h)/2-s)/n,((c+u)/2-r)/o),[h,u,l,c,z,E]=d(this,E1).subarray(12,18),d(this,T3).push(((z+5*l)/6-s)/n,((E+5*c)/6-r)/o,((5*l+h)/6-s)/n,((5*c+u)/6-r)/o,((l+h)/2-s)/n,((c+u)/2-r)/o),!0))}toSVGPath(){if(this.isEmpty())return"";const e=d(this,hi),t=d(this,T3);if(isNaN(d(this,E1)[6])&&!this.isEmpty())return M(this,ul,JP).call(this);const s=[];s.push(`M${e[4]} ${e[5]}`);for(let r=6;r<e.length;r+=6)isNaN(e[r])?s.push(`L${e[r+4]} ${e[r+5]}`):s.push(`C${e[r]} ${e[r+1]} ${e[r+2]} ${e[r+3]} ${e[r+4]} ${e[r+5]}`);M(this,Cl,tT).call(this,s);for(let r=t.length-6;r>=6;r-=6)isNaN(t[r])?s.push(`L${t[r+4]} ${t[r+5]}`):s.push(`C${t[r]} ${t[r+1]} ${t[r+2]} ${t[r+3]} ${t[r+4]} ${t[r+5]}`);return M(this,fl,eT).call(this,s),s.join(" ")}newFreeDrawOutline(e,t,s,r,n,o){return new RA(e,t,s,r,n,o)}getOutlines(){var f,C;const e=d(this,hi),t=d(this,T3),s=d(this,E1),[r,n,o,l]=d(this,Qt),c=new Float32Array(((C=(f=d(this,s6))==null?void 0:f.length)!=null?C:0)+2);for(let p=0,m=c.length-2;p<m;p+=2)c[p]=(d(this,s6)[p]-r)/o,c[p+1]=(d(this,s6)[p+1]-n)/l;if(c[c.length-2]=(d(this,Os)-r)/o,c[c.length-1]=(d(this,Bs)-n)/l,isNaN(s[6])&&!this.isEmpty())return M(this,pl,iT).call(this,c);const h=new Float32Array(d(this,hi).length+24+d(this,T3).length);let u=e.length;for(let p=0;p<u;p+=2){if(isNaN(e[p])){h[p]=h[p+1]=NaN;continue}h[p]=e[p],h[p+1]=e[p+1]}u=M(this,ml,rT).call(this,h,u);for(let p=t.length-6;p>=6;p-=6)for(let m=0;m<6;m+=2){if(isNaN(t[p+m])){h[u]=h[u+1]=NaN,u+=2;continue}h[u]=t[p+m],h[u+1]=t[p+m+1],u+=2}return M(this,bl,sT).call(this,h,u),this.newFreeDrawOutline(h,c,d(this,Qt),d(this,Yo),d(this,Wo),d(this,Go))}};let R6=Xo;Qt=new WeakMap,T3=new WeakMap,Wo=new WeakMap,Go=new WeakMap,hi=new WeakMap,E1=new WeakMap,Os=new WeakMap,Bs=new WeakMap,h7=new WeakMap,u7=new WeakMap,Yo=new WeakMap,Ko=new WeakMap,s6=new WeakMap,f7=new WeakMap,dl=new WeakMap,hl=new WeakMap,Ds=new WeakSet,o9=function(){const e=d(this,E1).subarray(4,6),t=d(this,E1).subarray(16,18),[s,r,n,o]=d(this,Qt);return[(d(this,Os)+(e[0]-t[0])/2-s)/n,(d(this,Bs)+(e[1]-t[1])/2-r)/o,(d(this,Os)+(t[0]-e[0])/2-s)/n,(d(this,Bs)+(t[1]-e[1])/2-r)/o]},ul=new WeakSet,JP=function(){const[e,t,s,r]=d(this,Qt),[n,o,l,c]=M(this,Ds,o9).call(this);return`M${(d(this,E1)[2]-e)/s} ${(d(this,E1)[3]-t)/r} L${(d(this,E1)[4]-e)/s} ${(d(this,E1)[5]-t)/r} L${n} ${o} L${l} ${c} L${(d(this,E1)[16]-e)/s} ${(d(this,E1)[17]-t)/r} L${(d(this,E1)[14]-e)/s} ${(d(this,E1)[15]-t)/r} Z`},fl=new WeakSet,eT=function(e){const t=d(this,T3);e.push(`L${t[4]} ${t[5]} Z`)},Cl=new WeakSet,tT=function(e){const[t,s,r,n]=d(this,Qt),o=d(this,E1).subarray(4,6),l=d(this,E1).subarray(16,18),[c,h,u,f]=M(this,Ds,o9).call(this);e.push(`L${(o[0]-t)/r} ${(o[1]-s)/n} L${c} ${h} L${u} ${f} L${(l[0]-t)/r} ${(l[1]-s)/n}`)},pl=new WeakSet,iT=function(e){const t=d(this,E1),[s,r,n,o]=d(this,Qt),[l,c,h,u]=M(this,Ds,o9).call(this),f=new Float32Array(36);return f.set([NaN,NaN,NaN,NaN,(t[2]-s)/n,(t[3]-r)/o,NaN,NaN,NaN,NaN,(t[4]-s)/n,(t[5]-r)/o,NaN,NaN,NaN,NaN,l,c,NaN,NaN,NaN,NaN,h,u,NaN,NaN,NaN,NaN,(t[16]-s)/n,(t[17]-r)/o,NaN,NaN,NaN,NaN,(t[14]-s)/n,(t[15]-r)/o],0),this.newFreeDrawOutline(f,e,d(this,Qt),d(this,Yo),d(this,Wo),d(this,Go))},bl=new WeakSet,sT=function(e,t){const s=d(this,T3);return e.set([NaN,NaN,NaN,NaN,s[4],s[5]],t),t+=6},ml=new WeakSet,rT=function(e,t){const s=d(this,E1).subarray(4,6),r=d(this,E1).subarray(16,18),[n,o,l,c]=d(this,Qt),[h,u,f,C]=M(this,Ds,o9).call(this);return e.set([NaN,NaN,NaN,NaN,(s[0]-n)/l,(s[1]-o)/c,NaN,NaN,NaN,NaN,h,u,NaN,NaN,NaN,NaN,f,C,NaN,NaN,NaN,NaN,(r[0]-n)/l,(r[1]-o)/c],t),t+=24},w(R6,f7,8),w(R6,dl,2),w(R6,hl,d(Xo,f7)+d(Xo,dl));class RA extends d1{constructor(t,s,r,n,o,l){super();w(this,gl);w(this,qo,void 0);w(this,Rs,new Float32Array(4));w(this,o2,void 0);w(this,C7,void 0);w(this,Jt,void 0);w(this,p7,void 0);w(this,ge,void 0);v(this,ge,t),v(this,Jt,s),v(this,qo,r),v(this,p7,n),v(this,o2,o),v(this,C7,l),this.lastPoint=[NaN,NaN],M(this,gl,oT).call(this,l);const[c,h,u,f]=d(this,Rs);for(let C=0,p=t.length;C<p;C+=2)t[C]=(t[C]-c)/u,t[C+1]=(t[C+1]-h)/f;for(let C=0,p=s.length;C<p;C+=2)s[C]=(s[C]-c)/u,s[C+1]=(s[C+1]-h)/f}toSVGPath(){const t=[`M${d(this,ge)[4]} ${d(this,ge)[5]}`];for(let s=6,r=d(this,ge).length;s<r;s+=6){if(isNaN(d(this,ge)[s])){t.push(`L${d(this,ge)[s+4]} ${d(this,ge)[s+5]}`);continue}t.push(`C${d(this,ge)[s]} ${d(this,ge)[s+1]} ${d(this,ge)[s+2]} ${d(this,ge)[s+3]} ${d(this,ge)[s+4]} ${d(this,ge)[s+5]}`)}return t.push("Z"),t.join(" ")}serialize([t,s,r,n],o){const l=r-t,c=n-s;let h,u;switch(o){case 0:h=d1._rescale(d(this,ge),t,n,l,-c),u=d1._rescale(d(this,Jt),t,n,l,-c);break;case 90:h=d1._rescaleAndSwap(d(this,ge),t,s,l,c),u=d1._rescaleAndSwap(d(this,Jt),t,s,l,c);break;case 180:h=d1._rescale(d(this,ge),r,s,-l,c),u=d1._rescale(d(this,Jt),r,s,-l,c);break;case 270:h=d1._rescaleAndSwap(d(this,ge),r,n,-l,-c),u=d1._rescaleAndSwap(d(this,Jt),r,n,-l,-c);break}return{outline:Array.from(h),points:[Array.from(u)]}}get box(){return d(this,Rs)}newOutliner(t,s,r,n,o,l=0){return new R6(t,s,r,n,o,l)}getNewOutline(t,s){const[r,n,o,l]=d(this,Rs),[c,h,u,f]=d(this,qo),C=o*u,p=l*f,m=r*u+c,g=n*f+h,y=this.newOutliner({x:d(this,Jt)[0]*C+m,y:d(this,Jt)[1]*p+g},d(this,qo),d(this,p7),t,d(this,C7),s!=null?s:d(this,o2));for(let _=2;_<d(this,Jt).length;_+=2)y.add({x:d(this,Jt)[_]*C+m,y:d(this,Jt)[_+1]*p+g});return y.getOutlines()}}qo=new WeakMap,Rs=new WeakMap,o2=new WeakMap,C7=new WeakMap,Jt=new WeakMap,p7=new WeakMap,ge=new WeakMap,gl=new WeakSet,oT=function(t){const s=d(this,ge);let r=s[4],n=s[5];const o=[r,n,r,n];let l=r,c=n;const h=t?Math.max:Math.min;for(let f=6,C=s.length;f<C;f+=6){const p=s[f+4],m=s[f+5];if(isNaN(s[f]))u1.pointBoundingBox(p,m,o),c<m?(l=p,c=m):c===m&&(l=h(l,p));else{const g=[1/0,1/0,-1/0,-1/0];u1.bezierBoundingBox(r,n,...s.slice(f,f+6),g),u1.rectBoundingBox(...g,o),c<g[3]?(l=g[2],c=g[3]):c===g[3]&&(l=h(l,g[2]))}r=p,n=m}const u=d(this,Rs);u[0]=o[0]-d(this,o2),u[1]=o[1]-d(this,o2),u[2]=o[2]-o[0]+2*d(this,o2),u[3]=o[3]-o[1]+2*d(this,o2),this.lastPoint=[l,c]};class yu{constructor(e,t=0,s=0,r=!0){w(this,wl);w(this,Qo);w(this,vl);w(this,yl);w(this,g7);w(this,b7,void 0);w(this,m7,void 0);w(this,r6,[]);w(this,H3,[]);const n=[1/0,1/0,-1/0,-1/0],o=10**-4;for(const{x:p,y:m,width:g,height:y}of e){const _=Math.floor((p-t)/o)*o,z=Math.ceil((p+g+t)/o)*o,E=Math.floor((m-t)/o)*o,H=Math.ceil((m+y+t)/o)*o,A=[_,E,H,!0],V=[z,E,H,!1];d(this,r6).push(A,V),u1.rectBoundingBox(_,E,z,H,n)}const l=n[2]-n[0]+2*s,c=n[3]-n[1]+2*s,h=n[0]-s,u=n[1]-s,f=d(this,r6).at(r?-1:-2),C=[f[0],f[2]];for(const p of d(this,r6)){const[m,g,y]=p;p[0]=(m-h)/l,p[1]=(g-u)/c,p[2]=(y-u)/c}v(this,b7,new Float32Array([h,u,l,c])),v(this,m7,C)}getOutlines(){d(this,r6).sort((t,s)=>t[0]-s[0]||t[1]-s[1]||t[2]-s[2]);const e=[];for(const t of d(this,r6))t[3]?(e.push(...M(this,g7,gf).call(this,t)),M(this,vl,aT).call(this,t)):(M(this,yl,lT).call(this,t),e.push(...M(this,g7,gf).call(this,t)));return M(this,wl,nT).call(this,e)}}b7=new WeakMap,m7=new WeakMap,r6=new WeakMap,H3=new WeakMap,wl=new WeakSet,nT=function(e){const t=[],s=new Set;for(const o of e){const[l,c,h]=o;t.push([l,c,o],[l,h,o])}t.sort((o,l)=>o[1]-l[1]||o[0]-l[0]);for(let o=0,l=t.length;o<l;o+=2){const c=t[o][2],h=t[o+1][2];c.push(h),h.push(c),s.add(c),s.add(h)}const r=[];let n;for(;s.size>0;){const o=s.values().next().value;let[l,c,h,u,f]=o;s.delete(o);let C=l,p=c;for(n=[l,h],r.push(n);;){let m;if(s.has(u))m=u;else if(s.has(f))m=f;else break;s.delete(m),[l,c,h,u,f]=m,C!==l&&(n.push(C,p,l,p===c?c:h),C=l),p=p===c?h:c}n.push(C,p)}return new i61(r,d(this,b7),d(this,m7))},Qo=new WeakSet,fc=function(e){const t=d(this,H3);let s=0,r=t.length-1;for(;s<=r;){const n=s+r>>1,o=t[n][0];if(o===e)return n;o<e?s=n+1:r=n-1}return r+1},vl=new WeakSet,aT=function([,e,t]){const s=M(this,Qo,fc).call(this,e);d(this,H3).splice(s,0,[e,t])},yl=new WeakSet,lT=function([,e,t]){const s=M(this,Qo,fc).call(this,e);for(let r=s;r<d(this,H3).length;r++){const[n,o]=d(this,H3)[r];if(n!==e)break;if(n===e&&o===t){d(this,H3).splice(r,1);return}}for(let r=s-1;r>=0;r--){const[n,o]=d(this,H3)[r];if(n!==e)break;if(n===e&&o===t){d(this,H3).splice(r,1);return}}},g7=new WeakSet,gf=function(e){const[t,s,r]=e,n=[[t,s,r]],o=M(this,Qo,fc).call(this,r);for(let l=0;l<o;l++){const[c,h]=d(this,H3)[l];for(let u=0,f=n.length;u<f;u++){const[,C,p]=n[u];if(!(h<=C||p<=c)){if(C>=c){if(p>h)n[u][1]=h;else{if(f===1)return[];n.splice(u,1),u--,f--}continue}n[u][2]=c,p>h&&n.push([t,h,p])}}}return n};class i61 extends d1{constructor(t,s,r){super();w(this,w7,void 0);w(this,Jo,void 0);v(this,Jo,t),v(this,w7,s),this.lastPoint=r}toSVGPath(){const t=[];for(const s of d(this,Jo)){let[r,n]=s;t.push(`M${r} ${n}`);for(let o=2;o<s.length;o+=2){const l=s[o],c=s[o+1];l===r?(t.push(`V${c}`),n=c):c===n&&(t.push(`H${l}`),r=l)}t.push("Z")}return t.join(" ")}serialize([t,s,r,n],o){const l=[],c=r-t,h=n-s;for(const u of d(this,Jo)){const f=new Array(u.length);for(let C=0;C<u.length;C+=2)f[C]=t+u[C]*c,f[C+1]=n-u[C+1]*h;l.push(f)}return l}get box(){return d(this,w7)}get classNamesForOutlining(){return["highlightOutline"]}}w7=new WeakMap,Jo=new WeakMap;class _u extends R6{newFreeDrawOutline(e,t,s,r,n,o){return new s61(e,t,s,r,n,o)}}class s61 extends RA{newOutliner(e,t,s,r,n,o=0){return new _u(e,t,s,r,n,o)}}const e3=class{constructor({editor:e=null,uiManager:t=null}){w(this,k7);w(this,S7);w(this,z7);w(this,n2);w(this,_l);w(this,ui);w(this,V3,null);w(this,Zs,null);w(this,en,void 0);w(this,Pe,null);w(this,v7,!1);w(this,tn,!1);w(this,y7,null);w(this,_7,void 0);w(this,o6,null);w(this,$3,null);w(this,sn,void 0);var s;e?(v(this,tn,!1),v(this,sn,T1.HIGHLIGHT_COLOR),v(this,y7,e)):(v(this,tn,!0),v(this,sn,T1.HIGHLIGHT_DEFAULT_COLOR)),v(this,$3,(e==null?void 0:e._uiManager)||t),v(this,_7,d(this,$3)._eventBus),v(this,en,(e==null?void 0:e.color)||((s=d(this,$3))==null?void 0:s.highlightColors.values().next().value)||"#FFFF98"),d(e3,x7)||v(e3,x7,Object.freeze({blue:"pdfjs-editor-colorpicker-blue",green:"pdfjs-editor-colorpicker-green",pink:"pdfjs-editor-colorpicker-pink",red:"pdfjs-editor-colorpicker-red",yellow:"pdfjs-editor-colorpicker-yellow"}))}static get _keyboardManager(){return A1(this,"_keyboardManager",new va([[["Escape","mac+Escape"],e3.prototype._hideDropdownFromKeyboard],[[" ","mac+ "],e3.prototype._colorSelectFromKeyboard],[["ArrowDown","ArrowRight","mac+ArrowDown","mac+ArrowRight"],e3.prototype._moveToNext],[["ArrowUp","ArrowLeft","mac+ArrowUp","mac+ArrowLeft"],e3.prototype._moveToPrevious],[["Home","mac+Home"],e3.prototype._moveToBeginning],[["End","mac+End"],e3.prototype._moveToEnd]]))}renderButton(){const e=v(this,V3,document.createElement("button"));e.className="colorPicker",e.tabIndex="0",e.setAttribute("data-l10n-id","pdfjs-editor-colorpicker-button"),e.setAttribute("aria-haspopup",!0);const t=d(this,$3)._signal;e.addEventListener("click",M(this,n2,hr).bind(this),{signal:t}),e.addEventListener("keydown",M(this,z7,yf).bind(this),{signal:t});const s=v(this,Zs,document.createElement("span"));return s.className="swatch",s.setAttribute("aria-hidden",!0),s.style.backgroundColor=d(this,en),e.append(s),e}renderMainDropdown(){const e=v(this,Pe,M(this,k7,wf).call(this));return e.setAttribute("aria-orientation","horizontal"),e.setAttribute("aria-labelledby","highlightColorPickerLabel"),e}_colorSelectFromKeyboard(e){if(e.target===d(this,V3)){M(this,n2,hr).call(this,e);return}const t=e.target.getAttribute("data-color");!t||M(this,S7,vf).call(this,t,e)}_moveToNext(e){var t,s;if(!d(this,ui,v6)){M(this,n2,hr).call(this,e);return}if(e.target===d(this,V3)){(t=d(this,Pe).firstChild)==null||t.focus();return}(s=e.target.nextSibling)==null||s.focus()}_moveToPrevious(e){var t,s;if(e.target===((t=d(this,Pe))==null?void 0:t.firstChild)||e.target===d(this,V3)){d(this,ui,v6)&&this._hideDropdownFromKeyboard();return}d(this,ui,v6)||M(this,n2,hr).call(this,e),(s=e.target.previousSibling)==null||s.focus()}_moveToBeginning(e){var t;if(!d(this,ui,v6)){M(this,n2,hr).call(this,e);return}(t=d(this,Pe).firstChild)==null||t.focus()}_moveToEnd(e){var t;if(!d(this,ui,v6)){M(this,n2,hr).call(this,e);return}(t=d(this,Pe).lastChild)==null||t.focus()}hideDropdown(){var e,t;(e=d(this,Pe))==null||e.classList.add("hidden"),(t=d(this,o6))==null||t.abort(),v(this,o6,null)}_hideDropdownFromKeyboard(){var e;if(!d(this,tn)){if(!d(this,ui,v6)){(e=d(this,y7))==null||e.unselect();return}this.hideDropdown(),d(this,V3).focus({preventScroll:!0,focusVisible:d(this,v7)})}}updateColor(e){if(d(this,Zs)&&(d(this,Zs).style.backgroundColor=e),!d(this,Pe))return;const t=d(this,$3).highlightColors.values();for(const s of d(this,Pe).children)s.setAttribute("aria-selected",t.next().value===e)}destroy(){var e,t;(e=d(this,V3))==null||e.remove(),v(this,V3,null),v(this,Zs,null),(t=d(this,Pe))==null||t.remove(),v(this,Pe,null)}};let Br=e3;V3=new WeakMap,Zs=new WeakMap,en=new WeakMap,Pe=new WeakMap,v7=new WeakMap,tn=new WeakMap,y7=new WeakMap,_7=new WeakMap,o6=new WeakMap,$3=new WeakMap,sn=new WeakMap,x7=new WeakMap,k7=new WeakSet,wf=function(){const e=document.createElement("div"),t=d(this,$3)._signal;e.addEventListener("contextmenu",d3,{signal:t}),e.className="dropdown",e.role="listbox",e.setAttribute("aria-multiselectable",!1),e.setAttribute("aria-orientation","vertical"),e.setAttribute("data-l10n-id","pdfjs-editor-colorpicker-dropdown");for(const[s,r]of d(this,$3).highlightColors){const n=document.createElement("button");n.tabIndex="0",n.role="option",n.setAttribute("data-color",r),n.title=s,n.setAttribute("data-l10n-id",d(e3,x7)[s]);const o=document.createElement("span");n.append(o),o.className="swatch",o.style.backgroundColor=r,n.setAttribute("aria-selected",r===d(this,en)),n.addEventListener("click",M(this,S7,vf).bind(this,r),{signal:t}),e.append(n)}return e.addEventListener("keydown",M(this,z7,yf).bind(this),{signal:t}),e},S7=new WeakSet,vf=function(e,t){t.stopPropagation(),d(this,_7).dispatch("switchannotationeditorparams",{source:this,type:d(this,sn),value:e})},z7=new WeakSet,yf=function(e){e3._keyboardManager.exec(this,e)},n2=new WeakSet,hr=function(e){if(d(this,ui,v6)){this.hideDropdown();return}if(v(this,v7,e.detail===0),d(this,o6)||(v(this,o6,new AbortController),window.addEventListener("pointerdown",M(this,_l,cT).bind(this),{signal:d(this,$3).combinedSignal(d(this,o6))})),d(this,Pe)){d(this,Pe).classList.remove("hidden");return}const t=v(this,Pe,M(this,k7,wf).call(this));d(this,V3).append(t)},_l=new WeakSet,cT=function(e){var t;(t=d(this,Pe))!=null&&t.contains(e.target)||this.hideDropdown()},ui=new WeakSet,v6=function(){return d(this,Pe)&&!d(this,Pe).classList.contains("hidden")},w(Br,x7,null);const de=class extends B1{constructor(t){super({...t,name:"highlightEditor"});w(this,A7);w(this,ln);w(this,xl);w(this,kl);w(this,Sl);w(this,P7);w(this,c2);w(this,zl);w(this,cn);w(this,Fs);w(this,Ml);w(this,Ll);w(this,Al);w(this,rn,null);w(this,M7,0);w(this,a2,void 0);w(this,Ns,null);w(this,on,null);w(this,Vt,null);w(this,L7,null);w(this,I7,0);w(this,js,null);w(this,b3,null);w(this,t3,null);w(this,qe,!1);w(this,nn,null);w(this,l2,void 0);w(this,ct,null);w(this,an,"");w(this,m3,void 0);w(this,E7,"");this.color=t.color||de._defaultColor,v(this,m3,t.thickness||de._defaultThickness),v(this,l2,t.opacity||de._defaultOpacity),v(this,a2,t.boxes||null),v(this,E7,t.methodOfCreation||""),v(this,an,t.text||""),this._isDraggable=!1,this.defaultL10nId="pdfjs-editor-highlight-editor",t.highlightId>-1?(v(this,qe,!0),M(this,ln,Cc).call(this,t),M(this,c2,ur).call(this)):d(this,a2)&&(v(this,rn,t.anchorNode),v(this,M7,t.anchorOffset),v(this,L7,t.focusNode),v(this,I7,t.focusOffset),M(this,A7,_f).call(this),M(this,c2,ur).call(this),this.rotate(this.rotation))}static get _keyboardManager(){const t=de.prototype;return A1(this,"_keyboardManager",new va([[["ArrowLeft","mac+ArrowLeft"],t._moveCaret,{args:[0]}],[["ArrowRight","mac+ArrowRight"],t._moveCaret,{args:[1]}],[["ArrowUp","mac+ArrowUp"],t._moveCaret,{args:[2]}],[["ArrowDown","mac+ArrowDown"],t._moveCaret,{args:[3]}]]))}get telemetryInitialData(){return{action:"added",type:d(this,qe)?"free_highlight":"highlight",color:this._uiManager.highlightColorNames.get(this.color),thickness:d(this,m3),methodOfCreation:d(this,E7)}}get telemetryFinalData(){return{type:"highlight",color:this._uiManager.highlightColorNames.get(this.color)}}static computeTelemetryFinalData(t){return{numberOfColors:t.get("color").size}}static initialize(t,s){var r;B1.initialize(t,s),de._defaultColor||(de._defaultColor=((r=s.highlightColors)==null?void 0:r.values().next().value)||"#fff066")}static updateDefaultParams(t,s){switch(t){case T1.HIGHLIGHT_DEFAULT_COLOR:de._defaultColor=s;break;case T1.HIGHLIGHT_THICKNESS:de._defaultThickness=s;break}}translateInPage(t,s){}get toolbarPosition(){return d(this,nn)}updateParams(t,s){switch(t){case T1.HIGHLIGHT_COLOR:M(this,xl,dT).call(this,s);break;case T1.HIGHLIGHT_THICKNESS:M(this,kl,hT).call(this,s);break}}static get defaultPropertiesToUpdate(){return[[T1.HIGHLIGHT_DEFAULT_COLOR,de._defaultColor],[T1.HIGHLIGHT_THICKNESS,de._defaultThickness]]}get propertiesToUpdate(){return[[T1.HIGHLIGHT_COLOR,this.color||de._defaultColor],[T1.HIGHLIGHT_THICKNESS,d(this,m3)||de._defaultThickness],[T1.HIGHLIGHT_FREE,d(this,qe)]]}async addEditToolbar(){const t=await super.addEditToolbar();return t?(this._uiManager.highlightColors&&(v(this,on,new Br({editor:this})),t.addColorPicker(d(this,on))),t):null}disableEditing(){super.disableEditing(),this.div.classList.toggle("disabled",!0)}enableEditing(){super.enableEditing(),this.div.classList.toggle("disabled",!1)}fixAndSetPosition(){return super.fixAndSetPosition(M(this,Fs,n9).call(this))}getBaseTranslation(){return[0,0]}getRect(t,s){return super.getRect(t,s,M(this,Fs,n9).call(this))}onceAdded(t){this.annotationElementId||this.parent.addUndoableEditor(this),t&&this.div.focus()}remove(){M(this,P7,xf).call(this),this._reportTelemetry({action:"deleted"}),super.remove()}rebuild(){!this.parent||(super.rebuild(),this.div!==null&&(M(this,c2,ur).call(this),this.isAttachedToDOM||this.parent.add(this)))}setParent(t){var r;let s=!1;this.parent&&!t?M(this,P7,xf).call(this):t&&(M(this,c2,ur).call(this,t),s=!this.parent&&((r=this.div)==null?void 0:r.classList.contains("selectedEditor"))),super.setParent(t),this.show(this._isVisible),s&&this.select()}rotate(t){var n,o,l;const{drawLayer:s}=this.parent;let r;d(this,qe)?(t=(t-this.rotation+360)%360,r=M(n=de,n6,An).call(n,d(this,b3).box,t)):r=M(o=de,n6,An).call(o,[this.x,this.y,this.width,this.height],t),s.updateProperties(d(this,t3),{bbox:r,root:{"data-main-rotation":t}}),s.updateProperties(d(this,ct),{bbox:M(l=de,n6,An).call(l,d(this,Vt).box,t),root:{"data-main-rotation":t}})}render(){if(this.div)return this.div;const t=super.render();d(this,an)&&(t.setAttribute("aria-label",d(this,an)),t.setAttribute("role","mark")),d(this,qe)?t.classList.add("free"):this.div.addEventListener("keydown",M(this,zl,fT).bind(this),{signal:this._uiManager._signal});const s=v(this,js,document.createElement("div"));t.append(s),s.setAttribute("aria-hidden","true"),s.className="internal",s.style.clipPath=d(this,Ns);const[r,n]=this.parentDimensions;return this.setDims(this.width*r,this.height*n),QE(this,d(this,js),["pointerover","pointerleave"]),this.enableEditing(),t}pointerover(){var t;this.isSelected||(t=this.parent)==null||t.drawLayer.updateProperties(d(this,ct),{rootClass:{hovered:!0}})}pointerleave(){var t;this.isSelected||(t=this.parent)==null||t.drawLayer.updateProperties(d(this,ct),{rootClass:{hovered:!1}})}_moveCaret(t){switch(this.parent.unselect(this),t){case 0:case 2:M(this,cn,pc).call(this,!0);break;case 1:case 3:M(this,cn,pc).call(this,!1);break}}select(){var t;super.select(),d(this,ct)&&((t=this.parent)==null||t.drawLayer.updateProperties(d(this,ct),{rootClass:{hovered:!1,selected:!0}}))}unselect(){var t;super.unselect(),d(this,ct)&&((t=this.parent)==null||t.drawLayer.updateProperties(d(this,ct),{rootClass:{selected:!1}}),d(this,qe)||M(this,cn,pc).call(this,!1))}get _mustFixPosition(){return!d(this,qe)}show(t=this._isVisible){super.show(t),this.parent&&(this.parent.drawLayer.updateProperties(d(this,t3),{rootClass:{hidden:!t}}),this.parent.drawLayer.updateProperties(d(this,ct),{rootClass:{hidden:!t}}))}static startHighlighting(t,s,{target:r,x:n,y:o}){const{x:l,y:c,width:h,height:u}=r.getBoundingClientRect(),f=new AbortController,C=t.combinedSignal(f),p=m=>{f.abort(),M(this,El,mT).call(this,t,m)};window.addEventListener("blur",p,{signal:C}),window.addEventListener("pointerup",p,{signal:C}),window.addEventListener("pointerdown",pe,{capture:!0,passive:!1,signal:C}),window.addEventListener("contextmenu",d3,{signal:C}),r.addEventListener("pointermove",M(this,Il,bT).bind(this,t),{signal:C}),this._freeHighlight=new _u({x:n,y:o},[l,c,h,u],t.scale,this._defaultThickness/2,s,.001),{id:this._freeHighlightId,clipPathId:this._freeHighlightClipId}=t.drawLayer.draw({bbox:[0,0,1,1],root:{viewBox:"0 0 1 1",fill:this._defaultColor,"fill-opacity":this._defaultOpacity},rootClass:{highlight:!0,free:!0},path:{d:this._freeHighlight.toSVGPath()}},!0,!0)}static async deserialize(t,s,r){var g,y,_,z;let n=null;if(t instanceof BA){const{data:{quadPoints:E,rect:H,rotation:A,id:V,color:$,opacity:T,popupRef:P},parent:{page:{pageNumber:R}}}=t;n=t={annotationType:S1.HIGHLIGHT,color:Array.from($),opacity:T,quadPoints:E,boxes:null,pageIndex:R-1,rect:H.slice(0),rotation:A,id:V,deleted:!1,popupRef:P}}else if(t instanceof vu){const{data:{inkLists:E,rect:H,rotation:A,id:V,color:$,borderStyle:{rawWidth:T},popupRef:P},parent:{page:{pageNumber:R}}}=t;n=t={annotationType:S1.HIGHLIGHT,color:Array.from($),thickness:T,inkLists:E,boxes:null,pageIndex:R-1,rect:H.slice(0),rotation:A,id:V,deleted:!1,popupRef:P}}const{color:o,quadPoints:l,inkLists:c,opacity:h}=t,u=await super.deserialize(t,s,r);u.color=u1.makeHexColor(...o),v(u,l2,h||1),c&&v(u,m3,t.thickness),u.annotationElementId=t.id||null,u._initialData=n;const[f,C]=u.pageDimensions,[p,m]=u.pageTranslation;if(l){const E=v(u,a2,[]);for(let H=0;H<l.length;H+=8)E.push({x:(l[H]-p)/f,y:1-(l[H+1]-m)/C,width:(l[H+2]-l[H])/f,height:(l[H+1]-l[H+5])/C});M(g=u,A7,_f).call(g),M(y=u,c2,ur).call(y),u.rotate(u.rotation)}else if(c){v(u,qe,!0);const E=c[0],H={x:E[0]-p,y:C-(E[1]-m)},A=new _u(H,[0,0,f,C],1,d(u,m3)/2,!0,.001);for(let T=0,P=E.length;T<P;T+=2)H.x=E[T]-p,H.y=C-(E[T+1]-m),A.add(H);const{id:V,clipPathId:$}=s.drawLayer.draw({bbox:[0,0,1,1],root:{viewBox:"0 0 1 1",fill:u.color,"fill-opacity":u._defaultOpacity},rootClass:{highlight:!0,free:!0},path:{d:A.toSVGPath()}},!0,!0);M(_=u,ln,Cc).call(_,{highlightOutlines:A.getOutlines(),highlightId:V,clipPathId:$}),M(z=u,c2,ur).call(z),u.rotate(u.parentRotation)}return u}serialize(t=!1){if(this.isEmpty()||t)return null;if(this.deleted)return this.serializeDeleted();const s=this.getRect(0,0),r=B1._colorManager.convert(this.color),n={annotationType:S1.HIGHLIGHT,color:r,opacity:d(this,l2),thickness:d(this,m3),quadPoints:M(this,Ml,CT).call(this),outlines:M(this,Ll,pT).call(this,s),pageIndex:this.pageIndex,rect:s,rotation:M(this,Fs,n9).call(this),structTreeParentId:this._structTreeParentId};return this.annotationElementId&&!M(this,Al,gT).call(this,n)?null:(n.id=this.annotationElementId,n)}renderAnnotationElement(t){return t.updateEdited({rect:this.getRect(0,0)}),null}static canCreateNewEmptyEditor(){return!1}};let mt=de;rn=new WeakMap,M7=new WeakMap,a2=new WeakMap,Ns=new WeakMap,on=new WeakMap,Vt=new WeakMap,L7=new WeakMap,I7=new WeakMap,js=new WeakMap,b3=new WeakMap,t3=new WeakMap,qe=new WeakMap,nn=new WeakMap,l2=new WeakMap,ct=new WeakMap,an=new WeakMap,m3=new WeakMap,E7=new WeakMap,A7=new WeakSet,_f=function(){const t=new yu(d(this,a2),.001);v(this,b3,t.getOutlines()),[this.x,this.y,this.width,this.height]=d(this,b3).box;const s=new yu(d(this,a2),.0025,.001,this._uiManager.direction==="ltr");v(this,Vt,s.getOutlines());const{lastPoint:r}=d(this,Vt);v(this,nn,[(r[0]-this.x)/this.width,(r[1]-this.y)/this.height])},ln=new WeakSet,Cc=function({highlightOutlines:t,highlightId:s,clipPathId:r}){var f,C;v(this,b3,t);const n=1.5;if(v(this,Vt,t.getNewOutline(d(this,m3)/2+n,.0025)),s>=0)v(this,t3,s),v(this,Ns,r),this.parent.drawLayer.finalizeDraw(s,{bbox:t.box,path:{d:t.toSVGPath()}}),v(this,ct,this.parent.drawLayer.drawOutline({rootClass:{highlightOutline:!0,free:!0},bbox:d(this,Vt).box,path:{d:d(this,Vt).toSVGPath()}},!0));else if(this.parent){const p=this.parent.viewport.rotation;this.parent.drawLayer.updateProperties(d(this,t3),{bbox:M(f=de,n6,An).call(f,d(this,b3).box,(p-this.rotation+360)%360),path:{d:t.toSVGPath()}}),this.parent.drawLayer.updateProperties(d(this,ct),{bbox:M(C=de,n6,An).call(C,d(this,Vt).box,p),path:{d:d(this,Vt).toSVGPath()}})}const[o,l,c,h]=t.box;switch(this.rotation){case 0:this.x=o,this.y=l,this.width=c,this.height=h;break;case 90:{const[p,m]=this.parentDimensions;this.x=l,this.y=1-o,this.width=c*m/p,this.height=h*p/m;break}case 180:this.x=1-o,this.y=1-l,this.width=c,this.height=h;break;case 270:{const[p,m]=this.parentDimensions;this.x=1-l,this.y=o,this.width=c*m/p,this.height=h*p/m;break}}const{lastPoint:u}=d(this,Vt);v(this,nn,[(u[0]-o)/c,(u[1]-l)/h])},xl=new WeakSet,dT=function(t){const s=(o,l)=>{var c,h;this.color=o,v(this,l2,l),(c=this.parent)==null||c.drawLayer.updateProperties(d(this,t3),{root:{fill:o,"fill-opacity":l}}),(h=d(this,on))==null||h.updateColor(o)},r=this.color,n=d(this,l2);this.addCommands({cmd:s.bind(this,t,de._defaultOpacity),undo:s.bind(this,r,n),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:T1.HIGHLIGHT_COLOR,overwriteIfSameType:!0,keepUndo:!0}),this._reportTelemetry({action:"color_changed",color:this._uiManager.highlightColorNames.get(t)},!0)},kl=new WeakSet,hT=function(t){const s=d(this,m3),r=n=>{v(this,m3,n),M(this,Sl,uT).call(this,n)};this.addCommands({cmd:r.bind(this,t),undo:r.bind(this,s),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:T1.INK_THICKNESS,overwriteIfSameType:!0,keepUndo:!0}),this._reportTelemetry({action:"thickness_changed",thickness:t},!0)},Sl=new WeakSet,uT=function(t){if(!d(this,qe))return;M(this,ln,Cc).call(this,{highlightOutlines:d(this,b3).getNewOutline(t/2)}),this.fixAndSetPosition();const[s,r]=this.parentDimensions;this.setDims(this.width*s,this.height*r)},P7=new WeakSet,xf=function(){d(this,t3)===null||!this.parent||(this.parent.drawLayer.remove(d(this,t3)),v(this,t3,null),this.parent.drawLayer.remove(d(this,ct)),v(this,ct,null))},c2=new WeakSet,ur=function(t=this.parent){d(this,t3)===null&&({id:xt(this,t3)._,clipPathId:xt(this,Ns)._}=t.drawLayer.draw({bbox:d(this,b3).box,root:{viewBox:"0 0 1 1",fill:this.color,"fill-opacity":d(this,l2)},rootClass:{highlight:!0,free:d(this,qe)},path:{d:d(this,b3).toSVGPath()}},!1,!0),v(this,ct,t.drawLayer.drawOutline({rootClass:{highlightOutline:!0,free:d(this,qe)},bbox:d(this,Vt).box,path:{d:d(this,Vt).toSVGPath()}},d(this,qe))),d(this,js)&&(d(this,js).style.clipPath=d(this,Ns)))},n6=new WeakSet,An=function([t,s,r,n],o){switch(o){case 90:return[1-s-n,t,n,r];case 180:return[1-t-r,1-s-n,r,n];case 270:return[s,1-t-r,n,r]}return[t,s,r,n]},zl=new WeakSet,fT=function(t){de._keyboardManager.exec(this,t)},cn=new WeakSet,pc=function(t){if(!d(this,rn))return;const s=window.getSelection();t?s.setPosition(d(this,rn),d(this,M7)):s.setPosition(d(this,L7),d(this,I7))},Fs=new WeakSet,n9=function(){return d(this,qe)?this.rotation:0},Ml=new WeakSet,CT=function(){if(d(this,qe))return null;const[t,s]=this.pageDimensions,[r,n]=this.pageTranslation,o=d(this,a2),l=new Float32Array(o.length*8);let c=0;for(const{x:h,y:u,width:f,height:C}of o){const p=h*t+r,m=(1-u)*s+n;l[c]=l[c+4]=p,l[c+1]=l[c+3]=m,l[c+2]=l[c+6]=p+f*t,l[c+5]=l[c+7]=m-C*s,c+=8}return l},Ll=new WeakSet,pT=function(t){return d(this,b3).serialize(t,M(this,Fs,n9).call(this))},Il=new WeakSet,bT=function(t,s){this._freeHighlight.add(s)&&t.drawLayer.updateProperties(this._freeHighlightId,{path:{d:this._freeHighlight.toSVGPath()}})},El=new WeakSet,mT=function(t,s){this._freeHighlight.isEmpty()?t.drawLayer.remove(this._freeHighlightId):t.createAndAddNewEditor(s,!1,{highlightId:this._freeHighlightId,highlightOutlines:this._freeHighlight.getOutlines(),clipPathId:this._freeHighlightClipId,methodOfCreation:"main_toolbar"}),this._freeHighlightId=-1,this._freeHighlight=null,this._freeHighlightClipId=""},Al=new WeakSet,gT=function(t){const{color:s}=this._initialData;return t.color.some((r,n)=>r!==s[n])},w(mt,n6),w(mt,Il),w(mt,El),i1(mt,"_defaultColor",null),i1(mt,"_defaultOpacity",1),i1(mt,"_defaultThickness",12),i1(mt,"_type","highlight"),i1(mt,"_editorType",S1.HIGHLIGHT),i1(mt,"_freeHighlightId",-1),i1(mt,"_freeHighlight",null),i1(mt,"_freeHighlightClipId","");class ZA{constructor(){w(this,Us,Object.create(null))}updateProperty(e,t){this[e]=t,this.updateSVGProperty(e,t)}updateProperties(e){if(!!e)for(const[t,s]of Object.entries(e))t.startsWith("_")||this.updateProperty(t,s)}updateSVGProperty(e,t){d(this,Us)[e]=t}toSVGProperties(){const e=d(this,Us);return v(this,Us,Object.create(null)),{root:e}}reset(){v(this,Us,Object.create(null))}updateAll(e=this){this.updateProperties(e)}clone(){G1("Not implemented")}}Us=new WeakMap;const b1=class extends B1{constructor(t){super(t);w(this,T7);w(this,H7);w(this,V7);w(this,Ks);w(this,Pl);w(this,hn);w(this,Xs);w(this,d6);w(this,i3,null);w(this,dn,void 0);i1(this,"_drawId",null);v(this,dn,t.mustBeCommitted||!1),this._addOutlines(t)}_addOutlines(t){t.drawOutlines&&(M(this,T7,kf).call(this,t),M(this,Ks,a9).call(this))}static _mergeSVGProperties(t,s){const r=new Set(Object.keys(t));for(const[n,o]of Object.entries(s))r.has(n)?Object.assign(t[n],o):t[n]=o;return t}static getDefaultDrawingOptions(t){G1("Not implemented")}static get typesMap(){G1("Not implemented")}static get isDrawer(){return!0}static get supportMultipleDrawings(){return!1}static updateDefaultParams(t,s){const r=this.typesMap.get(t);r&&this._defaultDrawingOptions.updateProperty(r,s),this._currentParent&&(d(b1,Oe).updateProperty(r,s),this._currentParent.drawLayer.updateProperties(this._currentDrawId,this._defaultDrawingOptions.toSVGProperties()))}updateParams(t,s){const r=this.constructor.typesMap.get(t);r&&this._updateProperty(t,r,s)}static get defaultPropertiesToUpdate(){const t=[],s=this._defaultDrawingOptions;for(const[r,n]of this.typesMap)t.push([r,s[n]]);return t}get propertiesToUpdate(){const t=[],{_drawingOptions:s}=this;for(const[r,n]of this.constructor.typesMap)t.push([r,s[n]]);return t}_updateProperty(t,s,r){const n=this._drawingOptions,o=n[s],l=c=>{var u;n.updateProperty(s,c);const h=d(this,i3).updateProperty(s,c);h&&M(this,Xs,l9).call(this,h),(u=this.parent)==null||u.drawLayer.updateProperties(this._drawId,n.toSVGProperties())};this.addCommands({cmd:l.bind(this,r),undo:l.bind(this,o),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:t,overwriteIfSameType:!0,keepUndo:!0})}_onResizing(){var t;(t=this.parent)==null||t.drawLayer.updateProperties(this._drawId,b1._mergeSVGProperties(d(this,i3).getPathResizingSVGProperties(M(this,hn,bc).call(this)),{bbox:M(this,d6,Pn).call(this)}))}_onResized(){var t;(t=this.parent)==null||t.drawLayer.updateProperties(this._drawId,b1._mergeSVGProperties(d(this,i3).getPathResizedSVGProperties(M(this,hn,bc).call(this)),{bbox:M(this,d6,Pn).call(this)}))}_onTranslating(t,s){var r;(r=this.parent)==null||r.drawLayer.updateProperties(this._drawId,{bbox:M(this,d6,Pn).call(this)})}_onTranslated(){var t;(t=this.parent)==null||t.drawLayer.updateProperties(this._drawId,b1._mergeSVGProperties(d(this,i3).getPathTranslatedSVGProperties(M(this,hn,bc).call(this),this.parentDimensions),{bbox:M(this,d6,Pn).call(this)}))}_onStartDragging(){var t;(t=this.parent)==null||t.drawLayer.updateProperties(this._drawId,{rootClass:{moving:!0}})}_onStopDragging(){var t;(t=this.parent)==null||t.drawLayer.updateProperties(this._drawId,{rootClass:{moving:!1}})}commit(){super.commit(),this.disableEditMode(),this.disableEditing()}disableEditing(){super.disableEditing(),this.div.classList.toggle("disabled",!0)}enableEditing(){super.enableEditing(),this.div.classList.toggle("disabled",!1)}getBaseTranslation(){return[0,0]}get isResizable(){return!0}onceAdded(t){this.annotationElementId||this.parent.addUndoableEditor(this),this._isDraggable=!0,d(this,dn)&&(v(this,dn,!1),this.commit(),this.parent.setSelected(this),t&&this.isOnScreen&&this.div.focus())}remove(){M(this,V7,zf).call(this),super.remove()}rebuild(){!this.parent||(super.rebuild(),this.div!==null&&(M(this,Ks,a9).call(this),M(this,Xs,l9).call(this,d(this,i3).box),this.isAttachedToDOM||this.parent.add(this)))}setParent(t){var r;let s=!1;this.parent&&!t?(this._uiManager.removeShouldRescale(this),M(this,V7,zf).call(this)):t&&(this._uiManager.addShouldRescale(this),M(this,Ks,a9).call(this,t),s=!this.parent&&((r=this.div)==null?void 0:r.classList.contains("selectedEditor"))),super.setParent(t),s&&this.select()}rotate(){!this.parent||this.parent.drawLayer.updateProperties(this._drawId,b1._mergeSVGProperties({bbox:M(this,d6,Pn).call(this)},d(this,i3).updateRotation((this.parentRotation-this.rotation+360)%360)))}onScaleChanging(){!this.parent||M(this,Xs,l9).call(this,d(this,i3).updateParentDimensions(this.parentDimensions,this.parent.scale))}static onScaleChangingWhenDrawing(){}render(){if(this.div)return this.div;let t,s;this._isCopy&&(t=this.x,s=this.y);const r=super.render();r.classList.add("draw");const n=document.createElement("div");r.append(n),n.setAttribute("aria-hidden","true"),n.className="internal";const[o,l]=this.parentDimensions;return this.setDims(this.width*o,this.height*l),this._uiManager.addShouldRescale(this),this.disableEditing(),this._isCopy&&this._moveAfterPaste(t,s),r}static createDrawerInstance(t,s,r,n,o){G1("Not implemented")}static startDrawing(t,s,r,n){var y,_;const{target:o,offsetX:l,offsetY:c,pointerId:h,pointerType:u}=n;if(d(b1,l6)&&d(b1,l6)!==u)return;const{viewport:{rotation:f}}=t,{width:C,height:p}=o.getBoundingClientRect(),m=v(b1,Ws,new AbortController),g=t.combinedSignal(m);if(d(b1,a6)||v(b1,a6,h),(y=d(b1,l6))!=null||v(b1,l6,u),window.addEventListener("pointerup",z=>{var E;d(b1,a6)===z.pointerId?this._endDraw(z):(E=d(b1,c6))==null||E.delete(z.pointerId)},{signal:g}),window.addEventListener("pointercancel",z=>{var E;d(b1,a6)===z.pointerId?this._currentParent.endDrawingSession():(E=d(b1,c6))==null||E.delete(z.pointerId)},{signal:g}),window.addEventListener("pointerdown",z=>{d(b1,l6)===z.pointerType&&((d(b1,c6)||v(b1,c6,new Set)).add(z.pointerId),d(b1,Oe).isCancellable()&&(d(b1,Oe).removeLastElement(),d(b1,Oe).isEmpty()?this._currentParent.endDrawingSession(!0):this._endDraw(null)))},{capture:!0,passive:!1,signal:g}),window.addEventListener("contextmenu",d3,{signal:g}),o.addEventListener("pointermove",this._drawMove.bind(this),{signal:g}),o.addEventListener("touchmove",z=>{z.timeStamp===d(b1,Ys)&&pe(z)},{signal:g}),t.toggleDrawing(),(_=s._editorUndoBar)==null||_.hide(),d(b1,Oe)){t.drawLayer.updateProperties(this._currentDrawId,d(b1,Oe).startNew(l,c,C,p,f));return}s.updateUIForDefaultProperties(this),v(b1,Oe,this.createDrawerInstance(l,c,C,p,f)),v(b1,Gs,this.getDefaultDrawingOptions()),this._currentParent=t,{id:this._currentDrawId}=t.drawLayer.draw(this._mergeSVGProperties(d(b1,Gs).toSVGProperties(),d(b1,Oe).defaultSVGProperties),!0,!1)}static _drawMove(t){var o;if(v(b1,Ys,-1),!d(b1,Oe))return;const{offsetX:s,offsetY:r,pointerId:n}=t;if(d(b1,a6)===n){if(((o=d(b1,c6))==null?void 0:o.size)>=1){this._endDraw(t);return}this._currentParent.drawLayer.updateProperties(this._currentDrawId,d(b1,Oe).add(s,r)),v(b1,Ys,t.timeStamp),pe(t)}}static _cleanup(t){t&&(this._currentDrawId=-1,this._currentParent=null,v(b1,Oe,null),v(b1,Gs,null),v(b1,l6,null),v(b1,Ys,NaN)),d(b1,Ws)&&(d(b1,Ws).abort(),v(b1,Ws,null),v(b1,a6,NaN),v(b1,c6,null))}static _endDraw(t){const s=this._currentParent;if(!!s){if(s.toggleDrawing(!0),this._cleanup(!1),(t==null?void 0:t.target)===s.div&&s.drawLayer.updateProperties(this._currentDrawId,d(b1,Oe).end(t.offsetX,t.offsetY)),this.supportMultipleDrawings){const r=d(b1,Oe),n=this._currentDrawId,o=r.getLastElement();s.addCommands({cmd:()=>{s.drawLayer.updateProperties(n,r.setLastElement(o))},undo:()=>{s.drawLayer.updateProperties(n,r.removeLastElement())},mustExec:!1,type:T1.DRAW_STEP});return}this.endDrawing(!1)}}static endDrawing(t){const s=this._currentParent;if(!s)return null;if(s.toggleDrawing(!0),s.cleanUndoStack(T1.DRAW_STEP),!d(b1,Oe).isEmpty()){const{pageDimensions:[r,n],scale:o}=s,l=s.createAndAddNewEditor({offsetX:0,offsetY:0},!1,{drawId:this._currentDrawId,drawOutlines:d(b1,Oe).getOutlines(r*o,n*o,o,this._INNER_MARGIN),drawingOptions:d(b1,Gs),mustBeCommitted:!t});return this._cleanup(!0),l}return s.drawLayer.remove(this._currentDrawId),this._cleanup(!0),null}createDrawingOptions(t){}static deserializeDraw(t,s,r,n,o,l){G1("Not implemented")}static async deserialize(t,s,r){var f,C;const{rawDims:{pageWidth:n,pageHeight:o,pageX:l,pageY:c}}=s.viewport,h=this.deserializeDraw(l,c,n,o,this._INNER_MARGIN,t),u=await super.deserialize(t,s,r);return u.createDrawingOptions(t),M(f=u,T7,kf).call(f,{drawOutlines:h}),M(C=u,Ks,a9).call(C),u.onScaleChanging(),u.rotate(),u}serializeDraw(t){const[s,r]=this.pageTranslation,[n,o]=this.pageDimensions;return d(this,i3).serialize([s,r,n,o],t)}renderAnnotationElement(t){return t.updateEdited({rect:this.getRect(0,0)}),null}static canCreateNewEmptyEditor(){return!1}};let Pt=b1;i3=new WeakMap,dn=new WeakMap,Oe=new WeakMap,Ws=new WeakMap,Gs=new WeakMap,a6=new WeakMap,l6=new WeakMap,c6=new WeakMap,Ys=new WeakMap,T7=new WeakSet,kf=function({drawOutlines:t,drawId:s,drawingOptions:r}){v(this,i3,t),this._drawingOptions||(this._drawingOptions=r),s>=0?(this._drawId=s,this.parent.drawLayer.finalizeDraw(s,t.defaultProperties)):this._drawId=M(this,H7,Sf).call(this,t,this.parent),M(this,Xs,l9).call(this,t.box)},H7=new WeakSet,Sf=function(t,s){const{id:r}=s.drawLayer.draw(b1._mergeSVGProperties(this._drawingOptions.toSVGProperties(),t.defaultSVGProperties),!1,!1);return r},V7=new WeakSet,zf=function(){this._drawId===null||!this.parent||(this.parent.drawLayer.remove(this._drawId),this._drawId=null,this._drawingOptions.reset())},Ks=new WeakSet,a9=function(t=this.parent){if(!(this._drawId!==null&&this.parent===t)){if(this._drawId!==null){this.parent.drawLayer.updateParent(this._drawId,t.drawLayer);return}this._drawingOptions.updateAll(),this._drawId=M(this,H7,Sf).call(this,d(this,i3),t)}},Pl=new WeakSet,wT=function([t,s,r,n]){const{parentDimensions:[o,l],rotation:c}=this;switch(c){case 90:return[s,1-t,r*(l/o),n*(o/l)];case 180:return[1-t,1-s,r,n];case 270:return[1-s,t,r*(l/o),n*(o/l)];default:return[t,s,r,n]}},hn=new WeakSet,bc=function(){const{x:t,y:s,width:r,height:n,parentDimensions:[o,l],rotation:c}=this;switch(c){case 90:return[1-s,t,r*(o/l),n*(l/o)];case 180:return[1-t,1-s,r,n];case 270:return[s,1-t,r*(o/l),n*(l/o)];default:return[t,s,r,n]}},Xs=new WeakSet,l9=function(t){if([this.x,this.y,this.width,this.height]=M(this,Pl,wT).call(this,t),this.div){this.fixAndSetPosition();const[s,r]=this.parentDimensions;this.setDims(this.width*s,this.height*r)}this._onResized()},d6=new WeakSet,Pn=function(){const{x:t,y:s,width:r,height:n,rotation:o,parentRotation:l,parentDimensions:[c,h]}=this;switch((o*4+l)/90){case 1:return[1-s-n,t,n,r];case 2:return[1-t-r,1-s-n,r,n];case 3:return[s,1-t-r,n,r];case 4:return[t,s-r*(c/h),n*(h/c),r*(c/h)];case 5:return[1-s,t,r*(c/h),n*(h/c)];case 6:return[1-t-n*(h/c),1-s,n*(h/c),r*(c/h)];case 7:return[s-r*(c/h),1-t-n*(h/c),r*(c/h),n*(h/c)];case 8:return[t-r,s-n,r,n];case 9:return[1-s,t-r,n,r];case 10:return[1-t,1-s,r,n];case 11:return[s-n,1-t,n,r];case 12:return[t-n*(h/c),s,n*(h/c),r*(c/h)];case 13:return[1-s-r*(c/h),t-n*(h/c),r*(c/h),n*(h/c)];case 14:return[1-t,1-s-r*(c/h),n*(h/c),r*(c/h)];case 15:return[s,1-t,r*(c/h),n*(h/c)];default:return[t,s,r,n]}},i1(Pt,"_currentDrawId",-1),i1(Pt,"_currentParent",null),w(Pt,Oe,null),w(Pt,Ws,null),w(Pt,Gs,null),w(Pt,a6,NaN),w(Pt,l6,null),w(Pt,c6,null),w(Pt,Ys,NaN),i1(Pt,"_INNER_MARGIN",3);class r61{constructor(e,t,s,r,n,o){w(this,fn);w(this,fi,new Float64Array(6));w(this,Be,void 0);w(this,De,void 0);w(this,qs,void 0);w(this,un,void 0);w(this,gt,void 0);w(this,Qe,"");w(this,g3,0);w(this,Qs,new Ea);w(this,Js,void 0);w(this,er,void 0);v(this,Js,s),v(this,er,r),v(this,qs,n),v(this,un,o),[e,t]=M(this,fn,mc).call(this,e,t);const l=v(this,Be,[NaN,NaN,NaN,NaN,e,t]);v(this,gt,[e,t]),v(this,De,[{line:l,points:d(this,gt)}]),d(this,fi).set(l,0)}updateProperty(e,t){e==="stroke-width"&&v(this,un,t)}isEmpty(){return!d(this,De)||d(this,De).length===0}isCancellable(){return d(this,gt).length<=10}add(e,t){[e,t]=M(this,fn,mc).call(this,e,t);const[s,r,n,o]=d(this,fi).subarray(2,6),l=e-n,c=t-o;return Math.hypot(d(this,Js)*l,d(this,er)*c)<=2?null:(d(this,gt).push(e,t),isNaN(s)?(d(this,fi).set([n,o,e,t],2),d(this,Be).push(NaN,NaN,NaN,NaN,e,t),{path:{d:this.toSVGPath()}}):(isNaN(d(this,fi)[0])&&d(this,Be).splice(6,6),d(this,fi).set([s,r,n,o,e,t],0),d(this,Be).push(...d1.createBezierPoints(s,r,n,o,e,t)),{path:{d:this.toSVGPath()}}))}end(e,t){const s=this.add(e,t);return s||(d(this,gt).length===2?{path:{d:this.toSVGPath()}}:null)}startNew(e,t,s,r,n){v(this,Js,s),v(this,er,r),v(this,qs,n),[e,t]=M(this,fn,mc).call(this,e,t);const o=v(this,Be,[NaN,NaN,NaN,NaN,e,t]);v(this,gt,[e,t]);const l=d(this,De).at(-1);return l&&(l.line=new Float32Array(l.line),l.points=new Float32Array(l.points)),d(this,De).push({line:o,points:d(this,gt)}),d(this,fi).set(o,0),v(this,g3,0),this.toSVGPath(),null}getLastElement(){return d(this,De).at(-1)}setLastElement(e){return d(this,De)?(d(this,De).push(e),v(this,Be,e.line),v(this,gt,e.points),v(this,g3,0),{path:{d:this.toSVGPath()}}):d(this,Qs).setLastElement(e)}removeLastElement(){if(!d(this,De))return d(this,Qs).removeLastElement();d(this,De).pop(),v(this,Qe,"");for(let e=0,t=d(this,De).length;e<t;e++){const{line:s,points:r}=d(this,De)[e];v(this,Be,s),v(this,gt,r),v(this,g3,0),this.toSVGPath()}return{path:{d:d(this,Qe)}}}toSVGPath(){const e=d1.svgRound(d(this,Be)[4]),t=d1.svgRound(d(this,Be)[5]);if(d(this,gt).length===2)return v(this,Qe,`${d(this,Qe)} M ${e} ${t} Z`),d(this,Qe);if(d(this,gt).length<=6){const r=d(this,Qe).lastIndexOf("M");v(this,Qe,`${d(this,Qe).slice(0,r)} M ${e} ${t}`),v(this,g3,6)}if(d(this,gt).length===4){const r=d1.svgRound(d(this,Be)[10]),n=d1.svgRound(d(this,Be)[11]);return v(this,Qe,`${d(this,Qe)} L ${r} ${n}`),v(this,g3,12),d(this,Qe)}const s=[];d(this,g3)===0&&(s.push(`M ${e} ${t}`),v(this,g3,6));for(let r=d(this,g3),n=d(this,Be).length;r<n;r+=6){const[o,l,c,h,u,f]=d(this,Be).slice(r,r+6).map(d1.svgRound);s.push(`C${o} ${l} ${c} ${h} ${u} ${f}`)}return v(this,Qe,d(this,Qe)+s.join(" ")),v(this,g3,d(this,Be).length),d(this,Qe)}getOutlines(e,t,s,r){const n=d(this,De).at(-1);return n.line=new Float32Array(n.line),n.points=new Float32Array(n.points),d(this,Qs).build(d(this,De),e,t,s,d(this,qs),d(this,un),r),v(this,fi,null),v(this,Be,null),v(this,De,null),v(this,Qe,null),d(this,Qs)}get defaultSVGProperties(){return{root:{viewBox:"0 0 10000 10000"},rootClass:{draw:!0},bbox:[0,0,1,1]}}}fi=new WeakMap,Be=new WeakMap,De=new WeakMap,qs=new WeakMap,un=new WeakMap,gt=new WeakMap,Qe=new WeakMap,g3=new WeakMap,Qs=new WeakMap,Js=new WeakMap,er=new WeakMap,fn=new WeakSet,mc=function(e,t){return d1._normalizePoint(e,t,d(this,Js),d(this,er),d(this,qs))};class Ea extends d1{constructor(){super(...arguments);w(this,O3);w(this,Tl);w(this,Hl);w(this,Vl);w(this,wt,void 0);w(this,$7,0);w(this,O7,void 0);w(this,s3,void 0);w(this,Ci,void 0);w(this,pi,void 0);w(this,Cn,void 0);w(this,pn,void 0);w(this,tr,void 0)}build(t,s,r,n,o,l,c){v(this,Ci,s),v(this,pi,r),v(this,Cn,n),v(this,pn,o),v(this,tr,l),v(this,O7,c!=null?c:0),v(this,s3,t),M(this,Hl,yT).call(this)}get thickness(){return d(this,tr)}setLastElement(t){return d(this,s3).push(t),{path:{d:this.toSVGPath()}}}removeLastElement(){return d(this,s3).pop(),{path:{d:this.toSVGPath()}}}toSVGPath(){const t=[];for(const{line:s}of d(this,s3)){if(t.push(`M${d1.svgRound(s[4])} ${d1.svgRound(s[5])}`),s.length===6){t.push("Z");continue}if(s.length===12&&isNaN(s[6])){t.push(`L${d1.svgRound(s[10])} ${d1.svgRound(s[11])}`);continue}for(let r=6,n=s.length;r<n;r+=6){const[o,l,c,h,u,f]=s.subarray(r,r+6).map(d1.svgRound);t.push(`C${o} ${l} ${c} ${h} ${u} ${f}`)}}return t.join("")}serialize([t,s,r,n],o){const l=[],c=[],[h,u,f,C]=M(this,Tl,vT).call(this);let p,m,g,y,_,z,E,H,A;switch(d(this,pn)){case 0:A=d1._rescale,p=t,m=s+n,g=r,y=-n,_=t+h*r,z=s+(1-u-C)*n,E=t+(h+f)*r,H=s+(1-u)*n;break;case 90:A=d1._rescaleAndSwap,p=t,m=s,g=r,y=n,_=t+u*r,z=s+h*n,E=t+(u+C)*r,H=s+(h+f)*n;break;case 180:A=d1._rescale,p=t+r,m=s,g=-r,y=n,_=t+(1-h-f)*r,z=s+u*n,E=t+(1-h)*r,H=s+(u+C)*n;break;case 270:A=d1._rescaleAndSwap,p=t+r,m=s+n,g=-r,y=-n,_=t+(1-u-C)*r,z=s+(1-h-f)*n,E=t+(1-u)*r,H=s+(1-h)*n;break}for(const{line:V,points:$}of d(this,s3))l.push(A(V,p,m,g,y,o?new Array(V.length):null)),c.push(A($,p,m,g,y,o?new Array($.length):null));return{lines:l,points:c,rect:[_,z,E,H]}}static deserialize(t,s,r,n,o,{paths:{lines:l,points:c},rotation:h,thickness:u}){const f=[];let C,p,m,g,y;switch(h){case 0:y=d1._rescale,C=-t/r,p=s/n+1,m=1/r,g=-1/n;break;case 90:y=d1._rescaleAndSwap,C=-s/n,p=-t/r,m=1/n,g=1/r;break;case 180:y=d1._rescale,C=t/r+1,p=-s/n,m=-1/r,g=1/n;break;case 270:y=d1._rescaleAndSwap,C=s/n+1,p=t/r+1,m=-1/n,g=-1/r;break}if(!l){l=[];for(const z of c){const E=z.length;if(E===2){l.push(new Float32Array([NaN,NaN,NaN,NaN,z[0],z[1]]));continue}if(E===4){l.push(new Float32Array([NaN,NaN,NaN,NaN,z[0],z[1],NaN,NaN,NaN,NaN,z[2],z[3]]));continue}const H=new Float32Array(3*(E-2));l.push(H);let[A,V,$,T]=z.subarray(0,4);H.set([NaN,NaN,NaN,NaN,A,V],0);for(let P=4;P<E;P+=2){const R=z[P],Z=z[P+1];H.set(d1.createBezierPoints(A,V,$,T,R,Z),(P-2)*3),[A,V,$,T]=[$,T,R,Z]}}}for(let z=0,E=l.length;z<E;z++)f.push({line:y(l[z].map(H=>H!=null?H:NaN),C,p,m,g),points:y(c[z].map(H=>H!=null?H:NaN),C,p,m,g)});const _=new this.prototype.constructor;return _.build(f,r,n,1,h,u,o),_}get box(){return d(this,wt)}updateProperty(t,s){return t==="stroke-width"?M(this,Vl,_T).call(this,s):null}updateParentDimensions([t,s],r){const[n,o]=M(this,O3,v2).call(this);v(this,Ci,t),v(this,pi,s),v(this,Cn,r);const[l,c]=M(this,O3,v2).call(this),h=l-n,u=c-o,f=d(this,wt);return f[0]-=h,f[1]-=u,f[2]+=2*h,f[3]+=2*u,f}updateRotation(t){return v(this,$7,t),{path:{transform:this.rotationTransform}}}get viewBox(){return d(this,wt).map(d1.svgRound).join(" ")}get defaultProperties(){const[t,s]=d(this,wt);return{root:{viewBox:this.viewBox},path:{"transform-origin":`${d1.svgRound(t)} ${d1.svgRound(s)}`}}}get rotationTransform(){const[,,t,s]=d(this,wt);let r=0,n=0,o=0,l=0,c=0,h=0;switch(d(this,$7)){case 90:n=s/t,o=-t/s,c=t;break;case 180:r=-1,l=-1,c=t,h=s;break;case 270:n=-s/t,o=t/s,h=s;break;default:return""}return`matrix(${r} ${n} ${o} ${l} ${d1.svgRound(c)} ${d1.svgRound(h)})`}getPathResizingSVGProperties([t,s,r,n]){const[o,l]=M(this,O3,v2).call(this),[c,h,u,f]=d(this,wt);if(Math.abs(u-o)<=d1.PRECISION||Math.abs(f-l)<=d1.PRECISION){const y=t+r/2-(c+u/2),_=s+n/2-(h+f/2);return{path:{"transform-origin":`${d1.svgRound(t)} ${d1.svgRound(s)}`,transform:`${this.rotationTransform} translate(${y} ${_})`}}}const C=(r-2*o)/(u-2*o),p=(n-2*l)/(f-2*l),m=u/r,g=f/n;return{path:{"transform-origin":`${d1.svgRound(c)} ${d1.svgRound(h)}`,transform:`${this.rotationTransform} scale(${m} ${g}) translate(${d1.svgRound(o)} ${d1.svgRound(l)}) scale(${C} ${p}) translate(${d1.svgRound(-o)} ${d1.svgRound(-l)})`}}}getPathResizedSVGProperties([t,s,r,n]){const[o,l]=M(this,O3,v2).call(this),c=d(this,wt),[h,u,f,C]=c;if(c[0]=t,c[1]=s,c[2]=r,c[3]=n,Math.abs(f-o)<=d1.PRECISION||Math.abs(C-l)<=d1.PRECISION){const _=t+r/2-(h+f/2),z=s+n/2-(u+C/2);for(const{line:E,points:H}of d(this,s3))d1._translate(E,_,z,E),d1._translate(H,_,z,H);return{root:{viewBox:this.viewBox},path:{"transform-origin":`${d1.svgRound(t)} ${d1.svgRound(s)}`,transform:this.rotationTransform||null,d:this.toSVGPath()}}}const p=(r-2*o)/(f-2*o),m=(n-2*l)/(C-2*l),g=-p*(h+o)+t+o,y=-m*(u+l)+s+l;if(p!==1||m!==1||g!==0||y!==0)for(const{line:_,points:z}of d(this,s3))d1._rescale(_,g,y,p,m,_),d1._rescale(z,g,y,p,m,z);return{root:{viewBox:this.viewBox},path:{"transform-origin":`${d1.svgRound(t)} ${d1.svgRound(s)}`,transform:this.rotationTransform||null,d:this.toSVGPath()}}}getPathTranslatedSVGProperties([t,s],r){const[n,o]=r,l=d(this,wt),c=t-l[0],h=s-l[1];if(d(this,Ci)===n&&d(this,pi)===o)for(const{line:u,points:f}of d(this,s3))d1._translate(u,c,h,u),d1._translate(f,c,h,f);else{const u=d(this,Ci)/n,f=d(this,pi)/o;v(this,Ci,n),v(this,pi,o);for(const{line:C,points:p}of d(this,s3))d1._rescale(C,c,h,u,f,C),d1._rescale(p,c,h,u,f,p);l[2]*=u,l[3]*=f}return l[0]=t,l[1]=s,{root:{viewBox:this.viewBox},path:{d:this.toSVGPath(),"transform-origin":`${d1.svgRound(t)} ${d1.svgRound(s)}`}}}get defaultSVGProperties(){const t=d(this,wt);return{root:{viewBox:this.viewBox},rootClass:{draw:!0},path:{d:this.toSVGPath(),"transform-origin":`${d1.svgRound(t[0])} ${d1.svgRound(t[1])}`,transform:this.rotationTransform||null},bbox:t}}}wt=new WeakMap,$7=new WeakMap,O7=new WeakMap,s3=new WeakMap,Ci=new WeakMap,pi=new WeakMap,Cn=new WeakMap,pn=new WeakMap,tr=new WeakMap,O3=new WeakSet,v2=function(t=d(this,tr)){const s=d(this,O7)+t/2*d(this,Cn);return d(this,pn)%180===0?[s/d(this,Ci),s/d(this,pi)]:[s/d(this,pi),s/d(this,Ci)]},Tl=new WeakSet,vT=function(){const[t,s,r,n]=d(this,wt),[o,l]=M(this,O3,v2).call(this,0);return[t+o,s+l,r-2*o,n-2*l]},Hl=new WeakSet,yT=function(){const t=v(this,wt,new Float32Array([1/0,1/0,-1/0,-1/0]));for(const{line:n}of d(this,s3)){if(n.length<=12){for(let c=4,h=n.length;c<h;c+=6)u1.pointBoundingBox(n[c],n[c+1],t);continue}let o=n[4],l=n[5];for(let c=6,h=n.length;c<h;c+=6){const[u,f,C,p,m,g]=n.subarray(c,c+6);u1.bezierBoundingBox(o,l,u,f,C,p,m,g,t),o=m,l=g}}const[s,r]=M(this,O3,v2).call(this);t[0]=ot(t[0]-s,0,1),t[1]=ot(t[1]-r,0,1),t[2]=ot(t[2]+s,0,1),t[3]=ot(t[3]+r,0,1),t[2]-=t[0],t[3]-=t[1]},Vl=new WeakSet,_T=function(t){const[s,r]=M(this,O3,v2).call(this);v(this,tr,t);const[n,o]=M(this,O3,v2).call(this),[l,c]=[n-s,o-r],h=d(this,wt);return h[0]-=l,h[1]-=c,h[2]+=2*l,h[3]+=2*c,h};class e4 extends ZA{constructor(e){super(),this._viewParameters=e,super.updateProperties({fill:"none",stroke:B1._defaultLineColor,"stroke-opacity":1,"stroke-width":1,"stroke-linecap":"round","stroke-linejoin":"round","stroke-miterlimit":10})}updateSVGProperty(e,t){e==="stroke-width"&&(t!=null||(t=this["stroke-width"]),t*=this._viewParameters.realScale),super.updateSVGProperty(e,t)}clone(){const e=new e4(this._viewParameters);return e.updateAll(this),e}}const Vu=class extends Pt{constructor(t){super({...t,name:"inkEditor"});w(this,$l);this._willKeepAspectRatio=!0,this.defaultL10nId="pdfjs-editor-ink-editor"}static initialize(t,s){B1.initialize(t,s),this._defaultDrawingOptions=new e4(s.viewParameters)}static getDefaultDrawingOptions(t){const s=this._defaultDrawingOptions.clone();return s.updateProperties(t),s}static get supportMultipleDrawings(){return!0}static get typesMap(){return A1(this,"typesMap",new Map([[T1.INK_THICKNESS,"stroke-width"],[T1.INK_COLOR,"stroke"],[T1.INK_OPACITY,"stroke-opacity"]]))}static createDrawerInstance(t,s,r,n,o){return new r61(t,s,r,n,o,this._defaultDrawingOptions["stroke-width"])}static deserializeDraw(t,s,r,n,o,l){return Ea.deserialize(t,s,r,n,o,l)}static async deserialize(t,s,r){let n=null;if(t instanceof vu){const{data:{inkLists:l,rect:c,rotation:h,id:u,color:f,opacity:C,borderStyle:{rawWidth:p},popupRef:m},parent:{page:{pageNumber:g}}}=t;n=t={annotationType:S1.INK,color:Array.from(f),thickness:p,opacity:C,paths:{points:l},boxes:null,pageIndex:g-1,rect:c.slice(0),rotation:h,id:u,deleted:!1,popupRef:m}}const o=await super.deserialize(t,s,r);return o.annotationElementId=t.id||null,o._initialData=n,o}onScaleChanging(){if(!this.parent)return;super.onScaleChanging();const{_drawId:t,_drawingOptions:s,parent:r}=this;s.updateSVGProperty("stroke-width"),r.drawLayer.updateProperties(t,s.toSVGProperties())}static onScaleChangingWhenDrawing(){const t=this._currentParent;!t||(super.onScaleChangingWhenDrawing(),this._defaultDrawingOptions.updateSVGProperty("stroke-width"),t.drawLayer.updateProperties(this._currentDrawId,this._defaultDrawingOptions.toSVGProperties()))}createDrawingOptions({color:t,thickness:s,opacity:r}){this._drawingOptions=Vu.getDefaultDrawingOptions({stroke:u1.makeHexColor(...t),"stroke-width":s,"stroke-opacity":r})}serialize(t=!1){if(this.isEmpty())return null;if(this.deleted)return this.serializeDeleted();const{lines:s,points:r,rect:n}=this.serializeDraw(t),{_drawingOptions:{stroke:o,"stroke-opacity":l,"stroke-width":c}}=this,h={annotationType:S1.INK,color:B1._colorManager.convert(o),opacity:l,thickness:c,paths:{lines:s,points:r},pageIndex:this.pageIndex,rect:n,rotation:this.rotation,structTreeParentId:this._structTreeParentId};return t?(h.isCopy=!0,h):this.annotationElementId&&!M(this,$l,xT).call(this,h)?null:(h.id=this.annotationElementId,h)}renderAnnotationElement(t){const{points:s,rect:r}=this.serializeDraw(!1);return t.updateEdited({rect:r,thickness:this._drawingOptions["stroke-width"],points:s}),null}};let Dr=Vu;$l=new WeakSet,xT=function(t){const{color:s,thickness:r,opacity:n,pageIndex:o}=this._initialData;return this._hasBeenMoved||this._hasBeenResized||t.color.some((l,c)=>l!==s[c])||t.thickness!==r||t.opacity!==n||t.pageIndex!==o},i1(Dr,"_type","ink"),i1(Dr,"_editorType",S1.INK),i1(Dr,"_defaultDrawingOptions",null);class xu extends Ea{toSVGPath(){let e=super.toSVGPath();return e.endsWith("Z")||(e+="Z"),e}}const t4=8,Aa=3;class ze{static extractContoursFromText(e,{fontFamily:t,fontStyle:s,fontWeight:r},n,o,l,c){let h=new OffscreenCanvas(1,1),u=h.getContext("2d",{alpha:!1});const f=200,C=u.font=`${s} ${r} ${f}px ${t}`,{actualBoundingBoxLeft:p,actualBoundingBoxRight:m,actualBoundingBoxAscent:g,actualBoundingBoxDescent:y,fontBoundingBoxAscent:_,fontBoundingBoxDescent:z,width:E}=u.measureText(e),H=1.5,A=Math.ceil(Math.max(Math.abs(p)+Math.abs(m)||0,E)*H),V=Math.ceil(Math.max(Math.abs(g)+Math.abs(y)||f,Math.abs(_)+Math.abs(z)||f)*H);h=new OffscreenCanvas(A,V),u=h.getContext("2d",{alpha:!0,willReadFrequently:!0}),u.font=C,u.filter="grayscale(1)",u.fillStyle="white",u.fillRect(0,0,A,V),u.fillStyle="black",u.fillText(e,A*(H-1)/2,V*(3-H)/2);const $=M(this,R7,If).call(this,u.getImageData(0,0,A,V).data),T=M(this,Zl,LT).call(this,$),P=M(this,Z7,Ef).call(this,T),R=M(this,D7,Lf).call(this,$,A,V,P);return this.processDrawnLines({lines:{curves:R,width:A,height:V},pageWidth:n,pageHeight:o,rotation:l,innerMargin:c,mustSmooth:!0,areContours:!0})}static process(e,t,s,r,n){const[o,l,c]=M(this,Nl,IT).call(this,e),[h,u]=M(this,Rl,MT).call(this,o,l,c,Math.hypot(l,c)*d(this,ir).sigmaSFactor,d(this,ir).sigmaR,d(this,ir).kernelSize),f=M(this,Z7,Ef).call(this,u),C=M(this,D7,Lf).call(this,h,l,c,f);return this.processDrawnLines({lines:{curves:C,width:l,height:c},pageWidth:t,pageHeight:s,rotation:r,innerMargin:n,mustSmooth:!0,areContours:!0})}static processDrawnLines({lines:e,pageWidth:t,pageHeight:s,rotation:r,innerMargin:n,mustSmooth:o,areContours:l}){var z;r%180!==0&&([t,s]=[s,t]);const{curves:c,width:h,height:u}=e,f=(z=e.thickness)!=null?z:0,C=[],p=Math.min(t/h,s/u),m=p/t,g=p/s,y=[];for(const{points:E}of c){const H=o?M(this,Dl,zT).call(this,E):E;if(!H)continue;y.push(H);const A=H.length,V=new Float32Array(A),$=new Float32Array(3*(A===2?2:A-2));if(C.push({line:$,points:V}),A===2){V[0]=H[0]*m,V[1]=H[1]*g,$.set([NaN,NaN,NaN,NaN,V[0],V[1]],0);continue}let[T,P,R,Z]=H;T*=m,P*=g,R*=m,Z*=g,V.set([T,P,R,Z],0),$.set([NaN,NaN,NaN,NaN,T,P],0);for(let O=4;O<A;O+=2){const D=V[O]=H[O]*m,U=V[O+1]=H[O+1]*g;$.set(d1.createBezierPoints(T,P,R,Z,D,U),(O-2)*3),[T,P,R,Z]=[R,Z,D,U]}}if(C.length===0)return null;const _=l?new xu:new Ea;return _.build(C,t,s,1,r,l?0:f,n),{outline:_,newCurves:y,areContours:l,thickness:f,width:h,height:u}}static async compressSignature({outlines:e,areContours:t,thickness:s,width:r,height:n}){let o=1/0,l=-1/0,c=0;for(const E of e){c+=E.length;for(let H=2,A=E.length;H<A;H++){const V=E[H]-E[H-2];o=Math.min(o,V),l=Math.max(l,V)}}let h;o>=-128&&l<=127?h=Int8Array:o>=-32768&&l<=32767?h=Int16Array:h=Int32Array;const u=e.length,f=t4+Aa*u,C=new Uint32Array(f);let p=0;C[p++]=f*Uint32Array.BYTES_PER_ELEMENT+(c-2*u)*h.BYTES_PER_ELEMENT,C[p++]=0,C[p++]=r,C[p++]=n,C[p++]=t?0:1,C[p++]=Math.max(0,Math.floor(s!=null?s:0)),C[p++]=u,C[p++]=h.BYTES_PER_ELEMENT;for(const E of e)C[p++]=E.length-2,C[p++]=E[0],C[p++]=E[1];const m=new CompressionStream("deflate-raw"),g=m.writable.getWriter();await g.ready,g.write(C);const y=h.prototype.constructor;for(const E of e){const H=new y(E.length-2);for(let A=2,V=E.length;A<V;A++)H[A-2]=E[A]-E[A-2];g.write(H)}g.close();const _=await new Response(m.readable).arrayBuffer(),z=new Uint8Array(_);return GE(z)}static async decompressSignature(e){try{const t=Hi1(e),{readable:s,writable:r}=new DecompressionStream("deflate-raw"),n=r.getWriter();await n.ready,n.write(t).then(async()=>{await n.ready,await n.close()}).catch(()=>{});let o=null,l=0;for await(const E of s)o||(o=new Uint8Array(new Uint32Array(E.buffer,0,4)[0])),o.set(E,l),l+=E.length;const c=new Uint32Array(o.buffer,0,o.length>>2),h=c[1];if(h!==0)throw new Error(`Invalid version: ${h}`);const u=c[2],f=c[3],C=c[4]===0,p=c[5],m=c[6],g=c[7],y=[],_=(t4+Aa*m)*Uint32Array.BYTES_PER_ELEMENT;let z;switch(g){case Int8Array.BYTES_PER_ELEMENT:z=new Int8Array(o.buffer,_);break;case Int16Array.BYTES_PER_ELEMENT:z=new Int16Array(o.buffer,_);break;case Int32Array.BYTES_PER_ELEMENT:z=new Int32Array(o.buffer,_);break}l=0;for(let E=0;E<m;E++){const H=c[Aa*E+t4],A=new Float32Array(H+2);y.push(A);for(let V=0;V<Aa-1;V++)A[V]=c[Aa*E+t4+V+1];for(let V=0;V<H;V++)A[V+2]=A[V]+z[l++]}return{areContours:C,thickness:p,outlines:y,width:u,height:f}}catch(t){return x1(`decompressSignature: ${t}`),null}}}ir=new WeakMap,B7=new WeakSet,Mf=function(e,t,s,r){return s-=e,r-=t,s===0?r>0?0:4:s===1?r+6:2-r},B3=new WeakMap,Ol=new WeakSet,kT=function(e,t,s,r,n,o,l){const c=M(this,B7,Mf).call(this,s,r,n,o);for(let h=0;h<8;h++){const u=(-h+c-l+16)%8,f=d(this,B3)[2*u],C=d(this,B3)[2*u+1];if(e[(s+f)*t+(r+C)]!==0)return u}return-1},Bl=new WeakSet,ST=function(e,t,s,r,n,o,l){const c=M(this,B7,Mf).call(this,s,r,n,o);for(let h=0;h<8;h++){const u=(h+c+l+16)%8,f=d(this,B3)[2*u],C=d(this,B3)[2*u+1];if(e[(s+f)*t+(r+C)]!==0)return u}return-1},D7=new WeakSet,Lf=function(e,t,s,r){const n=e.length,o=new Int32Array(n);for(let u=0;u<n;u++)o[u]=e[u]<=r?1:0;for(let u=1;u<s-1;u++)o[u*t]=o[u*t+t-1]=0;for(let u=0;u<t;u++)o[u]=o[t*s-1-u]=0;let l=1,c;const h=[];for(let u=1;u<s-1;u++){c=1;for(let f=1;f<t-1;f++){const C=u*t+f,p=o[C];if(p===0)continue;let m=u,g=f;if(p===1&&o[C-1]===0)l+=1,g-=1;else if(p>=1&&o[C+1]===0)l+=1,g+=1,p>1&&(c=p);else{p!==1&&(c=Math.abs(p));continue}const y=[f,u],_=g===f+1,z={isHole:_,points:y,id:l,parent:0};h.push(z);let E;for(const Z of h)if(Z.id===c){E=Z;break}E?E.isHole?z.parent=_?E.parent:c:z.parent=_?c:E.parent:z.parent=_?c:0;const H=M(this,Ol,kT).call(this,o,t,u,f,m,g,0);if(H===-1){o[C]=-l,o[C]!==1&&(c=Math.abs(o[C]));continue}let A=d(this,B3)[2*H],V=d(this,B3)[2*H+1];const $=u+A,T=f+V;m=$,g=T;let P=u,R=f;for(;;){const Z=M(this,Bl,ST).call(this,o,t,P,R,m,g,1);A=d(this,B3)[2*Z],V=d(this,B3)[2*Z+1];const O=P+A,D=R+V;y.push(D,O);const U=P*t+R;if(o[U+1]===0?o[U]=-l:o[U]===1&&(o[U]=l),O===u&&D===f&&P===$&&R===T){o[C]!==1&&(c=Math.abs(o[C]));break}else m=P,g=R,P=O,R=D}}}return h},bn=new WeakSet,gc=function(e,t,s,r){if(s-t<=4){for(let $=t;$<s-2;$+=2)r.push(e[$],e[$+1]);return}const n=e[t],o=e[t+1],l=e[s-4]-n,c=e[s-3]-o,h=Math.hypot(l,c),u=l/h,f=c/h,C=u*o-f*n,p=c/l,m=1/h,g=Math.atan(p),y=Math.cos(g),_=Math.sin(g),z=m*(Math.abs(y)+Math.abs(_)),E=m*(1-z+z**2),H=Math.max(Math.atan(Math.abs(_+y)*E),Math.atan(Math.abs(_-y)*E));let A=0,V=t;for(let $=t+2;$<s-2;$+=2){const T=Math.abs(C-u*e[$+1]+f*e[$]);T>A&&(V=$,A=T)}A>(h*H)**2?(M(this,bn,gc).call(this,e,t,V+2,r),M(this,bn,gc).call(this,e,V,s,r)):r.push(n,o)},Dl=new WeakSet,zT=function(e){const t=[],s=e.length;return M(this,bn,gc).call(this,e,0,s,t),t.push(e[s-2],e[s-1]),t.length<=4?null:t},Rl=new WeakSet,MT=function(e,t,s,r,n,o){const l=new Float32Array(o**2),c=-2*r**2,h=o>>1;for(let g=0;g<o;g++){const y=(g-h)**2;for(let _=0;_<o;_++)l[g*o+_]=Math.exp((y+(_-h)**2)/c)}const u=new Float32Array(256),f=-2*n**2;for(let g=0;g<256;g++)u[g]=Math.exp(g**2/f);const C=e.length,p=new Uint8Array(C),m=new Uint32Array(256);for(let g=0;g<s;g++)for(let y=0;y<t;y++){const _=g*t+y,z=e[_];let E=0,H=0;for(let V=0;V<o;V++){const $=g+V-h;if(!($<0||$>=s))for(let T=0;T<o;T++){const P=y+T-h;if(P<0||P>=t)continue;const R=e[$*t+P],Z=l[V*o+T]*u[Math.abs(R-z)];E+=R*Z,H+=Z}}const A=p[_]=Math.round(E/H);m[A]++}return[p,m]},Zl=new WeakSet,LT=function(e){const t=new Uint32Array(256);for(const s of e)t[s]++;return t},R7=new WeakSet,If=function(e){const t=e.length,s=new Uint8ClampedArray(t>>2);let r=-1/0,n=1/0;for(let l=0,c=s.length;l<c;l++){if(e[(l<<2)+3]===0){r=s[l]=255;continue}const u=s[l]=e[l<<2];u>r&&(r=u),u<n&&(n=u)}const o=255/(r-n);for(let l=0;l<t;l++)s[l]=(s[l]-n)*o;return s},Z7=new WeakSet,Ef=function(e){let t,s=-1/0,r=-1/0;const n=e.findIndex(c=>c!==0);let o=n,l=n;for(t=n;t<256;t++){const c=e[t];c>s&&(t-o>r&&(r=t-o,l=t-1),s=c,o=t)}for(t=l-1;t>=0&&!(e[t]>e[t+1]);t--);return t},Nl=new WeakSet,IT=function(e){const t=e,{width:s,height:r}=e,{maxDim:n}=d(this,ir);let o=s,l=r;if(s>n||r>n){let C=s,p=r,m=Math.log2(Math.max(s,r)/n);const g=Math.floor(m);m=m===g?g-1:g;for(let _=0;_<m;_++){o=Math.ceil(C/2),l=Math.ceil(p/2);const z=new OffscreenCanvas(o,l);z.getContext("2d").drawImage(e,0,0,C,p,0,0,o,l),C=o,p=l,e!==t&&e.close(),e=z.transferToImageBitmap()}const y=Math.min(n/o,n/l);o=Math.round(o*y),l=Math.round(l*y)}const h=new OffscreenCanvas(o,l).getContext("2d",{willReadFrequently:!0});h.filter="grayscale(1)",h.drawImage(e,0,0,e.width,e.height,0,0,o,l);const u=h.getImageData(0,0,o,l).data;return[M(this,R7,If).call(this,u),o,l]},w(ze,B7),w(ze,Ol),w(ze,Bl),w(ze,D7),w(ze,bn),w(ze,Dl),w(ze,Rl),w(ze,Zl),w(ze,R7),w(ze,Z7),w(ze,Nl),w(ze,ir,{maxDim:512,sigmaSFactor:.02,sigmaR:25,kernelSize:16}),w(ze,B3,new Int32Array([0,1,-1,1,-1,0,-1,-1,0,-1,1,-1,1,0,1,1]));class ku extends ZA{constructor(){super(),super.updateProperties({fill:B1._defaultLineColor,"stroke-width":0})}clone(){const e=new ku;return e.updateAll(this),e}}class Su extends e4{constructor(e){super(e),super.updateProperties({stroke:B1._defaultLineColor,"stroke-width":1})}clone(){const e=new Su(this._viewParameters);return e.updateAll(this),e}}const bi=class extends Pt{constructor(t){super({...t,mustBeCommitted:!0,name:"signatureEditor"});w(this,h6,!1);w(this,r3,null);w(this,u6,null);w(this,f6,null);this._willKeepAspectRatio=!0,v(this,u6,t.signatureData||null),v(this,r3,null),this.defaultL10nId="pdfjs-editor-signature-editor1"}static initialize(t,s){B1.initialize(t,s),this._defaultDrawingOptions=new ku,this._defaultDrawnSignatureOptions=new Su(s.viewParameters)}static getDefaultDrawingOptions(t){const s=this._defaultDrawingOptions.clone();return s.updateProperties(t),s}static get supportMultipleDrawings(){return!1}static get typesMap(){return A1(this,"typesMap",new Map)}static get isDrawer(){return!1}get telemetryFinalData(){return{type:"signature",hasDescription:!!d(this,r3)}}static computeTelemetryFinalData(t){var r,n;const s=t.get("hasDescription");return{hasAltText:(r=s.get(!0))!=null?r:0,hasNoAltText:(n=s.get(!1))!=null?n:0}}get isResizable(){return!0}onScaleChanging(){this._drawId!==null&&super.onScaleChanging()}render(){if(this.div)return this.div;let t,s;const{_isCopy:r}=this;if(r&&(this._isCopy=!1,t=this.x,s=this.y),super.render(),this._drawId===null)if(d(this,u6)){const{lines:n,mustSmooth:o,areContours:l,description:c,uuid:h,heightInPage:u}=d(this,u6),{rawDims:{pageWidth:f,pageHeight:C},rotation:p}=this.parent.viewport,m=ze.processDrawnLines({lines:n,pageWidth:f,pageHeight:C,rotation:p,innerMargin:bi._INNER_MARGIN,mustSmooth:o,areContours:l});this.addSignature(m,u,c,h)}else this.div.setAttribute("data-l10n-args",JSON.stringify({description:""})),this.div.hidden=!0,this._uiManager.getSignature(this);return r&&(this._isCopy=!0,this._moveAfterPaste(t,s)),this.div}setUuid(t){v(this,f6,t),this.addEditToolbar()}getUuid(){return d(this,f6)}get description(){return d(this,r3)}set description(t){v(this,r3,t),super.addEditToolbar().then(s=>{s==null||s.updateEditSignatureButton(t)})}getSignaturePreview(){const{newCurves:t,areContours:s,thickness:r,width:n,height:o}=d(this,u6),l=Math.max(n,o),c=ze.processDrawnLines({lines:{curves:t.map(h=>({points:h})),thickness:r,width:n,height:o},pageWidth:l,pageHeight:l,rotation:0,innerMargin:0,mustSmooth:!1,areContours:s});return{areContours:s,outline:c.outline}}async addEditToolbar(){const t=await super.addEditToolbar();return t?(this._uiManager.signatureManager&&d(this,r3)!==null&&(await t.addEditSignatureButton(this._uiManager.signatureManager,d(this,f6),d(this,r3)),t.show()),t):null}addSignature(t,s,r,n){const{x:o,y:l}=this,{outline:c}=v(this,u6,t);v(this,h6,c instanceof xu),v(this,r3,r),this.div.setAttribute("data-l10n-args",JSON.stringify({description:r}));let h;d(this,h6)?h=bi.getDefaultDrawingOptions():(h=bi._defaultDrawnSignatureOptions.clone(),h.updateProperties({"stroke-width":c.thickness})),this._addOutlines({drawOutlines:c,drawingOptions:h});const[u,f]=this.parentDimensions,[,C]=this.pageDimensions;let p=s/C;p=p>=1?.5:p,this.width*=p/this.height,this.width>=1&&(p*=.9/this.width,this.width=.9),this.height=p,this.setDims(u*this.width,f*this.height),this.x=o,this.y=l,this.center(),this._onResized(),this.onScaleChanging(),this.rotate(),this._uiManager.addToAnnotationStorage(this),this.setUuid(n),this._reportTelemetry({action:"pdfjs.signature.inserted",data:{hasBeenSaved:!!n,hasDescription:!!r}}),this.div.hidden=!1}getFromImage(t){const{rawDims:{pageWidth:s,pageHeight:r},rotation:n}=this.parent.viewport;return ze.process(t,s,r,n,bi._INNER_MARGIN)}getFromText(t,s){const{rawDims:{pageWidth:r,pageHeight:n},rotation:o}=this.parent.viewport;return ze.extractContoursFromText(t,s,r,n,o,bi._INNER_MARGIN)}getDrawnSignature(t){const{rawDims:{pageWidth:s,pageHeight:r},rotation:n}=this.parent.viewport;return ze.processDrawnLines({lines:t,pageWidth:s,pageHeight:r,rotation:n,innerMargin:bi._INNER_MARGIN,mustSmooth:!1,areContours:!1})}createDrawingOptions({areContours:t,thickness:s}){t?this._drawingOptions=bi.getDefaultDrawingOptions():(this._drawingOptions=bi._defaultDrawnSignatureOptions.clone(),this._drawingOptions.updateProperties({"stroke-width":s}))}serialize(t=!1){if(this.isEmpty())return null;const{lines:s,points:r,rect:n}=this.serializeDraw(t),{_drawingOptions:{"stroke-width":o}}=this,l={annotationType:S1.SIGNATURE,isSignature:!0,areContours:d(this,h6),color:[0,0,0],thickness:d(this,h6)?0:o,pageIndex:this.pageIndex,rect:n,rotation:this.rotation,structTreeParentId:this._structTreeParentId};return t?(l.paths={lines:s,points:r},l.uuid=d(this,f6),l.isCopy=!0):l.lines=s,d(this,r3)&&(l.accessibilityData={type:"Figure",alt:d(this,r3)}),l}static deserializeDraw(t,s,r,n,o,l){return l.areContours?xu.deserialize(t,s,r,n,o,l):Ea.deserialize(t,s,r,n,o,l)}static async deserialize(t,s,r){var o;const n=await super.deserialize(t,s,r);return v(n,h6,t.areContours),v(n,r3,((o=t.accessibilityData)==null?void 0:o.alt)||""),v(n,f6,t.uuid),n}};let Rr=bi;h6=new WeakMap,r3=new WeakMap,u6=new WeakMap,f6=new WeakMap,i1(Rr,"_type","signature"),i1(Rr,"_editorType",S1.SIGNATURE),i1(Rr,"_defaultDrawingOptions",null);class zu extends B1{constructor(t){super({...t,name:"stampEditor"});w(this,rr);w(this,or);w(this,wn);w(this,vn);w(this,yn);w(this,N7);w(this,_n);w(this,jl);w(this,ie,null);w(this,Re,null);w(this,C6,null);w(this,d2,null);w(this,p6,null);w(this,mn,"");w(this,h2,null);w(this,sr,!1);w(this,mi,null);w(this,o3,!1);w(this,gn,!1);v(this,d2,t.bitmapUrl),v(this,p6,t.bitmapFile),this.defaultL10nId="pdfjs-editor-stamp-editor"}static initialize(t,s){B1.initialize(t,s)}static isHandlingMimeForPasting(t){return N0.includes(t)}static paste(t,s){s.pasteEditor({mode:S1.STAMP},{bitmapFile:t.getAsFile()})}altTextFinish(){this._uiManager.useNewAltTextFlow&&(this.div.hidden=!1),super.altTextFinish()}get telemetryFinalData(){var t;return{type:"stamp",hasAltText:!!((t=this.altTextData)!=null&&t.altText)}}static computeTelemetryFinalData(t){var r,n;const s=t.get("hasAltText");return{hasAltText:(r=s.get(!0))!=null?r:0,hasNoAltText:(n=s.get(!1))!=null?n:0}}async mlGuessAltText(t=null,s=!0){if(this.hasAltTextData())return null;const{mlManager:r}=this._uiManager;if(!r)throw new Error("No ML.");if(!await r.isEnabledFor("altText"))throw new Error("ML isn't enabled for alt text.");const{data:n,width:o,height:l}=t||this.copyCanvas(null,null,!0).imageData,c=await r.guess({name:"altText",request:{data:n,width:o,height:l,channels:n.length/(o*l)}});if(!c)throw new Error("No response from the AI service.");if(c.error)throw new Error("Error from the AI service.");if(c.cancel)return null;if(!c.output)throw new Error("No valid response from the AI service.");const h=c.output;return await this.setGuessedAltText(h),s&&!this.hasAltTextData()&&(this.altTextData={alt:h,decorative:!1}),h}remove(){var t;d(this,Re)&&(v(this,ie,null),this._uiManager.imageManager.deleteId(d(this,Re)),(t=d(this,h2))==null||t.remove(),v(this,h2,null),d(this,mi)&&(clearTimeout(d(this,mi)),v(this,mi,null))),super.remove()}rebuild(){if(!this.parent){d(this,Re)&&M(this,wn,wc).call(this);return}super.rebuild(),this.div!==null&&(d(this,Re)&&d(this,h2)===null&&M(this,wn,wc).call(this),this.isAttachedToDOM||this.parent.add(this))}onceAdded(t){this._isDraggable=!0,t&&this.div.focus()}isEmpty(){return!(d(this,C6)||d(this,ie)||d(this,d2)||d(this,p6)||d(this,Re)||d(this,sr))}get isResizable(){return!0}render(){if(this.div)return this.div;let t,s;return this._isCopy&&(t=this.x,s=this.y),super.render(),this.div.hidden=!0,this.addAltTextButton(),d(this,sr)||(d(this,ie)?M(this,vn,vc).call(this):M(this,wn,wc).call(this)),this._isCopy&&this._moveAfterPaste(t,s),this._uiManager.addShouldRescale(this),this.div}setCanvas(t,s){const{id:r,bitmap:n}=this._uiManager.imageManager.getFromCanvas(t,s);s.remove(),r&&this._uiManager.imageManager.isValidId(r)&&(v(this,Re,r),n&&v(this,ie,n),v(this,sr,!1),M(this,vn,vc).call(this))}_onResized(){this.onScaleChanging()}onScaleChanging(){if(!this.parent)return;d(this,mi)!==null&&clearTimeout(d(this,mi)),v(this,mi,setTimeout(()=>{v(this,mi,null),M(this,N7,Af).call(this)},200))}copyCanvas(t,s,r=!1){var p;t||(t=224);const{width:n,height:o}=d(this,ie),l=new k3;let c=d(this,ie),h=n,u=o,f=null;if(s){if(n>s||o>s){const T=Math.min(s/n,s/o);h=Math.floor(n*T),u=Math.floor(o*T)}f=document.createElement("canvas");const m=f.width=Math.ceil(h*l.sx),g=f.height=Math.ceil(u*l.sy);d(this,o3)||(c=M(this,yn,yc).call(this,m,g));const y=f.getContext("2d");y.filter=this._uiManager.hcmFilter;let _="white",z="#cfcfd8";this._uiManager.hcmFilter!=="none"?z="black":(p=window.matchMedia)!=null&&p.call(window,"(prefers-color-scheme: dark)").matches&&(_="#8f8f9d",z="#42414d");const E=15,H=E*l.sx,A=E*l.sy,V=new OffscreenCanvas(H*2,A*2),$=V.getContext("2d");$.fillStyle=_,$.fillRect(0,0,H*2,A*2),$.fillStyle=z,$.fillRect(0,0,H,A),$.fillRect(H,A,H,A),y.fillStyle=y.createPattern(V,"repeat"),y.fillRect(0,0,m,g),y.drawImage(c,0,0,c.width,c.height,0,0,m,g)}let C=null;if(r){let m,g;if(l.symmetric&&c.width<t&&c.height<t)m=c.width,g=c.height;else if(c=d(this,ie),n>t||o>t){const z=Math.min(t/n,t/o);m=Math.floor(n*z),g=Math.floor(o*z),d(this,o3)||(c=M(this,yn,yc).call(this,m,g))}const _=new OffscreenCanvas(m,g).getContext("2d",{willReadFrequently:!0});_.drawImage(c,0,0,c.width,c.height,0,0,m,g),C={width:m,height:g,data:_.getImageData(0,0,m,g).data}}return{canvas:f,width:h,height:u,imageData:C}}static async deserialize(t,s,r){var y;let n=null,o=!1;if(t instanceof DA){const{data:{rect:_,rotation:z,id:E,structParent:H,popupRef:A},container:V,parent:{page:{pageNumber:$}},canvas:T}=t;let P,R;T?(delete t.canvas,{id:P,bitmap:R}=r.imageManager.getFromCanvas(V.id,T),T.remove()):(o=!0,t._hasNoCanvas=!0);const Z=((y=await s._structTree.getAriaAttributes(`${su}${E}`))==null?void 0:y.get("aria-label"))||"";n=t={annotationType:S1.STAMP,bitmapId:P,bitmap:R,pageIndex:$-1,rect:_.slice(0),rotation:z,id:E,deleted:!1,accessibilityData:{decorative:!1,altText:Z},isSvg:!1,structParent:H,popupRef:A}}const l=await super.deserialize(t,s,r),{rect:c,bitmap:h,bitmapUrl:u,bitmapId:f,isSvg:C,accessibilityData:p}=t;o?(r.addMissingCanvas(t.id,l),v(l,sr,!0)):f&&r.imageManager.isValidId(f)?(v(l,Re,f),h&&v(l,ie,h)):v(l,d2,u),v(l,o3,C);const[m,g]=l.pageDimensions;return l.width=(c[2]-c[0])/m,l.height=(c[3]-c[1])/g,l.annotationElementId=t.id||null,p&&(l.altTextData=p),l._initialData=n,v(l,gn,!!n),l}serialize(t=!1,s=null){var c;if(this.isEmpty())return null;if(this.deleted)return this.serializeDeleted();const r={annotationType:S1.STAMP,bitmapId:d(this,Re),pageIndex:this.pageIndex,rect:this.getRect(0,0),rotation:this.rotation,isSvg:d(this,o3),structTreeParentId:this._structTreeParentId};if(t)return r.bitmapUrl=M(this,_n,_c).call(this,!0),r.accessibilityData=this.serializeAltText(!0),r.isCopy=!0,r;const{decorative:n,altText:o}=this.serializeAltText(!1);if(!n&&o&&(r.accessibilityData={type:"Figure",alt:o}),this.annotationElementId){const h=M(this,jl,ET).call(this,r);if(h.isSame)return null;h.isSameAltText?delete r.accessibilityData:r.accessibilityData.structParent=(c=this._initialData.structParent)!=null?c:-1}if(r.id=this.annotationElementId,s===null)return r;s.stamps||(s.stamps=new Map);const l=d(this,o3)?(r.rect[2]-r.rect[0])*(r.rect[3]-r.rect[1]):null;if(!s.stamps.has(d(this,Re)))s.stamps.set(d(this,Re),{area:l,serialized:r}),r.bitmap=M(this,_n,_c).call(this,!1);else if(d(this,o3)){const h=s.stamps.get(d(this,Re));l>h.area&&(h.area=l,h.serialized.bitmap.close(),h.serialized.bitmap=M(this,_n,_c).call(this,!1))}return r}renderAnnotationElement(t){return t.updateEdited({rect:this.getRect(0,0)}),null}}ie=new WeakMap,Re=new WeakMap,C6=new WeakMap,d2=new WeakMap,p6=new WeakMap,mn=new WeakMap,h2=new WeakMap,sr=new WeakMap,mi=new WeakMap,o3=new WeakMap,gn=new WeakMap,rr=new WeakSet,c9=function(t,s=!1){if(!t){this.remove();return}v(this,ie,t.bitmap),s||(v(this,Re,t.id),v(this,o3,t.isSvg)),t.file&&v(this,mn,t.file.name),M(this,vn,vc).call(this)},or=new WeakSet,d9=function(){if(v(this,C6,null),this._uiManager.enableWaiting(!1),!!d(this,h2)){if(this._uiManager.useNewAltTextWhenAddingImage&&this._uiManager.useNewAltTextFlow&&d(this,ie)){this._editToolbar.hide(),this._uiManager.editAltText(this,!0);return}if(!this._uiManager.useNewAltTextWhenAddingImage&&this._uiManager.useNewAltTextFlow&&d(this,ie)){this._reportTelemetry({action:"pdfjs.image.image_added",data:{alt_text_modal:!1,alt_text_type:"empty"}});try{this.mlGuessAltText()}catch{}}this.div.focus()}},wn=new WeakSet,wc=function(){if(d(this,Re)){this._uiManager.enableWaiting(!0),this._uiManager.imageManager.getFromId(d(this,Re)).then(r=>M(this,rr,c9).call(this,r,!0)).finally(()=>M(this,or,d9).call(this));return}if(d(this,d2)){const r=d(this,d2);v(this,d2,null),this._uiManager.enableWaiting(!0),v(this,C6,this._uiManager.imageManager.getFromUrl(r).then(n=>M(this,rr,c9).call(this,n)).finally(()=>M(this,or,d9).call(this)));return}if(d(this,p6)){const r=d(this,p6);v(this,p6,null),this._uiManager.enableWaiting(!0),v(this,C6,this._uiManager.imageManager.getFromFile(r).then(n=>M(this,rr,c9).call(this,n)).finally(()=>M(this,or,d9).call(this)));return}const t=document.createElement("input");t.type="file",t.accept=N0.join(",");const s=this._uiManager._signal;v(this,C6,new Promise(r=>{t.addEventListener("change",async()=>{if(!t.files||t.files.length===0)this.remove();else{this._uiManager.enableWaiting(!0);const n=await this._uiManager.imageManager.getFromFile(t.files[0]);this._reportTelemetry({action:"pdfjs.image.image_selected",data:{alt_text_modal:this._uiManager.useNewAltTextFlow}}),M(this,rr,c9).call(this,n)}r()},{signal:s}),t.addEventListener("cancel",()=>{this.remove(),r()},{signal:s})}).finally(()=>M(this,or,d9).call(this))),t.click()},vn=new WeakSet,vc=function(){var f;const{div:t}=this;let{width:s,height:r}=d(this,ie);const[n,o]=this.pageDimensions,l=.75;if(this.width)s=this.width*n,r=this.height*o;else if(s>l*n||r>l*o){const C=Math.min(l*n/s,l*o/r);s*=C,r*=C}const[c,h]=this.parentDimensions;this.setDims(s*c/n,r*h/o),this._uiManager.enableWaiting(!1);const u=v(this,h2,document.createElement("canvas"));u.setAttribute("role","img"),this.addContainer(u),this.width=s/n,this.height=r/o,(f=this._initialOptions)!=null&&f.isCentered?this.center():this.fixAndSetPosition(),this._initialOptions=null,(!this._uiManager.useNewAltTextWhenAddingImage||!this._uiManager.useNewAltTextFlow||this.annotationElementId)&&(t.hidden=!1),M(this,N7,Af).call(this),d(this,gn)||(this.parent.addUndoableEditor(this),v(this,gn,!0)),this._reportTelemetry({action:"inserted_image"}),d(this,mn)&&this.div.setAttribute("aria-description",d(this,mn))},yn=new WeakSet,yc=function(t,s){const{width:r,height:n}=d(this,ie);let o=r,l=n,c=d(this,ie);for(;o>2*t||l>2*s;){const h=o,u=l;o>2*t&&(o=o>=16384?Math.floor(o/2)-1:Math.ceil(o/2)),l>2*s&&(l=l>=16384?Math.floor(l/2)-1:Math.ceil(l/2));const f=new OffscreenCanvas(o,l);f.getContext("2d").drawImage(c,0,0,h,u,0,0,o,l),c=f.transferToImageBitmap()}return c},N7=new WeakSet,Af=function(){const[t,s]=this.parentDimensions,{width:r,height:n}=this,o=new k3,l=Math.ceil(r*t*o.sx),c=Math.ceil(n*s*o.sy),h=d(this,h2);if(!h||h.width===l&&h.height===c)return;h.width=l,h.height=c;const u=d(this,o3)?d(this,ie):M(this,yn,yc).call(this,l,c),f=h.getContext("2d");f.filter=this._uiManager.hcmFilter,f.drawImage(u,0,0,u.width,u.height,0,0,l,c)},_n=new WeakSet,_c=function(t){if(t){if(d(this,o3)){const n=this._uiManager.imageManager.getSvgUrl(d(this,Re));if(n)return n}const s=document.createElement("canvas");return{width:s.width,height:s.height}=d(this,ie),s.getContext("2d").drawImage(d(this,ie),0,0),s.toDataURL()}if(d(this,o3)){const[s,r]=this.pageDimensions,n=Math.round(this.width*s*c3.PDF_TO_CSS_UNITS),o=Math.round(this.height*r*c3.PDF_TO_CSS_UNITS),l=new OffscreenCanvas(n,o);return l.getContext("2d").drawImage(d(this,ie),0,0,d(this,ie).width,d(this,ie).height,0,0,n,o),l.transferToImageBitmap()}return structuredClone(d(this,ie))},jl=new WeakSet,ET=function(t){var l;const{pageIndex:s,accessibilityData:{altText:r}}=this._initialData,n=t.pageIndex===s,o=(((l=t.accessibilityData)==null?void 0:l.alt)||"")===r;return{isSame:!this._hasBeenMoved&&!this._hasBeenResized&&n&&o,isSameAltText:o}},i1(zu,"_type","stamp"),i1(zu,"_editorType",S1.STAMP);const p2=class{constructor({uiManager:e,pageIndex:t,div:s,structTreeLayer:r,accessibilityManager:n,annotationLayer:o,drawLayer:l,textLayer:c,viewport:h,l10n:u}){w(this,Fl);w(this,v3);w(this,j7);w(this,F7);w(this,Sn);w(this,nr,void 0);w(this,xn,!1);w(this,gi,null);w(this,b6,null);w(this,u2,null);w(this,w3,new Map);w(this,m6,!1);w(this,kn,!1);w(this,ar,!1);w(this,D3,null);w(this,f2,null);w(this,dt,null);w(this,C2,null);w(this,f1,void 0);const f=[...d(p2,g6).values()];if(!p2._initialized){p2._initialized=!0;for(const C of f)C.initialize(u,e)}e.registerEditorTypes(f),v(this,f1,e),this.pageIndex=t,this.div=s,v(this,nr,n),v(this,gi,o),this.viewport=h,v(this,dt,c),this.drawLayer=l,this._structTree=r,d(this,f1).addLayer(this)}get isEmpty(){return d(this,w3).size===0}get isInvisible(){return this.isEmpty&&d(this,f1).getMode()===S1.NONE}updateToolbar(e){d(this,f1).updateToolbar(e)}updateMode(e=d(this,f1).getMode()){switch(M(this,Sn,xc).call(this),e){case S1.NONE:this.disableTextSelection(),this.togglePointerEvents(!1),this.toggleAnnotationLayerPointerEvents(!0),this.disableClick();return;case S1.INK:this.disableTextSelection(),this.togglePointerEvents(!0),this.enableClick();break;case S1.HIGHLIGHT:this.enableTextSelection(),this.togglePointerEvents(!1),this.disableClick();break;default:this.disableTextSelection(),this.togglePointerEvents(!0),this.enableClick()}this.toggleAnnotationLayerPointerEvents(!1);const{classList:t}=this.div;for(const s of d(p2,g6).values())t.toggle(`${s._type}Editing`,e===s._editorType);this.div.hidden=!1}hasTextLayer(e){var t;return e===((t=d(this,dt))==null?void 0:t.div)}setEditingState(e){d(this,f1).setEditingState(e)}addCommands(e){d(this,f1).addCommands(e)}cleanUndoStack(e){d(this,f1).cleanUndoStack(e)}toggleDrawing(e=!1){this.div.classList.toggle("drawing",!e)}togglePointerEvents(e=!1){this.div.classList.toggle("disabled",!e)}toggleAnnotationLayerPointerEvents(e=!1){var t;(t=d(this,gi))==null||t.div.classList.toggle("disabled",!e)}async enable(){v(this,ar,!0),this.div.tabIndex=0,this.togglePointerEvents(!0);const e=new Set;for(const s of d(this,w3).values())s.enableEditing(),s.show(!0),s.annotationElementId&&(d(this,f1).removeChangedExistingAnnotation(s),e.add(s.annotationElementId));if(!d(this,gi)){v(this,ar,!1);return}const t=d(this,gi).getEditableAnnotations();for(const s of t){if(s.hide(),d(this,f1).isDeletedAnnotationElement(s.data.id)||e.has(s.data.id))continue;const r=await this.deserialize(s);!r||(this.addOrRebuild(r),r.enableEditing())}v(this,ar,!1)}disable(){var r;v(this,kn,!0),this.div.tabIndex=-1,this.togglePointerEvents(!1);const e=new Map,t=new Map;for(const n of d(this,w3).values())if(n.disableEditing(),!!n.annotationElementId){if(n.serialize()!==null){e.set(n.annotationElementId,n);continue}else t.set(n.annotationElementId,n);(r=this.getEditableAnnotation(n.annotationElementId))==null||r.show(),n.remove()}if(d(this,gi)){const n=d(this,gi).getEditableAnnotations();for(const o of n){const{id:l}=o.data;if(d(this,f1).isDeletedAnnotationElement(l))continue;let c=t.get(l);if(c){c.resetAnnotationElement(o),c.show(!1),o.show();continue}c=e.get(l),c&&(d(this,f1).addChangedExistingAnnotation(c),c.renderAnnotationElement(o)&&c.show(!1)),o.show()}}M(this,Sn,xc).call(this),this.isEmpty&&(this.div.hidden=!0);const{classList:s}=this.div;for(const n of d(p2,g6).values())s.remove(`${n._type}Editing`);this.disableTextSelection(),this.toggleAnnotationLayerPointerEvents(!0),v(this,kn,!1)}getEditableAnnotation(e){var t;return((t=d(this,gi))==null?void 0:t.getEditableAnnotation(e))||null}setActiveEditor(e){d(this,f1).getActive()!==e&&d(this,f1).setActiveEditor(e)}enableTextSelection(){var e;if(this.div.tabIndex=-1,((e=d(this,dt))==null?void 0:e.div)&&!d(this,C2)){v(this,C2,new AbortController);const t=d(this,f1).combinedSignal(d(this,C2));d(this,dt).div.addEventListener("pointerdown",M(this,Fl,AT).bind(this),{signal:t}),d(this,dt).div.classList.add("highlighting")}}disableTextSelection(){var e;this.div.tabIndex=0,((e=d(this,dt))==null?void 0:e.div)&&d(this,C2)&&(d(this,C2).abort(),v(this,C2,null),d(this,dt).div.classList.remove("highlighting"))}enableClick(){if(d(this,b6))return;v(this,b6,new AbortController);const e=d(this,f1).combinedSignal(d(this,b6));this.div.addEventListener("pointerdown",this.pointerdown.bind(this),{signal:e});const t=this.pointerup.bind(this);this.div.addEventListener("pointerup",t,{signal:e}),this.div.addEventListener("pointercancel",t,{signal:e})}disableClick(){var e;(e=d(this,b6))==null||e.abort(),v(this,b6,null)}attach(e){d(this,w3).set(e.id,e);const{annotationElementId:t}=e;t&&d(this,f1).isDeletedAnnotationElement(t)&&d(this,f1).removeDeletedAnnotationElement(e)}detach(e){var t;d(this,w3).delete(e.id),(t=d(this,nr))==null||t.removePointerInTextLayer(e.contentDiv),!d(this,kn)&&e.annotationElementId&&d(this,f1).addDeletedAnnotationElement(e)}remove(e){this.detach(e),d(this,f1).removeEditor(e),e.div.remove(),e.isAttachedToDOM=!1}changeParent(e){var t;e.parent!==this&&(e.parent&&e.annotationElementId&&(d(this,f1).addDeletedAnnotationElement(e.annotationElementId),B1.deleteAnnotationElement(e),e.annotationElementId=null),this.attach(e),(t=e.parent)==null||t.detach(e),e.setParent(this),e.div&&e.isAttachedToDOM&&(e.div.remove(),this.div.append(e.div)))}add(e){if(!(e.parent===this&&e.isAttachedToDOM)){if(this.changeParent(e),d(this,f1).addEditor(e),this.attach(e),!e.isAttachedToDOM){const t=e.render();this.div.append(t),e.isAttachedToDOM=!0}e.fixAndSetPosition(),e.onceAdded(!d(this,ar)),d(this,f1).addToAnnotationStorage(e),e._reportTelemetry(e.telemetryInitialData)}}moveEditorInDOM(e){var s;if(!e.isAttachedToDOM)return;const{activeElement:t}=document;e.div.contains(t)&&!d(this,u2)&&(e._focusEventsAllowed=!1,v(this,u2,setTimeout(()=>{v(this,u2,null),e.div.contains(document.activeElement)?e._focusEventsAllowed=!0:(e.div.addEventListener("focusin",()=>{e._focusEventsAllowed=!0},{once:!0,signal:d(this,f1)._signal}),t.focus())},0))),e._structTreeParentId=(s=d(this,nr))==null?void 0:s.moveElementInDOM(this.div,e.div,e.contentDiv,!0)}addOrRebuild(e){e.needsToBeRebuilt()?(e.parent||(e.parent=this),e.rebuild(),e.show()):this.add(e)}addUndoableEditor(e){const t=()=>e._uiManager.rebuild(e),s=()=>{e.remove()};this.addCommands({cmd:t,undo:s,mustExec:!1})}getNextId(){return d(this,f1).getId()}combinedSignal(e){return d(this,f1).combinedSignal(e)}canCreateNewEmptyEditor(){var e;return(e=d(this,v3,vi))==null?void 0:e.canCreateNewEmptyEditor()}async pasteEditor(e,t){this.updateToolbar(e),await d(this,f1).updateMode(e.mode);const{offsetX:s,offsetY:r}=M(this,F7,Tf).call(this),n=this.getNextId(),o=M(this,j7,Pf).call(this,{parent:this,id:n,x:s,y:r,uiManager:d(this,f1),isCentered:!0,...t});o&&this.add(o)}async deserialize(e){var t,s;return await((s=d(p2,g6).get((t=e.annotationType)!=null?t:e.annotationEditorType))==null?void 0:s.deserialize(e,this,d(this,f1)))||null}createAndAddNewEditor(e,t,s={}){const r=this.getNextId(),n=M(this,j7,Pf).call(this,{parent:this,id:r,x:e.offsetX,y:e.offsetY,uiManager:d(this,f1),isCentered:t,...s});return n&&this.add(n),n}addNewEditor(e={}){this.createAndAddNewEditor(M(this,F7,Tf).call(this),!0,e)}setSelected(e){d(this,f1).setSelected(e)}toggleSelected(e){d(this,f1).toggleSelected(e)}unselect(e){d(this,f1).unselect(e)}pointerup(e){var r;const{isMac:t}=Te.platform;if(e.button!==0||e.ctrlKey&&t||e.target!==this.div||!d(this,m6)||(v(this,m6,!1),((r=d(this,v3,vi))==null?void 0:r.isDrawer)&&d(this,v3,vi).supportMultipleDrawings))return;if(!d(this,xn)){v(this,xn,!0);return}const s=d(this,f1).getMode();if(s===S1.STAMP||s===S1.SIGNATURE){d(this,f1).unselectAll();return}this.createAndAddNewEditor(e,!1)}pointerdown(e){var r;if(d(this,f1).getMode()===S1.HIGHLIGHT&&this.enableTextSelection(),d(this,m6)){v(this,m6,!1);return}const{isMac:t}=Te.platform;if(e.button!==0||e.ctrlKey&&t||e.target!==this.div)return;if(v(this,m6,!0),(r=d(this,v3,vi))!=null&&r.isDrawer){this.startDrawingSession(e);return}const s=d(this,f1).getActive();v(this,xn,!s||s.isEmpty())}startDrawingSession(e){if(this.div.focus({preventScroll:!0}),d(this,D3)){d(this,v3,vi).startDrawing(this,d(this,f1),!1,e);return}d(this,f1).setCurrentDrawingSession(this),v(this,D3,new AbortController);const t=d(this,f1).combinedSignal(d(this,D3));this.div.addEventListener("blur",({relatedTarget:s})=>{s&&!this.div.contains(s)&&(v(this,f2,null),this.commitOrRemove())},{signal:t}),d(this,v3,vi).startDrawing(this,d(this,f1),!1,e)}pause(e){if(e){const{activeElement:t}=document;this.div.contains(t)&&v(this,f2,t);return}d(this,f2)&&setTimeout(()=>{var t;(t=d(this,f2))==null||t.focus(),v(this,f2,null)},0)}endDrawingSession(e=!1){return d(this,D3)?(d(this,f1).setCurrentDrawingSession(null),d(this,D3).abort(),v(this,D3,null),v(this,f2,null),d(this,v3,vi).endDrawing(e)):null}findNewParent(e,t,s){const r=d(this,f1).findParent(t,s);return r===null||r===this?!1:(r.changeParent(e),!0)}commitOrRemove(){return d(this,D3)?(this.endDrawingSession(),!0):!1}onScaleChanging(){!d(this,D3)||d(this,v3,vi).onScaleChangingWhenDrawing(this)}destroy(){var e,t;this.commitOrRemove(),((e=d(this,f1).getActive())==null?void 0:e.parent)===this&&(d(this,f1).commitOrRemove(),d(this,f1).setActiveEditor(null)),d(this,u2)&&(clearTimeout(d(this,u2)),v(this,u2,null));for(const s of d(this,w3).values())(t=d(this,nr))==null||t.removePointerInTextLayer(s.contentDiv),s.setParent(null),s.isAttachedToDOM=!1,s.div.remove();this.div=null,d(this,w3).clear(),d(this,f1).removeLayer(this)}render({viewport:e}){this.viewport=e,E2(this.div,e);for(const t of d(this,f1).getEditors(this.pageIndex))this.add(t),t.rebuild();this.updateMode()}update({viewport:e}){d(this,f1).commitOrRemove(),M(this,Sn,xc).call(this);const t=this.viewport.rotation,s=e.rotation;if(this.viewport=e,E2(this.div,{rotation:s}),t!==s)for(const r of d(this,w3).values())r.rotate(s)}get pageDimensions(){const{pageWidth:e,pageHeight:t}=this.viewport.rawDims;return[e,t]}get scale(){return d(this,f1).viewParameters.realScale}};let Zr=p2;nr=new WeakMap,xn=new WeakMap,gi=new WeakMap,b6=new WeakMap,u2=new WeakMap,w3=new WeakMap,m6=new WeakMap,kn=new WeakMap,ar=new WeakMap,D3=new WeakMap,f2=new WeakMap,dt=new WeakMap,C2=new WeakMap,f1=new WeakMap,g6=new WeakMap,Fl=new WeakSet,AT=function(e){d(this,f1).unselectAll();const{target:t}=e;if(t===d(this,dt).div||(t.getAttribute("role")==="img"||t.classList.contains("endOfContent"))&&d(this,dt).div.contains(t)){const{isMac:s}=Te.platform;if(e.button!==0||e.ctrlKey&&s)return;d(this,f1).showAllEditors("highlight",!0,!0),d(this,dt).div.classList.add("free"),this.toggleDrawing(),mt.startHighlighting(this,d(this,f1).direction==="ltr",{target:d(this,dt).div,x:e.x,y:e.y}),d(this,dt).div.addEventListener("pointerup",()=>{d(this,dt).div.classList.remove("free"),this.toggleDrawing(!0)},{once:!0,signal:d(this,f1)._signal}),e.preventDefault()}},v3=new WeakSet,vi=function(){return d(p2,g6).get(d(this,f1).getMode())},j7=new WeakSet,Pf=function(e){const t=d(this,v3,vi);return t?new t.prototype.constructor(e):null},F7=new WeakSet,Tf=function(){const{x:e,y:t,width:s,height:r}=this.div.getBoundingClientRect(),n=Math.max(0,e),o=Math.max(0,t),l=Math.min(window.innerWidth,e+s),c=Math.min(window.innerHeight,t+r),h=(n+l)/2-e,u=(o+c)/2-t,[f,C]=this.viewport.rotation%180===0?[h,u]:[u,h];return{offsetX:f,offsetY:C}},Sn=new WeakSet,xc=function(){for(const e of d(this,w3).values())e.isEmpty()&&e.remove()},i1(Zr,"_initialized",!1),w(Zr,g6,new Map([S3,Dr,zu,mt,Rr].map(e=>[e._editorType,e])));const Je=class{constructor({pageIndex:e}){w(this,W7);w(this,Wl);w(this,G7);w(this,R3,null);w(this,vt,new Map);w(this,lr,new Map);this.pageIndex=e}setParent(e){if(!d(this,R3)){v(this,R3,e);return}if(d(this,R3)!==e){if(d(this,vt).size>0)for(const t of d(this,vt).values())t.remove(),e.append(t);v(this,R3,e)}}static get _svgFactory(){return A1(this,"_svgFactory",new La)}draw(e,t=!1,s=!1){const r=xt(Je,U7)._++,n=M(this,W7,Hf).call(this),o=Je._svgFactory.createElement("defs");n.append(o);const l=Je._svgFactory.createElement("path");o.append(l);const c=`path_p${this.pageIndex}_${r}`;l.setAttribute("id",c),l.setAttribute("vector-effect","non-scaling-stroke"),t&&d(this,lr).set(r,l);const h=s?M(this,Wl,TT).call(this,o,c):null,u=Je._svgFactory.createElement("use");return n.append(u),u.setAttribute("href",`#${c}`),this.updateProperties(n,e),d(this,vt).set(r,n),{id:r,clipPathId:`url(#${h})`}}drawOutline(e,t){const s=xt(Je,U7)._++,r=M(this,W7,Hf).call(this),n=Je._svgFactory.createElement("defs");r.append(n);const o=Je._svgFactory.createElement("path");n.append(o);const l=`path_p${this.pageIndex}_${s}`;o.setAttribute("id",l),o.setAttribute("vector-effect","non-scaling-stroke");let c;if(t){const f=Je._svgFactory.createElement("mask");n.append(f),c=`mask_p${this.pageIndex}_${s}`,f.setAttribute("id",c),f.setAttribute("maskUnits","objectBoundingBox");const C=Je._svgFactory.createElement("rect");f.append(C),C.setAttribute("width","1"),C.setAttribute("height","1"),C.setAttribute("fill","white");const p=Je._svgFactory.createElement("use");f.append(p),p.setAttribute("href",`#${l}`),p.setAttribute("stroke","none"),p.setAttribute("fill","black"),p.setAttribute("fill-rule","nonzero"),p.classList.add("mask")}const h=Je._svgFactory.createElement("use");r.append(h),h.setAttribute("href",`#${l}`),c&&h.setAttribute("mask",`url(#${c})`);const u=h.cloneNode();return r.append(u),h.classList.add("mainOutline"),u.classList.add("secondaryOutline"),this.updateProperties(r,e),d(this,vt).set(s,r),s}finalizeDraw(e,t){d(this,lr).delete(e),this.updateProperties(e,t)}updateProperties(e,t){var c;if(!t)return;const{root:s,bbox:r,rootClass:n,path:o}=t,l=typeof e=="number"?d(this,vt).get(e):e;if(!!l){if(s&&M(this,G7,Vf).call(this,l,s),r&&M(c=Je,Ul,PT).call(c,l,r),n){const{classList:h}=l;for(const[u,f]of Object.entries(n))h.toggle(u,f)}if(o){const u=l.firstChild.firstChild;M(this,G7,Vf).call(this,u,o)}}}updateParent(e,t){if(t===this)return;const s=d(this,vt).get(e);!s||(d(t,R3).append(s),d(this,vt).delete(e),d(t,vt).set(e,s))}remove(e){d(this,lr).delete(e),d(this,R3)!==null&&(d(this,vt).get(e).remove(),d(this,vt).delete(e))}destroy(){v(this,R3,null);for(const e of d(this,vt).values())e.remove();d(this,vt).clear(),d(this,lr).clear()}};let Nr=Je;R3=new WeakMap,vt=new WeakMap,lr=new WeakMap,U7=new WeakMap,Ul=new WeakSet,PT=function(e,[t,s,r,n]){const{style:o}=e;o.top=`${100*s}%`,o.left=`${100*t}%`,o.width=`${100*r}%`,o.height=`${100*n}%`},W7=new WeakSet,Hf=function(){const e=Je._svgFactory.create(1,1,!0);return d(this,R3).append(e),e.setAttribute("aria-hidden",!0),e},Wl=new WeakSet,TT=function(e,t){const s=Je._svgFactory.createElement("clipPath");e.append(s);const r=`clip_${t}`;s.setAttribute("id",r),s.setAttribute("clipPathUnits","objectBoundingBox");const n=Je._svgFactory.createElement("use");return s.append(n),n.setAttribute("href",`#${t}`),n.classList.add("clip"),r},G7=new WeakSet,Vf=function(e,t){for(const[s,r]of Object.entries(t))r===null?e.removeAttribute(s):e.setAttribute(s,r)},w(Nr,Ul),w(Nr,U7,0),globalThis._pdfjsTestingUtils={HighlightOutliner:yu},globalThis.pdfjsLib={AbortException:Vi,AnnotationEditorLayer:Zr,AnnotationEditorParamsType:T1,AnnotationEditorType:S1,AnnotationEditorUIManager:q3,AnnotationLayer:Q0,AnnotationMode:Hi,AnnotationType:Ce,build:EA,ColorPicker:Br,createValidAbsoluteUrl:qh,DOMSVGFactory:La,DrawLayer:Nr,FeatureTest:Te,fetchData:Tr,getDocument:bu,getFilenameFromUrl:YE,getPdfFilenameFromUrl:KE,getUuid:iu,getXfaPageViewport:qE,GlobalWorkerOptions:J3,ImageKind:ha,InvalidPDFException:B0,isDataScheme:ma,isPdfFile:R0,isValidExplicitDest:iA,MathClamp:ot,noContextMenu:d3,normalizeUnicode:WE,OPS:fa,OutputScale:k3,PasswordResponses:NE,PDFDataRangeTransport:mu,PDFDateString:Z0,PDFWorker:ei,PermissionFlag:ZE,PixelsPerInch:c3,RenderingCancelledException:D0,ResponseException:Ca,setLayerDimensions:E2,shadow:A1,SignatureExtractor:ze,stopEvent:pe,SupportedImageMimeTypes:N0,TextLayer:nt,TouchManager:ya,updateUrlHash:Qh,Util:u1,VerbosityLevel:ua,version:IA,XfaLayer:gu};var o61=Object.freeze({__proto__:null,AbortException:Vi,AnnotationEditorLayer:Zr,AnnotationEditorParamsType:T1,AnnotationEditorType:S1,AnnotationEditorUIManager:q3,AnnotationLayer:Q0,AnnotationMode:Hi,AnnotationType:Ce,ColorPicker:Br,DOMSVGFactory:La,DrawLayer:Nr,FeatureTest:Te,GlobalWorkerOptions:J3,ImageKind:ha,InvalidPDFException:B0,MathClamp:ot,OPS:fa,OutputScale:k3,PDFDataRangeTransport:mu,PDFDateString:Z0,PDFWorker:ei,PasswordResponses:NE,PermissionFlag:ZE,PixelsPerInch:c3,RenderingCancelledException:D0,ResponseException:Ca,SignatureExtractor:ze,SupportedImageMimeTypes:N0,TextLayer:nt,TouchManager:ya,Util:u1,VerbosityLevel:ua,XfaLayer:gu,build:EA,createValidAbsoluteUrl:qh,fetchData:Tr,getDocument:bu,getFilenameFromUrl:YE,getPdfFilenameFromUrl:KE,getUuid:iu,getXfaPageViewport:qE,isDataScheme:ma,isPdfFile:R0,isValidExplicitDest:iA,noContextMenu:d3,normalizeUnicode:WE,setLayerDimensions:E2,shadow:A1,stopEvent:pe,updateUrlHash:Qh,version:IA});const n61=":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)}}";window.pdf=o61;const NA=class{constructor(i){k(this,i),this.activate=K(this,"activate",7),this.visiblePagesChange=K(this,"visiblePagesChange",7),this.errorMessage="File could not be loaded.",this.viewMode="single",this.workerSrc="/pdfjs/pdf.worker.min.mjs",this.zoom=1,this.currentPage=null,this.loading=!0,this.renderedPages=[],this.singlePageModePage=1,this.visiblePages=[],this.pages=[],this.renderingPageNumbers=[],this.recentScrollPosition={x:0,y:0},this.storeRecentScrollPosition=()=>{var e,t,s,r;this.recentScrollPosition={x:Math.round(((e=this.scrollContainer)==null?void 0:e.scrollLeft)/((t=this.scrollContainer)==null?void 0:t.scrollWidth)*100)/100,y:Math.round(((s=this.scrollContainer)==null?void 0:s.scrollTop)/((r=this.scrollContainer)==null?void 0:r.scrollHeight)*100)/100}},this.onScroll=F3(()=>{this.updateVisiblePages(),this.storeRecentScrollPosition()},60)}componentWillLoad(){window.pdf.GlobalWorkerOptions.workerSrc=this.workerSrc}async componentDidLoad(){await this.getPages(),await this.updateVisiblePages(),this.activate.emit(this.el)}componentDidRender(){this.updateVisiblePages()}disconnectedCallback(){var i;(i=this.doc)==null||i.destroy()}async onWindowResize(){this.visiblePages=[],this.renderedPages=[],await this.updateVisiblePages()}async watchProps(){await this.getPages(),await this.updateVisiblePages()}async watchViewMode(){queueMicrotask(async()=>{this.visiblePages=[],this.renderedPages=[],await this.updateVisiblePages()})}watchZoom(){queueMicrotask(async()=>{this.restoreScrollPosition(),this.visiblePages=[],this.renderedPages=[],await this.updateVisiblePages()})}async getThumbnails(){return await Promise.all(this.pages.filter(Boolean).map(i=>{const e=i.getViewport({scale:1}),t=document.createElement("canvas");t.width=e.width,t.height=e.height;const s=Math.min(t.width/e.width,t.height/e.height);return i.render({canvasContext:t.getContext("2d"),viewport:i.getViewport({scale:s})}).promise.then(function(){return t})}))}async print(){this.loading=!0,await this.updateVisiblePages(!0),await this.openPrintDialog(),this.loading=!1}async nextPage(){await this.setPage(this.singlePageModePage+1),await this.updateVisiblePages()}async previousPage(){await this.setPage(this.singlePageModePage-1),await this.updateVisiblePages()}async setPage(i){this.singlePageModePage=Math.min(Math.max(i,1),this.pages.length-1),await this.updateVisiblePages()}async getPages(){this.error=!1,this.loading=!0;try{Boolean(this.doc)&&this.doc.destroy(),this.doc=await bu({isEvalSupported:!1,url:this.file}).promise;const i=[];for(let e=1;e<=this.doc.numPages;e++)i.push(this.doc.getPage(e));this.pages=await Promise.all(i),this.loading=!1}catch{this.error=!0,this.loading=!1}}async renderVisiblePages(i){const e=Array.from(this.el.shadowRoot.querySelectorAll("canvas")),t=[];for(const s of e){const r=s.closest(".file-viewer-pdf__page"),n=this.pages.find(o=>(o==null?void 0:o.pageNumber)===+(r==null?void 0:r.dataset.pageNumber));if(!(!Boolean(n)||this.renderingPageNumbers.includes(n.pageNumber))){if(!this.visiblePages.includes(n.pageNumber)&&!i){this.destroyPage(n);continue}if(this.renderedPages.includes(n.pageNumber)&&!i){t.push(n.pageNumber);continue}await this.renderPage(n,s,i),t.push(n.pageNumber)}}this.renderedPages=t}async renderPage(i,e,t){const s=e.closest(".file-viewer-pdf__page"),r=s==null?void 0:s.querySelector(".file-viewer-pdf__text-container");this.renderingPageNumbers=[...this.renderingPageNumbers,i.pageNumber];const n=t?this.getPrintScale(i):this.getScale(i),o=window.devicePixelRatio||1,l=o!==1?[o,0,0,o,0,0]:null,c=i.getViewport({scale:n}),h=e.getContext("2d");e.height=Math.floor(c.height*o),e.width=Math.floor(c.width*o);const u={canvasContext:h,transform:l,viewport:c};try{await i.render(u).promise,i.cleanup(),r.innerHTML="",this.renderTextLayer(i,r).catch(),this.renderingPageNumbers=this.renderingPageNumbers.filter(f=>f!==i.pageNumber)}catch{}}destroyPage(i){const e=this.el.shadowRoot.querySelector(`[data-page-number="${i.pageNumber}"]`),t=e.querySelector("canvas"),s=e.querySelector(".file-viewer-pdf__text-container");t.width=1,t.height=1,t.getContext("2d").clearRect(0,0,t.width,t.height),s.innerHTML=""}async updateVisiblePages(i){const e=Array.from(this.el.shadowRoot.querySelectorAll(".file-viewer-pdf__page"));let t=[],s=null;if(this.singlePageMode)t=[this.singlePageModePage],s=this.singlePageModePage;else if(i)t=e.map(n=>+n.dataset.pageNumber);else{const n=e.map(o=>({pageNumber:+o.dataset.pageNumber,visibleHeight:GN(o,this.scrollContainer)})).filter(({visibleHeight:o})=>o>0);t=n.map(o=>o.pageNumber),n.length>0&&(s=n.reduce((l,c)=>c.visibleHeight>l.visibleHeight?c:l,n[0]).pageNumber)}this.visiblePages.length===t.length&&this.visiblePages.every(n=>t.includes(n))&&this.currentPage===s||(this.visiblePages=t,this.currentPage=s,await this.renderVisiblePages(i),this.visiblePagesChange.emit(this.visiblePages))}async renderTextLayer(i,e){return new nt({container:e,textContentSource:await i.getTextContent(),viewport:i.getViewport({scale:this.getScale(i)})}).render()}async openPrintDialog(){const i=Array.from(this.scrollContainer.querySelectorAll("canvas"));let e=`
550
550
  *, *:before, *:after {
551
551
  margin: 0;
552
552
  padding: 0;
@@ -584,4 +584,4 @@ License: MIT
584
584
  `;for(const n of i)t+=`<img src="${n.toDataURL()}">`;t+=`
585
585
  </body>
586
586
  </html>
587
- `;const s=document.createElement("iframe");this.el.append(s);const r=s.contentWindow;r.document.write(t),r.focus(),await new Promise(n=>setTimeout(n,100)),r.print(),s.remove()}getScale(i){var t;const e=ve()?0:32;return this.zoom==="auto"?(((t=this.scrollContainer)==null?void 0:t.clientWidth)-e)/i.view[2]:isNaN(this.zoom)?1:this.zoom}restoreScrollPosition(){var i,e;this.scrollContainer.scrollTop=this.recentScrollPosition.y*((i=this.scrollContainer)==null?void 0:i.scrollHeight),this.scrollContainer.scrollLeft=this.recentScrollPosition.x*((e=this.scrollContainer)==null?void 0:e.scrollWidth)}render(){const i=!this.error&&!this.loading&&this.visiblePages.length>0,e=this.loading,t=L("file-viewer-pdf",`file-viewer-pdf--view-mode-${this.viewMode}`);return a(q,{key:"f74696a9d32ee25e30bacc10c6f19a45dd0d0e52",class:t,exportparts:"file-viewer-pdf__pagination"},this.error&&a("swirl-inline-error",{key:"9210692d6eab65b59c486875fbaafa6a91b20b9d",class:"file-viewer-pdf__error",message:this.errorMessage}),a("div",{key:"7c6ab3b041cfd288b9e9788cd1dca6ab8c9795b7","aria-describedby":"pagination",class:"file-viewer-pdf__pages",onScroll:this.onScroll,ref:s=>this.scrollContainer=s},this.pages.map(s=>{const r=s.getViewport({scale:this.getScale(s)}),n=r.height,o=r.width,l=this.renderedPages.includes(s.pageNumber);return a("div",{"aria-label":s.pageNumber,class:"file-viewer-pdf__page","data-page-number":s.pageNumber,hidden:!this.singlePageMode||s.pageNumber===this.singlePageModePage?void 0:!0,id:`page-${s.pageNumber}`,key:s.pageNumber,role:"region",style:{width:`${o}px`,height:`${n}px`},tabIndex:0},!l&&a("swirl-spinner",{class:"file-viewer-pdf__page-spinner"}),a("canvas",{class:"file-viewer-pdf__canvas",style:{opacity:l?"1":"0"}}),a("div",{class:"file-viewer-pdf__text-container"}))})),i&&a("span",{key:"bc814973f2d41da1d3faa7bf65f89a378addab3d",class:"file-viewer-pdf__pagination",id:"pagination",part:"file-viewer-pdf__pagination"},a("span",{key:"5e4de9560e0382ee84f6d5211c1a8abc42ea52cc","aria-current":"page"},this.currentPage)," /"," ",this.doc.numPages),e&&a("div",{key:"8e803df15a0c593b37f325bf2a4e0f766d8efc23",class:"file-viewer-pdf__spinner"},a("swirl-spinner",{key:"a1564d0c986300243e96700b6c2682e6dbb2f871"})))}get el(){return h1(this)}static get watchers(){return{file:["watchProps"],viewMode:["watchViewMode"],zoom:["watchZoom"]}}};NA.style=n61;const a61=":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)}",jA=class{constructor(i){k(this,i),this.activate=K(this,"activate",7),this.errorMessage="File could not be loaded."}componentWillLoad(){this.updateText()}componentDidLoad(){this.activate.emit(this.el)}async updateText(){this.error=!1,this.loading=!0;try{const i=await fetch(this.file);this.text=await i.text(),this.loading=!1}catch{this.loading=!1,this.error=!0}}render(){return a(q,{key:"a920519605cbef27ccf3eaf5cf3cd2c320be7533",class:"file-viewer-text",exportparts:"file-viewer-text__text"},this.error&&a("swirl-inline-error",{key:"41252b50c3e813a471ed4e665c24b67e05b0c03a",class:"file-viewer-text__error",message:this.errorMessage}),a("pre",{key:"c57812f5e73f9884bb494d32772ac5b4d667372b",class:"file-viewer-text__text",part:"file-viewer-text__text",tabIndex:0},this.text),this.loading&&a("div",{key:"7bea03334037a185e1458108c593e4906f93ad2c",class:"file-viewer-text__spinner"},a("swirl-spinner",{key:"f84193306b938afaff28e6286738859bd580d41f"})))}get el(){return h1(this)}static get watchers(){return{file:["updateText"]}}};jA.style=a61;const l61=":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)}",FA=class{constructor(i){k(this,i),this.activate=K(this,"activate",7)}componentDidLoad(){this.activate.emit(this.el),this.disableDownload&&this.videoEl.setAttribute("controlsList","nodownload")}watchDisableDownload(){this.disableDownload?this.videoEl.setAttribute("controlsList","nodownload"):this.videoEl.removeAttribute("controlsList")}render(){return a(q,{key:"896452dacd5bd0ccb6dd44058d169966184387ee",class:"file-viewer-video"},a("video",{key:"35c76799987f55974dae8ee82af1bd25f69389e2",autoplay:this.autoplay,class:"file-viewer-video__video",src:this.file,controls:!0,ref:i=>this.videoEl=i}))}get el(){return h1(this)}static get watchers(){return{disableDownload:["watchDisableDownload"]}}};FA.style=l61;const UA=Object.freeze(Object.defineProperty({__proto__:null,swirl_file_viewer:HE,swirl_file_viewer_audio:VE,swirl_file_viewer_csv:OE,swirl_file_viewer_fallback:BE,swirl_file_viewer_image:DE,swirl_file_viewer_pdf:NA,swirl_file_viewer_text:jA,swirl_file_viewer_video:FA},Symbol.toStringTag,{value:"Module"}));x.FileManager=sV,x.SwirlAccordion=rV,x.SwirlAccordionItem=oV,x.SwirlActionList=nV,x.SwirlActionListItem=aV,x.SwirlActionListSection=lV,x.SwirlAppBar=cV,x.SwirlAppIcon=dV,x.SwirlAppLayout=hV,x.SwirlAutocomplete=uV,x.SwirlAvatar=fV,x.SwirlAvatarGroup=CV,x.SwirlBadge=pV,x.SwirlBanner=bV,x.SwirlBox=mV,x.SwirlButton=gV,x.SwirlButtonGroup=wV,x.SwirlCard=vV,x.SwirlCarousel=yV,x.SwirlCarouselSlide=_V,x.SwirlCheckbox=xV,x.SwirlChip=kV,x.SwirlColorInput=SV,x.SwirlColumns=zV,x.SwirlConsoleLayout=MV,x.SwirlDateInput=LV,x.SwirlDatePicker=IV,x.SwirlDescriptionList=EV,x.SwirlDescriptionListItem=AV,x.SwirlDialog=PV,x.SwirlEmoji=TV,x.SwirlEmojiClap=HV,x.SwirlEmojiHappy=VV,x.SwirlEmojiIdea=$V,x.SwirlEmojiLove=OV,x.SwirlEmojiSad=BV,x.SwirlEmojiThumbsUp=DV,x.SwirlEmptyState=RV,x.SwirlFileChip=ZV,x.SwirlFileUploader=NV,x.SwirlFileViewer=jV,x.SwirlFileViewerAudio=FV,x.SwirlFileViewerCsv=UV,x.SwirlFileViewerFallback=WV,x.SwirlFileViewerImage=GV,x.SwirlFileViewerPdf=YV,x.SwirlFileViewerText=KV,x.SwirlFileViewerVideo=XV,x.SwirlFormControl=qV,x.SwirlFormGroup=QV,x.SwirlHeading=JV,x.SwirlIcon=e$,x.SwirlIconAdd=t$,x.SwirlIconAddModerator=i$,x.SwirlIconAddPhoto=s$,x.SwirlIconAddReaction=r$,x.SwirlIconAdminPanelSettings=o$,x.SwirlIconAi=n$,x.SwirlIconAiFilled=a$,x.SwirlIconApps=l$,x.SwirlIconArrowBack=c$,x.SwirlIconArrowDownward=d$,x.SwirlIconArrowForward=h$,x.SwirlIconArrowLeft=u$,x.SwirlIconArrowRight=f$,x.SwirlIconArrowRightSmall=C$,x.SwirlIconArrowUpward=p$,x.SwirlIconAspectRatio=b$,x.SwirlIconAttachment=m$,x.SwirlIconAudioFile=g$,x.SwirlIconBarChart=w$,x.SwirlIconBeachAccess=v$,x.SwirlIconBeachAccessFilled=y$,x.SwirlIconBlock=_$,x.SwirlIconBookmark=x$,x.SwirlIconBookmarkFilled=k$,x.SwirlIconCalendarAddOnFilled=S$,x.SwirlIconCalendarRespond=z$,x.SwirlIconCalendarToday=M$,x.SwirlIconCall=L$,x.SwirlIconCallEnd=I$,x.SwirlIconCancel=E$,x.SwirlIconCancelFilled=A$,x.SwirlIconChatBubble=P$,x.SwirlIconChats=T$,x.SwirlIconChatsFilled=H$,x.SwirlIconCheck=V$,x.SwirlIconCheckCircle=$$,x.SwirlIconCheckCircleFilled=O$,x.SwirlIconCheckSmall=B$,x.SwirlIconCheckStrong=D$,x.SwirlIconChevronLeft=R$,x.SwirlIconChevronRight=Z$,x.SwirlIconClose=N$,x.SwirlIconCloseFullscreen=j$,x.SwirlIconCloseSmall=F$,x.SwirlIconCloudUpload=U$,x.SwirlIconColumn=W$,x.SwirlIconComment=G$,x.SwirlIconContrast=Y$,x.SwirlIconCopy=K$,x.SwirlIconCrop=X$,x.SwirlIconDarkMode=q$,x.SwirlIconDateRange=Q$,x.SwirlIconDelete=J$,x.SwirlIconDeployedCode=eO,x.SwirlIconDescription=tO,x.SwirlIconDesktop=iO,x.SwirlIconDirectory=sO,x.SwirlIconDirectoryFilled=rO,x.SwirlIconDiscover=oO,x.SwirlIconDockLeft=nO,x.SwirlIconDockLeftCollapse=aO,x.SwirlIconDockLeftExpand=lO,x.SwirlIconDoorOpen=cO,x.SwirlIconDot=dO,x.SwirlIconDoubleArrowLeft=hO,x.SwirlIconDoubleArrowRight=uO,x.SwirlIconDownload=fO,x.SwirlIconDragHandle=CO,x.SwirlIconEdit=pO,x.SwirlIconEditNote=bO,x.SwirlIconEmojiMood=mO,x.SwirlIconEmojiSatisfied=gO,x.SwirlIconError=wO,x.SwirlIconExpandLess=vO,x.SwirlIconExpandMore=yO,x.SwirlIconExperiment=_O,x.SwirlIconFile=xO,x.SwirlIconFileCopy=kO,x.SwirlIconFilter=SO,x.SwirlIconFolder=zO,x.SwirlIconFolderShared=MO,x.SwirlIconFormatHOne=LO,x.SwirlIconFormatListBulleted=IO,x.SwirlIconFullscreen=EO,x.SwirlIconFullscreenExit=AO,x.SwirlIconGif=PO,x.SwirlIconGroupAdd=TO,x.SwirlIconGroupAssign=HO,x.SwirlIconGroups=VO,x.SwirlIconGroupsFilled=$O,x.SwirlIconHamburgerMenu=OO,x.SwirlIconHealthAndSafety=BO,x.SwirlIconHelp=DO,x.SwirlIconHelpFilled=RO,x.SwirlIconHighlight=ZO,x.SwirlIconHistory=NO,x.SwirlIconHome=jO,x.SwirlIconHrResting=FO,x.SwirlIconImage=UO,x.SwirlIconImproveText=WO,x.SwirlIconInfo=GO,x.SwirlIconInsertBelow=YO,x.SwirlIconInsertChart=KO,x.SwirlIconInsertOnTop=XO,x.SwirlIconInventory=qO,x.SwirlIconInventoryOff=QO,x.SwirlIconKey=JO,x.SwirlIconKeyboard=eB,x.SwirlIconKeyboardHide=tB,x.SwirlIconLightMode=iB,x.SwirlIconLike=sB,x.SwirlIconLink=rB,x.SwirlIconLive=oB,x.SwirlIconLoad=nB,x.SwirlIconLocationOn=aB,x.SwirlIconLock=lB,x.SwirlIconLockOpen=cB,x.SwirlIconLockPerson=dB,x.SwirlIconLogin=hB,x.SwirlIconLogout=uB,x.SwirlIconLongText=fB,x.SwirlIconMail=CB,x.SwirlIconManageAccounts=pB,x.SwirlIconMarkChatRead=bB,x.SwirlIconMarkChatUnread=mB,x.SwirlIconMention=gB,x.SwirlIconMenu=wB,x.SwirlIconMenuBook=vB,x.SwirlIconMenuBookFilled=yB,x.SwirlIconMenuFilled=_B,x.SwirlIconMessage=xB,x.SwirlIconMic=kB,x.SwirlIconMicOff=SB,x.SwirlIconMoreHorizontal=zB,x.SwirlIconMoreVertikal=MB,x.SwirlIconNews=LB,x.SwirlIconNewsFilled=IB,x.SwirlIconNewsOff=EB,x.SwirlIconNextPlan=AB,x.SwirlIconNotifications=PB,x.SwirlIconNotificationsActive=TB,x.SwirlIconNotificationsOff=HB,x.SwirlIconOpenInFull=VB,x.SwirlIconOpenInNew=$B,x.SwirlIconPause=OB,x.SwirlIconPauseCircle=BB,x.SwirlIconPeopleAlt=DB,x.SwirlIconPerson=RB,x.SwirlIconPersonOff=ZB,x.SwirlIconPhone=NB,x.SwirlIconPhotoCamera=jB,x.SwirlIconPictureAsPdf=FB,x.SwirlIconPictureInPicture=UB,x.SwirlIconPin=WB,x.SwirlIconPinOff=GB,x.SwirlIconPlace=YB,x.SwirlIconPlayArrow=KB,x.SwirlIconPoll=XB,x.SwirlIconPostApproval=qB,x.SwirlIconPresent=QB,x.SwirlIconPreview=JB,x.SwirlIconPrint=eD,x.SwirlIconPublic=tD,x.SwirlIconPublicOff=iD,x.SwirlIconPublishedWithChanges=sD,x.SwirlIconRatioFourToThree=rD,x.SwirlIconRatioFreeform=oD,x.SwirlIconRatioSixteenToNine=nD,x.SwirlIconRatioSquare=aD,x.SwirlIconRatioThreeToFour=lD,x.SwirlIconRatioThreeToTwo=cD,x.SwirlIconRecieved=dD,x.SwirlIconRemove=hD,x.SwirlIconRemoveCircle=uD,x.SwirlIconRemoveModerator=fD,x.SwirlIconReply=CD,x.SwirlIconReport=pD,x.SwirlIconRoadmap=bD,x.SwirlIconRotateLeft=mD,x.SwirlIconRotateRight=gD,x.SwirlIconScreenshare=wD,x.SwirlIconScreenshareOff=vD,x.SwirlIconSearch=yD,x.SwirlIconSearchStrong=_D,x.SwirlIconSecure=xD,x.SwirlIconSend=kD,x.SwirlIconSettings=SD,x.SwirlIconShortText=zD,x.SwirlIconSimplify=MD,x.SwirlIconSpellcheck=LD,x.SwirlIconStars=ID,x.SwirlIconStickyNote=ED,x.SwirlIconStop=AD,x.SwirlIconStopCircle=PD,x.SwirlIconSunny=TD,x.SwirlIconSync=HD,x.SwirlIconTasks=VD,x.SwirlIconTasksFilled=$D,x.SwirlIconTerminal=OD,x.SwirlIconTime=BD,x.SwirlIconTimeFilled=DD,x.SwirlIconToday=RD,x.SwirlIconTodayFilled=ZD,x.SwirlIconTranslate=ND,x.SwirlIconTreeStructure=jD,x.SwirlIconUndo=FD,x.SwirlIconUnlockPerson=UD,x.SwirlIconUpload=WD,x.SwirlIconUserAdd=GD,x.SwirlIconUserAssign=YD,x.SwirlIconVideoCamera=KD,x.SwirlIconVideoCameraOff=XD,x.SwirlIconVideoLibrary=qD,x.SwirlIconVideoPlayer=QD,x.SwirlIconViewAgenda=JD,x.SwirlIconVisibility=eR,x.SwirlIconVisibilityOff=tR,x.SwirlIconVoice=iR,x.SwirlIconVolumeUp=sR,x.SwirlIconWarning=rR,x.SwirlIconWebAsset=oR,x.SwirlIconWebAssetOff=nR,x.SwirlIconWork=aR,x.SwirlImageGrid=lR,x.SwirlImageGridItem=cR,x.SwirlInlineError=dR,x.SwirlInlineNotification=hR,x.SwirlInlineStatus=uR,x.SwirlLightbox=fR,x.SwirlLink=CR,x.SwirlList=pR,x.SwirlMenu=bR,x.SwirlMenuItem=mR,x.SwirlModal=gR,x.SwirlOptionList=wR,x.SwirlOptionListItem=vR,x.SwirlOptionListSection=yR,x.SwirlPagination=_R,x.SwirlPdfReader=xR,x.SwirlPopover=kR,x.SwirlPopoverTrigger=SR,x.SwirlProgressIndicator=zR,x.SwirlRadio=MR,x.SwirlRadioGroup=LR,x.SwirlResourceList=IR,x.SwirlResourceListFileItem=ER,x.SwirlResourceListItem=AR,x.SwirlResourceListSection=PR,x.SwirlSearch=TR,x.SwirlSelect=HR,x.SwirlSeparator=VR,x.SwirlShellLayout=$R,x.SwirlShellNavigationItem=OR,x.SwirlSkeletonBox=BR,x.SwirlSkeletonText=DR,x.SwirlSpinner=RR,x.SwirlStack=ZR,x.SwirlStatusIndicator=NR,x.SwirlSwitch=jR,x.SwirlSymbol=FR,x.SwirlSymbolAccountCircle=UR,x.SwirlSymbolAlternateEmail=WR,x.SwirlSymbolAndroid=GR,x.SwirlSymbolAnnouncement=YR,x.SwirlSymbolBackup=KR,x.SwirlSymbolBeachAccess=XR,x.SwirlSymbolBookmark=qR,x.SwirlSymbolCloud=QR,x.SwirlSymbolCoronavirus=JR,x.SwirlSymbolDesktopWindows=eZ,x.SwirlSymbolDirectionsCarFilled=tZ,x.SwirlSymbolEditCalendar=iZ,x.SwirlSymbolEmail=sZ,x.SwirlSymbolEmojiFoodBeverage=rZ,x.SwirlSymbolEventMenu=oZ,x.SwirlSymbolFacebook=nZ,x.SwirlSymbolFavorite=aZ,x.SwirlSymbolFitnessCenter=lZ,x.SwirlSymbolFlag=cZ,x.SwirlSymbolFolder=dZ,x.SwirlSymbolGlobe=hZ,x.SwirlSymbolGroups=uZ,x.SwirlSymbolHelp=fZ,x.SwirlSymbolImage=CZ,x.SwirlSymbolInfoMenu=pZ,x.SwirlSymbolInstagram=bZ,x.SwirlSymbolIos=mZ,x.SwirlSymbolLanguage=gZ,x.SwirlSymbolLeaderboard=wZ,x.SwirlSymbolLightbulb=vZ,x.SwirlSymbolLinkedin=yZ,x.SwirlSymbolLocationOn=_Z,x.SwirlSymbolLoyalty=xZ,x.SwirlSymbolMapsHomeWork=kZ,x.SwirlSymbolNotifications=SZ,x.SwirlSymbolOpenInNew=zZ,x.SwirlSymbolPedalBike=MZ,x.SwirlSymbolPinterest=LZ,x.SwirlSymbolPolicy=IZ,x.SwirlSymbolPushPin=EZ,x.SwirlSymbolRedeem=AZ,x.SwirlSymbolReportProblem=PZ,x.SwirlSymbolRestaurant=TZ,x.SwirlSymbolRoadmap=HZ,x.SwirlSymbolRoom=VZ,x.SwirlSymbolSavings=$Z,x.SwirlSymbolSettingsVoice=OZ,x.SwirlSymbolShoppingCart=BZ,x.SwirlSymbolSmartphone=DZ,x.SwirlSymbolStar=RZ,x.SwirlSymbolSupervisorAccount=ZZ,x.SwirlSymbolThumbsUpDown=NZ,x.SwirlSymbolTwitter=jZ,x.SwirlSymbolWbSunny=FZ,x.SwirlSymbolWechat=UZ,x.SwirlSymbolWeibo=WZ,x.SwirlSymbolWork=GZ,x.SwirlSymbolXing=YZ,x.SwirlSymbolYoutube=KZ,x.SwirlTab=XZ,x.SwirlTabBar=qZ,x.SwirlTable=QZ,x.SwirlTableCell=JZ,x.SwirlTableColumn=eN,x.SwirlTableRow=tN,x.SwirlTableRowGroup=iN,x.SwirlTabs=sN,x.SwirlTag=rN,x.SwirlText=oN,x.SwirlTextInput=nN,x.SwirlThemeProvider=aN,x.SwirlThumbnail=lN,x.SwirlTimeInput=cN,x.SwirlToast=dN,x.SwirlToastProvider=hN,x.SwirlToggleButton=uN,x.SwirlToggleGroup=fN,x.SwirlToolbar=CN,x.SwirlTooltip=pN,x.SwirlTreeNavigation=bN,x.SwirlTreeNavigationItem=mN,x.SwirlTreeView=gN,x.SwirlTreeViewItem=wN,x.SwirlVideoThumbnail=vN,x.SwirlVisuallyHidden=yN,Object.defineProperties(x,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
587
+ `;const s=document.createElement("iframe");this.el.append(s);const r=s.contentWindow;r.document.write(t),r.focus(),await new Promise(n=>setTimeout(n,100)),r.print(),s.remove()}getScale(i){var t;const e=ve()?0:32;return this.zoom==="auto"?(((t=this.scrollContainer)==null?void 0:t.clientWidth)-e)/i.view[2]:isNaN(this.zoom)?1:this.zoom}getPrintScale(i){return Math.min(Math.min(2480/i.view[2],3508/i.view[3]),2)}restoreScrollPosition(){var i,e;this.scrollContainer.scrollTop=this.recentScrollPosition.y*((i=this.scrollContainer)==null?void 0:i.scrollHeight),this.scrollContainer.scrollLeft=this.recentScrollPosition.x*((e=this.scrollContainer)==null?void 0:e.scrollWidth)}render(){const i=!this.error&&!this.loading&&this.visiblePages.length>0,e=this.loading,t=L("file-viewer-pdf",`file-viewer-pdf--view-mode-${this.viewMode}`);return a(q,{key:"2ded55b2086732d53df416af38f42482be6cc13c",class:t,exportparts:"file-viewer-pdf__pagination"},this.error&&a("swirl-inline-error",{key:"24d19e9b92a95d83a72538a4a4c8130539e46bfc",class:"file-viewer-pdf__error",message:this.errorMessage}),a("div",{key:"36905878660cdd696960fc3c18894f86cba07252","aria-describedby":"pagination",class:"file-viewer-pdf__pages",onScroll:this.onScroll,ref:s=>this.scrollContainer=s},this.pages.map(s=>{const r=s.getViewport({scale:this.getScale(s)}),n=r.height,o=r.width,l=this.renderedPages.includes(s.pageNumber);return a("div",{"aria-label":s.pageNumber,class:"file-viewer-pdf__page","data-page-number":s.pageNumber,hidden:!this.singlePageMode||s.pageNumber===this.singlePageModePage?void 0:!0,id:`page-${s.pageNumber}`,key:s.pageNumber,role:"region",style:{width:`${o}px`,height:`${n}px`},tabIndex:0},!l&&a("swirl-spinner",{class:"file-viewer-pdf__page-spinner"}),a("canvas",{class:"file-viewer-pdf__canvas",style:{opacity:l?"1":"0"}}),a("div",{class:"file-viewer-pdf__text-container"}))})),i&&a("span",{key:"615531f5e13c34c842e68f492c8c0fcae9021815",class:"file-viewer-pdf__pagination",id:"pagination",part:"file-viewer-pdf__pagination"},a("span",{key:"945d4421b1ea9a50b01f05ea4a0ed6a95d470264","aria-current":"page"},this.currentPage)," /"," ",this.doc.numPages),e&&a("div",{key:"fe0ae9b54994d4f8533d733df09e2921ccf4fd83",class:"file-viewer-pdf__spinner"},a("swirl-spinner",{key:"b923c9b716042e0b8e71552eeac25238d8037c57"})))}get el(){return h1(this)}static get watchers(){return{file:["watchProps"],viewMode:["watchViewMode"],zoom:["watchZoom"]}}};NA.style=n61;const a61=":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)}",jA=class{constructor(i){k(this,i),this.activate=K(this,"activate",7),this.errorMessage="File could not be loaded."}componentWillLoad(){this.updateText()}componentDidLoad(){this.activate.emit(this.el)}async updateText(){this.error=!1,this.loading=!0;try{const i=await fetch(this.file);this.text=await i.text(),this.loading=!1}catch{this.loading=!1,this.error=!0}}render(){return a(q,{key:"a920519605cbef27ccf3eaf5cf3cd2c320be7533",class:"file-viewer-text",exportparts:"file-viewer-text__text"},this.error&&a("swirl-inline-error",{key:"41252b50c3e813a471ed4e665c24b67e05b0c03a",class:"file-viewer-text__error",message:this.errorMessage}),a("pre",{key:"c57812f5e73f9884bb494d32772ac5b4d667372b",class:"file-viewer-text__text",part:"file-viewer-text__text",tabIndex:0},this.text),this.loading&&a("div",{key:"7bea03334037a185e1458108c593e4906f93ad2c",class:"file-viewer-text__spinner"},a("swirl-spinner",{key:"f84193306b938afaff28e6286738859bd580d41f"})))}get el(){return h1(this)}static get watchers(){return{file:["updateText"]}}};jA.style=a61;const l61=":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)}",FA=class{constructor(i){k(this,i),this.activate=K(this,"activate",7)}componentDidLoad(){this.activate.emit(this.el),this.disableDownload&&this.videoEl.setAttribute("controlsList","nodownload")}watchDisableDownload(){this.disableDownload?this.videoEl.setAttribute("controlsList","nodownload"):this.videoEl.removeAttribute("controlsList")}render(){return a(q,{key:"896452dacd5bd0ccb6dd44058d169966184387ee",class:"file-viewer-video"},a("video",{key:"35c76799987f55974dae8ee82af1bd25f69389e2",autoplay:this.autoplay,class:"file-viewer-video__video",src:this.file,controls:!0,ref:i=>this.videoEl=i}))}get el(){return h1(this)}static get watchers(){return{disableDownload:["watchDisableDownload"]}}};FA.style=l61;const UA=Object.freeze(Object.defineProperty({__proto__:null,swirl_file_viewer:HE,swirl_file_viewer_audio:VE,swirl_file_viewer_csv:OE,swirl_file_viewer_fallback:BE,swirl_file_viewer_image:DE,swirl_file_viewer_pdf:NA,swirl_file_viewer_text:jA,swirl_file_viewer_video:FA},Symbol.toStringTag,{value:"Module"}));x.FileManager=sV,x.SwirlAccordion=rV,x.SwirlAccordionItem=oV,x.SwirlActionList=nV,x.SwirlActionListItem=aV,x.SwirlActionListSection=lV,x.SwirlAppBar=cV,x.SwirlAppIcon=dV,x.SwirlAppLayout=hV,x.SwirlAutocomplete=uV,x.SwirlAvatar=fV,x.SwirlAvatarGroup=CV,x.SwirlBadge=pV,x.SwirlBanner=bV,x.SwirlBox=mV,x.SwirlButton=gV,x.SwirlButtonGroup=wV,x.SwirlCard=vV,x.SwirlCarousel=yV,x.SwirlCarouselSlide=_V,x.SwirlCheckbox=xV,x.SwirlChip=kV,x.SwirlColorInput=SV,x.SwirlColumns=zV,x.SwirlConsoleLayout=MV,x.SwirlDateInput=LV,x.SwirlDatePicker=IV,x.SwirlDescriptionList=EV,x.SwirlDescriptionListItem=AV,x.SwirlDialog=PV,x.SwirlEmoji=TV,x.SwirlEmojiClap=HV,x.SwirlEmojiHappy=VV,x.SwirlEmojiIdea=$V,x.SwirlEmojiLove=OV,x.SwirlEmojiSad=BV,x.SwirlEmojiThumbsUp=DV,x.SwirlEmptyState=RV,x.SwirlFileChip=ZV,x.SwirlFileUploader=NV,x.SwirlFileViewer=jV,x.SwirlFileViewerAudio=FV,x.SwirlFileViewerCsv=UV,x.SwirlFileViewerFallback=WV,x.SwirlFileViewerImage=GV,x.SwirlFileViewerPdf=YV,x.SwirlFileViewerText=KV,x.SwirlFileViewerVideo=XV,x.SwirlFormControl=qV,x.SwirlFormGroup=QV,x.SwirlHeading=JV,x.SwirlIcon=e$,x.SwirlIconAdd=t$,x.SwirlIconAddModerator=i$,x.SwirlIconAddPhoto=s$,x.SwirlIconAddReaction=r$,x.SwirlIconAdminPanelSettings=o$,x.SwirlIconAi=n$,x.SwirlIconAiFilled=a$,x.SwirlIconApps=l$,x.SwirlIconArrowBack=c$,x.SwirlIconArrowDownward=d$,x.SwirlIconArrowForward=h$,x.SwirlIconArrowLeft=u$,x.SwirlIconArrowRight=f$,x.SwirlIconArrowRightSmall=C$,x.SwirlIconArrowUpward=p$,x.SwirlIconAspectRatio=b$,x.SwirlIconAttachment=m$,x.SwirlIconAudioFile=g$,x.SwirlIconBarChart=w$,x.SwirlIconBeachAccess=v$,x.SwirlIconBeachAccessFilled=y$,x.SwirlIconBlock=_$,x.SwirlIconBookmark=x$,x.SwirlIconBookmarkFilled=k$,x.SwirlIconCalendarAddOnFilled=S$,x.SwirlIconCalendarRespond=z$,x.SwirlIconCalendarToday=M$,x.SwirlIconCall=L$,x.SwirlIconCallEnd=I$,x.SwirlIconCancel=E$,x.SwirlIconCancelFilled=A$,x.SwirlIconChatBubble=P$,x.SwirlIconChats=T$,x.SwirlIconChatsFilled=H$,x.SwirlIconCheck=V$,x.SwirlIconCheckCircle=$$,x.SwirlIconCheckCircleFilled=O$,x.SwirlIconCheckSmall=B$,x.SwirlIconCheckStrong=D$,x.SwirlIconChevronLeft=R$,x.SwirlIconChevronRight=Z$,x.SwirlIconClose=N$,x.SwirlIconCloseFullscreen=j$,x.SwirlIconCloseSmall=F$,x.SwirlIconCloudUpload=U$,x.SwirlIconColumn=W$,x.SwirlIconComment=G$,x.SwirlIconContrast=Y$,x.SwirlIconCopy=K$,x.SwirlIconCrop=X$,x.SwirlIconDarkMode=q$,x.SwirlIconDateRange=Q$,x.SwirlIconDelete=J$,x.SwirlIconDeployedCode=eO,x.SwirlIconDescription=tO,x.SwirlIconDesktop=iO,x.SwirlIconDirectory=sO,x.SwirlIconDirectoryFilled=rO,x.SwirlIconDiscover=oO,x.SwirlIconDockLeft=nO,x.SwirlIconDockLeftCollapse=aO,x.SwirlIconDockLeftExpand=lO,x.SwirlIconDoorOpen=cO,x.SwirlIconDot=dO,x.SwirlIconDoubleArrowLeft=hO,x.SwirlIconDoubleArrowRight=uO,x.SwirlIconDownload=fO,x.SwirlIconDragHandle=CO,x.SwirlIconEdit=pO,x.SwirlIconEditNote=bO,x.SwirlIconEmojiMood=mO,x.SwirlIconEmojiSatisfied=gO,x.SwirlIconError=wO,x.SwirlIconExpandLess=vO,x.SwirlIconExpandMore=yO,x.SwirlIconExperiment=_O,x.SwirlIconFile=xO,x.SwirlIconFileCopy=kO,x.SwirlIconFilter=SO,x.SwirlIconFolder=zO,x.SwirlIconFolderShared=MO,x.SwirlIconFormatHOne=LO,x.SwirlIconFormatListBulleted=IO,x.SwirlIconFullscreen=EO,x.SwirlIconFullscreenExit=AO,x.SwirlIconGif=PO,x.SwirlIconGroupAdd=TO,x.SwirlIconGroupAssign=HO,x.SwirlIconGroups=VO,x.SwirlIconGroupsFilled=$O,x.SwirlIconHamburgerMenu=OO,x.SwirlIconHealthAndSafety=BO,x.SwirlIconHelp=DO,x.SwirlIconHelpFilled=RO,x.SwirlIconHighlight=ZO,x.SwirlIconHistory=NO,x.SwirlIconHome=jO,x.SwirlIconHrResting=FO,x.SwirlIconImage=UO,x.SwirlIconImproveText=WO,x.SwirlIconInfo=GO,x.SwirlIconInsertBelow=YO,x.SwirlIconInsertChart=KO,x.SwirlIconInsertOnTop=XO,x.SwirlIconInventory=qO,x.SwirlIconInventoryOff=QO,x.SwirlIconKey=JO,x.SwirlIconKeyboard=eB,x.SwirlIconKeyboardHide=tB,x.SwirlIconLightMode=iB,x.SwirlIconLike=sB,x.SwirlIconLink=rB,x.SwirlIconLive=oB,x.SwirlIconLoad=nB,x.SwirlIconLocationOn=aB,x.SwirlIconLock=lB,x.SwirlIconLockOpen=cB,x.SwirlIconLockPerson=dB,x.SwirlIconLogin=hB,x.SwirlIconLogout=uB,x.SwirlIconLongText=fB,x.SwirlIconMail=CB,x.SwirlIconManageAccounts=pB,x.SwirlIconMarkChatRead=bB,x.SwirlIconMarkChatUnread=mB,x.SwirlIconMention=gB,x.SwirlIconMenu=wB,x.SwirlIconMenuBook=vB,x.SwirlIconMenuBookFilled=yB,x.SwirlIconMenuFilled=_B,x.SwirlIconMessage=xB,x.SwirlIconMic=kB,x.SwirlIconMicOff=SB,x.SwirlIconMoreHorizontal=zB,x.SwirlIconMoreVertikal=MB,x.SwirlIconNews=LB,x.SwirlIconNewsFilled=IB,x.SwirlIconNewsOff=EB,x.SwirlIconNextPlan=AB,x.SwirlIconNotifications=PB,x.SwirlIconNotificationsActive=TB,x.SwirlIconNotificationsOff=HB,x.SwirlIconOpenInFull=VB,x.SwirlIconOpenInNew=$B,x.SwirlIconPause=OB,x.SwirlIconPauseCircle=BB,x.SwirlIconPeopleAlt=DB,x.SwirlIconPerson=RB,x.SwirlIconPersonOff=ZB,x.SwirlIconPhone=NB,x.SwirlIconPhotoCamera=jB,x.SwirlIconPictureAsPdf=FB,x.SwirlIconPictureInPicture=UB,x.SwirlIconPin=WB,x.SwirlIconPinOff=GB,x.SwirlIconPlace=YB,x.SwirlIconPlayArrow=KB,x.SwirlIconPoll=XB,x.SwirlIconPostApproval=qB,x.SwirlIconPresent=QB,x.SwirlIconPreview=JB,x.SwirlIconPrint=eD,x.SwirlIconPublic=tD,x.SwirlIconPublicOff=iD,x.SwirlIconPublishedWithChanges=sD,x.SwirlIconRatioFourToThree=rD,x.SwirlIconRatioFreeform=oD,x.SwirlIconRatioSixteenToNine=nD,x.SwirlIconRatioSquare=aD,x.SwirlIconRatioThreeToFour=lD,x.SwirlIconRatioThreeToTwo=cD,x.SwirlIconRecieved=dD,x.SwirlIconRemove=hD,x.SwirlIconRemoveCircle=uD,x.SwirlIconRemoveModerator=fD,x.SwirlIconReply=CD,x.SwirlIconReport=pD,x.SwirlIconRoadmap=bD,x.SwirlIconRotateLeft=mD,x.SwirlIconRotateRight=gD,x.SwirlIconScreenshare=wD,x.SwirlIconScreenshareOff=vD,x.SwirlIconSearch=yD,x.SwirlIconSearchStrong=_D,x.SwirlIconSecure=xD,x.SwirlIconSend=kD,x.SwirlIconSettings=SD,x.SwirlIconShortText=zD,x.SwirlIconSimplify=MD,x.SwirlIconSpellcheck=LD,x.SwirlIconStars=ID,x.SwirlIconStickyNote=ED,x.SwirlIconStop=AD,x.SwirlIconStopCircle=PD,x.SwirlIconSunny=TD,x.SwirlIconSync=HD,x.SwirlIconTasks=VD,x.SwirlIconTasksFilled=$D,x.SwirlIconTerminal=OD,x.SwirlIconTime=BD,x.SwirlIconTimeFilled=DD,x.SwirlIconToday=RD,x.SwirlIconTodayFilled=ZD,x.SwirlIconTranslate=ND,x.SwirlIconTreeStructure=jD,x.SwirlIconUndo=FD,x.SwirlIconUnlockPerson=UD,x.SwirlIconUpload=WD,x.SwirlIconUserAdd=GD,x.SwirlIconUserAssign=YD,x.SwirlIconVideoCamera=KD,x.SwirlIconVideoCameraOff=XD,x.SwirlIconVideoLibrary=qD,x.SwirlIconVideoPlayer=QD,x.SwirlIconViewAgenda=JD,x.SwirlIconVisibility=eR,x.SwirlIconVisibilityOff=tR,x.SwirlIconVoice=iR,x.SwirlIconVolumeUp=sR,x.SwirlIconWarning=rR,x.SwirlIconWebAsset=oR,x.SwirlIconWebAssetOff=nR,x.SwirlIconWork=aR,x.SwirlImageGrid=lR,x.SwirlImageGridItem=cR,x.SwirlInlineError=dR,x.SwirlInlineNotification=hR,x.SwirlInlineStatus=uR,x.SwirlLightbox=fR,x.SwirlLink=CR,x.SwirlList=pR,x.SwirlMenu=bR,x.SwirlMenuItem=mR,x.SwirlModal=gR,x.SwirlOptionList=wR,x.SwirlOptionListItem=vR,x.SwirlOptionListSection=yR,x.SwirlPagination=_R,x.SwirlPdfReader=xR,x.SwirlPopover=kR,x.SwirlPopoverTrigger=SR,x.SwirlProgressIndicator=zR,x.SwirlRadio=MR,x.SwirlRadioGroup=LR,x.SwirlResourceList=IR,x.SwirlResourceListFileItem=ER,x.SwirlResourceListItem=AR,x.SwirlResourceListSection=PR,x.SwirlSearch=TR,x.SwirlSelect=HR,x.SwirlSeparator=VR,x.SwirlShellLayout=$R,x.SwirlShellNavigationItem=OR,x.SwirlSkeletonBox=BR,x.SwirlSkeletonText=DR,x.SwirlSpinner=RR,x.SwirlStack=ZR,x.SwirlStatusIndicator=NR,x.SwirlSwitch=jR,x.SwirlSymbol=FR,x.SwirlSymbolAccountCircle=UR,x.SwirlSymbolAlternateEmail=WR,x.SwirlSymbolAndroid=GR,x.SwirlSymbolAnnouncement=YR,x.SwirlSymbolBackup=KR,x.SwirlSymbolBeachAccess=XR,x.SwirlSymbolBookmark=qR,x.SwirlSymbolCloud=QR,x.SwirlSymbolCoronavirus=JR,x.SwirlSymbolDesktopWindows=eZ,x.SwirlSymbolDirectionsCarFilled=tZ,x.SwirlSymbolEditCalendar=iZ,x.SwirlSymbolEmail=sZ,x.SwirlSymbolEmojiFoodBeverage=rZ,x.SwirlSymbolEventMenu=oZ,x.SwirlSymbolFacebook=nZ,x.SwirlSymbolFavorite=aZ,x.SwirlSymbolFitnessCenter=lZ,x.SwirlSymbolFlag=cZ,x.SwirlSymbolFolder=dZ,x.SwirlSymbolGlobe=hZ,x.SwirlSymbolGroups=uZ,x.SwirlSymbolHelp=fZ,x.SwirlSymbolImage=CZ,x.SwirlSymbolInfoMenu=pZ,x.SwirlSymbolInstagram=bZ,x.SwirlSymbolIos=mZ,x.SwirlSymbolLanguage=gZ,x.SwirlSymbolLeaderboard=wZ,x.SwirlSymbolLightbulb=vZ,x.SwirlSymbolLinkedin=yZ,x.SwirlSymbolLocationOn=_Z,x.SwirlSymbolLoyalty=xZ,x.SwirlSymbolMapsHomeWork=kZ,x.SwirlSymbolNotifications=SZ,x.SwirlSymbolOpenInNew=zZ,x.SwirlSymbolPedalBike=MZ,x.SwirlSymbolPinterest=LZ,x.SwirlSymbolPolicy=IZ,x.SwirlSymbolPushPin=EZ,x.SwirlSymbolRedeem=AZ,x.SwirlSymbolReportProblem=PZ,x.SwirlSymbolRestaurant=TZ,x.SwirlSymbolRoadmap=HZ,x.SwirlSymbolRoom=VZ,x.SwirlSymbolSavings=$Z,x.SwirlSymbolSettingsVoice=OZ,x.SwirlSymbolShoppingCart=BZ,x.SwirlSymbolSmartphone=DZ,x.SwirlSymbolStar=RZ,x.SwirlSymbolSupervisorAccount=ZZ,x.SwirlSymbolThumbsUpDown=NZ,x.SwirlSymbolTwitter=jZ,x.SwirlSymbolWbSunny=FZ,x.SwirlSymbolWechat=UZ,x.SwirlSymbolWeibo=WZ,x.SwirlSymbolWork=GZ,x.SwirlSymbolXing=YZ,x.SwirlSymbolYoutube=KZ,x.SwirlTab=XZ,x.SwirlTabBar=qZ,x.SwirlTable=QZ,x.SwirlTableCell=JZ,x.SwirlTableColumn=eN,x.SwirlTableRow=tN,x.SwirlTableRowGroup=iN,x.SwirlTabs=sN,x.SwirlTag=rN,x.SwirlText=oN,x.SwirlTextInput=nN,x.SwirlThemeProvider=aN,x.SwirlThumbnail=lN,x.SwirlTimeInput=cN,x.SwirlToast=dN,x.SwirlToastProvider=hN,x.SwirlToggleButton=uN,x.SwirlToggleGroup=fN,x.SwirlToolbar=CN,x.SwirlTooltip=pN,x.SwirlTreeNavigation=bN,x.SwirlTreeNavigationItem=mN,x.SwirlTreeView=gN,x.SwirlTreeViewItem=wN,x.SwirlVideoThumbnail=vN,x.SwirlVisuallyHidden=yN,Object.defineProperties(x,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});