pdfcedar 0.0.0-stage → 0.1.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (222) hide show
  1. package/LICENSE +47 -0
  2. package/README.md +223 -3
  3. package/bin/pdfcedar-assets.mjs +25 -0
  4. package/dist/THIRD_PARTY_NOTICES.md +411 -0
  5. package/dist/chunks/errors-Bd8CCmBG.js +185 -0
  6. package/dist/chunks/src-GGqFXcUj.js +3695 -0
  7. package/dist/chunks/src-xAKLPCPU.js +12023 -0
  8. package/dist/index.d.ts +4 -0
  9. package/dist/index.js +23198 -0
  10. package/dist/index.umd.cjs +991 -0
  11. package/dist/pdfjs/LICENSE +177 -0
  12. package/dist/pdfjs/cmaps/78-EUC-H.bcmap +0 -0
  13. package/dist/pdfjs/cmaps/78-EUC-V.bcmap +0 -0
  14. package/dist/pdfjs/cmaps/78-H.bcmap +0 -0
  15. package/dist/pdfjs/cmaps/78-RKSJ-H.bcmap +0 -0
  16. package/dist/pdfjs/cmaps/78-RKSJ-V.bcmap +0 -0
  17. package/dist/pdfjs/cmaps/78-V.bcmap +0 -0
  18. package/dist/pdfjs/cmaps/78ms-RKSJ-H.bcmap +0 -0
  19. package/dist/pdfjs/cmaps/78ms-RKSJ-V.bcmap +0 -0
  20. package/dist/pdfjs/cmaps/83pv-RKSJ-H.bcmap +0 -0
  21. package/dist/pdfjs/cmaps/90ms-RKSJ-H.bcmap +0 -0
  22. package/dist/pdfjs/cmaps/90ms-RKSJ-V.bcmap +0 -0
  23. package/dist/pdfjs/cmaps/90msp-RKSJ-H.bcmap +0 -0
  24. package/dist/pdfjs/cmaps/90msp-RKSJ-V.bcmap +0 -0
  25. package/dist/pdfjs/cmaps/90pv-RKSJ-H.bcmap +0 -0
  26. package/dist/pdfjs/cmaps/90pv-RKSJ-V.bcmap +0 -0
  27. package/dist/pdfjs/cmaps/Add-H.bcmap +0 -0
  28. package/dist/pdfjs/cmaps/Add-RKSJ-H.bcmap +0 -0
  29. package/dist/pdfjs/cmaps/Add-RKSJ-V.bcmap +0 -0
  30. package/dist/pdfjs/cmaps/Add-V.bcmap +0 -0
  31. package/dist/pdfjs/cmaps/Adobe-CNS1-0.bcmap +0 -0
  32. package/dist/pdfjs/cmaps/Adobe-CNS1-1.bcmap +0 -0
  33. package/dist/pdfjs/cmaps/Adobe-CNS1-2.bcmap +0 -0
  34. package/dist/pdfjs/cmaps/Adobe-CNS1-3.bcmap +0 -0
  35. package/dist/pdfjs/cmaps/Adobe-CNS1-4.bcmap +0 -0
  36. package/dist/pdfjs/cmaps/Adobe-CNS1-5.bcmap +0 -0
  37. package/dist/pdfjs/cmaps/Adobe-CNS1-6.bcmap +0 -0
  38. package/dist/pdfjs/cmaps/Adobe-CNS1-UCS2.bcmap +0 -0
  39. package/dist/pdfjs/cmaps/Adobe-GB1-0.bcmap +0 -0
  40. package/dist/pdfjs/cmaps/Adobe-GB1-1.bcmap +0 -0
  41. package/dist/pdfjs/cmaps/Adobe-GB1-2.bcmap +0 -0
  42. package/dist/pdfjs/cmaps/Adobe-GB1-3.bcmap +0 -0
  43. package/dist/pdfjs/cmaps/Adobe-GB1-4.bcmap +0 -0
  44. package/dist/pdfjs/cmaps/Adobe-GB1-5.bcmap +0 -0
  45. package/dist/pdfjs/cmaps/Adobe-GB1-UCS2.bcmap +0 -0
  46. package/dist/pdfjs/cmaps/Adobe-Japan1-0.bcmap +0 -0
  47. package/dist/pdfjs/cmaps/Adobe-Japan1-1.bcmap +0 -0
  48. package/dist/pdfjs/cmaps/Adobe-Japan1-2.bcmap +0 -0
  49. package/dist/pdfjs/cmaps/Adobe-Japan1-3.bcmap +0 -0
  50. package/dist/pdfjs/cmaps/Adobe-Japan1-4.bcmap +0 -0
  51. package/dist/pdfjs/cmaps/Adobe-Japan1-5.bcmap +0 -0
  52. package/dist/pdfjs/cmaps/Adobe-Japan1-6.bcmap +0 -0
  53. package/dist/pdfjs/cmaps/Adobe-Japan1-UCS2.bcmap +0 -0
  54. package/dist/pdfjs/cmaps/Adobe-Korea1-0.bcmap +0 -0
  55. package/dist/pdfjs/cmaps/Adobe-Korea1-1.bcmap +0 -0
  56. package/dist/pdfjs/cmaps/Adobe-Korea1-2.bcmap +0 -0
  57. package/dist/pdfjs/cmaps/Adobe-Korea1-UCS2.bcmap +0 -0
  58. package/dist/pdfjs/cmaps/B5-H.bcmap +0 -0
  59. package/dist/pdfjs/cmaps/B5-V.bcmap +0 -0
  60. package/dist/pdfjs/cmaps/B5pc-H.bcmap +0 -0
  61. package/dist/pdfjs/cmaps/B5pc-V.bcmap +0 -0
  62. package/dist/pdfjs/cmaps/CNS-EUC-H.bcmap +0 -0
  63. package/dist/pdfjs/cmaps/CNS-EUC-V.bcmap +0 -0
  64. package/dist/pdfjs/cmaps/CNS1-H.bcmap +0 -0
  65. package/dist/pdfjs/cmaps/CNS1-V.bcmap +0 -0
  66. package/dist/pdfjs/cmaps/CNS2-H.bcmap +0 -0
  67. package/dist/pdfjs/cmaps/CNS2-V.bcmap +3 -0
  68. package/dist/pdfjs/cmaps/ETHK-B5-H.bcmap +0 -0
  69. package/dist/pdfjs/cmaps/ETHK-B5-V.bcmap +0 -0
  70. package/dist/pdfjs/cmaps/ETen-B5-H.bcmap +0 -0
  71. package/dist/pdfjs/cmaps/ETen-B5-V.bcmap +0 -0
  72. package/dist/pdfjs/cmaps/ETenms-B5-H.bcmap +3 -0
  73. package/dist/pdfjs/cmaps/ETenms-B5-V.bcmap +0 -0
  74. package/dist/pdfjs/cmaps/EUC-H.bcmap +0 -0
  75. package/dist/pdfjs/cmaps/EUC-V.bcmap +0 -0
  76. package/dist/pdfjs/cmaps/Ext-H.bcmap +0 -0
  77. package/dist/pdfjs/cmaps/Ext-RKSJ-H.bcmap +0 -0
  78. package/dist/pdfjs/cmaps/Ext-RKSJ-V.bcmap +0 -0
  79. package/dist/pdfjs/cmaps/Ext-V.bcmap +0 -0
  80. package/dist/pdfjs/cmaps/GB-EUC-H.bcmap +0 -0
  81. package/dist/pdfjs/cmaps/GB-EUC-V.bcmap +0 -0
  82. package/dist/pdfjs/cmaps/GB-H.bcmap +4 -0
  83. package/dist/pdfjs/cmaps/GB-V.bcmap +0 -0
  84. package/dist/pdfjs/cmaps/GBK-EUC-H.bcmap +0 -0
  85. package/dist/pdfjs/cmaps/GBK-EUC-V.bcmap +0 -0
  86. package/dist/pdfjs/cmaps/GBK2K-H.bcmap +0 -0
  87. package/dist/pdfjs/cmaps/GBK2K-V.bcmap +0 -0
  88. package/dist/pdfjs/cmaps/GBKp-EUC-H.bcmap +0 -0
  89. package/dist/pdfjs/cmaps/GBKp-EUC-V.bcmap +0 -0
  90. package/dist/pdfjs/cmaps/GBT-EUC-H.bcmap +0 -0
  91. package/dist/pdfjs/cmaps/GBT-EUC-V.bcmap +0 -0
  92. package/dist/pdfjs/cmaps/GBT-H.bcmap +0 -0
  93. package/dist/pdfjs/cmaps/GBT-V.bcmap +0 -0
  94. package/dist/pdfjs/cmaps/GBTpc-EUC-H.bcmap +0 -0
  95. package/dist/pdfjs/cmaps/GBTpc-EUC-V.bcmap +0 -0
  96. package/dist/pdfjs/cmaps/GBpc-EUC-H.bcmap +0 -0
  97. package/dist/pdfjs/cmaps/GBpc-EUC-V.bcmap +0 -0
  98. package/dist/pdfjs/cmaps/H.bcmap +0 -0
  99. package/dist/pdfjs/cmaps/HKdla-B5-H.bcmap +0 -0
  100. package/dist/pdfjs/cmaps/HKdla-B5-V.bcmap +0 -0
  101. package/dist/pdfjs/cmaps/HKdlb-B5-H.bcmap +0 -0
  102. package/dist/pdfjs/cmaps/HKdlb-B5-V.bcmap +0 -0
  103. package/dist/pdfjs/cmaps/HKgccs-B5-H.bcmap +0 -0
  104. package/dist/pdfjs/cmaps/HKgccs-B5-V.bcmap +0 -0
  105. package/dist/pdfjs/cmaps/HKm314-B5-H.bcmap +0 -0
  106. package/dist/pdfjs/cmaps/HKm314-B5-V.bcmap +0 -0
  107. package/dist/pdfjs/cmaps/HKm471-B5-H.bcmap +0 -0
  108. package/dist/pdfjs/cmaps/HKm471-B5-V.bcmap +0 -0
  109. package/dist/pdfjs/cmaps/HKscs-B5-H.bcmap +0 -0
  110. package/dist/pdfjs/cmaps/HKscs-B5-V.bcmap +0 -0
  111. package/dist/pdfjs/cmaps/Hankaku.bcmap +0 -0
  112. package/dist/pdfjs/cmaps/Hiragana.bcmap +0 -0
  113. package/dist/pdfjs/cmaps/KSC-EUC-H.bcmap +0 -0
  114. package/dist/pdfjs/cmaps/KSC-EUC-V.bcmap +0 -0
  115. package/dist/pdfjs/cmaps/KSC-H.bcmap +0 -0
  116. package/dist/pdfjs/cmaps/KSC-Johab-H.bcmap +0 -0
  117. package/dist/pdfjs/cmaps/KSC-Johab-V.bcmap +0 -0
  118. package/dist/pdfjs/cmaps/KSC-V.bcmap +0 -0
  119. package/dist/pdfjs/cmaps/KSCms-UHC-H.bcmap +0 -0
  120. package/dist/pdfjs/cmaps/KSCms-UHC-HW-H.bcmap +0 -0
  121. package/dist/pdfjs/cmaps/KSCms-UHC-HW-V.bcmap +0 -0
  122. package/dist/pdfjs/cmaps/KSCms-UHC-V.bcmap +0 -0
  123. package/dist/pdfjs/cmaps/KSCpc-EUC-H.bcmap +0 -0
  124. package/dist/pdfjs/cmaps/KSCpc-EUC-V.bcmap +0 -0
  125. package/dist/pdfjs/cmaps/Katakana.bcmap +0 -0
  126. package/dist/pdfjs/cmaps/LICENSE +36 -0
  127. package/dist/pdfjs/cmaps/NWP-H.bcmap +0 -0
  128. package/dist/pdfjs/cmaps/NWP-V.bcmap +0 -0
  129. package/dist/pdfjs/cmaps/RKSJ-H.bcmap +0 -0
  130. package/dist/pdfjs/cmaps/RKSJ-V.bcmap +0 -0
  131. package/dist/pdfjs/cmaps/Roman.bcmap +0 -0
  132. package/dist/pdfjs/cmaps/UniCNS-UCS2-H.bcmap +0 -0
  133. package/dist/pdfjs/cmaps/UniCNS-UCS2-V.bcmap +0 -0
  134. package/dist/pdfjs/cmaps/UniCNS-UTF16-H.bcmap +0 -0
  135. package/dist/pdfjs/cmaps/UniCNS-UTF16-V.bcmap +0 -0
  136. package/dist/pdfjs/cmaps/UniCNS-UTF32-H.bcmap +0 -0
  137. package/dist/pdfjs/cmaps/UniCNS-UTF32-V.bcmap +0 -0
  138. package/dist/pdfjs/cmaps/UniCNS-UTF8-H.bcmap +0 -0
  139. package/dist/pdfjs/cmaps/UniCNS-UTF8-V.bcmap +0 -0
  140. package/dist/pdfjs/cmaps/UniGB-UCS2-H.bcmap +0 -0
  141. package/dist/pdfjs/cmaps/UniGB-UCS2-V.bcmap +0 -0
  142. package/dist/pdfjs/cmaps/UniGB-UTF16-H.bcmap +0 -0
  143. package/dist/pdfjs/cmaps/UniGB-UTF16-V.bcmap +0 -0
  144. package/dist/pdfjs/cmaps/UniGB-UTF32-H.bcmap +0 -0
  145. package/dist/pdfjs/cmaps/UniGB-UTF32-V.bcmap +0 -0
  146. package/dist/pdfjs/cmaps/UniGB-UTF8-H.bcmap +0 -0
  147. package/dist/pdfjs/cmaps/UniGB-UTF8-V.bcmap +0 -0
  148. package/dist/pdfjs/cmaps/UniJIS-UCS2-H.bcmap +0 -0
  149. package/dist/pdfjs/cmaps/UniJIS-UCS2-HW-H.bcmap +0 -0
  150. package/dist/pdfjs/cmaps/UniJIS-UCS2-HW-V.bcmap +0 -0
  151. package/dist/pdfjs/cmaps/UniJIS-UCS2-V.bcmap +0 -0
  152. package/dist/pdfjs/cmaps/UniJIS-UTF16-H.bcmap +0 -0
  153. package/dist/pdfjs/cmaps/UniJIS-UTF16-V.bcmap +0 -0
  154. package/dist/pdfjs/cmaps/UniJIS-UTF32-H.bcmap +0 -0
  155. package/dist/pdfjs/cmaps/UniJIS-UTF32-V.bcmap +0 -0
  156. package/dist/pdfjs/cmaps/UniJIS-UTF8-H.bcmap +0 -0
  157. package/dist/pdfjs/cmaps/UniJIS-UTF8-V.bcmap +0 -0
  158. package/dist/pdfjs/cmaps/UniJIS2004-UTF16-H.bcmap +0 -0
  159. package/dist/pdfjs/cmaps/UniJIS2004-UTF16-V.bcmap +0 -0
  160. package/dist/pdfjs/cmaps/UniJIS2004-UTF32-H.bcmap +0 -0
  161. package/dist/pdfjs/cmaps/UniJIS2004-UTF32-V.bcmap +0 -0
  162. package/dist/pdfjs/cmaps/UniJIS2004-UTF8-H.bcmap +0 -0
  163. package/dist/pdfjs/cmaps/UniJIS2004-UTF8-V.bcmap +0 -0
  164. package/dist/pdfjs/cmaps/UniJISPro-UCS2-HW-V.bcmap +0 -0
  165. package/dist/pdfjs/cmaps/UniJISPro-UCS2-V.bcmap +0 -0
  166. package/dist/pdfjs/cmaps/UniJISPro-UTF8-V.bcmap +0 -0
  167. package/dist/pdfjs/cmaps/UniJISX0213-UTF32-H.bcmap +0 -0
  168. package/dist/pdfjs/cmaps/UniJISX0213-UTF32-V.bcmap +0 -0
  169. package/dist/pdfjs/cmaps/UniJISX02132004-UTF32-H.bcmap +0 -0
  170. package/dist/pdfjs/cmaps/UniJISX02132004-UTF32-V.bcmap +0 -0
  171. package/dist/pdfjs/cmaps/UniKS-UCS2-H.bcmap +0 -0
  172. package/dist/pdfjs/cmaps/UniKS-UCS2-V.bcmap +0 -0
  173. package/dist/pdfjs/cmaps/UniKS-UTF16-H.bcmap +0 -0
  174. package/dist/pdfjs/cmaps/UniKS-UTF16-V.bcmap +0 -0
  175. package/dist/pdfjs/cmaps/UniKS-UTF32-H.bcmap +0 -0
  176. package/dist/pdfjs/cmaps/UniKS-UTF32-V.bcmap +0 -0
  177. package/dist/pdfjs/cmaps/UniKS-UTF8-H.bcmap +0 -0
  178. package/dist/pdfjs/cmaps/UniKS-UTF8-V.bcmap +0 -0
  179. package/dist/pdfjs/cmaps/V.bcmap +0 -0
  180. package/dist/pdfjs/cmaps/WP-Symbol.bcmap +0 -0
  181. package/dist/pdfjs/iccs/CGATS001Compat-v2-micro.icc +0 -0
  182. package/dist/pdfjs/iccs/LICENSE +116 -0
  183. package/dist/pdfjs/pdf.worker.min.mjs +27 -0
  184. package/dist/pdfjs/standard_fonts/FoxitDingbats.pfb +0 -0
  185. package/dist/pdfjs/standard_fonts/FoxitFixed.pfb +0 -0
  186. package/dist/pdfjs/standard_fonts/FoxitFixedBold.pfb +0 -0
  187. package/dist/pdfjs/standard_fonts/FoxitFixedBoldItalic.pfb +0 -0
  188. package/dist/pdfjs/standard_fonts/FoxitFixedItalic.pfb +0 -0
  189. package/dist/pdfjs/standard_fonts/FoxitSerif.pfb +0 -0
  190. package/dist/pdfjs/standard_fonts/FoxitSerifBold.pfb +0 -0
  191. package/dist/pdfjs/standard_fonts/FoxitSerifBoldItalic.pfb +0 -0
  192. package/dist/pdfjs/standard_fonts/FoxitSerifItalic.pfb +0 -0
  193. package/dist/pdfjs/standard_fonts/FoxitSymbol.pfb +0 -0
  194. package/dist/pdfjs/standard_fonts/LICENSE_FOXIT +27 -0
  195. package/dist/pdfjs/standard_fonts/LICENSE_LIBERATION +363 -0
  196. package/dist/pdfjs/standard_fonts/LiberationSans-Bold.ttf +0 -0
  197. package/dist/pdfjs/standard_fonts/LiberationSans-BoldItalic.ttf +0 -0
  198. package/dist/pdfjs/standard_fonts/LiberationSans-Italic.ttf +0 -0
  199. package/dist/pdfjs/standard_fonts/LiberationSans-Regular.ttf +0 -0
  200. package/dist/pdfjs/wasm/LICENSE_JBIG2 +196 -0
  201. package/dist/pdfjs/wasm/LICENSE_OPENJPEG +39 -0
  202. package/dist/pdfjs/wasm/LICENSE_PDFJS_JBIG2 +13 -0
  203. package/dist/pdfjs/wasm/LICENSE_PDFJS_OPENJPEG +22 -0
  204. package/dist/pdfjs/wasm/LICENSE_PDFJS_QCMS +19 -0
  205. package/dist/pdfjs/wasm/LICENSE_QCMS +21 -0
  206. package/dist/pdfjs/wasm/jbig2.wasm +0 -0
  207. package/dist/pdfjs/wasm/jbig2_nowasm_fallback.js +15 -0
  208. package/dist/pdfjs/wasm/openjpeg.wasm +0 -0
  209. package/dist/pdfjs/wasm/openjpeg_nowasm_fallback.js +17 -0
  210. package/dist/pdfjs/wasm/qcms_bg.wasm +0 -0
  211. package/dist/types/core/annotation-geometry.d.ts +36 -0
  212. package/dist/types/core/annotation-manager.d.ts +97 -0
  213. package/dist/types/core/annotations.d.ts +106 -0
  214. package/dist/types/core/errors.d.ts +8 -0
  215. package/dist/types/core/events.d.ts +10 -0
  216. package/dist/types/core/forms.d.ts +109 -0
  217. package/dist/types/core/index.d.ts +9 -0
  218. package/dist/types/core/types.d.ts +94 -0
  219. package/dist/types/core/undo.d.ts +47 -0
  220. package/dist/types/core/validate.d.ts +22 -0
  221. package/dist/viewer.d.ts +96 -0
  222. package/package.json +50 -3
