@mtkruto/node 0.1.183 → 0.1.191

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 (560) hide show
  1. package/esm/0_deps.d.ts +4 -4
  2. package/esm/0_deps.js +5 -5
  3. package/esm/0_errors.d.ts +12 -0
  4. package/esm/0_errors.js +19 -0
  5. package/esm/4_constants.d.ts +1 -1
  6. package/esm/4_constants.js +1 -1
  7. package/esm/client/0_client_abstract.js +3 -2
  8. package/esm/client/0_html.js +4 -9
  9. package/esm/client/0_markdown.d.ts +21 -0
  10. package/esm/client/0_markdown.js +322 -0
  11. package/esm/client/0_params.d.ts +16 -0
  12. package/esm/client/0_types.d.ts +0 -2
  13. package/esm/client/0_types.js +1 -2
  14. package/esm/client/0_utilities.js +2 -1
  15. package/esm/client/1_client_encrypted.js +3 -1
  16. package/esm/client/1_client_plain.js +3 -4
  17. package/esm/client/1_composer.js +3 -2
  18. package/esm/client/1_file_manager.js +4 -4
  19. package/esm/client/2_message_manager.d.ts +7 -2
  20. package/esm/client/2_message_manager.js +121 -32
  21. package/esm/client/3_chat_list_manager.js +3 -2
  22. package/esm/client/3_story_manager.js +2 -1
  23. package/esm/client/4_client.d.ts +50 -5
  24. package/esm/client/4_client.js +121 -49
  25. package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_interface.d.ts +13 -1
  26. package/esm/deps/deno.land/{std@0.220.1/path/windows → std@0.221.0/path}/basename.d.ts +9 -0
  27. package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/basename.js +9 -0
  28. package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/format.d.ts +3 -1
  29. package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/format.js +3 -1
  30. package/esm/deps/deno.land/std@0.221.0/path/parse.d.ts +18 -0
  31. package/esm/deps/deno.land/std@0.221.0/path/parse.js +24 -0
  32. package/esm/deps/deno.land/{std@0.220.1/path → std@0.221.0/path/windows}/basename.d.ts +9 -0
  33. package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/basename.js +9 -0
  34. package/esm/mod.d.ts +1 -0
  35. package/esm/mod.js +1 -0
  36. package/esm/storage/0_storage.d.ts +3 -0
  37. package/esm/storage/0_storage.js +26 -11
  38. package/esm/types/0__file_id.js +2 -1
  39. package/esm/types/0_chat_photo.d.ts +1 -0
  40. package/esm/types/0_chat_photo.js +7 -4
  41. package/esm/types/0_message_entity.d.ts +1 -0
  42. package/esm/types/0_message_entity.js +34 -0
  43. package/esm/types/0_parse_mode.d.ts +1 -1
  44. package/esm/types/5_callback_query.js +2 -1
  45. package/package.json +1 -1
  46. package/script/0_deps.d.ts +4 -4
  47. package/script/0_deps.js +5 -5
  48. package/script/0_errors.d.ts +12 -0
  49. package/script/0_errors.js +27 -0
  50. package/script/4_constants.d.ts +1 -1
  51. package/script/4_constants.js +1 -1
  52. package/script/client/0_client_abstract.js +3 -2
  53. package/script/client/0_html.js +4 -9
  54. package/script/client/0_markdown.d.ts +21 -0
  55. package/script/client/0_markdown.js +326 -0
  56. package/script/client/0_params.d.ts +16 -0
  57. package/script/client/0_types.d.ts +0 -2
  58. package/script/client/0_types.js +0 -4
  59. package/script/client/0_utilities.js +2 -1
  60. package/script/client/1_client_encrypted.js +4 -2
  61. package/script/client/1_client_plain.js +3 -4
  62. package/script/client/1_composer.js +3 -2
  63. package/script/client/1_file_manager.js +5 -5
  64. package/script/client/2_message_manager.d.ts +7 -2
  65. package/script/client/2_message_manager.js +121 -32
  66. package/script/client/3_chat_list_manager.js +3 -2
  67. package/script/client/3_story_manager.js +2 -1
  68. package/script/client/4_client.d.ts +50 -5
  69. package/script/client/4_client.js +120 -48
  70. package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_interface.d.ts +13 -1
  71. package/script/deps/deno.land/std@0.221.0/path/basename.d.ts +17 -0
  72. package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/basename.js +9 -0
  73. package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/format.d.ts +3 -1
  74. package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/format.js +3 -1
  75. package/script/deps/deno.land/std@0.221.0/path/parse.d.ts +18 -0
  76. package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/parse.js +13 -1
  77. package/script/deps/deno.land/std@0.221.0/path/windows/basename.d.ts +17 -0
  78. package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/basename.js +9 -0
  79. package/script/mod.d.ts +1 -0
  80. package/script/mod.js +1 -0
  81. package/script/storage/0_storage.d.ts +3 -0
  82. package/script/storage/0_storage.js +26 -11
  83. package/script/types/0__file_id.js +2 -1
  84. package/script/types/0_chat_photo.d.ts +1 -0
  85. package/script/types/0_chat_photo.js +7 -4
  86. package/script/types/0_message_entity.d.ts +1 -0
  87. package/script/types/0_message_entity.js +36 -1
  88. package/script/types/0_parse_mode.d.ts +1 -1
  89. package/script/types/5_callback_query.js +2 -1
  90. package/esm/deps/deno.land/std@0.220.1/path/parse.d.ts +0 -6
  91. package/esm/deps/deno.land/std@0.220.1/path/parse.js +0 -12
  92. package/script/deps/deno.land/std@0.220.1/path/basename.d.ts +0 -8
  93. package/script/deps/deno.land/std@0.220.1/path/parse.d.ts +0 -6
  94. package/script/deps/deno.land/std@0.220.1/path/windows/basename.d.ts +0 -8
  95. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/_constants.d.ts +0 -0
  96. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/_constants.js +0 -0
  97. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/_diff.d.ts +0 -0
  98. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/_diff.js +0 -0
  99. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/_format.d.ts +0 -0
  100. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/_format.js +0 -0
  101. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert.d.ts +0 -0
  102. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert.js +0 -0
  103. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_almost_equals.d.ts +0 -0
  104. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_almost_equals.js +0 -0
  105. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_array_includes.d.ts +0 -0
  106. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_array_includes.js +0 -0
  107. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_equals.d.ts +0 -0
  108. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_equals.js +0 -0
  109. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_exists.d.ts +0 -0
  110. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_exists.js +0 -0
  111. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_false.d.ts +0 -0
  112. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_false.js +0 -0
  113. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_greater.d.ts +0 -0
  114. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_greater.js +0 -0
  115. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_greater_or_equal.d.ts +0 -0
  116. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_greater_or_equal.js +0 -0
  117. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_instance_of.d.ts +0 -0
  118. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_instance_of.js +0 -0
  119. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_is_error.d.ts +0 -0
  120. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_is_error.js +0 -0
  121. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_less.d.ts +0 -0
  122. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_less.js +0 -0
  123. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_less_or_equal.d.ts +0 -0
  124. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_less_or_equal.js +0 -0
  125. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_match.d.ts +0 -0
  126. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_match.js +0 -0
  127. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_not_equals.d.ts +0 -0
  128. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_not_equals.js +0 -0
  129. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_not_instance_of.d.ts +0 -0
  130. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_not_instance_of.js +0 -0
  131. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_not_match.d.ts +0 -0
  132. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_not_match.js +0 -0
  133. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_not_strict_equals.d.ts +0 -0
  134. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_not_strict_equals.js +0 -0
  135. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_object_match.d.ts +0 -0
  136. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_object_match.js +0 -0
  137. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_rejects.d.ts +0 -0
  138. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_rejects.js +0 -0
  139. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_strict_equals.d.ts +0 -0
  140. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_strict_equals.js +0 -0
  141. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_string_includes.d.ts +0 -0
  142. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_string_includes.js +0 -0
  143. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_throws.d.ts +0 -0
  144. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_throws.js +0 -0
  145. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assertion_error.d.ts +0 -0
  146. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assertion_error.js +0 -0
  147. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/equal.d.ts +0 -0
  148. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/equal.js +0 -0
  149. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/fail.d.ts +0 -0
  150. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/fail.js +0 -0
  151. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/mod.d.ts +0 -0
  152. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/mod.js +0 -0
  153. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/unimplemented.d.ts +0 -0
  154. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/unimplemented.js +0 -0
  155. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/unreachable.d.ts +0 -0
  156. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/unreachable.js +0 -0
  157. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/encoding/_util.d.ts +0 -0
  158. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/encoding/_util.js +0 -0
  159. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/encoding/base64.d.ts +0 -0
  160. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/encoding/base64.js +0 -0
  161. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/fmt/colors.d.ts +0 -0
  162. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/fmt/colors.js +0 -0
  163. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/media_types/_db.d.ts +0 -0
  164. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/media_types/_db.js +0 -0
  165. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/media_types/_util.d.ts +0 -0
  166. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/media_types/_util.js +0 -0
  167. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/media_types/content_type.d.ts +0 -0
  168. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/media_types/content_type.js +0 -0
  169. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/media_types/extension.d.ts +0 -0
  170. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/media_types/extension.js +0 -0
  171. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/media_types/extensions_by_type.d.ts +0 -0
  172. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/media_types/extensions_by_type.js +0 -0
  173. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/media_types/format_media_type.d.ts +0 -0
  174. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/media_types/format_media_type.js +0 -0
  175. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/media_types/get_charset.d.ts +0 -0
  176. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/media_types/get_charset.js +0 -0
  177. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/media_types/parse_media_type.d.ts +0 -0
  178. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/media_types/parse_media_type.js +0 -0
  179. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/media_types/type_by_extension.d.ts +0 -0
  180. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/media_types/type_by_extension.js +0 -0
  181. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/media_types/vendor/mime-db.v1.52.0.d.ts +0 -0
  182. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/media_types/vendor/mime-db.v1.52.0.js +0 -0
  183. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/assert_path.d.ts +0 -0
  184. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/assert_path.js +0 -0
  185. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/basename.d.ts +0 -0
  186. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/basename.js +0 -0
  187. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/common.d.ts +0 -0
  188. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/common.js +0 -0
  189. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/constants.d.ts +0 -0
  190. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/constants.js +0 -0
  191. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/dirname.d.ts +0 -0
  192. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/dirname.js +0 -0
  193. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/format.d.ts +0 -0
  194. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/format.js +0 -0
  195. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/from_file_url.d.ts +0 -0
  196. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/from_file_url.js +0 -0
  197. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/glob_to_reg_exp.d.ts +0 -0
  198. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/glob_to_reg_exp.js +0 -0
  199. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/normalize.d.ts +0 -0
  200. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/normalize.js +0 -0
  201. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/normalize_string.d.ts +0 -0
  202. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/normalize_string.js +0 -0
  203. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/relative.d.ts +0 -0
  204. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/relative.js +0 -0
  205. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/strip_trailing_separators.d.ts +0 -0
  206. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/strip_trailing_separators.js +0 -0
  207. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/to_file_url.d.ts +0 -0
  208. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/to_file_url.js +0 -0
  209. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_interface.js +0 -0
  210. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_os.d.ts +0 -0
  211. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_os.js +0 -0
  212. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/common.d.ts +0 -0
  213. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/common.js +0 -0
  214. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/constants.d.ts +0 -0
  215. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/constants.js +0 -0
  216. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/dirname.d.ts +0 -0
  217. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/dirname.js +0 -0
  218. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/extname.d.ts +0 -0
  219. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/extname.js +0 -0
  220. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/from_file_url.d.ts +0 -0
  221. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/from_file_url.js +0 -0
  222. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/glob_to_regexp.d.ts +0 -0
  223. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/glob_to_regexp.js +0 -0
  224. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/is_absolute.d.ts +0 -0
  225. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/is_absolute.js +0 -0
  226. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/is_glob.d.ts +0 -0
  227. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/is_glob.js +0 -0
  228. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/join.d.ts +0 -0
  229. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/join.js +0 -0
  230. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/join_globs.d.ts +0 -0
  231. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/join_globs.js +0 -0
  232. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/mod.d.ts +0 -0
  233. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/mod.js +0 -0
  234. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/normalize.d.ts +0 -0
  235. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/normalize.js +0 -0
  236. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/normalize_glob.d.ts +0 -0
  237. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/normalize_glob.js +0 -0
  238. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/_util.d.ts +0 -0
  239. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/_util.js +0 -0
  240. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/basename.d.ts +0 -0
  241. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/basename.js +0 -0
  242. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/common.d.ts +0 -0
  243. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/common.js +0 -0
  244. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/constants.d.ts +0 -0
  245. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/constants.js +0 -0
  246. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/dirname.d.ts +0 -0
  247. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/dirname.js +0 -0
  248. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/extname.d.ts +0 -0
  249. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/extname.js +0 -0
  250. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/format.d.ts +0 -0
  251. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/format.js +0 -0
  252. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/from_file_url.d.ts +0 -0
  253. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/from_file_url.js +0 -0
  254. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/glob_to_regexp.d.ts +0 -0
  255. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/glob_to_regexp.js +0 -0
  256. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/is_absolute.d.ts +0 -0
  257. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/is_absolute.js +0 -0
  258. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/is_glob.d.ts +0 -0
  259. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/is_glob.js +0 -0
  260. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/join.d.ts +0 -0
  261. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/join.js +0 -0
  262. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/join_globs.d.ts +0 -0
  263. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/join_globs.js +0 -0
  264. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/mod.d.ts +0 -0
  265. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/mod.js +0 -0
  266. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/normalize.d.ts +0 -0
  267. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/normalize.js +0 -0
  268. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/normalize_glob.d.ts +0 -0
  269. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/normalize_glob.js +0 -0
  270. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/parse.d.ts +0 -0
  271. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/parse.js +0 -0
  272. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/relative.d.ts +0 -0
  273. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/relative.js +0 -0
  274. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/resolve.d.ts +0 -0
  275. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/resolve.js +0 -0
  276. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/to_file_url.d.ts +0 -0
  277. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/to_file_url.js +0 -0
  278. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/to_namespaced_path.d.ts +0 -0
  279. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/to_namespaced_path.js +0 -0
  280. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/relative.d.ts +0 -0
  281. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/relative.js +0 -0
  282. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/resolve.d.ts +0 -0
  283. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/resolve.js +0 -0
  284. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/to_file_url.d.ts +0 -0
  285. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/to_file_url.js +0 -0
  286. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/to_namespaced_path.d.ts +0 -0
  287. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/to_namespaced_path.js +0 -0
  288. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/_util.d.ts +0 -0
  289. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/_util.js +0 -0
  290. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/common.d.ts +0 -0
  291. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/common.js +0 -0
  292. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/constants.d.ts +0 -0
  293. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/constants.js +0 -0
  294. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/dirname.d.ts +0 -0
  295. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/dirname.js +0 -0
  296. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/extname.d.ts +0 -0
  297. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/extname.js +0 -0
  298. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/format.d.ts +0 -0
  299. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/format.js +0 -0
  300. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/from_file_url.d.ts +0 -0
  301. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/from_file_url.js +0 -0
  302. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/glob_to_regexp.d.ts +0 -0
  303. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/glob_to_regexp.js +0 -0
  304. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/is_absolute.d.ts +0 -0
  305. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/is_absolute.js +0 -0
  306. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/is_glob.d.ts +0 -0
  307. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/is_glob.js +0 -0
  308. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/join.d.ts +0 -0
  309. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/join.js +0 -0
  310. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/join_globs.d.ts +0 -0
  311. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/join_globs.js +0 -0
  312. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/mod.d.ts +0 -0
  313. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/mod.js +0 -0
  314. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/normalize.d.ts +0 -0
  315. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/normalize.js +0 -0
  316. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/normalize_glob.d.ts +0 -0
  317. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/normalize_glob.js +0 -0
  318. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/parse.d.ts +0 -0
  319. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/parse.js +0 -0
  320. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/relative.d.ts +0 -0
  321. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/relative.js +0 -0
  322. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/resolve.d.ts +0 -0
  323. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/resolve.js +0 -0
  324. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/to_file_url.d.ts +0 -0
  325. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/to_file_url.js +0 -0
  326. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/to_namespaced_path.d.ts +0 -0
  327. /package/esm/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/to_namespaced_path.js +0 -0
  328. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/_constants.d.ts +0 -0
  329. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/_constants.js +0 -0
  330. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/_diff.d.ts +0 -0
  331. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/_diff.js +0 -0
  332. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/_format.d.ts +0 -0
  333. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/_format.js +0 -0
  334. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert.d.ts +0 -0
  335. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert.js +0 -0
  336. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_almost_equals.d.ts +0 -0
  337. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_almost_equals.js +0 -0
  338. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_array_includes.d.ts +0 -0
  339. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_array_includes.js +0 -0
  340. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_equals.d.ts +0 -0
  341. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_equals.js +0 -0
  342. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_exists.d.ts +0 -0
  343. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_exists.js +0 -0
  344. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_false.d.ts +0 -0
  345. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_false.js +0 -0
  346. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_greater.d.ts +0 -0
  347. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_greater.js +0 -0
  348. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_greater_or_equal.d.ts +0 -0
  349. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_greater_or_equal.js +0 -0
  350. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_instance_of.d.ts +0 -0
  351. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_instance_of.js +0 -0
  352. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_is_error.d.ts +0 -0
  353. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_is_error.js +0 -0
  354. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_less.d.ts +0 -0
  355. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_less.js +0 -0
  356. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_less_or_equal.d.ts +0 -0
  357. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_less_or_equal.js +0 -0
  358. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_match.d.ts +0 -0
  359. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_match.js +0 -0
  360. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_not_equals.d.ts +0 -0
  361. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_not_equals.js +0 -0
  362. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_not_instance_of.d.ts +0 -0
  363. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_not_instance_of.js +0 -0
  364. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_not_match.d.ts +0 -0
  365. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_not_match.js +0 -0
  366. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_not_strict_equals.d.ts +0 -0
  367. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_not_strict_equals.js +0 -0
  368. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_object_match.d.ts +0 -0
  369. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_object_match.js +0 -0
  370. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_rejects.d.ts +0 -0
  371. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_rejects.js +0 -0
  372. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_strict_equals.d.ts +0 -0
  373. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_strict_equals.js +0 -0
  374. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_string_includes.d.ts +0 -0
  375. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_string_includes.js +0 -0
  376. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_throws.d.ts +0 -0
  377. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assert_throws.js +0 -0
  378. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assertion_error.d.ts +0 -0
  379. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/assertion_error.js +0 -0
  380. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/equal.d.ts +0 -0
  381. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/equal.js +0 -0
  382. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/fail.d.ts +0 -0
  383. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/fail.js +0 -0
  384. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/mod.d.ts +0 -0
  385. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/mod.js +0 -0
  386. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/unimplemented.d.ts +0 -0
  387. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/unimplemented.js +0 -0
  388. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/unreachable.d.ts +0 -0
  389. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/assert/unreachable.js +0 -0
  390. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/encoding/_util.d.ts +0 -0
  391. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/encoding/_util.js +0 -0
  392. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/encoding/base64.d.ts +0 -0
  393. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/encoding/base64.js +0 -0
  394. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/fmt/colors.d.ts +0 -0
  395. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/fmt/colors.js +0 -0
  396. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/media_types/_db.d.ts +0 -0
  397. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/media_types/_db.js +0 -0
  398. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/media_types/_util.d.ts +0 -0
  399. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/media_types/_util.js +0 -0
  400. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/media_types/content_type.d.ts +0 -0
  401. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/media_types/content_type.js +0 -0
  402. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/media_types/extension.d.ts +0 -0
  403. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/media_types/extension.js +0 -0
  404. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/media_types/extensions_by_type.d.ts +0 -0
  405. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/media_types/extensions_by_type.js +0 -0
  406. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/media_types/format_media_type.d.ts +0 -0
  407. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/media_types/format_media_type.js +0 -0
  408. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/media_types/get_charset.d.ts +0 -0
  409. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/media_types/get_charset.js +0 -0
  410. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/media_types/parse_media_type.d.ts +0 -0
  411. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/media_types/parse_media_type.js +0 -0
  412. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/media_types/type_by_extension.d.ts +0 -0
  413. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/media_types/type_by_extension.js +0 -0
  414. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/media_types/vendor/mime-db.v1.52.0.d.ts +0 -0
  415. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/media_types/vendor/mime-db.v1.52.0.js +0 -0
  416. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/assert_path.d.ts +0 -0
  417. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/assert_path.js +0 -0
  418. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/basename.d.ts +0 -0
  419. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/basename.js +0 -0
  420. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/common.d.ts +0 -0
  421. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/common.js +0 -0
  422. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/constants.d.ts +0 -0
  423. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/constants.js +0 -0
  424. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/dirname.d.ts +0 -0
  425. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/dirname.js +0 -0
  426. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/format.d.ts +0 -0
  427. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/format.js +0 -0
  428. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/from_file_url.d.ts +0 -0
  429. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/from_file_url.js +0 -0
  430. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/glob_to_reg_exp.d.ts +0 -0
  431. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/glob_to_reg_exp.js +0 -0
  432. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/normalize.d.ts +0 -0
  433. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/normalize.js +0 -0
  434. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/normalize_string.d.ts +0 -0
  435. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/normalize_string.js +0 -0
  436. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/relative.d.ts +0 -0
  437. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/relative.js +0 -0
  438. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/strip_trailing_separators.d.ts +0 -0
  439. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/strip_trailing_separators.js +0 -0
  440. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/to_file_url.d.ts +0 -0
  441. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_common/to_file_url.js +0 -0
  442. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_interface.js +0 -0
  443. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_os.d.ts +0 -0
  444. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/_os.js +0 -0
  445. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/common.d.ts +0 -0
  446. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/common.js +0 -0
  447. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/constants.d.ts +0 -0
  448. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/constants.js +0 -0
  449. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/dirname.d.ts +0 -0
  450. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/dirname.js +0 -0
  451. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/extname.d.ts +0 -0
  452. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/extname.js +0 -0
  453. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/from_file_url.d.ts +0 -0
  454. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/from_file_url.js +0 -0
  455. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/glob_to_regexp.d.ts +0 -0
  456. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/glob_to_regexp.js +0 -0
  457. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/is_absolute.d.ts +0 -0
  458. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/is_absolute.js +0 -0
  459. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/is_glob.d.ts +0 -0
  460. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/is_glob.js +0 -0
  461. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/join.d.ts +0 -0
  462. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/join.js +0 -0
  463. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/join_globs.d.ts +0 -0
  464. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/join_globs.js +0 -0
  465. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/mod.d.ts +0 -0
  466. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/mod.js +0 -0
  467. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/normalize.d.ts +0 -0
  468. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/normalize.js +0 -0
  469. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/normalize_glob.d.ts +0 -0
  470. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/normalize_glob.js +0 -0
  471. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/_util.d.ts +0 -0
  472. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/_util.js +0 -0
  473. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/basename.d.ts +0 -0
  474. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/basename.js +0 -0
  475. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/common.d.ts +0 -0
  476. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/common.js +0 -0
  477. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/constants.d.ts +0 -0
  478. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/constants.js +0 -0
  479. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/dirname.d.ts +0 -0
  480. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/dirname.js +0 -0
  481. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/extname.d.ts +0 -0
  482. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/extname.js +0 -0
  483. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/format.d.ts +0 -0
  484. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/format.js +0 -0
  485. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/from_file_url.d.ts +0 -0
  486. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/from_file_url.js +0 -0
  487. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/glob_to_regexp.d.ts +0 -0
  488. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/glob_to_regexp.js +0 -0
  489. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/is_absolute.d.ts +0 -0
  490. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/is_absolute.js +0 -0
  491. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/is_glob.d.ts +0 -0
  492. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/is_glob.js +0 -0
  493. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/join.d.ts +0 -0
  494. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/join.js +0 -0
  495. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/join_globs.d.ts +0 -0
  496. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/join_globs.js +0 -0
  497. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/mod.d.ts +0 -0
  498. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/mod.js +0 -0
  499. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/normalize.d.ts +0 -0
  500. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/normalize.js +0 -0
  501. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/normalize_glob.d.ts +0 -0
  502. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/normalize_glob.js +0 -0
  503. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/parse.d.ts +0 -0
  504. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/parse.js +0 -0
  505. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/relative.d.ts +0 -0
  506. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/relative.js +0 -0
  507. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/resolve.d.ts +0 -0
  508. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/resolve.js +0 -0
  509. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/to_file_url.d.ts +0 -0
  510. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/to_file_url.js +0 -0
  511. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/to_namespaced_path.d.ts +0 -0
  512. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/posix/to_namespaced_path.js +0 -0
  513. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/relative.d.ts +0 -0
  514. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/relative.js +0 -0
  515. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/resolve.d.ts +0 -0
  516. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/resolve.js +0 -0
  517. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/to_file_url.d.ts +0 -0
  518. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/to_file_url.js +0 -0
  519. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/to_namespaced_path.d.ts +0 -0
  520. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/to_namespaced_path.js +0 -0
  521. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/_util.d.ts +0 -0
  522. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/_util.js +0 -0
  523. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/common.d.ts +0 -0
  524. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/common.js +0 -0
  525. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/constants.d.ts +0 -0
  526. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/constants.js +0 -0
  527. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/dirname.d.ts +0 -0
  528. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/dirname.js +0 -0
  529. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/extname.d.ts +0 -0
  530. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/extname.js +0 -0
  531. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/format.d.ts +0 -0
  532. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/format.js +0 -0
  533. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/from_file_url.d.ts +0 -0
  534. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/from_file_url.js +0 -0
  535. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/glob_to_regexp.d.ts +0 -0
  536. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/glob_to_regexp.js +0 -0
  537. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/is_absolute.d.ts +0 -0
  538. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/is_absolute.js +0 -0
  539. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/is_glob.d.ts +0 -0
  540. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/is_glob.js +0 -0
  541. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/join.d.ts +0 -0
  542. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/join.js +0 -0
  543. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/join_globs.d.ts +0 -0
  544. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/join_globs.js +0 -0
  545. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/mod.d.ts +0 -0
  546. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/mod.js +0 -0
  547. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/normalize.d.ts +0 -0
  548. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/normalize.js +0 -0
  549. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/normalize_glob.d.ts +0 -0
  550. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/normalize_glob.js +0 -0
  551. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/parse.d.ts +0 -0
  552. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/parse.js +0 -0
  553. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/relative.d.ts +0 -0
  554. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/relative.js +0 -0
  555. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/resolve.d.ts +0 -0
  556. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/resolve.js +0 -0
  557. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/to_file_url.d.ts +0 -0
  558. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/to_file_url.js +0 -0
  559. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/to_namespaced_path.d.ts +0 -0
  560. /package/script/deps/deno.land/{std@0.220.1 → std@0.221.0}/path/windows/to_namespaced_path.js +0 -0
