@nocobase/plugin-ai-gigachat 2.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1462) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +99 -0
  3. package/client.d.ts +2 -0
  4. package/client.js +1 -0
  5. package/dist/client/index.d.ts +8 -0
  6. package/dist/client/index.js +10 -0
  7. package/dist/client/llm-providers/gigachat/ModelSettings.d.ts +10 -0
  8. package/dist/client/llm-providers/gigachat/ProviderSettings.d.ts +10 -0
  9. package/dist/client/llm-providers/gigachat/index.d.ts +10 -0
  10. package/dist/client/locale.d.ts +3 -0
  11. package/dist/externalVersion.js +18 -0
  12. package/dist/index.d.ts +2 -0
  13. package/dist/index.js +48 -0
  14. package/dist/locale/de-DE.json +1 -0
  15. package/dist/locale/en-US.json +1 -0
  16. package/dist/locale/es-ES.json +1 -0
  17. package/dist/locale/fr-FR.json +1 -0
  18. package/dist/locale/hu-HU.json +1 -0
  19. package/dist/locale/id-ID.json +1 -0
  20. package/dist/locale/it-IT.json +1 -0
  21. package/dist/locale/ja-JP.json +1 -0
  22. package/dist/locale/ko-KR.json +1 -0
  23. package/dist/locale/nl-NL.json +1 -0
  24. package/dist/locale/pt-BR.json +1 -0
  25. package/dist/locale/ru-RU.json +1 -0
  26. package/dist/locale/tr-TR.json +1 -0
  27. package/dist/locale/uk-UA.json +1 -0
  28. package/dist/locale/vi-VN.json +1 -0
  29. package/dist/locale/zh-CN.json +1 -0
  30. package/dist/locale/zh-TW.json +1 -0
  31. package/dist/node_modules/gigachat/api/get_balance.d.ts +8 -0
  32. package/dist/node_modules/gigachat/api/get_balance.js +33 -0
  33. package/dist/node_modules/gigachat/api/get_file.d.ts +9 -0
  34. package/dist/node_modules/gigachat/api/get_file.js +32 -0
  35. package/dist/node_modules/gigachat/api/get_files.d.ts +8 -0
  36. package/dist/node_modules/gigachat/api/get_files.js +32 -0
  37. package/dist/node_modules/gigachat/api/get_image.d.ts +10 -0
  38. package/dist/node_modules/gigachat/api/get_image.js +34 -0
  39. package/dist/node_modules/gigachat/api/get_model.d.ts +9 -0
  40. package/dist/node_modules/gigachat/api/get_model.js +32 -0
  41. package/dist/node_modules/gigachat/api/get_models.d.ts +8 -0
  42. package/dist/node_modules/gigachat/api/get_models.js +32 -0
  43. package/dist/node_modules/gigachat/api/index.d.ts +16 -0
  44. package/dist/node_modules/gigachat/api/index.js +35 -0
  45. package/dist/node_modules/gigachat/api/post_ai_check.d.ts +10 -0
  46. package/dist/node_modules/gigachat/api/post_ai_check.js +33 -0
  47. package/dist/node_modules/gigachat/api/post_auth.d.ts +10 -0
  48. package/dist/node_modules/gigachat/api/post_auth.js +47 -0
  49. package/dist/node_modules/gigachat/api/post_chat.d.ts +11 -0
  50. package/dist/node_modules/gigachat/api/post_chat.js +33 -0
  51. package/dist/node_modules/gigachat/api/post_embeddings.d.ts +10 -0
  52. package/dist/node_modules/gigachat/api/post_embeddings.js +33 -0
  53. package/dist/node_modules/gigachat/api/post_files.d.ts +10 -0
  54. package/dist/node_modules/gigachat/api/post_files.js +36 -0
  55. package/dist/node_modules/gigachat/api/post_files_delete.d.ts +9 -0
  56. package/dist/node_modules/gigachat/api/post_files_delete.js +33 -0
  57. package/dist/node_modules/gigachat/api/post_token.d.ts +10 -0
  58. package/dist/node_modules/gigachat/api/post_token.js +36 -0
  59. package/dist/node_modules/gigachat/api/post_tokens_count.d.ts +10 -0
  60. package/dist/node_modules/gigachat/api/post_tokens_count.js +34 -0
  61. package/dist/node_modules/gigachat/api/stream_chat.d.ts +11 -0
  62. package/dist/node_modules/gigachat/api/stream_chat.js +140 -0
  63. package/dist/node_modules/gigachat/api/utils.d.ts +9 -0
  64. package/dist/node_modules/gigachat/api/utils.js +67 -0
  65. package/dist/node_modules/gigachat/constants.d.ts +3 -0
  66. package/dist/node_modules/gigachat/constants.js +6 -0
  67. package/dist/node_modules/gigachat/exceptions.d.ts +12 -0
  68. package/dist/node_modules/gigachat/exceptions.js +26 -0
  69. package/dist/node_modules/gigachat/index.d.mts +78 -0
  70. package/dist/node_modules/gigachat/index.d.ts +78 -0
  71. package/dist/node_modules/gigachat/index.js +1 -0
  72. package/dist/node_modules/gigachat/interfaces/access_token.d.ts +8 -0
  73. package/dist/node_modules/gigachat/interfaces/access_token.js +3 -0
  74. package/dist/node_modules/gigachat/interfaces/ai_check_result.d.ts +13 -0
  75. package/dist/node_modules/gigachat/interfaces/ai_check_result.js +3 -0
  76. package/dist/node_modules/gigachat/interfaces/balance.d.ts +11 -0
  77. package/dist/node_modules/gigachat/interfaces/balance.js +3 -0
  78. package/dist/node_modules/gigachat/interfaces/chat.d.ts +33 -0
  79. package/dist/node_modules/gigachat/interfaces/chat.js +3 -0
  80. package/dist/node_modules/gigachat/interfaces/chat_completion.d.ts +16 -0
  81. package/dist/node_modules/gigachat/interfaces/chat_completion.js +3 -0
  82. package/dist/node_modules/gigachat/interfaces/chat_completion_chunk.d.ts +13 -0
  83. package/dist/node_modules/gigachat/interfaces/chat_completion_chunk.js +3 -0
  84. package/dist/node_modules/gigachat/interfaces/chat_function_call.d.ts +11 -0
  85. package/dist/node_modules/gigachat/interfaces/chat_function_call.js +3 -0
  86. package/dist/node_modules/gigachat/interfaces/choices.d.ts +11 -0
  87. package/dist/node_modules/gigachat/interfaces/choices.js +3 -0
  88. package/dist/node_modules/gigachat/interfaces/choices_chunk.d.ts +11 -0
  89. package/dist/node_modules/gigachat/interfaces/choices_chunk.js +3 -0
  90. package/dist/node_modules/gigachat/interfaces/deleted_file.d.ts +8 -0
  91. package/dist/node_modules/gigachat/interfaces/deleted_file.js +3 -0
  92. package/dist/node_modules/gigachat/interfaces/embedding.d.ts +13 -0
  93. package/dist/node_modules/gigachat/interfaces/embedding.js +3 -0
  94. package/dist/node_modules/gigachat/interfaces/embeddings.d.ts +11 -0
  95. package/dist/node_modules/gigachat/interfaces/embeddings.js +3 -0
  96. package/dist/node_modules/gigachat/interfaces/embeddings_usage.d.ts +6 -0
  97. package/dist/node_modules/gigachat/interfaces/embeddings_usage.js +3 -0
  98. package/dist/node_modules/gigachat/interfaces/few_shot_example.d.ts +10 -0
  99. package/dist/node_modules/gigachat/interfaces/few_shot_example.js +3 -0
  100. package/dist/node_modules/gigachat/interfaces/function.d.ts +18 -0
  101. package/dist/node_modules/gigachat/interfaces/function.js +3 -0
  102. package/dist/node_modules/gigachat/interfaces/function_call.d.ts +10 -0
  103. package/dist/node_modules/gigachat/interfaces/function_call.js +3 -0
  104. package/dist/node_modules/gigachat/interfaces/function_parameters.d.ts +13 -0
  105. package/dist/node_modules/gigachat/interfaces/function_parameters.js +3 -0
  106. package/dist/node_modules/gigachat/interfaces/function_parameters_property.d.ts +18 -0
  107. package/dist/node_modules/gigachat/interfaces/function_parameters_property.js +3 -0
  108. package/dist/node_modules/gigachat/interfaces/image.d.ts +6 -0
  109. package/dist/node_modules/gigachat/interfaces/image.js +3 -0
  110. package/dist/node_modules/gigachat/interfaces/index.d.ts +31 -0
  111. package/dist/node_modules/gigachat/interfaces/index.js +47 -0
  112. package/dist/node_modules/gigachat/interfaces/message.d.ts +22 -0
  113. package/dist/node_modules/gigachat/interfaces/message.js +3 -0
  114. package/dist/node_modules/gigachat/interfaces/message_chunk.d.ts +12 -0
  115. package/dist/node_modules/gigachat/interfaces/message_chunk.js +3 -0
  116. package/dist/node_modules/gigachat/interfaces/message_role.d.ts +2 -0
  117. package/dist/node_modules/gigachat/interfaces/message_role.js +3 -0
  118. package/dist/node_modules/gigachat/interfaces/model.d.ts +10 -0
  119. package/dist/node_modules/gigachat/interfaces/model.js +3 -0
  120. package/dist/node_modules/gigachat/interfaces/models.d.ts +9 -0
  121. package/dist/node_modules/gigachat/interfaces/models.js +3 -0
  122. package/dist/node_modules/gigachat/interfaces/token.d.ts +8 -0
  123. package/dist/node_modules/gigachat/interfaces/token.js +3 -0
  124. package/dist/node_modules/gigachat/interfaces/tokens_count.d.ts +13 -0
  125. package/dist/node_modules/gigachat/interfaces/tokens_count.js +3 -0
  126. package/dist/node_modules/gigachat/interfaces/uploaded_file.d.ts +18 -0
  127. package/dist/node_modules/gigachat/interfaces/uploaded_file.js +3 -0
  128. package/dist/node_modules/gigachat/interfaces/uploaded_files.d.ts +7 -0
  129. package/dist/node_modules/gigachat/interfaces/uploaded_files.js +3 -0
  130. package/dist/node_modules/gigachat/interfaces/usage.d.ts +10 -0
  131. package/dist/node_modules/gigachat/interfaces/usage.js +3 -0
  132. package/dist/node_modules/gigachat/interfaces/with_x_headers.d.ts +5 -0
  133. package/dist/node_modules/gigachat/interfaces/with_x_headers.js +3 -0
  134. package/dist/node_modules/gigachat/node_modules/axios/dist/axios.js +4353 -0
  135. package/dist/node_modules/gigachat/node_modules/axios/dist/axios.min.js +5 -0
  136. package/dist/node_modules/gigachat/node_modules/axios/dist/browser/axios.cjs +3979 -0
  137. package/dist/node_modules/gigachat/node_modules/axios/dist/esm/axios.js +4002 -0
  138. package/dist/node_modules/gigachat/node_modules/axios/dist/esm/axios.min.js +3 -0
  139. package/dist/node_modules/gigachat/node_modules/axios/dist/node/axios.cjs +5315 -0
  140. package/dist/node_modules/gigachat/node_modules/axios/index.d.cts +591 -0
  141. package/dist/node_modules/gigachat/node_modules/axios/index.d.ts +810 -0
  142. package/dist/node_modules/gigachat/node_modules/axios/index.js +43 -0
  143. package/dist/node_modules/gigachat/node_modules/axios/lib/adapters/adapters.js +126 -0
  144. package/dist/node_modules/gigachat/node_modules/axios/lib/adapters/fetch.js +288 -0
  145. package/dist/node_modules/gigachat/node_modules/axios/lib/adapters/http.js +898 -0
  146. package/dist/node_modules/gigachat/node_modules/axios/lib/adapters/xhr.js +200 -0
  147. package/dist/node_modules/gigachat/node_modules/axios/lib/axios.js +89 -0
  148. package/dist/node_modules/gigachat/node_modules/axios/lib/cancel/CancelToken.js +135 -0
  149. package/dist/node_modules/gigachat/node_modules/axios/lib/cancel/CanceledError.js +22 -0
  150. package/dist/node_modules/gigachat/node_modules/axios/lib/cancel/isCancel.js +5 -0
  151. package/dist/node_modules/gigachat/node_modules/axios/lib/core/Axios.js +249 -0
  152. package/dist/node_modules/gigachat/node_modules/axios/lib/core/AxiosError.js +73 -0
  153. package/dist/node_modules/gigachat/node_modules/axios/lib/core/AxiosHeaders.js +314 -0
  154. package/dist/node_modules/gigachat/node_modules/axios/lib/core/InterceptorManager.js +72 -0
  155. package/dist/node_modules/gigachat/node_modules/axios/lib/core/buildFullPath.js +22 -0
  156. package/dist/node_modules/gigachat/node_modules/axios/lib/core/dispatchRequest.js +81 -0
  157. package/dist/node_modules/gigachat/node_modules/axios/lib/core/mergeConfig.js +119 -0
  158. package/dist/node_modules/gigachat/node_modules/axios/lib/core/settle.js +27 -0
  159. package/dist/node_modules/gigachat/node_modules/axios/lib/core/transformData.js +28 -0
  160. package/dist/node_modules/gigachat/node_modules/axios/lib/defaults/index.js +161 -0
  161. package/dist/node_modules/gigachat/node_modules/axios/lib/defaults/transitional.js +8 -0
  162. package/dist/node_modules/gigachat/node_modules/axios/lib/env/classes/FormData.js +2 -0
  163. package/dist/node_modules/gigachat/node_modules/axios/lib/env/data.js +1 -0
  164. package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/AxiosTransformStream.js +143 -0
  165. package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +58 -0
  166. package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/HttpStatusCode.js +77 -0
  167. package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js +28 -0
  168. package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/bind.js +14 -0
  169. package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/buildURL.js +64 -0
  170. package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/callbackify.js +16 -0
  171. package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/combineURLs.js +15 -0
  172. package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/composeSignals.js +48 -0
  173. package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/cookies.js +53 -0
  174. package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/deprecatedMethod.js +26 -0
  175. package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js +73 -0
  176. package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/formDataToJSON.js +95 -0
  177. package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/formDataToStream.js +112 -0
  178. package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/fromDataURI.js +53 -0
  179. package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/isAbsoluteURL.js +20 -0
  180. package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/isAxiosError.js +14 -0
  181. package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/isURLSameOrigin.js +14 -0
  182. package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/null.js +2 -0
  183. package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/parseHeaders.js +55 -0
  184. package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/parseProtocol.js +6 -0
  185. package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/progressEventReducer.js +44 -0
  186. package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/readBlob.js +15 -0
  187. package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/resolveConfig.js +61 -0
  188. package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/speedometer.js +55 -0
  189. package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/spread.js +28 -0
  190. package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/throttle.js +44 -0
  191. package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/toFormData.js +223 -0
  192. package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/toURLEncodedForm.js +19 -0
  193. package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/trackStream.js +87 -0
  194. package/dist/node_modules/gigachat/node_modules/axios/lib/helpers/validator.js +99 -0
  195. package/dist/node_modules/gigachat/node_modules/axios/lib/platform/browser/classes/Blob.js +3 -0
  196. package/dist/node_modules/gigachat/node_modules/axios/lib/platform/browser/classes/FormData.js +3 -0
  197. package/dist/node_modules/gigachat/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js +4 -0
  198. package/dist/node_modules/gigachat/node_modules/axios/lib/platform/browser/index.js +13 -0
  199. package/dist/node_modules/gigachat/node_modules/axios/lib/platform/common/utils.js +51 -0
  200. package/dist/node_modules/gigachat/node_modules/axios/lib/platform/index.js +7 -0
  201. package/dist/node_modules/gigachat/node_modules/axios/lib/platform/node/classes/FormData.js +3 -0
  202. package/dist/node_modules/gigachat/node_modules/axios/lib/platform/node/classes/URLSearchParams.js +4 -0
  203. package/dist/node_modules/gigachat/node_modules/axios/lib/platform/node/index.js +38 -0
  204. package/dist/node_modules/gigachat/node_modules/axios/lib/utils.js +863 -0
  205. package/dist/node_modules/gigachat/node_modules/axios/package.json +220 -0
  206. package/dist/node_modules/gigachat/node_modules/es-define-property/.eslintrc +13 -0
  207. package/dist/node_modules/gigachat/node_modules/es-define-property/.github/FUNDING.yml +12 -0
  208. package/dist/node_modules/gigachat/node_modules/es-define-property/.nycrc +9 -0
  209. package/dist/node_modules/gigachat/node_modules/es-define-property/index.d.ts +3 -0
  210. package/dist/node_modules/gigachat/node_modules/es-define-property/index.js +14 -0
  211. package/dist/node_modules/gigachat/node_modules/es-define-property/package.json +81 -0
  212. package/dist/node_modules/gigachat/node_modules/es-define-property/test/index.js +56 -0
  213. package/dist/node_modules/gigachat/node_modules/es-object-atoms/.eslintrc +16 -0
  214. package/dist/node_modules/gigachat/node_modules/es-object-atoms/.github/FUNDING.yml +12 -0
  215. package/dist/node_modules/gigachat/node_modules/es-object-atoms/RequireObjectCoercible.d.ts +3 -0
  216. package/dist/node_modules/gigachat/node_modules/es-object-atoms/RequireObjectCoercible.js +11 -0
  217. package/dist/node_modules/gigachat/node_modules/es-object-atoms/ToObject.d.ts +7 -0
  218. package/dist/node_modules/gigachat/node_modules/es-object-atoms/ToObject.js +10 -0
  219. package/dist/node_modules/gigachat/node_modules/es-object-atoms/index.d.ts +3 -0
  220. package/dist/node_modules/gigachat/node_modules/es-object-atoms/index.js +4 -0
  221. package/dist/node_modules/gigachat/node_modules/es-object-atoms/isObject.d.ts +3 -0
  222. package/dist/node_modules/gigachat/node_modules/es-object-atoms/isObject.js +6 -0
  223. package/dist/node_modules/gigachat/node_modules/es-object-atoms/package.json +80 -0
  224. package/dist/node_modules/gigachat/node_modules/es-object-atoms/test/index.js +38 -0
  225. package/dist/node_modules/gigachat/node_modules/es-set-tostringtag/.eslintrc +13 -0
  226. package/dist/node_modules/gigachat/node_modules/es-set-tostringtag/.nycrc +9 -0
  227. package/dist/node_modules/gigachat/node_modules/es-set-tostringtag/index.d.ts +10 -0
  228. package/dist/node_modules/gigachat/node_modules/es-set-tostringtag/index.js +35 -0
  229. package/dist/node_modules/gigachat/node_modules/es-set-tostringtag/package.json +78 -0
  230. package/dist/node_modules/gigachat/node_modules/es-set-tostringtag/test/index.js +85 -0
  231. package/dist/node_modules/gigachat/node_modules/follow-redirects/debug.js +15 -0
  232. package/dist/node_modules/gigachat/node_modules/follow-redirects/http.js +1 -0
  233. package/dist/node_modules/gigachat/node_modules/follow-redirects/https.js +1 -0
  234. package/dist/node_modules/gigachat/node_modules/follow-redirects/index.js +686 -0
  235. package/dist/node_modules/gigachat/node_modules/follow-redirects/package.json +58 -0
  236. package/dist/node_modules/gigachat/node_modules/form-data/License +19 -0
  237. package/dist/node_modules/gigachat/node_modules/form-data/index.d.ts +62 -0
  238. package/dist/node_modules/gigachat/node_modules/form-data/lib/browser.js +4 -0
  239. package/dist/node_modules/gigachat/node_modules/form-data/lib/form_data.js +494 -0
  240. package/dist/node_modules/gigachat/node_modules/form-data/lib/populate.js +10 -0
  241. package/dist/node_modules/gigachat/node_modules/form-data/package.json +82 -0
  242. package/dist/node_modules/gigachat/node_modules/get-intrinsic/.eslintrc +42 -0
  243. package/dist/node_modules/gigachat/node_modules/get-intrinsic/.github/FUNDING.yml +12 -0
  244. package/dist/node_modules/gigachat/node_modules/get-intrinsic/.nycrc +9 -0
  245. package/dist/node_modules/gigachat/node_modules/get-intrinsic/index.js +378 -0
  246. package/dist/node_modules/gigachat/node_modules/get-intrinsic/node_modules/has-symbols/.eslintrc +11 -0
  247. package/dist/node_modules/gigachat/node_modules/get-intrinsic/node_modules/has-symbols/.github/FUNDING.yml +12 -0
  248. package/dist/node_modules/gigachat/node_modules/get-intrinsic/node_modules/has-symbols/.nycrc +9 -0
  249. package/dist/node_modules/gigachat/node_modules/get-intrinsic/node_modules/has-symbols/index.d.ts +3 -0
  250. package/dist/node_modules/gigachat/node_modules/get-intrinsic/node_modules/has-symbols/index.js +14 -0
  251. package/dist/node_modules/gigachat/node_modules/get-intrinsic/node_modules/has-symbols/package.json +111 -0
  252. package/dist/node_modules/gigachat/node_modules/get-intrinsic/node_modules/has-symbols/shams.d.ts +3 -0
  253. package/dist/node_modules/gigachat/node_modules/get-intrinsic/node_modules/has-symbols/shams.js +45 -0
  254. package/dist/node_modules/gigachat/node_modules/get-intrinsic/node_modules/has-symbols/test/index.js +22 -0
  255. package/dist/node_modules/gigachat/node_modules/get-intrinsic/node_modules/has-symbols/test/shams/core-js.js +29 -0
  256. package/dist/node_modules/gigachat/node_modules/get-intrinsic/node_modules/has-symbols/test/shams/get-own-property-symbols.js +29 -0
  257. package/dist/node_modules/gigachat/node_modules/get-intrinsic/node_modules/has-symbols/test/tests.js +58 -0
  258. package/dist/node_modules/gigachat/node_modules/get-intrinsic/package.json +97 -0
  259. package/dist/node_modules/gigachat/node_modules/get-intrinsic/test/GetIntrinsic.js +274 -0
  260. package/dist/node_modules/gigachat/node_modules/gopd/.eslintrc +16 -0
  261. package/dist/node_modules/gigachat/node_modules/gopd/.github/FUNDING.yml +12 -0
  262. package/dist/node_modules/gigachat/node_modules/gopd/gOPD.d.ts +1 -0
  263. package/dist/node_modules/gigachat/node_modules/gopd/gOPD.js +4 -0
  264. package/dist/node_modules/gigachat/node_modules/gopd/index.d.ts +5 -0
  265. package/dist/node_modules/gigachat/node_modules/gopd/index.js +15 -0
  266. package/dist/node_modules/gigachat/node_modules/gopd/package.json +77 -0
  267. package/dist/node_modules/gigachat/node_modules/gopd/test/index.js +36 -0
  268. package/dist/node_modules/gigachat/node_modules/has-tostringtag/.eslintrc +5 -0
  269. package/dist/node_modules/gigachat/node_modules/has-tostringtag/.github/FUNDING.yml +12 -0
  270. package/dist/node_modules/gigachat/node_modules/has-tostringtag/.nycrc +13 -0
  271. package/dist/node_modules/gigachat/node_modules/has-tostringtag/index.d.ts +3 -0
  272. package/dist/node_modules/gigachat/node_modules/has-tostringtag/index.js +8 -0
  273. package/dist/node_modules/gigachat/node_modules/has-tostringtag/package.json +108 -0
  274. package/dist/node_modules/gigachat/node_modules/has-tostringtag/shams.d.ts +3 -0
  275. package/dist/node_modules/gigachat/node_modules/has-tostringtag/shams.js +8 -0
  276. package/dist/node_modules/gigachat/node_modules/has-tostringtag/test/index.js +21 -0
  277. package/dist/node_modules/gigachat/node_modules/has-tostringtag/test/shams/core-js.js +31 -0
  278. package/dist/node_modules/gigachat/node_modules/has-tostringtag/test/shams/get-own-property-symbols.js +30 -0
  279. package/dist/node_modules/gigachat/node_modules/has-tostringtag/test/tests.js +15 -0
  280. package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/index.d.ts +15 -0
  281. package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/index.js +31 -0
  282. package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/max.d.ts +2 -0
  283. package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/max.js +3 -0
  284. package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/md5.d.ts +4 -0
  285. package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/md5.js +13 -0
  286. package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/native.d.ts +6 -0
  287. package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/native.js +4 -0
  288. package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/nil.d.ts +2 -0
  289. package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/nil.js +3 -0
  290. package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/package.json +1 -0
  291. package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/parse.d.ts +2 -0
  292. package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/parse.js +11 -0
  293. package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/regex.d.ts +2 -0
  294. package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/regex.js +3 -0
  295. package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/rng.d.ts +1 -0
  296. package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/rng.js +13 -0
  297. package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/sha1.d.ts +4 -0
  298. package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/sha1.js +13 -0
  299. package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/stringify.d.ts +3 -0
  300. package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/stringify.js +39 -0
  301. package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/types.d.ts +21 -0
  302. package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/types.js +2 -0
  303. package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/uuid-bin.d.ts +1 -0
  304. package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/uuid-bin.js +72 -0
  305. package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/v1.d.ts +11 -0
  306. package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/v1.js +87 -0
  307. package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/v1ToV6.d.ts +2 -0
  308. package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/v1ToV6.js +13 -0
  309. package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/v3.d.ts +9 -0
  310. package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/v3.js +14 -0
  311. package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/v35.d.ts +7 -0
  312. package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/v35.js +41 -0
  313. package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/v4.d.ts +4 -0
  314. package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/v4.js +29 -0
  315. package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/v5.d.ts +9 -0
  316. package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/v5.js +14 -0
  317. package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/v6.d.ts +4 -0
  318. package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/v6.js +19 -0
  319. package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/v6ToV1.d.ts +2 -0
  320. package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/v6ToV1.js +13 -0
  321. package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/v7.d.ts +9 -0
  322. package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/v7.js +69 -0
  323. package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/validate.d.ts +2 -0
  324. package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/validate.js +7 -0
  325. package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/version.d.ts +2 -0
  326. package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs/version.js +10 -0
  327. package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/index.d.ts +15 -0
  328. package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/index.js +31 -0
  329. package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/max.d.ts +2 -0
  330. package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/max.js +3 -0
  331. package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/md5.d.ts +2 -0
  332. package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/md5.js +137 -0
  333. package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/native.d.ts +4 -0
  334. package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/native.js +4 -0
  335. package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/nil.d.ts +2 -0
  336. package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/nil.js +3 -0
  337. package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/package.json +1 -0
  338. package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/parse.d.ts +2 -0
  339. package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/parse.js +11 -0
  340. package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/regex.d.ts +2 -0
  341. package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/regex.js +3 -0
  342. package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/rng.d.ts +1 -0
  343. package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/rng.js +14 -0
  344. package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/sha1.d.ts +2 -0
  345. package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/sha1.js +72 -0
  346. package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/stringify.d.ts +3 -0
  347. package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/stringify.js +39 -0
  348. package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/types.d.ts +21 -0
  349. package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/types.js +2 -0
  350. package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/uuid-bin.d.ts +1 -0
  351. package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/uuid-bin.js +72 -0
  352. package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/v1.d.ts +11 -0
  353. package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/v1.js +87 -0
  354. package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/v1ToV6.d.ts +2 -0
  355. package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/v1ToV6.js +13 -0
  356. package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/v3.d.ts +9 -0
  357. package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/v3.js +14 -0
  358. package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/v35.d.ts +7 -0
  359. package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/v35.js +41 -0
  360. package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/v4.d.ts +4 -0
  361. package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/v4.js +29 -0
  362. package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/v5.d.ts +9 -0
  363. package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/v5.js +14 -0
  364. package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/v6.d.ts +4 -0
  365. package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/v6.js +19 -0
  366. package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/v6ToV1.d.ts +2 -0
  367. package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/v6ToV1.js +13 -0
  368. package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/v7.d.ts +9 -0
  369. package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/v7.js +69 -0
  370. package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/validate.d.ts +2 -0
  371. package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/validate.js +7 -0
  372. package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/version.d.ts +2 -0
  373. package/dist/node_modules/gigachat/node_modules/uuid/dist/cjs-browser/version.js +10 -0
  374. package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/bin/uuid +2 -0
  375. package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/index.d.ts +15 -0
  376. package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/index.js +14 -0
  377. package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/max.d.ts +2 -0
  378. package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/max.js +1 -0
  379. package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/md5.d.ts +4 -0
  380. package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/md5.js +11 -0
  381. package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/native.d.ts +6 -0
  382. package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/native.js +2 -0
  383. package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/nil.d.ts +2 -0
  384. package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/nil.js +1 -0
  385. package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/parse.d.ts +2 -0
  386. package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/parse.js +9 -0
  387. package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/regex.d.ts +2 -0
  388. package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/regex.js +1 -0
  389. package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/rng.d.ts +1 -0
  390. package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/rng.js +10 -0
  391. package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/sha1.d.ts +4 -0
  392. package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/sha1.js +11 -0
  393. package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/stringify.d.ts +3 -0
  394. package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/stringify.js +35 -0
  395. package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/types.d.ts +21 -0
  396. package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/types.js +1 -0
  397. package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/uuid-bin.d.ts +1 -0
  398. package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/uuid-bin.js +70 -0
  399. package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/v1.d.ts +11 -0
  400. package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/v1.js +83 -0
  401. package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/v1ToV6.d.ts +2 -0
  402. package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/v1ToV6.js +10 -0
  403. package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/v3.d.ts +9 -0
  404. package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/v3.js +9 -0
  405. package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/v35.d.ts +7 -0
  406. package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/v35.js +36 -0
  407. package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/v4.d.ts +4 -0
  408. package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/v4.js +27 -0
  409. package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/v5.d.ts +9 -0
  410. package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/v5.js +9 -0
  411. package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/v6.d.ts +4 -0
  412. package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/v6.js +17 -0
  413. package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/v6ToV1.d.ts +2 -0
  414. package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/v6ToV1.js +10 -0
  415. package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/v7.d.ts +9 -0
  416. package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/v7.js +65 -0
  417. package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/validate.d.ts +2 -0
  418. package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/validate.js +5 -0
  419. package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/version.d.ts +2 -0
  420. package/dist/node_modules/gigachat/node_modules/uuid/dist/esm/version.js +8 -0
  421. package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/index.d.ts +15 -0
  422. package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/index.js +14 -0
  423. package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/max.d.ts +2 -0
  424. package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/max.js +1 -0
  425. package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/md5.d.ts +2 -0
  426. package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/md5.js +135 -0
  427. package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/native.d.ts +4 -0
  428. package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/native.js +2 -0
  429. package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/nil.d.ts +2 -0
  430. package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/nil.js +1 -0
  431. package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/parse.d.ts +2 -0
  432. package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/parse.js +9 -0
  433. package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/regex.d.ts +2 -0
  434. package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/regex.js +1 -0
  435. package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/rng.d.ts +1 -0
  436. package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/rng.js +11 -0
  437. package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/sha1.d.ts +2 -0
  438. package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/sha1.js +70 -0
  439. package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/stringify.d.ts +3 -0
  440. package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/stringify.js +35 -0
  441. package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/types.d.ts +21 -0
  442. package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/types.js +1 -0
  443. package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/uuid-bin.d.ts +1 -0
  444. package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/uuid-bin.js +70 -0
  445. package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/v1.d.ts +11 -0
  446. package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/v1.js +83 -0
  447. package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/v1ToV6.d.ts +2 -0
  448. package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/v1ToV6.js +10 -0
  449. package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/v3.d.ts +9 -0
  450. package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/v3.js +9 -0
  451. package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/v35.d.ts +7 -0
  452. package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/v35.js +36 -0
  453. package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/v4.d.ts +4 -0
  454. package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/v4.js +27 -0
  455. package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/v5.d.ts +9 -0
  456. package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/v5.js +9 -0
  457. package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/v6.d.ts +4 -0
  458. package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/v6.js +17 -0
  459. package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/v6ToV1.d.ts +2 -0
  460. package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/v6ToV1.js +10 -0
  461. package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/v7.d.ts +9 -0
  462. package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/v7.js +65 -0
  463. package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/validate.d.ts +2 -0
  464. package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/validate.js +5 -0
  465. package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/version.d.ts +2 -0
  466. package/dist/node_modules/gigachat/node_modules/uuid/dist/esm-browser/version.js +8 -0
  467. package/dist/node_modules/gigachat/node_modules/uuid/package.json +132 -0
  468. package/dist/node_modules/gigachat/package.json +1 -0
  469. package/dist/node_modules/gigachat/settings.d.ts +35 -0
  470. package/dist/node_modules/gigachat/settings.js +27 -0
  471. package/dist/node_modules/gigachat/src/api/get_balance.ts +37 -0
  472. package/dist/node_modules/gigachat/src/api/get_file.ts +40 -0
  473. package/dist/node_modules/gigachat/src/api/get_files.ts +39 -0
  474. package/dist/node_modules/gigachat/src/api/get_image.ts +40 -0
  475. package/dist/node_modules/gigachat/src/api/get_model.ts +37 -0
  476. package/dist/node_modules/gigachat/src/api/get_models.ts +36 -0
  477. package/dist/node_modules/gigachat/src/api/index.ts +15 -0
  478. package/dist/node_modules/gigachat/src/api/post_ai_check.ts +42 -0
  479. package/dist/node_modules/gigachat/src/api/post_auth.ts +56 -0
  480. package/dist/node_modules/gigachat/src/api/post_chat.ts +43 -0
  481. package/dist/node_modules/gigachat/src/api/post_embeddings.ts +42 -0
  482. package/dist/node_modules/gigachat/src/api/post_files.ts +46 -0
  483. package/dist/node_modules/gigachat/src/api/post_files_delete.ts +41 -0
  484. package/dist/node_modules/gigachat/src/api/post_token.ts +42 -0
  485. package/dist/node_modules/gigachat/src/api/post_tokens_count.ts +44 -0
  486. package/dist/node_modules/gigachat/src/api/stream_chat.ts +164 -0
  487. package/dist/node_modules/gigachat/src/api/utils.ts +66 -0
  488. package/dist/node_modules/gigachat/src/constants.ts +3 -0
  489. package/dist/node_modules/gigachat/src/exceptions.ts +25 -0
  490. package/dist/node_modules/gigachat/src/index.ts +389 -0
  491. package/dist/node_modules/gigachat/src/interfaces/access_token.ts +9 -0
  492. package/dist/node_modules/gigachat/src/interfaces/ai_check_result.ts +16 -0
  493. package/dist/node_modules/gigachat/src/interfaces/balance.ts +11 -0
  494. package/dist/node_modules/gigachat/src/interfaces/chat.ts +46 -0
  495. package/dist/node_modules/gigachat/src/interfaces/chat_completion.ts +21 -0
  496. package/dist/node_modules/gigachat/src/interfaces/chat_completion_chunk.ts +17 -0
  497. package/dist/node_modules/gigachat/src/interfaces/chat_function_call.ts +11 -0
  498. package/dist/node_modules/gigachat/src/interfaces/choices.ts +14 -0
  499. package/dist/node_modules/gigachat/src/interfaces/choices_chunk.ts +14 -0
  500. package/dist/node_modules/gigachat/src/interfaces/deleted_file.ts +8 -0
  501. package/dist/node_modules/gigachat/src/interfaces/embedding.ts +17 -0
  502. package/dist/node_modules/gigachat/src/interfaces/embeddings.ts +14 -0
  503. package/dist/node_modules/gigachat/src/interfaces/embeddings_usage.ts +6 -0
  504. package/dist/node_modules/gigachat/src/interfaces/few_shot_example.ts +9 -0
  505. package/dist/node_modules/gigachat/src/interfaces/function.ts +21 -0
  506. package/dist/node_modules/gigachat/src/interfaces/function_call.ts +9 -0
  507. package/dist/node_modules/gigachat/src/interfaces/function_parameters.ts +14 -0
  508. package/dist/node_modules/gigachat/src/interfaces/function_parameters_property.ts +18 -0
  509. package/dist/node_modules/gigachat/src/interfaces/image.ts +6 -0
  510. package/dist/node_modules/gigachat/src/interfaces/index.ts +30 -0
  511. package/dist/node_modules/gigachat/src/interfaces/message.ts +30 -0
  512. package/dist/node_modules/gigachat/src/interfaces/message_chunk.ts +15 -0
  513. package/dist/node_modules/gigachat/src/interfaces/message_role.ts +7 -0
  514. package/dist/node_modules/gigachat/src/interfaces/model.ts +12 -0
  515. package/dist/node_modules/gigachat/src/interfaces/models.ts +11 -0
  516. package/dist/node_modules/gigachat/src/interfaces/token.ts +9 -0
  517. package/dist/node_modules/gigachat/src/interfaces/tokens_count.ts +16 -0
  518. package/dist/node_modules/gigachat/src/interfaces/uploaded_file.ts +24 -0
  519. package/dist/node_modules/gigachat/src/interfaces/uploaded_files.ts +8 -0
  520. package/dist/node_modules/gigachat/src/interfaces/usage.ts +10 -0
  521. package/dist/node_modules/gigachat/src/interfaces/with_x_headers.ts +5 -0
  522. package/dist/node_modules/gigachat/src/settings.ts +71 -0
  523. package/dist/node_modules/langchain-gigachat/LICENSE +21 -0
  524. package/dist/node_modules/langchain-gigachat/chat_models.cjs +1 -0
  525. package/dist/node_modules/langchain-gigachat/chat_models.d.cts +1 -0
  526. package/dist/node_modules/langchain-gigachat/chat_models.d.ts +1 -0
  527. package/dist/node_modules/langchain-gigachat/chat_models.js +1 -0
  528. package/dist/node_modules/langchain-gigachat/dist/chat_models.cjs +628 -0
  529. package/dist/node_modules/langchain-gigachat/dist/chat_models.d.ts +126 -0
  530. package/dist/node_modules/langchain-gigachat/dist/chat_models.js +624 -0
  531. package/dist/node_modules/langchain-gigachat/dist/embeddings.cjs +153 -0
  532. package/dist/node_modules/langchain-gigachat/dist/embeddings.d.ts +77 -0
  533. package/dist/node_modules/langchain-gigachat/dist/embeddings.js +149 -0
  534. package/dist/node_modules/langchain-gigachat/dist/index.cjs +18 -0
  535. package/dist/node_modules/langchain-gigachat/dist/index.d.ts +2 -0
  536. package/dist/node_modules/langchain-gigachat/dist/index.js +2 -0
  537. package/dist/node_modules/langchain-gigachat/embeddings.cjs +1 -0
  538. package/dist/node_modules/langchain-gigachat/embeddings.d.cts +1 -0
  539. package/dist/node_modules/langchain-gigachat/embeddings.d.ts +1 -0
  540. package/dist/node_modules/langchain-gigachat/embeddings.js +1 -0
  541. package/dist/node_modules/langchain-gigachat/index.cjs +7 -0
  542. package/dist/node_modules/langchain-gigachat/index.d.cts +1 -0
  543. package/dist/node_modules/langchain-gigachat/index.d.ts +1 -0
  544. package/dist/node_modules/langchain-gigachat/index.js +1 -0
  545. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/index.d.ts +15 -0
  546. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/index.js +31 -0
  547. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/max.d.ts +2 -0
  548. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/max.js +3 -0
  549. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/md5.d.ts +4 -0
  550. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/md5.js +13 -0
  551. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/native.d.ts +6 -0
  552. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/native.js +4 -0
  553. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/nil.d.ts +2 -0
  554. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/nil.js +3 -0
  555. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/package.json +1 -0
  556. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/parse.d.ts +2 -0
  557. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/parse.js +11 -0
  558. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/regex.d.ts +2 -0
  559. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/regex.js +3 -0
  560. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/rng.d.ts +1 -0
  561. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/rng.js +13 -0
  562. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/sha1.d.ts +4 -0
  563. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/sha1.js +13 -0
  564. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/stringify.d.ts +3 -0
  565. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/stringify.js +39 -0
  566. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/types.d.ts +21 -0
  567. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/types.js +2 -0
  568. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/uuid-bin.d.ts +1 -0
  569. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/uuid-bin.js +72 -0
  570. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/v1.d.ts +11 -0
  571. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/v1.js +87 -0
  572. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/v1ToV6.d.ts +2 -0
  573. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/v1ToV6.js +13 -0
  574. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/v3.d.ts +9 -0
  575. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/v3.js +14 -0
  576. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/v35.d.ts +7 -0
  577. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/v35.js +41 -0
  578. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/v4.d.ts +4 -0
  579. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/v4.js +29 -0
  580. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/v5.d.ts +9 -0
  581. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/v5.js +14 -0
  582. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/v6.d.ts +4 -0
  583. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/v6.js +19 -0
  584. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/v6ToV1.d.ts +2 -0
  585. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/v6ToV1.js +13 -0
  586. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/v7.d.ts +9 -0
  587. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/v7.js +69 -0
  588. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/validate.d.ts +2 -0
  589. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/validate.js +7 -0
  590. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/version.d.ts +2 -0
  591. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs/version.js +10 -0
  592. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/index.d.ts +15 -0
  593. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/index.js +31 -0
  594. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/max.d.ts +2 -0
  595. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/max.js +3 -0
  596. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/md5.d.ts +2 -0
  597. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/md5.js +137 -0
  598. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/native.d.ts +4 -0
  599. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/native.js +4 -0
  600. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/nil.d.ts +2 -0
  601. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/nil.js +3 -0
  602. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/package.json +1 -0
  603. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/parse.d.ts +2 -0
  604. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/parse.js +11 -0
  605. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/regex.d.ts +2 -0
  606. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/regex.js +3 -0
  607. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/rng.d.ts +1 -0
  608. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/rng.js +14 -0
  609. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/sha1.d.ts +2 -0
  610. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/sha1.js +72 -0
  611. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/stringify.d.ts +3 -0
  612. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/stringify.js +39 -0
  613. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/types.d.ts +21 -0
  614. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/types.js +2 -0
  615. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/uuid-bin.d.ts +1 -0
  616. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/uuid-bin.js +72 -0
  617. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/v1.d.ts +11 -0
  618. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/v1.js +87 -0
  619. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/v1ToV6.d.ts +2 -0
  620. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/v1ToV6.js +13 -0
  621. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/v3.d.ts +9 -0
  622. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/v3.js +14 -0
  623. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/v35.d.ts +7 -0
  624. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/v35.js +41 -0
  625. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/v4.d.ts +4 -0
  626. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/v4.js +29 -0
  627. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/v5.d.ts +9 -0
  628. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/v5.js +14 -0
  629. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/v6.d.ts +4 -0
  630. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/v6.js +19 -0
  631. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/v6ToV1.d.ts +2 -0
  632. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/v6ToV1.js +13 -0
  633. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/v7.d.ts +9 -0
  634. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/v7.js +69 -0
  635. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/validate.d.ts +2 -0
  636. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/validate.js +7 -0
  637. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/version.d.ts +2 -0
  638. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/cjs-browser/version.js +10 -0
  639. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/bin/uuid +2 -0
  640. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/index.d.ts +15 -0
  641. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/index.js +14 -0
  642. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/max.d.ts +2 -0
  643. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/max.js +1 -0
  644. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/md5.d.ts +4 -0
  645. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/md5.js +11 -0
  646. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/native.d.ts +6 -0
  647. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/native.js +2 -0
  648. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/nil.d.ts +2 -0
  649. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/nil.js +1 -0
  650. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/parse.d.ts +2 -0
  651. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/parse.js +9 -0
  652. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/regex.d.ts +2 -0
  653. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/regex.js +1 -0
  654. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/rng.d.ts +1 -0
  655. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/rng.js +10 -0
  656. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/sha1.d.ts +4 -0
  657. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/sha1.js +11 -0
  658. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/stringify.d.ts +3 -0
  659. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/stringify.js +35 -0
  660. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/types.d.ts +21 -0
  661. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/types.js +1 -0
  662. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/uuid-bin.d.ts +1 -0
  663. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/uuid-bin.js +70 -0
  664. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/v1.d.ts +11 -0
  665. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/v1.js +83 -0
  666. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/v1ToV6.d.ts +2 -0
  667. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/v1ToV6.js +10 -0
  668. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/v3.d.ts +9 -0
  669. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/v3.js +9 -0
  670. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/v35.d.ts +7 -0
  671. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/v35.js +36 -0
  672. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/v4.d.ts +4 -0
  673. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/v4.js +27 -0
  674. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/v5.d.ts +9 -0
  675. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/v5.js +9 -0
  676. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/v6.d.ts +4 -0
  677. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/v6.js +17 -0
  678. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/v6ToV1.d.ts +2 -0
  679. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/v6ToV1.js +10 -0
  680. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/v7.d.ts +9 -0
  681. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/v7.js +65 -0
  682. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/validate.d.ts +2 -0
  683. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/validate.js +5 -0
  684. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/version.d.ts +2 -0
  685. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm/version.js +8 -0
  686. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/index.d.ts +15 -0
  687. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/index.js +14 -0
  688. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/max.d.ts +2 -0
  689. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/max.js +1 -0
  690. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/md5.d.ts +2 -0
  691. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/md5.js +135 -0
  692. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/native.d.ts +4 -0
  693. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/native.js +2 -0
  694. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/nil.d.ts +2 -0
  695. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/nil.js +1 -0
  696. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/parse.d.ts +2 -0
  697. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/parse.js +9 -0
  698. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/regex.d.ts +2 -0
  699. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/regex.js +1 -0
  700. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/rng.d.ts +1 -0
  701. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/rng.js +11 -0
  702. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/sha1.d.ts +2 -0
  703. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/sha1.js +70 -0
  704. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/stringify.d.ts +3 -0
  705. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/stringify.js +35 -0
  706. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/types.d.ts +21 -0
  707. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/types.js +1 -0
  708. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/uuid-bin.d.ts +1 -0
  709. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/uuid-bin.js +70 -0
  710. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/v1.d.ts +11 -0
  711. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/v1.js +83 -0
  712. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/v1ToV6.d.ts +2 -0
  713. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/v1ToV6.js +10 -0
  714. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/v3.d.ts +9 -0
  715. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/v3.js +9 -0
  716. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/v35.d.ts +7 -0
  717. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/v35.js +36 -0
  718. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/v4.d.ts +4 -0
  719. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/v4.js +27 -0
  720. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/v5.d.ts +9 -0
  721. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/v5.js +9 -0
  722. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/v6.d.ts +4 -0
  723. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/v6.js +17 -0
  724. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/v6ToV1.d.ts +2 -0
  725. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/v6ToV1.js +10 -0
  726. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/v7.d.ts +9 -0
  727. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/v7.js +65 -0
  728. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/validate.d.ts +2 -0
  729. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/validate.js +5 -0
  730. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/version.d.ts +2 -0
  731. package/dist/node_modules/langchain-gigachat/node_modules/uuid/dist/esm-browser/version.js +8 -0
  732. package/dist/node_modules/langchain-gigachat/node_modules/uuid/package.json +132 -0
  733. package/dist/node_modules/langchain-gigachat/node_modules/zod/index.cjs +33 -0
  734. package/dist/node_modules/langchain-gigachat/node_modules/zod/index.d.cts +4 -0
  735. package/dist/node_modules/langchain-gigachat/node_modules/zod/index.d.ts +4 -0
  736. package/dist/node_modules/langchain-gigachat/node_modules/zod/index.js +4 -0
  737. package/dist/node_modules/langchain-gigachat/node_modules/zod/package.json +118 -0
  738. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/index.ts +4 -0
  739. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/ZodError.ts +330 -0
  740. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/benchmarks/datetime.ts +58 -0
  741. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/benchmarks/discriminatedUnion.ts +80 -0
  742. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/benchmarks/index.ts +59 -0
  743. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/benchmarks/ipv4.ts +57 -0
  744. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/benchmarks/object.ts +69 -0
  745. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/benchmarks/primitives.ts +162 -0
  746. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/benchmarks/realworld.ts +63 -0
  747. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/benchmarks/string.ts +55 -0
  748. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/benchmarks/union.ts +80 -0
  749. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/errors.ts +13 -0
  750. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/external.ts +6 -0
  751. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/helpers/enumUtil.ts +17 -0
  752. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/helpers/errorUtil.ts +8 -0
  753. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/helpers/parseUtil.ts +176 -0
  754. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/helpers/partialUtil.ts +34 -0
  755. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/helpers/typeAliases.ts +2 -0
  756. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/helpers/util.ts +224 -0
  757. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/index.ts +4 -0
  758. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/locales/en.ts +124 -0
  759. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/standard-schema.ts +113 -0
  760. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/tests/Mocker.ts +54 -0
  761. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/tests/all-errors.test.ts +157 -0
  762. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/tests/anyunknown.test.ts +28 -0
  763. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/tests/array.test.ts +71 -0
  764. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/tests/async-parsing.test.ts +388 -0
  765. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/tests/async-refinements.test.ts +46 -0
  766. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/tests/base.test.ts +29 -0
  767. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/tests/bigint.test.ts +55 -0
  768. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/tests/branded.test.ts +53 -0
  769. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/tests/catch.test.ts +220 -0
  770. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/tests/coerce.test.ts +133 -0
  771. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/tests/complex.test.ts +56 -0
  772. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/tests/custom.test.ts +31 -0
  773. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/tests/date.test.ts +32 -0
  774. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/tests/deepmasking.test.ts +186 -0
  775. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/tests/default.test.ts +112 -0
  776. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/tests/description.test.ts +33 -0
  777. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/tests/discriminated-unions.test.ts +315 -0
  778. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/tests/enum.test.ts +80 -0
  779. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/tests/error.test.ts +551 -0
  780. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/tests/firstparty.test.ts +87 -0
  781. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/tests/firstpartyschematypes.test.ts +21 -0
  782. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/tests/function.test.ts +257 -0
  783. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/tests/generics.test.ts +48 -0
  784. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/tests/instanceof.test.ts +37 -0
  785. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/tests/intersection.test.ts +110 -0
  786. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/tests/language-server.source.ts +76 -0
  787. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/tests/language-server.test.ts +207 -0
  788. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/tests/literal.test.ts +36 -0
  789. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/tests/map.test.ts +110 -0
  790. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/tests/masking.test.ts +4 -0
  791. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/tests/mocker.test.ts +19 -0
  792. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/tests/nan.test.ts +21 -0
  793. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/tests/nativeEnum.test.ts +87 -0
  794. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/tests/nullable.test.ts +42 -0
  795. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/tests/number.test.ts +176 -0
  796. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/tests/object-augmentation.test.ts +29 -0
  797. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/tests/object-in-es5-env.test.ts +29 -0
  798. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/tests/object.test.ts +434 -0
  799. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/tests/optional.test.ts +42 -0
  800. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/tests/parseUtil.test.ts +23 -0
  801. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/tests/parser.test.ts +41 -0
  802. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/tests/partials.test.ts +243 -0
  803. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/tests/pickomit.test.ts +111 -0
  804. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/tests/pipeline.test.ts +29 -0
  805. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/tests/preprocess.test.ts +186 -0
  806. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/tests/primitive.test.ts +440 -0
  807. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/tests/promise.test.ts +90 -0
  808. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/tests/readonly.test.ts +194 -0
  809. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/tests/record.test.ts +171 -0
  810. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/tests/recursive.test.ts +197 -0
  811. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/tests/refine.test.ts +313 -0
  812. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/tests/safeparse.test.ts +27 -0
  813. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/tests/set.test.ts +142 -0
  814. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/tests/standard-schema.test.ts +83 -0
  815. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/tests/string.test.ts +916 -0
  816. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/tests/transformer.test.ts +233 -0
  817. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/tests/tuple.test.ts +90 -0
  818. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/tests/unions.test.ts +57 -0
  819. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/tests/validations.test.ts +133 -0
  820. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/tests/void.test.ts +15 -0
  821. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v3/types.ts +5136 -0
  822. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/checks.ts +30 -0
  823. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/coerce.ts +27 -0
  824. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/compat.ts +66 -0
  825. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/errors.ts +75 -0
  826. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/external.ts +50 -0
  827. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/index.ts +5 -0
  828. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/iso.ts +90 -0
  829. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/parse.ts +33 -0
  830. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/schemas.ts +2054 -0
  831. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/tests/anyunknown.test.ts +26 -0
  832. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/tests/array.test.ts +264 -0
  833. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/tests/assignability.test.ts +210 -0
  834. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/tests/async-parsing.test.ts +381 -0
  835. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/tests/async-refinements.test.ts +68 -0
  836. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/tests/base.test.ts +7 -0
  837. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/tests/bigint.test.ts +54 -0
  838. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/tests/brand.test.ts +63 -0
  839. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/tests/catch.test.ts +252 -0
  840. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/tests/coalesce.test.ts +20 -0
  841. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/tests/coerce.test.ts +160 -0
  842. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/tests/continuability.test.ts +352 -0
  843. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/tests/custom.test.ts +40 -0
  844. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/tests/date.test.ts +31 -0
  845. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/tests/datetime.test.ts +296 -0
  846. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/tests/default.test.ts +313 -0
  847. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/tests/description.test.ts +32 -0
  848. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +619 -0
  849. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/tests/enum.test.ts +285 -0
  850. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +527 -0
  851. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/tests/error.test.ts +711 -0
  852. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/tests/file.test.ts +91 -0
  853. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +175 -0
  854. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/tests/function.test.ts +268 -0
  855. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/tests/generics.test.ts +72 -0
  856. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/tests/index.test.ts +829 -0
  857. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +34 -0
  858. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/tests/intersection.test.ts +171 -0
  859. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/tests/json.test.ts +108 -0
  860. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/tests/lazy.test.ts +227 -0
  861. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/tests/literal.test.ts +92 -0
  862. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/tests/map.test.ts +196 -0
  863. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/tests/nan.test.ts +21 -0
  864. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/tests/nested-refine.test.ts +168 -0
  865. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +86 -0
  866. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/tests/nullable.test.ts +22 -0
  867. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/tests/number.test.ts +247 -0
  868. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/tests/object.test.ts +563 -0
  869. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/tests/optional.test.ts +123 -0
  870. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/tests/partial.test.ts +147 -0
  871. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +127 -0
  872. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/tests/pipe.test.ts +81 -0
  873. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/tests/prefault.test.ts +37 -0
  874. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +298 -0
  875. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/tests/primitive.test.ts +175 -0
  876. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/tests/promise.test.ts +81 -0
  877. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/tests/prototypes.test.ts +23 -0
  878. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/tests/readonly.test.ts +252 -0
  879. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/tests/record.test.ts +342 -0
  880. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +356 -0
  881. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/tests/refine.test.ts +532 -0
  882. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/tests/registries.test.ts +204 -0
  883. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/tests/set.test.ts +179 -0
  884. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +57 -0
  885. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +109 -0
  886. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/tests/string.test.ts +881 -0
  887. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +66 -0
  888. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +758 -0
  889. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +2314 -0
  890. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/tests/transform.test.ts +250 -0
  891. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/tests/tuple.test.ts +163 -0
  892. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/tests/union.test.ts +94 -0
  893. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/tests/validations.test.ts +283 -0
  894. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/classic/tests/void.test.ts +12 -0
  895. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/core/api.ts +1594 -0
  896. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/core/checks.ts +1283 -0
  897. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/core/config.ts +15 -0
  898. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/core/core.ts +134 -0
  899. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/core/doc.ts +44 -0
  900. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/core/errors.ts +424 -0
  901. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/core/function.ts +176 -0
  902. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/core/index.ts +15 -0
  903. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/core/json-schema.ts +143 -0
  904. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/core/parse.ts +94 -0
  905. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/core/regexes.ts +135 -0
  906. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/core/registries.ts +96 -0
  907. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/core/schemas.ts +3842 -0
  908. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/core/standard-schema.ts +64 -0
  909. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/core/tests/index.test.ts +46 -0
  910. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/core/tests/locales/be.test.ts +124 -0
  911. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/core/tests/locales/en.test.ts +22 -0
  912. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/core/tests/locales/ru.test.ts +128 -0
  913. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +69 -0
  914. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/core/to-json-schema.ts +977 -0
  915. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/core/util.ts +775 -0
  916. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/core/versions.ts +5 -0
  917. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/core/zsf.ts +323 -0
  918. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/index.ts +4 -0
  919. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/locales/ar.ts +125 -0
  920. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/locales/az.ts +121 -0
  921. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/locales/be.ts +184 -0
  922. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/locales/ca.ts +127 -0
  923. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/locales/cs.ts +142 -0
  924. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/locales/de.ts +124 -0
  925. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/locales/en.ts +127 -0
  926. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/locales/eo.ts +125 -0
  927. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/locales/es.ts +125 -0
  928. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/locales/fa.ts +134 -0
  929. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/locales/fi.ts +131 -0
  930. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/locales/fr-CA.ts +126 -0
  931. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/locales/fr.ts +124 -0
  932. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/locales/he.ts +125 -0
  933. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/locales/hu.ts +126 -0
  934. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/locales/id.ts +125 -0
  935. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/locales/index.ts +39 -0
  936. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/locales/it.ts +125 -0
  937. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/locales/ja.ts +122 -0
  938. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/locales/kh.ts +126 -0
  939. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/locales/ko.ts +131 -0
  940. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/locales/mk.ts +127 -0
  941. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/locales/ms.ts +124 -0
  942. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/locales/nl.ts +126 -0
  943. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/locales/no.ts +124 -0
  944. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/locales/ota.ts +125 -0
  945. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/locales/pl.ts +126 -0
  946. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/locales/ps.ts +133 -0
  947. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/locales/pt.ts +123 -0
  948. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/locales/ru.ts +184 -0
  949. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/locales/sl.ts +126 -0
  950. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/locales/sv.ts +127 -0
  951. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/locales/ta.ts +125 -0
  952. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/locales/th.ts +126 -0
  953. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/locales/tr.ts +121 -0
  954. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/locales/ua.ts +126 -0
  955. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/locales/ur.ts +126 -0
  956. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/locales/vi.ts +125 -0
  957. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/locales/zh-CN.ts +123 -0
  958. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/locales/zh-TW.ts +125 -0
  959. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/mini/checks.ts +32 -0
  960. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/mini/coerce.ts +22 -0
  961. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/mini/external.ts +40 -0
  962. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/mini/index.ts +3 -0
  963. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/mini/iso.ts +62 -0
  964. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/mini/parse.ts +1 -0
  965. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/mini/schemas.ts +1579 -0
  966. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/mini/tests/assignability.test.ts +129 -0
  967. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/mini/tests/brand.test.ts +51 -0
  968. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/mini/tests/checks.test.ts +144 -0
  969. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/mini/tests/computed.test.ts +36 -0
  970. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/mini/tests/error.test.ts +22 -0
  971. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/mini/tests/functions.test.ts +43 -0
  972. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/mini/tests/index.test.ts +871 -0
  973. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/mini/tests/number.test.ts +95 -0
  974. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/mini/tests/object.test.ts +185 -0
  975. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +43 -0
  976. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +275 -0
  977. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4/mini/tests/string.test.ts +299 -0
  978. package/dist/node_modules/langchain-gigachat/node_modules/zod/src/v4-mini/index.ts +1 -0
  979. package/dist/node_modules/langchain-gigachat/node_modules/zod/v3/ZodError.cjs +138 -0
  980. package/dist/node_modules/langchain-gigachat/node_modules/zod/v3/ZodError.d.cts +164 -0
  981. package/dist/node_modules/langchain-gigachat/node_modules/zod/v3/ZodError.d.ts +164 -0
  982. package/dist/node_modules/langchain-gigachat/node_modules/zod/v3/ZodError.js +133 -0
  983. package/dist/node_modules/langchain-gigachat/node_modules/zod/v3/errors.cjs +17 -0
  984. package/dist/node_modules/langchain-gigachat/node_modules/zod/v3/errors.d.cts +5 -0
  985. package/dist/node_modules/langchain-gigachat/node_modules/zod/v3/errors.d.ts +5 -0
  986. package/dist/node_modules/langchain-gigachat/node_modules/zod/v3/errors.js +9 -0
  987. package/dist/node_modules/langchain-gigachat/node_modules/zod/v3/external.cjs +22 -0
  988. package/dist/node_modules/langchain-gigachat/node_modules/zod/v3/external.d.cts +6 -0
  989. package/dist/node_modules/langchain-gigachat/node_modules/zod/v3/external.d.ts +6 -0
  990. package/dist/node_modules/langchain-gigachat/node_modules/zod/v3/external.js +6 -0
  991. package/dist/node_modules/langchain-gigachat/node_modules/zod/v3/helpers/enumUtil.cjs +2 -0
  992. package/dist/node_modules/langchain-gigachat/node_modules/zod/v3/helpers/enumUtil.d.cts +8 -0
  993. package/dist/node_modules/langchain-gigachat/node_modules/zod/v3/helpers/enumUtil.d.ts +8 -0
  994. package/dist/node_modules/langchain-gigachat/node_modules/zod/v3/helpers/enumUtil.js +1 -0
  995. package/dist/node_modules/langchain-gigachat/node_modules/zod/v3/helpers/errorUtil.cjs +9 -0
  996. package/dist/node_modules/langchain-gigachat/node_modules/zod/v3/helpers/errorUtil.d.cts +9 -0
  997. package/dist/node_modules/langchain-gigachat/node_modules/zod/v3/helpers/errorUtil.d.ts +9 -0
  998. package/dist/node_modules/langchain-gigachat/node_modules/zod/v3/helpers/errorUtil.js +6 -0
  999. package/dist/node_modules/langchain-gigachat/node_modules/zod/v3/helpers/parseUtil.cjs +124 -0
  1000. package/dist/node_modules/langchain-gigachat/node_modules/zod/v3/helpers/parseUtil.d.cts +78 -0
  1001. package/dist/node_modules/langchain-gigachat/node_modules/zod/v3/helpers/parseUtil.d.ts +78 -0
  1002. package/dist/node_modules/langchain-gigachat/node_modules/zod/v3/helpers/parseUtil.js +109 -0
  1003. package/dist/node_modules/langchain-gigachat/node_modules/zod/v3/helpers/partialUtil.cjs +2 -0
  1004. package/dist/node_modules/langchain-gigachat/node_modules/zod/v3/helpers/partialUtil.d.cts +8 -0
  1005. package/dist/node_modules/langchain-gigachat/node_modules/zod/v3/helpers/partialUtil.d.ts +8 -0
  1006. package/dist/node_modules/langchain-gigachat/node_modules/zod/v3/helpers/partialUtil.js +1 -0
  1007. package/dist/node_modules/langchain-gigachat/node_modules/zod/v3/helpers/typeAliases.cjs +2 -0
  1008. package/dist/node_modules/langchain-gigachat/node_modules/zod/v3/helpers/typeAliases.d.cts +2 -0
  1009. package/dist/node_modules/langchain-gigachat/node_modules/zod/v3/helpers/typeAliases.d.ts +2 -0
  1010. package/dist/node_modules/langchain-gigachat/node_modules/zod/v3/helpers/typeAliases.js +1 -0
  1011. package/dist/node_modules/langchain-gigachat/node_modules/zod/v3/helpers/util.cjs +137 -0
  1012. package/dist/node_modules/langchain-gigachat/node_modules/zod/v3/helpers/util.d.cts +85 -0
  1013. package/dist/node_modules/langchain-gigachat/node_modules/zod/v3/helpers/util.d.ts +85 -0
  1014. package/dist/node_modules/langchain-gigachat/node_modules/zod/v3/helpers/util.js +133 -0
  1015. package/dist/node_modules/langchain-gigachat/node_modules/zod/v3/index.cjs +33 -0
  1016. package/dist/node_modules/langchain-gigachat/node_modules/zod/v3/index.d.cts +4 -0
  1017. package/dist/node_modules/langchain-gigachat/node_modules/zod/v3/index.d.ts +4 -0
  1018. package/dist/node_modules/langchain-gigachat/node_modules/zod/v3/index.js +4 -0
  1019. package/dist/node_modules/langchain-gigachat/node_modules/zod/v3/locales/en.cjs +111 -0
  1020. package/dist/node_modules/langchain-gigachat/node_modules/zod/v3/locales/en.d.cts +3 -0
  1021. package/dist/node_modules/langchain-gigachat/node_modules/zod/v3/locales/en.d.ts +3 -0
  1022. package/dist/node_modules/langchain-gigachat/node_modules/zod/v3/locales/en.js +109 -0
  1023. package/dist/node_modules/langchain-gigachat/node_modules/zod/v3/standard-schema.cjs +2 -0
  1024. package/dist/node_modules/langchain-gigachat/node_modules/zod/v3/standard-schema.d.cts +102 -0
  1025. package/dist/node_modules/langchain-gigachat/node_modules/zod/v3/standard-schema.d.ts +102 -0
  1026. package/dist/node_modules/langchain-gigachat/node_modules/zod/v3/standard-schema.js +1 -0
  1027. package/dist/node_modules/langchain-gigachat/node_modules/zod/v3/types.cjs +3775 -0
  1028. package/dist/node_modules/langchain-gigachat/node_modules/zod/v3/types.d.cts +1031 -0
  1029. package/dist/node_modules/langchain-gigachat/node_modules/zod/v3/types.d.ts +1031 -0
  1030. package/dist/node_modules/langchain-gigachat/node_modules/zod/v3/types.js +3693 -0
  1031. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/classic/checks.cjs +32 -0
  1032. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/classic/checks.d.cts +1 -0
  1033. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/classic/checks.d.ts +1 -0
  1034. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/classic/checks.js +1 -0
  1035. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/classic/coerce.cjs +47 -0
  1036. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/classic/coerce.d.cts +17 -0
  1037. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/classic/coerce.d.ts +17 -0
  1038. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/classic/coerce.js +17 -0
  1039. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/classic/compat.cjs +57 -0
  1040. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/classic/compat.d.cts +46 -0
  1041. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/classic/compat.d.ts +46 -0
  1042. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/classic/compat.js +27 -0
  1043. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/classic/errors.cjs +67 -0
  1044. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/classic/errors.d.cts +30 -0
  1045. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/classic/errors.d.ts +30 -0
  1046. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/classic/errors.js +41 -0
  1047. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/classic/external.cjs +70 -0
  1048. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/classic/external.d.cts +13 -0
  1049. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/classic/external.d.ts +13 -0
  1050. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/classic/external.js +18 -0
  1051. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/classic/index.cjs +33 -0
  1052. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/classic/index.d.cts +4 -0
  1053. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/classic/index.d.ts +4 -0
  1054. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/classic/index.js +4 -0
  1055. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/classic/iso.cjs +60 -0
  1056. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/classic/iso.d.cts +22 -0
  1057. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/classic/iso.d.ts +22 -0
  1058. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/classic/iso.js +30 -0
  1059. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/classic/parse.cjs +32 -0
  1060. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/classic/parse.d.cts +23 -0
  1061. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/classic/parse.d.ts +23 -0
  1062. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/classic/parse.js +6 -0
  1063. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/classic/schemas.cjs +1109 -0
  1064. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/classic/schemas.d.cts +630 -0
  1065. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/classic/schemas.d.ts +630 -0
  1066. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/classic/schemas.js +1006 -0
  1067. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/core/api.cjs +1039 -0
  1068. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/core/api.d.cts +284 -0
  1069. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/core/api.d.ts +284 -0
  1070. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/core/api.js +906 -0
  1071. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/core/checks.cjs +591 -0
  1072. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/core/checks.d.cts +278 -0
  1073. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/core/checks.d.ts +278 -0
  1074. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/core/checks.js +565 -0
  1075. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/core/core.cjs +67 -0
  1076. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/core/core.d.cts +49 -0
  1077. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/core/core.d.ts +49 -0
  1078. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/core/core.js +61 -0
  1079. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/core/doc.cjs +39 -0
  1080. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/core/doc.d.cts +14 -0
  1081. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/core/doc.d.ts +14 -0
  1082. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/core/doc.js +35 -0
  1083. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/core/errors.cjs +226 -0
  1084. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/core/errors.d.cts +208 -0
  1085. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/core/errors.d.ts +208 -0
  1086. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/core/errors.js +195 -0
  1087. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/core/function.cjs +102 -0
  1088. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/core/function.d.cts +52 -0
  1089. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/core/function.d.ts +52 -0
  1090. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/core/function.js +75 -0
  1091. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/core/index.cjs +44 -0
  1092. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/core/index.d.cts +15 -0
  1093. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/core/index.d.ts +15 -0
  1094. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/core/index.js +15 -0
  1095. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/core/json-schema.cjs +2 -0
  1096. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/core/json-schema.d.cts +87 -0
  1097. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/core/json-schema.d.ts +87 -0
  1098. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/core/json-schema.js +1 -0
  1099. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/core/parse.cjs +87 -0
  1100. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/core/parse.d.cts +25 -0
  1101. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/core/parse.d.ts +25 -0
  1102. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/core/parse.js +57 -0
  1103. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/core/regexes.cjs +103 -0
  1104. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/core/regexes.d.cts +62 -0
  1105. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/core/regexes.d.ts +62 -0
  1106. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/core/regexes.js +95 -0
  1107. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/core/registries.cjs +56 -0
  1108. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/core/registries.d.cts +35 -0
  1109. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/core/registries.d.ts +35 -0
  1110. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/core/registries.js +51 -0
  1111. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/core/schemas.cjs +1748 -0
  1112. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/core/schemas.d.cts +1041 -0
  1113. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/core/schemas.d.ts +1041 -0
  1114. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/core/schemas.js +1717 -0
  1115. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/core/standard-schema.cjs +2 -0
  1116. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/core/standard-schema.d.cts +55 -0
  1117. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/core/standard-schema.d.ts +55 -0
  1118. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/core/standard-schema.js +1 -0
  1119. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/core/to-json-schema.cjs +854 -0
  1120. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/core/to-json-schema.d.cts +88 -0
  1121. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/core/to-json-schema.d.ts +88 -0
  1122. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/core/to-json-schema.js +849 -0
  1123. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/core/util.cjs +539 -0
  1124. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/core/util.d.cts +183 -0
  1125. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/core/util.d.ts +183 -0
  1126. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/core/util.js +493 -0
  1127. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/core/versions.cjs +8 -0
  1128. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/core/versions.d.cts +5 -0
  1129. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/core/versions.d.ts +5 -0
  1130. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/core/versions.js +5 -0
  1131. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/index.cjs +22 -0
  1132. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/index.d.cts +3 -0
  1133. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/index.d.ts +3 -0
  1134. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/index.js +3 -0
  1135. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/ar.cjs +142 -0
  1136. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/ar.d.cts +4 -0
  1137. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/ar.d.ts +4 -0
  1138. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/ar.js +116 -0
  1139. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/az.cjs +141 -0
  1140. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/az.d.cts +4 -0
  1141. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/az.d.ts +4 -0
  1142. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/az.js +115 -0
  1143. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/be.cjs +190 -0
  1144. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/be.d.cts +4 -0
  1145. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/be.d.ts +4 -0
  1146. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/be.js +164 -0
  1147. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/ca.cjs +144 -0
  1148. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/ca.d.cts +4 -0
  1149. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/ca.d.ts +4 -0
  1150. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/ca.js +118 -0
  1151. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/cs.cjs +161 -0
  1152. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/cs.d.cts +4 -0
  1153. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/cs.d.ts +4 -0
  1154. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/cs.js +135 -0
  1155. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/de.cjs +142 -0
  1156. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/de.d.cts +4 -0
  1157. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/de.d.ts +4 -0
  1158. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/de.js +116 -0
  1159. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/en.cjs +145 -0
  1160. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/en.d.cts +5 -0
  1161. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/en.d.ts +5 -0
  1162. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/en.js +117 -0
  1163. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/eo.cjs +144 -0
  1164. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/eo.d.cts +5 -0
  1165. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/eo.d.ts +5 -0
  1166. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/eo.js +116 -0
  1167. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/es.cjs +143 -0
  1168. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/es.d.cts +4 -0
  1169. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/es.d.ts +4 -0
  1170. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/es.js +117 -0
  1171. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/fa.cjs +148 -0
  1172. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/fa.d.cts +4 -0
  1173. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/fa.d.ts +4 -0
  1174. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/fa.js +122 -0
  1175. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/fi.cjs +148 -0
  1176. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/fi.d.cts +4 -0
  1177. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/fi.d.ts +4 -0
  1178. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/fi.js +122 -0
  1179. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/fr-CA.cjs +143 -0
  1180. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/fr-CA.d.cts +4 -0
  1181. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/fr-CA.d.ts +4 -0
  1182. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/fr-CA.js +117 -0
  1183. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/fr.cjs +142 -0
  1184. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/fr.d.cts +4 -0
  1185. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/fr.d.ts +4 -0
  1186. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/fr.js +116 -0
  1187. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/he.cjs +143 -0
  1188. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/he.d.cts +4 -0
  1189. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/he.d.ts +4 -0
  1190. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/he.js +117 -0
  1191. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/hu.cjs +143 -0
  1192. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/hu.d.cts +4 -0
  1193. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/hu.d.ts +4 -0
  1194. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/hu.js +117 -0
  1195. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/id.cjs +142 -0
  1196. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/id.d.cts +4 -0
  1197. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/id.d.ts +4 -0
  1198. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/id.js +116 -0
  1199. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/index.cjs +84 -0
  1200. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/index.d.cts +39 -0
  1201. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/index.d.ts +39 -0
  1202. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/index.js +39 -0
  1203. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/it.cjs +143 -0
  1204. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/it.d.cts +4 -0
  1205. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/it.d.ts +4 -0
  1206. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/it.js +117 -0
  1207. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/ja.cjs +141 -0
  1208. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/ja.d.cts +4 -0
  1209. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/ja.d.ts +4 -0
  1210. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/ja.js +115 -0
  1211. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/kh.cjs +143 -0
  1212. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/kh.d.cts +4 -0
  1213. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/kh.d.ts +4 -0
  1214. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/kh.js +117 -0
  1215. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/ko.cjs +147 -0
  1216. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/ko.d.cts +4 -0
  1217. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/ko.d.ts +4 -0
  1218. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/ko.js +121 -0
  1219. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/mk.cjs +144 -0
  1220. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/mk.d.cts +4 -0
  1221. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/mk.d.ts +4 -0
  1222. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/mk.js +118 -0
  1223. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/ms.cjs +142 -0
  1224. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/ms.d.cts +4 -0
  1225. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/ms.d.ts +4 -0
  1226. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/ms.js +116 -0
  1227. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/nl.cjs +143 -0
  1228. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/nl.d.cts +4 -0
  1229. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/nl.d.ts +4 -0
  1230. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/nl.js +117 -0
  1231. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/no.cjs +142 -0
  1232. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/no.d.cts +4 -0
  1233. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/no.d.ts +4 -0
  1234. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/no.js +116 -0
  1235. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/ota.cjs +143 -0
  1236. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/ota.d.cts +4 -0
  1237. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/ota.d.ts +4 -0
  1238. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/ota.js +117 -0
  1239. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/pl.cjs +143 -0
  1240. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/pl.d.cts +4 -0
  1241. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/pl.d.ts +4 -0
  1242. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/pl.js +117 -0
  1243. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/ps.cjs +148 -0
  1244. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/ps.d.cts +4 -0
  1245. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/ps.d.ts +4 -0
  1246. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/ps.js +122 -0
  1247. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/pt.cjs +142 -0
  1248. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/pt.d.cts +4 -0
  1249. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/pt.d.ts +4 -0
  1250. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/pt.js +116 -0
  1251. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/ru.cjs +190 -0
  1252. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/ru.d.cts +4 -0
  1253. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/ru.d.ts +4 -0
  1254. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/ru.js +164 -0
  1255. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/sl.cjs +143 -0
  1256. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/sl.d.cts +4 -0
  1257. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/sl.d.ts +4 -0
  1258. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/sl.js +117 -0
  1259. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/sv.cjs +144 -0
  1260. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/sv.d.cts +4 -0
  1261. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/sv.d.ts +4 -0
  1262. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/sv.js +118 -0
  1263. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/ta.cjs +143 -0
  1264. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/ta.d.cts +4 -0
  1265. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/ta.d.ts +4 -0
  1266. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/ta.js +117 -0
  1267. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/th.cjs +143 -0
  1268. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/th.d.cts +4 -0
  1269. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/th.d.ts +4 -0
  1270. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/th.js +117 -0
  1271. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/tr.cjs +143 -0
  1272. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/tr.d.cts +5 -0
  1273. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/tr.d.ts +5 -0
  1274. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/tr.js +115 -0
  1275. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/ua.cjs +143 -0
  1276. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/ua.d.cts +4 -0
  1277. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/ua.d.ts +4 -0
  1278. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/ua.js +117 -0
  1279. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/ur.cjs +143 -0
  1280. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/ur.d.cts +4 -0
  1281. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/ur.d.ts +4 -0
  1282. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/ur.js +117 -0
  1283. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/vi.cjs +142 -0
  1284. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/vi.d.cts +4 -0
  1285. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/vi.d.ts +4 -0
  1286. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/vi.js +116 -0
  1287. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/zh-CN.cjs +142 -0
  1288. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/zh-CN.d.cts +4 -0
  1289. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/zh-CN.d.ts +4 -0
  1290. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/zh-CN.js +116 -0
  1291. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/zh-TW.cjs +143 -0
  1292. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/zh-TW.d.cts +4 -0
  1293. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/zh-TW.d.ts +4 -0
  1294. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/locales/zh-TW.js +117 -0
  1295. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/mini/checks.cjs +34 -0
  1296. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/mini/checks.d.cts +1 -0
  1297. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/mini/checks.d.ts +1 -0
  1298. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/mini/checks.js +1 -0
  1299. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/mini/coerce.cjs +47 -0
  1300. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/mini/coerce.d.cts +7 -0
  1301. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/mini/coerce.d.ts +7 -0
  1302. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/mini/coerce.js +17 -0
  1303. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/mini/external.cjs +62 -0
  1304. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/mini/external.d.cts +11 -0
  1305. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/mini/external.d.ts +11 -0
  1306. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/mini/external.js +13 -0
  1307. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/mini/index.cjs +32 -0
  1308. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/mini/index.d.cts +3 -0
  1309. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/mini/index.d.ts +3 -0
  1310. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/mini/index.js +3 -0
  1311. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/mini/iso.cjs +60 -0
  1312. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/mini/iso.d.cts +22 -0
  1313. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/mini/iso.d.ts +22 -0
  1314. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/mini/iso.js +30 -0
  1315. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/mini/parse.cjs +8 -0
  1316. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/mini/parse.d.cts +1 -0
  1317. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/mini/parse.d.ts +1 -0
  1318. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/mini/parse.js +1 -0
  1319. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/mini/schemas.cjs +839 -0
  1320. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/mini/schemas.d.cts +356 -0
  1321. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/mini/schemas.d.ts +356 -0
  1322. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4/mini/schemas.js +732 -0
  1323. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4-mini/index.cjs +17 -0
  1324. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4-mini/index.d.cts +1 -0
  1325. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4-mini/index.d.ts +1 -0
  1326. package/dist/node_modules/langchain-gigachat/node_modules/zod/v4-mini/index.js +1 -0
  1327. package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/.github/CR_logotype-full-color.png +0 -0
  1328. package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/.github/FUNDING.yml +1 -0
  1329. package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/.prettierrc.json +1 -0
  1330. package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/createIndex.ts +32 -0
  1331. package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/cjs/Options.js +51 -0
  1332. package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/cjs/Refs.js +26 -0
  1333. package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/cjs/errorMessages.js +19 -0
  1334. package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/cjs/getRelativePath.js +12 -0
  1335. package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/cjs/index.js +56 -0
  1336. package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/cjs/package.json +1 -0
  1337. package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/cjs/parseDef.js +66 -0
  1338. package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/cjs/parseTypes.js +2 -0
  1339. package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/cjs/parsers/any.js +21 -0
  1340. package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/cjs/parsers/array.js +30 -0
  1341. package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/cjs/parsers/bigint.js +53 -0
  1342. package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/cjs/parsers/boolean.js +9 -0
  1343. package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/cjs/parsers/branded.js +8 -0
  1344. package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/cjs/parsers/catch.js +8 -0
  1345. package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/cjs/parsers/date.js +50 -0
  1346. package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/cjs/parsers/default.js +11 -0
  1347. package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/cjs/parsers/effects.js +11 -0
  1348. package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/cjs/parsers/enum.js +10 -0
  1349. package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/cjs/parsers/intersection.js +56 -0
  1350. package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/cjs/parsers/literal.js +25 -0
  1351. package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/cjs/parsers/map.js +30 -0
  1352. package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/cjs/parsers/nativeEnum.js +20 -0
  1353. package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/cjs/parsers/never.js +15 -0
  1354. package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/cjs/parsers/null.js +14 -0
  1355. package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/cjs/parsers/nullable.js +37 -0
  1356. package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/cjs/parsers/number.js +56 -0
  1357. package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/cjs/parsers/object.js +76 -0
  1358. package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/cjs/parsers/optional.js +25 -0
  1359. package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/cjs/parsers/pipeline.js +24 -0
  1360. package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/cjs/parsers/promise.js +8 -0
  1361. package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/cjs/parsers/readonly.js +8 -0
  1362. package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/cjs/parsers/record.js +65 -0
  1363. package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/cjs/parsers/set.js +24 -0
  1364. package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/cjs/parsers/string.js +356 -0
  1365. package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/cjs/parsers/tuple.js +36 -0
  1366. package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/cjs/parsers/undefined.js +10 -0
  1367. package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/cjs/parsers/union.js +84 -0
  1368. package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/cjs/parsers/unknown.js +8 -0
  1369. package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/cjs/selectParser.js +109 -0
  1370. package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/cjs/zodToJsonSchema.js +90 -0
  1371. package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/esm/Options.js +46 -0
  1372. package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/esm/Refs.js +22 -0
  1373. package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/esm/errorMessages.js +14 -0
  1374. package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/esm/getRelativePath.js +8 -0
  1375. package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/esm/index.js +40 -0
  1376. package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/esm/package.json +1 -0
  1377. package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/esm/parseDef.js +62 -0
  1378. package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/esm/parseTypes.js +1 -0
  1379. package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/esm/parsers/any.js +17 -0
  1380. package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/esm/parsers/array.js +26 -0
  1381. package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/esm/parsers/bigint.js +49 -0
  1382. package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/esm/parsers/boolean.js +5 -0
  1383. package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/esm/parsers/branded.js +4 -0
  1384. package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/esm/parsers/catch.js +4 -0
  1385. package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/esm/parsers/date.js +46 -0
  1386. package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/esm/parsers/default.js +7 -0
  1387. package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/esm/parsers/effects.js +7 -0
  1388. package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/esm/parsers/enum.js +6 -0
  1389. package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/esm/parsers/intersection.js +52 -0
  1390. package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/esm/parsers/literal.js +21 -0
  1391. package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/esm/parsers/map.js +26 -0
  1392. package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/esm/parsers/nativeEnum.js +16 -0
  1393. package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/esm/parsers/never.js +11 -0
  1394. package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/esm/parsers/null.js +10 -0
  1395. package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/esm/parsers/nullable.js +33 -0
  1396. package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/esm/parsers/number.js +52 -0
  1397. package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/esm/parsers/object.js +72 -0
  1398. package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/esm/parsers/optional.js +21 -0
  1399. package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/esm/parsers/pipeline.js +20 -0
  1400. package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/esm/parsers/promise.js +4 -0
  1401. package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/esm/parsers/readonly.js +4 -0
  1402. package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/esm/parsers/record.js +61 -0
  1403. package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/esm/parsers/set.js +20 -0
  1404. package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/esm/parsers/string.js +352 -0
  1405. package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/esm/parsers/tuple.js +32 -0
  1406. package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/esm/parsers/undefined.js +6 -0
  1407. package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/esm/parsers/union.js +80 -0
  1408. package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/esm/parsers/unknown.js +4 -0
  1409. package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/esm/selectParser.js +105 -0
  1410. package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/esm/zodToJsonSchema.js +87 -0
  1411. package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/types/Options.d.ts +37 -0
  1412. package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/types/Refs.d.ts +17 -0
  1413. package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/types/errorMessages.d.ts +15 -0
  1414. package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/types/getRelativePath.d.ts +1 -0
  1415. package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/types/index.d.ts +40 -0
  1416. package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/types/parseDef.d.ts +4 -0
  1417. package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/types/parseTypes.d.ts +34 -0
  1418. package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/types/parsers/any.d.ts +5 -0
  1419. package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/types/parsers/array.d.ts +12 -0
  1420. package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/types/parsers/bigint.d.ts +14 -0
  1421. package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/types/parsers/boolean.d.ts +4 -0
  1422. package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/types/parsers/branded.d.ts +3 -0
  1423. package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/types/parsers/catch.d.ts +3 -0
  1424. package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/types/parsers/date.d.ts +15 -0
  1425. package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/types/parsers/default.d.ts +6 -0
  1426. package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/types/parsers/effects.d.ts +4 -0
  1427. package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/types/parsers/enum.d.ts +6 -0
  1428. package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/types/parsers/intersection.d.ts +8 -0
  1429. package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/types/parsers/literal.d.ts +9 -0
  1430. package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/types/parsers/map.d.ts +15 -0
  1431. package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/types/parsers/nativeEnum.d.ts +6 -0
  1432. package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/types/parsers/never.d.ts +6 -0
  1433. package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/types/parsers/null.d.ts +5 -0
  1434. package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/types/parsers/nullable.d.ts +10 -0
  1435. package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/types/parsers/number.d.ts +13 -0
  1436. package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/types/parsers/object.d.ts +10 -0
  1437. package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/types/parsers/optional.d.ts +4 -0
  1438. package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/types/parsers/pipeline.d.ts +5 -0
  1439. package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/types/parsers/promise.d.ts +4 -0
  1440. package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/types/parsers/readonly.d.ts +3 -0
  1441. package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/types/parsers/record.d.ts +13 -0
  1442. package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/types/parsers/set.d.ts +13 -0
  1443. package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/types/parsers/string.d.ts +73 -0
  1444. package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/types/parsers/tuple.d.ts +13 -0
  1445. package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/types/parsers/undefined.d.ts +6 -0
  1446. package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/types/parsers/union.d.ts +23 -0
  1447. package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/types/parsers/unknown.d.ts +4 -0
  1448. package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/types/selectParser.d.ts +5 -0
  1449. package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/dist/types/zodToJsonSchema.d.ts +10 -0
  1450. package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/package.json +78 -0
  1451. package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/postcjs.ts +3 -0
  1452. package/dist/node_modules/langchain-gigachat/node_modules/zod-to-json-schema/postesm.ts +3 -0
  1453. package/dist/node_modules/langchain-gigachat/package.json +1 -0
  1454. package/dist/server/index.d.ts +1 -0
  1455. package/dist/server/index.js +42 -0
  1456. package/dist/server/llm-providers/gigachat.d.ts +24 -0
  1457. package/dist/server/llm-providers/gigachat.js +109 -0
  1458. package/dist/server/plugin.d.ts +12 -0
  1459. package/dist/server/plugin.js +59 -0
  1460. package/package.json +26 -0
  1461. package/server.d.ts +2 -0
  1462. package/server.js +1 -0
