@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
@@ -10,9 +10,10 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
10
10
  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");
11
11
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
12
12
  };
13
- var _Client_instances, _Client_client, _Client_guaranteeUpdateDelivery, _Client_updateManager, _Client_networkStatisticsManager, _Client_botInfoManager, _Client_fileManager, _Client_reactionManager, _Client_messageManager, _Client_storyManager, _Client_callbackQueryManager, _Client_inlineQueryManager, _Client_chatListManager, _Client_accountManager, _Client_parseMode, _Client_publicKeys, _Client_ignoreOutgoing, _Client_storeMessages, _Client_L, _Client_Lauthorize, _Client_LpingLoop, _Client_LhandleMigrationError, _Client_L$initConncetion, _Client_namespaceProxies, _Client_getApiId, _Client_constructContext, _Client_propagateConnectionState, _Client_lastPropagatedConnectionState, _Client_stateChangeHandler, _Client_storageInited, _Client_initStorage, _Client_connectionInited, _Client_initConnection, _Client_lastPropagatedAuthorizationState, _Client_propagateAuthorizationState, _Client_selfId, _Client_getSelfId, _Client_pingLoopStarted, _Client_pingLoopAbortController, _Client_pingInterval, _Client_lastUpdates, _Client_startPingLoop, _Client_pingLoop, _Client_invoke, _Client_handleInvokeError, _Client_getUserAccessHash, _Client_getChannelAccessHash, _Client_getInputPeerInner, _Client_handleCtxUpdate, _Client_queueHandleCtxUpdate, _Client_handleUpdate, _Client_lastGetMe, _Client_getMe;
13
+ var _Client_instances, _Client_client, _Client_guaranteeUpdateDelivery, _Client_updateManager, _Client_networkStatisticsManager, _Client_botInfoManager, _Client_fileManager, _Client_reactionManager, _Client_messageManager, _Client_storyManager, _Client_callbackQueryManager, _Client_inlineQueryManager, _Client_chatListManager, _Client_accountManager, _Client_parseMode, _Client_publicKeys, _Client_ignoreOutgoing, _Client_storeMessages, _Client_Lauthorize, _Client_LpingLoop, _Client_LhandleMigrationError, _Client_L$initConncetion, _Client_namespaceProxies, _Client_getApiId, _Client_constructContext, _Client_propagateConnectionState, _Client_lastPropagatedConnectionState, _Client_stateChangeHandler, _Client_storageInited, _Client_initStorage, _Client_connectionInited, _Client_lastPropagatedAuthorizationState, _Client_propagateAuthorizationState, _Client_getSelfId, _Client_pingLoopStarted, _Client_pingLoopAbortController, _Client_pingInterval, _Client_lastUpdates, _Client_startPingLoop, _Client_pingLoop, _Client_invoke, _Client_handleInvokeError, _Client_getUserAccessHash, _Client_getChannelAccessHash, _Client_getInputPeerInner, _Client_handleCtxUpdate, _Client_queueHandleCtxUpdate, _Client_handleUpdate, _Client_lastGetMe, _Client_getMe;
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.Client = exports.handleMigrationError = exports.restartAuth = exports.Composer = void 0;
16
+ const _0_errors_js_1 = require("../0_errors.js");
16
17
  const _1_utilities_js_1 = require("../1_utilities.js");
17
18
  const _2_tl_js_1 = require("../2_tl.js");
18
19
  const _3_storage_js_1 = require("../3_storage.js");
