@mtkruto/node 0.6.0 → 0.6.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 (917) hide show
  1. package/README.md +76 -1
  2. package/esm/0_deps.d.ts +11 -8
  3. package/esm/0_deps.d.ts.map +1 -1
  4. package/esm/0_deps.js +12 -9
  5. package/esm/1_utilities.d.ts +2 -1
  6. package/esm/1_utilities.d.ts.map +1 -1
  7. package/esm/1_utilities.js +2 -1
  8. package/esm/client/0_params.d.ts +3 -3
  9. package/esm/client/0_params.d.ts.map +1 -1
  10. package/esm/client/1_client_encrypted.js +4 -4
  11. package/esm/client/2_file_manager.js +6 -6
  12. package/esm/client/5_client.d.ts +1 -1
  13. package/esm/client/5_client.js +1 -1
  14. package/esm/deps/jsr.io/@roj/tgcrypto/0.4.1/dist/mod.d.ts.map +1 -0
  15. package/esm/deps/jsr.io/@roj/tgcrypto/0.4.1/dist/tgcrypto.d.ts.map +1 -0
  16. package/esm/deps/jsr.io/@roj/tgcrypto/1.0.0/dist/mod.d.ts +18 -0
  17. package/esm/deps/jsr.io/@roj/tgcrypto/1.0.0/dist/mod.d.ts.map +1 -0
  18. package/esm/deps/jsr.io/@roj/tgcrypto/1.0.0/dist/mod.js +63 -0
  19. package/esm/deps/jsr.io/@roj/tgcrypto/1.0.0/dist/tgcrypto.d.ts +3 -0
  20. package/esm/deps/jsr.io/@roj/tgcrypto/1.0.0/dist/tgcrypto.d.ts.map +1 -0
  21. package/esm/deps/jsr.io/@roj/tgcrypto/1.0.0/dist/tgcrypto.js +301 -0
  22. package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/almost_equals.d.ts.map +1 -1
  23. package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/array_includes.d.ts.map +1 -1
  24. package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/assert.d.ts.map +1 -1
  25. package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/assertion_error.d.ts.map +1 -1
  26. package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/equal.d.ts +4 -4
  27. package/esm/deps/jsr.io/@std/assert/1.0.8/equal.d.ts.map +1 -0
  28. package/esm/deps/jsr.io/@std/assert/1.0.8/equal.js +183 -0
  29. package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/equals.d.ts.map +1 -1
  30. package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/exists.d.ts.map +1 -1
  31. package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/fail.d.ts.map +1 -1
  32. package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/false.d.ts.map +1 -1
  33. package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/greater.d.ts.map +1 -1
  34. package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/greater_or_equal.d.ts.map +1 -1
  35. package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/instance_of.d.ts.map +1 -1
  36. package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/is_error.d.ts.map +1 -1
  37. package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/less.d.ts.map +1 -1
  38. package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/less_or_equal.d.ts.map +1 -1
  39. package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/match.d.ts.map +1 -1
  40. package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/mod.d.ts.map +1 -1
  41. package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/not_equals.d.ts.map +1 -1
  42. package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/not_instance_of.d.ts.map +1 -1
  43. package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/not_match.d.ts.map +1 -1
  44. package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/not_strict_equals.d.ts.map +1 -1
  45. package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/object_match.d.ts.map +1 -1
  46. package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/rejects.d.ts.map +1 -1
  47. package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/strict_equals.d.ts.map +1 -1
  48. package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/string_includes.d.ts.map +1 -1
  49. package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/throws.d.ts.map +1 -1
  50. package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/unimplemented.d.ts.map +1 -1
  51. package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/unreachable.d.ts.map +1 -1
  52. package/esm/deps/jsr.io/@std/bytes/{1.0.3 → 1.0.4}/concat.d.ts.map +1 -1
  53. package/esm/deps/jsr.io/@std/media-types/1.1.0/_db.d.ts +8 -0
  54. package/esm/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/_db.d.ts.map +1 -1
  55. package/esm/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/_util.d.ts.map +1 -1
  56. package/esm/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/all_extensions.d.ts.map +1 -1
  57. package/esm/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/content_type.d.ts.map +1 -1
  58. package/esm/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/extension.d.ts.map +1 -1
  59. package/esm/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/format_media_type.d.ts.map +1 -1
  60. package/esm/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/get_charset.d.ts.map +1 -1
  61. package/esm/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/parse_media_type.d.ts.map +1 -1
  62. package/esm/deps/jsr.io/@std/media-types/1.1.0/type_by_extension.d.ts.map +1 -0
  63. package/esm/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/vendor/db.d.ts +310 -3
  64. package/esm/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/vendor/db.d.ts.map +1 -1
  65. package/esm/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/vendor/db.js +310 -3
  66. package/esm/deps/jsr.io/@std/streams/1.0.8/to_array_buffer.d.ts +22 -0
  67. package/esm/deps/jsr.io/@std/streams/1.0.8/to_array_buffer.d.ts.map +1 -0
  68. package/esm/deps/jsr.io/@std/streams/1.0.8/to_array_buffer.js +35 -0
  69. package/esm/transport/0_obfuscation.d.ts.map +1 -1
  70. package/esm/transport/0_obfuscation.js +5 -4
  71. package/esm/transport/0_transport.d.ts +2 -2
  72. package/esm/transport/0_transport.d.ts.map +1 -1
  73. package/esm/transport/0_transport.js +10 -6
  74. package/esm/transport/1_transport_abridged.d.ts.map +1 -1
  75. package/esm/transport/1_transport_abridged.js +6 -8
  76. package/esm/transport/1_transport_intermediate.d.ts.map +1 -1
  77. package/esm/transport/1_transport_intermediate.js +4 -6
  78. package/esm/transport/3_transport_provider_tcp.d.ts +19 -8
  79. package/esm/transport/3_transport_provider_tcp.d.ts.map +1 -1
  80. package/esm/transport/3_transport_provider_tcp.js +19 -5
  81. package/esm/types/0_birthday.d.ts.map +1 -1
  82. package/esm/types/0_birthday.js +3 -2
  83. package/esm/types/0_chat_member_rights.js +3 -3
  84. package/esm/types/0_contact.d.ts.map +1 -1
  85. package/esm/types/0_contact.js +3 -2
  86. package/esm/types/0_location.d.ts.map +1 -1
  87. package/esm/types/0_location.js +7 -6
  88. package/esm/types/0_switch_inline_query_chosen_chats.d.ts +19 -0
  89. package/esm/types/0_switch_inline_query_chosen_chats.d.ts.map +1 -1
  90. package/esm/types/0_switch_inline_query_chosen_chats.js +19 -0
  91. package/esm/types/1_animation.d.ts.map +1 -1
  92. package/esm/types/1_animation.js +3 -2
  93. package/esm/types/1_audio.d.ts.map +1 -1
  94. package/esm/types/1_audio.js +3 -2
  95. package/esm/types/1_venue.d.ts.map +1 -1
  96. package/esm/types/1_venue.js +2 -5
  97. package/esm/types/2_forward_header.d.ts +19 -0
  98. package/esm/types/2_forward_header.d.ts.map +1 -1
  99. package/esm/types/2_forward_header.js +19 -0
  100. package/esm/types/2_story_interactions.d.ts.map +1 -1
  101. package/esm/types/2_story_interactions.js +2 -1
  102. package/esm/utilities/0_env.d.ts.map +1 -1
  103. package/esm/utilities/0_env.js +19 -0
  104. package/esm/utilities/{0_crypto.d.ts → 0_gunzip.d.ts} +2 -8
  105. package/esm/utilities/0_gunzip.d.ts.map +1 -0
  106. package/esm/utilities/0_gunzip.js +36 -0
  107. package/esm/utilities/1_crypto.d.ts +31 -0
  108. package/esm/utilities/1_crypto.d.ts.map +1 -0
  109. package/esm/utilities/{0_crypto.js → 1_crypto.js} +41 -21
  110. package/esm/utilities/1_crypto_test.d.ts.map +1 -0
  111. package/package.json +2 -1
  112. package/script/0_deps.d.ts +11 -8
  113. package/script/0_deps.d.ts.map +1 -1
  114. package/script/0_deps.js +20 -29
  115. package/script/1_utilities.d.ts +2 -1
  116. package/script/1_utilities.d.ts.map +1 -1
  117. package/script/1_utilities.js +2 -1
  118. package/script/client/0_params.d.ts +3 -3
  119. package/script/client/0_params.d.ts.map +1 -1
  120. package/script/client/1_client_encrypted.js +2 -2
  121. package/script/client/2_file_manager.js +5 -5
  122. package/script/client/5_client.d.ts +1 -1
  123. package/script/client/5_client.js +1 -1
  124. package/script/deps/jsr.io/@roj/tgcrypto/0.4.1/dist/mod.d.ts.map +1 -0
  125. package/script/deps/jsr.io/@roj/tgcrypto/0.4.1/dist/tgcrypto.d.ts.map +1 -0
  126. package/script/deps/jsr.io/@roj/tgcrypto/1.0.0/dist/mod.d.ts +18 -0
  127. package/script/deps/jsr.io/@roj/tgcrypto/1.0.0/dist/mod.d.ts.map +1 -0
  128. package/script/deps/jsr.io/@roj/tgcrypto/1.0.0/dist/mod.js +71 -0
  129. package/script/deps/jsr.io/@roj/tgcrypto/1.0.0/dist/tgcrypto.d.ts +3 -0
  130. package/script/deps/jsr.io/@roj/tgcrypto/1.0.0/dist/tgcrypto.d.ts.map +1 -0
  131. package/script/deps/jsr.io/@roj/tgcrypto/1.0.0/dist/tgcrypto.js +303 -0
  132. package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/almost_equals.d.ts.map +1 -1
  133. package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/array_includes.d.ts.map +1 -1
  134. package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/assert.d.ts.map +1 -1
  135. package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/assertion_error.d.ts.map +1 -1
  136. package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/equal.d.ts +4 -4
  137. package/script/deps/jsr.io/@std/assert/1.0.8/equal.d.ts.map +1 -0
  138. package/script/deps/jsr.io/@std/assert/1.0.8/equal.js +209 -0
  139. package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/equals.d.ts.map +1 -1
  140. package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/exists.d.ts.map +1 -1
  141. package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/fail.d.ts.map +1 -1
  142. package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/false.d.ts.map +1 -1
  143. package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/greater.d.ts.map +1 -1
  144. package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/greater_or_equal.d.ts.map +1 -1
  145. package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/instance_of.d.ts.map +1 -1
  146. package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/is_error.d.ts.map +1 -1
  147. package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/less.d.ts.map +1 -1
  148. package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/less_or_equal.d.ts.map +1 -1
  149. package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/match.d.ts.map +1 -1
  150. package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/mod.d.ts.map +1 -1
  151. package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/not_equals.d.ts.map +1 -1
  152. package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/not_instance_of.d.ts.map +1 -1
  153. package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/not_match.d.ts.map +1 -1
  154. package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/not_strict_equals.d.ts.map +1 -1
  155. package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/object_match.d.ts.map +1 -1
  156. package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/rejects.d.ts.map +1 -1
  157. package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/strict_equals.d.ts.map +1 -1
  158. package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/string_includes.d.ts.map +1 -1
  159. package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/throws.d.ts.map +1 -1
  160. package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/unimplemented.d.ts.map +1 -1
  161. package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/unreachable.d.ts.map +1 -1
  162. package/script/deps/jsr.io/@std/bytes/{1.0.3 → 1.0.4}/concat.d.ts.map +1 -1
  163. package/script/deps/jsr.io/@std/media-types/1.1.0/_db.d.ts +8 -0
  164. package/script/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/_db.d.ts.map +1 -1
  165. package/script/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/_util.d.ts.map +1 -1
  166. package/script/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/all_extensions.d.ts.map +1 -1
  167. package/script/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/content_type.d.ts.map +1 -1
  168. package/script/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/extension.d.ts.map +1 -1
  169. package/script/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/format_media_type.d.ts.map +1 -1
  170. package/script/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/get_charset.d.ts.map +1 -1
  171. package/script/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/parse_media_type.d.ts.map +1 -1
  172. package/script/deps/jsr.io/@std/media-types/1.1.0/type_by_extension.d.ts.map +1 -0
  173. package/script/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/vendor/db.d.ts +310 -3
  174. package/script/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/vendor/db.d.ts.map +1 -1
  175. package/script/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/vendor/db.js +310 -3
  176. package/script/deps/jsr.io/@std/streams/1.0.8/to_array_buffer.d.ts +22 -0
  177. package/script/deps/jsr.io/@std/streams/1.0.8/to_array_buffer.d.ts.map +1 -0
  178. package/script/deps/jsr.io/@std/streams/1.0.8/to_array_buffer.js +38 -0
  179. package/script/transport/0_obfuscation.d.ts.map +1 -1
  180. package/script/transport/0_obfuscation.js +5 -4
  181. package/script/transport/0_transport.d.ts +2 -2
  182. package/script/transport/0_transport.d.ts.map +1 -1
  183. package/script/transport/0_transport.js +10 -6
  184. package/script/transport/1_transport_abridged.d.ts.map +1 -1
  185. package/script/transport/1_transport_abridged.js +6 -8
  186. package/script/transport/1_transport_intermediate.d.ts.map +1 -1
  187. package/script/transport/1_transport_intermediate.js +4 -6
  188. package/script/transport/3_transport_provider_tcp.d.ts +19 -8
  189. package/script/transport/3_transport_provider_tcp.d.ts.map +1 -1
  190. package/script/transport/3_transport_provider_tcp.js +19 -5
  191. package/script/types/0_birthday.d.ts.map +1 -1
  192. package/script/types/0_birthday.js +3 -2
  193. package/script/types/0_chat_member_rights.js +2 -2
  194. package/script/types/0_contact.d.ts.map +1 -1
  195. package/script/types/0_contact.js +3 -2
  196. package/script/types/0_location.d.ts.map +1 -1
  197. package/script/types/0_location.js +7 -6
  198. package/script/types/0_switch_inline_query_chosen_chats.d.ts +19 -0
  199. package/script/types/0_switch_inline_query_chosen_chats.d.ts.map +1 -1
  200. package/script/types/0_switch_inline_query_chosen_chats.js +19 -0
  201. package/script/types/1_animation.d.ts.map +1 -1
  202. package/script/types/1_animation.js +3 -2
  203. package/script/types/1_audio.d.ts.map +1 -1
  204. package/script/types/1_audio.js +3 -2
  205. package/script/types/1_venue.d.ts.map +1 -1
  206. package/script/types/1_venue.js +2 -5
  207. package/script/types/2_forward_header.d.ts +19 -0
  208. package/script/types/2_forward_header.d.ts.map +1 -1
  209. package/script/types/2_forward_header.js +19 -0
  210. package/script/types/2_story_interactions.d.ts.map +1 -1
  211. package/script/types/2_story_interactions.js +2 -1
  212. package/script/utilities/0_env.d.ts.map +1 -1
  213. package/script/utilities/0_env.js +19 -0
  214. package/script/utilities/{0_crypto.d.ts → 0_gunzip.d.ts} +2 -8
  215. package/script/utilities/0_gunzip.d.ts.map +1 -0
  216. package/script/utilities/0_gunzip.js +39 -0
  217. package/script/utilities/1_crypto.d.ts +31 -0
  218. package/script/utilities/1_crypto.d.ts.map +1 -0
  219. package/script/utilities/1_crypto.js +95 -0
  220. package/script/utilities/1_crypto_test.d.ts.map +1 -0
  221. package/esm/deps/deno.land/std@0.224.0/io/types.d.ts +0 -95
  222. package/esm/deps/deno.land/std@0.224.0/io/types.d.ts.map +0 -1
  223. package/esm/deps/deno.land/std@0.224.0/io/types.js +0 -3
  224. package/esm/deps/deno.land/std@0.224.0/io/write_all.d.ts +0 -39
  225. package/esm/deps/deno.land/std@0.224.0/io/write_all.d.ts.map +0 -1
  226. package/esm/deps/deno.land/std@0.224.0/io/write_all.js +0 -49
  227. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/DomHandler.d.ts +0 -84
  228. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/DomHandler.d.ts.map +0 -1
  229. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/DomHandler.js +0 -203
  230. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/DomSerializer.d.ts +0 -51
  231. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/DomSerializer.d.ts.map +0 -1
  232. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/DomSerializer.js +0 -274
  233. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/ElementType.d.ts +0 -48
  234. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/ElementType.d.ts.map +0 -1
  235. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/ElementType.js +0 -51
  236. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/FeedHandler.d.ts +0 -67
  237. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/FeedHandler.d.ts.map +0 -1
  238. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/FeedHandler.js +0 -191
  239. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/Node.d.ts +0 -169
  240. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/Node.d.ts.map +0 -1
  241. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/Node.js +0 -385
  242. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/Parser.d.ts +0 -160
  243. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/Parser.d.ts.map +0 -1
  244. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/Parser.js +0 -431
  245. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/Tokenizer.d.ts +0 -182
  246. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/Tokenizer.d.ts.map +0 -1
  247. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/Tokenizer.js +0 -1046
  248. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/mod.d.ts +0 -43
  249. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/mod.d.ts.map +0 -1
  250. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/mod.js +0 -52
  251. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/decode.d.ts +0 -12
  252. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/decode.d.ts.map +0 -1
  253. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/decode.js +0 -122
  254. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/decode_codepoint.d.ts +0 -2
  255. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/decode_codepoint.d.ts.map +0 -1
  256. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/decode_codepoint.js +0 -24
  257. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/encode.d.ts +0 -47
  258. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/encode.d.ts.map +0 -1
  259. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/encode.js +0 -121
  260. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/maps/decode.d.ts +0 -32
  261. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/maps/decode.d.ts.map +0 -1
  262. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/maps/decode.js +0 -30
  263. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/maps/entities.d.ts +0 -2129
  264. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/maps/entities.d.ts.map +0 -1
  265. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/maps/entities.js +0 -2127
  266. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/maps/legacy.d.ts +0 -110
  267. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/maps/legacy.d.ts.map +0 -1
  268. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/maps/legacy.js +0 -108
  269. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/maps/xml.d.ts +0 -9
  270. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/maps/xml.d.ts.map +0 -1
  271. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/maps/xml.js +0 -1
  272. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/mod.d.ts +0 -91
  273. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/mod.d.ts.map +0 -1
  274. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/mod.js +0 -95
  275. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/helpers.d.ts +0 -51
  276. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/helpers.d.ts.map +0 -1
  277. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/helpers.js +0 -128
  278. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/legacy.d.ts +0 -47
  279. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/legacy.d.ts.map +0 -1
  280. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/legacy.js +0 -110
  281. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/manipulation.d.ts +0 -43
  282. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/manipulation.d.ts.map +0 -1
  283. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/manipulation.js +0 -120
  284. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/mod.d.ts +0 -7
  285. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/mod.d.ts.map +0 -1
  286. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/mod.js +0 -6
  287. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/querying.d.ts +0 -55
  288. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/querying.d.ts.map +0 -1
  289. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/querying.js +0 -110
  290. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/stringify.d.ts +0 -41
  291. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/stringify.d.ts.map +0 -1
  292. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/stringify.js +0 -75
  293. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/traversal.d.ts +0 -59
  294. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/traversal.d.ts.map +0 -1
  295. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/traversal.js +0 -101
  296. package/esm/deps/deno.land/x/tgcrypto@0.4.1/mod.d.ts +0 -55
  297. package/esm/deps/deno.land/x/tgcrypto@0.4.1/mod.d.ts.map +0 -1
  298. package/esm/deps/deno.land/x/tgcrypto@0.4.1/mod.js +0 -167
  299. package/esm/deps/deno.land/x/tgcrypto@0.4.1/tgcrypto.d.ts.map +0 -1
  300. package/esm/deps/deno.land/x/tgcrypto@0.4.1/tgcrypto.js +0 -308
  301. package/esm/deps/jsr.io/@std/assert/1.0.7/equal.d.ts.map +0 -1
  302. package/esm/deps/jsr.io/@std/assert/1.0.7/equal.js +0 -136
  303. package/esm/deps/jsr.io/@std/media-types/1.0.3/_db.d.ts +0 -8
  304. package/esm/deps/jsr.io/@std/media-types/1.0.3/type_by_extension.d.ts.map +0 -1
  305. package/esm/deps/jsr.io/@std/path/1.0.8/_common/common.d.ts +0 -2
  306. package/esm/deps/jsr.io/@std/path/1.0.8/_common/common.d.ts.map +0 -1
  307. package/esm/deps/jsr.io/@std/path/1.0.8/_common/common.js +0 -23
  308. package/esm/deps/jsr.io/@std/path/1.0.8/_common/dirname.d.ts +0 -2
  309. package/esm/deps/jsr.io/@std/path/1.0.8/_common/dirname.d.ts.map +0 -1
  310. package/esm/deps/jsr.io/@std/path/1.0.8/_common/dirname.js +0 -8
  311. package/esm/deps/jsr.io/@std/path/1.0.8/_common/format.d.ts +0 -4
  312. package/esm/deps/jsr.io/@std/path/1.0.8/_common/format.d.ts.map +0 -1
  313. package/esm/deps/jsr.io/@std/path/1.0.8/_common/format.js +0 -19
  314. package/esm/deps/jsr.io/@std/path/1.0.8/_common/from_file_url.d.ts +0 -2
  315. package/esm/deps/jsr.io/@std/path/1.0.8/_common/from_file_url.d.ts.map +0 -1
  316. package/esm/deps/jsr.io/@std/path/1.0.8/_common/from_file_url.js +0 -9
  317. package/esm/deps/jsr.io/@std/path/1.0.8/_common/glob_to_reg_exp.d.ts +0 -35
  318. package/esm/deps/jsr.io/@std/path/1.0.8/_common/glob_to_reg_exp.d.ts.map +0 -1
  319. package/esm/deps/jsr.io/@std/path/1.0.8/_common/glob_to_reg_exp.js +0 -234
  320. package/esm/deps/jsr.io/@std/path/1.0.8/_common/relative.d.ts +0 -2
  321. package/esm/deps/jsr.io/@std/path/1.0.8/_common/relative.d.ts.map +0 -1
  322. package/esm/deps/jsr.io/@std/path/1.0.8/_common/relative.js +0 -9
  323. package/esm/deps/jsr.io/@std/path/1.0.8/common.d.ts +0 -28
  324. package/esm/deps/jsr.io/@std/path/1.0.8/common.d.ts.map +0 -1
  325. package/esm/deps/jsr.io/@std/path/1.0.8/common.js +0 -33
  326. package/esm/deps/jsr.io/@std/path/1.0.8/constants.d.ts +0 -15
  327. package/esm/deps/jsr.io/@std/path/1.0.8/constants.d.ts.map +0 -1
  328. package/esm/deps/jsr.io/@std/path/1.0.8/constants.js +0 -17
  329. package/esm/deps/jsr.io/@std/path/1.0.8/dirname.d.ts +0 -23
  330. package/esm/deps/jsr.io/@std/path/1.0.8/dirname.d.ts.map +0 -1
  331. package/esm/deps/jsr.io/@std/path/1.0.8/dirname.js +0 -29
  332. package/esm/deps/jsr.io/@std/path/1.0.8/format.d.ts +0 -22
  333. package/esm/deps/jsr.io/@std/path/1.0.8/format.d.ts.map +0 -1
  334. package/esm/deps/jsr.io/@std/path/1.0.8/format.js +0 -27
  335. package/esm/deps/jsr.io/@std/path/1.0.8/from_file_url.d.ts +0 -22
  336. package/esm/deps/jsr.io/@std/path/1.0.8/from_file_url.d.ts.map +0 -1
  337. package/esm/deps/jsr.io/@std/path/1.0.8/from_file_url.js +0 -28
  338. package/esm/deps/jsr.io/@std/path/1.0.8/glob_to_regexp.d.ts +0 -77
  339. package/esm/deps/jsr.io/@std/path/1.0.8/glob_to_regexp.d.ts.map +0 -1
  340. package/esm/deps/jsr.io/@std/path/1.0.8/glob_to_regexp.js +0 -83
  341. package/esm/deps/jsr.io/@std/path/1.0.8/is_glob.d.ts +0 -17
  342. package/esm/deps/jsr.io/@std/path/1.0.8/is_glob.d.ts.map +0 -1
  343. package/esm/deps/jsr.io/@std/path/1.0.8/is_glob.js +0 -42
  344. package/esm/deps/jsr.io/@std/path/1.0.8/join_globs.d.ts +0 -28
  345. package/esm/deps/jsr.io/@std/path/1.0.8/join_globs.d.ts.map +0 -1
  346. package/esm/deps/jsr.io/@std/path/1.0.8/join_globs.js +0 -34
  347. package/esm/deps/jsr.io/@std/path/1.0.8/mod.d.ts +0 -54
  348. package/esm/deps/jsr.io/@std/path/1.0.8/mod.d.ts.map +0 -1
  349. package/esm/deps/jsr.io/@std/path/1.0.8/mod.js +0 -57
  350. package/esm/deps/jsr.io/@std/path/1.0.8/normalize.d.ts +0 -27
  351. package/esm/deps/jsr.io/@std/path/1.0.8/normalize.d.ts.map +0 -1
  352. package/esm/deps/jsr.io/@std/path/1.0.8/normalize.js +0 -33
  353. package/esm/deps/jsr.io/@std/path/1.0.8/normalize_glob.d.ts +0 -29
  354. package/esm/deps/jsr.io/@std/path/1.0.8/normalize_glob.d.ts.map +0 -1
  355. package/esm/deps/jsr.io/@std/path/1.0.8/normalize_glob.js +0 -35
  356. package/esm/deps/jsr.io/@std/path/1.0.8/parse.d.ts +0 -35
  357. package/esm/deps/jsr.io/@std/path/1.0.8/parse.d.ts.map +0 -1
  358. package/esm/deps/jsr.io/@std/path/1.0.8/parse.js +0 -39
  359. package/esm/deps/jsr.io/@std/path/1.0.8/posix/constants.d.ts +0 -13
  360. package/esm/deps/jsr.io/@std/path/1.0.8/posix/constants.d.ts.map +0 -1
  361. package/esm/deps/jsr.io/@std/path/1.0.8/posix/constants.js +0 -14
  362. package/esm/deps/jsr.io/@std/path/1.0.8/posix/dirname.d.ts +0 -32
  363. package/esm/deps/jsr.io/@std/path/1.0.8/posix/dirname.d.ts.map +0 -1
  364. package/esm/deps/jsr.io/@std/path/1.0.8/posix/dirname.js +0 -62
  365. package/esm/deps/jsr.io/@std/path/1.0.8/posix/format.d.ts +0 -24
  366. package/esm/deps/jsr.io/@std/path/1.0.8/posix/format.d.ts.map +0 -1
  367. package/esm/deps/jsr.io/@std/path/1.0.8/posix/format.js +0 -28
  368. package/esm/deps/jsr.io/@std/path/1.0.8/posix/from_file_url.d.ts +0 -16
  369. package/esm/deps/jsr.io/@std/path/1.0.8/posix/from_file_url.d.ts.map +0 -1
  370. package/esm/deps/jsr.io/@std/path/1.0.8/posix/from_file_url.js +0 -21
  371. package/esm/deps/jsr.io/@std/path/1.0.8/posix/glob_to_regexp.d.ts +0 -72
  372. package/esm/deps/jsr.io/@std/path/1.0.8/posix/glob_to_regexp.d.ts.map +0 -1
  373. package/esm/deps/jsr.io/@std/path/1.0.8/posix/glob_to_regexp.js +0 -82
  374. package/esm/deps/jsr.io/@std/path/1.0.8/posix/join_globs.d.ts +0 -20
  375. package/esm/deps/jsr.io/@std/path/1.0.8/posix/join_globs.d.ts.map +0 -1
  376. package/esm/deps/jsr.io/@std/path/1.0.8/posix/join_globs.js +0 -40
  377. package/esm/deps/jsr.io/@std/path/1.0.8/posix/normalize_glob.d.ts +0 -20
  378. package/esm/deps/jsr.io/@std/path/1.0.8/posix/normalize_glob.d.ts.map +0 -1
  379. package/esm/deps/jsr.io/@std/path/1.0.8/posix/normalize_glob.js +0 -32
  380. package/esm/deps/jsr.io/@std/path/1.0.8/posix/parse.d.ts +0 -25
  381. package/esm/deps/jsr.io/@std/path/1.0.8/posix/parse.d.ts.map +0 -1
  382. package/esm/deps/jsr.io/@std/path/1.0.8/posix/parse.js +0 -115
  383. package/esm/deps/jsr.io/@std/path/1.0.8/posix/relative.d.ts +0 -20
  384. package/esm/deps/jsr.io/@std/path/1.0.8/posix/relative.d.ts.map +0 -1
  385. package/esm/deps/jsr.io/@std/path/1.0.8/posix/relative.js +0 -106
  386. package/esm/deps/jsr.io/@std/path/1.0.8/posix/resolve.d.ts +0 -17
  387. package/esm/deps/jsr.io/@std/path/1.0.8/posix/resolve.d.ts.map +0 -1
  388. package/esm/deps/jsr.io/@std/path/1.0.8/posix/resolve.js +0 -59
  389. package/esm/deps/jsr.io/@std/path/1.0.8/posix/to_namespaced_path.d.ts +0 -16
  390. package/esm/deps/jsr.io/@std/path/1.0.8/posix/to_namespaced_path.d.ts.map +0 -1
  391. package/esm/deps/jsr.io/@std/path/1.0.8/posix/to_namespaced_path.js +0 -20
  392. package/esm/deps/jsr.io/@std/path/1.0.8/relative.d.ts +0 -24
  393. package/esm/deps/jsr.io/@std/path/1.0.8/relative.d.ts.map +0 -1
  394. package/esm/deps/jsr.io/@std/path/1.0.8/relative.js +0 -30
  395. package/esm/deps/jsr.io/@std/path/1.0.8/resolve.d.ts +0 -22
  396. package/esm/deps/jsr.io/@std/path/1.0.8/resolve.d.ts.map +0 -1
  397. package/esm/deps/jsr.io/@std/path/1.0.8/resolve.js +0 -30
  398. package/esm/deps/jsr.io/@std/path/1.0.8/to_namespaced_path.d.ts +0 -21
  399. package/esm/deps/jsr.io/@std/path/1.0.8/to_namespaced_path.d.ts.map +0 -1
  400. package/esm/deps/jsr.io/@std/path/1.0.8/to_namespaced_path.js +0 -29
  401. package/esm/deps/jsr.io/@std/path/1.0.8/types.d.ts +0 -38
  402. package/esm/deps/jsr.io/@std/path/1.0.8/types.d.ts.map +0 -1
  403. package/esm/deps/jsr.io/@std/path/1.0.8/types.js +0 -3
  404. package/esm/deps/jsr.io/@std/path/1.0.8/windows/constants.d.ts +0 -13
  405. package/esm/deps/jsr.io/@std/path/1.0.8/windows/constants.d.ts.map +0 -1
  406. package/esm/deps/jsr.io/@std/path/1.0.8/windows/constants.js +0 -14
  407. package/esm/deps/jsr.io/@std/path/1.0.8/windows/dirname.d.ts +0 -20
  408. package/esm/deps/jsr.io/@std/path/1.0.8/windows/dirname.d.ts.map +0 -1
  409. package/esm/deps/jsr.io/@std/path/1.0.8/windows/dirname.js +0 -112
  410. package/esm/deps/jsr.io/@std/path/1.0.8/windows/format.d.ts +0 -24
  411. package/esm/deps/jsr.io/@std/path/1.0.8/windows/format.d.ts.map +0 -1
  412. package/esm/deps/jsr.io/@std/path/1.0.8/windows/format.js +0 -28
  413. package/esm/deps/jsr.io/@std/path/1.0.8/windows/from_file_url.d.ts +0 -18
  414. package/esm/deps/jsr.io/@std/path/1.0.8/windows/from_file_url.d.ts.map +0 -1
  415. package/esm/deps/jsr.io/@std/path/1.0.8/windows/from_file_url.js +0 -30
  416. package/esm/deps/jsr.io/@std/path/1.0.8/windows/glob_to_regexp.d.ts +0 -71
  417. package/esm/deps/jsr.io/@std/path/1.0.8/windows/glob_to_regexp.d.ts.map +0 -1
  418. package/esm/deps/jsr.io/@std/path/1.0.8/windows/glob_to_regexp.js +0 -82
  419. package/esm/deps/jsr.io/@std/path/1.0.8/windows/join_globs.d.ts +0 -21
  420. package/esm/deps/jsr.io/@std/path/1.0.8/windows/join_globs.d.ts.map +0 -1
  421. package/esm/deps/jsr.io/@std/path/1.0.8/windows/join_globs.js +0 -41
  422. package/esm/deps/jsr.io/@std/path/1.0.8/windows/normalize_glob.d.ts +0 -20
  423. package/esm/deps/jsr.io/@std/path/1.0.8/windows/normalize_glob.d.ts.map +0 -1
  424. package/esm/deps/jsr.io/@std/path/1.0.8/windows/normalize_glob.js +0 -32
  425. package/esm/deps/jsr.io/@std/path/1.0.8/windows/parse.d.ts +0 -25
  426. package/esm/deps/jsr.io/@std/path/1.0.8/windows/parse.d.ts.map +0 -1
  427. package/esm/deps/jsr.io/@std/path/1.0.8/windows/parse.js +0 -176
  428. package/esm/deps/jsr.io/@std/path/1.0.8/windows/relative.d.ts +0 -23
  429. package/esm/deps/jsr.io/@std/path/1.0.8/windows/relative.d.ts.map +0 -1
  430. package/esm/deps/jsr.io/@std/path/1.0.8/windows/relative.js +0 -131
  431. package/esm/deps/jsr.io/@std/path/1.0.8/windows/resolve.d.ts +0 -17
  432. package/esm/deps/jsr.io/@std/path/1.0.8/windows/resolve.d.ts.map +0 -1
  433. package/esm/deps/jsr.io/@std/path/1.0.8/windows/resolve.js +0 -154
  434. package/esm/deps/jsr.io/@std/path/1.0.8/windows/to_namespaced_path.d.ts +0 -17
  435. package/esm/deps/jsr.io/@std/path/1.0.8/windows/to_namespaced_path.d.ts.map +0 -1
  436. package/esm/deps/jsr.io/@std/path/1.0.8/windows/to_namespaced_path.js +0 -49
  437. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/mod.d.ts +0 -2
  438. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/mod.d.ts.map +0 -1
  439. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/mod.js +0 -1
  440. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/utils/uint8.d.ts +0 -2
  441. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/utils/uint8.d.ts.map +0 -1
  442. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/utils/uint8.js +0 -10
  443. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/deflate.d.ts +0 -28
  444. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/deflate.d.ts.map +0 -1
  445. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/deflate.js +0 -135
  446. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/inflate.d.ts +0 -24
  447. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/inflate.d.ts.map +0 -1
  448. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/inflate.js +0 -172
  449. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/mod.d.ts +0 -3
  450. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/mod.d.ts.map +0 -1
  451. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/mod.js +0 -2
  452. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/adler32.d.ts +0 -2
  453. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/adler32.d.ts.map +0 -1
  454. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/adler32.js +0 -19
  455. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/crc32.d.ts +0 -3
  456. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/crc32.d.ts.map +0 -1
  457. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/crc32.js +0 -25
  458. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/deflate.d.ts +0 -79
  459. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/deflate.d.ts.map +0 -1
  460. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/deflate.js +0 -1941
  461. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/gzheader.d.ts +0 -13
  462. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/gzheader.d.ts.map +0 -1
  463. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/gzheader.js +0 -85
  464. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/inffast.d.ts +0 -2
  465. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/inffast.d.ts.map +0 -1
  466. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/inffast.js +0 -321
  467. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/inflate.d.ts +0 -48
  468. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/inflate.d.ts.map +0 -1
  469. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/inflate.js +0 -1660
  470. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/inftrees.d.ts +0 -2
  471. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/inftrees.d.ts.map +0 -1
  472. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/inftrees.js +0 -355
  473. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/messages.d.ts +0 -13
  474. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/messages.d.ts.map +0 -1
  475. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/messages.js +0 -11
  476. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/status.d.ts +0 -31
  477. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/status.d.ts.map +0 -1
  478. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/status.js +0 -42
  479. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/trees.d.ts +0 -6
  480. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/trees.d.ts.map +0 -1
  481. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/trees.js +0 -1107
  482. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/zstream.d.ts +0 -15
  483. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/zstream.d.ts.map +0 -1
  484. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/zstream.js +0 -86
  485. package/esm/deps/raw.githubusercontent.com/MTKruto/socks5/main/client.d.ts +0 -45
  486. package/esm/deps/raw.githubusercontent.com/MTKruto/socks5/main/client.d.ts.map +0 -1
  487. package/esm/deps/raw.githubusercontent.com/MTKruto/socks5/main/client.js +0 -253
  488. package/esm/deps/raw.githubusercontent.com/MTKruto/socks5/main/deps.d.ts +0 -3
  489. package/esm/deps/raw.githubusercontent.com/MTKruto/socks5/main/deps.d.ts.map +0 -1
  490. package/esm/deps/raw.githubusercontent.com/MTKruto/socks5/main/deps.js +0 -1
  491. package/esm/deps/raw.githubusercontent.com/MTKruto/socks5/main/utils.d.ts +0 -3
  492. package/esm/deps/raw.githubusercontent.com/MTKruto/socks5/main/utils.d.ts.map +0 -1
  493. package/esm/deps/raw.githubusercontent.com/MTKruto/socks5/main/utils.js +0 -13
  494. package/esm/utilities/0_crypto.d.ts.map +0 -1
  495. package/script/deps/deno.land/std@0.224.0/io/types.d.ts +0 -95
  496. package/script/deps/deno.land/std@0.224.0/io/types.d.ts.map +0 -1
  497. package/script/deps/deno.land/std@0.224.0/io/types.js +0 -4
  498. package/script/deps/deno.land/std@0.224.0/io/write_all.d.ts +0 -39
  499. package/script/deps/deno.land/std@0.224.0/io/write_all.d.ts.map +0 -1
  500. package/script/deps/deno.land/std@0.224.0/io/write_all.js +0 -53
  501. package/script/deps/deno.land/x/html_parser@v0.1.3/src/DomHandler.d.ts +0 -84
  502. package/script/deps/deno.land/x/html_parser@v0.1.3/src/DomHandler.d.ts.map +0 -1
  503. package/script/deps/deno.land/x/html_parser@v0.1.3/src/DomHandler.js +0 -207
  504. package/script/deps/deno.land/x/html_parser@v0.1.3/src/DomSerializer.d.ts +0 -51
  505. package/script/deps/deno.land/x/html_parser@v0.1.3/src/DomSerializer.d.ts.map +0 -1
  506. package/script/deps/deno.land/x/html_parser@v0.1.3/src/DomSerializer.js +0 -301
  507. package/script/deps/deno.land/x/html_parser@v0.1.3/src/ElementType.d.ts +0 -48
  508. package/script/deps/deno.land/x/html_parser@v0.1.3/src/ElementType.d.ts.map +0 -1
  509. package/script/deps/deno.land/x/html_parser@v0.1.3/src/ElementType.js +0 -55
  510. package/script/deps/deno.land/x/html_parser@v0.1.3/src/FeedHandler.d.ts +0 -67
  511. package/script/deps/deno.land/x/html_parser@v0.1.3/src/FeedHandler.d.ts.map +0 -1
  512. package/script/deps/deno.land/x/html_parser@v0.1.3/src/FeedHandler.js +0 -222
  513. package/script/deps/deno.land/x/html_parser@v0.1.3/src/Node.d.ts +0 -169
  514. package/script/deps/deno.land/x/html_parser@v0.1.3/src/Node.d.ts.map +0 -1
  515. package/script/deps/deno.land/x/html_parser@v0.1.3/src/Node.js +0 -404
  516. package/script/deps/deno.land/x/html_parser@v0.1.3/src/Parser.d.ts +0 -160
  517. package/script/deps/deno.land/x/html_parser@v0.1.3/src/Parser.d.ts.map +0 -1
  518. package/script/deps/deno.land/x/html_parser@v0.1.3/src/Parser.js +0 -438
  519. package/script/deps/deno.land/x/html_parser@v0.1.3/src/Tokenizer.d.ts +0 -182
  520. package/script/deps/deno.land/x/html_parser@v0.1.3/src/Tokenizer.d.ts.map +0 -1
  521. package/script/deps/deno.land/x/html_parser@v0.1.3/src/Tokenizer.js +0 -1052
  522. package/script/deps/deno.land/x/html_parser@v0.1.3/src/mod.d.ts +0 -43
  523. package/script/deps/deno.land/x/html_parser@v0.1.3/src/mod.d.ts.map +0 -1
  524. package/script/deps/deno.land/x/html_parser@v0.1.3/src/mod.js +0 -88
  525. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/decode.d.ts +0 -12
  526. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/decode.d.ts.map +0 -1
  527. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/decode.js +0 -128
  528. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/decode_codepoint.d.ts +0 -2
  529. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/decode_codepoint.d.ts.map +0 -1
  530. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/decode_codepoint.js +0 -30
  531. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/encode.d.ts +0 -47
  532. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/encode.d.ts.map +0 -1
  533. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/encode.js +0 -129
  534. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/maps/decode.d.ts +0 -32
  535. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/maps/decode.d.ts.map +0 -1
  536. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/maps/decode.js +0 -32
  537. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/maps/entities.d.ts +0 -2129
  538. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/maps/entities.d.ts.map +0 -1
  539. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/maps/entities.js +0 -2129
  540. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/maps/legacy.d.ts +0 -110
  541. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/maps/legacy.d.ts.map +0 -1
  542. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/maps/legacy.js +0 -110
  543. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/maps/xml.d.ts +0 -9
  544. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/maps/xml.d.ts.map +0 -1
  545. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/maps/xml.js +0 -3
  546. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/mod.d.ts +0 -91
  547. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/mod.d.ts.map +0 -1
  548. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/mod.js +0 -114
  549. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/helpers.d.ts +0 -51
  550. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/helpers.d.ts.map +0 -1
  551. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/helpers.js +0 -134
  552. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/legacy.d.ts +0 -47
  553. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/legacy.d.ts.map +0 -1
  554. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/legacy.js +0 -117
  555. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/manipulation.d.ts +0 -43
  556. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/manipulation.d.ts.map +0 -1
  557. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/manipulation.js +0 -128
  558. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/mod.d.ts +0 -7
  559. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/mod.d.ts.map +0 -1
  560. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/mod.js +0 -22
  561. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/querying.d.ts +0 -55
  562. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/querying.d.ts.map +0 -1
  563. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/querying.js +0 -118
  564. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/stringify.d.ts +0 -41
  565. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/stringify.d.ts.map +0 -1
  566. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/stringify.js +0 -85
  567. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/traversal.d.ts +0 -59
  568. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/traversal.d.ts.map +0 -1
  569. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/traversal.js +0 -111
  570. package/script/deps/deno.land/x/tgcrypto@0.4.1/mod.d.ts +0 -55
  571. package/script/deps/deno.land/x/tgcrypto@0.4.1/mod.d.ts.map +0 -1
  572. package/script/deps/deno.land/x/tgcrypto@0.4.1/mod.js +0 -182
  573. package/script/deps/deno.land/x/tgcrypto@0.4.1/tgcrypto.d.ts.map +0 -1
  574. package/script/deps/deno.land/x/tgcrypto@0.4.1/tgcrypto.js +0 -310
  575. package/script/deps/jsr.io/@std/assert/1.0.7/equal.d.ts.map +0 -1
  576. package/script/deps/jsr.io/@std/assert/1.0.7/equal.js +0 -139
  577. package/script/deps/jsr.io/@std/media-types/1.0.3/_db.d.ts +0 -8
  578. package/script/deps/jsr.io/@std/media-types/1.0.3/type_by_extension.d.ts.map +0 -1
  579. package/script/deps/jsr.io/@std/path/1.0.8/_common/common.d.ts +0 -2
  580. package/script/deps/jsr.io/@std/path/1.0.8/_common/common.d.ts.map +0 -1
  581. package/script/deps/jsr.io/@std/path/1.0.8/_common/common.js +0 -26
  582. package/script/deps/jsr.io/@std/path/1.0.8/_common/dirname.d.ts +0 -2
  583. package/script/deps/jsr.io/@std/path/1.0.8/_common/dirname.d.ts.map +0 -1
  584. package/script/deps/jsr.io/@std/path/1.0.8/_common/dirname.js +0 -11
  585. package/script/deps/jsr.io/@std/path/1.0.8/_common/format.d.ts +0 -4
  586. package/script/deps/jsr.io/@std/path/1.0.8/_common/format.d.ts.map +0 -1
  587. package/script/deps/jsr.io/@std/path/1.0.8/_common/format.js +0 -23
  588. package/script/deps/jsr.io/@std/path/1.0.8/_common/from_file_url.d.ts +0 -2
  589. package/script/deps/jsr.io/@std/path/1.0.8/_common/from_file_url.d.ts.map +0 -1
  590. package/script/deps/jsr.io/@std/path/1.0.8/_common/from_file_url.js +0 -12
  591. package/script/deps/jsr.io/@std/path/1.0.8/_common/glob_to_reg_exp.d.ts +0 -35
  592. package/script/deps/jsr.io/@std/path/1.0.8/_common/glob_to_reg_exp.d.ts.map +0 -1
  593. package/script/deps/jsr.io/@std/path/1.0.8/_common/glob_to_reg_exp.js +0 -237
  594. package/script/deps/jsr.io/@std/path/1.0.8/_common/relative.d.ts +0 -2
  595. package/script/deps/jsr.io/@std/path/1.0.8/_common/relative.d.ts.map +0 -1
  596. package/script/deps/jsr.io/@std/path/1.0.8/_common/relative.js +0 -12
  597. package/script/deps/jsr.io/@std/path/1.0.8/common.d.ts +0 -28
  598. package/script/deps/jsr.io/@std/path/1.0.8/common.d.ts.map +0 -1
  599. package/script/deps/jsr.io/@std/path/1.0.8/common.js +0 -36
  600. package/script/deps/jsr.io/@std/path/1.0.8/constants.d.ts +0 -15
  601. package/script/deps/jsr.io/@std/path/1.0.8/constants.d.ts.map +0 -1
  602. package/script/deps/jsr.io/@std/path/1.0.8/constants.js +0 -20
  603. package/script/deps/jsr.io/@std/path/1.0.8/dirname.d.ts +0 -23
  604. package/script/deps/jsr.io/@std/path/1.0.8/dirname.d.ts.map +0 -1
  605. package/script/deps/jsr.io/@std/path/1.0.8/dirname.js +0 -32
  606. package/script/deps/jsr.io/@std/path/1.0.8/format.d.ts +0 -22
  607. package/script/deps/jsr.io/@std/path/1.0.8/format.d.ts.map +0 -1
  608. package/script/deps/jsr.io/@std/path/1.0.8/format.js +0 -30
  609. package/script/deps/jsr.io/@std/path/1.0.8/from_file_url.d.ts +0 -22
  610. package/script/deps/jsr.io/@std/path/1.0.8/from_file_url.d.ts.map +0 -1
  611. package/script/deps/jsr.io/@std/path/1.0.8/from_file_url.js +0 -31
  612. package/script/deps/jsr.io/@std/path/1.0.8/glob_to_regexp.d.ts +0 -77
  613. package/script/deps/jsr.io/@std/path/1.0.8/glob_to_regexp.d.ts.map +0 -1
  614. package/script/deps/jsr.io/@std/path/1.0.8/glob_to_regexp.js +0 -86
  615. package/script/deps/jsr.io/@std/path/1.0.8/is_glob.d.ts +0 -17
  616. package/script/deps/jsr.io/@std/path/1.0.8/is_glob.d.ts.map +0 -1
  617. package/script/deps/jsr.io/@std/path/1.0.8/is_glob.js +0 -45
  618. package/script/deps/jsr.io/@std/path/1.0.8/join_globs.d.ts +0 -28
  619. package/script/deps/jsr.io/@std/path/1.0.8/join_globs.d.ts.map +0 -1
  620. package/script/deps/jsr.io/@std/path/1.0.8/join_globs.js +0 -37
  621. package/script/deps/jsr.io/@std/path/1.0.8/mod.d.ts +0 -54
  622. package/script/deps/jsr.io/@std/path/1.0.8/mod.d.ts.map +0 -1
  623. package/script/deps/jsr.io/@std/path/1.0.8/mod.js +0 -73
  624. package/script/deps/jsr.io/@std/path/1.0.8/normalize.d.ts +0 -27
  625. package/script/deps/jsr.io/@std/path/1.0.8/normalize.d.ts.map +0 -1
  626. package/script/deps/jsr.io/@std/path/1.0.8/normalize.js +0 -36
  627. package/script/deps/jsr.io/@std/path/1.0.8/normalize_glob.d.ts +0 -29
  628. package/script/deps/jsr.io/@std/path/1.0.8/normalize_glob.d.ts.map +0 -1
  629. package/script/deps/jsr.io/@std/path/1.0.8/normalize_glob.js +0 -38
  630. package/script/deps/jsr.io/@std/path/1.0.8/parse.d.ts +0 -35
  631. package/script/deps/jsr.io/@std/path/1.0.8/parse.d.ts.map +0 -1
  632. package/script/deps/jsr.io/@std/path/1.0.8/parse.js +0 -42
  633. package/script/deps/jsr.io/@std/path/1.0.8/posix/constants.d.ts +0 -13
  634. package/script/deps/jsr.io/@std/path/1.0.8/posix/constants.d.ts.map +0 -1
  635. package/script/deps/jsr.io/@std/path/1.0.8/posix/constants.js +0 -17
  636. package/script/deps/jsr.io/@std/path/1.0.8/posix/dirname.d.ts +0 -32
  637. package/script/deps/jsr.io/@std/path/1.0.8/posix/dirname.d.ts.map +0 -1
  638. package/script/deps/jsr.io/@std/path/1.0.8/posix/dirname.js +0 -65
  639. package/script/deps/jsr.io/@std/path/1.0.8/posix/format.d.ts +0 -24
  640. package/script/deps/jsr.io/@std/path/1.0.8/posix/format.d.ts.map +0 -1
  641. package/script/deps/jsr.io/@std/path/1.0.8/posix/format.js +0 -31
  642. package/script/deps/jsr.io/@std/path/1.0.8/posix/from_file_url.d.ts +0 -16
  643. package/script/deps/jsr.io/@std/path/1.0.8/posix/from_file_url.d.ts.map +0 -1
  644. package/script/deps/jsr.io/@std/path/1.0.8/posix/from_file_url.js +0 -24
  645. package/script/deps/jsr.io/@std/path/1.0.8/posix/glob_to_regexp.d.ts +0 -72
  646. package/script/deps/jsr.io/@std/path/1.0.8/posix/glob_to_regexp.d.ts.map +0 -1
  647. package/script/deps/jsr.io/@std/path/1.0.8/posix/glob_to_regexp.js +0 -85
  648. package/script/deps/jsr.io/@std/path/1.0.8/posix/join_globs.d.ts +0 -20
  649. package/script/deps/jsr.io/@std/path/1.0.8/posix/join_globs.d.ts.map +0 -1
  650. package/script/deps/jsr.io/@std/path/1.0.8/posix/join_globs.js +0 -43
  651. package/script/deps/jsr.io/@std/path/1.0.8/posix/normalize_glob.d.ts +0 -20
  652. package/script/deps/jsr.io/@std/path/1.0.8/posix/normalize_glob.d.ts.map +0 -1
  653. package/script/deps/jsr.io/@std/path/1.0.8/posix/normalize_glob.js +0 -35
  654. package/script/deps/jsr.io/@std/path/1.0.8/posix/parse.d.ts +0 -25
  655. package/script/deps/jsr.io/@std/path/1.0.8/posix/parse.d.ts.map +0 -1
  656. package/script/deps/jsr.io/@std/path/1.0.8/posix/parse.js +0 -118
  657. package/script/deps/jsr.io/@std/path/1.0.8/posix/relative.d.ts +0 -20
  658. package/script/deps/jsr.io/@std/path/1.0.8/posix/relative.d.ts.map +0 -1
  659. package/script/deps/jsr.io/@std/path/1.0.8/posix/relative.js +0 -109
  660. package/script/deps/jsr.io/@std/path/1.0.8/posix/resolve.d.ts +0 -17
  661. package/script/deps/jsr.io/@std/path/1.0.8/posix/resolve.d.ts.map +0 -1
  662. package/script/deps/jsr.io/@std/path/1.0.8/posix/resolve.js +0 -85
  663. package/script/deps/jsr.io/@std/path/1.0.8/posix/to_namespaced_path.d.ts +0 -16
  664. package/script/deps/jsr.io/@std/path/1.0.8/posix/to_namespaced_path.d.ts.map +0 -1
  665. package/script/deps/jsr.io/@std/path/1.0.8/posix/to_namespaced_path.js +0 -23
  666. package/script/deps/jsr.io/@std/path/1.0.8/relative.d.ts +0 -24
  667. package/script/deps/jsr.io/@std/path/1.0.8/relative.d.ts.map +0 -1
  668. package/script/deps/jsr.io/@std/path/1.0.8/relative.js +0 -33
  669. package/script/deps/jsr.io/@std/path/1.0.8/resolve.d.ts +0 -22
  670. package/script/deps/jsr.io/@std/path/1.0.8/resolve.d.ts.map +0 -1
  671. package/script/deps/jsr.io/@std/path/1.0.8/resolve.js +0 -33
  672. package/script/deps/jsr.io/@std/path/1.0.8/to_namespaced_path.d.ts +0 -21
  673. package/script/deps/jsr.io/@std/path/1.0.8/to_namespaced_path.d.ts.map +0 -1
  674. package/script/deps/jsr.io/@std/path/1.0.8/to_namespaced_path.js +0 -32
  675. package/script/deps/jsr.io/@std/path/1.0.8/types.d.ts +0 -38
  676. package/script/deps/jsr.io/@std/path/1.0.8/types.d.ts.map +0 -1
  677. package/script/deps/jsr.io/@std/path/1.0.8/types.js +0 -4
  678. package/script/deps/jsr.io/@std/path/1.0.8/windows/constants.d.ts +0 -13
  679. package/script/deps/jsr.io/@std/path/1.0.8/windows/constants.d.ts.map +0 -1
  680. package/script/deps/jsr.io/@std/path/1.0.8/windows/constants.js +0 -17
  681. package/script/deps/jsr.io/@std/path/1.0.8/windows/dirname.d.ts +0 -20
  682. package/script/deps/jsr.io/@std/path/1.0.8/windows/dirname.d.ts.map +0 -1
  683. package/script/deps/jsr.io/@std/path/1.0.8/windows/dirname.js +0 -115
  684. package/script/deps/jsr.io/@std/path/1.0.8/windows/format.d.ts +0 -24
  685. package/script/deps/jsr.io/@std/path/1.0.8/windows/format.d.ts.map +0 -1
  686. package/script/deps/jsr.io/@std/path/1.0.8/windows/format.js +0 -31
  687. package/script/deps/jsr.io/@std/path/1.0.8/windows/from_file_url.d.ts +0 -18
  688. package/script/deps/jsr.io/@std/path/1.0.8/windows/from_file_url.d.ts.map +0 -1
  689. package/script/deps/jsr.io/@std/path/1.0.8/windows/from_file_url.js +0 -33
  690. package/script/deps/jsr.io/@std/path/1.0.8/windows/glob_to_regexp.d.ts +0 -71
  691. package/script/deps/jsr.io/@std/path/1.0.8/windows/glob_to_regexp.d.ts.map +0 -1
  692. package/script/deps/jsr.io/@std/path/1.0.8/windows/glob_to_regexp.js +0 -85
  693. package/script/deps/jsr.io/@std/path/1.0.8/windows/join_globs.d.ts +0 -21
  694. package/script/deps/jsr.io/@std/path/1.0.8/windows/join_globs.d.ts.map +0 -1
  695. package/script/deps/jsr.io/@std/path/1.0.8/windows/join_globs.js +0 -44
  696. package/script/deps/jsr.io/@std/path/1.0.8/windows/normalize_glob.d.ts +0 -20
  697. package/script/deps/jsr.io/@std/path/1.0.8/windows/normalize_glob.d.ts.map +0 -1
  698. package/script/deps/jsr.io/@std/path/1.0.8/windows/normalize_glob.js +0 -35
  699. package/script/deps/jsr.io/@std/path/1.0.8/windows/parse.d.ts +0 -25
  700. package/script/deps/jsr.io/@std/path/1.0.8/windows/parse.d.ts.map +0 -1
  701. package/script/deps/jsr.io/@std/path/1.0.8/windows/parse.js +0 -179
  702. package/script/deps/jsr.io/@std/path/1.0.8/windows/relative.d.ts +0 -23
  703. package/script/deps/jsr.io/@std/path/1.0.8/windows/relative.d.ts.map +0 -1
  704. package/script/deps/jsr.io/@std/path/1.0.8/windows/relative.js +0 -134
  705. package/script/deps/jsr.io/@std/path/1.0.8/windows/resolve.d.ts +0 -17
  706. package/script/deps/jsr.io/@std/path/1.0.8/windows/resolve.d.ts.map +0 -1
  707. package/script/deps/jsr.io/@std/path/1.0.8/windows/resolve.js +0 -180
  708. package/script/deps/jsr.io/@std/path/1.0.8/windows/to_namespaced_path.d.ts +0 -17
  709. package/script/deps/jsr.io/@std/path/1.0.8/windows/to_namespaced_path.d.ts.map +0 -1
  710. package/script/deps/jsr.io/@std/path/1.0.8/windows/to_namespaced_path.js +0 -52
  711. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/mod.d.ts +0 -2
  712. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/mod.d.ts.map +0 -1
  713. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/mod.js +0 -6
  714. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/utils/uint8.d.ts +0 -2
  715. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/utils/uint8.d.ts.map +0 -1
  716. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/utils/uint8.js +0 -13
  717. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/deflate.d.ts +0 -28
  718. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/deflate.d.ts.map +0 -1
  719. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/deflate.js +0 -166
  720. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/inflate.d.ts +0 -24
  721. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/inflate.d.ts.map +0 -1
  722. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/inflate.js +0 -202
  723. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/mod.d.ts +0 -3
  724. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/mod.d.ts.map +0 -1
  725. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/mod.js +0 -18
  726. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/adler32.d.ts +0 -2
  727. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/adler32.d.ts.map +0 -1
  728. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/adler32.js +0 -22
  729. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/crc32.d.ts +0 -3
  730. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/crc32.d.ts.map +0 -1
  731. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/crc32.js +0 -29
  732. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/deflate.d.ts +0 -79
  733. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/deflate.d.ts.map +0 -1
  734. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/deflate.js +0 -1976
  735. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/gzheader.d.ts +0 -13
  736. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/gzheader.d.ts.map +0 -1
  737. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/gzheader.js +0 -88
  738. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/inffast.d.ts +0 -2
  739. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/inffast.d.ts.map +0 -1
  740. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/inffast.js +0 -324
  741. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/inflate.d.ts +0 -48
  742. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/inflate.d.ts.map +0 -1
  743. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/inflate.js +0 -1676
  744. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/inftrees.d.ts +0 -2
  745. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/inftrees.d.ts.map +0 -1
  746. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/inftrees.js +0 -358
  747. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/messages.d.ts +0 -13
  748. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/messages.d.ts.map +0 -1
  749. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/messages.js +0 -14
  750. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/status.d.ts +0 -31
  751. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/status.d.ts.map +0 -1
  752. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/status.js +0 -44
  753. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/trees.d.ts +0 -6
  754. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/trees.d.ts.map +0 -1
  755. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/trees.js +0 -1114
  756. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/zstream.d.ts +0 -15
  757. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/zstream.d.ts.map +0 -1
  758. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/zstream.js +0 -89
  759. package/script/deps/raw.githubusercontent.com/MTKruto/socks5/main/client.d.ts +0 -45
  760. package/script/deps/raw.githubusercontent.com/MTKruto/socks5/main/client.d.ts.map +0 -1
  761. package/script/deps/raw.githubusercontent.com/MTKruto/socks5/main/client.js +0 -280
  762. package/script/deps/raw.githubusercontent.com/MTKruto/socks5/main/deps.d.ts +0 -3
  763. package/script/deps/raw.githubusercontent.com/MTKruto/socks5/main/deps.d.ts.map +0 -1
  764. package/script/deps/raw.githubusercontent.com/MTKruto/socks5/main/deps.js +0 -5
  765. package/script/deps/raw.githubusercontent.com/MTKruto/socks5/main/utils.d.ts +0 -3
  766. package/script/deps/raw.githubusercontent.com/MTKruto/socks5/main/utils.d.ts.map +0 -1
  767. package/script/deps/raw.githubusercontent.com/MTKruto/socks5/main/utils.js +0 -39
  768. package/script/utilities/0_crypto.d.ts.map +0 -1
  769. package/script/utilities/0_crypto.js +0 -52
  770. /package/esm/deps/{deno.land/x/tgcrypto@0.4.1 → jsr.io/@roj/tgcrypto/0.4.1/dist}/tgcrypto.d.ts +0 -0
  771. /package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/almost_equals.d.ts +0 -0
  772. /package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/almost_equals.js +0 -0
  773. /package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/array_includes.d.ts +0 -0
  774. /package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/array_includes.js +0 -0
  775. /package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/assert.d.ts +0 -0
  776. /package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/assert.js +0 -0
  777. /package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/assertion_error.d.ts +0 -0
  778. /package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/assertion_error.js +0 -0
  779. /package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/equals.d.ts +0 -0
  780. /package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/equals.js +0 -0
  781. /package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/exists.d.ts +0 -0
  782. /package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/exists.js +0 -0
  783. /package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/fail.d.ts +0 -0
  784. /package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/fail.js +0 -0
  785. /package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/false.d.ts +0 -0
  786. /package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/false.js +0 -0
  787. /package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/greater.d.ts +0 -0
  788. /package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/greater.js +0 -0
  789. /package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/greater_or_equal.d.ts +0 -0
  790. /package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/greater_or_equal.js +0 -0
  791. /package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/instance_of.d.ts +0 -0
  792. /package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/instance_of.js +0 -0
  793. /package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/is_error.d.ts +0 -0
  794. /package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/is_error.js +0 -0
  795. /package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/less.d.ts +0 -0
  796. /package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/less.js +0 -0
  797. /package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/less_or_equal.d.ts +0 -0
  798. /package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/less_or_equal.js +0 -0
  799. /package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/match.d.ts +0 -0
  800. /package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/match.js +0 -0
  801. /package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/mod.d.ts +0 -0
  802. /package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/mod.js +0 -0
  803. /package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/not_equals.d.ts +0 -0
  804. /package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/not_equals.js +0 -0
  805. /package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/not_instance_of.d.ts +0 -0
  806. /package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/not_instance_of.js +0 -0
  807. /package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/not_match.d.ts +0 -0
  808. /package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/not_match.js +0 -0
  809. /package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/not_strict_equals.d.ts +0 -0
  810. /package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/not_strict_equals.js +0 -0
  811. /package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/object_match.d.ts +0 -0
  812. /package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/object_match.js +0 -0
  813. /package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/rejects.d.ts +0 -0
  814. /package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/rejects.js +0 -0
  815. /package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/strict_equals.d.ts +0 -0
  816. /package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/strict_equals.js +0 -0
  817. /package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/string_includes.d.ts +0 -0
  818. /package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/string_includes.js +0 -0
  819. /package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/throws.d.ts +0 -0
  820. /package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/throws.js +0 -0
  821. /package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/unimplemented.d.ts +0 -0
  822. /package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/unimplemented.js +0 -0
  823. /package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/unreachable.d.ts +0 -0
  824. /package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/unreachable.js +0 -0
  825. /package/esm/deps/jsr.io/@std/bytes/{1.0.3 → 1.0.4}/concat.d.ts +0 -0
  826. /package/esm/deps/jsr.io/@std/bytes/{1.0.3 → 1.0.4}/concat.js +0 -0
  827. /package/esm/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/_db.js +0 -0
  828. /package/esm/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/_util.d.ts +0 -0
  829. /package/esm/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/_util.js +0 -0
  830. /package/esm/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/all_extensions.d.ts +0 -0
  831. /package/esm/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/all_extensions.js +0 -0
  832. /package/esm/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/content_type.d.ts +0 -0
  833. /package/esm/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/content_type.js +0 -0
  834. /package/esm/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/extension.d.ts +0 -0
  835. /package/esm/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/extension.js +0 -0
  836. /package/esm/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/format_media_type.d.ts +0 -0
  837. /package/esm/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/format_media_type.js +0 -0
  838. /package/esm/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/get_charset.d.ts +0 -0
  839. /package/esm/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/get_charset.js +0 -0
  840. /package/esm/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/parse_media_type.d.ts +0 -0
  841. /package/esm/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/parse_media_type.js +0 -0
  842. /package/esm/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/type_by_extension.d.ts +0 -0
  843. /package/esm/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/type_by_extension.js +0 -0
  844. /package/script/deps/{deno.land/x/tgcrypto@0.4.1 → jsr.io/@roj/tgcrypto/0.4.1/dist}/tgcrypto.d.ts +0 -0
  845. /package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/almost_equals.d.ts +0 -0
  846. /package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/almost_equals.js +0 -0
  847. /package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/array_includes.d.ts +0 -0
  848. /package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/array_includes.js +0 -0
  849. /package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/assert.d.ts +0 -0
  850. /package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/assert.js +0 -0
  851. /package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/assertion_error.d.ts +0 -0
  852. /package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/assertion_error.js +0 -0
  853. /package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/equals.d.ts +0 -0
  854. /package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/equals.js +0 -0
  855. /package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/exists.d.ts +0 -0
  856. /package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/exists.js +0 -0
  857. /package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/fail.d.ts +0 -0
  858. /package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/fail.js +0 -0
  859. /package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/false.d.ts +0 -0
  860. /package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/false.js +0 -0
  861. /package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/greater.d.ts +0 -0
  862. /package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/greater.js +0 -0
  863. /package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/greater_or_equal.d.ts +0 -0
  864. /package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/greater_or_equal.js +0 -0
  865. /package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/instance_of.d.ts +0 -0
  866. /package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/instance_of.js +0 -0
  867. /package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/is_error.d.ts +0 -0
  868. /package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/is_error.js +0 -0
  869. /package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/less.d.ts +0 -0
  870. /package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/less.js +0 -0
  871. /package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/less_or_equal.d.ts +0 -0
  872. /package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/less_or_equal.js +0 -0
  873. /package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/match.d.ts +0 -0
  874. /package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/match.js +0 -0
  875. /package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/mod.d.ts +0 -0
  876. /package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/mod.js +0 -0
  877. /package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/not_equals.d.ts +0 -0
  878. /package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/not_equals.js +0 -0
  879. /package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/not_instance_of.d.ts +0 -0
  880. /package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/not_instance_of.js +0 -0
  881. /package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/not_match.d.ts +0 -0
  882. /package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/not_match.js +0 -0
  883. /package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/not_strict_equals.d.ts +0 -0
  884. /package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/not_strict_equals.js +0 -0
  885. /package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/object_match.d.ts +0 -0
  886. /package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/object_match.js +0 -0
  887. /package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/rejects.d.ts +0 -0
  888. /package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/rejects.js +0 -0
  889. /package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/strict_equals.d.ts +0 -0
  890. /package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/strict_equals.js +0 -0
  891. /package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/string_includes.d.ts +0 -0
  892. /package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/string_includes.js +0 -0
  893. /package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/throws.d.ts +0 -0
  894. /package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/throws.js +0 -0
  895. /package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/unimplemented.d.ts +0 -0
  896. /package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/unimplemented.js +0 -0
  897. /package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/unreachable.d.ts +0 -0
  898. /package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/unreachable.js +0 -0
  899. /package/script/deps/jsr.io/@std/bytes/{1.0.3 → 1.0.4}/concat.d.ts +0 -0
  900. /package/script/deps/jsr.io/@std/bytes/{1.0.3 → 1.0.4}/concat.js +0 -0
  901. /package/script/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/_db.js +0 -0
  902. /package/script/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/_util.d.ts +0 -0
  903. /package/script/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/_util.js +0 -0
  904. /package/script/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/all_extensions.d.ts +0 -0
  905. /package/script/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/all_extensions.js +0 -0
  906. /package/script/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/content_type.d.ts +0 -0
  907. /package/script/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/content_type.js +0 -0
  908. /package/script/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/extension.d.ts +0 -0
  909. /package/script/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/extension.js +0 -0
  910. /package/script/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/format_media_type.d.ts +0 -0
  911. /package/script/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/format_media_type.js +0 -0
  912. /package/script/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/get_charset.d.ts +0 -0
  913. /package/script/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/get_charset.js +0 -0
  914. /package/script/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/parse_media_type.d.ts +0 -0
  915. /package/script/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/parse_media_type.js +0 -0
  916. /package/script/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/type_by_extension.d.ts +0 -0
  917. /package/script/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/type_by_extension.js +0 -0
