zhui-plus 1.0.0 → 1.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of zhui-plus might be problematic. Click here for more details.

Files changed (820) hide show
  1. package/dist/Heatmap.js +689 -0
  2. package/dist/WSPlayer/PlaySDKInterface.js +1 -0
  3. package/dist/WSPlayer/WSPlayer.js +1 -0
  4. package/dist/WSPlayer/audioTalkWorker.js +1 -0
  5. package/dist/WSPlayer/commonThread/libH264Enc.js +21 -0
  6. package/dist/WSPlayer/commonThread/libH264Enc.wasm +0 -0
  7. package/dist/WSPlayer/commonThread/libIVSDrawer.js +21 -0
  8. package/dist/WSPlayer/commonThread/libIVSDrawer.wasm +0 -0
  9. package/dist/WSPlayer/commonThread/libRenderEngine.js +21 -0
  10. package/dist/WSPlayer/commonThread/libRenderEngine.wasm +0 -0
  11. package/dist/WSPlayer/commonThread/libmavasp_litepacket.data +50 -0
  12. package/dist/WSPlayer/commonThread/libmavasp_litepacket.js +21 -0
  13. package/dist/WSPlayer/commonThread/libmavasp_litepacket.wasm +0 -0
  14. package/dist/WSPlayer/icon/IotComboBackGround-alarm.png +0 -0
  15. package/dist/WSPlayer/icon/IotComboBackGround.png +0 -0
  16. package/dist/WSPlayer/icon/RecordHover.svg +13 -0
  17. package/dist/WSPlayer/icon/RecordNormal.svg +13 -0
  18. package/dist/WSPlayer/icon/Recording.svg +15 -0
  19. package/dist/WSPlayer/icon/arrow-b.svg +9 -0
  20. package/dist/WSPlayer/icon/arrow-l.svg +9 -0
  21. package/dist/WSPlayer/icon/arrow-lb.svg +10 -0
  22. package/dist/WSPlayer/icon/arrow-lt.svg +10 -0
  23. package/dist/WSPlayer/icon/arrow-r.svg +9 -0
  24. package/dist/WSPlayer/icon/arrow-rb.svg +10 -0
  25. package/dist/WSPlayer/icon/arrow-rt.svg +10 -0
  26. package/dist/WSPlayer/icon/arrow-t.svg +9 -0
  27. package/dist/WSPlayer/icon/close-all-hover.svg +18 -0
  28. package/dist/WSPlayer/icon/close-all.svg +18 -0
  29. package/dist/WSPlayer/icon/close.svg +16 -0
  30. package/dist/WSPlayer/icon/close_hover.svg +16 -0
  31. package/dist/WSPlayer/icon/default.png +0 -0
  32. package/dist/WSPlayer/icon/draw-triangle_off.svg +14 -0
  33. package/dist/WSPlayer/icon/draw-triangle_off_hover.svg +14 -0
  34. package/dist/WSPlayer/icon/draw-triangle_on.svg +15 -0
  35. package/dist/WSPlayer/icon/draw-triangle_on_hover.svg +15 -0
  36. package/dist/WSPlayer/icon/drops.png +0 -0
  37. package/dist/WSPlayer/icon/fullscreen-hover.svg +13 -0
  38. package/dist/WSPlayer/icon/fullscreen.svg +13 -0
  39. package/dist/WSPlayer/icon/hide-pantilt-on.svg +13 -0
  40. package/dist/WSPlayer/icon/hide-pantilt.svg +13 -0
  41. package/dist/WSPlayer/icon/mobile-speed-control-icon.svg +13 -0
  42. package/dist/WSPlayer/icon/more.svg +13 -0
  43. package/dist/WSPlayer/icon/play-h.png +0 -0
  44. package/dist/WSPlayer/icon/play-n.png +0 -0
  45. package/dist/WSPlayer/icon/play-p.png +0 -0
  46. package/dist/WSPlayer/icon/ptz-icon1.svg +4 -0
  47. package/dist/WSPlayer/icon/ptz-icon2.svg +13 -0
  48. package/dist/WSPlayer/icon/ptz-icon3.svg +10 -0
  49. package/dist/WSPlayer/icon/ptz-icon4.svg +10 -0
  50. package/dist/WSPlayer/icon/ptz-icon5.svg +12 -0
  51. package/dist/WSPlayer/icon/ptz-icon6.svg +14 -0
  52. package/dist/WSPlayer/icon/ptz-select-hover.svg +3 -0
  53. package/dist/WSPlayer/icon/ptz-select.svg +3 -0
  54. package/dist/WSPlayer/icon/record_pause.svg +5 -0
  55. package/dist/WSPlayer/icon/record_play.svg +5 -0
  56. package/dist/WSPlayer/icon/refresh-replay.svg +11 -0
  57. package/dist/WSPlayer/icon/refresh-replay_hover.svg +11 -0
  58. package/dist/WSPlayer/icon/screen-more-icon.svg +15 -0
  59. package/dist/WSPlayer/icon/screen_1.svg +11 -0
  60. package/dist/WSPlayer/icon/screen_16.svg +18 -0
  61. package/dist/WSPlayer/icon/screen_16_hover.svg +18 -0
  62. package/dist/WSPlayer/icon/screen_1_hover.svg +11 -0
  63. package/dist/WSPlayer/icon/screen_2.svg +18 -0
  64. package/dist/WSPlayer/icon/screen_25.svg +19 -0
  65. package/dist/WSPlayer/icon/screen_25_hover.svg +19 -0
  66. package/dist/WSPlayer/icon/screen_2_hover.svg +18 -0
  67. package/dist/WSPlayer/icon/screen_3.svg +13 -0
  68. package/dist/WSPlayer/icon/screen_3_hover.svg +13 -0
  69. package/dist/WSPlayer/icon/screen_4.svg +12 -0
  70. package/dist/WSPlayer/icon/screen_4_hover.svg +12 -0
  71. package/dist/WSPlayer/icon/screen_6.svg +16 -0
  72. package/dist/WSPlayer/icon/screen_6_hover.svg +16 -0
  73. package/dist/WSPlayer/icon/screen_8.svg +18 -0
  74. package/dist/WSPlayer/icon/screen_8_hover.svg +18 -0
  75. package/dist/WSPlayer/icon/screen_9.svg +17 -0
  76. package/dist/WSPlayer/icon/screen_9_hover.svg +17 -0
  77. package/dist/WSPlayer/icon/screen_custom_division.svg +9 -0
  78. package/dist/WSPlayer/icon/screen_custom_division_hover.svg +9 -0
  79. package/dist/WSPlayer/icon/screen_custom_division_merge.svg +3 -0
  80. package/dist/WSPlayer/icon/screen_custom_division_split.svg +6 -0
  81. package/dist/WSPlayer/icon/snapshot.svg +38 -0
  82. package/dist/WSPlayer/icon/snapshot_hover.svg +38 -0
  83. package/dist/WSPlayer/icon/speed_left.svg +15 -0
  84. package/dist/WSPlayer/icon/speed_right.svg +15 -0
  85. package/dist/WSPlayer/icon/spread.png +0 -0
  86. package/dist/WSPlayer/icon/tag-left-alarm.png +0 -0
  87. package/dist/WSPlayer/icon/tag-left-normal.png +0 -0
  88. package/dist/WSPlayer/icon/tag-middle-alarm.png +0 -0
  89. package/dist/WSPlayer/icon/tag-middle-normal.png +0 -0
  90. package/dist/WSPlayer/icon/tag-right-alarm.png +0 -0
  91. package/dist/WSPlayer/icon/tag-right-normal.png +0 -0
  92. package/dist/WSPlayer/icon/talk-off-hover.svg +11 -0
  93. package/dist/WSPlayer/icon/talk-off.svg +11 -0
  94. package/dist/WSPlayer/icon/talk-on.svg +9 -0
  95. package/dist/WSPlayer/icon/voice-have.svg +43 -0
  96. package/dist/WSPlayer/icon/voice-have_hover.svg +43 -0
  97. package/dist/WSPlayer/icon/voice-null.svg +38 -0
  98. package/dist/WSPlayer/icon/voice-null_hover.svg +38 -0
  99. package/dist/WSPlayer/icon/ws-ctrl-ellipsis-hover.svg +14 -0
  100. package/dist/WSPlayer/icon/ws-ctrl-ellipsis.svg +14 -0
  101. package/dist/WSPlayer/icon/wsplayer-mobile-pantilt-b-bg.png +0 -0
  102. package/dist/WSPlayer/icon/wsplayer-mobile-pantilt-bg.png +0 -0
  103. package/dist/WSPlayer/icon/wsplayer-mobile-pantilt-l-bg.png +0 -0
  104. package/dist/WSPlayer/icon/wsplayer-mobile-pantilt-lb-bg.png +0 -0
  105. package/dist/WSPlayer/icon/wsplayer-mobile-pantilt-lt-bg.png +0 -0
  106. package/dist/WSPlayer/icon/wsplayer-mobile-pantilt-r-bg.png +0 -0
  107. package/dist/WSPlayer/icon/wsplayer-mobile-pantilt-rb-bg.png +0 -0
  108. package/dist/WSPlayer/icon/wsplayer-mobile-pantilt-rt-bg.png +0 -0
  109. package/dist/WSPlayer/icon/wsplayer-mobile-pantilt-t-bg.png +0 -0
  110. package/dist/WSPlayer/jquery-3.6.0.min.js +2 -0
  111. package/dist/WSPlayer/multiThread/libStreamClient.js +21 -0
  112. package/dist/WSPlayer/multiThread/libStreamClient.wasm +0 -0
  113. package/dist/WSPlayer/multiThread/libStreamClient.worker.js +1 -0
  114. package/dist/WSPlayer/multiThread/libplay.data +0 -0
  115. package/dist/WSPlayer/multiThread/libplay.js +1 -0
  116. package/dist/WSPlayer/multiThread/libplay.wasm +0 -0
  117. package/dist/WSPlayer/multiThread/libplay.worker.js +1 -0
  118. package/dist/WSPlayer/player.css +1490 -0
  119. package/dist/WSPlayer/singleThread/VideoDecodeWorker.js +1439 -0
  120. package/dist/WSPlayer/singleThread/libStreamClient.js +21 -0
  121. package/dist/WSPlayer/singleThread/libStreamClient.wasm +0 -0
  122. package/dist/WSPlayer/singleThread/libplay.data +0 -0
  123. package/dist/WSPlayer/singleThread/libplay.js +1 -0
  124. package/dist/WSPlayer/singleThread/libplay.wasm +0 -0
  125. package/dist/WSPlayer/window.division.css +80 -0
  126. package/dist/index.js +467 -0
  127. package/dist/locale/af.js +193 -0
  128. package/dist/locale/af.min.js +3 -0
  129. package/dist/locale/af.min.js.map +1 -0
  130. package/dist/locale/af.min.mjs +3 -0
  131. package/dist/locale/af.min.mjs.map +1 -0
  132. package/dist/locale/af.mjs +186 -0
  133. package/dist/locale/ar-eg.js +193 -0
  134. package/dist/locale/ar-eg.min.js +3 -0
  135. package/dist/locale/ar-eg.min.js.map +1 -0
  136. package/dist/locale/ar-eg.min.mjs +3 -0
  137. package/dist/locale/ar-eg.min.mjs.map +1 -0
  138. package/dist/locale/ar-eg.mjs +186 -0
  139. package/dist/locale/ar.js +193 -0
  140. package/dist/locale/ar.min.js +3 -0
  141. package/dist/locale/ar.min.js.map +1 -0
  142. package/dist/locale/ar.min.mjs +3 -0
  143. package/dist/locale/ar.min.mjs.map +1 -0
  144. package/dist/locale/ar.mjs +186 -0
  145. package/dist/locale/az.js +194 -0
  146. package/dist/locale/az.min.js +3 -0
  147. package/dist/locale/az.min.js.map +1 -0
  148. package/dist/locale/az.min.mjs +3 -0
  149. package/dist/locale/az.min.mjs.map +1 -0
  150. package/dist/locale/az.mjs +187 -0
  151. package/dist/locale/bg.js +193 -0
  152. package/dist/locale/bg.min.js +3 -0
  153. package/dist/locale/bg.min.js.map +1 -0
  154. package/dist/locale/bg.min.mjs +3 -0
  155. package/dist/locale/bg.min.mjs.map +1 -0
  156. package/dist/locale/bg.mjs +186 -0
  157. package/dist/locale/bn.js +193 -0
  158. package/dist/locale/bn.min.js +3 -0
  159. package/dist/locale/bn.min.js.map +1 -0
  160. package/dist/locale/bn.min.mjs +3 -0
  161. package/dist/locale/bn.min.mjs.map +1 -0
  162. package/dist/locale/bn.mjs +186 -0
  163. package/dist/locale/ca.js +193 -0
  164. package/dist/locale/ca.min.js +3 -0
  165. package/dist/locale/ca.min.js.map +1 -0
  166. package/dist/locale/ca.min.mjs +3 -0
  167. package/dist/locale/ca.min.mjs.map +1 -0
  168. package/dist/locale/ca.mjs +186 -0
  169. package/dist/locale/ckb.js +193 -0
  170. package/dist/locale/ckb.min.js +3 -0
  171. package/dist/locale/ckb.min.js.map +1 -0
  172. package/dist/locale/ckb.min.mjs +3 -0
  173. package/dist/locale/ckb.min.mjs.map +1 -0
  174. package/dist/locale/ckb.mjs +186 -0
  175. package/dist/locale/cs.js +195 -0
  176. package/dist/locale/cs.min.js +3 -0
  177. package/dist/locale/cs.min.js.map +1 -0
  178. package/dist/locale/cs.min.mjs +3 -0
  179. package/dist/locale/cs.min.mjs.map +1 -0
  180. package/dist/locale/cs.mjs +188 -0
  181. package/dist/locale/da.js +193 -0
  182. package/dist/locale/da.min.js +3 -0
  183. package/dist/locale/da.min.js.map +1 -0
  184. package/dist/locale/da.min.mjs +3 -0
  185. package/dist/locale/da.min.mjs.map +1 -0
  186. package/dist/locale/da.mjs +186 -0
  187. package/dist/locale/de.js +195 -0
  188. package/dist/locale/de.min.js +3 -0
  189. package/dist/locale/de.min.js.map +1 -0
  190. package/dist/locale/de.min.mjs +3 -0
  191. package/dist/locale/de.min.mjs.map +1 -0
  192. package/dist/locale/de.mjs +188 -0
  193. package/dist/locale/el.js +193 -0
  194. package/dist/locale/el.min.js +3 -0
  195. package/dist/locale/el.min.js.map +1 -0
  196. package/dist/locale/el.min.mjs +3 -0
  197. package/dist/locale/el.min.mjs.map +1 -0
  198. package/dist/locale/el.mjs +186 -0
  199. package/dist/locale/en.js +193 -0
  200. package/dist/locale/en.min.js +3 -0
  201. package/dist/locale/en.min.js.map +1 -0
  202. package/dist/locale/en.min.mjs +3 -0
  203. package/dist/locale/en.min.mjs.map +1 -0
  204. package/dist/locale/en.mjs +186 -0
  205. package/dist/locale/eo.js +193 -0
  206. package/dist/locale/eo.min.js +3 -0
  207. package/dist/locale/eo.min.js.map +1 -0
  208. package/dist/locale/eo.min.mjs +3 -0
  209. package/dist/locale/eo.min.mjs.map +1 -0
  210. package/dist/locale/eo.mjs +186 -0
  211. package/dist/locale/es.js +193 -0
  212. package/dist/locale/es.min.js +3 -0
  213. package/dist/locale/es.min.js.map +1 -0
  214. package/dist/locale/es.min.mjs +3 -0
  215. package/dist/locale/es.min.mjs.map +1 -0
  216. package/dist/locale/es.mjs +186 -0
  217. package/dist/locale/et.js +193 -0
  218. package/dist/locale/et.min.js +3 -0
  219. package/dist/locale/et.min.js.map +1 -0
  220. package/dist/locale/et.min.mjs +3 -0
  221. package/dist/locale/et.min.mjs.map +1 -0
  222. package/dist/locale/et.mjs +186 -0
  223. package/dist/locale/eu.js +193 -0
  224. package/dist/locale/eu.min.js +3 -0
  225. package/dist/locale/eu.min.js.map +1 -0
  226. package/dist/locale/eu.min.mjs +3 -0
  227. package/dist/locale/eu.min.mjs.map +1 -0
  228. package/dist/locale/eu.mjs +186 -0
  229. package/dist/locale/fa.js +193 -0
  230. package/dist/locale/fa.min.js +3 -0
  231. package/dist/locale/fa.min.js.map +1 -0
  232. package/dist/locale/fa.min.mjs +3 -0
  233. package/dist/locale/fa.min.mjs.map +1 -0
  234. package/dist/locale/fa.mjs +186 -0
  235. package/dist/locale/fi.js +193 -0
  236. package/dist/locale/fi.min.js +3 -0
  237. package/dist/locale/fi.min.js.map +1 -0
  238. package/dist/locale/fi.min.mjs +3 -0
  239. package/dist/locale/fi.min.mjs.map +1 -0
  240. package/dist/locale/fi.mjs +186 -0
  241. package/dist/locale/fr.js +193 -0
  242. package/dist/locale/fr.min.js +3 -0
  243. package/dist/locale/fr.min.js.map +1 -0
  244. package/dist/locale/fr.min.mjs +3 -0
  245. package/dist/locale/fr.min.mjs.map +1 -0
  246. package/dist/locale/fr.mjs +186 -0
  247. package/dist/locale/he.js +193 -0
  248. package/dist/locale/he.min.js +3 -0
  249. package/dist/locale/he.min.js.map +1 -0
  250. package/dist/locale/he.min.mjs +3 -0
  251. package/dist/locale/he.min.mjs.map +1 -0
  252. package/dist/locale/he.mjs +186 -0
  253. package/dist/locale/hi.js +193 -0
  254. package/dist/locale/hi.min.js +3 -0
  255. package/dist/locale/hi.min.js.map +1 -0
  256. package/dist/locale/hi.min.mjs +3 -0
  257. package/dist/locale/hi.min.mjs.map +1 -0
  258. package/dist/locale/hi.mjs +186 -0
  259. package/dist/locale/hr.js +193 -0
  260. package/dist/locale/hr.min.js +3 -0
  261. package/dist/locale/hr.min.js.map +1 -0
  262. package/dist/locale/hr.min.mjs +3 -0
  263. package/dist/locale/hr.min.mjs.map +1 -0
  264. package/dist/locale/hr.mjs +186 -0
  265. package/dist/locale/hu.js +193 -0
  266. package/dist/locale/hu.min.js +3 -0
  267. package/dist/locale/hu.min.js.map +1 -0
  268. package/dist/locale/hu.min.mjs +3 -0
  269. package/dist/locale/hu.min.mjs.map +1 -0
  270. package/dist/locale/hu.mjs +186 -0
  271. package/dist/locale/hy-am.js +193 -0
  272. package/dist/locale/hy-am.min.js +3 -0
  273. package/dist/locale/hy-am.min.js.map +1 -0
  274. package/dist/locale/hy-am.min.mjs +3 -0
  275. package/dist/locale/hy-am.min.mjs.map +1 -0
  276. package/dist/locale/hy-am.mjs +186 -0
  277. package/dist/locale/id.js +193 -0
  278. package/dist/locale/id.min.js +3 -0
  279. package/dist/locale/id.min.js.map +1 -0
  280. package/dist/locale/id.min.mjs +3 -0
  281. package/dist/locale/id.min.mjs.map +1 -0
  282. package/dist/locale/id.mjs +186 -0
  283. package/dist/locale/it.js +193 -0
  284. package/dist/locale/it.min.js +3 -0
  285. package/dist/locale/it.min.js.map +1 -0
  286. package/dist/locale/it.min.mjs +3 -0
  287. package/dist/locale/it.min.mjs.map +1 -0
  288. package/dist/locale/it.mjs +186 -0
  289. package/dist/locale/ja.js +193 -0
  290. package/dist/locale/ja.min.js +3 -0
  291. package/dist/locale/ja.min.js.map +1 -0
  292. package/dist/locale/ja.min.mjs +3 -0
  293. package/dist/locale/ja.min.mjs.map +1 -0
  294. package/dist/locale/ja.mjs +186 -0
  295. package/dist/locale/kk.js +193 -0
  296. package/dist/locale/kk.min.js +3 -0
  297. package/dist/locale/kk.min.js.map +1 -0
  298. package/dist/locale/kk.min.mjs +3 -0
  299. package/dist/locale/kk.min.mjs.map +1 -0
  300. package/dist/locale/kk.mjs +186 -0
  301. package/dist/locale/km.js +193 -0
  302. package/dist/locale/km.min.js +3 -0
  303. package/dist/locale/km.min.js.map +1 -0
  304. package/dist/locale/km.min.mjs +3 -0
  305. package/dist/locale/km.min.mjs.map +1 -0
  306. package/dist/locale/km.mjs +186 -0
  307. package/dist/locale/ko.js +193 -0
  308. package/dist/locale/ko.min.js +3 -0
  309. package/dist/locale/ko.min.js.map +1 -0
  310. package/dist/locale/ko.min.mjs +3 -0
  311. package/dist/locale/ko.min.mjs.map +1 -0
  312. package/dist/locale/ko.mjs +186 -0
  313. package/dist/locale/ku.js +193 -0
  314. package/dist/locale/ku.min.js +3 -0
  315. package/dist/locale/ku.min.js.map +1 -0
  316. package/dist/locale/ku.min.mjs +3 -0
  317. package/dist/locale/ku.min.mjs.map +1 -0
  318. package/dist/locale/ku.mjs +186 -0
  319. package/dist/locale/ky.js +193 -0
  320. package/dist/locale/ky.min.js +3 -0
  321. package/dist/locale/ky.min.js.map +1 -0
  322. package/dist/locale/ky.min.mjs +3 -0
  323. package/dist/locale/ky.min.mjs.map +1 -0
  324. package/dist/locale/ky.mjs +186 -0
  325. package/dist/locale/lo.js +193 -0
  326. package/dist/locale/lo.min.js +3 -0
  327. package/dist/locale/lo.min.js.map +1 -0
  328. package/dist/locale/lo.min.mjs +3 -0
  329. package/dist/locale/lo.min.mjs.map +1 -0
  330. package/dist/locale/lo.mjs +186 -0
  331. package/dist/locale/lt.js +193 -0
  332. package/dist/locale/lt.min.js +3 -0
  333. package/dist/locale/lt.min.js.map +1 -0
  334. package/dist/locale/lt.min.mjs +3 -0
  335. package/dist/locale/lt.min.mjs.map +1 -0
  336. package/dist/locale/lt.mjs +186 -0
  337. package/dist/locale/lv.js +193 -0
  338. package/dist/locale/lv.min.js +3 -0
  339. package/dist/locale/lv.min.js.map +1 -0
  340. package/dist/locale/lv.min.mjs +3 -0
  341. package/dist/locale/lv.min.mjs.map +1 -0
  342. package/dist/locale/lv.mjs +186 -0
  343. package/dist/locale/mg.js +193 -0
  344. package/dist/locale/mg.min.js +3 -0
  345. package/dist/locale/mg.min.js.map +1 -0
  346. package/dist/locale/mg.min.mjs +3 -0
  347. package/dist/locale/mg.min.mjs.map +1 -0
  348. package/dist/locale/mg.mjs +186 -0
  349. package/dist/locale/mn.js +193 -0
  350. package/dist/locale/mn.min.js +3 -0
  351. package/dist/locale/mn.min.js.map +1 -0
  352. package/dist/locale/mn.min.mjs +3 -0
  353. package/dist/locale/mn.min.mjs.map +1 -0
  354. package/dist/locale/mn.mjs +186 -0
  355. package/dist/locale/ms.js +195 -0
  356. package/dist/locale/ms.min.js +3 -0
  357. package/dist/locale/ms.min.js.map +1 -0
  358. package/dist/locale/ms.min.mjs +3 -0
  359. package/dist/locale/ms.min.mjs.map +1 -0
  360. package/dist/locale/ms.mjs +188 -0
  361. package/dist/locale/my.js +193 -0
  362. package/dist/locale/my.min.js +3 -0
  363. package/dist/locale/my.min.js.map +1 -0
  364. package/dist/locale/my.min.mjs +3 -0
  365. package/dist/locale/my.min.mjs.map +1 -0
  366. package/dist/locale/my.mjs +186 -0
  367. package/dist/locale/nb-no.js +193 -0
  368. package/dist/locale/nb-no.min.js +3 -0
  369. package/dist/locale/nb-no.min.js.map +1 -0
  370. package/dist/locale/nb-no.min.mjs +3 -0
  371. package/dist/locale/nb-no.min.mjs.map +1 -0
  372. package/dist/locale/nb-no.mjs +186 -0
  373. package/dist/locale/nl.js +193 -0
  374. package/dist/locale/nl.min.js +3 -0
  375. package/dist/locale/nl.min.js.map +1 -0
  376. package/dist/locale/nl.min.mjs +3 -0
  377. package/dist/locale/nl.min.mjs.map +1 -0
  378. package/dist/locale/nl.mjs +186 -0
  379. package/dist/locale/no.js +193 -0
  380. package/dist/locale/no.min.js +3 -0
  381. package/dist/locale/no.min.js.map +1 -0
  382. package/dist/locale/no.min.mjs +3 -0
  383. package/dist/locale/no.min.mjs.map +1 -0
  384. package/dist/locale/no.mjs +186 -0
  385. package/dist/locale/pa.js +193 -0
  386. package/dist/locale/pa.min.js +3 -0
  387. package/dist/locale/pa.min.js.map +1 -0
  388. package/dist/locale/pa.min.mjs +3 -0
  389. package/dist/locale/pa.min.mjs.map +1 -0
  390. package/dist/locale/pa.mjs +186 -0
  391. package/dist/locale/pl.js +193 -0
  392. package/dist/locale/pl.min.js +3 -0
  393. package/dist/locale/pl.min.js.map +1 -0
  394. package/dist/locale/pl.min.mjs +3 -0
  395. package/dist/locale/pl.min.mjs.map +1 -0
  396. package/dist/locale/pl.mjs +186 -0
  397. package/dist/locale/pt-br.js +193 -0
  398. package/dist/locale/pt-br.min.js +3 -0
  399. package/dist/locale/pt-br.min.js.map +1 -0
  400. package/dist/locale/pt-br.min.mjs +3 -0
  401. package/dist/locale/pt-br.min.mjs.map +1 -0
  402. package/dist/locale/pt-br.mjs +186 -0
  403. package/dist/locale/pt.js +193 -0
  404. package/dist/locale/pt.min.js +3 -0
  405. package/dist/locale/pt.min.js.map +1 -0
  406. package/dist/locale/pt.min.mjs +3 -0
  407. package/dist/locale/pt.min.mjs.map +1 -0
  408. package/dist/locale/pt.mjs +186 -0
  409. package/dist/locale/ro.js +193 -0
  410. package/dist/locale/ro.min.js +3 -0
  411. package/dist/locale/ro.min.js.map +1 -0
  412. package/dist/locale/ro.min.mjs +3 -0
  413. package/dist/locale/ro.min.mjs.map +1 -0
  414. package/dist/locale/ro.mjs +186 -0
  415. package/dist/locale/ru.js +193 -0
  416. package/dist/locale/ru.min.js +3 -0
  417. package/dist/locale/ru.min.js.map +1 -0
  418. package/dist/locale/ru.min.mjs +3 -0
  419. package/dist/locale/ru.min.mjs.map +1 -0
  420. package/dist/locale/ru.mjs +186 -0
  421. package/dist/locale/sk.js +195 -0
  422. package/dist/locale/sk.min.js +3 -0
  423. package/dist/locale/sk.min.js.map +1 -0
  424. package/dist/locale/sk.min.mjs +3 -0
  425. package/dist/locale/sk.min.mjs.map +1 -0
  426. package/dist/locale/sk.mjs +188 -0
  427. package/dist/locale/sl.js +193 -0
  428. package/dist/locale/sl.min.js +3 -0
  429. package/dist/locale/sl.min.js.map +1 -0
  430. package/dist/locale/sl.min.mjs +3 -0
  431. package/dist/locale/sl.min.mjs.map +1 -0
  432. package/dist/locale/sl.mjs +186 -0
  433. package/dist/locale/sr.js +193 -0
  434. package/dist/locale/sr.min.js +3 -0
  435. package/dist/locale/sr.min.js.map +1 -0
  436. package/dist/locale/sr.min.mjs +3 -0
  437. package/dist/locale/sr.min.mjs.map +1 -0
  438. package/dist/locale/sr.mjs +186 -0
  439. package/dist/locale/sv.js +193 -0
  440. package/dist/locale/sv.min.js +3 -0
  441. package/dist/locale/sv.min.js.map +1 -0
  442. package/dist/locale/sv.min.mjs +3 -0
  443. package/dist/locale/sv.min.mjs.map +1 -0
  444. package/dist/locale/sv.mjs +186 -0
  445. package/dist/locale/sw.js +193 -0
  446. package/dist/locale/sw.min.js +3 -0
  447. package/dist/locale/sw.min.js.map +1 -0
  448. package/dist/locale/sw.min.mjs +3 -0
  449. package/dist/locale/sw.min.mjs.map +1 -0
  450. package/dist/locale/sw.mjs +186 -0
  451. package/dist/locale/ta.js +193 -0
  452. package/dist/locale/ta.min.js +3 -0
  453. package/dist/locale/ta.min.js.map +1 -0
  454. package/dist/locale/ta.min.mjs +3 -0
  455. package/dist/locale/ta.min.mjs.map +1 -0
  456. package/dist/locale/ta.mjs +186 -0
  457. package/dist/locale/te.js +193 -0
  458. package/dist/locale/te.min.js +3 -0
  459. package/dist/locale/te.min.js.map +1 -0
  460. package/dist/locale/te.min.mjs +3 -0
  461. package/dist/locale/te.min.mjs.map +1 -0
  462. package/dist/locale/te.mjs +186 -0
  463. package/dist/locale/th.js +193 -0
  464. package/dist/locale/th.min.js +3 -0
  465. package/dist/locale/th.min.js.map +1 -0
  466. package/dist/locale/th.min.mjs +3 -0
  467. package/dist/locale/th.min.mjs.map +1 -0
  468. package/dist/locale/th.mjs +186 -0
  469. package/dist/locale/tk.js +193 -0
  470. package/dist/locale/tk.min.js +3 -0
  471. package/dist/locale/tk.min.js.map +1 -0
  472. package/dist/locale/tk.min.mjs +3 -0
  473. package/dist/locale/tk.min.mjs.map +1 -0
  474. package/dist/locale/tk.mjs +186 -0
  475. package/dist/locale/tr.js +193 -0
  476. package/dist/locale/tr.min.js +3 -0
  477. package/dist/locale/tr.min.js.map +1 -0
  478. package/dist/locale/tr.min.mjs +3 -0
  479. package/dist/locale/tr.min.mjs.map +1 -0
  480. package/dist/locale/tr.mjs +186 -0
  481. package/dist/locale/ug-cn.js +193 -0
  482. package/dist/locale/ug-cn.min.js +3 -0
  483. package/dist/locale/ug-cn.min.js.map +1 -0
  484. package/dist/locale/ug-cn.min.mjs +3 -0
  485. package/dist/locale/ug-cn.min.mjs.map +1 -0
  486. package/dist/locale/ug-cn.mjs +186 -0
  487. package/dist/locale/uk.js +193 -0
  488. package/dist/locale/uk.min.js +3 -0
  489. package/dist/locale/uk.min.js.map +1 -0
  490. package/dist/locale/uk.min.mjs +3 -0
  491. package/dist/locale/uk.min.mjs.map +1 -0
  492. package/dist/locale/uk.mjs +186 -0
  493. package/dist/locale/uz-uz.js +193 -0
  494. package/dist/locale/uz-uz.min.js +3 -0
  495. package/dist/locale/uz-uz.min.js.map +1 -0
  496. package/dist/locale/uz-uz.min.mjs +3 -0
  497. package/dist/locale/uz-uz.min.mjs.map +1 -0
  498. package/dist/locale/uz-uz.mjs +186 -0
  499. package/dist/locale/vi.js +193 -0
  500. package/dist/locale/vi.min.js +3 -0
  501. package/dist/locale/vi.min.js.map +1 -0
  502. package/dist/locale/vi.min.mjs +3 -0
  503. package/dist/locale/vi.min.mjs.map +1 -0
  504. package/dist/locale/vi.mjs +186 -0
  505. package/dist/locale/zh-cn.js +193 -0
  506. package/dist/locale/zh-cn.min.js +3 -0
  507. package/dist/locale/zh-cn.min.js.map +1 -0
  508. package/dist/locale/zh-cn.min.mjs +3 -0
  509. package/dist/locale/zh-cn.min.mjs.map +1 -0
  510. package/dist/locale/zh-cn.mjs +186 -0
  511. package/dist/locale/zh-hk.js +193 -0
  512. package/dist/locale/zh-hk.min.js +3 -0
  513. package/dist/locale/zh-hk.min.js.map +1 -0
  514. package/dist/locale/zh-hk.min.mjs +3 -0
  515. package/dist/locale/zh-hk.min.mjs.map +1 -0
  516. package/dist/locale/zh-hk.mjs +186 -0
  517. package/dist/locale/zh-mo.js +193 -0
  518. package/dist/locale/zh-mo.min.js +3 -0
  519. package/dist/locale/zh-mo.min.js.map +1 -0
  520. package/dist/locale/zh-mo.min.mjs +3 -0
  521. package/dist/locale/zh-mo.min.mjs.map +1 -0
  522. package/dist/locale/zh-mo.mjs +186 -0
  523. package/dist/locale/zh-tw.js +193 -0
  524. package/dist/locale/zh-tw.min.js +3 -0
  525. package/dist/locale/zh-tw.min.js.map +1 -0
  526. package/dist/locale/zh-tw.min.mjs +3 -0
  527. package/dist/locale/zh-tw.min.mjs.map +1 -0
  528. package/dist/locale/zh-tw.mjs +186 -0
  529. package/dist/style.css +1 -1
  530. package/dist/test/demo.docx +0 -0
  531. package/dist/test/demo.et +0 -0
  532. package/dist/test/demo.ofd +0 -0
  533. package/dist/test/demo.pdf +0 -0
  534. package/dist/test/test.ofd +0 -0
  535. package/dist/test/unzip.ofd +0 -0
  536. package/dist/test/zip.ofd +0 -0
  537. package/dist/types/auto-imports.d.ts +9 -0
  538. package/dist/types/components.d.ts +55 -0
  539. package/dist/zhui-plus.cjs.js +1 -0
  540. package/dist/zhui-plus.es.js +2 -0
  541. package/dist/zhui.svg +1 -0
  542. package/package.json +90 -4
  543. package/packages/components/AI/index.ts +10 -0
  544. package/packages/components/AI/src/zh-aiChat.vue +841 -0
  545. package/packages/components/badge/__tests__/badge.test.ts +38 -0
  546. package/packages/components/badge/index.ts +10 -0
  547. package/packages/components/badge/src/zh-badge.vue +86 -0
  548. package/packages/components/badge/style.scss +1 -0
  549. package/packages/components/button/__tests__/button.test.ts +94 -0
  550. package/packages/components/button/__tests__/buttonGroup.test.ts +46 -0
  551. package/packages/components/button/index.ts +11 -0
  552. package/packages/components/button/src/zh-button-group.vue +50 -0
  553. package/packages/components/button/src/zh-button.vue +152 -0
  554. package/packages/components/button/style/index.css +140 -0
  555. package/packages/components/charts/geo.json +11147 -0
  556. package/packages/components/charts/index.ts +35 -0
  557. package/packages/components/charts/src/zh-barChart.vue +97 -0
  558. package/packages/components/charts/src/zh-baseChart.vue +196 -0
  559. package/packages/components/charts/src/zh-lineBarChart.vue +113 -0
  560. package/packages/components/charts/src/zh-lineChart.vue +93 -0
  561. package/packages/components/charts/src/zh-mapChart.vue +214 -0
  562. package/packages/components/charts/src/zh-pictorialBar.vue +72 -0
  563. package/packages/components/charts/src/zh-pieChart.vue +67 -0
  564. package/packages/components/charts/src/zh-radarChart.vue +131 -0
  565. package/packages/components/charts/src/zh-scatterChart.vue +152 -0
  566. package/packages/components/chat/index.ts +10 -0
  567. package/packages/components/chat/src/zh-chat.vue +889 -0
  568. package/packages/components/container/index.ts +18 -0
  569. package/packages/components/container/src/zh-aside.vue +34 -0
  570. package/packages/components/container/src/zh-container.vue +45 -0
  571. package/packages/components/container/src/zh-footer.vue +33 -0
  572. package/packages/components/container/src/zh-header.vue +34 -0
  573. package/packages/components/container/src/zh-main.vue +26 -0
  574. package/packages/components/directive/focus.ts +14 -0
  575. package/packages/components/directive/idCard.ts +12 -0
  576. package/packages/components/directive/index.ts +19 -0
  577. package/packages/components/directive/number.ts +10 -0
  578. package/packages/components/directive/permission.ts +57 -0
  579. package/packages/components/directive/phone.ts +12 -0
  580. package/packages/components/drawer/index.ts +10 -0
  581. package/packages/components/drawer/src/zh-drawer.vue +78 -0
  582. package/packages/components/drawer/style/animation.scss +35 -0
  583. package/packages/components/drawer/style/index.scss +52 -0
  584. package/packages/components/drawer/style/media.scss +6 -0
  585. package/packages/components/fileViewer/index.ts +9 -0
  586. package/packages/components/fileViewer/src/liteofd/annotLayer.ts +203 -0
  587. package/packages/components/fileViewer/src/liteofd/asn1js/LICENSE +15 -0
  588. package/packages/components/fileViewer/src/liteofd/asn1js/README.md +108 -0
  589. package/packages/components/fileViewer/src/liteofd/asn1js/asn1.js +627 -0
  590. package/packages/components/fileViewer/src/liteofd/asn1js/base64.js +103 -0
  591. package/packages/components/fileViewer/src/liteofd/asn1js/defs.js +138 -0
  592. package/packages/components/fileViewer/src/liteofd/asn1js/dumpASN1.js +79 -0
  593. package/packages/components/fileViewer/src/liteofd/asn1js/hex.js +69 -0
  594. package/packages/components/fileViewer/src/liteofd/asn1js/int10.js +106 -0
  595. package/packages/components/fileViewer/src/liteofd/asn1js/oids.js +2725 -0
  596. package/packages/components/fileViewer/src/liteofd/asn1js/rfcdef.js +10377 -0
  597. package/packages/components/fileViewer/src/liteofd/attrType.ts +173 -0
  598. package/packages/components/fileViewer/src/liteofd/contentLayer.ts +203 -0
  599. package/packages/components/fileViewer/src/liteofd/elements/AnnotationPathSvg.ts +122 -0
  600. package/packages/components/fileViewer/src/liteofd/elements/BaseSvg.ts +6 -0
  601. package/packages/components/fileViewer/src/liteofd/elements/ImageSvg.ts +212 -0
  602. package/packages/components/fileViewer/src/liteofd/elements/PathSvg.ts +460 -0
  603. package/packages/components/fileViewer/src/liteofd/elements/SignatureElement.ts +231 -0
  604. package/packages/components/fileViewer/src/liteofd/elements/TextSvg.ts +235 -0
  605. package/packages/components/fileViewer/src/liteofd/elements/ofdAnnotationElement.ts +133 -0
  606. package/packages/components/fileViewer/src/liteofd/elements/ofdPageContainer.ts +183 -0
  607. package/packages/components/fileViewer/src/liteofd/elements/ofdPageRender.ts +71 -0
  608. package/packages/components/fileViewer/src/liteofd/elements/signObject.json +10084 -0
  609. package/packages/components/fileViewer/src/liteofd/elements/signature.json +381 -0
  610. package/packages/components/fileViewer/src/liteofd/font/arithmetic_decoder.js +182 -0
  611. package/packages/components/fileViewer/src/liteofd/font/ascii_85_stream.js +98 -0
  612. package/packages/components/fileViewer/src/liteofd/font/ascii_hex_stream.js +79 -0
  613. package/packages/components/fileViewer/src/liteofd/font/base_stream.js +110 -0
  614. package/packages/components/fileViewer/src/liteofd/font/bidi.js +440 -0
  615. package/packages/components/fileViewer/src/liteofd/font/binary_cmap.js +326 -0
  616. package/packages/components/fileViewer/src/liteofd/font/calibri_factors.js +309 -0
  617. package/packages/components/fileViewer/src/liteofd/font/ccitt.js +1059 -0
  618. package/packages/components/fileViewer/src/liteofd/font/ccitt_stream.js +60 -0
  619. package/packages/components/fileViewer/src/liteofd/font/cff_font.js +139 -0
  620. package/packages/components/fileViewer/src/liteofd/font/cff_parser.js +1940 -0
  621. package/packages/components/fileViewer/src/liteofd/font/charsets.js +119 -0
  622. package/packages/components/fileViewer/src/liteofd/font/chunked_stream.js +94 -0
  623. package/packages/components/fileViewer/src/liteofd/font/cmap.js +726 -0
  624. package/packages/components/fileViewer/src/liteofd/font/colorspace.js +1336 -0
  625. package/packages/components/fileViewer/src/liteofd/font/core_utils.js +636 -0
  626. package/packages/components/fileViewer/src/liteofd/font/decode_stream.js +177 -0
  627. package/packages/components/fileViewer/src/liteofd/font/differences.js +906 -0
  628. package/packages/components/fileViewer/src/liteofd/font/encodings.js +301 -0
  629. package/packages/components/fileViewer/src/liteofd/font/flate_stream.js +413 -0
  630. package/packages/components/fileViewer/src/liteofd/font/font_loader.js +455 -0
  631. package/packages/components/fileViewer/src/liteofd/font/font_renderer.js +900 -0
  632. package/packages/components/fileViewer/src/liteofd/font/font_substitutions.js +553 -0
  633. package/packages/components/fileViewer/src/liteofd/font/fonts copy.js +3391 -0
  634. package/packages/components/fileViewer/src/liteofd/font/fonts.js +3585 -0
  635. package/packages/components/fileViewer/src/liteofd/font/fonts_utils.js +178 -0
  636. package/packages/components/fileViewer/src/liteofd/font/function.js +1241 -0
  637. package/packages/components/fileViewer/src/liteofd/font/glyf.js +701 -0
  638. package/packages/components/fileViewer/src/liteofd/font/glyphlist.js +4557 -0
  639. package/packages/components/fileViewer/src/liteofd/font/helvetica_factors.js +352 -0
  640. package/packages/components/fileViewer/src/liteofd/font/image.js +986 -0
  641. package/packages/components/fileViewer/src/liteofd/font/image_resizer.js +398 -0
  642. package/packages/components/fileViewer/src/liteofd/font/image_utils.js +286 -0
  643. package/packages/components/fileViewer/src/liteofd/font/jbig2_stream.js +74 -0
  644. package/packages/components/fileViewer/src/liteofd/font/jpeg_stream.js +106 -0
  645. package/packages/components/fileViewer/src/liteofd/font/jpg.js +1590 -0
  646. package/packages/components/fileViewer/src/liteofd/font/jpx.js +2349 -0
  647. package/packages/components/fileViewer/src/liteofd/font/jpx_stream.js +87 -0
  648. package/packages/components/fileViewer/src/liteofd/font/liberationsans_widths.js +429 -0
  649. package/packages/components/fileViewer/src/liteofd/font/lzw_stream.js +150 -0
  650. package/packages/components/fileViewer/src/liteofd/font/metrics.d.ts +1 -0
  651. package/packages/components/fileViewer/src/liteofd/font/metrics.js +3057 -0
  652. package/packages/components/fileViewer/src/liteofd/font/murmurhash3.js +135 -0
  653. package/packages/components/fileViewer/src/liteofd/font/myriadpro_factors.js +291 -0
  654. package/packages/components/fileViewer/src/liteofd/font/ofd_stream.js +402 -0
  655. package/packages/components/fileViewer/src/liteofd/font/opentype_file_builder.js +154 -0
  656. package/packages/components/fileViewer/src/liteofd/font/parser.js +1409 -0
  657. package/packages/components/fileViewer/src/liteofd/font/pattern.js +1005 -0
  658. package/packages/components/fileViewer/src/liteofd/font/predictor_stream.js +234 -0
  659. package/packages/components/fileViewer/src/liteofd/font/primitives.js +354 -0
  660. package/packages/components/fileViewer/src/liteofd/font/properties.json +2110 -0
  661. package/packages/components/fileViewer/src/liteofd/font/ps_parser.js +268 -0
  662. package/packages/components/fileViewer/src/liteofd/font/run_length_stream.js +61 -0
  663. package/packages/components/fileViewer/src/liteofd/font/segoeui_factors.js +308 -0
  664. package/packages/components/fileViewer/src/liteofd/font/standard_fonts.js +915 -0
  665. package/packages/components/fileViewer/src/liteofd/font/stream.js +99 -0
  666. package/packages/components/fileViewer/src/liteofd/font/to_unicode_map.js +111 -0
  667. package/packages/components/fileViewer/src/liteofd/font/translatedFont.js +3125 -0
  668. package/packages/components/fileViewer/src/liteofd/font/type1_font.js +443 -0
  669. package/packages/components/fileViewer/src/liteofd/font/type1_parser.js +804 -0
  670. package/packages/components/fileViewer/src/liteofd/font/unicode.js +274 -0
  671. package/packages/components/fileViewer/src/liteofd/font/util.js +1159 -0
  672. package/packages/components/fileViewer/src/liteofd/font/xfa_fonts.js +296 -0
  673. package/packages/components/fileViewer/src/liteofd/jbig2/arithmetic_decoder.js +183 -0
  674. package/packages/components/fileViewer/src/liteofd/jbig2/ccitt.js +1070 -0
  675. package/packages/components/fileViewer/src/liteofd/jbig2/core_utils.js +180 -0
  676. package/packages/components/fileViewer/src/liteofd/jbig2/is_node.js +27 -0
  677. package/packages/components/fileViewer/src/liteofd/jbig2/jbig2.js +2589 -0
  678. package/packages/components/fileViewer/src/liteofd/jbig2/jbig2_stream.js +81 -0
  679. package/packages/components/fileViewer/src/liteofd/jbig2/primitives.js +371 -0
  680. package/packages/components/fileViewer/src/liteofd/jbig2/stream.js +1348 -0
  681. package/packages/components/fileViewer/src/liteofd/jbig2/util.js +970 -0
  682. package/packages/components/fileViewer/src/liteofd/layer.ts +12 -0
  683. package/packages/components/fileViewer/src/liteofd/liteOfd.ts +185 -0
  684. package/packages/components/fileViewer/src/liteofd/ofdActions.ts +29 -0
  685. package/packages/components/fileViewer/src/liteofd/ofdCanvas.ts +19 -0
  686. package/packages/components/fileViewer/src/liteofd/ofdData.ts +28 -0
  687. package/packages/components/fileViewer/src/liteofd/ofdDocument.ts +109 -0
  688. package/packages/components/fileViewer/src/liteofd/ofdFont.ts +425 -0
  689. package/packages/components/fileViewer/src/liteofd/ofdRender.ts +259 -0
  690. package/packages/components/fileViewer/src/liteofd/ofdWriter.ts +142 -0
  691. package/packages/components/fileViewer/src/liteofd/ofdtools.ts +43 -0
  692. package/packages/components/fileViewer/src/liteofd/parser.ts +499 -0
  693. package/packages/components/fileViewer/src/liteofd/promiseCapability.ts +47 -0
  694. package/packages/components/fileViewer/src/liteofd/utils/commonFont.ts +15 -0
  695. package/packages/components/fileViewer/src/liteofd/utils/elementUtils.ts +362 -0
  696. package/packages/components/fileViewer/src/liteofd/utils/jsonToXml.ts +95 -0
  697. package/packages/components/fileViewer/src/liteofd/utils/ofdUtils.ts +301 -0
  698. package/packages/components/fileViewer/src/liteofd/utils/signatureUtil.ts +246 -0
  699. package/packages/components/fileViewer/src/liteofd/utils/sm3.ts +235 -0
  700. package/packages/components/fileViewer/src/liteofd/utils/utils.ts +489 -0
  701. package/packages/components/fileViewer/src/liteofd/utils/verify_signature_util.ts +41 -0
  702. package/packages/components/fileViewer/src/ofd/CircleLoading.vue +64 -0
  703. package/packages/components/fileViewer/src/ofd/OfdPreview.vue +456 -0
  704. package/packages/components/fileViewer/src/ofd/OfdViewer.vue +211 -0
  705. package/packages/components/fileViewer/src/ofd/PageIndicator.vue +88 -0
  706. package/packages/components/fileViewer/src/ofd/RatioIndicator.vue +271 -0
  707. package/packages/components/fileViewer/src/ofd/ToolTip.vue +81 -0
  708. package/packages/components/fileViewer/src/zh-fileViewer.vue +426 -0
  709. package/packages/components/form/index.ts +11 -0
  710. package/packages/components/form/src/zh-form-item.vue +299 -0
  711. package/packages/components/form/src/zh-form.vue +90 -0
  712. package/packages/components/hideNumber/index.ts +9 -0
  713. package/packages/components/hideNumber/src/zh-hide-number.vue +37 -0
  714. package/packages/components/icon/index.ts +10 -0
  715. package/packages/components/icon/src/zh-icon.vue +32 -0
  716. package/packages/components/image/index.ts +9 -0
  717. package/packages/components/image/src/zh-image.vue +245 -0
  718. package/packages/components/index.ts +112 -0
  719. package/packages/components/input/index.ts +10 -0
  720. package/packages/components/input/src/input.com.ts +30 -0
  721. package/packages/components/input/src/input.type.ts +1 -0
  722. package/packages/components/input/src/zh-input.vue +92 -0
  723. package/packages/components/input/style/index.scss +30 -0
  724. package/packages/components/layout/index.ts +12 -0
  725. package/packages/components/layout/src/zh-col.tsx +81 -0
  726. package/packages/components/layout/src/zh-row.tsx +58 -0
  727. package/packages/components/layout/style/row.scss +6 -0
  728. package/packages/components/map/index.ts +18 -0
  729. package/packages/components/map/src/zh-amap.vue +999 -0
  730. package/packages/components/map/src/zh-bmap.vue +1578 -0
  731. package/packages/components/map/src/zh-omap.vue +1522 -0
  732. package/packages/components/map/src/zh-smap.vue +1555 -0
  733. package/packages/components/map/src/zh-tmap.vue +1058 -0
  734. package/packages/components/message/index.ts +8 -0
  735. package/packages/components/message/src/data.com.ts +61 -0
  736. package/packages/components/message/src/message-icon.vue +60 -0
  737. package/packages/components/message/src/message.ts +89 -0
  738. package/packages/components/message/src/message.type.ts +40 -0
  739. package/packages/components/message/src/zh-message.vue +133 -0
  740. package/packages/components/message-box/index.ts +12 -0
  741. package/packages/components/message-box/src/messageBox.help.ts +40 -0
  742. package/packages/components/message-box/src/messageBox.ts +126 -0
  743. package/packages/components/message-box/src/zh-message-box.vue +94 -0
  744. package/packages/components/message-box/style/index.css +29 -0
  745. package/packages/components/noData/index.ts +9 -0
  746. package/packages/components/noData/src/zh-no-data.vue +42 -0
  747. package/packages/components/operationColumn/index.ts +9 -0
  748. package/packages/components/operationColumn/src/zh-operationColumn.vue +113 -0
  749. package/packages/components/provider/index.ts +11 -0
  750. package/packages/components/provider/src/zh-authControl.vue +28 -0
  751. package/packages/components/provider/src/zh-authProvider.vue +36 -0
  752. package/packages/components/qrcode/index.ts +9 -0
  753. package/packages/components/qrcode/src/zh-qrcode.vue +271 -0
  754. package/packages/components/radio/index.ts +10 -0
  755. package/packages/components/radio/src/zh-radio.vue +86 -0
  756. package/packages/components/searchForm/index.ts +9 -0
  757. package/packages/components/searchForm/src/zh-search-form.vue +340 -0
  758. package/packages/components/signature/index.ts +10 -0
  759. package/packages/components/signature/src/zh-signature.vue +355 -0
  760. package/packages/components/switch/index.ts +10 -0
  761. package/packages/components/switch/src/zh-switch.vue +162 -0
  762. package/packages/components/table/index.ts +10 -0
  763. package/packages/components/table/src/types.ts +62 -0
  764. package/packages/components/table/src/zh-table.vue +220 -0
  765. package/packages/components/upload/index.ts +15 -0
  766. package/packages/components/upload/src/zh-cupload.vue +147 -0
  767. package/packages/components/upload/src/zh-upload.vue +258 -0
  768. package/packages/components/upload/src/zh-uploadCard.vue +176 -0
  769. package/packages/components/upload/src/zh-uploadDialog.vue +165 -0
  770. package/packages/components/videoPlayer/index.ts +12 -0
  771. package/packages/components/videoPlayer/src/PlayerManager.js +706 -0
  772. package/packages/components/videoPlayer/src/api.js +354 -0
  773. package/packages/components/videoPlayer/src/errorHandler.ts +39 -0
  774. package/packages/components/videoPlayer/src/resourceLoader.ts +68 -0
  775. package/packages/components/videoPlayer/src/useDahuaPlayer.ts +242 -0
  776. package/packages/components/videoPlayer/src/zh-dhPlayer.vue +119 -0
  777. package/packages/components/videoPlayer/src/zh-hlsPlayer.vue +575 -0
  778. package/packages/resolver/index.ts +324 -0
  779. package/packages/styles/_element.scss +324 -0
  780. package/packages/styles/_variable.scss +136 -0
  781. package/packages/styles/index.scss +3 -0
  782. package/packages/tokens/tokens.ts +2 -0
  783. package/packages/types/form.ts +205 -0
  784. package/packages/types/index.ts +4 -0
  785. package/packages/types/player.ts +80 -0
  786. package/packages/types/provider.ts +4 -0
  787. package/packages/types/searchForm.ts +24 -0
  788. package/packages/utils/common/__tests__/common.test.ts +12 -0
  789. package/packages/utils/common/common.ts +68 -0
  790. package/packages/utils/constant.ts +12 -0
  791. package/packages/utils/copy.ts +20 -0
  792. package/packages/utils/data.ts +62 -0
  793. package/packages/utils/echarts/echarts.ts +34 -0
  794. package/packages/utils/event.ts +37 -0
  795. package/packages/utils/hooks/__tests__/hooks.test.ts +24 -0
  796. package/packages/utils/hooks/data.ts +100 -0
  797. package/packages/utils/hooks/hooks.util.ts +39 -0
  798. package/packages/utils/hooks/index.ts +1 -0
  799. package/packages/utils/hooks/useBreakpoint.ts +89 -0
  800. package/packages/utils/hooks/useEcharts.ts +56 -0
  801. package/packages/utils/hooks/useEventListener.ts +57 -0
  802. package/packages/utils/hooks/useLegendProcessor.ts +92 -0
  803. package/packages/utils/hooks/usePermission.ts +22 -0
  804. package/packages/utils/hooks/useTimeout.ts +45 -0
  805. package/packages/utils/is.ts +79 -0
  806. package/packages/utils/utils.ts +136 -0
  807. package/packages/utils/vue/util-modal.vue +61 -0
  808. package/types/auto-imports.d.ts +9 -0
  809. package/types/component.d.ts +6 -0
  810. package/types/components.d.ts +131 -0
  811. package/types/defaults.d.ts +5 -0
  812. package/types/el-components.d.ts +23 -0
  813. package/types/global.d.ts +130 -0
  814. package/types/index.d.ts +11 -0
  815. package/types/zh-components.d.ts +23 -0
  816. package/types/zhui.d.ts +76 -0
  817. package/.idea/workspace.xml +0 -72
  818. package/README.md +0 -1
  819. package/dist/zh-ui.es.js +0 -56706
  820. package/dist/zh-ui.umd.js +0 -67
