@mtkruto/node 0.6.0 → 0.6.1

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 (859) hide show
  1. package/esm/0_deps.d.ts +11 -8
  2. package/esm/0_deps.d.ts.map +1 -1
  3. package/esm/0_deps.js +12 -9
  4. package/esm/1_utilities.d.ts +1 -0
  5. package/esm/1_utilities.d.ts.map +1 -1
  6. package/esm/1_utilities.js +1 -0
  7. package/esm/client/0_params.d.ts +3 -3
  8. package/esm/client/0_params.d.ts.map +1 -1
  9. package/esm/client/1_client_encrypted.js +4 -4
  10. package/esm/client/2_file_manager.js +6 -6
  11. package/esm/client/5_client.d.ts +1 -1
  12. package/esm/client/5_client.js +1 -1
  13. package/esm/deps/jsr.io/@roj/tgcrypto/0.4.1/dist/mod.d.ts.map +1 -0
  14. package/esm/deps/jsr.io/@roj/tgcrypto/0.4.1/dist/tgcrypto.d.ts.map +1 -0
  15. package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/almost_equals.d.ts.map +1 -1
  16. package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/array_includes.d.ts.map +1 -1
  17. package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/assert.d.ts.map +1 -1
  18. package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/assertion_error.d.ts.map +1 -1
  19. package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/equal.d.ts +4 -4
  20. package/esm/deps/jsr.io/@std/assert/1.0.8/equal.d.ts.map +1 -0
  21. package/esm/deps/jsr.io/@std/assert/1.0.8/equal.js +183 -0
  22. package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/equals.d.ts.map +1 -1
  23. package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/exists.d.ts.map +1 -1
  24. package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/fail.d.ts.map +1 -1
  25. package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/false.d.ts.map +1 -1
  26. package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/greater.d.ts.map +1 -1
  27. package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/greater_or_equal.d.ts.map +1 -1
  28. package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/instance_of.d.ts.map +1 -1
  29. package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/is_error.d.ts.map +1 -1
  30. package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/less.d.ts.map +1 -1
  31. package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/less_or_equal.d.ts.map +1 -1
  32. package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/match.d.ts.map +1 -1
  33. package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/mod.d.ts.map +1 -1
  34. package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/not_equals.d.ts.map +1 -1
  35. package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/not_instance_of.d.ts.map +1 -1
  36. package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/not_match.d.ts.map +1 -1
  37. package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/not_strict_equals.d.ts.map +1 -1
  38. package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/object_match.d.ts.map +1 -1
  39. package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/rejects.d.ts.map +1 -1
  40. package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/strict_equals.d.ts.map +1 -1
  41. package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/string_includes.d.ts.map +1 -1
  42. package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/throws.d.ts.map +1 -1
  43. package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/unimplemented.d.ts.map +1 -1
  44. package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/unreachable.d.ts.map +1 -1
  45. package/esm/deps/jsr.io/@std/bytes/{1.0.3 → 1.0.4}/concat.d.ts.map +1 -1
  46. package/esm/deps/jsr.io/@std/media-types/1.1.0/_db.d.ts +8 -0
  47. package/esm/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/_db.d.ts.map +1 -1
  48. package/esm/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/_util.d.ts.map +1 -1
  49. package/esm/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/all_extensions.d.ts.map +1 -1
  50. package/esm/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/content_type.d.ts.map +1 -1
  51. package/esm/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/extension.d.ts.map +1 -1
  52. package/esm/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/format_media_type.d.ts.map +1 -1
  53. package/esm/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/get_charset.d.ts.map +1 -1
  54. package/esm/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/parse_media_type.d.ts.map +1 -1
  55. package/esm/deps/jsr.io/@std/media-types/1.1.0/type_by_extension.d.ts.map +1 -0
  56. package/esm/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/vendor/db.d.ts +310 -3
  57. package/esm/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/vendor/db.d.ts.map +1 -1
  58. package/esm/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/vendor/db.js +310 -3
  59. package/esm/deps/jsr.io/@std/streams/1.0.8/to_array_buffer.d.ts +22 -0
  60. package/esm/deps/jsr.io/@std/streams/1.0.8/to_array_buffer.d.ts.map +1 -0
  61. package/esm/deps/jsr.io/@std/streams/1.0.8/to_array_buffer.js +35 -0
  62. package/esm/transport/3_transport_provider_tcp.d.ts +19 -8
  63. package/esm/transport/3_transport_provider_tcp.d.ts.map +1 -1
  64. package/esm/transport/3_transport_provider_tcp.js +19 -5
  65. package/esm/types/0_birthday.d.ts.map +1 -1
  66. package/esm/types/0_birthday.js +3 -2
  67. package/esm/types/0_chat_member_rights.js +3 -3
  68. package/esm/types/0_contact.d.ts.map +1 -1
  69. package/esm/types/0_contact.js +3 -2
  70. package/esm/types/0_location.d.ts.map +1 -1
  71. package/esm/types/0_location.js +7 -6
  72. package/esm/types/1_animation.d.ts.map +1 -1
  73. package/esm/types/1_animation.js +3 -2
  74. package/esm/types/1_audio.d.ts.map +1 -1
  75. package/esm/types/1_audio.js +3 -2
  76. package/esm/types/1_venue.d.ts.map +1 -1
  77. package/esm/types/1_venue.js +2 -5
  78. package/esm/types/2_story_interactions.d.ts.map +1 -1
  79. package/esm/types/2_story_interactions.js +2 -1
  80. package/esm/utilities/0_gunzip.d.ts +2 -0
  81. package/esm/utilities/0_gunzip.d.ts.map +1 -0
  82. package/esm/utilities/0_gunzip.js +17 -0
  83. package/package.json +2 -1
  84. package/script/0_deps.d.ts +11 -8
  85. package/script/0_deps.d.ts.map +1 -1
  86. package/script/0_deps.js +20 -26
  87. package/script/1_utilities.d.ts +1 -0
  88. package/script/1_utilities.d.ts.map +1 -1
  89. package/script/1_utilities.js +1 -0
  90. package/script/client/0_params.d.ts +3 -3
  91. package/script/client/0_params.d.ts.map +1 -1
  92. package/script/client/1_client_encrypted.js +2 -2
  93. package/script/client/2_file_manager.js +5 -5
  94. package/script/client/5_client.d.ts +1 -1
  95. package/script/client/5_client.js +1 -1
  96. package/script/deps/jsr.io/@roj/tgcrypto/0.4.1/dist/mod.d.ts.map +1 -0
  97. package/script/deps/jsr.io/@roj/tgcrypto/0.4.1/dist/tgcrypto.d.ts.map +1 -0
  98. package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/almost_equals.d.ts.map +1 -1
  99. package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/array_includes.d.ts.map +1 -1
  100. package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/assert.d.ts.map +1 -1
  101. package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/assertion_error.d.ts.map +1 -1
  102. package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/equal.d.ts +4 -4
  103. package/script/deps/jsr.io/@std/assert/1.0.8/equal.d.ts.map +1 -0
  104. package/script/deps/jsr.io/@std/assert/1.0.8/equal.js +209 -0
  105. package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/equals.d.ts.map +1 -1
  106. package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/exists.d.ts.map +1 -1
  107. package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/fail.d.ts.map +1 -1
  108. package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/false.d.ts.map +1 -1
  109. package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/greater.d.ts.map +1 -1
  110. package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/greater_or_equal.d.ts.map +1 -1
  111. package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/instance_of.d.ts.map +1 -1
  112. package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/is_error.d.ts.map +1 -1
  113. package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/less.d.ts.map +1 -1
  114. package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/less_or_equal.d.ts.map +1 -1
  115. package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/match.d.ts.map +1 -1
  116. package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/mod.d.ts.map +1 -1
  117. package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/not_equals.d.ts.map +1 -1
  118. package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/not_instance_of.d.ts.map +1 -1
  119. package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/not_match.d.ts.map +1 -1
  120. package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/not_strict_equals.d.ts.map +1 -1
  121. package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/object_match.d.ts.map +1 -1
  122. package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/rejects.d.ts.map +1 -1
  123. package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/strict_equals.d.ts.map +1 -1
  124. package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/string_includes.d.ts.map +1 -1
  125. package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/throws.d.ts.map +1 -1
  126. package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/unimplemented.d.ts.map +1 -1
  127. package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/unreachable.d.ts.map +1 -1
  128. package/script/deps/jsr.io/@std/bytes/{1.0.3 → 1.0.4}/concat.d.ts.map +1 -1
  129. package/script/deps/jsr.io/@std/media-types/1.1.0/_db.d.ts +8 -0
  130. package/script/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/_db.d.ts.map +1 -1
  131. package/script/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/_util.d.ts.map +1 -1
  132. package/script/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/all_extensions.d.ts.map +1 -1
  133. package/script/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/content_type.d.ts.map +1 -1
  134. package/script/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/extension.d.ts.map +1 -1
  135. package/script/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/format_media_type.d.ts.map +1 -1
  136. package/script/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/get_charset.d.ts.map +1 -1
  137. package/script/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/parse_media_type.d.ts.map +1 -1
  138. package/script/deps/jsr.io/@std/media-types/1.1.0/type_by_extension.d.ts.map +1 -0
  139. package/script/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/vendor/db.d.ts +310 -3
  140. package/script/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/vendor/db.d.ts.map +1 -1
  141. package/script/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/vendor/db.js +310 -3
  142. package/script/deps/jsr.io/@std/streams/1.0.8/to_array_buffer.d.ts +22 -0
  143. package/script/deps/jsr.io/@std/streams/1.0.8/to_array_buffer.d.ts.map +1 -0
  144. package/script/deps/jsr.io/@std/streams/1.0.8/to_array_buffer.js +38 -0
  145. package/script/transport/3_transport_provider_tcp.d.ts +19 -8
  146. package/script/transport/3_transport_provider_tcp.d.ts.map +1 -1
  147. package/script/transport/3_transport_provider_tcp.js +19 -5
  148. package/script/types/0_birthday.d.ts.map +1 -1
  149. package/script/types/0_birthday.js +3 -2
  150. package/script/types/0_chat_member_rights.js +2 -2
  151. package/script/types/0_contact.d.ts.map +1 -1
  152. package/script/types/0_contact.js +3 -2
  153. package/script/types/0_location.d.ts.map +1 -1
  154. package/script/types/0_location.js +7 -6
  155. package/script/types/1_animation.d.ts.map +1 -1
  156. package/script/types/1_animation.js +3 -2
  157. package/script/types/1_audio.d.ts.map +1 -1
  158. package/script/types/1_audio.js +3 -2
  159. package/script/types/1_venue.d.ts.map +1 -1
  160. package/script/types/1_venue.js +2 -5
  161. package/script/types/2_story_interactions.d.ts.map +1 -1
  162. package/script/types/2_story_interactions.js +2 -1
  163. package/script/utilities/0_gunzip.d.ts +2 -0
  164. package/script/utilities/0_gunzip.d.ts.map +1 -0
  165. package/script/utilities/0_gunzip.js +20 -0
  166. package/esm/deps/deno.land/std@0.224.0/io/types.d.ts +0 -95
  167. package/esm/deps/deno.land/std@0.224.0/io/types.d.ts.map +0 -1
  168. package/esm/deps/deno.land/std@0.224.0/io/types.js +0 -3
  169. package/esm/deps/deno.land/std@0.224.0/io/write_all.d.ts +0 -39
  170. package/esm/deps/deno.land/std@0.224.0/io/write_all.d.ts.map +0 -1
  171. package/esm/deps/deno.land/std@0.224.0/io/write_all.js +0 -49
  172. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/DomHandler.d.ts +0 -84
  173. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/DomHandler.d.ts.map +0 -1
  174. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/DomHandler.js +0 -203
  175. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/DomSerializer.d.ts +0 -51
  176. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/DomSerializer.d.ts.map +0 -1
  177. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/DomSerializer.js +0 -274
  178. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/ElementType.d.ts +0 -48
  179. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/ElementType.d.ts.map +0 -1
  180. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/ElementType.js +0 -51
  181. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/FeedHandler.d.ts +0 -67
  182. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/FeedHandler.d.ts.map +0 -1
  183. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/FeedHandler.js +0 -191
  184. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/Node.d.ts +0 -169
  185. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/Node.d.ts.map +0 -1
  186. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/Node.js +0 -385
  187. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/Parser.d.ts +0 -160
  188. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/Parser.d.ts.map +0 -1
  189. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/Parser.js +0 -431
  190. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/Tokenizer.d.ts +0 -182
  191. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/Tokenizer.d.ts.map +0 -1
  192. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/Tokenizer.js +0 -1046
  193. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/mod.d.ts +0 -43
  194. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/mod.d.ts.map +0 -1
  195. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/mod.js +0 -52
  196. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/decode.d.ts +0 -12
  197. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/decode.d.ts.map +0 -1
  198. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/decode.js +0 -122
  199. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/decode_codepoint.d.ts +0 -2
  200. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/decode_codepoint.d.ts.map +0 -1
  201. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/decode_codepoint.js +0 -24
  202. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/encode.d.ts +0 -47
  203. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/encode.d.ts.map +0 -1
  204. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/encode.js +0 -121
  205. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/maps/decode.d.ts +0 -32
  206. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/maps/decode.d.ts.map +0 -1
  207. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/maps/decode.js +0 -30
  208. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/maps/entities.d.ts +0 -2129
  209. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/maps/entities.d.ts.map +0 -1
  210. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/maps/entities.js +0 -2127
  211. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/maps/legacy.d.ts +0 -110
  212. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/maps/legacy.d.ts.map +0 -1
  213. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/maps/legacy.js +0 -108
  214. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/maps/xml.d.ts +0 -9
  215. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/maps/xml.d.ts.map +0 -1
  216. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/maps/xml.js +0 -1
  217. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/mod.d.ts +0 -91
  218. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/mod.d.ts.map +0 -1
  219. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/mod.js +0 -95
  220. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/helpers.d.ts +0 -51
  221. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/helpers.d.ts.map +0 -1
  222. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/helpers.js +0 -128
  223. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/legacy.d.ts +0 -47
  224. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/legacy.d.ts.map +0 -1
  225. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/legacy.js +0 -110
  226. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/manipulation.d.ts +0 -43
  227. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/manipulation.d.ts.map +0 -1
  228. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/manipulation.js +0 -120
  229. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/mod.d.ts +0 -7
  230. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/mod.d.ts.map +0 -1
  231. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/mod.js +0 -6
  232. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/querying.d.ts +0 -55
  233. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/querying.d.ts.map +0 -1
  234. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/querying.js +0 -110
  235. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/stringify.d.ts +0 -41
  236. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/stringify.d.ts.map +0 -1
  237. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/stringify.js +0 -75
  238. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/traversal.d.ts +0 -59
  239. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/traversal.d.ts.map +0 -1
  240. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/traversal.js +0 -101
  241. package/esm/deps/deno.land/x/tgcrypto@0.4.1/mod.d.ts.map +0 -1
  242. package/esm/deps/deno.land/x/tgcrypto@0.4.1/tgcrypto.d.ts.map +0 -1
  243. package/esm/deps/jsr.io/@std/assert/1.0.7/equal.d.ts.map +0 -1
  244. package/esm/deps/jsr.io/@std/assert/1.0.7/equal.js +0 -136
  245. package/esm/deps/jsr.io/@std/media-types/1.0.3/_db.d.ts +0 -8
  246. package/esm/deps/jsr.io/@std/media-types/1.0.3/type_by_extension.d.ts.map +0 -1
  247. package/esm/deps/jsr.io/@std/path/1.0.8/_common/common.d.ts +0 -2
  248. package/esm/deps/jsr.io/@std/path/1.0.8/_common/common.d.ts.map +0 -1
  249. package/esm/deps/jsr.io/@std/path/1.0.8/_common/common.js +0 -23
  250. package/esm/deps/jsr.io/@std/path/1.0.8/_common/dirname.d.ts +0 -2
  251. package/esm/deps/jsr.io/@std/path/1.0.8/_common/dirname.d.ts.map +0 -1
  252. package/esm/deps/jsr.io/@std/path/1.0.8/_common/dirname.js +0 -8
  253. package/esm/deps/jsr.io/@std/path/1.0.8/_common/format.d.ts +0 -4
  254. package/esm/deps/jsr.io/@std/path/1.0.8/_common/format.d.ts.map +0 -1
  255. package/esm/deps/jsr.io/@std/path/1.0.8/_common/format.js +0 -19
  256. package/esm/deps/jsr.io/@std/path/1.0.8/_common/from_file_url.d.ts +0 -2
  257. package/esm/deps/jsr.io/@std/path/1.0.8/_common/from_file_url.d.ts.map +0 -1
  258. package/esm/deps/jsr.io/@std/path/1.0.8/_common/from_file_url.js +0 -9
  259. package/esm/deps/jsr.io/@std/path/1.0.8/_common/glob_to_reg_exp.d.ts +0 -35
  260. package/esm/deps/jsr.io/@std/path/1.0.8/_common/glob_to_reg_exp.d.ts.map +0 -1
  261. package/esm/deps/jsr.io/@std/path/1.0.8/_common/glob_to_reg_exp.js +0 -234
  262. package/esm/deps/jsr.io/@std/path/1.0.8/_common/relative.d.ts +0 -2
  263. package/esm/deps/jsr.io/@std/path/1.0.8/_common/relative.d.ts.map +0 -1
  264. package/esm/deps/jsr.io/@std/path/1.0.8/_common/relative.js +0 -9
  265. package/esm/deps/jsr.io/@std/path/1.0.8/common.d.ts +0 -28
  266. package/esm/deps/jsr.io/@std/path/1.0.8/common.d.ts.map +0 -1
  267. package/esm/deps/jsr.io/@std/path/1.0.8/common.js +0 -33
  268. package/esm/deps/jsr.io/@std/path/1.0.8/constants.d.ts +0 -15
  269. package/esm/deps/jsr.io/@std/path/1.0.8/constants.d.ts.map +0 -1
  270. package/esm/deps/jsr.io/@std/path/1.0.8/constants.js +0 -17
  271. package/esm/deps/jsr.io/@std/path/1.0.8/dirname.d.ts +0 -23
  272. package/esm/deps/jsr.io/@std/path/1.0.8/dirname.d.ts.map +0 -1
  273. package/esm/deps/jsr.io/@std/path/1.0.8/dirname.js +0 -29
  274. package/esm/deps/jsr.io/@std/path/1.0.8/format.d.ts +0 -22
  275. package/esm/deps/jsr.io/@std/path/1.0.8/format.d.ts.map +0 -1
  276. package/esm/deps/jsr.io/@std/path/1.0.8/format.js +0 -27
  277. package/esm/deps/jsr.io/@std/path/1.0.8/from_file_url.d.ts +0 -22
  278. package/esm/deps/jsr.io/@std/path/1.0.8/from_file_url.d.ts.map +0 -1
  279. package/esm/deps/jsr.io/@std/path/1.0.8/from_file_url.js +0 -28
  280. package/esm/deps/jsr.io/@std/path/1.0.8/glob_to_regexp.d.ts +0 -77
  281. package/esm/deps/jsr.io/@std/path/1.0.8/glob_to_regexp.d.ts.map +0 -1
  282. package/esm/deps/jsr.io/@std/path/1.0.8/glob_to_regexp.js +0 -83
  283. package/esm/deps/jsr.io/@std/path/1.0.8/is_glob.d.ts +0 -17
  284. package/esm/deps/jsr.io/@std/path/1.0.8/is_glob.d.ts.map +0 -1
  285. package/esm/deps/jsr.io/@std/path/1.0.8/is_glob.js +0 -42
  286. package/esm/deps/jsr.io/@std/path/1.0.8/join_globs.d.ts +0 -28
  287. package/esm/deps/jsr.io/@std/path/1.0.8/join_globs.d.ts.map +0 -1
  288. package/esm/deps/jsr.io/@std/path/1.0.8/join_globs.js +0 -34
  289. package/esm/deps/jsr.io/@std/path/1.0.8/mod.d.ts +0 -54
  290. package/esm/deps/jsr.io/@std/path/1.0.8/mod.d.ts.map +0 -1
  291. package/esm/deps/jsr.io/@std/path/1.0.8/mod.js +0 -57
  292. package/esm/deps/jsr.io/@std/path/1.0.8/normalize.d.ts +0 -27
  293. package/esm/deps/jsr.io/@std/path/1.0.8/normalize.d.ts.map +0 -1
  294. package/esm/deps/jsr.io/@std/path/1.0.8/normalize.js +0 -33
  295. package/esm/deps/jsr.io/@std/path/1.0.8/normalize_glob.d.ts +0 -29
  296. package/esm/deps/jsr.io/@std/path/1.0.8/normalize_glob.d.ts.map +0 -1
  297. package/esm/deps/jsr.io/@std/path/1.0.8/normalize_glob.js +0 -35
  298. package/esm/deps/jsr.io/@std/path/1.0.8/parse.d.ts +0 -35
  299. package/esm/deps/jsr.io/@std/path/1.0.8/parse.d.ts.map +0 -1
  300. package/esm/deps/jsr.io/@std/path/1.0.8/parse.js +0 -39
  301. package/esm/deps/jsr.io/@std/path/1.0.8/posix/constants.d.ts +0 -13
  302. package/esm/deps/jsr.io/@std/path/1.0.8/posix/constants.d.ts.map +0 -1
  303. package/esm/deps/jsr.io/@std/path/1.0.8/posix/constants.js +0 -14
  304. package/esm/deps/jsr.io/@std/path/1.0.8/posix/dirname.d.ts +0 -32
  305. package/esm/deps/jsr.io/@std/path/1.0.8/posix/dirname.d.ts.map +0 -1
  306. package/esm/deps/jsr.io/@std/path/1.0.8/posix/dirname.js +0 -62
  307. package/esm/deps/jsr.io/@std/path/1.0.8/posix/format.d.ts +0 -24
  308. package/esm/deps/jsr.io/@std/path/1.0.8/posix/format.d.ts.map +0 -1
  309. package/esm/deps/jsr.io/@std/path/1.0.8/posix/format.js +0 -28
  310. package/esm/deps/jsr.io/@std/path/1.0.8/posix/from_file_url.d.ts +0 -16
  311. package/esm/deps/jsr.io/@std/path/1.0.8/posix/from_file_url.d.ts.map +0 -1
  312. package/esm/deps/jsr.io/@std/path/1.0.8/posix/from_file_url.js +0 -21
  313. package/esm/deps/jsr.io/@std/path/1.0.8/posix/glob_to_regexp.d.ts +0 -72
  314. package/esm/deps/jsr.io/@std/path/1.0.8/posix/glob_to_regexp.d.ts.map +0 -1
  315. package/esm/deps/jsr.io/@std/path/1.0.8/posix/glob_to_regexp.js +0 -82
  316. package/esm/deps/jsr.io/@std/path/1.0.8/posix/join_globs.d.ts +0 -20
  317. package/esm/deps/jsr.io/@std/path/1.0.8/posix/join_globs.d.ts.map +0 -1
  318. package/esm/deps/jsr.io/@std/path/1.0.8/posix/join_globs.js +0 -40
  319. package/esm/deps/jsr.io/@std/path/1.0.8/posix/normalize_glob.d.ts +0 -20
  320. package/esm/deps/jsr.io/@std/path/1.0.8/posix/normalize_glob.d.ts.map +0 -1
  321. package/esm/deps/jsr.io/@std/path/1.0.8/posix/normalize_glob.js +0 -32
  322. package/esm/deps/jsr.io/@std/path/1.0.8/posix/parse.d.ts +0 -25
  323. package/esm/deps/jsr.io/@std/path/1.0.8/posix/parse.d.ts.map +0 -1
  324. package/esm/deps/jsr.io/@std/path/1.0.8/posix/parse.js +0 -115
  325. package/esm/deps/jsr.io/@std/path/1.0.8/posix/relative.d.ts +0 -20
  326. package/esm/deps/jsr.io/@std/path/1.0.8/posix/relative.d.ts.map +0 -1
  327. package/esm/deps/jsr.io/@std/path/1.0.8/posix/relative.js +0 -106
  328. package/esm/deps/jsr.io/@std/path/1.0.8/posix/resolve.d.ts +0 -17
  329. package/esm/deps/jsr.io/@std/path/1.0.8/posix/resolve.d.ts.map +0 -1
  330. package/esm/deps/jsr.io/@std/path/1.0.8/posix/resolve.js +0 -59
  331. package/esm/deps/jsr.io/@std/path/1.0.8/posix/to_namespaced_path.d.ts +0 -16
  332. package/esm/deps/jsr.io/@std/path/1.0.8/posix/to_namespaced_path.d.ts.map +0 -1
  333. package/esm/deps/jsr.io/@std/path/1.0.8/posix/to_namespaced_path.js +0 -20
  334. package/esm/deps/jsr.io/@std/path/1.0.8/relative.d.ts +0 -24
  335. package/esm/deps/jsr.io/@std/path/1.0.8/relative.d.ts.map +0 -1
  336. package/esm/deps/jsr.io/@std/path/1.0.8/relative.js +0 -30
  337. package/esm/deps/jsr.io/@std/path/1.0.8/resolve.d.ts +0 -22
  338. package/esm/deps/jsr.io/@std/path/1.0.8/resolve.d.ts.map +0 -1
  339. package/esm/deps/jsr.io/@std/path/1.0.8/resolve.js +0 -30
  340. package/esm/deps/jsr.io/@std/path/1.0.8/to_namespaced_path.d.ts +0 -21
  341. package/esm/deps/jsr.io/@std/path/1.0.8/to_namespaced_path.d.ts.map +0 -1
  342. package/esm/deps/jsr.io/@std/path/1.0.8/to_namespaced_path.js +0 -29
  343. package/esm/deps/jsr.io/@std/path/1.0.8/types.d.ts +0 -38
  344. package/esm/deps/jsr.io/@std/path/1.0.8/types.d.ts.map +0 -1
  345. package/esm/deps/jsr.io/@std/path/1.0.8/types.js +0 -3
  346. package/esm/deps/jsr.io/@std/path/1.0.8/windows/constants.d.ts +0 -13
  347. package/esm/deps/jsr.io/@std/path/1.0.8/windows/constants.d.ts.map +0 -1
  348. package/esm/deps/jsr.io/@std/path/1.0.8/windows/constants.js +0 -14
  349. package/esm/deps/jsr.io/@std/path/1.0.8/windows/dirname.d.ts +0 -20
  350. package/esm/deps/jsr.io/@std/path/1.0.8/windows/dirname.d.ts.map +0 -1
  351. package/esm/deps/jsr.io/@std/path/1.0.8/windows/dirname.js +0 -112
  352. package/esm/deps/jsr.io/@std/path/1.0.8/windows/format.d.ts +0 -24
  353. package/esm/deps/jsr.io/@std/path/1.0.8/windows/format.d.ts.map +0 -1
  354. package/esm/deps/jsr.io/@std/path/1.0.8/windows/format.js +0 -28
  355. package/esm/deps/jsr.io/@std/path/1.0.8/windows/from_file_url.d.ts +0 -18
  356. package/esm/deps/jsr.io/@std/path/1.0.8/windows/from_file_url.d.ts.map +0 -1
  357. package/esm/deps/jsr.io/@std/path/1.0.8/windows/from_file_url.js +0 -30
  358. package/esm/deps/jsr.io/@std/path/1.0.8/windows/glob_to_regexp.d.ts +0 -71
  359. package/esm/deps/jsr.io/@std/path/1.0.8/windows/glob_to_regexp.d.ts.map +0 -1
  360. package/esm/deps/jsr.io/@std/path/1.0.8/windows/glob_to_regexp.js +0 -82
  361. package/esm/deps/jsr.io/@std/path/1.0.8/windows/join_globs.d.ts +0 -21
  362. package/esm/deps/jsr.io/@std/path/1.0.8/windows/join_globs.d.ts.map +0 -1
  363. package/esm/deps/jsr.io/@std/path/1.0.8/windows/join_globs.js +0 -41
  364. package/esm/deps/jsr.io/@std/path/1.0.8/windows/normalize_glob.d.ts +0 -20
  365. package/esm/deps/jsr.io/@std/path/1.0.8/windows/normalize_glob.d.ts.map +0 -1
  366. package/esm/deps/jsr.io/@std/path/1.0.8/windows/normalize_glob.js +0 -32
  367. package/esm/deps/jsr.io/@std/path/1.0.8/windows/parse.d.ts +0 -25
  368. package/esm/deps/jsr.io/@std/path/1.0.8/windows/parse.d.ts.map +0 -1
  369. package/esm/deps/jsr.io/@std/path/1.0.8/windows/parse.js +0 -176
  370. package/esm/deps/jsr.io/@std/path/1.0.8/windows/relative.d.ts +0 -23
  371. package/esm/deps/jsr.io/@std/path/1.0.8/windows/relative.d.ts.map +0 -1
  372. package/esm/deps/jsr.io/@std/path/1.0.8/windows/relative.js +0 -131
  373. package/esm/deps/jsr.io/@std/path/1.0.8/windows/resolve.d.ts +0 -17
  374. package/esm/deps/jsr.io/@std/path/1.0.8/windows/resolve.d.ts.map +0 -1
  375. package/esm/deps/jsr.io/@std/path/1.0.8/windows/resolve.js +0 -154
  376. package/esm/deps/jsr.io/@std/path/1.0.8/windows/to_namespaced_path.d.ts +0 -17
  377. package/esm/deps/jsr.io/@std/path/1.0.8/windows/to_namespaced_path.d.ts.map +0 -1
  378. package/esm/deps/jsr.io/@std/path/1.0.8/windows/to_namespaced_path.js +0 -49
  379. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/mod.d.ts +0 -2
  380. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/mod.d.ts.map +0 -1
  381. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/mod.js +0 -1
  382. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/utils/uint8.d.ts +0 -2
  383. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/utils/uint8.d.ts.map +0 -1
  384. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/utils/uint8.js +0 -10
  385. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/deflate.d.ts +0 -28
  386. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/deflate.d.ts.map +0 -1
  387. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/deflate.js +0 -135
  388. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/inflate.d.ts +0 -24
  389. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/inflate.d.ts.map +0 -1
  390. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/inflate.js +0 -172
  391. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/mod.d.ts +0 -3
  392. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/mod.d.ts.map +0 -1
  393. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/mod.js +0 -2
  394. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/adler32.d.ts +0 -2
  395. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/adler32.d.ts.map +0 -1
  396. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/adler32.js +0 -19
  397. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/crc32.d.ts +0 -3
  398. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/crc32.d.ts.map +0 -1
  399. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/crc32.js +0 -25
  400. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/deflate.d.ts +0 -79
  401. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/deflate.d.ts.map +0 -1
  402. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/deflate.js +0 -1941
  403. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/gzheader.d.ts +0 -13
  404. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/gzheader.d.ts.map +0 -1
  405. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/gzheader.js +0 -85
  406. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/inffast.d.ts +0 -2
  407. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/inffast.d.ts.map +0 -1
  408. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/inffast.js +0 -321
  409. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/inflate.d.ts +0 -48
  410. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/inflate.d.ts.map +0 -1
  411. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/inflate.js +0 -1660
  412. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/inftrees.d.ts +0 -2
  413. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/inftrees.d.ts.map +0 -1
  414. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/inftrees.js +0 -355
  415. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/messages.d.ts +0 -13
  416. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/messages.d.ts.map +0 -1
  417. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/messages.js +0 -11
  418. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/status.d.ts +0 -31
  419. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/status.d.ts.map +0 -1
  420. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/status.js +0 -42
  421. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/trees.d.ts +0 -6
  422. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/trees.d.ts.map +0 -1
  423. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/trees.js +0 -1107
  424. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/zstream.d.ts +0 -15
  425. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/zstream.d.ts.map +0 -1
  426. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/zstream.js +0 -86
  427. package/esm/deps/raw.githubusercontent.com/MTKruto/socks5/main/client.d.ts +0 -45
  428. package/esm/deps/raw.githubusercontent.com/MTKruto/socks5/main/client.d.ts.map +0 -1
  429. package/esm/deps/raw.githubusercontent.com/MTKruto/socks5/main/client.js +0 -253
  430. package/esm/deps/raw.githubusercontent.com/MTKruto/socks5/main/deps.d.ts +0 -3
  431. package/esm/deps/raw.githubusercontent.com/MTKruto/socks5/main/deps.d.ts.map +0 -1
  432. package/esm/deps/raw.githubusercontent.com/MTKruto/socks5/main/deps.js +0 -1
  433. package/esm/deps/raw.githubusercontent.com/MTKruto/socks5/main/utils.d.ts +0 -3
  434. package/esm/deps/raw.githubusercontent.com/MTKruto/socks5/main/utils.d.ts.map +0 -1
  435. package/esm/deps/raw.githubusercontent.com/MTKruto/socks5/main/utils.js +0 -13
  436. package/script/deps/deno.land/std@0.224.0/io/types.d.ts +0 -95
  437. package/script/deps/deno.land/std@0.224.0/io/types.d.ts.map +0 -1
  438. package/script/deps/deno.land/std@0.224.0/io/types.js +0 -4
  439. package/script/deps/deno.land/std@0.224.0/io/write_all.d.ts +0 -39
  440. package/script/deps/deno.land/std@0.224.0/io/write_all.d.ts.map +0 -1
  441. package/script/deps/deno.land/std@0.224.0/io/write_all.js +0 -53
  442. package/script/deps/deno.land/x/html_parser@v0.1.3/src/DomHandler.d.ts +0 -84
  443. package/script/deps/deno.land/x/html_parser@v0.1.3/src/DomHandler.d.ts.map +0 -1
  444. package/script/deps/deno.land/x/html_parser@v0.1.3/src/DomHandler.js +0 -207
  445. package/script/deps/deno.land/x/html_parser@v0.1.3/src/DomSerializer.d.ts +0 -51
  446. package/script/deps/deno.land/x/html_parser@v0.1.3/src/DomSerializer.d.ts.map +0 -1
  447. package/script/deps/deno.land/x/html_parser@v0.1.3/src/DomSerializer.js +0 -301
  448. package/script/deps/deno.land/x/html_parser@v0.1.3/src/ElementType.d.ts +0 -48
  449. package/script/deps/deno.land/x/html_parser@v0.1.3/src/ElementType.d.ts.map +0 -1
  450. package/script/deps/deno.land/x/html_parser@v0.1.3/src/ElementType.js +0 -55
  451. package/script/deps/deno.land/x/html_parser@v0.1.3/src/FeedHandler.d.ts +0 -67
  452. package/script/deps/deno.land/x/html_parser@v0.1.3/src/FeedHandler.d.ts.map +0 -1
  453. package/script/deps/deno.land/x/html_parser@v0.1.3/src/FeedHandler.js +0 -222
  454. package/script/deps/deno.land/x/html_parser@v0.1.3/src/Node.d.ts +0 -169
  455. package/script/deps/deno.land/x/html_parser@v0.1.3/src/Node.d.ts.map +0 -1
  456. package/script/deps/deno.land/x/html_parser@v0.1.3/src/Node.js +0 -404
  457. package/script/deps/deno.land/x/html_parser@v0.1.3/src/Parser.d.ts +0 -160
  458. package/script/deps/deno.land/x/html_parser@v0.1.3/src/Parser.d.ts.map +0 -1
  459. package/script/deps/deno.land/x/html_parser@v0.1.3/src/Parser.js +0 -438
  460. package/script/deps/deno.land/x/html_parser@v0.1.3/src/Tokenizer.d.ts +0 -182
  461. package/script/deps/deno.land/x/html_parser@v0.1.3/src/Tokenizer.d.ts.map +0 -1
  462. package/script/deps/deno.land/x/html_parser@v0.1.3/src/Tokenizer.js +0 -1052
  463. package/script/deps/deno.land/x/html_parser@v0.1.3/src/mod.d.ts +0 -43
  464. package/script/deps/deno.land/x/html_parser@v0.1.3/src/mod.d.ts.map +0 -1
  465. package/script/deps/deno.land/x/html_parser@v0.1.3/src/mod.js +0 -88
  466. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/decode.d.ts +0 -12
  467. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/decode.d.ts.map +0 -1
  468. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/decode.js +0 -128
  469. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/decode_codepoint.d.ts +0 -2
  470. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/decode_codepoint.d.ts.map +0 -1
  471. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/decode_codepoint.js +0 -30
  472. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/encode.d.ts +0 -47
  473. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/encode.d.ts.map +0 -1
  474. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/encode.js +0 -129
  475. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/maps/decode.d.ts +0 -32
  476. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/maps/decode.d.ts.map +0 -1
  477. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/maps/decode.js +0 -32
  478. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/maps/entities.d.ts +0 -2129
  479. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/maps/entities.d.ts.map +0 -1
  480. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/maps/entities.js +0 -2129
  481. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/maps/legacy.d.ts +0 -110
  482. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/maps/legacy.d.ts.map +0 -1
  483. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/maps/legacy.js +0 -110
  484. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/maps/xml.d.ts +0 -9
  485. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/maps/xml.d.ts.map +0 -1
  486. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/maps/xml.js +0 -3
  487. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/mod.d.ts +0 -91
  488. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/mod.d.ts.map +0 -1
  489. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/mod.js +0 -114
  490. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/helpers.d.ts +0 -51
  491. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/helpers.d.ts.map +0 -1
  492. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/helpers.js +0 -134
  493. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/legacy.d.ts +0 -47
  494. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/legacy.d.ts.map +0 -1
  495. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/legacy.js +0 -117
  496. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/manipulation.d.ts +0 -43
  497. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/manipulation.d.ts.map +0 -1
  498. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/manipulation.js +0 -128
  499. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/mod.d.ts +0 -7
  500. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/mod.d.ts.map +0 -1
  501. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/mod.js +0 -22
  502. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/querying.d.ts +0 -55
  503. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/querying.d.ts.map +0 -1
  504. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/querying.js +0 -118
  505. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/stringify.d.ts +0 -41
  506. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/stringify.d.ts.map +0 -1
  507. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/stringify.js +0 -85
  508. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/traversal.d.ts +0 -59
  509. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/traversal.d.ts.map +0 -1
  510. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/traversal.js +0 -111
  511. package/script/deps/deno.land/x/tgcrypto@0.4.1/mod.d.ts.map +0 -1
  512. package/script/deps/deno.land/x/tgcrypto@0.4.1/tgcrypto.d.ts.map +0 -1
  513. package/script/deps/jsr.io/@std/assert/1.0.7/equal.d.ts.map +0 -1
  514. package/script/deps/jsr.io/@std/assert/1.0.7/equal.js +0 -139
  515. package/script/deps/jsr.io/@std/media-types/1.0.3/_db.d.ts +0 -8
  516. package/script/deps/jsr.io/@std/media-types/1.0.3/type_by_extension.d.ts.map +0 -1
  517. package/script/deps/jsr.io/@std/path/1.0.8/_common/common.d.ts +0 -2
  518. package/script/deps/jsr.io/@std/path/1.0.8/_common/common.d.ts.map +0 -1
  519. package/script/deps/jsr.io/@std/path/1.0.8/_common/common.js +0 -26
  520. package/script/deps/jsr.io/@std/path/1.0.8/_common/dirname.d.ts +0 -2
  521. package/script/deps/jsr.io/@std/path/1.0.8/_common/dirname.d.ts.map +0 -1
  522. package/script/deps/jsr.io/@std/path/1.0.8/_common/dirname.js +0 -11
  523. package/script/deps/jsr.io/@std/path/1.0.8/_common/format.d.ts +0 -4
  524. package/script/deps/jsr.io/@std/path/1.0.8/_common/format.d.ts.map +0 -1
  525. package/script/deps/jsr.io/@std/path/1.0.8/_common/format.js +0 -23
  526. package/script/deps/jsr.io/@std/path/1.0.8/_common/from_file_url.d.ts +0 -2
  527. package/script/deps/jsr.io/@std/path/1.0.8/_common/from_file_url.d.ts.map +0 -1
  528. package/script/deps/jsr.io/@std/path/1.0.8/_common/from_file_url.js +0 -12
  529. package/script/deps/jsr.io/@std/path/1.0.8/_common/glob_to_reg_exp.d.ts +0 -35
  530. package/script/deps/jsr.io/@std/path/1.0.8/_common/glob_to_reg_exp.d.ts.map +0 -1
  531. package/script/deps/jsr.io/@std/path/1.0.8/_common/glob_to_reg_exp.js +0 -237
  532. package/script/deps/jsr.io/@std/path/1.0.8/_common/relative.d.ts +0 -2
  533. package/script/deps/jsr.io/@std/path/1.0.8/_common/relative.d.ts.map +0 -1
  534. package/script/deps/jsr.io/@std/path/1.0.8/_common/relative.js +0 -12
  535. package/script/deps/jsr.io/@std/path/1.0.8/common.d.ts +0 -28
  536. package/script/deps/jsr.io/@std/path/1.0.8/common.d.ts.map +0 -1
  537. package/script/deps/jsr.io/@std/path/1.0.8/common.js +0 -36
  538. package/script/deps/jsr.io/@std/path/1.0.8/constants.d.ts +0 -15
  539. package/script/deps/jsr.io/@std/path/1.0.8/constants.d.ts.map +0 -1
  540. package/script/deps/jsr.io/@std/path/1.0.8/constants.js +0 -20
  541. package/script/deps/jsr.io/@std/path/1.0.8/dirname.d.ts +0 -23
  542. package/script/deps/jsr.io/@std/path/1.0.8/dirname.d.ts.map +0 -1
  543. package/script/deps/jsr.io/@std/path/1.0.8/dirname.js +0 -32
  544. package/script/deps/jsr.io/@std/path/1.0.8/format.d.ts +0 -22
  545. package/script/deps/jsr.io/@std/path/1.0.8/format.d.ts.map +0 -1
  546. package/script/deps/jsr.io/@std/path/1.0.8/format.js +0 -30
  547. package/script/deps/jsr.io/@std/path/1.0.8/from_file_url.d.ts +0 -22
  548. package/script/deps/jsr.io/@std/path/1.0.8/from_file_url.d.ts.map +0 -1
  549. package/script/deps/jsr.io/@std/path/1.0.8/from_file_url.js +0 -31
  550. package/script/deps/jsr.io/@std/path/1.0.8/glob_to_regexp.d.ts +0 -77
  551. package/script/deps/jsr.io/@std/path/1.0.8/glob_to_regexp.d.ts.map +0 -1
  552. package/script/deps/jsr.io/@std/path/1.0.8/glob_to_regexp.js +0 -86
  553. package/script/deps/jsr.io/@std/path/1.0.8/is_glob.d.ts +0 -17
  554. package/script/deps/jsr.io/@std/path/1.0.8/is_glob.d.ts.map +0 -1
  555. package/script/deps/jsr.io/@std/path/1.0.8/is_glob.js +0 -45
  556. package/script/deps/jsr.io/@std/path/1.0.8/join_globs.d.ts +0 -28
  557. package/script/deps/jsr.io/@std/path/1.0.8/join_globs.d.ts.map +0 -1
  558. package/script/deps/jsr.io/@std/path/1.0.8/join_globs.js +0 -37
  559. package/script/deps/jsr.io/@std/path/1.0.8/mod.d.ts +0 -54
  560. package/script/deps/jsr.io/@std/path/1.0.8/mod.d.ts.map +0 -1
  561. package/script/deps/jsr.io/@std/path/1.0.8/mod.js +0 -73
  562. package/script/deps/jsr.io/@std/path/1.0.8/normalize.d.ts +0 -27
  563. package/script/deps/jsr.io/@std/path/1.0.8/normalize.d.ts.map +0 -1
  564. package/script/deps/jsr.io/@std/path/1.0.8/normalize.js +0 -36
  565. package/script/deps/jsr.io/@std/path/1.0.8/normalize_glob.d.ts +0 -29
  566. package/script/deps/jsr.io/@std/path/1.0.8/normalize_glob.d.ts.map +0 -1
  567. package/script/deps/jsr.io/@std/path/1.0.8/normalize_glob.js +0 -38
  568. package/script/deps/jsr.io/@std/path/1.0.8/parse.d.ts +0 -35
  569. package/script/deps/jsr.io/@std/path/1.0.8/parse.d.ts.map +0 -1
  570. package/script/deps/jsr.io/@std/path/1.0.8/parse.js +0 -42
  571. package/script/deps/jsr.io/@std/path/1.0.8/posix/constants.d.ts +0 -13
  572. package/script/deps/jsr.io/@std/path/1.0.8/posix/constants.d.ts.map +0 -1
  573. package/script/deps/jsr.io/@std/path/1.0.8/posix/constants.js +0 -17
  574. package/script/deps/jsr.io/@std/path/1.0.8/posix/dirname.d.ts +0 -32
  575. package/script/deps/jsr.io/@std/path/1.0.8/posix/dirname.d.ts.map +0 -1
  576. package/script/deps/jsr.io/@std/path/1.0.8/posix/dirname.js +0 -65
  577. package/script/deps/jsr.io/@std/path/1.0.8/posix/format.d.ts +0 -24
  578. package/script/deps/jsr.io/@std/path/1.0.8/posix/format.d.ts.map +0 -1
  579. package/script/deps/jsr.io/@std/path/1.0.8/posix/format.js +0 -31
  580. package/script/deps/jsr.io/@std/path/1.0.8/posix/from_file_url.d.ts +0 -16
  581. package/script/deps/jsr.io/@std/path/1.0.8/posix/from_file_url.d.ts.map +0 -1
  582. package/script/deps/jsr.io/@std/path/1.0.8/posix/from_file_url.js +0 -24
  583. package/script/deps/jsr.io/@std/path/1.0.8/posix/glob_to_regexp.d.ts +0 -72
  584. package/script/deps/jsr.io/@std/path/1.0.8/posix/glob_to_regexp.d.ts.map +0 -1
  585. package/script/deps/jsr.io/@std/path/1.0.8/posix/glob_to_regexp.js +0 -85
  586. package/script/deps/jsr.io/@std/path/1.0.8/posix/join_globs.d.ts +0 -20
  587. package/script/deps/jsr.io/@std/path/1.0.8/posix/join_globs.d.ts.map +0 -1
  588. package/script/deps/jsr.io/@std/path/1.0.8/posix/join_globs.js +0 -43
  589. package/script/deps/jsr.io/@std/path/1.0.8/posix/normalize_glob.d.ts +0 -20
  590. package/script/deps/jsr.io/@std/path/1.0.8/posix/normalize_glob.d.ts.map +0 -1
  591. package/script/deps/jsr.io/@std/path/1.0.8/posix/normalize_glob.js +0 -35
  592. package/script/deps/jsr.io/@std/path/1.0.8/posix/parse.d.ts +0 -25
  593. package/script/deps/jsr.io/@std/path/1.0.8/posix/parse.d.ts.map +0 -1
  594. package/script/deps/jsr.io/@std/path/1.0.8/posix/parse.js +0 -118
  595. package/script/deps/jsr.io/@std/path/1.0.8/posix/relative.d.ts +0 -20
  596. package/script/deps/jsr.io/@std/path/1.0.8/posix/relative.d.ts.map +0 -1
  597. package/script/deps/jsr.io/@std/path/1.0.8/posix/relative.js +0 -109
  598. package/script/deps/jsr.io/@std/path/1.0.8/posix/resolve.d.ts +0 -17
  599. package/script/deps/jsr.io/@std/path/1.0.8/posix/resolve.d.ts.map +0 -1
  600. package/script/deps/jsr.io/@std/path/1.0.8/posix/resolve.js +0 -85
  601. package/script/deps/jsr.io/@std/path/1.0.8/posix/to_namespaced_path.d.ts +0 -16
  602. package/script/deps/jsr.io/@std/path/1.0.8/posix/to_namespaced_path.d.ts.map +0 -1
  603. package/script/deps/jsr.io/@std/path/1.0.8/posix/to_namespaced_path.js +0 -23
  604. package/script/deps/jsr.io/@std/path/1.0.8/relative.d.ts +0 -24
  605. package/script/deps/jsr.io/@std/path/1.0.8/relative.d.ts.map +0 -1
  606. package/script/deps/jsr.io/@std/path/1.0.8/relative.js +0 -33
  607. package/script/deps/jsr.io/@std/path/1.0.8/resolve.d.ts +0 -22
  608. package/script/deps/jsr.io/@std/path/1.0.8/resolve.d.ts.map +0 -1
  609. package/script/deps/jsr.io/@std/path/1.0.8/resolve.js +0 -33
  610. package/script/deps/jsr.io/@std/path/1.0.8/to_namespaced_path.d.ts +0 -21
  611. package/script/deps/jsr.io/@std/path/1.0.8/to_namespaced_path.d.ts.map +0 -1
  612. package/script/deps/jsr.io/@std/path/1.0.8/to_namespaced_path.js +0 -32
  613. package/script/deps/jsr.io/@std/path/1.0.8/types.d.ts +0 -38
  614. package/script/deps/jsr.io/@std/path/1.0.8/types.d.ts.map +0 -1
  615. package/script/deps/jsr.io/@std/path/1.0.8/types.js +0 -4
  616. package/script/deps/jsr.io/@std/path/1.0.8/windows/constants.d.ts +0 -13
  617. package/script/deps/jsr.io/@std/path/1.0.8/windows/constants.d.ts.map +0 -1
  618. package/script/deps/jsr.io/@std/path/1.0.8/windows/constants.js +0 -17
  619. package/script/deps/jsr.io/@std/path/1.0.8/windows/dirname.d.ts +0 -20
  620. package/script/deps/jsr.io/@std/path/1.0.8/windows/dirname.d.ts.map +0 -1
  621. package/script/deps/jsr.io/@std/path/1.0.8/windows/dirname.js +0 -115
  622. package/script/deps/jsr.io/@std/path/1.0.8/windows/format.d.ts +0 -24
  623. package/script/deps/jsr.io/@std/path/1.0.8/windows/format.d.ts.map +0 -1
  624. package/script/deps/jsr.io/@std/path/1.0.8/windows/format.js +0 -31
  625. package/script/deps/jsr.io/@std/path/1.0.8/windows/from_file_url.d.ts +0 -18
  626. package/script/deps/jsr.io/@std/path/1.0.8/windows/from_file_url.d.ts.map +0 -1
  627. package/script/deps/jsr.io/@std/path/1.0.8/windows/from_file_url.js +0 -33
  628. package/script/deps/jsr.io/@std/path/1.0.8/windows/glob_to_regexp.d.ts +0 -71
  629. package/script/deps/jsr.io/@std/path/1.0.8/windows/glob_to_regexp.d.ts.map +0 -1
  630. package/script/deps/jsr.io/@std/path/1.0.8/windows/glob_to_regexp.js +0 -85
  631. package/script/deps/jsr.io/@std/path/1.0.8/windows/join_globs.d.ts +0 -21
  632. package/script/deps/jsr.io/@std/path/1.0.8/windows/join_globs.d.ts.map +0 -1
  633. package/script/deps/jsr.io/@std/path/1.0.8/windows/join_globs.js +0 -44
  634. package/script/deps/jsr.io/@std/path/1.0.8/windows/normalize_glob.d.ts +0 -20
  635. package/script/deps/jsr.io/@std/path/1.0.8/windows/normalize_glob.d.ts.map +0 -1
  636. package/script/deps/jsr.io/@std/path/1.0.8/windows/normalize_glob.js +0 -35
  637. package/script/deps/jsr.io/@std/path/1.0.8/windows/parse.d.ts +0 -25
  638. package/script/deps/jsr.io/@std/path/1.0.8/windows/parse.d.ts.map +0 -1
  639. package/script/deps/jsr.io/@std/path/1.0.8/windows/parse.js +0 -179
  640. package/script/deps/jsr.io/@std/path/1.0.8/windows/relative.d.ts +0 -23
  641. package/script/deps/jsr.io/@std/path/1.0.8/windows/relative.d.ts.map +0 -1
  642. package/script/deps/jsr.io/@std/path/1.0.8/windows/relative.js +0 -134
  643. package/script/deps/jsr.io/@std/path/1.0.8/windows/resolve.d.ts +0 -17
  644. package/script/deps/jsr.io/@std/path/1.0.8/windows/resolve.d.ts.map +0 -1
  645. package/script/deps/jsr.io/@std/path/1.0.8/windows/resolve.js +0 -180
  646. package/script/deps/jsr.io/@std/path/1.0.8/windows/to_namespaced_path.d.ts +0 -17
  647. package/script/deps/jsr.io/@std/path/1.0.8/windows/to_namespaced_path.d.ts.map +0 -1
  648. package/script/deps/jsr.io/@std/path/1.0.8/windows/to_namespaced_path.js +0 -52
  649. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/mod.d.ts +0 -2
  650. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/mod.d.ts.map +0 -1
  651. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/mod.js +0 -6
  652. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/utils/uint8.d.ts +0 -2
  653. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/utils/uint8.d.ts.map +0 -1
  654. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/utils/uint8.js +0 -13
  655. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/deflate.d.ts +0 -28
  656. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/deflate.d.ts.map +0 -1
  657. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/deflate.js +0 -166
  658. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/inflate.d.ts +0 -24
  659. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/inflate.d.ts.map +0 -1
  660. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/inflate.js +0 -202
  661. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/mod.d.ts +0 -3
  662. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/mod.d.ts.map +0 -1
  663. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/mod.js +0 -18
  664. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/adler32.d.ts +0 -2
  665. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/adler32.d.ts.map +0 -1
  666. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/adler32.js +0 -22
  667. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/crc32.d.ts +0 -3
  668. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/crc32.d.ts.map +0 -1
  669. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/crc32.js +0 -29
  670. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/deflate.d.ts +0 -79
  671. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/deflate.d.ts.map +0 -1
  672. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/deflate.js +0 -1976
  673. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/gzheader.d.ts +0 -13
  674. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/gzheader.d.ts.map +0 -1
  675. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/gzheader.js +0 -88
  676. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/inffast.d.ts +0 -2
  677. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/inffast.d.ts.map +0 -1
  678. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/inffast.js +0 -324
  679. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/inflate.d.ts +0 -48
  680. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/inflate.d.ts.map +0 -1
  681. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/inflate.js +0 -1676
  682. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/inftrees.d.ts +0 -2
  683. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/inftrees.d.ts.map +0 -1
  684. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/inftrees.js +0 -358
  685. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/messages.d.ts +0 -13
  686. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/messages.d.ts.map +0 -1
  687. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/messages.js +0 -14
  688. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/status.d.ts +0 -31
  689. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/status.d.ts.map +0 -1
  690. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/status.js +0 -44
  691. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/trees.d.ts +0 -6
  692. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/trees.d.ts.map +0 -1
  693. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/trees.js +0 -1114
  694. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/zstream.d.ts +0 -15
  695. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/zstream.d.ts.map +0 -1
  696. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/zstream.js +0 -89
  697. package/script/deps/raw.githubusercontent.com/MTKruto/socks5/main/client.d.ts +0 -45
  698. package/script/deps/raw.githubusercontent.com/MTKruto/socks5/main/client.d.ts.map +0 -1
  699. package/script/deps/raw.githubusercontent.com/MTKruto/socks5/main/client.js +0 -280
  700. package/script/deps/raw.githubusercontent.com/MTKruto/socks5/main/deps.d.ts +0 -3
  701. package/script/deps/raw.githubusercontent.com/MTKruto/socks5/main/deps.d.ts.map +0 -1
  702. package/script/deps/raw.githubusercontent.com/MTKruto/socks5/main/deps.js +0 -5
  703. package/script/deps/raw.githubusercontent.com/MTKruto/socks5/main/utils.d.ts +0 -3
  704. package/script/deps/raw.githubusercontent.com/MTKruto/socks5/main/utils.d.ts.map +0 -1
  705. package/script/deps/raw.githubusercontent.com/MTKruto/socks5/main/utils.js +0 -39
  706. /package/esm/deps/{deno.land/x/tgcrypto@0.4.1 → jsr.io/@roj/tgcrypto/0.4.1/dist}/mod.d.ts +0 -0
  707. /package/esm/deps/{deno.land/x/tgcrypto@0.4.1 → jsr.io/@roj/tgcrypto/0.4.1/dist}/mod.js +0 -0
  708. /package/esm/deps/{deno.land/x/tgcrypto@0.4.1 → jsr.io/@roj/tgcrypto/0.4.1/dist}/tgcrypto.d.ts +0 -0
  709. /package/esm/deps/{deno.land/x/tgcrypto@0.4.1 → jsr.io/@roj/tgcrypto/0.4.1/dist}/tgcrypto.js +0 -0
  710. /package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/almost_equals.d.ts +0 -0
  711. /package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/almost_equals.js +0 -0
  712. /package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/array_includes.d.ts +0 -0
  713. /package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/array_includes.js +0 -0
  714. /package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/assert.d.ts +0 -0
  715. /package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/assert.js +0 -0
  716. /package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/assertion_error.d.ts +0 -0
  717. /package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/assertion_error.js +0 -0
  718. /package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/equals.d.ts +0 -0
  719. /package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/equals.js +0 -0
  720. /package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/exists.d.ts +0 -0
  721. /package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/exists.js +0 -0
  722. /package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/fail.d.ts +0 -0
  723. /package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/fail.js +0 -0
  724. /package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/false.d.ts +0 -0
  725. /package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/false.js +0 -0
  726. /package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/greater.d.ts +0 -0
  727. /package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/greater.js +0 -0
  728. /package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/greater_or_equal.d.ts +0 -0
  729. /package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/greater_or_equal.js +0 -0
  730. /package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/instance_of.d.ts +0 -0
  731. /package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/instance_of.js +0 -0
  732. /package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/is_error.d.ts +0 -0
  733. /package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/is_error.js +0 -0
  734. /package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/less.d.ts +0 -0
  735. /package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/less.js +0 -0
  736. /package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/less_or_equal.d.ts +0 -0
  737. /package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/less_or_equal.js +0 -0
  738. /package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/match.d.ts +0 -0
  739. /package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/match.js +0 -0
  740. /package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/mod.d.ts +0 -0
  741. /package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/mod.js +0 -0
  742. /package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/not_equals.d.ts +0 -0
  743. /package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/not_equals.js +0 -0
  744. /package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/not_instance_of.d.ts +0 -0
  745. /package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/not_instance_of.js +0 -0
  746. /package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/not_match.d.ts +0 -0
  747. /package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/not_match.js +0 -0
  748. /package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/not_strict_equals.d.ts +0 -0
  749. /package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/not_strict_equals.js +0 -0
  750. /package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/object_match.d.ts +0 -0
  751. /package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/object_match.js +0 -0
  752. /package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/rejects.d.ts +0 -0
  753. /package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/rejects.js +0 -0
  754. /package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/strict_equals.d.ts +0 -0
  755. /package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/strict_equals.js +0 -0
  756. /package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/string_includes.d.ts +0 -0
  757. /package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/string_includes.js +0 -0
  758. /package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/throws.d.ts +0 -0
  759. /package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/throws.js +0 -0
  760. /package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/unimplemented.d.ts +0 -0
  761. /package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/unimplemented.js +0 -0
  762. /package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/unreachable.d.ts +0 -0
  763. /package/esm/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/unreachable.js +0 -0
  764. /package/esm/deps/jsr.io/@std/bytes/{1.0.3 → 1.0.4}/concat.d.ts +0 -0
  765. /package/esm/deps/jsr.io/@std/bytes/{1.0.3 → 1.0.4}/concat.js +0 -0
  766. /package/esm/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/_db.js +0 -0
  767. /package/esm/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/_util.d.ts +0 -0
  768. /package/esm/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/_util.js +0 -0
  769. /package/esm/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/all_extensions.d.ts +0 -0
  770. /package/esm/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/all_extensions.js +0 -0
  771. /package/esm/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/content_type.d.ts +0 -0
  772. /package/esm/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/content_type.js +0 -0
  773. /package/esm/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/extension.d.ts +0 -0
  774. /package/esm/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/extension.js +0 -0
  775. /package/esm/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/format_media_type.d.ts +0 -0
  776. /package/esm/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/format_media_type.js +0 -0
  777. /package/esm/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/get_charset.d.ts +0 -0
  778. /package/esm/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/get_charset.js +0 -0
  779. /package/esm/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/parse_media_type.d.ts +0 -0
  780. /package/esm/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/parse_media_type.js +0 -0
  781. /package/esm/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/type_by_extension.d.ts +0 -0
  782. /package/esm/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/type_by_extension.js +0 -0
  783. /package/script/deps/{deno.land/x/tgcrypto@0.4.1 → jsr.io/@roj/tgcrypto/0.4.1/dist}/mod.d.ts +0 -0
  784. /package/script/deps/{deno.land/x/tgcrypto@0.4.1 → jsr.io/@roj/tgcrypto/0.4.1/dist}/mod.js +0 -0
  785. /package/script/deps/{deno.land/x/tgcrypto@0.4.1 → jsr.io/@roj/tgcrypto/0.4.1/dist}/tgcrypto.d.ts +0 -0
  786. /package/script/deps/{deno.land/x/tgcrypto@0.4.1 → jsr.io/@roj/tgcrypto/0.4.1/dist}/tgcrypto.js +0 -0
  787. /package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/almost_equals.d.ts +0 -0
  788. /package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/almost_equals.js +0 -0
  789. /package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/array_includes.d.ts +0 -0
  790. /package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/array_includes.js +0 -0
  791. /package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/assert.d.ts +0 -0
  792. /package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/assert.js +0 -0
  793. /package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/assertion_error.d.ts +0 -0
  794. /package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/assertion_error.js +0 -0
  795. /package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/equals.d.ts +0 -0
  796. /package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/equals.js +0 -0
  797. /package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/exists.d.ts +0 -0
  798. /package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/exists.js +0 -0
  799. /package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/fail.d.ts +0 -0
  800. /package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/fail.js +0 -0
  801. /package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/false.d.ts +0 -0
  802. /package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/false.js +0 -0
  803. /package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/greater.d.ts +0 -0
  804. /package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/greater.js +0 -0
  805. /package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/greater_or_equal.d.ts +0 -0
  806. /package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/greater_or_equal.js +0 -0
  807. /package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/instance_of.d.ts +0 -0
  808. /package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/instance_of.js +0 -0
  809. /package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/is_error.d.ts +0 -0
  810. /package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/is_error.js +0 -0
  811. /package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/less.d.ts +0 -0
  812. /package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/less.js +0 -0
  813. /package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/less_or_equal.d.ts +0 -0
  814. /package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/less_or_equal.js +0 -0
  815. /package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/match.d.ts +0 -0
  816. /package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/match.js +0 -0
  817. /package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/mod.d.ts +0 -0
  818. /package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/mod.js +0 -0
  819. /package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/not_equals.d.ts +0 -0
  820. /package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/not_equals.js +0 -0
  821. /package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/not_instance_of.d.ts +0 -0
  822. /package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/not_instance_of.js +0 -0
  823. /package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/not_match.d.ts +0 -0
  824. /package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/not_match.js +0 -0
  825. /package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/not_strict_equals.d.ts +0 -0
  826. /package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/not_strict_equals.js +0 -0
  827. /package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/object_match.d.ts +0 -0
  828. /package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/object_match.js +0 -0
  829. /package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/rejects.d.ts +0 -0
  830. /package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/rejects.js +0 -0
  831. /package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/strict_equals.d.ts +0 -0
  832. /package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/strict_equals.js +0 -0
  833. /package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/string_includes.d.ts +0 -0
  834. /package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/string_includes.js +0 -0
  835. /package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/throws.d.ts +0 -0
  836. /package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/throws.js +0 -0
  837. /package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/unimplemented.d.ts +0 -0
  838. /package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/unimplemented.js +0 -0
  839. /package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/unreachable.d.ts +0 -0
  840. /package/script/deps/jsr.io/@std/assert/{1.0.7 → 1.0.8}/unreachable.js +0 -0
  841. /package/script/deps/jsr.io/@std/bytes/{1.0.3 → 1.0.4}/concat.d.ts +0 -0
  842. /package/script/deps/jsr.io/@std/bytes/{1.0.3 → 1.0.4}/concat.js +0 -0
  843. /package/script/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/_db.js +0 -0
  844. /package/script/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/_util.d.ts +0 -0
  845. /package/script/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/_util.js +0 -0
  846. /package/script/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/all_extensions.d.ts +0 -0
  847. /package/script/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/all_extensions.js +0 -0
  848. /package/script/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/content_type.d.ts +0 -0
  849. /package/script/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/content_type.js +0 -0
  850. /package/script/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/extension.d.ts +0 -0
  851. /package/script/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/extension.js +0 -0
  852. /package/script/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/format_media_type.d.ts +0 -0
  853. /package/script/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/format_media_type.js +0 -0
  854. /package/script/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/get_charset.d.ts +0 -0
  855. /package/script/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/get_charset.js +0 -0
  856. /package/script/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/parse_media_type.d.ts +0 -0
  857. /package/script/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/parse_media_type.js +0 -0
  858. /package/script/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/type_by_extension.d.ts +0 -0
  859. /package/script/deps/jsr.io/@std/media-types/{1.0.3 → 1.1.0}/type_by_extension.js +0 -0