@@ -9,7 +9,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
9
9
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
10
10
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
11
11
  };
12
- var _Storage_instances, _Storage_authKeyId, _Storage_resetAuthKeyId, _Storage_accountType, _Storage_getUpdateId;
12
+ var _Storage_instances, _Storage_authKeyId, _Storage_resetAuthKeyId, _Storage_accountId, _Storage_accountType, _Storage_getUpdateId;
13
13
  import { base64DecodeUrlSafe, base64EncodeUrlSafe, bigIntFromBuffer, rleDecode, rleEncode, sha1, UNREACHABLE, ZERO_CHANNEL_ID } from "../1_utilities.js";
14
14
  import { peerToChatId, serialize, TLObject, TLReader, TLWriter, types } from "../2_tl.js";
15
15
  // key parts
@@ -26,6 +26,7 @@ export const K = {
26
26
  P: (string) => `auth.${string}`,
27
27
  dc: () => [K.auth.P("dc")],
28
28
  key: () => [K.auth.P("key")],
29
+ accountId: () => [K.auth.P("accountId")],
29
30
  accountType: () => [K.auth.P("accountType")],
30
31
  },
31
32
  updates: {
@@ -70,6 +71,7 @@ export class Storage {
70
71
  constructor() {
71
72
  _Storage_instances.add(this);
72
73
  _Storage_authKeyId.set(this, null);
74
+ _Storage_accountId.set(this, null);
73
75
  _Storage_accountType.set(this, null);
74
76
  }
75
77
  get isMemoryStorage() {
@@ -97,16 +99,16 @@ export class Storage {
97
99
  if (typeof apiId_ === "number") {
98
100
  await this.setApiId(apiId_);
99
101
  }
100
- const [dc, authKey, apiId] = await Promise.all([this.getDc(), this.getAuthKey(), this.getApiId()]);
101
- if (dc == null || authKey == null) {
102
+ const [dc, authKey, apiId, accountId, accountType] = await Promise.all([this.getDc(), this.getAuthKey(), this.getApiId(), this.getAccountId(), this.getAccountType()]);
103
+ if (dc == null || authKey == null || apiId == null || accountId == null || accountType == null) {
102
104
  throw new Error("Not authorized");
103
105
  }
104
106
  const writer = new TLWriter();
105
107
  writer.writeString(dc);
106
108
  writer.writeBytes(authKey);
107
- if (apiId) {
108
- writer.writeInt32(apiId);
109
- }
109
+ writer.writeInt32(apiId);
110
+ writer.write(new Uint8Array([accountType == "bot" ? 1 : 0]));
111
+ writer.writeInt64(BigInt(accountId));
110
112
  const data = rleEncode(writer.buffer);
111
113
  return base64EncodeUrlSafe(data);
112
114
  }
@@ -115,10 +117,12 @@ export class Storage {
115
117
  const reader = new TLReader(data);
116
118
  const dc = reader.readString();
117
119
  const authKey = reader.readBytes();
118
- if (reader.buffer.length) {
119
- const apiId = reader.readInt32();
120
- await this.setApiId(apiId);
121
- }
120
+ const apiId = reader.readInt32();
121
+ const isBot = reader.read(1)[0];
122
+ const accountId = Number(reader.readInt64());
123
+ await this.setAccountId(accountId);
124
+ await this.setAccountType(isBot ? "bot" : "user");
125
+ await this.setApiId(apiId);
122
126
  await this.setDc(dc);
123
127
  await this.setAuthKey(authKey);
124
128
  }
@@ -228,6 +232,17 @@ export class Storage {
228
232
  return null;
229
233
  }
230
234
  }
235
+ async setAccountId(accountId) {
236
+ await this.set(K.auth.accountId(), accountId);
237
+ }
238
+ async getAccountId() {
239
+ if (__classPrivateFieldGet(this, _Storage_accountId, "f") != null) {
240
+ return __classPrivateFieldGet(this, _Storage_accountId, "f");
241
+ }
242
+ else {
243
+ return (__classPrivateFieldSet(this, _Storage_accountId, await this.get(K.auth.accountId()), "f"));
244
+ }
245
+ }
231
246
  async setAccountType(type) {
232
247
  try {
233
248
  await this.getAccountType();
@@ -429,7 +444,7 @@ export class Storage {
429
444
  return await this.get(K.connection.apiId());
430
445
  }
431
446
  }
432
- _Storage_authKeyId = new WeakMap(), _Storage_accountType = new WeakMap(), _Storage_instances = new WeakSet(), _Storage_resetAuthKeyId = async function _Storage_resetAuthKeyId(authKey) {
447
+ _Storage_authKeyId = new WeakMap(), _Storage_accountId = new WeakMap(), _Storage_accountType = new WeakMap(), _Storage_instances = new WeakSet(), _Storage_resetAuthKeyId = async function _Storage_resetAuthKeyId(authKey) {
433
448
  if (authKey != null) {
434
449
  __classPrivateFieldSet(this, _Storage_authKeyId, await sha1(authKey).then((hash) => bigIntFromBuffer(hash.subarray(-8), true, false)), "f");
435
450
  }
@@ -1,3 +1,4 @@
1
+ import { InputError } from "../0_errors.js";
1
2
  import { base64DecodeUrlSafe, base64EncodeUrlSafe, rleDecode, rleEncode, UNREACHABLE } from "../1_utilities.js";
2
3
  import { TLReader, TLWriter } from "../2_tl.js";
3
4
  const NEXT_VERSION = 53;
@@ -215,7 +216,7 @@ function hasFileReference(fileType) {
215
216
  export function deserializeFileId(fileId) {
216
217
  const reader = new TLReader(rleDecode(base64DecodeUrlSafe(fileId)));
217
218
  if (reader.buffer[reader.buffer.length - 1] != PERSISTENT_ID_VERSION) {
218
- throw new Error("Unsupported version");
219
+ throw new InputError("Unsupported file ID format");
219
220
  }
220
221
  const originalType = reader.readInt32();
221
222
  const type = ((originalType & ~WEB_LOCATION_FLAG) & ~FILE_REFERENCE_FLAG);
@@ -11,6 +11,7 @@ export interface _ChatPhotoBase {
11
11
  bigFileUniqueId: string;
12
12
  /** Whether the chat photo is animated. */
13
13
  hasVideo: boolean;
14
+ strippedThumbnail?: Uint8Array;
14
15
  }
15
16
  /** @unlisted */
16
17
  export interface ChatPhotoUser extends _ChatPhotoBase {
@@ -1,3 +1,4 @@
1
+ import { cleanObject } from "../1_utilities.js";
1
2
  import { types } from "../2_tl.js";
2
3
  import { FileType, PhotoSourceType, serializeFileId, toUniqueFileId } from "./0__file_id.js";
3
4
  export function constructChatPhoto(photo, chatId, chatAccessHash) {
@@ -16,22 +17,24 @@ export function constructChatPhoto(photo, chatId, chatAccessHash) {
16
17
  const bigFileId = serializeFileId(bigFileId_);
17
18
  const bigFileUniqueId = toUniqueFileId(bigFileId_);
18
19
  if (photo instanceof types.ChatPhoto) {
19
- return {
20
+ return cleanObject({
20
21
  smallFileId,
21
22
  smallFileUniqueId,
22
23
  bigFileId,
23
24
  bigFileUniqueId,
24
25
  hasVideo: photo.has_video || false,
25
- };
26
+ strippedThumbnail: photo.stripped_thumb,
27
+ });
26
28
  }
27
29
  else {
28
- return {
30
+ return cleanObject({
29
31
  personal: photo.personal ? true : undefined,
30
32
  smallFileId,
31
33
  smallFileUniqueId,
32
34
  bigFileId,
33
35
  bigFileUniqueId,
34
36
  hasVideo: photo.has_video || false,
35
- };
37
+ strippedThumbnail: photo.stripped_thumb,
38
+ });
36
39
  }
37
40
  }
@@ -96,3 +96,4 @@ export interface MessageEntityCustomEmoji extends _MessageEntityBase {
96
96
  export type MessageEntity = MessageEntityMention | MessageEntityHashtag | MessageEntityBotCommand | MessageEntityURL | MessageEntityEmailAddress | MessageEntityBold | MessageEntityItalic | MessageEntityCode | MessageEntityPre | MessageEntityTextLink | MessageEntityTextMention | MessageEntityCashtag | MessageEntityPhoneNumber | MessageEntityUnderline | MessageEntityStrikethrough | MessageEntityBlockquote | MessageEntityBankCard | MessageEntitySpoiler | MessageEntityCustomEmoji;
97
97
  export declare function constructMessageEntity(obj: enums.MessageEntity): MessageEntity | null;
98
98
  export declare function messageEntityToTlObject(entity: MessageEntity, getEntity: EntityGetter): Promise<enums.MessageEntity>;
99
+ export declare function sortMessageEntities(entities: MessageEntity[]): MessageEntity[];
@@ -127,3 +127,37 @@ export async function messageEntityToTlObject(entity, getEntity) {
127
127
  return new types.MessageEntityCustomEmoji({ offset, length, document_id: BigInt(entity.customEmojiId) });
128
128
  }
129
129
  }
130
+ const priorities = {
131
+ "mention": 50,
132
+ "hashtag": 50,
133
+ "botCommand": 50,
134
+ "url": 50,
135
+ "email": 50,
136
+ "bold": 90,
137
+ "italic": 91,
138
+ "code": 20,
139
+ "pre": 11,
140
+ "textLink": 49,
141
+ "textMention": 49,
142
+ "cashtag": 50,
143
+ "phoneNumber": 50,
144
+ "underline": 92,
145
+ "strikethrough": 93,
146
+ "blockquote": 0,
147
+ "bankCard": 50,
148
+ "spoiler": 94,
149
+ "customEmoji": 99,
150
+ };
151
+ export function sortMessageEntities(entities) {
152
+ return entities.sort(({ offset, type, length }, other) => {
153
+ if (offset !== other.offset) {
154
+ return offset < other.offset ? -1 : 1;
155
+ }
156
+ if (length !== other.length) {
157
+ return length > other.length ? -1 : 1;
158
+ }
159
+ const priority = priorities[type];
160
+ const otherPriority = priorities[other.type];
161
+ return priority < otherPriority ? -1 : 1;
162
+ });
163
+ }
@@ -1,2 +1,2 @@
1
1
  /** Message parse mode. */
2
- export type ParseMode = "HTML" | null;
2
+ export type ParseMode = "HTML" | "Markdown" | null;
@@ -1,7 +1,8 @@
1
+ import { InputError } from "../0_errors.js";
1
2
  import { base64DecodeUrlSafe, base64EncodeUrlSafe, cleanObject, UNREACHABLE } from "../1_utilities.js";
2
3
  import { peerToChatId, serialize, TLReader, types } from "../2_tl.js";
3
4
  import { constructUser } from "./1_user.js";
4
- const ERR_INVALID_INLINE_MESSAGE_ID = new Error("Invalid inline message ID");
5
+ const ERR_INVALID_INLINE_MESSAGE_ID = new InputError("Invalid inline message ID");
5
6
  export function deserializeInlineMessageId(inlineMessageId) {
6
7
  try {
7
8
  const buffer = base64DecodeUrlSafe(inlineMessageId);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mtkruto/node",
3
- "version": "0.1.183",
3
+ "version": "0.1.191",
4
4
  "description": "MTKruto for Node.js",
5
5
  "author": "Roj <rojvv@icloud.com>",
6
6
  "repository": {
@@ -1,7 +1,7 @@
1
- export * from "./deps/deno.land/std@0.220.1/assert/mod.js";
2
- export * as path from "./deps/deno.land/std@0.220.1/path/mod.js";
3
- export { decodeBase64, encodeBase64 } from "./deps/deno.land/std@0.220.1/encoding/base64.js";
4
- import { contentType as contentType_ } from "./deps/deno.land/std@0.220.1/media_types/content_type.js";
1
+ export * from "./deps/deno.land/std@0.221.0/assert/mod.js";
2
+ export * as path from "./deps/deno.land/std@0.221.0/path/mod.js";
3
+ export { decodeBase64, encodeBase64 } from "./deps/deno.land/std@0.221.0/encoding/base64.js";
4
+ import { contentType as contentType_ } from "./deps/deno.land/std@0.221.0/media_types/content_type.js";
5
5
  export declare const contentType: typeof contentType_;
6
6
  export declare function extension(mimeType: string): string;
7
7
  export { ctr256, factorize, ige256Decrypt, ige256Encrypt, init as initTgCrypto } from "./deps/deno.land/x/tgcrypto@0.3.3/mod.js";
package/script/0_deps.js CHANGED
@@ -27,12 +27,12 @@ var __importStar = (this && this.__importStar) || function (mod) {
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.Parser = exports.gzip = exports.gunzip = exports.initTgCrypto = exports.ige256Encrypt = exports.ige256Decrypt = exports.factorize = exports.ctr256 = exports.extension = exports.contentType = exports.encodeBase64 = exports.decodeBase64 = exports.path = void 0;
30
- __exportStar(require("./deps/deno.land/std@0.220.1/assert/mod.js"), exports);
31
- exports.path = __importStar(require("./deps/deno.land/std@0.220.1/path/mod.js"));
32
- var base64_js_1 = require("./deps/deno.land/std@0.220.1/encoding/base64.js");
30
+ __exportStar(require("./deps/deno.land/std@0.221.0/assert/mod.js"), exports);
31
+ exports.path = __importStar(require("./deps/deno.land/std@0.221.0/path/mod.js"));
32
+ var base64_js_1 = require("./deps/deno.land/std@0.221.0/encoding/base64.js");
33
33
  Object.defineProperty(exports, "decodeBase64", { enumerable: true, get: function () { return base64_js_1.decodeBase64; } });
34
34
  Object.defineProperty(exports, "encodeBase64", { enumerable: true, get: function () { return base64_js_1.encodeBase64; } });
35
- const content_type_js_1 = require("./deps/deno.land/std@0.220.1/media_types/content_type.js");
35
+ const content_type_js_1 = require("./deps/deno.land/std@0.221.0/media_types/content_type.js");
36
36
  const contentType = (extentionOrType) => {
37
37
  if (extentionOrType == "tgs") {
38
38
  return "application/x-tgsticker";
@@ -42,7 +42,7 @@ const contentType = (extentionOrType) => {
42
42
  }
43
43
  };
44
44
  exports.contentType = contentType;
45
- const extension_js_1 = require("./deps/deno.land/std@0.220.1/media_types/extension.js");
45
+ const extension_js_1 = require("./deps/deno.land/std@0.221.0/media_types/extension.js");
46
46
  function extension(mimeType) {
47
47
  if (mimeType == "application/x-tgsticker") {
48
48
  return "tgs";
@@ -0,0 +1,12 @@
1
+ export declare class MtkrutoError extends Error {
2
+ }
3
+ export declare class ConnectionError extends MtkrutoError {
4
+ }
5
+ export declare class AccessError extends MtkrutoError {
6
+ }
7
+ export declare class InputError extends MtkrutoError {
8
+ }
9
+ export declare class TransportError extends MtkrutoError {
10
+ readonly code: number;
11
+ constructor(code: number);
12
+ }
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TransportError = exports.InputError = exports.AccessError = exports.ConnectionError = exports.MtkrutoError = void 0;
4
+ class MtkrutoError extends Error {
5
+ }
6
+ exports.MtkrutoError = MtkrutoError;
7
+ class ConnectionError extends MtkrutoError {
8
+ }
9
+ exports.ConnectionError = ConnectionError;
10
+ class AccessError extends MtkrutoError {
11
+ }
12
+ exports.AccessError = AccessError;
13
+ class InputError extends MtkrutoError {
14
+ }
15
+ exports.InputError = InputError;
16
+ class TransportError extends MtkrutoError {
17
+ constructor(code) {
18
+ super(`Transport error: ${code}`);
19
+ Object.defineProperty(this, "code", {
20
+ enumerable: true,
21
+ configurable: true,
22
+ writable: true,
23
+ value: code
24
+ });
25
+ }
26
+ }
27
+ exports.TransportError = TransportError;
@@ -3,7 +3,7 @@ export type PublicKeys = readonly [bigint, [bigint, bigint]][];
3
3
  export declare const PUBLIC_KEYS: PublicKeys;
4
4
  export declare const INITIAL_DC: DC;
5
5
  export declare const LAYER = 176;
6
- export declare const APP_VERSION = "MTKruto 0.1.180";
6
+ export declare const APP_VERSION = "MTKruto 0.1.190";
7
7
  export declare const DEVICE_MODEL: string;
8
8
  export declare const LANG_CODE: string;
9
9
  export declare const LANG_PACK = "";
@@ -78,7 +78,7 @@ exports.PUBLIC_KEYS = Object.freeze([
78
78
  ]);
79
79
  exports.INITIAL_DC = "2";
80
80
  exports.LAYER = 176;
81
- exports.APP_VERSION = "MTKruto 0.1.180";
81
+ exports.APP_VERSION = "MTKruto 0.1.190";
82
82
  // @ts-ignore: lib
83
83
  exports.DEVICE_MODEL = typeof dntShim.Deno === "undefined" ? typeof navigator === "undefined" ? typeof process === "undefined" ? "Unknown" : process.platform + "-" + process.arch : (navigator.userAgent.split(" ")[0] || "Unknown") : dntShim.Deno.build.os + "-" + dntShim.Deno.build.arch;
84
84
  exports.LANG_CODE = typeof navigator === "undefined" || typeof navigator.language !== "string" ? "en" : navigator.language.split("-")[0];
@@ -14,6 +14,7 @@ var _ClientAbstract_dc;
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.ClientAbstract = void 0;
16
16
  const _0_deps_js_1 = require("../0_deps.js");
17
+ const _0_errors_js_1 = require("../0_errors.js");
17
18
  const _3_transport_js_1 = require("../3_transport.js");
18
19
  const _4_constants_js_1 = require("../4_constants.js");
19
20
  class ClientAbstract {
@@ -58,7 +59,7 @@ class ClientAbstract {
58
59
  }
59
60
  get dcId() {
60
61
  if (!this.transport) {
61
- throw new Error("Not connected");
62
+ throw new _0_errors_js_1.ConnectionError("Not connected.");
62
63
  }
63
64
  return this.transport.dcId;
64
65
  }
@@ -85,7 +86,7 @@ class ClientAbstract {
85
86
  }
86
87
  async disconnect() {
87
88
  if (!this.transport) {
88
- throw new Error("Not connected");
89
+ throw new _0_errors_js_1.ConnectionError("Not connected.");
89
90
  }
90
91
  await this.transport.transport.deinitialize();
91
92
  await this.transport.connection.close();
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.parseHtml = void 0;
4
4
  const _0_deps_js_1 = require("../0_deps.js");
5
+ const _0_errors_js_1 = require("../0_errors.js");
5
6
  function parseHtml(html) {
6
7
  html = html.trim();
7
8
  let text = "";
@@ -29,7 +30,7 @@ function parseHtml(html) {
29
30
  case "a": {
30
31
  const url = attribs.href;
31
32
  if (!url) {
32
- throw new Error("Missing attribute href");
33
+ throw new _0_errors_js_1.InputError("Missing attribute: href");
33
34
  }
34
35
  stack.push({ type: "textLink", offset: text.length, length: 0, url });
35
36
  break;
@@ -44,7 +45,7 @@ function parseHtml(html) {
44
45
  break;
45
46
  case "span":
46
47
  if (attribs.class != "tg-spoiler") {
47
- throw new Error("The class attribute must be tg-spoiler");
48
+ throw new _0_errors_js_1.InputError('The class attribute must be "tg-spoiler."');
48
49
  }
49
50
  // falls through
50
51
  case "tg-spoiler":
@@ -52,7 +53,7 @@ function parseHtml(html) {
52
53
  break;
53
54
  case "tg-emoji":
54
55
  if (!attribs["emoji-id"]) {
55
- throw new Error("Missing attribute emoji-id");
56
+ throw new _0_errors_js_1.InputError("Missing attribute: emoji-id");
56
57
  }
57
58
  stack.push({ type: "spoiler", offset: text.length, length: 0 });
58
59
  break;
@@ -78,12 +79,6 @@ function parseHtml(html) {
78
79
  });
79
80
  parser.write(html);
80
81
  parser.end();
81
- text = text.trimEnd();
82
- for (const entity of entities) {
83
- while (text[entity.offset + (entity.length - 1)] === undefined) {
84
- --entity.length;
85
- }
86
- }
87
82
  return [text, entities];
88
83
  }
89
84
  exports.parseHtml = parseHtml;
@@ -0,0 +1,21 @@
1
+ import { MessageEntity } from "../3_types.js";
2
+ export declare const CODEPOINTS: {
3
+ "\t": number;
4
+ "\r": number;
5
+ "\0": number;
6
+ "\v": number;
7
+ "\n": number;
8
+ " ": number;
9
+ _: number;
10
+ "[": number;
11
+ "]": number;
12
+ "(": number;
13
+ ")": number;
14
+ "`": number;
15
+ "~": number;
16
+ "\\": number;
17
+ "*": number;
18
+ "!": number;
19
+ "|": number;
20
+ };
21
+ export declare function parseMarkdown(text_: string): [string, MessageEntity[]];