@ardennguyen/zalo-agent-cli 1.0.7 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1275) hide show
  1. package/DISCLAIMER.md +2 -2
  2. package/LICENSE +456 -21
  3. package/NOTICE +127 -0
  4. package/README.md +169 -70
  5. package/node_modules/asynckit/LICENSE +21 -0
  6. package/node_modules/asynckit/README.md +233 -0
  7. package/node_modules/asynckit/bench.js +76 -0
  8. package/node_modules/asynckit/index.js +6 -0
  9. package/node_modules/asynckit/lib/abort.js +29 -0
  10. package/node_modules/asynckit/lib/async.js +34 -0
  11. package/node_modules/asynckit/lib/defer.js +26 -0
  12. package/node_modules/asynckit/lib/iterate.js +75 -0
  13. package/node_modules/asynckit/lib/readable_asynckit.js +91 -0
  14. package/node_modules/asynckit/lib/readable_parallel.js +25 -0
  15. package/node_modules/asynckit/lib/readable_serial.js +25 -0
  16. package/node_modules/asynckit/lib/readable_serial_ordered.js +29 -0
  17. package/node_modules/asynckit/lib/state.js +37 -0
  18. package/node_modules/asynckit/lib/streamify.js +141 -0
  19. package/node_modules/asynckit/lib/terminator.js +29 -0
  20. package/node_modules/asynckit/package.json +63 -0
  21. package/node_modules/asynckit/parallel.js +43 -0
  22. package/node_modules/asynckit/serial.js +17 -0
  23. package/node_modules/asynckit/serialOrdered.js +75 -0
  24. package/node_modules/asynckit/stream.js +21 -0
  25. package/node_modules/bignumber.js/CHANGELOG.md +381 -0
  26. package/node_modules/bignumber.js/LICENCE.md +26 -0
  27. package/node_modules/bignumber.js/README.md +289 -0
  28. package/node_modules/bignumber.js/bignumber.d.mts +6 -0
  29. package/node_modules/bignumber.js/bignumber.d.ts +5 -0
  30. package/node_modules/bignumber.js/bignumber.js +2922 -0
  31. package/node_modules/bignumber.js/bignumber.mjs +2907 -0
  32. package/node_modules/bignumber.js/doc/API.html +2249 -0
  33. package/node_modules/bignumber.js/package.json +60 -0
  34. package/node_modules/bignumber.js/types.d.ts +1821 -0
  35. package/node_modules/call-bind-apply-helpers/.eslintrc +17 -0
  36. package/node_modules/call-bind-apply-helpers/.github/FUNDING.yml +12 -0
  37. package/node_modules/call-bind-apply-helpers/.nycrc +9 -0
  38. package/node_modules/call-bind-apply-helpers/CHANGELOG.md +30 -0
  39. package/node_modules/call-bind-apply-helpers/LICENSE +21 -0
  40. package/node_modules/call-bind-apply-helpers/README.md +62 -0
  41. package/node_modules/call-bind-apply-helpers/actualApply.d.ts +1 -0
  42. package/node_modules/call-bind-apply-helpers/actualApply.js +10 -0
  43. package/node_modules/call-bind-apply-helpers/applyBind.d.ts +19 -0
  44. package/node_modules/call-bind-apply-helpers/applyBind.js +10 -0
  45. package/node_modules/call-bind-apply-helpers/functionApply.d.ts +1 -0
  46. package/node_modules/call-bind-apply-helpers/functionApply.js +4 -0
  47. package/node_modules/call-bind-apply-helpers/functionCall.d.ts +1 -0
  48. package/node_modules/call-bind-apply-helpers/functionCall.js +4 -0
  49. package/node_modules/call-bind-apply-helpers/index.d.ts +64 -0
  50. package/node_modules/call-bind-apply-helpers/index.js +15 -0
  51. package/node_modules/call-bind-apply-helpers/package.json +85 -0
  52. package/node_modules/call-bind-apply-helpers/reflectApply.d.ts +3 -0
  53. package/node_modules/call-bind-apply-helpers/reflectApply.js +4 -0
  54. package/node_modules/call-bind-apply-helpers/test/index.js +63 -0
  55. package/node_modules/call-bind-apply-helpers/tsconfig.json +9 -0
  56. package/node_modules/combined-stream/License +19 -0
  57. package/node_modules/combined-stream/Readme.md +138 -0
  58. package/node_modules/combined-stream/lib/combined_stream.js +208 -0
  59. package/node_modules/combined-stream/package.json +25 -0
  60. package/node_modules/crypto-js/CONTRIBUTING.md +28 -0
  61. package/node_modules/crypto-js/LICENSE +24 -0
  62. package/node_modules/crypto-js/README.md +275 -0
  63. package/node_modules/crypto-js/aes.js +234 -0
  64. package/node_modules/crypto-js/blowfish.js +471 -0
  65. package/node_modules/crypto-js/bower.json +39 -0
  66. package/node_modules/crypto-js/cipher-core.js +895 -0
  67. package/node_modules/crypto-js/core.js +807 -0
  68. package/node_modules/crypto-js/crypto-js.js +6657 -0
  69. package/node_modules/crypto-js/docs/QuickStartGuide.wiki +470 -0
  70. package/node_modules/crypto-js/enc-base64.js +136 -0
  71. package/node_modules/crypto-js/enc-base64url.js +148 -0
  72. package/node_modules/crypto-js/enc-hex.js +18 -0
  73. package/node_modules/crypto-js/enc-latin1.js +18 -0
  74. package/node_modules/crypto-js/enc-utf16.js +149 -0
  75. package/node_modules/crypto-js/enc-utf8.js +18 -0
  76. package/node_modules/crypto-js/evpkdf.js +134 -0
  77. package/node_modules/crypto-js/format-hex.js +66 -0
  78. package/node_modules/crypto-js/format-openssl.js +18 -0
  79. package/node_modules/crypto-js/hmac-md5.js +18 -0
  80. package/node_modules/crypto-js/hmac-ripemd160.js +18 -0
  81. package/node_modules/crypto-js/hmac-sha1.js +18 -0
  82. package/node_modules/crypto-js/hmac-sha224.js +18 -0
  83. package/node_modules/crypto-js/hmac-sha256.js +18 -0
  84. package/node_modules/crypto-js/hmac-sha3.js +18 -0
  85. package/node_modules/crypto-js/hmac-sha384.js +18 -0
  86. package/node_modules/crypto-js/hmac-sha512.js +18 -0
  87. package/node_modules/crypto-js/hmac.js +143 -0
  88. package/node_modules/crypto-js/index.js +18 -0
  89. package/node_modules/crypto-js/lib-typedarrays.js +76 -0
  90. package/node_modules/crypto-js/md5.js +268 -0
  91. package/node_modules/crypto-js/mode-cfb.js +80 -0
  92. package/node_modules/crypto-js/mode-ctr-gladman.js +116 -0
  93. package/node_modules/crypto-js/mode-ctr.js +58 -0
  94. package/node_modules/crypto-js/mode-ecb.js +40 -0
  95. package/node_modules/crypto-js/mode-ofb.js +54 -0
  96. package/node_modules/crypto-js/package.json +42 -0
  97. package/node_modules/crypto-js/pad-ansix923.js +49 -0
  98. package/node_modules/crypto-js/pad-iso10126.js +44 -0
  99. package/node_modules/crypto-js/pad-iso97971.js +40 -0
  100. package/node_modules/crypto-js/pad-nopadding.js +30 -0
  101. package/node_modules/crypto-js/pad-pkcs7.js +18 -0
  102. package/node_modules/crypto-js/pad-zeropadding.js +47 -0
  103. package/node_modules/crypto-js/pbkdf2.js +145 -0
  104. package/node_modules/crypto-js/rabbit-legacy.js +190 -0
  105. package/node_modules/crypto-js/rabbit.js +192 -0
  106. package/node_modules/crypto-js/rc4.js +139 -0
  107. package/node_modules/crypto-js/ripemd160.js +267 -0
  108. package/node_modules/crypto-js/sha1.js +150 -0
  109. package/node_modules/crypto-js/sha224.js +80 -0
  110. package/node_modules/crypto-js/sha256.js +199 -0
  111. package/node_modules/crypto-js/sha3.js +326 -0
  112. package/node_modules/crypto-js/sha384.js +83 -0
  113. package/node_modules/crypto-js/sha512.js +326 -0
  114. package/node_modules/crypto-js/tripledes.js +779 -0
  115. package/node_modules/crypto-js/x64-core.js +304 -0
  116. package/node_modules/delayed-stream/.npmignore +1 -0
  117. package/node_modules/delayed-stream/License +19 -0
  118. package/node_modules/delayed-stream/Makefile +7 -0
  119. package/node_modules/delayed-stream/Readme.md +141 -0
  120. package/node_modules/delayed-stream/lib/delayed_stream.js +107 -0
  121. package/node_modules/delayed-stream/package.json +27 -0
  122. package/node_modules/dunder-proto/.eslintrc +5 -0
  123. package/node_modules/dunder-proto/.github/FUNDING.yml +12 -0
  124. package/node_modules/dunder-proto/.nycrc +13 -0
  125. package/node_modules/dunder-proto/CHANGELOG.md +24 -0
  126. package/node_modules/dunder-proto/LICENSE +21 -0
  127. package/node_modules/dunder-proto/README.md +54 -0
  128. package/node_modules/dunder-proto/get.d.ts +5 -0
  129. package/node_modules/dunder-proto/get.js +30 -0
  130. package/node_modules/dunder-proto/package.json +76 -0
  131. package/node_modules/dunder-proto/set.d.ts +5 -0
  132. package/node_modules/dunder-proto/set.js +35 -0
  133. package/node_modules/dunder-proto/test/get.js +34 -0
  134. package/node_modules/dunder-proto/test/index.js +4 -0
  135. package/node_modules/dunder-proto/test/set.js +50 -0
  136. package/node_modules/dunder-proto/tsconfig.json +9 -0
  137. package/node_modules/es-define-property/.eslintrc +13 -0
  138. package/node_modules/es-define-property/.github/FUNDING.yml +12 -0
  139. package/node_modules/es-define-property/.nycrc +9 -0
  140. package/node_modules/es-define-property/CHANGELOG.md +29 -0
  141. package/node_modules/es-define-property/LICENSE +21 -0
  142. package/node_modules/es-define-property/README.md +49 -0
  143. package/node_modules/es-define-property/index.d.ts +3 -0
  144. package/node_modules/es-define-property/index.js +14 -0
  145. package/node_modules/es-define-property/package.json +81 -0
  146. package/node_modules/es-define-property/test/index.js +56 -0
  147. package/node_modules/es-define-property/tsconfig.json +10 -0
  148. package/node_modules/es-errors/.eslintrc +5 -0
  149. package/node_modules/es-errors/.github/FUNDING.yml +12 -0
  150. package/node_modules/es-errors/CHANGELOG.md +40 -0
  151. package/node_modules/es-errors/LICENSE +21 -0
  152. package/node_modules/es-errors/README.md +55 -0
  153. package/node_modules/es-errors/eval.d.ts +3 -0
  154. package/node_modules/es-errors/eval.js +4 -0
  155. package/node_modules/es-errors/index.d.ts +3 -0
  156. package/node_modules/es-errors/index.js +4 -0
  157. package/node_modules/es-errors/package.json +80 -0
  158. package/node_modules/es-errors/range.d.ts +3 -0
  159. package/node_modules/es-errors/range.js +4 -0
  160. package/node_modules/es-errors/ref.d.ts +3 -0
  161. package/node_modules/es-errors/ref.js +4 -0
  162. package/node_modules/es-errors/syntax.d.ts +3 -0
  163. package/node_modules/es-errors/syntax.js +4 -0
  164. package/node_modules/es-errors/test/index.js +19 -0
  165. package/node_modules/es-errors/tsconfig.json +49 -0
  166. package/node_modules/es-errors/type.d.ts +3 -0
  167. package/node_modules/es-errors/type.js +4 -0
  168. package/node_modules/es-errors/uri.d.ts +3 -0
  169. package/node_modules/es-errors/uri.js +4 -0
  170. package/node_modules/es-object-atoms/.eslintrc +16 -0
  171. package/node_modules/es-object-atoms/.github/FUNDING.yml +12 -0
  172. package/node_modules/es-object-atoms/CHANGELOG.md +44 -0
  173. package/node_modules/es-object-atoms/LICENSE +21 -0
  174. package/node_modules/es-object-atoms/README.md +63 -0
  175. package/node_modules/es-object-atoms/RequireObjectCoercible.d.ts +3 -0
  176. package/node_modules/es-object-atoms/RequireObjectCoercible.js +11 -0
  177. package/node_modules/es-object-atoms/ToObject.d.ts +7 -0
  178. package/node_modules/es-object-atoms/ToObject.js +10 -0
  179. package/node_modules/es-object-atoms/index.d.ts +3 -0
  180. package/node_modules/es-object-atoms/index.js +4 -0
  181. package/node_modules/es-object-atoms/isObject.d.ts +3 -0
  182. package/node_modules/es-object-atoms/isObject.js +6 -0
  183. package/node_modules/es-object-atoms/package.json +79 -0
  184. package/node_modules/es-object-atoms/test/index.js +38 -0
  185. package/node_modules/es-object-atoms/tsconfig.json +7 -0
  186. package/node_modules/es-set-tostringtag/.eslintrc +13 -0
  187. package/node_modules/es-set-tostringtag/.nycrc +9 -0
  188. package/node_modules/es-set-tostringtag/CHANGELOG.md +67 -0
  189. package/node_modules/es-set-tostringtag/LICENSE +21 -0
  190. package/node_modules/es-set-tostringtag/README.md +53 -0
  191. package/node_modules/es-set-tostringtag/index.d.ts +10 -0
  192. package/node_modules/es-set-tostringtag/index.js +35 -0
  193. package/node_modules/es-set-tostringtag/package.json +78 -0
  194. package/node_modules/es-set-tostringtag/test/index.js +85 -0
  195. package/node_modules/es-set-tostringtag/tsconfig.json +9 -0
  196. package/node_modules/form-data/CHANGELOG.md +686 -0
  197. package/node_modules/form-data/License +19 -0
  198. package/node_modules/form-data/README.md +355 -0
  199. package/node_modules/form-data/index.d.ts +62 -0
  200. package/node_modules/form-data/lib/browser.js +4 -0
  201. package/node_modules/form-data/lib/form_data.js +506 -0
  202. package/node_modules/form-data/lib/populate.js +10 -0
  203. package/node_modules/form-data/node_modules/mime-db/HISTORY.md +507 -0
  204. package/node_modules/form-data/node_modules/mime-db/LICENSE +23 -0
  205. package/node_modules/form-data/node_modules/mime-db/README.md +100 -0
  206. package/node_modules/form-data/node_modules/mime-db/db.json +8519 -0
  207. package/node_modules/form-data/node_modules/mime-db/index.js +12 -0
  208. package/node_modules/form-data/node_modules/mime-db/package.json +60 -0
  209. package/node_modules/form-data/node_modules/mime-types/HISTORY.md +397 -0
  210. package/node_modules/form-data/node_modules/mime-types/LICENSE +23 -0
  211. package/node_modules/form-data/node_modules/mime-types/README.md +113 -0
  212. package/node_modules/form-data/node_modules/mime-types/index.js +188 -0
  213. package/node_modules/form-data/node_modules/mime-types/package.json +44 -0
  214. package/node_modules/form-data/package.json +82 -0
  215. package/node_modules/function-bind/.eslintrc +21 -0
  216. package/node_modules/function-bind/.github/FUNDING.yml +12 -0
  217. package/node_modules/function-bind/.github/SECURITY.md +3 -0
  218. package/node_modules/function-bind/.nycrc +13 -0
  219. package/node_modules/function-bind/CHANGELOG.md +136 -0
  220. package/node_modules/function-bind/LICENSE +20 -0
  221. package/node_modules/function-bind/README.md +46 -0
  222. package/node_modules/function-bind/implementation.js +84 -0
  223. package/node_modules/function-bind/index.js +5 -0
  224. package/node_modules/function-bind/package.json +87 -0
  225. package/node_modules/function-bind/test/.eslintrc +9 -0
  226. package/node_modules/function-bind/test/index.js +252 -0
  227. package/node_modules/get-intrinsic/.eslintrc +42 -0
  228. package/node_modules/get-intrinsic/.github/FUNDING.yml +12 -0
  229. package/node_modules/get-intrinsic/.nycrc +9 -0
  230. package/node_modules/get-intrinsic/CHANGELOG.md +186 -0
  231. package/node_modules/get-intrinsic/LICENSE +21 -0
  232. package/node_modules/get-intrinsic/README.md +71 -0
  233. package/node_modules/get-intrinsic/index.js +378 -0
  234. package/node_modules/get-intrinsic/package.json +97 -0
  235. package/node_modules/get-intrinsic/test/GetIntrinsic.js +274 -0
  236. package/node_modules/get-proto/.eslintrc +10 -0
  237. package/node_modules/get-proto/.github/FUNDING.yml +12 -0
  238. package/node_modules/get-proto/.nycrc +9 -0
  239. package/node_modules/get-proto/CHANGELOG.md +21 -0
  240. package/node_modules/get-proto/LICENSE +21 -0
  241. package/node_modules/get-proto/Object.getPrototypeOf.d.ts +5 -0
  242. package/node_modules/get-proto/Object.getPrototypeOf.js +6 -0
  243. package/node_modules/get-proto/README.md +50 -0
  244. package/node_modules/get-proto/Reflect.getPrototypeOf.d.ts +3 -0
  245. package/node_modules/get-proto/Reflect.getPrototypeOf.js +4 -0
  246. package/node_modules/get-proto/index.d.ts +5 -0
  247. package/node_modules/get-proto/index.js +27 -0
  248. package/node_modules/get-proto/package.json +81 -0
  249. package/node_modules/get-proto/test/index.js +68 -0
  250. package/node_modules/get-proto/tsconfig.json +9 -0
  251. package/node_modules/gopd/.eslintrc +16 -0
  252. package/node_modules/gopd/.github/FUNDING.yml +12 -0
  253. package/node_modules/gopd/CHANGELOG.md +45 -0
  254. package/node_modules/gopd/LICENSE +21 -0
  255. package/node_modules/gopd/README.md +40 -0
  256. package/node_modules/gopd/gOPD.d.ts +1 -0
  257. package/node_modules/gopd/gOPD.js +4 -0
  258. package/node_modules/gopd/index.d.ts +5 -0
  259. package/node_modules/gopd/index.js +15 -0
  260. package/node_modules/gopd/package.json +77 -0
  261. package/node_modules/gopd/test/index.js +36 -0
  262. package/node_modules/gopd/tsconfig.json +9 -0
  263. package/node_modules/has-symbols/.eslintrc +11 -0
  264. package/node_modules/has-symbols/.github/FUNDING.yml +12 -0
  265. package/node_modules/has-symbols/.nycrc +9 -0
  266. package/node_modules/has-symbols/CHANGELOG.md +91 -0
  267. package/node_modules/has-symbols/LICENSE +21 -0
  268. package/node_modules/has-symbols/README.md +46 -0
  269. package/node_modules/has-symbols/index.d.ts +3 -0
  270. package/node_modules/has-symbols/index.js +14 -0
  271. package/node_modules/has-symbols/package.json +111 -0
  272. package/node_modules/has-symbols/shams.d.ts +3 -0
  273. package/node_modules/has-symbols/shams.js +45 -0
  274. package/node_modules/has-symbols/test/index.js +22 -0
  275. package/node_modules/has-symbols/test/shams/core-js.js +29 -0
  276. package/node_modules/has-symbols/test/shams/get-own-property-symbols.js +29 -0
  277. package/node_modules/has-symbols/test/tests.js +58 -0
  278. package/node_modules/has-symbols/tsconfig.json +10 -0
  279. package/node_modules/has-tostringtag/.eslintrc +5 -0
  280. package/node_modules/has-tostringtag/.github/FUNDING.yml +12 -0
  281. package/node_modules/has-tostringtag/.nycrc +13 -0
  282. package/node_modules/has-tostringtag/CHANGELOG.md +42 -0
  283. package/node_modules/has-tostringtag/LICENSE +21 -0
  284. package/node_modules/has-tostringtag/README.md +46 -0
  285. package/node_modules/has-tostringtag/index.d.ts +3 -0
  286. package/node_modules/has-tostringtag/index.js +8 -0
  287. package/node_modules/has-tostringtag/package.json +108 -0
  288. package/node_modules/has-tostringtag/shams.d.ts +3 -0
  289. package/node_modules/has-tostringtag/shams.js +8 -0
  290. package/node_modules/has-tostringtag/test/index.js +21 -0
  291. package/node_modules/has-tostringtag/test/shams/core-js.js +31 -0
  292. package/node_modules/has-tostringtag/test/shams/get-own-property-symbols.js +30 -0
  293. package/node_modules/has-tostringtag/test/tests.js +15 -0
  294. package/node_modules/has-tostringtag/tsconfig.json +49 -0
  295. package/node_modules/hasown/.github/FUNDING.yml +12 -0
  296. package/node_modules/hasown/.nycrc +13 -0
  297. package/node_modules/hasown/CHANGELOG.md +58 -0
  298. package/node_modules/hasown/LICENSE +21 -0
  299. package/node_modules/hasown/README.md +40 -0
  300. package/node_modules/hasown/eslint.config.mjs +6 -0
  301. package/node_modules/hasown/index.d.ts +3 -0
  302. package/node_modules/hasown/index.js +8 -0
  303. package/node_modules/hasown/package.json +91 -0
  304. package/node_modules/hasown/tsconfig.json +6 -0
  305. package/node_modules/json-bigint/LICENSE +20 -0
  306. package/node_modules/json-bigint/README.md +240 -0
  307. package/node_modules/json-bigint/index.js +12 -0
  308. package/node_modules/json-bigint/lib/parse.js +443 -0
  309. package/node_modules/json-bigint/lib/stringify.js +384 -0
  310. package/node_modules/json-bigint/package.json +34 -0
  311. package/node_modules/math-intrinsics/.eslintrc +16 -0
  312. package/node_modules/math-intrinsics/.github/FUNDING.yml +12 -0
  313. package/node_modules/math-intrinsics/CHANGELOG.md +24 -0
  314. package/node_modules/math-intrinsics/LICENSE +21 -0
  315. package/node_modules/math-intrinsics/README.md +50 -0
  316. package/node_modules/math-intrinsics/abs.d.ts +1 -0
  317. package/node_modules/math-intrinsics/abs.js +4 -0
  318. package/node_modules/math-intrinsics/constants/maxArrayLength.d.ts +3 -0
  319. package/node_modules/math-intrinsics/constants/maxArrayLength.js +4 -0
  320. package/node_modules/math-intrinsics/constants/maxSafeInteger.d.ts +3 -0
  321. package/node_modules/math-intrinsics/constants/maxSafeInteger.js +5 -0
  322. package/node_modules/math-intrinsics/constants/maxValue.d.ts +3 -0
  323. package/node_modules/math-intrinsics/constants/maxValue.js +5 -0
  324. package/node_modules/math-intrinsics/floor.d.ts +1 -0
  325. package/node_modules/math-intrinsics/floor.js +4 -0
  326. package/node_modules/math-intrinsics/isFinite.d.ts +3 -0
  327. package/node_modules/math-intrinsics/isFinite.js +12 -0
  328. package/node_modules/math-intrinsics/isInteger.d.ts +3 -0
  329. package/node_modules/math-intrinsics/isInteger.js +16 -0
  330. package/node_modules/math-intrinsics/isNaN.d.ts +1 -0
  331. package/node_modules/math-intrinsics/isNaN.js +6 -0
  332. package/node_modules/math-intrinsics/isNegativeZero.d.ts +3 -0
  333. package/node_modules/math-intrinsics/isNegativeZero.js +6 -0
  334. package/node_modules/math-intrinsics/max.d.ts +1 -0
  335. package/node_modules/math-intrinsics/max.js +4 -0
  336. package/node_modules/math-intrinsics/min.d.ts +1 -0
  337. package/node_modules/math-intrinsics/min.js +4 -0
  338. package/node_modules/math-intrinsics/mod.d.ts +3 -0
  339. package/node_modules/math-intrinsics/mod.js +9 -0
  340. package/node_modules/math-intrinsics/package.json +86 -0
  341. package/node_modules/math-intrinsics/pow.d.ts +1 -0
  342. package/node_modules/math-intrinsics/pow.js +4 -0
  343. package/node_modules/math-intrinsics/round.d.ts +1 -0
  344. package/node_modules/math-intrinsics/round.js +4 -0
  345. package/node_modules/math-intrinsics/sign.d.ts +3 -0
  346. package/node_modules/math-intrinsics/sign.js +11 -0
  347. package/node_modules/math-intrinsics/test/index.js +192 -0
  348. package/node_modules/math-intrinsics/tsconfig.json +3 -0
  349. package/node_modules/pako/LICENSE +21 -0
  350. package/node_modules/pako/README.md +155 -0
  351. package/node_modules/pako/dist/pako.es5.js +6760 -0
  352. package/node_modules/pako/dist/pako.es5.min.js +2 -0
  353. package/node_modules/pako/dist/pako.esm.mjs +6945 -0
  354. package/node_modules/pako/dist/pako.js +6964 -0
  355. package/node_modules/pako/dist/pako.min.js +2 -0
  356. package/node_modules/pako/dist/pako_deflate.es5.js +3953 -0
  357. package/node_modules/pako/dist/pako_deflate.es5.min.js +2 -0
  358. package/node_modules/pako/dist/pako_deflate.js +4154 -0
  359. package/node_modules/pako/dist/pako_deflate.min.js +2 -0
  360. package/node_modules/pako/dist/pako_inflate.es5.js +3272 -0
  361. package/node_modules/pako/dist/pako_inflate.es5.min.js +2 -0
  362. package/node_modules/pako/dist/pako_inflate.js +3279 -0
  363. package/node_modules/pako/dist/pako_inflate.min.js +2 -0
  364. package/node_modules/pako/index.js +18 -0
  365. package/node_modules/pako/lib/deflate.js +387 -0
  366. package/node_modules/pako/lib/inflate.js +456 -0
  367. package/node_modules/pako/lib/utils/common.js +48 -0
  368. package/node_modules/pako/lib/utils/strings.js +174 -0
  369. package/node_modules/pako/lib/zlib/README +59 -0
  370. package/node_modules/pako/lib/zlib/adler32.js +51 -0
  371. package/node_modules/pako/lib/zlib/constants.js +68 -0
  372. package/node_modules/pako/lib/zlib/crc32.js +59 -0
  373. package/node_modules/pako/lib/zlib/deflate.js +2069 -0
  374. package/node_modules/pako/lib/zlib/gzheader.js +58 -0
  375. package/node_modules/pako/lib/zlib/inffast.js +344 -0
  376. package/node_modules/pako/lib/zlib/inflate.js +1575 -0
  377. package/node_modules/pako/lib/zlib/inftrees.js +340 -0
  378. package/node_modules/pako/lib/zlib/messages.js +32 -0
  379. package/node_modules/pako/lib/zlib/trees.js +1179 -0
  380. package/node_modules/pako/lib/zlib/zstream.js +47 -0
  381. package/node_modules/pako/package.json +73 -0
  382. package/node_modules/semver/LICENSE +15 -0
  383. package/node_modules/semver/README.md +680 -0
  384. package/node_modules/semver/bin/semver.js +195 -0
  385. package/node_modules/semver/classes/comparator.js +143 -0
  386. package/node_modules/semver/classes/index.js +7 -0
  387. package/node_modules/semver/classes/range.js +577 -0
  388. package/node_modules/semver/classes/semver.js +350 -0
  389. package/node_modules/semver/functions/clean.js +8 -0
  390. package/node_modules/semver/functions/cmp.js +54 -0
  391. package/node_modules/semver/functions/coerce.js +62 -0
  392. package/node_modules/semver/functions/compare-build.js +9 -0
  393. package/node_modules/semver/functions/compare-loose.js +5 -0
  394. package/node_modules/semver/functions/compare.js +7 -0
  395. package/node_modules/semver/functions/diff.js +60 -0
  396. package/node_modules/semver/functions/eq.js +5 -0
  397. package/node_modules/semver/functions/gt.js +5 -0
  398. package/node_modules/semver/functions/gte.js +5 -0
  399. package/node_modules/semver/functions/inc.js +21 -0
  400. package/node_modules/semver/functions/lt.js +5 -0
  401. package/node_modules/semver/functions/lte.js +5 -0
  402. package/node_modules/semver/functions/major.js +5 -0
  403. package/node_modules/semver/functions/minor.js +5 -0
  404. package/node_modules/semver/functions/neq.js +5 -0
  405. package/node_modules/semver/functions/parse.js +18 -0
  406. package/node_modules/semver/functions/patch.js +5 -0
  407. package/node_modules/semver/functions/prerelease.js +8 -0
  408. package/node_modules/semver/functions/rcompare.js +5 -0
  409. package/node_modules/semver/functions/rsort.js +5 -0
  410. package/node_modules/semver/functions/satisfies.js +12 -0
  411. package/node_modules/semver/functions/sort.js +5 -0
  412. package/node_modules/semver/functions/truncate.js +48 -0
  413. package/node_modules/semver/functions/valid.js +8 -0
  414. package/node_modules/semver/index.js +93 -0
  415. package/node_modules/semver/internal/constants.js +37 -0
  416. package/node_modules/semver/internal/debug.js +11 -0
  417. package/node_modules/semver/internal/identifiers.js +29 -0
  418. package/node_modules/semver/internal/lrucache.js +42 -0
  419. package/node_modules/semver/internal/parse-options.js +17 -0
  420. package/node_modules/semver/internal/re.js +223 -0
  421. package/node_modules/semver/package.json +78 -0
  422. package/node_modules/semver/preload.js +4 -0
  423. package/node_modules/semver/range.bnf +17 -0
  424. package/node_modules/semver/ranges/gtr.js +6 -0
  425. package/node_modules/semver/ranges/intersects.js +9 -0
  426. package/node_modules/semver/ranges/ltr.js +6 -0
  427. package/node_modules/semver/ranges/max-satisfying.js +27 -0
  428. package/node_modules/semver/ranges/min-satisfying.js +26 -0
  429. package/node_modules/semver/ranges/min-version.js +63 -0
  430. package/node_modules/semver/ranges/outside.js +82 -0
  431. package/node_modules/semver/ranges/simplify.js +49 -0
  432. package/node_modules/semver/ranges/subset.js +249 -0
  433. package/node_modules/semver/ranges/to-comparators.js +10 -0
  434. package/node_modules/semver/ranges/valid.js +13 -0
  435. package/node_modules/spark-md5/LICENSE +13 -0
  436. package/node_modules/spark-md5/README.md +191 -0
  437. package/node_modules/spark-md5/package.json +35 -0
  438. package/node_modules/spark-md5/spark-md5.js +751 -0
  439. package/node_modules/spark-md5/spark-md5.min.js +1 -0
  440. package/node_modules/tldts/LICENSE +13 -0
  441. package/node_modules/tldts/README.md +327 -0
  442. package/node_modules/tldts/bin/cli.js +21 -0
  443. package/node_modules/tldts/dist/cjs/index.js +666 -0
  444. package/node_modules/tldts/dist/cjs/index.js.map +1 -0
  445. package/node_modules/tldts/dist/cjs/src/data/trie.js +14 -0
  446. package/node_modules/tldts/dist/cjs/src/data/trie.js.map +1 -0
  447. package/node_modules/tldts/dist/cjs/src/suffix-trie.js +67 -0
  448. package/node_modules/tldts/dist/cjs/src/suffix-trie.js.map +1 -0
  449. package/node_modules/tldts/dist/cjs/tsconfig.tsbuildinfo +1 -0
  450. package/node_modules/tldts/dist/es6/index.js +33 -0
  451. package/node_modules/tldts/dist/es6/index.js.map +1 -0
  452. package/node_modules/tldts/dist/es6/src/data/trie.js +11 -0
  453. package/node_modules/tldts/dist/es6/src/data/trie.js.map +1 -0
  454. package/node_modules/tldts/dist/es6/src/suffix-trie.js +64 -0
  455. package/node_modules/tldts/dist/es6/src/suffix-trie.js.map +1 -0
  456. package/node_modules/tldts/dist/es6/tsconfig.bundle.tsbuildinfo +1 -0
  457. package/node_modules/tldts/dist/index.cjs.min.js +2 -0
  458. package/node_modules/tldts/dist/index.cjs.min.js.map +1 -0
  459. package/node_modules/tldts/dist/index.esm.min.js +2 -0
  460. package/node_modules/tldts/dist/index.esm.min.js.map +1 -0
  461. package/node_modules/tldts/dist/index.umd.min.js +2 -0
  462. package/node_modules/tldts/dist/index.umd.min.js.map +1 -0
  463. package/node_modules/tldts/dist/types/index.d.ts +7 -0
  464. package/node_modules/tldts/dist/types/src/data/trie.d.ts +5 -0
  465. package/node_modules/tldts/dist/types/src/suffix-trie.d.ts +5 -0
  466. package/node_modules/tldts/index.ts +62 -0
  467. package/node_modules/tldts/package.json +91 -0
  468. package/node_modules/tldts/src/data/trie.ts +14 -0
  469. package/node_modules/tldts/src/suffix-trie.ts +110 -0
  470. package/node_modules/tldts-core/LICENSE +13 -0
  471. package/node_modules/tldts-core/README.md +3 -0
  472. package/node_modules/tldts-core/dist/cjs/index.js +561 -0
  473. package/node_modules/tldts-core/dist/cjs/index.js.map +1 -0
  474. package/node_modules/tldts-core/dist/cjs/src/domain-without-suffix.js +15 -0
  475. package/node_modules/tldts-core/dist/cjs/src/domain-without-suffix.js.map +1 -0
  476. package/node_modules/tldts-core/dist/cjs/src/domain.js +83 -0
  477. package/node_modules/tldts-core/dist/cjs/src/domain.js.map +1 -0
  478. package/node_modules/tldts-core/dist/cjs/src/extract-hostname.js +149 -0
  479. package/node_modules/tldts-core/dist/cjs/src/extract-hostname.js.map +1 -0
  480. package/node_modules/tldts-core/dist/cjs/src/factory.js +104 -0
  481. package/node_modules/tldts-core/dist/cjs/src/factory.js.map +1 -0
  482. package/node_modules/tldts-core/dist/cjs/src/is-ip.js +72 -0
  483. package/node_modules/tldts-core/dist/cjs/src/is-ip.js.map +1 -0
  484. package/node_modules/tldts-core/dist/cjs/src/is-valid.js +69 -0
  485. package/node_modules/tldts-core/dist/cjs/src/is-valid.js.map +1 -0
  486. package/node_modules/tldts-core/dist/cjs/src/lookup/fast-path.js +69 -0
  487. package/node_modules/tldts-core/dist/cjs/src/lookup/fast-path.js.map +1 -0
  488. package/node_modules/tldts-core/dist/cjs/src/lookup/interface.js +3 -0
  489. package/node_modules/tldts-core/dist/cjs/src/lookup/interface.js.map +1 -0
  490. package/node_modules/tldts-core/dist/cjs/src/options.js +22 -0
  491. package/node_modules/tldts-core/dist/cjs/src/options.js.map +1 -0
  492. package/node_modules/tldts-core/dist/cjs/src/subdomain.js +14 -0
  493. package/node_modules/tldts-core/dist/cjs/src/subdomain.js.map +1 -0
  494. package/node_modules/tldts-core/dist/cjs/tsconfig.tsbuildinfo +1 -0
  495. package/node_modules/tldts-core/dist/es6/index.js +4 -0
  496. package/node_modules/tldts-core/dist/es6/index.js.map +1 -0
  497. package/node_modules/tldts-core/dist/es6/src/domain-without-suffix.js +12 -0
  498. package/node_modules/tldts-core/dist/es6/src/domain-without-suffix.js.map +1 -0
  499. package/node_modules/tldts-core/dist/es6/src/domain.js +80 -0
  500. package/node_modules/tldts-core/dist/es6/src/domain.js.map +1 -0
  501. package/node_modules/tldts-core/dist/es6/src/extract-hostname.js +146 -0
  502. package/node_modules/tldts-core/dist/es6/src/extract-hostname.js.map +1 -0
  503. package/node_modules/tldts-core/dist/es6/src/factory.js +99 -0
  504. package/node_modules/tldts-core/dist/es6/src/factory.js.map +1 -0
  505. package/node_modules/tldts-core/dist/es6/src/is-ip.js +69 -0
  506. package/node_modules/tldts-core/dist/es6/src/is-ip.js.map +1 -0
  507. package/node_modules/tldts-core/dist/es6/src/is-valid.js +66 -0
  508. package/node_modules/tldts-core/dist/es6/src/is-valid.js.map +1 -0
  509. package/node_modules/tldts-core/dist/es6/src/lookup/fast-path.js +66 -0
  510. package/node_modules/tldts-core/dist/es6/src/lookup/fast-path.js.map +1 -0
  511. package/node_modules/tldts-core/dist/es6/src/lookup/interface.js +2 -0
  512. package/node_modules/tldts-core/dist/es6/src/lookup/interface.js.map +1 -0
  513. package/node_modules/tldts-core/dist/es6/src/options.js +19 -0
  514. package/node_modules/tldts-core/dist/es6/src/options.js.map +1 -0
  515. package/node_modules/tldts-core/dist/es6/src/subdomain.js +11 -0
  516. package/node_modules/tldts-core/dist/es6/src/subdomain.js.map +1 -0
  517. package/node_modules/tldts-core/dist/es6/tsconfig.bundle.tsbuildinfo +1 -0
  518. package/node_modules/tldts-core/dist/types/index.d.ts +4 -0
  519. package/node_modules/tldts-core/dist/types/src/domain-without-suffix.d.ts +6 -0
  520. package/node_modules/tldts-core/dist/types/src/domain.d.ts +5 -0
  521. package/node_modules/tldts-core/dist/types/src/extract-hostname.d.ts +5 -0
  522. package/node_modules/tldts-core/dist/types/src/factory.d.ts +28 -0
  523. package/node_modules/tldts-core/dist/types/src/is-ip.d.ts +6 -0
  524. package/node_modules/tldts-core/dist/types/src/is-valid.d.ts +15 -0
  525. package/node_modules/tldts-core/dist/types/src/lookup/fast-path.d.ts +2 -0
  526. package/node_modules/tldts-core/dist/types/src/lookup/interface.d.ts +9 -0
  527. package/node_modules/tldts-core/dist/types/src/options.d.ts +10 -0
  528. package/node_modules/tldts-core/dist/types/src/subdomain.d.ts +4 -0
  529. package/node_modules/tldts-core/index.ts +10 -0
  530. package/node_modules/tldts-core/package.json +68 -0
  531. package/node_modules/tldts-core/src/domain-without-suffix.ts +14 -0
  532. package/node_modules/tldts-core/src/domain.ts +100 -0
  533. package/node_modules/tldts-core/src/extract-hostname.ts +170 -0
  534. package/node_modules/tldts-core/src/factory.ts +160 -0
  535. package/node_modules/tldts-core/src/is-ip.ts +87 -0
  536. package/node_modules/tldts-core/src/is-valid.ts +79 -0
  537. package/node_modules/tldts-core/src/lookup/fast-path.ts +80 -0
  538. package/node_modules/tldts-core/src/lookup/interface.ts +10 -0
  539. package/node_modules/tldts-core/src/options.ts +39 -0
  540. package/node_modules/tldts-core/src/subdomain.ts +11 -0
  541. package/node_modules/tough-cookie/LICENSE +12 -0
  542. package/node_modules/tough-cookie/README.md +154 -0
  543. package/node_modules/tough-cookie/dist/cookie/canonicalDomain.d.ts +33 -0
  544. package/node_modules/tough-cookie/dist/cookie/canonicalDomain.js +65 -0
  545. package/node_modules/tough-cookie/dist/cookie/constants.d.ts +54 -0
  546. package/node_modules/tough-cookie/dist/cookie/constants.js +38 -0
  547. package/node_modules/tough-cookie/dist/cookie/cookie.d.ts +326 -0
  548. package/node_modules/tough-cookie/dist/cookie/cookie.js +831 -0
  549. package/node_modules/tough-cookie/dist/cookie/cookieCompare.d.ts +58 -0
  550. package/node_modules/tough-cookie/dist/cookie/cookieCompare.js +84 -0
  551. package/node_modules/tough-cookie/dist/cookie/cookieJar.d.ts +621 -0
  552. package/node_modules/tough-cookie/dist/cookie/cookieJar.js +1000 -0
  553. package/node_modules/tough-cookie/dist/cookie/defaultPath.d.ts +40 -0
  554. package/node_modules/tough-cookie/dist/cookie/defaultPath.js +60 -0
  555. package/node_modules/tough-cookie/dist/cookie/domainMatch.d.ts +38 -0
  556. package/node_modules/tough-cookie/dist/cookie/domainMatch.js +94 -0
  557. package/node_modules/tough-cookie/dist/cookie/formatDate.d.ts +15 -0
  558. package/node_modules/tough-cookie/dist/cookie/formatDate.js +20 -0
  559. package/node_modules/tough-cookie/dist/cookie/index.d.ts +29 -0
  560. package/node_modules/tough-cookie/dist/cookie/index.js +54 -0
  561. package/node_modules/tough-cookie/dist/cookie/parseDate.d.ts +103 -0
  562. package/node_modules/tough-cookie/dist/cookie/parseDate.js +323 -0
  563. package/node_modules/tough-cookie/dist/cookie/permutePath.d.ts +14 -0
  564. package/node_modules/tough-cookie/dist/cookie/permutePath.js +32 -0
  565. package/node_modules/tough-cookie/dist/getPublicSuffix.d.ts +55 -0
  566. package/node_modules/tough-cookie/dist/getPublicSuffix.js +71 -0
  567. package/node_modules/tough-cookie/dist/memstore.d.ts +220 -0
  568. package/node_modules/tough-cookie/dist/memstore.js +187 -0
  569. package/node_modules/tough-cookie/dist/pathMatch.d.ts +17 -0
  570. package/node_modules/tough-cookie/dist/pathMatch.js +40 -0
  571. package/node_modules/tough-cookie/dist/permuteDomain.d.ts +15 -0
  572. package/node_modules/tough-cookie/dist/permuteDomain.js +44 -0
  573. package/node_modules/tough-cookie/dist/store.d.ts +211 -0
  574. package/node_modules/tough-cookie/dist/store.js +76 -0
  575. package/node_modules/tough-cookie/dist/utils.d.ts +34 -0
  576. package/node_modules/tough-cookie/dist/utils.js +99 -0
  577. package/node_modules/tough-cookie/dist/validators.d.ts +24 -0
  578. package/node_modules/tough-cookie/dist/validators.js +90 -0
  579. package/node_modules/tough-cookie/dist/version.d.ts +5 -0
  580. package/node_modules/tough-cookie/dist/version.js +8 -0
  581. package/node_modules/tough-cookie/package.json +144 -0
  582. package/node_modules/ws/LICENSE +20 -0
  583. package/node_modules/ws/README.md +548 -0
  584. package/node_modules/ws/browser.js +8 -0
  585. package/node_modules/ws/index.js +22 -0
  586. package/node_modules/ws/lib/buffer-util.js +131 -0
  587. package/node_modules/ws/lib/constants.js +19 -0
  588. package/node_modules/ws/lib/event-target.js +292 -0
  589. package/node_modules/ws/lib/extension.js +203 -0
  590. package/node_modules/ws/lib/limiter.js +55 -0
  591. package/node_modules/ws/lib/permessage-deflate.js +530 -0
  592. package/node_modules/ws/lib/receiver.js +743 -0
  593. package/node_modules/ws/lib/sender.js +607 -0
  594. package/node_modules/ws/lib/stream.js +161 -0
  595. package/node_modules/ws/lib/subprotocol.js +62 -0
  596. package/node_modules/ws/lib/validation.js +152 -0
  597. package/node_modules/ws/lib/websocket-server.js +562 -0
  598. package/node_modules/ws/lib/websocket.js +1407 -0
  599. package/node_modules/ws/package.json +74 -0
  600. package/node_modules/ws/wrapper.mjs +21 -0
  601. package/node_modules/zca-js/.prettierrc +5 -0
  602. package/node_modules/zca-js/CODE_OF_CONDUCT.md +163 -0
  603. package/node_modules/zca-js/CONTRIBUTING.md +470 -0
  604. package/node_modules/zca-js/LICENSE +21 -0
  605. package/node_modules/zca-js/README.md +225 -0
  606. package/node_modules/zca-js/SECURITY.md +83 -0
  607. package/node_modules/zca-js/dist/Errors/ZaloApiError.d.ts +4 -0
  608. package/node_modules/zca-js/dist/Errors/ZaloApiError.js +7 -0
  609. package/node_modules/zca-js/dist/Errors/ZaloApiLoginQRAborted.d.ts +4 -0
  610. package/node_modules/zca-js/dist/Errors/ZaloApiLoginQRAborted.js +7 -0
  611. package/node_modules/zca-js/dist/Errors/ZaloApiLoginQRDeclined.d.ts +4 -0
  612. package/node_modules/zca-js/dist/Errors/ZaloApiLoginQRDeclined.js +7 -0
  613. package/node_modules/zca-js/dist/Errors/ZaloApiMissingImageMetadataGetter.d.ts +4 -0
  614. package/node_modules/zca-js/dist/Errors/ZaloApiMissingImageMetadataGetter.js +7 -0
  615. package/node_modules/zca-js/dist/Errors/index.d.ts +4 -0
  616. package/node_modules/zca-js/dist/Errors/index.js +4 -0
  617. package/node_modules/zca-js/dist/apis/acceptFriendRequest.d.ts +2 -0
  618. package/node_modules/zca-js/dist/apis/acceptFriendRequest.js +28 -0
  619. package/node_modules/zca-js/dist/apis/addGroupBlockedMember.d.ts +2 -0
  620. package/node_modules/zca-js/dist/apis/addGroupBlockedMember.js +28 -0
  621. package/node_modules/zca-js/dist/apis/addGroupDeputy.d.ts +2 -0
  622. package/node_modules/zca-js/dist/apis/addGroupDeputy.js +30 -0
  623. package/node_modules/zca-js/dist/apis/addPollOptions.d.ts +14 -0
  624. package/node_modules/zca-js/dist/apis/addPollOptions.js +26 -0
  625. package/node_modules/zca-js/dist/apis/addQuickMessage.d.ts +11 -0
  626. package/node_modules/zca-js/dist/apis/addQuickMessage.js +60 -0
  627. package/node_modules/zca-js/dist/apis/addReaction.d.ts +18 -0
  628. package/node_modules/zca-js/dist/apis/addReaction.js +294 -0
  629. package/node_modules/zca-js/dist/apis/addUnreadMark.d.ts +8 -0
  630. package/node_modules/zca-js/dist/apis/addUnreadMark.js +52 -0
  631. package/node_modules/zca-js/dist/apis/addUserToGroup.d.ts +5 -0
  632. package/node_modules/zca-js/dist/apis/addUserToGroup.js +34 -0
  633. package/node_modules/zca-js/dist/apis/blockUser.d.ts +2 -0
  634. package/node_modules/zca-js/dist/apis/blockUser.js +28 -0
  635. package/node_modules/zca-js/dist/apis/blockViewFeed.d.ts +2 -0
  636. package/node_modules/zca-js/dist/apis/blockViewFeed.js +30 -0
  637. package/node_modules/zca-js/dist/apis/changeAccountAvatar.d.ts +3 -0
  638. package/node_modules/zca-js/dist/apis/changeAccountAvatar.js +52 -0
  639. package/node_modules/zca-js/dist/apis/changeFriendAlias.d.ts +2 -0
  640. package/node_modules/zca-js/dist/apis/changeFriendAlias.js +27 -0
  641. package/node_modules/zca-js/dist/apis/changeGroupAvatar.d.ts +3 -0
  642. package/node_modules/zca-js/dist/apis/changeGroupAvatar.js +44 -0
  643. package/node_modules/zca-js/dist/apis/changeGroupName.d.ts +4 -0
  644. package/node_modules/zca-js/dist/apis/changeGroupName.js +32 -0
  645. package/node_modules/zca-js/dist/apis/changeGroupOwner.d.ts +4 -0
  646. package/node_modules/zca-js/dist/apis/changeGroupOwner.js +30 -0
  647. package/node_modules/zca-js/dist/apis/createAutoReply.d.ts +14 -0
  648. package/node_modules/zca-js/dist/apis/createAutoReply.js +37 -0
  649. package/node_modules/zca-js/dist/apis/createBankAccount.d.ts +8 -0
  650. package/node_modules/zca-js/dist/apis/createBankAccount.js +32 -0
  651. package/node_modules/zca-js/dist/apis/createCatalog.d.ts +7 -0
  652. package/node_modules/zca-js/dist/apis/createCatalog.js +29 -0
  653. package/node_modules/zca-js/dist/apis/createGroup.d.ts +28 -0
  654. package/node_modules/zca-js/dist/apis/createGroup.js +43 -0
  655. package/node_modules/zca-js/dist/apis/createNote.d.ts +7 -0
  656. package/node_modules/zca-js/dist/apis/createNote.js +47 -0
  657. package/node_modules/zca-js/dist/apis/createPoll.d.ts +36 -0
  658. package/node_modules/zca-js/dist/apis/createPoll.js +40 -0
  659. package/node_modules/zca-js/dist/apis/createProductCatalog.d.ts +23 -0
  660. package/node_modules/zca-js/dist/apis/createProductCatalog.js +50 -0
  661. package/node_modules/zca-js/dist/apis/createReminder.d.ts +12 -0
  662. package/node_modules/zca-js/dist/apis/createReminder.js +63 -0
  663. package/node_modules/zca-js/dist/apis/custom.d.ts +9 -0
  664. package/node_modules/zca-js/dist/apis/custom.js +15 -0
  665. package/node_modules/zca-js/dist/apis/deleteAutoReply.d.ts +5 -0
  666. package/node_modules/zca-js/dist/apis/deleteAutoReply.js +29 -0
  667. package/node_modules/zca-js/dist/apis/deleteAvatar.d.ts +9 -0
  668. package/node_modules/zca-js/dist/apis/deleteAvatar.js +27 -0
  669. package/node_modules/zca-js/dist/apis/deleteBankAccount.d.ts +11 -0
  670. package/node_modules/zca-js/dist/apis/deleteBankAccount.js +32 -0
  671. package/node_modules/zca-js/dist/apis/deleteCatalog.d.ts +2 -0
  672. package/node_modules/zca-js/dist/apis/deleteCatalog.js +28 -0
  673. package/node_modules/zca-js/dist/apis/deleteChat.d.ts +19 -0
  674. package/node_modules/zca-js/dist/apis/deleteChat.js +50 -0
  675. package/node_modules/zca-js/dist/apis/deleteGroupInviteBox.d.ts +9 -0
  676. package/node_modules/zca-js/dist/apis/deleteGroupInviteBox.js +27 -0
  677. package/node_modules/zca-js/dist/apis/deleteMessage.d.ts +14 -0
  678. package/node_modules/zca-js/dist/apis/deleteMessage.js +52 -0
  679. package/node_modules/zca-js/dist/apis/deleteProductCatalog.d.ts +10 -0
  680. package/node_modules/zca-js/dist/apis/deleteProductCatalog.js +31 -0
  681. package/node_modules/zca-js/dist/apis/deleteSnapshotMobileMsg.js +18 -0
  682. package/node_modules/zca-js/dist/apis/disableGroupLink.d.ts +2 -0
  683. package/node_modules/zca-js/dist/apis/disableGroupLink.js +24 -0
  684. package/node_modules/zca-js/dist/apis/disperseGroup.d.ts +2 -0
  685. package/node_modules/zca-js/dist/apis/disperseGroup.js +28 -0
  686. package/node_modules/zca-js/dist/apis/editNote.d.ts +17 -0
  687. package/node_modules/zca-js/dist/apis/editNote.js +46 -0
  688. package/node_modules/zca-js/dist/apis/editReminder.d.ts +13 -0
  689. package/node_modules/zca-js/dist/apis/editReminder.js +61 -0
  690. package/node_modules/zca-js/dist/apis/enableGroupLink.d.ts +6 -0
  691. package/node_modules/zca-js/dist/apis/enableGroupLink.js +25 -0
  692. package/node_modules/zca-js/dist/apis/fetchAccountInfo.d.ts +5 -0
  693. package/node_modules/zca-js/dist/apis/fetchAccountInfo.js +10 -0
  694. package/node_modules/zca-js/dist/apis/findUser.d.ts +3 -0
  695. package/node_modules/zca-js/dist/apis/findUser.js +42 -0
  696. package/node_modules/zca-js/dist/apis/findUserByUsername.d.ts +3 -0
  697. package/node_modules/zca-js/dist/apis/findUserByUsername.js +27 -0
  698. package/node_modules/zca-js/dist/apis/forwardMessage.d.ts +24 -0
  699. package/node_modules/zca-js/dist/apis/forwardMessage.js +114 -0
  700. package/node_modules/zca-js/dist/apis/getAliasList.d.ts +8 -0
  701. package/node_modules/zca-js/dist/apis/getAliasList.js +27 -0
  702. package/node_modules/zca-js/dist/apis/getAllFriends.d.ts +3 -0
  703. package/node_modules/zca-js/dist/apis/getAllFriends.js +34 -0
  704. package/node_modules/zca-js/dist/apis/getAllGroups.d.ts +7 -0
  705. package/node_modules/zca-js/dist/apis/getAllGroups.js +10 -0
  706. package/node_modules/zca-js/dist/apis/getArchivedChatList.d.ts +5 -0
  707. package/node_modules/zca-js/dist/apis/getArchivedChatList.js +23 -0
  708. package/node_modules/zca-js/dist/apis/getAutoDeleteChat.d.ts +9 -0
  709. package/node_modules/zca-js/dist/apis/getAutoDeleteChat.js +21 -0
  710. package/node_modules/zca-js/dist/apis/getAutoReplyList.d.ts +6 -0
  711. package/node_modules/zca-js/dist/apis/getAutoReplyList.js +24 -0
  712. package/node_modules/zca-js/dist/apis/getAvatarList.d.ts +12 -0
  713. package/node_modules/zca-js/dist/apis/getAvatarList.js +28 -0
  714. package/node_modules/zca-js/dist/apis/getAvatarUrlProfile.d.ts +7 -0
  715. package/node_modules/zca-js/dist/apis/getAvatarUrlProfile.js +30 -0
  716. package/node_modules/zca-js/dist/apis/getBizAccount.d.ts +24 -0
  717. package/node_modules/zca-js/dist/apis/getBizAccount.js +27 -0
  718. package/node_modules/zca-js/dist/apis/getCatalogList.d.ts +18 -0
  719. package/node_modules/zca-js/dist/apis/getCatalogList.js +32 -0
  720. package/node_modules/zca-js/dist/apis/getCloseFriends.d.ts +3 -0
  721. package/node_modules/zca-js/dist/apis/getCloseFriends.js +20 -0
  722. package/node_modules/zca-js/dist/apis/getContext.d.ts +1 -0
  723. package/node_modules/zca-js/dist/apis/getContext.js +4 -0
  724. package/node_modules/zca-js/dist/apis/getCookie.d.ts +1 -0
  725. package/node_modules/zca-js/dist/apis/getCookie.js +9 -0
  726. package/node_modules/zca-js/dist/apis/getCrossDB.js +18 -0
  727. package/node_modules/zca-js/dist/apis/getFriendBoardList.d.ts +5 -0
  728. package/node_modules/zca-js/dist/apis/getFriendBoardList.js +26 -0
  729. package/node_modules/zca-js/dist/apis/getFriendOnlines.d.ts +10 -0
  730. package/node_modules/zca-js/dist/apis/getFriendOnlines.js +35 -0
  731. package/node_modules/zca-js/dist/apis/getFriendRecommendations.d.ts +42 -0
  732. package/node_modules/zca-js/dist/apis/getFriendRecommendations.js +27 -0
  733. package/node_modules/zca-js/dist/apis/getFriendRequestStatus.d.ts +8 -0
  734. package/node_modules/zca-js/dist/apis/getFriendRequestStatus.js +25 -0
  735. package/node_modules/zca-js/dist/apis/getFullAvatar.d.ts +5 -0
  736. package/node_modules/zca-js/dist/apis/getFullAvatar.js +25 -0
  737. package/node_modules/zca-js/dist/apis/getGroupBlockedMember.d.ts +23 -0
  738. package/node_modules/zca-js/dist/apis/getGroupBlockedMember.js +29 -0
  739. package/node_modules/zca-js/dist/apis/getGroupChatHistory.d.ts +8 -0
  740. package/node_modules/zca-js/dist/apis/getGroupChatHistory.js +36 -0
  741. package/node_modules/zca-js/dist/apis/getGroupInfo.d.ts +16 -0
  742. package/node_modules/zca-js/dist/apis/getGroupInfo.js +32 -0
  743. package/node_modules/zca-js/dist/apis/getGroupInviteBoxInfo.d.ts +32 -0
  744. package/node_modules/zca-js/dist/apis/getGroupInviteBoxInfo.js +38 -0
  745. package/node_modules/zca-js/dist/apis/getGroupInviteBoxList.d.ts +38 -0
  746. package/node_modules/zca-js/dist/apis/getGroupInviteBoxList.js +31 -0
  747. package/node_modules/zca-js/dist/apis/getGroupLinkDetail.d.ts +9 -0
  748. package/node_modules/zca-js/dist/apis/getGroupLinkDetail.js +25 -0
  749. package/node_modules/zca-js/dist/apis/getGroupLinkInfo.d.ts +34 -0
  750. package/node_modules/zca-js/dist/apis/getGroupLinkInfo.js +28 -0
  751. package/node_modules/zca-js/dist/apis/getGroupMembersInfo.d.ts +17 -0
  752. package/node_modules/zca-js/dist/apis/getGroupMembersInfo.js +24 -0
  753. package/node_modules/zca-js/dist/apis/getHiddenConversations.d.ts +11 -0
  754. package/node_modules/zca-js/dist/apis/getHiddenConversations.js +23 -0
  755. package/node_modules/zca-js/dist/apis/getLabels.d.ts +7 -0
  756. package/node_modules/zca-js/dist/apis/getLabels.js +28 -0
  757. package/node_modules/zca-js/dist/apis/getListBank.d.ts +5 -0
  758. package/node_modules/zca-js/dist/apis/getListBank.js +20 -0
  759. package/node_modules/zca-js/dist/apis/getListBankAccount.d.ts +7 -0
  760. package/node_modules/zca-js/dist/apis/getListBankAccount.js +27 -0
  761. package/node_modules/zca-js/dist/apis/getListBoard.d.ts +21 -0
  762. package/node_modules/zca-js/dist/apis/getListBoard.js +45 -0
  763. package/node_modules/zca-js/dist/apis/getListDevice.d.ts +10 -0
  764. package/node_modules/zca-js/dist/apis/getListDevice.js +22 -0
  765. package/node_modules/zca-js/dist/apis/getListReminder.d.ts +28 -0
  766. package/node_modules/zca-js/dist/apis/getListReminder.js +47 -0
  767. package/node_modules/zca-js/dist/apis/getMultiUsersByPhones.d.ts +5 -0
  768. package/node_modules/zca-js/dist/apis/getMultiUsersByPhones.js +39 -0
  769. package/node_modules/zca-js/dist/apis/getMute.d.ts +13 -0
  770. package/node_modules/zca-js/dist/apis/getMute.js +22 -0
  771. package/node_modules/zca-js/dist/apis/getOwnId.d.ts +1 -0
  772. package/node_modules/zca-js/dist/apis/getOwnId.js +4 -0
  773. package/node_modules/zca-js/dist/apis/getPendingGroupMembers.d.ts +11 -0
  774. package/node_modules/zca-js/dist/apis/getPendingGroupMembers.js +27 -0
  775. package/node_modules/zca-js/dist/apis/getPinConversations.d.ts +5 -0
  776. package/node_modules/zca-js/dist/apis/getPinConversations.js +22 -0
  777. package/node_modules/zca-js/dist/apis/getPollDetail.d.ts +3 -0
  778. package/node_modules/zca-js/dist/apis/getPollDetail.js +30 -0
  779. package/node_modules/zca-js/dist/apis/getProductCatalogList.d.ts +20 -0
  780. package/node_modules/zca-js/dist/apis/getProductCatalogList.js +33 -0
  781. package/node_modules/zca-js/dist/apis/getQR.d.ts +4 -0
  782. package/node_modules/zca-js/dist/apis/getQR.js +29 -0
  783. package/node_modules/zca-js/dist/apis/getQuickMessageList.d.ts +7 -0
  784. package/node_modules/zca-js/dist/apis/getQuickMessageList.js +24 -0
  785. package/node_modules/zca-js/dist/apis/getRelatedFriendGroup.d.ts +6 -0
  786. package/node_modules/zca-js/dist/apis/getRelatedFriendGroup.js +30 -0
  787. package/node_modules/zca-js/dist/apis/getReminder.d.ts +3 -0
  788. package/node_modules/zca-js/dist/apis/getReminder.js +25 -0
  789. package/node_modules/zca-js/dist/apis/getReminderResponses.d.ts +5 -0
  790. package/node_modules/zca-js/dist/apis/getReminderResponses.js +24 -0
  791. package/node_modules/zca-js/dist/apis/getSentFriendRequest.d.ts +18 -0
  792. package/node_modules/zca-js/dist/apis/getSentFriendRequest.js +24 -0
  793. package/node_modules/zca-js/dist/apis/getSettings.d.ts +3 -0
  794. package/node_modules/zca-js/dist/apis/getSettings.js +20 -0
  795. package/node_modules/zca-js/dist/apis/getStickerCategoryDetail.d.ts +3 -0
  796. package/node_modules/zca-js/dist/apis/getStickerCategoryDetail.js +24 -0
  797. package/node_modules/zca-js/dist/apis/getStickers.d.ts +1 -0
  798. package/node_modules/zca-js/dist/apis/getStickers.js +40 -0
  799. package/node_modules/zca-js/dist/apis/getStickersDetail.d.ts +3 -0
  800. package/node_modules/zca-js/dist/apis/getStickersDetail.js +40 -0
  801. package/node_modules/zca-js/dist/apis/getUnreadMark.d.ts +14 -0
  802. package/node_modules/zca-js/dist/apis/getUnreadMark.js +30 -0
  803. package/node_modules/zca-js/dist/apis/getUserInfo.d.ts +8 -0
  804. package/node_modules/zca-js/dist/apis/getUserInfo.js +44 -0
  805. package/node_modules/zca-js/dist/apis/inviteUserToGroups.d.ts +10 -0
  806. package/node_modules/zca-js/dist/apis/inviteUserToGroups.js +30 -0
  807. package/node_modules/zca-js/dist/apis/joinGroupInviteBox.d.ts +2 -0
  808. package/node_modules/zca-js/dist/apis/joinGroupInviteBox.js +25 -0
  809. package/node_modules/zca-js/dist/apis/joinGroupLink.d.ts +2 -0
  810. package/node_modules/zca-js/dist/apis/joinGroupLink.js +27 -0
  811. package/node_modules/zca-js/dist/apis/keepAlive.d.ts +4 -0
  812. package/node_modules/zca-js/dist/apis/keepAlive.js +22 -0
  813. package/node_modules/zca-js/dist/apis/lastOnline.d.ts +7 -0
  814. package/node_modules/zca-js/dist/apis/lastOnline.js +26 -0
  815. package/node_modules/zca-js/dist/apis/leaveGroup.d.ts +4 -0
  816. package/node_modules/zca-js/dist/apis/leaveGroup.js +33 -0
  817. package/node_modules/zca-js/dist/apis/listen.d.ts +102 -0
  818. package/node_modules/zca-js/dist/apis/listen.js +425 -0
  819. package/node_modules/zca-js/dist/apis/lockPoll.d.ts +2 -0
  820. package/node_modules/zca-js/dist/apis/lockPoll.js +28 -0
  821. package/node_modules/zca-js/dist/apis/login.d.ts +3 -0
  822. package/node_modules/zca-js/dist/apis/login.js +96 -0
  823. package/node_modules/zca-js/dist/apis/loginQR.d.ts +71 -0
  824. package/node_modules/zca-js/dist/apis/loginQR.js +376 -0
  825. package/node_modules/zca-js/dist/apis/logoutV2.js +79 -0
  826. package/node_modules/zca-js/dist/apis/lostFocus.d.ts +4 -0
  827. package/node_modules/zca-js/dist/apis/lostFocus.js +23 -0
  828. package/node_modules/zca-js/dist/apis/parseLink.d.ts +21 -0
  829. package/node_modules/zca-js/dist/apis/parseLink.js +27 -0
  830. package/node_modules/zca-js/dist/apis/pullMobileMsg.js +22 -0
  831. package/node_modules/zca-js/dist/apis/registerCatalog.d.ts +2 -0
  832. package/node_modules/zca-js/dist/apis/registerCatalog.js +27 -0
  833. package/node_modules/zca-js/dist/apis/rejectFriendRequest.d.ts +2 -0
  834. package/node_modules/zca-js/dist/apis/rejectFriendRequest.js +27 -0
  835. package/node_modules/zca-js/dist/apis/removeFriend.d.ts +2 -0
  836. package/node_modules/zca-js/dist/apis/removeFriend.js +28 -0
  837. package/node_modules/zca-js/dist/apis/removeFriendAlias.d.ts +2 -0
  838. package/node_modules/zca-js/dist/apis/removeFriendAlias.js +24 -0
  839. package/node_modules/zca-js/dist/apis/removeGroupBlockedMember.d.ts +2 -0
  840. package/node_modules/zca-js/dist/apis/removeGroupBlockedMember.js +28 -0
  841. package/node_modules/zca-js/dist/apis/removeGroupDeputy.d.ts +2 -0
  842. package/node_modules/zca-js/dist/apis/removeGroupDeputy.js +30 -0
  843. package/node_modules/zca-js/dist/apis/removeQuickMessage.d.ts +5 -0
  844. package/node_modules/zca-js/dist/apis/removeQuickMessage.js +27 -0
  845. package/node_modules/zca-js/dist/apis/removeReminder.d.ts +3 -0
  846. package/node_modules/zca-js/dist/apis/removeReminder.js +40 -0
  847. package/node_modules/zca-js/dist/apis/removeUnreadMark.d.ts +8 -0
  848. package/node_modules/zca-js/dist/apis/removeUnreadMark.js +50 -0
  849. package/node_modules/zca-js/dist/apis/removeUserFromGroup.d.ts +4 -0
  850. package/node_modules/zca-js/dist/apis/removeUserFromGroup.js +34 -0
  851. package/node_modules/zca-js/dist/apis/requestSyncMessage.js +18 -0
  852. package/node_modules/zca-js/dist/apis/resetHiddenConversPin.d.ts +2 -0
  853. package/node_modules/zca-js/dist/apis/resetHiddenConversPin.js +20 -0
  854. package/node_modules/zca-js/dist/apis/reuseAvatar.d.ts +2 -0
  855. package/node_modules/zca-js/dist/apis/reuseAvatar.js +26 -0
  856. package/node_modules/zca-js/dist/apis/reviewPendingMemberRequest.d.ts +14 -0
  857. package/node_modules/zca-js/dist/apis/reviewPendingMemberRequest.js +38 -0
  858. package/node_modules/zca-js/dist/apis/scanURL.d.ts +4 -0
  859. package/node_modules/zca-js/dist/apis/scanURL.js +28 -0
  860. package/node_modules/zca-js/dist/apis/searchSticker.d.ts +3 -0
  861. package/node_modules/zca-js/dist/apis/searchSticker.js +28 -0
  862. package/node_modules/zca-js/dist/apis/sendBankCard.d.ts +9 -0
  863. package/node_modules/zca-js/dist/apis/sendBankCard.js +53 -0
  864. package/node_modules/zca-js/dist/apis/sendCard.d.ts +10 -0
  865. package/node_modules/zca-js/dist/apis/sendCard.js +75 -0
  866. package/node_modules/zca-js/dist/apis/sendDeliveredEvent.d.ts +16 -0
  867. package/node_modules/zca-js/dist/apis/sendDeliveredEvent.js +55 -0
  868. package/node_modules/zca-js/dist/apis/sendFriendRequest.d.ts +2 -0
  869. package/node_modules/zca-js/dist/apis/sendFriendRequest.js +39 -0
  870. package/node_modules/zca-js/dist/apis/sendLink.d.ts +10 -0
  871. package/node_modules/zca-js/dist/apis/sendLink.js +78 -0
  872. package/node_modules/zca-js/dist/apis/sendMessage.d.ts +105 -0
  873. package/node_modules/zca-js/dist/apis/sendMessage.js +486 -0
  874. package/node_modules/zca-js/dist/apis/sendReport.d.ts +17 -0
  875. package/node_modules/zca-js/dist/apis/sendReport.js +53 -0
  876. package/node_modules/zca-js/dist/apis/sendSeenEvent.d.ts +16 -0
  877. package/node_modules/zca-js/dist/apis/sendSeenEvent.js +63 -0
  878. package/node_modules/zca-js/dist/apis/sendSticker.d.ts +10 -0
  879. package/node_modules/zca-js/dist/apis/sendSticker.js +74 -0
  880. package/node_modules/zca-js/dist/apis/sendTypingEvent.d.ts +5 -0
  881. package/node_modules/zca-js/dist/apis/sendTypingEvent.js +33 -0
  882. package/node_modules/zca-js/dist/apis/sendVideo.d.ts +35 -0
  883. package/node_modules/zca-js/dist/apis/sendVideo.js +134 -0
  884. package/node_modules/zca-js/dist/apis/sendVoice.d.ts +12 -0
  885. package/node_modules/zca-js/dist/apis/sendVoice.js +89 -0
  886. package/node_modules/zca-js/dist/apis/setHiddenConversations.d.ts +3 -0
  887. package/node_modules/zca-js/dist/apis/setHiddenConversations.js +39 -0
  888. package/node_modules/zca-js/dist/apis/setMute.d.ts +20 -0
  889. package/node_modules/zca-js/dist/apis/setMute.js +67 -0
  890. package/node_modules/zca-js/dist/apis/setPinnedConversations.d.ts +3 -0
  891. package/node_modules/zca-js/dist/apis/setPinnedConversations.js +34 -0
  892. package/node_modules/zca-js/dist/apis/sharePoll.d.ts +2 -0
  893. package/node_modules/zca-js/dist/apis/sharePoll.js +28 -0
  894. package/node_modules/zca-js/dist/apis/unblockUser.d.ts +2 -0
  895. package/node_modules/zca-js/dist/apis/unblockUser.js +28 -0
  896. package/node_modules/zca-js/dist/apis/undo.d.ts +9 -0
  897. package/node_modules/zca-js/dist/apis/undo.js +42 -0
  898. package/node_modules/zca-js/dist/apis/undoFriendRequest.d.ts +2 -0
  899. package/node_modules/zca-js/dist/apis/undoFriendRequest.js +27 -0
  900. package/node_modules/zca-js/dist/apis/updateActiveStatus.d.ts +4 -0
  901. package/node_modules/zca-js/dist/apis/updateActiveStatus.js +27 -0
  902. package/node_modules/zca-js/dist/apis/updateArchivedChatList.d.ts +10 -0
  903. package/node_modules/zca-js/dist/apis/updateArchivedChatList.js +34 -0
  904. package/node_modules/zca-js/dist/apis/updateAutoDeleteChat.d.ts +9 -0
  905. package/node_modules/zca-js/dist/apis/updateAutoDeleteChat.js +40 -0
  906. package/node_modules/zca-js/dist/apis/updateAutoReply.d.ts +15 -0
  907. package/node_modules/zca-js/dist/apis/updateAutoReply.js +38 -0
  908. package/node_modules/zca-js/dist/apis/updateBankAccount.d.ts +9 -0
  909. package/node_modules/zca-js/dist/apis/updateBankAccount.js +31 -0
  910. package/node_modules/zca-js/dist/apis/updateCatalog.d.ts +11 -0
  911. package/node_modules/zca-js/dist/apis/updateCatalog.js +30 -0
  912. package/node_modules/zca-js/dist/apis/updateGroupSettings.d.ts +40 -0
  913. package/node_modules/zca-js/dist/apis/updateGroupSettings.js +43 -0
  914. package/node_modules/zca-js/dist/apis/updateHiddenConversPin.d.ts +2 -0
  915. package/node_modules/zca-js/dist/apis/updateHiddenConversPin.js +30 -0
  916. package/node_modules/zca-js/dist/apis/updateLabels.d.ts +15 -0
  917. package/node_modules/zca-js/dist/apis/updateLabels.js +34 -0
  918. package/node_modules/zca-js/dist/apis/updateLang.d.ts +6 -0
  919. package/node_modules/zca-js/dist/apis/updateLang.js +30 -0
  920. package/node_modules/zca-js/dist/apis/updateProductCatalog.d.ts +25 -0
  921. package/node_modules/zca-js/dist/apis/updateProductCatalog.js +51 -0
  922. package/node_modules/zca-js/dist/apis/updateProfile.d.ts +20 -0
  923. package/node_modules/zca-js/dist/apis/updateProfile.js +43 -0
  924. package/node_modules/zca-js/dist/apis/updateProfileBio.d.ts +2 -0
  925. package/node_modules/zca-js/dist/apis/updateProfileBio.js +27 -0
  926. package/node_modules/zca-js/dist/apis/updateQuickMessage.d.ts +11 -0
  927. package/node_modules/zca-js/dist/apis/updateQuickMessage.js +61 -0
  928. package/node_modules/zca-js/dist/apis/updateSettings.d.ts +16 -0
  929. package/node_modules/zca-js/dist/apis/updateSettings.js +90 -0
  930. package/node_modules/zca-js/dist/apis/upgradeGroupToCommunity.d.ts +2 -0
  931. package/node_modules/zca-js/dist/apis/upgradeGroupToCommunity.js +27 -0
  932. package/node_modules/zca-js/dist/apis/uploadAttachment.d.ts +50 -0
  933. package/node_modules/zca-js/dist/apis/uploadAttachment.js +197 -0
  934. package/node_modules/zca-js/dist/apis/uploadProductPhoto.d.ts +14 -0
  935. package/node_modules/zca-js/dist/apis/uploadProductPhoto.js +50 -0
  936. package/node_modules/zca-js/dist/apis/votePoll.d.ts +5 -0
  937. package/node_modules/zca-js/dist/apis/votePoll.js +29 -0
  938. package/node_modules/zca-js/dist/apis.d.ts +317 -0
  939. package/node_modules/zca-js/dist/apis.js +327 -0
  940. package/node_modules/zca-js/dist/cjs/Errors/ZaloApiError.cjs +11 -0
  941. package/node_modules/zca-js/dist/cjs/Errors/ZaloApiLoginQRAborted.cjs +12 -0
  942. package/node_modules/zca-js/dist/cjs/Errors/ZaloApiLoginQRDeclined.cjs +12 -0
  943. package/node_modules/zca-js/dist/cjs/Errors/ZaloApiMissingImageMetadataGetter.cjs +12 -0
  944. package/node_modules/zca-js/dist/cjs/apis/acceptFriendRequest.cjs +33 -0
  945. package/node_modules/zca-js/dist/cjs/apis/addGroupBlockedMember.cjs +33 -0
  946. package/node_modules/zca-js/dist/cjs/apis/addGroupDeputy.cjs +35 -0
  947. package/node_modules/zca-js/dist/cjs/apis/addPollOptions.cjs +31 -0
  948. package/node_modules/zca-js/dist/cjs/apis/addQuickMessage.cjs +65 -0
  949. package/node_modules/zca-js/dist/cjs/apis/addReaction.cjs +308 -0
  950. package/node_modules/zca-js/dist/cjs/apis/addUnreadMark.cjs +66 -0
  951. package/node_modules/zca-js/dist/cjs/apis/addUserToGroup.cjs +39 -0
  952. package/node_modules/zca-js/dist/cjs/apis/blockUser.cjs +33 -0
  953. package/node_modules/zca-js/dist/cjs/apis/blockViewFeed.cjs +35 -0
  954. package/node_modules/zca-js/dist/cjs/apis/changeAccountAvatar.cjs +57 -0
  955. package/node_modules/zca-js/dist/cjs/apis/changeFriendAlias.cjs +32 -0
  956. package/node_modules/zca-js/dist/cjs/apis/changeGroupAvatar.cjs +49 -0
  957. package/node_modules/zca-js/dist/cjs/apis/changeGroupName.cjs +37 -0
  958. package/node_modules/zca-js/dist/cjs/apis/changeGroupOwner.cjs +35 -0
  959. package/node_modules/zca-js/dist/cjs/apis/createAutoReply.cjs +42 -0
  960. package/node_modules/zca-js/dist/cjs/apis/createBankAccount.cjs +37 -0
  961. package/node_modules/zca-js/dist/cjs/apis/createCatalog.cjs +34 -0
  962. package/node_modules/zca-js/dist/cjs/apis/createGroup.cjs +48 -0
  963. package/node_modules/zca-js/dist/cjs/apis/createNote.cjs +52 -0
  964. package/node_modules/zca-js/dist/cjs/apis/createPoll.cjs +45 -0
  965. package/node_modules/zca-js/dist/cjs/apis/createProductCatalog.cjs +55 -0
  966. package/node_modules/zca-js/dist/cjs/apis/createReminder.cjs +77 -0
  967. package/node_modules/zca-js/dist/cjs/apis/custom.cjs +19 -0
  968. package/node_modules/zca-js/dist/cjs/apis/deleteAutoReply.cjs +34 -0
  969. package/node_modules/zca-js/dist/cjs/apis/deleteAvatar.cjs +32 -0
  970. package/node_modules/zca-js/dist/cjs/apis/deleteBankAccount.cjs +37 -0
  971. package/node_modules/zca-js/dist/cjs/apis/deleteCatalog.cjs +33 -0
  972. package/node_modules/zca-js/dist/cjs/apis/deleteChat.cjs +64 -0
  973. package/node_modules/zca-js/dist/cjs/apis/deleteGroupInviteBox.cjs +32 -0
  974. package/node_modules/zca-js/dist/cjs/apis/deleteMessage.cjs +66 -0
  975. package/node_modules/zca-js/dist/cjs/apis/deleteProductCatalog.cjs +36 -0
  976. package/node_modules/zca-js/dist/cjs/apis/deleteSnapshotMobileMsg.cjs +22 -0
  977. package/node_modules/zca-js/dist/cjs/apis/disableGroupLink.cjs +29 -0
  978. package/node_modules/zca-js/dist/cjs/apis/disperseGroup.cjs +33 -0
  979. package/node_modules/zca-js/dist/cjs/apis/editNote.cjs +51 -0
  980. package/node_modules/zca-js/dist/cjs/apis/editReminder.cjs +75 -0
  981. package/node_modules/zca-js/dist/cjs/apis/enableGroupLink.cjs +30 -0
  982. package/node_modules/zca-js/dist/cjs/apis/fetchAccountInfo.cjs +15 -0
  983. package/node_modules/zca-js/dist/cjs/apis/findUser.cjs +56 -0
  984. package/node_modules/zca-js/dist/cjs/apis/findUserByUsername.cjs +41 -0
  985. package/node_modules/zca-js/dist/cjs/apis/forwardMessage.cjs +129 -0
  986. package/node_modules/zca-js/dist/cjs/apis/getAliasList.cjs +32 -0
  987. package/node_modules/zca-js/dist/cjs/apis/getAllFriends.cjs +48 -0
  988. package/node_modules/zca-js/dist/cjs/apis/getAllGroups.cjs +15 -0
  989. package/node_modules/zca-js/dist/cjs/apis/getArchivedChatList.cjs +28 -0
  990. package/node_modules/zca-js/dist/cjs/apis/getAutoDeleteChat.cjs +26 -0
  991. package/node_modules/zca-js/dist/cjs/apis/getAutoReplyList.cjs +29 -0
  992. package/node_modules/zca-js/dist/cjs/apis/getAvatarList.cjs +33 -0
  993. package/node_modules/zca-js/dist/cjs/apis/getAvatarUrlProfile.cjs +44 -0
  994. package/node_modules/zca-js/dist/cjs/apis/getBizAccount.cjs +32 -0
  995. package/node_modules/zca-js/dist/cjs/apis/getCatalogList.cjs +37 -0
  996. package/node_modules/zca-js/dist/cjs/apis/getCloseFriends.cjs +25 -0
  997. package/node_modules/zca-js/dist/cjs/apis/getContext.cjs +9 -0
  998. package/node_modules/zca-js/dist/cjs/apis/getCookie.cjs +14 -0
  999. package/node_modules/zca-js/dist/cjs/apis/getCrossDB.cjs +22 -0
  1000. package/node_modules/zca-js/dist/cjs/apis/getFriendBoardList.cjs +31 -0
  1001. package/node_modules/zca-js/dist/cjs/apis/getFriendOnlines.cjs +40 -0
  1002. package/node_modules/zca-js/dist/cjs/apis/getFriendRecommendations.cjs +32 -0
  1003. package/node_modules/zca-js/dist/cjs/apis/getFriendRequestStatus.cjs +30 -0
  1004. package/node_modules/zca-js/dist/cjs/apis/getFullAvatar.cjs +30 -0
  1005. package/node_modules/zca-js/dist/cjs/apis/getGroupBlockedMember.cjs +34 -0
  1006. package/node_modules/zca-js/dist/cjs/apis/getGroupChatHistory.cjs +51 -0
  1007. package/node_modules/zca-js/dist/cjs/apis/getGroupInfo.cjs +37 -0
  1008. package/node_modules/zca-js/dist/cjs/apis/getGroupInviteBoxInfo.cjs +43 -0
  1009. package/node_modules/zca-js/dist/cjs/apis/getGroupInviteBoxList.cjs +36 -0
  1010. package/node_modules/zca-js/dist/cjs/apis/getGroupLinkDetail.cjs +30 -0
  1011. package/node_modules/zca-js/dist/cjs/apis/getGroupLinkInfo.cjs +33 -0
  1012. package/node_modules/zca-js/dist/cjs/apis/getGroupMembersInfo.cjs +29 -0
  1013. package/node_modules/zca-js/dist/cjs/apis/getHiddenConversations.cjs +28 -0
  1014. package/node_modules/zca-js/dist/cjs/apis/getLabels.cjs +33 -0
  1015. package/node_modules/zca-js/dist/cjs/apis/getListBank.cjs +25 -0
  1016. package/node_modules/zca-js/dist/cjs/apis/getListBankAccount.cjs +32 -0
  1017. package/node_modules/zca-js/dist/cjs/apis/getListBoard.cjs +59 -0
  1018. package/node_modules/zca-js/dist/cjs/apis/getListDevice.cjs +27 -0
  1019. package/node_modules/zca-js/dist/cjs/apis/getListReminder.cjs +61 -0
  1020. package/node_modules/zca-js/dist/cjs/apis/getMultiUsersByPhones.cjs +53 -0
  1021. package/node_modules/zca-js/dist/cjs/apis/getMute.cjs +27 -0
  1022. package/node_modules/zca-js/dist/cjs/apis/getOwnId.cjs +9 -0
  1023. package/node_modules/zca-js/dist/cjs/apis/getPendingGroupMembers.cjs +32 -0
  1024. package/node_modules/zca-js/dist/cjs/apis/getPinConversations.cjs +27 -0
  1025. package/node_modules/zca-js/dist/cjs/apis/getPollDetail.cjs +35 -0
  1026. package/node_modules/zca-js/dist/cjs/apis/getProductCatalogList.cjs +38 -0
  1027. package/node_modules/zca-js/dist/cjs/apis/getQR.cjs +34 -0
  1028. package/node_modules/zca-js/dist/cjs/apis/getQuickMessageList.cjs +29 -0
  1029. package/node_modules/zca-js/dist/cjs/apis/getRelatedFriendGroup.cjs +35 -0
  1030. package/node_modules/zca-js/dist/cjs/apis/getReminder.cjs +30 -0
  1031. package/node_modules/zca-js/dist/cjs/apis/getReminderResponses.cjs +29 -0
  1032. package/node_modules/zca-js/dist/cjs/apis/getSentFriendRequest.cjs +29 -0
  1033. package/node_modules/zca-js/dist/cjs/apis/getSettings.cjs +25 -0
  1034. package/node_modules/zca-js/dist/cjs/apis/getStickerCategoryDetail.cjs +29 -0
  1035. package/node_modules/zca-js/dist/cjs/apis/getStickers.cjs +45 -0
  1036. package/node_modules/zca-js/dist/cjs/apis/getStickersDetail.cjs +45 -0
  1037. package/node_modules/zca-js/dist/cjs/apis/getUnreadMark.cjs +35 -0
  1038. package/node_modules/zca-js/dist/cjs/apis/getUserInfo.cjs +58 -0
  1039. package/node_modules/zca-js/dist/cjs/apis/inviteUserToGroups.cjs +35 -0
  1040. package/node_modules/zca-js/dist/cjs/apis/joinGroupInviteBox.cjs +30 -0
  1041. package/node_modules/zca-js/dist/cjs/apis/joinGroupLink.cjs +32 -0
  1042. package/node_modules/zca-js/dist/cjs/apis/keepAlive.cjs +27 -0
  1043. package/node_modules/zca-js/dist/cjs/apis/lastOnline.cjs +31 -0
  1044. package/node_modules/zca-js/dist/cjs/apis/leaveGroup.cjs +38 -0
  1045. package/node_modules/zca-js/dist/cjs/apis/listen.cjs +440 -0
  1046. package/node_modules/zca-js/dist/cjs/apis/lockPoll.cjs +33 -0
  1047. package/node_modules/zca-js/dist/cjs/apis/login.cjs +102 -0
  1048. package/node_modules/zca-js/dist/cjs/apis/loginQR.cjs +368 -0
  1049. package/node_modules/zca-js/dist/cjs/apis/logoutV2.cjs +83 -0
  1050. package/node_modules/zca-js/dist/cjs/apis/lostFocus.cjs +28 -0
  1051. package/node_modules/zca-js/dist/cjs/apis/parseLink.cjs +32 -0
  1052. package/node_modules/zca-js/dist/cjs/apis/pullMobileMsg.cjs +26 -0
  1053. package/node_modules/zca-js/dist/cjs/apis/registerCatalog.cjs +32 -0
  1054. package/node_modules/zca-js/dist/cjs/apis/rejectFriendRequest.cjs +32 -0
  1055. package/node_modules/zca-js/dist/cjs/apis/removeFriend.cjs +33 -0
  1056. package/node_modules/zca-js/dist/cjs/apis/removeFriendAlias.cjs +29 -0
  1057. package/node_modules/zca-js/dist/cjs/apis/removeGroupBlockedMember.cjs +33 -0
  1058. package/node_modules/zca-js/dist/cjs/apis/removeGroupDeputy.cjs +35 -0
  1059. package/node_modules/zca-js/dist/cjs/apis/removeQuickMessage.cjs +32 -0
  1060. package/node_modules/zca-js/dist/cjs/apis/removeReminder.cjs +54 -0
  1061. package/node_modules/zca-js/dist/cjs/apis/removeUnreadMark.cjs +64 -0
  1062. package/node_modules/zca-js/dist/cjs/apis/removeUserFromGroup.cjs +39 -0
  1063. package/node_modules/zca-js/dist/cjs/apis/requestSyncMessage.cjs +22 -0
  1064. package/node_modules/zca-js/dist/cjs/apis/resetHiddenConversPin.cjs +25 -0
  1065. package/node_modules/zca-js/dist/cjs/apis/reuseAvatar.cjs +31 -0
  1066. package/node_modules/zca-js/dist/cjs/apis/reviewPendingMemberRequest.cjs +43 -0
  1067. package/node_modules/zca-js/dist/cjs/apis/scanURL.cjs +33 -0
  1068. package/node_modules/zca-js/dist/cjs/apis/searchSticker.cjs +33 -0
  1069. package/node_modules/zca-js/dist/cjs/apis/sendBankCard.cjs +68 -0
  1070. package/node_modules/zca-js/dist/cjs/apis/sendCard.cjs +89 -0
  1071. package/node_modules/zca-js/dist/cjs/apis/sendDeliveredEvent.cjs +69 -0
  1072. package/node_modules/zca-js/dist/cjs/apis/sendFriendRequest.cjs +44 -0
  1073. package/node_modules/zca-js/dist/cjs/apis/sendLink.cjs +92 -0
  1074. package/node_modules/zca-js/dist/cjs/apis/sendMessage.cjs +500 -0
  1075. package/node_modules/zca-js/dist/cjs/apis/sendReport.cjs +67 -0
  1076. package/node_modules/zca-js/dist/cjs/apis/sendSeenEvent.cjs +77 -0
  1077. package/node_modules/zca-js/dist/cjs/apis/sendSticker.cjs +88 -0
  1078. package/node_modules/zca-js/dist/cjs/apis/sendTypingEvent.cjs +47 -0
  1079. package/node_modules/zca-js/dist/cjs/apis/sendVideo.cjs +148 -0
  1080. package/node_modules/zca-js/dist/cjs/apis/sendVoice.cjs +103 -0
  1081. package/node_modules/zca-js/dist/cjs/apis/setHiddenConversations.cjs +53 -0
  1082. package/node_modules/zca-js/dist/cjs/apis/setMute.cjs +81 -0
  1083. package/node_modules/zca-js/dist/cjs/apis/setPinnedConversations.cjs +48 -0
  1084. package/node_modules/zca-js/dist/cjs/apis/sharePoll.cjs +33 -0
  1085. package/node_modules/zca-js/dist/cjs/apis/unblockUser.cjs +33 -0
  1086. package/node_modules/zca-js/dist/cjs/apis/undo.cjs +56 -0
  1087. package/node_modules/zca-js/dist/cjs/apis/undoFriendRequest.cjs +32 -0
  1088. package/node_modules/zca-js/dist/cjs/apis/updateActiveStatus.cjs +32 -0
  1089. package/node_modules/zca-js/dist/cjs/apis/updateArchivedChatList.cjs +39 -0
  1090. package/node_modules/zca-js/dist/cjs/apis/updateAutoDeleteChat.cjs +54 -0
  1091. package/node_modules/zca-js/dist/cjs/apis/updateAutoReply.cjs +43 -0
  1092. package/node_modules/zca-js/dist/cjs/apis/updateBankAccount.cjs +36 -0
  1093. package/node_modules/zca-js/dist/cjs/apis/updateCatalog.cjs +35 -0
  1094. package/node_modules/zca-js/dist/cjs/apis/updateGroupSettings.cjs +48 -0
  1095. package/node_modules/zca-js/dist/cjs/apis/updateHiddenConversPin.cjs +35 -0
  1096. package/node_modules/zca-js/dist/cjs/apis/updateLabels.cjs +39 -0
  1097. package/node_modules/zca-js/dist/cjs/apis/updateLang.cjs +35 -0
  1098. package/node_modules/zca-js/dist/cjs/apis/updateProductCatalog.cjs +56 -0
  1099. package/node_modules/zca-js/dist/cjs/apis/updateProfile.cjs +48 -0
  1100. package/node_modules/zca-js/dist/cjs/apis/updateProfileBio.cjs +32 -0
  1101. package/node_modules/zca-js/dist/cjs/apis/updateQuickMessage.cjs +66 -0
  1102. package/node_modules/zca-js/dist/cjs/apis/updateSettings.cjs +95 -0
  1103. package/node_modules/zca-js/dist/cjs/apis/upgradeGroupToCommunity.cjs +32 -0
  1104. package/node_modules/zca-js/dist/cjs/apis/uploadAttachment.cjs +211 -0
  1105. package/node_modules/zca-js/dist/cjs/apis/uploadProductPhoto.cjs +55 -0
  1106. package/node_modules/zca-js/dist/cjs/apis/votePoll.cjs +34 -0
  1107. package/node_modules/zca-js/dist/cjs/apis.cjs +332 -0
  1108. package/node_modules/zca-js/dist/cjs/context.cjs +34 -0
  1109. package/node_modules/zca-js/dist/cjs/index.cjs +159 -0
  1110. package/node_modules/zca-js/dist/cjs/models/AutoReply.cjs +9 -0
  1111. package/node_modules/zca-js/dist/cjs/models/Bank.cjs +263 -0
  1112. package/node_modules/zca-js/dist/cjs/models/Board.cjs +8 -0
  1113. package/node_modules/zca-js/dist/cjs/models/DeliveredMessage.cjs +23 -0
  1114. package/node_modules/zca-js/dist/cjs/models/Enum.cjs +27 -0
  1115. package/node_modules/zca-js/dist/cjs/models/FriendEvent.cjs +87 -0
  1116. package/node_modules/zca-js/dist/cjs/models/Group.cjs +13 -0
  1117. package/node_modules/zca-js/dist/cjs/models/GroupEvent.cjs +94 -0
  1118. package/node_modules/zca-js/dist/cjs/models/Message.cjs +35 -0
  1119. package/node_modules/zca-js/dist/cjs/models/Reaction.cjs +74 -0
  1120. package/node_modules/zca-js/dist/cjs/models/Reminder.cjs +9 -0
  1121. package/node_modules/zca-js/dist/cjs/models/SeenMessage.cjs +23 -0
  1122. package/node_modules/zca-js/dist/cjs/models/Typing.cjs +23 -0
  1123. package/node_modules/zca-js/dist/cjs/models/Undo.cjs +16 -0
  1124. package/node_modules/zca-js/dist/cjs/models/ZBusiness.cjs +39 -0
  1125. package/node_modules/zca-js/dist/cjs/update.cjs +34 -0
  1126. package/node_modules/zca-js/dist/cjs/utils.cjs +703 -0
  1127. package/node_modules/zca-js/dist/cjs/zalo.cjs +112 -0
  1128. package/node_modules/zca-js/dist/context.d.ts +179 -0
  1129. package/node_modules/zca-js/dist/context.js +28 -0
  1130. package/node_modules/zca-js/dist/index.d.ts +166 -0
  1131. package/node_modules/zca-js/dist/index.js +14 -0
  1132. package/node_modules/zca-js/dist/models/Attachment.d.ts +9 -0
  1133. package/node_modules/zca-js/dist/models/Attachment.js +1 -0
  1134. package/node_modules/zca-js/dist/models/AutoReply.d.ts +20 -0
  1135. package/node_modules/zca-js/dist/models/AutoReply.js +7 -0
  1136. package/node_modules/zca-js/dist/models/Bank.d.ts +291 -0
  1137. package/node_modules/zca-js/dist/models/Bank.js +262 -0
  1138. package/node_modules/zca-js/dist/models/Board.d.ts +60 -0
  1139. package/node_modules/zca-js/dist/models/Board.js +6 -0
  1140. package/node_modules/zca-js/dist/models/Catalog.d.ts +16 -0
  1141. package/node_modules/zca-js/dist/models/Catalog.js +1 -0
  1142. package/node_modules/zca-js/dist/models/DeliveredMessage.d.ts +27 -0
  1143. package/node_modules/zca-js/dist/models/DeliveredMessage.js +17 -0
  1144. package/node_modules/zca-js/dist/models/Enum.d.ts +21 -0
  1145. package/node_modules/zca-js/dist/models/Enum.js +25 -0
  1146. package/node_modules/zca-js/dist/models/FriendEvent.d.ts +107 -0
  1147. package/node_modules/zca-js/dist/models/FriendEvent.js +83 -0
  1148. package/node_modules/zca-js/dist/models/Group.d.ts +125 -0
  1149. package/node_modules/zca-js/dist/models/Group.js +11 -0
  1150. package/node_modules/zca-js/dist/models/GroupEvent.d.ts +178 -0
  1151. package/node_modules/zca-js/dist/models/GroupEvent.js +90 -0
  1152. package/node_modules/zca-js/dist/models/Label.d.ts +10 -0
  1153. package/node_modules/zca-js/dist/models/Label.js +1 -0
  1154. package/node_modules/zca-js/dist/models/Message.d.ts +91 -0
  1155. package/node_modules/zca-js/dist/models/Message.js +29 -0
  1156. package/node_modules/zca-js/dist/models/ProductCatalog.d.ts +17 -0
  1157. package/node_modules/zca-js/dist/models/ProductCatalog.js +1 -0
  1158. package/node_modules/zca-js/dist/models/QuickMessage.d.ts +25 -0
  1159. package/node_modules/zca-js/dist/models/QuickMessage.js +1 -0
  1160. package/node_modules/zca-js/dist/models/Reaction.d.ts +85 -0
  1161. package/node_modules/zca-js/dist/models/Reaction.js +70 -0
  1162. package/node_modules/zca-js/dist/models/Reminder.d.ts +51 -0
  1163. package/node_modules/zca-js/dist/models/Reminder.js +7 -0
  1164. package/node_modules/zca-js/dist/models/SeenMessage.d.ts +26 -0
  1165. package/node_modules/zca-js/dist/models/SeenMessage.js +17 -0
  1166. package/node_modules/zca-js/dist/models/Sticker.d.ts +27 -0
  1167. package/node_modules/zca-js/dist/models/Sticker.js +1 -0
  1168. package/node_modules/zca-js/dist/models/Typing.d.ts +24 -0
  1169. package/node_modules/zca-js/dist/models/Typing.js +17 -0
  1170. package/node_modules/zca-js/dist/models/Undo.d.ts +34 -0
  1171. package/node_modules/zca-js/dist/models/Undo.js +12 -0
  1172. package/node_modules/zca-js/dist/models/User.d.ts +70 -0
  1173. package/node_modules/zca-js/dist/models/User.js +1 -0
  1174. package/node_modules/zca-js/dist/models/ZBusiness.d.ts +22 -0
  1175. package/node_modules/zca-js/dist/models/ZBusiness.js +35 -0
  1176. package/node_modules/zca-js/dist/models/index.d.ts +22 -0
  1177. package/node_modules/zca-js/dist/models/index.js +22 -0
  1178. package/node_modules/zca-js/dist/update.d.ts +2 -0
  1179. package/node_modules/zca-js/dist/update.js +29 -0
  1180. package/node_modules/zca-js/dist/utils.d.ts +167 -0
  1181. package/node_modules/zca-js/dist/utils.js +719 -0
  1182. package/node_modules/zca-js/dist/zalo.d.ts +41 -0
  1183. package/node_modules/zca-js/dist/zalo.js +107 -0
  1184. package/node_modules/zca-js/eslint.config.js +21 -0
  1185. package/node_modules/zca-js/index.d.ts +2 -0
  1186. package/node_modules/zca-js/package.json +78 -0
  1187. package/node_modules/zca-js/rollup.config.js +28 -0
  1188. package/package.json +80 -62
  1189. package/patches/zca-js+2.2.0.patch +1677 -0
  1190. package/src/cli.test.js +34 -5
  1191. package/src/commands/account.js +98 -5
  1192. package/src/commands/auto-reply.js +30 -10
  1193. package/src/commands/catalog.js +5 -4
  1194. package/src/commands/conv.js +551 -14
  1195. package/src/commands/friend.js +19 -7
  1196. package/src/commands/group.js +82 -31
  1197. package/src/commands/listen.js +624 -68
  1198. package/src/commands/login.js +179 -20
  1199. package/src/commands/mcp.js +422 -44
  1200. package/src/commands/msg.js +1288 -140
  1201. package/src/commands/oa-listen.js +130 -20
  1202. package/src/commands/oa.js +26 -5
  1203. package/src/commands/poll.js +7 -2
  1204. package/src/commands/profile.js +3 -2
  1205. package/src/commands/sync.js +2052 -0
  1206. package/src/core/accounts.js +69 -6
  1207. package/src/core/cached-message.js +200 -0
  1208. package/src/core/coverage.js +90 -0
  1209. package/src/core/current-user-names.js +104 -0
  1210. package/src/core/daemon-account.js +61 -0
  1211. package/src/core/daemon-channel.js +638 -0
  1212. package/src/core/daemon-sync.js +181 -0
  1213. package/src/core/db.js +1625 -0
  1214. package/src/core/forward.js +112 -0
  1215. package/src/core/group-history.js +248 -0
  1216. package/src/core/group-members.js +68 -0
  1217. package/src/core/group-settings.js +250 -0
  1218. package/src/core/history-fetch.js +208 -0
  1219. package/src/core/listener-lifecycle.js +90 -0
  1220. package/src/core/live-api.js +47 -0
  1221. package/src/core/live-store.js +733 -0
  1222. package/src/core/lock.js +129 -0
  1223. package/src/core/logout.js +289 -0
  1224. package/src/core/offline-queue.js +194 -0
  1225. package/src/core/pin.js +222 -0
  1226. package/src/core/read-state.js +318 -0
  1227. package/src/core/receipts.js +679 -0
  1228. package/src/core/recent-conversations.js +30 -0
  1229. package/src/core/self-heal.js +522 -0
  1230. package/src/core/socket-tap.js +154 -0
  1231. package/src/core/sync-v2/assets.js +181 -0
  1232. package/src/core/sync-v2/board.js +338 -0
  1233. package/src/core/sync-v2/conv-state.js +152 -0
  1234. package/src/core/sync-v2/gap-advice.js +110 -0
  1235. package/src/core/sync-v2/gid.js +106 -0
  1236. package/src/core/sync-v2/index.js +1259 -0
  1237. package/src/core/sync-v2/keepalive.js +177 -0
  1238. package/src/core/sync-v2/media.js +704 -0
  1239. package/src/core/sync-v2/message-types.js +522 -0
  1240. package/src/core/sync-v2/plan.js +95 -0
  1241. package/src/core/sync-v2/reactions.js +236 -0
  1242. package/src/core/sync-v2/renewlink.js +124 -0
  1243. package/src/core/sync-v2/senders.js +61 -0
  1244. package/src/core/sync-v2/zcloud-cipher.js +88 -0
  1245. package/src/core/sync-v2/zcloud.js +675 -0
  1246. package/src/core/sync.js +540 -0
  1247. package/src/core/zalo-client.js +179 -61
  1248. package/src/core/zca-custom.js +78 -0
  1249. package/src/index.js +15 -3
  1250. package/src/mcp/mcp-config.js +40 -3
  1251. package/src/mcp/mcp-http-transport.js +12 -2
  1252. package/src/mcp/mcp-server.js +5 -2
  1253. package/src/mcp/mcp-tools.js +969 -99
  1254. package/src/mcp/message-buffer.js +38 -8
  1255. package/src/mcp/message-buffer.test.js +67 -15
  1256. package/src/mcp/notifier.js +17 -1
  1257. package/src/mcp/notifier.test.js +6 -0
  1258. package/src/mcp/sync-jobs.js +82 -0
  1259. package/src/mcp/thread-name-cache.js +14 -1
  1260. package/src/mcp/thread-name-cache.test.js +4 -1
  1261. package/src/utils/bank-helpers.js +8 -3
  1262. package/src/utils/device-fingerprint.js +72 -0
  1263. package/src/utils/mentions.js +140 -0
  1264. package/src/utils/my-documents.js +95 -0
  1265. package/src/utils/open-file.js +49 -0
  1266. package/src/utils/output.js +75 -4
  1267. package/src/utils/parse-options.js +56 -0
  1268. package/src/utils/qr-http-server.js +44 -7
  1269. package/src/utils/quote.js +203 -0
  1270. package/src/utils/thread-type.js +72 -0
  1271. package/src/utils/update-check.js +42 -1
  1272. package/src/utils/urgency.js +29 -0
  1273. package/src/mcp/media-downloader.js +0 -191
  1274. package/src/mcp/media-downloader.test.js +0 -45
  1275. package/src/utils/qr-display.test.js +0 -97