@@ -1,1660 +0,0 @@
1
- import adler32 from "./adler32.js";
2
- import { crc32 } from "./crc32.js";
3
- import inflate_fast from "./inffast.js";
4
- import inflate_table from "./inftrees.js";
5
- const CODES = 0;
6
- const LENS = 1;
7
- const DISTS = 2;
8
- /* Public constants ==========================================================*/
9
- /* ===========================================================================*/
10
- /* Allowed flush values; see deflate() and inflate() below for details */
11
- //const Z_NO_FLUSH = 0;
12
- //const Z_PARTIAL_FLUSH = 1;
13
- //const Z_SYNC_FLUSH = 2;
14
- //const Z_FULL_FLUSH = 3;
15
- const Z_FINISH = 4;
16
- const Z_BLOCK = 5;
17
- const Z_TREES = 6;
18
- /* Return codes for the compression/decompression functions. Negative values
19
- * are errors, positive values are used for special but normal events.
20
- */
21
- const Z_OK = 0;
22
- const Z_STREAM_END = 1;
23
- const Z_NEED_DICT = 2;
24
- //const Z_ERRNO = -1;
25
- const Z_STREAM_ERROR = -2;
26
- const Z_DATA_ERROR = -3;
27
- const Z_MEM_ERROR = -4;
28
- const Z_BUF_ERROR = -5;
29
- //const Z_VERSION_ERROR = -6;
30
- /* The deflate compression method */
31
- const Z_DEFLATED = 8;
32
- /* STATES ====================================================================*/
33
- /* ===========================================================================*/
34
- const HEAD = 1; /* i: waiting for magic header */
35
- const FLAGS = 2; /* i: waiting for method and flags (gzip) */
36
- const TIME = 3; /* i: waiting for modification time (gzip) */
37
- const OS = 4; /* i: waiting for extra flags and operating system (gzip) */
38
- const EXLEN = 5; /* i: waiting for extra length (gzip) */
39
- const EXTRA = 6; /* i: waiting for extra bytes (gzip) */
40
- const NAME = 7; /* i: waiting for end of file name (gzip) */
41
- const COMMENT = 8; /* i: waiting for end of comment (gzip) */
42
- const HCRC = 9; /* i: waiting for header crc (gzip) */
43
- const DICTID = 10; /* i: waiting for dictionary check value */
44
- const DICT = 11; /* waiting for inflateSetDictionary() call */
45
- const TYPE = 12; /* i: waiting for type bits, including last-flag bit */
46
- const TYPEDO = 13; /* i: same, but skip check to exit inflate on new block */
47
- const STORED = 14; /* i: waiting for stored size (length and complement) */
48
- const COPY_ = 15; /* i/o: same as COPY below, but only first time in */
49
- const COPY = 16; /* i/o: waiting for input or output to copy stored block */
50
- const TABLE = 17; /* i: waiting for dynamic block table lengths */
51
- const LENLENS = 18; /* i: waiting for code length code lengths */
52
- const CODELENS = 19; /* i: waiting for length/lit and distance code lengths */
53
- const LEN_ = 20; /* i: same as LEN below, but only first time in */
54
- const LEN = 21; /* i: waiting for length/lit/eob code */
55
- const LENEXT = 22; /* i: waiting for length extra bits */
56
- const DIST = 23; /* i: waiting for distance code */
57
- const DISTEXT = 24; /* i: waiting for distance extra bits */
58
- const MATCH = 25; /* o: waiting for output space to copy string */
59
- const LIT = 26; /* o: waiting for output space to write literal */
60
- const CHECK = 27; /* i: waiting for 32-bit check value */
61
- const LENGTH = 28; /* i: waiting for 32-bit length (gzip) */
62
- const DONE = 29; /* finished check, done -- remain here until reset */
63
- const BAD = 30; /* got a data error -- remain here until reset */
64
- const MEM = 31; /* got an inflate() memory error -- remain here until reset */
65
- const SYNC = 32; /* looking for synchronization bytes to restart inflate() */
66
- /* ===========================================================================*/
67
- const ENOUGH_LENS = 852;
68
- const ENOUGH_DISTS = 592;
69
- //const ENOUGH = (ENOUGH_LENS+ENOUGH_DISTS);
70
- const MAX_WBITS = 15;
71
- /* 32K LZ77 window */
72
- const DEF_WBITS = MAX_WBITS;
73
- function zswap32(q) {
74
- return (((q >>> 24) & 0xff) +
75
- ((q >>> 8) & 0xff00) +
76
- ((q & 0xff00) << 8) +
77
- ((q & 0xff) << 24));
78
- }
79
- export class InflateState {
80
- constructor() {
81
- Object.defineProperty(this, "mode", {
82
- enumerable: true,
83
- configurable: true,
84
- writable: true,
85
- value: 0
86
- }); /* current inflate mode */
87
- Object.defineProperty(this, "last", {
88
- enumerable: true,
89
- configurable: true,
90
- writable: true,
91
- value: false
92
- }); /* true if processing last block */
93
- Object.defineProperty(this, "wrap", {
94
- enumerable: true,
95
- configurable: true,
96
- writable: true,
97
- value: 0
98
- }); /* bit 0 true for zlib, bit 1 true for gzip */
99
- Object.defineProperty(this, "havedict", {
100
- enumerable: true,
101
- configurable: true,
102
- writable: true,
103
- value: false
104
- }); /* true if dictionary provided */
105
- Object.defineProperty(this, "flags", {
106
- enumerable: true,
107
- configurable: true,
108
- writable: true,
109
- value: 0
110
- }); /* gzip header method and flags (0 if zlib) */
111
- Object.defineProperty(this, "dmax", {
112
- enumerable: true,
113
- configurable: true,
114
- writable: true,
115
- value: 0
116
- }); /* zlib header max distance (INFLATE_STRICT) */
117
- Object.defineProperty(this, "check", {
118
- enumerable: true,
119
- configurable: true,
120
- writable: true,
121
- value: 0
122
- }); /* protected copy of check value */
123
- Object.defineProperty(this, "total", {
124
- enumerable: true,
125
- configurable: true,
126
- writable: true,
127
- value: 0
128
- }); /* protected copy of output count */
129
- // TODO: may be {}
130
- Object.defineProperty(this, "head", {
131
- enumerable: true,
132
- configurable: true,
133
- writable: true,
134
- value: null
135
- }); /* where to save gzip header information */
136
- /* sliding window */
137
- Object.defineProperty(this, "wbits", {
138
- enumerable: true,
139
- configurable: true,
140
- writable: true,
141
- value: 0
142
- }); /* log base 2 of requested window size */
143
- Object.defineProperty(this, "wsize", {
144
- enumerable: true,
145
- configurable: true,
146
- writable: true,
147
- value: 0
148
- }); /* window size or zero if not using window */
149
- Object.defineProperty(this, "whave", {
150
- enumerable: true,
151
- configurable: true,
152
- writable: true,
153
- value: 0
154
- }); /* valid bytes in the window */
155
- Object.defineProperty(this, "wnext", {
156
- enumerable: true,
157
- configurable: true,
158
- writable: true,
159
- value: 0
160
- }); /* window write index */
161
- Object.defineProperty(this, "window", {
162
- enumerable: true,
163
- configurable: true,
164
- writable: true,
165
- value: null
166
- }); /* allocated sliding window, if needed */
167
- /* bit accumulator */
168
- Object.defineProperty(this, "hold", {
169
- enumerable: true,
170
- configurable: true,
171
- writable: true,
172
- value: 0
173
- }); /* input bit accumulator */
174
- Object.defineProperty(this, "bits", {
175
- enumerable: true,
176
- configurable: true,
177
- writable: true,
178
- value: 0
179
- }); /* number of bits in "in" */
180
- /* for string and stored block copying */
181
- Object.defineProperty(this, "length", {
182
- enumerable: true,
183
- configurable: true,
184
- writable: true,
185
- value: 0
186
- }); /* literal or length of data to copy */
187
- Object.defineProperty(this, "offset", {
188
- enumerable: true,
189
- configurable: true,
190
- writable: true,
191
- value: 0
192
- }); /* distance back to copy string from */
193
- /* for table and code decoding */
194
- Object.defineProperty(this, "extra", {
195
- enumerable: true,
196
- configurable: true,
197
- writable: true,
198
- value: 0
199
- }); /* extra bits needed */
200
- /* fixed and dynamic code tables */
201
- Object.defineProperty(this, "lencode", {
202
- enumerable: true,
203
- configurable: true,
204
- writable: true,
205
- value: null
206
- }); /* starting table for length/literal codes */
207
- Object.defineProperty(this, "distcode", {
208
- enumerable: true,
209
- configurable: true,
210
- writable: true,
211
- value: null
212
- }); /* starting table for distance codes */
213
- Object.defineProperty(this, "lenbits", {
214
- enumerable: true,
215
- configurable: true,
216
- writable: true,
217
- value: 0
218
- }); /* index bits for lencode */
219
- Object.defineProperty(this, "distbits", {
220
- enumerable: true,
221
- configurable: true,
222
- writable: true,
223
- value: 0
224
- }); /* index bits for distcode */
225
- /* dynamic table building */
226
- Object.defineProperty(this, "ncode", {
227
- enumerable: true,
228
- configurable: true,
229
- writable: true,
230
- value: 0
231
- }); /* number of code length code lengths */
232
- Object.defineProperty(this, "nlen", {
233
- enumerable: true,
234
- configurable: true,
235
- writable: true,
236
- value: 0
237
- }); /* number of length code lengths */
238
- Object.defineProperty(this, "ndist", {
239
- enumerable: true,
240
- configurable: true,
241
- writable: true,
242
- value: 0
243
- }); /* number of distance code lengths */
244
- Object.defineProperty(this, "have", {
245
- enumerable: true,
246
- configurable: true,
247
- writable: true,
248
- value: 0
249
- }); /* number of code lengths in lens[] */
250
- Object.defineProperty(this, "next", {
251
- enumerable: true,
252
- configurable: true,
253
- writable: true,
254
- value: null
255
- }); /* next available space in codes[] */
256
- Object.defineProperty(this, "lens", {
257
- enumerable: true,
258
- configurable: true,
259
- writable: true,
260
- value: new Uint16Array(320)
261
- }); /* temporary storage for code lengths */
262
- Object.defineProperty(this, "work", {
263
- enumerable: true,
264
- configurable: true,
265
- writable: true,
266
- value: new Uint16Array(288)
267
- }); /* work area for code table building */
268
- /*
269
- because we don't have pointers in js, we use lencode and distcode directly
270
- as buffers so we don't need codes
271
- */
272
- //codes = new Uint32Array(ENOUGH); /* space for code tables */
273
- Object.defineProperty(this, "lendyn", {
274
- enumerable: true,
275
- configurable: true,
276
- writable: true,
277
- value: null
278
- }); /* dynamic table for length/literal codes (JS specific) */
279
- Object.defineProperty(this, "distdyn", {
280
- enumerable: true,
281
- configurable: true,
282
- writable: true,
283
- value: null
284
- }); /* dynamic table for distance codes (JS specific) */
285
- Object.defineProperty(this, "sane", {
286
- enumerable: true,
287
- configurable: true,
288
- writable: true,
289
- value: 0
290
- }); /* if false, allow invalid distance too far */
291
- Object.defineProperty(this, "back", {
292
- enumerable: true,
293
- configurable: true,
294
- writable: true,
295
- value: 0
296
- }); /* bits back of last unprocessed length/lit */
297
- Object.defineProperty(this, "was", {
298
- enumerable: true,
299
- configurable: true,
300
- writable: true,
301
- value: 0
302
- }); /* initial length of match */
303
- }
304
- }
305
- export function inflateResetKeep(strm) {
306
- let state;
307
- if (!strm || !strm.state)
308
- return Z_STREAM_ERROR;
309
- state = strm.state;
310
- strm.total_in = strm.total_out = state.total = 0;
311
- strm.msg = ""; /*Z_NULL*/
312
- if (state.wrap) {
313
- /* to support ill-conceived Java test suite */
314
- strm.adler = state.wrap & 1;
315
- }
316
- state.mode = HEAD;
317
- state.last = 0;
318
- state.havedict = 0;
319
- state.dmax = 32768;
320
- state.head = null /*Z_NULL*/;
321
- state.hold = 0;
322
- state.bits = 0;
323
- //state.lencode = state.distcode = state.next = state.codes;
324
- state.lencode = state.lendyn = new Uint32Array(ENOUGH_LENS);
325
- state.distcode = state.distdyn = new Uint32Array(ENOUGH_DISTS);
326
- state.sane = 1;
327
- state.back = -1;
328
- //Tracev((stderr, "inflate: reset\n"));
329
- return Z_OK;
330
- }
331
- export function inflateReset(strm) {
332
- let state;
333
- if (!strm || !strm.state)
334
- return Z_STREAM_ERROR;
335
- state = strm.state;
336
- state.wsize = 0;
337
- state.whave = 0;
338
- state.wnext = 0;
339
- return inflateResetKeep(strm);
340
- }
341
- export function inflateReset2(strm, windowBits) {
342
- let wrap;
343
- let state;
344
- /* get the state */
345
- if (!strm || !strm.state)
346
- return Z_STREAM_ERROR;
347
- state = strm.state;
348
- /* extract wrap request from windowBits parameter */
349
- if (windowBits < 0) {
350
- wrap = 0;
351
- windowBits = -windowBits;
352
- }
353
- else {
354
- wrap = (windowBits >> 4) + 1;
355
- if (windowBits < 48) {
356
- windowBits &= 15;
357
- }
358
- }
359
- /* set number of window bits, free window if different */
360
- if (windowBits && (windowBits < 8 || windowBits > 15)) {
361
- return Z_STREAM_ERROR;
362
- }
363
- if (state.window !== null && state.wbits !== windowBits) {
364
- state.window = null;
365
- }
366
- /* update state and reset the rest of it */
367
- state.wrap = wrap;
368
- state.wbits = windowBits;
369
- return inflateReset(strm);
370
- }
371
- export function inflateInit2(strm, windowBits) {
372
- let ret;
373
- let state;
374
- if (!strm)
375
- return Z_STREAM_ERROR;
376
- //strm.msg = Z_NULL; /* in case we return an error */
377
- state = new InflateState();
378
- //if (state === Z_NULL) return Z_MEM_ERROR;
379
- //Tracev((stderr, "inflate: allocated\n"));
380
- strm.state = state;
381
- state.window = null /*Z_NULL*/;
382
- ret = inflateReset2(strm, windowBits);
383
- if (ret !== Z_OK) {
384
- strm.state = null /*Z_NULL*/;
385
- }
386
- return ret;
387
- }
388
- export function inflateInit(strm) {
389
- return inflateInit2(strm, DEF_WBITS);
390
- }
391
- /*
392
- Return state with length and distance decoding tables and index sizes set to
393
- fixed code decoding. Normally this returns fixed tables from inffixed.h.
394
- If BUILDFIXED is defined, then instead this routine builds the tables the
395
- first time it's called, and returns those tables the first time and
396
- thereafter. This reduces the size of the code by about 2K bytes, in
397
- exchange for a little execution time. However, BUILDFIXED should not be
398
- used for threaded applications, since the rewriting of the tables and virgin
399
- may not be thread-safe.
400
- */
401
- let virgin = true;
402
- let lenfix, distfix; // We have no pointers in JS, so keep tables separate
403
- function fixedtables(state) {
404
- /* build fixed huffman tables if first call (may not be thread safe) */
405
- if (virgin) {
406
- let sym;
407
- lenfix = new Uint32Array(512);
408
- distfix = new Uint32Array(32);
409
- /* literal/length table */
410
- sym = 0;
411
- while (sym < 144)
412
- state.lens[sym++] = 8;
413
- while (sym < 256)
414
- state.lens[sym++] = 9;
415
- while (sym < 280)
416
- state.lens[sym++] = 7;
417
- while (sym < 288)
418
- state.lens[sym++] = 8;
419
- inflate_table(LENS, state.lens, 0, 288, lenfix, 0, state.work, { bits: 9 });
420
- /* distance table */
421
- sym = 0;
422
- while (sym < 32)
423
- state.lens[sym++] = 5;
424
- inflate_table(DISTS, state.lens, 0, 32, distfix, 0, state.work, { bits: 5 });
425
- /* do this just once */
426
- virgin = false;
427
- }
428
- state.lencode = lenfix;
429
- state.lenbits = 9;
430
- state.distcode = distfix;
431
- state.distbits = 5;
432
- }
433
- /*
434
- Update the window with the last wsize (normally 32K) bytes written before
435
- returning. If window does not exist yet, create it. This is only called
436
- when a window is already in use, or when output has been written during this
437
- inflate call, but the end of the deflate stream has not been reached yet.
438
- It is also called to create a window for dictionary data when a dictionary
439
- is loaded.
440
-
441
- Providing output buffers larger than 32K to inflate() should provide a speed
442
- advantage, since only the last 32K of output is copied to the sliding window
443
- upon return from inflate(), and since all distances after the first 32K of
444
- output will fall in the output data, making match copies simpler and faster.
445
- The advantage may be dependent on the size of the processor's data caches.
446
- */
447
- function updatewindow(strm, src, end, copy) {
448
- let dist;
449
- let state = strm.state;
450
- /* if it hasn't been done already, allocate space for the window */
451
- if (state.window === null) {
452
- state.wsize = 1 << state.wbits;
453
- state.wnext = 0;
454
- state.whave = 0;
455
- state.window = new Uint8Array(state.wsize);
456
- }
457
- /* copy state->wsize or less output bytes into the circular window */
458
- if (copy >= state.wsize) {
459
- state.window.set(src.subarray(end - state.wsize, end), 0);
460
- state.wnext = 0;
461
- state.whave = state.wsize;
462
- }
463
- else {
464
- dist = state.wsize - state.wnext;
465
- if (dist > copy) {
466
- dist = copy;
467
- }
468
- //zmemcpy(state->window + state->wnext, end - copy, dist);
469
- state.window.set(src.subarray(end - copy, end - copy + dist), state.wnext);
470
- copy -= dist;
471
- if (copy) {
472
- //zmemcpy(state->window, end - copy, copy);
473
- state.window.set(src.subarray(end - copy, end), 0);
474
- state.wnext = copy;
475
- state.whave = state.wsize;
476
- }
477
- else {
478
- state.wnext += dist;
479
- if (state.wnext === state.wsize)
480
- state.wnext = 0;
481
- if (state.whave < state.wsize)
482
- state.whave += dist;
483
- }
484
- }
485
- return 0;
486
- }
487
- export function inflate(strm, flush) {
488
- let state;
489
- let input, output; // input/output buffers
490
- let next; /* next input INDEX */
491
- let put; /* next output INDEX */
492
- let have, left; /* available input and output */
493
- let hold; /* bit buffer */
494
- let bits; /* bits in bit buffer */
495
- let _in, _out; /* save starting available input and output */
496
- let copy; /* number of stored or match bytes to copy */
497
- let from; /* where to copy match bytes from */
498
- let from_source;
499
- let here = 0; /* current decoding table entry */
500
- let here_bits, here_op, here_val; // paked "here" denormalized (JS specific)
501
- //let last; /* parent table entry */
502
- let last_bits, last_op, last_val; // paked "last" denormalized (JS specific)
503
- let len; /* length to copy for repeats, bits to drop */
504
- let ret; /* return code */
505
- let hbuf = new Uint8Array(4); /* buffer for gzip header crc calculation */
506
- let opts;
507
- let n; // temporary let for NEED_BITS
508
- let order = /* permutation of code lengths */ [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15];
509
- if (!strm || !strm.state || !strm.output ||
510
- (!strm.input && strm.avail_in !== 0)) {
511
- return Z_STREAM_ERROR;
512
- }
513
- state = strm.state;
514
- if (state.mode === TYPE)
515
- state.mode = TYPEDO; /* skip check */
516
- //--- LOAD() ---
517
- put = strm.next_out;
518
- output = strm.output;
519
- left = strm.avail_out;
520
- next = strm.next_in;
521
- input = strm.input;
522
- have = strm.avail_in;
523
- hold = state.hold;
524
- bits = state.bits;
525
- //---
526
- _in = have;
527
- _out = left;
528
- ret = Z_OK;
529
- inf_leave:
530
- // goto emulation
531
- for (;;) {
532
- switch (state.mode) {
533
- case HEAD:
534
- if (state.wrap === 0) {
535
- state.mode = TYPEDO;
536
- break;
537
- }
538
- //=== NEEDBITS(16);
539
- while (bits < 16) {
540
- if (have === 0)
541
- break inf_leave;
542
- have--;
543
- hold += input[next++] << bits;
544
- bits += 8;
545
- }
546
- //===//
547
- if ((state.wrap & 2) && hold === 0x8b1f) {
548
- /* gzip header */
549
- state.check = 0 /*crc32(0L, Z_NULL, 0)*/;
550
- //=== CRC2(state.check, hold);
551
- hbuf[0] = hold & 0xff;
552
- hbuf[1] = (hold >>> 8) & 0xff;
553
- state.check = crc32(state.check, hbuf, 2, 0);
554
- //===//
555
- //=== INITBITS();
556
- hold = 0;
557
- bits = 0;
558
- //===//
559
- state.mode = FLAGS;
560
- break;
561
- }
562
- state.flags = 0; /* expect zlib header */
563
- if (state.head) {
564
- state.head.done = false;
565
- }
566
- if (!(state.wrap & 1) || /* check if zlib header allowed */
567
- (((hold & 0xff) /*BITS(8)*/ << 8) + (hold >> 8)) % 31) {
568
- strm.msg = "incorrect header check";
569
- state.mode = BAD;
570
- break;
571
- }
572
- if ((hold & 0x0f) /*BITS(4)*/ !== Z_DEFLATED) {
573
- strm.msg = "unknown compression method";
574
- state.mode = BAD;
575
- break;
576
- }
577
- //--- DROPBITS(4) ---//
578
- hold >>>= 4;
579
- bits -= 4;
580
- //---//
581
- len = (hold & 0x0f) /*BITS(4)*/ + 8;
582
- if (state.wbits === 0) {
583
- state.wbits = len;
584
- }
585
- else if (len > state.wbits) {
586
- strm.msg = "invalid window size";
587
- state.mode = BAD;
588
- break;
589
- }
590
- state.dmax = 1 << len;
591
- //Tracev((stderr, "inflate: zlib header ok\n"));
592
- strm.adler = state.check = 1 /*adler32(0L, Z_NULL, 0)*/;
593
- state.mode = hold & 0x200 ? DICTID : TYPE;
594
- //=== INITBITS();
595
- hold = 0;
596
- bits = 0;
597
- //===//
598
- break;
599
- case FLAGS:
600
- //=== NEEDBITS(16); */
601
- while (bits < 16) {
602
- if (have === 0)
603
- break inf_leave;
604
- have--;
605
- hold += input[next++] << bits;
606
- bits += 8;
607
- }
608
- //===//
609
- state.flags = hold;
610
- if ((state.flags & 0xff) !== Z_DEFLATED) {
611
- strm.msg = "unknown compression method";
612
- state.mode = BAD;
613
- break;
614
- }
615
- if (state.flags & 0xe000) {
616
- strm.msg = "unknown header flags set";
617
- state.mode = BAD;
618
- break;
619
- }
620
- if (state.head) {
621
- state.head.text = (hold >> 8) & 1;
622
- }
623
- if (state.flags & 0x0200) {
624
- //=== CRC2(state.check, hold);
625
- hbuf[0] = hold & 0xff;
626
- hbuf[1] = (hold >>> 8) & 0xff;
627
- state.check = crc32(state.check, hbuf, 2, 0);
628
- //===//
629
- }
630
- //=== INITBITS();
631
- hold = 0;
632
- bits = 0;
633
- //===//
634
- state.mode = TIME;
635
- /* falls through */
636
- case TIME:
637
- //=== NEEDBITS(32); */
638
- while (bits < 32) {
639
- if (have === 0)
640
- break inf_leave;
641
- have--;
642
- hold += input[next++] << bits;
643
- bits += 8;
644
- }
645
- //===//
646
- if (state.head) {
647
- state.head.time = hold;
648
- }
649
- if (state.flags & 0x0200) {
650
- //=== CRC4(state.check, hold)
651
- hbuf[0] = hold & 0xff;
652
- hbuf[1] = (hold >>> 8) & 0xff;
653
- hbuf[2] = (hold >>> 16) & 0xff;
654
- hbuf[3] = (hold >>> 24) & 0xff;
655
- state.check = crc32(state.check, hbuf, 4, 0);
656
- //===
657
- }
658
- //=== INITBITS();
659
- hold = 0;
660
- bits = 0;
661
- //===//
662
- state.mode = OS;
663
- /* falls through */
664
- case OS:
665
- //=== NEEDBITS(16); */
666
- while (bits < 16) {
667
- if (have === 0)
668
- break inf_leave;
669
- have--;
670
- hold += input[next++] << bits;
671
- bits += 8;
672
- }
673
- //===//
674
- if (state.head) {
675
- state.head.xflags = hold & 0xff;
676
- state.head.os = hold >> 8;
677
- }
678
- if (state.flags & 0x0200) {
679
- //=== CRC2(state.check, hold);
680
- hbuf[0] = hold & 0xff;
681
- hbuf[1] = (hold >>> 8) & 0xff;
682
- state.check = crc32(state.check, hbuf, 2, 0);
683
- //===//
684
- }
685
- //=== INITBITS();
686
- hold = 0;
687
- bits = 0;
688
- //===//
689
- state.mode = EXLEN;
690
- /* falls through */
691
- case EXLEN:
692
- if (state.flags & 0x0400) {
693
- //=== NEEDBITS(16); */
694
- while (bits < 16) {
695
- if (have === 0)
696
- break inf_leave;
697
- have--;
698
- hold += input[next++] << bits;
699
- bits += 8;
700
- }
701
- //===//
702
- state.length = hold;
703
- if (state.head) {
704
- state.head.extra_len = hold;
705
- }
706
- if (state.flags & 0x0200) {
707
- //=== CRC2(state.check, hold);
708
- hbuf[0] = hold & 0xff;
709
- hbuf[1] = (hold >>> 8) & 0xff;
710
- state.check = crc32(state.check, hbuf, 2, 0);
711
- //===//
712
- }
713
- //=== INITBITS();
714
- hold = 0;
715
- bits = 0;
716
- //===//
717
- }
718
- else if (state.head) {
719
- state.head.extra = null /*Z_NULL*/;
720
- }
721
- state.mode = EXTRA;
722
- /* falls through */
723
- case EXTRA:
724
- if (state.flags & 0x0400) {
725
- copy = state.length;
726
- if (copy > have)
727
- copy = have;
728
- if (copy) {
729
- if (state.head) {
730
- len = state.head.extra_len - state.length;
731
- if (!state.head.extra) {
732
- // Use untyped array for more convenient processing later
733
- state.head.extra = new Array(state.head.extra_len);
734
- }
735
- // extra field is limited to 65536 bytes
736
- // - no need for additional size check
737
- /*len + copy > state.head.extra_max - len ? state.head.extra_max : copy,*/
738
- state.head.extra.set(input.subarray(next, next + copy), len);
739
- //zmemcpy(state.head.extra + len, next,
740
- // len + copy > state.head.extra_max ?
741
- // state.head.extra_max - len : copy);
742
- }
743
- if (state.flags & 0x0200) {
744
- state.check = crc32(state.check, input, copy, next);
745
- }
746
- have -= copy;
747
- next += copy;
748
- state.length -= copy;
749
- }
750
- if (state.length)
751
- break inf_leave;
752
- }
753
- state.length = 0;
754
- state.mode = NAME;
755
- /* falls through */
756
- case NAME:
757
- if (state.flags & 0x0800) {
758
- if (have === 0)
759
- break inf_leave;
760
- copy = 0;
761
- do {
762
- // TODO: 2 or 1 bytes?
763
- len = input[next + copy++];
764
- /* use constant limit because in js we should not preallocate memory */
765
- if (state.head && len &&
766
- (state.length < 65536 /*state.head.name_max*/)) {
767
- state.head.name += String.fromCharCode(len);
768
- }
769
- } while (len && copy < have);
770
- if (state.flags & 0x0200) {
771
- state.check = crc32(state.check, input, copy, next);
772
- }
773
- have -= copy;
774
- next += copy;
775
- if (len)
776
- break inf_leave;
777
- }
778
- else if (state.head) {
779
- state.head.name = null;
780
- }
781
- state.length = 0;
782
- state.mode = COMMENT;
783
- /* falls through */
784
- case COMMENT:
785
- if (state.flags & 0x1000) {
786
- if (have === 0)
787
- break inf_leave;
788
- copy = 0;
789
- do {
790
- len = input[next + copy++];
791
- /* use constant limit because in js we should not preallocate memory */
792
- if (state.head && len &&
793
- (state.length < 65536 /*state.head.comm_max*/)) {
794
- state.head.comment += String.fromCharCode(len);
795
- }
796
- } while (len && copy < have);
797
- if (state.flags & 0x0200) {
798
- state.check = crc32(state.check, input, copy, next);
799
- }
800
- have -= copy;
801
- next += copy;
802
- if (len)
803
- break inf_leave;
804
- }
805
- else if (state.head) {
806
- state.head.comment = null;
807
- }
808
- state.mode = HCRC;
809
- /* falls through */
810
- case HCRC:
811
- if (state.flags & 0x0200) {
812
- //=== NEEDBITS(16); */
813
- while (bits < 16) {
814
- if (have === 0)
815
- break inf_leave;
816
- have--;
817
- hold += input[next++] << bits;
818
- bits += 8;
819
- }
820
- //===//
821
- if (hold !== (state.check & 0xffff)) {
822
- strm.msg = "header crc mismatch";
823
- state.mode = BAD;
824
- break;
825
- }
826
- //=== INITBITS();
827
- hold = 0;
828
- bits = 0;
829
- //===//
830
- }
831
- if (state.head) {
832
- state.head.hcrc = (state.flags >> 9) & 1;
833
- state.head.done = true;
834
- }
835
- strm.adler = state.check = 0;
836
- state.mode = TYPE;
837
- break;
838
- case DICTID:
839
- //=== NEEDBITS(32); */
840
- while (bits < 32) {
841
- if (have === 0)
842
- break inf_leave;
843
- have--;
844
- hold += input[next++] << bits;
845
- bits += 8;
846
- }
847
- //===//
848
- strm.adler = state.check = zswap32(hold);
849
- //=== INITBITS();
850
- hold = 0;
851
- bits = 0;
852
- //===//
853
- state.mode = DICT;
854
- /* falls through */
855
- case DICT:
856
- if (state.havedict === 0) {
857
- //--- RESTORE() ---
858
- strm.next_out = put;
859
- strm.avail_out = left;
860
- strm.next_in = next;
861
- strm.avail_in = have;
862
- state.hold = hold;
863
- state.bits = bits;
864
- //---
865
- return Z_NEED_DICT;
866
- }
867
- strm.adler = state.check = 1 /*adler32(0L, Z_NULL, 0)*/;
868
- state.mode = TYPE;
869
- /* falls through */
870
- case TYPE:
871
- if (flush === Z_BLOCK || flush === Z_TREES)
872
- break inf_leave;
873
- /* falls through */
874
- case TYPEDO:
875
- if (state.last) {
876
- //--- BYTEBITS() ---//
877
- hold >>>= bits & 7;
878
- bits -= bits & 7;
879
- //---//
880
- state.mode = CHECK;
881
- break;
882
- }
883
- //=== NEEDBITS(3); */
884
- while (bits < 3) {
885
- if (have === 0)
886
- break inf_leave;
887
- have--;
888
- hold += input[next++] << bits;
889
- bits += 8;
890
- }
891
- //===//
892
- state.last = hold & 0x01 /*BITS(1)*/;
893
- //--- DROPBITS(1) ---//
894
- hold >>>= 1;
895
- bits -= 1;
896
- //---//
897
- switch ((hold & 0x03) /*BITS(2)*/) {
898
- case 0: /* stored block */
899
- //Tracev((stderr, "inflate: stored block%s\n",
900
- // state.last ? " (last)" : ""));
901
- state.mode = STORED;
902
- break;
903
- case 1: /* fixed block */
904
- fixedtables(state);
905
- //Tracev((stderr, "inflate: fixed codes block%s\n",
906
- // state.last ? " (last)" : ""));
907
- state.mode = LEN_; /* decode codes */
908
- if (flush === Z_TREES) {
909
- //--- DROPBITS(2) ---//
910
- hold >>>= 2;
911
- bits -= 2;
912
- //---//
913
- break inf_leave;
914
- }
915
- break;
916
- case 2: /* dynamic block */
917
- //Tracev((stderr, "inflate: dynamic codes block%s\n",
918
- // state.last ? " (last)" : ""));
919
- state.mode = TABLE;
920
- break;
921
- case 3:
922
- strm.msg = "invalid block type";
923
- state.mode = BAD;
924
- }
925
- //--- DROPBITS(2) ---//
926
- hold >>>= 2;
927
- bits -= 2;
928
- //---//
929
- break;
930
- case STORED:
931
- //--- BYTEBITS() ---// /* go to byte boundary */
932
- hold >>>= bits & 7;
933
- bits -= bits & 7;
934
- //---//
935
- //=== NEEDBITS(32); */
936
- while (bits < 32) {
937
- if (have === 0)
938
- break inf_leave;
939
- have--;
940
- hold += input[next++] << bits;
941
- bits += 8;
942
- }
943
- //===//
944
- if ((hold & 0xffff) !== ((hold >>> 16) ^ 0xffff)) {
945
- strm.msg = "invalid stored block lengths";
946
- state.mode = BAD;
947
- break;
948
- }
949
- state.length = hold & 0xffff;
950
- //Tracev((stderr, "inflate: stored length %u\n",
951
- // state.length));
952
- //=== INITBITS();
953
- hold = 0;
954
- bits = 0;
955
- //===//
956
- state.mode = COPY_;
957
- if (flush === Z_TREES)
958
- break inf_leave;
959
- /* falls through */
960
- case COPY_:
961
- state.mode = COPY;
962
- /* falls through */
963
- case COPY:
964
- copy = state.length;
965
- if (copy) {
966
- if (copy > have)
967
- copy = have;
968
- if (copy > left)
969
- copy = left;
970
- if (copy === 0)
971
- break inf_leave;
972
- //--- zmemcpy(put, next, copy); ---
973
- output.set(input.subarray(next, next + copy), put);
974
- //---//
975
- have -= copy;
976
- next += copy;
977
- left -= copy;
978
- put += copy;
979
- state.length -= copy;
980
- break;
981
- }
982
- //Tracev((stderr, "inflate: stored end\n"));
983
- state.mode = TYPE;
984
- break;
985
- case TABLE:
986
- //=== NEEDBITS(14); */
987
- while (bits < 14) {
988
- if (have === 0)
989
- break inf_leave;
990
- have--;
991
- hold += input[next++] << bits;
992
- bits += 8;
993
- }
994
- //===//
995
- state.nlen = (hold & 0x1f) /*BITS(5)*/ + 257;
996
- //--- DROPBITS(5) ---//
997
- hold >>>= 5;
998
- bits -= 5;
999
- //---//
1000
- state.ndist = (hold & 0x1f) /*BITS(5)*/ + 1;
1001
- //--- DROPBITS(5) ---//
1002
- hold >>>= 5;
1003
- bits -= 5;
1004
- //---//
1005
- state.ncode = (hold & 0x0f) /*BITS(4)*/ + 4;
1006
- //--- DROPBITS(4) ---//
1007
- hold >>>= 4;
1008
- bits -= 4;
1009
- //---//
1010
- //#ifndef PKZIP_BUG_WORKAROUND
1011
- if (state.nlen > 286 || state.ndist > 30) {
1012
- strm.msg = "too many length or distance symbols";
1013
- state.mode = BAD;
1014
- break;
1015
- }
1016
- //#endif
1017
- //Tracev((stderr, "inflate: table sizes ok\n"));
1018
- state.have = 0;
1019
- state.mode = LENLENS;
1020
- /* falls through */
1021
- case LENLENS:
1022
- while (state.have < state.ncode) {
1023
- //=== NEEDBITS(3);
1024
- while (bits < 3) {
1025
- if (have === 0)
1026
- break inf_leave;
1027
- have--;
1028
- hold += input[next++] << bits;
1029
- bits += 8;
1030
- }
1031
- //===//
1032
- state.lens[order[state.have++]] = hold & 0x07; //BITS(3);
1033
- //--- DROPBITS(3) ---//
1034
- hold >>>= 3;
1035
- bits -= 3;
1036
- //---//
1037
- }
1038
- while (state.have < 19) {
1039
- state.lens[order[state.have++]] = 0;
1040
- }
1041
- // We have separate tables & no pointers. 2 commented lines below not needed.
1042
- //state.next = state.codes;
1043
- //state.lencode = state.next;
1044
- // Switch to use dynamic table
1045
- state.lencode = state.lendyn;
1046
- state.lenbits = 7;
1047
- opts = { bits: state.lenbits };
1048
- ret = inflate_table(CODES, state.lens, 0, 19, state.lencode, 0, state.work, opts);
1049
- state.lenbits = opts.bits;
1050
- if (ret) {
1051
- strm.msg = "invalid code lengths set";
1052
- state.mode = BAD;
1053
- break;
1054
- }
1055
- //Tracev((stderr, "inflate: code lengths ok\n"));
1056
- state.have = 0;
1057
- state.mode = CODELENS;
1058
- /* falls through */
1059
- case CODELENS:
1060
- while (state.have < state.nlen + state.ndist) {
1061
- for (;;) {
1062
- here = state
1063
- .lencode[hold & ((1 << state.lenbits) - 1)]; /*BITS(state.lenbits)*/
1064
- here_bits = here >>> 24;
1065
- here_op = (here >>> 16) & 0xff;
1066
- here_val = here & 0xffff;
1067
- if (here_bits <= bits)
1068
- break;
1069
- //--- PULLBYTE() ---//
1070
- if (have === 0)
1071
- break inf_leave;
1072
- have--;
1073
- hold += input[next++] << bits;
1074
- bits += 8;
1075
- //---//
1076
- }
1077
- if (here_val < 16) {
1078
- //--- DROPBITS(here.bits) ---//
1079
- hold >>>= here_bits;
1080
- bits -= here_bits;
1081
- //---//
1082
- state.lens[state.have++] = here_val;
1083
- }
1084
- else {
1085
- if (here_val === 16) {
1086
- //=== NEEDBITS(here.bits + 2);
1087
- n = here_bits + 2;
1088
- while (bits < n) {
1089
- if (have === 0)
1090
- break inf_leave;
1091
- have--;
1092
- hold += input[next++] << bits;
1093
- bits += 8;
1094
- }
1095
- //===//
1096
- //--- DROPBITS(here.bits) ---//
1097
- hold >>>= here_bits;
1098
- bits -= here_bits;
1099
- //---//
1100
- if (state.have === 0) {
1101
- strm.msg = "invalid bit length repeat";
1102
- state.mode = BAD;
1103
- break;
1104
- }
1105
- len = state.lens[state.have - 1];
1106
- copy = 3 + (hold & 0x03); //BITS(2);
1107
- //--- DROPBITS(2) ---//
1108
- hold >>>= 2;
1109
- bits -= 2;
1110
- //---//
1111
- }
1112
- else if (here_val === 17) {
1113
- //=== NEEDBITS(here.bits + 3);
1114
- n = here_bits + 3;
1115
- while (bits < n) {
1116
- if (have === 0)
1117
- break inf_leave;
1118
- have--;
1119
- hold += input[next++] << bits;
1120
- bits += 8;
1121
- }
1122
- //===//
1123
- //--- DROPBITS(here.bits) ---//
1124
- hold >>>= here_bits;
1125
- bits -= here_bits;
1126
- //---//
1127
- len = 0;
1128
- copy = 3 + (hold & 0x07); //BITS(3);
1129
- //--- DROPBITS(3) ---//
1130
- hold >>>= 3;
1131
- bits -= 3;
1132
- //---//
1133
- }
1134
- else {
1135
- //=== NEEDBITS(here.bits + 7);
1136
- n = here_bits + 7;
1137
- while (bits < n) {
1138
- if (have === 0)
1139
- break inf_leave;
1140
- have--;
1141
- hold += input[next++] << bits;
1142
- bits += 8;
1143
- }
1144
- //===//
1145
- //--- DROPBITS(here.bits) ---//
1146
- hold >>>= here_bits;
1147
- bits -= here_bits;
1148
- //---//
1149
- len = 0;
1150
- copy = 11 + (hold & 0x7f); //BITS(7);
1151
- //--- DROPBITS(7) ---//
1152
- hold >>>= 7;
1153
- bits -= 7;
1154
- //---//
1155
- }
1156
- if (state.have + copy > state.nlen + state.ndist) {
1157
- strm.msg = "invalid bit length repeat";
1158
- state.mode = BAD;
1159
- break;
1160
- }
1161
- while (copy--) {
1162
- state.lens[state.have++] = len;
1163
- }
1164
- }
1165
- }
1166
- /* handle error breaks in while */
1167
- if (state.mode === BAD)
1168
- break;
1169
- /* check for end-of-block code (better have one) */
1170
- if (state.lens[256] === 0) {
1171
- strm.msg = "invalid code -- missing end-of-block";
1172
- state.mode = BAD;
1173
- break;
1174
- }
1175
- /* build code tables -- note: do not change the lenbits or distbits
1176
- values here (9 and 6) without reading the comments in inftrees.h
1177
- concerning the ENOUGH constants, which depend on those values */
1178
- state.lenbits = 9;
1179
- opts = { bits: state.lenbits };
1180
- ret = inflate_table(LENS, state.lens, 0, state.nlen, state.lencode, 0, state.work, opts);
1181
- // We have separate tables & no pointers. 2 commented lines below not needed.
1182
- // state.next_index = opts.table_index;
1183
- state.lenbits = opts.bits;
1184
- // state.lencode = state.next;
1185
- if (ret) {
1186
- strm.msg = "invalid literal/lengths set";
1187
- state.mode = BAD;
1188
- break;
1189
- }
1190
- state.distbits = 6;
1191
- //state.distcode.copy(state.codes);
1192
- // Switch to use dynamic table
1193
- state.distcode = state.distdyn;
1194
- opts = { bits: state.distbits };
1195
- ret = inflate_table(DISTS, state.lens, state.nlen, state.ndist, state.distcode, 0, state.work, opts);
1196
- // We have separate tables & no pointers. 2 commented lines below not needed.
1197
- // state.next_index = opts.table_index;
1198
- state.distbits = opts.bits;
1199
- // state.distcode = state.next;
1200
- if (ret) {
1201
- strm.msg = "invalid distances set";
1202
- state.mode = BAD;
1203
- break;
1204
- }
1205
- //Tracev((stderr, 'inflate: codes ok\n'));
1206
- state.mode = LEN_;
1207
- if (flush === Z_TREES)
1208
- break inf_leave;
1209
- /* falls through */
1210
- case LEN_:
1211
- state.mode = LEN;
1212
- /* falls through */
1213
- case LEN:
1214
- if (have >= 6 && left >= 258) {
1215
- //--- RESTORE() ---
1216
- strm.next_out = put;
1217
- strm.avail_out = left;
1218
- strm.next_in = next;
1219
- strm.avail_in = have;
1220
- state.hold = hold;
1221
- state.bits = bits;
1222
- //---
1223
- inflate_fast(strm, _out);
1224
- //--- LOAD() ---
1225
- put = strm.next_out;
1226
- output = strm.output;
1227
- left = strm.avail_out;
1228
- next = strm.next_in;
1229
- input = strm.input;
1230
- have = strm.avail_in;
1231
- hold = state.hold;
1232
- bits = state.bits;
1233
- //---
1234
- if (state.mode === TYPE) {
1235
- state.back = -1;
1236
- }
1237
- break;
1238
- }
1239
- state.back = 0;
1240
- for (;;) {
1241
- here = state
1242
- .lencode[hold & ((1 << state.lenbits) - 1)]; /*BITS(state.lenbits)*/
1243
- here_bits = here >>> 24;
1244
- here_op = (here >>> 16) & 0xff;
1245
- here_val = here & 0xffff;
1246
- if (here_bits <= bits)
1247
- break;
1248
- //--- PULLBYTE() ---//
1249
- if (have === 0)
1250
- break inf_leave;
1251
- have--;
1252
- hold += input[next++] << bits;
1253
- bits += 8;
1254
- //---//
1255
- }
1256
- if (here_op && (here_op & 0xf0) === 0) {
1257
- last_bits = here_bits;
1258
- last_op = here_op;
1259
- last_val = here_val;
1260
- for (;;) {
1261
- here = state.lencode[last_val +
1262
- ((hold &
1263
- ((1 << (last_bits + last_op)) -
1264
- 1)) /*BITS(last.bits + last.op)*/ >> last_bits)];
1265
- here_bits = here >>> 24;
1266
- here_op = (here >>> 16) & 0xff;
1267
- here_val = here & 0xffff;
1268
- if ((last_bits + here_bits) <= bits)
1269
- break;
1270
- //--- PULLBYTE() ---//
1271
- if (have === 0)
1272
- break inf_leave;
1273
- have--;
1274
- hold += input[next++] << bits;
1275
- bits += 8;
1276
- //---//
1277
- }
1278
- //--- DROPBITS(last.bits) ---//
1279
- hold >>>= last_bits;
1280
- bits -= last_bits;
1281
- //---//
1282
- state.back += last_bits;
1283
- }
1284
- //--- DROPBITS(here.bits) ---//
1285
- hold >>>= here_bits;
1286
- bits -= here_bits;
1287
- //---//
1288
- state.back += here_bits;
1289
- state.length = here_val;
1290
- if (here_op === 0) {
1291
- //Tracevv((stderr, here.val >= 0x20 && here.val < 0x7f ?
1292
- // "inflate: literal '%c'\n" :
1293
- // "inflate: literal 0x%02x\n", here.val));
1294
- state.mode = LIT;
1295
- break;
1296
- }
1297
- if (here_op & 32) {
1298
- //Tracevv((stderr, "inflate: end of block\n"));
1299
- state.back = -1;
1300
- state.mode = TYPE;
1301
- break;
1302
- }
1303
- if (here_op & 64) {
1304
- strm.msg = "invalid literal/length code";
1305
- state.mode = BAD;
1306
- break;
1307
- }
1308
- state.extra = here_op & 15;
1309
- state.mode = LENEXT;
1310
- /* falls through */
1311
- case LENEXT:
1312
- if (state.extra) {
1313
- //=== NEEDBITS(state.extra);
1314
- n = state.extra;
1315
- while (bits < n) {
1316
- if (have === 0)
1317
- break inf_leave;
1318
- have--;
1319
- hold += input[next++] << bits;
1320
- bits += 8;
1321
- }
1322
- //===//
1323
- state.length += hold & ((1 << state.extra) - 1) /*BITS(state.extra)*/;
1324
- //--- DROPBITS(state.extra) ---//
1325
- hold >>>= state.extra;
1326
- bits -= state.extra;
1327
- //---//
1328
- state.back += state.extra;
1329
- }
1330
- //Tracevv((stderr, "inflate: length %u\n", state.length));
1331
- state.was = state.length;
1332
- state.mode = DIST;
1333
- /* falls through */
1334
- case DIST:
1335
- for (;;) {
1336
- here = state
1337
- .distcode[hold & ((1 << state.distbits) - 1)]; /*BITS(state.distbits)*/
1338
- here_bits = here >>> 24;
1339
- here_op = (here >>> 16) & 0xff;
1340
- here_val = here & 0xffff;
1341
- if (here_bits <= bits)
1342
- break;
1343
- //--- PULLBYTE() ---//
1344
- if (have === 0)
1345
- break inf_leave;
1346
- have--;
1347
- hold += input[next++] << bits;
1348
- bits += 8;
1349
- //---//
1350
- }
1351
- if ((here_op & 0xf0) === 0) {
1352
- last_bits = here_bits;
1353
- last_op = here_op;
1354
- last_val = here_val;
1355
- for (;;) {
1356
- here = state.distcode[last_val +
1357
- ((hold &
1358
- ((1 << (last_bits + last_op)) -
1359
- 1)) /*BITS(last.bits + last.op)*/ >> last_bits)];
1360
- here_bits = here >>> 24;
1361
- here_op = (here >>> 16) & 0xff;
1362
- here_val = here & 0xffff;
1363
- if ((last_bits + here_bits) <= bits)
1364
- break;
1365
- //--- PULLBYTE() ---//
1366
- if (have === 0)
1367
- break inf_leave;
1368
- have--;
1369
- hold += input[next++] << bits;
1370
- bits += 8;
1371
- //---//
1372
- }
1373
- //--- DROPBITS(last.bits) ---//
1374
- hold >>>= last_bits;
1375
- bits -= last_bits;
1376
- //---//
1377
- state.back += last_bits;
1378
- }
1379
- //--- DROPBITS(here.bits) ---//
1380
- hold >>>= here_bits;
1381
- bits -= here_bits;
1382
- //---//
1383
- state.back += here_bits;
1384
- if (here_op & 64) {
1385
- strm.msg = "invalid distance code";
1386
- state.mode = BAD;
1387
- break;
1388
- }
1389
- state.offset = here_val;
1390
- state.extra = here_op & 15;
1391
- state.mode = DISTEXT;
1392
- /* falls through */
1393
- case DISTEXT:
1394
- if (state.extra) {
1395
- //=== NEEDBITS(state.extra);
1396
- n = state.extra;
1397
- while (bits < n) {
1398
- if (have === 0)
1399
- break inf_leave;
1400
- have--;
1401
- hold += input[next++] << bits;
1402
- bits += 8;
1403
- }
1404
- //===//
1405
- state.offset += hold & ((1 << state.extra) - 1) /*BITS(state.extra)*/;
1406
- //--- DROPBITS(state.extra) ---//
1407
- hold >>>= state.extra;
1408
- bits -= state.extra;
1409
- //---//
1410
- state.back += state.extra;
1411
- }
1412
- //#ifdef INFLATE_STRICT
1413
- if (state.offset > state.dmax) {
1414
- strm.msg = "invalid distance too far back";
1415
- state.mode = BAD;
1416
- break;
1417
- }
1418
- //#endif
1419
- //Tracevv((stderr, "inflate: distance %u\n", state.offset));
1420
- state.mode = MATCH;
1421
- /* falls through */
1422
- case MATCH:
1423
- if (left === 0)
1424
- break inf_leave;
1425
- copy = _out - left;
1426
- if (state.offset > copy) {
1427
- /* copy from window */
1428
- copy = state.offset - copy;
1429
- if (copy > state.whave) {
1430
- if (state.sane) {
1431
- strm.msg = "invalid distance too far back";
1432
- state.mode = BAD;
1433
- break;
1434
- }
1435
- // (!) This block is disabled in zlib defaults,
1436
- // don't enable it for binary compatibility
1437
- //#ifdef INFLATE_ALLOW_INVALID_DISTANCE_TOOFAR_ARRR
1438
- // Trace((stderr, "inflate.c too far\n"));
1439
- // copy -= state.whave;
1440
- // if (copy > state.length) { copy = state.length; }
1441
- // if (copy > left) { copy = left; }
1442
- // left -= copy;
1443
- // state.length -= copy;
1444
- // do {
1445
- // output[put++] = 0;
1446
- // } while (--copy);
1447
- // if (state.length === 0) { state.mode = LEN; }
1448
- // break;
1449
- //#endif
1450
- }
1451
- if (copy > state.wnext) {
1452
- copy -= state.wnext;
1453
- from = state.wsize - copy;
1454
- }
1455
- else {
1456
- from = state.wnext - copy;
1457
- }
1458
- if (copy > state.length)
1459
- copy = state.length;
1460
- from_source = state.window;
1461
- }
1462
- else {
1463
- /* copy from output */
1464
- from_source = output;
1465
- from = put - state.offset;
1466
- copy = state.length;
1467
- }
1468
- if (copy > left)
1469
- copy = left;
1470
- left -= copy;
1471
- state.length -= copy;
1472
- do {
1473
- output[put++] = from_source[from++];
1474
- } while (--copy);
1475
- if (state.length === 0)
1476
- state.mode = LEN;
1477
- break;
1478
- case LIT:
1479
- if (left === 0)
1480
- break inf_leave;
1481
- output[put++] = state.length;
1482
- left--;
1483
- state.mode = LEN;
1484
- break;
1485
- case CHECK:
1486
- if (state.wrap) {
1487
- //=== NEEDBITS(32);
1488
- while (bits < 32) {
1489
- if (have === 0)
1490
- break inf_leave;
1491
- have--;
1492
- // Use '|' instead of '+' to make sure that result is signed
1493
- hold |= input[next++] << bits;
1494
- bits += 8;
1495
- }
1496
- //===//
1497
- _out -= left;
1498
- strm.total_out += _out;
1499
- state.total += _out;
1500
- if (_out) {
1501
- strm.adler =
1502
- state.check =
1503
- /*UPDATE(state.check, put - _out, _out);*/
1504
- state.flags
1505
- ? crc32(state.check, output, _out, put - _out)
1506
- : adler32(state.check, output, _out, put - _out);
1507
- }
1508
- _out = left;
1509
- // NB: crc32 stored as signed 32-bit int, zswap32 returns signed too
1510
- if ((state.flags ? hold : zswap32(hold)) !== state.check) {
1511
- strm.msg = "incorrect data check";
1512
- state.mode = BAD;
1513
- break;
1514
- }
1515
- //=== INITBITS();
1516
- hold = 0;
1517
- bits = 0;
1518
- //===//
1519
- //Tracev((stderr, "inflate: check matches trailer\n"));
1520
- }
1521
- state.mode = LENGTH;
1522
- /* falls through */
1523
- case LENGTH:
1524
- if (state.wrap && state.flags) {
1525
- //=== NEEDBITS(32);
1526
- while (bits < 32) {
1527
- if (have === 0)
1528
- break inf_leave;
1529
- have--;
1530
- hold += input[next++] << bits;
1531
- bits += 8;
1532
- }
1533
- //===//
1534
- if (hold !== (state.total & 0xffffffff)) {
1535
- strm.msg = "incorrect length check";
1536
- state.mode = BAD;
1537
- break;
1538
- }
1539
- //=== INITBITS();
1540
- hold = 0;
1541
- bits = 0;
1542
- //===//
1543
- //Tracev((stderr, "inflate: length matches trailer\n"));
1544
- }
1545
- state.mode = DONE;
1546
- /* falls through */
1547
- case DONE:
1548
- ret = Z_STREAM_END;
1549
- break inf_leave;
1550
- case BAD:
1551
- ret = Z_DATA_ERROR;
1552
- break inf_leave;
1553
- case MEM:
1554
- return Z_MEM_ERROR;
1555
- case SYNC:
1556
- /* falls through */
1557
- default:
1558
- return Z_STREAM_ERROR;
1559
- }
1560
- }
1561
- // inf_leave <- here is real place for "goto inf_leave", emulated via "break inf_leave"
1562
- /*
1563
- Return from inflate(), updating the total counts and the check value.
1564
- If there was no progress during the inflate() call, return a buffer
1565
- error. Call updatewindow() to create and/or update the window state.
1566
- Note: a memory error from inflate() is non-recoverable.
1567
- */
1568
- //--- RESTORE() ---
1569
- strm.next_out = put;
1570
- strm.avail_out = left;
1571
- strm.next_in = next;
1572
- strm.avail_in = have;
1573
- state.hold = hold;
1574
- state.bits = bits;
1575
- //---
1576
- if (state.wsize || (_out !== strm.avail_out && state.mode < BAD &&
1577
- (state.mode < CHECK || flush !== Z_FINISH))) {
1578
- if (updatewindow(strm, strm.output, strm.next_out, _out - strm.avail_out)) {
1579
- state.mode = MEM;
1580
- return Z_MEM_ERROR;
1581
- }
1582
- }
1583
- _in -= strm.avail_in;
1584
- _out -= strm.avail_out;
1585
- strm.total_in += _in;
1586
- strm.total_out += _out;
1587
- state.total += _out;
1588
- if (state.wrap && _out) {
1589
- strm.adler =
1590
- state
1591
- .check = /*UPDATE(state.check, strm.next_out - _out, _out);*/
1592
- state.flags
1593
- ? crc32(state.check, output, _out, strm.next_out - _out)
1594
- : adler32(state.check, output, _out, strm.next_out - _out);
1595
- }
1596
- strm.data_type = state.bits + (state.last ? 64 : 0) +
1597
- (state.mode === TYPE ? 128 : 0) +
1598
- (state.mode === LEN_ || state.mode === COPY_ ? 256 : 0);
1599
- if (((_in === 0 && _out === 0) || flush === Z_FINISH) && ret === Z_OK) {
1600
- ret = Z_BUF_ERROR;
1601
- }
1602
- return ret;
1603
- }
1604
- export function inflateEnd(strm) {
1605
- if (!strm || !strm.state /*|| strm->zfree == (free_func)0*/) {
1606
- return Z_STREAM_ERROR;
1607
- }
1608
- let state = strm.state;
1609
- if (state.window) {
1610
- state.window = null;
1611
- }
1612
- strm.state = null;
1613
- return Z_OK;
1614
- }
1615
- export function inflateGetHeader(strm, head) {
1616
- let state;
1617
- /* check state */
1618
- if (!strm || !strm.state)
1619
- return Z_STREAM_ERROR;
1620
- state = strm.state;
1621
- if ((state.wrap & 2) === 0)
1622
- return Z_STREAM_ERROR;
1623
- /* save header structure */
1624
- state.head = head;
1625
- head.done = false;
1626
- return Z_OK;
1627
- }
1628
- export function inflateSetDictionary(strm, dictionary) {
1629
- let dictLength = dictionary.length;
1630
- let state;
1631
- let dictid;
1632
- let ret;
1633
- /* check state */
1634
- if (!strm /* == Z_NULL */ || !strm.state /* == Z_NULL */) {
1635
- return Z_STREAM_ERROR;
1636
- }
1637
- state = strm.state;
1638
- if (state.wrap !== 0 && state.mode !== DICT) {
1639
- return Z_STREAM_ERROR;
1640
- }
1641
- /* check for correct dictionary identifier */
1642
- if (state.mode === DICT) {
1643
- dictid = 1; /* adler32(0, null, 0)*/
1644
- /* dictid = adler32(dictid, dictionary, dictLength); */
1645
- dictid = adler32(dictid, dictionary, dictLength, 0);
1646
- if (dictid !== state.check) {
1647
- return Z_DATA_ERROR;
1648
- }
1649
- }
1650
- /* copy dictionary to window using updatewindow(), which will amend the
1651
- existing dictionary if appropriate */
1652
- ret = updatewindow(strm, dictionary, dictLength, dictLength);
1653
- if (ret) {
1654
- state.mode = MEM;
1655
- return Z_MEM_ERROR;
1656
- }
1657
- state.havedict = 1;
1658
- // Tracev((stderr, "inflate: dictionary set\n"));
1659
- return Z_OK;
1660
- }