@cirkay-eng/cirkay-components 0.7.2 → 0.7.5

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 (251) hide show
  1. package/dist/base/magic/MagicAPI.d.ts.map +1 -1
  2. package/dist/base/magic/MagicAPI.js +5 -3
  3. package/dist/base/magic/MagicAPI.js.map +1 -1
  4. package/dist/base/n3xus/N3xusAPI.d.ts +8 -5
  5. package/dist/base/n3xus/N3xusAPI.d.ts.map +1 -1
  6. package/dist/base/n3xus/N3xusAPI.js +112 -49
  7. package/dist/base/n3xus/N3xusAPI.js.map +1 -1
  8. package/dist/base/n3xus/types.d.ts +68 -25
  9. package/dist/base/n3xus/types.d.ts.map +1 -1
  10. package/dist/base/n3xus/types.js +1 -0
  11. package/dist/base/n3xus/types.js.map +1 -1
  12. package/dist/components/connected/connected.d.ts +33 -0
  13. package/dist/components/connected/connected.d.ts.map +1 -0
  14. package/dist/components/connected/connected.js +592 -0
  15. package/dist/components/connected/connected.js.map +1 -0
  16. package/dist/components/connected/index.d.ts +8 -0
  17. package/dist/components/connected/index.d.ts.map +1 -0
  18. package/dist/components/connected/index.js +6 -0
  19. package/dist/components/connected/index.js.map +1 -0
  20. package/dist/components/error-screen/error-screen.d.ts +4 -3
  21. package/dist/components/error-screen/error-screen.d.ts.map +1 -1
  22. package/dist/components/error-screen/error-screen.js +6 -11
  23. package/dist/components/error-screen/error-screen.js.map +1 -1
  24. package/dist/components/error-screen/index.d.ts +6 -1
  25. package/dist/components/error-screen/index.d.ts.map +1 -1
  26. package/dist/components/error-screen/index.js +6 -0
  27. package/dist/components/error-screen/index.js.map +1 -0
  28. package/dist/components/fan-pass-claim/fan-pass-claim.d.ts +35 -14
  29. package/dist/components/fan-pass-claim/fan-pass-claim.d.ts.map +1 -1
  30. package/dist/components/fan-pass-claim/fan-pass-claim.js +836 -316
  31. package/dist/components/fan-pass-claim/fan-pass-claim.js.map +1 -1
  32. package/dist/components/fan-pass-claim/index.d.ts +8 -2
  33. package/dist/components/fan-pass-claim/index.d.ts.map +1 -1
  34. package/dist/components/fan-pass-claim/index.js +6 -0
  35. package/dist/components/fan-pass-claim/index.js.map +1 -0
  36. package/dist/components/fan-pass-claim/types.d.ts +7 -0
  37. package/dist/components/fan-pass-claim/types.d.ts.map +1 -1
  38. package/dist/components/fan-pass-claim/types.js +9 -1
  39. package/dist/components/fan-pass-claim/types.js.map +1 -1
  40. package/dist/components/fan-pass-unlock/fan-pass-unlock.d.ts +31 -17
  41. package/dist/components/fan-pass-unlock/fan-pass-unlock.d.ts.map +1 -1
  42. package/dist/components/fan-pass-unlock/fan-pass-unlock.js +541 -198
  43. package/dist/components/fan-pass-unlock/fan-pass-unlock.js.map +1 -1
  44. package/dist/components/fan-pass-unlock/index.d.ts +8 -2
  45. package/dist/components/fan-pass-unlock/index.d.ts.map +1 -1
  46. package/dist/components/fan-pass-unlock/index.js +6 -0
  47. package/dist/components/fan-pass-unlock/index.js.map +1 -0
  48. package/dist/components/frame/frame.d.ts +1 -0
  49. package/dist/components/frame/frame.d.ts.map +1 -1
  50. package/dist/components/frame/frame.js +103 -37
  51. package/dist/components/frame/frame.js.map +1 -1
  52. package/dist/components/frame/index.d.ts +6 -1
  53. package/dist/components/frame/index.d.ts.map +1 -1
  54. package/dist/components/frame/index.js +6 -0
  55. package/dist/components/frame/index.js.map +1 -0
  56. package/dist/components/index.d.ts +6 -3
  57. package/dist/components/index.d.ts.map +1 -1
  58. package/dist/components/index.js +11 -3
  59. package/dist/components/index.js.map +1 -1
  60. package/dist/components/login/index.d.ts +6 -1
  61. package/dist/components/login/index.d.ts.map +1 -1
  62. package/dist/components/login/index.js +6 -0
  63. package/dist/components/login/index.js.map +1 -0
  64. package/dist/components/login/login.d.ts +3 -3
  65. package/dist/components/login/login.d.ts.map +1 -1
  66. package/dist/components/login/login.js +98 -47
  67. package/dist/components/login/login.js.map +1 -1
  68. package/dist/components/login/types.d.ts +4 -0
  69. package/dist/components/login/types.d.ts.map +1 -1
  70. package/dist/components/mobile-pass/index.d.ts +8 -0
  71. package/dist/components/mobile-pass/index.d.ts.map +1 -0
  72. package/dist/components/mobile-pass/index.js +6 -0
  73. package/dist/components/mobile-pass/index.js.map +1 -0
  74. package/dist/components/mobile-pass/mobile-pass.d.ts +20 -0
  75. package/dist/components/mobile-pass/mobile-pass.d.ts.map +1 -0
  76. package/dist/components/mobile-pass/mobile-pass.js +150 -0
  77. package/dist/components/mobile-pass/mobile-pass.js.map +1 -0
  78. package/dist/constants/apis.d.ts.map +1 -1
  79. package/dist/constants/apis.js +0 -1
  80. package/dist/constants/apis.js.map +1 -1
  81. package/dist/constants/components.d.ts +1 -1
  82. package/dist/constants/components.d.ts.map +1 -1
  83. package/dist/constants/components.js +1 -1
  84. package/dist/controllers/LoginController.d.ts +35 -5
  85. package/dist/controllers/LoginController.d.ts.map +1 -1
  86. package/dist/controllers/LoginController.js +46 -29
  87. package/dist/controllers/LoginController.js.map +1 -1
  88. package/dist/docs/error-screen/designTokens.d.ts +1 -3
  89. package/dist/docs/error-screen/designTokens.d.ts.map +1 -1
  90. package/dist/docs/fan-pass-claim/designTokens.d.ts.map +1 -1
  91. package/dist/docs/fan-pass-claim/fan-pass-claim.stories.d.ts +1 -1
  92. package/dist/docs/fan-pass-claim/fan-pass-claim.stories.d.ts.map +1 -1
  93. package/dist/docs/fan-pass-unlock/designTokens.d.ts.map +1 -1
  94. package/dist/docs/fan-pass-unlock/fan-pass-unlock.stories.d.ts +1 -1
  95. package/dist/docs/fan-pass-unlock/fan-pass-unlock.stories.d.ts.map +1 -1
  96. package/dist/docs/login/designTokens.d.ts +1 -3
  97. package/dist/docs/login/designTokens.d.ts.map +1 -1
  98. package/dist/docs/login/login.stories.d.ts +1 -1
  99. package/dist/docs/login/login.stories.d.ts.map +1 -1
  100. package/dist/docs/mobile-pass/designTokens.d.ts +3 -0
  101. package/dist/docs/mobile-pass/designTokens.d.ts.map +1 -0
  102. package/dist/docs/mobile-pass/mobile-pass.stories.d.ts +6 -0
  103. package/dist/docs/mobile-pass/mobile-pass.stories.d.ts.map +1 -0
  104. package/dist/events/claim.d.ts +5 -4
  105. package/dist/events/claim.d.ts.map +1 -1
  106. package/dist/events/claim.js +2 -2
  107. package/dist/events/claim.js.map +1 -1
  108. package/dist/events/login.d.ts +11 -4
  109. package/dist/events/login.d.ts.map +1 -1
  110. package/dist/events/login.js +5 -4
  111. package/dist/events/login.js.map +1 -1
  112. package/dist/events/unlock.d.ts +16 -2
  113. package/dist/events/unlock.d.ts.map +1 -1
  114. package/dist/events/unlock.js +4 -2
  115. package/dist/events/unlock.js.map +1 -1
  116. package/dist/internal/CirkayElement.d.ts.map +1 -1
  117. package/dist/internal/CirkayElement.js +0 -2
  118. package/dist/internal/CirkayElement.js.map +1 -1
  119. package/dist/node_modules/.pnpm/@magic-sdk_provider@28.20.0_localforage@1.10.0/node_modules/@magic-sdk/provider/dist/es/index.js +10 -0
  120. package/dist/node_modules/.pnpm/@magic-sdk_provider@28.20.0_localforage@1.10.0/node_modules/@magic-sdk/provider/dist/es/index.js.map +1 -0
  121. package/dist/node_modules/.pnpm/@magic-sdk_provider@29.0.6_localforage@1.10.0/node_modules/@magic-sdk/provider/dist/es/index.js +10 -0
  122. package/dist/node_modules/.pnpm/@magic-sdk_provider@29.0.6_localforage@1.10.0/node_modules/@magic-sdk/provider/dist/es/index.js.map +1 -0
  123. package/dist/node_modules/.pnpm/@magic-sdk_types@24.18.0/node_modules/@magic-sdk/types/dist/es/index.js +4 -0
  124. package/dist/node_modules/.pnpm/@magic-sdk_types@24.18.0/node_modules/@magic-sdk/types/dist/es/index.js.map +1 -0
  125. package/dist/node_modules/.pnpm/@magic-sdk_types@24.18.2/node_modules/@magic-sdk/types/dist/es/index.js +4 -0
  126. package/dist/node_modules/.pnpm/@magic-sdk_types@24.18.2/node_modules/@magic-sdk/types/dist/es/index.js.map +1 -0
  127. package/dist/node_modules/.pnpm/{@rollup_plugin-typescript@12.1.2_rollup@4.29.1_tslib@2.8.1_typescript@5.7.2 → @rollup_plugin-typescript@12.1.2_rollup@4.34.6_tslib@2.8.1_typescript@5.7.3}/node_modules/tslib/tslib.es6.js.map +1 -1
  128. package/dist/node_modules/.pnpm/@rollup_plugin-typescript@12.1.2_rollup@4.34.8_tslib@2.8.1_typescript@5.7.3/node_modules/tslib/tslib.es6.js +31 -0
  129. package/dist/node_modules/.pnpm/@rollup_plugin-typescript@12.1.2_rollup@4.34.8_tslib@2.8.1_typescript@5.7.3/node_modules/tslib/tslib.es6.js.map +1 -0
  130. package/dist/node_modules/.pnpm/@rollup_plugin-typescript@12.1.2_rollup@4.40.1_tslib@2.8.1_typescript@5.8.3/node_modules/tslib/tslib.es6.js +31 -0
  131. package/dist/node_modules/.pnpm/@rollup_plugin-typescript@12.1.2_rollup@4.40.1_tslib@2.8.1_typescript@5.8.3/node_modules/tslib/tslib.es6.js.map +1 -0
  132. package/dist/node_modules/.pnpm/magic-sdk@28.21.1/node_modules/magic-sdk/dist/es/index.js +9 -0
  133. package/dist/node_modules/.pnpm/magic-sdk@28.21.1/node_modules/magic-sdk/dist/es/index.js.map +1 -0
  134. package/dist/node_modules/.pnpm/magic-sdk@29.0.6/node_modules/magic-sdk/dist/es/index.js +9 -0
  135. package/dist/node_modules/.pnpm/magic-sdk@29.0.6/node_modules/magic-sdk/dist/es/index.js.map +1 -0
  136. package/dist/node_modules/.pnpm/query-selector-shadow-dom@1.0.1/node_modules/query-selector-shadow-dom/src/normalize.js +169 -0
  137. package/dist/node_modules/.pnpm/query-selector-shadow-dom@1.0.1/node_modules/query-selector-shadow-dom/src/normalize.js.map +1 -0
  138. package/dist/node_modules/.pnpm/query-selector-shadow-dom@1.0.1/node_modules/query-selector-shadow-dom/src/querySelectorDeep.js +161 -0
  139. package/dist/node_modules/.pnpm/query-selector-shadow-dom@1.0.1/node_modules/query-selector-shadow-dom/src/querySelectorDeep.js.map +1 -0
  140. package/dist/utils/helpers.d.ts +26 -2
  141. package/dist/utils/helpers.d.ts.map +1 -1
  142. package/dist/utils/helpers.js +65 -7
  143. package/dist/utils/helpers.js.map +1 -1
  144. package/package.json +24 -17
  145. package/dist/_virtual/_commonjsHelpers.js +0 -6
  146. package/dist/_virtual/_commonjsHelpers.js.map +0 -1
  147. package/dist/_virtual/index.js +0 -8
  148. package/dist/_virtual/index.js.map +0 -1
  149. package/dist/node_modules/.pnpm/axios-rate-limit@1.4.0_axios@1.7.9/node_modules/axios-rate-limit/src/index.js +0 -182
  150. package/dist/node_modules/.pnpm/axios-rate-limit@1.4.0_axios@1.7.9/node_modules/axios-rate-limit/src/index.js.map +0 -1
  151. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/adapters/adapters.js +0 -82
  152. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/adapters/adapters.js.map +0 -1
  153. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/adapters/fetch.js +0 -230
  154. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/adapters/fetch.js.map +0 -1
  155. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/adapters/xhr.js +0 -200
  156. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/adapters/xhr.js.map +0 -1
  157. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/axios.js +0 -87
  158. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/axios.js.map +0 -1
  159. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/cancel/CancelToken.js +0 -134
  160. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/cancel/CancelToken.js.map +0 -1
  161. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/cancel/CanceledError.js +0 -24
  162. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/cancel/CanceledError.js.map +0 -1
  163. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/cancel/isCancel.js +0 -6
  164. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/cancel/isCancel.js.map +0 -1
  165. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/core/Axios.js +0 -232
  166. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/core/Axios.js.map +0 -1
  167. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/core/AxiosError.js +0 -102
  168. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/core/AxiosError.js.map +0 -1
  169. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/core/AxiosHeaders.js +0 -301
  170. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/core/AxiosHeaders.js.map +0 -1
  171. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/core/InterceptorManager.js +0 -70
  172. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/core/InterceptorManager.js.map +0 -1
  173. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/core/buildFullPath.js +0 -22
  174. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/core/buildFullPath.js.map +0 -1
  175. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/core/dispatchRequest.js +0 -82
  176. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/core/dispatchRequest.js.map +0 -1
  177. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/core/mergeConfig.js +0 -107
  178. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/core/mergeConfig.js.map +0 -1
  179. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/core/settle.js +0 -28
  180. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/core/settle.js.map +0 -1
  181. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/core/transformData.js +0 -29
  182. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/core/transformData.js.map +0 -1
  183. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/defaults/index.js +0 -160
  184. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/defaults/index.js.map +0 -1
  185. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/defaults/transitional.js +0 -8
  186. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/defaults/transitional.js.map +0 -1
  187. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/env/data.js +0 -4
  188. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/env/data.js.map +0 -1
  189. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +0 -57
  190. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/AxiosURLSearchParams.js.map +0 -1
  191. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/HttpStatusCode.js +0 -72
  192. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/HttpStatusCode.js.map +0 -1
  193. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/bind.js +0 -8
  194. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/bind.js.map +0 -1
  195. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/buildURL.js +0 -70
  196. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/buildURL.js.map +0 -1
  197. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/combineURLs.js +0 -16
  198. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/combineURLs.js.map +0 -1
  199. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/composeSignals.js +0 -49
  200. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/composeSignals.js.map +0 -1
  201. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/cookies.js +0 -44
  202. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/cookies.js.map +0 -1
  203. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/formDataToJSON.js +0 -94
  204. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/formDataToJSON.js.map +0 -1
  205. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/isAbsoluteURL.js +0 -16
  206. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/isAbsoluteURL.js.map +0 -1
  207. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/isAxiosError.js +0 -15
  208. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/isAxiosError.js.map +0 -1
  209. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/isURLSameOrigin.js +0 -17
  210. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/isURLSameOrigin.js.map +0 -1
  211. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/null.js +0 -5
  212. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/null.js.map +0 -1
  213. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/parseHeaders.js +0 -56
  214. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/parseHeaders.js.map +0 -1
  215. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/parseProtocol.js +0 -7
  216. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/parseProtocol.js.map +0 -1
  217. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/progressEventReducer.js +0 -47
  218. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/progressEventReducer.js.map +0 -1
  219. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/resolveConfig.js +0 -59
  220. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/resolveConfig.js.map +0 -1
  221. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/speedometer.js +0 -54
  222. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/speedometer.js.map +0 -1
  223. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/spread.js +0 -29
  224. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/spread.js.map +0 -1
  225. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/throttle.js +0 -45
  226. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/throttle.js.map +0 -1
  227. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/toFormData.js +0 -216
  228. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/toFormData.js.map +0 -1
  229. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/toURLEncodedForm.js +0 -19
  230. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/toURLEncodedForm.js.map +0 -1
  231. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/trackStream.js +0 -89
  232. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/trackStream.js.map +0 -1
  233. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/validator.js +0 -100
  234. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/validator.js.map +0 -1
  235. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/platform/browser/classes/Blob.js +0 -4
  236. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/platform/browser/classes/Blob.js.map +0 -1
  237. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/platform/browser/classes/FormData.js +0 -4
  238. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/platform/browser/classes/FormData.js.map +0 -1
  239. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js +0 -6
  240. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js.map +0 -1
  241. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/platform/browser/index.js +0 -16
  242. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/platform/browser/index.js.map +0 -1
  243. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/platform/common/utils.js +0 -46
  244. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/platform/common/utils.js.map +0 -1
  245. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/platform/index.js +0 -10
  246. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/platform/index.js.map +0 -1
  247. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/utils.js +0 -761
  248. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/utils.js.map +0 -1
  249. package/dist/utils/settings.js +0 -7
  250. package/dist/utils/settings.js.map +0 -1
  251. /package/dist/node_modules/.pnpm/{@rollup_plugin-typescript@12.1.2_rollup@4.29.1_tslib@2.8.1_typescript@5.7.2 → @rollup_plugin-typescript@12.1.2_rollup@4.34.6_tslib@2.8.1_typescript@5.7.3}/node_modules/tslib/tslib.es6.js +0 -0