@@ -0,0 +1,3979 @@
1
+ /*! Axios v1.13.5 Copyright (c) 2026 Matt Zabriskie and contributors */
2
+ 'use strict';
3
+
4
+ /**
5
+ * Create a bound version of a function with a specified `this` context
6
+ *
7
+ * @param {Function} fn - The function to bind
8
+ * @param {*} thisArg - The value to be passed as the `this` parameter
9
+ * @returns {Function} A new function that will call the original function with the specified `this` context
10
+ */
11
+ function bind(fn, thisArg) {
12
+ return function wrap() {
13
+ return fn.apply(thisArg, arguments);
14
+ };
15
+ }
16
+
17
+ // utils is a library of generic helper functions non-specific to axios
18
+
19
+ const { toString } = Object.prototype;
20
+ const { getPrototypeOf } = Object;
21
+ const { iterator, toStringTag } = Symbol;
22
+
23
+ const kindOf = ((cache) => (thing) => {
24
+ const str = toString.call(thing);
25
+ return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());
26
+ })(Object.create(null));
27
+
28
+ const kindOfTest = (type) => {
29
+ type = type.toLowerCase();
30
+ return (thing) => kindOf(thing) === type;
31
+ };
32
+
33
+ const typeOfTest = (type) => (thing) => typeof thing === type;
34
+
35
+ /**
36
+ * Determine if a value is a non-null object
37
+ *
38
+ * @param {Object} val The value to test
39
+ *
40
+ * @returns {boolean} True if value is an Array, otherwise false
41
+ */
42
+ const { isArray } = Array;
43
+
44
+ /**
45
+ * Determine if a value is undefined
46
+ *
47
+ * @param {*} val The value to test
48
+ *
49
+ * @returns {boolean} True if the value is undefined, otherwise false
50
+ */
51
+ const isUndefined = typeOfTest("undefined");
52
+
53
+ /**
54
+ * Determine if a value is a Buffer
55
+ *
56
+ * @param {*} val The value to test
57
+ *
58
+ * @returns {boolean} True if value is a Buffer, otherwise false
59
+ */
60
+ function isBuffer(val) {
61
+ return (
62
+ val !== null &&
63
+ !isUndefined(val) &&
64
+ val.constructor !== null &&
65
+ !isUndefined(val.constructor) &&
66
+ isFunction$1(val.constructor.isBuffer) &&
67
+ val.constructor.isBuffer(val)
68
+ );
69
+ }
70
+
71
+ /**
72
+ * Determine if a value is an ArrayBuffer
73
+ *
74
+ * @param {*} val The value to test
75
+ *
76
+ * @returns {boolean} True if value is an ArrayBuffer, otherwise false
77
+ */
78
+ const isArrayBuffer = kindOfTest("ArrayBuffer");
79
+
80
+ /**
81
+ * Determine if a value is a view on an ArrayBuffer
82
+ *
83
+ * @param {*} val The value to test
84
+ *
85
+ * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false
86
+ */
87
+ function isArrayBufferView(val) {
88
+ let result;
89
+ if (typeof ArrayBuffer !== "undefined" && ArrayBuffer.isView) {
90
+ result = ArrayBuffer.isView(val);
91
+ } else {
92
+ result = val && val.buffer && isArrayBuffer(val.buffer);
93
+ }
94
+ return result;
95
+ }
96
+
97
+ /**
98
+ * Determine if a value is a String
99
+ *
100
+ * @param {*} val The value to test
101
+ *
102
+ * @returns {boolean} True if value is a String, otherwise false
103
+ */
104
+ const isString = typeOfTest("string");
105
+
106
+ /**
107
+ * Determine if a value is a Function
108
+ *
109
+ * @param {*} val The value to test
110
+ * @returns {boolean} True if value is a Function, otherwise false
111
+ */
112
+ const isFunction$1 = typeOfTest("function");
113
+
114
+ /**
115
+ * Determine if a value is a Number
116
+ *
117
+ * @param {*} val The value to test
118
+ *
119
+ * @returns {boolean} True if value is a Number, otherwise false
120
+ */
121
+ const isNumber = typeOfTest("number");
122
+
123
+ /**
124
+ * Determine if a value is an Object
125
+ *
126
+ * @param {*} thing The value to test
127
+ *
128
+ * @returns {boolean} True if value is an Object, otherwise false
129
+ */
130
+ const isObject = (thing) => thing !== null && typeof thing === "object";
131
+
132
+ /**
133
+ * Determine if a value is a Boolean
134
+ *
135
+ * @param {*} thing The value to test
136
+ * @returns {boolean} True if value is a Boolean, otherwise false
137
+ */
138
+ const isBoolean = (thing) => thing === true || thing === false;
139
+
140
+ /**
141
+ * Determine if a value is a plain Object
142
+ *
143
+ * @param {*} val The value to test
144
+ *
145
+ * @returns {boolean} True if value is a plain Object, otherwise false
146
+ */
147
+ const isPlainObject = (val) => {
148
+ if (kindOf(val) !== "object") {
149
+ return false;
150
+ }
151
+
152
+ const prototype = getPrototypeOf(val);
153
+ return (
154
+ (prototype === null ||
155
+ prototype === Object.prototype ||
156
+ Object.getPrototypeOf(prototype) === null) &&
157
+ !(toStringTag in val) &&
158
+ !(iterator in val)
159
+ );
160
+ };
161
+
162
+ /**
163
+ * Determine if a value is an empty object (safely handles Buffers)
164
+ *
165
+ * @param {*} val The value to test
166
+ *
167
+ * @returns {boolean} True if value is an empty object, otherwise false
168
+ */
169
+ const isEmptyObject = (val) => {
170
+ // Early return for non-objects or Buffers to prevent RangeError
171
+ if (!isObject(val) || isBuffer(val)) {
172
+ return false;
173
+ }
174
+
175
+ try {
176
+ return (
177
+ Object.keys(val).length === 0 &&
178
+ Object.getPrototypeOf(val) === Object.prototype
179
+ );
180
+ } catch (e) {
181
+ // Fallback for any other objects that might cause RangeError with Object.keys()
182
+ return false;
183
+ }
184
+ };
185
+
186
+ /**
187
+ * Determine if a value is a Date
188
+ *
189
+ * @param {*} val The value to test
190
+ *
191
+ * @returns {boolean} True if value is a Date, otherwise false
192
+ */
193
+ const isDate = kindOfTest("Date");
194
+
195
+ /**
196
+ * Determine if a value is a File
197
+ *
198
+ * @param {*} val The value to test
199
+ *
200
+ * @returns {boolean} True if value is a File, otherwise false
201
+ */
202
+ const isFile = kindOfTest("File");
203
+
204
+ /**
205
+ * Determine if a value is a Blob
206
+ *
207
+ * @param {*} val The value to test
208
+ *
209
+ * @returns {boolean} True if value is a Blob, otherwise false
210
+ */
211
+ const isBlob = kindOfTest("Blob");
212
+
213
+ /**
214
+ * Determine if a value is a FileList
215
+ *
216
+ * @param {*} val The value to test
217
+ *
218
+ * @returns {boolean} True if value is a File, otherwise false
219
+ */
220
+ const isFileList = kindOfTest("FileList");
221
+
222
+ /**
223
+ * Determine if a value is a Stream
224
+ *
225
+ * @param {*} val The value to test
226
+ *
227
+ * @returns {boolean} True if value is a Stream, otherwise false
228
+ */
229
+ const isStream = (val) => isObject(val) && isFunction$1(val.pipe);
230
+
231
+ /**
232
+ * Determine if a value is a FormData
233
+ *
234
+ * @param {*} thing The value to test
235
+ *
236
+ * @returns {boolean} True if value is an FormData, otherwise false
237
+ */
238
+ const isFormData = (thing) => {
239
+ let kind;
240
+ return (
241
+ thing &&
242
+ ((typeof FormData === "function" && thing instanceof FormData) ||
243
+ (isFunction$1(thing.append) &&
244
+ ((kind = kindOf(thing)) === "formdata" ||
245
+ // detect form-data instance
246
+ (kind === "object" &&
247
+ isFunction$1(thing.toString) &&
248
+ thing.toString() === "[object FormData]"))))
249
+ );
250
+ };
251
+
252
+ /**
253
+ * Determine if a value is a URLSearchParams object
254
+ *
255
+ * @param {*} val The value to test
256
+ *
257
+ * @returns {boolean} True if value is a URLSearchParams object, otherwise false
258
+ */
259
+ const isURLSearchParams = kindOfTest("URLSearchParams");
260
+
261
+ const [isReadableStream, isRequest, isResponse, isHeaders] = [
262
+ "ReadableStream",
263
+ "Request",
264
+ "Response",
265
+ "Headers",
266
+ ].map(kindOfTest);
267
+
268
+ /**
269
+ * Trim excess whitespace off the beginning and end of a string
270
+ *
271
+ * @param {String} str The String to trim
272
+ *
273
+ * @returns {String} The String freed of excess whitespace
274
+ */
275
+ const trim = (str) =>
276
+ str.trim ? str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
277
+
278
+ /**
279
+ * Iterate over an Array or an Object invoking a function for each item.
280
+ *
281
+ * If `obj` is an Array callback will be called passing
282
+ * the value, index, and complete array for each item.
283
+ *
284
+ * If 'obj' is an Object callback will be called passing
285
+ * the value, key, and complete object for each property.
286
+ *
287
+ * @param {Object|Array<unknown>} obj The object to iterate
288
+ * @param {Function} fn The callback to invoke for each item
289
+ *
290
+ * @param {Object} [options]
291
+ * @param {Boolean} [options.allOwnKeys = false]
292
+ * @returns {any}
293
+ */
294
+ function forEach(obj, fn, { allOwnKeys = false } = {}) {
295
+ // Don't bother if no value provided
296
+ if (obj === null || typeof obj === "undefined") {
297
+ return;
298
+ }
299
+
300
+ let i;
301
+ let l;
302
+
303
+ // Force an array if not already something iterable
304
+ if (typeof obj !== "object") {
305
+ /*eslint no-param-reassign:0*/
306
+ obj = [obj];
307
+ }
308
+
309
+ if (isArray(obj)) {
310
+ // Iterate over array values
311
+ for (i = 0, l = obj.length; i < l; i++) {
312
+ fn.call(null, obj[i], i, obj);
313
+ }
314
+ } else {
315
+ // Buffer check
316
+ if (isBuffer(obj)) {
317
+ return;
318
+ }
319
+
320
+ // Iterate over object keys
321
+ const keys = allOwnKeys
322
+ ? Object.getOwnPropertyNames(obj)
323
+ : Object.keys(obj);
324
+ const len = keys.length;
325
+ let key;
326
+
327
+ for (i = 0; i < len; i++) {
328
+ key = keys[i];
329
+ fn.call(null, obj[key], key, obj);
330
+ }
331
+ }
332
+ }
333
+
334
+ function findKey(obj, key) {
335
+ if (isBuffer(obj)) {
336
+ return null;
337
+ }
338
+
339
+ key = key.toLowerCase();
340
+ const keys = Object.keys(obj);
341
+ let i = keys.length;
342
+ let _key;
343
+ while (i-- > 0) {
344
+ _key = keys[i];
345
+ if (key === _key.toLowerCase()) {
346
+ return _key;
347
+ }
348
+ }
349
+ return null;
350
+ }
351
+
352
+ const _global = (() => {
353
+ /*eslint no-undef:0*/
354
+ if (typeof globalThis !== "undefined") return globalThis;
355
+ return typeof self !== "undefined"
356
+ ? self
357
+ : typeof window !== "undefined"
358
+ ? window
359
+ : global;
360
+ })();
361
+
362
+ const isContextDefined = (context) =>
363
+ !isUndefined(context) && context !== _global;
364
+
365
+ /**
366
+ * Accepts varargs expecting each argument to be an object, then
367
+ * immutably merges the properties of each object and returns result.
368
+ *
369
+ * When multiple objects contain the same key the later object in
370
+ * the arguments list will take precedence.
371
+ *
372
+ * Example:
373
+ *
374
+ * ```js
375
+ * const result = merge({foo: 123}, {foo: 456});
376
+ * console.log(result.foo); // outputs 456
377
+ * ```
378
+ *
379
+ * @param {Object} obj1 Object to merge
380
+ *
381
+ * @returns {Object} Result of all merge properties
382
+ */
383
+ function merge(/* obj1, obj2, obj3, ... */) {
384
+ const { caseless, skipUndefined } = (isContextDefined(this) && this) || {};
385
+ const result = {};
386
+ const assignValue = (val, key) => {
387
+ // Skip dangerous property names to prevent prototype pollution
388
+ if (key === "__proto__" || key === "constructor" || key === "prototype") {
389
+ return;
390
+ }
391
+
392
+ const targetKey = (caseless && findKey(result, key)) || key;
393
+ if (isPlainObject(result[targetKey]) && isPlainObject(val)) {
394
+ result[targetKey] = merge(result[targetKey], val);
395
+ } else if (isPlainObject(val)) {
396
+ result[targetKey] = merge({}, val);
397
+ } else if (isArray(val)) {
398
+ result[targetKey] = val.slice();
399
+ } else if (!skipUndefined || !isUndefined(val)) {
400
+ result[targetKey] = val;
401
+ }
402
+ };
403
+
404
+ for (let i = 0, l = arguments.length; i < l; i++) {
405
+ arguments[i] && forEach(arguments[i], assignValue);
406
+ }
407
+ return result;
408
+ }
409
+
410
+ /**
411
+ * Extends object a by mutably adding to it the properties of object b.
412
+ *
413
+ * @param {Object} a The object to be extended
414
+ * @param {Object} b The object to copy properties from
415
+ * @param {Object} thisArg The object to bind function to
416
+ *
417
+ * @param {Object} [options]
418
+ * @param {Boolean} [options.allOwnKeys]
419
+ * @returns {Object} The resulting value of object a
420
+ */
421
+ const extend = (a, b, thisArg, { allOwnKeys } = {}) => {
422
+ forEach(
423
+ b,
424
+ (val, key) => {
425
+ if (thisArg && isFunction$1(val)) {
426
+ Object.defineProperty(a, key, {
427
+ value: bind(val, thisArg),
428
+ writable: true,
429
+ enumerable: true,
430
+ configurable: true,
431
+ });
432
+ } else {
433
+ Object.defineProperty(a, key, {
434
+ value: val,
435
+ writable: true,
436
+ enumerable: true,
437
+ configurable: true,
438
+ });
439
+ }
440
+ },
441
+ { allOwnKeys },
442
+ );
443
+ return a;
444
+ };
445
+
446
+ /**
447
+ * Remove byte order marker. This catches EF BB BF (the UTF-8 BOM)
448
+ *
449
+ * @param {string} content with BOM
450
+ *
451
+ * @returns {string} content value without BOM
452
+ */
453
+ const stripBOM = (content) => {
454
+ if (content.charCodeAt(0) === 0xfeff) {
455
+ content = content.slice(1);
456
+ }
457
+ return content;
458
+ };
459
+
460
+ /**
461
+ * Inherit the prototype methods from one constructor into another
462
+ * @param {function} constructor
463
+ * @param {function} superConstructor
464
+ * @param {object} [props]
465
+ * @param {object} [descriptors]
466
+ *
467
+ * @returns {void}
468
+ */
469
+ const inherits = (constructor, superConstructor, props, descriptors) => {
470
+ constructor.prototype = Object.create(
471
+ superConstructor.prototype,
472
+ descriptors,
473
+ );
474
+ Object.defineProperty(constructor.prototype, "constructor", {
475
+ value: constructor,
476
+ writable: true,
477
+ enumerable: false,
478
+ configurable: true,
479
+ });
480
+ Object.defineProperty(constructor, "super", {
481
+ value: superConstructor.prototype,
482
+ });
483
+ props && Object.assign(constructor.prototype, props);
484
+ };
485
+
486
+ /**
487
+ * Resolve object with deep prototype chain to a flat object
488
+ * @param {Object} sourceObj source object
489
+ * @param {Object} [destObj]
490
+ * @param {Function|Boolean} [filter]
491
+ * @param {Function} [propFilter]
492
+ *
493
+ * @returns {Object}
494
+ */
495
+ const toFlatObject = (sourceObj, destObj, filter, propFilter) => {
496
+ let props;
497
+ let i;
498
+ let prop;
499
+ const merged = {};
500
+
501
+ destObj = destObj || {};
502
+ // eslint-disable-next-line no-eq-null,eqeqeq
503
+ if (sourceObj == null) return destObj;
504
+
505
+ do {
506
+ props = Object.getOwnPropertyNames(sourceObj);
507
+ i = props.length;
508
+ while (i-- > 0) {
509
+ prop = props[i];
510
+ if (
511
+ (!propFilter || propFilter(prop, sourceObj, destObj)) &&
512
+ !merged[prop]
513
+ ) {
514
+ destObj[prop] = sourceObj[prop];
515
+ merged[prop] = true;
516
+ }
517
+ }
518
+ sourceObj = filter !== false && getPrototypeOf(sourceObj);
519
+ } while (
520
+ sourceObj &&
521
+ (!filter || filter(sourceObj, destObj)) &&
522
+ sourceObj !== Object.prototype
523
+ );
524
+
525
+ return destObj;
526
+ };
527
+
528
+ /**
529
+ * Determines whether a string ends with the characters of a specified string
530
+ *
531
+ * @param {String} str
532
+ * @param {String} searchString
533
+ * @param {Number} [position= 0]
534
+ *
535
+ * @returns {boolean}
536
+ */
537
+ const endsWith = (str, searchString, position) => {
538
+ str = String(str);
539
+ if (position === undefined || position > str.length) {
540
+ position = str.length;
541
+ }
542
+ position -= searchString.length;
543
+ const lastIndex = str.indexOf(searchString, position);
544
+ return lastIndex !== -1 && lastIndex === position;
545
+ };
546
+
547
+ /**
548
+ * Returns new array from array like object or null if failed
549
+ *
550
+ * @param {*} [thing]
551
+ *
552
+ * @returns {?Array}
553
+ */
554
+ const toArray = (thing) => {
555
+ if (!thing) return null;
556
+ if (isArray(thing)) return thing;
557
+ let i = thing.length;
558
+ if (!isNumber(i)) return null;
559
+ const arr = new Array(i);
560
+ while (i-- > 0) {
561
+ arr[i] = thing[i];
562
+ }
563
+ return arr;
564
+ };
565
+
566
+ /**
567
+ * Checking if the Uint8Array exists and if it does, it returns a function that checks if the
568
+ * thing passed in is an instance of Uint8Array
569
+ *
570
+ * @param {TypedArray}
571
+ *
572
+ * @returns {Array}
573
+ */
574
+ // eslint-disable-next-line func-names
575
+ const isTypedArray = ((TypedArray) => {
576
+ // eslint-disable-next-line func-names
577
+ return (thing) => {
578
+ return TypedArray && thing instanceof TypedArray;
579
+ };
580
+ })(typeof Uint8Array !== "undefined" && getPrototypeOf(Uint8Array));
581
+
582
+ /**
583
+ * For each entry in the object, call the function with the key and value.
584
+ *
585
+ * @param {Object<any, any>} obj - The object to iterate over.
586
+ * @param {Function} fn - The function to call for each entry.
587
+ *
588
+ * @returns {void}
589
+ */
590
+ const forEachEntry = (obj, fn) => {
591
+ const generator = obj && obj[iterator];
592
+
593
+ const _iterator = generator.call(obj);
594
+
595
+ let result;
596
+
597
+ while ((result = _iterator.next()) && !result.done) {
598
+ const pair = result.value;
599
+ fn.call(obj, pair[0], pair[1]);
600
+ }
601
+ };
602
+
603
+ /**
604
+ * It takes a regular expression and a string, and returns an array of all the matches
605
+ *
606
+ * @param {string} regExp - The regular expression to match against.
607
+ * @param {string} str - The string to search.
608
+ *
609
+ * @returns {Array<boolean>}
610
+ */
611
+ const matchAll = (regExp, str) => {
612
+ let matches;
613
+ const arr = [];
614
+
615
+ while ((matches = regExp.exec(str)) !== null) {
616
+ arr.push(matches);
617
+ }
618
+
619
+ return arr;
620
+ };
621
+
622
+ /* Checking if the kindOfTest function returns true when passed an HTMLFormElement. */
623
+ const isHTMLForm = kindOfTest("HTMLFormElement");
624
+
625
+ const toCamelCase = (str) => {
626
+ return str
627
+ .toLowerCase()
628
+ .replace(/[-_\s]([a-z\d])(\w*)/g, function replacer(m, p1, p2) {
629
+ return p1.toUpperCase() + p2;
630
+ });
631
+ };
632
+
633
+ /* Creating a function that will check if an object has a property. */
634
+ const hasOwnProperty = (
635
+ ({ hasOwnProperty }) =>
636
+ (obj, prop) =>
637
+ hasOwnProperty.call(obj, prop)
638
+ )(Object.prototype);
639
+
640
+ /**
641
+ * Determine if a value is a RegExp object
642
+ *
643
+ * @param {*} val The value to test
644
+ *
645
+ * @returns {boolean} True if value is a RegExp object, otherwise false
646
+ */
647
+ const isRegExp = kindOfTest("RegExp");
648
+
649
+ const reduceDescriptors = (obj, reducer) => {
650
+ const descriptors = Object.getOwnPropertyDescriptors(obj);
651
+ const reducedDescriptors = {};
652
+
653
+ forEach(descriptors, (descriptor, name) => {
654
+ let ret;
655
+ if ((ret = reducer(descriptor, name, obj)) !== false) {
656
+ reducedDescriptors[name] = ret || descriptor;
657
+ }
658
+ });
659
+
660
+ Object.defineProperties(obj, reducedDescriptors);
661
+ };
662
+
663
+ /**
664
+ * Makes all methods read-only
665
+ * @param {Object} obj
666
+ */
667
+
668
+ const freezeMethods = (obj) => {
669
+ reduceDescriptors(obj, (descriptor, name) => {
670
+ // skip restricted props in strict mode
671
+ if (
672
+ isFunction$1(obj) &&
673
+ ["arguments", "caller", "callee"].indexOf(name) !== -1
674
+ ) {
675
+ return false;
676
+ }
677
+
678
+ const value = obj[name];
679
+
680
+ if (!isFunction$1(value)) return;
681
+
682
+ descriptor.enumerable = false;
683
+
684
+ if ("writable" in descriptor) {
685
+ descriptor.writable = false;
686
+ return;
687
+ }
688
+
689
+ if (!descriptor.set) {
690
+ descriptor.set = () => {
691
+ throw Error("Can not rewrite read-only method '" + name + "'");
692
+ };
693
+ }
694
+ });
695
+ };
696
+
697
+ const toObjectSet = (arrayOrString, delimiter) => {
698
+ const obj = {};
699
+
700
+ const define = (arr) => {
701
+ arr.forEach((value) => {
702
+ obj[value] = true;
703
+ });
704
+ };
705
+
706
+ isArray(arrayOrString)
707
+ ? define(arrayOrString)
708
+ : define(String(arrayOrString).split(delimiter));
709
+
710
+ return obj;
711
+ };
712
+
713
+ const noop = () => {};
714
+
715
+ const toFiniteNumber = (value, defaultValue) => {
716
+ return value != null && Number.isFinite((value = +value))
717
+ ? value
718
+ : defaultValue;
719
+ };
720
+
721
+ /**
722
+ * If the thing is a FormData object, return true, otherwise return false.
723
+ *
724
+ * @param {unknown} thing - The thing to check.
725
+ *
726
+ * @returns {boolean}
727
+ */
728
+ function isSpecCompliantForm(thing) {
729
+ return !!(
730
+ thing &&
731
+ isFunction$1(thing.append) &&
732
+ thing[toStringTag] === "FormData" &&
733
+ thing[iterator]
734
+ );
735
+ }
736
+
737
+ const toJSONObject = (obj) => {
738
+ const stack = new Array(10);
739
+
740
+ const visit = (source, i) => {
741
+ if (isObject(source)) {
742
+ if (stack.indexOf(source) >= 0) {
743
+ return;
744
+ }
745
+
746
+ //Buffer check
747
+ if (isBuffer(source)) {
748
+ return source;
749
+ }
750
+
751
+ if (!("toJSON" in source)) {
752
+ stack[i] = source;
753
+ const target = isArray(source) ? [] : {};
754
+
755
+ forEach(source, (value, key) => {
756
+ const reducedValue = visit(value, i + 1);
757
+ !isUndefined(reducedValue) && (target[key] = reducedValue);
758
+ });
759
+
760
+ stack[i] = undefined;
761
+
762
+ return target;
763
+ }
764
+ }
765
+
766
+ return source;
767
+ };
768
+
769
+ return visit(obj, 0);
770
+ };
771
+
772
+ const isAsyncFn = kindOfTest("AsyncFunction");
773
+
774
+ const isThenable = (thing) =>
775
+ thing &&
776
+ (isObject(thing) || isFunction$1(thing)) &&
777
+ isFunction$1(thing.then) &&
778
+ isFunction$1(thing.catch);
779
+
780
+ // original code
781
+ // https://github.com/DigitalBrainJS/AxiosPromise/blob/16deab13710ec09779922131f3fa5954320f83ab/lib/utils.js#L11-L34
782
+
783
+ const _setImmediate = ((setImmediateSupported, postMessageSupported) => {
784
+ if (setImmediateSupported) {
785
+ return setImmediate;
786
+ }
787
+
788
+ return postMessageSupported
789
+ ? ((token, callbacks) => {
790
+ _global.addEventListener(
791
+ "message",
792
+ ({ source, data }) => {
793
+ if (source === _global && data === token) {
794
+ callbacks.length && callbacks.shift()();
795
+ }
796
+ },
797
+ false,
798
+ );
799
+
800
+ return (cb) => {
801
+ callbacks.push(cb);
802
+ _global.postMessage(token, "*");
803
+ };
804
+ })(`axios@${Math.random()}`, [])
805
+ : (cb) => setTimeout(cb);
806
+ })(typeof setImmediate === "function", isFunction$1(_global.postMessage));
807
+
808
+ const asap =
809
+ typeof queueMicrotask !== "undefined"
810
+ ? queueMicrotask.bind(_global)
811
+ : (typeof process !== "undefined" && process.nextTick) || _setImmediate;
812
+
813
+ // *********************
814
+
815
+ const isIterable = (thing) => thing != null && isFunction$1(thing[iterator]);
816
+
817
+ var utils$1 = {
818
+ isArray,
819
+ isArrayBuffer,
820
+ isBuffer,
821
+ isFormData,
822
+ isArrayBufferView,
823
+ isString,
824
+ isNumber,
825
+ isBoolean,
826
+ isObject,
827
+ isPlainObject,
828
+ isEmptyObject,
829
+ isReadableStream,
830
+ isRequest,
831
+ isResponse,
832
+ isHeaders,
833
+ isUndefined,
834
+ isDate,
835
+ isFile,
836
+ isBlob,
837
+ isRegExp,
838
+ isFunction: isFunction$1,
839
+ isStream,
840
+ isURLSearchParams,
841
+ isTypedArray,
842
+ isFileList,
843
+ forEach,
844
+ merge,
845
+ extend,
846
+ trim,
847
+ stripBOM,
848
+ inherits,
849
+ toFlatObject,
850
+ kindOf,
851
+ kindOfTest,
852
+ endsWith,
853
+ toArray,
854
+ forEachEntry,
855
+ matchAll,
856
+ isHTMLForm,
857
+ hasOwnProperty,
858
+ hasOwnProp: hasOwnProperty, // an alias to avoid ESLint no-prototype-builtins detection
859
+ reduceDescriptors,
860
+ freezeMethods,
861
+ toObjectSet,
862
+ toCamelCase,
863
+ noop,
864
+ toFiniteNumber,
865
+ findKey,
866
+ global: _global,
867
+ isContextDefined,
868
+ isSpecCompliantForm,
869
+ toJSONObject,
870
+ isAsyncFn,
871
+ isThenable,
872
+ setImmediate: _setImmediate,
873
+ asap,
874
+ isIterable,
875
+ };
876
+
877
+ class AxiosError extends Error {
878
+ static from(error, code, config, request, response, customProps) {
879
+ const axiosError = new AxiosError(error.message, code || error.code, config, request, response);
880
+ axiosError.cause = error;
881
+ axiosError.name = error.name;
882
+ customProps && Object.assign(axiosError, customProps);
883
+ return axiosError;
884
+ }
885
+
886
+ /**
887
+ * Create an Error with the specified message, config, error code, request and response.
888
+ *
889
+ * @param {string} message The error message.
890
+ * @param {string} [code] The error code (for example, 'ECONNABORTED').
891
+ * @param {Object} [config] The config.
892
+ * @param {Object} [request] The request.
893
+ * @param {Object} [response] The response.
894
+ *
895
+ * @returns {Error} The created error.
896
+ */
897
+ constructor(message, code, config, request, response) {
898
+ super(message);
899
+ this.name = 'AxiosError';
900
+ this.isAxiosError = true;
901
+ code && (this.code = code);
902
+ config && (this.config = config);
903
+ request && (this.request = request);
904
+ if (response) {
905
+ this.response = response;
906
+ this.status = response.status;
907
+ }
908
+ }
909
+
910
+ toJSON() {
911
+ return {
912
+ // Standard
913
+ message: this.message,
914
+ name: this.name,
915
+ // Microsoft
916
+ description: this.description,
917
+ number: this.number,
918
+ // Mozilla
919
+ fileName: this.fileName,
920
+ lineNumber: this.lineNumber,
921
+ columnNumber: this.columnNumber,
922
+ stack: this.stack,
923
+ // Axios
924
+ config: utils$1.toJSONObject(this.config),
925
+ code: this.code,
926
+ status: this.status,
927
+ };
928
+ }
929
+ }
930
+
931
+ // This can be changed to static properties as soon as the parser options in .eslint.cjs are updated.
932
+ AxiosError.ERR_BAD_OPTION_VALUE = 'ERR_BAD_OPTION_VALUE';
933
+ AxiosError.ERR_BAD_OPTION = 'ERR_BAD_OPTION';
934
+ AxiosError.ECONNABORTED = 'ECONNABORTED';
935
+ AxiosError.ETIMEDOUT = 'ETIMEDOUT';
936
+ AxiosError.ERR_NETWORK = 'ERR_NETWORK';
937
+ AxiosError.ERR_FR_TOO_MANY_REDIRECTS = 'ERR_FR_TOO_MANY_REDIRECTS';
938
+ AxiosError.ERR_DEPRECATED = 'ERR_DEPRECATED';
939
+ AxiosError.ERR_BAD_RESPONSE = 'ERR_BAD_RESPONSE';
940
+ AxiosError.ERR_BAD_REQUEST = 'ERR_BAD_REQUEST';
941
+ AxiosError.ERR_CANCELED = 'ERR_CANCELED';
942
+ AxiosError.ERR_NOT_SUPPORT = 'ERR_NOT_SUPPORT';
943
+ AxiosError.ERR_INVALID_URL = 'ERR_INVALID_URL';
944
+
945
+ var AxiosError$1 = AxiosError;
946
+
947
+ // eslint-disable-next-line strict
948
+ var httpAdapter = null;
949
+
950
+ /**
951
+ * Determines if the given thing is a array or js object.
952
+ *
953
+ * @param {string} thing - The object or array to be visited.
954
+ *
955
+ * @returns {boolean}
956
+ */
957
+ function isVisitable(thing) {
958
+ return utils$1.isPlainObject(thing) || utils$1.isArray(thing);
959
+ }
960
+
961
+ /**
962
+ * It removes the brackets from the end of a string
963
+ *
964
+ * @param {string} key - The key of the parameter.
965
+ *
966
+ * @returns {string} the key without the brackets.
967
+ */
968
+ function removeBrackets(key) {
969
+ return utils$1.endsWith(key, '[]') ? key.slice(0, -2) : key;
970
+ }
971
+
972
+ /**
973
+ * It takes a path, a key, and a boolean, and returns a string
974
+ *
975
+ * @param {string} path - The path to the current key.
976
+ * @param {string} key - The key of the current object being iterated over.
977
+ * @param {string} dots - If true, the key will be rendered with dots instead of brackets.
978
+ *
979
+ * @returns {string} The path to the current key.
980
+ */
981
+ function renderKey(path, key, dots) {
982
+ if (!path) return key;
983
+ return path.concat(key).map(function each(token, i) {
984
+ // eslint-disable-next-line no-param-reassign
985
+ token = removeBrackets(token);
986
+ return !dots && i ? '[' + token + ']' : token;
987
+ }).join(dots ? '.' : '');
988
+ }
989
+
990
+ /**
991
+ * If the array is an array and none of its elements are visitable, then it's a flat array.
992
+ *
993
+ * @param {Array<any>} arr - The array to check
994
+ *
995
+ * @returns {boolean}
996
+ */
997
+ function isFlatArray(arr) {
998
+ return utils$1.isArray(arr) && !arr.some(isVisitable);
999
+ }
1000
+
1001
+ const predicates = utils$1.toFlatObject(utils$1, {}, null, function filter(prop) {
1002
+ return /^is[A-Z]/.test(prop);
1003
+ });
1004
+
1005
+ /**
1006
+ * Convert a data object to FormData
1007
+ *
1008
+ * @param {Object} obj
1009
+ * @param {?Object} [formData]
1010
+ * @param {?Object} [options]
1011
+ * @param {Function} [options.visitor]
1012
+ * @param {Boolean} [options.metaTokens = true]
1013
+ * @param {Boolean} [options.dots = false]
1014
+ * @param {?Boolean} [options.indexes = false]
1015
+ *
1016
+ * @returns {Object}
1017
+ **/
1018
+
1019
+ /**
1020
+ * It converts an object into a FormData object
1021
+ *
1022
+ * @param {Object<any, any>} obj - The object to convert to form data.
1023
+ * @param {string} formData - The FormData object to append to.
1024
+ * @param {Object<string, any>} options
1025
+ *
1026
+ * @returns
1027
+ */
1028
+ function toFormData(obj, formData, options) {
1029
+ if (!utils$1.isObject(obj)) {
1030
+ throw new TypeError('target must be an object');
1031
+ }
1032
+
1033
+ // eslint-disable-next-line no-param-reassign
1034
+ formData = formData || new (FormData)();
1035
+
1036
+ // eslint-disable-next-line no-param-reassign
1037
+ options = utils$1.toFlatObject(options, {
1038
+ metaTokens: true,
1039
+ dots: false,
1040
+ indexes: false
1041
+ }, false, function defined(option, source) {
1042
+ // eslint-disable-next-line no-eq-null,eqeqeq
1043
+ return !utils$1.isUndefined(source[option]);
1044
+ });
1045
+
1046
+ const metaTokens = options.metaTokens;
1047
+ // eslint-disable-next-line no-use-before-define
1048
+ const visitor = options.visitor || defaultVisitor;
1049
+ const dots = options.dots;
1050
+ const indexes = options.indexes;
1051
+ const _Blob = options.Blob || typeof Blob !== 'undefined' && Blob;
1052
+ const useBlob = _Blob && utils$1.isSpecCompliantForm(formData);
1053
+
1054
+ if (!utils$1.isFunction(visitor)) {
1055
+ throw new TypeError('visitor must be a function');
1056
+ }
1057
+
1058
+ function convertValue(value) {
1059
+ if (value === null) return '';
1060
+
1061
+ if (utils$1.isDate(value)) {
1062
+ return value.toISOString();
1063
+ }
1064
+
1065
+ if (utils$1.isBoolean(value)) {
1066
+ return value.toString();
1067
+ }
1068
+
1069
+ if (!useBlob && utils$1.isBlob(value)) {
1070
+ throw new AxiosError$1('Blob is not supported. Use a Buffer instead.');
1071
+ }
1072
+
1073
+ if (utils$1.isArrayBuffer(value) || utils$1.isTypedArray(value)) {
1074
+ return useBlob && typeof Blob === 'function' ? new Blob([value]) : Buffer.from(value);
1075
+ }
1076
+
1077
+ return value;
1078
+ }
1079
+
1080
+ /**
1081
+ * Default visitor.
1082
+ *
1083
+ * @param {*} value
1084
+ * @param {String|Number} key
1085
+ * @param {Array<String|Number>} path
1086
+ * @this {FormData}
1087
+ *
1088
+ * @returns {boolean} return true to visit the each prop of the value recursively
1089
+ */
1090
+ function defaultVisitor(value, key, path) {
1091
+ let arr = value;
1092
+
1093
+ if (value && !path && typeof value === 'object') {
1094
+ if (utils$1.endsWith(key, '{}')) {
1095
+ // eslint-disable-next-line no-param-reassign
1096
+ key = metaTokens ? key : key.slice(0, -2);
1097
+ // eslint-disable-next-line no-param-reassign
1098
+ value = JSON.stringify(value);
1099
+ } else if (
1100
+ (utils$1.isArray(value) && isFlatArray(value)) ||
1101
+ ((utils$1.isFileList(value) || utils$1.endsWith(key, '[]')) && (arr = utils$1.toArray(value))
1102
+ )) {
1103
+ // eslint-disable-next-line no-param-reassign
1104
+ key = removeBrackets(key);
1105
+
1106
+ arr.forEach(function each(el, index) {
1107
+ !(utils$1.isUndefined(el) || el === null) && formData.append(
1108
+ // eslint-disable-next-line no-nested-ternary
1109
+ indexes === true ? renderKey([key], index, dots) : (indexes === null ? key : key + '[]'),
1110
+ convertValue(el)
1111
+ );
1112
+ });
1113
+ return false;
1114
+ }
1115
+ }
1116
+
1117
+ if (isVisitable(value)) {
1118
+ return true;
1119
+ }
1120
+
1121
+ formData.append(renderKey(path, key, dots), convertValue(value));
1122
+
1123
+ return false;
1124
+ }
1125
+
1126
+ const stack = [];
1127
+
1128
+ const exposedHelpers = Object.assign(predicates, {
1129
+ defaultVisitor,
1130
+ convertValue,
1131
+ isVisitable
1132
+ });
1133
+
1134
+ function build(value, path) {
1135
+ if (utils$1.isUndefined(value)) return;
1136
+
1137
+ if (stack.indexOf(value) !== -1) {
1138
+ throw Error('Circular reference detected in ' + path.join('.'));
1139
+ }
1140
+
1141
+ stack.push(value);
1142
+
1143
+ utils$1.forEach(value, function each(el, key) {
1144
+ const result = !(utils$1.isUndefined(el) || el === null) && visitor.call(
1145
+ formData, el, utils$1.isString(key) ? key.trim() : key, path, exposedHelpers
1146
+ );
1147
+
1148
+ if (result === true) {
1149
+ build(el, path ? path.concat(key) : [key]);
1150
+ }
1151
+ });
1152
+
1153
+ stack.pop();
1154
+ }
1155
+
1156
+ if (!utils$1.isObject(obj)) {
1157
+ throw new TypeError('data must be an object');
1158
+ }
1159
+
1160
+ build(obj);
1161
+
1162
+ return formData;
1163
+ }
1164
+
1165
+ /**
1166
+ * It encodes a string by replacing all characters that are not in the unreserved set with
1167
+ * their percent-encoded equivalents
1168
+ *
1169
+ * @param {string} str - The string to encode.
1170
+ *
1171
+ * @returns {string} The encoded string.
1172
+ */
1173
+ function encode$1(str) {
1174
+ const charMap = {
1175
+ '!': '%21',
1176
+ "'": '%27',
1177
+ '(': '%28',
1178
+ ')': '%29',
1179
+ '~': '%7E',
1180
+ '%20': '+',
1181
+ '%00': '\x00'
1182
+ };
1183
+ return encodeURIComponent(str).replace(/[!'()~]|%20|%00/g, function replacer(match) {
1184
+ return charMap[match];
1185
+ });
1186
+ }
1187
+
1188
+ /**
1189
+ * It takes a params object and converts it to a FormData object
1190
+ *
1191
+ * @param {Object<string, any>} params - The parameters to be converted to a FormData object.
1192
+ * @param {Object<string, any>} options - The options object passed to the Axios constructor.
1193
+ *
1194
+ * @returns {void}
1195
+ */
1196
+ function AxiosURLSearchParams(params, options) {
1197
+ this._pairs = [];
1198
+
1199
+ params && toFormData(params, this, options);
1200
+ }
1201
+
1202
+ const prototype = AxiosURLSearchParams.prototype;
1203
+
1204
+ prototype.append = function append(name, value) {
1205
+ this._pairs.push([name, value]);
1206
+ };
1207
+
1208
+ prototype.toString = function toString(encoder) {
1209
+ const _encode = encoder ? function(value) {
1210
+ return encoder.call(this, value, encode$1);
1211
+ } : encode$1;
1212
+
1213
+ return this._pairs.map(function each(pair) {
1214
+ return _encode(pair[0]) + '=' + _encode(pair[1]);
1215
+ }, '').join('&');
1216
+ };
1217
+
1218
+ /**
1219
+ * It replaces all instances of the characters `:`, `$`, `,`, `+`, `[`, and `]` with their
1220
+ * URI encoded counterparts
1221
+ *
1222
+ * @param {string} val The value to be encoded.
1223
+ *
1224
+ * @returns {string} The encoded value.
1225
+ */
1226
+ function encode(val) {
1227
+ return encodeURIComponent(val).
1228
+ replace(/%3A/gi, ':').
1229
+ replace(/%24/g, '$').
1230
+ replace(/%2C/gi, ',').
1231
+ replace(/%20/g, '+');
1232
+ }
1233
+
1234
+ /**
1235
+ * Build a URL by appending params to the end
1236
+ *
1237
+ * @param {string} url The base of the url (e.g., http://www.google.com)
1238
+ * @param {object} [params] The params to be appended
1239
+ * @param {?(object|Function)} options
1240
+ *
1241
+ * @returns {string} The formatted url
1242
+ */
1243
+ function buildURL(url, params, options) {
1244
+ if (!params) {
1245
+ return url;
1246
+ }
1247
+
1248
+ const _encode = options && options.encode || encode;
1249
+
1250
+ const _options = utils$1.isFunction(options) ? {
1251
+ serialize: options
1252
+ } : options;
1253
+
1254
+ const serializeFn = _options && _options.serialize;
1255
+
1256
+ let serializedParams;
1257
+
1258
+ if (serializeFn) {
1259
+ serializedParams = serializeFn(params, _options);
1260
+ } else {
1261
+ serializedParams = utils$1.isURLSearchParams(params) ?
1262
+ params.toString() :
1263
+ new AxiosURLSearchParams(params, _options).toString(_encode);
1264
+ }
1265
+
1266
+ if (serializedParams) {
1267
+ const hashmarkIndex = url.indexOf("#");
1268
+
1269
+ if (hashmarkIndex !== -1) {
1270
+ url = url.slice(0, hashmarkIndex);
1271
+ }
1272
+ url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;
1273
+ }
1274
+
1275
+ return url;
1276
+ }
1277
+
1278
+ class InterceptorManager {
1279
+ constructor() {
1280
+ this.handlers = [];
1281
+ }
1282
+
1283
+ /**
1284
+ * Add a new interceptor to the stack
1285
+ *
1286
+ * @param {Function} fulfilled The function to handle `then` for a `Promise`
1287
+ * @param {Function} rejected The function to handle `reject` for a `Promise`
1288
+ * @param {Object} options The options for the interceptor, synchronous and runWhen
1289
+ *
1290
+ * @return {Number} An ID used to remove interceptor later
1291
+ */
1292
+ use(fulfilled, rejected, options) {
1293
+ this.handlers.push({
1294
+ fulfilled,
1295
+ rejected,
1296
+ synchronous: options ? options.synchronous : false,
1297
+ runWhen: options ? options.runWhen : null
1298
+ });
1299
+ return this.handlers.length - 1;
1300
+ }
1301
+
1302
+ /**
1303
+ * Remove an interceptor from the stack
1304
+ *
1305
+ * @param {Number} id The ID that was returned by `use`
1306
+ *
1307
+ * @returns {void}
1308
+ */
1309
+ eject(id) {
1310
+ if (this.handlers[id]) {
1311
+ this.handlers[id] = null;
1312
+ }
1313
+ }
1314
+
1315
+ /**
1316
+ * Clear all interceptors from the stack
1317
+ *
1318
+ * @returns {void}
1319
+ */
1320
+ clear() {
1321
+ if (this.handlers) {
1322
+ this.handlers = [];
1323
+ }
1324
+ }
1325
+
1326
+ /**
1327
+ * Iterate over all the registered interceptors
1328
+ *
1329
+ * This method is particularly useful for skipping over any
1330
+ * interceptors that may have become `null` calling `eject`.
1331
+ *
1332
+ * @param {Function} fn The function to call for each interceptor
1333
+ *
1334
+ * @returns {void}
1335
+ */
1336
+ forEach(fn) {
1337
+ utils$1.forEach(this.handlers, function forEachHandler(h) {
1338
+ if (h !== null) {
1339
+ fn(h);
1340
+ }
1341
+ });
1342
+ }
1343
+ }
1344
+
1345
+ var InterceptorManager$1 = InterceptorManager;
1346
+
1347
+ var transitionalDefaults = {
1348
+ silentJSONParsing: true,
1349
+ forcedJSONParsing: true,
1350
+ clarifyTimeoutError: false,
1351
+ legacyInterceptorReqResOrdering: true
1352
+ };
1353
+
1354
+ var URLSearchParams$1 = typeof URLSearchParams !== 'undefined' ? URLSearchParams : AxiosURLSearchParams;
1355
+
1356
+ var FormData$1 = typeof FormData !== 'undefined' ? FormData : null;
1357
+
1358
+ var Blob$1 = typeof Blob !== 'undefined' ? Blob : null;
1359
+
1360
+ var platform$1 = {
1361
+ isBrowser: true,
1362
+ classes: {
1363
+ URLSearchParams: URLSearchParams$1,
1364
+ FormData: FormData$1,
1365
+ Blob: Blob$1
1366
+ },
1367
+ protocols: ['http', 'https', 'file', 'blob', 'url', 'data']
1368
+ };
1369
+
1370
+ const hasBrowserEnv = typeof window !== 'undefined' && typeof document !== 'undefined';
1371
+
1372
+ const _navigator = typeof navigator === 'object' && navigator || undefined;
1373
+
1374
+ /**
1375
+ * Determine if we're running in a standard browser environment
1376
+ *
1377
+ * This allows axios to run in a web worker, and react-native.
1378
+ * Both environments support XMLHttpRequest, but not fully standard globals.
1379
+ *
1380
+ * web workers:
1381
+ * typeof window -> undefined
1382
+ * typeof document -> undefined
1383
+ *
1384
+ * react-native:
1385
+ * navigator.product -> 'ReactNative'
1386
+ * nativescript
1387
+ * navigator.product -> 'NativeScript' or 'NS'
1388
+ *
1389
+ * @returns {boolean}
1390
+ */
1391
+ const hasStandardBrowserEnv = hasBrowserEnv &&
1392
+ (!_navigator || ['ReactNative', 'NativeScript', 'NS'].indexOf(_navigator.product) < 0);
1393
+
1394
+ /**
1395
+ * Determine if we're running in a standard browser webWorker environment
1396
+ *
1397
+ * Although the `isStandardBrowserEnv` method indicates that
1398
+ * `allows axios to run in a web worker`, the WebWorker will still be
1399
+ * filtered out due to its judgment standard
1400
+ * `typeof window !== 'undefined' && typeof document !== 'undefined'`.
1401
+ * This leads to a problem when axios post `FormData` in webWorker
1402
+ */
1403
+ const hasStandardBrowserWebWorkerEnv = (() => {
1404
+ return (
1405
+ typeof WorkerGlobalScope !== 'undefined' &&
1406
+ // eslint-disable-next-line no-undef
1407
+ self instanceof WorkerGlobalScope &&
1408
+ typeof self.importScripts === 'function'
1409
+ );
1410
+ })();
1411
+
1412
+ const origin = hasBrowserEnv && window.location.href || 'http://localhost';
1413
+
1414
+ var utils = /*#__PURE__*/Object.freeze({
1415
+ __proto__: null,
1416
+ hasBrowserEnv: hasBrowserEnv,
1417
+ hasStandardBrowserWebWorkerEnv: hasStandardBrowserWebWorkerEnv,
1418
+ hasStandardBrowserEnv: hasStandardBrowserEnv,
1419
+ navigator: _navigator,
1420
+ origin: origin
1421
+ });
1422
+
1423
+ var platform = {
1424
+ ...utils,
1425
+ ...platform$1
1426
+ };
1427
+
1428
+ function toURLEncodedForm(data, options) {
1429
+ return toFormData(data, new platform.classes.URLSearchParams(), {
1430
+ visitor: function(value, key, path, helpers) {
1431
+ if (platform.isNode && utils$1.isBuffer(value)) {
1432
+ this.append(key, value.toString('base64'));
1433
+ return false;
1434
+ }
1435
+
1436
+ return helpers.defaultVisitor.apply(this, arguments);
1437
+ },
1438
+ ...options
1439
+ });
1440
+ }
1441
+
1442
+ /**
1443
+ * It takes a string like `foo[x][y][z]` and returns an array like `['foo', 'x', 'y', 'z']
1444
+ *
1445
+ * @param {string} name - The name of the property to get.
1446
+ *
1447
+ * @returns An array of strings.
1448
+ */
1449
+ function parsePropPath(name) {
1450
+ // foo[x][y][z]
1451
+ // foo.x.y.z
1452
+ // foo-x-y-z
1453
+ // foo x y z
1454
+ return utils$1.matchAll(/\w+|\[(\w*)]/g, name).map(match => {
1455
+ return match[0] === '[]' ? '' : match[1] || match[0];
1456
+ });
1457
+ }
1458
+
1459
+ /**
1460
+ * Convert an array to an object.
1461
+ *
1462
+ * @param {Array<any>} arr - The array to convert to an object.
1463
+ *
1464
+ * @returns An object with the same keys and values as the array.
1465
+ */
1466
+ function arrayToObject(arr) {
1467
+ const obj = {};
1468
+ const keys = Object.keys(arr);
1469
+ let i;
1470
+ const len = keys.length;
1471
+ let key;
1472
+ for (i = 0; i < len; i++) {
1473
+ key = keys[i];
1474
+ obj[key] = arr[key];
1475
+ }
1476
+ return obj;
1477
+ }
1478
+
1479
+ /**
1480
+ * It takes a FormData object and returns a JavaScript object
1481
+ *
1482
+ * @param {string} formData The FormData object to convert to JSON.
1483
+ *
1484
+ * @returns {Object<string, any> | null} The converted object.
1485
+ */
1486
+ function formDataToJSON(formData) {
1487
+ function buildPath(path, value, target, index) {
1488
+ let name = path[index++];
1489
+
1490
+ if (name === '__proto__') return true;
1491
+
1492
+ const isNumericKey = Number.isFinite(+name);
1493
+ const isLast = index >= path.length;
1494
+ name = !name && utils$1.isArray(target) ? target.length : name;
1495
+
1496
+ if (isLast) {
1497
+ if (utils$1.hasOwnProp(target, name)) {
1498
+ target[name] = [target[name], value];
1499
+ } else {
1500
+ target[name] = value;
1501
+ }
1502
+
1503
+ return !isNumericKey;
1504
+ }
1505
+
1506
+ if (!target[name] || !utils$1.isObject(target[name])) {
1507
+ target[name] = [];
1508
+ }
1509
+
1510
+ const result = buildPath(path, value, target[name], index);
1511
+
1512
+ if (result && utils$1.isArray(target[name])) {
1513
+ target[name] = arrayToObject(target[name]);
1514
+ }
1515
+
1516
+ return !isNumericKey;
1517
+ }
1518
+
1519
+ if (utils$1.isFormData(formData) && utils$1.isFunction(formData.entries)) {
1520
+ const obj = {};
1521
+
1522
+ utils$1.forEachEntry(formData, (name, value) => {
1523
+ buildPath(parsePropPath(name), value, obj, 0);
1524
+ });
1525
+
1526
+ return obj;
1527
+ }
1528
+
1529
+ return null;
1530
+ }
1531
+
1532
+ /**
1533
+ * It takes a string, tries to parse it, and if it fails, it returns the stringified version
1534
+ * of the input
1535
+ *
1536
+ * @param {any} rawValue - The value to be stringified.
1537
+ * @param {Function} parser - A function that parses a string into a JavaScript object.
1538
+ * @param {Function} encoder - A function that takes a value and returns a string.
1539
+ *
1540
+ * @returns {string} A stringified version of the rawValue.
1541
+ */
1542
+ function stringifySafely(rawValue, parser, encoder) {
1543
+ if (utils$1.isString(rawValue)) {
1544
+ try {
1545
+ (parser || JSON.parse)(rawValue);
1546
+ return utils$1.trim(rawValue);
1547
+ } catch (e) {
1548
+ if (e.name !== 'SyntaxError') {
1549
+ throw e;
1550
+ }
1551
+ }
1552
+ }
1553
+
1554
+ return (encoder || JSON.stringify)(rawValue);
1555
+ }
1556
+
1557
+ const defaults = {
1558
+
1559
+ transitional: transitionalDefaults,
1560
+
1561
+ adapter: ['xhr', 'http', 'fetch'],
1562
+
1563
+ transformRequest: [function transformRequest(data, headers) {
1564
+ const contentType = headers.getContentType() || '';
1565
+ const hasJSONContentType = contentType.indexOf('application/json') > -1;
1566
+ const isObjectPayload = utils$1.isObject(data);
1567
+
1568
+ if (isObjectPayload && utils$1.isHTMLForm(data)) {
1569
+ data = new FormData(data);
1570
+ }
1571
+
1572
+ const isFormData = utils$1.isFormData(data);
1573
+
1574
+ if (isFormData) {
1575
+ return hasJSONContentType ? JSON.stringify(formDataToJSON(data)) : data;
1576
+ }
1577
+
1578
+ if (utils$1.isArrayBuffer(data) ||
1579
+ utils$1.isBuffer(data) ||
1580
+ utils$1.isStream(data) ||
1581
+ utils$1.isFile(data) ||
1582
+ utils$1.isBlob(data) ||
1583
+ utils$1.isReadableStream(data)
1584
+ ) {
1585
+ return data;
1586
+ }
1587
+ if (utils$1.isArrayBufferView(data)) {
1588
+ return data.buffer;
1589
+ }
1590
+ if (utils$1.isURLSearchParams(data)) {
1591
+ headers.setContentType('application/x-www-form-urlencoded;charset=utf-8', false);
1592
+ return data.toString();
1593
+ }
1594
+
1595
+ let isFileList;
1596
+
1597
+ if (isObjectPayload) {
1598
+ if (contentType.indexOf('application/x-www-form-urlencoded') > -1) {
1599
+ return toURLEncodedForm(data, this.formSerializer).toString();
1600
+ }
1601
+
1602
+ if ((isFileList = utils$1.isFileList(data)) || contentType.indexOf('multipart/form-data') > -1) {
1603
+ const _FormData = this.env && this.env.FormData;
1604
+
1605
+ return toFormData(
1606
+ isFileList ? {'files[]': data} : data,
1607
+ _FormData && new _FormData(),
1608
+ this.formSerializer
1609
+ );
1610
+ }
1611
+ }
1612
+
1613
+ if (isObjectPayload || hasJSONContentType ) {
1614
+ headers.setContentType('application/json', false);
1615
+ return stringifySafely(data);
1616
+ }
1617
+
1618
+ return data;
1619
+ }],
1620
+
1621
+ transformResponse: [function transformResponse(data) {
1622
+ const transitional = this.transitional || defaults.transitional;
1623
+ const forcedJSONParsing = transitional && transitional.forcedJSONParsing;
1624
+ const JSONRequested = this.responseType === 'json';
1625
+
1626
+ if (utils$1.isResponse(data) || utils$1.isReadableStream(data)) {
1627
+ return data;
1628
+ }
1629
+
1630
+ if (data && utils$1.isString(data) && ((forcedJSONParsing && !this.responseType) || JSONRequested)) {
1631
+ const silentJSONParsing = transitional && transitional.silentJSONParsing;
1632
+ const strictJSONParsing = !silentJSONParsing && JSONRequested;
1633
+
1634
+ try {
1635
+ return JSON.parse(data, this.parseReviver);
1636
+ } catch (e) {
1637
+ if (strictJSONParsing) {
1638
+ if (e.name === 'SyntaxError') {
1639
+ throw AxiosError$1.from(e, AxiosError$1.ERR_BAD_RESPONSE, this, null, this.response);
1640
+ }
1641
+ throw e;
1642
+ }
1643
+ }
1644
+ }
1645
+
1646
+ return data;
1647
+ }],
1648
+
1649
+ /**
1650
+ * A timeout in milliseconds to abort a request. If set to 0 (default) a
1651
+ * timeout is not created.
1652
+ */
1653
+ timeout: 0,
1654
+
1655
+ xsrfCookieName: 'XSRF-TOKEN',
1656
+ xsrfHeaderName: 'X-XSRF-TOKEN',
1657
+
1658
+ maxContentLength: -1,
1659
+ maxBodyLength: -1,
1660
+
1661
+ env: {
1662
+ FormData: platform.classes.FormData,
1663
+ Blob: platform.classes.Blob
1664
+ },
1665
+
1666
+ validateStatus: function validateStatus(status) {
1667
+ return status >= 200 && status < 300;
1668
+ },
1669
+
1670
+ headers: {
1671
+ common: {
1672
+ 'Accept': 'application/json, text/plain, */*',
1673
+ 'Content-Type': undefined
1674
+ }
1675
+ }
1676
+ };
1677
+
1678
+ utils$1.forEach(['delete', 'get', 'head', 'post', 'put', 'patch'], (method) => {
1679
+ defaults.headers[method] = {};
1680
+ });
1681
+
1682
+ var defaults$1 = defaults;
1683
+
1684
+ // RawAxiosHeaders whose duplicates are ignored by node
1685
+ // c.f. https://nodejs.org/api/http.html#http_message_headers
1686
+ const ignoreDuplicateOf = utils$1.toObjectSet([
1687
+ 'age', 'authorization', 'content-length', 'content-type', 'etag',
1688
+ 'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since',
1689
+ 'last-modified', 'location', 'max-forwards', 'proxy-authorization',
1690
+ 'referer', 'retry-after', 'user-agent'
1691
+ ]);
1692
+
1693
+ /**
1694
+ * Parse headers into an object
1695
+ *
1696
+ * ```
1697
+ * Date: Wed, 27 Aug 2014 08:58:49 GMT
1698
+ * Content-Type: application/json
1699
+ * Connection: keep-alive
1700
+ * Transfer-Encoding: chunked
1701
+ * ```
1702
+ *
1703
+ * @param {String} rawHeaders Headers needing to be parsed
1704
+ *
1705
+ * @returns {Object} Headers parsed into an object
1706
+ */
1707
+ var parseHeaders = rawHeaders => {
1708
+ const parsed = {};
1709
+ let key;
1710
+ let val;
1711
+ let i;
1712
+
1713
+ rawHeaders && rawHeaders.split('\n').forEach(function parser(line) {
1714
+ i = line.indexOf(':');
1715
+ key = line.substring(0, i).trim().toLowerCase();
1716
+ val = line.substring(i + 1).trim();
1717
+
1718
+ if (!key || (parsed[key] && ignoreDuplicateOf[key])) {
1719
+ return;
1720
+ }
1721
+
1722
+ if (key === 'set-cookie') {
1723
+ if (parsed[key]) {
1724
+ parsed[key].push(val);
1725
+ } else {
1726
+ parsed[key] = [val];
1727
+ }
1728
+ } else {
1729
+ parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;
1730
+ }
1731
+ });
1732
+
1733
+ return parsed;
1734
+ };
1735
+
1736
+ const $internals = Symbol('internals');
1737
+
1738
+ function normalizeHeader(header) {
1739
+ return header && String(header).trim().toLowerCase();
1740
+ }
1741
+
1742
+ function normalizeValue(value) {
1743
+ if (value === false || value == null) {
1744
+ return value;
1745
+ }
1746
+
1747
+ return utils$1.isArray(value) ? value.map(normalizeValue) : String(value);
1748
+ }
1749
+
1750
+ function parseTokens(str) {
1751
+ const tokens = Object.create(null);
1752
+ const tokensRE = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
1753
+ let match;
1754
+
1755
+ while ((match = tokensRE.exec(str))) {
1756
+ tokens[match[1]] = match[2];
1757
+ }
1758
+
1759
+ return tokens;
1760
+ }
1761
+
1762
+ const isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());
1763
+
1764
+ function matchHeaderValue(context, value, header, filter, isHeaderNameFilter) {
1765
+ if (utils$1.isFunction(filter)) {
1766
+ return filter.call(this, value, header);
1767
+ }
1768
+
1769
+ if (isHeaderNameFilter) {
1770
+ value = header;
1771
+ }
1772
+
1773
+ if (!utils$1.isString(value)) return;
1774
+
1775
+ if (utils$1.isString(filter)) {
1776
+ return value.indexOf(filter) !== -1;
1777
+ }
1778
+
1779
+ if (utils$1.isRegExp(filter)) {
1780
+ return filter.test(value);
1781
+ }
1782
+ }
1783
+
1784
+ function formatHeader(header) {
1785
+ return header.trim()
1786
+ .toLowerCase().replace(/([a-z\d])(\w*)/g, (w, char, str) => {
1787
+ return char.toUpperCase() + str;
1788
+ });
1789
+ }
1790
+
1791
+ function buildAccessors(obj, header) {
1792
+ const accessorName = utils$1.toCamelCase(' ' + header);
1793
+
1794
+ ['get', 'set', 'has'].forEach(methodName => {
1795
+ Object.defineProperty(obj, methodName + accessorName, {
1796
+ value: function(arg1, arg2, arg3) {
1797
+ return this[methodName].call(this, header, arg1, arg2, arg3);
1798
+ },
1799
+ configurable: true
1800
+ });
1801
+ });
1802
+ }
1803
+
1804
+ class AxiosHeaders {
1805
+ constructor(headers) {
1806
+ headers && this.set(headers);
1807
+ }
1808
+
1809
+ set(header, valueOrRewrite, rewrite) {
1810
+ const self = this;
1811
+
1812
+ function setHeader(_value, _header, _rewrite) {
1813
+ const lHeader = normalizeHeader(_header);
1814
+
1815
+ if (!lHeader) {
1816
+ throw new Error('header name must be a non-empty string');
1817
+ }
1818
+
1819
+ const key = utils$1.findKey(self, lHeader);
1820
+
1821
+ if(!key || self[key] === undefined || _rewrite === true || (_rewrite === undefined && self[key] !== false)) {
1822
+ self[key || _header] = normalizeValue(_value);
1823
+ }
1824
+ }
1825
+
1826
+ const setHeaders = (headers, _rewrite) =>
1827
+ utils$1.forEach(headers, (_value, _header) => setHeader(_value, _header, _rewrite));
1828
+
1829
+ if (utils$1.isPlainObject(header) || header instanceof this.constructor) {
1830
+ setHeaders(header, valueOrRewrite);
1831
+ } else if(utils$1.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {
1832
+ setHeaders(parseHeaders(header), valueOrRewrite);
1833
+ } else if (utils$1.isObject(header) && utils$1.isIterable(header)) {
1834
+ let obj = {}, dest, key;
1835
+ for (const entry of header) {
1836
+ if (!utils$1.isArray(entry)) {
1837
+ throw TypeError('Object iterator must return a key-value pair');
1838
+ }
1839
+
1840
+ obj[key = entry[0]] = (dest = obj[key]) ?
1841
+ (utils$1.isArray(dest) ? [...dest, entry[1]] : [dest, entry[1]]) : entry[1];
1842
+ }
1843
+
1844
+ setHeaders(obj, valueOrRewrite);
1845
+ } else {
1846
+ header != null && setHeader(valueOrRewrite, header, rewrite);
1847
+ }
1848
+
1849
+ return this;
1850
+ }
1851
+
1852
+ get(header, parser) {
1853
+ header = normalizeHeader(header);
1854
+
1855
+ if (header) {
1856
+ const key = utils$1.findKey(this, header);
1857
+
1858
+ if (key) {
1859
+ const value = this[key];
1860
+
1861
+ if (!parser) {
1862
+ return value;
1863
+ }
1864
+
1865
+ if (parser === true) {
1866
+ return parseTokens(value);
1867
+ }
1868
+
1869
+ if (utils$1.isFunction(parser)) {
1870
+ return parser.call(this, value, key);
1871
+ }
1872
+
1873
+ if (utils$1.isRegExp(parser)) {
1874
+ return parser.exec(value);
1875
+ }
1876
+
1877
+ throw new TypeError('parser must be boolean|regexp|function');
1878
+ }
1879
+ }
1880
+ }
1881
+
1882
+ has(header, matcher) {
1883
+ header = normalizeHeader(header);
1884
+
1885
+ if (header) {
1886
+ const key = utils$1.findKey(this, header);
1887
+
1888
+ return !!(key && this[key] !== undefined && (!matcher || matchHeaderValue(this, this[key], key, matcher)));
1889
+ }
1890
+
1891
+ return false;
1892
+ }
1893
+
1894
+ delete(header, matcher) {
1895
+ const self = this;
1896
+ let deleted = false;
1897
+
1898
+ function deleteHeader(_header) {
1899
+ _header = normalizeHeader(_header);
1900
+
1901
+ if (_header) {
1902
+ const key = utils$1.findKey(self, _header);
1903
+
1904
+ if (key && (!matcher || matchHeaderValue(self, self[key], key, matcher))) {
1905
+ delete self[key];
1906
+
1907
+ deleted = true;
1908
+ }
1909
+ }
1910
+ }
1911
+
1912
+ if (utils$1.isArray(header)) {
1913
+ header.forEach(deleteHeader);
1914
+ } else {
1915
+ deleteHeader(header);
1916
+ }
1917
+
1918
+ return deleted;
1919
+ }
1920
+
1921
+ clear(matcher) {
1922
+ const keys = Object.keys(this);
1923
+ let i = keys.length;
1924
+ let deleted = false;
1925
+
1926
+ while (i--) {
1927
+ const key = keys[i];
1928
+ if(!matcher || matchHeaderValue(this, this[key], key, matcher, true)) {
1929
+ delete this[key];
1930
+ deleted = true;
1931
+ }
1932
+ }
1933
+
1934
+ return deleted;
1935
+ }
1936
+
1937
+ normalize(format) {
1938
+ const self = this;
1939
+ const headers = {};
1940
+
1941
+ utils$1.forEach(this, (value, header) => {
1942
+ const key = utils$1.findKey(headers, header);
1943
+
1944
+ if (key) {
1945
+ self[key] = normalizeValue(value);
1946
+ delete self[header];
1947
+ return;
1948
+ }
1949
+
1950
+ const normalized = format ? formatHeader(header) : String(header).trim();
1951
+
1952
+ if (normalized !== header) {
1953
+ delete self[header];
1954
+ }
1955
+
1956
+ self[normalized] = normalizeValue(value);
1957
+
1958
+ headers[normalized] = true;
1959
+ });
1960
+
1961
+ return this;
1962
+ }
1963
+
1964
+ concat(...targets) {
1965
+ return this.constructor.concat(this, ...targets);
1966
+ }
1967
+
1968
+ toJSON(asStrings) {
1969
+ const obj = Object.create(null);
1970
+
1971
+ utils$1.forEach(this, (value, header) => {
1972
+ value != null && value !== false && (obj[header] = asStrings && utils$1.isArray(value) ? value.join(', ') : value);
1973
+ });
1974
+
1975
+ return obj;
1976
+ }
1977
+
1978
+ [Symbol.iterator]() {
1979
+ return Object.entries(this.toJSON())[Symbol.iterator]();
1980
+ }
1981
+
1982
+ toString() {
1983
+ return Object.entries(this.toJSON()).map(([header, value]) => header + ': ' + value).join('\n');
1984
+ }
1985
+
1986
+ getSetCookie() {
1987
+ return this.get("set-cookie") || [];
1988
+ }
1989
+
1990
+ get [Symbol.toStringTag]() {
1991
+ return 'AxiosHeaders';
1992
+ }
1993
+
1994
+ static from(thing) {
1995
+ return thing instanceof this ? thing : new this(thing);
1996
+ }
1997
+
1998
+ static concat(first, ...targets) {
1999
+ const computed = new this(first);
2000
+
2001
+ targets.forEach((target) => computed.set(target));
2002
+
2003
+ return computed;
2004
+ }
2005
+
2006
+ static accessor(header) {
2007
+ const internals = this[$internals] = (this[$internals] = {
2008
+ accessors: {}
2009
+ });
2010
+
2011
+ const accessors = internals.accessors;
2012
+ const prototype = this.prototype;
2013
+
2014
+ function defineAccessor(_header) {
2015
+ const lHeader = normalizeHeader(_header);
2016
+
2017
+ if (!accessors[lHeader]) {
2018
+ buildAccessors(prototype, _header);
2019
+ accessors[lHeader] = true;
2020
+ }
2021
+ }
2022
+
2023
+ utils$1.isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header);
2024
+
2025
+ return this;
2026
+ }
2027
+ }
2028
+
2029
+ AxiosHeaders.accessor(['Content-Type', 'Content-Length', 'Accept', 'Accept-Encoding', 'User-Agent', 'Authorization']);
2030
+
2031
+ // reserved names hotfix
2032
+ utils$1.reduceDescriptors(AxiosHeaders.prototype, ({value}, key) => {
2033
+ let mapped = key[0].toUpperCase() + key.slice(1); // map `set` => `Set`
2034
+ return {
2035
+ get: () => value,
2036
+ set(headerValue) {
2037
+ this[mapped] = headerValue;
2038
+ }
2039
+ }
2040
+ });
2041
+
2042
+ utils$1.freezeMethods(AxiosHeaders);
2043
+
2044
+ var AxiosHeaders$1 = AxiosHeaders;
2045
+
2046
+ /**
2047
+ * Transform the data for a request or a response
2048
+ *
2049
+ * @param {Array|Function} fns A single function or Array of functions
2050
+ * @param {?Object} response The response object
2051
+ *
2052
+ * @returns {*} The resulting transformed data
2053
+ */
2054
+ function transformData(fns, response) {
2055
+ const config = this || defaults$1;
2056
+ const context = response || config;
2057
+ const headers = AxiosHeaders$1.from(context.headers);
2058
+ let data = context.data;
2059
+
2060
+ utils$1.forEach(fns, function transform(fn) {
2061
+ data = fn.call(config, data, headers.normalize(), response ? response.status : undefined);
2062
+ });
2063
+
2064
+ headers.normalize();
2065
+
2066
+ return data;
2067
+ }
2068
+
2069
+ function isCancel(value) {
2070
+ return !!(value && value.__CANCEL__);
2071
+ }
2072
+
2073
+ class CanceledError extends AxiosError$1 {
2074
+ /**
2075
+ * A `CanceledError` is an object that is thrown when an operation is canceled.
2076
+ *
2077
+ * @param {string=} message The message.
2078
+ * @param {Object=} config The config.
2079
+ * @param {Object=} request The request.
2080
+ *
2081
+ * @returns {CanceledError} The created error.
2082
+ */
2083
+ constructor(message, config, request) {
2084
+ super(message == null ? 'canceled' : message, AxiosError$1.ERR_CANCELED, config, request);
2085
+ this.name = 'CanceledError';
2086
+ this.__CANCEL__ = true;
2087
+ }
2088
+ }
2089
+
2090
+ var CanceledError$1 = CanceledError;
2091
+
2092
+ /**
2093
+ * Resolve or reject a Promise based on response status.
2094
+ *
2095
+ * @param {Function} resolve A function that resolves the promise.
2096
+ * @param {Function} reject A function that rejects the promise.
2097
+ * @param {object} response The response.
2098
+ *
2099
+ * @returns {object} The response.
2100
+ */
2101
+ function settle(resolve, reject, response) {
2102
+ const validateStatus = response.config.validateStatus;
2103
+ if (!response.status || !validateStatus || validateStatus(response.status)) {
2104
+ resolve(response);
2105
+ } else {
2106
+ reject(new AxiosError$1(
2107
+ 'Request failed with status code ' + response.status,
2108
+ [AxiosError$1.ERR_BAD_REQUEST, AxiosError$1.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4],
2109
+ response.config,
2110
+ response.request,
2111
+ response
2112
+ ));
2113
+ }
2114
+ }
2115
+
2116
+ function parseProtocol(url) {
2117
+ const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url);
2118
+ return match && match[1] || '';
2119
+ }
2120
+
2121
+ /**
2122
+ * Calculate data maxRate
2123
+ * @param {Number} [samplesCount= 10]
2124
+ * @param {Number} [min= 1000]
2125
+ * @returns {Function}
2126
+ */
2127
+ function speedometer(samplesCount, min) {
2128
+ samplesCount = samplesCount || 10;
2129
+ const bytes = new Array(samplesCount);
2130
+ const timestamps = new Array(samplesCount);
2131
+ let head = 0;
2132
+ let tail = 0;
2133
+ let firstSampleTS;
2134
+
2135
+ min = min !== undefined ? min : 1000;
2136
+
2137
+ return function push(chunkLength) {
2138
+ const now = Date.now();
2139
+
2140
+ const startedAt = timestamps[tail];
2141
+
2142
+ if (!firstSampleTS) {
2143
+ firstSampleTS = now;
2144
+ }
2145
+
2146
+ bytes[head] = chunkLength;
2147
+ timestamps[head] = now;
2148
+
2149
+ let i = tail;
2150
+ let bytesCount = 0;
2151
+
2152
+ while (i !== head) {
2153
+ bytesCount += bytes[i++];
2154
+ i = i % samplesCount;
2155
+ }
2156
+
2157
+ head = (head + 1) % samplesCount;
2158
+
2159
+ if (head === tail) {
2160
+ tail = (tail + 1) % samplesCount;
2161
+ }
2162
+
2163
+ if (now - firstSampleTS < min) {
2164
+ return;
2165
+ }
2166
+
2167
+ const passed = startedAt && now - startedAt;
2168
+
2169
+ return passed ? Math.round(bytesCount * 1000 / passed) : undefined;
2170
+ };
2171
+ }
2172
+
2173
+ /**
2174
+ * Throttle decorator
2175
+ * @param {Function} fn
2176
+ * @param {Number} freq
2177
+ * @return {Function}
2178
+ */
2179
+ function throttle(fn, freq) {
2180
+ let timestamp = 0;
2181
+ let threshold = 1000 / freq;
2182
+ let lastArgs;
2183
+ let timer;
2184
+
2185
+ const invoke = (args, now = Date.now()) => {
2186
+ timestamp = now;
2187
+ lastArgs = null;
2188
+ if (timer) {
2189
+ clearTimeout(timer);
2190
+ timer = null;
2191
+ }
2192
+ fn(...args);
2193
+ };
2194
+
2195
+ const throttled = (...args) => {
2196
+ const now = Date.now();
2197
+ const passed = now - timestamp;
2198
+ if ( passed >= threshold) {
2199
+ invoke(args, now);
2200
+ } else {
2201
+ lastArgs = args;
2202
+ if (!timer) {
2203
+ timer = setTimeout(() => {
2204
+ timer = null;
2205
+ invoke(lastArgs);
2206
+ }, threshold - passed);
2207
+ }
2208
+ }
2209
+ };
2210
+
2211
+ const flush = () => lastArgs && invoke(lastArgs);
2212
+
2213
+ return [throttled, flush];
2214
+ }
2215
+
2216
+ const progressEventReducer = (listener, isDownloadStream, freq = 3) => {
2217
+ let bytesNotified = 0;
2218
+ const _speedometer = speedometer(50, 250);
2219
+
2220
+ return throttle(e => {
2221
+ const loaded = e.loaded;
2222
+ const total = e.lengthComputable ? e.total : undefined;
2223
+ const progressBytes = loaded - bytesNotified;
2224
+ const rate = _speedometer(progressBytes);
2225
+ const inRange = loaded <= total;
2226
+
2227
+ bytesNotified = loaded;
2228
+
2229
+ const data = {
2230
+ loaded,
2231
+ total,
2232
+ progress: total ? (loaded / total) : undefined,
2233
+ bytes: progressBytes,
2234
+ rate: rate ? rate : undefined,
2235
+ estimated: rate && total && inRange ? (total - loaded) / rate : undefined,
2236
+ event: e,
2237
+ lengthComputable: total != null,
2238
+ [isDownloadStream ? 'download' : 'upload']: true
2239
+ };
2240
+
2241
+ listener(data);
2242
+ }, freq);
2243
+ };
2244
+
2245
+ const progressEventDecorator = (total, throttled) => {
2246
+ const lengthComputable = total != null;
2247
+
2248
+ return [(loaded) => throttled[0]({
2249
+ lengthComputable,
2250
+ total,
2251
+ loaded
2252
+ }), throttled[1]];
2253
+ };
2254
+
2255
+ const asyncDecorator = (fn) => (...args) => utils$1.asap(() => fn(...args));
2256
+
2257
+ var isURLSameOrigin = platform.hasStandardBrowserEnv ? ((origin, isMSIE) => (url) => {
2258
+ url = new URL(url, platform.origin);
2259
+
2260
+ return (
2261
+ origin.protocol === url.protocol &&
2262
+ origin.host === url.host &&
2263
+ (isMSIE || origin.port === url.port)
2264
+ );
2265
+ })(
2266
+ new URL(platform.origin),
2267
+ platform.navigator && /(msie|trident)/i.test(platform.navigator.userAgent)
2268
+ ) : () => true;
2269
+
2270
+ var cookies = platform.hasStandardBrowserEnv ?
2271
+
2272
+ // Standard browser envs support document.cookie
2273
+ {
2274
+ write(name, value, expires, path, domain, secure, sameSite) {
2275
+ if (typeof document === 'undefined') return;
2276
+
2277
+ const cookie = [`${name}=${encodeURIComponent(value)}`];
2278
+
2279
+ if (utils$1.isNumber(expires)) {
2280
+ cookie.push(`expires=${new Date(expires).toUTCString()}`);
2281
+ }
2282
+ if (utils$1.isString(path)) {
2283
+ cookie.push(`path=${path}`);
2284
+ }
2285
+ if (utils$1.isString(domain)) {
2286
+ cookie.push(`domain=${domain}`);
2287
+ }
2288
+ if (secure === true) {
2289
+ cookie.push('secure');
2290
+ }
2291
+ if (utils$1.isString(sameSite)) {
2292
+ cookie.push(`SameSite=${sameSite}`);
2293
+ }
2294
+
2295
+ document.cookie = cookie.join('; ');
2296
+ },
2297
+
2298
+ read(name) {
2299
+ if (typeof document === 'undefined') return null;
2300
+ const match = document.cookie.match(new RegExp('(?:^|; )' + name + '=([^;]*)'));
2301
+ return match ? decodeURIComponent(match[1]) : null;
2302
+ },
2303
+
2304
+ remove(name) {
2305
+ this.write(name, '', Date.now() - 86400000, '/');
2306
+ }
2307
+ }
2308
+
2309
+ :
2310
+
2311
+ // Non-standard browser env (web workers, react-native) lack needed support.
2312
+ {
2313
+ write() {},
2314
+ read() {
2315
+ return null;
2316
+ },
2317
+ remove() {}
2318
+ };
2319
+
2320
+ /**
2321
+ * Determines whether the specified URL is absolute
2322
+ *
2323
+ * @param {string} url The URL to test
2324
+ *
2325
+ * @returns {boolean} True if the specified URL is absolute, otherwise false
2326
+ */
2327
+ function isAbsoluteURL(url) {
2328
+ // A URL is considered absolute if it begins with "<scheme>://" or "//" (protocol-relative URL).
2329
+ // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed
2330
+ // by any combination of letters, digits, plus, period, or hyphen.
2331
+ if (typeof url !== 'string') {
2332
+ return false;
2333
+ }
2334
+
2335
+ return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url);
2336
+ }
2337
+
2338
+ /**
2339
+ * Creates a new URL by combining the specified URLs
2340
+ *
2341
+ * @param {string} baseURL The base URL
2342
+ * @param {string} relativeURL The relative URL
2343
+ *
2344
+ * @returns {string} The combined URL
2345
+ */
2346
+ function combineURLs(baseURL, relativeURL) {
2347
+ return relativeURL
2348
+ ? baseURL.replace(/\/?\/$/, '') + '/' + relativeURL.replace(/^\/+/, '')
2349
+ : baseURL;
2350
+ }
2351
+
2352
+ /**
2353
+ * Creates a new URL by combining the baseURL with the requestedURL,
2354
+ * only when the requestedURL is not already an absolute URL.
2355
+ * If the requestURL is absolute, this function returns the requestedURL untouched.
2356
+ *
2357
+ * @param {string} baseURL The base URL
2358
+ * @param {string} requestedURL Absolute or relative URL to combine
2359
+ *
2360
+ * @returns {string} The combined full path
2361
+ */
2362
+ function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {
2363
+ let isRelativeUrl = !isAbsoluteURL(requestedURL);
2364
+ if (baseURL && (isRelativeUrl || allowAbsoluteUrls == false)) {
2365
+ return combineURLs(baseURL, requestedURL);
2366
+ }
2367
+ return requestedURL;
2368
+ }
2369
+
2370
+ const headersToObject = (thing) =>
2371
+ thing instanceof AxiosHeaders$1 ? { ...thing } : thing;
2372
+
2373
+ /**
2374
+ * Config-specific merge-function which creates a new config-object
2375
+ * by merging two configuration objects together.
2376
+ *
2377
+ * @param {Object} config1
2378
+ * @param {Object} config2
2379
+ *
2380
+ * @returns {Object} New object resulting from merging config2 to config1
2381
+ */
2382
+ function mergeConfig(config1, config2) {
2383
+ // eslint-disable-next-line no-param-reassign
2384
+ config2 = config2 || {};
2385
+ const config = {};
2386
+
2387
+ function getMergedValue(target, source, prop, caseless) {
2388
+ if (utils$1.isPlainObject(target) && utils$1.isPlainObject(source)) {
2389
+ return utils$1.merge.call({ caseless }, target, source);
2390
+ } else if (utils$1.isPlainObject(source)) {
2391
+ return utils$1.merge({}, source);
2392
+ } else if (utils$1.isArray(source)) {
2393
+ return source.slice();
2394
+ }
2395
+ return source;
2396
+ }
2397
+
2398
+ function mergeDeepProperties(a, b, prop, caseless) {
2399
+ if (!utils$1.isUndefined(b)) {
2400
+ return getMergedValue(a, b, prop, caseless);
2401
+ } else if (!utils$1.isUndefined(a)) {
2402
+ return getMergedValue(undefined, a, prop, caseless);
2403
+ }
2404
+ }
2405
+
2406
+ // eslint-disable-next-line consistent-return
2407
+ function valueFromConfig2(a, b) {
2408
+ if (!utils$1.isUndefined(b)) {
2409
+ return getMergedValue(undefined, b);
2410
+ }
2411
+ }
2412
+
2413
+ // eslint-disable-next-line consistent-return
2414
+ function defaultToConfig2(a, b) {
2415
+ if (!utils$1.isUndefined(b)) {
2416
+ return getMergedValue(undefined, b);
2417
+ } else if (!utils$1.isUndefined(a)) {
2418
+ return getMergedValue(undefined, a);
2419
+ }
2420
+ }
2421
+
2422
+ // eslint-disable-next-line consistent-return
2423
+ function mergeDirectKeys(a, b, prop) {
2424
+ if (prop in config2) {
2425
+ return getMergedValue(a, b);
2426
+ } else if (prop in config1) {
2427
+ return getMergedValue(undefined, a);
2428
+ }
2429
+ }
2430
+
2431
+ const mergeMap = {
2432
+ url: valueFromConfig2,
2433
+ method: valueFromConfig2,
2434
+ data: valueFromConfig2,
2435
+ baseURL: defaultToConfig2,
2436
+ transformRequest: defaultToConfig2,
2437
+ transformResponse: defaultToConfig2,
2438
+ paramsSerializer: defaultToConfig2,
2439
+ timeout: defaultToConfig2,
2440
+ timeoutMessage: defaultToConfig2,
2441
+ withCredentials: defaultToConfig2,
2442
+ withXSRFToken: defaultToConfig2,
2443
+ adapter: defaultToConfig2,
2444
+ responseType: defaultToConfig2,
2445
+ xsrfCookieName: defaultToConfig2,
2446
+ xsrfHeaderName: defaultToConfig2,
2447
+ onUploadProgress: defaultToConfig2,
2448
+ onDownloadProgress: defaultToConfig2,
2449
+ decompress: defaultToConfig2,
2450
+ maxContentLength: defaultToConfig2,
2451
+ maxBodyLength: defaultToConfig2,
2452
+ beforeRedirect: defaultToConfig2,
2453
+ transport: defaultToConfig2,
2454
+ httpAgent: defaultToConfig2,
2455
+ httpsAgent: defaultToConfig2,
2456
+ cancelToken: defaultToConfig2,
2457
+ socketPath: defaultToConfig2,
2458
+ responseEncoding: defaultToConfig2,
2459
+ validateStatus: mergeDirectKeys,
2460
+ headers: (a, b, prop) =>
2461
+ mergeDeepProperties(headersToObject(a), headersToObject(b), prop, true),
2462
+ };
2463
+
2464
+ utils$1.forEach(
2465
+ Object.keys({ ...config1, ...config2 }),
2466
+ function computeConfigValue(prop) {
2467
+ if (
2468
+ prop === "__proto__" ||
2469
+ prop === "constructor" ||
2470
+ prop === "prototype"
2471
+ )
2472
+ return;
2473
+ const merge = utils$1.hasOwnProp(mergeMap, prop)
2474
+ ? mergeMap[prop]
2475
+ : mergeDeepProperties;
2476
+ const configValue = merge(config1[prop], config2[prop], prop);
2477
+ (utils$1.isUndefined(configValue) && merge !== mergeDirectKeys) ||
2478
+ (config[prop] = configValue);
2479
+ },
2480
+ );
2481
+
2482
+ return config;
2483
+ }
2484
+
2485
+ var resolveConfig = (config) => {
2486
+ const newConfig = mergeConfig({}, config);
2487
+
2488
+ let { data, withXSRFToken, xsrfHeaderName, xsrfCookieName, headers, auth } = newConfig;
2489
+
2490
+ newConfig.headers = headers = AxiosHeaders$1.from(headers);
2491
+
2492
+ newConfig.url = buildURL(buildFullPath(newConfig.baseURL, newConfig.url, newConfig.allowAbsoluteUrls), config.params, config.paramsSerializer);
2493
+
2494
+ // HTTP basic authentication
2495
+ if (auth) {
2496
+ headers.set('Authorization', 'Basic ' +
2497
+ btoa((auth.username || '') + ':' + (auth.password ? unescape(encodeURIComponent(auth.password)) : ''))
2498
+ );
2499
+ }
2500
+
2501
+ if (utils$1.isFormData(data)) {
2502
+ if (platform.hasStandardBrowserEnv || platform.hasStandardBrowserWebWorkerEnv) {
2503
+ headers.setContentType(undefined); // browser handles it
2504
+ } else if (utils$1.isFunction(data.getHeaders)) {
2505
+ // Node.js FormData (like form-data package)
2506
+ const formHeaders = data.getHeaders();
2507
+ // Only set safe headers to avoid overwriting security headers
2508
+ const allowedHeaders = ['content-type', 'content-length'];
2509
+ Object.entries(formHeaders).forEach(([key, val]) => {
2510
+ if (allowedHeaders.includes(key.toLowerCase())) {
2511
+ headers.set(key, val);
2512
+ }
2513
+ });
2514
+ }
2515
+ }
2516
+
2517
+ // Add xsrf header
2518
+ // This is only done if running in a standard browser environment.
2519
+ // Specifically not if we're in a web worker, or react-native.
2520
+
2521
+ if (platform.hasStandardBrowserEnv) {
2522
+ withXSRFToken && utils$1.isFunction(withXSRFToken) && (withXSRFToken = withXSRFToken(newConfig));
2523
+
2524
+ if (withXSRFToken || (withXSRFToken !== false && isURLSameOrigin(newConfig.url))) {
2525
+ // Add xsrf header
2526
+ const xsrfValue = xsrfHeaderName && xsrfCookieName && cookies.read(xsrfCookieName);
2527
+
2528
+ if (xsrfValue) {
2529
+ headers.set(xsrfHeaderName, xsrfValue);
2530
+ }
2531
+ }
2532
+ }
2533
+
2534
+ return newConfig;
2535
+ };
2536
+
2537
+ const isXHRAdapterSupported = typeof XMLHttpRequest !== 'undefined';
2538
+
2539
+ var xhrAdapter = isXHRAdapterSupported && function (config) {
2540
+ return new Promise(function dispatchXhrRequest(resolve, reject) {
2541
+ const _config = resolveConfig(config);
2542
+ let requestData = _config.data;
2543
+ const requestHeaders = AxiosHeaders$1.from(_config.headers).normalize();
2544
+ let {responseType, onUploadProgress, onDownloadProgress} = _config;
2545
+ let onCanceled;
2546
+ let uploadThrottled, downloadThrottled;
2547
+ let flushUpload, flushDownload;
2548
+
2549
+ function done() {
2550
+ flushUpload && flushUpload(); // flush events
2551
+ flushDownload && flushDownload(); // flush events
2552
+
2553
+ _config.cancelToken && _config.cancelToken.unsubscribe(onCanceled);
2554
+
2555
+ _config.signal && _config.signal.removeEventListener('abort', onCanceled);
2556
+ }
2557
+
2558
+ let request = new XMLHttpRequest();
2559
+
2560
+ request.open(_config.method.toUpperCase(), _config.url, true);
2561
+
2562
+ // Set the request timeout in MS
2563
+ request.timeout = _config.timeout;
2564
+
2565
+ function onloadend() {
2566
+ if (!request) {
2567
+ return;
2568
+ }
2569
+ // Prepare the response
2570
+ const responseHeaders = AxiosHeaders$1.from(
2571
+ 'getAllResponseHeaders' in request && request.getAllResponseHeaders()
2572
+ );
2573
+ const responseData = !responseType || responseType === 'text' || responseType === 'json' ?
2574
+ request.responseText : request.response;
2575
+ const response = {
2576
+ data: responseData,
2577
+ status: request.status,
2578
+ statusText: request.statusText,
2579
+ headers: responseHeaders,
2580
+ config,
2581
+ request
2582
+ };
2583
+
2584
+ settle(function _resolve(value) {
2585
+ resolve(value);
2586
+ done();
2587
+ }, function _reject(err) {
2588
+ reject(err);
2589
+ done();
2590
+ }, response);
2591
+
2592
+ // Clean up request
2593
+ request = null;
2594
+ }
2595
+
2596
+ if ('onloadend' in request) {
2597
+ // Use onloadend if available
2598
+ request.onloadend = onloadend;
2599
+ } else {
2600
+ // Listen for ready state to emulate onloadend
2601
+ request.onreadystatechange = function handleLoad() {
2602
+ if (!request || request.readyState !== 4) {
2603
+ return;
2604
+ }
2605
+
2606
+ // The request errored out and we didn't get a response, this will be
2607
+ // handled by onerror instead
2608
+ // With one exception: request that using file: protocol, most browsers
2609
+ // will return status as 0 even though it's a successful request
2610
+ if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) {
2611
+ return;
2612
+ }
2613
+ // readystate handler is calling before onerror or ontimeout handlers,
2614
+ // so we should call onloadend on the next 'tick'
2615
+ setTimeout(onloadend);
2616
+ };
2617
+ }
2618
+
2619
+ // Handle browser request cancellation (as opposed to a manual cancellation)
2620
+ request.onabort = function handleAbort() {
2621
+ if (!request) {
2622
+ return;
2623
+ }
2624
+
2625
+ reject(new AxiosError$1('Request aborted', AxiosError$1.ECONNABORTED, config, request));
2626
+
2627
+ // Clean up request
2628
+ request = null;
2629
+ };
2630
+
2631
+ // Handle low level network errors
2632
+ request.onerror = function handleError(event) {
2633
+ // Browsers deliver a ProgressEvent in XHR onerror
2634
+ // (message may be empty; when present, surface it)
2635
+ // See https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/error_event
2636
+ const msg = event && event.message ? event.message : 'Network Error';
2637
+ const err = new AxiosError$1(msg, AxiosError$1.ERR_NETWORK, config, request);
2638
+ // attach the underlying event for consumers who want details
2639
+ err.event = event || null;
2640
+ reject(err);
2641
+ request = null;
2642
+ };
2643
+
2644
+ // Handle timeout
2645
+ request.ontimeout = function handleTimeout() {
2646
+ let timeoutErrorMessage = _config.timeout ? 'timeout of ' + _config.timeout + 'ms exceeded' : 'timeout exceeded';
2647
+ const transitional = _config.transitional || transitionalDefaults;
2648
+ if (_config.timeoutErrorMessage) {
2649
+ timeoutErrorMessage = _config.timeoutErrorMessage;
2650
+ }
2651
+ reject(new AxiosError$1(
2652
+ timeoutErrorMessage,
2653
+ transitional.clarifyTimeoutError ? AxiosError$1.ETIMEDOUT : AxiosError$1.ECONNABORTED,
2654
+ config,
2655
+ request));
2656
+
2657
+ // Clean up request
2658
+ request = null;
2659
+ };
2660
+
2661
+ // Remove Content-Type if data is undefined
2662
+ requestData === undefined && requestHeaders.setContentType(null);
2663
+
2664
+ // Add headers to the request
2665
+ if ('setRequestHeader' in request) {
2666
+ utils$1.forEach(requestHeaders.toJSON(), function setRequestHeader(val, key) {
2667
+ request.setRequestHeader(key, val);
2668
+ });
2669
+ }
2670
+
2671
+ // Add withCredentials to request if needed
2672
+ if (!utils$1.isUndefined(_config.withCredentials)) {
2673
+ request.withCredentials = !!_config.withCredentials;
2674
+ }
2675
+
2676
+ // Add responseType to request if needed
2677
+ if (responseType && responseType !== 'json') {
2678
+ request.responseType = _config.responseType;
2679
+ }
2680
+
2681
+ // Handle progress if needed
2682
+ if (onDownloadProgress) {
2683
+ ([downloadThrottled, flushDownload] = progressEventReducer(onDownloadProgress, true));
2684
+ request.addEventListener('progress', downloadThrottled);
2685
+ }
2686
+
2687
+ // Not all browsers support upload events
2688
+ if (onUploadProgress && request.upload) {
2689
+ ([uploadThrottled, flushUpload] = progressEventReducer(onUploadProgress));
2690
+
2691
+ request.upload.addEventListener('progress', uploadThrottled);
2692
+
2693
+ request.upload.addEventListener('loadend', flushUpload);
2694
+ }
2695
+
2696
+ if (_config.cancelToken || _config.signal) {
2697
+ // Handle cancellation
2698
+ // eslint-disable-next-line func-names
2699
+ onCanceled = cancel => {
2700
+ if (!request) {
2701
+ return;
2702
+ }
2703
+ reject(!cancel || cancel.type ? new CanceledError$1(null, config, request) : cancel);
2704
+ request.abort();
2705
+ request = null;
2706
+ };
2707
+
2708
+ _config.cancelToken && _config.cancelToken.subscribe(onCanceled);
2709
+ if (_config.signal) {
2710
+ _config.signal.aborted ? onCanceled() : _config.signal.addEventListener('abort', onCanceled);
2711
+ }
2712
+ }
2713
+
2714
+ const protocol = parseProtocol(_config.url);
2715
+
2716
+ if (protocol && platform.protocols.indexOf(protocol) === -1) {
2717
+ reject(new AxiosError$1('Unsupported protocol ' + protocol + ':', AxiosError$1.ERR_BAD_REQUEST, config));
2718
+ return;
2719
+ }
2720
+
2721
+
2722
+ // Send the request
2723
+ request.send(requestData || null);
2724
+ });
2725
+ };
2726
+
2727
+ const composeSignals = (signals, timeout) => {
2728
+ const {length} = (signals = signals ? signals.filter(Boolean) : []);
2729
+
2730
+ if (timeout || length) {
2731
+ let controller = new AbortController();
2732
+
2733
+ let aborted;
2734
+
2735
+ const onabort = function (reason) {
2736
+ if (!aborted) {
2737
+ aborted = true;
2738
+ unsubscribe();
2739
+ const err = reason instanceof Error ? reason : this.reason;
2740
+ controller.abort(err instanceof AxiosError$1 ? err : new CanceledError$1(err instanceof Error ? err.message : err));
2741
+ }
2742
+ };
2743
+
2744
+ let timer = timeout && setTimeout(() => {
2745
+ timer = null;
2746
+ onabort(new AxiosError$1(`timeout of ${timeout}ms exceeded`, AxiosError$1.ETIMEDOUT));
2747
+ }, timeout);
2748
+
2749
+ const unsubscribe = () => {
2750
+ if (signals) {
2751
+ timer && clearTimeout(timer);
2752
+ timer = null;
2753
+ signals.forEach(signal => {
2754
+ signal.unsubscribe ? signal.unsubscribe(onabort) : signal.removeEventListener('abort', onabort);
2755
+ });
2756
+ signals = null;
2757
+ }
2758
+ };
2759
+
2760
+ signals.forEach((signal) => signal.addEventListener('abort', onabort));
2761
+
2762
+ const {signal} = controller;
2763
+
2764
+ signal.unsubscribe = () => utils$1.asap(unsubscribe);
2765
+
2766
+ return signal;
2767
+ }
2768
+ };
2769
+
2770
+ var composeSignals$1 = composeSignals;
2771
+
2772
+ const streamChunk = function* (chunk, chunkSize) {
2773
+ let len = chunk.byteLength;
2774
+
2775
+ if (!chunkSize || len < chunkSize) {
2776
+ yield chunk;
2777
+ return;
2778
+ }
2779
+
2780
+ let pos = 0;
2781
+ let end;
2782
+
2783
+ while (pos < len) {
2784
+ end = pos + chunkSize;
2785
+ yield chunk.slice(pos, end);
2786
+ pos = end;
2787
+ }
2788
+ };
2789
+
2790
+ const readBytes = async function* (iterable, chunkSize) {
2791
+ for await (const chunk of readStream(iterable)) {
2792
+ yield* streamChunk(chunk, chunkSize);
2793
+ }
2794
+ };
2795
+
2796
+ const readStream = async function* (stream) {
2797
+ if (stream[Symbol.asyncIterator]) {
2798
+ yield* stream;
2799
+ return;
2800
+ }
2801
+
2802
+ const reader = stream.getReader();
2803
+ try {
2804
+ for (;;) {
2805
+ const {done, value} = await reader.read();
2806
+ if (done) {
2807
+ break;
2808
+ }
2809
+ yield value;
2810
+ }
2811
+ } finally {
2812
+ await reader.cancel();
2813
+ }
2814
+ };
2815
+
2816
+ const trackStream = (stream, chunkSize, onProgress, onFinish) => {
2817
+ const iterator = readBytes(stream, chunkSize);
2818
+
2819
+ let bytes = 0;
2820
+ let done;
2821
+ let _onFinish = (e) => {
2822
+ if (!done) {
2823
+ done = true;
2824
+ onFinish && onFinish(e);
2825
+ }
2826
+ };
2827
+
2828
+ return new ReadableStream({
2829
+ async pull(controller) {
2830
+ try {
2831
+ const {done, value} = await iterator.next();
2832
+
2833
+ if (done) {
2834
+ _onFinish();
2835
+ controller.close();
2836
+ return;
2837
+ }
2838
+
2839
+ let len = value.byteLength;
2840
+ if (onProgress) {
2841
+ let loadedBytes = bytes += len;
2842
+ onProgress(loadedBytes);
2843
+ }
2844
+ controller.enqueue(new Uint8Array(value));
2845
+ } catch (err) {
2846
+ _onFinish(err);
2847
+ throw err;
2848
+ }
2849
+ },
2850
+ cancel(reason) {
2851
+ _onFinish(reason);
2852
+ return iterator.return();
2853
+ }
2854
+ }, {
2855
+ highWaterMark: 2
2856
+ })
2857
+ };
2858
+
2859
+ const DEFAULT_CHUNK_SIZE = 64 * 1024;
2860
+
2861
+ const {isFunction} = utils$1;
2862
+
2863
+ const globalFetchAPI = (({Request, Response}) => ({
2864
+ Request, Response
2865
+ }))(utils$1.global);
2866
+
2867
+ const {
2868
+ ReadableStream: ReadableStream$1, TextEncoder
2869
+ } = utils$1.global;
2870
+
2871
+
2872
+ const test = (fn, ...args) => {
2873
+ try {
2874
+ return !!fn(...args);
2875
+ } catch (e) {
2876
+ return false
2877
+ }
2878
+ };
2879
+
2880
+ const factory = (env) => {
2881
+ env = utils$1.merge.call({
2882
+ skipUndefined: true
2883
+ }, globalFetchAPI, env);
2884
+
2885
+ const {fetch: envFetch, Request, Response} = env;
2886
+ const isFetchSupported = envFetch ? isFunction(envFetch) : typeof fetch === 'function';
2887
+ const isRequestSupported = isFunction(Request);
2888
+ const isResponseSupported = isFunction(Response);
2889
+
2890
+ if (!isFetchSupported) {
2891
+ return false;
2892
+ }
2893
+
2894
+ const isReadableStreamSupported = isFetchSupported && isFunction(ReadableStream$1);
2895
+
2896
+ const encodeText = isFetchSupported && (typeof TextEncoder === 'function' ?
2897
+ ((encoder) => (str) => encoder.encode(str))(new TextEncoder()) :
2898
+ async (str) => new Uint8Array(await new Request(str).arrayBuffer())
2899
+ );
2900
+
2901
+ const supportsRequestStream = isRequestSupported && isReadableStreamSupported && test(() => {
2902
+ let duplexAccessed = false;
2903
+
2904
+ const hasContentType = new Request(platform.origin, {
2905
+ body: new ReadableStream$1(),
2906
+ method: 'POST',
2907
+ get duplex() {
2908
+ duplexAccessed = true;
2909
+ return 'half';
2910
+ },
2911
+ }).headers.has('Content-Type');
2912
+
2913
+ return duplexAccessed && !hasContentType;
2914
+ });
2915
+
2916
+ const supportsResponseStream = isResponseSupported && isReadableStreamSupported &&
2917
+ test(() => utils$1.isReadableStream(new Response('').body));
2918
+
2919
+ const resolvers = {
2920
+ stream: supportsResponseStream && ((res) => res.body)
2921
+ };
2922
+
2923
+ isFetchSupported && ((() => {
2924
+ ['text', 'arrayBuffer', 'blob', 'formData', 'stream'].forEach(type => {
2925
+ !resolvers[type] && (resolvers[type] = (res, config) => {
2926
+ let method = res && res[type];
2927
+
2928
+ if (method) {
2929
+ return method.call(res);
2930
+ }
2931
+
2932
+ throw new AxiosError$1(`Response type '${type}' is not supported`, AxiosError$1.ERR_NOT_SUPPORT, config);
2933
+ });
2934
+ });
2935
+ })());
2936
+
2937
+ const getBodyLength = async (body) => {
2938
+ if (body == null) {
2939
+ return 0;
2940
+ }
2941
+
2942
+ if (utils$1.isBlob(body)) {
2943
+ return body.size;
2944
+ }
2945
+
2946
+ if (utils$1.isSpecCompliantForm(body)) {
2947
+ const _request = new Request(platform.origin, {
2948
+ method: 'POST',
2949
+ body,
2950
+ });
2951
+ return (await _request.arrayBuffer()).byteLength;
2952
+ }
2953
+
2954
+ if (utils$1.isArrayBufferView(body) || utils$1.isArrayBuffer(body)) {
2955
+ return body.byteLength;
2956
+ }
2957
+
2958
+ if (utils$1.isURLSearchParams(body)) {
2959
+ body = body + '';
2960
+ }
2961
+
2962
+ if (utils$1.isString(body)) {
2963
+ return (await encodeText(body)).byteLength;
2964
+ }
2965
+ };
2966
+
2967
+ const resolveBodyLength = async (headers, body) => {
2968
+ const length = utils$1.toFiniteNumber(headers.getContentLength());
2969
+
2970
+ return length == null ? getBodyLength(body) : length;
2971
+ };
2972
+
2973
+ return async (config) => {
2974
+ let {
2975
+ url,
2976
+ method,
2977
+ data,
2978
+ signal,
2979
+ cancelToken,
2980
+ timeout,
2981
+ onDownloadProgress,
2982
+ onUploadProgress,
2983
+ responseType,
2984
+ headers,
2985
+ withCredentials = 'same-origin',
2986
+ fetchOptions
2987
+ } = resolveConfig(config);
2988
+
2989
+ let _fetch = envFetch || fetch;
2990
+
2991
+ responseType = responseType ? (responseType + '').toLowerCase() : 'text';
2992
+
2993
+ let composedSignal = composeSignals$1([signal, cancelToken && cancelToken.toAbortSignal()], timeout);
2994
+
2995
+ let request = null;
2996
+
2997
+ const unsubscribe = composedSignal && composedSignal.unsubscribe && (() => {
2998
+ composedSignal.unsubscribe();
2999
+ });
3000
+
3001
+ let requestContentLength;
3002
+
3003
+ try {
3004
+ if (
3005
+ onUploadProgress && supportsRequestStream && method !== 'get' && method !== 'head' &&
3006
+ (requestContentLength = await resolveBodyLength(headers, data)) !== 0
3007
+ ) {
3008
+ let _request = new Request(url, {
3009
+ method: 'POST',
3010
+ body: data,
3011
+ duplex: "half"
3012
+ });
3013
+
3014
+ let contentTypeHeader;
3015
+
3016
+ if (utils$1.isFormData(data) && (contentTypeHeader = _request.headers.get('content-type'))) {
3017
+ headers.setContentType(contentTypeHeader);
3018
+ }
3019
+
3020
+ if (_request.body) {
3021
+ const [onProgress, flush] = progressEventDecorator(
3022
+ requestContentLength,
3023
+ progressEventReducer(asyncDecorator(onUploadProgress))
3024
+ );
3025
+
3026
+ data = trackStream(_request.body, DEFAULT_CHUNK_SIZE, onProgress, flush);
3027
+ }
3028
+ }
3029
+
3030
+ if (!utils$1.isString(withCredentials)) {
3031
+ withCredentials = withCredentials ? 'include' : 'omit';
3032
+ }
3033
+
3034
+ // Cloudflare Workers throws when credentials are defined
3035
+ // see https://github.com/cloudflare/workerd/issues/902
3036
+ const isCredentialsSupported = isRequestSupported && "credentials" in Request.prototype;
3037
+
3038
+ const resolvedOptions = {
3039
+ ...fetchOptions,
3040
+ signal: composedSignal,
3041
+ method: method.toUpperCase(),
3042
+ headers: headers.normalize().toJSON(),
3043
+ body: data,
3044
+ duplex: "half",
3045
+ credentials: isCredentialsSupported ? withCredentials : undefined
3046
+ };
3047
+
3048
+ request = isRequestSupported && new Request(url, resolvedOptions);
3049
+
3050
+ let response = await (isRequestSupported ? _fetch(request, fetchOptions) : _fetch(url, resolvedOptions));
3051
+
3052
+ const isStreamResponse = supportsResponseStream && (responseType === 'stream' || responseType === 'response');
3053
+
3054
+ if (supportsResponseStream && (onDownloadProgress || (isStreamResponse && unsubscribe))) {
3055
+ const options = {};
3056
+
3057
+ ['status', 'statusText', 'headers'].forEach(prop => {
3058
+ options[prop] = response[prop];
3059
+ });
3060
+
3061
+ const responseContentLength = utils$1.toFiniteNumber(response.headers.get('content-length'));
3062
+
3063
+ const [onProgress, flush] = onDownloadProgress && progressEventDecorator(
3064
+ responseContentLength,
3065
+ progressEventReducer(asyncDecorator(onDownloadProgress), true)
3066
+ ) || [];
3067
+
3068
+ response = new Response(
3069
+ trackStream(response.body, DEFAULT_CHUNK_SIZE, onProgress, () => {
3070
+ flush && flush();
3071
+ unsubscribe && unsubscribe();
3072
+ }),
3073
+ options
3074
+ );
3075
+ }
3076
+
3077
+ responseType = responseType || 'text';
3078
+
3079
+ let responseData = await resolvers[utils$1.findKey(resolvers, responseType) || 'text'](response, config);
3080
+
3081
+ !isStreamResponse && unsubscribe && unsubscribe();
3082
+
3083
+ return await new Promise((resolve, reject) => {
3084
+ settle(resolve, reject, {
3085
+ data: responseData,
3086
+ headers: AxiosHeaders$1.from(response.headers),
3087
+ status: response.status,
3088
+ statusText: response.statusText,
3089
+ config,
3090
+ request
3091
+ });
3092
+ })
3093
+ } catch (err) {
3094
+ unsubscribe && unsubscribe();
3095
+
3096
+ if (err && err.name === 'TypeError' && /Load failed|fetch/i.test(err.message)) {
3097
+ throw Object.assign(
3098
+ new AxiosError$1('Network Error', AxiosError$1.ERR_NETWORK, config, request, err && err.response),
3099
+ {
3100
+ cause: err.cause || err
3101
+ }
3102
+ )
3103
+ }
3104
+
3105
+ throw AxiosError$1.from(err, err && err.code, config, request, err && err.response);
3106
+ }
3107
+ }
3108
+ };
3109
+
3110
+ const seedCache = new Map();
3111
+
3112
+ const getFetch = (config) => {
3113
+ let env = (config && config.env) || {};
3114
+ const {fetch, Request, Response} = env;
3115
+ const seeds = [
3116
+ Request, Response, fetch
3117
+ ];
3118
+
3119
+ let len = seeds.length, i = len,
3120
+ seed, target, map = seedCache;
3121
+
3122
+ while (i--) {
3123
+ seed = seeds[i];
3124
+ target = map.get(seed);
3125
+
3126
+ target === undefined && map.set(seed, target = (i ? new Map() : factory(env)));
3127
+
3128
+ map = target;
3129
+ }
3130
+
3131
+ return target;
3132
+ };
3133
+
3134
+ getFetch();
3135
+
3136
+ /**
3137
+ * Known adapters mapping.
3138
+ * Provides environment-specific adapters for Axios:
3139
+ * - `http` for Node.js
3140
+ * - `xhr` for browsers
3141
+ * - `fetch` for fetch API-based requests
3142
+ *
3143
+ * @type {Object<string, Function|Object>}
3144
+ */
3145
+ const knownAdapters = {
3146
+ http: httpAdapter,
3147
+ xhr: xhrAdapter,
3148
+ fetch: {
3149
+ get: getFetch,
3150
+ }
3151
+ };
3152
+
3153
+ // Assign adapter names for easier debugging and identification
3154
+ utils$1.forEach(knownAdapters, (fn, value) => {
3155
+ if (fn) {
3156
+ try {
3157
+ Object.defineProperty(fn, 'name', { value });
3158
+ } catch (e) {
3159
+ // eslint-disable-next-line no-empty
3160
+ }
3161
+ Object.defineProperty(fn, 'adapterName', { value });
3162
+ }
3163
+ });
3164
+
3165
+ /**
3166
+ * Render a rejection reason string for unknown or unsupported adapters
3167
+ *
3168
+ * @param {string} reason
3169
+ * @returns {string}
3170
+ */
3171
+ const renderReason = (reason) => `- ${reason}`;
3172
+
3173
+ /**
3174
+ * Check if the adapter is resolved (function, null, or false)
3175
+ *
3176
+ * @param {Function|null|false} adapter
3177
+ * @returns {boolean}
3178
+ */
3179
+ const isResolvedHandle = (adapter) => utils$1.isFunction(adapter) || adapter === null || adapter === false;
3180
+
3181
+ /**
3182
+ * Get the first suitable adapter from the provided list.
3183
+ * Tries each adapter in order until a supported one is found.
3184
+ * Throws an AxiosError if no adapter is suitable.
3185
+ *
3186
+ * @param {Array<string|Function>|string|Function} adapters - Adapter(s) by name or function.
3187
+ * @param {Object} config - Axios request configuration
3188
+ * @throws {AxiosError} If no suitable adapter is available
3189
+ * @returns {Function} The resolved adapter function
3190
+ */
3191
+ function getAdapter(adapters, config) {
3192
+ adapters = utils$1.isArray(adapters) ? adapters : [adapters];
3193
+
3194
+ const { length } = adapters;
3195
+ let nameOrAdapter;
3196
+ let adapter;
3197
+
3198
+ const rejectedReasons = {};
3199
+
3200
+ for (let i = 0; i < length; i++) {
3201
+ nameOrAdapter = adapters[i];
3202
+ let id;
3203
+
3204
+ adapter = nameOrAdapter;
3205
+
3206
+ if (!isResolvedHandle(nameOrAdapter)) {
3207
+ adapter = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()];
3208
+
3209
+ if (adapter === undefined) {
3210
+ throw new AxiosError$1(`Unknown adapter '${id}'`);
3211
+ }
3212
+ }
3213
+
3214
+ if (adapter && (utils$1.isFunction(adapter) || (adapter = adapter.get(config)))) {
3215
+ break;
3216
+ }
3217
+
3218
+ rejectedReasons[id || '#' + i] = adapter;
3219
+ }
3220
+
3221
+ if (!adapter) {
3222
+ const reasons = Object.entries(rejectedReasons)
3223
+ .map(([id, state]) => `adapter ${id} ` +
3224
+ (state === false ? 'is not supported by the environment' : 'is not available in the build')
3225
+ );
3226
+
3227
+ let s = length ?
3228
+ (reasons.length > 1 ? 'since :\n' + reasons.map(renderReason).join('\n') : ' ' + renderReason(reasons[0])) :
3229
+ 'as no adapter specified';
3230
+
3231
+ throw new AxiosError$1(
3232
+ `There is no suitable adapter to dispatch the request ` + s,
3233
+ 'ERR_NOT_SUPPORT'
3234
+ );
3235
+ }
3236
+
3237
+ return adapter;
3238
+ }
3239
+
3240
+ /**
3241
+ * Exports Axios adapters and utility to resolve an adapter
3242
+ */
3243
+ var adapters = {
3244
+ /**
3245
+ * Resolve an adapter from a list of adapter names or functions.
3246
+ * @type {Function}
3247
+ */
3248
+ getAdapter,
3249
+
3250
+ /**
3251
+ * Exposes all known adapters
3252
+ * @type {Object<string, Function|Object>}
3253
+ */
3254
+ adapters: knownAdapters
3255
+ };
3256
+
3257
+ /**
3258
+ * Throws a `CanceledError` if cancellation has been requested.
3259
+ *
3260
+ * @param {Object} config The config that is to be used for the request
3261
+ *
3262
+ * @returns {void}
3263
+ */
3264
+ function throwIfCancellationRequested(config) {
3265
+ if (config.cancelToken) {
3266
+ config.cancelToken.throwIfRequested();
3267
+ }
3268
+
3269
+ if (config.signal && config.signal.aborted) {
3270
+ throw new CanceledError$1(null, config);
3271
+ }
3272
+ }
3273
+
3274
+ /**
3275
+ * Dispatch a request to the server using the configured adapter.
3276
+ *
3277
+ * @param {object} config The config that is to be used for the request
3278
+ *
3279
+ * @returns {Promise} The Promise to be fulfilled
3280
+ */
3281
+ function dispatchRequest(config) {
3282
+ throwIfCancellationRequested(config);
3283
+
3284
+ config.headers = AxiosHeaders$1.from(config.headers);
3285
+
3286
+ // Transform request data
3287
+ config.data = transformData.call(
3288
+ config,
3289
+ config.transformRequest
3290
+ );
3291
+
3292
+ if (['post', 'put', 'patch'].indexOf(config.method) !== -1) {
3293
+ config.headers.setContentType('application/x-www-form-urlencoded', false);
3294
+ }
3295
+
3296
+ const adapter = adapters.getAdapter(config.adapter || defaults$1.adapter, config);
3297
+
3298
+ return adapter(config).then(function onAdapterResolution(response) {
3299
+ throwIfCancellationRequested(config);
3300
+
3301
+ // Transform response data
3302
+ response.data = transformData.call(
3303
+ config,
3304
+ config.transformResponse,
3305
+ response
3306
+ );
3307
+
3308
+ response.headers = AxiosHeaders$1.from(response.headers);
3309
+
3310
+ return response;
3311
+ }, function onAdapterRejection(reason) {
3312
+ if (!isCancel(reason)) {
3313
+ throwIfCancellationRequested(config);
3314
+
3315
+ // Transform response data
3316
+ if (reason && reason.response) {
3317
+ reason.response.data = transformData.call(
3318
+ config,
3319
+ config.transformResponse,
3320
+ reason.response
3321
+ );
3322
+ reason.response.headers = AxiosHeaders$1.from(reason.response.headers);
3323
+ }
3324
+ }
3325
+
3326
+ return Promise.reject(reason);
3327
+ });
3328
+ }
3329
+
3330
+ const VERSION = "1.13.5";
3331
+
3332
+ const validators$1 = {};
3333
+
3334
+ // eslint-disable-next-line func-names
3335
+ ['object', 'boolean', 'number', 'function', 'string', 'symbol'].forEach((type, i) => {
3336
+ validators$1[type] = function validator(thing) {
3337
+ return typeof thing === type || 'a' + (i < 1 ? 'n ' : ' ') + type;
3338
+ };
3339
+ });
3340
+
3341
+ const deprecatedWarnings = {};
3342
+
3343
+ /**
3344
+ * Transitional option validator
3345
+ *
3346
+ * @param {function|boolean?} validator - set to false if the transitional option has been removed
3347
+ * @param {string?} version - deprecated version / removed since version
3348
+ * @param {string?} message - some message with additional info
3349
+ *
3350
+ * @returns {function}
3351
+ */
3352
+ validators$1.transitional = function transitional(validator, version, message) {
3353
+ function formatMessage(opt, desc) {
3354
+ return '[Axios v' + VERSION + '] Transitional option \'' + opt + '\'' + desc + (message ? '. ' + message : '');
3355
+ }
3356
+
3357
+ // eslint-disable-next-line func-names
3358
+ return (value, opt, opts) => {
3359
+ if (validator === false) {
3360
+ throw new AxiosError$1(
3361
+ formatMessage(opt, ' has been removed' + (version ? ' in ' + version : '')),
3362
+ AxiosError$1.ERR_DEPRECATED
3363
+ );
3364
+ }
3365
+
3366
+ if (version && !deprecatedWarnings[opt]) {
3367
+ deprecatedWarnings[opt] = true;
3368
+ // eslint-disable-next-line no-console
3369
+ console.warn(
3370
+ formatMessage(
3371
+ opt,
3372
+ ' has been deprecated since v' + version + ' and will be removed in the near future'
3373
+ )
3374
+ );
3375
+ }
3376
+
3377
+ return validator ? validator(value, opt, opts) : true;
3378
+ };
3379
+ };
3380
+
3381
+ validators$1.spelling = function spelling(correctSpelling) {
3382
+ return (value, opt) => {
3383
+ // eslint-disable-next-line no-console
3384
+ console.warn(`${opt} is likely a misspelling of ${correctSpelling}`);
3385
+ return true;
3386
+ }
3387
+ };
3388
+
3389
+ /**
3390
+ * Assert object's properties type
3391
+ *
3392
+ * @param {object} options
3393
+ * @param {object} schema
3394
+ * @param {boolean?} allowUnknown
3395
+ *
3396
+ * @returns {object}
3397
+ */
3398
+
3399
+ function assertOptions(options, schema, allowUnknown) {
3400
+ if (typeof options !== 'object') {
3401
+ throw new AxiosError$1('options must be an object', AxiosError$1.ERR_BAD_OPTION_VALUE);
3402
+ }
3403
+ const keys = Object.keys(options);
3404
+ let i = keys.length;
3405
+ while (i-- > 0) {
3406
+ const opt = keys[i];
3407
+ const validator = schema[opt];
3408
+ if (validator) {
3409
+ const value = options[opt];
3410
+ const result = value === undefined || validator(value, opt, options);
3411
+ if (result !== true) {
3412
+ throw new AxiosError$1('option ' + opt + ' must be ' + result, AxiosError$1.ERR_BAD_OPTION_VALUE);
3413
+ }
3414
+ continue;
3415
+ }
3416
+ if (allowUnknown !== true) {
3417
+ throw new AxiosError$1('Unknown option ' + opt, AxiosError$1.ERR_BAD_OPTION);
3418
+ }
3419
+ }
3420
+ }
3421
+
3422
+ var validator = {
3423
+ assertOptions,
3424
+ validators: validators$1
3425
+ };
3426
+
3427
+ const validators = validator.validators;
3428
+
3429
+ /**
3430
+ * Create a new instance of Axios
3431
+ *
3432
+ * @param {Object} instanceConfig The default config for the instance
3433
+ *
3434
+ * @return {Axios} A new instance of Axios
3435
+ */
3436
+ class Axios {
3437
+ constructor(instanceConfig) {
3438
+ this.defaults = instanceConfig || {};
3439
+ this.interceptors = {
3440
+ request: new InterceptorManager$1(),
3441
+ response: new InterceptorManager$1()
3442
+ };
3443
+ }
3444
+
3445
+ /**
3446
+ * Dispatch a request
3447
+ *
3448
+ * @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)
3449
+ * @param {?Object} config
3450
+ *
3451
+ * @returns {Promise} The Promise to be fulfilled
3452
+ */
3453
+ async request(configOrUrl, config) {
3454
+ try {
3455
+ return await this._request(configOrUrl, config);
3456
+ } catch (err) {
3457
+ if (err instanceof Error) {
3458
+ let dummy = {};
3459
+
3460
+ Error.captureStackTrace ? Error.captureStackTrace(dummy) : (dummy = new Error());
3461
+
3462
+ // slice off the Error: ... line
3463
+ const stack = dummy.stack ? dummy.stack.replace(/^.+\n/, '') : '';
3464
+ try {
3465
+ if (!err.stack) {
3466
+ err.stack = stack;
3467
+ // match without the 2 top stack lines
3468
+ } else if (stack && !String(err.stack).endsWith(stack.replace(/^.+\n.+\n/, ''))) {
3469
+ err.stack += '\n' + stack;
3470
+ }
3471
+ } catch (e) {
3472
+ // ignore the case where "stack" is an un-writable property
3473
+ }
3474
+ }
3475
+
3476
+ throw err;
3477
+ }
3478
+ }
3479
+
3480
+ _request(configOrUrl, config) {
3481
+ /*eslint no-param-reassign:0*/
3482
+ // Allow for axios('example/url'[, config]) a la fetch API
3483
+ if (typeof configOrUrl === 'string') {
3484
+ config = config || {};
3485
+ config.url = configOrUrl;
3486
+ } else {
3487
+ config = configOrUrl || {};
3488
+ }
3489
+
3490
+ config = mergeConfig(this.defaults, config);
3491
+
3492
+ const {transitional, paramsSerializer, headers} = config;
3493
+
3494
+ if (transitional !== undefined) {
3495
+ validator.assertOptions(transitional, {
3496
+ silentJSONParsing: validators.transitional(validators.boolean),
3497
+ forcedJSONParsing: validators.transitional(validators.boolean),
3498
+ clarifyTimeoutError: validators.transitional(validators.boolean),
3499
+ legacyInterceptorReqResOrdering: validators.transitional(validators.boolean)
3500
+ }, false);
3501
+ }
3502
+
3503
+ if (paramsSerializer != null) {
3504
+ if (utils$1.isFunction(paramsSerializer)) {
3505
+ config.paramsSerializer = {
3506
+ serialize: paramsSerializer
3507
+ };
3508
+ } else {
3509
+ validator.assertOptions(paramsSerializer, {
3510
+ encode: validators.function,
3511
+ serialize: validators.function
3512
+ }, true);
3513
+ }
3514
+ }
3515
+
3516
+ // Set config.allowAbsoluteUrls
3517
+ if (config.allowAbsoluteUrls !== undefined) ; else if (this.defaults.allowAbsoluteUrls !== undefined) {
3518
+ config.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls;
3519
+ } else {
3520
+ config.allowAbsoluteUrls = true;
3521
+ }
3522
+
3523
+ validator.assertOptions(config, {
3524
+ baseUrl: validators.spelling('baseURL'),
3525
+ withXsrfToken: validators.spelling('withXSRFToken')
3526
+ }, true);
3527
+
3528
+ // Set config.method
3529
+ config.method = (config.method || this.defaults.method || 'get').toLowerCase();
3530
+
3531
+ // Flatten headers
3532
+ let contextHeaders = headers && utils$1.merge(
3533
+ headers.common,
3534
+ headers[config.method]
3535
+ );
3536
+
3537
+ headers && utils$1.forEach(
3538
+ ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'],
3539
+ (method) => {
3540
+ delete headers[method];
3541
+ }
3542
+ );
3543
+
3544
+ config.headers = AxiosHeaders$1.concat(contextHeaders, headers);
3545
+
3546
+ // filter out skipped interceptors
3547
+ const requestInterceptorChain = [];
3548
+ let synchronousRequestInterceptors = true;
3549
+ this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {
3550
+ if (typeof interceptor.runWhen === 'function' && interceptor.runWhen(config) === false) {
3551
+ return;
3552
+ }
3553
+
3554
+ synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;
3555
+
3556
+ const transitional = config.transitional || transitionalDefaults;
3557
+ const legacyInterceptorReqResOrdering = transitional && transitional.legacyInterceptorReqResOrdering;
3558
+
3559
+ if (legacyInterceptorReqResOrdering) {
3560
+ requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);
3561
+ } else {
3562
+ requestInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);
3563
+ }
3564
+ });
3565
+
3566
+ const responseInterceptorChain = [];
3567
+ this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {
3568
+ responseInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);
3569
+ });
3570
+
3571
+ let promise;
3572
+ let i = 0;
3573
+ let len;
3574
+
3575
+ if (!synchronousRequestInterceptors) {
3576
+ const chain = [dispatchRequest.bind(this), undefined];
3577
+ chain.unshift(...requestInterceptorChain);
3578
+ chain.push(...responseInterceptorChain);
3579
+ len = chain.length;
3580
+
3581
+ promise = Promise.resolve(config);
3582
+
3583
+ while (i < len) {
3584
+ promise = promise.then(chain[i++], chain[i++]);
3585
+ }
3586
+
3587
+ return promise;
3588
+ }
3589
+
3590
+ len = requestInterceptorChain.length;
3591
+
3592
+ let newConfig = config;
3593
+
3594
+ while (i < len) {
3595
+ const onFulfilled = requestInterceptorChain[i++];
3596
+ const onRejected = requestInterceptorChain[i++];
3597
+ try {
3598
+ newConfig = onFulfilled(newConfig);
3599
+ } catch (error) {
3600
+ onRejected.call(this, error);
3601
+ break;
3602
+ }
3603
+ }
3604
+
3605
+ try {
3606
+ promise = dispatchRequest.call(this, newConfig);
3607
+ } catch (error) {
3608
+ return Promise.reject(error);
3609
+ }
3610
+
3611
+ i = 0;
3612
+ len = responseInterceptorChain.length;
3613
+
3614
+ while (i < len) {
3615
+ promise = promise.then(responseInterceptorChain[i++], responseInterceptorChain[i++]);
3616
+ }
3617
+
3618
+ return promise;
3619
+ }
3620
+
3621
+ getUri(config) {
3622
+ config = mergeConfig(this.defaults, config);
3623
+ const fullPath = buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls);
3624
+ return buildURL(fullPath, config.params, config.paramsSerializer);
3625
+ }
3626
+ }
3627
+
3628
+ // Provide aliases for supported request methods
3629
+ utils$1.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {
3630
+ /*eslint func-names:0*/
3631
+ Axios.prototype[method] = function(url, config) {
3632
+ return this.request(mergeConfig(config || {}, {
3633
+ method,
3634
+ url,
3635
+ data: (config || {}).data
3636
+ }));
3637
+ };
3638
+ });
3639
+
3640
+ utils$1.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {
3641
+ /*eslint func-names:0*/
3642
+
3643
+ function generateHTTPMethod(isForm) {
3644
+ return function httpMethod(url, data, config) {
3645
+ return this.request(mergeConfig(config || {}, {
3646
+ method,
3647
+ headers: isForm ? {
3648
+ 'Content-Type': 'multipart/form-data'
3649
+ } : {},
3650
+ url,
3651
+ data
3652
+ }));
3653
+ };
3654
+ }
3655
+
3656
+ Axios.prototype[method] = generateHTTPMethod();
3657
+
3658
+ Axios.prototype[method + 'Form'] = generateHTTPMethod(true);
3659
+ });
3660
+
3661
+ var Axios$1 = Axios;
3662
+
3663
+ /**
3664
+ * A `CancelToken` is an object that can be used to request cancellation of an operation.
3665
+ *
3666
+ * @param {Function} executor The executor function.
3667
+ *
3668
+ * @returns {CancelToken}
3669
+ */
3670
+ class CancelToken {
3671
+ constructor(executor) {
3672
+ if (typeof executor !== 'function') {
3673
+ throw new TypeError('executor must be a function.');
3674
+ }
3675
+
3676
+ let resolvePromise;
3677
+
3678
+ this.promise = new Promise(function promiseExecutor(resolve) {
3679
+ resolvePromise = resolve;
3680
+ });
3681
+
3682
+ const token = this;
3683
+
3684
+ // eslint-disable-next-line func-names
3685
+ this.promise.then(cancel => {
3686
+ if (!token._listeners) return;
3687
+
3688
+ let i = token._listeners.length;
3689
+
3690
+ while (i-- > 0) {
3691
+ token._listeners[i](cancel);
3692
+ }
3693
+ token._listeners = null;
3694
+ });
3695
+
3696
+ // eslint-disable-next-line func-names
3697
+ this.promise.then = onfulfilled => {
3698
+ let _resolve;
3699
+ // eslint-disable-next-line func-names
3700
+ const promise = new Promise(resolve => {
3701
+ token.subscribe(resolve);
3702
+ _resolve = resolve;
3703
+ }).then(onfulfilled);
3704
+
3705
+ promise.cancel = function reject() {
3706
+ token.unsubscribe(_resolve);
3707
+ };
3708
+
3709
+ return promise;
3710
+ };
3711
+
3712
+ executor(function cancel(message, config, request) {
3713
+ if (token.reason) {
3714
+ // Cancellation has already been requested
3715
+ return;
3716
+ }
3717
+
3718
+ token.reason = new CanceledError$1(message, config, request);
3719
+ resolvePromise(token.reason);
3720
+ });
3721
+ }
3722
+
3723
+ /**
3724
+ * Throws a `CanceledError` if cancellation has been requested.
3725
+ */
3726
+ throwIfRequested() {
3727
+ if (this.reason) {
3728
+ throw this.reason;
3729
+ }
3730
+ }
3731
+
3732
+ /**
3733
+ * Subscribe to the cancel signal
3734
+ */
3735
+
3736
+ subscribe(listener) {
3737
+ if (this.reason) {
3738
+ listener(this.reason);
3739
+ return;
3740
+ }
3741
+
3742
+ if (this._listeners) {
3743
+ this._listeners.push(listener);
3744
+ } else {
3745
+ this._listeners = [listener];
3746
+ }
3747
+ }
3748
+
3749
+ /**
3750
+ * Unsubscribe from the cancel signal
3751
+ */
3752
+
3753
+ unsubscribe(listener) {
3754
+ if (!this._listeners) {
3755
+ return;
3756
+ }
3757
+ const index = this._listeners.indexOf(listener);
3758
+ if (index !== -1) {
3759
+ this._listeners.splice(index, 1);
3760
+ }
3761
+ }
3762
+
3763
+ toAbortSignal() {
3764
+ const controller = new AbortController();
3765
+
3766
+ const abort = (err) => {
3767
+ controller.abort(err);
3768
+ };
3769
+
3770
+ this.subscribe(abort);
3771
+
3772
+ controller.signal.unsubscribe = () => this.unsubscribe(abort);
3773
+
3774
+ return controller.signal;
3775
+ }
3776
+
3777
+ /**
3778
+ * Returns an object that contains a new `CancelToken` and a function that, when called,
3779
+ * cancels the `CancelToken`.
3780
+ */
3781
+ static source() {
3782
+ let cancel;
3783
+ const token = new CancelToken(function executor(c) {
3784
+ cancel = c;
3785
+ });
3786
+ return {
3787
+ token,
3788
+ cancel
3789
+ };
3790
+ }
3791
+ }
3792
+
3793
+ var CancelToken$1 = CancelToken;
3794
+
3795
+ /**
3796
+ * Syntactic sugar for invoking a function and expanding an array for arguments.
3797
+ *
3798
+ * Common use case would be to use `Function.prototype.apply`.
3799
+ *
3800
+ * ```js
3801
+ * function f(x, y, z) {}
3802
+ * const args = [1, 2, 3];
3803
+ * f.apply(null, args);
3804
+ * ```
3805
+ *
3806
+ * With `spread` this example can be re-written.
3807
+ *
3808
+ * ```js
3809
+ * spread(function(x, y, z) {})([1, 2, 3]);
3810
+ * ```
3811
+ *
3812
+ * @param {Function} callback
3813
+ *
3814
+ * @returns {Function}
3815
+ */
3816
+ function spread(callback) {
3817
+ return function wrap(arr) {
3818
+ return callback.apply(null, arr);
3819
+ };
3820
+ }
3821
+
3822
+ /**
3823
+ * Determines whether the payload is an error thrown by Axios
3824
+ *
3825
+ * @param {*} payload The value to test
3826
+ *
3827
+ * @returns {boolean} True if the payload is an error thrown by Axios, otherwise false
3828
+ */
3829
+ function isAxiosError(payload) {
3830
+ return utils$1.isObject(payload) && (payload.isAxiosError === true);
3831
+ }
3832
+
3833
+ const HttpStatusCode = {
3834
+ Continue: 100,
3835
+ SwitchingProtocols: 101,
3836
+ Processing: 102,
3837
+ EarlyHints: 103,
3838
+ Ok: 200,
3839
+ Created: 201,
3840
+ Accepted: 202,
3841
+ NonAuthoritativeInformation: 203,
3842
+ NoContent: 204,
3843
+ ResetContent: 205,
3844
+ PartialContent: 206,
3845
+ MultiStatus: 207,
3846
+ AlreadyReported: 208,
3847
+ ImUsed: 226,
3848
+ MultipleChoices: 300,
3849
+ MovedPermanently: 301,
3850
+ Found: 302,
3851
+ SeeOther: 303,
3852
+ NotModified: 304,
3853
+ UseProxy: 305,
3854
+ Unused: 306,
3855
+ TemporaryRedirect: 307,
3856
+ PermanentRedirect: 308,
3857
+ BadRequest: 400,
3858
+ Unauthorized: 401,
3859
+ PaymentRequired: 402,
3860
+ Forbidden: 403,
3861
+ NotFound: 404,
3862
+ MethodNotAllowed: 405,
3863
+ NotAcceptable: 406,
3864
+ ProxyAuthenticationRequired: 407,
3865
+ RequestTimeout: 408,
3866
+ Conflict: 409,
3867
+ Gone: 410,
3868
+ LengthRequired: 411,
3869
+ PreconditionFailed: 412,
3870
+ PayloadTooLarge: 413,
3871
+ UriTooLong: 414,
3872
+ UnsupportedMediaType: 415,
3873
+ RangeNotSatisfiable: 416,
3874
+ ExpectationFailed: 417,
3875
+ ImATeapot: 418,
3876
+ MisdirectedRequest: 421,
3877
+ UnprocessableEntity: 422,
3878
+ Locked: 423,
3879
+ FailedDependency: 424,
3880
+ TooEarly: 425,
3881
+ UpgradeRequired: 426,
3882
+ PreconditionRequired: 428,
3883
+ TooManyRequests: 429,
3884
+ RequestHeaderFieldsTooLarge: 431,
3885
+ UnavailableForLegalReasons: 451,
3886
+ InternalServerError: 500,
3887
+ NotImplemented: 501,
3888
+ BadGateway: 502,
3889
+ ServiceUnavailable: 503,
3890
+ GatewayTimeout: 504,
3891
+ HttpVersionNotSupported: 505,
3892
+ VariantAlsoNegotiates: 506,
3893
+ InsufficientStorage: 507,
3894
+ LoopDetected: 508,
3895
+ NotExtended: 510,
3896
+ NetworkAuthenticationRequired: 511,
3897
+ WebServerIsDown: 521,
3898
+ ConnectionTimedOut: 522,
3899
+ OriginIsUnreachable: 523,
3900
+ TimeoutOccurred: 524,
3901
+ SslHandshakeFailed: 525,
3902
+ InvalidSslCertificate: 526,
3903
+ };
3904
+
3905
+ Object.entries(HttpStatusCode).forEach(([key, value]) => {
3906
+ HttpStatusCode[value] = key;
3907
+ });
3908
+
3909
+ var HttpStatusCode$1 = HttpStatusCode;
3910
+
3911
+ /**
3912
+ * Create an instance of Axios
3913
+ *
3914
+ * @param {Object} defaultConfig The default config for the instance
3915
+ *
3916
+ * @returns {Axios} A new instance of Axios
3917
+ */
3918
+ function createInstance(defaultConfig) {
3919
+ const context = new Axios$1(defaultConfig);
3920
+ const instance = bind(Axios$1.prototype.request, context);
3921
+
3922
+ // Copy axios.prototype to instance
3923
+ utils$1.extend(instance, Axios$1.prototype, context, {allOwnKeys: true});
3924
+
3925
+ // Copy context to instance
3926
+ utils$1.extend(instance, context, null, {allOwnKeys: true});
3927
+
3928
+ // Factory for creating new instances
3929
+ instance.create = function create(instanceConfig) {
3930
+ return createInstance(mergeConfig(defaultConfig, instanceConfig));
3931
+ };
3932
+
3933
+ return instance;
3934
+ }
3935
+
3936
+ // Create the default instance to be exported
3937
+ const axios = createInstance(defaults$1);
3938
+
3939
+ // Expose Axios class to allow class inheritance
3940
+ axios.Axios = Axios$1;
3941
+
3942
+ // Expose Cancel & CancelToken
3943
+ axios.CanceledError = CanceledError$1;
3944
+ axios.CancelToken = CancelToken$1;
3945
+ axios.isCancel = isCancel;
3946
+ axios.VERSION = VERSION;
3947
+ axios.toFormData = toFormData;
3948
+
3949
+ // Expose AxiosError class
3950
+ axios.AxiosError = AxiosError$1;
3951
+
3952
+ // alias for CanceledError for backward compatibility
3953
+ axios.Cancel = axios.CanceledError;
3954
+
3955
+ // Expose all/spread
3956
+ axios.all = function all(promises) {
3957
+ return Promise.all(promises);
3958
+ };
3959
+
3960
+ axios.spread = spread;
3961
+
3962
+ // Expose isAxiosError
3963
+ axios.isAxiosError = isAxiosError;
3964
+
3965
+ // Expose mergeConfig
3966
+ axios.mergeConfig = mergeConfig;
3967
+
3968
+ axios.AxiosHeaders = AxiosHeaders$1;
3969
+
3970
+ axios.formToJSON = thing => formDataToJSON(utils$1.isHTMLForm(thing) ? new FormData(thing) : thing);
3971
+
3972
+ axios.getAdapter = adapters.getAdapter;
3973
+
3974
+ axios.HttpStatusCode = HttpStatusCode$1;
3975
+
3976
+ axios.default = axios;
3977
+
3978
+ module.exports = axios;
3979
+ //# sourceMappingURL=axios.cjs.map