create-swdg-frontend 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (427) hide show
  1. package/README.md +39 -0
  2. package/bin/index.js +248 -0
  3. package/package.json +29 -0
  4. package/template/.husky/commit-msg +42 -0
  5. package/template/.husky/pre-commit +2 -0
  6. package/template/.husky/prepare-commit-msg +1 -0
  7. package/template/.lintstagedrc +5 -0
  8. package/template/.prettierignore +26 -0
  9. package/template/.prettierrc.cjs +10 -0
  10. package/template/.stylelintignore +1 -0
  11. package/template/.stylelintrc.json +6 -0
  12. package/template/README.md +36 -0
  13. package/template/commitlint.config.cjs +64 -0
  14. package/template/eslint.config.js +96 -0
  15. package/template/index.html +17 -0
  16. package/template/interface/user.ts +5 -0
  17. package/template/package.json +84 -0
  18. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_0.json +1012 -0
  19. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_1.json +1012 -0
  20. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_10.json +1012 -0
  21. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_11.json +1012 -0
  22. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_12.json +1012 -0
  23. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_13.json +1012 -0
  24. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_14.json +1012 -0
  25. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_15.json +1012 -0
  26. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_16.json +1012 -0
  27. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_17.json +1012 -0
  28. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_18.json +1012 -0
  29. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_19.json +1012 -0
  30. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_2.json +1012 -0
  31. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_20.json +1012 -0
  32. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_21.json +1012 -0
  33. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_22.json +1012 -0
  34. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_23.json +1012 -0
  35. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_24.json +1012 -0
  36. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_25.json +1012 -0
  37. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_26.json +1012 -0
  38. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_27.json +438 -0
  39. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_3.json +1012 -0
  40. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_4.json +1012 -0
  41. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_5.json +1012 -0
  42. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_6.json +1012 -0
  43. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_7.json +1012 -0
  44. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_8.json +1012 -0
  45. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_9.json +1012 -0
  46. package/template/public/Cesium1.119/Assets/Images/bing_maps_credit.png +0 -0
  47. package/template/public/Cesium1.119/Assets/Images/cesium_credit.png +0 -0
  48. package/template/public/Cesium1.119/Assets/Images/google_earth_credit.png +0 -0
  49. package/template/public/Cesium1.119/Assets/Images/ion-credit.png +0 -0
  50. package/template/public/Cesium1.119/Assets/Textures/LensFlare/DirtMask.jpg +0 -0
  51. package/template/public/Cesium1.119/Assets/Textures/LensFlare/StarBurst.jpg +0 -0
  52. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/0/0/0.jpg +0 -0
  53. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/0/1/0.jpg +0 -0
  54. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/1/0/0.jpg +0 -0
  55. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/1/0/1.jpg +0 -0
  56. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/1/1/0.jpg +0 -0
  57. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/1/1/1.jpg +0 -0
  58. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/1/2/0.jpg +0 -0
  59. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/1/2/1.jpg +0 -0
  60. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/1/3/0.jpg +0 -0
  61. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/1/3/1.jpg +0 -0
  62. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/0/0.jpg +0 -0
  63. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/0/1.jpg +0 -0
  64. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/0/2.jpg +0 -0
  65. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/0/3.jpg +0 -0
  66. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/1/0.jpg +0 -0
  67. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/1/1.jpg +0 -0
  68. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/1/2.jpg +0 -0
  69. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/1/3.jpg +0 -0
  70. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/2/0.jpg +0 -0
  71. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/2/1.jpg +0 -0
  72. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/2/2.jpg +0 -0
  73. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/2/3.jpg +0 -0
  74. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/3/0.jpg +0 -0
  75. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/3/1.jpg +0 -0
  76. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/3/2.jpg +0 -0
  77. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/3/3.jpg +0 -0
  78. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/4/0.jpg +0 -0
  79. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/4/1.jpg +0 -0
  80. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/4/2.jpg +0 -0
  81. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/4/3.jpg +0 -0
  82. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/5/0.jpg +0 -0
  83. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/5/1.jpg +0 -0
  84. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/5/2.jpg +0 -0
  85. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/5/3.jpg +0 -0
  86. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/6/0.jpg +0 -0
  87. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/6/1.jpg +0 -0
  88. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/6/2.jpg +0 -0
  89. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/6/3.jpg +0 -0
  90. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/7/0.jpg +0 -0
  91. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/7/1.jpg +0 -0
  92. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/7/2.jpg +0 -0
  93. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/7/3.jpg +0 -0
  94. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/tilemapresource.xml +14 -0
  95. package/template/public/Cesium1.119/Assets/Textures/SkyBox/tycho2t3_80_mx.jpg +0 -0
  96. package/template/public/Cesium1.119/Assets/Textures/SkyBox/tycho2t3_80_my.jpg +0 -0
  97. package/template/public/Cesium1.119/Assets/Textures/SkyBox/tycho2t3_80_mz.jpg +0 -0
  98. package/template/public/Cesium1.119/Assets/Textures/SkyBox/tycho2t3_80_px.jpg +0 -0
  99. package/template/public/Cesium1.119/Assets/Textures/SkyBox/tycho2t3_80_py.jpg +0 -0
  100. package/template/public/Cesium1.119/Assets/Textures/SkyBox/tycho2t3_80_pz.jpg +0 -0
  101. package/template/public/Cesium1.119/Assets/Textures/maki/airfield.png +0 -0
  102. package/template/public/Cesium1.119/Assets/Textures/maki/airport.png +0 -0
  103. package/template/public/Cesium1.119/Assets/Textures/maki/alcohol-shop.png +0 -0
  104. package/template/public/Cesium1.119/Assets/Textures/maki/america-football.png +0 -0
  105. package/template/public/Cesium1.119/Assets/Textures/maki/art-gallery.png +0 -0
  106. package/template/public/Cesium1.119/Assets/Textures/maki/bakery.png +0 -0
  107. package/template/public/Cesium1.119/Assets/Textures/maki/bank.png +0 -0
  108. package/template/public/Cesium1.119/Assets/Textures/maki/bar.png +0 -0
  109. package/template/public/Cesium1.119/Assets/Textures/maki/baseball.png +0 -0
  110. package/template/public/Cesium1.119/Assets/Textures/maki/basketball.png +0 -0
  111. package/template/public/Cesium1.119/Assets/Textures/maki/beer.png +0 -0
  112. package/template/public/Cesium1.119/Assets/Textures/maki/bicycle.png +0 -0
  113. package/template/public/Cesium1.119/Assets/Textures/maki/building.png +0 -0
  114. package/template/public/Cesium1.119/Assets/Textures/maki/bus.png +0 -0
  115. package/template/public/Cesium1.119/Assets/Textures/maki/cafe.png +0 -0
  116. package/template/public/Cesium1.119/Assets/Textures/maki/camera.png +0 -0
  117. package/template/public/Cesium1.119/Assets/Textures/maki/campsite.png +0 -0
  118. package/template/public/Cesium1.119/Assets/Textures/maki/car.png +0 -0
  119. package/template/public/Cesium1.119/Assets/Textures/maki/cemetery.png +0 -0
  120. package/template/public/Cesium1.119/Assets/Textures/maki/cesium.png +0 -0
  121. package/template/public/Cesium1.119/Assets/Textures/maki/chemist.png +0 -0
  122. package/template/public/Cesium1.119/Assets/Textures/maki/cinema.png +0 -0
  123. package/template/public/Cesium1.119/Assets/Textures/maki/circle-stroked.png +0 -0
  124. package/template/public/Cesium1.119/Assets/Textures/maki/circle.png +0 -0
  125. package/template/public/Cesium1.119/Assets/Textures/maki/city.png +0 -0
  126. package/template/public/Cesium1.119/Assets/Textures/maki/clothing-store.png +0 -0
  127. package/template/public/Cesium1.119/Assets/Textures/maki/college.png +0 -0
  128. package/template/public/Cesium1.119/Assets/Textures/maki/commercial.png +0 -0
  129. package/template/public/Cesium1.119/Assets/Textures/maki/cricket.png +0 -0
  130. package/template/public/Cesium1.119/Assets/Textures/maki/cross.png +0 -0
  131. package/template/public/Cesium1.119/Assets/Textures/maki/dam.png +0 -0
  132. package/template/public/Cesium1.119/Assets/Textures/maki/danger.png +0 -0
  133. package/template/public/Cesium1.119/Assets/Textures/maki/disability.png +0 -0
  134. package/template/public/Cesium1.119/Assets/Textures/maki/dog-park.png +0 -0
  135. package/template/public/Cesium1.119/Assets/Textures/maki/embassy.png +0 -0
  136. package/template/public/Cesium1.119/Assets/Textures/maki/emergency-telephone.png +0 -0
  137. package/template/public/Cesium1.119/Assets/Textures/maki/entrance.png +0 -0
  138. package/template/public/Cesium1.119/Assets/Textures/maki/farm.png +0 -0
  139. package/template/public/Cesium1.119/Assets/Textures/maki/fast-food.png +0 -0
  140. package/template/public/Cesium1.119/Assets/Textures/maki/ferry.png +0 -0
  141. package/template/public/Cesium1.119/Assets/Textures/maki/fire-station.png +0 -0
  142. package/template/public/Cesium1.119/Assets/Textures/maki/fuel.png +0 -0
  143. package/template/public/Cesium1.119/Assets/Textures/maki/garden.png +0 -0
  144. package/template/public/Cesium1.119/Assets/Textures/maki/gift.png +0 -0
  145. package/template/public/Cesium1.119/Assets/Textures/maki/golf.png +0 -0
  146. package/template/public/Cesium1.119/Assets/Textures/maki/grocery.png +0 -0
  147. package/template/public/Cesium1.119/Assets/Textures/maki/hairdresser.png +0 -0
  148. package/template/public/Cesium1.119/Assets/Textures/maki/harbor.png +0 -0
  149. package/template/public/Cesium1.119/Assets/Textures/maki/heart.png +0 -0
  150. package/template/public/Cesium1.119/Assets/Textures/maki/heliport.png +0 -0
  151. package/template/public/Cesium1.119/Assets/Textures/maki/hospital.png +0 -0
  152. package/template/public/Cesium1.119/Assets/Textures/maki/ice-cream.png +0 -0
  153. package/template/public/Cesium1.119/Assets/Textures/maki/industrial.png +0 -0
  154. package/template/public/Cesium1.119/Assets/Textures/maki/land-use.png +0 -0
  155. package/template/public/Cesium1.119/Assets/Textures/maki/laundry.png +0 -0
  156. package/template/public/Cesium1.119/Assets/Textures/maki/library.png +0 -0
  157. package/template/public/Cesium1.119/Assets/Textures/maki/lighthouse.png +0 -0
  158. package/template/public/Cesium1.119/Assets/Textures/maki/lodging.png +0 -0
  159. package/template/public/Cesium1.119/Assets/Textures/maki/logging.png +0 -0
  160. package/template/public/Cesium1.119/Assets/Textures/maki/london-underground.png +0 -0
  161. package/template/public/Cesium1.119/Assets/Textures/maki/marker-stroked.png +0 -0
  162. package/template/public/Cesium1.119/Assets/Textures/maki/marker.png +0 -0
  163. package/template/public/Cesium1.119/Assets/Textures/maki/minefield.png +0 -0
  164. package/template/public/Cesium1.119/Assets/Textures/maki/mobilephone.png +0 -0
  165. package/template/public/Cesium1.119/Assets/Textures/maki/monument.png +0 -0
  166. package/template/public/Cesium1.119/Assets/Textures/maki/museum.png +0 -0
  167. package/template/public/Cesium1.119/Assets/Textures/maki/music.png +0 -0
  168. package/template/public/Cesium1.119/Assets/Textures/maki/oil-well.png +0 -0
  169. package/template/public/Cesium1.119/Assets/Textures/maki/park.png +0 -0
  170. package/template/public/Cesium1.119/Assets/Textures/maki/park2.png +0 -0
  171. package/template/public/Cesium1.119/Assets/Textures/maki/parking-garage.png +0 -0
  172. package/template/public/Cesium1.119/Assets/Textures/maki/parking.png +0 -0
  173. package/template/public/Cesium1.119/Assets/Textures/maki/pharmacy.png +0 -0
  174. package/template/public/Cesium1.119/Assets/Textures/maki/pitch.png +0 -0
  175. package/template/public/Cesium1.119/Assets/Textures/maki/place-of-worship.png +0 -0
  176. package/template/public/Cesium1.119/Assets/Textures/maki/playground.png +0 -0
  177. package/template/public/Cesium1.119/Assets/Textures/maki/police.png +0 -0
  178. package/template/public/Cesium1.119/Assets/Textures/maki/polling-place.png +0 -0
  179. package/template/public/Cesium1.119/Assets/Textures/maki/post.png +0 -0
  180. package/template/public/Cesium1.119/Assets/Textures/maki/prison.png +0 -0
  181. package/template/public/Cesium1.119/Assets/Textures/maki/rail-above.png +0 -0
  182. package/template/public/Cesium1.119/Assets/Textures/maki/rail-light.png +0 -0
  183. package/template/public/Cesium1.119/Assets/Textures/maki/rail-metro.png +0 -0
  184. package/template/public/Cesium1.119/Assets/Textures/maki/rail-underground.png +0 -0
  185. package/template/public/Cesium1.119/Assets/Textures/maki/rail.png +0 -0
  186. package/template/public/Cesium1.119/Assets/Textures/maki/religious-christian.png +0 -0
  187. package/template/public/Cesium1.119/Assets/Textures/maki/religious-jewish.png +0 -0
  188. package/template/public/Cesium1.119/Assets/Textures/maki/religious-muslim.png +0 -0
  189. package/template/public/Cesium1.119/Assets/Textures/maki/restaurant.png +0 -0
  190. package/template/public/Cesium1.119/Assets/Textures/maki/roadblock.png +0 -0
  191. package/template/public/Cesium1.119/Assets/Textures/maki/rocket.png +0 -0
  192. package/template/public/Cesium1.119/Assets/Textures/maki/school.png +0 -0
  193. package/template/public/Cesium1.119/Assets/Textures/maki/scooter.png +0 -0
  194. package/template/public/Cesium1.119/Assets/Textures/maki/shop.png +0 -0
  195. package/template/public/Cesium1.119/Assets/Textures/maki/skiing.png +0 -0
  196. package/template/public/Cesium1.119/Assets/Textures/maki/slaughterhouse.png +0 -0
  197. package/template/public/Cesium1.119/Assets/Textures/maki/soccer.png +0 -0
  198. package/template/public/Cesium1.119/Assets/Textures/maki/square-stroked.png +0 -0
  199. package/template/public/Cesium1.119/Assets/Textures/maki/square.png +0 -0
  200. package/template/public/Cesium1.119/Assets/Textures/maki/star-stroked.png +0 -0
  201. package/template/public/Cesium1.119/Assets/Textures/maki/star.png +0 -0
  202. package/template/public/Cesium1.119/Assets/Textures/maki/suitcase.png +0 -0
  203. package/template/public/Cesium1.119/Assets/Textures/maki/swimming.png +0 -0
  204. package/template/public/Cesium1.119/Assets/Textures/maki/telephone.png +0 -0
  205. package/template/public/Cesium1.119/Assets/Textures/maki/tennis.png +0 -0
  206. package/template/public/Cesium1.119/Assets/Textures/maki/theatre.png +0 -0
  207. package/template/public/Cesium1.119/Assets/Textures/maki/toilets.png +0 -0
  208. package/template/public/Cesium1.119/Assets/Textures/maki/town-hall.png +0 -0
  209. package/template/public/Cesium1.119/Assets/Textures/maki/town.png +0 -0
  210. package/template/public/Cesium1.119/Assets/Textures/maki/triangle-stroked.png +0 -0
  211. package/template/public/Cesium1.119/Assets/Textures/maki/triangle.png +0 -0
  212. package/template/public/Cesium1.119/Assets/Textures/maki/village.png +0 -0
  213. package/template/public/Cesium1.119/Assets/Textures/maki/warehouse.png +0 -0
  214. package/template/public/Cesium1.119/Assets/Textures/maki/waste-basket.png +0 -0
  215. package/template/public/Cesium1.119/Assets/Textures/maki/water.png +0 -0
  216. package/template/public/Cesium1.119/Assets/Textures/maki/wetland.png +0 -0
  217. package/template/public/Cesium1.119/Assets/Textures/maki/zoo.png +0 -0
  218. package/template/public/Cesium1.119/Assets/Textures/moonSmall.jpg +0 -0
  219. package/template/public/Cesium1.119/Assets/Textures/pin.svg +1 -0
  220. package/template/public/Cesium1.119/Assets/Textures/waterNormals.jpg +0 -0
  221. package/template/public/Cesium1.119/Assets/Textures/waterNormalsSmall.jpg +0 -0
  222. package/template/public/Cesium1.119/Assets/approximateTerrainHeights.json +10924 -0
  223. package/template/public/Cesium1.119/Cesium.js +185772 -0
  224. package/template/public/Cesium1.119/ThirdParty/Workers/package.json +3 -0
  225. package/template/public/Cesium1.119/ThirdParty/Workers/pako_deflate.min.js +1681 -0
  226. package/template/public/Cesium1.119/ThirdParty/Workers/pako_inflate.min.js +1489 -0
  227. package/template/public/Cesium1.119/ThirdParty/Workers/z-worker-pako.js +1070 -0
  228. package/template/public/Cesium1.119/ThirdParty/basis_transcoder.wasm +0 -0
  229. package/template/public/Cesium1.119/ThirdParty/draco_decoder.wasm +0 -0
  230. package/template/public/Cesium1.119/ThirdParty/google-earth-dbroot-parser.js +11424 -0
  231. package/template/public/Cesium1.119/Widgets/Animation/Animation.css +127 -0
  232. package/template/public/Cesium1.119/Widgets/Animation/lighter.css +78 -0
  233. package/template/public/Cesium1.119/Widgets/BaseLayerPicker/BaseLayerPicker.css +112 -0
  234. package/template/public/Cesium1.119/Widgets/BaseLayerPicker/lighter.css +28 -0
  235. package/template/public/Cesium1.119/Widgets/Cesium3DTilesInspector/Cesium3DTilesInspector.css +104 -0
  236. package/template/public/Cesium1.119/Widgets/CesiumInspector/CesiumInspector.css +115 -0
  237. package/template/public/Cesium1.119/Widgets/CesiumWidget/CesiumWidget.css +119 -0
  238. package/template/public/Cesium1.119/Widgets/CesiumWidget/lighter.css +14 -0
  239. package/template/public/Cesium1.119/Widgets/FullscreenButton/FullscreenButton.css +8 -0
  240. package/template/public/Cesium1.119/Widgets/Geocoder/Geocoder.css +72 -0
  241. package/template/public/Cesium1.119/Widgets/Geocoder/lighter.css +17 -0
  242. package/template/public/Cesium1.119/Widgets/I3SBuildingSceneLayerExplorer/I3SBuildingSceneLayerExplorer.css +27 -0
  243. package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/ArcGisMapServiceWorldHillshade.png +0 -0
  244. package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/ArcGisMapServiceWorldImagery.png +0 -0
  245. package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/ArcGisMapServiceWorldOcean.png +0 -0
  246. package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/bingAerial.png +0 -0
  247. package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/bingAerialLabels.png +0 -0
  248. package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/bingRoads.png +0 -0
  249. package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/blueMarble.png +0 -0
  250. package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/earthAtNight.png +0 -0
  251. package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/mapQuestOpenStreetMap.png +0 -0
  252. package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/mapboxSatellite.png +0 -0
  253. package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/mapboxStreets.png +0 -0
  254. package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/mapboxTerrain.png +0 -0
  255. package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/naturalEarthII.png +0 -0
  256. package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/openStreetMap.png +0 -0
  257. package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/sentinel-2.png +0 -0
  258. package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/stadiaAlidadeSmooth.png +0 -0
  259. package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/stadiaAlidadeSmoothDark.png +0 -0
  260. package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/stamenToner.png +0 -0
  261. package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/stamenWatercolor.png +0 -0
  262. package/template/public/Cesium1.119/Widgets/Images/NavigationHelp/Mouse.svg +84 -0
  263. package/template/public/Cesium1.119/Widgets/Images/NavigationHelp/MouseLeft.svg +76 -0
  264. package/template/public/Cesium1.119/Widgets/Images/NavigationHelp/MouseMiddle.svg +76 -0
  265. package/template/public/Cesium1.119/Widgets/Images/NavigationHelp/MouseRight.svg +76 -0
  266. package/template/public/Cesium1.119/Widgets/Images/NavigationHelp/Touch.svg +120 -0
  267. package/template/public/Cesium1.119/Widgets/Images/NavigationHelp/TouchDrag.svg +129 -0
  268. package/template/public/Cesium1.119/Widgets/Images/NavigationHelp/TouchRotate.svg +76 -0
  269. package/template/public/Cesium1.119/Widgets/Images/NavigationHelp/TouchTilt.svg +135 -0
  270. package/template/public/Cesium1.119/Widgets/Images/NavigationHelp/TouchZoom.svg +74 -0
  271. package/template/public/Cesium1.119/Widgets/Images/TerrainProviders/CesiumWorldTerrain.png +0 -0
  272. package/template/public/Cesium1.119/Widgets/Images/TerrainProviders/Ellipsoid.png +0 -0
  273. package/template/public/Cesium1.119/Widgets/Images/TimelineIcons.png +0 -0
  274. package/template/public/Cesium1.119/Widgets/Images/info-loading.gif +0 -0
  275. package/template/public/Cesium1.119/Widgets/InfoBox/InfoBox.css +94 -0
  276. package/template/public/Cesium1.119/Widgets/InfoBox/InfoBoxDescription.css +178 -0
  277. package/template/public/Cesium1.119/Widgets/NavigationHelpButton/NavigationHelpButton.css +95 -0
  278. package/template/public/Cesium1.119/Widgets/NavigationHelpButton/lighter.css +38 -0
  279. package/template/public/Cesium1.119/Widgets/PerformanceWatchdog/PerformanceWatchdog.css +15 -0
  280. package/template/public/Cesium1.119/Widgets/ProjectionPicker/ProjectionPicker.css +46 -0
  281. package/template/public/Cesium1.119/Widgets/SceneModePicker/SceneModePicker.css +72 -0
  282. package/template/public/Cesium1.119/Widgets/SelectionIndicator/SelectionIndicator.css +22 -0
  283. package/template/public/Cesium1.119/Widgets/Timeline/Timeline.css +103 -0
  284. package/template/public/Cesium1.119/Widgets/Timeline/lighter.css +18 -0
  285. package/template/public/Cesium1.119/Widgets/VRButton/VRButton.css +8 -0
  286. package/template/public/Cesium1.119/Widgets/Viewer/Viewer.css +107 -0
  287. package/template/public/Cesium1.119/Widgets/VoxelInspector/VoxelInspector.css +18 -0
  288. package/template/public/Cesium1.119/Widgets/lighter.css +246 -0
  289. package/template/public/Cesium1.119/Widgets/lighterShared.css +46 -0
  290. package/template/public/Cesium1.119/Widgets/shared.css +103 -0
  291. package/template/public/Cesium1.119/Widgets/widgets.css +1376 -0
  292. package/template/public/Cesium1.119/Workers/chunk-3C7WC463.js +611 -0
  293. package/template/public/Cesium1.119/Workers/chunk-3JW36LZF.js +166 -0
  294. package/template/public/Cesium1.119/Workers/chunk-4BTGX3WJ.js +264 -0
  295. package/template/public/Cesium1.119/Workers/chunk-4WRMLZA7.js +128 -0
  296. package/template/public/Cesium1.119/Workers/chunk-7Z5IIKOJ.js +8046 -0
  297. package/template/public/Cesium1.119/Workers/chunk-ABGXSJNX.js +341 -0
  298. package/template/public/Cesium1.119/Workers/chunk-AMQUWUD4.js +269 -0
  299. package/template/public/Cesium1.119/Workers/chunk-ATPDRNKI.js +28 -0
  300. package/template/public/Cesium1.119/Workers/chunk-BMHPVZ4H.js +199 -0
  301. package/template/public/Cesium1.119/Workers/chunk-CBEO3SHS.js +1102 -0
  302. package/template/public/Cesium1.119/Workers/chunk-CV7DLCWG.js +485 -0
  303. package/template/public/Cesium1.119/Workers/chunk-DQO6B4EQ.js +76 -0
  304. package/template/public/Cesium1.119/Workers/chunk-ED3TLP6D.js +91 -0
  305. package/template/public/Cesium1.119/Workers/chunk-EFZKO5RU.js +42 -0
  306. package/template/public/Cesium1.119/Workers/chunk-F5IHREXR.js +2678 -0
  307. package/template/public/Cesium1.119/Workers/chunk-FKRG4HDY.js +516 -0
  308. package/template/public/Cesium1.119/Workers/chunk-FYOYUPXG.js +399 -0
  309. package/template/public/Cesium1.119/Workers/chunk-GFN7NNSJ.js +65 -0
  310. package/template/public/Cesium1.119/Workers/chunk-HEEMUCG6.js +92 -0
  311. package/template/public/Cesium1.119/Workers/chunk-HSWA4OEL.js +672 -0
  312. package/template/public/Cesium1.119/Workers/chunk-IAC5XVZV.js +287 -0
  313. package/template/public/Cesium1.119/Workers/chunk-II4VNKYR.js +50 -0
  314. package/template/public/Cesium1.119/Workers/chunk-ILGBPNP6.js +28 -0
  315. package/template/public/Cesium1.119/Workers/chunk-IRH46BDL.js +124 -0
  316. package/template/public/Cesium1.119/Workers/chunk-IUA6FAOZ.js +31 -0
  317. package/template/public/Cesium1.119/Workers/chunk-K4ASOM65.js +331 -0
  318. package/template/public/Cesium1.119/Workers/chunk-KCIZBVXL.js +258 -0
  319. package/template/public/Cesium1.119/Workers/chunk-KF5NF354.js +162 -0
  320. package/template/public/Cesium1.119/Workers/chunk-KRKI6AAO.js +773 -0
  321. package/template/public/Cesium1.119/Workers/chunk-KZNJOCYU.js +162 -0
  322. package/template/public/Cesium1.119/Workers/chunk-O5IJ3OGP.js +857 -0
  323. package/template/public/Cesium1.119/Workers/chunk-OO23RBLX.js +183 -0
  324. package/template/public/Cesium1.119/Workers/chunk-P37AI2DW.js +85 -0
  325. package/template/public/Cesium1.119/Workers/chunk-PDMQLSBL.js +108 -0
  326. package/template/public/Cesium1.119/Workers/chunk-PEYJTJPE.js +73 -0
  327. package/template/public/Cesium1.119/Workers/chunk-POASMU2N.js +2372 -0
  328. package/template/public/Cesium1.119/Workers/chunk-PXCJYT2S.js +73 -0
  329. package/template/public/Cesium1.119/Workers/chunk-Q6L7X3LP.js +538 -0
  330. package/template/public/Cesium1.119/Workers/chunk-QB3MDM4J.js +1670 -0
  331. package/template/public/Cesium1.119/Workers/chunk-R6KGAEF6.js +392 -0
  332. package/template/public/Cesium1.119/Workers/chunk-RXTBM4OI.js +57 -0
  333. package/template/public/Cesium1.119/Workers/chunk-SB224QGV.js +72 -0
  334. package/template/public/Cesium1.119/Workers/chunk-T6BE4RZK.js +37 -0
  335. package/template/public/Cesium1.119/Workers/chunk-TAMCUKAR.js +814 -0
  336. package/template/public/Cesium1.119/Workers/chunk-TMSETF7M.js +579 -0
  337. package/template/public/Cesium1.119/Workers/chunk-TOGHF3VN.js +376 -0
  338. package/template/public/Cesium1.119/Workers/chunk-UH2WFNTA.js +111 -0
  339. package/template/public/Cesium1.119/Workers/chunk-V7JEDBOE.js +573 -0
  340. package/template/public/Cesium1.119/Workers/chunk-VBIROZR5.js +633 -0
  341. package/template/public/Cesium1.119/Workers/chunk-W23CU777.js +271 -0
  342. package/template/public/Cesium1.119/Workers/chunk-X5IHHI6X.js +173 -0
  343. package/template/public/Cesium1.119/Workers/chunk-XHX2UPDO.js +217 -0
  344. package/template/public/Cesium1.119/Workers/combineGeometry.js +53 -0
  345. package/template/public/Cesium1.119/Workers/createBoxGeometry.js +45 -0
  346. package/template/public/Cesium1.119/Workers/createBoxOutlineGeometry.js +189 -0
  347. package/template/public/Cesium1.119/Workers/createCircleGeometry.js +148 -0
  348. package/template/public/Cesium1.119/Workers/createCircleOutlineGeometry.js +105 -0
  349. package/template/public/Cesium1.119/Workers/createCoplanarPolygonGeometry.js +293 -0
  350. package/template/public/Cesium1.119/Workers/createCoplanarPolygonOutlineGeometry.js +143 -0
  351. package/template/public/Cesium1.119/Workers/createCorridorGeometry.js +830 -0
  352. package/template/public/Cesium1.119/Workers/createCorridorOutlineGeometry.js +417 -0
  353. package/template/public/Cesium1.119/Workers/createCylinderGeometry.js +47 -0
  354. package/template/public/Cesium1.119/Workers/createCylinderOutlineGeometry.js +170 -0
  355. package/template/public/Cesium1.119/Workers/createEllipseGeometry.js +58 -0
  356. package/template/public/Cesium1.119/Workers/createEllipseOutlineGeometry.js +51 -0
  357. package/template/public/Cesium1.119/Workers/createEllipsoidGeometry.js +46 -0
  358. package/template/public/Cesium1.119/Workers/createEllipsoidOutlineGeometry.js +45 -0
  359. package/template/public/Cesium1.119/Workers/createFrustumGeometry.js +45 -0
  360. package/template/public/Cesium1.119/Workers/createFrustumOutlineGeometry.js +164 -0
  361. package/template/public/Cesium1.119/Workers/createGeometry.js +159 -0
  362. package/template/public/Cesium1.119/Workers/createGroundPolylineGeometry.js +911 -0
  363. package/template/public/Cesium1.119/Workers/createPlaneGeometry.js +185 -0
  364. package/template/public/Cesium1.119/Workers/createPlaneOutlineGeometry.js +93 -0
  365. package/template/public/Cesium1.119/Workers/createPolygonGeometry.js +884 -0
  366. package/template/public/Cesium1.119/Workers/createPolygonOutlineGeometry.js +359 -0
  367. package/template/public/Cesium1.119/Workers/createPolylineGeometry.js +349 -0
  368. package/template/public/Cesium1.119/Workers/createPolylineVolumeGeometry.js +262 -0
  369. package/template/public/Cesium1.119/Workers/createPolylineVolumeOutlineGeometry.js +177 -0
  370. package/template/public/Cesium1.119/Workers/createRectangleGeometry.js +787 -0
  371. package/template/public/Cesium1.119/Workers/createRectangleOutlineGeometry.js +299 -0
  372. package/template/public/Cesium1.119/Workers/createSimplePolylineGeometry.js +294 -0
  373. package/template/public/Cesium1.119/Workers/createSphereGeometry.js +84 -0
  374. package/template/public/Cesium1.119/Workers/createSphereOutlineGeometry.js +83 -0
  375. package/template/public/Cesium1.119/Workers/createTaskProcessorWorker.js +28 -0
  376. package/template/public/Cesium1.119/Workers/createVectorTileClampedPolylines.js +289 -0
  377. package/template/public/Cesium1.119/Workers/createVectorTileGeometries.js +258 -0
  378. package/template/public/Cesium1.119/Workers/createVectorTilePoints.js +79 -0
  379. package/template/public/Cesium1.119/Workers/createVectorTilePolygons.js +275 -0
  380. package/template/public/Cesium1.119/Workers/createVectorTilePolylines.js +176 -0
  381. package/template/public/Cesium1.119/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +375 -0
  382. package/template/public/Cesium1.119/Workers/createVerticesFromHeightmap.js +1772 -0
  383. package/template/public/Cesium1.119/Workers/createVerticesFromQuantizedTerrainMesh.js +425 -0
  384. package/template/public/Cesium1.119/Workers/createWallGeometry.js +320 -0
  385. package/template/public/Cesium1.119/Workers/createWallOutlineGeometry.js +229 -0
  386. package/template/public/Cesium1.119/Workers/decodeDraco.js +227 -0
  387. package/template/public/Cesium1.119/Workers/decodeGoogleEarthEnterprisePacket.js +1836 -0
  388. package/template/public/Cesium1.119/Workers/decodeI3S.js +924 -0
  389. package/template/public/Cesium1.119/Workers/transcodeKTX2.js +3180 -0
  390. package/template/public/Cesium1.119/Workers/transferTypedArrayTest.js +34 -0
  391. package/template/public/Cesium1.119/Workers/upsampleQuantizedTerrainMesh.js +534 -0
  392. package/template/public/Cesium1.119/index.cjs +185632 -0
  393. package/template/public/Cesium1.119/index.js +182874 -0
  394. package/template/public/vite.svg +1 -0
  395. package/template/scripts/gen-api.cjs +178 -0
  396. package/template/src/App.vue +6 -0
  397. package/template/src/api/README.md +3 -0
  398. package/template/src/assets/favicon.svg +49 -0
  399. package/template/src/components/Body/index.vue +16 -0
  400. package/template/src/components/Header/index.vue +8 -0
  401. package/template/src/directive/focus.ts +9 -0
  402. package/template/src/layout/BasicLayout.vue +28 -0
  403. package/template/src/main.ts +33 -0
  404. package/template/src/router/index.ts +24 -0
  405. package/template/src/stores/README.md +3 -0
  406. package/template/src/stores/useCounter.ts +12 -0
  407. package/template/src/styles/alerts.less +85 -0
  408. package/template/src/styles/global.css +326 -0
  409. package/template/src/utils/alert.ts +58 -0
  410. package/template/src/utils/components.ts +21 -0
  411. package/template/src/utils/composables/useAlert.ts +14 -0
  412. package/template/src/views/Test/index.vue +23 -0
  413. package/template/src/views/index.vue +9 -0
  414. package/template/src/vite-env.d.ts +1 -0
  415. package/template/swdg/bin/index.js +23 -0
  416. package/template/swdg/package.json +27 -0
  417. package/template/tests/README.md +6 -0
  418. package/template/tests/e2e/README.md +3 -0
  419. package/template/tests/setup.ts +1 -0
  420. package/template/tests/unit/example.test.ts +7 -0
  421. package/template/tests/utils/helpers.ts +1 -0
  422. package/template/tsconfig.json +51 -0
  423. package/template/tsconfig.node.json +11 -0
  424. package/template/types/README.md +3 -0
  425. package/template/types/global.d.ts +9 -0
  426. package/template/vite.config.ts +75 -0
  427. package/template/vitest.config.ts +9 -0
