@cartanova/qgrid-cli 2.10.2 → 2.10.4
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/bundle/dist/application/monit/log-buffer.js +7 -11
- package/bundle/dist/application/monit/monit.frame.js +6 -11
- package/bundle/dist/application/qgrid/oauth.js +2 -2
- package/bundle/dist/application/qgrid/qgrid-run-lifecycle.js +64 -141
- package/bundle/dist/application/qgrid/qgrid.dispatcher.js +12 -36
- package/bundle/dist/application/qgrid/qgrid.frame.js +3 -6
- package/bundle/dist/application/qgrid/qgrid.types.js +2 -1
- package/bundle/dist/application/qgrid/token-subscriber.js +4 -7
- package/bundle/dist/application/qgrid/token-window-keepalive.js +3 -2
- package/bundle/dist/application/qgrid/tool-emulation-schema.js +4 -4
- package/bundle/dist/application/qgrid/tool-emulation.js +14 -2
- package/bundle/dist/application/request-log/request-log.model.js +7 -5
- package/bundle/dist/application/setting/setting.model.js +2 -64
- package/bundle/dist/application/setting/setting.store.js +3 -4
- package/bundle/dist/application/setting/setting.types.js +2 -12
- package/bundle/dist/i18n/en.js +1 -3
- package/bundle/dist/i18n/ko.js +1 -3
- package/bundle/dist/sonamu.config.js +6 -6
- package/bundle/dist/utils/providers/anthropic/anthropic-constants.js +1 -1
- package/bundle/dist/utils/providers/anthropic/anthropic-dispatcher.js +53 -84
- package/bundle/dist/utils/providers/anthropic/anthropic-thinking.js +55 -0
- package/bundle/dist/utils/providers/anthropic/claude-session.js +11 -13
- package/bundle/dist/utils/providers/common/effort.js +1 -1
- package/bundle/dist/utils/providers/common/smooth-weighted-round-robin.js +3 -3
- package/bundle/dist/utils/providers/common/thinking.js +12 -0
- package/bundle/dist/utils/providers/openai/openai-backend-protocol.js +3 -2
- package/bundle/dist/utils/providers/openai/openai-direct-client.js +6 -16
- package/bundle/dist/utils/providers/openai/openai-dispatcher.js +89 -78
- package/bundle/src/application/monit/log-buffer.test.ts +3 -4
- package/bundle/src/application/monit/log-buffer.ts +13 -27
- package/bundle/src/application/monit/monit.frame.test.ts +7 -8
- package/bundle/src/application/monit/monit.frame.ts +9 -14
- package/bundle/src/application/qgrid/oauth.ts +1 -1
- package/bundle/src/application/qgrid/qgrid-run-lifecycle.test.ts +7 -111
- package/bundle/src/application/qgrid/qgrid-run-lifecycle.ts +83 -179
- package/bundle/src/application/qgrid/qgrid.dispatcher.test.ts +62 -1
- package/bundle/src/application/qgrid/qgrid.dispatcher.ts +25 -71
- package/bundle/src/application/qgrid/qgrid.frame.test.ts +0 -38
- package/bundle/src/application/qgrid/qgrid.frame.ts +4 -12
- package/bundle/src/application/qgrid/qgrid.types.ts +2 -0
- package/bundle/src/application/qgrid/token-subscriber.test.ts +8 -18
- package/bundle/src/application/qgrid/token-subscriber.ts +10 -20
- package/bundle/src/application/qgrid/token-window-keepalive.test.ts +2 -2
- package/bundle/src/application/qgrid/token-window-keepalive.ts +2 -1
- package/bundle/src/application/qgrid/tool-emulation-schema.test.ts +6 -3
- package/bundle/src/application/qgrid/tool-emulation-schema.ts +3 -3
- package/bundle/src/application/qgrid/tool-emulation.test.ts +8 -1
- package/bundle/src/application/qgrid/tool-emulation.ts +29 -0
- package/bundle/src/application/request-log/request-log.model.ts +5 -5
- package/bundle/src/application/setting/setting.model.test.ts +1 -101
- package/bundle/src/application/setting/setting.model.ts +1 -74
- package/bundle/src/application/setting/setting.store.ts +2 -3
- package/bundle/src/application/setting/setting.types.ts +0 -12
- package/bundle/src/application/sonamu.generated.http +2 -7
- package/bundle/src/i18n/en.ts +0 -3
- package/bundle/src/i18n/ko.ts +0 -3
- package/bundle/src/sonamu.config.ts +5 -5
- package/bundle/src/utils/providers/anthropic/anthropic-constants.ts +3 -6
- package/bundle/src/utils/providers/anthropic/anthropic-dispatcher.test.ts +26 -0
- package/bundle/src/utils/providers/anthropic/anthropic-dispatcher.ts +70 -148
- package/bundle/src/utils/providers/anthropic/anthropic-thinking.test.ts +36 -0
- package/bundle/src/utils/providers/anthropic/anthropic-thinking.ts +84 -0
- package/bundle/src/utils/providers/anthropic/claude-session.test.ts +74 -13
- package/bundle/src/utils/providers/anthropic/claude-session.ts +11 -20
- package/bundle/src/utils/providers/common/effort.ts +1 -1
- package/bundle/src/utils/providers/common/provider-dispatcher.ts +4 -0
- package/bundle/src/utils/providers/common/smooth-weighted-round-robin.ts +4 -4
- package/bundle/src/utils/providers/common/thinking.ts +10 -0
- package/bundle/src/utils/providers/openai/openai-backend-protocol.ts +7 -3
- package/bundle/src/utils/providers/openai/openai-direct-client.test.ts +3 -3
- package/bundle/src/utils/providers/openai/openai-direct-client.ts +20 -33
- package/bundle/src/utils/providers/openai/openai-dispatcher.test.ts +97 -6
- package/bundle/src/utils/providers/openai/openai-dispatcher.ts +113 -77
- package/bundle/web-dist/client/assets/index-CvG4UB9v.css +1 -0
- package/bundle/web-dist/client/assets/{index-DtRTSTes.js → index-reW8VvJF.js} +4 -4
- package/bundle/web-dist/client/assets/{logs-BhVYDEzC.js → logs-DDIt97D1.js} +1 -1
- package/bundle/web-dist/client/assets/{monit-BxN4JWqK.js → monit-DkABv7PG.js} +1 -1
- package/bundle/web-dist/client/assets/{routes-CBCqRp2o.js → routes-BRmQ4M3-.js} +1 -1
- package/bundle/web-dist/client/assets/services.generated-jnPHYMER.js +51 -0
- package/bundle/web-dist/client/assets/settings-BHvtycEZ.js +1 -0
- package/bundle/web-dist/client/assets/{show-BzYft5N4.js → show-qeTIzgDZ.js} +1 -1
- package/bundle/web-dist/client/assets/{tokens-PMybtI8X.js → tokens-5Bep_G-w.js} +1 -1
- package/bundle/web-dist/client/assets/{use-oauth-login-flow-C51_d6-6.js → use-oauth-login-flow-Cx-QO25M.js} +1 -1
- package/bundle/web-dist/client/assets/{use-update-token-mutation-D-Y8OySK.js → use-update-token-mutation-DQCwCYfR.js} +1 -1
- package/bundle/web-dist/client/index.html +3 -3
- package/bundle/web-dist/server/assets/{lazyRouteComponent-Bj1cPq6x.js → lazyRouteComponent-CUR-kWzI.js} +2 -2
- package/bundle/web-dist/server/assets/{logs-BSk9lOHe.js → logs-CagNGTBj.js} +3 -3
- package/bundle/web-dist/server/assets/{monit-D9W4ioUi.js → monit-DSxs4Jnl.js} +3 -3
- package/bundle/web-dist/server/assets/{plus-CmvbWuDf.js → plus-Bvdj8Pwx.js} +1 -1
- package/bundle/web-dist/server/assets/{react-dom-BjR1Iaz8.js → react-dom-CyuShs9K.js} +1 -1
- package/bundle/web-dist/server/assets/{refresh-cw-B8U9BL9-.js → refresh-cw-3QAiSWBd.js} +1 -1
- package/bundle/web-dist/server/assets/{routes-C7lB2Q85.js → routes-i-sTqXMX.js} +4 -4
- package/bundle/web-dist/server/assets/{services.generated-BM4X3Ecj.js → services.generated-FPwsG9p3.js} +116 -131
- package/bundle/web-dist/server/assets/{settings-BFVuldch.js → settings-DeHNwoMv.js} +40 -251
- package/bundle/web-dist/server/assets/{show-Cswh_tqs.js → show-C4jk1Hrp.js} +2 -2
- package/bundle/web-dist/server/assets/{tokens-DiTUwUwr.js → tokens-odgS2-9q.js} +4 -4
- package/bundle/web-dist/server/assets/{use-oauth-login-flow-DYKnG4A2.js → use-oauth-login-flow-DTQKdYBO.js} +1 -1
- package/bundle/web-dist/server/assets/{use-update-token-mutation-DqGMopII.js → use-update-token-mutation-xvXbPrCI.js} +1 -1
- package/bundle/web-dist/server/entry-server.generated.js +10 -10
- package/package.json +1 -1
- package/skills/qgrid/SKILL.md +1 -0
- package/skills/qgrid/references/ai-sdk-provider-contract.md +2 -1
- package/skills/qgrid/references/anthropic-claude-code-runtime.md +7 -4
- package/skills/qgrid/references/cli-env-and-server-boot.md +12 -9
- package/skills/qgrid/references/decision-rationale.md +9 -0
- package/skills/qgrid/references/openai-codex-runtime.md +6 -0
- package/skills/qgrid/references/token-auth-quota-lifecycle.md +2 -0
- package/skills/qgrid/references/tool-calling-and-multiturn.md +18 -1
- package/skills/qgrid/references/verification-and-debugging.md +1 -1
- package/bundle/dist/utils/process-supervisor.js +0 -22
- package/bundle/dist/utils/server-restart.js +0 -61
- package/bundle/src/utils/process-supervisor.test.ts +0 -24
- package/bundle/src/utils/process-supervisor.ts +0 -17
- package/bundle/src/utils/server-restart.test.ts +0 -76
- package/bundle/src/utils/server-restart.ts +0 -68
- package/bundle/web-dist/client/assets/index-D_sagzsR.css +0 -1
- package/bundle/web-dist/client/assets/services.generated-Cbvg2sGQ.js +0 -51
- package/bundle/web-dist/client/assets/settings-hBTEC7Ki.js +0 -1
|
@@ -5945,9 +5945,9 @@ var utils_default = {
|
|
|
5945
5945
|
};
|
|
5946
5946
|
//#endregion
|
|
5947
5947
|
//#region ../../node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/core/AxiosError.js
|
|
5948
|
-
var AxiosError
|
|
5948
|
+
var AxiosError = class AxiosError extends Error {
|
|
5949
5949
|
static from(error, code, config, request, response, customProps) {
|
|
5950
|
-
const axiosError = new AxiosError
|
|
5950
|
+
const axiosError = new AxiosError(error.message, code || error.code, config, request, response);
|
|
5951
5951
|
axiosError.cause = error;
|
|
5952
5952
|
axiosError.name = error.name;
|
|
5953
5953
|
if (error.status != null && axiosError.status == null) axiosError.status = error.status;
|
|
@@ -5999,18 +5999,18 @@ var AxiosError$1 = class AxiosError$1 extends Error {
|
|
|
5999
5999
|
};
|
|
6000
6000
|
}
|
|
6001
6001
|
};
|
|
6002
|
-
AxiosError
|
|
6003
|
-
AxiosError
|
|
6004
|
-
AxiosError
|
|
6005
|
-
AxiosError
|
|
6006
|
-
AxiosError
|
|
6007
|
-
AxiosError
|
|
6008
|
-
AxiosError
|
|
6009
|
-
AxiosError
|
|
6010
|
-
AxiosError
|
|
6011
|
-
AxiosError
|
|
6012
|
-
AxiosError
|
|
6013
|
-
AxiosError
|
|
6002
|
+
AxiosError.ERR_BAD_OPTION_VALUE = "ERR_BAD_OPTION_VALUE";
|
|
6003
|
+
AxiosError.ERR_BAD_OPTION = "ERR_BAD_OPTION";
|
|
6004
|
+
AxiosError.ECONNABORTED = "ECONNABORTED";
|
|
6005
|
+
AxiosError.ETIMEDOUT = "ETIMEDOUT";
|
|
6006
|
+
AxiosError.ERR_NETWORK = "ERR_NETWORK";
|
|
6007
|
+
AxiosError.ERR_FR_TOO_MANY_REDIRECTS = "ERR_FR_TOO_MANY_REDIRECTS";
|
|
6008
|
+
AxiosError.ERR_DEPRECATED = "ERR_DEPRECATED";
|
|
6009
|
+
AxiosError.ERR_BAD_RESPONSE = "ERR_BAD_RESPONSE";
|
|
6010
|
+
AxiosError.ERR_BAD_REQUEST = "ERR_BAD_REQUEST";
|
|
6011
|
+
AxiosError.ERR_CANCELED = "ERR_CANCELED";
|
|
6012
|
+
AxiosError.ERR_NOT_SUPPORT = "ERR_NOT_SUPPORT";
|
|
6013
|
+
AxiosError.ERR_INVALID_URL = "ERR_INVALID_URL";
|
|
6014
6014
|
//#endregion
|
|
6015
6015
|
//#region ../../node_modules/.pnpm/delayed-stream@1.0.0/node_modules/delayed-stream/lib/delayed_stream.js
|
|
6016
6016
|
var require_delayed_stream = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -14021,7 +14021,7 @@ var predicates = utils_default.toFlatObject(utils_default, {}, null, function fi
|
|
|
14021
14021
|
*
|
|
14022
14022
|
* @returns
|
|
14023
14023
|
*/
|
|
14024
|
-
function toFormData
|
|
14024
|
+
function toFormData(obj, formData, options) {
|
|
14025
14025
|
if (!utils_default.isObject(obj)) throw new TypeError("target must be an object");
|
|
14026
14026
|
formData = formData || new (FormData_default || FormData)();
|
|
14027
14027
|
options = utils_default.toFlatObject(options, {
|
|
@@ -14041,7 +14041,7 @@ function toFormData$1(obj, formData, options) {
|
|
|
14041
14041
|
if (value === null) return "";
|
|
14042
14042
|
if (utils_default.isDate(value)) return value.toISOString();
|
|
14043
14043
|
if (utils_default.isBoolean(value)) return value.toString();
|
|
14044
|
-
if (!useBlob && utils_default.isBlob(value)) throw new AxiosError
|
|
14044
|
+
if (!useBlob && utils_default.isBlob(value)) throw new AxiosError("Blob is not supported. Use a Buffer instead.");
|
|
14045
14045
|
if (utils_default.isArrayBuffer(value) || utils_default.isTypedArray(value)) return useBlob && typeof Blob === "function" ? new Blob([value]) : Buffer.from(value);
|
|
14046
14046
|
return value;
|
|
14047
14047
|
}
|
|
@@ -14130,7 +14130,7 @@ function encode$3(str) {
|
|
|
14130
14130
|
*/
|
|
14131
14131
|
function AxiosURLSearchParams(params, options) {
|
|
14132
14132
|
this._pairs = [];
|
|
14133
|
-
params && toFormData
|
|
14133
|
+
params && toFormData(params, this, options);
|
|
14134
14134
|
}
|
|
14135
14135
|
var prototype = AxiosURLSearchParams.prototype;
|
|
14136
14136
|
prototype.append = function append(name, value) {
|
|
@@ -14336,7 +14336,7 @@ var platform_default = {
|
|
|
14336
14336
|
//#endregion
|
|
14337
14337
|
//#region ../../node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/toURLEncodedForm.js
|
|
14338
14338
|
function toURLEncodedForm(data, options) {
|
|
14339
|
-
return toFormData
|
|
14339
|
+
return toFormData(data, new platform_default.classes.URLSearchParams(), {
|
|
14340
14340
|
visitor: function(value, key, path, helpers) {
|
|
14341
14341
|
if (platform_default.isNode && utils_default.isBuffer(value)) {
|
|
14342
14342
|
this.append(key, value.toString("base64"));
|
|
@@ -14457,7 +14457,7 @@ var defaults = {
|
|
|
14457
14457
|
if (contentType.indexOf("application/x-www-form-urlencoded") > -1) return toURLEncodedForm(data, this.formSerializer).toString();
|
|
14458
14458
|
if ((isFileList = utils_default.isFileList(data)) || contentType.indexOf("multipart/form-data") > -1) {
|
|
14459
14459
|
const _FormData = this.env && this.env.FormData;
|
|
14460
|
-
return toFormData
|
|
14460
|
+
return toFormData(isFileList ? { "files[]": data } : data, _FormData && new _FormData(), this.formSerializer);
|
|
14461
14461
|
}
|
|
14462
14462
|
}
|
|
14463
14463
|
if (isObjectPayload || hasJSONContentType) {
|
|
@@ -14477,7 +14477,7 @@ var defaults = {
|
|
|
14477
14477
|
return JSON.parse(data, this.parseReviver);
|
|
14478
14478
|
} catch (e) {
|
|
14479
14479
|
if (strictJSONParsing) {
|
|
14480
|
-
if (e.name === "SyntaxError") throw AxiosError
|
|
14480
|
+
if (e.name === "SyntaxError") throw AxiosError.from(e, AxiosError.ERR_BAD_RESPONSE, this, null, this.response);
|
|
14481
14481
|
throw e;
|
|
14482
14482
|
}
|
|
14483
14483
|
}
|
|
@@ -14607,7 +14607,7 @@ function buildAccessors(obj, header) {
|
|
|
14607
14607
|
});
|
|
14608
14608
|
});
|
|
14609
14609
|
}
|
|
14610
|
-
var AxiosHeaders
|
|
14610
|
+
var AxiosHeaders = class {
|
|
14611
14611
|
constructor(headers) {
|
|
14612
14612
|
headers && this.set(headers);
|
|
14613
14613
|
}
|
|
@@ -14745,7 +14745,7 @@ var AxiosHeaders$1 = class {
|
|
|
14745
14745
|
return this;
|
|
14746
14746
|
}
|
|
14747
14747
|
};
|
|
14748
|
-
AxiosHeaders
|
|
14748
|
+
AxiosHeaders.accessor([
|
|
14749
14749
|
"Content-Type",
|
|
14750
14750
|
"Content-Length",
|
|
14751
14751
|
"Accept",
|
|
@@ -14753,7 +14753,7 @@ AxiosHeaders$1.accessor([
|
|
|
14753
14753
|
"User-Agent",
|
|
14754
14754
|
"Authorization"
|
|
14755
14755
|
]);
|
|
14756
|
-
utils_default.reduceDescriptors(AxiosHeaders
|
|
14756
|
+
utils_default.reduceDescriptors(AxiosHeaders.prototype, ({ value }, key) => {
|
|
14757
14757
|
let mapped = key[0].toUpperCase() + key.slice(1);
|
|
14758
14758
|
return {
|
|
14759
14759
|
get: () => value,
|
|
@@ -14762,7 +14762,7 @@ utils_default.reduceDescriptors(AxiosHeaders$1.prototype, ({ value }, key) => {
|
|
|
14762
14762
|
}
|
|
14763
14763
|
};
|
|
14764
14764
|
});
|
|
14765
|
-
utils_default.freezeMethods(AxiosHeaders
|
|
14765
|
+
utils_default.freezeMethods(AxiosHeaders);
|
|
14766
14766
|
//#endregion
|
|
14767
14767
|
//#region ../../node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/core/transformData.js
|
|
14768
14768
|
/**
|
|
@@ -14776,7 +14776,7 @@ utils_default.freezeMethods(AxiosHeaders$1);
|
|
|
14776
14776
|
function transformData(fns, response) {
|
|
14777
14777
|
const config = this || defaults;
|
|
14778
14778
|
const context = response || config;
|
|
14779
|
-
const headers = AxiosHeaders
|
|
14779
|
+
const headers = AxiosHeaders.from(context.headers);
|
|
14780
14780
|
let data = context.data;
|
|
14781
14781
|
utils_default.forEach(fns, function transform(fn) {
|
|
14782
14782
|
data = fn.call(config, data, headers.normalize(), response ? response.status : void 0);
|
|
@@ -14786,12 +14786,12 @@ function transformData(fns, response) {
|
|
|
14786
14786
|
}
|
|
14787
14787
|
//#endregion
|
|
14788
14788
|
//#region ../../node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/cancel/isCancel.js
|
|
14789
|
-
function isCancel
|
|
14789
|
+
function isCancel(value) {
|
|
14790
14790
|
return !!(value && value.__CANCEL__);
|
|
14791
14791
|
}
|
|
14792
14792
|
//#endregion
|
|
14793
14793
|
//#region ../../node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/cancel/CanceledError.js
|
|
14794
|
-
var CanceledError
|
|
14794
|
+
var CanceledError = class extends AxiosError {
|
|
14795
14795
|
/**
|
|
14796
14796
|
* A `CanceledError` is an object that is thrown when an operation is canceled.
|
|
14797
14797
|
*
|
|
@@ -14802,7 +14802,7 @@ var CanceledError$1 = class extends AxiosError$1 {
|
|
|
14802
14802
|
* @returns {CanceledError} The created error.
|
|
14803
14803
|
*/
|
|
14804
14804
|
constructor(message, config, request) {
|
|
14805
|
-
super(message == null ? "canceled" : message, AxiosError
|
|
14805
|
+
super(message == null ? "canceled" : message, AxiosError.ERR_CANCELED, config, request);
|
|
14806
14806
|
this.name = "CanceledError";
|
|
14807
14807
|
this.__CANCEL__ = true;
|
|
14808
14808
|
}
|
|
@@ -14821,7 +14821,7 @@ var CanceledError$1 = class extends AxiosError$1 {
|
|
|
14821
14821
|
function settle(resolve, reject, response) {
|
|
14822
14822
|
const validateStatus = response.config.validateStatus;
|
|
14823
14823
|
if (!response.status || !validateStatus || validateStatus(response.status)) resolve(response);
|
|
14824
|
-
else reject(new AxiosError
|
|
14824
|
+
else reject(new AxiosError("Request failed with status code " + response.status, [AxiosError.ERR_BAD_REQUEST, AxiosError.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4], response.config, response.request, response));
|
|
14825
14825
|
}
|
|
14826
14826
|
//#endregion
|
|
14827
14827
|
//#region ../../node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/isAbsoluteURL.js
|
|
@@ -16195,7 +16195,7 @@ var require_follow_redirects = /* @__PURE__ */ __commonJSMin(((exports, module)
|
|
|
16195
16195
|
}));
|
|
16196
16196
|
//#endregion
|
|
16197
16197
|
//#region ../../node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/env/data.js
|
|
16198
|
-
var VERSION
|
|
16198
|
+
var VERSION = "1.14.0";
|
|
16199
16199
|
//#endregion
|
|
16200
16200
|
//#region ../../node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/parseProtocol.js
|
|
16201
16201
|
function parseProtocol(url) {
|
|
@@ -16222,18 +16222,18 @@ function fromDataURI(uri, asBlob, options) {
|
|
|
16222
16222
|
if (protocol === "data") {
|
|
16223
16223
|
uri = protocol.length ? uri.slice(protocol.length + 1) : uri;
|
|
16224
16224
|
const match = DATA_URL_PATTERN.exec(uri);
|
|
16225
|
-
if (!match) throw new AxiosError
|
|
16225
|
+
if (!match) throw new AxiosError("Invalid URL", AxiosError.ERR_INVALID_URL);
|
|
16226
16226
|
const mime = match[1];
|
|
16227
16227
|
const isBase64 = match[2];
|
|
16228
16228
|
const body = match[3];
|
|
16229
16229
|
const buffer = Buffer.from(decodeURIComponent(body), isBase64 ? "base64" : "utf8");
|
|
16230
16230
|
if (asBlob) {
|
|
16231
|
-
if (!_Blob) throw new AxiosError
|
|
16231
|
+
if (!_Blob) throw new AxiosError("Blob is not supported", AxiosError.ERR_NOT_SUPPORT);
|
|
16232
16232
|
return new _Blob([buffer], { type: mime });
|
|
16233
16233
|
}
|
|
16234
16234
|
return buffer;
|
|
16235
16235
|
}
|
|
16236
|
-
throw new AxiosError
|
|
16236
|
+
throw new AxiosError("Unsupported protocol " + protocol, AxiosError.ERR_NOT_SUPPORT);
|
|
16237
16237
|
}
|
|
16238
16238
|
//#endregion
|
|
16239
16239
|
//#region ../../node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/AxiosTransformStream.js
|
|
@@ -16695,7 +16695,7 @@ function setProxy(options, configProxy, location) {
|
|
|
16695
16695
|
if (proxy.username) proxy.auth = (proxy.username || "") + ":" + (proxy.password || "");
|
|
16696
16696
|
if (proxy.auth) {
|
|
16697
16697
|
if (Boolean(proxy.auth.username || proxy.auth.password)) proxy.auth = (proxy.auth.username || "") + ":" + (proxy.auth.password || "");
|
|
16698
|
-
else if (typeof proxy.auth === "object") throw new AxiosError
|
|
16698
|
+
else if (typeof proxy.auth === "object") throw new AxiosError("Invalid proxy authorization", AxiosError.ERR_BAD_OPTION, { proxy });
|
|
16699
16699
|
const base64 = Buffer.from(proxy.auth, "utf8").toString("base64");
|
|
16700
16700
|
options.headers["Proxy-Authorization"] = "Basic " + base64;
|
|
16701
16701
|
}
|
|
@@ -16793,7 +16793,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
16793
16793
|
const abortEmitter = new EventEmitter();
|
|
16794
16794
|
function abort(reason) {
|
|
16795
16795
|
try {
|
|
16796
|
-
abortEmitter.emit("abort", !reason || reason.type ? new CanceledError
|
|
16796
|
+
abortEmitter.emit("abort", !reason || reason.type ? new CanceledError(null, config, req) : reason);
|
|
16797
16797
|
} catch (err) {
|
|
16798
16798
|
console.warn("emit error", err);
|
|
16799
16799
|
}
|
|
@@ -16828,7 +16828,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
16828
16828
|
const protocol = parsed.protocol || supportedProtocols[0];
|
|
16829
16829
|
if (protocol === "data:") {
|
|
16830
16830
|
if (config.maxContentLength > -1) {
|
|
16831
|
-
if (estimateDataURLDecodedBytes(String(config.url || fullPath || "")) > config.maxContentLength) return reject(new AxiosError
|
|
16831
|
+
if (estimateDataURLDecodedBytes(String(config.url || fullPath || "")) > config.maxContentLength) return reject(new AxiosError("maxContentLength size of " + config.maxContentLength + " exceeded", AxiosError.ERR_BAD_RESPONSE, config));
|
|
16832
16832
|
}
|
|
16833
16833
|
let convertedData;
|
|
16834
16834
|
if (method !== "GET") return settle(resolve, reject, {
|
|
@@ -16840,7 +16840,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
16840
16840
|
try {
|
|
16841
16841
|
convertedData = fromDataURI(config.url, responseType === "blob", { Blob: config.env && config.env.Blob });
|
|
16842
16842
|
} catch (err) {
|
|
16843
|
-
throw AxiosError
|
|
16843
|
+
throw AxiosError.from(err, AxiosError.ERR_BAD_REQUEST, config);
|
|
16844
16844
|
}
|
|
16845
16845
|
if (responseType === "text") {
|
|
16846
16846
|
convertedData = convertedData.toString(responseEncoding);
|
|
@@ -16850,12 +16850,12 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
16850
16850
|
data: convertedData,
|
|
16851
16851
|
status: 200,
|
|
16852
16852
|
statusText: "OK",
|
|
16853
|
-
headers: new AxiosHeaders
|
|
16853
|
+
headers: new AxiosHeaders(),
|
|
16854
16854
|
config
|
|
16855
16855
|
});
|
|
16856
16856
|
}
|
|
16857
|
-
if (supportedProtocols.indexOf(protocol) === -1) return reject(new AxiosError
|
|
16858
|
-
const headers = AxiosHeaders
|
|
16857
|
+
if (supportedProtocols.indexOf(protocol) === -1) return reject(new AxiosError("Unsupported protocol " + protocol, AxiosError.ERR_BAD_REQUEST, config));
|
|
16858
|
+
const headers = AxiosHeaders.from(config.headers).normalize();
|
|
16859
16859
|
headers.set("User-Agent", "axios/1.14.0", false);
|
|
16860
16860
|
const { onUploadProgress, onDownloadProgress } = config;
|
|
16861
16861
|
const maxRate = config.maxRate;
|
|
@@ -16882,9 +16882,9 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
16882
16882
|
} else if (data && !utils_default.isStream(data)) {
|
|
16883
16883
|
if (Buffer.isBuffer(data)) {} else if (utils_default.isArrayBuffer(data)) data = Buffer.from(new Uint8Array(data));
|
|
16884
16884
|
else if (utils_default.isString(data)) data = Buffer.from(data, "utf-8");
|
|
16885
|
-
else return reject(new AxiosError
|
|
16885
|
+
else return reject(new AxiosError("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream", AxiosError.ERR_BAD_REQUEST, config));
|
|
16886
16886
|
headers.setContentLength(data.length, false);
|
|
16887
|
-
if (config.maxBodyLength > -1 && data.length > config.maxBodyLength) return reject(new AxiosError
|
|
16887
|
+
if (config.maxBodyLength > -1 && data.length > config.maxBodyLength) return reject(new AxiosError("Request body larger than maxBodyLength limit", AxiosError.ERR_BAD_REQUEST, config));
|
|
16888
16888
|
}
|
|
16889
16889
|
const contentLength = utils_default.toFiniteNumber(headers.getContentLength());
|
|
16890
16890
|
if (utils_default.isArray(maxRate)) {
|
|
@@ -16991,7 +16991,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
16991
16991
|
const response = {
|
|
16992
16992
|
status: res.statusCode,
|
|
16993
16993
|
statusText: res.statusMessage,
|
|
16994
|
-
headers: new AxiosHeaders
|
|
16994
|
+
headers: new AxiosHeaders(res.headers),
|
|
16995
16995
|
config,
|
|
16996
16996
|
request: lastRequest
|
|
16997
16997
|
};
|
|
@@ -17007,18 +17007,18 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
17007
17007
|
if (config.maxContentLength > -1 && totalResponseBytes > config.maxContentLength) {
|
|
17008
17008
|
rejected = true;
|
|
17009
17009
|
responseStream.destroy();
|
|
17010
|
-
abort(new AxiosError
|
|
17010
|
+
abort(new AxiosError("maxContentLength size of " + config.maxContentLength + " exceeded", AxiosError.ERR_BAD_RESPONSE, config, lastRequest));
|
|
17011
17011
|
}
|
|
17012
17012
|
});
|
|
17013
17013
|
responseStream.on("aborted", function handlerStreamAborted() {
|
|
17014
17014
|
if (rejected) return;
|
|
17015
|
-
const err = new AxiosError
|
|
17015
|
+
const err = new AxiosError("stream has been aborted", AxiosError.ERR_BAD_RESPONSE, config, lastRequest);
|
|
17016
17016
|
responseStream.destroy(err);
|
|
17017
17017
|
reject(err);
|
|
17018
17018
|
});
|
|
17019
17019
|
responseStream.on("error", function handleStreamError(err) {
|
|
17020
17020
|
if (req.destroyed) return;
|
|
17021
|
-
reject(AxiosError
|
|
17021
|
+
reject(AxiosError.from(err, null, config, lastRequest));
|
|
17022
17022
|
});
|
|
17023
17023
|
responseStream.on("end", function handleStreamEnd() {
|
|
17024
17024
|
try {
|
|
@@ -17029,7 +17029,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
17029
17029
|
}
|
|
17030
17030
|
response.data = responseData;
|
|
17031
17031
|
} catch (err) {
|
|
17032
|
-
return reject(AxiosError
|
|
17032
|
+
return reject(AxiosError.from(err, null, config, response.request, response));
|
|
17033
17033
|
}
|
|
17034
17034
|
settle(resolve, reject, response);
|
|
17035
17035
|
});
|
|
@@ -17046,7 +17046,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
17046
17046
|
else req.destroy(err);
|
|
17047
17047
|
});
|
|
17048
17048
|
req.on("error", function handleRequestError(err) {
|
|
17049
|
-
reject(AxiosError
|
|
17049
|
+
reject(AxiosError.from(err, null, config, req));
|
|
17050
17050
|
});
|
|
17051
17051
|
req.on("socket", function handleRequestSocket(socket) {
|
|
17052
17052
|
socket.setKeepAlive(true, 1e3 * 60);
|
|
@@ -17054,7 +17054,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
17054
17054
|
if (config.timeout) {
|
|
17055
17055
|
const timeout = parseInt(config.timeout, 10);
|
|
17056
17056
|
if (Number.isNaN(timeout)) {
|
|
17057
|
-
abort(new AxiosError
|
|
17057
|
+
abort(new AxiosError("error trying to parse `config.timeout` to int", AxiosError.ERR_BAD_OPTION_VALUE, config, req));
|
|
17058
17058
|
return;
|
|
17059
17059
|
}
|
|
17060
17060
|
req.setTimeout(timeout, function handleRequestTimeout() {
|
|
@@ -17062,7 +17062,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
17062
17062
|
let timeoutErrorMessage = config.timeout ? "timeout of " + config.timeout + "ms exceeded" : "timeout exceeded";
|
|
17063
17063
|
const transitional = config.transitional || transitional_default;
|
|
17064
17064
|
if (config.timeoutErrorMessage) timeoutErrorMessage = config.timeoutErrorMessage;
|
|
17065
|
-
abort(new AxiosError
|
|
17065
|
+
abort(new AxiosError(timeoutErrorMessage, transitional.clarifyTimeoutError ? AxiosError.ETIMEDOUT : AxiosError.ECONNABORTED, config, req));
|
|
17066
17066
|
});
|
|
17067
17067
|
} else req.setTimeout(0);
|
|
17068
17068
|
if (utils_default.isStream(data)) {
|
|
@@ -17076,7 +17076,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
17076
17076
|
req.destroy(err);
|
|
17077
17077
|
});
|
|
17078
17078
|
data.on("close", () => {
|
|
17079
|
-
if (!ended && !errored) abort(new CanceledError
|
|
17079
|
+
if (!ended && !errored) abort(new CanceledError("Request stream has been aborted", config, req));
|
|
17080
17080
|
});
|
|
17081
17081
|
data.pipe(req);
|
|
17082
17082
|
} else {
|
|
@@ -17121,7 +17121,7 @@ var cookies_default = platform_default.hasStandardBrowserEnv ? {
|
|
|
17121
17121
|
};
|
|
17122
17122
|
//#endregion
|
|
17123
17123
|
//#region ../../node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/core/mergeConfig.js
|
|
17124
|
-
var headersToObject = (thing) => thing instanceof AxiosHeaders
|
|
17124
|
+
var headersToObject = (thing) => thing instanceof AxiosHeaders ? { ...thing } : thing;
|
|
17125
17125
|
/**
|
|
17126
17126
|
* Config-specific merge-function which creates a new config-object
|
|
17127
17127
|
* by merging two configuration objects together.
|
|
@@ -17131,7 +17131,7 @@ var headersToObject = (thing) => thing instanceof AxiosHeaders$1 ? { ...thing }
|
|
|
17131
17131
|
*
|
|
17132
17132
|
* @returns {Object} New object resulting from merging config2 to config1
|
|
17133
17133
|
*/
|
|
17134
|
-
function mergeConfig
|
|
17134
|
+
function mergeConfig(config1, config2) {
|
|
17135
17135
|
config2 = config2 || {};
|
|
17136
17136
|
const config = {};
|
|
17137
17137
|
function getMergedValue(target, source, prop, caseless) {
|
|
@@ -17200,9 +17200,9 @@ function mergeConfig$1(config1, config2) {
|
|
|
17200
17200
|
//#endregion
|
|
17201
17201
|
//#region ../../node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/resolveConfig.js
|
|
17202
17202
|
var resolveConfig_default = (config) => {
|
|
17203
|
-
const newConfig = mergeConfig
|
|
17203
|
+
const newConfig = mergeConfig({}, config);
|
|
17204
17204
|
let { data, withXSRFToken, xsrfHeaderName, xsrfCookieName, headers, auth } = newConfig;
|
|
17205
|
-
newConfig.headers = headers = AxiosHeaders
|
|
17205
|
+
newConfig.headers = headers = AxiosHeaders.from(headers);
|
|
17206
17206
|
newConfig.url = buildURL(buildFullPath(newConfig.baseURL, newConfig.url, newConfig.allowAbsoluteUrls), config.params, config.paramsSerializer);
|
|
17207
17207
|
if (auth) headers.set("Authorization", "Basic " + btoa((auth.username || "") + ":" + (auth.password ? unescape(encodeURIComponent(auth.password)) : "")));
|
|
17208
17208
|
if (utils_default.isFormData(data)) {
|
|
@@ -17228,7 +17228,7 @@ var xhr_default = typeof XMLHttpRequest !== "undefined" && function(config) {
|
|
|
17228
17228
|
return new Promise(function dispatchXhrRequest(resolve, reject) {
|
|
17229
17229
|
const _config = resolveConfig_default(config);
|
|
17230
17230
|
let requestData = _config.data;
|
|
17231
|
-
const requestHeaders = AxiosHeaders
|
|
17231
|
+
const requestHeaders = AxiosHeaders.from(_config.headers).normalize();
|
|
17232
17232
|
let { responseType, onUploadProgress, onDownloadProgress } = _config;
|
|
17233
17233
|
let onCanceled;
|
|
17234
17234
|
let uploadThrottled, downloadThrottled;
|
|
@@ -17244,7 +17244,7 @@ var xhr_default = typeof XMLHttpRequest !== "undefined" && function(config) {
|
|
|
17244
17244
|
request.timeout = _config.timeout;
|
|
17245
17245
|
function onloadend() {
|
|
17246
17246
|
if (!request) return;
|
|
17247
|
-
const responseHeaders = AxiosHeaders
|
|
17247
|
+
const responseHeaders = AxiosHeaders.from("getAllResponseHeaders" in request && request.getAllResponseHeaders());
|
|
17248
17248
|
settle(function _resolve(value) {
|
|
17249
17249
|
resolve(value);
|
|
17250
17250
|
done();
|
|
@@ -17269,11 +17269,11 @@ var xhr_default = typeof XMLHttpRequest !== "undefined" && function(config) {
|
|
|
17269
17269
|
};
|
|
17270
17270
|
request.onabort = function handleAbort() {
|
|
17271
17271
|
if (!request) return;
|
|
17272
|
-
reject(new AxiosError
|
|
17272
|
+
reject(new AxiosError("Request aborted", AxiosError.ECONNABORTED, config, request));
|
|
17273
17273
|
request = null;
|
|
17274
17274
|
};
|
|
17275
17275
|
request.onerror = function handleError(event) {
|
|
17276
|
-
const err = new AxiosError
|
|
17276
|
+
const err = new AxiosError(event && event.message ? event.message : "Network Error", AxiosError.ERR_NETWORK, config, request);
|
|
17277
17277
|
err.event = event || null;
|
|
17278
17278
|
reject(err);
|
|
17279
17279
|
request = null;
|
|
@@ -17282,7 +17282,7 @@ var xhr_default = typeof XMLHttpRequest !== "undefined" && function(config) {
|
|
|
17282
17282
|
let timeoutErrorMessage = _config.timeout ? "timeout of " + _config.timeout + "ms exceeded" : "timeout exceeded";
|
|
17283
17283
|
const transitional = _config.transitional || transitional_default;
|
|
17284
17284
|
if (_config.timeoutErrorMessage) timeoutErrorMessage = _config.timeoutErrorMessage;
|
|
17285
|
-
reject(new AxiosError
|
|
17285
|
+
reject(new AxiosError(timeoutErrorMessage, transitional.clarifyTimeoutError ? AxiosError.ETIMEDOUT : AxiosError.ECONNABORTED, config, request));
|
|
17286
17286
|
request = null;
|
|
17287
17287
|
};
|
|
17288
17288
|
requestData === void 0 && requestHeaders.setContentType(null);
|
|
@@ -17303,7 +17303,7 @@ var xhr_default = typeof XMLHttpRequest !== "undefined" && function(config) {
|
|
|
17303
17303
|
if (_config.cancelToken || _config.signal) {
|
|
17304
17304
|
onCanceled = (cancel) => {
|
|
17305
17305
|
if (!request) return;
|
|
17306
|
-
reject(!cancel || cancel.type ? new CanceledError
|
|
17306
|
+
reject(!cancel || cancel.type ? new CanceledError(null, config, request) : cancel);
|
|
17307
17307
|
request.abort();
|
|
17308
17308
|
request = null;
|
|
17309
17309
|
};
|
|
@@ -17312,7 +17312,7 @@ var xhr_default = typeof XMLHttpRequest !== "undefined" && function(config) {
|
|
|
17312
17312
|
}
|
|
17313
17313
|
const protocol = parseProtocol(_config.url);
|
|
17314
17314
|
if (protocol && platform_default.protocols.indexOf(protocol) === -1) {
|
|
17315
|
-
reject(new AxiosError
|
|
17315
|
+
reject(new AxiosError("Unsupported protocol " + protocol + ":", AxiosError.ERR_BAD_REQUEST, config));
|
|
17316
17316
|
return;
|
|
17317
17317
|
}
|
|
17318
17318
|
request.send(requestData || null);
|
|
@@ -17330,12 +17330,12 @@ var composeSignals = (signals, timeout) => {
|
|
|
17330
17330
|
aborted = true;
|
|
17331
17331
|
unsubscribe();
|
|
17332
17332
|
const err = reason instanceof Error ? reason : this.reason;
|
|
17333
|
-
controller.abort(err instanceof AxiosError
|
|
17333
|
+
controller.abort(err instanceof AxiosError ? err : new CanceledError(err instanceof Error ? err.message : err));
|
|
17334
17334
|
}
|
|
17335
17335
|
};
|
|
17336
17336
|
let timer = timeout && setTimeout(() => {
|
|
17337
17337
|
timer = null;
|
|
17338
|
-
onabort(new AxiosError
|
|
17338
|
+
onabort(new AxiosError(`timeout of ${timeout}ms exceeded`, AxiosError.ETIMEDOUT));
|
|
17339
17339
|
}, timeout);
|
|
17340
17340
|
const unsubscribe = () => {
|
|
17341
17341
|
if (signals) {
|
|
@@ -17472,7 +17472,7 @@ var factory = (env) => {
|
|
|
17472
17472
|
!resolvers[type] && (resolvers[type] = (res, config) => {
|
|
17473
17473
|
let method = res && res[type];
|
|
17474
17474
|
if (method) return method.call(res);
|
|
17475
|
-
throw new AxiosError
|
|
17475
|
+
throw new AxiosError(`Response type '${type}' is not supported`, AxiosError.ERR_NOT_SUPPORT, config);
|
|
17476
17476
|
});
|
|
17477
17477
|
});
|
|
17478
17478
|
const getBodyLength = async (body) => {
|
|
@@ -17550,7 +17550,7 @@ var factory = (env) => {
|
|
|
17550
17550
|
return await new Promise((resolve, reject) => {
|
|
17551
17551
|
settle(resolve, reject, {
|
|
17552
17552
|
data: responseData,
|
|
17553
|
-
headers: AxiosHeaders
|
|
17553
|
+
headers: AxiosHeaders.from(response.headers),
|
|
17554
17554
|
status: response.status,
|
|
17555
17555
|
statusText: response.statusText,
|
|
17556
17556
|
config,
|
|
@@ -17559,8 +17559,8 @@ var factory = (env) => {
|
|
|
17559
17559
|
});
|
|
17560
17560
|
} catch (err) {
|
|
17561
17561
|
unsubscribe && unsubscribe();
|
|
17562
|
-
if (err && err.name === "TypeError" && /Load failed|fetch/i.test(err.message)) throw Object.assign(new AxiosError
|
|
17563
|
-
throw AxiosError
|
|
17562
|
+
if (err && err.name === "TypeError" && /Load failed|fetch/i.test(err.message)) throw Object.assign(new AxiosError("Network Error", AxiosError.ERR_NETWORK, config, request, err && err.response), { cause: err.cause || err });
|
|
17563
|
+
throw AxiosError.from(err, err && err.code, config, request, err && err.response);
|
|
17564
17564
|
}
|
|
17565
17565
|
};
|
|
17566
17566
|
};
|
|
@@ -17631,7 +17631,7 @@ var isResolvedHandle = (adapter) => utils_default.isFunction(adapter) || adapter
|
|
|
17631
17631
|
* @throws {AxiosError} If no suitable adapter is available
|
|
17632
17632
|
* @returns {Function} The resolved adapter function
|
|
17633
17633
|
*/
|
|
17634
|
-
function getAdapter
|
|
17634
|
+
function getAdapter(adapters, config) {
|
|
17635
17635
|
adapters = utils_default.isArray(adapters) ? adapters : [adapters];
|
|
17636
17636
|
const { length } = adapters;
|
|
17637
17637
|
let nameOrAdapter;
|
|
@@ -17643,14 +17643,14 @@ function getAdapter$1(adapters, config) {
|
|
|
17643
17643
|
adapter = nameOrAdapter;
|
|
17644
17644
|
if (!isResolvedHandle(nameOrAdapter)) {
|
|
17645
17645
|
adapter = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()];
|
|
17646
|
-
if (adapter === void 0) throw new AxiosError
|
|
17646
|
+
if (adapter === void 0) throw new AxiosError(`Unknown adapter '${id}'`);
|
|
17647
17647
|
}
|
|
17648
17648
|
if (adapter && (utils_default.isFunction(adapter) || (adapter = adapter.get(config)))) break;
|
|
17649
17649
|
rejectedReasons[id || "#" + i] = adapter;
|
|
17650
17650
|
}
|
|
17651
17651
|
if (!adapter) {
|
|
17652
17652
|
const reasons = Object.entries(rejectedReasons).map(([id, state]) => `adapter ${id} ` + (state === false ? "is not supported by the environment" : "is not available in the build"));
|
|
17653
|
-
throw new AxiosError
|
|
17653
|
+
throw new AxiosError(`There is no suitable adapter to dispatch the request ` + (length ? reasons.length > 1 ? "since :\n" + reasons.map(renderReason).join("\n") : " " + renderReason(reasons[0]) : "as no adapter specified"), "ERR_NOT_SUPPORT");
|
|
17654
17654
|
}
|
|
17655
17655
|
return adapter;
|
|
17656
17656
|
}
|
|
@@ -17658,7 +17658,7 @@ function getAdapter$1(adapters, config) {
|
|
|
17658
17658
|
* Exports Axios adapters and utility to resolve an adapter
|
|
17659
17659
|
*/
|
|
17660
17660
|
var adapters_default = {
|
|
17661
|
-
getAdapter
|
|
17661
|
+
getAdapter,
|
|
17662
17662
|
adapters: knownAdapters
|
|
17663
17663
|
};
|
|
17664
17664
|
//#endregion
|
|
@@ -17672,7 +17672,7 @@ var adapters_default = {
|
|
|
17672
17672
|
*/
|
|
17673
17673
|
function throwIfCancellationRequested(config) {
|
|
17674
17674
|
if (config.cancelToken) config.cancelToken.throwIfRequested();
|
|
17675
|
-
if (config.signal && config.signal.aborted) throw new CanceledError
|
|
17675
|
+
if (config.signal && config.signal.aborted) throw new CanceledError(null, config);
|
|
17676
17676
|
}
|
|
17677
17677
|
/**
|
|
17678
17678
|
* Dispatch a request to the server using the configured adapter.
|
|
@@ -17683,7 +17683,7 @@ function throwIfCancellationRequested(config) {
|
|
|
17683
17683
|
*/
|
|
17684
17684
|
function dispatchRequest(config) {
|
|
17685
17685
|
throwIfCancellationRequested(config);
|
|
17686
|
-
config.headers = AxiosHeaders
|
|
17686
|
+
config.headers = AxiosHeaders.from(config.headers);
|
|
17687
17687
|
config.data = transformData.call(config, config.transformRequest);
|
|
17688
17688
|
if ([
|
|
17689
17689
|
"post",
|
|
@@ -17693,14 +17693,14 @@ function dispatchRequest(config) {
|
|
|
17693
17693
|
return adapters_default.getAdapter(config.adapter || defaults.adapter, config)(config).then(function onAdapterResolution(response) {
|
|
17694
17694
|
throwIfCancellationRequested(config);
|
|
17695
17695
|
response.data = transformData.call(config, config.transformResponse, response);
|
|
17696
|
-
response.headers = AxiosHeaders
|
|
17696
|
+
response.headers = AxiosHeaders.from(response.headers);
|
|
17697
17697
|
return response;
|
|
17698
17698
|
}, function onAdapterRejection(reason) {
|
|
17699
|
-
if (!isCancel
|
|
17699
|
+
if (!isCancel(reason)) {
|
|
17700
17700
|
throwIfCancellationRequested(config);
|
|
17701
17701
|
if (reason && reason.response) {
|
|
17702
17702
|
reason.response.data = transformData.call(config, config.transformResponse, reason.response);
|
|
17703
|
-
reason.response.headers = AxiosHeaders
|
|
17703
|
+
reason.response.headers = AxiosHeaders.from(reason.response.headers);
|
|
17704
17704
|
}
|
|
17705
17705
|
}
|
|
17706
17706
|
return Promise.reject(reason);
|
|
@@ -17733,10 +17733,10 @@ var deprecatedWarnings = {};
|
|
|
17733
17733
|
*/
|
|
17734
17734
|
validators$1.transitional = function transitional(validator, version, message) {
|
|
17735
17735
|
function formatMessage(opt, desc) {
|
|
17736
|
-
return "[Axios v" + VERSION
|
|
17736
|
+
return "[Axios v" + VERSION + "] Transitional option '" + opt + "'" + desc + (message ? ". " + message : "");
|
|
17737
17737
|
}
|
|
17738
17738
|
return (value, opt, opts) => {
|
|
17739
|
-
if (validator === false) throw new AxiosError
|
|
17739
|
+
if (validator === false) throw new AxiosError(formatMessage(opt, " has been removed" + (version ? " in " + version : "")), AxiosError.ERR_DEPRECATED);
|
|
17740
17740
|
if (version && !deprecatedWarnings[opt]) {
|
|
17741
17741
|
deprecatedWarnings[opt] = true;
|
|
17742
17742
|
console.warn(formatMessage(opt, " has been deprecated since v" + version + " and will be removed in the near future"));
|
|
@@ -17760,7 +17760,7 @@ validators$1.spelling = function spelling(correctSpelling) {
|
|
|
17760
17760
|
* @returns {object}
|
|
17761
17761
|
*/
|
|
17762
17762
|
function assertOptions(options, schema, allowUnknown) {
|
|
17763
|
-
if (typeof options !== "object") throw new AxiosError
|
|
17763
|
+
if (typeof options !== "object") throw new AxiosError("options must be an object", AxiosError.ERR_BAD_OPTION_VALUE);
|
|
17764
17764
|
const keys = Object.keys(options);
|
|
17765
17765
|
let i = keys.length;
|
|
17766
17766
|
while (i-- > 0) {
|
|
@@ -17769,10 +17769,10 @@ function assertOptions(options, schema, allowUnknown) {
|
|
|
17769
17769
|
if (validator) {
|
|
17770
17770
|
const value = options[opt];
|
|
17771
17771
|
const result = value === void 0 || validator(value, opt, options);
|
|
17772
|
-
if (result !== true) throw new AxiosError
|
|
17772
|
+
if (result !== true) throw new AxiosError("option " + opt + " must be " + result, AxiosError.ERR_BAD_OPTION_VALUE);
|
|
17773
17773
|
continue;
|
|
17774
17774
|
}
|
|
17775
|
-
if (allowUnknown !== true) throw new AxiosError
|
|
17775
|
+
if (allowUnknown !== true) throw new AxiosError("Unknown option " + opt, AxiosError.ERR_BAD_OPTION);
|
|
17776
17776
|
}
|
|
17777
17777
|
}
|
|
17778
17778
|
var validator_default = {
|
|
@@ -17789,7 +17789,7 @@ var validators = validator_default.validators;
|
|
|
17789
17789
|
*
|
|
17790
17790
|
* @return {Axios} A new instance of Axios
|
|
17791
17791
|
*/
|
|
17792
|
-
var Axios
|
|
17792
|
+
var Axios = class {
|
|
17793
17793
|
constructor(instanceConfig) {
|
|
17794
17794
|
this.defaults = instanceConfig || {};
|
|
17795
17795
|
this.interceptors = {
|
|
@@ -17826,7 +17826,7 @@ var Axios$1 = class {
|
|
|
17826
17826
|
config = config || {};
|
|
17827
17827
|
config.url = configOrUrl;
|
|
17828
17828
|
} else config = configOrUrl || {};
|
|
17829
|
-
config = mergeConfig
|
|
17829
|
+
config = mergeConfig(this.defaults, config);
|
|
17830
17830
|
const { transitional, paramsSerializer, headers } = config;
|
|
17831
17831
|
if (transitional !== void 0) validator_default.assertOptions(transitional, {
|
|
17832
17832
|
silentJSONParsing: validators.transitional(validators.boolean),
|
|
@@ -17858,7 +17858,7 @@ var Axios$1 = class {
|
|
|
17858
17858
|
], (method) => {
|
|
17859
17859
|
delete headers[method];
|
|
17860
17860
|
});
|
|
17861
|
-
config.headers = AxiosHeaders
|
|
17861
|
+
config.headers = AxiosHeaders.concat(contextHeaders, headers);
|
|
17862
17862
|
const requestInterceptorChain = [];
|
|
17863
17863
|
let synchronousRequestInterceptors = true;
|
|
17864
17864
|
this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {
|
|
@@ -17907,7 +17907,7 @@ var Axios$1 = class {
|
|
|
17907
17907
|
return promise;
|
|
17908
17908
|
}
|
|
17909
17909
|
getUri(config) {
|
|
17910
|
-
config = mergeConfig
|
|
17910
|
+
config = mergeConfig(this.defaults, config);
|
|
17911
17911
|
return buildURL(buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls), config.params, config.paramsSerializer);
|
|
17912
17912
|
}
|
|
17913
17913
|
};
|
|
@@ -17917,8 +17917,8 @@ utils_default.forEach([
|
|
|
17917
17917
|
"head",
|
|
17918
17918
|
"options"
|
|
17919
17919
|
], function forEachMethodNoData(method) {
|
|
17920
|
-
Axios
|
|
17921
|
-
return this.request(mergeConfig
|
|
17920
|
+
Axios.prototype[method] = function(url, config) {
|
|
17921
|
+
return this.request(mergeConfig(config || {}, {
|
|
17922
17922
|
method,
|
|
17923
17923
|
url,
|
|
17924
17924
|
data: (config || {}).data
|
|
@@ -17932,7 +17932,7 @@ utils_default.forEach([
|
|
|
17932
17932
|
], function forEachMethodWithData(method) {
|
|
17933
17933
|
function generateHTTPMethod(isForm) {
|
|
17934
17934
|
return function httpMethod(url, data, config) {
|
|
17935
|
-
return this.request(mergeConfig
|
|
17935
|
+
return this.request(mergeConfig(config || {}, {
|
|
17936
17936
|
method,
|
|
17937
17937
|
headers: isForm ? { "Content-Type": "multipart/form-data" } : {},
|
|
17938
17938
|
url,
|
|
@@ -17940,8 +17940,8 @@ utils_default.forEach([
|
|
|
17940
17940
|
}));
|
|
17941
17941
|
};
|
|
17942
17942
|
}
|
|
17943
|
-
Axios
|
|
17944
|
-
Axios
|
|
17943
|
+
Axios.prototype[method] = generateHTTPMethod();
|
|
17944
|
+
Axios.prototype[method + "Form"] = generateHTTPMethod(true);
|
|
17945
17945
|
});
|
|
17946
17946
|
//#endregion
|
|
17947
17947
|
//#region ../../node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/cancel/CancelToken.js
|
|
@@ -17952,7 +17952,7 @@ utils_default.forEach([
|
|
|
17952
17952
|
*
|
|
17953
17953
|
* @returns {CancelToken}
|
|
17954
17954
|
*/
|
|
17955
|
-
var CancelToken
|
|
17955
|
+
var CancelToken = class CancelToken {
|
|
17956
17956
|
constructor(executor) {
|
|
17957
17957
|
if (typeof executor !== "function") throw new TypeError("executor must be a function.");
|
|
17958
17958
|
let resolvePromise;
|
|
@@ -17979,7 +17979,7 @@ var CancelToken$1 = class CancelToken$1 {
|
|
|
17979
17979
|
};
|
|
17980
17980
|
executor(function cancel(message, config, request) {
|
|
17981
17981
|
if (token.reason) return;
|
|
17982
|
-
token.reason = new CanceledError
|
|
17982
|
+
token.reason = new CanceledError(message, config, request);
|
|
17983
17983
|
resolvePromise(token.reason);
|
|
17984
17984
|
});
|
|
17985
17985
|
}
|
|
@@ -18024,7 +18024,7 @@ var CancelToken$1 = class CancelToken$1 {
|
|
|
18024
18024
|
static source() {
|
|
18025
18025
|
let cancel;
|
|
18026
18026
|
return {
|
|
18027
|
-
token: new CancelToken
|
|
18027
|
+
token: new CancelToken(function executor(c) {
|
|
18028
18028
|
cancel = c;
|
|
18029
18029
|
}),
|
|
18030
18030
|
cancel
|
|
@@ -18054,7 +18054,7 @@ var CancelToken$1 = class CancelToken$1 {
|
|
|
18054
18054
|
*
|
|
18055
18055
|
* @returns {Function}
|
|
18056
18056
|
*/
|
|
18057
|
-
function spread
|
|
18057
|
+
function spread(callback) {
|
|
18058
18058
|
return function wrap(arr) {
|
|
18059
18059
|
return callback.apply(null, arr);
|
|
18060
18060
|
};
|
|
@@ -18068,12 +18068,12 @@ function spread$1(callback) {
|
|
|
18068
18068
|
*
|
|
18069
18069
|
* @returns {boolean} True if the payload is an error thrown by Axios, otherwise false
|
|
18070
18070
|
*/
|
|
18071
|
-
function isAxiosError
|
|
18071
|
+
function isAxiosError(payload) {
|
|
18072
18072
|
return utils_default.isObject(payload) && payload.isAxiosError === true;
|
|
18073
18073
|
}
|
|
18074
18074
|
//#endregion
|
|
18075
18075
|
//#region ../../node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/HttpStatusCode.js
|
|
18076
|
-
var HttpStatusCode
|
|
18076
|
+
var HttpStatusCode = {
|
|
18077
18077
|
Continue: 100,
|
|
18078
18078
|
SwitchingProtocols: 101,
|
|
18079
18079
|
Processing: 102,
|
|
@@ -18144,8 +18144,8 @@ var HttpStatusCode$1 = {
|
|
|
18144
18144
|
SslHandshakeFailed: 525,
|
|
18145
18145
|
InvalidSslCertificate: 526
|
|
18146
18146
|
};
|
|
18147
|
-
Object.entries(HttpStatusCode
|
|
18148
|
-
HttpStatusCode
|
|
18147
|
+
Object.entries(HttpStatusCode).forEach(([key, value]) => {
|
|
18148
|
+
HttpStatusCode[value] = key;
|
|
18149
18149
|
});
|
|
18150
18150
|
//#endregion
|
|
18151
18151
|
//#region ../../node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/axios.js
|
|
@@ -18157,39 +18157,36 @@ Object.entries(HttpStatusCode$1).forEach(([key, value]) => {
|
|
|
18157
18157
|
* @returns {Axios} A new instance of Axios
|
|
18158
18158
|
*/
|
|
18159
18159
|
function createInstance(defaultConfig) {
|
|
18160
|
-
const context = new Axios
|
|
18161
|
-
const instance = bind(Axios
|
|
18162
|
-
utils_default.extend(instance, Axios
|
|
18160
|
+
const context = new Axios(defaultConfig);
|
|
18161
|
+
const instance = bind(Axios.prototype.request, context);
|
|
18162
|
+
utils_default.extend(instance, Axios.prototype, context, { allOwnKeys: true });
|
|
18163
18163
|
utils_default.extend(instance, context, null, { allOwnKeys: true });
|
|
18164
18164
|
instance.create = function create(instanceConfig) {
|
|
18165
|
-
return createInstance(mergeConfig
|
|
18165
|
+
return createInstance(mergeConfig(defaultConfig, instanceConfig));
|
|
18166
18166
|
};
|
|
18167
18167
|
return instance;
|
|
18168
18168
|
}
|
|
18169
18169
|
var axios = createInstance(defaults);
|
|
18170
|
-
axios.Axios = Axios
|
|
18171
|
-
axios.CanceledError = CanceledError
|
|
18172
|
-
axios.CancelToken = CancelToken
|
|
18173
|
-
axios.isCancel = isCancel
|
|
18174
|
-
axios.VERSION = VERSION
|
|
18175
|
-
axios.toFormData = toFormData
|
|
18176
|
-
axios.AxiosError = AxiosError
|
|
18170
|
+
axios.Axios = Axios;
|
|
18171
|
+
axios.CanceledError = CanceledError;
|
|
18172
|
+
axios.CancelToken = CancelToken;
|
|
18173
|
+
axios.isCancel = isCancel;
|
|
18174
|
+
axios.VERSION = VERSION;
|
|
18175
|
+
axios.toFormData = toFormData;
|
|
18176
|
+
axios.AxiosError = AxiosError;
|
|
18177
18177
|
axios.Cancel = axios.CanceledError;
|
|
18178
18178
|
axios.all = function all(promises) {
|
|
18179
18179
|
return Promise.all(promises);
|
|
18180
18180
|
};
|
|
18181
|
-
axios.spread = spread
|
|
18182
|
-
axios.isAxiosError = isAxiosError
|
|
18183
|
-
axios.mergeConfig = mergeConfig
|
|
18184
|
-
axios.AxiosHeaders = AxiosHeaders
|
|
18181
|
+
axios.spread = spread;
|
|
18182
|
+
axios.isAxiosError = isAxiosError;
|
|
18183
|
+
axios.mergeConfig = mergeConfig;
|
|
18184
|
+
axios.AxiosHeaders = AxiosHeaders;
|
|
18185
18185
|
axios.formToJSON = (thing) => formDataToJSON(utils_default.isHTMLForm(thing) ? new FormData(thing) : thing);
|
|
18186
18186
|
axios.getAdapter = adapters_default.getAdapter;
|
|
18187
|
-
axios.HttpStatusCode = HttpStatusCode
|
|
18187
|
+
axios.HttpStatusCode = HttpStatusCode;
|
|
18188
18188
|
axios.default = axios;
|
|
18189
18189
|
//#endregion
|
|
18190
|
-
//#region ../../node_modules/.pnpm/axios@1.14.0/node_modules/axios/index.js
|
|
18191
|
-
var { Axios, AxiosError, CanceledError, isCancel, CancelToken, VERSION, all, Cancel, isAxiosError, spread, toFormData, AxiosHeaders, HttpStatusCode, formToJSON, getAdapter, mergeConfig } = axios;
|
|
18192
|
-
//#endregion
|
|
18193
18190
|
//#region ../../node_modules/.pnpm/eventsource-parser@3.0.6/node_modules/eventsource-parser/dist/index.js
|
|
18194
18191
|
var ParseError = class extends Error {
|
|
18195
18192
|
constructor(message, options) {
|
|
@@ -22316,10 +22313,8 @@ var en_default = {
|
|
|
22316
22313
|
"error.serviceUnavailable": "Service unavailable",
|
|
22317
22314
|
"setting.invalidValue": (reason) => `Invalid setting value: ${reason}`,
|
|
22318
22315
|
"setting.unknownKey": (key) => `Unknown setting key ${key}`,
|
|
22319
|
-
"setting.noSupervisor": () => "Restart is unavailable when running locally — nothing would bring the server back up",
|
|
22320
22316
|
"qgrid.dispatcherFailed": (provider) => `${provider} dispatcher failed to initialize`,
|
|
22321
22317
|
"qgrid.dispatcherStarting": (provider) => `${provider} dispatcher is starting up. Please retry shortly`,
|
|
22322
|
-
"qgrid.restartPending": () => "Server restart is in progress. Please retry shortly",
|
|
22323
22318
|
"error.unauthorized": "Unauthorized",
|
|
22324
22319
|
notFound: (name, id) => `${name} ID ${id} not found`,
|
|
22325
22320
|
"validation.email": "Invalid email format",
|
|
@@ -22382,10 +22377,8 @@ var ko_default = {
|
|
|
22382
22377
|
"error.serviceUnavailable": "서비스를 사용할 수 없습니다",
|
|
22383
22378
|
"setting.invalidValue": (reason) => `설정 값이 올바르지 않습니다: ${reason}`,
|
|
22384
22379
|
"setting.unknownKey": (key) => `알 수 없는 설정 키 ${key}`,
|
|
22385
|
-
"setting.noSupervisor": () => "로컬 실행 환경에서는 재시작할 수 없습니다 — 종료하면 다시 켜줄 모니터링 도구가 없습니다",
|
|
22386
22380
|
"qgrid.dispatcherFailed": (provider) => `${provider} dispatcher 초기화에 실패했습니다`,
|
|
22387
22381
|
"qgrid.dispatcherStarting": (provider) => `${provider} dispatcher 기동 중입니다. 잠시 후 다시 시도해주세요`,
|
|
22388
|
-
"qgrid.restartPending": () => "서버 재시작 중입니다. 잠시 후 다시 시도해주세요",
|
|
22389
22382
|
"error.unauthorized": "인증이 필요합니다",
|
|
22390
22383
|
"error.unknownSearchField": (field) => `구현되지 않은 검색 필드 ${field}`,
|
|
22391
22384
|
notFound: (name, id) => `존재하지 않는 ${name} ID ${id}`,
|
|
@@ -23207,14 +23200,6 @@ var SettingService;
|
|
|
23207
23200
|
}
|
|
23208
23201
|
_SettingService.triggerExpiryReminder = triggerExpiryReminder;
|
|
23209
23202
|
_SettingService.useTriggerExpiryReminderMutation = () => useMutation({ mutationFn: (params) => triggerExpiryReminder() });
|
|
23210
|
-
async function restartServer() {
|
|
23211
|
-
return fetch$1({
|
|
23212
|
-
method: "POST",
|
|
23213
|
-
url: `/api/setting/restartServer`
|
|
23214
|
-
});
|
|
23215
|
-
}
|
|
23216
|
-
_SettingService.restartServer = restartServer;
|
|
23217
|
-
_SettingService.useRestartServerMutation = () => useMutation({ mutationFn: (params) => restartServer() });
|
|
23218
23203
|
})(SettingService || (SettingService = {}));
|
|
23219
23204
|
var RequestLogStepService;
|
|
23220
23205
|
(function(_RequestLogStepService) {
|
|
@@ -23713,4 +23698,4 @@ RequestLogStepService.useRequestLogSteps, RequestLogStepService.useRequestLogSte
|
|
|
23713
23698
|
SettingService.useSettings, SettingService.useSettingsInfinite;
|
|
23714
23699
|
TokenService.useTokens, TokenService.useTokensInfinite;
|
|
23715
23700
|
//#endregion
|
|
23716
|
-
export {
|
|
23701
|
+
export { require_react as A, matchQuery as B, union as C, QueryClientProvider as D, useQuery as E, notifyManager as F, focusManager as G, partialMatchKey as H, functionalUpdate as I, __exportAll as J, Subscribable as K, hashKey as L, infiniteQueryBehavior as M, Query as N, useQueryClient as O, onlineManager as P, hashQueryKeyByOptions as R, string as S, useMutation as T, resolveStaleTime as U, noop$2 as V, skipToken as W, __toESM as X, __require as Y, custom as _, SettingService as a, number as b, fetch$1 as c, SD as d, SUPPORTED_LOCALES as f, boolean as g, array as h, RequestLogStepService as i, Mutation as j, require_jsx_runtime as k, isSonamuError as l, _enum as m, QgridService as n, TokenService as o, setLocale as p, __commonJSMin as q, RequestLogService as r, SonamuQueryMode as s, MonitService as t, zArrayable as u, date as v, unknown as w, object as x, int as y, matchMutation as z };
|