@hkyhy/marsun-components-core 0.1.18 → 0.1.21

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 (200) hide show
  1. package/dist/components/AgentHub/Chat/Detail/ChatAgentFab/index.d.ts +24 -0
  2. package/dist/components/AgentHub/Chat/Detail/ChatAgentFab/index.js +95 -0
  3. package/dist/components/AgentHub/Chat/Detail/ChatAgentFab/index.js.map +1 -0
  4. package/dist/components/AgentHub/Chat/Detail/ChatAgentFab/style.module.scss.js +15 -0
  5. package/dist/components/AgentHub/Chat/Detail/ChatAgentFab/style.module.scss.js.map +1 -0
  6. package/dist/components/AgentHub/Chat/Detail/ChatAgentFabLayout/index.d.ts +16 -0
  7. package/dist/components/AgentHub/Chat/Detail/ChatAgentFabLayout/index.js +37 -0
  8. package/dist/components/AgentHub/Chat/Detail/ChatAgentFabLayout/index.js.map +1 -0
  9. package/dist/components/AgentHub/Chat/Detail/ChatAgentFabLayout/style.module.scss.js +9 -0
  10. package/dist/components/AgentHub/Chat/Detail/ChatAgentFabLayout/style.module.scss.js.map +1 -0
  11. package/dist/components/AgentHub/Chat/Detail/ChatFollowUpSuggestions/index.d.ts +14 -0
  12. package/dist/components/AgentHub/Chat/Detail/ChatFollowUpSuggestions/index.js +79 -0
  13. package/dist/components/AgentHub/Chat/Detail/ChatFollowUpSuggestions/index.js.map +1 -0
  14. package/dist/components/AgentHub/Chat/Detail/ChatFollowUpSuggestions/style.module.scss.js +18 -0
  15. package/dist/components/AgentHub/Chat/Detail/ChatFollowUpSuggestions/style.module.scss.js.map +1 -0
  16. package/dist/components/AgentHub/Chat/Detail/ChatInput/index.d.ts +2 -0
  17. package/dist/components/AgentHub/Chat/Detail/ChatInput/index.js +60 -49
  18. package/dist/components/AgentHub/Chat/Detail/ChatInput/index.js.map +1 -1
  19. package/dist/components/AgentHub/Chat/Detail/ChatInput/style.module.scss.js +7 -6
  20. package/dist/components/AgentHub/Chat/Detail/ChatInput/style.module.scss.js.map +1 -1
  21. package/dist/components/AgentHub/Chat/Detail/ChatPanel/index.d.ts +17 -4
  22. package/dist/components/AgentHub/Chat/Detail/ChatPanel/index.js +104 -68
  23. package/dist/components/AgentHub/Chat/Detail/ChatPanel/index.js.map +1 -1
  24. package/dist/components/AgentHub/Chat/Detail/ChatPanel/style.module.scss.js +13 -8
  25. package/dist/components/AgentHub/Chat/Detail/ChatPanel/style.module.scss.js.map +1 -1
  26. package/dist/components/AgentHub/Chat/Detail/ChatSuggestionRow/index.js +5 -4
  27. package/dist/components/AgentHub/Chat/Detail/ChatSuggestionRow/index.js.map +1 -1
  28. package/dist/components/AgentHub/Chat/Detail/ChatSuggestionRow/style.module.scss.js +2 -2
  29. package/dist/components/AgentHub/Chat/Detail/ChatWidgetBlock/ChatWidgetSparkline.d.ts +7 -0
  30. package/dist/components/AgentHub/Chat/Detail/ChatWidgetBlock/ChatWidgetSparkline.js +55 -0
  31. package/dist/components/AgentHub/Chat/Detail/ChatWidgetBlock/ChatWidgetSparkline.js.map +1 -0
  32. package/dist/components/AgentHub/Chat/Detail/ChatWidgetBlock/index.d.ts +10 -0
  33. package/dist/components/AgentHub/Chat/Detail/ChatWidgetBlock/index.js +120 -0
  34. package/dist/components/AgentHub/Chat/Detail/ChatWidgetBlock/index.js.map +1 -0
  35. package/dist/components/AgentHub/Chat/Detail/ChatWidgetBlock/style.module.scss.js +32 -0
  36. package/dist/components/AgentHub/Chat/Detail/ChatWidgetBlock/style.module.scss.js.map +1 -0
  37. package/dist/components/AgentHub/Chat/Detail/CitationContent/style.module.scss.js +2 -2
  38. package/dist/components/AgentHub/Chat/Detail/MessageItem/index.js +130 -114
  39. package/dist/components/AgentHub/Chat/Detail/MessageItem/index.js.map +1 -1
  40. package/dist/components/AgentHub/Chat/Detail/MessageItem/style.module.scss.js +20 -18
  41. package/dist/components/AgentHub/Chat/Detail/MessageItem/style.module.scss.js.map +1 -1
  42. package/dist/components/AgentHub/Chat/Detail/index.d.ts +8 -0
  43. package/dist/components/AgentHub/Chat/hooks/index.d.ts +2 -0
  44. package/dist/components/AgentHub/Chat/hooks/useCitationPanel.d.ts +11 -0
  45. package/dist/components/AgentHub/Chat/hooks/useCitationPanel.js +22 -0
  46. package/dist/components/AgentHub/Chat/hooks/useCitationPanel.js.map +1 -0
  47. package/dist/components/AgentHub/types.d.ts +21 -0
  48. package/dist/components/Auth/ProtectedRoute.js +20 -14
  49. package/dist/components/Auth/ProtectedRoute.js.map +1 -1
  50. package/dist/components/File/index.d.ts +2 -0
  51. package/dist/components/File/utils/download.d.ts +20 -0
  52. package/dist/components/File/utils/download.js +30 -0
  53. package/dist/components/File/utils/download.js.map +1 -0
  54. package/dist/components/Filter/FilterDateRange/index.d.ts +6 -1
  55. package/dist/components/Filter/FilterDateRange/index.js +84 -62
  56. package/dist/components/Filter/FilterDateRange/index.js.map +1 -1
  57. package/dist/components/Filter/types.d.ts +1 -0
  58. package/dist/components/Filter/types.js.map +1 -1
  59. package/dist/components/Icons/index.d.ts +3 -1
  60. package/dist/components/Icons/index.js +157 -151
  61. package/dist/components/Icons/index.js.map +1 -1
  62. package/dist/index.d.ts +14 -0
  63. package/dist/index.js +377 -298
  64. package/dist/index.js.map +1 -1
  65. package/dist/marsun-components-core.css +1 -1
  66. package/dist/node_modules/axios/index.js +41 -0
  67. package/dist/node_modules/axios/index.js.map +1 -0
  68. package/dist/node_modules/axios/lib/adapters/adapters.js +66 -0
  69. package/dist/node_modules/axios/lib/adapters/adapters.js.map +1 -0
  70. package/dist/node_modules/axios/lib/adapters/fetch.js +324 -0
  71. package/dist/node_modules/axios/lib/adapters/fetch.js.map +1 -0
  72. package/dist/node_modules/axios/lib/adapters/xhr.js +86 -0
  73. package/dist/node_modules/axios/lib/adapters/xhr.js.map +1 -0
  74. package/dist/node_modules/axios/lib/axios.js +47 -0
  75. package/dist/node_modules/axios/lib/axios.js.map +1 -0
  76. package/dist/node_modules/axios/lib/cancel/CancelToken.js +78 -0
  77. package/dist/node_modules/axios/lib/cancel/CancelToken.js.map +1 -0
  78. package/dist/node_modules/axios/lib/cancel/CanceledError.js +19 -0
  79. package/dist/node_modules/axios/lib/cancel/CanceledError.js.map +1 -0
  80. package/dist/node_modules/axios/lib/cancel/isCancel.js +7 -0
  81. package/dist/node_modules/axios/lib/cancel/isCancel.js.map +1 -0
  82. package/dist/node_modules/axios/lib/core/Axios.js +168 -0
  83. package/dist/node_modules/axios/lib/core/Axios.js.map +1 -0
  84. package/dist/node_modules/axios/lib/core/AxiosError.js +110 -0
  85. package/dist/node_modules/axios/lib/core/AxiosError.js.map +1 -0
  86. package/dist/node_modules/axios/lib/core/AxiosHeaders.js +193 -0
  87. package/dist/node_modules/axios/lib/core/AxiosHeaders.js.map +1 -0
  88. package/dist/node_modules/axios/lib/core/InterceptorManager.js +60 -0
  89. package/dist/node_modules/axios/lib/core/InterceptorManager.js.map +1 -0
  90. package/dist/node_modules/axios/lib/core/buildFullPath.js +30 -0
  91. package/dist/node_modules/axios/lib/core/buildFullPath.js.map +1 -0
  92. package/dist/node_modules/axios/lib/core/dispatchRequest.js +43 -0
  93. package/dist/node_modules/axios/lib/core/dispatchRequest.js.map +1 -0
  94. package/dist/node_modules/axios/lib/core/mergeConfig.js +94 -0
  95. package/dist/node_modules/axios/lib/core/mergeConfig.js.map +1 -0
  96. package/dist/node_modules/axios/lib/core/settle.js +15 -0
  97. package/dist/node_modules/axios/lib/core/settle.js.map +1 -0
  98. package/dist/node_modules/axios/lib/core/transformData.js +14 -0
  99. package/dist/node_modules/axios/lib/core/transformData.js.map +1 -0
  100. package/dist/node_modules/axios/lib/defaults/index.js +96 -0
  101. package/dist/node_modules/axios/lib/defaults/index.js.map +1 -0
  102. package/dist/node_modules/axios/lib/defaults/transitional.js +12 -0
  103. package/dist/node_modules/axios/lib/defaults/transitional.js.map +1 -0
  104. package/dist/node_modules/axios/lib/env/data.js +5 -0
  105. package/dist/node_modules/axios/lib/env/data.js.map +1 -0
  106. package/dist/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +31 -0
  107. package/dist/node_modules/axios/lib/helpers/AxiosURLSearchParams.js.map +1 -0
  108. package/dist/node_modules/axios/lib/helpers/HttpStatusCode.js +78 -0
  109. package/dist/node_modules/axios/lib/helpers/HttpStatusCode.js.map +1 -0
  110. package/dist/node_modules/axios/lib/helpers/bind.js +9 -0
  111. package/dist/node_modules/axios/lib/helpers/bind.js.map +1 -0
  112. package/dist/node_modules/axios/lib/helpers/buildURL.js +24 -0
  113. package/dist/node_modules/axios/lib/helpers/buildURL.js.map +1 -0
  114. package/dist/node_modules/axios/lib/helpers/combineURLs.js +7 -0
  115. package/dist/node_modules/axios/lib/helpers/combineURLs.js.map +1 -0
  116. package/dist/node_modules/axios/lib/helpers/composeSignals.js +33 -0
  117. package/dist/node_modules/axios/lib/helpers/composeSignals.js.map +1 -0
  118. package/dist/node_modules/axios/lib/helpers/cookies.js +44 -0
  119. package/dist/node_modules/axios/lib/helpers/cookies.js.map +1 -0
  120. package/dist/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js +43 -0
  121. package/dist/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js.map +1 -0
  122. package/dist/node_modules/axios/lib/helpers/formDataToJSON.js +47 -0
  123. package/dist/node_modules/axios/lib/helpers/formDataToJSON.js.map +1 -0
  124. package/dist/node_modules/axios/lib/helpers/isAbsoluteURL.js +7 -0
  125. package/dist/node_modules/axios/lib/helpers/isAbsoluteURL.js.map +1 -0
  126. package/dist/node_modules/axios/lib/helpers/isAxiosError.js +8 -0
  127. package/dist/node_modules/axios/lib/helpers/isAxiosError.js.map +1 -0
  128. package/dist/node_modules/axios/lib/helpers/isURLSameOrigin.js +9 -0
  129. package/dist/node_modules/axios/lib/helpers/isURLSameOrigin.js.map +1 -0
  130. package/dist/node_modules/axios/lib/helpers/null.js +5 -0
  131. package/dist/node_modules/axios/lib/helpers/null.js.map +1 -0
  132. package/dist/node_modules/axios/lib/helpers/parseHeaders.js +31 -0
  133. package/dist/node_modules/axios/lib/helpers/parseHeaders.js.map +1 -0
  134. package/dist/node_modules/axios/lib/helpers/parseProtocol.js +8 -0
  135. package/dist/node_modules/axios/lib/helpers/parseProtocol.js.map +1 -0
  136. package/dist/node_modules/axios/lib/helpers/progressEventReducer.js +41 -0
  137. package/dist/node_modules/axios/lib/helpers/progressEventReducer.js.map +1 -0
  138. package/dist/node_modules/axios/lib/helpers/resolveConfig.js +54 -0
  139. package/dist/node_modules/axios/lib/helpers/resolveConfig.js.map +1 -0
  140. package/dist/node_modules/axios/lib/helpers/sanitizeHeaderValue.js +34 -0
  141. package/dist/node_modules/axios/lib/helpers/sanitizeHeaderValue.js.map +1 -0
  142. package/dist/node_modules/axios/lib/helpers/speedometer.js +20 -0
  143. package/dist/node_modules/axios/lib/helpers/speedometer.js.map +1 -0
  144. package/dist/node_modules/axios/lib/helpers/spread.js +9 -0
  145. package/dist/node_modules/axios/lib/helpers/spread.js.map +1 -0
  146. package/dist/node_modules/axios/lib/helpers/throttle.js +16 -0
  147. package/dist/node_modules/axios/lib/helpers/throttle.js.map +1 -0
  148. package/dist/node_modules/axios/lib/helpers/toFormData.js +115 -0
  149. package/dist/node_modules/axios/lib/helpers/toFormData.js.map +1 -0
  150. package/dist/node_modules/axios/lib/helpers/toURLEncodedForm.js +15 -0
  151. package/dist/node_modules/axios/lib/helpers/toURLEncodedForm.js.map +1 -0
  152. package/dist/node_modules/axios/lib/helpers/trackStream.js +67 -0
  153. package/dist/node_modules/axios/lib/helpers/trackStream.js.map +1 -0
  154. package/dist/node_modules/axios/lib/helpers/validator.js +58 -0
  155. package/dist/node_modules/axios/lib/helpers/validator.js.map +1 -0
  156. package/dist/node_modules/axios/lib/platform/browser/classes/Blob.js +5 -0
  157. package/dist/node_modules/axios/lib/platform/browser/classes/Blob.js.map +1 -0
  158. package/dist/node_modules/axios/lib/platform/browser/classes/FormData.js +5 -0
  159. package/dist/node_modules/axios/lib/platform/browser/classes/FormData.js.map +1 -0
  160. package/dist/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js +6 -0
  161. package/dist/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js.map +1 -0
  162. package/dist/node_modules/axios/lib/platform/browser/index.js +16 -0
  163. package/dist/node_modules/axios/lib/platform/browser/index.js.map +1 -0
  164. package/dist/node_modules/axios/lib/platform/common/utils.js +10 -0
  165. package/dist/node_modules/axios/lib/platform/common/utils.js.map +1 -0
  166. package/dist/node_modules/axios/lib/platform/index.js +10 -0
  167. package/dist/node_modules/axios/lib/platform/index.js.map +1 -0
  168. package/dist/node_modules/axios/lib/utils.js +303 -0
  169. package/dist/node_modules/axios/lib/utils.js.map +1 -0
  170. package/dist/styles/global.css +1 -1
  171. package/dist/types/auth.d.ts +18 -0
  172. package/dist/utils/authRedirect.d.ts +6 -0
  173. package/dist/utils/authRedirect.js +33 -0
  174. package/dist/utils/authRedirect.js.map +1 -0
  175. package/dist/utils/createMarsunRequest.d.ts +26 -0
  176. package/dist/utils/createMarsunRequest.js +53 -0
  177. package/dist/utils/createMarsunRequest.js.map +1 -0
  178. package/dist/utils/date.d.ts +16 -0
  179. package/dist/utils/date.js +36 -0
  180. package/dist/utils/date.js.map +1 -0
  181. package/dist/utils/department/departmentPath.d.ts +18 -0
  182. package/dist/utils/department/departmentPath.js +63 -0
  183. package/dist/utils/department/departmentPath.js.map +1 -0
  184. package/dist/utils/department/departmentScope.d.ts +20 -0
  185. package/dist/utils/department/departmentScope.js +63 -0
  186. package/dist/utils/department/departmentScope.js.map +1 -0
  187. package/dist/utils/department/types.d.ts +12 -0
  188. package/dist/utils/permissionStorage.d.ts +13 -0
  189. package/dist/utils/permissionStorage.js +43 -0
  190. package/dist/utils/permissionStorage.js.map +1 -0
  191. package/dist/utils/personOption.d.ts +49 -0
  192. package/dist/utils/personOption.js +90 -0
  193. package/dist/utils/personOption.js.map +1 -0
  194. package/dist/utils/sessionActivity.d.ts +5 -0
  195. package/dist/utils/sessionActivity.js +18 -0
  196. package/dist/utils/sessionActivity.js.map +1 -0
  197. package/dist/utils/user/employeeId.d.ts +8 -0
  198. package/dist/utils/user/employeeId.js +14 -0
  199. package/dist/utils/user/employeeId.js.map +1 -0
  200. package/package.json +26 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CancelToken.js","sources":["../../../../../node_modules/axios/lib/cancel/CancelToken.js"],"sourcesContent":["'use strict';\n\nimport CanceledError from './CanceledError.js';\n\n/**\n * A `CancelToken` is an object that can be used to request cancellation of an operation.\n *\n * @param {Function} executor The executor function.\n *\n * @returns {CancelToken}\n */\nclass CancelToken {\n constructor(executor) {\n if (typeof executor !== 'function') {\n throw new TypeError('executor must be a function.');\n }\n\n let resolvePromise;\n\n this.promise = new Promise(function promiseExecutor(resolve) {\n resolvePromise = resolve;\n });\n\n const token = this;\n\n // eslint-disable-next-line func-names\n this.promise.then((cancel) => {\n if (!token._listeners) return;\n\n let i = token._listeners.length;\n\n while (i-- > 0) {\n token._listeners[i](cancel);\n }\n token._listeners = null;\n });\n\n // eslint-disable-next-line func-names\n this.promise.then = (onfulfilled) => {\n let _resolve;\n // eslint-disable-next-line func-names\n const promise = new Promise((resolve) => {\n token.subscribe(resolve);\n _resolve = resolve;\n }).then(onfulfilled);\n\n promise.cancel = function reject() {\n token.unsubscribe(_resolve);\n };\n\n return promise;\n };\n\n executor(function cancel(message, config, request) {\n if (token.reason) {\n // Cancellation has already been requested\n return;\n }\n\n token.reason = new CanceledError(message, config, request);\n resolvePromise(token.reason);\n });\n }\n\n /**\n * Throws a `CanceledError` if cancellation has been requested.\n */\n throwIfRequested() {\n if (this.reason) {\n throw this.reason;\n }\n }\n\n /**\n * Subscribe to the cancel signal\n */\n\n subscribe(listener) {\n if (this.reason) {\n listener(this.reason);\n return;\n }\n\n if (this._listeners) {\n this._listeners.push(listener);\n } else {\n this._listeners = [listener];\n }\n }\n\n /**\n * Unsubscribe from the cancel signal\n */\n\n unsubscribe(listener) {\n if (!this._listeners) {\n return;\n }\n const index = this._listeners.indexOf(listener);\n if (index !== -1) {\n this._listeners.splice(index, 1);\n }\n }\n\n toAbortSignal() {\n const controller = new AbortController();\n\n const abort = (err) => {\n controller.abort(err);\n };\n\n this.subscribe(abort);\n\n controller.signal.unsubscribe = () => this.unsubscribe(abort);\n\n return controller.signal;\n }\n\n /**\n * Returns an object that contains a new `CancelToken` and a function that, when called,\n * cancels the `CancelToken`.\n */\n static source() {\n let cancel;\n const token = new CancelToken(function executor(c) {\n cancel = c;\n });\n return {\n token,\n cancel,\n };\n }\n}\n\nexport default CancelToken;\n"],"names":["CancelToken","executor","resolvePromise","resolve","token","cancel","i","onfulfilled","_resolve","promise","message","config","request","CanceledError","listener","index","controller","abort","err","c"],"mappings":";AAWA,MAAMA,EAAY;AAAA,EAChB,YAAYC,GAAU;AACpB,QAAI,OAAOA,KAAa;AACtB,YAAM,IAAI,UAAU,8BAA8B;AAGpD,QAAIC;AAEJ,SAAK,UAAU,IAAI,QAAQ,SAAyBC,GAAS;AAC3D,MAAAD,IAAiBC;AAAA,IACnB,CAAC;AAED,UAAMC,IAAQ;AAGd,SAAK,QAAQ,KAAK,CAACC,MAAW;AAC5B,UAAI,CAACD,EAAM,WAAY;AAEvB,UAAIE,IAAIF,EAAM,WAAW;AAEzB,aAAOE,MAAM;AACX,QAAAF,EAAM,WAAWE,CAAC,EAAED,CAAM;AAE5B,MAAAD,EAAM,aAAa;AAAA,IACrB,CAAC,GAGD,KAAK,QAAQ,OAAO,CAACG,MAAgB;AACnC,UAAIC;AAEJ,YAAMC,IAAU,IAAI,QAAQ,CAACN,MAAY;AACvC,QAAAC,EAAM,UAAUD,CAAO,GACvBK,IAAWL;AAAA,MACb,CAAC,EAAE,KAAKI,CAAW;AAEnB,aAAAE,EAAQ,SAAS,WAAkB;AACjC,QAAAL,EAAM,YAAYI,CAAQ;AAAA,MAC5B,GAEOC;AAAA,IACT,GAEAR,EAAS,SAAgBS,GAASC,GAAQC,GAAS;AACjD,MAAIR,EAAM,WAKVA,EAAM,SAAS,IAAIS,EAAcH,GAASC,GAAQC,CAAO,GACzDV,EAAeE,EAAM,MAAM;AAAA,IAC7B,CAAC;AAAA,EACH;AAAA;AAAA;AAAA;AAAA,EAKA,mBAAmB;AACjB,QAAI,KAAK;AACP,YAAM,KAAK;AAAA,EAEf;AAAA;AAAA;AAAA;AAAA,EAMA,UAAUU,GAAU;AAClB,QAAI,KAAK,QAAQ;AACf,MAAAA,EAAS,KAAK,MAAM;AACpB;AAAA,IACF;AAEA,IAAI,KAAK,aACP,KAAK,WAAW,KAAKA,CAAQ,IAE7B,KAAK,aAAa,CAACA,CAAQ;AAAA,EAE/B;AAAA;AAAA;AAAA;AAAA,EAMA,YAAYA,GAAU;AACpB,QAAI,CAAC,KAAK;AACR;AAEF,UAAMC,IAAQ,KAAK,WAAW,QAAQD,CAAQ;AAC9C,IAAIC,MAAU,MACZ,KAAK,WAAW,OAAOA,GAAO,CAAC;AAAA,EAEnC;AAAA,EAEA,gBAAgB;AACd,UAAMC,IAAa,IAAI,gBAAe,GAEhCC,IAAQ,CAACC,MAAQ;AACrB,MAAAF,EAAW,MAAME,CAAG;AAAA,IACtB;AAEA,gBAAK,UAAUD,CAAK,GAEpBD,EAAW,OAAO,cAAc,MAAM,KAAK,YAAYC,CAAK,GAErDD,EAAW;AAAA,EACpB;AAAA;AAAA;AAAA;AAAA;AAAA,EAMA,OAAO,SAAS;AACd,QAAIX;AAIJ,WAAO;AAAA,MACL,OAJY,IAAIL,EAAY,SAAkBmB,GAAG;AACjD,QAAAd,IAASc;AAAA,MACX,CAAC;AAAA,MAGC,QAAAd;AAAA,IACN;AAAA,EACE;AACF;","x_google_ignoreList":[0]}
@@ -0,0 +1,19 @@
1
+ import e from "../core/AxiosError.js";
2
+ class n extends e {
3
+ /**
4
+ * A `CanceledError` is an object that is thrown when an operation is canceled.
5
+ *
6
+ * @param {string=} message The message.
7
+ * @param {Object=} config The config.
8
+ * @param {Object=} request The request.
9
+ *
10
+ * @returns {CanceledError} The created error.
11
+ */
12
+ constructor(r, o, t) {
13
+ super(r ?? "canceled", e.ERR_CANCELED, o, t), this.name = "CanceledError", this.__CANCEL__ = !0;
14
+ }
15
+ }
16
+ export {
17
+ n as default
18
+ };
19
+ //# sourceMappingURL=CanceledError.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CanceledError.js","sources":["../../../../../node_modules/axios/lib/cancel/CanceledError.js"],"sourcesContent":["'use strict';\n\nimport AxiosError from '../core/AxiosError.js';\n\nclass CanceledError extends AxiosError {\n /**\n * A `CanceledError` is an object that is thrown when an operation is canceled.\n *\n * @param {string=} message The message.\n * @param {Object=} config The config.\n * @param {Object=} request The request.\n *\n * @returns {CanceledError} The created error.\n */\n constructor(message, config, request) {\n super(message == null ? 'canceled' : message, AxiosError.ERR_CANCELED, config, request);\n this.name = 'CanceledError';\n this.__CANCEL__ = true;\n }\n}\n\nexport default CanceledError;\n"],"names":["CanceledError","AxiosError","message","config","request"],"mappings":";AAIA,MAAMA,UAAsBC,EAAW;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAUrC,YAAYC,GAASC,GAAQC,GAAS;AACpC,UAAMF,KAAkB,YAAsBD,EAAW,cAAcE,GAAQC,CAAO,GACtF,KAAK,OAAO,iBACZ,KAAK,aAAa;AAAA,EACpB;AACF;","x_google_ignoreList":[0]}
@@ -0,0 +1,7 @@
1
+ function t(n) {
2
+ return !!(n && n.__CANCEL__);
3
+ }
4
+ export {
5
+ t as default
6
+ };
7
+ //# sourceMappingURL=isCancel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isCancel.js","sources":["../../../../../node_modules/axios/lib/cancel/isCancel.js"],"sourcesContent":["'use strict';\n\nexport default function isCancel(value) {\n return !!(value && value.__CANCEL__);\n}\n"],"names":["isCancel","value"],"mappings":"AAEe,SAASA,EAASC,GAAO;AACtC,SAAO,CAAC,EAAEA,KAASA,EAAM;AAC3B;","x_google_ignoreList":[0]}
@@ -0,0 +1,168 @@
1
+ import p from "../utils.js";
2
+ import O from "../helpers/buildURL.js";
3
+ import E from "./InterceptorManager.js";
4
+ import I from "./dispatchRequest.js";
5
+ import b from "./mergeConfig.js";
6
+ import x from "./buildFullPath.js";
7
+ import y from "../helpers/validator.js";
8
+ import S from "./AxiosHeaders.js";
9
+ import T from "../defaults/transitional.js";
10
+ const s = y.validators;
11
+ class R {
12
+ constructor(t) {
13
+ this.defaults = t || {}, this.interceptors = {
14
+ request: new E(),
15
+ response: new E()
16
+ };
17
+ }
18
+ /**
19
+ * Dispatch a request
20
+ *
21
+ * @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)
22
+ * @param {?Object} config
23
+ *
24
+ * @returns {Promise} The Promise to be fulfilled
25
+ */
26
+ async request(t, e) {
27
+ try {
28
+ return await this._request(t, e);
29
+ } catch (r) {
30
+ if (r instanceof Error) {
31
+ let l = {};
32
+ Error.captureStackTrace ? Error.captureStackTrace(l) : l = new Error();
33
+ const a = (() => {
34
+ if (!l.stack)
35
+ return "";
36
+ const u = l.stack.indexOf(`
37
+ `);
38
+ return u === -1 ? "" : l.stack.slice(u + 1);
39
+ })();
40
+ try {
41
+ if (!r.stack)
42
+ r.stack = a;
43
+ else if (a) {
44
+ const u = a.indexOf(`
45
+ `), i = u === -1 ? -1 : a.indexOf(`
46
+ `, u + 1), f = i === -1 ? "" : a.slice(i + 1);
47
+ String(r.stack).endsWith(f) || (r.stack += `
48
+ ` + a);
49
+ }
50
+ } catch {
51
+ }
52
+ }
53
+ throw r;
54
+ }
55
+ }
56
+ _request(t, e) {
57
+ typeof t == "string" ? (e = e || {}, e.url = t) : e = t || {}, e = b(this.defaults, e);
58
+ const { transitional: r, paramsSerializer: l, headers: a } = e;
59
+ r !== void 0 && y.assertOptions(
60
+ r,
61
+ {
62
+ silentJSONParsing: s.transitional(s.boolean),
63
+ forcedJSONParsing: s.transitional(s.boolean),
64
+ clarifyTimeoutError: s.transitional(s.boolean),
65
+ legacyInterceptorReqResOrdering: s.transitional(s.boolean),
66
+ advertiseZstdAcceptEncoding: s.transitional(s.boolean),
67
+ validateStatusUndefinedResolves: s.transitional(s.boolean)
68
+ },
69
+ !1
70
+ ), l != null && (p.isFunction(l) ? e.paramsSerializer = {
71
+ serialize: l
72
+ } : y.assertOptions(
73
+ l,
74
+ {
75
+ encode: s.function,
76
+ serialize: s.function
77
+ },
78
+ !0
79
+ )), e.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? e.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : e.allowAbsoluteUrls = !0), y.assertOptions(
80
+ e,
81
+ {
82
+ baseUrl: s.spelling("baseURL"),
83
+ withXsrfToken: s.spelling("withXSRFToken")
84
+ },
85
+ !0
86
+ ), e.method = (e.method || this.defaults.method || "get").toLowerCase();
87
+ let u = a && p.merge(a.common, a[e.method]);
88
+ a && p.forEach(["delete", "get", "head", "post", "put", "patch", "query", "common"], (n) => {
89
+ delete a[n];
90
+ }), e.headers = S.concat(u, a);
91
+ const i = [];
92
+ let f = !0;
93
+ this.interceptors.request.forEach(function(o) {
94
+ if (typeof o.runWhen == "function" && o.runWhen(e) === !1)
95
+ return;
96
+ f = f && o.synchronous;
97
+ const w = e.transitional || T;
98
+ w && w.legacyInterceptorReqResOrdering ? i.unshift(o.fulfilled, o.rejected) : i.push(o.fulfilled, o.rejected);
99
+ });
100
+ const m = [];
101
+ this.interceptors.response.forEach(function(o) {
102
+ m.push(o.fulfilled, o.rejected);
103
+ });
104
+ let h, d = 0, c;
105
+ if (!f) {
106
+ const n = [I.bind(this), void 0];
107
+ for (n.unshift(...i), n.push(...m), c = n.length, h = Promise.resolve(e); d < c; )
108
+ h = h.then(n[d++], n[d++]);
109
+ return h;
110
+ }
111
+ c = i.length;
112
+ let q = e;
113
+ for (; d < c; ) {
114
+ const n = i[d++], o = i[d++];
115
+ try {
116
+ q = n(q);
117
+ } catch (w) {
118
+ o.call(this, w);
119
+ break;
120
+ }
121
+ }
122
+ try {
123
+ h = I.call(this, q);
124
+ } catch (n) {
125
+ return Promise.reject(n);
126
+ }
127
+ for (d = 0, c = m.length; d < c; )
128
+ h = h.then(m[d++], m[d++]);
129
+ return h;
130
+ }
131
+ getUri(t) {
132
+ t = b(this.defaults, t);
133
+ const e = x(t.baseURL, t.url, t.allowAbsoluteUrls, t);
134
+ return O(e, t.params, t.paramsSerializer);
135
+ }
136
+ }
137
+ p.forEach(["delete", "get", "head", "options"], function(t) {
138
+ R.prototype[t] = function(e, r) {
139
+ return this.request(
140
+ b(r || {}, {
141
+ method: t,
142
+ url: e,
143
+ data: r && p.hasOwnProp(r, "data") ? r.data : void 0
144
+ })
145
+ );
146
+ };
147
+ });
148
+ p.forEach(["post", "put", "patch", "query"], function(t) {
149
+ function e(r) {
150
+ return function(a, u, i) {
151
+ return this.request(
152
+ b(i || {}, {
153
+ method: t,
154
+ headers: r ? {
155
+ "Content-Type": "multipart/form-data"
156
+ } : {},
157
+ url: a,
158
+ data: u
159
+ })
160
+ );
161
+ };
162
+ }
163
+ R.prototype[t] = e(), t !== "query" && (R.prototype[t + "Form"] = e(!0));
164
+ });
165
+ export {
166
+ R as default
167
+ };
168
+ //# sourceMappingURL=Axios.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Axios.js","sources":["../../../../../node_modules/axios/lib/core/Axios.js"],"sourcesContent":["'use strict';\n\nimport utils from '../utils.js';\nimport buildURL from '../helpers/buildURL.js';\nimport InterceptorManager from './InterceptorManager.js';\nimport dispatchRequest from './dispatchRequest.js';\nimport mergeConfig from './mergeConfig.js';\nimport buildFullPath from './buildFullPath.js';\nimport validator from '../helpers/validator.js';\nimport AxiosHeaders from './AxiosHeaders.js';\nimport transitionalDefaults from '../defaults/transitional.js';\n\nconst validators = validator.validators;\n\n/**\n * Create a new instance of Axios\n *\n * @param {Object} instanceConfig The default config for the instance\n *\n * @return {Axios} A new instance of Axios\n */\nclass Axios {\n constructor(instanceConfig) {\n this.defaults = instanceConfig || {};\n this.interceptors = {\n request: new InterceptorManager(),\n response: new InterceptorManager(),\n };\n }\n\n /**\n * Dispatch a request\n *\n * @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)\n * @param {?Object} config\n *\n * @returns {Promise} The Promise to be fulfilled\n */\n async request(configOrUrl, config) {\n try {\n return await this._request(configOrUrl, config);\n } catch (err) {\n if (err instanceof Error) {\n let dummy = {};\n\n Error.captureStackTrace ? Error.captureStackTrace(dummy) : (dummy = new Error());\n\n // slice off the Error: ... line\n const stack = (() => {\n if (!dummy.stack) {\n return '';\n }\n\n const firstNewlineIndex = dummy.stack.indexOf('\\n');\n\n return firstNewlineIndex === -1 ? '' : dummy.stack.slice(firstNewlineIndex + 1);\n })();\n try {\n if (!err.stack) {\n err.stack = stack;\n // match without the 2 top stack lines\n } else if (stack) {\n const firstNewlineIndex = stack.indexOf('\\n');\n const secondNewlineIndex =\n firstNewlineIndex === -1 ? -1 : stack.indexOf('\\n', firstNewlineIndex + 1);\n const stackWithoutTwoTopLines =\n secondNewlineIndex === -1 ? '' : stack.slice(secondNewlineIndex + 1);\n\n if (!String(err.stack).endsWith(stackWithoutTwoTopLines)) {\n err.stack += '\\n' + stack;\n }\n }\n } catch (e) {\n // ignore the case where \"stack\" is an un-writable property\n }\n }\n\n throw err;\n }\n }\n\n _request(configOrUrl, config) {\n /*eslint no-param-reassign:0*/\n // Allow for axios('example/url'[, config]) a la fetch API\n if (typeof configOrUrl === 'string') {\n config = config || {};\n config.url = configOrUrl;\n } else {\n config = configOrUrl || {};\n }\n\n config = mergeConfig(this.defaults, config);\n\n const { transitional, paramsSerializer, headers } = config;\n\n if (transitional !== undefined) {\n validator.assertOptions(\n transitional,\n {\n silentJSONParsing: validators.transitional(validators.boolean),\n forcedJSONParsing: validators.transitional(validators.boolean),\n clarifyTimeoutError: validators.transitional(validators.boolean),\n legacyInterceptorReqResOrdering: validators.transitional(validators.boolean),\n advertiseZstdAcceptEncoding: validators.transitional(validators.boolean),\n validateStatusUndefinedResolves: validators.transitional(validators.boolean),\n },\n false\n );\n }\n\n if (paramsSerializer != null) {\n if (utils.isFunction(paramsSerializer)) {\n config.paramsSerializer = {\n serialize: paramsSerializer,\n };\n } else {\n validator.assertOptions(\n paramsSerializer,\n {\n encode: validators.function,\n serialize: validators.function,\n },\n true\n );\n }\n }\n\n // Set config.allowAbsoluteUrls\n if (config.allowAbsoluteUrls !== undefined) {\n // do nothing\n } else if (this.defaults.allowAbsoluteUrls !== undefined) {\n config.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls;\n } else {\n config.allowAbsoluteUrls = true;\n }\n\n validator.assertOptions(\n config,\n {\n baseUrl: validators.spelling('baseURL'),\n withXsrfToken: validators.spelling('withXSRFToken'),\n },\n true\n );\n\n // Set config.method\n config.method = (config.method || this.defaults.method || 'get').toLowerCase();\n\n // Flatten headers\n let contextHeaders = headers && utils.merge(headers.common, headers[config.method]);\n\n headers &&\n utils.forEach(['delete', 'get', 'head', 'post', 'put', 'patch', 'query', 'common'], (method) => {\n delete headers[method];\n });\n\n config.headers = AxiosHeaders.concat(contextHeaders, headers);\n\n // filter out skipped interceptors\n const requestInterceptorChain = [];\n let synchronousRequestInterceptors = true;\n this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {\n if (typeof interceptor.runWhen === 'function' && interceptor.runWhen(config) === false) {\n return;\n }\n\n synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;\n\n const transitional = config.transitional || transitionalDefaults;\n const legacyInterceptorReqResOrdering =\n transitional && transitional.legacyInterceptorReqResOrdering;\n\n if (legacyInterceptorReqResOrdering) {\n requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);\n } else {\n requestInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);\n }\n });\n\n const responseInterceptorChain = [];\n this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {\n responseInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);\n });\n\n let promise;\n let i = 0;\n let len;\n\n if (!synchronousRequestInterceptors) {\n const chain = [dispatchRequest.bind(this), undefined];\n chain.unshift(...requestInterceptorChain);\n chain.push(...responseInterceptorChain);\n len = chain.length;\n\n promise = Promise.resolve(config);\n\n while (i < len) {\n promise = promise.then(chain[i++], chain[i++]);\n }\n\n return promise;\n }\n\n len = requestInterceptorChain.length;\n\n let newConfig = config;\n\n while (i < len) {\n const onFulfilled = requestInterceptorChain[i++];\n const onRejected = requestInterceptorChain[i++];\n try {\n newConfig = onFulfilled(newConfig);\n } catch (error) {\n onRejected.call(this, error);\n break;\n }\n }\n\n try {\n promise = dispatchRequest.call(this, newConfig);\n } catch (error) {\n return Promise.reject(error);\n }\n\n i = 0;\n len = responseInterceptorChain.length;\n\n while (i < len) {\n promise = promise.then(responseInterceptorChain[i++], responseInterceptorChain[i++]);\n }\n\n return promise;\n }\n\n getUri(config) {\n config = mergeConfig(this.defaults, config);\n const fullPath = buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls, config);\n return buildURL(fullPath, config.params, config.paramsSerializer);\n }\n}\n\n// Provide aliases for supported request methods\nutils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {\n /*eslint func-names:0*/\n Axios.prototype[method] = function (url, config) {\n return this.request(\n mergeConfig(config || {}, {\n method,\n url,\n data: config && utils.hasOwnProp(config, 'data') ? config.data : undefined,\n })\n );\n };\n});\n\nutils.forEach(['post', 'put', 'patch', 'query'], function forEachMethodWithData(method) {\n function generateHTTPMethod(isForm) {\n return function httpMethod(url, data, config) {\n return this.request(\n mergeConfig(config || {}, {\n method,\n headers: isForm\n ? {\n 'Content-Type': 'multipart/form-data',\n }\n : {},\n url,\n data,\n })\n );\n };\n }\n\n Axios.prototype[method] = generateHTTPMethod();\n\n // QUERY is a safe/idempotent read method; multipart form bodies don't fit\n // its semantics, so no queryForm shorthand is generated.\n if (method !== 'query') {\n Axios.prototype[method + 'Form'] = generateHTTPMethod(true);\n }\n});\n\nexport default Axios;\n"],"names":["validators","validator","Axios","instanceConfig","InterceptorManager","configOrUrl","config","err","dummy","stack","firstNewlineIndex","secondNewlineIndex","stackWithoutTwoTopLines","mergeConfig","transitional","paramsSerializer","headers","utils","contextHeaders","method","AxiosHeaders","requestInterceptorChain","synchronousRequestInterceptors","interceptor","transitionalDefaults","responseInterceptorChain","promise","i","len","chain","dispatchRequest","newConfig","onFulfilled","onRejected","error","fullPath","buildFullPath","buildURL","url","generateHTTPMethod","isForm","data"],"mappings":";;;;;;;;;AAYA,MAAMA,IAAaC,EAAU;AAS7B,MAAMC,EAAM;AAAA,EACV,YAAYC,GAAgB;AAC1B,SAAK,WAAWA,KAAkB,CAAA,GAClC,KAAK,eAAe;AAAA,MAClB,SAAS,IAAIC,EAAkB;AAAA,MAC/B,UAAU,IAAIA,EAAkB;AAAA,IACtC;AAAA,EACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAUA,MAAM,QAAQC,GAAaC,GAAQ;AACjC,QAAI;AACF,aAAO,MAAM,KAAK,SAASD,GAAaC,CAAM;AAAA,IAChD,SAASC,GAAK;AACZ,UAAIA,aAAe,OAAO;AACxB,YAAIC,IAAQ,CAAA;AAEZ,cAAM,oBAAoB,MAAM,kBAAkBA,CAAK,IAAKA,IAAQ,IAAI;AAGxE,cAAMC,KAAS,MAAM;AACnB,cAAI,CAACD,EAAM;AACT,mBAAO;AAGT,gBAAME,IAAoBF,EAAM,MAAM,QAAQ;AAAA,CAAI;AAElD,iBAAOE,MAAsB,KAAK,KAAKF,EAAM,MAAM,MAAME,IAAoB,CAAC;AAAA,QAChF,GAAC;AACD,YAAI;AACF,cAAI,CAACH,EAAI;AACP,YAAAA,EAAI,QAAQE;AAAA,mBAEHA,GAAO;AAChB,kBAAMC,IAAoBD,EAAM,QAAQ;AAAA,CAAI,GACtCE,IACJD,MAAsB,KAAK,KAAKD,EAAM,QAAQ;AAAA,GAAMC,IAAoB,CAAC,GACrEE,IACJD,MAAuB,KAAK,KAAKF,EAAM,MAAME,IAAqB,CAAC;AAErE,YAAK,OAAOJ,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,WAASoB,EAAmBC,GAAQ;AAClC,WAAO,SAAoBF,GAAKG,GAAMnC,GAAQ;AAC5C,aAAO,KAAK;AAAA,QACVO,EAAYP,KAAU,IAAI;AAAA,UACxB,QAAAa;AAAA,UACA,SAASqB,IACL;AAAA,YACE,gBAAgB;AAAA,UAChC,IACc,CAAA;AAAA,UACJ,KAAAF;AAAA,UACA,MAAAG;AAAA,QACV,CAAS;AAAA,MACT;AAAA,IACI;AAAA,EACF;AAEA,EAAAvC,EAAM,UAAUiB,CAAM,IAAIoB,EAAkB,GAIxCpB,MAAW,YACbjB,EAAM,UAAUiB,IAAS,MAAM,IAAIoB,EAAmB,EAAI;AAE9D,CAAC;","x_google_ignoreList":[0]}
@@ -0,0 +1,110 @@
1
+ import R from "../utils.js";
2
+ import u from "./AxiosHeaders.js";
3
+ const f = "[REDACTED ****]";
4
+ function l(_) {
5
+ if (R.hasOwnProp(_, "toJSON"))
6
+ return !0;
7
+ let e = Object.getPrototypeOf(_);
8
+ for (; e && e !== Object.prototype; ) {
9
+ if (R.hasOwnProp(e, "toJSON"))
10
+ return !0;
11
+ e = Object.getPrototypeOf(e);
12
+ }
13
+ return !1;
14
+ }
15
+ function D(_, e) {
16
+ const s = new Set(e.map((t) => String(t).toLowerCase())), E = [], r = (t) => {
17
+ if (t === null || typeof t != "object" || R.isBuffer(t)) return t;
18
+ if (E.indexOf(t) !== -1) return;
19
+ t instanceof u && (t = t.toJSON()), E.push(t);
20
+ let a;
21
+ if (R.isArray(t))
22
+ a = [], t.forEach((n, O) => {
23
+ const o = r(n);
24
+ R.isUndefined(o) || (a[O] = o);
25
+ });
26
+ else {
27
+ if (!R.isPlainObject(t) && l(t))
28
+ return E.pop(), t;
29
+ a = /* @__PURE__ */ Object.create(null);
30
+ for (const [n, O] of Object.entries(t)) {
31
+ const o = s.has(n.toLowerCase()) ? f : r(O);
32
+ R.isUndefined(o) || (a[n] = o);
33
+ }
34
+ }
35
+ return E.pop(), a;
36
+ };
37
+ return r(_);
38
+ }
39
+ class i extends Error {
40
+ static from(e, s, E, r, t, a) {
41
+ const n = new i(e.message, s || e.code, E, r, t);
42
+ return Object.defineProperty(n, "cause", {
43
+ __proto__: null,
44
+ value: e,
45
+ writable: !0,
46
+ enumerable: !1,
47
+ configurable: !0
48
+ }), n.name = e.name, e.status != null && n.status == null && (n.status = e.status), a && Object.assign(n, a), n;
49
+ }
50
+ /**
51
+ * Create an Error with the specified message, config, error code, request and response.
52
+ *
53
+ * @param {string} message The error message.
54
+ * @param {string} [code] The error code (for example, 'ECONNABORTED').
55
+ * @param {Object} [config] The config.
56
+ * @param {Object} [request] The request.
57
+ * @param {Object} [response] The response.
58
+ *
59
+ * @returns {Error} The created error.
60
+ */
61
+ constructor(e, s, E, r, t) {
62
+ super(e), Object.defineProperty(this, "message", {
63
+ // Null-proto descriptor so a polluted Object.prototype.get cannot turn
64
+ // this data descriptor into an accessor descriptor on the way in.
65
+ __proto__: null,
66
+ value: e,
67
+ enumerable: !0,
68
+ writable: !0,
69
+ configurable: !0
70
+ }), this.name = "AxiosError", this.isAxiosError = !0, s && (this.code = s), E && (this.config = E), r && (this.request = r), t && (this.response = t, this.status = t.status);
71
+ }
72
+ toJSON() {
73
+ const e = this.config, s = e && R.hasOwnProp(e, "redact") ? e.redact : void 0, E = R.isArray(s) && s.length > 0 ? D(e, s) : R.toJSONObject(e);
74
+ return {
75
+ // Standard
76
+ message: this.message,
77
+ name: this.name,
78
+ // Microsoft
79
+ description: this.description,
80
+ number: this.number,
81
+ // Mozilla
82
+ fileName: this.fileName,
83
+ lineNumber: this.lineNumber,
84
+ columnNumber: this.columnNumber,
85
+ stack: this.stack,
86
+ // Axios
87
+ config: E,
88
+ code: this.code,
89
+ status: this.status
90
+ };
91
+ }
92
+ }
93
+ i.ERR_BAD_OPTION_VALUE = "ERR_BAD_OPTION_VALUE";
94
+ i.ERR_BAD_OPTION = "ERR_BAD_OPTION";
95
+ i.ECONNABORTED = "ECONNABORTED";
96
+ i.ETIMEDOUT = "ETIMEDOUT";
97
+ i.ECONNREFUSED = "ECONNREFUSED";
98
+ i.ERR_NETWORK = "ERR_NETWORK";
99
+ i.ERR_FR_TOO_MANY_REDIRECTS = "ERR_FR_TOO_MANY_REDIRECTS";
100
+ i.ERR_DEPRECATED = "ERR_DEPRECATED";
101
+ i.ERR_BAD_RESPONSE = "ERR_BAD_RESPONSE";
102
+ i.ERR_BAD_REQUEST = "ERR_BAD_REQUEST";
103
+ i.ERR_CANCELED = "ERR_CANCELED";
104
+ i.ERR_NOT_SUPPORT = "ERR_NOT_SUPPORT";
105
+ i.ERR_INVALID_URL = "ERR_INVALID_URL";
106
+ i.ERR_FORM_DATA_DEPTH_EXCEEDED = "ERR_FORM_DATA_DEPTH_EXCEEDED";
107
+ export {
108
+ i as default
109
+ };
110
+ //# sourceMappingURL=AxiosError.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AxiosError.js","sources":["../../../../../node_modules/axios/lib/core/AxiosError.js"],"sourcesContent":["'use strict';\n\nimport utils from '../utils.js';\nimport AxiosHeaders from './AxiosHeaders.js';\n\nconst REDACTED = '[REDACTED ****]';\n\nfunction hasOwnOrPrototypeToJSON(source) {\n if (utils.hasOwnProp(source, 'toJSON')) {\n return true;\n }\n\n let prototype = Object.getPrototypeOf(source);\n\n while (prototype && prototype !== Object.prototype) {\n if (utils.hasOwnProp(prototype, 'toJSON')) {\n return true;\n }\n\n prototype = Object.getPrototypeOf(prototype);\n }\n\n return false;\n}\n\n// Build a plain-object snapshot of `config` and replace the value of any key\n// (case-insensitive) listed in `redactKeys` with REDACTED. Walks through arrays\n// and AxiosHeaders, and short-circuits on circular references.\nfunction redactConfig(config, redactKeys) {\n const lowerKeys = new Set(redactKeys.map((k) => String(k).toLowerCase()));\n const seen = [];\n\n const visit = (source) => {\n if (source === null || typeof source !== 'object') return source;\n if (utils.isBuffer(source)) return source;\n if (seen.indexOf(source) !== -1) return undefined;\n\n if (source instanceof AxiosHeaders) {\n source = source.toJSON();\n }\n\n seen.push(source);\n\n let result;\n if (utils.isArray(source)) {\n result = [];\n source.forEach((v, i) => {\n const reducedValue = visit(v);\n if (!utils.isUndefined(reducedValue)) {\n result[i] = reducedValue;\n }\n });\n } else {\n if (!utils.isPlainObject(source) && hasOwnOrPrototypeToJSON(source)) {\n seen.pop();\n return source;\n }\n\n result = Object.create(null);\n for (const [key, value] of Object.entries(source)) {\n const reducedValue = lowerKeys.has(key.toLowerCase()) ? REDACTED : visit(value);\n if (!utils.isUndefined(reducedValue)) {\n result[key] = reducedValue;\n }\n }\n }\n\n seen.pop();\n return result;\n };\n\n return visit(config);\n}\n\nclass AxiosError extends Error {\n static from(error, code, config, request, response, customProps) {\n const axiosError = new AxiosError(error.message, code || error.code, config, request, response);\n // Match native `Error` `cause` semantics: non-enumerable. The wrapped\n // error often carries circular internals (sockets, requests, agents), so\n // an enumerable `cause` makes structured loggers (pino/winston) and any\n // own-property walk throw \"Converting circular structure to JSON\".\n // Regression from #6982; see #7205. `__proto__: null` mirrors the\n // `message` descriptor below (prototype-pollution-safe descriptor).\n Object.defineProperty(axiosError, 'cause', {\n __proto__: null,\n value: error,\n writable: true,\n enumerable: false,\n configurable: true,\n });\n axiosError.name = error.name;\n\n // Preserve status from the original error if not already set from response\n if (error.status != null && axiosError.status == null) {\n axiosError.status = error.status;\n }\n\n customProps && Object.assign(axiosError, customProps);\n return axiosError;\n }\n\n /**\n * Create an Error with the specified message, config, error code, request and response.\n *\n * @param {string} message The error message.\n * @param {string} [code] The error code (for example, 'ECONNABORTED').\n * @param {Object} [config] The config.\n * @param {Object} [request] The request.\n * @param {Object} [response] The response.\n *\n * @returns {Error} The created error.\n */\n constructor(message, code, config, request, response) {\n super(message);\n\n // Make message enumerable to maintain backward compatibility\n // The native Error constructor sets message as non-enumerable,\n // but axios < v1.13.3 had it as enumerable\n Object.defineProperty(this, 'message', {\n // Null-proto descriptor so a polluted Object.prototype.get cannot turn\n // this data descriptor into an accessor descriptor on the way in.\n __proto__: null,\n value: message,\n enumerable: true,\n writable: true,\n configurable: true,\n });\n\n this.name = 'AxiosError';\n this.isAxiosError = true;\n code && (this.code = code);\n config && (this.config = config);\n request && (this.request = request);\n if (response) {\n this.response = response;\n this.status = response.status;\n }\n }\n\n toJSON() {\n // Opt-in redaction: when the request config carries a `redact` array, the\n // value of any matching key (case-insensitive, at any depth) is replaced\n // with REDACTED in the serialized snapshot. Undefined or empty leaves the\n // existing serialization behavior unchanged.\n const config = this.config;\n const redactKeys = config && utils.hasOwnProp(config, 'redact') ? config.redact : undefined;\n const serializedConfig =\n utils.isArray(redactKeys) && redactKeys.length > 0\n ? redactConfig(config, redactKeys)\n : utils.toJSONObject(config);\n\n return {\n // Standard\n message: this.message,\n name: this.name,\n // Microsoft\n description: this.description,\n number: this.number,\n // Mozilla\n fileName: this.fileName,\n lineNumber: this.lineNumber,\n columnNumber: this.columnNumber,\n stack: this.stack,\n // Axios\n config: serializedConfig,\n code: this.code,\n status: this.status,\n };\n }\n}\n\n// This can be changed to static properties as soon as the parser options in .eslint.cjs are updated.\nAxiosError.ERR_BAD_OPTION_VALUE = 'ERR_BAD_OPTION_VALUE';\nAxiosError.ERR_BAD_OPTION = 'ERR_BAD_OPTION';\nAxiosError.ECONNABORTED = 'ECONNABORTED';\nAxiosError.ETIMEDOUT = 'ETIMEDOUT';\nAxiosError.ECONNREFUSED = 'ECONNREFUSED';\nAxiosError.ERR_NETWORK = 'ERR_NETWORK';\nAxiosError.ERR_FR_TOO_MANY_REDIRECTS = 'ERR_FR_TOO_MANY_REDIRECTS';\nAxiosError.ERR_DEPRECATED = 'ERR_DEPRECATED';\nAxiosError.ERR_BAD_RESPONSE = 'ERR_BAD_RESPONSE';\nAxiosError.ERR_BAD_REQUEST = 'ERR_BAD_REQUEST';\nAxiosError.ERR_CANCELED = 'ERR_CANCELED';\nAxiosError.ERR_NOT_SUPPORT = 'ERR_NOT_SUPPORT';\nAxiosError.ERR_INVALID_URL = 'ERR_INVALID_URL';\nAxiosError.ERR_FORM_DATA_DEPTH_EXCEEDED = 'ERR_FORM_DATA_DEPTH_EXCEEDED';\n\nexport default AxiosError;\n"],"names":["REDACTED","hasOwnOrPrototypeToJSON","source","utils","prototype","redactConfig","config","redactKeys","lowerKeys","k","seen","visit","AxiosHeaders","result","v","i","reducedValue","key","value","AxiosError","error","code","request","response","customProps","axiosError","message","serializedConfig"],"mappings":";;AAKA,MAAMA,IAAW;AAEjB,SAASC,EAAwBC,GAAQ;AACvC,MAAIC,EAAM,WAAWD,GAAQ,QAAQ;AACnC,WAAO;AAGT,MAAIE,IAAY,OAAO,eAAeF,CAAM;AAE5C,SAAOE,KAAaA,MAAc,OAAO,aAAW;AAClD,QAAID,EAAM,WAAWC,GAAW,QAAQ;AACtC,aAAO;AAGT,IAAAA,IAAY,OAAO,eAAeA,CAAS;AAAA,EAC7C;AAEA,SAAO;AACT;AAKA,SAASC,EAAaC,GAAQC,GAAY;AACxC,QAAMC,IAAY,IAAI,IAAID,EAAW,IAAI,CAACE,MAAM,OAAOA,CAAC,EAAE,YAAW,CAAE,CAAC,GAClEC,IAAO,CAAA,GAEPC,IAAQ,CAACT,MAAW;AAExB,QADIA,MAAW,QAAQ,OAAOA,KAAW,YACrCC,EAAM,SAASD,CAAM,EAAG,QAAOA;AACnC,QAAIQ,EAAK,QAAQR,CAAM,MAAM,GAAI;AAEjC,IAAIA,aAAkBU,MACpBV,IAASA,EAAO,OAAM,IAGxBQ,EAAK,KAAKR,CAAM;AAEhB,QAAIW;AACJ,QAAIV,EAAM,QAAQD,CAAM;AACtB,MAAAW,IAAS,CAAA,GACTX,EAAO,QAAQ,CAACY,GAAGC,MAAM;AACvB,cAAMC,IAAeL,EAAMG,CAAC;AAC5B,QAAKX,EAAM,YAAYa,CAAY,MACjCH,EAAOE,CAAC,IAAIC;AAAA,MAEhB,CAAC;AAAA,SACI;AACL,UAAI,CAACb,EAAM,cAAcD,CAAM,KAAKD,EAAwBC,CAAM;AAChE,eAAAQ,EAAK,IAAG,GACDR;AA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K,WAAWA,GAChB,KAAK,SAASA,EAAS;AAAA,EAE3B;AAAA,EAEA,SAAS;AAKP,UAAMjB,IAAS,KAAK,QACdC,IAAaD,KAAUH,EAAM,WAAWG,GAAQ,QAAQ,IAAIA,EAAO,SAAS,QAC5EqB,IACJxB,EAAM,QAAQI,CAAU,KAAKA,EAAW,SAAS,IAC7CF,EAAaC,GAAQC,CAAU,IAC/BJ,EAAM,aAAaG,CAAM;AAE/B,WAAO;AAAA;AAAA,MAEL,SAAS,KAAK;AAAA,MACd,MAAM,KAAK;AAAA;AAAA,MAEX,aAAa,KAAK;AAAA,MAClB,QAAQ,KAAK;AAAA;AAAA,MAEb,UAAU,KAAK;AAAA,MACf,YAAY,KAAK;AAAA,MACjB,cAAc,KAAK;AAAA,MACnB,OAAO,KAAK;AAAA;AAAA,MAEZ,QAAQqB;AAAA,MACR,MAAM,KAAK;AAAA,MACX,QAAQ,KAAK;AAAA,IACnB;AAAA,EACE;AACF;AAGAR,EAAW,uBAAuB;AAClCA,EAAW,iBAAiB;AAC5BA,EAAW,eAAe;AAC1BA,EAAW,YAAY;AACvBA,EAAW,eAAe;AAC1BA,EAAW,cAAc;AACzBA,EAAW,4BAA4B;AACvCA,EAAW,iBAAiB;AAC5BA,EAAW,mBAAmB;AAC9BA,EAAW,kBAAkB;AAC7BA,EAAW,eAAe;AAC1BA,EAAW,kBAAkB;AAC7BA,EAAW,kBAAkB;AAC7BA,EAAW,+BAA+B;","x_google_ignoreList":[0]}
@@ -0,0 +1,193 @@
1
+ import i from "../utils.js";
2
+ import h from "../helpers/parseHeaders.js";
3
+ import { sanitizeHeaderValue as A } from "../helpers/sanitizeHeaderValue.js";
4
+ const S = Symbol("internals");
5
+ function y(r) {
6
+ return r && String(r).trim().toLowerCase();
7
+ }
8
+ function m(r) {
9
+ return r === !1 || r == null ? r : i.isArray(r) ? r.map(m) : A(String(r));
10
+ }
11
+ function j(r) {
12
+ const t = /* @__PURE__ */ Object.create(null), e = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
13
+ let s;
14
+ for (; s = e.exec(r); )
15
+ t[s[1]] = s[2];
16
+ return t;
17
+ }
18
+ const k = (r) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(r.trim());
19
+ function g(r, t, e, s, n) {
20
+ if (i.isFunction(s))
21
+ return s.call(this, t, e);
22
+ if (n && (t = e), !!i.isString(t)) {
23
+ if (i.isString(s))
24
+ return t.indexOf(s) !== -1;
25
+ if (i.isRegExp(s))
26
+ return s.test(t);
27
+ }
28
+ }
29
+ function E(r) {
30
+ return r.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, e, s) => e.toUpperCase() + s);
31
+ }
32
+ function H(r, t) {
33
+ const e = i.toCamelCase(" " + t);
34
+ ["get", "set", "has"].forEach((s) => {
35
+ Object.defineProperty(r, s + e, {
36
+ // Null-proto descriptor so a polluted Object.prototype.get cannot turn
37
+ // this data descriptor into an accessor descriptor on the way in.
38
+ __proto__: null,
39
+ value: function(n, o, f) {
40
+ return this[s].call(this, t, n, o, f);
41
+ },
42
+ configurable: !0
43
+ });
44
+ });
45
+ }
46
+ class b {
47
+ constructor(t) {
48
+ t && this.set(t);
49
+ }
50
+ set(t, e, s) {
51
+ const n = this;
52
+ function o(c, a, u) {
53
+ const l = y(a);
54
+ if (!l)
55
+ return;
56
+ const p = i.findKey(n, l);
57
+ (!p || n[p] === void 0 || u === !0 || u === void 0 && n[p] !== !1) && (n[p || a] = m(c));
58
+ }
59
+ const f = (c, a) => i.forEach(c, (u, l) => o(u, l, a));
60
+ if (i.isPlainObject(t) || t instanceof this.constructor)
61
+ f(t, e);
62
+ else if (i.isString(t) && (t = t.trim()) && !k(t))
63
+ f(h(t), e);
64
+ else if (i.isObject(t) && i.isSafeIterable(t)) {
65
+ let c = /* @__PURE__ */ Object.create(null), a, u;
66
+ for (const l of t) {
67
+ if (!i.isArray(l))
68
+ throw new TypeError("Object iterator must return a key-value pair");
69
+ u = l[0], i.hasOwnProp(c, u) ? (a = c[u], c[u] = i.isArray(a) ? [...a, l[1]] : [a, l[1]]) : c[u] = l[1];
70
+ }
71
+ f(c, e);
72
+ } else
73
+ t != null && o(e, t, s);
74
+ return this;
75
+ }
76
+ get(t, e) {
77
+ if (t = y(t), t) {
78
+ const s = i.findKey(this, t);
79
+ if (s) {
80
+ const n = this[s];
81
+ if (!e)
82
+ return n;
83
+ if (e === !0)
84
+ return j(n);
85
+ if (i.isFunction(e))
86
+ return e.call(this, n, s);
87
+ if (i.isRegExp(e))
88
+ return e.exec(n);
89
+ throw new TypeError("parser must be boolean|regexp|function");
90
+ }
91
+ }
92
+ }
93
+ has(t, e) {
94
+ if (t = y(t), t) {
95
+ const s = i.findKey(this, t);
96
+ return !!(s && this[s] !== void 0 && (!e || g(this, this[s], s, e)));
97
+ }
98
+ return !1;
99
+ }
100
+ delete(t, e) {
101
+ const s = this;
102
+ let n = !1;
103
+ function o(f) {
104
+ if (f = y(f), f) {
105
+ const c = i.findKey(s, f);
106
+ c && (!e || g(s, s[c], c, e)) && (delete s[c], n = !0);
107
+ }
108
+ }
109
+ return i.isArray(t) ? t.forEach(o) : o(t), n;
110
+ }
111
+ clear(t) {
112
+ const e = Object.keys(this);
113
+ let s = e.length, n = !1;
114
+ for (; s--; ) {
115
+ const o = e[s];
116
+ (!t || g(this, this[o], o, t, !0)) && (delete this[o], n = !0);
117
+ }
118
+ return n;
119
+ }
120
+ normalize(t) {
121
+ const e = this, s = {};
122
+ return i.forEach(this, (n, o) => {
123
+ const f = i.findKey(s, o);
124
+ if (f) {
125
+ e[f] = m(n), delete e[o];
126
+ return;
127
+ }
128
+ const c = t ? E(o) : String(o).trim();
129
+ c !== o && delete e[o], e[c] = m(n), s[c] = !0;
130
+ }), this;
131
+ }
132
+ concat(...t) {
133
+ return this.constructor.concat(this, ...t);
134
+ }
135
+ toJSON(t) {
136
+ const e = /* @__PURE__ */ Object.create(null);
137
+ return i.forEach(this, (s, n) => {
138
+ s != null && s !== !1 && (e[n] = t && i.isArray(s) ? s.join(", ") : s);
139
+ }), e;
140
+ }
141
+ [Symbol.iterator]() {
142
+ return Object.entries(this.toJSON())[Symbol.iterator]();
143
+ }
144
+ toString() {
145
+ return Object.entries(this.toJSON()).map(([t, e]) => t + ": " + e).join(`
146
+ `);
147
+ }
148
+ getSetCookie() {
149
+ return this.get("set-cookie") || [];
150
+ }
151
+ get [Symbol.toStringTag]() {
152
+ return "AxiosHeaders";
153
+ }
154
+ static from(t) {
155
+ return t instanceof this ? t : new this(t);
156
+ }
157
+ static concat(t, ...e) {
158
+ const s = new this(t);
159
+ return e.forEach((n) => s.set(n)), s;
160
+ }
161
+ static accessor(t) {
162
+ const s = (this[S] = this[S] = {
163
+ accessors: {}
164
+ }).accessors, n = this.prototype;
165
+ function o(f) {
166
+ const c = y(f);
167
+ s[c] || (H(n, f), s[c] = !0);
168
+ }
169
+ return i.isArray(t) ? t.forEach(o) : o(t), this;
170
+ }
171
+ }
172
+ b.accessor([
173
+ "Content-Type",
174
+ "Content-Length",
175
+ "Accept",
176
+ "Accept-Encoding",
177
+ "User-Agent",
178
+ "Authorization"
179
+ ]);
180
+ i.reduceDescriptors(b.prototype, ({ value: r }, t) => {
181
+ let e = t[0].toUpperCase() + t.slice(1);
182
+ return {
183
+ get: () => r,
184
+ set(s) {
185
+ this[e] = s;
186
+ }
187
+ };
188
+ });
189
+ i.freezeMethods(b);
190
+ export {
191
+ b as default
192
+ };
193
+ //# sourceMappingURL=AxiosHeaders.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AxiosHeaders.js","sources":["../../../../../node_modules/axios/lib/core/AxiosHeaders.js"],"sourcesContent":["'use strict';\n\nimport utils from '../utils.js';\nimport parseHeaders from '../helpers/parseHeaders.js';\nimport { sanitizeHeaderValue } from '../helpers/sanitizeHeaderValue.js';\n\nconst $internals = Symbol('internals');\n\nfunction normalizeHeader(header) {\n return header && String(header).trim().toLowerCase();\n}\n\nfunction normalizeValue(value) {\n if (value === false || value == null) {\n return value;\n }\n\n return utils.isArray(value) ? value.map(normalizeValue) : sanitizeHeaderValue(String(value));\n}\n\nfunction parseTokens(str) {\n const tokens = Object.create(null);\n const tokensRE = /([^\\s,;=]+)\\s*(?:=\\s*([^,;]+))?/g;\n let match;\n\n while ((match = tokensRE.exec(str))) {\n tokens[match[1]] = match[2];\n }\n\n return tokens;\n}\n\nconst isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());\n\nfunction matchHeaderValue(context, value, header, filter, isHeaderNameFilter) {\n if (utils.isFunction(filter)) {\n return filter.call(this, value, header);\n }\n\n if (isHeaderNameFilter) {\n value = header;\n }\n\n if (!utils.isString(value)) return;\n\n if (utils.isString(filter)) {\n return value.indexOf(filter) !== -1;\n }\n\n if (utils.isRegExp(filter)) {\n return filter.test(value);\n }\n}\n\nfunction formatHeader(header) {\n return header\n .trim()\n .toLowerCase()\n .replace(/([a-z\\d])(\\w*)/g, (w, char, str) => {\n return char.toUpperCase() + str;\n });\n}\n\nfunction buildAccessors(obj, header) {\n const accessorName = utils.toCamelCase(' ' + header);\n\n ['get', 'set', 'has'].forEach((methodName) => {\n Object.defineProperty(obj, methodName + accessorName, {\n // Null-proto descriptor so a polluted Object.prototype.get cannot turn\n // this data descriptor into an accessor descriptor on the way in.\n __proto__: null,\n value: function (arg1, arg2, arg3) {\n return this[methodName].call(this, header, arg1, arg2, arg3);\n },\n configurable: true,\n });\n });\n}\n\nclass AxiosHeaders {\n constructor(headers) {\n headers && this.set(headers);\n }\n\n set(header, valueOrRewrite, rewrite) {\n const self = this;\n\n function setHeader(_value, _header, _rewrite) {\n const lHeader = normalizeHeader(_header);\n\n if (!lHeader) {\n return;\n }\n\n const key = utils.findKey(self, lHeader);\n\n if (\n !key ||\n self[key] === undefined ||\n _rewrite === true ||\n (_rewrite === undefined && self[key] !== false)\n ) {\n self[key || _header] = normalizeValue(_value);\n }\n }\n\n const setHeaders = (headers, _rewrite) =>\n utils.forEach(headers, (_value, _header) => setHeader(_value, _header, _rewrite));\n\n if (utils.isPlainObject(header) || header instanceof this.constructor) {\n setHeaders(header, valueOrRewrite);\n } else if (utils.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {\n setHeaders(parseHeaders(header), valueOrRewrite);\n } else if (utils.isObject(header) && utils.isSafeIterable(header)) {\n let obj = Object.create(null),\n dest,\n key;\n for (const entry of header) {\n if (!utils.isArray(entry)) {\n throw new TypeError('Object iterator must return a key-value pair');\n }\n\n key = entry[0];\n\n if (utils.hasOwnProp(obj, key)) {\n dest = obj[key];\n obj[key] = utils.isArray(dest) ? [...dest, entry[1]] : [dest, entry[1]];\n } else {\n obj[key] = entry[1];\n }\n }\n\n setHeaders(obj, valueOrRewrite);\n } else {\n header != null && setHeader(valueOrRewrite, header, rewrite);\n }\n\n return this;\n }\n\n get(header, parser) {\n header = normalizeHeader(header);\n\n if (header) {\n const key = utils.findKey(this, header);\n\n if (key) {\n const value = this[key];\n\n if (!parser) {\n return value;\n }\n\n if (parser === true) {\n return parseTokens(value);\n }\n\n if (utils.isFunction(parser)) {\n return parser.call(this, value, key);\n }\n\n if (utils.isRegExp(parser)) {\n return parser.exec(value);\n }\n\n throw new TypeError('parser must be boolean|regexp|function');\n }\n }\n }\n\n has(header, matcher) {\n header = normalizeHeader(header);\n\n if (header) {\n const key = utils.findKey(this, header);\n\n return !!(\n key &&\n this[key] !== undefined &&\n (!matcher || matchHeaderValue(this, this[key], key, matcher))\n );\n }\n\n return false;\n }\n\n delete(header, matcher) {\n const self = this;\n let deleted = false;\n\n function deleteHeader(_header) {\n _header = normalizeHeader(_header);\n\n if (_header) {\n const key = utils.findKey(self, _header);\n\n if (key && (!matcher || matchHeaderValue(self, self[key], key, matcher))) {\n delete self[key];\n\n deleted = true;\n }\n }\n }\n\n if (utils.isArray(header)) {\n header.forEach(deleteHeader);\n } else {\n deleteHeader(header);\n }\n\n return deleted;\n }\n\n clear(matcher) {\n const keys = Object.keys(this);\n let i = keys.length;\n let deleted = false;\n\n while (i--) {\n const key = keys[i];\n if (!matcher || matchHeaderValue(this, this[key], key, matcher, true)) {\n delete this[key];\n deleted = true;\n }\n }\n\n return deleted;\n }\n\n normalize(format) {\n const self = this;\n const headers = {};\n\n utils.forEach(this, (value, header) => {\n const key = utils.findKey(headers, header);\n\n if (key) {\n self[key] = normalizeValue(value);\n delete self[header];\n return;\n }\n\n const normalized = format ? formatHeader(header) : String(header).trim();\n\n if (normalized !== header) {\n delete self[header];\n }\n\n self[normalized] = normalizeValue(value);\n\n headers[normalized] = true;\n });\n\n return this;\n }\n\n concat(...targets) {\n return this.constructor.concat(this, ...targets);\n }\n\n toJSON(asStrings) {\n const obj = Object.create(null);\n\n utils.forEach(this, (value, header) => {\n value != null &&\n value !== false &&\n (obj[header] = asStrings && utils.isArray(value) ? value.join(', ') : value);\n });\n\n return obj;\n }\n\n [Symbol.iterator]() {\n return Object.entries(this.toJSON())[Symbol.iterator]();\n }\n\n toString() {\n return Object.entries(this.toJSON())\n .map(([header, value]) => header + ': ' + value)\n .join('\\n');\n }\n\n getSetCookie() {\n return this.get('set-cookie') || [];\n }\n\n get [Symbol.toStringTag]() {\n return 'AxiosHeaders';\n }\n\n static from(thing) {\n return thing instanceof this ? thing : new this(thing);\n }\n\n static concat(first, ...targets) {\n const computed = new this(first);\n\n targets.forEach((target) => computed.set(target));\n\n return computed;\n }\n\n static accessor(header) {\n const internals =\n (this[$internals] =\n this[$internals] =\n {\n accessors: {},\n });\n\n const accessors = internals.accessors;\n const prototype = this.prototype;\n\n function defineAccessor(_header) {\n const lHeader = normalizeHeader(_header);\n\n if (!accessors[lHeader]) {\n buildAccessors(prototype, _header);\n accessors[lHeader] = true;\n }\n }\n\n utils.isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header);\n\n return this;\n }\n}\n\nAxiosHeaders.accessor([\n 'Content-Type',\n 'Content-Length',\n 'Accept',\n 'Accept-Encoding',\n 'User-Agent',\n 'Authorization',\n]);\n\n// reserved names hotfix\nutils.reduceDescriptors(AxiosHeaders.prototype, ({ value }, key) => {\n let mapped = key[0].toUpperCase() + key.slice(1); // map `set` => `Set`\n return {\n get: () => value,\n set(headerValue) {\n this[mapped] = headerValue;\n },\n };\n});\n\nutils.freezeMethods(AxiosHeaders);\n\nexport default AxiosHeaders;\n"],"names":["$internals","normalizeHeader","header","normalizeValue","value","utils","sanitizeHeaderValue","parseTokens","str","tokens","tokensRE","match","isValidHeaderName","matchHeaderValue","context","filter","isHeaderNameFilter","formatHeader","w","char","buildAccessors","obj","accessorName","methodName","arg1","arg2","arg3","AxiosHeaders","headers","valueOrRewrite","rewrite","self","setHeader","_value","_header","_rewrite","lHeader","key","setHeaders","parseHeaders","dest","entry","parser","matcher","deleted","deleteHeader","keys","i","format","normalized","targets","asStrings","thing","first","computed","target","accessors","prototype","defineAccessor","mapped","headerValue"],"mappings":";;;AAMA,MAAMA,IAAa,OAAO,WAAW;AAErC,SAASC,EAAgBC,GAAQ;AAC/B,SAAOA,KAAU,OAAOA,CAAM,EAAE,KAAI,EAAG,YAAW;AACpD;AAEA,SAASC,EAAeC,GAAO;AAC7B,SAAIA,MAAU,MAASA,KAAS,OACvBA,IAGFC,EAAM,QAAQD,CAAK,IAAIA,EAAM,IAAID,CAAc,IAAIG,EAAoB,OAAOF,CAAK,CAAC;AAC7F;AAEA,SAASG,EAAYC,GAAK;AACxB,QAAMC,IAAS,uBAAO,OAAO,IAAI,GAC3BC,IAAW;AACjB,MAAIC;AAEJ,SAAQA,IAAQD,EAAS,KAAKF,CAAG;AAC/B,IAAAC,EAAOE,EAAM,CAAC,CAAC,IAAIA,EAAM,CAAC;AAG5B,SAAOF;AACT;AAEA,MAAMG,IAAoB,CAACJ,MAAQ,iCAAiC,KAAKA,EAAI,MAAM;AAEnF,SAASK,EAAiBC,GAASV,GAAOF,GAAQa,GAAQC,GAAoB;AAC5E,MAAIX,EAAM,WAAWU,CAAM;AACzB,WAAOA,EAAO,KAAK,MAAMX,GAAOF,CAAM;AAOxC,MAJ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