@@ -0,0 +1,1070 @@
1
+ (function () {
2
+ "use strict";
3
+ const {
4
+ Array: te,
5
+ Object: m,
6
+ Number: ne,
7
+ Math: A,
8
+ Error: v,
9
+ Uint8Array: w,
10
+ Uint16Array: nt,
11
+ Uint32Array: se,
12
+ Int32Array: st,
13
+ Map: re,
14
+ DataView: W,
15
+ Promise: M,
16
+ TextEncoder: ae,
17
+ crypto: B,
18
+ postMessage: K,
19
+ TransformStream: b,
20
+ ReadableStream: Ve,
21
+ WritableStream: xe,
22
+ CompressionStream: rt,
23
+ DecompressionStream: at,
24
+ } = self,
25
+ j = void 0,
26
+ N = "undefined",
27
+ O = "function";
28
+ class oe {
29
+ constructor(e) {
30
+ return class extends b {
31
+ constructor(n, s) {
32
+ const r = new e(s);
33
+ super({
34
+ transform(a, o) {
35
+ o.enqueue(r.append(a));
36
+ },
37
+ flush(a) {
38
+ const o = r.flush();
39
+ o && a.enqueue(o);
40
+ },
41
+ });
42
+ }
43
+ };
44
+ }
45
+ }
46
+ const ie = [];
47
+ for (let t = 0; 256 > t; t++) {
48
+ let e = t;
49
+ for (let n = 0; 8 > n; n++)
50
+ 1 & e ? (e = (e >>> 1) ^ 3988292384) : (e >>>= 1);
51
+ ie[t] = e;
52
+ }
53
+ class G {
54
+ constructor(e) {
55
+ this.crc = e || -1;
56
+ }
57
+ append(e) {
58
+ let n = 0 | this.crc;
59
+ for (let s = 0, r = 0 | e.length; r > s; s++)
60
+ n = (n >>> 8) ^ ie[255 & (n ^ e[s])];
61
+ this.crc = n;
62
+ }
63
+ get() {
64
+ return ~this.crc;
65
+ }
66
+ }
67
+ class ce extends b {
68
+ constructor() {
69
+ let e;
70
+ const n = new G();
71
+ (super({
72
+ transform(s, r) {
73
+ (n.append(s), r.enqueue(s));
74
+ },
75
+ flush() {
76
+ const s = new w(4);
77
+ (new W(s.buffer).setUint32(0, n.get()), (e.value = s));
78
+ },
79
+ }),
80
+ (e = this));
81
+ }
82
+ }
83
+ const _ = {
84
+ concat(t, e) {
85
+ if (t.length === 0 || e.length === 0) return t.concat(e);
86
+ const n = t[t.length - 1],
87
+ s = _.getPartial(n);
88
+ return s === 32
89
+ ? t.concat(e)
90
+ : _._shiftRight(e, s, 0 | n, t.slice(0, t.length - 1));
91
+ },
92
+ bitLength(t) {
93
+ const e = t.length;
94
+ if (e === 0) return 0;
95
+ const n = t[e - 1];
96
+ return 32 * (e - 1) + _.getPartial(n);
97
+ },
98
+ clamp(t, e) {
99
+ if (32 * t.length < e) return t;
100
+ const n = (t = t.slice(0, A.ceil(e / 32))).length;
101
+ return (
102
+ (e &= 31),
103
+ n > 0 &&
104
+ e &&
105
+ (t[n - 1] = _.partial(e, t[n - 1] & (2147483648 >> (e - 1)), 1)),
106
+ t
107
+ );
108
+ },
109
+ partial: (t, e, n) =>
110
+ t === 32 ? e : (n ? 0 | e : e << (32 - t)) + 1099511627776 * t,
111
+ getPartial: (t) => A.round(t / 1099511627776) || 32,
112
+ _shiftRight(t, e, n, s) {
113
+ for (s === void 0 && (s = []); e >= 32; e -= 32) (s.push(n), (n = 0));
114
+ if (e === 0) return s.concat(t);
115
+ for (let o = 0; o < t.length; o++)
116
+ (s.push(n | (t[o] >>> e)), (n = t[o] << (32 - e)));
117
+ const r = t.length ? t[t.length - 1] : 0,
118
+ a = _.getPartial(r);
119
+ return (
120
+ s.push(_.partial((e + a) & 31, e + a > 32 ? n : s.pop(), 1)),
121
+ s
122
+ );
123
+ },
124
+ },
125
+ L = {
126
+ bytes: {
127
+ fromBits(t) {
128
+ const e = _.bitLength(t) / 8,
129
+ n = new w(e);
130
+ let s;
131
+ for (let r = 0; e > r; r++)
132
+ (3 & r || (s = t[r / 4]), (n[r] = s >>> 24), (s <<= 8));
133
+ return n;
134
+ },
135
+ toBits(t) {
136
+ const e = [];
137
+ let n,
138
+ s = 0;
139
+ for (n = 0; n < t.length; n++)
140
+ ((s = (s << 8) | t[n]), 3 & ~n || (e.push(s), (s = 0)));
141
+ return (3 & n && e.push(_.partial(8 * (3 & n), s)), e);
142
+ },
143
+ },
144
+ },
145
+ Ee = class {
146
+ constructor(t) {
147
+ const e = this;
148
+ ((e.blockSize = 512),
149
+ (e._init = [
150
+ 1732584193, 4023233417, 2562383102, 271733878, 3285377520,
151
+ ]),
152
+ (e._key = [1518500249, 1859775393, 2400959708, 3395469782]),
153
+ t
154
+ ? ((e._h = t._h.slice(0)),
155
+ (e._buffer = t._buffer.slice(0)),
156
+ (e._length = t._length))
157
+ : e.reset());
158
+ }
159
+ reset() {
160
+ const t = this;
161
+ return (
162
+ (t._h = t._init.slice(0)),
163
+ (t._buffer = []),
164
+ (t._length = 0),
165
+ t
166
+ );
167
+ }
168
+ update(t) {
169
+ const e = this;
170
+ typeof t == "string" && (t = L.utf8String.toBits(t));
171
+ const n = (e._buffer = _.concat(e._buffer, t)),
172
+ s = e._length,
173
+ r = (e._length = s + _.bitLength(t));
174
+ if (r > 9007199254740991)
175
+ throw new v("Cannot hash more than 2^53 - 1 bits");
176
+ const a = new se(n);
177
+ let o = 0;
178
+ for (
179
+ let l = e.blockSize + s - ((e.blockSize + s) & (e.blockSize - 1));
180
+ r >= l;
181
+ l += e.blockSize
182
+ )
183
+ (e._block(a.subarray(16 * o, 16 * (o + 1))), (o += 1));
184
+ return (n.splice(0, 16 * o), e);
185
+ }
186
+ finalize() {
187
+ const t = this;
188
+ let e = t._buffer;
189
+ const n = t._h;
190
+ e = _.concat(e, [_.partial(1, 1)]);
191
+ for (let s = e.length + 2; 15 & s; s++) e.push(0);
192
+ for (
193
+ e.push(A.floor(t._length / 4294967296)), e.push(0 | t._length);
194
+ e.length;
195
+ )
196
+ t._block(e.splice(0, 16));
197
+ return (t.reset(), n);
198
+ }
199
+ _f(t, e, n, s) {
200
+ return t > 19
201
+ ? t > 39
202
+ ? t > 59
203
+ ? t > 79
204
+ ? void 0
205
+ : e ^ n ^ s
206
+ : (e & n) | (e & s) | (n & s)
207
+ : e ^ n ^ s
208
+ : (e & n) | (~e & s);
209
+ }
210
+ _S(t, e) {
211
+ return (e << t) | (e >>> (32 - t));
212
+ }
213
+ _block(t) {
214
+ const e = this,
215
+ n = e._h,
216
+ s = te(80);
217
+ for (let c = 0; 16 > c; c++) s[c] = t[c];
218
+ let r = n[0],
219
+ a = n[1],
220
+ o = n[2],
221
+ l = n[3],
222
+ u = n[4];
223
+ for (let c = 0; 79 >= c; c++) {
224
+ 16 > c ||
225
+ (s[c] = e._S(1, s[c - 3] ^ s[c - 8] ^ s[c - 14] ^ s[c - 16]));
226
+ const i =
227
+ (e._S(5, r) +
228
+ e._f(c, a, o, l) +
229
+ u +
230
+ s[c] +
231
+ e._key[A.floor(c / 20)]) |
232
+ 0;
233
+ ((u = l), (l = o), (o = e._S(30, a)), (a = r), (r = i));
234
+ }
235
+ ((n[0] = (n[0] + r) | 0),
236
+ (n[1] = (n[1] + a) | 0),
237
+ (n[2] = (n[2] + o) | 0),
238
+ (n[3] = (n[3] + l) | 0),
239
+ (n[4] = (n[4] + u) | 0));
240
+ }
241
+ },
242
+ Ue = {
243
+ getRandomValues(t) {
244
+ const e = new se(t.buffer),
245
+ n = (s) => {
246
+ let r = 987654321;
247
+ const a = 4294967295;
248
+ return () => (
249
+ (r = (36969 * (65535 & r) + (r >> 16)) & a),
250
+ ((((r << 16) + (s = (18e3 * (65535 & s) + (s >> 16)) & a)) & a) /
251
+ 4294967296 +
252
+ 0.5) *
253
+ (A.random() > 0.5 ? 1 : -1)
254
+ );
255
+ };
256
+ for (let s, r = 0; r < t.length; r += 4) {
257
+ const a = n(4294967296 * (s || A.random()));
258
+ ((s = 987654071 * a()), (e[r / 4] = (4294967296 * a()) | 0));
259
+ }
260
+ return t;
261
+ },
262
+ },
263
+ H = {
264
+ importKey: (t) => new H.hmacSha1(L.bytes.toBits(t)),
265
+ pbkdf2(t, e, n, s) {
266
+ if (((n = n || 1e4), 0 > s || 0 > n))
267
+ throw new v("invalid params to pbkdf2");
268
+ const r = (1 + (s >> 5)) << 2;
269
+ let a, o, l, u, c;
270
+ const i = new ArrayBuffer(r),
271
+ f = new W(i);
272
+ let h = 0;
273
+ const p = _;
274
+ for (e = L.bytes.toBits(e), c = 1; (r || 1) > h; c++) {
275
+ for (a = o = t.encrypt(p.concat(e, [c])), l = 1; n > l; l++)
276
+ for (o = t.encrypt(o), u = 0; u < o.length; u++) a[u] ^= o[u];
277
+ for (l = 0; (r || 1) > h && l < a.length; l++)
278
+ (f.setInt32(h, a[l]), (h += 4));
279
+ }
280
+ return i.slice(0, s / 8);
281
+ },
282
+ hmacSha1: class {
283
+ constructor(t) {
284
+ const e = this,
285
+ n = (e._hash = Ee),
286
+ s = [[], []];
287
+ e._baseHash = [new n(), new n()];
288
+ const r = e._baseHash[0].blockSize / 32;
289
+ t.length > r && (t = new n().update(t).finalize());
290
+ for (let a = 0; r > a; a++)
291
+ ((s[0][a] = 909522486 ^ t[a]), (s[1][a] = 1549556828 ^ t[a]));
292
+ (e._baseHash[0].update(s[0]),
293
+ e._baseHash[1].update(s[1]),
294
+ (e._resultHash = new n(e._baseHash[0])));
295
+ }
296
+ reset() {
297
+ const t = this;
298
+ ((t._resultHash = new t._hash(t._baseHash[0])), (t._updated = !1));
299
+ }
300
+ update(t) {
301
+ ((this._updated = !0), this._resultHash.update(t));
302
+ }
303
+ digest() {
304
+ const t = this,
305
+ e = t._resultHash.finalize(),
306
+ n = new t._hash(t._baseHash[1]).update(e).finalize();
307
+ return (t.reset(), n);
308
+ }
309
+ encrypt(t) {
310
+ if (this._updated)
311
+ throw new v("encrypt on already updated hmac called!");
312
+ return (this.update(t), this.digest(t));
313
+ }
314
+ },
315
+ },
316
+ We = typeof B != N && typeof B.getRandomValues == O,
317
+ le = "Invalid password",
318
+ ue = "Invalid signature",
319
+ he = "zipjs-abort-check-password";
320
+ function fe(t) {
321
+ return We ? B.getRandomValues(t) : Ue.getRandomValues(t);
322
+ }
323
+ const P = 16,
324
+ pe = { name: "PBKDF2" },
325
+ Me = m.assign({ hash: { name: "HMAC" } }, pe),
326
+ X = m.assign({ iterations: 1e3, hash: { name: "SHA-1" } }, pe),
327
+ Ne = ["deriveBits"],
328
+ T = [8, 12, 16],
329
+ V = [16, 24, 32],
330
+ q = 10,
331
+ Oe = [0, 0, 0, 0],
332
+ F = typeof B != N,
333
+ x = F && B.subtle,
334
+ de = F && typeof x != N,
335
+ z = L.bytes,
336
+ Le = class {
337
+ constructor(t) {
338
+ const e = this;
339
+ ((e._tables = [
340
+ [[], [], [], [], []],
341
+ [[], [], [], [], []],
342
+ ]),
343
+ e._tables[0][0][0] || e._precompute());
344
+ const n = e._tables[0][4],
345
+ s = e._tables[1],
346
+ r = t.length;
347
+ let a,
348
+ o,
349
+ l,
350
+ u = 1;
351
+ if (r !== 4 && r !== 6 && r !== 8) throw new v("invalid aes key size");
352
+ for (
353
+ e._key = [(o = t.slice(0)), (l = [])], a = r;
354
+ 4 * r + 28 > a;
355
+ a++
356
+ ) {
357
+ let c = o[a - 1];
358
+ ((a % r == 0 || (r === 8 && a % r == 4)) &&
359
+ ((c =
360
+ (n[c >>> 24] << 24) ^
361
+ (n[(c >> 16) & 255] << 16) ^
362
+ (n[(c >> 8) & 255] << 8) ^
363
+ n[255 & c]),
364
+ a % r == 0 &&
365
+ ((c = (c << 8) ^ (c >>> 24) ^ (u << 24)),
366
+ (u = (u << 1) ^ (283 * (u >> 7))))),
367
+ (o[a] = o[a - r] ^ c));
368
+ }
369
+ for (let c = 0; a; c++, a--) {
370
+ const i = o[3 & c ? a : a - 4];
371
+ l[c] =
372
+ 4 >= a || 4 > c
373
+ ? i
374
+ : s[0][n[i >>> 24]] ^
375
+ s[1][n[(i >> 16) & 255]] ^
376
+ s[2][n[(i >> 8) & 255]] ^
377
+ s[3][n[255 & i]];
378
+ }
379
+ }
380
+ encrypt(t) {
381
+ return this._crypt(t, 0);
382
+ }
383
+ decrypt(t) {
384
+ return this._crypt(t, 1);
385
+ }
386
+ _precompute() {
387
+ const t = this._tables[0],
388
+ e = this._tables[1],
389
+ n = t[4],
390
+ s = e[4],
391
+ r = [],
392
+ a = [];
393
+ let o, l, u, c;
394
+ for (let i = 0; 256 > i; i++)
395
+ a[(r[i] = (i << 1) ^ (283 * (i >> 7))) ^ i] = i;
396
+ for (let i = (o = 0); !n[i]; i ^= l || 1, o = a[o] || 1) {
397
+ let f = o ^ (o << 1) ^ (o << 2) ^ (o << 3) ^ (o << 4);
398
+ ((f = (f >> 8) ^ (255 & f) ^ 99),
399
+ (n[i] = f),
400
+ (s[f] = i),
401
+ (c = r[(u = r[(l = r[i])])]));
402
+ let h = (16843009 * c) ^ (65537 * u) ^ (257 * l) ^ (16843008 * i),
403
+ p = (257 * r[f]) ^ (16843008 * f);
404
+ for (let d = 0; 4 > d; d++)
405
+ ((t[d][i] = p = (p << 24) ^ (p >>> 8)),
406
+ (e[d][f] = h = (h << 24) ^ (h >>> 8)));
407
+ }
408
+ for (let i = 0; 5 > i; i++)
409
+ ((t[i] = t[i].slice(0)), (e[i] = e[i].slice(0)));
410
+ }
411
+ _crypt(t, e) {
412
+ if (t.length !== 4) throw new v("invalid aes block size");
413
+ const n = this._key[e],
414
+ s = n.length / 4 - 2,
415
+ r = [0, 0, 0, 0],
416
+ a = this._tables[e],
417
+ o = a[0],
418
+ l = a[1],
419
+ u = a[2],
420
+ c = a[3],
421
+ i = a[4];
422
+ let f,
423
+ h,
424
+ p,
425
+ d = t[0] ^ n[0],
426
+ g = t[e ? 3 : 1] ^ n[1],
427
+ y = t[2] ^ n[2],
428
+ S = t[e ? 1 : 3] ^ n[3],
429
+ I = 4;
430
+ for (let C = 0; s > C; C++)
431
+ ((f =
432
+ o[d >>> 24] ^
433
+ l[(g >> 16) & 255] ^
434
+ u[(y >> 8) & 255] ^
435
+ c[255 & S] ^
436
+ n[I]),
437
+ (h =
438
+ o[g >>> 24] ^
439
+ l[(y >> 16) & 255] ^
440
+ u[(S >> 8) & 255] ^
441
+ c[255 & d] ^
442
+ n[I + 1]),
443
+ (p =
444
+ o[y >>> 24] ^
445
+ l[(S >> 16) & 255] ^
446
+ u[(d >> 8) & 255] ^
447
+ c[255 & g] ^
448
+ n[I + 2]),
449
+ (S =
450
+ o[S >>> 24] ^
451
+ l[(d >> 16) & 255] ^
452
+ u[(g >> 8) & 255] ^
453
+ c[255 & y] ^
454
+ n[I + 3]),
455
+ (I += 4),
456
+ (d = f),
457
+ (g = h),
458
+ (y = p));
459
+ for (let C = 0; 4 > C; C++)
460
+ ((r[e ? 3 & -C : C] =
461
+ (i[d >>> 24] << 24) ^
462
+ (i[(g >> 16) & 255] << 16) ^
463
+ (i[(y >> 8) & 255] << 8) ^
464
+ i[255 & S] ^
465
+ n[I++]),
466
+ (f = d),
467
+ (d = g),
468
+ (g = y),
469
+ (y = S),
470
+ (S = f));
471
+ return r;
472
+ }
473
+ },
474
+ Fe = class {
475
+ constructor(t, e) {
476
+ ((this._prf = t), (this._initIv = e), (this._iv = e));
477
+ }
478
+ reset() {
479
+ this._iv = this._initIv;
480
+ }
481
+ update(t) {
482
+ return this.calculate(this._prf, t, this._iv);
483
+ }
484
+ incWord(t) {
485
+ if (255 & ~(t >> 24)) t += 1 << 24;
486
+ else {
487
+ let e = (t >> 16) & 255,
488
+ n = (t >> 8) & 255,
489
+ s = 255 & t;
490
+ (e === 255
491
+ ? ((e = 0), n === 255 ? ((n = 0), s === 255 ? (s = 0) : ++s) : ++n)
492
+ : ++e,
493
+ (t = 0),
494
+ (t += e << 16),
495
+ (t += n << 8),
496
+ (t += s));
497
+ }
498
+ return t;
499
+ }
500
+ incCounter(t) {
501
+ (t[0] = this.incWord(t[0])) === 0 && (t[1] = this.incWord(t[1]));
502
+ }
503
+ calculate(t, e, n) {
504
+ let s;
505
+ if (!(s = e.length)) return [];
506
+ const r = _.bitLength(e);
507
+ for (let a = 0; s > a; a += 4) {
508
+ this.incCounter(n);
509
+ const o = t.encrypt(n);
510
+ ((e[a] ^= o[0]),
511
+ (e[a + 1] ^= o[1]),
512
+ (e[a + 2] ^= o[2]),
513
+ (e[a + 3] ^= o[3]));
514
+ }
515
+ return _.clamp(e, r);
516
+ }
517
+ },
518
+ je = H.hmacSha1;
519
+ let ge = F && de && typeof x.importKey == O,
520
+ we = F && de && typeof x.deriveBits == O;
521
+ class Ge extends b {
522
+ constructor({
523
+ password: e,
524
+ rawPassword: n,
525
+ signed: s,
526
+ encryptionStrength: r,
527
+ checkPasswordOnly: a,
528
+ }) {
529
+ super({
530
+ start() {
531
+ m.assign(this, {
532
+ ready: new M((o) => (this.resolveReady = o)),
533
+ password: _e(e, n),
534
+ signed: s,
535
+ strength: r - 1,
536
+ pending: new w(),
537
+ });
538
+ },
539
+ async transform(o, l) {
540
+ const u = this,
541
+ { password: c, strength: i, resolveReady: f, ready: h } = u;
542
+ c
543
+ ? (await (async (d, g, y, S) => {
544
+ const I = await me(d, g, y, k(S, 0, T[g])),
545
+ C = k(S, T[g]);
546
+ if (I[0] != C[0] || I[1] != C[1]) throw new v(le);
547
+ })(u, i, c, k(o, 0, T[i] + 2)),
548
+ (o = k(o, T[i] + 2)),
549
+ a ? l.error(new v(he)) : f())
550
+ : await h;
551
+ const p = new w(o.length - q - ((o.length - q) % P));
552
+ l.enqueue(ye(u, o, p, 0, q, !0));
553
+ },
554
+ async flush(o) {
555
+ const { signed: l, ctr: u, hmac: c, pending: i, ready: f } = this;
556
+ if (c && u) {
557
+ await f;
558
+ const h = k(i, 0, i.length - q),
559
+ p = k(i, i.length - q);
560
+ let d = new w();
561
+ if (h.length) {
562
+ const g = U(z, h);
563
+ c.update(g);
564
+ const y = u.update(g);
565
+ d = E(z, y);
566
+ }
567
+ if (l) {
568
+ const g = k(E(z, c.digest()), 0, q);
569
+ for (let y = 0; q > y; y++) if (g[y] != p[y]) throw new v(ue);
570
+ }
571
+ o.enqueue(d);
572
+ }
573
+ },
574
+ });
575
+ }
576
+ }
577
+ class Xe extends b {
578
+ constructor({ password: e, rawPassword: n, encryptionStrength: s }) {
579
+ let r;
580
+ (super({
581
+ start() {
582
+ m.assign(this, {
583
+ ready: new M((a) => (this.resolveReady = a)),
584
+ password: _e(e, n),
585
+ strength: s - 1,
586
+ pending: new w(),
587
+ });
588
+ },
589
+ async transform(a, o) {
590
+ const l = this,
591
+ { password: u, strength: c, resolveReady: i, ready: f } = l;
592
+ let h = new w();
593
+ u
594
+ ? ((h = await (async (d, g, y) => {
595
+ const S = fe(new w(T[g]));
596
+ return J(S, await me(d, g, y, S));
597
+ })(l, c, u)),
598
+ i())
599
+ : await f;
600
+ const p = new w(h.length + a.length - (a.length % P));
601
+ (p.set(h, 0), o.enqueue(ye(l, a, p, h.length, 0)));
602
+ },
603
+ async flush(a) {
604
+ const { ctr: o, hmac: l, pending: u, ready: c } = this;
605
+ if (l && o) {
606
+ await c;
607
+ let i = new w();
608
+ if (u.length) {
609
+ const f = o.update(U(z, u));
610
+ (l.update(f), (i = E(z, f)));
611
+ }
612
+ ((r.signature = E(z, l.digest()).slice(0, q)),
613
+ a.enqueue(J(i, r.signature)));
614
+ }
615
+ },
616
+ }),
617
+ (r = this));
618
+ }
619
+ }
620
+ function ye(t, e, n, s, r, a) {
621
+ const { ctr: o, hmac: l, pending: u } = t,
622
+ c = e.length - r;
623
+ let i;
624
+ for (
625
+ u.length &&
626
+ ((e = J(u, e)),
627
+ (n = ((f, h) => {
628
+ if (h && h > f.length) {
629
+ const p = f;
630
+ (f = new w(h)).set(p, 0);
631
+ }
632
+ return f;
633
+ })(n, c - (c % P)))),
634
+ i = 0;
635
+ c - P >= i;
636
+ i += P
637
+ ) {
638
+ const f = U(z, k(e, i, i + P));
639
+ a && l.update(f);
640
+ const h = o.update(f);
641
+ (a || l.update(h), n.set(E(z, h), i + s));
642
+ }
643
+ return ((t.pending = k(e, i)), n);
644
+ }
645
+ async function me(t, e, n, s) {
646
+ t.password = null;
647
+ const r = await (async (i, f, h, p, d) => {
648
+ if (!ge) return H.importKey(f);
649
+ try {
650
+ return await x.importKey("raw", f, h, !1, d);
651
+ } catch {
652
+ return ((ge = !1), H.importKey(f));
653
+ }
654
+ })(0, n, Me, 0, Ne),
655
+ a = await (async (i, f, h) => {
656
+ if (!we) return H.pbkdf2(f, i.salt, X.iterations, h);
657
+ try {
658
+ return await x.deriveBits(i, f, h);
659
+ } catch {
660
+ return ((we = !1), H.pbkdf2(f, i.salt, X.iterations, h));
661
+ }
662
+ })(m.assign({ salt: s }, X), r, 8 * (2 * V[e] + 2)),
663
+ o = new w(a),
664
+ l = U(z, k(o, 0, V[e])),
665
+ u = U(z, k(o, V[e], 2 * V[e])),
666
+ c = k(o, 2 * V[e]);
667
+ return (
668
+ m.assign(t, {
669
+ keys: { key: l, authentication: u, passwordVerification: c },
670
+ ctr: new Fe(new Le(l), te.from(Oe)),
671
+ hmac: new je(u),
672
+ }),
673
+ c
674
+ );
675
+ }
676
+ function _e(t, e) {
677
+ return e === j
678
+ ? ((n) => {
679
+ if (typeof ae == N) {
680
+ const s = new w((n = unescape(encodeURIComponent(n))).length);
681
+ for (let r = 0; r < s.length; r++) s[r] = n.charCodeAt(r);
682
+ return s;
683
+ }
684
+ return new ae().encode(n);
685
+ })(t)
686
+ : e;
687
+ }
688
+ function J(t, e) {
689
+ let n = t;
690
+ return (
691
+ t.length + e.length &&
692
+ ((n = new w(t.length + e.length)), n.set(t, 0), n.set(e, t.length)),
693
+ n
694
+ );
695
+ }
696
+ function k(t, e, n) {
697
+ return t.subarray(e, n);
698
+ }
699
+ function E(t, e) {
700
+ return t.fromBits(e);
701
+ }
702
+ function U(t, e) {
703
+ return t.toBits(e);
704
+ }
705
+ class Je extends b {
706
+ constructor({
707
+ password: e,
708
+ passwordVerification: n,
709
+ checkPasswordOnly: s,
710
+ }) {
711
+ super({
712
+ start() {
713
+ (m.assign(this, { password: e, passwordVerification: n }),
714
+ ve(this, e));
715
+ },
716
+ transform(r, a) {
717
+ const o = this;
718
+ if (o.password) {
719
+ const l = be(o, r.subarray(0, 12));
720
+ if (((o.password = null), l[11] != o.passwordVerification))
721
+ throw new v(le);
722
+ r = r.subarray(12);
723
+ }
724
+ s ? a.error(new v(he)) : a.enqueue(be(o, r));
725
+ },
726
+ });
727
+ }
728
+ }
729
+ class Qe extends b {
730
+ constructor({ password: e, passwordVerification: n }) {
731
+ super({
732
+ start() {
733
+ (m.assign(this, { password: e, passwordVerification: n }),
734
+ ve(this, e));
735
+ },
736
+ transform(s, r) {
737
+ const a = this;
738
+ let o, l;
739
+ if (a.password) {
740
+ a.password = null;
741
+ const u = fe(new w(12));
742
+ ((u[11] = a.passwordVerification),
743
+ (o = new w(s.length + u.length)),
744
+ o.set(Se(a, u), 0),
745
+ (l = 12));
746
+ } else ((o = new w(s.length)), (l = 0));
747
+ (o.set(Se(a, s), l), r.enqueue(o));
748
+ },
749
+ });
750
+ }
751
+ }
752
+ function be(t, e) {
753
+ const n = new w(e.length);
754
+ for (let s = 0; s < e.length; s++) ((n[s] = ke(t) ^ e[s]), Q(t, n[s]));
755
+ return n;
756
+ }
757
+ function Se(t, e) {
758
+ const n = new w(e.length);
759
+ for (let s = 0; s < e.length; s++) ((n[s] = ke(t) ^ e[s]), Q(t, e[s]));
760
+ return n;
761
+ }
762
+ function ve(t, e) {
763
+ const n = [305419896, 591751049, 878082192];
764
+ m.assign(t, { keys: n, crcKey0: new G(n[0]), crcKey2: new G(n[2]) });
765
+ for (let s = 0; s < e.length; s++) Q(t, e.charCodeAt(s));
766
+ }
767
+ function Q(t, e) {
768
+ let [n, s, r] = t.keys;
769
+ (t.crcKey0.append([e]),
770
+ (n = ~t.crcKey0.get()),
771
+ (s = De(A.imul(De(s + ze(n)), 134775813) + 1)),
772
+ t.crcKey2.append([s >>> 24]),
773
+ (r = ~t.crcKey2.get()),
774
+ (t.keys = [n, s, r]));
775
+ }
776
+ function ke(t) {
777
+ const e = 2 | t.keys[2];
778
+ return ze(A.imul(e, 1 ^ e) >>> 8);
779
+ }
780
+ function ze(t) {
781
+ return 255 & t;
782
+ }
783
+ function De(t) {
784
+ return 4294967295 & t;
785
+ }
786
+ const Ce = "deflate-raw";
787
+ class Ye extends b {
788
+ constructor(
789
+ e,
790
+ { chunkSize: n, CompressionStream: s, CompressionStreamNative: r },
791
+ ) {
792
+ super({});
793
+ const {
794
+ compressed: a,
795
+ encrypted: o,
796
+ useCompressionStream: l,
797
+ zipCrypto: u,
798
+ signed: c,
799
+ level: i,
800
+ } = e,
801
+ f = this;
802
+ let h,
803
+ p,
804
+ d = Ie(super.readable);
805
+ ((o && !u) || !c || ((h = new ce()), (d = D(d, h))),
806
+ a && (d = qe(d, l, { level: i, chunkSize: n }, r, s)),
807
+ o && (u ? (d = D(d, new Qe(e))) : ((p = new Xe(e)), (d = D(d, p)))),
808
+ Ae(f, d, () => {
809
+ let g;
810
+ (o && !u && (g = p.signature),
811
+ (o && !u) || !c || (g = new W(h.value.buffer).getUint32(0)),
812
+ (f.signature = g));
813
+ }));
814
+ }
815
+ }
816
+ class Ze extends b {
817
+ constructor(
818
+ e,
819
+ { chunkSize: n, DecompressionStream: s, DecompressionStreamNative: r },
820
+ ) {
821
+ super({});
822
+ const {
823
+ zipCrypto: a,
824
+ encrypted: o,
825
+ signed: l,
826
+ signature: u,
827
+ compressed: c,
828
+ useCompressionStream: i,
829
+ } = e;
830
+ let f,
831
+ h,
832
+ p = Ie(super.readable);
833
+ (o && (a ? (p = D(p, new Je(e))) : ((h = new Ge(e)), (p = D(p, h)))),
834
+ c && (p = qe(p, i, { chunkSize: n }, r, s)),
835
+ (o && !a) || !l || ((f = new ce()), (p = D(p, f))),
836
+ Ae(this, p, () => {
837
+ if ((!o || a) && l) {
838
+ const d = new W(f.value.buffer);
839
+ if (u != d.getUint32(0, !1)) throw new v(ue);
840
+ }
841
+ }));
842
+ }
843
+ }
844
+ function Ie(t) {
845
+ return D(
846
+ t,
847
+ new b({
848
+ transform(e, n) {
849
+ e && e.length && n.enqueue(e);
850
+ },
851
+ }),
852
+ );
853
+ }
854
+ function Ae(t, e, n) {
855
+ ((e = D(e, new b({ flush: n }))),
856
+ m.defineProperty(t, "readable", { get: () => e }));
857
+ }
858
+ function qe(t, e, n, s, r) {
859
+ try {
860
+ t = D(t, new (e && s ? s : r)(Ce, n));
861
+ } catch {
862
+ if (!e) return t;
863
+ try {
864
+ t = D(t, new r(Ce, n));
865
+ } catch {
866
+ return t;
867
+ }
868
+ }
869
+ return t;
870
+ }
871
+ function D(t, e) {
872
+ return t.pipeThrough(e);
873
+ }
874
+ const Re = "data",
875
+ He = "close";
876
+ class $e extends b {
877
+ constructor(e, n) {
878
+ super({});
879
+ const s = this,
880
+ { codecType: r } = e;
881
+ let a;
882
+ r.startsWith("deflate") ? (a = Ye) : r.startsWith("inflate") && (a = Ze);
883
+ let o = 0,
884
+ l = 0;
885
+ const u = new a(e, n),
886
+ c = super.readable,
887
+ i = new b({
888
+ transform(h, p) {
889
+ h && h.length && ((l += h.length), p.enqueue(h));
890
+ },
891
+ flush() {
892
+ m.assign(s, { inputSize: l });
893
+ },
894
+ }),
895
+ f = new b({
896
+ transform(h, p) {
897
+ h && h.length && ((o += h.length), p.enqueue(h));
898
+ },
899
+ flush() {
900
+ const { signature: h } = u;
901
+ m.assign(s, { signature: h, outputSize: o, inputSize: l });
902
+ },
903
+ });
904
+ m.defineProperty(s, "readable", {
905
+ get: () => c.pipeThrough(i).pipeThrough(u).pipeThrough(f),
906
+ });
907
+ }
908
+ }
909
+ class et extends b {
910
+ constructor(e) {
911
+ let n;
912
+ super({
913
+ transform: function s(r, a) {
914
+ if (n) {
915
+ const o = new w(n.length + r.length);
916
+ (o.set(n), o.set(r, n.length), (r = o), (n = null));
917
+ }
918
+ r.length > e ? (a.enqueue(r.slice(0, e)), s(r.slice(e), a)) : (n = r);
919
+ },
920
+ flush(s) {
921
+ n && n.length && s.enqueue(n);
922
+ },
923
+ });
924
+ }
925
+ }
926
+ const Y = new re(),
927
+ Z = new re();
928
+ let $,
929
+ R = 0,
930
+ Pe = !0;
931
+ async function tt(t) {
932
+ try {
933
+ const { options: e, scripts: n, config: s } = t;
934
+ if (n && n.length)
935
+ try {
936
+ Pe ? importScripts.apply(j, n) : await Be(n);
937
+ } catch {
938
+ ((Pe = !1), await Be(n));
939
+ }
940
+ (self.initCodec && self.initCodec(),
941
+ (s.CompressionStreamNative = self.CompressionStream),
942
+ (s.DecompressionStreamNative = self.DecompressionStream),
943
+ self.Deflate && (s.CompressionStream = new oe(self.Deflate)),
944
+ self.Inflate && (s.DecompressionStream = new oe(self.Inflate)));
945
+ const r = { highWaterMark: 1 },
946
+ a =
947
+ t.readable ||
948
+ new Ve(
949
+ {
950
+ async pull(h) {
951
+ const p = new M((y) => Y.set(R, y));
952
+ (ee({ type: "pull", messageId: R }),
953
+ (R = (R + 1) % ne.MAX_SAFE_INTEGER));
954
+ const { value: d, done: g } = await p;
955
+ (h.enqueue(d), g && h.close());
956
+ },
957
+ },
958
+ r,
959
+ ),
960
+ o =
961
+ t.writable ||
962
+ new xe(
963
+ {
964
+ async write(h) {
965
+ let p;
966
+ const d = new M((g) => (p = g));
967
+ (Z.set(R, p),
968
+ ee({ type: Re, value: h, messageId: R }),
969
+ (R = (R + 1) % ne.MAX_SAFE_INTEGER),
970
+ await d);
971
+ },
972
+ },
973
+ r,
974
+ ),
975
+ l = new $e(e, s);
976
+ $ = new AbortController();
977
+ const { signal: u } = $;
978
+ (await a
979
+ .pipeThrough(l)
980
+ .pipeThrough(new et(s.chunkSize))
981
+ .pipeTo(o, { signal: u, preventClose: !0, preventAbort: !0 }),
982
+ await o.getWriter().close());
983
+ const { signature: c, inputSize: i, outputSize: f } = l;
984
+ ee({ type: He, result: { signature: c, inputSize: i, outputSize: f } });
985
+ } catch (e) {
986
+ Ke(e);
987
+ }
988
+ }
989
+ async function Be(t) {
990
+ for (const e of t) await import(e);
991
+ }
992
+ function ee(t) {
993
+ let { value: e } = t;
994
+ if (e)
995
+ if (e.length)
996
+ try {
997
+ ((e = new w(e)), (t.value = e.buffer), K(t, [t.value]));
998
+ } catch {
999
+ K(t);
1000
+ }
1001
+ else K(t);
1002
+ else K(t);
1003
+ }
1004
+ function Ke(t = new v("Unknown error")) {
1005
+ const { message: e, stack: n, code: s, name: r } = t;
1006
+ K({ error: { message: e, stack: n, code: s, name: r } });
1007
+ }
1008
+ function Te(t, e, n) {
1009
+ return class {
1010
+ constructor(r) {
1011
+ const a = this;
1012
+ var o, l;
1013
+ ((o = r),
1014
+ (l = "level"),
1015
+ (typeof m.hasOwn === O ? m.hasOwn(o, l) : o.hasOwnProperty(l)) &&
1016
+ r.level === j &&
1017
+ delete r.level,
1018
+ (a.codec = new t(m.assign({}, e, r))),
1019
+ n(a.codec, (u) => {
1020
+ if (a.pendingData) {
1021
+ const c = a.pendingData;
1022
+ a.pendingData = new w(c.length + u.length);
1023
+ const { pendingData: i } = a;
1024
+ (i.set(c, 0), i.set(u, c.length));
1025
+ } else a.pendingData = new w(u);
1026
+ }));
1027
+ }
1028
+ append(r) {
1029
+ return (this.codec.push(r), s(this));
1030
+ }
1031
+ flush() {
1032
+ return (this.codec.push(new w(), !0), s(this));
1033
+ }
1034
+ };
1035
+ function s(r) {
1036
+ if (r.pendingData) {
1037
+ const a = r.pendingData;
1038
+ return ((r.pendingData = null), a);
1039
+ }
1040
+ return new w();
1041
+ }
1042
+ }
1043
+ (addEventListener("message", ({ data: t }) => {
1044
+ const { type: e, messageId: n, value: s, done: r } = t;
1045
+ try {
1046
+ if ((e == "start" && tt(t), e == Re)) {
1047
+ const a = Y.get(n);
1048
+ (Y.delete(n), a({ value: new w(s), done: r }));
1049
+ }
1050
+ if (e == "ack") {
1051
+ const a = Z.get(n);
1052
+ (Z.delete(n), a());
1053
+ }
1054
+ e == He && $.abort();
1055
+ } catch (a) {
1056
+ Ke(a);
1057
+ }
1058
+ }),
1059
+ (self.initCodec = () => {
1060
+ const { Deflate: t, Inflate: e } = ((n, s = {}, r) => ({
1061
+ Deflate: Te(n.Deflate, s.deflate, r),
1062
+ Inflate: Te(n.Inflate, s.inflate, r),
1063
+ }))(
1064
+ pako,
1065
+ { deflate: { raw: !0 }, inflate: { raw: !0 } },
1066
+ (n, s) => (n.onData = s),
1067
+ );
1068
+ ((self.Deflate = t), (self.Inflate = e));
1069
+ }));
1070
+ })();