yahee-components 0.0.18 → 0.0.20

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 (212) hide show
  1. package/es/_virtual/dayjs.min.js +4 -0
  2. package/es/annex-upload/annex-upload.vue.js +158 -0
  3. package/es/annex-upload/annex-upload.vue2.js +4 -0
  4. package/es/annex-upload/index.js +7 -0
  5. package/es/annex-upload/mimeType.js +822 -0
  6. package/es/annex-upload/style/index.css +7 -0
  7. package/es/api/server.js +29 -0
  8. package/es/api/tool.js +68 -0
  9. package/es/comprehensive-search/comprehensive-search.vue.js +165 -122
  10. package/es/copy/copy.vue.js +1 -1
  11. package/es/country-platform-shop-condition/country-platform-shop-condition.vue.js +218 -0
  12. package/es/country-platform-shop-condition/country-platform-shop-condition.vue2.js +4 -0
  13. package/es/country-platform-shop-condition/index.js +7 -0
  14. package/es/country-platform-shop-condition/style/index.css +48 -0
  15. package/es/drop-down-condition/drop-down-condition.vue.js +216 -0
  16. package/es/drop-down-condition/drop-down-condition.vue2.js +4 -0
  17. package/es/drop-down-condition/index.js +7 -0
  18. package/es/drop-down-condition/style/index.css +45 -0
  19. package/es/image-upload/image-upload.vue.js +177 -0
  20. package/es/image-upload/image-upload.vue2.js +4 -0
  21. package/es/image-upload/index.js +7 -0
  22. package/es/image-upload/style/index.css +33 -0
  23. package/es/index.js +26 -7
  24. package/es/installs.js +22 -4
  25. package/es/left-condition/index.js +7 -0
  26. package/es/left-condition/left-condition-sub.vue.js +95 -0
  27. package/es/left-condition/left-condition-sub.vue2.js +4 -0
  28. package/es/left-condition/left-condition.vue.js +216 -0
  29. package/es/left-condition/left-condition.vue2.js +4 -0
  30. package/es/left-condition/style/index.css +10 -0
  31. package/es/left-condition-enum/index.js +7 -0
  32. package/es/left-condition-enum/left-condition-enum.vue.js +80 -0
  33. package/es/left-condition-enum/left-condition-enum.vue2.js +4 -0
  34. package/es/left-condition-enum/style/index.css +10 -0
  35. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/index.js +38 -0
  36. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/adapters/adapters.js +53 -0
  37. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/adapters/fetch.js +141 -0
  38. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/adapters/xhr.js +71 -0
  39. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/axios.js +46 -0
  40. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/cancel/CancelToken.js +77 -0
  41. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/cancel/CanceledError.js +11 -0
  42. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/cancel/isCancel.js +6 -0
  43. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/Axios.js +133 -0
  44. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/AxiosError.js +54 -0
  45. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/AxiosHeaders.js +173 -0
  46. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/InterceptorManager.js +58 -0
  47. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/buildFullPath.js +8 -0
  48. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/dispatchRequest.js +31 -0
  49. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/mergeConfig.js +70 -0
  50. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/settle.js +14 -0
  51. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/transformData.js +13 -0
  52. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/defaults/index.js +89 -0
  53. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/defaults/transitional.js +8 -0
  54. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/env/data.js +4 -0
  55. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +33 -0
  56. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/HttpStatusCode.js +71 -0
  57. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/bind.js +8 -0
  58. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/buildURL.js +19 -0
  59. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/combineURLs.js +6 -0
  60. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/composeSignals.js +30 -0
  61. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/cookies.js +32 -0
  62. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/formDataToJSON.js +31 -0
  63. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/isAbsoluteURL.js +6 -0
  64. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/isAxiosError.js +7 -0
  65. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/isURLSameOrigin.js +37 -0
  66. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/null.js +4 -0
  67. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/parseHeaders.js +30 -0
  68. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/parseProtocol.js +7 -0
  69. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/progressEventReducer.js +35 -0
  70. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/resolveConfig.js +33 -0
  71. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/speedometer.js +19 -0
  72. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/spread.js +8 -0
  73. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/throttle.js +15 -0
  74. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/toFormData.js +83 -0
  75. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/toURLEncodedForm.js +13 -0
  76. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/trackStream.js +63 -0
  77. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/validator.js +51 -0
  78. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/platform/browser/classes/Blob.js +4 -0
  79. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/platform/browser/classes/FormData.js +4 -0
  80. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js +5 -0
  81. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/platform/browser/index.js +15 -0
  82. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/platform/common/utils.js +9 -0
  83. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/platform/index.js +9 -0
  84. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/utils.js +233 -0
  85. package/es/node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/dayjs.min.js +282 -0
  86. package/es/node_modules/{lodash → .pnpm/lodash@4.17.21/node_modules/lodash}/lodash.js +2 -2
  87. package/es/node_modules/.pnpm/v3-infinite-loading@1.3.2/node_modules/v3-infinite-loading/lib/v3-infinite-loading.es.js +120 -0
  88. package/es/operation-log/index.js +7 -0
  89. package/es/operation-log/operation-log-content.vue.js +100 -0
  90. package/es/operation-log/operation-log-content.vue2.js +4 -0
  91. package/es/operation-log/operation-log-dialog.vue.js +70 -0
  92. package/es/operation-log/operation-log-dialog.vue2.js +4 -0
  93. package/es/operation-log/operation-log-form.vue.js +181 -0
  94. package/es/operation-log/operation-log-form.vue2.js +4 -0
  95. package/es/operation-log/operation-log.vue.js +232 -0
  96. package/es/operation-log/operation-log.vue2.js +4 -0
  97. package/es/operation-log/style/index.css +220 -0
  98. package/es/packages/components/api/log/index.js +15 -0
  99. package/es/packages/components/api/log-server.js +50 -0
  100. package/es/packages/components/api/server.js +32 -0
  101. package/es/packages/components/api/tool.js +56 -0
  102. package/es/packages/components/api/upload-server.js +65 -0
  103. package/es/packages/components/assets/images/errorimg.png.js +4 -0
  104. package/es/packages/components/assets/images/excel.png.js +4 -0
  105. package/es/packages/components/assets/images/file-word.png.js +4 -0
  106. package/es/packages/components/assets/images/pdf.png.js +4 -0
  107. package/es/packages/components/assets/images/ppt.png.js +4 -0
  108. package/es/packages/components/assets/images/vue.svg.js +4 -0
  109. package/es/packages/components/hooks/useClipboard.js +30 -0
  110. package/es/packages/components/hooks/useImg.js +15 -0
  111. package/es/packages/components/hooks/useImgPath.js +14 -0
  112. package/es/packages/components/hooks/useImport.js +33 -0
  113. package/es/packages/components/hooks/useUpload.js +24 -0
  114. package/es/static/CommonObject.js +4 -0
  115. package/es/style.css +946 -0
  116. package/es/styles/custom.css +83 -0
  117. package/es/styles/globals.css +697 -0
  118. package/es/styles/index.css +787 -0
  119. package/es/styles/variables.css +32 -0
  120. package/es/utils/config.js +19 -0
  121. package/es/utils/const.js +19 -0
  122. package/es/utils/storage.js +52 -0
  123. package/es/utils/style.js +28 -0
  124. package/es/utils/translate.js +57 -0
  125. package/lib/annex-upload/style/index.css +7 -0
  126. package/lib/country-platform-shop-condition/style/index.css +48 -0
  127. package/lib/drop-down-condition/style/index.css +45 -0
  128. package/lib/image-upload/style/index.css +33 -0
  129. package/lib/left-condition/style/index.css +10 -0
  130. package/lib/left-condition-enum/style/index.css +10 -0
  131. package/lib/operation-log/style/index.css +220 -0
  132. package/lib/style.css +946 -0
  133. package/lib/styles/custom.css +83 -0
  134. package/lib/styles/globals.css +697 -0
  135. package/lib/styles/index.css +787 -0
  136. package/lib/styles/variables.css +32 -0
  137. package/package.json +10 -4
  138. package/types/hooks/useClipboard.d.ts +7 -0
  139. package/types/hooks/useImg.d.ts +10 -0
  140. package/types/hooks/useImgPath.d.ts +5 -0
  141. package/types/hooks/useImport.d.ts +11 -0
  142. package/types/hooks/useUpload.d.ts +12 -0
  143. package/types/index.d.ts +6 -204
  144. package/types/src/annex-upload/annex-upload.d.ts +30 -0
  145. package/types/src/annex-upload/annex-upload.vue.d.ts +443 -0
  146. package/types/src/annex-upload/index.d.ts +123 -0
  147. package/types/src/annex-upload/mimeType.d.ts +2 -0
  148. package/types/src/api/server.d.ts +6 -0
  149. package/types/src/api/tool.d.ts +6 -0
  150. package/types/src/api/types.d.ts +17 -0
  151. package/types/src/components.d.ts +10 -0
  152. package/types/src/comprehensive-search/comprehensive-search.d.ts +12 -0
  153. package/types/src/comprehensive-search/comprehensive-search.vue.d.ts +52 -0
  154. package/types/src/copy/copy.d.ts +12 -0
  155. package/types/src/copy/copy.vue.d.ts +21 -0
  156. package/types/src/copy/index.d.ts +32 -0
  157. package/types/src/country-platform-shop-condition/country-platform-shop-condition.d.ts +17 -0
  158. package/types/src/country-platform-shop-condition/country-platform-shop-condition.vue.d.ts +14 -0
  159. package/types/src/country-platform-shop-condition/index.d.ts +16 -0
  160. package/types/src/drop-down-condition/drop-down-condition.d.ts +6 -0
  161. package/types/src/drop-down-condition/drop-down-condition.vue.d.ts +40 -0
  162. package/types/src/drop-down-condition/index.d.ts +42 -0
  163. package/types/src/image-upload/image-upload.d.ts +26 -0
  164. package/types/src/image-upload/image-upload.vue.d.ts +43 -0
  165. package/types/src/image-upload/index.d.ts +94 -0
  166. package/types/src/index.d.ts +7 -0
  167. package/types/src/input/index.d.ts +16 -0
  168. package/types/src/input/input.d.ts +18 -0
  169. package/types/src/input/input.vue.d.ts +14 -0
  170. package/types/src/left-condition/index.d.ts +69 -0
  171. package/types/src/left-condition/left-condition-sub.vue.d.ts +47 -0
  172. package/types/src/left-condition/left-condition.d.ts +5 -0
  173. package/types/src/left-condition/left-condition.vue.d.ts +68 -0
  174. package/types/src/left-condition-enum/index.d.ts +162 -0
  175. package/types/src/left-condition-enum/left-condition-enum.d.ts +5 -0
  176. package/types/src/left-condition-enum/left-condition-enum.vue.d.ts +160 -0
  177. package/types/src/operation-log/index.d.ts +9 -0
  178. package/types/src/operation-log/operation-log-content.vue.d.ts +24 -0
  179. package/types/src/operation-log/operation-log-dialog.vue.d.ts +39 -0
  180. package/types/src/operation-log/operation-log-form.vue.d.ts +19 -0
  181. package/types/src/operation-log/operation-log.d.ts +11 -0
  182. package/types/src/operation-log/operation-log.vue.d.ts +6 -0
  183. package/types/src/static/CommonObject.d.ts +18 -0
  184. package/types/src/static/CommonVariables.d.ts +4 -0
  185. package/types/src/utils/config.d.ts +8 -0
  186. package/types/src/utils/const.d.ts +19 -0
  187. package/types/src/utils/functions.d.ts +1 -0
  188. package/types/src/utils/install.d.ts +8 -0
  189. package/types/src/utils/storage.d.ts +18 -0
  190. package/types/src/utils/style.d.ts +19 -0
  191. package/types/src/utils/to-kebab-case.d.ts +1 -0
  192. package/types/src/utils/translate.d.ts +5 -0
  193. package/types/src/utils/typescript.d.ts +5 -0
  194. package/es/hooks/useClipboard.js +0 -28
  195. package/lib/_virtual/_commonjsHelpers.js +0 -1
  196. package/lib/_virtual/lodash.js +0 -1
  197. package/lib/comprehensive-search/comprehensive-search.vue.js +0 -1
  198. package/lib/comprehensive-search/comprehensive-search.vue2.js +0 -1
  199. package/lib/comprehensive-search/index.js +0 -1
  200. package/lib/copy/copy.vue.js +0 -1
  201. package/lib/copy/copy.vue2.js +0 -1
  202. package/lib/copy/index.js +0 -1
  203. package/lib/hooks/useClipboard.js +0 -1
  204. package/lib/index.js +0 -1
  205. package/lib/input/index.js +0 -1
  206. package/lib/input/input.vue.js +0 -1
  207. package/lib/input/input.vue2.js +0 -1
  208. package/lib/installs.js +0 -1
  209. package/lib/node_modules/element-plus/es/locale/lang/zh-cn.js +0 -1
  210. package/lib/node_modules/lodash/lodash.js +0 -27
  211. package/lib/utils/install.js +0 -1
  212. /package/es/node_modules/{element-plus → .pnpm/element-plus@2.8.3_vue@3.5.12_typescript@5.6.2_/node_modules/element-plus}/es/locale/lang/zh-cn.js +0 -0
