executor 1.2.4-beta.6 → 1.2.4-beta.8
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/bin/executor.mjs +1082 -559
- package/package.json +1 -1
- package/resources/web/assets/{highlighted-body-TPN3WLV5-DYg1rqdL.js → highlighted-body-TPN3WLV5-Baq9vVYv.js} +1 -1
- package/resources/web/assets/{index-BuXgGpBl.js → index-DRH7lJOm.js} +2 -2
- package/resources/web/assets/{mermaid-O7DHMXV3-Du9Efp9a.js → mermaid-O7DHMXV3-DGEw29FN.js} +3 -3
- package/resources/web/index.html +1 -1
package/bin/executor.mjs
CHANGED
|
@@ -18418,12 +18418,12 @@ var require_readShebang = __commonJS((exports, module) => {
|
|
|
18418
18418
|
var fs = __require("fs");
|
|
18419
18419
|
var shebangCommand = require_shebang_command();
|
|
18420
18420
|
function readShebang(command) {
|
|
18421
|
-
const
|
|
18422
|
-
const buffer3 = Buffer.alloc(
|
|
18421
|
+
const size14 = 150;
|
|
18422
|
+
const buffer3 = Buffer.alloc(size14);
|
|
18423
18423
|
let fd;
|
|
18424
18424
|
try {
|
|
18425
18425
|
fd = fs.openSync(command, "r");
|
|
18426
|
-
fs.readSync(fd, buffer3, 0,
|
|
18426
|
+
fs.readSync(fd, buffer3, 0, size14, 0);
|
|
18427
18427
|
fs.closeSync(fd);
|
|
18428
18428
|
} catch (e) {}
|
|
18429
18429
|
return shebangCommand(buffer3.toString());
|
|
@@ -19528,16 +19528,16 @@ var require_lexer2 = __commonJS((exports) => {
|
|
|
19528
19528
|
function readEscapedUnicodeVariableWidth(lexer2, position) {
|
|
19529
19529
|
const body = lexer2.source.body;
|
|
19530
19530
|
let point = 0;
|
|
19531
|
-
let
|
|
19532
|
-
while (
|
|
19533
|
-
const code2 = body.charCodeAt(position +
|
|
19531
|
+
let size14 = 3;
|
|
19532
|
+
while (size14 < 12) {
|
|
19533
|
+
const code2 = body.charCodeAt(position + size14++);
|
|
19534
19534
|
if (code2 === 125) {
|
|
19535
|
-
if (
|
|
19535
|
+
if (size14 < 5 || !isUnicodeScalarValue(point)) {
|
|
19536
19536
|
break;
|
|
19537
19537
|
}
|
|
19538
19538
|
return {
|
|
19539
19539
|
value: String.fromCodePoint(point),
|
|
19540
|
-
size:
|
|
19540
|
+
size: size14
|
|
19541
19541
|
};
|
|
19542
19542
|
}
|
|
19543
19543
|
point = point << 4 | readHexDigit(code2);
|
|
@@ -19545,7 +19545,7 @@ var require_lexer2 = __commonJS((exports) => {
|
|
|
19545
19545
|
break;
|
|
19546
19546
|
}
|
|
19547
19547
|
}
|
|
19548
|
-
throw (0, _syntaxError.syntaxError)(lexer2.source, position, `Invalid Unicode escape sequence: "${body.slice(position, position +
|
|
19548
|
+
throw (0, _syntaxError.syntaxError)(lexer2.source, position, `Invalid Unicode escape sequence: "${body.slice(position, position + size14)}".`);
|
|
19549
19549
|
}
|
|
19550
19550
|
function readEscapedUnicodeFixedWidth(lexer2, position) {
|
|
19551
19551
|
const body = lexer2.source.body;
|
|
@@ -33072,18 +33072,18 @@ var __defProp2, __export2 = (target, all11) => {
|
|
|
33072
33072
|
}
|
|
33073
33073
|
handleAsyncify(asyncify, fn4) {
|
|
33074
33074
|
if (asyncify)
|
|
33075
|
-
return asyncify.handleSleep((
|
|
33075
|
+
return asyncify.handleSleep((done9) => {
|
|
33076
33076
|
try {
|
|
33077
33077
|
let result = fn4();
|
|
33078
33078
|
if (!(result instanceof Promise)) {
|
|
33079
|
-
debugLog("asyncify.handleSleep: not suspending:", result),
|
|
33079
|
+
debugLog("asyncify.handleSleep: not suspending:", result), done9(result);
|
|
33080
33080
|
return;
|
|
33081
33081
|
}
|
|
33082
33082
|
if (this.suspended)
|
|
33083
33083
|
throw new QuickJSAsyncifyError(`Already suspended at: ${this.suspended.stack}
|
|
33084
33084
|
Attempted to suspend at:`);
|
|
33085
33085
|
this.suspended = new QuickJSAsyncifySuspended(`(${this.suspendedCount++})`), debugLog("asyncify.handleSleep: suspending:", this.suspended), result.then((resolvedResult) => {
|
|
33086
|
-
this.suspended = undefined, debugLog("asyncify.handleSleep: resolved:", resolvedResult),
|
|
33086
|
+
this.suspended = undefined, debugLog("asyncify.handleSleep: resolved:", resolvedResult), done9(resolvedResult);
|
|
33087
33087
|
}, (error51) => {
|
|
33088
33088
|
debugLog("asyncify.handleSleep: rejected:", error51), console.error("QuickJS: cannot handle error in suspended function", error51), this.suspended = undefined;
|
|
33089
33089
|
});
|
|
@@ -33449,11 +33449,11 @@ Lifetime used`) : new QuickJSUseAfterFree("Lifetime not alive");
|
|
|
33449
33449
|
let callResult = input ? this.context.callFunction(method, this.handle, input) : this.context.callFunction(method, this.handle);
|
|
33450
33450
|
if (callResult.error)
|
|
33451
33451
|
return this.dispose(), { value: callResult };
|
|
33452
|
-
let
|
|
33453
|
-
if (
|
|
33454
|
-
return callResult.value.dispose(), this.dispose(), { done:
|
|
33452
|
+
let done9 = this.context.getProp(callResult.value, "done").consume((v5) => this.context.dump(v5));
|
|
33453
|
+
if (done9)
|
|
33454
|
+
return callResult.value.dispose(), this.dispose(), { done: done9, value: undefined };
|
|
33455
33455
|
let value7 = this.context.getProp(callResult.value, "value");
|
|
33456
|
-
return callResult.value.dispose(), { value: DisposableResult.success(value7), done:
|
|
33456
|
+
return callResult.value.dispose(), { value: DisposableResult.success(value7), done: done9 };
|
|
33457
33457
|
}
|
|
33458
33458
|
};
|
|
33459
33459
|
ContextMemory = class extends ModuleMemory {
|
|
@@ -37583,10 +37583,10 @@ var require_typescript = __commonJS((exports, module) => {
|
|
|
37583
37583
|
}
|
|
37584
37584
|
function reduceLeft(array10, f5, initial, start3, count4) {
|
|
37585
37585
|
if (array10 && array10.length > 0) {
|
|
37586
|
-
const
|
|
37587
|
-
if (
|
|
37586
|
+
const size14 = array10.length;
|
|
37587
|
+
if (size14 > 0) {
|
|
37588
37588
|
let pos = start3 === undefined || start3 < 0 ? 0 : start3;
|
|
37589
|
-
const end5 = count4 === undefined || pos + count4 >
|
|
37589
|
+
const end5 = count4 === undefined || pos + count4 > size14 - 1 ? size14 - 1 : pos + count4;
|
|
37590
37590
|
let result;
|
|
37591
37591
|
if (arguments.length <= 2) {
|
|
37592
37592
|
result = array10[pos];
|
|
@@ -37815,7 +37815,7 @@ var require_typescript = __commonJS((exports, module) => {
|
|
|
37815
37815
|
}
|
|
37816
37816
|
function createSet(getHashCode, equals5) {
|
|
37817
37817
|
const multiMap = /* @__PURE__ */ new Map;
|
|
37818
|
-
let
|
|
37818
|
+
let size14 = 0;
|
|
37819
37819
|
function* getElementIterator() {
|
|
37820
37820
|
for (const value7 of multiMap.values()) {
|
|
37821
37821
|
if (isArray2(value7)) {
|
|
@@ -37842,18 +37842,18 @@ var require_typescript = __commonJS((exports, module) => {
|
|
|
37842
37842
|
if (isArray2(values4)) {
|
|
37843
37843
|
if (!contains4(values4, element2, equals5)) {
|
|
37844
37844
|
values4.push(element2);
|
|
37845
|
-
|
|
37845
|
+
size14++;
|
|
37846
37846
|
}
|
|
37847
37847
|
} else {
|
|
37848
37848
|
const value7 = values4;
|
|
37849
37849
|
if (!equals5(value7, element2)) {
|
|
37850
37850
|
multiMap.set(hash3, [value7, element2]);
|
|
37851
|
-
|
|
37851
|
+
size14++;
|
|
37852
37852
|
}
|
|
37853
37853
|
}
|
|
37854
37854
|
} else {
|
|
37855
37855
|
multiMap.set(hash3, element2);
|
|
37856
|
-
|
|
37856
|
+
size14++;
|
|
37857
37857
|
}
|
|
37858
37858
|
return this;
|
|
37859
37859
|
},
|
|
@@ -37872,7 +37872,7 @@ var require_typescript = __commonJS((exports, module) => {
|
|
|
37872
37872
|
} else {
|
|
37873
37873
|
unorderedRemoveItemAt(candidates, i);
|
|
37874
37874
|
}
|
|
37875
|
-
|
|
37875
|
+
size14--;
|
|
37876
37876
|
return true;
|
|
37877
37877
|
}
|
|
37878
37878
|
}
|
|
@@ -37880,7 +37880,7 @@ var require_typescript = __commonJS((exports, module) => {
|
|
|
37880
37880
|
const candidate = candidates;
|
|
37881
37881
|
if (equals5(candidate, element2)) {
|
|
37882
37882
|
multiMap.delete(hash3);
|
|
37883
|
-
|
|
37883
|
+
size14--;
|
|
37884
37884
|
return true;
|
|
37885
37885
|
}
|
|
37886
37886
|
}
|
|
@@ -37888,10 +37888,10 @@ var require_typescript = __commonJS((exports, module) => {
|
|
|
37888
37888
|
},
|
|
37889
37889
|
clear() {
|
|
37890
37890
|
multiMap.clear();
|
|
37891
|
-
|
|
37891
|
+
size14 = 0;
|
|
37892
37892
|
},
|
|
37893
37893
|
get size() {
|
|
37894
|
-
return
|
|
37894
|
+
return size14;
|
|
37895
37895
|
},
|
|
37896
37896
|
forEach(action) {
|
|
37897
37897
|
for (const elements of arrayFrom(multiMap.values())) {
|
|
@@ -47312,9 +47312,9 @@ ${lanes.join(`
|
|
|
47312
47312
|
pos += charSize(ch2);
|
|
47313
47313
|
continue;
|
|
47314
47314
|
}
|
|
47315
|
-
const
|
|
47316
|
-
error210(Diagnostics.Invalid_character, pos,
|
|
47317
|
-
pos +=
|
|
47315
|
+
const size14 = charSize(ch2);
|
|
47316
|
+
error210(Diagnostics.Invalid_character, pos, size14);
|
|
47317
|
+
pos += size14;
|
|
47318
47318
|
return token = 0;
|
|
47319
47319
|
}
|
|
47320
47320
|
}
|
|
@@ -47459,21 +47459,21 @@ ${lanes.join(`
|
|
|
47459
47459
|
if (ch2 === -1 || !isIdentifierPart(ch2, languageVersion)) {
|
|
47460
47460
|
break;
|
|
47461
47461
|
}
|
|
47462
|
-
const
|
|
47462
|
+
const size14 = charSize(ch2);
|
|
47463
47463
|
if (reportErrors2) {
|
|
47464
47464
|
const flag = characterCodeToRegularExpressionFlag(ch2);
|
|
47465
47465
|
if (flag === undefined) {
|
|
47466
|
-
error210(Diagnostics.Unknown_regular_expression_flag, pos,
|
|
47466
|
+
error210(Diagnostics.Unknown_regular_expression_flag, pos, size14);
|
|
47467
47467
|
} else if (regExpFlags & flag) {
|
|
47468
|
-
error210(Diagnostics.Duplicate_regular_expression_flag, pos,
|
|
47468
|
+
error210(Diagnostics.Duplicate_regular_expression_flag, pos, size14);
|
|
47469
47469
|
} else if (((regExpFlags | flag) & 96) === 96) {
|
|
47470
|
-
error210(Diagnostics.The_Unicode_u_flag_and_the_Unicode_Sets_v_flag_cannot_be_set_simultaneously, pos,
|
|
47470
|
+
error210(Diagnostics.The_Unicode_u_flag_and_the_Unicode_Sets_v_flag_cannot_be_set_simultaneously, pos, size14);
|
|
47471
47471
|
} else {
|
|
47472
47472
|
regExpFlags |= flag;
|
|
47473
|
-
checkRegularExpressionFlagAvailability(flag,
|
|
47473
|
+
checkRegularExpressionFlagAvailability(flag, size14);
|
|
47474
47474
|
}
|
|
47475
47475
|
}
|
|
47476
|
-
pos +=
|
|
47476
|
+
pos += size14;
|
|
47477
47477
|
}
|
|
47478
47478
|
if (reportErrors2) {
|
|
47479
47479
|
scanRange(startOfRegExpBody, endOfRegExpBody - startOfRegExpBody, () => {
|
|
@@ -47681,19 +47681,19 @@ ${lanes.join(`
|
|
|
47681
47681
|
if (ch2 === -1 || !isIdentifierPart(ch2, languageVersion)) {
|
|
47682
47682
|
break;
|
|
47683
47683
|
}
|
|
47684
|
-
const
|
|
47684
|
+
const size14 = charSize(ch2);
|
|
47685
47685
|
const flag = characterCodeToRegularExpressionFlag(ch2);
|
|
47686
47686
|
if (flag === undefined) {
|
|
47687
|
-
error210(Diagnostics.Unknown_regular_expression_flag, pos,
|
|
47687
|
+
error210(Diagnostics.Unknown_regular_expression_flag, pos, size14);
|
|
47688
47688
|
} else if (currFlags & flag) {
|
|
47689
|
-
error210(Diagnostics.Duplicate_regular_expression_flag, pos,
|
|
47689
|
+
error210(Diagnostics.Duplicate_regular_expression_flag, pos, size14);
|
|
47690
47690
|
} else if (!(flag & 28)) {
|
|
47691
|
-
error210(Diagnostics.This_regular_expression_flag_cannot_be_toggled_within_a_subpattern, pos,
|
|
47691
|
+
error210(Diagnostics.This_regular_expression_flag_cannot_be_toggled_within_a_subpattern, pos, size14);
|
|
47692
47692
|
} else {
|
|
47693
47693
|
currFlags |= flag;
|
|
47694
|
-
checkRegularExpressionFlagAvailability(flag,
|
|
47694
|
+
checkRegularExpressionFlagAvailability(flag, size14);
|
|
47695
47695
|
}
|
|
47696
|
-
pos +=
|
|
47696
|
+
pos += size14;
|
|
47697
47697
|
}
|
|
47698
47698
|
return currFlags;
|
|
47699
47699
|
}
|
|
@@ -48265,9 +48265,9 @@ ${lanes.join(`
|
|
|
48265
48265
|
return value7;
|
|
48266
48266
|
}
|
|
48267
48267
|
function scanSourceCharacter() {
|
|
48268
|
-
const
|
|
48269
|
-
pos +=
|
|
48270
|
-
return
|
|
48268
|
+
const size14 = anyUnicodeMode ? charSize(codePointChecked(pos)) : 1;
|
|
48269
|
+
pos += size14;
|
|
48270
|
+
return size14 > 0 ? text15.substring(pos - size14, pos) : "";
|
|
48271
48271
|
}
|
|
48272
48272
|
function scanExpectedChar(ch2) {
|
|
48273
48273
|
if (charCodeChecked(pos) === ch2) {
|
|
@@ -48298,10 +48298,10 @@ ${lanes.join(`
|
|
|
48298
48298
|
}
|
|
48299
48299
|
});
|
|
48300
48300
|
}
|
|
48301
|
-
function checkRegularExpressionFlagAvailability(flag,
|
|
48301
|
+
function checkRegularExpressionFlagAvailability(flag, size14) {
|
|
48302
48302
|
const availableFrom = regExpFlagToFirstAvailableLanguageVersion.get(flag);
|
|
48303
48303
|
if (availableFrom && languageVersion < availableFrom) {
|
|
48304
|
-
error210(Diagnostics.This_regular_expression_flag_is_only_available_when_targeting_0_or_later, pos,
|
|
48304
|
+
error210(Diagnostics.This_regular_expression_flag_is_only_available_when_targeting_0_or_later, pos, size14, getNameOfScriptTarget(availableFrom));
|
|
48305
48305
|
}
|
|
48306
48306
|
}
|
|
48307
48307
|
function appendIfCommentDirective(commentDirectives2, text22, commentDirectiveRegEx, lineStart) {
|
|
@@ -64888,11 +64888,11 @@ ${lanes.join(`
|
|
|
64888
64888
|
return stackIndex;
|
|
64889
64889
|
}
|
|
64890
64890
|
BinaryExpressionState2.exit = exit3;
|
|
64891
|
-
function
|
|
64892
|
-
Debug2.assertEqual(stateStack[stackIndex],
|
|
64891
|
+
function done9(_machine, stackIndex, stateStack, _nodeStack, _userStateStack, _resultHolder, _outerState) {
|
|
64892
|
+
Debug2.assertEqual(stateStack[stackIndex], done9);
|
|
64893
64893
|
return stackIndex;
|
|
64894
64894
|
}
|
|
64895
|
-
BinaryExpressionState2.done =
|
|
64895
|
+
BinaryExpressionState2.done = done9;
|
|
64896
64896
|
function nextState(machine, currentState) {
|
|
64897
64897
|
switch (currentState) {
|
|
64898
64898
|
case enter:
|
|
@@ -64907,9 +64907,9 @@ ${lanes.join(`
|
|
|
64907
64907
|
case right3:
|
|
64908
64908
|
return exit3;
|
|
64909
64909
|
case exit3:
|
|
64910
|
-
return
|
|
64911
|
-
case
|
|
64912
|
-
return
|
|
64910
|
+
return done9;
|
|
64911
|
+
case done9:
|
|
64912
|
+
return done9;
|
|
64913
64913
|
default:
|
|
64914
64914
|
Debug2.fail("Invalid state");
|
|
64915
64915
|
}
|
|
@@ -93908,9 +93908,9 @@ ${lanes.join(`
|
|
|
93908
93908
|
}
|
|
93909
93909
|
function checkCrossProductUnion(types3) {
|
|
93910
93910
|
var _a5;
|
|
93911
|
-
const
|
|
93912
|
-
if (
|
|
93913
|
-
(_a5 = tracing) == null || _a5.instant(tracing.Phase.CheckTypes, "checkCrossProductUnion_DepthLimit", { typeIds: types3.map((t) => t.id), size:
|
|
93911
|
+
const size14 = getCrossProductUnionSize(types3);
|
|
93912
|
+
if (size14 >= 1e5) {
|
|
93913
|
+
(_a5 = tracing) == null || _a5.instant(tracing.Phase.CheckTypes, "checkCrossProductUnion_DepthLimit", { typeIds: types3.map((t) => t.id), size: size14 });
|
|
93914
93914
|
error210(currentNode, Diagnostics.Expression_produces_a_union_type_that_is_too_complex_to_represent);
|
|
93915
93915
|
return false;
|
|
93916
93916
|
}
|
|
@@ -119852,7 +119852,7 @@ ${lanes.join(`
|
|
|
119852
119852
|
return;
|
|
119853
119853
|
}
|
|
119854
119854
|
function decodeMappings(mappings) {
|
|
119855
|
-
let
|
|
119855
|
+
let done9 = false;
|
|
119856
119856
|
let pos = 0;
|
|
119857
119857
|
let generatedLine = 0;
|
|
119858
119858
|
let generatedCharacter = 0;
|
|
@@ -119872,7 +119872,7 @@ ${lanes.join(`
|
|
|
119872
119872
|
return captureMapping(true, true);
|
|
119873
119873
|
},
|
|
119874
119874
|
next() {
|
|
119875
|
-
while (!
|
|
119875
|
+
while (!done9 && pos < mappings.length) {
|
|
119876
119876
|
const ch2 = mappings.charCodeAt(pos);
|
|
119877
119877
|
if (ch2 === 59) {
|
|
119878
119878
|
generatedLine++;
|
|
@@ -119923,7 +119923,7 @@ ${lanes.join(`
|
|
|
119923
119923
|
return setErrorAndStopIterating("Unsupported Error Format: Entries after nameIndex");
|
|
119924
119924
|
}
|
|
119925
119925
|
}
|
|
119926
|
-
return { value: captureMapping(hasSource, hasName), done:
|
|
119926
|
+
return { value: captureMapping(hasSource, hasName), done: done9 };
|
|
119927
119927
|
}
|
|
119928
119928
|
return stopIterating();
|
|
119929
119929
|
},
|
|
@@ -119942,7 +119942,7 @@ ${lanes.join(`
|
|
|
119942
119942
|
};
|
|
119943
119943
|
}
|
|
119944
119944
|
function stopIterating() {
|
|
119945
|
-
|
|
119945
|
+
done9 = true;
|
|
119946
119946
|
return { value: undefined, done: true };
|
|
119947
119947
|
}
|
|
119948
119948
|
function setError(message) {
|
|
@@ -126999,7 +126999,7 @@ ${lanes.join(`
|
|
|
126999
126999
|
const iterator = isIdentifier(expression) ? factory2.getGeneratedNameForNode(expression) : factory2.createTempVariable(undefined);
|
|
127000
127000
|
const result = isIdentifier(expression) ? factory2.getGeneratedNameForNode(iterator) : factory2.createTempVariable(undefined);
|
|
127001
127001
|
const nonUserCode = factory2.createTempVariable(undefined);
|
|
127002
|
-
const
|
|
127002
|
+
const done9 = factory2.createTempVariable(hoistVariableDeclaration);
|
|
127003
127003
|
const errorRecord = factory2.createUniqueName("e");
|
|
127004
127004
|
const catchVariable = factory2.getGeneratedNameForNode(errorRecord);
|
|
127005
127005
|
const returnMethod = factory2.createTempVariable(undefined);
|
|
@@ -127017,8 +127017,8 @@ ${lanes.join(`
|
|
|
127017
127017
|
factory2.createVariableDeclaration(result)
|
|
127018
127018
|
]), node.expression), 4194304), factory2.inlineExpressions([
|
|
127019
127019
|
factory2.createAssignment(result, createDownlevelAwait(callNext)),
|
|
127020
|
-
factory2.createAssignment(
|
|
127021
|
-
factory2.createLogicalNot(
|
|
127020
|
+
factory2.createAssignment(done9, getDone),
|
|
127021
|
+
factory2.createLogicalNot(done9)
|
|
127022
127022
|
]), factory2.createAssignment(nonUserCode, factory2.createTrue()), convertForOfStatementHead(node, getValue2, nonUserCode)), node), 512);
|
|
127023
127023
|
setOriginalNode(forStatement, node);
|
|
127024
127024
|
return factory2.createTryStatement(factory2.createBlock([
|
|
@@ -127029,7 +127029,7 @@ ${lanes.join(`
|
|
|
127029
127029
|
])))
|
|
127030
127030
|
]), 1)), factory2.createBlock([
|
|
127031
127031
|
factory2.createTryStatement(factory2.createBlock([
|
|
127032
|
-
setEmitFlags2(factory2.createIfStatement(factory2.createLogicalAnd(factory2.createLogicalAnd(factory2.createLogicalNot(nonUserCode), factory2.createLogicalNot(
|
|
127032
|
+
setEmitFlags2(factory2.createIfStatement(factory2.createLogicalAnd(factory2.createLogicalAnd(factory2.createLogicalNot(nonUserCode), factory2.createLogicalNot(done9)), factory2.createAssignment(returnMethod, factory2.createPropertyAccessExpression(iterator, "return"))), factory2.createExpressionStatement(createDownlevelAwait(callReturn))), 1)
|
|
127033
127033
|
]), undefined, setEmitFlags2(factory2.createBlock([
|
|
127034
127034
|
setEmitFlags2(factory2.createIfStatement(errorRecord, factory2.createThrowStatement(factory2.createPropertyAccessExpression(errorRecord, "error"))), 1)
|
|
127035
127035
|
]), 1))
|
|
@@ -145564,18 +145564,18 @@ ${lanes.join(`
|
|
|
145564
145564
|
state2.programEmitPending = undefined;
|
|
145565
145565
|
}
|
|
145566
145566
|
(_b2 = state2.affectedFilesPendingEmit) == null || _b2.forEach((emitKind, path4) => {
|
|
145567
|
-
const
|
|
145568
|
-
if (!
|
|
145567
|
+
const pending3 = !isForDtsErrors ? emitKind & 7 : emitKind & (7 | 48);
|
|
145568
|
+
if (!pending3)
|
|
145569
145569
|
state2.affectedFilesPendingEmit.delete(path4);
|
|
145570
145570
|
else
|
|
145571
|
-
state2.affectedFilesPendingEmit.set(path4,
|
|
145571
|
+
state2.affectedFilesPendingEmit.set(path4, pending3);
|
|
145572
145572
|
});
|
|
145573
145573
|
if (state2.programEmitPending) {
|
|
145574
|
-
const
|
|
145575
|
-
if (!
|
|
145574
|
+
const pending3 = !isForDtsErrors ? state2.programEmitPending & 7 : state2.programEmitPending & (7 | 48);
|
|
145575
|
+
if (!pending3)
|
|
145576
145576
|
state2.programEmitPending = undefined;
|
|
145577
145577
|
else
|
|
145578
|
-
state2.programEmitPending =
|
|
145578
|
+
state2.programEmitPending = pending3;
|
|
145579
145579
|
}
|
|
145580
145580
|
}
|
|
145581
145581
|
function getPendingEmitKindWithSeen(optionsOrEmitKind, seenOldOptionsOrEmitKind, emitOnlyDtsFiles, isForDtsErrors) {
|
|
@@ -148524,8 +148524,8 @@ ${lanes.join(`
|
|
|
148524
148524
|
if (!host.setTimeout || !host.clearTimeout) {
|
|
148525
148525
|
return resolutionCache.invalidateResolutionsOfFailedLookupLocations();
|
|
148526
148526
|
}
|
|
148527
|
-
const
|
|
148528
|
-
writeLog(`Scheduling invalidateFailedLookup${
|
|
148527
|
+
const pending3 = clearInvalidateResolutionsOfFailedLookupLocations();
|
|
148528
|
+
writeLog(`Scheduling invalidateFailedLookup${pending3 ? ", Cancelled earlier one" : ""}`);
|
|
148529
148529
|
timerToInvalidateFailedLookupResolutions = host.setTimeout(invalidateResolutionsOfFailedLookup, 250, "timerToInvalidateFailedLookupResolutions");
|
|
148530
148530
|
}
|
|
148531
148531
|
function invalidateResolutionsOfFailedLookup() {
|
|
@@ -149207,9 +149207,9 @@ ${lanes.join(`
|
|
|
149207
149207
|
executeSteps(0, cancellationToken);
|
|
149208
149208
|
return emit(writeFile22, cancellationToken, customTransformers);
|
|
149209
149209
|
},
|
|
149210
|
-
done:
|
|
149210
|
+
done: done9
|
|
149211
149211
|
};
|
|
149212
|
-
function
|
|
149212
|
+
function done9(cancellationToken, writeFile22, customTransformers) {
|
|
149213
149213
|
executeSteps(3, cancellationToken, writeFile22, customTransformers);
|
|
149214
149214
|
mark("SolutionBuilder::Projects built");
|
|
149215
149215
|
return doneInvalidatedProject(state2, projectPath);
|
|
@@ -195817,7 +195817,7 @@ ${options9.prefix}` : `
|
|
|
195817
195817
|
continue;
|
|
195818
195818
|
}
|
|
195819
195819
|
}
|
|
195820
|
-
const
|
|
195820
|
+
const done9 = forEach11([hostProject.currentDirectory, hostProject.getGlobalTypingsCacheLocation()], (directory5) => {
|
|
195821
195821
|
if (directory5) {
|
|
195822
195822
|
const typesPackageJson = resolvePackageNameToPackageJson(`@types/${name}`, directory5, compilerOptions, host, program.getModuleResolutionCache());
|
|
195823
195823
|
if (typesPackageJson) {
|
|
@@ -195827,7 +195827,7 @@ ${options9.prefix}` : `
|
|
|
195827
195827
|
}
|
|
195828
195828
|
}
|
|
195829
195829
|
});
|
|
195830
|
-
if (
|
|
195830
|
+
if (done9)
|
|
195831
195831
|
continue;
|
|
195832
195832
|
if (packageJson && compilerOptions.allowJs && compilerOptions.maxNodeModuleJsDepth) {
|
|
195833
195833
|
const entrypoints = getRootNamesFromPackageJson(packageJson, program, symlinkCache, true);
|
|
@@ -209604,12 +209604,12 @@ var require_ConsoleSpanExporter = __commonJS((exports) => {
|
|
|
209604
209604
|
links: span3.links
|
|
209605
209605
|
};
|
|
209606
209606
|
}
|
|
209607
|
-
_sendSpans(spans2,
|
|
209607
|
+
_sendSpans(spans2, done9) {
|
|
209608
209608
|
for (const span3 of spans2) {
|
|
209609
209609
|
console.dir(this._exportInfo(span3), { depth: 3 });
|
|
209610
209610
|
}
|
|
209611
|
-
if (
|
|
209612
|
-
return
|
|
209611
|
+
if (done9) {
|
|
209612
|
+
return done9({ code: core_1.ExportResultCode.SUCCESS });
|
|
209613
209613
|
}
|
|
209614
209614
|
}
|
|
209615
209615
|
}
|
|
@@ -210561,11 +210561,11 @@ var require_ConsoleLogRecordExporter = __commonJS((exports) => {
|
|
|
210561
210561
|
attributes: logRecord.attributes
|
|
210562
210562
|
};
|
|
210563
210563
|
}
|
|
210564
|
-
_sendLogRecords(logRecords,
|
|
210564
|
+
_sendLogRecords(logRecords, done9) {
|
|
210565
210565
|
for (const logRecord of logRecords) {
|
|
210566
210566
|
console.dir(this._exportInfo(logRecord), { depth: 3 });
|
|
210567
210567
|
}
|
|
210568
|
-
|
|
210568
|
+
done9?.({ code: core_1.ExportResultCode.SUCCESS });
|
|
210569
210569
|
}
|
|
210570
210570
|
}
|
|
210571
210571
|
exports.ConsoleLogRecordExporter = ConsoleLogRecordExporter;
|
|
@@ -211247,7 +211247,7 @@ var require_Buckets = __commonJS((exports) => {
|
|
|
211247
211247
|
}
|
|
211248
211248
|
downscale(by2) {
|
|
211249
211249
|
this._rotate();
|
|
211250
|
-
const
|
|
211250
|
+
const size14 = 1 + this.indexEnd - this.indexStart;
|
|
211251
211251
|
const each = 1 << by2;
|
|
211252
211252
|
let inpos = 0;
|
|
211253
211253
|
let outpos = 0;
|
|
@@ -211256,7 +211256,7 @@ var require_Buckets = __commonJS((exports) => {
|
|
|
211256
211256
|
if (mod2 < 0) {
|
|
211257
211257
|
mod2 += each;
|
|
211258
211258
|
}
|
|
211259
|
-
for (let i = mod2;i < each && inpos <
|
|
211259
|
+
for (let i = mod2;i < each && inpos < size14; i++) {
|
|
211260
211260
|
this._relocateBucket(outpos, inpos);
|
|
211261
211261
|
inpos++;
|
|
211262
211262
|
pos++;
|
|
@@ -211762,9 +211762,9 @@ var require_ExponentialHistogram = __commonJS((exports) => {
|
|
|
211762
211762
|
buckets.incrementBucket(bucketIndex, increment2);
|
|
211763
211763
|
}
|
|
211764
211764
|
_grow(buckets, needed) {
|
|
211765
|
-
const
|
|
211765
|
+
const size14 = buckets.backing.length;
|
|
211766
211766
|
const bias = buckets.indexBase - buckets.indexStart;
|
|
211767
|
-
const oldPositiveLimit =
|
|
211767
|
+
const oldPositiveLimit = size14 - bias;
|
|
211768
211768
|
let newSize = (0, util_1.nextGreaterSquare)(needed);
|
|
211769
211769
|
if (newSize > this._maxSize) {
|
|
211770
211770
|
newSize = this._maxSize;
|
|
@@ -212504,7 +212504,7 @@ var require_ConsoleMetricExporter = __commonJS((exports) => {
|
|
|
212504
212504
|
this._shutdown = true;
|
|
212505
212505
|
return Promise.resolve();
|
|
212506
212506
|
}
|
|
212507
|
-
static _sendMetrics(metrics,
|
|
212507
|
+
static _sendMetrics(metrics, done9) {
|
|
212508
212508
|
for (const scopeMetrics of metrics.scopeMetrics) {
|
|
212509
212509
|
for (const metric of scopeMetrics.metrics) {
|
|
212510
212510
|
console.dir({
|
|
@@ -212514,7 +212514,7 @@ var require_ConsoleMetricExporter = __commonJS((exports) => {
|
|
|
212514
212514
|
}, { depth: null });
|
|
212515
212515
|
}
|
|
212516
212516
|
}
|
|
212517
|
-
|
|
212517
|
+
done9({ code: core_1.ExportResultCode.SUCCESS });
|
|
212518
212518
|
}
|
|
212519
212519
|
}
|
|
212520
212520
|
exports.ConsoleMetricExporter = ConsoleMetricExporter;
|
|
@@ -218808,13 +218808,13 @@ var require_lodash = __commonJS((exports, module) => {
|
|
|
218808
218808
|
var require_aspromise = __commonJS((exports, module) => {
|
|
218809
218809
|
module.exports = asPromise;
|
|
218810
218810
|
function asPromise(fn4, ctx) {
|
|
218811
|
-
var params2 = new Array(arguments.length - 1), offset = 0, index = 2,
|
|
218811
|
+
var params2 = new Array(arguments.length - 1), offset = 0, index = 2, pending3 = true;
|
|
218812
218812
|
while (index < arguments.length)
|
|
218813
218813
|
params2[offset++] = arguments[index++];
|
|
218814
218814
|
return new Promise(function executor(resolve6, reject) {
|
|
218815
218815
|
params2[offset] = function callback(err) {
|
|
218816
|
-
if (
|
|
218817
|
-
|
|
218816
|
+
if (pending3) {
|
|
218817
|
+
pending3 = false;
|
|
218818
218818
|
if (err)
|
|
218819
218819
|
reject(err);
|
|
218820
218820
|
else {
|
|
@@ -218828,8 +218828,8 @@ var require_aspromise = __commonJS((exports, module) => {
|
|
|
218828
218828
|
try {
|
|
218829
218829
|
fn4.apply(ctx || null, params2);
|
|
218830
218830
|
} catch (err) {
|
|
218831
|
-
if (
|
|
218832
|
-
|
|
218831
|
+
if (pending3) {
|
|
218832
|
+
pending3 = false;
|
|
218833
218833
|
reject(err);
|
|
218834
218834
|
}
|
|
218835
218835
|
}
|
|
@@ -219250,19 +219250,19 @@ var require_utf8 = __commonJS((exports) => {
|
|
|
219250
219250
|
// node_modules/@protobufjs/pool/index.js
|
|
219251
219251
|
var require_pool = __commonJS((exports, module) => {
|
|
219252
219252
|
module.exports = pool;
|
|
219253
|
-
function pool(alloc, slice,
|
|
219254
|
-
var SIZE2 =
|
|
219253
|
+
function pool(alloc, slice, size14) {
|
|
219254
|
+
var SIZE2 = size14 || 8192;
|
|
219255
219255
|
var MAX = SIZE2 >>> 1;
|
|
219256
219256
|
var slab = null;
|
|
219257
219257
|
var offset = SIZE2;
|
|
219258
|
-
return function pool_alloc(
|
|
219259
|
-
if (
|
|
219260
|
-
return alloc(
|
|
219261
|
-
if (offset +
|
|
219258
|
+
return function pool_alloc(size15) {
|
|
219259
|
+
if (size15 < 1 || size15 > MAX)
|
|
219260
|
+
return alloc(size15);
|
|
219261
|
+
if (offset + size15 > SIZE2) {
|
|
219262
219262
|
slab = alloc(SIZE2);
|
|
219263
219263
|
offset = 0;
|
|
219264
219264
|
}
|
|
219265
|
-
var buf = slice.call(slab, offset, offset +=
|
|
219265
|
+
var buf = slice.call(slab, offset, offset += size15);
|
|
219266
219266
|
if (offset & 7)
|
|
219267
219267
|
offset = (offset | 7) + 1;
|
|
219268
219268
|
return buf;
|
|
@@ -219498,8 +219498,8 @@ var require_minimal = __commonJS((exports) => {
|
|
|
219498
219498
|
util2._Buffer_from = Buffer2.from !== Uint8Array.from && Buffer2.from || function Buffer_from(value7, encoding) {
|
|
219499
219499
|
return new Buffer2(value7, encoding);
|
|
219500
219500
|
};
|
|
219501
|
-
util2._Buffer_allocUnsafe = Buffer2.allocUnsafe || function Buffer_allocUnsafe(
|
|
219502
|
-
return new Buffer2(
|
|
219501
|
+
util2._Buffer_allocUnsafe = Buffer2.allocUnsafe || function Buffer_allocUnsafe(size14) {
|
|
219502
|
+
return new Buffer2(size14);
|
|
219503
219503
|
};
|
|
219504
219504
|
};
|
|
219505
219505
|
});
|
|
@@ -219541,8 +219541,8 @@ var require_writer = __commonJS((exports, module) => {
|
|
|
219541
219541
|
};
|
|
219542
219542
|
};
|
|
219543
219543
|
Writer.create = create();
|
|
219544
|
-
Writer.alloc = function alloc(
|
|
219545
|
-
return new util2.Array(
|
|
219544
|
+
Writer.alloc = function alloc(size14) {
|
|
219545
|
+
return new util2.Array(size14);
|
|
219546
219546
|
};
|
|
219547
219547
|
if (util2.Array !== Array)
|
|
219548
219548
|
Writer.alloc = util2.pool(Writer.alloc, util2.Array.prototype.subarray);
|
|
@@ -226477,9 +226477,9 @@ var require_umd = __commonJS((exports, module) => {
|
|
|
226477
226477
|
var radixToPower = fromNumber2(pow_dbl(radix, 8));
|
|
226478
226478
|
var result = ZERO;
|
|
226479
226479
|
for (var i = 0;i < str.length; i += 8) {
|
|
226480
|
-
var
|
|
226481
|
-
if (
|
|
226482
|
-
var power = fromNumber2(pow_dbl(radix,
|
|
226480
|
+
var size14 = Math.min(8, str.length - i), value7 = parseInt(str.substring(i, i + size14), radix);
|
|
226481
|
+
if (size14 < 8) {
|
|
226482
|
+
var power = fromNumber2(pow_dbl(radix, size14));
|
|
226483
226483
|
result = result.mul(power).add(fromNumber2(value7));
|
|
226484
226484
|
} else {
|
|
226485
226485
|
result = result.mul(radixToPower);
|
|
@@ -230774,27 +230774,27 @@ var require_retrying_call = __commonJS((exports) => {
|
|
|
230774
230774
|
this.totalAllocated = 0;
|
|
230775
230775
|
this.allocatedPerCall = new Map;
|
|
230776
230776
|
}
|
|
230777
|
-
allocate(
|
|
230777
|
+
allocate(size14, callId) {
|
|
230778
230778
|
var _a5;
|
|
230779
230779
|
const currentPerCall = (_a5 = this.allocatedPerCall.get(callId)) !== null && _a5 !== undefined ? _a5 : 0;
|
|
230780
|
-
if (this.limitPerCall - currentPerCall <
|
|
230780
|
+
if (this.limitPerCall - currentPerCall < size14 || this.totalLimit - this.totalAllocated < size14) {
|
|
230781
230781
|
return false;
|
|
230782
230782
|
}
|
|
230783
|
-
this.allocatedPerCall.set(callId, currentPerCall +
|
|
230784
|
-
this.totalAllocated +=
|
|
230783
|
+
this.allocatedPerCall.set(callId, currentPerCall + size14);
|
|
230784
|
+
this.totalAllocated += size14;
|
|
230785
230785
|
return true;
|
|
230786
230786
|
}
|
|
230787
|
-
free(
|
|
230787
|
+
free(size14, callId) {
|
|
230788
230788
|
var _a5;
|
|
230789
|
-
if (this.totalAllocated <
|
|
230790
|
-
throw new Error(`Invalid buffer allocation state: call ${callId} freed ${
|
|
230789
|
+
if (this.totalAllocated < size14) {
|
|
230790
|
+
throw new Error(`Invalid buffer allocation state: call ${callId} freed ${size14} > total allocated ${this.totalAllocated}`);
|
|
230791
230791
|
}
|
|
230792
|
-
this.totalAllocated -=
|
|
230792
|
+
this.totalAllocated -= size14;
|
|
230793
230793
|
const currentPerCall = (_a5 = this.allocatedPerCall.get(callId)) !== null && _a5 !== undefined ? _a5 : 0;
|
|
230794
|
-
if (currentPerCall <
|
|
230795
|
-
throw new Error(`Invalid buffer allocation state: call ${callId} freed ${
|
|
230794
|
+
if (currentPerCall < size14) {
|
|
230795
|
+
throw new Error(`Invalid buffer allocation state: call ${callId} freed ${size14} > allocated for call ${currentPerCall}`);
|
|
230796
230796
|
}
|
|
230797
|
-
this.allocatedPerCall.set(callId, currentPerCall -
|
|
230797
|
+
this.allocatedPerCall.set(callId, currentPerCall - size14);
|
|
230798
230798
|
}
|
|
230799
230799
|
freeAll(callId) {
|
|
230800
230800
|
var _a5;
|
|
@@ -232085,7 +232085,7 @@ var require_server_call = __commonJS((exports) => {
|
|
|
232085
232085
|
this.metadata = metadata;
|
|
232086
232086
|
this.cancelled = false;
|
|
232087
232087
|
}
|
|
232088
|
-
_read(
|
|
232088
|
+
_read(size14) {
|
|
232089
232089
|
this.call.startRead();
|
|
232090
232090
|
}
|
|
232091
232091
|
getPeer() {
|
|
@@ -232206,7 +232206,7 @@ var require_server_call = __commonJS((exports) => {
|
|
|
232206
232206
|
getMetricsRecorder() {
|
|
232207
232207
|
return this.call.getMetricsRecorder();
|
|
232208
232208
|
}
|
|
232209
|
-
_read(
|
|
232209
|
+
_read(size14) {
|
|
232210
232210
|
this.call.startRead();
|
|
232211
232211
|
}
|
|
232212
232212
|
_write(chunk4, encoding, callback) {
|
|
@@ -233588,7 +233588,7 @@ var require_server = __commonJS((exports) => {
|
|
|
233588
233588
|
var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
|
|
233589
233589
|
var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
|
|
233590
233590
|
var descriptor2 = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
|
|
233591
|
-
var _5,
|
|
233591
|
+
var _5, done9 = false;
|
|
233592
233592
|
for (var i = decorators.length - 1;i >= 0; i--) {
|
|
233593
233593
|
var context8 = {};
|
|
233594
233594
|
for (var p4 in contextIn)
|
|
@@ -233596,7 +233596,7 @@ var require_server = __commonJS((exports) => {
|
|
|
233596
233596
|
for (var p4 in contextIn.access)
|
|
233597
233597
|
context8.access[p4] = contextIn.access[p4];
|
|
233598
233598
|
context8.addInitializer = function(f5) {
|
|
233599
|
-
if (
|
|
233599
|
+
if (done9)
|
|
233600
233600
|
throw new TypeError("Cannot add initializers after decoration has completed");
|
|
233601
233601
|
extraInitializers.push(accept3(f5 || null));
|
|
233602
233602
|
};
|
|
@@ -233621,7 +233621,7 @@ var require_server = __commonJS((exports) => {
|
|
|
233621
233621
|
}
|
|
233622
233622
|
if (target)
|
|
233623
233623
|
Object.defineProperty(target, contextIn.name, descriptor2);
|
|
233624
|
-
|
|
233624
|
+
done9 = true;
|
|
233625
233625
|
};
|
|
233626
233626
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
233627
233627
|
exports.Server = undefined;
|
|
@@ -251954,6 +251954,7 @@ var deferredCompleteWith = /* @__PURE__ */ dual(2, (self2, effect) => sync(() =>
|
|
|
251954
251954
|
}));
|
|
251955
251955
|
var deferredDone = /* @__PURE__ */ dual(2, (self2, exit2) => deferredCompleteWith(self2, exit2));
|
|
251956
251956
|
var deferredFailCause = /* @__PURE__ */ dual(2, (self2, cause) => deferredCompleteWith(self2, failCause(cause)));
|
|
251957
|
+
var deferredInterrupt = (self2) => flatMap7(fiberId, (fiberId2) => deferredCompleteWith(self2, interruptWith(fiberId2)));
|
|
251957
251958
|
var deferredInterruptWith = /* @__PURE__ */ dual(2, (self2, fiberId2) => deferredCompleteWith(self2, interruptWith(fiberId2)));
|
|
251958
251959
|
var deferredIsDone = (self2) => sync(() => get6(self2.state)._tag === OP_STATE_DONE);
|
|
251959
251960
|
var deferredSucceed = /* @__PURE__ */ dual(2, (self2, value) => deferredCompleteWith(self2, succeed(value)));
|
|
@@ -252039,9 +252040,12 @@ var prettyErrors2 = prettyErrors;
|
|
|
252039
252040
|
// node_modules/effect/dist/esm/Deferred.js
|
|
252040
252041
|
var make19 = deferredMake;
|
|
252041
252042
|
var _await = deferredAwait;
|
|
252043
|
+
var done2 = deferredDone;
|
|
252042
252044
|
var failCause2 = deferredFailCause;
|
|
252045
|
+
var interrupt4 = deferredInterrupt;
|
|
252043
252046
|
var isDone = deferredIsDone;
|
|
252044
252047
|
var succeed2 = deferredSucceed;
|
|
252048
|
+
var unsafeMake4 = deferredUnsafeMake;
|
|
252045
252049
|
|
|
252046
252050
|
// node_modules/effect/dist/esm/internal/clock.js
|
|
252047
252051
|
var ClockSymbolKey = "effect/Clock";
|
|
@@ -252927,11 +252931,11 @@ var parallel4 = parallel3;
|
|
|
252927
252931
|
var parallelN2 = parallelN;
|
|
252928
252932
|
|
|
252929
252933
|
// node_modules/effect/dist/esm/internal/fiberRefs.js
|
|
252930
|
-
function
|
|
252934
|
+
function unsafeMake5(fiberRefLocals) {
|
|
252931
252935
|
return new FiberRefsImpl(fiberRefLocals);
|
|
252932
252936
|
}
|
|
252933
252937
|
function empty18() {
|
|
252934
|
-
return
|
|
252938
|
+
return unsafeMake5(new Map);
|
|
252935
252939
|
}
|
|
252936
252940
|
var FiberRefsSym = /* @__PURE__ */ Symbol.for("effect/FiberRefs");
|
|
252937
252941
|
|
|
@@ -253245,14 +253249,14 @@ class Suspended {
|
|
|
253245
253249
|
return isFiberStatus(that) && that._tag === OP_SUSPENDED && this.runtimeFlags === that.runtimeFlags && equals(this.blockingOn, that.blockingOn);
|
|
253246
253250
|
}
|
|
253247
253251
|
}
|
|
253248
|
-
var
|
|
253252
|
+
var done3 = /* @__PURE__ */ new Done;
|
|
253249
253253
|
var running = (runtimeFlags2) => new Running(runtimeFlags2);
|
|
253250
253254
|
var suspended = (runtimeFlags2, blockingOn) => new Suspended(runtimeFlags2, blockingOn);
|
|
253251
253255
|
var isFiberStatus = (u) => hasProperty(u, FiberStatusTypeId);
|
|
253252
253256
|
var isDone2 = (self2) => self2._tag === OP_DONE;
|
|
253253
253257
|
|
|
253254
253258
|
// node_modules/effect/dist/esm/FiberStatus.js
|
|
253255
|
-
var
|
|
253259
|
+
var done4 = done3;
|
|
253256
253260
|
var running2 = running;
|
|
253257
253261
|
var suspended2 = suspended;
|
|
253258
253262
|
var isDone3 = isDone2;
|
|
@@ -253780,8 +253784,8 @@ class RefImpl extends Class2 {
|
|
|
253780
253784
|
});
|
|
253781
253785
|
}
|
|
253782
253786
|
}
|
|
253783
|
-
var
|
|
253784
|
-
var make24 = (value) => sync(() =>
|
|
253787
|
+
var unsafeMake6 = (value) => new RefImpl(make13(value));
|
|
253788
|
+
var make24 = (value) => sync(() => unsafeMake6(value));
|
|
253785
253789
|
var get10 = (self2) => self2.get;
|
|
253786
253790
|
var set5 = /* @__PURE__ */ dual(2, (self2, value) => self2.modify(() => [undefined, value]));
|
|
253787
253791
|
var getAndSet = /* @__PURE__ */ dual(2, (self2, value) => self2.modify((a) => [a, value]));
|
|
@@ -254305,7 +254309,7 @@ class Local {
|
|
|
254305
254309
|
}));
|
|
254306
254310
|
}
|
|
254307
254311
|
}
|
|
254308
|
-
var
|
|
254312
|
+
var unsafeMake7 = (fiber) => {
|
|
254309
254313
|
return new Local(fiber.id(), fiber);
|
|
254310
254314
|
};
|
|
254311
254315
|
var globalScope = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("effect/FiberScope/Global"), () => new Global);
|
|
@@ -254871,6 +254875,9 @@ var remove6 = /* @__PURE__ */ dual(2, (self2, key) => {
|
|
|
254871
254875
|
}
|
|
254872
254876
|
return self2;
|
|
254873
254877
|
});
|
|
254878
|
+
var size6 = (self2) => {
|
|
254879
|
+
return self2.referential.size + self2.bucketsSize;
|
|
254880
|
+
};
|
|
254874
254881
|
|
|
254875
254882
|
// node_modules/effect/dist/esm/internal/metric/state.js
|
|
254876
254883
|
var MetricStateSymbolKey = "effect/MetricState";
|
|
@@ -255069,9 +255076,9 @@ var gauge3 = (_key, startAt) => {
|
|
|
255069
255076
|
};
|
|
255070
255077
|
var histogram4 = (key) => {
|
|
255071
255078
|
const bounds = key.keyType.boundaries.values;
|
|
255072
|
-
const
|
|
255073
|
-
const values3 = new Uint32Array(
|
|
255074
|
-
const boundaries = new Float64Array(
|
|
255079
|
+
const size7 = bounds.length;
|
|
255080
|
+
const values3 = new Uint32Array(size7 + 1);
|
|
255081
|
+
const boundaries = new Float64Array(size7);
|
|
255075
255082
|
let count = 0;
|
|
255076
255083
|
let sum = 0;
|
|
255077
255084
|
let min2 = Number.MAX_VALUE;
|
|
@@ -255081,7 +255088,7 @@ var histogram4 = (key) => {
|
|
|
255081
255088
|
}));
|
|
255082
255089
|
const update4 = (value) => {
|
|
255083
255090
|
let from = 0;
|
|
255084
|
-
let to =
|
|
255091
|
+
let to = size7;
|
|
255085
255092
|
while (from !== to) {
|
|
255086
255093
|
const mid = Math.floor(from + (to - from) / 2);
|
|
255087
255094
|
const boundary = boundaries[mid];
|
|
@@ -255109,9 +255116,9 @@ var histogram4 = (key) => {
|
|
|
255109
255116
|
}
|
|
255110
255117
|
};
|
|
255111
255118
|
const getBuckets = () => {
|
|
255112
|
-
const builder = allocate(
|
|
255119
|
+
const builder = allocate(size7);
|
|
255113
255120
|
let cumulated = 0;
|
|
255114
|
-
for (let i = 0;i <
|
|
255121
|
+
for (let i = 0;i < size7; i++) {
|
|
255115
255122
|
const boundary = boundaries[i];
|
|
255116
255123
|
const value = values3[i];
|
|
255117
255124
|
cumulated = cumulated + value;
|
|
@@ -255310,7 +255317,7 @@ var MetricPairTypeId = /* @__PURE__ */ Symbol.for(MetricPairSymbolKey);
|
|
|
255310
255317
|
var metricPairVariance = {
|
|
255311
255318
|
_Type: (_) => _
|
|
255312
255319
|
};
|
|
255313
|
-
var
|
|
255320
|
+
var unsafeMake8 = (metricKey, metricState) => {
|
|
255314
255321
|
return {
|
|
255315
255322
|
[MetricPairTypeId]: metricPairVariance,
|
|
255316
255323
|
metricKey,
|
|
@@ -255331,7 +255338,7 @@ class MetricRegistryImpl {
|
|
|
255331
255338
|
snapshot() {
|
|
255332
255339
|
const result = [];
|
|
255333
255340
|
for (const [key, hook] of this.map) {
|
|
255334
|
-
result.push(
|
|
255341
|
+
result.push(unsafeMake8(key, hook.get()));
|
|
255335
255342
|
}
|
|
255336
255343
|
return result;
|
|
255337
255344
|
}
|
|
@@ -256392,7 +256399,7 @@ class FiberRuntime extends Class2 {
|
|
|
256392
256399
|
});
|
|
256393
256400
|
}
|
|
256394
256401
|
scope() {
|
|
256395
|
-
return
|
|
256402
|
+
return unsafeMake7(this);
|
|
256396
256403
|
}
|
|
256397
256404
|
get children() {
|
|
256398
256405
|
return this.ask((fiber) => Array.from(fiber.getChildren()));
|
|
@@ -256697,7 +256704,7 @@ class FiberRuntime extends Class2 {
|
|
|
256697
256704
|
return EvaluationSignalContinue;
|
|
256698
256705
|
}
|
|
256699
256706
|
case OP_STATEFUL: {
|
|
256700
|
-
message.onFiber(this, this._exitValue !== null ?
|
|
256707
|
+
message.onFiber(this, this._exitValue !== null ? done4 : suspended2(this.currentRuntimeFlags, this._asyncBlockingOn));
|
|
256701
256708
|
return EvaluationSignalContinue;
|
|
256702
256709
|
}
|
|
256703
256710
|
default: {
|
|
@@ -257138,10 +257145,10 @@ var allResolveInput = (input) => {
|
|
|
257138
257145
|
return [input, none2()];
|
|
257139
257146
|
}
|
|
257140
257147
|
const keys6 = Object.keys(input);
|
|
257141
|
-
const
|
|
257148
|
+
const size9 = keys6.length;
|
|
257142
257149
|
return [keys6.map((k) => input[k]), some2((values4) => {
|
|
257143
257150
|
const res = {};
|
|
257144
|
-
for (let i = 0;i <
|
|
257151
|
+
for (let i = 0;i < size9; i++) {
|
|
257145
257152
|
res[keys6[i]] = values4[i];
|
|
257146
257153
|
}
|
|
257147
257154
|
return res;
|
|
@@ -257158,11 +257165,11 @@ var allValidate = (effects, reconcile, options) => {
|
|
|
257158
257165
|
concurrentFinalizers: options?.concurrentFinalizers
|
|
257159
257166
|
}), (eithers) => {
|
|
257160
257167
|
const none8 = none2();
|
|
257161
|
-
const
|
|
257162
|
-
const errors = new Array(
|
|
257163
|
-
const successes = new Array(
|
|
257168
|
+
const size9 = eithers.length;
|
|
257169
|
+
const errors = new Array(size9);
|
|
257170
|
+
const successes = new Array(size9);
|
|
257164
257171
|
let errored = false;
|
|
257165
|
-
for (let i = 0;i <
|
|
257172
|
+
for (let i = 0;i < size9; i++) {
|
|
257166
257173
|
const either3 = eithers[i];
|
|
257167
257174
|
if (either3._tag === "Left") {
|
|
257168
257175
|
errors[i] = some2(either3.left);
|
|
@@ -257773,7 +257780,7 @@ var continueWith = (interval) => {
|
|
|
257773
257780
|
intervals: make36(of2(interval))
|
|
257774
257781
|
};
|
|
257775
257782
|
};
|
|
257776
|
-
var
|
|
257783
|
+
var done5 = {
|
|
257777
257784
|
_tag: OP_DONE2
|
|
257778
257785
|
};
|
|
257779
257786
|
var isContinue = (self2) => {
|
|
@@ -257786,7 +257793,7 @@ var isDone4 = (self2) => {
|
|
|
257786
257793
|
// node_modules/effect/dist/esm/ScheduleDecision.js
|
|
257787
257794
|
var _continue2 = _continue;
|
|
257788
257795
|
var continueWith2 = continueWith;
|
|
257789
|
-
var
|
|
257796
|
+
var done6 = done5;
|
|
257790
257797
|
var isContinue2 = isContinue;
|
|
257791
257798
|
var isDone5 = isDone4;
|
|
257792
257799
|
|
|
@@ -258017,7 +258024,7 @@ class SynchronizedImpl extends Class2 {
|
|
|
258017
258024
|
}
|
|
258018
258025
|
var makeSynchronized = (value) => sync(() => unsafeMakeSynchronized(value));
|
|
258019
258026
|
var unsafeMakeSynchronized = (value) => {
|
|
258020
|
-
const ref =
|
|
258027
|
+
const ref = unsafeMake6(value);
|
|
258021
258028
|
const sem = unsafeMakeSemaphore(1);
|
|
258022
258029
|
return new SynchronizedImpl(ref, sem.withPermits(1));
|
|
258023
258030
|
};
|
|
@@ -258040,7 +258047,7 @@ var OP_ZIP_WITH2 = "ZipWith";
|
|
|
258040
258047
|
var _await3 = _await2;
|
|
258041
258048
|
var getCurrentFiber2 = getCurrentFiber;
|
|
258042
258049
|
var inheritAll2 = inheritAll;
|
|
258043
|
-
var
|
|
258050
|
+
var interrupt5 = interruptFiber;
|
|
258044
258051
|
var interruptAs = interruptAsFiber;
|
|
258045
258052
|
var interruptFork = fiberInterruptFork;
|
|
258046
258053
|
var join3 = join2;
|
|
@@ -258756,7 +258763,7 @@ var unsafeFromDate = (date) => {
|
|
|
258756
258763
|
}
|
|
258757
258764
|
return makeUtc(epochMillis);
|
|
258758
258765
|
};
|
|
258759
|
-
var
|
|
258766
|
+
var unsafeMake9 = (input) => {
|
|
258760
258767
|
if (isDateTime(input)) {
|
|
258761
258768
|
return input;
|
|
258762
258769
|
} else if (input instanceof Date) {
|
|
@@ -258777,7 +258784,7 @@ var unsafeMakeZoned = (input, options) => {
|
|
|
258777
258784
|
if (options?.timeZone === undefined && isDateTime(input) && isZoned(input)) {
|
|
258778
258785
|
return input;
|
|
258779
258786
|
}
|
|
258780
|
-
const self2 =
|
|
258787
|
+
const self2 = unsafeMake9(input);
|
|
258781
258788
|
if (self2.epochMillis < minEpochMillis || self2.epochMillis > maxEpochMillis) {
|
|
258782
258789
|
throw new RangeError(`Epoch millis out of range: ${self2.epochMillis}`);
|
|
258783
258790
|
}
|
|
@@ -259105,7 +259112,7 @@ class ScheduleDriverImpl {
|
|
|
259105
259112
|
}
|
|
259106
259113
|
});
|
|
259107
259114
|
}
|
|
259108
|
-
iterationMeta = /* @__PURE__ */
|
|
259115
|
+
iterationMeta = /* @__PURE__ */ unsafeMake6(defaultIterationMetadata);
|
|
259109
259116
|
get reset() {
|
|
259110
259117
|
return set5(this.ref, [none2(), this.schedule.initial]).pipe(zipLeft(set5(this.iterationMeta, defaultIterationMetadata)));
|
|
259111
259118
|
}
|
|
@@ -259128,9 +259135,9 @@ var makeWithState = (initial, step3) => new ScheduleImpl(initial, step3);
|
|
|
259128
259135
|
var check = /* @__PURE__ */ dual(2, (self2, test) => checkEffect(self2, (input, out) => sync(() => test(input, out))));
|
|
259129
259136
|
var checkEffect = /* @__PURE__ */ dual(2, (self2, test) => makeWithState(self2.initial, (now, input, state) => flatMap7(self2.step(now, input, state), ([state2, out, decision]) => {
|
|
259130
259137
|
if (isDone5(decision)) {
|
|
259131
|
-
return succeed([state2, out,
|
|
259138
|
+
return succeed([state2, out, done6]);
|
|
259132
259139
|
}
|
|
259133
|
-
return map11(test(input, out), (cont) => cont ? [state2, out, decision] : [state2, out,
|
|
259140
|
+
return map11(test(input, out), (cont) => cont ? [state2, out, decision] : [state2, out, done6]);
|
|
259134
259141
|
})));
|
|
259135
259142
|
var driver = (self2) => pipe(make24([none2(), self2.initial]), map11((ref) => new ScheduleDriverImpl(self2, ref)));
|
|
259136
259143
|
var intersect5 = /* @__PURE__ */ dual(2, (self2, that) => intersectWith(self2, that, intersect4));
|
|
@@ -259138,7 +259145,7 @@ var intersectWith = /* @__PURE__ */ dual(3, (self2, that, f) => makeWithState([s
|
|
|
259138
259145
|
if (isContinue2(lDecision) && isContinue2(rDecision)) {
|
|
259139
259146
|
return intersectWithLoop(self2, that, input, lState, out, lDecision.intervals, rState, out2, rDecision.intervals, f);
|
|
259140
259147
|
}
|
|
259141
|
-
return succeed([[lState, rState], [out, out2],
|
|
259148
|
+
return succeed([[lState, rState], [out, out2], done6]);
|
|
259142
259149
|
}))));
|
|
259143
259150
|
var intersectWithLoop = (self2, that, input, lState, out, lInterval, rState, out2, rInterval, f) => {
|
|
259144
259151
|
const combined = f(lInterval, rInterval);
|
|
@@ -259148,14 +259155,14 @@ var intersectWithLoop = (self2, that, input, lState, out, lInterval, rState, out
|
|
|
259148
259155
|
if (pipe(lInterval, lessThan6(rInterval))) {
|
|
259149
259156
|
return flatMap7(self2.step(end2(lInterval), input, lState), ([lState2, out3, decision]) => {
|
|
259150
259157
|
if (isDone5(decision)) {
|
|
259151
|
-
return succeed([[lState2, rState], [out3, out2],
|
|
259158
|
+
return succeed([[lState2, rState], [out3, out2], done6]);
|
|
259152
259159
|
}
|
|
259153
259160
|
return intersectWithLoop(self2, that, input, lState2, out3, decision.intervals, rState, out2, rInterval, f);
|
|
259154
259161
|
});
|
|
259155
259162
|
}
|
|
259156
259163
|
return flatMap7(that.step(end2(rInterval), input, rState), ([rState2, out22, decision]) => {
|
|
259157
259164
|
if (isDone5(decision)) {
|
|
259158
|
-
return succeed([[lState, rState2], [out, out22],
|
|
259165
|
+
return succeed([[lState, rState2], [out, out22], done6]);
|
|
259159
259166
|
}
|
|
259160
259167
|
return intersectWithLoop(self2, that, input, lState, out, lInterval, rState2, out22, decision.intervals, f);
|
|
259161
259168
|
});
|
|
@@ -259258,27 +259265,27 @@ var TypeId15 = /* @__PURE__ */ Symbol.for("effect/MutableList");
|
|
|
259258
259265
|
var MutableListProto = {
|
|
259259
259266
|
[TypeId15]: TypeId15,
|
|
259260
259267
|
[Symbol.iterator]() {
|
|
259261
|
-
let
|
|
259268
|
+
let done8 = false;
|
|
259262
259269
|
let head3 = this.head;
|
|
259263
259270
|
return {
|
|
259264
259271
|
next() {
|
|
259265
|
-
if (
|
|
259272
|
+
if (done8) {
|
|
259266
259273
|
return this.return();
|
|
259267
259274
|
}
|
|
259268
259275
|
if (head3 == null) {
|
|
259269
|
-
|
|
259276
|
+
done8 = true;
|
|
259270
259277
|
return this.return();
|
|
259271
259278
|
}
|
|
259272
259279
|
const value = head3.value;
|
|
259273
259280
|
head3 = head3.next;
|
|
259274
259281
|
return {
|
|
259275
|
-
done:
|
|
259282
|
+
done: done8,
|
|
259276
259283
|
value
|
|
259277
259284
|
};
|
|
259278
259285
|
},
|
|
259279
259286
|
return(value) {
|
|
259280
|
-
if (!
|
|
259281
|
-
|
|
259287
|
+
if (!done8) {
|
|
259288
|
+
done8 = true;
|
|
259282
259289
|
}
|
|
259283
259290
|
return {
|
|
259284
259291
|
done: true,
|
|
@@ -259441,6 +259448,429 @@ var pollUpTo = /* @__PURE__ */ dual(2, (self2, n) => {
|
|
|
259441
259448
|
return reverse2(result);
|
|
259442
259449
|
});
|
|
259443
259450
|
|
|
259451
|
+
// node_modules/effect/dist/esm/internal/cache.js
|
|
259452
|
+
var complete2 = (key, exit2, entryStats, timeToLiveMillis) => struct({
|
|
259453
|
+
_tag: "Complete",
|
|
259454
|
+
key,
|
|
259455
|
+
exit: exit2,
|
|
259456
|
+
entryStats,
|
|
259457
|
+
timeToLiveMillis
|
|
259458
|
+
});
|
|
259459
|
+
var pending2 = (key, deferred) => struct({
|
|
259460
|
+
_tag: "Pending",
|
|
259461
|
+
key,
|
|
259462
|
+
deferred
|
|
259463
|
+
});
|
|
259464
|
+
var refreshing = (deferred, complete3) => struct({
|
|
259465
|
+
_tag: "Refreshing",
|
|
259466
|
+
deferred,
|
|
259467
|
+
complete: complete3
|
|
259468
|
+
});
|
|
259469
|
+
var MapKeyTypeId = /* @__PURE__ */ Symbol.for("effect/Cache/MapKey");
|
|
259470
|
+
|
|
259471
|
+
class MapKeyImpl {
|
|
259472
|
+
current;
|
|
259473
|
+
[MapKeyTypeId] = MapKeyTypeId;
|
|
259474
|
+
previous = undefined;
|
|
259475
|
+
next = undefined;
|
|
259476
|
+
constructor(current) {
|
|
259477
|
+
this.current = current;
|
|
259478
|
+
}
|
|
259479
|
+
[symbol]() {
|
|
259480
|
+
return pipe(hash(this.current), combine(hash(this.previous)), combine(hash(this.next)), cached(this));
|
|
259481
|
+
}
|
|
259482
|
+
[symbol2](that) {
|
|
259483
|
+
if (this === that) {
|
|
259484
|
+
return true;
|
|
259485
|
+
}
|
|
259486
|
+
return isMapKey(that) && equals(this.current, that.current) && equals(this.previous, that.previous) && equals(this.next, that.next);
|
|
259487
|
+
}
|
|
259488
|
+
}
|
|
259489
|
+
var makeMapKey = (current) => new MapKeyImpl(current);
|
|
259490
|
+
var isMapKey = (u) => hasProperty(u, MapKeyTypeId);
|
|
259491
|
+
|
|
259492
|
+
class KeySetImpl {
|
|
259493
|
+
head = undefined;
|
|
259494
|
+
tail = undefined;
|
|
259495
|
+
add(key) {
|
|
259496
|
+
if (key !== this.tail) {
|
|
259497
|
+
if (this.tail === undefined) {
|
|
259498
|
+
this.head = key;
|
|
259499
|
+
this.tail = key;
|
|
259500
|
+
} else {
|
|
259501
|
+
const previous = key.previous;
|
|
259502
|
+
const next = key.next;
|
|
259503
|
+
if (next !== undefined) {
|
|
259504
|
+
key.next = undefined;
|
|
259505
|
+
if (previous !== undefined) {
|
|
259506
|
+
previous.next = next;
|
|
259507
|
+
next.previous = previous;
|
|
259508
|
+
} else {
|
|
259509
|
+
this.head = next;
|
|
259510
|
+
this.head.previous = undefined;
|
|
259511
|
+
}
|
|
259512
|
+
}
|
|
259513
|
+
this.tail.next = key;
|
|
259514
|
+
key.previous = this.tail;
|
|
259515
|
+
this.tail = key;
|
|
259516
|
+
}
|
|
259517
|
+
}
|
|
259518
|
+
}
|
|
259519
|
+
remove() {
|
|
259520
|
+
const key = this.head;
|
|
259521
|
+
if (key !== undefined) {
|
|
259522
|
+
const next = key.next;
|
|
259523
|
+
if (next !== undefined) {
|
|
259524
|
+
key.next = undefined;
|
|
259525
|
+
this.head = next;
|
|
259526
|
+
this.head.previous = undefined;
|
|
259527
|
+
} else {
|
|
259528
|
+
this.head = undefined;
|
|
259529
|
+
this.tail = undefined;
|
|
259530
|
+
}
|
|
259531
|
+
}
|
|
259532
|
+
return key;
|
|
259533
|
+
}
|
|
259534
|
+
}
|
|
259535
|
+
var makeKeySet = () => new KeySetImpl;
|
|
259536
|
+
var makeCacheState = (map16, keys6, accesses, updating, hits, misses) => ({
|
|
259537
|
+
map: map16,
|
|
259538
|
+
keys: keys6,
|
|
259539
|
+
accesses,
|
|
259540
|
+
updating,
|
|
259541
|
+
hits,
|
|
259542
|
+
misses
|
|
259543
|
+
});
|
|
259544
|
+
var initialCacheState = () => makeCacheState(empty21(), makeKeySet(), unbounded(), make13(false), 0, 0);
|
|
259545
|
+
var CacheSymbolKey = "effect/Cache";
|
|
259546
|
+
var CacheTypeId = /* @__PURE__ */ Symbol.for(CacheSymbolKey);
|
|
259547
|
+
var cacheVariance = {
|
|
259548
|
+
_Key: (_) => _,
|
|
259549
|
+
_Error: (_) => _,
|
|
259550
|
+
_Value: (_) => _
|
|
259551
|
+
};
|
|
259552
|
+
var ConsumerCacheSymbolKey = "effect/ConsumerCache";
|
|
259553
|
+
var ConsumerCacheTypeId = /* @__PURE__ */ Symbol.for(ConsumerCacheSymbolKey);
|
|
259554
|
+
var consumerCacheVariance = {
|
|
259555
|
+
_Key: (_) => _,
|
|
259556
|
+
_Error: (_) => _,
|
|
259557
|
+
_Value: (_) => _
|
|
259558
|
+
};
|
|
259559
|
+
var makeCacheStats = (options) => options;
|
|
259560
|
+
var makeEntryStats = (loadedMillis) => ({
|
|
259561
|
+
loadedMillis
|
|
259562
|
+
});
|
|
259563
|
+
|
|
259564
|
+
class CacheImpl {
|
|
259565
|
+
capacity;
|
|
259566
|
+
context;
|
|
259567
|
+
fiberId;
|
|
259568
|
+
lookup;
|
|
259569
|
+
timeToLive;
|
|
259570
|
+
[CacheTypeId] = cacheVariance;
|
|
259571
|
+
[ConsumerCacheTypeId] = consumerCacheVariance;
|
|
259572
|
+
cacheState;
|
|
259573
|
+
constructor(capacity2, context3, fiberId2, lookup, timeToLive) {
|
|
259574
|
+
this.capacity = capacity2;
|
|
259575
|
+
this.context = context3;
|
|
259576
|
+
this.fiberId = fiberId2;
|
|
259577
|
+
this.lookup = lookup;
|
|
259578
|
+
this.timeToLive = timeToLive;
|
|
259579
|
+
this.cacheState = initialCacheState();
|
|
259580
|
+
}
|
|
259581
|
+
get(key) {
|
|
259582
|
+
return map11(this.getEither(key), merge);
|
|
259583
|
+
}
|
|
259584
|
+
get cacheStats() {
|
|
259585
|
+
return sync(() => makeCacheStats({
|
|
259586
|
+
hits: this.cacheState.hits,
|
|
259587
|
+
misses: this.cacheState.misses,
|
|
259588
|
+
size: size6(this.cacheState.map)
|
|
259589
|
+
}));
|
|
259590
|
+
}
|
|
259591
|
+
getOption(key) {
|
|
259592
|
+
return suspend(() => match2(get12(this.cacheState.map, key), {
|
|
259593
|
+
onNone: () => {
|
|
259594
|
+
const mapKey = makeMapKey(key);
|
|
259595
|
+
this.trackAccess(mapKey);
|
|
259596
|
+
this.trackMiss();
|
|
259597
|
+
return succeed(none2());
|
|
259598
|
+
},
|
|
259599
|
+
onSome: (value) => this.resolveMapValue(value)
|
|
259600
|
+
}));
|
|
259601
|
+
}
|
|
259602
|
+
getOptionComplete(key) {
|
|
259603
|
+
return suspend(() => match2(get12(this.cacheState.map, key), {
|
|
259604
|
+
onNone: () => {
|
|
259605
|
+
const mapKey = makeMapKey(key);
|
|
259606
|
+
this.trackAccess(mapKey);
|
|
259607
|
+
this.trackMiss();
|
|
259608
|
+
return succeed(none2());
|
|
259609
|
+
},
|
|
259610
|
+
onSome: (value) => this.resolveMapValue(value, true)
|
|
259611
|
+
}));
|
|
259612
|
+
}
|
|
259613
|
+
contains(key) {
|
|
259614
|
+
return sync(() => has6(this.cacheState.map, key));
|
|
259615
|
+
}
|
|
259616
|
+
entryStats(key) {
|
|
259617
|
+
return sync(() => {
|
|
259618
|
+
const option = get12(this.cacheState.map, key);
|
|
259619
|
+
if (isSome2(option)) {
|
|
259620
|
+
switch (option.value._tag) {
|
|
259621
|
+
case "Complete": {
|
|
259622
|
+
const loaded = option.value.entryStats.loadedMillis;
|
|
259623
|
+
return some2(makeEntryStats(loaded));
|
|
259624
|
+
}
|
|
259625
|
+
case "Pending": {
|
|
259626
|
+
return none2();
|
|
259627
|
+
}
|
|
259628
|
+
case "Refreshing": {
|
|
259629
|
+
const loaded = option.value.complete.entryStats.loadedMillis;
|
|
259630
|
+
return some2(makeEntryStats(loaded));
|
|
259631
|
+
}
|
|
259632
|
+
}
|
|
259633
|
+
}
|
|
259634
|
+
return none2();
|
|
259635
|
+
});
|
|
259636
|
+
}
|
|
259637
|
+
getEither(key) {
|
|
259638
|
+
return suspend(() => {
|
|
259639
|
+
const k = key;
|
|
259640
|
+
let mapKey = undefined;
|
|
259641
|
+
let deferred = undefined;
|
|
259642
|
+
let value = getOrUndefined(get12(this.cacheState.map, k));
|
|
259643
|
+
if (value === undefined) {
|
|
259644
|
+
deferred = unsafeMake4(this.fiberId);
|
|
259645
|
+
mapKey = makeMapKey(k);
|
|
259646
|
+
if (has6(this.cacheState.map, k)) {
|
|
259647
|
+
value = getOrUndefined(get12(this.cacheState.map, k));
|
|
259648
|
+
} else {
|
|
259649
|
+
set7(this.cacheState.map, k, pending2(mapKey, deferred));
|
|
259650
|
+
}
|
|
259651
|
+
}
|
|
259652
|
+
if (value === undefined) {
|
|
259653
|
+
this.trackAccess(mapKey);
|
|
259654
|
+
this.trackMiss();
|
|
259655
|
+
return map11(this.lookupValueOf(key, deferred), right2);
|
|
259656
|
+
} else {
|
|
259657
|
+
return flatMap7(this.resolveMapValue(value), match2({
|
|
259658
|
+
onNone: () => this.getEither(key),
|
|
259659
|
+
onSome: (value2) => succeed(left2(value2))
|
|
259660
|
+
}));
|
|
259661
|
+
}
|
|
259662
|
+
});
|
|
259663
|
+
}
|
|
259664
|
+
invalidate(key) {
|
|
259665
|
+
return sync(() => {
|
|
259666
|
+
remove6(this.cacheState.map, key);
|
|
259667
|
+
});
|
|
259668
|
+
}
|
|
259669
|
+
invalidateWhen(key, when2) {
|
|
259670
|
+
return sync(() => {
|
|
259671
|
+
const value = get12(this.cacheState.map, key);
|
|
259672
|
+
if (isSome2(value) && value.value._tag === "Complete") {
|
|
259673
|
+
if (value.value.exit._tag === "Success") {
|
|
259674
|
+
if (when2(value.value.exit.value)) {
|
|
259675
|
+
remove6(this.cacheState.map, key);
|
|
259676
|
+
}
|
|
259677
|
+
}
|
|
259678
|
+
}
|
|
259679
|
+
});
|
|
259680
|
+
}
|
|
259681
|
+
get invalidateAll() {
|
|
259682
|
+
return sync(() => {
|
|
259683
|
+
this.cacheState.map = empty21();
|
|
259684
|
+
});
|
|
259685
|
+
}
|
|
259686
|
+
refresh(key) {
|
|
259687
|
+
return clockWith3((clock2) => suspend(() => {
|
|
259688
|
+
const k = key;
|
|
259689
|
+
const deferred = unsafeMake4(this.fiberId);
|
|
259690
|
+
let value = getOrUndefined(get12(this.cacheState.map, k));
|
|
259691
|
+
if (value === undefined) {
|
|
259692
|
+
if (has6(this.cacheState.map, k)) {
|
|
259693
|
+
value = getOrUndefined(get12(this.cacheState.map, k));
|
|
259694
|
+
} else {
|
|
259695
|
+
set7(this.cacheState.map, k, pending2(makeMapKey(k), deferred));
|
|
259696
|
+
}
|
|
259697
|
+
}
|
|
259698
|
+
if (value === undefined) {
|
|
259699
|
+
return asVoid(this.lookupValueOf(key, deferred));
|
|
259700
|
+
} else {
|
|
259701
|
+
switch (value._tag) {
|
|
259702
|
+
case "Complete": {
|
|
259703
|
+
if (this.hasExpired(clock2, value.timeToLiveMillis)) {
|
|
259704
|
+
const found = getOrUndefined(get12(this.cacheState.map, k));
|
|
259705
|
+
if (equals(found, value)) {
|
|
259706
|
+
remove6(this.cacheState.map, k);
|
|
259707
|
+
}
|
|
259708
|
+
return asVoid(this.get(key));
|
|
259709
|
+
}
|
|
259710
|
+
return pipe(this.lookupValueOf(key, deferred), when(() => {
|
|
259711
|
+
const current = getOrUndefined(get12(this.cacheState.map, k));
|
|
259712
|
+
if (equals(current, value)) {
|
|
259713
|
+
const mapValue = refreshing(deferred, value);
|
|
259714
|
+
set7(this.cacheState.map, k, mapValue);
|
|
259715
|
+
return true;
|
|
259716
|
+
}
|
|
259717
|
+
return false;
|
|
259718
|
+
}), asVoid);
|
|
259719
|
+
}
|
|
259720
|
+
case "Pending": {
|
|
259721
|
+
return _await(value.deferred);
|
|
259722
|
+
}
|
|
259723
|
+
case "Refreshing": {
|
|
259724
|
+
return _await(value.deferred);
|
|
259725
|
+
}
|
|
259726
|
+
}
|
|
259727
|
+
}
|
|
259728
|
+
}));
|
|
259729
|
+
}
|
|
259730
|
+
set(key, value) {
|
|
259731
|
+
return clockWith3((clock2) => sync(() => {
|
|
259732
|
+
const now = clock2.unsafeCurrentTimeMillis();
|
|
259733
|
+
const k = key;
|
|
259734
|
+
const lookupResult = succeed4(value);
|
|
259735
|
+
const mapValue = complete2(makeMapKey(k), lookupResult, makeEntryStats(now), now + toMillis(decode(this.timeToLive(lookupResult))));
|
|
259736
|
+
set7(this.cacheState.map, k, mapValue);
|
|
259737
|
+
}));
|
|
259738
|
+
}
|
|
259739
|
+
get size() {
|
|
259740
|
+
return sync(() => {
|
|
259741
|
+
return size6(this.cacheState.map);
|
|
259742
|
+
});
|
|
259743
|
+
}
|
|
259744
|
+
get values() {
|
|
259745
|
+
return sync(() => {
|
|
259746
|
+
const values4 = [];
|
|
259747
|
+
for (const entry of this.cacheState.map) {
|
|
259748
|
+
if (entry[1]._tag === "Complete" && entry[1].exit._tag === "Success") {
|
|
259749
|
+
values4.push(entry[1].exit.value);
|
|
259750
|
+
}
|
|
259751
|
+
}
|
|
259752
|
+
return values4;
|
|
259753
|
+
});
|
|
259754
|
+
}
|
|
259755
|
+
get entries() {
|
|
259756
|
+
return sync(() => {
|
|
259757
|
+
const values4 = [];
|
|
259758
|
+
for (const entry of this.cacheState.map) {
|
|
259759
|
+
if (entry[1]._tag === "Complete" && entry[1].exit._tag === "Success") {
|
|
259760
|
+
values4.push([entry[0], entry[1].exit.value]);
|
|
259761
|
+
}
|
|
259762
|
+
}
|
|
259763
|
+
return values4;
|
|
259764
|
+
});
|
|
259765
|
+
}
|
|
259766
|
+
get keys() {
|
|
259767
|
+
return sync(() => {
|
|
259768
|
+
const keys6 = [];
|
|
259769
|
+
for (const entry of this.cacheState.map) {
|
|
259770
|
+
if (entry[1]._tag === "Complete" && entry[1].exit._tag === "Success") {
|
|
259771
|
+
keys6.push(entry[0]);
|
|
259772
|
+
}
|
|
259773
|
+
}
|
|
259774
|
+
return keys6;
|
|
259775
|
+
});
|
|
259776
|
+
}
|
|
259777
|
+
resolveMapValue(value, ignorePending = false) {
|
|
259778
|
+
return clockWith3((clock2) => {
|
|
259779
|
+
switch (value._tag) {
|
|
259780
|
+
case "Complete": {
|
|
259781
|
+
this.trackAccess(value.key);
|
|
259782
|
+
if (this.hasExpired(clock2, value.timeToLiveMillis)) {
|
|
259783
|
+
remove6(this.cacheState.map, value.key.current);
|
|
259784
|
+
return succeed(none2());
|
|
259785
|
+
}
|
|
259786
|
+
this.trackHit();
|
|
259787
|
+
return map11(value.exit, some2);
|
|
259788
|
+
}
|
|
259789
|
+
case "Pending": {
|
|
259790
|
+
this.trackAccess(value.key);
|
|
259791
|
+
this.trackHit();
|
|
259792
|
+
if (ignorePending) {
|
|
259793
|
+
return succeed(none2());
|
|
259794
|
+
}
|
|
259795
|
+
return map11(_await(value.deferred), some2);
|
|
259796
|
+
}
|
|
259797
|
+
case "Refreshing": {
|
|
259798
|
+
this.trackAccess(value.complete.key);
|
|
259799
|
+
this.trackHit();
|
|
259800
|
+
if (this.hasExpired(clock2, value.complete.timeToLiveMillis)) {
|
|
259801
|
+
if (ignorePending) {
|
|
259802
|
+
return succeed(none2());
|
|
259803
|
+
}
|
|
259804
|
+
return map11(_await(value.deferred), some2);
|
|
259805
|
+
}
|
|
259806
|
+
return map11(value.complete.exit, some2);
|
|
259807
|
+
}
|
|
259808
|
+
}
|
|
259809
|
+
});
|
|
259810
|
+
}
|
|
259811
|
+
trackHit() {
|
|
259812
|
+
this.cacheState.hits = this.cacheState.hits + 1;
|
|
259813
|
+
}
|
|
259814
|
+
trackMiss() {
|
|
259815
|
+
this.cacheState.misses = this.cacheState.misses + 1;
|
|
259816
|
+
}
|
|
259817
|
+
trackAccess(key) {
|
|
259818
|
+
offer(this.cacheState.accesses, key);
|
|
259819
|
+
if (compareAndSet(this.cacheState.updating, false, true)) {
|
|
259820
|
+
let loop = true;
|
|
259821
|
+
while (loop) {
|
|
259822
|
+
const key2 = poll2(this.cacheState.accesses, EmptyMutableQueue);
|
|
259823
|
+
if (key2 === EmptyMutableQueue) {
|
|
259824
|
+
loop = false;
|
|
259825
|
+
} else {
|
|
259826
|
+
this.cacheState.keys.add(key2);
|
|
259827
|
+
}
|
|
259828
|
+
}
|
|
259829
|
+
let size11 = size6(this.cacheState.map);
|
|
259830
|
+
loop = size11 > this.capacity;
|
|
259831
|
+
while (loop) {
|
|
259832
|
+
const key2 = this.cacheState.keys.remove();
|
|
259833
|
+
if (key2 !== undefined) {
|
|
259834
|
+
if (has6(this.cacheState.map, key2.current)) {
|
|
259835
|
+
remove6(this.cacheState.map, key2.current);
|
|
259836
|
+
size11 = size11 - 1;
|
|
259837
|
+
loop = size11 > this.capacity;
|
|
259838
|
+
}
|
|
259839
|
+
} else {
|
|
259840
|
+
loop = false;
|
|
259841
|
+
}
|
|
259842
|
+
}
|
|
259843
|
+
set3(this.cacheState.updating, false);
|
|
259844
|
+
}
|
|
259845
|
+
}
|
|
259846
|
+
hasExpired(clock2, timeToLiveMillis) {
|
|
259847
|
+
return clock2.unsafeCurrentTimeMillis() > timeToLiveMillis;
|
|
259848
|
+
}
|
|
259849
|
+
lookupValueOf(input, deferred) {
|
|
259850
|
+
return clockWith3((clock2) => suspend(() => {
|
|
259851
|
+
const key = input;
|
|
259852
|
+
return pipe(this.lookup(input), provideContext(this.context), exit, flatMap7((exit2) => {
|
|
259853
|
+
const now = clock2.unsafeCurrentTimeMillis();
|
|
259854
|
+
const stats = makeEntryStats(now);
|
|
259855
|
+
const value = complete2(makeMapKey(key), exit2, stats, now + toMillis(decode(this.timeToLive(exit2))));
|
|
259856
|
+
set7(this.cacheState.map, key, value);
|
|
259857
|
+
return zipRight(done2(deferred, exit2), exit2);
|
|
259858
|
+
}), onInterrupt(() => zipRight(interrupt4(deferred), sync(() => {
|
|
259859
|
+
remove6(this.cacheState.map, key);
|
|
259860
|
+
}))));
|
|
259861
|
+
}));
|
|
259862
|
+
}
|
|
259863
|
+
}
|
|
259864
|
+
var make40 = (options) => {
|
|
259865
|
+
const timeToLive = decode(options.timeToLive);
|
|
259866
|
+
return makeWith({
|
|
259867
|
+
capacity: options.capacity,
|
|
259868
|
+
lookup: options.lookup,
|
|
259869
|
+
timeToLive: () => timeToLive
|
|
259870
|
+
});
|
|
259871
|
+
};
|
|
259872
|
+
var makeWith = (options) => map11(all3([context(), fiberId]), ([context3, fiberId2]) => new CacheImpl(options.capacity, context3, fiberId2, options.lookup, (exit2) => decode(options.timeToLive(exit2))));
|
|
259873
|
+
|
|
259444
259874
|
// node_modules/effect/dist/esm/Request.js
|
|
259445
259875
|
var Class5 = Class3;
|
|
259446
259876
|
|
|
@@ -259476,7 +259906,7 @@ var retry = retry_combined;
|
|
|
259476
259906
|
var try_3 = try_2;
|
|
259477
259907
|
var tryMap2 = tryMap;
|
|
259478
259908
|
var tryPromise2 = tryPromise;
|
|
259479
|
-
var
|
|
259909
|
+
var interrupt6 = interrupt2;
|
|
259480
259910
|
var interruptible4 = interruptible2;
|
|
259481
259911
|
var onInterrupt2 = onInterrupt;
|
|
259482
259912
|
var uninterruptible2 = uninterruptible;
|
|
@@ -259664,7 +260094,7 @@ ${endStackCall}`;
|
|
|
259664
260094
|
var fnUntraced2 = fnUntraced;
|
|
259665
260095
|
|
|
259666
260096
|
// node_modules/effect/dist/esm/FiberRef.js
|
|
259667
|
-
var
|
|
260097
|
+
var unsafeMake10 = fiberRefUnsafeMake;
|
|
259668
260098
|
var get13 = fiberRefGet;
|
|
259669
260099
|
var update5 = fiberRefUpdate;
|
|
259670
260100
|
var currentContext2 = currentContext;
|
|
@@ -259751,10 +260181,10 @@ class QueueImpl extends Class2 {
|
|
|
259751
260181
|
return some2(this.queue.length() - length2(this.takers) + this.strategy.surplusSize());
|
|
259752
260182
|
}
|
|
259753
260183
|
get isEmpty() {
|
|
259754
|
-
return map11(this.size, (
|
|
260184
|
+
return map11(this.size, (size11) => size11 <= 0);
|
|
259755
260185
|
}
|
|
259756
260186
|
get isFull() {
|
|
259757
|
-
return map11(this.size, (
|
|
260187
|
+
return map11(this.size, (size11) => size11 >= this.capacity());
|
|
259758
260188
|
}
|
|
259759
260189
|
get shutdown() {
|
|
259760
260190
|
return uninterruptible(withFiberRuntime((state) => {
|
|
@@ -259896,14 +260326,14 @@ var takeRemainderLoop = (self2, min3, max5, acc) => {
|
|
|
259896
260326
|
return succeed(pipe(acc, appendAll2(bs)));
|
|
259897
260327
|
}));
|
|
259898
260328
|
};
|
|
259899
|
-
var bounded2 = (requestedCapacity) => pipe(sync(() => bounded(requestedCapacity)), flatMap7((queue) =>
|
|
259900
|
-
var dropping = (requestedCapacity) => pipe(sync(() => bounded(requestedCapacity)), flatMap7((queue) =>
|
|
259901
|
-
var sliding = (requestedCapacity) => pipe(sync(() => bounded(requestedCapacity)), flatMap7((queue) =>
|
|
259902
|
-
var unbounded2 = () => pipe(sync(() => unbounded()), flatMap7((queue) =>
|
|
259903
|
-
var
|
|
260329
|
+
var bounded2 = (requestedCapacity) => pipe(sync(() => bounded(requestedCapacity)), flatMap7((queue) => make41(backingQueueFromMutableQueue(queue), backPressureStrategy())));
|
|
260330
|
+
var dropping = (requestedCapacity) => pipe(sync(() => bounded(requestedCapacity)), flatMap7((queue) => make41(backingQueueFromMutableQueue(queue), droppingStrategy())));
|
|
260331
|
+
var sliding = (requestedCapacity) => pipe(sync(() => bounded(requestedCapacity)), flatMap7((queue) => make41(backingQueueFromMutableQueue(queue), slidingStrategy())));
|
|
260332
|
+
var unbounded2 = () => pipe(sync(() => unbounded()), flatMap7((queue) => make41(backingQueueFromMutableQueue(queue), droppingStrategy())));
|
|
260333
|
+
var unsafeMake11 = (queue, takers, shutdownHook, shutdownFlag, strategy) => {
|
|
259904
260334
|
return new QueueImpl(queue, takers, shutdownHook, shutdownFlag, strategy);
|
|
259905
260335
|
};
|
|
259906
|
-
var
|
|
260336
|
+
var make41 = (queue, strategy) => pipe(deferredMake(), map11((deferred) => unsafeMake11(queue, unbounded(), deferred, make13(false), strategy)));
|
|
259907
260337
|
|
|
259908
260338
|
class BackingQueueFromMutableQueue {
|
|
259909
260339
|
mutable;
|
|
@@ -259931,7 +260361,7 @@ class BackingQueueFromMutableQueue {
|
|
|
259931
260361
|
}
|
|
259932
260362
|
}
|
|
259933
260363
|
var backingQueueFromMutableQueue = (mutable) => new BackingQueueFromMutableQueue(mutable);
|
|
259934
|
-
var
|
|
260364
|
+
var size11 = (self2) => self2.size;
|
|
259935
260365
|
var shutdown = (self2) => self2.shutdown;
|
|
259936
260366
|
var offer2 = /* @__PURE__ */ dual(2, (self2, value) => self2.offer(value));
|
|
259937
260367
|
var take3 = (self2) => self2.take;
|
|
@@ -260090,7 +260520,7 @@ var bounded3 = bounded2;
|
|
|
260090
260520
|
var dropping2 = dropping;
|
|
260091
260521
|
var sliding2 = sliding;
|
|
260092
260522
|
var unbounded3 = unbounded2;
|
|
260093
|
-
var
|
|
260523
|
+
var size12 = size11;
|
|
260094
260524
|
var shutdown2 = shutdown;
|
|
260095
260525
|
var offer3 = offer2;
|
|
260096
260526
|
var take4 = take3;
|
|
@@ -260603,7 +261033,7 @@ class ChannelExecutor {
|
|
|
260603
261033
|
}
|
|
260604
261034
|
}
|
|
260605
261035
|
}));
|
|
260606
|
-
result = fromEffect5(flatMap10(forkDaemon2(interruptible4(drainer())), (fiber) => sync3(() => this.addFinalizer((exit3) => flatMap10(
|
|
261036
|
+
result = fromEffect5(flatMap10(forkDaemon2(interruptible4(drainer())), (fiber) => sync3(() => this.addFinalizer((exit3) => flatMap10(interrupt5(fiber), () => suspend3(() => {
|
|
260607
261037
|
const effect3 = this.restorePipe(exit3, inputExecutor);
|
|
260608
261038
|
return effect3 !== undefined ? effect3 : _void;
|
|
260609
261039
|
}))))));
|
|
@@ -261131,7 +261561,7 @@ var runIn = /* @__PURE__ */ dual(2, (self2, scope4) => {
|
|
|
261131
261561
|
});
|
|
261132
261562
|
return uninterruptibleMask3((restore) => all4([fork(scope4, sequential4), make19(), make19()]).pipe(flatMap10(([child, channelDeferred, scopeDeferred]) => restore(run(channelDeferred, scopeDeferred, child)).pipe(forkIn2(scope4), flatMap10((fiber) => scope4.addFinalizer((exit3) => {
|
|
261133
261563
|
const interruptors3 = isFailure2(exit3) ? interruptors2(exit3.cause) : undefined;
|
|
261134
|
-
return isDone(channelDeferred).pipe(flatMap10((isDone6) => isDone6 ? succeed2(scopeDeferred, undefined).pipe(zipRight3(_await3(fiber)), zipRight3(inheritAll2(fiber))) : succeed2(scopeDeferred, undefined).pipe(zipRight3(interruptors3 && size3(interruptors3) > 0 ? interruptAs(fiber, combineAll2(interruptors3)) :
|
|
261564
|
+
return isDone(channelDeferred).pipe(flatMap10((isDone6) => isDone6 ? succeed2(scopeDeferred, undefined).pipe(zipRight3(_await3(fiber)), zipRight3(inheritAll2(fiber))) : succeed2(scopeDeferred, undefined).pipe(zipRight3(interruptors3 && size3(interruptors3) > 0 ? interruptAs(fiber, combineAll2(interruptors3)) : interrupt5(fiber)), zipRight3(inheritAll2(fiber)))));
|
|
261135
261565
|
}).pipe(zipRight3(restore(_await(channelDeferred)))))))));
|
|
261136
261566
|
});
|
|
261137
261567
|
var runScopedInterpret = (channelState, exec) => {
|
|
@@ -261257,9 +261687,9 @@ var stateError = (cause2) => ({
|
|
|
261257
261687
|
_tag: OP_STATE_ERROR,
|
|
261258
261688
|
cause: cause2
|
|
261259
261689
|
});
|
|
261260
|
-
var stateDone = (
|
|
261690
|
+
var stateDone = (done8) => ({
|
|
261261
261691
|
_tag: OP_STATE_DONE2,
|
|
261262
|
-
done:
|
|
261692
|
+
done: done8
|
|
261263
261693
|
});
|
|
261264
261694
|
|
|
261265
261695
|
class SingleProducerAsyncInputImpl {
|
|
@@ -261285,10 +261715,10 @@ class SingleProducerAsyncInputImpl {
|
|
|
261285
261715
|
}), stateDone(value)];
|
|
261286
261716
|
}
|
|
261287
261717
|
case OP_STATE_ERROR: {
|
|
261288
|
-
return [
|
|
261718
|
+
return [interrupt6, state];
|
|
261289
261719
|
}
|
|
261290
261720
|
case OP_STATE_DONE2: {
|
|
261291
|
-
return [
|
|
261721
|
+
return [interrupt6, state];
|
|
261292
261722
|
}
|
|
261293
261723
|
}
|
|
261294
261724
|
}));
|
|
@@ -261308,10 +261738,10 @@ class SingleProducerAsyncInputImpl {
|
|
|
261308
261738
|
throw new Error("Bug: Channel.SingleProducerAsyncInput.emit - Queue was empty! please report an issue at https://github.com/Effect-TS/effect/issues");
|
|
261309
261739
|
}
|
|
261310
261740
|
case OP_STATE_ERROR: {
|
|
261311
|
-
return [
|
|
261741
|
+
return [interrupt6, state];
|
|
261312
261742
|
}
|
|
261313
261743
|
case OP_STATE_DONE2: {
|
|
261314
|
-
return [
|
|
261744
|
+
return [interrupt6, state];
|
|
261315
261745
|
}
|
|
261316
261746
|
}
|
|
261317
261747
|
})));
|
|
@@ -261328,16 +261758,16 @@ class SingleProducerAsyncInputImpl {
|
|
|
261328
261758
|
}), stateError(cause2)];
|
|
261329
261759
|
}
|
|
261330
261760
|
case OP_STATE_ERROR: {
|
|
261331
|
-
return [
|
|
261761
|
+
return [interrupt6, state];
|
|
261332
261762
|
}
|
|
261333
261763
|
case OP_STATE_DONE2: {
|
|
261334
|
-
return [
|
|
261764
|
+
return [interrupt6, state];
|
|
261335
261765
|
}
|
|
261336
261766
|
}
|
|
261337
261767
|
}));
|
|
261338
261768
|
}
|
|
261339
261769
|
get take() {
|
|
261340
|
-
return this.takeWith((cause2) => failCause4(map12(cause2, left2)), (elem) => succeed4(elem), (
|
|
261770
|
+
return this.takeWith((cause2) => failCause4(map12(cause2, left2)), (elem) => succeed4(elem), (done8) => fail4(right2(done8)));
|
|
261341
261771
|
}
|
|
261342
261772
|
takeWith(onError3, onElement, onDone) {
|
|
261343
261773
|
return flatMap10(make19(), (deferred) => flatten6(modify4(this.ref, (state) => {
|
|
@@ -261370,7 +261800,7 @@ class SingleProducerAsyncInputImpl {
|
|
|
261370
261800
|
})));
|
|
261371
261801
|
}
|
|
261372
261802
|
}
|
|
261373
|
-
var
|
|
261803
|
+
var make42 = () => pipe(make19(), flatMap10((deferred) => make25(stateEmpty(deferred))), map16((ref) => new SingleProducerAsyncInputImpl(ref)));
|
|
261374
261804
|
|
|
261375
261805
|
// node_modules/effect/dist/esm/internal/channel.js
|
|
261376
261806
|
var acquireUseRelease3 = (acquire, use, release) => flatMap11(fromEffect4(make25(() => _void)), (ref) => pipe(fromEffect4(uninterruptible2(tap2(acquire, (a) => set6(ref, (exit3) => release(a, exit3))))), flatMap11(use), ensuringWith((exit3) => flatMap10(get11(ref), (f) => f(exit3)))));
|
|
@@ -261418,7 +261848,7 @@ var mergeAllWith = ({
|
|
|
261418
261848
|
mergeStrategy = BackPressure()
|
|
261419
261849
|
}) => (channels, f) => unwrapScopedWith((scope4) => gen2(function* () {
|
|
261420
261850
|
const concurrencyN = concurrency === "unbounded" ? Number.MAX_SAFE_INTEGER : concurrency;
|
|
261421
|
-
const input = yield*
|
|
261851
|
+
const input = yield* make42();
|
|
261422
261852
|
const queueReader = fromInput(input);
|
|
261423
261853
|
const queue = yield* bounded3(bufferSize);
|
|
261424
261854
|
yield* addFinalizer2(scope4, shutdown2(queue));
|
|
@@ -261430,7 +261860,7 @@ var mergeAllWith = ({
|
|
|
261430
261860
|
const pull = yield* toPullIn(pipeTo(queueReader, channels), scope4);
|
|
261431
261861
|
function evaluatePull(pull2) {
|
|
261432
261862
|
return pull2.pipe(flatMap10(match({
|
|
261433
|
-
onLeft: (
|
|
261863
|
+
onLeft: (done8) => succeed8(some2(done8)),
|
|
261434
261864
|
onRight: (outElem) => as3(offer3(queue, succeed8(right2(outElem))), none2())
|
|
261435
261865
|
})), repeat({
|
|
261436
261866
|
until: (_) => isSome2(_)
|
|
@@ -261443,8 +261873,8 @@ var mergeAllWith = ({
|
|
|
261443
261873
|
onFailure: (cause2) => offer3(queue, failCause8(cause2)).pipe(zipRight3(succeed8(false))),
|
|
261444
261874
|
onSuccess: match({
|
|
261445
261875
|
onLeft: (outDone) => raceWith2(interruptible4(_await(errorSignal)), interruptible4(withPermits(concurrencyN)(_void)), {
|
|
261446
|
-
onSelfDone: (_, permitAcquisition) => as3(
|
|
261447
|
-
onOtherDone: (_, failureAwait) => zipRight3(
|
|
261876
|
+
onSelfDone: (_, permitAcquisition) => as3(interrupt5(permitAcquisition), false),
|
|
261877
|
+
onOtherDone: (_, failureAwait) => zipRight3(interrupt5(failureAwait), get11(lastDone).pipe(flatMap10(match2({
|
|
261448
261878
|
onNone: () => offer3(queue, succeed8(left2(outDone))),
|
|
261449
261879
|
onSome: (lastDone2) => offer3(queue, succeed8(left2(f(lastDone2, outDone))))
|
|
261450
261880
|
})), as3(false)))
|
|
@@ -261461,8 +261891,8 @@ var mergeAllWith = ({
|
|
|
261461
261891
|
onBufferSliding: () => gen2(function* () {
|
|
261462
261892
|
const canceler = yield* make19();
|
|
261463
261893
|
const latch = yield* make19();
|
|
261464
|
-
const
|
|
261465
|
-
yield* take4(cancelers).pipe(flatMap10((canceler2) => succeed2(canceler2, undefined)), when2(() =>
|
|
261894
|
+
const size13 = yield* size12(cancelers);
|
|
261895
|
+
yield* take4(cancelers).pipe(flatMap10((canceler2) => succeed2(canceler2, undefined)), when2(() => size13 >= concurrencyN));
|
|
261466
261896
|
yield* offer3(cancelers, canceler);
|
|
261467
261897
|
const raceEffects = scopedWith2((scope5) => toPullIn(pipeTo(queueReader, channel), scope5).pipe(flatMap10((pull2) => exit2(evaluatePull(pull2)).pipe(race2(exit2(interruptible4(_await(errorSignal)))), race2(exit2(interruptible4(_await(canceler)))))), flatMap10(identity)));
|
|
261468
261898
|
yield* succeed2(latch, undefined).pipe(zipRight3(raceEffects), withPermits(1), forkIn2(scope4));
|
|
@@ -261488,29 +261918,29 @@ var mergeMap = /* @__PURE__ */ dual(3, (self2, f, options) => mergeAll6(options)
|
|
|
261488
261918
|
var mergeWith2 = /* @__PURE__ */ dual(2, (self2, options) => {
|
|
261489
261919
|
function merge8(scope4) {
|
|
261490
261920
|
return gen2(function* () {
|
|
261491
|
-
const input = yield*
|
|
261921
|
+
const input = yield* make42();
|
|
261492
261922
|
const queueReader = fromInput(input);
|
|
261493
261923
|
const pullL = yield* toPullIn(pipeTo(queueReader, self2), scope4);
|
|
261494
261924
|
const pullR = yield* toPullIn(pipeTo(queueReader, options.other), scope4);
|
|
261495
261925
|
function handleSide(exit3, fiber, pull) {
|
|
261496
|
-
return (
|
|
261926
|
+
return (done8, both2, single) => {
|
|
261497
261927
|
function onDecision(decision) {
|
|
261498
261928
|
const op = decision;
|
|
261499
261929
|
if (op._tag === OP_DONE4) {
|
|
261500
|
-
return succeed8(fromEffect4(zipRight3(
|
|
261930
|
+
return succeed8(fromEffect4(zipRight3(interrupt5(fiber), op.effect)));
|
|
261501
261931
|
}
|
|
261502
261932
|
return map16(_await3(fiber), match9({
|
|
261503
261933
|
onFailure: (cause2) => fromEffect4(op.f(failCause4(cause2))),
|
|
261504
261934
|
onSuccess: match({
|
|
261505
|
-
onLeft: (
|
|
261935
|
+
onLeft: (done9) => fromEffect4(op.f(succeed4(done9))),
|
|
261506
261936
|
onRight: (elem) => zipRight4(write(elem), go(single(op.f)))
|
|
261507
261937
|
})
|
|
261508
261938
|
}));
|
|
261509
261939
|
}
|
|
261510
261940
|
return match9(exit3, {
|
|
261511
|
-
onFailure: (cause2) => onDecision(
|
|
261941
|
+
onFailure: (cause2) => onDecision(done8(failCause4(cause2))),
|
|
261512
261942
|
onSuccess: match({
|
|
261513
|
-
onLeft: (z) => onDecision(
|
|
261943
|
+
onLeft: (z) => onDecision(done8(succeed4(z))),
|
|
261514
261944
|
onRight: (elem) => succeed8(flatMap11(write(elem), () => flatMap11(fromEffect4(forkIn2(interruptible4(pull), scope4)), (leftFiber) => go(both2(leftFiber, fiber)))))
|
|
261515
261945
|
})
|
|
261516
261946
|
});
|
|
@@ -261522,15 +261952,15 @@ var mergeWith2 = /* @__PURE__ */ dual(2, (self2, options) => {
|
|
|
261522
261952
|
const leftJoin = interruptible4(join3(state.left));
|
|
261523
261953
|
const rightJoin = interruptible4(join3(state.right));
|
|
261524
261954
|
return unwrap(raceWith2(leftJoin, rightJoin, {
|
|
261525
|
-
onSelfDone: (leftExit, rf) => zipRight3(
|
|
261526
|
-
onOtherDone: (rightExit, lf) => zipRight3(
|
|
261955
|
+
onSelfDone: (leftExit, rf) => zipRight3(interrupt5(rf), handleSide(leftExit, state.right, pullL)(options.onSelfDone, BothRunning, (f) => LeftDone(f))),
|
|
261956
|
+
onOtherDone: (rightExit, lf) => zipRight3(interrupt5(lf), handleSide(rightExit, state.left, pullR)(options.onOtherDone, (left3, right3) => BothRunning(right3, left3), (f) => RightDone(f)))
|
|
261527
261957
|
}));
|
|
261528
261958
|
}
|
|
261529
261959
|
case OP_LEFT_DONE: {
|
|
261530
261960
|
return unwrap(map16(exit2(pullR), match9({
|
|
261531
261961
|
onFailure: (cause2) => fromEffect4(state.f(failCause4(cause2))),
|
|
261532
261962
|
onSuccess: match({
|
|
261533
|
-
onLeft: (
|
|
261963
|
+
onLeft: (done8) => fromEffect4(state.f(succeed4(done8))),
|
|
261534
261964
|
onRight: (elem) => flatMap11(write(elem), () => go(LeftDone(state.f)))
|
|
261535
261965
|
})
|
|
261536
261966
|
})));
|
|
@@ -261539,7 +261969,7 @@ var mergeWith2 = /* @__PURE__ */ dual(2, (self2, options) => {
|
|
|
261539
261969
|
return unwrap(map16(exit2(pullL), match9({
|
|
261540
261970
|
onFailure: (cause2) => fromEffect4(state.f(failCause4(cause2))),
|
|
261541
261971
|
onSuccess: match({
|
|
261542
|
-
onLeft: (
|
|
261972
|
+
onLeft: (done8) => fromEffect4(state.f(succeed4(done8))),
|
|
261543
261973
|
onRight: (elem) => flatMap11(write(elem), () => go(RightDone(state.f)))
|
|
261544
261974
|
})
|
|
261545
261975
|
})));
|
|
@@ -261591,7 +262021,7 @@ var interpretToPull = (channelState, exec) => {
|
|
|
261591
262021
|
case OP_DONE3: {
|
|
261592
262022
|
return match9(exec.getDone(), {
|
|
261593
262023
|
onFailure: failCause8,
|
|
261594
|
-
onSuccess: (
|
|
262024
|
+
onSuccess: (done8) => succeed8(left2(done8))
|
|
261595
262025
|
});
|
|
261596
262026
|
}
|
|
261597
262027
|
case OP_EMIT2: {
|
|
@@ -261675,14 +262105,14 @@ var unwrapScoped3 = (effect3) => new SinkImpl(unwrapScoped2(effect3.pipe(map16((
|
|
|
261675
262105
|
var runFork3 = unsafeFork2;
|
|
261676
262106
|
var runPromiseExit2 = unsafeRunPromiseExit;
|
|
261677
262107
|
var defaultRuntime2 = defaultRuntime;
|
|
261678
|
-
var
|
|
262108
|
+
var make43 = make38;
|
|
261679
262109
|
|
|
261680
262110
|
// node_modules/effect/dist/esm/Schedule.js
|
|
261681
262111
|
var ScheduleTypeId2 = ScheduleTypeId;
|
|
261682
262112
|
var passthrough3 = passthrough;
|
|
261683
262113
|
|
|
261684
262114
|
// node_modules/effect/dist/esm/internal/stream/emit.js
|
|
261685
|
-
var
|
|
262115
|
+
var make44 = (emit) => {
|
|
261686
262116
|
const ops = {
|
|
261687
262117
|
chunk(as6) {
|
|
261688
262118
|
return this(succeed8(as6));
|
|
@@ -261743,7 +262173,7 @@ class TakeImpl {
|
|
|
261743
262173
|
}
|
|
261744
262174
|
}
|
|
261745
262175
|
var chunk2 = (chunk3) => new TakeImpl(succeed4(chunk3));
|
|
261746
|
-
var
|
|
262176
|
+
var done8 = (self2) => suspend3(() => self2.exit);
|
|
261747
262177
|
var end3 = /* @__PURE__ */ new TakeImpl(/* @__PURE__ */ fail4(/* @__PURE__ */ none2()));
|
|
261748
262178
|
var failCause10 = (cause2) => new TakeImpl(failCause4(pipe(cause2, map12(some2))));
|
|
261749
262179
|
var fromPull = (pull) => matchCause3(pull, {
|
|
@@ -261804,13 +262234,13 @@ var queueFromBufferOptions = (bufferSize) => {
|
|
|
261804
262234
|
return bounded3(bufferSize.bufferSize ?? 16);
|
|
261805
262235
|
}
|
|
261806
262236
|
};
|
|
261807
|
-
var asyncScoped = (register, bufferSize) => pipe(acquireRelease2(queueFromBufferOptions(bufferSize), (queue) => shutdown2(queue)), flatMap10((output) => pipe(runtime4(), flatMap10((runtime5) => pipe(register(
|
|
262237
|
+
var asyncScoped = (register, bufferSize) => pipe(acquireRelease2(queueFromBufferOptions(bufferSize), (queue) => shutdown2(queue)), flatMap10((output) => pipe(runtime4(), flatMap10((runtime5) => pipe(register(make44((k) => pipe(fromPull(k), flatMap10((take5) => offer3(output, take5)), asVoid2, runPromiseExit2(runtime5)).then((exit3) => {
|
|
261808
262238
|
if (isFailure2(exit3)) {
|
|
261809
262239
|
if (!isInterrupted2(exit3.cause)) {
|
|
261810
262240
|
throw squash(exit3.cause);
|
|
261811
262241
|
}
|
|
261812
262242
|
}
|
|
261813
|
-
}))), zipRight3(make25(false)), flatMap10((ref) => pipe(get11(ref), map16((isDone6) => isDone6 ? end4() : pipe(take4(output), flatMap10(
|
|
262243
|
+
}))), zipRight3(make25(false)), flatMap10((ref) => pipe(get11(ref), map16((isDone6) => isDone6 ? end4() : pipe(take4(output), flatMap10(done8), onError2(() => pipe(set6(ref, true), zipRight3(shutdown2(output)))))))))))), scoped5, flatMap13(repeatEffectChunkOption));
|
|
261814
262244
|
var bufferChunks = /* @__PURE__ */ dual(2, (self2, options) => {
|
|
261815
262245
|
if (options.strategy === "dropping") {
|
|
261816
262246
|
return bufferChunksDropping(self2, options.capacity);
|
|
@@ -261938,9 +262368,9 @@ var fromReadableStream = (...args2) => {
|
|
|
261938
262368
|
try: () => reader.read(),
|
|
261939
262369
|
catch: (reason) => some2(onError3(reason))
|
|
261940
262370
|
}), ({
|
|
261941
|
-
done:
|
|
262371
|
+
done: done9,
|
|
261942
262372
|
value
|
|
261943
|
-
}) =>
|
|
262373
|
+
}) => done9 ? fail8(none2()) : succeed8(value)))));
|
|
261944
262374
|
};
|
|
261945
262375
|
var map19 = /* @__PURE__ */ dual(2, (self2, f) => new StreamImpl(pipe(toChannel2(self2), mapOut(map5(f)))));
|
|
261946
262376
|
var mapError5 = /* @__PURE__ */ dual(2, (self2, f) => new StreamImpl(pipe(toChannel2(self2), mapError4(f))));
|
|
@@ -262007,7 +262437,7 @@ var toReadableStreamRuntime = /* @__PURE__ */ dual((args2) => isStream(args2[0])
|
|
|
262007
262437
|
cancel() {
|
|
262008
262438
|
if (!fiber)
|
|
262009
262439
|
return;
|
|
262010
|
-
return runPromise(asVoid2(
|
|
262440
|
+
return runPromise(asVoid2(interrupt5(fiber)));
|
|
262011
262441
|
}
|
|
262012
262442
|
}, options?.strategy);
|
|
262013
262443
|
});
|
|
@@ -262114,7 +262544,7 @@ __export(exports_Schema, {
|
|
|
262114
262544
|
maxLength: () => maxLength,
|
|
262115
262545
|
maxItems: () => maxItems,
|
|
262116
262546
|
makePropertySignature: () => makePropertySignature,
|
|
262117
|
-
make: () =>
|
|
262547
|
+
make: () => make50,
|
|
262118
262548
|
lowercased: () => lowercased,
|
|
262119
262549
|
lessThanOrEqualToDuration: () => lessThanOrEqualToDuration,
|
|
262120
262550
|
lessThanOrEqualToDate: () => lessThanOrEqualToDate,
|
|
@@ -262459,7 +262889,7 @@ var BigDecimalProto = {
|
|
|
262459
262889
|
}
|
|
262460
262890
|
};
|
|
262461
262891
|
var isBigDecimal = (u) => hasProperty(u, TypeId17);
|
|
262462
|
-
var
|
|
262892
|
+
var make45 = (value, scale) => {
|
|
262463
262893
|
const o = Object.create(BigDecimalProto);
|
|
262464
262894
|
o.value = value;
|
|
262465
262895
|
o.scale = scale;
|
|
@@ -262469,7 +262899,7 @@ var unsafeMakeNormalized = (value, scale) => {
|
|
|
262469
262899
|
if (value !== bigint04 && value % bigint10 === bigint04) {
|
|
262470
262900
|
throw new RangeError("Value must be normalized");
|
|
262471
262901
|
}
|
|
262472
|
-
const o =
|
|
262902
|
+
const o = make45(value, scale);
|
|
262473
262903
|
o.normalized = o;
|
|
262474
262904
|
return o;
|
|
262475
262905
|
};
|
|
@@ -262502,10 +262932,10 @@ var normalize = (self2) => {
|
|
|
262502
262932
|
};
|
|
262503
262933
|
var scale = /* @__PURE__ */ dual(2, (self2, scale2) => {
|
|
262504
262934
|
if (scale2 > self2.scale) {
|
|
262505
|
-
return
|
|
262935
|
+
return make45(self2.value * bigint10 ** BigInt(scale2 - self2.scale), scale2);
|
|
262506
262936
|
}
|
|
262507
262937
|
if (scale2 < self2.scale) {
|
|
262508
|
-
return
|
|
262938
|
+
return make45(self2.value / bigint10 ** BigInt(self2.scale - scale2), scale2);
|
|
262509
262939
|
}
|
|
262510
262940
|
return self2;
|
|
262511
262941
|
});
|
|
@@ -262529,7 +262959,7 @@ var greaterThanOrEqualTo3 = /* @__PURE__ */ greaterThanOrEqualTo(Order5);
|
|
|
262529
262959
|
var between3 = /* @__PURE__ */ between(Order5);
|
|
262530
262960
|
var clamp5 = /* @__PURE__ */ clamp(Order5);
|
|
262531
262961
|
var sign = (n) => n.value === bigint04 ? 0 : n.value < bigint04 ? -1 : 1;
|
|
262532
|
-
var abs = (n) => n.value < bigint04 ?
|
|
262962
|
+
var abs = (n) => n.value < bigint04 ? make45(-n.value, n.scale) : n;
|
|
262533
262963
|
var Equivalence3 = /* @__PURE__ */ make((self2, that) => {
|
|
262534
262964
|
if (self2.scale > that.scale) {
|
|
262535
262965
|
return scale(that, self2.scale).value === self2.value;
|
|
@@ -262550,7 +262980,7 @@ var safeFromNumber = (n) => {
|
|
|
262550
262980
|
return fromString(string3);
|
|
262551
262981
|
}
|
|
262552
262982
|
const [lead, trail = ""] = string3.split(".");
|
|
262553
|
-
return some2(
|
|
262983
|
+
return some2(make45(BigInt(`${lead}${trail}`), trail.length));
|
|
262554
262984
|
};
|
|
262555
262985
|
var fromString = (s) => {
|
|
262556
262986
|
if (s === "") {
|
|
@@ -262589,7 +263019,7 @@ var fromString = (s) => {
|
|
|
262589
263019
|
if (!Number.isSafeInteger(scale2)) {
|
|
262590
263020
|
return none2();
|
|
262591
263021
|
}
|
|
262592
|
-
return some2(
|
|
263022
|
+
return some2(make45(BigInt(digits), scale2));
|
|
262593
263023
|
};
|
|
262594
263024
|
var format4 = (n) => {
|
|
262595
263025
|
const normalized = normalize(n);
|
|
@@ -262614,8 +263044,8 @@ var format4 = (n) => {
|
|
|
262614
263044
|
before2 = absolute.slice(0, location2);
|
|
262615
263045
|
}
|
|
262616
263046
|
}
|
|
262617
|
-
const
|
|
262618
|
-
return negative ? `-${
|
|
263047
|
+
const complete3 = after3 === "" ? before2 : `${before2}.${after3}`;
|
|
263048
|
+
return negative ? `-${complete3}` : complete3;
|
|
262619
263049
|
};
|
|
262620
263050
|
var toExponential = (n) => {
|
|
262621
263051
|
if (isZero2(n)) {
|
|
@@ -262697,7 +263127,7 @@ var proto12 = {
|
|
|
262697
263127
|
}
|
|
262698
263128
|
};
|
|
262699
263129
|
var isRedacted = (u) => hasProperty(u, RedactedTypeId);
|
|
262700
|
-
var
|
|
263130
|
+
var make46 = (value) => {
|
|
262701
263131
|
const redacted = Object.create(proto12);
|
|
262702
263132
|
redactedRegistry.set(redacted, value);
|
|
262703
263133
|
return redacted;
|
|
@@ -262717,7 +263147,7 @@ var SecretProto = {
|
|
|
262717
263147
|
...proto12,
|
|
262718
263148
|
[SecretTypeId]: SecretTypeId
|
|
262719
263149
|
};
|
|
262720
|
-
var
|
|
263150
|
+
var make47 = (bytes) => {
|
|
262721
263151
|
const secret = Object.create(SecretProto);
|
|
262722
263152
|
Object.defineProperty(secret, "toString", {
|
|
262723
263153
|
enumerable: false,
|
|
@@ -262739,7 +263169,7 @@ var make46 = (bytes) => {
|
|
|
262739
263169
|
return secret;
|
|
262740
263170
|
};
|
|
262741
263171
|
var fromString3 = (text) => {
|
|
262742
|
-
return
|
|
263172
|
+
return make47(text.split("").map((char) => char.charCodeAt(0)));
|
|
262743
263173
|
};
|
|
262744
263174
|
|
|
262745
263175
|
// node_modules/effect/dist/esm/internal/config.js
|
|
@@ -262830,7 +263260,7 @@ var isUtc2 = isUtc;
|
|
|
262830
263260
|
var isZoned2 = isZoned;
|
|
262831
263261
|
var Equivalence4 = Equivalence2;
|
|
262832
263262
|
var unsafeFromDate2 = unsafeFromDate;
|
|
262833
|
-
var
|
|
263263
|
+
var unsafeMake12 = unsafeMake9;
|
|
262834
263264
|
var unsafeMakeZoned2 = unsafeMakeZoned;
|
|
262835
263265
|
var makeZonedFromString2 = makeZonedFromString;
|
|
262836
263266
|
var zoneUnsafeMakeNamed2 = zoneUnsafeMakeNamed;
|
|
@@ -263969,8 +264399,8 @@ var MaxLengthUpperBound = 2147483647;
|
|
|
263969
264399
|
var orderedSize = ["xsmall", "small", "medium", "large", "xlarge"];
|
|
263970
264400
|
var orderedRelativeSize = ["-4", "-3", "-2", "-1", "=", "+1", "+2", "+3", "+4"];
|
|
263971
264401
|
var DefaultSize = "small";
|
|
263972
|
-
function maxLengthFromMinLength(minLength,
|
|
263973
|
-
switch (
|
|
264402
|
+
function maxLengthFromMinLength(minLength, size13) {
|
|
264403
|
+
switch (size13) {
|
|
263974
264404
|
case "xsmall":
|
|
263975
264405
|
return safeMathFloor4(1.1 * minLength) + 1;
|
|
263976
264406
|
case "small":
|
|
@@ -263982,13 +264412,13 @@ function maxLengthFromMinLength(minLength, size12) {
|
|
|
263982
264412
|
case "xlarge":
|
|
263983
264413
|
return 1001 * minLength + 1e4;
|
|
263984
264414
|
default:
|
|
263985
|
-
throw new Error(`Unable to compute lengths based on received size: ${
|
|
264415
|
+
throw new Error(`Unable to compute lengths based on received size: ${size13}`);
|
|
263986
264416
|
}
|
|
263987
264417
|
}
|
|
263988
|
-
function relativeSizeToSize(
|
|
263989
|
-
const sizeInRelative = safeIndexOf(orderedRelativeSize,
|
|
264418
|
+
function relativeSizeToSize(size13, defaultSize) {
|
|
264419
|
+
const sizeInRelative = safeIndexOf(orderedRelativeSize, size13);
|
|
263990
264420
|
if (sizeInRelative === -1) {
|
|
263991
|
-
return
|
|
264421
|
+
return size13;
|
|
263992
264422
|
}
|
|
263993
264423
|
const defaultSizeInSize = safeIndexOf(orderedSize, defaultSize);
|
|
263994
264424
|
if (defaultSizeInSize === -1) {
|
|
@@ -263997,9 +264427,9 @@ function relativeSizeToSize(size12, defaultSize) {
|
|
|
263997
264427
|
const resultingSizeInSize = defaultSizeInSize + sizeInRelative - 4;
|
|
263998
264428
|
return resultingSizeInSize < 0 ? orderedSize[0] : resultingSizeInSize >= orderedSize.length ? orderedSize[orderedSize.length - 1] : orderedSize[resultingSizeInSize];
|
|
263999
264429
|
}
|
|
264000
|
-
function maxGeneratedLengthFromSizeForArbitrary(
|
|
264430
|
+
function maxGeneratedLengthFromSizeForArbitrary(size13, minLength, maxLength, specifiedMaxLength) {
|
|
264001
264431
|
const { baseSize: defaultSize = DefaultSize, defaultSizeToMaxWhenMaxSpecified } = readConfigureGlobal() || {};
|
|
264002
|
-
const definedSize =
|
|
264432
|
+
const definedSize = size13 !== undefined ? size13 : specifiedMaxLength && defaultSizeToMaxWhenMaxSpecified ? "max" : defaultSize;
|
|
264003
264433
|
if (definedSize === "max") {
|
|
264004
264434
|
return maxLength;
|
|
264005
264435
|
}
|
|
@@ -264009,13 +264439,13 @@ function maxGeneratedLengthFromSizeForArbitrary(size12, minLength, maxLength, sp
|
|
|
264009
264439
|
|
|
264010
264440
|
// node_modules/fast-check/lib/esm/arbitrary/array.js
|
|
264011
264441
|
function array5(arb, constraints = {}) {
|
|
264012
|
-
const
|
|
264442
|
+
const size13 = constraints.size;
|
|
264013
264443
|
const minLength = constraints.minLength || 0;
|
|
264014
264444
|
const maxLengthOrUnset = constraints.maxLength;
|
|
264015
264445
|
const depthIdentifier = constraints.depthIdentifier;
|
|
264016
264446
|
const maxLength = maxLengthOrUnset !== undefined ? maxLengthOrUnset : MaxLengthUpperBound;
|
|
264017
264447
|
const specifiedMaxLength = maxLengthOrUnset !== undefined;
|
|
264018
|
-
const maxGeneratedLength = maxGeneratedLengthFromSizeForArbitrary(
|
|
264448
|
+
const maxGeneratedLength = maxGeneratedLengthFromSizeForArbitrary(size13, minLength, maxLength, specifiedMaxLength);
|
|
264019
264449
|
const customSlices = constraints.experimentalCustomSlices || [];
|
|
264020
264450
|
return new ArrayArbitrary(arb, minLength, maxGeneratedLength, maxLength, depthIdentifier, undefined, customSlices);
|
|
264021
264451
|
}
|
|
@@ -264033,14 +264463,14 @@ var getKeysForIndexSignature = (input, parameter) => {
|
|
|
264033
264463
|
}
|
|
264034
264464
|
};
|
|
264035
264465
|
var memoizeThunk = (f) => {
|
|
264036
|
-
let
|
|
264466
|
+
let done9 = false;
|
|
264037
264467
|
let a;
|
|
264038
264468
|
return () => {
|
|
264039
|
-
if (
|
|
264469
|
+
if (done9) {
|
|
264040
264470
|
return a;
|
|
264041
264471
|
}
|
|
264042
264472
|
a = f();
|
|
264043
|
-
|
|
264473
|
+
done9 = true;
|
|
264044
264474
|
return a;
|
|
264045
264475
|
};
|
|
264046
264476
|
};
|
|
@@ -266854,7 +267284,7 @@ var getArrayFormatterIssues = (issue, parentTag, path) => {
|
|
|
266854
267284
|
|
|
266855
267285
|
// node_modules/effect/dist/esm/Redacted.js
|
|
266856
267286
|
var isRedacted2 = isRedacted;
|
|
266857
|
-
var
|
|
267287
|
+
var make49 = make46;
|
|
266858
267288
|
var value2 = value;
|
|
266859
267289
|
var getEquivalence7 = (isEquivalent) => make((x, y) => isEquivalent(value2(x), value2(y)));
|
|
266860
267290
|
|
|
@@ -266880,12 +267310,12 @@ var omit3 = /* @__PURE__ */ dual((args2) => isObject(args2[0]), (s, ...keys6) =>
|
|
|
266880
267310
|
|
|
266881
267311
|
// node_modules/effect/dist/esm/Schema.js
|
|
266882
267312
|
var TypeId18 = /* @__PURE__ */ Symbol.for("effect/Schema");
|
|
266883
|
-
function
|
|
267313
|
+
function make50(ast) {
|
|
266884
267314
|
return class SchemaClass {
|
|
266885
267315
|
[TypeId18] = variance5;
|
|
266886
267316
|
static ast = ast;
|
|
266887
267317
|
static annotations(annotations2) {
|
|
266888
|
-
return
|
|
267318
|
+
return make50(mergeSchemaAnnotations(this.ast, annotations2));
|
|
266889
267319
|
}
|
|
266890
267320
|
static pipe() {
|
|
266891
267321
|
return pipeArguments(this, arguments);
|
|
@@ -266920,7 +267350,7 @@ var standardSchemaV1 = (schema, overrideOptions) => {
|
|
|
266920
267350
|
const decodeUnknown2 = decodeUnknown(schema, {
|
|
266921
267351
|
errors: "all"
|
|
266922
267352
|
});
|
|
266923
|
-
return class StandardSchemaV1Class extends
|
|
267353
|
+
return class StandardSchemaV1Class extends make50(schema.ast) {
|
|
266924
267354
|
static "~standard" = {
|
|
266925
267355
|
version: 1,
|
|
266926
267356
|
vendor: "effect",
|
|
@@ -266990,9 +267420,9 @@ function asSchema(schema) {
|
|
|
266990
267420
|
return schema;
|
|
266991
267421
|
}
|
|
266992
267422
|
var format6 = (schema) => String(schema.ast);
|
|
266993
|
-
var encodedSchema = (schema) =>
|
|
266994
|
-
var encodedBoundSchema = (schema) =>
|
|
266995
|
-
var typeSchema = (schema) =>
|
|
267423
|
+
var encodedSchema = (schema) => make50(encodedAST(schema.ast));
|
|
267424
|
+
var encodedBoundSchema = (schema) => make50(encodedBoundAST(schema.ast));
|
|
267425
|
+
var typeSchema = (schema) => make50(typeAST(schema.ast));
|
|
266996
267426
|
var encodeUnknown2 = (schema, options) => {
|
|
266997
267427
|
const encodeUnknown3 = encodeUnknown(schema, options);
|
|
266998
267428
|
return (u, overrideOptions) => mapError6(encodeUnknown3(u, overrideOptions), parseError);
|
|
@@ -267040,7 +267470,7 @@ function getDefaultLiteralAST(literals) {
|
|
|
267040
267470
|
return isMembers(literals) ? Union.make(mapMembers(literals, (literal2) => new Literal(literal2))) : new Literal(literals[0]);
|
|
267041
267471
|
}
|
|
267042
267472
|
function makeLiteralClass(literals, ast = getDefaultLiteralAST(literals)) {
|
|
267043
|
-
return class LiteralClass extends
|
|
267473
|
+
return class LiteralClass extends make50(ast) {
|
|
267044
267474
|
static annotations(annotations2) {
|
|
267045
267475
|
return makeLiteralClass(this.literals, mergeSchemaAnnotations(this.ast, annotations2));
|
|
267046
267476
|
}
|
|
@@ -267051,9 +267481,9 @@ function Literal2(...literals) {
|
|
|
267051
267481
|
return isNonEmptyReadonlyArray(literals) ? makeLiteralClass(literals) : Never;
|
|
267052
267482
|
}
|
|
267053
267483
|
var pickLiteral = (...literals) => (_schema) => Literal2(...literals);
|
|
267054
|
-
var UniqueSymbolFromSelf = (symbol3) =>
|
|
267484
|
+
var UniqueSymbolFromSelf = (symbol3) => make50(new UniqueSymbol(symbol3));
|
|
267055
267485
|
var getDefaultEnumsAST = (enums) => new Enums(Object.keys(enums).filter((key) => typeof enums[enums[key]] !== "number").map((key) => [key, enums[key]]));
|
|
267056
|
-
var makeEnumsClass = (enums, ast = getDefaultEnumsAST(enums)) => class EnumsClass extends
|
|
267486
|
+
var makeEnumsClass = (enums, ast = getDefaultEnumsAST(enums)) => class EnumsClass extends make50(ast) {
|
|
267057
267487
|
static annotations(annotations2) {
|
|
267058
267488
|
return makeEnumsClass(this.enums, mergeSchemaAnnotations(this.ast, annotations2));
|
|
267059
267489
|
}
|
|
@@ -267098,9 +267528,9 @@ var TemplateLiteral2 = (...[head5, ...tail]) => {
|
|
|
267098
267528
|
}
|
|
267099
267529
|
}
|
|
267100
267530
|
if (isNonEmptyArray2(spans)) {
|
|
267101
|
-
return
|
|
267531
|
+
return make50(new TemplateLiteral(h, spans));
|
|
267102
267532
|
} else {
|
|
267103
|
-
return
|
|
267533
|
+
return make50(new TemplateLiteral("", [new TemplateLiteralSpan(new Literal(h), "")]));
|
|
267104
267534
|
}
|
|
267105
267535
|
};
|
|
267106
267536
|
function getTemplateLiteralParserCoercedElement(encoded, schema) {
|
|
@@ -267124,7 +267554,7 @@ function getTemplateLiteralParserCoercedElement(encoded, schema) {
|
|
|
267124
267554
|
const members = [];
|
|
267125
267555
|
let hasCoercions = false;
|
|
267126
267556
|
for (const member of ast.types) {
|
|
267127
|
-
const schema2 =
|
|
267557
|
+
const schema2 = make50(member);
|
|
267128
267558
|
const encoded2 = encodedSchema(schema2);
|
|
267129
267559
|
const coerced = getTemplateLiteralParserCoercedElement(encoded2, schema2);
|
|
267130
267560
|
if (coerced) {
|
|
@@ -267174,14 +267604,14 @@ var TemplateLiteralParser = (...params) => {
|
|
|
267174
267604
|
static params = params.slice();
|
|
267175
267605
|
};
|
|
267176
267606
|
};
|
|
267177
|
-
var declareConstructor = (typeParameters, options, annotations2) => makeDeclareClass(typeParameters, new Declaration(typeParameters.map((tp) => tp.ast), (...typeParameters2) => options.decode(...typeParameters2.map(
|
|
267607
|
+
var declareConstructor = (typeParameters, options, annotations2) => makeDeclareClass(typeParameters, new Declaration(typeParameters.map((tp) => tp.ast), (...typeParameters2) => options.decode(...typeParameters2.map(make50)), (...typeParameters2) => options.encode(...typeParameters2.map(make50)), toASTAnnotations(annotations2)));
|
|
267178
267608
|
var declarePrimitive = (is2, annotations2) => {
|
|
267179
267609
|
const decodeUnknown3 = () => (input, _, ast) => is2(input) ? succeed15(input) : fail14(new Type2(ast, input));
|
|
267180
267610
|
const encodeUnknown3 = decodeUnknown3;
|
|
267181
267611
|
return makeDeclareClass([], new Declaration([], decodeUnknown3, encodeUnknown3, toASTAnnotations(annotations2)));
|
|
267182
267612
|
};
|
|
267183
267613
|
function makeDeclareClass(typeParameters, ast) {
|
|
267184
|
-
return class DeclareClass extends
|
|
267614
|
+
return class DeclareClass extends make50(ast) {
|
|
267185
267615
|
static annotations(annotations2) {
|
|
267186
267616
|
return makeDeclareClass(this.typeParameters, mergeSchemaAnnotations(this.ast, annotations2));
|
|
267187
267617
|
}
|
|
@@ -267225,44 +267655,44 @@ var instanceOf = (constructor, annotations2) => declare((u) => u instanceof cons
|
|
|
267225
267655
|
...annotations2
|
|
267226
267656
|
});
|
|
267227
267657
|
|
|
267228
|
-
class Undefined extends (/* @__PURE__ */
|
|
267658
|
+
class Undefined extends (/* @__PURE__ */ make50(undefinedKeyword)) {
|
|
267229
267659
|
}
|
|
267230
267660
|
|
|
267231
|
-
class Void extends (/* @__PURE__ */
|
|
267661
|
+
class Void extends (/* @__PURE__ */ make50(voidKeyword)) {
|
|
267232
267662
|
}
|
|
267233
267663
|
|
|
267234
|
-
class Null extends (/* @__PURE__ */
|
|
267664
|
+
class Null extends (/* @__PURE__ */ make50($null)) {
|
|
267235
267665
|
}
|
|
267236
267666
|
|
|
267237
|
-
class Never extends (/* @__PURE__ */
|
|
267667
|
+
class Never extends (/* @__PURE__ */ make50(neverKeyword)) {
|
|
267238
267668
|
}
|
|
267239
267669
|
|
|
267240
|
-
class Unknown extends (/* @__PURE__ */
|
|
267670
|
+
class Unknown extends (/* @__PURE__ */ make50(unknownKeyword)) {
|
|
267241
267671
|
}
|
|
267242
267672
|
|
|
267243
|
-
class Any extends (/* @__PURE__ */
|
|
267673
|
+
class Any extends (/* @__PURE__ */ make50(anyKeyword)) {
|
|
267244
267674
|
}
|
|
267245
267675
|
|
|
267246
|
-
class BigIntFromSelf extends (/* @__PURE__ */
|
|
267676
|
+
class BigIntFromSelf extends (/* @__PURE__ */ make50(bigIntKeyword)) {
|
|
267247
267677
|
}
|
|
267248
267678
|
|
|
267249
|
-
class SymbolFromSelf extends (/* @__PURE__ */
|
|
267679
|
+
class SymbolFromSelf extends (/* @__PURE__ */ make50(symbolKeyword)) {
|
|
267250
267680
|
}
|
|
267251
267681
|
|
|
267252
|
-
class String$ extends (/* @__PURE__ */
|
|
267682
|
+
class String$ extends (/* @__PURE__ */ make50(stringKeyword)) {
|
|
267253
267683
|
}
|
|
267254
267684
|
|
|
267255
|
-
class Number$ extends (/* @__PURE__ */
|
|
267685
|
+
class Number$ extends (/* @__PURE__ */ make50(numberKeyword)) {
|
|
267256
267686
|
}
|
|
267257
267687
|
|
|
267258
|
-
class Boolean$ extends (/* @__PURE__ */
|
|
267688
|
+
class Boolean$ extends (/* @__PURE__ */ make50(booleanKeyword)) {
|
|
267259
267689
|
}
|
|
267260
267690
|
|
|
267261
|
-
class Object$ extends (/* @__PURE__ */
|
|
267691
|
+
class Object$ extends (/* @__PURE__ */ make50(objectKeyword)) {
|
|
267262
267692
|
}
|
|
267263
267693
|
var getDefaultUnionAST = (members) => Union.make(members.map((m) => m.ast));
|
|
267264
267694
|
function makeUnionClass(members, ast = getDefaultUnionAST(members)) {
|
|
267265
|
-
return class UnionClass extends
|
|
267695
|
+
return class UnionClass extends make50(ast) {
|
|
267266
267696
|
static annotations(annotations2) {
|
|
267267
267697
|
return makeUnionClass(this.members, mergeSchemaAnnotations(this.ast, annotations2));
|
|
267268
267698
|
}
|
|
@@ -267275,7 +267705,7 @@ function Union2(...members) {
|
|
|
267275
267705
|
var NullOr = (self2) => Union2(self2, Null);
|
|
267276
267706
|
var UndefinedOr = (self2) => Union2(self2, Undefined);
|
|
267277
267707
|
var NullishOr = (self2) => Union2(self2, Null, Undefined);
|
|
267278
|
-
var keyof2 = (self2) =>
|
|
267708
|
+
var keyof2 = (self2) => make50(keyof(self2.ast));
|
|
267279
267709
|
var element = (self2) => new ElementImpl(new OptionalType(self2.ast, false), self2);
|
|
267280
267710
|
var optionalElement = (self2) => new ElementImpl(new OptionalType(self2.ast, true), self2);
|
|
267281
267711
|
|
|
@@ -267300,7 +267730,7 @@ class ElementImpl {
|
|
|
267300
267730
|
}
|
|
267301
267731
|
var getDefaultTupleTypeAST = (elements, rest) => new TupleType(elements.map((el) => isSchema(el) ? new OptionalType(el.ast, false) : el.ast), rest.map((el) => isSchema(el) ? new Type(el.ast) : el.ast), true);
|
|
267302
267732
|
function makeTupleTypeClass(elements, rest, ast = getDefaultTupleTypeAST(elements, rest)) {
|
|
267303
|
-
return class TupleTypeClass extends
|
|
267733
|
+
return class TupleTypeClass extends make50(ast) {
|
|
267304
267734
|
static annotations(annotations2) {
|
|
267305
267735
|
return makeTupleTypeClass(this.elements, this.rest, mergeSchemaAnnotations(this.ast, annotations2));
|
|
267306
267736
|
}
|
|
@@ -267691,7 +268121,7 @@ var lazilyMergeDefaults = (fields, out) => {
|
|
|
267691
268121
|
return out;
|
|
267692
268122
|
};
|
|
267693
268123
|
function makeTypeLiteralClass(fields, records, ast = getDefaultTypeLiteralAST(fields, records)) {
|
|
267694
|
-
return class TypeLiteralClass extends
|
|
268124
|
+
return class TypeLiteralClass extends make50(ast) {
|
|
267695
268125
|
static annotations(annotations2) {
|
|
267696
268126
|
return makeTypeLiteralClass(this.fields, this.records, mergeSchemaAnnotations(this.ast, annotations2));
|
|
267697
268127
|
}
|
|
@@ -267734,11 +268164,11 @@ function makeRecordClass(key, value3, ast) {
|
|
|
267734
268164
|
};
|
|
267735
268165
|
}
|
|
267736
268166
|
var Record = (options) => makeRecordClass(options.key, options.value);
|
|
267737
|
-
var pick4 = (...keys6) => (self2) =>
|
|
267738
|
-
var omit4 = (...keys6) => (self2) =>
|
|
268167
|
+
var pick4 = (...keys6) => (self2) => make50(pick2(self2.ast, keys6));
|
|
268168
|
+
var omit4 = (...keys6) => (self2) => make50(omit2(self2.ast, keys6));
|
|
267739
268169
|
var pluck = /* @__PURE__ */ dual(2, (schema, key) => {
|
|
267740
268170
|
const ps = getPropertyKeyIndexedAccess(typeAST(schema.ast), key);
|
|
267741
|
-
const value3 =
|
|
268171
|
+
const value3 = make50(ps.isOptional ? orUndefined(ps.type) : ps.type);
|
|
267742
268172
|
const out = transform2(schema.pipe(pick4(key)), value3, {
|
|
267743
268173
|
strict: true,
|
|
267744
268174
|
decode: (i) => i[key],
|
|
@@ -267749,7 +268179,7 @@ var pluck = /* @__PURE__ */ dual(2, (schema, key) => {
|
|
|
267749
268179
|
return out;
|
|
267750
268180
|
});
|
|
267751
268181
|
function makeBrandClass(from, ast) {
|
|
267752
|
-
return class BrandClass extends
|
|
268182
|
+
return class BrandClass extends make50(ast) {
|
|
267753
268183
|
static annotations(annotations2) {
|
|
267754
268184
|
return makeBrandClass(this.from, mergeSchemaAnnotations(this.ast, annotations2));
|
|
267755
268185
|
}
|
|
@@ -267770,10 +268200,10 @@ var brand = (brand2, annotations2) => (self2) => {
|
|
|
267770
268200
|
}));
|
|
267771
268201
|
return makeBrandClass(self2, ast);
|
|
267772
268202
|
};
|
|
267773
|
-
var partial2 = (self2) =>
|
|
267774
|
-
var partialWith = /* @__PURE__ */ dual((args2) => isSchema(args2[0]), (self2, options) =>
|
|
267775
|
-
var required2 = (self2) =>
|
|
267776
|
-
var mutable2 = (schema) =>
|
|
268203
|
+
var partial2 = (self2) => make50(partial(self2.ast));
|
|
268204
|
+
var partialWith = /* @__PURE__ */ dual((args2) => isSchema(args2[0]), (self2, options) => make50(partial(self2.ast, options)));
|
|
268205
|
+
var required2 = (self2) => make50(required(self2.ast));
|
|
268206
|
+
var mutable2 = (schema) => make50(mutable(schema.ast));
|
|
267777
268207
|
var intersectTypeLiterals = (x, y, path) => {
|
|
267778
268208
|
if (isTypeLiteral(x) && isTypeLiteral(y)) {
|
|
267779
268209
|
const propertySignatures = [...x.propertySignatures];
|
|
@@ -267893,12 +268323,12 @@ var intersectUnionMembers = (xs, ys, path) => flatMap2(xs, (x) => flatMap2(ys, (
|
|
|
267893
268323
|
}
|
|
267894
268324
|
throw new Error(getSchemaExtendErrorMessage(x, y, path));
|
|
267895
268325
|
}));
|
|
267896
|
-
var extend3 = /* @__PURE__ */ dual(2, (self2, that) =>
|
|
268326
|
+
var extend3 = /* @__PURE__ */ dual(2, (self2, that) => make50(extendAST(self2.ast, that.ast, [])));
|
|
267897
268327
|
var compose3 = /* @__PURE__ */ dual((args2) => isSchema(args2[1]), (from, to) => makeTransformationClass(from, to, compose2(from.ast, to.ast)));
|
|
267898
|
-
var suspend8 = (f) =>
|
|
268328
|
+
var suspend8 = (f) => make50(new Suspend(() => f().ast));
|
|
267899
268329
|
var RefineSchemaId = /* @__PURE__ */ Symbol.for("effect/SchemaId/Refine");
|
|
267900
268330
|
function makeRefineClass(from, filter9, ast) {
|
|
267901
|
-
return class RefineClass extends
|
|
268331
|
+
return class RefineClass extends make50(ast) {
|
|
267902
268332
|
static annotations(annotations2) {
|
|
267903
268333
|
return makeRefineClass(this.from, this.filter, mergeSchemaAnnotations(this.ast, annotations2));
|
|
267904
268334
|
}
|
|
@@ -267956,7 +268386,7 @@ var filterEffect = /* @__PURE__ */ dual(2, (self2, f) => transformOrFail(self2,
|
|
|
267956
268386
|
encode: (a) => succeed15(a)
|
|
267957
268387
|
}));
|
|
267958
268388
|
function makeTransformationClass(from, to, ast) {
|
|
267959
|
-
return class TransformationClass extends
|
|
268389
|
+
return class TransformationClass extends make50(ast) {
|
|
267960
268390
|
static annotations(annotations2) {
|
|
267961
268391
|
return makeTransformationClass(this.from, this.to, mergeSchemaAnnotations(this.ast, annotations2));
|
|
267962
268392
|
}
|
|
@@ -267984,10 +268414,10 @@ var attachPropertySignature = /* @__PURE__ */ dual((args2) => isSchema(args2[0])
|
|
|
267984
268414
|
const ast = extend3(typeSchema(schema), Struct({
|
|
267985
268415
|
[key]: isSymbol(value3) ? UniqueSymbolFromSelf(value3) : Literal2(value3)
|
|
267986
268416
|
})).ast;
|
|
267987
|
-
return
|
|
268417
|
+
return make50(new Transformation(schema.ast, annotations2 ? mergeSchemaAnnotations(ast, annotations2) : ast, new TypeLiteralTransformation([new PropertySignatureTransformation(key, key, () => some2(value3), () => none2())])));
|
|
267988
268418
|
});
|
|
267989
268419
|
var annotations2 = /* @__PURE__ */ dual(2, (self2, annotations3) => self2.annotations(annotations3));
|
|
267990
|
-
var rename2 = /* @__PURE__ */ dual(2, (self2, mapping) =>
|
|
268420
|
+
var rename2 = /* @__PURE__ */ dual(2, (self2, mapping) => make50(rename(self2.ast, mapping)));
|
|
267991
268421
|
var TrimmedSchemaId = /* @__PURE__ */ Symbol.for("effect/SchemaId/Trimmed");
|
|
267992
268422
|
var trimmed = (annotations3) => (self2) => self2.pipe(filter9((a) => a === a.trim(), {
|
|
267993
268423
|
schemaId: TrimmedSchemaId,
|
|
@@ -268642,12 +269072,12 @@ class BigIntFromNumber extends (/* @__PURE__ */ transformOrFail(Number$.annotati
|
|
|
268642
269072
|
identifier: "BigIntFromNumber"
|
|
268643
269073
|
})) {
|
|
268644
269074
|
}
|
|
268645
|
-
var redactedArbitrary = (value3) => (fc) => value3(fc).map(
|
|
269075
|
+
var redactedArbitrary = (value3) => (fc) => value3(fc).map(make49);
|
|
268646
269076
|
var toComposite = (eff, onSuccess, ast, actual) => mapBoth6(eff, {
|
|
268647
269077
|
onFailure: (e) => new Composite2(ast, actual, e),
|
|
268648
269078
|
onSuccess
|
|
268649
269079
|
});
|
|
268650
|
-
var redactedParse = (decodeUnknown3) => (u, options, ast) => isRedacted2(u) ? toComposite(decodeUnknown3(value2(u), options),
|
|
269080
|
+
var redactedParse = (decodeUnknown3) => (u, options, ast) => isRedacted2(u) ? toComposite(decodeUnknown3(value2(u), options), make49, ast, u) : fail14(new Type2(ast, u));
|
|
268651
269081
|
var RedactedFromSelf = (value3) => declare([value3], {
|
|
268652
269082
|
decode: (value4) => redactedParse(decodeUnknown(value4)),
|
|
268653
269083
|
encode: (value4) => redactedParse(encodeUnknown(value4))
|
|
@@ -268663,7 +269093,7 @@ var RedactedFromSelf = (value3) => declare([value3], {
|
|
|
268663
269093
|
function Redacted(value3) {
|
|
268664
269094
|
return transform2(value3, RedactedFromSelf(typeSchema(asSchema(value3))), {
|
|
268665
269095
|
strict: true,
|
|
268666
|
-
decode: (i) =>
|
|
269096
|
+
decode: (i) => make49(i),
|
|
268667
269097
|
encode: (a) => value2(a)
|
|
268668
269098
|
});
|
|
268669
269099
|
}
|
|
@@ -268947,7 +269377,7 @@ var itemsCount = (n, annotations3) => (self2) => {
|
|
|
268947
269377
|
...annotations3
|
|
268948
269378
|
}));
|
|
268949
269379
|
};
|
|
268950
|
-
var getNumberIndexedAccess2 = (self2) =>
|
|
269380
|
+
var getNumberIndexedAccess2 = (self2) => make50(getNumberIndexedAccess(self2.ast));
|
|
268951
269381
|
function head5(self2) {
|
|
268952
269382
|
return transform2(self2, OptionFromSelf(getNumberIndexedAccess2(typeSchema(self2))), {
|
|
268953
269383
|
strict: false,
|
|
@@ -269097,7 +269527,7 @@ class DateTimeUtcFromSelf extends (/* @__PURE__ */ declare((u) => isDateTime2(u)
|
|
|
269097
269527
|
})) {
|
|
269098
269528
|
}
|
|
269099
269529
|
var decodeDateTimeUtc = (input, ast) => _try({
|
|
269100
|
-
try: () =>
|
|
269530
|
+
try: () => unsafeMake12(input),
|
|
269101
269531
|
catch: () => new Type2(ast, input, `Unable to decode ${formatUnknown(input)} into a DateTime.Utc`)
|
|
269102
269532
|
});
|
|
269103
269533
|
|
|
@@ -269566,7 +269996,7 @@ var bigDecimalPretty = () => (val) => `BigDecimal(${format4(normalize(val))})`;
|
|
|
269566
269996
|
var bigDecimalArbitrary = () => (fc) => fc.tuple(fc.bigInt(), fc.integer({
|
|
269567
269997
|
min: -18,
|
|
269568
269998
|
max: 18
|
|
269569
|
-
})).map(([value3, scale2]) =>
|
|
269999
|
+
})).map(([value3, scale2]) => make45(value3, scale2));
|
|
269570
270000
|
|
|
269571
270001
|
class BigDecimalFromSelf extends (/* @__PURE__ */ declare(isBigDecimal, {
|
|
269572
270002
|
typeConstructor: {
|
|
@@ -269967,7 +270397,7 @@ var makeClass = ({
|
|
|
269967
270397
|
return pipeArguments(this, arguments);
|
|
269968
270398
|
}
|
|
269969
270399
|
static annotations(annotations4) {
|
|
269970
|
-
return
|
|
270400
|
+
return make50(this.ast).annotations(annotations4);
|
|
269971
270401
|
}
|
|
269972
270402
|
static toString() {
|
|
269973
270403
|
return `(${String(encodedSide)} <-> ${identifier2})`;
|
|
@@ -271321,7 +271751,7 @@ var Proto4 = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(null),
|
|
|
271321
271751
|
return redact2(this, getOrDefault2(fiberRefs3, currentRedactedNames));
|
|
271322
271752
|
}
|
|
271323
271753
|
});
|
|
271324
|
-
var
|
|
271754
|
+
var make52 = (input) => Object.assign(Object.create(Proto4), input);
|
|
271325
271755
|
var empty34 = /* @__PURE__ */ Object.create(Proto4);
|
|
271326
271756
|
var fromInput2 = (input) => {
|
|
271327
271757
|
if (input === undefined) {
|
|
@@ -271345,21 +271775,21 @@ var fromInput2 = (input) => {
|
|
|
271345
271775
|
};
|
|
271346
271776
|
var unsafeFromRecord = (input) => Object.setPrototypeOf(input, Proto4);
|
|
271347
271777
|
var set10 = /* @__PURE__ */ dual(3, (self2, key, value3) => {
|
|
271348
|
-
const out =
|
|
271778
|
+
const out = make52(self2);
|
|
271349
271779
|
out[key.toLowerCase()] = value3;
|
|
271350
271780
|
return out;
|
|
271351
271781
|
});
|
|
271352
|
-
var setAll4 = /* @__PURE__ */ dual(2, (self2, headers) =>
|
|
271782
|
+
var setAll4 = /* @__PURE__ */ dual(2, (self2, headers) => make52({
|
|
271353
271783
|
...self2,
|
|
271354
271784
|
...fromInput2(headers)
|
|
271355
271785
|
}));
|
|
271356
271786
|
var merge10 = /* @__PURE__ */ dual(2, (self2, headers) => {
|
|
271357
|
-
const out =
|
|
271787
|
+
const out = make52(self2);
|
|
271358
271788
|
Object.assign(out, headers);
|
|
271359
271789
|
return out;
|
|
271360
271790
|
});
|
|
271361
271791
|
var remove9 = /* @__PURE__ */ dual(2, (self2, key) => {
|
|
271362
|
-
const out =
|
|
271792
|
+
const out = make52(self2);
|
|
271363
271793
|
const modify5 = (key2) => {
|
|
271364
271794
|
if (typeof key2 === "string") {
|
|
271365
271795
|
const k = key2.toLowerCase();
|
|
@@ -271391,12 +271821,12 @@ var redact2 = /* @__PURE__ */ dual(2, (self2, key) => {
|
|
|
271391
271821
|
if (typeof key2 === "string") {
|
|
271392
271822
|
const k = key2.toLowerCase();
|
|
271393
271823
|
if (k in self2) {
|
|
271394
|
-
out[k] =
|
|
271824
|
+
out[k] = make49(self2[k]);
|
|
271395
271825
|
}
|
|
271396
271826
|
} else {
|
|
271397
271827
|
for (const name in self2) {
|
|
271398
271828
|
if (key2.test(name)) {
|
|
271399
|
-
out[name] =
|
|
271829
|
+
out[name] = make49(self2[name]);
|
|
271400
271830
|
}
|
|
271401
271831
|
}
|
|
271402
271832
|
}
|
|
@@ -271410,7 +271840,7 @@ var redact2 = /* @__PURE__ */ dual(2, (self2, key) => {
|
|
|
271410
271840
|
}
|
|
271411
271841
|
return out;
|
|
271412
271842
|
});
|
|
271413
|
-
var currentRedactedNames = /* @__PURE__ */ globalValue("@effect/platform/Headers/currentRedactedNames", () =>
|
|
271843
|
+
var currentRedactedNames = /* @__PURE__ */ globalValue("@effect/platform/Headers/currentRedactedNames", () => unsafeMake10(["authorization", "cookie", "set-cookie", "x-api-key"]));
|
|
271414
271844
|
|
|
271415
271845
|
// node_modules/@effect/platform/dist/esm/internal/httpClientError.js
|
|
271416
271846
|
var TypeId21 = /* @__PURE__ */ Symbol.for("@effect/platform/HttpClientError");
|
|
@@ -271442,7 +271872,7 @@ class ResponseError extends (/* @__PURE__ */ TypeIdError(TypeId22, "ResponseErro
|
|
|
271442
271872
|
var exports_FileSystem = {};
|
|
271443
271873
|
__export(exports_FileSystem, {
|
|
271444
271874
|
makeNoop: () => makeNoop2,
|
|
271445
|
-
make: () =>
|
|
271875
|
+
make: () => make54,
|
|
271446
271876
|
layerNoop: () => layerNoop2,
|
|
271447
271877
|
isFile: () => isFile,
|
|
271448
271878
|
WatchEventUpdate: () => WatchEventUpdate,
|
|
@@ -271470,7 +271900,7 @@ var TiB = (n) => Size(n * 1024 * 1024 * 1024 * 1024);
|
|
|
271470
271900
|
var bigint1024 = /* @__PURE__ */ BigInt(1024);
|
|
271471
271901
|
var bigintPiB = bigint1024 * bigint1024 * bigint1024 * bigint1024 * bigint1024;
|
|
271472
271902
|
var PiB = (n) => Size(BigInt(n) * bigintPiB);
|
|
271473
|
-
var
|
|
271903
|
+
var make53 = (impl) => {
|
|
271474
271904
|
return tag3.of({
|
|
271475
271905
|
...impl,
|
|
271476
271906
|
exists: (path) => pipe(impl.access(path), as3(true), catchTag2("SystemError", (e) => e.reason === "NotFound" ? succeed8(false) : fail8(e))),
|
|
@@ -271631,7 +272061,7 @@ var GiB2 = GiB;
|
|
|
271631
272061
|
var TiB2 = TiB;
|
|
271632
272062
|
var PiB2 = PiB;
|
|
271633
272063
|
var FileSystem = tag3;
|
|
271634
|
-
var
|
|
272064
|
+
var make54 = make53;
|
|
271635
272065
|
var makeNoop2 = makeNoop;
|
|
271636
272066
|
var layerNoop2 = layerNoop;
|
|
271637
272067
|
var FileTypeId = /* @__PURE__ */ Symbol.for("@effect/platform/FileSystem/File");
|
|
@@ -271785,7 +272215,7 @@ class MaxBodySize extends (/* @__PURE__ */ Reference2()("@effect/platform/HttpIn
|
|
|
271785
272215
|
defaultValue: none2
|
|
271786
272216
|
})) {
|
|
271787
272217
|
}
|
|
271788
|
-
var withMaxBodySize = /* @__PURE__ */ dual(2, (effect3,
|
|
272218
|
+
var withMaxBodySize = /* @__PURE__ */ dual(2, (effect3, size13) => provideService2(effect3, MaxBodySize, map2(size13, Size2)));
|
|
271789
272219
|
var inspect = (self2, that) => {
|
|
271790
272220
|
const contentType = self2.headers["content-type"] ?? "";
|
|
271791
272221
|
let body;
|
|
@@ -272064,18 +272494,18 @@ function makeInternal(method, url2, urlParams2, hash2, headers, body) {
|
|
|
272064
272494
|
}
|
|
272065
272495
|
var isClientRequest = (u) => typeof u === "object" && u !== null && (TypeId25 in u);
|
|
272066
272496
|
var empty37 = /* @__PURE__ */ makeInternal("GET", "", empty35, /* @__PURE__ */ none2(), empty34, empty36);
|
|
272067
|
-
var
|
|
272497
|
+
var make55 = (method) => (url2, options) => modify5(empty37, {
|
|
272068
272498
|
method,
|
|
272069
272499
|
url: url2,
|
|
272070
272500
|
...options ?? undefined
|
|
272071
272501
|
});
|
|
272072
|
-
var get15 = /* @__PURE__ */
|
|
272073
|
-
var post = /* @__PURE__ */
|
|
272074
|
-
var put = /* @__PURE__ */
|
|
272075
|
-
var patch9 = /* @__PURE__ */
|
|
272076
|
-
var del = /* @__PURE__ */
|
|
272077
|
-
var head6 = /* @__PURE__ */
|
|
272078
|
-
var options = /* @__PURE__ */
|
|
272502
|
+
var get15 = /* @__PURE__ */ make55("GET");
|
|
272503
|
+
var post = /* @__PURE__ */ make55("POST");
|
|
272504
|
+
var put = /* @__PURE__ */ make55("PUT");
|
|
272505
|
+
var patch9 = /* @__PURE__ */ make55("PATCH");
|
|
272506
|
+
var del = /* @__PURE__ */ make55("DELETE");
|
|
272507
|
+
var head6 = /* @__PURE__ */ make55("HEAD");
|
|
272508
|
+
var options = /* @__PURE__ */ make55("OPTIONS");
|
|
272079
272509
|
var modify5 = /* @__PURE__ */ dual(2, (self2, options2) => {
|
|
272080
272510
|
let result = self2;
|
|
272081
272511
|
if (options2.method) {
|
|
@@ -272326,9 +272756,9 @@ var ATTR_URL_SCHEME = "url.scheme";
|
|
|
272326
272756
|
var ATTR_URL_QUERY = "url.query";
|
|
272327
272757
|
var TypeId27 = /* @__PURE__ */ Symbol.for("@effect/platform/HttpClient");
|
|
272328
272758
|
var tag4 = /* @__PURE__ */ GenericTag("@effect/platform/HttpClient");
|
|
272329
|
-
var currentTracerDisabledWhen = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("@effect/platform/HttpClient/tracerDisabledWhen"), () =>
|
|
272759
|
+
var currentTracerDisabledWhen = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("@effect/platform/HttpClient/tracerDisabledWhen"), () => unsafeMake10(constFalse));
|
|
272330
272760
|
var withTracerDisabledWhen = /* @__PURE__ */ dual(2, (self2, pred) => transformResponse(self2, locally(currentTracerDisabledWhen, pred)));
|
|
272331
|
-
var currentTracerPropagation = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("@effect/platform/HttpClient/currentTracerPropagation"), () =>
|
|
272761
|
+
var currentTracerPropagation = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("@effect/platform/HttpClient/currentTracerPropagation"), () => unsafeMake10(true));
|
|
272332
272762
|
var withTracerPropagation = /* @__PURE__ */ dual(2, (self2, enabled2) => transformResponse(self2, locally(currentTracerPropagation, enabled2)));
|
|
272333
272763
|
var SpanNameGenerator = /* @__PURE__ */ Reference2()("@effect/platform/HttpClient/SpanNameGenerator", {
|
|
272334
272764
|
defaultValue: () => (request) => `http.client ${request.method}`
|
|
@@ -272368,7 +272798,7 @@ var ClientProto = {
|
|
|
272368
272798
|
}
|
|
272369
272799
|
};
|
|
272370
272800
|
var isClient = (u) => hasProperty(u, TypeId27);
|
|
272371
|
-
var
|
|
272801
|
+
var makeWith2 = (postprocess, preprocess) => {
|
|
272372
272802
|
const self2 = Object.create(ClientProto);
|
|
272373
272803
|
self2.preprocess = preprocess;
|
|
272374
272804
|
self2.postprocess = postprocess;
|
|
@@ -272406,7 +272836,7 @@ var responseRegistry = /* @__PURE__ */ globalValue("@effect/platform/HttpClient/
|
|
|
272406
272836
|
};
|
|
272407
272837
|
});
|
|
272408
272838
|
var scopedRequests = /* @__PURE__ */ globalValue("@effect/platform/HttpClient/scopedRequests", () => new WeakMap);
|
|
272409
|
-
var
|
|
272839
|
+
var make56 = (f) => makeWith2((effect3) => flatMap10(effect3, (request) => withFiberRuntime2((fiber) => {
|
|
272410
272840
|
const scopedController = scopedRequests.get(request);
|
|
272411
272841
|
const controller = scopedController ?? new AbortController;
|
|
272412
272842
|
const urlResult = makeUrl(request.url, request.urlParams, request.hash);
|
|
@@ -272560,13 +272990,13 @@ var {
|
|
|
272560
272990
|
} = /* @__PURE__ */ serviceFunctions2(tag4);
|
|
272561
272991
|
var transform3 = /* @__PURE__ */ dual(2, (self2, f) => {
|
|
272562
272992
|
const client = self2;
|
|
272563
|
-
return
|
|
272993
|
+
return makeWith2(flatMap10((request) => f(client.postprocess(succeed8(request)), request)), client.preprocess);
|
|
272564
272994
|
});
|
|
272565
272995
|
var filterStatus2 = /* @__PURE__ */ dual(2, (self2, f) => transformResponse(self2, flatMap10(filterStatus(f))));
|
|
272566
272996
|
var filterStatusOk2 = (self2) => transformResponse(self2, flatMap10(filterStatusOk));
|
|
272567
272997
|
var transformResponse = /* @__PURE__ */ dual(2, (self2, f) => {
|
|
272568
272998
|
const client = self2;
|
|
272569
|
-
return
|
|
272999
|
+
return makeWith2((request) => f(client.postprocess(request)), client.preprocess);
|
|
272570
273000
|
});
|
|
272571
273001
|
var catchTag4 = /* @__PURE__ */ dual(3, (self2, tag5, f) => transformResponse(self2, catchTag2(tag5, f)));
|
|
272572
273002
|
var catchTags4 = /* @__PURE__ */ dual(2, (self2, cases) => transformResponse(self2, catchTags2(cases)));
|
|
@@ -272575,19 +273005,19 @@ var filterOrElse3 = /* @__PURE__ */ dual(3, (self2, f, orElse11) => transformRes
|
|
|
272575
273005
|
var filterOrFail3 = /* @__PURE__ */ dual(3, (self2, f, orFailWith) => transformResponse(self2, filterOrFail2(f, orFailWith)));
|
|
272576
273006
|
var mapRequest = /* @__PURE__ */ dual(2, (self2, f) => {
|
|
272577
273007
|
const client = self2;
|
|
272578
|
-
return
|
|
273008
|
+
return makeWith2(client.postprocess, (request) => map16(client.preprocess(request), f));
|
|
272579
273009
|
});
|
|
272580
273010
|
var mapRequestEffect = /* @__PURE__ */ dual(2, (self2, f) => {
|
|
272581
273011
|
const client = self2;
|
|
272582
|
-
return
|
|
273012
|
+
return makeWith2(client.postprocess, (request) => flatMap10(client.preprocess(request), f));
|
|
272583
273013
|
});
|
|
272584
273014
|
var mapRequestInput = /* @__PURE__ */ dual(2, (self2, f) => {
|
|
272585
273015
|
const client = self2;
|
|
272586
|
-
return
|
|
273016
|
+
return makeWith2(client.postprocess, (request) => client.preprocess(f(request)));
|
|
272587
273017
|
});
|
|
272588
273018
|
var mapRequestInputEffect = /* @__PURE__ */ dual(2, (self2, f) => {
|
|
272589
273019
|
const client = self2;
|
|
272590
|
-
return
|
|
273020
|
+
return makeWith2(client.postprocess, (request) => flatMap10(f(request), client.preprocess));
|
|
272591
273021
|
});
|
|
272592
273022
|
var retry4 = /* @__PURE__ */ dual(2, (self2, policy) => transformResponse(self2, retry(policy)));
|
|
272593
273023
|
var retryTransient = /* @__PURE__ */ dual(2, (self2, options3) => {
|
|
@@ -272613,15 +273043,15 @@ var tap5 = /* @__PURE__ */ dual(2, (self2, f) => transformResponse(self2, tap2(f
|
|
|
272613
273043
|
var tapError5 = /* @__PURE__ */ dual(2, (self2, f) => transformResponse(self2, tapError2(f)));
|
|
272614
273044
|
var tapRequest = /* @__PURE__ */ dual(2, (self2, f) => {
|
|
272615
273045
|
const client = self2;
|
|
272616
|
-
return
|
|
273046
|
+
return makeWith2(client.postprocess, (request) => tap2(client.preprocess(request), f));
|
|
272617
273047
|
});
|
|
272618
273048
|
var withCookiesRef = /* @__PURE__ */ dual(2, (self2, ref) => {
|
|
272619
273049
|
const client = self2;
|
|
272620
|
-
return
|
|
273050
|
+
return makeWith2((request) => tap2(client.postprocess(request), (response) => update3(ref, (cookies) => merge9(cookies, response.cookies))), (request) => flatMap10(client.preprocess(request), (request2) => map16(get11(ref), (cookies) => isEmpty11(cookies) ? request2 : setHeader(request2, "cookie", toCookieHeader(cookies)))));
|
|
272621
273051
|
});
|
|
272622
273052
|
var followRedirects = /* @__PURE__ */ dual((args2) => isClient(args2[0]), (self2, maxRedirects) => {
|
|
272623
273053
|
const client = self2;
|
|
272624
|
-
return
|
|
273054
|
+
return makeWith2((request) => {
|
|
272625
273055
|
const loop2 = (request2, redirects) => flatMap10(client.postprocess(succeed8(request2)), (response) => response.status >= 300 && response.status < 400 && response.headers.location && redirects < (maxRedirects ?? 10) ? loop2(setUrl(request2, new URL(response.headers.location, response.request.url)), redirects + 1) : succeed8(response));
|
|
272626
273056
|
return flatMap10(request, (request2) => loop2(request2, 0));
|
|
272627
273057
|
}, client.preprocess);
|
|
@@ -272631,7 +273061,7 @@ var layerMergedContext = (effect3) => effect(tag4, flatMap10(context3(), (contex
|
|
|
272631
273061
|
// node_modules/@effect/platform/dist/esm/internal/fetchHttpClient.js
|
|
272632
273062
|
var fetchTagKey = "@effect/platform/FetchHttpClient/Fetch";
|
|
272633
273063
|
var requestInitTagKey = "@effect/platform/FetchHttpClient/FetchOptions";
|
|
272634
|
-
var fetch2 = /* @__PURE__ */
|
|
273064
|
+
var fetch2 = /* @__PURE__ */ make56((request, url2, signal, fiber) => {
|
|
272635
273065
|
const context7 = fiber.getFiberRef(currentContext2);
|
|
272636
273066
|
const fetch3 = context7.unsafeMap.get(fetchTagKey) ?? globalThis.fetch;
|
|
272637
273067
|
const options3 = context7.unsafeMap.get(requestInitTagKey) ?? {};
|
|
@@ -272675,7 +273105,7 @@ var layer3 = layer2;
|
|
|
272675
273105
|
var exports_HttpApi = {};
|
|
272676
273106
|
__export(exports_HttpApi, {
|
|
272677
273107
|
reflect: () => reflect,
|
|
272678
|
-
make: () =>
|
|
273108
|
+
make: () => make57,
|
|
272679
273109
|
isHttpApi: () => isHttpApi,
|
|
272680
273110
|
TypeId: () => TypeId28,
|
|
272681
273111
|
Api: () => Api,
|
|
@@ -272811,7 +273241,7 @@ var extractUnionTypes = (ast) => {
|
|
|
272811
273241
|
return out;
|
|
272812
273242
|
};
|
|
272813
273243
|
var UnionUnifyAST = (self2, that) => Union.make(Array.from(new Set([...extractUnionTypes(self2), ...extractUnionTypes(that)])));
|
|
272814
|
-
var UnionUnify = (self2, that) =>
|
|
273244
|
+
var UnionUnify = (self2, that) => make50(UnionUnifyAST(self2.ast, that.ast));
|
|
272815
273245
|
var param = /* @__PURE__ */ dual(2, (name, schema) => {
|
|
272816
273246
|
const annotations4 = {
|
|
272817
273247
|
[AnnotationParam]: {
|
|
@@ -272897,7 +273327,7 @@ var deunionize = (schemas, schema) => {
|
|
|
272897
273327
|
schemas.add(astCache2.get(astType));
|
|
272898
273328
|
continue;
|
|
272899
273329
|
}
|
|
272900
|
-
const memberSchema =
|
|
273330
|
+
const memberSchema = make50(annotations(astType, {
|
|
272901
273331
|
...ast.annotations,
|
|
272902
273332
|
...astType.annotations
|
|
272903
273333
|
}));
|
|
@@ -272923,7 +273353,7 @@ var EmptyError = () => (options3) => {
|
|
|
272923
273353
|
[TypeId18]: Void[TypeId18],
|
|
272924
273354
|
pipe: Void.pipe,
|
|
272925
273355
|
annotations(annotations4) {
|
|
272926
|
-
return
|
|
273356
|
+
return make50(this.ast).annotations(annotations4);
|
|
272927
273357
|
}
|
|
272928
273358
|
});
|
|
272929
273359
|
let transform4;
|
|
@@ -273066,7 +273496,7 @@ var makeProto = (options3) => {
|
|
|
273066
273496
|
HttpApi.middlewares = options3.middlewares;
|
|
273067
273497
|
return HttpApi;
|
|
273068
273498
|
};
|
|
273069
|
-
var
|
|
273499
|
+
var make57 = (identifier2) => makeProto({
|
|
273070
273500
|
identifier: identifier2,
|
|
273071
273501
|
groups: new Map,
|
|
273072
273502
|
errorSchema: HttpApiDecodeError,
|
|
@@ -273243,7 +273673,7 @@ __export(exports_HttpServerResponse, {
|
|
|
273243
273673
|
});
|
|
273244
273674
|
|
|
273245
273675
|
// node_modules/@effect/platform/dist/esm/Template.js
|
|
273246
|
-
function
|
|
273676
|
+
function make58(strings, ...args2) {
|
|
273247
273677
|
const argsLength = args2.length;
|
|
273248
273678
|
const values4 = new Array(argsLength);
|
|
273249
273679
|
const effects = [];
|
|
@@ -273412,7 +273842,7 @@ var html = (strings, ...args2) => {
|
|
|
273412
273842
|
contentType: "text/html"
|
|
273413
273843
|
});
|
|
273414
273844
|
}
|
|
273415
|
-
return map16(
|
|
273845
|
+
return map16(make58(strings, ...args2), (_) => text3(_, {
|
|
273416
273846
|
contentType: "text/html"
|
|
273417
273847
|
}));
|
|
273418
273848
|
};
|
|
@@ -274010,8 +274440,8 @@ class MailboxImpl extends Class2 {
|
|
|
274010
274440
|
});
|
|
274011
274441
|
});
|
|
274012
274442
|
unsafeSize() {
|
|
274013
|
-
const
|
|
274014
|
-
return this.state._tag === "Done" ? none2() : some2(
|
|
274443
|
+
const size13 = this.messages.length + this.messagesChunk.length;
|
|
274444
|
+
return this.state._tag === "Done" ? none2() : some2(size13);
|
|
274015
274445
|
}
|
|
274016
274446
|
size = /* @__PURE__ */ sync(() => this.unsafeSize());
|
|
274017
274447
|
commit() {
|
|
@@ -274173,18 +274603,18 @@ class MailboxImpl extends Class2 {
|
|
|
274173
274603
|
openState.awaiters.clear();
|
|
274174
274604
|
}
|
|
274175
274605
|
}
|
|
274176
|
-
var
|
|
274606
|
+
var make59 = (capacity3) => withFiberRuntime((fiber) => succeed(new MailboxImpl(fiber.currentScheduler, typeof capacity3 === "number" ? capacity3 : capacity3?.capacity ?? Number.POSITIVE_INFINITY, typeof capacity3 === "number" ? "suspend" : capacity3?.strategy ?? "suspend")));
|
|
274177
274607
|
var into = /* @__PURE__ */ dual(2, (effect3, self2) => uninterruptibleMask((restore) => matchCauseEffect(restore(effect3), {
|
|
274178
274608
|
onFailure: (cause2) => self2.failCause(cause2),
|
|
274179
274609
|
onSuccess: (_) => self2.end
|
|
274180
274610
|
})));
|
|
274181
274611
|
var toChannel3 = (self2) => {
|
|
274182
|
-
const loop2 = flatMap11(self2.takeAll, ([messages,
|
|
274612
|
+
const loop2 = flatMap11(self2.takeAll, ([messages, done9]) => done9 ? messages.length === 0 ? void_5 : write(messages) : zipRight4(write(messages), loop2));
|
|
274183
274613
|
return loop2;
|
|
274184
274614
|
};
|
|
274185
274615
|
|
|
274186
274616
|
// node_modules/effect/dist/esm/Mailbox.js
|
|
274187
|
-
var
|
|
274617
|
+
var make60 = make59;
|
|
274188
274618
|
var into2 = into;
|
|
274189
274619
|
var toChannel4 = toChannel3;
|
|
274190
274620
|
|
|
@@ -274251,7 +274681,7 @@ var constContinue = {
|
|
|
274251
274681
|
};
|
|
274252
274682
|
var constNameChars = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 1, 1, 1, 1, 0, 0, 1, 1, 0, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 0, 1];
|
|
274253
274683
|
var constValueChars = [0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1];
|
|
274254
|
-
function
|
|
274684
|
+
function make61() {
|
|
274255
274685
|
const decoder2 = new TextDecoder;
|
|
274256
274686
|
const state = {
|
|
274257
274687
|
state: State.key,
|
|
@@ -274454,7 +274884,7 @@ function makeState(needle_) {
|
|
|
274454
274884
|
matchIndex: 0
|
|
274455
274885
|
};
|
|
274456
274886
|
}
|
|
274457
|
-
function
|
|
274887
|
+
function make62(needle, callback, seed) {
|
|
274458
274888
|
const state = makeState(needle);
|
|
274459
274889
|
if (seed !== undefined) {
|
|
274460
274890
|
state.previousChunk = seed;
|
|
@@ -274591,7 +275021,7 @@ function parseBoundary(headers) {
|
|
|
274591
275021
|
return contentType.parameters.boundary;
|
|
274592
275022
|
}
|
|
274593
275023
|
function noopOnChunk(_chunk) {}
|
|
274594
|
-
function
|
|
275024
|
+
function make63({
|
|
274595
275025
|
headers,
|
|
274596
275026
|
onFile: onPart,
|
|
274597
275027
|
onField,
|
|
@@ -274631,8 +275061,8 @@ function make62({
|
|
|
274631
275061
|
state.isFile = true;
|
|
274632
275062
|
state.onChunk = noopOnChunk;
|
|
274633
275063
|
}
|
|
274634
|
-
const headerParser =
|
|
274635
|
-
const split3 =
|
|
275064
|
+
const headerParser = make61();
|
|
275065
|
+
const split3 = make62(`\r
|
|
274636
275066
|
--${boundary}`, function(index, chunk4) {
|
|
274637
275067
|
if (index === 0) {
|
|
274638
275068
|
skipBody();
|
|
@@ -274772,7 +275202,7 @@ function decodeField(info, value3) {
|
|
|
274772
275202
|
}
|
|
274773
275203
|
|
|
274774
275204
|
// node_modules/multipasta/dist/esm/index.js
|
|
274775
|
-
var
|
|
275205
|
+
var make64 = make63;
|
|
274776
275206
|
var defaultIsFile2 = defaultIsFile;
|
|
274777
275207
|
var decodeField2 = decodeField;
|
|
274778
275208
|
|
|
@@ -275296,7 +275726,7 @@ var makeConfig = (headers) => withFiberRuntime2((fiber) => {
|
|
|
275296
275726
|
isFile: mimeTypes.length === 0 ? undefined : (info) => !some4(mimeTypes, (_) => info.contentType.includes(_)) && defaultIsFile2(info)
|
|
275297
275727
|
});
|
|
275298
275728
|
});
|
|
275299
|
-
var makeChannel = (headers, bufferSize = 16) => acquireUseRelease4(all4([makeConfig(headers),
|
|
275729
|
+
var makeChannel = (headers, bufferSize = 16) => acquireUseRelease4(all4([makeConfig(headers), make60(bufferSize)]), ([config2, mailbox]) => {
|
|
275300
275730
|
let partsBuffer = [];
|
|
275301
275731
|
let exit3 = none2();
|
|
275302
275732
|
const input = {
|
|
@@ -275312,7 +275742,7 @@ var makeChannel = (headers, bufferSize = 16) => acquireUseRelease4(all4([makeCon
|
|
|
275312
275742
|
return mailbox.end;
|
|
275313
275743
|
}
|
|
275314
275744
|
};
|
|
275315
|
-
const parser =
|
|
275745
|
+
const parser = make64({
|
|
275316
275746
|
...config2,
|
|
275317
275747
|
onField(info, value3) {
|
|
275318
275748
|
partsBuffer.push(new FieldImpl(info.name, info.contentType, decodeField2(info, value3)));
|
|
@@ -275344,9 +275774,9 @@ var makeChannel = (headers, bufferSize = 16) => acquireUseRelease4(all4([makeCon
|
|
|
275344
275774
|
exit3 = some2(void_3);
|
|
275345
275775
|
}
|
|
275346
275776
|
});
|
|
275347
|
-
const pump = flatMap14(mailbox.takeAll, ([chunks2,
|
|
275777
|
+
const pump = flatMap14(mailbox.takeAll, ([chunks2, done9]) => sync7(() => {
|
|
275348
275778
|
forEach(chunks2, forEach(parser.write));
|
|
275349
|
-
if (
|
|
275779
|
+
if (done9) {
|
|
275350
275780
|
parser.end();
|
|
275351
275781
|
}
|
|
275352
275782
|
}));
|
|
@@ -275585,7 +276015,7 @@ class FieldMimeTypes extends (/* @__PURE__ */ Reference2()("@effect/platform/Mul
|
|
|
275585
276015
|
// node_modules/@effect/platform/dist/esm/Socket.js
|
|
275586
276016
|
var toChannelMap = (self2, f) => gen2(function* () {
|
|
275587
276017
|
const scope4 = yield* scope2;
|
|
275588
|
-
const mailbox = yield*
|
|
276018
|
+
const mailbox = yield* make60();
|
|
275589
276019
|
const writeScope = yield* fork(scope4, sequential4);
|
|
275590
276020
|
const write3 = yield* extend2(self2.writer, writeScope);
|
|
275591
276021
|
function* emit(chunk4) {
|
|
@@ -275883,19 +276313,19 @@ var toWeb3 = (self2, options3) => flatMap10(runtime4(), (runtime5) => toWebEithe
|
|
|
275883
276313
|
var toURL2 = toURL;
|
|
275884
276314
|
|
|
275885
276315
|
// node_modules/@effect/platform/dist/esm/internal/httpApp.js
|
|
275886
|
-
var currentPreResponseHandlers = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("@effect/platform/HttpApp/preResponseHandlers"), () =>
|
|
276316
|
+
var currentPreResponseHandlers = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("@effect/platform/HttpApp/preResponseHandlers"), () => unsafeMake10(none2()));
|
|
275887
276317
|
var appendPreResponseHandler = (handler) => update5(currentPreResponseHandlers, match2({
|
|
275888
276318
|
onNone: () => some2(handler),
|
|
275889
276319
|
onSome: (prev) => some2((request, response) => flatMap10(prev(request, response), (response2) => handler(request, response2)))
|
|
275890
276320
|
}));
|
|
275891
276321
|
|
|
275892
276322
|
// node_modules/@effect/platform/dist/esm/internal/httpMiddleware.js
|
|
275893
|
-
var
|
|
275894
|
-
var currentTracerDisabledWhen2 = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("@effect/platform/HttpMiddleware/tracerDisabledWhen"), () =>
|
|
276323
|
+
var make65 = (middleware) => middleware;
|
|
276324
|
+
var currentTracerDisabledWhen2 = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("@effect/platform/HttpMiddleware/tracerDisabledWhen"), () => unsafeMake10(constFalse));
|
|
275895
276325
|
var SpanNameGenerator2 = /* @__PURE__ */ Reference2()("@effect/platform/HttpMiddleware/SpanNameGenerator", {
|
|
275896
276326
|
defaultValue: () => (request) => `http.server ${request.method}`
|
|
275897
276327
|
});
|
|
275898
|
-
var tracer2 = /* @__PURE__ */
|
|
276328
|
+
var tracer2 = /* @__PURE__ */ make65((httpApp) => withFiberRuntime2((fiber) => {
|
|
275899
276329
|
const request = unsafeGet4(fiber.currentContext, HttpServerRequest);
|
|
275900
276330
|
const disabled = fiber.getFiberRef(currentTracerDisabledWhen2)(request);
|
|
275901
276331
|
if (disabled) {
|
|
@@ -276096,7 +276526,7 @@ var scoped6 = (effect3) => flatMap10(make37(), (scope4) => onExit3(extend2(effec
|
|
|
276096
276526
|
var currentPreResponseHandlers2 = currentPreResponseHandlers;
|
|
276097
276527
|
var appendPreResponseHandler2 = appendPreResponseHandler;
|
|
276098
276528
|
var toWebHandlerRuntime = (runtime5) => {
|
|
276099
|
-
const httpRuntime =
|
|
276529
|
+
const httpRuntime = make43(runtime5);
|
|
276100
276530
|
const run6 = runFork3(httpRuntime);
|
|
276101
276531
|
return (self2, middleware) => {
|
|
276102
276532
|
const resolveSymbol = Symbol.for("@effect/platform/HttpApp/resolve");
|
|
@@ -276244,7 +276674,7 @@ function parse3(input) {
|
|
|
276244
276674
|
// node_modules/find-my-way-ts/dist/esm/internal/router.js
|
|
276245
276675
|
var FULL_PATH_REGEXP = /^https?:\/\/.*?\//;
|
|
276246
276676
|
var OPTIONAL_PARAM_REGEXP = /(\/:[^/()]*?)\?(\/?)/;
|
|
276247
|
-
var
|
|
276677
|
+
var make66 = (options3 = {}) => new RouterImpl(options3);
|
|
276248
276678
|
|
|
276249
276679
|
class RouterImpl {
|
|
276250
276680
|
constructor(options3 = {}) {
|
|
@@ -276866,7 +277296,7 @@ function safeDecodeURIComponent(uriComponent) {
|
|
|
276866
277296
|
var httpMethods = ["ACL", "BIND", "CHECKOUT", "CONNECT", "COPY", "DELETE", "GET", "HEAD", "LINK", "LOCK", "M-SEARCH", "MERGE", "MKACTIVITY", "MKCALENDAR", "MKCOL", "MOVE", "NOTIFY", "OPTIONS", "PATCH", "POST", "PROPFIND", "PROPPATCH", "PURGE", "PUT", "REBIND", "REPORT", "SEARCH", "SOURCE", "SUBSCRIBE", "TRACE", "UNBIND", "UNLINK", "UNLOCK", "UNSUBSCRIBE"];
|
|
276867
277297
|
|
|
276868
277298
|
// node_modules/find-my-way-ts/dist/esm/index.js
|
|
276869
|
-
var
|
|
277299
|
+
var make67 = make66;
|
|
276870
277300
|
|
|
276871
277301
|
// node_modules/@effect/platform/dist/esm/HttpServer.js
|
|
276872
277302
|
var exports_HttpServer = {};
|
|
@@ -276874,7 +277304,7 @@ __export(exports_HttpServer, {
|
|
|
276874
277304
|
withLogAddress: () => withLogAddress2,
|
|
276875
277305
|
serveEffect: () => serveEffect2,
|
|
276876
277306
|
serve: () => serve2,
|
|
276877
|
-
make: () =>
|
|
277307
|
+
make: () => make72,
|
|
276878
277308
|
logAddress: () => logAddress2,
|
|
276879
277309
|
layerTestClient: () => layerTestClient2,
|
|
276880
277310
|
layerContext: () => layerContext2,
|
|
@@ -276908,8 +277338,8 @@ __export(exports_HttpClient, {
|
|
|
276908
277338
|
mapRequestInput: () => mapRequestInput2,
|
|
276909
277339
|
mapRequestEffect: () => mapRequestEffect2,
|
|
276910
277340
|
mapRequest: () => mapRequest2,
|
|
276911
|
-
makeWith: () =>
|
|
276912
|
-
make: () =>
|
|
277341
|
+
makeWith: () => makeWith3,
|
|
277342
|
+
make: () => make68,
|
|
276913
277343
|
layerMergedContext: () => layerMergedContext2,
|
|
276914
277344
|
head: () => head8,
|
|
276915
277345
|
get: () => get17,
|
|
@@ -276946,8 +277376,8 @@ var filterOrElse4 = filterOrElse3;
|
|
|
276946
277376
|
var filterOrFail4 = filterOrFail3;
|
|
276947
277377
|
var filterStatus3 = filterStatus2;
|
|
276948
277378
|
var filterStatusOk3 = filterStatusOk2;
|
|
276949
|
-
var
|
|
276950
|
-
var
|
|
277379
|
+
var makeWith3 = makeWith2;
|
|
277380
|
+
var make68 = make56;
|
|
276951
277381
|
var transform4 = transform3;
|
|
276952
277382
|
var transformResponse2 = transformResponse;
|
|
276953
277383
|
var mapRequest2 = mapRequest;
|
|
@@ -276991,7 +277421,7 @@ __export(exports_HttpClientRequest, {
|
|
|
276991
277421
|
patch: () => patch12,
|
|
276992
277422
|
options: () => options4,
|
|
276993
277423
|
modify: () => modify6,
|
|
276994
|
-
make: () =>
|
|
277424
|
+
make: () => make69,
|
|
276995
277425
|
head: () => head9,
|
|
276996
277426
|
get: () => get18,
|
|
276997
277427
|
del: () => del4,
|
|
@@ -277015,7 +277445,7 @@ __export(exports_HttpClientRequest, {
|
|
|
277015
277445
|
TypeId: () => TypeId41
|
|
277016
277446
|
});
|
|
277017
277447
|
var TypeId41 = /* @__PURE__ */ Symbol.for("@effect/platform/HttpClientRequest");
|
|
277018
|
-
var
|
|
277448
|
+
var make69 = make55;
|
|
277019
277449
|
var get18 = get15;
|
|
277020
277450
|
var post4 = post;
|
|
277021
277451
|
var patch12 = patch9;
|
|
@@ -277058,7 +277488,7 @@ var bodyFileWeb2 = bodyFileWeb;
|
|
|
277058
277488
|
// node_modules/@effect/platform/dist/esm/internal/httpPlatform.js
|
|
277059
277489
|
var TypeId42 = /* @__PURE__ */ Symbol.for("@effect/platform/HttpPlatform");
|
|
277060
277490
|
var tag5 = /* @__PURE__ */ GenericTag("@effect/platform/HttpPlatform");
|
|
277061
|
-
var
|
|
277491
|
+
var make70 = (impl) => gen2(function* () {
|
|
277062
277492
|
const fs = yield* FileSystem;
|
|
277063
277493
|
const etagGen = yield* Generator;
|
|
277064
277494
|
return tag5.of({
|
|
@@ -277091,7 +277521,7 @@ var make69 = (impl) => gen2(function* () {
|
|
|
277091
277521
|
}
|
|
277092
277522
|
});
|
|
277093
277523
|
});
|
|
277094
|
-
var layer5 = /* @__PURE__ */ effect(tag5, flatMap10(FileSystem, (fs) =>
|
|
277524
|
+
var layer5 = /* @__PURE__ */ effect(tag5, flatMap10(FileSystem, (fs) => make70({
|
|
277095
277525
|
fileResponse(path, status2, statusText, headers, start3, end5, contentLength) {
|
|
277096
277526
|
return stream6(fs.stream(path, {
|
|
277097
277527
|
offset: start3,
|
|
@@ -277118,7 +277548,7 @@ var serverTag = /* @__PURE__ */ GenericTag("@effect/platform/HttpServer");
|
|
|
277118
277548
|
var serverProto = {
|
|
277119
277549
|
[TypeId43]: TypeId43
|
|
277120
277550
|
};
|
|
277121
|
-
var
|
|
277551
|
+
var make71 = (options5) => Object.assign(Object.create(serverProto), options5);
|
|
277122
277552
|
var serve = /* @__PURE__ */ dual((args2) => isEffect2(args2[0]), (httpApp, middleware) => scopedDiscard2(flatMap10(serverTag, (server2) => server2.serve(httpApp, middleware))));
|
|
277123
277553
|
var serveEffect = /* @__PURE__ */ dual((args2) => isEffect2(args2[0]), (httpApp, middleware) => flatMap10(serverTag, (server2) => server2.serve(httpApp, middleware)));
|
|
277124
277554
|
var formatAddress = (address) => {
|
|
@@ -277147,7 +277577,7 @@ var layerContext = /* @__PURE__ */ mergeAll5(layer5, layer4, layerWeak).pipe(/*
|
|
|
277147
277577
|
// node_modules/@effect/platform/dist/esm/HttpServer.js
|
|
277148
277578
|
var TypeId44 = TypeId43;
|
|
277149
277579
|
var HttpServer = serverTag;
|
|
277150
|
-
var
|
|
277580
|
+
var make72 = make71;
|
|
277151
277581
|
var serve2 = serve;
|
|
277152
277582
|
var serveEffect2 = serveEffect;
|
|
277153
277583
|
var formatAddress2 = formatAddress;
|
|
@@ -277164,7 +277594,7 @@ var RouteTypeId = /* @__PURE__ */ Symbol.for("@effect/platform/HttpRouter/Route"
|
|
|
277164
277594
|
var RouteContextTypeId = /* @__PURE__ */ Symbol.for("@effect/platform/HttpRouter/RouteContext");
|
|
277165
277595
|
var RouteContext = /* @__PURE__ */ GenericTag("@effect/platform/HttpRouter/RouteContext");
|
|
277166
277596
|
var isRouter = (u) => hasProperty(u, TypeId45);
|
|
277167
|
-
var currentRouterConfig = /* @__PURE__ */ globalValue("@effect/platform/HttpRouter/currentRouterConfig", () =>
|
|
277597
|
+
var currentRouterConfig = /* @__PURE__ */ globalValue("@effect/platform/HttpRouter/currentRouterConfig", () => unsafeMake10({}));
|
|
277168
277598
|
class RouterImpl2 extends StructuralClass {
|
|
277169
277599
|
routes;
|
|
277170
277600
|
mounts;
|
|
@@ -277195,7 +277625,7 @@ class RouterImpl2 extends StructuralClass {
|
|
|
277195
277625
|
}
|
|
277196
277626
|
}
|
|
277197
277627
|
var toHttpApp = (self2) => map16(get13(currentRouterConfig), (config2) => {
|
|
277198
|
-
const router =
|
|
277628
|
+
const router = make67(config2);
|
|
277199
277629
|
const mounts = toReadonlyArray(self2.mounts).map(([path, app, options5]) => [path, new RouteContextImpl(new RouteImpl("*", options5?.includePrefix ? `${path}/*` : "/*", app, options5?.includePrefix ? none2() : some2(path), false), {}), options5]);
|
|
277200
277630
|
const mountsLen = mounts.length;
|
|
277201
277631
|
forEach(self2.routes, (route) => {
|
|
@@ -277432,7 +277862,7 @@ __export(exports_OpenApi, {
|
|
|
277432
277862
|
});
|
|
277433
277863
|
|
|
277434
277864
|
// node_modules/effect/dist/esm/JSONSchema.js
|
|
277435
|
-
var
|
|
277865
|
+
var make73 = (schema, options6) => {
|
|
277436
277866
|
const definitions = {};
|
|
277437
277867
|
const target = options6?.target ?? "jsonSchema7";
|
|
277438
277868
|
const ast = isTransformation(schema.ast) && isParseJsonTransformation(schema.ast.from) ? schema.ast.to : schema.ast;
|
|
@@ -278538,7 +278968,7 @@ function isSingleStringType(ast, key) {
|
|
|
278538
278968
|
case "TypeLiteral": {
|
|
278539
278969
|
if (key !== undefined) {
|
|
278540
278970
|
const ps = ast.propertySignatures.find((ps2) => ps2.name === key);
|
|
278541
|
-
return ps !== undefined ? isSingleStringType(ps.type, key) : ast.indexSignatures.some((is2) => is(
|
|
278971
|
+
return ps !== undefined ? isSingleStringType(ps.type, key) : ast.indexSignatures.some((is2) => is(make50(is2.parameter))(key) && isSingleStringType(is2.type));
|
|
278542
278972
|
}
|
|
278543
278973
|
return false;
|
|
278544
278974
|
}
|
|
@@ -278753,7 +279183,7 @@ var basicLen = `Basic `.length;
|
|
|
278753
279183
|
var securityDecode = (self2) => {
|
|
278754
279184
|
switch (self2._tag) {
|
|
278755
279185
|
case "Bearer": {
|
|
278756
|
-
return map16(HttpServerRequest, (request) =>
|
|
279186
|
+
return map16(HttpServerRequest, (request) => make49((request.headers.authorization ?? "").slice(bearerLen)));
|
|
278757
279187
|
}
|
|
278758
279188
|
case "ApiKey": {
|
|
278759
279189
|
const key = self2.in === "header" ? self2.key.toLowerCase() : self2.key;
|
|
@@ -278762,14 +279192,14 @@ var securityDecode = (self2) => {
|
|
|
278762
279192
|
});
|
|
278763
279193
|
const decode7 = unify2(self2.in === "query" ? schemaSearchParams2(schema) : self2.in === "cookie" ? schemaCookies2(schema) : schemaHeaders3(schema));
|
|
278764
279194
|
return match12(decode7, {
|
|
278765
|
-
onFailure: () =>
|
|
278766
|
-
onSuccess: (match16) =>
|
|
279195
|
+
onFailure: () => make49(""),
|
|
279196
|
+
onSuccess: (match16) => make49(match16[key])
|
|
278767
279197
|
});
|
|
278768
279198
|
}
|
|
278769
279199
|
case "Basic": {
|
|
278770
279200
|
const empty42 = {
|
|
278771
279201
|
username: "",
|
|
278772
|
-
password:
|
|
279202
|
+
password: make49("")
|
|
278773
279203
|
};
|
|
278774
279204
|
return HttpServerRequest.pipe(flatMap10((request) => decodeBase64String((request.headers.authorization ?? "").slice(basicLen))), match12({
|
|
278775
279205
|
onFailure: () => empty42,
|
|
@@ -278780,7 +279210,7 @@ var securityDecode = (self2) => {
|
|
|
278780
279210
|
}
|
|
278781
279211
|
return {
|
|
278782
279212
|
username: parts2[0],
|
|
278783
|
-
password:
|
|
279213
|
+
password: make49(parts2[1])
|
|
278784
279214
|
};
|
|
278785
279215
|
}
|
|
278786
279216
|
}));
|
|
@@ -278798,8 +279228,8 @@ var securitySetCookie = (self2, value3, options6) => {
|
|
|
278798
279228
|
// node_modules/@effect/platform/dist/esm/HttpApiClient.js
|
|
278799
279229
|
var exports_HttpApiClient = {};
|
|
278800
279230
|
__export(exports_HttpApiClient, {
|
|
278801
|
-
makeWith: () =>
|
|
278802
|
-
make: () =>
|
|
279231
|
+
makeWith: () => makeWith4,
|
|
279232
|
+
make: () => make74,
|
|
278803
279233
|
group: () => group2,
|
|
278804
279234
|
endpoint: () => endpoint
|
|
278805
279235
|
});
|
|
@@ -278852,7 +279282,7 @@ var makeClient = (api2, options6) => gen2(function* () {
|
|
|
278852
279282
|
const encodeHeaders = endpoint.headersSchema.pipe(map2(encodeUnknown2));
|
|
278853
279283
|
const encodeUrlParams = endpoint.urlParamsSchema.pipe(map2(encodeUnknown2));
|
|
278854
279284
|
const endpointFn = fnUntraced2(function* (request) {
|
|
278855
|
-
let httpRequest =
|
|
279285
|
+
let httpRequest = make69(endpoint.method)(endpoint.path);
|
|
278856
279286
|
if (request && request.path) {
|
|
278857
279287
|
const encodedPathParams = encodePath._tag === "Some" ? yield* encodePath.value(request.path) : request.path;
|
|
278858
279288
|
httpRequest = setUrl2(httpRequest, makeUrl2(encodedPathParams));
|
|
@@ -278885,11 +279315,11 @@ var makeClient = (api2, options6) => gen2(function* () {
|
|
|
278885
279315
|
}
|
|
278886
279316
|
});
|
|
278887
279317
|
});
|
|
278888
|
-
var
|
|
279318
|
+
var make74 = (api2, options6) => flatMap10(HttpClient, (httpClient) => makeWith4(api2, {
|
|
278889
279319
|
...options6,
|
|
278890
279320
|
httpClient: options6?.transformClient ? options6.transformClient(httpClient) : httpClient
|
|
278891
279321
|
}));
|
|
278892
|
-
var
|
|
279322
|
+
var makeWith4 = (api2, options6) => {
|
|
278893
279323
|
const client = {};
|
|
278894
279324
|
return makeClient(api2, {
|
|
278895
279325
|
...options6,
|
|
@@ -279004,7 +279434,7 @@ var schemaFromArrayBuffer = (ast, encoding) => {
|
|
|
279004
279434
|
if (ast._tag === "Union") {
|
|
279005
279435
|
return Union2(...ast.types.map((ast2) => schemaFromArrayBuffer(ast2, getEncoding(ast2, encoding))));
|
|
279006
279436
|
}
|
|
279007
|
-
const schema =
|
|
279437
|
+
const schema = make50(ast);
|
|
279008
279438
|
switch (encoding.kind) {
|
|
279009
279439
|
case "Json": {
|
|
279010
279440
|
return compose3(parseJsonArrayBuffer, schema);
|
|
@@ -279041,7 +279471,7 @@ var bodyFromPayload = (ast) => {
|
|
|
279041
279471
|
if (bodyFromPayloadCache.has(ast)) {
|
|
279042
279472
|
return bodyFromPayloadCache.get(ast);
|
|
279043
279473
|
}
|
|
279044
|
-
const schema =
|
|
279474
|
+
const schema = make50(ast);
|
|
279045
279475
|
const encoding = getEncoding(ast);
|
|
279046
279476
|
const transform6 = transformOrFail(HttpBodyFromSelf, schema, {
|
|
279047
279477
|
decode(fromA, _, ast2) {
|
|
@@ -279084,7 +279514,7 @@ __export(exports_HttpApiEndpoint, {
|
|
|
279084
279514
|
post: () => post6,
|
|
279085
279515
|
patch: () => patch14,
|
|
279086
279516
|
options: () => options6,
|
|
279087
|
-
make: () =>
|
|
279517
|
+
make: () => make75,
|
|
279088
279518
|
isHttpApiEndpoint: () => isHttpApiEndpoint,
|
|
279089
279519
|
head: () => head11,
|
|
279090
279520
|
get: () => get20,
|
|
@@ -279166,7 +279596,7 @@ var Proto7 = {
|
|
|
279166
279596
|
}
|
|
279167
279597
|
};
|
|
279168
279598
|
var makeProto2 = (options6) => Object.assign(Object.create(Proto7), options6);
|
|
279169
|
-
var
|
|
279599
|
+
var make75 = (method) => (name, ...args2) => {
|
|
279170
279600
|
if (args2.length === 1) {
|
|
279171
279601
|
return makeProto2({
|
|
279172
279602
|
name,
|
|
@@ -279211,17 +279641,17 @@ var make74 = (method) => (name, ...args2) => {
|
|
|
279211
279641
|
});
|
|
279212
279642
|
};
|
|
279213
279643
|
};
|
|
279214
|
-
var get20 = /* @__PURE__ */
|
|
279215
|
-
var post6 = /* @__PURE__ */
|
|
279216
|
-
var put6 = /* @__PURE__ */
|
|
279217
|
-
var patch14 = /* @__PURE__ */
|
|
279218
|
-
var del6 = /* @__PURE__ */
|
|
279219
|
-
var head11 = /* @__PURE__ */
|
|
279220
|
-
var options6 = /* @__PURE__ */
|
|
279644
|
+
var get20 = /* @__PURE__ */ make75("GET");
|
|
279645
|
+
var post6 = /* @__PURE__ */ make75("POST");
|
|
279646
|
+
var put6 = /* @__PURE__ */ make75("PUT");
|
|
279647
|
+
var patch14 = /* @__PURE__ */ make75("PATCH");
|
|
279648
|
+
var del6 = /* @__PURE__ */ make75("DELETE");
|
|
279649
|
+
var head11 = /* @__PURE__ */ make75("HEAD");
|
|
279650
|
+
var options6 = /* @__PURE__ */ make75("OPTIONS");
|
|
279221
279651
|
// node_modules/@effect/platform/dist/esm/HttpApiGroup.js
|
|
279222
279652
|
var exports_HttpApiGroup = {};
|
|
279223
279653
|
__export(exports_HttpApiGroup, {
|
|
279224
|
-
make: () =>
|
|
279654
|
+
make: () => make76,
|
|
279225
279655
|
isHttpApiGroup: () => isHttpApiGroup,
|
|
279226
279656
|
TypeId: () => TypeId47
|
|
279227
279657
|
});
|
|
@@ -279333,7 +279763,7 @@ var makeProto3 = (options7) => {
|
|
|
279333
279763
|
Object.setPrototypeOf(HttpApiGroup, Proto8);
|
|
279334
279764
|
return Object.assign(HttpApiGroup, options7);
|
|
279335
279765
|
};
|
|
279336
|
-
var
|
|
279766
|
+
var make76 = (identifier2, options7) => makeProto3({
|
|
279337
279767
|
identifier: identifier2,
|
|
279338
279768
|
topLevel: options7?.topLevel ?? false,
|
|
279339
279769
|
endpoints: empty(),
|
|
@@ -279342,7 +279772,7 @@ var make75 = (identifier2, options7) => makeProto3({
|
|
|
279342
279772
|
middlewares: new Set
|
|
279343
279773
|
});
|
|
279344
279774
|
// node_modules/effect/dist/esm/Logger.js
|
|
279345
|
-
var
|
|
279775
|
+
var make77 = makeLogger;
|
|
279346
279776
|
var addEffect = addLoggerEffect;
|
|
279347
279777
|
var withMinimumLogLevel2 = withMinimumLogLevel;
|
|
279348
279778
|
var defaultLogger2 = defaultLogger;
|
|
@@ -279551,16 +279981,16 @@ var struct3 = (F) => (fields) => {
|
|
|
279551
279981
|
};
|
|
279552
279982
|
|
|
279553
279983
|
// node_modules/@effect/typeclass/dist/esm/Semigroup.js
|
|
279554
|
-
var
|
|
279984
|
+
var make78 = (combine10, combineMany = (self2, collection) => reduce14(self2, combine10)(collection)) => ({
|
|
279555
279985
|
combine: combine10,
|
|
279556
279986
|
combineMany
|
|
279557
279987
|
});
|
|
279558
|
-
var constant2 = (a) =>
|
|
279559
|
-
var first2 = () =>
|
|
279560
|
-
var imap = /* @__PURE__ */ dual(3, (S, to, from) =>
|
|
279561
|
-
var product = (self2, that) =>
|
|
279988
|
+
var constant2 = (a) => make78(() => a, () => a);
|
|
279989
|
+
var first2 = () => make78((a) => a, (a) => a);
|
|
279990
|
+
var imap = /* @__PURE__ */ dual(3, (S, to, from) => make78((self2, that) => to(S.combine(from(self2), from(that))), (self2, collection) => to(S.combineMany(from(self2), map27(from)(collection)))));
|
|
279991
|
+
var product = (self2, that) => make78(([xa, xb], [ya, yb]) => [self2.combine(xa, ya), that.combine(xb, yb)]);
|
|
279562
279992
|
var productAll = (collection) => {
|
|
279563
|
-
return
|
|
279993
|
+
return make78((x, y) => {
|
|
279564
279994
|
const len = Math.min(x.length, y.length);
|
|
279565
279995
|
const out = [];
|
|
279566
279996
|
let collectionLength = 0;
|
|
@@ -279576,7 +280006,7 @@ var productAll = (collection) => {
|
|
|
279576
280006
|
};
|
|
279577
280007
|
var productMany = (self2, collection) => {
|
|
279578
280008
|
const semigroup = productAll(collection);
|
|
279579
|
-
return
|
|
280009
|
+
return make78((x, y) => [self2.combine(x[0], y[0]), ...semigroup.combine(x.slice(1), y.slice(1))]);
|
|
279580
280010
|
};
|
|
279581
280011
|
var of6 = constant2;
|
|
279582
280012
|
var Product = {
|
|
@@ -279586,7 +280016,7 @@ var Product = {
|
|
|
279586
280016
|
productMany,
|
|
279587
280017
|
productAll
|
|
279588
280018
|
};
|
|
279589
|
-
var array6 = () =>
|
|
280019
|
+
var array6 = () => make78((self2, that) => self2.concat(that));
|
|
279590
280020
|
var struct4 = /* @__PURE__ */ struct3(Product);
|
|
279591
280021
|
|
|
279592
280022
|
// node_modules/@effect/typeclass/dist/esm/Monoid.js
|
|
@@ -279719,12 +280149,12 @@ var csi = (controlFunction, sgrs) => {
|
|
|
279719
280149
|
// node_modules/@effect/printer-ansi/dist/esm/internal/ansi.js
|
|
279720
280150
|
var AnsiSymbolKey = "@effect/printer-ansi/Ansi";
|
|
279721
280151
|
var AnsiTypeId = /* @__PURE__ */ Symbol.for(AnsiSymbolKey);
|
|
279722
|
-
var
|
|
280152
|
+
var make79 = (params2) => ({
|
|
279723
280153
|
...AnsiMonoid.empty,
|
|
279724
280154
|
...params2
|
|
279725
280155
|
});
|
|
279726
280156
|
var typeIdSemigroup = /* @__PURE__ */ first2();
|
|
279727
|
-
var getFirstSomeSemigroup = /* @__PURE__ */
|
|
280157
|
+
var getFirstSomeSemigroup = /* @__PURE__ */ make78((self2, that) => isSome2(self2) ? self2 : that);
|
|
279728
280158
|
var AnsiSemigroup = /* @__PURE__ */ struct4({
|
|
279729
280159
|
[AnsiTypeId]: typeIdSemigroup,
|
|
279730
280160
|
commands: /* @__PURE__ */ array6(),
|
|
@@ -279751,22 +280181,22 @@ var none9 = AnsiMonoid.empty;
|
|
|
279751
280181
|
var ESC = "\x1B[";
|
|
279752
280182
|
var BEL = "\x07";
|
|
279753
280183
|
var SEP = ";";
|
|
279754
|
-
var bold = /* @__PURE__ */
|
|
280184
|
+
var bold = /* @__PURE__ */ make79({
|
|
279755
280185
|
bold: /* @__PURE__ */ some2(/* @__PURE__ */ setBold(true))
|
|
279756
280186
|
});
|
|
279757
|
-
var italicized = /* @__PURE__ */
|
|
280187
|
+
var italicized = /* @__PURE__ */ make79({
|
|
279758
280188
|
italicized: /* @__PURE__ */ some2(/* @__PURE__ */ setItalicized(true))
|
|
279759
280189
|
});
|
|
279760
|
-
var strikethrough = /* @__PURE__ */
|
|
280190
|
+
var strikethrough = /* @__PURE__ */ make79({
|
|
279761
280191
|
strikethrough: /* @__PURE__ */ some2(/* @__PURE__ */ setStrikethrough(true))
|
|
279762
280192
|
});
|
|
279763
|
-
var underlined = /* @__PURE__ */
|
|
280193
|
+
var underlined = /* @__PURE__ */ make79({
|
|
279764
280194
|
underlined: /* @__PURE__ */ some2(/* @__PURE__ */ setUnderlined(true))
|
|
279765
280195
|
});
|
|
279766
|
-
var brightColor = (color) =>
|
|
280196
|
+
var brightColor = (color) => make79({
|
|
279767
280197
|
foreground: some2(setColor(color, true, "foreground"))
|
|
279768
280198
|
});
|
|
279769
|
-
var color = (color2) =>
|
|
280199
|
+
var color = (color2) => make79({
|
|
279770
280200
|
foreground: some2(setColor(color2, false, "foreground"))
|
|
279771
280201
|
});
|
|
279772
280202
|
var black2 = /* @__PURE__ */ color(black);
|
|
@@ -279775,18 +280205,18 @@ var green2 = /* @__PURE__ */ color(green);
|
|
|
279775
280205
|
var white2 = /* @__PURE__ */ color(white);
|
|
279776
280206
|
var blackBright = /* @__PURE__ */ brightColor(black);
|
|
279777
280207
|
var cyanBright = /* @__PURE__ */ brightColor(cyan);
|
|
279778
|
-
var beep = /* @__PURE__ */
|
|
280208
|
+
var beep = /* @__PURE__ */ make79({
|
|
279779
280209
|
commands: /* @__PURE__ */ of(BEL)
|
|
279780
280210
|
});
|
|
279781
280211
|
var cursorTo = (column, row) => {
|
|
279782
280212
|
if (row === undefined) {
|
|
279783
280213
|
const command2 = `${ESC}${Math.max(column + 1, 0)}G`;
|
|
279784
|
-
return
|
|
280214
|
+
return make79({
|
|
279785
280215
|
commands: of(command2)
|
|
279786
280216
|
});
|
|
279787
280217
|
}
|
|
279788
280218
|
const command = `${ESC}${row + 1}${SEP}${Math.max(column + 1, 0)}H`;
|
|
279789
|
-
return
|
|
280219
|
+
return make79({
|
|
279790
280220
|
commands: of(command)
|
|
279791
280221
|
});
|
|
279792
280222
|
};
|
|
@@ -279804,29 +280234,29 @@ var cursorMove = (column, row = 0) => {
|
|
|
279804
280234
|
if (column < 0) {
|
|
279805
280235
|
command += `${ESC}${-column}D`;
|
|
279806
280236
|
}
|
|
279807
|
-
return
|
|
280237
|
+
return make79({
|
|
279808
280238
|
commands: of(command)
|
|
279809
280239
|
});
|
|
279810
280240
|
};
|
|
279811
280241
|
var cursorDown = (lines = 1) => {
|
|
279812
280242
|
const command = `${ESC}${lines}B`;
|
|
279813
|
-
return
|
|
280243
|
+
return make79({
|
|
279814
280244
|
commands: of(command)
|
|
279815
280245
|
});
|
|
279816
280246
|
};
|
|
279817
|
-
var cursorLeft = /* @__PURE__ */
|
|
280247
|
+
var cursorLeft = /* @__PURE__ */ make79({
|
|
279818
280248
|
commands: /* @__PURE__ */ of(`${ESC}G`)
|
|
279819
280249
|
});
|
|
279820
|
-
var cursorSavePosition = /* @__PURE__ */
|
|
280250
|
+
var cursorSavePosition = /* @__PURE__ */ make79({
|
|
279821
280251
|
commands: /* @__PURE__ */ of(`${ESC}s`)
|
|
279822
280252
|
});
|
|
279823
|
-
var cursorRestorePosition = /* @__PURE__ */
|
|
280253
|
+
var cursorRestorePosition = /* @__PURE__ */ make79({
|
|
279824
280254
|
commands: /* @__PURE__ */ of(`${ESC}u`)
|
|
279825
280255
|
});
|
|
279826
|
-
var cursorHide = /* @__PURE__ */
|
|
280256
|
+
var cursorHide = /* @__PURE__ */ make79({
|
|
279827
280257
|
commands: /* @__PURE__ */ of(`${ESC}?25l`)
|
|
279828
280258
|
});
|
|
279829
|
-
var cursorShow = /* @__PURE__ */
|
|
280259
|
+
var cursorShow = /* @__PURE__ */ make79({
|
|
279830
280260
|
commands: /* @__PURE__ */ of(`${ESC}?25h`)
|
|
279831
280261
|
});
|
|
279832
280262
|
var eraseLines = (rows) => {
|
|
@@ -279837,26 +280267,26 @@ var eraseLines = (rows) => {
|
|
|
279837
280267
|
if (rows > 0) {
|
|
279838
280268
|
command += `${ESC}G`;
|
|
279839
280269
|
}
|
|
279840
|
-
return
|
|
280270
|
+
return make79({
|
|
279841
280271
|
commands: of(command)
|
|
279842
280272
|
});
|
|
279843
280273
|
};
|
|
279844
|
-
var eraseEndLine = /* @__PURE__ */
|
|
280274
|
+
var eraseEndLine = /* @__PURE__ */ make79({
|
|
279845
280275
|
commands: /* @__PURE__ */ of(`${ESC}K`)
|
|
279846
280276
|
});
|
|
279847
|
-
var eraseStartLine = /* @__PURE__ */
|
|
280277
|
+
var eraseStartLine = /* @__PURE__ */ make79({
|
|
279848
280278
|
commands: /* @__PURE__ */ of(`${ESC}1K`)
|
|
279849
280279
|
});
|
|
279850
|
-
var eraseLine = /* @__PURE__ */
|
|
280280
|
+
var eraseLine = /* @__PURE__ */ make79({
|
|
279851
280281
|
commands: /* @__PURE__ */ of(`${ESC}2K`)
|
|
279852
280282
|
});
|
|
279853
|
-
var eraseDown = /* @__PURE__ */
|
|
280283
|
+
var eraseDown = /* @__PURE__ */ make79({
|
|
279854
280284
|
commands: /* @__PURE__ */ of(`${ESC}J`)
|
|
279855
280285
|
});
|
|
279856
|
-
var eraseUp = /* @__PURE__ */
|
|
280286
|
+
var eraseUp = /* @__PURE__ */ make79({
|
|
279857
280287
|
commands: /* @__PURE__ */ of(`${ESC}1J`)
|
|
279858
280288
|
});
|
|
279859
|
-
var eraseScreen = /* @__PURE__ */
|
|
280289
|
+
var eraseScreen = /* @__PURE__ */ make79({
|
|
279860
280290
|
commands: /* @__PURE__ */ of(`${ESC}2J`)
|
|
279861
280291
|
});
|
|
279862
280292
|
var stringify = (self2) => stringifyInternal(self2);
|
|
@@ -280933,8 +281363,8 @@ var spans = (spans2) => {
|
|
|
280933
281363
|
}
|
|
280934
281364
|
return empty45;
|
|
280935
281365
|
};
|
|
280936
|
-
var isEmpty14 = (self2) =>
|
|
280937
|
-
var
|
|
281366
|
+
var isEmpty14 = (self2) => size13(self2) === 0;
|
|
281367
|
+
var size13 = (self2) => {
|
|
280938
281368
|
switch (self2._tag) {
|
|
280939
281369
|
case "Text":
|
|
280940
281370
|
case "URI": {
|
|
@@ -280943,10 +281373,10 @@ var size12 = (self2) => {
|
|
|
280943
281373
|
case "Highlight":
|
|
280944
281374
|
case "Strong":
|
|
280945
281375
|
case "Weak": {
|
|
280946
|
-
return
|
|
281376
|
+
return size13(self2.value);
|
|
280947
281377
|
}
|
|
280948
281378
|
case "Sequence": {
|
|
280949
|
-
return
|
|
281379
|
+
return size13(self2.left) + size13(self2.right);
|
|
280950
281380
|
}
|
|
280951
281381
|
}
|
|
280952
281382
|
};
|
|
@@ -282928,7 +283358,7 @@ function basePrompt(options9, type2) {
|
|
|
282928
283358
|
clear: handleClear5(opts)
|
|
282929
283359
|
});
|
|
282930
283360
|
}
|
|
282931
|
-
var hidden = (options9) => basePrompt(options9, "hidden").pipe(map31(
|
|
283361
|
+
var hidden = (options9) => basePrompt(options9, "hidden").pipe(map31(make49));
|
|
282932
283362
|
var text9 = (options9) => basePrompt(options9, "text");
|
|
282933
283363
|
|
|
282934
283364
|
// node_modules/@effect/cli/dist/esm/internal/prompt/toggle.js
|
|
@@ -283284,7 +283714,7 @@ var validateInternal = (self2, value6, config2) => {
|
|
|
283284
283714
|
});
|
|
283285
283715
|
}
|
|
283286
283716
|
case "Redacted": {
|
|
283287
|
-
return attempt(value6, getTypeNameInternal(self2), decodeUnknown2(String$)).pipe(map16((value7) =>
|
|
283717
|
+
return attempt(value6, getTypeNameInternal(self2), decodeUnknown2(String$)).pipe(map16((value7) => make49(value7)));
|
|
283288
283718
|
}
|
|
283289
283719
|
case "Secret": {
|
|
283290
283720
|
return attempt(value6, getTypeNameInternal(self2), decodeUnknown2(String$)).pipe(map16((value7) => fromString4(value7)));
|
|
@@ -285566,7 +285996,7 @@ var builtInOptions = (command, usage, helpDoc) => map34(builtIns, (builtIn) => {
|
|
|
285566
285996
|
return none2();
|
|
285567
285997
|
});
|
|
285568
285998
|
// node_modules/effect/dist/esm/SynchronizedRef.js
|
|
285569
|
-
var
|
|
285999
|
+
var make80 = makeSynchronized;
|
|
285570
286000
|
var get21 = get10;
|
|
285571
286001
|
var updateEffect2 = updateEffect;
|
|
285572
286002
|
|
|
@@ -285694,7 +286124,7 @@ var proto23 = {
|
|
|
285694
286124
|
};
|
|
285695
286125
|
var isCommand = (u) => typeof u === "object" && u != null && (TypeId49 in u);
|
|
285696
286126
|
var isStandard = (self2) => self2._tag === "Standard";
|
|
285697
|
-
var
|
|
286127
|
+
var make81 = (name, options9 = none12, args2 = none10) => {
|
|
285698
286128
|
const op = Object.create(proto23);
|
|
285699
286129
|
op._tag = "Standard";
|
|
285700
286130
|
op.name = name;
|
|
@@ -285780,8 +286210,8 @@ var getHelpInternal4 = (self2, config2) => {
|
|
|
285780
286210
|
}
|
|
285781
286211
|
};
|
|
285782
286212
|
const printSubcommands = (subcommands) => {
|
|
285783
|
-
const maxUsageLength = reduceRight(subcommands, 0, (max7, [usage]) => Math.max(
|
|
285784
|
-
const documents = map4(subcommands, ([usage, desc]) => p(spans([usage, text8(" ".repeat(maxUsageLength -
|
|
286213
|
+
const maxUsageLength = reduceRight(subcommands, 0, (max7, [usage]) => Math.max(size13(usage), max7));
|
|
286214
|
+
const documents = map4(subcommands, ([usage, desc]) => p(spans([usage, text8(" ".repeat(maxUsageLength - size13(usage) + 2)), desc])));
|
|
285785
286215
|
if (isNonEmptyReadonlyArray(documents)) {
|
|
285786
286216
|
return enumeration(documents);
|
|
285787
286217
|
}
|
|
@@ -286126,7 +286556,7 @@ var getShortDescription3 = (self2) => {
|
|
|
286126
286556
|
}
|
|
286127
286557
|
}
|
|
286128
286558
|
};
|
|
286129
|
-
var traverseCommand = (self2, initialState3, f) =>
|
|
286559
|
+
var traverseCommand = (self2, initialState3, f) => make80(initialState3).pipe(flatMap10((ref) => {
|
|
286130
286560
|
const loop2 = (self3, parentCommands, subcommands, level) => {
|
|
286131
286561
|
switch (self3._tag) {
|
|
286132
286562
|
case "Standard": {
|
|
@@ -286268,7 +286698,7 @@ var proto24 = {
|
|
|
286268
286698
|
return pipeArguments(this, arguments);
|
|
286269
286699
|
}
|
|
286270
286700
|
};
|
|
286271
|
-
var
|
|
286701
|
+
var make82 = (config2) => {
|
|
286272
286702
|
const op = Object.create(proto24);
|
|
286273
286703
|
op.name = config2.name;
|
|
286274
286704
|
op.version = config2.version;
|
|
@@ -286440,7 +286870,7 @@ __export(exports_Command2, {
|
|
|
286440
286870
|
provideEffect: () => provideEffect2,
|
|
286441
286871
|
provide: () => provide5,
|
|
286442
286872
|
prompt: () => prompt3,
|
|
286443
|
-
make: () =>
|
|
286873
|
+
make: () => make84,
|
|
286444
286874
|
getZshCompletions: () => getZshCompletions6,
|
|
286445
286875
|
getUsage: () => getUsage7,
|
|
286446
286876
|
getSubcommands: () => getSubcommands3,
|
|
@@ -286557,12 +286987,12 @@ var makeDescriptor = (name, config2) => {
|
|
|
286557
286987
|
options: options9,
|
|
286558
286988
|
tree
|
|
286559
286989
|
} = parseConfig(config2);
|
|
286560
|
-
return map36(
|
|
286990
|
+
return map36(make81(name, all9(options9), all7(args2)), ({
|
|
286561
286991
|
args: args3,
|
|
286562
286992
|
options: options10
|
|
286563
286993
|
}) => reconstructConfigTree(tree, args3, options10));
|
|
286564
286994
|
};
|
|
286565
|
-
var
|
|
286995
|
+
var make83 = (name, config2 = {}, handler2) => fromDescriptor(makeDescriptor(name, config2), handler2);
|
|
286566
286996
|
var getHelp8 = (self2, config2) => getHelp7(self2.descriptor, config2);
|
|
286567
286997
|
var getNames3 = (self2) => getNames2(self2.descriptor);
|
|
286568
286998
|
var getBashCompletions4 = (self2, programName) => getBashCompletions3(self2.descriptor, programName);
|
|
@@ -286626,7 +287056,7 @@ var withSubcommands2 = /* @__PURE__ */ dual(2, (self2, subcommands) => {
|
|
|
286626
287056
|
});
|
|
286627
287057
|
var wizard7 = /* @__PURE__ */ dual(3, (self2, prefix, config2) => wizard6(self2.descriptor, prefix, config2));
|
|
286628
287058
|
var run8 = /* @__PURE__ */ dual(2, (self2, config2) => {
|
|
286629
|
-
const app =
|
|
287059
|
+
const app = make82({
|
|
286630
287060
|
...config2,
|
|
286631
287061
|
command: self2.descriptor
|
|
286632
287062
|
});
|
|
@@ -286645,7 +287075,7 @@ var getFishCompletions6 = getFishCompletions5;
|
|
|
286645
287075
|
var getZshCompletions6 = getZshCompletions5;
|
|
286646
287076
|
var getSubcommands3 = getSubcommands2;
|
|
286647
287077
|
var getUsage7 = getUsage6;
|
|
286648
|
-
var
|
|
287078
|
+
var make84 = make83;
|
|
286649
287079
|
var prompt3 = prompt2;
|
|
286650
287080
|
var provide5 = provide4;
|
|
286651
287081
|
var provideEffect2 = provideEffect;
|
|
@@ -286838,8 +287268,8 @@ var makeFile = /* @__PURE__ */ (() => {
|
|
|
286838
287268
|
return sizeRead;
|
|
286839
287269
|
}));
|
|
286840
287270
|
}
|
|
286841
|
-
readAlloc(
|
|
286842
|
-
const sizeNumber = Number(
|
|
287271
|
+
readAlloc(size14) {
|
|
287272
|
+
const sizeNumber = Number(size14);
|
|
286843
287273
|
return this.semaphore.withPermits(1)(flatMap10(sync3(() => Buffer.allocUnsafeSlow(sizeNumber)), (buffer3) => map16(nodeReadAlloc(this.fd, {
|
|
286844
287274
|
buffer: buffer3,
|
|
286845
287275
|
position: this.position
|
|
@@ -287035,7 +287465,7 @@ var writeFile2 = (path4, data, options9) => async((resume2, signal) => {
|
|
|
287035
287465
|
resume2(fail8(handleBadArgument("writeFile")(err)));
|
|
287036
287466
|
}
|
|
287037
287467
|
});
|
|
287038
|
-
var makeFileSystem = /* @__PURE__ */ map16(/* @__PURE__ */ serviceOption2(WatchBackend), (backend) =>
|
|
287468
|
+
var makeFileSystem = /* @__PURE__ */ map16(/* @__PURE__ */ serviceOption2(WatchBackend), (backend) => make54({
|
|
287039
287469
|
access: access2,
|
|
287040
287470
|
chmod: chmod2,
|
|
287041
287471
|
chown: chown2,
|
|
@@ -287178,6 +287608,8 @@ var ResumeExecutionPayloadSchema = Struct({
|
|
|
287178
287608
|
responseJson: optional(String$),
|
|
287179
287609
|
interactionMode: optional(Literal2("live", "live_form", "detach"))
|
|
287180
287610
|
});
|
|
287611
|
+
// node_modules/effect/dist/esm/Cache.js
|
|
287612
|
+
var make85 = make40;
|
|
287181
287613
|
// node_modules/effect/dist/esm/internal/managedRuntime.js
|
|
287182
287614
|
function provide6(managed, effect3) {
|
|
287183
287615
|
return flatMap7(managed.runtimeEffect, (rt) => withFiberRuntime((fiber) => {
|
|
@@ -287196,7 +287628,7 @@ var ManagedRuntimeProto = {
|
|
|
287196
287628
|
return this.runtimeEffect;
|
|
287197
287629
|
}
|
|
287198
287630
|
};
|
|
287199
|
-
var
|
|
287631
|
+
var make86 = (layer12, memoMap) => {
|
|
287200
287632
|
memoMap = memoMap ?? unsafeMakeMemoMap();
|
|
287201
287633
|
const scope4 = unsafeRunSyncEffect(scopeMake());
|
|
287202
287634
|
let buildFiber;
|
|
@@ -287252,7 +287684,7 @@ var make84 = (layer12, memoMap) => {
|
|
|
287252
287684
|
};
|
|
287253
287685
|
|
|
287254
287686
|
// node_modules/effect/dist/esm/ManagedRuntime.js
|
|
287255
|
-
var
|
|
287687
|
+
var make87 = make86;
|
|
287256
287688
|
// node_modules/effect/dist/esm/MetricKeyType.js
|
|
287257
287689
|
var isCounterKey2 = isCounterKey;
|
|
287258
287690
|
var isFrequencyKey2 = isFrequencyKey;
|
|
@@ -287743,7 +288175,7 @@ var deriveSchemaValue = (value7) => {
|
|
|
287743
288175
|
}
|
|
287744
288176
|
try {
|
|
287745
288177
|
if ((typeof value7 === "object" || typeof value7 === "function") && value7 !== null && "~standard" in value7) {
|
|
287746
|
-
return
|
|
288178
|
+
return make73(value7);
|
|
287747
288179
|
}
|
|
287748
288180
|
return value7;
|
|
287749
288181
|
} catch {
|
|
@@ -289961,7 +290393,7 @@ var cloneCatalog = (catalog) => ({
|
|
|
289961
290393
|
diagnostics: { ...catalog.diagnostics }
|
|
289962
290394
|
});
|
|
289963
290395
|
var mutableRecord2 = (value7) => value7;
|
|
289964
|
-
var createStableEntityId = (
|
|
290396
|
+
var createStableEntityId = (make88, prefix, value7) => make88(`${prefix}_${stableHash2(value7)}`);
|
|
289965
290397
|
var emptyCatalog = () => ({
|
|
289966
290398
|
version: "ir.v1",
|
|
289967
290399
|
documents: {},
|
|
@@ -295310,8 +295742,8 @@ class ZodSet extends ZodType {
|
|
|
295310
295742
|
maxSize: { value: maxSize, message: errorUtil.toString(message) }
|
|
295311
295743
|
});
|
|
295312
295744
|
}
|
|
295313
|
-
size(
|
|
295314
|
-
return this.min(
|
|
295745
|
+
size(size14, message) {
|
|
295746
|
+
return this.min(size14, message).max(size14, message);
|
|
295315
295747
|
}
|
|
295316
295748
|
nonempty(message) {
|
|
295317
295749
|
return this.min(1, message);
|
|
@@ -297698,8 +298130,8 @@ var $ZodCheckMaxSize = /* @__PURE__ */ $constructor("$ZodCheckMaxSize", (inst, d
|
|
|
297698
298130
|
});
|
|
297699
298131
|
inst._zod.check = (payload) => {
|
|
297700
298132
|
const input = payload.value;
|
|
297701
|
-
const
|
|
297702
|
-
if (
|
|
298133
|
+
const size14 = input.size;
|
|
298134
|
+
if (size14 <= def.maximum)
|
|
297703
298135
|
return;
|
|
297704
298136
|
payload.issues.push({
|
|
297705
298137
|
origin: getSizableOrigin(input),
|
|
@@ -297726,8 +298158,8 @@ var $ZodCheckMinSize = /* @__PURE__ */ $constructor("$ZodCheckMinSize", (inst, d
|
|
|
297726
298158
|
});
|
|
297727
298159
|
inst._zod.check = (payload) => {
|
|
297728
298160
|
const input = payload.value;
|
|
297729
|
-
const
|
|
297730
|
-
if (
|
|
298161
|
+
const size14 = input.size;
|
|
298162
|
+
if (size14 >= def.minimum)
|
|
297731
298163
|
return;
|
|
297732
298164
|
payload.issues.push({
|
|
297733
298165
|
origin: getSizableOrigin(input),
|
|
@@ -297755,10 +298187,10 @@ var $ZodCheckSizeEquals = /* @__PURE__ */ $constructor("$ZodCheckSizeEquals", (i
|
|
|
297755
298187
|
});
|
|
297756
298188
|
inst._zod.check = (payload) => {
|
|
297757
298189
|
const input = payload.value;
|
|
297758
|
-
const
|
|
297759
|
-
if (
|
|
298190
|
+
const size14 = input.size;
|
|
298191
|
+
if (size14 === def.size)
|
|
297760
298192
|
return;
|
|
297761
|
-
const tooBig =
|
|
298193
|
+
const tooBig = size14 > def.size;
|
|
297762
298194
|
payload.issues.push({
|
|
297763
298195
|
origin: getSizableOrigin(input),
|
|
297764
298196
|
...tooBig ? { code: "too_big", maximum: def.size } : { code: "too_small", minimum: def.size },
|
|
@@ -306105,11 +306537,11 @@ function _minSize(minimum, params2) {
|
|
|
306105
306537
|
minimum
|
|
306106
306538
|
});
|
|
306107
306539
|
}
|
|
306108
|
-
function _size(
|
|
306540
|
+
function _size(size14, params2) {
|
|
306109
306541
|
return new $ZodCheckSizeEquals({
|
|
306110
306542
|
check: "size_equals",
|
|
306111
306543
|
...normalizeParams(params2),
|
|
306112
|
-
size:
|
|
306544
|
+
size: size14
|
|
306113
306545
|
});
|
|
306114
306546
|
}
|
|
306115
306547
|
function _maxLength(maximum, params2) {
|
|
@@ -308969,8 +309401,8 @@ var ZodFile = /* @__PURE__ */ $constructor("ZodFile", (inst, def) => {
|
|
|
308969
309401
|
$ZodFile.init(inst, def);
|
|
308970
309402
|
ZodType2.init(inst, def);
|
|
308971
309403
|
inst._zod.processJSONSchema = (ctx, json4, params2) => fileProcessor(inst, ctx, json4, params2);
|
|
308972
|
-
inst.min = (
|
|
308973
|
-
inst.max = (
|
|
309404
|
+
inst.min = (size14, params2) => inst.check(_minSize(size14, params2));
|
|
309405
|
+
inst.max = (size14, params2) => inst.check(_maxSize(size14, params2));
|
|
308974
309406
|
inst.mime = (types3, params2) => inst.check(_mime(Array.isArray(types3) ? types3 : [types3], params2));
|
|
308975
309407
|
});
|
|
308976
309408
|
function file9(params2) {
|
|
@@ -313373,8 +313805,8 @@ function createParser(callbacks) {
|
|
|
313373
313805
|
const { onEvent = noop, onError: onError4 = noop, onRetry = noop, onComment } = callbacks;
|
|
313374
313806
|
let incompleteLine = "", isFirstChunk = true, id2, data = "", eventType = "";
|
|
313375
313807
|
function feed(newChunk) {
|
|
313376
|
-
const chunk4 = isFirstChunk ? newChunk.replace(/^\xEF\xBB\xBF/, "") : newChunk, [
|
|
313377
|
-
for (const line4 of
|
|
313808
|
+
const chunk4 = isFirstChunk ? newChunk.replace(/^\xEF\xBB\xBF/, "") : newChunk, [complete3, incomplete] = splitLines3(`${incompleteLine}${chunk4}`);
|
|
313809
|
+
for (const line4 of complete3)
|
|
313378
313810
|
parseLine(line4);
|
|
313379
313811
|
incompleteLine = incomplete, isFirstChunk = false;
|
|
313380
313812
|
}
|
|
@@ -313543,8 +313975,8 @@ class EventSource extends EventTarget {
|
|
|
313543
313975
|
const decoder2 = new TextDecoder, reader = body.getReader();
|
|
313544
313976
|
let open3 = true;
|
|
313545
313977
|
do {
|
|
313546
|
-
const { done:
|
|
313547
|
-
value7 && __privateGet(this, _parser).feed(decoder2.decode(value7, { stream: !
|
|
313978
|
+
const { done: done9, value: value7 } = await reader.read();
|
|
313979
|
+
value7 && __privateGet(this, _parser).feed(decoder2.decode(value7, { stream: !done9 })), done9 && (open3 = false, __privateGet(this, _parser).reset(), __privateMethod(this, _EventSource_instances, scheduleReconnect_fn).call(this));
|
|
313548
313980
|
} while (open3);
|
|
313549
313981
|
}), __privateAdd(this, _onFetchError, (err) => {
|
|
313550
313982
|
__privateSet(this, _controller, undefined), !(err.name === "AbortError" || err.type === "aborted") && __privateMethod(this, _EventSource_instances, scheduleReconnect_fn).call(this, flattenError2(err));
|
|
@@ -313674,15 +314106,15 @@ function createFetchWithInit(baseFetch = fetch, baseInit) {
|
|
|
313674
314106
|
// node_modules/pkce-challenge/dist/index.node.js
|
|
313675
314107
|
var crypto2;
|
|
313676
314108
|
crypto2 = globalThis.crypto?.webcrypto ?? globalThis.crypto ?? import("node:crypto").then((m) => m.webcrypto);
|
|
313677
|
-
async function getRandomValues(
|
|
313678
|
-
return (await crypto2).getRandomValues(new Uint8Array(
|
|
314109
|
+
async function getRandomValues(size14) {
|
|
314110
|
+
return (await crypto2).getRandomValues(new Uint8Array(size14));
|
|
313679
314111
|
}
|
|
313680
|
-
async function random3(
|
|
314112
|
+
async function random3(size14) {
|
|
313681
314113
|
const mask = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-._~";
|
|
313682
314114
|
const evenDistCutoff = Math.pow(2, 8) - Math.pow(2, 8) % mask.length;
|
|
313683
314115
|
let result = "";
|
|
313684
|
-
while (result.length <
|
|
313685
|
-
const randomBytes2 = await getRandomValues(
|
|
314116
|
+
while (result.length < size14) {
|
|
314117
|
+
const randomBytes2 = await getRandomValues(size14 - result.length);
|
|
313686
314118
|
for (const randomByte of randomBytes2) {
|
|
313687
314119
|
if (randomByte < evenDistCutoff) {
|
|
313688
314120
|
result += mask[randomByte % mask.length];
|
|
@@ -315049,8 +315481,8 @@ class StreamableHTTPClientTransport {
|
|
|
315049
315481
|
}
|
|
315050
315482
|
})).getReader();
|
|
315051
315483
|
while (true) {
|
|
315052
|
-
const { value: event, done:
|
|
315053
|
-
if (
|
|
315484
|
+
const { value: event, done: done9 } = await reader.read();
|
|
315485
|
+
if (done9) {
|
|
315054
315486
|
break;
|
|
315055
315487
|
}
|
|
315056
315488
|
if (event.id) {
|
|
@@ -318487,11 +318919,11 @@ var createCatalogTypeProjector = (input) => {
|
|
|
318487
318919
|
return renderShapeBody(catalog3, shapeId, [...stack, shapeId], options9.aliasHint, renderSelfContainedShape, false);
|
|
318488
318920
|
};
|
|
318489
318921
|
const supportingDeclarations = () => {
|
|
318490
|
-
const
|
|
318922
|
+
const pending3 = [...usedAliasShapeIds];
|
|
318491
318923
|
const emitted = new Set;
|
|
318492
318924
|
let pendingIndex = 0;
|
|
318493
|
-
while (pendingIndex <
|
|
318494
|
-
const shapeId =
|
|
318925
|
+
while (pendingIndex < pending3.length) {
|
|
318926
|
+
const shapeId = pending3[pendingIndex++];
|
|
318495
318927
|
if (emitted.has(shapeId)) {
|
|
318496
318928
|
continue;
|
|
318497
318929
|
}
|
|
@@ -318499,7 +318931,7 @@ var createCatalogTypeProjector = (input) => {
|
|
|
318499
318931
|
renderDeclarationBodyForShapeId(shapeId);
|
|
318500
318932
|
for (const discoveredShapeId of usedAliasShapeIds) {
|
|
318501
318933
|
if (!emitted.has(discoveredShapeId)) {
|
|
318502
|
-
|
|
318934
|
+
pending3.push(discoveredShapeId);
|
|
318503
318935
|
}
|
|
318504
318936
|
}
|
|
318505
318937
|
}
|
|
@@ -354767,6 +355199,19 @@ var catalogNamespaceFromPath = (path4) => {
|
|
|
354767
355199
|
return second ? `${first3}.${second}` : first3;
|
|
354768
355200
|
};
|
|
354769
355201
|
var descriptorPath = (descriptor2) => descriptor2.path;
|
|
355202
|
+
var loadedSourceCatalogToolIndexEntryFromLoadedTool = (tool) => ({
|
|
355203
|
+
path: tool.path,
|
|
355204
|
+
searchNamespace: tool.searchNamespace,
|
|
355205
|
+
searchText: tool.searchText,
|
|
355206
|
+
source: tool.source,
|
|
355207
|
+
sourceRecord: tool.sourceRecord,
|
|
355208
|
+
capabilityId: tool.capabilityId,
|
|
355209
|
+
executableId: tool.executableId,
|
|
355210
|
+
capability: tool.capability,
|
|
355211
|
+
executable: tool.executable,
|
|
355212
|
+
descriptor: tool.descriptor,
|
|
355213
|
+
projectedCatalog: tool.projectedCatalog
|
|
355214
|
+
});
|
|
354770
355215
|
var optionalJsonString = (value7) => {
|
|
354771
355216
|
if (value7 === undefined || value7 === null) {
|
|
354772
355217
|
return null;
|
|
@@ -355103,6 +355548,8 @@ var sourceRecordFromCatalogArtifact = (input) => ({
|
|
|
355103
355548
|
|
|
355104
355549
|
class RuntimeSourceCatalogStoreService extends Tag2("#runtime/RuntimeSourceCatalogStoreService")() {
|
|
355105
355550
|
}
|
|
355551
|
+
var normalizeActorScopeId = (actorScopeId) => actorScopeId ?? null;
|
|
355552
|
+
var workspaceSourceFingerprint = (sources) => JSON.stringify([...sources].sort((left3, right3) => String(left3.id).localeCompare(String(right3.id))));
|
|
355106
355553
|
var ensureRuntimeCatalogWorkspace = (deps, scopeId) => gen2(function* () {
|
|
355107
355554
|
if (deps.runtimeLocalScope.installation.scopeId !== scopeId) {
|
|
355108
355555
|
return yield* fail8(runtimeEffectError("catalog/source/runtime", `Runtime local scope mismatch: expected ${scopeId}, got ${deps.runtimeLocalScope.installation.scopeId}`));
|
|
@@ -355111,11 +355558,18 @@ var ensureRuntimeCatalogWorkspace = (deps, scopeId) => gen2(function* () {
|
|
|
355111
355558
|
var buildSnapshotFromArtifact = (input) => {
|
|
355112
355559
|
return decodeCatalogSnapshotV1(input.artifact.snapshot);
|
|
355113
355560
|
};
|
|
355114
|
-
var
|
|
355561
|
+
var loadWorkspaceSourcesWithDeps = (deps, input) => gen2(function* () {
|
|
355115
355562
|
yield* ensureRuntimeCatalogWorkspace(deps, input.scopeId);
|
|
355116
|
-
|
|
355563
|
+
return yield* deps.sourceStore.loadSourcesInScope(input.scopeId, {
|
|
355117
355564
|
actorScopeId: input.actorScopeId
|
|
355118
355565
|
});
|
|
355566
|
+
});
|
|
355567
|
+
var loadWorkspaceSourceCatalogCacheKeyWithDeps = (deps, input) => map16(loadWorkspaceSourcesWithDeps(deps, input), (sources) => ({
|
|
355568
|
+
scopeId: input.scopeId,
|
|
355569
|
+
actorScopeId: normalizeActorScopeId(input.actorScopeId),
|
|
355570
|
+
sourceFingerprint: workspaceSourceFingerprint(sources)
|
|
355571
|
+
}));
|
|
355572
|
+
var loadLoadedSourceCatalogsFromSourcesWithDeps = (deps, sources) => gen2(function* () {
|
|
355119
355573
|
const localCatalogs = yield* forEach8(sources, (source2) => gen2(function* () {
|
|
355120
355574
|
const artifact = yield* deps.sourceArtifactStore.read({
|
|
355121
355575
|
sourceId: source2.id
|
|
@@ -355147,6 +355601,10 @@ var loadWorkspaceSourceCatalogsWithDeps = (deps, input) => gen2(function* () {
|
|
|
355147
355601
|
}));
|
|
355148
355602
|
return localCatalogs.filter((catalogEntry) => catalogEntry !== null);
|
|
355149
355603
|
});
|
|
355604
|
+
var loadWorkspaceSourceCatalogsWithDeps = (deps, input) => gen2(function* () {
|
|
355605
|
+
const sources = yield* loadWorkspaceSourcesWithDeps(deps, input);
|
|
355606
|
+
return yield* loadLoadedSourceCatalogsFromSourcesWithDeps(deps, sources);
|
|
355607
|
+
});
|
|
355150
355608
|
var loadSourceWithCatalogWithDeps = (deps, input) => gen2(function* () {
|
|
355151
355609
|
yield* ensureRuntimeCatalogWorkspace(deps, input.scopeId);
|
|
355152
355610
|
const source2 = yield* deps.sourceStore.loadSourceById({
|
|
@@ -355353,29 +355811,6 @@ var expandCatalogToolByPath = (input) => succeed8(input.catalogs.flatMap((catalo
|
|
|
355353
355811
|
})
|
|
355354
355812
|
] : [];
|
|
355355
355813
|
})).at(0) ?? null);
|
|
355356
|
-
var loadWorkspaceSourceCatalogToolIndex = (input) => gen2(function* () {
|
|
355357
|
-
const catalogs = yield* loadWorkspaceSourceCatalogs({
|
|
355358
|
-
scopeId: input.scopeId,
|
|
355359
|
-
actorScopeId: input.actorScopeId
|
|
355360
|
-
});
|
|
355361
|
-
const tools = yield* expandCatalogTools({
|
|
355362
|
-
catalogs,
|
|
355363
|
-
includeSchemas: input.includeSchemas
|
|
355364
|
-
});
|
|
355365
|
-
return tools.map((tool) => ({
|
|
355366
|
-
path: tool.path,
|
|
355367
|
-
searchNamespace: tool.searchNamespace,
|
|
355368
|
-
searchText: tool.searchText,
|
|
355369
|
-
source: tool.source,
|
|
355370
|
-
sourceRecord: tool.sourceRecord,
|
|
355371
|
-
capabilityId: tool.capabilityId,
|
|
355372
|
-
executableId: tool.executableId,
|
|
355373
|
-
capability: tool.capability,
|
|
355374
|
-
executable: tool.executable,
|
|
355375
|
-
descriptor: tool.descriptor,
|
|
355376
|
-
projectedCatalog: tool.projectedCatalog
|
|
355377
|
-
}));
|
|
355378
|
-
});
|
|
355379
355814
|
var loadWorkspaceSourceCatalogToolByPath = (input) => gen2(function* () {
|
|
355380
355815
|
const catalogs = yield* loadWorkspaceSourceCatalogs({
|
|
355381
355816
|
scopeId: input.scopeId,
|
|
@@ -355409,11 +355844,40 @@ var RuntimeSourceCatalogStoreLive = effect(RuntimeSourceCatalogStoreService, gen
|
|
|
355409
355844
|
sourceStore,
|
|
355410
355845
|
sourceArtifactStore
|
|
355411
355846
|
};
|
|
355847
|
+
const workspaceCatalogCache = yield* make85({
|
|
355848
|
+
capacity: 32,
|
|
355849
|
+
timeToLive: "10 minutes",
|
|
355850
|
+
lookup: (key) => loadWorkspaceSourceCatalogsWithDeps(deps, {
|
|
355851
|
+
scopeId: key.scopeId,
|
|
355852
|
+
actorScopeId: key.actorScopeId
|
|
355853
|
+
})
|
|
355854
|
+
});
|
|
355855
|
+
const leanWorkspaceToolIndexCache = yield* make85({
|
|
355856
|
+
capacity: 32,
|
|
355857
|
+
timeToLive: "10 minutes",
|
|
355858
|
+
lookup: (key) => gen2(function* () {
|
|
355859
|
+
const catalogs = yield* workspaceCatalogCache.get(key);
|
|
355860
|
+
const tools = yield* expandCatalogTools({
|
|
355861
|
+
catalogs,
|
|
355862
|
+
includeSchemas: false,
|
|
355863
|
+
includeTypePreviews: false
|
|
355864
|
+
});
|
|
355865
|
+
return tools.map(loadedSourceCatalogToolIndexEntryFromLoadedTool);
|
|
355866
|
+
})
|
|
355867
|
+
});
|
|
355868
|
+
const loadCachedWorkspaceCatalogs = (input) => flatMap10(loadWorkspaceSourceCatalogCacheKeyWithDeps(deps, input), (key) => workspaceCatalogCache.get(key));
|
|
355869
|
+
const loadLeanWorkspaceToolIndex = (input) => flatMap10(loadWorkspaceSourceCatalogCacheKeyWithDeps(deps, input), (key) => leanWorkspaceToolIndexCache.get(key));
|
|
355412
355870
|
return RuntimeSourceCatalogStoreService.of({
|
|
355413
|
-
loadWorkspaceSourceCatalogs: (input) =>
|
|
355871
|
+
loadWorkspaceSourceCatalogs: (input) => loadCachedWorkspaceCatalogs(input),
|
|
355414
355872
|
loadSourceWithCatalog: (input) => loadSourceWithCatalogWithDeps(deps, input),
|
|
355415
|
-
loadWorkspaceSourceCatalogToolIndex: (input) =>
|
|
355416
|
-
|
|
355873
|
+
loadWorkspaceSourceCatalogToolIndex: (input) => loadLeanWorkspaceToolIndex({
|
|
355874
|
+
scopeId: input.scopeId,
|
|
355875
|
+
actorScopeId: input.actorScopeId
|
|
355876
|
+
}),
|
|
355877
|
+
loadWorkspaceSourceCatalogToolByPath: (input) => input.includeSchemas ? loadWorkspaceSourceCatalogToolByPath(input).pipe(provideService2(RuntimeLocalScopeService, runtimeLocalScope), provideService2(RuntimeSourceStoreService, sourceStore), provideService2(SourceArtifactStore, sourceArtifactStore)) : map16(loadLeanWorkspaceToolIndex({
|
|
355878
|
+
scopeId: input.scopeId,
|
|
355879
|
+
actorScopeId: input.actorScopeId
|
|
355880
|
+
}), (tools) => tools.find((tool) => tool.path === input.path) ?? null)
|
|
355417
355881
|
});
|
|
355418
355882
|
}));
|
|
355419
355883
|
|
|
@@ -355707,11 +356171,11 @@ var createLiveExecutionManager = () => {
|
|
|
355707
356171
|
}),
|
|
355708
356172
|
resolveInteraction: ({ executionId, response }) => gen2(function* () {
|
|
355709
356173
|
const run10 = runs.get(executionId);
|
|
355710
|
-
const
|
|
355711
|
-
if (!
|
|
356174
|
+
const pending3 = run10?.currentInteraction;
|
|
356175
|
+
if (!pending3) {
|
|
355712
356176
|
return false;
|
|
355713
356177
|
}
|
|
355714
|
-
yield* succeed2(
|
|
356178
|
+
yield* succeed2(pending3.response, response);
|
|
355715
356179
|
return true;
|
|
355716
356180
|
}),
|
|
355717
356181
|
finishRun: ({ executionId, state }) => publishState({ executionId, state }).pipe(zipRight3(clearMcpConnectionPoolRun(executionId)), ensuring2(sync3(() => {
|
|
@@ -356180,10 +356644,10 @@ var drainJobs = (context7, runtime5, deadlineMs, timeoutMs) => {
|
|
|
356180
356644
|
if (Date.now() >= deadlineMs) {
|
|
356181
356645
|
throw new Error(timeoutMessage(timeoutMs));
|
|
356182
356646
|
}
|
|
356183
|
-
const
|
|
356184
|
-
if (
|
|
356185
|
-
const error51 = context7.dump(
|
|
356186
|
-
|
|
356647
|
+
const pending3 = runtime5.executePendingJobs();
|
|
356648
|
+
if (pending3.error) {
|
|
356649
|
+
const error51 = context7.dump(pending3.error);
|
|
356650
|
+
pending3.error.dispose();
|
|
356187
356651
|
throw toError3(error51);
|
|
356188
356652
|
}
|
|
356189
356653
|
}
|
|
@@ -356533,7 +356997,7 @@ var deriveSchemaTypeSignature = (schema, maxLength2) => {
|
|
|
356533
356997
|
};
|
|
356534
356998
|
var deriveSchemaJson = (schema) => {
|
|
356535
356999
|
try {
|
|
356536
|
-
return asRecord10(
|
|
357000
|
+
return asRecord10(make73(schema));
|
|
356537
357001
|
} catch {
|
|
356538
357002
|
return null;
|
|
356539
357003
|
}
|
|
@@ -357330,10 +357794,46 @@ var hasSubstringMatch = (value7, queryToken) => {
|
|
|
357330
357794
|
return singular !== queryToken && value7.includes(singular);
|
|
357331
357795
|
};
|
|
357332
357796
|
var queryTokenWeight = (token) => LOW_SIGNAL_QUERY_TOKENS.has(token) ? 0.25 : 1;
|
|
357333
|
-
var
|
|
357797
|
+
var namespaceFromPath2 = (path4) => {
|
|
357798
|
+
const [first3, second] = path4.split(".");
|
|
357799
|
+
return second ? `${first3}.${second}` : first3;
|
|
357800
|
+
};
|
|
357801
|
+
var sortNamespaces = (namespaces) => [...namespaces].sort((left3, right3) => left3.namespace.localeCompare(right3.namespace));
|
|
357802
|
+
var loadWorkspaceCatalogNamespaces = (input) => gen2(function* () {
|
|
357803
|
+
const catalogs = yield* input.sourceCatalogStore.loadWorkspaceSourceCatalogs({
|
|
357804
|
+
scopeId: input.scopeId,
|
|
357805
|
+
actorScopeId: input.actorScopeId
|
|
357806
|
+
});
|
|
357807
|
+
const namespaces = new Map;
|
|
357808
|
+
for (const catalog6 of catalogs) {
|
|
357809
|
+
if (!catalog6.source.enabled || catalog6.source.status !== "connected") {
|
|
357810
|
+
continue;
|
|
357811
|
+
}
|
|
357812
|
+
for (const descriptor2 of Object.values(catalog6.projected.toolDescriptors)) {
|
|
357813
|
+
const namespace = namespaceFromPath2(descriptor2.toolPath.join("."));
|
|
357814
|
+
const existing = namespaces.get(namespace);
|
|
357815
|
+
namespaces.set(namespace, {
|
|
357816
|
+
namespace,
|
|
357817
|
+
toolCount: (existing?.toolCount ?? 0) + 1
|
|
357818
|
+
});
|
|
357819
|
+
}
|
|
357820
|
+
}
|
|
357821
|
+
return sortNamespaces(namespaces.values());
|
|
357822
|
+
});
|
|
357823
|
+
var loadWorkspaceCatalogTools = (input) => input.includeSchemas ? gen2(function* () {
|
|
357824
|
+
const catalogs = yield* input.sourceCatalogStore.loadWorkspaceSourceCatalogs({
|
|
357825
|
+
scopeId: input.scopeId,
|
|
357826
|
+
actorScopeId: input.actorScopeId
|
|
357827
|
+
});
|
|
357828
|
+
const tools = yield* expandCatalogTools({
|
|
357829
|
+
catalogs,
|
|
357830
|
+
includeSchemas: true,
|
|
357831
|
+
includeTypePreviews: true
|
|
357832
|
+
});
|
|
357833
|
+
return tools.map(loadedSourceCatalogToolIndexEntryFromLoadedTool).filter((tool) => tool.source.enabled && tool.source.status === "connected");
|
|
357834
|
+
}) : map16(input.sourceCatalogStore.loadWorkspaceSourceCatalogToolIndex({
|
|
357334
357835
|
scopeId: input.scopeId,
|
|
357335
|
-
actorScopeId: input.actorScopeId
|
|
357336
|
-
includeSchemas: input.includeSchemas
|
|
357836
|
+
actorScopeId: input.actorScopeId
|
|
357337
357837
|
}), (tools) => tools.filter((tool) => tool.source.enabled && tool.source.status === "connected"));
|
|
357338
357838
|
var loadWorkspaceCatalogToolByPath = (input) => input.sourceCatalogStore.loadWorkspaceSourceCatalogToolByPath({
|
|
357339
357839
|
scopeId: input.scopeId,
|
|
@@ -357435,7 +357935,7 @@ var createScopeSourceCatalog = (input) => {
|
|
|
357435
357935
|
sourceArtifactStore: input.sourceArtifactStore
|
|
357436
357936
|
});
|
|
357437
357937
|
const provideWorkspaceStorage = (effect3) => effect3.pipe(provide2(scopeStorageLayer));
|
|
357438
|
-
const
|
|
357938
|
+
const buildSharedCatalog = (includeSchemas) => provideWorkspaceStorage(gen2(function* () {
|
|
357439
357939
|
const catalogTools = yield* loadWorkspaceCatalogTools({
|
|
357440
357940
|
scopeId: input.scopeId,
|
|
357441
357941
|
actorScopeId: input.actorScopeId,
|
|
@@ -357449,8 +357949,15 @@ var createScopeSourceCatalog = (input) => {
|
|
|
357449
357949
|
}))
|
|
357450
357950
|
});
|
|
357451
357951
|
}));
|
|
357952
|
+
const leanSharedCatalog = runSync(cached3(buildSharedCatalog(false)));
|
|
357953
|
+
const schemaSharedCatalog = runSync(cached3(buildSharedCatalog(true)));
|
|
357954
|
+
const createSharedCatalog = (includeSchemas) => includeSchemas ? schemaSharedCatalog : leanSharedCatalog;
|
|
357452
357955
|
return {
|
|
357453
|
-
listNamespaces: ({ limit }) => provideRuntimeLocalScope(
|
|
357956
|
+
listNamespaces: ({ limit }) => provideRuntimeLocalScope(provideWorkspaceStorage(map16(loadWorkspaceCatalogNamespaces({
|
|
357957
|
+
scopeId: input.scopeId,
|
|
357958
|
+
actorScopeId: input.actorScopeId,
|
|
357959
|
+
sourceCatalogStore: input.sourceCatalogStore
|
|
357960
|
+
}), (namespaces) => namespaces.slice(0, limit))), input.runtimeLocalScope),
|
|
357454
357961
|
listTools: ({ namespace, query, limit, includeSchemas = false }) => provideRuntimeLocalScope(flatMap10(createSharedCatalog(includeSchemas), (catalog6) => catalog6.listTools({
|
|
357455
357962
|
...namespace !== undefined ? { namespace } : {},
|
|
357456
357963
|
...query !== undefined ? { query } : {},
|
|
@@ -360814,6 +361321,13 @@ var toRuntimeBootstrapError = (cause2) => {
|
|
|
360814
361321
|
const details = detailsFromCause(cause2);
|
|
360815
361322
|
return new Error(`Failed initializing runtime: ${details}`);
|
|
360816
361323
|
};
|
|
361324
|
+
var prewarmWorkspaceSourceCatalogToolIndex = (input) => gen2(function* () {
|
|
361325
|
+
const sourceCatalogStore = yield* RuntimeSourceCatalogStoreService;
|
|
361326
|
+
yield* sourceCatalogStore.loadWorkspaceSourceCatalogToolIndex({
|
|
361327
|
+
scopeId: input.scopeId,
|
|
361328
|
+
actorScopeId: input.actorScopeId
|
|
361329
|
+
});
|
|
361330
|
+
});
|
|
360817
361331
|
var emptyToolRuntime = () => {
|
|
360818
361332
|
const tools = {};
|
|
360819
361333
|
return {
|
|
@@ -360920,12 +361434,16 @@ var createExecutorRuntimeFromServices = (input) => gen2(function* () {
|
|
|
360920
361434
|
localScopeState: runtimeLocalScopeState,
|
|
360921
361435
|
liveExecutionManager
|
|
360922
361436
|
});
|
|
360923
|
-
const managedRuntime =
|
|
361437
|
+
const managedRuntime = make87(concreteRuntimeLayer);
|
|
360924
361438
|
yield* managedRuntime.runtimeEffect;
|
|
360925
361439
|
yield* reconcileMissingSourceCatalogArtifacts({
|
|
360926
361440
|
scopeId: localInstallation.scopeId,
|
|
360927
361441
|
actorScopeId: localInstallation.actorScopeId
|
|
360928
361442
|
}).pipe(provide2(managedRuntime), catchAll2(() => _void));
|
|
361443
|
+
yield* prewarmWorkspaceSourceCatalogToolIndex({
|
|
361444
|
+
scopeId: localInstallation.scopeId,
|
|
361445
|
+
actorScopeId: localInstallation.actorScopeId
|
|
361446
|
+
}).pipe(provide2(managedRuntime), catchAll2(() => _void));
|
|
360929
361447
|
return {
|
|
360930
361448
|
storage: input.services.storage,
|
|
360931
361449
|
localInstallation,
|
|
@@ -368329,11 +368847,15 @@ var supportsManagedElicitation = (server2) => {
|
|
|
368329
368847
|
return Boolean(capabilities?.elicitation?.form) && Boolean(capabilities?.elicitation?.url);
|
|
368330
368848
|
};
|
|
368331
368849
|
var interactionModeForServer = (server2) => supportsManagedElicitation(server2) ? "live_form" : "detach";
|
|
368332
|
-
var
|
|
368850
|
+
var executeDescriptionToolsPerSource = 5;
|
|
368851
|
+
var buildExecuteWorkflowText = (sourceToolExamples = []) => [
|
|
368333
368852
|
"Execute TypeScript in sandbox; call tools via discovery workflow.",
|
|
368334
|
-
...
|
|
368335
|
-
"Available
|
|
368336
|
-
...
|
|
368853
|
+
...sourceToolExamples.length > 0 ? [
|
|
368854
|
+
"Available source tool examples:",
|
|
368855
|
+
...sourceToolExamples.flatMap((source2) => [
|
|
368856
|
+
`${source2.sourceName}:`,
|
|
368857
|
+
...source2.toolPaths.map((toolPath) => `- ${toolPath}`)
|
|
368858
|
+
])
|
|
368337
368859
|
] : [],
|
|
368338
368860
|
"Workflow:",
|
|
368339
368861
|
'1) const matches = await tools.discover({ query: "<intent>", limit: 12 });',
|
|
@@ -368347,18 +368869,19 @@ var buildExecuteWorkflowText = (namespaces = []) => [
|
|
|
368347
368869
|
`);
|
|
368348
368870
|
var defaultExecuteDescription = buildExecuteWorkflowText();
|
|
368349
368871
|
var loadExecuteDescription = (runtime6) => runControlPlane(runtime6, gen2(function* () {
|
|
368350
|
-
const
|
|
368351
|
-
const
|
|
368872
|
+
const sourceCatalogStore = yield* RuntimeSourceCatalogStoreService;
|
|
368873
|
+
const catalogs = yield* sourceCatalogStore.loadWorkspaceSourceCatalogs({
|
|
368352
368874
|
scopeId: runtime6.localInstallation.scopeId,
|
|
368353
|
-
actorScopeId: runtime6.localInstallation.actorScopeId
|
|
368354
|
-
executionId: ExecutionIdSchema.make("exec_mcp_help")
|
|
368875
|
+
actorScopeId: runtime6.localInstallation.actorScopeId
|
|
368355
368876
|
});
|
|
368356
|
-
const
|
|
368357
|
-
|
|
368877
|
+
const sourceToolExamples = catalogs.filter((catalog6) => catalog6.source.enabled && catalog6.source.status === "connected").map((catalog6) => ({
|
|
368878
|
+
sourceName: catalog6.source.name,
|
|
368879
|
+
toolPaths: Object.values(catalog6.projected.toolDescriptors).map((descriptor2) => descriptor2.toolPath.join(".")).filter((toolPath) => toolPath.length > 0).sort((left3, right3) => left3.localeCompare(right3)).slice(0, executeDescriptionToolsPerSource)
|
|
368880
|
+
})).filter((catalog6) => catalog6.toolPaths.length > 0);
|
|
368881
|
+
if (sourceToolExamples.length === 0) {
|
|
368358
368882
|
return defaultExecuteDescription;
|
|
368359
368883
|
}
|
|
368360
|
-
|
|
368361
|
-
return buildExecuteWorkflowText(namespaces);
|
|
368884
|
+
return buildExecuteWorkflowText(sourceToolExamples);
|
|
368362
368885
|
}).pipe(catchAll2(() => succeed8(defaultExecuteDescription))));
|
|
368363
368886
|
var summarizeExecution = (execution2) => {
|
|
368364
368887
|
switch (execution2.status) {
|
|
@@ -368444,11 +368967,11 @@ var waitForInteractionProgress = async (input) => {
|
|
|
368444
368967
|
var driveExecutionWithElicitation = async (input) => {
|
|
368445
368968
|
let current = input.envelope;
|
|
368446
368969
|
while (current.execution.status === "waiting_for_interaction") {
|
|
368447
|
-
const
|
|
368448
|
-
if (
|
|
368970
|
+
const pending3 = current.pendingInteraction;
|
|
368971
|
+
if (pending3 === null) {
|
|
368449
368972
|
return current;
|
|
368450
368973
|
}
|
|
368451
|
-
const parsed = parseInteractionPayload(
|
|
368974
|
+
const parsed = parseInteractionPayload(pending3);
|
|
368452
368975
|
if (!parsed) {
|
|
368453
368976
|
return current;
|
|
368454
368977
|
}
|
|
@@ -368476,7 +368999,7 @@ var driveExecutionWithElicitation = async (input) => {
|
|
|
368476
368999
|
mode: "url",
|
|
368477
369000
|
message: parsed.message,
|
|
368478
369001
|
url: parsed.url ?? "",
|
|
368479
|
-
elicitationId: parsed.elicitationId ??
|
|
369002
|
+
elicitationId: parsed.elicitationId ?? pending3.id
|
|
368480
369003
|
});
|
|
368481
369004
|
if (response.action !== "accept") {
|
|
368482
369005
|
current = await runControlPlane(input.runtime, resumeExecution({
|
|
@@ -368494,7 +369017,7 @@ var driveExecutionWithElicitation = async (input) => {
|
|
|
368494
369017
|
runtime: input.runtime,
|
|
368495
369018
|
scopeId: input.scopeId,
|
|
368496
369019
|
executionId: current.execution.id,
|
|
368497
|
-
pendingInteractionId:
|
|
369020
|
+
pendingInteractionId: pending3.id
|
|
368498
369021
|
});
|
|
368499
369022
|
}
|
|
368500
369023
|
return current;
|
|
@@ -368506,8 +369029,8 @@ var driveExecutionWithoutElicitation = async (input) => {
|
|
|
368506
369029
|
}));
|
|
368507
369030
|
let response = input.initialResponse;
|
|
368508
369031
|
while (current.execution.status === "waiting_for_interaction") {
|
|
368509
|
-
const
|
|
368510
|
-
if (
|
|
369032
|
+
const pending3 = current.pendingInteraction;
|
|
369033
|
+
if (pending3 === null || response === undefined) {
|
|
368511
369034
|
return current;
|
|
368512
369035
|
}
|
|
368513
369036
|
current = await runControlPlane(input.runtime, resumeExecution({
|
|
@@ -368883,11 +369406,11 @@ var layerFromEnv = (additionalAttributes) => effect(Resource, gen2(function* ()
|
|
|
368883
369406
|
// node_modules/@effect/opentelemetry/dist/esm/Logger.js
|
|
368884
369407
|
class OtelLoggerProvider extends (/* @__PURE__ */ Tag2("@effect/opentelemetry/Logger/OtelLoggerProvider")()) {
|
|
368885
369408
|
}
|
|
368886
|
-
var
|
|
369409
|
+
var make88 = /* @__PURE__ */ gen2(function* () {
|
|
368887
369410
|
const loggerProvider = yield* OtelLoggerProvider;
|
|
368888
369411
|
const clock3 = yield* clock2;
|
|
368889
369412
|
const otelLogger = loggerProvider.getLogger("@effect/opentelemetry");
|
|
368890
|
-
return
|
|
369413
|
+
return make77((options9) => {
|
|
368891
369414
|
const now2 = options9.date.getTime();
|
|
368892
369415
|
const attributes = {
|
|
368893
369416
|
fiberId: threadName2(options9.fiberId)
|
|
@@ -368914,7 +369437,7 @@ var make86 = /* @__PURE__ */ gen2(function* () {
|
|
|
368914
369437
|
});
|
|
368915
369438
|
});
|
|
368916
369439
|
});
|
|
368917
|
-
var layerLoggerAdd = /* @__PURE__ */ addEffect(
|
|
369440
|
+
var layerLoggerAdd = /* @__PURE__ */ addEffect(make88);
|
|
368918
369441
|
var layerLoggerProvider = (processor, config3) => scoped3(OtelLoggerProvider, flatMap10(Resource, (resource) => acquireRelease2(sync3(() => new Otel.LoggerProvider({
|
|
368919
369442
|
...config3 ?? undefined,
|
|
368920
369443
|
processors: ensure(processor),
|
|
@@ -368995,15 +369518,15 @@ class MetricProducerImpl {
|
|
|
368995
369518
|
});
|
|
368996
369519
|
}
|
|
368997
369520
|
} else if (isHistogramState2(metricState)) {
|
|
368998
|
-
const
|
|
369521
|
+
const size14 = metricState.buckets.length;
|
|
368999
369522
|
const buckets = {
|
|
369000
|
-
boundaries: allocate(
|
|
369001
|
-
counts: allocate(
|
|
369523
|
+
boundaries: allocate(size14 - 1),
|
|
369524
|
+
counts: allocate(size14)
|
|
369002
369525
|
};
|
|
369003
369526
|
let i5 = 0;
|
|
369004
369527
|
let prev = 0;
|
|
369005
369528
|
for (const [boundary, value7] of metricState.buckets) {
|
|
369006
|
-
if (i5 <
|
|
369529
|
+
if (i5 < size14 - 1) {
|
|
369007
369530
|
buckets.boundaries[i5] = boundary;
|
|
369008
369531
|
}
|
|
369009
369532
|
buckets.counts[i5] = value7 - prev;
|
|
@@ -369308,7 +369831,7 @@ class OtelSpan {
|
|
|
369308
369831
|
}
|
|
369309
369832
|
var TracerProvider = /* @__PURE__ */ GenericTag("@effect/opentelemetry/Tracer/OtelTracerProvider");
|
|
369310
369833
|
var Tracer = /* @__PURE__ */ GenericTag("@effect/opentelemetry/Tracer/OtelTracer");
|
|
369311
|
-
var
|
|
369834
|
+
var make89 = /* @__PURE__ */ map16(Tracer, (tracer3) => make26({
|
|
369312
369835
|
span(name, parent, context8, links, startTime, kind, options9) {
|
|
369313
369836
|
return new OtelSpan(OtelApi.context, OtelApi.trace, tracer3, name, parent, context8, links.slice(), startTime, kind, options9);
|
|
369314
369837
|
},
|
|
@@ -369323,7 +369846,7 @@ var make87 = /* @__PURE__ */ map16(Tracer, (tracer3) => make26({
|
|
|
369323
369846
|
var traceFlagsTag = /* @__PURE__ */ GenericTag("@effect/opentelemetry/Tracer/OtelTraceFlags");
|
|
369324
369847
|
var traceStateTag = /* @__PURE__ */ GenericTag("@effect/opentelemetry/Tracer/OtelTraceState");
|
|
369325
369848
|
var layerTracer = /* @__PURE__ */ effect(Tracer, /* @__PURE__ */ flatMap10(/* @__PURE__ */ zip5(Resource, TracerProvider), ([resource, provider]) => sync3(() => provider.getTracer(resource.attributes[OtelSemConv2.ATTR_SERVICE_NAME], resource.attributes[OtelSemConv2.ATTR_SERVICE_VERSION]))));
|
|
369326
|
-
var layerWithoutOtelTracer = /* @__PURE__ */ unwrapEffect2(/* @__PURE__ */ map16(
|
|
369849
|
+
var layerWithoutOtelTracer = /* @__PURE__ */ unwrapEffect2(/* @__PURE__ */ map16(make89, setTracer2));
|
|
369327
369850
|
var layer14 = /* @__PURE__ */ layerWithoutOtelTracer.pipe(/* @__PURE__ */ provideMerge2(layerTracer));
|
|
369328
369851
|
var populateContext = (otelContext, span3, context8) => span3 instanceof OtelSpan ? OtelApi.trace.setSpan(otelContext, span3.span) : OtelApi.trace.setSpanContext(otelContext, makeSpanContext(span3, context8));
|
|
369329
369852
|
var makeSpanContext = (span3, context8) => ({
|
|
@@ -369501,8 +370024,8 @@ var writeNodeResponse = async (nodeResponse, webResponse) => {
|
|
|
369501
370024
|
}
|
|
369502
370025
|
const reader = webResponse.body.getReader();
|
|
369503
370026
|
while (true) {
|
|
369504
|
-
const { done:
|
|
369505
|
-
if (
|
|
370027
|
+
const { done: done9, value: value7 } = await reader.read();
|
|
370028
|
+
if (done9) {
|
|
369506
370029
|
break;
|
|
369507
370030
|
}
|
|
369508
370031
|
nodeResponse.write(Buffer.from(value7));
|
|
@@ -370689,11 +371212,11 @@ var seedGithubOpenApiSource = (input) => gen2(function* () {
|
|
|
370689
371212
|
var driveExecution = (input) => gen2(function* () {
|
|
370690
371213
|
let current = input.envelope;
|
|
370691
371214
|
while (current.execution.status === "waiting_for_interaction") {
|
|
370692
|
-
const
|
|
370693
|
-
if (
|
|
371215
|
+
const pending3 = current.pendingInteraction;
|
|
371216
|
+
if (pending3 === null) {
|
|
370694
371217
|
return current;
|
|
370695
371218
|
}
|
|
370696
|
-
const parsed = parseInteractionPayload2(
|
|
371219
|
+
const parsed = parseInteractionPayload2(pending3);
|
|
370697
371220
|
const handling = decideInteractionHandling({
|
|
370698
371221
|
parsed,
|
|
370699
371222
|
isInteractiveTerminal: process.stdin.isTTY && process.stdout.isTTY
|
|
@@ -370708,7 +371231,7 @@ var driveExecution = (input) => gen2(function* () {
|
|
|
370708
371231
|
client: input.client,
|
|
370709
371232
|
workspaceId: input.workspaceId,
|
|
370710
371233
|
executionId: current.execution.id,
|
|
370711
|
-
pendingInteractionId:
|
|
371234
|
+
pendingInteractionId: pending3.id
|
|
370712
371235
|
});
|
|
370713
371236
|
continue;
|
|
370714
371237
|
}
|
|
@@ -370718,7 +371241,7 @@ var driveExecution = (input) => gen2(function* () {
|
|
|
370718
371241
|
}
|
|
370719
371242
|
const paused = buildPausedExecutionOutput({
|
|
370720
371243
|
executionId: current.execution.id,
|
|
370721
|
-
interaction:
|
|
371244
|
+
interaction: pending3,
|
|
370722
371245
|
baseUrl: input.baseUrl,
|
|
370723
371246
|
shouldOpenUrls: input.shouldOpenUrls,
|
|
370724
371247
|
cliName: CLI_NAME
|
|
@@ -370732,7 +371255,7 @@ var driveExecution = (input) => gen2(function* () {
|
|
|
370732
371255
|
if (handling === "form_paused") {
|
|
370733
371256
|
const paused = buildPausedExecutionOutput({
|
|
370734
371257
|
executionId: current.execution.id,
|
|
370735
|
-
interaction:
|
|
371258
|
+
interaction: pending3,
|
|
370736
371259
|
baseUrl: input.baseUrl,
|
|
370737
371260
|
shouldOpenUrls: input.shouldOpenUrls,
|
|
370738
371261
|
cliName: CLI_NAME
|
|
@@ -370744,13 +371267,13 @@ var driveExecution = (input) => gen2(function* () {
|
|
|
370744
371267
|
return current;
|
|
370745
371268
|
}
|
|
370746
371269
|
const responseJson = yield* promptInteraction({
|
|
370747
|
-
interaction:
|
|
371270
|
+
interaction: pending3,
|
|
370748
371271
|
shouldOpenUrls: input.shouldOpenUrls
|
|
370749
371272
|
});
|
|
370750
371273
|
if (responseJson === null) {
|
|
370751
371274
|
const paused = buildPausedExecutionOutput({
|
|
370752
371275
|
executionId: current.execution.id,
|
|
370753
|
-
interaction:
|
|
371276
|
+
interaction: pending3,
|
|
370754
371277
|
baseUrl: input.baseUrl,
|
|
370755
371278
|
shouldOpenUrls: input.shouldOpenUrls,
|
|
370756
371279
|
cliName: CLI_NAME
|