@@ -0,0 +1,1575 @@
1
+ 'use strict';
2
+
3
+ // (C) 1995-2013 Jean-loup Gailly and Mark Adler
4
+ // (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin
5
+ //
6
+ // This software is provided 'as-is', without any express or implied
7
+ // warranty. In no event will the authors be held liable for any damages
8
+ // arising from the use of this software.
9
+ //
10
+ // Permission is granted to anyone to use this software for any purpose,
11
+ // including commercial applications, and to alter it and redistribute it
12
+ // freely, subject to the following restrictions:
13
+ //
14
+ // 1. The origin of this software must not be misrepresented; you must not
15
+ // claim that you wrote the original software. If you use this software
16
+ // in a product, an acknowledgment in the product documentation would be
17
+ // appreciated but is not required.
18
+ // 2. Altered source versions must be plainly marked as such, and must not be
19
+ // misrepresented as being the original software.
20
+ // 3. This notice may not be removed or altered from any source distribution.
21
+
22
+ const adler32 = require('./adler32');
23
+ const crc32 = require('./crc32');
24
+ const inflate_fast = require('./inffast');
25
+ const inflate_table = require('./inftrees');
26
+
27
+ const CODES = 0;
28
+ const LENS = 1;
29
+ const DISTS = 2;
30
+
31
+ /* Public constants ==========================================================*/
32
+ /* ===========================================================================*/
33
+
34
+ const {
35
+ Z_FINISH, Z_BLOCK, Z_TREES,
36
+ Z_OK, Z_STREAM_END, Z_NEED_DICT, Z_STREAM_ERROR, Z_DATA_ERROR, Z_MEM_ERROR, Z_BUF_ERROR,
37
+ Z_DEFLATED
38
+ } = require('./constants');
39
+
40
+
41
+ /* STATES ====================================================================*/
42
+ /* ===========================================================================*/
43
+
44
+
45
+ const HEAD = 16180; /* i: waiting for magic header */
46
+ const FLAGS = 16181; /* i: waiting for method and flags (gzip) */
47
+ const TIME = 16182; /* i: waiting for modification time (gzip) */
48
+ const OS = 16183; /* i: waiting for extra flags and operating system (gzip) */
49
+ const EXLEN = 16184; /* i: waiting for extra length (gzip) */
50
+ const EXTRA = 16185; /* i: waiting for extra bytes (gzip) */
51
+ const NAME = 16186; /* i: waiting for end of file name (gzip) */
52
+ const COMMENT = 16187; /* i: waiting for end of comment (gzip) */
53
+ const HCRC = 16188; /* i: waiting for header crc (gzip) */
54
+ const DICTID = 16189; /* i: waiting for dictionary check value */
55
+ const DICT = 16190; /* waiting for inflateSetDictionary() call */
56
+ const TYPE = 16191; /* i: waiting for type bits, including last-flag bit */
57
+ const TYPEDO = 16192; /* i: same, but skip check to exit inflate on new block */
58
+ const STORED = 16193; /* i: waiting for stored size (length and complement) */
59
+ const COPY_ = 16194; /* i/o: same as COPY below, but only first time in */
60
+ const COPY = 16195; /* i/o: waiting for input or output to copy stored block */
61
+ const TABLE = 16196; /* i: waiting for dynamic block table lengths */
62
+ const LENLENS = 16197; /* i: waiting for code length code lengths */
63
+ const CODELENS = 16198; /* i: waiting for length/lit and distance code lengths */
64
+ const LEN_ = 16199; /* i: same as LEN below, but only first time in */
65
+ const LEN = 16200; /* i: waiting for length/lit/eob code */
66
+ const LENEXT = 16201; /* i: waiting for length extra bits */
67
+ const DIST = 16202; /* i: waiting for distance code */
68
+ const DISTEXT = 16203; /* i: waiting for distance extra bits */
69
+ const MATCH = 16204; /* o: waiting for output space to copy string */
70
+ const LIT = 16205; /* o: waiting for output space to write literal */
71
+ const CHECK = 16206; /* i: waiting for 32-bit check value */
72
+ const LENGTH = 16207; /* i: waiting for 32-bit length (gzip) */
73
+ const DONE = 16208; /* finished check, done -- remain here until reset */
74
+ const BAD = 16209; /* got a data error -- remain here until reset */
75
+ const MEM = 16210; /* got an inflate() memory error -- remain here until reset */
76
+ const SYNC = 16211; /* looking for synchronization bytes to restart inflate() */
77
+
78
+ /* ===========================================================================*/
79
+
80
+
81
+
82
+ const ENOUGH_LENS = 852;
83
+ const ENOUGH_DISTS = 592;
84
+ //const ENOUGH = (ENOUGH_LENS+ENOUGH_DISTS);
85
+
86
+ const MAX_WBITS = 15;
87
+ /* 32K LZ77 window */
88
+ const DEF_WBITS = MAX_WBITS;
89
+
90
+
91
+ const zswap32 = (q) => {
92
+
93
+ return (((q >>> 24) & 0xff) +
94
+ ((q >>> 8) & 0xff00) +
95
+ ((q & 0xff00) << 8) +
96
+ ((q & 0xff) << 24));
97
+ };
98
+
99
+
100
+ function InflateState() {
101
+ this.strm = null; /* pointer back to this zlib stream */
102
+ this.mode = 0; /* current inflate mode */
103
+ this.last = false; /* true if processing last block */
104
+ this.wrap = 0; /* bit 0 true for zlib, bit 1 true for gzip,
105
+ bit 2 true to validate check value */
106
+ this.havedict = false; /* true if dictionary provided */
107
+ this.flags = 0; /* gzip header method and flags (0 if zlib), or
108
+ -1 if raw or no header yet */
109
+ this.dmax = 0; /* zlib header max distance (INFLATE_STRICT) */
110
+ this.check = 0; /* protected copy of check value */
111
+ this.total = 0; /* protected copy of output count */
112
+ // TODO: may be {}
113
+ this.head = null; /* where to save gzip header information */
114
+
115
+ /* sliding window */
116
+ this.wbits = 0; /* log base 2 of requested window size */
117
+ this.wsize = 0; /* window size or zero if not using window */
118
+ this.whave = 0; /* valid bytes in the window */
119
+ this.wnext = 0; /* window write index */
120
+ this.window = null; /* allocated sliding window, if needed */
121
+
122
+ /* bit accumulator */
123
+ this.hold = 0; /* input bit accumulator */
124
+ this.bits = 0; /* number of bits in "in" */
125
+
126
+ /* for string and stored block copying */
127
+ this.length = 0; /* literal or length of data to copy */
128
+ this.offset = 0; /* distance back to copy string from */
129
+
130
+ /* for table and code decoding */
131
+ this.extra = 0; /* extra bits needed */
132
+
133
+ /* fixed and dynamic code tables */
134
+ this.lencode = null; /* starting table for length/literal codes */
135
+ this.distcode = null; /* starting table for distance codes */
136
+ this.lenbits = 0; /* index bits for lencode */
137
+ this.distbits = 0; /* index bits for distcode */
138
+
139
+ /* dynamic table building */
140
+ this.ncode = 0; /* number of code length code lengths */
141
+ this.nlen = 0; /* number of length code lengths */
142
+ this.ndist = 0; /* number of distance code lengths */
143
+ this.have = 0; /* number of code lengths in lens[] */
144
+ this.next = null; /* next available space in codes[] */
145
+
146
+ this.lens = new Uint16Array(320); /* temporary storage for code lengths */
147
+ this.work = new Uint16Array(288); /* work area for code table building */
148
+
149
+ /*
150
+ because we don't have pointers in js, we use lencode and distcode directly
151
+ as buffers so we don't need codes
152
+ */
153
+ //this.codes = new Int32Array(ENOUGH); /* space for code tables */
154
+ this.lendyn = null; /* dynamic table for length/literal codes (JS specific) */
155
+ this.distdyn = null; /* dynamic table for distance codes (JS specific) */
156
+ this.sane = 0; /* if false, allow invalid distance too far */
157
+ this.back = 0; /* bits back of last unprocessed length/lit */
158
+ this.was = 0; /* initial length of match */
159
+ }
160
+
161
+
162
+ const inflateStateCheck = (strm) => {
163
+
164
+ if (!strm) {
165
+ return 1;
166
+ }
167
+ const state = strm.state;
168
+ if (!state || state.strm !== strm ||
169
+ state.mode < HEAD || state.mode > SYNC) {
170
+ return 1;
171
+ }
172
+ return 0;
173
+ };
174
+
175
+
176
+ const inflateResetKeep = (strm) => {
177
+
178
+ if (inflateStateCheck(strm)) { return Z_STREAM_ERROR; }
179
+ const state = strm.state;
180
+ strm.total_in = strm.total_out = state.total = 0;
181
+ strm.msg = ''; /*Z_NULL*/
182
+ if (state.wrap) { /* to support ill-conceived Java test suite */
183
+ strm.adler = state.wrap & 1;
184
+ }
185
+ state.mode = HEAD;
186
+ state.last = 0;
187
+ state.havedict = 0;
188
+ state.flags = -1;
189
+ state.dmax = 32768;
190
+ state.head = null/*Z_NULL*/;
191
+ state.hold = 0;
192
+ state.bits = 0;
193
+ //state.lencode = state.distcode = state.next = state.codes;
194
+ state.lencode = state.lendyn = new Int32Array(ENOUGH_LENS);
195
+ state.distcode = state.distdyn = new Int32Array(ENOUGH_DISTS);
196
+
197
+ state.sane = 1;
198
+ state.back = -1;
199
+ //Tracev((stderr, "inflate: reset\n"));
200
+ return Z_OK;
201
+ };
202
+
203
+
204
+ const inflateReset = (strm) => {
205
+
206
+ if (inflateStateCheck(strm)) { return Z_STREAM_ERROR; }
207
+ const state = strm.state;
208
+ state.wsize = 0;
209
+ state.whave = 0;
210
+ state.wnext = 0;
211
+ return inflateResetKeep(strm);
212
+
213
+ };
214
+
215
+
216
+ const inflateReset2 = (strm, windowBits) => {
217
+ let wrap;
218
+
219
+ /* get the state */
220
+ if (inflateStateCheck(strm)) { return Z_STREAM_ERROR; }
221
+ const state = strm.state;
222
+
223
+ /* extract wrap request from windowBits parameter */
224
+ if (windowBits < 0) {
225
+ wrap = 0;
226
+ windowBits = -windowBits;
227
+ }
228
+ else {
229
+ wrap = (windowBits >> 4) + 5;
230
+ if (windowBits < 48) {
231
+ windowBits &= 15;
232
+ }
233
+ }
234
+
235
+ /* set number of window bits, free window if different */
236
+ if (windowBits && (windowBits < 8 || windowBits > 15)) {
237
+ return Z_STREAM_ERROR;
238
+ }
239
+ if (state.window !== null && state.wbits !== windowBits) {
240
+ state.window = null;
241
+ }
242
+
243
+ /* update state and reset the rest of it */
244
+ state.wrap = wrap;
245
+ state.wbits = windowBits;
246
+ return inflateReset(strm);
247
+ };
248
+
249
+
250
+ const inflateInit2 = (strm, windowBits) => {
251
+
252
+ if (!strm) { return Z_STREAM_ERROR; }
253
+ //strm.msg = Z_NULL; /* in case we return an error */
254
+
255
+ const state = new InflateState();
256
+
257
+ //if (state === Z_NULL) return Z_MEM_ERROR;
258
+ //Tracev((stderr, "inflate: allocated\n"));
259
+ strm.state = state;
260
+ state.strm = strm;
261
+ state.window = null/*Z_NULL*/;
262
+ state.mode = HEAD; /* to pass state test in inflateReset2() */
263
+ const ret = inflateReset2(strm, windowBits);
264
+ if (ret !== Z_OK) {
265
+ strm.state = null/*Z_NULL*/;
266
+ }
267
+ return ret;
268
+ };
269
+
270
+
271
+ const inflateInit = (strm) => {
272
+
273
+ return inflateInit2(strm, DEF_WBITS);
274
+ };
275
+
276
+
277
+ /*
278
+ Return state with length and distance decoding tables and index sizes set to
279
+ fixed code decoding. Normally this returns fixed tables from inffixed.h.
280
+ If BUILDFIXED is defined, then instead this routine builds the tables the
281
+ first time it's called, and returns those tables the first time and
282
+ thereafter. This reduces the size of the code by about 2K bytes, in
283
+ exchange for a little execution time. However, BUILDFIXED should not be
284
+ used for threaded applications, since the rewriting of the tables and virgin
285
+ may not be thread-safe.
286
+ */
287
+ let virgin = true;
288
+
289
+ let lenfix, distfix; // We have no pointers in JS, so keep tables separate
290
+
291
+
292
+ const fixedtables = (state) => {
293
+
294
+ /* build fixed huffman tables if first call (may not be thread safe) */
295
+ if (virgin) {
296
+ lenfix = new Int32Array(512);
297
+ distfix = new Int32Array(32);
298
+
299
+ /* literal/length table */
300
+ let sym = 0;
301
+ while (sym < 144) { state.lens[sym++] = 8; }
302
+ while (sym < 256) { state.lens[sym++] = 9; }
303
+ while (sym < 280) { state.lens[sym++] = 7; }
304
+ while (sym < 288) { state.lens[sym++] = 8; }
305
+
306
+ inflate_table(LENS, state.lens, 0, 288, lenfix, 0, state.work, { bits: 9 });
307
+
308
+ /* distance table */
309
+ sym = 0;
310
+ while (sym < 32) { state.lens[sym++] = 5; }
311
+
312
+ inflate_table(DISTS, state.lens, 0, 32, distfix, 0, state.work, { bits: 5 });
313
+
314
+ /* do this just once */
315
+ virgin = false;
316
+ }
317
+
318
+ state.lencode = lenfix;
319
+ state.lenbits = 9;
320
+ state.distcode = distfix;
321
+ state.distbits = 5;
322
+ };
323
+
324
+
325
+ /*
326
+ Update the window with the last wsize (normally 32K) bytes written before
327
+ returning. If window does not exist yet, create it. This is only called
328
+ when a window is already in use, or when output has been written during this
329
+ inflate call, but the end of the deflate stream has not been reached yet.
330
+ It is also called to create a window for dictionary data when a dictionary
331
+ is loaded.
332
+
333
+ Providing output buffers larger than 32K to inflate() should provide a speed
334
+ advantage, since only the last 32K of output is copied to the sliding window
335
+ upon return from inflate(), and since all distances after the first 32K of
336
+ output will fall in the output data, making match copies simpler and faster.
337
+ The advantage may be dependent on the size of the processor's data caches.
338
+ */
339
+ const updatewindow = (strm, src, end, copy) => {
340
+
341
+ let dist;
342
+ const state = strm.state;
343
+
344
+ /* if it hasn't been done already, allocate space for the window */
345
+ if (state.window === null) {
346
+ state.window = new Uint8Array(1 << state.wbits);
347
+ }
348
+
349
+ /* if window not in use yet, initialize */
350
+ if (state.wsize === 0) {
351
+ state.wsize = 1 << state.wbits;
352
+ state.wnext = 0;
353
+ state.whave = 0;
354
+ }
355
+
356
+ /* copy state->wsize or less output bytes into the circular window */
357
+ if (copy >= state.wsize) {
358
+ state.window.set(src.subarray(end - state.wsize, end), 0);
359
+ state.wnext = 0;
360
+ state.whave = state.wsize;
361
+ }
362
+ else {
363
+ dist = state.wsize - state.wnext;
364
+ if (dist > copy) {
365
+ dist = copy;
366
+ }
367
+ //zmemcpy(state->window + state->wnext, end - copy, dist);
368
+ state.window.set(src.subarray(end - copy, end - copy + dist), state.wnext);
369
+ copy -= dist;
370
+ if (copy) {
371
+ //zmemcpy(state->window, end - copy, copy);
372
+ state.window.set(src.subarray(end - copy, end), 0);
373
+ state.wnext = copy;
374
+ state.whave = state.wsize;
375
+ }
376
+ else {
377
+ state.wnext += dist;
378
+ if (state.wnext === state.wsize) { state.wnext = 0; }
379
+ if (state.whave < state.wsize) { state.whave += dist; }
380
+ }
381
+ }
382
+ return 0;
383
+ };
384
+
385
+
386
+ const inflate = (strm, flush) => {
387
+
388
+ let state;
389
+ let input, output; // input/output buffers
390
+ let next; /* next input INDEX */
391
+ let put; /* next output INDEX */
392
+ let have, left; /* available input and output */
393
+ let hold; /* bit buffer */
394
+ let bits; /* bits in bit buffer */
395
+ let _in, _out; /* save starting available input and output */
396
+ let copy; /* number of stored or match bytes to copy */
397
+ let from; /* where to copy match bytes from */
398
+ let from_source;
399
+ let here = 0; /* current decoding table entry */
400
+ let here_bits, here_op, here_val; // paked "here" denormalized (JS specific)
401
+ //let last; /* parent table entry */
402
+ let last_bits, last_op, last_val; // paked "last" denormalized (JS specific)
403
+ let len; /* length to copy for repeats, bits to drop */
404
+ let ret; /* return code */
405
+ const hbuf = new Uint8Array(4); /* buffer for gzip header crc calculation */
406
+ let opts;
407
+
408
+ let n; // temporary variable for NEED_BITS
409
+
410
+ const order = /* permutation of code lengths */
411
+ new Uint8Array([ 16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15 ]);
412
+
413
+
414
+ if (inflateStateCheck(strm) || !strm.output ||
415
+ (!strm.input && strm.avail_in !== 0)) {
416
+ return Z_STREAM_ERROR;
417
+ }
418
+
419
+ state = strm.state;
420
+ if (state.mode === TYPE) { state.mode = TYPEDO; } /* skip check */
421
+
422
+
423
+ //--- LOAD() ---
424
+ put = strm.next_out;
425
+ output = strm.output;
426
+ left = strm.avail_out;
427
+ next = strm.next_in;
428
+ input = strm.input;
429
+ have = strm.avail_in;
430
+ hold = state.hold;
431
+ bits = state.bits;
432
+ //---
433
+
434
+ _in = have;
435
+ _out = left;
436
+ ret = Z_OK;
437
+
438
+ inf_leave: // goto emulation
439
+ for (;;) {
440
+ switch (state.mode) {
441
+ case HEAD:
442
+ if (state.wrap === 0) {
443
+ state.mode = TYPEDO;
444
+ break;
445
+ }
446
+ //=== NEEDBITS(16);
447
+ while (bits < 16) {
448
+ if (have === 0) { break inf_leave; }
449
+ have--;
450
+ hold += input[next++] << bits;
451
+ bits += 8;
452
+ }
453
+ //===//
454
+ if ((state.wrap & 2) && hold === 0x8b1f) { /* gzip header */
455
+ if (state.wbits === 0) {
456
+ state.wbits = 15;
457
+ }
458
+ state.check = 0/*crc32(0L, Z_NULL, 0)*/;
459
+ //=== CRC2(state.check, hold);
460
+ hbuf[0] = hold & 0xff;
461
+ hbuf[1] = (hold >>> 8) & 0xff;
462
+ state.check = crc32(state.check, hbuf, 2, 0);
463
+ //===//
464
+
465
+ //=== INITBITS();
466
+ hold = 0;
467
+ bits = 0;
468
+ //===//
469
+ state.mode = FLAGS;
470
+ break;
471
+ }
472
+ if (state.head) {
473
+ state.head.done = false;
474
+ }
475
+ if (!(state.wrap & 1) || /* check if zlib header allowed */
476
+ (((hold & 0xff)/*BITS(8)*/ << 8) + (hold >> 8)) % 31) {
477
+ strm.msg = 'incorrect header check';
478
+ state.mode = BAD;
479
+ break;
480
+ }
481
+ if ((hold & 0x0f)/*BITS(4)*/ !== Z_DEFLATED) {
482
+ strm.msg = 'unknown compression method';
483
+ state.mode = BAD;
484
+ break;
485
+ }
486
+ //--- DROPBITS(4) ---//
487
+ hold >>>= 4;
488
+ bits -= 4;
489
+ //---//
490
+ len = (hold & 0x0f)/*BITS(4)*/ + 8;
491
+ if (state.wbits === 0) {
492
+ state.wbits = len;
493
+ }
494
+ if (len > 15 || len > state.wbits) {
495
+ strm.msg = 'invalid window size';
496
+ state.mode = BAD;
497
+ break;
498
+ }
499
+
500
+ // !!! pako patch. Force use `options.windowBits` if passed.
501
+ // Required to always use max window size by default.
502
+ state.dmax = 1 << state.wbits;
503
+ //state.dmax = 1 << len;
504
+
505
+ state.flags = 0; /* indicate zlib header */
506
+ //Tracev((stderr, "inflate: zlib header ok\n"));
507
+ strm.adler = state.check = 1/*adler32(0L, Z_NULL, 0)*/;
508
+ state.mode = hold & 0x200 ? DICTID : TYPE;
509
+ //=== INITBITS();
510
+ hold = 0;
511
+ bits = 0;
512
+ //===//
513
+ break;
514
+ case FLAGS:
515
+ //=== NEEDBITS(16); */
516
+ while (bits < 16) {
517
+ if (have === 0) { break inf_leave; }
518
+ have--;
519
+ hold += input[next++] << bits;
520
+ bits += 8;
521
+ }
522
+ //===//
523
+ state.flags = hold;
524
+ if ((state.flags & 0xff) !== Z_DEFLATED) {
525
+ strm.msg = 'unknown compression method';
526
+ state.mode = BAD;
527
+ break;
528
+ }
529
+ if (state.flags & 0xe000) {
530
+ strm.msg = 'unknown header flags set';
531
+ state.mode = BAD;
532
+ break;
533
+ }
534
+ if (state.head) {
535
+ state.head.text = ((hold >> 8) & 1);
536
+ }
537
+ if ((state.flags & 0x0200) && (state.wrap & 4)) {
538
+ //=== CRC2(state.check, hold);
539
+ hbuf[0] = hold & 0xff;
540
+ hbuf[1] = (hold >>> 8) & 0xff;
541
+ state.check = crc32(state.check, hbuf, 2, 0);
542
+ //===//
543
+ }
544
+ //=== INITBITS();
545
+ hold = 0;
546
+ bits = 0;
547
+ //===//
548
+ state.mode = TIME;
549
+ /* falls through */
550
+ case TIME:
551
+ //=== NEEDBITS(32); */
552
+ while (bits < 32) {
553
+ if (have === 0) { break inf_leave; }
554
+ have--;
555
+ hold += input[next++] << bits;
556
+ bits += 8;
557
+ }
558
+ //===//
559
+ if (state.head) {
560
+ state.head.time = hold;
561
+ }
562
+ if ((state.flags & 0x0200) && (state.wrap & 4)) {
563
+ //=== CRC4(state.check, hold)
564
+ hbuf[0] = hold & 0xff;
565
+ hbuf[1] = (hold >>> 8) & 0xff;
566
+ hbuf[2] = (hold >>> 16) & 0xff;
567
+ hbuf[3] = (hold >>> 24) & 0xff;
568
+ state.check = crc32(state.check, hbuf, 4, 0);
569
+ //===
570
+ }
571
+ //=== INITBITS();
572
+ hold = 0;
573
+ bits = 0;
574
+ //===//
575
+ state.mode = OS;
576
+ /* falls through */
577
+ case OS:
578
+ //=== NEEDBITS(16); */
579
+ while (bits < 16) {
580
+ if (have === 0) { break inf_leave; }
581
+ have--;
582
+ hold += input[next++] << bits;
583
+ bits += 8;
584
+ }
585
+ //===//
586
+ if (state.head) {
587
+ state.head.xflags = (hold & 0xff);
588
+ state.head.os = (hold >> 8);
589
+ }
590
+ if ((state.flags & 0x0200) && (state.wrap & 4)) {
591
+ //=== CRC2(state.check, hold);
592
+ hbuf[0] = hold & 0xff;
593
+ hbuf[1] = (hold >>> 8) & 0xff;
594
+ state.check = crc32(state.check, hbuf, 2, 0);
595
+ //===//
596
+ }
597
+ //=== INITBITS();
598
+ hold = 0;
599
+ bits = 0;
600
+ //===//
601
+ state.mode = EXLEN;
602
+ /* falls through */
603
+ case EXLEN:
604
+ if (state.flags & 0x0400) {
605
+ //=== NEEDBITS(16); */
606
+ while (bits < 16) {
607
+ if (have === 0) { break inf_leave; }
608
+ have--;
609
+ hold += input[next++] << bits;
610
+ bits += 8;
611
+ }
612
+ //===//
613
+ state.length = hold;
614
+ if (state.head) {
615
+ state.head.extra_len = hold;
616
+ }
617
+ if ((state.flags & 0x0200) && (state.wrap & 4)) {
618
+ //=== CRC2(state.check, hold);
619
+ hbuf[0] = hold & 0xff;
620
+ hbuf[1] = (hold >>> 8) & 0xff;
621
+ state.check = crc32(state.check, hbuf, 2, 0);
622
+ //===//
623
+ }
624
+ //=== INITBITS();
625
+ hold = 0;
626
+ bits = 0;
627
+ //===//
628
+ }
629
+ else if (state.head) {
630
+ state.head.extra = null/*Z_NULL*/;
631
+ }
632
+ state.mode = EXTRA;
633
+ /* falls through */
634
+ case EXTRA:
635
+ if (state.flags & 0x0400) {
636
+ copy = state.length;
637
+ if (copy > have) { copy = have; }
638
+ if (copy) {
639
+ if (state.head) {
640
+ len = state.head.extra_len - state.length;
641
+ if (!state.head.extra) {
642
+ // Use untyped array for more convenient processing later
643
+ state.head.extra = new Uint8Array(state.head.extra_len);
644
+ }
645
+ state.head.extra.set(
646
+ input.subarray(
647
+ next,
648
+ // extra field is limited to 65536 bytes
649
+ // - no need for additional size check
650
+ next + copy
651
+ ),
652
+ /*len + copy > state.head.extra_max - len ? state.head.extra_max : copy,*/
653
+ len
654
+ );
655
+ //zmemcpy(state.head.extra + len, next,
656
+ // len + copy > state.head.extra_max ?
657
+ // state.head.extra_max - len : copy);
658
+ }
659
+ if ((state.flags & 0x0200) && (state.wrap & 4)) {
660
+ state.check = crc32(state.check, input, copy, next);
661
+ }
662
+ have -= copy;
663
+ next += copy;
664
+ state.length -= copy;
665
+ }
666
+ if (state.length) { break inf_leave; }
667
+ }
668
+ state.length = 0;
669
+ state.mode = NAME;
670
+ /* falls through */
671
+ case NAME:
672
+ if (state.flags & 0x0800) {
673
+ if (have === 0) { break inf_leave; }
674
+ copy = 0;
675
+ do {
676
+ // TODO: 2 or 1 bytes?
677
+ len = input[next + copy++];
678
+ /* use constant limit because in js we should not preallocate memory */
679
+ if (state.head && len &&
680
+ (state.length < 65536 /*state.head.name_max*/)) {
681
+ state.head.name += String.fromCharCode(len);
682
+ }
683
+ } while (len && copy < have);
684
+
685
+ if ((state.flags & 0x0200) && (state.wrap & 4)) {
686
+ state.check = crc32(state.check, input, copy, next);
687
+ }
688
+ have -= copy;
689
+ next += copy;
690
+ if (len) { break inf_leave; }
691
+ }
692
+ else if (state.head) {
693
+ state.head.name = null;
694
+ }
695
+ state.length = 0;
696
+ state.mode = COMMENT;
697
+ /* falls through */
698
+ case COMMENT:
699
+ if (state.flags & 0x1000) {
700
+ if (have === 0) { break inf_leave; }
701
+ copy = 0;
702
+ do {
703
+ len = input[next + copy++];
704
+ /* use constant limit because in js we should not preallocate memory */
705
+ if (state.head && len &&
706
+ (state.length < 65536 /*state.head.comm_max*/)) {
707
+ state.head.comment += String.fromCharCode(len);
708
+ }
709
+ } while (len && copy < have);
710
+ if ((state.flags & 0x0200) && (state.wrap & 4)) {
711
+ state.check = crc32(state.check, input, copy, next);
712
+ }
713
+ have -= copy;
714
+ next += copy;
715
+ if (len) { break inf_leave; }
716
+ }
717
+ else if (state.head) {
718
+ state.head.comment = null;
719
+ }
720
+ state.mode = HCRC;
721
+ /* falls through */
722
+ case HCRC:
723
+ if (state.flags & 0x0200) {
724
+ //=== NEEDBITS(16); */
725
+ while (bits < 16) {
726
+ if (have === 0) { break inf_leave; }
727
+ have--;
728
+ hold += input[next++] << bits;
729
+ bits += 8;
730
+ }
731
+ //===//
732
+ if ((state.wrap & 4) && hold !== (state.check & 0xffff)) {
733
+ strm.msg = 'header crc mismatch';
734
+ state.mode = BAD;
735
+ break;
736
+ }
737
+ //=== INITBITS();
738
+ hold = 0;
739
+ bits = 0;
740
+ //===//
741
+ }
742
+ if (state.head) {
743
+ state.head.hcrc = ((state.flags >> 9) & 1);
744
+ state.head.done = true;
745
+ }
746
+ strm.adler = state.check = 0;
747
+ state.mode = TYPE;
748
+ break;
749
+ case DICTID:
750
+ //=== NEEDBITS(32); */
751
+ while (bits < 32) {
752
+ if (have === 0) { break inf_leave; }
753
+ have--;
754
+ hold += input[next++] << bits;
755
+ bits += 8;
756
+ }
757
+ //===//
758
+ strm.adler = state.check = zswap32(hold);
759
+ //=== INITBITS();
760
+ hold = 0;
761
+ bits = 0;
762
+ //===//
763
+ state.mode = DICT;
764
+ /* falls through */
765
+ case DICT:
766
+ if (state.havedict === 0) {
767
+ //--- RESTORE() ---
768
+ strm.next_out = put;
769
+ strm.avail_out = left;
770
+ strm.next_in = next;
771
+ strm.avail_in = have;
772
+ state.hold = hold;
773
+ state.bits = bits;
774
+ //---
775
+ return Z_NEED_DICT;
776
+ }
777
+ strm.adler = state.check = 1/*adler32(0L, Z_NULL, 0)*/;
778
+ state.mode = TYPE;
779
+ /* falls through */
780
+ case TYPE:
781
+ if (flush === Z_BLOCK || flush === Z_TREES) { break inf_leave; }
782
+ /* falls through */
783
+ case TYPEDO:
784
+ if (state.last) {
785
+ //--- BYTEBITS() ---//
786
+ hold >>>= bits & 7;
787
+ bits -= bits & 7;
788
+ //---//
789
+ state.mode = CHECK;
790
+ break;
791
+ }
792
+ //=== NEEDBITS(3); */
793
+ while (bits < 3) {
794
+ if (have === 0) { break inf_leave; }
795
+ have--;
796
+ hold += input[next++] << bits;
797
+ bits += 8;
798
+ }
799
+ //===//
800
+ state.last = (hold & 0x01)/*BITS(1)*/;
801
+ //--- DROPBITS(1) ---//
802
+ hold >>>= 1;
803
+ bits -= 1;
804
+ //---//
805
+
806
+ switch ((hold & 0x03)/*BITS(2)*/) {
807
+ case 0: /* stored block */
808
+ //Tracev((stderr, "inflate: stored block%s\n",
809
+ // state.last ? " (last)" : ""));
810
+ state.mode = STORED;
811
+ break;
812
+ case 1: /* fixed block */
813
+ fixedtables(state);
814
+ //Tracev((stderr, "inflate: fixed codes block%s\n",
815
+ // state.last ? " (last)" : ""));
816
+ state.mode = LEN_; /* decode codes */
817
+ if (flush === Z_TREES) {
818
+ //--- DROPBITS(2) ---//
819
+ hold >>>= 2;
820
+ bits -= 2;
821
+ //---//
822
+ break inf_leave;
823
+ }
824
+ break;
825
+ case 2: /* dynamic block */
826
+ //Tracev((stderr, "inflate: dynamic codes block%s\n",
827
+ // state.last ? " (last)" : ""));
828
+ state.mode = TABLE;
829
+ break;
830
+ case 3:
831
+ strm.msg = 'invalid block type';
832
+ state.mode = BAD;
833
+ }
834
+ //--- DROPBITS(2) ---//
835
+ hold >>>= 2;
836
+ bits -= 2;
837
+ //---//
838
+ break;
839
+ case STORED:
840
+ //--- BYTEBITS() ---// /* go to byte boundary */
841
+ hold >>>= bits & 7;
842
+ bits -= bits & 7;
843
+ //---//
844
+ //=== NEEDBITS(32); */
845
+ while (bits < 32) {
846
+ if (have === 0) { break inf_leave; }
847
+ have--;
848
+ hold += input[next++] << bits;
849
+ bits += 8;
850
+ }
851
+ //===//
852
+ if ((hold & 0xffff) !== ((hold >>> 16) ^ 0xffff)) {
853
+ strm.msg = 'invalid stored block lengths';
854
+ state.mode = BAD;
855
+ break;
856
+ }
857
+ state.length = hold & 0xffff;
858
+ //Tracev((stderr, "inflate: stored length %u\n",
859
+ // state.length));
860
+ //=== INITBITS();
861
+ hold = 0;
862
+ bits = 0;
863
+ //===//
864
+ state.mode = COPY_;
865
+ if (flush === Z_TREES) { break inf_leave; }
866
+ /* falls through */
867
+ case COPY_:
868
+ state.mode = COPY;
869
+ /* falls through */
870
+ case COPY:
871
+ copy = state.length;
872
+ if (copy) {
873
+ if (copy > have) { copy = have; }
874
+ if (copy > left) { copy = left; }
875
+ if (copy === 0) { break inf_leave; }
876
+ //--- zmemcpy(put, next, copy); ---
877
+ output.set(input.subarray(next, next + copy), put);
878
+ //---//
879
+ have -= copy;
880
+ next += copy;
881
+ left -= copy;
882
+ put += copy;
883
+ state.length -= copy;
884
+ break;
885
+ }
886
+ //Tracev((stderr, "inflate: stored end\n"));
887
+ state.mode = TYPE;
888
+ break;
889
+ case TABLE:
890
+ //=== NEEDBITS(14); */
891
+ while (bits < 14) {
892
+ if (have === 0) { break inf_leave; }
893
+ have--;
894
+ hold += input[next++] << bits;
895
+ bits += 8;
896
+ }
897
+ //===//
898
+ state.nlen = (hold & 0x1f)/*BITS(5)*/ + 257;
899
+ //--- DROPBITS(5) ---//
900
+ hold >>>= 5;
901
+ bits -= 5;
902
+ //---//
903
+ state.ndist = (hold & 0x1f)/*BITS(5)*/ + 1;
904
+ //--- DROPBITS(5) ---//
905
+ hold >>>= 5;
906
+ bits -= 5;
907
+ //---//
908
+ state.ncode = (hold & 0x0f)/*BITS(4)*/ + 4;
909
+ //--- DROPBITS(4) ---//
910
+ hold >>>= 4;
911
+ bits -= 4;
912
+ //---//
913
+ //#ifndef PKZIP_BUG_WORKAROUND
914
+ if (state.nlen > 286 || state.ndist > 30) {
915
+ strm.msg = 'too many length or distance symbols';
916
+ state.mode = BAD;
917
+ break;
918
+ }
919
+ //#endif
920
+ //Tracev((stderr, "inflate: table sizes ok\n"));
921
+ state.have = 0;
922
+ state.mode = LENLENS;
923
+ /* falls through */
924
+ case LENLENS:
925
+ while (state.have < state.ncode) {
926
+ //=== NEEDBITS(3);
927
+ while (bits < 3) {
928
+ if (have === 0) { break inf_leave; }
929
+ have--;
930
+ hold += input[next++] << bits;
931
+ bits += 8;
932
+ }
933
+ //===//
934
+ state.lens[order[state.have++]] = (hold & 0x07);//BITS(3);
935
+ //--- DROPBITS(3) ---//
936
+ hold >>>= 3;
937
+ bits -= 3;
938
+ //---//
939
+ }
940
+ while (state.have < 19) {
941
+ state.lens[order[state.have++]] = 0;
942
+ }
943
+ // We have separate tables & no pointers. 2 commented lines below not needed.
944
+ //state.next = state.codes;
945
+ //state.lencode = state.next;
946
+ // Switch to use dynamic table
947
+ state.lencode = state.lendyn;
948
+ state.lenbits = 7;
949
+
950
+ opts = { bits: state.lenbits };
951
+ ret = inflate_table(CODES, state.lens, 0, 19, state.lencode, 0, state.work, opts);
952
+ state.lenbits = opts.bits;
953
+
954
+ if (ret) {
955
+ strm.msg = 'invalid code lengths set';
956
+ state.mode = BAD;
957
+ break;
958
+ }
959
+ //Tracev((stderr, "inflate: code lengths ok\n"));
960
+ state.have = 0;
961
+ state.mode = CODELENS;
962
+ /* falls through */
963
+ case CODELENS:
964
+ while (state.have < state.nlen + state.ndist) {
965
+ for (;;) {
966
+ here = state.lencode[hold & ((1 << state.lenbits) - 1)];/*BITS(state.lenbits)*/
967
+ here_bits = here >>> 24;
968
+ here_op = (here >>> 16) & 0xff;
969
+ here_val = here & 0xffff;
970
+
971
+ if ((here_bits) <= bits) { break; }
972
+ //--- PULLBYTE() ---//
973
+ if (have === 0) { break inf_leave; }
974
+ have--;
975
+ hold += input[next++] << bits;
976
+ bits += 8;
977
+ //---//
978
+ }
979
+ if (here_val < 16) {
980
+ //--- DROPBITS(here.bits) ---//
981
+ hold >>>= here_bits;
982
+ bits -= here_bits;
983
+ //---//
984
+ state.lens[state.have++] = here_val;
985
+ }
986
+ else {
987
+ if (here_val === 16) {
988
+ //=== NEEDBITS(here.bits + 2);
989
+ n = here_bits + 2;
990
+ while (bits < n) {
991
+ if (have === 0) { break inf_leave; }
992
+ have--;
993
+ hold += input[next++] << bits;
994
+ bits += 8;
995
+ }
996
+ //===//
997
+ //--- DROPBITS(here.bits) ---//
998
+ hold >>>= here_bits;
999
+ bits -= here_bits;
1000
+ //---//
1001
+ if (state.have === 0) {
1002
+ strm.msg = 'invalid bit length repeat';
1003
+ state.mode = BAD;
1004
+ break;
1005
+ }
1006
+ len = state.lens[state.have - 1];
1007
+ copy = 3 + (hold & 0x03);//BITS(2);
1008
+ //--- DROPBITS(2) ---//
1009
+ hold >>>= 2;
1010
+ bits -= 2;
1011
+ //---//
1012
+ }
1013
+ else if (here_val === 17) {
1014
+ //=== NEEDBITS(here.bits + 3);
1015
+ n = here_bits + 3;
1016
+ while (bits < n) {
1017
+ if (have === 0) { break inf_leave; }
1018
+ have--;
1019
+ hold += input[next++] << bits;
1020
+ bits += 8;
1021
+ }
1022
+ //===//
1023
+ //--- DROPBITS(here.bits) ---//
1024
+ hold >>>= here_bits;
1025
+ bits -= here_bits;
1026
+ //---//
1027
+ len = 0;
1028
+ copy = 3 + (hold & 0x07);//BITS(3);
1029
+ //--- DROPBITS(3) ---//
1030
+ hold >>>= 3;
1031
+ bits -= 3;
1032
+ //---//
1033
+ }
1034
+ else {
1035
+ //=== NEEDBITS(here.bits + 7);
1036
+ n = here_bits + 7;
1037
+ while (bits < n) {
1038
+ if (have === 0) { break inf_leave; }
1039
+ have--;
1040
+ hold += input[next++] << bits;
1041
+ bits += 8;
1042
+ }
1043
+ //===//
1044
+ //--- DROPBITS(here.bits) ---//
1045
+ hold >>>= here_bits;
1046
+ bits -= here_bits;
1047
+ //---//
1048
+ len = 0;
1049
+ copy = 11 + (hold & 0x7f);//BITS(7);
1050
+ //--- DROPBITS(7) ---//
1051
+ hold >>>= 7;
1052
+ bits -= 7;
1053
+ //---//
1054
+ }
1055
+ if (state.have + copy > state.nlen + state.ndist) {
1056
+ strm.msg = 'invalid bit length repeat';
1057
+ state.mode = BAD;
1058
+ break;
1059
+ }
1060
+ while (copy--) {
1061
+ state.lens[state.have++] = len;
1062
+ }
1063
+ }
1064
+ }
1065
+
1066
+ /* handle error breaks in while */
1067
+ if (state.mode === BAD) { break; }
1068
+
1069
+ /* check for end-of-block code (better have one) */
1070
+ if (state.lens[256] === 0) {
1071
+ strm.msg = 'invalid code -- missing end-of-block';
1072
+ state.mode = BAD;
1073
+ break;
1074
+ }
1075
+
1076
+ /* build code tables -- note: do not change the lenbits or distbits
1077
+ values here (9 and 6) without reading the comments in inftrees.h
1078
+ concerning the ENOUGH constants, which depend on those values */
1079
+ state.lenbits = 9;
1080
+
1081
+ opts = { bits: state.lenbits };
1082
+ ret = inflate_table(LENS, state.lens, 0, state.nlen, state.lencode, 0, state.work, opts);
1083
+ // We have separate tables & no pointers. 2 commented lines below not needed.
1084
+ // state.next_index = opts.table_index;
1085
+ state.lenbits = opts.bits;
1086
+ // state.lencode = state.next;
1087
+
1088
+ if (ret) {
1089
+ strm.msg = 'invalid literal/lengths set';
1090
+ state.mode = BAD;
1091
+ break;
1092
+ }
1093
+
1094
+ state.distbits = 6;
1095
+ //state.distcode.copy(state.codes);
1096
+ // Switch to use dynamic table
1097
+ state.distcode = state.distdyn;
1098
+ opts = { bits: state.distbits };
1099
+ ret = inflate_table(DISTS, state.lens, state.nlen, state.ndist, state.distcode, 0, state.work, opts);
1100
+ // We have separate tables & no pointers. 2 commented lines below not needed.
1101
+ // state.next_index = opts.table_index;
1102
+ state.distbits = opts.bits;
1103
+ // state.distcode = state.next;
1104
+
1105
+ if (ret) {
1106
+ strm.msg = 'invalid distances set';
1107
+ state.mode = BAD;
1108
+ break;
1109
+ }
1110
+ //Tracev((stderr, 'inflate: codes ok\n'));
1111
+ state.mode = LEN_;
1112
+ if (flush === Z_TREES) { break inf_leave; }
1113
+ /* falls through */
1114
+ case LEN_:
1115
+ state.mode = LEN;
1116
+ /* falls through */
1117
+ case LEN:
1118
+ if (have >= 6 && left >= 258) {
1119
+ //--- RESTORE() ---
1120
+ strm.next_out = put;
1121
+ strm.avail_out = left;
1122
+ strm.next_in = next;
1123
+ strm.avail_in = have;
1124
+ state.hold = hold;
1125
+ state.bits = bits;
1126
+ //---
1127
+ inflate_fast(strm, _out);
1128
+ //--- LOAD() ---
1129
+ put = strm.next_out;
1130
+ output = strm.output;
1131
+ left = strm.avail_out;
1132
+ next = strm.next_in;
1133
+ input = strm.input;
1134
+ have = strm.avail_in;
1135
+ hold = state.hold;
1136
+ bits = state.bits;
1137
+ //---
1138
+
1139
+ if (state.mode === TYPE) {
1140
+ state.back = -1;
1141
+ }
1142
+ break;
1143
+ }
1144
+ state.back = 0;
1145
+ for (;;) {
1146
+ here = state.lencode[hold & ((1 << state.lenbits) - 1)]; /*BITS(state.lenbits)*/
1147
+ here_bits = here >>> 24;
1148
+ here_op = (here >>> 16) & 0xff;
1149
+ here_val = here & 0xffff;
1150
+
1151
+ if (here_bits <= bits) { break; }
1152
+ //--- PULLBYTE() ---//
1153
+ if (have === 0) { break inf_leave; }
1154
+ have--;
1155
+ hold += input[next++] << bits;
1156
+ bits += 8;
1157
+ //---//
1158
+ }
1159
+ if (here_op && (here_op & 0xf0) === 0) {
1160
+ last_bits = here_bits;
1161
+ last_op = here_op;
1162
+ last_val = here_val;
1163
+ for (;;) {
1164
+ here = state.lencode[last_val +
1165
+ ((hold & ((1 << (last_bits + last_op)) - 1))/*BITS(last.bits + last.op)*/ >> last_bits)];
1166
+ here_bits = here >>> 24;
1167
+ here_op = (here >>> 16) & 0xff;
1168
+ here_val = here & 0xffff;
1169
+
1170
+ if ((last_bits + here_bits) <= bits) { break; }
1171
+ //--- PULLBYTE() ---//
1172
+ if (have === 0) { break inf_leave; }
1173
+ have--;
1174
+ hold += input[next++] << bits;
1175
+ bits += 8;
1176
+ //---//
1177
+ }
1178
+ //--- DROPBITS(last.bits) ---//
1179
+ hold >>>= last_bits;
1180
+ bits -= last_bits;
1181
+ //---//
1182
+ state.back += last_bits;
1183
+ }
1184
+ //--- DROPBITS(here.bits) ---//
1185
+ hold >>>= here_bits;
1186
+ bits -= here_bits;
1187
+ //---//
1188
+ state.back += here_bits;
1189
+ state.length = here_val;
1190
+ if (here_op === 0) {
1191
+ //Tracevv((stderr, here.val >= 0x20 && here.val < 0x7f ?
1192
+ // "inflate: literal '%c'\n" :
1193
+ // "inflate: literal 0x%02x\n", here.val));
1194
+ state.mode = LIT;
1195
+ break;
1196
+ }
1197
+ if (here_op & 32) {
1198
+ //Tracevv((stderr, "inflate: end of block\n"));
1199
+ state.back = -1;
1200
+ state.mode = TYPE;
1201
+ break;
1202
+ }
1203
+ if (here_op & 64) {
1204
+ strm.msg = 'invalid literal/length code';
1205
+ state.mode = BAD;
1206
+ break;
1207
+ }
1208
+ state.extra = here_op & 15;
1209
+ state.mode = LENEXT;
1210
+ /* falls through */
1211
+ case LENEXT:
1212
+ if (state.extra) {
1213
+ //=== NEEDBITS(state.extra);
1214
+ n = state.extra;
1215
+ while (bits < n) {
1216
+ if (have === 0) { break inf_leave; }
1217
+ have--;
1218
+ hold += input[next++] << bits;
1219
+ bits += 8;
1220
+ }
1221
+ //===//
1222
+ state.length += hold & ((1 << state.extra) - 1)/*BITS(state.extra)*/;
1223
+ //--- DROPBITS(state.extra) ---//
1224
+ hold >>>= state.extra;
1225
+ bits -= state.extra;
1226
+ //---//
1227
+ state.back += state.extra;
1228
+ }
1229
+ //Tracevv((stderr, "inflate: length %u\n", state.length));
1230
+ state.was = state.length;
1231
+ state.mode = DIST;
1232
+ /* falls through */
1233
+ case DIST:
1234
+ for (;;) {
1235
+ here = state.distcode[hold & ((1 << state.distbits) - 1)];/*BITS(state.distbits)*/
1236
+ here_bits = here >>> 24;
1237
+ here_op = (here >>> 16) & 0xff;
1238
+ here_val = here & 0xffff;
1239
+
1240
+ if ((here_bits) <= bits) { break; }
1241
+ //--- PULLBYTE() ---//
1242
+ if (have === 0) { break inf_leave; }
1243
+ have--;
1244
+ hold += input[next++] << bits;
1245
+ bits += 8;
1246
+ //---//
1247
+ }
1248
+ if ((here_op & 0xf0) === 0) {
1249
+ last_bits = here_bits;
1250
+ last_op = here_op;
1251
+ last_val = here_val;
1252
+ for (;;) {
1253
+ here = state.distcode[last_val +
1254
+ ((hold & ((1 << (last_bits + last_op)) - 1))/*BITS(last.bits + last.op)*/ >> last_bits)];
1255
+ here_bits = here >>> 24;
1256
+ here_op = (here >>> 16) & 0xff;
1257
+ here_val = here & 0xffff;
1258
+
1259
+ if ((last_bits + here_bits) <= bits) { break; }
1260
+ //--- PULLBYTE() ---//
1261
+ if (have === 0) { break inf_leave; }
1262
+ have--;
1263
+ hold += input[next++] << bits;
1264
+ bits += 8;
1265
+ //---//
1266
+ }
1267
+ //--- DROPBITS(last.bits) ---//
1268
+ hold >>>= last_bits;
1269
+ bits -= last_bits;
1270
+ //---//
1271
+ state.back += last_bits;
1272
+ }
1273
+ //--- DROPBITS(here.bits) ---//
1274
+ hold >>>= here_bits;
1275
+ bits -= here_bits;
1276
+ //---//
1277
+ state.back += here_bits;
1278
+ if (here_op & 64) {
1279
+ strm.msg = 'invalid distance code';
1280
+ state.mode = BAD;
1281
+ break;
1282
+ }
1283
+ state.offset = here_val;
1284
+ state.extra = (here_op) & 15;
1285
+ state.mode = DISTEXT;
1286
+ /* falls through */
1287
+ case DISTEXT:
1288
+ if (state.extra) {
1289
+ //=== NEEDBITS(state.extra);
1290
+ n = state.extra;
1291
+ while (bits < n) {
1292
+ if (have === 0) { break inf_leave; }
1293
+ have--;
1294
+ hold += input[next++] << bits;
1295
+ bits += 8;
1296
+ }
1297
+ //===//
1298
+ state.offset += hold & ((1 << state.extra) - 1)/*BITS(state.extra)*/;
1299
+ //--- DROPBITS(state.extra) ---//
1300
+ hold >>>= state.extra;
1301
+ bits -= state.extra;
1302
+ //---//
1303
+ state.back += state.extra;
1304
+ }
1305
+ //#ifdef INFLATE_STRICT
1306
+ if (state.offset > state.dmax) {
1307
+ strm.msg = 'invalid distance too far back';
1308
+ state.mode = BAD;
1309
+ break;
1310
+ }
1311
+ //#endif
1312
+ //Tracevv((stderr, "inflate: distance %u\n", state.offset));
1313
+ state.mode = MATCH;
1314
+ /* falls through */
1315
+ case MATCH:
1316
+ if (left === 0) { break inf_leave; }
1317
+ copy = _out - left;
1318
+ if (state.offset > copy) { /* copy from window */
1319
+ copy = state.offset - copy;
1320
+ if (copy > state.whave) {
1321
+ if (state.sane) {
1322
+ strm.msg = 'invalid distance too far back';
1323
+ state.mode = BAD;
1324
+ break;
1325
+ }
1326
+ // (!) This block is disabled in zlib defaults,
1327
+ // don't enable it for binary compatibility
1328
+ //#ifdef INFLATE_ALLOW_INVALID_DISTANCE_TOOFAR_ARRR
1329
+ // Trace((stderr, "inflate.c too far\n"));
1330
+ // copy -= state.whave;
1331
+ // if (copy > state.length) { copy = state.length; }
1332
+ // if (copy > left) { copy = left; }
1333
+ // left -= copy;
1334
+ // state.length -= copy;
1335
+ // do {
1336
+ // output[put++] = 0;
1337
+ // } while (--copy);
1338
+ // if (state.length === 0) { state.mode = LEN; }
1339
+ // break;
1340
+ //#endif
1341
+ }
1342
+ if (copy > state.wnext) {
1343
+ copy -= state.wnext;
1344
+ from = state.wsize - copy;
1345
+ }
1346
+ else {
1347
+ from = state.wnext - copy;
1348
+ }
1349
+ if (copy > state.length) { copy = state.length; }
1350
+ from_source = state.window;
1351
+ }
1352
+ else { /* copy from output */
1353
+ from_source = output;
1354
+ from = put - state.offset;
1355
+ copy = state.length;
1356
+ }
1357
+ if (copy > left) { copy = left; }
1358
+ left -= copy;
1359
+ state.length -= copy;
1360
+ do {
1361
+ output[put++] = from_source[from++];
1362
+ } while (--copy);
1363
+ if (state.length === 0) { state.mode = LEN; }
1364
+ break;
1365
+ case LIT:
1366
+ if (left === 0) { break inf_leave; }
1367
+ output[put++] = state.length;
1368
+ left--;
1369
+ state.mode = LEN;
1370
+ break;
1371
+ case CHECK:
1372
+ if (state.wrap) {
1373
+ //=== NEEDBITS(32);
1374
+ while (bits < 32) {
1375
+ if (have === 0) { break inf_leave; }
1376
+ have--;
1377
+ // Use '|' instead of '+' to make sure that result is signed
1378
+ hold |= input[next++] << bits;
1379
+ bits += 8;
1380
+ }
1381
+ //===//
1382
+ _out -= left;
1383
+ strm.total_out += _out;
1384
+ state.total += _out;
1385
+ if ((state.wrap & 4) && _out) {
1386
+ strm.adler = state.check =
1387
+ /*UPDATE_CHECK(state.check, put - _out, _out);*/
1388
+ (state.flags ? crc32(state.check, output, _out, put - _out) : adler32(state.check, output, _out, put - _out));
1389
+
1390
+ }
1391
+ _out = left;
1392
+ // NB: crc32 stored as signed 32-bit int, zswap32 returns signed too
1393
+ if ((state.wrap & 4) && (state.flags ? hold : zswap32(hold)) !== state.check) {
1394
+ strm.msg = 'incorrect data check';
1395
+ state.mode = BAD;
1396
+ break;
1397
+ }
1398
+ //=== INITBITS();
1399
+ hold = 0;
1400
+ bits = 0;
1401
+ //===//
1402
+ //Tracev((stderr, "inflate: check matches trailer\n"));
1403
+ }
1404
+ state.mode = LENGTH;
1405
+ /* falls through */
1406
+ case LENGTH:
1407
+ if (state.wrap && state.flags) {
1408
+ //=== NEEDBITS(32);
1409
+ while (bits < 32) {
1410
+ if (have === 0) { break inf_leave; }
1411
+ have--;
1412
+ hold += input[next++] << bits;
1413
+ bits += 8;
1414
+ }
1415
+ //===//
1416
+ if ((state.wrap & 4) && hold !== (state.total & 0xffffffff)) {
1417
+ strm.msg = 'incorrect length check';
1418
+ state.mode = BAD;
1419
+ break;
1420
+ }
1421
+ //=== INITBITS();
1422
+ hold = 0;
1423
+ bits = 0;
1424
+ //===//
1425
+ //Tracev((stderr, "inflate: length matches trailer\n"));
1426
+ }
1427
+ state.mode = DONE;
1428
+ /* falls through */
1429
+ case DONE:
1430
+ ret = Z_STREAM_END;
1431
+ break inf_leave;
1432
+ case BAD:
1433
+ ret = Z_DATA_ERROR;
1434
+ break inf_leave;
1435
+ case MEM:
1436
+ return Z_MEM_ERROR;
1437
+ case SYNC:
1438
+ /* falls through */
1439
+ default:
1440
+ return Z_STREAM_ERROR;
1441
+ }
1442
+ }
1443
+
1444
+ // inf_leave <- here is real place for "goto inf_leave", emulated via "break inf_leave"
1445
+
1446
+ /*
1447
+ Return from inflate(), updating the total counts and the check value.
1448
+ If there was no progress during the inflate() call, return a buffer
1449
+ error. Call updatewindow() to create and/or update the window state.
1450
+ Note: a memory error from inflate() is non-recoverable.
1451
+ */
1452
+
1453
+ //--- RESTORE() ---
1454
+ strm.next_out = put;
1455
+ strm.avail_out = left;
1456
+ strm.next_in = next;
1457
+ strm.avail_in = have;
1458
+ state.hold = hold;
1459
+ state.bits = bits;
1460
+ //---
1461
+
1462
+ if (state.wsize || (_out !== strm.avail_out && state.mode < BAD &&
1463
+ (state.mode < CHECK || flush !== Z_FINISH))) {
1464
+ if (updatewindow(strm, strm.output, strm.next_out, _out - strm.avail_out)) {
1465
+ state.mode = MEM;
1466
+ return Z_MEM_ERROR;
1467
+ }
1468
+ }
1469
+ _in -= strm.avail_in;
1470
+ _out -= strm.avail_out;
1471
+ strm.total_in += _in;
1472
+ strm.total_out += _out;
1473
+ state.total += _out;
1474
+ if ((state.wrap & 4) && _out) {
1475
+ strm.adler = state.check = /*UPDATE_CHECK(state.check, strm.next_out - _out, _out);*/
1476
+ (state.flags ? crc32(state.check, output, _out, strm.next_out - _out) : adler32(state.check, output, _out, strm.next_out - _out));
1477
+ }
1478
+ strm.data_type = state.bits + (state.last ? 64 : 0) +
1479
+ (state.mode === TYPE ? 128 : 0) +
1480
+ (state.mode === LEN_ || state.mode === COPY_ ? 256 : 0);
1481
+ if (((_in === 0 && _out === 0) || flush === Z_FINISH) && ret === Z_OK) {
1482
+ ret = Z_BUF_ERROR;
1483
+ }
1484
+ return ret;
1485
+ };
1486
+
1487
+
1488
+ const inflateEnd = (strm) => {
1489
+
1490
+ if (inflateStateCheck(strm)) {
1491
+ return Z_STREAM_ERROR;
1492
+ }
1493
+
1494
+ let state = strm.state;
1495
+ if (state.window) {
1496
+ state.window = null;
1497
+ }
1498
+ strm.state = null;
1499
+ return Z_OK;
1500
+ };
1501
+
1502
+
1503
+ const inflateGetHeader = (strm, head) => {
1504
+
1505
+ /* check state */
1506
+ if (inflateStateCheck(strm)) { return Z_STREAM_ERROR; }
1507
+ const state = strm.state;
1508
+ if ((state.wrap & 2) === 0) { return Z_STREAM_ERROR; }
1509
+
1510
+ /* save header structure */
1511
+ state.head = head;
1512
+ head.done = false;
1513
+ return Z_OK;
1514
+ };
1515
+
1516
+
1517
+ const inflateSetDictionary = (strm, dictionary) => {
1518
+ const dictLength = dictionary.length;
1519
+
1520
+ let state;
1521
+ let dictid;
1522
+ let ret;
1523
+
1524
+ /* check state */
1525
+ if (inflateStateCheck(strm)) { return Z_STREAM_ERROR; }
1526
+ state = strm.state;
1527
+
1528
+ if (state.wrap !== 0 && state.mode !== DICT) {
1529
+ return Z_STREAM_ERROR;
1530
+ }
1531
+
1532
+ /* check for correct dictionary identifier */
1533
+ if (state.mode === DICT) {
1534
+ dictid = 1; /* adler32(0, null, 0)*/
1535
+ /* dictid = adler32(dictid, dictionary, dictLength); */
1536
+ dictid = adler32(dictid, dictionary, dictLength, 0);
1537
+ if (dictid !== state.check) {
1538
+ return Z_DATA_ERROR;
1539
+ }
1540
+ }
1541
+ /* copy dictionary to window using updatewindow(), which will amend the
1542
+ existing dictionary if appropriate */
1543
+ ret = updatewindow(strm, dictionary, dictLength, dictLength);
1544
+ if (ret) {
1545
+ state.mode = MEM;
1546
+ return Z_MEM_ERROR;
1547
+ }
1548
+ state.havedict = 1;
1549
+ // Tracev((stderr, "inflate: dictionary set\n"));
1550
+ return Z_OK;
1551
+ };
1552
+
1553
+
1554
+ module.exports.inflateReset = inflateReset;
1555
+ module.exports.inflateReset2 = inflateReset2;
1556
+ module.exports.inflateResetKeep = inflateResetKeep;
1557
+ module.exports.inflateInit = inflateInit;
1558
+ module.exports.inflateInit2 = inflateInit2;
1559
+ module.exports.inflate = inflate;
1560
+ module.exports.inflateEnd = inflateEnd;
1561
+ module.exports.inflateGetHeader = inflateGetHeader;
1562
+ module.exports.inflateSetDictionary = inflateSetDictionary;
1563
+ module.exports.inflateInfo = 'pako inflate (from Nodeca project)';
1564
+
1565
+ /* Not implemented
1566
+ module.exports.inflateCodesUsed = inflateCodesUsed;
1567
+ module.exports.inflateCopy = inflateCopy;
1568
+ module.exports.inflateGetDictionary = inflateGetDictionary;
1569
+ module.exports.inflateMark = inflateMark;
1570
+ module.exports.inflatePrime = inflatePrime;
1571
+ module.exports.inflateSync = inflateSync;
1572
+ module.exports.inflateSyncPoint = inflateSyncPoint;
1573
+ module.exports.inflateUndermine = inflateUndermine;
1574
+ module.exports.inflateValidate = inflateValidate;
1575
+ */