@hztxi/cesium-engine 25.0.1 → 25.0.3

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 (337) hide show
  1. package/Build/ThirdParty/Workers/zip-web-worker.js +761 -520
  2. package/Build/Workers/chunk-27UNFKLP.js +78 -0
  3. package/Build/Workers/chunk-2KZP32NE.js +3201 -0
  4. package/Build/Workers/chunk-2NIRC5FH.js +398 -0
  5. package/Build/Workers/chunk-2P5SGQUU.js +44 -0
  6. package/Build/Workers/chunk-2PFSIZOR.js +959 -0
  7. package/Build/Workers/chunk-2RC5GQMH.js +82 -0
  8. package/Build/Workers/chunk-2TM5FET3.js +241 -0
  9. package/Build/Workers/chunk-2YHL3RU5.js +162 -0
  10. package/Build/Workers/chunk-2ZYMQXBB.js +519 -0
  11. package/Build/Workers/chunk-36Y4HYYW.js +1067 -0
  12. package/Build/Workers/chunk-37IVAHRF.js +3201 -0
  13. package/Build/Workers/chunk-3CSWK42O.js +3648 -0
  14. package/Build/Workers/chunk-3EB75M2K.js +2342 -0
  15. package/Build/Workers/chunk-3GDVUAIX.js +1287 -0
  16. package/Build/Workers/chunk-3HGZ7PIQ.js +1483 -0
  17. package/Build/Workers/chunk-3L5NZHVW.js +288 -0
  18. package/Build/Workers/chunk-3LQDIJFX.js +2719 -0
  19. package/Build/Workers/chunk-3WIDW5QO.js +1800 -0
  20. package/Build/Workers/chunk-4A34KHP2.js +138 -0
  21. package/Build/Workers/chunk-4GKVVYGC.js +124 -0
  22. package/Build/Workers/chunk-4L4ZXXL7.js +57 -0
  23. package/Build/Workers/chunk-4NOKV4XU.js +301 -0
  24. package/Build/Workers/chunk-4QK5RZ5I.js +171 -0
  25. package/Build/Workers/chunk-4RWSLDVO.js +198 -0
  26. package/Build/Workers/chunk-4VMEH443.js +754 -0
  27. package/Build/Workers/chunk-4VO5KZVX.js +693 -0
  28. package/Build/Workers/chunk-53HFLKT5.js +76 -0
  29. package/Build/Workers/chunk-53ITLB2Q.js +288 -0
  30. package/Build/Workers/chunk-5523YTNX.js +352 -0
  31. package/Build/Workers/chunk-562MM6RC.js +682 -0
  32. package/Build/Workers/chunk-5BQXC3BP.js +837 -0
  33. package/Build/Workers/chunk-5DHF2GEC.js +497 -0
  34. package/Build/Workers/chunk-5DJBLQEH.js +56 -0
  35. package/Build/Workers/chunk-5FNZGB4U.js +368 -0
  36. package/Build/Workers/chunk-5KOCUIKQ.js +476 -0
  37. package/Build/Workers/chunk-5PK42ITB.js +219 -0
  38. package/Build/Workers/chunk-5RSLOB22.js +511 -0
  39. package/Build/Workers/chunk-5SGB3BKM.js +73 -0
  40. package/Build/Workers/chunk-5SLGYIPO.js +454 -0
  41. package/Build/Workers/chunk-5ZWRS2E6.js +280 -0
  42. package/Build/Workers/chunk-65RILO72.js +76 -0
  43. package/Build/Workers/chunk-6A74XDJV.js +1054 -0
  44. package/Build/Workers/chunk-6CAFY3E7.js +280 -0
  45. package/Build/Workers/chunk-6FU5LWYG.js +352 -0
  46. package/Build/Workers/chunk-6IWHUZUQ.js +959 -0
  47. package/Build/Workers/chunk-6IYEGXEW.js +1344 -0
  48. package/Build/Workers/chunk-6KWWDFT4.js +278 -0
  49. package/Build/Workers/chunk-6ROOPL5F.js +455 -0
  50. package/Build/Workers/chunk-6SQMSSOR.js +352 -0
  51. package/Build/Workers/chunk-6SZK4XE5.js +1800 -0
  52. package/Build/Workers/chunk-6XE6USHI.js +280 -0
  53. package/Build/Workers/chunk-6YMLC7BS.js +1067 -0
  54. package/Build/Workers/chunk-73DJHI53.js +398 -0
  55. package/Build/Workers/chunk-73OT3YBQ.js +1054 -0
  56. package/Build/Workers/chunk-73T2E2OA.js +454 -0
  57. package/Build/Workers/chunk-752QDGCS.js +778 -0
  58. package/Build/Workers/chunk-76HD3HYN.js +2342 -0
  59. package/Build/Workers/chunk-7I4AKIEV.js +58 -0
  60. package/Build/Workers/chunk-7QXAVVZH.js +9230 -0
  61. package/Build/Workers/chunk-7ZYD7GL6.js +414 -0
  62. package/Build/Workers/chunk-A4AIHOC7.js +476 -0
  63. package/Build/Workers/chunk-AFBRALW3.js +3620 -0
  64. package/Build/Workers/chunk-AGANEUZR.js +305 -0
  65. package/Build/Workers/chunk-AIA3JN4E.js +171 -0
  66. package/Build/Workers/chunk-AJ4TSZQD.js +352 -0
  67. package/Build/Workers/chunk-ALJYMECF.js +973 -0
  68. package/Build/Workers/chunk-ANB53XEA.js +198 -0
  69. package/Build/Workers/chunk-ANGZAKVP.js +257 -0
  70. package/Build/Workers/chunk-ATT5UEK6.js +97 -0
  71. package/Build/Workers/chunk-AW3UT5RP.js +97 -0
  72. package/Build/Workers/chunk-AWP7JHXS.js +58 -0
  73. package/Build/Workers/chunk-AZGPL6BR.js +38 -0
  74. package/Build/Workers/chunk-B2MY5ZT4.js +241 -0
  75. package/Build/Workers/chunk-B7SMDRPA.js +476 -0
  76. package/Build/Workers/chunk-BADQ2G5E.js +837 -0
  77. package/Build/Workers/chunk-BAPOWX62.js +368 -0
  78. package/Build/Workers/chunk-BE5ULV4I.js +1800 -0
  79. package/Build/Workers/chunk-BII4UB3C.js +476 -0
  80. package/Build/Workers/chunk-BPL3HT2R.js +837 -0
  81. package/Build/Workers/chunk-BVAMP4M3.js +101 -0
  82. package/Build/Workers/chunk-BVFS5LSK.js +1067 -0
  83. package/Build/Workers/chunk-BVOP4FBU.js +778 -0
  84. package/Build/Workers/chunk-CKWUU4JK.js +138 -0
  85. package/Build/Workers/chunk-CMMHWVUF.js +2719 -0
  86. package/Build/Workers/chunk-CQNFIAZU.js +56 -0
  87. package/Build/Workers/chunk-CSUBL77L.js +140 -0
  88. package/Build/Workers/chunk-CUJKQD6C.js +1287 -0
  89. package/Build/Workers/chunk-DHCQSFRN.js +301 -0
  90. package/Build/Workers/chunk-DKFSOFKR.js +241 -0
  91. package/Build/Workers/chunk-DLHFYNG6.js +52 -0
  92. package/Build/Workers/chunk-DOJQOYSZ.js +1344 -0
  93. package/Build/Workers/chunk-DSOWTJU3.js +3201 -0
  94. package/Build/Workers/chunk-E4SAHWMA.js +1992 -0
  95. package/Build/Workers/chunk-EJES53XD.js +147 -0
  96. package/Build/Workers/chunk-ETABYWY4.js +973 -0
  97. package/Build/Workers/chunk-EYVCQUVQ.js +1067 -0
  98. package/Build/Workers/chunk-FE7VHPNW.js +102 -0
  99. package/Build/Workers/chunk-FEMEGP72.js +97 -0
  100. package/Build/Workers/chunk-FFEVCOBU.js +387 -0
  101. package/Build/Workers/chunk-FPUTHLEQ.js +73 -0
  102. package/Build/Workers/chunk-FSGWPS5K.js +102 -0
  103. package/Build/Workers/chunk-FVGN2Y5F.js +414 -0
  104. package/Build/Workers/chunk-FWABE4BL.js +305 -0
  105. package/Build/Workers/chunk-FYOTKGMD.js +38 -0
  106. package/Build/Workers/chunk-FYOU33DL.js +454 -0
  107. package/Build/Workers/chunk-FZQTWCZX.js +138 -0
  108. package/Build/Workers/chunk-G7QZ6W7K.js +56 -0
  109. package/Build/Workers/chunk-GBYWJNH6.js +455 -0
  110. package/Build/Workers/chunk-GC24BPCQ.js +305 -0
  111. package/Build/Workers/chunk-GCTHMF35.js +387 -0
  112. package/Build/Workers/chunk-GDHSPLWC.js +9237 -0
  113. package/Build/Workers/chunk-GGK7SA4Y.js +414 -0
  114. package/Build/Workers/chunk-GGVG7G5Z.js +1483 -0
  115. package/Build/Workers/chunk-GL7W3I3A.js +959 -0
  116. package/Build/Workers/chunk-H52M4HMP.js +9230 -0
  117. package/Build/Workers/chunk-H62GX37Y.js +414 -0
  118. package/Build/Workers/chunk-H7QGY7HB.js +1054 -0
  119. package/Build/Workers/chunk-H7ZXQIV2.js +398 -0
  120. package/Build/Workers/chunk-HA42BW2W.js +73 -0
  121. package/Build/Workers/chunk-HBJKIDKK.js +76 -0
  122. package/Build/Workers/chunk-HERVRBJW.js +76 -0
  123. package/Build/Workers/chunk-HFMS7MXO.js +511 -0
  124. package/Build/Workers/chunk-HGDGYWXB.js +368 -0
  125. package/Build/Workers/chunk-HH6PJ22V.js +455 -0
  126. package/Build/Workers/chunk-HLCNW67V.js +162 -0
  127. package/Build/Workers/chunk-HPRR2MW2.js +9230 -0
  128. package/Build/Workers/chunk-HQ2PXPP7.js +102 -0
  129. package/Build/Workers/chunk-HTO45L3X.js +454 -0
  130. package/Build/Workers/chunk-HW5TLMPQ.js +57 -0
  131. package/Build/Workers/chunk-IC3HVJBG.js +301 -0
  132. package/Build/Workers/chunk-IEKP7CEH.js +387 -0
  133. package/Build/Workers/chunk-ILUFUAF3.js +1992 -0
  134. package/Build/Workers/chunk-ILX5N5QR.js +2342 -0
  135. package/Build/Workers/chunk-IRSD4EJW.js +630 -0
  136. package/Build/Workers/chunk-J3A3XMTG.js +672 -0
  137. package/Build/Workers/chunk-JHL6DEKL.js +1287 -0
  138. package/Build/Workers/chunk-JK54NBBO.js +778 -0
  139. package/Build/Workers/chunk-JSFKPEFK.js +352 -0
  140. package/Build/Workers/chunk-JTSSQ3RH.js +147 -0
  141. package/Build/Workers/chunk-JZVZDHC2.js +288 -0
  142. package/Build/Workers/chunk-K724BR5O.js +455 -0
  143. package/Build/Workers/chunk-KGNDVO6V.js +497 -0
  144. package/Build/Workers/chunk-KJOVSN7J.js +56 -0
  145. package/Build/Workers/chunk-KKEMKV5G.js +44 -0
  146. package/Build/Workers/chunk-KKXT553B.js +2719 -0
  147. package/Build/Workers/chunk-KM3TU6SW.js +101 -0
  148. package/Build/Workers/chunk-KXNXQXP5.js +682 -0
  149. package/Build/Workers/chunk-KYXZ3XTC.js +497 -0
  150. package/Build/Workers/chunk-L65LWRUE.js +3648 -0
  151. package/Build/Workers/chunk-LAN4XQR6.js +162 -0
  152. package/Build/Workers/chunk-LANT2AAI.js +398 -0
  153. package/Build/Workers/chunk-LC2DM3UY.js +352 -0
  154. package/Build/Workers/chunk-LFVZBOFT.js +140 -0
  155. package/Build/Workers/chunk-LVO4J36T.js +1800 -0
  156. package/Build/Workers/chunk-LY5KUQ2L.js +57 -0
  157. package/Build/Workers/chunk-M2XWG5VC.js +124 -0
  158. package/Build/Workers/chunk-M3YCBXY6.js +97 -0
  159. package/Build/Workers/chunk-MNKWZJLE.js +754 -0
  160. package/Build/Workers/chunk-MR7LJQY3.js +1344 -0
  161. package/Build/Workers/chunk-MUPWJMPP.js +44 -0
  162. package/Build/Workers/chunk-MVBEMXN4.js +163 -0
  163. package/Build/Workers/chunk-MVCGWYYA.js +693 -0
  164. package/Build/Workers/chunk-MVQYVX6D.js +511 -0
  165. package/Build/Workers/chunk-N4ECLSTH.js +163 -0
  166. package/Build/Workers/chunk-N4RF6TUL.js +301 -0
  167. package/Build/Workers/chunk-NCH4P66E.js +219 -0
  168. package/Build/Workers/chunk-NCL22ZUX.js +56 -0
  169. package/Build/Workers/chunk-NG6PINOD.js +973 -0
  170. package/Build/Workers/chunk-NNJDVVEG.js +3794 -0
  171. package/Build/Workers/chunk-NOOOB6XR.js +76 -0
  172. package/Build/Workers/chunk-NRIECATP.js +124 -0
  173. package/Build/Workers/chunk-NYQSZLRF.js +78 -0
  174. package/Build/Workers/chunk-O2V4I3I5.js +682 -0
  175. package/Build/Workers/chunk-O453S45W.js +1483 -0
  176. package/Build/Workers/chunk-O5CYW2IR.js +1046 -0
  177. package/Build/Workers/chunk-OI6UMRBT.js +368 -0
  178. package/Build/Workers/chunk-OJ7O7DKV.js +973 -0
  179. package/Build/Workers/chunk-OJK33YVT.js +171 -0
  180. package/Build/Workers/chunk-OJMOQSS5.js +387 -0
  181. package/Build/Workers/chunk-OKFC4PDV.js +1344 -0
  182. package/Build/Workers/chunk-OKUXJIW3.js +124 -0
  183. package/Build/Workers/chunk-OWDZ5BX4.js +280 -0
  184. package/Build/Workers/chunk-PCERHV4S.js +198 -0
  185. package/Build/Workers/chunk-PEK6L3A2.js +102 -0
  186. package/Build/Workers/chunk-PJT22BD4.js +352 -0
  187. package/Build/Workers/chunk-PKV3R77E.js +672 -0
  188. package/Build/Workers/chunk-PLMDKE2G.js +57 -0
  189. package/Build/Workers/chunk-PQ2MGY7X.js +162 -0
  190. package/Build/Workers/chunk-PR62UBKE.js +693 -0
  191. package/Build/Workers/chunk-QJJ3GXSH.js +140 -0
  192. package/Build/Workers/chunk-QM4HZZYW.js +219 -0
  193. package/Build/Workers/chunk-QQ2BBL7Z.js +162 -0
  194. package/Build/Workers/chunk-QYC6Y25A.js +124 -0
  195. package/Build/Workers/chunk-R3E7ZNXL.js +44 -0
  196. package/Build/Workers/chunk-RBAZR7R2.js +280 -0
  197. package/Build/Workers/chunk-REZJEC6F.js +241 -0
  198. package/Build/Workers/chunk-RGNURFR5.js +1992 -0
  199. package/Build/Workers/chunk-RHVCL4BF.js +3620 -0
  200. package/Build/Workers/chunk-RS3LRHOK.js +73 -0
  201. package/Build/Workers/chunk-S2WTOFGB.js +102 -0
  202. package/Build/Workers/chunk-S7NAPXAR.js +305 -0
  203. package/Build/Workers/chunk-SAFIA66W.js +140 -0
  204. package/Build/Workers/chunk-SGLJWWWY.js +352 -0
  205. package/Build/Workers/chunk-SJZMU3OS.js +2342 -0
  206. package/Build/Workers/chunk-SLZBHAWM.js +837 -0
  207. package/Build/Workers/chunk-SMZXVFCA.js +1344 -0
  208. package/Build/Workers/chunk-SND4KNB6.js +754 -0
  209. package/Build/Workers/chunk-SOD6C4T2.js +682 -0
  210. package/Build/Workers/chunk-SOMBAQ6X.js +3201 -0
  211. package/Build/Workers/chunk-SOOUWXOJ.js +198 -0
  212. package/Build/Workers/chunk-SRH2XIWS.js +1067 -0
  213. package/Build/Workers/chunk-SXSP3JHS.js +38 -0
  214. package/Build/Workers/chunk-SZONDGD2.js +778 -0
  215. package/Build/Workers/chunk-T6SVKD76.js +511 -0
  216. package/Build/Workers/chunk-TA3PH4Q7.js +519 -0
  217. package/Build/Workers/chunk-TDJ2NSYJ.js +171 -0
  218. package/Build/Workers/chunk-TJCD5NV5.js +837 -0
  219. package/Build/Workers/chunk-TT3NOX52.js +257 -0
  220. package/Build/Workers/chunk-TT6EXCGT.js +387 -0
  221. package/Build/Workers/chunk-TXBADNRA.js +9237 -0
  222. package/Build/Workers/chunk-TYW2D7VU.js +2719 -0
  223. package/Build/Workers/chunk-U3KB4HMG.js +1054 -0
  224. package/Build/Workers/chunk-U6OMVSBY.js +368 -0
  225. package/Build/Workers/chunk-UAVMVBMC.js +754 -0
  226. package/Build/Workers/chunk-UCOZLNHF.js +1284 -0
  227. package/Build/Workers/chunk-UDKEO3UF.js +163 -0
  228. package/Build/Workers/chunk-UIQUUY4A.js +73 -0
  229. package/Build/Workers/chunk-ULY2FDDP.js +454 -0
  230. package/Build/Workers/chunk-UQABUNQP.js +301 -0
  231. package/Build/Workers/chunk-UT7YX565.js +1992 -0
  232. package/Build/Workers/chunk-UTOYFI3Q.js +1992 -0
  233. package/Build/Workers/chunk-UUN6ELAF.js +476 -0
  234. package/Build/Workers/chunk-UUXWWJI7.js +101 -0
  235. package/Build/Workers/chunk-V5AWAGL2.js +97 -0
  236. package/Build/Workers/chunk-V5AXOGPW.js +682 -0
  237. package/Build/Workers/chunk-VAUX2Q2X.js +138 -0
  238. package/Build/Workers/chunk-VDJVNJXW.js +2342 -0
  239. package/Build/Workers/chunk-VDX4SJKV.js +58 -0
  240. package/Build/Workers/chunk-VU2OEFZS.js +511 -0
  241. package/Build/Workers/chunk-VYTIQ2Y2.js +630 -0
  242. package/Build/Workers/chunk-W5MRHFMR.js +288 -0
  243. package/Build/Workers/chunk-W7WEPLZL.js +414 -0
  244. package/Build/Workers/chunk-WHJCVALR.js +241 -0
  245. package/Build/Workers/chunk-WKB3ASRI.js +973 -0
  246. package/Build/Workers/chunk-WLDDKODU.js +44 -0
  247. package/Build/Workers/chunk-WNAG4FHY.js +305 -0
  248. package/Build/Workers/chunk-WNQX2CP3.js +455 -0
  249. package/Build/Workers/chunk-X4A7LVKE.js +219 -0
  250. package/Build/Workers/chunk-XCASHPVG.js +778 -0
  251. package/Build/Workers/chunk-XFMCNWLM.js +2719 -0
  252. package/Build/Workers/chunk-XGU44EOV.js +219 -0
  253. package/Build/Workers/chunk-XIIIDBAK.js +171 -0
  254. package/Build/Workers/chunk-XJUIVTHG.js +1483 -0
  255. package/Build/Workers/chunk-XLMFFASL.js +1483 -0
  256. package/Build/Workers/chunk-XQVSSVT2.js +140 -0
  257. package/Build/Workers/chunk-Y2TJP7FF.js +959 -0
  258. package/Build/Workers/chunk-Y5E2LVSX.js +138 -0
  259. package/Build/Workers/chunk-Y7LAUPYL.js +1054 -0
  260. package/Build/Workers/chunk-YEMKJOOG.js +352 -0
  261. package/Build/Workers/chunk-YGFVAGYF.js +630 -0
  262. package/Build/Workers/chunk-YMIPCEQ6.js +1800 -0
  263. package/Build/Workers/chunk-YNWTO2WN.js +147 -0
  264. package/Build/Workers/chunk-YQVAKERA.js +57 -0
  265. package/Build/Workers/chunk-YWXQX4RS.js +147 -0
  266. package/Build/Workers/chunk-YZAMLSIA.js +352 -0
  267. package/Build/Workers/chunk-Z6LUW5FN.js +198 -0
  268. package/Build/Workers/chunk-ZDUCDVKX.js +288 -0
  269. package/Build/Workers/chunk-ZEEPTE4R.js +147 -0
  270. package/Build/Workers/chunk-ZIBW2BFB.js +1284 -0
  271. package/Build/Workers/chunk-ZOMW6KCQ.js +56 -0
  272. package/Build/Workers/chunk-ZOYVNCFZ.js +754 -0
  273. package/Build/Workers/chunk-ZSWY7UNG.js +3201 -0
  274. package/Build/Workers/chunk-ZXRWKKJP.js +398 -0
  275. package/Build/Workers/combineGeometry.js +24 -24
  276. package/Build/Workers/createBoxGeometry.js +18 -18
  277. package/Build/Workers/createBoxOutlineGeometry.js +16 -16
  278. package/Build/Workers/createCircleGeometry.js +26 -26
  279. package/Build/Workers/createCircleOutlineGeometry.js +19 -19
  280. package/Build/Workers/createCoplanarPolygonGeometry.js +33 -33
  281. package/Build/Workers/createCoplanarPolygonOutlineGeometry.js +31 -31
  282. package/Build/Workers/createCorridorGeometry.js +29 -29
  283. package/Build/Workers/createCorridorOutlineGeometry.js +28 -28
  284. package/Build/Workers/createCylinderGeometry.js +20 -20
  285. package/Build/Workers/createCylinderOutlineGeometry.js +18 -18
  286. package/Build/Workers/createEllipseGeometry.js +26 -26
  287. package/Build/Workers/createEllipseOutlineGeometry.js +19 -19
  288. package/Build/Workers/createEllipsoidGeometry.js +19 -19
  289. package/Build/Workers/createEllipsoidOutlineGeometry.js +18 -18
  290. package/Build/Workers/createFrustumGeometry.js +18 -18
  291. package/Build/Workers/createFrustumOutlineGeometry.js +18 -18
  292. package/Build/Workers/createGeometry.js +24 -24
  293. package/Build/Workers/createGroundPolylineGeometry.js +23 -23
  294. package/Build/Workers/createMvtTile.js +1815 -0
  295. package/Build/Workers/createPlaneGeometry.js +16 -16
  296. package/Build/Workers/createPlaneOutlineGeometry.js +15 -15
  297. package/Build/Workers/createPolygonGeometry.js +32 -32
  298. package/Build/Workers/createPolygonOutlineGeometry.js +30 -30
  299. package/Build/Workers/createPolylineGeometry.js +25 -25
  300. package/Build/Workers/createPolylineVolumeGeometry.js +31 -31
  301. package/Build/Workers/createPolylineVolumeOutlineGeometry.js +27 -27
  302. package/Build/Workers/createRectangleGeometry.js +27 -27
  303. package/Build/Workers/createRectangleOutlineGeometry.js +20 -20
  304. package/Build/Workers/createSimplePolylineGeometry.js +23 -23
  305. package/Build/Workers/createSphereGeometry.js +19 -19
  306. package/Build/Workers/createSphereOutlineGeometry.js +18 -18
  307. package/Build/Workers/createTaskProcessorWorker.js +3 -3
  308. package/Build/Workers/createVectorTileClampedPolylines.js +14 -14
  309. package/Build/Workers/createVectorTileGeometries.js +24 -24
  310. package/Build/Workers/createVectorTilePoints.js +13 -13
  311. package/Build/Workers/createVectorTilePolygons.js +22 -22
  312. package/Build/Workers/createVectorTilePolylines.js +14 -14
  313. package/Build/Workers/createVerticesFromCesium3DTilesTerrain.js +26 -26
  314. package/Build/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +23 -23
  315. package/Build/Workers/createVerticesFromHeightmap.js +23 -23
  316. package/Build/Workers/createVerticesFromQuantizedTerrainMesh.js +21 -21
  317. package/Build/Workers/createWallGeometry.js +24 -24
  318. package/Build/Workers/createWallOutlineGeometry.js +23 -23
  319. package/Build/Workers/decodeDraco.js +10 -10
  320. package/Build/Workers/decodeGoogleEarthEnterprisePacket.js +58 -44
  321. package/Build/Workers/decodeI3S.js +10 -10
  322. package/Build/Workers/gaussianSplatSorter.js +4 -4
  323. package/Build/Workers/gaussianSplatTextureGenerator.js +4 -4
  324. package/Build/Workers/incrementallyBuildTerrainPicker.js +10 -10
  325. package/Build/Workers/transcodeKTX2.js +6 -6
  326. package/Build/Workers/transferTypedArrayTest.js +1 -1
  327. package/Build/Workers/upsampleQuantizedTerrainMesh.js +23 -23
  328. package/Build/Workers/upsampleVerticesFromCesium3DTilesTerrain.js +26 -26
  329. package/Source/Core/ScreenSpaceEventHandler.js +19 -0
  330. package/Source/DataSources/PolylineGeometryUpdater.js +65 -15
  331. package/Source/Scene/GroundPolylinePrimitive.js +64 -19
  332. package/Source/Scene/Primitive.js +21 -2
  333. package/Source/ThirdParty/Workers/zip-web-worker.js +1 -1
  334. package/Source/ThirdParty/zip-module.wasm +0 -0
  335. package/index.d.ts +48305 -0
  336. package/index.js +372 -372
  337. package/package.json +1 -1
