@sap/ux-ui5-tooling 1.23.0 → 1.24.0
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/CHANGELOG.md +22 -0
- package/dist/cli/index.cjs +16861 -16550
- package/dist/middlewares/fiori-tools-appreload.js +855 -463
- package/dist/middlewares/fiori-tools-preview.js +9080 -25650
- package/dist/middlewares/fiori-tools-proxy.js +26089 -42272
- package/dist/middlewares/fiori-tools-servestatic.js +385 -8787
- package/dist/preview-middleware/dist/client/adp/quick-actions/fe-v4/create-table-custom-column-config-change.js +3 -6
- package/dist/preview-middleware/dist/client/adp/quick-actions/fe-v4/create-table-custom-column-config-change.ts +5 -6
- package/dist/preview-middleware/dist/client/cpe/control-data.js +1 -1
- package/dist/preview-middleware/dist/client/cpe/control-data.ts +1 -1
- package/dist/tasks/cf-deploy/index.js +1361 -893
- package/dist/tasks/deploy/index.js +2159 -1561
- package/package.json +19 -20
- package/prebuilds/keyring.darwin-arm64.node +0 -0
- package/prebuilds/keyring.darwin-x64.node +0 -0
- package/prebuilds/keyring.linux-arm-gnueabihf.node +0 -0
- package/prebuilds/keyring.linux-arm64-gnu.node +0 -0
- package/prebuilds/keyring.linux-arm64-musl.node +0 -0
- package/prebuilds/keyring.linux-ia32-gnu.node +0 -0
- package/prebuilds/keyring.linux-x64-gnu.node +0 -0
- package/prebuilds/keyring.linux-x64-musl.node +0 -0
- package/prebuilds/keyring.win32-arm64-msvc.node +0 -0
- package/prebuilds/keyring.win32-ia32-msvc.node +0 -0
- package/prebuilds/keyring.win32-x64-msvc.node +0 -0
|
@@ -32744,7 +32744,7 @@ var require_package5 = __commonJS({
|
|
|
32744
32744
|
"../../node_modules/@sap-ux/telemetry/package.json"(exports, module) {
|
|
32745
32745
|
module.exports = {
|
|
32746
32746
|
name: "@sap-ux/telemetry",
|
|
32747
|
-
version: "0.6.
|
|
32747
|
+
version: "0.6.101",
|
|
32748
32748
|
description: "Library for sending usage telemetry data",
|
|
32749
32749
|
repository: {
|
|
32750
32750
|
type: "git",
|
|
@@ -32763,7 +32763,7 @@ var require_package5 = __commonJS({
|
|
|
32763
32763
|
"performance-now": "2.1.0",
|
|
32764
32764
|
yaml: "2.8.3",
|
|
32765
32765
|
"@sap-ux/store": "1.5.13",
|
|
32766
|
-
"@sap-ux/project-access": "1.
|
|
32766
|
+
"@sap-ux/project-access": "1.36.0",
|
|
32767
32767
|
"@sap-ux/btp-utils": "1.1.14",
|
|
32768
32768
|
"@sap-ux/ui5-config": "0.30.3",
|
|
32769
32769
|
"@sap-ux/logger": "0.8.5",
|
|
@@ -39584,9 +39584,9 @@ var require_combined_stream = __commonJS({
|
|
|
39584
39584
|
}
|
|
39585
39585
|
});
|
|
39586
39586
|
|
|
39587
|
-
// ../../node_modules/
|
|
39587
|
+
// ../../node_modules/mime-db/db.json
|
|
39588
39588
|
var require_db = __commonJS({
|
|
39589
|
-
"../../node_modules/
|
|
39589
|
+
"../../node_modules/mime-db/db.json"(exports, module) {
|
|
39590
39590
|
module.exports = {
|
|
39591
39591
|
"application/1d-interleaved-parityfec": {
|
|
39592
39592
|
source: "iana"
|
|
@@ -48109,16 +48109,16 @@ var require_db = __commonJS({
|
|
|
48109
48109
|
}
|
|
48110
48110
|
});
|
|
48111
48111
|
|
|
48112
|
-
// ../../node_modules/
|
|
48112
|
+
// ../../node_modules/mime-db/index.js
|
|
48113
48113
|
var require_mime_db = __commonJS({
|
|
48114
|
-
"../../node_modules/
|
|
48114
|
+
"../../node_modules/mime-db/index.js"(exports, module) {
|
|
48115
48115
|
module.exports = require_db();
|
|
48116
48116
|
}
|
|
48117
48117
|
});
|
|
48118
48118
|
|
|
48119
|
-
// ../../node_modules/
|
|
48119
|
+
// ../../node_modules/mime-types/index.js
|
|
48120
48120
|
var require_mime_types = __commonJS({
|
|
48121
|
-
"../../node_modules/
|
|
48121
|
+
"../../node_modules/mime-types/index.js"(exports) {
|
|
48122
48122
|
"use strict";
|
|
48123
48123
|
var db = require_mime_db();
|
|
48124
48124
|
var extname = __require("path").extname;
|
|
@@ -50039,6 +50039,7 @@ var require_axios = __commonJS({
|
|
|
50039
50039
|
var https = __require("https");
|
|
50040
50040
|
var http2 = __require("http2");
|
|
50041
50041
|
var util3 = __require("util");
|
|
50042
|
+
var path3 = __require("path");
|
|
50042
50043
|
var followRedirects = require_follow_redirects();
|
|
50043
50044
|
var zlib = __require("zlib");
|
|
50044
50045
|
var stream = __require("stream");
|
|
@@ -50125,9 +50126,14 @@ var require_axios = __commonJS({
|
|
|
50125
50126
|
var G = getGlobal2();
|
|
50126
50127
|
var FormDataCtor = typeof G.FormData !== "undefined" ? G.FormData : void 0;
|
|
50127
50128
|
var isFormData = (thing) => {
|
|
50128
|
-
|
|
50129
|
-
|
|
50130
|
-
|
|
50129
|
+
if (!thing) return false;
|
|
50130
|
+
if (FormDataCtor && thing instanceof FormDataCtor) return true;
|
|
50131
|
+
const proto = getPrototypeOf(thing);
|
|
50132
|
+
if (!proto || proto === Object.prototype) return false;
|
|
50133
|
+
if (!isFunction$1(thing.append)) return false;
|
|
50134
|
+
const kind = kindOf(thing);
|
|
50135
|
+
return kind === "formdata" || // detect form-data instance
|
|
50136
|
+
kind === "object" && isFunction$1(thing.toString) && thing.toString() === "[object FormData]";
|
|
50131
50137
|
};
|
|
50132
50138
|
var isURLSearchParams = kindOfTest("URLSearchParams");
|
|
50133
50139
|
var [isReadableStream, isRequest, isResponse, isHeaders] = ["ReadableStream", "Request", "Response", "Headers"].map(kindOfTest);
|
|
@@ -50183,7 +50189,7 @@ var require_axios = __commonJS({
|
|
|
50183
50189
|
return typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : global;
|
|
50184
50190
|
})();
|
|
50185
50191
|
var isContextDefined = (context2) => !isUndefined(context2) && context2 !== _global2;
|
|
50186
|
-
function merge2() {
|
|
50192
|
+
function merge2(...objs) {
|
|
50187
50193
|
const {
|
|
50188
50194
|
caseless,
|
|
50189
50195
|
skipUndefined
|
|
@@ -50194,8 +50200,9 @@ var require_axios = __commonJS({
|
|
|
50194
50200
|
return;
|
|
50195
50201
|
}
|
|
50196
50202
|
const targetKey = caseless && findKey(result, key) || key;
|
|
50197
|
-
|
|
50198
|
-
|
|
50203
|
+
const existing = hasOwnProperty2(result, targetKey) ? result[targetKey] : void 0;
|
|
50204
|
+
if (isPlainObject2(existing) && isPlainObject2(val)) {
|
|
50205
|
+
result[targetKey] = merge2(existing, val);
|
|
50199
50206
|
} else if (isPlainObject2(val)) {
|
|
50200
50207
|
result[targetKey] = merge2({}, val);
|
|
50201
50208
|
} else if (isArray2(val)) {
|
|
@@ -50204,8 +50211,8 @@ var require_axios = __commonJS({
|
|
|
50204
50211
|
result[targetKey] = val;
|
|
50205
50212
|
}
|
|
50206
50213
|
};
|
|
50207
|
-
for (let i = 0, l =
|
|
50208
|
-
|
|
50214
|
+
for (let i = 0, l = objs.length; i < l; i++) {
|
|
50215
|
+
objs[i] && forEach(objs[i], assignValue);
|
|
50209
50216
|
}
|
|
50210
50217
|
return result;
|
|
50211
50218
|
}
|
|
@@ -50215,6 +50222,9 @@ var require_axios = __commonJS({
|
|
|
50215
50222
|
forEach(b, (val, key) => {
|
|
50216
50223
|
if (thisArg && isFunction$1(val)) {
|
|
50217
50224
|
Object.defineProperty(a, key, {
|
|
50225
|
+
// Null-proto descriptor so a polluted Object.prototype.get cannot
|
|
50226
|
+
// hijack defineProperty's accessor-vs-data resolution.
|
|
50227
|
+
__proto__: null,
|
|
50218
50228
|
value: bind(val, thisArg),
|
|
50219
50229
|
writable: true,
|
|
50220
50230
|
enumerable: true,
|
|
@@ -50222,6 +50232,7 @@ var require_axios = __commonJS({
|
|
|
50222
50232
|
});
|
|
50223
50233
|
} else {
|
|
50224
50234
|
Object.defineProperty(a, key, {
|
|
50235
|
+
__proto__: null,
|
|
50225
50236
|
value: val,
|
|
50226
50237
|
writable: true,
|
|
50227
50238
|
enumerable: true,
|
|
@@ -50242,12 +50253,14 @@ var require_axios = __commonJS({
|
|
|
50242
50253
|
var inherits = (constructor, superConstructor, props, descriptors) => {
|
|
50243
50254
|
constructor.prototype = Object.create(superConstructor.prototype, descriptors);
|
|
50244
50255
|
Object.defineProperty(constructor.prototype, "constructor", {
|
|
50256
|
+
__proto__: null,
|
|
50245
50257
|
value: constructor,
|
|
50246
50258
|
writable: true,
|
|
50247
50259
|
enumerable: false,
|
|
50248
50260
|
configurable: true
|
|
50249
50261
|
});
|
|
50250
50262
|
Object.defineProperty(constructor, "super", {
|
|
50263
|
+
__proto__: null,
|
|
50251
50264
|
value: superConstructor.prototype
|
|
50252
50265
|
});
|
|
50253
50266
|
props && Object.assign(constructor.prototype, props);
|
|
@@ -50338,7 +50351,7 @@ var require_axios = __commonJS({
|
|
|
50338
50351
|
};
|
|
50339
50352
|
var freezeMethods = (obj) => {
|
|
50340
50353
|
reduceDescriptors(obj, (descriptor, name2) => {
|
|
50341
|
-
if (isFunction$1(obj) && ["arguments", "caller", "callee"].
|
|
50354
|
+
if (isFunction$1(obj) && ["arguments", "caller", "callee"].includes(name2)) {
|
|
50342
50355
|
return false;
|
|
50343
50356
|
}
|
|
50344
50357
|
const value = obj[name2];
|
|
@@ -50483,6 +50496,337 @@ var require_axios = __commonJS({
|
|
|
50483
50496
|
asap,
|
|
50484
50497
|
isIterable
|
|
50485
50498
|
};
|
|
50499
|
+
var ignoreDuplicateOf = utils$1.toObjectSet(["age", "authorization", "content-length", "content-type", "etag", "expires", "from", "host", "if-modified-since", "if-unmodified-since", "last-modified", "location", "max-forwards", "proxy-authorization", "referer", "retry-after", "user-agent"]);
|
|
50500
|
+
var parseHeaders = (rawHeaders) => {
|
|
50501
|
+
const parsed = {};
|
|
50502
|
+
let key;
|
|
50503
|
+
let val;
|
|
50504
|
+
let i;
|
|
50505
|
+
rawHeaders && rawHeaders.split("\n").forEach(function parser(line) {
|
|
50506
|
+
i = line.indexOf(":");
|
|
50507
|
+
key = line.substring(0, i).trim().toLowerCase();
|
|
50508
|
+
val = line.substring(i + 1).trim();
|
|
50509
|
+
if (!key || parsed[key] && ignoreDuplicateOf[key]) {
|
|
50510
|
+
return;
|
|
50511
|
+
}
|
|
50512
|
+
if (key === "set-cookie") {
|
|
50513
|
+
if (parsed[key]) {
|
|
50514
|
+
parsed[key].push(val);
|
|
50515
|
+
} else {
|
|
50516
|
+
parsed[key] = [val];
|
|
50517
|
+
}
|
|
50518
|
+
} else {
|
|
50519
|
+
parsed[key] = parsed[key] ? parsed[key] + ", " + val : val;
|
|
50520
|
+
}
|
|
50521
|
+
});
|
|
50522
|
+
return parsed;
|
|
50523
|
+
};
|
|
50524
|
+
var $internals = Symbol("internals");
|
|
50525
|
+
var INVALID_HEADER_VALUE_CHARS_RE = /[^\x09\x20-\x7E\x80-\xFF]/g;
|
|
50526
|
+
function trimSPorHTAB(str) {
|
|
50527
|
+
let start = 0;
|
|
50528
|
+
let end = str.length;
|
|
50529
|
+
while (start < end) {
|
|
50530
|
+
const code = str.charCodeAt(start);
|
|
50531
|
+
if (code !== 9 && code !== 32) {
|
|
50532
|
+
break;
|
|
50533
|
+
}
|
|
50534
|
+
start += 1;
|
|
50535
|
+
}
|
|
50536
|
+
while (end > start) {
|
|
50537
|
+
const code = str.charCodeAt(end - 1);
|
|
50538
|
+
if (code !== 9 && code !== 32) {
|
|
50539
|
+
break;
|
|
50540
|
+
}
|
|
50541
|
+
end -= 1;
|
|
50542
|
+
}
|
|
50543
|
+
return start === 0 && end === str.length ? str : str.slice(start, end);
|
|
50544
|
+
}
|
|
50545
|
+
function normalizeHeader(header) {
|
|
50546
|
+
return header && String(header).trim().toLowerCase();
|
|
50547
|
+
}
|
|
50548
|
+
function sanitizeHeaderValue(str) {
|
|
50549
|
+
return trimSPorHTAB(str.replace(INVALID_HEADER_VALUE_CHARS_RE, ""));
|
|
50550
|
+
}
|
|
50551
|
+
function normalizeValue(value) {
|
|
50552
|
+
if (value === false || value == null) {
|
|
50553
|
+
return value;
|
|
50554
|
+
}
|
|
50555
|
+
return utils$1.isArray(value) ? value.map(normalizeValue) : sanitizeHeaderValue(String(value));
|
|
50556
|
+
}
|
|
50557
|
+
function parseTokens(str) {
|
|
50558
|
+
const tokens = /* @__PURE__ */ Object.create(null);
|
|
50559
|
+
const tokensRE = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
50560
|
+
let match;
|
|
50561
|
+
while (match = tokensRE.exec(str)) {
|
|
50562
|
+
tokens[match[1]] = match[2];
|
|
50563
|
+
}
|
|
50564
|
+
return tokens;
|
|
50565
|
+
}
|
|
50566
|
+
var isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());
|
|
50567
|
+
function matchHeaderValue(context2, value, header, filter, isHeaderNameFilter) {
|
|
50568
|
+
if (utils$1.isFunction(filter)) {
|
|
50569
|
+
return filter.call(this, value, header);
|
|
50570
|
+
}
|
|
50571
|
+
if (isHeaderNameFilter) {
|
|
50572
|
+
value = header;
|
|
50573
|
+
}
|
|
50574
|
+
if (!utils$1.isString(value)) return;
|
|
50575
|
+
if (utils$1.isString(filter)) {
|
|
50576
|
+
return value.indexOf(filter) !== -1;
|
|
50577
|
+
}
|
|
50578
|
+
if (utils$1.isRegExp(filter)) {
|
|
50579
|
+
return filter.test(value);
|
|
50580
|
+
}
|
|
50581
|
+
}
|
|
50582
|
+
function formatHeader(header) {
|
|
50583
|
+
return header.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (w, char, str) => {
|
|
50584
|
+
return char.toUpperCase() + str;
|
|
50585
|
+
});
|
|
50586
|
+
}
|
|
50587
|
+
function buildAccessors(obj, header) {
|
|
50588
|
+
const accessorName = utils$1.toCamelCase(" " + header);
|
|
50589
|
+
["get", "set", "has"].forEach((methodName) => {
|
|
50590
|
+
Object.defineProperty(obj, methodName + accessorName, {
|
|
50591
|
+
// Null-proto descriptor so a polluted Object.prototype.get cannot turn
|
|
50592
|
+
// this data descriptor into an accessor descriptor on the way in.
|
|
50593
|
+
__proto__: null,
|
|
50594
|
+
value: function(arg1, arg2, arg3) {
|
|
50595
|
+
return this[methodName].call(this, header, arg1, arg2, arg3);
|
|
50596
|
+
},
|
|
50597
|
+
configurable: true
|
|
50598
|
+
});
|
|
50599
|
+
});
|
|
50600
|
+
}
|
|
50601
|
+
var AxiosHeaders = class {
|
|
50602
|
+
constructor(headers) {
|
|
50603
|
+
headers && this.set(headers);
|
|
50604
|
+
}
|
|
50605
|
+
set(header, valueOrRewrite, rewrite) {
|
|
50606
|
+
const self2 = this;
|
|
50607
|
+
function setHeader(_value, _header, _rewrite) {
|
|
50608
|
+
const lHeader = normalizeHeader(_header);
|
|
50609
|
+
if (!lHeader) {
|
|
50610
|
+
throw new Error("header name must be a non-empty string");
|
|
50611
|
+
}
|
|
50612
|
+
const key = utils$1.findKey(self2, lHeader);
|
|
50613
|
+
if (!key || self2[key] === void 0 || _rewrite === true || _rewrite === void 0 && self2[key] !== false) {
|
|
50614
|
+
self2[key || _header] = normalizeValue(_value);
|
|
50615
|
+
}
|
|
50616
|
+
}
|
|
50617
|
+
const setHeaders = (headers, _rewrite) => utils$1.forEach(headers, (_value, _header) => setHeader(_value, _header, _rewrite));
|
|
50618
|
+
if (utils$1.isPlainObject(header) || header instanceof this.constructor) {
|
|
50619
|
+
setHeaders(header, valueOrRewrite);
|
|
50620
|
+
} else if (utils$1.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {
|
|
50621
|
+
setHeaders(parseHeaders(header), valueOrRewrite);
|
|
50622
|
+
} else if (utils$1.isObject(header) && utils$1.isIterable(header)) {
|
|
50623
|
+
let obj = {}, dest, key;
|
|
50624
|
+
for (const entry of header) {
|
|
50625
|
+
if (!utils$1.isArray(entry)) {
|
|
50626
|
+
throw TypeError("Object iterator must return a key-value pair");
|
|
50627
|
+
}
|
|
50628
|
+
obj[key = entry[0]] = (dest = obj[key]) ? utils$1.isArray(dest) ? [...dest, entry[1]] : [dest, entry[1]] : entry[1];
|
|
50629
|
+
}
|
|
50630
|
+
setHeaders(obj, valueOrRewrite);
|
|
50631
|
+
} else {
|
|
50632
|
+
header != null && setHeader(valueOrRewrite, header, rewrite);
|
|
50633
|
+
}
|
|
50634
|
+
return this;
|
|
50635
|
+
}
|
|
50636
|
+
get(header, parser) {
|
|
50637
|
+
header = normalizeHeader(header);
|
|
50638
|
+
if (header) {
|
|
50639
|
+
const key = utils$1.findKey(this, header);
|
|
50640
|
+
if (key) {
|
|
50641
|
+
const value = this[key];
|
|
50642
|
+
if (!parser) {
|
|
50643
|
+
return value;
|
|
50644
|
+
}
|
|
50645
|
+
if (parser === true) {
|
|
50646
|
+
return parseTokens(value);
|
|
50647
|
+
}
|
|
50648
|
+
if (utils$1.isFunction(parser)) {
|
|
50649
|
+
return parser.call(this, value, key);
|
|
50650
|
+
}
|
|
50651
|
+
if (utils$1.isRegExp(parser)) {
|
|
50652
|
+
return parser.exec(value);
|
|
50653
|
+
}
|
|
50654
|
+
throw new TypeError("parser must be boolean|regexp|function");
|
|
50655
|
+
}
|
|
50656
|
+
}
|
|
50657
|
+
}
|
|
50658
|
+
has(header, matcher) {
|
|
50659
|
+
header = normalizeHeader(header);
|
|
50660
|
+
if (header) {
|
|
50661
|
+
const key = utils$1.findKey(this, header);
|
|
50662
|
+
return !!(key && this[key] !== void 0 && (!matcher || matchHeaderValue(this, this[key], key, matcher)));
|
|
50663
|
+
}
|
|
50664
|
+
return false;
|
|
50665
|
+
}
|
|
50666
|
+
delete(header, matcher) {
|
|
50667
|
+
const self2 = this;
|
|
50668
|
+
let deleted = false;
|
|
50669
|
+
function deleteHeader(_header) {
|
|
50670
|
+
_header = normalizeHeader(_header);
|
|
50671
|
+
if (_header) {
|
|
50672
|
+
const key = utils$1.findKey(self2, _header);
|
|
50673
|
+
if (key && (!matcher || matchHeaderValue(self2, self2[key], key, matcher))) {
|
|
50674
|
+
delete self2[key];
|
|
50675
|
+
deleted = true;
|
|
50676
|
+
}
|
|
50677
|
+
}
|
|
50678
|
+
}
|
|
50679
|
+
if (utils$1.isArray(header)) {
|
|
50680
|
+
header.forEach(deleteHeader);
|
|
50681
|
+
} else {
|
|
50682
|
+
deleteHeader(header);
|
|
50683
|
+
}
|
|
50684
|
+
return deleted;
|
|
50685
|
+
}
|
|
50686
|
+
clear(matcher) {
|
|
50687
|
+
const keys = Object.keys(this);
|
|
50688
|
+
let i = keys.length;
|
|
50689
|
+
let deleted = false;
|
|
50690
|
+
while (i--) {
|
|
50691
|
+
const key = keys[i];
|
|
50692
|
+
if (!matcher || matchHeaderValue(this, this[key], key, matcher, true)) {
|
|
50693
|
+
delete this[key];
|
|
50694
|
+
deleted = true;
|
|
50695
|
+
}
|
|
50696
|
+
}
|
|
50697
|
+
return deleted;
|
|
50698
|
+
}
|
|
50699
|
+
normalize(format4) {
|
|
50700
|
+
const self2 = this;
|
|
50701
|
+
const headers = {};
|
|
50702
|
+
utils$1.forEach(this, (value, header) => {
|
|
50703
|
+
const key = utils$1.findKey(headers, header);
|
|
50704
|
+
if (key) {
|
|
50705
|
+
self2[key] = normalizeValue(value);
|
|
50706
|
+
delete self2[header];
|
|
50707
|
+
return;
|
|
50708
|
+
}
|
|
50709
|
+
const normalized = format4 ? formatHeader(header) : String(header).trim();
|
|
50710
|
+
if (normalized !== header) {
|
|
50711
|
+
delete self2[header];
|
|
50712
|
+
}
|
|
50713
|
+
self2[normalized] = normalizeValue(value);
|
|
50714
|
+
headers[normalized] = true;
|
|
50715
|
+
});
|
|
50716
|
+
return this;
|
|
50717
|
+
}
|
|
50718
|
+
concat(...targets) {
|
|
50719
|
+
return this.constructor.concat(this, ...targets);
|
|
50720
|
+
}
|
|
50721
|
+
toJSON(asStrings) {
|
|
50722
|
+
const obj = /* @__PURE__ */ Object.create(null);
|
|
50723
|
+
utils$1.forEach(this, (value, header) => {
|
|
50724
|
+
value != null && value !== false && (obj[header] = asStrings && utils$1.isArray(value) ? value.join(", ") : value);
|
|
50725
|
+
});
|
|
50726
|
+
return obj;
|
|
50727
|
+
}
|
|
50728
|
+
[Symbol.iterator]() {
|
|
50729
|
+
return Object.entries(this.toJSON())[Symbol.iterator]();
|
|
50730
|
+
}
|
|
50731
|
+
toString() {
|
|
50732
|
+
return Object.entries(this.toJSON()).map(([header, value]) => header + ": " + value).join("\n");
|
|
50733
|
+
}
|
|
50734
|
+
getSetCookie() {
|
|
50735
|
+
return this.get("set-cookie") || [];
|
|
50736
|
+
}
|
|
50737
|
+
get [Symbol.toStringTag]() {
|
|
50738
|
+
return "AxiosHeaders";
|
|
50739
|
+
}
|
|
50740
|
+
static from(thing) {
|
|
50741
|
+
return thing instanceof this ? thing : new this(thing);
|
|
50742
|
+
}
|
|
50743
|
+
static concat(first, ...targets) {
|
|
50744
|
+
const computed = new this(first);
|
|
50745
|
+
targets.forEach((target) => computed.set(target));
|
|
50746
|
+
return computed;
|
|
50747
|
+
}
|
|
50748
|
+
static accessor(header) {
|
|
50749
|
+
const internals = this[$internals] = this[$internals] = {
|
|
50750
|
+
accessors: {}
|
|
50751
|
+
};
|
|
50752
|
+
const accessors = internals.accessors;
|
|
50753
|
+
const prototype2 = this.prototype;
|
|
50754
|
+
function defineAccessor(_header) {
|
|
50755
|
+
const lHeader = normalizeHeader(_header);
|
|
50756
|
+
if (!accessors[lHeader]) {
|
|
50757
|
+
buildAccessors(prototype2, _header);
|
|
50758
|
+
accessors[lHeader] = true;
|
|
50759
|
+
}
|
|
50760
|
+
}
|
|
50761
|
+
utils$1.isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header);
|
|
50762
|
+
return this;
|
|
50763
|
+
}
|
|
50764
|
+
};
|
|
50765
|
+
AxiosHeaders.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
|
|
50766
|
+
utils$1.reduceDescriptors(AxiosHeaders.prototype, ({
|
|
50767
|
+
value
|
|
50768
|
+
}, key) => {
|
|
50769
|
+
let mapped = key[0].toUpperCase() + key.slice(1);
|
|
50770
|
+
return {
|
|
50771
|
+
get: () => value,
|
|
50772
|
+
set(headerValue) {
|
|
50773
|
+
this[mapped] = headerValue;
|
|
50774
|
+
}
|
|
50775
|
+
};
|
|
50776
|
+
});
|
|
50777
|
+
utils$1.freezeMethods(AxiosHeaders);
|
|
50778
|
+
var REDACTED = "[REDACTED ****]";
|
|
50779
|
+
function hasOwnOrPrototypeToJSON(source) {
|
|
50780
|
+
if (utils$1.hasOwnProp(source, "toJSON")) {
|
|
50781
|
+
return true;
|
|
50782
|
+
}
|
|
50783
|
+
let prototype2 = Object.getPrototypeOf(source);
|
|
50784
|
+
while (prototype2 && prototype2 !== Object.prototype) {
|
|
50785
|
+
if (utils$1.hasOwnProp(prototype2, "toJSON")) {
|
|
50786
|
+
return true;
|
|
50787
|
+
}
|
|
50788
|
+
prototype2 = Object.getPrototypeOf(prototype2);
|
|
50789
|
+
}
|
|
50790
|
+
return false;
|
|
50791
|
+
}
|
|
50792
|
+
function redactConfig(config, redactKeys) {
|
|
50793
|
+
const lowerKeys = new Set(redactKeys.map((k) => String(k).toLowerCase()));
|
|
50794
|
+
const seen = [];
|
|
50795
|
+
const visit3 = (source) => {
|
|
50796
|
+
if (source === null || typeof source !== "object") return source;
|
|
50797
|
+
if (utils$1.isBuffer(source)) return source;
|
|
50798
|
+
if (seen.indexOf(source) !== -1) return void 0;
|
|
50799
|
+
if (source instanceof AxiosHeaders) {
|
|
50800
|
+
source = source.toJSON();
|
|
50801
|
+
}
|
|
50802
|
+
seen.push(source);
|
|
50803
|
+
let result;
|
|
50804
|
+
if (utils$1.isArray(source)) {
|
|
50805
|
+
result = [];
|
|
50806
|
+
source.forEach((v, i) => {
|
|
50807
|
+
const reducedValue = visit3(v);
|
|
50808
|
+
if (!utils$1.isUndefined(reducedValue)) {
|
|
50809
|
+
result[i] = reducedValue;
|
|
50810
|
+
}
|
|
50811
|
+
});
|
|
50812
|
+
} else {
|
|
50813
|
+
if (!utils$1.isPlainObject(source) && hasOwnOrPrototypeToJSON(source)) {
|
|
50814
|
+
seen.pop();
|
|
50815
|
+
return source;
|
|
50816
|
+
}
|
|
50817
|
+
result = /* @__PURE__ */ Object.create(null);
|
|
50818
|
+
for (const [key, value] of Object.entries(source)) {
|
|
50819
|
+
const reducedValue = lowerKeys.has(key.toLowerCase()) ? REDACTED : visit3(value);
|
|
50820
|
+
if (!utils$1.isUndefined(reducedValue)) {
|
|
50821
|
+
result[key] = reducedValue;
|
|
50822
|
+
}
|
|
50823
|
+
}
|
|
50824
|
+
}
|
|
50825
|
+
seen.pop();
|
|
50826
|
+
return result;
|
|
50827
|
+
};
|
|
50828
|
+
return visit3(config);
|
|
50829
|
+
}
|
|
50486
50830
|
var AxiosError = class _AxiosError extends Error {
|
|
50487
50831
|
static from(error, code, config, request, response, customProps) {
|
|
50488
50832
|
const axiosError = new _AxiosError(error.message, code || error.code, config, request, response);
|
|
@@ -50508,6 +50852,9 @@ var require_axios = __commonJS({
|
|
|
50508
50852
|
constructor(message, code, config, request, response) {
|
|
50509
50853
|
super(message);
|
|
50510
50854
|
Object.defineProperty(this, "message", {
|
|
50855
|
+
// Null-proto descriptor so a polluted Object.prototype.get cannot turn
|
|
50856
|
+
// this data descriptor into an accessor descriptor on the way in.
|
|
50857
|
+
__proto__: null,
|
|
50511
50858
|
value: message,
|
|
50512
50859
|
enumerable: true,
|
|
50513
50860
|
writable: true,
|
|
@@ -50524,6 +50871,9 @@ var require_axios = __commonJS({
|
|
|
50524
50871
|
}
|
|
50525
50872
|
}
|
|
50526
50873
|
toJSON() {
|
|
50874
|
+
const config = this.config;
|
|
50875
|
+
const redactKeys = config && utils$1.hasOwnProp(config, "redact") ? config.redact : void 0;
|
|
50876
|
+
const serializedConfig = utils$1.isArray(redactKeys) && redactKeys.length > 0 ? redactConfig(config, redactKeys) : utils$1.toJSONObject(config);
|
|
50527
50877
|
return {
|
|
50528
50878
|
// Standard
|
|
50529
50879
|
message: this.message,
|
|
@@ -50537,7 +50887,7 @@ var require_axios = __commonJS({
|
|
|
50537
50887
|
columnNumber: this.columnNumber,
|
|
50538
50888
|
stack: this.stack,
|
|
50539
50889
|
// Axios
|
|
50540
|
-
config:
|
|
50890
|
+
config: serializedConfig,
|
|
50541
50891
|
code: this.code,
|
|
50542
50892
|
status: this.status
|
|
50543
50893
|
};
|
|
@@ -50547,6 +50897,7 @@ var require_axios = __commonJS({
|
|
|
50547
50897
|
AxiosError.ERR_BAD_OPTION = "ERR_BAD_OPTION";
|
|
50548
50898
|
AxiosError.ECONNABORTED = "ECONNABORTED";
|
|
50549
50899
|
AxiosError.ETIMEDOUT = "ETIMEDOUT";
|
|
50900
|
+
AxiosError.ECONNREFUSED = "ECONNREFUSED";
|
|
50550
50901
|
AxiosError.ERR_NETWORK = "ERR_NETWORK";
|
|
50551
50902
|
AxiosError.ERR_FR_TOO_MANY_REDIRECTS = "ERR_FR_TOO_MANY_REDIRECTS";
|
|
50552
50903
|
AxiosError.ERR_DEPRECATED = "ERR_DEPRECATED";
|
|
@@ -50555,15 +50906,16 @@ var require_axios = __commonJS({
|
|
|
50555
50906
|
AxiosError.ERR_CANCELED = "ERR_CANCELED";
|
|
50556
50907
|
AxiosError.ERR_NOT_SUPPORT = "ERR_NOT_SUPPORT";
|
|
50557
50908
|
AxiosError.ERR_INVALID_URL = "ERR_INVALID_URL";
|
|
50909
|
+
AxiosError.ERR_FORM_DATA_DEPTH_EXCEEDED = "ERR_FORM_DATA_DEPTH_EXCEEDED";
|
|
50558
50910
|
function isVisitable(thing) {
|
|
50559
50911
|
return utils$1.isPlainObject(thing) || utils$1.isArray(thing);
|
|
50560
50912
|
}
|
|
50561
50913
|
function removeBrackets(key) {
|
|
50562
50914
|
return utils$1.endsWith(key, "[]") ? key.slice(0, -2) : key;
|
|
50563
50915
|
}
|
|
50564
|
-
function renderKey(
|
|
50565
|
-
if (!
|
|
50566
|
-
return
|
|
50916
|
+
function renderKey(path4, key, dots) {
|
|
50917
|
+
if (!path4) return key;
|
|
50918
|
+
return path4.concat(key).map(function each(token2, i) {
|
|
50567
50919
|
token2 = removeBrackets(token2);
|
|
50568
50920
|
return !dots && i ? "[" + token2 + "]" : token2;
|
|
50569
50921
|
}).join(dots ? "." : "");
|
|
@@ -50591,6 +50943,7 @@ var require_axios = __commonJS({
|
|
|
50591
50943
|
const dots = options.dots;
|
|
50592
50944
|
const indexes = options.indexes;
|
|
50593
50945
|
const _Blob = options.Blob || typeof Blob !== "undefined" && Blob;
|
|
50946
|
+
const maxDepth = options.maxDepth === void 0 ? 100 : options.maxDepth;
|
|
50594
50947
|
const useBlob = _Blob && utils$1.isSpecCompliantForm(formData);
|
|
50595
50948
|
if (!utils$1.isFunction(visitor)) {
|
|
50596
50949
|
throw new TypeError("visitor must be a function");
|
|
@@ -50611,13 +50964,13 @@ var require_axios = __commonJS({
|
|
|
50611
50964
|
}
|
|
50612
50965
|
return value;
|
|
50613
50966
|
}
|
|
50614
|
-
function defaultVisitor(value, key,
|
|
50967
|
+
function defaultVisitor(value, key, path4) {
|
|
50615
50968
|
let arr = value;
|
|
50616
50969
|
if (utils$1.isReactNative(formData) && utils$1.isReactNativeBlob(value)) {
|
|
50617
|
-
formData.append(renderKey(
|
|
50970
|
+
formData.append(renderKey(path4, key, dots), convertValue(value));
|
|
50618
50971
|
return false;
|
|
50619
50972
|
}
|
|
50620
|
-
if (value && !
|
|
50973
|
+
if (value && !path4 && typeof value === "object") {
|
|
50621
50974
|
if (utils$1.endsWith(key, "{}")) {
|
|
50622
50975
|
key = metaTokens ? key : key.slice(0, -2);
|
|
50623
50976
|
value = JSON.stringify(value);
|
|
@@ -50636,7 +50989,7 @@ var require_axios = __commonJS({
|
|
|
50636
50989
|
if (isVisitable(value)) {
|
|
50637
50990
|
return true;
|
|
50638
50991
|
}
|
|
50639
|
-
formData.append(renderKey(
|
|
50992
|
+
formData.append(renderKey(path4, key, dots), convertValue(value));
|
|
50640
50993
|
return false;
|
|
50641
50994
|
}
|
|
50642
50995
|
const stack = [];
|
|
@@ -50645,16 +50998,19 @@ var require_axios = __commonJS({
|
|
|
50645
50998
|
convertValue,
|
|
50646
50999
|
isVisitable
|
|
50647
51000
|
});
|
|
50648
|
-
function build(value,
|
|
51001
|
+
function build(value, path4, depth = 0) {
|
|
50649
51002
|
if (utils$1.isUndefined(value)) return;
|
|
51003
|
+
if (depth > maxDepth) {
|
|
51004
|
+
throw new AxiosError("Object is too deeply nested (" + depth + " levels). Max depth: " + maxDepth, AxiosError.ERR_FORM_DATA_DEPTH_EXCEEDED);
|
|
51005
|
+
}
|
|
50650
51006
|
if (stack.indexOf(value) !== -1) {
|
|
50651
|
-
throw Error("Circular reference detected in " +
|
|
51007
|
+
throw Error("Circular reference detected in " + path4.join("."));
|
|
50652
51008
|
}
|
|
50653
51009
|
stack.push(value);
|
|
50654
51010
|
utils$1.forEach(value, function each(el, key) {
|
|
50655
|
-
const result = !(utils$1.isUndefined(el) || el === null) && visitor.call(formData, el, utils$1.isString(key) ? key.trim() : key,
|
|
51011
|
+
const result = !(utils$1.isUndefined(el) || el === null) && visitor.call(formData, el, utils$1.isString(key) ? key.trim() : key, path4, exposedHelpers);
|
|
50656
51012
|
if (result === true) {
|
|
50657
|
-
build(el,
|
|
51013
|
+
build(el, path4 ? path4.concat(key) : [key], depth + 1);
|
|
50658
51014
|
}
|
|
50659
51015
|
});
|
|
50660
51016
|
stack.pop();
|
|
@@ -50672,10 +51028,9 @@ var require_axios = __commonJS({
|
|
|
50672
51028
|
"(": "%28",
|
|
50673
51029
|
")": "%29",
|
|
50674
51030
|
"~": "%7E",
|
|
50675
|
-
"%20": "+"
|
|
50676
|
-
"%00": "\0"
|
|
51031
|
+
"%20": "+"
|
|
50677
51032
|
};
|
|
50678
|
-
return encodeURIComponent(str).replace(/[!'()~]|%20
|
|
51033
|
+
return encodeURIComponent(str).replace(/[!'()~]|%20/g, function replacer(match) {
|
|
50679
51034
|
return charMap[match];
|
|
50680
51035
|
});
|
|
50681
51036
|
}
|
|
@@ -50843,7 +51198,7 @@ var require_axios = __commonJS({
|
|
|
50843
51198
|
};
|
|
50844
51199
|
function toURLEncodedForm(data, options) {
|
|
50845
51200
|
return toFormData(data, new platform3.classes.URLSearchParams(), {
|
|
50846
|
-
visitor: function(value, key,
|
|
51201
|
+
visitor: function(value, key, path4, helpers) {
|
|
50847
51202
|
if (platform3.isNode && utils$1.isBuffer(value)) {
|
|
50848
51203
|
this.append(key, value.toString("base64"));
|
|
50849
51204
|
return false;
|
|
@@ -50871,15 +51226,15 @@ var require_axios = __commonJS({
|
|
|
50871
51226
|
return obj;
|
|
50872
51227
|
}
|
|
50873
51228
|
function formDataToJSON(formData) {
|
|
50874
|
-
function buildPath(
|
|
50875
|
-
let name2 =
|
|
51229
|
+
function buildPath(path4, value, target, index) {
|
|
51230
|
+
let name2 = path4[index++];
|
|
50876
51231
|
if (name2 === "__proto__") return true;
|
|
50877
51232
|
const isNumericKey = Number.isFinite(+name2);
|
|
50878
|
-
const isLast = index >=
|
|
51233
|
+
const isLast = index >= path4.length;
|
|
50879
51234
|
name2 = !name2 && utils$1.isArray(target) ? target.length : name2;
|
|
50880
51235
|
if (isLast) {
|
|
50881
51236
|
if (utils$1.hasOwnProp(target, name2)) {
|
|
50882
|
-
target[name2] = [target[name2], value];
|
|
51237
|
+
target[name2] = utils$1.isArray(target[name2]) ? target[name2].concat(value) : [target[name2], value];
|
|
50883
51238
|
} else {
|
|
50884
51239
|
target[name2] = value;
|
|
50885
51240
|
}
|
|
@@ -50888,7 +51243,7 @@ var require_axios = __commonJS({
|
|
|
50888
51243
|
if (!target[name2] || !utils$1.isObject(target[name2])) {
|
|
50889
51244
|
target[name2] = [];
|
|
50890
51245
|
}
|
|
50891
|
-
const result = buildPath(
|
|
51246
|
+
const result = buildPath(path4, value, target[name2], index);
|
|
50892
51247
|
if (result && utils$1.isArray(target[name2])) {
|
|
50893
51248
|
target[name2] = arrayToObject(target[name2]);
|
|
50894
51249
|
}
|
|
@@ -50903,6 +51258,7 @@ var require_axios = __commonJS({
|
|
|
50903
51258
|
}
|
|
50904
51259
|
return null;
|
|
50905
51260
|
}
|
|
51261
|
+
var own = (obj, key) => obj != null && utils$1.hasOwnProp(obj, key) ? obj[key] : void 0;
|
|
50906
51262
|
function stringifySafely(rawValue, parser, encoder) {
|
|
50907
51263
|
if (utils$1.isString(rawValue)) {
|
|
50908
51264
|
try {
|
|
@@ -50942,14 +51298,16 @@ var require_axios = __commonJS({
|
|
|
50942
51298
|
}
|
|
50943
51299
|
let isFileList2;
|
|
50944
51300
|
if (isObjectPayload) {
|
|
51301
|
+
const formSerializer = own(this, "formSerializer");
|
|
50945
51302
|
if (contentType.indexOf("application/x-www-form-urlencoded") > -1) {
|
|
50946
|
-
return toURLEncodedForm(data,
|
|
51303
|
+
return toURLEncodedForm(data, formSerializer).toString();
|
|
50947
51304
|
}
|
|
50948
51305
|
if ((isFileList2 = utils$1.isFileList(data)) || contentType.indexOf("multipart/form-data") > -1) {
|
|
50949
|
-
const
|
|
51306
|
+
const env3 = own(this, "env");
|
|
51307
|
+
const _FormData = env3 && env3.FormData;
|
|
50950
51308
|
return toFormData(isFileList2 ? {
|
|
50951
51309
|
"files[]": data
|
|
50952
|
-
} : data, _FormData && new _FormData(),
|
|
51310
|
+
} : data, _FormData && new _FormData(), formSerializer);
|
|
50953
51311
|
}
|
|
50954
51312
|
}
|
|
50955
51313
|
if (isObjectPayload || hasJSONContentType) {
|
|
@@ -50959,21 +51317,22 @@ var require_axios = __commonJS({
|
|
|
50959
51317
|
return data;
|
|
50960
51318
|
}],
|
|
50961
51319
|
transformResponse: [function transformResponse(data) {
|
|
50962
|
-
const transitional = this
|
|
51320
|
+
const transitional = own(this, "transitional") || defaults.transitional;
|
|
50963
51321
|
const forcedJSONParsing = transitional && transitional.forcedJSONParsing;
|
|
50964
|
-
const
|
|
51322
|
+
const responseType = own(this, "responseType");
|
|
51323
|
+
const JSONRequested = responseType === "json";
|
|
50965
51324
|
if (utils$1.isResponse(data) || utils$1.isReadableStream(data)) {
|
|
50966
51325
|
return data;
|
|
50967
51326
|
}
|
|
50968
|
-
if (data && utils$1.isString(data) && (forcedJSONParsing && !
|
|
51327
|
+
if (data && utils$1.isString(data) && (forcedJSONParsing && !responseType || JSONRequested)) {
|
|
50969
51328
|
const silentJSONParsing = transitional && transitional.silentJSONParsing;
|
|
50970
51329
|
const strictJSONParsing = !silentJSONParsing && JSONRequested;
|
|
50971
51330
|
try {
|
|
50972
|
-
return JSON.parse(data, this
|
|
51331
|
+
return JSON.parse(data, own(this, "parseReviver"));
|
|
50973
51332
|
} catch (e) {
|
|
50974
51333
|
if (strictJSONParsing) {
|
|
50975
51334
|
if (e.name === "SyntaxError") {
|
|
50976
|
-
throw AxiosError.from(e, AxiosError.ERR_BAD_RESPONSE, this, null, this
|
|
51335
|
+
throw AxiosError.from(e, AxiosError.ERR_BAD_RESPONSE, this, null, own(this, "response"));
|
|
50977
51336
|
}
|
|
50978
51337
|
throw e;
|
|
50979
51338
|
}
|
|
@@ -51004,287 +51363,9 @@ var require_axios = __commonJS({
|
|
|
51004
51363
|
}
|
|
51005
51364
|
}
|
|
51006
51365
|
};
|
|
51007
|
-
utils$1.forEach(["delete", "get", "head", "post", "put", "patch"], (method) => {
|
|
51366
|
+
utils$1.forEach(["delete", "get", "head", "post", "put", "patch", "query"], (method) => {
|
|
51008
51367
|
defaults.headers[method] = {};
|
|
51009
51368
|
});
|
|
51010
|
-
var ignoreDuplicateOf = utils$1.toObjectSet(["age", "authorization", "content-length", "content-type", "etag", "expires", "from", "host", "if-modified-since", "if-unmodified-since", "last-modified", "location", "max-forwards", "proxy-authorization", "referer", "retry-after", "user-agent"]);
|
|
51011
|
-
var parseHeaders = (rawHeaders) => {
|
|
51012
|
-
const parsed = {};
|
|
51013
|
-
let key;
|
|
51014
|
-
let val;
|
|
51015
|
-
let i;
|
|
51016
|
-
rawHeaders && rawHeaders.split("\n").forEach(function parser(line) {
|
|
51017
|
-
i = line.indexOf(":");
|
|
51018
|
-
key = line.substring(0, i).trim().toLowerCase();
|
|
51019
|
-
val = line.substring(i + 1).trim();
|
|
51020
|
-
if (!key || parsed[key] && ignoreDuplicateOf[key]) {
|
|
51021
|
-
return;
|
|
51022
|
-
}
|
|
51023
|
-
if (key === "set-cookie") {
|
|
51024
|
-
if (parsed[key]) {
|
|
51025
|
-
parsed[key].push(val);
|
|
51026
|
-
} else {
|
|
51027
|
-
parsed[key] = [val];
|
|
51028
|
-
}
|
|
51029
|
-
} else {
|
|
51030
|
-
parsed[key] = parsed[key] ? parsed[key] + ", " + val : val;
|
|
51031
|
-
}
|
|
51032
|
-
});
|
|
51033
|
-
return parsed;
|
|
51034
|
-
};
|
|
51035
|
-
var $internals = Symbol("internals");
|
|
51036
|
-
var isValidHeaderValue = (value) => !/[\r\n]/.test(value);
|
|
51037
|
-
function assertValidHeaderValue(value, header) {
|
|
51038
|
-
if (value === false || value == null) {
|
|
51039
|
-
return;
|
|
51040
|
-
}
|
|
51041
|
-
if (utils$1.isArray(value)) {
|
|
51042
|
-
value.forEach((v) => assertValidHeaderValue(v, header));
|
|
51043
|
-
return;
|
|
51044
|
-
}
|
|
51045
|
-
if (!isValidHeaderValue(String(value))) {
|
|
51046
|
-
throw new Error(`Invalid character in header content ["${header}"]`);
|
|
51047
|
-
}
|
|
51048
|
-
}
|
|
51049
|
-
function normalizeHeader(header) {
|
|
51050
|
-
return header && String(header).trim().toLowerCase();
|
|
51051
|
-
}
|
|
51052
|
-
function stripTrailingCRLF(str) {
|
|
51053
|
-
let end = str.length;
|
|
51054
|
-
while (end > 0) {
|
|
51055
|
-
const charCode = str.charCodeAt(end - 1);
|
|
51056
|
-
if (charCode !== 10 && charCode !== 13) {
|
|
51057
|
-
break;
|
|
51058
|
-
}
|
|
51059
|
-
end -= 1;
|
|
51060
|
-
}
|
|
51061
|
-
return end === str.length ? str : str.slice(0, end);
|
|
51062
|
-
}
|
|
51063
|
-
function normalizeValue(value) {
|
|
51064
|
-
if (value === false || value == null) {
|
|
51065
|
-
return value;
|
|
51066
|
-
}
|
|
51067
|
-
return utils$1.isArray(value) ? value.map(normalizeValue) : stripTrailingCRLF(String(value));
|
|
51068
|
-
}
|
|
51069
|
-
function parseTokens(str) {
|
|
51070
|
-
const tokens = /* @__PURE__ */ Object.create(null);
|
|
51071
|
-
const tokensRE = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
51072
|
-
let match;
|
|
51073
|
-
while (match = tokensRE.exec(str)) {
|
|
51074
|
-
tokens[match[1]] = match[2];
|
|
51075
|
-
}
|
|
51076
|
-
return tokens;
|
|
51077
|
-
}
|
|
51078
|
-
var isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());
|
|
51079
|
-
function matchHeaderValue(context2, value, header, filter, isHeaderNameFilter) {
|
|
51080
|
-
if (utils$1.isFunction(filter)) {
|
|
51081
|
-
return filter.call(this, value, header);
|
|
51082
|
-
}
|
|
51083
|
-
if (isHeaderNameFilter) {
|
|
51084
|
-
value = header;
|
|
51085
|
-
}
|
|
51086
|
-
if (!utils$1.isString(value)) return;
|
|
51087
|
-
if (utils$1.isString(filter)) {
|
|
51088
|
-
return value.indexOf(filter) !== -1;
|
|
51089
|
-
}
|
|
51090
|
-
if (utils$1.isRegExp(filter)) {
|
|
51091
|
-
return filter.test(value);
|
|
51092
|
-
}
|
|
51093
|
-
}
|
|
51094
|
-
function formatHeader(header) {
|
|
51095
|
-
return header.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (w, char, str) => {
|
|
51096
|
-
return char.toUpperCase() + str;
|
|
51097
|
-
});
|
|
51098
|
-
}
|
|
51099
|
-
function buildAccessors(obj, header) {
|
|
51100
|
-
const accessorName = utils$1.toCamelCase(" " + header);
|
|
51101
|
-
["get", "set", "has"].forEach((methodName) => {
|
|
51102
|
-
Object.defineProperty(obj, methodName + accessorName, {
|
|
51103
|
-
value: function(arg1, arg2, arg3) {
|
|
51104
|
-
return this[methodName].call(this, header, arg1, arg2, arg3);
|
|
51105
|
-
},
|
|
51106
|
-
configurable: true
|
|
51107
|
-
});
|
|
51108
|
-
});
|
|
51109
|
-
}
|
|
51110
|
-
var AxiosHeaders = class {
|
|
51111
|
-
constructor(headers) {
|
|
51112
|
-
headers && this.set(headers);
|
|
51113
|
-
}
|
|
51114
|
-
set(header, valueOrRewrite, rewrite) {
|
|
51115
|
-
const self2 = this;
|
|
51116
|
-
function setHeader(_value, _header, _rewrite) {
|
|
51117
|
-
const lHeader = normalizeHeader(_header);
|
|
51118
|
-
if (!lHeader) {
|
|
51119
|
-
throw new Error("header name must be a non-empty string");
|
|
51120
|
-
}
|
|
51121
|
-
const key = utils$1.findKey(self2, lHeader);
|
|
51122
|
-
if (!key || self2[key] === void 0 || _rewrite === true || _rewrite === void 0 && self2[key] !== false) {
|
|
51123
|
-
assertValidHeaderValue(_value, _header);
|
|
51124
|
-
self2[key || _header] = normalizeValue(_value);
|
|
51125
|
-
}
|
|
51126
|
-
}
|
|
51127
|
-
const setHeaders = (headers, _rewrite) => utils$1.forEach(headers, (_value, _header) => setHeader(_value, _header, _rewrite));
|
|
51128
|
-
if (utils$1.isPlainObject(header) || header instanceof this.constructor) {
|
|
51129
|
-
setHeaders(header, valueOrRewrite);
|
|
51130
|
-
} else if (utils$1.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {
|
|
51131
|
-
setHeaders(parseHeaders(header), valueOrRewrite);
|
|
51132
|
-
} else if (utils$1.isObject(header) && utils$1.isIterable(header)) {
|
|
51133
|
-
let obj = {}, dest, key;
|
|
51134
|
-
for (const entry of header) {
|
|
51135
|
-
if (!utils$1.isArray(entry)) {
|
|
51136
|
-
throw TypeError("Object iterator must return a key-value pair");
|
|
51137
|
-
}
|
|
51138
|
-
obj[key = entry[0]] = (dest = obj[key]) ? utils$1.isArray(dest) ? [...dest, entry[1]] : [dest, entry[1]] : entry[1];
|
|
51139
|
-
}
|
|
51140
|
-
setHeaders(obj, valueOrRewrite);
|
|
51141
|
-
} else {
|
|
51142
|
-
header != null && setHeader(valueOrRewrite, header, rewrite);
|
|
51143
|
-
}
|
|
51144
|
-
return this;
|
|
51145
|
-
}
|
|
51146
|
-
get(header, parser) {
|
|
51147
|
-
header = normalizeHeader(header);
|
|
51148
|
-
if (header) {
|
|
51149
|
-
const key = utils$1.findKey(this, header);
|
|
51150
|
-
if (key) {
|
|
51151
|
-
const value = this[key];
|
|
51152
|
-
if (!parser) {
|
|
51153
|
-
return value;
|
|
51154
|
-
}
|
|
51155
|
-
if (parser === true) {
|
|
51156
|
-
return parseTokens(value);
|
|
51157
|
-
}
|
|
51158
|
-
if (utils$1.isFunction(parser)) {
|
|
51159
|
-
return parser.call(this, value, key);
|
|
51160
|
-
}
|
|
51161
|
-
if (utils$1.isRegExp(parser)) {
|
|
51162
|
-
return parser.exec(value);
|
|
51163
|
-
}
|
|
51164
|
-
throw new TypeError("parser must be boolean|regexp|function");
|
|
51165
|
-
}
|
|
51166
|
-
}
|
|
51167
|
-
}
|
|
51168
|
-
has(header, matcher) {
|
|
51169
|
-
header = normalizeHeader(header);
|
|
51170
|
-
if (header) {
|
|
51171
|
-
const key = utils$1.findKey(this, header);
|
|
51172
|
-
return !!(key && this[key] !== void 0 && (!matcher || matchHeaderValue(this, this[key], key, matcher)));
|
|
51173
|
-
}
|
|
51174
|
-
return false;
|
|
51175
|
-
}
|
|
51176
|
-
delete(header, matcher) {
|
|
51177
|
-
const self2 = this;
|
|
51178
|
-
let deleted = false;
|
|
51179
|
-
function deleteHeader(_header) {
|
|
51180
|
-
_header = normalizeHeader(_header);
|
|
51181
|
-
if (_header) {
|
|
51182
|
-
const key = utils$1.findKey(self2, _header);
|
|
51183
|
-
if (key && (!matcher || matchHeaderValue(self2, self2[key], key, matcher))) {
|
|
51184
|
-
delete self2[key];
|
|
51185
|
-
deleted = true;
|
|
51186
|
-
}
|
|
51187
|
-
}
|
|
51188
|
-
}
|
|
51189
|
-
if (utils$1.isArray(header)) {
|
|
51190
|
-
header.forEach(deleteHeader);
|
|
51191
|
-
} else {
|
|
51192
|
-
deleteHeader(header);
|
|
51193
|
-
}
|
|
51194
|
-
return deleted;
|
|
51195
|
-
}
|
|
51196
|
-
clear(matcher) {
|
|
51197
|
-
const keys = Object.keys(this);
|
|
51198
|
-
let i = keys.length;
|
|
51199
|
-
let deleted = false;
|
|
51200
|
-
while (i--) {
|
|
51201
|
-
const key = keys[i];
|
|
51202
|
-
if (!matcher || matchHeaderValue(this, this[key], key, matcher, true)) {
|
|
51203
|
-
delete this[key];
|
|
51204
|
-
deleted = true;
|
|
51205
|
-
}
|
|
51206
|
-
}
|
|
51207
|
-
return deleted;
|
|
51208
|
-
}
|
|
51209
|
-
normalize(format4) {
|
|
51210
|
-
const self2 = this;
|
|
51211
|
-
const headers = {};
|
|
51212
|
-
utils$1.forEach(this, (value, header) => {
|
|
51213
|
-
const key = utils$1.findKey(headers, header);
|
|
51214
|
-
if (key) {
|
|
51215
|
-
self2[key] = normalizeValue(value);
|
|
51216
|
-
delete self2[header];
|
|
51217
|
-
return;
|
|
51218
|
-
}
|
|
51219
|
-
const normalized = format4 ? formatHeader(header) : String(header).trim();
|
|
51220
|
-
if (normalized !== header) {
|
|
51221
|
-
delete self2[header];
|
|
51222
|
-
}
|
|
51223
|
-
self2[normalized] = normalizeValue(value);
|
|
51224
|
-
headers[normalized] = true;
|
|
51225
|
-
});
|
|
51226
|
-
return this;
|
|
51227
|
-
}
|
|
51228
|
-
concat(...targets) {
|
|
51229
|
-
return this.constructor.concat(this, ...targets);
|
|
51230
|
-
}
|
|
51231
|
-
toJSON(asStrings) {
|
|
51232
|
-
const obj = /* @__PURE__ */ Object.create(null);
|
|
51233
|
-
utils$1.forEach(this, (value, header) => {
|
|
51234
|
-
value != null && value !== false && (obj[header] = asStrings && utils$1.isArray(value) ? value.join(", ") : value);
|
|
51235
|
-
});
|
|
51236
|
-
return obj;
|
|
51237
|
-
}
|
|
51238
|
-
[Symbol.iterator]() {
|
|
51239
|
-
return Object.entries(this.toJSON())[Symbol.iterator]();
|
|
51240
|
-
}
|
|
51241
|
-
toString() {
|
|
51242
|
-
return Object.entries(this.toJSON()).map(([header, value]) => header + ": " + value).join("\n");
|
|
51243
|
-
}
|
|
51244
|
-
getSetCookie() {
|
|
51245
|
-
return this.get("set-cookie") || [];
|
|
51246
|
-
}
|
|
51247
|
-
get [Symbol.toStringTag]() {
|
|
51248
|
-
return "AxiosHeaders";
|
|
51249
|
-
}
|
|
51250
|
-
static from(thing) {
|
|
51251
|
-
return thing instanceof this ? thing : new this(thing);
|
|
51252
|
-
}
|
|
51253
|
-
static concat(first, ...targets) {
|
|
51254
|
-
const computed = new this(first);
|
|
51255
|
-
targets.forEach((target) => computed.set(target));
|
|
51256
|
-
return computed;
|
|
51257
|
-
}
|
|
51258
|
-
static accessor(header) {
|
|
51259
|
-
const internals = this[$internals] = this[$internals] = {
|
|
51260
|
-
accessors: {}
|
|
51261
|
-
};
|
|
51262
|
-
const accessors = internals.accessors;
|
|
51263
|
-
const prototype2 = this.prototype;
|
|
51264
|
-
function defineAccessor(_header) {
|
|
51265
|
-
const lHeader = normalizeHeader(_header);
|
|
51266
|
-
if (!accessors[lHeader]) {
|
|
51267
|
-
buildAccessors(prototype2, _header);
|
|
51268
|
-
accessors[lHeader] = true;
|
|
51269
|
-
}
|
|
51270
|
-
}
|
|
51271
|
-
utils$1.isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header);
|
|
51272
|
-
return this;
|
|
51273
|
-
}
|
|
51274
|
-
};
|
|
51275
|
-
AxiosHeaders.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
|
|
51276
|
-
utils$1.reduceDescriptors(AxiosHeaders.prototype, ({
|
|
51277
|
-
value
|
|
51278
|
-
}, key) => {
|
|
51279
|
-
let mapped = key[0].toUpperCase() + key.slice(1);
|
|
51280
|
-
return {
|
|
51281
|
-
get: () => value,
|
|
51282
|
-
set(headerValue) {
|
|
51283
|
-
this[mapped] = headerValue;
|
|
51284
|
-
}
|
|
51285
|
-
};
|
|
51286
|
-
});
|
|
51287
|
-
utils$1.freezeMethods(AxiosHeaders);
|
|
51288
51369
|
function transformData(fns, response) {
|
|
51289
51370
|
const config = this || defaults;
|
|
51290
51371
|
const context2 = response || config;
|
|
@@ -51320,7 +51401,7 @@ var require_axios = __commonJS({
|
|
|
51320
51401
|
if (!response.status || !validateStatus || validateStatus(response.status)) {
|
|
51321
51402
|
resolve(response);
|
|
51322
51403
|
} else {
|
|
51323
|
-
reject(new AxiosError("Request failed with status code " + response.status,
|
|
51404
|
+
reject(new AxiosError("Request failed with status code " + response.status, response.status >= 400 && response.status < 500 ? AxiosError.ERR_BAD_REQUEST : AxiosError.ERR_BAD_RESPONSE, response.config, response.request, response));
|
|
51324
51405
|
}
|
|
51325
51406
|
}
|
|
51326
51407
|
function isAbsoluteURL(url2) {
|
|
@@ -51334,7 +51415,7 @@ var require_axios = __commonJS({
|
|
|
51334
51415
|
}
|
|
51335
51416
|
function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {
|
|
51336
51417
|
let isRelativeUrl = !isAbsoluteURL(requestedURL);
|
|
51337
|
-
if (baseURL && (isRelativeUrl || allowAbsoluteUrls
|
|
51418
|
+
if (baseURL && (isRelativeUrl || allowAbsoluteUrls === false)) {
|
|
51338
51419
|
return combineURLs(baseURL, requestedURL);
|
|
51339
51420
|
}
|
|
51340
51421
|
return requestedURL;
|
|
@@ -51404,9 +51485,9 @@ var require_axios = __commonJS({
|
|
|
51404
51485
|
function getEnv2(key) {
|
|
51405
51486
|
return process.env[key.toLowerCase()] || process.env[key.toUpperCase()] || "";
|
|
51406
51487
|
}
|
|
51407
|
-
var VERSION4 = "1.
|
|
51488
|
+
var VERSION4 = "1.16.0";
|
|
51408
51489
|
function parseProtocol(url2) {
|
|
51409
|
-
const match = /^([-+\w]{1,25})(
|
|
51490
|
+
const match = /^([-+\w]{1,25}):(?:\/\/)?/.exec(url2);
|
|
51410
51491
|
return match && match[1] || "";
|
|
51411
51492
|
}
|
|
51412
51493
|
var DATA_URL_PATTERN = /^(?:([^;]+);)?(?:[^;]+;)?(base64|),([\s\S]*)$/;
|
|
@@ -51578,7 +51659,8 @@ var require_axios = __commonJS({
|
|
|
51578
51659
|
if (isStringValue) {
|
|
51579
51660
|
value = textEncoder.encode(String(value).replace(/\r?\n|\r\n?/g, CRLF));
|
|
51580
51661
|
} else {
|
|
51581
|
-
|
|
51662
|
+
const safeType = String(value.type || "application/octet-stream").replace(/[\r\n]/g, "");
|
|
51663
|
+
headers += `Content-Type: ${safeType}${CRLF}`;
|
|
51582
51664
|
}
|
|
51583
51665
|
this.headers = textEncoder.encode(headers + CRLF);
|
|
51584
51666
|
this.contentLength = isStringValue ? value.byteLength : value.size;
|
|
@@ -51616,7 +51698,7 @@ var require_axios = __commonJS({
|
|
|
51616
51698
|
throw TypeError("FormData instance required");
|
|
51617
51699
|
}
|
|
51618
51700
|
if (boundary.length < 1 || boundary.length > 70) {
|
|
51619
|
-
throw Error("boundary must be
|
|
51701
|
+
throw Error("boundary must be 1-70 characters long");
|
|
51620
51702
|
}
|
|
51621
51703
|
const boundaryBytes = textEncoder.encode("--" + boundary + CRLF);
|
|
51622
51704
|
const footerBytes = textEncoder.encode("--" + boundary + "--" + CRLF);
|
|
@@ -51673,6 +51755,37 @@ var require_axios = __commonJS({
|
|
|
51673
51755
|
}, cb);
|
|
51674
51756
|
} : fn2;
|
|
51675
51757
|
};
|
|
51758
|
+
var LOOPBACK_HOSTNAMES = /* @__PURE__ */ new Set(["localhost"]);
|
|
51759
|
+
var isIPv4Loopback = (host) => {
|
|
51760
|
+
const parts = host.split(".");
|
|
51761
|
+
if (parts.length !== 4) return false;
|
|
51762
|
+
if (parts[0] !== "127") return false;
|
|
51763
|
+
return parts.every((p) => /^\d+$/.test(p) && Number(p) >= 0 && Number(p) <= 255);
|
|
51764
|
+
};
|
|
51765
|
+
var isIPv6Loopback = (host) => {
|
|
51766
|
+
if (host === "::1") return true;
|
|
51767
|
+
const v4MappedDotted = host.match(/^::ffff:(\d+\.\d+\.\d+\.\d+)$/i);
|
|
51768
|
+
if (v4MappedDotted) return isIPv4Loopback(v4MappedDotted[1]);
|
|
51769
|
+
const v4MappedHex = host.match(/^::ffff:([0-9a-f]{1,4}):([0-9a-f]{1,4})$/i);
|
|
51770
|
+
if (v4MappedHex) {
|
|
51771
|
+
const high = parseInt(v4MappedHex[1], 16);
|
|
51772
|
+
return high >= 32512 && high <= 32767;
|
|
51773
|
+
}
|
|
51774
|
+
const groups = host.split(":");
|
|
51775
|
+
if (groups.length === 8) {
|
|
51776
|
+
for (let i = 0; i < 7; i++) {
|
|
51777
|
+
if (!/^0+$/.test(groups[i])) return false;
|
|
51778
|
+
}
|
|
51779
|
+
return /^0*1$/.test(groups[7]);
|
|
51780
|
+
}
|
|
51781
|
+
return false;
|
|
51782
|
+
};
|
|
51783
|
+
var isLoopback = (host) => {
|
|
51784
|
+
if (!host) return false;
|
|
51785
|
+
if (LOOPBACK_HOSTNAMES.has(host)) return true;
|
|
51786
|
+
if (isIPv4Loopback(host)) return true;
|
|
51787
|
+
return isIPv6Loopback(host);
|
|
51788
|
+
};
|
|
51676
51789
|
var DEFAULT_PORTS = {
|
|
51677
51790
|
http: 80,
|
|
51678
51791
|
https: 443,
|
|
@@ -51702,6 +51815,20 @@ var require_axios = __commonJS({
|
|
|
51702
51815
|
}
|
|
51703
51816
|
return [entryHost, entryPort];
|
|
51704
51817
|
};
|
|
51818
|
+
var IPV4_MAPPED_DOTTED_RE = /^(?:::|(?:0{1,4}:){1,4}:|(?:0{1,4}:){5})ffff:(\d+\.\d+\.\d+\.\d+)$/i;
|
|
51819
|
+
var IPV4_MAPPED_HEX_RE = /^(?:::|(?:0{1,4}:){1,4}:|(?:0{1,4}:){5})ffff:([0-9a-f]{1,4}):([0-9a-f]{1,4})$/i;
|
|
51820
|
+
var unmapIPv4MappedIPv6 = (host) => {
|
|
51821
|
+
if (typeof host !== "string" || host.indexOf(":") === -1) return host;
|
|
51822
|
+
const dotted = host.match(IPV4_MAPPED_DOTTED_RE);
|
|
51823
|
+
if (dotted) return dotted[1];
|
|
51824
|
+
const hex = host.match(IPV4_MAPPED_HEX_RE);
|
|
51825
|
+
if (hex) {
|
|
51826
|
+
const high = parseInt(hex[1], 16);
|
|
51827
|
+
const low = parseInt(hex[2], 16);
|
|
51828
|
+
return `${high >> 8}.${high & 255}.${low >> 8}.${low & 255}`;
|
|
51829
|
+
}
|
|
51830
|
+
return host;
|
|
51831
|
+
};
|
|
51705
51832
|
var normalizeNoProxyHost = (hostname2) => {
|
|
51706
51833
|
if (!hostname2) {
|
|
51707
51834
|
return hostname2;
|
|
@@ -51709,7 +51836,7 @@ var require_axios = __commonJS({
|
|
|
51709
51836
|
if (hostname2.charAt(0) === "[" && hostname2.charAt(hostname2.length - 1) === "]") {
|
|
51710
51837
|
hostname2 = hostname2.slice(1, -1);
|
|
51711
51838
|
}
|
|
51712
|
-
return hostname2.replace(/\.+$/, "");
|
|
51839
|
+
return unmapIPv4MappedIPv6(hostname2.replace(/\.+$/, ""));
|
|
51713
51840
|
};
|
|
51714
51841
|
function shouldBypassProxy(location) {
|
|
51715
51842
|
let parsed;
|
|
@@ -51745,7 +51872,7 @@ var require_axios = __commonJS({
|
|
|
51745
51872
|
if (entryHost.charAt(0) === ".") {
|
|
51746
51873
|
return hostname2.endsWith(entryHost);
|
|
51747
51874
|
}
|
|
51748
|
-
return hostname2 === entryHost;
|
|
51875
|
+
return hostname2 === entryHost || isLoopback(hostname2) && isLoopback(entryHost);
|
|
51749
51876
|
});
|
|
51750
51877
|
}
|
|
51751
51878
|
function speedometer(samplesCount, min) {
|
|
@@ -51817,19 +51944,19 @@ var require_axios = __commonJS({
|
|
|
51817
51944
|
let bytesNotified = 0;
|
|
51818
51945
|
const _speedometer = speedometer(50, 250);
|
|
51819
51946
|
return throttle((e) => {
|
|
51820
|
-
const
|
|
51947
|
+
const rawLoaded = e.loaded;
|
|
51821
51948
|
const total = e.lengthComputable ? e.total : void 0;
|
|
51822
|
-
const
|
|
51949
|
+
const loaded = total != null ? Math.min(rawLoaded, total) : rawLoaded;
|
|
51950
|
+
const progressBytes = Math.max(0, loaded - bytesNotified);
|
|
51823
51951
|
const rate = _speedometer(progressBytes);
|
|
51824
|
-
|
|
51825
|
-
bytesNotified = loaded;
|
|
51952
|
+
bytesNotified = Math.max(bytesNotified, loaded);
|
|
51826
51953
|
const data = {
|
|
51827
51954
|
loaded,
|
|
51828
51955
|
total,
|
|
51829
51956
|
progress: total ? loaded / total : void 0,
|
|
51830
51957
|
bytes: progressBytes,
|
|
51831
51958
|
rate: rate ? rate : void 0,
|
|
51832
|
-
estimated: rate && total
|
|
51959
|
+
estimated: rate && total ? (total - loaded) / rate : void 0,
|
|
51833
51960
|
event: e,
|
|
51834
51961
|
lengthComputable: total != null,
|
|
51835
51962
|
[isDownloadStream ? "download" : "upload"]: true
|
|
@@ -51890,10 +52017,32 @@ var require_axios = __commonJS({
|
|
|
51890
52017
|
}
|
|
51891
52018
|
}
|
|
51892
52019
|
const groups = Math.floor(effectiveLen / 4);
|
|
51893
|
-
const
|
|
51894
|
-
return
|
|
52020
|
+
const bytes2 = groups * 3 - (pad2 || 0);
|
|
52021
|
+
return bytes2 > 0 ? bytes2 : 0;
|
|
51895
52022
|
}
|
|
51896
|
-
|
|
52023
|
+
if (typeof Buffer !== "undefined" && typeof Buffer.byteLength === "function") {
|
|
52024
|
+
return Buffer.byteLength(body, "utf8");
|
|
52025
|
+
}
|
|
52026
|
+
let bytes = 0;
|
|
52027
|
+
for (let i = 0, len = body.length; i < len; i++) {
|
|
52028
|
+
const c = body.charCodeAt(i);
|
|
52029
|
+
if (c < 128) {
|
|
52030
|
+
bytes += 1;
|
|
52031
|
+
} else if (c < 2048) {
|
|
52032
|
+
bytes += 2;
|
|
52033
|
+
} else if (c >= 55296 && c <= 56319 && i + 1 < len) {
|
|
52034
|
+
const next = body.charCodeAt(i + 1);
|
|
52035
|
+
if (next >= 56320 && next <= 57343) {
|
|
52036
|
+
bytes += 4;
|
|
52037
|
+
i++;
|
|
52038
|
+
} else {
|
|
52039
|
+
bytes += 3;
|
|
52040
|
+
}
|
|
52041
|
+
} else {
|
|
52042
|
+
bytes += 3;
|
|
52043
|
+
}
|
|
52044
|
+
}
|
|
52045
|
+
return bytes;
|
|
51897
52046
|
}
|
|
51898
52047
|
var zlibOptions = {
|
|
51899
52048
|
flush: zlib.constants.Z_SYNC_FLUSH,
|
|
@@ -51909,9 +52058,33 @@ var require_axios = __commonJS({
|
|
|
51909
52058
|
https: httpsFollow
|
|
51910
52059
|
} = followRedirects;
|
|
51911
52060
|
var isHttps = /https:?/;
|
|
52061
|
+
var FORM_DATA_CONTENT_HEADERS$1 = ["content-type", "content-length"];
|
|
52062
|
+
function setFormDataHeaders$1(headers, formHeaders, policy) {
|
|
52063
|
+
if (policy !== "content-only") {
|
|
52064
|
+
headers.set(formHeaders);
|
|
52065
|
+
return;
|
|
52066
|
+
}
|
|
52067
|
+
Object.entries(formHeaders).forEach(([key, val]) => {
|
|
52068
|
+
if (FORM_DATA_CONTENT_HEADERS$1.includes(key.toLowerCase())) {
|
|
52069
|
+
headers.set(key, val);
|
|
52070
|
+
}
|
|
52071
|
+
});
|
|
52072
|
+
}
|
|
52073
|
+
var kAxiosSocketListener = Symbol("axios.http.socketListener");
|
|
52074
|
+
var kAxiosCurrentReq = Symbol("axios.http.currentReq");
|
|
51912
52075
|
var supportedProtocols = platform3.protocols.map((protocol) => {
|
|
51913
52076
|
return protocol + ":";
|
|
51914
52077
|
});
|
|
52078
|
+
var decodeURIComponentSafe = (value) => {
|
|
52079
|
+
if (!utils$1.isString(value)) {
|
|
52080
|
+
return value;
|
|
52081
|
+
}
|
|
52082
|
+
try {
|
|
52083
|
+
return decodeURIComponent(value);
|
|
52084
|
+
} catch (error) {
|
|
52085
|
+
return value;
|
|
52086
|
+
}
|
|
52087
|
+
};
|
|
51915
52088
|
var flushOnFinish = (stream2, [throttled, flush]) => {
|
|
51916
52089
|
stream2.on("end", flush).on("error", flush);
|
|
51917
52090
|
return throttled;
|
|
@@ -51988,15 +52161,15 @@ var require_axios = __commonJS({
|
|
|
51988
52161
|
}
|
|
51989
52162
|
};
|
|
51990
52163
|
var http2Sessions = new Http2Sessions();
|
|
51991
|
-
function dispatchBeforeRedirect(options, responseDetails) {
|
|
52164
|
+
function dispatchBeforeRedirect(options, responseDetails, requestDetails) {
|
|
51992
52165
|
if (options.beforeRedirects.proxy) {
|
|
51993
52166
|
options.beforeRedirects.proxy(options);
|
|
51994
52167
|
}
|
|
51995
52168
|
if (options.beforeRedirects.config) {
|
|
51996
|
-
options.beforeRedirects.config(options, responseDetails);
|
|
52169
|
+
options.beforeRedirects.config(options, responseDetails, requestDetails);
|
|
51997
52170
|
}
|
|
51998
52171
|
}
|
|
51999
|
-
function setProxy(options, configProxy, location) {
|
|
52172
|
+
function setProxy(options, configProxy, location, isRedirect) {
|
|
52000
52173
|
let proxy = configProxy;
|
|
52001
52174
|
if (!proxy && proxy !== false) {
|
|
52002
52175
|
const proxyUrl = getProxyForUrl(location);
|
|
@@ -52006,34 +52179,59 @@ var require_axios = __commonJS({
|
|
|
52006
52179
|
}
|
|
52007
52180
|
}
|
|
52008
52181
|
}
|
|
52009
|
-
if (
|
|
52010
|
-
|
|
52011
|
-
|
|
52182
|
+
if (isRedirect && options.headers) {
|
|
52183
|
+
for (const name2 of Object.keys(options.headers)) {
|
|
52184
|
+
if (name2.toLowerCase() === "proxy-authorization") {
|
|
52185
|
+
delete options.headers[name2];
|
|
52186
|
+
}
|
|
52012
52187
|
}
|
|
52013
|
-
|
|
52014
|
-
|
|
52188
|
+
}
|
|
52189
|
+
if (proxy) {
|
|
52190
|
+
const isProxyURL = proxy instanceof URL;
|
|
52191
|
+
const readProxyField = (key) => isProxyURL || utils$1.hasOwnProp(proxy, key) ? proxy[key] : void 0;
|
|
52192
|
+
const proxyUsername = readProxyField("username");
|
|
52193
|
+
const proxyPassword = readProxyField("password");
|
|
52194
|
+
let proxyAuth = utils$1.hasOwnProp(proxy, "auth") ? proxy.auth : void 0;
|
|
52195
|
+
if (proxyUsername) {
|
|
52196
|
+
proxyAuth = (proxyUsername || "") + ":" + (proxyPassword || "");
|
|
52197
|
+
}
|
|
52198
|
+
if (proxyAuth) {
|
|
52199
|
+
const authIsObject = typeof proxyAuth === "object";
|
|
52200
|
+
const authUsername = authIsObject && utils$1.hasOwnProp(proxyAuth, "username") ? proxyAuth.username : void 0;
|
|
52201
|
+
const authPassword = authIsObject && utils$1.hasOwnProp(proxyAuth, "password") ? proxyAuth.password : void 0;
|
|
52202
|
+
const validProxyAuth = Boolean(authUsername || authPassword);
|
|
52015
52203
|
if (validProxyAuth) {
|
|
52016
|
-
|
|
52017
|
-
} else if (
|
|
52204
|
+
proxyAuth = (authUsername || "") + ":" + (authPassword || "");
|
|
52205
|
+
} else if (authIsObject) {
|
|
52018
52206
|
throw new AxiosError("Invalid proxy authorization", AxiosError.ERR_BAD_OPTION, {
|
|
52019
52207
|
proxy
|
|
52020
52208
|
});
|
|
52021
52209
|
}
|
|
52022
|
-
const base64 = Buffer.from(
|
|
52210
|
+
const base64 = Buffer.from(proxyAuth, "utf8").toString("base64");
|
|
52023
52211
|
options.headers["Proxy-Authorization"] = "Basic " + base64;
|
|
52024
52212
|
}
|
|
52025
|
-
|
|
52026
|
-
const
|
|
52213
|
+
let hasUserHostHeader = false;
|
|
52214
|
+
for (const name2 of Object.keys(options.headers)) {
|
|
52215
|
+
if (name2.toLowerCase() === "host") {
|
|
52216
|
+
hasUserHostHeader = true;
|
|
52217
|
+
break;
|
|
52218
|
+
}
|
|
52219
|
+
}
|
|
52220
|
+
if (!hasUserHostHeader) {
|
|
52221
|
+
options.headers.host = options.hostname + (options.port ? ":" + options.port : "");
|
|
52222
|
+
}
|
|
52223
|
+
const proxyHost = readProxyField("hostname") || readProxyField("host");
|
|
52027
52224
|
options.hostname = proxyHost;
|
|
52028
52225
|
options.host = proxyHost;
|
|
52029
|
-
options.port =
|
|
52226
|
+
options.port = readProxyField("port");
|
|
52030
52227
|
options.path = location;
|
|
52031
|
-
|
|
52032
|
-
|
|
52228
|
+
const proxyProtocol = readProxyField("protocol");
|
|
52229
|
+
if (proxyProtocol) {
|
|
52230
|
+
options.protocol = proxyProtocol.includes(":") ? proxyProtocol : `${proxyProtocol}:`;
|
|
52033
52231
|
}
|
|
52034
52232
|
}
|
|
52035
52233
|
options.beforeRedirects.proxy = function beforeRedirect(redirectOptions) {
|
|
52036
|
-
setProxy(redirectOptions, configProxy, redirectOptions.href);
|
|
52234
|
+
setProxy(redirectOptions, configProxy, redirectOptions.href, true);
|
|
52037
52235
|
};
|
|
52038
52236
|
}
|
|
52039
52237
|
var isHttpAdapterSupported = typeof process !== "undefined" && utils$1.kindOf(process) === "process";
|
|
@@ -52110,21 +52308,20 @@ var require_axios = __commonJS({
|
|
|
52110
52308
|
};
|
|
52111
52309
|
var httpAdapter = isHttpAdapterSupported && function httpAdapter2(config) {
|
|
52112
52310
|
return wrapAsync(async function dispatchHttpRequest(resolve, reject, onDone) {
|
|
52113
|
-
|
|
52114
|
-
|
|
52115
|
-
|
|
52116
|
-
|
|
52117
|
-
|
|
52118
|
-
|
|
52119
|
-
|
|
52120
|
-
const
|
|
52121
|
-
|
|
52122
|
-
responseEncoding
|
|
52123
|
-
} = config;
|
|
52311
|
+
const own2 = (key) => utils$1.hasOwnProp(config, key) ? config[key] : void 0;
|
|
52312
|
+
let data = own2("data");
|
|
52313
|
+
let lookup = own2("lookup");
|
|
52314
|
+
let family = own2("family");
|
|
52315
|
+
let httpVersion = own2("httpVersion");
|
|
52316
|
+
if (httpVersion === void 0) httpVersion = 1;
|
|
52317
|
+
let http2Options = own2("http2Options");
|
|
52318
|
+
const responseType = own2("responseType");
|
|
52319
|
+
const responseEncoding = own2("responseEncoding");
|
|
52124
52320
|
const method = config.method.toUpperCase();
|
|
52125
52321
|
let isDone;
|
|
52126
52322
|
let rejected = false;
|
|
52127
52323
|
let req;
|
|
52324
|
+
let connectPhaseTimer;
|
|
52128
52325
|
httpVersion = +httpVersion;
|
|
52129
52326
|
if (Number.isNaN(httpVersion)) {
|
|
52130
52327
|
throw TypeError(`Invalid protocol version: '${config.httpVersion}' is not a number`);
|
|
@@ -52153,8 +52350,23 @@ var require_axios = __commonJS({
|
|
|
52153
52350
|
console.warn("emit error", err);
|
|
52154
52351
|
}
|
|
52155
52352
|
}
|
|
52353
|
+
function clearConnectPhaseTimer() {
|
|
52354
|
+
if (connectPhaseTimer) {
|
|
52355
|
+
clearTimeout(connectPhaseTimer);
|
|
52356
|
+
connectPhaseTimer = null;
|
|
52357
|
+
}
|
|
52358
|
+
}
|
|
52359
|
+
function createTimeoutError() {
|
|
52360
|
+
let timeoutErrorMessage = config.timeout ? "timeout of " + config.timeout + "ms exceeded" : "timeout exceeded";
|
|
52361
|
+
const transitional = config.transitional || transitionalDefaults;
|
|
52362
|
+
if (config.timeoutErrorMessage) {
|
|
52363
|
+
timeoutErrorMessage = config.timeoutErrorMessage;
|
|
52364
|
+
}
|
|
52365
|
+
return new AxiosError(timeoutErrorMessage, transitional.clarifyTimeoutError ? AxiosError.ETIMEDOUT : AxiosError.ECONNABORTED, config, req);
|
|
52366
|
+
}
|
|
52156
52367
|
abortEmitter.once("abort", reject);
|
|
52157
52368
|
const onFinished = () => {
|
|
52369
|
+
clearConnectPhaseTimer();
|
|
52158
52370
|
if (config.cancelToken) {
|
|
52159
52371
|
config.cancelToken.unsubscribe(abort);
|
|
52160
52372
|
}
|
|
@@ -52171,6 +52383,7 @@ var require_axios = __commonJS({
|
|
|
52171
52383
|
}
|
|
52172
52384
|
onDone((response, isRejected) => {
|
|
52173
52385
|
isDone = true;
|
|
52386
|
+
clearConnectPhaseTimer();
|
|
52174
52387
|
if (isRejected) {
|
|
52175
52388
|
rejected = true;
|
|
52176
52389
|
onFinished();
|
|
@@ -52251,8 +52464,8 @@ var require_axios = __commonJS({
|
|
|
52251
52464
|
tag: `axios-${VERSION4}-boundary`,
|
|
52252
52465
|
boundary: userBoundary && userBoundary[1] || void 0
|
|
52253
52466
|
});
|
|
52254
|
-
} else if (utils$1.isFormData(data) && utils$1.isFunction(data.getHeaders)) {
|
|
52255
|
-
headers
|
|
52467
|
+
} else if (utils$1.isFormData(data) && utils$1.isFunction(data.getHeaders) && data.getHeaders !== Object.prototype.getHeaders) {
|
|
52468
|
+
setFormDataHeaders$1(headers, data.getHeaders(), own2("formDataHeaderPolicy"));
|
|
52256
52469
|
if (!headers.hasContentLength()) {
|
|
52257
52470
|
try {
|
|
52258
52471
|
const knownLength = await util3.promisify(data.getLength).call(data);
|
|
@@ -52297,20 +52510,21 @@ var require_axios = __commonJS({
|
|
|
52297
52510
|
onUploadProgress && data.on("progress", flushOnFinish(data, progressEventDecorator(contentLength, progressEventReducer(asyncDecorator(onUploadProgress), false, 3))));
|
|
52298
52511
|
}
|
|
52299
52512
|
let auth = void 0;
|
|
52300
|
-
|
|
52301
|
-
|
|
52302
|
-
const
|
|
52513
|
+
const configAuth = own2("auth");
|
|
52514
|
+
if (configAuth) {
|
|
52515
|
+
const username = configAuth.username || "";
|
|
52516
|
+
const password = configAuth.password || "";
|
|
52303
52517
|
auth = username + ":" + password;
|
|
52304
52518
|
}
|
|
52305
52519
|
if (!auth && parsed.username) {
|
|
52306
|
-
const urlUsername = parsed.username;
|
|
52307
|
-
const urlPassword = parsed.password;
|
|
52520
|
+
const urlUsername = decodeURIComponentSafe(parsed.username);
|
|
52521
|
+
const urlPassword = decodeURIComponentSafe(parsed.password);
|
|
52308
52522
|
auth = urlUsername + ":" + urlPassword;
|
|
52309
52523
|
}
|
|
52310
52524
|
auth && headers.delete("authorization");
|
|
52311
|
-
let
|
|
52525
|
+
let path$1;
|
|
52312
52526
|
try {
|
|
52313
|
-
|
|
52527
|
+
path$1 = buildURL(parsed.pathname + parsed.search, config.params, config.paramsSerializer).replace(/^\?/, "");
|
|
52314
52528
|
} catch (err) {
|
|
52315
52529
|
const customErr = new Error(err.message);
|
|
52316
52530
|
customErr.config = config;
|
|
@@ -52319,8 +52533,8 @@ var require_axios = __commonJS({
|
|
|
52319
52533
|
return reject(customErr);
|
|
52320
52534
|
}
|
|
52321
52535
|
headers.set("Accept-Encoding", "gzip, compress, deflate" + (isBrotliSupported ? ", br" : ""), false);
|
|
52322
|
-
const options = {
|
|
52323
|
-
path:
|
|
52536
|
+
const options = Object.assign(/* @__PURE__ */ Object.create(null), {
|
|
52537
|
+
path: path$1,
|
|
52324
52538
|
method,
|
|
52325
52539
|
headers: headers.toJSON(),
|
|
52326
52540
|
agents: {
|
|
@@ -52331,11 +52545,22 @@ var require_axios = __commonJS({
|
|
|
52331
52545
|
protocol,
|
|
52332
52546
|
family,
|
|
52333
52547
|
beforeRedirect: dispatchBeforeRedirect,
|
|
52334
|
-
beforeRedirects:
|
|
52548
|
+
beforeRedirects: /* @__PURE__ */ Object.create(null),
|
|
52335
52549
|
http2Options
|
|
52336
|
-
};
|
|
52550
|
+
});
|
|
52337
52551
|
!utils$1.isUndefined(lookup) && (options.lookup = lookup);
|
|
52338
52552
|
if (config.socketPath) {
|
|
52553
|
+
if (typeof config.socketPath !== "string") {
|
|
52554
|
+
return reject(new AxiosError("socketPath must be a string", AxiosError.ERR_BAD_OPTION_VALUE, config));
|
|
52555
|
+
}
|
|
52556
|
+
if (config.allowedSocketPaths != null) {
|
|
52557
|
+
const allowed = Array.isArray(config.allowedSocketPaths) ? config.allowedSocketPaths : [config.allowedSocketPaths];
|
|
52558
|
+
const resolvedSocket = path3.resolve(config.socketPath);
|
|
52559
|
+
const isAllowed = allowed.some((entry) => typeof entry === "string" && path3.resolve(entry) === resolvedSocket);
|
|
52560
|
+
if (!isAllowed) {
|
|
52561
|
+
return reject(new AxiosError(`socketPath "${config.socketPath}" is not permitted by allowedSocketPaths`, AxiosError.ERR_BAD_OPTION_VALUE, config));
|
|
52562
|
+
}
|
|
52563
|
+
}
|
|
52339
52564
|
options.socketPath = config.socketPath;
|
|
52340
52565
|
} else {
|
|
52341
52566
|
options.hostname = parsed.hostname.startsWith("[") ? parsed.hostname.slice(1, -1) : parsed.hostname;
|
|
@@ -52343,21 +52568,25 @@ var require_axios = __commonJS({
|
|
|
52343
52568
|
setProxy(options, config.proxy, protocol + "//" + parsed.hostname + (parsed.port ? ":" + parsed.port : "") + options.path);
|
|
52344
52569
|
}
|
|
52345
52570
|
let transport;
|
|
52571
|
+
let isNativeTransport = false;
|
|
52346
52572
|
const isHttpsRequest = isHttps.test(options.protocol);
|
|
52347
52573
|
options.agent = isHttpsRequest ? config.httpsAgent : config.httpAgent;
|
|
52348
52574
|
if (isHttp2) {
|
|
52349
52575
|
transport = http2Transport;
|
|
52350
52576
|
} else {
|
|
52351
|
-
|
|
52352
|
-
|
|
52577
|
+
const configTransport = own2("transport");
|
|
52578
|
+
if (configTransport) {
|
|
52579
|
+
transport = configTransport;
|
|
52353
52580
|
} else if (config.maxRedirects === 0) {
|
|
52354
52581
|
transport = isHttpsRequest ? https : http;
|
|
52582
|
+
isNativeTransport = true;
|
|
52355
52583
|
} else {
|
|
52356
52584
|
if (config.maxRedirects) {
|
|
52357
52585
|
options.maxRedirects = config.maxRedirects;
|
|
52358
52586
|
}
|
|
52359
|
-
|
|
52360
|
-
|
|
52587
|
+
const configBeforeRedirect = own2("beforeRedirect");
|
|
52588
|
+
if (configBeforeRedirect) {
|
|
52589
|
+
options.beforeRedirects.config = configBeforeRedirect;
|
|
52361
52590
|
}
|
|
52362
52591
|
transport = isHttpsRequest ? httpsFollow : httpFollow;
|
|
52363
52592
|
}
|
|
@@ -52367,10 +52596,9 @@ var require_axios = __commonJS({
|
|
|
52367
52596
|
} else {
|
|
52368
52597
|
options.maxBodyLength = Infinity;
|
|
52369
52598
|
}
|
|
52370
|
-
|
|
52371
|
-
options.insecureHTTPParser = config.insecureHTTPParser;
|
|
52372
|
-
}
|
|
52599
|
+
options.insecureHTTPParser = Boolean(own2("insecureHTTPParser"));
|
|
52373
52600
|
req = transport.request(options, function handleResponse(res) {
|
|
52601
|
+
clearConnectPhaseTimer();
|
|
52374
52602
|
if (req.destroyed) return;
|
|
52375
52603
|
const streams = [res];
|
|
52376
52604
|
const responseLength = utils$1.toFiniteNumber(res.headers["content-length"]);
|
|
@@ -52417,6 +52645,23 @@ var require_axios = __commonJS({
|
|
|
52417
52645
|
request: lastRequest
|
|
52418
52646
|
};
|
|
52419
52647
|
if (responseType === "stream") {
|
|
52648
|
+
if (config.maxContentLength > -1) {
|
|
52649
|
+
const limit = config.maxContentLength;
|
|
52650
|
+
const source = responseStream;
|
|
52651
|
+
async function* enforceMaxContentLength() {
|
|
52652
|
+
let totalResponseBytes = 0;
|
|
52653
|
+
for await (const chunk of source) {
|
|
52654
|
+
totalResponseBytes += chunk.length;
|
|
52655
|
+
if (totalResponseBytes > limit) {
|
|
52656
|
+
throw new AxiosError("maxContentLength size of " + limit + " exceeded", AxiosError.ERR_BAD_RESPONSE, config, lastRequest);
|
|
52657
|
+
}
|
|
52658
|
+
yield chunk;
|
|
52659
|
+
}
|
|
52660
|
+
}
|
|
52661
|
+
responseStream = stream.Readable.from(enforceMaxContentLength(), {
|
|
52662
|
+
objectMode: false
|
|
52663
|
+
});
|
|
52664
|
+
}
|
|
52420
52665
|
response.data = responseStream;
|
|
52421
52666
|
settle(resolve, reject, response);
|
|
52422
52667
|
} else {
|
|
@@ -52435,13 +52680,13 @@ var require_axios = __commonJS({
|
|
|
52435
52680
|
if (rejected) {
|
|
52436
52681
|
return;
|
|
52437
52682
|
}
|
|
52438
|
-
const err = new AxiosError("stream has been aborted", AxiosError.ERR_BAD_RESPONSE, config, lastRequest);
|
|
52683
|
+
const err = new AxiosError("stream has been aborted", AxiosError.ERR_BAD_RESPONSE, config, lastRequest, response);
|
|
52439
52684
|
responseStream.destroy(err);
|
|
52440
52685
|
reject(err);
|
|
52441
52686
|
});
|
|
52442
52687
|
responseStream.on("error", function handleStreamError(err) {
|
|
52443
|
-
if (
|
|
52444
|
-
reject(AxiosError.from(err, null, config, lastRequest));
|
|
52688
|
+
if (rejected) return;
|
|
52689
|
+
reject(AxiosError.from(err, null, config, lastRequest, response));
|
|
52445
52690
|
});
|
|
52446
52691
|
responseStream.on("end", function handleStreamEnd() {
|
|
52447
52692
|
try {
|
|
@@ -52476,8 +52721,29 @@ var require_axios = __commonJS({
|
|
|
52476
52721
|
req.on("error", function handleRequestError(err) {
|
|
52477
52722
|
reject(AxiosError.from(err, null, config, req));
|
|
52478
52723
|
});
|
|
52724
|
+
const boundSockets = /* @__PURE__ */ new Set();
|
|
52479
52725
|
req.on("socket", function handleRequestSocket(socket) {
|
|
52480
52726
|
socket.setKeepAlive(true, 1e3 * 60);
|
|
52727
|
+
if (!socket[kAxiosSocketListener]) {
|
|
52728
|
+
socket.on("error", function handleSocketError(err) {
|
|
52729
|
+
const current = socket[kAxiosCurrentReq];
|
|
52730
|
+
if (current && !current.destroyed) {
|
|
52731
|
+
current.destroy(err);
|
|
52732
|
+
}
|
|
52733
|
+
});
|
|
52734
|
+
socket[kAxiosSocketListener] = true;
|
|
52735
|
+
}
|
|
52736
|
+
socket[kAxiosCurrentReq] = req;
|
|
52737
|
+
boundSockets.add(socket);
|
|
52738
|
+
});
|
|
52739
|
+
req.once("close", function clearCurrentReq() {
|
|
52740
|
+
clearConnectPhaseTimer();
|
|
52741
|
+
for (const socket of boundSockets) {
|
|
52742
|
+
if (socket[kAxiosCurrentReq] === req) {
|
|
52743
|
+
socket[kAxiosCurrentReq] = null;
|
|
52744
|
+
}
|
|
52745
|
+
}
|
|
52746
|
+
boundSockets.clear();
|
|
52481
52747
|
});
|
|
52482
52748
|
if (config.timeout) {
|
|
52483
52749
|
const timeout = parseInt(config.timeout, 10);
|
|
@@ -52485,15 +52751,14 @@ var require_axios = __commonJS({
|
|
|
52485
52751
|
abort(new AxiosError("error trying to parse `config.timeout` to int", AxiosError.ERR_BAD_OPTION_VALUE, config, req));
|
|
52486
52752
|
return;
|
|
52487
52753
|
}
|
|
52488
|
-
|
|
52754
|
+
const handleTimeout = function handleTimeout2() {
|
|
52489
52755
|
if (isDone) return;
|
|
52490
|
-
|
|
52491
|
-
|
|
52492
|
-
|
|
52493
|
-
|
|
52494
|
-
|
|
52495
|
-
|
|
52496
|
-
});
|
|
52756
|
+
abort(createTimeoutError());
|
|
52757
|
+
};
|
|
52758
|
+
if (isNativeTransport && timeout > 0) {
|
|
52759
|
+
connectPhaseTimer = setTimeout(handleTimeout, timeout);
|
|
52760
|
+
}
|
|
52761
|
+
req.setTimeout(timeout, handleTimeout);
|
|
52497
52762
|
} else {
|
|
52498
52763
|
req.setTimeout(0);
|
|
52499
52764
|
}
|
|
@@ -52512,7 +52777,24 @@ var require_axios = __commonJS({
|
|
|
52512
52777
|
abort(new CanceledError("Request stream has been aborted", config, req));
|
|
52513
52778
|
}
|
|
52514
52779
|
});
|
|
52515
|
-
data
|
|
52780
|
+
let uploadStream = data;
|
|
52781
|
+
if (config.maxBodyLength > -1 && config.maxRedirects === 0) {
|
|
52782
|
+
const limit = config.maxBodyLength;
|
|
52783
|
+
let bytesSent = 0;
|
|
52784
|
+
uploadStream = stream.pipeline([data, new stream.Transform({
|
|
52785
|
+
transform(chunk, _enc, cb) {
|
|
52786
|
+
bytesSent += chunk.length;
|
|
52787
|
+
if (bytesSent > limit) {
|
|
52788
|
+
return cb(new AxiosError("Request body larger than maxBodyLength limit", AxiosError.ERR_BAD_REQUEST, config, req));
|
|
52789
|
+
}
|
|
52790
|
+
cb(null, chunk);
|
|
52791
|
+
}
|
|
52792
|
+
})], utils$1.noop);
|
|
52793
|
+
uploadStream.on("error", (err) => {
|
|
52794
|
+
if (!req.destroyed) req.destroy(err);
|
|
52795
|
+
});
|
|
52796
|
+
}
|
|
52797
|
+
uploadStream.pipe(req);
|
|
52516
52798
|
} else {
|
|
52517
52799
|
data && req.write(data);
|
|
52518
52800
|
req.end();
|
|
@@ -52526,14 +52808,14 @@ var require_axios = __commonJS({
|
|
|
52526
52808
|
var cookies = platform3.hasStandardBrowserEnv ? (
|
|
52527
52809
|
// Standard browser envs support document.cookie
|
|
52528
52810
|
{
|
|
52529
|
-
write(name2, value, expires,
|
|
52811
|
+
write(name2, value, expires, path4, domain, secure, sameSite) {
|
|
52530
52812
|
if (typeof document === "undefined") return;
|
|
52531
52813
|
const cookie = [`${name2}=${encodeURIComponent(value)}`];
|
|
52532
52814
|
if (utils$1.isNumber(expires)) {
|
|
52533
52815
|
cookie.push(`expires=${new Date(expires).toUTCString()}`);
|
|
52534
52816
|
}
|
|
52535
|
-
if (utils$1.isString(
|
|
52536
|
-
cookie.push(`path=${
|
|
52817
|
+
if (utils$1.isString(path4)) {
|
|
52818
|
+
cookie.push(`path=${path4}`);
|
|
52537
52819
|
}
|
|
52538
52820
|
if (utils$1.isString(domain)) {
|
|
52539
52821
|
cookie.push(`domain=${domain}`);
|
|
@@ -52548,8 +52830,15 @@ var require_axios = __commonJS({
|
|
|
52548
52830
|
},
|
|
52549
52831
|
read(name2) {
|
|
52550
52832
|
if (typeof document === "undefined") return null;
|
|
52551
|
-
const
|
|
52552
|
-
|
|
52833
|
+
const cookies2 = document.cookie.split(";");
|
|
52834
|
+
for (let i = 0; i < cookies2.length; i++) {
|
|
52835
|
+
const cookie = cookies2[i].replace(/^\s+/, "");
|
|
52836
|
+
const eq = cookie.indexOf("=");
|
|
52837
|
+
if (eq !== -1 && cookie.slice(0, eq) === name2) {
|
|
52838
|
+
return decodeURIComponent(cookie.slice(eq + 1));
|
|
52839
|
+
}
|
|
52840
|
+
}
|
|
52841
|
+
return null;
|
|
52553
52842
|
},
|
|
52554
52843
|
remove(name2) {
|
|
52555
52844
|
this.write(name2, "", Date.now() - 864e5, "/");
|
|
@@ -52572,7 +52861,16 @@ var require_axios = __commonJS({
|
|
|
52572
52861
|
} : thing;
|
|
52573
52862
|
function mergeConfig2(config1, config2) {
|
|
52574
52863
|
config2 = config2 || {};
|
|
52575
|
-
const config =
|
|
52864
|
+
const config = /* @__PURE__ */ Object.create(null);
|
|
52865
|
+
Object.defineProperty(config, "hasOwnProperty", {
|
|
52866
|
+
// Null-proto descriptor so a polluted Object.prototype.get cannot turn
|
|
52867
|
+
// this data descriptor into an accessor descriptor on the way in.
|
|
52868
|
+
__proto__: null,
|
|
52869
|
+
value: Object.prototype.hasOwnProperty,
|
|
52870
|
+
enumerable: false,
|
|
52871
|
+
writable: true,
|
|
52872
|
+
configurable: true
|
|
52873
|
+
});
|
|
52576
52874
|
function getMergedValue(target, source, prop, caseless) {
|
|
52577
52875
|
if (utils$1.isPlainObject(target) && utils$1.isPlainObject(source)) {
|
|
52578
52876
|
return utils$1.merge.call({
|
|
@@ -52605,9 +52903,9 @@ var require_axios = __commonJS({
|
|
|
52605
52903
|
}
|
|
52606
52904
|
}
|
|
52607
52905
|
function mergeDirectKeys(a, b, prop) {
|
|
52608
|
-
if (prop
|
|
52906
|
+
if (utils$1.hasOwnProp(config2, prop)) {
|
|
52609
52907
|
return getMergedValue(a, b);
|
|
52610
|
-
} else if (prop
|
|
52908
|
+
} else if (utils$1.hasOwnProp(config1, prop)) {
|
|
52611
52909
|
return getMergedValue(void 0, a);
|
|
52612
52910
|
}
|
|
52613
52911
|
}
|
|
@@ -52638,6 +52936,7 @@ var require_axios = __commonJS({
|
|
|
52638
52936
|
httpsAgent: defaultToConfig2,
|
|
52639
52937
|
cancelToken: defaultToConfig2,
|
|
52640
52938
|
socketPath: defaultToConfig2,
|
|
52939
|
+
allowedSocketPaths: defaultToConfig2,
|
|
52641
52940
|
responseEncoding: defaultToConfig2,
|
|
52642
52941
|
validateStatus: mergeDirectKeys,
|
|
52643
52942
|
headers: (a, b, prop) => mergeDeepProperties(headersToObject(a), headersToObject(b), prop, true)
|
|
@@ -52648,42 +52947,56 @@ var require_axios = __commonJS({
|
|
|
52648
52947
|
}), function computeConfigValue(prop) {
|
|
52649
52948
|
if (prop === "__proto__" || prop === "constructor" || prop === "prototype") return;
|
|
52650
52949
|
const merge3 = utils$1.hasOwnProp(mergeMap, prop) ? mergeMap[prop] : mergeDeepProperties;
|
|
52651
|
-
const
|
|
52950
|
+
const a = utils$1.hasOwnProp(config1, prop) ? config1[prop] : void 0;
|
|
52951
|
+
const b = utils$1.hasOwnProp(config2, prop) ? config2[prop] : void 0;
|
|
52952
|
+
const configValue = merge3(a, b, prop);
|
|
52652
52953
|
utils$1.isUndefined(configValue) && merge3 !== mergeDirectKeys || (config[prop] = configValue);
|
|
52653
52954
|
});
|
|
52654
52955
|
return config;
|
|
52655
52956
|
}
|
|
52957
|
+
var FORM_DATA_CONTENT_HEADERS = ["content-type", "content-length"];
|
|
52958
|
+
function setFormDataHeaders(headers, formHeaders, policy) {
|
|
52959
|
+
if (policy !== "content-only") {
|
|
52960
|
+
headers.set(formHeaders);
|
|
52961
|
+
return;
|
|
52962
|
+
}
|
|
52963
|
+
Object.entries(formHeaders).forEach(([key, val]) => {
|
|
52964
|
+
if (FORM_DATA_CONTENT_HEADERS.includes(key.toLowerCase())) {
|
|
52965
|
+
headers.set(key, val);
|
|
52966
|
+
}
|
|
52967
|
+
});
|
|
52968
|
+
}
|
|
52969
|
+
var encodeUTF8 = (str) => encodeURIComponent(str).replace(/%([0-9A-F]{2})/gi, (_, hex) => String.fromCharCode(parseInt(hex, 16)));
|
|
52656
52970
|
var resolveConfig = (config) => {
|
|
52657
52971
|
const newConfig = mergeConfig2({}, config);
|
|
52658
|
-
|
|
52659
|
-
|
|
52660
|
-
|
|
52661
|
-
|
|
52662
|
-
|
|
52663
|
-
|
|
52664
|
-
|
|
52665
|
-
|
|
52972
|
+
const own2 = (key) => utils$1.hasOwnProp(newConfig, key) ? newConfig[key] : void 0;
|
|
52973
|
+
const data = own2("data");
|
|
52974
|
+
let withXSRFToken = own2("withXSRFToken");
|
|
52975
|
+
const xsrfHeaderName = own2("xsrfHeaderName");
|
|
52976
|
+
const xsrfCookieName = own2("xsrfCookieName");
|
|
52977
|
+
let headers = own2("headers");
|
|
52978
|
+
const auth = own2("auth");
|
|
52979
|
+
const baseURL = own2("baseURL");
|
|
52980
|
+
const allowAbsoluteUrls = own2("allowAbsoluteUrls");
|
|
52981
|
+
const url2 = own2("url");
|
|
52666
52982
|
newConfig.headers = headers = AxiosHeaders.from(headers);
|
|
52667
|
-
newConfig.url = buildURL(buildFullPath(
|
|
52983
|
+
newConfig.url = buildURL(buildFullPath(baseURL, url2, allowAbsoluteUrls), config.params, config.paramsSerializer);
|
|
52668
52984
|
if (auth) {
|
|
52669
|
-
headers.set("Authorization", "Basic " + btoa((auth.username || "") + ":" + (auth.password ?
|
|
52985
|
+
headers.set("Authorization", "Basic " + btoa((auth.username || "") + ":" + (auth.password ? encodeUTF8(auth.password) : "")));
|
|
52670
52986
|
}
|
|
52671
52987
|
if (utils$1.isFormData(data)) {
|
|
52672
52988
|
if (platform3.hasStandardBrowserEnv || platform3.hasStandardBrowserWebWorkerEnv) {
|
|
52673
52989
|
headers.setContentType(void 0);
|
|
52674
52990
|
} else if (utils$1.isFunction(data.getHeaders)) {
|
|
52675
|
-
|
|
52676
|
-
const allowedHeaders = ["content-type", "content-length"];
|
|
52677
|
-
Object.entries(formHeaders).forEach(([key, val]) => {
|
|
52678
|
-
if (allowedHeaders.includes(key.toLowerCase())) {
|
|
52679
|
-
headers.set(key, val);
|
|
52680
|
-
}
|
|
52681
|
-
});
|
|
52991
|
+
setFormDataHeaders(headers, data.getHeaders(), own2("formDataHeaderPolicy"));
|
|
52682
52992
|
}
|
|
52683
52993
|
}
|
|
52684
52994
|
if (platform3.hasStandardBrowserEnv) {
|
|
52685
|
-
|
|
52686
|
-
|
|
52995
|
+
if (utils$1.isFunction(withXSRFToken)) {
|
|
52996
|
+
withXSRFToken = withXSRFToken(newConfig);
|
|
52997
|
+
}
|
|
52998
|
+
const shouldSendXSRF = withXSRFToken === true || withXSRFToken == null && isURLSameOrigin(newConfig.url);
|
|
52999
|
+
if (shouldSendXSRF) {
|
|
52687
53000
|
const xsrfValue = xsrfHeaderName && xsrfCookieName && cookies.read(xsrfCookieName);
|
|
52688
53001
|
if (xsrfValue) {
|
|
52689
53002
|
headers.set(xsrfHeaderName, xsrfValue);
|
|
@@ -52745,7 +53058,7 @@ var require_axios = __commonJS({
|
|
|
52745
53058
|
if (!request || request.readyState !== 4) {
|
|
52746
53059
|
return;
|
|
52747
53060
|
}
|
|
52748
|
-
if (request.status === 0 && !(request.responseURL && request.responseURL.
|
|
53061
|
+
if (request.status === 0 && !(request.responseURL && request.responseURL.startsWith("file:"))) {
|
|
52749
53062
|
return;
|
|
52750
53063
|
}
|
|
52751
53064
|
setTimeout(onloadend);
|
|
@@ -52756,6 +53069,7 @@ var require_axios = __commonJS({
|
|
|
52756
53069
|
return;
|
|
52757
53070
|
}
|
|
52758
53071
|
reject(new AxiosError("Request aborted", AxiosError.ECONNABORTED, config, request));
|
|
53072
|
+
done();
|
|
52759
53073
|
request = null;
|
|
52760
53074
|
};
|
|
52761
53075
|
request.onerror = function handleError(event) {
|
|
@@ -52763,6 +53077,7 @@ var require_axios = __commonJS({
|
|
|
52763
53077
|
const err = new AxiosError(msg, AxiosError.ERR_NETWORK, config, request);
|
|
52764
53078
|
err.event = event || null;
|
|
52765
53079
|
reject(err);
|
|
53080
|
+
done();
|
|
52766
53081
|
request = null;
|
|
52767
53082
|
};
|
|
52768
53083
|
request.ontimeout = function handleTimeout() {
|
|
@@ -52772,6 +53087,7 @@ var require_axios = __commonJS({
|
|
|
52772
53087
|
timeoutErrorMessage = _config.timeoutErrorMessage;
|
|
52773
53088
|
}
|
|
52774
53089
|
reject(new AxiosError(timeoutErrorMessage, transitional.clarifyTimeoutError ? AxiosError.ETIMEDOUT : AxiosError.ECONNABORTED, config, request));
|
|
53090
|
+
done();
|
|
52775
53091
|
request = null;
|
|
52776
53092
|
};
|
|
52777
53093
|
requestData === void 0 && requestHeaders.setContentType(null);
|
|
@@ -52802,6 +53118,7 @@ var require_axios = __commonJS({
|
|
|
52802
53118
|
}
|
|
52803
53119
|
reject(!cancel || cancel.type ? new CanceledError(null, config, request) : cancel);
|
|
52804
53120
|
request.abort();
|
|
53121
|
+
done();
|
|
52805
53122
|
request = null;
|
|
52806
53123
|
};
|
|
52807
53124
|
_config.cancelToken && _config.cancelToken.subscribe(onCanceled);
|
|
@@ -52810,7 +53127,7 @@ var require_axios = __commonJS({
|
|
|
52810
53127
|
}
|
|
52811
53128
|
}
|
|
52812
53129
|
const protocol = parseProtocol(_config.url);
|
|
52813
|
-
if (protocol && platform3.protocols.
|
|
53130
|
+
if (protocol && !platform3.protocols.includes(protocol)) {
|
|
52814
53131
|
reject(new AxiosError("Unsupported protocol " + protocol + ":", AxiosError.ERR_BAD_REQUEST, config));
|
|
52815
53132
|
return;
|
|
52816
53133
|
}
|
|
@@ -52939,17 +53256,6 @@ var require_axios = __commonJS({
|
|
|
52939
53256
|
var {
|
|
52940
53257
|
isFunction: isFunction2
|
|
52941
53258
|
} = utils$1;
|
|
52942
|
-
var globalFetchAPI = (({
|
|
52943
|
-
Request,
|
|
52944
|
-
Response
|
|
52945
|
-
}) => ({
|
|
52946
|
-
Request,
|
|
52947
|
-
Response
|
|
52948
|
-
}))(utils$1.global);
|
|
52949
|
-
var {
|
|
52950
|
-
ReadableStream: ReadableStream$1,
|
|
52951
|
-
TextEncoder: TextEncoder$1
|
|
52952
|
-
} = utils$1.global;
|
|
52953
53259
|
var test = (fn2, ...args) => {
|
|
52954
53260
|
try {
|
|
52955
53261
|
return !!fn2(...args);
|
|
@@ -52958,9 +53264,18 @@ var require_axios = __commonJS({
|
|
|
52958
53264
|
}
|
|
52959
53265
|
};
|
|
52960
53266
|
var factory = (env3) => {
|
|
53267
|
+
var _utils$global;
|
|
53268
|
+
const globalObject = (_utils$global = utils$1.global) !== null && _utils$global !== void 0 ? _utils$global : globalThis;
|
|
53269
|
+
const {
|
|
53270
|
+
ReadableStream: ReadableStream2,
|
|
53271
|
+
TextEncoder: TextEncoder2
|
|
53272
|
+
} = globalObject;
|
|
52961
53273
|
env3 = utils$1.merge.call({
|
|
52962
53274
|
skipUndefined: true
|
|
52963
|
-
},
|
|
53275
|
+
}, {
|
|
53276
|
+
Request: globalObject.Request,
|
|
53277
|
+
Response: globalObject.Response
|
|
53278
|
+
}, env3);
|
|
52964
53279
|
const {
|
|
52965
53280
|
fetch: envFetch,
|
|
52966
53281
|
Request,
|
|
@@ -52972,20 +53287,22 @@ var require_axios = __commonJS({
|
|
|
52972
53287
|
if (!isFetchSupported) {
|
|
52973
53288
|
return false;
|
|
52974
53289
|
}
|
|
52975
|
-
const isReadableStreamSupported = isFetchSupported && isFunction2(
|
|
52976
|
-
const encodeText = isFetchSupported && (typeof
|
|
53290
|
+
const isReadableStreamSupported = isFetchSupported && isFunction2(ReadableStream2);
|
|
53291
|
+
const encodeText = isFetchSupported && (typeof TextEncoder2 === "function" ? /* @__PURE__ */ ((encoder) => (str) => encoder.encode(str))(new TextEncoder2()) : async (str) => new Uint8Array(await new Request(str).arrayBuffer()));
|
|
52977
53292
|
const supportsRequestStream = isRequestSupported && isReadableStreamSupported && test(() => {
|
|
52978
53293
|
let duplexAccessed = false;
|
|
52979
|
-
const
|
|
52980
|
-
|
|
52981
|
-
body,
|
|
53294
|
+
const request = new Request(platform3.origin, {
|
|
53295
|
+
body: new ReadableStream2(),
|
|
52982
53296
|
method: "POST",
|
|
52983
53297
|
get duplex() {
|
|
52984
53298
|
duplexAccessed = true;
|
|
52985
53299
|
return "half";
|
|
52986
53300
|
}
|
|
52987
|
-
})
|
|
52988
|
-
|
|
53301
|
+
});
|
|
53302
|
+
const hasContentType = request.headers.has("Content-Type");
|
|
53303
|
+
if (request.body != null) {
|
|
53304
|
+
request.body.cancel();
|
|
53305
|
+
}
|
|
52989
53306
|
return duplexAccessed && !hasContentType;
|
|
52990
53307
|
});
|
|
52991
53308
|
const supportsResponseStream = isResponseSupported && isReadableStreamSupported && test(() => utils$1.isReadableStream(new Response("").body));
|
|
@@ -53044,8 +53361,12 @@ var require_axios = __commonJS({
|
|
|
53044
53361
|
responseType,
|
|
53045
53362
|
headers,
|
|
53046
53363
|
withCredentials = "same-origin",
|
|
53047
|
-
fetchOptions
|
|
53364
|
+
fetchOptions,
|
|
53365
|
+
maxContentLength,
|
|
53366
|
+
maxBodyLength
|
|
53048
53367
|
} = resolveConfig(config);
|
|
53368
|
+
const hasMaxContentLength = utils$1.isNumber(maxContentLength) && maxContentLength > -1;
|
|
53369
|
+
const hasMaxBodyLength = utils$1.isNumber(maxBodyLength) && maxBodyLength > -1;
|
|
53049
53370
|
let _fetch = envFetch || fetch;
|
|
53050
53371
|
responseType = responseType ? (responseType + "").toLowerCase() : "text";
|
|
53051
53372
|
let composedSignal = composeSignals([signal, cancelToken && cancelToken.toAbortSignal()], timeout);
|
|
@@ -53055,6 +53376,18 @@ var require_axios = __commonJS({
|
|
|
53055
53376
|
});
|
|
53056
53377
|
let requestContentLength;
|
|
53057
53378
|
try {
|
|
53379
|
+
if (hasMaxContentLength && typeof url2 === "string" && url2.startsWith("data:")) {
|
|
53380
|
+
const estimated = estimateDataURLDecodedBytes(url2);
|
|
53381
|
+
if (estimated > maxContentLength) {
|
|
53382
|
+
throw new AxiosError("maxContentLength size of " + maxContentLength + " exceeded", AxiosError.ERR_BAD_RESPONSE, config, request);
|
|
53383
|
+
}
|
|
53384
|
+
}
|
|
53385
|
+
if (hasMaxBodyLength && method !== "get" && method !== "head") {
|
|
53386
|
+
const outboundLength = await resolveBodyLength(headers, data);
|
|
53387
|
+
if (typeof outboundLength === "number" && isFinite(outboundLength) && outboundLength > maxBodyLength) {
|
|
53388
|
+
throw new AxiosError("Request body larger than maxBodyLength limit", AxiosError.ERR_BAD_REQUEST, config, request);
|
|
53389
|
+
}
|
|
53390
|
+
}
|
|
53058
53391
|
if (onUploadProgress && supportsRequestStream && method !== "get" && method !== "head" && (requestContentLength = await resolveBodyLength(headers, data)) !== 0) {
|
|
53059
53392
|
let _request = new Request(url2, {
|
|
53060
53393
|
method: "POST",
|
|
@@ -53074,6 +53407,13 @@ var require_axios = __commonJS({
|
|
|
53074
53407
|
withCredentials = withCredentials ? "include" : "omit";
|
|
53075
53408
|
}
|
|
53076
53409
|
const isCredentialsSupported = isRequestSupported && "credentials" in Request.prototype;
|
|
53410
|
+
if (utils$1.isFormData(data)) {
|
|
53411
|
+
const contentType = headers.getContentType();
|
|
53412
|
+
if (contentType && /^multipart\/form-data/i.test(contentType) && !/boundary=/i.test(contentType)) {
|
|
53413
|
+
headers.delete("content-type");
|
|
53414
|
+
}
|
|
53415
|
+
}
|
|
53416
|
+
headers.set("User-Agent", "axios/" + VERSION4, false);
|
|
53077
53417
|
const resolvedOptions = {
|
|
53078
53418
|
...fetchOptions,
|
|
53079
53419
|
signal: composedSignal,
|
|
@@ -53085,21 +53425,52 @@ var require_axios = __commonJS({
|
|
|
53085
53425
|
};
|
|
53086
53426
|
request = isRequestSupported && new Request(url2, resolvedOptions);
|
|
53087
53427
|
let response = await (isRequestSupported ? _fetch(request, fetchOptions) : _fetch(url2, resolvedOptions));
|
|
53428
|
+
if (hasMaxContentLength) {
|
|
53429
|
+
const declaredLength = utils$1.toFiniteNumber(response.headers.get("content-length"));
|
|
53430
|
+
if (declaredLength != null && declaredLength > maxContentLength) {
|
|
53431
|
+
throw new AxiosError("maxContentLength size of " + maxContentLength + " exceeded", AxiosError.ERR_BAD_RESPONSE, config, request);
|
|
53432
|
+
}
|
|
53433
|
+
}
|
|
53088
53434
|
const isStreamResponse = supportsResponseStream && (responseType === "stream" || responseType === "response");
|
|
53089
|
-
if (supportsResponseStream && (onDownloadProgress || isStreamResponse && unsubscribe)) {
|
|
53435
|
+
if (supportsResponseStream && response.body && (onDownloadProgress || hasMaxContentLength || isStreamResponse && unsubscribe)) {
|
|
53090
53436
|
const options = {};
|
|
53091
53437
|
["status", "statusText", "headers"].forEach((prop) => {
|
|
53092
53438
|
options[prop] = response[prop];
|
|
53093
53439
|
});
|
|
53094
53440
|
const responseContentLength = utils$1.toFiniteNumber(response.headers.get("content-length"));
|
|
53095
53441
|
const [onProgress, flush] = onDownloadProgress && progressEventDecorator(responseContentLength, progressEventReducer(asyncDecorator(onDownloadProgress), true)) || [];
|
|
53096
|
-
|
|
53442
|
+
let bytesRead = 0;
|
|
53443
|
+
const onChunkProgress = (loadedBytes) => {
|
|
53444
|
+
if (hasMaxContentLength) {
|
|
53445
|
+
bytesRead = loadedBytes;
|
|
53446
|
+
if (bytesRead > maxContentLength) {
|
|
53447
|
+
throw new AxiosError("maxContentLength size of " + maxContentLength + " exceeded", AxiosError.ERR_BAD_RESPONSE, config, request);
|
|
53448
|
+
}
|
|
53449
|
+
}
|
|
53450
|
+
onProgress && onProgress(loadedBytes);
|
|
53451
|
+
};
|
|
53452
|
+
response = new Response(trackStream(response.body, DEFAULT_CHUNK_SIZE, onChunkProgress, () => {
|
|
53097
53453
|
flush && flush();
|
|
53098
53454
|
unsubscribe && unsubscribe();
|
|
53099
53455
|
}), options);
|
|
53100
53456
|
}
|
|
53101
53457
|
responseType = responseType || "text";
|
|
53102
53458
|
let responseData = await resolvers[utils$1.findKey(resolvers, responseType) || "text"](response, config);
|
|
53459
|
+
if (hasMaxContentLength && !supportsResponseStream && !isStreamResponse) {
|
|
53460
|
+
let materializedSize;
|
|
53461
|
+
if (responseData != null) {
|
|
53462
|
+
if (typeof responseData.byteLength === "number") {
|
|
53463
|
+
materializedSize = responseData.byteLength;
|
|
53464
|
+
} else if (typeof responseData.size === "number") {
|
|
53465
|
+
materializedSize = responseData.size;
|
|
53466
|
+
} else if (typeof responseData === "string") {
|
|
53467
|
+
materializedSize = typeof TextEncoder2 === "function" ? new TextEncoder2().encode(responseData).byteLength : responseData.length;
|
|
53468
|
+
}
|
|
53469
|
+
}
|
|
53470
|
+
if (typeof materializedSize === "number" && materializedSize > maxContentLength) {
|
|
53471
|
+
throw new AxiosError("maxContentLength size of " + maxContentLength + " exceeded", AxiosError.ERR_BAD_RESPONSE, config, request);
|
|
53472
|
+
}
|
|
53473
|
+
}
|
|
53103
53474
|
!isStreamResponse && unsubscribe && unsubscribe();
|
|
53104
53475
|
return await new Promise((resolve, reject) => {
|
|
53105
53476
|
settle(resolve, reject, {
|
|
@@ -53113,6 +53484,13 @@ var require_axios = __commonJS({
|
|
|
53113
53484
|
});
|
|
53114
53485
|
} catch (err) {
|
|
53115
53486
|
unsubscribe && unsubscribe();
|
|
53487
|
+
if (composedSignal && composedSignal.aborted && composedSignal.reason instanceof AxiosError) {
|
|
53488
|
+
const canceledError = composedSignal.reason;
|
|
53489
|
+
canceledError.config = config;
|
|
53490
|
+
request && (canceledError.request = request);
|
|
53491
|
+
err !== canceledError && (canceledError.cause = err);
|
|
53492
|
+
throw canceledError;
|
|
53493
|
+
}
|
|
53116
53494
|
if (err && err.name === "TypeError" && /Load failed|fetch/i.test(err.message)) {
|
|
53117
53495
|
throw Object.assign(new AxiosError("Network Error", AxiosError.ERR_NETWORK, config, request, err && err.response), {
|
|
53118
53496
|
cause: err.cause || err
|
|
@@ -53152,11 +53530,13 @@ var require_axios = __commonJS({
|
|
|
53152
53530
|
if (fn2) {
|
|
53153
53531
|
try {
|
|
53154
53532
|
Object.defineProperty(fn2, "name", {
|
|
53533
|
+
__proto__: null,
|
|
53155
53534
|
value
|
|
53156
53535
|
});
|
|
53157
53536
|
} catch (e) {
|
|
53158
53537
|
}
|
|
53159
53538
|
Object.defineProperty(fn2, "adapterName", {
|
|
53539
|
+
__proto__: null,
|
|
53160
53540
|
value
|
|
53161
53541
|
});
|
|
53162
53542
|
}
|
|
@@ -53223,14 +53603,24 @@ var require_axios = __commonJS({
|
|
|
53223
53603
|
const adapter = adapters.getAdapter(config.adapter || defaults.adapter, config);
|
|
53224
53604
|
return adapter(config).then(function onAdapterResolution(response) {
|
|
53225
53605
|
throwIfCancellationRequested(config);
|
|
53226
|
-
response
|
|
53606
|
+
config.response = response;
|
|
53607
|
+
try {
|
|
53608
|
+
response.data = transformData.call(config, config.transformResponse, response);
|
|
53609
|
+
} finally {
|
|
53610
|
+
delete config.response;
|
|
53611
|
+
}
|
|
53227
53612
|
response.headers = AxiosHeaders.from(response.headers);
|
|
53228
53613
|
return response;
|
|
53229
53614
|
}, function onAdapterRejection(reason) {
|
|
53230
53615
|
if (!isCancel(reason)) {
|
|
53231
53616
|
throwIfCancellationRequested(config);
|
|
53232
53617
|
if (reason && reason.response) {
|
|
53233
|
-
|
|
53618
|
+
config.response = reason.response;
|
|
53619
|
+
try {
|
|
53620
|
+
reason.response.data = transformData.call(config, config.transformResponse, reason.response);
|
|
53621
|
+
} finally {
|
|
53622
|
+
delete config.response;
|
|
53623
|
+
}
|
|
53234
53624
|
reason.response.headers = AxiosHeaders.from(reason.response.headers);
|
|
53235
53625
|
}
|
|
53236
53626
|
}
|
|
@@ -53273,7 +53663,7 @@ var require_axios = __commonJS({
|
|
|
53273
53663
|
let i = keys.length;
|
|
53274
53664
|
while (i-- > 0) {
|
|
53275
53665
|
const opt = keys[i];
|
|
53276
|
-
const validator2 = schema[opt];
|
|
53666
|
+
const validator2 = Object.prototype.hasOwnProperty.call(schema, opt) ? schema[opt] : void 0;
|
|
53277
53667
|
if (validator2) {
|
|
53278
53668
|
const value = options[opt];
|
|
53279
53669
|
const result = value === void 0 || validator2(value, opt, options);
|
|
@@ -53384,7 +53774,7 @@ var require_axios = __commonJS({
|
|
|
53384
53774
|
}, true);
|
|
53385
53775
|
config.method = (config.method || this.defaults.method || "get").toLowerCase();
|
|
53386
53776
|
let contextHeaders = headers && utils$1.merge(headers.common, headers[config.method]);
|
|
53387
|
-
headers && utils$1.forEach(["delete", "get", "head", "post", "put", "patch", "common"], (method) => {
|
|
53777
|
+
headers && utils$1.forEach(["delete", "get", "head", "post", "put", "patch", "query", "common"], (method) => {
|
|
53388
53778
|
delete headers[method];
|
|
53389
53779
|
});
|
|
53390
53780
|
config.headers = AxiosHeaders.concat(contextHeaders, headers);
|
|
@@ -53460,7 +53850,7 @@ var require_axios = __commonJS({
|
|
|
53460
53850
|
}));
|
|
53461
53851
|
};
|
|
53462
53852
|
});
|
|
53463
|
-
utils$1.forEach(["post", "put", "patch"], function forEachMethodWithData(method) {
|
|
53853
|
+
utils$1.forEach(["post", "put", "patch", "query"], function forEachMethodWithData(method) {
|
|
53464
53854
|
function generateHTTPMethod(isForm) {
|
|
53465
53855
|
return function httpMethod(url2, data, config) {
|
|
53466
53856
|
return this.request(mergeConfig2(config || {}, {
|
|
@@ -53474,7 +53864,9 @@ var require_axios = __commonJS({
|
|
|
53474
53864
|
};
|
|
53475
53865
|
}
|
|
53476
53866
|
Axios.prototype[method] = generateHTTPMethod();
|
|
53477
|
-
|
|
53867
|
+
if (method !== "query") {
|
|
53868
|
+
Axios.prototype[method + "Form"] = generateHTTPMethod(true);
|
|
53869
|
+
}
|
|
53478
53870
|
});
|
|
53479
53871
|
var CancelToken = class _CancelToken {
|
|
53480
53872
|
constructor(executor) {
|
|
@@ -71624,9 +72016,9 @@ var require_braces = __commonJS({
|
|
|
71624
72016
|
}
|
|
71625
72017
|
});
|
|
71626
72018
|
|
|
71627
|
-
// ../../node_modules/picomatch/lib/constants.js
|
|
72019
|
+
// ../../node_modules/micromatch/node_modules/picomatch/lib/constants.js
|
|
71628
72020
|
var require_constants5 = __commonJS({
|
|
71629
|
-
"../../node_modules/picomatch/lib/constants.js"(exports, module) {
|
|
72021
|
+
"../../node_modules/micromatch/node_modules/picomatch/lib/constants.js"(exports, module) {
|
|
71630
72022
|
"use strict";
|
|
71631
72023
|
var path3 = __require("path");
|
|
71632
72024
|
var WIN_SLASH = "\\\\/";
|
|
@@ -71825,9 +72217,9 @@ var require_constants5 = __commonJS({
|
|
|
71825
72217
|
}
|
|
71826
72218
|
});
|
|
71827
72219
|
|
|
71828
|
-
// ../../node_modules/picomatch/lib/utils.js
|
|
72220
|
+
// ../../node_modules/micromatch/node_modules/picomatch/lib/utils.js
|
|
71829
72221
|
var require_utils5 = __commonJS({
|
|
71830
|
-
"../../node_modules/picomatch/lib/utils.js"(exports) {
|
|
72222
|
+
"../../node_modules/micromatch/node_modules/picomatch/lib/utils.js"(exports) {
|
|
71831
72223
|
"use strict";
|
|
71832
72224
|
var path3 = __require("path");
|
|
71833
72225
|
var win32 = process.platform === "win32";
|
|
@@ -71886,9 +72278,9 @@ var require_utils5 = __commonJS({
|
|
|
71886
72278
|
}
|
|
71887
72279
|
});
|
|
71888
72280
|
|
|
71889
|
-
// ../../node_modules/picomatch/lib/scan.js
|
|
72281
|
+
// ../../node_modules/micromatch/node_modules/picomatch/lib/scan.js
|
|
71890
72282
|
var require_scan = __commonJS({
|
|
71891
|
-
"../../node_modules/picomatch/lib/scan.js"(exports, module) {
|
|
72283
|
+
"../../node_modules/micromatch/node_modules/picomatch/lib/scan.js"(exports, module) {
|
|
71892
72284
|
"use strict";
|
|
71893
72285
|
var utils = require_utils5();
|
|
71894
72286
|
var {
|
|
@@ -72216,9 +72608,9 @@ var require_scan = __commonJS({
|
|
|
72216
72608
|
}
|
|
72217
72609
|
});
|
|
72218
72610
|
|
|
72219
|
-
// ../../node_modules/picomatch/lib/parse.js
|
|
72611
|
+
// ../../node_modules/micromatch/node_modules/picomatch/lib/parse.js
|
|
72220
72612
|
var require_parse5 = __commonJS({
|
|
72221
|
-
"../../node_modules/picomatch/lib/parse.js"(exports, module) {
|
|
72613
|
+
"../../node_modules/micromatch/node_modules/picomatch/lib/parse.js"(exports, module) {
|
|
72222
72614
|
"use strict";
|
|
72223
72615
|
var constants = require_constants5();
|
|
72224
72616
|
var utils = require_utils5();
|
|
@@ -73218,9 +73610,9 @@ var require_parse5 = __commonJS({
|
|
|
73218
73610
|
}
|
|
73219
73611
|
});
|
|
73220
73612
|
|
|
73221
|
-
// ../../node_modules/picomatch/lib/picomatch.js
|
|
73613
|
+
// ../../node_modules/micromatch/node_modules/picomatch/lib/picomatch.js
|
|
73222
73614
|
var require_picomatch = __commonJS({
|
|
73223
|
-
"../../node_modules/picomatch/lib/picomatch.js"(exports, module) {
|
|
73615
|
+
"../../node_modules/micromatch/node_modules/picomatch/lib/picomatch.js"(exports, module) {
|
|
73224
73616
|
"use strict";
|
|
73225
73617
|
var path3 = __require("path");
|
|
73226
73618
|
var scan = require_scan();
|
|
@@ -73359,9 +73751,9 @@ var require_picomatch = __commonJS({
|
|
|
73359
73751
|
}
|
|
73360
73752
|
});
|
|
73361
73753
|
|
|
73362
|
-
// ../../node_modules/picomatch/index.js
|
|
73754
|
+
// ../../node_modules/micromatch/node_modules/picomatch/index.js
|
|
73363
73755
|
var require_picomatch2 = __commonJS({
|
|
73364
|
-
"../../node_modules/picomatch/index.js"(exports, module) {
|
|
73756
|
+
"../../node_modules/micromatch/node_modules/picomatch/index.js"(exports, module) {
|
|
73365
73757
|
"use strict";
|
|
73366
73758
|
module.exports = require_picomatch();
|
|
73367
73759
|
}
|
|
@@ -77863,14 +78255,14 @@ var require_templates = __commonJS({
|
|
|
77863
78255
|
}
|
|
77864
78256
|
return results;
|
|
77865
78257
|
}
|
|
77866
|
-
function buildStyle(
|
|
78258
|
+
function buildStyle(chalk, styles) {
|
|
77867
78259
|
const enabled2 = {};
|
|
77868
78260
|
for (const layer of styles) {
|
|
77869
78261
|
for (const style of layer.styles) {
|
|
77870
78262
|
enabled2[style[0]] = layer.inverse ? null : style.slice(1);
|
|
77871
78263
|
}
|
|
77872
78264
|
}
|
|
77873
|
-
let current =
|
|
78265
|
+
let current = chalk;
|
|
77874
78266
|
for (const styleName of Object.keys(enabled2)) {
|
|
77875
78267
|
if (Array.isArray(enabled2[styleName])) {
|
|
77876
78268
|
if (!(styleName in current)) {
|
|
@@ -77885,7 +78277,7 @@ var require_templates = __commonJS({
|
|
|
77885
78277
|
}
|
|
77886
78278
|
return current;
|
|
77887
78279
|
}
|
|
77888
|
-
module.exports = (
|
|
78280
|
+
module.exports = (chalk, tmp) => {
|
|
77889
78281
|
const styles = [];
|
|
77890
78282
|
const chunks = [];
|
|
77891
78283
|
let chunk = [];
|
|
@@ -77895,13 +78287,13 @@ var require_templates = __commonJS({
|
|
|
77895
78287
|
} else if (style) {
|
|
77896
78288
|
const str = chunk.join("");
|
|
77897
78289
|
chunk = [];
|
|
77898
|
-
chunks.push(styles.length === 0 ? str : buildStyle(
|
|
78290
|
+
chunks.push(styles.length === 0 ? str : buildStyle(chalk, styles)(str));
|
|
77899
78291
|
styles.push({ inverse, styles: parseStyle(style) });
|
|
77900
78292
|
} else if (close) {
|
|
77901
78293
|
if (styles.length === 0) {
|
|
77902
78294
|
throw new Error("Found extraneous } in Chalk template literal");
|
|
77903
78295
|
}
|
|
77904
|
-
chunks.push(buildStyle(
|
|
78296
|
+
chunks.push(buildStyle(chalk, styles)(chunk.join("")));
|
|
77905
78297
|
chunk = [];
|
|
77906
78298
|
styles.pop();
|
|
77907
78299
|
} else {
|
|
@@ -77938,16 +78330,16 @@ var require_chalk = __commonJS({
|
|
|
77938
78330
|
}
|
|
77939
78331
|
function Chalk(options) {
|
|
77940
78332
|
if (!this || !(this instanceof Chalk) || this.template) {
|
|
77941
|
-
const
|
|
77942
|
-
applyOptions(
|
|
77943
|
-
|
|
78333
|
+
const chalk = {};
|
|
78334
|
+
applyOptions(chalk, options);
|
|
78335
|
+
chalk.template = function() {
|
|
77944
78336
|
const args = [].slice.call(arguments);
|
|
77945
|
-
return chalkTag.apply(null, [
|
|
78337
|
+
return chalkTag.apply(null, [chalk.template].concat(args));
|
|
77946
78338
|
};
|
|
77947
|
-
Object.setPrototypeOf(
|
|
77948
|
-
Object.setPrototypeOf(
|
|
77949
|
-
|
|
77950
|
-
return
|
|
78339
|
+
Object.setPrototypeOf(chalk, Chalk.prototype);
|
|
78340
|
+
Object.setPrototypeOf(chalk.template, chalk);
|
|
78341
|
+
chalk.template.constructor = Chalk;
|
|
78342
|
+
return chalk.template;
|
|
77951
78343
|
}
|
|
77952
78344
|
applyOptions(this, options);
|
|
77953
78345
|
}
|
|
@@ -78066,7 +78458,7 @@ var require_chalk = __commonJS({
|
|
|
78066
78458
|
ansiStyles.dim.open = originalDim;
|
|
78067
78459
|
return str;
|
|
78068
78460
|
}
|
|
78069
|
-
function chalkTag(
|
|
78461
|
+
function chalkTag(chalk, strings) {
|
|
78070
78462
|
if (!Array.isArray(strings)) {
|
|
78071
78463
|
return [].slice.call(arguments, 1).join(" ");
|
|
78072
78464
|
}
|
|
@@ -78076,7 +78468,7 @@ var require_chalk = __commonJS({
|
|
|
78076
78468
|
parts.push(String(args[i - 1]).replace(/[{}\\]/g, "\\$&"));
|
|
78077
78469
|
parts.push(String(strings.raw[i]));
|
|
78078
78470
|
}
|
|
78079
|
-
return template(
|
|
78471
|
+
return template(chalk, parts.join(""));
|
|
78080
78472
|
}
|
|
78081
78473
|
Object.defineProperties(Chalk.prototype, styles);
|
|
78082
78474
|
module.exports = Chalk();
|
|
@@ -78138,17 +78530,17 @@ var require_lib3 = __commonJS({
|
|
|
78138
78530
|
}
|
|
78139
78531
|
return newObj;
|
|
78140
78532
|
}
|
|
78141
|
-
function getDefs(
|
|
78533
|
+
function getDefs(chalk) {
|
|
78142
78534
|
return {
|
|
78143
|
-
keyword:
|
|
78144
|
-
capitalized:
|
|
78145
|
-
jsx_tag:
|
|
78146
|
-
punctuator:
|
|
78147
|
-
number:
|
|
78148
|
-
string:
|
|
78149
|
-
regex:
|
|
78150
|
-
comment:
|
|
78151
|
-
invalid:
|
|
78535
|
+
keyword: chalk.cyan,
|
|
78536
|
+
capitalized: chalk.yellow,
|
|
78537
|
+
jsx_tag: chalk.yellow,
|
|
78538
|
+
punctuator: chalk.yellow,
|
|
78539
|
+
number: chalk.magenta,
|
|
78540
|
+
string: chalk.green,
|
|
78541
|
+
regex: chalk.magenta,
|
|
78542
|
+
comment: chalk.grey,
|
|
78543
|
+
invalid: chalk.white.bgRed.bold
|
|
78152
78544
|
};
|
|
78153
78545
|
}
|
|
78154
78546
|
var NEWLINE = /\r\n|[\n\r\u2028\u2029]/;
|
|
@@ -78191,19 +78583,19 @@ var require_lib3 = __commonJS({
|
|
|
78191
78583
|
return _chalk.default.supportsColor || options.forceColor;
|
|
78192
78584
|
}
|
|
78193
78585
|
function getChalk(options) {
|
|
78194
|
-
let
|
|
78586
|
+
let chalk = _chalk.default;
|
|
78195
78587
|
if (options.forceColor) {
|
|
78196
|
-
|
|
78588
|
+
chalk = new _chalk.default.constructor({
|
|
78197
78589
|
enabled: true,
|
|
78198
78590
|
level: 1
|
|
78199
78591
|
});
|
|
78200
78592
|
}
|
|
78201
|
-
return
|
|
78593
|
+
return chalk;
|
|
78202
78594
|
}
|
|
78203
78595
|
function highlight(code, options = {}) {
|
|
78204
78596
|
if (shouldHighlight(options)) {
|
|
78205
|
-
const
|
|
78206
|
-
const defs = getDefs(
|
|
78597
|
+
const chalk = getChalk(options);
|
|
78598
|
+
const defs = getDefs(chalk);
|
|
78207
78599
|
return highlightTokens(defs, code);
|
|
78208
78600
|
} else {
|
|
78209
78601
|
return code;
|
|
@@ -78260,11 +78652,11 @@ var require_lib4 = __commonJS({
|
|
|
78260
78652
|
return newObj;
|
|
78261
78653
|
}
|
|
78262
78654
|
var deprecationWarningShown = false;
|
|
78263
|
-
function getDefs(
|
|
78655
|
+
function getDefs(chalk) {
|
|
78264
78656
|
return {
|
|
78265
|
-
gutter:
|
|
78266
|
-
marker:
|
|
78267
|
-
message:
|
|
78657
|
+
gutter: chalk.grey,
|
|
78658
|
+
marker: chalk.red.bold,
|
|
78659
|
+
message: chalk.red.bold
|
|
78268
78660
|
};
|
|
78269
78661
|
}
|
|
78270
78662
|
var NEWLINE = /\r\n|[\n\r\u2028\u2029]/;
|
|
@@ -78326,8 +78718,8 @@ var require_lib4 = __commonJS({
|
|
|
78326
78718
|
}
|
|
78327
78719
|
function codeFrameColumns(rawLines, loc, opts = {}) {
|
|
78328
78720
|
const highlighted = (opts.highlightCode || opts.forceColor) && (0, _highlight.shouldHighlight)(opts);
|
|
78329
|
-
const
|
|
78330
|
-
const defs = getDefs(
|
|
78721
|
+
const chalk = (0, _highlight.getChalk)(opts);
|
|
78722
|
+
const defs = getDefs(chalk);
|
|
78331
78723
|
const maybeHighlight = (chalkFn, string) => {
|
|
78332
78724
|
return highlighted ? chalkFn(string) : string;
|
|
78333
78725
|
};
|
|
@@ -78366,7 +78758,7 @@ var require_lib4 = __commonJS({
|
|
|
78366
78758
|
${frame}`;
|
|
78367
78759
|
}
|
|
78368
78760
|
if (highlighted) {
|
|
78369
|
-
return
|
|
78761
|
+
return chalk.reset(frame);
|
|
78370
78762
|
} else {
|
|
78371
78763
|
return frame;
|
|
78372
78764
|
}
|
|
@@ -116462,344 +116854,6 @@ var require_script = __commonJS({
|
|
|
116462
116854
|
}
|
|
116463
116855
|
});
|
|
116464
116856
|
|
|
116465
|
-
// ../../node_modules/@sap-ux/project-access/dist/project/index.js
|
|
116466
|
-
var require_project = __commonJS({
|
|
116467
|
-
"../../node_modules/@sap-ux/project-access/dist/project/index.js"(exports) {
|
|
116468
|
-
"use strict";
|
|
116469
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
116470
|
-
exports.getMtaPath = exports.getPathMappings = exports.getMockDataPath = exports.getMockServerConfig = exports.getAllUi5YamlFileNames = exports.readUi5Yaml = exports.getWebappPath = exports.findRootsForPath = exports.findCapProjectRoot = exports.getAppRootFromWebappPath = exports.findProjectRoot = exports.findFioriArtifacts = exports.findCapProjects = exports.findAllApps = exports.loadModuleFromProject = exports.getProjectType = exports.getProject = exports.getMinimumUI5Version = exports.getMinUI5VersionAsArray = exports.getMinUI5VersionFromManifest = exports.getAppType = exports.getAppProgrammingLanguage = exports.getI18nBundles = exports.getI18nPropertiesPaths = exports.getCapI18nFolderNames = exports.hasDependency = exports.getNodeModulesPath = exports.addPackageDevDependency = exports.getMainService = exports.filterDataSourcesByType = exports.getGlobalCdsHomePath = exports.processServices = exports.checkCdsUi5PluginEnabled = exports.hasMinCdsVersion = exports.getWorkspaceInfo = exports.toReferenceUri = exports.readCapServiceMetadataEdmx = exports.isCapNodeJsProject = exports.isCapJavaProject = exports.isCapProject = exports.getCdsServices = exports.getCdsRoots = exports.getCdsFiles = exports.getCapServiceName = exports.getCapProjectType = exports.getCapModelAndServices = exports.getCapEnvironment = exports.getCapCustomPaths = exports.deleteCapApp = exports.clearCdsModuleCache = void 0;
|
|
116471
|
-
exports.readFlexChanges = exports.refreshSpecificationDistTags = exports.getSpecificationPath = exports.getSpecificationModuleFromCache = exports.getSpecification = exports.hasUI5CliV3 = exports.updatePackageScript = exports.createProjectAccess = exports.createApplicationAccess = void 0;
|
|
116472
|
-
var cap_1 = require_cap();
|
|
116473
|
-
Object.defineProperty(exports, "clearCdsModuleCache", { enumerable: true, get: function() {
|
|
116474
|
-
return cap_1.clearCdsModuleCache;
|
|
116475
|
-
} });
|
|
116476
|
-
Object.defineProperty(exports, "deleteCapApp", { enumerable: true, get: function() {
|
|
116477
|
-
return cap_1.deleteCapApp;
|
|
116478
|
-
} });
|
|
116479
|
-
Object.defineProperty(exports, "getCapCustomPaths", { enumerable: true, get: function() {
|
|
116480
|
-
return cap_1.getCapCustomPaths;
|
|
116481
|
-
} });
|
|
116482
|
-
Object.defineProperty(exports, "getCapEnvironment", { enumerable: true, get: function() {
|
|
116483
|
-
return cap_1.getCapEnvironment;
|
|
116484
|
-
} });
|
|
116485
|
-
Object.defineProperty(exports, "getCapModelAndServices", { enumerable: true, get: function() {
|
|
116486
|
-
return cap_1.getCapModelAndServices;
|
|
116487
|
-
} });
|
|
116488
|
-
Object.defineProperty(exports, "getCapProjectType", { enumerable: true, get: function() {
|
|
116489
|
-
return cap_1.getCapProjectType;
|
|
116490
|
-
} });
|
|
116491
|
-
Object.defineProperty(exports, "getCapServiceName", { enumerable: true, get: function() {
|
|
116492
|
-
return cap_1.getCapServiceName;
|
|
116493
|
-
} });
|
|
116494
|
-
Object.defineProperty(exports, "getCdsFiles", { enumerable: true, get: function() {
|
|
116495
|
-
return cap_1.getCdsFiles;
|
|
116496
|
-
} });
|
|
116497
|
-
Object.defineProperty(exports, "getCdsRoots", { enumerable: true, get: function() {
|
|
116498
|
-
return cap_1.getCdsRoots;
|
|
116499
|
-
} });
|
|
116500
|
-
Object.defineProperty(exports, "getCdsServices", { enumerable: true, get: function() {
|
|
116501
|
-
return cap_1.getCdsServices;
|
|
116502
|
-
} });
|
|
116503
|
-
Object.defineProperty(exports, "isCapProject", { enumerable: true, get: function() {
|
|
116504
|
-
return cap_1.isCapProject;
|
|
116505
|
-
} });
|
|
116506
|
-
Object.defineProperty(exports, "isCapJavaProject", { enumerable: true, get: function() {
|
|
116507
|
-
return cap_1.isCapJavaProject;
|
|
116508
|
-
} });
|
|
116509
|
-
Object.defineProperty(exports, "isCapNodeJsProject", { enumerable: true, get: function() {
|
|
116510
|
-
return cap_1.isCapNodeJsProject;
|
|
116511
|
-
} });
|
|
116512
|
-
Object.defineProperty(exports, "readCapServiceMetadataEdmx", { enumerable: true, get: function() {
|
|
116513
|
-
return cap_1.readCapServiceMetadataEdmx;
|
|
116514
|
-
} });
|
|
116515
|
-
Object.defineProperty(exports, "toReferenceUri", { enumerable: true, get: function() {
|
|
116516
|
-
return cap_1.toReferenceUri;
|
|
116517
|
-
} });
|
|
116518
|
-
Object.defineProperty(exports, "getWorkspaceInfo", { enumerable: true, get: function() {
|
|
116519
|
-
return cap_1.getWorkspaceInfo;
|
|
116520
|
-
} });
|
|
116521
|
-
Object.defineProperty(exports, "hasMinCdsVersion", { enumerable: true, get: function() {
|
|
116522
|
-
return cap_1.hasMinCdsVersion;
|
|
116523
|
-
} });
|
|
116524
|
-
Object.defineProperty(exports, "checkCdsUi5PluginEnabled", { enumerable: true, get: function() {
|
|
116525
|
-
return cap_1.checkCdsUi5PluginEnabled;
|
|
116526
|
-
} });
|
|
116527
|
-
Object.defineProperty(exports, "processServices", { enumerable: true, get: function() {
|
|
116528
|
-
return cap_1.processServices;
|
|
116529
|
-
} });
|
|
116530
|
-
Object.defineProperty(exports, "getGlobalCdsHomePath", { enumerable: true, get: function() {
|
|
116531
|
-
return cap_1.getGlobalCdsHomePath;
|
|
116532
|
-
} });
|
|
116533
|
-
var service_1 = require_service();
|
|
116534
|
-
Object.defineProperty(exports, "filterDataSourcesByType", { enumerable: true, get: function() {
|
|
116535
|
-
return service_1.filterDataSourcesByType;
|
|
116536
|
-
} });
|
|
116537
|
-
Object.defineProperty(exports, "getMainService", { enumerable: true, get: function() {
|
|
116538
|
-
return service_1.getMainService;
|
|
116539
|
-
} });
|
|
116540
|
-
var dependencies_1 = require_dependencies2();
|
|
116541
|
-
Object.defineProperty(exports, "addPackageDevDependency", { enumerable: true, get: function() {
|
|
116542
|
-
return dependencies_1.addPackageDevDependency;
|
|
116543
|
-
} });
|
|
116544
|
-
Object.defineProperty(exports, "getNodeModulesPath", { enumerable: true, get: function() {
|
|
116545
|
-
return dependencies_1.getNodeModulesPath;
|
|
116546
|
-
} });
|
|
116547
|
-
Object.defineProperty(exports, "hasDependency", { enumerable: true, get: function() {
|
|
116548
|
-
return dependencies_1.hasDependency;
|
|
116549
|
-
} });
|
|
116550
|
-
var i18n_1 = require_i18n2();
|
|
116551
|
-
Object.defineProperty(exports, "getCapI18nFolderNames", { enumerable: true, get: function() {
|
|
116552
|
-
return i18n_1.getCapI18nFolderNames;
|
|
116553
|
-
} });
|
|
116554
|
-
Object.defineProperty(exports, "getI18nPropertiesPaths", { enumerable: true, get: function() {
|
|
116555
|
-
return i18n_1.getI18nPropertiesPaths;
|
|
116556
|
-
} });
|
|
116557
|
-
Object.defineProperty(exports, "getI18nBundles", { enumerable: true, get: function() {
|
|
116558
|
-
return i18n_1.getI18nBundles;
|
|
116559
|
-
} });
|
|
116560
|
-
var info_1 = require_info();
|
|
116561
|
-
Object.defineProperty(exports, "getAppProgrammingLanguage", { enumerable: true, get: function() {
|
|
116562
|
-
return info_1.getAppProgrammingLanguage;
|
|
116563
|
-
} });
|
|
116564
|
-
Object.defineProperty(exports, "getAppType", { enumerable: true, get: function() {
|
|
116565
|
-
return info_1.getAppType;
|
|
116566
|
-
} });
|
|
116567
|
-
Object.defineProperty(exports, "getMinUI5VersionFromManifest", { enumerable: true, get: function() {
|
|
116568
|
-
return info_1.getMinUI5VersionFromManifest;
|
|
116569
|
-
} });
|
|
116570
|
-
Object.defineProperty(exports, "getMinUI5VersionAsArray", { enumerable: true, get: function() {
|
|
116571
|
-
return info_1.getMinUI5VersionAsArray;
|
|
116572
|
-
} });
|
|
116573
|
-
Object.defineProperty(exports, "getMinimumUI5Version", { enumerable: true, get: function() {
|
|
116574
|
-
return info_1.getMinimumUI5Version;
|
|
116575
|
-
} });
|
|
116576
|
-
Object.defineProperty(exports, "getProject", { enumerable: true, get: function() {
|
|
116577
|
-
return info_1.getProject;
|
|
116578
|
-
} });
|
|
116579
|
-
Object.defineProperty(exports, "getProjectType", { enumerable: true, get: function() {
|
|
116580
|
-
return info_1.getProjectType;
|
|
116581
|
-
} });
|
|
116582
|
-
var module_loader_1 = require_module_loader();
|
|
116583
|
-
Object.defineProperty(exports, "loadModuleFromProject", { enumerable: true, get: function() {
|
|
116584
|
-
return module_loader_1.loadModuleFromProject;
|
|
116585
|
-
} });
|
|
116586
|
-
var search_1 = require_search();
|
|
116587
|
-
Object.defineProperty(exports, "findAllApps", { enumerable: true, get: function() {
|
|
116588
|
-
return search_1.findAllApps;
|
|
116589
|
-
} });
|
|
116590
|
-
Object.defineProperty(exports, "findCapProjects", { enumerable: true, get: function() {
|
|
116591
|
-
return search_1.findCapProjects;
|
|
116592
|
-
} });
|
|
116593
|
-
Object.defineProperty(exports, "findFioriArtifacts", { enumerable: true, get: function() {
|
|
116594
|
-
return search_1.findFioriArtifacts;
|
|
116595
|
-
} });
|
|
116596
|
-
Object.defineProperty(exports, "findProjectRoot", { enumerable: true, get: function() {
|
|
116597
|
-
return search_1.findProjectRoot;
|
|
116598
|
-
} });
|
|
116599
|
-
Object.defineProperty(exports, "getAppRootFromWebappPath", { enumerable: true, get: function() {
|
|
116600
|
-
return search_1.getAppRootFromWebappPath;
|
|
116601
|
-
} });
|
|
116602
|
-
Object.defineProperty(exports, "findCapProjectRoot", { enumerable: true, get: function() {
|
|
116603
|
-
return search_1.findCapProjectRoot;
|
|
116604
|
-
} });
|
|
116605
|
-
Object.defineProperty(exports, "findRootsForPath", { enumerable: true, get: function() {
|
|
116606
|
-
return search_1.findRootsForPath;
|
|
116607
|
-
} });
|
|
116608
|
-
var ui5_config_1 = require_ui5_config();
|
|
116609
|
-
Object.defineProperty(exports, "getWebappPath", { enumerable: true, get: function() {
|
|
116610
|
-
return ui5_config_1.getWebappPath;
|
|
116611
|
-
} });
|
|
116612
|
-
Object.defineProperty(exports, "readUi5Yaml", { enumerable: true, get: function() {
|
|
116613
|
-
return ui5_config_1.readUi5Yaml;
|
|
116614
|
-
} });
|
|
116615
|
-
Object.defineProperty(exports, "getAllUi5YamlFileNames", { enumerable: true, get: function() {
|
|
116616
|
-
return ui5_config_1.getAllUi5YamlFileNames;
|
|
116617
|
-
} });
|
|
116618
|
-
Object.defineProperty(exports, "getMockServerConfig", { enumerable: true, get: function() {
|
|
116619
|
-
return ui5_config_1.getMockServerConfig;
|
|
116620
|
-
} });
|
|
116621
|
-
Object.defineProperty(exports, "getMockDataPath", { enumerable: true, get: function() {
|
|
116622
|
-
return ui5_config_1.getMockDataPath;
|
|
116623
|
-
} });
|
|
116624
|
-
Object.defineProperty(exports, "getPathMappings", { enumerable: true, get: function() {
|
|
116625
|
-
return ui5_config_1.getPathMappings;
|
|
116626
|
-
} });
|
|
116627
|
-
var mta_1 = require_mta();
|
|
116628
|
-
Object.defineProperty(exports, "getMtaPath", { enumerable: true, get: function() {
|
|
116629
|
-
return mta_1.getMtaPath;
|
|
116630
|
-
} });
|
|
116631
|
-
var access_1 = require_access();
|
|
116632
|
-
Object.defineProperty(exports, "createApplicationAccess", { enumerable: true, get: function() {
|
|
116633
|
-
return access_1.createApplicationAccess;
|
|
116634
|
-
} });
|
|
116635
|
-
Object.defineProperty(exports, "createProjectAccess", { enumerable: true, get: function() {
|
|
116636
|
-
return access_1.createProjectAccess;
|
|
116637
|
-
} });
|
|
116638
|
-
var script_1 = require_script();
|
|
116639
|
-
Object.defineProperty(exports, "updatePackageScript", { enumerable: true, get: function() {
|
|
116640
|
-
return script_1.updatePackageScript;
|
|
116641
|
-
} });
|
|
116642
|
-
Object.defineProperty(exports, "hasUI5CliV3", { enumerable: true, get: function() {
|
|
116643
|
-
return script_1.hasUI5CliV3;
|
|
116644
|
-
} });
|
|
116645
|
-
var specification_1 = require_specification();
|
|
116646
|
-
Object.defineProperty(exports, "getSpecification", { enumerable: true, get: function() {
|
|
116647
|
-
return specification_1.getSpecification;
|
|
116648
|
-
} });
|
|
116649
|
-
Object.defineProperty(exports, "getSpecificationModuleFromCache", { enumerable: true, get: function() {
|
|
116650
|
-
return specification_1.getSpecificationModuleFromCache;
|
|
116651
|
-
} });
|
|
116652
|
-
Object.defineProperty(exports, "getSpecificationPath", { enumerable: true, get: function() {
|
|
116653
|
-
return specification_1.getSpecificationPath;
|
|
116654
|
-
} });
|
|
116655
|
-
Object.defineProperty(exports, "refreshSpecificationDistTags", { enumerable: true, get: function() {
|
|
116656
|
-
return specification_1.refreshSpecificationDistTags;
|
|
116657
|
-
} });
|
|
116658
|
-
var flex_changes_1 = require_flex_changes();
|
|
116659
|
-
Object.defineProperty(exports, "readFlexChanges", { enumerable: true, get: function() {
|
|
116660
|
-
return flex_changes_1.readFlexChanges;
|
|
116661
|
-
} });
|
|
116662
|
-
}
|
|
116663
|
-
});
|
|
116664
|
-
|
|
116665
|
-
// ../../node_modules/@sap-ux/project-access/dist/types/access/index.js
|
|
116666
|
-
var require_access2 = __commonJS({
|
|
116667
|
-
"../../node_modules/@sap-ux/project-access/dist/types/access/index.js"(exports) {
|
|
116668
|
-
"use strict";
|
|
116669
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
116670
|
-
}
|
|
116671
|
-
});
|
|
116672
|
-
|
|
116673
|
-
// ../../node_modules/@sap-ux/project-access/dist/types/cap/index.js
|
|
116674
|
-
var require_cap4 = __commonJS({
|
|
116675
|
-
"../../node_modules/@sap-ux/project-access/dist/types/cap/index.js"(exports) {
|
|
116676
|
-
"use strict";
|
|
116677
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
116678
|
-
}
|
|
116679
|
-
});
|
|
116680
|
-
|
|
116681
|
-
// ../../node_modules/@sap-ux/project-access/dist/types/i18n/index.js
|
|
116682
|
-
var require_i18n3 = __commonJS({
|
|
116683
|
-
"../../node_modules/@sap-ux/project-access/dist/types/i18n/index.js"(exports) {
|
|
116684
|
-
"use strict";
|
|
116685
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
116686
|
-
}
|
|
116687
|
-
});
|
|
116688
|
-
|
|
116689
|
-
// ../../node_modules/@sap-ux/project-access/dist/types/find/index.js
|
|
116690
|
-
var require_find = __commonJS({
|
|
116691
|
-
"../../node_modules/@sap-ux/project-access/dist/types/find/index.js"(exports) {
|
|
116692
|
-
"use strict";
|
|
116693
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
116694
|
-
}
|
|
116695
|
-
});
|
|
116696
|
-
|
|
116697
|
-
// ../../node_modules/@sap-ux/project-access/dist/types/info/index.js
|
|
116698
|
-
var require_info2 = __commonJS({
|
|
116699
|
-
"../../node_modules/@sap-ux/project-access/dist/types/info/index.js"(exports) {
|
|
116700
|
-
"use strict";
|
|
116701
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
116702
|
-
}
|
|
116703
|
-
});
|
|
116704
|
-
|
|
116705
|
-
// ../../node_modules/@sap-ux/project-access/dist/types/library/index.js
|
|
116706
|
-
var require_library = __commonJS({
|
|
116707
|
-
"../../node_modules/@sap-ux/project-access/dist/types/library/index.js"(exports) {
|
|
116708
|
-
"use strict";
|
|
116709
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
116710
|
-
}
|
|
116711
|
-
});
|
|
116712
|
-
|
|
116713
|
-
// ../../node_modules/@sap-ux/project-access/dist/types/package/index.js
|
|
116714
|
-
var require_package7 = __commonJS({
|
|
116715
|
-
"../../node_modules/@sap-ux/project-access/dist/types/package/index.js"(exports) {
|
|
116716
|
-
"use strict";
|
|
116717
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
116718
|
-
}
|
|
116719
|
-
});
|
|
116720
|
-
|
|
116721
|
-
// ../../node_modules/@sap-ux/project-access/dist/types/vscode/index.js
|
|
116722
|
-
var require_vscode = __commonJS({
|
|
116723
|
-
"../../node_modules/@sap-ux/project-access/dist/types/vscode/index.js"(exports) {
|
|
116724
|
-
"use strict";
|
|
116725
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
116726
|
-
}
|
|
116727
|
-
});
|
|
116728
|
-
|
|
116729
|
-
// ../../node_modules/@sap-ux/project-access/dist/types/webapp/index.js
|
|
116730
|
-
var require_webapp = __commonJS({
|
|
116731
|
-
"../../node_modules/@sap-ux/project-access/dist/types/webapp/index.js"(exports) {
|
|
116732
|
-
"use strict";
|
|
116733
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
116734
|
-
}
|
|
116735
|
-
});
|
|
116736
|
-
|
|
116737
|
-
// ../../node_modules/@sap-ux/project-access/dist/types/index.js
|
|
116738
|
-
var require_types5 = __commonJS({
|
|
116739
|
-
"../../node_modules/@sap-ux/project-access/dist/types/index.js"(exports) {
|
|
116740
|
-
"use strict";
|
|
116741
|
-
var __createBinding2 = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
116742
|
-
if (k2 === void 0) k2 = k;
|
|
116743
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
116744
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
116745
|
-
desc = { enumerable: true, get: function() {
|
|
116746
|
-
return m[k];
|
|
116747
|
-
} };
|
|
116748
|
-
}
|
|
116749
|
-
Object.defineProperty(o, k2, desc);
|
|
116750
|
-
} : function(o, m, k, k2) {
|
|
116751
|
-
if (k2 === void 0) k2 = k;
|
|
116752
|
-
o[k2] = m[k];
|
|
116753
|
-
});
|
|
116754
|
-
var __exportStar2 = exports && exports.__exportStar || function(m, exports2) {
|
|
116755
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p)) __createBinding2(exports2, m, p);
|
|
116756
|
-
};
|
|
116757
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
116758
|
-
__exportStar2(require_access2(), exports);
|
|
116759
|
-
__exportStar2(require_cap4(), exports);
|
|
116760
|
-
__exportStar2(require_i18n3(), exports);
|
|
116761
|
-
__exportStar2(require_find(), exports);
|
|
116762
|
-
__exportStar2(require_info2(), exports);
|
|
116763
|
-
__exportStar2(require_library(), exports);
|
|
116764
|
-
__exportStar2(require_package7(), exports);
|
|
116765
|
-
__exportStar2(require_vscode(), exports);
|
|
116766
|
-
__exportStar2(require_webapp(), exports);
|
|
116767
|
-
}
|
|
116768
|
-
});
|
|
116769
|
-
|
|
116770
|
-
// ../../node_modules/@sap-ux/project-access/dist/library/constants.js
|
|
116771
|
-
var require_constants9 = __commonJS({
|
|
116772
|
-
"../../node_modules/@sap-ux/project-access/dist/library/constants.js"(exports) {
|
|
116773
|
-
"use strict";
|
|
116774
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
116775
|
-
exports.ui5Libs = void 0;
|
|
116776
|
-
exports.ui5Libs = [
|
|
116777
|
-
"sap.apf",
|
|
116778
|
-
"sap.base",
|
|
116779
|
-
"sap.chart",
|
|
116780
|
-
"sap.collaboration",
|
|
116781
|
-
"sap.f",
|
|
116782
|
-
"sap.fe",
|
|
116783
|
-
"sap.fileviewer",
|
|
116784
|
-
"sap.gantt",
|
|
116785
|
-
"sap.landvisz",
|
|
116786
|
-
"sap.m",
|
|
116787
|
-
"sap.ndc",
|
|
116788
|
-
"sap.ovp",
|
|
116789
|
-
"sap.rules",
|
|
116790
|
-
"sap.suite",
|
|
116791
|
-
"sap.tnt",
|
|
116792
|
-
"sap.ui",
|
|
116793
|
-
"sap.uiext",
|
|
116794
|
-
"sap.ushell",
|
|
116795
|
-
"sap.uxap",
|
|
116796
|
-
"sap.viz",
|
|
116797
|
-
"sap.webanalytics",
|
|
116798
|
-
"sap.zen"
|
|
116799
|
-
];
|
|
116800
|
-
}
|
|
116801
|
-
});
|
|
116802
|
-
|
|
116803
116857
|
// ../../node_modules/fast-xml-parser/lib/fxp.cjs
|
|
116804
116858
|
var require_fxp = __commonJS({
|
|
116805
116859
|
"../../node_modules/fast-xml-parser/lib/fxp.cjs"(exports, module) {
|
|
@@ -118095,6 +118149,402 @@ var require_fxp = __commonJS({
|
|
|
118095
118149
|
}
|
|
118096
118150
|
});
|
|
118097
118151
|
|
|
118152
|
+
// ../../node_modules/@sap-ux/project-access/dist/project/ui5-xml-id-validator.js
|
|
118153
|
+
var require_ui5_xml_id_validator = __commonJS({
|
|
118154
|
+
"../../node_modules/@sap-ux/project-access/dist/project/ui5-xml-id-validator.js"(exports) {
|
|
118155
|
+
"use strict";
|
|
118156
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
118157
|
+
exports.isUI5IdUnique = isUI5IdUnique;
|
|
118158
|
+
var fast_xml_parser_1 = require_fxp();
|
|
118159
|
+
function hasElementWithId(obj, id, attrPrefix = "@_") {
|
|
118160
|
+
if (typeof obj !== "object" || obj === null) {
|
|
118161
|
+
return false;
|
|
118162
|
+
}
|
|
118163
|
+
const objRecord = obj;
|
|
118164
|
+
const idAttr = `${attrPrefix}id`;
|
|
118165
|
+
if (objRecord[idAttr] === id) {
|
|
118166
|
+
return true;
|
|
118167
|
+
}
|
|
118168
|
+
for (const key in objRecord) {
|
|
118169
|
+
if (key.startsWith(attrPrefix)) {
|
|
118170
|
+
continue;
|
|
118171
|
+
}
|
|
118172
|
+
if (checkIdInValue(objRecord[key], id, attrPrefix)) {
|
|
118173
|
+
return true;
|
|
118174
|
+
}
|
|
118175
|
+
}
|
|
118176
|
+
return false;
|
|
118177
|
+
}
|
|
118178
|
+
function checkIdInValue(value, id, attrPrefix) {
|
|
118179
|
+
if (Array.isArray(value)) {
|
|
118180
|
+
return value.some((item) => hasElementWithId(item, id, attrPrefix));
|
|
118181
|
+
}
|
|
118182
|
+
if (typeof value === "object" && value !== null) {
|
|
118183
|
+
return hasElementWithId(value, id, attrPrefix);
|
|
118184
|
+
}
|
|
118185
|
+
return false;
|
|
118186
|
+
}
|
|
118187
|
+
function checkElementIdAvailable(id, xmlContent) {
|
|
118188
|
+
const parser = new fast_xml_parser_1.XMLParser({
|
|
118189
|
+
ignoreAttributes: false,
|
|
118190
|
+
attributeNamePrefix: "@_",
|
|
118191
|
+
parseAttributeValue: false
|
|
118192
|
+
});
|
|
118193
|
+
try {
|
|
118194
|
+
const xmlDocument = parser.parse(xmlContent);
|
|
118195
|
+
return xmlDocument ? !hasElementWithId(xmlDocument, id) : true;
|
|
118196
|
+
} catch {
|
|
118197
|
+
return true;
|
|
118198
|
+
}
|
|
118199
|
+
}
|
|
118200
|
+
function isUI5IdUnique(id, files) {
|
|
118201
|
+
return files.every((content) => content === "" || checkElementIdAvailable(id, content));
|
|
118202
|
+
}
|
|
118203
|
+
}
|
|
118204
|
+
});
|
|
118205
|
+
|
|
118206
|
+
// ../../node_modules/@sap-ux/project-access/dist/project/index.js
|
|
118207
|
+
var require_project = __commonJS({
|
|
118208
|
+
"../../node_modules/@sap-ux/project-access/dist/project/index.js"(exports) {
|
|
118209
|
+
"use strict";
|
|
118210
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
118211
|
+
exports.getMtaPath = exports.getPathMappings = exports.getMockDataPath = exports.getMockServerConfig = exports.getAllUi5YamlFileNames = exports.readUi5Yaml = exports.getWebappPath = exports.findRootsForPath = exports.findCapProjectRoot = exports.getAppRootFromWebappPath = exports.findProjectRoot = exports.findFioriArtifacts = exports.findCapProjects = exports.findAllApps = exports.loadModuleFromProject = exports.getProjectType = exports.getProject = exports.getMinimumUI5Version = exports.getMinUI5VersionAsArray = exports.getMinUI5VersionFromManifest = exports.getAppType = exports.getAppProgrammingLanguage = exports.getI18nBundles = exports.getI18nPropertiesPaths = exports.getCapI18nFolderNames = exports.hasDependency = exports.getNodeModulesPath = exports.addPackageDevDependency = exports.getMainService = exports.filterDataSourcesByType = exports.getGlobalCdsHomePath = exports.processServices = exports.checkCdsUi5PluginEnabled = exports.hasMinCdsVersion = exports.getWorkspaceInfo = exports.toReferenceUri = exports.readCapServiceMetadataEdmx = exports.isCapNodeJsProject = exports.isCapJavaProject = exports.isCapProject = exports.getCdsServices = exports.getCdsRoots = exports.getCdsFiles = exports.getCapServiceName = exports.getCapProjectType = exports.getCapModelAndServices = exports.getCapEnvironment = exports.getCapCustomPaths = exports.deleteCapApp = exports.clearCdsModuleCache = void 0;
|
|
118212
|
+
exports.isUI5IdUnique = exports.readFlexChanges = exports.refreshSpecificationDistTags = exports.getSpecificationPath = exports.getSpecificationModuleFromCache = exports.getSpecification = exports.hasUI5CliV3 = exports.updatePackageScript = exports.createProjectAccess = exports.createApplicationAccess = void 0;
|
|
118213
|
+
var cap_1 = require_cap();
|
|
118214
|
+
Object.defineProperty(exports, "clearCdsModuleCache", { enumerable: true, get: function() {
|
|
118215
|
+
return cap_1.clearCdsModuleCache;
|
|
118216
|
+
} });
|
|
118217
|
+
Object.defineProperty(exports, "deleteCapApp", { enumerable: true, get: function() {
|
|
118218
|
+
return cap_1.deleteCapApp;
|
|
118219
|
+
} });
|
|
118220
|
+
Object.defineProperty(exports, "getCapCustomPaths", { enumerable: true, get: function() {
|
|
118221
|
+
return cap_1.getCapCustomPaths;
|
|
118222
|
+
} });
|
|
118223
|
+
Object.defineProperty(exports, "getCapEnvironment", { enumerable: true, get: function() {
|
|
118224
|
+
return cap_1.getCapEnvironment;
|
|
118225
|
+
} });
|
|
118226
|
+
Object.defineProperty(exports, "getCapModelAndServices", { enumerable: true, get: function() {
|
|
118227
|
+
return cap_1.getCapModelAndServices;
|
|
118228
|
+
} });
|
|
118229
|
+
Object.defineProperty(exports, "getCapProjectType", { enumerable: true, get: function() {
|
|
118230
|
+
return cap_1.getCapProjectType;
|
|
118231
|
+
} });
|
|
118232
|
+
Object.defineProperty(exports, "getCapServiceName", { enumerable: true, get: function() {
|
|
118233
|
+
return cap_1.getCapServiceName;
|
|
118234
|
+
} });
|
|
118235
|
+
Object.defineProperty(exports, "getCdsFiles", { enumerable: true, get: function() {
|
|
118236
|
+
return cap_1.getCdsFiles;
|
|
118237
|
+
} });
|
|
118238
|
+
Object.defineProperty(exports, "getCdsRoots", { enumerable: true, get: function() {
|
|
118239
|
+
return cap_1.getCdsRoots;
|
|
118240
|
+
} });
|
|
118241
|
+
Object.defineProperty(exports, "getCdsServices", { enumerable: true, get: function() {
|
|
118242
|
+
return cap_1.getCdsServices;
|
|
118243
|
+
} });
|
|
118244
|
+
Object.defineProperty(exports, "isCapProject", { enumerable: true, get: function() {
|
|
118245
|
+
return cap_1.isCapProject;
|
|
118246
|
+
} });
|
|
118247
|
+
Object.defineProperty(exports, "isCapJavaProject", { enumerable: true, get: function() {
|
|
118248
|
+
return cap_1.isCapJavaProject;
|
|
118249
|
+
} });
|
|
118250
|
+
Object.defineProperty(exports, "isCapNodeJsProject", { enumerable: true, get: function() {
|
|
118251
|
+
return cap_1.isCapNodeJsProject;
|
|
118252
|
+
} });
|
|
118253
|
+
Object.defineProperty(exports, "readCapServiceMetadataEdmx", { enumerable: true, get: function() {
|
|
118254
|
+
return cap_1.readCapServiceMetadataEdmx;
|
|
118255
|
+
} });
|
|
118256
|
+
Object.defineProperty(exports, "toReferenceUri", { enumerable: true, get: function() {
|
|
118257
|
+
return cap_1.toReferenceUri;
|
|
118258
|
+
} });
|
|
118259
|
+
Object.defineProperty(exports, "getWorkspaceInfo", { enumerable: true, get: function() {
|
|
118260
|
+
return cap_1.getWorkspaceInfo;
|
|
118261
|
+
} });
|
|
118262
|
+
Object.defineProperty(exports, "hasMinCdsVersion", { enumerable: true, get: function() {
|
|
118263
|
+
return cap_1.hasMinCdsVersion;
|
|
118264
|
+
} });
|
|
118265
|
+
Object.defineProperty(exports, "checkCdsUi5PluginEnabled", { enumerable: true, get: function() {
|
|
118266
|
+
return cap_1.checkCdsUi5PluginEnabled;
|
|
118267
|
+
} });
|
|
118268
|
+
Object.defineProperty(exports, "processServices", { enumerable: true, get: function() {
|
|
118269
|
+
return cap_1.processServices;
|
|
118270
|
+
} });
|
|
118271
|
+
Object.defineProperty(exports, "getGlobalCdsHomePath", { enumerable: true, get: function() {
|
|
118272
|
+
return cap_1.getGlobalCdsHomePath;
|
|
118273
|
+
} });
|
|
118274
|
+
var service_1 = require_service();
|
|
118275
|
+
Object.defineProperty(exports, "filterDataSourcesByType", { enumerable: true, get: function() {
|
|
118276
|
+
return service_1.filterDataSourcesByType;
|
|
118277
|
+
} });
|
|
118278
|
+
Object.defineProperty(exports, "getMainService", { enumerable: true, get: function() {
|
|
118279
|
+
return service_1.getMainService;
|
|
118280
|
+
} });
|
|
118281
|
+
var dependencies_1 = require_dependencies2();
|
|
118282
|
+
Object.defineProperty(exports, "addPackageDevDependency", { enumerable: true, get: function() {
|
|
118283
|
+
return dependencies_1.addPackageDevDependency;
|
|
118284
|
+
} });
|
|
118285
|
+
Object.defineProperty(exports, "getNodeModulesPath", { enumerable: true, get: function() {
|
|
118286
|
+
return dependencies_1.getNodeModulesPath;
|
|
118287
|
+
} });
|
|
118288
|
+
Object.defineProperty(exports, "hasDependency", { enumerable: true, get: function() {
|
|
118289
|
+
return dependencies_1.hasDependency;
|
|
118290
|
+
} });
|
|
118291
|
+
var i18n_1 = require_i18n2();
|
|
118292
|
+
Object.defineProperty(exports, "getCapI18nFolderNames", { enumerable: true, get: function() {
|
|
118293
|
+
return i18n_1.getCapI18nFolderNames;
|
|
118294
|
+
} });
|
|
118295
|
+
Object.defineProperty(exports, "getI18nPropertiesPaths", { enumerable: true, get: function() {
|
|
118296
|
+
return i18n_1.getI18nPropertiesPaths;
|
|
118297
|
+
} });
|
|
118298
|
+
Object.defineProperty(exports, "getI18nBundles", { enumerable: true, get: function() {
|
|
118299
|
+
return i18n_1.getI18nBundles;
|
|
118300
|
+
} });
|
|
118301
|
+
var info_1 = require_info();
|
|
118302
|
+
Object.defineProperty(exports, "getAppProgrammingLanguage", { enumerable: true, get: function() {
|
|
118303
|
+
return info_1.getAppProgrammingLanguage;
|
|
118304
|
+
} });
|
|
118305
|
+
Object.defineProperty(exports, "getAppType", { enumerable: true, get: function() {
|
|
118306
|
+
return info_1.getAppType;
|
|
118307
|
+
} });
|
|
118308
|
+
Object.defineProperty(exports, "getMinUI5VersionFromManifest", { enumerable: true, get: function() {
|
|
118309
|
+
return info_1.getMinUI5VersionFromManifest;
|
|
118310
|
+
} });
|
|
118311
|
+
Object.defineProperty(exports, "getMinUI5VersionAsArray", { enumerable: true, get: function() {
|
|
118312
|
+
return info_1.getMinUI5VersionAsArray;
|
|
118313
|
+
} });
|
|
118314
|
+
Object.defineProperty(exports, "getMinimumUI5Version", { enumerable: true, get: function() {
|
|
118315
|
+
return info_1.getMinimumUI5Version;
|
|
118316
|
+
} });
|
|
118317
|
+
Object.defineProperty(exports, "getProject", { enumerable: true, get: function() {
|
|
118318
|
+
return info_1.getProject;
|
|
118319
|
+
} });
|
|
118320
|
+
Object.defineProperty(exports, "getProjectType", { enumerable: true, get: function() {
|
|
118321
|
+
return info_1.getProjectType;
|
|
118322
|
+
} });
|
|
118323
|
+
var module_loader_1 = require_module_loader();
|
|
118324
|
+
Object.defineProperty(exports, "loadModuleFromProject", { enumerable: true, get: function() {
|
|
118325
|
+
return module_loader_1.loadModuleFromProject;
|
|
118326
|
+
} });
|
|
118327
|
+
var search_1 = require_search();
|
|
118328
|
+
Object.defineProperty(exports, "findAllApps", { enumerable: true, get: function() {
|
|
118329
|
+
return search_1.findAllApps;
|
|
118330
|
+
} });
|
|
118331
|
+
Object.defineProperty(exports, "findCapProjects", { enumerable: true, get: function() {
|
|
118332
|
+
return search_1.findCapProjects;
|
|
118333
|
+
} });
|
|
118334
|
+
Object.defineProperty(exports, "findFioriArtifacts", { enumerable: true, get: function() {
|
|
118335
|
+
return search_1.findFioriArtifacts;
|
|
118336
|
+
} });
|
|
118337
|
+
Object.defineProperty(exports, "findProjectRoot", { enumerable: true, get: function() {
|
|
118338
|
+
return search_1.findProjectRoot;
|
|
118339
|
+
} });
|
|
118340
|
+
Object.defineProperty(exports, "getAppRootFromWebappPath", { enumerable: true, get: function() {
|
|
118341
|
+
return search_1.getAppRootFromWebappPath;
|
|
118342
|
+
} });
|
|
118343
|
+
Object.defineProperty(exports, "findCapProjectRoot", { enumerable: true, get: function() {
|
|
118344
|
+
return search_1.findCapProjectRoot;
|
|
118345
|
+
} });
|
|
118346
|
+
Object.defineProperty(exports, "findRootsForPath", { enumerable: true, get: function() {
|
|
118347
|
+
return search_1.findRootsForPath;
|
|
118348
|
+
} });
|
|
118349
|
+
var ui5_config_1 = require_ui5_config();
|
|
118350
|
+
Object.defineProperty(exports, "getWebappPath", { enumerable: true, get: function() {
|
|
118351
|
+
return ui5_config_1.getWebappPath;
|
|
118352
|
+
} });
|
|
118353
|
+
Object.defineProperty(exports, "readUi5Yaml", { enumerable: true, get: function() {
|
|
118354
|
+
return ui5_config_1.readUi5Yaml;
|
|
118355
|
+
} });
|
|
118356
|
+
Object.defineProperty(exports, "getAllUi5YamlFileNames", { enumerable: true, get: function() {
|
|
118357
|
+
return ui5_config_1.getAllUi5YamlFileNames;
|
|
118358
|
+
} });
|
|
118359
|
+
Object.defineProperty(exports, "getMockServerConfig", { enumerable: true, get: function() {
|
|
118360
|
+
return ui5_config_1.getMockServerConfig;
|
|
118361
|
+
} });
|
|
118362
|
+
Object.defineProperty(exports, "getMockDataPath", { enumerable: true, get: function() {
|
|
118363
|
+
return ui5_config_1.getMockDataPath;
|
|
118364
|
+
} });
|
|
118365
|
+
Object.defineProperty(exports, "getPathMappings", { enumerable: true, get: function() {
|
|
118366
|
+
return ui5_config_1.getPathMappings;
|
|
118367
|
+
} });
|
|
118368
|
+
var mta_1 = require_mta();
|
|
118369
|
+
Object.defineProperty(exports, "getMtaPath", { enumerable: true, get: function() {
|
|
118370
|
+
return mta_1.getMtaPath;
|
|
118371
|
+
} });
|
|
118372
|
+
var access_1 = require_access();
|
|
118373
|
+
Object.defineProperty(exports, "createApplicationAccess", { enumerable: true, get: function() {
|
|
118374
|
+
return access_1.createApplicationAccess;
|
|
118375
|
+
} });
|
|
118376
|
+
Object.defineProperty(exports, "createProjectAccess", { enumerable: true, get: function() {
|
|
118377
|
+
return access_1.createProjectAccess;
|
|
118378
|
+
} });
|
|
118379
|
+
var script_1 = require_script();
|
|
118380
|
+
Object.defineProperty(exports, "updatePackageScript", { enumerable: true, get: function() {
|
|
118381
|
+
return script_1.updatePackageScript;
|
|
118382
|
+
} });
|
|
118383
|
+
Object.defineProperty(exports, "hasUI5CliV3", { enumerable: true, get: function() {
|
|
118384
|
+
return script_1.hasUI5CliV3;
|
|
118385
|
+
} });
|
|
118386
|
+
var specification_1 = require_specification();
|
|
118387
|
+
Object.defineProperty(exports, "getSpecification", { enumerable: true, get: function() {
|
|
118388
|
+
return specification_1.getSpecification;
|
|
118389
|
+
} });
|
|
118390
|
+
Object.defineProperty(exports, "getSpecificationModuleFromCache", { enumerable: true, get: function() {
|
|
118391
|
+
return specification_1.getSpecificationModuleFromCache;
|
|
118392
|
+
} });
|
|
118393
|
+
Object.defineProperty(exports, "getSpecificationPath", { enumerable: true, get: function() {
|
|
118394
|
+
return specification_1.getSpecificationPath;
|
|
118395
|
+
} });
|
|
118396
|
+
Object.defineProperty(exports, "refreshSpecificationDistTags", { enumerable: true, get: function() {
|
|
118397
|
+
return specification_1.refreshSpecificationDistTags;
|
|
118398
|
+
} });
|
|
118399
|
+
var flex_changes_1 = require_flex_changes();
|
|
118400
|
+
Object.defineProperty(exports, "readFlexChanges", { enumerable: true, get: function() {
|
|
118401
|
+
return flex_changes_1.readFlexChanges;
|
|
118402
|
+
} });
|
|
118403
|
+
var ui5_xml_id_validator_1 = require_ui5_xml_id_validator();
|
|
118404
|
+
Object.defineProperty(exports, "isUI5IdUnique", { enumerable: true, get: function() {
|
|
118405
|
+
return ui5_xml_id_validator_1.isUI5IdUnique;
|
|
118406
|
+
} });
|
|
118407
|
+
}
|
|
118408
|
+
});
|
|
118409
|
+
|
|
118410
|
+
// ../../node_modules/@sap-ux/project-access/dist/types/access/index.js
|
|
118411
|
+
var require_access2 = __commonJS({
|
|
118412
|
+
"../../node_modules/@sap-ux/project-access/dist/types/access/index.js"(exports) {
|
|
118413
|
+
"use strict";
|
|
118414
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
118415
|
+
}
|
|
118416
|
+
});
|
|
118417
|
+
|
|
118418
|
+
// ../../node_modules/@sap-ux/project-access/dist/types/cap/index.js
|
|
118419
|
+
var require_cap4 = __commonJS({
|
|
118420
|
+
"../../node_modules/@sap-ux/project-access/dist/types/cap/index.js"(exports) {
|
|
118421
|
+
"use strict";
|
|
118422
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
118423
|
+
}
|
|
118424
|
+
});
|
|
118425
|
+
|
|
118426
|
+
// ../../node_modules/@sap-ux/project-access/dist/types/i18n/index.js
|
|
118427
|
+
var require_i18n3 = __commonJS({
|
|
118428
|
+
"../../node_modules/@sap-ux/project-access/dist/types/i18n/index.js"(exports) {
|
|
118429
|
+
"use strict";
|
|
118430
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
118431
|
+
}
|
|
118432
|
+
});
|
|
118433
|
+
|
|
118434
|
+
// ../../node_modules/@sap-ux/project-access/dist/types/find/index.js
|
|
118435
|
+
var require_find = __commonJS({
|
|
118436
|
+
"../../node_modules/@sap-ux/project-access/dist/types/find/index.js"(exports) {
|
|
118437
|
+
"use strict";
|
|
118438
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
118439
|
+
}
|
|
118440
|
+
});
|
|
118441
|
+
|
|
118442
|
+
// ../../node_modules/@sap-ux/project-access/dist/types/info/index.js
|
|
118443
|
+
var require_info2 = __commonJS({
|
|
118444
|
+
"../../node_modules/@sap-ux/project-access/dist/types/info/index.js"(exports) {
|
|
118445
|
+
"use strict";
|
|
118446
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
118447
|
+
}
|
|
118448
|
+
});
|
|
118449
|
+
|
|
118450
|
+
// ../../node_modules/@sap-ux/project-access/dist/types/library/index.js
|
|
118451
|
+
var require_library = __commonJS({
|
|
118452
|
+
"../../node_modules/@sap-ux/project-access/dist/types/library/index.js"(exports) {
|
|
118453
|
+
"use strict";
|
|
118454
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
118455
|
+
}
|
|
118456
|
+
});
|
|
118457
|
+
|
|
118458
|
+
// ../../node_modules/@sap-ux/project-access/dist/types/package/index.js
|
|
118459
|
+
var require_package7 = __commonJS({
|
|
118460
|
+
"../../node_modules/@sap-ux/project-access/dist/types/package/index.js"(exports) {
|
|
118461
|
+
"use strict";
|
|
118462
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
118463
|
+
}
|
|
118464
|
+
});
|
|
118465
|
+
|
|
118466
|
+
// ../../node_modules/@sap-ux/project-access/dist/types/vscode/index.js
|
|
118467
|
+
var require_vscode = __commonJS({
|
|
118468
|
+
"../../node_modules/@sap-ux/project-access/dist/types/vscode/index.js"(exports) {
|
|
118469
|
+
"use strict";
|
|
118470
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
118471
|
+
}
|
|
118472
|
+
});
|
|
118473
|
+
|
|
118474
|
+
// ../../node_modules/@sap-ux/project-access/dist/types/webapp/index.js
|
|
118475
|
+
var require_webapp = __commonJS({
|
|
118476
|
+
"../../node_modules/@sap-ux/project-access/dist/types/webapp/index.js"(exports) {
|
|
118477
|
+
"use strict";
|
|
118478
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
118479
|
+
}
|
|
118480
|
+
});
|
|
118481
|
+
|
|
118482
|
+
// ../../node_modules/@sap-ux/project-access/dist/types/index.js
|
|
118483
|
+
var require_types5 = __commonJS({
|
|
118484
|
+
"../../node_modules/@sap-ux/project-access/dist/types/index.js"(exports) {
|
|
118485
|
+
"use strict";
|
|
118486
|
+
var __createBinding2 = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
118487
|
+
if (k2 === void 0) k2 = k;
|
|
118488
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
118489
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
118490
|
+
desc = { enumerable: true, get: function() {
|
|
118491
|
+
return m[k];
|
|
118492
|
+
} };
|
|
118493
|
+
}
|
|
118494
|
+
Object.defineProperty(o, k2, desc);
|
|
118495
|
+
} : function(o, m, k, k2) {
|
|
118496
|
+
if (k2 === void 0) k2 = k;
|
|
118497
|
+
o[k2] = m[k];
|
|
118498
|
+
});
|
|
118499
|
+
var __exportStar2 = exports && exports.__exportStar || function(m, exports2) {
|
|
118500
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p)) __createBinding2(exports2, m, p);
|
|
118501
|
+
};
|
|
118502
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
118503
|
+
__exportStar2(require_access2(), exports);
|
|
118504
|
+
__exportStar2(require_cap4(), exports);
|
|
118505
|
+
__exportStar2(require_i18n3(), exports);
|
|
118506
|
+
__exportStar2(require_find(), exports);
|
|
118507
|
+
__exportStar2(require_info2(), exports);
|
|
118508
|
+
__exportStar2(require_library(), exports);
|
|
118509
|
+
__exportStar2(require_package7(), exports);
|
|
118510
|
+
__exportStar2(require_vscode(), exports);
|
|
118511
|
+
__exportStar2(require_webapp(), exports);
|
|
118512
|
+
}
|
|
118513
|
+
});
|
|
118514
|
+
|
|
118515
|
+
// ../../node_modules/@sap-ux/project-access/dist/library/constants.js
|
|
118516
|
+
var require_constants9 = __commonJS({
|
|
118517
|
+
"../../node_modules/@sap-ux/project-access/dist/library/constants.js"(exports) {
|
|
118518
|
+
"use strict";
|
|
118519
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
118520
|
+
exports.ui5Libs = void 0;
|
|
118521
|
+
exports.ui5Libs = [
|
|
118522
|
+
"sap.apf",
|
|
118523
|
+
"sap.base",
|
|
118524
|
+
"sap.chart",
|
|
118525
|
+
"sap.collaboration",
|
|
118526
|
+
"sap.f",
|
|
118527
|
+
"sap.fe",
|
|
118528
|
+
"sap.fileviewer",
|
|
118529
|
+
"sap.gantt",
|
|
118530
|
+
"sap.landvisz",
|
|
118531
|
+
"sap.m",
|
|
118532
|
+
"sap.ndc",
|
|
118533
|
+
"sap.ovp",
|
|
118534
|
+
"sap.rules",
|
|
118535
|
+
"sap.suite",
|
|
118536
|
+
"sap.tnt",
|
|
118537
|
+
"sap.ui",
|
|
118538
|
+
"sap.uiext",
|
|
118539
|
+
"sap.ushell",
|
|
118540
|
+
"sap.uxap",
|
|
118541
|
+
"sap.viz",
|
|
118542
|
+
"sap.webanalytics",
|
|
118543
|
+
"sap.zen"
|
|
118544
|
+
];
|
|
118545
|
+
}
|
|
118546
|
+
});
|
|
118547
|
+
|
|
118098
118548
|
// ../../node_modules/@sap-ux/project-access/dist/library/helpers.js
|
|
118099
118549
|
var require_helpers3 = __commonJS({
|
|
118100
118550
|
"../../node_modules/@sap-ux/project-access/dist/library/helpers.js"(exports) {
|
|
@@ -118386,8 +118836,8 @@ var require_dist11 = __commonJS({
|
|
|
118386
118836
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p)) __createBinding2(exports2, m, p);
|
|
118387
118837
|
};
|
|
118388
118838
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
118389
|
-
exports.
|
|
118390
|
-
exports.hasDependency = exports.getTableCapabilitiesByEntitySet = exports.findRecursiveHierarchyKey = exports.execNpmCommand = exports.getGlobalCdsHomePath = exports.getMainService = exports.processServices = exports.readFlexChanges = exports.checkCdsUi5PluginEnabled = exports.hasMinCdsVersion = exports.getWorkspaceInfo = exports.updatePackageScript = exports.toReferenceUri = exports.refreshSpecificationDistTags = exports.readUi5Yaml = exports.readCapServiceMetadataEdmx = exports.loadModuleFromProject = exports.isCapNodeJsProject = exports.isCapJavaProject = exports.isCapProject = void 0;
|
|
118839
|
+
exports.getWebappPath = exports.getProjectType = exports.getProject = exports.getPathMappings = exports.getNodeModulesPath = exports.getMockDataPath = exports.getMockServerConfig = exports.getMtaPath = exports.getMinimumUI5Version = exports.getMinUI5VersionAsArray = exports.getMinUI5VersionFromManifest = exports.getI18nBundles = exports.getI18nPropertiesPaths = exports.getSpecificationPath = exports.getSpecificationModuleFromCache = exports.getSpecification = exports.getCapI18nFolderNames = exports.getCdsServices = exports.getCdsRoots = exports.getCdsFiles = exports.getCapProjectType = exports.getCapServiceName = exports.getCapModelAndServices = exports.getCapEnvironment = exports.getCapCustomPaths = exports.getAppType = exports.getAppProgrammingLanguage = exports.getAppRootFromWebappPath = exports.getAllUi5YamlFileNames = exports.findRootsForPath = exports.findProjectRoot = exports.findFioriArtifacts = exports.findCapProjects = exports.findCapProjectRoot = exports.findAllApps = exports.filterDataSourcesByType = exports.deleteCapApp = exports.createProjectAccess = exports.createApplicationAccess = exports.clearCdsModuleCache = exports.addPackageDevDependency = exports.normalizePath = exports.findFilesByExtension = exports.getFilePaths = exports.fioriToolsDirectory = exports.MinCdsVersion = exports.MinCdsPluginUi5Version = exports.FioriToolsSettings = exports.DirName = exports.FileName = void 0;
|
|
118840
|
+
exports.hasDependency = exports.getTableCapabilitiesByEntitySet = exports.findRecursiveHierarchyKey = exports.getReuseLibs = exports.checkDependencies = exports.execNpmCommand = exports.isUI5IdUnique = exports.getGlobalCdsHomePath = exports.getMainService = exports.processServices = exports.readFlexChanges = exports.checkCdsUi5PluginEnabled = exports.hasMinCdsVersion = exports.getWorkspaceInfo = exports.updatePackageScript = exports.toReferenceUri = exports.refreshSpecificationDistTags = exports.readUi5Yaml = exports.readCapServiceMetadataEdmx = exports.loadModuleFromProject = exports.isCapNodeJsProject = exports.isCapJavaProject = exports.isCapProject = exports.hasUI5CliV3 = void 0;
|
|
118391
118841
|
var constants_1 = require_constants8();
|
|
118392
118842
|
Object.defineProperty(exports, "FileName", { enumerable: true, get: function() {
|
|
118393
118843
|
return constants_1.FileName;
|
|
@@ -118411,6 +118861,9 @@ var require_dist11 = __commonJS({
|
|
|
118411
118861
|
Object.defineProperty(exports, "getFilePaths", { enumerable: true, get: function() {
|
|
118412
118862
|
return file_1.getFilePaths;
|
|
118413
118863
|
} });
|
|
118864
|
+
Object.defineProperty(exports, "findFilesByExtension", { enumerable: true, get: function() {
|
|
118865
|
+
return file_1.findFilesByExtension;
|
|
118866
|
+
} });
|
|
118414
118867
|
var path_1 = require_path2();
|
|
118415
118868
|
Object.defineProperty(exports, "normalizePath", { enumerable: true, get: function() {
|
|
118416
118869
|
return path_1.normalizePath;
|
|
@@ -118590,12 +119043,21 @@ var require_dist11 = __commonJS({
|
|
|
118590
119043
|
Object.defineProperty(exports, "getGlobalCdsHomePath", { enumerable: true, get: function() {
|
|
118591
119044
|
return project_1.getGlobalCdsHomePath;
|
|
118592
119045
|
} });
|
|
119046
|
+
Object.defineProperty(exports, "isUI5IdUnique", { enumerable: true, get: function() {
|
|
119047
|
+
return project_1.isUI5IdUnique;
|
|
119048
|
+
} });
|
|
118593
119049
|
var npm_command_1 = require_npm_command();
|
|
118594
119050
|
Object.defineProperty(exports, "execNpmCommand", { enumerable: true, get: function() {
|
|
118595
119051
|
return npm_command_1.execNpmCommand;
|
|
118596
119052
|
} });
|
|
118597
119053
|
__exportStar2(require_types5(), exports);
|
|
118598
|
-
|
|
119054
|
+
var library_1 = require_library2();
|
|
119055
|
+
Object.defineProperty(exports, "checkDependencies", { enumerable: true, get: function() {
|
|
119056
|
+
return library_1.checkDependencies;
|
|
119057
|
+
} });
|
|
119058
|
+
Object.defineProperty(exports, "getReuseLibs", { enumerable: true, get: function() {
|
|
119059
|
+
return library_1.getReuseLibs;
|
|
119060
|
+
} });
|
|
118599
119061
|
var odata_1 = require_odata();
|
|
118600
119062
|
Object.defineProperty(exports, "findRecursiveHierarchyKey", { enumerable: true, get: function() {
|
|
118601
119063
|
return odata_1.findRecursiveHierarchyKey;
|
|
@@ -139367,14 +139829,14 @@ var require_templates2 = __commonJS({
|
|
|
139367
139829
|
}
|
|
139368
139830
|
return results;
|
|
139369
139831
|
}
|
|
139370
|
-
function buildStyle(
|
|
139832
|
+
function buildStyle(chalk, styles) {
|
|
139371
139833
|
const enabled2 = {};
|
|
139372
139834
|
for (const layer of styles) {
|
|
139373
139835
|
for (const style of layer.styles) {
|
|
139374
139836
|
enabled2[style[0]] = layer.inverse ? null : style.slice(1);
|
|
139375
139837
|
}
|
|
139376
139838
|
}
|
|
139377
|
-
let current =
|
|
139839
|
+
let current = chalk;
|
|
139378
139840
|
for (const [styleName, styles2] of Object.entries(enabled2)) {
|
|
139379
139841
|
if (!Array.isArray(styles2)) {
|
|
139380
139842
|
continue;
|
|
@@ -139386,7 +139848,7 @@ var require_templates2 = __commonJS({
|
|
|
139386
139848
|
}
|
|
139387
139849
|
return current;
|
|
139388
139850
|
}
|
|
139389
|
-
module.exports = (
|
|
139851
|
+
module.exports = (chalk, temporary) => {
|
|
139390
139852
|
const styles = [];
|
|
139391
139853
|
const chunks = [];
|
|
139392
139854
|
let chunk = [];
|
|
@@ -139396,13 +139858,13 @@ var require_templates2 = __commonJS({
|
|
|
139396
139858
|
} else if (style) {
|
|
139397
139859
|
const string = chunk.join("");
|
|
139398
139860
|
chunk = [];
|
|
139399
|
-
chunks.push(styles.length === 0 ? string : buildStyle(
|
|
139861
|
+
chunks.push(styles.length === 0 ? string : buildStyle(chalk, styles)(string));
|
|
139400
139862
|
styles.push({ inverse, styles: parseStyle(style) });
|
|
139401
139863
|
} else if (close) {
|
|
139402
139864
|
if (styles.length === 0) {
|
|
139403
139865
|
throw new Error("Found extraneous } in Chalk template literal");
|
|
139404
139866
|
}
|
|
139405
|
-
chunks.push(buildStyle(
|
|
139867
|
+
chunks.push(buildStyle(chalk, styles)(chunk.join("")));
|
|
139406
139868
|
chunk = [];
|
|
139407
139869
|
styles.pop();
|
|
139408
139870
|
} else {
|
|
@@ -139450,16 +139912,16 @@ var require_source = __commonJS({
|
|
|
139450
139912
|
}
|
|
139451
139913
|
};
|
|
139452
139914
|
var chalkFactory = (options) => {
|
|
139453
|
-
const
|
|
139454
|
-
applyOptions(
|
|
139455
|
-
|
|
139456
|
-
Object.setPrototypeOf(
|
|
139457
|
-
Object.setPrototypeOf(
|
|
139458
|
-
|
|
139915
|
+
const chalk2 = {};
|
|
139916
|
+
applyOptions(chalk2, options);
|
|
139917
|
+
chalk2.template = (...arguments_) => chalkTag(chalk2.template, ...arguments_);
|
|
139918
|
+
Object.setPrototypeOf(chalk2, Chalk.prototype);
|
|
139919
|
+
Object.setPrototypeOf(chalk2.template, chalk2);
|
|
139920
|
+
chalk2.template.constructor = () => {
|
|
139459
139921
|
throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.");
|
|
139460
139922
|
};
|
|
139461
|
-
|
|
139462
|
-
return
|
|
139923
|
+
chalk2.template.Instance = ChalkClass;
|
|
139924
|
+
return chalk2.template;
|
|
139463
139925
|
};
|
|
139464
139926
|
function Chalk(options) {
|
|
139465
139927
|
return chalkFactory(options);
|
|
@@ -139570,7 +140032,7 @@ var require_source = __commonJS({
|
|
|
139570
140032
|
return openAll + string + closeAll;
|
|
139571
140033
|
};
|
|
139572
140034
|
var template;
|
|
139573
|
-
var chalkTag = (
|
|
140035
|
+
var chalkTag = (chalk2, ...strings) => {
|
|
139574
140036
|
const [firstString] = strings;
|
|
139575
140037
|
if (!isArray2(firstString) || !isArray2(firstString.raw)) {
|
|
139576
140038
|
return strings.join(" ");
|
|
@@ -139586,14 +140048,14 @@ var require_source = __commonJS({
|
|
|
139586
140048
|
if (template === void 0) {
|
|
139587
140049
|
template = require_templates2();
|
|
139588
140050
|
}
|
|
139589
|
-
return template(
|
|
140051
|
+
return template(chalk2, parts.join(""));
|
|
139590
140052
|
};
|
|
139591
140053
|
Object.defineProperties(Chalk.prototype, styles);
|
|
139592
|
-
var
|
|
139593
|
-
|
|
139594
|
-
|
|
139595
|
-
|
|
139596
|
-
module.exports =
|
|
140054
|
+
var chalk = Chalk();
|
|
140055
|
+
chalk.supportsColor = stdoutColor;
|
|
140056
|
+
chalk.stderr = Chalk({ level: stderrColor ? stderrColor.level : 0 });
|
|
140057
|
+
chalk.stderr.supportsColor = stderrColor;
|
|
140058
|
+
module.exports = chalk;
|
|
139597
140059
|
}
|
|
139598
140060
|
});
|
|
139599
140061
|
|
|
@@ -156658,13 +157120,21 @@ var require_ui5_version_fallback = __commonJS({
|
|
|
156658
157120
|
skipped: "Skipped"
|
|
156659
157121
|
};
|
|
156660
157122
|
exports.ui5VersionFallbacks = [
|
|
157123
|
+
{
|
|
157124
|
+
version: "1.147.*",
|
|
157125
|
+
support: exports.supportState.maintenance
|
|
157126
|
+
},
|
|
157127
|
+
{
|
|
157128
|
+
version: "1.146.*",
|
|
157129
|
+
support: exports.supportState.maintenance
|
|
157130
|
+
},
|
|
156661
157131
|
{
|
|
156662
157132
|
version: "1.145.*",
|
|
156663
157133
|
support: exports.supportState.maintenance
|
|
156664
157134
|
},
|
|
156665
157135
|
{
|
|
156666
157136
|
version: "1.144.*",
|
|
156667
|
-
support: exports.supportState.
|
|
157137
|
+
support: exports.supportState.outOfMaintenance
|
|
156668
157138
|
},
|
|
156669
157139
|
{
|
|
156670
157140
|
version: "1.143.*",
|
|
@@ -156684,7 +157154,7 @@ var require_ui5_version_fallback = __commonJS({
|
|
|
156684
157154
|
},
|
|
156685
157155
|
{
|
|
156686
157156
|
version: "1.139.*",
|
|
156687
|
-
support: exports.supportState.
|
|
157157
|
+
support: exports.supportState.outOfMaintenance
|
|
156688
157158
|
},
|
|
156689
157159
|
{
|
|
156690
157160
|
version: "1.138.*",
|
|
@@ -159741,7 +160211,7 @@ var import_yaml2 = __toESM(require_dist6(), 1);
|
|
|
159741
160211
|
var package_default = {
|
|
159742
160212
|
name: "@sap/ux-ui5-tooling",
|
|
159743
160213
|
displayName: "SAP Fiori Tools \u2013 UI5 Tooling",
|
|
159744
|
-
version: "1.
|
|
160214
|
+
version: "1.24.0",
|
|
159745
160215
|
description: "SAP Fiori Tools \u2013 UI5 Tooling",
|
|
159746
160216
|
publisher: "SAPSE",
|
|
159747
160217
|
license: "SEE LICENSE IN LICENSE",
|
|
@@ -159777,50 +160247,49 @@ var package_default = {
|
|
|
159777
160247
|
},
|
|
159778
160248
|
devDependencies: {
|
|
159779
160249
|
"@playwright/test": "1.58.2",
|
|
159780
|
-
"@sap-ux/axios-extension": "1.25.
|
|
159781
|
-
"@sap-ux/backend-proxy-middleware": "0.12.
|
|
160250
|
+
"@sap-ux/axios-extension": "1.25.32",
|
|
160251
|
+
"@sap-ux/backend-proxy-middleware": "0.12.5",
|
|
159782
160252
|
"@sap-ux/btp-utils": "1.1.14",
|
|
159783
|
-
"@sap-ux/deploy-tooling": "0.18.
|
|
160253
|
+
"@sap-ux/deploy-tooling": "0.18.19",
|
|
159784
160254
|
"@sap-ux/feature-toggle": "0.3.8",
|
|
159785
160255
|
"@sap-ux/guided-answers-helper": "0.4.2",
|
|
159786
160256
|
"@sap-ux/logger": "0.8.5",
|
|
159787
160257
|
"@sap-ux/nodejs-utils": "0.2.21",
|
|
159788
|
-
"@sap-ux/preview-middleware": "0.25.
|
|
159789
|
-
"@sap-ux/project-access": "1.
|
|
160258
|
+
"@sap-ux/preview-middleware": "0.25.32",
|
|
160259
|
+
"@sap-ux/project-access": "1.36.0",
|
|
159790
160260
|
"@sap-ux/reload-middleware": "0.3.25",
|
|
159791
160261
|
"@sap-ux/serve-static-middleware": "0.4.13",
|
|
159792
160262
|
"@sap-ux/store": "1.5.13",
|
|
159793
|
-
"@sap-ux/system-access": "0.7.
|
|
159794
|
-
"@sap-ux/telemetry": "0.6.
|
|
160263
|
+
"@sap-ux/system-access": "0.7.8",
|
|
160264
|
+
"@sap-ux/telemetry": "0.6.101",
|
|
159795
160265
|
"@sap-ux/ui5-config": "0.30.3",
|
|
159796
|
-
"@sap-ux/ui5-info": "0.13.
|
|
160266
|
+
"@sap-ux/ui5-info": "0.13.20",
|
|
159797
160267
|
"@sap-ux/ui5-proxy-middleware": "1.6.33",
|
|
159798
|
-
"@sap/ux-app-templates": "1.
|
|
159799
|
-
"@sap/ux-specification": "1.144.
|
|
160268
|
+
"@sap/ux-app-templates": "1.24.0",
|
|
160269
|
+
"@sap/ux-specification": "1.144.2",
|
|
159800
160270
|
"@types/fs-extra": "11.0.4",
|
|
159801
|
-
"@types/
|
|
159802
|
-
"@types/node": "20.12.11",
|
|
160271
|
+
"@types/node": "22.19.17",
|
|
159803
160272
|
"@types/prompts": "2.4.9",
|
|
159804
160273
|
"@types/supertest": "6.0.3",
|
|
159805
160274
|
"@ui5/fs": "4.0.5",
|
|
159806
160275
|
"@ui5/manifest": "1.84.0",
|
|
159807
|
-
"@zowe/secrets-for-zowe-sdk": "8.
|
|
159808
|
-
axios: "1.
|
|
159809
|
-
chalk: "
|
|
160276
|
+
"@zowe/secrets-for-zowe-sdk": "8.29.4",
|
|
160277
|
+
axios: "1.16.0",
|
|
160278
|
+
chalk: "5.6.2",
|
|
159810
160279
|
"connect-livereload": "0.6.1",
|
|
159811
160280
|
"cross-env": "10.1.0",
|
|
159812
|
-
dotenv: "17.
|
|
160281
|
+
dotenv: "17.4.2",
|
|
159813
160282
|
express: "4.22.1",
|
|
159814
160283
|
"fs-extra": "11.3.4",
|
|
159815
160284
|
"http-proxy-middleware": "3.0.5",
|
|
159816
160285
|
i18next: "25.8.17",
|
|
159817
160286
|
livereload: "0.10.3",
|
|
159818
|
-
marked: "
|
|
160287
|
+
marked: "18.0.0",
|
|
159819
160288
|
"marked-terminal": "7.3.0",
|
|
159820
160289
|
nock: "14.0.10",
|
|
159821
160290
|
portfinder: "1.0.38",
|
|
159822
160291
|
prompts: "2.4.2",
|
|
159823
|
-
semver: "7.7.
|
|
160292
|
+
semver: "7.7.4",
|
|
159824
160293
|
"serve-static": "2.2.0",
|
|
159825
160294
|
supertest: "7.1.4",
|
|
159826
160295
|
"tree-kill": "1.2.2",
|
|
@@ -159828,7 +160297,7 @@ var package_default = {
|
|
|
159828
160297
|
"update-notifier-cjs": "5.1.7",
|
|
159829
160298
|
"wait-for-expect": "4.0.0",
|
|
159830
160299
|
yaml: "2.8.3",
|
|
159831
|
-
"yargs-parser": "
|
|
160300
|
+
"yargs-parser": "21.1.1"
|
|
159832
160301
|
},
|
|
159833
160302
|
ui5: {
|
|
159834
160303
|
dependencies: []
|
|
@@ -159917,7 +160386,6 @@ var import_axios_extension = __toESM(require_dist17(), 1);
|
|
|
159917
160386
|
var import_btp_utils = __toESM(require_dist4(), 1);
|
|
159918
160387
|
import { join as join2, dirname } from "node:path";
|
|
159919
160388
|
import { fileURLToPath } from "node:url";
|
|
159920
|
-
var import_chalk = __toESM(require_source(), 1);
|
|
159921
160389
|
var import_project_access = __toESM(require_dist11(), 1);
|
|
159922
160390
|
var import_telemetry = __toESM(require_dist14(), 1);
|
|
159923
160391
|
var import_ui5_info = __toESM(require_dist18(), 1);
|
|
@@ -160112,7 +160580,7 @@ mime-types/index.js:
|
|
|
160112
160580
|
*)
|
|
160113
160581
|
|
|
160114
160582
|
axios/dist/node/axios.cjs:
|
|
160115
|
-
(*! Axios v1.
|
|
160583
|
+
(*! Axios v1.16.0 Copyright (c) 2026 Matt Zabriskie and contributors *)
|
|
160116
160584
|
|
|
160117
160585
|
repeat-string/index.js:
|
|
160118
160586
|
(*!
|