@kodycodes/cli 3.46.1 → 3.46.2
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/{auth-6YVS765B.js → auth-Q6TDDWB2.js} +4 -4
- package/dist/bin.js +5 -5
- package/dist/capability-proxy.d.ts +2 -0
- package/dist/{chunk-2OMFUIFM.js → chunk-2G3YXYZ4.js} +2 -2
- package/dist/{chunk-YZLBZLOI.js → chunk-6BMYORZK.js} +45 -46
- package/dist/chunk-6BMYORZK.js.map +6 -0
- package/dist/{chunk-L6VBRGS6.js → chunk-6HPU7SMS.js} +22 -2
- package/dist/chunk-6HPU7SMS.js.map +6 -0
- package/dist/{chunk-YFE7AQ4A.js → chunk-BYZB4U4P.js} +4 -4
- package/dist/{chunk-ZADDFBAP.js → chunk-EJOF2MYU.js} +2 -2
- package/dist/{chunk-BYPUQBDP.js → chunk-MWC6FYWF.js} +3 -3
- package/dist/{chunk-HPFMVYSE.js → chunk-OBK4CIB2.js} +2 -2
- package/dist/{chunk-ZOF46RPD.js → chunk-Q7XRVWKZ.js} +3 -3
- package/dist/{chunk-2PJZFZB4.js → chunk-RFZQC23P.js} +4 -3
- package/dist/{chunk-2PJZFZB4.js.map → chunk-RFZQC23P.js.map} +1 -1
- package/dist/{chunk-HYL2OFVE.js → chunk-VX2KDCQF.js} +3 -3
- package/dist/{chunk-C4GIPPQ6.js → chunk-W257N63R.js} +6 -6
- package/dist/{chunk-MYAA4EUX.js → chunk-XSRTFMCF.js} +2 -2
- package/dist/{chunk-QCIN3KQT.js → chunk-ZER4SBOV.js} +5 -5
- package/dist/{chunk-SRHOJETK.js → chunk-ZIL2JPJC.js} +2 -2
- package/dist/cli.js +5 -5
- package/dist/{commands-7VKD36R4.js → commands-AMTPU2F7.js} +2 -2
- package/dist/credential-call-map.d.ts +3 -0
- package/dist/{dev-command-W3G4XFCI.js → dev-command-754FYKV6.js} +9 -9
- package/dist/{execute-local-package-IY5GFYAX.js → execute-local-package-PVPTFQFM.js} +9 -9
- package/dist/{git-credential-5GEHTTH2.js → git-credential-BL7KCA76.js} +5 -5
- package/dist/{local-execute-WNLIXCWZ.js → local-execute-A4ZUH53E.js} +13 -10
- package/dist/local-execute-A4ZUH53E.js.map +6 -0
- package/dist/local-gateway-fetch-forward.d.ts +2 -0
- package/dist/{local-kody-IO7UOYO6.js → local-kody-BJ7OORPF.js} +6 -6
- package/dist/{local-package-graph-JH4L7OF3.js → local-package-graph-7A4ZQBXJ.js} +3 -3
- package/dist/{local-package-run-XQZPNN2V.js → local-package-run-2X72ZAV2.js} +7 -7
- package/dist/{local-secrets-N272AT7P.js → local-secrets-2S7KJ6EI.js} +3 -3
- package/dist/{mock-dep-resolve-VA4P5AOO.js → mock-dep-resolve-ACHQAI36.js} +2 -2
- package/dist/{mock-local-deps-4FWQ2M2T.js → mock-local-deps-43QBYHHF.js} +4 -4
- package/dist/{open-api-client-2WF6OBN3.js → open-api-client-Z3LIDWQ2.js} +3 -3
- package/dist/{package-run-6QLZSYSK.js → package-run-E34M5ERO.js} +3 -3
- package/dist/publish-builder.js +843 -202
- package/dist/{remote-execute-W5VKF2UH.js → remote-execute-CINWGFKJ.js} +4 -4
- package/dist/{run-executor-XWWOYYVC.js → run-executor-OGVMKPIB.js} +2 -2
- package/dist/{setup-git-Q73BJOGI.js → setup-git-P5HLZX3R.js} +4 -4
- package/dist/{whoami-CC7O3IEO.js → whoami-EU7HSV45.js} +3 -3
- package/package.json +1 -1
- package/dist/chunk-L6VBRGS6.js.map +0 -6
- package/dist/chunk-YZLBZLOI.js.map +0 -6
- package/dist/local-execute-WNLIXCWZ.js.map +0 -6
- /package/dist/{auth-6YVS765B.js.map → auth-Q6TDDWB2.js.map} +0 -0
- /package/dist/{chunk-2OMFUIFM.js.map → chunk-2G3YXYZ4.js.map} +0 -0
- /package/dist/{chunk-YFE7AQ4A.js.map → chunk-BYZB4U4P.js.map} +0 -0
- /package/dist/{chunk-ZADDFBAP.js.map → chunk-EJOF2MYU.js.map} +0 -0
- /package/dist/{chunk-BYPUQBDP.js.map → chunk-MWC6FYWF.js.map} +0 -0
- /package/dist/{chunk-HPFMVYSE.js.map → chunk-OBK4CIB2.js.map} +0 -0
- /package/dist/{chunk-ZOF46RPD.js.map → chunk-Q7XRVWKZ.js.map} +0 -0
- /package/dist/{chunk-HYL2OFVE.js.map → chunk-VX2KDCQF.js.map} +0 -0
- /package/dist/{chunk-C4GIPPQ6.js.map → chunk-W257N63R.js.map} +0 -0
- /package/dist/{chunk-MYAA4EUX.js.map → chunk-XSRTFMCF.js.map} +0 -0
- /package/dist/{chunk-QCIN3KQT.js.map → chunk-ZER4SBOV.js.map} +0 -0
- /package/dist/{chunk-SRHOJETK.js.map → chunk-ZIL2JPJC.js.map} +0 -0
- /package/dist/{commands-7VKD36R4.js.map → commands-AMTPU2F7.js.map} +0 -0
- /package/dist/{dev-command-W3G4XFCI.js.map → dev-command-754FYKV6.js.map} +0 -0
- /package/dist/{execute-local-package-IY5GFYAX.js.map → execute-local-package-PVPTFQFM.js.map} +0 -0
- /package/dist/{git-credential-5GEHTTH2.js.map → git-credential-BL7KCA76.js.map} +0 -0
- /package/dist/{local-kody-IO7UOYO6.js.map → local-kody-BJ7OORPF.js.map} +0 -0
- /package/dist/{local-package-graph-JH4L7OF3.js.map → local-package-graph-7A4ZQBXJ.js.map} +0 -0
- /package/dist/{local-package-run-XQZPNN2V.js.map → local-package-run-2X72ZAV2.js.map} +0 -0
- /package/dist/{local-secrets-N272AT7P.js.map → local-secrets-2S7KJ6EI.js.map} +0 -0
- /package/dist/{mock-dep-resolve-VA4P5AOO.js.map → mock-dep-resolve-ACHQAI36.js.map} +0 -0
- /package/dist/{mock-local-deps-4FWQ2M2T.js.map → mock-local-deps-43QBYHHF.js.map} +0 -0
- /package/dist/{open-api-client-2WF6OBN3.js.map → open-api-client-Z3LIDWQ2.js.map} +0 -0
- /package/dist/{package-run-6QLZSYSK.js.map → package-run-E34M5ERO.js.map} +0 -0
- /package/dist/{remote-execute-W5VKF2UH.js.map → remote-execute-CINWGFKJ.js.map} +0 -0
- /package/dist/{run-executor-XWWOYYVC.js.map → run-executor-OGVMKPIB.js.map} +0 -0
- /package/dist/{setup-git-Q73BJOGI.js.map → setup-git-P5HLZX3R.js.map} +0 -0
- /package/dist/{whoami-CC7O3IEO.js.map → whoami-EU7HSV45.js.map} +0 -0
package/dist/publish-builder.js
CHANGED
|
@@ -848,11 +848,11 @@ var init_package_app_host_label = __esm({
|
|
|
848
848
|
});
|
|
849
849
|
|
|
850
850
|
// ../shared/src/package-app-host-paths.ts
|
|
851
|
-
function isPackageAppHostProbeFirstSegment(
|
|
852
|
-
return packageAppHostProbeFirstSegments.has(
|
|
851
|
+
function isPackageAppHostProbeFirstSegment(segment2) {
|
|
852
|
+
return packageAppHostProbeFirstSegments.has(segment2.trim().toLowerCase());
|
|
853
853
|
}
|
|
854
|
-
function isPackageAppHostReservedFirstSegment(
|
|
855
|
-
return packageAppHostReservedFirstSegments.has(
|
|
854
|
+
function isPackageAppHostReservedFirstSegment(segment2) {
|
|
855
|
+
return packageAppHostReservedFirstSegments.has(segment2.trim().toLowerCase());
|
|
856
856
|
}
|
|
857
857
|
function isPackageAppHostReservedPackageLeaf(leaf) {
|
|
858
858
|
const normalized = leaf.trim().toLowerCase();
|
|
@@ -2180,18 +2180,18 @@ var init_parse = __esm({
|
|
|
2180
2180
|
return result.issues.length === 0;
|
|
2181
2181
|
};
|
|
2182
2182
|
_encode = (_Err) => {
|
|
2183
|
-
const
|
|
2183
|
+
const parse10 = _parse(_Err);
|
|
2184
2184
|
const fn = (schema, value, _ctx, _params) => {
|
|
2185
2185
|
const ctx = _ctx ? { ..._ctx, direction: "backward" } : { direction: "backward" };
|
|
2186
|
-
return
|
|
2186
|
+
return parse10(schema, value, ctx, finalizeParams(fn, _params));
|
|
2187
2187
|
};
|
|
2188
2188
|
return fn;
|
|
2189
2189
|
};
|
|
2190
2190
|
encode = /* @__PURE__ */ _encode($ZodRealError);
|
|
2191
2191
|
_decode = (_Err) => {
|
|
2192
|
-
const
|
|
2192
|
+
const parse10 = _parse(_Err);
|
|
2193
2193
|
const fn = (schema, value, _ctx, _params) => {
|
|
2194
|
-
return
|
|
2194
|
+
return parse10(schema, value, _ctx, finalizeParams(fn, _params));
|
|
2195
2195
|
};
|
|
2196
2196
|
return fn;
|
|
2197
2197
|
};
|
|
@@ -2445,13 +2445,13 @@ var init_checks = __esm({
|
|
|
2445
2445
|
};
|
|
2446
2446
|
$ZodCheckLessThan = /* @__PURE__ */ $constructor("$ZodCheckLessThan", (inst, def) => {
|
|
2447
2447
|
$ZodCheck.init(inst, def);
|
|
2448
|
-
const
|
|
2448
|
+
const origin2 = numericOriginMap[typeof def.value];
|
|
2449
2449
|
inst._zod.check = (payload) => {
|
|
2450
2450
|
if (def.inclusive ? payload.value <= def.value : payload.value < def.value) {
|
|
2451
2451
|
return;
|
|
2452
2452
|
}
|
|
2453
2453
|
payload.issues.push({
|
|
2454
|
-
origin: numericOriginMap[typeof payload.value] ??
|
|
2454
|
+
origin: numericOriginMap[typeof payload.value] ?? origin2,
|
|
2455
2455
|
code: "too_big",
|
|
2456
2456
|
maximum: typeof def.value === "object" ? def.value.getTime() : def.value,
|
|
2457
2457
|
input: payload.value,
|
|
@@ -2463,13 +2463,13 @@ var init_checks = __esm({
|
|
|
2463
2463
|
});
|
|
2464
2464
|
$ZodCheckGreaterThan = /* @__PURE__ */ $constructor("$ZodCheckGreaterThan", (inst, def) => {
|
|
2465
2465
|
$ZodCheck.init(inst, def);
|
|
2466
|
-
const
|
|
2466
|
+
const origin2 = numericOriginMap[typeof def.value];
|
|
2467
2467
|
inst._zod.check = (payload) => {
|
|
2468
2468
|
if (def.inclusive ? payload.value >= def.value : payload.value > def.value) {
|
|
2469
2469
|
return;
|
|
2470
2470
|
}
|
|
2471
2471
|
payload.issues.push({
|
|
2472
|
-
origin: numericOriginMap[typeof payload.value] ??
|
|
2472
|
+
origin: numericOriginMap[typeof payload.value] ?? origin2,
|
|
2473
2473
|
code: "too_small",
|
|
2474
2474
|
minimum: typeof def.value === "object" ? def.value.getTime() : def.value,
|
|
2475
2475
|
input: payload.value,
|
|
@@ -2504,14 +2504,14 @@ var init_checks = __esm({
|
|
|
2504
2504
|
$ZodCheck.init(inst, def);
|
|
2505
2505
|
def.format = def.format || "float64";
|
|
2506
2506
|
const isInt = def.format?.includes("int");
|
|
2507
|
-
const
|
|
2507
|
+
const origin2 = isInt ? "int" : "number";
|
|
2508
2508
|
const [minimum, maximum] = NUMBER_FORMAT_RANGES[def.format];
|
|
2509
2509
|
inst._zod.check = (payload) => {
|
|
2510
2510
|
const input3 = payload.value;
|
|
2511
2511
|
if (isInt) {
|
|
2512
2512
|
if (!Number.isInteger(input3)) {
|
|
2513
2513
|
payload.issues.push({
|
|
2514
|
-
expected:
|
|
2514
|
+
expected: origin2,
|
|
2515
2515
|
format: def.format,
|
|
2516
2516
|
code: "invalid_type",
|
|
2517
2517
|
continue: false,
|
|
@@ -2528,7 +2528,7 @@ var init_checks = __esm({
|
|
|
2528
2528
|
maximum: Number.MAX_SAFE_INTEGER,
|
|
2529
2529
|
note: "Integers must be within the safe integer range.",
|
|
2530
2530
|
inst,
|
|
2531
|
-
origin,
|
|
2531
|
+
origin: origin2,
|
|
2532
2532
|
inclusive: true,
|
|
2533
2533
|
continue: !def.abort
|
|
2534
2534
|
});
|
|
@@ -2539,7 +2539,7 @@ var init_checks = __esm({
|
|
|
2539
2539
|
minimum: Number.MIN_SAFE_INTEGER,
|
|
2540
2540
|
note: "Integers must be within the safe integer range.",
|
|
2541
2541
|
inst,
|
|
2542
|
-
origin,
|
|
2542
|
+
origin: origin2,
|
|
2543
2543
|
inclusive: true,
|
|
2544
2544
|
continue: !def.abort
|
|
2545
2545
|
});
|
|
@@ -2671,9 +2671,9 @@ var init_checks = __esm({
|
|
|
2671
2671
|
const length = typeof input3 === "string" && units > def.maximum ? codePointLength(input3) : units;
|
|
2672
2672
|
if (length <= def.maximum)
|
|
2673
2673
|
return;
|
|
2674
|
-
const
|
|
2674
|
+
const origin2 = getLengthableOrigin(input3);
|
|
2675
2675
|
payload.issues.push({
|
|
2676
|
-
origin,
|
|
2676
|
+
origin: origin2,
|
|
2677
2677
|
code: "too_big",
|
|
2678
2678
|
maximum: def.maximum,
|
|
2679
2679
|
inclusive: true,
|
|
@@ -2693,9 +2693,9 @@ var init_checks = __esm({
|
|
|
2693
2693
|
const length = typeof input3 === "string" && units >= def.minimum && units < def.minimum * 2 ? codePointLength(input3) : units;
|
|
2694
2694
|
if (length >= def.minimum)
|
|
2695
2695
|
return;
|
|
2696
|
-
const
|
|
2696
|
+
const origin2 = getLengthableOrigin(input3);
|
|
2697
2697
|
payload.issues.push({
|
|
2698
|
-
origin,
|
|
2698
|
+
origin: origin2,
|
|
2699
2699
|
code: "too_small",
|
|
2700
2700
|
minimum: def.minimum,
|
|
2701
2701
|
inclusive: true,
|
|
@@ -2715,10 +2715,10 @@ var init_checks = __esm({
|
|
|
2715
2715
|
const length = typeof input3 === "string" && units >= def.length && units <= def.length * 2 ? codePointLength(input3) : units;
|
|
2716
2716
|
if (length === def.length)
|
|
2717
2717
|
return;
|
|
2718
|
-
const
|
|
2718
|
+
const origin2 = getLengthableOrigin(input3);
|
|
2719
2719
|
const tooBig = length > def.length;
|
|
2720
2720
|
payload.issues.push({
|
|
2721
|
-
origin,
|
|
2721
|
+
origin: origin2,
|
|
2722
2722
|
...tooBig ? { code: "too_big", maximum: def.length } : { code: "too_small", minimum: def.length },
|
|
2723
2723
|
inclusive: true,
|
|
2724
2724
|
exact: true,
|
|
@@ -3116,7 +3116,7 @@ function capSize(inst, size) {
|
|
|
3116
3116
|
if (!caps.length)
|
|
3117
3117
|
return;
|
|
3118
3118
|
const cap = Math.min(...caps.map((c2) => c2[0]));
|
|
3119
|
-
const
|
|
3119
|
+
const parse10 = inst._zod.parse;
|
|
3120
3120
|
inst._zod.parse = (payload, ctx) => {
|
|
3121
3121
|
const n3 = size(payload.value);
|
|
3122
3122
|
if (n3 > cap && !ctx?.skipChecks && ctx?.direction !== "backward") {
|
|
@@ -3130,7 +3130,7 @@ function capSize(inst, size) {
|
|
|
3130
3130
|
}
|
|
3131
3131
|
}
|
|
3132
3132
|
}
|
|
3133
|
-
return
|
|
3133
|
+
return parse10(payload, ctx);
|
|
3134
3134
|
};
|
|
3135
3135
|
}
|
|
3136
3136
|
function handleArrayResult(result, final, index) {
|
|
@@ -5709,8 +5709,8 @@ var init_en = __esm({
|
|
|
5709
5709
|
set: { unit: "items", verb: "to have" },
|
|
5710
5710
|
map: { unit: "entries", verb: "to have" }
|
|
5711
5711
|
};
|
|
5712
|
-
function getSizing(
|
|
5713
|
-
return Sizable[
|
|
5712
|
+
function getSizing(origin2) {
|
|
5713
|
+
return Sizable[origin2] ?? null;
|
|
5714
5714
|
}
|
|
5715
5715
|
const FormatDictionary = {
|
|
5716
5716
|
regex: "input",
|
|
@@ -6923,12 +6923,12 @@ function _stringbool(Classes, _params) {
|
|
|
6923
6923
|
return codec2;
|
|
6924
6924
|
}
|
|
6925
6925
|
// @__NO_SIDE_EFFECTS__
|
|
6926
|
-
function _stringFormat(Class2,
|
|
6926
|
+
function _stringFormat(Class2, format2, fnOrRegex, _params = {}) {
|
|
6927
6927
|
const params = normalizeParams(_params);
|
|
6928
6928
|
const def = {
|
|
6929
6929
|
check: "string_format",
|
|
6930
6930
|
type: "string",
|
|
6931
|
-
format,
|
|
6931
|
+
format: format2,
|
|
6932
6932
|
fn: typeof fnOrRegex === "function" ? fnOrRegex : (val) => fnOrRegex.test(val),
|
|
6933
6933
|
...params
|
|
6934
6934
|
};
|
|
@@ -7056,8 +7056,8 @@ function processSchema(schema, ctx, _params = { path: [], schemaPath: [] }) {
|
|
|
7056
7056
|
const _result = ctx.seen.get(schema);
|
|
7057
7057
|
return _result.schema;
|
|
7058
7058
|
}
|
|
7059
|
-
function encodeJSONPointerSegment(
|
|
7060
|
-
return
|
|
7059
|
+
function encodeJSONPointerSegment(segment2) {
|
|
7060
|
+
return segment2.replace(/~/g, "~0").replace(/\//g, "~1");
|
|
7061
7061
|
}
|
|
7062
7062
|
function extractDefs(ctx, schema) {
|
|
7063
7063
|
const root = ctx.seen.get(schema);
|
|
@@ -7555,7 +7555,7 @@ function stringifyKeyNames(bySchema, json2, visited) {
|
|
|
7555
7555
|
const values = json2.enum ?? (json2.const !== void 0 ? [json2.const] : void 0);
|
|
7556
7556
|
if (!numericType && !values?.some((v) => typeof v === "number"))
|
|
7557
7557
|
return json2;
|
|
7558
|
-
const { minimum, maximum, exclusiveMinimum, exclusiveMaximum, multipleOf, format, id, ...rest } = json2;
|
|
7558
|
+
const { minimum, maximum, exclusiveMinimum, exclusiveMaximum, multipleOf, format: format2, id, ...rest } = json2;
|
|
7559
7559
|
if (rest.enum)
|
|
7560
7560
|
rest.enum = rest.enum.map((v) => typeof v === "number" ? String(v) : v);
|
|
7561
7561
|
else if (typeof rest.const === "number")
|
|
@@ -7671,9 +7671,9 @@ var init_json_schema_processors = __esm({
|
|
|
7671
7671
|
intersectMime = (agg, mime) => {
|
|
7672
7672
|
agg.mime = agg.mime ? agg.mime.filter((m) => mime.includes(m)) : [...mime];
|
|
7673
7673
|
};
|
|
7674
|
-
setFormat = (agg,
|
|
7675
|
-
agg.format =
|
|
7676
|
-
if (
|
|
7674
|
+
setFormat = (agg, format2) => {
|
|
7675
|
+
agg.format = format2;
|
|
7676
|
+
if (format2.includes("int"))
|
|
7677
7677
|
agg.isInt = true;
|
|
7678
7678
|
};
|
|
7679
7679
|
minContributor = (agg, def) => narrowMin(agg, "minimum", def.minimum);
|
|
@@ -7723,16 +7723,16 @@ var init_json_schema_processors = __esm({
|
|
|
7723
7723
|
stringProcessor = (schema, ctx, _json, _params) => {
|
|
7724
7724
|
const json2 = _json;
|
|
7725
7725
|
json2.type = "string";
|
|
7726
|
-
const { minimum, maximum, format, patterns, contentEncoding, laxFormat } = aggregateChecks(schema);
|
|
7726
|
+
const { minimum, maximum, format: format2, patterns, contentEncoding, laxFormat } = aggregateChecks(schema);
|
|
7727
7727
|
if (typeof minimum === "number")
|
|
7728
7728
|
json2.minLength = minimum;
|
|
7729
7729
|
if (typeof maximum === "number")
|
|
7730
7730
|
json2.maxLength = maximum;
|
|
7731
|
-
if (
|
|
7732
|
-
json2.format = formatMap[
|
|
7731
|
+
if (format2) {
|
|
7732
|
+
json2.format = formatMap[format2] ?? format2;
|
|
7733
7733
|
if (json2.format === "")
|
|
7734
7734
|
delete json2.format;
|
|
7735
|
-
if (
|
|
7735
|
+
if (format2 === "time" || laxFormat) {
|
|
7736
7736
|
delete json2.format;
|
|
7737
7737
|
}
|
|
7738
7738
|
}
|
|
@@ -8851,8 +8851,8 @@ function iban2(params) {
|
|
|
8851
8851
|
function jwt(params) {
|
|
8852
8852
|
return _jwt(ZodJWT, params);
|
|
8853
8853
|
}
|
|
8854
|
-
function stringFormat(
|
|
8855
|
-
return _stringFormat(ZodCustomStringFormat,
|
|
8854
|
+
function stringFormat(format2, fnOrRegex, _params = {}) {
|
|
8855
|
+
return _stringFormat(ZodCustomStringFormat, format2, fnOrRegex, _params);
|
|
8856
8856
|
}
|
|
8857
8857
|
function hostname2(_params) {
|
|
8858
8858
|
return _stringFormat(ZodCustomStringFormat, "hostname", hostname, _params);
|
|
@@ -8865,11 +8865,11 @@ function currencyCode2(_params) {
|
|
|
8865
8865
|
}
|
|
8866
8866
|
function hash(alg, params) {
|
|
8867
8867
|
const enc = params?.enc ?? "hex";
|
|
8868
|
-
const
|
|
8869
|
-
const regex = regexes_exports[
|
|
8868
|
+
const format2 = `${alg}_${enc}`;
|
|
8869
|
+
const regex = regexes_exports[format2];
|
|
8870
8870
|
if (!regex)
|
|
8871
|
-
throw new Error(`Unrecognized hash format: ${
|
|
8872
|
-
return _stringFormat(ZodCustomStringFormat,
|
|
8871
|
+
throw new Error(`Unrecognized hash format: ${format2}`);
|
|
8872
|
+
return _stringFormat(ZodCustomStringFormat, format2, regex, params);
|
|
8873
8873
|
}
|
|
8874
8874
|
function number2(params) {
|
|
8875
8875
|
return _number(ZodNumber, params);
|
|
@@ -11442,7 +11442,8 @@ var init_types = __esm({
|
|
|
11442
11442
|
secretName: external_exports.string().min(1).optional(),
|
|
11443
11443
|
encoding: external_exports.enum(["hex", "base64"]),
|
|
11444
11444
|
prefix: external_exports.string().optional(),
|
|
11445
|
-
signedPayload: external_exports.enum(webhookSignedPayloadValues).optional()
|
|
11445
|
+
signedPayload: external_exports.enum(webhookSignedPayloadValues).optional(),
|
|
11446
|
+
profile: external_exports.literal("standard-webhooks").optional()
|
|
11446
11447
|
});
|
|
11447
11448
|
packageWebhookUrlSecretVerificationSchema = external_exports.object({
|
|
11448
11449
|
type: external_exports.literal("url-secret")
|
|
@@ -11605,6 +11606,22 @@ var init_types = __esm({
|
|
|
11605
11606
|
challenge: packageWebhookChallengeSchema.optional(),
|
|
11606
11607
|
execution: automationExecutionSchema.optional()
|
|
11607
11608
|
}).superRefine((webhook, ctx) => {
|
|
11609
|
+
const verification = webhook.verification;
|
|
11610
|
+
if (verification?.type !== "url-secret" && verification?.profile === "standard-webhooks") {
|
|
11611
|
+
const replay = webhook.replay;
|
|
11612
|
+
const headers = [
|
|
11613
|
+
verification.header,
|
|
11614
|
+
replay?.timestampHeader,
|
|
11615
|
+
replay?.deliveryIdHeader
|
|
11616
|
+
].map((header) => header?.toLowerCase());
|
|
11617
|
+
if (verification.type !== "hmac-sha256" || verification.encoding !== "base64" || !verification.secretName || verification.prefix !== void 0 || verification.signedPayload !== void 0 || replay?.timestampFormat !== "unix-seconds" || (replay.toleranceSeconds ?? 300) > 300 || headers.includes(void 0) || new Set(headers).size !== 3) {
|
|
11618
|
+
ctx.addIssue({
|
|
11619
|
+
code: "custom",
|
|
11620
|
+
path: ["verification", "profile"],
|
|
11621
|
+
message: "Standard Webhooks requires a saved HMAC-SHA256 key, base64 signatures, distinct signature, delivery ID, and Unix timestamp headers, and a replay tolerance of at most 300 seconds. The profile fixes the signature prefix and payload."
|
|
11622
|
+
});
|
|
11623
|
+
}
|
|
11624
|
+
}
|
|
11608
11625
|
if (webhook.verification?.type !== "url-secret" && webhook.verification?.signedPayload === "timestamp.body" && !webhook.replay?.timestampHeader) {
|
|
11609
11626
|
ctx.addIssue({
|
|
11610
11627
|
code: "custom",
|
|
@@ -12261,13 +12278,13 @@ function createRelativeImportSpecifier(fromPath, targetPath) {
|
|
|
12261
12278
|
}
|
|
12262
12279
|
function normalizeWorkspaceModulePath(path) {
|
|
12263
12280
|
const parts = [];
|
|
12264
|
-
for (const
|
|
12265
|
-
if (!
|
|
12266
|
-
if (
|
|
12281
|
+
for (const segment2 of path.replace(/\\/g, "/").split("/")) {
|
|
12282
|
+
if (!segment2 || segment2 === ".") continue;
|
|
12283
|
+
if (segment2 === "..") {
|
|
12267
12284
|
parts.pop();
|
|
12268
12285
|
continue;
|
|
12269
12286
|
}
|
|
12270
|
-
parts.push(
|
|
12287
|
+
parts.push(segment2);
|
|
12271
12288
|
}
|
|
12272
12289
|
return parts.join("/");
|
|
12273
12290
|
}
|
|
@@ -15995,14 +16012,14 @@ var init_lib = __esm({
|
|
|
15995
16012
|
super.checkParams(node2, false, true);
|
|
15996
16013
|
this.scope.exit();
|
|
15997
16014
|
}
|
|
15998
|
-
forwardNoArrowParamsConversionAt(node2,
|
|
16015
|
+
forwardNoArrowParamsConversionAt(node2, parse10) {
|
|
15999
16016
|
let result;
|
|
16000
16017
|
if (this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(node2.start))) {
|
|
16001
16018
|
this.state.noArrowParamsConversionAt.push(this.state.start);
|
|
16002
|
-
result =
|
|
16019
|
+
result = parse10();
|
|
16003
16020
|
this.state.noArrowParamsConversionAt.pop();
|
|
16004
16021
|
} else {
|
|
16005
|
-
result =
|
|
16022
|
+
result = parse10();
|
|
16006
16023
|
}
|
|
16007
16024
|
return result;
|
|
16008
16025
|
}
|
|
@@ -16678,35 +16695,35 @@ var init_lib = __esm({
|
|
|
16678
16695
|
const endOfInit = () => this.match(8) || this.match(4);
|
|
16679
16696
|
switch (this.state.type) {
|
|
16680
16697
|
case 132: {
|
|
16681
|
-
const
|
|
16698
|
+
const literal4 = this.parseNumericLiteral(this.state.value);
|
|
16682
16699
|
if (endOfInit()) {
|
|
16683
16700
|
return {
|
|
16684
16701
|
type: "number",
|
|
16685
|
-
loc:
|
|
16686
|
-
value:
|
|
16702
|
+
loc: literal4.start,
|
|
16703
|
+
value: literal4
|
|
16687
16704
|
};
|
|
16688
16705
|
}
|
|
16689
16706
|
break;
|
|
16690
16707
|
}
|
|
16691
16708
|
case 131: {
|
|
16692
|
-
const
|
|
16709
|
+
const literal4 = this.parseStringLiteral(this.state.value);
|
|
16693
16710
|
if (endOfInit()) {
|
|
16694
16711
|
return {
|
|
16695
16712
|
type: "string",
|
|
16696
|
-
loc:
|
|
16697
|
-
value:
|
|
16713
|
+
loc: literal4.start,
|
|
16714
|
+
value: literal4
|
|
16698
16715
|
};
|
|
16699
16716
|
}
|
|
16700
16717
|
break;
|
|
16701
16718
|
}
|
|
16702
16719
|
case 81:
|
|
16703
16720
|
case 82: {
|
|
16704
|
-
const
|
|
16721
|
+
const literal4 = this.parseBooleanLiteral(this.match(81));
|
|
16705
16722
|
if (endOfInit()) {
|
|
16706
16723
|
return {
|
|
16707
16724
|
type: "boolean",
|
|
16708
|
-
loc:
|
|
16709
|
-
value:
|
|
16725
|
+
loc: literal4.start,
|
|
16726
|
+
value: literal4
|
|
16710
16727
|
};
|
|
16711
16728
|
}
|
|
16712
16729
|
}
|
|
@@ -19254,11 +19271,11 @@ var init_lib = __esm({
|
|
|
19254
19271
|
stack
|
|
19255
19272
|
} = this;
|
|
19256
19273
|
const scope = stack[stack.length - 1];
|
|
19257
|
-
const
|
|
19274
|
+
const origin2 = node2.start;
|
|
19258
19275
|
if (scope.isCertainlyParameterDeclaration()) {
|
|
19259
|
-
this.parser.raise(error2,
|
|
19276
|
+
this.parser.raise(error2, origin2);
|
|
19260
19277
|
} else if (scope.canBeArrowParameterDeclaration()) {
|
|
19261
|
-
scope.recordDeclarationError(error2,
|
|
19278
|
+
scope.recordDeclarationError(error2, origin2);
|
|
19262
19279
|
} else {
|
|
19263
19280
|
return;
|
|
19264
19281
|
}
|
|
@@ -24244,10 +24261,10 @@ var init_lib = __esm({
|
|
|
24244
24261
|
const quasis = [curElt];
|
|
24245
24262
|
if (curElt.tail) {
|
|
24246
24263
|
const node2 = this.startNodeAt(startLoc);
|
|
24247
|
-
const
|
|
24248
|
-
|
|
24249
|
-
|
|
24250
|
-
node2.literal = this.finishNode(
|
|
24264
|
+
const literal4 = this.startNodeAt(startLoc);
|
|
24265
|
+
literal4.expressions = [];
|
|
24266
|
+
literal4.quasis = quasis;
|
|
24267
|
+
node2.literal = this.finishNode(literal4, "TemplateLiteral");
|
|
24251
24268
|
return this.finishNode(node2, "TSLiteralType");
|
|
24252
24269
|
} else {
|
|
24253
24270
|
const substitutions = [];
|
|
@@ -26680,9 +26697,9 @@ function describeModuleSourceParseError(error2) {
|
|
|
26680
26697
|
message: raw.replace(/\s*\(\d+:\d+\)\s*$/, "")
|
|
26681
26698
|
};
|
|
26682
26699
|
}
|
|
26683
|
-
function createModuleSourceParser(
|
|
26700
|
+
function createModuleSourceParser(parse10) {
|
|
26684
26701
|
function parseModuleSource2(source, options) {
|
|
26685
|
-
return
|
|
26702
|
+
return parse10(source, {
|
|
26686
26703
|
sourceType: "module",
|
|
26687
26704
|
plugins: moduleSourceParserPlugins(options?.filePath),
|
|
26688
26705
|
createImportExpressions: true
|
|
@@ -26694,7 +26711,7 @@ function createModuleSourceParser(parse9) {
|
|
|
26694
26711
|
} catch (error2) {
|
|
26695
26712
|
for (const plugins of fallbackParserPlugins) {
|
|
26696
26713
|
try {
|
|
26697
|
-
return
|
|
26714
|
+
return parse10(source, {
|
|
26698
26715
|
sourceType: "module",
|
|
26699
26716
|
plugins,
|
|
26700
26717
|
createImportExpressions: true
|
|
@@ -26985,16 +27002,16 @@ function collectMemberWriteStarts(parsed) {
|
|
|
26985
27002
|
});
|
|
26986
27003
|
return starts;
|
|
26987
27004
|
}
|
|
26988
|
-
function walkAst(node2,
|
|
27005
|
+
function walkAst(node2, visit4, parent) {
|
|
26989
27006
|
if (!node2 || typeof node2 !== "object") return;
|
|
26990
27007
|
const typed = node2;
|
|
26991
|
-
if (typeof typed.type === "string")
|
|
27008
|
+
if (typeof typed.type === "string") visit4(typed, parent);
|
|
26992
27009
|
for (const value of Object.values(typed)) {
|
|
26993
27010
|
if (Array.isArray(value)) {
|
|
26994
|
-
for (const entry of value) walkAst(entry,
|
|
27011
|
+
for (const entry of value) walkAst(entry, visit4, typed);
|
|
26995
27012
|
continue;
|
|
26996
27013
|
}
|
|
26997
|
-
walkAst(value,
|
|
27014
|
+
walkAst(value, visit4, typed);
|
|
26998
27015
|
}
|
|
26999
27016
|
}
|
|
27000
27017
|
function getBindingIdentifierName(node2) {
|
|
@@ -29516,7 +29533,7 @@ function parseKodyPackageSpecifier(specifier) {
|
|
|
29516
29533
|
if (!trimmed) {
|
|
29517
29534
|
throw unsupportedSpecifierError(specifier);
|
|
29518
29535
|
}
|
|
29519
|
-
const segments = trimmed.split("/").map((
|
|
29536
|
+
const segments = trimmed.split("/").map((segment2) => segment2.trim());
|
|
29520
29537
|
if (segments.length < 2 || segments[0] === "" || segments[1] === "") {
|
|
29521
29538
|
throw unsupportedSpecifierError(specifier);
|
|
29522
29539
|
}
|
|
@@ -31771,9 +31788,9 @@ ${helpers.bindings}`,
|
|
|
31771
31788
|
)
|
|
31772
31789
|
};
|
|
31773
31790
|
}
|
|
31774
|
-
function parseStringLiteral(
|
|
31791
|
+
function parseStringLiteral(literal4) {
|
|
31775
31792
|
try {
|
|
31776
|
-
const value = JSON.parse(
|
|
31793
|
+
const value = JSON.parse(literal4);
|
|
31777
31794
|
return typeof value === "string" ? value : null;
|
|
31778
31795
|
} catch {
|
|
31779
31796
|
return null;
|
|
@@ -32676,8 +32693,8 @@ var require_createActor_25900f76_cjs = __commonJS({
|
|
|
32676
32693
|
return incarnation === void 0 || typeof incarnation === "string";
|
|
32677
32694
|
}
|
|
32678
32695
|
function getAddressId(address) {
|
|
32679
|
-
const
|
|
32680
|
-
return
|
|
32696
|
+
const segment2 = address.slice(address.lastIndexOf("/") + 1);
|
|
32697
|
+
return segment2.includes("%") ? segment2.replaceAll("%2F", "/").replaceAll("%25", "%") : segment2;
|
|
32681
32698
|
}
|
|
32682
32699
|
function createMissingAddressError(target) {
|
|
32683
32700
|
return new Error(xstateError(50, ...target.incarnation === void 0 ? [target.$actor] : [target.$actor, target.incarnation]));
|
|
@@ -36645,24 +36662,24 @@ var require_createActor_25900f76_cjs = __commonJS({
|
|
|
36645
36662
|
return stateId;
|
|
36646
36663
|
}
|
|
36647
36664
|
const result = [];
|
|
36648
|
-
let
|
|
36665
|
+
let segment2 = "";
|
|
36649
36666
|
for (let i4 = 0; i4 < stateId.length; i4++) {
|
|
36650
36667
|
const char = stateId.charCodeAt(i4);
|
|
36651
36668
|
switch (char) {
|
|
36652
36669
|
// \
|
|
36653
36670
|
case 92:
|
|
36654
|
-
|
|
36671
|
+
segment2 += stateId[i4 + 1] === "." ? "\\." : stateId[i4 + 1];
|
|
36655
36672
|
i4++;
|
|
36656
36673
|
continue;
|
|
36657
36674
|
// .
|
|
36658
36675
|
case 46:
|
|
36659
|
-
result.push(
|
|
36660
|
-
|
|
36676
|
+
result.push(segment2);
|
|
36677
|
+
segment2 = "";
|
|
36661
36678
|
continue;
|
|
36662
36679
|
}
|
|
36663
|
-
|
|
36680
|
+
segment2 += stateId[i4];
|
|
36664
36681
|
}
|
|
36665
|
-
result.push(
|
|
36682
|
+
result.push(segment2);
|
|
36666
36683
|
return result;
|
|
36667
36684
|
}
|
|
36668
36685
|
function toStateValue(stateValue) {
|
|
@@ -40455,7 +40472,7 @@ var require_xstate_cjs = __commonJS({
|
|
|
40455
40472
|
function getMachineSerializationDiagnostics2(machine) {
|
|
40456
40473
|
const diagnostics = [];
|
|
40457
40474
|
const ancestors = /* @__PURE__ */ new Set();
|
|
40458
|
-
const
|
|
40475
|
+
const visit4 = (value, path, runtimeSource = false) => {
|
|
40459
40476
|
const report = (code2, message) => diagnostics.push({
|
|
40460
40477
|
code: code2,
|
|
40461
40478
|
path,
|
|
@@ -40499,11 +40516,11 @@ var require_xstate_cjs = __commonJS({
|
|
|
40499
40516
|
for (const [key, entry] of Object.entries(value)) {
|
|
40500
40517
|
const pointer = `${path}/${key.replaceAll("~", "~0").replaceAll("/", "~1")}`;
|
|
40501
40518
|
const sourceEntry = /^\/(actions|guards|actors|delays)$/.test(path);
|
|
40502
|
-
|
|
40519
|
+
visit4(entry, pointer, sourceEntry);
|
|
40503
40520
|
}
|
|
40504
40521
|
ancestors.delete(value);
|
|
40505
40522
|
};
|
|
40506
|
-
|
|
40523
|
+
visit4(machine._json ?? machine.config, "");
|
|
40507
40524
|
return diagnostics;
|
|
40508
40525
|
}
|
|
40509
40526
|
function machineToJSON2(machine) {
|
|
@@ -42101,13 +42118,13 @@ var require_xstate_cjs = __commonJS({
|
|
|
42101
42118
|
for (const [name, child] of Object.entries(machine.sources?.actors ?? {})) {
|
|
42102
42119
|
add(`${key}/actors/${createActor2.encodeAddressSegment(name)}`, child);
|
|
42103
42120
|
}
|
|
42104
|
-
function
|
|
42121
|
+
function visit4(node2) {
|
|
42105
42122
|
for (const invoke of node2.invoke ?? []) {
|
|
42106
42123
|
if (typeof invoke.logic === "object") add(`${key}/invoke/${createActor2.encodeAddressSegment(node2.id)}/${createActor2.encodeAddressSegment(invoke.id)}`, invoke.logic);
|
|
42107
42124
|
}
|
|
42108
|
-
for (const child of Object.values(node2.states ?? {}))
|
|
42125
|
+
for (const child of Object.values(node2.states ?? {})) visit4(child);
|
|
42109
42126
|
}
|
|
42110
|
-
if (machine.root)
|
|
42127
|
+
if (machine.root) visit4(machine.root);
|
|
42111
42128
|
}
|
|
42112
42129
|
add("root", systemLogic.root);
|
|
42113
42130
|
for (const [key, logic] of Object.entries(systemLogic.actors ?? {})) add(`actors/${createActor2.encodeAddressSegment(key)}`, logic);
|
|
@@ -42937,7 +42954,7 @@ function defineStatusEnum(definition) {
|
|
|
42937
42954
|
function is(value) {
|
|
42938
42955
|
return typeof value === "string" && values.includes(value);
|
|
42939
42956
|
}
|
|
42940
|
-
function
|
|
42957
|
+
function parse10(value) {
|
|
42941
42958
|
if (!is(value))
|
|
42942
42959
|
throw new Error(
|
|
42943
42960
|
`${name}: expected one of ${values.join(", ")}, got ${String(value)}`
|
|
@@ -42949,8 +42966,8 @@ function defineStatusEnum(definition) {
|
|
|
42949
42966
|
description,
|
|
42950
42967
|
values,
|
|
42951
42968
|
is,
|
|
42952
|
-
parse:
|
|
42953
|
-
sql: (selected) => sqlStateValues(name, selected.map(
|
|
42969
|
+
parse: parse10,
|
|
42970
|
+
sql: (selected) => sqlStateValues(name, selected.map(parse10))
|
|
42954
42971
|
});
|
|
42955
42972
|
}
|
|
42956
42973
|
var IllegalStateTransitionError;
|
|
@@ -46030,7 +46047,7 @@ var require_constants = __commonJS({
|
|
|
46030
46047
|
"use strict";
|
|
46031
46048
|
var SEMVER_SPEC_VERSION = "2.0.0";
|
|
46032
46049
|
var MAX_LENGTH = 256;
|
|
46033
|
-
var
|
|
46050
|
+
var MAX_SAFE_INTEGER2 = Number.MAX_SAFE_INTEGER || /* istanbul ignore next */
|
|
46034
46051
|
9007199254740991;
|
|
46035
46052
|
var MAX_SAFE_COMPONENT_LENGTH = 16;
|
|
46036
46053
|
var MAX_SAFE_BUILD_LENGTH = MAX_LENGTH - 6;
|
|
@@ -46047,7 +46064,7 @@ var require_constants = __commonJS({
|
|
|
46047
46064
|
MAX_LENGTH,
|
|
46048
46065
|
MAX_SAFE_COMPONENT_LENGTH,
|
|
46049
46066
|
MAX_SAFE_BUILD_LENGTH,
|
|
46050
|
-
MAX_SAFE_INTEGER,
|
|
46067
|
+
MAX_SAFE_INTEGER: MAX_SAFE_INTEGER2,
|
|
46051
46068
|
RELEASE_TYPES,
|
|
46052
46069
|
SEMVER_SPEC_VERSION,
|
|
46053
46070
|
FLAG_INCLUDE_PRERELEASE: 1,
|
|
@@ -46203,7 +46220,7 @@ var require_semver = __commonJS({
|
|
|
46203
46220
|
"../../node_modules/semver/classes/semver.js"(exports, module) {
|
|
46204
46221
|
"use strict";
|
|
46205
46222
|
var debug = require_debug();
|
|
46206
|
-
var { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants();
|
|
46223
|
+
var { MAX_LENGTH, MAX_SAFE_INTEGER: MAX_SAFE_INTEGER2 } = require_constants();
|
|
46207
46224
|
var { safeRe: re, t: t4 } = require_re();
|
|
46208
46225
|
var parseOptions = require_parse_options();
|
|
46209
46226
|
var { compareIdentifiers } = require_identifiers();
|
|
@@ -46248,13 +46265,13 @@ var require_semver = __commonJS({
|
|
|
46248
46265
|
this.major = +m[1];
|
|
46249
46266
|
this.minor = +m[2];
|
|
46250
46267
|
this.patch = +m[3];
|
|
46251
|
-
if (this.major >
|
|
46268
|
+
if (this.major > MAX_SAFE_INTEGER2 || this.major < 0) {
|
|
46252
46269
|
throw new TypeError("Invalid major version");
|
|
46253
46270
|
}
|
|
46254
|
-
if (this.minor >
|
|
46271
|
+
if (this.minor > MAX_SAFE_INTEGER2 || this.minor < 0) {
|
|
46255
46272
|
throw new TypeError("Invalid minor version");
|
|
46256
46273
|
}
|
|
46257
|
-
if (this.patch >
|
|
46274
|
+
if (this.patch > MAX_SAFE_INTEGER2 || this.patch < 0) {
|
|
46258
46275
|
throw new TypeError("Invalid patch version");
|
|
46259
46276
|
}
|
|
46260
46277
|
if (!m[4]) {
|
|
@@ -46263,7 +46280,7 @@ var require_semver = __commonJS({
|
|
|
46263
46280
|
this.prerelease = m[4].split(".").map((id) => {
|
|
46264
46281
|
if (/^[0-9]+$/.test(id)) {
|
|
46265
46282
|
const num = +id;
|
|
46266
|
-
if (num >= 0 && num <
|
|
46283
|
+
if (num >= 0 && num < MAX_SAFE_INTEGER2) {
|
|
46267
46284
|
return num;
|
|
46268
46285
|
}
|
|
46269
46286
|
}
|
|
@@ -46495,7 +46512,7 @@ var require_parse = __commonJS({
|
|
|
46495
46512
|
"../../node_modules/semver/functions/parse.js"(exports, module) {
|
|
46496
46513
|
"use strict";
|
|
46497
46514
|
var SemVer = require_semver();
|
|
46498
|
-
var
|
|
46515
|
+
var parse10 = (version2, options, throwErrors = false) => {
|
|
46499
46516
|
if (version2 instanceof SemVer) {
|
|
46500
46517
|
return version2;
|
|
46501
46518
|
}
|
|
@@ -46508,7 +46525,7 @@ var require_parse = __commonJS({
|
|
|
46508
46525
|
throw er;
|
|
46509
46526
|
}
|
|
46510
46527
|
};
|
|
46511
|
-
module.exports =
|
|
46528
|
+
module.exports = parse10;
|
|
46512
46529
|
}
|
|
46513
46530
|
});
|
|
46514
46531
|
|
|
@@ -46516,9 +46533,9 @@ var require_parse = __commonJS({
|
|
|
46516
46533
|
var require_valid = __commonJS({
|
|
46517
46534
|
"../../node_modules/semver/functions/valid.js"(exports, module) {
|
|
46518
46535
|
"use strict";
|
|
46519
|
-
var
|
|
46536
|
+
var parse10 = require_parse();
|
|
46520
46537
|
var valid = (version2, options) => {
|
|
46521
|
-
const v =
|
|
46538
|
+
const v = parse10(version2, options);
|
|
46522
46539
|
return v ? v.version : null;
|
|
46523
46540
|
};
|
|
46524
46541
|
module.exports = valid;
|
|
@@ -46529,9 +46546,9 @@ var require_valid = __commonJS({
|
|
|
46529
46546
|
var require_clean = __commonJS({
|
|
46530
46547
|
"../../node_modules/semver/functions/clean.js"(exports, module) {
|
|
46531
46548
|
"use strict";
|
|
46532
|
-
var
|
|
46549
|
+
var parse10 = require_parse();
|
|
46533
46550
|
var clean = (version2, options) => {
|
|
46534
|
-
const s3 =
|
|
46551
|
+
const s3 = parse10(version2.trim().replace(/^[=v]+/, ""), options);
|
|
46535
46552
|
return s3 ? s3.version : null;
|
|
46536
46553
|
};
|
|
46537
46554
|
module.exports = clean;
|
|
@@ -46566,10 +46583,10 @@ var require_inc = __commonJS({
|
|
|
46566
46583
|
var require_diff = __commonJS({
|
|
46567
46584
|
"../../node_modules/semver/functions/diff.js"(exports, module) {
|
|
46568
46585
|
"use strict";
|
|
46569
|
-
var
|
|
46586
|
+
var parse10 = require_parse();
|
|
46570
46587
|
var diff = (version1, version2) => {
|
|
46571
|
-
const v1 =
|
|
46572
|
-
const v2 =
|
|
46588
|
+
const v1 = parse10(version1, null, true);
|
|
46589
|
+
const v2 = parse10(version2, null, true);
|
|
46573
46590
|
const comparison = v1.compare(v2);
|
|
46574
46591
|
if (comparison === 0) {
|
|
46575
46592
|
return null;
|
|
@@ -46640,9 +46657,9 @@ var require_patch = __commonJS({
|
|
|
46640
46657
|
var require_prerelease = __commonJS({
|
|
46641
46658
|
"../../node_modules/semver/functions/prerelease.js"(exports, module) {
|
|
46642
46659
|
"use strict";
|
|
46643
|
-
var
|
|
46660
|
+
var parse10 = require_parse();
|
|
46644
46661
|
var prerelease = (version2, options) => {
|
|
46645
|
-
const parsed =
|
|
46662
|
+
const parsed = parse10(version2, options);
|
|
46646
46663
|
return parsed && parsed.prerelease.length ? parsed.prerelease : null;
|
|
46647
46664
|
};
|
|
46648
46665
|
module.exports = prerelease;
|
|
@@ -46828,7 +46845,7 @@ var require_coerce = __commonJS({
|
|
|
46828
46845
|
"../../node_modules/semver/functions/coerce.js"(exports, module) {
|
|
46829
46846
|
"use strict";
|
|
46830
46847
|
var SemVer = require_semver();
|
|
46831
|
-
var
|
|
46848
|
+
var parse10 = require_parse();
|
|
46832
46849
|
var { safeRe: re, t: t4 } = require_re();
|
|
46833
46850
|
var coerce = (version2, options) => {
|
|
46834
46851
|
if (version2 instanceof SemVer) {
|
|
@@ -46863,7 +46880,7 @@ var require_coerce = __commonJS({
|
|
|
46863
46880
|
const patch = match2[4] || "0";
|
|
46864
46881
|
const prerelease = options.includePrerelease && match2[5] ? `-${match2[5]}` : "";
|
|
46865
46882
|
const build2 = options.includePrerelease && match2[6] ? `+${match2[6]}` : "";
|
|
46866
|
-
return
|
|
46883
|
+
return parse10(`${major}.${minor}.${patch}${prerelease}${build2}`, options);
|
|
46867
46884
|
};
|
|
46868
46885
|
module.exports = coerce;
|
|
46869
46886
|
}
|
|
@@ -46873,7 +46890,7 @@ var require_coerce = __commonJS({
|
|
|
46873
46890
|
var require_truncate = __commonJS({
|
|
46874
46891
|
"../../node_modules/semver/functions/truncate.js"(exports, module) {
|
|
46875
46892
|
"use strict";
|
|
46876
|
-
var
|
|
46893
|
+
var parse10 = require_parse();
|
|
46877
46894
|
var constants = require_constants();
|
|
46878
46895
|
var SemVer = require_semver();
|
|
46879
46896
|
var truncate = (version2, truncation, options) => {
|
|
@@ -46885,7 +46902,7 @@ var require_truncate = __commonJS({
|
|
|
46885
46902
|
};
|
|
46886
46903
|
var cloneInputVersion = (version2, options) => {
|
|
46887
46904
|
const versionStringToParse = version2 instanceof SemVer ? version2.version : version2;
|
|
46888
|
-
return
|
|
46905
|
+
return parse10(versionStringToParse, options);
|
|
46889
46906
|
};
|
|
46890
46907
|
var doTruncation = (version2, truncation) => {
|
|
46891
46908
|
if (isPrerelease(truncation)) {
|
|
@@ -47929,7 +47946,7 @@ var require_semver2 = __commonJS({
|
|
|
47929
47946
|
var constants = require_constants();
|
|
47930
47947
|
var SemVer = require_semver();
|
|
47931
47948
|
var identifiers = require_identifiers();
|
|
47932
|
-
var
|
|
47949
|
+
var parse10 = require_parse();
|
|
47933
47950
|
var valid = require_valid();
|
|
47934
47951
|
var clean = require_clean();
|
|
47935
47952
|
var inc = require_inc();
|
|
@@ -47968,7 +47985,7 @@ var require_semver2 = __commonJS({
|
|
|
47968
47985
|
var simplifyRange = require_simplify();
|
|
47969
47986
|
var subset = require_subset();
|
|
47970
47987
|
module.exports = {
|
|
47971
|
-
parse:
|
|
47988
|
+
parse: parse10,
|
|
47972
47989
|
valid,
|
|
47973
47990
|
clean,
|
|
47974
47991
|
inc,
|
|
@@ -48242,7 +48259,7 @@ function selectLatestCompatibleWheel(files) {
|
|
|
48242
48259
|
return latest;
|
|
48243
48260
|
}
|
|
48244
48261
|
function comparePythonVersions(a2, b3) {
|
|
48245
|
-
const
|
|
48262
|
+
const parse10 = (v) => {
|
|
48246
48263
|
const releaseMatch = v.match(/^[0-9]+(?:\.[0-9]+)*/);
|
|
48247
48264
|
const release = (releaseMatch?.[0] ?? "0").split(".").map(Number);
|
|
48248
48265
|
const rest = v.slice(releaseMatch?.[0].length ?? 0);
|
|
@@ -48251,8 +48268,8 @@ function comparePythonVersions(a2, b3) {
|
|
|
48251
48268
|
isPre: /^[.\-_]?(a|b|c|rc|alpha|beta|dev|pre)/i.test(rest)
|
|
48252
48269
|
};
|
|
48253
48270
|
};
|
|
48254
|
-
const av =
|
|
48255
|
-
const bv =
|
|
48271
|
+
const av = parse10(a2);
|
|
48272
|
+
const bv = parse10(b3);
|
|
48256
48273
|
const len = Math.max(av.release.length, bv.release.length);
|
|
48257
48274
|
for (let i4 = 0; i4 < len; i4++) {
|
|
48258
48275
|
const diff = (av.release[i4] ?? 0) - (bv.release[i4] ?? 0);
|
|
@@ -48567,7 +48584,7 @@ var require_browser = __commonJS({
|
|
|
48567
48584
|
});
|
|
48568
48585
|
module2.exports = __toCommonJS(browser_exports);
|
|
48569
48586
|
function encodePacket(packet) {
|
|
48570
|
-
let
|
|
48587
|
+
let visit4 = (value) => {
|
|
48571
48588
|
if (value === null) {
|
|
48572
48589
|
bb.write8(0);
|
|
48573
48590
|
} else if (typeof value === "boolean") {
|
|
@@ -48586,7 +48603,7 @@ var require_browser = __commonJS({
|
|
|
48586
48603
|
bb.write8(5);
|
|
48587
48604
|
bb.write32(value.length);
|
|
48588
48605
|
for (let item of value) {
|
|
48589
|
-
|
|
48606
|
+
visit4(item);
|
|
48590
48607
|
}
|
|
48591
48608
|
} else {
|
|
48592
48609
|
let keys = Object.keys(value);
|
|
@@ -48594,19 +48611,19 @@ var require_browser = __commonJS({
|
|
|
48594
48611
|
bb.write32(keys.length);
|
|
48595
48612
|
for (let key of keys) {
|
|
48596
48613
|
bb.write(encodeUTF8(key));
|
|
48597
|
-
|
|
48614
|
+
visit4(value[key]);
|
|
48598
48615
|
}
|
|
48599
48616
|
}
|
|
48600
48617
|
};
|
|
48601
48618
|
let bb = new ByteBuffer();
|
|
48602
48619
|
bb.write32(0);
|
|
48603
48620
|
bb.write32(packet.id << 1 | +!packet.isRequest);
|
|
48604
|
-
|
|
48621
|
+
visit4(packet.value);
|
|
48605
48622
|
writeUInt32LE(bb.buf, bb.len - 4, 0);
|
|
48606
48623
|
return bb.buf.subarray(0, bb.len);
|
|
48607
48624
|
}
|
|
48608
48625
|
function decodePacket(bytes) {
|
|
48609
|
-
let
|
|
48626
|
+
let visit4 = () => {
|
|
48610
48627
|
switch (bb.read8()) {
|
|
48611
48628
|
case 0:
|
|
48612
48629
|
return null;
|
|
@@ -48622,7 +48639,7 @@ var require_browser = __commonJS({
|
|
|
48622
48639
|
let count = bb.read32();
|
|
48623
48640
|
let value2 = [];
|
|
48624
48641
|
for (let i4 = 0; i4 < count; i4++) {
|
|
48625
|
-
value2.push(
|
|
48642
|
+
value2.push(visit4());
|
|
48626
48643
|
}
|
|
48627
48644
|
return value2;
|
|
48628
48645
|
}
|
|
@@ -48630,7 +48647,7 @@ var require_browser = __commonJS({
|
|
|
48630
48647
|
let count = bb.read32();
|
|
48631
48648
|
let value2 = {};
|
|
48632
48649
|
for (let i4 = 0; i4 < count; i4++) {
|
|
48633
|
-
value2[decodeUTF8(bb.read())] =
|
|
48650
|
+
value2[decodeUTF8(bb.read())] = visit4();
|
|
48634
48651
|
}
|
|
48635
48652
|
return value2;
|
|
48636
48653
|
}
|
|
@@ -48642,7 +48659,7 @@ var require_browser = __commonJS({
|
|
|
48642
48659
|
let id = bb.read32();
|
|
48643
48660
|
let isRequest = (id & 1) === 0;
|
|
48644
48661
|
id >>>= 1;
|
|
48645
|
-
let value =
|
|
48662
|
+
let value = visit4();
|
|
48646
48663
|
if (bb.ptr !== bytes.length) {
|
|
48647
48664
|
throw new Error("Invalid packet");
|
|
48648
48665
|
}
|
|
@@ -49103,7 +49120,7 @@ is not a problem with esbuild. You need to fix your environment instead.
|
|
|
49103
49120
|
let sourceRoot = getFlag(options, keys, "sourceRoot", mustBeString);
|
|
49104
49121
|
let sourcesContent = getFlag(options, keys, "sourcesContent", mustBeBoolean);
|
|
49105
49122
|
let target = getFlag(options, keys, "target", mustBeStringOrArrayOfStrings);
|
|
49106
|
-
let
|
|
49123
|
+
let format2 = getFlag(options, keys, "format", mustBeString);
|
|
49107
49124
|
let globalName = getFlag(options, keys, "globalName", mustBeString);
|
|
49108
49125
|
let mangleProps = getFlag(options, keys, "mangleProps", mustBeRegExp);
|
|
49109
49126
|
let reserveProps = getFlag(options, keys, "reserveProps", mustBeRegExp);
|
|
@@ -49136,7 +49153,7 @@ is not a problem with esbuild. You need to fix your environment instead.
|
|
|
49136
49153
|
if (sourceRoot !== void 0) flags.push(`--source-root=${sourceRoot}`);
|
|
49137
49154
|
if (sourcesContent !== void 0) flags.push(`--sources-content=${sourcesContent}`);
|
|
49138
49155
|
if (target) flags.push(`--target=${validateAndJoinStringArray(Array.isArray(target) ? target : [target], "target")}`);
|
|
49139
|
-
if (
|
|
49156
|
+
if (format2) flags.push(`--format=${format2}`);
|
|
49140
49157
|
if (globalName) flags.push(`--global-name=${globalName}`);
|
|
49141
49158
|
if (platform) flags.push(`--platform=${platform}`);
|
|
49142
49159
|
if (tsconfigRaw) flags.push(`--tsconfig-raw=${typeof tsconfigRaw === "string" ? tsconfigRaw : JSON.stringify(tsconfigRaw)}`);
|
|
@@ -49819,10 +49836,10 @@ is not a problem with esbuild. You need to fix your environment instead.
|
|
|
49819
49836
|
if (fallback !== void 0) request2.fallback = fallback;
|
|
49820
49837
|
if (cors) {
|
|
49821
49838
|
const corsKeys = {};
|
|
49822
|
-
const
|
|
49839
|
+
const origin2 = getFlag(cors, corsKeys, "origin", mustBeStringOrArrayOfStrings);
|
|
49823
49840
|
checkForInvalidFlags(cors, corsKeys, `on "cors" object`);
|
|
49824
|
-
if (Array.isArray(
|
|
49825
|
-
else if (
|
|
49841
|
+
if (Array.isArray(origin2)) request2.corsOrigin = origin2;
|
|
49842
|
+
else if (origin2 !== void 0) request2.corsOrigin = [origin2];
|
|
49826
49843
|
}
|
|
49827
49844
|
sendRequest(refs, request2, (error22, response2) => {
|
|
49828
49845
|
if (error22) return reject(new Error(error22));
|
|
@@ -66426,20 +66443,20 @@ function encode3(decoded) {
|
|
|
66426
66443
|
if (line.length === 0) continue;
|
|
66427
66444
|
let genColumn = 0;
|
|
66428
66445
|
for (let j = 0; j < line.length; j++) {
|
|
66429
|
-
const
|
|
66446
|
+
const segment2 = line[j];
|
|
66430
66447
|
if (j > 0) writer.write(comma);
|
|
66431
|
-
encodeInteger(writer, encodeSign(
|
|
66432
|
-
genColumn =
|
|
66433
|
-
if (
|
|
66434
|
-
encodeInteger(writer, encodeSign(
|
|
66435
|
-
encodeInteger(writer, encodeSign(
|
|
66436
|
-
encodeInteger(writer, encodeSign(
|
|
66437
|
-
sourcesIndex =
|
|
66438
|
-
sourceLine =
|
|
66439
|
-
sourceColumn =
|
|
66440
|
-
if (
|
|
66441
|
-
encodeInteger(writer, encodeSign(
|
|
66442
|
-
namesIndex =
|
|
66448
|
+
encodeInteger(writer, encodeSign(segment2[0] - genColumn));
|
|
66449
|
+
genColumn = segment2[0];
|
|
66450
|
+
if (segment2.length === 1) continue;
|
|
66451
|
+
encodeInteger(writer, encodeSign(segment2[1] - sourcesIndex));
|
|
66452
|
+
encodeInteger(writer, encodeSign(segment2[2] - sourceLine));
|
|
66453
|
+
encodeInteger(writer, encodeSign(segment2[3] - sourceColumn));
|
|
66454
|
+
sourcesIndex = segment2[1];
|
|
66455
|
+
sourceLine = segment2[2];
|
|
66456
|
+
sourceColumn = segment2[3];
|
|
66457
|
+
if (segment2.length === 4) continue;
|
|
66458
|
+
encodeInteger(writer, encodeSign(segment2[4] - namesIndex));
|
|
66459
|
+
namesIndex = segment2[4];
|
|
66443
66460
|
}
|
|
66444
66461
|
}
|
|
66445
66462
|
return writer.flush();
|
|
@@ -76613,20 +76630,20 @@ function attachCustomHeaders(request, response, config2) {
|
|
|
76613
76630
|
return response;
|
|
76614
76631
|
}
|
|
76615
76632
|
function decodePath(pathname) {
|
|
76616
|
-
return pathname.split("/").map((
|
|
76633
|
+
return pathname.split("/").map((segment2) => {
|
|
76617
76634
|
try {
|
|
76618
|
-
return decodeURIComponent(
|
|
76635
|
+
return decodeURIComponent(segment2);
|
|
76619
76636
|
} catch {
|
|
76620
|
-
return
|
|
76637
|
+
return segment2;
|
|
76621
76638
|
}
|
|
76622
76639
|
}).join("/").replaceAll(/\/+/g, "/");
|
|
76623
76640
|
}
|
|
76624
76641
|
function encodePath(pathname) {
|
|
76625
|
-
return pathname.split("/").map((
|
|
76642
|
+
return pathname.split("/").map((segment2) => {
|
|
76626
76643
|
try {
|
|
76627
|
-
return encodeURIComponent(
|
|
76644
|
+
return encodeURIComponent(segment2);
|
|
76628
76645
|
} catch {
|
|
76629
|
-
return
|
|
76646
|
+
return segment2;
|
|
76630
76647
|
}
|
|
76631
76648
|
}).join("/");
|
|
76632
76649
|
}
|
|
@@ -79468,7 +79485,7 @@ var init_typescript2 = __esm({
|
|
|
79468
79485
|
rangeOverlapsWithStartEnd: () => TP,
|
|
79469
79486
|
rangeStartIsOnSameLineAsRangeEnd: () => See,
|
|
79470
79487
|
rangeStartPositionsAreOnSameLine: () => q5,
|
|
79471
|
-
readBuilderProgram: () =>
|
|
79488
|
+
readBuilderProgram: () => _92,
|
|
79472
79489
|
readConfigFile: () => aA,
|
|
79473
79490
|
readJson: () => KC,
|
|
79474
79491
|
readJsonConfigFile: () => Xre,
|
|
@@ -119776,7 +119793,7 @@ ${It.join(`
|
|
|
119776
119793
|
y = wa(a10, x10, r7.symbol);
|
|
119777
119794
|
} else {
|
|
119778
119795
|
let x10 = r7.propertyName || r7.name, A = Mh(x10);
|
|
119779
|
-
y = Vg(r7,
|
|
119796
|
+
y = Vg(r7, gf2(a10, A, d, x10));
|
|
119780
119797
|
}
|
|
119781
119798
|
else {
|
|
119782
119799
|
let x10 = Q0(65 | (r7.dotDotDotToken ? 0 : 128), a10, Ze, f10), A = f10.elements.indexOf(r7);
|
|
@@ -120422,7 +120439,7 @@ ${It.join(`
|
|
|
120422
120439
|
return r7.resolvedBaseTypes;
|
|
120423
120440
|
}
|
|
120424
120441
|
function Det(r7) {
|
|
120425
|
-
return pu(Xn(Uc(r7.typeParameters, (l10, f10) => r7.elementFlags[f10] & 8 ?
|
|
120442
|
+
return pu(Xn(Uc(r7.typeParameters, (l10, f10) => r7.elementFlags[f10] & 8 ? gf2(l10, Ge) : l10) || qe), r7.readonly);
|
|
120426
120443
|
}
|
|
120427
120444
|
function Pet(r7) {
|
|
120428
120445
|
r7.resolvedBaseTypes = cB;
|
|
@@ -122589,7 +122606,7 @@ ${It.join(`
|
|
|
122589
122606
|
else We(dt, jt, (y = r7.labeledElementDeclarations) == null ? void 0 : y[lt]);
|
|
122590
122607
|
}
|
|
122591
122608
|
for (let lt = 0; lt < U; lt++) A[lt] & 2 && (A[lt] = 1);
|
|
122592
|
-
X >= 0 && X < ge && (x10[X] = Xn(Uc(x10.slice(X, ge + 1), (lt, dt) => A[X + dt] & 8 ?
|
|
122609
|
+
X >= 0 && X < ge && (x10[X] = Xn(Uc(x10.slice(X, ge + 1), (lt, dt) => A[X + dt] & 8 ? gf2(lt, Ge) : lt)), x10.splice(X + 1, ge - X), A.splice(X + 1, ge - X), J.splice(X + 1, ge - X));
|
|
122593
122610
|
let fe = ppe(A, r7.readonly, J);
|
|
122594
122611
|
return fe === Ys ? yi : A.length ? Lh(fe, x10) : fe;
|
|
122595
122612
|
function We(lt, dt, jt) {
|
|
@@ -123251,13 +123268,13 @@ ${It.join(`
|
|
|
123251
123268
|
}
|
|
123252
123269
|
function CNe(r7, a10, l10) {
|
|
123253
123270
|
if (r7.flags & 134217728 || r7.flags & 268435456 && !Tpe(r7)) {
|
|
123254
|
-
let f10 = dr(r7.types, (d) => Rh(
|
|
123271
|
+
let f10 = dr(r7.types, (d) => Rh(gf2(d, a10), l10));
|
|
123255
123272
|
return r7.flags & 268435456 || l10 ? ra(f10) : Xn(f10);
|
|
123256
123273
|
}
|
|
123257
123274
|
}
|
|
123258
123275
|
function Urt(r7, a10, l10) {
|
|
123259
123276
|
if (a10.flags & 134217728) {
|
|
123260
|
-
let f10 = dr(a10.types, (d) => Rh(
|
|
123277
|
+
let f10 = dr(a10.types, (d) => Rh(gf2(r7, d), l10));
|
|
123261
123278
|
return l10 ? ra(f10) : Xn(f10);
|
|
123262
123279
|
}
|
|
123263
123280
|
}
|
|
@@ -123302,7 +123319,7 @@ ${It.join(`
|
|
|
123302
123319
|
let l10 = eu(a10);
|
|
123303
123320
|
return !!l10 && ct(qa(r7), (f10) => !!(f10.flags & 16777216) && Ns(iC(f10, 19456), l10));
|
|
123304
123321
|
}
|
|
123305
|
-
function
|
|
123322
|
+
function gf2(r7, a10, l10 = 0, f10, d, y) {
|
|
123306
123323
|
return m1(r7, a10, l10, f10, d, y) || (f10 ? et2 : W);
|
|
123307
123324
|
}
|
|
123308
123325
|
function DNe(r7, a10) {
|
|
@@ -123341,7 +123358,7 @@ ${It.join(`
|
|
|
123341
123358
|
let a10 = Dn(r7);
|
|
123342
123359
|
if (!a10.resolvedType) {
|
|
123343
123360
|
let l10 = Ci(r7.objectType), f10 = Ci(r7.indexType), d = aC(r7);
|
|
123344
|
-
a10.resolvedType =
|
|
123361
|
+
a10.resolvedType = gf2(l10, f10, 0, r7, d, J6(d));
|
|
123345
123362
|
}
|
|
123346
123363
|
return a10.resolvedType;
|
|
123347
123364
|
}
|
|
@@ -123354,7 +123371,7 @@ ${It.join(`
|
|
|
123354
123371
|
return a10.resolvedType;
|
|
123355
123372
|
}
|
|
123356
123373
|
function jh(r7) {
|
|
123357
|
-
return r7.flags & 16777216 ? jh(r7.baseType) : r7.flags & 33554432 && (r7.objectType.flags & 16777216 || r7.indexType.flags & 16777216) ?
|
|
123374
|
+
return r7.flags & 16777216 ? jh(r7.baseType) : r7.flags & 33554432 && (r7.objectType.flags & 16777216 || r7.indexType.flags & 16777216) ? gf2(jh(r7.objectType), jh(r7.indexType)) : r7;
|
|
123358
123375
|
}
|
|
123359
123376
|
function wNe(r7) {
|
|
123360
123377
|
return $x(r7) && kr(r7.elements) > 0 && !ct(r7.elements, (a10) => LF(a10) || MF(a10) || lE(a10) && !!(a10.questionToken || a10.dotDotDotToken));
|
|
@@ -124051,7 +124068,7 @@ ${It.join(`
|
|
|
124051
124068
|
if (d & 8388608) return sC(r7.symbol, Mi(r7.type, a10));
|
|
124052
124069
|
if (d & 33554432) {
|
|
124053
124070
|
let y = l10 || r7.aliasSymbol, x10 = l10 ? f10 : Bh(r7.aliasTypeArguments, a10);
|
|
124054
|
-
return
|
|
124071
|
+
return gf2(Mi(r7.objectType, a10), Mi(r7.indexType, a10), r7.accessFlags, void 0, y, x10);
|
|
124055
124072
|
}
|
|
124056
124073
|
if (d & 67108864) return Rpe(r7, Qv(r7.mapper, a10), false, l10, f10);
|
|
124057
124074
|
if (d & 16777216) {
|
|
@@ -124348,7 +124365,7 @@ ${It.join(`
|
|
|
124348
124365
|
function xnt(r7, a10, l10, f10, d, y) {
|
|
124349
124366
|
let x10 = EM(Snt(r7), a10, l10, f10, d, y), A;
|
|
124350
124367
|
if (Td(r7.parent) && cm(r7.parent.parent)) {
|
|
124351
|
-
let U = r7.parent.parent, X = $M(jT(r7)), ge = X === void 0 ? "children" : mi(X), fe = R_(ge), We =
|
|
124368
|
+
let U = r7.parent.parent, X = $M(jT(r7)), ge = X === void 0 ? "children" : mi(X), fe = R_(ge), We = gf2(l10, fe), lt = XC(U.children);
|
|
124352
124369
|
if (!kr(lt)) return x10;
|
|
124353
124370
|
let dt = kr(lt) > 1, jt, ir;
|
|
124354
124371
|
if (hM(false) !== Ys) {
|
|
@@ -124359,7 +124376,7 @@ ${It.join(`
|
|
|
124359
124376
|
if (jt !== qt) {
|
|
124360
124377
|
let Yr = ng(lX(U, 0));
|
|
124361
124378
|
x10 = bnt(Tnt(U, J), Yr, jt, f10, d, y) || x10;
|
|
124362
|
-
} else if (!Am(
|
|
124379
|
+
} else if (!Am(gf2(a10, fe), We, f10)) {
|
|
124363
124380
|
x10 = true;
|
|
124364
124381
|
let Yr = ze(U.openingElement.tagName, p.This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided, ge, Xr(We));
|
|
124365
124382
|
y && y.skipLogging && (y.errors || (y.errors = [])).push(Yr);
|
|
@@ -124369,7 +124386,7 @@ ${It.join(`
|
|
|
124369
124386
|
ar && (x10 = EM((function* () {
|
|
124370
124387
|
yield ar;
|
|
124371
124388
|
})(), a10, l10, f10, d, y) || x10);
|
|
124372
|
-
} else if (!Am(
|
|
124389
|
+
} else if (!Am(gf2(a10, fe), We, f10)) {
|
|
124373
124390
|
x10 = true;
|
|
124374
124391
|
let Yr = ze(U.openingElement.tagName, p.This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided, ge, Xr(We));
|
|
124375
124392
|
y && y.skipLogging && (y.errors || (y.errors = [])).push(Yr);
|
|
@@ -124378,7 +124395,7 @@ ${It.join(`
|
|
|
124378
124395
|
return x10;
|
|
124379
124396
|
function J() {
|
|
124380
124397
|
if (!A) {
|
|
124381
|
-
let U = Go(r7.parent.tagName), X = $M(jT(r7)), ge = X === void 0 ? "children" : mi(X), fe =
|
|
124398
|
+
let U = Go(r7.parent.tagName), X = $M(jT(r7)), ge = X === void 0 ? "children" : mi(X), fe = gf2(l10, R_(ge)), We = p._0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2;
|
|
124382
124399
|
A = {
|
|
124383
124400
|
...We,
|
|
124384
124401
|
key: "!!ALREADY FORMATTED!!",
|
|
@@ -125075,7 +125092,7 @@ ${It.join(`
|
|
|
125075
125092
|
if (fAe(Te) && !Te.target.readonly && (Mt = Zr(Eo(Te)[0], Le, 1)) || fAe(Le) && (Le.target.readonly || AM(eu(Te) || Te)) && (Mt = Zr(Te, Eo(Le)[0], 2))) return Mt;
|
|
125076
125093
|
if (yn & 524288) {
|
|
125077
125094
|
if (gn(Te) & 32 && !Te.declaration.nameType && Zr(Nm(Le), Wf(Te), 3) && !(tg(Te) & 4)) {
|
|
125078
|
-
if (Mt = Zr(Xg(Te),
|
|
125095
|
+
if (Mt = Zr(Xg(Te), gf2(Le, Rd(Te)), 3, rt)) return Mt;
|
|
125079
125096
|
}
|
|
125080
125097
|
if (l10 === Uo && en & 524288) {
|
|
125081
125098
|
let Wr = qu(Te);
|
|
@@ -125129,7 +125146,7 @@ ${It.join(`
|
|
|
125129
125146
|
if (Mt = Zr(Te, Ba.objectType, 2, rt)) return Mt;
|
|
125130
125147
|
} else {
|
|
125131
125148
|
let ns = Wr ? us || Ta : us ? ra([us, ca]) : ca;
|
|
125132
|
-
if (Mt = Zr(
|
|
125149
|
+
if (Mt = Zr(gf2(Te, ns), $i, 3, rt)) return Mt;
|
|
125133
125150
|
}
|
|
125134
125151
|
}
|
|
125135
125152
|
Yt = J, Wn($t);
|
|
@@ -125156,7 +125173,7 @@ ${It.join(`
|
|
|
125156
125173
|
if (Mt = Zr(mf(Wr, Te), Le, 1, rt && Wr !== W && !(yn & en & 524288), void 0, wt)) return Mt;
|
|
125157
125174
|
if (Hfe(Te)) {
|
|
125158
125175
|
let si = bT(Te.indexType);
|
|
125159
|
-
if (si && (Mt = Zr(
|
|
125176
|
+
if (si && (Mt = Zr(gf2(Te.objectType, si), Le, 1, rt))) return Mt;
|
|
125160
125177
|
}
|
|
125161
125178
|
}
|
|
125162
125179
|
} else if (en & 2097152) {
|
|
@@ -125900,7 +125917,7 @@ ${It.join(`
|
|
|
125900
125917
|
let x10 = Eo(r7), A = [];
|
|
125901
125918
|
for (let J = a10; J < y; J++) {
|
|
125902
125919
|
let U = x10[J];
|
|
125903
|
-
A.push(r7.target.elementFlags[J] & 8 ?
|
|
125920
|
+
A.push(r7.target.elementFlags[J] & 8 ? gf2(U, Ge) : U);
|
|
125904
125921
|
}
|
|
125905
125922
|
return f10 ? ra(A) : Xn(A, d ? 0 : 1);
|
|
125906
125923
|
}
|
|
@@ -126295,7 +126312,7 @@ ${It.join(`
|
|
|
126295
126312
|
return a10.type || (a10.type = V$(r7.links.propertyType, r7.links.mappedType, r7.links.constraintType) || W), a10.type;
|
|
126296
126313
|
}
|
|
126297
126314
|
function Sit(r7, a10, l10) {
|
|
126298
|
-
let f10 =
|
|
126315
|
+
let f10 = gf2(l10.type, Rd(a10)), d = Xg(a10), y = sde(f10);
|
|
126299
126316
|
return eh([y], r7, d), j_(xAe(y) || W);
|
|
126300
126317
|
}
|
|
126301
126318
|
function V$(r7, a10, l10) {
|
|
@@ -128390,7 +128407,7 @@ ${It.join(`
|
|
|
128390
128407
|
let x10 = N8(y);
|
|
128391
128408
|
if (x10 && x10.parameters.length === 1 && xu(x10)) {
|
|
128392
128409
|
let A = pw(Mi(Gr(x10.parameters[0]), (l10 = M2(y)) == null ? void 0 : l10.nonFixingMapper));
|
|
128393
|
-
if (A.flags & 134217728 && B_(A, ga) && !ct(y.parameters, Cde)) return
|
|
128410
|
+
if (A.flags & 134217728 && B_(A, ga) && !ct(y.parameters, Cde)) return gf2(Vh(y, A, A, void 0, a10.flowNode), Bd(y.parameters.indexOf(d) - (Cb(y) ? 1 : 0)));
|
|
128394
128411
|
}
|
|
128395
128412
|
}
|
|
128396
128413
|
}
|
|
@@ -128818,7 +128835,7 @@ ${It.join(`
|
|
|
128818
128835
|
let l10 = Dn(r7).resolvedSignature === ka ? ka : $6(r7);
|
|
128819
128836
|
if (vu(r7) && a10 === 0) return aX(l10, r7);
|
|
128820
128837
|
let f10 = l10.parameters.length - 1;
|
|
128821
|
-
return xu(l10) && a10 >= f10 ?
|
|
128838
|
+
return xu(l10) && a10 >= f10 ? gf2(Gr(l10.parameters[f10]), Bd(a10 - f10), 256) : Wd(l10, a10);
|
|
128822
128839
|
}
|
|
128823
128840
|
function Rst(r7) {
|
|
128824
128841
|
let a10 = yme(r7);
|
|
@@ -129044,7 +129061,7 @@ ${It.join(`
|
|
|
129044
129061
|
let f10 = rb(r7.openingElement.attributes, l10), d = $M(jT(r7));
|
|
129045
129062
|
if (!(f10 && !xn(f10) && d && d !== "")) return;
|
|
129046
129063
|
let y = XC(r7.children), x10 = y.indexOf(a10), A = tb(f10, d);
|
|
129047
|
-
return A && (y.length === 1 ? A : Vo(A, (J) => $0(J) ?
|
|
129064
|
+
return A && (y.length === 1 ? A : Vo(A, (J) => $0(J) ? gf2(J, Bd(x10)) : J, true));
|
|
129048
129065
|
}
|
|
129049
129066
|
function Hst(r7, a10) {
|
|
129050
129067
|
let l10 = r7.parent;
|
|
@@ -129381,7 +129398,7 @@ ${It.join(`
|
|
|
129381
129398
|
return Q0(33, qi(r7.expression, a10), Ze, r7.expression);
|
|
129382
129399
|
}
|
|
129383
129400
|
function mat(r7) {
|
|
129384
|
-
return r7.isSpread ?
|
|
129401
|
+
return r7.isSpread ? gf2(r7.type, Ge) : r7.type;
|
|
129385
129402
|
}
|
|
129386
129403
|
function fC(r7) {
|
|
129387
129404
|
return r7.kind === 209 && !!r7.initializer || r7.kind === 304 && fC(r7.initializer) || r7.kind === 305 && !!r7.objectAssignmentInitializer || r7.kind === 227 && r7.operatorToken.kind === 64;
|
|
@@ -130441,7 +130458,7 @@ ${It.join(`
|
|
|
130441
130458
|
let fe = ge.kind === 238 ? ge.type : qi(ge.expression);
|
|
130442
130459
|
$0(fe) ? (A.push(fe), J.push(8)) : (A.push(Q0(33, fe, Ze, ge.kind === 231 ? ge.expression : ge)), J.push(4));
|
|
130443
130460
|
} else {
|
|
130444
|
-
let fe = ga(f10) ? Bde(f10, X - a10, l10 - a10) || W :
|
|
130461
|
+
let fe = ga(f10) ? Bde(f10, X - a10, l10 - a10) || W : gf2(f10, Bd(X - a10), 256), We = X6(ge, fe, d, y), lt = x10 || yc(fe, 14811132);
|
|
130445
130462
|
A.push(lt ? tu(We) : Kv(We)), J.push(1);
|
|
130446
130463
|
}
|
|
130447
130464
|
ge.kind === 238 && ge.tupleNameSource ? U.push(ge.tupleNameSource) : U.push(void 0);
|
|
@@ -131532,12 +131549,12 @@ ${It.join(`
|
|
|
131532
131549
|
if (a10 < l10) return nR(r7.parameters[a10]);
|
|
131533
131550
|
if (xu(r7)) {
|
|
131534
131551
|
let f10 = Gr(r7.parameters[l10]), d = a10 - l10;
|
|
131535
|
-
if (!ga(f10) || f10.target.combinedFlags & 12 || d < f10.target.fixedLength) return
|
|
131552
|
+
if (!ga(f10) || f10.target.combinedFlags & 12 || d < f10.target.fixedLength) return gf2(f10, Bd(d));
|
|
131536
131553
|
}
|
|
131537
131554
|
}
|
|
131538
131555
|
function iR(r7, a10, l10) {
|
|
131539
131556
|
let f10 = J_(r7), d = Ud(r7), y = M8(r7);
|
|
131540
|
-
if (y && a10 >= f10 - 1) return a10 === f10 - 1 ? y : pu(
|
|
131557
|
+
if (y && a10 >= f10 - 1) return a10 === f10 - 1 ? y : pu(gf2(y, Ge));
|
|
131541
131558
|
let x10 = [], A = [], J = [];
|
|
131542
131559
|
for (let U = a10; U < f10; U++) !y || U < f10 - 1 ? (x10.push(Wd(r7, U)), A.push(U < d ? 1 : 2)) : (x10.push(y), A.push(8)), J.push(qot(r7, U));
|
|
131543
131560
|
return ng(x10, A, l10, J);
|
|
@@ -132239,7 +132256,7 @@ ${It.join(`
|
|
|
132239
132256
|
let fe = $s(a10, ap(J));
|
|
132240
132257
|
fe && (KM(fe, x10, d), qde(x10, false, true, a10, fe));
|
|
132241
132258
|
}
|
|
132242
|
-
let X = Vg(x10,
|
|
132259
|
+
let X = Vg(x10, gf2(a10, J, 32 | (fC(x10) ? 16 : 0), A));
|
|
132243
132260
|
return zT(x10.kind === 305 ? x10 : x10.initializer, X);
|
|
132244
132261
|
} else if (x10.kind === 306) if (l10 < y.length - 1) ze(x10, p.A_rest_element_must_be_last_in_a_destructuring_pattern);
|
|
132245
132262
|
else {
|
|
@@ -156308,7 +156325,7 @@ ${It.join(`
|
|
|
156308
156325
|
let t7 = e4.system || cl, n8 = e4.host || (e4.host = f9(e4.options, t7)), i8 = dse(e4), s8 = ZU(i8, e4.reportDiagnostic || pk(t7), (o8) => n8.trace && n8.trace(o8), e4.reportErrorSummary || e4.options.pretty ? (o8, c2) => t7.write(qU(o8, c2, t7.newLine, n8)) : void 0);
|
|
156309
156326
|
return e4.afterProgramEmitAndDiagnostics && e4.afterProgramEmitAndDiagnostics(i8), s8;
|
|
156310
156327
|
}
|
|
156311
|
-
function
|
|
156328
|
+
function _92(e4, t7) {
|
|
156312
156329
|
let n8 = _v(e4);
|
|
156313
156330
|
if (!n8) return;
|
|
156314
156331
|
let i8;
|
|
@@ -156326,7 +156343,7 @@ ${It.join(`
|
|
|
156326
156343
|
}
|
|
156327
156344
|
function dse({ rootNames: e4, options: t7, configFileParsingDiagnostics: n8, projectReferences: i8, host: s8, createProgram: o8 }) {
|
|
156328
156345
|
s8 = s8 || f9(t7), o8 = o8 || BU;
|
|
156329
|
-
let c2 =
|
|
156346
|
+
let c2 = _92(t7, s8);
|
|
156330
156347
|
return o8(e4, t7, s8, c2, n8, i8);
|
|
156331
156348
|
}
|
|
156332
156349
|
function lbe(e4, t7, n8, i8, s8, o8, c2, _) {
|
|
@@ -156364,7 +156381,7 @@ ${It.join(`
|
|
|
156364
156381
|
let Ke = WU(Ce, I ? qn(Xi(I, w)) : w, false);
|
|
156365
156382
|
Ce.resolveModuleNameLiterals = Ps(e4, e4.resolveModuleNameLiterals), Ce.resolveModuleNames = Ps(e4, e4.resolveModuleNames), !Ce.resolveModuleNameLiterals && !Ce.resolveModuleNames && (Ce.resolveModuleNameLiterals = Ke.resolveModuleNameLiterals.bind(Ke)), Ce.resolveTypeReferenceDirectiveReferences = Ps(e4, e4.resolveTypeReferenceDirectiveReferences), Ce.resolveTypeReferenceDirectives = Ps(e4, e4.resolveTypeReferenceDirectives), !Ce.resolveTypeReferenceDirectiveReferences && !Ce.resolveTypeReferenceDirectives && (Ce.resolveTypeReferenceDirectiveReferences = Ke.resolveTypeReferenceDirectiveReferences.bind(Ke)), Ce.resolveLibrary = e4.resolveLibrary ? e4.resolveLibrary.bind(e4) : Ke.resolveLibrary.bind(Ke), Ce.getModuleResolutionCache = e4.resolveModuleNameLiterals || e4.resolveModuleNames ? Ps(e4, e4.getModuleResolutionCache) : (() => Ke.getModuleResolutionCache());
|
|
156366
156383
|
let Be = !!e4.resolveModuleNameLiterals || !!e4.resolveTypeReferenceDirectiveReferences || !!e4.resolveModuleNames || !!e4.resolveTypeReferenceDirectives ? Ps(e4, e4.hasInvalidatedResolutions) || lb : sh, K = e4.resolveLibrary ? Ps(e4, e4.hasInvalidatedLibResolutions) || lb : sh;
|
|
156367
|
-
return t7 =
|
|
156384
|
+
return t7 = _92(G, Ce), mt(), I ? {
|
|
156368
156385
|
getCurrentProgram: be,
|
|
156369
156386
|
getProgram: Gn,
|
|
156370
156387
|
close: De,
|
|
@@ -157003,7 +157020,7 @@ ${It.join(`
|
|
|
157003
157020
|
}
|
|
157004
157021
|
function jBe({ options: e4, builderPrograms: t7, compilerHost: n8 }, i8, s8) {
|
|
157005
157022
|
if (e4.force) return;
|
|
157006
|
-
return t7.get(i8) ||
|
|
157023
|
+
return t7.get(i8) || _92(s8.options, n8);
|
|
157007
157024
|
}
|
|
157008
157025
|
function BBe(e4, t7) {
|
|
157009
157026
|
t7 && (e4.host.afterProgramEmitAndDiagnostics && e4.host.afterProgramEmitAndDiagnostics(t7), t7.releaseProgram()), e4.projectCompilerOptions = e4.baseCompilerOptions;
|
|
@@ -188061,7 +188078,7 @@ ${i8.prefix}` : `
|
|
|
188061
188078
|
rangeOverlapsWithStartEnd: () => TP,
|
|
188062
188079
|
rangeStartIsOnSameLineAsRangeEnd: () => See,
|
|
188063
188080
|
rangeStartPositionsAreOnSameLine: () => q5,
|
|
188064
|
-
readBuilderProgram: () =>
|
|
188081
|
+
readBuilderProgram: () => _92,
|
|
188065
188082
|
readConfigFile: () => aA,
|
|
188066
188083
|
readJson: () => KC,
|
|
188067
188084
|
readJsonConfigFile: () => Xre,
|
|
@@ -195375,10 +195392,10 @@ function moduleImportNodesCacheKey(source, options) {
|
|
|
195375
195392
|
async function collectModuleImportNodes(source, options) {
|
|
195376
195393
|
const literalImports = [];
|
|
195377
195394
|
const dynamicImportExpressions = [];
|
|
195378
|
-
function
|
|
195395
|
+
function visit4(node2) {
|
|
195379
195396
|
if (node2 == null || typeof node2 !== "object") return;
|
|
195380
195397
|
if (Array.isArray(node2)) {
|
|
195381
|
-
for (const item of node2)
|
|
195398
|
+
for (const item of node2) visit4(item);
|
|
195382
195399
|
return;
|
|
195383
195400
|
}
|
|
195384
195401
|
if (!("type" in node2)) return;
|
|
@@ -195429,13 +195446,13 @@ async function collectModuleImportNodes(source, options) {
|
|
|
195429
195446
|
)) {
|
|
195430
195447
|
if (value == null) continue;
|
|
195431
195448
|
if (typeof value === "object") {
|
|
195432
|
-
|
|
195449
|
+
visit4(value);
|
|
195433
195450
|
}
|
|
195434
195451
|
}
|
|
195435
195452
|
}
|
|
195436
195453
|
await loadModuleSourceParser();
|
|
195437
195454
|
try {
|
|
195438
|
-
|
|
195455
|
+
visit4(await parseModuleSource(source, { filePath: options?.filePath }));
|
|
195439
195456
|
} catch {
|
|
195440
195457
|
return { literalImports: [], dynamicImportExpressions: [] };
|
|
195441
195458
|
}
|
|
@@ -195471,8 +195488,8 @@ function unwrapTypeOnlyExpression(node2) {
|
|
|
195471
195488
|
}
|
|
195472
195489
|
function readStaticSpecifierNode(wrapped) {
|
|
195473
195490
|
const node2 = unwrapTypeOnlyExpression(wrapped);
|
|
195474
|
-
const
|
|
195475
|
-
if (
|
|
195491
|
+
const literal4 = readLiteralStringNode(node2);
|
|
195492
|
+
if (literal4) return literal4.specifier;
|
|
195476
195493
|
if (node2 == null || typeof node2 !== "object") return null;
|
|
195477
195494
|
const template = node2;
|
|
195478
195495
|
if (template.type === "TemplateLiteral" && template.expressions?.length === 0 && template.quasis?.length === 1) {
|
|
@@ -195498,10 +195515,10 @@ async function parseBundlerResolvedSpecifiers(source, options) {
|
|
|
195498
195515
|
const specifier = readStaticSpecifierNode(node2);
|
|
195499
195516
|
if (specifier != null) specifiers.push(specifier);
|
|
195500
195517
|
};
|
|
195501
|
-
function
|
|
195518
|
+
function visit4(node2) {
|
|
195502
195519
|
if (node2 == null || typeof node2 !== "object") return;
|
|
195503
195520
|
if (Array.isArray(node2)) {
|
|
195504
|
-
for (const item of node2)
|
|
195521
|
+
for (const item of node2) visit4(item);
|
|
195505
195522
|
return;
|
|
195506
195523
|
}
|
|
195507
195524
|
if (!("type" in node2)) return;
|
|
@@ -195534,10 +195551,10 @@ async function parseBundlerResolvedSpecifiers(source, options) {
|
|
|
195534
195551
|
for (const value of Object.values(
|
|
195535
195552
|
typedNode
|
|
195536
195553
|
)) {
|
|
195537
|
-
if (value != null && typeof value === "object")
|
|
195554
|
+
if (value != null && typeof value === "object") visit4(value);
|
|
195538
195555
|
}
|
|
195539
195556
|
}
|
|
195540
|
-
|
|
195557
|
+
visit4(program);
|
|
195541
195558
|
return { ok: true, specifiers };
|
|
195542
195559
|
}
|
|
195543
195560
|
async function collectLiteralImportSpecifiers(source, options) {
|
|
@@ -202006,6 +202023,21 @@ var init_sealed_token = __esm({
|
|
|
202006
202023
|
}
|
|
202007
202024
|
});
|
|
202008
202025
|
|
|
202026
|
+
// ../worker/src/mcp/secrets/vault-item-config.ts
|
|
202027
|
+
var vaultItemConfigSchema;
|
|
202028
|
+
var init_vault_item_config = __esm({
|
|
202029
|
+
"../worker/src/mcp/secrets/vault-item-config.ts"() {
|
|
202030
|
+
"use strict";
|
|
202031
|
+
init_zod();
|
|
202032
|
+
vaultItemConfigSchema = external_exports.strictObject({
|
|
202033
|
+
kind: external_exports.literal("vault-item"),
|
|
202034
|
+
bindingId: external_exports.string().min(1),
|
|
202035
|
+
providerId: external_exports.string().min(1),
|
|
202036
|
+
encryptedRef: external_exports.string().min(1)
|
|
202037
|
+
});
|
|
202038
|
+
}
|
|
202039
|
+
});
|
|
202040
|
+
|
|
202009
202041
|
// ../worker/src/mcp/secrets/update-secret-placement.ts
|
|
202010
202042
|
var init_update_secret_placement = __esm({
|
|
202011
202043
|
"../worker/src/mcp/secrets/update-secret-placement.ts"() {
|
|
@@ -202037,6 +202069,7 @@ var init_service6 = __esm({
|
|
|
202037
202069
|
init_resolve_package_secret_placement();
|
|
202038
202070
|
init_sealed_token();
|
|
202039
202071
|
init_disconnected();
|
|
202072
|
+
init_vault_item_config();
|
|
202040
202073
|
init_update_secret_placement();
|
|
202041
202074
|
init_credential_audit();
|
|
202042
202075
|
init_audit_log();
|
|
@@ -203378,14 +203411,14 @@ function normalizeJoin(directory, relativePath2) {
|
|
|
203378
203411
|
const absolute = directory.startsWith("/");
|
|
203379
203412
|
const segments = directory.split("/").filter(Boolean);
|
|
203380
203413
|
const floor = segments.length;
|
|
203381
|
-
for (const
|
|
203382
|
-
if (
|
|
203383
|
-
if (
|
|
203414
|
+
for (const segment2 of relativePath2.split("/")) {
|
|
203415
|
+
if (segment2 === "" || segment2 === ".") continue;
|
|
203416
|
+
if (segment2 === "..") {
|
|
203384
203417
|
if (segments.length <= floor) return null;
|
|
203385
203418
|
segments.pop();
|
|
203386
203419
|
continue;
|
|
203387
203420
|
}
|
|
203388
|
-
segments.push(
|
|
203421
|
+
segments.push(segment2);
|
|
203389
203422
|
}
|
|
203390
203423
|
const joined = segments.join("/");
|
|
203391
203424
|
return absolute ? `/${joined}` : joined;
|
|
@@ -205189,6 +205222,608 @@ var init_secret_placeholder_request_placement = __esm({
|
|
|
205189
205222
|
}
|
|
205190
205223
|
});
|
|
205191
205224
|
|
|
205225
|
+
// ../../node_modules/jsonc-parser/lib/esm/impl/scanner.js
|
|
205226
|
+
var CharacterCodes;
|
|
205227
|
+
var init_scanner = __esm({
|
|
205228
|
+
"../../node_modules/jsonc-parser/lib/esm/impl/scanner.js"() {
|
|
205229
|
+
"use strict";
|
|
205230
|
+
(function(CharacterCodes2) {
|
|
205231
|
+
CharacterCodes2[CharacterCodes2["lineFeed"] = 10] = "lineFeed";
|
|
205232
|
+
CharacterCodes2[CharacterCodes2["carriageReturn"] = 13] = "carriageReturn";
|
|
205233
|
+
CharacterCodes2[CharacterCodes2["space"] = 32] = "space";
|
|
205234
|
+
CharacterCodes2[CharacterCodes2["_0"] = 48] = "_0";
|
|
205235
|
+
CharacterCodes2[CharacterCodes2["_1"] = 49] = "_1";
|
|
205236
|
+
CharacterCodes2[CharacterCodes2["_2"] = 50] = "_2";
|
|
205237
|
+
CharacterCodes2[CharacterCodes2["_3"] = 51] = "_3";
|
|
205238
|
+
CharacterCodes2[CharacterCodes2["_4"] = 52] = "_4";
|
|
205239
|
+
CharacterCodes2[CharacterCodes2["_5"] = 53] = "_5";
|
|
205240
|
+
CharacterCodes2[CharacterCodes2["_6"] = 54] = "_6";
|
|
205241
|
+
CharacterCodes2[CharacterCodes2["_7"] = 55] = "_7";
|
|
205242
|
+
CharacterCodes2[CharacterCodes2["_8"] = 56] = "_8";
|
|
205243
|
+
CharacterCodes2[CharacterCodes2["_9"] = 57] = "_9";
|
|
205244
|
+
CharacterCodes2[CharacterCodes2["a"] = 97] = "a";
|
|
205245
|
+
CharacterCodes2[CharacterCodes2["b"] = 98] = "b";
|
|
205246
|
+
CharacterCodes2[CharacterCodes2["c"] = 99] = "c";
|
|
205247
|
+
CharacterCodes2[CharacterCodes2["d"] = 100] = "d";
|
|
205248
|
+
CharacterCodes2[CharacterCodes2["e"] = 101] = "e";
|
|
205249
|
+
CharacterCodes2[CharacterCodes2["f"] = 102] = "f";
|
|
205250
|
+
CharacterCodes2[CharacterCodes2["g"] = 103] = "g";
|
|
205251
|
+
CharacterCodes2[CharacterCodes2["h"] = 104] = "h";
|
|
205252
|
+
CharacterCodes2[CharacterCodes2["i"] = 105] = "i";
|
|
205253
|
+
CharacterCodes2[CharacterCodes2["j"] = 106] = "j";
|
|
205254
|
+
CharacterCodes2[CharacterCodes2["k"] = 107] = "k";
|
|
205255
|
+
CharacterCodes2[CharacterCodes2["l"] = 108] = "l";
|
|
205256
|
+
CharacterCodes2[CharacterCodes2["m"] = 109] = "m";
|
|
205257
|
+
CharacterCodes2[CharacterCodes2["n"] = 110] = "n";
|
|
205258
|
+
CharacterCodes2[CharacterCodes2["o"] = 111] = "o";
|
|
205259
|
+
CharacterCodes2[CharacterCodes2["p"] = 112] = "p";
|
|
205260
|
+
CharacterCodes2[CharacterCodes2["q"] = 113] = "q";
|
|
205261
|
+
CharacterCodes2[CharacterCodes2["r"] = 114] = "r";
|
|
205262
|
+
CharacterCodes2[CharacterCodes2["s"] = 115] = "s";
|
|
205263
|
+
CharacterCodes2[CharacterCodes2["t"] = 116] = "t";
|
|
205264
|
+
CharacterCodes2[CharacterCodes2["u"] = 117] = "u";
|
|
205265
|
+
CharacterCodes2[CharacterCodes2["v"] = 118] = "v";
|
|
205266
|
+
CharacterCodes2[CharacterCodes2["w"] = 119] = "w";
|
|
205267
|
+
CharacterCodes2[CharacterCodes2["x"] = 120] = "x";
|
|
205268
|
+
CharacterCodes2[CharacterCodes2["y"] = 121] = "y";
|
|
205269
|
+
CharacterCodes2[CharacterCodes2["z"] = 122] = "z";
|
|
205270
|
+
CharacterCodes2[CharacterCodes2["A"] = 65] = "A";
|
|
205271
|
+
CharacterCodes2[CharacterCodes2["B"] = 66] = "B";
|
|
205272
|
+
CharacterCodes2[CharacterCodes2["C"] = 67] = "C";
|
|
205273
|
+
CharacterCodes2[CharacterCodes2["D"] = 68] = "D";
|
|
205274
|
+
CharacterCodes2[CharacterCodes2["E"] = 69] = "E";
|
|
205275
|
+
CharacterCodes2[CharacterCodes2["F"] = 70] = "F";
|
|
205276
|
+
CharacterCodes2[CharacterCodes2["G"] = 71] = "G";
|
|
205277
|
+
CharacterCodes2[CharacterCodes2["H"] = 72] = "H";
|
|
205278
|
+
CharacterCodes2[CharacterCodes2["I"] = 73] = "I";
|
|
205279
|
+
CharacterCodes2[CharacterCodes2["J"] = 74] = "J";
|
|
205280
|
+
CharacterCodes2[CharacterCodes2["K"] = 75] = "K";
|
|
205281
|
+
CharacterCodes2[CharacterCodes2["L"] = 76] = "L";
|
|
205282
|
+
CharacterCodes2[CharacterCodes2["M"] = 77] = "M";
|
|
205283
|
+
CharacterCodes2[CharacterCodes2["N"] = 78] = "N";
|
|
205284
|
+
CharacterCodes2[CharacterCodes2["O"] = 79] = "O";
|
|
205285
|
+
CharacterCodes2[CharacterCodes2["P"] = 80] = "P";
|
|
205286
|
+
CharacterCodes2[CharacterCodes2["Q"] = 81] = "Q";
|
|
205287
|
+
CharacterCodes2[CharacterCodes2["R"] = 82] = "R";
|
|
205288
|
+
CharacterCodes2[CharacterCodes2["S"] = 83] = "S";
|
|
205289
|
+
CharacterCodes2[CharacterCodes2["T"] = 84] = "T";
|
|
205290
|
+
CharacterCodes2[CharacterCodes2["U"] = 85] = "U";
|
|
205291
|
+
CharacterCodes2[CharacterCodes2["V"] = 86] = "V";
|
|
205292
|
+
CharacterCodes2[CharacterCodes2["W"] = 87] = "W";
|
|
205293
|
+
CharacterCodes2[CharacterCodes2["X"] = 88] = "X";
|
|
205294
|
+
CharacterCodes2[CharacterCodes2["Y"] = 89] = "Y";
|
|
205295
|
+
CharacterCodes2[CharacterCodes2["Z"] = 90] = "Z";
|
|
205296
|
+
CharacterCodes2[CharacterCodes2["asterisk"] = 42] = "asterisk";
|
|
205297
|
+
CharacterCodes2[CharacterCodes2["backslash"] = 92] = "backslash";
|
|
205298
|
+
CharacterCodes2[CharacterCodes2["closeBrace"] = 125] = "closeBrace";
|
|
205299
|
+
CharacterCodes2[CharacterCodes2["closeBracket"] = 93] = "closeBracket";
|
|
205300
|
+
CharacterCodes2[CharacterCodes2["colon"] = 58] = "colon";
|
|
205301
|
+
CharacterCodes2[CharacterCodes2["comma"] = 44] = "comma";
|
|
205302
|
+
CharacterCodes2[CharacterCodes2["dot"] = 46] = "dot";
|
|
205303
|
+
CharacterCodes2[CharacterCodes2["doubleQuote"] = 34] = "doubleQuote";
|
|
205304
|
+
CharacterCodes2[CharacterCodes2["minus"] = 45] = "minus";
|
|
205305
|
+
CharacterCodes2[CharacterCodes2["openBrace"] = 123] = "openBrace";
|
|
205306
|
+
CharacterCodes2[CharacterCodes2["openBracket"] = 91] = "openBracket";
|
|
205307
|
+
CharacterCodes2[CharacterCodes2["plus"] = 43] = "plus";
|
|
205308
|
+
CharacterCodes2[CharacterCodes2["slash"] = 47] = "slash";
|
|
205309
|
+
CharacterCodes2[CharacterCodes2["formFeed"] = 12] = "formFeed";
|
|
205310
|
+
CharacterCodes2[CharacterCodes2["tab"] = 9] = "tab";
|
|
205311
|
+
})(CharacterCodes || (CharacterCodes = {}));
|
|
205312
|
+
}
|
|
205313
|
+
});
|
|
205314
|
+
|
|
205315
|
+
// ../../node_modules/jsonc-parser/lib/esm/impl/string-intern.js
|
|
205316
|
+
var cachedSpaces, maxCachedValues, cachedBreakLinesWithSpaces;
|
|
205317
|
+
var init_string_intern = __esm({
|
|
205318
|
+
"../../node_modules/jsonc-parser/lib/esm/impl/string-intern.js"() {
|
|
205319
|
+
cachedSpaces = new Array(20).fill(0).map((_, index) => {
|
|
205320
|
+
return " ".repeat(index);
|
|
205321
|
+
});
|
|
205322
|
+
maxCachedValues = 200;
|
|
205323
|
+
cachedBreakLinesWithSpaces = {
|
|
205324
|
+
" ": {
|
|
205325
|
+
"\n": new Array(maxCachedValues).fill(0).map((_, index) => {
|
|
205326
|
+
return "\n" + " ".repeat(index);
|
|
205327
|
+
}),
|
|
205328
|
+
"\r": new Array(maxCachedValues).fill(0).map((_, index) => {
|
|
205329
|
+
return "\r" + " ".repeat(index);
|
|
205330
|
+
}),
|
|
205331
|
+
"\r\n": new Array(maxCachedValues).fill(0).map((_, index) => {
|
|
205332
|
+
return "\r\n" + " ".repeat(index);
|
|
205333
|
+
})
|
|
205334
|
+
},
|
|
205335
|
+
" ": {
|
|
205336
|
+
"\n": new Array(maxCachedValues).fill(0).map((_, index) => {
|
|
205337
|
+
return "\n" + " ".repeat(index);
|
|
205338
|
+
}),
|
|
205339
|
+
"\r": new Array(maxCachedValues).fill(0).map((_, index) => {
|
|
205340
|
+
return "\r" + " ".repeat(index);
|
|
205341
|
+
}),
|
|
205342
|
+
"\r\n": new Array(maxCachedValues).fill(0).map((_, index) => {
|
|
205343
|
+
return "\r\n" + " ".repeat(index);
|
|
205344
|
+
})
|
|
205345
|
+
}
|
|
205346
|
+
};
|
|
205347
|
+
}
|
|
205348
|
+
});
|
|
205349
|
+
|
|
205350
|
+
// ../../node_modules/jsonc-parser/lib/esm/impl/format.js
|
|
205351
|
+
var init_format = __esm({
|
|
205352
|
+
"../../node_modules/jsonc-parser/lib/esm/impl/format.js"() {
|
|
205353
|
+
"use strict";
|
|
205354
|
+
init_scanner();
|
|
205355
|
+
init_string_intern();
|
|
205356
|
+
}
|
|
205357
|
+
});
|
|
205358
|
+
|
|
205359
|
+
// ../../node_modules/jsonc-parser/lib/esm/impl/parser.js
|
|
205360
|
+
var ParseOptions;
|
|
205361
|
+
var init_parser2 = __esm({
|
|
205362
|
+
"../../node_modules/jsonc-parser/lib/esm/impl/parser.js"() {
|
|
205363
|
+
"use strict";
|
|
205364
|
+
init_scanner();
|
|
205365
|
+
(function(ParseOptions2) {
|
|
205366
|
+
ParseOptions2.DEFAULT = {
|
|
205367
|
+
allowTrailingComma: false
|
|
205368
|
+
};
|
|
205369
|
+
})(ParseOptions || (ParseOptions = {}));
|
|
205370
|
+
}
|
|
205371
|
+
});
|
|
205372
|
+
|
|
205373
|
+
// ../../node_modules/jsonc-parser/lib/esm/impl/edit.js
|
|
205374
|
+
var init_edit = __esm({
|
|
205375
|
+
"../../node_modules/jsonc-parser/lib/esm/impl/edit.js"() {
|
|
205376
|
+
"use strict";
|
|
205377
|
+
init_format();
|
|
205378
|
+
init_parser2();
|
|
205379
|
+
}
|
|
205380
|
+
});
|
|
205381
|
+
|
|
205382
|
+
// ../../node_modules/jsonc-parser/lib/esm/main.js
|
|
205383
|
+
var ScanError, SyntaxKind, ParseErrorCode;
|
|
205384
|
+
var init_main = __esm({
|
|
205385
|
+
"../../node_modules/jsonc-parser/lib/esm/main.js"() {
|
|
205386
|
+
"use strict";
|
|
205387
|
+
init_format();
|
|
205388
|
+
init_edit();
|
|
205389
|
+
init_scanner();
|
|
205390
|
+
init_parser2();
|
|
205391
|
+
(function(ScanError2) {
|
|
205392
|
+
ScanError2[ScanError2["None"] = 0] = "None";
|
|
205393
|
+
ScanError2[ScanError2["UnexpectedEndOfComment"] = 1] = "UnexpectedEndOfComment";
|
|
205394
|
+
ScanError2[ScanError2["UnexpectedEndOfString"] = 2] = "UnexpectedEndOfString";
|
|
205395
|
+
ScanError2[ScanError2["UnexpectedEndOfNumber"] = 3] = "UnexpectedEndOfNumber";
|
|
205396
|
+
ScanError2[ScanError2["InvalidUnicode"] = 4] = "InvalidUnicode";
|
|
205397
|
+
ScanError2[ScanError2["InvalidEscapeCharacter"] = 5] = "InvalidEscapeCharacter";
|
|
205398
|
+
ScanError2[ScanError2["InvalidCharacter"] = 6] = "InvalidCharacter";
|
|
205399
|
+
})(ScanError || (ScanError = {}));
|
|
205400
|
+
(function(SyntaxKind2) {
|
|
205401
|
+
SyntaxKind2[SyntaxKind2["OpenBraceToken"] = 1] = "OpenBraceToken";
|
|
205402
|
+
SyntaxKind2[SyntaxKind2["CloseBraceToken"] = 2] = "CloseBraceToken";
|
|
205403
|
+
SyntaxKind2[SyntaxKind2["OpenBracketToken"] = 3] = "OpenBracketToken";
|
|
205404
|
+
SyntaxKind2[SyntaxKind2["CloseBracketToken"] = 4] = "CloseBracketToken";
|
|
205405
|
+
SyntaxKind2[SyntaxKind2["CommaToken"] = 5] = "CommaToken";
|
|
205406
|
+
SyntaxKind2[SyntaxKind2["ColonToken"] = 6] = "ColonToken";
|
|
205407
|
+
SyntaxKind2[SyntaxKind2["NullKeyword"] = 7] = "NullKeyword";
|
|
205408
|
+
SyntaxKind2[SyntaxKind2["TrueKeyword"] = 8] = "TrueKeyword";
|
|
205409
|
+
SyntaxKind2[SyntaxKind2["FalseKeyword"] = 9] = "FalseKeyword";
|
|
205410
|
+
SyntaxKind2[SyntaxKind2["StringLiteral"] = 10] = "StringLiteral";
|
|
205411
|
+
SyntaxKind2[SyntaxKind2["NumericLiteral"] = 11] = "NumericLiteral";
|
|
205412
|
+
SyntaxKind2[SyntaxKind2["LineCommentTrivia"] = 12] = "LineCommentTrivia";
|
|
205413
|
+
SyntaxKind2[SyntaxKind2["BlockCommentTrivia"] = 13] = "BlockCommentTrivia";
|
|
205414
|
+
SyntaxKind2[SyntaxKind2["LineBreakTrivia"] = 14] = "LineBreakTrivia";
|
|
205415
|
+
SyntaxKind2[SyntaxKind2["Trivia"] = 15] = "Trivia";
|
|
205416
|
+
SyntaxKind2[SyntaxKind2["Unknown"] = 16] = "Unknown";
|
|
205417
|
+
SyntaxKind2[SyntaxKind2["EOF"] = 17] = "EOF";
|
|
205418
|
+
})(SyntaxKind || (SyntaxKind = {}));
|
|
205419
|
+
(function(ParseErrorCode2) {
|
|
205420
|
+
ParseErrorCode2[ParseErrorCode2["InvalidSymbol"] = 1] = "InvalidSymbol";
|
|
205421
|
+
ParseErrorCode2[ParseErrorCode2["InvalidNumberFormat"] = 2] = "InvalidNumberFormat";
|
|
205422
|
+
ParseErrorCode2[ParseErrorCode2["PropertyNameExpected"] = 3] = "PropertyNameExpected";
|
|
205423
|
+
ParseErrorCode2[ParseErrorCode2["ValueExpected"] = 4] = "ValueExpected";
|
|
205424
|
+
ParseErrorCode2[ParseErrorCode2["ColonExpected"] = 5] = "ColonExpected";
|
|
205425
|
+
ParseErrorCode2[ParseErrorCode2["CommaExpected"] = 6] = "CommaExpected";
|
|
205426
|
+
ParseErrorCode2[ParseErrorCode2["CloseBraceExpected"] = 7] = "CloseBraceExpected";
|
|
205427
|
+
ParseErrorCode2[ParseErrorCode2["CloseBracketExpected"] = 8] = "CloseBracketExpected";
|
|
205428
|
+
ParseErrorCode2[ParseErrorCode2["EndOfFileExpected"] = 9] = "EndOfFileExpected";
|
|
205429
|
+
ParseErrorCode2[ParseErrorCode2["InvalidCommentToken"] = 10] = "InvalidCommentToken";
|
|
205430
|
+
ParseErrorCode2[ParseErrorCode2["UnexpectedEndOfComment"] = 11] = "UnexpectedEndOfComment";
|
|
205431
|
+
ParseErrorCode2[ParseErrorCode2["UnexpectedEndOfString"] = 12] = "UnexpectedEndOfString";
|
|
205432
|
+
ParseErrorCode2[ParseErrorCode2["UnexpectedEndOfNumber"] = 13] = "UnexpectedEndOfNumber";
|
|
205433
|
+
ParseErrorCode2[ParseErrorCode2["InvalidUnicode"] = 14] = "InvalidUnicode";
|
|
205434
|
+
ParseErrorCode2[ParseErrorCode2["InvalidEscapeCharacter"] = 15] = "InvalidEscapeCharacter";
|
|
205435
|
+
ParseErrorCode2[ParseErrorCode2["InvalidCharacter"] = 16] = "InvalidCharacter";
|
|
205436
|
+
})(ParseErrorCode || (ParseErrorCode = {}));
|
|
205437
|
+
}
|
|
205438
|
+
});
|
|
205439
|
+
|
|
205440
|
+
// ../../node_modules/@stablelib/random/lib/source/system.js
|
|
205441
|
+
var QUOTA, SystemRandomSource;
|
|
205442
|
+
var init_system = __esm({
|
|
205443
|
+
"../../node_modules/@stablelib/random/lib/source/system.js"() {
|
|
205444
|
+
QUOTA = 65536;
|
|
205445
|
+
SystemRandomSource = class {
|
|
205446
|
+
isAvailable = false;
|
|
205447
|
+
isInstantiated = false;
|
|
205448
|
+
constructor() {
|
|
205449
|
+
if (typeof crypto !== "undefined" && "getRandomValues" in crypto) {
|
|
205450
|
+
this.isAvailable = true;
|
|
205451
|
+
this.isInstantiated = true;
|
|
205452
|
+
}
|
|
205453
|
+
}
|
|
205454
|
+
randomBytes(length) {
|
|
205455
|
+
if (!this.isAvailable) {
|
|
205456
|
+
throw new Error("System random byte generator is not available.");
|
|
205457
|
+
}
|
|
205458
|
+
const out = new Uint8Array(length);
|
|
205459
|
+
for (let i4 = 0; i4 < out.length; i4 += QUOTA) {
|
|
205460
|
+
crypto.getRandomValues(out.subarray(i4, i4 + Math.min(out.length - i4, QUOTA)));
|
|
205461
|
+
}
|
|
205462
|
+
return out;
|
|
205463
|
+
}
|
|
205464
|
+
};
|
|
205465
|
+
}
|
|
205466
|
+
});
|
|
205467
|
+
|
|
205468
|
+
// ../../node_modules/@stablelib/int/lib/int.js
|
|
205469
|
+
var isInteger, MAX_SAFE_INTEGER, isSafeInteger;
|
|
205470
|
+
var init_int = __esm({
|
|
205471
|
+
"../../node_modules/@stablelib/int/lib/int.js"() {
|
|
205472
|
+
isInteger = Number.isInteger;
|
|
205473
|
+
MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER;
|
|
205474
|
+
isSafeInteger = Number.isSafeInteger;
|
|
205475
|
+
}
|
|
205476
|
+
});
|
|
205477
|
+
|
|
205478
|
+
// ../../node_modules/@stablelib/binary/lib/binary.js
|
|
205479
|
+
var init_binary = __esm({
|
|
205480
|
+
"../../node_modules/@stablelib/binary/lib/binary.js"() {
|
|
205481
|
+
init_int();
|
|
205482
|
+
}
|
|
205483
|
+
});
|
|
205484
|
+
|
|
205485
|
+
// ../../node_modules/@stablelib/wipe/lib/wipe.js
|
|
205486
|
+
var init_wipe = __esm({
|
|
205487
|
+
"../../node_modules/@stablelib/wipe/lib/wipe.js"() {
|
|
205488
|
+
}
|
|
205489
|
+
});
|
|
205490
|
+
|
|
205491
|
+
// ../../node_modules/@stablelib/random/lib/random.js
|
|
205492
|
+
var defaultRandomSource;
|
|
205493
|
+
var init_random = __esm({
|
|
205494
|
+
"../../node_modules/@stablelib/random/lib/random.js"() {
|
|
205495
|
+
init_system();
|
|
205496
|
+
init_binary();
|
|
205497
|
+
init_wipe();
|
|
205498
|
+
defaultRandomSource = new SystemRandomSource();
|
|
205499
|
+
}
|
|
205500
|
+
});
|
|
205501
|
+
|
|
205502
|
+
// ../../node_modules/@stablelib/x25519/lib/x25519.js
|
|
205503
|
+
function gf(init) {
|
|
205504
|
+
const r3 = new Float64Array(16);
|
|
205505
|
+
if (init) {
|
|
205506
|
+
for (let i4 = 0; i4 < init.length; i4++) {
|
|
205507
|
+
r3[i4] = init[i4];
|
|
205508
|
+
}
|
|
205509
|
+
}
|
|
205510
|
+
return r3;
|
|
205511
|
+
}
|
|
205512
|
+
var _9, _121665;
|
|
205513
|
+
var init_x25519 = __esm({
|
|
205514
|
+
"../../node_modules/@stablelib/x25519/lib/x25519.js"() {
|
|
205515
|
+
init_random();
|
|
205516
|
+
init_wipe();
|
|
205517
|
+
_9 = new Uint8Array(32);
|
|
205518
|
+
_9[0] = 9;
|
|
205519
|
+
_121665 = gf([56129, 1]);
|
|
205520
|
+
}
|
|
205521
|
+
});
|
|
205522
|
+
|
|
205523
|
+
// ../../node_modules/@stablelib/salsa20/lib/salsa20.js
|
|
205524
|
+
var init_salsa20 = __esm({
|
|
205525
|
+
"../../node_modules/@stablelib/salsa20/lib/salsa20.js"() {
|
|
205526
|
+
init_binary();
|
|
205527
|
+
init_wipe();
|
|
205528
|
+
}
|
|
205529
|
+
});
|
|
205530
|
+
|
|
205531
|
+
// ../../node_modules/@stablelib/xsalsa20/lib/xsalsa20.js
|
|
205532
|
+
var init_xsalsa20 = __esm({
|
|
205533
|
+
"../../node_modules/@stablelib/xsalsa20/lib/xsalsa20.js"() {
|
|
205534
|
+
init_binary();
|
|
205535
|
+
init_salsa20();
|
|
205536
|
+
init_wipe();
|
|
205537
|
+
}
|
|
205538
|
+
});
|
|
205539
|
+
|
|
205540
|
+
// ../../node_modules/@stablelib/constant-time/lib/constant-time.js
|
|
205541
|
+
var init_constant_time = __esm({
|
|
205542
|
+
"../../node_modules/@stablelib/constant-time/lib/constant-time.js"() {
|
|
205543
|
+
}
|
|
205544
|
+
});
|
|
205545
|
+
|
|
205546
|
+
// ../../node_modules/@stablelib/poly1305/lib/poly1305.js
|
|
205547
|
+
var init_poly1305 = __esm({
|
|
205548
|
+
"../../node_modules/@stablelib/poly1305/lib/poly1305.js"() {
|
|
205549
|
+
init_constant_time();
|
|
205550
|
+
init_wipe();
|
|
205551
|
+
}
|
|
205552
|
+
});
|
|
205553
|
+
|
|
205554
|
+
// ../../node_modules/@stablelib/nacl/lib/secretbox.js
|
|
205555
|
+
var init_secretbox = __esm({
|
|
205556
|
+
"../../node_modules/@stablelib/nacl/lib/secretbox.js"() {
|
|
205557
|
+
init_xsalsa20();
|
|
205558
|
+
init_poly1305();
|
|
205559
|
+
init_wipe();
|
|
205560
|
+
init_random();
|
|
205561
|
+
}
|
|
205562
|
+
});
|
|
205563
|
+
|
|
205564
|
+
// ../../node_modules/@stablelib/nacl/lib/box.js
|
|
205565
|
+
var zeros16;
|
|
205566
|
+
var init_box = __esm({
|
|
205567
|
+
"../../node_modules/@stablelib/nacl/lib/box.js"() {
|
|
205568
|
+
init_x25519();
|
|
205569
|
+
init_xsalsa20();
|
|
205570
|
+
init_secretbox();
|
|
205571
|
+
init_wipe();
|
|
205572
|
+
init_x25519();
|
|
205573
|
+
zeros16 = new Uint8Array(16);
|
|
205574
|
+
}
|
|
205575
|
+
});
|
|
205576
|
+
|
|
205577
|
+
// ../../node_modules/@stablelib/nacl/lib/nacl.js
|
|
205578
|
+
var init_nacl = __esm({
|
|
205579
|
+
"../../node_modules/@stablelib/nacl/lib/nacl.js"() {
|
|
205580
|
+
init_box();
|
|
205581
|
+
init_secretbox();
|
|
205582
|
+
}
|
|
205583
|
+
});
|
|
205584
|
+
|
|
205585
|
+
// ../worker/src/credentials/sealed-box.ts
|
|
205586
|
+
var init_sealed_box = __esm({
|
|
205587
|
+
"../worker/src/credentials/sealed-box.ts"() {
|
|
205588
|
+
"use strict";
|
|
205589
|
+
init_base64();
|
|
205590
|
+
init_nacl();
|
|
205591
|
+
init_x25519();
|
|
205592
|
+
}
|
|
205593
|
+
});
|
|
205594
|
+
|
|
205595
|
+
// ../worker/src/credentials/body-placement.ts
|
|
205596
|
+
function isCanonicalEndpoint(endpoint) {
|
|
205597
|
+
try {
|
|
205598
|
+
const url3 = new URL(endpoint);
|
|
205599
|
+
return url3.protocol === "https:" && !url3.username && !url3.password && !url3.search && !url3.hash && `${url3.origin}${url3.pathname}` === endpoint && !/%|\/\//.test(url3.pathname);
|
|
205600
|
+
} catch {
|
|
205601
|
+
return false;
|
|
205602
|
+
}
|
|
205603
|
+
}
|
|
205604
|
+
function overlaps(left, right) {
|
|
205605
|
+
return left.length <= right.length ? left.every((key, index) => key === right[index]) : overlaps(right, left);
|
|
205606
|
+
}
|
|
205607
|
+
var maxBodyBytes, forbiddenKeys, fieldName, fieldPath, bodyPlacementSchema;
|
|
205608
|
+
var init_body_placement = __esm({
|
|
205609
|
+
"../worker/src/credentials/body-placement.ts"() {
|
|
205610
|
+
"use strict";
|
|
205611
|
+
init_main();
|
|
205612
|
+
init_zod();
|
|
205613
|
+
init_credential_request();
|
|
205614
|
+
init_sealed_box();
|
|
205615
|
+
maxBodyBytes = 256 * 1024;
|
|
205616
|
+
forbiddenKeys = /* @__PURE__ */ new Set(["__proto__", "constructor", "prototype"]);
|
|
205617
|
+
fieldName = external_exports.string().min(1).max(100).refine((key) => !forbiddenKeys.has(key), "This field name is reserved.");
|
|
205618
|
+
fieldPath = external_exports.array(external_exports.union([fieldName, external_exports.int().min(0).max(999)])).min(1).max(12);
|
|
205619
|
+
bodyPlacementSchema = external_exports.strictObject({
|
|
205620
|
+
kind: external_exports.literal("body"),
|
|
205621
|
+
packageId: external_exports.string().min(1).max(100),
|
|
205622
|
+
endpoint: external_exports.string().max(2e3).refine(
|
|
205623
|
+
isCanonicalEndpoint,
|
|
205624
|
+
"Use a canonical HTTPS endpoint without user info, query, fragment, or encoded path segments."
|
|
205625
|
+
),
|
|
205626
|
+
method: external_exports.enum(["POST", "PUT", "PATCH", "DELETE"]),
|
|
205627
|
+
mediaType: external_exports.literal("application/json"),
|
|
205628
|
+
fields: external_exports.array(fieldPath).min(1).max(16),
|
|
205629
|
+
selectors: external_exports.array(
|
|
205630
|
+
external_exports.strictObject({
|
|
205631
|
+
path: fieldPath,
|
|
205632
|
+
value: external_exports.union([external_exports.string().max(1e3), external_exports.boolean(), external_exports.int()])
|
|
205633
|
+
})
|
|
205634
|
+
).max(16).default([]),
|
|
205635
|
+
graphql: external_exports.strictObject({
|
|
205636
|
+
document: external_exports.string().min(1).max(2e4),
|
|
205637
|
+
operationName: external_exports.string().regex(/^[_A-Za-z][_0-9A-Za-z]*$/).max(100)
|
|
205638
|
+
}).optional(),
|
|
205639
|
+
output: external_exports.discriminatedUnion("format", [
|
|
205640
|
+
external_exports.strictObject({ format: external_exports.literal("plaintext") }),
|
|
205641
|
+
external_exports.strictObject({
|
|
205642
|
+
format: external_exports.literal("sealed-box-base64"),
|
|
205643
|
+
recipientPublicKey: external_exports.string().regex(/^[A-Za-z0-9+/]{43}=$/),
|
|
205644
|
+
recipientKeyId: external_exports.string().min(1).max(256),
|
|
205645
|
+
keyIdField: fieldPath
|
|
205646
|
+
})
|
|
205647
|
+
]).default({ format: "plaintext" })
|
|
205648
|
+
}).superRefine((placement, ctx) => {
|
|
205649
|
+
const writes = [...placement.fields];
|
|
205650
|
+
if (placement.output.format === "sealed-box-base64") {
|
|
205651
|
+
writes.push(placement.output.keyIdField);
|
|
205652
|
+
}
|
|
205653
|
+
const paths = [...writes, ...placement.selectors.map(({ path }) => path)];
|
|
205654
|
+
for (const [index, path] of paths.entries()) {
|
|
205655
|
+
if (paths.slice(0, index).some((prior) => overlaps(prior, path)) || typeof path[0] !== "string" || placement.graphql && (path[0] !== "variables" || path.length < 2 || typeof path[1] !== "string")) {
|
|
205656
|
+
ctx.addIssue({
|
|
205657
|
+
code: "custom",
|
|
205658
|
+
message: "Placement paths must be distinct, non-overlapping object fields (inside variables for GraphQL)."
|
|
205659
|
+
});
|
|
205660
|
+
return;
|
|
205661
|
+
}
|
|
205662
|
+
}
|
|
205663
|
+
if (writes.some((path) => typeof path.at(-1) !== "string")) {
|
|
205664
|
+
ctx.addIssue({
|
|
205665
|
+
code: "custom",
|
|
205666
|
+
message: "A placed value must end at an object field."
|
|
205667
|
+
});
|
|
205668
|
+
}
|
|
205669
|
+
if (placement.graphql && placement.selectors.length === 0) {
|
|
205670
|
+
ctx.addIssue({
|
|
205671
|
+
code: "custom",
|
|
205672
|
+
message: "Pin at least one GraphQL resource selector."
|
|
205673
|
+
});
|
|
205674
|
+
}
|
|
205675
|
+
});
|
|
205676
|
+
}
|
|
205677
|
+
});
|
|
205678
|
+
|
|
205679
|
+
// ../worker/src/credentials/path-placement.ts
|
|
205680
|
+
var segmentPattern, segment, origin, pathPlacementSchema;
|
|
205681
|
+
var init_path_placement = __esm({
|
|
205682
|
+
"../worker/src/credentials/path-placement.ts"() {
|
|
205683
|
+
"use strict";
|
|
205684
|
+
init_zod();
|
|
205685
|
+
init_credential_request();
|
|
205686
|
+
segmentPattern = /^[a-zA-Z0-9_~-][a-zA-Z0-9._~-]{0,127}$/;
|
|
205687
|
+
segment = external_exports.string().regex(segmentPattern);
|
|
205688
|
+
origin = external_exports.string().max(500).refine((value) => {
|
|
205689
|
+
try {
|
|
205690
|
+
const parsed = new URL(value);
|
|
205691
|
+
return parsed.protocol === "https:" && parsed.origin === value;
|
|
205692
|
+
} catch {
|
|
205693
|
+
return false;
|
|
205694
|
+
}
|
|
205695
|
+
}, "Use a canonical HTTPS origin.");
|
|
205696
|
+
pathPlacementSchema = external_exports.strictObject({
|
|
205697
|
+
kind: external_exports.literal("path"),
|
|
205698
|
+
packageId: external_exports.string().min(1).max(100),
|
|
205699
|
+
origin,
|
|
205700
|
+
method: external_exports.enum(["GET", "HEAD", "POST", "PUT", "PATCH", "DELETE"]),
|
|
205701
|
+
segments: external_exports.array(
|
|
205702
|
+
external_exports.union([
|
|
205703
|
+
segment,
|
|
205704
|
+
external_exports.strictObject({ parameter: external_exports.enum(["slug", "integer", "uuid"]) }),
|
|
205705
|
+
external_exports.strictObject({ credential: external_exports.literal(true) })
|
|
205706
|
+
])
|
|
205707
|
+
).min(2).max(24).refine(
|
|
205708
|
+
(segments) => segments.filter(
|
|
205709
|
+
(part) => typeof part === "object" && "credential" in part
|
|
205710
|
+
).length === 1,
|
|
205711
|
+
"Include exactly one credential segment."
|
|
205712
|
+
)
|
|
205713
|
+
});
|
|
205714
|
+
}
|
|
205715
|
+
});
|
|
205716
|
+
|
|
205717
|
+
// ../worker/src/credentials/credential-composition.ts
|
|
205718
|
+
function siteCredentialIds(site) {
|
|
205719
|
+
switch (site.kind) {
|
|
205720
|
+
case "header":
|
|
205721
|
+
return site.parts.flatMap(
|
|
205722
|
+
(part) => typeof part === "string" ? [] : [part.credentialId]
|
|
205723
|
+
);
|
|
205724
|
+
case "basic":
|
|
205725
|
+
return [site.usernameId, site.passwordId];
|
|
205726
|
+
case "query":
|
|
205727
|
+
case "body":
|
|
205728
|
+
case "connection":
|
|
205729
|
+
return [site.credentialId];
|
|
205730
|
+
}
|
|
205731
|
+
}
|
|
205732
|
+
function compositionCredentialIds(profile) {
|
|
205733
|
+
return new Set(profile.sites.flatMap(siteCredentialIds));
|
|
205734
|
+
}
|
|
205735
|
+
var credentialId, headerName, literal3, headerPart, compositionSite, credentialCompositionSchema;
|
|
205736
|
+
var init_credential_composition = __esm({
|
|
205737
|
+
"../worker/src/credentials/credential-composition.ts"() {
|
|
205738
|
+
"use strict";
|
|
205739
|
+
init_base64();
|
|
205740
|
+
init_zod();
|
|
205741
|
+
init_body_placement();
|
|
205742
|
+
init_credential_request();
|
|
205743
|
+
credentialId = external_exports.string().min(1).max(100);
|
|
205744
|
+
headerName = external_exports.string().regex(/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/);
|
|
205745
|
+
literal3 = external_exports.string().max(200).regex(/^[\x20-\x7e]*$/);
|
|
205746
|
+
headerPart = external_exports.union([literal3, external_exports.strictObject({ credentialId })]);
|
|
205747
|
+
compositionSite = external_exports.union([
|
|
205748
|
+
external_exports.strictObject({
|
|
205749
|
+
kind: external_exports.literal("header"),
|
|
205750
|
+
name: headerName,
|
|
205751
|
+
parts: external_exports.array(headerPart).min(1).max(24).refine((parts) => parts.some((part) => typeof part !== "string"))
|
|
205752
|
+
}),
|
|
205753
|
+
external_exports.strictObject({
|
|
205754
|
+
kind: external_exports.literal("basic"),
|
|
205755
|
+
usernameId: credentialId,
|
|
205756
|
+
passwordId: credentialId
|
|
205757
|
+
}),
|
|
205758
|
+
external_exports.strictObject({
|
|
205759
|
+
kind: external_exports.literal("query"),
|
|
205760
|
+
param: external_exports.string().min(1).max(100),
|
|
205761
|
+
credentialId
|
|
205762
|
+
}),
|
|
205763
|
+
external_exports.strictObject({
|
|
205764
|
+
kind: external_exports.literal("body"),
|
|
205765
|
+
credentialId,
|
|
205766
|
+
placement: bodyPlacementSchema
|
|
205767
|
+
}),
|
|
205768
|
+
external_exports.strictObject({
|
|
205769
|
+
kind: external_exports.literal("connection"),
|
|
205770
|
+
connection: external_exports.enum(["login", "oauth"]),
|
|
205771
|
+
credentialId,
|
|
205772
|
+
inject: external_exports.union([
|
|
205773
|
+
external_exports.strictObject({
|
|
205774
|
+
kind: external_exports.literal("header"),
|
|
205775
|
+
name: headerName,
|
|
205776
|
+
format: literal3
|
|
205777
|
+
}),
|
|
205778
|
+
external_exports.strictObject({
|
|
205779
|
+
kind: external_exports.literal("query"),
|
|
205780
|
+
param: external_exports.string().min(1).max(100)
|
|
205781
|
+
})
|
|
205782
|
+
])
|
|
205783
|
+
})
|
|
205784
|
+
]);
|
|
205785
|
+
credentialCompositionSchema = external_exports.strictObject({
|
|
205786
|
+
kind: external_exports.literal("composition"),
|
|
205787
|
+
packageId: external_exports.string().min(1).max(100),
|
|
205788
|
+
endpoint: external_exports.string().max(2e3).refine(isCanonicalEndpoint),
|
|
205789
|
+
method: external_exports.enum(["GET", "HEAD", "POST", "PUT", "PATCH", "DELETE"]),
|
|
205790
|
+
entryCredentialId: credentialId,
|
|
205791
|
+
publicBody: external_exports.literal("application/json").optional(),
|
|
205792
|
+
sites: external_exports.array(compositionSite).min(1).max(16)
|
|
205793
|
+
}).superRefine((profile, ctx) => {
|
|
205794
|
+
if (profile.publicBody && (profile.method === "GET" || profile.method === "HEAD" || profile.sites.some((site) => site.kind === "body"))) {
|
|
205795
|
+
ctx.addIssue({
|
|
205796
|
+
code: "custom",
|
|
205797
|
+
message: "Approve a public JSON body only on a body-capable method without credential body fields."
|
|
205798
|
+
});
|
|
205799
|
+
}
|
|
205800
|
+
const ids = compositionCredentialIds(profile);
|
|
205801
|
+
if (ids.size < 2 || ids.size > 8 || !ids.has(profile.entryCredentialId)) {
|
|
205802
|
+
ctx.addIssue({
|
|
205803
|
+
code: "custom",
|
|
205804
|
+
message: "Approve two to eight credentials, including the entry credential."
|
|
205805
|
+
});
|
|
205806
|
+
}
|
|
205807
|
+
for (const site of profile.sites) {
|
|
205808
|
+
if (site.kind === "connection" && (profile.entryCredentialId === site.credentialId || profile.sites.filter(
|
|
205809
|
+
(entry) => siteCredentialIds(entry).includes(site.credentialId)
|
|
205810
|
+
).length !== 1 || site.connection === "oauth" && (site.inject.kind !== "header" || site.inject.name !== "Authorization" || site.inject.format !== "Bearer {value}"))) {
|
|
205811
|
+
ctx.addIssue({
|
|
205812
|
+
code: "custom",
|
|
205813
|
+
message: "A connection must occupy its own approved location. OAuth uses Authorization: Bearer."
|
|
205814
|
+
});
|
|
205815
|
+
}
|
|
205816
|
+
if (site.kind === "body" && (site.placement.endpoint !== profile.endpoint || site.placement.method !== profile.method || site.placement.packageId !== profile.packageId)) {
|
|
205817
|
+
ctx.addIssue({
|
|
205818
|
+
code: "custom",
|
|
205819
|
+
message: "Every body placement must use the composition package, method, and endpoint."
|
|
205820
|
+
});
|
|
205821
|
+
}
|
|
205822
|
+
}
|
|
205823
|
+
});
|
|
205824
|
+
}
|
|
205825
|
+
});
|
|
205826
|
+
|
|
205192
205827
|
// ../worker/src/credentials/credential-resolver.ts
|
|
205193
205828
|
var init_credential_resolver = __esm({
|
|
205194
205829
|
"../worker/src/credentials/credential-resolver.ts"() {
|
|
@@ -205288,6 +205923,9 @@ var init_credential_fields = __esm({
|
|
|
205288
205923
|
init_caller_error();
|
|
205289
205924
|
init_org_audit();
|
|
205290
205925
|
init_credential_ids();
|
|
205926
|
+
init_body_placement();
|
|
205927
|
+
init_path_placement();
|
|
205928
|
+
init_credential_composition();
|
|
205291
205929
|
init_credential_request();
|
|
205292
205930
|
init_fill_placement();
|
|
205293
205931
|
init_fill_placement_opt_ins();
|
|
@@ -205303,7 +205941,7 @@ var init_credential_fields = __esm({
|
|
|
205303
205941
|
external_exports.strictObject({
|
|
205304
205942
|
kind: external_exports.literal("header"),
|
|
205305
205943
|
name: external_exports.string().regex(httpFieldNamePattern4),
|
|
205306
|
-
format: external_exports.string().max(200).refine((
|
|
205944
|
+
format: external_exports.string().max(200).refine((format2) => format2.split("{value}").length === 2, {
|
|
205307
205945
|
message: 'An inject format holds "{value}" exactly once.'
|
|
205308
205946
|
})
|
|
205309
205947
|
}),
|
|
@@ -205315,7 +205953,10 @@ var init_credential_fields = __esm({
|
|
|
205315
205953
|
external_exports.strictObject({
|
|
205316
205954
|
kind: external_exports.literal("query"),
|
|
205317
205955
|
param: external_exports.string().min(1).max(100)
|
|
205318
|
-
})
|
|
205956
|
+
}),
|
|
205957
|
+
bodyPlacementSchema,
|
|
205958
|
+
pathPlacementSchema,
|
|
205959
|
+
credentialCompositionSchema
|
|
205319
205960
|
]);
|
|
205320
205961
|
hostLabel = "[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?";
|
|
205321
205962
|
bareHostPattern = new RegExp(
|