@@ -1,1976 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- var __importDefault = (this && this.__importDefault) || function (mod) {
26
- return (mod && mod.__esModule) ? mod : { "default": mod };
27
- };
28
- Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.DeflateState = void 0;
30
- exports.deflateSetHeader = deflateSetHeader;
31
- exports.deflateInit2 = deflateInit2;
32
- exports.deflate = deflate;
33
- exports.deflateEnd = deflateEnd;
34
- exports.deflateSetDictionary = deflateSetDictionary;
35
- const messages_js_1 = require("./messages.js");
36
- const trees = __importStar(require("./trees.js"));
37
- const adler32_js_1 = __importDefault(require("./adler32.js"));
38
- const crc32_js_1 = require("./crc32.js");
39
- const status_js_1 = __importDefault(require("./status.js"));
40
- /* Return codes for the compression/decompression functions. Negative values
41
- * are errors, positive values are used for special but normal events.
42
- */
43
- const Z_OK = 0;
44
- const Z_STREAM_END = 1;
45
- //const Z_NEED_DICT = 2;
46
- //const Z_ERRNO = -1;
47
- const Z_STREAM_ERROR = -2;
48
- const Z_DATA_ERROR = -3;
49
- //const Z_MEM_ERROR = -4;
50
- const Z_BUF_ERROR = -5;
51
- //const Z_VERSION_ERROR = -6;
52
- /* compression levels */
53
- //const Z_NO_COMPRESSION = 0;
54
- //const Z_BEST_SPEED = 1;
55
- //const Z_BEST_COMPRESSION = 9;
56
- const Z_DEFAULT_COMPRESSION = -1;
57
- const Z_FILTERED = 1;
58
- const Z_HUFFMAN_ONLY = 2;
59
- const Z_RLE = 3;
60
- const Z_FIXED = 4;
61
- const Z_DEFAULT_STRATEGY = 0;
62
- /* Possible values of the data_type field (though see inflate()) */
63
- //const Z_BINARY = 0;
64
- //const Z_TEXT = 1;
65
- //const Z_ASCII = 1; // = Z_TEXT
66
- const Z_UNKNOWN = 2;
67
- /* The deflate compression method */
68
- const Z_DEFLATED = 8;
69
- const MAX_MEM_LEVEL = 9;
70
- /* Maximum value for memLevel in deflateInit2 */
71
- const MAX_WBITS = 15;
72
- /* 32K LZ77 window */
73
- const DEF_MEM_LEVEL = 8;
74
- const LENGTH_CODES = 29;
75
- /* number of length codes, not counting the special END_BLOCK code */
76
- const LITERALS = 256;
77
- /* number of literal bytes 0..255 */
78
- const L_CODES = LITERALS + 1 + LENGTH_CODES;
79
- /* number of Literal or Length codes, including the END_BLOCK code */
80
- const D_CODES = 30;
81
- /* number of distance codes */
82
- const BL_CODES = 19;
83
- /* number of codes used to transfer the bit lengths */
84
- const HEAP_SIZE = 2 * L_CODES + 1;
85
- /* maximum heap size */
86
- const MAX_BITS = 15;
87
- /* All codes must not exceed MAX_BITS bits */
88
- const MIN_MATCH = 3;
89
- const MAX_MATCH = 258;
90
- const MIN_LOOKAHEAD = MAX_MATCH + MIN_MATCH + 1;
91
- const PRESET_DICT = 0x20;
92
- const INIT_STATE = 42;
93
- const EXTRA_STATE = 69;
94
- const NAME_STATE = 73;
95
- const COMMENT_STATE = 91;
96
- const HCRC_STATE = 103;
97
- const BUSY_STATE = 113;
98
- const FINISH_STATE = 666;
99
- const BS_NEED_MORE = 1; /* block not completed, need more input or more output */
100
- const BS_BLOCK_DONE = 2; /* block flush performed */
101
- const BS_FINISH_STARTED = 3; /* finish started, need only more output at next deflate */
102
- const BS_FINISH_DONE = 4; /* finish done, accept no more input or output */
103
- const OS_CODE = 0x03; // Unix :) . Don't detect, use this default.
104
- function err(strm, errorCode) {
105
- strm.msg = messages_js_1.message[errorCode];
106
- return errorCode;
107
- }
108
- function rank(f) {
109
- return (f << 1) - (f > 4 ? 9 : 0);
110
- }
111
- function zero(buf) {
112
- buf.fill(0, 0, buf.length);
113
- }
114
- /* =========================================================================
115
- * Flush as much pending output as possible. All deflate() output goes
116
- * through this function so some applications may wish to modify it
117
- * to avoid allocating a large strm->output buffer and copying into it.
118
- * (See also read_buf()).
119
- */
120
- function flush_pending(strm) {
121
- let s = strm.state;
122
- //_tr_flush_bits(s);
123
- let len = s.pending;
124
- if (len > strm.avail_out) {
125
- len = strm.avail_out;
126
- }
127
- if (len === 0)
128
- return;
129
- strm.output.set(s.pending_buf.subarray(s.pending_out, s.pending_out + len), strm.next_out);
130
- strm.next_out += len;
131
- s.pending_out += len;
132
- strm.total_out += len;
133
- strm.avail_out -= len;
134
- s.pending -= len;
135
- if (s.pending === 0) {
136
- s.pending_out = 0;
137
- }
138
- }
139
- function flush_block_only(s, last) {
140
- trees._tr_flush_block(s, s.block_start >= 0 ? s.block_start : -1, s.strstart - s.block_start, last);
141
- s.block_start = s.strstart;
142
- flush_pending(s.strm);
143
- }
144
- function put_byte(s, b) {
145
- s.pending_buf[s.pending++] = b;
146
- }
147
- /* =========================================================================
148
- * Put a short in the pending buffer. The 16-bit value is put in MSB order.
149
- * IN assertion: the stream state is correct and there is enough room in
150
- * pending_buf.
151
- */
152
- function putShortMSB(s, b) {
153
- // put_byte(s, (Byte)(b >> 8));
154
- // put_byte(s, (Byte)(b & 0xff));
155
- s.pending_buf[s.pending++] = (b >>> 8) & 0xff;
156
- s.pending_buf[s.pending++] = b & 0xff;
157
- }
158
- /* ===========================================================================
159
- * Read a new buffer from the current input stream, update the adler32
160
- * and total number of bytes read. All deflate() input goes through
161
- * this function so some applications may wish to modify it to avoid
162
- * allocating a large strm->input buffer and copying from it.
163
- * (See also flush_pending()).
164
- */
165
- function read_buf(strm, buf, start, size) {
166
- let len = strm.avail_in;
167
- if (len > size)
168
- len = size;
169
- if (len === 0)
170
- return 0;
171
- strm.avail_in -= len;
172
- // zmemcpy(buf, strm->next_in, len);
173
- buf.set(strm.input.subarray(strm.next_in, strm.next_in + len), start);
174
- if (strm.state.wrap === 1) {
175
- strm.adler = (0, adler32_js_1.default)(strm.adler, buf, len, start);
176
- }
177
- else if (strm.state.wrap === 2) {
178
- strm.adler = (0, crc32_js_1.crc32)(strm.adler, buf, len, start);
179
- }
180
- strm.next_in += len;
181
- strm.total_in += len;
182
- return len;
183
- }
184
- /* ===========================================================================
185
- * Set match_start to the longest match starting at the given string and
186
- * return its length. Matches shorter or equal to prev_length are discarded,
187
- * in which case the result is equal to prev_length and match_start is
188
- * garbage.
189
- * IN assertions: cur_match is the head of the hash chain for the current
190
- * string (strstart) and its distance is <= MAX_DIST, and prev_length >= 1
191
- * OUT assertion: the match length is not greater than s->lookahead.
192
- */
193
- function longest_match(s, cur_match) {
194
- let chain_length = s.max_chain_length; /* max hash chain length */
195
- let scan = s.strstart; /* current string */
196
- let match; /* matched string */
197
- let len; /* length of current match */
198
- let best_len = s.prev_length; /* best match length so far */
199
- let nice_match = s.nice_match; /* stop if match long enough */
200
- let limit = (s.strstart > (s.w_size - MIN_LOOKAHEAD))
201
- ? s.strstart - (s.w_size - MIN_LOOKAHEAD)
202
- : 0 /*NIL*/;
203
- let _win = s.window; // shortcut
204
- let wmask = s.w_mask;
205
- let prev = s.prev;
206
- /* Stop when cur_match becomes <= limit. To simplify the code,
207
- * we prevent matches with the string of window index 0.
208
- */
209
- let strend = s.strstart + MAX_MATCH;
210
- let scan_end1 = _win[scan + best_len - 1];
211
- let scan_end = _win[scan + best_len];
212
- /* The code is optimized for HASH_BITS >= 8 and MAX_MATCH-2 multiple of 16.
213
- * It is easy to get rid of this optimization if necessary.
214
- */
215
- // Assert(s->hash_bits >= 8 && MAX_MATCH == 258, "Code too clever");
216
- /* Do not waste too much time if we already have a good match: */
217
- if (s.prev_length >= s.good_match) {
218
- chain_length >>= 2;
219
- }
220
- /* Do not look for matches beyond the end of the input. This is necessary
221
- * to make deflate deterministic.
222
- */
223
- if (nice_match > s.lookahead)
224
- nice_match = s.lookahead;
225
- // Assert((ulg)s->strstart <= s->window_size-MIN_LOOKAHEAD, "need lookahead");
226
- do {
227
- // Assert(cur_match < s->strstart, "no future");
228
- match = cur_match;
229
- /* Skip to next match if the match length cannot increase
230
- * or if the match length is less than 2. Note that the checks below
231
- * for insufficient lookahead only occur occasionally for performance
232
- * reasons. Therefore uninitialized memory will be accessed, and
233
- * conditional jumps will be made that depend on those values.
234
- * However the length of the match is limited to the lookahead, so
235
- * the output of deflate is not affected by the uninitialized values.
236
- */
237
- if (_win[match + best_len] !== scan_end ||
238
- _win[match + best_len - 1] !== scan_end1 ||
239
- _win[match] !== _win[scan] ||
240
- _win[++match] !== _win[scan + 1]) {
241
- continue;
242
- }
243
- /* The check at best_len-1 can be removed because it will be made
244
- * again later. (This heuristic is not always a win.)
245
- * It is not necessary to compare scan[2] and match[2] since they
246
- * are always equal when the other bytes match, given that
247
- * the hash keys are equal and that HASH_BITS >= 8.
248
- */
249
- scan += 2;
250
- match++;
251
- // Assert(*scan == *match, "match[2]?");
252
- /* We check for insufficient lookahead only every 8th comparison;
253
- * the 256th check will be made at strstart+258.
254
- */
255
- do {
256
- /*jshint noempty:false*/
257
- } while (_win[++scan] === _win[++match] && _win[++scan] === _win[++match] &&
258
- _win[++scan] === _win[++match] && _win[++scan] === _win[++match] &&
259
- _win[++scan] === _win[++match] && _win[++scan] === _win[++match] &&
260
- _win[++scan] === _win[++match] && _win[++scan] === _win[++match] &&
261
- scan < strend);
262
- // Assert(scan <= s->window+(unsigned)(s->window_size-1), "wild scan");
263
- len = MAX_MATCH - (strend - scan);
264
- scan = strend - MAX_MATCH;
265
- if (len > best_len) {
266
- s.match_start = cur_match;
267
- best_len = len;
268
- if (len >= nice_match) {
269
- break;
270
- }
271
- scan_end1 = _win[scan + best_len - 1];
272
- scan_end = _win[scan + best_len];
273
- }
274
- } while ((cur_match = prev[cur_match & wmask]) > limit && --chain_length !== 0);
275
- if (best_len <= s.lookahead) {
276
- return best_len;
277
- }
278
- return s.lookahead;
279
- }
280
- /* ===========================================================================
281
- * Fill the window when the lookahead becomes insufficient.
282
- * Updates strstart and lookahead.
283
- *
284
- * IN assertion: lookahead < MIN_LOOKAHEAD
285
- * OUT assertions: strstart <= window_size-MIN_LOOKAHEAD
286
- * At least one byte has been read, or avail_in == 0; reads are
287
- * performed for at least two bytes (required for the zip translate_eol
288
- * option -- not supported here).
289
- */
290
- function fill_window(s) {
291
- let _w_size = s.w_size;
292
- let p, n, m, more, str;
293
- //Assert(s->lookahead < MIN_LOOKAHEAD, "already enough lookahead");
294
- do {
295
- more = s.window_size - s.lookahead - s.strstart;
296
- // JS ints have 32 bit, block below not needed
297
- /* Deal with !@#$% 64K limit: */
298
- //if (sizeof(int) <= 2) {
299
- // if (more == 0 && s->strstart == 0 && s->lookahead == 0) {
300
- // more = wsize;
301
- //
302
- // } else if (more == (unsigned)(-1)) {
303
- // /* Very unlikely, but possible on 16 bit machine if
304
- // * strstart == 0 && lookahead == 1 (input done a byte at time)
305
- // */
306
- // more--;
307
- // }
308
- //}
309
- /* If the window is almost full and there is insufficient lookahead,
310
- * move the upper half to the lower one to make room in the upper half.
311
- */
312
- if (s.strstart >= _w_size + (_w_size - MIN_LOOKAHEAD)) {
313
- s.window.set(s.window.subarray(_w_size, _w_size + _w_size), 0);
314
- s.match_start -= _w_size;
315
- s.strstart -= _w_size;
316
- /* we now have strstart >= MAX_DIST */
317
- s.block_start -= _w_size;
318
- /* Slide the hash table (could be avoided with 32 bit values
319
- at the expense of memory usage). We slide even when level == 0
320
- to keep the hash table consistent if we switch back to level > 0
321
- later. (Using level 0 permanently is not an optimal usage of
322
- zlib, so we don't care about this pathological case.)
323
- */
324
- n = s.hash_size;
325
- p = n;
326
- do {
327
- m = s.head[--p];
328
- s.head[p] = m >= _w_size ? m - _w_size : 0;
329
- } while (--n);
330
- n = _w_size;
331
- p = n;
332
- do {
333
- m = s.prev[--p];
334
- s.prev[p] = m >= _w_size ? m - _w_size : 0;
335
- /* If n is not on any hash chain, prev[n] is garbage but
336
- * its value will never be used.
337
- */
338
- } while (--n);
339
- more += _w_size;
340
- }
341
- if (s.strm.avail_in === 0) {
342
- break;
343
- }
344
- /* If there was no sliding:
345
- * strstart <= WSIZE+MAX_DIST-1 && lookahead <= MIN_LOOKAHEAD - 1 &&
346
- * more == window_size - lookahead - strstart
347
- * => more >= window_size - (MIN_LOOKAHEAD-1 + WSIZE + MAX_DIST-1)
348
- * => more >= window_size - 2*WSIZE + 2
349
- * In the BIG_MEM or MMAP case (not yet supported),
350
- * window_size == input_size + MIN_LOOKAHEAD &&
351
- * strstart + s->lookahead <= input_size => more >= MIN_LOOKAHEAD.
352
- * Otherwise, window_size == 2*WSIZE so more >= 2.
353
- * If there was sliding, more >= WSIZE. So in all cases, more >= 2.
354
- */
355
- //Assert(more >= 2, "more < 2");
356
- n = read_buf(s.strm, s.window, s.strstart + s.lookahead, more);
357
- s.lookahead += n;
358
- /* Initialize the hash value now that we have some input: */
359
- if (s.lookahead + s.insert >= MIN_MATCH) {
360
- str = s.strstart - s.insert;
361
- s.ins_h = s.window[str];
362
- /* UPDATE_HASH(s, s->ins_h, s->window[str + 1]); */
363
- s.ins_h = ((s.ins_h << s.hash_shift) ^ s.window[str + 1]) & s.hash_mask;
364
- //#if MIN_MATCH != 3
365
- // Call update_hash() MIN_MATCH-3 more times
366
- //#endif
367
- while (s.insert) {
368
- /* UPDATE_HASH(s, s->ins_h, s->window[str + MIN_MATCH-1]); */
369
- s.ins_h = ((s.ins_h << s.hash_shift) ^ s.window[str + MIN_MATCH - 1]) &
370
- s.hash_mask;
371
- s.prev[str & s.w_mask] = s.head[s.ins_h];
372
- s.head[s.ins_h] = str;
373
- str++;
374
- s.insert--;
375
- if (s.lookahead + s.insert < MIN_MATCH) {
376
- break;
377
- }
378
- }
379
- }
380
- /* If the whole input has less than MIN_MATCH bytes, ins_h is garbage,
381
- * but this is not important since only literal bytes will be emitted.
382
- */
383
- } while (s.lookahead < MIN_LOOKAHEAD && s.strm.avail_in !== 0);
384
- /* If the WIN_INIT bytes after the end of the current data have never been
385
- * written, then zero those bytes in order to avoid memory check reports of
386
- * the use of uninitialized (or uninitialised as Julian writes) bytes by
387
- * the longest match routines. Update the high water mark for the next
388
- * time through here. WIN_INIT is set to MAX_MATCH since the longest match
389
- * routines allow scanning to strstart + MAX_MATCH, ignoring lookahead.
390
- */
391
- // if (s.high_water < s.window_size) {
392
- // let curr = s.strstart + s.lookahead;
393
- // let init = 0;
394
- //
395
- // if (s.high_water < curr) {
396
- // /* Previous high water mark below current data -- zero WIN_INIT
397
- // * bytes or up to end of window, whichever is less.
398
- // */
399
- // init = s.window_size - curr;
400
- // if (init > WIN_INIT)
401
- // init = WIN_INIT;
402
- // zmemzero(s->window + curr, (unsigned)init);
403
- // s->high_water = curr + init;
404
- // }
405
- // else if (s->high_water < (ulg)curr + WIN_INIT) {
406
- // /* High water mark at or above current data, but below current data
407
- // * plus WIN_INIT -- zero out to current data plus WIN_INIT, or up
408
- // * to end of window, whichever is less.
409
- // */
410
- // init = (ulg)curr + WIN_INIT - s->high_water;
411
- // if (init > s->window_size - s->high_water)
412
- // init = s->window_size - s->high_water;
413
- // zmemzero(s->window + s->high_water, (unsigned)init);
414
- // s->high_water += init;
415
- // }
416
- // }
417
- //
418
- // Assert((ulg)s->strstart <= s->window_size - MIN_LOOKAHEAD,
419
- // "not enough room for search");
420
- }
421
- /* ===========================================================================
422
- * Copy without compression as much as possible from the input stream, return
423
- * the current block state.
424
- * This function does not insert new strings in the dictionary since
425
- * uncompressible data is probably not useful. This function is used
426
- * only for the level=0 compression option.
427
- * NOTE: this function should be optimized to avoid extra copying from
428
- * window to pending_buf.
429
- */
430
- function deflate_stored(s, flush) {
431
- /* Stored blocks are limited to 0xffff bytes, pending_buf is limited
432
- * to pending_buf_size, and each stored block has a 5 byte header:
433
- */
434
- let max_block_size = 0xffff;
435
- if (max_block_size > s.pending_buf_size - 5) {
436
- max_block_size = s.pending_buf_size - 5;
437
- }
438
- /* Copy as much as possible from input to output: */
439
- for (;;) {
440
- /* Fill the window as much as possible: */
441
- if (s.lookahead <= 1) {
442
- //Assert(s->strstart < s->w_size+MAX_DIST(s) ||
443
- // s->block_start >= (long)s->w_size, "slide too late");
444
- // if (!(s.strstart < s.w_size + (s.w_size - MIN_LOOKAHEAD) ||
445
- // s.block_start >= s.w_size)) {
446
- // throw new Error("slide too late");
447
- // }
448
- fill_window(s);
449
- if (s.lookahead === 0 && flush === status_js_1.default.Z_NO_FLUSH) {
450
- return BS_NEED_MORE;
451
- }
452
- if (s.lookahead === 0) {
453
- break;
454
- }
455
- /* flush the current block */
456
- }
457
- //Assert(s->block_start >= 0L, "block gone");
458
- // if (s.block_start < 0) throw new Error("block gone");
459
- s.strstart += s.lookahead;
460
- s.lookahead = 0;
461
- /* Emit a stored block if pending_buf will be full: */
462
- let max_start = s.block_start + max_block_size;
463
- if (s.strstart === 0 || s.strstart >= max_start) {
464
- /* strstart == 0 is possible when wraparound on 16-bit machine */
465
- s.lookahead = s.strstart - max_start;
466
- s.strstart = max_start;
467
- /*** FLUSH_BLOCK(s, 0); ***/
468
- flush_block_only(s, false);
469
- if (s.strm.avail_out === 0) {
470
- return BS_NEED_MORE;
471
- }
472
- /***/
473
- }
474
- /* Flush if we may have to slide, otherwise block_start may become
475
- * negative and the data will be gone:
476
- */
477
- if (s.strstart - s.block_start >= (s.w_size - MIN_LOOKAHEAD)) {
478
- /*** FLUSH_BLOCK(s, 0); ***/
479
- flush_block_only(s, false);
480
- if (s.strm.avail_out === 0) {
481
- return BS_NEED_MORE;
482
- }
483
- /***/
484
- }
485
- }
486
- s.insert = 0;
487
- if (flush === status_js_1.default.Z_FINISH) {
488
- /*** FLUSH_BLOCK(s, 1); ***/
489
- flush_block_only(s, true);
490
- if (s.strm.avail_out === 0) {
491
- return BS_FINISH_STARTED;
492
- }
493
- /***/
494
- return BS_FINISH_DONE;
495
- }
496
- if (s.strstart > s.block_start) {
497
- /*** FLUSH_BLOCK(s, 0); ***/
498
- flush_block_only(s, false);
499
- if (s.strm.avail_out === 0) {
500
- return BS_NEED_MORE;
501
- }
502
- /***/
503
- }
504
- return BS_NEED_MORE;
505
- }
506
- /* ===========================================================================
507
- * Compress as much as possible from the input stream, return the current
508
- * block state.
509
- * This function does not perform lazy evaluation of matches and inserts
510
- * new strings in the dictionary only for unmatched strings or for short
511
- * matches. It is used only for the fast compression options.
512
- */
513
- function deflate_fast(s, flush) {
514
- let hash_head; /* head of the hash chain */
515
- let bflush; /* set if current block must be flushed */
516
- for (;;) {
517
- /* Make sure that we always have enough lookahead, except
518
- * at the end of the input file. We need MAX_MATCH bytes
519
- * for the next match, plus MIN_MATCH bytes to insert the
520
- * string following the next match.
521
- */
522
- if (s.lookahead < MIN_LOOKAHEAD) {
523
- fill_window(s);
524
- if (s.lookahead < MIN_LOOKAHEAD && flush === status_js_1.default.Z_NO_FLUSH) {
525
- return BS_NEED_MORE;
526
- }
527
- if (s.lookahead === 0) {
528
- break; /* flush the current block */
529
- }
530
- }
531
- /* Insert the string window[strstart .. strstart+2] in the
532
- * dictionary, and set hash_head to the head of the hash chain:
533
- */
534
- hash_head = 0 /*NIL*/;
535
- if (s.lookahead >= MIN_MATCH) {
536
- /*** INSERT_STRING(s, s.strstart, hash_head); ***/
537
- s.ins_h =
538
- ((s.ins_h << s.hash_shift) ^ s.window[s.strstart + MIN_MATCH - 1]) &
539
- s.hash_mask;
540
- hash_head = s.prev[s.strstart & s.w_mask] = s.head[s.ins_h];
541
- s.head[s.ins_h] = s.strstart;
542
- /***/
543
- }
544
- /* Find the longest match, discarding those <= prev_length.
545
- * At this point we have always match_length < MIN_MATCH
546
- */
547
- if (hash_head !== 0 /*NIL*/ &&
548
- ((s.strstart - hash_head) <= (s.w_size - MIN_LOOKAHEAD))) {
549
- /* To simplify the code, we prevent matches with the string
550
- * of window index 0 (in particular we have to avoid a match
551
- * of the string with itself at the start of the input file).
552
- */
553
- s.match_length = longest_match(s, hash_head);
554
- /* longest_match() sets match_start */
555
- }
556
- if (s.match_length >= MIN_MATCH) {
557
- // check_match(s, s.strstart, s.match_start, s.match_length); // for debug only
558
- /*** _tr_tally_dist(s, s.strstart - s.match_start,
559
- s.match_length - MIN_MATCH, bflush); ***/
560
- bflush = trees._tr_tally(s, s.strstart - s.match_start, s.match_length - MIN_MATCH);
561
- s.lookahead -= s.match_length;
562
- /* Insert new strings in the hash table only if the match length
563
- * is not too large. This saves time but degrades compression.
564
- */
565
- if (s.match_length <= s.max_lazy_match /*max_insert_length*/ &&
566
- s.lookahead >= MIN_MATCH) {
567
- s.match_length--; /* string at strstart already in table */
568
- do {
569
- s.strstart++;
570
- /*** INSERT_STRING(s, s.strstart, hash_head); ***/
571
- s.ins_h =
572
- ((s.ins_h << s.hash_shift) ^ s.window[s.strstart + MIN_MATCH - 1]) &
573
- s.hash_mask;
574
- hash_head = s.prev[s.strstart & s.w_mask] = s.head[s.ins_h];
575
- s.head[s.ins_h] = s.strstart;
576
- /***/
577
- /* strstart never exceeds WSIZE-MAX_MATCH, so there are
578
- * always MIN_MATCH bytes ahead.
579
- */
580
- } while (--s.match_length !== 0);
581
- s.strstart++;
582
- }
583
- else {
584
- s.strstart += s.match_length;
585
- s.match_length = 0;
586
- s.ins_h = s.window[s.strstart];
587
- /* UPDATE_HASH(s, s.ins_h, s.window[s.strstart+1]); */
588
- s.ins_h = ((s.ins_h << s.hash_shift) ^ s.window[s.strstart + 1]) &
589
- s.hash_mask;
590
- //#if MIN_MATCH != 3
591
- // Call UPDATE_HASH() MIN_MATCH-3 more times
592
- //#endif
593
- /* If lookahead < MIN_MATCH, ins_h is garbage, but it does not
594
- * matter since it will be recomputed at next deflate call.
595
- */
596
- }
597
- }
598
- else {
599
- /* No match, output a literal byte */
600
- //Tracevv((stderr,"%c", s.window[s.strstart]));
601
- /*** _tr_tally_lit(s, s.window[s.strstart], bflush); ***/
602
- bflush = trees._tr_tally(s, 0, s.window[s.strstart]);
603
- s.lookahead--;
604
- s.strstart++;
605
- }
606
- if (bflush) {
607
- /*** FLUSH_BLOCK(s, 0); ***/
608
- flush_block_only(s, false);
609
- if (s.strm.avail_out === 0) {
610
- return BS_NEED_MORE;
611
- }
612
- /***/
613
- }
614
- }
615
- s.insert = (s.strstart < (MIN_MATCH - 1)) ? s.strstart : MIN_MATCH - 1;
616
- if (flush === status_js_1.default.Z_FINISH) {
617
- /*** FLUSH_BLOCK(s, 1); ***/
618
- flush_block_only(s, true);
619
- if (s.strm.avail_out === 0) {
620
- return BS_FINISH_STARTED;
621
- }
622
- /***/
623
- return BS_FINISH_DONE;
624
- }
625
- if (s.last_lit) {
626
- /*** FLUSH_BLOCK(s, 0); ***/
627
- flush_block_only(s, false);
628
- if (s.strm.avail_out === 0) {
629
- return BS_NEED_MORE;
630
- }
631
- /***/
632
- }
633
- return BS_BLOCK_DONE;
634
- }
635
- /* ===========================================================================
636
- * Same as above, but achieves better compression. We use a lazy
637
- * evaluation for matches: a match is finally adopted only if there is
638
- * no better match at the next window position.
639
- */
640
- function deflate_slow(s, flush) {
641
- let hash_head; /* head of hash chain */
642
- let bflush; /* set if current block must be flushed */
643
- let max_insert;
644
- /* Process the input block. */
645
- for (;;) {
646
- /* Make sure that we always have enough lookahead, except
647
- * at the end of the input file. We need MAX_MATCH bytes
648
- * for the next match, plus MIN_MATCH bytes to insert the
649
- * string following the next match.
650
- */
651
- if (s.lookahead < MIN_LOOKAHEAD) {
652
- fill_window(s);
653
- if (s.lookahead < MIN_LOOKAHEAD && flush === status_js_1.default.Z_NO_FLUSH) {
654
- return BS_NEED_MORE;
655
- }
656
- if (s.lookahead === 0)
657
- break; /* flush the current block */
658
- }
659
- /* Insert the string window[strstart .. strstart+2] in the
660
- * dictionary, and set hash_head to the head of the hash chain:
661
- */
662
- hash_head = 0 /*NIL*/;
663
- if (s.lookahead >= MIN_MATCH) {
664
- /*** INSERT_STRING(s, s.strstart, hash_head); ***/
665
- s.ins_h =
666
- ((s.ins_h << s.hash_shift) ^ s.window[s.strstart + MIN_MATCH - 1]) &
667
- s.hash_mask;
668
- hash_head = s.prev[s.strstart & s.w_mask] = s.head[s.ins_h];
669
- s.head[s.ins_h] = s.strstart;
670
- /***/
671
- }
672
- /* Find the longest match, discarding those <= prev_length.
673
- */
674
- s.prev_length = s.match_length;
675
- s.prev_match = s.match_start;
676
- s.match_length = MIN_MATCH - 1;
677
- if (hash_head !== 0 /*NIL*/ && s.prev_length < s.max_lazy_match &&
678
- s.strstart - hash_head <= (s.w_size - MIN_LOOKAHEAD) /*MAX_DIST(s)*/) {
679
- /* To simplify the code, we prevent matches with the string
680
- * of window index 0 (in particular we have to avoid a match
681
- * of the string with itself at the start of the input file).
682
- */
683
- s.match_length = longest_match(s, hash_head);
684
- /* longest_match() sets match_start */
685
- if (s.match_length <= 5 &&
686
- (s.strategy === Z_FILTERED ||
687
- (s.match_length === MIN_MATCH &&
688
- s.strstart - s.match_start > 4096 /*TOO_FAR*/))) {
689
- /* If prev_match is also MIN_MATCH, match_start is garbage
690
- * but we will ignore the current match anyway.
691
- */
692
- s.match_length = MIN_MATCH - 1;
693
- }
694
- }
695
- /* If there was a match at the previous step and the current
696
- * match is not better, output the previous match:
697
- */
698
- if (s.prev_length >= MIN_MATCH && s.match_length <= s.prev_length) {
699
- max_insert = s.strstart + s.lookahead - MIN_MATCH;
700
- /* Do not insert strings in hash table beyond this. */
701
- //check_match(s, s.strstart-1, s.prev_match, s.prev_length);
702
- /***_tr_tally_dist(s, s.strstart - 1 - s.prev_match,
703
- s.prev_length - MIN_MATCH, bflush);***/
704
- bflush = trees._tr_tally(s, s.strstart - 1 - s.prev_match, s.prev_length - MIN_MATCH);
705
- /* Insert in hash table all strings up to the end of the match.
706
- * strstart-1 and strstart are already inserted. If there is not
707
- * enough lookahead, the last two strings are not inserted in
708
- * the hash table.
709
- */
710
- s.lookahead -= s.prev_length - 1;
711
- s.prev_length -= 2;
712
- do {
713
- if (++s.strstart <= max_insert) {
714
- /*** INSERT_STRING(s, s.strstart, hash_head); ***/
715
- s.ins_h =
716
- ((s.ins_h << s.hash_shift) ^ s.window[s.strstart + MIN_MATCH - 1]) &
717
- s.hash_mask;
718
- hash_head = s.prev[s.strstart & s.w_mask] = s.head[s.ins_h];
719
- s.head[s.ins_h] = s.strstart;
720
- /***/
721
- }
722
- } while (--s.prev_length !== 0);
723
- s.match_available = 0;
724
- s.match_length = MIN_MATCH - 1;
725
- s.strstart++;
726
- if (bflush) {
727
- /*** FLUSH_BLOCK(s, 0); ***/
728
- flush_block_only(s, false);
729
- if (s.strm.avail_out === 0) {
730
- return BS_NEED_MORE;
731
- }
732
- /***/
733
- }
734
- }
735
- else if (s.match_available) {
736
- /* If there was no match at the previous position, output a
737
- * single literal. If there was a match but the current match
738
- * is longer, truncate the previous match to a single literal.
739
- */
740
- //Tracevv((stderr,"%c", s->window[s->strstart-1]));
741
- /*** _tr_tally_lit(s, s.window[s.strstart-1], bflush); ***/
742
- bflush = trees._tr_tally(s, 0, s.window[s.strstart - 1]);
743
- if (bflush) {
744
- /*** FLUSH_BLOCK_ONLY(s, 0) ***/
745
- flush_block_only(s, false);
746
- /***/
747
- }
748
- s.strstart++;
749
- s.lookahead--;
750
- if (s.strm.avail_out === 0) {
751
- return BS_NEED_MORE;
752
- }
753
- }
754
- else {
755
- /* There is no previous match to compare with, wait for
756
- * the next step to decide.
757
- */
758
- s.match_available = 1;
759
- s.strstart++;
760
- s.lookahead--;
761
- }
762
- }
763
- //Assert (flush != Z_NO_FLUSH, "no flush?");
764
- if (s.match_available) {
765
- //Tracevv((stderr,"%c", s->window[s->strstart-1]));
766
- /*** _tr_tally_lit(s, s.window[s.strstart-1], bflush); ***/
767
- bflush = trees._tr_tally(s, 0, s.window[s.strstart - 1]);
768
- s.match_available = 0;
769
- }
770
- s.insert = s.strstart < MIN_MATCH - 1 ? s.strstart : MIN_MATCH - 1;
771
- if (flush === status_js_1.default.Z_FINISH) {
772
- /*** FLUSH_BLOCK(s, 1); ***/
773
- flush_block_only(s, true);
774
- if (s.strm.avail_out === 0) {
775
- return BS_FINISH_STARTED;
776
- }
777
- /***/
778
- return BS_FINISH_DONE;
779
- }
780
- if (s.last_lit) {
781
- /*** FLUSH_BLOCK(s, 0); ***/
782
- flush_block_only(s, false);
783
- if (s.strm.avail_out === 0) {
784
- return BS_NEED_MORE;
785
- }
786
- /***/
787
- }
788
- return BS_BLOCK_DONE;
789
- }
790
- /* ===========================================================================
791
- * For Z_RLE, simply look for runs of bytes, generate matches only of distance
792
- * one. Do not maintain a hash table. (It will be regenerated if this run of
793
- * deflate switches away from Z_RLE.)
794
- */
795
- function deflate_rle(s, flush) {
796
- let bflush; /* set if current block must be flushed */
797
- let prev; /* byte at distance one to match */
798
- let scan, strend; /* scan goes up to strend for length of run */
799
- let _win = s.window;
800
- for (;;) {
801
- /* Make sure that we always have enough lookahead, except
802
- * at the end of the input file. We need MAX_MATCH bytes
803
- * for the longest run, plus one for the unrolled loop.
804
- */
805
- if (s.lookahead <= MAX_MATCH) {
806
- fill_window(s);
807
- if (s.lookahead <= MAX_MATCH && flush === status_js_1.default.Z_NO_FLUSH) {
808
- return BS_NEED_MORE;
809
- }
810
- if (s.lookahead === 0)
811
- break; /* flush the current block */
812
- }
813
- /* See how many times the previous byte repeats */
814
- s.match_length = 0;
815
- if (s.lookahead >= MIN_MATCH && s.strstart > 0) {
816
- scan = s.strstart - 1;
817
- prev = _win[scan];
818
- if (prev === _win[++scan] && prev === _win[++scan] &&
819
- prev === _win[++scan]) {
820
- strend = s.strstart + MAX_MATCH;
821
- do {
822
- /*jshint noempty:false*/
823
- } while (prev === _win[++scan] && prev === _win[++scan] &&
824
- prev === _win[++scan] && prev === _win[++scan] &&
825
- prev === _win[++scan] && prev === _win[++scan] &&
826
- prev === _win[++scan] && prev === _win[++scan] &&
827
- scan < strend);
828
- s.match_length = MAX_MATCH - (strend - scan);
829
- if (s.match_length > s.lookahead) {
830
- s.match_length = s.lookahead;
831
- }
832
- }
833
- //Assert(scan <= s->window+(uInt)(s->window_size-1), "wild scan");
834
- }
835
- /* Emit match if have run of MIN_MATCH or longer, else emit literal */
836
- if (s.match_length >= MIN_MATCH) {
837
- //check_match(s, s.strstart, s.strstart - 1, s.match_length);
838
- /*** _tr_tally_dist(s, 1, s.match_length - MIN_MATCH, bflush); ***/
839
- bflush = trees._tr_tally(s, 1, s.match_length - MIN_MATCH);
840
- s.lookahead -= s.match_length;
841
- s.strstart += s.match_length;
842
- s.match_length = 0;
843
- }
844
- else {
845
- /* No match, output a literal byte */
846
- //Tracevv((stderr,"%c", s->window[s->strstart]));
847
- /*** _tr_tally_lit(s, s.window[s.strstart], bflush); ***/
848
- bflush = trees._tr_tally(s, 0, s.window[s.strstart]);
849
- s.lookahead--;
850
- s.strstart++;
851
- }
852
- if (bflush) {
853
- /*** FLUSH_BLOCK(s, 0); ***/
854
- flush_block_only(s, false);
855
- if (s.strm.avail_out === 0) {
856
- return BS_NEED_MORE;
857
- }
858
- /***/
859
- }
860
- }
861
- s.insert = 0;
862
- if (flush === status_js_1.default.Z_FINISH) {
863
- /*** FLUSH_BLOCK(s, 1); ***/
864
- flush_block_only(s, true);
865
- if (s.strm.avail_out === 0) {
866
- return BS_FINISH_STARTED;
867
- }
868
- /***/
869
- return BS_FINISH_DONE;
870
- }
871
- if (s.last_lit) {
872
- /*** FLUSH_BLOCK(s, 0); ***/
873
- flush_block_only(s, false);
874
- if (s.strm.avail_out === 0) {
875
- return BS_NEED_MORE;
876
- }
877
- /***/
878
- }
879
- return BS_BLOCK_DONE;
880
- }
881
- /* ===========================================================================
882
- * For Z_HUFFMAN_ONLY, do not look for matches. Do not maintain a hash table.
883
- * (It will be regenerated if this run of deflate switches away from Huffman.)
884
- */
885
- function deflate_huff(s, flush) {
886
- let bflush; /* set if current block must be flushed */
887
- for (;;) {
888
- /* Make sure that we have a literal to write. */
889
- if (s.lookahead === 0) {
890
- fill_window(s);
891
- if (s.lookahead === 0) {
892
- if (flush === status_js_1.default.Z_NO_FLUSH) {
893
- return BS_NEED_MORE;
894
- }
895
- break; /* flush the current block */
896
- }
897
- }
898
- /* Output a literal byte */
899
- s.match_length = 0;
900
- //Tracevv((stderr,"%c", s->window[s->strstart]));
901
- /*** _tr_tally_lit(s, s.window[s.strstart], bflush); ***/
902
- bflush = trees._tr_tally(s, 0, s.window[s.strstart]);
903
- s.lookahead--;
904
- s.strstart++;
905
- if (bflush) {
906
- /*** FLUSH_BLOCK(s, 0); ***/
907
- flush_block_only(s, false);
908
- if (s.strm.avail_out === 0) {
909
- return BS_NEED_MORE;
910
- }
911
- /***/
912
- }
913
- }
914
- s.insert = 0;
915
- if (flush === status_js_1.default.Z_FINISH) {
916
- /*** FLUSH_BLOCK(s, 1); ***/
917
- flush_block_only(s, true);
918
- if (s.strm.avail_out === 0) {
919
- return BS_FINISH_STARTED;
920
- }
921
- /***/
922
- return BS_FINISH_DONE;
923
- }
924
- if (s.last_lit) {
925
- /*** FLUSH_BLOCK(s, 0); ***/
926
- flush_block_only(s, false);
927
- if (s.strm.avail_out === 0) {
928
- return BS_NEED_MORE;
929
- }
930
- /***/
931
- }
932
- return BS_BLOCK_DONE;
933
- }
934
- /* Values for max_lazy_match, good_match and max_chain_length, depending on
935
- * the desired pack level (0..9). The values given below have been tuned to
936
- * exclude worst case performance for pathological files. Better values may be
937
- * found for specific files.
938
- */
939
- class Config {
940
- constructor(good_length, max_lazy, nice_length, max_chain, func) {
941
- Object.defineProperty(this, "good_length", {
942
- enumerable: true,
943
- configurable: true,
944
- writable: true,
945
- value: void 0
946
- });
947
- Object.defineProperty(this, "max_lazy", {
948
- enumerable: true,
949
- configurable: true,
950
- writable: true,
951
- value: void 0
952
- });
953
- Object.defineProperty(this, "nice_length", {
954
- enumerable: true,
955
- configurable: true,
956
- writable: true,
957
- value: void 0
958
- });
959
- Object.defineProperty(this, "max_chain", {
960
- enumerable: true,
961
- configurable: true,
962
- writable: true,
963
- value: void 0
964
- });
965
- Object.defineProperty(this, "func", {
966
- enumerable: true,
967
- configurable: true,
968
- writable: true,
969
- value: void 0
970
- });
971
- this.good_length = good_length;
972
- this.max_lazy = max_lazy;
973
- this.nice_length = nice_length;
974
- this.max_chain = max_chain;
975
- this.func = func;
976
- }
977
- }
978
- let configuration_table;
979
- configuration_table = [
980
- /* good lazy nice chain */
981
- new Config(0, 0, 0, 0, deflate_stored), /* 0 store only */
982
- new Config(4, 4, 8, 4, deflate_fast), /* 1 max speed, no lazy matches */
983
- new Config(4, 5, 16, 8, deflate_fast), /* 2 */
984
- new Config(4, 6, 32, 32, deflate_fast), /* 3 */
985
- new Config(4, 4, 16, 16, deflate_slow), /* 4 lazy matches */
986
- new Config(8, 16, 32, 32, deflate_slow), /* 5 */
987
- new Config(8, 16, 128, 128, deflate_slow), /* 6 */
988
- new Config(8, 32, 128, 256, deflate_slow), /* 7 */
989
- new Config(32, 128, 258, 1024, deflate_slow), /* 8 */
990
- new Config(32, 258, 258, 4096, deflate_slow), /* 9 max compression */
991
- ];
992
- /* ===========================================================================
993
- * Initialize the "longest match" routines for a new zlib stream
994
- */
995
- function lm_init(s) {
996
- s.window_size = 2 * s.w_size;
997
- /*** CLEAR_HASH(s); ***/
998
- zero(s.head); // Fill with NIL (= 0);
999
- /* Set the default configuration parameters:
1000
- */
1001
- s.max_lazy_match = configuration_table[s.level].max_lazy;
1002
- s.good_match = configuration_table[s.level].good_length;
1003
- s.nice_match = configuration_table[s.level].nice_length;
1004
- s.max_chain_length = configuration_table[s.level].max_chain;
1005
- s.strstart = 0;
1006
- s.block_start = 0;
1007
- s.lookahead = 0;
1008
- s.insert = 0;
1009
- s.match_length = s.prev_length = MIN_MATCH - 1;
1010
- s.match_available = 0;
1011
- s.ins_h = 0;
1012
- }
1013
- class DeflateState {
1014
- /* Number of valid bits in bi_buf. All bits above the last valid bit
1015
- * are always zero.
1016
- */
1017
- // Used for window memory init. We safely ignore it for JS. That makes
1018
- // sense only for pointers and memory check tools.
1019
- //this.high_water = 0;
1020
- /* High water mark offset in window for initialized bytes -- bytes above
1021
- * this are set to zero in order to avoid memory check warnings when
1022
- * longest match routines access bytes past the input. This is then
1023
- * updated to the new high water mark.
1024
- */
1025
- constructor() {
1026
- Object.defineProperty(this, "strm", {
1027
- enumerable: true,
1028
- configurable: true,
1029
- writable: true,
1030
- value: null
1031
- }); /* pointer back to this zlib stream */
1032
- Object.defineProperty(this, "status", {
1033
- enumerable: true,
1034
- configurable: true,
1035
- writable: true,
1036
- value: 0
1037
- }); /* as the name implies */
1038
- Object.defineProperty(this, "pending_buf", {
1039
- enumerable: true,
1040
- configurable: true,
1041
- writable: true,
1042
- value: null
1043
- }); /* output still pending */
1044
- Object.defineProperty(this, "pending_buf_size", {
1045
- enumerable: true,
1046
- configurable: true,
1047
- writable: true,
1048
- value: 0
1049
- }); /* size of pending_buf */
1050
- Object.defineProperty(this, "pending_out", {
1051
- enumerable: true,
1052
- configurable: true,
1053
- writable: true,
1054
- value: 0
1055
- }); /* next pending byte to output to the stream */
1056
- Object.defineProperty(this, "pending", {
1057
- enumerable: true,
1058
- configurable: true,
1059
- writable: true,
1060
- value: 0
1061
- }); /* nb of bytes in the pending buffer */
1062
- Object.defineProperty(this, "wrap", {
1063
- enumerable: true,
1064
- configurable: true,
1065
- writable: true,
1066
- value: 0
1067
- }); /* bit 0 true for zlib, bit 1 true for gzip */
1068
- Object.defineProperty(this, "gzhead", {
1069
- enumerable: true,
1070
- configurable: true,
1071
- writable: true,
1072
- value: null
1073
- }); /* gzip header information to write */
1074
- Object.defineProperty(this, "gzindex", {
1075
- enumerable: true,
1076
- configurable: true,
1077
- writable: true,
1078
- value: 0
1079
- }); /* where in extra, name, or comment */
1080
- Object.defineProperty(this, "method", {
1081
- enumerable: true,
1082
- configurable: true,
1083
- writable: true,
1084
- value: Z_DEFLATED
1085
- }); /* can only be DEFLATED */
1086
- Object.defineProperty(this, "last_flush", {
1087
- enumerable: true,
1088
- configurable: true,
1089
- writable: true,
1090
- value: -1
1091
- }); /* value of flush param for previous deflate call */
1092
- Object.defineProperty(this, "w_size", {
1093
- enumerable: true,
1094
- configurable: true,
1095
- writable: true,
1096
- value: 0
1097
- }); /* LZ77 window size (32K by default) */
1098
- Object.defineProperty(this, "w_bits", {
1099
- enumerable: true,
1100
- configurable: true,
1101
- writable: true,
1102
- value: 0
1103
- }); /* log2(w_size) (8..16) */
1104
- Object.defineProperty(this, "w_mask", {
1105
- enumerable: true,
1106
- configurable: true,
1107
- writable: true,
1108
- value: 0
1109
- }); /* w_size - 1 */
1110
- Object.defineProperty(this, "window", {
1111
- enumerable: true,
1112
- configurable: true,
1113
- writable: true,
1114
- value: null
1115
- });
1116
- /* Sliding window. Input bytes are read into the second half of the window,
1117
- * and move to the first half later to keep a dictionary of at least wSize
1118
- * bytes. With this organization, matches are limited to a distance of
1119
- * wSize-MAX_MATCH bytes, but this ensures that IO is always
1120
- * performed with a length multiple of the block size.
1121
- */
1122
- Object.defineProperty(this, "window_size", {
1123
- enumerable: true,
1124
- configurable: true,
1125
- writable: true,
1126
- value: 0
1127
- });
1128
- /* Actual size of window: 2*wSize, except when the user input buffer
1129
- * is directly used as sliding window.
1130
- */
1131
- Object.defineProperty(this, "prev", {
1132
- enumerable: true,
1133
- configurable: true,
1134
- writable: true,
1135
- value: null
1136
- });
1137
- /* Link to older string with same hash index. To limit the size of this
1138
- * array to 64K, this link is maintained only for the last 32K strings.
1139
- * An index in this array is thus a window index modulo 32K.
1140
- */
1141
- Object.defineProperty(this, "head", {
1142
- enumerable: true,
1143
- configurable: true,
1144
- writable: true,
1145
- value: null
1146
- }); /* Heads of the hash chains or NIL. */
1147
- Object.defineProperty(this, "ins_h", {
1148
- enumerable: true,
1149
- configurable: true,
1150
- writable: true,
1151
- value: 0
1152
- }); /* hash index of string to be inserted */
1153
- Object.defineProperty(this, "hash_size", {
1154
- enumerable: true,
1155
- configurable: true,
1156
- writable: true,
1157
- value: 0
1158
- }); /* number of elements in hash table */
1159
- Object.defineProperty(this, "hash_bits", {
1160
- enumerable: true,
1161
- configurable: true,
1162
- writable: true,
1163
- value: 0
1164
- }); /* log2(hash_size) */
1165
- Object.defineProperty(this, "hash_mask", {
1166
- enumerable: true,
1167
- configurable: true,
1168
- writable: true,
1169
- value: 0
1170
- }); /* hash_size-1 */
1171
- Object.defineProperty(this, "hash_shift", {
1172
- enumerable: true,
1173
- configurable: true,
1174
- writable: true,
1175
- value: 0
1176
- });
1177
- /* Number of bits by which ins_h must be shifted at each input
1178
- * step. It must be such that after MIN_MATCH steps, the oldest
1179
- * byte no longer takes part in the hash key, that is:
1180
- * hash_shift * MIN_MATCH >= hash_bits
1181
- */
1182
- Object.defineProperty(this, "block_start", {
1183
- enumerable: true,
1184
- configurable: true,
1185
- writable: true,
1186
- value: 0
1187
- });
1188
- /* Window position at the beginning of the current output block. Gets
1189
- * negative when the window is moved backwards.
1190
- */
1191
- Object.defineProperty(this, "match_length", {
1192
- enumerable: true,
1193
- configurable: true,
1194
- writable: true,
1195
- value: 0
1196
- }); /* length of best match */
1197
- Object.defineProperty(this, "prev_match", {
1198
- enumerable: true,
1199
- configurable: true,
1200
- writable: true,
1201
- value: 0
1202
- }); /* previous match */
1203
- Object.defineProperty(this, "match_available", {
1204
- enumerable: true,
1205
- configurable: true,
1206
- writable: true,
1207
- value: 0
1208
- }); /* set if previous match exists */
1209
- Object.defineProperty(this, "strstart", {
1210
- enumerable: true,
1211
- configurable: true,
1212
- writable: true,
1213
- value: 0
1214
- }); /* start of string to insert */
1215
- Object.defineProperty(this, "match_start", {
1216
- enumerable: true,
1217
- configurable: true,
1218
- writable: true,
1219
- value: 0
1220
- }); /* start of matching string */
1221
- Object.defineProperty(this, "lookahead", {
1222
- enumerable: true,
1223
- configurable: true,
1224
- writable: true,
1225
- value: 0
1226
- }); /* number of valid bytes ahead in window */
1227
- Object.defineProperty(this, "prev_length", {
1228
- enumerable: true,
1229
- configurable: true,
1230
- writable: true,
1231
- value: 0
1232
- });
1233
- /* Length of the best match at previous step. Matches not greater than this
1234
- * are discarded. This is used in the lazy match evaluation.
1235
- */
1236
- Object.defineProperty(this, "max_chain_length", {
1237
- enumerable: true,
1238
- configurable: true,
1239
- writable: true,
1240
- value: 0
1241
- });
1242
- /* To speed up deflation, hash chains are never searched beyond this
1243
- * length. A higher limit improves compression ratio but degrades the
1244
- * speed.
1245
- */
1246
- Object.defineProperty(this, "max_lazy_match", {
1247
- enumerable: true,
1248
- configurable: true,
1249
- writable: true,
1250
- value: 0
1251
- });
1252
- /* Attempt to find a better match only when the current match is strictly
1253
- * smaller than this value. This mechanism is used only for compression
1254
- * levels >= 4.
1255
- */
1256
- // That's alias to max_lazy_match, don't use directly
1257
- //this.max_insert_length = 0;
1258
- /* Insert new strings in the hash table only if the match length is not
1259
- * greater than this length. This saves time but degrades compression.
1260
- * max_insert_length is used only for compression levels <= 3.
1261
- */
1262
- Object.defineProperty(this, "level", {
1263
- enumerable: true,
1264
- configurable: true,
1265
- writable: true,
1266
- value: 0
1267
- }); /* compression level (1..9) */
1268
- Object.defineProperty(this, "strategy", {
1269
- enumerable: true,
1270
- configurable: true,
1271
- writable: true,
1272
- value: 0
1273
- }); /* favor or force Huffman coding*/
1274
- Object.defineProperty(this, "good_match", {
1275
- enumerable: true,
1276
- configurable: true,
1277
- writable: true,
1278
- value: 0
1279
- });
1280
- /* Use a faster search when the previous match is longer than this */
1281
- Object.defineProperty(this, "nice_match", {
1282
- enumerable: true,
1283
- configurable: true,
1284
- writable: true,
1285
- value: 0
1286
- }); /* Stop searching when current match exceeds this */
1287
- /* used by trees.c: */
1288
- /* Didn't use ct_data typedef below to suppress compiler warning */
1289
- // struct ct_data_s dyn_ltree[HEAP_SIZE]; /* literal and length tree */
1290
- // struct ct_data_s dyn_dtree[2*D_CODES+1]; /* distance tree */
1291
- // struct ct_data_s bl_tree[2*BL_CODES+1]; /* Huffman tree for bit lengths */
1292
- // Use flat array of DOUBLE size, with interleaved fata,
1293
- // because JS does not support effective
1294
- Object.defineProperty(this, "dyn_ltree", {
1295
- enumerable: true,
1296
- configurable: true,
1297
- writable: true,
1298
- value: new Uint16Array(HEAP_SIZE * 2)
1299
- });
1300
- Object.defineProperty(this, "dyn_dtree", {
1301
- enumerable: true,
1302
- configurable: true,
1303
- writable: true,
1304
- value: new Uint16Array((2 * D_CODES + 1) * 2)
1305
- });
1306
- Object.defineProperty(this, "bl_tree", {
1307
- enumerable: true,
1308
- configurable: true,
1309
- writable: true,
1310
- value: new Uint16Array((2 * BL_CODES + 1) * 2)
1311
- });
1312
- Object.defineProperty(this, "l_desc", {
1313
- enumerable: true,
1314
- configurable: true,
1315
- writable: true,
1316
- value: null
1317
- }); /* desc. for literal tree */
1318
- Object.defineProperty(this, "d_desc", {
1319
- enumerable: true,
1320
- configurable: true,
1321
- writable: true,
1322
- value: null
1323
- }); /* desc. for distance tree */
1324
- Object.defineProperty(this, "bl_desc", {
1325
- enumerable: true,
1326
- configurable: true,
1327
- writable: true,
1328
- value: null
1329
- }); /* desc. for bit length tree */
1330
- //ush bl_count[MAX_BITS+1];
1331
- Object.defineProperty(this, "bl_count", {
1332
- enumerable: true,
1333
- configurable: true,
1334
- writable: true,
1335
- value: new Uint16Array(MAX_BITS + 1)
1336
- });
1337
- /* number of codes at each bit length for an optimal tree */
1338
- //int heap[2*L_CODES+1]; /* heap used to build the Huffman trees */
1339
- Object.defineProperty(this, "heap", {
1340
- enumerable: true,
1341
- configurable: true,
1342
- writable: true,
1343
- value: new Uint16Array(2 * L_CODES + 1)
1344
- }); /* heap used to build the Huffman trees */
1345
- Object.defineProperty(this, "heap_len", {
1346
- enumerable: true,
1347
- configurable: true,
1348
- writable: true,
1349
- value: 0
1350
- }); /* number of elements in the heap */
1351
- Object.defineProperty(this, "heap_max", {
1352
- enumerable: true,
1353
- configurable: true,
1354
- writable: true,
1355
- value: 0
1356
- }); /* element of largest frequency */
1357
- /* The sons of heap[n] are heap[2*n] and heap[2*n+1]. heap[0] is not used.
1358
- * The same heap array is used to build all trees.
1359
- */
1360
- Object.defineProperty(this, "depth", {
1361
- enumerable: true,
1362
- configurable: true,
1363
- writable: true,
1364
- value: new Uint16Array(2 * L_CODES + 1)
1365
- }); //uch depth[2*L_CODES+1];
1366
- /* Depth of each subtree used as tie breaker for trees of equal frequency
1367
- */
1368
- Object.defineProperty(this, "l_buf", {
1369
- enumerable: true,
1370
- configurable: true,
1371
- writable: true,
1372
- value: 0
1373
- }); /* buffer index for literals or lengths */
1374
- Object.defineProperty(this, "lit_bufsize", {
1375
- enumerable: true,
1376
- configurable: true,
1377
- writable: true,
1378
- value: 0
1379
- });
1380
- /* Size of match buffer for literals/lengths. There are 4 reasons for
1381
- * limiting lit_bufsize to 64K:
1382
- * - frequencies can be kept in 16 bit counters
1383
- * - if compression is not successful for the first block, all input
1384
- * data is still in the window so we can still emit a stored block even
1385
- * when input comes from standard input. (This can also be done for
1386
- * all blocks if lit_bufsize is not greater than 32K.)
1387
- * - if compression is not successful for a file smaller than 64K, we can
1388
- * even emit a stored file instead of a stored block (saving 5 bytes).
1389
- * This is applicable only for zip (not gzip or zlib).
1390
- * - creating new Huffman trees less frequently may not provide fast
1391
- * adaptation to changes in the input data statistics. (Take for
1392
- * example a binary file with poorly compressible code followed by
1393
- * a highly compressible string table.) Smaller buffer sizes give
1394
- * fast adaptation but have of course the overhead of transmitting
1395
- * trees more frequently.
1396
- * - I can't count above 4
1397
- */
1398
- Object.defineProperty(this, "last_lit", {
1399
- enumerable: true,
1400
- configurable: true,
1401
- writable: true,
1402
- value: 0
1403
- }); /* running index in l_buf */
1404
- Object.defineProperty(this, "d_buf", {
1405
- enumerable: true,
1406
- configurable: true,
1407
- writable: true,
1408
- value: 0
1409
- });
1410
- /* Buffer index for distances. To simplify the code, d_buf and l_buf have
1411
- * the same number of elements. To use different lengths, an extra flag
1412
- * array would be necessary.
1413
- */
1414
- Object.defineProperty(this, "opt_len", {
1415
- enumerable: true,
1416
- configurable: true,
1417
- writable: true,
1418
- value: 0
1419
- }); /* bit length of current block with optimal trees */
1420
- Object.defineProperty(this, "static_len", {
1421
- enumerable: true,
1422
- configurable: true,
1423
- writable: true,
1424
- value: 0
1425
- }); /* bit length of current block with static trees */
1426
- Object.defineProperty(this, "matches", {
1427
- enumerable: true,
1428
- configurable: true,
1429
- writable: true,
1430
- value: 0
1431
- }); /* number of string matches in current block */
1432
- Object.defineProperty(this, "insert", {
1433
- enumerable: true,
1434
- configurable: true,
1435
- writable: true,
1436
- value: 0
1437
- }); /* bytes at end of window left to insert */
1438
- Object.defineProperty(this, "bi_buf", {
1439
- enumerable: true,
1440
- configurable: true,
1441
- writable: true,
1442
- value: 0
1443
- });
1444
- /* Output buffer. bits are inserted starting at the bottom (least
1445
- * significant bits).
1446
- */
1447
- Object.defineProperty(this, "bi_valid", {
1448
- enumerable: true,
1449
- configurable: true,
1450
- writable: true,
1451
- value: 0
1452
- });
1453
- zero(this.dyn_ltree);
1454
- zero(this.dyn_dtree);
1455
- zero(this.bl_tree);
1456
- zero(this.heap);
1457
- zero(this.depth);
1458
- }
1459
- }
1460
- exports.DeflateState = DeflateState;
1461
- function deflateResetKeep(strm) {
1462
- let s;
1463
- if (!strm || !strm.state) {
1464
- return err(strm, status_js_1.default.Z_STREAM_ERROR.toString());
1465
- }
1466
- strm.total_in = strm.total_out = 0;
1467
- strm.data_type = Z_UNKNOWN;
1468
- s = strm.state;
1469
- s.pending = 0;
1470
- s.pending_out = 0;
1471
- if (s.wrap < 0) {
1472
- s.wrap = -s.wrap;
1473
- /* was made negative by deflate(..., Z_FINISH); */
1474
- }
1475
- s.status = s.wrap ? INIT_STATE : BUSY_STATE;
1476
- strm.adler = (s.wrap === 2)
1477
- ? 0 // crc32(0, Z_NULL, 0)
1478
- : 1; // adler32(0, Z_NULL, 0)
1479
- s.last_flush = status_js_1.default.Z_NO_FLUSH;
1480
- trees._tr_init(s);
1481
- return Z_OK;
1482
- }
1483
- function deflateReset(strm) {
1484
- let ret = deflateResetKeep(strm);
1485
- if (ret === Z_OK) {
1486
- lm_init(strm.state);
1487
- }
1488
- return ret;
1489
- }
1490
- function deflateSetHeader(strm, head) {
1491
- if (!strm || !strm.state)
1492
- return Z_STREAM_ERROR;
1493
- if (strm.state.wrap !== 2)
1494
- return Z_STREAM_ERROR;
1495
- strm.state.gzhead = head;
1496
- return Z_OK;
1497
- }
1498
- function deflateInit2(strm, level, method, windowBits, memLevel, strategy) {
1499
- if (!strm) { // === Z_NULL
1500
- return status_js_1.default.Z_STREAM_ERROR;
1501
- }
1502
- let wrap = 1;
1503
- if (level === Z_DEFAULT_COMPRESSION) {
1504
- level = 6;
1505
- }
1506
- if (windowBits < 0) {
1507
- /* suppress zlib wrapper */
1508
- wrap = 0;
1509
- windowBits = -windowBits;
1510
- }
1511
- else if (windowBits > 15) {
1512
- wrap = 2; /* write gzip wrapper instead */
1513
- windowBits -= 16;
1514
- }
1515
- if (memLevel < 1 || memLevel > MAX_MEM_LEVEL || method !== Z_DEFLATED ||
1516
- windowBits < 8 || windowBits > 15 || level < 0 || level > 9 ||
1517
- strategy < 0 || strategy > Z_FIXED) {
1518
- return err(strm, status_js_1.default.Z_STREAM_ERROR.toString());
1519
- }
1520
- if (windowBits === 8) {
1521
- windowBits = 9;
1522
- }
1523
- /* until 256-byte window bug fixed */
1524
- let s = new DeflateState();
1525
- strm.state = s;
1526
- s.strm = strm;
1527
- s.wrap = wrap;
1528
- s.gzhead = null;
1529
- s.w_bits = windowBits;
1530
- s.w_size = 1 << s.w_bits;
1531
- s.w_mask = s.w_size - 1;
1532
- s.hash_bits = memLevel + 7;
1533
- s.hash_size = 1 << s.hash_bits;
1534
- s.hash_mask = s.hash_size - 1;
1535
- s.hash_shift = ~~((s.hash_bits + MIN_MATCH - 1) / MIN_MATCH);
1536
- s.window = new Uint8Array(s.w_size * 2);
1537
- s.head = new Uint16Array(s.hash_size);
1538
- s.prev = new Uint16Array(s.w_size);
1539
- // Don't need mem init magic for JS.
1540
- //s.high_water = 0; /* nothing written to s->window yet */
1541
- s.lit_bufsize = 1 << (memLevel + 6); /* 16K elements by default */
1542
- s.pending_buf_size = s.lit_bufsize * 4;
1543
- //overlay = (ushf *) ZALLOC(strm, s->lit_bufsize, sizeof(ush)+2);
1544
- //s->pending_buf = (uchf *) overlay;
1545
- s.pending_buf = new Uint8Array(s.pending_buf_size);
1546
- // It is offset from `s.pending_buf` (size is `s.lit_bufsize * 2`)
1547
- //s->d_buf = overlay + s->lit_bufsize/sizeof(ush);
1548
- s.d_buf = 1 * s.lit_bufsize;
1549
- //s->l_buf = s->pending_buf + (1+sizeof(ush))*s->lit_bufsize;
1550
- s.l_buf = (1 + 2) * s.lit_bufsize;
1551
- s.level = level;
1552
- s.strategy = strategy;
1553
- s.method = method;
1554
- return deflateReset(strm);
1555
- }
1556
- function deflateInit(strm, level) {
1557
- return deflateInit2(strm, level, Z_DEFLATED, MAX_WBITS, DEF_MEM_LEVEL, Z_DEFAULT_STRATEGY);
1558
- }
1559
- function deflate(strm, flush) {
1560
- let old_flush, s;
1561
- let beg, val; // for gzip header write only
1562
- if (!strm || !strm.state ||
1563
- flush > status_js_1.default.Z_BLOCK || flush < 0) {
1564
- return strm ? err(strm, status_js_1.default.Z_STREAM_ERROR) : Z_STREAM_ERROR;
1565
- }
1566
- s = strm.state;
1567
- if (!strm.output ||
1568
- (!strm.input && strm.avail_in !== 0) ||
1569
- (s.status === FINISH_STATE && flush !== status_js_1.default.Z_FINISH)) {
1570
- return err(strm, (strm.avail_out === 0
1571
- ? status_js_1.default.Z_BUF_ERROR
1572
- : status_js_1.default.Z_STREAM_ERROR));
1573
- }
1574
- s.strm = strm; /* just in case */
1575
- old_flush = s.last_flush;
1576
- s.last_flush = flush;
1577
- /* Write the header */
1578
- if (s.status === INIT_STATE) {
1579
- if (s.wrap === 2) { // GZIP header
1580
- strm.adler = 0; //crc32(0L, Z_NULL, 0);
1581
- put_byte(s, 31);
1582
- put_byte(s, 139);
1583
- put_byte(s, 8);
1584
- if (!s.gzhead) { // s->gzhead == Z_NULL
1585
- put_byte(s, 0);
1586
- put_byte(s, 0);
1587
- put_byte(s, 0);
1588
- put_byte(s, 0);
1589
- put_byte(s, 0);
1590
- put_byte(s, s.level === 9
1591
- ? 2
1592
- : (s.strategy >= Z_HUFFMAN_ONLY || s.level < 2 ? 4 : 0));
1593
- put_byte(s, OS_CODE);
1594
- s.status = BUSY_STATE;
1595
- }
1596
- else {
1597
- put_byte(s, (s.gzhead.text ? 1 : 0) +
1598
- (s.gzhead.hcrc ? 2 : 0) +
1599
- (!s.gzhead.extra ? 0 : 4) +
1600
- (!s.gzhead.name ? 0 : 8) +
1601
- (!s.gzhead.comment ? 0 : 16));
1602
- put_byte(s, s.gzhead.time & 0xff);
1603
- put_byte(s, (s.gzhead.time >> 8) & 0xff);
1604
- put_byte(s, (s.gzhead.time >> 16) & 0xff);
1605
- put_byte(s, (s.gzhead.time >> 24) & 0xff);
1606
- put_byte(s, s.level === 9
1607
- ? 2
1608
- : (s.strategy >= Z_HUFFMAN_ONLY || s.level < 2 ? 4 : 0));
1609
- put_byte(s, s.gzhead.os & 0xff);
1610
- if (s.gzhead.extra && s.gzhead.extra.length) {
1611
- put_byte(s, s.gzhead.extra.length & 0xff);
1612
- put_byte(s, (s.gzhead.extra.length >> 8) & 0xff);
1613
- }
1614
- if (s.gzhead.hcrc) {
1615
- strm.adler = (0, crc32_js_1.crc32)(strm.adler, s.pending_buf, s.pending, 0);
1616
- }
1617
- s.gzindex = 0;
1618
- s.status = EXTRA_STATE;
1619
- }
1620
- } // DEFLATE header
1621
- else {
1622
- let header = (Z_DEFLATED + ((s.w_bits - 8) << 4)) << 8;
1623
- let level_flags = -1;
1624
- if (s.strategy >= Z_HUFFMAN_ONLY || s.level < 2) {
1625
- level_flags = 0;
1626
- }
1627
- else if (s.level < 6) {
1628
- level_flags = 1;
1629
- }
1630
- else if (s.level === 6) {
1631
- level_flags = 2;
1632
- }
1633
- else {
1634
- level_flags = 3;
1635
- }
1636
- header |= level_flags << 6;
1637
- if (s.strstart !== 0)
1638
- header |= PRESET_DICT;
1639
- header += 31 - (header % 31);
1640
- s.status = BUSY_STATE;
1641
- putShortMSB(s, header);
1642
- /* Save the adler32 of the preset dictionary: */
1643
- if (s.strstart !== 0) {
1644
- putShortMSB(s, strm.adler >>> 16);
1645
- putShortMSB(s, strm.adler & 0xffff);
1646
- }
1647
- strm.adler = 1; // adler32(0L, Z_NULL, 0);
1648
- }
1649
- }
1650
- //#ifdef GZIP
1651
- if (s.status === EXTRA_STATE) {
1652
- if (s.gzhead.extra /* != Z_NULL*/) {
1653
- beg = s.pending; /* start of bytes to update crc */
1654
- while (s.gzindex < (s.gzhead.extra.length & 0xffff)) {
1655
- if (s.pending === s.pending_buf_size) {
1656
- if (s.gzhead.hcrc && s.pending > beg) {
1657
- strm.adler = (0, crc32_js_1.crc32)(strm.adler, s.pending_buf, s.pending - beg, beg);
1658
- }
1659
- flush_pending(strm);
1660
- beg = s.pending;
1661
- if (s.pending === s.pending_buf_size) {
1662
- break;
1663
- }
1664
- }
1665
- put_byte(s, s.gzhead.extra[s.gzindex] & 0xff);
1666
- s.gzindex++;
1667
- }
1668
- if (s.gzhead.hcrc && s.pending > beg) {
1669
- strm.adler = (0, crc32_js_1.crc32)(strm.adler, s.pending_buf, s.pending - beg, beg);
1670
- }
1671
- if (s.gzindex === s.gzhead.extra.length) {
1672
- s.gzindex = 0;
1673
- s.status = NAME_STATE;
1674
- }
1675
- }
1676
- else {
1677
- s.status = NAME_STATE;
1678
- }
1679
- }
1680
- if (s.status === NAME_STATE) {
1681
- if (s.gzhead.name /* != Z_NULL*/) {
1682
- beg = s.pending; /* start of bytes to update crc */
1683
- //int val;
1684
- do {
1685
- if (s.pending === s.pending_buf_size) {
1686
- if (s.gzhead.hcrc && s.pending > beg) {
1687
- strm.adler = (0, crc32_js_1.crc32)(strm.adler, s.pending_buf, s.pending - beg, beg);
1688
- }
1689
- flush_pending(strm);
1690
- beg = s.pending;
1691
- if (s.pending === s.pending_buf_size) {
1692
- val = 1;
1693
- break;
1694
- }
1695
- }
1696
- // JS specific: little magic to add zero terminator to end of string
1697
- if (s.gzindex < s.gzhead.name.length) {
1698
- val = s.gzhead.name.charCodeAt(s.gzindex++) & 0xff;
1699
- }
1700
- else {
1701
- val = 0;
1702
- }
1703
- put_byte(s, val);
1704
- } while (val !== 0);
1705
- if (s.gzhead.hcrc && s.pending > beg) {
1706
- strm.adler = (0, crc32_js_1.crc32)(strm.adler, s.pending_buf, s.pending - beg, beg);
1707
- }
1708
- if (val === 0) {
1709
- s.gzindex = 0;
1710
- s.status = COMMENT_STATE;
1711
- }
1712
- }
1713
- else {
1714
- s.status = COMMENT_STATE;
1715
- }
1716
- }
1717
- if (s.status === COMMENT_STATE) {
1718
- if (s.gzhead.comment /* != Z_NULL*/) {
1719
- beg = s.pending; /* start of bytes to update crc */
1720
- //int val;
1721
- do {
1722
- if (s.pending === s.pending_buf_size) {
1723
- if (s.gzhead.hcrc && s.pending > beg) {
1724
- strm.adler = (0, crc32_js_1.crc32)(strm.adler, s.pending_buf, s.pending - beg, beg);
1725
- }
1726
- flush_pending(strm);
1727
- beg = s.pending;
1728
- if (s.pending === s.pending_buf_size) {
1729
- val = 1;
1730
- break;
1731
- }
1732
- }
1733
- // JS specific: little magic to add zero terminator to end of string
1734
- if (s.gzindex < s.gzhead.comment.length) {
1735
- val = s.gzhead.comment.charCodeAt(s.gzindex++) & 0xff;
1736
- }
1737
- else {
1738
- val = 0;
1739
- }
1740
- put_byte(s, val);
1741
- } while (val !== 0);
1742
- if (s.gzhead.hcrc && s.pending > beg) {
1743
- strm.adler = (0, crc32_js_1.crc32)(strm.adler, s.pending_buf, s.pending - beg, beg);
1744
- }
1745
- if (val === 0) {
1746
- s.status = HCRC_STATE;
1747
- }
1748
- }
1749
- else {
1750
- s.status = HCRC_STATE;
1751
- }
1752
- }
1753
- if (s.status === HCRC_STATE) {
1754
- if (s.gzhead.hcrc) {
1755
- if (s.pending + 2 > s.pending_buf_size) {
1756
- flush_pending(strm);
1757
- }
1758
- if (s.pending + 2 <= s.pending_buf_size) {
1759
- put_byte(s, strm.adler & 0xff);
1760
- put_byte(s, (strm.adler >> 8) & 0xff);
1761
- strm.adler = 0; //crc32(0L, Z_NULL, 0);
1762
- s.status = BUSY_STATE;
1763
- }
1764
- }
1765
- else {
1766
- s.status = BUSY_STATE;
1767
- }
1768
- }
1769
- //#endif
1770
- /* Flush as much pending output as possible */
1771
- if (s.pending !== 0) {
1772
- flush_pending(strm);
1773
- if (strm.avail_out === 0) {
1774
- /* Since avail_out is 0, deflate will be called again with
1775
- * more output space, but possibly with both pending and
1776
- * avail_in equal to zero. There won't be anything to do,
1777
- * but this is not an error situation so make sure we
1778
- * return OK instead of BUF_ERROR at next call of deflate:
1779
- */
1780
- s.last_flush = -1;
1781
- return Z_OK;
1782
- }
1783
- /* Make sure there is something to do and avoid duplicate consecutive
1784
- * flushes. For repeated and useless calls with Z_FINISH, we keep
1785
- * returning Z_STREAM_END instead of Z_BUF_ERROR.
1786
- */
1787
- }
1788
- else if (strm.avail_in === 0 && rank(flush) <= rank(old_flush) &&
1789
- flush !== status_js_1.default.Z_FINISH) {
1790
- return err(strm, status_js_1.default.Z_BUF_ERROR);
1791
- }
1792
- /* User must not provide more input after the first FINISH: */
1793
- if (s.status === FINISH_STATE && strm.avail_in !== 0) {
1794
- return err(strm, status_js_1.default.Z_BUF_ERROR);
1795
- }
1796
- /* Start a new block or continue the current one.
1797
- */
1798
- if (strm.avail_in !== 0 || s.lookahead !== 0 ||
1799
- (flush !== status_js_1.default.Z_NO_FLUSH && s.status !== FINISH_STATE)) {
1800
- let bstate = (s.strategy === Z_HUFFMAN_ONLY)
1801
- ? deflate_huff(s, flush)
1802
- : (s.strategy === Z_RLE
1803
- ? deflate_rle(s, flush)
1804
- : configuration_table[s.level].func(s, flush));
1805
- if (bstate === BS_FINISH_STARTED || bstate === BS_FINISH_DONE) {
1806
- s.status = FINISH_STATE;
1807
- }
1808
- if (bstate === BS_NEED_MORE || bstate === BS_FINISH_STARTED) {
1809
- if (strm.avail_out === 0) {
1810
- s.last_flush = -1;
1811
- /* avoid BUF_ERROR next call, see above */
1812
- }
1813
- return status_js_1.default.Z_OK;
1814
- /* If flush != Z_NO_FLUSH && avail_out == 0, the next call
1815
- * of deflate should use the same flush parameter to make sure
1816
- * that the flush is complete. So we don't have to output an
1817
- * empty block here, this will be done at next call. This also
1818
- * ensures that for a very small output buffer, we emit at most
1819
- * one empty block.
1820
- */
1821
- }
1822
- if (bstate === BS_BLOCK_DONE) {
1823
- if (flush === status_js_1.default.Z_PARTIAL_FLUSH) {
1824
- trees._tr_align(s);
1825
- }
1826
- else if (flush !== status_js_1.default.Z_BLOCK) {
1827
- /* FULL_FLUSH or SYNC_FLUSH */
1828
- trees._tr_stored_block(s, 0, 0, false);
1829
- /* For a full flush, this empty block will be recognized
1830
- * as a special marker by inflate_sync().
1831
- */
1832
- if (flush === status_js_1.default.Z_FULL_FLUSH) {
1833
- /*** CLEAR_HASH(s); ***/
1834
- /* forget history */
1835
- zero(s.head); // Fill with NIL (= 0);
1836
- if (s.lookahead === 0) {
1837
- s.strstart = 0;
1838
- s.block_start = 0;
1839
- s.insert = 0;
1840
- }
1841
- }
1842
- }
1843
- flush_pending(strm);
1844
- if (strm.avail_out === 0) {
1845
- s.last_flush = -1; /* avoid BUF_ERROR at next call, see above */
1846
- return status_js_1.default.Z_OK;
1847
- }
1848
- }
1849
- }
1850
- //Assert(strm->avail_out > 0, "bug2");
1851
- //if (strm.avail_out <= 0) { throw new Error("bug2");}
1852
- if (flush !== status_js_1.default.Z_FINISH)
1853
- return status_js_1.default.Z_OK;
1854
- if (s.wrap <= 0)
1855
- return status_js_1.default.Z_STREAM_END;
1856
- /* Write the trailer */
1857
- if (s.wrap === 2) {
1858
- put_byte(s, strm.adler & 0xff);
1859
- put_byte(s, (strm.adler >> 8) & 0xff);
1860
- put_byte(s, (strm.adler >> 16) & 0xff);
1861
- put_byte(s, (strm.adler >> 24) & 0xff);
1862
- put_byte(s, strm.total_in & 0xff);
1863
- put_byte(s, (strm.total_in >> 8) & 0xff);
1864
- put_byte(s, (strm.total_in >> 16) & 0xff);
1865
- put_byte(s, (strm.total_in >> 24) & 0xff);
1866
- }
1867
- else {
1868
- putShortMSB(s, strm.adler >>> 16);
1869
- putShortMSB(s, strm.adler & 0xffff);
1870
- }
1871
- flush_pending(strm);
1872
- /* If avail_out is zero, the application will call deflate again
1873
- * to flush the rest.
1874
- */
1875
- if (s.wrap > 0)
1876
- s.wrap = -s.wrap;
1877
- /* write the trailer only once! */
1878
- return s.pending !== 0 ? Z_OK : Z_STREAM_END;
1879
- }
1880
- function deflateEnd(strm) {
1881
- let status;
1882
- if (!strm /*== Z_NULL*/ || !strm.state /*== Z_NULL*/) {
1883
- return Z_STREAM_ERROR;
1884
- }
1885
- status = strm.state.status;
1886
- if (status !== INIT_STATE &&
1887
- status !== EXTRA_STATE &&
1888
- status !== NAME_STATE &&
1889
- status !== COMMENT_STATE &&
1890
- status !== HCRC_STATE &&
1891
- status !== BUSY_STATE &&
1892
- status !== FINISH_STATE) {
1893
- return err(strm, status_js_1.default.Z_STREAM_ERROR);
1894
- }
1895
- strm.state = null;
1896
- return status === BUSY_STATE ? err(strm, status_js_1.default.Z_DATA_ERROR) : Z_OK;
1897
- }
1898
- /* =========================================================================
1899
- * Initializes the compression dictionary from the given byte
1900
- * sequence without producing any compressed output.
1901
- */
1902
- function deflateSetDictionary(strm, dictionary) {
1903
- let dictLength = dictionary.length;
1904
- let s;
1905
- let str, n;
1906
- let wrap;
1907
- let avail;
1908
- let next;
1909
- let input;
1910
- let tmpDict;
1911
- if (!strm /*== Z_NULL*/ || !strm.state /*== Z_NULL*/) {
1912
- return Z_STREAM_ERROR;
1913
- }
1914
- s = strm.state;
1915
- wrap = s.wrap;
1916
- if (wrap === 2 || (wrap === 1 && s.status !== INIT_STATE) || s.lookahead) {
1917
- return Z_STREAM_ERROR;
1918
- }
1919
- /* when using zlib wrappers, compute Adler-32 for provided dictionary */
1920
- if (wrap === 1) {
1921
- /* adler32(strm->adler, dictionary, dictLength); */
1922
- strm.adler = (0, adler32_js_1.default)(strm.adler, dictionary, dictLength, 0);
1923
- }
1924
- s.wrap = 0; /* avoid computing Adler-32 in read_buf */
1925
- /* if dictionary would fill window, just replace the history */
1926
- if (dictLength >= s.w_size) {
1927
- if (wrap === 0) {
1928
- /* already empty otherwise */
1929
- /*** CLEAR_HASH(s); ***/
1930
- zero(s.head); // Fill with NIL (= 0);
1931
- s.strstart = 0;
1932
- s.block_start = 0;
1933
- s.insert = 0;
1934
- }
1935
- /* use the tail */
1936
- // dictionary = dictionary.slice(dictLength - s.w_size);
1937
- tmpDict = new Uint8Array(s.w_size);
1938
- tmpDict.set(dictionary.subarray(dictLength - s.w_size, dictLength), 0);
1939
- dictionary = tmpDict;
1940
- dictLength = s.w_size;
1941
- }
1942
- /* insert dictionary into window and hash */
1943
- avail = strm.avail_in;
1944
- next = strm.next_in;
1945
- input = strm.input;
1946
- strm.avail_in = dictLength;
1947
- strm.next_in = 0;
1948
- strm.input = dictionary;
1949
- fill_window(s);
1950
- while (s.lookahead >= MIN_MATCH) {
1951
- str = s.strstart;
1952
- n = s.lookahead - (MIN_MATCH - 1);
1953
- do {
1954
- /* UPDATE_HASH(s, s->ins_h, s->window[str + MIN_MATCH-1]); */
1955
- s.ins_h = ((s.ins_h << s.hash_shift) ^ s.window[str + MIN_MATCH - 1]) &
1956
- s.hash_mask;
1957
- s.prev[str & s.w_mask] = s.head[s.ins_h];
1958
- s.head[s.ins_h] = str;
1959
- str++;
1960
- } while (--n);
1961
- s.strstart = str;
1962
- s.lookahead = MIN_MATCH - 1;
1963
- fill_window(s);
1964
- }
1965
- s.strstart += s.lookahead;
1966
- s.block_start = s.strstart;
1967
- s.insert = s.lookahead;
1968
- s.lookahead = 0;
1969
- s.match_length = s.prev_length = MIN_MATCH - 1;
1970
- s.match_available = 0;
1971
- strm.next_in = next;
1972
- strm.input = input;
1973
- strm.avail_in = avail;
1974
- s.wrap = wrap;
1975
- return Z_OK;
1976
- }