@@ -19,6 +19,25 @@ function getPosition(screenSpaceEventHandler, event, result) {
19
19
  const rect = element.getBoundingClientRect();
20
20
  result.x = event.clientX - rect.left;
21
21
  result.y = event.clientY - rect.top;
22
+
23
+ // When CSS transforms (e.g. transform: scale) change the rendered size without
24
+ // changing layout clientWidth/clientHeight, event offsets are in "bounding rect"
25
+ // space while the rest of Cesium (Camera#getPickRay, picking, etc.) expects
26
+ // coordinates in clientWidth/clientHeight space. Map between the two.
27
+ const rectWidth = rect.width;
28
+ const rectHeight = rect.height;
29
+ const clientWidth = element.clientWidth;
30
+ const clientHeight = element.clientHeight;
31
+ if (
32
+ rectWidth > 0.0 &&
33
+ rectHeight > 0.0 &&
34
+ clientWidth > 0 &&
35
+ clientHeight > 0
36
+ ) {
37
+ result.x = (result.x * clientWidth) / rectWidth;
38
+ result.y = (result.y * clientHeight) / rectHeight;
39
+ }
40
+
22
41
  return result;
23
42
  }
24
43
 
@@ -24,6 +24,7 @@ import PolylineColorAppearance from "../Scene/PolylineColorAppearance.js";
24
24
  import PolylineMaterialAppearance from "../Scene/PolylineMaterialAppearance.js";
