@funnycode/myclaude 0.1.112 → 0.1.114
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/myclaude.js +760 -1210
- package/dist/myclaude.mjs +760 -1210
- package/package.json +2 -2
package/dist/myclaude.mjs
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
// MACRO - build-time constants (injected by build.ts)
|
|
5
5
|
// MACRO injected by build script
|
|
6
6
|
globalThis.MACRO = {
|
|
7
|
-
VERSION: "0.1.
|
|
8
|
-
BUILD_TIME: "2026-07-
|
|
7
|
+
VERSION: "0.1.114",
|
|
8
|
+
BUILD_TIME: "2026-07-21T15:25:32.406Z",
|
|
9
9
|
PACKAGE_URL: "@funnycode/myclaude",
|
|
10
10
|
NATIVE_PACKAGE_URL: "@funnycode/myclaude",
|
|
11
11
|
VERSION_CHANGELOG: '',
|
|
@@ -15247,9 +15247,9 @@ var init_startupProfiler = __esm(() => {
|
|
|
15247
15247
|
}
|
|
15248
15248
|
});
|
|
15249
15249
|
|
|
15250
|
-
//
|
|
15251
|
-
var
|
|
15252
|
-
__export(
|
|
15250
|
+
// node_modules/@ant/claude-for-chrome-mcp/index.ts
|
|
15251
|
+
var exports_claude_for_chrome_mcp = {};
|
|
15252
|
+
__export(exports_claude_for_chrome_mcp, {
|
|
15253
15253
|
createClaudeForChromeMcpServer: () => createClaudeForChromeMcpServer,
|
|
15254
15254
|
BROWSER_TOOLS: () => BROWSER_TOOLS
|
|
15255
15255
|
});
|
|
@@ -15261,7 +15261,7 @@ function createClaudeForChromeMcpServer(_context) {
|
|
|
15261
15261
|
};
|
|
15262
15262
|
}
|
|
15263
15263
|
var BROWSER_TOOLS;
|
|
15264
|
-
var
|
|
15264
|
+
var init_claude_for_chrome_mcp = __esm(() => {
|
|
15265
15265
|
BROWSER_TOOLS = [];
|
|
15266
15266
|
});
|
|
15267
15267
|
|
|
@@ -38380,7 +38380,6 @@ var init_log3 = __esm(() => {
|
|
|
38380
38380
|
function sequential(fn) {
|
|
38381
38381
|
const queue = [];
|
|
38382
38382
|
let processing = false;
|
|
38383
|
-
let reentrantCount = 0;
|
|
38384
38383
|
async function processQueue() {
|
|
38385
38384
|
if (processing)
|
|
38386
38385
|
return;
|
|
@@ -38390,13 +38389,10 @@ function sequential(fn) {
|
|
|
38390
38389
|
while (queue.length > 0) {
|
|
38391
38390
|
const { args, resolve: resolve5, reject, context } = queue.shift();
|
|
38392
38391
|
try {
|
|
38393
|
-
reentrantCount++;
|
|
38394
38392
|
const result = await fn.apply(context, args);
|
|
38395
38393
|
resolve5(result);
|
|
38396
38394
|
} catch (error49) {
|
|
38397
38395
|
reject(error49);
|
|
38398
|
-
} finally {
|
|
38399
|
-
reentrantCount--;
|
|
38400
38396
|
}
|
|
38401
38397
|
}
|
|
38402
38398
|
processing = false;
|
|
@@ -38405,9 +38401,6 @@ function sequential(fn) {
|
|
|
38405
38401
|
}
|
|
38406
38402
|
}
|
|
38407
38403
|
return function(...args) {
|
|
38408
|
-
if (reentrantCount > 0) {
|
|
38409
|
-
return fn.apply(this, args);
|
|
38410
|
-
}
|
|
38411
38404
|
return new Promise((resolve5, reject) => {
|
|
38412
38405
|
queue.push({ args, resolve: resolve5, reject, context: this });
|
|
38413
38406
|
processQueue();
|
|
@@ -44049,17 +44042,6 @@ function isArrayBufferView(val) {
|
|
|
44049
44042
|
}
|
|
44050
44043
|
return result;
|
|
44051
44044
|
}
|
|
44052
|
-
function getGlobal() {
|
|
44053
|
-
if (typeof globalThis !== "undefined")
|
|
44054
|
-
return globalThis;
|
|
44055
|
-
if (typeof self !== "undefined")
|
|
44056
|
-
return self;
|
|
44057
|
-
if (typeof window !== "undefined")
|
|
44058
|
-
return window;
|
|
44059
|
-
if (typeof global !== "undefined")
|
|
44060
|
-
return global;
|
|
44061
|
-
return {};
|
|
44062
|
-
}
|
|
44063
44045
|
function forEach(obj, fn, { allOwnKeys = false } = {}) {
|
|
44064
44046
|
if (obj === null || typeof obj === "undefined") {
|
|
44065
44047
|
return;
|
|
@@ -44074,9 +44056,6 @@ function forEach(obj, fn, { allOwnKeys = false } = {}) {
|
|
|
44074
44056
|
fn.call(null, obj[i2], i2, obj);
|
|
44075
44057
|
}
|
|
44076
44058
|
} else {
|
|
44077
|
-
if (isBuffer2(obj)) {
|
|
44078
|
-
return;
|
|
44079
|
-
}
|
|
44080
44059
|
const keys2 = allOwnKeys ? Object.getOwnPropertyNames(obj) : Object.keys(obj);
|
|
44081
44060
|
const len = keys2.length;
|
|
44082
44061
|
let key;
|
|
@@ -44087,9 +44066,6 @@ function forEach(obj, fn, { allOwnKeys = false } = {}) {
|
|
|
44087
44066
|
}
|
|
44088
44067
|
}
|
|
44089
44068
|
function findKey(obj, key) {
|
|
44090
|
-
if (isBuffer2(obj)) {
|
|
44091
|
-
return null;
|
|
44092
|
-
}
|
|
44093
44069
|
key = key.toLowerCase();
|
|
44094
44070
|
const keys2 = Object.keys(obj);
|
|
44095
44071
|
let i2 = keys2.length;
|
|
@@ -44103,12 +44079,9 @@ function findKey(obj, key) {
|
|
|
44103
44079
|
return null;
|
|
44104
44080
|
}
|
|
44105
44081
|
function merge2() {
|
|
44106
|
-
const { caseless
|
|
44082
|
+
const { caseless } = isContextDefined(this) && this || {};
|
|
44107
44083
|
const result = {};
|
|
44108
44084
|
const assignValue2 = (val, key) => {
|
|
44109
|
-
if (key === "__proto__" || key === "constructor" || key === "prototype") {
|
|
44110
|
-
return;
|
|
44111
|
-
}
|
|
44112
44085
|
const targetKey = caseless && findKey(result, key) || key;
|
|
44113
44086
|
if (isPlainObject4(result[targetKey]) && isPlainObject4(val)) {
|
|
44114
44087
|
result[targetKey] = merge2(result[targetKey], val);
|
|
@@ -44116,7 +44089,7 @@ function merge2() {
|
|
|
44116
44089
|
result[targetKey] = merge2({}, val);
|
|
44117
44090
|
} else if (isArray3(val)) {
|
|
44118
44091
|
result[targetKey] = val.slice();
|
|
44119
|
-
} else
|
|
44092
|
+
} else {
|
|
44120
44093
|
result[targetKey] = val;
|
|
44121
44094
|
}
|
|
44122
44095
|
};
|
|
@@ -44126,9 +44099,9 @@ function merge2() {
|
|
|
44126
44099
|
return result;
|
|
44127
44100
|
}
|
|
44128
44101
|
function isSpecCompliantForm(thing) {
|
|
44129
|
-
return !!(thing && isFunction2(thing.append) && thing[toStringTag] === "FormData" && thing[iterator]);
|
|
44102
|
+
return !!(thing && isFunction2(thing.append) && thing[Symbol.toStringTag] === "FormData" && thing[Symbol.iterator]);
|
|
44130
44103
|
}
|
|
44131
|
-
var toString3, getPrototypeOf,
|
|
44104
|
+
var toString3, getPrototypeOf, kindOf, kindOfTest = (type) => {
|
|
44132
44105
|
type = type.toLowerCase();
|
|
44133
44106
|
return (thing) => kindOf(thing) === type;
|
|
44134
44107
|
}, typeOfTest = (type) => (thing) => typeof thing === type, isArray3, isUndefined, isArrayBuffer2, isString, isFunction2, isNumber, isObject4 = (thing) => thing !== null && typeof thing === "object", isBoolean = (thing) => thing === true || thing === false, isPlainObject4 = (val) => {
|
|
@@ -44136,39 +44109,16 @@ var toString3, getPrototypeOf, iterator, toStringTag, kindOf, kindOfTest = (type
|
|
|
44136
44109
|
return false;
|
|
44137
44110
|
}
|
|
44138
44111
|
const prototype = getPrototypeOf(val);
|
|
44139
|
-
return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(toStringTag in val) && !(iterator in val);
|
|
44140
|
-
},
|
|
44141
|
-
if (!isObject4(val) || isBuffer2(val)) {
|
|
44142
|
-
return false;
|
|
44143
|
-
}
|
|
44144
|
-
try {
|
|
44145
|
-
return Object.keys(val).length === 0 && Object.getPrototypeOf(val) === Object.prototype;
|
|
44146
|
-
} catch (e) {
|
|
44147
|
-
return false;
|
|
44148
|
-
}
|
|
44149
|
-
}, isDate, isFile, isReactNativeBlob = (value) => {
|
|
44150
|
-
return !!(value && typeof value.uri !== "undefined");
|
|
44151
|
-
}, isReactNative = (formData) => formData && typeof formData.getParts !== "undefined", isBlob, isFileList, isStream2 = (val) => isObject4(val) && isFunction2(val.pipe), G2, FormDataCtor, isFormData = (thing) => {
|
|
44112
|
+
return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in val) && !(Symbol.iterator in val);
|
|
44113
|
+
}, isDate, isFile, isBlob, isFileList, isStream2 = (val) => isObject4(val) && isFunction2(val.pipe), isFormData = (thing) => {
|
|
44152
44114
|
let kind;
|
|
44153
|
-
return thing && (
|
|
44154
|
-
}, isURLSearchParams, isReadableStream3, isRequest, isResponse, isHeaders, trim = (str) => {
|
|
44155
|
-
return str.trim ? str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
44156
|
-
}, _global, isContextDefined = (context) => !isUndefined(context) && context !== _global, extend2 = (a2, b, thisArg, { allOwnKeys } = {}) => {
|
|
44115
|
+
return thing && (typeof FormData === "function" && thing instanceof FormData || isFunction2(thing.append) && ((kind = kindOf(thing)) === "formdata" || kind === "object" && isFunction2(thing.toString) && thing.toString() === "[object FormData]"));
|
|
44116
|
+
}, isURLSearchParams, isReadableStream3, isRequest, isResponse, isHeaders, trim = (str) => str.trim ? str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, ""), _global, isContextDefined = (context) => !isUndefined(context) && context !== _global, extend2 = (a2, b, thisArg, { allOwnKeys } = {}) => {
|
|
44157
44117
|
forEach(b, (val, key) => {
|
|
44158
44118
|
if (thisArg && isFunction2(val)) {
|
|
44159
|
-
|
|
44160
|
-
value: bind(val, thisArg),
|
|
44161
|
-
writable: true,
|
|
44162
|
-
enumerable: true,
|
|
44163
|
-
configurable: true
|
|
44164
|
-
});
|
|
44119
|
+
a2[key] = bind(val, thisArg);
|
|
44165
44120
|
} else {
|
|
44166
|
-
|
|
44167
|
-
value: val,
|
|
44168
|
-
writable: true,
|
|
44169
|
-
enumerable: true,
|
|
44170
|
-
configurable: true
|
|
44171
|
-
});
|
|
44121
|
+
a2[key] = val;
|
|
44172
44122
|
}
|
|
44173
44123
|
}, { allOwnKeys });
|
|
44174
44124
|
return a2;
|
|
@@ -44179,12 +44129,7 @@ var toString3, getPrototypeOf, iterator, toStringTag, kindOf, kindOfTest = (type
|
|
|
44179
44129
|
return content;
|
|
44180
44130
|
}, inherits = (constructor, superConstructor, props, descriptors2) => {
|
|
44181
44131
|
constructor.prototype = Object.create(superConstructor.prototype, descriptors2);
|
|
44182
|
-
|
|
44183
|
-
value: constructor,
|
|
44184
|
-
writable: true,
|
|
44185
|
-
enumerable: false,
|
|
44186
|
-
configurable: true
|
|
44187
|
-
});
|
|
44132
|
+
constructor.prototype.constructor = constructor;
|
|
44188
44133
|
Object.defineProperty(constructor, "super", {
|
|
44189
44134
|
value: superConstructor.prototype
|
|
44190
44135
|
});
|
|
@@ -44232,10 +44177,10 @@ var toString3, getPrototypeOf, iterator, toStringTag, kindOf, kindOfTest = (type
|
|
|
44232
44177
|
}
|
|
44233
44178
|
return arr;
|
|
44234
44179
|
}, isTypedArray2, forEachEntry = (obj, fn) => {
|
|
44235
|
-
const generator = obj && obj[iterator];
|
|
44236
|
-
const
|
|
44180
|
+
const generator = obj && obj[Symbol.iterator];
|
|
44181
|
+
const iterator = generator.call(obj);
|
|
44237
44182
|
let result;
|
|
44238
|
-
while ((result =
|
|
44183
|
+
while ((result = iterator.next()) && !result.done) {
|
|
44239
44184
|
const pair = result.value;
|
|
44240
44185
|
fn.call(obj, pair[0], pair[1]);
|
|
44241
44186
|
}
|
|
@@ -44290,6 +44235,13 @@ var toString3, getPrototypeOf, iterator, toStringTag, kindOf, kindOfTest = (type
|
|
|
44290
44235
|
return obj;
|
|
44291
44236
|
}, noop5 = () => {}, toFiniteNumber = (value, defaultValue) => {
|
|
44292
44237
|
return value != null && Number.isFinite(value = +value) ? value : defaultValue;
|
|
44238
|
+
}, ALPHA = "abcdefghijklmnopqrstuvwxyz", DIGIT = "0123456789", ALPHABET, generateString = (size = 16, alphabet = ALPHABET.ALPHA_DIGIT) => {
|
|
44239
|
+
let str = "";
|
|
44240
|
+
const { length } = alphabet;
|
|
44241
|
+
while (size--) {
|
|
44242
|
+
str += alphabet[Math.random() * length | 0];
|
|
44243
|
+
}
|
|
44244
|
+
return str;
|
|
44293
44245
|
}, toJSONObject = (obj) => {
|
|
44294
44246
|
const stack = new Array(10);
|
|
44295
44247
|
const visit2 = (source, i2) => {
|
|
@@ -44297,9 +44249,6 @@ var toString3, getPrototypeOf, iterator, toStringTag, kindOf, kindOfTest = (type
|
|
|
44297
44249
|
if (stack.indexOf(source) >= 0) {
|
|
44298
44250
|
return;
|
|
44299
44251
|
}
|
|
44300
|
-
if (isBuffer2(source)) {
|
|
44301
|
-
return source;
|
|
44302
|
-
}
|
|
44303
44252
|
if (!("toJSON" in source)) {
|
|
44304
44253
|
stack[i2] = source;
|
|
44305
44254
|
const target = isArray3(source) ? [] : {};
|
|
@@ -44314,11 +44263,10 @@ var toString3, getPrototypeOf, iterator, toStringTag, kindOf, kindOfTest = (type
|
|
|
44314
44263
|
return source;
|
|
44315
44264
|
};
|
|
44316
44265
|
return visit2(obj, 0);
|
|
44317
|
-
}, isAsyncFn, isThenable = (thing) => thing && (isObject4(thing) || isFunction2(thing)) && isFunction2(thing.then) && isFunction2(thing.catch), _setImmediate, asap,
|
|
44266
|
+
}, isAsyncFn, isThenable = (thing) => thing && (isObject4(thing) || isFunction2(thing)) && isFunction2(thing.then) && isFunction2(thing.catch), _setImmediate, asap, utils_default;
|
|
44318
44267
|
var init_utils3 = __esm(() => {
|
|
44319
44268
|
({ toString: toString3 } = Object.prototype);
|
|
44320
44269
|
({ getPrototypeOf } = Object);
|
|
44321
|
-
({ iterator, toStringTag } = Symbol);
|
|
44322
44270
|
kindOf = ((cache) => (thing) => {
|
|
44323
44271
|
const str = toString3.call(thing);
|
|
44324
44272
|
return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());
|
|
@@ -44333,15 +44281,8 @@ var init_utils3 = __esm(() => {
|
|
|
44333
44281
|
isFile = kindOfTest("File");
|
|
44334
44282
|
isBlob = kindOfTest("Blob");
|
|
44335
44283
|
isFileList = kindOfTest("FileList");
|
|
44336
|
-
G2 = getGlobal();
|
|
44337
|
-
FormDataCtor = typeof G2.FormData !== "undefined" ? G2.FormData : undefined;
|
|
44338
44284
|
isURLSearchParams = kindOfTest("URLSearchParams");
|
|
44339
|
-
[isReadableStream3, isRequest, isResponse, isHeaders] = [
|
|
44340
|
-
"ReadableStream",
|
|
44341
|
-
"Request",
|
|
44342
|
-
"Response",
|
|
44343
|
-
"Headers"
|
|
44344
|
-
].map(kindOfTest);
|
|
44285
|
+
[isReadableStream3, isRequest, isResponse, isHeaders] = ["ReadableStream", "Request", "Response", "Headers"].map(kindOfTest);
|
|
44345
44286
|
_global = (() => {
|
|
44346
44287
|
if (typeof globalThis !== "undefined")
|
|
44347
44288
|
return globalThis;
|
|
@@ -44355,6 +44296,11 @@ var init_utils3 = __esm(() => {
|
|
|
44355
44296
|
isHTMLForm = kindOfTest("HTMLFormElement");
|
|
44356
44297
|
hasOwnProperty14 = (({ hasOwnProperty: hasOwnProperty15 }) => (obj, prop) => hasOwnProperty15.call(obj, prop))(Object.prototype);
|
|
44357
44298
|
isRegExp = kindOfTest("RegExp");
|
|
44299
|
+
ALPHABET = {
|
|
44300
|
+
DIGIT,
|
|
44301
|
+
ALPHA,
|
|
44302
|
+
ALPHA_DIGIT: ALPHA + ALPHA.toUpperCase() + DIGIT
|
|
44303
|
+
};
|
|
44358
44304
|
isAsyncFn = kindOfTest("AsyncFunction");
|
|
44359
44305
|
_setImmediate = ((setImmediateSupported, postMessageSupported) => {
|
|
44360
44306
|
if (setImmediateSupported) {
|
|
@@ -44384,7 +44330,6 @@ var init_utils3 = __esm(() => {
|
|
|
44384
44330
|
isBoolean,
|
|
44385
44331
|
isObject: isObject4,
|
|
44386
44332
|
isPlainObject: isPlainObject4,
|
|
44387
|
-
isEmptyObject,
|
|
44388
44333
|
isReadableStream: isReadableStream3,
|
|
44389
44334
|
isRequest,
|
|
44390
44335
|
isResponse,
|
|
@@ -44392,8 +44337,6 @@ var init_utils3 = __esm(() => {
|
|
|
44392
44337
|
isUndefined,
|
|
44393
44338
|
isDate,
|
|
44394
44339
|
isFile,
|
|
44395
|
-
isReactNativeBlob,
|
|
44396
|
-
isReactNative,
|
|
44397
44340
|
isBlob,
|
|
44398
44341
|
isRegExp,
|
|
44399
44342
|
isFunction: isFunction2,
|
|
@@ -44426,50 +44369,40 @@ var init_utils3 = __esm(() => {
|
|
|
44426
44369
|
findKey,
|
|
44427
44370
|
global: _global,
|
|
44428
44371
|
isContextDefined,
|
|
44372
|
+
ALPHABET,
|
|
44373
|
+
generateString,
|
|
44429
44374
|
isSpecCompliantForm,
|
|
44430
44375
|
toJSONObject,
|
|
44431
44376
|
isAsyncFn,
|
|
44432
44377
|
isThenable,
|
|
44433
44378
|
setImmediate: _setImmediate,
|
|
44434
|
-
asap
|
|
44435
|
-
isIterable
|
|
44379
|
+
asap
|
|
44436
44380
|
};
|
|
44437
44381
|
});
|
|
44438
44382
|
|
|
44439
44383
|
// node_modules/axios/lib/core/AxiosError.js
|
|
44440
|
-
|
|
44384
|
+
function AxiosError(message, code, config2, request, response) {
|
|
44385
|
+
Error.call(this);
|
|
44386
|
+
if (Error.captureStackTrace) {
|
|
44387
|
+
Error.captureStackTrace(this, this.constructor);
|
|
44388
|
+
} else {
|
|
44389
|
+
this.stack = new Error().stack;
|
|
44390
|
+
}
|
|
44391
|
+
this.message = message;
|
|
44392
|
+
this.name = "AxiosError";
|
|
44393
|
+
code && (this.code = code);
|
|
44394
|
+
config2 && (this.config = config2);
|
|
44395
|
+
request && (this.request = request);
|
|
44396
|
+
if (response) {
|
|
44397
|
+
this.response = response;
|
|
44398
|
+
this.status = response.status ? response.status : null;
|
|
44399
|
+
}
|
|
44400
|
+
}
|
|
44401
|
+
var prototype, descriptors2, AxiosError_default;
|
|
44441
44402
|
var init_AxiosError = __esm(() => {
|
|
44442
44403
|
init_utils3();
|
|
44443
|
-
AxiosError
|
|
44444
|
-
|
|
44445
|
-
const axiosError = new AxiosError(error49.message, code || error49.code, config2, request, response);
|
|
44446
|
-
axiosError.cause = error49;
|
|
44447
|
-
axiosError.name = error49.name;
|
|
44448
|
-
if (error49.status != null && axiosError.status == null) {
|
|
44449
|
-
axiosError.status = error49.status;
|
|
44450
|
-
}
|
|
44451
|
-
customProps && Object.assign(axiosError, customProps);
|
|
44452
|
-
return axiosError;
|
|
44453
|
-
}
|
|
44454
|
-
constructor(message, code, config2, request, response) {
|
|
44455
|
-
super(message);
|
|
44456
|
-
Object.defineProperty(this, "message", {
|
|
44457
|
-
value: message,
|
|
44458
|
-
enumerable: true,
|
|
44459
|
-
writable: true,
|
|
44460
|
-
configurable: true
|
|
44461
|
-
});
|
|
44462
|
-
this.name = "AxiosError";
|
|
44463
|
-
this.isAxiosError = true;
|
|
44464
|
-
code && (this.code = code);
|
|
44465
|
-
config2 && (this.config = config2);
|
|
44466
|
-
request && (this.request = request);
|
|
44467
|
-
if (response) {
|
|
44468
|
-
this.response = response;
|
|
44469
|
-
this.status = response.status;
|
|
44470
|
-
}
|
|
44471
|
-
}
|
|
44472
|
-
toJSON() {
|
|
44404
|
+
utils_default.inherits(AxiosError, Error, {
|
|
44405
|
+
toJSON: function toJSON() {
|
|
44473
44406
|
return {
|
|
44474
44407
|
message: this.message,
|
|
44475
44408
|
name: this.name,
|
|
@@ -44484,19 +44417,40 @@ var init_AxiosError = __esm(() => {
|
|
|
44484
44417
|
status: this.status
|
|
44485
44418
|
};
|
|
44486
44419
|
}
|
|
44420
|
+
});
|
|
44421
|
+
prototype = AxiosError.prototype;
|
|
44422
|
+
descriptors2 = {};
|
|
44423
|
+
[
|
|
44424
|
+
"ERR_BAD_OPTION_VALUE",
|
|
44425
|
+
"ERR_BAD_OPTION",
|
|
44426
|
+
"ECONNABORTED",
|
|
44427
|
+
"ETIMEDOUT",
|
|
44428
|
+
"ERR_NETWORK",
|
|
44429
|
+
"ERR_FR_TOO_MANY_REDIRECTS",
|
|
44430
|
+
"ERR_DEPRECATED",
|
|
44431
|
+
"ERR_BAD_RESPONSE",
|
|
44432
|
+
"ERR_BAD_REQUEST",
|
|
44433
|
+
"ERR_CANCELED",
|
|
44434
|
+
"ERR_NOT_SUPPORT",
|
|
44435
|
+
"ERR_INVALID_URL"
|
|
44436
|
+
].forEach((code) => {
|
|
44437
|
+
descriptors2[code] = { value: code };
|
|
44438
|
+
});
|
|
44439
|
+
Object.defineProperties(AxiosError, descriptors2);
|
|
44440
|
+
Object.defineProperty(prototype, "isAxiosError", { value: true });
|
|
44441
|
+
AxiosError.from = (error49, code, config2, request, response, customProps) => {
|
|
44442
|
+
const axiosError = Object.create(prototype);
|
|
44443
|
+
utils_default.toFlatObject(error49, axiosError, function filter(obj) {
|
|
44444
|
+
return obj !== Error.prototype;
|
|
44445
|
+
}, (prop) => {
|
|
44446
|
+
return prop !== "isAxiosError";
|
|
44447
|
+
});
|
|
44448
|
+
AxiosError.call(axiosError, error49.message, code, config2, request, response);
|
|
44449
|
+
axiosError.cause = error49;
|
|
44450
|
+
axiosError.name = error49.name;
|
|
44451
|
+
customProps && Object.assign(axiosError, customProps);
|
|
44452
|
+
return axiosError;
|
|
44487
44453
|
};
|
|
44488
|
-
AxiosError.ERR_BAD_OPTION_VALUE = "ERR_BAD_OPTION_VALUE";
|
|
44489
|
-
AxiosError.ERR_BAD_OPTION = "ERR_BAD_OPTION";
|
|
44490
|
-
AxiosError.ECONNABORTED = "ECONNABORTED";
|
|
44491
|
-
AxiosError.ETIMEDOUT = "ETIMEDOUT";
|
|
44492
|
-
AxiosError.ERR_NETWORK = "ERR_NETWORK";
|
|
44493
|
-
AxiosError.ERR_FR_TOO_MANY_REDIRECTS = "ERR_FR_TOO_MANY_REDIRECTS";
|
|
44494
|
-
AxiosError.ERR_DEPRECATED = "ERR_DEPRECATED";
|
|
44495
|
-
AxiosError.ERR_BAD_RESPONSE = "ERR_BAD_RESPONSE";
|
|
44496
|
-
AxiosError.ERR_BAD_REQUEST = "ERR_BAD_REQUEST";
|
|
44497
|
-
AxiosError.ERR_CANCELED = "ERR_CANCELED";
|
|
44498
|
-
AxiosError.ERR_NOT_SUPPORT = "ERR_NOT_SUPPORT";
|
|
44499
|
-
AxiosError.ERR_INVALID_URL = "ERR_INVALID_URL";
|
|
44500
44454
|
AxiosError_default = AxiosError;
|
|
44501
44455
|
});
|
|
44502
44456
|
|
|
@@ -53438,9 +53392,9 @@ var require_iterate = __commonJS((exports, module) => {
|
|
|
53438
53392
|
var async = require_async();
|
|
53439
53393
|
var abort = require_abort();
|
|
53440
53394
|
module.exports = iterate;
|
|
53441
|
-
function iterate(list,
|
|
53395
|
+
function iterate(list, iterator, state, callback) {
|
|
53442
53396
|
var key = state["keyedList"] ? state["keyedList"][state.index] : state.index;
|
|
53443
|
-
state.jobs[key] = runJob(
|
|
53397
|
+
state.jobs[key] = runJob(iterator, key, list[key], function(error49, output) {
|
|
53444
53398
|
if (!(key in state.jobs)) {
|
|
53445
53399
|
return;
|
|
53446
53400
|
}
|
|
@@ -53453,12 +53407,12 @@ var require_iterate = __commonJS((exports, module) => {
|
|
|
53453
53407
|
callback(error49, state.results);
|
|
53454
53408
|
});
|
|
53455
53409
|
}
|
|
53456
|
-
function runJob(
|
|
53410
|
+
function runJob(iterator, key, item, callback) {
|
|
53457
53411
|
var aborter;
|
|
53458
|
-
if (
|
|
53459
|
-
aborter =
|
|
53412
|
+
if (iterator.length == 2) {
|
|
53413
|
+
aborter = iterator(item, async(callback));
|
|
53460
53414
|
} else {
|
|
53461
|
-
aborter =
|
|
53415
|
+
aborter = iterator(item, key, async(callback));
|
|
53462
53416
|
}
|
|
53463
53417
|
return aborter;
|
|
53464
53418
|
}
|
|
@@ -53505,10 +53459,10 @@ var require_parallel = __commonJS((exports, module) => {
|
|
|
53505
53459
|
var initState = require_state();
|
|
53506
53460
|
var terminator = require_terminator();
|
|
53507
53461
|
module.exports = parallel;
|
|
53508
|
-
function parallel(list,
|
|
53462
|
+
function parallel(list, iterator, callback) {
|
|
53509
53463
|
var state = initState(list);
|
|
53510
53464
|
while (state.index < (state["keyedList"] || list).length) {
|
|
53511
|
-
iterate(list,
|
|
53465
|
+
iterate(list, iterator, state, function(error49, result) {
|
|
53512
53466
|
if (error49) {
|
|
53513
53467
|
callback(error49, result);
|
|
53514
53468
|
return;
|
|
@@ -53532,16 +53486,16 @@ var require_serialOrdered = __commonJS((exports, module) => {
|
|
|
53532
53486
|
module.exports = serialOrdered;
|
|
53533
53487
|
module.exports.ascending = ascending;
|
|
53534
53488
|
module.exports.descending = descending;
|
|
53535
|
-
function serialOrdered(list,
|
|
53489
|
+
function serialOrdered(list, iterator, sortMethod, callback) {
|
|
53536
53490
|
var state = initState(list, sortMethod);
|
|
53537
|
-
iterate(list,
|
|
53491
|
+
iterate(list, iterator, state, function iteratorHandler(error49, result) {
|
|
53538
53492
|
if (error49) {
|
|
53539
53493
|
callback(error49, result);
|
|
53540
53494
|
return;
|
|
53541
53495
|
}
|
|
53542
53496
|
state.index++;
|
|
53543
53497
|
if (state.index < (state["keyedList"] || list).length) {
|
|
53544
|
-
iterate(list,
|
|
53498
|
+
iterate(list, iterator, state, iteratorHandler);
|
|
53545
53499
|
return;
|
|
53546
53500
|
}
|
|
53547
53501
|
callback(null, state.results);
|
|
@@ -53560,8 +53514,8 @@ var require_serialOrdered = __commonJS((exports, module) => {
|
|
|
53560
53514
|
var require_serial = __commonJS((exports, module) => {
|
|
53561
53515
|
var serialOrdered = require_serialOrdered();
|
|
53562
53516
|
module.exports = serial;
|
|
53563
|
-
function serial(list,
|
|
53564
|
-
return serialOrdered(list,
|
|
53517
|
+
function serial(list, iterator, callback) {
|
|
53518
|
+
return serialOrdered(list, iterator, null, callback);
|
|
53565
53519
|
}
|
|
53566
53520
|
});
|
|
53567
53521
|
|
|
@@ -54270,23 +54224,23 @@ var require_es_set_tostringtag = __commonJS((exports, module) => {
|
|
|
54270
54224
|
var hasToStringTag = require_shams2()();
|
|
54271
54225
|
var hasOwn2 = require_hasown();
|
|
54272
54226
|
var $TypeError = require_type();
|
|
54273
|
-
var
|
|
54227
|
+
var toStringTag = hasToStringTag ? Symbol.toStringTag : null;
|
|
54274
54228
|
module.exports = function setToStringTag(object2, value) {
|
|
54275
54229
|
var overrideIfSet = arguments.length > 2 && !!arguments[2] && arguments[2].force;
|
|
54276
54230
|
var nonConfigurable = arguments.length > 2 && !!arguments[2] && arguments[2].nonConfigurable;
|
|
54277
54231
|
if (typeof overrideIfSet !== "undefined" && typeof overrideIfSet !== "boolean" || typeof nonConfigurable !== "undefined" && typeof nonConfigurable !== "boolean") {
|
|
54278
54232
|
throw new $TypeError("if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans");
|
|
54279
54233
|
}
|
|
54280
|
-
if (
|
|
54234
|
+
if (toStringTag && (overrideIfSet || !hasOwn2(object2, toStringTag))) {
|
|
54281
54235
|
if ($defineProperty) {
|
|
54282
|
-
$defineProperty(object2,
|
|
54236
|
+
$defineProperty(object2, toStringTag, {
|
|
54283
54237
|
configurable: !nonConfigurable,
|
|
54284
54238
|
enumerable: false,
|
|
54285
54239
|
value,
|
|
54286
54240
|
writable: false
|
|
54287
54241
|
});
|
|
54288
54242
|
} else {
|
|
54289
|
-
object2[
|
|
54243
|
+
object2[toStringTag] = value;
|
|
54290
54244
|
}
|
|
54291
54245
|
}
|
|
54292
54246
|
};
|
|
@@ -54669,9 +54623,6 @@ function toFormData(obj, formData, options) {
|
|
|
54669
54623
|
if (utils_default.isDate(value)) {
|
|
54670
54624
|
return value.toISOString();
|
|
54671
54625
|
}
|
|
54672
|
-
if (utils_default.isBoolean(value)) {
|
|
54673
|
-
return value.toString();
|
|
54674
|
-
}
|
|
54675
54626
|
if (!useBlob && utils_default.isBlob(value)) {
|
|
54676
54627
|
throw new AxiosError_default("Blob is not supported. Use a Buffer instead.");
|
|
54677
54628
|
}
|
|
@@ -54682,10 +54633,6 @@ function toFormData(obj, formData, options) {
|
|
|
54682
54633
|
}
|
|
54683
54634
|
function defaultVisitor(value, key, path12) {
|
|
54684
54635
|
let arr = value;
|
|
54685
|
-
if (utils_default.isReactNative(formData) && utils_default.isReactNativeBlob(value)) {
|
|
54686
|
-
formData.append(renderKey(path12, key, dots), convertValue(value));
|
|
54687
|
-
return false;
|
|
54688
|
-
}
|
|
54689
54636
|
if (value && !path12 && typeof value === "object") {
|
|
54690
54637
|
if (utils_default.endsWith(key, "{}")) {
|
|
54691
54638
|
key = metaTokens ? key : key.slice(0, -2);
|
|
@@ -54761,14 +54708,14 @@ function AxiosURLSearchParams(params, options) {
|
|
|
54761
54708
|
this._pairs = [];
|
|
54762
54709
|
params && toFormData_default(params, this, options);
|
|
54763
54710
|
}
|
|
54764
|
-
var
|
|
54711
|
+
var prototype2, AxiosURLSearchParams_default;
|
|
54765
54712
|
var init_AxiosURLSearchParams = __esm(() => {
|
|
54766
54713
|
init_toFormData();
|
|
54767
|
-
|
|
54768
|
-
|
|
54714
|
+
prototype2 = AxiosURLSearchParams.prototype;
|
|
54715
|
+
prototype2.append = function append(name, value) {
|
|
54769
54716
|
this._pairs.push([name, value]);
|
|
54770
54717
|
};
|
|
54771
|
-
|
|
54718
|
+
prototype2.toString = function toString4(encoder2) {
|
|
54772
54719
|
const _encode2 = encoder2 ? function(value) {
|
|
54773
54720
|
return encoder2.call(this, value, encode4);
|
|
54774
54721
|
} : encode4;
|
|
@@ -54781,22 +54728,24 @@ var init_AxiosURLSearchParams = __esm(() => {
|
|
|
54781
54728
|
|
|
54782
54729
|
// node_modules/axios/lib/helpers/buildURL.js
|
|
54783
54730
|
function encode5(val) {
|
|
54784
|
-
return encodeURIComponent(val).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
|
|
54731
|
+
return encodeURIComponent(val).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
54785
54732
|
}
|
|
54786
54733
|
function buildURL(url2, params, options) {
|
|
54787
54734
|
if (!params) {
|
|
54788
54735
|
return url2;
|
|
54789
54736
|
}
|
|
54790
54737
|
const _encode2 = options && options.encode || encode5;
|
|
54791
|
-
|
|
54792
|
-
|
|
54793
|
-
|
|
54794
|
-
|
|
54738
|
+
if (utils_default.isFunction(options)) {
|
|
54739
|
+
options = {
|
|
54740
|
+
serialize: options
|
|
54741
|
+
};
|
|
54742
|
+
}
|
|
54743
|
+
const serializeFn = options && options.serialize;
|
|
54795
54744
|
let serializedParams;
|
|
54796
54745
|
if (serializeFn) {
|
|
54797
|
-
serializedParams = serializeFn(params,
|
|
54746
|
+
serializedParams = serializeFn(params, options);
|
|
54798
54747
|
} else {
|
|
54799
|
-
serializedParams = utils_default.isURLSearchParams(params) ? params.toString() : new AxiosURLSearchParams_default(params,
|
|
54748
|
+
serializedParams = utils_default.isURLSearchParams(params) ? params.toString() : new AxiosURLSearchParams_default(params, options).toString(_encode2);
|
|
54800
54749
|
}
|
|
54801
54750
|
if (serializedParams) {
|
|
54802
54751
|
const hashmarkIndex = url2.indexOf("#");
|
|
@@ -54856,8 +54805,7 @@ var init_transitional = __esm(() => {
|
|
|
54856
54805
|
transitional_default = {
|
|
54857
54806
|
silentJSONParsing: true,
|
|
54858
54807
|
forcedJSONParsing: true,
|
|
54859
|
-
clarifyTimeoutError: false
|
|
54860
|
-
legacyInterceptorReqResOrdering: true
|
|
54808
|
+
clarifyTimeoutError: false
|
|
54861
54809
|
};
|
|
54862
54810
|
});
|
|
54863
54811
|
|
|
@@ -54869,25 +54817,10 @@ var init_URLSearchParams = __esm(() => {
|
|
|
54869
54817
|
});
|
|
54870
54818
|
|
|
54871
54819
|
// node_modules/axios/lib/platform/node/index.js
|
|
54872
|
-
|
|
54873
|
-
var ALPHA = "abcdefghijklmnopqrstuvwxyz", DIGIT = "0123456789", ALPHABET, generateString = (size = 16, alphabet = ALPHABET.ALPHA_DIGIT) => {
|
|
54874
|
-
let str = "";
|
|
54875
|
-
const { length } = alphabet;
|
|
54876
|
-
const randomValues = new Uint32Array(size);
|
|
54877
|
-
crypto3.randomFillSync(randomValues);
|
|
54878
|
-
for (let i2 = 0;i2 < size; i2++) {
|
|
54879
|
-
str += alphabet[randomValues[i2] % length];
|
|
54880
|
-
}
|
|
54881
|
-
return str;
|
|
54882
|
-
}, node_default;
|
|
54820
|
+
var node_default;
|
|
54883
54821
|
var init_node4 = __esm(() => {
|
|
54884
54822
|
init_URLSearchParams();
|
|
54885
54823
|
init_FormData();
|
|
54886
|
-
ALPHABET = {
|
|
54887
|
-
DIGIT,
|
|
54888
|
-
ALPHA,
|
|
54889
|
-
ALPHA_DIGIT: ALPHA + ALPHA.toUpperCase() + DIGIT
|
|
54890
|
-
};
|
|
54891
54824
|
node_default = {
|
|
54892
54825
|
isNode: true,
|
|
54893
54826
|
classes: {
|
|
@@ -54895,8 +54828,6 @@ var init_node4 = __esm(() => {
|
|
|
54895
54828
|
FormData: FormData_default,
|
|
54896
54829
|
Blob: typeof Blob !== "undefined" && Blob || null
|
|
54897
54830
|
},
|
|
54898
|
-
ALPHABET,
|
|
54899
|
-
generateString,
|
|
54900
54831
|
protocols: ["http", "https", "file", "data"]
|
|
54901
54832
|
};
|
|
54902
54833
|
});
|
|
@@ -54934,16 +54865,15 @@ var init_platform2 = __esm(() => {
|
|
|
54934
54865
|
|
|
54935
54866
|
// node_modules/axios/lib/helpers/toURLEncodedForm.js
|
|
54936
54867
|
function toURLEncodedForm(data, options) {
|
|
54937
|
-
return toFormData_default(data, new platform_default.classes.URLSearchParams, {
|
|
54868
|
+
return toFormData_default(data, new platform_default.classes.URLSearchParams, Object.assign({
|
|
54938
54869
|
visitor: function(value, key, path12, helpers) {
|
|
54939
54870
|
if (platform_default.isNode && utils_default.isBuffer(value)) {
|
|
54940
54871
|
this.append(key, value.toString("base64"));
|
|
54941
54872
|
return false;
|
|
54942
54873
|
}
|
|
54943
54874
|
return helpers.defaultVisitor.apply(this, arguments);
|
|
54944
|
-
}
|
|
54945
|
-
|
|
54946
|
-
});
|
|
54875
|
+
}
|
|
54876
|
+
}, options));
|
|
54947
54877
|
}
|
|
54948
54878
|
var init_toURLEncodedForm = __esm(() => {
|
|
54949
54879
|
init_utils3();
|
|
@@ -55035,70 +54965,66 @@ var init_defaults = __esm(() => {
|
|
|
55035
54965
|
defaults2 = {
|
|
55036
54966
|
transitional: transitional_default,
|
|
55037
54967
|
adapter: ["xhr", "http", "fetch"],
|
|
55038
|
-
transformRequest: [
|
|
55039
|
-
|
|
55040
|
-
|
|
55041
|
-
|
|
55042
|
-
|
|
55043
|
-
|
|
55044
|
-
|
|
55045
|
-
|
|
55046
|
-
|
|
55047
|
-
|
|
55048
|
-
|
|
55049
|
-
|
|
55050
|
-
|
|
55051
|
-
|
|
55052
|
-
|
|
55053
|
-
|
|
55054
|
-
|
|
55055
|
-
|
|
55056
|
-
|
|
55057
|
-
|
|
55058
|
-
|
|
55059
|
-
|
|
55060
|
-
|
|
55061
|
-
if (
|
|
55062
|
-
|
|
55063
|
-
return toURLEncodedForm(data, this.formSerializer).toString();
|
|
55064
|
-
}
|
|
55065
|
-
if ((isFileList2 = utils_default.isFileList(data)) || contentType.indexOf("multipart/form-data") > -1) {
|
|
55066
|
-
const _FormData = this.env && this.env.FormData;
|
|
55067
|
-
return toFormData_default(isFileList2 ? { "files[]": data } : data, _FormData && new _FormData, this.formSerializer);
|
|
55068
|
-
}
|
|
54968
|
+
transformRequest: [function transformRequest(data, headers) {
|
|
54969
|
+
const contentType = headers.getContentType() || "";
|
|
54970
|
+
const hasJSONContentType = contentType.indexOf("application/json") > -1;
|
|
54971
|
+
const isObjectPayload = utils_default.isObject(data);
|
|
54972
|
+
if (isObjectPayload && utils_default.isHTMLForm(data)) {
|
|
54973
|
+
data = new FormData(data);
|
|
54974
|
+
}
|
|
54975
|
+
const isFormData2 = utils_default.isFormData(data);
|
|
54976
|
+
if (isFormData2) {
|
|
54977
|
+
return hasJSONContentType ? JSON.stringify(formDataToJSON_default(data)) : data;
|
|
54978
|
+
}
|
|
54979
|
+
if (utils_default.isArrayBuffer(data) || utils_default.isBuffer(data) || utils_default.isStream(data) || utils_default.isFile(data) || utils_default.isBlob(data) || utils_default.isReadableStream(data)) {
|
|
54980
|
+
return data;
|
|
54981
|
+
}
|
|
54982
|
+
if (utils_default.isArrayBufferView(data)) {
|
|
54983
|
+
return data.buffer;
|
|
54984
|
+
}
|
|
54985
|
+
if (utils_default.isURLSearchParams(data)) {
|
|
54986
|
+
headers.setContentType("application/x-www-form-urlencoded;charset=utf-8", false);
|
|
54987
|
+
return data.toString();
|
|
54988
|
+
}
|
|
54989
|
+
let isFileList2;
|
|
54990
|
+
if (isObjectPayload) {
|
|
54991
|
+
if (contentType.indexOf("application/x-www-form-urlencoded") > -1) {
|
|
54992
|
+
return toURLEncodedForm(data, this.formSerializer).toString();
|
|
55069
54993
|
}
|
|
55070
|
-
if (
|
|
55071
|
-
|
|
55072
|
-
return
|
|
54994
|
+
if ((isFileList2 = utils_default.isFileList(data)) || contentType.indexOf("multipart/form-data") > -1) {
|
|
54995
|
+
const _FormData = this.env && this.env.FormData;
|
|
54996
|
+
return toFormData_default(isFileList2 ? { "files[]": data } : data, _FormData && new _FormData, this.formSerializer);
|
|
55073
54997
|
}
|
|
54998
|
+
}
|
|
54999
|
+
if (isObjectPayload || hasJSONContentType) {
|
|
55000
|
+
headers.setContentType("application/json", false);
|
|
55001
|
+
return stringifySafely(data);
|
|
55002
|
+
}
|
|
55003
|
+
return data;
|
|
55004
|
+
}],
|
|
55005
|
+
transformResponse: [function transformResponse(data) {
|
|
55006
|
+
const transitional = this.transitional || defaults2.transitional;
|
|
55007
|
+
const forcedJSONParsing = transitional && transitional.forcedJSONParsing;
|
|
55008
|
+
const JSONRequested = this.responseType === "json";
|
|
55009
|
+
if (utils_default.isResponse(data) || utils_default.isReadableStream(data)) {
|
|
55074
55010
|
return data;
|
|
55075
55011
|
}
|
|
55076
|
-
|
|
55077
|
-
|
|
55078
|
-
|
|
55079
|
-
|
|
55080
|
-
|
|
55081
|
-
|
|
55082
|
-
|
|
55083
|
-
|
|
55084
|
-
|
|
55085
|
-
if (data && utils_default.isString(data) && (forcedJSONParsing && !this.responseType || JSONRequested)) {
|
|
55086
|
-
const silentJSONParsing = transitional && transitional.silentJSONParsing;
|
|
55087
|
-
const strictJSONParsing = !silentJSONParsing && JSONRequested;
|
|
55088
|
-
try {
|
|
55089
|
-
return JSON.parse(data, this.parseReviver);
|
|
55090
|
-
} catch (e) {
|
|
55091
|
-
if (strictJSONParsing) {
|
|
55092
|
-
if (e.name === "SyntaxError") {
|
|
55093
|
-
throw AxiosError_default.from(e, AxiosError_default.ERR_BAD_RESPONSE, this, null, this.response);
|
|
55094
|
-
}
|
|
55095
|
-
throw e;
|
|
55012
|
+
if (data && utils_default.isString(data) && (forcedJSONParsing && !this.responseType || JSONRequested)) {
|
|
55013
|
+
const silentJSONParsing = transitional && transitional.silentJSONParsing;
|
|
55014
|
+
const strictJSONParsing = !silentJSONParsing && JSONRequested;
|
|
55015
|
+
try {
|
|
55016
|
+
return JSON.parse(data);
|
|
55017
|
+
} catch (e) {
|
|
55018
|
+
if (strictJSONParsing) {
|
|
55019
|
+
if (e.name === "SyntaxError") {
|
|
55020
|
+
throw AxiosError_default.from(e, AxiosError_default.ERR_BAD_RESPONSE, this, null, this.response);
|
|
55096
55021
|
}
|
|
55022
|
+
throw e;
|
|
55097
55023
|
}
|
|
55098
55024
|
}
|
|
55099
|
-
return data;
|
|
55100
55025
|
}
|
|
55101
|
-
|
|
55026
|
+
return data;
|
|
55027
|
+
}],
|
|
55102
55028
|
timeout: 0,
|
|
55103
55029
|
xsrfCookieName: "XSRF-TOKEN",
|
|
55104
55030
|
xsrfHeaderName: "X-XSRF-TOKEN",
|
|
@@ -55181,7 +55107,7 @@ function normalizeValue(value) {
|
|
|
55181
55107
|
if (value === false || value == null) {
|
|
55182
55108
|
return value;
|
|
55183
55109
|
}
|
|
55184
|
-
return utils_default.isArray(value) ? value.map(normalizeValue) : String(value)
|
|
55110
|
+
return utils_default.isArray(value) ? value.map(normalizeValue) : String(value);
|
|
55185
55111
|
}
|
|
55186
55112
|
function parseTokens(str) {
|
|
55187
55113
|
const tokens = Object.create(null);
|
|
@@ -55250,15 +55176,10 @@ var init_AxiosHeaders = __esm(() => {
|
|
|
55250
55176
|
setHeaders(header, valueOrRewrite);
|
|
55251
55177
|
} else if (utils_default.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {
|
|
55252
55178
|
setHeaders(parseHeaders_default(header), valueOrRewrite);
|
|
55253
|
-
} else if (utils_default.
|
|
55254
|
-
|
|
55255
|
-
|
|
55256
|
-
if (!utils_default.isArray(entry)) {
|
|
55257
|
-
throw TypeError("Object iterator must return a key-value pair");
|
|
55258
|
-
}
|
|
55259
|
-
obj[key = entry[0]] = (dest = obj[key]) ? utils_default.isArray(dest) ? [...dest, entry[1]] : [dest, entry[1]] : entry[1];
|
|
55179
|
+
} else if (utils_default.isHeaders(header)) {
|
|
55180
|
+
for (const [key, value] of header.entries()) {
|
|
55181
|
+
setHeader(value, key, rewrite);
|
|
55260
55182
|
}
|
|
55261
|
-
setHeaders(obj, valueOrRewrite);
|
|
55262
55183
|
} else {
|
|
55263
55184
|
header != null && setHeader(valueOrRewrite, header, rewrite);
|
|
55264
55185
|
}
|
|
@@ -55363,9 +55284,6 @@ var init_AxiosHeaders = __esm(() => {
|
|
|
55363
55284
|
return Object.entries(this.toJSON()).map(([header, value]) => header + ": " + value).join(`
|
|
55364
55285
|
`);
|
|
55365
55286
|
}
|
|
55366
|
-
getSetCookie() {
|
|
55367
|
-
return this.get("set-cookie") || [];
|
|
55368
|
-
}
|
|
55369
55287
|
get [Symbol.toStringTag]() {
|
|
55370
55288
|
return "AxiosHeaders";
|
|
55371
55289
|
}
|
|
@@ -55382,11 +55300,11 @@ var init_AxiosHeaders = __esm(() => {
|
|
|
55382
55300
|
accessors: {}
|
|
55383
55301
|
};
|
|
55384
55302
|
const accessors = internals.accessors;
|
|
55385
|
-
const
|
|
55303
|
+
const prototype3 = this.prototype;
|
|
55386
55304
|
function defineAccessor(_header) {
|
|
55387
55305
|
const lHeader = normalizeHeader(_header);
|
|
55388
55306
|
if (!accessors[lHeader]) {
|
|
55389
|
-
buildAccessors(
|
|
55307
|
+
buildAccessors(prototype3, _header);
|
|
55390
55308
|
accessors[lHeader] = true;
|
|
55391
55309
|
}
|
|
55392
55310
|
}
|
|
@@ -55394,14 +55312,7 @@ var init_AxiosHeaders = __esm(() => {
|
|
|
55394
55312
|
return this;
|
|
55395
55313
|
}
|
|
55396
55314
|
};
|
|
55397
|
-
AxiosHeaders.accessor([
|
|
55398
|
-
"Content-Type",
|
|
55399
|
-
"Content-Length",
|
|
55400
|
-
"Accept",
|
|
55401
|
-
"Accept-Encoding",
|
|
55402
|
-
"User-Agent",
|
|
55403
|
-
"Authorization"
|
|
55404
|
-
]);
|
|
55315
|
+
AxiosHeaders.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
|
|
55405
55316
|
utils_default.reduceDescriptors(AxiosHeaders.prototype, ({ value }, key) => {
|
|
55406
55317
|
let mapped = key[0].toUpperCase() + key.slice(1);
|
|
55407
55318
|
return {
|
|
@@ -55439,16 +55350,17 @@ function isCancel(value) {
|
|
|
55439
55350
|
}
|
|
55440
55351
|
|
|
55441
55352
|
// node_modules/axios/lib/cancel/CanceledError.js
|
|
55442
|
-
|
|
55353
|
+
function CanceledError(message, config2, request) {
|
|
55354
|
+
AxiosError_default.call(this, message == null ? "canceled" : message, AxiosError_default.ERR_CANCELED, config2, request);
|
|
55355
|
+
this.name = "CanceledError";
|
|
55356
|
+
}
|
|
55357
|
+
var CanceledError_default;
|
|
55443
55358
|
var init_CanceledError = __esm(() => {
|
|
55444
55359
|
init_AxiosError();
|
|
55445
|
-
|
|
55446
|
-
|
|
55447
|
-
|
|
55448
|
-
|
|
55449
|
-
this.__CANCEL__ = true;
|
|
55450
|
-
}
|
|
55451
|
-
};
|
|
55360
|
+
init_utils3();
|
|
55361
|
+
utils_default.inherits(CanceledError, AxiosError_default, {
|
|
55362
|
+
__CANCEL__: true
|
|
55363
|
+
});
|
|
55452
55364
|
CanceledError_default = CanceledError;
|
|
55453
55365
|
});
|
|
55454
55366
|
|
|
@@ -55467,9 +55379,6 @@ var init_settle = __esm(() => {
|
|
|
55467
55379
|
|
|
55468
55380
|
// node_modules/axios/lib/helpers/isAbsoluteURL.js
|
|
55469
55381
|
function isAbsoluteURL2(url3) {
|
|
55470
|
-
if (typeof url3 !== "string") {
|
|
55471
|
-
return false;
|
|
55472
|
-
}
|
|
55473
55382
|
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url3);
|
|
55474
55383
|
}
|
|
55475
55384
|
|
|
@@ -55479,9 +55388,8 @@ function combineURLs(baseURL, relativeURL) {
|
|
|
55479
55388
|
}
|
|
55480
55389
|
|
|
55481
55390
|
// node_modules/axios/lib/core/buildFullPath.js
|
|
55482
|
-
function buildFullPath(baseURL, requestedURL
|
|
55483
|
-
|
|
55484
|
-
if (baseURL && (isRelativeUrl || allowAbsoluteUrls == false)) {
|
|
55391
|
+
function buildFullPath(baseURL, requestedURL) {
|
|
55392
|
+
if (baseURL && !isAbsoluteURL2(requestedURL)) {
|
|
55485
55393
|
return combineURLs(baseURL, requestedURL);
|
|
55486
55394
|
}
|
|
55487
55395
|
return requestedURL;
|
|
@@ -55489,66 +55397,9 @@ function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {
|
|
|
55489
55397
|
var init_buildFullPath = () => {};
|
|
55490
55398
|
|
|
55491
55399
|
// node_modules/proxy-from-env/index.js
|
|
55492
|
-
|
|
55493
|
-
|
|
55494
|
-
|
|
55495
|
-
} catch {
|
|
55496
|
-
return null;
|
|
55497
|
-
}
|
|
55498
|
-
}
|
|
55499
|
-
function getProxyForUrl(url3) {
|
|
55500
|
-
var parsedUrl = (typeof url3 === "string" ? parseUrl(url3) : url3) || {};
|
|
55501
|
-
var proto2 = parsedUrl.protocol;
|
|
55502
|
-
var hostname3 = parsedUrl.host;
|
|
55503
|
-
var port = parsedUrl.port;
|
|
55504
|
-
if (typeof hostname3 !== "string" || !hostname3 || typeof proto2 !== "string") {
|
|
55505
|
-
return "";
|
|
55506
|
-
}
|
|
55507
|
-
proto2 = proto2.split(":", 1)[0];
|
|
55508
|
-
hostname3 = hostname3.replace(/:\d*$/, "");
|
|
55509
|
-
port = parseInt(port) || DEFAULT_PORTS[proto2] || 0;
|
|
55510
|
-
if (!shouldProxy(hostname3, port)) {
|
|
55511
|
-
return "";
|
|
55512
|
-
}
|
|
55513
|
-
var proxy = getEnv2(proto2 + "_proxy") || getEnv2("all_proxy");
|
|
55514
|
-
if (proxy && proxy.indexOf("://") === -1) {
|
|
55515
|
-
proxy = proto2 + "://" + proxy;
|
|
55516
|
-
}
|
|
55517
|
-
return proxy;
|
|
55518
|
-
}
|
|
55519
|
-
function shouldProxy(hostname3, port) {
|
|
55520
|
-
var NO_PROXY = getEnv2("no_proxy").toLowerCase();
|
|
55521
|
-
if (!NO_PROXY) {
|
|
55522
|
-
return true;
|
|
55523
|
-
}
|
|
55524
|
-
if (NO_PROXY === "*") {
|
|
55525
|
-
return false;
|
|
55526
|
-
}
|
|
55527
|
-
return NO_PROXY.split(/[,\s]/).every(function(proxy) {
|
|
55528
|
-
if (!proxy) {
|
|
55529
|
-
return true;
|
|
55530
|
-
}
|
|
55531
|
-
var parsedProxy = proxy.match(/^(.+):(\d+)$/);
|
|
55532
|
-
var parsedProxyHostname = parsedProxy ? parsedProxy[1] : proxy;
|
|
55533
|
-
var parsedProxyPort = parsedProxy ? parseInt(parsedProxy[2]) : 0;
|
|
55534
|
-
if (parsedProxyPort && parsedProxyPort !== port) {
|
|
55535
|
-
return true;
|
|
55536
|
-
}
|
|
55537
|
-
if (!/^[.*]/.test(parsedProxyHostname)) {
|
|
55538
|
-
return hostname3 !== parsedProxyHostname;
|
|
55539
|
-
}
|
|
55540
|
-
if (parsedProxyHostname.charAt(0) === "*") {
|
|
55541
|
-
parsedProxyHostname = parsedProxyHostname.slice(1);
|
|
55542
|
-
}
|
|
55543
|
-
return !hostname3.endsWith(parsedProxyHostname);
|
|
55544
|
-
});
|
|
55545
|
-
}
|
|
55546
|
-
function getEnv2(key) {
|
|
55547
|
-
return process.env[key.toLowerCase()] || process.env[key.toUpperCase()] || "";
|
|
55548
|
-
}
|
|
55549
|
-
var DEFAULT_PORTS;
|
|
55550
|
-
var init_proxy_from_env = __esm(() => {
|
|
55551
|
-
DEFAULT_PORTS = {
|
|
55400
|
+
var require_proxy_from_env = __commonJS((exports) => {
|
|
55401
|
+
var parseUrl = __require("url").parse;
|
|
55402
|
+
var DEFAULT_PORTS = {
|
|
55552
55403
|
ftp: 21,
|
|
55553
55404
|
gopher: 70,
|
|
55554
55405
|
http: 80,
|
|
@@ -55556,6 +55407,60 @@ var init_proxy_from_env = __esm(() => {
|
|
|
55556
55407
|
ws: 80,
|
|
55557
55408
|
wss: 443
|
|
55558
55409
|
};
|
|
55410
|
+
var stringEndsWith = String.prototype.endsWith || function(s) {
|
|
55411
|
+
return s.length <= this.length && this.indexOf(s, this.length - s.length) !== -1;
|
|
55412
|
+
};
|
|
55413
|
+
function getProxyForUrl(url3) {
|
|
55414
|
+
var parsedUrl = typeof url3 === "string" ? parseUrl(url3) : url3 || {};
|
|
55415
|
+
var proto2 = parsedUrl.protocol;
|
|
55416
|
+
var hostname3 = parsedUrl.host;
|
|
55417
|
+
var port = parsedUrl.port;
|
|
55418
|
+
if (typeof hostname3 !== "string" || !hostname3 || typeof proto2 !== "string") {
|
|
55419
|
+
return "";
|
|
55420
|
+
}
|
|
55421
|
+
proto2 = proto2.split(":", 1)[0];
|
|
55422
|
+
hostname3 = hostname3.replace(/:\d*$/, "");
|
|
55423
|
+
port = parseInt(port) || DEFAULT_PORTS[proto2] || 0;
|
|
55424
|
+
if (!shouldProxy(hostname3, port)) {
|
|
55425
|
+
return "";
|
|
55426
|
+
}
|
|
55427
|
+
var proxy = getEnv2("npm_config_" + proto2 + "_proxy") || getEnv2(proto2 + "_proxy") || getEnv2("npm_config_proxy") || getEnv2("all_proxy");
|
|
55428
|
+
if (proxy && proxy.indexOf("://") === -1) {
|
|
55429
|
+
proxy = proto2 + "://" + proxy;
|
|
55430
|
+
}
|
|
55431
|
+
return proxy;
|
|
55432
|
+
}
|
|
55433
|
+
function shouldProxy(hostname3, port) {
|
|
55434
|
+
var NO_PROXY = (getEnv2("npm_config_no_proxy") || getEnv2("no_proxy")).toLowerCase();
|
|
55435
|
+
if (!NO_PROXY) {
|
|
55436
|
+
return true;
|
|
55437
|
+
}
|
|
55438
|
+
if (NO_PROXY === "*") {
|
|
55439
|
+
return false;
|
|
55440
|
+
}
|
|
55441
|
+
return NO_PROXY.split(/[,\s]/).every(function(proxy) {
|
|
55442
|
+
if (!proxy) {
|
|
55443
|
+
return true;
|
|
55444
|
+
}
|
|
55445
|
+
var parsedProxy = proxy.match(/^(.+):(\d+)$/);
|
|
55446
|
+
var parsedProxyHostname = parsedProxy ? parsedProxy[1] : proxy;
|
|
55447
|
+
var parsedProxyPort = parsedProxy ? parseInt(parsedProxy[2]) : 0;
|
|
55448
|
+
if (parsedProxyPort && parsedProxyPort !== port) {
|
|
55449
|
+
return true;
|
|
55450
|
+
}
|
|
55451
|
+
if (!/^[.*]/.test(parsedProxyHostname)) {
|
|
55452
|
+
return hostname3 !== parsedProxyHostname;
|
|
55453
|
+
}
|
|
55454
|
+
if (parsedProxyHostname.charAt(0) === "*") {
|
|
55455
|
+
parsedProxyHostname = parsedProxyHostname.slice(1);
|
|
55456
|
+
}
|
|
55457
|
+
return !stringEndsWith.call(hostname3, parsedProxyHostname);
|
|
55458
|
+
});
|
|
55459
|
+
}
|
|
55460
|
+
function getEnv2(key) {
|
|
55461
|
+
return process.env[key.toLowerCase()] || process.env[key.toUpperCase()] || "";
|
|
55462
|
+
}
|
|
55463
|
+
exports.getProxyForUrl = getProxyForUrl;
|
|
55559
55464
|
});
|
|
55560
55465
|
|
|
55561
55466
|
// node_modules/ms/index.js
|
|
@@ -56641,7 +56546,7 @@ var require_follow_redirects = __commonJS((exports, module) => {
|
|
|
56641
56546
|
removeMatchingHeaders(/^content-/i, this._options.headers);
|
|
56642
56547
|
}
|
|
56643
56548
|
var currentHostHeader = removeMatchingHeaders(/^host$/i, this._options.headers);
|
|
56644
|
-
var currentUrlParts =
|
|
56549
|
+
var currentUrlParts = parseUrl(this._currentUrl);
|
|
56645
56550
|
var currentHost = currentHostHeader || currentUrlParts.host;
|
|
56646
56551
|
var currentUrl = /^\w+:/.test(location) ? this._currentUrl : url3.format(Object.assign(currentUrlParts, { host: currentHost }));
|
|
56647
56552
|
var redirectUrl = resolveUrl(location, currentUrl);
|
|
@@ -56680,7 +56585,7 @@ var require_follow_redirects = __commonJS((exports, module) => {
|
|
|
56680
56585
|
if (isURL(input)) {
|
|
56681
56586
|
input = spreadUrlObject(input);
|
|
56682
56587
|
} else if (isString2(input)) {
|
|
56683
|
-
input = spreadUrlObject(
|
|
56588
|
+
input = spreadUrlObject(parseUrl(input));
|
|
56684
56589
|
} else {
|
|
56685
56590
|
callback = options;
|
|
56686
56591
|
options = validateUrl(input);
|
|
@@ -56715,7 +56620,7 @@ var require_follow_redirects = __commonJS((exports, module) => {
|
|
|
56715
56620
|
return exports2;
|
|
56716
56621
|
}
|
|
56717
56622
|
function noop6() {}
|
|
56718
|
-
function
|
|
56623
|
+
function parseUrl(input) {
|
|
56719
56624
|
var parsed;
|
|
56720
56625
|
if (useNativeURL) {
|
|
56721
56626
|
parsed = new URL2(input);
|
|
@@ -56728,7 +56633,7 @@ var require_follow_redirects = __commonJS((exports, module) => {
|
|
|
56728
56633
|
return parsed;
|
|
56729
56634
|
}
|
|
56730
56635
|
function resolveUrl(relative4, base2) {
|
|
56731
|
-
return useNativeURL ? new URL2(relative4, base2) :
|
|
56636
|
+
return useNativeURL ? new URL2(relative4, base2) : parseUrl(url3.resolve(base2, relative4));
|
|
56732
56637
|
}
|
|
56733
56638
|
function validateUrl(input) {
|
|
56734
56639
|
if (/^\[/.test(input.hostname) && !/^\[[:0-9a-f]+\]$/i.test(input.hostname)) {
|
|
@@ -56814,7 +56719,7 @@ var require_follow_redirects = __commonJS((exports, module) => {
|
|
|
56814
56719
|
});
|
|
56815
56720
|
|
|
56816
56721
|
// node_modules/axios/lib/env/data.js
|
|
56817
|
-
var VERSION2 = "1.
|
|
56722
|
+
var VERSION2 = "1.7.9";
|
|
56818
56723
|
|
|
56819
56724
|
// node_modules/axios/lib/helpers/parseProtocol.js
|
|
56820
56725
|
function parseProtocol(url3) {
|
|
@@ -57035,7 +56940,7 @@ var BOUNDARY_ALPHABET, textEncoder3, CRLF = `\r
|
|
|
57035
56940
|
const {
|
|
57036
56941
|
tag = "form-data-boundary",
|
|
57037
56942
|
size = 25,
|
|
57038
|
-
boundary = tag + "-" +
|
|
56943
|
+
boundary = tag + "-" + utils_default.generateString(size, BOUNDARY_ALPHABET)
|
|
57039
56944
|
} = options || {};
|
|
57040
56945
|
if (!utils_default.isFormData(form)) {
|
|
57041
56946
|
throw TypeError("FormData instance required");
|
|
@@ -57044,7 +56949,7 @@ var BOUNDARY_ALPHABET, textEncoder3, CRLF = `\r
|
|
|
57044
56949
|
throw Error("boundary must be 10-70 characters long");
|
|
57045
56950
|
}
|
|
57046
56951
|
const boundaryBytes = textEncoder3.encode("--" + boundary + CRLF);
|
|
57047
|
-
const footerBytes = textEncoder3.encode("--" + boundary + "--" + CRLF);
|
|
56952
|
+
const footerBytes = textEncoder3.encode("--" + boundary + "--" + CRLF + CRLF);
|
|
57048
56953
|
let contentLength = footerBytes.byteLength;
|
|
57049
56954
|
const parts = Array.from(form.entries()).map(([name, value]) => {
|
|
57050
56955
|
const part = new FormDataPart(name, value);
|
|
@@ -57071,8 +56976,7 @@ var BOUNDARY_ALPHABET, textEncoder3, CRLF = `\r
|
|
|
57071
56976
|
var init_formDataToStream = __esm(() => {
|
|
57072
56977
|
init_utils3();
|
|
57073
56978
|
init_readBlob();
|
|
57074
|
-
|
|
57075
|
-
BOUNDARY_ALPHABET = platform_default.ALPHABET.ALPHA_DIGIT + "-_";
|
|
56979
|
+
BOUNDARY_ALPHABET = utils_default.ALPHABET.ALPHA_DIGIT + "-_";
|
|
57076
56980
|
textEncoder3 = typeof TextEncoder === "function" ? new TextEncoder : new util.TextEncoder;
|
|
57077
56981
|
CRLF_BYTES = textEncoder3.encode(CRLF);
|
|
57078
56982
|
formDataToStream_default = formDataToStream;
|
|
@@ -57173,7 +57077,7 @@ function throttle(fn, freq) {
|
|
|
57173
57077
|
clearTimeout(timer);
|
|
57174
57078
|
timer = null;
|
|
57175
57079
|
}
|
|
57176
|
-
fn(
|
|
57080
|
+
fn.apply(null, args);
|
|
57177
57081
|
};
|
|
57178
57082
|
const throttled = (...args) => {
|
|
57179
57083
|
const now = Date.now();
|
|
@@ -57224,14 +57128,11 @@ var progressEventReducer = (listener, isDownloadStream, freq = 3) => {
|
|
|
57224
57128
|
}, freq);
|
|
57225
57129
|
}, progressEventDecorator = (total, throttled) => {
|
|
57226
57130
|
const lengthComputable = total != null;
|
|
57227
|
-
return [
|
|
57228
|
-
|
|
57229
|
-
|
|
57230
|
-
|
|
57231
|
-
|
|
57232
|
-
}),
|
|
57233
|
-
throttled[1]
|
|
57234
|
-
];
|
|
57131
|
+
return [(loaded) => throttled[0]({
|
|
57132
|
+
lengthComputable,
|
|
57133
|
+
total,
|
|
57134
|
+
loaded
|
|
57135
|
+
}), throttled[1]];
|
|
57235
57136
|
}, asyncDecorator = (fn) => (...args) => utils_default.asap(() => fn(...args));
|
|
57236
57137
|
var init_progressEventReducer = __esm(() => {
|
|
57237
57138
|
init_speedometer();
|
|
@@ -57239,136 +57140,13 @@ var init_progressEventReducer = __esm(() => {
|
|
|
57239
57140
|
init_utils3();
|
|
57240
57141
|
});
|
|
57241
57142
|
|
|
57242
|
-
// node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js
|
|
57243
|
-
function estimateDataURLDecodedBytes(url3) {
|
|
57244
|
-
if (!url3 || typeof url3 !== "string")
|
|
57245
|
-
return 0;
|
|
57246
|
-
if (!url3.startsWith("data:"))
|
|
57247
|
-
return 0;
|
|
57248
|
-
const comma = url3.indexOf(",");
|
|
57249
|
-
if (comma < 0)
|
|
57250
|
-
return 0;
|
|
57251
|
-
const meta3 = url3.slice(5, comma);
|
|
57252
|
-
const body = url3.slice(comma + 1);
|
|
57253
|
-
const isBase64 = /;base64/i.test(meta3);
|
|
57254
|
-
if (isBase64) {
|
|
57255
|
-
let effectiveLen = body.length;
|
|
57256
|
-
const len = body.length;
|
|
57257
|
-
for (let i2 = 0;i2 < len; i2++) {
|
|
57258
|
-
if (body.charCodeAt(i2) === 37 && i2 + 2 < len) {
|
|
57259
|
-
const a2 = body.charCodeAt(i2 + 1);
|
|
57260
|
-
const b = body.charCodeAt(i2 + 2);
|
|
57261
|
-
const isHex = (a2 >= 48 && a2 <= 57 || a2 >= 65 && a2 <= 70 || a2 >= 97 && a2 <= 102) && (b >= 48 && b <= 57 || b >= 65 && b <= 70 || b >= 97 && b <= 102);
|
|
57262
|
-
if (isHex) {
|
|
57263
|
-
effectiveLen -= 2;
|
|
57264
|
-
i2 += 2;
|
|
57265
|
-
}
|
|
57266
|
-
}
|
|
57267
|
-
}
|
|
57268
|
-
let pad = 0;
|
|
57269
|
-
let idx = len - 1;
|
|
57270
|
-
const tailIsPct3D = (j) => j >= 2 && body.charCodeAt(j - 2) === 37 && body.charCodeAt(j - 1) === 51 && (body.charCodeAt(j) === 68 || body.charCodeAt(j) === 100);
|
|
57271
|
-
if (idx >= 0) {
|
|
57272
|
-
if (body.charCodeAt(idx) === 61) {
|
|
57273
|
-
pad++;
|
|
57274
|
-
idx--;
|
|
57275
|
-
} else if (tailIsPct3D(idx)) {
|
|
57276
|
-
pad++;
|
|
57277
|
-
idx -= 3;
|
|
57278
|
-
}
|
|
57279
|
-
}
|
|
57280
|
-
if (pad === 1 && idx >= 0) {
|
|
57281
|
-
if (body.charCodeAt(idx) === 61) {
|
|
57282
|
-
pad++;
|
|
57283
|
-
} else if (tailIsPct3D(idx)) {
|
|
57284
|
-
pad++;
|
|
57285
|
-
}
|
|
57286
|
-
}
|
|
57287
|
-
const groups = Math.floor(effectiveLen / 4);
|
|
57288
|
-
const bytes = groups * 3 - (pad || 0);
|
|
57289
|
-
return bytes > 0 ? bytes : 0;
|
|
57290
|
-
}
|
|
57291
|
-
return Buffer.byteLength(body, "utf8");
|
|
57292
|
-
}
|
|
57293
|
-
|
|
57294
57143
|
// node_modules/axios/lib/adapters/http.js
|
|
57295
57144
|
import http from "http";
|
|
57296
57145
|
import https from "https";
|
|
57297
|
-
import http2 from "http2";
|
|
57298
57146
|
import util2 from "util";
|
|
57299
57147
|
import zlib from "zlib";
|
|
57300
57148
|
import stream3 from "stream";
|
|
57301
57149
|
import { EventEmitter as EventEmitter2 } from "events";
|
|
57302
|
-
|
|
57303
|
-
class Http2Sessions {
|
|
57304
|
-
constructor() {
|
|
57305
|
-
this.sessions = Object.create(null);
|
|
57306
|
-
}
|
|
57307
|
-
getSession(authority, options) {
|
|
57308
|
-
options = Object.assign({
|
|
57309
|
-
sessionTimeout: 1000
|
|
57310
|
-
}, options);
|
|
57311
|
-
let authoritySessions = this.sessions[authority];
|
|
57312
|
-
if (authoritySessions) {
|
|
57313
|
-
let len = authoritySessions.length;
|
|
57314
|
-
for (let i2 = 0;i2 < len; i2++) {
|
|
57315
|
-
const [sessionHandle, sessionOptions] = authoritySessions[i2];
|
|
57316
|
-
if (!sessionHandle.destroyed && !sessionHandle.closed && util2.isDeepStrictEqual(sessionOptions, options)) {
|
|
57317
|
-
return sessionHandle;
|
|
57318
|
-
}
|
|
57319
|
-
}
|
|
57320
|
-
}
|
|
57321
|
-
const session = http2.connect(authority, options);
|
|
57322
|
-
let removed;
|
|
57323
|
-
const removeSession = () => {
|
|
57324
|
-
if (removed) {
|
|
57325
|
-
return;
|
|
57326
|
-
}
|
|
57327
|
-
removed = true;
|
|
57328
|
-
let entries = authoritySessions, len = entries.length, i2 = len;
|
|
57329
|
-
while (i2--) {
|
|
57330
|
-
if (entries[i2][0] === session) {
|
|
57331
|
-
if (len === 1) {
|
|
57332
|
-
delete this.sessions[authority];
|
|
57333
|
-
} else {
|
|
57334
|
-
entries.splice(i2, 1);
|
|
57335
|
-
}
|
|
57336
|
-
if (!session.closed) {
|
|
57337
|
-
session.close();
|
|
57338
|
-
}
|
|
57339
|
-
return;
|
|
57340
|
-
}
|
|
57341
|
-
}
|
|
57342
|
-
};
|
|
57343
|
-
const originalRequestFn = session.request;
|
|
57344
|
-
const { sessionTimeout } = options;
|
|
57345
|
-
if (sessionTimeout != null) {
|
|
57346
|
-
let timer;
|
|
57347
|
-
let streamsCount = 0;
|
|
57348
|
-
session.request = function() {
|
|
57349
|
-
const stream4 = originalRequestFn.apply(this, arguments);
|
|
57350
|
-
streamsCount++;
|
|
57351
|
-
if (timer) {
|
|
57352
|
-
clearTimeout(timer);
|
|
57353
|
-
timer = null;
|
|
57354
|
-
}
|
|
57355
|
-
stream4.once("close", () => {
|
|
57356
|
-
if (!--streamsCount) {
|
|
57357
|
-
timer = setTimeout(() => {
|
|
57358
|
-
timer = null;
|
|
57359
|
-
removeSession();
|
|
57360
|
-
}, sessionTimeout);
|
|
57361
|
-
}
|
|
57362
|
-
});
|
|
57363
|
-
return stream4;
|
|
57364
|
-
};
|
|
57365
|
-
}
|
|
57366
|
-
session.once("close", removeSession);
|
|
57367
|
-
let entry = [session, options];
|
|
57368
|
-
authoritySessions ? authoritySessions.push(entry) : authoritySessions = this.sessions[authority] = [entry];
|
|
57369
|
-
return session;
|
|
57370
|
-
}
|
|
57371
|
-
}
|
|
57372
57150
|
function dispatchBeforeRedirect(options, responseDetails) {
|
|
57373
57151
|
if (options.beforeRedirects.proxy) {
|
|
57374
57152
|
options.beforeRedirects.proxy(options);
|
|
@@ -57380,7 +57158,7 @@ function dispatchBeforeRedirect(options, responseDetails) {
|
|
|
57380
57158
|
function setProxy(options, configProxy, location) {
|
|
57381
57159
|
let proxy = configProxy;
|
|
57382
57160
|
if (!proxy && proxy !== false) {
|
|
57383
|
-
const proxyUrl = getProxyForUrl(location);
|
|
57161
|
+
const proxyUrl = import_proxy_from_env.default.getProxyForUrl(location);
|
|
57384
57162
|
if (proxyUrl) {
|
|
57385
57163
|
proxy = new URL(proxyUrl);
|
|
57386
57164
|
}
|
|
@@ -57390,11 +57168,8 @@ function setProxy(options, configProxy, location) {
|
|
|
57390
57168
|
proxy.auth = (proxy.username || "") + ":" + (proxy.password || "");
|
|
57391
57169
|
}
|
|
57392
57170
|
if (proxy.auth) {
|
|
57393
|
-
|
|
57394
|
-
if (validProxyAuth) {
|
|
57171
|
+
if (proxy.auth.username || proxy.auth.password) {
|
|
57395
57172
|
proxy.auth = (proxy.auth.username || "") + ":" + (proxy.auth.password || "");
|
|
57396
|
-
} else if (typeof proxy.auth === "object") {
|
|
57397
|
-
throw new AxiosError_default("Invalid proxy authorization", AxiosError_default.ERR_BAD_OPTION, { proxy });
|
|
57398
57173
|
}
|
|
57399
57174
|
const base644 = Buffer.from(proxy.auth, "utf8").toString("base64");
|
|
57400
57175
|
options.headers["Proxy-Authorization"] = "Basic " + base644;
|
|
@@ -57413,10 +57188,10 @@ function setProxy(options, configProxy, location) {
|
|
|
57413
57188
|
setProxy(redirectOptions, configProxy, redirectOptions.href);
|
|
57414
57189
|
};
|
|
57415
57190
|
}
|
|
57416
|
-
var import_follow_redirects, zlibOptions, brotliOptions, isBrotliSupported, httpFollow, httpsFollow, isHttps, supportedProtocols, flushOnFinish = (stream4, [throttled, flush]) => {
|
|
57191
|
+
var import_proxy_from_env, import_follow_redirects, zlibOptions, brotliOptions, isBrotliSupported, httpFollow, httpsFollow, isHttps, supportedProtocols, flushOnFinish = (stream4, [throttled, flush]) => {
|
|
57417
57192
|
stream4.on("end", flush).on("error", flush);
|
|
57418
57193
|
return throttled;
|
|
57419
|
-
},
|
|
57194
|
+
}, isHttpAdapterSupported, wrapAsync = (asyncExecutor) => {
|
|
57420
57195
|
return new Promise((resolve10, reject) => {
|
|
57421
57196
|
let onDone;
|
|
57422
57197
|
let isDone;
|
|
@@ -57444,13 +57219,12 @@ var import_follow_redirects, zlibOptions, brotliOptions, isBrotliSupported, http
|
|
|
57444
57219
|
address,
|
|
57445
57220
|
family: family || (address.indexOf(".") < 0 ? 6 : 4)
|
|
57446
57221
|
};
|
|
57447
|
-
}, buildAddressEntry = (address, family) => resolveFamily(utils_default.isObject(address) ? address : { address, family }),
|
|
57222
|
+
}, buildAddressEntry = (address, family) => resolveFamily(utils_default.isObject(address) ? address : { address, family }), http_default;
|
|
57448
57223
|
var init_http = __esm(() => {
|
|
57449
57224
|
init_utils3();
|
|
57450
57225
|
init_settle();
|
|
57451
57226
|
init_buildFullPath();
|
|
57452
57227
|
init_buildURL();
|
|
57453
|
-
init_proxy_from_env();
|
|
57454
57228
|
init_transitional();
|
|
57455
57229
|
init_AxiosError();
|
|
57456
57230
|
init_CanceledError();
|
|
@@ -57463,6 +57237,7 @@ var init_http = __esm(() => {
|
|
|
57463
57237
|
init_ZlibHeaderTransformStream();
|
|
57464
57238
|
init_callbackify();
|
|
57465
57239
|
init_progressEventReducer();
|
|
57240
|
+
import_proxy_from_env = __toESM(require_proxy_from_env(), 1);
|
|
57466
57241
|
import_follow_redirects = __toESM(require_follow_redirects(), 1);
|
|
57467
57242
|
zlibOptions = {
|
|
57468
57243
|
flush: zlib.constants.Z_SYNC_FLUSH,
|
|
@@ -57478,51 +57253,15 @@ var init_http = __esm(() => {
|
|
|
57478
57253
|
supportedProtocols = platform_default.protocols.map((protocol) => {
|
|
57479
57254
|
return protocol + ":";
|
|
57480
57255
|
});
|
|
57481
|
-
http2Sessions = new Http2Sessions;
|
|
57482
57256
|
isHttpAdapterSupported = typeof process !== "undefined" && utils_default.kindOf(process) === "process";
|
|
57483
|
-
http2Transport = {
|
|
57484
|
-
request(options, cb) {
|
|
57485
|
-
const authority = options.protocol + "//" + options.hostname + ":" + (options.port || (options.protocol === "https:" ? 443 : 80));
|
|
57486
|
-
const { http2Options, headers } = options;
|
|
57487
|
-
const session = http2Sessions.getSession(authority, http2Options);
|
|
57488
|
-
const { HTTP2_HEADER_SCHEME, HTTP2_HEADER_METHOD, HTTP2_HEADER_PATH, HTTP2_HEADER_STATUS } = http2.constants;
|
|
57489
|
-
const http2Headers = {
|
|
57490
|
-
[HTTP2_HEADER_SCHEME]: options.protocol.replace(":", ""),
|
|
57491
|
-
[HTTP2_HEADER_METHOD]: options.method,
|
|
57492
|
-
[HTTP2_HEADER_PATH]: options.path
|
|
57493
|
-
};
|
|
57494
|
-
utils_default.forEach(headers, (header, name) => {
|
|
57495
|
-
name.charAt(0) !== ":" && (http2Headers[name] = header);
|
|
57496
|
-
});
|
|
57497
|
-
const req = session.request(http2Headers);
|
|
57498
|
-
req.once("response", (responseHeaders) => {
|
|
57499
|
-
const response = req;
|
|
57500
|
-
responseHeaders = Object.assign({}, responseHeaders);
|
|
57501
|
-
const status = responseHeaders[HTTP2_HEADER_STATUS];
|
|
57502
|
-
delete responseHeaders[HTTP2_HEADER_STATUS];
|
|
57503
|
-
response.headers = responseHeaders;
|
|
57504
|
-
response.statusCode = +status;
|
|
57505
|
-
cb(response);
|
|
57506
|
-
});
|
|
57507
|
-
return req;
|
|
57508
|
-
}
|
|
57509
|
-
};
|
|
57510
57257
|
http_default = isHttpAdapterSupported && function httpAdapter(config2) {
|
|
57511
57258
|
return wrapAsync(async function dispatchHttpRequest(resolve10, reject, onDone) {
|
|
57512
|
-
let { data, lookup, family
|
|
57259
|
+
let { data, lookup, family } = config2;
|
|
57513
57260
|
const { responseType, responseEncoding } = config2;
|
|
57514
57261
|
const method = config2.method.toUpperCase();
|
|
57515
57262
|
let isDone;
|
|
57516
57263
|
let rejected = false;
|
|
57517
57264
|
let req;
|
|
57518
|
-
httpVersion = +httpVersion;
|
|
57519
|
-
if (Number.isNaN(httpVersion)) {
|
|
57520
|
-
throw TypeError(`Invalid protocol version: '${config2.httpVersion}' is not a number`);
|
|
57521
|
-
}
|
|
57522
|
-
if (httpVersion !== 1 && httpVersion !== 2) {
|
|
57523
|
-
throw TypeError(`Unsupported protocol version '${httpVersion}'`);
|
|
57524
|
-
}
|
|
57525
|
-
const isHttp2 = httpVersion === 2;
|
|
57526
57265
|
if (lookup) {
|
|
57527
57266
|
const _lookup = callbackify_default(lookup, (value) => utils_default.isArray(value) ? value : [value]);
|
|
57528
57267
|
lookup = (hostname3, opt, cb) => {
|
|
@@ -57535,15 +57274,7 @@ var init_http = __esm(() => {
|
|
|
57535
57274
|
});
|
|
57536
57275
|
};
|
|
57537
57276
|
}
|
|
57538
|
-
const
|
|
57539
|
-
function abort(reason) {
|
|
57540
|
-
try {
|
|
57541
|
-
abortEmitter.emit("abort", !reason || reason.type ? new CanceledError_default(null, config2, req) : reason);
|
|
57542
|
-
} catch (err) {
|
|
57543
|
-
console.warn("emit error", err);
|
|
57544
|
-
}
|
|
57545
|
-
}
|
|
57546
|
-
abortEmitter.once("abort", reject);
|
|
57277
|
+
const emitter = new EventEmitter2;
|
|
57547
57278
|
const onFinished = () => {
|
|
57548
57279
|
if (config2.cancelToken) {
|
|
57549
57280
|
config2.cancelToken.unsubscribe(abort);
|
|
@@ -57551,42 +57282,29 @@ var init_http = __esm(() => {
|
|
|
57551
57282
|
if (config2.signal) {
|
|
57552
57283
|
config2.signal.removeEventListener("abort", abort);
|
|
57553
57284
|
}
|
|
57554
|
-
|
|
57285
|
+
emitter.removeAllListeners();
|
|
57555
57286
|
};
|
|
57556
|
-
|
|
57557
|
-
config2.cancelToken && config2.cancelToken.subscribe(abort);
|
|
57558
|
-
if (config2.signal) {
|
|
57559
|
-
config2.signal.aborted ? abort() : config2.signal.addEventListener("abort", abort);
|
|
57560
|
-
}
|
|
57561
|
-
}
|
|
57562
|
-
onDone((response, isRejected) => {
|
|
57287
|
+
onDone((value, isRejected) => {
|
|
57563
57288
|
isDone = true;
|
|
57564
57289
|
if (isRejected) {
|
|
57565
57290
|
rejected = true;
|
|
57566
57291
|
onFinished();
|
|
57567
|
-
return;
|
|
57568
|
-
}
|
|
57569
|
-
const { data: data2 } = response;
|
|
57570
|
-
if (data2 instanceof stream3.Readable || data2 instanceof stream3.Duplex) {
|
|
57571
|
-
const offListeners = stream3.finished(data2, () => {
|
|
57572
|
-
offListeners();
|
|
57573
|
-
onFinished();
|
|
57574
|
-
});
|
|
57575
|
-
} else {
|
|
57576
|
-
onFinished();
|
|
57577
57292
|
}
|
|
57578
57293
|
});
|
|
57579
|
-
|
|
57294
|
+
function abort(reason) {
|
|
57295
|
+
emitter.emit("abort", !reason || reason.type ? new CanceledError_default(null, config2, req) : reason);
|
|
57296
|
+
}
|
|
57297
|
+
emitter.once("abort", reject);
|
|
57298
|
+
if (config2.cancelToken || config2.signal) {
|
|
57299
|
+
config2.cancelToken && config2.cancelToken.subscribe(abort);
|
|
57300
|
+
if (config2.signal) {
|
|
57301
|
+
config2.signal.aborted ? abort() : config2.signal.addEventListener("abort", abort);
|
|
57302
|
+
}
|
|
57303
|
+
}
|
|
57304
|
+
const fullPath = buildFullPath(config2.baseURL, config2.url);
|
|
57580
57305
|
const parsed = new URL(fullPath, platform_default.hasBrowserEnv ? platform_default.origin : undefined);
|
|
57581
57306
|
const protocol = parsed.protocol || supportedProtocols[0];
|
|
57582
57307
|
if (protocol === "data:") {
|
|
57583
|
-
if (config2.maxContentLength > -1) {
|
|
57584
|
-
const dataUrl = String(config2.url || fullPath || "");
|
|
57585
|
-
const estimated = estimateDataURLDecodedBytes(dataUrl);
|
|
57586
|
-
if (estimated > config2.maxContentLength) {
|
|
57587
|
-
return reject(new AxiosError_default("maxContentLength size of " + config2.maxContentLength + " exceeded", AxiosError_default.ERR_BAD_RESPONSE, config2));
|
|
57588
|
-
}
|
|
57589
|
-
}
|
|
57590
57308
|
let convertedData;
|
|
57591
57309
|
if (method !== "GET") {
|
|
57592
57310
|
return settle(resolve10, reject, {
|
|
@@ -57672,12 +57390,9 @@ var init_http = __esm(() => {
|
|
|
57672
57390
|
if (!utils_default.isStream(data)) {
|
|
57673
57391
|
data = stream3.Readable.from(data, { objectMode: false });
|
|
57674
57392
|
}
|
|
57675
|
-
data = stream3.pipeline([
|
|
57676
|
-
|
|
57677
|
-
|
|
57678
|
-
maxRate: utils_default.toFiniteNumber(maxUploadRate)
|
|
57679
|
-
})
|
|
57680
|
-
], utils_default.noop);
|
|
57393
|
+
data = stream3.pipeline([data, new AxiosTransformStream_default({
|
|
57394
|
+
maxRate: utils_default.toFiniteNumber(maxUploadRate)
|
|
57395
|
+
})], utils_default.noop);
|
|
57681
57396
|
onUploadProgress && data.on("progress", flushOnFinish(data, progressEventDecorator(contentLength, progressEventReducer(asyncDecorator(onUploadProgress), false, 3))));
|
|
57682
57397
|
}
|
|
57683
57398
|
let auth = undefined;
|
|
@@ -57712,8 +57427,7 @@ var init_http = __esm(() => {
|
|
|
57712
57427
|
protocol,
|
|
57713
57428
|
family,
|
|
57714
57429
|
beforeRedirect: dispatchBeforeRedirect,
|
|
57715
|
-
beforeRedirects: {}
|
|
57716
|
-
http2Options
|
|
57430
|
+
beforeRedirects: {}
|
|
57717
57431
|
};
|
|
57718
57432
|
!utils_default.isUndefined(lookup) && (options.lookup = lookup);
|
|
57719
57433
|
if (config2.socketPath) {
|
|
@@ -57726,22 +57440,18 @@ var init_http = __esm(() => {
|
|
|
57726
57440
|
let transport;
|
|
57727
57441
|
const isHttpsRequest = isHttps.test(options.protocol);
|
|
57728
57442
|
options.agent = isHttpsRequest ? config2.httpsAgent : config2.httpAgent;
|
|
57729
|
-
if (
|
|
57730
|
-
transport =
|
|
57443
|
+
if (config2.transport) {
|
|
57444
|
+
transport = config2.transport;
|
|
57445
|
+
} else if (config2.maxRedirects === 0) {
|
|
57446
|
+
transport = isHttpsRequest ? https : http;
|
|
57731
57447
|
} else {
|
|
57732
|
-
if (config2.
|
|
57733
|
-
|
|
57734
|
-
}
|
|
57735
|
-
|
|
57736
|
-
|
|
57737
|
-
if (config2.maxRedirects) {
|
|
57738
|
-
options.maxRedirects = config2.maxRedirects;
|
|
57739
|
-
}
|
|
57740
|
-
if (config2.beforeRedirect) {
|
|
57741
|
-
options.beforeRedirects.config = config2.beforeRedirect;
|
|
57742
|
-
}
|
|
57743
|
-
transport = isHttpsRequest ? httpsFollow : httpFollow;
|
|
57448
|
+
if (config2.maxRedirects) {
|
|
57449
|
+
options.maxRedirects = config2.maxRedirects;
|
|
57450
|
+
}
|
|
57451
|
+
if (config2.beforeRedirect) {
|
|
57452
|
+
options.beforeRedirects.config = config2.beforeRedirect;
|
|
57744
57453
|
}
|
|
57454
|
+
transport = isHttpsRequest ? httpsFollow : httpFollow;
|
|
57745
57455
|
}
|
|
57746
57456
|
if (config2.maxBodyLength > -1) {
|
|
57747
57457
|
options.maxBodyLength = config2.maxBodyLength;
|
|
@@ -57755,7 +57465,7 @@ var init_http = __esm(() => {
|
|
|
57755
57465
|
if (req.destroyed)
|
|
57756
57466
|
return;
|
|
57757
57467
|
const streams = [res];
|
|
57758
|
-
const responseLength =
|
|
57468
|
+
const responseLength = +res.headers["content-length"];
|
|
57759
57469
|
if (onDownloadProgress || maxDownloadRate) {
|
|
57760
57470
|
const transformStream = new AxiosTransformStream_default({
|
|
57761
57471
|
maxRate: utils_default.toFiniteNumber(maxDownloadRate)
|
|
@@ -57790,6 +57500,10 @@ var init_http = __esm(() => {
|
|
|
57790
57500
|
}
|
|
57791
57501
|
}
|
|
57792
57502
|
responseStream = streams.length > 1 ? stream3.pipeline(streams, utils_default.noop) : streams[0];
|
|
57503
|
+
const offListeners = stream3.finished(responseStream, () => {
|
|
57504
|
+
offListeners();
|
|
57505
|
+
onFinished();
|
|
57506
|
+
});
|
|
57793
57507
|
const response = {
|
|
57794
57508
|
status: res.statusCode,
|
|
57795
57509
|
statusText: res.statusMessage,
|
|
@@ -57809,7 +57523,7 @@ var init_http = __esm(() => {
|
|
|
57809
57523
|
if (config2.maxContentLength > -1 && totalResponseBytes > config2.maxContentLength) {
|
|
57810
57524
|
rejected = true;
|
|
57811
57525
|
responseStream.destroy();
|
|
57812
|
-
|
|
57526
|
+
reject(new AxiosError_default("maxContentLength size of " + config2.maxContentLength + " exceeded", AxiosError_default.ERR_BAD_RESPONSE, config2, lastRequest));
|
|
57813
57527
|
}
|
|
57814
57528
|
});
|
|
57815
57529
|
responseStream.on("aborted", function handlerStreamAborted() {
|
|
@@ -57841,19 +57555,16 @@ var init_http = __esm(() => {
|
|
|
57841
57555
|
settle(resolve10, reject, response);
|
|
57842
57556
|
});
|
|
57843
57557
|
}
|
|
57844
|
-
|
|
57558
|
+
emitter.once("abort", (err) => {
|
|
57845
57559
|
if (!responseStream.destroyed) {
|
|
57846
57560
|
responseStream.emit("error", err);
|
|
57847
57561
|
responseStream.destroy();
|
|
57848
57562
|
}
|
|
57849
57563
|
});
|
|
57850
57564
|
});
|
|
57851
|
-
|
|
57852
|
-
|
|
57853
|
-
|
|
57854
|
-
} else {
|
|
57855
|
-
req.destroy(err);
|
|
57856
|
-
}
|
|
57565
|
+
emitter.once("abort", (err) => {
|
|
57566
|
+
reject(err);
|
|
57567
|
+
req.destroy(err);
|
|
57857
57568
|
});
|
|
57858
57569
|
req.on("error", function handleRequestError(err) {
|
|
57859
57570
|
reject(AxiosError_default.from(err, null, config2, req));
|
|
@@ -57864,7 +57575,7 @@ var init_http = __esm(() => {
|
|
|
57864
57575
|
if (config2.timeout) {
|
|
57865
57576
|
const timeout = parseInt(config2.timeout, 10);
|
|
57866
57577
|
if (Number.isNaN(timeout)) {
|
|
57867
|
-
|
|
57578
|
+
reject(new AxiosError_default("error trying to parse `config.timeout` to int", AxiosError_default.ERR_BAD_OPTION_VALUE, config2, req));
|
|
57868
57579
|
return;
|
|
57869
57580
|
}
|
|
57870
57581
|
req.setTimeout(timeout, function handleRequestTimeout() {
|
|
@@ -57875,10 +57586,9 @@ var init_http = __esm(() => {
|
|
|
57875
57586
|
if (config2.timeoutErrorMessage) {
|
|
57876
57587
|
timeoutErrorMessage = config2.timeoutErrorMessage;
|
|
57877
57588
|
}
|
|
57878
|
-
|
|
57589
|
+
reject(new AxiosError_default(timeoutErrorMessage, transitional.clarifyTimeoutError ? AxiosError_default.ETIMEDOUT : AxiosError_default.ECONNABORTED, config2, req));
|
|
57590
|
+
abort();
|
|
57879
57591
|
});
|
|
57880
|
-
} else {
|
|
57881
|
-
req.setTimeout(0);
|
|
57882
57592
|
}
|
|
57883
57593
|
if (utils_default.isStream(data)) {
|
|
57884
57594
|
let ended = false;
|
|
@@ -57897,8 +57607,7 @@ var init_http = __esm(() => {
|
|
|
57897
57607
|
});
|
|
57898
57608
|
data.pipe(req);
|
|
57899
57609
|
} else {
|
|
57900
|
-
|
|
57901
|
-
req.end();
|
|
57610
|
+
req.end(data);
|
|
57902
57611
|
}
|
|
57903
57612
|
});
|
|
57904
57613
|
};
|
|
@@ -57920,35 +57629,20 @@ var init_cookies = __esm(() => {
|
|
|
57920
57629
|
init_utils3();
|
|
57921
57630
|
init_platform2();
|
|
57922
57631
|
cookies_default = platform_default.hasStandardBrowserEnv ? {
|
|
57923
|
-
write(name, value, expires, path12, domain2, secure
|
|
57924
|
-
|
|
57925
|
-
|
|
57926
|
-
|
|
57927
|
-
|
|
57928
|
-
|
|
57929
|
-
}
|
|
57930
|
-
if (utils_default.isString(path12)) {
|
|
57931
|
-
cookie.push(`path=${path12}`);
|
|
57932
|
-
}
|
|
57933
|
-
if (utils_default.isString(domain2)) {
|
|
57934
|
-
cookie.push(`domain=${domain2}`);
|
|
57935
|
-
}
|
|
57936
|
-
if (secure === true) {
|
|
57937
|
-
cookie.push("secure");
|
|
57938
|
-
}
|
|
57939
|
-
if (utils_default.isString(sameSite)) {
|
|
57940
|
-
cookie.push(`SameSite=${sameSite}`);
|
|
57941
|
-
}
|
|
57632
|
+
write(name, value, expires, path12, domain2, secure) {
|
|
57633
|
+
const cookie = [name + "=" + encodeURIComponent(value)];
|
|
57634
|
+
utils_default.isNumber(expires) && cookie.push("expires=" + new Date(expires).toGMTString());
|
|
57635
|
+
utils_default.isString(path12) && cookie.push("path=" + path12);
|
|
57636
|
+
utils_default.isString(domain2) && cookie.push("domain=" + domain2);
|
|
57637
|
+
secure === true && cookie.push("secure");
|
|
57942
57638
|
document.cookie = cookie.join("; ");
|
|
57943
57639
|
},
|
|
57944
57640
|
read(name) {
|
|
57945
|
-
|
|
57946
|
-
|
|
57947
|
-
const match = document.cookie.match(new RegExp("(?:^|; )" + name + "=([^;]*)"));
|
|
57948
|
-
return match ? decodeURIComponent(match[1]) : null;
|
|
57641
|
+
const match = document.cookie.match(new RegExp("(^|;\\s*)(" + name + ")=([^;]*)"));
|
|
57642
|
+
return match ? decodeURIComponent(match[3]) : null;
|
|
57949
57643
|
},
|
|
57950
57644
|
remove(name) {
|
|
57951
|
-
this.write(name, "", Date.now() - 86400000
|
|
57645
|
+
this.write(name, "", Date.now() - 86400000);
|
|
57952
57646
|
}
|
|
57953
57647
|
} : {
|
|
57954
57648
|
write() {},
|
|
@@ -58030,10 +57724,8 @@ function mergeConfig(config1, config2) {
|
|
|
58030
57724
|
validateStatus: mergeDirectKeys,
|
|
58031
57725
|
headers: (a2, b, prop) => mergeDeepProperties(headersToObject(a2), headersToObject(b), prop, true)
|
|
58032
57726
|
};
|
|
58033
|
-
utils_default.forEach(Object.keys({
|
|
58034
|
-
|
|
58035
|
-
return;
|
|
58036
|
-
const merge3 = utils_default.hasOwnProp(mergeMap, prop) ? mergeMap[prop] : mergeDeepProperties;
|
|
57727
|
+
utils_default.forEach(Object.keys(Object.assign({}, config1, config2)), function computeConfigValue(prop) {
|
|
57728
|
+
const merge3 = mergeMap[prop] || mergeDeepProperties;
|
|
58037
57729
|
const configValue = merge3(config1[prop], config2[prop], prop);
|
|
58038
57730
|
utils_default.isUndefined(configValue) && merge3 !== mergeDirectKeys || (config3[prop] = configValue);
|
|
58039
57731
|
});
|
|
@@ -58050,21 +57742,17 @@ var resolveConfig_default = (config2) => {
|
|
|
58050
57742
|
const newConfig = mergeConfig({}, config2);
|
|
58051
57743
|
let { data, withXSRFToken, xsrfHeaderName, xsrfCookieName, headers, auth } = newConfig;
|
|
58052
57744
|
newConfig.headers = headers = AxiosHeaders_default.from(headers);
|
|
58053
|
-
newConfig.url = buildURL(buildFullPath(newConfig.baseURL, newConfig.url
|
|
57745
|
+
newConfig.url = buildURL(buildFullPath(newConfig.baseURL, newConfig.url), config2.params, config2.paramsSerializer);
|
|
58054
57746
|
if (auth) {
|
|
58055
57747
|
headers.set("Authorization", "Basic " + btoa((auth.username || "") + ":" + (auth.password ? unescape(encodeURIComponent(auth.password)) : "")));
|
|
58056
57748
|
}
|
|
57749
|
+
let contentType;
|
|
58057
57750
|
if (utils_default.isFormData(data)) {
|
|
58058
57751
|
if (platform_default.hasStandardBrowserEnv || platform_default.hasStandardBrowserWebWorkerEnv) {
|
|
58059
57752
|
headers.setContentType(undefined);
|
|
58060
|
-
} else if (
|
|
58061
|
-
const
|
|
58062
|
-
|
|
58063
|
-
Object.entries(formHeaders).forEach(([key, val]) => {
|
|
58064
|
-
if (allowedHeaders.includes(key.toLowerCase())) {
|
|
58065
|
-
headers.set(key, val);
|
|
58066
|
-
}
|
|
58067
|
-
});
|
|
57753
|
+
} else if ((contentType = headers.getContentType()) !== false) {
|
|
57754
|
+
const [type, ...tokens] = contentType ? contentType.split(";").map((token) => token.trim()).filter(Boolean) : [];
|
|
57755
|
+
headers.setContentType([type || "multipart/form-data", ...tokens].join("; "));
|
|
58068
57756
|
}
|
|
58069
57757
|
}
|
|
58070
57758
|
if (platform_default.hasStandardBrowserEnv) {
|
|
@@ -58163,11 +57851,8 @@ var init_xhr = __esm(() => {
|
|
|
58163
57851
|
reject(new AxiosError_default("Request aborted", AxiosError_default.ECONNABORTED, config2, request));
|
|
58164
57852
|
request = null;
|
|
58165
57853
|
};
|
|
58166
|
-
request.onerror = function handleError(
|
|
58167
|
-
|
|
58168
|
-
const err = new AxiosError_default(msg, AxiosError_default.ERR_NETWORK, config2, request);
|
|
58169
|
-
err.event = event || null;
|
|
58170
|
-
reject(err);
|
|
57854
|
+
request.onerror = function handleError() {
|
|
57855
|
+
reject(new AxiosError_default("Network Error", AxiosError_default.ERR_NETWORK, config2, request));
|
|
58171
57856
|
request = null;
|
|
58172
57857
|
};
|
|
58173
57858
|
request.ontimeout = function handleTimeout() {
|
|
@@ -58240,7 +57925,7 @@ var composeSignals = (signals2, timeout) => {
|
|
|
58240
57925
|
};
|
|
58241
57926
|
let timer = timeout && setTimeout(() => {
|
|
58242
57927
|
timer = null;
|
|
58243
|
-
onabort(new AxiosError_default(`timeout
|
|
57928
|
+
onabort(new AxiosError_default(`timeout ${timeout} of ms exceeded`, AxiosError_default.ETIMEDOUT));
|
|
58244
57929
|
}, timeout);
|
|
58245
57930
|
const unsubscribe = () => {
|
|
58246
57931
|
if (signals2) {
|
|
@@ -58301,7 +57986,7 @@ var streamChunk = function* (chunk, chunkSize) {
|
|
|
58301
57986
|
await reader.cancel();
|
|
58302
57987
|
}
|
|
58303
57988
|
}, trackStream = (stream4, chunkSize, onProgress, onFinish) => {
|
|
58304
|
-
const
|
|
57989
|
+
const iterator = readBytes(stream4, chunkSize);
|
|
58305
57990
|
let bytes = 0;
|
|
58306
57991
|
let done;
|
|
58307
57992
|
let _onFinish = (e) => {
|
|
@@ -58313,7 +57998,7 @@ var streamChunk = function* (chunk, chunkSize) {
|
|
|
58313
57998
|
return new ReadableStream({
|
|
58314
57999
|
async pull(controller) {
|
|
58315
58000
|
try {
|
|
58316
|
-
const { done: done2, value } = await
|
|
58001
|
+
const { done: done2, value } = await iterator.next();
|
|
58317
58002
|
if (done2) {
|
|
58318
58003
|
_onFinish();
|
|
58319
58004
|
controller.close();
|
|
@@ -58332,7 +58017,7 @@ var streamChunk = function* (chunk, chunkSize) {
|
|
|
58332
58017
|
},
|
|
58333
58018
|
cancel(reason) {
|
|
58334
58019
|
_onFinish(reason);
|
|
58335
|
-
return
|
|
58020
|
+
return iterator.return();
|
|
58336
58021
|
}
|
|
58337
58022
|
}, {
|
|
58338
58023
|
highWaterMark: 2
|
|
@@ -58340,83 +58025,76 @@ var streamChunk = function* (chunk, chunkSize) {
|
|
|
58340
58025
|
};
|
|
58341
58026
|
|
|
58342
58027
|
// node_modules/axios/lib/adapters/fetch.js
|
|
58343
|
-
var
|
|
58028
|
+
var isFetchSupported, isReadableStreamSupported, encodeText, test = (fn, ...args) => {
|
|
58344
58029
|
try {
|
|
58345
58030
|
return !!fn(...args);
|
|
58346
58031
|
} catch (e) {
|
|
58347
58032
|
return false;
|
|
58348
58033
|
}
|
|
58349
|
-
},
|
|
58350
|
-
|
|
58351
|
-
|
|
58352
|
-
}
|
|
58353
|
-
|
|
58354
|
-
|
|
58355
|
-
const isRequestSupported = isFunction3(Request2);
|
|
58356
|
-
const isResponseSupported = isFunction3(Response2);
|
|
58357
|
-
if (!isFetchSupported) {
|
|
58358
|
-
return false;
|
|
58034
|
+
}, supportsRequestStream, DEFAULT_CHUNK_SIZE, supportsResponseStream, resolvers, getBodyLength = async (body) => {
|
|
58035
|
+
if (body == null) {
|
|
58036
|
+
return 0;
|
|
58037
|
+
}
|
|
58038
|
+
if (utils_default.isBlob(body)) {
|
|
58039
|
+
return body.size;
|
|
58359
58040
|
}
|
|
58360
|
-
|
|
58361
|
-
|
|
58362
|
-
|
|
58041
|
+
if (utils_default.isSpecCompliantForm(body)) {
|
|
58042
|
+
const _request = new Request(platform_default.origin, {
|
|
58043
|
+
method: "POST",
|
|
58044
|
+
body
|
|
58045
|
+
});
|
|
58046
|
+
return (await _request.arrayBuffer()).byteLength;
|
|
58047
|
+
}
|
|
58048
|
+
if (utils_default.isArrayBufferView(body) || utils_default.isArrayBuffer(body)) {
|
|
58049
|
+
return body.byteLength;
|
|
58050
|
+
}
|
|
58051
|
+
if (utils_default.isURLSearchParams(body)) {
|
|
58052
|
+
body = body + "";
|
|
58053
|
+
}
|
|
58054
|
+
if (utils_default.isString(body)) {
|
|
58055
|
+
return (await encodeText(body)).byteLength;
|
|
58056
|
+
}
|
|
58057
|
+
}, resolveBodyLength = async (headers, body) => {
|
|
58058
|
+
const length = utils_default.toFiniteNumber(headers.getContentLength());
|
|
58059
|
+
return length == null ? getBodyLength(body) : length;
|
|
58060
|
+
}, fetch_default;
|
|
58061
|
+
var init_fetch = __esm(() => {
|
|
58062
|
+
init_platform2();
|
|
58063
|
+
init_utils3();
|
|
58064
|
+
init_AxiosError();
|
|
58065
|
+
init_composeSignals();
|
|
58066
|
+
init_AxiosHeaders();
|
|
58067
|
+
init_progressEventReducer();
|
|
58068
|
+
init_resolveConfig();
|
|
58069
|
+
init_settle();
|
|
58070
|
+
isFetchSupported = typeof fetch === "function" && typeof Request === "function" && typeof Response === "function";
|
|
58071
|
+
isReadableStreamSupported = isFetchSupported && typeof ReadableStream === "function";
|
|
58072
|
+
encodeText = isFetchSupported && (typeof TextEncoder === "function" ? ((encoder2) => (str) => encoder2.encode(str))(new TextEncoder) : async (str) => new Uint8Array(await new Response(str).arrayBuffer()));
|
|
58073
|
+
supportsRequestStream = isReadableStreamSupported && test(() => {
|
|
58363
58074
|
let duplexAccessed = false;
|
|
58364
|
-
const
|
|
58365
|
-
|
|
58366
|
-
body,
|
|
58075
|
+
const hasContentType = new Request(platform_default.origin, {
|
|
58076
|
+
body: new ReadableStream,
|
|
58367
58077
|
method: "POST",
|
|
58368
58078
|
get duplex() {
|
|
58369
58079
|
duplexAccessed = true;
|
|
58370
58080
|
return "half";
|
|
58371
58081
|
}
|
|
58372
58082
|
}).headers.has("Content-Type");
|
|
58373
|
-
body.cancel();
|
|
58374
58083
|
return duplexAccessed && !hasContentType;
|
|
58375
58084
|
});
|
|
58376
|
-
|
|
58377
|
-
|
|
58085
|
+
DEFAULT_CHUNK_SIZE = 64 * 1024;
|
|
58086
|
+
supportsResponseStream = isReadableStreamSupported && test(() => utils_default.isReadableStream(new Response("").body));
|
|
58087
|
+
resolvers = {
|
|
58378
58088
|
stream: supportsResponseStream && ((res) => res.body)
|
|
58379
58089
|
};
|
|
58380
|
-
isFetchSupported && (() => {
|
|
58090
|
+
isFetchSupported && ((res) => {
|
|
58381
58091
|
["text", "arrayBuffer", "blob", "formData", "stream"].forEach((type) => {
|
|
58382
|
-
!resolvers[type] && (resolvers[type] = (res, config2) => {
|
|
58383
|
-
let method = res && res[type];
|
|
58384
|
-
if (method) {
|
|
58385
|
-
return method.call(res);
|
|
58386
|
-
}
|
|
58092
|
+
!resolvers[type] && (resolvers[type] = utils_default.isFunction(res[type]) ? (res2) => res2[type]() : (_, config2) => {
|
|
58387
58093
|
throw new AxiosError_default(`Response type '${type}' is not supported`, AxiosError_default.ERR_NOT_SUPPORT, config2);
|
|
58388
58094
|
});
|
|
58389
58095
|
});
|
|
58390
|
-
})();
|
|
58391
|
-
|
|
58392
|
-
if (body == null) {
|
|
58393
|
-
return 0;
|
|
58394
|
-
}
|
|
58395
|
-
if (utils_default.isBlob(body)) {
|
|
58396
|
-
return body.size;
|
|
58397
|
-
}
|
|
58398
|
-
if (utils_default.isSpecCompliantForm(body)) {
|
|
58399
|
-
const _request = new Request2(platform_default.origin, {
|
|
58400
|
-
method: "POST",
|
|
58401
|
-
body
|
|
58402
|
-
});
|
|
58403
|
-
return (await _request.arrayBuffer()).byteLength;
|
|
58404
|
-
}
|
|
58405
|
-
if (utils_default.isArrayBufferView(body) || utils_default.isArrayBuffer(body)) {
|
|
58406
|
-
return body.byteLength;
|
|
58407
|
-
}
|
|
58408
|
-
if (utils_default.isURLSearchParams(body)) {
|
|
58409
|
-
body = body + "";
|
|
58410
|
-
}
|
|
58411
|
-
if (utils_default.isString(body)) {
|
|
58412
|
-
return (await encodeText(body)).byteLength;
|
|
58413
|
-
}
|
|
58414
|
-
};
|
|
58415
|
-
const resolveBodyLength = async (headers, body) => {
|
|
58416
|
-
const length = utils_default.toFiniteNumber(headers.getContentLength());
|
|
58417
|
-
return length == null ? getBodyLength(body) : length;
|
|
58418
|
-
};
|
|
58419
|
-
return async (config2) => {
|
|
58096
|
+
})(new Response);
|
|
58097
|
+
fetch_default = isFetchSupported && (async (config2) => {
|
|
58420
58098
|
let {
|
|
58421
58099
|
url: url3,
|
|
58422
58100
|
method,
|
|
@@ -58431,17 +58109,16 @@ var DEFAULT_CHUNK_SIZE, isFunction3, globalFetchAPI, ReadableStream2, TextEncode
|
|
|
58431
58109
|
withCredentials = "same-origin",
|
|
58432
58110
|
fetchOptions
|
|
58433
58111
|
} = resolveConfig_default(config2);
|
|
58434
|
-
let _fetch = envFetch || fetch;
|
|
58435
58112
|
responseType = responseType ? (responseType + "").toLowerCase() : "text";
|
|
58436
58113
|
let composedSignal = composeSignals_default([signal, cancelToken && cancelToken.toAbortSignal()], timeout);
|
|
58437
|
-
let request
|
|
58114
|
+
let request;
|
|
58438
58115
|
const unsubscribe = composedSignal && composedSignal.unsubscribe && (() => {
|
|
58439
58116
|
composedSignal.unsubscribe();
|
|
58440
58117
|
});
|
|
58441
58118
|
let requestContentLength;
|
|
58442
58119
|
try {
|
|
58443
58120
|
if (onUploadProgress && supportsRequestStream && method !== "get" && method !== "head" && (requestContentLength = await resolveBodyLength(headers, data)) !== 0) {
|
|
58444
|
-
let _request = new
|
|
58121
|
+
let _request = new Request(url3, {
|
|
58445
58122
|
method: "POST",
|
|
58446
58123
|
body: data,
|
|
58447
58124
|
duplex: "half"
|
|
@@ -58458,8 +58135,8 @@ var DEFAULT_CHUNK_SIZE, isFunction3, globalFetchAPI, ReadableStream2, TextEncode
|
|
|
58458
58135
|
if (!utils_default.isString(withCredentials)) {
|
|
58459
58136
|
withCredentials = withCredentials ? "include" : "omit";
|
|
58460
58137
|
}
|
|
58461
|
-
const isCredentialsSupported =
|
|
58462
|
-
|
|
58138
|
+
const isCredentialsSupported = "credentials" in Request.prototype;
|
|
58139
|
+
request = new Request(url3, {
|
|
58463
58140
|
...fetchOptions,
|
|
58464
58141
|
signal: composedSignal,
|
|
58465
58142
|
method: method.toUpperCase(),
|
|
@@ -58467,9 +58144,8 @@ var DEFAULT_CHUNK_SIZE, isFunction3, globalFetchAPI, ReadableStream2, TextEncode
|
|
|
58467
58144
|
body: data,
|
|
58468
58145
|
duplex: "half",
|
|
58469
58146
|
credentials: isCredentialsSupported ? withCredentials : undefined
|
|
58470
|
-
};
|
|
58471
|
-
|
|
58472
|
-
let response = await (isRequestSupported ? _fetch(request, fetchOptions) : _fetch(url3, resolvedOptions));
|
|
58147
|
+
});
|
|
58148
|
+
let response = await fetch(request);
|
|
58473
58149
|
const isStreamResponse = supportsResponseStream && (responseType === "stream" || responseType === "response");
|
|
58474
58150
|
if (supportsResponseStream && (onDownloadProgress || isStreamResponse && unsubscribe)) {
|
|
58475
58151
|
const options = {};
|
|
@@ -58478,7 +58154,7 @@ var DEFAULT_CHUNK_SIZE, isFunction3, globalFetchAPI, ReadableStream2, TextEncode
|
|
|
58478
58154
|
});
|
|
58479
58155
|
const responseContentLength = utils_default.toFiniteNumber(response.headers.get("content-length"));
|
|
58480
58156
|
const [onProgress, flush] = onDownloadProgress && progressEventDecorator(responseContentLength, progressEventReducer(asyncDecorator(onDownloadProgress), true)) || [];
|
|
58481
|
-
response = new
|
|
58157
|
+
response = new Response(trackStream(response.body, DEFAULT_CHUNK_SIZE, onProgress, () => {
|
|
58482
58158
|
flush && flush();
|
|
58483
58159
|
unsubscribe && unsubscribe();
|
|
58484
58160
|
}), options);
|
|
@@ -58498,79 +58174,18 @@ var DEFAULT_CHUNK_SIZE, isFunction3, globalFetchAPI, ReadableStream2, TextEncode
|
|
|
58498
58174
|
});
|
|
58499
58175
|
} catch (err) {
|
|
58500
58176
|
unsubscribe && unsubscribe();
|
|
58501
|
-
if (err && err.name === "TypeError" && /
|
|
58502
|
-
throw Object.assign(new AxiosError_default("Network Error", AxiosError_default.ERR_NETWORK, config2, request
|
|
58177
|
+
if (err && err.name === "TypeError" && /fetch/i.test(err.message)) {
|
|
58178
|
+
throw Object.assign(new AxiosError_default("Network Error", AxiosError_default.ERR_NETWORK, config2, request), {
|
|
58503
58179
|
cause: err.cause || err
|
|
58504
58180
|
});
|
|
58505
58181
|
}
|
|
58506
|
-
throw AxiosError_default.from(err, err && err.code, config2, request
|
|
58182
|
+
throw AxiosError_default.from(err, err && err.code, config2, request);
|
|
58507
58183
|
}
|
|
58508
|
-
};
|
|
58509
|
-
}, seedCache, getFetch = (config2) => {
|
|
58510
|
-
let env5 = config2 && config2.env || {};
|
|
58511
|
-
const { fetch: fetch2, Request: Request2, Response: Response2 } = env5;
|
|
58512
|
-
const seeds = [Request2, Response2, fetch2];
|
|
58513
|
-
let len = seeds.length, i2 = len, seed, target, map2 = seedCache;
|
|
58514
|
-
while (i2--) {
|
|
58515
|
-
seed = seeds[i2];
|
|
58516
|
-
target = map2.get(seed);
|
|
58517
|
-
target === undefined && map2.set(seed, target = i2 ? new Map : factory(env5));
|
|
58518
|
-
map2 = target;
|
|
58519
|
-
}
|
|
58520
|
-
return target;
|
|
58521
|
-
}, adapter;
|
|
58522
|
-
var init_fetch = __esm(() => {
|
|
58523
|
-
init_platform2();
|
|
58524
|
-
init_utils3();
|
|
58525
|
-
init_AxiosError();
|
|
58526
|
-
init_composeSignals();
|
|
58527
|
-
init_AxiosHeaders();
|
|
58528
|
-
init_progressEventReducer();
|
|
58529
|
-
init_resolveConfig();
|
|
58530
|
-
init_settle();
|
|
58531
|
-
DEFAULT_CHUNK_SIZE = 64 * 1024;
|
|
58532
|
-
({ isFunction: isFunction3 } = utils_default);
|
|
58533
|
-
globalFetchAPI = (({ Request: Request2, Response: Response2 }) => ({
|
|
58534
|
-
Request: Request2,
|
|
58535
|
-
Response: Response2
|
|
58536
|
-
}))(utils_default.global);
|
|
58537
|
-
({ ReadableStream: ReadableStream2, TextEncoder: TextEncoder2 } = utils_default.global);
|
|
58538
|
-
seedCache = new Map;
|
|
58539
|
-
adapter = getFetch();
|
|
58184
|
+
});
|
|
58540
58185
|
});
|
|
58541
58186
|
|
|
58542
58187
|
// node_modules/axios/lib/adapters/adapters.js
|
|
58543
|
-
|
|
58544
|
-
adapters = utils_default.isArray(adapters) ? adapters : [adapters];
|
|
58545
|
-
const { length } = adapters;
|
|
58546
|
-
let nameOrAdapter;
|
|
58547
|
-
let adapter2;
|
|
58548
|
-
const rejectedReasons = {};
|
|
58549
|
-
for (let i2 = 0;i2 < length; i2++) {
|
|
58550
|
-
nameOrAdapter = adapters[i2];
|
|
58551
|
-
let id;
|
|
58552
|
-
adapter2 = nameOrAdapter;
|
|
58553
|
-
if (!isResolvedHandle(nameOrAdapter)) {
|
|
58554
|
-
adapter2 = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()];
|
|
58555
|
-
if (adapter2 === undefined) {
|
|
58556
|
-
throw new AxiosError_default(`Unknown adapter '${id}'`);
|
|
58557
|
-
}
|
|
58558
|
-
}
|
|
58559
|
-
if (adapter2 && (utils_default.isFunction(adapter2) || (adapter2 = adapter2.get(config2)))) {
|
|
58560
|
-
break;
|
|
58561
|
-
}
|
|
58562
|
-
rejectedReasons[id || "#" + i2] = adapter2;
|
|
58563
|
-
}
|
|
58564
|
-
if (!adapter2) {
|
|
58565
|
-
const reasons = Object.entries(rejectedReasons).map(([id, state]) => `adapter ${id} ` + (state === false ? "is not supported by the environment" : "is not available in the build"));
|
|
58566
|
-
let s = length ? reasons.length > 1 ? `since :
|
|
58567
|
-
` + reasons.map(renderReason).join(`
|
|
58568
|
-
`) : " " + renderReason(reasons[0]) : "as no adapter specified";
|
|
58569
|
-
throw new AxiosError_default(`There is no suitable adapter to dispatch the request ` + s, "ERR_NOT_SUPPORT");
|
|
58570
|
-
}
|
|
58571
|
-
return adapter2;
|
|
58572
|
-
}
|
|
58573
|
-
var knownAdapters, renderReason = (reason) => `- ${reason}`, isResolvedHandle = (adapter2) => utils_default.isFunction(adapter2) || adapter2 === null || adapter2 === false, adapters_default;
|
|
58188
|
+
var knownAdapters, renderReason = (reason) => `- ${reason}`, isResolvedHandle = (adapter) => utils_default.isFunction(adapter) || adapter === null || adapter === false, adapters_default;
|
|
58574
58189
|
var init_adapters = __esm(() => {
|
|
58575
58190
|
init_utils3();
|
|
58576
58191
|
init_http();
|
|
@@ -58580,9 +58195,7 @@ var init_adapters = __esm(() => {
|
|
|
58580
58195
|
knownAdapters = {
|
|
58581
58196
|
http: http_default,
|
|
58582
58197
|
xhr: xhr_default,
|
|
58583
|
-
fetch:
|
|
58584
|
-
get: getFetch
|
|
58585
|
-
}
|
|
58198
|
+
fetch: fetch_default
|
|
58586
58199
|
};
|
|
58587
58200
|
utils_default.forEach(knownAdapters, (fn, value) => {
|
|
58588
58201
|
if (fn) {
|
|
@@ -58593,7 +58206,36 @@ var init_adapters = __esm(() => {
|
|
|
58593
58206
|
}
|
|
58594
58207
|
});
|
|
58595
58208
|
adapters_default = {
|
|
58596
|
-
getAdapter
|
|
58209
|
+
getAdapter: (adapters) => {
|
|
58210
|
+
adapters = utils_default.isArray(adapters) ? adapters : [adapters];
|
|
58211
|
+
const { length } = adapters;
|
|
58212
|
+
let nameOrAdapter;
|
|
58213
|
+
let adapter;
|
|
58214
|
+
const rejectedReasons = {};
|
|
58215
|
+
for (let i2 = 0;i2 < length; i2++) {
|
|
58216
|
+
nameOrAdapter = adapters[i2];
|
|
58217
|
+
let id;
|
|
58218
|
+
adapter = nameOrAdapter;
|
|
58219
|
+
if (!isResolvedHandle(nameOrAdapter)) {
|
|
58220
|
+
adapter = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()];
|
|
58221
|
+
if (adapter === undefined) {
|
|
58222
|
+
throw new AxiosError_default(`Unknown adapter '${id}'`);
|
|
58223
|
+
}
|
|
58224
|
+
}
|
|
58225
|
+
if (adapter) {
|
|
58226
|
+
break;
|
|
58227
|
+
}
|
|
58228
|
+
rejectedReasons[id || "#" + i2] = adapter;
|
|
58229
|
+
}
|
|
58230
|
+
if (!adapter) {
|
|
58231
|
+
const reasons = Object.entries(rejectedReasons).map(([id, state]) => `adapter ${id} ` + (state === false ? "is not supported by the environment" : "is not available in the build"));
|
|
58232
|
+
let s = length ? reasons.length > 1 ? `since :
|
|
58233
|
+
` + reasons.map(renderReason).join(`
|
|
58234
|
+
`) : " " + renderReason(reasons[0]) : "as no adapter specified";
|
|
58235
|
+
throw new AxiosError_default(`There is no suitable adapter to dispatch the request ` + s, "ERR_NOT_SUPPORT");
|
|
58236
|
+
}
|
|
58237
|
+
return adapter;
|
|
58238
|
+
},
|
|
58597
58239
|
adapters: knownAdapters
|
|
58598
58240
|
};
|
|
58599
58241
|
});
|
|
@@ -58614,8 +58256,8 @@ function dispatchRequest(config2) {
|
|
|
58614
58256
|
if (["post", "put", "patch"].indexOf(config2.method) !== -1) {
|
|
58615
58257
|
config2.headers.setContentType("application/x-www-form-urlencoded", false);
|
|
58616
58258
|
}
|
|
58617
|
-
const
|
|
58618
|
-
return
|
|
58259
|
+
const adapter = adapters_default.getAdapter(config2.adapter || defaults_default.adapter);
|
|
58260
|
+
return adapter(config2).then(function onAdapterResolution(response) {
|
|
58619
58261
|
throwIfCancellationRequested(config2);
|
|
58620
58262
|
response.data = transformData.call(config2, config2.transformResponse, response);
|
|
58621
58263
|
response.headers = AxiosHeaders_default.from(response.headers);
|
|
@@ -58702,7 +58344,7 @@ var init_validator = __esm(() => {
|
|
|
58702
58344
|
// node_modules/axios/lib/core/Axios.js
|
|
58703
58345
|
class Axios {
|
|
58704
58346
|
constructor(instanceConfig) {
|
|
58705
|
-
this.defaults = instanceConfig
|
|
58347
|
+
this.defaults = instanceConfig;
|
|
58706
58348
|
this.interceptors = {
|
|
58707
58349
|
request: new InterceptorManager_default,
|
|
58708
58350
|
response: new InterceptorManager_default
|
|
@@ -58741,8 +58383,7 @@ class Axios {
|
|
|
58741
58383
|
validator_default.assertOptions(transitional2, {
|
|
58742
58384
|
silentJSONParsing: validators2.transitional(validators2.boolean),
|
|
58743
58385
|
forcedJSONParsing: validators2.transitional(validators2.boolean),
|
|
58744
|
-
clarifyTimeoutError: validators2.transitional(validators2.boolean)
|
|
58745
|
-
legacyInterceptorReqResOrdering: validators2.transitional(validators2.boolean)
|
|
58386
|
+
clarifyTimeoutError: validators2.transitional(validators2.boolean)
|
|
58746
58387
|
}, false);
|
|
58747
58388
|
}
|
|
58748
58389
|
if (paramsSerializer != null) {
|
|
@@ -58757,11 +58398,6 @@ class Axios {
|
|
|
58757
58398
|
}, true);
|
|
58758
58399
|
}
|
|
58759
58400
|
}
|
|
58760
|
-
if (config2.allowAbsoluteUrls !== undefined) {} else if (this.defaults.allowAbsoluteUrls !== undefined) {
|
|
58761
|
-
config2.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls;
|
|
58762
|
-
} else {
|
|
58763
|
-
config2.allowAbsoluteUrls = true;
|
|
58764
|
-
}
|
|
58765
58401
|
validator_default.assertOptions(config2, {
|
|
58766
58402
|
baseUrl: validators2.spelling("baseURL"),
|
|
58767
58403
|
withXsrfToken: validators2.spelling("withXSRFToken")
|
|
@@ -58779,13 +58415,7 @@ class Axios {
|
|
|
58779
58415
|
return;
|
|
58780
58416
|
}
|
|
58781
58417
|
synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;
|
|
58782
|
-
|
|
58783
|
-
const legacyInterceptorReqResOrdering = transitional3 && transitional3.legacyInterceptorReqResOrdering;
|
|
58784
|
-
if (legacyInterceptorReqResOrdering) {
|
|
58785
|
-
requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);
|
|
58786
|
-
} else {
|
|
58787
|
-
requestInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);
|
|
58788
|
-
}
|
|
58418
|
+
requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);
|
|
58789
58419
|
});
|
|
58790
58420
|
const responseInterceptorChain = [];
|
|
58791
58421
|
this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {
|
|
@@ -58796,8 +58426,8 @@ class Axios {
|
|
|
58796
58426
|
let len;
|
|
58797
58427
|
if (!synchronousRequestInterceptors) {
|
|
58798
58428
|
const chain = [dispatchRequest.bind(this), undefined];
|
|
58799
|
-
chain.unshift(
|
|
58800
|
-
chain.push(
|
|
58429
|
+
chain.unshift.apply(chain, requestInterceptorChain);
|
|
58430
|
+
chain.push.apply(chain, responseInterceptorChain);
|
|
58801
58431
|
len = chain.length;
|
|
58802
58432
|
promise2 = Promise.resolve(config2);
|
|
58803
58433
|
while (i2 < len) {
|
|
@@ -58807,6 +58437,7 @@ class Axios {
|
|
|
58807
58437
|
}
|
|
58808
58438
|
len = requestInterceptorChain.length;
|
|
58809
58439
|
let newConfig = config2;
|
|
58440
|
+
i2 = 0;
|
|
58810
58441
|
while (i2 < len) {
|
|
58811
58442
|
const onFulfilled = requestInterceptorChain[i2++];
|
|
58812
58443
|
const onRejected = requestInterceptorChain[i2++];
|
|
@@ -58831,7 +58462,7 @@ class Axios {
|
|
|
58831
58462
|
}
|
|
58832
58463
|
getUri(config2) {
|
|
58833
58464
|
config2 = mergeConfig(this.defaults, config2);
|
|
58834
|
-
const fullPath = buildFullPath(config2.baseURL, config2.url
|
|
58465
|
+
const fullPath = buildFullPath(config2.baseURL, config2.url);
|
|
58835
58466
|
return buildURL(fullPath, config2.params, config2.paramsSerializer);
|
|
58836
58467
|
}
|
|
58837
58468
|
}
|
|
@@ -58845,7 +58476,6 @@ var init_Axios = __esm(() => {
|
|
|
58845
58476
|
init_buildFullPath();
|
|
58846
58477
|
init_validator();
|
|
58847
58478
|
init_AxiosHeaders();
|
|
58848
|
-
init_transitional();
|
|
58849
58479
|
validators2 = validator_default.validators;
|
|
58850
58480
|
utils_default.forEach(["delete", "get", "head", "options"], function forEachMethodNoData(method) {
|
|
58851
58481
|
Axios.prototype[method] = function(url3, config2) {
|
|
@@ -59046,13 +58676,7 @@ var init_HttpStatusCode = __esm(() => {
|
|
|
59046
58676
|
InsufficientStorage: 507,
|
|
59047
58677
|
LoopDetected: 508,
|
|
59048
58678
|
NotExtended: 510,
|
|
59049
|
-
NetworkAuthenticationRequired: 511
|
|
59050
|
-
WebServerIsDown: 521,
|
|
59051
|
-
ConnectionTimedOut: 522,
|
|
59052
|
-
OriginIsUnreachable: 523,
|
|
59053
|
-
TimeoutOccurred: 524,
|
|
59054
|
-
SslHandshakeFailed: 525,
|
|
59055
|
-
InvalidSslCertificate: 526
|
|
58679
|
+
NetworkAuthenticationRequired: 511
|
|
59056
58680
|
};
|
|
59057
58681
|
Object.entries(HttpStatusCode).forEach(([key, value]) => {
|
|
59058
58682
|
HttpStatusCode[value] = key;
|
|
@@ -59117,7 +58741,7 @@ __export(exports_axios, {
|
|
|
59117
58741
|
mergeConfig: () => mergeConfig2,
|
|
59118
58742
|
isCancel: () => isCancel2,
|
|
59119
58743
|
isAxiosError: () => isAxiosError2,
|
|
59120
|
-
getAdapter: () =>
|
|
58744
|
+
getAdapter: () => getAdapter,
|
|
59121
58745
|
formToJSON: () => formToJSON,
|
|
59122
58746
|
default: () => axios_default,
|
|
59123
58747
|
all: () => all2,
|
|
@@ -59130,7 +58754,7 @@ __export(exports_axios, {
|
|
|
59130
58754
|
AxiosError: () => AxiosError2,
|
|
59131
58755
|
Axios: () => Axios2
|
|
59132
58756
|
});
|
|
59133
|
-
var Axios2, AxiosError2, CanceledError2, isCancel2, CancelToken2, VERSION3, all2, Cancel, isAxiosError2, spread2, toFormData2, AxiosHeaders2, HttpStatusCode2, formToJSON,
|
|
58757
|
+
var Axios2, AxiosError2, CanceledError2, isCancel2, CancelToken2, VERSION3, all2, Cancel, isAxiosError2, spread2, toFormData2, AxiosHeaders2, HttpStatusCode2, formToJSON, getAdapter, mergeConfig2;
|
|
59134
58758
|
var init_axios2 = __esm(() => {
|
|
59135
58759
|
init_axios();
|
|
59136
58760
|
({
|
|
@@ -59148,7 +58772,7 @@ var init_axios2 = __esm(() => {
|
|
|
59148
58772
|
AxiosHeaders: AxiosHeaders2,
|
|
59149
58773
|
HttpStatusCode: HttpStatusCode2,
|
|
59150
58774
|
formToJSON,
|
|
59151
|
-
getAdapter
|
|
58775
|
+
getAdapter,
|
|
59152
58776
|
mergeConfig: mergeConfig2
|
|
59153
58777
|
} = axios_default);
|
|
59154
58778
|
});
|
|
@@ -61904,13 +61528,13 @@ var init_helpers = () => {};
|
|
|
61904
61528
|
|
|
61905
61529
|
// node_modules/agent-base/dist/index.js
|
|
61906
61530
|
import * as net from "net";
|
|
61907
|
-
import * as
|
|
61531
|
+
import * as http2 from "http";
|
|
61908
61532
|
import { Agent as HttpsAgent } from "https";
|
|
61909
61533
|
var INTERNAL, Agent2;
|
|
61910
61534
|
var init_dist = __esm(() => {
|
|
61911
61535
|
init_helpers();
|
|
61912
61536
|
INTERNAL = Symbol("AgentBaseInternalState");
|
|
61913
|
-
Agent2 = class Agent2 extends
|
|
61537
|
+
Agent2 = class Agent2 extends http2.Agent {
|
|
61914
61538
|
constructor(opts) {
|
|
61915
61539
|
super(opts);
|
|
61916
61540
|
this[INTERNAL] = {};
|
|
@@ -61972,7 +61596,7 @@ var init_dist = __esm(() => {
|
|
|
61972
61596
|
const fakeSocket = this.incrementSockets(name);
|
|
61973
61597
|
Promise.resolve().then(() => this.connect(req, connectOpts)).then((socket) => {
|
|
61974
61598
|
this.decrementSockets(name, fakeSocket);
|
|
61975
|
-
if (socket instanceof
|
|
61599
|
+
if (socket instanceof http2.Agent) {
|
|
61976
61600
|
try {
|
|
61977
61601
|
return socket.addRequest(req, connectOpts);
|
|
61978
61602
|
} catch (err) {
|
|
@@ -63164,7 +62788,7 @@ var require_util = __commonJS((exports, module) => {
|
|
|
63164
62788
|
return new BodyAsyncIterable(body);
|
|
63165
62789
|
} else if (body && isFormDataLike(body)) {
|
|
63166
62790
|
return body;
|
|
63167
|
-
} else if (body && typeof body !== "string" && !ArrayBuffer.isView(body) &&
|
|
62791
|
+
} else if (body && typeof body !== "string" && !ArrayBuffer.isView(body) && isIterable(body)) {
|
|
63168
62792
|
return new BodyAsyncIterable(body);
|
|
63169
62793
|
} else {
|
|
63170
62794
|
return body;
|
|
@@ -63286,13 +62910,13 @@ var require_util = __commonJS((exports, module) => {
|
|
|
63286
62910
|
function isAsyncIterable2(obj) {
|
|
63287
62911
|
return !!(obj != null && typeof obj[Symbol.asyncIterator] === "function");
|
|
63288
62912
|
}
|
|
63289
|
-
function
|
|
62913
|
+
function isIterable(obj) {
|
|
63290
62914
|
return !!(obj != null && (typeof obj[Symbol.iterator] === "function" || typeof obj[Symbol.asyncIterator] === "function"));
|
|
63291
62915
|
}
|
|
63292
62916
|
function hasSafeIterator(obj) {
|
|
63293
|
-
const
|
|
62917
|
+
const prototype3 = Object.getPrototypeOf(obj);
|
|
63294
62918
|
const ownIterator = Object.prototype.hasOwnProperty.call(obj, Symbol.iterator);
|
|
63295
|
-
return ownIterator ||
|
|
62919
|
+
return ownIterator || prototype3 != null && prototype3 !== Object.prototype && typeof obj[Symbol.iterator] === "function";
|
|
63296
62920
|
}
|
|
63297
62921
|
function bodyLength(body) {
|
|
63298
62922
|
if (body == null) {
|
|
@@ -63444,13 +63068,13 @@ var require_util = __commonJS((exports, module) => {
|
|
|
63444
63068
|
};
|
|
63445
63069
|
}
|
|
63446
63070
|
function ReadableStreamFrom2(iterable) {
|
|
63447
|
-
let
|
|
63071
|
+
let iterator;
|
|
63448
63072
|
return new ReadableStream({
|
|
63449
63073
|
start() {
|
|
63450
|
-
|
|
63074
|
+
iterator = iterable[Symbol.asyncIterator]();
|
|
63451
63075
|
},
|
|
63452
63076
|
pull(controller) {
|
|
63453
|
-
return
|
|
63077
|
+
return iterator.next().then(({ done, value }) => {
|
|
63454
63078
|
if (done) {
|
|
63455
63079
|
return queueMicrotask(() => {
|
|
63456
63080
|
controller.close();
|
|
@@ -63467,7 +63091,7 @@ var require_util = __commonJS((exports, module) => {
|
|
|
63467
63091
|
});
|
|
63468
63092
|
},
|
|
63469
63093
|
cancel() {
|
|
63470
|
-
return
|
|
63094
|
+
return iterator.return();
|
|
63471
63095
|
},
|
|
63472
63096
|
type: "bytes"
|
|
63473
63097
|
});
|
|
@@ -63883,7 +63507,7 @@ var require_util = __commonJS((exports, module) => {
|
|
|
63883
63507
|
parseURL,
|
|
63884
63508
|
getServerName,
|
|
63885
63509
|
isStream: isStream3,
|
|
63886
|
-
isIterable
|
|
63510
|
+
isIterable,
|
|
63887
63511
|
hasSafeIterator,
|
|
63888
63512
|
isAsyncIterable: isAsyncIterable2,
|
|
63889
63513
|
isDestroyed,
|
|
@@ -64109,7 +63733,7 @@ var require_request = __commonJS((exports, module) => {
|
|
|
64109
63733
|
destroy,
|
|
64110
63734
|
isBuffer: isBuffer3,
|
|
64111
63735
|
isFormDataLike,
|
|
64112
|
-
isIterable
|
|
63736
|
+
isIterable,
|
|
64113
63737
|
hasSafeIterator,
|
|
64114
63738
|
isBlobLike: isBlobLike2,
|
|
64115
63739
|
serializePathWithQuery,
|
|
@@ -64213,7 +63837,7 @@ var require_request = __commonJS((exports, module) => {
|
|
|
64213
63837
|
this.body = body.byteLength ? Buffer.from(body) : null;
|
|
64214
63838
|
} else if (typeof body === "string") {
|
|
64215
63839
|
this.body = body.length ? Buffer.from(body) : null;
|
|
64216
|
-
} else if (isFormDataLike(body) ||
|
|
63840
|
+
} else if (isFormDataLike(body) || isIterable(body) || isBlobLike2(body)) {
|
|
64217
63841
|
this.body = body;
|
|
64218
63842
|
} else {
|
|
64219
63843
|
throw new InvalidArgumentError("body must be a string, a Buffer, a Readable stream, an iterable, or an async iterable");
|
|
@@ -67989,9 +67613,9 @@ ${normalizeLinefeeds(value)}\r
|
|
|
67989
67613
|
if (action != null) {
|
|
67990
67614
|
(async () => {
|
|
67991
67615
|
const result = action();
|
|
67992
|
-
const
|
|
67993
|
-
if (
|
|
67994
|
-
for await (const bytes of
|
|
67616
|
+
const iterator = result?.[Symbol.asyncIterator]?.();
|
|
67617
|
+
if (iterator) {
|
|
67618
|
+
for await (const bytes of iterator) {
|
|
67995
67619
|
if (isErrored(stream4))
|
|
67996
67620
|
break;
|
|
67997
67621
|
if (bytes.length) {
|
|
@@ -68079,8 +67703,8 @@ ${normalizeLinefeeds(value)}\r
|
|
|
68079
67703
|
};
|
|
68080
67704
|
return methods;
|
|
68081
67705
|
}
|
|
68082
|
-
function mixinBody(
|
|
68083
|
-
Object.assign(
|
|
67706
|
+
function mixinBody(prototype3, getInternalState) {
|
|
67707
|
+
Object.assign(prototype3.prototype, bodyMixinMethods(prototype3, getInternalState));
|
|
68084
67708
|
}
|
|
68085
67709
|
function consumeBody(object2, convertBytesToJSValue, instance, getInternalState) {
|
|
68086
67710
|
try {
|
|
@@ -69830,7 +69454,7 @@ var require_client_h2 = __commonJS((exports, module) => {
|
|
|
69830
69454
|
var require_client = __commonJS((exports, module) => {
|
|
69831
69455
|
var assert3 = __require("node:assert");
|
|
69832
69456
|
var net3 = __require("node:net");
|
|
69833
|
-
var
|
|
69457
|
+
var http3 = __require("node:http");
|
|
69834
69458
|
var util3 = require_util();
|
|
69835
69459
|
var { ClientStats } = require_stats();
|
|
69836
69460
|
var { channels } = require_diagnostics();
|
|
@@ -69888,7 +69512,7 @@ var require_client = __commonJS((exports, module) => {
|
|
|
69888
69512
|
var connectH1 = require_client_h1();
|
|
69889
69513
|
var connectH2 = require_client_h2();
|
|
69890
69514
|
var kClosedResolve = Symbol("kClosedResolve");
|
|
69891
|
-
var getDefaultNodeMaxHeaderSize =
|
|
69515
|
+
var getDefaultNodeMaxHeaderSize = http3 && http3.maxHeaderSize && Number.isInteger(http3.maxHeaderSize) && http3.maxHeaderSize > 0 ? () => http3.maxHeaderSize : () => {
|
|
69892
69516
|
throw new InvalidArgumentError("http module not available or http.maxHeaderSize invalid");
|
|
69893
69517
|
};
|
|
69894
69518
|
var noop6 = () => {};
|
|
@@ -70592,7 +70216,7 @@ var require_pool = __commonJS((exports, module) => {
|
|
|
70592
70216
|
class Pool extends PoolBase {
|
|
70593
70217
|
constructor(origin2, {
|
|
70594
70218
|
connections,
|
|
70595
|
-
factory
|
|
70219
|
+
factory = defaultFactory,
|
|
70596
70220
|
connect: connect3,
|
|
70597
70221
|
connectTimeout,
|
|
70598
70222
|
tls: tls2,
|
|
@@ -70607,7 +70231,7 @@ var require_pool = __commonJS((exports, module) => {
|
|
|
70607
70231
|
if (connections != null && (!Number.isFinite(connections) || connections < 0)) {
|
|
70608
70232
|
throw new InvalidArgumentError("invalid connections");
|
|
70609
70233
|
}
|
|
70610
|
-
if (typeof
|
|
70234
|
+
if (typeof factory !== "function") {
|
|
70611
70235
|
throw new InvalidArgumentError("factory must be a function.");
|
|
70612
70236
|
}
|
|
70613
70237
|
if (connect3 != null && typeof connect3 !== "function" && typeof connect3 !== "object") {
|
|
@@ -70629,7 +70253,7 @@ var require_pool = __commonJS((exports, module) => {
|
|
|
70629
70253
|
this[kUrl] = util3.parseOrigin(origin2);
|
|
70630
70254
|
this[kOptions] = { ...util3.deepClone(options), connect: connect3, allowH2, clientTtl, socketPath };
|
|
70631
70255
|
this[kOptions].interceptors = options.interceptors ? { ...options.interceptors } : undefined;
|
|
70632
|
-
this[kFactory] =
|
|
70256
|
+
this[kFactory] = factory;
|
|
70633
70257
|
this.on("connect", (origin3, targets) => {
|
|
70634
70258
|
if (clientTtl != null && clientTtl > 0) {
|
|
70635
70259
|
for (const target of targets) {
|
|
@@ -70705,8 +70329,8 @@ var require_balanced_pool = __commonJS((exports, module) => {
|
|
|
70705
70329
|
}
|
|
70706
70330
|
|
|
70707
70331
|
class BalancedPool extends PoolBase {
|
|
70708
|
-
constructor(upstreams = [], { factory
|
|
70709
|
-
if (typeof
|
|
70332
|
+
constructor(upstreams = [], { factory = defaultFactory, ...opts } = {}) {
|
|
70333
|
+
if (typeof factory !== "function") {
|
|
70710
70334
|
throw new InvalidArgumentError("factory must be a function.");
|
|
70711
70335
|
}
|
|
70712
70336
|
super();
|
|
@@ -70719,7 +70343,7 @@ var require_balanced_pool = __commonJS((exports, module) => {
|
|
|
70719
70343
|
if (!Array.isArray(upstreams)) {
|
|
70720
70344
|
upstreams = [upstreams];
|
|
70721
70345
|
}
|
|
70722
|
-
this[kFactory] =
|
|
70346
|
+
this[kFactory] = factory;
|
|
70723
70347
|
for (const upstream of upstreams) {
|
|
70724
70348
|
this.addUpstream(upstream);
|
|
70725
70349
|
}
|
|
@@ -70840,7 +70464,7 @@ var require_round_robin_pool = __commonJS((exports, module) => {
|
|
|
70840
70464
|
class RoundRobinPool extends PoolBase {
|
|
70841
70465
|
constructor(origin2, {
|
|
70842
70466
|
connections,
|
|
70843
|
-
factory
|
|
70467
|
+
factory = defaultFactory,
|
|
70844
70468
|
connect: connect3,
|
|
70845
70469
|
connectTimeout,
|
|
70846
70470
|
tls: tls2,
|
|
@@ -70855,7 +70479,7 @@ var require_round_robin_pool = __commonJS((exports, module) => {
|
|
|
70855
70479
|
if (connections != null && (!Number.isFinite(connections) || connections < 0)) {
|
|
70856
70480
|
throw new InvalidArgumentError("invalid connections");
|
|
70857
70481
|
}
|
|
70858
|
-
if (typeof
|
|
70482
|
+
if (typeof factory !== "function") {
|
|
70859
70483
|
throw new InvalidArgumentError("factory must be a function.");
|
|
70860
70484
|
}
|
|
70861
70485
|
if (connect3 != null && typeof connect3 !== "function" && typeof connect3 !== "object") {
|
|
@@ -70877,7 +70501,7 @@ var require_round_robin_pool = __commonJS((exports, module) => {
|
|
|
70877
70501
|
this[kUrl] = util3.parseOrigin(origin2);
|
|
70878
70502
|
this[kOptions] = { ...util3.deepClone(options), connect: connect3, allowH2, clientTtl, socketPath };
|
|
70879
70503
|
this[kOptions].interceptors = options.interceptors ? { ...options.interceptors } : undefined;
|
|
70880
|
-
this[kFactory] =
|
|
70504
|
+
this[kFactory] = factory;
|
|
70881
70505
|
this[kIndex] = -1;
|
|
70882
70506
|
this.on("connect", (origin3, targets) => {
|
|
70883
70507
|
if (clientTtl != null && clientTtl > 0) {
|
|
@@ -70947,8 +70571,8 @@ var require_agent = __commonJS((exports, module) => {
|
|
|
70947
70571
|
}
|
|
70948
70572
|
|
|
70949
70573
|
class Agent3 extends DispatcherBase {
|
|
70950
|
-
constructor({ factory
|
|
70951
|
-
if (typeof
|
|
70574
|
+
constructor({ factory = defaultFactory, maxOrigins = Infinity, connect: connect3, ...options } = {}) {
|
|
70575
|
+
if (typeof factory !== "function") {
|
|
70952
70576
|
throw new InvalidArgumentError("factory must be a function.");
|
|
70953
70577
|
}
|
|
70954
70578
|
if (connect3 != null && typeof connect3 !== "function" && typeof connect3 !== "object") {
|
|
@@ -70962,7 +70586,7 @@ var require_agent = __commonJS((exports, module) => {
|
|
|
70962
70586
|
connect3 = { ...connect3 };
|
|
70963
70587
|
}
|
|
70964
70588
|
this[kOptions] = { ...util3.deepClone(options), maxOrigins, connect: connect3 };
|
|
70965
|
-
this[kFactory] =
|
|
70589
|
+
this[kFactory] = factory;
|
|
70966
70590
|
this[kClients] = new Map;
|
|
70967
70591
|
this[kOrigins] = new Set;
|
|
70968
70592
|
this[kOnDrain] = (origin2, targets) => {
|
|
@@ -71698,14 +71322,14 @@ var require_proxy_agent = __commonJS((exports, module) => {
|
|
|
71698
71322
|
|
|
71699
71323
|
class Http1ProxyWrapper extends DispatcherBase {
|
|
71700
71324
|
#client;
|
|
71701
|
-
constructor(proxyUrl, { headers = {}, connect: connect3, factory
|
|
71325
|
+
constructor(proxyUrl, { headers = {}, connect: connect3, factory }) {
|
|
71702
71326
|
if (!proxyUrl) {
|
|
71703
71327
|
throw new InvalidArgumentError("Proxy URL is mandatory");
|
|
71704
71328
|
}
|
|
71705
71329
|
super();
|
|
71706
71330
|
this[kProxyHeaders] = headers;
|
|
71707
|
-
if (
|
|
71708
|
-
this.#client =
|
|
71331
|
+
if (factory) {
|
|
71332
|
+
this.#client = factory(proxyUrl, { connect: connect3 });
|
|
71709
71333
|
} else {
|
|
71710
71334
|
this.#client = new Client(proxyUrl, { connect: connect3 });
|
|
71711
71335
|
}
|
|
@@ -71773,7 +71397,7 @@ var require_proxy_agent = __commonJS((exports, module) => {
|
|
|
71773
71397
|
const connect3 = buildConnector({ ...opts.proxyTls });
|
|
71774
71398
|
this[kConnectEndpoint] = buildConnector({ ...opts.requestTls });
|
|
71775
71399
|
const agentFactory = opts.factory || defaultAgentFactory;
|
|
71776
|
-
const
|
|
71400
|
+
const factory = (origin3, options) => {
|
|
71777
71401
|
const { protocol: protocol2 } = new URL(origin3);
|
|
71778
71402
|
if (this[kProxy].protocol === "socks5:" || this[kProxy].protocol === "socks:") {
|
|
71779
71403
|
return new Socks5ProxyAgent(this[kProxy].uri, {
|
|
@@ -71801,7 +71425,7 @@ var require_proxy_agent = __commonJS((exports, module) => {
|
|
|
71801
71425
|
}
|
|
71802
71426
|
this[kAgent] = new Agent3({
|
|
71803
71427
|
...opts,
|
|
71804
|
-
factory
|
|
71428
|
+
factory,
|
|
71805
71429
|
connect: async (opts2, callback) => {
|
|
71806
71430
|
if (!this[kClient]) {
|
|
71807
71431
|
callback(new InvalidArgumentError("Cannot establish tunnel connection without a proxy client"));
|
|
@@ -71918,7 +71542,7 @@ var require_env_http_proxy_agent = __commonJS((exports, module) => {
|
|
|
71918
71542
|
var { kClose, kDestroy, kClosed, kDestroyed, kDispatch, kNoProxyAgent, kHttpProxyAgent, kHttpsProxyAgent } = require_symbols();
|
|
71919
71543
|
var ProxyAgent = require_proxy_agent();
|
|
71920
71544
|
var Agent3 = require_agent();
|
|
71921
|
-
var
|
|
71545
|
+
var DEFAULT_PORTS = {
|
|
71922
71546
|
"http:": 80,
|
|
71923
71547
|
"https:": 443
|
|
71924
71548
|
};
|
|
@@ -71968,7 +71592,7 @@ var require_env_http_proxy_agent = __commonJS((exports, module) => {
|
|
|
71968
71592
|
#getProxyAgentForUrl(url3) {
|
|
71969
71593
|
let { protocol, host: hostname3, port } = url3;
|
|
71970
71594
|
hostname3 = hostname3.replace(/:\d*$/, "").toLowerCase();
|
|
71971
|
-
port = Number.parseInt(port, 10) ||
|
|
71595
|
+
port = Number.parseInt(port, 10) || DEFAULT_PORTS[protocol] || 0;
|
|
71972
71596
|
if (!this.#shouldProxy(hostname3, port)) {
|
|
71973
71597
|
return this[kNoProxyAgent];
|
|
71974
71598
|
}
|
|
@@ -72913,7 +72537,7 @@ var require_api_stream = __commonJS((exports, module) => {
|
|
|
72913
72537
|
function noop6() {}
|
|
72914
72538
|
|
|
72915
72539
|
class StreamHandler extends AsyncResource {
|
|
72916
|
-
constructor(opts,
|
|
72540
|
+
constructor(opts, factory, callback) {
|
|
72917
72541
|
if (!opts || typeof opts !== "object") {
|
|
72918
72542
|
throw new InvalidArgumentError("invalid opts");
|
|
72919
72543
|
}
|
|
@@ -72922,7 +72546,7 @@ var require_api_stream = __commonJS((exports, module) => {
|
|
|
72922
72546
|
if (typeof callback !== "function") {
|
|
72923
72547
|
throw new InvalidArgumentError("invalid callback");
|
|
72924
72548
|
}
|
|
72925
|
-
if (typeof
|
|
72549
|
+
if (typeof factory !== "function") {
|
|
72926
72550
|
throw new InvalidArgumentError("invalid factory");
|
|
72927
72551
|
}
|
|
72928
72552
|
if (signal && typeof signal.on !== "function" && typeof signal.addEventListener !== "function") {
|
|
@@ -72943,7 +72567,7 @@ var require_api_stream = __commonJS((exports, module) => {
|
|
|
72943
72567
|
}
|
|
72944
72568
|
this.responseHeaders = responseHeaders || null;
|
|
72945
72569
|
this.opaque = opaque || null;
|
|
72946
|
-
this.factory =
|
|
72570
|
+
this.factory = factory;
|
|
72947
72571
|
this.callback = callback;
|
|
72948
72572
|
this.res = null;
|
|
72949
72573
|
this.abort = null;
|
|
@@ -72968,7 +72592,7 @@ var require_api_stream = __commonJS((exports, module) => {
|
|
|
72968
72592
|
this.context = context;
|
|
72969
72593
|
}
|
|
72970
72594
|
onHeaders(statusCode, rawHeaders, resume2, statusMessage) {
|
|
72971
|
-
const { factory
|
|
72595
|
+
const { factory, opaque, context, responseHeaders } = this;
|
|
72972
72596
|
const headers = responseHeaders === "raw" ? util3.parseRawHeaders(rawHeaders) : util3.parseHeaders(rawHeaders);
|
|
72973
72597
|
if (statusCode < 200) {
|
|
72974
72598
|
if (this.onInfo) {
|
|
@@ -72977,10 +72601,10 @@ var require_api_stream = __commonJS((exports, module) => {
|
|
|
72977
72601
|
return;
|
|
72978
72602
|
}
|
|
72979
72603
|
this.factory = null;
|
|
72980
|
-
if (
|
|
72604
|
+
if (factory === null) {
|
|
72981
72605
|
return;
|
|
72982
72606
|
}
|
|
72983
|
-
const res = this.runInAsyncScope(
|
|
72607
|
+
const res = this.runInAsyncScope(factory, null, {
|
|
72984
72608
|
statusCode,
|
|
72985
72609
|
headers,
|
|
72986
72610
|
opaque,
|
|
@@ -73038,16 +72662,16 @@ var require_api_stream = __commonJS((exports, module) => {
|
|
|
73038
72662
|
}
|
|
73039
72663
|
}
|
|
73040
72664
|
}
|
|
73041
|
-
function stream4(opts,
|
|
72665
|
+
function stream4(opts, factory, callback) {
|
|
73042
72666
|
if (callback === undefined) {
|
|
73043
72667
|
return new Promise((resolve11, reject) => {
|
|
73044
|
-
stream4.call(this, opts,
|
|
72668
|
+
stream4.call(this, opts, factory, (err, data) => {
|
|
73045
72669
|
return err ? reject(err) : resolve11(data);
|
|
73046
72670
|
});
|
|
73047
72671
|
});
|
|
73048
72672
|
}
|
|
73049
72673
|
try {
|
|
73050
|
-
const handler = new StreamHandler(opts,
|
|
72674
|
+
const handler = new StreamHandler(opts, factory, callback);
|
|
73051
72675
|
this.dispatch(opts, handler);
|
|
73052
72676
|
} catch (err) {
|
|
73053
72677
|
if (typeof callback !== "function") {
|
|
@@ -74547,8 +74171,8 @@ var require_snapshot_utils = __commonJS((exports, module) => {
|
|
|
74547
74171
|
match: new Set(matchHeaders.map((header) => caseSensitive ? header : header.toLowerCase()))
|
|
74548
74172
|
};
|
|
74549
74173
|
}
|
|
74550
|
-
var
|
|
74551
|
-
var hashId =
|
|
74174
|
+
var crypto3 = runtimeFeatures.has("crypto") ? __require("node:crypto") : null;
|
|
74175
|
+
var hashId = crypto3?.hash ? (value) => crypto3.hash("sha256", value, "base64url") : (value) => Buffer.from(value).toString("base64url");
|
|
74552
74176
|
function isUndiciHeaders(headers) {
|
|
74553
74177
|
return Array.isArray(headers) && (headers.length & 1) === 0;
|
|
74554
74178
|
}
|
|
@@ -75558,9 +75182,9 @@ var require_dns = __commonJS((exports, module) => {
|
|
|
75558
75182
|
var { InvalidArgumentError, InformationalError } = require_errors();
|
|
75559
75183
|
var maxInt = Math.pow(2, 31) - 1;
|
|
75560
75184
|
function hasSafeIterator(headers) {
|
|
75561
|
-
const
|
|
75185
|
+
const prototype3 = Object.getPrototypeOf(headers);
|
|
75562
75186
|
const ownIterator = Object.prototype.hasOwnProperty.call(headers, Symbol.iterator);
|
|
75563
|
-
return ownIterator ||
|
|
75187
|
+
return ownIterator || prototype3 != null && prototype3 !== Object.prototype && typeof headers[Symbol.iterator] === "function";
|
|
75564
75188
|
}
|
|
75565
75189
|
function isHostHeader(key) {
|
|
75566
75190
|
return typeof key === "string" && key.toLowerCase() === "host";
|
|
@@ -78515,12 +78139,12 @@ var require_headers = __commonJS((exports, module) => {
|
|
|
78515
78139
|
if (size === 0) {
|
|
78516
78140
|
return array2;
|
|
78517
78141
|
}
|
|
78518
|
-
const
|
|
78519
|
-
const firstValue =
|
|
78142
|
+
const iterator = this.headersMap[Symbol.iterator]();
|
|
78143
|
+
const firstValue = iterator.next().value;
|
|
78520
78144
|
array2[0] = [firstValue[0], firstValue[1].value];
|
|
78521
78145
|
assert3(firstValue[1].value !== null);
|
|
78522
78146
|
for (let i2 = 1, j = 0, right = 0, left = 0, pivot = 0, x2, value;i2 < size; ++i2) {
|
|
78523
|
-
value =
|
|
78147
|
+
value = iterator.next().value;
|
|
78524
78148
|
x2 = array2[i2] = [value[0], value[1].value];
|
|
78525
78149
|
assert3(x2[1] !== null);
|
|
78526
78150
|
left = 0;
|
|
@@ -78541,7 +78165,7 @@ var require_headers = __commonJS((exports, module) => {
|
|
|
78541
78165
|
array2[left] = x2;
|
|
78542
78166
|
}
|
|
78543
78167
|
}
|
|
78544
|
-
if (!
|
|
78168
|
+
if (!iterator.next().done) {
|
|
78545
78169
|
throw new TypeError("Unreachable");
|
|
78546
78170
|
}
|
|
78547
78171
|
return array2;
|
|
@@ -78700,14 +78324,14 @@ var require_headers = __commonJS((exports, module) => {
|
|
|
78700
78324
|
});
|
|
78701
78325
|
webidl.converters.HeadersInit = function(V, prefix, argument) {
|
|
78702
78326
|
if (webidl.util.Type(V) === webidl.util.Types.OBJECT) {
|
|
78703
|
-
const
|
|
78704
|
-
if (!util3.types.isProxy(V) &&
|
|
78327
|
+
const iterator = Reflect.get(V, Symbol.iterator);
|
|
78328
|
+
if (!util3.types.isProxy(V) && iterator === Headers2.prototype.entries) {
|
|
78705
78329
|
try {
|
|
78706
78330
|
return getHeadersList(V).entriesList;
|
|
78707
78331
|
} catch {}
|
|
78708
78332
|
}
|
|
78709
|
-
if (typeof
|
|
78710
|
-
return webidl.converters["sequence<sequence<ByteString>>"](V, prefix, argument,
|
|
78333
|
+
if (typeof iterator === "function") {
|
|
78334
|
+
return webidl.converters["sequence<sequence<ByteString>>"](V, prefix, argument, iterator.bind(V));
|
|
78711
78335
|
}
|
|
78712
78336
|
return webidl.converters["record<ByteString, ByteString>"](V, prefix, argument);
|
|
78713
78337
|
}
|
|
@@ -79752,10 +79376,10 @@ var require_subresource_integrity = __commonJS((exports, module) => {
|
|
|
79752
79376
|
var assert3 = __require("node:assert");
|
|
79753
79377
|
var { runtimeFeatures } = require_runtime_features();
|
|
79754
79378
|
var validSRIHashAlgorithmTokenSet = new Map([["sha256", 0], ["sha384", 1], ["sha512", 2]]);
|
|
79755
|
-
var
|
|
79379
|
+
var crypto3;
|
|
79756
79380
|
if (runtimeFeatures.has("crypto")) {
|
|
79757
|
-
|
|
79758
|
-
const cryptoHashes =
|
|
79381
|
+
crypto3 = __require("node:crypto");
|
|
79382
|
+
const cryptoHashes = crypto3.getHashes();
|
|
79759
79383
|
if (cryptoHashes.length === 0) {
|
|
79760
79384
|
validSRIHashAlgorithmTokenSet.clear();
|
|
79761
79385
|
}
|
|
@@ -79834,7 +79458,7 @@ var require_subresource_integrity = __commonJS((exports, module) => {
|
|
|
79834
79458
|
return result;
|
|
79835
79459
|
}
|
|
79836
79460
|
var applyAlgorithmToBytes = (algorithm, bytes) => {
|
|
79837
|
-
return
|
|
79461
|
+
return crypto3.hash(algorithm, bytes, "base64");
|
|
79838
79462
|
};
|
|
79839
79463
|
function caseSensitiveMatch(actualValue, expectedValue) {
|
|
79840
79464
|
let actualValueLength = actualValue.length;
|
|
@@ -80668,8 +80292,8 @@ var require_fetch = __commonJS((exports, module) => {
|
|
|
80668
80292
|
if (socket) {
|
|
80669
80293
|
response = makeResponse({ status, statusText, headersList, socket });
|
|
80670
80294
|
} else {
|
|
80671
|
-
const
|
|
80672
|
-
fetchParams.controller.next = () =>
|
|
80295
|
+
const iterator = body[Symbol.asyncIterator]();
|
|
80296
|
+
fetchParams.controller.next = () => iterator.next();
|
|
80673
80297
|
response = makeResponse({ status, statusText, headersList });
|
|
80674
80298
|
}
|
|
80675
80299
|
} catch (err) {
|
|
@@ -82522,7 +82146,7 @@ var require_connection = __commonJS((exports, module) => {
|
|
|
82522
82146
|
var { WebsocketFrameSend } = require_frame();
|
|
82523
82147
|
var assert3 = __require("node:assert");
|
|
82524
82148
|
var { runtimeFeatures } = require_runtime_features();
|
|
82525
|
-
var
|
|
82149
|
+
var crypto3 = runtimeFeatures.has("crypto") ? __require("node:crypto") : null;
|
|
82526
82150
|
var warningEmitted = false;
|
|
82527
82151
|
function establishWebSocketConnection(url3, protocols, client, handler, options) {
|
|
82528
82152
|
const requestURL = url3;
|
|
@@ -82542,7 +82166,7 @@ var require_connection = __commonJS((exports, module) => {
|
|
|
82542
82166
|
const headersList = getHeadersList(new Headers2(options.headers));
|
|
82543
82167
|
request.headersList = headersList;
|
|
82544
82168
|
}
|
|
82545
|
-
const keyValue =
|
|
82169
|
+
const keyValue = crypto3.randomBytes(16).toString("base64");
|
|
82546
82170
|
request.headersList.append("sec-websocket-key", keyValue, true);
|
|
82547
82171
|
request.headersList.append("sec-websocket-version", "13", true);
|
|
82548
82172
|
for (const protocol of protocols) {
|
|
@@ -82582,7 +82206,7 @@ var require_connection = __commonJS((exports, module) => {
|
|
|
82582
82206
|
return;
|
|
82583
82207
|
}
|
|
82584
82208
|
const secWSAccept = response.headersList.get("Sec-WebSocket-Accept");
|
|
82585
|
-
const digest =
|
|
82209
|
+
const digest = crypto3.hash("sha1", keyValue + uid, "base64");
|
|
82586
82210
|
if (secWSAccept !== digest) {
|
|
82587
82211
|
failWebsocketConnection(handler, 1002, "Incorrect hash received in Sec-WebSocket-Accept header.");
|
|
82588
82212
|
return;
|
|
@@ -86204,8 +85828,8 @@ var require_dist_cjs9 = __commonJS((exports) => {
|
|
|
86204
85828
|
throw new propertyProvider.CredentialsProviderError(e.message || `Not found in config files w/ profile [${profile}]: ${getSelectorName(configSelector.toString())}`, { logger: init.logger });
|
|
86205
85829
|
}
|
|
86206
85830
|
};
|
|
86207
|
-
var
|
|
86208
|
-
var fromStatic = (defaultValue) =>
|
|
85831
|
+
var isFunction3 = (func) => typeof func === "function";
|
|
85832
|
+
var fromStatic = (defaultValue) => isFunction3(defaultValue) ? async () => await defaultValue() : propertyProvider.fromStatic(defaultValue);
|
|
86209
85833
|
var loadConfig = ({ environmentVariableSelector, configFileSelector, default: defaultValue }, configuration = {}) => {
|
|
86210
85834
|
const { signingName, logger } = configuration;
|
|
86211
85835
|
const envOptions = { signingName, logger };
|
|
@@ -86243,9 +85867,9 @@ var require_dist_cjs10 = __commonJS((exports) => {
|
|
|
86243
85867
|
// node_modules/@smithy/url-parser/dist-cjs/index.js
|
|
86244
85868
|
var require_dist_cjs11 = __commonJS((exports) => {
|
|
86245
85869
|
var querystringParser = require_dist_cjs10();
|
|
86246
|
-
var
|
|
85870
|
+
var parseUrl = (url3) => {
|
|
86247
85871
|
if (typeof url3 === "string") {
|
|
86248
|
-
return
|
|
85872
|
+
return parseUrl(new URL(url3));
|
|
86249
85873
|
}
|
|
86250
85874
|
const { hostname: hostname3, pathname, port, protocol, search } = url3;
|
|
86251
85875
|
let query2;
|
|
@@ -86260,7 +85884,7 @@ var require_dist_cjs11 = __commonJS((exports) => {
|
|
|
86260
85884
|
query: query2
|
|
86261
85885
|
};
|
|
86262
85886
|
};
|
|
86263
|
-
exports.parseUrl =
|
|
85887
|
+
exports.parseUrl = parseUrl;
|
|
86264
85888
|
});
|
|
86265
85889
|
|
|
86266
85890
|
// node_modules/@smithy/credential-provider-imds/dist-cjs/index.js
|
|
@@ -86268,12 +85892,12 @@ var require_dist_cjs12 = __commonJS((exports) => {
|
|
|
86268
85892
|
var propertyProvider = require_dist_cjs6();
|
|
86269
85893
|
var url3 = __require("url");
|
|
86270
85894
|
var buffer = __require("buffer");
|
|
86271
|
-
var
|
|
85895
|
+
var http3 = __require("http");
|
|
86272
85896
|
var nodeConfigProvider = require_dist_cjs9();
|
|
86273
85897
|
var urlParser = require_dist_cjs11();
|
|
86274
85898
|
function httpRequest(options) {
|
|
86275
85899
|
return new Promise((resolve11, reject) => {
|
|
86276
|
-
const req =
|
|
85900
|
+
const req = http3.request({
|
|
86277
85901
|
method: "GET",
|
|
86278
85902
|
...options,
|
|
86279
85903
|
hostname: options.hostname?.replace(/^\[(.+)\]$/, "$1")
|
|
@@ -86641,16 +86265,16 @@ var require_tslib = __commonJS((exports, module) => {
|
|
|
86641
86265
|
var __addDisposableResource;
|
|
86642
86266
|
var __disposeResources;
|
|
86643
86267
|
var __rewriteRelativeImportExtension;
|
|
86644
|
-
(function(
|
|
86268
|
+
(function(factory) {
|
|
86645
86269
|
var root2 = typeof global === "object" ? global : typeof self === "object" ? self : typeof this === "object" ? this : {};
|
|
86646
86270
|
if (typeof define === "function" && define.amd) {
|
|
86647
86271
|
define("tslib", ["exports"], function(exports2) {
|
|
86648
|
-
|
|
86272
|
+
factory(createExporter(root2, createExporter(exports2)));
|
|
86649
86273
|
});
|
|
86650
86274
|
} else if (typeof module === "object" && typeof exports === "object") {
|
|
86651
|
-
|
|
86275
|
+
factory(createExporter(root2, createExporter(exports)));
|
|
86652
86276
|
} else {
|
|
86653
|
-
|
|
86277
|
+
factory(createExporter(root2));
|
|
86654
86278
|
}
|
|
86655
86279
|
function createExporter(exports2, previous) {
|
|
86656
86280
|
if (exports2 !== root2) {
|
|
@@ -93400,7 +93024,7 @@ var require_dist_cjs30 = __commonJS((exports) => {
|
|
|
93400
93024
|
}, value);
|
|
93401
93025
|
var isSet2 = (value) => value != null;
|
|
93402
93026
|
var not = (value) => !value;
|
|
93403
|
-
var
|
|
93027
|
+
var DEFAULT_PORTS = {
|
|
93404
93028
|
[types.EndpointURLScheme.HTTP]: 80,
|
|
93405
93029
|
[types.EndpointURLScheme.HTTPS]: 443
|
|
93406
93030
|
};
|
|
@@ -93435,8 +93059,8 @@ var require_dist_cjs30 = __commonJS((exports) => {
|
|
|
93435
93059
|
return null;
|
|
93436
93060
|
}
|
|
93437
93061
|
const isIp = isIpAddress(hostname3);
|
|
93438
|
-
const inputContainsDefaultPort = urlString.includes(`${host}:${
|
|
93439
|
-
const authority = `${host}${inputContainsDefaultPort ? `:${
|
|
93062
|
+
const inputContainsDefaultPort = urlString.includes(`${host}:${DEFAULT_PORTS[scheme]}`) || typeof value === "string" && value.includes(`${host}:${DEFAULT_PORTS[scheme]}`);
|
|
93063
|
+
const authority = `${host}${inputContainsDefaultPort ? `:${DEFAULT_PORTS[scheme]}` : ``}`;
|
|
93440
93064
|
return {
|
|
93441
93065
|
scheme,
|
|
93442
93066
|
authority,
|
|
@@ -95985,7 +95609,7 @@ var require_dist_cjs42 = __commonJS((exports) => {
|
|
|
95985
95609
|
var utilBufferFrom = require_dist_cjs15();
|
|
95986
95610
|
var utilUtf8 = require_dist_cjs16();
|
|
95987
95611
|
var buffer = __require("buffer");
|
|
95988
|
-
var
|
|
95612
|
+
var crypto3 = __require("crypto");
|
|
95989
95613
|
|
|
95990
95614
|
class Hash2 {
|
|
95991
95615
|
algorithmIdentifier;
|
|
@@ -96003,7 +95627,7 @@ var require_dist_cjs42 = __commonJS((exports) => {
|
|
|
96003
95627
|
return Promise.resolve(this.hash.digest());
|
|
96004
95628
|
}
|
|
96005
95629
|
reset() {
|
|
96006
|
-
this.hash = this.secret ?
|
|
95630
|
+
this.hash = this.secret ? crypto3.createHmac(this.algorithmIdentifier, castSourceData(this.secret)) : crypto3.createHash(this.algorithmIdentifier);
|
|
96007
95631
|
}
|
|
96008
95632
|
}
|
|
96009
95633
|
function castSourceData(toCast, encoding) {
|
|
@@ -97623,7 +97247,7 @@ var require_fxp = __commonJS((exports, module) => {
|
|
|
97623
97247
|
const D2 = /^[-+]?0x[a-fA-F0-9]+$/, V = /^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/, k = { hex: true, leadingZeros: true, decimalPoint: ".", eNotation: true, infinity: "original" };
|
|
97624
97248
|
const F = /^([-+])?(0*)(\d*(\.\d*)?[eE][-\+]?\d+)$/, L2 = new Set(["push", "pop", "reset", "updateCurrent", "restore"]);
|
|
97625
97249
|
|
|
97626
|
-
class
|
|
97250
|
+
class G2 {
|
|
97627
97251
|
constructor(t2 = {}) {
|
|
97628
97252
|
this.separator = t2.separator || ".", this.path = [], this.siblingStacks = [];
|
|
97629
97253
|
}
|
|
@@ -97878,7 +97502,7 @@ var require_fxp = __commonJS((exports, module) => {
|
|
|
97878
97502
|
if (i3 instanceof RegExp && i3.test(t3))
|
|
97879
97503
|
return true;
|
|
97880
97504
|
}
|
|
97881
|
-
} : () => false, this.entityExpansionCount = 0, this.currentExpandedLength = 0, this.matcher = new
|
|
97505
|
+
} : () => false, this.entityExpansionCount = 0, this.currentExpandedLength = 0, this.matcher = new G2, this.readonlyMatcher = this.matcher.readOnly(), this.isCurrentNodeStopNode = false, this.options.stopNodes && this.options.stopNodes.length > 0) {
|
|
97882
97506
|
this.stopNodeExpressions = [];
|
|
97883
97507
|
for (let t3 = 0;t3 < this.options.stopNodes.length; t3++) {
|
|
97884
97508
|
const e3 = this.options.stopNodes[t3];
|
|
@@ -98364,7 +97988,7 @@ var require_fxp = __commonJS((exports, module) => {
|
|
|
98364
97988
|
const i4 = e2.stopNodes[t3];
|
|
98365
97989
|
typeof i4 == "string" ? n3.push(new R2(i4)) : i4 instanceof R2 && n3.push(i4);
|
|
98366
97990
|
}
|
|
98367
|
-
return xt(t2, e2, i3, new
|
|
97991
|
+
return xt(t2, e2, i3, new G2, n3);
|
|
98368
97992
|
}
|
|
98369
97993
|
function xt(t2, e2, i3, n3, s2) {
|
|
98370
97994
|
let r2 = "", o3 = false;
|
|
@@ -98536,7 +98160,7 @@ var require_fxp = __commonJS((exports, module) => {
|
|
|
98536
98160
|
return mt(t2, this.options);
|
|
98537
98161
|
{
|
|
98538
98162
|
Array.isArray(t2) && this.options.arrayNodeName && this.options.arrayNodeName.length > 1 && (t2 = { [this.options.arrayNodeName]: t2 });
|
|
98539
|
-
const e2 = new
|
|
98163
|
+
const e2 = new G2;
|
|
98540
98164
|
return this.j2x(t2, 0, e2).val;
|
|
98541
98165
|
}
|
|
98542
98166
|
}, St.prototype.j2x = function(t2, e2, i3) {
|
|
@@ -103585,7 +103209,7 @@ var require_ruleset4 = __commonJS((exports) => {
|
|
|
103585
103209
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
103586
103210
|
exports.ruleSet = undefined;
|
|
103587
103211
|
var F = "required";
|
|
103588
|
-
var
|
|
103212
|
+
var G2 = "type";
|
|
103589
103213
|
var H2 = "fn";
|
|
103590
103214
|
var I2 = "argv";
|
|
103591
103215
|
var J = "ref";
|
|
@@ -103601,8 +103225,8 @@ var require_ruleset4 = __commonJS((exports) => {
|
|
|
103601
103225
|
var j = "tree";
|
|
103602
103226
|
var k = "error";
|
|
103603
103227
|
var l = "getAttr";
|
|
103604
|
-
var m = { [F]: false, [
|
|
103605
|
-
var n2 = { [F]: true, default: false, [
|
|
103228
|
+
var m = { [F]: false, [G2]: "string" };
|
|
103229
|
+
var n2 = { [F]: true, default: false, [G2]: "boolean" };
|
|
103606
103230
|
var o2 = { [J]: "Endpoint" };
|
|
103607
103231
|
var p = { [H2]: "isSet", [I2]: [{ [J]: "Region" }] };
|
|
103608
103232
|
var q = { [J]: "Region" };
|
|
@@ -103615,7 +103239,7 @@ var require_ruleset4 = __commonJS((exports) => {
|
|
|
103615
103239
|
headers: {}
|
|
103616
103240
|
};
|
|
103617
103241
|
var v = {};
|
|
103618
|
-
var w = { conditions: [{ [H2]: d, [I2]: [q, "aws-global"] }], [h2]: u2, [
|
|
103242
|
+
var w = { conditions: [{ [H2]: d, [I2]: [q, "aws-global"] }], [h2]: u2, [G2]: h2 };
|
|
103619
103243
|
var x2 = { [H2]: c5, [I2]: [s, true] };
|
|
103620
103244
|
var y2 = { [H2]: c5, [I2]: [t, true] };
|
|
103621
103245
|
var z3 = { [H2]: l, [I2]: [{ [J]: "PartitionResult" }, "supportsFIPS"] };
|
|
@@ -103638,41 +103262,41 @@ var require_ruleset4 = __commonJS((exports) => {
|
|
|
103638
103262
|
{ [H2]: c5, [I2]: [t, a2] }
|
|
103639
103263
|
],
|
|
103640
103264
|
rules: [
|
|
103641
|
-
{ conditions: [{ [H2]: d, [I2]: [q, "ap-northeast-1"] }], endpoint: u2, [
|
|
103642
|
-
{ conditions: [{ [H2]: d, [I2]: [q, "ap-south-1"] }], endpoint: u2, [
|
|
103643
|
-
{ conditions: [{ [H2]: d, [I2]: [q, "ap-southeast-1"] }], endpoint: u2, [
|
|
103644
|
-
{ conditions: [{ [H2]: d, [I2]: [q, "ap-southeast-2"] }], endpoint: u2, [
|
|
103265
|
+
{ conditions: [{ [H2]: d, [I2]: [q, "ap-northeast-1"] }], endpoint: u2, [G2]: h2 },
|
|
103266
|
+
{ conditions: [{ [H2]: d, [I2]: [q, "ap-south-1"] }], endpoint: u2, [G2]: h2 },
|
|
103267
|
+
{ conditions: [{ [H2]: d, [I2]: [q, "ap-southeast-1"] }], endpoint: u2, [G2]: h2 },
|
|
103268
|
+
{ conditions: [{ [H2]: d, [I2]: [q, "ap-southeast-2"] }], endpoint: u2, [G2]: h2 },
|
|
103645
103269
|
w,
|
|
103646
|
-
{ conditions: [{ [H2]: d, [I2]: [q, "ca-central-1"] }], endpoint: u2, [
|
|
103647
|
-
{ conditions: [{ [H2]: d, [I2]: [q, "eu-central-1"] }], endpoint: u2, [
|
|
103648
|
-
{ conditions: [{ [H2]: d, [I2]: [q, "eu-north-1"] }], endpoint: u2, [
|
|
103649
|
-
{ conditions: [{ [H2]: d, [I2]: [q, "eu-west-1"] }], endpoint: u2, [
|
|
103650
|
-
{ conditions: [{ [H2]: d, [I2]: [q, "eu-west-2"] }], endpoint: u2, [
|
|
103651
|
-
{ conditions: [{ [H2]: d, [I2]: [q, "eu-west-3"] }], endpoint: u2, [
|
|
103652
|
-
{ conditions: [{ [H2]: d, [I2]: [q, "sa-east-1"] }], endpoint: u2, [
|
|
103653
|
-
{ conditions: [{ [H2]: d, [I2]: [q, g] }], endpoint: u2, [
|
|
103654
|
-
{ conditions: [{ [H2]: d, [I2]: [q, "us-east-2"] }], endpoint: u2, [
|
|
103655
|
-
{ conditions: [{ [H2]: d, [I2]: [q, "us-west-1"] }], endpoint: u2, [
|
|
103656
|
-
{ conditions: [{ [H2]: d, [I2]: [q, "us-west-2"] }], endpoint: u2, [
|
|
103270
|
+
{ conditions: [{ [H2]: d, [I2]: [q, "ca-central-1"] }], endpoint: u2, [G2]: h2 },
|
|
103271
|
+
{ conditions: [{ [H2]: d, [I2]: [q, "eu-central-1"] }], endpoint: u2, [G2]: h2 },
|
|
103272
|
+
{ conditions: [{ [H2]: d, [I2]: [q, "eu-north-1"] }], endpoint: u2, [G2]: h2 },
|
|
103273
|
+
{ conditions: [{ [H2]: d, [I2]: [q, "eu-west-1"] }], endpoint: u2, [G2]: h2 },
|
|
103274
|
+
{ conditions: [{ [H2]: d, [I2]: [q, "eu-west-2"] }], endpoint: u2, [G2]: h2 },
|
|
103275
|
+
{ conditions: [{ [H2]: d, [I2]: [q, "eu-west-3"] }], endpoint: u2, [G2]: h2 },
|
|
103276
|
+
{ conditions: [{ [H2]: d, [I2]: [q, "sa-east-1"] }], endpoint: u2, [G2]: h2 },
|
|
103277
|
+
{ conditions: [{ [H2]: d, [I2]: [q, g] }], endpoint: u2, [G2]: h2 },
|
|
103278
|
+
{ conditions: [{ [H2]: d, [I2]: [q, "us-east-2"] }], endpoint: u2, [G2]: h2 },
|
|
103279
|
+
{ conditions: [{ [H2]: d, [I2]: [q, "us-west-1"] }], endpoint: u2, [G2]: h2 },
|
|
103280
|
+
{ conditions: [{ [H2]: d, [I2]: [q, "us-west-2"] }], endpoint: u2, [G2]: h2 },
|
|
103657
103281
|
{
|
|
103658
103282
|
endpoint: {
|
|
103659
103283
|
url: i2,
|
|
103660
103284
|
properties: { authSchemes: [{ name: e, signingName: f, signingRegion: "{Region}" }] },
|
|
103661
103285
|
headers: v
|
|
103662
103286
|
},
|
|
103663
|
-
[
|
|
103287
|
+
[G2]: h2
|
|
103664
103288
|
}
|
|
103665
103289
|
],
|
|
103666
|
-
[
|
|
103290
|
+
[G2]: j
|
|
103667
103291
|
},
|
|
103668
103292
|
{
|
|
103669
103293
|
conditions: C2,
|
|
103670
103294
|
rules: [
|
|
103671
|
-
{ conditions: D2, error: "Invalid Configuration: FIPS and custom endpoint are not supported", [
|
|
103672
|
-
{ conditions: E, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", [
|
|
103673
|
-
{ endpoint: { url: o2, properties: v, headers: v }, [
|
|
103295
|
+
{ conditions: D2, error: "Invalid Configuration: FIPS and custom endpoint are not supported", [G2]: k },
|
|
103296
|
+
{ conditions: E, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", [G2]: k },
|
|
103297
|
+
{ endpoint: { url: o2, properties: v, headers: v }, [G2]: h2 }
|
|
103674
103298
|
],
|
|
103675
|
-
[
|
|
103299
|
+
[G2]: j
|
|
103676
103300
|
},
|
|
103677
103301
|
{
|
|
103678
103302
|
conditions: [p],
|
|
@@ -103692,14 +103316,14 @@ var require_ruleset4 = __commonJS((exports) => {
|
|
|
103692
103316
|
properties: v,
|
|
103693
103317
|
headers: v
|
|
103694
103318
|
},
|
|
103695
|
-
[
|
|
103319
|
+
[G2]: h2
|
|
103696
103320
|
}
|
|
103697
103321
|
],
|
|
103698
|
-
[
|
|
103322
|
+
[G2]: j
|
|
103699
103323
|
},
|
|
103700
|
-
{ error: "FIPS and DualStack are enabled, but this partition does not support one or both", [
|
|
103324
|
+
{ error: "FIPS and DualStack are enabled, but this partition does not support one or both", [G2]: k }
|
|
103701
103325
|
],
|
|
103702
|
-
[
|
|
103326
|
+
[G2]: j
|
|
103703
103327
|
},
|
|
103704
103328
|
{
|
|
103705
103329
|
conditions: D2,
|
|
@@ -103710,7 +103334,7 @@ var require_ruleset4 = __commonJS((exports) => {
|
|
|
103710
103334
|
{
|
|
103711
103335
|
conditions: [{ [H2]: d, [I2]: [{ [H2]: l, [I2]: [A, "name"] }, "aws-us-gov"] }],
|
|
103712
103336
|
endpoint: { url: "https://sts.{Region}.amazonaws.com", properties: v, headers: v },
|
|
103713
|
-
[
|
|
103337
|
+
[G2]: h2
|
|
103714
103338
|
},
|
|
103715
103339
|
{
|
|
103716
103340
|
endpoint: {
|
|
@@ -103718,14 +103342,14 @@ var require_ruleset4 = __commonJS((exports) => {
|
|
|
103718
103342
|
properties: v,
|
|
103719
103343
|
headers: v
|
|
103720
103344
|
},
|
|
103721
|
-
[
|
|
103345
|
+
[G2]: h2
|
|
103722
103346
|
}
|
|
103723
103347
|
],
|
|
103724
|
-
[
|
|
103348
|
+
[G2]: j
|
|
103725
103349
|
},
|
|
103726
|
-
{ error: "FIPS is enabled but this partition does not support FIPS", [
|
|
103350
|
+
{ error: "FIPS is enabled but this partition does not support FIPS", [G2]: k }
|
|
103727
103351
|
],
|
|
103728
|
-
[
|
|
103352
|
+
[G2]: j
|
|
103729
103353
|
},
|
|
103730
103354
|
{
|
|
103731
103355
|
conditions: E,
|
|
@@ -103739,24 +103363,24 @@ var require_ruleset4 = __commonJS((exports) => {
|
|
|
103739
103363
|
properties: v,
|
|
103740
103364
|
headers: v
|
|
103741
103365
|
},
|
|
103742
|
-
[
|
|
103366
|
+
[G2]: h2
|
|
103743
103367
|
}
|
|
103744
103368
|
],
|
|
103745
|
-
[
|
|
103369
|
+
[G2]: j
|
|
103746
103370
|
},
|
|
103747
|
-
{ error: "DualStack is enabled but this partition does not support DualStack", [
|
|
103371
|
+
{ error: "DualStack is enabled but this partition does not support DualStack", [G2]: k }
|
|
103748
103372
|
],
|
|
103749
|
-
[
|
|
103373
|
+
[G2]: j
|
|
103750
103374
|
},
|
|
103751
103375
|
w,
|
|
103752
|
-
{ endpoint: { url: i2, properties: v, headers: v }, [
|
|
103376
|
+
{ endpoint: { url: i2, properties: v, headers: v }, [G2]: h2 }
|
|
103753
103377
|
],
|
|
103754
|
-
[
|
|
103378
|
+
[G2]: j
|
|
103755
103379
|
}
|
|
103756
103380
|
],
|
|
103757
|
-
[
|
|
103381
|
+
[G2]: j
|
|
103758
103382
|
},
|
|
103759
|
-
{ error: "Invalid Configuration: Missing Region", [
|
|
103383
|
+
{ error: "Invalid Configuration: Missing Region", [G2]: k }
|
|
103760
103384
|
]
|
|
103761
103385
|
};
|
|
103762
103386
|
exports.ruleSet = _data;
|
|
@@ -106341,7 +105965,7 @@ var require_dist_cjs61 = __commonJS((exports) => {
|
|
|
106341
105965
|
const currentMessageView = new DataView(currentMessage.buffer);
|
|
106342
105966
|
currentMessageView.setUint32(0, size, false);
|
|
106343
105967
|
};
|
|
106344
|
-
const
|
|
105968
|
+
const iterator = async function* () {
|
|
106345
105969
|
const sourceIterator = source[Symbol.asyncIterator]();
|
|
106346
105970
|
while (true) {
|
|
106347
105971
|
const { value, done } = await sourceIterator.next();
|
|
@@ -106387,7 +106011,7 @@ var require_dist_cjs61 = __commonJS((exports) => {
|
|
|
106387
106011
|
}
|
|
106388
106012
|
};
|
|
106389
106013
|
return {
|
|
106390
|
-
[Symbol.asyncIterator]:
|
|
106014
|
+
[Symbol.asyncIterator]: iterator
|
|
106391
106015
|
};
|
|
106392
106016
|
}
|
|
106393
106017
|
function getMessageUnmarshaller(deserializer, toUtf8) {
|
|
@@ -106467,10 +106091,10 @@ var require_dist_cjs62 = __commonJS((exports) => {
|
|
|
106467
106091
|
}
|
|
106468
106092
|
});
|
|
106469
106093
|
var iterableToReadableStream = (asyncIterable) => {
|
|
106470
|
-
const
|
|
106094
|
+
const iterator = asyncIterable[Symbol.asyncIterator]();
|
|
106471
106095
|
return new ReadableStream({
|
|
106472
106096
|
async pull(controller) {
|
|
106473
|
-
const { done, value } = await
|
|
106097
|
+
const { done, value } = await iterator.next();
|
|
106474
106098
|
if (done) {
|
|
106475
106099
|
return controller.close();
|
|
106476
106100
|
}
|
|
@@ -117491,7 +117115,7 @@ var package_default;
|
|
|
117491
117115
|
var init_package = __esm(() => {
|
|
117492
117116
|
package_default = {
|
|
117493
117117
|
name: "@funnycode/myclaude",
|
|
117494
|
-
version: "0.1.
|
|
117118
|
+
version: "0.1.114",
|
|
117495
117119
|
private: false,
|
|
117496
117120
|
description: "An open-source AI coding assistant in your terminal - powered by Claude",
|
|
117497
117121
|
license: "MIT",
|
|
@@ -117557,7 +117181,7 @@ var init_package = __esm(() => {
|
|
|
117557
117181
|
asciichart: "1.5.25",
|
|
117558
117182
|
"async-mutex": "^0.5.0",
|
|
117559
117183
|
"auto-bind": "5.0.1",
|
|
117560
|
-
axios: "1.
|
|
117184
|
+
axios: "1.7.9",
|
|
117561
117185
|
"bidi-js": "1.0.3",
|
|
117562
117186
|
chalk: "5.6.2",
|
|
117563
117187
|
chokidar: "5.0.0",
|
|
@@ -118016,7 +117640,7 @@ var require_ignore = __commonJS((exports, module) => {
|
|
|
118016
117640
|
return this._test(path12, this._testCache, true);
|
|
118017
117641
|
}
|
|
118018
117642
|
}
|
|
118019
|
-
var
|
|
117643
|
+
var factory = (options) => new Ignore(options);
|
|
118020
117644
|
var isPathValid = (path12) => checkPath(path12 && checkPath.convert(path12), path12, RETURN_FALSE);
|
|
118021
117645
|
var setupWindows = () => {
|
|
118022
117646
|
const makePosix = (str) => /^\\\\\?\\/.test(str) || /["<>|\u0000-\u001F]+/u.test(str) ? str : str.replace(/\\/g, "/");
|
|
@@ -118027,8 +117651,8 @@ var require_ignore = __commonJS((exports, module) => {
|
|
|
118027
117651
|
if (typeof process !== "undefined" && process.platform === "win32") {
|
|
118028
117652
|
setupWindows();
|
|
118029
117653
|
}
|
|
118030
|
-
module.exports =
|
|
118031
|
-
|
|
117654
|
+
module.exports = factory;
|
|
117655
|
+
factory.default = factory;
|
|
118032
117656
|
module.exports.isPathValid = isPathValid;
|
|
118033
117657
|
define2(module.exports, Symbol.for("setupWindows"), setupWindows);
|
|
118034
117658
|
});
|
|
@@ -139749,10 +139373,10 @@ function setTerminalFocused(v) {
|
|
|
139749
139373
|
cb();
|
|
139750
139374
|
}
|
|
139751
139375
|
if (!v) {
|
|
139752
|
-
for (const resolve12 of
|
|
139376
|
+
for (const resolve12 of resolvers2) {
|
|
139753
139377
|
resolve12();
|
|
139754
139378
|
}
|
|
139755
|
-
|
|
139379
|
+
resolvers2.clear();
|
|
139756
139380
|
}
|
|
139757
139381
|
}
|
|
139758
139382
|
function getTerminalFocused() {
|
|
@@ -139767,9 +139391,9 @@ function subscribeTerminalFocus(cb) {
|
|
|
139767
139391
|
subscribers.delete(cb);
|
|
139768
139392
|
};
|
|
139769
139393
|
}
|
|
139770
|
-
var focusState = "unknown",
|
|
139394
|
+
var focusState = "unknown", resolvers2, subscribers;
|
|
139771
139395
|
var init_terminal_focus_state = __esm(() => {
|
|
139772
|
-
|
|
139396
|
+
resolvers2 = new Set;
|
|
139773
139397
|
subscribers = new Set;
|
|
139774
139398
|
});
|
|
139775
139399
|
|
|
@@ -141858,8 +141482,8 @@ function optimize(diff2) {
|
|
|
141858
141482
|
|
|
141859
141483
|
// node_modules/bidi-js/dist/bidi.js
|
|
141860
141484
|
var require_bidi = __commonJS((exports, module) => {
|
|
141861
|
-
(function(global3,
|
|
141862
|
-
typeof exports === "object" && typeof module !== "undefined" ? module.exports =
|
|
141485
|
+
(function(global3, factory) {
|
|
141486
|
+
typeof exports === "object" && typeof module !== "undefined" ? module.exports = factory() : typeof define === "function" && define.amd ? define(factory) : (global3 = typeof globalThis !== "undefined" ? globalThis : global3 || self, global3.bidi_js = factory());
|
|
141863
141487
|
})(exports, function() {
|
|
141864
141488
|
function bidiFactory() {
|
|
141865
141489
|
var bidi = function(exports2) {
|
|
@@ -159543,10 +159167,10 @@ import { BlockList, connect as netConnect, isIP as isIP2 } from "node:net";
|
|
|
159543
159167
|
import { connect as tlsConnect } from "node:tls";
|
|
159544
159168
|
import { URL as URL3 } from "node:url";
|
|
159545
159169
|
function resolveParentProxy(cfg) {
|
|
159546
|
-
const
|
|
159547
|
-
const https2 = cfg?.https ?? process.env.HTTPS_PROXY ?? process.env.https_proxy ??
|
|
159170
|
+
const http3 = cfg?.http ?? process.env.HTTP_PROXY ?? process.env.http_proxy ?? undefined;
|
|
159171
|
+
const https2 = cfg?.https ?? process.env.HTTPS_PROXY ?? process.env.https_proxy ?? http3;
|
|
159548
159172
|
const noProxyRaw = cfg?.noProxy ?? process.env.NO_PROXY ?? process.env.no_proxy ?? "";
|
|
159549
|
-
if (!
|
|
159173
|
+
if (!http3 && !https2)
|
|
159550
159174
|
return;
|
|
159551
159175
|
const parse8 = (u2) => {
|
|
159552
159176
|
if (!u2)
|
|
@@ -159564,7 +159188,7 @@ function resolveParentProxy(cfg) {
|
|
|
159564
159188
|
return;
|
|
159565
159189
|
}
|
|
159566
159190
|
};
|
|
159567
|
-
const httpUrl2 = parse8(
|
|
159191
|
+
const httpUrl2 = parse8(http3);
|
|
159568
159192
|
const httpsUrl = parse8(https2);
|
|
159569
159193
|
if (!httpUrl2 && !httpsUrl)
|
|
159570
159194
|
return;
|
|
@@ -185381,10 +185005,10 @@ var require_aes = __commonJS((exports, module) => {
|
|
|
185381
185005
|
registerAlgorithm("AES-CTR", forge.cipher.modes.ctr);
|
|
185382
185006
|
registerAlgorithm("AES-GCM", forge.cipher.modes.gcm);
|
|
185383
185007
|
function registerAlgorithm(name, mode) {
|
|
185384
|
-
var
|
|
185008
|
+
var factory = function() {
|
|
185385
185009
|
return new forge.aes.Algorithm(name, mode);
|
|
185386
185010
|
};
|
|
185387
|
-
forge.cipher.registerAlgorithm(name,
|
|
185011
|
+
forge.cipher.registerAlgorithm(name, factory);
|
|
185388
185012
|
}
|
|
185389
185013
|
var init = false;
|
|
185390
185014
|
var Nb = 4;
|
|
@@ -187100,10 +186724,10 @@ var require_des = __commonJS((exports, module) => {
|
|
|
187100
186724
|
registerAlgorithm("3DES-OFB", forge.cipher.modes.ofb);
|
|
187101
186725
|
registerAlgorithm("3DES-CTR", forge.cipher.modes.ctr);
|
|
187102
186726
|
function registerAlgorithm(name, mode) {
|
|
187103
|
-
var
|
|
186727
|
+
var factory = function() {
|
|
187104
186728
|
return new forge.des.Algorithm(name, mode);
|
|
187105
186729
|
};
|
|
187106
|
-
forge.cipher.registerAlgorithm(name,
|
|
186730
|
+
forge.cipher.registerAlgorithm(name, factory);
|
|
187107
186731
|
}
|
|
187108
186732
|
var spfunction1 = [16843776, 0, 65536, 16843780, 16842756, 66564, 4, 65536, 1024, 16843776, 16843780, 1024, 16778244, 16842756, 16777216, 4, 1028, 16778240, 16778240, 66560, 66560, 16842752, 16842752, 16778244, 65540, 16777220, 16777220, 65540, 0, 1028, 66564, 16777216, 65536, 16843780, 4, 16842752, 16843776, 16777216, 16777216, 1024, 16842756, 65536, 66560, 16777220, 1024, 4, 16778244, 66564, 16843780, 65540, 16842752, 16778244, 16777220, 1028, 66564, 16843776, 1028, 16778240, 16778240, 0, 65540, 66560, 0, 16842756];
|
|
187109
186733
|
var spfunction2 = [-2146402272, -2147450880, 32768, 1081376, 1048576, 32, -2146435040, -2147450848, -2147483616, -2146402272, -2146402304, -2147483648, -2147450880, 1048576, 32, -2146435040, 1081344, 1048608, -2147450848, 0, -2147483648, 32768, 1081376, -2146435072, 1048608, -2147483616, 0, 1081344, 32800, -2146402304, -2146435072, 32800, 0, 1081376, -2146435040, 1048576, -2147450848, -2146435072, -2146402304, 32768, -2146435072, -2147450880, 32, -2146402272, 1081376, 32, 32768, -2147483648, 32800, -2146402304, 1048576, -2147483616, 1048608, -2147450848, -2147483616, 1048608, 1081344, 0, -2147450880, 32800, -2147483648, -2146435040, -2146402272, 1081344];
|
|
@@ -187260,36 +186884,36 @@ var require_pbkdf2 = __commonJS((exports, module) => {
|
|
|
187260
186884
|
require_md();
|
|
187261
186885
|
require_util7();
|
|
187262
186886
|
var pkcs5 = forge.pkcs5 = forge.pkcs5 || {};
|
|
187263
|
-
var
|
|
186887
|
+
var crypto3;
|
|
187264
186888
|
if (forge.util.isNodejs && !forge.options.usePureJavaScript) {
|
|
187265
|
-
|
|
186889
|
+
crypto3 = __require("crypto");
|
|
187266
186890
|
}
|
|
187267
186891
|
module.exports = forge.pbkdf2 = pkcs5.pbkdf2 = function(p, s, c6, dkLen, md, callback) {
|
|
187268
186892
|
if (typeof md === "function") {
|
|
187269
186893
|
callback = md;
|
|
187270
186894
|
md = null;
|
|
187271
186895
|
}
|
|
187272
|
-
if (forge.util.isNodejs && !forge.options.usePureJavaScript &&
|
|
186896
|
+
if (forge.util.isNodejs && !forge.options.usePureJavaScript && crypto3.pbkdf2 && (md === null || typeof md !== "object") && (crypto3.pbkdf2Sync.length > 4 || (!md || md === "sha1"))) {
|
|
187273
186897
|
if (typeof md !== "string") {
|
|
187274
186898
|
md = "sha1";
|
|
187275
186899
|
}
|
|
187276
186900
|
p = Buffer.from(p, "binary");
|
|
187277
186901
|
s = Buffer.from(s, "binary");
|
|
187278
186902
|
if (!callback) {
|
|
187279
|
-
if (
|
|
187280
|
-
return
|
|
186903
|
+
if (crypto3.pbkdf2Sync.length === 4) {
|
|
186904
|
+
return crypto3.pbkdf2Sync(p, s, c6, dkLen).toString("binary");
|
|
187281
186905
|
}
|
|
187282
|
-
return
|
|
186906
|
+
return crypto3.pbkdf2Sync(p, s, c6, dkLen, md).toString("binary");
|
|
187283
186907
|
}
|
|
187284
|
-
if (
|
|
187285
|
-
return
|
|
186908
|
+
if (crypto3.pbkdf2Sync.length === 4) {
|
|
186909
|
+
return crypto3.pbkdf2(p, s, c6, dkLen, function(err3, key2) {
|
|
187286
186910
|
if (err3) {
|
|
187287
186911
|
return callback(err3);
|
|
187288
186912
|
}
|
|
187289
186913
|
callback(null, key2.toString("binary"));
|
|
187290
186914
|
});
|
|
187291
186915
|
}
|
|
187292
|
-
return
|
|
186916
|
+
return crypto3.pbkdf2(p, s, c6, dkLen, md, function(err3, key2) {
|
|
187293
186917
|
if (err3) {
|
|
187294
186918
|
return callback(err3);
|
|
187295
186919
|
}
|
|
@@ -191871,10 +191495,10 @@ var require_pbe = __commonJS((exports, module) => {
|
|
|
191871
191495
|
return prfAlgorithmToMessageDigest(prfAlgorithm);
|
|
191872
191496
|
}
|
|
191873
191497
|
function prfAlgorithmToMessageDigest(prfAlgorithm) {
|
|
191874
|
-
var
|
|
191498
|
+
var factory = forge.md;
|
|
191875
191499
|
switch (prfAlgorithm) {
|
|
191876
191500
|
case "hmacWithSHA224":
|
|
191877
|
-
|
|
191501
|
+
factory = forge.md.sha512;
|
|
191878
191502
|
case "hmacWithSHA1":
|
|
191879
191503
|
case "hmacWithSHA256":
|
|
191880
191504
|
case "hmacWithSHA384":
|
|
@@ -191893,10 +191517,10 @@ var require_pbe = __commonJS((exports, module) => {
|
|
|
191893
191517
|
];
|
|
191894
191518
|
throw error49;
|
|
191895
191519
|
}
|
|
191896
|
-
if (!
|
|
191520
|
+
if (!factory || !(prfAlgorithm in factory)) {
|
|
191897
191521
|
throw new Error("Unknown hash algorithm: " + prfAlgorithm);
|
|
191898
191522
|
}
|
|
191899
|
-
return
|
|
191523
|
+
return factory[prfAlgorithm].create();
|
|
191900
191524
|
}
|
|
191901
191525
|
function createPbkdf2Params(salt, countBytes, dkLen, prfAlgorithm) {
|
|
191902
191526
|
var params = asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [
|
|
@@ -204024,7 +203648,7 @@ var init_microCompact = __esm(() => {
|
|
|
204024
203648
|
function M2() {
|
|
204025
203649
|
return { async: false, breaks: false, extensions: null, gfm: true, hooks: null, pedantic: false, renderer: null, silent: false, tokenizer: null, walkTokens: null };
|
|
204026
203650
|
}
|
|
204027
|
-
function
|
|
203651
|
+
function G2(u2) {
|
|
204028
203652
|
T = u2;
|
|
204029
203653
|
}
|
|
204030
203654
|
function k(u2, e = "") {
|
|
@@ -205283,12 +204907,12 @@ var init_marked_esm = __esm(() => {
|
|
|
205283
204907
|
};
|
|
205284
204908
|
L2 = new D2;
|
|
205285
204909
|
g.options = g.setOptions = function(u4) {
|
|
205286
|
-
return L2.setOptions(u4), g.defaults = L2.defaults,
|
|
204910
|
+
return L2.setOptions(u4), g.defaults = L2.defaults, G2(g.defaults), g;
|
|
205287
204911
|
};
|
|
205288
204912
|
g.getDefaults = M2;
|
|
205289
204913
|
g.defaults = T;
|
|
205290
204914
|
g.use = function(...u4) {
|
|
205291
|
-
return L2.use(...u4), g.defaults = L2.defaults,
|
|
204915
|
+
return L2.use(...u4), g.defaults = L2.defaults, G2(g.defaults), g;
|
|
205292
204916
|
};
|
|
205293
204917
|
g.walkTokens = function(u4, e) {
|
|
205294
204918
|
return L2.walkTokens(u4, e);
|
|
@@ -210335,8 +209959,7 @@ function createDumpPromptsFetch(agentIdOrSessionId) {
|
|
|
210335
209959
|
if (isStreaming && cloned.body) {
|
|
210336
209960
|
const reader = cloned.body.getReader();
|
|
210337
209961
|
const decoder = new TextDecoder;
|
|
210338
|
-
|
|
210339
|
-
let bufferLength = 0;
|
|
209962
|
+
let buffer = "";
|
|
210340
209963
|
const MAX_BUFFER_SIZE2 = 10 * 1024 * 1024;
|
|
210341
209964
|
const chunkEntries = [];
|
|
210342
209965
|
try {
|
|
@@ -210345,17 +209968,15 @@ function createDumpPromptsFetch(agentIdOrSessionId) {
|
|
|
210345
209968
|
if (done)
|
|
210346
209969
|
break;
|
|
210347
209970
|
const decoded = decoder.decode(value, { stream: true });
|
|
210348
|
-
|
|
210349
|
-
|
|
210350
|
-
if (bufferLength > MAX_BUFFER_SIZE2) {
|
|
209971
|
+
buffer += decoded;
|
|
209972
|
+
if (buffer.length > MAX_BUFFER_SIZE2) {
|
|
210351
209973
|
logForDebugging("dumpPrompts: buffer exceeded max size, extracting complete events", { level: "warn" });
|
|
210352
|
-
const
|
|
210353
|
-
const lastDoubleNewline2 = fullBuffer.lastIndexOf(`
|
|
209974
|
+
const lastDoubleNewline2 = buffer.lastIndexOf(`
|
|
210354
209975
|
|
|
210355
209976
|
`);
|
|
210356
209977
|
if (lastDoubleNewline2 !== -1) {
|
|
210357
|
-
const completeEvents =
|
|
210358
|
-
const incomplete =
|
|
209978
|
+
const completeEvents = buffer.slice(0, lastDoubleNewline2);
|
|
209979
|
+
const incomplete = buffer.slice(lastDoubleNewline2 + 2);
|
|
210359
209980
|
for (const event of completeEvents.split(`
|
|
210360
209981
|
|
|
210361
209982
|
`)) {
|
|
@@ -210368,36 +209989,24 @@ function createDumpPromptsFetch(agentIdOrSessionId) {
|
|
|
210368
209989
|
}
|
|
210369
209990
|
}
|
|
210370
209991
|
}
|
|
210371
|
-
|
|
210372
|
-
|
|
210373
|
-
bufferLength = incomplete.length;
|
|
210374
|
-
if (bufferLength > MAX_BUFFER_SIZE2) {
|
|
209992
|
+
buffer = incomplete;
|
|
209993
|
+
if (buffer.length > MAX_BUFFER_SIZE2) {
|
|
210375
209994
|
logForDebugging("dumpPrompts: incomplete buffer still exceeds max size, truncating", { level: "warn" });
|
|
210376
|
-
|
|
210377
|
-
bufferChunks.length = 0;
|
|
210378
|
-
bufferChunks.push(truncated);
|
|
210379
|
-
bufferLength = truncated.length;
|
|
209995
|
+
buffer = incomplete.slice(-MAX_BUFFER_SIZE2);
|
|
210380
209996
|
}
|
|
210381
209997
|
} else {
|
|
210382
209998
|
logForDebugging("dumpPrompts: no complete events, truncating buffer", { level: "warn" });
|
|
210383
|
-
|
|
210384
|
-
const truncated = fullBuffer2.slice(-MAX_BUFFER_SIZE2);
|
|
210385
|
-
bufferChunks.length = 0;
|
|
210386
|
-
bufferChunks.push(truncated);
|
|
210387
|
-
bufferLength = truncated.length;
|
|
209999
|
+
buffer = buffer.slice(-MAX_BUFFER_SIZE2);
|
|
210388
210000
|
}
|
|
210389
210001
|
continue;
|
|
210390
210002
|
}
|
|
210391
|
-
const
|
|
210392
|
-
const lastDoubleNewline = buffer2.lastIndexOf(`
|
|
210003
|
+
const lastDoubleNewline = buffer.lastIndexOf(`
|
|
210393
210004
|
|
|
210394
210005
|
`);
|
|
210395
210006
|
if (lastDoubleNewline !== -1) {
|
|
210396
|
-
const completeEvents =
|
|
210397
|
-
const incomplete =
|
|
210398
|
-
|
|
210399
|
-
bufferChunks.push(incomplete);
|
|
210400
|
-
bufferLength = incomplete.length;
|
|
210007
|
+
const completeEvents = buffer.slice(0, lastDoubleNewline);
|
|
210008
|
+
const incomplete = buffer.slice(lastDoubleNewline + 2);
|
|
210009
|
+
buffer = incomplete;
|
|
210401
210010
|
for (const event of completeEvents.split(`
|
|
210402
210011
|
|
|
210403
210012
|
`)) {
|
|
@@ -210415,7 +210024,6 @@ function createDumpPromptsFetch(agentIdOrSessionId) {
|
|
|
210415
210024
|
} finally {
|
|
210416
210025
|
reader.releaseLock();
|
|
210417
210026
|
}
|
|
210418
|
-
const buffer = bufferChunks.join("");
|
|
210419
210027
|
if (buffer.trim()) {
|
|
210420
210028
|
for (const event of buffer.split(`
|
|
210421
210029
|
|
|
@@ -229272,7 +228880,7 @@ var require_hsp = __commonJS((exports, module) => {
|
|
|
229272
228880
|
|
|
229273
228881
|
// node_modules/highlight.js/lib/languages/http.js
|
|
229274
228882
|
var require_http = __commonJS((exports, module) => {
|
|
229275
|
-
function
|
|
228883
|
+
function http3(hljs) {
|
|
229276
228884
|
const regex2 = hljs.regex;
|
|
229277
228885
|
const VERSION4 = "HTTP/([32]|1\\.[01])";
|
|
229278
228886
|
const HEADER_NAME = /[A-Za-z][A-Za-z0-9-]*/;
|
|
@@ -229355,7 +228963,7 @@ var require_http = __commonJS((exports, module) => {
|
|
|
229355
228963
|
]
|
|
229356
228964
|
};
|
|
229357
228965
|
}
|
|
229358
|
-
module.exports =
|
|
228966
|
+
module.exports = http3;
|
|
229359
228967
|
});
|
|
229360
228968
|
|
|
229361
228969
|
// node_modules/highlight.js/lib/languages/hy.js
|
|
@@ -273004,7 +272612,7 @@ var require_schemes = __commonJS((exports, module) => {
|
|
|
273004
272612
|
urnComponent.nss = (uuidComponent.uuid || "").toLowerCase();
|
|
273005
272613
|
return urnComponent;
|
|
273006
272614
|
}
|
|
273007
|
-
var
|
|
272615
|
+
var http3 = {
|
|
273008
272616
|
scheme: "http",
|
|
273009
272617
|
domainHost: true,
|
|
273010
272618
|
parse: httpParse,
|
|
@@ -273012,7 +272620,7 @@ var require_schemes = __commonJS((exports, module) => {
|
|
|
273012
272620
|
};
|
|
273013
272621
|
var https2 = {
|
|
273014
272622
|
scheme: "https",
|
|
273015
|
-
domainHost:
|
|
272623
|
+
domainHost: http3.domainHost,
|
|
273016
272624
|
parse: httpParse,
|
|
273017
272625
|
serialize: httpSerialize
|
|
273018
272626
|
};
|
|
@@ -273041,7 +272649,7 @@ var require_schemes = __commonJS((exports, module) => {
|
|
|
273041
272649
|
skipNormalize: true
|
|
273042
272650
|
};
|
|
273043
272651
|
var SCHEMES = {
|
|
273044
|
-
http:
|
|
272652
|
+
http: http3,
|
|
273045
272653
|
https: https2,
|
|
273046
272654
|
ws,
|
|
273047
272655
|
wss,
|
|
@@ -278564,7 +278172,7 @@ function createFetchWithInit(baseFetch = fetch, baseInit) {
|
|
|
278564
278172
|
|
|
278565
278173
|
// node_modules/pkce-challenge/dist/index.node.js
|
|
278566
278174
|
async function getRandomValues(size) {
|
|
278567
|
-
return (await
|
|
278175
|
+
return (await crypto3).getRandomValues(new Uint8Array(size));
|
|
278568
278176
|
}
|
|
278569
278177
|
async function random(size) {
|
|
278570
278178
|
const mask = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-._~";
|
|
@@ -278584,7 +278192,7 @@ async function generateVerifier(length) {
|
|
|
278584
278192
|
return await random(length);
|
|
278585
278193
|
}
|
|
278586
278194
|
async function generateChallenge(code_verifier) {
|
|
278587
|
-
const buffer = await (await
|
|
278195
|
+
const buffer = await (await crypto3).subtle.digest("SHA-256", new TextEncoder().encode(code_verifier));
|
|
278588
278196
|
return btoa(String.fromCharCode(...new Uint8Array(buffer))).replace(/\//g, "_").replace(/\+/g, "-").replace(/=/g, "");
|
|
278589
278197
|
}
|
|
278590
278198
|
async function pkceChallenge(length) {
|
|
@@ -278600,9 +278208,9 @@ async function pkceChallenge(length) {
|
|
|
278600
278208
|
code_challenge: challenge
|
|
278601
278209
|
};
|
|
278602
278210
|
}
|
|
278603
|
-
var
|
|
278211
|
+
var crypto3;
|
|
278604
278212
|
var init_index_node = __esm(() => {
|
|
278605
|
-
|
|
278213
|
+
crypto3 = globalThis.crypto?.webcrypto ?? globalThis.crypto ?? import("node:crypto").then((m2) => m2.webcrypto);
|
|
278606
278214
|
});
|
|
278607
278215
|
|
|
278608
278216
|
// node_modules/@modelcontextprotocol/sdk/dist/esm/shared/auth.js
|
|
@@ -280188,7 +279796,7 @@ async function pMap(iterable, mapper, {
|
|
|
280188
279796
|
let isIterableDone = false;
|
|
280189
279797
|
let resolvingCount = 0;
|
|
280190
279798
|
let currentIndex = 0;
|
|
280191
|
-
const
|
|
279799
|
+
const iterator = iterable[Symbol.iterator] === undefined ? iterable[Symbol.asyncIterator]() : iterable[Symbol.iterator]();
|
|
280192
279800
|
const signalListener = () => {
|
|
280193
279801
|
reject2(signal.reason);
|
|
280194
279802
|
};
|
|
@@ -280215,7 +279823,7 @@ async function pMap(iterable, mapper, {
|
|
|
280215
279823
|
if (isResolved) {
|
|
280216
279824
|
return;
|
|
280217
279825
|
}
|
|
280218
|
-
const nextItem = await
|
|
279826
|
+
const nextItem = await iterator.next();
|
|
280219
279827
|
const index = currentIndex;
|
|
280220
279828
|
currentIndex++;
|
|
280221
279829
|
if (nextItem.done) {
|
|
@@ -294386,7 +293994,7 @@ var require_extension = __commonJS((exports, module) => {
|
|
|
294386
293994
|
var require_websocket2 = __commonJS((exports, module) => {
|
|
294387
293995
|
var EventEmitter5 = __require("events");
|
|
294388
293996
|
var https2 = __require("https");
|
|
294389
|
-
var
|
|
293997
|
+
var http3 = __require("http");
|
|
294390
293998
|
var net3 = __require("net");
|
|
294391
293999
|
var tls2 = __require("tls");
|
|
294392
294000
|
var { randomBytes: randomBytes6, createHash: createHash9 } = __require("crypto");
|
|
@@ -294802,7 +294410,7 @@ var require_websocket2 = __commonJS((exports, module) => {
|
|
|
294802
294410
|
}
|
|
294803
294411
|
const defaultPort = isSecure ? 443 : 80;
|
|
294804
294412
|
const key2 = randomBytes6(16).toString("base64");
|
|
294805
|
-
const request = isSecure ? https2.request :
|
|
294413
|
+
const request = isSecure ? https2.request : http3.request;
|
|
294806
294414
|
const protocolSet = new Set;
|
|
294807
294415
|
let perMessageDeflate;
|
|
294808
294416
|
opts.createConnection = opts.createConnection || (isSecure ? tlsConnect2 : netConnect2);
|
|
@@ -295299,7 +294907,7 @@ var require_subprotocol = __commonJS((exports, module) => {
|
|
|
295299
294907
|
// node_modules/ws/lib/websocket-server.js
|
|
295300
294908
|
var require_websocket_server = __commonJS((exports, module) => {
|
|
295301
294909
|
var EventEmitter5 = __require("events");
|
|
295302
|
-
var
|
|
294910
|
+
var http3 = __require("http");
|
|
295303
294911
|
var { Duplex: Duplex4 } = __require("stream");
|
|
295304
294912
|
var { createHash: createHash9 } = __require("crypto");
|
|
295305
294913
|
var extension = require_extension();
|
|
@@ -295338,8 +294946,8 @@ var require_websocket_server = __commonJS((exports, module) => {
|
|
|
295338
294946
|
throw new TypeError('One and only one of the "port", "server", or "noServer" options ' + "must be specified");
|
|
295339
294947
|
}
|
|
295340
294948
|
if (options.port != null) {
|
|
295341
|
-
this._server =
|
|
295342
|
-
const body =
|
|
294949
|
+
this._server = http3.createServer((req, res) => {
|
|
294950
|
+
const body = http3.STATUS_CODES[426];
|
|
295343
294951
|
res.writeHead(426, {
|
|
295344
294952
|
"Content-Length": body.length,
|
|
295345
294953
|
"Content-Type": "text/plain"
|
|
@@ -295577,7 +295185,7 @@ var require_websocket_server = __commonJS((exports, module) => {
|
|
|
295577
295185
|
this.destroy();
|
|
295578
295186
|
}
|
|
295579
295187
|
function abortHandshake(socket, code, message, headers) {
|
|
295580
|
-
message = message ||
|
|
295188
|
+
message = message || http3.STATUS_CODES[code];
|
|
295581
295189
|
headers = {
|
|
295582
295190
|
Connection: "close",
|
|
295583
295191
|
"Content-Type": "text/html",
|
|
@@ -295585,7 +295193,7 @@ var require_websocket_server = __commonJS((exports, module) => {
|
|
|
295585
295193
|
...headers
|
|
295586
295194
|
};
|
|
295587
295195
|
socket.once("finish", socket.destroy);
|
|
295588
|
-
socket.end(`HTTP/1.1 ${code} ${
|
|
295196
|
+
socket.end(`HTTP/1.1 ${code} ${http3.STATUS_CODES[code]}\r
|
|
295589
295197
|
` + Object.keys(headers).map((h2) => `${h2}: ${headers[h2]}`).join(`\r
|
|
295590
295198
|
`) + `\r
|
|
295591
295199
|
\r
|
|
@@ -296830,7 +296438,7 @@ var init_client6 = __esm(() => {
|
|
|
296830
296438
|
logMCPDebug(name, `claude.ai proxy transport created successfully`);
|
|
296831
296439
|
} else if ((serverRef.type === "stdio" || !serverRef.type) && isClaudeInChromeMCPServer(name)) {
|
|
296832
296440
|
const { createChromeContext } = await Promise.resolve().then(() => (init_mcpServer(), exports_mcpServer));
|
|
296833
|
-
const { createClaudeForChromeMcpServer: createClaudeForChromeMcpServer2 } = await Promise.resolve().then(() => (
|
|
296441
|
+
const { createClaudeForChromeMcpServer: createClaudeForChromeMcpServer2 } = await Promise.resolve().then(() => (init_claude_for_chrome_mcp(), exports_claude_for_chrome_mcp));
|
|
296834
296442
|
const { createLinkedTransportPair: createLinkedTransportPair2 } = await Promise.resolve().then(() => exports_InProcessTransport);
|
|
296835
296443
|
const context = createChromeContext(serverRef.env);
|
|
296836
296444
|
inProcessServer = createClaudeForChromeMcpServer2(context);
|
|
@@ -301762,7 +301370,7 @@ var require_global_utils = __commonJS((exports) => {
|
|
|
301762
301370
|
return true;
|
|
301763
301371
|
}
|
|
301764
301372
|
exports.registerGlobal = registerGlobal;
|
|
301765
|
-
function
|
|
301373
|
+
function getGlobal(type) {
|
|
301766
301374
|
var _a4, _b2;
|
|
301767
301375
|
const globalVersion = (_a4 = _global2[GLOBAL_OPENTELEMETRY_API_KEY]) === null || _a4 === undefined ? undefined : _a4.version;
|
|
301768
301376
|
if (!globalVersion || !(0, semver_1.isCompatible)(globalVersion)) {
|
|
@@ -301770,7 +301378,7 @@ var require_global_utils = __commonJS((exports) => {
|
|
|
301770
301378
|
}
|
|
301771
301379
|
return (_b2 = _global2[GLOBAL_OPENTELEMETRY_API_KEY]) === null || _b2 === undefined ? undefined : _b2[type];
|
|
301772
301380
|
}
|
|
301773
|
-
exports.getGlobal =
|
|
301381
|
+
exports.getGlobal = getGlobal;
|
|
301774
301382
|
function unregisterGlobal(type, diag) {
|
|
301775
301383
|
diag.debug(`@opentelemetry/api: Unregistering a global for ${type} v${version_1.VERSION}.`);
|
|
301776
301384
|
const api2 = _global2[GLOBAL_OPENTELEMETRY_API_KEY];
|
|
@@ -305737,7 +305345,7 @@ var require_merge2 = __commonJS((exports) => {
|
|
|
305737
305345
|
return;
|
|
305738
305346
|
}
|
|
305739
305347
|
level++;
|
|
305740
|
-
if (isPrimitive(one) || isPrimitive(two) ||
|
|
305348
|
+
if (isPrimitive(one) || isPrimitive(two) || isFunction3(two)) {
|
|
305741
305349
|
result = takeValue(two);
|
|
305742
305350
|
} else if (isArray4(one)) {
|
|
305743
305351
|
result = one.slice();
|
|
@@ -305805,11 +305413,11 @@ var require_merge2 = __commonJS((exports) => {
|
|
|
305805
305413
|
function isArray4(value) {
|
|
305806
305414
|
return Array.isArray(value);
|
|
305807
305415
|
}
|
|
305808
|
-
function
|
|
305416
|
+
function isFunction3(value) {
|
|
305809
305417
|
return typeof value === "function";
|
|
305810
305418
|
}
|
|
305811
305419
|
function isObject5(value) {
|
|
305812
|
-
return !isPrimitive(value) && !isArray4(value) && !
|
|
305420
|
+
return !isPrimitive(value) && !isArray4(value) && !isFunction3(value) && typeof value === "object";
|
|
305813
305421
|
}
|
|
305814
305422
|
function isPrimitive(value) {
|
|
305815
305423
|
return typeof value === "string" || typeof value === "number" || typeof value === "boolean" || typeof value === "undefined" || value instanceof Date || value instanceof RegExp || value === null;
|
|
@@ -309793,8 +309401,8 @@ var require_TemporalMetricProcessor = __commonJS((exports) => {
|
|
|
309793
309401
|
}
|
|
309794
309402
|
static merge(last2, current, aggregator) {
|
|
309795
309403
|
const result = last2;
|
|
309796
|
-
const
|
|
309797
|
-
let next =
|
|
309404
|
+
const iterator = current.entries();
|
|
309405
|
+
let next = iterator.next();
|
|
309798
309406
|
while (next.done !== true) {
|
|
309799
309407
|
const [key2, record3, hash2] = next.value;
|
|
309800
309408
|
if (last2.has(key2, hash2)) {
|
|
@@ -309804,7 +309412,7 @@ var require_TemporalMetricProcessor = __commonJS((exports) => {
|
|
|
309804
309412
|
} else {
|
|
309805
309413
|
result.set(key2, record3, hash2);
|
|
309806
309414
|
}
|
|
309807
|
-
next =
|
|
309415
|
+
next = iterator.next();
|
|
309808
309416
|
}
|
|
309809
309417
|
return result;
|
|
309810
309418
|
}
|
|
@@ -342546,8 +342154,9 @@ async function appendSessionLogImpl(sessionId, entry, url3, headers) {
|
|
|
342546
342154
|
return false;
|
|
342547
342155
|
}
|
|
342548
342156
|
const delayMs = Math.min(BASE_DELAY_MS2 * Math.pow(2, attempt - 1), 8000);
|
|
342549
|
-
|
|
342550
|
-
|
|
342157
|
+
const jitteredDelay = delayMs * (0.75 + Math.random() * 0.5);
|
|
342158
|
+
logForDebugging(`Remote persistence attempt ${attempt}/${MAX_RETRIES} failed, retrying in ${jitteredDelay}ms…`);
|
|
342159
|
+
await sleep3(jitteredDelay);
|
|
342551
342160
|
}
|
|
342552
342161
|
return false;
|
|
342553
342162
|
}
|
|
@@ -342736,7 +342345,7 @@ function clearAllSessions() {
|
|
|
342736
342345
|
lastUuidMap.clear();
|
|
342737
342346
|
sequentialBySession.clear();
|
|
342738
342347
|
}
|
|
342739
|
-
var lastUuidMap, MAX_RETRIES =
|
|
342348
|
+
var lastUuidMap, MAX_RETRIES = 5, BASE_DELAY_MS2 = 500, sequentialBySession;
|
|
342740
342349
|
var init_sessionIngress = __esm(() => {
|
|
342741
342350
|
init_axios2();
|
|
342742
342351
|
init_oauth();
|
|
@@ -348680,9 +348289,9 @@ var require_linkedMap = __commonJS((exports) => {
|
|
|
348680
348289
|
keys() {
|
|
348681
348290
|
const state = this._state;
|
|
348682
348291
|
let current = this._head;
|
|
348683
|
-
const
|
|
348292
|
+
const iterator = {
|
|
348684
348293
|
[Symbol.iterator]: () => {
|
|
348685
|
-
return
|
|
348294
|
+
return iterator;
|
|
348686
348295
|
},
|
|
348687
348296
|
next: () => {
|
|
348688
348297
|
if (this._state !== state) {
|
|
@@ -348697,14 +348306,14 @@ var require_linkedMap = __commonJS((exports) => {
|
|
|
348697
348306
|
}
|
|
348698
348307
|
}
|
|
348699
348308
|
};
|
|
348700
|
-
return
|
|
348309
|
+
return iterator;
|
|
348701
348310
|
}
|
|
348702
348311
|
values() {
|
|
348703
348312
|
const state = this._state;
|
|
348704
348313
|
let current = this._head;
|
|
348705
|
-
const
|
|
348314
|
+
const iterator = {
|
|
348706
348315
|
[Symbol.iterator]: () => {
|
|
348707
|
-
return
|
|
348316
|
+
return iterator;
|
|
348708
348317
|
},
|
|
348709
348318
|
next: () => {
|
|
348710
348319
|
if (this._state !== state) {
|
|
@@ -348719,14 +348328,14 @@ var require_linkedMap = __commonJS((exports) => {
|
|
|
348719
348328
|
}
|
|
348720
348329
|
}
|
|
348721
348330
|
};
|
|
348722
|
-
return
|
|
348331
|
+
return iterator;
|
|
348723
348332
|
}
|
|
348724
348333
|
entries() {
|
|
348725
348334
|
const state = this._state;
|
|
348726
348335
|
let current = this._head;
|
|
348727
|
-
const
|
|
348336
|
+
const iterator = {
|
|
348728
348337
|
[Symbol.iterator]: () => {
|
|
348729
|
-
return
|
|
348338
|
+
return iterator;
|
|
348730
348339
|
},
|
|
348731
348340
|
next: () => {
|
|
348732
348341
|
if (this._state !== state) {
|
|
@@ -348741,7 +348350,7 @@ var require_linkedMap = __commonJS((exports) => {
|
|
|
348741
348350
|
}
|
|
348742
348351
|
}
|
|
348743
348352
|
};
|
|
348744
|
-
return
|
|
348353
|
+
return iterator;
|
|
348745
348354
|
}
|
|
348746
348355
|
[(_a4 = Symbol.toStringTag, Symbol.iterator)]() {
|
|
348747
348356
|
return this.entries();
|
|
@@ -363745,7 +363354,7 @@ var init_color_diff = __esm(() => {
|
|
|
363745
363354
|
};
|
|
363746
363355
|
});
|
|
363747
363356
|
|
|
363748
|
-
//
|
|
363357
|
+
// node_modules/color-diff-napi/index.ts
|
|
363749
363358
|
var init_color_diff_napi = __esm(() => {
|
|
363750
363359
|
init_color_diff();
|
|
363751
363360
|
});
|
|
@@ -409593,7 +409202,7 @@ function prewarm() {
|
|
|
409593
409202
|
var cachedModule = null;
|
|
409594
409203
|
var init_modifiers_napi_src = () => {};
|
|
409595
409204
|
|
|
409596
|
-
//
|
|
409205
|
+
// node_modules/modifiers-napi/index.ts
|
|
409597
409206
|
var exports_modifiers_napi = {};
|
|
409598
409207
|
__export(exports_modifiers_napi, {
|
|
409599
409208
|
prewarm: () => prewarm,
|
|
@@ -484259,7 +483868,7 @@ async function isChromeExtensionInstalled() {
|
|
|
484259
483868
|
}
|
|
484260
483869
|
var CHROME_EXTENSION_RECONNECT_URL = "https://clau.de/chrome/reconnect", NATIVE_HOST_IDENTIFIER = "com.anthropic.claude_code_browser_extension", NATIVE_HOST_MANIFEST_NAME, shouldAutoEnable = undefined;
|
|
484261
483870
|
var init_setup2 = __esm(() => {
|
|
484262
|
-
|
|
483871
|
+
init_claude_for_chrome_mcp();
|
|
484263
483872
|
init_state();
|
|
484264
483873
|
init_growthbook();
|
|
484265
483874
|
init_config();
|
|
@@ -494453,24 +494062,24 @@ class Project {
|
|
|
494453
494062
|
}
|
|
494454
494063
|
const batch = queue2.splice(0);
|
|
494455
494064
|
let content = "";
|
|
494456
|
-
const
|
|
494065
|
+
const resolvers3 = [];
|
|
494457
494066
|
for (const { entry, resolve: resolve47 } of batch) {
|
|
494458
494067
|
const line = jsonStringify(entry) + `
|
|
494459
494068
|
`;
|
|
494460
494069
|
if (content.length + line.length >= this.MAX_CHUNK_BYTES) {
|
|
494461
494070
|
await this.appendToFile(filePath, content);
|
|
494462
|
-
for (const r of
|
|
494071
|
+
for (const r of resolvers3) {
|
|
494463
494072
|
r();
|
|
494464
494073
|
}
|
|
494465
|
-
|
|
494074
|
+
resolvers3.length = 0;
|
|
494466
494075
|
content = "";
|
|
494467
494076
|
}
|
|
494468
494077
|
content += line;
|
|
494469
|
-
|
|
494078
|
+
resolvers3.push(resolve47);
|
|
494470
494079
|
}
|
|
494471
494080
|
if (content.length > 0) {
|
|
494472
494081
|
await this.appendToFile(filePath, content);
|
|
494473
|
-
for (const r of
|
|
494082
|
+
for (const r of resolvers3) {
|
|
494474
494083
|
r();
|
|
494475
494084
|
}
|
|
494476
494085
|
}
|
|
@@ -506316,7 +505925,7 @@ class DebugLogger {
|
|
|
506316
505925
|
}
|
|
506317
505926
|
var EXTENSION_DOWNLOAD_URL = "https://claude.ai/chrome", BUG_REPORT_URL = "https://github.com/anthropics/claude-code/issues/new?labels=bug,claude-in-chrome", SAFE_BRIDGE_STRING_KEYS, PERMISSION_MODES4;
|
|
506318
505927
|
var init_mcpServer = __esm(() => {
|
|
506319
|
-
|
|
505928
|
+
init_claude_for_chrome_mcp();
|
|
506320
505929
|
init_stdio2();
|
|
506321
505930
|
init_datadog();
|
|
506322
505931
|
init_firstPartyEventLogger();
|
|
@@ -506758,7 +506367,7 @@ var require_argument = __commonJS((exports) => {
|
|
|
506758
506367
|
this._name = name;
|
|
506759
506368
|
break;
|
|
506760
506369
|
}
|
|
506761
|
-
if (this._name.
|
|
506370
|
+
if (this._name.length > 3 && this._name.slice(-3) === "...") {
|
|
506762
506371
|
this.variadic = true;
|
|
506763
506372
|
this._name = this._name.slice(0, -3);
|
|
506764
506373
|
}
|
|
@@ -506766,12 +506375,11 @@ var require_argument = __commonJS((exports) => {
|
|
|
506766
506375
|
name() {
|
|
506767
506376
|
return this._name;
|
|
506768
506377
|
}
|
|
506769
|
-
|
|
506378
|
+
_concatValue(value, previous) {
|
|
506770
506379
|
if (previous === this.defaultValue || !Array.isArray(previous)) {
|
|
506771
506380
|
return [value];
|
|
506772
506381
|
}
|
|
506773
|
-
previous.
|
|
506774
|
-
return previous;
|
|
506382
|
+
return previous.concat(value);
|
|
506775
506383
|
}
|
|
506776
506384
|
default(value, description) {
|
|
506777
506385
|
this.defaultValue = value;
|
|
@@ -506789,7 +506397,7 @@ var require_argument = __commonJS((exports) => {
|
|
|
506789
506397
|
throw new InvalidArgumentError(`Allowed choices are ${this.argChoices.join(", ")}.`);
|
|
506790
506398
|
}
|
|
506791
506399
|
if (this.variadic) {
|
|
506792
|
-
return this.
|
|
506400
|
+
return this._concatValue(arg, previous);
|
|
506793
506401
|
}
|
|
506794
506402
|
return arg;
|
|
506795
506403
|
};
|
|
@@ -506954,11 +506562,7 @@ var require_help = __commonJS((exports) => {
|
|
|
506954
506562
|
extraInfo.push(`env: ${option.envVar}`);
|
|
506955
506563
|
}
|
|
506956
506564
|
if (extraInfo.length > 0) {
|
|
506957
|
-
|
|
506958
|
-
if (option.description) {
|
|
506959
|
-
return `${option.description} ${extraDescription}`;
|
|
506960
|
-
}
|
|
506961
|
-
return extraDescription;
|
|
506565
|
+
return `${option.description} (${extraInfo.join(", ")})`;
|
|
506962
506566
|
}
|
|
506963
506567
|
return option.description;
|
|
506964
506568
|
}
|
|
@@ -506979,27 +506583,6 @@ var require_help = __commonJS((exports) => {
|
|
|
506979
506583
|
}
|
|
506980
506584
|
return argument.description;
|
|
506981
506585
|
}
|
|
506982
|
-
formatItemList(heading, items, helper) {
|
|
506983
|
-
if (items.length === 0)
|
|
506984
|
-
return [];
|
|
506985
|
-
return [helper.styleTitle(heading), ...items, ""];
|
|
506986
|
-
}
|
|
506987
|
-
groupItems(unsortedItems, visibleItems, getGroup) {
|
|
506988
|
-
const result = new Map;
|
|
506989
|
-
unsortedItems.forEach((item) => {
|
|
506990
|
-
const group = getGroup(item);
|
|
506991
|
-
if (!result.has(group))
|
|
506992
|
-
result.set(group, []);
|
|
506993
|
-
});
|
|
506994
|
-
visibleItems.forEach((item) => {
|
|
506995
|
-
const group = getGroup(item);
|
|
506996
|
-
if (!result.has(group)) {
|
|
506997
|
-
result.set(group, []);
|
|
506998
|
-
}
|
|
506999
|
-
result.get(group).push(item);
|
|
507000
|
-
});
|
|
507001
|
-
return result;
|
|
507002
|
-
}
|
|
507003
506586
|
formatHelp(cmd, helper) {
|
|
507004
506587
|
const termWidth = helper.padWidth(cmd, helper);
|
|
507005
506588
|
const helpWidth = helper.helpWidth ?? 80;
|
|
@@ -507020,27 +506603,45 @@ var require_help = __commonJS((exports) => {
|
|
|
507020
506603
|
const argumentList = helper.visibleArguments(cmd).map((argument) => {
|
|
507021
506604
|
return callFormatItem(helper.styleArgumentTerm(helper.argumentTerm(argument)), helper.styleArgumentDescription(helper.argumentDescription(argument)));
|
|
507022
506605
|
});
|
|
507023
|
-
|
|
507024
|
-
|
|
507025
|
-
|
|
507026
|
-
|
|
507027
|
-
|
|
507028
|
-
|
|
507029
|
-
|
|
506606
|
+
if (argumentList.length > 0) {
|
|
506607
|
+
output = output.concat([
|
|
506608
|
+
helper.styleTitle("Arguments:"),
|
|
506609
|
+
...argumentList,
|
|
506610
|
+
""
|
|
506611
|
+
]);
|
|
506612
|
+
}
|
|
506613
|
+
const optionList = helper.visibleOptions(cmd).map((option) => {
|
|
506614
|
+
return callFormatItem(helper.styleOptionTerm(helper.optionTerm(option)), helper.styleOptionDescription(helper.optionDescription(option)));
|
|
507030
506615
|
});
|
|
506616
|
+
if (optionList.length > 0) {
|
|
506617
|
+
output = output.concat([
|
|
506618
|
+
helper.styleTitle("Options:"),
|
|
506619
|
+
...optionList,
|
|
506620
|
+
""
|
|
506621
|
+
]);
|
|
506622
|
+
}
|
|
507031
506623
|
if (helper.showGlobalOptions) {
|
|
507032
506624
|
const globalOptionList = helper.visibleGlobalOptions(cmd).map((option) => {
|
|
507033
506625
|
return callFormatItem(helper.styleOptionTerm(helper.optionTerm(option)), helper.styleOptionDescription(helper.optionDescription(option)));
|
|
507034
506626
|
});
|
|
507035
|
-
|
|
506627
|
+
if (globalOptionList.length > 0) {
|
|
506628
|
+
output = output.concat([
|
|
506629
|
+
helper.styleTitle("Global Options:"),
|
|
506630
|
+
...globalOptionList,
|
|
506631
|
+
""
|
|
506632
|
+
]);
|
|
506633
|
+
}
|
|
507036
506634
|
}
|
|
507037
|
-
const
|
|
507038
|
-
|
|
507039
|
-
const commandList = commands.map((sub) => {
|
|
507040
|
-
return callFormatItem(helper.styleSubcommandTerm(helper.subcommandTerm(sub)), helper.styleSubcommandDescription(helper.subcommandDescription(sub)));
|
|
507041
|
-
});
|
|
507042
|
-
output = output.concat(this.formatItemList(group, commandList, helper));
|
|
506635
|
+
const commandList = helper.visibleCommands(cmd).map((cmd2) => {
|
|
506636
|
+
return callFormatItem(helper.styleSubcommandTerm(helper.subcommandTerm(cmd2)), helper.styleSubcommandDescription(helper.subcommandDescription(cmd2)));
|
|
507043
506637
|
});
|
|
506638
|
+
if (commandList.length > 0) {
|
|
506639
|
+
output = output.concat([
|
|
506640
|
+
helper.styleTitle("Commands:"),
|
|
506641
|
+
...commandList,
|
|
506642
|
+
""
|
|
506643
|
+
]);
|
|
506644
|
+
}
|
|
507044
506645
|
return output.join(`
|
|
507045
506646
|
`);
|
|
507046
506647
|
}
|
|
@@ -507197,7 +506798,6 @@ var require_option = __commonJS((exports) => {
|
|
|
507197
506798
|
this.argChoices = undefined;
|
|
507198
506799
|
this.conflictsWith = [];
|
|
507199
506800
|
this.implied = undefined;
|
|
507200
|
-
this.helpGroupHeading = undefined;
|
|
507201
506801
|
}
|
|
507202
506802
|
default(value, description) {
|
|
507203
506803
|
this.defaultValue = value;
|
|
@@ -507236,12 +506836,11 @@ var require_option = __commonJS((exports) => {
|
|
|
507236
506836
|
this.hidden = !!hide;
|
|
507237
506837
|
return this;
|
|
507238
506838
|
}
|
|
507239
|
-
|
|
506839
|
+
_concatValue(value, previous) {
|
|
507240
506840
|
if (previous === this.defaultValue || !Array.isArray(previous)) {
|
|
507241
506841
|
return [value];
|
|
507242
506842
|
}
|
|
507243
|
-
previous.
|
|
507244
|
-
return previous;
|
|
506843
|
+
return previous.concat(value);
|
|
507245
506844
|
}
|
|
507246
506845
|
choices(values3) {
|
|
507247
506846
|
this.argChoices = values3.slice();
|
|
@@ -507250,7 +506849,7 @@ var require_option = __commonJS((exports) => {
|
|
|
507250
506849
|
throw new InvalidArgumentError(`Allowed choices are ${this.argChoices.join(", ")}.`);
|
|
507251
506850
|
}
|
|
507252
506851
|
if (this.variadic) {
|
|
507253
|
-
return this.
|
|
506852
|
+
return this._concatValue(arg, previous);
|
|
507254
506853
|
}
|
|
507255
506854
|
return arg;
|
|
507256
506855
|
};
|
|
@@ -507268,10 +506867,6 @@ var require_option = __commonJS((exports) => {
|
|
|
507268
506867
|
}
|
|
507269
506868
|
return camelcase(this.name());
|
|
507270
506869
|
}
|
|
507271
|
-
helpGroup(heading) {
|
|
507272
|
-
this.helpGroupHeading = heading;
|
|
507273
|
-
return this;
|
|
507274
|
-
}
|
|
507275
506870
|
is(arg) {
|
|
507276
506871
|
return this.short === arg || this.long === arg;
|
|
507277
506872
|
}
|
|
@@ -507489,9 +507084,6 @@ var require_command = __commonJS((exports) => {
|
|
|
507489
507084
|
this._addImplicitHelpCommand = undefined;
|
|
507490
507085
|
this._helpCommand = undefined;
|
|
507491
507086
|
this._helpConfiguration = {};
|
|
507492
|
-
this._helpGroupHeading = undefined;
|
|
507493
|
-
this._defaultCommandGroup = undefined;
|
|
507494
|
-
this._defaultOptionGroup = undefined;
|
|
507495
507087
|
}
|
|
507496
507088
|
copyInheritedSettings(sourceCommand) {
|
|
507497
507089
|
this._outputConfiguration = sourceCommand._outputConfiguration;
|
|
@@ -507556,10 +507148,7 @@ var require_command = __commonJS((exports) => {
|
|
|
507556
507148
|
configureOutput(configuration) {
|
|
507557
507149
|
if (configuration === undefined)
|
|
507558
507150
|
return this._outputConfiguration;
|
|
507559
|
-
this._outputConfiguration
|
|
507560
|
-
...this._outputConfiguration,
|
|
507561
|
-
...configuration
|
|
507562
|
-
};
|
|
507151
|
+
Object.assign(this._outputConfiguration, configuration);
|
|
507563
507152
|
return this;
|
|
507564
507153
|
}
|
|
507565
507154
|
showHelpAfterError(displayHelp = true) {
|
|
@@ -507590,12 +507179,12 @@ var require_command = __commonJS((exports) => {
|
|
|
507590
507179
|
createArgument(name, description) {
|
|
507591
507180
|
return new Argument(name, description);
|
|
507592
507181
|
}
|
|
507593
|
-
argument(name, description,
|
|
507182
|
+
argument(name, description, fn, defaultValue) {
|
|
507594
507183
|
const argument = this.createArgument(name, description);
|
|
507595
|
-
if (typeof
|
|
507596
|
-
argument.default(defaultValue).argParser(
|
|
507184
|
+
if (typeof fn === "function") {
|
|
507185
|
+
argument.default(defaultValue).argParser(fn);
|
|
507597
507186
|
} else {
|
|
507598
|
-
argument.default(
|
|
507187
|
+
argument.default(fn);
|
|
507599
507188
|
}
|
|
507600
507189
|
this.addArgument(argument);
|
|
507601
507190
|
return this;
|
|
@@ -507608,7 +507197,7 @@ var require_command = __commonJS((exports) => {
|
|
|
507608
507197
|
}
|
|
507609
507198
|
addArgument(argument) {
|
|
507610
507199
|
const previousArgument = this.registeredArguments.slice(-1)[0];
|
|
507611
|
-
if (previousArgument
|
|
507200
|
+
if (previousArgument && previousArgument.variadic) {
|
|
507612
507201
|
throw new Error(`only the last argument can be variadic '${previousArgument.name()}'`);
|
|
507613
507202
|
}
|
|
507614
507203
|
if (argument.required && argument.defaultValue !== undefined && argument.parseArg === undefined) {
|
|
@@ -507620,13 +507209,10 @@ var require_command = __commonJS((exports) => {
|
|
|
507620
507209
|
helpCommand(enableOrNameAndArgs, description) {
|
|
507621
507210
|
if (typeof enableOrNameAndArgs === "boolean") {
|
|
507622
507211
|
this._addImplicitHelpCommand = enableOrNameAndArgs;
|
|
507623
|
-
if (enableOrNameAndArgs && this._defaultCommandGroup) {
|
|
507624
|
-
this._initCommandGroup(this._getHelpCommand());
|
|
507625
|
-
}
|
|
507626
507212
|
return this;
|
|
507627
507213
|
}
|
|
507628
|
-
|
|
507629
|
-
const [, helpName, helpArgs] =
|
|
507214
|
+
enableOrNameAndArgs = enableOrNameAndArgs ?? "help [command]";
|
|
507215
|
+
const [, helpName, helpArgs] = enableOrNameAndArgs.match(/([^ ]+) *(.*)/);
|
|
507630
507216
|
const helpDescription = description ?? "display help for command";
|
|
507631
507217
|
const helpCommand = this.createCommand(helpName);
|
|
507632
507218
|
helpCommand.helpOption(false);
|
|
@@ -507636,8 +507222,6 @@ var require_command = __commonJS((exports) => {
|
|
|
507636
507222
|
helpCommand.description(helpDescription);
|
|
507637
507223
|
this._addImplicitHelpCommand = true;
|
|
507638
507224
|
this._helpCommand = helpCommand;
|
|
507639
|
-
if (enableOrNameAndArgs || description)
|
|
507640
|
-
this._initCommandGroup(helpCommand);
|
|
507641
507225
|
return this;
|
|
507642
507226
|
}
|
|
507643
507227
|
addHelpCommand(helpCommand, deprecatedDescription) {
|
|
@@ -507647,7 +507231,6 @@ var require_command = __commonJS((exports) => {
|
|
|
507647
507231
|
}
|
|
507648
507232
|
this._addImplicitHelpCommand = true;
|
|
507649
507233
|
this._helpCommand = helpCommand;
|
|
507650
|
-
this._initCommandGroup(helpCommand);
|
|
507651
507234
|
return this;
|
|
507652
507235
|
}
|
|
507653
507236
|
_getHelpCommand() {
|
|
@@ -507727,7 +507310,6 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
507727
507310
|
throw new Error(`Cannot add option '${option.flags}'${this._name && ` to command '${this._name}'`} due to conflicting flag '${matchingFlag}'
|
|
507728
507311
|
- already used by option '${matchingOption.flags}'`);
|
|
507729
507312
|
}
|
|
507730
|
-
this._initOptionGroup(option);
|
|
507731
507313
|
this.options.push(option);
|
|
507732
507314
|
}
|
|
507733
507315
|
_registerCommand(command8) {
|
|
@@ -507740,7 +507322,6 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
507740
507322
|
const newCmd = knownBy(command8).join("|");
|
|
507741
507323
|
throw new Error(`cannot add command '${newCmd}' as already have command '${existingCmd}'`);
|
|
507742
507324
|
}
|
|
507743
|
-
this._initCommandGroup(command8);
|
|
507744
507325
|
this.commands.push(command8);
|
|
507745
507326
|
}
|
|
507746
507327
|
addOption(option) {
|
|
@@ -507763,7 +507344,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
507763
507344
|
if (val !== null && option.parseArg) {
|
|
507764
507345
|
val = this._callParseArg(option, val, oldValue, invalidValueMessage);
|
|
507765
507346
|
} else if (val !== null && option.variadic) {
|
|
507766
|
-
val = option.
|
|
507347
|
+
val = option._concatValue(val, oldValue);
|
|
507767
507348
|
}
|
|
507768
507349
|
if (val == null) {
|
|
507769
507350
|
if (option.negate) {
|
|
@@ -508138,7 +507719,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
508138
507719
|
this.processedArgs = processedArgs;
|
|
508139
507720
|
}
|
|
508140
507721
|
_chainOrCall(promise3, fn) {
|
|
508141
|
-
if (promise3
|
|
507722
|
+
if (promise3 && promise3.then && typeof promise3.then === "function") {
|
|
508142
507723
|
return promise3.then(() => fn());
|
|
508143
507724
|
}
|
|
508144
507725
|
return fn();
|
|
@@ -508215,7 +507796,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
508215
507796
|
promiseChain = this._chainOrCallHooks(promiseChain, "postAction");
|
|
508216
507797
|
return promiseChain;
|
|
508217
507798
|
}
|
|
508218
|
-
if (this.parent
|
|
507799
|
+
if (this.parent && this.parent.listenerCount(commandEvent)) {
|
|
508219
507800
|
checkForUnknownOptions();
|
|
508220
507801
|
this._processArguments();
|
|
508221
507802
|
this.parent.emit(commandEvent, operands, unknown3);
|
|
@@ -508277,31 +507858,24 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
508277
507858
|
cmd._checkForConflictingLocalOptions();
|
|
508278
507859
|
});
|
|
508279
507860
|
}
|
|
508280
|
-
parseOptions(
|
|
507861
|
+
parseOptions(argv) {
|
|
508281
507862
|
const operands = [];
|
|
508282
507863
|
const unknown3 = [];
|
|
508283
507864
|
let dest = operands;
|
|
507865
|
+
const args = argv.slice();
|
|
508284
507866
|
function maybeOption(arg) {
|
|
508285
507867
|
return arg.length > 1 && arg[0] === "-";
|
|
508286
507868
|
}
|
|
508287
|
-
const negativeNumberArg = (arg) => {
|
|
508288
|
-
if (!/^-(\d+|\d*\.\d+)(e[+-]?\d+)?$/.test(arg))
|
|
508289
|
-
return false;
|
|
508290
|
-
return !this._getCommandAndAncestors().some((cmd) => cmd.options.map((opt) => opt.short).some((short) => /^-\d$/.test(short)));
|
|
508291
|
-
};
|
|
508292
507869
|
let activeVariadicOption = null;
|
|
508293
|
-
|
|
508294
|
-
|
|
508295
|
-
while (i3 < args.length || activeGroup) {
|
|
508296
|
-
const arg = activeGroup ?? args[i3++];
|
|
508297
|
-
activeGroup = null;
|
|
507870
|
+
while (args.length) {
|
|
507871
|
+
const arg = args.shift();
|
|
508298
507872
|
if (arg === "--") {
|
|
508299
507873
|
if (dest === unknown3)
|
|
508300
507874
|
dest.push(arg);
|
|
508301
|
-
dest.push(...args
|
|
507875
|
+
dest.push(...args);
|
|
508302
507876
|
break;
|
|
508303
507877
|
}
|
|
508304
|
-
if (activeVariadicOption &&
|
|
507878
|
+
if (activeVariadicOption && !maybeOption(arg)) {
|
|
508305
507879
|
this.emit(`option:${activeVariadicOption.name()}`, arg);
|
|
508306
507880
|
continue;
|
|
508307
507881
|
}
|
|
@@ -508310,14 +507884,14 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
508310
507884
|
const option = this._findOption(arg);
|
|
508311
507885
|
if (option) {
|
|
508312
507886
|
if (option.required) {
|
|
508313
|
-
const value = args
|
|
507887
|
+
const value = args.shift();
|
|
508314
507888
|
if (value === undefined)
|
|
508315
507889
|
this.optionMissingArgument(option);
|
|
508316
507890
|
this.emit(`option:${option.name()}`, value);
|
|
508317
507891
|
} else if (option.optional) {
|
|
508318
507892
|
let value = null;
|
|
508319
|
-
if (
|
|
508320
|
-
value = args
|
|
507893
|
+
if (args.length > 0 && !maybeOption(args[0])) {
|
|
507894
|
+
value = args.shift();
|
|
508321
507895
|
}
|
|
508322
507896
|
this.emit(`option:${option.name()}`, value);
|
|
508323
507897
|
} else {
|
|
@@ -508334,7 +507908,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
508334
507908
|
this.emit(`option:${option.name()}`, arg.slice(2));
|
|
508335
507909
|
} else {
|
|
508336
507910
|
this.emit(`option:${option.name()}`);
|
|
508337
|
-
|
|
507911
|
+
args.unshift(`-${arg.slice(2)}`);
|
|
508338
507912
|
}
|
|
508339
507913
|
continue;
|
|
508340
507914
|
}
|
|
@@ -508347,24 +507921,31 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
508347
507921
|
continue;
|
|
508348
507922
|
}
|
|
508349
507923
|
}
|
|
508350
|
-
if (
|
|
507924
|
+
if (maybeOption(arg)) {
|
|
508351
507925
|
dest = unknown3;
|
|
508352
507926
|
}
|
|
508353
507927
|
if ((this._enablePositionalOptions || this._passThroughOptions) && operands.length === 0 && unknown3.length === 0) {
|
|
508354
507928
|
if (this._findCommand(arg)) {
|
|
508355
507929
|
operands.push(arg);
|
|
508356
|
-
|
|
507930
|
+
if (args.length > 0)
|
|
507931
|
+
unknown3.push(...args);
|
|
508357
507932
|
break;
|
|
508358
507933
|
} else if (this._getHelpCommand() && arg === this._getHelpCommand().name()) {
|
|
508359
|
-
operands.push(arg
|
|
507934
|
+
operands.push(arg);
|
|
507935
|
+
if (args.length > 0)
|
|
507936
|
+
operands.push(...args);
|
|
508360
507937
|
break;
|
|
508361
507938
|
} else if (this._defaultCommandName) {
|
|
508362
|
-
unknown3.push(arg
|
|
507939
|
+
unknown3.push(arg);
|
|
507940
|
+
if (args.length > 0)
|
|
507941
|
+
unknown3.push(...args);
|
|
508363
507942
|
break;
|
|
508364
507943
|
}
|
|
508365
507944
|
}
|
|
508366
507945
|
if (this._passThroughOptions) {
|
|
508367
|
-
dest.push(arg
|
|
507946
|
+
dest.push(arg);
|
|
507947
|
+
if (args.length > 0)
|
|
507948
|
+
dest.push(...args);
|
|
508368
507949
|
break;
|
|
508369
507950
|
}
|
|
508370
507951
|
dest.push(arg);
|
|
@@ -508575,32 +508156,6 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
508575
508156
|
this._name = str2;
|
|
508576
508157
|
return this;
|
|
508577
508158
|
}
|
|
508578
|
-
helpGroup(heading) {
|
|
508579
|
-
if (heading === undefined)
|
|
508580
|
-
return this._helpGroupHeading ?? "";
|
|
508581
|
-
this._helpGroupHeading = heading;
|
|
508582
|
-
return this;
|
|
508583
|
-
}
|
|
508584
|
-
commandsGroup(heading) {
|
|
508585
|
-
if (heading === undefined)
|
|
508586
|
-
return this._defaultCommandGroup ?? "";
|
|
508587
|
-
this._defaultCommandGroup = heading;
|
|
508588
|
-
return this;
|
|
508589
|
-
}
|
|
508590
|
-
optionsGroup(heading) {
|
|
508591
|
-
if (heading === undefined)
|
|
508592
|
-
return this._defaultOptionGroup ?? "";
|
|
508593
|
-
this._defaultOptionGroup = heading;
|
|
508594
|
-
return this;
|
|
508595
|
-
}
|
|
508596
|
-
_initOptionGroup(option) {
|
|
508597
|
-
if (this._defaultOptionGroup && !option.helpGroupHeading)
|
|
508598
|
-
option.helpGroup(this._defaultOptionGroup);
|
|
508599
|
-
}
|
|
508600
|
-
_initCommandGroup(cmd) {
|
|
508601
|
-
if (this._defaultCommandGroup && !cmd.helpGroup())
|
|
508602
|
-
cmd.helpGroup(this._defaultCommandGroup);
|
|
508603
|
-
}
|
|
508604
508159
|
nameFromFilename(filename) {
|
|
508605
508160
|
this._name = path25.basename(filename, path25.extname(filename));
|
|
508606
508161
|
return this;
|
|
@@ -508677,19 +508232,15 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
508677
508232
|
helpOption(flags, description) {
|
|
508678
508233
|
if (typeof flags === "boolean") {
|
|
508679
508234
|
if (flags) {
|
|
508680
|
-
|
|
508681
|
-
this._helpOption = undefined;
|
|
508682
|
-
if (this._defaultOptionGroup) {
|
|
508683
|
-
this._initOptionGroup(this._getHelpOption());
|
|
508684
|
-
}
|
|
508235
|
+
this._helpOption = this._helpOption ?? undefined;
|
|
508685
508236
|
} else {
|
|
508686
508237
|
this._helpOption = null;
|
|
508687
508238
|
}
|
|
508688
508239
|
return this;
|
|
508689
508240
|
}
|
|
508690
|
-
|
|
508691
|
-
|
|
508692
|
-
|
|
508241
|
+
flags = flags ?? "-h, --help";
|
|
508242
|
+
description = description ?? "display help for command";
|
|
508243
|
+
this._helpOption = this.createOption(flags, description);
|
|
508693
508244
|
return this;
|
|
508694
508245
|
}
|
|
508695
508246
|
_getHelpOption() {
|
|
@@ -508700,7 +508251,6 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
508700
508251
|
}
|
|
508701
508252
|
addHelpOption(option) {
|
|
508702
508253
|
this._helpOption = option;
|
|
508703
|
-
this._initOptionGroup(option);
|
|
508704
508254
|
return this;
|
|
508705
508255
|
}
|
|
508706
508256
|
help(contextOptions) {
|
|
@@ -509220,7 +508770,7 @@ function startBunRelay(wsUrl, authHeader, wsAuthHeader) {
|
|
|
509220
508770
|
},
|
|
509221
508771
|
data(sock, data) {
|
|
509222
508772
|
const st = sock.data;
|
|
509223
|
-
const
|
|
508773
|
+
const adapter = {
|
|
509224
508774
|
write: (payload) => {
|
|
509225
508775
|
const bytes = typeof payload === "string" ? Buffer.from(payload, "utf8") : payload;
|
|
509226
508776
|
if (st.writeBuf.length > 0) {
|
|
@@ -509233,7 +508783,7 @@ function startBunRelay(wsUrl, authHeader, wsAuthHeader) {
|
|
|
509233
508783
|
},
|
|
509234
508784
|
end: () => sock.end()
|
|
509235
508785
|
};
|
|
509236
|
-
handleData(
|
|
508786
|
+
handleData(adapter, st, data, wsUrl, authHeader, wsAuthHeader);
|
|
509237
508787
|
},
|
|
509238
508788
|
drain(sock) {
|
|
509239
508789
|
const st = sock.data;
|
|
@@ -509267,13 +508817,13 @@ async function startNodeRelay(wsUrl, authHeader, wsAuthHeader) {
|
|
|
509267
508817
|
const server = createServer8((sock) => {
|
|
509268
508818
|
const st = newConnState();
|
|
509269
508819
|
states.set(sock, st);
|
|
509270
|
-
const
|
|
508820
|
+
const adapter = {
|
|
509271
508821
|
write: (payload) => {
|
|
509272
508822
|
sock.write(typeof payload === "string" ? payload : Buffer.from(payload));
|
|
509273
508823
|
},
|
|
509274
508824
|
end: () => sock.end()
|
|
509275
508825
|
};
|
|
509276
|
-
sock.on("data", (data) => handleData(
|
|
508826
|
+
sock.on("data", (data) => handleData(adapter, st, data, wsUrl, authHeader, wsAuthHeader));
|
|
509277
508827
|
sock.on("close", () => cleanupConn(states.get(sock)));
|
|
509278
508828
|
sock.on("error", (err2) => {
|
|
509279
508829
|
logForDebugging(`[upstreamproxy] client socket error: ${err2.message}`);
|
|
@@ -561649,7 +561199,7 @@ Now that this skill is invoked, you have access to Chrome browser automation too
|
|
|
561649
561199
|
IMPORTANT: Start by calling mcp__claude-in-chrome__tabs_context_mcp to get information about the user's current browser tabs.
|
|
561650
561200
|
`;
|
|
561651
561201
|
var init_claudeInChrome = __esm(() => {
|
|
561652
|
-
|
|
561202
|
+
init_claude_for_chrome_mcp();
|
|
561653
561203
|
init_setup2();
|
|
561654
561204
|
init_bundledSkills();
|
|
561655
561205
|
CLAUDE_IN_CHROME_MCP_TOOLS = BROWSER_TOOLS.map((tool) => `mcp__claude-in-chrome__${tool.name}`);
|
|
@@ -565075,9 +564625,9 @@ class SerialBatchEventUploader {
|
|
|
565075
564625
|
return exponential + jitter2;
|
|
565076
564626
|
}
|
|
565077
564627
|
releaseBackpressure() {
|
|
565078
|
-
const
|
|
564628
|
+
const resolvers3 = this.backpressureResolvers;
|
|
565079
564629
|
this.backpressureResolvers = [];
|
|
565080
|
-
for (const resolve49 of
|
|
564630
|
+
for (const resolve49 of resolvers3)
|
|
565081
564631
|
resolve49();
|
|
565082
564632
|
}
|
|
565083
564633
|
sleep(ms) {
|