@@ -0,0 +1,411 @@
1
+ # Third-party notices
2
+
3
+ PDFCedar bundles the following open-source packages.
4
+
5
+ ## @pdf-lib/standard-fonts 1.0.0 (MIT)
6
+
7
+ ```
8
+ MIT License
9
+
10
+ Copyright (c) 2018 Andrew Dillon
11
+
12
+ Permission is hereby granted, free of charge, to any person obtaining a copy
13
+ of this software and associated documentation files (the "Software"), to deal
14
+ in the Software without restriction, including without limitation the rights
15
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
16
+ copies of the Software, and to permit persons to whom the Software is
17
+ furnished to do so, subject to the following conditions:
18
+
19
+ The above copyright notice and this permission notice shall be included in all
20
+ copies or substantial portions of the Software.
21
+
22
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
23
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
24
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
25
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
26
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
27
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
28
+ SOFTWARE.
29
+ ```
30
+
31
+ ## @pdf-lib/upng 1.0.1 (MIT)
32
+
33
+ ```
34
+ MIT License
35
+
36
+ Copyright (c) 2017 Photopea
37
+
38
+ Permission is hereby granted, free of charge, to any person obtaining a copy
39
+ of this software and associated documentation files (the "Software"), to deal
40
+ in the Software without restriction, including without limitation the rights
41
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
42
+ copies of the Software, and to permit persons to whom the Software is
43
+ furnished to do so, subject to the following conditions:
44
+
45
+ The above copyright notice and this permission notice shall be included in all
46
+ copies or substantial portions of the Software.
47
+
48
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
49
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
50
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
51
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
52
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
53
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
54
+ SOFTWARE.
55
+ ```
56
+
57
+ ## lib0 0.2.119 (MIT)
58
+
59
+ ```
60
+ The MIT License (MIT)
61
+
62
+ Copyright (c) 2019 Kevin Jahns <kevin.jahns@protonmail.com>.
63
+
64
+ Permission is hereby granted, free of charge, to any person obtaining a copy
65
+ of this software and associated documentation files (the "Software"), to deal
66
+ in the Software without restriction, including without limitation the rights
67
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
68
+ copies of the Software, and to permit persons to whom the Software is
69
+ furnished to do so, subject to the following conditions:
70
+
71
+ The above copyright notice and this permission notice shall be included in all
72
+ copies or substantial portions of the Software.
73
+
74
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
75
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
76
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
77
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
78
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
79
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
80
+ SOFTWARE.
81
+ ```
82
+
83
+ ## pako 1.0.11 ((MIT AND Zlib))
84
+
85
+ ```
86
+ (The MIT License)
87
+
88
+ Copyright (C) 2014-2017 by Vitaly Puzrin and Andrei Tuputcyn
89
+
90
+ Permission is hereby granted, free of charge, to any person obtaining a copy
91
+ of this software and associated documentation files (the "Software"), to deal
92
+ in the Software without restriction, including without limitation the rights
93
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
94
+ copies of the Software, and to permit persons to whom the Software is
95
+ furnished to do so, subject to the following conditions:
96
+
97
+ The above copyright notice and this permission notice shall be included in
98
+ all copies or substantial portions of the Software.
99
+
100
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
101
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
102
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
103
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
104
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
105
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
106
+ THE SOFTWARE.
107
+ ```
108
+
109
+ ## pdf-lib 1.17.1 (MIT)
110
+
111
+ ```
112
+ MIT License
113
+
114
+ Copyright (c) 2019 Andrew Dillon
115
+
116
+ Permission is hereby granted, free of charge, to any person obtaining a copy
117
+ of this software and associated documentation files (the "Software"), to deal
118
+ in the Software without restriction, including without limitation the rights
119
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
120
+ copies of the Software, and to permit persons to whom the Software is
121
+ furnished to do so, subject to the following conditions:
122
+
123
+ The above copyright notice and this permission notice shall be included in all
124
+ copies or substantial portions of the Software.
125
+
126
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
127
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
128
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
129
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
130
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
131
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
132
+ SOFTWARE.
133
+ ```
134
+
135
+ ## pdfjs-dist 6.4.299 (Apache-2.0)
136
+
137
+ ```
138
+ Apache License
139
+ Version 2.0, January 2004
140
+ http://www.apache.org/licenses/
141
+
142
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
143
+
144
+ 1. Definitions.
145
+
146
+ "License" shall mean the terms and conditions for use, reproduction,
147
+ and distribution as defined by Sections 1 through 9 of this document.
148
+
149
+ "Licensor" shall mean the copyright owner or entity authorized by
150
+ the copyright owner that is granting the License.
151
+
152
+ "Legal Entity" shall mean the union of the acting entity and all
153
+ other entities that control, are controlled by, or are under common
154
+ control with that entity. For the purposes of this definition,
155
+ "control" means (i) the power, direct or indirect, to cause the
156
+ direction or management of such entity, whether by contract or
157
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
158
+ outstanding shares, or (iii) beneficial ownership of such entity.
159
+
160
+ "You" (or "Your") shall mean an individual or Legal Entity
161
+ exercising permissions granted by this License.
162
+
163
+ "Source" form shall mean the preferred form for making modifications,
164
+ including but not limited to software source code, documentation
165
+ source, and configuration files.
166
+
167
+ "Object" form shall mean any form resulting from mechanical
168
+ transformation or translation of a Source form, including but
169
+ not limited to compiled object code, generated documentation,
170
+ and conversions to other media types.
171
+
172
+ "Work" shall mean the work of authorship, whether in Source or
173
+ Object form, made available under the License, as indicated by a
174
+ copyright notice that is included in or attached to the work
175
+ (an example is provided in the Appendix below).
176
+
177
+ "Derivative Works" shall mean any work, whether in Source or Object
178
+ form, that is based on (or derived from) the Work and for which the
179
+ editorial revisions, annotations, elaborations, or other modifications
180
+ represent, as a whole, an original work of authorship. For the purposes
181
+ of this License, Derivative Works shall not include works that remain
182
+ separable from, or merely link (or bind by name) to the interfaces of,
183
+ the Work and Derivative Works thereof.
184
+
185
+ "Contribution" shall mean any work of authorship, including
186
+ the original version of the Work and any modifications or additions
187
+ to that Work or Derivative Works thereof, that is intentionally
188
+ submitted to Licensor for inclusion in the Work by the copyright owner
189
+ or by an individual or Legal Entity authorized to submit on behalf of
190
+ the copyright owner. For the purposes of this definition, "submitted"
191
+ means any form of electronic, verbal, or written communication sent
192
+ to the Licensor or its representatives, including but not limited to
193
+ communication on electronic mailing lists, source code control systems,
194
+ and issue tracking systems that are managed by, or on behalf of, the
195
+ Licensor for the purpose of discussing and improving the Work, but
196
+ excluding communication that is conspicuously marked or otherwise
197
+ designated in writing by the copyright owner as "Not a Contribution."
198
+
199
+ "Contributor" shall mean Licensor and any individual or Legal Entity
200
+ on behalf of whom a Contribution has been received by Licensor and
201
+ subsequently incorporated within the Work.
202
+
203
+ 2. Grant of Copyright License. Subject to the terms and conditions of
204
+ this License, each Contributor hereby grants to You a perpetual,
205
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
206
+ copyright license to reproduce, prepare Derivative Works of,
207
+ publicly display, publicly perform, sublicense, and distribute the
208
+ Work and such Derivative Works in Source or Object form.
209
+
210
+ 3. Grant of Patent License. Subject to the terms and conditions of
211
+ this License, each Contributor hereby grants to You a perpetual,
212
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
213
+ (except as stated in this section) patent license to make, have made,
214
+ use, offer to sell, sell, import, and otherwise transfer the Work,
215
+ where such license applies only to those patent claims licensable
216
+ by such Contributor that are necessarily infringed by their
217
+ Contribution(s) alone or by combination of their Contribution(s)
218
+ with the Work to which such Contribution(s) was submitted. If You
219
+ institute patent litigation against any entity (including a
220
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
221
+ or a Contribution incorporated within the Work constitutes direct
222
+ or contributory patent infringement, then any patent licenses
223
+ granted to You under this License for that Work shall terminate
224
+ as of the date such litigation is filed.
225
+
226
+ 4. Redistribution. You may reproduce and distribute copies of the
227
+ Work or Derivative Works thereof in any medium, with or without
228
+ modifications, and in Source or Object form, provided that You
229
+ meet the following conditions:
230
+
231
+ (a) You must give any other recipients of the Work or
232
+ Derivative Works a copy of this License; and
233
+
234
+ (b) You must cause any modified files to carry prominent notices
235
+ stating that You changed the files; and
236
+
237
+ (c) You must retain, in the Source form of any Derivative Works
238
+ that You distribute, all copyright, patent, trademark, and
239
+ attribution notices from the Source form of the Work,
240
+ excluding those notices that do not pertain to any part of
241
+ the Derivative Works; and
242
+
243
+ (d) If the Work includes a "NOTICE" text file as part of its
244
+ distribution, then any Derivative Works that You distribute must
245
+ include a readable copy of the attribution notices contained
246
+ within such NOTICE file, excluding those notices that do not
247
+ pertain to any part of the Derivative Works, in at least one
248
+ of the following places: within a NOTICE text file distributed
249
+ as part of the Derivative Works; within the Source form or
250
+ documentation, if provided along with the Derivative Works; or,
251
+ within a display generated by the Derivative Works, if and
252
+ wherever such third-party notices normally appear. The contents
253
+ of the NOTICE file are for informational purposes only and
254
+ do not modify the License. You may add Your own attribution
255
+ notices within Derivative Works that You distribute, alongside
256
+ or as an addendum to the NOTICE text from the Work, provided
257
+ that such additional attribution notices cannot be construed
258
+ as modifying the License.
259
+
260
+ You may add Your own copyright statement to Your modifications and
261
+ may provide additional or different license terms and conditions
262
+ for use, reproduction, or distribution of Your modifications, or
263
+ for any such Derivative Works as a whole, provided Your use,
264
+ reproduction, and distribution of the Work otherwise complies with
265
+ the conditions stated in this License.
266
+
267
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
268
+ any Contribution intentionally submitted for inclusion in the Work
269
+ by You to the Licensor shall be under the terms and conditions of
270
+ this License, without any additional terms or conditions.
271
+ Notwithstanding the above, nothing herein shall supersede or modify
272
+ the terms of any separate license agreement you may have executed
273
+ with Licensor regarding such Contributions.
274
+
275
+ 6. Trademarks. This License does not grant permission to use the trade
276
+ names, trademarks, service marks, or product names of the Licensor,
277
+ except as required for reasonable and customary use in describing the
278
+ origin of the Work and reproducing the content of the NOTICE file.
279
+
280
+ 7. Disclaimer of Warranty. Unless required by applicable law or
281
+ agreed to in writing, Licensor provides the Work (and each
282
+ Contributor provides its Contributions) on an "AS IS" BASIS,
283
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
284
+ implied, including, without limitation, any warranties or conditions
285
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
286
+ PARTICULAR PURPOSE. You are solely responsible for determining the
287
+ appropriateness of using or redistributing the Work and assume any
288
+ risks associated with Your exercise of permissions under this License.
289
+
290
+ 8. Limitation of Liability. In no event and under no legal theory,
291
+ whether in tort (including negligence), contract, or otherwise,
292
+ unless required by applicable law (such as deliberate and grossly
293
+ negligent acts) or agreed to in writing, shall any Contributor be
294
+ liable to You for damages, including any direct, indirect, special,
295
+ incidental, or consequential damages of any character arising as a
296
+ result of this License or out of the use or inability to use the
297
+ Work (including but not limited to damages for loss of goodwill,
298
+ work stoppage, computer failure or malfunction, or any and all
299
+ other commercial damages or losses), even if such Contributor
300
+ has been advised of the possibility of such damages.
301
+
302
+ 9. Accepting Warranty or Additional Liability. While redistributing
303
+ the Work or Derivative Works thereof, You may choose to offer,
304
+ and charge a fee for, acceptance of support, warranty, indemnity,
305
+ or other liability obligations and/or rights consistent with this
306
+ License. However, in accepting such obligations, You may act only
307
+ on Your own behalf and on Your sole responsibility, not on behalf
308
+ of any other Contributor, and only if You agree to indemnify,
309
+ defend, and hold each Contributor harmless for any liability
310
+ incurred by, or claims asserted against, such Contributor by reason
311
+ of your accepting any such warranty or additional liability.
312
+
313
+ END OF TERMS AND CONDITIONS
314
+ ```
315
+
316
+ ## tslib 1.14.1 (0BSD)
317
+
318
+ ```
319
+ Copyright (c) Microsoft Corporation.
320
+
321
+ Permission to use, copy, modify, and/or distribute this software for any
322
+ purpose with or without fee is hereby granted.
323
+
324
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
325
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
326
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
327
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
328
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
329
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
330
+ PERFORMANCE OF THIS SOFTWARE.
331
+ ```
332
+
333
+ ## y-protocols 1.0.7 (MIT)
334
+
335
+ ```
336
+ The MIT License (MIT)
337
+
338
+ Copyright (c) 2019 Kevin Jahns <kevin.jahns@protonmail.com>.
339
+
340
+ Permission is hereby granted, free of charge, to any person obtaining a copy
341
+ of this software and associated documentation files (the "Software"), to deal
342
+ in the Software without restriction, including without limitation the rights
343
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
344
+ copies of the Software, and to permit persons to whom the Software is
345
+ furnished to do so, subject to the following conditions:
346
+
347
+ The above copyright notice and this permission notice shall be included in all
348
+ copies or substantial portions of the Software.
349
+
350
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
351
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
352
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
353
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
354
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
355
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
356
+ SOFTWARE.
357
+ ```
358
+
359
+ ## y-websocket 3.1.0 (MIT)
360
+
361
+ ```
362
+ The MIT License (MIT)
363
+
364
+ Copyright (c) 2025 Kevin Jahns <kevin.jahns@protonmail.com>.
365
+
366
+ Permission is hereby granted, free of charge, to any person obtaining a copy
367
+ of this software and associated documentation files (the "Software"), to deal
368
+ in the Software without restriction, including without limitation the rights
369
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
370
+ copies of the Software, and to permit persons to whom the Software is
371
+ furnished to do so, subject to the following conditions:
372
+
373
+ The above copyright notice and this permission notice shall be included in all
374
+ copies or substantial portions of the Software.
375
+
376
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
377
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
378
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
379
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
380
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
381
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
382
+ SOFTWARE.
383
+ ```
384
+
385
+ ## yjs 13.6.33 (MIT)
386
+
387
+ ```
388
+ The MIT License (MIT)
389
+
390
+ Copyright (c) 2023
391
+ - Kevin Jahns <kevin.jahns@protonmail.com>.
392
+ - Chair of Computer Science 5 (Databases & Information Systems), RWTH Aachen University, Germany
393
+
394
+ Permission is hereby granted, free of charge, to any person obtaining a copy
395
+ of this software and associated documentation files (the "Software"), to deal
396
+ in the Software without restriction, including without limitation the rights
397
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
398
+ copies of the Software, and to permit persons to whom the Software is
399
+ furnished to do so, subject to the following conditions:
400
+
401
+ The above copyright notice and this permission notice shall be included in all
402
+ copies or substantial portions of the Software.
403
+
404
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
405
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
406
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
407
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
408
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
409
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
410
+ SOFTWARE.
411
+ ```
@@ -0,0 +1,185 @@
1
+ // ../core/src/annotations.ts
2
+ var e = [
3
+ "highlight",
4
+ "underline",
5
+ "strikeout",
6
+ "note",
7
+ "reply",
8
+ "ink",
9
+ "rectangle",
10
+ "ellipse",
11
+ "line",
12
+ "arrow",
13
+ "freeText",
14
+ "signature",
15
+ "redaction"
16
+ ], t = {
17
+ highlight: "#ffd400",
18
+ underline: "#2563eb",
19
+ strikeout: "#e11d48",
20
+ note: "#ffd400",
21
+ reply: "#ffd400",
22
+ ink: "#e11d48",
23
+ rectangle: "#e11d48",
24
+ ellipse: "#e11d48",
25
+ line: "#e11d48",
26
+ arrow: "#e11d48",
27
+ freeText: "#111827",
28
+ signature: "#000000",
29
+ redaction: "#e11d48"
30
+ }, n = /* @__PURE__ */ new Set([
31
+ "Highlight",
32
+ "Underline",
33
+ "StrikeOut",
34
+ "Text",
35
+ "Ink",
36
+ "Square",
37
+ "Circle",
38
+ "Line",
39
+ "FreeText",
40
+ "Redact"
41
+ ]);
42
+ // ../core/src/annotation-geometry.ts
43
+ function r(e, t) {
44
+ return {
45
+ x: Math.min(e.x, t.x),
46
+ y: Math.min(e.y, t.y),
47
+ width: Math.abs(t.x - e.x),
48
+ height: Math.abs(t.y - e.y)
49
+ };
50
+ }
51
+ var i = (e, t, n) => ({
52
+ x: e.x + t,
53
+ y: e.y + n
54
+ });
55
+ function a(e, t, n) {
56
+ let r = {
57
+ ...e.rect,
58
+ x: e.rect.x + t,
59
+ y: e.rect.y + n
60
+ };
61
+ switch (e.type) {
62
+ case "highlight":
63
+ case "underline":
64
+ case "strikeout": return { quads: e.quads.map((e) => e.map((e, r) => e + (r % 2 == 0 ? t : n))) };
65
+ case "ink": return { paths: e.paths.map((e) => e.map((e) => i(e, t, n))) };
66
+ case "line":
67
+ case "arrow": return {
68
+ start: i(e.start, t, n),
69
+ end: i(e.end, t, n)
70
+ };
71
+ default: return { rect: r };
72
+ }
73
+ }
74
+ function o(e) {
75
+ return e.type === "rectangle" || e.type === "ellipse" || e.type === "freeText" || e.type === "ink" || e.type === "signature" || e.type === "redaction";
76
+ }
77
+ function s(e) {
78
+ return e.type === "signature" ? [
79
+ "nw",
80
+ "ne",
81
+ "se",
82
+ "sw"
83
+ ] : [
84
+ "nw",
85
+ "n",
86
+ "ne",
87
+ "e",
88
+ "se",
89
+ "s",
90
+ "sw",
91
+ "w"
92
+ ];
93
+ }
94
+ function c(e, t, n) {
95
+ if (e.width <= 0 || e.height <= 0) return t;
96
+ let r = Math.max(t.width / e.width, t.height / e.height), i = e.width * r, a = e.height * r, o = e.x + e.width, s = e.y + e.height;
97
+ return {
98
+ x: n.includes("w") ? o - i : e.x,
99
+ y: n.includes("s") ? s - a : e.y,
100
+ width: i,
101
+ height: a
102
+ };
103
+ }
104
+ function l(e) {
105
+ return e.type !== "reply" && e.type !== "highlight" && e.type !== "underline" && e.type !== "strikeout";
106
+ }
107
+ function u(e, t) {
108
+ if (e.type !== "ink") return { rect: t };
109
+ let n = e.strokeWidth / 2, r = {
110
+ x: e.rect.x + n,
111
+ y: e.rect.y + n,
112
+ width: e.rect.width - 2 * n,
113
+ height: e.rect.height - 2 * n
114
+ }, i = {
115
+ x: t.x + n,
116
+ y: t.y + n,
117
+ width: Math.max(0, t.width - 2 * n),
118
+ height: Math.max(0, t.height - 2 * n)
119
+ }, a = r.width > 0 ? i.width / r.width : 1, o = r.height > 0 ? i.height / r.height : 1;
120
+ return { paths: e.paths.map((e) => e.map((e) => ({
121
+ x: i.x + (e.x - r.x) * a,
122
+ y: i.y + (e.y - r.y) * o
123
+ }))) };
124
+ }
125
+ function d(e, t, n, r, i = 4) {
126
+ let a = e.x, o = e.x + e.width, s = e.y, c = e.y + e.height;
127
+ return t.includes("w") && (a = Math.min(a + n, o - i)), t.includes("e") && (o = Math.max(o + n, a + i)), t.includes("n") && (c = Math.max(c + r, s + i)), t.includes("s") && (s = Math.min(s + r, c - i)), {
128
+ x: a,
129
+ y: s,
130
+ width: o - a,
131
+ height: c - s
132
+ };
133
+ }
134
+ function f(e) {
135
+ let t = e.y + e.height, n = e.x + e.width;
136
+ return [
137
+ e.x,
138
+ t,
139
+ n,
140
+ t,
141
+ e.x,
142
+ e.y,
143
+ n,
144
+ e.y
145
+ ];
146
+ }
147
+ function p(e) {
148
+ let t = e.filter((e) => e.width > .5 && e.height > .5).sort((e, t) => t.y + t.height - (e.y + e.height) || e.x - t.x), n = [];
149
+ for (let e of t) {
150
+ let t = n.find((t) => {
151
+ let n = Math.min(t.y + t.height, e.y + e.height) - Math.max(t.y, e.y), r = Math.max(t.x, e.x) - Math.min(t.x + t.width, e.x + e.width);
152
+ return n >= Math.min(t.height, e.height) / 2 && r < Math.max(t.height, e.height);
153
+ });
154
+ if (!t) {
155
+ n.push({ ...e });
156
+ continue;
157
+ }
158
+ let r = Math.min(t.x, e.x), i = Math.min(t.y, e.y);
159
+ t.width = Math.max(t.x + t.width, e.x + e.width) - r, t.height = Math.max(t.y + t.height, e.y + e.height) - i, t.x = r, t.y = i;
160
+ }
161
+ return n;
162
+ }
163
+ function m(e, t, n) {
164
+ let r = Math.max(n * 3, 6), i = Math.atan2(t.y - e.y, t.x - e.x), a = Math.PI / 7;
165
+ return [{
166
+ x: t.x - r * Math.cos(i - a),
167
+ y: t.y - r * Math.sin(i - a)
168
+ }, {
169
+ x: t.x - r * Math.cos(i + a),
170
+ y: t.y - r * Math.sin(i + a)
171
+ }];
172
+ }
173
+ // ../core/src/errors.ts
174
+ var h = class extends Error {
175
+ constructor(e, t) {
176
+ super(`${e} is not implemented yet (planned for Milestone ${t}).`), this.name = "NotImplementedError";
177
+ }
178
+ }, g = class extends Error {
179
+ constructor() {
180
+ super("Saving password-protected (encrypted) PDFs is not supported yet."), this.name = "EncryptedDocumentError";
181
+ }
182
+ };
183
+ export { l as a, p as c, u as d, s as f, n as g, t as h, d as i, f as l, e as m, h as n, o, a as p, m as r, c as s, g as t, r as u };
184
+
185
+ //# sourceMappingURL=errors-Bd8CCmBG.js.map