@fecp/mobile 1.0.25 → 1.0.27

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 (137) hide show
  1. package/es/mobile.css +7 -0
  2. package/es/node_modules/.pnpm/axios@1.8.4/node_modules/axios/index.mjs +38 -0
  3. package/es/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/adapters/adapters.mjs +60 -0
  4. package/es/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/adapters/fetch.mjs +174 -0
  5. package/es/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/adapters/xhr.mjs +138 -0
  6. package/es/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/axios.mjs +50 -0
  7. package/es/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/cancel/CancelToken.mjs +99 -0
  8. package/es/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/cancel/CanceledError.mjs +12 -0
  9. package/es/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/cancel/isCancel.mjs +6 -0
  10. package/es/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/core/Axios.mjs +181 -0
  11. package/es/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/core/AxiosError.mjs +76 -0
  12. package/es/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/core/AxiosHeaders.mjs +223 -0
  13. package/es/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/core/InterceptorManager.mjs +65 -0
  14. package/es/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/core/buildFullPath.mjs +12 -0
  15. package/es/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/core/dispatchRequest.mjs +52 -0
  16. package/es/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/core/mergeConfig.mjs +83 -0
  17. package/es/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/core/settle.mjs +18 -0
  18. package/es/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/core/transformData.mjs +17 -0
  19. package/es/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/defaults/index.mjs +116 -0
  20. package/es/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/defaults/transitional.mjs +8 -0
  21. package/es/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/env/data.mjs +4 -0
  22. package/es/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/helpers/AxiosURLSearchParams.mjs +34 -0
  23. package/es/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/helpers/HttpStatusCode.mjs +71 -0
  24. package/es/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/helpers/bind.mjs +8 -0
  25. package/es/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/helpers/buildURL.mjs +34 -0
  26. package/es/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/helpers/combineURLs.mjs +6 -0
  27. package/es/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/helpers/composeSignals.mjs +39 -0
  28. package/es/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/helpers/cookies.mjs +36 -0
  29. package/es/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/helpers/formDataToJSON.mjs +54 -0
  30. package/es/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/helpers/isAbsoluteURL.mjs +6 -0
  31. package/es/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/helpers/isAxiosError.mjs +7 -0
  32. package/es/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/helpers/isURLSameOrigin.mjs +11 -0
  33. package/es/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/helpers/null.mjs +4 -0
  34. package/es/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/helpers/parseHeaders.mjs +47 -0
  35. package/es/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/helpers/parseProtocol.mjs +7 -0
  36. package/es/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/helpers/progressEventReducer.mjs +41 -0
  37. package/es/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/helpers/resolveConfig.mjs +42 -0
  38. package/es/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/helpers/speedometer.mjs +36 -0
  39. package/es/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/helpers/spread.mjs +8 -0
  40. package/es/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/helpers/throttle.mjs +35 -0
  41. package/es/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/helpers/toFormData.mjs +114 -0
  42. package/es/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/helpers/toURLEncodedForm.mjs +17 -0
  43. package/es/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/helpers/trackStream.mjs +80 -0
  44. package/es/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/helpers/validator.mjs +67 -0
  45. package/es/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/platform/browser/classes/Blob.mjs +4 -0
  46. package/es/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/platform/browser/classes/FormData.mjs +4 -0
  47. package/es/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/platform/browser/classes/URLSearchParams.mjs +5 -0
  48. package/es/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/platform/browser/index.mjs +15 -0
  49. package/es/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/platform/common/utils.mjs +15 -0
  50. package/es/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/platform/index.mjs +9 -0
  51. package/es/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/utils.mjs +364 -0
  52. package/es/node_modules/.pnpm/vant@4.9.17_vue@3.5.13_typescript@5.7.3_/node_modules/vant/es/composables/use-tab-status.mjs +4 -2
  53. package/es/node_modules/.pnpm/vant@4.9.17_vue@3.5.13_typescript@5.7.3_/node_modules/vant/es/list/List.mjs +145 -0
  54. package/es/node_modules/.pnpm/vant@4.9.17_vue@3.5.13_typescript@5.7.3_/node_modules/vant/es/list/index.mjs +8 -0
  55. package/es/packages/mobile/index.mjs +2 -0
  56. package/es/packages/mobile/src/axios/config.mjs +105 -0
  57. package/es/packages/mobile/src/axios/index.mjs +11 -0
  58. package/es/packages/mobile/src/components/all.mjs +2 -0
  59. package/es/packages/mobile/src/components/dataDisplay/list/List.vue.mjs +100 -0
  60. package/es/packages/mobile/src/components/dataDisplay/list/index.mjs +7 -0
  61. package/es/packages/mobile/src/components/form/field/Field.vue.mjs +6 -2
  62. package/es/packages/mobile/src/components/form/fieldCalendarPicker/FieldCalendarPicker.vue.mjs +22 -7
  63. package/es/packages/mobile/src/components/form/fieldCascaderPicker/fieldCascaderPicker.vue.mjs +27 -9
  64. package/es/packages/mobile/src/components/form/fieldCheckbox/FieldCheckbox.vue.mjs +14 -3
  65. package/es/packages/mobile/src/components/form/fieldDatePicker/FieldDatePicker.vue.mjs +24 -9
  66. package/es/packages/mobile/src/components/form/fieldPicker/FieldPicker.vue.mjs +23 -8
  67. package/es/packages/mobile/src/components/form/fieldTimePicker/FieldTimePicker.vue.mjs +24 -9
  68. package/es/packages/mobile/src/utils/dataSourceUtil.mjs +71 -0
  69. package/lib/mobile.css +7 -0
  70. package/lib/node_modules/.pnpm/axios@1.8.4/node_modules/axios/index.js +38 -0
  71. package/lib/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/adapters/adapters.js +60 -0
  72. package/lib/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/adapters/fetch.js +174 -0
  73. package/lib/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/adapters/xhr.js +138 -0
  74. package/lib/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/axios.js +50 -0
  75. package/lib/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/cancel/CancelToken.js +99 -0
  76. package/lib/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/cancel/CanceledError.js +12 -0
  77. package/lib/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/cancel/isCancel.js +6 -0
  78. package/lib/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/core/Axios.js +181 -0
  79. package/lib/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/core/AxiosError.js +76 -0
  80. package/lib/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/core/AxiosHeaders.js +223 -0
  81. package/lib/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/core/InterceptorManager.js +65 -0
  82. package/lib/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/core/buildFullPath.js +12 -0
  83. package/lib/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/core/dispatchRequest.js +52 -0
  84. package/lib/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/core/mergeConfig.js +83 -0
  85. package/lib/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/core/settle.js +18 -0
  86. package/lib/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/core/transformData.js +17 -0
  87. package/lib/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/defaults/index.js +116 -0
  88. package/lib/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/defaults/transitional.js +8 -0
  89. package/lib/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/env/data.js +4 -0
  90. package/lib/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +34 -0
  91. package/lib/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/helpers/HttpStatusCode.js +71 -0
  92. package/lib/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/helpers/bind.js +8 -0
  93. package/lib/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/helpers/buildURL.js +34 -0
  94. package/lib/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/helpers/combineURLs.js +6 -0
  95. package/lib/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/helpers/composeSignals.js +39 -0
  96. package/lib/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/helpers/cookies.js +36 -0
  97. package/lib/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/helpers/formDataToJSON.js +54 -0
  98. package/lib/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/helpers/isAbsoluteURL.js +6 -0
  99. package/lib/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/helpers/isAxiosError.js +7 -0
  100. package/lib/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/helpers/isURLSameOrigin.js +11 -0
  101. package/lib/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/helpers/null.js +4 -0
  102. package/lib/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/helpers/parseHeaders.js +47 -0
  103. package/lib/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/helpers/parseProtocol.js +7 -0
  104. package/lib/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/helpers/progressEventReducer.js +41 -0
  105. package/lib/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/helpers/resolveConfig.js +42 -0
  106. package/lib/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/helpers/speedometer.js +36 -0
  107. package/lib/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/helpers/spread.js +8 -0
  108. package/lib/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/helpers/throttle.js +35 -0
  109. package/lib/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/helpers/toFormData.js +114 -0
  110. package/lib/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/helpers/toURLEncodedForm.js +17 -0
  111. package/lib/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/helpers/trackStream.js +80 -0
  112. package/lib/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/helpers/validator.js +67 -0
  113. package/lib/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/platform/browser/classes/Blob.js +4 -0
  114. package/lib/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/platform/browser/classes/FormData.js +4 -0
  115. package/lib/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js +5 -0
  116. package/lib/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/platform/browser/index.js +15 -0
  117. package/lib/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/platform/common/utils.js +15 -0
  118. package/lib/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/platform/index.js +9 -0
  119. package/lib/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/utils.js +364 -0
  120. package/lib/node_modules/.pnpm/vant@4.9.17_vue@3.5.13_typescript@5.7.3_/node_modules/vant/es/composables/use-tab-status.js +3 -1
  121. package/lib/node_modules/.pnpm/vant@4.9.17_vue@3.5.13_typescript@5.7.3_/node_modules/vant/es/list/List.js +145 -0
  122. package/lib/node_modules/.pnpm/vant@4.9.17_vue@3.5.13_typescript@5.7.3_/node_modules/vant/es/list/index.js +7 -0
  123. package/lib/packages/mobile/index.js +92 -90
  124. package/lib/packages/mobile/src/axios/config.js +105 -0
  125. package/lib/packages/mobile/src/axios/index.js +11 -0
  126. package/lib/packages/mobile/src/components/all.js +92 -90
  127. package/lib/packages/mobile/src/components/dataDisplay/list/List.vue.js +100 -0
  128. package/lib/packages/mobile/src/components/dataDisplay/list/index.js +7 -0
  129. package/lib/packages/mobile/src/components/form/field/Field.vue.js +5 -1
  130. package/lib/packages/mobile/src/components/form/fieldCalendarPicker/FieldCalendarPicker.vue.js +21 -6
  131. package/lib/packages/mobile/src/components/form/fieldCascaderPicker/fieldCascaderPicker.vue.js +26 -8
  132. package/lib/packages/mobile/src/components/form/fieldCheckbox/FieldCheckbox.vue.js +13 -2
  133. package/lib/packages/mobile/src/components/form/fieldDatePicker/FieldDatePicker.vue.js +23 -8
  134. package/lib/packages/mobile/src/components/form/fieldPicker/FieldPicker.vue.js +22 -7
  135. package/lib/packages/mobile/src/components/form/fieldTimePicker/FieldTimePicker.vue.js +23 -8
  136. package/lib/packages/mobile/src/utils/dataSourceUtil.js +71 -0
  137. package/package.json +1 -1
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
+ const AxiosError = require("./AxiosError.js");
4
+ function settle(resolve, reject, response) {
5
+ const validateStatus = response.config.validateStatus;
6
+ if (!response.status || !validateStatus || validateStatus(response.status)) {
7
+ resolve(response);
8
+ } else {
9
+ reject(new AxiosError.default(
10
+ "Request failed with status code " + response.status,
11
+ [AxiosError.default.ERR_BAD_REQUEST, AxiosError.default.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4],
12
+ response.config,
13
+ response.request,
14
+ response
15
+ ));
16
+ }
17
+ }
18
+ exports.default = settle;
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
+ const utils = require("../utils.js");
4
+ const index = require("../defaults/index.js");
5
+ const AxiosHeaders = require("./AxiosHeaders.js");
6
+ function transformData(fns, response) {
7
+ const config = this || index.default;
8
+ const context = response || config;
9
+ const headers = AxiosHeaders.default.from(context.headers);
10
+ let data = context.data;
11
+ utils.default.forEach(fns, function transform(fn) {
12
+ data = fn.call(config, data, headers.normalize(), response ? response.status : void 0);
13
+ });
14
+ headers.normalize();
15
+ return data;
16
+ }
17
+ exports.default = transformData;
@@ -0,0 +1,116 @@
1
+ "use strict";
2
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
+ const utils = require("../utils.js");
4
+ const AxiosError = require("../core/AxiosError.js");
5
+ const transitional = require("./transitional.js");
6
+ const toFormData = require("../helpers/toFormData.js");
7
+ const toURLEncodedForm = require("../helpers/toURLEncodedForm.js");
8
+ const index = require("../platform/index.js");
9
+ const formDataToJSON = require("../helpers/formDataToJSON.js");
10
+ function stringifySafely(rawValue, parser, encoder) {
11
+ if (utils.default.isString(rawValue)) {
12
+ try {
13
+ (parser || JSON.parse)(rawValue);
14
+ return utils.default.trim(rawValue);
15
+ } catch (e) {
16
+ if (e.name !== "SyntaxError") {
17
+ throw e;
18
+ }
19
+ }
20
+ }
21
+ return (encoder || JSON.stringify)(rawValue);
22
+ }
23
+ const defaults = {
24
+ transitional: transitional.default,
25
+ adapter: ["xhr", "http", "fetch"],
26
+ transformRequest: [function transformRequest(data, headers) {
27
+ const contentType = headers.getContentType() || "";
28
+ const hasJSONContentType = contentType.indexOf("application/json") > -1;
29
+ const isObjectPayload = utils.default.isObject(data);
30
+ if (isObjectPayload && utils.default.isHTMLForm(data)) {
31
+ data = new FormData(data);
32
+ }
33
+ const isFormData = utils.default.isFormData(data);
34
+ if (isFormData) {
35
+ return hasJSONContentType ? JSON.stringify(formDataToJSON.default(data)) : data;
36
+ }
37
+ 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)) {
38
+ return data;
39
+ }
40
+ if (utils.default.isArrayBufferView(data)) {
41
+ return data.buffer;
42
+ }
43
+ if (utils.default.isURLSearchParams(data)) {
44
+ headers.setContentType("application/x-www-form-urlencoded;charset=utf-8", false);
45
+ return data.toString();
46
+ }
47
+ let isFileList;
48
+ if (isObjectPayload) {
49
+ if (contentType.indexOf("application/x-www-form-urlencoded") > -1) {
50
+ return toURLEncodedForm.default(data, this.formSerializer).toString();
51
+ }
52
+ if ((isFileList = utils.default.isFileList(data)) || contentType.indexOf("multipart/form-data") > -1) {
53
+ const _FormData = this.env && this.env.FormData;
54
+ return toFormData.default(
55
+ isFileList ? { "files[]": data } : data,
56
+ _FormData && new _FormData(),
57
+ this.formSerializer
58
+ );
59
+ }
60
+ }
61
+ if (isObjectPayload || hasJSONContentType) {
62
+ headers.setContentType("application/json", false);
63
+ return stringifySafely(data);
64
+ }
65
+ return data;
66
+ }],
67
+ transformResponse: [function transformResponse(data) {
68
+ const transitional2 = this.transitional || defaults.transitional;
69
+ const forcedJSONParsing = transitional2 && transitional2.forcedJSONParsing;
70
+ const JSONRequested = this.responseType === "json";
71
+ if (utils.default.isResponse(data) || utils.default.isReadableStream(data)) {
72
+ return data;
73
+ }
74
+ if (data && utils.default.isString(data) && (forcedJSONParsing && !this.responseType || JSONRequested)) {
75
+ const silentJSONParsing = transitional2 && transitional2.silentJSONParsing;
76
+ const strictJSONParsing = !silentJSONParsing && JSONRequested;
77
+ try {
78
+ return JSON.parse(data);
79
+ } catch (e) {
80
+ if (strictJSONParsing) {
81
+ if (e.name === "SyntaxError") {
82
+ throw AxiosError.default.from(e, AxiosError.default.ERR_BAD_RESPONSE, this, null, this.response);
83
+ }
84
+ throw e;
85
+ }
86
+ }
87
+ }
88
+ return data;
89
+ }],
90
+ /**
91
+ * A timeout in milliseconds to abort a request. If set to 0 (default) a
92
+ * timeout is not created.
93
+ */
94
+ timeout: 0,
95
+ xsrfCookieName: "XSRF-TOKEN",
96
+ xsrfHeaderName: "X-XSRF-TOKEN",
97
+ maxContentLength: -1,
98
+ maxBodyLength: -1,
99
+ env: {
100
+ FormData: index.default.classes.FormData,
101
+ Blob: index.default.classes.Blob
102
+ },
103
+ validateStatus: function validateStatus(status) {
104
+ return status >= 200 && status < 300;
105
+ },
106
+ headers: {
107
+ common: {
108
+ "Accept": "application/json, text/plain, */*",
109
+ "Content-Type": void 0
110
+ }
111
+ }
112
+ };
113
+ utils.default.forEach(["delete", "get", "head", "post", "put", "patch"], (method) => {
114
+ defaults.headers[method] = {};
115
+ });
116
+ exports.default = defaults;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
+ const transitionalDefaults = {
4
+ silentJSONParsing: true,
5
+ forcedJSONParsing: true,
6
+ clarifyTimeoutError: false
7
+ };
8
+ exports.default = transitionalDefaults;
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const VERSION = "1.8.4";
4
+ exports.VERSION = VERSION;
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
+ const toFormData = require("./toFormData.js");
4
+ function encode(str) {
5
+ const charMap = {
6
+ "!": "%21",
7
+ "'": "%27",
8
+ "(": "%28",
9
+ ")": "%29",
10
+ "~": "%7E",
11
+ "%20": "+",
12
+ "%00": "\0"
13
+ };
14
+ return encodeURIComponent(str).replace(/[!'()~]|%20|%00/g, function replacer(match) {
15
+ return charMap[match];
16
+ });
17
+ }
18
+ function AxiosURLSearchParams(params, options) {
19
+ this._pairs = [];
20
+ params && toFormData.default(params, this, options);
21
+ }
22
+ const prototype = AxiosURLSearchParams.prototype;
23
+ prototype.append = function append(name, value) {
24
+ this._pairs.push([name, value]);
25
+ };
26
+ prototype.toString = function toString(encoder) {
27
+ const _encode = encoder ? function(value) {
28
+ return encoder.call(this, value, encode);
29
+ } : encode;
30
+ return this._pairs.map(function each(pair) {
31
+ return _encode(pair[0]) + "=" + _encode(pair[1]);
32
+ }, "").join("&");
33
+ };
34
+ exports.default = AxiosURLSearchParams;
@@ -0,0 +1,71 @@
1
+ "use strict";
2
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
+ const HttpStatusCode = {
4
+ Continue: 100,
5
+ SwitchingProtocols: 101,
6
+ Processing: 102,
7
+ EarlyHints: 103,
8
+ Ok: 200,
9
+ Created: 201,
10
+ Accepted: 202,
11
+ NonAuthoritativeInformation: 203,
12
+ NoContent: 204,
13
+ ResetContent: 205,
14
+ PartialContent: 206,
15
+ MultiStatus: 207,
16
+ AlreadyReported: 208,
17
+ ImUsed: 226,
18
+ MultipleChoices: 300,
19
+ MovedPermanently: 301,
20
+ Found: 302,
21
+ SeeOther: 303,
22
+ NotModified: 304,
23
+ UseProxy: 305,
24
+ Unused: 306,
25
+ TemporaryRedirect: 307,
26
+ PermanentRedirect: 308,
27
+ BadRequest: 400,
28
+ Unauthorized: 401,
29
+ PaymentRequired: 402,
30
+ Forbidden: 403,
31
+ NotFound: 404,
32
+ MethodNotAllowed: 405,
33
+ NotAcceptable: 406,
34
+ ProxyAuthenticationRequired: 407,
35
+ RequestTimeout: 408,
36
+ Conflict: 409,
37
+ Gone: 410,
38
+ LengthRequired: 411,
39
+ PreconditionFailed: 412,
40
+ PayloadTooLarge: 413,
41
+ UriTooLong: 414,
42
+ UnsupportedMediaType: 415,
43
+ RangeNotSatisfiable: 416,
44
+ ExpectationFailed: 417,
45
+ ImATeapot: 418,
46
+ MisdirectedRequest: 421,
47
+ UnprocessableEntity: 422,
48
+ Locked: 423,
49
+ FailedDependency: 424,
50
+ TooEarly: 425,
51
+ UpgradeRequired: 426,
52
+ PreconditionRequired: 428,
53
+ TooManyRequests: 429,
54
+ RequestHeaderFieldsTooLarge: 431,
55
+ UnavailableForLegalReasons: 451,
56
+ InternalServerError: 500,
57
+ NotImplemented: 501,
58
+ BadGateway: 502,
59
+ ServiceUnavailable: 503,
60
+ GatewayTimeout: 504,
61
+ HttpVersionNotSupported: 505,
62
+ VariantAlsoNegotiates: 506,
63
+ InsufficientStorage: 507,
64
+ LoopDetected: 508,
65
+ NotExtended: 510,
66
+ NetworkAuthenticationRequired: 511
67
+ };
68
+ Object.entries(HttpStatusCode).forEach(([key, value]) => {
69
+ HttpStatusCode[value] = key;
70
+ });
71
+ exports.default = HttpStatusCode;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
+ function bind(fn, thisArg) {
4
+ return function wrap() {
5
+ return fn.apply(thisArg, arguments);
6
+ };
7
+ }
8
+ exports.default = bind;
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
+ const utils = require("../utils.js");
4
+ const AxiosURLSearchParams = require("./AxiosURLSearchParams.js");
5
+ function encode(val) {
6
+ return encodeURIComponent(val).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
7
+ }
8
+ function buildURL(url, params, options) {
9
+ if (!params) {
10
+ return url;
11
+ }
12
+ const _encode = options && options.encode || encode;
13
+ if (utils.default.isFunction(options)) {
14
+ options = {
15
+ serialize: options
16
+ };
17
+ }
18
+ const serializeFn = options && options.serialize;
19
+ let serializedParams;
20
+ if (serializeFn) {
21
+ serializedParams = serializeFn(params, options);
22
+ } else {
23
+ serializedParams = utils.default.isURLSearchParams(params) ? params.toString() : new AxiosURLSearchParams.default(params, options).toString(_encode);
24
+ }
25
+ if (serializedParams) {
26
+ const hashmarkIndex = url.indexOf("#");
27
+ if (hashmarkIndex !== -1) {
28
+ url = url.slice(0, hashmarkIndex);
29
+ }
30
+ url += (url.indexOf("?") === -1 ? "?" : "&") + serializedParams;
31
+ }
32
+ return url;
33
+ }
34
+ exports.default = buildURL;
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
+ function combineURLs(baseURL, relativeURL) {
4
+ return relativeURL ? baseURL.replace(/\/?\/$/, "") + "/" + relativeURL.replace(/^\/+/, "") : baseURL;
5
+ }
6
+ exports.default = combineURLs;
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
+ const CanceledError = require("../cancel/CanceledError.js");
4
+ const AxiosError = require("../core/AxiosError.js");
5
+ const utils = require("../utils.js");
6
+ const composeSignals = (signals, timeout) => {
7
+ const { length } = signals = signals ? signals.filter(Boolean) : [];
8
+ if (timeout || length) {
9
+ let controller = new AbortController();
10
+ let aborted;
11
+ const onabort = function(reason) {
12
+ if (!aborted) {
13
+ aborted = true;
14
+ unsubscribe();
15
+ const err = reason instanceof Error ? reason : this.reason;
16
+ controller.abort(err instanceof AxiosError.default ? err : new CanceledError.default(err instanceof Error ? err.message : err));
17
+ }
18
+ };
19
+ let timer = timeout && setTimeout(() => {
20
+ timer = null;
21
+ onabort(new AxiosError.default(`timeout ${timeout} of ms exceeded`, AxiosError.default.ETIMEDOUT));
22
+ }, timeout);
23
+ const unsubscribe = () => {
24
+ if (signals) {
25
+ timer && clearTimeout(timer);
26
+ timer = null;
27
+ signals.forEach((signal2) => {
28
+ signal2.unsubscribe ? signal2.unsubscribe(onabort) : signal2.removeEventListener("abort", onabort);
29
+ });
30
+ signals = null;
31
+ }
32
+ };
33
+ signals.forEach((signal2) => signal2.addEventListener("abort", onabort));
34
+ const { signal } = controller;
35
+ signal.unsubscribe = () => utils.default.asap(unsubscribe);
36
+ return signal;
37
+ }
38
+ };
39
+ exports.default = composeSignals;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
+ const utils = require("../utils.js");
4
+ const index = require("../platform/index.js");
5
+ const cookies = index.default.hasStandardBrowserEnv ? (
6
+ // Standard browser envs support document.cookie
7
+ {
8
+ write(name, value, expires, path, domain, secure) {
9
+ const cookie = [name + "=" + encodeURIComponent(value)];
10
+ utils.default.isNumber(expires) && cookie.push("expires=" + new Date(expires).toGMTString());
11
+ utils.default.isString(path) && cookie.push("path=" + path);
12
+ utils.default.isString(domain) && cookie.push("domain=" + domain);
13
+ secure === true && cookie.push("secure");
14
+ document.cookie = cookie.join("; ");
15
+ },
16
+ read(name) {
17
+ const match = document.cookie.match(new RegExp("(^|;\\s*)(" + name + ")=([^;]*)"));
18
+ return match ? decodeURIComponent(match[3]) : null;
19
+ },
20
+ remove(name) {
21
+ this.write(name, "", Date.now() - 864e5);
22
+ }
23
+ }
24
+ ) : (
25
+ // Non-standard browser env (web workers, react-native) lack needed support.
26
+ {
27
+ write() {
28
+ },
29
+ read() {
30
+ return null;
31
+ },
32
+ remove() {
33
+ }
34
+ }
35
+ );
36
+ exports.default = cookies;
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
+ const utils = require("../utils.js");
4
+ function parsePropPath(name) {
5
+ return utils.default.matchAll(/\w+|\[(\w*)]/g, name).map((match) => {
6
+ return match[0] === "[]" ? "" : match[1] || match[0];
7
+ });
8
+ }
9
+ function arrayToObject(arr) {
10
+ const obj = {};
11
+ const keys = Object.keys(arr);
12
+ let i;
13
+ const len = keys.length;
14
+ let key;
15
+ for (i = 0; i < len; i++) {
16
+ key = keys[i];
17
+ obj[key] = arr[key];
18
+ }
19
+ return obj;
20
+ }
21
+ function formDataToJSON(formData) {
22
+ function buildPath(path, value, target, index) {
23
+ let name = path[index++];
24
+ if (name === "__proto__") return true;
25
+ const isNumericKey = Number.isFinite(+name);
26
+ const isLast = index >= path.length;
27
+ name = !name && utils.default.isArray(target) ? target.length : name;
28
+ if (isLast) {
29
+ if (utils.default.hasOwnProp(target, name)) {
30
+ target[name] = [target[name], value];
31
+ } else {
32
+ target[name] = value;
33
+ }
34
+ return !isNumericKey;
35
+ }
36
+ if (!target[name] || !utils.default.isObject(target[name])) {
37
+ target[name] = [];
38
+ }
39
+ const result = buildPath(path, value, target[name], index);
40
+ if (result && utils.default.isArray(target[name])) {
41
+ target[name] = arrayToObject(target[name]);
42
+ }
43
+ return !isNumericKey;
44
+ }
45
+ if (utils.default.isFormData(formData) && utils.default.isFunction(formData.entries)) {
46
+ const obj = {};
47
+ utils.default.forEachEntry(formData, (name, value) => {
48
+ buildPath(parsePropPath(name), value, obj, 0);
49
+ });
50
+ return obj;
51
+ }
52
+ return null;
53
+ }
54
+ exports.default = formDataToJSON;
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
+ function isAbsoluteURL(url) {
4
+ return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url);
5
+ }
6
+ exports.default = isAbsoluteURL;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
+ const utils = require("../utils.js");
4
+ function isAxiosError(payload) {
5
+ return utils.default.isObject(payload) && payload.isAxiosError === true;
6
+ }
7
+ exports.default = isAxiosError;
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
+ const index = require("../platform/index.js");
4
+ const isURLSameOrigin = index.default.hasStandardBrowserEnv ? /* @__PURE__ */ ((origin, isMSIE) => (url) => {
5
+ url = new URL(url, index.default.origin);
6
+ return origin.protocol === url.protocol && origin.host === url.host && (isMSIE || origin.port === url.port);
7
+ })(
8
+ new URL(index.default.origin),
9
+ index.default.navigator && /(msie|trident)/i.test(index.default.navigator.userAgent)
10
+ ) : () => true;
11
+ exports.default = isURLSameOrigin;
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
+ const httpAdapter = null;
4
+ exports.default = httpAdapter;
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
+ const utils = require("../utils.js");
4
+ const ignoreDuplicateOf = utils.default.toObjectSet([
5
+ "age",
6
+ "authorization",
7
+ "content-length",
8
+ "content-type",
9
+ "etag",
10
+ "expires",
11
+ "from",
12
+ "host",
13
+ "if-modified-since",
14
+ "if-unmodified-since",
15
+ "last-modified",
16
+ "location",
17
+ "max-forwards",
18
+ "proxy-authorization",
19
+ "referer",
20
+ "retry-after",
21
+ "user-agent"
22
+ ]);
23
+ const parseHeaders = (rawHeaders) => {
24
+ const parsed = {};
25
+ let key;
26
+ let val;
27
+ let i;
28
+ rawHeaders && rawHeaders.split("\n").forEach(function parser(line) {
29
+ i = line.indexOf(":");
30
+ key = line.substring(0, i).trim().toLowerCase();
31
+ val = line.substring(i + 1).trim();
32
+ if (!key || parsed[key] && ignoreDuplicateOf[key]) {
33
+ return;
34
+ }
35
+ if (key === "set-cookie") {
36
+ if (parsed[key]) {
37
+ parsed[key].push(val);
38
+ } else {
39
+ parsed[key] = [val];
40
+ }
41
+ } else {
42
+ parsed[key] = parsed[key] ? parsed[key] + ", " + val : val;
43
+ }
44
+ });
45
+ return parsed;
46
+ };
47
+ exports.default = parseHeaders;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
+ function parseProtocol(url) {
4
+ const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url);
5
+ return match && match[1] || "";
6
+ }
7
+ exports.default = parseProtocol;
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const speedometer = require("./speedometer.js");
4
+ const throttle = require("./throttle.js");
5
+ const utils = require("../utils.js");
6
+ const progressEventReducer = (listener, isDownloadStream, freq = 3) => {
7
+ let bytesNotified = 0;
8
+ const _speedometer = speedometer.default(50, 250);
9
+ return throttle.default((e) => {
10
+ const loaded = e.loaded;
11
+ const total = e.lengthComputable ? e.total : void 0;
12
+ const progressBytes = loaded - bytesNotified;
13
+ const rate = _speedometer(progressBytes);
14
+ const inRange = loaded <= total;
15
+ bytesNotified = loaded;
16
+ const data = {
17
+ loaded,
18
+ total,
19
+ progress: total ? loaded / total : void 0,
20
+ bytes: progressBytes,
21
+ rate: rate ? rate : void 0,
22
+ estimated: rate && total && inRange ? (total - loaded) / rate : void 0,
23
+ event: e,
24
+ lengthComputable: total != null,
25
+ [isDownloadStream ? "download" : "upload"]: true
26
+ };
27
+ listener(data);
28
+ }, freq);
29
+ };
30
+ const progressEventDecorator = (total, throttled) => {
31
+ const lengthComputable = total != null;
32
+ return [(loaded) => throttled[0]({
33
+ lengthComputable,
34
+ total,
35
+ loaded
36
+ }), throttled[1]];
37
+ };
38
+ const asyncDecorator = (fn) => (...args) => utils.default.asap(() => fn(...args));
39
+ exports.asyncDecorator = asyncDecorator;
40
+ exports.progressEventDecorator = progressEventDecorator;
41
+ exports.progressEventReducer = progressEventReducer;
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
+ const index = require("../platform/index.js");
4
+ const utils = require("../utils.js");
5
+ const isURLSameOrigin = require("./isURLSameOrigin.js");
6
+ const cookies = require("./cookies.js");
7
+ const buildFullPath = require("../core/buildFullPath.js");
8
+ const mergeConfig = require("../core/mergeConfig.js");
9
+ const AxiosHeaders = require("../core/AxiosHeaders.js");
10
+ const buildURL = require("./buildURL.js");
11
+ const resolveConfig = (config) => {
12
+ const newConfig = mergeConfig.default({}, config);
13
+ let { data, withXSRFToken, xsrfHeaderName, xsrfCookieName, headers, auth } = newConfig;
14
+ newConfig.headers = headers = AxiosHeaders.default.from(headers);
15
+ newConfig.url = buildURL.default(buildFullPath.default(newConfig.baseURL, newConfig.url, newConfig.allowAbsoluteUrls), config.params, config.paramsSerializer);
16
+ if (auth) {
17
+ headers.set(
18
+ "Authorization",
19
+ "Basic " + btoa((auth.username || "") + ":" + (auth.password ? unescape(encodeURIComponent(auth.password)) : ""))
20
+ );
21
+ }
22
+ let contentType;
23
+ if (utils.default.isFormData(data)) {
24
+ if (index.default.hasStandardBrowserEnv || index.default.hasStandardBrowserWebWorkerEnv) {
25
+ headers.setContentType(void 0);
26
+ } else if ((contentType = headers.getContentType()) !== false) {
27
+ const [type, ...tokens] = contentType ? contentType.split(";").map((token) => token.trim()).filter(Boolean) : [];
28
+ headers.setContentType([type || "multipart/form-data", ...tokens].join("; "));
29
+ }
30
+ }
31
+ if (index.default.hasStandardBrowserEnv) {
32
+ withXSRFToken && utils.default.isFunction(withXSRFToken) && (withXSRFToken = withXSRFToken(newConfig));
33
+ if (withXSRFToken || withXSRFToken !== false && isURLSameOrigin.default(newConfig.url)) {
34
+ const xsrfValue = xsrfHeaderName && xsrfCookieName && cookies.default.read(xsrfCookieName);
35
+ if (xsrfValue) {
36
+ headers.set(xsrfHeaderName, xsrfValue);
37
+ }
38
+ }
39
+ }
40
+ return newConfig;
41
+ };
42
+ exports.default = resolveConfig;