@recode-js/next-toolkit 0.0.1
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.
- package/README.md +27 -0
- package/dist/NextToolkitProvider.d.ts +8 -0
- package/dist/NextToolkitProvider.d.ts.map +1 -0
- package/dist/NextToolkitProvider.js +12 -0
- package/dist/NextToolkitProvider.js.map +1 -0
- package/dist/_virtual/_commonjsHelpers.js +6 -0
- package/dist/_virtual/_commonjsHelpers.js.map +1 -0
- package/dist/_virtual/browser.js +4 -0
- package/dist/_virtual/browser.js.map +1 -0
- package/dist/_virtual/index.js +4 -0
- package/dist/_virtual/index.js.map +1 -0
- package/dist/_virtual/index2.js +4 -0
- package/dist/_virtual/index2.js.map +1 -0
- package/dist/_virtual/index3.js +4 -0
- package/dist/_virtual/index3.js.map +1 -0
- package/dist/_virtual/node.js +4 -0
- package/dist/_virtual/node.js.map +1 -0
- package/dist/_virtual/use-sync-external-store-with-selector.development.js +4 -0
- package/dist/_virtual/use-sync-external-store-with-selector.development.js.map +1 -0
- package/dist/_virtual/use-sync-external-store-with-selector.production.js +4 -0
- package/dist/_virtual/use-sync-external-store-with-selector.production.js.map +1 -0
- package/dist/_virtual/with-selector.js +4 -0
- package/dist/_virtual/with-selector.js.map +1 -0
- package/dist/axios/api.d.ts +16 -0
- package/dist/axios/api.d.ts.map +1 -0
- package/dist/axios/api.js +11 -0
- package/dist/axios/api.js.map +1 -0
- package/dist/components/auth/Form.d.ts +10 -0
- package/dist/components/auth/Form.d.ts.map +1 -0
- package/dist/components/auth/Form.js +49 -0
- package/dist/components/auth/Form.js.map +1 -0
- package/dist/components/auth/auth.d.ts +8 -0
- package/dist/components/auth/auth.d.ts.map +1 -0
- package/dist/components/auth/auth.js +18 -0
- package/dist/components/auth/auth.js.map +1 -0
- package/dist/components/auth/formActions.d.ts +17 -0
- package/dist/components/auth/formActions.d.ts.map +1 -0
- package/dist/components/auth/formActions.js +58 -0
- package/dist/components/auth/formActions.js.map +1 -0
- package/dist/components/auth/login/LoginPage.d.ts +7 -0
- package/dist/components/auth/login/LoginPage.d.ts.map +1 -0
- package/dist/components/auth/login/LoginPage.js +18 -0
- package/dist/components/auth/login/LoginPage.js.map +1 -0
- package/dist/components/auth/login/login.d.ts +1 -0
- package/dist/components/auth/login/login.d.ts.map +1 -0
- package/dist/components/auth/register/RegisterPage.d.ts +7 -0
- package/dist/components/auth/register/RegisterPage.d.ts.map +1 -0
- package/dist/components/auth/register/RegisterPage.js +18 -0
- package/dist/components/auth/register/RegisterPage.js.map +1 -0
- package/dist/components/auth/register/register.d.ts +1 -0
- package/dist/components/auth/register/register.d.ts.map +1 -0
- package/dist/components/auth/styles/form.module.css.js +4 -0
- package/dist/components/auth/styles/form.module.css.js.map +1 -0
- package/dist/components/common/Button.d.ts +25 -0
- package/dist/components/common/Button.d.ts.map +1 -0
- package/dist/components/common/Button.js +25 -0
- package/dist/components/common/Button.js.map +1 -0
- package/dist/components/common/styles/button.module.css.js +4 -0
- package/dist/components/common/styles/button.module.css.js.map +1 -0
- package/dist/components/navigation/NavigatorProvider.d.ts +10 -0
- package/dist/components/navigation/NavigatorProvider.d.ts.map +1 -0
- package/dist/components/navigation/NavigatorProvider.js +15 -0
- package/dist/components/navigation/NavigatorProvider.js.map +1 -0
- package/dist/components/navigation/bottom-tab/BottomTab.d.ts +12 -0
- package/dist/components/navigation/bottom-tab/BottomTab.d.ts.map +1 -0
- package/dist/components/navigation/bottom-tab/BottomTab.js +45 -0
- package/dist/components/navigation/bottom-tab/BottomTab.js.map +1 -0
- package/dist/components/navigation/bottom-tab/bottom-tab.module.css.js +4 -0
- package/dist/components/navigation/bottom-tab/bottom-tab.module.css.js.map +1 -0
- package/dist/components/navigation/drawer/Drawer.d.ts +21 -0
- package/dist/components/navigation/drawer/Drawer.d.ts.map +1 -0
- package/dist/components/navigation/drawer/Drawer.js +91 -0
- package/dist/components/navigation/drawer/Drawer.js.map +1 -0
- package/dist/components/navigation/drawer/drawer.module.css.js +4 -0
- package/dist/components/navigation/drawer/drawer.module.css.js.map +1 -0
- package/dist/components/navigation/header/Header.d.ts +7 -0
- package/dist/components/navigation/header/Header.d.ts.map +1 -0
- package/dist/components/navigation/header/Header.js +32 -0
- package/dist/components/navigation/header/Header.js.map +1 -0
- package/dist/components/navigation/header/header.module.css.js +4 -0
- package/dist/components/navigation/header/header.module.css.js.map +1 -0
- package/dist/components/navigation/navigatior-provider.module.css.js +4 -0
- package/dist/components/navigation/navigatior-provider.module.css.js.map +1 -0
- package/dist/components/toast/Toast.d.ts +9 -0
- package/dist/components/toast/Toast.d.ts.map +1 -0
- package/dist/components/toast/Toast.js +92 -0
- package/dist/components/toast/Toast.js.map +1 -0
- package/dist/components/toast/ToastExamples.d.ts +2 -0
- package/dist/components/toast/ToastExamples.d.ts.map +1 -0
- package/dist/components/toast/ToastExamples.js +74 -0
- package/dist/components/toast/ToastExamples.js.map +1 -0
- package/dist/components/toast/toast.module.css.js +4 -0
- package/dist/components/toast/toast.module.css.js.map +1 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +9 -0
- package/dist/index.js.map +1 -0
- package/dist/node_modules/@reduxjs/toolkit/dist/redux-toolkit.modern.js +969 -0
- package/dist/node_modules/@reduxjs/toolkit/dist/redux-toolkit.modern.js.map +1 -0
- package/dist/node_modules/axios/index.js +26 -0
- package/dist/node_modules/axios/index.js.map +1 -0
- package/dist/node_modules/axios/lib/adapters/adapters.js +129 -0
- package/dist/node_modules/axios/lib/adapters/adapters.js.map +1 -0
- package/dist/node_modules/axios/lib/adapters/fetch.js +289 -0
- package/dist/node_modules/axios/lib/adapters/fetch.js.map +1 -0
- package/dist/node_modules/axios/lib/adapters/http.js +895 -0
- package/dist/node_modules/axios/lib/adapters/http.js.map +1 -0
- package/dist/node_modules/axios/lib/adapters/xhr.js +203 -0
- package/dist/node_modules/axios/lib/adapters/xhr.js.map +1 -0
- package/dist/node_modules/axios/lib/axios.js +88 -0
- package/dist/node_modules/axios/lib/axios.js.map +1 -0
- package/dist/node_modules/axios/lib/cancel/CancelToken.js +135 -0
- package/dist/node_modules/axios/lib/cancel/CancelToken.js.map +1 -0
- package/dist/node_modules/axios/lib/cancel/CanceledError.js +25 -0
- package/dist/node_modules/axios/lib/cancel/CanceledError.js.map +1 -0
- package/dist/node_modules/axios/lib/cancel/isCancel.js +7 -0
- package/dist/node_modules/axios/lib/cancel/isCancel.js.map +1 -0
- package/dist/node_modules/axios/lib/core/Axios.js +238 -0
- package/dist/node_modules/axios/lib/core/Axios.js.map +1 -0
- package/dist/node_modules/axios/lib/core/AxiosError.js +110 -0
- package/dist/node_modules/axios/lib/core/AxiosError.js.map +1 -0
- package/dist/node_modules/axios/lib/core/AxiosHeaders.js +314 -0
- package/dist/node_modules/axios/lib/core/AxiosHeaders.js.map +1 -0
- package/dist/node_modules/axios/lib/core/InterceptorManager.js +71 -0
- package/dist/node_modules/axios/lib/core/InterceptorManager.js.map +1 -0
- package/dist/node_modules/axios/lib/core/buildFullPath.js +24 -0
- package/dist/node_modules/axios/lib/core/buildFullPath.js.map +1 -0
- package/dist/node_modules/axios/lib/core/dispatchRequest.js +83 -0
- package/dist/node_modules/axios/lib/core/dispatchRequest.js.map +1 -0
- package/dist/node_modules/axios/lib/core/mergeConfig.js +108 -0
- package/dist/node_modules/axios/lib/core/mergeConfig.js.map +1 -0
- package/dist/node_modules/axios/lib/core/settle.js +29 -0
- package/dist/node_modules/axios/lib/core/settle.js.map +1 -0
- package/dist/node_modules/axios/lib/core/transformData.js +30 -0
- package/dist/node_modules/axios/lib/core/transformData.js.map +1 -0
- package/dist/node_modules/axios/lib/defaults/index.js +161 -0
- package/dist/node_modules/axios/lib/defaults/index.js.map +1 -0
- package/dist/node_modules/axios/lib/defaults/transitional.js +9 -0
- package/dist/node_modules/axios/lib/defaults/transitional.js.map +1 -0
- package/dist/node_modules/axios/lib/env/data.js +4 -0
- package/dist/node_modules/axios/lib/env/data.js.map +1 -0
- package/dist/node_modules/axios/lib/helpers/AxiosTransformStream.js +143 -0
- package/dist/node_modules/axios/lib/helpers/AxiosTransformStream.js.map +1 -0
- package/dist/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +58 -0
- package/dist/node_modules/axios/lib/helpers/AxiosURLSearchParams.js.map +1 -0
- package/dist/node_modules/axios/lib/helpers/HttpStatusCode.js +78 -0
- package/dist/node_modules/axios/lib/helpers/HttpStatusCode.js.map +1 -0
- package/dist/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js +28 -0
- package/dist/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js.map +1 -0
- package/dist/node_modules/axios/lib/helpers/bind.js +16 -0
- package/dist/node_modules/axios/lib/helpers/bind.js.map +1 -0
- package/dist/node_modules/axios/lib/helpers/buildURL.js +69 -0
- package/dist/node_modules/axios/lib/helpers/buildURL.js.map +1 -0
- package/dist/node_modules/axios/lib/helpers/callbackify.js +17 -0
- package/dist/node_modules/axios/lib/helpers/callbackify.js.map +1 -0
- package/dist/node_modules/axios/lib/helpers/combineURLs.js +17 -0
- package/dist/node_modules/axios/lib/helpers/combineURLs.js.map +1 -0
- package/dist/node_modules/axios/lib/helpers/composeSignals.js +49 -0
- package/dist/node_modules/axios/lib/helpers/composeSignals.js.map +1 -0
- package/dist/node_modules/axios/lib/helpers/cookies.js +55 -0
- package/dist/node_modules/axios/lib/helpers/cookies.js.map +1 -0
- package/dist/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js +76 -0
- package/dist/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js.map +1 -0
- package/dist/node_modules/axios/lib/helpers/formDataToJSON.js +95 -0
- package/dist/node_modules/axios/lib/helpers/formDataToJSON.js.map +1 -0
- package/dist/node_modules/axios/lib/helpers/formDataToStream.js +113 -0
- package/dist/node_modules/axios/lib/helpers/formDataToStream.js.map +1 -0
- package/dist/node_modules/axios/lib/helpers/fromDataURI.js +55 -0
- package/dist/node_modules/axios/lib/helpers/fromDataURI.js.map +1 -0
- package/dist/node_modules/axios/lib/helpers/isAbsoluteURL.js +17 -0
- package/dist/node_modules/axios/lib/helpers/isAbsoluteURL.js.map +1 -0
- package/dist/node_modules/axios/lib/helpers/isAxiosError.js +16 -0
- package/dist/node_modules/axios/lib/helpers/isAxiosError.js.map +1 -0
- package/dist/node_modules/axios/lib/helpers/isURLSameOrigin.js +17 -0
- package/dist/node_modules/axios/lib/helpers/isURLSameOrigin.js.map +1 -0
- package/dist/node_modules/axios/lib/helpers/parseHeaders.js +57 -0
- package/dist/node_modules/axios/lib/helpers/parseHeaders.js.map +1 -0
- package/dist/node_modules/axios/lib/helpers/parseProtocol.js +8 -0
- package/dist/node_modules/axios/lib/helpers/parseProtocol.js.map +1 -0
- package/dist/node_modules/axios/lib/helpers/progressEventReducer.js +47 -0
- package/dist/node_modules/axios/lib/helpers/progressEventReducer.js.map +1 -0
- package/dist/node_modules/axios/lib/helpers/readBlob.js +16 -0
- package/dist/node_modules/axios/lib/helpers/readBlob.js.map +1 -0
- package/dist/node_modules/axios/lib/helpers/resolveConfig.js +63 -0
- package/dist/node_modules/axios/lib/helpers/resolveConfig.js.map +1 -0
- package/dist/node_modules/axios/lib/helpers/speedometer.js +55 -0
- package/dist/node_modules/axios/lib/helpers/speedometer.js.map +1 -0
- package/dist/node_modules/axios/lib/helpers/spread.js +30 -0
- package/dist/node_modules/axios/lib/helpers/spread.js.map +1 -0
- package/dist/node_modules/axios/lib/helpers/throttle.js +45 -0
- package/dist/node_modules/axios/lib/helpers/throttle.js.map +1 -0
- package/dist/node_modules/axios/lib/helpers/toFormData.js +222 -0
- package/dist/node_modules/axios/lib/helpers/toFormData.js.map +1 -0
- package/dist/node_modules/axios/lib/helpers/toURLEncodedForm.js +21 -0
- package/dist/node_modules/axios/lib/helpers/toURLEncodedForm.js.map +1 -0
- package/dist/node_modules/axios/lib/helpers/trackStream.js +89 -0
- package/dist/node_modules/axios/lib/helpers/trackStream.js.map +1 -0
- package/dist/node_modules/axios/lib/helpers/validator.js +101 -0
- package/dist/node_modules/axios/lib/helpers/validator.js.map +1 -0
- package/dist/node_modules/axios/lib/platform/common/utils.js +46 -0
- package/dist/node_modules/axios/lib/platform/common/utils.js.map +1 -0
- package/dist/node_modules/axios/lib/platform/index.js +10 -0
- package/dist/node_modules/axios/lib/platform/index.js.map +1 -0
- package/dist/node_modules/axios/lib/platform/node/classes/FormData.js +3 -0
- package/dist/node_modules/axios/lib/platform/node/classes/FormData.js.map +1 -0
- package/dist/node_modules/axios/lib/platform/node/classes/URLSearchParams.js +7 -0
- package/dist/node_modules/axios/lib/platform/node/classes/URLSearchParams.js.map +1 -0
- package/dist/node_modules/axios/lib/platform/node/index.js +41 -0
- package/dist/node_modules/axios/lib/platform/node/index.js.map +1 -0
- package/dist/node_modules/axios/lib/utils.js +784 -0
- package/dist/node_modules/axios/lib/utils.js.map +1 -0
- package/dist/node_modules/debug/src/browser.js +287 -0
- package/dist/node_modules/debug/src/browser.js.map +1 -0
- package/dist/node_modules/debug/src/common.js +304 -0
- package/dist/node_modules/debug/src/common.js.map +1 -0
- package/dist/node_modules/debug/src/index.js +24 -0
- package/dist/node_modules/debug/src/index.js.map +1 -0
- package/dist/node_modules/debug/src/node.js +280 -0
- package/dist/node_modules/debug/src/node.js.map +1 -0
- package/dist/node_modules/follow-redirects/debug.js +20 -0
- package/dist/node_modules/follow-redirects/debug.js.map +1 -0
- package/dist/node_modules/follow-redirects/index.js +701 -0
- package/dist/node_modules/follow-redirects/index.js.map +1 -0
- package/dist/node_modules/immer/dist/immer.js +860 -0
- package/dist/node_modules/immer/dist/immer.js.map +1 -0
- package/dist/node_modules/proxy-from-env/index.js +112 -0
- package/dist/node_modules/proxy-from-env/index.js.map +1 -0
- package/dist/node_modules/react-redux/dist/react-redux.js +348 -0
- package/dist/node_modules/react-redux/dist/react-redux.js.map +1 -0
- package/dist/node_modules/redux/dist/redux.js +362 -0
- package/dist/node_modules/redux/dist/redux.js.map +1 -0
- package/dist/node_modules/redux-thunk/dist/redux-thunk.js +15 -0
- package/dist/node_modules/redux-thunk/dist/redux-thunk.js.map +1 -0
- package/dist/node_modules/reselect/dist/reselect.js +322 -0
- package/dist/node_modules/reselect/dist/reselect.js.map +1 -0
- package/dist/node_modules/server-only/index.js +5 -0
- package/dist/node_modules/server-only/index.js.map +1 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.development.js +108 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.development.js.map +1 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.production.js +96 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.production.js.map +1 -0
- package/dist/node_modules/use-sync-external-store/with-selector.js +14 -0
- package/dist/node_modules/use-sync-external-store/with-selector.js.map +1 -0
- package/dist/store/StoreProvider.d.ts +7 -0
- package/dist/store/StoreProvider.d.ts.map +1 -0
- package/dist/store/StoreProvider.js +11 -0
- package/dist/store/StoreProvider.js.map +1 -0
- package/dist/store/features/drawer/drawer.slice.d.ts +12 -0
- package/dist/store/features/drawer/drawer.slice.d.ts.map +1 -0
- package/dist/store/features/drawer/drawer.slice.js +26 -0
- package/dist/store/features/drawer/drawer.slice.js.map +1 -0
- package/dist/store/features/toast/toastSlice.d.ts +16 -0
- package/dist/store/features/toast/toastSlice.d.ts.map +1 -0
- package/dist/store/features/toast/toastSlice.js +26 -0
- package/dist/store/features/toast/toastSlice.js.map +1 -0
- package/dist/store/hooks.d.ts +10 -0
- package/dist/store/hooks.d.ts.map +1 -0
- package/dist/store/hooks.js +8 -0
- package/dist/store/hooks.js.map +1 -0
- package/dist/store/store.d.ts +16 -0
- package/dist/store/store.d.ts.map +1 -0
- package/dist/store/store.js +13 -0
- package/dist/store/store.js.map +1 -0
- package/dist/styles.css +2 -0
- package/dist/styles.css.map +1 -0
- package/package.json +57 -0
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
import toFormData from './toFormData.js';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* It encodes a string by replacing all characters that are not in the unreserved set with
|
|
6
|
+
* their percent-encoded equivalents
|
|
7
|
+
*
|
|
8
|
+
* @param {string} str - The string to encode.
|
|
9
|
+
*
|
|
10
|
+
* @returns {string} The encoded string.
|
|
11
|
+
*/
|
|
12
|
+
function encode(str) {
|
|
13
|
+
const charMap = {
|
|
14
|
+
'!': '%21',
|
|
15
|
+
"'": '%27',
|
|
16
|
+
'(': '%28',
|
|
17
|
+
')': '%29',
|
|
18
|
+
'~': '%7E',
|
|
19
|
+
'%20': '+',
|
|
20
|
+
'%00': '\x00'
|
|
21
|
+
};
|
|
22
|
+
return encodeURIComponent(str).replace(/[!'()~]|%20|%00/g, function replacer(match) {
|
|
23
|
+
return charMap[match];
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* It takes a params object and converts it to a FormData object
|
|
29
|
+
*
|
|
30
|
+
* @param {Object<string, any>} params - The parameters to be converted to a FormData object.
|
|
31
|
+
* @param {Object<string, any>} options - The options object passed to the Axios constructor.
|
|
32
|
+
*
|
|
33
|
+
* @returns {void}
|
|
34
|
+
*/
|
|
35
|
+
function AxiosURLSearchParams(params, options) {
|
|
36
|
+
this._pairs = [];
|
|
37
|
+
|
|
38
|
+
params && toFormData(params, this, options);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
const prototype = AxiosURLSearchParams.prototype;
|
|
42
|
+
|
|
43
|
+
prototype.append = function append(name, value) {
|
|
44
|
+
this._pairs.push([name, value]);
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
prototype.toString = function toString(encoder) {
|
|
48
|
+
const _encode = encoder ? function(value) {
|
|
49
|
+
return encoder.call(this, value, encode);
|
|
50
|
+
} : encode;
|
|
51
|
+
|
|
52
|
+
return this._pairs.map(function each(pair) {
|
|
53
|
+
return _encode(pair[0]) + '=' + _encode(pair[1]);
|
|
54
|
+
}, '').join('&');
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
export { AxiosURLSearchParams as default };
|
|
58
|
+
//# sourceMappingURL=AxiosURLSearchParams.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AxiosURLSearchParams.js","sources":["../../../../../node_modules/axios/lib/helpers/AxiosURLSearchParams.js"],"sourcesContent":["'use strict';\n\nimport toFormData from './toFormData.js';\n\n/**\n * It encodes a string by replacing all characters that are not in the unreserved set with\n * their percent-encoded equivalents\n *\n * @param {string} str - The string to encode.\n *\n * @returns {string} The encoded string.\n */\nfunction encode(str) {\n const charMap = {\n '!': '%21',\n \"'\": '%27',\n '(': '%28',\n ')': '%29',\n '~': '%7E',\n '%20': '+',\n '%00': '\\x00'\n };\n return encodeURIComponent(str).replace(/[!'()~]|%20|%00/g, function replacer(match) {\n return charMap[match];\n });\n}\n\n/**\n * It takes a params object and converts it to a FormData object\n *\n * @param {Object<string, any>} params - The parameters to be converted to a FormData object.\n * @param {Object<string, any>} options - The options object passed to the Axios constructor.\n *\n * @returns {void}\n */\nfunction AxiosURLSearchParams(params, options) {\n this._pairs = [];\n\n params && toFormData(params, this, options);\n}\n\nconst prototype = AxiosURLSearchParams.prototype;\n\nprototype.append = function append(name, value) {\n this._pairs.push([name, value]);\n};\n\nprototype.toString = function toString(encoder) {\n const _encode = encoder ? function(value) {\n return encoder.call(this, value, encode);\n } : encode;\n\n return this._pairs.map(function each(pair) {\n return _encode(pair[0]) + '=' + _encode(pair[1]);\n }, '').join('&');\n};\n\nexport default AxiosURLSearchParams;\n"],"names":[],"mappings":";;;AAIA,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAA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AAA,CAAE,CAAA,CAAA,CAAA,CAAA,CAAK,CAAA,CAAE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAC;AAC5C,CAAA,CAAE,CAAC,GAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM;;AAEZ,CAAA,CAAE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,CAAA,CAAA,CAAA,CAAI,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAC,CAAA,CAAA,CAAG,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAS,CAAA,CAAA,CAAA,CAAI,CAAC,CAAA,CAAA,CAAA,CAAI,CAAA,CAAE;AAC7C,CAAA,CAAA,CAAA,CAAI,OAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,CAAC,CAAA,CAAA,CAAA,CAAI,CAAC,CAAC,CAAC,CAAC,CAAA,CAAA,CAAG,CAAA,CAAA,CAAG,GAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AACpD,CAAA,CAAE,CAAC,EAAE,CAAA,CAAE,CAAC,CAAC,CAAA,CAAA,CAAA,CAAI,CAAC,GAAG,CAAC;AAClB,CAAC;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
const HttpStatusCode = {
|
|
2
|
+
Continue: 100,
|
|
3
|
+
SwitchingProtocols: 101,
|
|
4
|
+
Processing: 102,
|
|
5
|
+
EarlyHints: 103,
|
|
6
|
+
Ok: 200,
|
|
7
|
+
Created: 201,
|
|
8
|
+
Accepted: 202,
|
|
9
|
+
NonAuthoritativeInformation: 203,
|
|
10
|
+
NoContent: 204,
|
|
11
|
+
ResetContent: 205,
|
|
12
|
+
PartialContent: 206,
|
|
13
|
+
MultiStatus: 207,
|
|
14
|
+
AlreadyReported: 208,
|
|
15
|
+
ImUsed: 226,
|
|
16
|
+
MultipleChoices: 300,
|
|
17
|
+
MovedPermanently: 301,
|
|
18
|
+
Found: 302,
|
|
19
|
+
SeeOther: 303,
|
|
20
|
+
NotModified: 304,
|
|
21
|
+
UseProxy: 305,
|
|
22
|
+
Unused: 306,
|
|
23
|
+
TemporaryRedirect: 307,
|
|
24
|
+
PermanentRedirect: 308,
|
|
25
|
+
BadRequest: 400,
|
|
26
|
+
Unauthorized: 401,
|
|
27
|
+
PaymentRequired: 402,
|
|
28
|
+
Forbidden: 403,
|
|
29
|
+
NotFound: 404,
|
|
30
|
+
MethodNotAllowed: 405,
|
|
31
|
+
NotAcceptable: 406,
|
|
32
|
+
ProxyAuthenticationRequired: 407,
|
|
33
|
+
RequestTimeout: 408,
|
|
34
|
+
Conflict: 409,
|
|
35
|
+
Gone: 410,
|
|
36
|
+
LengthRequired: 411,
|
|
37
|
+
PreconditionFailed: 412,
|
|
38
|
+
PayloadTooLarge: 413,
|
|
39
|
+
UriTooLong: 414,
|
|
40
|
+
UnsupportedMediaType: 415,
|
|
41
|
+
RangeNotSatisfiable: 416,
|
|
42
|
+
ExpectationFailed: 417,
|
|
43
|
+
ImATeapot: 418,
|
|
44
|
+
MisdirectedRequest: 421,
|
|
45
|
+
UnprocessableEntity: 422,
|
|
46
|
+
Locked: 423,
|
|
47
|
+
FailedDependency: 424,
|
|
48
|
+
TooEarly: 425,
|
|
49
|
+
UpgradeRequired: 426,
|
|
50
|
+
PreconditionRequired: 428,
|
|
51
|
+
TooManyRequests: 429,
|
|
52
|
+
RequestHeaderFieldsTooLarge: 431,
|
|
53
|
+
UnavailableForLegalReasons: 451,
|
|
54
|
+
InternalServerError: 500,
|
|
55
|
+
NotImplemented: 501,
|
|
56
|
+
BadGateway: 502,
|
|
57
|
+
ServiceUnavailable: 503,
|
|
58
|
+
GatewayTimeout: 504,
|
|
59
|
+
HttpVersionNotSupported: 505,
|
|
60
|
+
VariantAlsoNegotiates: 506,
|
|
61
|
+
InsufficientStorage: 507,
|
|
62
|
+
LoopDetected: 508,
|
|
63
|
+
NotExtended: 510,
|
|
64
|
+
NetworkAuthenticationRequired: 511,
|
|
65
|
+
WebServerIsDown: 521,
|
|
66
|
+
ConnectionTimedOut: 522,
|
|
67
|
+
OriginIsUnreachable: 523,
|
|
68
|
+
TimeoutOccurred: 524,
|
|
69
|
+
SslHandshakeFailed: 525,
|
|
70
|
+
InvalidSslCertificate: 526,
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
Object.entries(HttpStatusCode).forEach(([key, value]) => {
|
|
74
|
+
HttpStatusCode[value] = key;
|
|
75
|
+
});
|
|
76
|
+
|
|
77
|
+
export { HttpStatusCode as default };
|
|
78
|
+
//# sourceMappingURL=HttpStatusCode.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HttpStatusCode.js","sources":["../../../../../node_modules/axios/lib/helpers/HttpStatusCode.js"],"sourcesContent":["const HttpStatusCode = {\n Continue: 100,\n SwitchingProtocols: 101,\n Processing: 102,\n EarlyHints: 103,\n Ok: 200,\n Created: 201,\n Accepted: 202,\n NonAuthoritativeInformation: 203,\n NoContent: 204,\n ResetContent: 205,\n PartialContent: 206,\n MultiStatus: 207,\n AlreadyReported: 208,\n ImUsed: 226,\n MultipleChoices: 300,\n MovedPermanently: 301,\n Found: 302,\n SeeOther: 303,\n NotModified: 304,\n UseProxy: 305,\n Unused: 306,\n TemporaryRedirect: 307,\n PermanentRedirect: 308,\n BadRequest: 400,\n Unauthorized: 401,\n PaymentRequired: 402,\n Forbidden: 403,\n NotFound: 404,\n MethodNotAllowed: 405,\n NotAcceptable: 406,\n ProxyAuthenticationRequired: 407,\n RequestTimeout: 408,\n Conflict: 409,\n Gone: 410,\n LengthRequired: 411,\n PreconditionFailed: 412,\n PayloadTooLarge: 413,\n UriTooLong: 414,\n UnsupportedMediaType: 415,\n RangeNotSatisfiable: 416,\n ExpectationFailed: 417,\n ImATeapot: 418,\n MisdirectedRequest: 421,\n UnprocessableEntity: 422,\n Locked: 423,\n FailedDependency: 424,\n TooEarly: 425,\n UpgradeRequired: 426,\n PreconditionRequired: 428,\n TooManyRequests: 429,\n RequestHeaderFieldsTooLarge: 431,\n UnavailableForLegalReasons: 451,\n InternalServerError: 500,\n NotImplemented: 501,\n BadGateway: 502,\n ServiceUnavailable: 503,\n GatewayTimeout: 504,\n HttpVersionNotSupported: 505,\n VariantAlsoNegotiates: 506,\n InsufficientStorage: 507,\n LoopDetected: 508,\n NotExtended: 510,\n NetworkAuthenticationRequired: 511,\n WebServerIsDown: 521,\n ConnectionTimedOut: 522,\n OriginIsUnreachable: 523,\n TimeoutOccurred: 524,\n SslHandshakeFailed: 525,\n InvalidSslCertificate: 526,\n};\n\nObject.entries(HttpStatusCode).forEach(([key, value]) => {\n HttpStatusCode[value] = key;\n});\n\nexport default HttpStatusCode;\n"],"names":[],"mappings":"AAAK,MAAC,cAAc,GAAG;AACvB,EAAE,QAAQ,EAAE,GAAG;AACf,EAAE,kBAAkB,EAAE,GAAG;AACzB,EAAE,UAAU,EAAE,GAAG;AACjB,EAAE,UAAU,EAAE,GAAG;AACjB,EAAE,EAAE,EAAE,GAAG;AACT,EAAE,OAAO,EAAE,GAAG;AACd,EAAE,QAAQ,EAAE,GAAG;AACf,EAAE,2BAA2B,EAAE,GAAG;AAClC,EAAE,SAAS,EAAE,GAAG;AAChB,EAAE,YAAY,EAAE,GAAG;AACnB,EAAE,cAAc,EAAE,GAAG;AACrB,EAAE,WAAW,EAAE,GAAG;AAClB,EAAE,eAAe,EAAE,GAAG;AACtB,EAAE,MAAM,EAAE,GAAG;AACb,EAAE,eAAe,EAAE,GAAG;AACtB,EAAE,gBAAgB,EAAE,GAAG;AACvB,EAAE,KAAK,EAAE,GAAG;AACZ,EAAE,QAAQ,EAAE,GAAG;AACf,EAAE,WAAW,EAAE,GAAG;AAClB,EAAE,QAAQ,EAAE,GAAG;AACf,EAAE,MAAM,EAAE,GAAG;AACb,EAAE,iBAAiB,EAAE,GAAG;AACxB,EAAE,iBAA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AAG;AAClB,EAAE,6BAA6B,EAAE,GAAG;AACpC,EAAE,eAAe,EAAE,GAAG;AACtB,EAAE,kBAAkB,EAAE,GAAG;AACzB,EAAE,mBAAmB,EAAE,GAAG;AAC1B,EAAE,eAAe,EAAE,GAAG;AACtB,EAAE,kBAAkB,EAAE,GAAG;AACzB,EAAE,qBAAqB,EAAE,GAAG;AAC5B;;AAEA,MAAM,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,KAAK;AACzD,EAAE,cAAc,CAAC,KAAK,CAAC,GAAG,GAAG;AAC7B,CAAC,CAAC;;;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
import stream from 'stream';
|
|
3
|
+
|
|
4
|
+
class ZlibHeaderTransformStream extends stream.Transform {
|
|
5
|
+
__transform(chunk, encoding, callback) {
|
|
6
|
+
this.push(chunk);
|
|
7
|
+
callback();
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
_transform(chunk, encoding, callback) {
|
|
11
|
+
if (chunk.length !== 0) {
|
|
12
|
+
this._transform = this.__transform;
|
|
13
|
+
|
|
14
|
+
// Add Default Compression headers if no zlib headers are present
|
|
15
|
+
if (chunk[0] !== 120) { // Hex: 78
|
|
16
|
+
const header = Buffer.alloc(2);
|
|
17
|
+
header[0] = 120; // Hex: 78
|
|
18
|
+
header[1] = 156; // Hex: 9C
|
|
19
|
+
this.push(header, encoding);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
this.__transform(chunk, encoding, callback);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export { ZlibHeaderTransformStream as default };
|
|
28
|
+
//# sourceMappingURL=ZlibHeaderTransformStream.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ZlibHeaderTransformStream.js","sources":["../../../../../node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js"],"sourcesContent":["\"use strict\";\n\nimport stream from \"stream\";\n\nclass ZlibHeaderTransformStream extends stream.Transform {\n __transform(chunk, encoding, callback) {\n this.push(chunk);\n callback();\n }\n\n _transform(chunk, encoding, callback) {\n if (chunk.length !== 0) {\n this._transform = this.__transform;\n\n // Add Default Compression headers if no zlib headers are present\n if (chunk[0] !== 120) { // Hex: 78\n const header = Buffer.alloc(2);\n header[0] = 120; // Hex: 78\n header[1] = 156; // Hex: 9C \n this.push(header, encoding);\n }\n }\n\n this.__transform(chunk, encoding, callback);\n }\n}\n\nexport default ZlibHeaderTransformStream;\n"],"names":[],"mappings":";;;AAIA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAyB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAS,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAC,SAAS,CAAC;AACzD,CAAA,CAAE,WAAW,CAAC,CAAA,CAAA,CAAA,CAAA,CAAK,EAAE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAE,QAAQ,CAAA,CAAE;AACzC,CAAA,CAAA,CAAA,CAAI,CAAA,CAAA,CAAA,CAAI,CAAC,CAAA,CAAA,CAAA,CAAI,CAAC,KAAK,CAAC;AACpB,CAAA,CAAA,CAAA,CAAI,QAAQ,CAAA,CAAE;AACd,CAAA,CAAE;;AAEF,CAAA,CAAE,UAAU,CAAC,CAAA,CAAA,CAAA,CAAA,CAAK,EAAE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAE,QAAQ,CAAA,CAAE;AACxC,CAAA,CAAA,CAAA,CAAI,IAAI,CAAA,CAAA,CAA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,MAAM,CAAC,CAAC,CAAC,CAAA,CAAA,CAAG,GAAG,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACxB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,MAAM,CAAC,CAAC,CAAC,CAAA,CAAA,CAAG,GAAG,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACxB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,IAAI,CAAC,CAAA,CAAA,CAAA,CAAI,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAA,CAAE,QAAQ,CAAC;AACnC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM;AACN,CAAA,CAAA,CAAA,CAAI;;AAEJ,CAAA,CAAA,CAAA,CAAI,CAAA,CAAA,CAAA,CAAI,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAW,CAAC,KAAK,CAAA,CAAE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAC;AAC/C,CAAA,CAAE;AACF;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
/**
|
|
3
|
+
* Create a bound version of a function with a specified `this` context
|
|
4
|
+
*
|
|
5
|
+
* @param {Function} fn - The function to bind
|
|
6
|
+
* @param {*} thisArg - The value to be passed as the `this` parameter
|
|
7
|
+
* @returns {Function} A new function that will call the original function with the specified `this` context
|
|
8
|
+
*/
|
|
9
|
+
function bind(fn, thisArg) {
|
|
10
|
+
return function wrap() {
|
|
11
|
+
return fn.apply(thisArg, arguments);
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export { bind as default };
|
|
16
|
+
//# sourceMappingURL=bind.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bind.js","sources":["../../../../../node_modules/axios/lib/helpers/bind.js"],"sourcesContent":["'use strict';\n\n/**\n * Create a bound version of a function with a specified `this` context\n *\n * @param {Function} fn - The function to bind\n * @param {*} thisArg - The value to be passed as the `this` parameter\n * @returns {Function} A new function that will call the original function with the specified `this` context\n */\nexport default function bind(fn, thisArg) {\n return function wrap() {\n return fn.apply(thisArg, arguments);\n };\n}\n"],"names":[],"mappings":";AAEA,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAA;AACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CA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A,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,EAAE,CAAC,CAAA,CAAA,CAAA,CAAA,CAAK,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,CAAA,CAAE,SAAS,CAAC;AACvC,CAAA,CAAE,CAAC;AACH;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
import utils from '../utils.js';
|
|
3
|
+
import AxiosURLSearchParams from './AxiosURLSearchParams.js';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* It replaces all instances of the characters `:`, `$`, `,`, `+`, `[`, and `]` with their
|
|
7
|
+
* URI encoded counterparts
|
|
8
|
+
*
|
|
9
|
+
* @param {string} val The value to be encoded.
|
|
10
|
+
*
|
|
11
|
+
* @returns {string} The encoded value.
|
|
12
|
+
*/
|
|
13
|
+
function encode(val) {
|
|
14
|
+
return encodeURIComponent(val).
|
|
15
|
+
replace(/%3A/gi, ':').
|
|
16
|
+
replace(/%24/g, '$').
|
|
17
|
+
replace(/%2C/gi, ',').
|
|
18
|
+
replace(/%20/g, '+');
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Build a URL by appending params to the end
|
|
23
|
+
*
|
|
24
|
+
* @param {string} url The base of the url (e.g., http://www.google.com)
|
|
25
|
+
* @param {object} [params] The params to be appended
|
|
26
|
+
* @param {?(object|Function)} options
|
|
27
|
+
*
|
|
28
|
+
* @returns {string} The formatted url
|
|
29
|
+
*/
|
|
30
|
+
function buildURL(url, params, options) {
|
|
31
|
+
/*eslint no-param-reassign:0*/
|
|
32
|
+
if (!params) {
|
|
33
|
+
return url;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
const _encode = options && options.encode || encode;
|
|
37
|
+
|
|
38
|
+
if (utils.isFunction(options)) {
|
|
39
|
+
options = {
|
|
40
|
+
serialize: options
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
const serializeFn = options && options.serialize;
|
|
45
|
+
|
|
46
|
+
let serializedParams;
|
|
47
|
+
|
|
48
|
+
if (serializeFn) {
|
|
49
|
+
serializedParams = serializeFn(params, options);
|
|
50
|
+
} else {
|
|
51
|
+
serializedParams = utils.isURLSearchParams(params) ?
|
|
52
|
+
params.toString() :
|
|
53
|
+
new AxiosURLSearchParams(params, options).toString(_encode);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
if (serializedParams) {
|
|
57
|
+
const hashmarkIndex = url.indexOf("#");
|
|
58
|
+
|
|
59
|
+
if (hashmarkIndex !== -1) {
|
|
60
|
+
url = url.slice(0, hashmarkIndex);
|
|
61
|
+
}
|
|
62
|
+
url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
return url;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export { buildURL as default };
|
|
69
|
+
//# sourceMappingURL=buildURL.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"buildURL.js","sources":["../../../../../node_modules/axios/lib/helpers/buildURL.js"],"sourcesContent":["'use strict';\n\nimport utils from '../utils.js';\nimport AxiosURLSearchParams from '../helpers/AxiosURLSearchParams.js';\n\n/**\n * It replaces all instances of the characters `:`, `$`, `,`, `+`, `[`, and `]` with their\n * URI encoded counterparts\n *\n * @param {string} val The value to be encoded.\n *\n * @returns {string} The encoded value.\n */\nfunction encode(val) {\n return encodeURIComponent(val).\n replace(/%3A/gi, ':').\n replace(/%24/g, '$').\n replace(/%2C/gi, ',').\n replace(/%20/g, '+');\n}\n\n/**\n * Build a URL by appending params to the end\n *\n * @param {string} url The base of the url (e.g., http://www.google.com)\n * @param {object} [params] The params to be appended\n * @param {?(object|Function)} options\n *\n * @returns {string} The formatted url\n */\nexport default function buildURL(url, params, options) {\n /*eslint no-param-reassign:0*/\n if (!params) {\n return url;\n }\n \n const _encode = options && options.encode || encode;\n\n if (utils.isFunction(options)) {\n options = {\n serialize: options\n };\n } \n\n const serializeFn = options && options.serialize;\n\n let serializedParams;\n\n if (serializeFn) {\n serializedParams = serializeFn(params, options);\n } else {\n serializedParams = utils.isURLSearchParams(params) ?\n params.toString() :\n new AxiosURLSearchParams(params, options).toString(_encode);\n }\n\n if (serializedParams) {\n const hashmarkIndex = url.indexOf(\"#\");\n\n if (hashmarkIndex !== -1) {\n url = url.slice(0, hashmarkIndex);\n }\n url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;\n }\n\n return url;\n}\n"],"names":[],"mappings":";;;;AAKA,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAA;AACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAA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AAA,CAAI,CAAC,CAAA,CAAA,CAAG,CAAC,OAAO,CAAC,CAAA,CAAA,CAAG,CAAC,CAAA,CAAA,CAAA,CAAA,CAAK,EAAE,CAAA,CAAA,CAAG,CAAA,CAAA,CAAG,CAAA,CAAA,CAAG,CAAA,CAAA,CAAG,IAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAgB;AACnE,CAAA,CAAE;;AAEF,CAAA,CAAE,OAAO,CAAA,CAAA,CAAG;AACZ;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import utils from '../utils.js';
|
|
2
|
+
|
|
3
|
+
const callbackify = (fn, reducer) => {
|
|
4
|
+
return utils.isAsyncFn(fn) ? function (...args) {
|
|
5
|
+
const cb = args.pop();
|
|
6
|
+
fn.apply(this, args).then((value) => {
|
|
7
|
+
try {
|
|
8
|
+
reducer ? cb(null, ...reducer(value)) : cb(null, value);
|
|
9
|
+
} catch (err) {
|
|
10
|
+
cb(err);
|
|
11
|
+
}
|
|
12
|
+
}, cb);
|
|
13
|
+
} : fn;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export { callbackify as default };
|
|
17
|
+
//# sourceMappingURL=callbackify.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"callbackify.js","sources":["../../../../../node_modules/axios/lib/helpers/callbackify.js"],"sourcesContent":["import utils from \"../utils.js\";\n\nconst callbackify = (fn, reducer) => {\n return utils.isAsyncFn(fn) ? function (...args) {\n const cb = args.pop();\n fn.apply(this, args).then((value) => {\n try {\n reducer ? cb(null, ...reducer(value)) : cb(null, value);\n } catch (err) {\n cb(err);\n }\n }, cb);\n } : fn;\n}\n\nexport default callbackify;\n"],"names":[],"mappings":";;AAEK,MAAC,WAAW,GAAG,CAAC,EAAE,EAAE,OAAO,KAAK;AACrC,EAAE,OAAO,KAAK,CAAC,SAAS,CAAC,EAAE,CAAC,GAAG,UAAU,GAAG,IAAI,EAAE;AAClD,IAAI,MAAM,EAAE,GAAG,IAAI,CAAC,GAAG,EAAE;AACzB,IAAI,EAAE,CAAC,KAAK,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,KAAK,KAAK;AACzC,MAAM,IAAI;AACV,QAAQ,OAAO,GAAG,EAAE,CAAC,IAAI,EAAE,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,CAAC,IAAI,EAAE,KAAK,CAAC;AAC/D,MAAM,CAAC,CAAC,OAAO,GAAG,EAAE;AACpB,QAAQ,EAAE,CAAC,GAAG,CAAC;AACf,MAAM;AACN,IAAI,CAAC,EAAE,EAAE,CAAC;AACV,EAAE,CAAC,GAAG,EAAE;AACR;;;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
/**
|
|
3
|
+
* Creates a new URL by combining the specified URLs
|
|
4
|
+
*
|
|
5
|
+
* @param {string} baseURL The base URL
|
|
6
|
+
* @param {string} relativeURL The relative URL
|
|
7
|
+
*
|
|
8
|
+
* @returns {string} The combined URL
|
|
9
|
+
*/
|
|
10
|
+
function combineURLs(baseURL, relativeURL) {
|
|
11
|
+
return relativeURL
|
|
12
|
+
? baseURL.replace(/\/?\/$/, '') + '/' + relativeURL.replace(/^\/+/, '')
|
|
13
|
+
: baseURL;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export { combineURLs as default };
|
|
17
|
+
//# sourceMappingURL=combineURLs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"combineURLs.js","sources":["../../../../../node_modules/axios/lib/helpers/combineURLs.js"],"sourcesContent":["'use strict';\n\n/**\n * Creates a new URL by combining the specified URLs\n *\n * @param {string} baseURL The base URL\n * @param {string} relativeURL The relative URL\n *\n * @returns {string} The combined URL\n */\nexport default function combineURLs(baseURL, relativeURL) {\n return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AA,CAAA,CAAA,CAAA,CAAS,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAW,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,CAAA,CAAE,WAAW,CAAA,CAAE;AAC1D,CAAA,CAAE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACT,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,OAAO,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,EAAE,CAAA,CAAE,CAAC,CAAA,CAAA,CAAG,CAAA,CAAA,CAAG,GAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAW,CAAC,OAAO,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,EAAE,CAAA,CAAE;AAC1E,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO;AACb;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import CanceledError from '../cancel/CanceledError.js';
|
|
2
|
+
import AxiosError from '../core/AxiosError.js';
|
|
3
|
+
import utils from '../utils.js';
|
|
4
|
+
|
|
5
|
+
const composeSignals = (signals, timeout) => {
|
|
6
|
+
const {length} = (signals = signals ? signals.filter(Boolean) : []);
|
|
7
|
+
|
|
8
|
+
if (timeout || length) {
|
|
9
|
+
let controller = new AbortController();
|
|
10
|
+
|
|
11
|
+
let aborted;
|
|
12
|
+
|
|
13
|
+
const onabort = function (reason) {
|
|
14
|
+
if (!aborted) {
|
|
15
|
+
aborted = true;
|
|
16
|
+
unsubscribe();
|
|
17
|
+
const err = reason instanceof Error ? reason : this.reason;
|
|
18
|
+
controller.abort(err instanceof AxiosError ? err : new CanceledError(err instanceof Error ? err.message : err));
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
let timer = timeout && setTimeout(() => {
|
|
23
|
+
timer = null;
|
|
24
|
+
onabort(new AxiosError(`timeout ${timeout} of ms exceeded`, AxiosError.ETIMEDOUT));
|
|
25
|
+
}, timeout);
|
|
26
|
+
|
|
27
|
+
const unsubscribe = () => {
|
|
28
|
+
if (signals) {
|
|
29
|
+
timer && clearTimeout(timer);
|
|
30
|
+
timer = null;
|
|
31
|
+
signals.forEach(signal => {
|
|
32
|
+
signal.unsubscribe ? signal.unsubscribe(onabort) : signal.removeEventListener('abort', onabort);
|
|
33
|
+
});
|
|
34
|
+
signals = null;
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
signals.forEach((signal) => signal.addEventListener('abort', onabort));
|
|
39
|
+
|
|
40
|
+
const {signal} = controller;
|
|
41
|
+
|
|
42
|
+
signal.unsubscribe = () => utils.asap(unsubscribe);
|
|
43
|
+
|
|
44
|
+
return signal;
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
export { composeSignals as default };
|
|
49
|
+
//# sourceMappingURL=composeSignals.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"composeSignals.js","sources":["../../../../../node_modules/axios/lib/helpers/composeSignals.js"],"sourcesContent":["import CanceledError from \"../cancel/CanceledError.js\";\nimport AxiosError from \"../core/AxiosError.js\";\nimport utils from '../utils.js';\n\nconst composeSignals = (signals, timeout) => {\n const {length} = (signals = signals ? signals.filter(Boolean) : []);\n\n if (timeout || length) {\n let controller = new AbortController();\n\n let aborted;\n\n const onabort = function (reason) {\n if (!aborted) {\n aborted = true;\n unsubscribe();\n const err = reason instanceof Error ? reason : this.reason;\n controller.abort(err instanceof AxiosError ? err : new CanceledError(err instanceof Error ? err.message : err));\n }\n }\n\n let timer = timeout && setTimeout(() => {\n timer = null;\n onabort(new AxiosError(`timeout ${timeout} of ms exceeded`, AxiosError.ETIMEDOUT))\n }, timeout)\n\n const unsubscribe = () => {\n if (signals) {\n timer && clearTimeout(timer);\n timer = null;\n signals.forEach(signal => {\n signal.unsubscribe ? signal.unsubscribe(onabort) : signal.removeEventListener('abort', onabort);\n });\n signals = null;\n }\n }\n\n signals.forEach((signal) => signal.addEventListener('abort', onabort));\n\n const {signal} = controller;\n\n signal.unsubscribe = () => utils.asap(unsubscribe);\n\n return signal;\n }\n}\n\nexport default composeSignals;\n"],"names":[],"mappings":";;;;AAIK,MAAC,cAAc,GAAG,CAAC,OAAO,EAAE,OAAO,KAAK;AAC7C,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,OAAO,GAAG,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC;;AAErE,EAAE,IAAI,OAAO,IAAI,MAAM,EAAE;AACzB,IAAI,IAAI,UAAU,GAAG,IAAI,eAAe,EAAE;;AAE1C,IAAI,IAAI,OAAO;;AAEf,IAAI,MAAM,OAAO,GAAG,UAAU,MAAM,EAAE;AACtC,MAAM,IAAI,CAAC,OAAO,EAAE;AACpB,QAAQ,OAAO,GAAG,IAAI;AACtB,QAAQ,WAAW,EAAE;AACrB,QAAQ,MAAM,GAAG,GAAG,MAAM,YAAY,KAAK,GAAG,MAAM,GAAG,IAAI,CAAC,MAAM;AAClE,QAAQ,UAAU,CAAC,KAAK,CAAC,GAAG,YAAY,UAAU,GAAG,GAAG,GAAG,IAAI,aAAa,CAAC,GAAG,YAAY,KAAK,GAAG,GAAG,CAAC,OAAO,GAAG,GAAG,CAAC,CAAC;AACvH,MAAM;AACN,IAAI;;AAEJ,IAAI,IAAI,KAAK,GAAG,OAAO,IAAI,UAAU,CAAC,MAAM;AAC5C,MAAM,KAAK,GAAG,IAAI;AAClB,MAAM,OAAO,CAAC,IAAI,UAAU,CAAC,CAAC,QAAQ,EAAE,OAAO,CAAC,eAAe,CAAC,EAAE,UAAU,CAAC,SAAS,CAAC;AACvF,IAAI,CAAC,EAAE,OAAO;;AAEd,IAAI,MAAM,WAAW,GAAG,MAAM;AAC9B,MAAM,IAAI,OAAO,EAAE;AACnB,QAAQ,KAAK,IAAI,YAAY,CAAC,KAAK,CAAC;AACpC,QAAQ,KAAK,GAAG,IAAI;AACpB,QAAQ,OAAO,CAAC,OAAO,CAAC,MAAM,IAAI;AAClC,UAAU,MAAM,CAAC,WAAW,GAAG,MAAM,CAAC,WAAW,CAAC,OAAO,CAAC,GAAG,MAAM,CAAC,mBAAmB,CAAC,OAAO,EAAE,OAAO,CAAC;AACzG,QAAQ,CAAC,CAAC;AACV,QAAQ,OAAO,GAAG,IAAI;AACtB,MAAM;AACN,IAAI;;AAEJ,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC,MAAM,KAAK,MAAM,CAAC,gBAAgB,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;;AAE1E,IAAI,MAAM,CAAC,MAAM,CAAC,GAAG,UAAU;;AAE/B,IAAI,MAAM,CAAC,WAAW,GAAG,MAAM,KAAK,CAAC,IAAI,CAAC,WAAW,CAAC;;AAEtD,IAAI,OAAO,MAAM;AACjB,EAAE;AACF;;;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import utils from '../utils.js';
|
|
2
|
+
import platform from '../platform/index.js';
|
|
3
|
+
|
|
4
|
+
var cookies = platform.hasStandardBrowserEnv ?
|
|
5
|
+
|
|
6
|
+
// Standard browser envs support document.cookie
|
|
7
|
+
{
|
|
8
|
+
write(name, value, expires, path, domain, secure, sameSite) {
|
|
9
|
+
if (typeof document === 'undefined') return;
|
|
10
|
+
|
|
11
|
+
const cookie = [`${name}=${encodeURIComponent(value)}`];
|
|
12
|
+
|
|
13
|
+
if (utils.isNumber(expires)) {
|
|
14
|
+
cookie.push(`expires=${new Date(expires).toUTCString()}`);
|
|
15
|
+
}
|
|
16
|
+
if (utils.isString(path)) {
|
|
17
|
+
cookie.push(`path=${path}`);
|
|
18
|
+
}
|
|
19
|
+
if (utils.isString(domain)) {
|
|
20
|
+
cookie.push(`domain=${domain}`);
|
|
21
|
+
}
|
|
22
|
+
if (secure === true) {
|
|
23
|
+
cookie.push('secure');
|
|
24
|
+
}
|
|
25
|
+
if (utils.isString(sameSite)) {
|
|
26
|
+
cookie.push(`SameSite=${sameSite}`);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
document.cookie = cookie.join('; ');
|
|
30
|
+
},
|
|
31
|
+
|
|
32
|
+
read(name) {
|
|
33
|
+
if (typeof document === 'undefined') return null;
|
|
34
|
+
const match = document.cookie.match(new RegExp('(?:^|; )' + name + '=([^;]*)'));
|
|
35
|
+
return match ? decodeURIComponent(match[1]) : null;
|
|
36
|
+
},
|
|
37
|
+
|
|
38
|
+
remove(name) {
|
|
39
|
+
this.write(name, '', Date.now() - 86400000, '/');
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
:
|
|
44
|
+
|
|
45
|
+
// Non-standard browser env (web workers, react-native) lack needed support.
|
|
46
|
+
{
|
|
47
|
+
write() {},
|
|
48
|
+
read() {
|
|
49
|
+
return null;
|
|
50
|
+
},
|
|
51
|
+
remove() {}
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
export { cookies as default };
|
|
55
|
+
//# sourceMappingURL=cookies.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cookies.js","sources":["../../../../../node_modules/axios/lib/helpers/cookies.js"],"sourcesContent":["import utils from './../utils.js';\nimport platform from '../platform/index.js';\n\nexport default platform.hasStandardBrowserEnv ?\n\n // Standard browser envs support document.cookie\n {\n write(name, value, expires, path, domain, secure, sameSite) {\n if (typeof document === 'undefined') return;\n\n const cookie = [`${name}=${encodeURIComponent(value)}`];\n\n if (utils.isNumber(expires)) {\n cookie.push(`expires=${new Date(expires).toUTCString()}`);\n }\n if (utils.isString(path)) {\n cookie.push(`path=${path}`);\n }\n if (utils.isString(domain)) {\n cookie.push(`domain=${domain}`);\n }\n if (secure === true) {\n cookie.push('secure');\n }\n if (utils.isString(sameSite)) {\n cookie.push(`SameSite=${sameSite}`);\n }\n\n document.cookie = cookie.join('; ');\n },\n\n read(name) {\n if (typeof document === 'undefined') return null;\n const match = document.cookie.match(new RegExp('(?:^|; )' + name + '=([^;]*)'));\n return match ? decodeURIComponent(match[1]) : null;\n },\n\n remove(name) {\n this.write(name, '', Date.now() - 86400000, '/');\n }\n }\n\n :\n\n // Non-standard browser env (web workers, react-native) lack needed support.\n {\n write() {},\n read() {\n return null;\n },\n remove() {}\n };\n\n"],"names":[],"mappings":";;;AAGA,cAAe,QAAQ,CAAC,qBAAqB;;AAE7C;AACA,EAAE;AACF,IAAI,KAAK,CAAC,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE;AAChE,MAAM,IAAI,OAAO,QAAQ,KAAK,WAAW,EAAE;;AAE3C,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,EAAE,kBAAkB,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;;AAE7D,MAAM,IAAI,KAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE;AACnC,QAAQ,MAAM,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,IAAI,IAAI,CAAC,OAAO,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC;AACjE,MAAM;AACN,MAAM,IAAI,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE;AAChC,QAAQ,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC;AACnC,MAAM;AACN,MAAM,IAAI,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE;AAClC,QAAQ,MAAM,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC;AACvC,MAAM;AACN,MAAM,IAAI,MAAM,KAAK,IAAI,EAAE;AAC3B,QAAQ,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC;AAC7B,MAAM;AACN,MAAM,IAAI,KAAK,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE;AACpC,QAAQ,MAAM,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC,CAAC;AAC3C,MAAM;;AAEN,MAAM,QAAQ,CAAC,MAAM,GAAG,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC;AACzC,IAAI,CAAC;;AAEL,IAAI,IAAI,CAAC,IAAI,EAAE;AACf,MAAM,IAAI,OAAO,QAAQ,KAAK,WAAW,EAAE,OAAO,IAAI;AACtD,MAAM,MAAM,KAAK,GAAG,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,MAAM,CAAC,UAAU,GAAG,IAAI,GAAG,UAAU,CAAC,CAAC;AACrF,MAAM,OAAO,KAAK,GAAG,kBAAkB,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,GAAG,IAAI;AACxD,IAAI,CAAC;;AAEL,IAAI,MAAM,CAAC,IAAI,EAAE;AACjB,MAAM,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,EAAE,EAAE,IAAI,CAAC,GAAG,EAAE,GAAG,QAAQ,EAAE,GAAG,CAAC;AACtD,IAAI;AACJ;;AAEA;;AAEA;AACA,EAAE;AACF,IAAI,KAAK,GAAG,CAAC,CAAC;AACd,IAAI,IAAI,GAAG;AACX,MAAM,OAAO,IAAI;AACjB,IAAI,CAAC;AACL,IAAI,MAAM,GAAG,CAAC;AACd,GAAG;;;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Estimate decoded byte length of a data:// URL *without* allocating large buffers.
|
|
3
|
+
* - For base64: compute exact decoded size using length and padding;
|
|
4
|
+
* handle %XX at the character-count level (no string allocation).
|
|
5
|
+
* - For non-base64: use UTF-8 byteLength of the encoded body as a safe upper bound.
|
|
6
|
+
*
|
|
7
|
+
* @param {string} url
|
|
8
|
+
* @returns {number}
|
|
9
|
+
*/
|
|
10
|
+
function estimateDataURLDecodedBytes(url) {
|
|
11
|
+
if (!url || typeof url !== 'string') return 0;
|
|
12
|
+
if (!url.startsWith('data:')) return 0;
|
|
13
|
+
|
|
14
|
+
const comma = url.indexOf(',');
|
|
15
|
+
if (comma < 0) return 0;
|
|
16
|
+
|
|
17
|
+
const meta = url.slice(5, comma);
|
|
18
|
+
const body = url.slice(comma + 1);
|
|
19
|
+
const isBase64 = /;base64/i.test(meta);
|
|
20
|
+
|
|
21
|
+
if (isBase64) {
|
|
22
|
+
let effectiveLen = body.length;
|
|
23
|
+
const len = body.length; // cache length
|
|
24
|
+
|
|
25
|
+
for (let i = 0; i < len; i++) {
|
|
26
|
+
if (body.charCodeAt(i) === 37 /* '%' */ && i + 2 < len) {
|
|
27
|
+
const a = body.charCodeAt(i + 1);
|
|
28
|
+
const b = body.charCodeAt(i + 2);
|
|
29
|
+
const isHex =
|
|
30
|
+
((a >= 48 && a <= 57) || (a >= 65 && a <= 70) || (a >= 97 && a <= 102)) &&
|
|
31
|
+
((b >= 48 && b <= 57) || (b >= 65 && b <= 70) || (b >= 97 && b <= 102));
|
|
32
|
+
|
|
33
|
+
if (isHex) {
|
|
34
|
+
effectiveLen -= 2;
|
|
35
|
+
i += 2;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
let pad = 0;
|
|
41
|
+
let idx = len - 1;
|
|
42
|
+
|
|
43
|
+
const tailIsPct3D = (j) =>
|
|
44
|
+
j >= 2 &&
|
|
45
|
+
body.charCodeAt(j - 2) === 37 && // '%'
|
|
46
|
+
body.charCodeAt(j - 1) === 51 && // '3'
|
|
47
|
+
(body.charCodeAt(j) === 68 || body.charCodeAt(j) === 100); // 'D' or 'd'
|
|
48
|
+
|
|
49
|
+
if (idx >= 0) {
|
|
50
|
+
if (body.charCodeAt(idx) === 61 /* '=' */) {
|
|
51
|
+
pad++;
|
|
52
|
+
idx--;
|
|
53
|
+
} else if (tailIsPct3D(idx)) {
|
|
54
|
+
pad++;
|
|
55
|
+
idx -= 3;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
if (pad === 1 && idx >= 0) {
|
|
60
|
+
if (body.charCodeAt(idx) === 61 /* '=' */) {
|
|
61
|
+
pad++;
|
|
62
|
+
} else if (tailIsPct3D(idx)) {
|
|
63
|
+
pad++;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
const groups = Math.floor(effectiveLen / 4);
|
|
68
|
+
const bytes = groups * 3 - (pad || 0);
|
|
69
|
+
return bytes > 0 ? bytes : 0;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
return Buffer.byteLength(body, 'utf8');
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export { estimateDataURLDecodedBytes as default };
|
|
76
|
+
//# sourceMappingURL=estimateDataURLDecodedBytes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"estimateDataURLDecodedBytes.js","sources":["../../../../../node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js"],"sourcesContent":["/**\n * Estimate decoded byte length of a data:// URL *without* allocating large buffers.\n * - For base64: compute exact decoded size using length and padding;\n * handle %XX at the character-count level (no string allocation).\n * - For non-base64: use UTF-8 byteLength of the encoded body as a safe upper bound.\n *\n * @param {string} url\n * @returns {number}\n */\nexport default function estimateDataURLDecodedBytes(url) {\n if (!url || typeof url !== 'string') return 0;\n if (!url.startsWith('data:')) return 0;\n\n const comma = url.indexOf(',');\n if (comma < 0) return 0;\n\n const meta = url.slice(5, comma);\n const body = url.slice(comma + 1);\n const isBase64 = /;base64/i.test(meta);\n\n if (isBase64) {\n let effectiveLen = body.length;\n const len = body.length; // cache length\n\n for (let i = 0; i < len; i++) {\n if (body.charCodeAt(i) === 37 /* '%' */ && i + 2 < len) {\n const a = body.charCodeAt(i + 1);\n const b = body.charCodeAt(i + 2);\n const isHex =\n ((a >= 48 && a <= 57) || (a >= 65 && a <= 70) || (a >= 97 && a <= 102)) &&\n ((b >= 48 && b <= 57) || (b >= 65 && b <= 70) || (b >= 97 && b <= 102));\n\n if (isHex) {\n effectiveLen -= 2;\n i += 2;\n }\n }\n }\n\n let pad = 0;\n let idx = len - 1;\n\n const tailIsPct3D = (j) =>\n j >= 2 &&\n body.charCodeAt(j - 2) === 37 && // '%'\n body.charCodeAt(j - 1) === 51 && // '3'\n (body.charCodeAt(j) === 68 || body.charCodeAt(j) === 100); // 'D' or 'd'\n\n if (idx >= 0) {\n if (body.charCodeAt(idx) === 61 /* '=' */) {\n pad++;\n idx--;\n } else if (tailIsPct3D(idx)) {\n pad++;\n idx -= 3;\n }\n }\n\n if (pad === 1 && idx >= 0) {\n if (body.charCodeAt(idx) === 61 /* '=' */) {\n pad++;\n } else if (tailIsPct3D(idx)) {\n pad++;\n }\n }\n\n const groups = Math.floor(effectiveLen / 4);\n const bytes = groups * 3 - (pad || 0);\n return bytes > 0 ? bytes : 0;\n }\n\n return Buffer.byteLength(body, 'utf8');\n}\n"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACe,SAAS,2BAA2B,CAAC,GAAG,EAAE;AACzD,EAAE,IAAI,CAAC,GAAG,IAAI,OAAO,GAAG,KAAK,QAAQ,EAAE,OAAO,CAAC;AAC/C,EAAE,IAAI,CAAC,GAAG,CAAC,UAAU,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC;;AAExC,EAAE,MAAM,KAAK,GAAG,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC;AAChC,EAAE,IAAI,KAAK,GAAG,CAAC,EAAE,OAAO,CAAC;;AAEzB,EAAE,MAAM,IAAI,GAAG,GAAG,CAAC,KAAK,CAAC,CAAC,EAAE,KAAK,CAAC;AAClC,EAAE,MAAM,IAA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