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