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