@@ -138,7 +139,6 @@ class Client extends Composer {
138
139
  _Client_publicKeys.set(this, void 0);
139
140
  _Client_ignoreOutgoing.set(this, void 0);
140
141
  _Client_storeMessages.set(this, void 0);
141
- _Client_L.set(this, void 0);
142
142
  _Client_Lauthorize.set(this, void 0);
143
143
  _Client_LpingLoop.set(this, void 0);
144
144
  _Client_LhandleMigrationError.set(this, void 0);
@@ -282,6 +282,11 @@ class Client extends Composer {
282
282
  const replyToMessageId = getReplyToMessageId(params?.quote, chatId, messageId);
283
283
  return this.sendDocument(chatId, document, { ...params, replyToMessageId });
284
284
  },
285
+ replySticker: (sticker, params) => {
286
+ const { chatId, messageId } = mustGetMsg();
287
+ const replyToMessageId = getReplyToMessageId(params?.quote, chatId, messageId);
288
+ return this.sendSticker(chatId, sticker, { ...params, replyToMessageId });
289
+ },
285
290
  replyContact: (firstName, number, params) => {
286
291
  const { chatId, messageId } = mustGetMsg();
287
292
  const replyToMessageId = getReplyToMessageId(params?.quote, chatId, messageId);
@@ -392,6 +397,10 @@ class Client extends Composer {
392
397
  const inlineMessageId = mustGetInlineMsgId();
393
398
  return this.editInlineMessageText(inlineMessageId, text, params);
394
399
  },
400
+ editInlineMessageLiveLocation: (latitude, longitude, params) => {
401
+ const inlineMessageId = mustGetInlineMsgId();
402
+ return this.editInlineMessageLiveLocation(inlineMessageId, latitude, longitude, params);
403
+ },
395
404
  editInlineMessageReplyMarkup: (params) => {
396
405
  const inlineMessageId = mustGetInlineMsgId();
397
406
  return this.editInlineMessageReplyMarkup(inlineMessageId, params);
@@ -400,6 +409,10 @@ class Client extends Composer {
400
409
  const { chatId } = mustGetMsg();
401
410
  return this.editMessageText(chatId, messageId, text, params);
402
411
  },
412
+ editMessageLiveLocation: (messageId, latitude, longitude, params) => {
413
+ const { chatId } = mustGetMsg();
414
+ return this.editMessageLiveLocation(chatId, messageId, latitude, longitude, params);
415
+ },
403
416
  editMessageReplyMarkup: (messageId, params) => {
404
417
  const { chatId } = mustGetMsg();
405
418
  return this.editMessageReplyMarkup(chatId, messageId, params);
@@ -535,7 +548,6 @@ class Client extends Composer {
535
548
  _Client_storageInited.set(this, false);
536
549
  _Client_connectionInited.set(this, false);
537
550
  _Client_lastPropagatedAuthorizationState.set(this, null);
538
- _Client_selfId.set(this, null);
539
551
  _Client_pingLoopStarted.set(this, false);
540
552
  _Client_pingLoopAbortController.set(this, null);
541
553
  _Client_pingInterval.set(this, 60 * 1000); // 60 seconds
@@ -620,7 +632,7 @@ class Client extends Composer {
620
632
  this.prefixes = params?.prefixes;
621
633
  }
622
634
  __classPrivateFieldSet(this, _Client_guaranteeUpdateDelivery, params?.guaranteeUpdateDelivery ?? false, "f");
623
- const L = __classPrivateFieldSet(this, _Client_L, (0, _1_utilities_js_1.getLogger)("Client").client(id++), "f");
635
+ const L = (0, _1_utilities_js_1.getLogger)("Client").client(id++);
624
636
  __classPrivateFieldSet(this, _Client_Lauthorize, L.branch("authorize"), "f");
625
637
  __classPrivateFieldSet(this, _Client_LpingLoop, L.branch("pingLoop"), "f");
626
638
  __classPrivateFieldSet(this, _Client_LhandleMigrationError, L.branch("[handleMigrationError]"), "f");
@@ -657,6 +669,7 @@ class Client extends Composer {
657
669
  try {
658
670
  const exportedAuth = await this.api.auth.exportAuthorization({ dc_id: dcId });
659
671
  await client.authorize(exportedAuth);
672
+ // throw 1;
660
673
  return true;
661
674
  }
662
675
  catch (err) {
@@ -678,7 +691,6 @@ class Client extends Composer {
678
691
  }
679
692
  await client.setDc(dc);
680
693
  }
681
- await __classPrivateFieldGet(client, _Client_instances, "m", _Client_initConnection).call(client);
682
694
  },
683
695
  disconnect: client.disconnect.bind(client),
684
696
  };
@@ -799,10 +811,14 @@ class Client extends Composer {
799
811
  await __classPrivateFieldGet(this, _Client_client, "f").connect();
800
812
  await Promise.all([this.storage.setAuthKey(__classPrivateFieldGet(this, _Client_client, "f").authKey), this.storage.setDc(__classPrivateFieldGet(this, _Client_client, "f").dc), this.storage.setServerSalt(__classPrivateFieldGet(this, _Client_client, "f").serverSalt)]);
801
813
  }
802
- reconnect(dc) {
803
- return __classPrivateFieldGet(this, _Client_client, "f").reconnect(dc);
814
+ async reconnect(dc) {
815
+ await this.disconnect();
816
+ if (dc) {
817
+ await this.setDc(dc);
818
+ }
819
+ await this.connect();
804
820
  }
805
- async [(_Client_client = new WeakMap(), _Client_guaranteeUpdateDelivery = new WeakMap(), _Client_updateManager = new WeakMap(), _Client_networkStatisticsManager = new WeakMap(), _Client_botInfoManager = new WeakMap(), _Client_fileManager = new WeakMap(), _Client_reactionManager = new WeakMap(), _Client_messageManager = new WeakMap(), _Client_storyManager = new WeakMap(), _Client_callbackQueryManager = new WeakMap(), _Client_inlineQueryManager = new WeakMap(), _Client_chatListManager = new WeakMap(), _Client_accountManager = new WeakMap(), _Client_parseMode = new WeakMap(), _Client_publicKeys = new WeakMap(), _Client_ignoreOutgoing = new WeakMap(), _Client_storeMessages = new WeakMap(), _Client_L = new WeakMap(), _Client_Lauthorize = new WeakMap(), _Client_LpingLoop = new WeakMap(), _Client_LhandleMigrationError = new WeakMap(), _Client_L$initConncetion = new WeakMap(), _Client_namespaceProxies = new WeakMap(), _Client_constructContext = new WeakMap(), _Client_lastPropagatedConnectionState = new WeakMap(), _Client_stateChangeHandler = new WeakMap(), _Client_storageInited = new WeakMap(), _Client_connectionInited = new WeakMap(), _Client_lastPropagatedAuthorizationState = new WeakMap(), _Client_selfId = new WeakMap(), _Client_pingLoopStarted = new WeakMap(), _Client_pingLoopAbortController = new WeakMap(), _Client_pingInterval = new WeakMap(), _Client_lastUpdates = new WeakMap(), _Client_handleInvokeError = new WeakMap(), _Client_lastGetMe = new WeakMap(), _Client_instances = new WeakSet(), _Client_getApiId = async function _Client_getApiId() {
821
+ async [(_Client_client = new WeakMap(), _Client_guaranteeUpdateDelivery = new WeakMap(), _Client_updateManager = new WeakMap(), _Client_networkStatisticsManager = new WeakMap(), _Client_botInfoManager = new WeakMap(), _Client_fileManager = new WeakMap(), _Client_reactionManager = new WeakMap(), _Client_messageManager = new WeakMap(), _Client_storyManager = new WeakMap(), _Client_callbackQueryManager = new WeakMap(), _Client_inlineQueryManager = new WeakMap(), _Client_chatListManager = new WeakMap(), _Client_accountManager = new WeakMap(), _Client_parseMode = new WeakMap(), _Client_publicKeys = new WeakMap(), _Client_ignoreOutgoing = new WeakMap(), _Client_storeMessages = new WeakMap(), _Client_Lauthorize = new WeakMap(), _Client_LpingLoop = new WeakMap(), _Client_LhandleMigrationError = new WeakMap(), _Client_L$initConncetion = new WeakMap(), _Client_namespaceProxies = new WeakMap(), _Client_constructContext = new WeakMap(), _Client_lastPropagatedConnectionState = new WeakMap(), _Client_stateChangeHandler = new WeakMap(), _Client_storageInited = new WeakMap(), _Client_connectionInited = new WeakMap(), _Client_lastPropagatedAuthorizationState = new WeakMap(), _Client_pingLoopStarted = new WeakMap(), _Client_pingLoopAbortController = new WeakMap(), _Client_pingInterval = new WeakMap(), _Client_lastUpdates = new WeakMap(), _Client_handleInvokeError = new WeakMap(), _Client_lastGetMe = new WeakMap(), _Client_instances = new WeakSet(), _Client_getApiId = async function _Client_getApiId() {
806
822
  const apiId = this.apiId || await this.storage.getApiId();
807
823
  if (!apiId) {
808
824
  throw new Error("apiId not set");
@@ -850,7 +866,6 @@ class Client extends Composer {
850
866
  * [2]: https://core.telegram.org/method/updates.getState
851
867
  */
852
868
  async authorize(params) {
853
- await __classPrivateFieldGet(this, _Client_instances, "m", _Client_initConnection).call(this);
854
869
  try {
855
870
  await __classPrivateFieldGet(this, _Client_updateManager, "f").fetchState("authorize");
856
871
  await __classPrivateFieldGet(this, _Client_instances, "m", _Client_propagateAuthorizationState).call(this, true);
@@ -881,14 +896,13 @@ class Client extends Composer {
881
896
  while (true) {
882
897
  try {
883
898
  const auth = await this.api.auth.importBotAuthorization({ api_id: apiId, api_hash: this.apiHash, bot_auth_token: params, flags: 0 });
884
- __classPrivateFieldSet(this, _Client_selfId, Number(auth[_2_tl_js_1.as](_2_tl_js_1.types.auth.Authorization).user.id), "f");
899
+ await this.storage.setAccountId(Number(auth[_2_tl_js_1.as](_2_tl_js_1.types.auth.Authorization).user.id));
885
900
  await this.storage.setAccountType("bot");
886
901
  break;
887
902
  }
888
903
  catch (err) {
889
904
  if (err instanceof _4_errors_js_1.Migrate) {
890
905
  await this[exports.handleMigrationError](err);
891
- await __classPrivateFieldGet(this, _Client_instances, "m", _Client_initConnection).call(this);
892
906
  continue;
893
907
  }
894
908
  else {
@@ -925,7 +939,6 @@ class Client extends Composer {
925
939
  catch (err) {
926
940
  if (err instanceof _4_errors_js_1.Migrate) {
927
941
  await this[exports.handleMigrationError](err);
928
- await __classPrivateFieldGet(this, _Client_instances, "m", _Client_initConnection).call(this);
929
942
  sentCode = await sendCode();
930
943
  }
931
944
  else {
@@ -953,7 +966,7 @@ class Client extends Composer {
953
966
  phone_code: code,
954
967
  phone_code_hash: sentCode.phone_code_hash,
955
968
  });
956
- __classPrivateFieldSet(this, _Client_selfId, Number(auth[_2_tl_js_1.as](_2_tl_js_1.types.auth.Authorization).user.id), "f");
969
+ await this.storage.setAccountId(Number(auth[_2_tl_js_1.as](_2_tl_js_1.types.auth.Authorization).user.id));
957
970
  await this.storage.setAccountType("user");
958
971
  __classPrivateFieldGet(this, _Client_Lauthorize, "f").debug("authorized as user");
959
972
  await __classPrivateFieldGet(this, _Client_instances, "m", _Client_propagateAuthorizationState).call(this, true);
@@ -982,7 +995,7 @@ class Client extends Composer {
982
995
  const password = typeof params.password === "string" ? params.password : await params.password(ap.hint ?? null);
983
996
  const input = await (0, _0_password_js_1.checkPassword)(password, ap);
984
997
  const auth = await this.api.auth.checkPassword({ password: input });
985
- __classPrivateFieldSet(this, _Client_selfId, Number(auth[_2_tl_js_1.as](_2_tl_js_1.types.auth.Authorization).user.id), "f");
998
+ await this.storage.setAccountId(Number(auth[_2_tl_js_1.as](_2_tl_js_1.types.auth.Authorization).user.id));
986
999
  await this.storage.setAccountType("user");
987
1000
  __classPrivateFieldGet(this, _Client_Lauthorize, "f").debug("authorized as user");
988
1001
  await __classPrivateFieldGet(this, _Client_instances, "m", _Client_propagateAuthorizationState).call(this, true);
@@ -1035,7 +1048,7 @@ class Client extends Composer {
1035
1048
  * @param id The identifier of the chat.
1036
1049
  */
1037
1050
  async getInputPeer(id) {
1038
- if (id === "me") {
1051
+ if (id === "me" || id == await __classPrivateFieldGet(this, _Client_instances, "m", _Client_getSelfId).call(this)) {
1039
1052
  return new _2_tl_js_1.types.InputPeerSelf();
1040
1053
  }
1041
1054
  const inputPeer = await __classPrivateFieldGet(this, _Client_instances, "m", _Client_getInputPeerInner).call(this, id);
@@ -1047,6 +1060,9 @@ class Client extends Composer {
1047
1060
  inputPeer.access_hash = await __classPrivateFieldGet(this, _Client_instances, "m", _Client_getUserAccessHash).call(this, inputPeer.user_id);
1048
1061
  }
1049
1062
  }
1063
+ else {
1064
+ throw new _0_errors_js_1.AccessError(`Cannot access the chat ${id} because there is no access hash for it.`);
1065
+ }
1050
1066
  return inputPeer;
1051
1067
  }
1052
1068
  /**
@@ -1057,7 +1073,7 @@ class Client extends Composer {
1057
1073
  async getInputChannel(id) {
1058
1074
  const inputPeer = await this.getInputPeer(id);
1059
1075
  if (!(inputPeer instanceof _2_tl_js_1.types.InputPeerChannel)) {
1060
- (0, _1_utilities_js_1.UNREACHABLE)();
1076
+ throw new TypeError(`The chat ${id} is not a channel neither a supergroup.`);
1061
1077
  }
1062
1078
  return new _2_tl_js_1.types.InputChannel(inputPeer);
1063
1079
  }
@@ -1069,38 +1085,21 @@ class Client extends Composer {
1069
1085
  async getInputUser(id) {
1070
1086
  const inputPeer = await this.getInputPeer(id);
1071
1087
  if (!(inputPeer instanceof _2_tl_js_1.types.InputPeerUser)) {
1072
- (0, _1_utilities_js_1.UNREACHABLE)();
1088
+ throw new TypeError(`The chat ${id} is not a private chat.`);
1073
1089
  }
1074
1090
  return new _2_tl_js_1.types.InputUser(inputPeer);
1075
1091
  }
1076
- async [(_Client_initConnection = async function _Client_initConnection() {
1077
- if (!__classPrivateFieldGet(this, _Client_connectionInited, "f")) {
1078
- await this.api.initConnection({
1079
- api_id: await __classPrivateFieldGet(this, _Client_instances, "m", _Client_getApiId).call(this),
1080
- app_version: this.appVersion,
1081
- device_model: this.deviceModel,
1082
- lang_code: this.langCode,
1083
- lang_pack: this.langPack,
1084
- query: new _2_tl_js_1.functions.invokeWithLayer({
1085
- layer: _4_constants_js_1.LAYER,
1086
- query: new _2_tl_js_1.functions.help.getConfig(),
1087
- }),
1088
- system_lang_code: this.systemLangCode,
1089
- system_version: this.systemVersion,
1090
- });
1091
- __classPrivateFieldSet(this, _Client_connectionInited, true, "f");
1092
- __classPrivateFieldGet(this, _Client_L$initConncetion, "f").debug("connection inited");
1093
- }
1094
- }, _Client_propagateAuthorizationState = async function _Client_propagateAuthorizationState(authorized) {
1092
+ async [(_Client_propagateAuthorizationState = async function _Client_propagateAuthorizationState(authorized) {
1095
1093
  if (__classPrivateFieldGet(this, _Client_lastPropagatedAuthorizationState, "f") != authorized) {
1096
1094
  await this.middleware()(await __classPrivateFieldGet(this, _Client_constructContext, "f").call(this, { authorizationState: { authorized } }), _0_utilities_js_1.resolve);
1097
1095
  __classPrivateFieldSet(this, _Client_lastPropagatedAuthorizationState, authorized, "f");
1098
1096
  }
1099
1097
  }, _Client_getSelfId = async function _Client_getSelfId() {
1100
- if (__classPrivateFieldGet(this, _Client_selfId, "f") == null) {
1101
- __classPrivateFieldSet(this, _Client_selfId, await this.getMe().then((v) => v.id), "f");
1098
+ const id = await this.storage.getAccountId();
1099
+ if (id == null) {
1100
+ throw new Error("Unauthorized");
1102
1101
  }
1103
- return __classPrivateFieldGet(this, _Client_selfId, "f");
1102
+ return id;
1104
1103
  }, _Client_startPingLoop = function _Client_startPingLoop() {
1105
1104
  (0, _1_utilities_js_1.drop)(__classPrivateFieldGet(this, _Client_instances, "m", _Client_pingLoop).call(this));
1106
1105
  }, _Client_pingLoop = async function _Client_pingLoop() {
@@ -1134,10 +1133,34 @@ class Client extends Composer {
1134
1133
  let n = 1;
1135
1134
  while (true) {
1136
1135
  try {
1137
- return await __classPrivateFieldGet(this, _Client_client, "f").invoke(function_, noWait);
1136
+ if (function_ instanceof _2_tl_js_1.functions.Function && !__classPrivateFieldGet(this, _Client_connectionInited, "f")) {
1137
+ const result = await __classPrivateFieldGet(this, _Client_client, "f").invoke(new _2_tl_js_1.functions.initConnection({
1138
+ api_id: await __classPrivateFieldGet(this, _Client_instances, "m", _Client_getApiId).call(this),
1139
+ app_version: this.appVersion,
1140
+ device_model: this.deviceModel,
1141
+ lang_code: this.langCode,
1142
+ lang_pack: this.langPack,
1143
+ query: new _2_tl_js_1.functions.invokeWithLayer({
1144
+ layer: _4_constants_js_1.LAYER,
1145
+ query: function_,
1146
+ }),
1147
+ system_lang_code: this.systemLangCode,
1148
+ system_version: this.systemVersion,
1149
+ }), noWait);
1150
+ __classPrivateFieldSet(this, _Client_connectionInited, true, "f");
1151
+ __classPrivateFieldGet(this, _Client_L$initConncetion, "f").debug("connection inited");
1152
+ return result;
1153
+ }
1154
+ else {
1155
+ return await __classPrivateFieldGet(this, _Client_client, "f").invoke(function_, noWait);
1156
+ }
1138
1157
  }
1139
1158
  catch (err) {
1140
- if (await __classPrivateFieldGet(this, _Client_handleInvokeError, "f").call(this, Object.freeze({ client: this, error: err, function: function_, n: n++ }), () => Promise.resolve(false))) {
1159
+ if (err instanceof _4_errors_js_1.ConnectionNotInited) {
1160
+ __classPrivateFieldSet(this, _Client_connectionInited, false, "f");
1161
+ continue;
1162
+ }
1163
+ else if (await __classPrivateFieldGet(this, _Client_handleInvokeError, "f").call(this, Object.freeze({ client: this, error: err, function: function_, n: n++ }), () => Promise.resolve(false))) {
1141
1164
  continue;
1142
1165
  }
1143
1166
  else {
@@ -1217,7 +1240,7 @@ class Client extends Composer {
1217
1240
  return new _2_tl_js_1.types.InputPeerChannel({ channel_id: (0, _2_tl_js_1.chatIdToPeerId)(id), access_hash: accessHash ?? 0n });
1218
1241
  }
1219
1242
  else {
1220
- throw new Error("ID format unknown or not implemented");
1243
+ throw new _0_errors_js_1.InputError("The ID is of an format unknown.");
1221
1244
  }
1222
1245
  }, getEntity)](peer) {
1223
1246
  const id = (0, _2_tl_js_1.peerToChatId)(peer);
@@ -1245,7 +1268,7 @@ class Client extends Composer {
1245
1268
  * Edit a message's text.
1246
1269
  *
1247
1270
  * @method ms
1248
- * @param chatId The identifier of the chat that contains the messages.
1271
+ * @param chatId The identifier of the chat that contains the message.
1249
1272
  * @param messageId The message's identifier.
1250
1273
  * @param text The new text of the message.
1251
1274
  * @returns The edited text message.
@@ -1267,7 +1290,7 @@ class Client extends Composer {
1267
1290
  * Edit a message's reply markup.
1268
1291
  *
1269
1292
  * @method ms
1270
- * @param chatId The identifier of the chat that contains the messages.
1293
+ * @param chatId The identifier of the chat that contains the message.
1271
1294
  * @param messageId The message's identifier.
1272
1295
  * @returns The edited message.
1273
1296
  */
@@ -1283,6 +1306,31 @@ class Client extends Composer {
1283
1306
  async editInlineMessageReplyMarkup(inlineMessageId, params) {
1284
1307
  await __classPrivateFieldGet(this, _Client_messageManager, "f").editInlineMessageReplyMarkup(inlineMessageId, params);
1285
1308
  }
1309
+ /**
1310
+ * Edit a message's live location.
1311
+ *
1312
+ * @method ms
1313
+ * @param chatId The identifier of the chat that contains the messages.
1314
+ * @param messageId The message's identifier.
1315
+ * @param latitude The new latitude.
1316
+ * @param longitude The new longitude.
1317
+ * @returns The edited location message.
1318
+ */
1319
+ async editMessageLiveLocation(chatId, messageId, latitude, longitude, params) {
1320
+ return await __classPrivateFieldGet(this, _Client_messageManager, "f").editMessageLiveLocation(chatId, messageId, latitude, longitude, params);
1321
+ }
1322
+ /**
1323
+ * Edit an inline message's live location. Bot-only.
1324
+ *
1325
+ * @method ms
1326
+ * @param inlineMessageId The inline message's identifier.
1327
+ * @param latitude The new latitude.
1328
+ * @param longitude The new longitude.
1329
+ * @returns The edited location message.
1330
+ */
1331
+ async editInlineMessageLiveLocation(inlineMessageId, latitude, longitude, params) {
1332
+ await __classPrivateFieldGet(this, _Client_messageManager, "f").editInlineMessageLiveLocation(inlineMessageId, latitude, longitude, params);
1333
+ }
1286
1334
  /**
1287
1335
  * Retrieve multiple messages.
1288
1336
  *
@@ -1358,11 +1406,13 @@ class Client extends Composer {
1358
1406
  * @method ac
1359
1407
  */
1360
1408
  async getMe() {
1361
- const users = await this.api.users.getUsers({ id: [new _2_tl_js_1.types.InputUserSelf()] });
1362
- if (users.length < 1) {
1363
- (0, _1_utilities_js_1.UNREACHABLE)();
1409
+ let user_ = await this[getEntity](new _2_tl_js_1.types.PeerUser({ user_id: BigInt(await __classPrivateFieldGet(this, _Client_instances, "m", _Client_getSelfId).call(this)) }));
1410
+ if (user_ == null) {
1411
+ const users = await this.api.users.getUsers({ id: [new _2_tl_js_1.types.InputUserSelf()] });
1412
+ user_ = users[0][_2_tl_js_1.as](_2_tl_js_1.types.User);
1413
+ await this.messageStorage.setEntity(user_);
1364
1414
  }
1365
- const user = (0, _3_types_js_1.constructUser)(users[0][_2_tl_js_1.as](_2_tl_js_1.types.User));
1415
+ const user = (0, _3_types_js_1.constructUser)(user_);
1366
1416
  __classPrivateFieldSet(this, _Client_lastGetMe, user, "f");
1367
1417
  return user;
1368
1418
  }
@@ -1387,6 +1437,17 @@ class Client extends Composer {
1387
1437
  async sendPoll(chatId, question, options, params) {
1388
1438
  return await __classPrivateFieldGet(this, _Client_messageManager, "f").sendPoll(chatId, question, options, params);
1389
1439
  }
1440
+ /**
1441
+ * Stop a poll.
1442
+ *
1443
+ * @method ms
1444
+ * @param chatId The chat that includes the poll.
1445
+ * @param messageId The idenfifier of the poll's message.
1446
+ * @returns The new state of the poll.
1447
+ */
1448
+ async stopPoll(chatId, messageId, params) {
1449
+ return await __classPrivateFieldGet(this, _Client_messageManager, "f").stopPoll(chatId, messageId, params);
1450
+ }
1390
1451
  /**
1391
1452
  * Send a chat action.
1392
1453
  *
@@ -1530,6 +1591,17 @@ class Client extends Composer {
1530
1591
  async sendDocument(chatId, document, params) {
1531
1592
  return await __classPrivateFieldGet(this, _Client_messageManager, "f").sendDocument(chatId, document, params);
1532
1593
  }
1594
+ /**
1595
+ * Send a sticker.
1596
+ *
1597
+ * @method ms
1598
+ * @param chatId The chat to send the sticker to.
1599
+ * @param document The sticker to send.
1600
+ * @returns The sent sticker.
1601
+ */
1602
+ async sendSticker(chatId, sticker, params) {
1603
+ return await __classPrivateFieldGet(this, _Client_messageManager, "f").sendSticker(chatId, sticker, params);
1604
+ }
1533
1605
  /**
1534
1606
  * Send a video.
1535
1607
  *
@@ -1,5 +1,17 @@
1
1
  /**
2
2
  * A parsed path object generated by path.parse() or consumed by path.format().
3
+ *
4
+ * @example
5
+ * ```ts
6
+ * import { parse } from "https://deno.land/std@$STD_VERSION/path/mod.ts";
7
+ *
8
+ * const parsedPathObj = parse("c:\\path\\dir\\index.html");
9
+ * parsedPathObj.root; // "c:\\"
10
+ * parsedPathObj.dir; // "c:\\path\\dir"
11
+ * parsedPathObj.base; // "index.html"
12
+ * parsedPathObj.ext; // ".html"
13
+ * parsedPathObj.name; // "index"
14
+ * ```
3
15
  */
4
16
  export interface ParsedPath {
5
17
  /**
@@ -7,7 +19,7 @@ export interface ParsedPath {
7
19
  */
8
20
  root: string;
9
21
  /**
10
- * The full directory path such as '/home/user/dir' or 'c:\path\dir'
22
+ * The full directory path of the parent such as '/home/user/dir' or 'c:\path\dir'
11
23
  */
12
24
  dir: string;
13
25
  /**
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Return the last portion of a `path`.
3
+ * Trailing directory separators are ignored, and optional suffix is removed.
4
+ *
5
+ * @example
6
+ * ```ts
7
+ * import { basename } from "https://deno.land/std@$STD_VERSION/path/basename.ts";
8
+ *
9
+ * basename("/home/user/Documents/"); // "Documents"
10
+ * basename("C:\\user\\Documents\\image.png"); // "image.png"
11
+ * basename("/home/user/Documents/image.png", ".png"); // "image"
12
+ * ```
13
+ *
14
+ * @param path - path to extract the name from.
15
+ * @param [suffix] - suffix to remove from extracted name.
16
+ */
17
+ export declare function basename(path: string, suffix?: string): string;
@@ -10,6 +10,15 @@ const basename_js_2 = require("./windows/basename.js");
10
10
  * Return the last portion of a `path`.
11
11
  * Trailing directory separators are ignored, and optional suffix is removed.
12
12
  *
13
+ * @example
14
+ * ```ts
15
+ * import { basename } from "https://deno.land/std@$STD_VERSION/path/basename.ts";
16
+ *
17
+ * basename("/home/user/Documents/"); // "Documents"
18
+ * basename("C:\\user\\Documents\\image.png"); // "image.png"
19
+ * basename("/home/user/Documents/image.png", ".png"); // "image"
20
+ * ```
21
+ *
13
22
  * @param path - path to extract the name from.
14
23
  * @param [suffix] - suffix to remove from extracted name.
15
24
  */
@@ -1,6 +1,8 @@
1
1
  import type { FormatInputPathObject } from "./_interface.js";
2
2
  /**
3
- * Generate a path from `FormatInputPathObject` object.
3
+ * Generate a path from `FormatInputPathObject` object. It does the opposite
4
+ * of `parse`.
5
+ *
4
6
  * @param pathObject with path
5
7
  */
6
8
  export declare function format(pathObject: FormatInputPathObject): string;
@@ -7,7 +7,9 @@ const _os_js_1 = require("./_os.js");
7
7
  const format_js_1 = require("./posix/format.js");
8
8
  const format_js_2 = require("./windows/format.js");
9
9
  /**
10
- * Generate a path from `FormatInputPathObject` object.
10
+ * Generate a path from `FormatInputPathObject` object. It does the opposite
11
+ * of `parse`.
12
+ *
11
13
  * @param pathObject with path
12
14
  */
13
15
  function format(pathObject) {
@@ -0,0 +1,18 @@
1
+ import type { ParsedPath } from "./_interface.js";
2
+ /**
3
+ * Return a `ParsedPath` object of the `path`. Use `format` to reverse the result.
4
+ *
5
+ * @example
6
+ * ```ts
7
+ * import { parse } from "https://deno.land/std@$STD_VERSION/path/mod.ts";
8
+ *
9
+ * const parsedPathObj = parse("/path/to/dir/script.ts");
10
+ * parsedPathObj.root; // "/"
11
+ * parsedPathObj.dir; // "/path/to/dir"
12
+ * parsedPathObj.base; // "script.ts"
13
+ * parsedPathObj.ext; // ".ts"
14
+ * parsedPathObj.name; // "script"
15
+ * ```
16
+ * @param path to process
17
+ */
18
+ export declare function parse(path: string): ParsedPath;
@@ -7,7 +7,19 @@ const _os_js_1 = require("./_os.js");
7
7
  const parse_js_1 = require("./posix/parse.js");
8
8
  const parse_js_2 = require("./windows/parse.js");
9
9
  /**
10
- * Return a `ParsedPath` object of the `path`.
10
+ * Return a `ParsedPath` object of the `path`. Use `format` to reverse the result.
11
+ *
12
+ * @example
13
+ * ```ts
14
+ * import { parse } from "https://deno.land/std@$STD_VERSION/path/mod.ts";
15
+ *
16
+ * const parsedPathObj = parse("/path/to/dir/script.ts");
17
+ * parsedPathObj.root; // "/"
18
+ * parsedPathObj.dir; // "/path/to/dir"
19
+ * parsedPathObj.base; // "script.ts"
20
+ * parsedPathObj.ext; // ".ts"
21
+ * parsedPathObj.name; // "script"
22
+ * ```
11
23
  * @param path to process
12
24
  */
13
25
  function parse(path) {
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Return the last portion of a `path`.
3
+ * Trailing directory separators are ignored, and optional suffix is removed.
4
+ *
5
+ * @example
6
+ * ```ts
7
+ * import { basename } from "https://deno.land/std@$STD_VERSION/path/basename.ts";
8
+ *
9
+ * basename("C:\\user\\Documents\\"); // "Documents"
10
+ * basename("C:\\user\\Documents\\image.png"); // "image.png"
11
+ * basename("C:\\user\\Documents\\image.png", ".png"); // "image"
12
+ * ```
13
+ *
14
+ * @param path - path to extract the name from.
15
+ * @param [suffix] - suffix to remove from extracted name.
16
+ */
17
+ export declare function basename(path: string, suffix?: string): string;
@@ -11,6 +11,15 @@ const _util_js_1 = require("./_util.js");
11
11
  * Return the last portion of a `path`.
12
12
  * Trailing directory separators are ignored, and optional suffix is removed.
13
13
  *
14
+ * @example
15
+ * ```ts
16
+ * import { basename } from "https://deno.land/std@$STD_VERSION/path/basename.ts";
17
+ *
18
+ * basename("C:\\user\\Documents\\"); // "Documents"
19
+ * basename("C:\\user\\Documents\\image.png"); // "image.png"
20
+ * basename("C:\\user\\Documents\\image.png", ".png"); // "image"
21
+ * ```
22
+ *
14
23
  * @param path - path to extract the name from.
15
24
  * @param [suffix] - suffix to remove from extracted name.
16
25
  */
package/script/mod.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ export * from "./0_errors.js";
1
2
  export { getColorFromPeerId, getColorName, getRandomId, setLogVerbosity } from "./1_utilities.js";
2
3
  export { checkPassword } from "./client/0_password.js";
3
4
  export * from "./2_connection.js";
package/script/mod.js CHANGED
@@ -27,6 +27,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.errors = exports.SYSTEM_VERSION = exports.SYSTEM_LANG_CODE = exports.LAYER = exports.LANG_PACK = exports.LANG_CODE = exports.INITIAL_DC = exports.DEVICE_MODEL = exports.APP_VERSION = exports.checkPassword = exports.setLogVerbosity = exports.getRandomId = exports.getColorName = exports.getColorFromPeerId = void 0;
30
+ __exportStar(require("./0_errors.js"), exports);
30
31
  var _1_utilities_js_1 = require("./1_utilities.js");
31
32
  Object.defineProperty(exports, "getColorFromPeerId", { enumerable: true, get: function () { return _1_utilities_js_1.getColorFromPeerId; } });
32
33
  Object.defineProperty(exports, "getColorName", { enumerable: true, get: function () { return _1_utilities_js_1.getColorName; } });
@@ -14,6 +14,7 @@ export declare const K: {
14
14
  P: (string: string) => string;
15
15
  dc: () => StorageKeyPart[];
16
16
  key: () => StorageKeyPart[];
17
+ accountId: () => StorageKeyPart[];
17
18
  accountType: () => StorageKeyPart[];
18
19
  };
19
20
  updates: {
@@ -98,6 +99,8 @@ export declare abstract class Storage {
98
99
  getChannelPts(channelId: bigint): MaybePromise<number | null>;
99
100
  setEntity(entity: AnyEntity): Promise<void>;
100
101
  getEntity(key: number): Promise<ReadObject | null>;
102
+ setAccountId(accountId: number): Promise<void>;
103
+ getAccountId(): Promise<number | null>;
101
104
  setAccountType(type: "user" | "bot"): Promise<void>;
102
105
  getAccountType(): Promise<"user" | "bot" | null>;
103
106
  updateStickerSetName(id: bigint, accessHash: bigint, name: string): Promise<void>;