25
25
  import ShadowMode from "../Scene/ShadowMode.js";
26
26
  import BoundingSphereState from "./BoundingSphereState.js";
27
+ import CallbackProperty from "./CallbackProperty.js";
27
28
  import ColorMaterialProperty from "./ColorMaterialProperty.js";
28
29
  import ConstantProperty from "./ConstantProperty.js";
29
30
  import MaterialProperty from "./MaterialProperty.js";
@@ -528,7 +529,11 @@ PolylineGeometryUpdater.prototype._onEntityPropertyChanged = function (
528
529
  const clampToGround = polyline.clampToGround;
529
530
  const granularity = polyline.granularity;
530
531
 
532
+ // CallbackProperty's isConstant means "same value at any simulation time", but the callback
533
+ // may still read mutable external state (e.g. live GPS). Those polylines must use the dynamic
534
+ // updater so positions are sampled every frame at the current clock time.
531
535
  if (
536
+ positionsProperty instanceof CallbackProperty ||
532
537
  !positionsProperty.isConstant ||
533
538
  !Property.isConstant(width) ||
534
539
  !Property.isConstant(arcType) ||
@@ -672,6 +677,21 @@ function getLine(dynamicGeometryUpdater) {
672
677
  return line;
673
678
  }
674
679
 
680
+ function invalidateGroundPolylinePrimitiveGeometry(groundPolylinePrimitive) {
681
+ groundPolylinePrimitive._retainedGeometryInstances = undefined;
682
+ if (defined(groundPolylinePrimitive._primitive)) {
683
+ groundPolylinePrimitive._primitive =
684
+ groundPolylinePrimitive._primitive.destroy();
685
+ groundPolylinePrimitive._primitive = undefined;
686
+ }
687
+ groundPolylinePrimitive._ready = false;
688
+ if (defined(groundPolylinePrimitive._sp)) {
689
+ groundPolylinePrimitive._sp = groundPolylinePrimitive._sp.destroy();
690
+ }
691
+ groundPolylinePrimitive._sp2D = undefined;
692
+ groundPolylinePrimitive._spMorph = undefined;
693
+ }
694
+
675
695
  DynamicGeometryUpdater.prototype.update = function (time) {
676
696
  const geometryUpdater = this._geometryUpdater;
677
697
  const entity = geometryUpdater._entity;
@@ -706,21 +726,30 @@ DynamicGeometryUpdater.prototype.update = function (time) {
706
726
 
707
727
  const groundPrimitives = this._groundPrimitives;
708
728
 
709
- if (defined(this._groundPolylinePrimitive)) {
710
- groundPrimitives.remove(this._groundPolylinePrimitive); // destroys by default
711
- this._groundPolylinePrimitive = undefined;
712
- }
713
-
714
729
  if (geometryUpdater.clampToGround) {
715
730
  if (
716
731
  !entity.isShowing ||
717
732
  !entity.isAvailable(time) ||
718
733
  !Property.getValueOrDefault(polyline._show, time, true)
719
734
  ) {
735
+ if (defined(this._groundPolylinePrimitive)) {
736
+ groundPrimitives.remove(this._groundPolylinePrimitive);
737
+ this._groundPolylinePrimitive = undefined;
738
+ }
739
+ if (defined(this._line)) {
740
+ this._line.show = false;
741
+ }
720
742
  return;
721
743
  }
722
744
 
723
745
  if (!defined(positions) || positions.length < 2) {
746
+ if (defined(this._groundPolylinePrimitive)) {
747
+ groundPrimitives.remove(this._groundPolylinePrimitive);
748
+ this._groundPolylinePrimitive = undefined;
749
+ }
750
+ if (defined(this._line)) {
751
+ this._line.show = false;
752
+ }
724
753
  return;
725
754
  }
726
755
 
@@ -741,16 +770,32 @@ DynamicGeometryUpdater.prototype.update = function (time) {
741
770
  this._material = material;
742
771
  }
743
772
 
744
- this._groundPolylinePrimitive = groundPrimitives.add(
745
- new GroundPolylinePrimitive({
746
- geometryInstances: geometryUpdater.createFillGeometryInstance(time),
747
- appearance: appearance,
748
- classificationType:
749
- geometryUpdater.classificationTypeProperty.getValue(time),
750
- asynchronous: false,
751
- }),
752
- Property.getValueOrUndefined(geometryUpdater.zIndex, time),
753
- );
773
+ const geometryInstance = geometryUpdater.createFillGeometryInstance(time);
774
+ const classificationType =
775
+ geometryUpdater.classificationTypeProperty.getValue(time);
776
+ const zIndex = Property.getValueOrUndefined(geometryUpdater.zIndex, time);
777
+ const zIndexKey = zIndex ?? 0;
778
+
779
+ if (!defined(this._groundPolylinePrimitive)) {
780
+ this._groundPolylinePrimitive = groundPrimitives.add(
781
+ new GroundPolylinePrimitive({
782
+ geometryInstances: geometryInstance,
783
+ appearance: appearance,
784
+ classificationType: classificationType,
785
+ asynchronous: false,
786
+ }),
787
+ zIndex,
788
+ );
789
+ } else {
790
+ const groundPolylinePrimitive = this._groundPolylinePrimitive;
791
+ if (groundPolylinePrimitive._zIndex !== zIndexKey) {
792
+ groundPrimitives.set(groundPolylinePrimitive, zIndexKey);
793
+ }
794
+ groundPolylinePrimitive.geometryInstances = geometryInstance;
795
+ invalidateGroundPolylinePrimitiveGeometry(groundPolylinePrimitive);
796
+ groundPolylinePrimitive.appearance = appearance;
797
+ groundPolylinePrimitive.classificationType = classificationType;
798
+ }
754
799
 
755
800
  // Hide the polyline in the collection, if any
756
801
  if (defined(this._line)) {
@@ -759,6 +804,11 @@ DynamicGeometryUpdater.prototype.update = function (time) {
759
804
  return;
760
805
  }
761
806
 
807
+ if (defined(this._groundPolylinePrimitive)) {
808
+ groundPrimitives.remove(this._groundPolylinePrimitive);
809
+ this._groundPolylinePrimitive = undefined;
810
+ }
811
+
762
812
  const line = getLine(this);
763
813
 
764
814
  if (
@@ -182,6 +182,9 @@ function GroundPolylinePrimitive(options) {
182
182
 
183
183
  this._retainedGeometryInstances = undefined;
184
184
 
185
+ /** @private Root {@link GroundPolylineGeometry} ref from the last inner {@link Primitive} build. */
186
+ this._lastGroundPolylineRootGeometry = undefined;
187
+
185
188
  this._ready = false;
186
189
  this._primitive = undefined;
187
190
 
@@ -316,19 +319,30 @@ GroundPolylinePrimitive.initializeTerrainHeights = function () {
316
319
  return ApproximateTerrainHeights.initialize();
317
320
  };
318
321
 
322
+ function normalizeGeometryInstances(instances) {
323
+ if (!defined(instances)) {
324
+ return instances;
325
+ }
326
+ return Array.isArray(instances) ? instances : [instances];
327
+ }
328
+
319
329
  function verticalExaggerationMatchesFrameState(geometryInstances, frameState) {
320
- if (!defined(geometryInstances)) {
330
+ const instances = normalizeGeometryInstances(geometryInstances);
331
+ if (!defined(instances)) {
321
332
  return true;
322
333
  }
323
334
  const ex = frameState.verticalExaggeration;
324
335
  const exRel = frameState.verticalExaggerationRelativeHeight;
325
- const length = geometryInstances.length;
336
+ const length = instances.length;
326
337
  for (let i = 0; i < length; ++i) {
327
- const geom = geometryInstances[i].geometry;
328
- if (
329
- geom._verticalExaggeration !== ex ||
330
- geom._verticalExaggerationRelativeHeight !== exRel
331
- ) {
338
+ const instance = instances[i];
339
+ if (!defined(instance) || !defined(instance.geometry)) {
340
+ return false;
341
+ }
342
+ const geom = instance.geometry;
343
+ const geomEx = geom._verticalExaggeration ?? 1.0;
344
+ const geomExRel = geom._verticalExaggerationRelativeHeight ?? 0.0;
345
+ if (geomEx !== ex || geomExRel !== exRel) {
332
346
  return false;
333
347
  }
334
348
  }
@@ -689,6 +703,20 @@ GroundPolylinePrimitive.prototype.update = function (frameState) {
689
703
  return;
690
704
  }
691
705
 
706
+ let i;
707
+
708
+ const that = this;
709
+ const primitiveOptions = this._primitiveOptions;
710
+
711
+ if (
712
+ defined(this.geometryInstances) &&
713
+ !defined(this._retainedGeometryInstances)
714
+ ) {
715
+ this._retainedGeometryInstances = Array.isArray(this.geometryInstances)
716
+ ? this.geometryInstances.slice()
717
+ : [this.geometryInstances];
718
+ }
719
+
692
720
  if (!ApproximateTerrainHeights.initialized) {
693
721
  //>>includeStart('debug', pragmas.debug);
694
722
  if (!this.asynchronous) {
@@ -702,23 +730,37 @@ GroundPolylinePrimitive.prototype.update = function (frameState) {
702
730
  return;
703
731
  }
704
732
 
705
- let i;
733
+ const sourceGeometryInstances = normalizeGeometryInstances(
734
+ this.geometryInstances ?? this._retainedGeometryInstances,
735
+ );
706
736
 
707
- const that = this;
708
- const primitiveOptions = this._primitiveOptions;
737
+ let rootGeometryFromSource;
738
+ if (defined(sourceGeometryInstances)) {
739
+ const src0 = sourceGeometryInstances[0];
740
+ if (defined(src0) && defined(src0.geometry)) {
741
+ rootGeometryFromSource = src0.geometry;
742
+ }
743
+ }
709
744
 
745
+ // New GeometryInstances (e.g. dynamic Entity polylines) assign a fresh GroundPolylineGeometry
746
+ // each frame. Destroy the inner Primitive when the source geometry object changes; otherwise
747
+ // we would keep rendering the previous combineGeometry result.
710
748
  if (
711
- defined(this.geometryInstances) &&
712
- !defined(this._retainedGeometryInstances)
749
+ defined(this._primitive) &&
750
+ defined(rootGeometryFromSource) &&
751
+ rootGeometryFromSource !== this._lastGroundPolylineRootGeometry
713
752
  ) {
714
- this._retainedGeometryInstances = Array.isArray(this.geometryInstances)
715
- ? this.geometryInstances.slice()
716
- : [this.geometryInstances];
753
+ this._primitive = this._primitive.destroy();
754
+ this._primitive = undefined;
755
+ this._ready = false;
756
+ if (defined(this._sp)) {
757
+ this._sp = this._sp.destroy();
758
+ }
759
+ this._sp2D = undefined;
760
+ this._spMorph = undefined;
761
+ this._lastGroundPolylineRootGeometry = undefined;
717
762
  }
718
763
 
719
- const sourceGeometryInstances =
720
- this.geometryInstances ?? this._retainedGeometryInstances;
721
-
722
764
  if (
723
765
  defined(this._primitive) &&
724
766
  !verticalExaggerationMatchesFrameState(sourceGeometryInstances, frameState)
@@ -740,6 +782,7 @@ GroundPolylinePrimitive.prototype.update = function (frameState) {
740
782
 
741
783
  let attributes;
742
784
 
785
+ this._hasPerInstanceColors = true;
743
786
  // Check if each instance has a color attribute.
744
787
  for (i = 0; i < geometryInstancesLength; ++i) {
745
788
  attributes = geometryInstances[i].attributes;
@@ -752,7 +795,7 @@ GroundPolylinePrimitive.prototype.update = function (frameState) {
752
795
  for (i = 0; i < geometryInstancesLength; ++i) {
753
796
  const geometryInstance = geometryInstances[i];
754
797
  attributes = {};
755
- const instanceAttributes = geometryInstance.attributes;
798
+ const instanceAttributes = geometryInstance.attributes ?? {};
756
799
  for (const attributeKey in instanceAttributes) {
757
800
  if (instanceAttributes.hasOwnProperty(attributeKey)) {
758
801
  attributes[attributeKey] = instanceAttributes[attributeKey];
@@ -837,6 +880,7 @@ GroundPolylinePrimitive.prototype.update = function (frameState) {
837
880
  };
838
881
 
839
882
  this._primitive = new Primitive(primitiveOptions);
883
+ this._lastGroundPolylineRootGeometry = rootGeometryFromSource;
840
884
  }
841
885
 
842
886
  if (
@@ -932,6 +976,7 @@ GroundPolylinePrimitive.prototype.isDestroyed = function () {
932
976
  * @see GroundPolylinePrimitive#isDestroyed
933
977
  */
934
978
  GroundPolylinePrimitive.prototype.destroy = function () {
979
+ this._lastGroundPolylineRootGeometry = undefined;
935
980
  this._primitive = this._primitive && this._primitive.destroy();
936
981
  this._sp = this._sp && this._sp.destroy();
937
982
 
@@ -485,7 +485,14 @@ function getCommonPerInstanceAttributeNames(instances) {
485
485
  const length = instances.length;
486
486
 
487
487
  const attributesInAllInstances = [];
488
+ if (length === 0 || !defined(instances[0])) {
489
+ return attributesInAllInstances;
490
+ }
491
+
488
492
  const attributes0 = instances[0].attributes;
493
+ if (!defined(attributes0)) {
494
+ return attributesInAllInstances;
495
+ }
489
496
  let name;
490
497
 
491
498
  for (name in attributes0) {
@@ -495,7 +502,13 @@ function getCommonPerInstanceAttributeNames(instances) {
495
502
 
496
503
  // Does this same attribute exist in all instances?
497
504
  for (let i = 1; i < length; ++i) {
498
- const otherAttribute = instances[i].attributes[name];
505
+ const otherInstance = instances[i];
506
+ const otherAttributes = defined(otherInstance)
507
+ ? otherInstance.attributes
508
+ : undefined;
509
+ const otherAttribute = defined(otherAttributes)
510
+ ? otherAttributes[name]
511
+ : undefined;
499
512
 
500
513
  if (
501
514
  !defined(otherAttribute) ||
@@ -537,11 +550,14 @@ function getAttributeValue(value) {
537
550
 
538
551
  function createBatchTable(primitive, context) {
539
552
  const geometryInstances = primitive.geometryInstances;
553
+ if (!defined(geometryInstances)) {
554
+ return;
555
+ }
540
556
  const instances = Array.isArray(geometryInstances)
541
557
  ? geometryInstances
542
558
  : [geometryInstances];
543
559
  const numberOfInstances = instances.length;
544
- if (numberOfInstances === 0) {
560
+ if (numberOfInstances === 0 || !defined(instances[0])) {
545
561
  return;
546
562
  }
547
563
 
@@ -2109,6 +2125,9 @@ Primitive.prototype.update = function (frameState) {
2109
2125
  if (!defined(this._batchTable)) {
2110
2126
  createBatchTable(this, context);
2111
2127
  }
2128
+ if (!defined(this._batchTable)) {
2129
+ return;
2130
+ }
2112
2131
  if (this._batchTable.attributes.length > 0) {
2113
2132
  if (ContextLimits.maximumVertexTextureImageUnits === 0) {
2114
2133
  throw new RuntimeError(
@@ -1 +1 @@
1
- !function(){"use strict";const{Array:e,Object:t,Number:n,Math:s,Error:r,Uint8Array:i,Uint16Array:a,Uint32Array:o,Int32Array:c,Map:l,DataView:u,Promise:h,TextEncoder:f,crypto:p,postMessage:d,TransformStream:w,ReadableStream:g,WritableStream:m,CompressionStream:_,DecompressionStream:y}=self,b=void 0,S="undefined",z="function",k=[];for(let e=0;256>e;e++){let t=e;for(let e=0;8>e;e++)1&t?t=t>>>1^3988292384:t>>>=1;k[e]=t}class v{constructor(e){this.crc=e||-1}append(e){let t=0|this.crc;for(let n=0,s=0|e.length;s>n;n++)t=t>>>8^k[255&(t^e[n])];this.crc=t}get(){return~this.crc}}class H extends w{constructor(){let e;const t=new v;super({transform(e,n){t.append(e),n.enqueue(e)},flush(){const n=new i(4);new u(n.buffer).setUint32(0,t.get()),e.value=n}}),e=this}}const C={concat(e,t){if(0===e.length||0===t.length)return e.concat(t);const n=e[e.length-1],s=C.getPartial(n);return 32===s?e.concat(t):C._shiftRight(t,s,0|n,e.slice(0,e.length-1))},bitLength(e){const t=e.length;if(0===t)return 0;const n=e[t-1];return 32*(t-1)+C.getPartial(n)},clamp(e,t){if(32*e.length<t)return e;const n=(e=e.slice(0,s.ceil(t/32))).length;return t&=31,n>0&&t&&(e[n-1]=C.partial(t,e[n-1]&2147483648>>t-1,1)),e},partial:(e,t,n)=>32===e?t:(n?0|t:t<<32-e)+1099511627776*e,getPartial:e=>s.round(e/1099511627776)||32,_shiftRight(e,t,n,s){for(void 0===s&&(s=[]);t>=32;t-=32)s.push(n),n=0;if(0===t)return s.concat(e);for(let r=0;r<e.length;r++)s.push(n|e[r]>>>t),n=e[r]<<32-t;const r=e.length?e[e.length-1]:0,i=C.getPartial(r);return s.push(C.partial(t+i&31,t+i>32?n:s.pop(),1)),s}},B={bytes:{fromBits(e){const t=C.bitLength(e)/8,n=new i(t);let s;for(let r=0;t>r;r++)3&r||(s=e[r/4]),n[r]=s>>>24,s<<=8;return n},toBits(e){const t=[];let n,s=0;for(n=0;n<e.length;n++)s=s<<8|e[n],3&~n||(t.push(s),s=0);return 3&n&&t.push(C.partial(8*(3&n),s)),t}}},A=class{constructor(e){const t=this;t.blockSize=512,t._init=[1732584193,4023233417,2562383102,271733878,3285377520],t._key=[1518500249,1859775393,2400959708,3395469782],e?(t._h=e._h.slice(0),t._buffer=e._buffer.slice(0),t._length=e._length):t.reset()}reset(){const e=this;return e._h=e._init.slice(0),e._buffer=[],e._length=0,e}update(e){const t=this;"string"==typeof e&&(e=B.utf8String.toBits(e));const n=t._buffer=C.concat(t._buffer,e),s=t._length,i=t._length=s+C.bitLength(e);if(i>9007199254740991)throw new r("Cannot hash more than 2^53 - 1 bits");const a=new o(n);let c=0;for(let e=t.blockSize+s-(t.blockSize+s&t.blockSize-1);i>=e;e+=t.blockSize)t._block(a.subarray(16*c,16*(c+1))),c+=1;return n.splice(0,16*c),t}finalize(){const e=this;let t=e._buffer;const n=e._h;t=C.concat(t,[C.partial(1,1)]);for(let e=t.length+2;15&e;e++)t.push(0);for(t.push(s.floor(e._length/4294967296)),t.push(0|e._length);t.length;)e._block(t.splice(0,16));return e.reset(),n}_f(e,t,n,s){return e>19?e>39?e>59?e>79?void 0:t^n^s:t&n|t&s|n&s:t^n^s:t&n|~t&s}_S(e,t){return t<<e|t>>>32-e}_block(t){const n=this,r=n._h,i=e(80);for(let e=0;16>e;e++)i[e]=t[e];let a=r[0],o=r[1],c=r[2],l=r[3],u=r[4];for(let e=0;79>=e;e++){16>e||(i[e]=n._S(1,i[e-3]^i[e-8]^i[e-14]^i[e-16]));const t=n._S(5,a)+n._f(e,o,c,l)+u+i[e]+n._key[s.floor(e/20)]|0;u=l,l=c,c=n._S(30,o),o=a,a=t}r[0]=r[0]+a|0,r[1]=r[1]+o|0,r[2]=r[2]+c|0,r[3]=r[3]+l|0,r[4]=r[4]+u|0}},R={getRandomValues(e){const t=new o(e.buffer),n=e=>{let t=987654321;const n=4294967295;return()=>(t=36969*(65535&t)+(t>>16)&n,(((t<<16)+(e=18e3*(65535&e)+(e>>16)&n)&n)/4294967296+.5)*(s.random()>.5?1:-1))};for(let r,i=0;i<e.length;i+=4){const e=n(4294967296*(r||s.random()));r=987654071*e(),t[i/4]=4294967296*e()|0}return e}},I={importKey:e=>new I.hmacSha1(B.bytes.toBits(e)),pbkdf2(e,t,n,s){if(n=n||1e4,0>s||0>n)throw new r("invalid params to pbkdf2");const i=1+(s>>5)<<2;let a,o,c,l,h;const f=new ArrayBuffer(i),p=new u(f);let d=0;const w=C;for(t=B.bytes.toBits(t),h=1;(i||1)>d;h++){for(a=o=e.encrypt(w.concat(t,[h])),c=1;n>c;c++)for(o=e.encrypt(o),l=0;l<o.length;l++)a[l]^=o[l];for(c=0;(i||1)>d&&c<a.length;c++)p.setInt32(d,a[c]),d+=4}return f.slice(0,s/8)},hmacSha1:class{constructor(e){const t=this,n=t._hash=A,s=[[],[]];t._baseHash=[new n,new n];const r=t._baseHash[0].blockSize/32;e.length>r&&(e=(new n).update(e).finalize());for(let t=0;r>t;t++)s[0][t]=909522486^e[t],s[1][t]=1549556828^e[t];t._baseHash[0].update(s[0]),t._baseHash[1].update(s[1]),t._resultHash=new n(t._baseHash[0])}reset(){const e=this;e._resultHash=new e._hash(e._baseHash[0]),e._updated=!1}update(e){this._updated=!0,this._resultHash.update(e)}digest(){const e=this,t=e._resultHash.finalize(),n=new e._hash(e._baseHash[1]).update(t).finalize();return e.reset(),n}encrypt(e){if(this._updated)throw new r("encrypt on already updated hmac called!");return this.update(e),this.digest(e)}}},q=typeof p!=S&&typeof p.getRandomValues==z,K="Invalid password",P="Invalid signature",T="zipjs-abort-check-password";function V(e){return q?p.getRandomValues(e):R.getRandomValues(e)}const x=16,U={name:"PBKDF2"},W=t.assign({hash:{name:"HMAC"}},U),M=t.assign({iterations:1e3,hash:{name:"SHA-1"}},U),E=["deriveBits"],D=[8,12,16],L=[16,24,32],Z=10,F=[0,0,0,0],N=typeof p!=S,O=N&&p.subtle,j=N&&typeof O!=S,G=B.bytes,X=class{constructor(e){const t=this;t._tables=[[[],[],[],[],[]],[[],[],[],[],[]]],t._tables[0][0][0]||t._precompute();const n=t._tables[0][4],s=t._tables[1],i=e.length;let a,o,c,l=1;if(4!==i&&6!==i&&8!==i)throw new r("invalid aes key size");for(t._key=[o=e.slice(0),c=[]],a=i;4*i+28>a;a++){let e=o[a-1];(a%i===0||8===i&&a%i===4)&&(e=n[e>>>24]<<24^n[e>>16&255]<<16^n[e>>8&255]<<8^n[255&e],a%i===0&&(e=e<<8^e>>>24^l<<24,l=l<<1^283*(l>>7))),o[a]=o[a-i]^e}for(let e=0;a;e++,a--){const t=o[3&e?a:a-4];c[e]=4>=a||4>e?t:s[0][n[t>>>24]]^s[1][n[t>>16&255]]^s[2][n[t>>8&255]]^s[3][n[255&t]]}}encrypt(e){return this._crypt(e,0)}decrypt(e){return this._crypt(e,1)}_precompute(){const e=this._tables[0],t=this._tables[1],n=e[4],s=t[4],r=[],i=[];let a,o,c,l;for(let e=0;256>e;e++)i[(r[e]=e<<1^283*(e>>7))^e]=e;for(let u=a=0;!n[u];u^=o||1,a=i[a]||1){let i=a^a<<1^a<<2^a<<3^a<<4;i=i>>8^255&i^99,n[u]=i,s[i]=u,l=r[c=r[o=r[u]]];let h=16843009*l^65537*c^257*o^16843008*u,f=257*r[i]^16843008*i;for(let n=0;4>n;n++)e[n][u]=f=f<<24^f>>>8,t[n][i]=h=h<<24^h>>>8}for(let n=0;5>n;n++)e[n]=e[n].slice(0),t[n]=t[n].slice(0)}_crypt(e,t){if(4!==e.length)throw new r("invalid aes block size");const n=this._key[t],s=n.length/4-2,i=[0,0,0,0],a=this._tables[t],o=a[0],c=a[1],l=a[2],u=a[3],h=a[4];let f,p,d,w=e[0]^n[0],g=e[t?3:1]^n[1],m=e[2]^n[2],_=e[t?1:3]^n[3],y=4;for(let e=0;s>e;e++)f=o[w>>>24]^c[g>>16&255]^l[m>>8&255]^u[255&_]^n[y],p=o[g>>>24]^c[m>>16&255]^l[_>>8&255]^u[255&w]^n[y+1],d=o[m>>>24]^c[_>>16&255]^l[w>>8&255]^u[255&g]^n[y+2],_=o[_>>>24]^c[w>>16&255]^l[g>>8&255]^u[255&m]^n[y+3],y+=4,w=f,g=p,m=d;for(let e=0;4>e;e++)i[t?3&-e:e]=h[w>>>24]<<24^h[g>>16&255]<<16^h[m>>8&255]<<8^h[255&_]^n[y++],f=w,w=g,g=m,m=_,_=f;return i}},J=class{constructor(e,t){this._prf=e,this._initIv=t,this._iv=t}reset(){this._iv=this._initIv}update(e){return this.calculate(this._prf,e,this._iv)}incWord(e){if(255&~(e>>24))e+=1<<24;else{let t=e>>16&255,n=e>>8&255,s=255&e;255===t?(t=0,255===n?(n=0,255===s?s=0:++s):++n):++t,e=0,e+=t<<16,e+=n<<8,e+=s}return e}incCounter(e){0===(e[0]=this.incWord(e[0]))&&(e[1]=this.incWord(e[1]))}calculate(e,t,n){let s;if(!(s=t.length))return[];const r=C.bitLength(t);for(let r=0;s>r;r+=4){this.incCounter(n);const s=e.encrypt(n);t[r]^=s[0],t[r+1]^=s[1],t[r+2]^=s[2],t[r+3]^=s[3]}return C.clamp(t,r)}},Q=I.hmacSha1;let Y=N&&j&&typeof O.importKey==z,$=N&&j&&typeof O.deriveBits==z;class ee extends w{constructor({password:e,rawPassword:n,signed:s,encryptionStrength:a,checkPasswordOnly:o}){super({start(){t.assign(this,{ready:new h(e=>this.resolveReady=e),password:re(e,n),signed:s,strength:a-1,pending:new i})},async transform(e,t){const n=this,{password:s,strength:a,resolveReady:c,ready:l}=n;s?(await(async(e,t,n,s)=>{const i=await se(e,t,n,ae(s,0,D[t])),a=ae(s,D[t]);if(i[0]!=a[0]||i[1]!=a[1])throw new r(K)})(n,a,s,ae(e,0,D[a]+2)),e=ae(e,D[a]+2),o?t.error(new r(T)):c()):await l;const u=new i(e.length-Z-(e.length-Z)%x);t.enqueue(ne(n,e,u,0,Z,!0))},async flush(e){const{signed:t,ctr:n,hmac:s,pending:a,ready:o}=this;if(s&&n){await o;const c=ae(a,0,a.length-Z),l=ae(a,a.length-Z);let u=new i;if(c.length){const e=ce(G,c);s.update(e);const t=n.update(e);u=oe(G,t)}if(t){const e=ae(oe(G,s.digest()),0,Z);for(let t=0;Z>t;t++)if(e[t]!=l[t])throw new r(P)}e.enqueue(u)}}})}}class te extends w{constructor({password:e,rawPassword:n,encryptionStrength:s}){let r;super({start(){t.assign(this,{ready:new h(e=>this.resolveReady=e),password:re(e,n),strength:s-1,pending:new i})},async transform(e,t){const n=this,{password:s,strength:r,resolveReady:a,ready:o}=n;let c=new i;s?(c=await(async(e,t,n)=>{const s=V(new i(D[t]));return ie(s,await se(e,t,n,s))})(n,r,s),a()):await o;const l=new i(c.length+e.length-e.length%x);l.set(c,0),t.enqueue(ne(n,e,l,c.length,0))},async flush(e){const{ctr:t,hmac:n,pending:s,ready:a}=this;if(n&&t){await a;let o=new i;if(s.length){const e=t.update(ce(G,s));n.update(e),o=oe(G,e)}r.signature=oe(G,n.digest()).slice(0,Z),e.enqueue(ie(o,r.signature))}}}),r=this}}function ne(e,t,n,s,r,a){const{ctr:o,hmac:c,pending:l}=e,u=t.length-r;let h;for(l.length&&(t=ie(l,t),n=((e,t)=>{if(t&&t>e.length){const n=e;(e=new i(t)).set(n,0)}return e})(n,u-u%x)),h=0;u-x>=h;h+=x){const e=ce(G,ae(t,h,h+x));a&&c.update(e);const r=o.update(e);a||c.update(r),n.set(oe(G,r),h+s)}return e.pending=ae(t,h),n}async function se(n,s,r,a){n.password=null;const o=await(async(e,t,n,s,r)=>{if(!Y)return I.importKey(t);try{return await O.importKey("raw",t,n,!1,r)}catch{return Y=!1,I.importKey(t)}})(0,r,W,0,E),c=await(async(e,t,n)=>{if(!$)return I.pbkdf2(t,e.salt,M.iterations,n);try{return await O.deriveBits(e,t,n)}catch{return $=!1,I.pbkdf2(t,e.salt,M.iterations,n)}})(t.assign({salt:a},M),o,8*(2*L[s]+2)),l=new i(c),u=ce(G,ae(l,0,L[s])),h=ce(G,ae(l,L[s],2*L[s])),f=ae(l,2*L[s]);return t.assign(n,{keys:{key:u,authentication:h,passwordVerification:f},ctr:new J(new X(u),e.from(F)),hmac:new Q(h)}),f}function re(e,t){return t===b?(e=>{if(typeof f==S){const t=new i((e=unescape(encodeURIComponent(e))).length);for(let n=0;n<t.length;n++)t[n]=e.charCodeAt(n);return t}return(new f).encode(e)})(e):t}function ie(e,t){let n=e;return e.length+t.length&&(n=new i(e.length+t.length),n.set(e,0),n.set(t,e.length)),n}function ae(e,t,n){return e.subarray(t,n)}function oe(e,t){return e.fromBits(t)}function ce(e,t){return e.toBits(t)}class le extends w{constructor({password:e,passwordVerification:n,checkPasswordOnly:s}){super({start(){t.assign(this,{password:e,passwordVerification:n}),pe(this,e)},transform(e,t){const n=this;if(n.password){const t=he(n,e.subarray(0,12));if(n.password=null,t.at(-1)!=n.passwordVerification)throw new r(K);e=e.subarray(12)}s?t.error(new r(T)):t.enqueue(he(n,e))}})}}class ue extends w{constructor({password:e,passwordVerification:n}){super({start(){t.assign(this,{password:e,passwordVerification:n}),pe(this,e)},transform(e,t){const n=this;let s,r;if(n.password){n.password=null;const t=V(new i(12));t[11]=n.passwordVerification,s=new i(e.length+t.length),s.set(fe(n,t),0),r=12}else s=new i(e.length),r=0;s.set(fe(n,e),r),t.enqueue(s)}})}}function he(e,t){const n=new i(t.length);for(let s=0;s<t.length;s++)n[s]=we(e)^t[s],de(e,n[s]);return n}function fe(e,t){const n=new i(t.length);for(let s=0;s<t.length;s++)n[s]=we(e)^t[s],de(e,t[s]);return n}function pe(e,n){const s=[305419896,591751049,878082192];t.assign(e,{keys:s,crcKey0:new v(s[0]),crcKey2:new v(s[2])});for(let t=0;t<n.length;t++)de(e,n.charCodeAt(t))}function de(e,t){let[n,r,i]=e.keys;e.crcKey0.append([t]),n=~e.crcKey0.get(),r=me(s.imul(me(r+ge(n)),134775813)+1),e.crcKey2.append([r>>>24]),i=~e.crcKey2.get(),e.keys=[n,r,i]}function we(e){const t=2|e.keys[2];return ge(s.imul(t,1^t)>>>8)}function ge(e){return 255&e}function me(e){return 4294967295&e}class _e extends w{constructor(e,{chunkSize:t,CompressionStreamZlib:n,CompressionStream:s}){super({});const{compressed:r,encrypted:i,useCompressionStream:a,zipCrypto:o,signed:c,level:l}=e,h=this;let f,p,d=super.readable;i&&!o||!c||(f=new H,d=ze(d,f)),r&&(d=Se(d,a,{level:l,chunkSize:t},s,n,s)),i&&(o?d=ze(d,new ue(e)):(p=new te(e),d=ze(d,p))),be(h,d,()=>{let e;i&&!o&&(e=p.signature),i&&!o||!c||(e=new u(f.value.buffer).getUint32(0)),h.signature=e})}}class ye extends w{constructor(e,{chunkSize:t,DecompressionStreamZlib:n,DecompressionStream:s}){super({});const{zipCrypto:i,encrypted:a,signed:o,signature:c,compressed:l,useCompressionStream:h,deflate64:f}=e;let p,d,w=super.readable;a&&(i?w=ze(w,new le(e)):(d=new ee(e),w=ze(w,d))),l&&(w=Se(w,h,{chunkSize:t,deflate64:f},s,n,s)),a&&!i||!o||(p=new H,w=ze(w,p)),be(this,w,()=>{if((!a||i)&&o){const e=new u(p.value.buffer);if(c!=e.getUint32(0,!1))throw new r(P)}})}}function be(e,n,s){n=ze(n,new w({flush:s})),t.defineProperty(e,"readable",{get:()=>n})}function Se(e,t,n,s,r,i){const a=t&&s?s:r||i,o=n.deflate64?"deflate64-raw":"deflate-raw";try{e=ze(e,new a(o,n))}catch(s){if(!t)throw s;if(r)e=ze(e,new r(o,n));else{if(!i)throw s;e=ze(e,new i(o,n))}}return e}function ze(e,t){return e.pipeThrough(t)}const ke="data",ve="close";class He extends w{constructor(e,n){super({});const s=this,{codecType:i}=e;let a;i.startsWith("deflate")?a=_e:i.startsWith("inflate")&&(a=ye),s.outputSize=0;let o=0;const c=new a(e,n),l=super.readable,u=new w({transform(e,t){e&&e.length&&(o+=e.length,t.enqueue(e))},flush(){t.assign(s,{inputSize:o})}}),h=new w({transform(t,n){if(t&&t.length&&(n.enqueue(t),s.outputSize+=t.length,e.outputSize!==b&&s.outputSize>e.outputSize))throw new r("Invalid uncompressed size")},flush(){const{signature:e}=c;t.assign(s,{signature:e,inputSize:o})}});t.defineProperty(s,"readable",{get:()=>l.pipeThrough(u).pipeThrough(c).pipeThrough(h)})}}class Ce extends w{constructor(e){let t;super({transform:function n(s,r){if(t){const e=new i(t.length+s.length);e.set(t),e.set(s,t.length),s=e,t=null}s.length>e?(r.enqueue(s.slice(0,e)),n(s.slice(e),r)):t=s},flush(e){t&&t.length&&e.enqueue(t)}})}}const Be=new l,Ae=new l;let Re,Ie,qe,Ke,Pe,Te=0;async function Ve(e){try{const{options:t,config:s}=e;if(!t.useCompressionStream)try{await self.initModule(e.config)}catch{t.useCompressionStream=!0}s.CompressionStream=self.CompressionStream,s.DecompressionStream=self.DecompressionStream;const r={highWaterMark:1},i=e.readable||new g({async pull(e){const t=new h(e=>Be.set(Te,e));xe({type:"pull",messageId:Te}),Te=(Te+1)%n.MAX_SAFE_INTEGER;const{value:s,done:r}=await t;e.enqueue(s),r&&e.close()}},r),a=e.writable||new m({async write(e){let t;const s=new h(e=>t=e);Ae.set(Te,t),xe({type:ke,value:e,messageId:Te}),Te=(Te+1)%n.MAX_SAFE_INTEGER,await s}},r),o=new He(t,s);Re=new AbortController;const{signal:c}=Re;await i.pipeThrough(o).pipeThrough(new Ce(s.chunkSize)).pipeTo(a,{signal:c,preventClose:!0,preventAbort:!0}),await a.getWriter().close();const{signature:l,inputSize:u,outputSize:f}=o;xe({type:ve,result:{signature:l,inputSize:u,outputSize:f}})}catch(e){e.outputSize=0,Ue(e)}}function xe(e){let{value:t}=e;if(t)if(t.length)try{t=new i(t),e.value=t.buffer,d(e,[e.value])}catch{d(e)}else d(e);else d(e)}function Ue(e=new r("Unknown error")){const{message:t,stack:n,code:s,name:i,outputSize:a}=e;d({error:{message:t,stack:n,code:s,name:i,outputSize:a}})}function We(e,t,n={}){const a="number"==typeof n.level?n.level:-1,o="number"==typeof n.outBuffer?n.outBuffer:65536,c="number"==typeof n.inBufferSize?n.inBufferSize:65536;return new w({start(){let n;if(this.out=qe(o),this.in=qe(c),this.inBufferSize=c,this._scratch=new i(o),e?(this._process=Ie.deflate_process,this._last_consumed=Ie.deflate_last_consumed,this._end=Ie.deflate_end,this.streamHandle=Ie.deflate_new(),n="gzip"===t?Ie.deflate_init_gzip(this.streamHandle,a):"deflate-raw"===t?Ie.deflate_init_raw(this.streamHandle,a):Ie.deflate_init(this.streamHandle,a)):"deflate64-raw"===t?(this._process=Ie.inflate9_process,this._last_consumed=Ie.inflate9_last_consumed,this._end=Ie.inflate9_end,this.streamHandle=Ie.inflate9_new(),n=Ie.inflate9_init_raw(this.streamHandle)):(this._process=Ie.inflate_process,this._last_consumed=Ie.inflate_last_consumed,this._end=Ie.inflate_end,this.streamHandle=Ie.inflate_new(),n="deflate-raw"===t?Ie.inflate_init_raw(this.streamHandle):"gzip"===t?Ie.inflate_init_gzip(this.streamHandle):Ie.inflate_init(this.streamHandle)),0!==n)throw new r("init failed:"+n)},transform(t,n){try{const a=t,c=new i(Pe.buffer),l=this._process,u=this._last_consumed,h=this.out,f=this._scratch;let p=0;for(;p<a.length;){const t=s.min(a.length-p,32768);this.in&&this.inBufferSize>=t||(this.in&&Ke&&Ke(this.in),this.in=qe(t),this.inBufferSize=t),c.set(a.subarray(p,p+t),this.in);const i=l(this.streamHandle,this.in,t,h,o,0),d=16777215&i;if(d&&(f.set(c.subarray(h,h+d),0),n.enqueue(f.slice(0,d))),!e){const e=i>>24&255,t=128&e?e-256:e;if(0>t)throw new r("process error:"+t)}const w=u(this.streamHandle);if(0===w)break;p+=w}}catch(e){this._end&&this.streamHandle&&this._end(this.streamHandle),this.in&&Ke&&Ke(this.in),this.out&&Ke&&Ke(this.out),n.error(e)}},flush(t){try{const n=new i(Pe.buffer),s=this._process,a=this.out,c=this._scratch;for(;;){const i=s(this.streamHandle,0,0,a,o,4),l=16777215&i,u=i>>24&255;if(!e){const e=128&u?u-256:u;if(0>e)throw new r("process error:"+e)}if(l&&(c.set(n.subarray(a,a+l),0),t.enqueue(c.slice(0,l))),1===u||0===l)break}}catch(e){t.error(e)}finally{if(this._end&&this.streamHandle){const e=this._end(this.streamHandle);0!==e&&t.error(new r("end error:"+e))}this.in&&Ke&&Ke(this.in),this.out&&Ke&&Ke(this.out)}}})}addEventListener("message",({data:e})=>{const{type:t,messageId:n,value:s,done:r}=e;try{if("start"==t&&Ve(e),t==ke){const e=Be.get(n);Be.delete(n),e({value:new i(s),done:r})}if("ack"==t){const e=Ae.get(n);Ae.delete(n),e()}t==ve&&Re.abort()}catch(e){Ue(e)}});class Me{constructor(e="deflate",t){return We(!0,e,t)}}class Ee{constructor(e="deflate",t){return We(!1,e,t)}}let De=!1;self.initModule=async e=>{try{const t=await(async(e,{baseURI:t})=>{if(!De){let n,s;try{try{s=new URL(e,t)}catch{}const r=await fetch(s);n=await r.arrayBuffer()}catch(t){if(!e.startsWith("data:application/wasm;base64,"))throw t;n=(e=>{const t=e.split(",")[1],n=atob(t),s=n.length,r=new i(s);for(let e=0;s>e;++e)r[e]=n.charCodeAt(e);return r.buffer})(e)}(e=>{if(Ie=e,({malloc:qe,free:Ke,memory:Pe}=Ie),"function"!=typeof qe||"function"!=typeof Ke||!Pe)throw Ie=qe=Ke=Pe=null,new r("Invalid WASM module")})((await WebAssembly.instantiate(n)).instance.exports),De=!0}})(e.wasmURI,e);return e.CompressionStreamZlib=Me,e.DecompressionStreamZlib=Ee,t}catch{}}}();
1
+ !function(){"use strict";const{Array:t,Object:n,Number:e,Math:s,Error:r,Uint8Array:o,Uint16Array:c,Uint32Array:i,Int32Array:a,Map:f,DataView:u,Promise:l,TextEncoder:w,crypto:h,postMessage:p,TransformStream:d,ReadableStream:y,WritableStream:m,CompressionStream:S,DecompressionStream:g}=self,v=void 0,b="undefined",k="function",z=new o,C=[[],[],[],[],[],[],[],[]];for(let t=0;t<256;t++){let n=t;for(let t=0;t<8;t++)n=1&n?n>>>1^3988292384:n>>>1;C[0][t]=n}for(let t=0;t<256;t++)for(let n=1;n<8;n++){const e=C[n-1][t];C[n][t]=e>>>8^C[0][255&e]}const[I,A,x,M,P,B,D,F]=C;class R{constructor(t){this.o=t||-1}append(t){let n=0|this.o;const e=0|t.length;let s=0;if(e>=8&&t.buffer){const r=new u(t.buffer,t.byteOffset,e),o=e-8;for(;s<=o;s+=8){const t=n^r.getInt32(s,!0),e=r.getInt32(s+4,!0);n=F[255&t]^D[t>>>8&255]^B[t>>>16&255]^P[t>>>24&255]^M[255&e]^x[e>>>8&255]^A[e>>>16&255]^I[e>>>24&255]}}for(;s<e;s++)n=n>>>8^I[255&(n^t[s])];this.o=n}get(){return~this.o}}class U extends d{constructor(){let t;const n=new R;super({transform(t,e){n.append(t),e.enqueue(t)},flush(){const e=new o(4);new u(e.buffer).setUint32(0,n.get()),t.value=e}}),t=this}}function W(t,n){const e=new o(t.length+n.length);return e.set(t),e.set(n,t.length),e}function _(t){return new u(t.buffer,t.byteOffset,t.byteLength)}const T={concat(t,n){if(0===t.length||0===n.length)return t.concat(n);const e=t[t.length-1],s=T.l(e);return 32===s?t.concat(n):T.h(n,s,0|e,t.slice(0,t.length-1))},bitLength(t){const n=t.length;if(0===n)return 0;const e=t[n-1];return 32*(n-1)+T.l(e)},m(t,n){if(32*t.length<n)return t;const e=(t=t.slice(0,s.ceil(n/32))).length;return n&=31,e>0&&n&&(t[e-1]=T.S(n,t[e-1]&2147483648>>n-1,1)),t},S:(t,n,e)=>32===t?n:(e?0|n:n<<32-t)+1099511627776*t,l:t=>s.round(t/1099511627776)||32,h(t,n,e,s){for(void 0===s&&(s=[]);n>=32;n-=32)s.push(e),e=0;if(0===n)return s.concat(t);for(let r=0;r<t.length;r++)s.push(e|t[r]>>>n),e=t[r]<<32-n;const r=t.length?t[t.length-1]:0,o=T.l(r);return s.push(T.S(n+o&31,n+o>32?e:s.pop(),1)),s}},V={bytes:{v(t){const n=T.bitLength(t)/8,e=new o(n);let s;for(let r=0;r<n;r++)3&r||(s=t[r/4]),e[r]=s>>>24,s<<=8;return e},C(t){const n=[];let e,s=0;for(e=0;e<t.length;e++)s=s<<8|t[e],3&~e||(n.push(s),s=0);return 3&e&&n.push(T.S(8*(3&e),s)),n}}},K=class{constructor(t){const n=this;n.blockSize=512,n.I=[1732584193,4023233417,2562383102,271733878,3285377520],n.A=[1518500249,1859775393,2400959708,3395469782],t?(n.M=t.M.slice(0),n.P=t.P.slice(0),n.B=t.B):n.reset()}reset(){const t=this;return t.M=t.I.slice(0),t.P=[],t.B=0,t}update(t){const n=this;"string"==typeof t&&(t=V.D.C(t));const e=n.P=T.concat(n.P,t),s=n.B,o=n.B=s+T.bitLength(t);if(o>9007199254740991)throw new r("Cannot hash more than 2^53 - 1 bits");const c=new i(e);let a=0;for(let t=n.blockSize+s-(n.blockSize+s&n.blockSize-1);t<=o;t+=n.blockSize)n.F(c.subarray(16*a,16*(a+1))),a+=1;return e.splice(0,16*a),n}R(){const t=this;let n=t.P;const e=t.M;n=T.concat(n,[T.S(1,1)]);for(let t=n.length+2;15&t;t++)n.push(0);for(n.push(s.floor(t.B/4294967296)),n.push(0|t.B);n.length;)t.F(n.splice(0,16));return t.reset(),e}U(t,n,e,s){return t<=19?n&e|~n&s:t<=39?n^e^s:t<=59?n&e|n&s|e&s:t<=79?n^e^s:void 0}W(t,n){return n<<t|n>>>32-t}F(n){const e=this,r=e.M,o=t(80);for(let t=0;t<16;t++)o[t]=n[t];let c=r[0],i=r[1],a=r[2],f=r[3],u=r[4];for(let t=0;t<=79;t++){t>=16&&(o[t]=e.W(1,o[t-3]^o[t-8]^o[t-14]^o[t-16]));const n=e.W(5,c)+e.U(t,i,a,f)+u+o[t]+e.A[s.floor(t/20)]|0;u=f,f=a,a=e.W(30,i),i=c,c=n}r[0]=r[0]+c|0,r[1]=r[1]+i|0,r[2]=r[2]+a|0,r[3]=r[3]+f|0,r[4]=r[4]+u|0}},E={importKey:t=>new E._(V.bytes.C(t)),T(t,n,e,s){if(e=e||1e4,s<0||e<0)throw new r("invalid params to pbkdf2");const o=1+(s>>5)<<2;let c,i,a,f,l;const w=new ArrayBuffer(o),h=new u(w);let p=0;const d=T;for(n=V.bytes.C(n),l=1;p<(o||1);l++){for(c=i=t.encrypt(d.concat(n,[l])),a=1;a<e;a++)for(i=t.encrypt(i),f=0;f<i.length;f++)c[f]^=i[f];for(a=0;p<(o||1)&&a<c.length;a++)h.setInt32(p,c[a]),p+=4}return w.slice(0,s/8)},_:class{constructor(t){const n=this,e=n.V=K,s=[[],[]];n.K=[new e,new e];const r=n.K[0].blockSize/32;t.length>r&&(t=(new e).update(t).R());for(let n=0;n<r;n++)s[0][n]=909522486^t[n],s[1][n]=1549556828^t[n];n.K[0].update(s[0]),n.K[1].update(s[1]),n.L=new e(n.K[0])}reset(){const t=this;t.L=new t.V(t.K[0]),t.O=!1}update(t){this.O=!0,this.L.update(t)}digest(){const t=this,n=t.L.R(),e=new t.V(t.K[1]).update(n).R();return t.reset(),e}encrypt(t){if(this.O)throw new r("encrypt on already updated hmac called!");return this.update(t),this.digest(t)}}},L=typeof h!=b&&typeof h.getRandomValues==k,O="Invalid password",j="zipjs-abort-check-password";function H(t){if(L)return h.getRandomValues(t);throw new r("Crypto API not supported")}const N=16,q={name:"PBKDF2"},G=n.assign({hash:{name:"HMAC"}},q),J=n.assign({iterations:1e3,hash:{name:"SHA-1"}},q),Q=["deriveBits"],X=[8,12,16],Y=[16,24,32],Z=10,$=[0,0,0,0],tt=typeof h!=b,nt=tt&&h.subtle,et=tt&&typeof nt!=b,st=V.bytes,rt=class{constructor(t){const n=this;n.j=[[[],[],[],[],[]],[[],[],[],[],[]]],n.j[0][0][0]||n.H();const e=n.j[0][4],s=n.j[1],o=t.length;let c,i,a,f=1;if(4!==o&&6!==o&&8!==o)throw new r("invalid aes key size");for(n.A=[i=t.slice(0),a=[]],c=o;c<4*o+28;c++){let t=i[c-1];(c%o===0||8===o&&c%o===4)&&(t=e[t>>>24]<<24^e[t>>16&255]<<16^e[t>>8&255]<<8^e[255&t],c%o===0&&(t=t<<8^t>>>24^f<<24,f=f<<1^283*(f>>7))),i[c]=i[c-o]^t}for(let t=0;c;t++,c--){const n=i[3&t?c:c-4];a[t]=c<=4||t<4?n:s[0][e[n>>>24]]^s[1][e[n>>16&255]]^s[2][e[n>>8&255]]^s[3][e[255&n]]}}encrypt(t){return this.N(t,0)}decrypt(t){return this.N(t,1)}H(){const t=this.j[0],n=this.j[1],e=t[4],s=n[4],r=[],o=[];let c,i,a,f;for(let t=0;t<256;t++)o[(r[t]=t<<1^283*(t>>7))^t]=t;for(let u=c=0;!e[u];u^=i||1,c=o[c]||1){let o=c^c<<1^c<<2^c<<3^c<<4;o=o>>8^255&o^99,e[u]=o,s[o]=u,f=r[a=r[i=r[u]]];let l=16843009*f^65537*a^257*i^16843008*u,w=257*r[o]^16843008*o;for(let e=0;e<4;e++)t[e][u]=w=w<<24^w>>>8,n[e][o]=l=l<<24^l>>>8}for(let e=0;e<5;e++)t[e]=t[e].slice(0),n[e]=n[e].slice(0)}N(t,n){if(4!==t.length)throw new r("invalid aes block size");const e=this.A[n],s=e.length/4-2,o=[0,0,0,0],c=this.j[n],i=c[0],a=c[1],f=c[2],u=c[3],l=c[4];let w,h,p,d=t[0]^e[0],y=t[n?3:1]^e[1],m=t[2]^e[2],S=t[n?1:3]^e[3],g=4;for(let t=0;t<s;t++)w=i[d>>>24]^a[y>>16&255]^f[m>>8&255]^u[255&S]^e[g],h=i[y>>>24]^a[m>>16&255]^f[S>>8&255]^u[255&d]^e[g+1],p=i[m>>>24]^a[S>>16&255]^f[d>>8&255]^u[255&y]^e[g+2],S=i[S>>>24]^a[d>>16&255]^f[y>>8&255]^u[255&m]^e[g+3],g+=4,d=w,y=h,m=p;for(let t=0;t<4;t++)o[n?3&-t:t]=l[d>>>24]<<24^l[y>>16&255]<<16^l[m>>8&255]<<8^l[255&S]^e[g++],w=d,d=y,y=m,m=S,S=w;return o}},ot=class{constructor(t,n){this.G=t,this.J=n,this.X=n}reset(){this.X=this.J}update(t){return this.Y(this.G,t,this.X)}Z(t){if(255&~(t>>24))t+=1<<24;else{let n=t>>16&255,e=t>>8&255,s=255&t;255===n?(n=0,255===e?(e=0,255===s?s=0:++s):++e):++n,t=0,t+=n<<16,t+=e<<8,t+=s}return t}$(t){0===(t[0]=this.Z(t[0]))&&(t[1]=this.Z(t[1]))}Y(t,n,e){let s;if(!(s=n.length))return[];const r=T.bitLength(n);for(let r=0;r<s;r+=4){this.$(e);const s=t.encrypt(e);n[r]^=s[0],n[r+1]^=s[1],n[r+2]^=s[2],n[r+3]^=s[3]}return T.m(n,r)}},ct=E._;let it=tt&&et&&typeof nt.importKey==k,at=tt&&et&&typeof nt.deriveBits==k;class ft extends d{constructor({password:t,rawPassword:n,encryptionStrength:e,checkPasswordOnly:s,checkAuthenticationCode:c=!0}){super({start(){lt(this,t,n,e)},async transform(t,n){const e=this,{password:c,strength:i,nt:a,ready:f}=e;c?(await async function(t,n,e,s){const o=await ht(t,n,e,dt(s,0,X[n])),c=dt(s,X[n]);if(o[0]!=c[0]||o[1]!=c[1])throw new r(O)}(e,i,c,dt(t,0,X[i]+2)),t=dt(t,X[i]+2),s?n.error(new r(j)):a()):await f;const u=new o(t.length-Z-(t.length-Z)%N);n.enqueue(wt(e,t,u,0,Z,!0))},async flush(t){const{et:n,st:e,ot:s,ready:o}=this;if(e&&n){await o;const i=dt(s,0,s.length-Z),a=dt(s,s.length-Z);let f=z;if(i.length){const t=mt(st,i);e.update(t);const s=n.update(t);f=yt(st,s)}const u=dt(yt(st,e.digest()),0,Z);let l=s.length<Z?1:0;for(let t=0;t<Z;t++)l|=u[t]^a[t];if(l&&c)throw new r("Invalid authentication code");t.enqueue(f)}}})}}class ut extends d{constructor({password:t,rawPassword:n,encryptionStrength:e}){super({start(){lt(this,t,n,e)},async transform(t,n){const e=this,{password:s,strength:r,nt:c,ready:i}=e;let a=z;s?(a=await async function(t,n,e){const s=H(new o(X[n]));return W(s,await ht(t,n,e,s))}(e,r,s),c()):await i;const f=new o(a.length+t.length-t.length%N);f.set(a,0),n.enqueue(wt(e,t,f,a.length,0))},async flush(t){const{et:n,st:e,ot:s,ready:r}=this;if(e&&n){await r;let o=z;if(s.length){const t=n.update(mt(st,s));e.update(t),o=yt(st,t)}const c=yt(st,e.digest()).slice(0,Z);t.enqueue(W(o,c))}}})}}function lt(t,e,s,r){n.assign(t,{ready:new l(n=>t.nt=n),password:pt(e,s),strength:r-1,ot:z})}function wt(t,n,e,s,r,c){const{et:i,st:a,ot:f}=t;f.length&&(n=W(f,n));const u=n.length-r;let l;for(e=function(t,n){if(n&&n>t.length){const e=t;(t=new o(n)).set(e,0)}return t}(e,s+(u-u%N)),l=0;l<=u-N;l+=N){const t=mt(st,dt(n,l,l+N));c&&a.update(t);const r=i.update(t);c||a.update(r),e.set(yt(st,r),l+s)}return t.ot=dt(n,l),e}async function ht(e,s,r,c){e.password=null;const i=await async function(t,n,e,s,r){if(!it)return E.importKey(n);try{return await nt.importKey("raw",n,e,!1,r)}catch{return it=!1,E.importKey(n)}}(0,r,G,0,Q),a=await async function(t,n,e){if(!at)return E.T(n,t.salt,J.iterations,e);try{return await nt.deriveBits(t,n,e)}catch{return at=!1,E.T(n,t.salt,J.iterations,e)}}(n.assign({salt:c},J),i,8*(2*Y[s]+2)),f=new o(a),u=mt(st,dt(f,0,Y[s])),l=mt(st,dt(f,Y[s],2*Y[s])),w=dt(f,2*Y[s]);return n.assign(e,{keys:{key:u,ct:l,passwordVerification:w},et:new ot(new rt(u),t.from($)),st:new ct(l)}),w}function pt(t,n){return n===v?function(t){if(typeof w==b){t=unescape(encodeURIComponent(t));const n=new o(t.length);for(let e=0;e<n.length;e++)n[e]=t.charCodeAt(e);return n}return(new w).encode(t)}(t):n}function dt(t,n,e){return t.subarray(n,e)}function yt(t,n){return t.v(n)}function mt(t,n){return t.C(n)}class St extends d{constructor({password:t,rawPassword:n,passwordVerification:e,checkPasswordOnly:s}){super({start(){vt(this,t,n,e)},transform(t,n){const e=this;if(e.password||e.rawPassword){const n=bt(e,t.subarray(0,12));if(e.password=e.rawPassword=null,0!=(n[11]^e.passwordVerification))throw new r(O);t=t.subarray(12)}s?n.error(new r(j)):n.enqueue(bt(e,t))}})}}class gt extends d{constructor({password:t,rawPassword:n,passwordVerification:e}){super({start(){vt(this,t,n,e)},transform(t,n){const e=this;let s,r;if(e.password||e.rawPassword){e.password=e.rawPassword=null;const n=H(new o(12));n[11]=e.passwordVerification,s=new o(t.length+n.length),s.set(kt(e,n),0),r=12}else s=new o(t.length),r=0;s.set(kt(e,t),r),n.enqueue(s)}})}}function vt(t,e,s,r){n.assign(t,{password:e,rawPassword:s,passwordVerification:r}),function(t,e,s){const r=[305419896,591751049,878082192];if(n.assign(t,{keys:r,it:new R(r[0]),ft:new R(r[2])}),s)for(let n=0;n<s.length;n++)zt(t,s[n]);else for(let n=0;n<e.length;n++)zt(t,e.charCodeAt(n))}(t,e,s)}function bt(t,n){const e=new o(n.length);for(let s=0;s<n.length;s++)e[s]=Ct(t)^n[s],zt(t,e[s]);return e}function kt(t,n){const e=new o(n.length);for(let s=0;s<n.length;s++)e[s]=Ct(t)^n[s],zt(t,n[s]);return e}function zt(t,n){let[,e]=t.keys;t.it.append([n]);const r=~t.it.get();e=At(s.imul(At(e+It(r)),134775813)+1),t.ft.append([e>>>24]);const o=~t.ft.get();t.keys=[r,e,o]}function Ct(t){const n=2|t.keys[2];return It(s.imul(n,1^n)>>>8)}function It(t){return 255&t}function At(t){return 4294967295&t}function xt(t){if(t instanceof y)return t;const n=t.getReader();return new y({async pull(t){const{value:e,done:s}=await n.read();s?t.close():t.enqueue(e)},cancel:t=>n.cancel(t)})}const Mt=new f;function Pt(t){return Mt.get(t)}const Bt="Invalid uncompressed size",Dt="deflate-raw",Ft="gzip",Rt=[31,139,8];class Ut extends d{constructor(t,{chunkSize:n,CompressionStreamFallback:e,CompressionStream:s}){super({});const{compressed:r,encrypted:o,useCompressionStream:c,zipCrypto:i,computeCrc32:a,level:f,deflate64:l,format:w,compressionMethod:h,inputSize:p}=t,d=this;let y,m,S,g=super.readable;const v=w&&Pt(w),b=a&&r&&!l&&!v&&(!o||i)&&Boolean(c&&s);if(o&&!i||!a||b||(y=new U,g=Lt(g,y)),r)if(v)g=Ot(g,Kt(v.CompressionStream,w,{level:f,chunkSize:n,compressionMethod:h,uncompressedSize:p}));else if(b)S=new Wt,g=Ot(g,new s(Ft)),g=Lt(g,S);else try{g=Et(g,c,{level:f,chunkSize:n},s,e)}catch(t){let n;try{n=new s(Ft)}catch{throw t}g=Ot(g,n),g=Lt(g,new Wt)}o&&(i?g=Lt(g,new gt(t)):(m=new ut(t),g=Lt(g,m))),Vt(d,g,()=>{o&&!i||!a||(d.crc32=b?S.crc32:new u(y.value.buffer).getUint32(0))})}}class Wt extends d{constructor(){let t,n=10,e=new o(0);super({transform(t,r){if(n){const e=s.min(n,t.length);if(n-=e,!(t=t.subarray(e)).length)return}const o=e.length+t.length;if(o<=8)return void(e=W(e,t));const c=o-8,i=s.min(c,e.length);r.enqueue(W(e.subarray(0,i),t.subarray(0,c-i))),e=W(e.subarray(i),t.subarray(c-i))},flush(){const n=_(e);t.crc32=n.getUint32(0,!0),t.uncompressedSize=n.getUint32(4,!0)}}),t=this}}class _t extends d{constructor(t,{chunkSize:n,DecompressionStreamFallback:e,DecompressionStream:s}){super({});const{zipCrypto:c,encrypted:i,checkCrc32:a,crc32:f,compressed:w,useCompressionStream:h,deflate64:p,format:m,compressionMethod:S,rawBitFlag:g,outputSize:b}=t;let k,z,C=super.readable;if(i&&(c?C=Lt(C,new St(t)):(z=new ft(t),C=Lt(C,z))),w){const t=m&&Pt(m);if(t)C=Ot(C,Kt(t.DecompressionStream,m,{chunkSize:n,compressionMethod:S,rawBitFlag:g,uncompressedSize:b}));else try{C=Et(C,h,{chunkSize:n,deflate64:p},s,e)}catch(t){if(p||b===v)throw t;let n;try{n=new s(Ft)}catch{throw t}C=function(t,n,e){const s=new R;let c,i,a,f=0,u=!1;const w=new l((t,n)=>{i=t,a=n});w.catch(()=>{}),e||i();const h=new d({start(t){const n=new o(10);n.set(Rt),t.enqueue(n)},transform(t,n){n.enqueue(t)},async flush(t){u=!0,y();try{await w}finally{m()}const n=new o(8),r=_(n);r.setUint32(0,s.get(),!0),r.setUint32(4,e,!0),t.enqueue(n)},cancel(t){a(t)}}),p=new d({transform(t,n){s.append(t),f+=t.length,f>=e?i():u&&y(),n.enqueue(t)},cancel(t){a(t)}});return t=Lt(t,h),Lt(t=Ot(t,n),p);function y(){m(),c=setTimeout(()=>a(new r(Bt)),5e3)}function m(){clearTimeout(c)}}(C,n,b)}C=function(t){const n=t.getReader();return new y({async pull(t){let e;try{e=await n.read()}catch(t){if(t&&t.message)throw t;const n=new r("Invalid compressed data");throw n.cause=t,n}const{value:s,done:o}=e;o?t.close():t.enqueue(s)},cancel:t=>n.cancel(t)})}(C)}a&&(k=new U,C=Lt(C,k)),Vt(this,C,()=>{if(a){const t=new u(k.value.buffer);if(f!=t.getUint32(0,!1))throw new r("Invalid CRC32")}})}}const Tt=new f;function Vt(t,e,s){e=Lt(e,new d({flush:s})),n.defineProperty(t,"readable",{get:()=>e})}function Kt(t,n,e){if(!t)throw new r("Compression method not supported");return new t(n,e)}function Et(t,n,e,s,r){const o=n&&s?s:r||s,c=e.deflate64?"deflate64-raw":Dt;let i;try{i=new o(c,e)}catch(t){if(!n||!r||o==r)throw t;i=new r(c,e)}return Ot(t,i)}function Lt(t,n){return xt(t).pipeThrough(n)}function Ot(t,n){const e=n.writable.getWriter(),s=t.getReader();return async function(){try{for(;;){await e.ready;const t=await s.read();if(t.done){await e.close();break}await e.write(t.value)}}catch(t){await async function(t,n){try{await t.abort(n)}catch{}}(e,t),await async function(t,n){try{await t.cancel(n)}catch{}}(s,t)}}(),n.readable}const jt="data",Ht="close",Nt="deflate";class qt extends d{constructor(t,e){super({});const s=this,{codecType:o}=t;let c;o.startsWith(Nt)?c=Ut:o.startsWith("inflate")&&(c=_t),s.outputSize=0;let i=0;const a=new c(t,e),f=super.readable,u=new d({transform(t,n){t&&t.length&&(i+=t.length,n.enqueue(t))},flush(){n.assign(s,{inputSize:i})}}),l=new d({transform(n,e){if(n&&n.length&&(e.enqueue(n),s.outputSize+=n.length,t.outputSize!==v&&s.outputSize>t.outputSize))throw new r(Bt)},flush(){const{crc32:t}=a;n.assign(s,{crc32:t,inputSize:i})}});n.defineProperty(s,"readable",{get:()=>f.pipeThrough(u).pipeThrough(a).pipeThrough(l)})}}class Gt extends d{constructor(t){const n=[];let s=0;function r(){const e=new o(t);let r=0;for(;r<t;){const s=n[0],o=t-r;s.length<=o?(e.set(s,r),r+=s.length,n.shift()):(e.set(s.subarray(0,o),r),n[0]=s.subarray(o),r+=o)}return s-=t,e}(!e.isFinite(t)||t<1)&&(t=65536),super({transform(e,o){for(n.push(e),s+=e.length;s>t;)o.enqueue(r())},flush(t){s&&t.enqueue(function(t,n){const e=new o(n);let s=0;for(const n of t)e.set(n,s),s+=n.length;return e}(n,s))}})}}let Jt=2;try{typeof navigator!=b&&navigator.hardwareConcurrency&&(Jt=navigator.hardwareConcurrency)}catch{}const Qt=new f,Xt=new f;let Yt,Zt=0;async function $t(t){let n,o;try{const{options:c,config:i}=t;if(c.format)try{await async function(t,n){!Mt.has(t)&&n&&function(t,n){const{CompressionStream:e,DecompressionStream:s}=n;if(typeof e!=k&&typeof s!=k)throw new r("Invalid codec module");Mt.set(t,{CompressionStream:e,DecompressionStream:s})}(t,await(import(/* webpackIgnore: true */ /* @vite-ignore */n)))}(c.format,c.codecURI)}catch(t){throw t.codecImportFailed=!0,t}if(i.CompressionStream=self.CompressionStream,i.DecompressionStream=self.DecompressionStream,c.compressed&&!c.format)if(c.useCompressionStream){if(!function(t,n){if(!t)return!1;let e=Tt.get(t);e||(e=new f,Tt.set(t,e));let s=e.get(n);if(s===v){try{new t(n),s=!0}catch{s=!1}e.set(n,s)}return s}(c.codecType.startsWith(Nt)?i.CompressionStream:i.DecompressionStream,Dt))try{await self.initModule(t.config)}catch{}}else try{await self.initModule(t.config)}catch{c.useCompressionStream=!0}!i.CompressionStreamFallback&&i.CompressionStreamZlib&&(i.CompressionStreamFallback=i.CompressionStreamZlib),!i.DecompressionStreamFallback&&i.DecompressionStreamZlib&&(i.DecompressionStreamFallback=i.DecompressionStreamZlib);const a={highWaterMark:1},u=t.readable?xt(t.readable):new y({async pull(t){const n=new l(t=>Qt.set(Zt,t));tn({type:"pull",messageId:Zt}),Zt=(Zt+1)%e.MAX_SAFE_INTEGER;const{value:s,done:r}=await n;t.enqueue(s),r&&t.close()}},a);o=t.writable?function(t){if(t instanceof m)return t;const n=t.getWriter();return new m({write:t=>n.write(t),close:()=>n.close(),abort:t=>n.abort(t)})}(t.writable):new m({async write(t){let n;const s=new l(t=>n=t);Xt.set(Zt,n),tn({type:jt,value:t,messageId:Zt}),Zt=(Zt+1)%e.MAX_SAFE_INTEGER,await s}},a),n=new qt(c,i),Yt=new AbortController;const{signal:w}=Yt;await u.pipeThrough(n).pipeThrough(new Gt(function(t){return r="string"==typeof(n=r=t.chunkSize)&&n.trim()?e(n):n,e.isInteger(r)&&r>=1?s.max(r,64):65536;var n,r}(i))).pipeTo(o,{signal:w,preventClose:!0,preventAbort:!0}),await o.getWriter().close();const{crc32:h,inputSize:p,outputSize:d}=n;tn({type:Ht,result:{crc32:h,inputSize:p,outputSize:d}})}catch(t){if(t.outputSize=n?n.outputSize:0,o&&!o.locked)try{await o.getWriter().close()}catch{}nn(t)}}function tn(t){const{value:n}=t;if(n)if(n.length)try{t.value=(e=n,e.byteOffset||e.byteLength!=e.buffer.byteLength?new o(e):e).buffer,p(t,[t.value])}catch{p(t)}else p(t);else p(t);var e}function nn(t=new r("Unknown error")){const{message:n,stack:e,code:s,name:o,outputSize:c,cause:i,codecImportFailed:a}=t,f={message:n,stack:e,code:s,name:o,outputSize:c};i&&(f.cause={name:i.name,message:i.message}),a&&(f.codecImportFailed=!0),p({error:f})}addEventListener("message",({data:t})=>{const{type:n,messageId:e,value:s,done:r}=t;try{if("start"==n&&$t(t),n==jt){const t=Qt.get(e);Qt.delete(e),t({value:s||new o,done:r})}if("ack"==n){const t=Xt.get(e);Xt.delete(e),t()}n==Ht&&Yt.abort()}catch(t){nn(t)}}),p({type:"ready"});const en="deflate",sn="deflate-raw",rn="deflate64-raw",on="gzip";let cn,an,fn,un,ln;function wn(t,n,e={}){if(!cn){const t=new r("WASM module not loaded");throw t.cause=ln,t}const c="number"==typeof e.level?e.level:-1,i="number"==typeof e.outBuffer?e.outBuffer:65536,a="number"==typeof e.inBufferSize?e.inBufferSize:65536;return new d({start(){try{let e;if(this.ut=an(i),this.in=an(a),this.inBufferSize=a,!this.ut||!this.in)throw new r("allocation failed");if(this.lt=new o(i),t?(this.wt=cn.deflate_process,this.ht=cn.deflate_last_consumed,this.yt=cn.deflate_end,this.St=cn.deflate_new(),e=n===on?cn.deflate_init_gzip(this.St,c):n===sn?cn.deflate_init_raw(this.St,c):cn.deflate_init(this.St,c)):n===rn?(this.wt=cn.inflate9_process,this.ht=cn.inflate9_last_consumed,this.yt=cn.inflate9_end,this.St=cn.inflate9_new(),e=cn.inflate9_init_raw(this.St)):(this.wt=cn.inflate_process,this.ht=cn.inflate_last_consumed,this.yt=cn.inflate_end,this.St=cn.inflate_new(),e=n===sn?cn.inflate_init_raw(this.St):n===on?cn.inflate_init_gzip(this.St):cn.inflate_init(this.St)),0!==e)throw new r("init failed:"+e)}catch(t){throw f(this),t}},transform(t,n){try{const e=t,c=new o(un.buffer),a=this.wt,f=this.ht,u=this.ut,l=this.lt;let w=0;for(;w<e.length;){const t=s.min(e.length-w,32768);if((!this.in||this.inBufferSize<t)&&(this.in&&fn&&(fn(this.in),this.in=0),this.in=an(t),this.inBufferSize=t,!this.in))throw new r("allocation failed");c.set(e.subarray(w,w+t),this.in);const o=a(this.St,this.in,t,u,i,0),h=o>>24&255,p=128&h?h-256:h;if(p<0)throw new r("process error:"+p);const d=16777215&o;d&&(l.set(c.subarray(u,u+d),0),n.enqueue(l.slice(0,d)));const y=f(this.St);if(0===y&&0===d)break;w+=y}}catch(t){f(this),n.error(t)}},flush(t){try{const n=new o(un.buffer),e=this.wt,s=this.ut,c=this.lt;for(;;){const o=e(this.St,0,0,s,i,4),a=o>>24&255,f=128&a?a-256:a;if(f<0)throw new r("process error:"+f);const u=16777215&o;if(u&&(c.set(n.subarray(s,s+u),0),t.enqueue(c.slice(0,u))),1===a||0===u)break}}catch(n){t.error(n)}finally{const n=f(this);0!==n&&t.error(new r("end error:"+n))}},cancel(){f(this)}});function f(t){let n=0;return t.St&&t.yt&&(n=t.yt(t.St)),t.St=0,t.in&&fn&&fn(t.in),t.in=0,t.ut&&fn&&fn(t.ut),t.ut=0,n}}class hn{constructor(t=en,n){return wn(!0,t,n)}}class pn{constructor(t=en,n){return wn(!1,t,n)}}hn.gt=!0,pn.gt=!0,hn.vt=[en,sn,on],pn.vt=[en,sn,on,rn];let dn=!1;!function(t={}){const{init:n}=t,e=t.CompressionStreamFallback||t.CompressionStreamZlib,s=t.DecompressionStreamFallback||t.DecompressionStreamZlib;self.initModule=async t=>{n&&await n(t),e&&(t.CompressionStreamFallback=e),s&&(t.DecompressionStreamFallback=s)}}({CompressionStreamFallback:hn,DecompressionStreamFallback:pn,init:t=>async function(t,{baseURI:n}){if(!dn)try{await async function(t,n){let e,s;try{try{s=new URL(t,n)}catch{}const r=await fetch(s);e=await r.arrayBuffer()}catch(n){if(!t.startsWith("data:application/wasm;base64,"))throw n;e=function(t){const n=t.split(",")[1],e=atob(n),s=e.length,r=new o(s);for(let t=0;t<s;++t)r[t]=e.charCodeAt(t);return r.buffer}(t)}!function(t){if(cn=t,({malloc:an,free:fn,memory:un}=cn),"function"!=typeof an||"function"!=typeof fn||!un)throw cn=an=fn=un=null,new r("Invalid WASM module")}((await WebAssembly.instantiate(e)).instance.exports)}(t,n),dn=!0}catch(t){throw function(t){ln=t}(t),t}}(t.wasmURI,t)})}();
Binary file