@hkyhy/marsun-components-core 0.1.18 → 0.1.19
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/dist/components/Auth/ProtectedRoute.js +20 -14
- package/dist/components/Auth/ProtectedRoute.js.map +1 -1
- package/dist/components/File/index.d.ts +2 -0
- package/dist/components/File/utils/download.d.ts +20 -0
- package/dist/components/File/utils/download.js +30 -0
- package/dist/components/File/utils/download.js.map +1 -0
- package/dist/components/Filter/types.d.ts +1 -0
- package/dist/components/Filter/types.js.map +1 -1
- package/dist/index.d.ts +14 -0
- package/dist/index.js +361 -298
- package/dist/index.js.map +1 -1
- package/dist/node_modules/axios/index.js +41 -0
- package/dist/node_modules/axios/index.js.map +1 -0
- package/dist/node_modules/axios/lib/adapters/adapters.js +66 -0
- package/dist/node_modules/axios/lib/adapters/adapters.js.map +1 -0
- package/dist/node_modules/axios/lib/adapters/fetch.js +324 -0
- package/dist/node_modules/axios/lib/adapters/fetch.js.map +1 -0
- package/dist/node_modules/axios/lib/adapters/xhr.js +86 -0
- package/dist/node_modules/axios/lib/adapters/xhr.js.map +1 -0
- package/dist/node_modules/axios/lib/axios.js +47 -0
- package/dist/node_modules/axios/lib/axios.js.map +1 -0
- package/dist/node_modules/axios/lib/cancel/CancelToken.js +78 -0
- package/dist/node_modules/axios/lib/cancel/CancelToken.js.map +1 -0
- package/dist/node_modules/axios/lib/cancel/CanceledError.js +19 -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 +168 -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 +193 -0
- package/dist/node_modules/axios/lib/core/AxiosHeaders.js.map +1 -0
- package/dist/node_modules/axios/lib/core/InterceptorManager.js +60 -0
- package/dist/node_modules/axios/lib/core/InterceptorManager.js.map +1 -0
- package/dist/node_modules/axios/lib/core/buildFullPath.js +30 -0
- package/dist/node_modules/axios/lib/core/buildFullPath.js.map +1 -0
- package/dist/node_modules/axios/lib/core/dispatchRequest.js +43 -0
- package/dist/node_modules/axios/lib/core/dispatchRequest.js.map +1 -0
- package/dist/node_modules/axios/lib/core/mergeConfig.js +94 -0
- package/dist/node_modules/axios/lib/core/mergeConfig.js.map +1 -0
- package/dist/node_modules/axios/lib/core/settle.js +15 -0
- package/dist/node_modules/axios/lib/core/settle.js.map +1 -0
- package/dist/node_modules/axios/lib/core/transformData.js +14 -0
- package/dist/node_modules/axios/lib/core/transformData.js.map +1 -0
- package/dist/node_modules/axios/lib/defaults/index.js +96 -0
- package/dist/node_modules/axios/lib/defaults/index.js.map +1 -0
- package/dist/node_modules/axios/lib/defaults/transitional.js +12 -0
- package/dist/node_modules/axios/lib/defaults/transitional.js.map +1 -0
- package/dist/node_modules/axios/lib/env/data.js +5 -0
- package/dist/node_modules/axios/lib/env/data.js.map +1 -0
- package/dist/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +31 -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/bind.js +9 -0
- package/dist/node_modules/axios/lib/helpers/bind.js.map +1 -0
- package/dist/node_modules/axios/lib/helpers/buildURL.js +24 -0
- package/dist/node_modules/axios/lib/helpers/buildURL.js.map +1 -0
- package/dist/node_modules/axios/lib/helpers/combineURLs.js +7 -0
- package/dist/node_modules/axios/lib/helpers/combineURLs.js.map +1 -0
- package/dist/node_modules/axios/lib/helpers/composeSignals.js +33 -0
- package/dist/node_modules/axios/lib/helpers/composeSignals.js.map +1 -0
- package/dist/node_modules/axios/lib/helpers/cookies.js +44 -0
- package/dist/node_modules/axios/lib/helpers/cookies.js.map +1 -0
- package/dist/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js +43 -0
- package/dist/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js.map +1 -0
- package/dist/node_modules/axios/lib/helpers/formDataToJSON.js +47 -0
- package/dist/node_modules/axios/lib/helpers/formDataToJSON.js.map +1 -0
- package/dist/node_modules/axios/lib/helpers/isAbsoluteURL.js +7 -0
- package/dist/node_modules/axios/lib/helpers/isAbsoluteURL.js.map +1 -0
- package/dist/node_modules/axios/lib/helpers/isAxiosError.js +8 -0
- package/dist/node_modules/axios/lib/helpers/isAxiosError.js.map +1 -0
- package/dist/node_modules/axios/lib/helpers/isURLSameOrigin.js +9 -0
- package/dist/node_modules/axios/lib/helpers/isURLSameOrigin.js.map +1 -0
- package/dist/node_modules/axios/lib/helpers/null.js +5 -0
- package/dist/node_modules/axios/lib/helpers/null.js.map +1 -0
- package/dist/node_modules/axios/lib/helpers/parseHeaders.js +31 -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 +41 -0
- package/dist/node_modules/axios/lib/helpers/progressEventReducer.js.map +1 -0
- package/dist/node_modules/axios/lib/helpers/resolveConfig.js +54 -0
- package/dist/node_modules/axios/lib/helpers/resolveConfig.js.map +1 -0
- package/dist/node_modules/axios/lib/helpers/sanitizeHeaderValue.js +34 -0
- package/dist/node_modules/axios/lib/helpers/sanitizeHeaderValue.js.map +1 -0
- package/dist/node_modules/axios/lib/helpers/speedometer.js +20 -0
- package/dist/node_modules/axios/lib/helpers/speedometer.js.map +1 -0
- package/dist/node_modules/axios/lib/helpers/spread.js +9 -0
- package/dist/node_modules/axios/lib/helpers/spread.js.map +1 -0
- package/dist/node_modules/axios/lib/helpers/throttle.js +16 -0
- package/dist/node_modules/axios/lib/helpers/throttle.js.map +1 -0
- package/dist/node_modules/axios/lib/helpers/toFormData.js +115 -0
- package/dist/node_modules/axios/lib/helpers/toFormData.js.map +1 -0
- package/dist/node_modules/axios/lib/helpers/toURLEncodedForm.js +15 -0
- package/dist/node_modules/axios/lib/helpers/toURLEncodedForm.js.map +1 -0
- package/dist/node_modules/axios/lib/helpers/trackStream.js +67 -0
- package/dist/node_modules/axios/lib/helpers/trackStream.js.map +1 -0
- package/dist/node_modules/axios/lib/helpers/validator.js +58 -0
- package/dist/node_modules/axios/lib/helpers/validator.js.map +1 -0
- package/dist/node_modules/axios/lib/platform/browser/classes/Blob.js +5 -0
- package/dist/node_modules/axios/lib/platform/browser/classes/Blob.js.map +1 -0
- package/dist/node_modules/axios/lib/platform/browser/classes/FormData.js +5 -0
- package/dist/node_modules/axios/lib/platform/browser/classes/FormData.js.map +1 -0
- package/dist/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js +6 -0
- package/dist/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js.map +1 -0
- package/dist/node_modules/axios/lib/platform/browser/index.js +16 -0
- package/dist/node_modules/axios/lib/platform/browser/index.js.map +1 -0
- package/dist/node_modules/axios/lib/platform/common/utils.js +10 -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/utils.js +303 -0
- package/dist/node_modules/axios/lib/utils.js.map +1 -0
- package/dist/types/auth.d.ts +18 -0
- package/dist/utils/authRedirect.d.ts +6 -0
- package/dist/utils/authRedirect.js +33 -0
- package/dist/utils/authRedirect.js.map +1 -0
- package/dist/utils/createMarsunRequest.d.ts +26 -0
- package/dist/utils/createMarsunRequest.js +53 -0
- package/dist/utils/createMarsunRequest.js.map +1 -0
- package/dist/utils/date.d.ts +4 -0
- package/dist/utils/date.js +11 -0
- package/dist/utils/date.js.map +1 -0
- package/dist/utils/department/departmentPath.d.ts +18 -0
- package/dist/utils/department/departmentPath.js +63 -0
- package/dist/utils/department/departmentPath.js.map +1 -0
- package/dist/utils/department/departmentScope.d.ts +20 -0
- package/dist/utils/department/departmentScope.js +63 -0
- package/dist/utils/department/departmentScope.js.map +1 -0
- package/dist/utils/department/types.d.ts +12 -0
- package/dist/utils/permissionStorage.d.ts +13 -0
- package/dist/utils/permissionStorage.js +43 -0
- package/dist/utils/permissionStorage.js.map +1 -0
- package/dist/utils/personOption.d.ts +49 -0
- package/dist/utils/personOption.js +90 -0
- package/dist/utils/personOption.js.map +1 -0
- package/dist/utils/sessionActivity.d.ts +5 -0
- package/dist/utils/sessionActivity.js +18 -0
- package/dist/utils/sessionActivity.js.map +1 -0
- package/dist/utils/user/employeeId.d.ts +8 -0
- package/dist/utils/user/employeeId.js +14 -0
- package/dist/utils/user/employeeId.js.map +1 -0
- package/package.json +24 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../node_modules/axios/lib/defaults/index.js"],"sourcesContent":["'use strict';\n\nimport utils from '../utils.js';\nimport AxiosError from '../core/AxiosError.js';\nimport transitionalDefaults from './transitional.js';\nimport toFormData from '../helpers/toFormData.js';\nimport toURLEncodedForm from '../helpers/toURLEncodedForm.js';\nimport platform from '../platform/index.js';\nimport formDataToJSON from '../helpers/formDataToJSON.js';\n\nconst own = (obj, key) => (obj != null && utils.hasOwnProp(obj, key) ? obj[key] : undefined);\n\n/**\n * It takes a string, tries to parse it, and if it fails, it returns the stringified version\n * of the input\n *\n * @param {any} rawValue - The value to be stringified.\n * @param {Function} parser - A function that parses a string into a JavaScript object.\n * @param {Function} encoder - A function that takes a value and returns a string.\n *\n * @returns {string} A stringified version of the rawValue.\n */\nfunction stringifySafely(rawValue, parser, encoder) {\n if (utils.isString(rawValue)) {\n try {\n (parser || JSON.parse)(rawValue);\n return utils.trim(rawValue);\n } catch (e) {\n if (e.name !== 'SyntaxError') {\n throw e;\n }\n }\n }\n\n return (encoder || JSON.stringify)(rawValue);\n}\n\nconst defaults = {\n transitional: transitionalDefaults,\n\n adapter: ['xhr', 'http', 'fetch'],\n\n transformRequest: [\n function transformRequest(data, headers) {\n const contentType = headers.getContentType() || '';\n const hasJSONContentType = contentType.indexOf('application/json') > -1;\n const isObjectPayload = utils.isObject(data);\n\n if (isObjectPayload && utils.isHTMLForm(data)) {\n data = new FormData(data);\n }\n\n const isFormData = utils.isFormData(data);\n\n if (isFormData) {\n return hasJSONContentType ? JSON.stringify(formDataToJSON(data)) : data;\n }\n\n if (\n utils.isArrayBuffer(data) ||\n utils.isBuffer(data) ||\n utils.isStream(data) ||\n utils.isFile(data) ||\n utils.isBlob(data) ||\n utils.isReadableStream(data)\n ) {\n return data;\n }\n if (utils.isArrayBufferView(data)) {\n return data.buffer;\n }\n if (utils.isURLSearchParams(data)) {\n headers.setContentType('application/x-www-form-urlencoded;charset=utf-8', false);\n return data.toString();\n }\n\n let isFileList;\n\n if (isObjectPayload) {\n const formSerializer = own(this, 'formSerializer');\n if (contentType.indexOf('application/x-www-form-urlencoded') > -1) {\n return toURLEncodedForm(data, formSerializer).toString();\n }\n\n if (\n (isFileList = utils.isFileList(data)) ||\n contentType.indexOf('multipart/form-data') > -1\n ) {\n const env = own(this, 'env');\n const _FormData = env && env.FormData;\n\n return toFormData(\n isFileList ? { 'files[]': data } : data,\n _FormData && new _FormData(),\n formSerializer\n );\n }\n }\n\n if (isObjectPayload || hasJSONContentType) {\n headers.setContentType('application/json', false);\n return stringifySafely(data);\n }\n\n return data;\n },\n ],\n\n transformResponse: [\n function transformResponse(data) {\n const transitional = own(this, 'transitional') || defaults.transitional;\n const forcedJSONParsing = transitional && transitional.forcedJSONParsing;\n const responseType = own(this, 'responseType');\n const JSONRequested = responseType === 'json';\n\n if (utils.isResponse(data) || utils.isReadableStream(data)) {\n return data;\n }\n\n if (\n data &&\n utils.isString(data) &&\n ((forcedJSONParsing && !responseType) || JSONRequested)\n ) {\n const silentJSONParsing = transitional && transitional.silentJSONParsing;\n const strictJSONParsing = !silentJSONParsing && JSONRequested;\n\n try {\n return JSON.parse(data, own(this, 'parseReviver'));\n } catch (e) {\n if (strictJSONParsing) {\n if (e.name === 'SyntaxError') {\n throw AxiosError.from(e, AxiosError.ERR_BAD_RESPONSE, this, null, own(this, 'response'));\n }\n throw e;\n }\n }\n }\n\n return data;\n },\n ],\n\n /**\n * A timeout in milliseconds to abort a request. If set to 0 (default) a\n * timeout is not created.\n */\n timeout: 0,\n\n xsrfCookieName: 'XSRF-TOKEN',\n xsrfHeaderName: 'X-XSRF-TOKEN',\n\n maxContentLength: -1,\n maxBodyLength: -1,\n\n env: {\n FormData: platform.classes.FormData,\n Blob: platform.classes.Blob,\n },\n\n validateStatus: function validateStatus(status) {\n return status >= 200 && status < 300;\n },\n\n headers: {\n common: {\n Accept: 'application/json, text/plain, */*',\n 'Content-Type': undefined,\n },\n },\n};\n\nutils.forEach(['delete', 'get', 'head', 'post', 'put', 'patch', 'query'], (method) => {\n defaults.headers[method] = {};\n});\n\nexport default defaults;\n"],"names":["own","obj","key","utils","stringifySafely","rawValue","parser","encoder","e","defaults","transitionalDefaults","data","headers","contentType","hasJSONContentType","isObjectPayload","formDataToJSON","isFileList","formSerializer","toURLEncodedForm","env","_FormData","toFormData","transitional","forcedJSONParsing","responseType","JSONRequested","strictJSONParsing","AxiosError","platform","status","method"],"mappings":";;;;;;;AAUA,MAAMA,IAAM,CAACC,GAAKC,MAASD,KAAO,QAAQE,EAAM,WAAWF,GAAKC,CAAG,IAAID,EAAIC,CAAG,IAAI;AAYlF,SAASE,EAAgBC,GAAUC,GAAQC,GAAS;AAClD,MAAIJ,EAAM,SAASE,CAAQ;AACzB,QAAI;AACF,cAACC,KAAU,KAAK,OAAOD,CAAQ,GACxBF,EAAM,KAAKE,CAAQ;AAAA,IAC5B,SAASG,GAAG;AACV,UAAIA,EAAE,SAAS;AACb,cAAMA;AAAA,IAEV;AAGF,UAAQD,KAAW,KAAK,WAAWF,CAAQ;AAC7C;AAEK,MAACI,IAAW;AAAA,EACf,cAAcC;AAAA,EAEd,SAAS,CAAC,OAAO,QAAQ,OAAO;AAAA,EAEhC,kBAAkB;AAAA,IAChB,SAA0BC,GAAMC,GAAS;AACvC,YAAMC,IAAcD,EAAQ,eAAc,KAAM,IAC1CE,IAAqBD,EAAY,QAAQ,kBAAkB,IAAI,IAC/DE,IAAkBZ,EAAM,SAASQ,CAAI;AAQ3C,UANII,KAAmBZ,EAAM,WAAWQ,CAAI,MAC1CA,IAAO,IAAI,SAASA,CAAI,IAGPR,EAAM,WAAWQ,CAAI;AAGtC,eAAOG,IAAqB,KAAK,UAAUE,EAAeL,CAAI,CAAC,IAAIA;AAGrE,UACER,EAAM,cAAcQ,CAAI,KACxBR,EAAM,SAASQ,CAAI,KACnBR,EAAM,SAASQ,CAAI,KACnBR,EAAM,OAAOQ,CAAI,KACjBR,EAAM,OAAOQ,CAAI,KACjBR,EAAM,iBAAiBQ,CAAI;AAE3B,eAAOA;AAET,UAAIR,EAAM,kBAAkBQ,CAAI;AAC9B,eAAOA,EAAK;AAEd,UAAIR,EAAM,kBAAkBQ,CAAI;AAC9B,eAAAC,EAAQ,eAAe,mDAAmD,EAAK,GACxED,EAAK,SAAQ;AAGtB,UAAIM;AAEJ,UAAIF,GAAiB;AACnB,cAAMG,IAAiBlB,EAAI,MAAM,gBAAgB;AACjD,YAAIa,EAAY,QAAQ,mCAAmC,IAAI;AAC7D,iBAAOM,EAAiBR,GAAMO,CAAc,EAAE,SAAQ;AAGxD,aACGD,IAAad,EAAM,WAAWQ,CAAI,MACnCE,EAAY,QAAQ,qBAAqB,IAAI,IAC7C;AACA,gBAAMO,IAAMpB,EAAI,MAAM,KAAK,GACrBqB,IAAYD,KAAOA,EAAI;AAE7B,iBAAOE;AAAA,YACLL,IAAa,EAAE,WAAWN,EAAI,IAAKA;AAAA,YACnCU,KAAa,IAAIA,EAAS;AAAA,YAC1BH;AAAA,UACZ;AAAA,QACQ;AAAA,MACF;AAEA,aAAIH,KAAmBD,KACrBF,EAAQ,eAAe,oBAAoB,EAAK,GACzCR,EAAgBO,CAAI,KAGtBA;AAAA,IACT;AAAA,EACJ;AAAA,EAEE,mBAAmB;AAAA,IACjB,SAA2BA,GAAM;AAC/B,YAAMY,IAAevB,EAAI,MAAM,cAAc,KAAKS,EAAS,cACrDe,IAAoBD,KAAgBA,EAAa,mBACjDE,IAAezB,EAAI,MAAM,cAAc,GACvC0B,IAAgBD,MAAiB;AAEvC,UAAItB,EAAM,WAAWQ,CAAI,KAAKR,EAAM,iBAAiBQ,CAAI;AACvD,eAAOA;AAGT,UACEA,KACAR,EAAM,SAASQ,CAAI,MACjBa,KAAqB,CAACC,KAAiBC,IACzC;AAEA,cAAMC,IAAoB,EADAJ,KAAgBA,EAAa,sBACPG;AAEhD,YAAI;AACF,iBAAO,KAAK,MAAMf,GAAMX,EAAI,MAAM,cAAc,CAAC;AAAA,QACnD,SAASQ,GAAG;AACV,cAAImB;AACF,kBAAInB,EAAE,SAAS,gBACPoB,EAAW,KAAKpB,GAAGoB,EAAW,kBAAkB,MAAM,MAAM5B,EAAI,MAAM,UAAU,CAAC,IAEnFQ;AAAA,QAEV;AAAA,MACF;AAEA,aAAOG;AAAA,IACT;AAAA,EACJ;AAAA;AAAA;AAAA;AAAA;AAAA,EAME,SAAS;AAAA,EAET,gBAAgB;AAAA,EAChB,gBAAgB;AAAA,EAEhB,kBAAkB;AAAA,EAClB,eAAe;AAAA,EAEf,KAAK;AAAA,IACH,UAAUkB,EAAS,QAAQ;AAAA,IAC3B,MAAMA,EAAS,QAAQ;AAAA,EAC3B;AAAA,EAEE,gBAAgB,SAAwBC,GAAQ;AAC9C,WAAOA,KAAU,OAAOA,IAAS;AAAA,EACnC;AAAA,EAEA,SAAS;AAAA,IACP,QAAQ;AAAA,MACN,QAAQ;AAAA,MACR,gBAAgB;AAAA,IACtB;AAAA,EACA;AACA;AAEA3B,EAAM,QAAQ,CAAC,UAAU,OAAO,QAAQ,QAAQ,OAAO,SAAS,OAAO,GAAG,CAAC4B,MAAW;AACpF,EAAAtB,EAAS,QAAQsB,CAAM,IAAI,CAAA;AAC7B,CAAC;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
const e = {
|
|
2
|
+
silentJSONParsing: !0,
|
|
3
|
+
forcedJSONParsing: !0,
|
|
4
|
+
clarifyTimeoutError: !1,
|
|
5
|
+
legacyInterceptorReqResOrdering: !0,
|
|
6
|
+
advertiseZstdAcceptEncoding: !1,
|
|
7
|
+
validateStatusUndefinedResolves: !0
|
|
8
|
+
};
|
|
9
|
+
export {
|
|
10
|
+
e as default
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=transitional.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transitional.js","sources":["../../../../../node_modules/axios/lib/defaults/transitional.js"],"sourcesContent":["'use strict';\n\nexport default {\n silentJSONParsing: true,\n forcedJSONParsing: true,\n clarifyTimeoutError: false,\n legacyInterceptorReqResOrdering: true,\n advertiseZstdAcceptEncoding: false,\n validateStatusUndefinedResolves: true,\n};\n"],"names":["transitionalDefaults"],"mappings":"AAEA,MAAAA,IAAe;AAAA,EACb,mBAAmB;AAAA,EACnB,mBAAmB;AAAA,EACnB,qBAAqB;AAAA,EACrB,iCAAiC;AAAA,EACjC,6BAA6B;AAAA,EAC7B,iCAAiC;AACnC;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data.js","sources":["../../../../../node_modules/axios/lib/env/data.js"],"sourcesContent":["export const VERSION = \"1.18.1\";"],"names":["VERSION"],"mappings":"AAAY,MAACA,IAAU;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import p from "./toFormData.js";
|
|
2
|
+
function i(n) {
|
|
3
|
+
const t = {
|
|
4
|
+
"!": "%21",
|
|
5
|
+
"'": "%27",
|
|
6
|
+
"(": "%28",
|
|
7
|
+
")": "%29",
|
|
8
|
+
"~": "%7E",
|
|
9
|
+
"%20": "+"
|
|
10
|
+
};
|
|
11
|
+
return encodeURIComponent(n).replace(/[!'()~]|%20/g, function(r) {
|
|
12
|
+
return t[r];
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
function a(n, t) {
|
|
16
|
+
this._pairs = [], n && p(n, this, t);
|
|
17
|
+
}
|
|
18
|
+
const c = a.prototype;
|
|
19
|
+
c.append = function(t, o) {
|
|
20
|
+
this._pairs.push([t, o]);
|
|
21
|
+
};
|
|
22
|
+
c.toString = function(t) {
|
|
23
|
+
const o = t ? (r) => t.call(this, r, i) : i;
|
|
24
|
+
return this._pairs.map(function(e) {
|
|
25
|
+
return o(e[0]) + "=" + o(e[1]);
|
|
26
|
+
}, "").join("&");
|
|
27
|
+
};
|
|
28
|
+
export {
|
|
29
|
+
a as default
|
|
30
|
+
};
|
|
31
|
+
//# 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 };\n return encodeURIComponent(str).replace(/[!'()~]|%20/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\n ? (value) => encoder.call(this, value, encode)\n : encode;\n\n return this._pairs\n .map(function each(pair) {\n return _encode(pair[0]) + '=' + _encode(pair[1]);\n }, '')\n .join('&');\n};\n\nexport default AxiosURLSearchParams;\n"],"names":["encode","str","charMap","match","AxiosURLSearchParams","params","options","toFormData","prototype","name","value","encoder","_encode","pair"],"mappings":";AAYA,SAASA,EAAOC,GAAK;AACnB,QAAMC,IAAU;AAAA,IACd,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,IACL,OAAO;AAAA,EACX;AACE,SAAO,mBAAmBD,CAAG,EAAE,QAAQ,gBAAgB,SAAkBE,GAAO;AAC9E,WAAOD,EAAQC,CAAK;AAAA,EACtB,CAAC;AACH;AAUA,SAASC,EAAqBC,GAAQC,GAAS;AAC7C,OAAK,SAAS,CAAA,GAEdD,KAAUE,EAAWF,GAAQ,MAAMC,CAAO;AAC5C;AAEA,MAAME,IAAYJ,EAAqB;AAEvCI,EAAU,SAAS,SAAgBC,GAAMC,GAAO;AAC9C,OAAK,OAAO,KAAK,CAACD,GAAMC,CAAK,CAAC;AAChC;AAEAF,EAAU,WAAW,SAAkBG,GAAS;AAC9C,QAAMC,IAAUD,IACZ,CAACD,MAAUC,EAAQ,KAAK,MAAMD,GAAOV,CAAM,IAC3CA;AAEJ,SAAO,KAAK,OACT,IAAI,SAAca,GAAM;AACvB,WAAOD,EAAQC,EAAK,CAAC,CAAC,IAAI,MAAMD,EAAQC,EAAK,CAAC,CAAC;AAAA,EACjD,GAAG,EAAE,EACJ,KAAK,GAAG;AACb;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
const e = {
|
|
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
|
+
Object.entries(e).forEach(([t, o]) => {
|
|
73
|
+
e[o] = t;
|
|
74
|
+
});
|
|
75
|
+
export {
|
|
76
|
+
e as default
|
|
77
|
+
};
|
|
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":["HttpStatusCode","key","value"],"mappings":"AAAK,MAACA,IAAiB;AAAA,EACrB,UAAU;AAAA,EACV,oBAAoB;AAAA,EACpB,YAAY;AAAA,EACZ,YAAY;AAAA,EACZ,IAAI;AAAA,EACJ,SAAS;AAAA,EACT,UAAU;AAAA,EACV,6BAA6B;AAAA,EAC7B,WAAW;AAAA,EACX,cAAc;AAAA,EACd,gBAAgB;AAAA,EAChB,aAAa;AAAA,EACb,iBAAiB;AAAA,EACjB,QAAQ;AAAA,EACR,iBAAiB;AAAA,EACjB,kBAAkB;AAAA,EAClB,OAAO;AAAA,EACP,UAAU;AAAA,EACV,aAAa;AAAA,EACb,UAAU;AAAA,EACV,QAAQ;AAAA,EACR,mBAAmB;AAAA,EACnB,mBAAmB;AAAA,EACnB,YAAY;AAAA,EACZ,cAAc;AAAA,EACd,iBAAiB;AAAA,EACjB,WAAW;AAAA,EACX,UAAU;AAAA,EACV,kBAAkB;AAAA,EAClB,eAAe;AAAA,EACf,6BAA6B;AAAA,EAC7B,gBAAgB;AAAA,EAChB,UAAU;AAAA,EACV,MAAM;AAAA,EACN,gBAAgB;AAAA,EAChB,oBAAoB;AAAA,EACpB,iBAAiB;AAAA,EACjB,YAAY;AAAA,EACZ,sBAAsB;AAAA,EACtB,qBAAqB;AAAA,EACrB,mBAAmB;AAAA,EACnB,WAAW;AAAA,EACX,oBAAoB;AAAA,EACpB,qBAAqB;AAAA,EACrB,QAAQ;AAAA,EACR,kBAAkB;AAAA,EAClB,UAAU;AAAA,EACV,iBAAiB;AAAA,EACjB,sBAAsB;AAAA,EACtB,iBAAiB;AAAA,EACjB,6BAA6B;AAAA,EAC7B,4BAA4B;AAAA,EAC5B,qBAAqB;AAAA,EACrB,gBAAgB;AAAA,EAChB,YAAY;AAAA,EACZ,oBAAoB;AAAA,EACpB,gBAAgB;AAAA,EAChB,yBAAyB;AAAA,EACzB,uBAAuB;AAAA,EACvB,qBAAqB;AAAA,EACrB,cAAc;AAAA,EACd,aAAa;AAAA,EACb,+BAA+B;AAAA,EAC/B,iBAAiB;AAAA,EACjB,oBAAoB;AAAA,EACpB,qBAAqB;AAAA,EACrB,iBAAiB;AAAA,EACjB,oBAAoB;AAAA,EACpB,uBAAuB;AACzB;AAEA,OAAO,QAAQA,CAAc,EAAE,QAAQ,CAAC,CAACC,GAAKC,CAAK,MAAM;AACvD,EAAAF,EAAeE,CAAK,IAAID;AAC1B,CAAC;","x_google_ignoreList":[0]}
|
|
@@ -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":["bind","fn","thisArg"],"mappings":"AASe,SAASA,EAAKC,GAAIC,GAAS;AACxC,SAAO,WAAgB;AACrB,WAAOD,EAAG,MAAMC,GAAS,SAAS;AAAA,EACpC;AACF;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import o from "../utils.js";
|
|
2
|
+
import f from "./AxiosURLSearchParams.js";
|
|
3
|
+
function d(e) {
|
|
4
|
+
return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
|
|
5
|
+
}
|
|
6
|
+
function S(e, i, c) {
|
|
7
|
+
if (!i)
|
|
8
|
+
return e;
|
|
9
|
+
e = e || "";
|
|
10
|
+
const n = o.isFunction(c) ? {
|
|
11
|
+
serialize: c
|
|
12
|
+
} : c, s = o.getSafeProp(n, "encode") || d, r = o.getSafeProp(n, "serialize");
|
|
13
|
+
let t;
|
|
14
|
+
if (r ? t = r(i, n) : t = o.isURLSearchParams(i) ? i.toString() : new f(i, n).toString(s), t) {
|
|
15
|
+
const a = e.indexOf("#");
|
|
16
|
+
a !== -1 && (e = e.slice(0, a)), e += (e.indexOf("?") === -1 ? "?" : "&") + t;
|
|
17
|
+
}
|
|
18
|
+
return e;
|
|
19
|
+
}
|
|
20
|
+
export {
|
|
21
|
+
S as default,
|
|
22
|
+
d as encode
|
|
23
|
+
};
|
|
24
|
+
//# 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 './AxiosURLSearchParams.js';\n\n/**\n * It replaces URL-encoded forms of `:`, `$`, `,`, and spaces with\n * their plain counterparts (`:`, `$`, `,`, `+`).\n *\n * @param {string} val The value to be encoded.\n *\n * @returns {string} The encoded value.\n */\nexport function 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 if (!params) {\n return url;\n }\n url = url || '';\n\n const _options = utils.isFunction(options)\n ? {\n serialize: options,\n }\n : options;\n\n // Read serializer options pollution-safely: own properties and methods on a\n // class/template prototype are honored, but values injected onto a polluted\n // Object.prototype are ignored.\n const _encode = utils.getSafeProp(_options, 'encode') || encode;\n const serializeFn = utils.getSafeProp(_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":["encode","val","buildURL","url","params","options","_options","utils","_encode","serializeFn","serializedParams","AxiosURLSearchParams","hashmarkIndex"],"mappings":";;AAaO,SAASA,EAAOC,GAAK;AAC1B,SAAO,mBAAmBA,CAAG,EAC1B,QAAQ,SAAS,GAAG,EACpB,QAAQ,QAAQ,GAAG,EACnB,QAAQ,SAAS,GAAG,EACpB,QAAQ,QAAQ,GAAG;AACxB;AAWe,SAASC,EAASC,GAAKC,GAAQC,GAAS;AACrD,MAAI,CAACD;AACH,WAAOD;AAET,EAAAA,IAAMA,KAAO;AAEb,QAAMG,IAAWC,EAAM,WAAWF,CAAO,IACrC;AAAA,IACE,WAAWA;AAAA,EACnB,IACMA,GAKEG,IAAUD,EAAM,YAAYD,GAAU,QAAQ,KAAKN,GACnDS,IAAcF,EAAM,YAAYD,GAAU,WAAW;AAE3D,MAAII;AAUJ,MARID,IACFC,IAAmBD,EAAYL,GAAQE,CAAQ,IAE/CI,IAAmBH,EAAM,kBAAkBH,CAAM,IAC7CA,EAAO,SAAQ,IACf,IAAIO,EAAqBP,GAAQE,CAAQ,EAAE,SAASE,CAAO,GAG7DE,GAAkB;AACpB,UAAME,IAAgBT,EAAI,QAAQ,GAAG;AAErC,IAAIS,MAAkB,OACpBT,IAAMA,EAAI,MAAM,GAAGS,CAAa,IAElCT,MAAQA,EAAI,QAAQ,GAAG,MAAM,KAAK,MAAM,OAAOO;AAAA,EACjD;AAEA,SAAOP;AACT;","x_google_ignoreList":[0]}
|
|
@@ -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 relativeURL\n ? baseURL.replace(/\\/?\\/$/, '') + '/' + relativeURL.replace(/^\\/+/, '')\n : baseURL;\n}\n"],"names":["combineURLs","baseURL","relativeURL"],"mappings":"AAUe,SAASA,EAAYC,GAASC,GAAa;AACxD,SAAOA,IACHD,EAAQ,QAAQ,UAAU,EAAE,IAAI,MAAMC,EAAY,QAAQ,QAAQ,EAAE,IACpED;AACN;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import a from "../cancel/CanceledError.js";
|
|
2
|
+
import u from "../core/AxiosError.js";
|
|
3
|
+
import l from "../utils.js";
|
|
4
|
+
const p = (r, t) => {
|
|
5
|
+
if (r = r ? r.filter(Boolean) : [], !t && !r.length)
|
|
6
|
+
return;
|
|
7
|
+
const f = new AbortController();
|
|
8
|
+
let s = !1;
|
|
9
|
+
const n = function(e) {
|
|
10
|
+
if (!s) {
|
|
11
|
+
s = !0, b();
|
|
12
|
+
const o = e instanceof Error ? e : this.reason;
|
|
13
|
+
f.abort(
|
|
14
|
+
o instanceof u ? o : new a(o instanceof Error ? o.message : o)
|
|
15
|
+
);
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
let c = t && setTimeout(() => {
|
|
19
|
+
c = null, n(new u(`timeout of ${t}ms exceeded`, u.ETIMEDOUT));
|
|
20
|
+
}, t);
|
|
21
|
+
const b = () => {
|
|
22
|
+
r && (c && clearTimeout(c), c = null, r.forEach((e) => {
|
|
23
|
+
e.unsubscribe ? e.unsubscribe(n) : e.removeEventListener("abort", n);
|
|
24
|
+
}), r = null);
|
|
25
|
+
};
|
|
26
|
+
r.forEach((e) => e.addEventListener("abort", n, { once: !0 }));
|
|
27
|
+
const { signal: i } = f;
|
|
28
|
+
return i.unsubscribe = () => l.asap(b), i;
|
|
29
|
+
};
|
|
30
|
+
export {
|
|
31
|
+
p as default
|
|
32
|
+
};
|
|
33
|
+
//# 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 signals = signals ? signals.filter(Boolean) : [];\n\n if (!timeout && !signals.length) {\n return;\n }\n\n const controller = new AbortController();\n\n let aborted = false;\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(\n err instanceof AxiosError\n ? err\n : new CanceledError(err instanceof Error ? err.message : err)\n );\n }\n };\n\n let timer =\n timeout &&\n setTimeout(() => {\n timer = null;\n onabort(new AxiosError(`timeout of ${timeout}ms exceeded`, AxiosError.ETIMEDOUT));\n }, timeout);\n\n const unsubscribe = () => {\n if (!signals) { return; }\n timer && clearTimeout(timer);\n timer = null;\n signals.forEach((signal) => {\n signal.unsubscribe\n ? signal.unsubscribe(onabort)\n : signal.removeEventListener('abort', onabort);\n });\n signals = null;\n };\n\n signals.forEach((signal) => signal.addEventListener('abort', onabort, { once: true }));\n\n const { signal } = controller;\n\n signal.unsubscribe = () => utils.asap(unsubscribe);\n\n return signal;\n};\n\nexport default composeSignals;\n"],"names":["composeSignals","signals","timeout","controller","aborted","onabort","reason","unsubscribe","err","AxiosError","CanceledError","timer","signal","utils"],"mappings":";;;AAIK,MAACA,IAAiB,CAACC,GAASC,MAAY;AAG3C,MAFAD,IAAUA,IAAUA,EAAQ,OAAO,OAAO,IAAI,CAAA,GAE1C,CAACC,KAAW,CAACD,EAAQ;AACvB;AAGF,QAAME,IAAa,IAAI,gBAAe;AAEtC,MAAIC,IAAU;AAEd,QAAMC,IAAU,SAAUC,GAAQ;AAChC,QAAI,CAACF,GAAS;AACZ,MAAAA,IAAU,IACVG,EAAW;AACX,YAAMC,IAAMF,aAAkB,QAAQA,IAAS,KAAK;AACpD,MAAAH,EAAW;AAAA,QACTK,aAAeC,IACXD,IACA,IAAIE,EAAcF,aAAe,QAAQA,EAAI,UAAUA,CAAG;AAAA,MACtE;AAAA,IACI;AAAA,EACF;AAEA,MAAIG,IACFT,KACA,WAAW,MAAM;AACf,IAAAS,IAAQ,MACRN,EAAQ,IAAII,EAAW,cAAcP,CAAO,eAAeO,EAAW,SAAS,CAAC;AAAA,EAClF,GAAGP,CAAO;AAEZ,QAAMK,IAAc,MAAM;AACxB,IAAKN,MACLU,KAAS,aAAaA,CAAK,GAC3BA,IAAQ,MACRV,EAAQ,QAAQ,CAACW,MAAW;AAC1B,MAAAA,EAAO,cACHA,EAAO,YAAYP,CAAO,IAC1BO,EAAO,oBAAoB,SAASP,CAAO;AAAA,IACjD,CAAC,GACDJ,IAAU;AAAA,EACZ;AAEA,EAAAA,EAAQ,QAAQ,CAACW,MAAWA,EAAO,iBAAiB,SAASP,GAAS,EAAE,MAAM,GAAI,CAAE,CAAC;AAErF,QAAM,EAAE,QAAAO,EAAM,IAAKT;AAEnB,SAAAS,EAAO,cAAc,MAAMC,EAAM,KAAKN,CAAW,GAE1CK;AACT;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import s from "../utils.js";
|
|
2
|
+
import f from "../platform/index.js";
|
|
3
|
+
const p = f.hasStandardBrowserEnv ? (
|
|
4
|
+
// Standard browser envs support document.cookie
|
|
5
|
+
{
|
|
6
|
+
write(n, r, o, e, t, u, c) {
|
|
7
|
+
if (typeof document > "u") return;
|
|
8
|
+
const i = [`${n}=${encodeURIComponent(r)}`];
|
|
9
|
+
s.isNumber(o) && i.push(`expires=${new Date(o).toUTCString()}`), s.isString(e) && i.push(`path=${e}`), s.isString(t) && i.push(`domain=${t}`), u === !0 && i.push("secure"), s.isString(c) && i.push(`SameSite=${c}`), document.cookie = i.join("; ");
|
|
10
|
+
},
|
|
11
|
+
read(n) {
|
|
12
|
+
if (typeof document > "u") return null;
|
|
13
|
+
const r = document.cookie.split(";");
|
|
14
|
+
for (let o = 0; o < r.length; o++) {
|
|
15
|
+
const e = r[o].replace(/^\s+/, ""), t = e.indexOf("=");
|
|
16
|
+
if (t !== -1 && e.slice(0, t) === n)
|
|
17
|
+
try {
|
|
18
|
+
return decodeURIComponent(e.slice(t + 1));
|
|
19
|
+
} catch {
|
|
20
|
+
return e.slice(t + 1);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
return null;
|
|
24
|
+
},
|
|
25
|
+
remove(n) {
|
|
26
|
+
this.write(n, "", Date.now() - 864e5, "/");
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
) : (
|
|
30
|
+
// Non-standard browser env (web workers, react-native) lack needed support.
|
|
31
|
+
{
|
|
32
|
+
write() {
|
|
33
|
+
},
|
|
34
|
+
read() {
|
|
35
|
+
return null;
|
|
36
|
+
},
|
|
37
|
+
remove() {
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
);
|
|
41
|
+
export {
|
|
42
|
+
p as default
|
|
43
|
+
};
|
|
44
|
+
//# 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 ? // 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 // Match name=value by splitting on the semicolon separator instead of building a\n // RegExp from `name` — interpolating an unescaped string into a RegExp would let\n // metacharacters (e.g. `.+?` in an attacker-influenced cookie name) cause ReDoS or\n // match the wrong cookie. Browsers may serialize cookie pairs as either \";\" or\n // \"; \", so ignore optional whitespace before each cookie name.\n const cookies = document.cookie.split(';');\n for (let i = 0; i < cookies.length; i++) {\n const cookie = cookies[i].replace(/^\\s+/, '');\n const eq = cookie.indexOf('=');\n if (eq !== -1 && cookie.slice(0, eq) === name) {\n try {\n return decodeURIComponent(cookie.slice(eq + 1));\n } catch (e) {\n return cookie.slice(eq + 1);\n }\n }\n }\n return null;\n },\n\n remove(name) {\n this.write(name, '', Date.now() - 86400000, '/');\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"],"names":["cookies","platform","name","value","expires","path","domain","secure","sameSite","cookie","utils","i","eq"],"mappings":";;AAGA,MAAAA,IAAeC,EAAS;AAAA;AAAA,EAEpB;AAAA,IACE,MAAMC,GAAMC,GAAOC,GAASC,GAAMC,GAAQC,GAAQC,GAAU;AAC1D,UAAI,OAAO,WAAa,IAAa;AAErC,YAAMC,IAAS,CAAC,GAAGP,CAAI,IAAI,mBAAmBC,CAAK,CAAC,EAAE;AAEtD,MAAIO,EAAM,SAASN,CAAO,KACxBK,EAAO,KAAK,WAAW,IAAI,KAAKL,CAAO,EAAE,YAAW,CAAE,EAAE,GAEtDM,EAAM,SAASL,CAAI,KACrBI,EAAO,KAAK,QAAQJ,CAAI,EAAE,GAExBK,EAAM,SAASJ,CAAM,KACvBG,EAAO,KAAK,UAAUH,CAAM,EAAE,GAE5BC,MAAW,MACbE,EAAO,KAAK,QAAQ,GAElBC,EAAM,SAASF,CAAQ,KACzBC,EAAO,KAAK,YAAYD,CAAQ,EAAE,GAGpC,SAAS,SAASC,EAAO,KAAK,IAAI;AAAA,IACpC;AAAA,IAEA,KAAKP,GAAM;AACT,UAAI,OAAO,WAAa,IAAa,QAAO;AAM5C,YAAMF,IAAU,SAAS,OAAO,MAAM,GAAG;AACzC,eAASW,IAAI,GAAGA,IAAIX,EAAQ,QAAQW,KAAK;AACvC,cAAMF,IAAST,EAAQW,CAAC,EAAE,QAAQ,QAAQ,EAAE,GACtCC,IAAKH,EAAO,QAAQ,GAAG;AAC7B,YAAIG,MAAO,MAAMH,EAAO,MAAM,GAAGG,CAAE,MAAMV;AACvC,cAAI;AACF,mBAAO,mBAAmBO,EAAO,MAAMG,IAAK,CAAC,CAAC;AAAA,UAChD,QAAY;AACV,mBAAOH,EAAO,MAAMG,IAAK,CAAC;AAAA,UAC5B;AAAA,MAEJ;AACA,aAAO;AAAA,IACT;AAAA,IAEA,OAAOV,GAAM;AACX,WAAK,MAAMA,GAAM,IAAI,KAAK,IAAG,IAAK,OAAU,GAAG;AAAA,IACjD;AAAA,EACN;AAAA;AAAA;AAAA,EAEI;AAAA,IACE,QAAQ;AAAA,IAAC;AAAA,IACT,OAAO;AACL,aAAO;AAAA,IACT;AAAA,IACA,SAAS;AAAA,IAAC;AAAA,EAChB;AAAA;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
const d = (e) => e >= 48 && e <= 57 || e >= 65 && e <= 70 || e >= 97 && e <= 102, C = (e, n, r) => n + 2 < r && d(e.charCodeAt(n + 1)) && d(e.charCodeAt(n + 2));
|
|
2
|
+
function p(e) {
|
|
3
|
+
if (!e || typeof e != "string" || !e.startsWith("data:")) return 0;
|
|
4
|
+
const n = e.indexOf(",");
|
|
5
|
+
if (n < 0) return 0;
|
|
6
|
+
const r = e.slice(5, n), t = e.slice(n + 1);
|
|
7
|
+
if (/;base64/i.test(r)) {
|
|
8
|
+
let o = t.length;
|
|
9
|
+
const a = t.length;
|
|
10
|
+
for (let s = 0; s < a; s++)
|
|
11
|
+
if (t.charCodeAt(s) === 37 && s + 2 < a) {
|
|
12
|
+
const x = t.charCodeAt(s + 1), A = t.charCodeAt(s + 2);
|
|
13
|
+
d(x) && d(A) && (o -= 2, s += 2);
|
|
14
|
+
}
|
|
15
|
+
let i = 0, c = a - 1;
|
|
16
|
+
const l = (s) => s >= 2 && t.charCodeAt(s - 2) === 37 && // '%'
|
|
17
|
+
t.charCodeAt(s - 1) === 51 && // '3'
|
|
18
|
+
(t.charCodeAt(s) === 68 || t.charCodeAt(s) === 100);
|
|
19
|
+
c >= 0 && (t.charCodeAt(c) === 61 ? (i++, c--) : l(c) && (i++, c -= 3)), i === 1 && c >= 0 && (t.charCodeAt(c) === 61 || l(c)) && i++;
|
|
20
|
+
const h = Math.floor(o / 4) * 3 - (i || 0);
|
|
21
|
+
return h > 0 ? h : 0;
|
|
22
|
+
}
|
|
23
|
+
let f = 0;
|
|
24
|
+
for (let o = 0, a = t.length; o < a; o++) {
|
|
25
|
+
const i = t.charCodeAt(o);
|
|
26
|
+
if (i === 37 && C(t, o, a))
|
|
27
|
+
f += 1, o += 2;
|
|
28
|
+
else if (i < 128)
|
|
29
|
+
f += 1;
|
|
30
|
+
else if (i < 2048)
|
|
31
|
+
f += 2;
|
|
32
|
+
else if (i >= 55296 && i <= 56319 && o + 1 < a) {
|
|
33
|
+
const c = t.charCodeAt(o + 1);
|
|
34
|
+
c >= 56320 && c <= 57343 ? (f += 4, o++) : f += 3;
|
|
35
|
+
} else
|
|
36
|
+
f += 3;
|
|
37
|
+
}
|
|
38
|
+
return f;
|
|
39
|
+
}
|
|
40
|
+
export {
|
|
41
|
+
p as default
|
|
42
|
+
};
|
|
43
|
+
//# 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: compute the exact percent-decoded UTF-8 byte length.\n *\n * @param {string} url\n * @returns {number}\n */\nconst isHexDigit = (charCode) =>\n (charCode >= 48 && charCode <= 57) ||\n (charCode >= 65 && charCode <= 70) ||\n (charCode >= 97 && charCode <= 102);\n\nconst isPercentEncodedByte = (str, i, len) =>\n i + 2 < len && isHexDigit(str.charCodeAt(i + 1)) && isHexDigit(str.charCodeAt(i + 2));\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 = isHexDigit(a) && isHexDigit(b);\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 // Compute UTF-8 byte length directly from UTF-16 code units without allocating\n // a byte buffer (TextEncoder.encode would defeat the DoS guard on large bodies).\n // Valid %XX triplets count as one decoded byte; this matches the bytes that\n // decodeURIComponent(body) would produce before Buffer re-encodes the string.\n let bytes = 0;\n for (let i = 0, len = body.length; i < len; i++) {\n const c = body.charCodeAt(i);\n if (c === 37 /* '%' */ && isPercentEncodedByte(body, i, len)) {\n bytes += 1;\n i += 2;\n } else if (c < 0x80) {\n bytes += 1;\n } else if (c < 0x800) {\n bytes += 2;\n } else if (c >= 0xd800 && c <= 0xdbff && i + 1 < len) {\n const next = body.charCodeAt(i + 1);\n if (next >= 0xdc00 && next <= 0xdfff) {\n bytes += 4;\n i++;\n } else {\n bytes += 3;\n }\n } else {\n bytes += 3;\n }\n }\n return bytes;\n}\n"],"names":["isHexDigit","charCode","isPercentEncodedByte","str","i","len","estimateDataURLDecodedBytes","url","comma","meta","body","effectiveLen","a","b","pad","idx","tailIsPct3D","j","bytes","c","next"],"mappings":"AASA,MAAMA,IAAa,CAACC,MACjBA,KAAY,MAAMA,KAAY,MAC9BA,KAAY,MAAMA,KAAY,MAC9BA,KAAY,MAAMA,KAAY,KAE3BC,IAAuB,CAACC,GAAKC,GAAGC,MACpCD,IAAI,IAAIC,KAAOL,EAAWG,EAAI,WAAWC,IAAI,CAAC,CAAC,KAAKJ,EAAWG,EAAI,WAAWC,IAAI,CAAC,CAAC;AAEvE,SAASE,EAA4BC,GAAK;AAEvD,MADI,CAACA,KAAO,OAAOA,KAAQ,YACvB,CAACA,EAAI,WAAW,OAAO,EAAG,QAAO;AAErC,QAAMC,IAAQD,EAAI,QAAQ,GAAG;AAC7B,MAAIC,IAAQ,EAAG,QAAO;AAEtB,QAAMC,IAAOF,EAAI,MAAM,GAAGC,CAAK,GACzBE,IAAOH,EAAI,MAAMC,IAAQ,CAAC;AAGhC,MAFiB,WAAW,KAAKC,CAAI,GAEvB;AACZ,QAAIE,IAAeD,EAAK;AACxB,UAAML,IAAMK,EAAK;AAEjB,aAASN,IAAI,GAAGA,IAAIC,GAAKD;AACvB,UAAIM,EAAK,WAAWN,CAAC,MAAM,MAAgBA,IAAI,IAAIC,GAAK;AACtD,cAAMO,IAAIF,EAAK,WAAWN,IAAI,CAAC,GACzBS,IAAIH,EAAK,WAAWN,IAAI,CAAC;AAG/B,QAFcJ,EAAWY,CAAC,KAAKZ,EAAWa,CAAC,MAGzCF,KAAgB,GAChBP,KAAK;AAAA,MAET;AAGF,QAAIU,IAAM,GACNC,IAAMV,IAAM;AAEhB,UAAMW,IAAc,CAACC,MACnBA,KAAK,KACLP,EAAK,WAAWO,IAAI,CAAC,MAAM;AAAA,IAC3BP,EAAK,WAAWO,IAAI,CAAC,MAAM;AAAA,KAC1BP,EAAK,WAAWO,CAAC,MAAM,MAAMP,EAAK,WAAWO,CAAC,MAAM;AAEvD,IAAIF,KAAO,MACLL,EAAK,WAAWK,CAAG,MAAM,MAC3BD,KACAC,OACSC,EAAYD,CAAG,MACxBD,KACAC,KAAO,KAIPD,MAAQ,KAAKC,KAAO,MAClBL,EAAK,WAAWK,CAAG,MAAM,MAElBC,EAAYD,CAAG,MACxBD;AAKJ,UAAMI,IADS,KAAK,MAAMP,IAAe,CAAC,IACnB,KAAKG,KAAO;AACnC,WAAOI,IAAQ,IAAIA,IAAQ;AAAA,EAC7B;AAMA,MAAIA,IAAQ;AACZ,WAASd,IAAI,GAAGC,IAAMK,EAAK,QAAQN,IAAIC,GAAKD,KAAK;AAC/C,UAAMe,IAAIT,EAAK,WAAWN,CAAC;AAC3B,QAAIe,MAAM,MAAgBjB,EAAqBQ,GAAMN,GAAGC,CAAG;AACzD,MAAAa,KAAS,GACTd,KAAK;AAAA,aACIe,IAAI;AACb,MAAAD,KAAS;AAAA,aACAC,IAAI;AACb,MAAAD,KAAS;AAAA,aACAC,KAAK,SAAUA,KAAK,SAAUf,IAAI,IAAIC,GAAK;AACpD,YAAMe,IAAOV,EAAK,WAAWN,IAAI,CAAC;AAClC,MAAIgB,KAAQ,SAAUA,KAAQ,SAC5BF,KAAS,GACTd,OAEAc,KAAS;AAAA,IAEb;AACE,MAAAA,KAAS;AAAA,EAEb;AACA,SAAOA;AACT;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import t from "../utils.js";
|
|
2
|
+
import u from "../core/AxiosError.js";
|
|
3
|
+
import { DEFAULT_FORM_DATA_MAX_DEPTH as E } from "./toFormData.js";
|
|
4
|
+
const f = E;
|
|
5
|
+
function h(r) {
|
|
6
|
+
if (r > f)
|
|
7
|
+
throw new u(
|
|
8
|
+
"FormData field is too deeply nested (" + r + " levels). Max depth: " + f,
|
|
9
|
+
u.ERR_FORM_DATA_DEPTH_EXCEEDED
|
|
10
|
+
);
|
|
11
|
+
}
|
|
12
|
+
function _(r) {
|
|
13
|
+
const i = [], e = /\w+|\[(\w*)]/g;
|
|
14
|
+
let s;
|
|
15
|
+
for (; (s = e.exec(r)) !== null; )
|
|
16
|
+
h(i.length), i.push(s[0] === "[]" ? "" : s[1] || s[0]);
|
|
17
|
+
return i;
|
|
18
|
+
}
|
|
19
|
+
function m(r) {
|
|
20
|
+
const i = {}, e = Object.keys(r);
|
|
21
|
+
let s;
|
|
22
|
+
const n = e.length;
|
|
23
|
+
let c;
|
|
24
|
+
for (s = 0; s < n; s++)
|
|
25
|
+
c = e[s], i[c] = r[c];
|
|
26
|
+
return i;
|
|
27
|
+
}
|
|
28
|
+
function O(r) {
|
|
29
|
+
function i(e, s, n, c) {
|
|
30
|
+
h(c);
|
|
31
|
+
let o = e[c++];
|
|
32
|
+
if (o === "__proto__") return !0;
|
|
33
|
+
const l = Number.isFinite(+o), p = c >= e.length;
|
|
34
|
+
return o = !o && t.isArray(n) ? n.length : o, p ? (t.hasOwnProp(n, o) ? n[o] = t.isArray(n[o]) ? n[o].concat(s) : [n[o], s] : n[o] = s, !l) : ((!t.hasOwnProp(n, o) || !t.isObject(n[o])) && (n[o] = []), i(e, s, n[o], c) && t.isArray(n[o]) && (n[o] = m(n[o])), !l);
|
|
35
|
+
}
|
|
36
|
+
if (t.isFormData(r) && t.isFunction(r.entries)) {
|
|
37
|
+
const e = {};
|
|
38
|
+
return t.forEachEntry(r, (s, n) => {
|
|
39
|
+
i(_(s), n, e, 0);
|
|
40
|
+
}), e;
|
|
41
|
+
}
|
|
42
|
+
return null;
|
|
43
|
+
}
|
|
44
|
+
export {
|
|
45
|
+
O as default
|
|
46
|
+
};
|
|
47
|
+
//# sourceMappingURL=formDataToJSON.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"formDataToJSON.js","sources":["../../../../../node_modules/axios/lib/helpers/formDataToJSON.js"],"sourcesContent":["'use strict';\n\nimport utils from '../utils.js';\nimport AxiosError from '../core/AxiosError.js';\nimport { DEFAULT_FORM_DATA_MAX_DEPTH } from './toFormData.js';\n\nconst MAX_DEPTH = DEFAULT_FORM_DATA_MAX_DEPTH;\n\nfunction throwIfDepthExceeded(index) {\n if (index > MAX_DEPTH) {\n throw new AxiosError(\n 'FormData field is too deeply nested (' + index + ' levels). Max depth: ' + MAX_DEPTH,\n AxiosError.ERR_FORM_DATA_DEPTH_EXCEEDED\n );\n }\n}\n\n/**\n * It takes a string like `foo[x][y][z]` and returns an array like `['foo', 'x', 'y', 'z']\n *\n * @param {string} name - The name of the property to get.\n *\n * @returns An array of strings.\n */\nfunction parsePropPath(name) {\n // foo[x][y][z]\n // foo.x.y.z\n // foo-x-y-z\n // foo x y z\n const path = [];\n const pattern = /\\w+|\\[(\\w*)]/g;\n let match;\n\n while ((match = pattern.exec(name)) !== null) {\n throwIfDepthExceeded(path.length);\n path.push(match[0] === '[]' ? '' : match[1] || match[0]);\n }\n\n return path;\n}\n\n/**\n * Convert an array to an object.\n *\n * @param {Array<any>} arr - The array to convert to an object.\n *\n * @returns An object with the same keys and values as the array.\n */\nfunction arrayToObject(arr) {\n const obj = {};\n const keys = Object.keys(arr);\n let i;\n const len = keys.length;\n let key;\n for (i = 0; i < len; i++) {\n key = keys[i];\n obj[key] = arr[key];\n }\n return obj;\n}\n\n/**\n * It takes a FormData object and returns a JavaScript object\n *\n * @param {string} formData The FormData object to convert to JSON.\n *\n * @returns {Object<string, any> | null} The converted object.\n */\nfunction formDataToJSON(formData) {\n function buildPath(path, value, target, index) {\n throwIfDepthExceeded(index);\n\n let name = path[index++];\n\n if (name === '__proto__') return true;\n\n const isNumericKey = Number.isFinite(+name);\n const isLast = index >= path.length;\n name = !name && utils.isArray(target) ? target.length : name;\n\n if (isLast) {\n if (utils.hasOwnProp(target, name)) {\n target[name] = utils.isArray(target[name])\n ? target[name].concat(value)\n : [target[name], value];\n } else {\n target[name] = value;\n }\n\n return !isNumericKey;\n }\n\n if (!utils.hasOwnProp(target, name) || !utils.isObject(target[name])) {\n target[name] = [];\n }\n\n const result = buildPath(path, value, target[name], index);\n\n if (result && utils.isArray(target[name])) {\n target[name] = arrayToObject(target[name]);\n }\n\n return !isNumericKey;\n }\n\n if (utils.isFormData(formData) && utils.isFunction(formData.entries)) {\n const obj = {};\n\n utils.forEachEntry(formData, (name, value) => {\n buildPath(parsePropPath(name), value, obj, 0);\n });\n\n return obj;\n }\n\n return null;\n}\n\nexport default formDataToJSON;\n"],"names":["MAX_DEPTH","DEFAULT_FORM_DATA_MAX_DEPTH","throwIfDepthExceeded","index","AxiosError","parsePropPath","name","path","pattern","match","arrayToObject","arr","obj","keys","i","len","key","formDataToJSON","formData","buildPath","value","target","isNumericKey","isLast","utils"],"mappings":";;;AAMA,MAAMA,IAAYC;AAElB,SAASC,EAAqBC,GAAO;AACnC,MAAIA,IAAQH;AACV,UAAM,IAAII;AAAA,MACR,0CAA0CD,IAAQ,0BAA0BH;AAAA,MAC5EI,EAAW;AAAA,IACjB;AAEA;AASA,SAASC,EAAcC,GAAM;AAK3B,QAAMC,IAAO,CAAA,GACPC,IAAU;AAChB,MAAIC;AAEJ,UAAQA,IAAQD,EAAQ,KAAKF,CAAI,OAAO;AACtC,IAAAJ,EAAqBK,EAAK,MAAM,GAChCA,EAAK,KAAKE,EAAM,CAAC,MAAM,OAAO,KAAKA,EAAM,CAAC,KAAKA,EAAM,CAAC,CAAC;AAGzD,SAAOF;AACT;AASA,SAASG,EAAcC,GAAK;AAC1B,QAAMC,IAAM,CAAA,GACNC,IAAO,OAAO,KAAKF,CAAG;AAC5B,MAAIG;AACJ,QAAMC,IAAMF,EAAK;AACjB,MAAIG;AACJ,OAAKF,IAAI,GAAGA,IAAIC,GAAKD;AACnB,IAAAE,IAAMH,EAAKC,CAAC,GACZF,EAAII,CAAG,IAAIL,EAAIK,CAAG;AAEpB,SAAOJ;AACT;AASA,SAASK,EAAeC,GAAU;AAChC,WAASC,EAAUZ,GAAMa,GAAOC,GAAQlB,GAAO;AAC7C,IAAAD,EAAqBC,CAAK;AAE1B,QAAIG,IAAOC,EAAKJ,GAAO;AAEvB,QAAIG,MAAS,YAAa,QAAO;AAEjC,UAAMgB,IAAe,OAAO,SAAS,CAAChB,CAAI,GACpCiB,IAASpB,KAASI,EAAK;AAG7B,WAFAD,IAAO,CAACA,KAAQkB,EAAM,QAAQH,CAAM,IAAIA,EAAO,SAASf,GAEpDiB,KACEC,EAAM,WAAWH,GAAQf,CAAI,IAC/Be,EAAOf,CAAI,IAAIkB,EAAM,QAAQH,EAAOf,CAAI,CAAC,IACrCe,EAAOf,CAAI,EAAE,OAAOc,CAAK,IACzB,CAACC,EAAOf,CAAI,GAAGc,CAAK,IAExBC,EAAOf,CAAI,IAAIc,GAGV,CAACE,OAGN,CAACE,EAAM,WAAWH,GAAQf,CAAI,KAAK,CAACkB,EAAM,SAASH,EAAOf,CAAI,CAAC,OACjEe,EAAOf,CAAI,IAAI,CAAA,IAGFa,EAAUZ,GAAMa,GAAOC,EAAOf,CAAI,GAAGH,CAAK,KAE3CqB,EAAM,QAAQH,EAAOf,CAAI,CAAC,MACtCe,EAAOf,CAAI,IAAII,EAAcW,EAAOf,CAAI,CAAC,IAGpC,CAACgB;AAAA,EACV;AAEA,MAAIE,EAAM,WAAWN,CAAQ,KAAKM,EAAM,WAAWN,EAAS,OAAO,GAAG;AACpE,UAAMN,IAAM,CAAA;AAEZ,WAAAY,EAAM,aAAaN,GAAU,CAACZ,GAAMc,MAAU;AAC5C,MAAAD,EAAUd,EAAcC,CAAI,GAAGc,GAAOR,GAAK,CAAC;AAAA,IAC9C,CAAC,GAEMA;AAAA,EACT;AAEA,SAAO;AACT;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isAbsoluteURL.js","sources":["../../../../../node_modules/axios/lib/helpers/isAbsoluteURL.js"],"sourcesContent":["'use strict';\n\n/**\n * Determines whether the specified URL is absolute\n *\n * @param {string} url The URL to test\n *\n * @returns {boolean} True if the specified URL is absolute, otherwise false\n */\nexport default function isAbsoluteURL(url) {\n // A URL is considered absolute if it begins with \"<scheme>://\" or \"//\" (protocol-relative URL).\n // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed\n // by any combination of letters, digits, plus, period, or hyphen.\n if (typeof url !== 'string') {\n return false;\n }\n\n return /^([a-z][a-z\\d+\\-.]*:)?\\/\\//i.test(url);\n}\n"],"names":["isAbsoluteURL","url"],"mappings":"AASe,SAASA,EAAcC,GAAK;AAIzC,SAAI,OAAOA,KAAQ,WACV,KAGF,8BAA8B,KAAKA,CAAG;AAC/C;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isAxiosError.js","sources":["../../../../../node_modules/axios/lib/helpers/isAxiosError.js"],"sourcesContent":["'use strict';\n\nimport utils from '../utils.js';\n\n/**\n * Determines whether the payload is an error thrown by Axios\n *\n * @param {*} payload The value to test\n *\n * @returns {boolean} True if the payload is an error thrown by Axios, otherwise false\n */\nexport default function isAxiosError(payload) {\n return utils.isObject(payload) && payload.isAxiosError === true;\n}\n"],"names":["isAxiosError","payload","utils"],"mappings":";AAWe,SAASA,EAAaC,GAAS;AAC5C,SAAOC,EAAM,SAASD,CAAO,KAAKA,EAAQ,iBAAiB;AAC7D;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import o from "../platform/index.js";
|
|
2
|
+
const n = o.hasStandardBrowserEnv ? /* @__PURE__ */ ((r, e) => (t) => (t = new URL(t, o.origin), r.protocol === t.protocol && r.host === t.host && (e || r.port === t.port)))(
|
|
3
|
+
new URL(o.origin),
|
|
4
|
+
o.navigator && /(msie|trident)/i.test(o.navigator.userAgent)
|
|
5
|
+
) : () => !0;
|
|
6
|
+
export {
|
|
7
|
+
n as default
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=isURLSameOrigin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isURLSameOrigin.js","sources":["../../../../../node_modules/axios/lib/helpers/isURLSameOrigin.js"],"sourcesContent":["import platform from '../platform/index.js';\n\nexport default platform.hasStandardBrowserEnv\n ? ((origin, isMSIE) => (url) => {\n url = new URL(url, platform.origin);\n\n return (\n origin.protocol === url.protocol &&\n origin.host === url.host &&\n (isMSIE || origin.port === url.port)\n );\n })(\n new URL(platform.origin),\n platform.navigator && /(msie|trident)/i.test(platform.navigator.userAgent)\n )\n : () => true;\n"],"names":["isURLSameOrigin","platform","origin","isMSIE","url"],"mappings":";AAEA,MAAAA,IAAeC,EAAS,wBACnB,kBAACC,GAAQC,MAAW,CAACC,OACpBA,IAAM,IAAI,IAAIA,GAAKH,EAAS,MAAM,GAGhCC,EAAO,aAAaE,EAAI,YACxBF,EAAO,SAASE,EAAI,SACnBD,KAAUD,EAAO,SAASE,EAAI;AAAA,EAGjC,IAAI,IAAIH,EAAS,MAAM;AAAA,EACvBA,EAAS,aAAa,kBAAkB,KAAKA,EAAS,UAAU,SAAS;AAC/E,IACI,MAAM;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"null.js","sources":["../../../../../node_modules/axios/lib/helpers/null.js"],"sourcesContent":["// eslint-disable-next-line strict\nexport default null;\n"],"names":["httpAdapter"],"mappings":"AACA,MAAAA,IAAe;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,31 @@
|
|
|
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
|
+
};
|
|
31
|
+
//# sourceMappingURL=parseHeaders.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parseHeaders.js","sources":["../../../../../node_modules/axios/lib/helpers/parseHeaders.js"],"sourcesContent":["'use strict';\n\nimport utils from '../utils.js';\n\n// RawAxiosHeaders whose duplicates are ignored by node\n// c.f. https://nodejs.org/api/http.html#http_message_headers\nconst ignoreDuplicateOf = utils.toObjectSet([\n 'age',\n 'authorization',\n 'content-length',\n 'content-type',\n 'etag',\n 'expires',\n 'from',\n 'host',\n 'if-modified-since',\n 'if-unmodified-since',\n 'last-modified',\n 'location',\n 'max-forwards',\n 'proxy-authorization',\n 'referer',\n 'retry-after',\n 'user-agent',\n]);\n\n/**\n * Parse headers into an object\n *\n * ```\n * Date: Wed, 27 Aug 2014 08:58:49 GMT\n * Content-Type: application/json\n * Connection: keep-alive\n * Transfer-Encoding: chunked\n * ```\n *\n * @param {String} rawHeaders Headers needing to be parsed\n *\n * @returns {Object} Headers parsed into an object\n */\nexport default (rawHeaders) => {\n const parsed = {};\n let key;\n let val;\n let i;\n\n rawHeaders &&\n rawHeaders.split('\\n').forEach(function parser(line) {\n i = line.indexOf(':');\n key = line.substring(0, i).trim().toLowerCase();\n val = line.substring(i + 1).trim();\n\n if (!key || (parsed[key] && ignoreDuplicateOf[key])) {\n return;\n }\n\n if (key === 'set-cookie') {\n if (parsed[key]) {\n parsed[key].push(val);\n } else {\n parsed[key] = [val];\n }\n } else {\n parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;\n }\n });\n\n return parsed;\n};\n"],"names":["ignoreDuplicateOf","utils","parseHeaders","rawHeaders","parsed","key","val","line"],"mappings":";AAMA,MAAMA,IAAoBC,EAAM,YAAY;AAAA,EAC1C;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,CAAC,GAgBDC,IAAe,CAACC,MAAe;AAC7B,QAAMC,IAAS,CAAA;AACf,MAAIC,GACAC,GACA;AAEJ,SAAAH,KACEA,EAAW,MAAM;AAAA,CAAI,EAAE,QAAQ,SAAgBI,GAAM;AAKnD,IAJA,IAAIA,EAAK,QAAQ,GAAG,GACpBF,IAAME,EAAK,UAAU,GAAG,CAAC,EAAE,KAAI,EAAG,YAAW,GAC7CD,IAAMC,EAAK,UAAU,IAAI,CAAC,EAAE,KAAI,GAE5B,GAACF,KAAQD,EAAOC,CAAG,KAAKL,EAAkBK,CAAG,OAI7CA,MAAQ,eACND,EAAOC,CAAG,IACZD,EAAOC,CAAG,EAAE,KAAKC,CAAG,IAEpBF,EAAOC,CAAG,IAAI,CAACC,CAAG,IAGpBF,EAAOC,CAAG,IAAID,EAAOC,CAAG,IAAID,EAAOC,CAAG,IAAI,OAAOC,IAAMA;AAAA,EAE3D,CAAC,GAEIF;AACT;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parseProtocol.js","sources":["../../../../../node_modules/axios/lib/helpers/parseProtocol.js"],"sourcesContent":["'use strict';\n\nexport default function parseProtocol(url) {\n const match = /^([-+\\w]{1,25}):(?:\\/\\/)?/.exec(url);\n return (match && match[1]) || '';\n}\n"],"names":["parseProtocol","url","match"],"mappings":"AAEe,SAASA,EAAcC,GAAK;AACzC,QAAMC,IAAQ,4BAA4B,KAAKD,CAAG;AAClD,SAAQC,KAASA,EAAM,CAAC,KAAM;AAChC;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import c from "./speedometer.js";
|
|
2
|
+
import i from "./throttle.js";
|
|
3
|
+
import f from "../utils.js";
|
|
4
|
+
const y = (t, o, d = 3) => {
|
|
5
|
+
let r = 0;
|
|
6
|
+
const m = c(50, 250);
|
|
7
|
+
return i((n) => {
|
|
8
|
+
if (!n || typeof n.loaded != "number")
|
|
9
|
+
return;
|
|
10
|
+
const l = n.loaded, e = n.lengthComputable ? n.total : void 0, s = e != null ? Math.min(l, e) : l, u = Math.max(0, s - r), a = m(u);
|
|
11
|
+
r = Math.max(r, s);
|
|
12
|
+
const p = {
|
|
13
|
+
loaded: s,
|
|
14
|
+
total: e,
|
|
15
|
+
progress: e ? s / e : void 0,
|
|
16
|
+
bytes: u,
|
|
17
|
+
rate: a || void 0,
|
|
18
|
+
estimated: a && e ? (e - s) / a : void 0,
|
|
19
|
+
event: n,
|
|
20
|
+
lengthComputable: e != null,
|
|
21
|
+
[o ? "download" : "upload"]: !0
|
|
22
|
+
};
|
|
23
|
+
t(p);
|
|
24
|
+
}, d);
|
|
25
|
+
}, v = (t, o) => {
|
|
26
|
+
const d = t != null;
|
|
27
|
+
return [
|
|
28
|
+
(r) => o[0]({
|
|
29
|
+
lengthComputable: d,
|
|
30
|
+
total: t,
|
|
31
|
+
loaded: r
|
|
32
|
+
}),
|
|
33
|
+
o[1]
|
|
34
|
+
];
|
|
35
|
+
}, x = (t) => (...o) => f.asap(() => t(...o));
|
|
36
|
+
export {
|
|
37
|
+
x as asyncDecorator,
|
|
38
|
+
v as progressEventDecorator,
|
|
39
|
+
y as progressEventReducer
|
|
40
|
+
};
|
|
41
|
+
//# sourceMappingURL=progressEventReducer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"progressEventReducer.js","sources":["../../../../../node_modules/axios/lib/helpers/progressEventReducer.js"],"sourcesContent":["import speedometer from './speedometer.js';\nimport throttle from './throttle.js';\nimport utils from '../utils.js';\n\nexport const progressEventReducer = (listener, isDownloadStream, freq = 3) => {\n let bytesNotified = 0;\n const _speedometer = speedometer(50, 250);\n\n return throttle((e) => {\n if (!e || typeof e.loaded !== 'number') {\n return;\n }\n const rawLoaded = e.loaded;\n const total = e.lengthComputable ? e.total : undefined;\n const loaded = total != null ? Math.min(rawLoaded, total) : rawLoaded;\n const progressBytes = Math.max(0, loaded - bytesNotified);\n const rate = _speedometer(progressBytes);\n\n bytesNotified = Math.max(bytesNotified, loaded);\n\n const data = {\n loaded,\n total,\n progress: total ? loaded / total : undefined,\n bytes: progressBytes,\n rate: rate ? rate : undefined,\n estimated: rate && total ? (total - loaded) / rate : undefined,\n event: e,\n lengthComputable: total != null,\n [isDownloadStream ? 'download' : 'upload']: true,\n };\n\n listener(data);\n }, freq);\n};\n\nexport const progressEventDecorator = (total, throttled) => {\n const lengthComputable = total != null;\n\n return [\n (loaded) =>\n throttled[0]({\n lengthComputable,\n total,\n loaded,\n }),\n throttled[1],\n ];\n};\n\nexport const asyncDecorator =\n (fn) =>\n (...args) =>\n utils.asap(() => fn(...args));\n"],"names":["progressEventReducer","listener","isDownloadStream","freq","bytesNotified","_speedometer","speedometer","throttle","e","rawLoaded","total","loaded","progressBytes","rate","data","progressEventDecorator","throttled","lengthComputable","asyncDecorator","fn","args","utils"],"mappings":";;;AAIY,MAACA,IAAuB,CAACC,GAAUC,GAAkBC,IAAO,MAAM;AAC5E,MAAIC,IAAgB;AACpB,QAAMC,IAAeC,EAAY,IAAI,GAAG;AAExC,SAAOC,EAAS,CAACC,MAAM;AACrB,QAAI,CAACA,KAAK,OAAOA,EAAE,UAAW;AAC5B;AAEF,UAAMC,IAAYD,EAAE,QACdE,IAAQF,EAAE,mBAAmBA,EAAE,QAAQ,QACvCG,IAASD,KAAS,OAAO,KAAK,IAAID,GAAWC,CAAK,IAAID,GACtDG,IAAgB,KAAK,IAAI,GAAGD,IAASP,CAAa,GAClDS,IAAOR,EAAaO,CAAa;AAEvC,IAAAR,IAAgB,KAAK,IAAIA,GAAeO,CAAM;AAE9C,UAAMG,IAAO;AAAA,MACX,QAAAH;AAAA,MACA,OAAAD;AAAA,MACA,UAAUA,IAAQC,IAASD,IAAQ;AAAA,MACnC,OAAOE;AAAA,MACP,MAAMC,KAAc;AAAA,MACpB,WAAWA,KAAQH,KAASA,IAAQC,KAAUE,IAAO;AAAA,MACrD,OAAOL;AAAA,MACP,kBAAkBE,KAAS;AAAA,MAC3B,CAACR,IAAmB,aAAa,QAAQ,GAAG;AAAA,IAClD;AAEI,IAAAD,EAASa,CAAI;AAAA,EACf,GAAGX,CAAI;AACT,GAEaY,IAAyB,CAACL,GAAOM,MAAc;AAC1D,QAAMC,IAAmBP,KAAS;AAElC,SAAO;AAAA,IACL,CAACC,MACCK,EAAU,CAAC,EAAE;AAAA,MACX,kBAAAC;AAAA,MACA,OAAAP;AAAA,MACA,QAAAC;AAAA,IACR,CAAO;AAAA,IACHK,EAAU,CAAC;AAAA,EACf;AACA,GAEaE,IACX,CAACC,MACD,IAAIC,MACFC,EAAM,KAAK,MAAMF,EAAG,GAAGC,CAAI,CAAC;","x_google_ignoreList":[0]}
|