create-myexam-app 1.0.21 → 1.0.22

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 (315) hide show
  1. package/index.js +25 -17
  2. package/package.json +1 -1
  3. package/projects/EPMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/README.md +84 -0
  4. package/projects/EPMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/backend-project/.env +3 -0
  5. package/projects/EPMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/backend-project/config/db.js +13 -0
  6. package/projects/EPMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/backend-project/controllers/authController.js +115 -0
  7. package/projects/EPMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/backend-project/controllers/employeeController.js +97 -0
  8. package/projects/EPMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/backend-project/controllers/payrollController.js +113 -0
  9. package/projects/EPMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/backend-project/controllers/reportController.js +35 -0
  10. package/projects/EPMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/backend-project/middleware/authMiddleware.js +9 -0
  11. package/projects/EPMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/backend-project/models/Employee.js +52 -0
  12. package/projects/EPMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/backend-project/models/Payroll.js +50 -0
  13. package/projects/EPMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/backend-project/models/User.js +19 -0
  14. package/projects/EPMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/backend-project/package-lock.json +1509 -0
  15. package/projects/EPMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/backend-project/package.json +19 -0
  16. package/projects/EPMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/backend-project/routes/authRoutes.js +18 -0
  17. package/projects/EPMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/backend-project/routes/employeeRoutes.js +19 -0
  18. package/projects/EPMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/backend-project/routes/payrollRoutes.js +19 -0
  19. package/projects/EPMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/backend-project/routes/reportRoutes.js +9 -0
  20. package/projects/EPMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/backend-project/server.js +71 -0
  21. package/projects/EPMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/frontend-project/index.html +12 -0
  22. package/projects/EPMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/frontend-project/package-lock.json +2888 -0
  23. package/projects/EPMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/frontend-project/package.json +23 -0
  24. package/projects/EPMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/frontend-project/postcss.config.js +6 -0
  25. package/projects/EPMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/frontend-project/src/App.jsx +57 -0
  26. package/projects/EPMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/frontend-project/src/api/apiClient.js +16 -0
  27. package/projects/EPMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/frontend-project/src/api/authApi.js +26 -0
  28. package/projects/EPMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/frontend-project/src/api/employeeApi.js +26 -0
  29. package/projects/EPMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/frontend-project/src/api/payrollApi.js +26 -0
  30. package/projects/EPMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/frontend-project/src/api/reportApi.js +6 -0
  31. package/projects/EPMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/frontend-project/src/components/Header.jsx +17 -0
  32. package/projects/EPMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/frontend-project/src/components/Layout.jsx +17 -0
  33. package/projects/EPMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/frontend-project/src/components/Message.jsx +15 -0
  34. package/projects/EPMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/frontend-project/src/components/ProtectedRoute.jsx +41 -0
  35. package/projects/EPMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/frontend-project/src/components/Sidebar.jsx +38 -0
  36. package/projects/EPMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/frontend-project/src/index.css +30 -0
  37. package/projects/EPMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/frontend-project/src/main.jsx +13 -0
  38. package/projects/EPMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/frontend-project/src/pages/DashboardPage.jsx +64 -0
  39. package/projects/EPMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/frontend-project/src/pages/EmployeePage.jsx +166 -0
  40. package/projects/EPMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/frontend-project/src/pages/LoginPage.jsx +73 -0
  41. package/projects/EPMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/frontend-project/src/pages/PayrollPage.jsx +198 -0
  42. package/projects/EPMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/frontend-project/src/pages/RecoverPasswordPage.jsx +69 -0
  43. package/projects/EPMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/frontend-project/src/pages/RegisterPage.jsx +69 -0
  44. package/projects/EPMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/frontend-project/src/pages/ReportsPage.jsx +113 -0
  45. package/projects/EPMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/frontend-project/tailwind.config.js +13 -0
  46. package/projects/EPMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/frontend-project/vite.config.js +9 -0
  47. package/projects/SCMS/frontend/node_modules/.bin/acorn +16 -0
  48. package/projects/SCMS/frontend/node_modules/.bin/acorn.cmd +17 -0
  49. package/projects/SCMS/frontend/node_modules/.bin/acorn.ps1 +28 -0
  50. package/projects/SCMS/frontend/node_modules/.bin/baseline-browser-mapping +16 -0
  51. package/projects/SCMS/frontend/node_modules/.bin/baseline-browser-mapping.cmd +17 -0
  52. package/projects/SCMS/frontend/node_modules/.bin/baseline-browser-mapping.ps1 +28 -0
  53. package/projects/SCMS/frontend/node_modules/.bin/browserslist +16 -0
  54. package/projects/SCMS/frontend/node_modules/.bin/browserslist.cmd +17 -0
  55. package/projects/SCMS/frontend/node_modules/.bin/browserslist.ps1 +28 -0
  56. package/projects/SCMS/frontend/node_modules/.bin/eslint +16 -0
  57. package/projects/SCMS/frontend/node_modules/.bin/eslint.cmd +17 -0
  58. package/projects/SCMS/frontend/node_modules/.bin/eslint.ps1 +28 -0
  59. package/projects/SCMS/frontend/node_modules/.bin/jiti +16 -0
  60. package/projects/SCMS/frontend/node_modules/.bin/jiti.cmd +17 -0
  61. package/projects/SCMS/frontend/node_modules/.bin/jiti.ps1 +28 -0
  62. package/projects/SCMS/frontend/node_modules/.bin/jsesc +16 -0
  63. package/projects/SCMS/frontend/node_modules/.bin/jsesc.cmd +17 -0
  64. package/projects/SCMS/frontend/node_modules/.bin/jsesc.ps1 +28 -0
  65. package/projects/SCMS/frontend/node_modules/.bin/json5 +16 -0
  66. package/projects/SCMS/frontend/node_modules/.bin/json5.cmd +17 -0
  67. package/projects/SCMS/frontend/node_modules/.bin/json5.ps1 +28 -0
  68. package/projects/SCMS/frontend/node_modules/.bin/nanoid +16 -0
  69. package/projects/SCMS/frontend/node_modules/.bin/nanoid.cmd +17 -0
  70. package/projects/SCMS/frontend/node_modules/.bin/nanoid.ps1 +28 -0
  71. package/projects/SCMS/frontend/node_modules/.bin/node-which +16 -0
  72. package/projects/SCMS/frontend/node_modules/.bin/node-which.cmd +17 -0
  73. package/projects/SCMS/frontend/node_modules/.bin/node-which.ps1 +28 -0
  74. package/projects/SCMS/frontend/node_modules/.bin/parser +16 -0
  75. package/projects/SCMS/frontend/node_modules/.bin/parser.cmd +17 -0
  76. package/projects/SCMS/frontend/node_modules/.bin/parser.ps1 +28 -0
  77. package/projects/SCMS/frontend/node_modules/.bin/rolldown +16 -0
  78. package/projects/SCMS/frontend/node_modules/.bin/rolldown.cmd +17 -0
  79. package/projects/SCMS/frontend/node_modules/.bin/rolldown.ps1 +28 -0
  80. package/projects/SCMS/frontend/node_modules/.bin/semver +16 -0
  81. package/projects/SCMS/frontend/node_modules/.bin/semver.cmd +17 -0
  82. package/projects/SCMS/frontend/node_modules/.bin/semver.ps1 +28 -0
  83. package/projects/SCMS/frontend/node_modules/.bin/update-browserslist-db +16 -0
  84. package/projects/SCMS/frontend/node_modules/.bin/update-browserslist-db.cmd +17 -0
  85. package/projects/SCMS/frontend/node_modules/.bin/update-browserslist-db.ps1 +28 -0
  86. package/projects/SCMS/frontend/node_modules/.bin/vite +16 -0
  87. package/projects/SCMS/frontend/node_modules/.bin/vite.cmd +17 -0
  88. package/projects/SCMS/frontend/node_modules/.bin/vite.ps1 +28 -0
  89. package/projects/SCMS/frontend/node_modules/.package-lock.json +2401 -0
  90. package/projects/SCMS/frontend/node_modules/.vite/deps/_metadata.json +56 -0
  91. package/projects/SCMS/frontend/node_modules/.vite/deps/axios.js +3184 -0
  92. package/projects/SCMS/frontend/node_modules/.vite/deps/axios.js.map +1 -0
  93. package/projects/SCMS/frontend/node_modules/.vite/deps/chunk-B-1-B7_t.js +33 -0
  94. package/projects/SCMS/frontend/node_modules/.vite/deps/package.json +3 -0
  95. package/projects/SCMS/frontend/node_modules/.vite/deps/react-dom.js +186 -0
  96. package/projects/SCMS/frontend/node_modules/.vite/deps/react-dom.js.map +1 -0
  97. package/projects/SCMS/frontend/node_modules/.vite/deps/react-dom_client.js +14385 -0
  98. package/projects/SCMS/frontend/node_modules/.vite/deps/react-dom_client.js.map +1 -0
  99. package/projects/SCMS/frontend/node_modules/.vite/deps/react-router-dom.js +10177 -0
  100. package/projects/SCMS/frontend/node_modules/.vite/deps/react-router-dom.js.map +1 -0
  101. package/projects/SCMS/frontend/node_modules/.vite/deps/react.js +769 -0
  102. package/projects/SCMS/frontend/node_modules/.vite/deps/react.js.map +1 -0
  103. package/projects/SCMS/frontend/node_modules/.vite/deps/react_jsx-dev-runtime.js +205 -0
  104. package/projects/SCMS/frontend/node_modules/.vite/deps/react_jsx-dev-runtime.js.map +1 -0
  105. package/projects/SCMS/frontend/node_modules/.vite/deps/react_jsx-runtime.js +209 -0
  106. package/projects/SCMS/frontend/node_modules/.vite/deps/react_jsx-runtime.js.map +1 -0
  107. package/projects/SCMS/frontend/node_modules/@babel/code-frame/LICENSE +22 -0
  108. package/projects/SCMS/frontend/node_modules/@babel/code-frame/README.md +19 -0
  109. package/projects/SCMS/frontend/node_modules/@babel/code-frame/lib/index.js +217 -0
  110. package/projects/SCMS/frontend/node_modules/@babel/code-frame/lib/index.js.map +1 -0
  111. package/projects/SCMS/frontend/node_modules/@babel/code-frame/package.json +32 -0
  112. package/projects/SCMS/frontend/node_modules/@babel/compat-data/LICENSE +22 -0
  113. package/projects/SCMS/frontend/node_modules/@babel/compat-data/README.md +19 -0
  114. package/projects/SCMS/frontend/node_modules/@babel/compat-data/corejs2-built-ins.js +2 -0
  115. package/projects/SCMS/frontend/node_modules/@babel/compat-data/corejs3-shipped-proposals.js +2 -0
  116. package/projects/SCMS/frontend/node_modules/@babel/compat-data/data/corejs2-built-ins.json +2120 -0
  117. package/projects/SCMS/frontend/node_modules/@babel/compat-data/data/corejs3-shipped-proposals.json +5 -0
  118. package/projects/SCMS/frontend/node_modules/@babel/compat-data/data/native-modules.json +18 -0
  119. package/projects/SCMS/frontend/node_modules/@babel/compat-data/data/overlapping-plugins.json +38 -0
  120. package/projects/SCMS/frontend/node_modules/@babel/compat-data/data/plugin-bugfixes.json +231 -0
  121. package/projects/SCMS/frontend/node_modules/@babel/compat-data/data/plugins.json +843 -0
  122. package/projects/SCMS/frontend/node_modules/@babel/compat-data/native-modules.js +2 -0
  123. package/projects/SCMS/frontend/node_modules/@babel/compat-data/overlapping-plugins.js +2 -0
  124. package/projects/SCMS/frontend/node_modules/@babel/compat-data/package.json +40 -0
  125. package/projects/SCMS/frontend/node_modules/@babel/compat-data/plugin-bugfixes.js +2 -0
  126. package/projects/SCMS/frontend/node_modules/@babel/compat-data/plugins.js +2 -0
  127. package/projects/SCMS/frontend/node_modules/@babel/core/LICENSE +22 -0
  128. package/projects/SCMS/frontend/node_modules/@babel/core/README.md +19 -0
  129. package/projects/SCMS/frontend/node_modules/@babel/core/lib/config/cache-contexts.js +5 -0
  130. package/projects/SCMS/frontend/node_modules/@babel/core/lib/config/cache-contexts.js.map +1 -0
  131. package/projects/SCMS/frontend/node_modules/@babel/core/lib/config/caching.js +261 -0
  132. package/projects/SCMS/frontend/node_modules/@babel/core/lib/config/caching.js.map +1 -0
  133. package/projects/SCMS/frontend/node_modules/@babel/core/lib/config/config-chain.js +469 -0
  134. package/projects/SCMS/frontend/node_modules/@babel/core/lib/config/config-chain.js.map +1 -0
  135. package/projects/SCMS/frontend/node_modules/@babel/core/lib/config/config-descriptors.js +190 -0
  136. package/projects/SCMS/frontend/node_modules/@babel/core/lib/config/config-descriptors.js.map +1 -0
  137. package/projects/SCMS/frontend/node_modules/@babel/core/lib/config/files/configuration.js +290 -0
  138. package/projects/SCMS/frontend/node_modules/@babel/core/lib/config/files/configuration.js.map +1 -0
  139. package/projects/SCMS/frontend/node_modules/@babel/core/lib/config/files/import.cjs +6 -0
  140. package/projects/SCMS/frontend/node_modules/@babel/core/lib/config/files/import.cjs.map +1 -0
  141. package/projects/SCMS/frontend/node_modules/@babel/core/lib/config/files/index-browser.js +58 -0
  142. package/projects/SCMS/frontend/node_modules/@babel/core/lib/config/files/index-browser.js.map +1 -0
  143. package/projects/SCMS/frontend/node_modules/@babel/core/lib/config/files/index.js +78 -0
  144. package/projects/SCMS/frontend/node_modules/@babel/core/lib/config/files/index.js.map +1 -0
  145. package/projects/SCMS/frontend/node_modules/@babel/core/lib/config/full.js +312 -0
  146. package/projects/SCMS/frontend/node_modules/@babel/core/lib/config/full.js.map +1 -0
  147. package/projects/SCMS/frontend/node_modules/@babel/core/lib/config/index.js +87 -0
  148. package/projects/SCMS/frontend/node_modules/@babel/core/lib/config/index.js.map +1 -0
  149. package/projects/SCMS/frontend/node_modules/@babel/core/lib/config/item.js +67 -0
  150. package/projects/SCMS/frontend/node_modules/@babel/core/lib/config/item.js.map +1 -0
  151. package/projects/SCMS/frontend/node_modules/@babel/core/lib/config/partial.js +158 -0
  152. package/projects/SCMS/frontend/node_modules/@babel/core/lib/config/partial.js.map +1 -0
  153. package/projects/SCMS/frontend/node_modules/@babel/core/lib/config/pattern-to-regex.js +38 -0
  154. package/projects/SCMS/frontend/node_modules/@babel/core/lib/config/pattern-to-regex.js.map +1 -0
  155. package/projects/SCMS/frontend/node_modules/@babel/core/lib/config/plugin.js +33 -0
  156. package/projects/SCMS/frontend/node_modules/@babel/core/lib/config/plugin.js.map +1 -0
  157. package/projects/SCMS/frontend/node_modules/@babel/core/lib/config/printer.js +113 -0
  158. package/projects/SCMS/frontend/node_modules/@babel/core/lib/config/printer.js.map +1 -0
  159. package/projects/SCMS/frontend/node_modules/@babel/core/lib/config/resolve-targets-browser.js +41 -0
  160. package/projects/SCMS/frontend/node_modules/@babel/core/lib/config/resolve-targets-browser.js.map +1 -0
  161. package/projects/SCMS/frontend/node_modules/@babel/core/lib/config/resolve-targets.js +61 -0
  162. package/projects/SCMS/frontend/node_modules/@babel/core/lib/config/resolve-targets.js.map +1 -0
  163. package/projects/SCMS/frontend/node_modules/@babel/core/lib/config/util.js +31 -0
  164. package/projects/SCMS/frontend/node_modules/@babel/core/lib/config/util.js.map +1 -0
  165. package/projects/SCMS/frontend/node_modules/@babel/core/lib/index.js +230 -0
  166. package/projects/SCMS/frontend/node_modules/@babel/core/lib/index.js.map +1 -0
  167. package/projects/SCMS/frontend/node_modules/@babel/core/lib/parse.js +45 -0
  168. package/projects/SCMS/frontend/node_modules/@babel/core/lib/parse.js.map +1 -0
  169. package/projects/SCMS/frontend/node_modules/@babel/core/lib/transform-ast.js +48 -0
  170. package/projects/SCMS/frontend/node_modules/@babel/core/lib/transform-ast.js.map +1 -0
  171. package/projects/SCMS/frontend/node_modules/@babel/core/lib/transform-file-browser.js +23 -0
  172. package/projects/SCMS/frontend/node_modules/@babel/core/lib/transform-file-browser.js.map +1 -0
  173. package/projects/SCMS/frontend/node_modules/@babel/core/lib/transform-file.js +40 -0
  174. package/projects/SCMS/frontend/node_modules/@babel/core/lib/transform-file.js.map +1 -0
  175. package/projects/SCMS/frontend/node_modules/@babel/core/lib/transform.js +47 -0
  176. package/projects/SCMS/frontend/node_modules/@babel/core/lib/transform.js.map +1 -0
  177. package/projects/SCMS/frontend/node_modules/@babel/core/package.json +84 -0
  178. package/projects/SCMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/README.md +106 -0
  179. package/projects/SCMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/REPORT/01_Introduction.md +8 -0
  180. package/projects/SCMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/REPORT/02_Problem_Statement.md +12 -0
  181. package/projects/SCMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/REPORT/03_Objectives.md +17 -0
  182. package/projects/SCMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/REPORT/04_Technologies_Used.md +23 -0
  183. package/projects/SCMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/REPORT/05_ERD.md +60 -0
  184. package/projects/SCMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/REPORT/06_Database_Design.md +71 -0
  185. package/projects/SCMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/REPORT/07_System_Architecture.md +28 -0
  186. package/projects/SCMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/REPORT/08_API_Documentation.md +43 -0
  187. package/projects/SCMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/REPORT/09_Testing.md +43 -0
  188. package/projects/SCMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/REPORT/10_Challenges.md +12 -0
  189. package/projects/SCMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/REPORT/11_Conclusion.md +8 -0
  190. package/projects/SCMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/backend-project/.env.example +4 -0
  191. package/projects/SCMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/backend-project/config/db.js +16 -0
  192. package/projects/SCMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/backend-project/controllers/deliveryController.js +145 -0
  193. package/projects/SCMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/backend-project/controllers/shipmentController.js +149 -0
  194. package/projects/SCMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/backend-project/controllers/supplierController.js +56 -0
  195. package/projects/SCMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/backend-project/controllers/userController.js +158 -0
  196. package/projects/SCMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/backend-project/middleware/authMiddleware.js +9 -0
  197. package/projects/SCMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/backend-project/models/Delivery.js +34 -0
  198. package/projects/SCMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/backend-project/models/Shipment.js +34 -0
  199. package/projects/SCMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/backend-project/models/Supplier.js +38 -0
  200. package/projects/SCMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/backend-project/models/User.js +21 -0
  201. package/projects/SCMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/backend-project/package-lock.json +1540 -0
  202. package/projects/SCMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/backend-project/package.json +22 -0
  203. package/projects/SCMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/backend-project/routes/deliveryRoutes.js +11 -0
  204. package/projects/SCMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/backend-project/routes/shipmentRoutes.js +11 -0
  205. package/projects/SCMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/backend-project/routes/supplierRoutes.js +9 -0
  206. package/projects/SCMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/backend-project/routes/userRoutes.js +11 -0
  207. package/projects/SCMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/backend-project/server.js +70 -0
  208. package/projects/SCMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/frontend-project/.env.example +2 -0
  209. package/projects/SCMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/frontend-project/index.html +13 -0
  210. package/projects/SCMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/frontend-project/package-lock.json +2944 -0
  211. package/projects/SCMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/frontend-project/package.json +23 -0
  212. package/projects/SCMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/frontend-project/postcss.config.js +6 -0
  213. package/projects/SCMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/frontend-project/src/App.jsx +72 -0
  214. package/projects/SCMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/frontend-project/src/api/apiClient.js +14 -0
  215. package/projects/SCMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/frontend-project/src/api/deliveryApi.js +17 -0
  216. package/projects/SCMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/frontend-project/src/api/shipmentApi.js +17 -0
  217. package/projects/SCMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/frontend-project/src/api/supplierApi.js +9 -0
  218. package/projects/SCMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/frontend-project/src/api/userApi.js +21 -0
  219. package/projects/SCMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/frontend-project/src/components/Layout.jsx +16 -0
  220. package/projects/SCMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/frontend-project/src/components/Message.jsx +15 -0
  221. package/projects/SCMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/frontend-project/src/components/PageHeader.jsx +12 -0
  222. package/projects/SCMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/frontend-project/src/components/Sidebar.jsx +40 -0
  223. package/projects/SCMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/frontend-project/src/main.jsx +13 -0
  224. package/projects/SCMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/frontend-project/src/pages/Dashboard.jsx +62 -0
  225. package/projects/SCMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/frontend-project/src/pages/Delivery.jsx +212 -0
  226. package/projects/SCMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/frontend-project/src/pages/Login.jsx +158 -0
  227. package/projects/SCMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/frontend-project/src/pages/Logout.jsx +24 -0
  228. package/projects/SCMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/frontend-project/src/pages/Reports.jsx +221 -0
  229. package/projects/SCMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/frontend-project/src/pages/Shipment.jsx +212 -0
  230. package/projects/SCMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/frontend-project/src/pages/Supplier.jsx +118 -0
  231. package/projects/SCMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/frontend-project/src/styles.css +27 -0
  232. package/projects/SCMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/frontend-project/tailwind.config.js +8 -0
  233. package/projects/SCMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/frontend-project/vite.config.js +6 -0
  234. package/projects/SHMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/README.md +84 -0
  235. package/projects/SHMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/backend-project/.env +3 -0
  236. package/projects/SHMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/backend-project/config/db.js +13 -0
  237. package/projects/SHMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/backend-project/controllers/productController.js +29 -0
  238. package/projects/SHMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/backend-project/controllers/reportController.js +52 -0
  239. package/projects/SHMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/backend-project/controllers/stockTransactionController.js +128 -0
  240. package/projects/SHMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/backend-project/controllers/userController.js +115 -0
  241. package/projects/SHMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/backend-project/controllers/warehouseController.js +29 -0
  242. package/projects/SHMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/backend-project/middleware/authMiddleware.js +9 -0
  243. package/projects/SHMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/backend-project/models/Product.js +44 -0
  244. package/projects/SHMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/backend-project/models/StockTransaction.js +33 -0
  245. package/projects/SHMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/backend-project/models/User.js +19 -0
  246. package/projects/SHMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/backend-project/models/Warehouse.js +25 -0
  247. package/projects/SHMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/backend-project/package-lock.json +1509 -0
  248. package/projects/SHMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/backend-project/package.json +19 -0
  249. package/projects/SHMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/backend-project/routes/productRoutes.js +10 -0
  250. package/projects/SHMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/backend-project/routes/reportRoutes.js +9 -0
  251. package/projects/SHMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/backend-project/routes/stockTransactionRoutes.js +17 -0
  252. package/projects/SHMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/backend-project/routes/userRoutes.js +18 -0
  253. package/projects/SHMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/backend-project/routes/warehouseRoutes.js +10 -0
  254. package/projects/SHMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/backend-project/server.js +73 -0
  255. package/projects/SHMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/frontend-project/index.html +12 -0
  256. package/projects/SHMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/frontend-project/package-lock.json +2888 -0
  257. package/projects/SHMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/frontend-project/package.json +23 -0
  258. package/projects/SHMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/frontend-project/postcss.config.js +6 -0
  259. package/projects/SHMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/frontend-project/src/App.jsx +66 -0
  260. package/projects/SHMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/frontend-project/src/api/apiClient.js +16 -0
  261. package/projects/SHMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/frontend-project/src/api/productApi.js +11 -0
  262. package/projects/SHMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/frontend-project/src/api/reportApi.js +6 -0
  263. package/projects/SHMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/frontend-project/src/api/transactionApi.js +21 -0
  264. package/projects/SHMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/frontend-project/src/api/userApi.js +26 -0
  265. package/projects/SHMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/frontend-project/src/api/warehouseApi.js +11 -0
  266. package/projects/SHMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/frontend-project/src/components/Header.jsx +17 -0
  267. package/projects/SHMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/frontend-project/src/components/Layout.jsx +17 -0
  268. package/projects/SHMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/frontend-project/src/components/Message.jsx +15 -0
  269. package/projects/SHMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/frontend-project/src/components/ProtectedRoute.jsx +41 -0
  270. package/projects/SHMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/frontend-project/src/components/Sidebar.jsx +39 -0
  271. package/projects/SHMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/frontend-project/src/index.css +30 -0
  272. package/projects/SHMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/frontend-project/src/main.jsx +13 -0
  273. package/projects/SHMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/frontend-project/src/pages/DashboardPage.jsx +64 -0
  274. package/projects/SHMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/frontend-project/src/pages/LoginPage.jsx +73 -0
  275. package/projects/SHMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/frontend-project/src/pages/ProductPage.jsx +107 -0
  276. package/projects/SHMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/frontend-project/src/pages/RecoverPasswordPage.jsx +69 -0
  277. package/projects/SHMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/frontend-project/src/pages/RegisterPage.jsx +69 -0
  278. package/projects/SHMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/frontend-project/src/pages/ReportsPage.jsx +152 -0
  279. package/projects/SHMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/frontend-project/src/pages/TransactionPage.jsx +195 -0
  280. package/projects/SHMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/frontend-project/src/pages/WarehousePage.jsx +93 -0
  281. package/projects/SHMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/frontend-project/tailwind.config.js +13 -0
  282. package/projects/SHMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026/frontend-project/vite.config.js +9 -0
  283. package/projects/SRMS/frontend/src/pages/Reports.jsx +170 -58
  284. package/projects/SRMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026(/README.md +49 -0
  285. package/projects/SRMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026(/backend-project/.env +3 -0
  286. package/projects/SRMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026(/backend-project/middleware/authMiddleware.js +19 -0
  287. package/projects/SRMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026(/backend-project/models/Customer.js +11 -0
  288. package/projects/SRMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026(/backend-project/models/Product.js +10 -0
  289. package/projects/SRMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026(/backend-project/models/Sale.js +19 -0
  290. package/projects/SRMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026(/backend-project/models/User.js +8 -0
  291. package/projects/SRMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026(/backend-project/package-lock.json +1609 -0
  292. package/projects/SRMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026(/backend-project/package.json +20 -0
  293. package/projects/SRMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026(/backend-project/routes/authRoutes.js +75 -0
  294. package/projects/SRMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026(/backend-project/routes/customerRoutes.js +42 -0
  295. package/projects/SRMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026(/backend-project/routes/productRoutes.js +41 -0
  296. package/projects/SRMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026(/backend-project/routes/reportRoutes.js +129 -0
  297. package/projects/SRMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026(/backend-project/routes/saleRoutes.js +107 -0
  298. package/projects/SRMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026(/backend-project/server.js +49 -0
  299. package/projects/SRMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026(/frontend-project/dist/assets/index-DZxY56Bj.js +75 -0
  300. package/projects/SRMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026(/frontend-project/dist/assets/index-J8MKb3Fq.css +1 -0
  301. package/projects/SRMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026(/frontend-project/dist/index.html +13 -0
  302. package/projects/SRMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026(/frontend-project/index.html +12 -0
  303. package/projects/SRMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026(/frontend-project/package-lock.json +2029 -0
  304. package/projects/SRMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026(/frontend-project/package.json +21 -0
  305. package/projects/SRMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026(/frontend-project/src/App.jsx +77 -0
  306. package/projects/SRMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026(/frontend-project/src/index.css +333 -0
  307. package/projects/SRMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026(/frontend-project/src/main.jsx +10 -0
  308. package/projects/SRMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026(/frontend-project/src/pages/Customers.jsx +85 -0
  309. package/projects/SRMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026(/frontend-project/src/pages/Dashboard.jsx +75 -0
  310. package/projects/SRMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026(/frontend-project/src/pages/Login.jsx +65 -0
  311. package/projects/SRMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026(/frontend-project/src/pages/Products.jsx +91 -0
  312. package/projects/SRMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026(/frontend-project/src/pages/Register.jsx +82 -0
  313. package/projects/SRMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026(/frontend-project/src/pages/Reports.jsx +138 -0
  314. package/projects/SRMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026(/frontend-project/src/pages/Sales.jsx +154 -0
  315. package/projects/SRMS(Ely)/KALIWABO_SHEMA_ELYSEE_National_Practical_Examination_2026(/frontend-project/vite.config.js +9 -0
@@ -0,0 +1,3184 @@
1
+ import { n as __exportAll } from "./chunk-B-1-B7_t.js";
2
+ //#region node_modules/axios/lib/helpers/bind.js
3
+ /**
4
+ * Create a bound version of a function with a specified `this` context
5
+ *
6
+ * @param {Function} fn - The function to bind
7
+ * @param {*} thisArg - The value to be passed as the `this` parameter
8
+ * @returns {Function} A new function that will call the original function with the specified `this` context
9
+ */
10
+ function bind(fn, thisArg) {
11
+ return function wrap() {
12
+ return fn.apply(thisArg, arguments);
13
+ };
14
+ }
15
+ //#endregion
16
+ //#region node_modules/axios/lib/utils.js
17
+ var { toString } = Object.prototype;
18
+ var { getPrototypeOf } = Object;
19
+ var { iterator, toStringTag } = Symbol;
20
+ var kindOf = ((cache) => (thing) => {
21
+ const str = toString.call(thing);
22
+ return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());
23
+ })(Object.create(null));
24
+ var kindOfTest = (type) => {
25
+ type = type.toLowerCase();
26
+ return (thing) => kindOf(thing) === type;
27
+ };
28
+ var typeOfTest = (type) => (thing) => typeof thing === type;
29
+ /**
30
+ * Determine if a value is a non-null object
31
+ *
32
+ * @param {Object} val The value to test
33
+ *
34
+ * @returns {boolean} True if value is an Array, otherwise false
35
+ */
36
+ var { isArray } = Array;
37
+ /**
38
+ * Determine if a value is undefined
39
+ *
40
+ * @param {*} val The value to test
41
+ *
42
+ * @returns {boolean} True if the value is undefined, otherwise false
43
+ */
44
+ var isUndefined = typeOfTest("undefined");
45
+ /**
46
+ * Determine if a value is a Buffer
47
+ *
48
+ * @param {*} val The value to test
49
+ *
50
+ * @returns {boolean} True if value is a Buffer, otherwise false
51
+ */
52
+ function isBuffer(val) {
53
+ return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor) && isFunction$1(val.constructor.isBuffer) && val.constructor.isBuffer(val);
54
+ }
55
+ /**
56
+ * Determine if a value is an ArrayBuffer
57
+ *
58
+ * @param {*} val The value to test
59
+ *
60
+ * @returns {boolean} True if value is an ArrayBuffer, otherwise false
61
+ */
62
+ var isArrayBuffer = kindOfTest("ArrayBuffer");
63
+ /**
64
+ * Determine if a value is a view on an ArrayBuffer
65
+ *
66
+ * @param {*} val The value to test
67
+ *
68
+ * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false
69
+ */
70
+ function isArrayBufferView(val) {
71
+ let result;
72
+ if (typeof ArrayBuffer !== "undefined" && ArrayBuffer.isView) result = ArrayBuffer.isView(val);
73
+ else result = val && val.buffer && isArrayBuffer(val.buffer);
74
+ return result;
75
+ }
76
+ /**
77
+ * Determine if a value is a String
78
+ *
79
+ * @param {*} val The value to test
80
+ *
81
+ * @returns {boolean} True if value is a String, otherwise false
82
+ */
83
+ var isString = typeOfTest("string");
84
+ /**
85
+ * Determine if a value is a Function
86
+ *
87
+ * @param {*} val The value to test
88
+ * @returns {boolean} True if value is a Function, otherwise false
89
+ */
90
+ var isFunction$1 = typeOfTest("function");
91
+ /**
92
+ * Determine if a value is a Number
93
+ *
94
+ * @param {*} val The value to test
95
+ *
96
+ * @returns {boolean} True if value is a Number, otherwise false
97
+ */
98
+ var isNumber = typeOfTest("number");
99
+ /**
100
+ * Determine if a value is an Object
101
+ *
102
+ * @param {*} thing The value to test
103
+ *
104
+ * @returns {boolean} True if value is an Object, otherwise false
105
+ */
106
+ var isObject = (thing) => thing !== null && typeof thing === "object";
107
+ /**
108
+ * Determine if a value is a Boolean
109
+ *
110
+ * @param {*} thing The value to test
111
+ * @returns {boolean} True if value is a Boolean, otherwise false
112
+ */
113
+ var isBoolean = (thing) => thing === true || thing === false;
114
+ /**
115
+ * Determine if a value is a plain Object
116
+ *
117
+ * @param {*} val The value to test
118
+ *
119
+ * @returns {boolean} True if value is a plain Object, otherwise false
120
+ */
121
+ var isPlainObject = (val) => {
122
+ if (kindOf(val) !== "object") return false;
123
+ const prototype = getPrototypeOf(val);
124
+ return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(toStringTag in val) && !(iterator in val);
125
+ };
126
+ /**
127
+ * Determine if a value is an empty object (safely handles Buffers)
128
+ *
129
+ * @param {*} val The value to test
130
+ *
131
+ * @returns {boolean} True if value is an empty object, otherwise false
132
+ */
133
+ var isEmptyObject = (val) => {
134
+ if (!isObject(val) || isBuffer(val)) return false;
135
+ try {
136
+ return Object.keys(val).length === 0 && Object.getPrototypeOf(val) === Object.prototype;
137
+ } catch (e) {
138
+ return false;
139
+ }
140
+ };
141
+ /**
142
+ * Determine if a value is a Date
143
+ *
144
+ * @param {*} val The value to test
145
+ *
146
+ * @returns {boolean} True if value is a Date, otherwise false
147
+ */
148
+ var isDate = kindOfTest("Date");
149
+ /**
150
+ * Determine if a value is a File
151
+ *
152
+ * @param {*} val The value to test
153
+ *
154
+ * @returns {boolean} True if value is a File, otherwise false
155
+ */
156
+ var isFile = kindOfTest("File");
157
+ /**
158
+ * Determine if a value is a React Native Blob
159
+ * React Native "blob": an object with a `uri` attribute. Optionally, it can
160
+ * also have a `name` and `type` attribute to specify filename and content type
161
+ *
162
+ * @see https://github.com/facebook/react-native/blob/26684cf3adf4094eb6c405d345a75bf8c7c0bf88/Libraries/Network/FormData.js#L68-L71
163
+ *
164
+ * @param {*} value The value to test
165
+ *
166
+ * @returns {boolean} True if value is a React Native Blob, otherwise false
167
+ */
168
+ var isReactNativeBlob = (value) => {
169
+ return !!(value && typeof value.uri !== "undefined");
170
+ };
171
+ /**
172
+ * Determine if environment is React Native
173
+ * ReactNative `FormData` has a non-standard `getParts()` method
174
+ *
175
+ * @param {*} formData The formData to test
176
+ *
177
+ * @returns {boolean} True if environment is React Native, otherwise false
178
+ */
179
+ var isReactNative = (formData) => formData && typeof formData.getParts !== "undefined";
180
+ /**
181
+ * Determine if a value is a Blob
182
+ *
183
+ * @param {*} val The value to test
184
+ *
185
+ * @returns {boolean} True if value is a Blob, otherwise false
186
+ */
187
+ var isBlob = kindOfTest("Blob");
188
+ /**
189
+ * Determine if a value is a FileList
190
+ *
191
+ * @param {*} val The value to test
192
+ *
193
+ * @returns {boolean} True if value is a FileList, otherwise false
194
+ */
195
+ var isFileList = kindOfTest("FileList");
196
+ /**
197
+ * Determine if a value is a Stream
198
+ *
199
+ * @param {*} val The value to test
200
+ *
201
+ * @returns {boolean} True if value is a Stream, otherwise false
202
+ */
203
+ var isStream = (val) => isObject(val) && isFunction$1(val.pipe);
204
+ /**
205
+ * Determine if a value is a FormData
206
+ *
207
+ * @param {*} thing The value to test
208
+ *
209
+ * @returns {boolean} True if value is an FormData, otherwise false
210
+ */
211
+ function getGlobal() {
212
+ if (typeof globalThis !== "undefined") return globalThis;
213
+ if (typeof self !== "undefined") return self;
214
+ if (typeof window !== "undefined") return window;
215
+ if (typeof global !== "undefined") return global;
216
+ return {};
217
+ }
218
+ var G = getGlobal();
219
+ var FormDataCtor = typeof G.FormData !== "undefined" ? G.FormData : void 0;
220
+ var isFormData = (thing) => {
221
+ if (!thing) return false;
222
+ if (FormDataCtor && thing instanceof FormDataCtor) return true;
223
+ const proto = getPrototypeOf(thing);
224
+ if (!proto || proto === Object.prototype) return false;
225
+ if (!isFunction$1(thing.append)) return false;
226
+ const kind = kindOf(thing);
227
+ return kind === "formdata" || kind === "object" && isFunction$1(thing.toString) && thing.toString() === "[object FormData]";
228
+ };
229
+ /**
230
+ * Determine if a value is a URLSearchParams object
231
+ *
232
+ * @param {*} val The value to test
233
+ *
234
+ * @returns {boolean} True if value is a URLSearchParams object, otherwise false
235
+ */
236
+ var isURLSearchParams = kindOfTest("URLSearchParams");
237
+ var [isReadableStream, isRequest, isResponse, isHeaders] = [
238
+ "ReadableStream",
239
+ "Request",
240
+ "Response",
241
+ "Headers"
242
+ ].map(kindOfTest);
243
+ /**
244
+ * Trim excess whitespace off the beginning and end of a string
245
+ *
246
+ * @param {String} str The String to trim
247
+ *
248
+ * @returns {String} The String freed of excess whitespace
249
+ */
250
+ var trim = (str) => {
251
+ return str.trim ? str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
252
+ };
253
+ /**
254
+ * Iterate over an Array or an Object invoking a function for each item.
255
+ *
256
+ * If `obj` is an Array callback will be called passing
257
+ * the value, index, and complete array for each item.
258
+ *
259
+ * If 'obj' is an Object callback will be called passing
260
+ * the value, key, and complete object for each property.
261
+ *
262
+ * @param {Object|Array<unknown>} obj The object to iterate
263
+ * @param {Function} fn The callback to invoke for each item
264
+ *
265
+ * @param {Object} [options]
266
+ * @param {Boolean} [options.allOwnKeys = false]
267
+ * @returns {any}
268
+ */
269
+ function forEach(obj, fn, { allOwnKeys = false } = {}) {
270
+ if (obj === null || typeof obj === "undefined") return;
271
+ let i;
272
+ let l;
273
+ if (typeof obj !== "object") obj = [obj];
274
+ if (isArray(obj)) for (i = 0, l = obj.length; i < l; i++) fn.call(null, obj[i], i, obj);
275
+ else {
276
+ if (isBuffer(obj)) return;
277
+ const keys = allOwnKeys ? Object.getOwnPropertyNames(obj) : Object.keys(obj);
278
+ const len = keys.length;
279
+ let key;
280
+ for (i = 0; i < len; i++) {
281
+ key = keys[i];
282
+ fn.call(null, obj[key], key, obj);
283
+ }
284
+ }
285
+ }
286
+ /**
287
+ * Finds a key in an object, case-insensitive, returning the actual key name.
288
+ * Returns null if the object is a Buffer or if no match is found.
289
+ *
290
+ * @param {Object} obj - The object to search.
291
+ * @param {string} key - The key to find (case-insensitive).
292
+ * @returns {?string} The actual key name if found, otherwise null.
293
+ */
294
+ function findKey(obj, key) {
295
+ if (isBuffer(obj)) return null;
296
+ key = key.toLowerCase();
297
+ const keys = Object.keys(obj);
298
+ let i = keys.length;
299
+ let _key;
300
+ while (i-- > 0) {
301
+ _key = keys[i];
302
+ if (key === _key.toLowerCase()) return _key;
303
+ }
304
+ return null;
305
+ }
306
+ var _global = (() => {
307
+ if (typeof globalThis !== "undefined") return globalThis;
308
+ return typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : global;
309
+ })();
310
+ var isContextDefined = (context) => !isUndefined(context) && context !== _global;
311
+ /**
312
+ * Accepts varargs expecting each argument to be an object, then
313
+ * immutably merges the properties of each object and returns result.
314
+ *
315
+ * When multiple objects contain the same key the later object in
316
+ * the arguments list will take precedence.
317
+ *
318
+ * Example:
319
+ *
320
+ * ```js
321
+ * const result = merge({foo: 123}, {foo: 456});
322
+ * console.log(result.foo); // outputs 456
323
+ * ```
324
+ *
325
+ * @param {Object} obj1 Object to merge
326
+ *
327
+ * @returns {Object} Result of all merge properties
328
+ */
329
+ function merge(...objs) {
330
+ const { caseless, skipUndefined } = isContextDefined(this) && this || {};
331
+ const result = {};
332
+ const assignValue = (val, key) => {
333
+ if (key === "__proto__" || key === "constructor" || key === "prototype") return;
334
+ const targetKey = caseless && findKey(result, key) || key;
335
+ const existing = hasOwnProperty(result, targetKey) ? result[targetKey] : void 0;
336
+ if (isPlainObject(existing) && isPlainObject(val)) result[targetKey] = merge(existing, val);
337
+ else if (isPlainObject(val)) result[targetKey] = merge({}, val);
338
+ else if (isArray(val)) result[targetKey] = val.slice();
339
+ else if (!skipUndefined || !isUndefined(val)) result[targetKey] = val;
340
+ };
341
+ for (let i = 0, l = objs.length; i < l; i++) objs[i] && forEach(objs[i], assignValue);
342
+ return result;
343
+ }
344
+ /**
345
+ * Extends object a by mutably adding to it the properties of object b.
346
+ *
347
+ * @param {Object} a The object to be extended
348
+ * @param {Object} b The object to copy properties from
349
+ * @param {Object} thisArg The object to bind function to
350
+ *
351
+ * @param {Object} [options]
352
+ * @param {Boolean} [options.allOwnKeys]
353
+ * @returns {Object} The resulting value of object a
354
+ */
355
+ var extend = (a, b, thisArg, { allOwnKeys } = {}) => {
356
+ forEach(b, (val, key) => {
357
+ if (thisArg && isFunction$1(val)) Object.defineProperty(a, key, {
358
+ __proto__: null,
359
+ value: bind(val, thisArg),
360
+ writable: true,
361
+ enumerable: true,
362
+ configurable: true
363
+ });
364
+ else Object.defineProperty(a, key, {
365
+ __proto__: null,
366
+ value: val,
367
+ writable: true,
368
+ enumerable: true,
369
+ configurable: true
370
+ });
371
+ }, { allOwnKeys });
372
+ return a;
373
+ };
374
+ /**
375
+ * Remove byte order marker. This catches EF BB BF (the UTF-8 BOM)
376
+ *
377
+ * @param {string} content with BOM
378
+ *
379
+ * @returns {string} content value without BOM
380
+ */
381
+ var stripBOM = (content) => {
382
+ if (content.charCodeAt(0) === 65279) content = content.slice(1);
383
+ return content;
384
+ };
385
+ /**
386
+ * Inherit the prototype methods from one constructor into another
387
+ * @param {function} constructor
388
+ * @param {function} superConstructor
389
+ * @param {object} [props]
390
+ * @param {object} [descriptors]
391
+ *
392
+ * @returns {void}
393
+ */
394
+ var inherits = (constructor, superConstructor, props, descriptors) => {
395
+ constructor.prototype = Object.create(superConstructor.prototype, descriptors);
396
+ Object.defineProperty(constructor.prototype, "constructor", {
397
+ __proto__: null,
398
+ value: constructor,
399
+ writable: true,
400
+ enumerable: false,
401
+ configurable: true
402
+ });
403
+ Object.defineProperty(constructor, "super", {
404
+ __proto__: null,
405
+ value: superConstructor.prototype
406
+ });
407
+ props && Object.assign(constructor.prototype, props);
408
+ };
409
+ /**
410
+ * Resolve object with deep prototype chain to a flat object
411
+ * @param {Object} sourceObj source object
412
+ * @param {Object} [destObj]
413
+ * @param {Function|Boolean} [filter]
414
+ * @param {Function} [propFilter]
415
+ *
416
+ * @returns {Object}
417
+ */
418
+ var toFlatObject = (sourceObj, destObj, filter, propFilter) => {
419
+ let props;
420
+ let i;
421
+ let prop;
422
+ const merged = {};
423
+ destObj = destObj || {};
424
+ if (sourceObj == null) return destObj;
425
+ do {
426
+ props = Object.getOwnPropertyNames(sourceObj);
427
+ i = props.length;
428
+ while (i-- > 0) {
429
+ prop = props[i];
430
+ if ((!propFilter || propFilter(prop, sourceObj, destObj)) && !merged[prop]) {
431
+ destObj[prop] = sourceObj[prop];
432
+ merged[prop] = true;
433
+ }
434
+ }
435
+ sourceObj = filter !== false && getPrototypeOf(sourceObj);
436
+ } while (sourceObj && (!filter || filter(sourceObj, destObj)) && sourceObj !== Object.prototype);
437
+ return destObj;
438
+ };
439
+ /**
440
+ * Determines whether a string ends with the characters of a specified string
441
+ *
442
+ * @param {String} str
443
+ * @param {String} searchString
444
+ * @param {Number} [position= 0]
445
+ *
446
+ * @returns {boolean}
447
+ */
448
+ var endsWith = (str, searchString, position) => {
449
+ str = String(str);
450
+ if (position === void 0 || position > str.length) position = str.length;
451
+ position -= searchString.length;
452
+ const lastIndex = str.indexOf(searchString, position);
453
+ return lastIndex !== -1 && lastIndex === position;
454
+ };
455
+ /**
456
+ * Returns new array from array like object or null if failed
457
+ *
458
+ * @param {*} [thing]
459
+ *
460
+ * @returns {?Array}
461
+ */
462
+ var toArray = (thing) => {
463
+ if (!thing) return null;
464
+ if (isArray(thing)) return thing;
465
+ let i = thing.length;
466
+ if (!isNumber(i)) return null;
467
+ const arr = new Array(i);
468
+ while (i-- > 0) arr[i] = thing[i];
469
+ return arr;
470
+ };
471
+ /**
472
+ * Checking if the Uint8Array exists and if it does, it returns a function that checks if the
473
+ * thing passed in is an instance of Uint8Array
474
+ *
475
+ * @param {TypedArray}
476
+ *
477
+ * @returns {Array}
478
+ */
479
+ var isTypedArray = ((TypedArray) => {
480
+ return (thing) => {
481
+ return TypedArray && thing instanceof TypedArray;
482
+ };
483
+ })(typeof Uint8Array !== "undefined" && getPrototypeOf(Uint8Array));
484
+ /**
485
+ * For each entry in the object, call the function with the key and value.
486
+ *
487
+ * @param {Object<any, any>} obj - The object to iterate over.
488
+ * @param {Function} fn - The function to call for each entry.
489
+ *
490
+ * @returns {void}
491
+ */
492
+ var forEachEntry = (obj, fn) => {
493
+ const _iterator = (obj && obj[iterator]).call(obj);
494
+ let result;
495
+ while ((result = _iterator.next()) && !result.done) {
496
+ const pair = result.value;
497
+ fn.call(obj, pair[0], pair[1]);
498
+ }
499
+ };
500
+ /**
501
+ * It takes a regular expression and a string, and returns an array of all the matches
502
+ *
503
+ * @param {string} regExp - The regular expression to match against.
504
+ * @param {string} str - The string to search.
505
+ *
506
+ * @returns {Array<boolean>}
507
+ */
508
+ var matchAll = (regExp, str) => {
509
+ let matches;
510
+ const arr = [];
511
+ while ((matches = regExp.exec(str)) !== null) arr.push(matches);
512
+ return arr;
513
+ };
514
+ var isHTMLForm = kindOfTest("HTMLFormElement");
515
+ var toCamelCase = (str) => {
516
+ return str.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, function replacer(m, p1, p2) {
517
+ return p1.toUpperCase() + p2;
518
+ });
519
+ };
520
+ var hasOwnProperty = (({ hasOwnProperty }) => (obj, prop) => hasOwnProperty.call(obj, prop))(Object.prototype);
521
+ /**
522
+ * Determine if a value is a RegExp object
523
+ *
524
+ * @param {*} val The value to test
525
+ *
526
+ * @returns {boolean} True if value is a RegExp object, otherwise false
527
+ */
528
+ var isRegExp = kindOfTest("RegExp");
529
+ var reduceDescriptors = (obj, reducer) => {
530
+ const descriptors = Object.getOwnPropertyDescriptors(obj);
531
+ const reducedDescriptors = {};
532
+ forEach(descriptors, (descriptor, name) => {
533
+ let ret;
534
+ if ((ret = reducer(descriptor, name, obj)) !== false) reducedDescriptors[name] = ret || descriptor;
535
+ });
536
+ Object.defineProperties(obj, reducedDescriptors);
537
+ };
538
+ /**
539
+ * Makes all methods read-only
540
+ * @param {Object} obj
541
+ */
542
+ var freezeMethods = (obj) => {
543
+ reduceDescriptors(obj, (descriptor, name) => {
544
+ if (isFunction$1(obj) && [
545
+ "arguments",
546
+ "caller",
547
+ "callee"
548
+ ].includes(name)) return false;
549
+ const value = obj[name];
550
+ if (!isFunction$1(value)) return;
551
+ descriptor.enumerable = false;
552
+ if ("writable" in descriptor) {
553
+ descriptor.writable = false;
554
+ return;
555
+ }
556
+ if (!descriptor.set) descriptor.set = () => {
557
+ throw Error("Can not rewrite read-only method '" + name + "'");
558
+ };
559
+ });
560
+ };
561
+ /**
562
+ * Converts an array or a delimited string into an object set with values as keys and true as values.
563
+ * Useful for fast membership checks.
564
+ *
565
+ * @param {Array|string} arrayOrString - The array or string to convert.
566
+ * @param {string} delimiter - The delimiter to use if input is a string.
567
+ * @returns {Object} An object with keys from the array or string, values set to true.
568
+ */
569
+ var toObjectSet = (arrayOrString, delimiter) => {
570
+ const obj = {};
571
+ const define = (arr) => {
572
+ arr.forEach((value) => {
573
+ obj[value] = true;
574
+ });
575
+ };
576
+ isArray(arrayOrString) ? define(arrayOrString) : define(String(arrayOrString).split(delimiter));
577
+ return obj;
578
+ };
579
+ var noop = () => {};
580
+ var toFiniteNumber = (value, defaultValue) => {
581
+ return value != null && Number.isFinite(value = +value) ? value : defaultValue;
582
+ };
583
+ /**
584
+ * If the thing is a FormData object, return true, otherwise return false.
585
+ *
586
+ * @param {unknown} thing - The thing to check.
587
+ *
588
+ * @returns {boolean}
589
+ */
590
+ function isSpecCompliantForm(thing) {
591
+ return !!(thing && isFunction$1(thing.append) && thing[toStringTag] === "FormData" && thing[iterator]);
592
+ }
593
+ /**
594
+ * Recursively converts an object to a JSON-compatible object, handling circular references and Buffers.
595
+ *
596
+ * @param {Object} obj - The object to convert.
597
+ * @returns {Object} The JSON-compatible object.
598
+ */
599
+ var toJSONObject = (obj) => {
600
+ const visited = /* @__PURE__ */ new WeakSet();
601
+ const visit = (source) => {
602
+ if (isObject(source)) {
603
+ if (visited.has(source)) return;
604
+ if (isBuffer(source)) return source;
605
+ if (!("toJSON" in source)) {
606
+ visited.add(source);
607
+ const target = isArray(source) ? [] : {};
608
+ forEach(source, (value, key) => {
609
+ const reducedValue = visit(value);
610
+ !isUndefined(reducedValue) && (target[key] = reducedValue);
611
+ });
612
+ visited.delete(source);
613
+ return target;
614
+ }
615
+ }
616
+ return source;
617
+ };
618
+ return visit(obj);
619
+ };
620
+ /**
621
+ * Determines if a value is an async function.
622
+ *
623
+ * @param {*} thing - The value to test.
624
+ * @returns {boolean} True if value is an async function, otherwise false.
625
+ */
626
+ var isAsyncFn = kindOfTest("AsyncFunction");
627
+ /**
628
+ * Determines if a value is thenable (has then and catch methods).
629
+ *
630
+ * @param {*} thing - The value to test.
631
+ * @returns {boolean} True if value is thenable, otherwise false.
632
+ */
633
+ var isThenable = (thing) => thing && (isObject(thing) || isFunction$1(thing)) && isFunction$1(thing.then) && isFunction$1(thing.catch);
634
+ /**
635
+ * Provides a cross-platform setImmediate implementation.
636
+ * Uses native setImmediate if available, otherwise falls back to postMessage or setTimeout.
637
+ *
638
+ * @param {boolean} setImmediateSupported - Whether setImmediate is supported.
639
+ * @param {boolean} postMessageSupported - Whether postMessage is supported.
640
+ * @returns {Function} A function to schedule a callback asynchronously.
641
+ */
642
+ var _setImmediate = ((setImmediateSupported, postMessageSupported) => {
643
+ if (setImmediateSupported) return setImmediate;
644
+ return postMessageSupported ? ((token, callbacks) => {
645
+ _global.addEventListener("message", ({ source, data }) => {
646
+ if (source === _global && data === token) callbacks.length && callbacks.shift()();
647
+ }, false);
648
+ return (cb) => {
649
+ callbacks.push(cb);
650
+ _global.postMessage(token, "*");
651
+ };
652
+ })(`axios@${Math.random()}`, []) : (cb) => setTimeout(cb);
653
+ })(typeof setImmediate === "function", isFunction$1(_global.postMessage));
654
+ /**
655
+ * Schedules a microtask or asynchronous callback as soon as possible.
656
+ * Uses queueMicrotask if available, otherwise falls back to process.nextTick or _setImmediate.
657
+ *
658
+ * @type {Function}
659
+ */
660
+ var asap = typeof queueMicrotask !== "undefined" ? queueMicrotask.bind(_global) : typeof process !== "undefined" && process.nextTick || _setImmediate;
661
+ var isIterable = (thing) => thing != null && isFunction$1(thing[iterator]);
662
+ var utils_default = {
663
+ isArray,
664
+ isArrayBuffer,
665
+ isBuffer,
666
+ isFormData,
667
+ isArrayBufferView,
668
+ isString,
669
+ isNumber,
670
+ isBoolean,
671
+ isObject,
672
+ isPlainObject,
673
+ isEmptyObject,
674
+ isReadableStream,
675
+ isRequest,
676
+ isResponse,
677
+ isHeaders,
678
+ isUndefined,
679
+ isDate,
680
+ isFile,
681
+ isReactNativeBlob,
682
+ isReactNative,
683
+ isBlob,
684
+ isRegExp,
685
+ isFunction: isFunction$1,
686
+ isStream,
687
+ isURLSearchParams,
688
+ isTypedArray,
689
+ isFileList,
690
+ forEach,
691
+ merge,
692
+ extend,
693
+ trim,
694
+ stripBOM,
695
+ inherits,
696
+ toFlatObject,
697
+ kindOf,
698
+ kindOfTest,
699
+ endsWith,
700
+ toArray,
701
+ forEachEntry,
702
+ matchAll,
703
+ isHTMLForm,
704
+ hasOwnProperty,
705
+ hasOwnProp: hasOwnProperty,
706
+ reduceDescriptors,
707
+ freezeMethods,
708
+ toObjectSet,
709
+ toCamelCase,
710
+ noop,
711
+ toFiniteNumber,
712
+ findKey,
713
+ global: _global,
714
+ isContextDefined,
715
+ isSpecCompliantForm,
716
+ toJSONObject,
717
+ isAsyncFn,
718
+ isThenable,
719
+ setImmediate: _setImmediate,
720
+ asap,
721
+ isIterable
722
+ };
723
+ //#endregion
724
+ //#region node_modules/axios/lib/helpers/parseHeaders.js
725
+ var ignoreDuplicateOf = utils_default.toObjectSet([
726
+ "age",
727
+ "authorization",
728
+ "content-length",
729
+ "content-type",
730
+ "etag",
731
+ "expires",
732
+ "from",
733
+ "host",
734
+ "if-modified-since",
735
+ "if-unmodified-since",
736
+ "last-modified",
737
+ "location",
738
+ "max-forwards",
739
+ "proxy-authorization",
740
+ "referer",
741
+ "retry-after",
742
+ "user-agent"
743
+ ]);
744
+ /**
745
+ * Parse headers into an object
746
+ *
747
+ * ```
748
+ * Date: Wed, 27 Aug 2014 08:58:49 GMT
749
+ * Content-Type: application/json
750
+ * Connection: keep-alive
751
+ * Transfer-Encoding: chunked
752
+ * ```
753
+ *
754
+ * @param {String} rawHeaders Headers needing to be parsed
755
+ *
756
+ * @returns {Object} Headers parsed into an object
757
+ */
758
+ var parseHeaders_default = (rawHeaders) => {
759
+ const parsed = {};
760
+ let key;
761
+ let val;
762
+ let i;
763
+ rawHeaders && rawHeaders.split("\n").forEach(function parser(line) {
764
+ i = line.indexOf(":");
765
+ key = line.substring(0, i).trim().toLowerCase();
766
+ val = line.substring(i + 1).trim();
767
+ if (!key || parsed[key] && ignoreDuplicateOf[key]) return;
768
+ if (key === "set-cookie") if (parsed[key]) parsed[key].push(val);
769
+ else parsed[key] = [val];
770
+ else parsed[key] = parsed[key] ? parsed[key] + ", " + val : val;
771
+ });
772
+ return parsed;
773
+ };
774
+ //#endregion
775
+ //#region node_modules/axios/lib/helpers/sanitizeHeaderValue.js
776
+ function trimSPorHTAB(str) {
777
+ let start = 0;
778
+ let end = str.length;
779
+ while (start < end) {
780
+ const code = str.charCodeAt(start);
781
+ if (code !== 9 && code !== 32) break;
782
+ start += 1;
783
+ }
784
+ while (end > start) {
785
+ const code = str.charCodeAt(end - 1);
786
+ if (code !== 9 && code !== 32) break;
787
+ end -= 1;
788
+ }
789
+ return start === 0 && end === str.length ? str : str.slice(start, end);
790
+ }
791
+ var INVALID_UNICODE_HEADER_VALUE_CHARS = /* @__PURE__ */ new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+", "g");
792
+ var INVALID_BYTE_STRING_HEADER_VALUE_CHARS = /* @__PURE__ */ new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+", "g");
793
+ function sanitizeValue(value, invalidChars) {
794
+ if (utils_default.isArray(value)) return value.map((item) => sanitizeValue(item, invalidChars));
795
+ return trimSPorHTAB(String(value).replace(invalidChars, ""));
796
+ }
797
+ var sanitizeHeaderValue = (value) => sanitizeValue(value, INVALID_UNICODE_HEADER_VALUE_CHARS);
798
+ var sanitizeByteStringHeaderValue = (value) => sanitizeValue(value, INVALID_BYTE_STRING_HEADER_VALUE_CHARS);
799
+ function toByteStringHeaderObject(headers) {
800
+ const byteStringHeaders = Object.create(null);
801
+ utils_default.forEach(headers.toJSON(), (value, header) => {
802
+ byteStringHeaders[header] = sanitizeByteStringHeaderValue(value);
803
+ });
804
+ return byteStringHeaders;
805
+ }
806
+ //#endregion
807
+ //#region node_modules/axios/lib/core/AxiosHeaders.js
808
+ var $internals = Symbol("internals");
809
+ function normalizeHeader(header) {
810
+ return header && String(header).trim().toLowerCase();
811
+ }
812
+ function normalizeValue(value) {
813
+ if (value === false || value == null) return value;
814
+ return utils_default.isArray(value) ? value.map(normalizeValue) : sanitizeHeaderValue(String(value));
815
+ }
816
+ function parseTokens(str) {
817
+ const tokens = Object.create(null);
818
+ const tokensRE = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
819
+ let match;
820
+ while (match = tokensRE.exec(str)) tokens[match[1]] = match[2];
821
+ return tokens;
822
+ }
823
+ var isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());
824
+ function matchHeaderValue(context, value, header, filter, isHeaderNameFilter) {
825
+ if (utils_default.isFunction(filter)) return filter.call(this, value, header);
826
+ if (isHeaderNameFilter) value = header;
827
+ if (!utils_default.isString(value)) return;
828
+ if (utils_default.isString(filter)) return value.indexOf(filter) !== -1;
829
+ if (utils_default.isRegExp(filter)) return filter.test(value);
830
+ }
831
+ function formatHeader(header) {
832
+ return header.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (w, char, str) => {
833
+ return char.toUpperCase() + str;
834
+ });
835
+ }
836
+ function buildAccessors(obj, header) {
837
+ const accessorName = utils_default.toCamelCase(" " + header);
838
+ [
839
+ "get",
840
+ "set",
841
+ "has"
842
+ ].forEach((methodName) => {
843
+ Object.defineProperty(obj, methodName + accessorName, {
844
+ __proto__: null,
845
+ value: function(arg1, arg2, arg3) {
846
+ return this[methodName].call(this, header, arg1, arg2, arg3);
847
+ },
848
+ configurable: true
849
+ });
850
+ });
851
+ }
852
+ var AxiosHeaders$1 = class {
853
+ constructor(headers) {
854
+ headers && this.set(headers);
855
+ }
856
+ set(header, valueOrRewrite, rewrite) {
857
+ const self = this;
858
+ function setHeader(_value, _header, _rewrite) {
859
+ const lHeader = normalizeHeader(_header);
860
+ if (!lHeader) throw new Error("header name must be a non-empty string");
861
+ const key = utils_default.findKey(self, lHeader);
862
+ if (!key || self[key] === void 0 || _rewrite === true || _rewrite === void 0 && self[key] !== false) self[key || _header] = normalizeValue(_value);
863
+ }
864
+ const setHeaders = (headers, _rewrite) => utils_default.forEach(headers, (_value, _header) => setHeader(_value, _header, _rewrite));
865
+ if (utils_default.isPlainObject(header) || header instanceof this.constructor) setHeaders(header, valueOrRewrite);
866
+ else if (utils_default.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) setHeaders(parseHeaders_default(header), valueOrRewrite);
867
+ else if (utils_default.isObject(header) && utils_default.isIterable(header)) {
868
+ let obj = {}, dest, key;
869
+ for (const entry of header) {
870
+ if (!utils_default.isArray(entry)) throw TypeError("Object iterator must return a key-value pair");
871
+ obj[key = entry[0]] = (dest = obj[key]) ? utils_default.isArray(dest) ? [...dest, entry[1]] : [dest, entry[1]] : entry[1];
872
+ }
873
+ setHeaders(obj, valueOrRewrite);
874
+ } else header != null && setHeader(valueOrRewrite, header, rewrite);
875
+ return this;
876
+ }
877
+ get(header, parser) {
878
+ header = normalizeHeader(header);
879
+ if (header) {
880
+ const key = utils_default.findKey(this, header);
881
+ if (key) {
882
+ const value = this[key];
883
+ if (!parser) return value;
884
+ if (parser === true) return parseTokens(value);
885
+ if (utils_default.isFunction(parser)) return parser.call(this, value, key);
886
+ if (utils_default.isRegExp(parser)) return parser.exec(value);
887
+ throw new TypeError("parser must be boolean|regexp|function");
888
+ }
889
+ }
890
+ }
891
+ has(header, matcher) {
892
+ header = normalizeHeader(header);
893
+ if (header) {
894
+ const key = utils_default.findKey(this, header);
895
+ return !!(key && this[key] !== void 0 && (!matcher || matchHeaderValue(this, this[key], key, matcher)));
896
+ }
897
+ return false;
898
+ }
899
+ delete(header, matcher) {
900
+ const self = this;
901
+ let deleted = false;
902
+ function deleteHeader(_header) {
903
+ _header = normalizeHeader(_header);
904
+ if (_header) {
905
+ const key = utils_default.findKey(self, _header);
906
+ if (key && (!matcher || matchHeaderValue(self, self[key], key, matcher))) {
907
+ delete self[key];
908
+ deleted = true;
909
+ }
910
+ }
911
+ }
912
+ if (utils_default.isArray(header)) header.forEach(deleteHeader);
913
+ else deleteHeader(header);
914
+ return deleted;
915
+ }
916
+ clear(matcher) {
917
+ const keys = Object.keys(this);
918
+ let i = keys.length;
919
+ let deleted = false;
920
+ while (i--) {
921
+ const key = keys[i];
922
+ if (!matcher || matchHeaderValue(this, this[key], key, matcher, true)) {
923
+ delete this[key];
924
+ deleted = true;
925
+ }
926
+ }
927
+ return deleted;
928
+ }
929
+ normalize(format) {
930
+ const self = this;
931
+ const headers = {};
932
+ utils_default.forEach(this, (value, header) => {
933
+ const key = utils_default.findKey(headers, header);
934
+ if (key) {
935
+ self[key] = normalizeValue(value);
936
+ delete self[header];
937
+ return;
938
+ }
939
+ const normalized = format ? formatHeader(header) : String(header).trim();
940
+ if (normalized !== header) delete self[header];
941
+ self[normalized] = normalizeValue(value);
942
+ headers[normalized] = true;
943
+ });
944
+ return this;
945
+ }
946
+ concat(...targets) {
947
+ return this.constructor.concat(this, ...targets);
948
+ }
949
+ toJSON(asStrings) {
950
+ const obj = Object.create(null);
951
+ utils_default.forEach(this, (value, header) => {
952
+ value != null && value !== false && (obj[header] = asStrings && utils_default.isArray(value) ? value.join(", ") : value);
953
+ });
954
+ return obj;
955
+ }
956
+ [Symbol.iterator]() {
957
+ return Object.entries(this.toJSON())[Symbol.iterator]();
958
+ }
959
+ toString() {
960
+ return Object.entries(this.toJSON()).map(([header, value]) => header + ": " + value).join("\n");
961
+ }
962
+ getSetCookie() {
963
+ return this.get("set-cookie") || [];
964
+ }
965
+ get [Symbol.toStringTag]() {
966
+ return "AxiosHeaders";
967
+ }
968
+ static from(thing) {
969
+ return thing instanceof this ? thing : new this(thing);
970
+ }
971
+ static concat(first, ...targets) {
972
+ const computed = new this(first);
973
+ targets.forEach((target) => computed.set(target));
974
+ return computed;
975
+ }
976
+ static accessor(header) {
977
+ const accessors = (this[$internals] = this[$internals] = { accessors: {} }).accessors;
978
+ const prototype = this.prototype;
979
+ function defineAccessor(_header) {
980
+ const lHeader = normalizeHeader(_header);
981
+ if (!accessors[lHeader]) {
982
+ buildAccessors(prototype, _header);
983
+ accessors[lHeader] = true;
984
+ }
985
+ }
986
+ utils_default.isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header);
987
+ return this;
988
+ }
989
+ };
990
+ AxiosHeaders$1.accessor([
991
+ "Content-Type",
992
+ "Content-Length",
993
+ "Accept",
994
+ "Accept-Encoding",
995
+ "User-Agent",
996
+ "Authorization"
997
+ ]);
998
+ utils_default.reduceDescriptors(AxiosHeaders$1.prototype, ({ value }, key) => {
999
+ let mapped = key[0].toUpperCase() + key.slice(1);
1000
+ return {
1001
+ get: () => value,
1002
+ set(headerValue) {
1003
+ this[mapped] = headerValue;
1004
+ }
1005
+ };
1006
+ });
1007
+ utils_default.freezeMethods(AxiosHeaders$1);
1008
+ //#endregion
1009
+ //#region node_modules/axios/lib/core/AxiosError.js
1010
+ var REDACTED = "[REDACTED ****]";
1011
+ function hasOwnOrPrototypeToJSON(source) {
1012
+ if (utils_default.hasOwnProp(source, "toJSON")) return true;
1013
+ let prototype = Object.getPrototypeOf(source);
1014
+ while (prototype && prototype !== Object.prototype) {
1015
+ if (utils_default.hasOwnProp(prototype, "toJSON")) return true;
1016
+ prototype = Object.getPrototypeOf(prototype);
1017
+ }
1018
+ return false;
1019
+ }
1020
+ function redactConfig(config, redactKeys) {
1021
+ const lowerKeys = new Set(redactKeys.map((k) => String(k).toLowerCase()));
1022
+ const seen = [];
1023
+ const visit = (source) => {
1024
+ if (source === null || typeof source !== "object") return source;
1025
+ if (utils_default.isBuffer(source)) return source;
1026
+ if (seen.indexOf(source) !== -1) return void 0;
1027
+ if (source instanceof AxiosHeaders$1) source = source.toJSON();
1028
+ seen.push(source);
1029
+ let result;
1030
+ if (utils_default.isArray(source)) {
1031
+ result = [];
1032
+ source.forEach((v, i) => {
1033
+ const reducedValue = visit(v);
1034
+ if (!utils_default.isUndefined(reducedValue)) result[i] = reducedValue;
1035
+ });
1036
+ } else {
1037
+ if (!utils_default.isPlainObject(source) && hasOwnOrPrototypeToJSON(source)) {
1038
+ seen.pop();
1039
+ return source;
1040
+ }
1041
+ result = Object.create(null);
1042
+ for (const [key, value] of Object.entries(source)) {
1043
+ const reducedValue = lowerKeys.has(key.toLowerCase()) ? REDACTED : visit(value);
1044
+ if (!utils_default.isUndefined(reducedValue)) result[key] = reducedValue;
1045
+ }
1046
+ }
1047
+ seen.pop();
1048
+ return result;
1049
+ };
1050
+ return visit(config);
1051
+ }
1052
+ var AxiosError$1 = class AxiosError$1 extends Error {
1053
+ static from(error, code, config, request, response, customProps) {
1054
+ const axiosError = new AxiosError$1(error.message, code || error.code, config, request, response);
1055
+ axiosError.cause = error;
1056
+ axiosError.name = error.name;
1057
+ if (error.status != null && axiosError.status == null) axiosError.status = error.status;
1058
+ customProps && Object.assign(axiosError, customProps);
1059
+ return axiosError;
1060
+ }
1061
+ /**
1062
+ * Create an Error with the specified message, config, error code, request and response.
1063
+ *
1064
+ * @param {string} message The error message.
1065
+ * @param {string} [code] The error code (for example, 'ECONNABORTED').
1066
+ * @param {Object} [config] The config.
1067
+ * @param {Object} [request] The request.
1068
+ * @param {Object} [response] The response.
1069
+ *
1070
+ * @returns {Error} The created error.
1071
+ */
1072
+ constructor(message, code, config, request, response) {
1073
+ super(message);
1074
+ Object.defineProperty(this, "message", {
1075
+ __proto__: null,
1076
+ value: message,
1077
+ enumerable: true,
1078
+ writable: true,
1079
+ configurable: true
1080
+ });
1081
+ this.name = "AxiosError";
1082
+ this.isAxiosError = true;
1083
+ code && (this.code = code);
1084
+ config && (this.config = config);
1085
+ request && (this.request = request);
1086
+ if (response) {
1087
+ this.response = response;
1088
+ this.status = response.status;
1089
+ }
1090
+ }
1091
+ toJSON() {
1092
+ const config = this.config;
1093
+ const redactKeys = config && utils_default.hasOwnProp(config, "redact") ? config.redact : void 0;
1094
+ const serializedConfig = utils_default.isArray(redactKeys) && redactKeys.length > 0 ? redactConfig(config, redactKeys) : utils_default.toJSONObject(config);
1095
+ return {
1096
+ message: this.message,
1097
+ name: this.name,
1098
+ description: this.description,
1099
+ number: this.number,
1100
+ fileName: this.fileName,
1101
+ lineNumber: this.lineNumber,
1102
+ columnNumber: this.columnNumber,
1103
+ stack: this.stack,
1104
+ config: serializedConfig,
1105
+ code: this.code,
1106
+ status: this.status
1107
+ };
1108
+ }
1109
+ };
1110
+ AxiosError$1.ERR_BAD_OPTION_VALUE = "ERR_BAD_OPTION_VALUE";
1111
+ AxiosError$1.ERR_BAD_OPTION = "ERR_BAD_OPTION";
1112
+ AxiosError$1.ECONNABORTED = "ECONNABORTED";
1113
+ AxiosError$1.ETIMEDOUT = "ETIMEDOUT";
1114
+ AxiosError$1.ECONNREFUSED = "ECONNREFUSED";
1115
+ AxiosError$1.ERR_NETWORK = "ERR_NETWORK";
1116
+ AxiosError$1.ERR_FR_TOO_MANY_REDIRECTS = "ERR_FR_TOO_MANY_REDIRECTS";
1117
+ AxiosError$1.ERR_DEPRECATED = "ERR_DEPRECATED";
1118
+ AxiosError$1.ERR_BAD_RESPONSE = "ERR_BAD_RESPONSE";
1119
+ AxiosError$1.ERR_BAD_REQUEST = "ERR_BAD_REQUEST";
1120
+ AxiosError$1.ERR_CANCELED = "ERR_CANCELED";
1121
+ AxiosError$1.ERR_NOT_SUPPORT = "ERR_NOT_SUPPORT";
1122
+ AxiosError$1.ERR_INVALID_URL = "ERR_INVALID_URL";
1123
+ AxiosError$1.ERR_FORM_DATA_DEPTH_EXCEEDED = "ERR_FORM_DATA_DEPTH_EXCEEDED";
1124
+ //#endregion
1125
+ //#region node_modules/axios/lib/helpers/toFormData.js
1126
+ /**
1127
+ * Determines if the given thing is a array or js object.
1128
+ *
1129
+ * @param {string} thing - The object or array to be visited.
1130
+ *
1131
+ * @returns {boolean}
1132
+ */
1133
+ function isVisitable(thing) {
1134
+ return utils_default.isPlainObject(thing) || utils_default.isArray(thing);
1135
+ }
1136
+ /**
1137
+ * It removes the brackets from the end of a string
1138
+ *
1139
+ * @param {string} key - The key of the parameter.
1140
+ *
1141
+ * @returns {string} the key without the brackets.
1142
+ */
1143
+ function removeBrackets(key) {
1144
+ return utils_default.endsWith(key, "[]") ? key.slice(0, -2) : key;
1145
+ }
1146
+ /**
1147
+ * It takes a path, a key, and a boolean, and returns a string
1148
+ *
1149
+ * @param {string} path - The path to the current key.
1150
+ * @param {string} key - The key of the current object being iterated over.
1151
+ * @param {string} dots - If true, the key will be rendered with dots instead of brackets.
1152
+ *
1153
+ * @returns {string} The path to the current key.
1154
+ */
1155
+ function renderKey(path, key, dots) {
1156
+ if (!path) return key;
1157
+ return path.concat(key).map(function each(token, i) {
1158
+ token = removeBrackets(token);
1159
+ return !dots && i ? "[" + token + "]" : token;
1160
+ }).join(dots ? "." : "");
1161
+ }
1162
+ /**
1163
+ * If the array is an array and none of its elements are visitable, then it's a flat array.
1164
+ *
1165
+ * @param {Array<any>} arr - The array to check
1166
+ *
1167
+ * @returns {boolean}
1168
+ */
1169
+ function isFlatArray(arr) {
1170
+ return utils_default.isArray(arr) && !arr.some(isVisitable);
1171
+ }
1172
+ var predicates = utils_default.toFlatObject(utils_default, {}, null, function filter(prop) {
1173
+ return /^is[A-Z]/.test(prop);
1174
+ });
1175
+ /**
1176
+ * Convert a data object to FormData
1177
+ *
1178
+ * @param {Object} obj
1179
+ * @param {?Object} [formData]
1180
+ * @param {?Object} [options]
1181
+ * @param {Function} [options.visitor]
1182
+ * @param {Boolean} [options.metaTokens = true]
1183
+ * @param {Boolean} [options.dots = false]
1184
+ * @param {?Boolean} [options.indexes = false]
1185
+ *
1186
+ * @returns {Object}
1187
+ **/
1188
+ /**
1189
+ * It converts an object into a FormData object
1190
+ *
1191
+ * @param {Object<any, any>} obj - The object to convert to form data.
1192
+ * @param {string} formData - The FormData object to append to.
1193
+ * @param {Object<string, any>} options
1194
+ *
1195
+ * @returns
1196
+ */
1197
+ function toFormData$1(obj, formData, options) {
1198
+ if (!utils_default.isObject(obj)) throw new TypeError("target must be an object");
1199
+ formData = formData || new FormData();
1200
+ options = utils_default.toFlatObject(options, {
1201
+ metaTokens: true,
1202
+ dots: false,
1203
+ indexes: false
1204
+ }, false, function defined(option, source) {
1205
+ return !utils_default.isUndefined(source[option]);
1206
+ });
1207
+ const metaTokens = options.metaTokens;
1208
+ const visitor = options.visitor || defaultVisitor;
1209
+ const dots = options.dots;
1210
+ const indexes = options.indexes;
1211
+ const _Blob = options.Blob || typeof Blob !== "undefined" && Blob;
1212
+ const maxDepth = options.maxDepth === void 0 ? 100 : options.maxDepth;
1213
+ const useBlob = _Blob && utils_default.isSpecCompliantForm(formData);
1214
+ if (!utils_default.isFunction(visitor)) throw new TypeError("visitor must be a function");
1215
+ function convertValue(value) {
1216
+ if (value === null) return "";
1217
+ if (utils_default.isDate(value)) return value.toISOString();
1218
+ if (utils_default.isBoolean(value)) return value.toString();
1219
+ if (!useBlob && utils_default.isBlob(value)) throw new AxiosError$1("Blob is not supported. Use a Buffer instead.");
1220
+ if (utils_default.isArrayBuffer(value) || utils_default.isTypedArray(value)) return useBlob && typeof Blob === "function" ? new Blob([value]) : Buffer.from(value);
1221
+ return value;
1222
+ }
1223
+ /**
1224
+ * Default visitor.
1225
+ *
1226
+ * @param {*} value
1227
+ * @param {String|Number} key
1228
+ * @param {Array<String|Number>} path
1229
+ * @this {FormData}
1230
+ *
1231
+ * @returns {boolean} return true to visit the each prop of the value recursively
1232
+ */
1233
+ function defaultVisitor(value, key, path) {
1234
+ let arr = value;
1235
+ if (utils_default.isReactNative(formData) && utils_default.isReactNativeBlob(value)) {
1236
+ formData.append(renderKey(path, key, dots), convertValue(value));
1237
+ return false;
1238
+ }
1239
+ if (value && !path && typeof value === "object") {
1240
+ if (utils_default.endsWith(key, "{}")) {
1241
+ key = metaTokens ? key : key.slice(0, -2);
1242
+ value = JSON.stringify(value);
1243
+ } else if (utils_default.isArray(value) && isFlatArray(value) || (utils_default.isFileList(value) || utils_default.endsWith(key, "[]")) && (arr = utils_default.toArray(value))) {
1244
+ key = removeBrackets(key);
1245
+ arr.forEach(function each(el, index) {
1246
+ !(utils_default.isUndefined(el) || el === null) && formData.append(indexes === true ? renderKey([key], index, dots) : indexes === null ? key : key + "[]", convertValue(el));
1247
+ });
1248
+ return false;
1249
+ }
1250
+ }
1251
+ if (isVisitable(value)) return true;
1252
+ formData.append(renderKey(path, key, dots), convertValue(value));
1253
+ return false;
1254
+ }
1255
+ const stack = [];
1256
+ const exposedHelpers = Object.assign(predicates, {
1257
+ defaultVisitor,
1258
+ convertValue,
1259
+ isVisitable
1260
+ });
1261
+ function build(value, path, depth = 0) {
1262
+ if (utils_default.isUndefined(value)) return;
1263
+ if (depth > maxDepth) throw new AxiosError$1("Object is too deeply nested (" + depth + " levels). Max depth: " + maxDepth, AxiosError$1.ERR_FORM_DATA_DEPTH_EXCEEDED);
1264
+ if (stack.indexOf(value) !== -1) throw Error("Circular reference detected in " + path.join("."));
1265
+ stack.push(value);
1266
+ utils_default.forEach(value, function each(el, key) {
1267
+ if ((!(utils_default.isUndefined(el) || el === null) && visitor.call(formData, el, utils_default.isString(key) ? key.trim() : key, path, exposedHelpers)) === true) build(el, path ? path.concat(key) : [key], depth + 1);
1268
+ });
1269
+ stack.pop();
1270
+ }
1271
+ if (!utils_default.isObject(obj)) throw new TypeError("data must be an object");
1272
+ build(obj);
1273
+ return formData;
1274
+ }
1275
+ //#endregion
1276
+ //#region node_modules/axios/lib/helpers/AxiosURLSearchParams.js
1277
+ /**
1278
+ * It encodes a string by replacing all characters that are not in the unreserved set with
1279
+ * their percent-encoded equivalents
1280
+ *
1281
+ * @param {string} str - The string to encode.
1282
+ *
1283
+ * @returns {string} The encoded string.
1284
+ */
1285
+ function encode$1(str) {
1286
+ const charMap = {
1287
+ "!": "%21",
1288
+ "'": "%27",
1289
+ "(": "%28",
1290
+ ")": "%29",
1291
+ "~": "%7E",
1292
+ "%20": "+"
1293
+ };
1294
+ return encodeURIComponent(str).replace(/[!'()~]|%20/g, function replacer(match) {
1295
+ return charMap[match];
1296
+ });
1297
+ }
1298
+ /**
1299
+ * It takes a params object and converts it to a FormData object
1300
+ *
1301
+ * @param {Object<string, any>} params - The parameters to be converted to a FormData object.
1302
+ * @param {Object<string, any>} options - The options object passed to the Axios constructor.
1303
+ *
1304
+ * @returns {void}
1305
+ */
1306
+ function AxiosURLSearchParams(params, options) {
1307
+ this._pairs = [];
1308
+ params && toFormData$1(params, this, options);
1309
+ }
1310
+ var prototype = AxiosURLSearchParams.prototype;
1311
+ prototype.append = function append(name, value) {
1312
+ this._pairs.push([name, value]);
1313
+ };
1314
+ prototype.toString = function toString(encoder) {
1315
+ const _encode = encoder ? function(value) {
1316
+ return encoder.call(this, value, encode$1);
1317
+ } : encode$1;
1318
+ return this._pairs.map(function each(pair) {
1319
+ return _encode(pair[0]) + "=" + _encode(pair[1]);
1320
+ }, "").join("&");
1321
+ };
1322
+ //#endregion
1323
+ //#region node_modules/axios/lib/helpers/buildURL.js
1324
+ /**
1325
+ * It replaces URL-encoded forms of `:`, `$`, `,`, and spaces with
1326
+ * their plain counterparts (`:`, `$`, `,`, `+`).
1327
+ *
1328
+ * @param {string} val The value to be encoded.
1329
+ *
1330
+ * @returns {string} The encoded value.
1331
+ */
1332
+ function encode(val) {
1333
+ return encodeURIComponent(val).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
1334
+ }
1335
+ /**
1336
+ * Build a URL by appending params to the end
1337
+ *
1338
+ * @param {string} url The base of the url (e.g., http://www.google.com)
1339
+ * @param {object} [params] The params to be appended
1340
+ * @param {?(object|Function)} options
1341
+ *
1342
+ * @returns {string} The formatted url
1343
+ */
1344
+ function buildURL(url, params, options) {
1345
+ if (!params) return url;
1346
+ const _encode = options && options.encode || encode;
1347
+ const _options = utils_default.isFunction(options) ? { serialize: options } : options;
1348
+ const serializeFn = _options && _options.serialize;
1349
+ let serializedParams;
1350
+ if (serializeFn) serializedParams = serializeFn(params, _options);
1351
+ else serializedParams = utils_default.isURLSearchParams(params) ? params.toString() : new AxiosURLSearchParams(params, _options).toString(_encode);
1352
+ if (serializedParams) {
1353
+ const hashmarkIndex = url.indexOf("#");
1354
+ if (hashmarkIndex !== -1) url = url.slice(0, hashmarkIndex);
1355
+ url += (url.indexOf("?") === -1 ? "?" : "&") + serializedParams;
1356
+ }
1357
+ return url;
1358
+ }
1359
+ //#endregion
1360
+ //#region node_modules/axios/lib/core/InterceptorManager.js
1361
+ var InterceptorManager = class {
1362
+ constructor() {
1363
+ this.handlers = [];
1364
+ }
1365
+ /**
1366
+ * Add a new interceptor to the stack
1367
+ *
1368
+ * @param {Function} fulfilled The function to handle `then` for a `Promise`
1369
+ * @param {Function} rejected The function to handle `reject` for a `Promise`
1370
+ * @param {Object} options The options for the interceptor, synchronous and runWhen
1371
+ *
1372
+ * @return {Number} An ID used to remove interceptor later
1373
+ */
1374
+ use(fulfilled, rejected, options) {
1375
+ this.handlers.push({
1376
+ fulfilled,
1377
+ rejected,
1378
+ synchronous: options ? options.synchronous : false,
1379
+ runWhen: options ? options.runWhen : null
1380
+ });
1381
+ return this.handlers.length - 1;
1382
+ }
1383
+ /**
1384
+ * Remove an interceptor from the stack
1385
+ *
1386
+ * @param {Number} id The ID that was returned by `use`
1387
+ *
1388
+ * @returns {void}
1389
+ */
1390
+ eject(id) {
1391
+ if (this.handlers[id]) this.handlers[id] = null;
1392
+ }
1393
+ /**
1394
+ * Clear all interceptors from the stack
1395
+ *
1396
+ * @returns {void}
1397
+ */
1398
+ clear() {
1399
+ if (this.handlers) this.handlers = [];
1400
+ }
1401
+ /**
1402
+ * Iterate over all the registered interceptors
1403
+ *
1404
+ * This method is particularly useful for skipping over any
1405
+ * interceptors that may have become `null` calling `eject`.
1406
+ *
1407
+ * @param {Function} fn The function to call for each interceptor
1408
+ *
1409
+ * @returns {void}
1410
+ */
1411
+ forEach(fn) {
1412
+ utils_default.forEach(this.handlers, function forEachHandler(h) {
1413
+ if (h !== null) fn(h);
1414
+ });
1415
+ }
1416
+ };
1417
+ //#endregion
1418
+ //#region node_modules/axios/lib/defaults/transitional.js
1419
+ var transitional_default = {
1420
+ silentJSONParsing: true,
1421
+ forcedJSONParsing: true,
1422
+ clarifyTimeoutError: false,
1423
+ legacyInterceptorReqResOrdering: true
1424
+ };
1425
+ //#endregion
1426
+ //#region node_modules/axios/lib/platform/browser/index.js
1427
+ var browser_default = {
1428
+ isBrowser: true,
1429
+ classes: {
1430
+ URLSearchParams: typeof URLSearchParams !== "undefined" ? URLSearchParams : AxiosURLSearchParams,
1431
+ FormData: typeof FormData !== "undefined" ? FormData : null,
1432
+ Blob: typeof Blob !== "undefined" ? Blob : null
1433
+ },
1434
+ protocols: [
1435
+ "http",
1436
+ "https",
1437
+ "file",
1438
+ "blob",
1439
+ "url",
1440
+ "data"
1441
+ ]
1442
+ };
1443
+ //#endregion
1444
+ //#region node_modules/axios/lib/platform/common/utils.js
1445
+ var utils_exports = /* @__PURE__ */ __exportAll({
1446
+ hasBrowserEnv: () => hasBrowserEnv,
1447
+ hasStandardBrowserEnv: () => hasStandardBrowserEnv,
1448
+ hasStandardBrowserWebWorkerEnv: () => hasStandardBrowserWebWorkerEnv,
1449
+ navigator: () => _navigator,
1450
+ origin: () => origin
1451
+ });
1452
+ var hasBrowserEnv = typeof window !== "undefined" && typeof document !== "undefined";
1453
+ var _navigator = typeof navigator === "object" && navigator || void 0;
1454
+ /**
1455
+ * Determine if we're running in a standard browser environment
1456
+ *
1457
+ * This allows axios to run in a web worker, and react-native.
1458
+ * Both environments support XMLHttpRequest, but not fully standard globals.
1459
+ *
1460
+ * web workers:
1461
+ * typeof window -> undefined
1462
+ * typeof document -> undefined
1463
+ *
1464
+ * react-native:
1465
+ * navigator.product -> 'ReactNative'
1466
+ * nativescript
1467
+ * navigator.product -> 'NativeScript' or 'NS'
1468
+ *
1469
+ * @returns {boolean}
1470
+ */
1471
+ var hasStandardBrowserEnv = hasBrowserEnv && (!_navigator || [
1472
+ "ReactNative",
1473
+ "NativeScript",
1474
+ "NS"
1475
+ ].indexOf(_navigator.product) < 0);
1476
+ /**
1477
+ * Determine if we're running in a standard browser webWorker environment
1478
+ *
1479
+ * Although the `isStandardBrowserEnv` method indicates that
1480
+ * `allows axios to run in a web worker`, the WebWorker will still be
1481
+ * filtered out due to its judgment standard
1482
+ * `typeof window !== 'undefined' && typeof document !== 'undefined'`.
1483
+ * This leads to a problem when axios post `FormData` in webWorker
1484
+ */
1485
+ var hasStandardBrowserWebWorkerEnv = typeof WorkerGlobalScope !== "undefined" && self instanceof WorkerGlobalScope && typeof self.importScripts === "function";
1486
+ var origin = hasBrowserEnv && window.location.href || "http://localhost";
1487
+ //#endregion
1488
+ //#region node_modules/axios/lib/platform/index.js
1489
+ var platform_default = {
1490
+ ...utils_exports,
1491
+ ...browser_default
1492
+ };
1493
+ //#endregion
1494
+ //#region node_modules/axios/lib/helpers/toURLEncodedForm.js
1495
+ function toURLEncodedForm(data, options) {
1496
+ return toFormData$1(data, new platform_default.classes.URLSearchParams(), {
1497
+ visitor: function(value, key, path, helpers) {
1498
+ if (platform_default.isNode && utils_default.isBuffer(value)) {
1499
+ this.append(key, value.toString("base64"));
1500
+ return false;
1501
+ }
1502
+ return helpers.defaultVisitor.apply(this, arguments);
1503
+ },
1504
+ ...options
1505
+ });
1506
+ }
1507
+ //#endregion
1508
+ //#region node_modules/axios/lib/helpers/formDataToJSON.js
1509
+ /**
1510
+ * It takes a string like `foo[x][y][z]` and returns an array like `['foo', 'x', 'y', 'z']
1511
+ *
1512
+ * @param {string} name - The name of the property to get.
1513
+ *
1514
+ * @returns An array of strings.
1515
+ */
1516
+ function parsePropPath(name) {
1517
+ return utils_default.matchAll(/\w+|\[(\w*)]/g, name).map((match) => {
1518
+ return match[0] === "[]" ? "" : match[1] || match[0];
1519
+ });
1520
+ }
1521
+ /**
1522
+ * Convert an array to an object.
1523
+ *
1524
+ * @param {Array<any>} arr - The array to convert to an object.
1525
+ *
1526
+ * @returns An object with the same keys and values as the array.
1527
+ */
1528
+ function arrayToObject(arr) {
1529
+ const obj = {};
1530
+ const keys = Object.keys(arr);
1531
+ let i;
1532
+ const len = keys.length;
1533
+ let key;
1534
+ for (i = 0; i < len; i++) {
1535
+ key = keys[i];
1536
+ obj[key] = arr[key];
1537
+ }
1538
+ return obj;
1539
+ }
1540
+ /**
1541
+ * It takes a FormData object and returns a JavaScript object
1542
+ *
1543
+ * @param {string} formData The FormData object to convert to JSON.
1544
+ *
1545
+ * @returns {Object<string, any> | null} The converted object.
1546
+ */
1547
+ function formDataToJSON(formData) {
1548
+ function buildPath(path, value, target, index) {
1549
+ let name = path[index++];
1550
+ if (name === "__proto__") return true;
1551
+ const isNumericKey = Number.isFinite(+name);
1552
+ const isLast = index >= path.length;
1553
+ name = !name && utils_default.isArray(target) ? target.length : name;
1554
+ if (isLast) {
1555
+ if (utils_default.hasOwnProp(target, name)) target[name] = utils_default.isArray(target[name]) ? target[name].concat(value) : [target[name], value];
1556
+ else target[name] = value;
1557
+ return !isNumericKey;
1558
+ }
1559
+ if (!utils_default.hasOwnProp(target, name) || !utils_default.isObject(target[name])) target[name] = [];
1560
+ if (buildPath(path, value, target[name], index) && utils_default.isArray(target[name])) target[name] = arrayToObject(target[name]);
1561
+ return !isNumericKey;
1562
+ }
1563
+ if (utils_default.isFormData(formData) && utils_default.isFunction(formData.entries)) {
1564
+ const obj = {};
1565
+ utils_default.forEachEntry(formData, (name, value) => {
1566
+ buildPath(parsePropPath(name), value, obj, 0);
1567
+ });
1568
+ return obj;
1569
+ }
1570
+ return null;
1571
+ }
1572
+ //#endregion
1573
+ //#region node_modules/axios/lib/defaults/index.js
1574
+ var own = (obj, key) => obj != null && utils_default.hasOwnProp(obj, key) ? obj[key] : void 0;
1575
+ /**
1576
+ * It takes a string, tries to parse it, and if it fails, it returns the stringified version
1577
+ * of the input
1578
+ *
1579
+ * @param {any} rawValue - The value to be stringified.
1580
+ * @param {Function} parser - A function that parses a string into a JavaScript object.
1581
+ * @param {Function} encoder - A function that takes a value and returns a string.
1582
+ *
1583
+ * @returns {string} A stringified version of the rawValue.
1584
+ */
1585
+ function stringifySafely(rawValue, parser, encoder) {
1586
+ if (utils_default.isString(rawValue)) try {
1587
+ (parser || JSON.parse)(rawValue);
1588
+ return utils_default.trim(rawValue);
1589
+ } catch (e) {
1590
+ if (e.name !== "SyntaxError") throw e;
1591
+ }
1592
+ return (encoder || JSON.stringify)(rawValue);
1593
+ }
1594
+ var defaults = {
1595
+ transitional: transitional_default,
1596
+ adapter: [
1597
+ "xhr",
1598
+ "http",
1599
+ "fetch"
1600
+ ],
1601
+ transformRequest: [function transformRequest(data, headers) {
1602
+ const contentType = headers.getContentType() || "";
1603
+ const hasJSONContentType = contentType.indexOf("application/json") > -1;
1604
+ const isObjectPayload = utils_default.isObject(data);
1605
+ if (isObjectPayload && utils_default.isHTMLForm(data)) data = new FormData(data);
1606
+ if (utils_default.isFormData(data)) return hasJSONContentType ? JSON.stringify(formDataToJSON(data)) : data;
1607
+ if (utils_default.isArrayBuffer(data) || utils_default.isBuffer(data) || utils_default.isStream(data) || utils_default.isFile(data) || utils_default.isBlob(data) || utils_default.isReadableStream(data)) return data;
1608
+ if (utils_default.isArrayBufferView(data)) return data.buffer;
1609
+ if (utils_default.isURLSearchParams(data)) {
1610
+ headers.setContentType("application/x-www-form-urlencoded;charset=utf-8", false);
1611
+ return data.toString();
1612
+ }
1613
+ let isFileList;
1614
+ if (isObjectPayload) {
1615
+ const formSerializer = own(this, "formSerializer");
1616
+ if (contentType.indexOf("application/x-www-form-urlencoded") > -1) return toURLEncodedForm(data, formSerializer).toString();
1617
+ if ((isFileList = utils_default.isFileList(data)) || contentType.indexOf("multipart/form-data") > -1) {
1618
+ const env = own(this, "env");
1619
+ const _FormData = env && env.FormData;
1620
+ return toFormData$1(isFileList ? { "files[]": data } : data, _FormData && new _FormData(), formSerializer);
1621
+ }
1622
+ }
1623
+ if (isObjectPayload || hasJSONContentType) {
1624
+ headers.setContentType("application/json", false);
1625
+ return stringifySafely(data);
1626
+ }
1627
+ return data;
1628
+ }],
1629
+ transformResponse: [function transformResponse(data) {
1630
+ const transitional = own(this, "transitional") || defaults.transitional;
1631
+ const forcedJSONParsing = transitional && transitional.forcedJSONParsing;
1632
+ const responseType = own(this, "responseType");
1633
+ const JSONRequested = responseType === "json";
1634
+ if (utils_default.isResponse(data) || utils_default.isReadableStream(data)) return data;
1635
+ if (data && utils_default.isString(data) && (forcedJSONParsing && !responseType || JSONRequested)) {
1636
+ const strictJSONParsing = !(transitional && transitional.silentJSONParsing) && JSONRequested;
1637
+ try {
1638
+ return JSON.parse(data, own(this, "parseReviver"));
1639
+ } catch (e) {
1640
+ if (strictJSONParsing) {
1641
+ if (e.name === "SyntaxError") throw AxiosError$1.from(e, AxiosError$1.ERR_BAD_RESPONSE, this, null, own(this, "response"));
1642
+ throw e;
1643
+ }
1644
+ }
1645
+ }
1646
+ return data;
1647
+ }],
1648
+ /**
1649
+ * A timeout in milliseconds to abort a request. If set to 0 (default) a
1650
+ * timeout is not created.
1651
+ */
1652
+ timeout: 0,
1653
+ xsrfCookieName: "XSRF-TOKEN",
1654
+ xsrfHeaderName: "X-XSRF-TOKEN",
1655
+ maxContentLength: -1,
1656
+ maxBodyLength: -1,
1657
+ env: {
1658
+ FormData: platform_default.classes.FormData,
1659
+ Blob: platform_default.classes.Blob
1660
+ },
1661
+ validateStatus: function validateStatus(status) {
1662
+ return status >= 200 && status < 300;
1663
+ },
1664
+ headers: { common: {
1665
+ Accept: "application/json, text/plain, */*",
1666
+ "Content-Type": void 0
1667
+ } }
1668
+ };
1669
+ utils_default.forEach([
1670
+ "delete",
1671
+ "get",
1672
+ "head",
1673
+ "post",
1674
+ "put",
1675
+ "patch",
1676
+ "query"
1677
+ ], (method) => {
1678
+ defaults.headers[method] = {};
1679
+ });
1680
+ //#endregion
1681
+ //#region node_modules/axios/lib/core/transformData.js
1682
+ /**
1683
+ * Transform the data for a request or a response
1684
+ *
1685
+ * @param {Array|Function} fns A single function or Array of functions
1686
+ * @param {?Object} response The response object
1687
+ *
1688
+ * @returns {*} The resulting transformed data
1689
+ */
1690
+ function transformData(fns, response) {
1691
+ const config = this || defaults;
1692
+ const context = response || config;
1693
+ const headers = AxiosHeaders$1.from(context.headers);
1694
+ let data = context.data;
1695
+ utils_default.forEach(fns, function transform(fn) {
1696
+ data = fn.call(config, data, headers.normalize(), response ? response.status : void 0);
1697
+ });
1698
+ headers.normalize();
1699
+ return data;
1700
+ }
1701
+ //#endregion
1702
+ //#region node_modules/axios/lib/cancel/isCancel.js
1703
+ function isCancel$1(value) {
1704
+ return !!(value && value.__CANCEL__);
1705
+ }
1706
+ //#endregion
1707
+ //#region node_modules/axios/lib/cancel/CanceledError.js
1708
+ var CanceledError$1 = class extends AxiosError$1 {
1709
+ /**
1710
+ * A `CanceledError` is an object that is thrown when an operation is canceled.
1711
+ *
1712
+ * @param {string=} message The message.
1713
+ * @param {Object=} config The config.
1714
+ * @param {Object=} request The request.
1715
+ *
1716
+ * @returns {CanceledError} The created error.
1717
+ */
1718
+ constructor(message, config, request) {
1719
+ super(message == null ? "canceled" : message, AxiosError$1.ERR_CANCELED, config, request);
1720
+ this.name = "CanceledError";
1721
+ this.__CANCEL__ = true;
1722
+ }
1723
+ };
1724
+ //#endregion
1725
+ //#region node_modules/axios/lib/core/settle.js
1726
+ /**
1727
+ * Resolve or reject a Promise based on response status.
1728
+ *
1729
+ * @param {Function} resolve A function that resolves the promise.
1730
+ * @param {Function} reject A function that rejects the promise.
1731
+ * @param {object} response The response.
1732
+ *
1733
+ * @returns {object} The response.
1734
+ */
1735
+ function settle(resolve, reject, response) {
1736
+ const validateStatus = response.config.validateStatus;
1737
+ if (!response.status || !validateStatus || validateStatus(response.status)) resolve(response);
1738
+ else reject(new AxiosError$1("Request failed with status code " + response.status, response.status >= 400 && response.status < 500 ? AxiosError$1.ERR_BAD_REQUEST : AxiosError$1.ERR_BAD_RESPONSE, response.config, response.request, response));
1739
+ }
1740
+ //#endregion
1741
+ //#region node_modules/axios/lib/helpers/parseProtocol.js
1742
+ function parseProtocol(url) {
1743
+ const match = /^([-+\w]{1,25}):(?:\/\/)?/.exec(url);
1744
+ return match && match[1] || "";
1745
+ }
1746
+ //#endregion
1747
+ //#region node_modules/axios/lib/helpers/speedometer.js
1748
+ /**
1749
+ * Calculate data maxRate
1750
+ * @param {Number} [samplesCount= 10]
1751
+ * @param {Number} [min= 1000]
1752
+ * @returns {Function}
1753
+ */
1754
+ function speedometer(samplesCount, min) {
1755
+ samplesCount = samplesCount || 10;
1756
+ const bytes = new Array(samplesCount);
1757
+ const timestamps = new Array(samplesCount);
1758
+ let head = 0;
1759
+ let tail = 0;
1760
+ let firstSampleTS;
1761
+ min = min !== void 0 ? min : 1e3;
1762
+ return function push(chunkLength) {
1763
+ const now = Date.now();
1764
+ const startedAt = timestamps[tail];
1765
+ if (!firstSampleTS) firstSampleTS = now;
1766
+ bytes[head] = chunkLength;
1767
+ timestamps[head] = now;
1768
+ let i = tail;
1769
+ let bytesCount = 0;
1770
+ while (i !== head) {
1771
+ bytesCount += bytes[i++];
1772
+ i = i % samplesCount;
1773
+ }
1774
+ head = (head + 1) % samplesCount;
1775
+ if (head === tail) tail = (tail + 1) % samplesCount;
1776
+ if (now - firstSampleTS < min) return;
1777
+ const passed = startedAt && now - startedAt;
1778
+ return passed ? Math.round(bytesCount * 1e3 / passed) : void 0;
1779
+ };
1780
+ }
1781
+ //#endregion
1782
+ //#region node_modules/axios/lib/helpers/throttle.js
1783
+ /**
1784
+ * Throttle decorator
1785
+ * @param {Function} fn
1786
+ * @param {Number} freq
1787
+ * @return {Function}
1788
+ */
1789
+ function throttle(fn, freq) {
1790
+ let timestamp = 0;
1791
+ let threshold = 1e3 / freq;
1792
+ let lastArgs;
1793
+ let timer;
1794
+ const invoke = (args, now = Date.now()) => {
1795
+ timestamp = now;
1796
+ lastArgs = null;
1797
+ if (timer) {
1798
+ clearTimeout(timer);
1799
+ timer = null;
1800
+ }
1801
+ fn(...args);
1802
+ };
1803
+ const throttled = (...args) => {
1804
+ const now = Date.now();
1805
+ const passed = now - timestamp;
1806
+ if (passed >= threshold) invoke(args, now);
1807
+ else {
1808
+ lastArgs = args;
1809
+ if (!timer) timer = setTimeout(() => {
1810
+ timer = null;
1811
+ invoke(lastArgs);
1812
+ }, threshold - passed);
1813
+ }
1814
+ };
1815
+ const flush = () => lastArgs && invoke(lastArgs);
1816
+ return [throttled, flush];
1817
+ }
1818
+ //#endregion
1819
+ //#region node_modules/axios/lib/helpers/progressEventReducer.js
1820
+ var progressEventReducer = (listener, isDownloadStream, freq = 3) => {
1821
+ let bytesNotified = 0;
1822
+ const _speedometer = speedometer(50, 250);
1823
+ return throttle((e) => {
1824
+ if (!e || typeof e.loaded !== "number") return;
1825
+ const rawLoaded = e.loaded;
1826
+ const total = e.lengthComputable ? e.total : void 0;
1827
+ const loaded = total != null ? Math.min(rawLoaded, total) : rawLoaded;
1828
+ const progressBytes = Math.max(0, loaded - bytesNotified);
1829
+ const rate = _speedometer(progressBytes);
1830
+ bytesNotified = Math.max(bytesNotified, loaded);
1831
+ listener({
1832
+ loaded,
1833
+ total,
1834
+ progress: total ? loaded / total : void 0,
1835
+ bytes: progressBytes,
1836
+ rate: rate ? rate : void 0,
1837
+ estimated: rate && total ? (total - loaded) / rate : void 0,
1838
+ event: e,
1839
+ lengthComputable: total != null,
1840
+ [isDownloadStream ? "download" : "upload"]: true
1841
+ });
1842
+ }, freq);
1843
+ };
1844
+ var progressEventDecorator = (total, throttled) => {
1845
+ const lengthComputable = total != null;
1846
+ return [(loaded) => throttled[0]({
1847
+ lengthComputable,
1848
+ total,
1849
+ loaded
1850
+ }), throttled[1]];
1851
+ };
1852
+ var asyncDecorator = (fn) => (...args) => utils_default.asap(() => fn(...args));
1853
+ //#endregion
1854
+ //#region node_modules/axios/lib/helpers/isURLSameOrigin.js
1855
+ var isURLSameOrigin_default = platform_default.hasStandardBrowserEnv ? ((origin, isMSIE) => (url) => {
1856
+ url = new URL(url, platform_default.origin);
1857
+ return origin.protocol === url.protocol && origin.host === url.host && (isMSIE || origin.port === url.port);
1858
+ })(new URL(platform_default.origin), platform_default.navigator && /(msie|trident)/i.test(platform_default.navigator.userAgent)) : () => true;
1859
+ //#endregion
1860
+ //#region node_modules/axios/lib/helpers/cookies.js
1861
+ var cookies_default = platform_default.hasStandardBrowserEnv ? {
1862
+ write(name, value, expires, path, domain, secure, sameSite) {
1863
+ if (typeof document === "undefined") return;
1864
+ const cookie = [`${name}=${encodeURIComponent(value)}`];
1865
+ if (utils_default.isNumber(expires)) cookie.push(`expires=${new Date(expires).toUTCString()}`);
1866
+ if (utils_default.isString(path)) cookie.push(`path=${path}`);
1867
+ if (utils_default.isString(domain)) cookie.push(`domain=${domain}`);
1868
+ if (secure === true) cookie.push("secure");
1869
+ if (utils_default.isString(sameSite)) cookie.push(`SameSite=${sameSite}`);
1870
+ document.cookie = cookie.join("; ");
1871
+ },
1872
+ read(name) {
1873
+ if (typeof document === "undefined") return null;
1874
+ const cookies = document.cookie.split(";");
1875
+ for (let i = 0; i < cookies.length; i++) {
1876
+ const cookie = cookies[i].replace(/^\s+/, "");
1877
+ const eq = cookie.indexOf("=");
1878
+ if (eq !== -1 && cookie.slice(0, eq) === name) return decodeURIComponent(cookie.slice(eq + 1));
1879
+ }
1880
+ return null;
1881
+ },
1882
+ remove(name) {
1883
+ this.write(name, "", Date.now() - 864e5, "/");
1884
+ }
1885
+ } : {
1886
+ write() {},
1887
+ read() {
1888
+ return null;
1889
+ },
1890
+ remove() {}
1891
+ };
1892
+ //#endregion
1893
+ //#region node_modules/axios/lib/helpers/isAbsoluteURL.js
1894
+ /**
1895
+ * Determines whether the specified URL is absolute
1896
+ *
1897
+ * @param {string} url The URL to test
1898
+ *
1899
+ * @returns {boolean} True if the specified URL is absolute, otherwise false
1900
+ */
1901
+ function isAbsoluteURL(url) {
1902
+ if (typeof url !== "string") return false;
1903
+ return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url);
1904
+ }
1905
+ //#endregion
1906
+ //#region node_modules/axios/lib/helpers/combineURLs.js
1907
+ /**
1908
+ * Creates a new URL by combining the specified URLs
1909
+ *
1910
+ * @param {string} baseURL The base URL
1911
+ * @param {string} relativeURL The relative URL
1912
+ *
1913
+ * @returns {string} The combined URL
1914
+ */
1915
+ function combineURLs(baseURL, relativeURL) {
1916
+ return relativeURL ? baseURL.replace(/\/?\/$/, "") + "/" + relativeURL.replace(/^\/+/, "") : baseURL;
1917
+ }
1918
+ //#endregion
1919
+ //#region node_modules/axios/lib/core/buildFullPath.js
1920
+ /**
1921
+ * Creates a new URL by combining the baseURL with the requestedURL,
1922
+ * only when the requestedURL is not already an absolute URL.
1923
+ * If the requestURL is absolute, this function returns the requestedURL untouched.
1924
+ *
1925
+ * @param {string} baseURL The base URL
1926
+ * @param {string} requestedURL Absolute or relative URL to combine
1927
+ *
1928
+ * @returns {string} The combined full path
1929
+ */
1930
+ function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {
1931
+ let isRelativeUrl = !isAbsoluteURL(requestedURL);
1932
+ if (baseURL && (isRelativeUrl || allowAbsoluteUrls === false)) return combineURLs(baseURL, requestedURL);
1933
+ return requestedURL;
1934
+ }
1935
+ //#endregion
1936
+ //#region node_modules/axios/lib/core/mergeConfig.js
1937
+ var headersToObject = (thing) => thing instanceof AxiosHeaders$1 ? { ...thing } : thing;
1938
+ /**
1939
+ * Config-specific merge-function which creates a new config-object
1940
+ * by merging two configuration objects together.
1941
+ *
1942
+ * @param {Object} config1
1943
+ * @param {Object} config2
1944
+ *
1945
+ * @returns {Object} New object resulting from merging config2 to config1
1946
+ */
1947
+ function mergeConfig$1(config1, config2) {
1948
+ config2 = config2 || {};
1949
+ const config = Object.create(null);
1950
+ Object.defineProperty(config, "hasOwnProperty", {
1951
+ __proto__: null,
1952
+ value: Object.prototype.hasOwnProperty,
1953
+ enumerable: false,
1954
+ writable: true,
1955
+ configurable: true
1956
+ });
1957
+ function getMergedValue(target, source, prop, caseless) {
1958
+ if (utils_default.isPlainObject(target) && utils_default.isPlainObject(source)) return utils_default.merge.call({ caseless }, target, source);
1959
+ else if (utils_default.isPlainObject(source)) return utils_default.merge({}, source);
1960
+ else if (utils_default.isArray(source)) return source.slice();
1961
+ return source;
1962
+ }
1963
+ function mergeDeepProperties(a, b, prop, caseless) {
1964
+ if (!utils_default.isUndefined(b)) return getMergedValue(a, b, prop, caseless);
1965
+ else if (!utils_default.isUndefined(a)) return getMergedValue(void 0, a, prop, caseless);
1966
+ }
1967
+ function valueFromConfig2(a, b) {
1968
+ if (!utils_default.isUndefined(b)) return getMergedValue(void 0, b);
1969
+ }
1970
+ function defaultToConfig2(a, b) {
1971
+ if (!utils_default.isUndefined(b)) return getMergedValue(void 0, b);
1972
+ else if (!utils_default.isUndefined(a)) return getMergedValue(void 0, a);
1973
+ }
1974
+ function mergeDirectKeys(a, b, prop) {
1975
+ if (utils_default.hasOwnProp(config2, prop)) return getMergedValue(a, b);
1976
+ else if (utils_default.hasOwnProp(config1, prop)) return getMergedValue(void 0, a);
1977
+ }
1978
+ const mergeMap = {
1979
+ url: valueFromConfig2,
1980
+ method: valueFromConfig2,
1981
+ data: valueFromConfig2,
1982
+ baseURL: defaultToConfig2,
1983
+ transformRequest: defaultToConfig2,
1984
+ transformResponse: defaultToConfig2,
1985
+ paramsSerializer: defaultToConfig2,
1986
+ timeout: defaultToConfig2,
1987
+ timeoutMessage: defaultToConfig2,
1988
+ withCredentials: defaultToConfig2,
1989
+ withXSRFToken: defaultToConfig2,
1990
+ adapter: defaultToConfig2,
1991
+ responseType: defaultToConfig2,
1992
+ xsrfCookieName: defaultToConfig2,
1993
+ xsrfHeaderName: defaultToConfig2,
1994
+ onUploadProgress: defaultToConfig2,
1995
+ onDownloadProgress: defaultToConfig2,
1996
+ decompress: defaultToConfig2,
1997
+ maxContentLength: defaultToConfig2,
1998
+ maxBodyLength: defaultToConfig2,
1999
+ beforeRedirect: defaultToConfig2,
2000
+ transport: defaultToConfig2,
2001
+ httpAgent: defaultToConfig2,
2002
+ httpsAgent: defaultToConfig2,
2003
+ cancelToken: defaultToConfig2,
2004
+ socketPath: defaultToConfig2,
2005
+ allowedSocketPaths: defaultToConfig2,
2006
+ responseEncoding: defaultToConfig2,
2007
+ validateStatus: mergeDirectKeys,
2008
+ headers: (a, b, prop) => mergeDeepProperties(headersToObject(a), headersToObject(b), prop, true)
2009
+ };
2010
+ utils_default.forEach(Object.keys({
2011
+ ...config1,
2012
+ ...config2
2013
+ }), function computeConfigValue(prop) {
2014
+ if (prop === "__proto__" || prop === "constructor" || prop === "prototype") return;
2015
+ const merge = utils_default.hasOwnProp(mergeMap, prop) ? mergeMap[prop] : mergeDeepProperties;
2016
+ const configValue = merge(utils_default.hasOwnProp(config1, prop) ? config1[prop] : void 0, utils_default.hasOwnProp(config2, prop) ? config2[prop] : void 0, prop);
2017
+ utils_default.isUndefined(configValue) && merge !== mergeDirectKeys || (config[prop] = configValue);
2018
+ });
2019
+ return config;
2020
+ }
2021
+ //#endregion
2022
+ //#region node_modules/axios/lib/helpers/resolveConfig.js
2023
+ var FORM_DATA_CONTENT_HEADERS = ["content-type", "content-length"];
2024
+ function setFormDataHeaders(headers, formHeaders, policy) {
2025
+ if (policy !== "content-only") {
2026
+ headers.set(formHeaders);
2027
+ return;
2028
+ }
2029
+ Object.entries(formHeaders).forEach(([key, val]) => {
2030
+ if (FORM_DATA_CONTENT_HEADERS.includes(key.toLowerCase())) headers.set(key, val);
2031
+ });
2032
+ }
2033
+ /**
2034
+ * Encode a UTF-8 string to a Latin-1 byte string for use with btoa().
2035
+ * This is a modern replacement for the deprecated unescape(encodeURIComponent(str)) pattern.
2036
+ *
2037
+ * @param {string} str The string to encode
2038
+ *
2039
+ * @returns {string} UTF-8 bytes as a Latin-1 string
2040
+ */
2041
+ var encodeUTF8 = (str) => encodeURIComponent(str).replace(/%([0-9A-F]{2})/gi, (_, hex) => String.fromCharCode(parseInt(hex, 16)));
2042
+ var resolveConfig_default = (config) => {
2043
+ const newConfig = mergeConfig$1({}, config);
2044
+ const own = (key) => utils_default.hasOwnProp(newConfig, key) ? newConfig[key] : void 0;
2045
+ const data = own("data");
2046
+ let withXSRFToken = own("withXSRFToken");
2047
+ const xsrfHeaderName = own("xsrfHeaderName");
2048
+ const xsrfCookieName = own("xsrfCookieName");
2049
+ let headers = own("headers");
2050
+ const auth = own("auth");
2051
+ const baseURL = own("baseURL");
2052
+ const allowAbsoluteUrls = own("allowAbsoluteUrls");
2053
+ const url = own("url");
2054
+ newConfig.headers = headers = AxiosHeaders$1.from(headers);
2055
+ newConfig.url = buildURL(buildFullPath(baseURL, url, allowAbsoluteUrls), config.params, config.paramsSerializer);
2056
+ if (auth) headers.set("Authorization", "Basic " + btoa((auth.username || "") + ":" + (auth.password ? encodeUTF8(auth.password) : "")));
2057
+ if (utils_default.isFormData(data)) {
2058
+ if (platform_default.hasStandardBrowserEnv || platform_default.hasStandardBrowserWebWorkerEnv) headers.setContentType(void 0);
2059
+ else if (utils_default.isFunction(data.getHeaders)) setFormDataHeaders(headers, data.getHeaders(), own("formDataHeaderPolicy"));
2060
+ }
2061
+ if (platform_default.hasStandardBrowserEnv) {
2062
+ if (utils_default.isFunction(withXSRFToken)) withXSRFToken = withXSRFToken(newConfig);
2063
+ if (withXSRFToken === true || withXSRFToken == null && isURLSameOrigin_default(newConfig.url)) {
2064
+ const xsrfValue = xsrfHeaderName && xsrfCookieName && cookies_default.read(xsrfCookieName);
2065
+ if (xsrfValue) headers.set(xsrfHeaderName, xsrfValue);
2066
+ }
2067
+ }
2068
+ return newConfig;
2069
+ };
2070
+ var xhr_default = typeof XMLHttpRequest !== "undefined" && function(config) {
2071
+ return new Promise(function dispatchXhrRequest(resolve, reject) {
2072
+ const _config = resolveConfig_default(config);
2073
+ let requestData = _config.data;
2074
+ const requestHeaders = AxiosHeaders$1.from(_config.headers).normalize();
2075
+ let { responseType, onUploadProgress, onDownloadProgress } = _config;
2076
+ let onCanceled;
2077
+ let uploadThrottled, downloadThrottled;
2078
+ let flushUpload, flushDownload;
2079
+ function done() {
2080
+ flushUpload && flushUpload();
2081
+ flushDownload && flushDownload();
2082
+ _config.cancelToken && _config.cancelToken.unsubscribe(onCanceled);
2083
+ _config.signal && _config.signal.removeEventListener("abort", onCanceled);
2084
+ }
2085
+ let request = new XMLHttpRequest();
2086
+ request.open(_config.method.toUpperCase(), _config.url, true);
2087
+ request.timeout = _config.timeout;
2088
+ function onloadend() {
2089
+ if (!request) return;
2090
+ const responseHeaders = AxiosHeaders$1.from("getAllResponseHeaders" in request && request.getAllResponseHeaders());
2091
+ settle(function _resolve(value) {
2092
+ resolve(value);
2093
+ done();
2094
+ }, function _reject(err) {
2095
+ reject(err);
2096
+ done();
2097
+ }, {
2098
+ data: !responseType || responseType === "text" || responseType === "json" ? request.responseText : request.response,
2099
+ status: request.status,
2100
+ statusText: request.statusText,
2101
+ headers: responseHeaders,
2102
+ config,
2103
+ request
2104
+ });
2105
+ request = null;
2106
+ }
2107
+ if ("onloadend" in request) request.onloadend = onloadend;
2108
+ else request.onreadystatechange = function handleLoad() {
2109
+ if (!request || request.readyState !== 4) return;
2110
+ if (request.status === 0 && !(request.responseURL && request.responseURL.startsWith("file:"))) return;
2111
+ setTimeout(onloadend);
2112
+ };
2113
+ request.onabort = function handleAbort() {
2114
+ if (!request) return;
2115
+ reject(new AxiosError$1("Request aborted", AxiosError$1.ECONNABORTED, config, request));
2116
+ done();
2117
+ request = null;
2118
+ };
2119
+ request.onerror = function handleError(event) {
2120
+ const err = new AxiosError$1(event && event.message ? event.message : "Network Error", AxiosError$1.ERR_NETWORK, config, request);
2121
+ err.event = event || null;
2122
+ reject(err);
2123
+ done();
2124
+ request = null;
2125
+ };
2126
+ request.ontimeout = function handleTimeout() {
2127
+ let timeoutErrorMessage = _config.timeout ? "timeout of " + _config.timeout + "ms exceeded" : "timeout exceeded";
2128
+ const transitional = _config.transitional || transitional_default;
2129
+ if (_config.timeoutErrorMessage) timeoutErrorMessage = _config.timeoutErrorMessage;
2130
+ reject(new AxiosError$1(timeoutErrorMessage, transitional.clarifyTimeoutError ? AxiosError$1.ETIMEDOUT : AxiosError$1.ECONNABORTED, config, request));
2131
+ done();
2132
+ request = null;
2133
+ };
2134
+ requestData === void 0 && requestHeaders.setContentType(null);
2135
+ if ("setRequestHeader" in request) utils_default.forEach(toByteStringHeaderObject(requestHeaders), function setRequestHeader(val, key) {
2136
+ request.setRequestHeader(key, val);
2137
+ });
2138
+ if (!utils_default.isUndefined(_config.withCredentials)) request.withCredentials = !!_config.withCredentials;
2139
+ if (responseType && responseType !== "json") request.responseType = _config.responseType;
2140
+ if (onDownloadProgress) {
2141
+ [downloadThrottled, flushDownload] = progressEventReducer(onDownloadProgress, true);
2142
+ request.addEventListener("progress", downloadThrottled);
2143
+ }
2144
+ if (onUploadProgress && request.upload) {
2145
+ [uploadThrottled, flushUpload] = progressEventReducer(onUploadProgress);
2146
+ request.upload.addEventListener("progress", uploadThrottled);
2147
+ request.upload.addEventListener("loadend", flushUpload);
2148
+ }
2149
+ if (_config.cancelToken || _config.signal) {
2150
+ onCanceled = (cancel) => {
2151
+ if (!request) return;
2152
+ reject(!cancel || cancel.type ? new CanceledError$1(null, config, request) : cancel);
2153
+ request.abort();
2154
+ done();
2155
+ request = null;
2156
+ };
2157
+ _config.cancelToken && _config.cancelToken.subscribe(onCanceled);
2158
+ if (_config.signal) _config.signal.aborted ? onCanceled() : _config.signal.addEventListener("abort", onCanceled);
2159
+ }
2160
+ const protocol = parseProtocol(_config.url);
2161
+ if (protocol && !platform_default.protocols.includes(protocol)) {
2162
+ reject(new AxiosError$1("Unsupported protocol " + protocol + ":", AxiosError$1.ERR_BAD_REQUEST, config));
2163
+ return;
2164
+ }
2165
+ request.send(requestData || null);
2166
+ });
2167
+ };
2168
+ //#endregion
2169
+ //#region node_modules/axios/lib/helpers/composeSignals.js
2170
+ var composeSignals = (signals, timeout) => {
2171
+ signals = signals ? signals.filter(Boolean) : [];
2172
+ if (!timeout && !signals.length) return;
2173
+ const controller = new AbortController();
2174
+ let aborted = false;
2175
+ const onabort = function(reason) {
2176
+ if (!aborted) {
2177
+ aborted = true;
2178
+ unsubscribe();
2179
+ const err = reason instanceof Error ? reason : this.reason;
2180
+ controller.abort(err instanceof AxiosError$1 ? err : new CanceledError$1(err instanceof Error ? err.message : err));
2181
+ }
2182
+ };
2183
+ let timer = timeout && setTimeout(() => {
2184
+ timer = null;
2185
+ onabort(new AxiosError$1(`timeout of ${timeout}ms exceeded`, AxiosError$1.ETIMEDOUT));
2186
+ }, timeout);
2187
+ const unsubscribe = () => {
2188
+ if (!signals) return;
2189
+ timer && clearTimeout(timer);
2190
+ timer = null;
2191
+ signals.forEach((signal) => {
2192
+ signal.unsubscribe ? signal.unsubscribe(onabort) : signal.removeEventListener("abort", onabort);
2193
+ });
2194
+ signals = null;
2195
+ };
2196
+ signals.forEach((signal) => signal.addEventListener("abort", onabort));
2197
+ const { signal } = controller;
2198
+ signal.unsubscribe = () => utils_default.asap(unsubscribe);
2199
+ return signal;
2200
+ };
2201
+ //#endregion
2202
+ //#region node_modules/axios/lib/helpers/trackStream.js
2203
+ var streamChunk = function* (chunk, chunkSize) {
2204
+ let len = chunk.byteLength;
2205
+ if (!chunkSize || len < chunkSize) {
2206
+ yield chunk;
2207
+ return;
2208
+ }
2209
+ let pos = 0;
2210
+ let end;
2211
+ while (pos < len) {
2212
+ end = pos + chunkSize;
2213
+ yield chunk.slice(pos, end);
2214
+ pos = end;
2215
+ }
2216
+ };
2217
+ var readBytes = async function* (iterable, chunkSize) {
2218
+ for await (const chunk of readStream(iterable)) yield* streamChunk(chunk, chunkSize);
2219
+ };
2220
+ var readStream = async function* (stream) {
2221
+ if (stream[Symbol.asyncIterator]) {
2222
+ yield* stream;
2223
+ return;
2224
+ }
2225
+ const reader = stream.getReader();
2226
+ try {
2227
+ for (;;) {
2228
+ const { done, value } = await reader.read();
2229
+ if (done) break;
2230
+ yield value;
2231
+ }
2232
+ } finally {
2233
+ await reader.cancel();
2234
+ }
2235
+ };
2236
+ var trackStream = (stream, chunkSize, onProgress, onFinish) => {
2237
+ const iterator = readBytes(stream, chunkSize);
2238
+ let bytes = 0;
2239
+ let done;
2240
+ let _onFinish = (e) => {
2241
+ if (!done) {
2242
+ done = true;
2243
+ onFinish && onFinish(e);
2244
+ }
2245
+ };
2246
+ return new ReadableStream({
2247
+ async pull(controller) {
2248
+ try {
2249
+ const { done, value } = await iterator.next();
2250
+ if (done) {
2251
+ _onFinish();
2252
+ controller.close();
2253
+ return;
2254
+ }
2255
+ let len = value.byteLength;
2256
+ if (onProgress) onProgress(bytes += len);
2257
+ controller.enqueue(new Uint8Array(value));
2258
+ } catch (err) {
2259
+ _onFinish(err);
2260
+ throw err;
2261
+ }
2262
+ },
2263
+ cancel(reason) {
2264
+ _onFinish(reason);
2265
+ return iterator.return();
2266
+ }
2267
+ }, { highWaterMark: 2 });
2268
+ };
2269
+ //#endregion
2270
+ //#region node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js
2271
+ /**
2272
+ * Estimate decoded byte length of a data:// URL *without* allocating large buffers.
2273
+ * - For base64: compute exact decoded size using length and padding;
2274
+ * handle %XX at the character-count level (no string allocation).
2275
+ * - For non-base64: use UTF-8 byteLength of the encoded body as a safe upper bound.
2276
+ *
2277
+ * @param {string} url
2278
+ * @returns {number}
2279
+ */
2280
+ function estimateDataURLDecodedBytes(url) {
2281
+ if (!url || typeof url !== "string") return 0;
2282
+ if (!url.startsWith("data:")) return 0;
2283
+ const comma = url.indexOf(",");
2284
+ if (comma < 0) return 0;
2285
+ const meta = url.slice(5, comma);
2286
+ const body = url.slice(comma + 1);
2287
+ if (/;base64/i.test(meta)) {
2288
+ let effectiveLen = body.length;
2289
+ const len = body.length;
2290
+ for (let i = 0; i < len; i++) if (body.charCodeAt(i) === 37 && i + 2 < len) {
2291
+ const a = body.charCodeAt(i + 1);
2292
+ const b = body.charCodeAt(i + 2);
2293
+ if ((a >= 48 && a <= 57 || a >= 65 && a <= 70 || a >= 97 && a <= 102) && (b >= 48 && b <= 57 || b >= 65 && b <= 70 || b >= 97 && b <= 102)) {
2294
+ effectiveLen -= 2;
2295
+ i += 2;
2296
+ }
2297
+ }
2298
+ let pad = 0;
2299
+ let idx = len - 1;
2300
+ const tailIsPct3D = (j) => j >= 2 && body.charCodeAt(j - 2) === 37 && body.charCodeAt(j - 1) === 51 && (body.charCodeAt(j) === 68 || body.charCodeAt(j) === 100);
2301
+ if (idx >= 0) {
2302
+ if (body.charCodeAt(idx) === 61) {
2303
+ pad++;
2304
+ idx--;
2305
+ } else if (tailIsPct3D(idx)) {
2306
+ pad++;
2307
+ idx -= 3;
2308
+ }
2309
+ }
2310
+ if (pad === 1 && idx >= 0) {
2311
+ if (body.charCodeAt(idx) === 61) pad++;
2312
+ else if (tailIsPct3D(idx)) pad++;
2313
+ }
2314
+ const bytes = Math.floor(effectiveLen / 4) * 3 - (pad || 0);
2315
+ return bytes > 0 ? bytes : 0;
2316
+ }
2317
+ if (typeof Buffer !== "undefined" && typeof Buffer.byteLength === "function") return Buffer.byteLength(body, "utf8");
2318
+ let bytes = 0;
2319
+ for (let i = 0, len = body.length; i < len; i++) {
2320
+ const c = body.charCodeAt(i);
2321
+ if (c < 128) bytes += 1;
2322
+ else if (c < 2048) bytes += 2;
2323
+ else if (c >= 55296 && c <= 56319 && i + 1 < len) {
2324
+ const next = body.charCodeAt(i + 1);
2325
+ if (next >= 56320 && next <= 57343) {
2326
+ bytes += 4;
2327
+ i++;
2328
+ } else bytes += 3;
2329
+ } else bytes += 3;
2330
+ }
2331
+ return bytes;
2332
+ }
2333
+ //#endregion
2334
+ //#region node_modules/axios/lib/env/data.js
2335
+ var VERSION$1 = "1.16.1";
2336
+ //#endregion
2337
+ //#region node_modules/axios/lib/adapters/fetch.js
2338
+ var DEFAULT_CHUNK_SIZE = 64 * 1024;
2339
+ var { isFunction } = utils_default;
2340
+ var test = (fn, ...args) => {
2341
+ try {
2342
+ return !!fn(...args);
2343
+ } catch (e) {
2344
+ return false;
2345
+ }
2346
+ };
2347
+ var factory = (env) => {
2348
+ const globalObject = utils_default.global !== void 0 && utils_default.global !== null ? utils_default.global : globalThis;
2349
+ const { ReadableStream, TextEncoder } = globalObject;
2350
+ env = utils_default.merge.call({ skipUndefined: true }, {
2351
+ Request: globalObject.Request,
2352
+ Response: globalObject.Response
2353
+ }, env);
2354
+ const { fetch: envFetch, Request, Response } = env;
2355
+ const isFetchSupported = envFetch ? isFunction(envFetch) : typeof fetch === "function";
2356
+ const isRequestSupported = isFunction(Request);
2357
+ const isResponseSupported = isFunction(Response);
2358
+ if (!isFetchSupported) return false;
2359
+ const isReadableStreamSupported = isFetchSupported && isFunction(ReadableStream);
2360
+ const encodeText = isFetchSupported && (typeof TextEncoder === "function" ? ((encoder) => (str) => encoder.encode(str))(new TextEncoder()) : async (str) => new Uint8Array(await new Request(str).arrayBuffer()));
2361
+ const supportsRequestStream = isRequestSupported && isReadableStreamSupported && test(() => {
2362
+ let duplexAccessed = false;
2363
+ const request = new Request(platform_default.origin, {
2364
+ body: new ReadableStream(),
2365
+ method: "POST",
2366
+ get duplex() {
2367
+ duplexAccessed = true;
2368
+ return "half";
2369
+ }
2370
+ });
2371
+ const hasContentType = request.headers.has("Content-Type");
2372
+ if (request.body != null) request.body.cancel();
2373
+ return duplexAccessed && !hasContentType;
2374
+ });
2375
+ const supportsResponseStream = isResponseSupported && isReadableStreamSupported && test(() => utils_default.isReadableStream(new Response("").body));
2376
+ const resolvers = { stream: supportsResponseStream && ((res) => res.body) };
2377
+ isFetchSupported && [
2378
+ "text",
2379
+ "arrayBuffer",
2380
+ "blob",
2381
+ "formData",
2382
+ "stream"
2383
+ ].forEach((type) => {
2384
+ !resolvers[type] && (resolvers[type] = (res, config) => {
2385
+ let method = res && res[type];
2386
+ if (method) return method.call(res);
2387
+ throw new AxiosError$1(`Response type '${type}' is not supported`, AxiosError$1.ERR_NOT_SUPPORT, config);
2388
+ });
2389
+ });
2390
+ const getBodyLength = async (body) => {
2391
+ if (body == null) return 0;
2392
+ if (utils_default.isBlob(body)) return body.size;
2393
+ if (utils_default.isSpecCompliantForm(body)) return (await new Request(platform_default.origin, {
2394
+ method: "POST",
2395
+ body
2396
+ }).arrayBuffer()).byteLength;
2397
+ if (utils_default.isArrayBufferView(body) || utils_default.isArrayBuffer(body)) return body.byteLength;
2398
+ if (utils_default.isURLSearchParams(body)) body = body + "";
2399
+ if (utils_default.isString(body)) return (await encodeText(body)).byteLength;
2400
+ };
2401
+ const resolveBodyLength = async (headers, body) => {
2402
+ const length = utils_default.toFiniteNumber(headers.getContentLength());
2403
+ return length == null ? getBodyLength(body) : length;
2404
+ };
2405
+ return async (config) => {
2406
+ let { url, method, data, signal, cancelToken, timeout, onDownloadProgress, onUploadProgress, responseType, headers, withCredentials = "same-origin", fetchOptions, maxContentLength, maxBodyLength } = resolveConfig_default(config);
2407
+ const hasMaxContentLength = utils_default.isNumber(maxContentLength) && maxContentLength > -1;
2408
+ const hasMaxBodyLength = utils_default.isNumber(maxBodyLength) && maxBodyLength > -1;
2409
+ let _fetch = envFetch || fetch;
2410
+ responseType = responseType ? (responseType + "").toLowerCase() : "text";
2411
+ let composedSignal = composeSignals([signal, cancelToken && cancelToken.toAbortSignal()], timeout);
2412
+ let request = null;
2413
+ const unsubscribe = composedSignal && composedSignal.unsubscribe && (() => {
2414
+ composedSignal.unsubscribe();
2415
+ });
2416
+ let requestContentLength;
2417
+ try {
2418
+ if (hasMaxContentLength && typeof url === "string" && url.startsWith("data:")) {
2419
+ if (estimateDataURLDecodedBytes(url) > maxContentLength) throw new AxiosError$1("maxContentLength size of " + maxContentLength + " exceeded", AxiosError$1.ERR_BAD_RESPONSE, config, request);
2420
+ }
2421
+ if (hasMaxBodyLength && method !== "get" && method !== "head") {
2422
+ const outboundLength = await resolveBodyLength(headers, data);
2423
+ if (typeof outboundLength === "number" && isFinite(outboundLength) && outboundLength > maxBodyLength) throw new AxiosError$1("Request body larger than maxBodyLength limit", AxiosError$1.ERR_BAD_REQUEST, config, request);
2424
+ }
2425
+ if (onUploadProgress && supportsRequestStream && method !== "get" && method !== "head" && (requestContentLength = await resolveBodyLength(headers, data)) !== 0) {
2426
+ let _request = new Request(url, {
2427
+ method: "POST",
2428
+ body: data,
2429
+ duplex: "half"
2430
+ });
2431
+ let contentTypeHeader;
2432
+ if (utils_default.isFormData(data) && (contentTypeHeader = _request.headers.get("content-type"))) headers.setContentType(contentTypeHeader);
2433
+ if (_request.body) {
2434
+ const [onProgress, flush] = progressEventDecorator(requestContentLength, progressEventReducer(asyncDecorator(onUploadProgress)));
2435
+ data = trackStream(_request.body, DEFAULT_CHUNK_SIZE, onProgress, flush);
2436
+ }
2437
+ }
2438
+ if (!utils_default.isString(withCredentials)) withCredentials = withCredentials ? "include" : "omit";
2439
+ const isCredentialsSupported = isRequestSupported && "credentials" in Request.prototype;
2440
+ if (utils_default.isFormData(data)) {
2441
+ const contentType = headers.getContentType();
2442
+ if (contentType && /^multipart\/form-data/i.test(contentType) && !/boundary=/i.test(contentType)) headers.delete("content-type");
2443
+ }
2444
+ headers.set("User-Agent", "axios/" + VERSION$1, false);
2445
+ const resolvedOptions = {
2446
+ ...fetchOptions,
2447
+ signal: composedSignal,
2448
+ method: method.toUpperCase(),
2449
+ headers: toByteStringHeaderObject(headers.normalize()),
2450
+ body: data,
2451
+ duplex: "half",
2452
+ credentials: isCredentialsSupported ? withCredentials : void 0
2453
+ };
2454
+ request = isRequestSupported && new Request(url, resolvedOptions);
2455
+ let response = await (isRequestSupported ? _fetch(request, fetchOptions) : _fetch(url, resolvedOptions));
2456
+ if (hasMaxContentLength) {
2457
+ const declaredLength = utils_default.toFiniteNumber(response.headers.get("content-length"));
2458
+ if (declaredLength != null && declaredLength > maxContentLength) throw new AxiosError$1("maxContentLength size of " + maxContentLength + " exceeded", AxiosError$1.ERR_BAD_RESPONSE, config, request);
2459
+ }
2460
+ const isStreamResponse = supportsResponseStream && (responseType === "stream" || responseType === "response");
2461
+ if (supportsResponseStream && response.body && (onDownloadProgress || hasMaxContentLength || isStreamResponse && unsubscribe)) {
2462
+ const options = {};
2463
+ [
2464
+ "status",
2465
+ "statusText",
2466
+ "headers"
2467
+ ].forEach((prop) => {
2468
+ options[prop] = response[prop];
2469
+ });
2470
+ const responseContentLength = utils_default.toFiniteNumber(response.headers.get("content-length"));
2471
+ const [onProgress, flush] = onDownloadProgress && progressEventDecorator(responseContentLength, progressEventReducer(asyncDecorator(onDownloadProgress), true)) || [];
2472
+ let bytesRead = 0;
2473
+ const onChunkProgress = (loadedBytes) => {
2474
+ if (hasMaxContentLength) {
2475
+ bytesRead = loadedBytes;
2476
+ if (bytesRead > maxContentLength) throw new AxiosError$1("maxContentLength size of " + maxContentLength + " exceeded", AxiosError$1.ERR_BAD_RESPONSE, config, request);
2477
+ }
2478
+ onProgress && onProgress(loadedBytes);
2479
+ };
2480
+ response = new Response(trackStream(response.body, DEFAULT_CHUNK_SIZE, onChunkProgress, () => {
2481
+ flush && flush();
2482
+ unsubscribe && unsubscribe();
2483
+ }), options);
2484
+ }
2485
+ responseType = responseType || "text";
2486
+ let responseData = await resolvers[utils_default.findKey(resolvers, responseType) || "text"](response, config);
2487
+ if (hasMaxContentLength && !supportsResponseStream && !isStreamResponse) {
2488
+ let materializedSize;
2489
+ if (responseData != null) {
2490
+ if (typeof responseData.byteLength === "number") materializedSize = responseData.byteLength;
2491
+ else if (typeof responseData.size === "number") materializedSize = responseData.size;
2492
+ else if (typeof responseData === "string") materializedSize = typeof TextEncoder === "function" ? new TextEncoder().encode(responseData).byteLength : responseData.length;
2493
+ }
2494
+ if (typeof materializedSize === "number" && materializedSize > maxContentLength) throw new AxiosError$1("maxContentLength size of " + maxContentLength + " exceeded", AxiosError$1.ERR_BAD_RESPONSE, config, request);
2495
+ }
2496
+ !isStreamResponse && unsubscribe && unsubscribe();
2497
+ return await new Promise((resolve, reject) => {
2498
+ settle(resolve, reject, {
2499
+ data: responseData,
2500
+ headers: AxiosHeaders$1.from(response.headers),
2501
+ status: response.status,
2502
+ statusText: response.statusText,
2503
+ config,
2504
+ request
2505
+ });
2506
+ });
2507
+ } catch (err) {
2508
+ unsubscribe && unsubscribe();
2509
+ if (composedSignal && composedSignal.aborted && composedSignal.reason instanceof AxiosError$1) {
2510
+ const canceledError = composedSignal.reason;
2511
+ canceledError.config = config;
2512
+ request && (canceledError.request = request);
2513
+ err !== canceledError && (canceledError.cause = err);
2514
+ throw canceledError;
2515
+ }
2516
+ if (err && err.name === "TypeError" && /Load failed|fetch/i.test(err.message)) throw Object.assign(new AxiosError$1("Network Error", AxiosError$1.ERR_NETWORK, config, request, err && err.response), { cause: err.cause || err });
2517
+ throw AxiosError$1.from(err, err && err.code, config, request, err && err.response);
2518
+ }
2519
+ };
2520
+ };
2521
+ var seedCache = /* @__PURE__ */ new Map();
2522
+ var getFetch = (config) => {
2523
+ let env = config && config.env || {};
2524
+ const { fetch, Request, Response } = env;
2525
+ const seeds = [
2526
+ Request,
2527
+ Response,
2528
+ fetch
2529
+ ];
2530
+ let i = seeds.length, seed, target, map = seedCache;
2531
+ while (i--) {
2532
+ seed = seeds[i];
2533
+ target = map.get(seed);
2534
+ target === void 0 && map.set(seed, target = i ? /* @__PURE__ */ new Map() : factory(env));
2535
+ map = target;
2536
+ }
2537
+ return target;
2538
+ };
2539
+ getFetch();
2540
+ //#endregion
2541
+ //#region node_modules/axios/lib/adapters/adapters.js
2542
+ /**
2543
+ * Known adapters mapping.
2544
+ * Provides environment-specific adapters for Axios:
2545
+ * - `http` for Node.js
2546
+ * - `xhr` for browsers
2547
+ * - `fetch` for fetch API-based requests
2548
+ *
2549
+ * @type {Object<string, Function|Object>}
2550
+ */
2551
+ var knownAdapters = {
2552
+ http: null,
2553
+ xhr: xhr_default,
2554
+ fetch: { get: getFetch }
2555
+ };
2556
+ utils_default.forEach(knownAdapters, (fn, value) => {
2557
+ if (fn) {
2558
+ try {
2559
+ Object.defineProperty(fn, "name", {
2560
+ __proto__: null,
2561
+ value
2562
+ });
2563
+ } catch (e) {}
2564
+ Object.defineProperty(fn, "adapterName", {
2565
+ __proto__: null,
2566
+ value
2567
+ });
2568
+ }
2569
+ });
2570
+ /**
2571
+ * Render a rejection reason string for unknown or unsupported adapters
2572
+ *
2573
+ * @param {string} reason
2574
+ * @returns {string}
2575
+ */
2576
+ var renderReason = (reason) => `- ${reason}`;
2577
+ /**
2578
+ * Check if the adapter is resolved (function, null, or false)
2579
+ *
2580
+ * @param {Function|null|false} adapter
2581
+ * @returns {boolean}
2582
+ */
2583
+ var isResolvedHandle = (adapter) => utils_default.isFunction(adapter) || adapter === null || adapter === false;
2584
+ /**
2585
+ * Get the first suitable adapter from the provided list.
2586
+ * Tries each adapter in order until a supported one is found.
2587
+ * Throws an AxiosError if no adapter is suitable.
2588
+ *
2589
+ * @param {Array<string|Function>|string|Function} adapters - Adapter(s) by name or function.
2590
+ * @param {Object} config - Axios request configuration
2591
+ * @throws {AxiosError} If no suitable adapter is available
2592
+ * @returns {Function} The resolved adapter function
2593
+ */
2594
+ function getAdapter$1(adapters, config) {
2595
+ adapters = utils_default.isArray(adapters) ? adapters : [adapters];
2596
+ const { length } = adapters;
2597
+ let nameOrAdapter;
2598
+ let adapter;
2599
+ const rejectedReasons = {};
2600
+ for (let i = 0; i < length; i++) {
2601
+ nameOrAdapter = adapters[i];
2602
+ let id;
2603
+ adapter = nameOrAdapter;
2604
+ if (!isResolvedHandle(nameOrAdapter)) {
2605
+ adapter = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()];
2606
+ if (adapter === void 0) throw new AxiosError$1(`Unknown adapter '${id}'`);
2607
+ }
2608
+ if (adapter && (utils_default.isFunction(adapter) || (adapter = adapter.get(config)))) break;
2609
+ rejectedReasons[id || "#" + i] = adapter;
2610
+ }
2611
+ if (!adapter) {
2612
+ const reasons = Object.entries(rejectedReasons).map(([id, state]) => `adapter ${id} ` + (state === false ? "is not supported by the environment" : "is not available in the build"));
2613
+ throw new AxiosError$1(`There is no suitable adapter to dispatch the request ` + (length ? reasons.length > 1 ? "since :\n" + reasons.map(renderReason).join("\n") : " " + renderReason(reasons[0]) : "as no adapter specified"), "ERR_NOT_SUPPORT");
2614
+ }
2615
+ return adapter;
2616
+ }
2617
+ /**
2618
+ * Exports Axios adapters and utility to resolve an adapter
2619
+ */
2620
+ var adapters_default = {
2621
+ /**
2622
+ * Resolve an adapter from a list of adapter names or functions.
2623
+ * @type {Function}
2624
+ */
2625
+ getAdapter: getAdapter$1,
2626
+ /**
2627
+ * Exposes all known adapters
2628
+ * @type {Object<string, Function|Object>}
2629
+ */
2630
+ adapters: knownAdapters
2631
+ };
2632
+ //#endregion
2633
+ //#region node_modules/axios/lib/core/dispatchRequest.js
2634
+ /**
2635
+ * Throws a `CanceledError` if cancellation has been requested.
2636
+ *
2637
+ * @param {Object} config The config that is to be used for the request
2638
+ *
2639
+ * @returns {void}
2640
+ */
2641
+ function throwIfCancellationRequested(config) {
2642
+ if (config.cancelToken) config.cancelToken.throwIfRequested();
2643
+ if (config.signal && config.signal.aborted) throw new CanceledError$1(null, config);
2644
+ }
2645
+ /**
2646
+ * Dispatch a request to the server using the configured adapter.
2647
+ *
2648
+ * @param {object} config The config that is to be used for the request
2649
+ *
2650
+ * @returns {Promise} The Promise to be fulfilled
2651
+ */
2652
+ function dispatchRequest(config) {
2653
+ throwIfCancellationRequested(config);
2654
+ config.headers = AxiosHeaders$1.from(config.headers);
2655
+ config.data = transformData.call(config, config.transformRequest);
2656
+ if ([
2657
+ "post",
2658
+ "put",
2659
+ "patch"
2660
+ ].indexOf(config.method) !== -1) config.headers.setContentType("application/x-www-form-urlencoded", false);
2661
+ return adapters_default.getAdapter(config.adapter || defaults.adapter, config)(config).then(function onAdapterResolution(response) {
2662
+ throwIfCancellationRequested(config);
2663
+ config.response = response;
2664
+ try {
2665
+ response.data = transformData.call(config, config.transformResponse, response);
2666
+ } finally {
2667
+ delete config.response;
2668
+ }
2669
+ response.headers = AxiosHeaders$1.from(response.headers);
2670
+ return response;
2671
+ }, function onAdapterRejection(reason) {
2672
+ if (!isCancel$1(reason)) {
2673
+ throwIfCancellationRequested(config);
2674
+ if (reason && reason.response) {
2675
+ config.response = reason.response;
2676
+ try {
2677
+ reason.response.data = transformData.call(config, config.transformResponse, reason.response);
2678
+ } finally {
2679
+ delete config.response;
2680
+ }
2681
+ reason.response.headers = AxiosHeaders$1.from(reason.response.headers);
2682
+ }
2683
+ }
2684
+ return Promise.reject(reason);
2685
+ });
2686
+ }
2687
+ //#endregion
2688
+ //#region node_modules/axios/lib/helpers/validator.js
2689
+ var validators$1 = {};
2690
+ [
2691
+ "object",
2692
+ "boolean",
2693
+ "number",
2694
+ "function",
2695
+ "string",
2696
+ "symbol"
2697
+ ].forEach((type, i) => {
2698
+ validators$1[type] = function validator(thing) {
2699
+ return typeof thing === type || "a" + (i < 1 ? "n " : " ") + type;
2700
+ };
2701
+ });
2702
+ var deprecatedWarnings = {};
2703
+ /**
2704
+ * Transitional option validator
2705
+ *
2706
+ * @param {function|boolean?} validator - set to false if the transitional option has been removed
2707
+ * @param {string?} version - deprecated version / removed since version
2708
+ * @param {string?} message - some message with additional info
2709
+ *
2710
+ * @returns {function}
2711
+ */
2712
+ validators$1.transitional = function transitional(validator, version, message) {
2713
+ function formatMessage(opt, desc) {
2714
+ return "[Axios v" + VERSION$1 + "] Transitional option '" + opt + "'" + desc + (message ? ". " + message : "");
2715
+ }
2716
+ return (value, opt, opts) => {
2717
+ if (validator === false) throw new AxiosError$1(formatMessage(opt, " has been removed" + (version ? " in " + version : "")), AxiosError$1.ERR_DEPRECATED);
2718
+ if (version && !deprecatedWarnings[opt]) {
2719
+ deprecatedWarnings[opt] = true;
2720
+ console.warn(formatMessage(opt, " has been deprecated since v" + version + " and will be removed in the near future"));
2721
+ }
2722
+ return validator ? validator(value, opt, opts) : true;
2723
+ };
2724
+ };
2725
+ validators$1.spelling = function spelling(correctSpelling) {
2726
+ return (value, opt) => {
2727
+ console.warn(`${opt} is likely a misspelling of ${correctSpelling}`);
2728
+ return true;
2729
+ };
2730
+ };
2731
+ /**
2732
+ * Assert object's properties type
2733
+ *
2734
+ * @param {object} options
2735
+ * @param {object} schema
2736
+ * @param {boolean?} allowUnknown
2737
+ *
2738
+ * @returns {object}
2739
+ */
2740
+ function assertOptions(options, schema, allowUnknown) {
2741
+ if (typeof options !== "object") throw new AxiosError$1("options must be an object", AxiosError$1.ERR_BAD_OPTION_VALUE);
2742
+ const keys = Object.keys(options);
2743
+ let i = keys.length;
2744
+ while (i-- > 0) {
2745
+ const opt = keys[i];
2746
+ const validator = Object.prototype.hasOwnProperty.call(schema, opt) ? schema[opt] : void 0;
2747
+ if (validator) {
2748
+ const value = options[opt];
2749
+ const result = value === void 0 || validator(value, opt, options);
2750
+ if (result !== true) throw new AxiosError$1("option " + opt + " must be " + result, AxiosError$1.ERR_BAD_OPTION_VALUE);
2751
+ continue;
2752
+ }
2753
+ if (allowUnknown !== true) throw new AxiosError$1("Unknown option " + opt, AxiosError$1.ERR_BAD_OPTION);
2754
+ }
2755
+ }
2756
+ var validator_default = {
2757
+ assertOptions,
2758
+ validators: validators$1
2759
+ };
2760
+ //#endregion
2761
+ //#region node_modules/axios/lib/core/Axios.js
2762
+ var validators = validator_default.validators;
2763
+ /**
2764
+ * Create a new instance of Axios
2765
+ *
2766
+ * @param {Object} instanceConfig The default config for the instance
2767
+ *
2768
+ * @return {Axios} A new instance of Axios
2769
+ */
2770
+ var Axios$1 = class {
2771
+ constructor(instanceConfig) {
2772
+ this.defaults = instanceConfig || {};
2773
+ this.interceptors = {
2774
+ request: new InterceptorManager(),
2775
+ response: new InterceptorManager()
2776
+ };
2777
+ }
2778
+ /**
2779
+ * Dispatch a request
2780
+ *
2781
+ * @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)
2782
+ * @param {?Object} config
2783
+ *
2784
+ * @returns {Promise} The Promise to be fulfilled
2785
+ */
2786
+ async request(configOrUrl, config) {
2787
+ try {
2788
+ return await this._request(configOrUrl, config);
2789
+ } catch (err) {
2790
+ if (err instanceof Error) {
2791
+ let dummy = {};
2792
+ Error.captureStackTrace ? Error.captureStackTrace(dummy) : dummy = /* @__PURE__ */ new Error();
2793
+ const stack = (() => {
2794
+ if (!dummy.stack) return "";
2795
+ const firstNewlineIndex = dummy.stack.indexOf("\n");
2796
+ return firstNewlineIndex === -1 ? "" : dummy.stack.slice(firstNewlineIndex + 1);
2797
+ })();
2798
+ try {
2799
+ if (!err.stack) err.stack = stack;
2800
+ else if (stack) {
2801
+ const firstNewlineIndex = stack.indexOf("\n");
2802
+ const secondNewlineIndex = firstNewlineIndex === -1 ? -1 : stack.indexOf("\n", firstNewlineIndex + 1);
2803
+ const stackWithoutTwoTopLines = secondNewlineIndex === -1 ? "" : stack.slice(secondNewlineIndex + 1);
2804
+ if (!String(err.stack).endsWith(stackWithoutTwoTopLines)) err.stack += "\n" + stack;
2805
+ }
2806
+ } catch (e) {}
2807
+ }
2808
+ throw err;
2809
+ }
2810
+ }
2811
+ _request(configOrUrl, config) {
2812
+ if (typeof configOrUrl === "string") {
2813
+ config = config || {};
2814
+ config.url = configOrUrl;
2815
+ } else config = configOrUrl || {};
2816
+ config = mergeConfig$1(this.defaults, config);
2817
+ const { transitional, paramsSerializer, headers } = config;
2818
+ if (transitional !== void 0) validator_default.assertOptions(transitional, {
2819
+ silentJSONParsing: validators.transitional(validators.boolean),
2820
+ forcedJSONParsing: validators.transitional(validators.boolean),
2821
+ clarifyTimeoutError: validators.transitional(validators.boolean),
2822
+ legacyInterceptorReqResOrdering: validators.transitional(validators.boolean)
2823
+ }, false);
2824
+ if (paramsSerializer != null) if (utils_default.isFunction(paramsSerializer)) config.paramsSerializer = { serialize: paramsSerializer };
2825
+ else validator_default.assertOptions(paramsSerializer, {
2826
+ encode: validators.function,
2827
+ serialize: validators.function
2828
+ }, true);
2829
+ if (config.allowAbsoluteUrls !== void 0) {} else if (this.defaults.allowAbsoluteUrls !== void 0) config.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls;
2830
+ else config.allowAbsoluteUrls = true;
2831
+ validator_default.assertOptions(config, {
2832
+ baseUrl: validators.spelling("baseURL"),
2833
+ withXsrfToken: validators.spelling("withXSRFToken")
2834
+ }, true);
2835
+ config.method = (config.method || this.defaults.method || "get").toLowerCase();
2836
+ let contextHeaders = headers && utils_default.merge(headers.common, headers[config.method]);
2837
+ headers && utils_default.forEach([
2838
+ "delete",
2839
+ "get",
2840
+ "head",
2841
+ "post",
2842
+ "put",
2843
+ "patch",
2844
+ "query",
2845
+ "common"
2846
+ ], (method) => {
2847
+ delete headers[method];
2848
+ });
2849
+ config.headers = AxiosHeaders$1.concat(contextHeaders, headers);
2850
+ const requestInterceptorChain = [];
2851
+ let synchronousRequestInterceptors = true;
2852
+ this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {
2853
+ if (typeof interceptor.runWhen === "function" && interceptor.runWhen(config) === false) return;
2854
+ synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;
2855
+ const transitional = config.transitional || transitional_default;
2856
+ if (transitional && transitional.legacyInterceptorReqResOrdering) requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);
2857
+ else requestInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);
2858
+ });
2859
+ const responseInterceptorChain = [];
2860
+ this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {
2861
+ responseInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);
2862
+ });
2863
+ let promise;
2864
+ let i = 0;
2865
+ let len;
2866
+ if (!synchronousRequestInterceptors) {
2867
+ const chain = [dispatchRequest.bind(this), void 0];
2868
+ chain.unshift(...requestInterceptorChain);
2869
+ chain.push(...responseInterceptorChain);
2870
+ len = chain.length;
2871
+ promise = Promise.resolve(config);
2872
+ while (i < len) promise = promise.then(chain[i++], chain[i++]);
2873
+ return promise;
2874
+ }
2875
+ len = requestInterceptorChain.length;
2876
+ let newConfig = config;
2877
+ while (i < len) {
2878
+ const onFulfilled = requestInterceptorChain[i++];
2879
+ const onRejected = requestInterceptorChain[i++];
2880
+ try {
2881
+ newConfig = onFulfilled(newConfig);
2882
+ } catch (error) {
2883
+ onRejected.call(this, error);
2884
+ break;
2885
+ }
2886
+ }
2887
+ try {
2888
+ promise = dispatchRequest.call(this, newConfig);
2889
+ } catch (error) {
2890
+ return Promise.reject(error);
2891
+ }
2892
+ i = 0;
2893
+ len = responseInterceptorChain.length;
2894
+ while (i < len) promise = promise.then(responseInterceptorChain[i++], responseInterceptorChain[i++]);
2895
+ return promise;
2896
+ }
2897
+ getUri(config) {
2898
+ config = mergeConfig$1(this.defaults, config);
2899
+ return buildURL(buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls), config.params, config.paramsSerializer);
2900
+ }
2901
+ };
2902
+ utils_default.forEach([
2903
+ "delete",
2904
+ "get",
2905
+ "head",
2906
+ "options"
2907
+ ], function forEachMethodNoData(method) {
2908
+ Axios$1.prototype[method] = function(url, config) {
2909
+ return this.request(mergeConfig$1(config || {}, {
2910
+ method,
2911
+ url,
2912
+ data: (config || {}).data
2913
+ }));
2914
+ };
2915
+ });
2916
+ utils_default.forEach([
2917
+ "post",
2918
+ "put",
2919
+ "patch",
2920
+ "query"
2921
+ ], function forEachMethodWithData(method) {
2922
+ function generateHTTPMethod(isForm) {
2923
+ return function httpMethod(url, data, config) {
2924
+ return this.request(mergeConfig$1(config || {}, {
2925
+ method,
2926
+ headers: isForm ? { "Content-Type": "multipart/form-data" } : {},
2927
+ url,
2928
+ data
2929
+ }));
2930
+ };
2931
+ }
2932
+ Axios$1.prototype[method] = generateHTTPMethod();
2933
+ if (method !== "query") Axios$1.prototype[method + "Form"] = generateHTTPMethod(true);
2934
+ });
2935
+ //#endregion
2936
+ //#region node_modules/axios/lib/cancel/CancelToken.js
2937
+ /**
2938
+ * A `CancelToken` is an object that can be used to request cancellation of an operation.
2939
+ *
2940
+ * @param {Function} executor The executor function.
2941
+ *
2942
+ * @returns {CancelToken}
2943
+ */
2944
+ var CancelToken$1 = class CancelToken$1 {
2945
+ constructor(executor) {
2946
+ if (typeof executor !== "function") throw new TypeError("executor must be a function.");
2947
+ let resolvePromise;
2948
+ this.promise = new Promise(function promiseExecutor(resolve) {
2949
+ resolvePromise = resolve;
2950
+ });
2951
+ const token = this;
2952
+ this.promise.then((cancel) => {
2953
+ if (!token._listeners) return;
2954
+ let i = token._listeners.length;
2955
+ while (i-- > 0) token._listeners[i](cancel);
2956
+ token._listeners = null;
2957
+ });
2958
+ this.promise.then = (onfulfilled) => {
2959
+ let _resolve;
2960
+ const promise = new Promise((resolve) => {
2961
+ token.subscribe(resolve);
2962
+ _resolve = resolve;
2963
+ }).then(onfulfilled);
2964
+ promise.cancel = function reject() {
2965
+ token.unsubscribe(_resolve);
2966
+ };
2967
+ return promise;
2968
+ };
2969
+ executor(function cancel(message, config, request) {
2970
+ if (token.reason) return;
2971
+ token.reason = new CanceledError$1(message, config, request);
2972
+ resolvePromise(token.reason);
2973
+ });
2974
+ }
2975
+ /**
2976
+ * Throws a `CanceledError` if cancellation has been requested.
2977
+ */
2978
+ throwIfRequested() {
2979
+ if (this.reason) throw this.reason;
2980
+ }
2981
+ /**
2982
+ * Subscribe to the cancel signal
2983
+ */
2984
+ subscribe(listener) {
2985
+ if (this.reason) {
2986
+ listener(this.reason);
2987
+ return;
2988
+ }
2989
+ if (this._listeners) this._listeners.push(listener);
2990
+ else this._listeners = [listener];
2991
+ }
2992
+ /**
2993
+ * Unsubscribe from the cancel signal
2994
+ */
2995
+ unsubscribe(listener) {
2996
+ if (!this._listeners) return;
2997
+ const index = this._listeners.indexOf(listener);
2998
+ if (index !== -1) this._listeners.splice(index, 1);
2999
+ }
3000
+ toAbortSignal() {
3001
+ const controller = new AbortController();
3002
+ const abort = (err) => {
3003
+ controller.abort(err);
3004
+ };
3005
+ this.subscribe(abort);
3006
+ controller.signal.unsubscribe = () => this.unsubscribe(abort);
3007
+ return controller.signal;
3008
+ }
3009
+ /**
3010
+ * Returns an object that contains a new `CancelToken` and a function that, when called,
3011
+ * cancels the `CancelToken`.
3012
+ */
3013
+ static source() {
3014
+ let cancel;
3015
+ return {
3016
+ token: new CancelToken$1(function executor(c) {
3017
+ cancel = c;
3018
+ }),
3019
+ cancel
3020
+ };
3021
+ }
3022
+ };
3023
+ //#endregion
3024
+ //#region node_modules/axios/lib/helpers/spread.js
3025
+ /**
3026
+ * Syntactic sugar for invoking a function and expanding an array for arguments.
3027
+ *
3028
+ * Common use case would be to use `Function.prototype.apply`.
3029
+ *
3030
+ * ```js
3031
+ * function f(x, y, z) {}
3032
+ * const args = [1, 2, 3];
3033
+ * f.apply(null, args);
3034
+ * ```
3035
+ *
3036
+ * With `spread` this example can be re-written.
3037
+ *
3038
+ * ```js
3039
+ * spread(function(x, y, z) {})([1, 2, 3]);
3040
+ * ```
3041
+ *
3042
+ * @param {Function} callback
3043
+ *
3044
+ * @returns {Function}
3045
+ */
3046
+ function spread$1(callback) {
3047
+ return function wrap(arr) {
3048
+ return callback.apply(null, arr);
3049
+ };
3050
+ }
3051
+ //#endregion
3052
+ //#region node_modules/axios/lib/helpers/isAxiosError.js
3053
+ /**
3054
+ * Determines whether the payload is an error thrown by Axios
3055
+ *
3056
+ * @param {*} payload The value to test
3057
+ *
3058
+ * @returns {boolean} True if the payload is an error thrown by Axios, otherwise false
3059
+ */
3060
+ function isAxiosError$1(payload) {
3061
+ return utils_default.isObject(payload) && payload.isAxiosError === true;
3062
+ }
3063
+ //#endregion
3064
+ //#region node_modules/axios/lib/helpers/HttpStatusCode.js
3065
+ var HttpStatusCode$1 = {
3066
+ Continue: 100,
3067
+ SwitchingProtocols: 101,
3068
+ Processing: 102,
3069
+ EarlyHints: 103,
3070
+ Ok: 200,
3071
+ Created: 201,
3072
+ Accepted: 202,
3073
+ NonAuthoritativeInformation: 203,
3074
+ NoContent: 204,
3075
+ ResetContent: 205,
3076
+ PartialContent: 206,
3077
+ MultiStatus: 207,
3078
+ AlreadyReported: 208,
3079
+ ImUsed: 226,
3080
+ MultipleChoices: 300,
3081
+ MovedPermanently: 301,
3082
+ Found: 302,
3083
+ SeeOther: 303,
3084
+ NotModified: 304,
3085
+ UseProxy: 305,
3086
+ Unused: 306,
3087
+ TemporaryRedirect: 307,
3088
+ PermanentRedirect: 308,
3089
+ BadRequest: 400,
3090
+ Unauthorized: 401,
3091
+ PaymentRequired: 402,
3092
+ Forbidden: 403,
3093
+ NotFound: 404,
3094
+ MethodNotAllowed: 405,
3095
+ NotAcceptable: 406,
3096
+ ProxyAuthenticationRequired: 407,
3097
+ RequestTimeout: 408,
3098
+ Conflict: 409,
3099
+ Gone: 410,
3100
+ LengthRequired: 411,
3101
+ PreconditionFailed: 412,
3102
+ PayloadTooLarge: 413,
3103
+ UriTooLong: 414,
3104
+ UnsupportedMediaType: 415,
3105
+ RangeNotSatisfiable: 416,
3106
+ ExpectationFailed: 417,
3107
+ ImATeapot: 418,
3108
+ MisdirectedRequest: 421,
3109
+ UnprocessableEntity: 422,
3110
+ Locked: 423,
3111
+ FailedDependency: 424,
3112
+ TooEarly: 425,
3113
+ UpgradeRequired: 426,
3114
+ PreconditionRequired: 428,
3115
+ TooManyRequests: 429,
3116
+ RequestHeaderFieldsTooLarge: 431,
3117
+ UnavailableForLegalReasons: 451,
3118
+ InternalServerError: 500,
3119
+ NotImplemented: 501,
3120
+ BadGateway: 502,
3121
+ ServiceUnavailable: 503,
3122
+ GatewayTimeout: 504,
3123
+ HttpVersionNotSupported: 505,
3124
+ VariantAlsoNegotiates: 506,
3125
+ InsufficientStorage: 507,
3126
+ LoopDetected: 508,
3127
+ NotExtended: 510,
3128
+ NetworkAuthenticationRequired: 511,
3129
+ WebServerIsDown: 521,
3130
+ ConnectionTimedOut: 522,
3131
+ OriginIsUnreachable: 523,
3132
+ TimeoutOccurred: 524,
3133
+ SslHandshakeFailed: 525,
3134
+ InvalidSslCertificate: 526
3135
+ };
3136
+ Object.entries(HttpStatusCode$1).forEach(([key, value]) => {
3137
+ HttpStatusCode$1[value] = key;
3138
+ });
3139
+ //#endregion
3140
+ //#region node_modules/axios/lib/axios.js
3141
+ /**
3142
+ * Create an instance of Axios
3143
+ *
3144
+ * @param {Object} defaultConfig The default config for the instance
3145
+ *
3146
+ * @returns {Axios} A new instance of Axios
3147
+ */
3148
+ function createInstance(defaultConfig) {
3149
+ const context = new Axios$1(defaultConfig);
3150
+ const instance = bind(Axios$1.prototype.request, context);
3151
+ utils_default.extend(instance, Axios$1.prototype, context, { allOwnKeys: true });
3152
+ utils_default.extend(instance, context, null, { allOwnKeys: true });
3153
+ instance.create = function create(instanceConfig) {
3154
+ return createInstance(mergeConfig$1(defaultConfig, instanceConfig));
3155
+ };
3156
+ return instance;
3157
+ }
3158
+ var axios = createInstance(defaults);
3159
+ axios.Axios = Axios$1;
3160
+ axios.CanceledError = CanceledError$1;
3161
+ axios.CancelToken = CancelToken$1;
3162
+ axios.isCancel = isCancel$1;
3163
+ axios.VERSION = VERSION$1;
3164
+ axios.toFormData = toFormData$1;
3165
+ axios.AxiosError = AxiosError$1;
3166
+ axios.Cancel = axios.CanceledError;
3167
+ axios.all = function all(promises) {
3168
+ return Promise.all(promises);
3169
+ };
3170
+ axios.spread = spread$1;
3171
+ axios.isAxiosError = isAxiosError$1;
3172
+ axios.mergeConfig = mergeConfig$1;
3173
+ axios.AxiosHeaders = AxiosHeaders$1;
3174
+ axios.formToJSON = (thing) => formDataToJSON(utils_default.isHTMLForm(thing) ? new FormData(thing) : thing);
3175
+ axios.getAdapter = adapters_default.getAdapter;
3176
+ axios.HttpStatusCode = HttpStatusCode$1;
3177
+ axios.default = axios;
3178
+ //#endregion
3179
+ //#region node_modules/axios/index.js
3180
+ var { Axios, AxiosError, CanceledError, isCancel, CancelToken, VERSION, all, Cancel, isAxiosError, spread, toFormData, AxiosHeaders, HttpStatusCode, formToJSON, getAdapter, mergeConfig, create } = axios;
3181
+ //#endregion
3182
+ export { Axios, AxiosError, AxiosHeaders, Cancel, CancelToken, CanceledError, HttpStatusCode, VERSION, all, create, axios as default, formToJSON, getAdapter, isAxiosError, isCancel, mergeConfig, spread, toFormData };
3183
+
3184
+ //# sourceMappingURL=axios.js.map