@@ -0,0 +1,1159 @@
1
+ /* Copyright 2012 Mozilla Foundation
2
+ *
3
+ * Licensed under the Apache License, Version 2.0 (the "License");
4
+ * you may not use this file except in compliance with the License.
5
+ * You may obtain a copy of the License at
6
+ *
7
+ * http://www.apache.org/licenses/LICENSE-2.0
8
+ *
9
+ * Unless required by applicable law or agreed to in writing, software
10
+ * distributed under the License is distributed on an "AS IS" BASIS,
11
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ * See the License for the specific language governing permissions and
13
+ * limitations under the License.
14
+ */
15
+ /* globals process */
16
+
17
+ // NW.js / Electron is a browser context, but copies some Node.js objects; see
18
+ // http://docs.nwjs.io/en/latest/For%20Users/Advanced/JavaScript%20Contexts%20in%20NW.js/#access-nodejs-and-nwjs-api-in-browser-context
19
+ // https://www.electronjs.org/docs/api/process#processversionselectron-readonly
20
+ // https://www.electronjs.org/docs/api/process#processtype-readonly
21
+
22
+ const IDENTITY_MATRIX = [1, 0, 0, 1, 0, 0];
23
+ const FONT_IDENTITY_MATRIX = [0.001, 0, 0, 0.001, 0, 0];
24
+
25
+ const MAX_IMAGE_SIZE_TO_CACHE = 10e6; // Ten megabytes.
26
+ const isNodeJS =
27
+ typeof process === "object" &&
28
+ process + "" === "[object process]" &&
29
+ !process.versions.nw &&
30
+ !(process.versions.electron && process.type && process.type !== "browser");
31
+
32
+ // Represent the percentage of the height of a single-line field over
33
+ // the font size. Acrobat seems to use this value.
34
+ const LINE_FACTOR = 1.35;
35
+ const LINE_DESCENT_FACTOR = 0.35;
36
+ const BASELINE_FACTOR = LINE_DESCENT_FACTOR / LINE_FACTOR;
37
+
38
+ /**
39
+ * Refer to the `WorkerTransport.getRenderingIntent`-method in the API, to see
40
+ * how these flags are being used:
41
+ * - ANY, DISPLAY, and PRINT are the normal rendering intents, note the
42
+ * `PDFPageProxy.{render, getOperatorList, getAnnotations}`-methods.
43
+ * - ANNOTATIONS_FORMS, ANNOTATIONS_STORAGE, ANNOTATIONS_DISABLE control which
44
+ * annotations are rendered onto the canvas (i.e. by being included in the
45
+ * operatorList), note the `PDFPageProxy.{render, getOperatorList}`-methods
46
+ * and their `annotationMode`-option.
47
+ * - OPLIST is used with the `PDFPageProxy.getOperatorList`-method, note the
48
+ * `OperatorList`-constructor (on the worker-thread).
49
+ */
50
+ const RenderingIntentFlag = {
51
+ ANY: 0x01,
52
+ DISPLAY: 0x02,
53
+ PRINT: 0x04,
54
+ SAVE: 0x08,
55
+ ANNOTATIONS_FORMS: 0x10,
56
+ ANNOTATIONS_STORAGE: 0x20,
57
+ ANNOTATIONS_DISABLE: 0x40,
58
+ OPLIST: 0x100,
59
+ };
60
+
61
+ const AnnotationMode = {
62
+ DISABLE: 0,
63
+ ENABLE: 1,
64
+ ENABLE_FORMS: 2,
65
+ ENABLE_STORAGE: 3,
66
+ };
67
+
68
+ const AnnotationEditorPrefix = "pdfjs_internal_editor_";
69
+
70
+ const AnnotationEditorType = {
71
+ DISABLE: -1,
72
+ NONE: 0,
73
+ FREETEXT: 3,
74
+ HIGHLIGHT: 9,
75
+ STAMP: 13,
76
+ INK: 15,
77
+ };
78
+
79
+ const AnnotationEditorParamsType = {
80
+ RESIZE: 1,
81
+ CREATE: 2,
82
+ FREETEXT_SIZE: 11,
83
+ FREETEXT_COLOR: 12,
84
+ FREETEXT_OPACITY: 13,
85
+ INK_COLOR: 21,
86
+ INK_THICKNESS: 22,
87
+ INK_OPACITY: 23,
88
+ HIGHLIGHT_COLOR: 31,
89
+ HIGHLIGHT_DEFAULT_COLOR: 32,
90
+ HIGHLIGHT_THICKNESS: 33,
91
+ };
92
+
93
+ // Permission flags from Table 22, Section 7.6.3.2 of the PDF specification.
94
+ const PermissionFlag = {
95
+ PRINT: 0x04,
96
+ MODIFY_CONTENTS: 0x08,
97
+ COPY: 0x10,
98
+ MODIFY_ANNOTATIONS: 0x20,
99
+ FILL_INTERACTIVE_FORMS: 0x100,
100
+ COPY_FOR_ACCESSIBILITY: 0x200,
101
+ ASSEMBLE: 0x400,
102
+ PRINT_HIGH_QUALITY: 0x800,
103
+ };
104
+
105
+ const TextRenderingMode = {
106
+ FILL: 0,
107
+ STROKE: 1,
108
+ FILL_STROKE: 2,
109
+ INVISIBLE: 3,
110
+ FILL_ADD_TO_PATH: 4,
111
+ STROKE_ADD_TO_PATH: 5,
112
+ FILL_STROKE_ADD_TO_PATH: 6,
113
+ ADD_TO_PATH: 7,
114
+ FILL_STROKE_MASK: 3,
115
+ ADD_TO_PATH_FLAG: 4,
116
+ };
117
+
118
+ const ImageKind = {
119
+ GRAYSCALE_1BPP: 1,
120
+ RGB_24BPP: 2,
121
+ RGBA_32BPP: 3,
122
+ };
123
+
124
+ const AnnotationType = {
125
+ TEXT: 1,
126
+ LINK: 2,
127
+ FREETEXT: 3,
128
+ LINE: 4,
129
+ SQUARE: 5,
130
+ CIRCLE: 6,
131
+ POLYGON: 7,
132
+ POLYLINE: 8,
133
+ HIGHLIGHT: 9,
134
+ UNDERLINE: 10,
135
+ SQUIGGLY: 11,
136
+ STRIKEOUT: 12,
137
+ STAMP: 13,
138
+ CARET: 14,
139
+ INK: 15,
140
+ POPUP: 16,
141
+ FILEATTACHMENT: 17,
142
+ SOUND: 18,
143
+ MOVIE: 19,
144
+ WIDGET: 20,
145
+ SCREEN: 21,
146
+ PRINTERMARK: 22,
147
+ TRAPNET: 23,
148
+ WATERMARK: 24,
149
+ THREED: 25,
150
+ REDACT: 26,
151
+ };
152
+
153
+ const AnnotationReplyType = {
154
+ GROUP: "Group",
155
+ REPLY: "R",
156
+ };
157
+
158
+ const AnnotationFlag = {
159
+ INVISIBLE: 0x01,
160
+ HIDDEN: 0x02,
161
+ PRINT: 0x04,
162
+ NOZOOM: 0x08,
163
+ NOROTATE: 0x10,
164
+ NOVIEW: 0x20,
165
+ READONLY: 0x40,
166
+ LOCKED: 0x80,
167
+ TOGGLENOVIEW: 0x100,
168
+ LOCKEDCONTENTS: 0x200,
169
+ };
170
+
171
+ const AnnotationFieldFlag = {
172
+ READONLY: 0x0000001,
173
+ REQUIRED: 0x0000002,
174
+ NOEXPORT: 0x0000004,
175
+ MULTILINE: 0x0001000,
176
+ PASSWORD: 0x0002000,
177
+ NOTOGGLETOOFF: 0x0004000,
178
+ RADIO: 0x0008000,
179
+ PUSHBUTTON: 0x0010000,
180
+ COMBO: 0x0020000,
181
+ EDIT: 0x0040000,
182
+ SORT: 0x0080000,
183
+ FILESELECT: 0x0100000,
184
+ MULTISELECT: 0x0200000,
185
+ DONOTSPELLCHECK: 0x0400000,
186
+ DONOTSCROLL: 0x0800000,
187
+ COMB: 0x1000000,
188
+ RICHTEXT: 0x2000000,
189
+ RADIOSINUNISON: 0x2000000,
190
+ COMMITONSELCHANGE: 0x4000000,
191
+ };
192
+
193
+ const AnnotationBorderStyleType = {
194
+ SOLID: 1,
195
+ DASHED: 2,
196
+ BEVELED: 3,
197
+ INSET: 4,
198
+ UNDERLINE: 5,
199
+ };
200
+
201
+ const AnnotationActionEventType = {
202
+ E: "Mouse Enter",
203
+ X: "Mouse Exit",
204
+ D: "Mouse Down",
205
+ U: "Mouse Up",
206
+ Fo: "Focus",
207
+ Bl: "Blur",
208
+ PO: "PageOpen",
209
+ PC: "PageClose",
210
+ PV: "PageVisible",
211
+ PI: "PageInvisible",
212
+ K: "Keystroke",
213
+ F: "Format",
214
+ V: "Validate",
215
+ C: "Calculate",
216
+ };
217
+
218
+ const DocumentActionEventType = {
219
+ WC: "WillClose",
220
+ WS: "WillSave",
221
+ DS: "DidSave",
222
+ WP: "WillPrint",
223
+ DP: "DidPrint",
224
+ };
225
+
226
+ const PageActionEventType = {
227
+ O: "PageOpen",
228
+ C: "PageClose",
229
+ };
230
+
231
+ const VerbosityLevel = {
232
+ ERRORS: 0,
233
+ WARNINGS: 1,
234
+ INFOS: 5,
235
+ };
236
+
237
+ const CMapCompressionType = {
238
+ NONE: 0,
239
+ BINARY: 1,
240
+ };
241
+
242
+ // All the possible operations for an operator list.
243
+ const OPS = {
244
+ // Intentionally start from 1 so it is easy to spot bad operators that will be
245
+ // 0's.
246
+ // PLEASE NOTE: We purposely keep any removed operators commented out, since
247
+ // re-numbering the list would risk breaking third-party users.
248
+ dependency: 1,
249
+ setLineWidth: 2,
250
+ setLineCap: 3,
251
+ setLineJoin: 4,
252
+ setMiterLimit: 5,
253
+ setDash: 6,
254
+ setRenderingIntent: 7,
255
+ setFlatness: 8,
256
+ setGState: 9,
257
+ save: 10,
258
+ restore: 11,
259
+ transform: 12,
260
+ moveTo: 13,
261
+ lineTo: 14,
262
+ curveTo: 15,
263
+ curveTo2: 16,
264
+ curveTo3: 17,
265
+ closePath: 18,
266
+ rectangle: 19,
267
+ stroke: 20,
268
+ closeStroke: 21,
269
+ fill: 22,
270
+ eoFill: 23,
271
+ fillStroke: 24,
272
+ eoFillStroke: 25,
273
+ closeFillStroke: 26,
274
+ closeEOFillStroke: 27,
275
+ endPath: 28,
276
+ clip: 29,
277
+ eoClip: 30,
278
+ beginText: 31,
279
+ endText: 32,
280
+ setCharSpacing: 33,
281
+ setWordSpacing: 34,
282
+ setHScale: 35,
283
+ setLeading: 36,
284
+ setFont: 37,
285
+ setTextRenderingMode: 38,
286
+ setTextRise: 39,
287
+ moveText: 40,
288
+ setLeadingMoveText: 41,
289
+ setTextMatrix: 42,
290
+ nextLine: 43,
291
+ showText: 44,
292
+ showSpacedText: 45,
293
+ nextLineShowText: 46,
294
+ nextLineSetSpacingShowText: 47,
295
+ setCharWidth: 48,
296
+ setCharWidthAndBounds: 49,
297
+ setStrokeColorSpace: 50,
298
+ setFillColorSpace: 51,
299
+ setStrokeColor: 52,
300
+ setStrokeColorN: 53,
301
+ setFillColor: 54,
302
+ setFillColorN: 55,
303
+ setStrokeGray: 56,
304
+ setFillGray: 57,
305
+ setStrokeRGBColor: 58,
306
+ setFillRGBColor: 59,
307
+ setStrokeCMYKColor: 60,
308
+ setFillCMYKColor: 61,
309
+ shadingFill: 62,
310
+ beginInlineImage: 63,
311
+ beginImageData: 64,
312
+ endInlineImage: 65,
313
+ paintXObject: 66,
314
+ markPoint: 67,
315
+ markPointProps: 68,
316
+ beginMarkedContent: 69,
317
+ beginMarkedContentProps: 70,
318
+ endMarkedContent: 71,
319
+ beginCompat: 72,
320
+ endCompat: 73,
321
+ paintFormXObjectBegin: 74,
322
+ paintFormXObjectEnd: 75,
323
+ beginGroup: 76,
324
+ endGroup: 77,
325
+ // beginAnnotations: 78,
326
+ // endAnnotations: 79,
327
+ beginAnnotation: 80,
328
+ endAnnotation: 81,
329
+ // paintJpegXObject: 82,
330
+ paintImageMaskXObject: 83,
331
+ paintImageMaskXObjectGroup: 84,
332
+ paintImageXObject: 85,
333
+ paintInlineImageXObject: 86,
334
+ paintInlineImageXObjectGroup: 87,
335
+ paintImageXObjectRepeat: 88,
336
+ paintImageMaskXObjectRepeat: 89,
337
+ paintSolidColorImageMask: 90,
338
+ constructPath: 91,
339
+ };
340
+
341
+ const PasswordResponses = {
342
+ NEED_PASSWORD: 1,
343
+ INCORRECT_PASSWORD: 2,
344
+ };
345
+
346
+ let verbosity = VerbosityLevel.WARNINGS;
347
+
348
+ function setVerbosityLevel(level) {
349
+ if (Number.isInteger(level)) {
350
+ verbosity = level;
351
+ }
352
+ }
353
+
354
+ function getVerbosityLevel() {
355
+ return verbosity;
356
+ }
357
+
358
+ // A notice for devs. These are good for things that are helpful to devs, such
359
+ // as warning that Workers were disabled, which is important to devs but not
360
+ // end users.
361
+ function info(msg) {
362
+ if (verbosity >= VerbosityLevel.INFOS) {
363
+ console.log(`Info: ${msg}`);
364
+ }
365
+ }
366
+
367
+ // Non-fatal warnings.
368
+ function warn(msg) {
369
+ if (verbosity >= VerbosityLevel.WARNINGS) {
370
+ console.log(`Warning: ${msg}`);
371
+ }
372
+ }
373
+
374
+ function unreachable(msg) {
375
+ throw new Error(msg);
376
+ }
377
+
378
+ function assert(cond, msg) {
379
+ if (!cond) {
380
+ unreachable(msg);
381
+ }
382
+ }
383
+
384
+ // Checks if URLs use one of the allowed protocols, e.g. to avoid XSS.
385
+ function _isValidProtocol(url) {
386
+ switch (url?.protocol) {
387
+ case "http:":
388
+ case "https:":
389
+ case "ftp:":
390
+ case "mailto:":
391
+ case "tel:":
392
+ return true;
393
+ default:
394
+ return false;
395
+ }
396
+ }
397
+
398
+ /**
399
+ * Attempts to create a valid absolute URL.
400
+ *
401
+ * @param {URL|string} url - An absolute, or relative, URL.
402
+ * @param {URL|string} [baseUrl] - An absolute URL.
403
+ * @param {Object} [options]
404
+ * @returns Either a valid {URL}, or `null` otherwise.
405
+ */
406
+ function createValidAbsoluteUrl(url, baseUrl = null, options = null) {
407
+ if (!url) {
408
+ return null;
409
+ }
410
+ try {
411
+ if (options && typeof url === "string") {
412
+ // Let URLs beginning with "www." default to using the "http://" protocol.
413
+ if (options.addDefaultProtocol && url.startsWith("www.")) {
414
+ const dots = url.match(/\./g);
415
+ // Avoid accidentally matching a *relative* URL pointing to a file named
416
+ // e.g. "www.pdf" or similar.
417
+ if (dots?.length >= 2) {
418
+ url = `http://${url}`;
419
+ }
420
+ }
421
+
422
+ // According to ISO 32000-1:2008, section 12.6.4.7, URIs should be encoded
423
+ // in 7-bit ASCII. Some bad PDFs use UTF-8 encoding; see bug 1122280.
424
+ if (options.tryConvertEncoding) {
425
+ try {
426
+ url = stringToUTF8String(url);
427
+ } catch {}
428
+ }
429
+ }
430
+
431
+ const absoluteUrl = baseUrl ? new URL(url, baseUrl) : new URL(url);
432
+ if (_isValidProtocol(absoluteUrl)) {
433
+ return absoluteUrl;
434
+ }
435
+ } catch {
436
+ /* `new URL()` will throw on incorrect data. */
437
+ }
438
+ return null;
439
+ }
440
+ // shadow是重新拷贝一个对象,在对象上新加一个属性
441
+ function shadow(obj, prop, value, nonSerializable = false) {
442
+ Object.defineProperty(obj, prop, {
443
+ value,
444
+ enumerable: !nonSerializable,
445
+ configurable: true,
446
+ writable: false,
447
+ });
448
+ return value;
449
+ }
450
+
451
+ /**
452
+ * @type {any}
453
+ */
454
+ const BaseException = (function BaseExceptionClosure() {
455
+ // eslint-disable-next-line no-shadow
456
+ function BaseException(message, name) {
457
+ if (this.constructor === BaseException) {
458
+ unreachable("Cannot initialize BaseException.");
459
+ }
460
+ this.message = message;
461
+ this.name = name;
462
+ }
463
+ BaseException.prototype = new Error();
464
+ BaseException.constructor = BaseException;
465
+
466
+ return BaseException;
467
+ })();
468
+
469
+ class PasswordException extends BaseException {
470
+ constructor(msg, code) {
471
+ super(msg, "PasswordException");
472
+ this.code = code;
473
+ }
474
+ }
475
+
476
+ class UnknownErrorException extends BaseException {
477
+ constructor(msg, details) {
478
+ super(msg, "UnknownErrorException");
479
+ this.details = details;
480
+ }
481
+ }
482
+
483
+ class InvalidPDFException extends BaseException {
484
+ constructor(msg) {
485
+ super(msg, "InvalidPDFException");
486
+ }
487
+ }
488
+
489
+ class MissingPDFException extends BaseException {
490
+ constructor(msg) {
491
+ super(msg, "MissingPDFException");
492
+ }
493
+ }
494
+
495
+ class UnexpectedResponseException extends BaseException {
496
+ constructor(msg, status) {
497
+ super(msg, "UnexpectedResponseException");
498
+ this.status = status;
499
+ }
500
+ }
501
+
502
+ /**
503
+ * Error caused during parsing PDF data.
504
+ */
505
+ class FormatError extends BaseException {
506
+ constructor(msg) {
507
+ super(msg, "FormatError");
508
+ }
509
+ }
510
+
511
+ /**
512
+ * Error used to indicate task cancellation.
513
+ */
514
+ class AbortException extends BaseException {
515
+ constructor(msg) {
516
+ super(msg, "AbortException");
517
+ }
518
+ }
519
+
520
+ function bytesToString(bytes) {
521
+ if (typeof bytes !== "object" || bytes?.length === undefined) {
522
+ unreachable("Invalid argument for bytesToString");
523
+ }
524
+ const length = bytes.length;
525
+ const MAX_ARGUMENT_COUNT = 8192;
526
+ if (length < MAX_ARGUMENT_COUNT) {
527
+ return String.fromCharCode.apply(null, bytes);
528
+ }
529
+ const strBuf = [];
530
+ for (let i = 0; i < length; i += MAX_ARGUMENT_COUNT) {
531
+ const chunkEnd = Math.min(i + MAX_ARGUMENT_COUNT, length);
532
+ const chunk = bytes.subarray(i, chunkEnd);
533
+ strBuf.push(String.fromCharCode.apply(null, chunk));
534
+ }
535
+ return strBuf.join("");
536
+ }
537
+
538
+ function stringToBytes(str) {
539
+ if (typeof str !== "string") {
540
+ unreachable("Invalid argument for stringToBytes");
541
+ }
542
+ const length = str.length;
543
+ const bytes = new Uint8Array(length);
544
+ for (let i = 0; i < length; ++i) {
545
+ bytes[i] = str.charCodeAt(i) & 0xff;
546
+ }
547
+ return bytes;
548
+ }
549
+
550
+ function string32(value) {
551
+
552
+ return String.fromCharCode(
553
+ (value >> 24) & 0xff,
554
+ (value >> 16) & 0xff,
555
+ (value >> 8) & 0xff,
556
+ value & 0xff
557
+ );
558
+ }
559
+
560
+ function objectSize(obj) {
561
+ return Object.keys(obj).length;
562
+ }
563
+
564
+ // Ensure that the returned Object has a `null` prototype; hence why
565
+ // `Object.fromEntries(...)` is not used.
566
+ function objectFromMap(map) {
567
+ const obj = Object.create(null);
568
+ for (const [key, value] of map) {
569
+ obj[key] = value;
570
+ }
571
+ return obj;
572
+ }
573
+
574
+ // Checks the endianness of the platform.
575
+ function isLittleEndian() {
576
+ const buffer8 = new Uint8Array(4);
577
+ buffer8[0] = 1;
578
+ const view32 = new Uint32Array(buffer8.buffer, 0, 1);
579
+ return view32[0] === 1;
580
+ }
581
+
582
+ // Checks if it's possible to eval JS expressions.
583
+ function isEvalSupported() {
584
+ try {
585
+ new Function(""); // eslint-disable-line no-new, no-new-func
586
+ return true;
587
+ } catch {
588
+ return false;
589
+ }
590
+ }
591
+
592
+ class FeatureTest {
593
+ static get isLittleEndian() {
594
+ return shadow(this, "isLittleEndian", isLittleEndian());
595
+ }
596
+
597
+ static get isEvalSupported() {
598
+ return shadow(this, "isEvalSupported", isEvalSupported());
599
+ }
600
+
601
+ static get isOffscreenCanvasSupported() {
602
+ return shadow(
603
+ this,
604
+ "isOffscreenCanvasSupported",
605
+ typeof OffscreenCanvas !== "undefined"
606
+ );
607
+ }
608
+
609
+ static get platform() {
610
+ return shadow(this, "platform", { isMac: false });
611
+ }
612
+
613
+ static get isCSSRoundSupported() {
614
+ return shadow(
615
+ this,
616
+ "isCSSRoundSupported",
617
+ globalThis.CSS?.supports?.("width: round(1.5px, 1px)")
618
+ );
619
+ }
620
+ }
621
+
622
+ const hexNumbers = [...Array(256).keys()].map(n =>
623
+ n.toString(16).padStart(2, "0")
624
+ );
625
+
626
+ class Util {
627
+ static makeHexColor(r, g, b) {
628
+ return `#${hexNumbers[r]}${hexNumbers[g]}${hexNumbers[b]}`;
629
+ }
630
+
631
+ // Apply a scaling matrix to some min/max values.
632
+ // If a scaling factor is negative then min and max must be
633
+ // swapped.
634
+ static scaleMinMax(transform, minMax) {
635
+ let temp;
636
+ if (transform[0]) {
637
+ if (transform[0] < 0) {
638
+ temp = minMax[0];
639
+ minMax[0] = minMax[2];
640
+ minMax[2] = temp;
641
+ }
642
+ minMax[0] *= transform[0];
643
+ minMax[2] *= transform[0];
644
+
645
+ if (transform[3] < 0) {
646
+ temp = minMax[1];
647
+ minMax[1] = minMax[3];
648
+ minMax[3] = temp;
649
+ }
650
+ minMax[1] *= transform[3];
651
+ minMax[3] *= transform[3];
652
+ } else {
653
+ temp = minMax[0];
654
+ minMax[0] = minMax[1];
655
+ minMax[1] = temp;
656
+ temp = minMax[2];
657
+ minMax[2] = minMax[3];
658
+ minMax[3] = temp;
659
+
660
+ if (transform[1] < 0) {
661
+ temp = minMax[1];
662
+ minMax[1] = minMax[3];
663
+ minMax[3] = temp;
664
+ }
665
+ minMax[1] *= transform[1];
666
+ minMax[3] *= transform[1];
667
+
668
+ if (transform[2] < 0) {
669
+ temp = minMax[0];
670
+ minMax[0] = minMax[2];
671
+ minMax[2] = temp;
672
+ }
673
+ minMax[0] *= transform[2];
674
+ minMax[2] *= transform[2];
675
+ }
676
+ minMax[0] += transform[4];
677
+ minMax[1] += transform[5];
678
+ minMax[2] += transform[4];
679
+ minMax[3] += transform[5];
680
+ }
681
+
682
+ // Concatenates two transformation matrices together and returns the result.
683
+ static transform(m1, m2) {
684
+ return [
685
+ m1[0] * m2[0] + m1[2] * m2[1],
686
+ m1[1] * m2[0] + m1[3] * m2[1],
687
+ m1[0] * m2[2] + m1[2] * m2[3],
688
+ m1[1] * m2[2] + m1[3] * m2[3],
689
+ m1[0] * m2[4] + m1[2] * m2[5] + m1[4],
690
+ m1[1] * m2[4] + m1[3] * m2[5] + m1[5],
691
+ ];
692
+ }
693
+
694
+ // For 2d affine transforms
695
+ static applyTransform(p, m) {
696
+ const xt = p[0] * m[0] + p[1] * m[2] + m[4];
697
+ const yt = p[0] * m[1] + p[1] * m[3] + m[5];
698
+ return [xt, yt];
699
+ }
700
+
701
+ static applyInverseTransform(p, m) {
702
+ const d = m[0] * m[3] - m[1] * m[2];
703
+ const xt = (p[0] * m[3] - p[1] * m[2] + m[2] * m[5] - m[4] * m[3]) / d;
704
+ const yt = (-p[0] * m[1] + p[1] * m[0] + m[4] * m[1] - m[5] * m[0]) / d;
705
+ return [xt, yt];
706
+ }
707
+
708
+ // Applies the transform to the rectangle and finds the minimum axially
709
+ // aligned bounding box.
710
+ static getAxialAlignedBoundingBox(r, m) {
711
+ const p1 = this.applyTransform(r, m);
712
+ const p2 = this.applyTransform(r.slice(2, 4), m);
713
+ const p3 = this.applyTransform([r[0], r[3]], m);
714
+ const p4 = this.applyTransform([r[2], r[1]], m);
715
+ return [
716
+ Math.min(p1[0], p2[0], p3[0], p4[0]),
717
+ Math.min(p1[1], p2[1], p3[1], p4[1]),
718
+ Math.max(p1[0], p2[0], p3[0], p4[0]),
719
+ Math.max(p1[1], p2[1], p3[1], p4[1]),
720
+ ];
721
+ }
722
+
723
+ static inverseTransform(m) {
724
+ const d = m[0] * m[3] - m[1] * m[2];
725
+ return [
726
+ m[3] / d,
727
+ -m[1] / d,
728
+ -m[2] / d,
729
+ m[0] / d,
730
+ (m[2] * m[5] - m[4] * m[3]) / d,
731
+ (m[4] * m[1] - m[5] * m[0]) / d,
732
+ ];
733
+ }
734
+
735
+ // This calculation uses Singular Value Decomposition.
736
+ // The SVD can be represented with formula A = USV. We are interested in the
737
+ // matrix S here because it represents the scale values.
738
+ static singularValueDecompose2dScale(m) {
739
+ const transpose = [m[0], m[2], m[1], m[3]];
740
+
741
+ // Multiply matrix m with its transpose.
742
+ const a = m[0] * transpose[0] + m[1] * transpose[2];
743
+ const b = m[0] * transpose[1] + m[1] * transpose[3];
744
+ const c = m[2] * transpose[0] + m[3] * transpose[2];
745
+ const d = m[2] * transpose[1] + m[3] * transpose[3];
746
+
747
+ // Solve the second degree polynomial to get roots.
748
+ const first = (a + d) / 2;
749
+ const second = Math.sqrt((a + d) ** 2 - 4 * (a * d - c * b)) / 2;
750
+ const sx = first + second || 1;
751
+ const sy = first - second || 1;
752
+
753
+ // Scale values are the square roots of the eigenvalues.
754
+ return [Math.sqrt(sx), Math.sqrt(sy)];
755
+ }
756
+
757
+ // Normalize rectangle rect=[x1, y1, x2, y2] so that (x1,y1) < (x2,y2)
758
+ // For coordinate systems whose origin lies in the bottom-left, this
759
+ // means normalization to (BL,TR) ordering. For systems with origin in the
760
+ // top-left, this means (TL,BR) ordering.
761
+ static normalizeRect(rect) {
762
+ const r = rect.slice(0); // clone rect
763
+ if (rect[0] > rect[2]) {
764
+ r[0] = rect[2];
765
+ r[2] = rect[0];
766
+ }
767
+ if (rect[1] > rect[3]) {
768
+ r[1] = rect[3];
769
+ r[3] = rect[1];
770
+ }
771
+ return r;
772
+ }
773
+
774
+ // Returns a rectangle [x1, y1, x2, y2] corresponding to the
775
+ // intersection of rect1 and rect2. If no intersection, returns 'null'
776
+ // The rectangle coordinates of rect1, rect2 should be [x1, y1, x2, y2]
777
+ static intersect(rect1, rect2) {
778
+ const xLow = Math.max(
779
+ Math.min(rect1[0], rect1[2]),
780
+ Math.min(rect2[0], rect2[2])
781
+ );
782
+ const xHigh = Math.min(
783
+ Math.max(rect1[0], rect1[2]),
784
+ Math.max(rect2[0], rect2[2])
785
+ );
786
+ if (xLow > xHigh) {
787
+ return null;
788
+ }
789
+ const yLow = Math.max(
790
+ Math.min(rect1[1], rect1[3]),
791
+ Math.min(rect2[1], rect2[3])
792
+ );
793
+ const yHigh = Math.min(
794
+ Math.max(rect1[1], rect1[3]),
795
+ Math.max(rect2[1], rect2[3])
796
+ );
797
+ if (yLow > yHigh) {
798
+ return null;
799
+ }
800
+
801
+ return [xLow, yLow, xHigh, yHigh];
802
+ }
803
+
804
+ static #getExtremumOnCurve(x0, x1, x2, x3, y0, y1, y2, y3, t, minMax) {
805
+ if (t <= 0 || t >= 1) {
806
+ return;
807
+ }
808
+ const mt = 1 - t;
809
+ const tt = t * t;
810
+ const ttt = tt * t;
811
+ const x = mt * (mt * (mt * x0 + 3 * t * x1) + 3 * tt * x2) + ttt * x3;
812
+ const y = mt * (mt * (mt * y0 + 3 * t * y1) + 3 * tt * y2) + ttt * y3;
813
+ minMax[0] = Math.min(minMax[0], x);
814
+ minMax[1] = Math.min(minMax[1], y);
815
+ minMax[2] = Math.max(minMax[2], x);
816
+ minMax[3] = Math.max(minMax[3], y);
817
+ }
818
+
819
+ static #getExtremum(x0, x1, x2, x3, y0, y1, y2, y3, a, b, c, minMax) {
820
+ if (Math.abs(a) < 1e-12) {
821
+ if (Math.abs(b) >= 1e-12) {
822
+ this.#getExtremumOnCurve(
823
+ x0,
824
+ x1,
825
+ x2,
826
+ x3,
827
+ y0,
828
+ y1,
829
+ y2,
830
+ y3,
831
+ -c / b,
832
+ minMax
833
+ );
834
+ }
835
+ return;
836
+ }
837
+
838
+ const delta = b ** 2 - 4 * c * a;
839
+ if (delta < 0) {
840
+ return;
841
+ }
842
+ const sqrtDelta = Math.sqrt(delta);
843
+ const a2 = 2 * a;
844
+ this.#getExtremumOnCurve(
845
+ x0,
846
+ x1,
847
+ x2,
848
+ x3,
849
+ y0,
850
+ y1,
851
+ y2,
852
+ y3,
853
+ (-b + sqrtDelta) / a2,
854
+ minMax
855
+ );
856
+ this.#getExtremumOnCurve(
857
+ x0,
858
+ x1,
859
+ x2,
860
+ x3,
861
+ y0,
862
+ y1,
863
+ y2,
864
+ y3,
865
+ (-b - sqrtDelta) / a2,
866
+ minMax
867
+ );
868
+ }
869
+
870
+ // From https://github.com/adobe-webplatform/Snap.svg/blob/b365287722a72526000ac4bfcf0ce4cac2faa015/src/path.js#L852
871
+ static bezierBoundingBox(x0, y0, x1, y1, x2, y2, x3, y3, minMax) {
872
+ if (minMax) {
873
+ minMax[0] = Math.min(minMax[0], x0, x3);
874
+ minMax[1] = Math.min(minMax[1], y0, y3);
875
+ minMax[2] = Math.max(minMax[2], x0, x3);
876
+ minMax[3] = Math.max(minMax[3], y0, y3);
877
+ } else {
878
+ minMax = [
879
+ Math.min(x0, x3),
880
+ Math.min(y0, y3),
881
+ Math.max(x0, x3),
882
+ Math.max(y0, y3),
883
+ ];
884
+ }
885
+ this.#getExtremum(
886
+ x0,
887
+ x1,
888
+ x2,
889
+ x3,
890
+ y0,
891
+ y1,
892
+ y2,
893
+ y3,
894
+ 3 * (-x0 + 3 * (x1 - x2) + x3),
895
+ 6 * (x0 - 2 * x1 + x2),
896
+ 3 * (x1 - x0),
897
+ minMax
898
+ );
899
+ this.#getExtremum(
900
+ x0,
901
+ x1,
902
+ x2,
903
+ x3,
904
+ y0,
905
+ y1,
906
+ y2,
907
+ y3,
908
+ 3 * (-y0 + 3 * (y1 - y2) + y3),
909
+ 6 * (y0 - 2 * y1 + y2),
910
+ 3 * (y1 - y0),
911
+ minMax
912
+ );
913
+ return minMax;
914
+ }
915
+ }
916
+
917
+ const PDFStringTranslateTable = [
918
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0x2d8,
919
+ 0x2c7, 0x2c6, 0x2d9, 0x2dd, 0x2db, 0x2da, 0x2dc, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
920
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
921
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
922
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
923
+ 0, 0, 0, 0, 0, 0, 0, 0, 0x2022, 0x2020, 0x2021, 0x2026, 0x2014, 0x2013, 0x192,
924
+ 0x2044, 0x2039, 0x203a, 0x2212, 0x2030, 0x201e, 0x201c, 0x201d, 0x2018,
925
+ 0x2019, 0x201a, 0x2122, 0xfb01, 0xfb02, 0x141, 0x152, 0x160, 0x178, 0x17d,
926
+ 0x131, 0x142, 0x153, 0x161, 0x17e, 0, 0x20ac,
927
+ ];
928
+
929
+ function stringToPDFString(str) {
930
+ // See section 7.9.2.2 Text String Type.
931
+ // The string can contain some language codes bracketed with 0x0b,
932
+ // so we must remove them.
933
+ if (str[0] >= "\xEF") {
934
+ let encoding;
935
+ if (str[0] === "\xFE" && str[1] === "\xFF") {
936
+ encoding = "utf-16be";
937
+ if (str.length % 2 === 1) {
938
+ str = str.slice(0, -1);
939
+ }
940
+ } else if (str[0] === "\xFF" && str[1] === "\xFE") {
941
+ encoding = "utf-16le";
942
+ if (str.length % 2 === 1) {
943
+ str = str.slice(0, -1);
944
+ }
945
+ } else if (str[0] === "\xEF" && str[1] === "\xBB" && str[2] === "\xBF") {
946
+ encoding = "utf-8";
947
+ }
948
+
949
+ if (encoding) {
950
+ try {
951
+ const decoder = new TextDecoder(encoding, { fatal: true });
952
+ const buffer = stringToBytes(str);
953
+ const decoded = decoder.decode(buffer);
954
+ if (!decoded.includes("\x1b")) {
955
+ return decoded;
956
+ }
957
+ return decoded.replaceAll(/\x1b[^\x1b]*(?:\x1b|$)/g, "");
958
+ } catch (ex) {
959
+ warn(`stringToPDFString: "${ex}".`);
960
+ }
961
+ }
962
+ }
963
+ // ISO Latin 1
964
+ const strBuf = [];
965
+ for (let i = 0, ii = str.length; i < ii; i++) {
966
+ const charCode = str.charCodeAt(i);
967
+ if (charCode === 0x1b) {
968
+ // eslint-disable-next-line no-empty
969
+ while (++i < ii && str.charCodeAt(i) !== 0x1b) {}
970
+ continue;
971
+ }
972
+ const code = PDFStringTranslateTable[charCode];
973
+ strBuf.push(code ? String.fromCharCode(code) : str.charAt(i));
974
+ }
975
+ return strBuf.join("");
976
+ }
977
+
978
+ function stringToUTF8String(str) {
979
+ return decodeURIComponent(escape(str));
980
+ }
981
+
982
+ function utf8StringToString(str) {
983
+ return unescape(encodeURIComponent(str));
984
+ }
985
+
986
+ function isArrayEqual(arr1, arr2) {
987
+ if (arr1.length !== arr2.length) {
988
+ return false;
989
+ }
990
+ for (let i = 0, ii = arr1.length; i < ii; i++) {
991
+ if (arr1[i] !== arr2[i]) {
992
+ return false;
993
+ }
994
+ }
995
+ return true;
996
+ }
997
+
998
+ function getModificationDate(date = new Date()) {
999
+ const buffer = [
1000
+ date.getUTCFullYear().toString(),
1001
+ (date.getUTCMonth() + 1).toString().padStart(2, "0"),
1002
+ date.getUTCDate().toString().padStart(2, "0"),
1003
+ date.getUTCHours().toString().padStart(2, "0"),
1004
+ date.getUTCMinutes().toString().padStart(2, "0"),
1005
+ date.getUTCSeconds().toString().padStart(2, "0"),
1006
+ ];
1007
+
1008
+ return buffer.join("");
1009
+ }
1010
+
1011
+ /**
1012
+ * 组成一个包含了一个promise的属性,在执行了之后将里面的一个#settled属性设置为true,
1013
+ * 这里将settled设置为true有什么用呢
1014
+ * 其实主要来说这就是i一个promise的包裹对象,功能和promise一样
1015
+ * 这段代码定义了一个名为 PromiseCapability 的类,它提供了一种管理 Promise 的创建和解析的方法。这是代码的细分:
1016
+ */
1017
+ class PromiseCapability {
1018
+
1019
+ /**
1020
+ * #settled:这是一个私有属性(由 # 前缀表示),包含一个布尔值。它开始时为 false,并在 Promise 被解决或拒绝时设置为 true。
1021
+ * @type {boolean}
1022
+ */
1023
+ #settled = false;
1024
+
1025
+ constructor() {
1026
+ /**
1027
+ * 在构造函数内部,它使用 Promise 构造函数创建一个新的 Promise。
1028
+ * Promise 构造函数采用带有两个参数的执行器函数
1029
+ * 它还在执行器函数中定义了两个公共方法:this.resolve this.reject
1030
+ *
1031
+ * @type {Promise<any>} The Promise object.
1032
+ */
1033
+ this.promise = new Promise((resolve, reject) => {
1034
+ /**
1035
+ * 此方法采用数据参数并调用提供给 Promise 构造函数的解析函数,从而使用提供的数据有效地实现 Promise。
1036
+ * @type {function} Fulfills the Promise.
1037
+ */
1038
+ this.resolve = data => {
1039
+ this.#settled = true;
1040
+ resolve(data);
1041
+ };
1042
+
1043
+ /**
1044
+ * 此方法接受一个原因参数(通常是一个错误)并调用提供给 Promise 构造函数的拒绝函数,从而有效地拒绝带有所提供原因的 Promise。
1045
+ * @type {function} Rejects the Promise.
1046
+ */
1047
+ this.reject = reason => {
1048
+ this.#settled = true;
1049
+ reject(reason);
1050
+ };
1051
+ });
1052
+ }
1053
+
1054
+ /**
1055
+ * 这个 getter 只是返回私有属性 #settled 的值,指示 Promise 是否已被解决或拒绝。
1056
+ * @type {boolean} If the Promise has been fulfilled/rejected.
1057
+ */
1058
+ get settled() {
1059
+ return this.#settled;
1060
+ }
1061
+ }
1062
+
1063
+ let NormalizeRegex = null;
1064
+ let NormalizationMap = null;
1065
+ function normalizeUnicode(str) {
1066
+ if (!NormalizeRegex) {
1067
+ // In order to generate the following regex:
1068
+ // - create a PDF containing all the chars in the range 0000-FFFF with
1069
+ // a NFKC which is different of the char.
1070
+ // - copy and paste all those chars and get the ones where NFKC is
1071
+ // required.
1072
+ // It appears that most the chars here contain some ligatures.
1073
+ NormalizeRegex =
1074
+ /([\u00a0\u00b5\u037e\u0eb3\u2000-\u200a\u202f\u2126\ufb00-\ufb04\ufb06\ufb20-\ufb36\ufb38-\ufb3c\ufb3e\ufb40-\ufb41\ufb43-\ufb44\ufb46-\ufba1\ufba4-\ufba9\ufbae-\ufbb1\ufbd3-\ufbdc\ufbde-\ufbe7\ufbea-\ufbf8\ufbfc-\ufbfd\ufc00-\ufc5d\ufc64-\ufcf1\ufcf5-\ufd3d\ufd88\ufdf4\ufdfa-\ufdfb\ufe71\ufe77\ufe79\ufe7b\ufe7d]+)|(\ufb05+)/gu;
1075
+ NormalizationMap = new Map([["ſt", "ſt"]]);
1076
+ }
1077
+ return str.replaceAll(NormalizeRegex, (_, p1, p2) =>
1078
+ p1 ? p1.normalize("NFKC") : NormalizationMap.get(p2)
1079
+ );
1080
+ }
1081
+
1082
+ function getUuid() {
1083
+ const buf = new Uint8Array(32);
1084
+ if (
1085
+ typeof crypto !== "undefined" &&
1086
+ typeof crypto?.getRandomValues === "function"
1087
+ ) {
1088
+ crypto.getRandomValues(buf);
1089
+ } else {
1090
+ for (let i = 0; i < 32; i++) {
1091
+ buf[i] = Math.floor(Math.random() * 255);
1092
+ }
1093
+ }
1094
+ return bytesToString(buf);
1095
+ }
1096
+
1097
+ const AnnotationPrefix = "pdfjs_internal_id_";
1098
+
1099
+ export {
1100
+ AbortException,
1101
+ AnnotationActionEventType,
1102
+ AnnotationBorderStyleType,
1103
+ AnnotationEditorParamsType,
1104
+ AnnotationEditorPrefix,
1105
+ AnnotationEditorType,
1106
+ AnnotationFieldFlag,
1107
+ AnnotationFlag,
1108
+ AnnotationMode,
1109
+ AnnotationPrefix,
1110
+ AnnotationReplyType,
1111
+ AnnotationType,
1112
+ assert,
1113
+ BaseException,
1114
+ BASELINE_FACTOR,
1115
+ bytesToString,
1116
+ CMapCompressionType,
1117
+ createValidAbsoluteUrl,
1118
+ DocumentActionEventType,
1119
+ FeatureTest,
1120
+ FONT_IDENTITY_MATRIX,
1121
+ FormatError,
1122
+ getModificationDate,
1123
+ getUuid,
1124
+ getVerbosityLevel,
1125
+ IDENTITY_MATRIX,
1126
+ ImageKind,
1127
+ info,
1128
+ InvalidPDFException,
1129
+ isArrayEqual,
1130
+ LINE_DESCENT_FACTOR,
1131
+ LINE_FACTOR,
1132
+ MAX_IMAGE_SIZE_TO_CACHE,
1133
+ MissingPDFException,
1134
+ normalizeUnicode,
1135
+ objectFromMap,
1136
+ objectSize,
1137
+ OPS,
1138
+ PageActionEventType,
1139
+ PasswordException,
1140
+ PasswordResponses,
1141
+ PermissionFlag,
1142
+ PromiseCapability,
1143
+ RenderingIntentFlag,
1144
+ setVerbosityLevel,
1145
+ shadow,
1146
+ string32,
1147
+ stringToBytes,
1148
+ stringToPDFString,
1149
+ stringToUTF8String,
1150
+ TextRenderingMode,
1151
+ UnexpectedResponseException,
1152
+ UnknownErrorException,
1153
+ unreachable,
1154
+ utf8StringToString,
1155
+ Util,
1156
+ VerbosityLevel,
1157
+ warn,
1158
+ isNodeJS
1159
+ };