@@ -1,134 +0,0 @@
1
- import CanceledError from './CanceledError.js';
2
-
3
- /**
4
- * A `CancelToken` is an object that can be used to request cancellation of an operation.
5
- *
6
- * @param {Function} executor The executor function.
7
- *
8
- * @returns {CancelToken}
9
- */
10
- class CancelToken {
11
- constructor(executor) {
12
- if (typeof executor !== 'function') {
13
- throw new TypeError('executor must be a function.');
14
- }
15
-
16
- let resolvePromise;
17
-
18
- this.promise = new Promise(function promiseExecutor(resolve) {
19
- resolvePromise = resolve;
20
- });
21
-
22
- const token = this;
23
-
24
- // eslint-disable-next-line func-names
25
- this.promise.then(cancel => {
26
- if (!token._listeners) return;
27
-
28
- let i = token._listeners.length;
29
-
30
- while (i-- > 0) {
31
- token._listeners[i](cancel);
32
- }
33
- token._listeners = null;
34
- });
35
-
36
- // eslint-disable-next-line func-names
37
- this.promise.then = onfulfilled => {
38
- let _resolve;
39
- // eslint-disable-next-line func-names
40
- const promise = new Promise(resolve => {
41
- token.subscribe(resolve);
42
- _resolve = resolve;
43
- }).then(onfulfilled);
44
-
45
- promise.cancel = function reject() {
46
- token.unsubscribe(_resolve);
47
- };
48
-
49
- return promise;
50
- };
51
-
52
- executor(function cancel(message, config, request) {
53
- if (token.reason) {
54
- // Cancellation has already been requested
55
- return;
56
- }
57
-
58
- token.reason = new CanceledError(message, config, request);
59
- resolvePromise(token.reason);
60
- });
61
- }
62
-
63
- /**
64
- * Throws a `CanceledError` if cancellation has been requested.
65
- */
66
- throwIfRequested() {
67
- if (this.reason) {
68
- throw this.reason;
69
- }
70
- }
71
-
72
- /**
73
- * Subscribe to the cancel signal
74
- */
75
-
76
- subscribe(listener) {
77
- if (this.reason) {
78
- listener(this.reason);
79
- return;
80
- }
81
-
82
- if (this._listeners) {
83
- this._listeners.push(listener);
84
- } else {
85
- this._listeners = [listener];
86
- }
87
- }
88
-
89
- /**
90
- * Unsubscribe from the cancel signal
91
- */
92
-
93
- unsubscribe(listener) {
94
- if (!this._listeners) {
95
- return;
96
- }
97
- const index = this._listeners.indexOf(listener);
98
- if (index !== -1) {
99
- this._listeners.splice(index, 1);
100
- }
101
- }
102
-
103
- toAbortSignal() {
104
- const controller = new AbortController();
105
-
106
- const abort = (err) => {
107
- controller.abort(err);
108
- };
109
-
110
- this.subscribe(abort);
111
-
112
- controller.signal.unsubscribe = () => this.unsubscribe(abort);
113
-
114
- return controller.signal;
115
- }
116
-
117
- /**
118
- * Returns an object that contains a new `CancelToken` and a function that, when called,
119
- * cancels the `CancelToken`.
120
- */
121
- static source() {
122
- let cancel;
123
- const token = new CancelToken(function executor(c) {
124
- cancel = c;
125
- });
126
- return {
127
- token,
128
- cancel
129
- };
130
- }
131
- }
132
-
133
- export { CancelToken as default };
134
- //# sourceMappingURL=CancelToken.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CancelToken.js","sources":["../../../../../../../../../../node_modules/.pnpm/axios@1.7.9/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":[],"mappings":";;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM,WAAW,CAAC;AAClB,EAAE,WAAW,CAAC,QAAQ,EAAE;AACxB,IAAI,IAAI,OAAO,QAAQ,KAAK,UAAU,EAAE;AACxC,MAAM,MAAM,IAAI,SAAS,CAAC,8BAA8B,CAAC;AACzD;;AAEA,IAAI,IAAI,cAAc;;AAEtB,IAAI,IAAI,CAAC,OAAO,GAAG,IAAI,OAAO,CAAC,SAAS,eAAe,CAAC,OAAO,EAAE;AACjE,MAAM,cAAc,GAAG,OAAO;AAC9B,KAAK,CAAC;;AAEN,IAAI,MAAM,KAAK,GAAG,IAAI;;AAEtB;AACA,IAAI,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,IAAI;AAChC,MAAM,IAAI,CAAC,KAAK,CAAC,UAAU,EAAE;;AAE7B,MAAM,IAAI,CAAC,GAAG,KAAK,CAAC,UAAU,CAAC,MAAM;;AAErC,MAAM,OAAO,CAAC,EAAE,GAAG,CAAC,EAAE;AACtB,QAAQ,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC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;AACpC,KAAK,MAAM;AACX,MAAM,IAAI,CAAC,UAAU,GAAG,CAAC,QAAQ,CAAC;AAClC;AACA;;AAEA;AACA;AACA;;AAEA,EAAE,WAAW,CAAC,QAAQ,EAAE;AACxB,IAAI,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE;AAC1B,MAAM;AACN;AACA,IAAI,MAAM,KAAK,GAAG,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,QAAQ,CAAC;AACnD,IAAI,IAAI,KAAK,KAAK,CAAC,CAAC,EAAE;AACtB,MAAM,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC;AACtC;AACA;;AAEA,EAAE,aAAa,GAAG;AAClB,IAAI,MAAM,UAAU,GAAG,IAAI,eAAe,EAAE;;AAE5C,IAAI,MAAM,KAAK,GAAG,CAAC,GAAG,KAAK;AAC3B,MAAM,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC;AAC3B,KAAK;;AAEL,IAAI,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC;;AAEzB,IAAI,UAAU,CAAC,MAAM,CAAC,WAAW,GAAG,MAAM,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC;;AAEjE,IAAI,OAAO,UAAU,CAAC,MAAM;AAC5B;;AAEA;AACA;AACA;AACA;AACA,EAAE,OAAO,MAAM,GAAG;AAClB,IAAI,IAAI,MAAM;AACd,IAAI,MAAM,KAAK,GAAG,IAAI,WAAW,CAAC,SAAS,QAAQ,CAAC,CAAC,EAAE;AACvD,MAAM,MAAM,GAAG,CAAC;AAChB,KAAK,CAAC;AACN,IAAI,OAAO;AACX,MAAM,KAAK;AACX,MAAM;AACN,KAAK;AACL;AACA;;;;","x_google_ignoreList":[0]}
@@ -1,24 +0,0 @@
1
- import AxiosError from '../core/AxiosError.js';
2
- import utils from '../utils.js';
3
-
4
- /**
5
- * A `CanceledError` is an object that is thrown when an operation is canceled.
6
- *
7
- * @param {string=} message The message.
8
- * @param {Object=} config The config.
9
- * @param {Object=} request The request.
10
- *
11
- * @returns {CanceledError} The created error.
12
- */
13
- function CanceledError(message, config, request) {
14
- // eslint-disable-next-line no-eq-null,eqeqeq
15
- AxiosError.call(this, message == null ? 'canceled' : message, AxiosError.ERR_CANCELED, config, request);
16
- this.name = 'CanceledError';
17
- }
18
-
19
- utils.inherits(CanceledError, AxiosError, {
20
- __CANCEL__: true
21
- });
22
-
23
- export { CanceledError as default };
24
- //# sourceMappingURL=CanceledError.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CanceledError.js","sources":["../../../../../../../../../../node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/cancel/CanceledError.js"],"sourcesContent":["'use strict';\n\nimport AxiosError from '../core/AxiosError.js';\nimport utils from '../utils.js';\n\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 */\nfunction CanceledError(message, config, request) {\n // eslint-disable-next-line no-eq-null,eqeqeq\n AxiosError.call(this, message == null ? 'canceled' : message, AxiosError.ERR_CANCELED, config, request);\n this.name = 'CanceledError';\n}\n\nutils.inherits(CanceledError, AxiosError, {\n __CANCEL__: true\n});\n\nexport default CanceledError;\n"],"names":[],"mappings":";;;AAKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS,aAAa,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE;AACjD;AACA,EAAE,UAAU,CAAC,IAAI,CAAC,IAAI,EAAE,OAAO,IAAI,IAAI,GAAG,UAAU,GAAG,OAAO,EAAE,UAAU,CAAC,YAAY,EAAE,MAAM,EAAE,OAAO,CAAC;AACzG,EAAE,IAAI,CAAC,IAAI,GAAG,eAAe;AAC7B;;AAEA,KAAK,CAAC,QAAQ,CAAC,aAAa,EAAE,UAAU,EAAE;AAC1C,EAAE,UAAU,EAAE;AACd,CAAC,CAAC;;;;","x_google_ignoreList":[0]}
@@ -1,6 +0,0 @@
1
- function isCancel(value) {
2
- return !!(value && value.__CANCEL__);
3
- }
4
-
5
- export { isCancel as default };
6
- //# sourceMappingURL=isCancel.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"isCancel.js","sources":["../../../../../../../../../../node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/cancel/isCancel.js"],"sourcesContent":["'use strict';\n\nexport default function isCancel(value) {\n return !!(value && value.__CANCEL__);\n}\n"],"names":[],"mappings":"AAEe,SAAS,QAAQ,CAAC,KAAK,EAAE;AACxC,EAAE,OAAO,CAAC,EAAE,KAAK,IAAI,KAAK,CAAC,UAAU,CAAC;AACtC;;;;","x_google_ignoreList":[0]}
@@ -1,232 +0,0 @@
1
- import utils from '../utils.js';
2
- import buildURL from '../helpers/buildURL.js';
3
- import InterceptorManager from './InterceptorManager.js';
4
- import dispatchRequest from './dispatchRequest.js';
5
- import mergeConfig from './mergeConfig.js';
6
- import buildFullPath from './buildFullPath.js';
7
- import validator from '../helpers/validator.js';
8
- import AxiosHeaders from './AxiosHeaders.js';
9
-
10
- const validators = validator.validators;
11
-
12
- /**
13
- * Create a new instance of Axios
14
- *
15
- * @param {Object} instanceConfig The default config for the instance
16
- *
17
- * @return {Axios} A new instance of Axios
18
- */
19
- class Axios {
20
- constructor(instanceConfig) {
21
- this.defaults = instanceConfig;
22
- this.interceptors = {
23
- request: new InterceptorManager(),
24
- response: new InterceptorManager()
25
- };
26
- }
27
-
28
- /**
29
- * Dispatch a request
30
- *
31
- * @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)
32
- * @param {?Object} config
33
- *
34
- * @returns {Promise} The Promise to be fulfilled
35
- */
36
- async request(configOrUrl, config) {
37
- try {
38
- return await this._request(configOrUrl, config);
39
- } catch (err) {
40
- if (err instanceof Error) {
41
- let dummy = {};
42
-
43
- Error.captureStackTrace ? Error.captureStackTrace(dummy) : (dummy = new Error());
44
-
45
- // slice off the Error: ... line
46
- const stack = dummy.stack ? dummy.stack.replace(/^.+\n/, '') : '';
47
- try {
48
- if (!err.stack) {
49
- err.stack = stack;
50
- // match without the 2 top stack lines
51
- } else if (stack && !String(err.stack).endsWith(stack.replace(/^.+\n.+\n/, ''))) {
52
- err.stack += '\n' + stack;
53
- }
54
- } catch (e) {
55
- // ignore the case where "stack" is an un-writable property
56
- }
57
- }
58
-
59
- throw err;
60
- }
61
- }
62
-
63
- _request(configOrUrl, config) {
64
- /*eslint no-param-reassign:0*/
65
- // Allow for axios('example/url'[, config]) a la fetch API
66
- if (typeof configOrUrl === 'string') {
67
- config = config || {};
68
- config.url = configOrUrl;
69
- } else {
70
- config = configOrUrl || {};
71
- }
72
-
73
- config = mergeConfig(this.defaults, config);
74
-
75
- const {transitional, paramsSerializer, headers} = config;
76
-
77
- if (transitional !== undefined) {
78
- validator.assertOptions(transitional, {
79
- silentJSONParsing: validators.transitional(validators.boolean),
80
- forcedJSONParsing: validators.transitional(validators.boolean),
81
- clarifyTimeoutError: validators.transitional(validators.boolean)
82
- }, false);
83
- }
84
-
85
- if (paramsSerializer != null) {
86
- if (utils.isFunction(paramsSerializer)) {
87
- config.paramsSerializer = {
88
- serialize: paramsSerializer
89
- };
90
- } else {
91
- validator.assertOptions(paramsSerializer, {
92
- encode: validators.function,
93
- serialize: validators.function
94
- }, true);
95
- }
96
- }
97
-
98
- validator.assertOptions(config, {
99
- baseUrl: validators.spelling('baseURL'),
100
- withXsrfToken: validators.spelling('withXSRFToken')
101
- }, true);
102
-
103
- // Set config.method
104
- config.method = (config.method || this.defaults.method || 'get').toLowerCase();
105
-
106
- // Flatten headers
107
- let contextHeaders = headers && utils.merge(
108
- headers.common,
109
- headers[config.method]
110
- );
111
-
112
- headers && utils.forEach(
113
- ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'],
114
- (method) => {
115
- delete headers[method];
116
- }
117
- );
118
-
119
- config.headers = AxiosHeaders.concat(contextHeaders, headers);
120
-
121
- // filter out skipped interceptors
122
- const requestInterceptorChain = [];
123
- let synchronousRequestInterceptors = true;
124
- this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {
125
- if (typeof interceptor.runWhen === 'function' && interceptor.runWhen(config) === false) {
126
- return;
127
- }
128
-
129
- synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;
130
-
131
- requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);
132
- });
133
-
134
- const responseInterceptorChain = [];
135
- this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {
136
- responseInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);
137
- });
138
-
139
- let promise;
140
- let i = 0;
141
- let len;
142
-
143
- if (!synchronousRequestInterceptors) {
144
- const chain = [dispatchRequest.bind(this), undefined];
145
- chain.unshift.apply(chain, requestInterceptorChain);
146
- chain.push.apply(chain, responseInterceptorChain);
147
- len = chain.length;
148
-
149
- promise = Promise.resolve(config);
150
-
151
- while (i < len) {
152
- promise = promise.then(chain[i++], chain[i++]);
153
- }
154
-
155
- return promise;
156
- }
157
-
158
- len = requestInterceptorChain.length;
159
-
160
- let newConfig = config;
161
-
162
- i = 0;
163
-
164
- while (i < len) {
165
- const onFulfilled = requestInterceptorChain[i++];
166
- const onRejected = requestInterceptorChain[i++];
167
- try {
168
- newConfig = onFulfilled(newConfig);
169
- } catch (error) {
170
- onRejected.call(this, error);
171
- break;
172
- }
173
- }
174
-
175
- try {
176
- promise = dispatchRequest.call(this, newConfig);
177
- } catch (error) {
178
- return Promise.reject(error);
179
- }
180
-
181
- i = 0;
182
- len = responseInterceptorChain.length;
183
-
184
- while (i < len) {
185
- promise = promise.then(responseInterceptorChain[i++], responseInterceptorChain[i++]);
186
- }
187
-
188
- return promise;
189
- }
190
-
191
- getUri(config) {
192
- config = mergeConfig(this.defaults, config);
193
- const fullPath = buildFullPath(config.baseURL, config.url);
194
- return buildURL(fullPath, config.params, config.paramsSerializer);
195
- }
196
- }
197
-
198
- // Provide aliases for supported request methods
199
- utils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {
200
- /*eslint func-names:0*/
201
- Axios.prototype[method] = function(url, config) {
202
- return this.request(mergeConfig(config || {}, {
203
- method,
204
- url,
205
- data: (config || {}).data
206
- }));
207
- };
208
- });
209
-
210
- utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {
211
- /*eslint func-names:0*/
212
-
213
- function generateHTTPMethod(isForm) {
214
- return function httpMethod(url, data, config) {
215
- return this.request(mergeConfig(config || {}, {
216
- method,
217
- headers: isForm ? {
218
- 'Content-Type': 'multipart/form-data'
219
- } : {},
220
- url,
221
- data
222
- }));
223
- };
224
- }
225
-
226
- Axios.prototype[method] = generateHTTPMethod();
227
-
228
- Axios.prototype[method + 'Form'] = generateHTTPMethod(true);
229
- });
230
-
231
- export { Axios as default };
232
- //# sourceMappingURL=Axios.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Axios.js","sources":["../../../../../../../../../../node_modules/.pnpm/axios@1.7.9/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';\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 = dummy.stack ? dummy.stack.replace(/^.+\\n/, '') : '';\n try {\n if (!err.stack) {\n err.stack = stack;\n // match without the 2 top stack lines\n } else if (stack && !String(err.stack).endsWith(stack.replace(/^.+\\n.+\\n/, ''))) {\n err.stack += '\\n' + stack\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(transitional, {\n silentJSONParsing: validators.transitional(validators.boolean),\n forcedJSONParsing: validators.transitional(validators.boolean),\n clarifyTimeoutError: validators.transitional(validators.boolean)\n }, false);\n }\n\n if (paramsSerializer != null) {\n if (utils.isFunction(paramsSerializer)) {\n config.paramsSerializer = {\n serialize: paramsSerializer\n }\n } else {\n validator.assertOptions(paramsSerializer, {\n encode: validators.function,\n serialize: validators.function\n }, true);\n }\n }\n\n validator.assertOptions(config, {\n baseUrl: validators.spelling('baseURL'),\n withXsrfToken: validators.spelling('withXSRFToken')\n }, true);\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(\n headers.common,\n headers[config.method]\n );\n\n headers && utils.forEach(\n ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'],\n (method) => {\n delete headers[method];\n }\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 requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);\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.apply(chain, requestInterceptorChain);\n chain.push.apply(chain, 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 i = 0;\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);\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(mergeConfig(config || {}, {\n method,\n url,\n data: (config || {}).data\n }));\n };\n});\n\nutils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {\n /*eslint func-names:0*/\n\n function generateHTTPMethod(isForm) {\n return function httpMethod(url, data, config) {\n return this.request(mergeConfig(config || {}, {\n method,\n headers: isForm ? {\n 'Content-Type': 'multipart/form-data'\n } : {},\n url,\n data\n }));\n };\n }\n\n Axios.prototype[method] = generateHTTPMethod();\n\n Axios.prototype[method + 'Form'] = generateHTTPMethod(true);\n});\n\nexport default Axios;\n"],"names":[],"mappings":";;;;;;;;;AAWA,MAAM,UAAU,GAAG,SAAS,CAAC,UAAU;;AAEvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM,KAAK,CAAC;AACZ,EAAE,WAAW,CAAC,cAAc,EAAE;AAC9B,IAAI,IAAI,CAAC,QAAQ,GAAG,cAAc;AAClC,IAAI,IAAI,CAAC,YAAY,GAAG;AACxB,MAAM,OAAO,EAAE,IAAI,kBAAkB,EAAE;AACvC,MAAM,QAAQ,EAAE,IAAI,kBAAkB;AACtC,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE,MAAM,OAAO,CAAC,WAAW,EAAE,MAAM,EAAE;AACrC,IAAI,IAAI;AACR,MAAM,OAAO,MAAM,IAAI,CAAC,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;AACrD,KAAK,CAAC,OAAO,GAAG,EAAE;AAClB,MAAM,IAAI,GAAG,YAAY,KAAK,EAAE;AAChC,QAAQ,IAAI,KAAK,GAAG,EAAE;;AAEtB,QAAQ,KAAK,CAAC,iBAAiB,GAAG,KAAK,CAAC,iBAAiB,CAAC,KAAK,CAAC,IAAI,KAAK,GAAG,IAAI,KAAK,EAAE,CAAC;;AAExF;AACA,QAAQ,MAAM,KAAK,GAAG,KAAK,CAAC,KAAK,GAAG,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,OAAO,EAAE,EAAE,CAAC,GAAG,EAAE;AACzE,QAAQ,IAAI;AACZ,UAAU,IAAI,CAAC,GAAG,CAAC,KAAK,EAAE;AAC1B,YAAY,GAAG,CAAC,KAAK,GAAG,KAAK;AAC7B;AACA,WAAW,MAAM,IAAI,KAAK,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,QAAQ,CAAC,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KAAK,CAAC,SAAS,CAAC,MAAM,CAAC,GAAG,SAAS,GAAG,EAAE,MAAM,EAAE;AAClD,IAAI,OAAO,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,MAAM,IAAI,EAAE,EAAE;AAClD,MAAM,MAAM;AACZ,MAAM,GAAG;AACT,MAAM,IAAI,EAAE,CAAC,MAAM,IAAI,EAAE,EAAE;AAC3B,KAAK,CAAC,CAAC;AACP,GAAG;AACH,CAAC,CAAC;;AAEF,KAAK,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,OAAO,CAAC,EAAE,SAAS,qBAAqB,CAAC,MAAM,EAAE;AAC/E;;AAEA,EAAE,SAAS,kBAAkB,CAAC,MAAM,EAAE;AACtC,IAAI,OAAO,SAAS,UAAU,CAAC,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE;AAClD,MAAM,OAAO,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,MAAM,IAAI,EAAE,EAAE;AACpD,QAAQ,MAAM;AACd,QAAQ,OAAO,EAAE,MAAM,GAAG;AAC1B,UAAU,cAAc,EAAE;AAC1B,SAAS,GAAG,EAAE;AACd,QAAQ,GAAG;AACX,QAAQ;AACR,OAAO,CAAC,CAAC;AACT,KAAK;AACL;;AAEA,EAAE,KAAK,CAAC,SAAS,CAAC,MAAM,CAAC,GAAG,kBAAkB,EAAE;;AAEhD,EAAE,KAAK,CAAC,SAAS,CAAC,MAAM,GAAG,MAAM,CAAC,GAAG,kBAAkB,CAAC,IAAI,CAAC;AAC7D,CAAC,CAAC;;;;","x_google_ignoreList":[0]}
@@ -1,102 +0,0 @@
1
- import utils from '../utils.js';
2
-
3
- /**
4
- * Create an Error with the specified message, config, error code, request and response.
5
- *
6
- * @param {string} message The error message.
7
- * @param {string} [code] The error code (for example, 'ECONNABORTED').
8
- * @param {Object} [config] The config.
9
- * @param {Object} [request] The request.
10
- * @param {Object} [response] The response.
11
- *
12
- * @returns {Error} The created error.
13
- */
14
- function AxiosError(message, code, config, request, response) {
15
- Error.call(this);
16
-
17
- if (Error.captureStackTrace) {
18
- Error.captureStackTrace(this, this.constructor);
19
- } else {
20
- this.stack = (new Error()).stack;
21
- }
22
-
23
- this.message = message;
24
- this.name = 'AxiosError';
25
- code && (this.code = code);
26
- config && (this.config = config);
27
- request && (this.request = request);
28
- if (response) {
29
- this.response = response;
30
- this.status = response.status ? response.status : null;
31
- }
32
- }
33
-
34
- utils.inherits(AxiosError, Error, {
35
- toJSON: function toJSON() {
36
- return {
37
- // Standard
38
- message: this.message,
39
- name: this.name,
40
- // Microsoft
41
- description: this.description,
42
- number: this.number,
43
- // Mozilla
44
- fileName: this.fileName,
45
- lineNumber: this.lineNumber,
46
- columnNumber: this.columnNumber,
47
- stack: this.stack,
48
- // Axios
49
- config: utils.toJSONObject(this.config),
50
- code: this.code,
51
- status: this.status
52
- };
53
- }
54
- });
55
-
56
- const prototype = AxiosError.prototype;
57
- const descriptors = {};
58
-
59
- [
60
- 'ERR_BAD_OPTION_VALUE',
61
- 'ERR_BAD_OPTION',
62
- 'ECONNABORTED',
63
- 'ETIMEDOUT',
64
- 'ERR_NETWORK',
65
- 'ERR_FR_TOO_MANY_REDIRECTS',
66
- 'ERR_DEPRECATED',
67
- 'ERR_BAD_RESPONSE',
68
- 'ERR_BAD_REQUEST',
69
- 'ERR_CANCELED',
70
- 'ERR_NOT_SUPPORT',
71
- 'ERR_INVALID_URL'
72
- // eslint-disable-next-line func-names
73
- ].forEach(code => {
74
- descriptors[code] = {value: code};
75
- });
76
-
77
- Object.defineProperties(AxiosError, descriptors);
78
- Object.defineProperty(prototype, 'isAxiosError', {value: true});
79
-
80
- // eslint-disable-next-line func-names
81
- AxiosError.from = (error, code, config, request, response, customProps) => {
82
- const axiosError = Object.create(prototype);
83
-
84
- utils.toFlatObject(error, axiosError, function filter(obj) {
85
- return obj !== Error.prototype;
86
- }, prop => {
87
- return prop !== 'isAxiosError';
88
- });
89
-
90
- AxiosError.call(axiosError, error.message, code, config, request, response);
91
-
92
- axiosError.cause = error;
93
-
94
- axiosError.name = error.name;
95
-
96
- customProps && Object.assign(axiosError, customProps);
97
-
98
- return axiosError;
99
- };
100
-
101
- export { AxiosError as default };
102
- //# sourceMappingURL=AxiosError.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AxiosError.js","sources":["../../../../../../../../../../node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/core/AxiosError.js"],"sourcesContent":["'use strict';\n\nimport utils from '../utils.js';\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 */\nfunction AxiosError(message, code, config, request, response) {\n Error.call(this);\n\n if (Error.captureStackTrace) {\n Error.captureStackTrace(this, this.constructor);\n } else {\n this.stack = (new Error()).stack;\n }\n\n this.message = message;\n this.name = 'AxiosError';\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 ? response.status : null;\n }\n}\n\nutils.inherits(AxiosError, Error, {\n toJSON: function toJSON() {\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: utils.toJSONObject(this.config),\n code: this.code,\n status: this.status\n };\n }\n});\n\nconst prototype = AxiosError.prototype;\nconst descriptors = {};\n\n[\n 'ERR_BAD_OPTION_VALUE',\n 'ERR_BAD_OPTION',\n 'ECONNABORTED',\n 'ETIMEDOUT',\n 'ERR_NETWORK',\n 'ERR_FR_TOO_MANY_REDIRECTS',\n 'ERR_DEPRECATED',\n 'ERR_BAD_RESPONSE',\n 'ERR_BAD_REQUEST',\n 'ERR_CANCELED',\n 'ERR_NOT_SUPPORT',\n 'ERR_INVALID_URL'\n// eslint-disable-next-line func-names\n].forEach(code => {\n descriptors[code] = {value: code};\n});\n\nObject.defineProperties(AxiosError, descriptors);\nObject.defineProperty(prototype, 'isAxiosError', {value: true});\n\n// eslint-disable-next-line func-names\nAxiosError.from = (error, code, config, request, response, customProps) => {\n const axiosError = Object.create(prototype);\n\n utils.toFlatObject(error, axiosError, function filter(obj) {\n return obj !== Error.prototype;\n }, prop => {\n return prop !== 'isAxiosError';\n });\n\n AxiosError.call(axiosError, error.message, code, config, request, response);\n\n axiosError.cause = error;\n\n axiosError.name = error.name;\n\n customProps && Object.assign(axiosError, customProps);\n\n return axiosError;\n};\n\nexport default AxiosError;\n"],"names":[],"mappings":";;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS,UAAU,CAAC,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE;AAC9D,EAAE,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC;;AAElB,EAAE,IAAI,KAAK,CAAC,iBAAiB,EAAE;AAC/B,IAAI,KAAK,CAAC,iBAAiB,CAAC,IAAI,EAAE,IAAI,CAAC,WAAW,CAAC;AACnD,GAAG,MAAM;AACT,IAAI,IAAI,CAAC,KAAK,GAAG,CAAC,IAAI,KAAK,EAAE,EAAE,KAAK;AACpC;;AAEA,EAAE,IAAI,CAAC,OAAO,GAAG,OAAO;AACxB,EAAE,IAAI,CAAC,IAAI,GAAG,YAAY;AAC1B,EAAE,IAAI,KAAK,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;AAC5B,EAAE,MAAM,KAAK,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;AAClC,EAAE,OAAO,KAAK,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;AACrC,EAAE,IAAI,QAAQ,EAAE;AAChB,IAAI,IAAI,CAAC,QAAQ,GAAG,QAAQ;AAC5B,IAAI,IAAI,CAAC,MAAM,GAAG,QAAQ,CAAC,MAAM,GAAG,QA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