@@ -0,0 +1,30 @@
1
+ import a from "../cancel/CanceledError.js";
2
+ import s from "../core/AxiosError.js";
3
+ import m from "../utils.js";
4
+ const h = (e, t) => {
5
+ const { length: l } = e = e ? e.filter(Boolean) : [];
6
+ if (t || l) {
7
+ let u = new AbortController(), f;
8
+ const n = function(r) {
9
+ if (!f) {
10
+ f = !0, i();
11
+ const o = r instanceof Error ? r : this.reason;
12
+ u.abort(o instanceof s ? o : new a(o instanceof Error ? o.message : o));
13
+ }
14
+ };
15
+ let c = t && setTimeout(() => {
16
+ c = null, n(new s(`timeout ${t} of ms exceeded`, s.ETIMEDOUT));
17
+ }, t);
18
+ const i = () => {
19
+ e && (c && clearTimeout(c), c = null, e.forEach((r) => {
20
+ r.unsubscribe ? r.unsubscribe(n) : r.removeEventListener("abort", n);
21
+ }), e = null);
22
+ };
23
+ e.forEach((r) => r.addEventListener("abort", n));
24
+ const { signal: b } = u;
25
+ return b.unsubscribe = () => m.asap(i), b;
26
+ }
27
+ };
28
+ export {
29
+ h as default
30
+ };
@@ -0,0 +1,32 @@
1
+ import r from "../utils.js";
2
+ import c from "../platform/index.js";
3
+ const p = c.hasStandardBrowserEnv ? (
4
+ // Standard browser envs support document.cookie
5
+ {
6
+ write(e, t, n, i, s, u) {
7
+ const o = [e + "=" + encodeURIComponent(t)];
8
+ r.isNumber(n) && o.push("expires=" + new Date(n).toGMTString()), r.isString(i) && o.push("path=" + i), r.isString(s) && o.push("domain=" + s), u === !0 && o.push("secure"), document.cookie = o.join("; ");
9
+ },
10
+ read(e) {
11
+ const t = document.cookie.match(new RegExp("(^|;\\s*)(" + e + ")=([^;]*)"));
12
+ return t ? decodeURIComponent(t[3]) : null;
13
+ },
14
+ remove(e) {
15
+ this.write(e, "", Date.now() - 864e5);
16
+ }
17
+ }
18
+ ) : (
19
+ // Non-standard browser env (web workers, react-native) lack needed support.
20
+ {
21
+ write() {
22
+ },
23
+ read() {
24
+ return null;
25
+ },
26
+ remove() {
27
+ }
28
+ }
29
+ );
30
+ export {
31
+ p as default
32
+ };
@@ -0,0 +1,31 @@
1
+ import u from "../utils.js";
2
+ function f(e) {
3
+ return u.matchAll(/\w+|\[(\w*)]/g, e).map((o) => o[0] === "[]" ? "" : o[1] || o[0]);
4
+ }
5
+ function y(e) {
6
+ const o = {}, r = Object.keys(e);
7
+ let i;
8
+ const n = r.length;
9
+ let c;
10
+ for (i = 0; i < n; i++)
11
+ c = r[i], o[c] = e[c];
12
+ return o;
13
+ }
14
+ function m(e) {
15
+ function o(r, i, n, c) {
16
+ let s = r[c++];
17
+ if (s === "__proto__") return !0;
18
+ const t = Number.isFinite(+s), l = c >= r.length;
19
+ return s = !s && u.isArray(n) ? n.length : s, l ? (u.hasOwnProp(n, s) ? n[s] = [n[s], i] : n[s] = i, !t) : ((!n[s] || !u.isObject(n[s])) && (n[s] = []), o(r, i, n[s], c) && u.isArray(n[s]) && (n[s] = y(n[s])), !t);
20
+ }
21
+ if (u.isFormData(e) && u.isFunction(e.entries)) {
22
+ const r = {};
23
+ return u.forEachEntry(e, (i, n) => {
24
+ o(f(i), n, r, 0);
25
+ }), r;
26
+ }
27
+ return null;
28
+ }
29
+ export {
30
+ m as default
31
+ };
@@ -0,0 +1,6 @@
1
+ function e(t) {
2
+ return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);
3
+ }
4
+ export {
5
+ e as default
6
+ };
@@ -0,0 +1,7 @@
1
+ import i from "../utils.js";
2
+ function o(r) {
3
+ return i.isObject(r) && r.isAxiosError === !0;
4
+ }
5
+ export {
6
+ o as default
7
+ };
@@ -0,0 +1,37 @@
1
+ import c from "../utils.js";
2
+ import o from "../platform/index.js";
3
+ const f = o.hasStandardBrowserEnv ? (
4
+ // Standard browser envs have full support of the APIs needed to test
5
+ // whether the request URL is of the same origin as current location.
6
+ function() {
7
+ const n = o.navigator && /(msie|trident)/i.test(o.navigator.userAgent), t = document.createElement("a");
8
+ let e;
9
+ function a(s) {
10
+ let r = s;
11
+ return n && (t.setAttribute("href", r), r = t.href), t.setAttribute("href", r), {
12
+ href: t.href,
13
+ protocol: t.protocol ? t.protocol.replace(/:$/, "") : "",
14
+ host: t.host,
15
+ search: t.search ? t.search.replace(/^\?/, "") : "",
16
+ hash: t.hash ? t.hash.replace(/^#/, "") : "",
17
+ hostname: t.hostname,
18
+ port: t.port,
19
+ pathname: t.pathname.charAt(0) === "/" ? t.pathname : "/" + t.pathname
20
+ };
21
+ }
22
+ return e = a(window.location.href), function(r) {
23
+ const i = c.isString(r) ? a(r) : r;
24
+ return i.protocol === e.protocol && i.host === e.host;
25
+ };
26
+ }()
27
+ ) : (
28
+ // Non standard browser envs (web workers, react-native) lack needed support.
29
+ /* @__PURE__ */ function() {
30
+ return function() {
31
+ return !0;
32
+ };
33
+ }()
34
+ );
35
+ export {
36
+ f as default
37
+ };
@@ -0,0 +1,4 @@
1
+ const t = null;
2
+ export {
3
+ t as default
4
+ };
@@ -0,0 +1,30 @@
1
+ import n from "../utils.js";
2
+ const a = n.toObjectSet([
3
+ "age",
4
+ "authorization",
5
+ "content-length",
6
+ "content-type",
7
+ "etag",
8
+ "expires",
9
+ "from",
10
+ "host",
11
+ "if-modified-since",
12
+ "if-unmodified-since",
13
+ "last-modified",
14
+ "location",
15
+ "max-forwards",
16
+ "proxy-authorization",
17
+ "referer",
18
+ "retry-after",
19
+ "user-agent"
20
+ ]), u = (s) => {
21
+ const t = {};
22
+ let e, r, i;
23
+ return s && s.split(`
24
+ `).forEach(function(o) {
25
+ i = o.indexOf(":"), e = o.substring(0, i).trim().toLowerCase(), r = o.substring(i + 1).trim(), !(!e || t[e] && a[e]) && (e === "set-cookie" ? t[e] ? t[e].push(r) : t[e] = [r] : t[e] = t[e] ? t[e] + ", " + r : r);
26
+ }), t;
27
+ };
28
+ export {
29
+ u as default
30
+ };
@@ -0,0 +1,7 @@
1
+ function o(e) {
2
+ const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
3
+ return t && t[1] || "";
4
+ }
5
+ export {
6
+ o as default
7
+ };
@@ -0,0 +1,35 @@
1
+ import i from "./speedometer.js";
2
+ import m from "./throttle.js";
3
+ import f from "../utils.js";
4
+ const h = (t, o, a = 3) => {
5
+ let r = 0;
6
+ const c = i(50, 250);
7
+ return m((s) => {
8
+ const n = s.loaded, e = s.lengthComputable ? s.total : void 0, l = n - r, d = c(l), p = n <= e;
9
+ r = n;
10
+ const u = {
11
+ loaded: n,
12
+ total: e,
13
+ progress: e ? n / e : void 0,
14
+ bytes: l,
15
+ rate: d || void 0,
16
+ estimated: d && e && p ? (e - n) / d : void 0,
17
+ event: s,
18
+ lengthComputable: e != null,
19
+ [o ? "download" : "upload"]: !0
20
+ };
21
+ t(u);
22
+ }, a);
23
+ }, v = (t, o) => {
24
+ const a = t != null;
25
+ return [(r) => o[0]({
26
+ lengthComputable: a,
27
+ total: t,
28
+ loaded: r
29
+ }), o[1]];
30
+ }, C = (t) => (...o) => f.asap(() => t(...o));
31
+ export {
32
+ C as asyncDecorator,
33
+ v as progressEventDecorator,
34
+ h as progressEventReducer
35
+ };
@@ -0,0 +1,33 @@
1
+ import n from "../platform/index.js";
2
+ import p from "../utils.js";
3
+ import h from "./isURLSameOrigin.js";
4
+ import c from "./cookies.js";
5
+ import C from "../core/buildFullPath.js";
6
+ import w from "../core/mergeConfig.js";
7
+ import S from "../core/AxiosHeaders.js";
8
+ import b from "./buildURL.js";
9
+ const F = (s) => {
10
+ const e = w({}, s);
11
+ let { data: l, withXSRFToken: o, xsrfHeaderName: m, xsrfCookieName: f, headers: r, auth: t } = e;
12
+ e.headers = r = S.from(r), e.url = b(C(e.baseURL, e.url), s.params, s.paramsSerializer), t && r.set(
13
+ "Authorization",
14
+ "Basic " + btoa((t.username || "") + ":" + (t.password ? unescape(encodeURIComponent(t.password)) : ""))
15
+ );
16
+ let i;
17
+ if (p.isFormData(l)) {
18
+ if (n.hasStandardBrowserEnv || n.hasStandardBrowserWebWorkerEnv)
19
+ r.setContentType(void 0);
20
+ else if ((i = r.getContentType()) !== !1) {
21
+ const [a, ...d] = i ? i.split(";").map((u) => u.trim()).filter(Boolean) : [];
22
+ r.setContentType([a || "multipart/form-data", ...d].join("; "));
23
+ }
24
+ }
25
+ if (n.hasStandardBrowserEnv && (o && p.isFunction(o) && (o = o(e)), o || o !== !1 && h(e.url))) {
26
+ const a = m && f && c.read(f);
27
+ a && r.set(m, a);
28
+ }
29
+ return e;
30
+ };
31
+ export {
32
+ F as default
33
+ };
@@ -0,0 +1,19 @@
1
+ function y(t, n) {
2
+ t = t || 10;
3
+ const c = new Array(t), o = new Array(t);
4
+ let e = 0, r = 0, i;
5
+ return n = n !== void 0 ? n : 1e3, function(h) {
6
+ const d = Date.now(), a = o[r];
7
+ i || (i = d), c[e] = h, o[e] = d;
8
+ let f = r, u = 0;
9
+ for (; f !== e; )
10
+ u += c[f++], f = f % t;
11
+ if (e = (e + 1) % t, e === r && (r = (r + 1) % t), d - i < n)
12
+ return;
13
+ const w = a && d - a;
14
+ return w ? Math.round(u * 1e3 / w) : void 0;
15
+ };
16
+ }
17
+ export {
18
+ y as default
19
+ };
@@ -0,0 +1,8 @@
1
+ function u(n) {
2
+ return function(r) {
3
+ return n.apply(null, r);
4
+ };
5
+ }
6
+ export {
7
+ u as default
8
+ };
@@ -0,0 +1,15 @@
1
+ function h(r, a) {
2
+ let s = 0, u = 1e3 / a, e, t;
3
+ const n = (l, o = Date.now()) => {
4
+ s = o, e = null, t && (clearTimeout(t), t = null), r.apply(null, l);
5
+ };
6
+ return [(...l) => {
7
+ const o = Date.now(), i = o - s;
8
+ i >= u ? n(l, o) : (e = l, t || (t = setTimeout(() => {
9
+ t = null, n(e);
10
+ }, u - i)));
11
+ }, () => e && n(e)];
12
+ }
13
+ export {
14
+ h as default
15
+ };
@@ -0,0 +1,83 @@
1
+ import t from "../utils.js";
2
+ import E from "../core/AxiosError.js";
3
+ function p(i) {
4
+ return t.isPlainObject(i) || t.isArray(i);
5
+ }
6
+ function h(i) {
7
+ return t.endsWith(i, "[]") ? i.slice(0, -2) : i;
8
+ }
9
+ function O(i, e, s) {
10
+ return i ? i.concat(e).map(function(o, d) {
11
+ return o = h(o), !s && d ? "[" + o + "]" : o;
12
+ }).join(s ? "." : "") : e;
13
+ }
14
+ function T(i) {
15
+ return t.isArray(i) && !i.some(p);
16
+ }
17
+ const S = t.toFlatObject(t, {}, null, function(e) {
18
+ return /^is[A-Z]/.test(e);
19
+ });
20
+ function W(i, e, s) {
21
+ if (!t.isObject(i))
22
+ throw new TypeError("target must be an object");
23
+ e = e || new FormData(), s = t.toFlatObject(s, {
24
+ metaTokens: !0,
25
+ dots: !1,
26
+ indexes: !1
27
+ }, !1, function(n, u) {
28
+ return !t.isUndefined(u[n]);
29
+ });
30
+ const B = s.metaTokens, o = s.visitor || j, d = s.dots, m = s.indexes, w = (s.Blob || typeof Blob < "u" && Blob) && t.isSpecCompliantForm(e);
31
+ if (!t.isFunction(o))
32
+ throw new TypeError("visitor must be a function");
33
+ function l(r) {
34
+ if (r === null) return "";
35
+ if (t.isDate(r))
36
+ return r.toISOString();
37
+ if (!w && t.isBlob(r))
38
+ throw new E("Blob is not supported. Use a Buffer instead.");
39
+ return t.isArrayBuffer(r) || t.isTypedArray(r) ? w && typeof Blob == "function" ? new Blob([r]) : Buffer.from(r) : r;
40
+ }
41
+ function j(r, n, u) {
42
+ let c = r;
43
+ if (r && !u && typeof r == "object") {
44
+ if (t.endsWith(n, "{}"))
45
+ n = B ? n : n.slice(0, -2), r = JSON.stringify(r);
46
+ else if (t.isArray(r) && T(r) || (t.isFileList(r) || t.endsWith(n, "[]")) && (c = t.toArray(r)))
47
+ return n = h(n), c.forEach(function(b, x) {
48
+ !(t.isUndefined(b) || b === null) && e.append(
49
+ // eslint-disable-next-line no-nested-ternary
50
+ m === !0 ? O([n], x, d) : m === null ? n : n + "[]",
51
+ l(b)
52
+ );
53
+ }), !1;
54
+ }
55
+ return p(r) ? !0 : (e.append(O(u, n, d), l(r)), !1);
56
+ }
57
+ const a = [], F = Object.assign(S, {
58
+ defaultVisitor: j,
59
+ convertValue: l,
60
+ isVisitable: p
61
+ });
62
+ function A(r, n) {
63
+ if (!t.isUndefined(r)) {
64
+ if (a.indexOf(r) !== -1)
65
+ throw Error("Circular reference detected in " + n.join("."));
66
+ a.push(r), t.forEach(r, function(c, f) {
67
+ (!(t.isUndefined(c) || c === null) && o.call(
68
+ e,
69
+ c,
70
+ t.isString(f) ? f.trim() : f,
71
+ n,
72
+ F
73
+ )) === !0 && A(c, n ? n.concat(f) : [f]);
74
+ }), a.pop();
75
+ }
76
+ }
77
+ if (!t.isObject(i))
78
+ throw new TypeError("data must be an object");
79
+ return A(i), e;
80
+ }
81
+ export {
82
+ W as default
83
+ };
@@ -0,0 +1,13 @@
1
+ import e from "../utils.js";
2
+ import n from "./toFormData.js";
3
+ import r from "../platform/index.js";
4
+ function c(o, i) {
5
+ return n(o, new r.classes.URLSearchParams(), Object.assign({
6
+ visitor: function(t, s, f, a) {
7
+ return r.isNode && e.isBuffer(t) ? (this.append(s, t.toString("base64")), !1) : a.defaultVisitor.apply(this, arguments);
8
+ }
9
+ }, i));
10
+ }
11
+ export {
12
+ c as default
13
+ };
@@ -0,0 +1,63 @@
1
+ const u = function* (e, t) {
2
+ let n = e.byteLength;
3
+ if (!t || n < t) {
4
+ yield e;
5
+ return;
6
+ }
7
+ let a = 0, r;
8
+ for (; a < n; )
9
+ r = a + t, yield e.slice(a, r), a = r;
10
+ }, w = async function* (e, t) {
11
+ for await (const n of b(e))
12
+ yield* u(n, t);
13
+ }, b = async function* (e) {
14
+ if (e[Symbol.asyncIterator]) {
15
+ yield* e;
16
+ return;
17
+ }
18
+ const t = e.getReader();
19
+ try {
20
+ for (; ; ) {
21
+ const { done: n, value: a } = await t.read();
22
+ if (n)
23
+ break;
24
+ yield a;
25
+ }
26
+ } finally {
27
+ await t.cancel();
28
+ }
29
+ }, h = (e, t, n, a) => {
30
+ const r = w(e, t);
31
+ let d = 0, c, o = (l) => {
32
+ c || (c = !0, a && a(l));
33
+ };
34
+ return new ReadableStream({
35
+ async pull(l) {
36
+ try {
37
+ const { done: i, value: y } = await r.next();
38
+ if (i) {
39
+ o(), l.close();
40
+ return;
41
+ }
42
+ let s = y.byteLength;
43
+ if (n) {
44
+ let f = d += s;
45
+ n(f);
46
+ }
47
+ l.enqueue(new Uint8Array(y));
48
+ } catch (i) {
49
+ throw o(i), i;
50
+ }
51
+ },
52
+ cancel(l) {
53
+ return o(l), r.return();
54
+ }
55
+ }, {
56
+ highWaterMark: 2
57
+ });
58
+ };
59
+ export {
60
+ w as readBytes,
61
+ u as streamChunk,
62
+ h as trackStream
63
+ };
@@ -0,0 +1,51 @@
1
+ import { VERSION as b } from "../env/data.js";
2
+ import o from "../core/AxiosError.js";
3
+ const u = {};
4
+ ["object", "boolean", "number", "function", "string", "symbol"].forEach((t, r) => {
5
+ u[t] = function(a) {
6
+ return typeof a === t || "a" + (r < 1 ? "n " : " ") + t;
7
+ };
8
+ });
9
+ const l = {};
10
+ u.transitional = function(r, i, a) {
11
+ function s(e, n) {
12
+ return "[Axios v" + b + "] Transitional option '" + e + "'" + n + (a ? ". " + a : "");
13
+ }
14
+ return (e, n, c) => {
15
+ if (r === !1)
16
+ throw new o(
17
+ s(n, " has been removed" + (i ? " in " + i : "")),
18
+ o.ERR_DEPRECATED
19
+ );
20
+ return i && !l[n] && (l[n] = !0, console.warn(
21
+ s(
22
+ n,
23
+ " has been deprecated since v" + i + " and will be removed in the near future"
24
+ )
25
+ )), r ? r(e, n, c) : !0;
26
+ };
27
+ };
28
+ function d(t, r, i) {
29
+ if (typeof t != "object")
30
+ throw new o("options must be an object", o.ERR_BAD_OPTION_VALUE);
31
+ const a = Object.keys(t);
32
+ let s = a.length;
33
+ for (; s-- > 0; ) {
34
+ const e = a[s], n = r[e];
35
+ if (n) {
36
+ const c = t[e], f = c === void 0 || n(c, e, t);
37
+ if (f !== !0)
38
+ throw new o("option " + e + " must be " + f, o.ERR_BAD_OPTION_VALUE);
39
+ continue;
40
+ }
41
+ if (i !== !0)
42
+ throw new o("Unknown option " + e, o.ERR_BAD_OPTION);
43
+ }
44
+ }
45
+ const h = {
46
+ assertOptions: d,
47
+ validators: u
48
+ };
49
+ export {
50
+ h as default
51
+ };
@@ -0,0 +1,4 @@
1
+ const l = typeof Blob < "u" ? Blob : null;
2
+ export {
3
+ l as default
4
+ };
@@ -0,0 +1,4 @@
1
+ const a = typeof FormData < "u" ? FormData : null;
2
+ export {
3
+ a as default
4
+ };
@@ -0,0 +1,5 @@
1
+ import a from "../../../helpers/AxiosURLSearchParams.js";
2
+ const e = typeof URLSearchParams < "u" ? URLSearchParams : a;
3
+ export {
4
+ e as default
5
+ };
@@ -0,0 +1,15 @@
1
+ import o from "./classes/URLSearchParams.js";
2
+ import r from "./classes/FormData.js";
3
+ import t from "./classes/Blob.js";
4
+ const l = {
5
+ isBrowser: !0,
6
+ classes: {
7
+ URLSearchParams: o,
8
+ FormData: r,
9
+ Blob: t
10
+ },
11
+ protocols: ["http", "https", "file", "blob", "url", "data"]
12
+ };
13
+ export {
14
+ l as default
15
+ };
@@ -0,0 +1,9 @@
1
+ const e = typeof window < "u" && typeof document < "u", o = typeof navigator == "object" && navigator || void 0, n = e && (!o || ["ReactNative", "NativeScript", "NS"].indexOf(o.product) < 0), t = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
2
+ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", r = e && window.location.href || "http://localhost";
3
+ export {
4
+ e as hasBrowserEnv,
5
+ n as hasStandardBrowserEnv,
6
+ t as hasStandardBrowserWebWorkerEnv,
7
+ o as navigator,
8
+ r as origin
9
+ };
@@ -0,0 +1,9 @@
1
+ import o from "./browser/index.js";
2
+ import * as t from "./common/utils.js";
3
+ const m = {
4
+ ...t,
5
+ ...o
6
+ };
7
+ export {
8
+ m as default
9
+ };