@cortexkit/pi-magic-context 0.29.1 → 0.30.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1084 -848
- package/dist/subagent-entry.js +1127 -892
- package/package.json +9 -9
package/dist/index.js
CHANGED
|
@@ -13887,7 +13887,7 @@ var require_src = __commonJS((exports, module) => {
|
|
|
13887
13887
|
};
|
|
13888
13888
|
});
|
|
13889
13889
|
|
|
13890
|
-
// ../../node_modules/.bun/comment-json@
|
|
13890
|
+
// ../../node_modules/.bun/comment-json@5.0.0/node_modules/comment-json/src/common.js
|
|
13891
13891
|
var require_common = __commonJS((exports, module) => {
|
|
13892
13892
|
var PREFIX_BEFORE = "before";
|
|
13893
13893
|
var PREFIX_AFTER_PROP = "after-prop";
|
|
@@ -13919,8 +13919,6 @@ var require_common = __commonJS((exports, module) => {
|
|
|
13919
13919
|
var NON_PROP_SYMBOL_KEYS = NON_PROP_SYMBOL_PREFIXES.map(Symbol.for);
|
|
13920
13920
|
var COLON = ":";
|
|
13921
13921
|
var UNDEFINED = undefined;
|
|
13922
|
-
var LINE_BREAKS_BEFORE = new WeakMap;
|
|
13923
|
-
var LINE_BREAKS_AFTER = new WeakMap;
|
|
13924
13922
|
var RAW_STRING_LITERALS = new WeakMap;
|
|
13925
13923
|
var is_string = (subject) => typeof subject === "string";
|
|
13926
13924
|
var is_number = (subject) => typeof subject === "number";
|
|
@@ -14023,17 +14021,49 @@ var require_common = __commonJS((exports, module) => {
|
|
|
14023
14021
|
});
|
|
14024
14022
|
return target;
|
|
14025
14023
|
};
|
|
14026
|
-
var
|
|
14027
|
-
|
|
14028
|
-
|
|
14029
|
-
|
|
14024
|
+
var is_comment_symbol = (subject) => {
|
|
14025
|
+
const key = Symbol.keyFor(subject);
|
|
14026
|
+
return is_string(key) && (NON_PROP_SYMBOL_PREFIXES.includes(key) || PROP_SYMBOL_PREFIXES.some((prefix) => key.indexOf(prefix + COLON) === 0));
|
|
14027
|
+
};
|
|
14028
|
+
var remove_blank_line_tokens = (comments) => {
|
|
14029
|
+
let write = 0;
|
|
14030
|
+
let removed = false;
|
|
14031
|
+
comments.forEach((comment) => {
|
|
14032
|
+
if (comment && comment.type === "BlankLine") {
|
|
14033
|
+
removed = true;
|
|
14034
|
+
return;
|
|
14035
|
+
}
|
|
14036
|
+
comments[write++] = comment;
|
|
14037
|
+
});
|
|
14038
|
+
comments.length = write;
|
|
14039
|
+
return removed;
|
|
14040
|
+
};
|
|
14041
|
+
var remove_blank_lines_from_prop = (target, prop) => {
|
|
14042
|
+
if (!Object.hasOwn(target, prop)) {
|
|
14043
|
+
return;
|
|
14030
14044
|
}
|
|
14031
|
-
|
|
14032
|
-
|
|
14045
|
+
const comments = target[prop];
|
|
14046
|
+
if (!Array.isArray(comments) || !remove_blank_line_tokens(comments)) {
|
|
14047
|
+
return;
|
|
14048
|
+
}
|
|
14049
|
+
if (!comments.length) {
|
|
14050
|
+
delete target[prop];
|
|
14033
14051
|
}
|
|
14034
14052
|
};
|
|
14035
|
-
var
|
|
14036
|
-
|
|
14053
|
+
var remove_blank_lines_deep = (target) => {
|
|
14054
|
+
Object.getOwnPropertySymbols(target).forEach((prop) => {
|
|
14055
|
+
if (is_comment_symbol(prop)) {
|
|
14056
|
+
remove_blank_lines_from_prop(target, prop);
|
|
14057
|
+
}
|
|
14058
|
+
});
|
|
14059
|
+
Object.keys(target).forEach((key) => {
|
|
14060
|
+
const value = target[key];
|
|
14061
|
+
if (is_object(value)) {
|
|
14062
|
+
remove_blank_lines_deep(value);
|
|
14063
|
+
}
|
|
14064
|
+
});
|
|
14065
|
+
};
|
|
14066
|
+
var is_raw_json = typeof JSON.isRawJSON === "function" ? JSON.isRawJSON : () => false;
|
|
14037
14067
|
module.exports = {
|
|
14038
14068
|
PROP_SYMBOL_PREFIXES,
|
|
14039
14069
|
PREFIX_BEFORE,
|
|
@@ -14063,9 +14093,6 @@ var require_common = __commonJS((exports, module) => {
|
|
|
14063
14093
|
is_raw_json,
|
|
14064
14094
|
set_raw_string_literal,
|
|
14065
14095
|
get_raw_string_literal,
|
|
14066
|
-
set_comment_line_breaks,
|
|
14067
|
-
get_comment_line_breaks_before,
|
|
14068
|
-
get_comment_line_breaks_after,
|
|
14069
14096
|
assign(target, source, keys) {
|
|
14070
14097
|
if (!is_object(target)) {
|
|
14071
14098
|
throw new TypeError("Cannot convert undefined or null to object");
|
|
@@ -14127,11 +14154,26 @@ var require_common = __commonJS((exports, module) => {
|
|
|
14127
14154
|
return;
|
|
14128
14155
|
}
|
|
14129
14156
|
delete target[prop];
|
|
14157
|
+
},
|
|
14158
|
+
removeBlankLines(target, location) {
|
|
14159
|
+
if (!is_object(target)) {
|
|
14160
|
+
throw new TypeError("target must be an object");
|
|
14161
|
+
}
|
|
14162
|
+
if (location === UNDEFINED) {
|
|
14163
|
+
remove_blank_lines_deep(target);
|
|
14164
|
+
return;
|
|
14165
|
+
}
|
|
14166
|
+
const {
|
|
14167
|
+
where,
|
|
14168
|
+
key
|
|
14169
|
+
} = location;
|
|
14170
|
+
const prop = symbol_checked(where, key);
|
|
14171
|
+
remove_blank_lines_from_prop(target, prop);
|
|
14130
14172
|
}
|
|
14131
14173
|
};
|
|
14132
14174
|
});
|
|
14133
14175
|
|
|
14134
|
-
// ../../node_modules/.bun/comment-json@
|
|
14176
|
+
// ../../node_modules/.bun/comment-json@5.0.0/node_modules/comment-json/src/array.js
|
|
14135
14177
|
var require_array = __commonJS((exports, module) => {
|
|
14136
14178
|
var { sort } = require_src();
|
|
14137
14179
|
var {
|
|
@@ -14289,7 +14331,7 @@ var require_array = __commonJS((exports, module) => {
|
|
|
14289
14331
|
};
|
|
14290
14332
|
});
|
|
14291
14333
|
|
|
14292
|
-
// ../../node_modules/.bun/comment-json@
|
|
14334
|
+
// ../../node_modules/.bun/comment-json@5.0.0/node_modules/comment-json/src/parse.js
|
|
14293
14335
|
var require_parse = __commonJS((exports, module) => {
|
|
14294
14336
|
var esprima = require_esprima();
|
|
14295
14337
|
var {
|
|
@@ -14315,7 +14357,6 @@ var require_parse = __commonJS((exports, module) => {
|
|
|
14315
14357
|
is_object,
|
|
14316
14358
|
define: define2,
|
|
14317
14359
|
set_raw_string_literal,
|
|
14318
|
-
set_comment_line_breaks,
|
|
14319
14360
|
assign_non_prop_comments
|
|
14320
14361
|
} = require_common();
|
|
14321
14362
|
var tokenize = (code) => esprima.tokenize(code, {
|
|
@@ -14329,23 +14370,27 @@ var require_parse = __commonJS((exports, module) => {
|
|
|
14329
14370
|
var previous_props = [];
|
|
14330
14371
|
var last_prop;
|
|
14331
14372
|
var remove_comments = false;
|
|
14373
|
+
var remove_blank_lines = false;
|
|
14332
14374
|
var inline = false;
|
|
14333
14375
|
var tokens = null;
|
|
14334
14376
|
var last = null;
|
|
14335
14377
|
var current = null;
|
|
14336
14378
|
var index;
|
|
14337
14379
|
var reviver = null;
|
|
14380
|
+
var source_line_count = 0;
|
|
14338
14381
|
var clean = () => {
|
|
14339
14382
|
current_code = UNDEFINED;
|
|
14340
14383
|
previous_props.length = previous_hosts.length = 0;
|
|
14341
14384
|
last = null;
|
|
14342
14385
|
last_prop = UNDEFINED;
|
|
14386
|
+
remove_blank_lines = false;
|
|
14343
14387
|
};
|
|
14344
14388
|
var free = () => {
|
|
14345
14389
|
clean();
|
|
14346
14390
|
tokens.length = 0;
|
|
14347
14391
|
unassigned_comments = comments_host = tokens = last = current = reviver = null;
|
|
14348
14392
|
current_code = UNDEFINED;
|
|
14393
|
+
source_line_count = 0;
|
|
14349
14394
|
};
|
|
14350
14395
|
var symbolFor = (prefix) => Symbol.for(last_prop !== UNDEFINED ? prefix + COLON + last_prop : prefix);
|
|
14351
14396
|
var transform2 = (k, { value, context = {} }) => reviver ? reviver(k, value, context) : value;
|
|
@@ -14389,6 +14434,37 @@ var require_parse = __commonJS((exports, module) => {
|
|
|
14389
14434
|
var restore_comments_host = () => {
|
|
14390
14435
|
comments_host = previous_hosts.pop();
|
|
14391
14436
|
};
|
|
14437
|
+
var create_blank_line = () => ({
|
|
14438
|
+
type: "BlankLine",
|
|
14439
|
+
inline: false
|
|
14440
|
+
});
|
|
14441
|
+
var append_blank_lines = (comments, from_line, to_line) => {
|
|
14442
|
+
if (remove_blank_lines) {
|
|
14443
|
+
return;
|
|
14444
|
+
}
|
|
14445
|
+
let blank_lines = Math.max(0, to_line - from_line - 1);
|
|
14446
|
+
while (blank_lines-- > 0) {
|
|
14447
|
+
comments.push(create_blank_line());
|
|
14448
|
+
}
|
|
14449
|
+
};
|
|
14450
|
+
var normalize_parse_options = (options) => {
|
|
14451
|
+
if (typeof options === "boolean") {
|
|
14452
|
+
return {
|
|
14453
|
+
no_comments: options,
|
|
14454
|
+
no_blank_lines: false
|
|
14455
|
+
};
|
|
14456
|
+
}
|
|
14457
|
+
if (!is_object(options)) {
|
|
14458
|
+
return {
|
|
14459
|
+
no_comments: false,
|
|
14460
|
+
no_blank_lines: false
|
|
14461
|
+
};
|
|
14462
|
+
}
|
|
14463
|
+
return {
|
|
14464
|
+
no_comments: !!options.no_comments,
|
|
14465
|
+
no_blank_lines: !!options.no_blank_lines
|
|
14466
|
+
};
|
|
14467
|
+
};
|
|
14392
14468
|
var assign_after_comments = () => {
|
|
14393
14469
|
if (!unassigned_comments) {
|
|
14394
14470
|
return;
|
|
@@ -14421,26 +14497,26 @@ var require_parse = __commonJS((exports, module) => {
|
|
|
14421
14497
|
};
|
|
14422
14498
|
var parse_comments = (prefix) => {
|
|
14423
14499
|
const comments = [];
|
|
14500
|
+
let previous_line = last ? last.loc.end.line : 0;
|
|
14424
14501
|
while (current && (is("LineComment") || is("BlockComment"))) {
|
|
14502
|
+
append_blank_lines(comments, previous_line, current.loc.start.line);
|
|
14425
14503
|
const comment = {
|
|
14426
14504
|
...current,
|
|
14427
14505
|
inline
|
|
14428
14506
|
};
|
|
14429
|
-
const previous_line = last ? last.loc.end.line : 1;
|
|
14430
|
-
set_comment_line_breaks(comment, Math.max(0, comment.loc.start.line - previous_line));
|
|
14431
14507
|
comments.push(comment);
|
|
14508
|
+
previous_line = comment.loc.end.line;
|
|
14432
14509
|
next();
|
|
14433
14510
|
}
|
|
14434
|
-
|
|
14435
|
-
if (length) {
|
|
14436
|
-
const comment = comments[length - 1];
|
|
14437
|
-
const current_line = current ? current.loc.start.line : comment.loc.end.line;
|
|
14438
|
-
set_comment_line_breaks(comment, undefined, Math.max(0, current_line - comment.loc.end.line));
|
|
14439
|
-
}
|
|
14511
|
+
append_blank_lines(comments, previous_line, current ? current.loc.start.line : source_line_count);
|
|
14440
14512
|
if (remove_comments) {
|
|
14441
|
-
|
|
14513
|
+
for (let i = comments.length - 1;i >= 0; i--) {
|
|
14514
|
+
if (comments[i].type !== "BlankLine") {
|
|
14515
|
+
comments.splice(i, 1);
|
|
14516
|
+
}
|
|
14517
|
+
}
|
|
14442
14518
|
}
|
|
14443
|
-
if (!length) {
|
|
14519
|
+
if (!comments.length) {
|
|
14444
14520
|
return;
|
|
14445
14521
|
}
|
|
14446
14522
|
if (prefix) {
|
|
@@ -14579,12 +14655,19 @@ var require_parse = __commonJS((exports, module) => {
|
|
|
14579
14655
|
return {};
|
|
14580
14656
|
}
|
|
14581
14657
|
}
|
|
14582
|
-
var parse5 = (code, rev,
|
|
14658
|
+
var parse5 = (code, rev, options) => {
|
|
14583
14659
|
clean();
|
|
14660
|
+
const {
|
|
14661
|
+
no_comments,
|
|
14662
|
+
no_blank_lines
|
|
14663
|
+
} = normalize_parse_options(options);
|
|
14584
14664
|
current_code = code;
|
|
14665
|
+
source_line_count = code.split(`
|
|
14666
|
+
`).length;
|
|
14585
14667
|
tokens = tokenize(code);
|
|
14586
14668
|
reviver = rev;
|
|
14587
14669
|
remove_comments = no_comments;
|
|
14670
|
+
remove_blank_lines = no_blank_lines;
|
|
14588
14671
|
if (!tokens.length) {
|
|
14589
14672
|
unexpected_end();
|
|
14590
14673
|
}
|
|
@@ -14614,7 +14697,7 @@ var require_parse = __commonJS((exports, module) => {
|
|
|
14614
14697
|
};
|
|
14615
14698
|
});
|
|
14616
14699
|
|
|
14617
|
-
// ../../node_modules/.bun/comment-json@
|
|
14700
|
+
// ../../node_modules/.bun/comment-json@5.0.0/node_modules/comment-json/src/stringify.js
|
|
14618
14701
|
var require_stringify = __commonJS((exports, module) => {
|
|
14619
14702
|
var {
|
|
14620
14703
|
PREFIX_BEFORE_ALL,
|
|
@@ -14636,8 +14719,6 @@ var require_stringify = __commonJS((exports, module) => {
|
|
|
14636
14719
|
is_number,
|
|
14637
14720
|
is_object,
|
|
14638
14721
|
get_raw_string_literal,
|
|
14639
|
-
get_comment_line_breaks_before,
|
|
14640
|
-
get_comment_line_breaks_after,
|
|
14641
14722
|
is_raw_json
|
|
14642
14723
|
} = require_common();
|
|
14643
14724
|
var SPACE = " ";
|
|
@@ -14652,26 +14733,18 @@ var require_stringify = __commonJS((exports, module) => {
|
|
|
14652
14733
|
var quote = JSON.stringify;
|
|
14653
14734
|
var comment_stringify = (value, line) => line ? `//${value}` : `/*${value}*/`;
|
|
14654
14735
|
var repeat_line_breaks = (line_breaks, gap) => (LF + gap).repeat(line_breaks);
|
|
14655
|
-
var
|
|
14656
|
-
var
|
|
14657
|
-
if (!previous_comment || !previous_comment.loc || !comment.loc) {
|
|
14658
|
-
return null;
|
|
14659
|
-
}
|
|
14660
|
-
const { end } = previous_comment.loc;
|
|
14661
|
-
const { start } = comment.loc;
|
|
14662
|
-
if (!end || !start || !is_number(end.line) || !is_number(start.line)) {
|
|
14663
|
-
return null;
|
|
14664
|
-
}
|
|
14665
|
-
const line_breaks = start.line - end.line;
|
|
14666
|
-
return line_breaks >= 0 ? line_breaks : null;
|
|
14667
|
-
};
|
|
14668
|
-
var count_trailing_line_breaks = (str, gap) => {
|
|
14669
|
-
const unit = LF + gap;
|
|
14670
|
-
const { length } = unit;
|
|
14736
|
+
var is_inline_whitespace = (char) => char === SPACE || char === "\t";
|
|
14737
|
+
var count_trailing_line_breaks = (str) => {
|
|
14671
14738
|
let i = str.length;
|
|
14672
14739
|
let count = 0;
|
|
14673
|
-
while (i
|
|
14674
|
-
i
|
|
14740
|
+
while (i > 0) {
|
|
14741
|
+
while (i > 0 && is_inline_whitespace(str[i - 1])) {
|
|
14742
|
+
i--;
|
|
14743
|
+
}
|
|
14744
|
+
if (i === 0 || str[i - 1] !== LF) {
|
|
14745
|
+
return count;
|
|
14746
|
+
}
|
|
14747
|
+
i--;
|
|
14675
14748
|
count++;
|
|
14676
14749
|
}
|
|
14677
14750
|
return count;
|
|
@@ -14682,27 +14755,30 @@ var require_stringify = __commonJS((exports, module) => {
|
|
|
14682
14755
|
return EMPTY;
|
|
14683
14756
|
}
|
|
14684
14757
|
let str = EMPTY;
|
|
14758
|
+
let blank_lines = 0;
|
|
14685
14759
|
let last_comment = null;
|
|
14686
14760
|
comments.forEach((comment, i) => {
|
|
14761
|
+
if (comment.type === "BlankLine") {
|
|
14762
|
+
blank_lines++;
|
|
14763
|
+
return;
|
|
14764
|
+
}
|
|
14687
14765
|
const {
|
|
14688
14766
|
inline,
|
|
14689
14767
|
type,
|
|
14690
14768
|
value
|
|
14691
14769
|
} = comment;
|
|
14692
|
-
|
|
14693
|
-
|
|
14694
|
-
line_breaks_before = read_line_breaks_from_loc(last_comment, comment);
|
|
14695
|
-
}
|
|
14696
|
-
if (line_breaks_before === null) {
|
|
14697
|
-
line_breaks_before = inline ? 0 : 1;
|
|
14698
|
-
}
|
|
14699
|
-
const delimiter = line_breaks_before > 0 ? repeat_line_breaks(line_breaks_before, deeper_gap) : inline ? SPACE : i === 0 ? EMPTY : LF + deeper_gap;
|
|
14770
|
+
const line_breaks_before = blank_lines > 0 ? blank_lines + (inline ? 0 : 1) : null;
|
|
14771
|
+
const delimiter = line_breaks_before > 0 ? repeat_line_breaks(line_breaks_before, deeper_gap) : inline ? SPACE : i === 0 && symbol_tag === PREFIX_BEFORE_ALL && deeper_gap === EMPTY ? EMPTY : LF + deeper_gap;
|
|
14700
14772
|
const is_line_comment = type === "LineComment";
|
|
14701
14773
|
str += delimiter + comment_stringify(value, is_line_comment);
|
|
14774
|
+
blank_lines = 0;
|
|
14702
14775
|
last_comment = comment;
|
|
14703
14776
|
});
|
|
14777
|
+
if (!last_comment) {
|
|
14778
|
+
return blank_lines ? repeat_line_breaks(blank_lines + 1, deeper_gap) : EMPTY;
|
|
14779
|
+
}
|
|
14704
14780
|
const default_line_breaks_after = display_block || last_comment.type === "LineComment" ? 1 : 0;
|
|
14705
|
-
const line_breaks_after =
|
|
14781
|
+
const line_breaks_after = blank_lines > 0 ? blank_lines + 1 : default_line_breaks_after;
|
|
14706
14782
|
return str + repeat_line_breaks(line_breaks_after, deeper_gap);
|
|
14707
14783
|
};
|
|
14708
14784
|
var replacer = null;
|
|
@@ -14711,7 +14787,7 @@ var require_stringify = __commonJS((exports, module) => {
|
|
|
14711
14787
|
replacer = null;
|
|
14712
14788
|
indent = EMPTY;
|
|
14713
14789
|
};
|
|
14714
|
-
var join12 = (one, two, gap) => one ? two ? one + two.trim() + LF + gap : one.trimRight() + repeat_line_breaks(Math.max(1, count_trailing_line_breaks(one
|
|
14790
|
+
var join12 = (one, two, gap) => one ? two ? one + two.trim() + LF + gap : one.trimRight() + repeat_line_breaks(Math.max(1, count_trailing_line_breaks(one)), gap) : two ? two.trimRight() + repeat_line_breaks(Math.max(1, count_trailing_line_breaks(two)), gap) : EMPTY;
|
|
14715
14791
|
var join_content = (inside, value, gap) => {
|
|
14716
14792
|
const comment = process_comments(value, PREFIX_BEFORE, gap + indent, true);
|
|
14717
14793
|
return join12(comment, inside, gap);
|
|
@@ -14810,6 +14886,8 @@ var require_stringify = __commonJS((exports, module) => {
|
|
|
14810
14886
|
const str = toString.call(subject);
|
|
14811
14887
|
return PRIMITIVE_OBJECT_TYPES.includes(str);
|
|
14812
14888
|
};
|
|
14889
|
+
var normalize_blank_lines = (str) => typeof str === "string" ? str.replace(/\n[ \t]+(?=\n)/g, `
|
|
14890
|
+
`) : str;
|
|
14813
14891
|
module.exports = (value, replacer_, space) => {
|
|
14814
14892
|
const indent_ = get_indent(space);
|
|
14815
14893
|
if (!indent_) {
|
|
@@ -14822,11 +14900,12 @@ var require_stringify = __commonJS((exports, module) => {
|
|
|
14822
14900
|
indent = indent_;
|
|
14823
14901
|
const str = is_primitive_object(value) ? JSON.stringify(value) : stringify("", { "": value }, EMPTY);
|
|
14824
14902
|
clean();
|
|
14825
|
-
|
|
14903
|
+
const output = is_object(value) ? process_comments(value, PREFIX_BEFORE_ALL, EMPTY, true).trimLeft() + str + process_comments(value, PREFIX_AFTER_ALL, EMPTY).trimRight() : str;
|
|
14904
|
+
return normalize_blank_lines(output);
|
|
14826
14905
|
};
|
|
14827
14906
|
});
|
|
14828
14907
|
|
|
14829
|
-
// ../../node_modules/.bun/comment-json@
|
|
14908
|
+
// ../../node_modules/.bun/comment-json@5.0.0/node_modules/comment-json/src/index.js
|
|
14830
14909
|
var require_src2 = __commonJS((exports, module) => {
|
|
14831
14910
|
var { parse: parse5, tokenize } = require_parse();
|
|
14832
14911
|
var stringify = require_stringify();
|
|
@@ -14841,7 +14920,8 @@ var require_src2 = __commonJS((exports, module) => {
|
|
|
14841
14920
|
PREFIX_AFTER_ALL,
|
|
14842
14921
|
assign,
|
|
14843
14922
|
moveComments,
|
|
14844
|
-
removeComments
|
|
14923
|
+
removeComments,
|
|
14924
|
+
removeBlankLines
|
|
14845
14925
|
} = require_common();
|
|
14846
14926
|
module.exports = {
|
|
14847
14927
|
PREFIX_BEFORE,
|
|
@@ -14857,7 +14937,8 @@ var require_src2 = __commonJS((exports, module) => {
|
|
|
14857
14937
|
CommentArray,
|
|
14858
14938
|
assign,
|
|
14859
14939
|
moveComments,
|
|
14860
|
-
removeComments
|
|
14940
|
+
removeComments,
|
|
14941
|
+
removeBlankLines
|
|
14861
14942
|
};
|
|
14862
14943
|
});
|
|
14863
14944
|
|
|
@@ -156386,10 +156467,11 @@ function compareSemverCore(a, b) {
|
|
|
156386
156467
|
|
|
156387
156468
|
// ../plugin/src/shared/announcement.ts
|
|
156388
156469
|
init_data_path();
|
|
156389
|
-
var ANNOUNCEMENT_VERSION = "0.
|
|
156470
|
+
var ANNOUNCEMENT_VERSION = "0.30.0";
|
|
156390
156471
|
var ANNOUNCEMENT_FEATURES = [
|
|
156391
|
-
|
|
156392
|
-
"
|
|
156472
|
+
"Setup and doctor now recognize an OpenCode Desktop install that has no CLI on PATH, instead of reporting OpenCode as not installed (#196). Desktop-only users continue setup with manual model entry.",
|
|
156473
|
+
"TUI sidebar badge color follows your theme again (#198): it uses the theme background like sibling badges, with a fallback so the label can't disappear on transparent themes.",
|
|
156474
|
+
"doctor clears a stale plugin cache more reliably (#199): it compares against the plugin's latest published version and preserves the cache when offline."
|
|
156393
156475
|
];
|
|
156394
156476
|
var ANNOUNCEMENT_FOOTER = "Join us on Discord: https://discord.gg/F2uWxjGnU";
|
|
156395
156477
|
var STATE_FILENAME = "last_announced_version";
|
|
@@ -199718,7 +199800,7 @@ function formatThresholdPercent(value) {
|
|
|
199718
199800
|
// package.json
|
|
199719
199801
|
var package_default = {
|
|
199720
199802
|
name: "@cortexkit/pi-magic-context",
|
|
199721
|
-
version: "0.
|
|
199803
|
+
version: "0.30.0",
|
|
199722
199804
|
type: "module",
|
|
199723
199805
|
description: "Pi coding agent extension for Magic Context — cross-session memory and context management",
|
|
199724
199806
|
main: "dist/index.js",
|
|
@@ -199758,23 +199840,23 @@ var package_default = {
|
|
|
199758
199840
|
"@huggingface/transformers": "^4.1.0",
|
|
199759
199841
|
"@jitl/quickjs-singlefile-cjs-release-asyncify": "0.32.0",
|
|
199760
199842
|
"ai-tokenizer": "^1.0.6",
|
|
199761
|
-
"comment-json": "^
|
|
199843
|
+
"comment-json": "^5.0.0",
|
|
199762
199844
|
"quickjs-emscripten": "^0.32.0",
|
|
199763
|
-
typebox: "^1.1
|
|
199845
|
+
typebox: "^1.3.1",
|
|
199764
199846
|
zod: "^4.1.8"
|
|
199765
199847
|
},
|
|
199766
199848
|
devDependencies: {
|
|
199767
|
-
"@biomejs/biome": "^2.
|
|
199768
|
-
"@earendil-works/pi-coding-agent": "^0.
|
|
199769
|
-
"@earendil-works/pi-tui": "^0.
|
|
199849
|
+
"@biomejs/biome": "^2.5.1",
|
|
199850
|
+
"@earendil-works/pi-coding-agent": "^0.80.2",
|
|
199851
|
+
"@earendil-works/pi-tui": "^0.80.2",
|
|
199770
199852
|
"@types/better-sqlite3": "^7.6.13",
|
|
199771
199853
|
"@types/bun": "^1.3.10",
|
|
199772
|
-
"@types/node": "^22.
|
|
199854
|
+
"@types/node": "^22.20.0",
|
|
199773
199855
|
typescript: "^5.8.0"
|
|
199774
199856
|
},
|
|
199775
199857
|
peerDependencies: {
|
|
199776
|
-
"@earendil-works/pi-coding-agent": "^0.
|
|
199777
|
-
"@earendil-works/pi-tui": "^0.
|
|
199858
|
+
"@earendil-works/pi-coding-agent": "^0.80.2",
|
|
199859
|
+
"@earendil-works/pi-tui": "^0.80.2"
|
|
199778
199860
|
},
|
|
199779
199861
|
exports: {
|
|
199780
199862
|
".": {
|
|
@@ -200504,7 +200586,7 @@ ${partLines.join(`
|
|
|
200504
200586
|
`), lastOrdinal, truncated };
|
|
200505
200587
|
}
|
|
200506
200588
|
|
|
200507
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
200589
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/system/memory/memory.mjs
|
|
200508
200590
|
var exports_memory = {};
|
|
200509
200591
|
__export(exports_memory, {
|
|
200510
200592
|
Update: () => Update,
|
|
@@ -200515,7 +200597,7 @@ __export(exports_memory, {
|
|
|
200515
200597
|
Assign: () => Assign
|
|
200516
200598
|
});
|
|
200517
200599
|
|
|
200518
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
200600
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/system/memory/metrics.mjs
|
|
200519
200601
|
var Metrics = {
|
|
200520
200602
|
assign: 0,
|
|
200521
200603
|
create: 0,
|
|
@@ -200524,17 +200606,17 @@ var Metrics = {
|
|
|
200524
200606
|
update: 0
|
|
200525
200607
|
};
|
|
200526
200608
|
|
|
200527
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
200609
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/system/memory/assign.mjs
|
|
200528
200610
|
function Assign(left, right) {
|
|
200529
200611
|
Metrics.assign += 1;
|
|
200530
200612
|
return { ...left, ...right };
|
|
200531
200613
|
}
|
|
200532
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
200614
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/guard/guard.mjs
|
|
200533
200615
|
var exports_guard = {};
|
|
200534
200616
|
__export(exports_guard, {
|
|
200535
200617
|
Values: () => Values,
|
|
200536
|
-
TakeLeft: () => TakeLeft,
|
|
200537
200618
|
Symbols: () => Symbols,
|
|
200619
|
+
ShiftLeft: () => ShiftLeft,
|
|
200538
200620
|
Keys: () => Keys,
|
|
200539
200621
|
IsValueLike: () => IsValueLike,
|
|
200540
200622
|
IsUnsafePropertyKey: () => IsUnsafePropertyKey,
|
|
@@ -200550,7 +200632,6 @@ __export(exports_guard, {
|
|
|
200550
200632
|
IsMaxLength: () => IsMaxLength2,
|
|
200551
200633
|
IsLessThan: () => IsLessThan,
|
|
200552
200634
|
IsLessEqualThan: () => IsLessEqualThan,
|
|
200553
|
-
IsIterator: () => IsIterator,
|
|
200554
200635
|
IsInteger: () => IsInteger,
|
|
200555
200636
|
IsGreaterThan: () => IsGreaterThan,
|
|
200556
200637
|
IsGreaterEqualThan: () => IsGreaterEqualThan,
|
|
@@ -200561,7 +200642,6 @@ __export(exports_guard, {
|
|
|
200561
200642
|
IsClassInstance: () => IsClassInstance,
|
|
200562
200643
|
IsBoolean: () => IsBoolean,
|
|
200563
200644
|
IsBigInt: () => IsBigInt,
|
|
200564
|
-
IsAsyncIterator: () => IsAsyncIterator,
|
|
200565
200645
|
IsArray: () => IsArray,
|
|
200566
200646
|
HasPropertyKey: () => HasPropertyKey,
|
|
200567
200647
|
GraphemeCount: () => GraphemeCount2,
|
|
@@ -200571,7 +200651,7 @@ __export(exports_guard, {
|
|
|
200571
200651
|
Entries: () => Entries
|
|
200572
200652
|
});
|
|
200573
200653
|
|
|
200574
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
200654
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/guard/string.mjs
|
|
200575
200655
|
function IsBetween(value, min, max) {
|
|
200576
200656
|
return value >= min && value <= max;
|
|
200577
200657
|
}
|
|
@@ -200675,13 +200755,10 @@ function IsMaxLengthFast(value, maxLength) {
|
|
|
200675
200755
|
return true;
|
|
200676
200756
|
}
|
|
200677
200757
|
|
|
200678
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
200758
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/guard/guard.mjs
|
|
200679
200759
|
function IsArray(value) {
|
|
200680
200760
|
return Array.isArray(value);
|
|
200681
200761
|
}
|
|
200682
|
-
function IsAsyncIterator(value) {
|
|
200683
|
-
return IsObject(value) && Symbol.asyncIterator in value;
|
|
200684
|
-
}
|
|
200685
200762
|
function IsBigInt(value) {
|
|
200686
200763
|
return IsEqual(typeof value, "bigint");
|
|
200687
200764
|
}
|
|
@@ -200704,9 +200781,6 @@ function IsFunction(value) {
|
|
|
200704
200781
|
function IsInteger(value) {
|
|
200705
200782
|
return Number.isInteger(value);
|
|
200706
200783
|
}
|
|
200707
|
-
function IsIterator(value) {
|
|
200708
|
-
return IsObject(value) && Symbol.iterator in value;
|
|
200709
|
-
}
|
|
200710
200784
|
function IsNull(value) {
|
|
200711
200785
|
return IsEqual(value, null);
|
|
200712
200786
|
}
|
|
@@ -200790,7 +200864,7 @@ function EveryAll(value, offset, callback) {
|
|
|
200790
200864
|
}
|
|
200791
200865
|
return result;
|
|
200792
200866
|
}
|
|
200793
|
-
function
|
|
200867
|
+
function ShiftLeft(array2, true_, false_) {
|
|
200794
200868
|
return IsEqual(array2.length, 0) ? false_() : true_(array2[0], array2.slice(1));
|
|
200795
200869
|
}
|
|
200796
200870
|
function IsUnsafePropertyKey(key) {
|
|
@@ -200826,20 +200900,99 @@ function DeepEqualArray(left, right) {
|
|
|
200826
200900
|
function IsDeepEqual(left, right) {
|
|
200827
200901
|
return IsArray(left) ? DeepEqualArray(left, right) : IsObject(left) ? DeepEqualObject(left, right) : IsEqual(left, right);
|
|
200828
200902
|
}
|
|
200829
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
200830
|
-
|
|
200831
|
-
|
|
200903
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/guard/globals.mjs
|
|
200904
|
+
var exports_globals = {};
|
|
200905
|
+
__export(exports_globals, {
|
|
200906
|
+
IsUint8ClampedArray: () => IsUint8ClampedArray,
|
|
200907
|
+
IsUint8Array: () => IsUint8Array,
|
|
200908
|
+
IsUint32Array: () => IsUint32Array,
|
|
200909
|
+
IsUint16Array: () => IsUint16Array,
|
|
200910
|
+
IsTypeArray: () => IsTypeArray,
|
|
200911
|
+
IsString: () => IsString2,
|
|
200912
|
+
IsSet: () => IsSet,
|
|
200913
|
+
IsRegExp: () => IsRegExp,
|
|
200914
|
+
IsNumber: () => IsNumber2,
|
|
200915
|
+
IsMap: () => IsMap,
|
|
200916
|
+
IsInt8Array: () => IsInt8Array,
|
|
200917
|
+
IsInt32Array: () => IsInt32Array,
|
|
200918
|
+
IsInt16Array: () => IsInt16Array,
|
|
200919
|
+
IsFloat64Array: () => IsFloat64Array,
|
|
200920
|
+
IsFloat32Array: () => IsFloat32Array,
|
|
200921
|
+
IsDate: () => IsDate,
|
|
200922
|
+
IsBoolean: () => IsBoolean2,
|
|
200923
|
+
IsBigUint64Array: () => IsBigUint64Array,
|
|
200924
|
+
IsBigInt64Array: () => IsBigInt64Array
|
|
200925
|
+
});
|
|
200926
|
+
function IsBoolean2(value) {
|
|
200927
|
+
return value instanceof Boolean;
|
|
200928
|
+
}
|
|
200929
|
+
function IsNumber2(value) {
|
|
200930
|
+
return value instanceof Number;
|
|
200931
|
+
}
|
|
200932
|
+
function IsString2(value) {
|
|
200933
|
+
return value instanceof String;
|
|
200934
|
+
}
|
|
200935
|
+
function IsTypeArray(value) {
|
|
200936
|
+
return globalThis.ArrayBuffer.isView(value);
|
|
200937
|
+
}
|
|
200938
|
+
function IsInt8Array(value) {
|
|
200939
|
+
return value instanceof globalThis.Int8Array;
|
|
200940
|
+
}
|
|
200941
|
+
function IsUint8Array(value) {
|
|
200942
|
+
return value instanceof globalThis.Uint8Array;
|
|
200943
|
+
}
|
|
200944
|
+
function IsUint8ClampedArray(value) {
|
|
200945
|
+
return value instanceof globalThis.Uint8ClampedArray;
|
|
200946
|
+
}
|
|
200947
|
+
function IsInt16Array(value) {
|
|
200948
|
+
return value instanceof globalThis.Int16Array;
|
|
200949
|
+
}
|
|
200950
|
+
function IsUint16Array(value) {
|
|
200951
|
+
return value instanceof globalThis.Uint16Array;
|
|
200952
|
+
}
|
|
200953
|
+
function IsInt32Array(value) {
|
|
200954
|
+
return value instanceof globalThis.Int32Array;
|
|
200955
|
+
}
|
|
200956
|
+
function IsUint32Array(value) {
|
|
200957
|
+
return value instanceof globalThis.Uint32Array;
|
|
200958
|
+
}
|
|
200959
|
+
function IsFloat32Array(value) {
|
|
200960
|
+
return value instanceof globalThis.Float32Array;
|
|
200961
|
+
}
|
|
200962
|
+
function IsFloat64Array(value) {
|
|
200963
|
+
return value instanceof globalThis.Float64Array;
|
|
200964
|
+
}
|
|
200965
|
+
function IsBigInt64Array(value) {
|
|
200966
|
+
return value instanceof globalThis.BigInt64Array;
|
|
200967
|
+
}
|
|
200968
|
+
function IsBigUint64Array(value) {
|
|
200969
|
+
return value instanceof globalThis.BigUint64Array;
|
|
200970
|
+
}
|
|
200971
|
+
function IsRegExp(value) {
|
|
200972
|
+
return value instanceof globalThis.RegExp;
|
|
200973
|
+
}
|
|
200974
|
+
function IsDate(value) {
|
|
200975
|
+
return value instanceof globalThis.Date;
|
|
200832
200976
|
}
|
|
200833
|
-
function
|
|
200977
|
+
function IsSet(value) {
|
|
200978
|
+
return value instanceof globalThis.Set;
|
|
200979
|
+
}
|
|
200980
|
+
function IsMap(value) {
|
|
200981
|
+
return value instanceof globalThis.Map;
|
|
200982
|
+
}
|
|
200983
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/system/memory/clone.mjs
|
|
200984
|
+
function FromClassInstance(value) {
|
|
200834
200985
|
return value;
|
|
200835
200986
|
}
|
|
200836
|
-
function
|
|
200837
|
-
return
|
|
200987
|
+
function IsTypeObject(value) {
|
|
200988
|
+
return exports_guard.HasPropertyKey(value, "~kind") || exports_guard.HasPropertyKey(value, "~unsafe");
|
|
200838
200989
|
}
|
|
200839
|
-
function
|
|
200990
|
+
function FromTypeObject(value) {
|
|
200840
200991
|
const result = {};
|
|
200841
200992
|
const descriptors = Object.getOwnPropertyDescriptors(value);
|
|
200842
200993
|
for (const key of Object.keys(descriptors)) {
|
|
200994
|
+
if (exports_guard.IsUnsafePropertyKey(key))
|
|
200995
|
+
continue;
|
|
200843
200996
|
const descriptor = descriptors[key];
|
|
200844
200997
|
if (exports_guard.HasPropertyKey(descriptor, "value")) {
|
|
200845
200998
|
Object.defineProperty(result, key, { ...descriptor, value: FromValue(descriptor.value) });
|
|
@@ -200847,20 +201000,44 @@ function FromObject(value) {
|
|
|
200847
201000
|
}
|
|
200848
201001
|
return result;
|
|
200849
201002
|
}
|
|
201003
|
+
function FromPlainObject(value) {
|
|
201004
|
+
const result = {};
|
|
201005
|
+
for (const key of exports_guard.Keys(value)) {
|
|
201006
|
+
if (exports_guard.IsUnsafePropertyKey(key))
|
|
201007
|
+
continue;
|
|
201008
|
+
result[key] = FromValue(value[key]);
|
|
201009
|
+
}
|
|
201010
|
+
for (const key of exports_guard.Symbols(value)) {
|
|
201011
|
+
result[key] = FromValue(value[key]);
|
|
201012
|
+
}
|
|
201013
|
+
return result;
|
|
201014
|
+
}
|
|
201015
|
+
function FromObject(value) {
|
|
201016
|
+
return exports_guard.IsClassInstance(value) ? FromClassInstance(value) : IsTypeObject(value) ? FromTypeObject(value) : FromPlainObject(value);
|
|
201017
|
+
}
|
|
201018
|
+
function FromArray(value) {
|
|
201019
|
+
return value.map((element) => FromValue(element));
|
|
201020
|
+
}
|
|
201021
|
+
function FromTypedArray(value) {
|
|
201022
|
+
return value.slice();
|
|
201023
|
+
}
|
|
200850
201024
|
function FromRegExp(value) {
|
|
200851
201025
|
return new RegExp(value.source, value.flags);
|
|
200852
201026
|
}
|
|
200853
|
-
function
|
|
200854
|
-
return value;
|
|
201027
|
+
function FromMap(value) {
|
|
201028
|
+
return new Map(FromValue([...value.entries()]));
|
|
201029
|
+
}
|
|
201030
|
+
function FromSet(value) {
|
|
201031
|
+
return new Set(FromValue([...value.values()]));
|
|
200855
201032
|
}
|
|
200856
201033
|
function FromValue(value) {
|
|
200857
|
-
return value
|
|
201034
|
+
return exports_globals.IsTypeArray(value) ? FromTypedArray(value) : exports_globals.IsRegExp(value) ? FromRegExp(value) : exports_globals.IsMap(value) ? FromMap(value) : exports_globals.IsSet(value) ? FromSet(value) : exports_guard.IsArray(value) ? FromArray(value) : exports_guard.IsObject(value) ? FromObject(value) : value;
|
|
200858
201035
|
}
|
|
200859
201036
|
function Clone(value) {
|
|
200860
201037
|
Metrics.clone += 1;
|
|
200861
201038
|
return FromValue(value);
|
|
200862
201039
|
}
|
|
200863
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
201040
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/system/settings/settings.mjs
|
|
200864
201041
|
var exports_settings = {};
|
|
200865
201042
|
__export(exports_settings, {
|
|
200866
201043
|
Set: () => Set2,
|
|
@@ -200873,7 +201050,8 @@ var settings = {
|
|
|
200873
201050
|
useAcceleration: true,
|
|
200874
201051
|
exactOptionalPropertyTypes: false,
|
|
200875
201052
|
enumerableKind: false,
|
|
200876
|
-
correctiveParse: false
|
|
201053
|
+
correctiveParse: false,
|
|
201054
|
+
unionPrioritySort: true
|
|
200877
201055
|
};
|
|
200878
201056
|
function Reset() {
|
|
200879
201057
|
settings.immutableTypes = false;
|
|
@@ -200882,6 +201060,7 @@ function Reset() {
|
|
|
200882
201060
|
settings.exactOptionalPropertyTypes = false;
|
|
200883
201061
|
settings.enumerableKind = false;
|
|
200884
201062
|
settings.correctiveParse = false;
|
|
201063
|
+
settings.unionPrioritySort = true;
|
|
200885
201064
|
}
|
|
200886
201065
|
function Set2(options) {
|
|
200887
201066
|
for (const key of exports_guard.Keys(options)) {
|
|
@@ -200894,7 +201073,7 @@ function Set2(options) {
|
|
|
200894
201073
|
function Get() {
|
|
200895
201074
|
return settings;
|
|
200896
201075
|
}
|
|
200897
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
201076
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/system/memory/create.mjs
|
|
200898
201077
|
function MergeHidden(left, right) {
|
|
200899
201078
|
for (const key of Object.keys(right)) {
|
|
200900
201079
|
Object.defineProperty(left, key, {
|
|
@@ -200916,7 +201095,7 @@ function Create(hidden, enumerable, options = {}) {
|
|
|
200916
201095
|
const withHidden = settings2.enumerableKind ? Merge(withOptions, hidden) : MergeHidden(withOptions, hidden);
|
|
200917
201096
|
return settings2.immutableTypes ? Object.freeze(withHidden) : withHidden;
|
|
200918
201097
|
}
|
|
200919
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
201098
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/system/memory/discard.mjs
|
|
200920
201099
|
function Discard(value, propertyKeys) {
|
|
200921
201100
|
Metrics.discard += 1;
|
|
200922
201101
|
const result = {};
|
|
@@ -200929,7 +201108,7 @@ function Discard(value, propertyKeys) {
|
|
|
200929
201108
|
}
|
|
200930
201109
|
return result;
|
|
200931
201110
|
}
|
|
200932
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
201111
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/system/memory/update.mjs
|
|
200933
201112
|
function Update(current, hidden, enumerable) {
|
|
200934
201113
|
Metrics.update += 1;
|
|
200935
201114
|
const settings2 = exports_settings.Get();
|
|
@@ -200952,7 +201131,7 @@ function Update(current, hidden, enumerable) {
|
|
|
200952
201131
|
}
|
|
200953
201132
|
return result;
|
|
200954
201133
|
}
|
|
200955
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
201134
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/types/schema.mjs
|
|
200956
201135
|
function IsKind(value, kind) {
|
|
200957
201136
|
return exports_guard.IsObject(value) && exports_guard.HasPropertyKey(value, "~kind") && exports_guard.IsEqual(value["~kind"], kind);
|
|
200958
201137
|
}
|
|
@@ -200960,136 +201139,41 @@ function IsSchema(value) {
|
|
|
200960
201139
|
return exports_guard.IsObject(value);
|
|
200961
201140
|
}
|
|
200962
201141
|
|
|
200963
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
200964
|
-
function OptionalAddAction(type) {
|
|
200965
|
-
return exports_memory.Create({ ["~kind"]: "OptionalAddAction" }, { type }, {});
|
|
200966
|
-
}
|
|
200967
|
-
function IsOptionalAddAction(value) {
|
|
200968
|
-
return exports_guard.IsObject(value) && exports_guard.HasPropertyKey(value, "~kind") && exports_guard.HasPropertyKey(value, "type") && exports_guard.IsEqual(value["~kind"], "OptionalAddAction") && IsSchema(value.type);
|
|
200969
|
-
}
|
|
200970
|
-
function OptionalRemoveAction(type) {
|
|
200971
|
-
return exports_memory.Create({ ["~kind"]: "OptionalRemoveAction" }, { type }, {});
|
|
200972
|
-
}
|
|
200973
|
-
function IsOptionalRemoveAction(value) {
|
|
200974
|
-
return exports_guard.IsObject(value) && exports_guard.HasPropertyKey(value, "~kind") && exports_guard.HasPropertyKey(value, "type") && exports_guard.IsEqual(value["~kind"], "OptionalRemoveAction") && IsSchema(value.type);
|
|
200975
|
-
}
|
|
200976
|
-
// ../../node_modules/.bun/typebox@1.1.38/node_modules/typebox/build/type/action/_readonly.mjs
|
|
200977
|
-
function ReadonlyAddAction(type) {
|
|
200978
|
-
return exports_memory.Create({ ["~kind"]: "ReadonlyAddAction" }, { type }, {});
|
|
200979
|
-
}
|
|
200980
|
-
function IsReadonlyAddAction(value) {
|
|
200981
|
-
return exports_guard.IsObject(value) && exports_guard.HasPropertyKey(value, "~kind") && exports_guard.HasPropertyKey(value, "type") && exports_guard.IsEqual(value["~kind"], "ReadonlyAddAction") && IsSchema(value.type);
|
|
200982
|
-
}
|
|
200983
|
-
function ReadonlyRemoveAction(type) {
|
|
200984
|
-
return exports_memory.Create({ ["~kind"]: "ReadonlyRemoveAction" }, { type }, {});
|
|
200985
|
-
}
|
|
200986
|
-
function IsReadonlyRemoveAction(value) {
|
|
200987
|
-
return exports_guard.IsObject(value) && exports_guard.HasPropertyKey(value, "~kind") && exports_guard.HasPropertyKey(value, "type") && exports_guard.IsEqual(value["~kind"], "ReadonlyRemoveAction") && IsSchema(value.type);
|
|
200988
|
-
}
|
|
200989
|
-
// ../../node_modules/.bun/typebox@1.1.38/node_modules/typebox/build/type/types/deferred.mjs
|
|
201142
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/types/deferred.mjs
|
|
200990
201143
|
function Deferred(action, parameters, options) {
|
|
200991
|
-
return exports_memory.Create({ "~kind": "Deferred" }, { action, parameters, options }, {});
|
|
201144
|
+
return exports_memory.Create({ "~kind": "Deferred" }, { type: "deferred", action, parameters, options }, {});
|
|
200992
201145
|
}
|
|
200993
201146
|
function IsDeferred(value) {
|
|
200994
201147
|
return IsKind(value, "Deferred");
|
|
200995
201148
|
}
|
|
200996
201149
|
|
|
200997
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
200998
|
-
function
|
|
200999
|
-
return exports_memory.Create({ ["~kind"]: "Promise" }, { type: "promise", item }, options);
|
|
201000
|
-
}
|
|
201001
|
-
function IsPromise(value) {
|
|
201002
|
-
return IsKind(value, "Promise");
|
|
201003
|
-
}
|
|
201004
|
-
function PromiseOptions(type) {
|
|
201005
|
-
return exports_memory.Discard(type, ["~kind", "type", "item"]);
|
|
201006
|
-
}
|
|
201007
|
-
|
|
201008
|
-
// ../../node_modules/.bun/typebox@1.1.38/node_modules/typebox/build/type/types/_immutable.mjs
|
|
201009
|
-
function ImmutableAdd(type) {
|
|
201010
|
-
return exports_memory.Update(type, { "~immutable": true }, {});
|
|
201011
|
-
}
|
|
201012
|
-
function Immutable(type) {
|
|
201013
|
-
return ImmutableAdd(type);
|
|
201014
|
-
}
|
|
201015
|
-
function IsImmutable(value) {
|
|
201016
|
-
return IsSchema(value) && exports_guard.HasPropertyKey(value, "~immutable");
|
|
201017
|
-
}
|
|
201018
|
-
|
|
201019
|
-
// ../../node_modules/.bun/typebox@1.1.38/node_modules/typebox/build/type/types/_optional.mjs
|
|
201020
|
-
function OptionalRemove(type) {
|
|
201021
|
-
const result = exports_memory.Discard(type, ["~optional"]);
|
|
201022
|
-
return result;
|
|
201023
|
-
}
|
|
201024
|
-
function OptionalAdd(type) {
|
|
201025
|
-
return exports_memory.Update(type, { "~optional": true }, {});
|
|
201026
|
-
}
|
|
201027
|
-
function Optional(type) {
|
|
201028
|
-
return OptionalAdd(type);
|
|
201029
|
-
}
|
|
201030
|
-
function IsOptional(value) {
|
|
201031
|
-
return IsSchema(value) && exports_guard.HasPropertyKey(value, "~optional");
|
|
201032
|
-
}
|
|
201033
|
-
|
|
201034
|
-
// ../../node_modules/.bun/typebox@1.1.38/node_modules/typebox/build/type/types/_readonly.mjs
|
|
201035
|
-
function ReadonlyRemove(type) {
|
|
201036
|
-
return exports_memory.Discard(type, ["~readonly"]);
|
|
201037
|
-
}
|
|
201038
|
-
function ReadonlyAdd(type) {
|
|
201150
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/readonly/instantiate_add.mjs
|
|
201151
|
+
function AddReadonlyOperation(type) {
|
|
201039
201152
|
return exports_memory.Update(type, { "~readonly": true }, {});
|
|
201040
201153
|
}
|
|
201041
|
-
function
|
|
201042
|
-
|
|
201154
|
+
function AddReadonlyAction(type, options) {
|
|
201155
|
+
const result = exports_memory.Update(AddReadonlyOperation(type), {}, options);
|
|
201156
|
+
return result;
|
|
201043
201157
|
}
|
|
201044
|
-
function
|
|
201045
|
-
|
|
201158
|
+
function AddReadonlyInstantiate(context, state, type, options) {
|
|
201159
|
+
const instantiatedType = InstantiateType(context, state, type);
|
|
201160
|
+
return AddReadonlyAction(instantiatedType, options);
|
|
201046
201161
|
}
|
|
201047
201162
|
|
|
201048
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
201049
|
-
function
|
|
201050
|
-
return {
|
|
201051
|
-
enumerable: exports_settings.Get().enumerableKind,
|
|
201052
|
-
writable: false,
|
|
201053
|
-
configurable: false,
|
|
201054
|
-
value
|
|
201055
|
-
};
|
|
201163
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/optional/instantiate_add.mjs
|
|
201164
|
+
function AddOptionalOperation(type) {
|
|
201165
|
+
return exports_memory.Update(type, { "~optional": true }, {});
|
|
201056
201166
|
}
|
|
201057
|
-
|
|
201058
|
-
|
|
201059
|
-
|
|
201060
|
-
globalThis.Object.defineProperty(this, "~kind", BaseProperty("Base"));
|
|
201061
|
-
globalThis.Object.defineProperty(this, "~guard", BaseProperty({
|
|
201062
|
-
check: (value) => this.Check(value),
|
|
201063
|
-
errors: (value) => this.Errors(value)
|
|
201064
|
-
}));
|
|
201065
|
-
}
|
|
201066
|
-
Check(_value) {
|
|
201067
|
-
return true;
|
|
201068
|
-
}
|
|
201069
|
-
Errors(_value) {
|
|
201070
|
-
return [];
|
|
201071
|
-
}
|
|
201072
|
-
Convert(value) {
|
|
201073
|
-
return value;
|
|
201074
|
-
}
|
|
201075
|
-
Clean(value) {
|
|
201076
|
-
return value;
|
|
201077
|
-
}
|
|
201078
|
-
Default(value) {
|
|
201079
|
-
return value;
|
|
201080
|
-
}
|
|
201081
|
-
Create() {
|
|
201082
|
-
throw new Error("Create not implemented");
|
|
201083
|
-
}
|
|
201084
|
-
Clone() {
|
|
201085
|
-
throw Error("Clone not implemented");
|
|
201086
|
-
}
|
|
201167
|
+
function AddOptionalAction(type, options) {
|
|
201168
|
+
const result = exports_memory.Update(AddOptionalOperation(type), {}, options);
|
|
201169
|
+
return result;
|
|
201087
201170
|
}
|
|
201088
|
-
function
|
|
201089
|
-
|
|
201171
|
+
function AddOptionalInstantiate(context, state, type, options) {
|
|
201172
|
+
const instantiatedType = InstantiateType(context, state, type);
|
|
201173
|
+
return AddOptionalAction(instantiatedType, options);
|
|
201090
201174
|
}
|
|
201091
201175
|
|
|
201092
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
201176
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/types/array.mjs
|
|
201093
201177
|
function _Array_(items, options) {
|
|
201094
201178
|
return exports_memory.Create({ "~kind": "Array" }, { type: "array", items }, options);
|
|
201095
201179
|
}
|
|
@@ -201100,18 +201184,7 @@ function ArrayOptions(type) {
|
|
|
201100
201184
|
return exports_memory.Discard(type, ["~kind", "type", "items"]);
|
|
201101
201185
|
}
|
|
201102
201186
|
|
|
201103
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
201104
|
-
function AsyncIterator(iteratorItems, options) {
|
|
201105
|
-
return exports_memory.Create({ "~kind": "AsyncIterator" }, { type: "asyncIterator", iteratorItems }, options);
|
|
201106
|
-
}
|
|
201107
|
-
function IsAsyncIterator2(value) {
|
|
201108
|
-
return IsKind(value, "AsyncIterator");
|
|
201109
|
-
}
|
|
201110
|
-
function AsyncIteratorOptions(type) {
|
|
201111
|
-
return exports_memory.Discard(type, ["~kind", "type", "iteratorItems"]);
|
|
201112
|
-
}
|
|
201113
|
-
|
|
201114
|
-
// ../../node_modules/.bun/typebox@1.1.38/node_modules/typebox/build/type/types/constructor.mjs
|
|
201187
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/types/constructor.mjs
|
|
201115
201188
|
function Constructor(parameters, instanceType, options = {}) {
|
|
201116
201189
|
return exports_memory.Create({ "~kind": "Constructor" }, { type: "constructor", parameters, instanceType }, options);
|
|
201117
201190
|
}
|
|
@@ -201122,7 +201195,7 @@ function ConstructorOptions(type) {
|
|
|
201122
201195
|
return exports_memory.Discard(type, ["~kind", "type", "parameters", "instanceType"]);
|
|
201123
201196
|
}
|
|
201124
201197
|
|
|
201125
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
201198
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/types/function.mjs
|
|
201126
201199
|
function _Function_(parameters, returnType, options = {}) {
|
|
201127
201200
|
return exports_memory.Create({ ["~kind"]: "Function" }, { type: "function", parameters, returnType }, options);
|
|
201128
201201
|
}
|
|
@@ -201133,7 +201206,7 @@ function FunctionOptions(type) {
|
|
|
201133
201206
|
return exports_memory.Discard(type, ["~kind", "type", "parameters", "returnType"]);
|
|
201134
201207
|
}
|
|
201135
201208
|
|
|
201136
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
201209
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/types/ref.mjs
|
|
201137
201210
|
function Ref(ref, options) {
|
|
201138
201211
|
return exports_memory.Create({ ["~kind"]: "Ref" }, { $ref: ref }, options);
|
|
201139
201212
|
}
|
|
@@ -201141,7 +201214,7 @@ function IsRef(value) {
|
|
|
201141
201214
|
return IsKind(value, "Ref");
|
|
201142
201215
|
}
|
|
201143
201216
|
|
|
201144
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
201217
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/types/generic.mjs
|
|
201145
201218
|
function Generic(parameters, expression) {
|
|
201146
201219
|
return exports_memory.Create({ "~kind": "Generic" }, { type: "generic", parameters, expression });
|
|
201147
201220
|
}
|
|
@@ -201149,7 +201222,7 @@ function IsGeneric(value) {
|
|
|
201149
201222
|
return IsKind(value, "Generic");
|
|
201150
201223
|
}
|
|
201151
201224
|
|
|
201152
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
201225
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/types/any.mjs
|
|
201153
201226
|
function Any(options) {
|
|
201154
201227
|
return exports_memory.Create({ ["~kind"]: "Any" }, {}, options);
|
|
201155
201228
|
}
|
|
@@ -201157,7 +201230,7 @@ function IsAny(value) {
|
|
|
201157
201230
|
return IsKind(value, "Any");
|
|
201158
201231
|
}
|
|
201159
201232
|
|
|
201160
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
201233
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/types/never.mjs
|
|
201161
201234
|
var NeverPattern = "(?!)";
|
|
201162
201235
|
function Never(options) {
|
|
201163
201236
|
return exports_memory.Create({ "~kind": "Never" }, { not: {} }, options);
|
|
@@ -201166,7 +201239,23 @@ function IsNever(value) {
|
|
|
201166
201239
|
return IsKind(value, "Never");
|
|
201167
201240
|
}
|
|
201168
201241
|
|
|
201169
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
201242
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/action/_add_optional.mjs
|
|
201243
|
+
function AddOptionalDeferred(type, options = {}) {
|
|
201244
|
+
return Deferred("AddOptional", [type], options);
|
|
201245
|
+
}
|
|
201246
|
+
function AddOptional(type, options = {}) {
|
|
201247
|
+
return AddOptionalAction(type, options);
|
|
201248
|
+
}
|
|
201249
|
+
|
|
201250
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/types/_optional.mjs
|
|
201251
|
+
function Optional(type) {
|
|
201252
|
+
return AddOptional(type);
|
|
201253
|
+
}
|
|
201254
|
+
function IsOptional(value) {
|
|
201255
|
+
return IsSchema(value) && exports_guard.HasPropertyKey(value, "~optional");
|
|
201256
|
+
}
|
|
201257
|
+
|
|
201258
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/types/properties.mjs
|
|
201170
201259
|
function RequiredArray(properties) {
|
|
201171
201260
|
return exports_guard.Keys(properties).filter((key) => !IsOptional(properties[key]));
|
|
201172
201261
|
}
|
|
@@ -201177,7 +201266,7 @@ function PropertyValues(properties) {
|
|
|
201177
201266
|
return exports_guard.Values(properties);
|
|
201178
201267
|
}
|
|
201179
201268
|
|
|
201180
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
201269
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/types/object.mjs
|
|
201181
201270
|
function _Object_(properties, options = {}) {
|
|
201182
201271
|
const requiredKeys = RequiredArray(properties);
|
|
201183
201272
|
const required2 = requiredKeys.length > 0 ? { required: requiredKeys } : {};
|
|
@@ -201190,18 +201279,7 @@ function ObjectOptions(type) {
|
|
|
201190
201279
|
return exports_memory.Discard(type, ["~kind", "type", "properties", "required"]);
|
|
201191
201280
|
}
|
|
201192
201281
|
|
|
201193
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
201194
|
-
function Union(anyOf, options = {}) {
|
|
201195
|
-
return exports_memory.Create({ "~kind": "Union" }, { anyOf }, options);
|
|
201196
|
-
}
|
|
201197
|
-
function IsUnion(value) {
|
|
201198
|
-
return IsKind(value, "Union");
|
|
201199
|
-
}
|
|
201200
|
-
function UnionOptions(type) {
|
|
201201
|
-
return exports_memory.Discard(type, ["~kind", "anyOf"]);
|
|
201202
|
-
}
|
|
201203
|
-
|
|
201204
|
-
// ../../node_modules/.bun/typebox@1.1.38/node_modules/typebox/build/type/types/unknown.mjs
|
|
201282
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/types/unknown.mjs
|
|
201205
201283
|
function Unknown(options) {
|
|
201206
201284
|
return exports_memory.Create({ ["~kind"]: "Unknown" }, {}, options);
|
|
201207
201285
|
}
|
|
@@ -201209,7 +201287,7 @@ function IsUnknown(value) {
|
|
|
201209
201287
|
return IsKind(value, "Unknown");
|
|
201210
201288
|
}
|
|
201211
201289
|
|
|
201212
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
201290
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/types/cyclic.mjs
|
|
201213
201291
|
function Cyclic($defs, $ref, options) {
|
|
201214
201292
|
const defs = exports_guard.Keys($defs).reduce((result, key) => {
|
|
201215
201293
|
return { ...result, [key]: exports_memory.Update($defs[key], {}, { $id: key }) };
|
|
@@ -201220,7 +201298,7 @@ function IsCyclic(value) {
|
|
|
201220
201298
|
return IsKind(value, "Cyclic");
|
|
201221
201299
|
}
|
|
201222
201300
|
|
|
201223
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
201301
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/types/unsafe.mjs
|
|
201224
201302
|
function Unsafe(schema) {
|
|
201225
201303
|
return exports_memory.Update(schema, { ["~unsafe"]: null }, {});
|
|
201226
201304
|
}
|
|
@@ -201228,7 +201306,7 @@ function IsUnsafe(value) {
|
|
|
201228
201306
|
return exports_guard.IsObjectNotArray(value) && exports_guard.HasPropertyKey(value, "~unsafe") && exports_guard.IsNull(value["~unsafe"]);
|
|
201229
201307
|
}
|
|
201230
201308
|
|
|
201231
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
201309
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/system/arguments/arguments.mjs
|
|
201232
201310
|
var exports_arguments = {};
|
|
201233
201311
|
__export(exports_arguments, {
|
|
201234
201312
|
Match: () => Match
|
|
@@ -201238,7 +201316,7 @@ function Match(args, match) {
|
|
|
201238
201316
|
throw Error("Invalid Arguments");
|
|
201239
201317
|
})();
|
|
201240
201318
|
}
|
|
201241
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
201319
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/types/infer.mjs
|
|
201242
201320
|
function Infer(...args) {
|
|
201243
201321
|
const [name2, extends_] = exports_arguments.Match(args, {
|
|
201244
201322
|
2: (name3, extends_2) => [name3, extends_2, extends_2],
|
|
@@ -201250,7 +201328,18 @@ function IsInfer(value) {
|
|
|
201250
201328
|
return IsKind(value, "Infer");
|
|
201251
201329
|
}
|
|
201252
201330
|
|
|
201253
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
201331
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/types/dependent.mjs
|
|
201332
|
+
function Dependent(if_, then_, else_, options = {}) {
|
|
201333
|
+
return exports_memory.Create({ "~kind": "Dependent" }, { if: if_, then: then_, else: else_ }, options);
|
|
201334
|
+
}
|
|
201335
|
+
function IsDependent(value) {
|
|
201336
|
+
return IsKind(value, "Dependent");
|
|
201337
|
+
}
|
|
201338
|
+
function DependentOptions(type) {
|
|
201339
|
+
return exports_memory.Discard(type, ["~kind", "if", "then", "else"]);
|
|
201340
|
+
}
|
|
201341
|
+
|
|
201342
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/enum/typescript_enum_to_enum_values.mjs
|
|
201254
201343
|
function IsTypeScriptEnumLike(value) {
|
|
201255
201344
|
return exports_guard.IsObjectNotArray(value);
|
|
201256
201345
|
}
|
|
@@ -201259,7 +201348,7 @@ function TypeScriptEnumToEnumValues(type) {
|
|
|
201259
201348
|
return keys.reduce((result, key) => [...result, type[key]], []);
|
|
201260
201349
|
}
|
|
201261
201350
|
|
|
201262
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
201351
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/types/enum.mjs
|
|
201263
201352
|
function Enum(value, options) {
|
|
201264
201353
|
const values = IsTypeScriptEnumLike(value) ? TypeScriptEnumToEnumValues(value) : value;
|
|
201265
201354
|
return exports_memory.Create({ "~kind": "Enum" }, { enum: values }, options);
|
|
@@ -201268,7 +201357,7 @@ function IsEnum(value) {
|
|
|
201268
201357
|
return IsKind(value, "Enum");
|
|
201269
201358
|
}
|
|
201270
201359
|
|
|
201271
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
201360
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/types/intersect.mjs
|
|
201272
201361
|
function Intersect(types2, options = {}) {
|
|
201273
201362
|
return exports_memory.Create({ "~kind": "Intersect" }, { allOf: types2 }, options);
|
|
201274
201363
|
}
|
|
@@ -201278,11 +201367,11 @@ function IsIntersect(value) {
|
|
|
201278
201367
|
function IntersectOptions(type) {
|
|
201279
201368
|
return exports_memory.Discard(type, ["~kind", "allOf"]);
|
|
201280
201369
|
}
|
|
201281
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
201370
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/system/unreachable/unreachable.mjs
|
|
201282
201371
|
function Unreachable() {
|
|
201283
201372
|
throw new Error("Unreachable");
|
|
201284
201373
|
}
|
|
201285
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
201374
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/system/hashing/hash.mjs
|
|
201286
201375
|
var ByteMarker;
|
|
201287
201376
|
(function(ByteMarker2) {
|
|
201288
201377
|
ByteMarker2[ByteMarker2["Array"] = 0] = "Array";
|
|
@@ -201307,7 +201396,7 @@ var F64 = new Float64Array(1);
|
|
|
201307
201396
|
var F64In = new DataView(F64.buffer);
|
|
201308
201397
|
var F64Out = new Uint8Array(F64.buffer);
|
|
201309
201398
|
var encoder2 = new TextEncoder;
|
|
201310
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
201399
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/types/_codec.mjs
|
|
201311
201400
|
class EncodeBuilder {
|
|
201312
201401
|
constructor(type, decode3) {
|
|
201313
201402
|
this.type = type;
|
|
@@ -201346,17 +201435,38 @@ function Encode(type, callback) {
|
|
|
201346
201435
|
function IsCodec(value) {
|
|
201347
201436
|
return IsSchema(value) && exports_guard.HasPropertyKey(value, "~codec") && exports_guard.IsObject(value["~codec"]) && exports_guard.HasPropertyKey(value["~codec"], "encode") && exports_guard.HasPropertyKey(value["~codec"], "decode");
|
|
201348
201437
|
}
|
|
201349
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
201438
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/types/_immutable.mjs
|
|
201439
|
+
function Immutable(type) {
|
|
201440
|
+
return AddImmutable(type);
|
|
201441
|
+
}
|
|
201442
|
+
function IsImmutable(value) {
|
|
201443
|
+
return IsSchema(value) && exports_guard.HasPropertyKey(value, "~immutable");
|
|
201444
|
+
}
|
|
201445
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/action/_add_readonly.mjs
|
|
201446
|
+
function AddReadonlyDeferred(type, options = {}) {
|
|
201447
|
+
return Deferred("AddReadonly", [type], options);
|
|
201448
|
+
}
|
|
201449
|
+
function AddReadonly(type, options = {}) {
|
|
201450
|
+
return AddReadonlyAction(type, options);
|
|
201451
|
+
}
|
|
201452
|
+
|
|
201453
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/types/_readonly.mjs
|
|
201454
|
+
function Readonly(type) {
|
|
201455
|
+
return AddReadonly(type);
|
|
201456
|
+
}
|
|
201457
|
+
function IsReadonly(value) {
|
|
201458
|
+
return IsSchema(value) && exports_guard.HasPropertyKey(value, "~readonly");
|
|
201459
|
+
}
|
|
201460
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/types/_refine.mjs
|
|
201350
201461
|
function RefineAdd(type, refinement) {
|
|
201351
201462
|
const refinements = IsRefine(type) ? [...type["~refine"], refinement] : [refinement];
|
|
201352
201463
|
return exports_memory.Update(type, { "~refine": refinements }, {});
|
|
201353
201464
|
}
|
|
201354
201465
|
function Refine(...args) {
|
|
201355
|
-
const [type, check2,
|
|
201466
|
+
const [type, check2, error51] = exports_arguments.Match(args, {
|
|
201356
201467
|
3: (type2, check3, error52) => [type2, check3, error52],
|
|
201357
201468
|
2: (type2, check3) => [type2, check3, () => "Refine Error"]
|
|
201358
201469
|
});
|
|
201359
|
-
const error51 = exports_guard.IsString(error_or_message) ? () => error_or_message : error_or_message;
|
|
201360
201470
|
return RefineAdd(type, { check: check2, error: error51 });
|
|
201361
201471
|
}
|
|
201362
201472
|
function IsRefinement(value) {
|
|
@@ -201365,7 +201475,7 @@ function IsRefinement(value) {
|
|
|
201365
201475
|
function IsRefine(value) {
|
|
201366
201476
|
return IsSchema(value) && exports_guard.HasPropertyKey(value, "~refine") && exports_guard.IsArray(value["~refine"]) && exports_guard.Every(value["~refine"], 0, (value2) => IsRefinement(value2));
|
|
201367
201477
|
}
|
|
201368
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
201478
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/types/bigint.mjs
|
|
201369
201479
|
var BigIntPattern = "-?(?:0|[1-9][0-9]*)n";
|
|
201370
201480
|
function BigInt2(options) {
|
|
201371
201481
|
return exports_memory.Create({ "~kind": "BigInt" }, { type: "bigint" }, options);
|
|
@@ -201373,21 +201483,21 @@ function BigInt2(options) {
|
|
|
201373
201483
|
function IsBigInt2(value) {
|
|
201374
201484
|
return IsKind(value, "BigInt");
|
|
201375
201485
|
}
|
|
201376
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
201486
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/types/boolean.mjs
|
|
201377
201487
|
function Boolean2(options) {
|
|
201378
201488
|
return exports_memory.Create({ "~kind": "Boolean" }, { type: "boolean" }, options);
|
|
201379
201489
|
}
|
|
201380
|
-
function
|
|
201490
|
+
function IsBoolean3(value) {
|
|
201381
201491
|
return IsKind(value, "Boolean");
|
|
201382
201492
|
}
|
|
201383
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
201493
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/types/identifier.mjs
|
|
201384
201494
|
function Identifier(name2) {
|
|
201385
201495
|
return exports_memory.Create({ "~kind": "Identifier" }, { name: name2 });
|
|
201386
201496
|
}
|
|
201387
201497
|
function IsIdentifier(value) {
|
|
201388
201498
|
return IsKind(value, "Identifier");
|
|
201389
201499
|
}
|
|
201390
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
201500
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/types/integer.mjs
|
|
201391
201501
|
var IntegerPattern = "-?(?:0|[1-9][0-9]*)";
|
|
201392
201502
|
function Integer(options) {
|
|
201393
201503
|
return exports_memory.Create({ "~kind": "Integer" }, { type: "integer" }, options);
|
|
@@ -201395,17 +201505,7 @@ function Integer(options) {
|
|
|
201395
201505
|
function IsInteger2(value) {
|
|
201396
201506
|
return IsKind(value, "Integer");
|
|
201397
201507
|
}
|
|
201398
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
201399
|
-
function Iterator(iteratorItems, options) {
|
|
201400
|
-
return exports_memory.Create({ "~kind": "Iterator" }, { type: "iterator", iteratorItems }, options);
|
|
201401
|
-
}
|
|
201402
|
-
function IsIterator2(value) {
|
|
201403
|
-
return IsKind(value, "Iterator");
|
|
201404
|
-
}
|
|
201405
|
-
function IteratorOptions(type) {
|
|
201406
|
-
return exports_memory.Discard(type, ["~kind", "type", "iteratorItems"]);
|
|
201407
|
-
}
|
|
201408
|
-
// ../../node_modules/.bun/typebox@1.1.38/node_modules/typebox/build/type/types/literal.mjs
|
|
201508
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/types/literal.mjs
|
|
201409
201509
|
class InvalidLiteralValue extends Error {
|
|
201410
201510
|
constructor(value) {
|
|
201411
201511
|
super(`Invalid Literal value`);
|
|
@@ -201437,29 +201537,29 @@ function IsLiteralString(value) {
|
|
|
201437
201537
|
function IsLiteral(value) {
|
|
201438
201538
|
return IsKind(value, "Literal");
|
|
201439
201539
|
}
|
|
201440
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
201540
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/types/null.mjs
|
|
201441
201541
|
function Null(options) {
|
|
201442
201542
|
return exports_memory.Create({ "~kind": "Null" }, { type: "null" }, options);
|
|
201443
201543
|
}
|
|
201444
201544
|
function IsNull2(value) {
|
|
201445
201545
|
return IsKind(value, "Null");
|
|
201446
201546
|
}
|
|
201447
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
201448
|
-
var NumberPattern = "-?(?:0|[1-9][0-9]*)(
|
|
201547
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/types/number.mjs
|
|
201548
|
+
var NumberPattern = "-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?";
|
|
201449
201549
|
function Number2(options) {
|
|
201450
201550
|
return exports_memory.Create({ "~kind": "Number" }, { type: "number" }, options);
|
|
201451
201551
|
}
|
|
201452
|
-
function
|
|
201552
|
+
function IsNumber3(value) {
|
|
201453
201553
|
return IsKind(value, "Number");
|
|
201454
201554
|
}
|
|
201455
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
201555
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/types/symbol.mjs
|
|
201456
201556
|
function Symbol2(options) {
|
|
201457
201557
|
return exports_memory.Create({ "~kind": "Symbol" }, { type: "symbol" }, options);
|
|
201458
201558
|
}
|
|
201459
201559
|
function IsSymbol2(value) {
|
|
201460
201560
|
return IsKind(value, "Symbol");
|
|
201461
201561
|
}
|
|
201462
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
201562
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/types/parameter.mjs
|
|
201463
201563
|
function Parameter(...args) {
|
|
201464
201564
|
const [name2, extends_, equals] = exports_arguments.Match(args, {
|
|
201465
201565
|
3: (name3, extends_2, equals2) => [name3, extends_2, equals2],
|
|
@@ -201471,28 +201571,39 @@ function Parameter(...args) {
|
|
|
201471
201571
|
function IsParameter(value) {
|
|
201472
201572
|
return IsKind(value, "Parameter");
|
|
201473
201573
|
}
|
|
201474
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
201574
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/types/string.mjs
|
|
201475
201575
|
var StringPattern = ".*";
|
|
201476
201576
|
function String2(options) {
|
|
201477
201577
|
return exports_memory.Create({ "~kind": "String" }, { type: "string" }, options);
|
|
201478
201578
|
}
|
|
201479
|
-
function
|
|
201579
|
+
function IsString3(value) {
|
|
201480
201580
|
return IsKind(value, "String");
|
|
201481
201581
|
}
|
|
201482
201582
|
|
|
201483
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
201583
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/types/union.mjs
|
|
201584
|
+
function Union(anyOf, options = {}) {
|
|
201585
|
+
return exports_memory.Create({ "~kind": "Union" }, { anyOf }, options);
|
|
201586
|
+
}
|
|
201587
|
+
function IsUnion(value) {
|
|
201588
|
+
return IsKind(value, "Union");
|
|
201589
|
+
}
|
|
201590
|
+
function UnionOptions(type) {
|
|
201591
|
+
return exports_memory.Discard(type, ["~kind", "anyOf"]);
|
|
201592
|
+
}
|
|
201593
|
+
|
|
201594
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/patterns/pattern.mjs
|
|
201484
201595
|
function ParsePatternIntoTypes(pattern) {
|
|
201485
201596
|
const parsed = Pattern(pattern);
|
|
201486
201597
|
const result = exports_guard.IsEqual(parsed.length, 2) ? parsed[0] : [];
|
|
201487
201598
|
return result;
|
|
201488
201599
|
}
|
|
201489
201600
|
|
|
201490
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
201601
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/template_literal/is_finite.mjs
|
|
201491
201602
|
function FromLiteral(_value) {
|
|
201492
201603
|
return true;
|
|
201493
201604
|
}
|
|
201494
201605
|
function FromTypesReduce(types2) {
|
|
201495
|
-
return exports_guard.
|
|
201606
|
+
return exports_guard.ShiftLeft(types2, (left, right) => FromType(left) ? FromTypesReduce(right) : false, () => true);
|
|
201496
201607
|
}
|
|
201497
201608
|
function FromTypes(types2) {
|
|
201498
201609
|
const result = exports_guard.IsEqual(types2.length, 0) ? false : FromTypesReduce(types2);
|
|
@@ -201506,27 +201617,27 @@ function IsTemplateLiteralFinite(types2) {
|
|
|
201506
201617
|
return result;
|
|
201507
201618
|
}
|
|
201508
201619
|
|
|
201509
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
201620
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/template_literal/create.mjs
|
|
201510
201621
|
function TemplateLiteralCreate(pattern) {
|
|
201511
201622
|
return exports_memory.Create({ ["~kind"]: "TemplateLiteral" }, { type: "string", pattern }, {});
|
|
201512
201623
|
}
|
|
201513
201624
|
|
|
201514
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
201625
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/template_literal/decode.mjs
|
|
201515
201626
|
function FromLiteralPush(variants, value, result = []) {
|
|
201516
|
-
return exports_guard.
|
|
201627
|
+
return exports_guard.ShiftLeft(variants, (left, right) => FromLiteralPush(right, value, [...result, `${left}${value}`]), () => result);
|
|
201517
201628
|
}
|
|
201518
201629
|
function FromLiteral2(variants, value) {
|
|
201519
201630
|
return exports_guard.IsEqual(variants.length, 0) ? [`${value}`] : FromLiteralPush(variants, value);
|
|
201520
201631
|
}
|
|
201521
201632
|
function FromUnion(variants, types2, result = []) {
|
|
201522
|
-
return exports_guard.
|
|
201633
|
+
return exports_guard.ShiftLeft(types2, (left, right) => FromUnion(variants, right, [...result, ...FromType2(variants, left)]), () => result);
|
|
201523
201634
|
}
|
|
201524
201635
|
function FromType2(variants, type) {
|
|
201525
201636
|
const result = IsUnion(type) ? FromUnion(variants, type.anyOf) : IsLiteral(type) ? FromLiteral2(variants, type.const) : Unreachable();
|
|
201526
201637
|
return result;
|
|
201527
201638
|
}
|
|
201528
201639
|
function DecodeFromSpan(variants, types2) {
|
|
201529
|
-
return exports_guard.
|
|
201640
|
+
return exports_guard.ShiftLeft(types2, (left, right) => DecodeFromSpan(FromType2(variants, left), right), () => variants);
|
|
201530
201641
|
}
|
|
201531
201642
|
function VariantsToLiterals(variants) {
|
|
201532
201643
|
return variants.map((variant) => Literal(variant));
|
|
@@ -201551,67 +201662,78 @@ function TemplateLiteralDecode(pattern) {
|
|
|
201551
201662
|
return result;
|
|
201552
201663
|
}
|
|
201553
201664
|
|
|
201554
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
201665
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/record/record_create.mjs
|
|
201555
201666
|
function CreateRecord(key, value) {
|
|
201556
201667
|
const type = "object";
|
|
201557
201668
|
const patternProperties = { [key]: value };
|
|
201558
201669
|
return exports_memory.Create({ ["~kind"]: "Record" }, { type, patternProperties });
|
|
201559
201670
|
}
|
|
201560
201671
|
|
|
201561
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
201672
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/record/from_key_any.mjs
|
|
201562
201673
|
function FromAnyKey(value) {
|
|
201563
201674
|
return CreateRecord(StringKey, value);
|
|
201564
201675
|
}
|
|
201565
201676
|
|
|
201566
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
201677
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/record/from_key_boolean.mjs
|
|
201567
201678
|
function FromBooleanKey(value) {
|
|
201568
201679
|
return _Object_({ true: value, false: value });
|
|
201569
201680
|
}
|
|
201570
201681
|
|
|
201571
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
201572
|
-
function
|
|
201573
|
-
|
|
201682
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/types/tuple.mjs
|
|
201683
|
+
function Tuple(types2, options = {}) {
|
|
201684
|
+
const [items, minItems, additionalItems] = [types2, types2.length, false];
|
|
201685
|
+
return exports_memory.Create({ ["~kind"]: "Tuple" }, { type: "array", additionalItems, items, minItems }, options);
|
|
201574
201686
|
}
|
|
201575
|
-
function
|
|
201576
|
-
|
|
201577
|
-
return result;
|
|
201687
|
+
function IsTuple(value) {
|
|
201688
|
+
return IsKind(value, "Tuple");
|
|
201578
201689
|
}
|
|
201579
|
-
function
|
|
201580
|
-
|
|
201581
|
-
|
|
201582
|
-
|
|
201690
|
+
function TupleOptions(type) {
|
|
201691
|
+
return exports_memory.Discard(type, ["~kind", "type", "items", "minItems", "additionalItems"]);
|
|
201692
|
+
}
|
|
201693
|
+
|
|
201694
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/readonly/instantiate_remove.mjs
|
|
201695
|
+
function RemoveReadonlyOperation(type) {
|
|
201696
|
+
return exports_memory.Discard(type, ["~readonly"]);
|
|
201583
201697
|
}
|
|
201584
|
-
function
|
|
201585
|
-
const result =
|
|
201698
|
+
function RemoveReadonlyAction(type, options) {
|
|
201699
|
+
const result = exports_memory.Update(RemoveReadonlyOperation(type), {}, options);
|
|
201586
201700
|
return result;
|
|
201587
201701
|
}
|
|
201702
|
+
function RemoveReadonlyInstantiate(context, state, type, options) {
|
|
201703
|
+
const instantiatedType = InstantiateType(context, state, type);
|
|
201704
|
+
return RemoveReadonlyAction(instantiatedType, options);
|
|
201705
|
+
}
|
|
201588
201706
|
|
|
201589
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
201590
|
-
function
|
|
201591
|
-
|
|
201592
|
-
|
|
201593
|
-
|
|
201707
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/action/_remove_readonly.mjs
|
|
201708
|
+
function RemoveReadonlyDeferred(type, options = {}) {
|
|
201709
|
+
return Deferred("RemoveReadonly", [type], options);
|
|
201710
|
+
}
|
|
201711
|
+
function RemoveReadonly(type, options = {}) {
|
|
201712
|
+
return RemoveReadonlyAction(type, options);
|
|
201594
201713
|
}
|
|
201595
201714
|
|
|
201596
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
201597
|
-
function
|
|
201598
|
-
|
|
201715
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/optional/instantiate_remove.mjs
|
|
201716
|
+
function RemoveOptionalOperation(type) {
|
|
201717
|
+
return exports_memory.Discard(type, ["~optional"]);
|
|
201718
|
+
}
|
|
201719
|
+
function RemoveOptionalAction(type, options) {
|
|
201720
|
+
const result = exports_memory.Update(RemoveOptionalOperation(type), {}, options);
|
|
201599
201721
|
return result;
|
|
201600
201722
|
}
|
|
201601
|
-
|
|
201602
|
-
|
|
201603
|
-
|
|
201604
|
-
const [items, minItems, additionalItems] = [types2, types2.length, false];
|
|
201605
|
-
return exports_memory.Create({ ["~kind"]: "Tuple" }, { type: "array", additionalItems, items, minItems }, options);
|
|
201723
|
+
function RemoveOptionalInstantiate(context, state, type, options) {
|
|
201724
|
+
const instantiatedType = InstantiateType(context, state, type);
|
|
201725
|
+
return RemoveOptionalAction(instantiatedType, options);
|
|
201606
201726
|
}
|
|
201607
|
-
|
|
201608
|
-
|
|
201727
|
+
|
|
201728
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/action/_remove_optional.mjs
|
|
201729
|
+
function RemoveOptionalDeferred(type, options = {}) {
|
|
201730
|
+
return Deferred("RemoveOptional", [type], options);
|
|
201609
201731
|
}
|
|
201610
|
-
function
|
|
201611
|
-
return
|
|
201732
|
+
function RemoveOptional(type, options = {}) {
|
|
201733
|
+
return RemoveOptionalAction(type, options);
|
|
201612
201734
|
}
|
|
201613
201735
|
|
|
201614
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
201736
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/tuple/to_object.mjs
|
|
201615
201737
|
function TupleElementsToProperties(types2) {
|
|
201616
201738
|
const result = types2.reduceRight((result2, right, index) => {
|
|
201617
201739
|
return { [index]: right, ...result2 };
|
|
@@ -201624,7 +201746,7 @@ function TupleToObject(type) {
|
|
|
201624
201746
|
return result;
|
|
201625
201747
|
}
|
|
201626
201748
|
|
|
201627
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
201749
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/evaluate/composite.mjs
|
|
201628
201750
|
function IsReadonlyProperty(left, right) {
|
|
201629
201751
|
return IsReadonly(left) ? IsReadonly(right) ? true : false : false;
|
|
201630
201752
|
}
|
|
@@ -201635,8 +201757,8 @@ function CompositeProperty(left, right) {
|
|
|
201635
201757
|
const isReadonly = IsReadonlyProperty(left, right);
|
|
201636
201758
|
const isOptional = IsOptionalProperty(left, right);
|
|
201637
201759
|
const evaluated = EvaluateIntersect([left, right]);
|
|
201638
|
-
const property =
|
|
201639
|
-
return isReadonly && isOptional ?
|
|
201760
|
+
const property = RemoveReadonly(RemoveOptional(evaluated));
|
|
201761
|
+
return isReadonly && isOptional ? AddReadonly(AddOptional(property)) : isReadonly && !isOptional ? AddReadonly(property) : !isReadonly && isOptional ? AddOptional(property) : property;
|
|
201640
201762
|
}
|
|
201641
201763
|
function CompositePropertyKey(left, right, key) {
|
|
201642
201764
|
return key in left ? key in right ? CompositeProperty(left[key], right[key]) : left[key] : (key in right) ? right[key] : Never();
|
|
@@ -201658,13 +201780,13 @@ function Composite(left, right) {
|
|
|
201658
201780
|
return _Object_(properties);
|
|
201659
201781
|
}
|
|
201660
201782
|
|
|
201661
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
201783
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/evaluate/narrow.mjs
|
|
201662
201784
|
function Narrow(left, right) {
|
|
201663
201785
|
const result = Compare(left, right);
|
|
201664
201786
|
return exports_guard.IsEqual(result, ResultLeftInside) ? left : exports_guard.IsEqual(result, ResultRightInside) ? right : exports_guard.IsEqual(result, ResultEqual) ? right : Never();
|
|
201665
201787
|
}
|
|
201666
201788
|
|
|
201667
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
201789
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/evaluate/distribute.mjs
|
|
201668
201790
|
function IsObjectLike(type) {
|
|
201669
201791
|
return IsObject2(type) || IsTuple(type);
|
|
201670
201792
|
}
|
|
@@ -201684,65 +201806,114 @@ function DistributeOperation(left, right) {
|
|
|
201684
201806
|
return result;
|
|
201685
201807
|
}
|
|
201686
201808
|
function DistributeType(type, types2, result = []) {
|
|
201687
|
-
return exports_guard.
|
|
201809
|
+
return exports_guard.ShiftLeft(types2, (left, right) => DistributeType(type, right, [...result, DistributeOperation(type, left)]), () => exports_guard.IsEqual(result.length, 0) ? [type] : result);
|
|
201688
201810
|
}
|
|
201689
201811
|
function DistributeUnion(types2, distribution, result = []) {
|
|
201690
|
-
return exports_guard.
|
|
201812
|
+
return exports_guard.ShiftLeft(types2, (left, right) => DistributeUnion(right, distribution, [...result, ...Distribute([left], distribution)]), () => result);
|
|
201691
201813
|
}
|
|
201692
201814
|
function Distribute(types2, result = []) {
|
|
201693
|
-
return exports_guard.
|
|
201815
|
+
return exports_guard.ShiftLeft(types2, (left, right) => IsUnion(left) ? Distribute(right, DistributeUnion(left.anyOf, result)) : Distribute(right, DistributeType(left, result)), () => result);
|
|
201816
|
+
}
|
|
201817
|
+
|
|
201818
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/exclude/operation.mjs
|
|
201819
|
+
function ExcludeType(left, right) {
|
|
201820
|
+
const check2 = Extends({}, left, right);
|
|
201821
|
+
const result = exports_result.IsExtendsTrueLike(check2) ? [] : [left];
|
|
201822
|
+
return result;
|
|
201823
|
+
}
|
|
201824
|
+
function ExcludeUnion(types2, right) {
|
|
201825
|
+
return types2.reduce((result, head) => {
|
|
201826
|
+
return [...result, ...ExcludeType(head, right)];
|
|
201827
|
+
}, []);
|
|
201828
|
+
}
|
|
201829
|
+
function ExcludeOperation(left, right) {
|
|
201830
|
+
const evaluated = EvaluateType(left);
|
|
201831
|
+
const canonical = IsUnion(evaluated) ? evaluated.anyOf : [evaluated];
|
|
201832
|
+
const remaining = ExcludeUnion(canonical, right);
|
|
201833
|
+
const result = EvaluateUnion(remaining);
|
|
201834
|
+
return result;
|
|
201694
201835
|
}
|
|
201695
201836
|
|
|
201696
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
201837
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/evaluate/evaluate.mjs
|
|
201838
|
+
function EvaluateDependent(if_, then_, else_) {
|
|
201839
|
+
const intersect = Intersect([if_, then_]);
|
|
201840
|
+
const excluded = ExcludeOperation(else_, if_);
|
|
201841
|
+
const result = EvaluateUnion([intersect, excluded]);
|
|
201842
|
+
return result;
|
|
201843
|
+
}
|
|
201844
|
+
function EvaluateEnum(values) {
|
|
201845
|
+
const result = values.map((value) => Literal(value));
|
|
201846
|
+
return EvaluateUnion(result);
|
|
201847
|
+
}
|
|
201697
201848
|
function EvaluateIntersect(types2) {
|
|
201698
201849
|
const distribution = Distribute(types2);
|
|
201699
|
-
const
|
|
201850
|
+
const broadend = Broaden(distribution);
|
|
201851
|
+
const result = EvaluateUnionFast(broadend);
|
|
201852
|
+
return result;
|
|
201853
|
+
}
|
|
201854
|
+
function EvaluateTemplateLiteral(pattern) {
|
|
201855
|
+
const evaluated = TemplateLiteralDecode(pattern);
|
|
201856
|
+
const result = EvaluateType(evaluated);
|
|
201700
201857
|
return result;
|
|
201701
201858
|
}
|
|
201702
201859
|
function EvaluateUnion(types2) {
|
|
201703
|
-
const
|
|
201860
|
+
const broadend = Broaden(types2);
|
|
201861
|
+
const result = EvaluateUnionFast(broadend);
|
|
201704
201862
|
return result;
|
|
201705
201863
|
}
|
|
201706
201864
|
function EvaluateType(type) {
|
|
201707
|
-
return IsIntersect(type) ? EvaluateIntersect(type.allOf) : IsUnion(type) ? EvaluateUnion(type.anyOf) : type;
|
|
201865
|
+
return IsDependent(type) ? EvaluateDependent(type.if, type.then, type.else) : IsEnum(type) ? EvaluateEnum(type.enum) : IsIntersect(type) ? EvaluateIntersect(type.allOf) : IsTemplateLiteral(type) ? EvaluateTemplateLiteral(type.pattern) : IsUnion(type) ? EvaluateUnion(type.anyOf) : type;
|
|
201708
201866
|
}
|
|
201709
201867
|
function EvaluateUnionFast(types2) {
|
|
201710
201868
|
const result = exports_guard.IsEqual(types2.length, 1) ? types2[0] : exports_guard.IsEqual(types2.length, 0) ? Never() : Union(types2);
|
|
201711
201869
|
return result;
|
|
201712
201870
|
}
|
|
201713
201871
|
|
|
201714
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
201872
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/record/from_key_enum.mjs
|
|
201873
|
+
function FromEnumKey(values, value) {
|
|
201874
|
+
const unionKey = EvaluateEnum(values);
|
|
201875
|
+
const result = FromKey(unionKey, value);
|
|
201876
|
+
return result;
|
|
201877
|
+
}
|
|
201878
|
+
|
|
201879
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/record/from_key_integer.mjs
|
|
201880
|
+
function FromIntegerKey(_key, value) {
|
|
201881
|
+
const result = CreateRecord(IntegerKey, value);
|
|
201882
|
+
return result;
|
|
201883
|
+
}
|
|
201884
|
+
|
|
201885
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/record/from_key_intersect.mjs
|
|
201715
201886
|
function FromIntersectKey(types2, value) {
|
|
201716
201887
|
const evaluatedKey = EvaluateIntersect(types2);
|
|
201717
201888
|
const result = FromKey(evaluatedKey, value);
|
|
201718
201889
|
return result;
|
|
201719
201890
|
}
|
|
201720
201891
|
|
|
201721
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
201892
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/record/from_key_literal.mjs
|
|
201722
201893
|
function FromLiteralKey(key, value) {
|
|
201723
201894
|
return exports_guard.IsString(key) || exports_guard.IsNumber(key) ? _Object_({ [key]: value }) : exports_guard.IsEqual(key, false) ? _Object_({ false: value }) : exports_guard.IsEqual(key, true) ? _Object_({ true: value }) : _Object_({});
|
|
201724
201895
|
}
|
|
201725
201896
|
|
|
201726
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
201897
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/record/from_key_number.mjs
|
|
201727
201898
|
function FromNumberKey(_key, value) {
|
|
201728
201899
|
const result = CreateRecord(NumberKey, value);
|
|
201729
201900
|
return result;
|
|
201730
201901
|
}
|
|
201731
201902
|
|
|
201732
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
201903
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/record/from_key_string.mjs
|
|
201733
201904
|
function FromStringKey(key, value) {
|
|
201734
201905
|
return exports_guard.HasPropertyKey(key, "pattern") && (exports_guard.IsString(key.pattern) || key.pattern instanceof RegExp) ? CreateRecord(key.pattern.toString(), value) : CreateRecord(StringKey, value);
|
|
201735
201906
|
}
|
|
201736
201907
|
|
|
201737
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
201908
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/record/from_key_template_literal.mjs
|
|
201738
201909
|
function FromTemplateKey(pattern, value) {
|
|
201739
201910
|
const types2 = ParsePatternIntoTypes(pattern);
|
|
201740
201911
|
const finite = IsTemplateLiteralFinite(types2);
|
|
201741
|
-
const result = finite ? FromKey(
|
|
201912
|
+
const result = finite ? FromKey(EvaluateTemplateLiteral(pattern), value) : CreateRecord(pattern, value);
|
|
201742
201913
|
return result;
|
|
201743
201914
|
}
|
|
201744
201915
|
|
|
201745
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
201916
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/evaluate/flatten.mjs
|
|
201746
201917
|
function FlattenType(type) {
|
|
201747
201918
|
const result = IsUnion(type) ? Flatten(type.anyOf) : [type];
|
|
201748
201919
|
return result;
|
|
@@ -201753,9 +201924,9 @@ function Flatten(types2) {
|
|
|
201753
201924
|
}, []);
|
|
201754
201925
|
}
|
|
201755
201926
|
|
|
201756
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
201927
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/record/from_key_union.mjs
|
|
201757
201928
|
function StringOrNumberCheck(types2) {
|
|
201758
|
-
return types2.some((type) =>
|
|
201929
|
+
return types2.some((type) => IsString3(type) || IsNumber3(type) || IsInteger2(type));
|
|
201759
201930
|
}
|
|
201760
201931
|
function TryBuildRecord(types2, value) {
|
|
201761
201932
|
return exports_guard.IsEqual(StringOrNumberCheck(types2), true) ? CreateRecord(StringKey, value) : undefined;
|
|
@@ -201776,13 +201947,13 @@ function FromUnionKey(types2, value) {
|
|
|
201776
201947
|
return IsSchema(record2) ? record2 : CreateObject(flattened, value);
|
|
201777
201948
|
}
|
|
201778
201949
|
|
|
201779
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
201950
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/record/from_key.mjs
|
|
201780
201951
|
function FromKey(key, value) {
|
|
201781
|
-
const result = IsAny(key) ? FromAnyKey(value) :
|
|
201952
|
+
const result = IsAny(key) ? FromAnyKey(value) : IsBoolean3(key) ? FromBooleanKey(value) : IsEnum(key) ? FromEnumKey(key.enum, value) : IsInteger2(key) ? FromIntegerKey(key, value) : IsIntersect(key) ? FromIntersectKey(key.allOf, value) : IsLiteral(key) ? FromLiteralKey(key.const, value) : IsNumber3(key) ? FromNumberKey(key, value) : IsUnion(key) ? FromUnionKey(key.anyOf, value) : IsString3(key) ? FromStringKey(key, value) : IsTemplateLiteral(key) ? FromTemplateKey(key.pattern, value) : _Object_({});
|
|
201782
201953
|
return result;
|
|
201783
201954
|
}
|
|
201784
201955
|
|
|
201785
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
201956
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/record/instantiate.mjs
|
|
201786
201957
|
function RecordAction(key, value, options) {
|
|
201787
201958
|
const result = CanInstantiate([key]) ? exports_memory.Update(FromKey(key, value), {}, options) : RecordDeferred(key, value, options);
|
|
201788
201959
|
return result;
|
|
@@ -201793,7 +201964,7 @@ function RecordInstantiate(context, state, key, value, options) {
|
|
|
201793
201964
|
return RecordAction(instantiatedKey, instantiatedValue, options);
|
|
201794
201965
|
}
|
|
201795
201966
|
|
|
201796
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
201967
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/types/record.mjs
|
|
201797
201968
|
var IntegerKey = `^${IntegerPattern}$`;
|
|
201798
201969
|
var NumberKey = `^${NumberPattern}$`;
|
|
201799
201970
|
var StringKey = `^${StringPattern}$`;
|
|
@@ -201803,15 +201974,19 @@ function RecordDeferred(key, value, options = {}) {
|
|
|
201803
201974
|
function Record(key, value, options = {}) {
|
|
201804
201975
|
return RecordAction(key, value, options);
|
|
201805
201976
|
}
|
|
201806
|
-
function RecordFromPattern(
|
|
201807
|
-
return CreateRecord(
|
|
201977
|
+
function RecordFromPattern(pattern, value) {
|
|
201978
|
+
return CreateRecord(pattern, value);
|
|
201979
|
+
}
|
|
201980
|
+
function RecordPatternToType(pattern) {
|
|
201981
|
+
const result = exports_guard.IsEqual(pattern, StringKey) ? String2() : exports_guard.IsEqual(pattern, IntegerKey) ? Integer() : exports_guard.IsEqual(pattern, NumberKey) ? Number2() : TemplateLiteralDecodeUnsafe(pattern);
|
|
201982
|
+
return result;
|
|
201808
201983
|
}
|
|
201809
201984
|
function RecordPattern(type) {
|
|
201810
201985
|
return exports_guard.Keys(type.patternProperties)[0];
|
|
201811
201986
|
}
|
|
201812
201987
|
function RecordKey(type) {
|
|
201813
201988
|
const pattern = RecordPattern(type);
|
|
201814
|
-
const result =
|
|
201989
|
+
const result = RecordPatternToType(pattern);
|
|
201815
201990
|
return result;
|
|
201816
201991
|
}
|
|
201817
201992
|
function RecordValue(type) {
|
|
@@ -201820,37 +201995,37 @@ function RecordValue(type) {
|
|
|
201820
201995
|
function IsRecord(value) {
|
|
201821
201996
|
return IsKind(value, "Record");
|
|
201822
201997
|
}
|
|
201823
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
201998
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/types/rest.mjs
|
|
201824
201999
|
function Rest(type) {
|
|
201825
202000
|
return exports_memory.Create({ "~kind": "Rest" }, { type: "rest", items: type }, {});
|
|
201826
202001
|
}
|
|
201827
202002
|
function IsRest(value) {
|
|
201828
202003
|
return IsKind(value, "Rest");
|
|
201829
202004
|
}
|
|
201830
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
202005
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/types/this.mjs
|
|
201831
202006
|
function This(options) {
|
|
201832
202007
|
return exports_memory.Create({ ["~kind"]: "This" }, { $ref: "#" }, options);
|
|
201833
202008
|
}
|
|
201834
202009
|
function IsThis(value) {
|
|
201835
202010
|
return IsKind(value, "This");
|
|
201836
202011
|
}
|
|
201837
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
202012
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/types/undefined.mjs
|
|
201838
202013
|
function Undefined(options) {
|
|
201839
202014
|
return exports_memory.Create({ "~kind": "Undefined" }, { type: "undefined" }, options);
|
|
201840
202015
|
}
|
|
201841
202016
|
function IsUndefined2(value) {
|
|
201842
202017
|
return IsKind(value, "Undefined");
|
|
201843
202018
|
}
|
|
201844
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
202019
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/types/void.mjs
|
|
201845
202020
|
function Void(options) {
|
|
201846
202021
|
return exports_memory.Create({ "~kind": "Void" }, { type: "void" }, options);
|
|
201847
202022
|
}
|
|
201848
202023
|
function IsVoid(value) {
|
|
201849
202024
|
return IsKind(value, "Void");
|
|
201850
202025
|
}
|
|
201851
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
202026
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/script/mapping.mjs
|
|
201852
202027
|
function IntrinsicOrCall(ref2, parameters) {
|
|
201853
|
-
return exports_guard.IsEqual(ref2, "Array") ? _Array_(parameters[0]) : exports_guard.IsEqual(ref2, "
|
|
202028
|
+
return exports_guard.IsEqual(ref2, "Array") ? _Array_(parameters[0]) : exports_guard.IsEqual(ref2, "Capitalize") ? CapitalizeDeferred(parameters[0]) : exports_guard.IsEqual(ref2, "ConstructorParameters") ? ConstructorParametersDeferred(parameters[0]) : exports_guard.IsEqual(ref2, "Evaluate") ? EvaluateDeferred(parameters[0]) : exports_guard.IsEqual(ref2, "Exclude") ? ExcludeDeferred(parameters[0], parameters[1]) : exports_guard.IsEqual(ref2, "Extract") ? ExtractDeferred(parameters[0], parameters[1]) : exports_guard.IsEqual(ref2, "Index") ? IndexDeferred(parameters[0], parameters[1]) : exports_guard.IsEqual(ref2, "InstanceType") ? InstanceTypeDeferred(parameters[0]) : exports_guard.IsEqual(ref2, "Lowercase") ? LowercaseDeferred(parameters[0]) : exports_guard.IsEqual(ref2, "NonNullable") ? NonNullableDeferred(parameters[0]) : exports_guard.IsEqual(ref2, "Omit") ? OmitDeferred(parameters[0], parameters[1]) : exports_guard.IsEqual(ref2, "Parameters") ? ParametersDeferred(parameters[0]) : exports_guard.IsEqual(ref2, "Partial") ? PartialDeferred(parameters[0]) : exports_guard.IsEqual(ref2, "Pick") ? PickDeferred(parameters[0], parameters[1]) : exports_guard.IsEqual(ref2, "Readonly") ? ReadonlyObjectDeferred(parameters[0]) : exports_guard.IsEqual(ref2, "KeyOf") ? KeyOfDeferred(parameters[0]) : exports_guard.IsEqual(ref2, "Record") ? RecordDeferred(parameters[0], parameters[1]) : exports_guard.IsEqual(ref2, "Required") ? RequiredDeferred(parameters[0]) : exports_guard.IsEqual(ref2, "ReturnType") ? ReturnTypeDeferred(parameters[0]) : exports_guard.IsEqual(ref2, "Uncapitalize") ? UncapitalizeDeferred(parameters[0]) : exports_guard.IsEqual(ref2, "Uppercase") ? UppercaseDeferred(parameters[0]) : CallConstruct(Ref(ref2), parameters);
|
|
201854
202029
|
}
|
|
201855
202030
|
function Unreachable2() {
|
|
201856
202031
|
throw Error("Unreachable");
|
|
@@ -201939,8 +202114,17 @@ function KeywordVoidMapping(input) {
|
|
|
201939
202114
|
function KeywordThisMapping(input) {
|
|
201940
202115
|
return This();
|
|
201941
202116
|
}
|
|
201942
|
-
function
|
|
201943
|
-
return input;
|
|
202117
|
+
function LiteralBigIntMapping(input) {
|
|
202118
|
+
return Literal(BigInt(input));
|
|
202119
|
+
}
|
|
202120
|
+
function LiteralBooleanMapping(input) {
|
|
202121
|
+
return Literal(exports_guard.IsEqual(input, "true"));
|
|
202122
|
+
}
|
|
202123
|
+
function LiteralNumberMapping(input) {
|
|
202124
|
+
return Literal(parseFloat(input));
|
|
202125
|
+
}
|
|
202126
|
+
function LiteralStringMapping(input) {
|
|
202127
|
+
return Literal(input);
|
|
201944
202128
|
}
|
|
201945
202129
|
function TemplateInterpolateMapping(input) {
|
|
201946
202130
|
return input[1];
|
|
@@ -201957,20 +202141,8 @@ function TemplateLiteralTypesMapping(input) {
|
|
|
201957
202141
|
function TemplateLiteralMapping(input) {
|
|
201958
202142
|
return TemplateLiteralDeferred(input);
|
|
201959
202143
|
}
|
|
201960
|
-
function
|
|
201961
|
-
return
|
|
201962
|
-
}
|
|
201963
|
-
function LiteralBooleanMapping(input) {
|
|
201964
|
-
return Literal(exports_guard.IsEqual(input, "true"));
|
|
201965
|
-
}
|
|
201966
|
-
function LiteralNumberMapping(input) {
|
|
201967
|
-
return Literal(parseFloat(input));
|
|
201968
|
-
}
|
|
201969
|
-
function LiteralStringMapping(input) {
|
|
201970
|
-
return Literal(input);
|
|
201971
|
-
}
|
|
201972
|
-
function LiteralMapping(input) {
|
|
201973
|
-
return input;
|
|
202144
|
+
function DependentMapping(input) {
|
|
202145
|
+
return exports_guard.IsEqual(input.length, 6) ? Dependent(input[1], input[3], input[5]) : Dependent(input[1], input[3], Unknown());
|
|
201974
202146
|
}
|
|
201975
202147
|
function KeyOfMapping(input) {
|
|
201976
202148
|
return input.length > 0;
|
|
@@ -201986,18 +202158,24 @@ function ExtendsMapping(input) {
|
|
|
201986
202158
|
function BaseMapping(input) {
|
|
201987
202159
|
return exports_guard.IsArray(input) && exports_guard.IsEqual(input.length, 3) ? input[1] : input;
|
|
201988
202160
|
}
|
|
201989
|
-
|
|
202161
|
+
function WithMapping(input) {
|
|
202162
|
+
return exports_guard.IsEqual(input.length, 2) ? input[1] : [];
|
|
202163
|
+
}
|
|
202164
|
+
function FactorIndexArray(Type, indexArray) {
|
|
201990
202165
|
return indexArray.reduce((result, left) => {
|
|
201991
202166
|
const _left = left;
|
|
201992
202167
|
return exports_guard.IsEqual(_left.length, 1) ? IndexDeferred(result, _left[0]) : exports_guard.IsEqual(_left.length, 0) ? _Array_(result) : Unreachable2();
|
|
201993
202168
|
}, Type);
|
|
201994
|
-
}
|
|
201995
|
-
|
|
202169
|
+
}
|
|
202170
|
+
function FactorExtends(type, extend2) {
|
|
201996
202171
|
return exports_guard.IsEqual(extend2.length, 3) ? ConditionalDeferred(type, extend2[0], extend2[1], extend2[2]) : type;
|
|
201997
|
-
}
|
|
202172
|
+
}
|
|
202173
|
+
function FactorWith(type, withClause) {
|
|
202174
|
+
return exports_guard.IsArray(withClause) && exports_guard.IsEqual(withClause.length, 0) ? type : WithDeferred(type, withClause);
|
|
202175
|
+
}
|
|
201998
202176
|
function FactorMapping(input) {
|
|
201999
|
-
const [keyOf, type, indexArray, extend2] = input;
|
|
202000
|
-
return keyOf ? FactorExtends(KeyOfDeferred(FactorIndexArray(type, indexArray)), extend2) : FactorExtends(FactorIndexArray(type, indexArray), extend2);
|
|
202177
|
+
const [keyOf, type, indexArray, extend2, withClause] = input;
|
|
202178
|
+
return FactorWith(keyOf ? FactorExtends(KeyOfDeferred(FactorIndexArray(type, indexArray)), extend2) : FactorExtends(FactorIndexArray(type, indexArray), extend2), withClause);
|
|
202001
202179
|
}
|
|
202002
202180
|
function ExprBinaryMapping(left, rest2) {
|
|
202003
202181
|
return exports_guard.IsEqual(rest2.length, 3) ? (() => {
|
|
@@ -202027,7 +202205,7 @@ function ExprMapping(input) {
|
|
|
202027
202205
|
return ExprBinaryMapping(left, rest2);
|
|
202028
202206
|
}
|
|
202029
202207
|
function ExprReadonlyMapping(input) {
|
|
202030
|
-
return
|
|
202208
|
+
return AddImmutableDeferred(input[1]);
|
|
202031
202209
|
}
|
|
202032
202210
|
function ExprPipeMapping(input) {
|
|
202033
202211
|
return input[1];
|
|
@@ -202051,7 +202229,7 @@ function PropertyKeyQuotedMapping(input) {
|
|
|
202051
202229
|
return input;
|
|
202052
202230
|
}
|
|
202053
202231
|
function PropertyKeyIndexMapping(input) {
|
|
202054
|
-
return IsInteger2(input[3]) ? IntegerKey :
|
|
202232
|
+
return IsInteger2(input[3]) ? IntegerKey : IsNumber3(input[3]) ? NumberKey : IsSymbol2(input[3]) ? StringKey : IsString3(input[3]) ? StringKey : Unreachable2();
|
|
202055
202233
|
}
|
|
202056
202234
|
function PropertyKeyMapping(input) {
|
|
202057
202235
|
return input;
|
|
@@ -202065,7 +202243,7 @@ function OptionalMapping(input) {
|
|
|
202065
202243
|
function PropertyMapping(input) {
|
|
202066
202244
|
const [isReadonly, key, isOptional, _colon, type] = input;
|
|
202067
202245
|
return {
|
|
202068
|
-
[key]: isReadonly && isOptional ?
|
|
202246
|
+
[key]: isReadonly && isOptional ? AddReadonlyDeferred(AddOptionalDeferred(type)) : isReadonly && !isOptional ? AddReadonlyDeferred(type) : !isReadonly && isOptional ? AddOptionalDeferred(type) : type
|
|
202069
202247
|
};
|
|
202070
202248
|
}
|
|
202071
202249
|
function PropertyDelimiterMapping(input) {
|
|
@@ -202089,16 +202267,16 @@ function _Object_Mapping(input) {
|
|
|
202089
202267
|
return _Object_(properties2, options);
|
|
202090
202268
|
}
|
|
202091
202269
|
function ElementNamedMapping(input) {
|
|
202092
|
-
return exports_guard.IsEqual(input.length, 5) ?
|
|
202270
|
+
return exports_guard.IsEqual(input.length, 5) ? AddReadonlyDeferred(AddOptionalDeferred(input[4])) : exports_guard.IsEqual(input.length, 3) ? input[2] : exports_guard.IsEqual(input.length, 4) ? exports_guard.IsEqual(input[2], "readonly") ? AddReadonlyDeferred(input[3]) : AddOptionalDeferred(input[3]) : Unreachable2();
|
|
202093
202271
|
}
|
|
202094
202272
|
function ElementReadonlyOptionalMapping(input) {
|
|
202095
|
-
return
|
|
202273
|
+
return AddReadonlyDeferred(AddOptionalDeferred(input[1]));
|
|
202096
202274
|
}
|
|
202097
202275
|
function ElementReadonlyMapping(input) {
|
|
202098
|
-
return
|
|
202276
|
+
return AddReadonlyDeferred(input[1]);
|
|
202099
202277
|
}
|
|
202100
202278
|
function ElementOptionalMapping(input) {
|
|
202101
|
-
return
|
|
202279
|
+
return AddOptionalDeferred(input[0]);
|
|
202102
202280
|
}
|
|
202103
202281
|
function ElementBaseMapping(input) {
|
|
202104
202282
|
return input;
|
|
@@ -202109,17 +202287,17 @@ function ElementMapping(input) {
|
|
|
202109
202287
|
function ElementListMapping(input) {
|
|
202110
202288
|
return Delimited(input);
|
|
202111
202289
|
}
|
|
202112
|
-
function
|
|
202290
|
+
function _Tuple_Mapping(input) {
|
|
202113
202291
|
return Tuple(input[1]);
|
|
202114
202292
|
}
|
|
202115
202293
|
function ParameterReadonlyOptionalMapping(input) {
|
|
202116
|
-
return
|
|
202294
|
+
return AddReadonlyDeferred(AddOptionalDeferred(input[4]));
|
|
202117
202295
|
}
|
|
202118
202296
|
function ParameterReadonlyMapping(input) {
|
|
202119
|
-
return
|
|
202297
|
+
return AddReadonlyDeferred(input[3]);
|
|
202120
202298
|
}
|
|
202121
202299
|
function ParameterOptionalMapping(input) {
|
|
202122
|
-
return
|
|
202300
|
+
return AddOptionalDeferred(input[3]);
|
|
202123
202301
|
}
|
|
202124
202302
|
function ParameterTypeMapping(input) {
|
|
202125
202303
|
return input[2];
|
|
@@ -202136,17 +202314,17 @@ function ParameterListMapping(input) {
|
|
|
202136
202314
|
function _Function_Mapping(input) {
|
|
202137
202315
|
return _Function_(input[1], input[4]);
|
|
202138
202316
|
}
|
|
202139
|
-
function
|
|
202317
|
+
function _Constructor_Mapping(input) {
|
|
202140
202318
|
return Constructor(input[2], input[5]);
|
|
202141
202319
|
}
|
|
202142
202320
|
function ApplyReadonly(state, type) {
|
|
202143
|
-
return exports_guard.IsEqual(state, "remove") ?
|
|
202321
|
+
return exports_guard.IsEqual(state, "remove") ? RemoveReadonlyDeferred(type) : exports_guard.IsEqual(state, "add") ? AddReadonlyDeferred(type) : type;
|
|
202144
202322
|
}
|
|
202145
202323
|
function MappedReadonlyMapping(input) {
|
|
202146
202324
|
return exports_guard.IsEqual(input.length, 2) && exports_guard.IsEqual(input[0], "-") ? "remove" : exports_guard.IsEqual(input.length, 2) && exports_guard.IsEqual(input[0], "+") ? "add" : exports_guard.IsEqual(input.length, 1) ? "add" : "none";
|
|
202147
202325
|
}
|
|
202148
202326
|
function ApplyOptional(state, type) {
|
|
202149
|
-
return exports_guard.IsEqual(state, "remove") ?
|
|
202327
|
+
return exports_guard.IsEqual(state, "remove") ? RemoveOptionalDeferred(type) : exports_guard.IsEqual(state, "add") ? AddOptionalDeferred(type) : type;
|
|
202150
202328
|
}
|
|
202151
202329
|
function MappedOptionalMapping(input) {
|
|
202152
202330
|
return exports_guard.IsEqual(input.length, 2) && exports_guard.IsEqual(input[0], "-") ? "remove" : exports_guard.IsEqual(input.length, 2) && exports_guard.IsEqual(input[0], "+") ? "add" : exports_guard.IsEqual(input.length, 1) ? "add" : "none";
|
|
@@ -202154,48 +202332,51 @@ function MappedOptionalMapping(input) {
|
|
|
202154
202332
|
function MappedAsMapping(input) {
|
|
202155
202333
|
return exports_guard.IsEqual(input.length, 2) ? [input[1]] : [];
|
|
202156
202334
|
}
|
|
202157
|
-
function
|
|
202335
|
+
function _Mapped_Mapping(input) {
|
|
202158
202336
|
return exports_guard.IsArray(input[6]) && exports_guard.IsEqual(input[6].length, 1) ? MappedDeferred(Identifier(input[3]), input[5], input[6][0], ApplyReadonly(input[1], ApplyOptional(input[8], input[10]))) : MappedDeferred(Identifier(input[3]), input[5], Ref(input[3]), ApplyReadonly(input[1], ApplyOptional(input[8], input[10])));
|
|
202159
202337
|
}
|
|
202160
202338
|
function ReferenceMapping(input) {
|
|
202161
202339
|
return Ref(input);
|
|
202162
202340
|
}
|
|
202163
|
-
function
|
|
202164
|
-
return
|
|
202341
|
+
function WithBigIntMapping(input) {
|
|
202342
|
+
return BigInt(input);
|
|
202165
202343
|
}
|
|
202166
|
-
function
|
|
202344
|
+
function WithNumberMapping(input) {
|
|
202167
202345
|
return parseFloat(input);
|
|
202168
202346
|
}
|
|
202169
|
-
function
|
|
202347
|
+
function WithBooleanMapping(input) {
|
|
202170
202348
|
return exports_guard.IsEqual(input, "true");
|
|
202171
202349
|
}
|
|
202172
|
-
function
|
|
202350
|
+
function WithStringMapping(input) {
|
|
202173
202351
|
return input;
|
|
202174
202352
|
}
|
|
202175
|
-
function
|
|
202353
|
+
function WithNullMapping(input) {
|
|
202176
202354
|
return null;
|
|
202177
202355
|
}
|
|
202178
|
-
function
|
|
202356
|
+
function WithUndefinedMapping(input) {
|
|
202357
|
+
return;
|
|
202358
|
+
}
|
|
202359
|
+
function WithPropertyMapping(input) {
|
|
202179
202360
|
return { [input[0]]: input[2] };
|
|
202180
202361
|
}
|
|
202181
|
-
function
|
|
202362
|
+
function WithPropertyListMapping(input) {
|
|
202182
202363
|
return Delimited(input);
|
|
202183
202364
|
}
|
|
202184
|
-
function
|
|
202365
|
+
function WithObjectMappingReduce(propertyList) {
|
|
202185
202366
|
return propertyList.reduce((result, left) => {
|
|
202186
202367
|
return exports_memory.Assign(result, left);
|
|
202187
202368
|
}, {});
|
|
202188
202369
|
}
|
|
202189
|
-
function
|
|
202190
|
-
return
|
|
202370
|
+
function WithObjectMapping(input) {
|
|
202371
|
+
return WithObjectMappingReduce(input[1]);
|
|
202191
202372
|
}
|
|
202192
|
-
function
|
|
202373
|
+
function WithElementListMapping(input) {
|
|
202193
202374
|
return Delimited(input);
|
|
202194
202375
|
}
|
|
202195
|
-
function
|
|
202376
|
+
function WithArrayMapping(input) {
|
|
202196
202377
|
return input[1];
|
|
202197
202378
|
}
|
|
202198
|
-
function
|
|
202379
|
+
function WithValueMapping(input) {
|
|
202199
202380
|
return input;
|
|
202200
202381
|
}
|
|
202201
202382
|
function PatternBigIntMapping(input) {
|
|
@@ -202279,7 +202460,7 @@ function ModuleMapping(input) {
|
|
|
202279
202460
|
function ScriptMapping(input) {
|
|
202280
202461
|
return input;
|
|
202281
202462
|
}
|
|
202282
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
202463
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/script/token/internal/match.mjs
|
|
202283
202464
|
function IsMatch(value) {
|
|
202284
202465
|
return IsEqual(value.length, 2);
|
|
202285
202466
|
}
|
|
@@ -202287,7 +202468,7 @@ function Match2(input, ok, fail) {
|
|
|
202287
202468
|
return IsMatch(input) ? ok(input[0], input[1]) : fail();
|
|
202288
202469
|
}
|
|
202289
202470
|
|
|
202290
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
202471
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/script/token/internal/take.mjs
|
|
202291
202472
|
function TakeVariant(variant, input) {
|
|
202292
202473
|
return IsEqual(input.indexOf(variant), 0) ? [variant, input.slice(variant.length)] : [];
|
|
202293
202474
|
}
|
|
@@ -202300,7 +202481,7 @@ function Take(variants, input) {
|
|
|
202300
202481
|
return [];
|
|
202301
202482
|
}
|
|
202302
202483
|
|
|
202303
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
202484
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/script/token/internal/char.mjs
|
|
202304
202485
|
function Range(start, end) {
|
|
202305
202486
|
return Array.from({ length: end - start + 1 }, (_, i) => String.fromCharCode(start + i));
|
|
202306
202487
|
}
|
|
@@ -202319,7 +202500,7 @@ var Dot = ".";
|
|
|
202319
202500
|
var DollarSign = "$";
|
|
202320
202501
|
var Hyphen = "-";
|
|
202321
202502
|
|
|
202322
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
202503
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/script/token/internal/trim.mjs
|
|
202323
202504
|
var LineComment = "//";
|
|
202324
202505
|
var OpenComment = "/*";
|
|
202325
202506
|
var CloseComment = "*/";
|
|
@@ -202345,12 +202526,12 @@ function Trim(input) {
|
|
|
202345
202526
|
return trimmed.startsWith(OpenComment) ? Trim(DiscardMultilineComment(trimmed.slice(2))) : trimmed.startsWith(LineComment) ? Trim(DiscardLineComment(trimmed.slice(2))) : trimmed;
|
|
202346
202527
|
}
|
|
202347
202528
|
|
|
202348
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
202529
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/script/token/internal/optional.mjs
|
|
202349
202530
|
function Optional2(value, input) {
|
|
202350
202531
|
return Match2(Take([value], input), (Optional3, Rest2) => [Optional3, Rest2], () => ["", input]);
|
|
202351
202532
|
}
|
|
202352
202533
|
|
|
202353
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
202534
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/script/token/internal/many.mjs
|
|
202354
202535
|
function IsDiscard(discard2, input) {
|
|
202355
202536
|
return discard2.includes(input);
|
|
202356
202537
|
}
|
|
@@ -202358,7 +202539,7 @@ function Many(allowed, discard2, input, result = "") {
|
|
|
202358
202539
|
return Match2(Take(allowed, input), (Char, Rest2) => IsDiscard(discard2, Char) ? Many(allowed, discard2, Rest2, result) : Many(allowed, discard2, Rest2, `${result}${Char}`), () => [result, input]);
|
|
202359
202540
|
}
|
|
202360
202541
|
|
|
202361
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
202542
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/script/token/unsigned_integer.mjs
|
|
202362
202543
|
function TakeNonZero(input) {
|
|
202363
202544
|
return Take(NonZero, input);
|
|
202364
202545
|
}
|
|
@@ -202373,7 +202554,7 @@ function UnsignedInteger(input) {
|
|
|
202373
202554
|
return TakeUnsignedInteger(Trim(input));
|
|
202374
202555
|
}
|
|
202375
202556
|
|
|
202376
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
202557
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/script/token/integer.mjs
|
|
202377
202558
|
function TakeSign(input) {
|
|
202378
202559
|
return Optional2(Hyphen, input);
|
|
202379
202560
|
}
|
|
@@ -202384,21 +202565,21 @@ function Integer2(input) {
|
|
|
202384
202565
|
return TakeSignedInteger(Trim(input));
|
|
202385
202566
|
}
|
|
202386
202567
|
|
|
202387
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
202568
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/script/token/bigint.mjs
|
|
202388
202569
|
function TakeBigInt(input) {
|
|
202389
202570
|
return Match2(Integer2(input), (Integer3, IntegerRest) => Match2(Take(["n"], IntegerRest), (_N, NRest) => [`${Integer3}`, NRest], () => []), () => []);
|
|
202390
202571
|
}
|
|
202391
202572
|
function BigInt3(input) {
|
|
202392
202573
|
return TakeBigInt(input);
|
|
202393
202574
|
}
|
|
202394
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
202575
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/script/token/const.mjs
|
|
202395
202576
|
function TakeConst(const_, input) {
|
|
202396
202577
|
return Take([const_], input);
|
|
202397
202578
|
}
|
|
202398
202579
|
function Const(const_, input) {
|
|
202399
202580
|
return IsEqual(const_, "") ? ["", input] : const_.startsWith(NewLine) ? TakeConst(const_, TrimWhitespace(input)) : const_.startsWith(WhiteSpace) ? TakeConst(const_, input) : TakeConst(const_, Trim(input));
|
|
202400
202581
|
}
|
|
202401
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
202582
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/script/token/ident.mjs
|
|
202402
202583
|
var Initial = [...Alpha, UnderScore, DollarSign];
|
|
202403
202584
|
function TakeInitial(input) {
|
|
202404
202585
|
return Take(Initial, input);
|
|
@@ -202413,7 +202594,7 @@ function TakeIdent(input) {
|
|
|
202413
202594
|
function Ident(input) {
|
|
202414
202595
|
return TakeIdent(Trim(input));
|
|
202415
202596
|
}
|
|
202416
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
202597
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/script/token/unsigned_number.mjs
|
|
202417
202598
|
var AllowedDigits2 = [...Digit, UnderScore];
|
|
202418
202599
|
function IsLeadingDot(input) {
|
|
202419
202600
|
return IsMatch(Take([Dot], input));
|
|
@@ -202434,7 +202615,7 @@ function UnsignedNumber(input) {
|
|
|
202434
202615
|
return TakeUnsignedNumber(Trim(input));
|
|
202435
202616
|
}
|
|
202436
202617
|
|
|
202437
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
202618
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/script/token/number.mjs
|
|
202438
202619
|
function TakeSign2(input) {
|
|
202439
202620
|
return Optional2(Hyphen, input);
|
|
202440
202621
|
}
|
|
@@ -202444,19 +202625,19 @@ function TakeSignedNumber(input) {
|
|
|
202444
202625
|
function Number3(input) {
|
|
202445
202626
|
return TakeSignedNumber(Trim(input));
|
|
202446
202627
|
}
|
|
202447
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
202628
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/script/token/until.mjs
|
|
202448
202629
|
function TakeOne(input) {
|
|
202449
202630
|
const result = IsEqual(input, "") ? [] : [input.slice(0, 1), input.slice(1)];
|
|
202450
202631
|
return result;
|
|
202451
202632
|
}
|
|
202452
202633
|
function IsInputMatchSentinal(end, input) {
|
|
202453
|
-
return
|
|
202634
|
+
return ShiftLeft(end, (left, right) => input.startsWith(left) ? true : IsInputMatchSentinal(right, input), () => false);
|
|
202454
202635
|
}
|
|
202455
202636
|
function Until(end, input, result = "") {
|
|
202456
202637
|
return Match2(TakeOne(input), (One, Rest2) => IsInputMatchSentinal(end, input) ? [result, input] : Until(end, Rest2, `${result}${One}`), () => []);
|
|
202457
202638
|
}
|
|
202458
202639
|
|
|
202459
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
202640
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/script/token/span.mjs
|
|
202460
202641
|
function MultiLine(start, end, input) {
|
|
202461
202642
|
return Match2(Take([start], input), (_, Rest2) => Match2(Until([end], Rest2), (Until2, UntilRest) => Match2(Take([end], UntilRest), (_2, Rest3) => [`${Until2}`, Rest3], () => []), () => []), () => []);
|
|
202462
202643
|
}
|
|
@@ -202466,7 +202647,7 @@ function SingleLine(start, end, input) {
|
|
|
202466
202647
|
function Span(start, end, multiLine, input) {
|
|
202467
202648
|
return multiLine ? MultiLine(start, end, Trim(input)) : SingleLine(start, end, Trim(input));
|
|
202468
202649
|
}
|
|
202469
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
202650
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/script/token/string.mjs
|
|
202470
202651
|
function TakeInitial2(quotes, input) {
|
|
202471
202652
|
return Take(quotes, input);
|
|
202472
202653
|
}
|
|
@@ -202479,11 +202660,11 @@ function TakeString(quotes, input) {
|
|
|
202479
202660
|
function String3(quotes, input) {
|
|
202480
202661
|
return TakeString(quotes, Trim(input));
|
|
202481
202662
|
}
|
|
202482
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
202663
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/script/token/until_1.mjs
|
|
202483
202664
|
function Until_1(end, input) {
|
|
202484
202665
|
return Match2(Until(end, input), (Until2, UntilRest) => IsEqual(Until2, "") ? [] : [Until2, UntilRest], () => []);
|
|
202485
202666
|
}
|
|
202486
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
202667
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/script/parser.mjs
|
|
202487
202668
|
var If = (result, left, right = () => []) => result.length === 2 ? left(result) : right();
|
|
202488
202669
|
var GenericParameterExtendsEquals = (input) => If(If(Ident(input), ([_0, input2]) => If(Const("extends", input2), ([_1, input3]) => If(Type(input3), ([_2, input4]) => If(Const("=", input4), ([_3, input5]) => If(Type(input5), ([_4, input6]) => [[_0, _1, _2, _3, _4], input6]))))), ([_0, input2]) => [GenericParameterExtendsEqualsMapping(_0), input2]);
|
|
202489
202670
|
var GenericParameterExtends = (input) => If(If(Ident(input), ([_0, input2]) => If(Const("extends", input2), ([_1, input3]) => If(Type(input3), ([_2, input4]) => [[_0, _1, _2], input4]))), ([_0, input2]) => [GenericParameterExtendsMapping(_0), input2]);
|
|
@@ -202512,23 +202693,23 @@ var KeywordNever = (input) => If(Const("never", input), ([_0, input2]) => [Keywo
|
|
|
202512
202693
|
var KeywordSymbol = (input) => If(Const("symbol", input), ([_0, input2]) => [KeywordSymbolMapping(_0), input2]);
|
|
202513
202694
|
var KeywordVoid = (input) => If(Const("void", input), ([_0, input2]) => [KeywordVoidMapping(_0), input2]);
|
|
202514
202695
|
var KeywordThis = (input) => If(Const("this", input), ([_0, input2]) => [KeywordThisMapping(_0), input2]);
|
|
202515
|
-
var Keyword = (input) => If(If(KeywordString(input), ([_0, input2]) => [_0, input2], () => If(KeywordNumber(input), ([_0, input2]) => [_0, input2], () => If(KeywordBoolean(input), ([_0, input2]) => [_0, input2], () => If(KeywordUndefined(input), ([_0, input2]) => [_0, input2], () => If(KeywordNull(input), ([_0, input2]) => [_0, input2], () => If(KeywordInteger(input), ([_0, input2]) => [_0, input2], () => If(KeywordBigInt(input), ([_0, input2]) => [_0, input2], () => If(KeywordUnknown(input), ([_0, input2]) => [_0, input2], () => If(KeywordAny(input), ([_0, input2]) => [_0, input2], () => If(KeywordObject(input), ([_0, input2]) => [_0, input2], () => If(KeywordNever(input), ([_0, input2]) => [_0, input2], () => If(KeywordSymbol(input), ([_0, input2]) => [_0, input2], () => If(KeywordVoid(input), ([_0, input2]) => [_0, input2], () => If(KeywordThis(input), ([_0, input2]) => [_0, input2], () => [])))))))))))))), ([_0, input2]) => [KeywordMapping(_0), input2]);
|
|
202516
202696
|
var TemplateInterpolate = (input) => If(If(Const("${", input), ([_0, input2]) => If(Type(input2), ([_1, input3]) => If(Const("}", input3), ([_2, input4]) => [[_0, _1, _2], input4]))), ([_0, input2]) => [TemplateInterpolateMapping(_0), input2]);
|
|
202517
202697
|
var TemplateSpan = (input) => If(Until(["${", "`"], input), ([_0, input2]) => [TemplateSpanMapping(_0), input2]);
|
|
202518
202698
|
var TemplateBody = (input) => If(If(If(TemplateSpan(input), ([_0, input2]) => If(TemplateInterpolate(input2), ([_1, input3]) => If(TemplateBody(input3), ([_2, input4]) => [[_0, _1, _2], input4]))), ([_0, input2]) => [_0, input2], () => If(If(TemplateSpan(input), ([_0, input2]) => [[_0], input2]), ([_0, input2]) => [_0, input2], () => If(If(TemplateSpan(input), ([_0, input2]) => [[_0], input2]), ([_0, input2]) => [_0, input2], () => []))), ([_0, input2]) => [TemplateBodyMapping(_0), input2]);
|
|
202519
202699
|
var TemplateLiteralTypes = (input) => If(If(Const("`", input), ([_0, input2]) => If(TemplateBody(input2), ([_1, input3]) => If(Const("`", input3), ([_2, input4]) => [[_0, _1, _2], input4]))), ([_0, input2]) => [TemplateLiteralTypesMapping(_0), input2]);
|
|
202520
202700
|
var TemplateLiteral = (input) => If(TemplateLiteralTypes(input), ([_0, input2]) => [TemplateLiteralMapping(_0), input2]);
|
|
202701
|
+
var Dependent2 = (input) => If(If(If(Const("if", input), ([_0, input2]) => If(Type(input2), ([_1, input3]) => If(Const("then", input3), ([_2, input4]) => If(Type(input4), ([_3, input5]) => If(Const("else", input5), ([_4, input6]) => If(Type(input6), ([_5, input7]) => [[_0, _1, _2, _3, _4, _5], input7])))))), ([_0, input2]) => [_0, input2], () => If(If(Const("if", input), ([_0, input2]) => If(Type(input2), ([_1, input3]) => If(Const("then", input3), ([_2, input4]) => If(Type(input4), ([_3, input5]) => [[_0, _1, _2, _3], input5])))), ([_0, input2]) => [_0, input2], () => [])), ([_0, input2]) => [DependentMapping(_0), input2]);
|
|
202521
202702
|
var LiteralBigInt = (input) => If(BigInt3(input), ([_0, input2]) => [LiteralBigIntMapping(_0), input2]);
|
|
202522
202703
|
var LiteralBoolean = (input) => If(If(Const("true", input), ([_0, input2]) => [_0, input2], () => If(Const("false", input), ([_0, input2]) => [_0, input2], () => [])), ([_0, input2]) => [LiteralBooleanMapping(_0), input2]);
|
|
202523
202704
|
var LiteralNumber = (input) => If(Number3(input), ([_0, input2]) => [LiteralNumberMapping(_0), input2]);
|
|
202524
202705
|
var LiteralString = (input) => If(String3(["'", '"'], input), ([_0, input2]) => [LiteralStringMapping(_0), input2]);
|
|
202525
|
-
var Literal2 = (input) => If(If(LiteralBigInt(input), ([_0, input2]) => [_0, input2], () => If(LiteralBoolean(input), ([_0, input2]) => [_0, input2], () => If(LiteralNumber(input), ([_0, input2]) => [_0, input2], () => If(LiteralString(input), ([_0, input2]) => [_0, input2], () => [])))), ([_0, input2]) => [LiteralMapping(_0), input2]);
|
|
202526
202706
|
var KeyOf = (input) => If(If(If(Const("keyof", input), ([_0, input2]) => [[_0], input2]), ([_0, input2]) => [_0, input2], () => If([[], input], ([_0, input2]) => [_0, input2], () => [])), ([_0, input2]) => [KeyOfMapping(_0), input2]);
|
|
202527
202707
|
var IndexArray_0 = (input, result = []) => If(If(If(Const("[", input), ([_0, input2]) => If(Type(input2), ([_1, input3]) => If(Const("]", input3), ([_2, input4]) => [[_0, _1, _2], input4]))), ([_0, input2]) => [_0, input2], () => If(If(Const("[", input), ([_0, input2]) => If(Const("]", input2), ([_1, input3]) => [[_0, _1], input3])), ([_0, input2]) => [_0, input2], () => [])), ([_0, input2]) => IndexArray_0(input2, [...result, _0]), () => [result, input]);
|
|
202528
202708
|
var IndexArray = (input) => If(IndexArray_0(input), ([_0, input2]) => [IndexArrayMapping(_0), input2]);
|
|
202529
|
-
var
|
|
202530
|
-
var
|
|
202531
|
-
var
|
|
202709
|
+
var Extends2 = (input) => If(If(If(Const("extends", input), ([_0, input2]) => If(Type(input2), ([_1, input3]) => If(Const("?", input3), ([_2, input4]) => If(Type(input4), ([_3, input5]) => If(Const(":", input5), ([_4, input6]) => If(Type(input6), ([_5, input7]) => [[_0, _1, _2, _3, _4, _5], input7])))))), ([_0, input2]) => [_0, input2], () => If([[], input], ([_0, input2]) => [_0, input2], () => [])), ([_0, input2]) => [ExtendsMapping(_0), input2]);
|
|
202710
|
+
var Base = (input) => If(If(If(Const("(", input), ([_0, input2]) => If(Type(input2), ([_1, input3]) => If(Const(")", input3), ([_2, input4]) => [[_0, _1, _2], input4]))), ([_0, input2]) => [_0, input2], () => If(KeywordString(input), ([_0, input2]) => [_0, input2], () => If(KeywordNumber(input), ([_0, input2]) => [_0, input2], () => If(KeywordBoolean(input), ([_0, input2]) => [_0, input2], () => If(KeywordUndefined(input), ([_0, input2]) => [_0, input2], () => If(KeywordNull(input), ([_0, input2]) => [_0, input2], () => If(KeywordInteger(input), ([_0, input2]) => [_0, input2], () => If(KeywordBigInt(input), ([_0, input2]) => [_0, input2], () => If(KeywordUnknown(input), ([_0, input2]) => [_0, input2], () => If(KeywordAny(input), ([_0, input2]) => [_0, input2], () => If(KeywordObject(input), ([_0, input2]) => [_0, input2], () => If(KeywordNever(input), ([_0, input2]) => [_0, input2], () => If(KeywordSymbol(input), ([_0, input2]) => [_0, input2], () => If(KeywordVoid(input), ([_0, input2]) => [_0, input2], () => If(KeywordThis(input), ([_0, input2]) => [_0, input2], () => If(LiteralBigInt(input), ([_0, input2]) => [_0, input2], () => If(LiteralBoolean(input), ([_0, input2]) => [_0, input2], () => If(LiteralNumber(input), ([_0, input2]) => [_0, input2], () => If(LiteralString(input), ([_0, input2]) => [_0, input2], () => If(TemplateLiteral(input), ([_0, input2]) => [_0, input2], () => If(Dependent2(input), ([_0, input2]) => [_0, input2], () => If(_Object_2(input), ([_0, input2]) => [_0, input2], () => If(_Tuple_(input), ([_0, input2]) => [_0, input2], () => If(_Constructor_(input), ([_0, input2]) => [_0, input2], () => If(_Function_2(input), ([_0, input2]) => [_0, input2], () => If(_Mapped_(input), ([_0, input2]) => [_0, input2], () => If(GenericCall(input), ([_0, input2]) => [_0, input2], () => If(Reference(input), ([_0, input2]) => [_0, input2], () => [])))))))))))))))))))))))))))), ([_0, input2]) => [BaseMapping(_0), input2]);
|
|
202711
|
+
var With = (input) => If(If(If(Const("with", input), ([_0, input2]) => If(WithObject(input2), ([_1, input3]) => [[_0, _1], input3])), ([_0, input2]) => [_0, input2], () => If([[], input], ([_0, input2]) => [_0, input2], () => [])), ([_0, input2]) => [WithMapping(_0), input2]);
|
|
202712
|
+
var Factor = (input) => If(If(KeyOf(input), ([_0, input2]) => If(Base(input2), ([_1, input3]) => If(IndexArray(input3), ([_2, input4]) => If(Extends2(input4), ([_3, input5]) => If(With(input5), ([_4, input6]) => [[_0, _1, _2, _3, _4], input6]))))), ([_0, input2]) => [FactorMapping(_0), input2]);
|
|
202532
202713
|
var ExprTermTail = (input) => If(If(If(Const("&", input), ([_0, input2]) => If(Factor(input2), ([_1, input3]) => If(ExprTermTail(input3), ([_2, input4]) => [[_0, _1, _2], input4]))), ([_0, input2]) => [_0, input2], () => If([[], input], ([_0, input2]) => [_0, input2], () => [])), ([_0, input2]) => [ExprTermTailMapping(_0), input2]);
|
|
202533
202714
|
var ExprTerm = (input) => If(If(Factor(input), ([_0, input2]) => If(ExprTermTail(input2), ([_1, input3]) => [[_0, _1], input3])), ([_0, input2]) => [ExprTermMapping(_0), input2]);
|
|
202534
202715
|
var ExprTail = (input) => If(If(If(Const("|", input), ([_0, input2]) => If(ExprTerm(input2), ([_1, input3]) => If(ExprTail(input3), ([_2, input4]) => [[_0, _1, _2], input4]))), ([_0, input2]) => [_0, input2], () => If([[], input], ([_0, input2]) => [_0, input2], () => [])), ([_0, input2]) => [ExprTailMapping(_0), input2]);
|
|
@@ -202562,7 +202743,7 @@ var ElementBase = (input) => If(If(ElementNamed(input), ([_0, input2]) => [_0, i
|
|
|
202562
202743
|
var Element = (input) => If(If(If(Const("...", input), ([_0, input2]) => If(ElementBase(input2), ([_1, input3]) => [[_0, _1], input3])), ([_0, input2]) => [_0, input2], () => If(If(ElementBase(input), ([_0, input2]) => [[_0], input2]), ([_0, input2]) => [_0, input2], () => [])), ([_0, input2]) => [ElementMapping(_0), input2]);
|
|
202563
202744
|
var ElementList_0 = (input, result = []) => If(If(Element(input), ([_0, input2]) => If(Const(",", input2), ([_1, input3]) => [[_0, _1], input3])), ([_0, input2]) => ElementList_0(input2, [...result, _0]), () => [result, input]);
|
|
202564
202745
|
var ElementList = (input) => If(If(ElementList_0(input), ([_0, input2]) => If(If(If(Element(input2), ([_02, input3]) => [[_02], input3]), ([_02, input3]) => [_02, input3], () => If([[], input2], ([_02, input3]) => [_02, input3], () => [])), ([_1, input3]) => [[_0, _1], input3])), ([_0, input2]) => [ElementListMapping(_0), input2]);
|
|
202565
|
-
var
|
|
202746
|
+
var _Tuple_ = (input) => If(If(Const("[", input), ([_0, input2]) => If(ElementList(input2), ([_1, input3]) => If(Const("]", input3), ([_2, input4]) => [[_0, _1, _2], input4]))), ([_0, input2]) => [_Tuple_Mapping(_0), input2]);
|
|
202566
202747
|
var ParameterReadonlyOptional = (input) => If(If(Ident(input), ([_0, input2]) => If(Const("?", input2), ([_1, input3]) => If(Const(":", input3), ([_2, input4]) => If(Const("readonly", input4), ([_3, input5]) => If(Type(input5), ([_4, input6]) => [[_0, _1, _2, _3, _4], input6]))))), ([_0, input2]) => [ParameterReadonlyOptionalMapping(_0), input2]);
|
|
202567
202748
|
var ParameterReadonly = (input) => If(If(Ident(input), ([_0, input2]) => If(Const(":", input2), ([_1, input3]) => If(Const("readonly", input3), ([_2, input4]) => If(Type(input4), ([_3, input5]) => [[_0, _1, _2, _3], input5])))), ([_0, input2]) => [ParameterReadonlyMapping(_0), input2]);
|
|
202568
202749
|
var ParameterOptional = (input) => If(If(Ident(input), ([_0, input2]) => If(Const("?", input2), ([_1, input3]) => If(Const(":", input3), ([_2, input4]) => If(Type(input4), ([_3, input5]) => [[_0, _1, _2, _3], input5])))), ([_0, input2]) => [ParameterOptionalMapping(_0), input2]);
|
|
@@ -202572,31 +202753,32 @@ var Parameter2 = (input) => If(If(If(Const("...", input), ([_0, input2]) => If(P
|
|
|
202572
202753
|
var ParameterList_0 = (input, result = []) => If(If(Parameter2(input), ([_0, input2]) => If(Const(",", input2), ([_1, input3]) => [[_0, _1], input3])), ([_0, input2]) => ParameterList_0(input2, [...result, _0]), () => [result, input]);
|
|
202573
202754
|
var ParameterList = (input) => If(If(ParameterList_0(input), ([_0, input2]) => If(If(If(Parameter2(input2), ([_02, input3]) => [[_02], input3]), ([_02, input3]) => [_02, input3], () => If([[], input2], ([_02, input3]) => [_02, input3], () => [])), ([_1, input3]) => [[_0, _1], input3])), ([_0, input2]) => [ParameterListMapping(_0), input2]);
|
|
202574
202755
|
var _Function_2 = (input) => If(If(Const("(", input), ([_0, input2]) => If(ParameterList(input2), ([_1, input3]) => If(Const(")", input3), ([_2, input4]) => If(Const("=>", input4), ([_3, input5]) => If(Type(input5), ([_4, input6]) => [[_0, _1, _2, _3, _4], input6]))))), ([_0, input2]) => [_Function_Mapping(_0), input2]);
|
|
202575
|
-
var
|
|
202756
|
+
var _Constructor_ = (input) => If(If(Const("new", input), ([_0, input2]) => If(Const("(", input2), ([_1, input3]) => If(ParameterList(input3), ([_2, input4]) => If(Const(")", input4), ([_3, input5]) => If(Const("=>", input5), ([_4, input6]) => If(Type(input6), ([_5, input7]) => [[_0, _1, _2, _3, _4, _5], input7])))))), ([_0, input2]) => [_Constructor_Mapping(_0), input2]);
|
|
202576
202757
|
var MappedReadonly = (input) => If(If(If(Const("+", input), ([_0, input2]) => If(Const("readonly", input2), ([_1, input3]) => [[_0, _1], input3])), ([_0, input2]) => [_0, input2], () => If(If(Const("-", input), ([_0, input2]) => If(Const("readonly", input2), ([_1, input3]) => [[_0, _1], input3])), ([_0, input2]) => [_0, input2], () => If(If(Const("readonly", input), ([_0, input2]) => [[_0], input2]), ([_0, input2]) => [_0, input2], () => If([[], input], ([_0, input2]) => [_0, input2], () => [])))), ([_0, input2]) => [MappedReadonlyMapping(_0), input2]);
|
|
202577
202758
|
var MappedOptional = (input) => If(If(If(Const("+", input), ([_0, input2]) => If(Const("?", input2), ([_1, input3]) => [[_0, _1], input3])), ([_0, input2]) => [_0, input2], () => If(If(Const("-", input), ([_0, input2]) => If(Const("?", input2), ([_1, input3]) => [[_0, _1], input3])), ([_0, input2]) => [_0, input2], () => If(If(Const("?", input), ([_0, input2]) => [[_0], input2]), ([_0, input2]) => [_0, input2], () => If([[], input], ([_0, input2]) => [_0, input2], () => [])))), ([_0, input2]) => [MappedOptionalMapping(_0), input2]);
|
|
202578
202759
|
var MappedAs = (input) => If(If(If(Const("as", input), ([_0, input2]) => If(Type(input2), ([_1, input3]) => [[_0, _1], input3])), ([_0, input2]) => [_0, input2], () => If([[], input], ([_0, input2]) => [_0, input2], () => [])), ([_0, input2]) => [MappedAsMapping(_0), input2]);
|
|
202579
|
-
var
|
|
202760
|
+
var _Mapped_ = (input) => If(If(Const("{", input), ([_0, input2]) => If(MappedReadonly(input2), ([_1, input3]) => If(Const("[", input3), ([_2, input4]) => If(Ident(input4), ([_3, input5]) => If(Const("in", input5), ([_4, input6]) => If(Type(input6), ([_5, input7]) => If(MappedAs(input7), ([_6, input8]) => If(Const("]", input8), ([_7, input9]) => If(MappedOptional(input9), ([_8, input10]) => If(Const(":", input10), ([_9, input11]) => If(Type(input11), ([_10, input12]) => If(OptionalSemiColon(input12), ([_11, input13]) => If(Const("}", input13), ([_12, input14]) => [[_0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12], input14]))))))))))))), ([_0, input2]) => [_Mapped_Mapping(_0), input2]);
|
|
202580
202761
|
var Reference = (input) => If(Ident(input), ([_0, input2]) => [ReferenceMapping(_0), input2]);
|
|
202581
|
-
var
|
|
202582
|
-
var
|
|
202583
|
-
var
|
|
202584
|
-
var
|
|
202585
|
-
var
|
|
202586
|
-
var
|
|
202587
|
-
var
|
|
202588
|
-
var
|
|
202589
|
-
var
|
|
202590
|
-
var
|
|
202591
|
-
var
|
|
202592
|
-
var
|
|
202593
|
-
var
|
|
202762
|
+
var WithBigInt = (input) => If(BigInt3(input), ([_0, input2]) => [WithBigIntMapping(_0), input2]);
|
|
202763
|
+
var WithNumber = (input) => If(Number3(input), ([_0, input2]) => [WithNumberMapping(_0), input2]);
|
|
202764
|
+
var WithBoolean = (input) => If(If(Const("true", input), ([_0, input2]) => [_0, input2], () => If(Const("false", input), ([_0, input2]) => [_0, input2], () => [])), ([_0, input2]) => [WithBooleanMapping(_0), input2]);
|
|
202765
|
+
var WithString = (input) => If(String3(['"', "'"], input), ([_0, input2]) => [WithStringMapping(_0), input2]);
|
|
202766
|
+
var WithNull = (input) => If(Const("null", input), ([_0, input2]) => [WithNullMapping(_0), input2]);
|
|
202767
|
+
var WithUndefined = (input) => If(Const("undefined", input), ([_0, input2]) => [WithUndefinedMapping(_0), input2]);
|
|
202768
|
+
var WithProperty = (input) => If(If(PropertyKey(input), ([_0, input2]) => If(Const(":", input2), ([_1, input3]) => If(WithValue(input3), ([_2, input4]) => [[_0, _1, _2], input4]))), ([_0, input2]) => [WithPropertyMapping(_0), input2]);
|
|
202769
|
+
var WithPropertyList_0 = (input, result = []) => If(If(WithProperty(input), ([_0, input2]) => If(PropertyDelimiter(input2), ([_1, input3]) => [[_0, _1], input3])), ([_0, input2]) => WithPropertyList_0(input2, [...result, _0]), () => [result, input]);
|
|
202770
|
+
var WithPropertyList = (input) => If(If(WithPropertyList_0(input), ([_0, input2]) => If(If(If(WithProperty(input2), ([_02, input3]) => [[_02], input3]), ([_02, input3]) => [_02, input3], () => If([[], input2], ([_02, input3]) => [_02, input3], () => [])), ([_1, input3]) => [[_0, _1], input3])), ([_0, input2]) => [WithPropertyListMapping(_0), input2]);
|
|
202771
|
+
var WithObject = (input) => If(If(Const("{", input), ([_0, input2]) => If(WithPropertyList(input2), ([_1, input3]) => If(Const("}", input3), ([_2, input4]) => [[_0, _1, _2], input4]))), ([_0, input2]) => [WithObjectMapping(_0), input2]);
|
|
202772
|
+
var WithElementList_0 = (input, result = []) => If(If(WithValue(input), ([_0, input2]) => If(Const(",", input2), ([_1, input3]) => [[_0, _1], input3])), ([_0, input2]) => WithElementList_0(input2, [...result, _0]), () => [result, input]);
|
|
202773
|
+
var WithElementList = (input) => If(If(WithElementList_0(input), ([_0, input2]) => If(If(If(WithValue(input2), ([_02, input3]) => [[_02], input3]), ([_02, input3]) => [_02, input3], () => If([[], input2], ([_02, input3]) => [_02, input3], () => [])), ([_1, input3]) => [[_0, _1], input3])), ([_0, input2]) => [WithElementListMapping(_0), input2]);
|
|
202774
|
+
var WithArray = (input) => If(If(Const("[", input), ([_0, input2]) => If(WithElementList(input2), ([_1, input3]) => If(Const("]", input3), ([_2, input4]) => [[_0, _1, _2], input4]))), ([_0, input2]) => [WithArrayMapping(_0), input2]);
|
|
202775
|
+
var WithValue = (input) => If(If(WithBigInt(input), ([_0, input2]) => [_0, input2], () => If(WithNumber(input), ([_0, input2]) => [_0, input2], () => If(WithBoolean(input), ([_0, input2]) => [_0, input2], () => If(WithString(input), ([_0, input2]) => [_0, input2], () => If(WithNull(input), ([_0, input2]) => [_0, input2], () => If(WithUndefined(input), ([_0, input2]) => [_0, input2], () => If(WithObject(input), ([_0, input2]) => [_0, input2], () => If(WithArray(input), ([_0, input2]) => [_0, input2], () => [])))))))), ([_0, input2]) => [WithValueMapping(_0), input2]);
|
|
202594
202776
|
var PatternBigInt = (input) => If(Const("-?(?:0|[1-9][0-9]*)n", input), ([_0, input2]) => [PatternBigIntMapping(_0), input2]);
|
|
202595
202777
|
var PatternString = (input) => If(Const(".*", input), ([_0, input2]) => [PatternStringMapping(_0), input2]);
|
|
202596
|
-
var PatternNumber = (input) => If(Const("-?(?:0|[1-9][0-9]*)(
|
|
202778
|
+
var PatternNumber = (input) => If(Const("-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?", input), ([_0, input2]) => [PatternNumberMapping(_0), input2]);
|
|
202597
202779
|
var PatternInteger = (input) => If(Const("-?(?:0|[1-9][0-9]*)", input), ([_0, input2]) => [PatternIntegerMapping(_0), input2]);
|
|
202598
202780
|
var PatternNever = (input) => If(Const("(?!)", input), ([_0, input2]) => [PatternNeverMapping(_0), input2]);
|
|
202599
|
-
var PatternText = (input) => If(Until_1(["-?(?:0|[1-9][0-9]*)n", ".*", "-?(?:0|[1-9][0-9]*)(
|
|
202781
|
+
var PatternText = (input) => If(Until_1(["-?(?:0|[1-9][0-9]*)n", ".*", "-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?", "-?(?:0|[1-9][0-9]*)", "(?!)", "(", ")", "$", "|"], input), ([_0, input2]) => [PatternTextMapping(_0), input2]);
|
|
202600
202782
|
var PatternBase = (input) => If(If(PatternBigInt(input), ([_0, input2]) => [_0, input2], () => If(PatternString(input), ([_0, input2]) => [_0, input2], () => If(PatternNumber(input), ([_0, input2]) => [_0, input2], () => If(PatternInteger(input), ([_0, input2]) => [_0, input2], () => If(PatternNever(input), ([_0, input2]) => [_0, input2], () => If(PatternGroup(input), ([_0, input2]) => [_0, input2], () => If(PatternText(input), ([_0, input2]) => [_0, input2], () => []))))))), ([_0, input2]) => [PatternBaseMapping(_0), input2]);
|
|
202601
202783
|
var PatternGroup = (input) => If(If(Const("(", input), ([_0, input2]) => If(PatternBody(input2), ([_1, input3]) => If(Const(")", input3), ([_2, input4]) => [[_0, _1, _2], input4]))), ([_0, input2]) => [PatternGroupMapping(_0), input2]);
|
|
202602
202784
|
var PatternUnion = (input) => If(If(If(PatternTerm(input), ([_0, input2]) => If(Const("|", input2), ([_1, input3]) => If(PatternUnion(input3), ([_2, input4]) => [[_0, _1, _2], input4]))), ([_0, input2]) => [_0, input2], () => If(If(PatternTerm(input), ([_0, input2]) => [[_0], input2]), ([_0, input2]) => [_0, input2], () => If([[], input], ([_0, input2]) => [_0, input2], () => []))), ([_0, input2]) => [PatternUnionMapping(_0), input2]);
|
|
@@ -202620,14 +202802,14 @@ var ModuleDeclaration = (input) => If(If(ExportKeyword(input), ([_0, input2]) =>
|
|
|
202620
202802
|
var Module = (input) => If(If(ModuleDeclaration(input), ([_0, input2]) => If(ModuleDeclarationList(input2), ([_1, input3]) => [[_0, _1], input3])), ([_0, input2]) => [ModuleMapping(_0), input2]);
|
|
202621
202803
|
var Script = (input) => If(If(Module(input), ([_0, input2]) => [_0, input2], () => If(GenericType(input), ([_0, input2]) => [_0, input2], () => If(Type(input), ([_0, input2]) => [_0, input2], () => []))), ([_0, input2]) => [ScriptMapping(_0), input2]);
|
|
202622
202804
|
|
|
202623
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
202805
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/patterns/template.mjs
|
|
202624
202806
|
function ParseTemplateIntoTypes(template) {
|
|
202625
202807
|
const parsed = TemplateLiteralTypes(`\`${template}\``);
|
|
202626
202808
|
const result = exports_guard.IsEqual(parsed.length, 2) ? parsed[0] : Unreachable();
|
|
202627
202809
|
return result;
|
|
202628
202810
|
}
|
|
202629
202811
|
|
|
202630
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
202812
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/template_literal/encode.mjs
|
|
202631
202813
|
function JoinString(input) {
|
|
202632
202814
|
return input.join("|");
|
|
202633
202815
|
}
|
|
@@ -202660,18 +202842,18 @@ function EncodeTemplateLiteralDeferred(types2, right, pattern) {
|
|
|
202660
202842
|
const result = EncodeType(templateLiteral2, right, pattern);
|
|
202661
202843
|
return result;
|
|
202662
202844
|
}
|
|
202663
|
-
function EncodeEnum(
|
|
202664
|
-
const
|
|
202665
|
-
return
|
|
202845
|
+
function EncodeEnum(values, right, pattern) {
|
|
202846
|
+
const evaluated = EvaluateEnum(values);
|
|
202847
|
+
return EncodeType(evaluated, right, pattern);
|
|
202666
202848
|
}
|
|
202667
202849
|
function EncodeUnion(types2, right, pattern, result = []) {
|
|
202668
|
-
return exports_guard.
|
|
202850
|
+
return exports_guard.ShiftLeft(types2, (head, tail) => EncodeUnion(tail, right, pattern, [...result, EncodeType(head, [], "")]), () => EncodeTypes(right, `${pattern}(${JoinString(result)})`));
|
|
202669
202851
|
}
|
|
202670
202852
|
function EncodeType(type, right, pattern) {
|
|
202671
|
-
return IsEnum(type) ? EncodeEnum(type.enum, right, pattern) : IsInteger2(type) ? EncodeInteger(right, pattern) : IsLiteral(type) ? EncodeLiteral(type.const, right, pattern) : IsBigInt2(type) ? EncodeBigInt(right, pattern) :
|
|
202853
|
+
return IsEnum(type) ? EncodeEnum(type.enum, right, pattern) : IsInteger2(type) ? EncodeInteger(right, pattern) : IsLiteral(type) ? EncodeLiteral(type.const, right, pattern) : IsBigInt2(type) ? EncodeBigInt(right, pattern) : IsBoolean3(type) ? EncodeBoolean(right, pattern) : IsNumber3(type) ? EncodeNumber(right, pattern) : IsString3(type) ? EncodeString(right, pattern) : IsTemplateLiteral(type) ? EncodeTemplateLiteral(type.pattern, right, pattern) : IsTemplateLiteralDeferred(type) ? EncodeTemplateLiteralDeferred(type.parameters[0], right, pattern) : IsUnion(type) ? EncodeUnion(type.anyOf, right, pattern) : NeverPattern;
|
|
202672
202854
|
}
|
|
202673
202855
|
function EncodeTypes(types2, pattern) {
|
|
202674
|
-
return exports_guard.
|
|
202856
|
+
return exports_guard.ShiftLeft(types2, (left, right) => EncodeType(left, right, pattern), () => pattern);
|
|
202675
202857
|
}
|
|
202676
202858
|
function EncodePattern(types2) {
|
|
202677
202859
|
const encoded = EncodeTypes(types2, "");
|
|
@@ -202684,7 +202866,7 @@ function TemplateLiteralEncode(types2) {
|
|
|
202684
202866
|
return result;
|
|
202685
202867
|
}
|
|
202686
202868
|
|
|
202687
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
202869
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/template_literal/instantiate.mjs
|
|
202688
202870
|
function TemplateLiteralAction(types2, options) {
|
|
202689
202871
|
const result = CanInstantiate(types2) ? exports_memory.Update(TemplateLiteralEncode(types2), {}, options) : TemplateLiteralDeferred(types2, options);
|
|
202690
202872
|
return result;
|
|
@@ -202694,7 +202876,7 @@ function TemplateLiteralInstantiate(context, state, types2, options) {
|
|
|
202694
202876
|
return TemplateLiteralAction(instantiatedTypes, options);
|
|
202695
202877
|
}
|
|
202696
202878
|
|
|
202697
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
202879
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/types/template_literal.mjs
|
|
202698
202880
|
function TemplateLiteralDeferred(types2, options = {}) {
|
|
202699
202881
|
return Deferred("TemplateLiteral", [types2], options);
|
|
202700
202882
|
}
|
|
@@ -202716,7 +202898,7 @@ function IsTemplateLiteral(value) {
|
|
|
202716
202898
|
return IsKind(value, "TemplateLiteral");
|
|
202717
202899
|
}
|
|
202718
202900
|
|
|
202719
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
202901
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/extends/result.mjs
|
|
202720
202902
|
var exports_result = {};
|
|
202721
202903
|
__export(exports_result, {
|
|
202722
202904
|
Match: () => Match3,
|
|
@@ -202752,37 +202934,41 @@ function IsExtendsTrueLike(value) {
|
|
|
202752
202934
|
function Match3(result, true_, false_) {
|
|
202753
202935
|
return IsExtendsTrueLike(result) ? true_(result.inferred) : false_();
|
|
202754
202936
|
}
|
|
202755
|
-
|
|
202937
|
+
|
|
202938
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/extends/extends_right.mjs
|
|
202756
202939
|
function ExtendsRightInfer(inferred, name2, left, right) {
|
|
202757
202940
|
return Match3(ExtendsLeft(inferred, left, right), (checkInferred) => ExtendsTrue(exports_memory.Assign(exports_memory.Assign(inferred, checkInferred), { [name2]: left })), () => ExtendsFalse());
|
|
202758
202941
|
}
|
|
202759
202942
|
function ExtendsRightAny(inferred, _left) {
|
|
202760
202943
|
return ExtendsTrue(inferred);
|
|
202761
202944
|
}
|
|
202945
|
+
function ExtendsRightDependent(inferred, left, if_, then_, else_) {
|
|
202946
|
+
return Match3(ExtendsLeft(inferred, left, if_), (inferred2) => Match3(ExtendsLeft(inferred2, left, then_), (inferred3) => ExtendsTrue(inferred3), () => ExtendsFalse()), () => Match3(ExtendsLeft(inferred, left, else_), (inferred2) => ExtendsTrue(inferred2), () => ExtendsFalse()));
|
|
202947
|
+
}
|
|
202762
202948
|
function ExtendsRightEnum(inferred, left, right) {
|
|
202763
|
-
const
|
|
202764
|
-
return ExtendsLeft(inferred, left,
|
|
202949
|
+
const evaluated = EvaluateEnum(right);
|
|
202950
|
+
return ExtendsLeft(inferred, left, evaluated);
|
|
202765
202951
|
}
|
|
202766
202952
|
function ExtendsRightIntersect(inferred, left, right) {
|
|
202767
|
-
return exports_guard.
|
|
202953
|
+
return exports_guard.ShiftLeft(right, (head, tail) => Match3(ExtendsLeft(inferred, left, head), (inferred2) => ExtendsRightIntersect(inferred2, left, tail), () => ExtendsFalse()), () => ExtendsTrue(inferred));
|
|
202768
202954
|
}
|
|
202769
202955
|
function ExtendsRightTemplateLiteral(inferred, left, right) {
|
|
202770
|
-
const
|
|
202771
|
-
return ExtendsLeft(inferred, left,
|
|
202956
|
+
const evaluated = EvaluateTemplateLiteral(right);
|
|
202957
|
+
return ExtendsLeft(inferred, left, evaluated);
|
|
202772
202958
|
}
|
|
202773
202959
|
function ExtendsRightUnion(inferred, left, right) {
|
|
202774
|
-
return exports_guard.
|
|
202960
|
+
return exports_guard.ShiftLeft(right, (head, tail) => Match3(ExtendsLeft(inferred, left, head), (inferred2) => ExtendsTrue(inferred2), () => ExtendsRightUnion(inferred, left, tail)), () => ExtendsFalse());
|
|
202775
202961
|
}
|
|
202776
202962
|
function ExtendsRight(inferred, left, right) {
|
|
202777
|
-
return IsAny(right) ? ExtendsRightAny(inferred, left) : IsEnum(right) ? ExtendsRightEnum(inferred, left, right.enum) : IsInfer(right) ? ExtendsRightInfer(inferred, right.name, left, right.extends) : IsIntersect(right) ? ExtendsRightIntersect(inferred, left, right.allOf) : IsTemplateLiteral(right) ? ExtendsRightTemplateLiteral(inferred, left, right.pattern) : IsUnion(right) ? ExtendsRightUnion(inferred, left, right.anyOf) : IsUnknown(right) ? ExtendsTrue(inferred) : ExtendsFalse();
|
|
202963
|
+
return IsAny(right) ? ExtendsRightAny(inferred, left) : IsDependent(right) ? ExtendsRightDependent(inferred, left, right.if, right.then, right.else) : IsEnum(right) ? ExtendsRightEnum(inferred, left, right.enum) : IsInfer(right) ? ExtendsRightInfer(inferred, right.name, left, right.extends) : IsIntersect(right) ? ExtendsRightIntersect(inferred, left, right.allOf) : IsTemplateLiteral(right) ? ExtendsRightTemplateLiteral(inferred, left, right.pattern) : IsUnion(right) ? ExtendsRightUnion(inferred, left, right.anyOf) : IsUnknown(right) ? ExtendsTrue(inferred) : ExtendsFalse();
|
|
202778
202964
|
}
|
|
202779
202965
|
|
|
202780
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
202966
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/extends/any.mjs
|
|
202781
202967
|
function ExtendsAny(inferred, left, right) {
|
|
202782
202968
|
return IsInfer(right) ? ExtendsRight(inferred, left, right) : IsAny(right) ? ExtendsTrue(inferred) : IsUnknown(right) ? ExtendsTrue(inferred) : ExtendsUnion(inferred);
|
|
202783
202969
|
}
|
|
202784
202970
|
|
|
202785
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
202971
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/extends/array.mjs
|
|
202786
202972
|
function ExtendsImmutable(left, right) {
|
|
202787
202973
|
const isImmutableLeft = IsImmutable(left);
|
|
202788
202974
|
const isImmutableRight = IsImmutable(right);
|
|
@@ -202792,22 +202978,17 @@ function ExtendsArray(inferred, arrayLeft, left, right) {
|
|
|
202792
202978
|
return IsArray2(right) ? ExtendsImmutable(arrayLeft, right) ? ExtendsLeft(inferred, left, right.items) : ExtendsFalse() : ExtendsRight(inferred, arrayLeft, right);
|
|
202793
202979
|
}
|
|
202794
202980
|
|
|
202795
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
202796
|
-
function ExtendsAsyncIterator(inferred, left, right) {
|
|
202797
|
-
return IsAsyncIterator2(right) ? ExtendsLeft(inferred, left, right.iteratorItems) : ExtendsRight(inferred, AsyncIterator(left), right);
|
|
202798
|
-
}
|
|
202799
|
-
|
|
202800
|
-
// ../../node_modules/.bun/typebox@1.1.38/node_modules/typebox/build/type/extends/bigint.mjs
|
|
202981
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/extends/bigint.mjs
|
|
202801
202982
|
function ExtendsBigInt(inferred, left, right) {
|
|
202802
202983
|
return IsBigInt2(right) ? ExtendsTrue(inferred) : ExtendsRight(inferred, left, right);
|
|
202803
202984
|
}
|
|
202804
202985
|
|
|
202805
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
202986
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/extends/boolean.mjs
|
|
202806
202987
|
function ExtendsBoolean(inferred, left, right) {
|
|
202807
|
-
return
|
|
202988
|
+
return IsBoolean3(right) ? ExtendsTrue(inferred) : ExtendsRight(inferred, left, right);
|
|
202808
202989
|
}
|
|
202809
202990
|
|
|
202810
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
202991
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/extends/parameters.mjs
|
|
202811
202992
|
function ParameterCompare(inferred, left, leftRest, right, rightRest) {
|
|
202812
202993
|
const checkLeft = IsInfer(right) ? left : right;
|
|
202813
202994
|
const checkRight = IsInfer(right) ? right : left;
|
|
@@ -202816,52 +202997,53 @@ function ParameterCompare(inferred, left, leftRest, right, rightRest) {
|
|
|
202816
202997
|
return !isLeftOptional && isRightOptional ? ExtendsFalse() : Match3(ExtendsLeft(inferred, checkLeft, checkRight), (inferred2) => ExtendsParameters(inferred2, leftRest, rightRest), () => ExtendsFalse());
|
|
202817
202998
|
}
|
|
202818
202999
|
function ParameterRight(inferred, left, leftRest, rightRest) {
|
|
202819
|
-
return exports_guard.
|
|
203000
|
+
return exports_guard.ShiftLeft(rightRest, (head, tail) => ParameterCompare(inferred, left, leftRest, head, tail), () => IsOptional(left) ? ExtendsTrue(inferred) : ExtendsFalse());
|
|
202820
203001
|
}
|
|
202821
203002
|
function ParametersLeft(inferred, left, rightRest) {
|
|
202822
|
-
return exports_guard.
|
|
203003
|
+
return exports_guard.ShiftLeft(left, (head, tail) => ParameterRight(inferred, head, tail, rightRest), () => ExtendsTrue(inferred));
|
|
202823
203004
|
}
|
|
202824
203005
|
function ExtendsParameters(inferred, left, right) {
|
|
202825
203006
|
return ParametersLeft(inferred, left, right);
|
|
202826
203007
|
}
|
|
202827
203008
|
|
|
202828
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
203009
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/extends/return_type.mjs
|
|
202829
203010
|
function ExtendsReturnType(inferred, left, right) {
|
|
202830
203011
|
return IsVoid(right) ? ExtendsTrue(inferred) : ExtendsLeft(inferred, left, right);
|
|
202831
203012
|
}
|
|
202832
203013
|
|
|
202833
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
203014
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/extends/constructor.mjs
|
|
202834
203015
|
function ExtendsConstructor(inferred, parameters, returnType, right) {
|
|
202835
203016
|
return IsAny(right) ? ExtendsTrue(inferred) : IsUnknown(right) ? ExtendsTrue(inferred) : IsConstructor2(right) ? Match3(ExtendsParameters(inferred, parameters, right["parameters"]), (inferred2) => ExtendsReturnType(inferred2, returnType, right["instanceType"]), () => ExtendsFalse()) : ExtendsFalse();
|
|
202836
203017
|
}
|
|
202837
203018
|
|
|
202838
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
203019
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/extends/dependent.mjs
|
|
203020
|
+
function ExtendsDependent(inferred, if_, then_, else_, right) {
|
|
203021
|
+
return Match3(ExtendsLeft(inferred, if_, right), () => ExtendsLeft(inferred, then_, right), () => ExtendsLeft(inferred, else_, right));
|
|
203022
|
+
}
|
|
203023
|
+
|
|
203024
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/extends/enum.mjs
|
|
202839
203025
|
function ExtendsEnum(inferred, left, right) {
|
|
202840
|
-
|
|
203026
|
+
const evaluated = EvaluateEnum(left);
|
|
203027
|
+
return ExtendsLeft(inferred, evaluated, right);
|
|
202841
203028
|
}
|
|
202842
203029
|
|
|
202843
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
203030
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/extends/function.mjs
|
|
202844
203031
|
function ExtendsFunction(inferred, parameters, returnType, right) {
|
|
202845
203032
|
return IsAny(right) ? ExtendsTrue(inferred) : IsUnknown(right) ? ExtendsTrue(inferred) : IsFunction2(right) ? Match3(ExtendsParameters(inferred, parameters, right["parameters"]), (inferred2) => ExtendsReturnType(inferred2, returnType, right["returnType"]), () => ExtendsFalse()) : ExtendsFalse();
|
|
202846
203033
|
}
|
|
202847
203034
|
|
|
202848
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
203035
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/extends/integer.mjs
|
|
202849
203036
|
function ExtendsInteger(inferred, left, right) {
|
|
202850
|
-
return IsInteger2(right) ? ExtendsTrue(inferred) :
|
|
203037
|
+
return IsInteger2(right) ? ExtendsTrue(inferred) : IsNumber3(right) ? ExtendsTrue(inferred) : ExtendsRight(inferred, left, right);
|
|
202851
203038
|
}
|
|
202852
203039
|
|
|
202853
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
203040
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/extends/intersect.mjs
|
|
202854
203041
|
function ExtendsIntersect(inferred, left, right) {
|
|
202855
203042
|
const evaluated = EvaluateIntersect(left);
|
|
202856
203043
|
return ExtendsLeft(inferred, evaluated, right);
|
|
202857
203044
|
}
|
|
202858
203045
|
|
|
202859
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
202860
|
-
function ExtendsIterator(inferred, left, right) {
|
|
202861
|
-
return IsIterator2(right) ? ExtendsLeft(inferred, left, right.iteratorItems) : ExtendsRight(inferred, Iterator(left), right);
|
|
202862
|
-
}
|
|
202863
|
-
|
|
202864
|
-
// ../../node_modules/.bun/typebox@1.1.38/node_modules/typebox/build/type/extends/literal.mjs
|
|
203046
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/extends/literal.mjs
|
|
202865
203047
|
function ExtendsLiteralValue(inferred, left, right) {
|
|
202866
203048
|
return left === right ? ExtendsTrue(inferred) : ExtendsFalse();
|
|
202867
203049
|
}
|
|
@@ -202869,34 +203051,34 @@ function ExtendsLiteralBigInt(inferred, left, right) {
|
|
|
202869
203051
|
return IsLiteral(right) ? ExtendsLiteralValue(inferred, left, right.const) : IsBigInt2(right) ? ExtendsTrue(inferred) : ExtendsRight(inferred, Literal(left), right);
|
|
202870
203052
|
}
|
|
202871
203053
|
function ExtendsLiteralBoolean(inferred, left, right) {
|
|
202872
|
-
return IsLiteral(right) ? ExtendsLiteralValue(inferred, left, right.const) :
|
|
203054
|
+
return IsLiteral(right) ? ExtendsLiteralValue(inferred, left, right.const) : IsBoolean3(right) ? ExtendsTrue(inferred) : ExtendsRight(inferred, Literal(left), right);
|
|
202873
203055
|
}
|
|
202874
203056
|
function ExtendsLiteralNumber(inferred, left, right) {
|
|
202875
|
-
return IsLiteral(right) ? ExtendsLiteralValue(inferred, left, right.const) :
|
|
203057
|
+
return IsLiteral(right) ? ExtendsLiteralValue(inferred, left, right.const) : IsNumber3(right) ? ExtendsTrue(inferred) : ExtendsRight(inferred, Literal(left), right);
|
|
202876
203058
|
}
|
|
202877
203059
|
function ExtendsLiteralString(inferred, left, right) {
|
|
202878
|
-
return IsLiteral(right) ? ExtendsLiteralValue(inferred, left, right.const) :
|
|
203060
|
+
return IsLiteral(right) ? ExtendsLiteralValue(inferred, left, right.const) : IsString3(right) ? ExtendsTrue(inferred) : ExtendsRight(inferred, Literal(left), right);
|
|
202879
203061
|
}
|
|
202880
203062
|
function ExtendsLiteral(inferred, left, right) {
|
|
202881
203063
|
return exports_guard.IsBigInt(left.const) ? ExtendsLiteralBigInt(inferred, left.const, right) : exports_guard.IsBoolean(left.const) ? ExtendsLiteralBoolean(inferred, left.const, right) : exports_guard.IsNumber(left.const) ? ExtendsLiteralNumber(inferred, left.const, right) : exports_guard.IsString(left.const) ? ExtendsLiteralString(inferred, left.const, right) : Unreachable();
|
|
202882
203064
|
}
|
|
202883
203065
|
|
|
202884
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
203066
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/extends/never.mjs
|
|
202885
203067
|
function ExtendsNever(inferred, left, right) {
|
|
202886
203068
|
return IsInfer(right) ? ExtendsRight(inferred, left, right) : ExtendsTrue(inferred);
|
|
202887
203069
|
}
|
|
202888
203070
|
|
|
202889
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
203071
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/extends/null.mjs
|
|
202890
203072
|
function ExtendsNull(inferred, left, right) {
|
|
202891
203073
|
return IsNull2(right) ? ExtendsTrue(inferred) : ExtendsRight(inferred, left, right);
|
|
202892
203074
|
}
|
|
202893
203075
|
|
|
202894
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
203076
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/extends/number.mjs
|
|
202895
203077
|
function ExtendsNumber(inferred, left, right) {
|
|
202896
|
-
return
|
|
203078
|
+
return IsNumber3(right) ? ExtendsTrue(inferred) : ExtendsRight(inferred, left, right);
|
|
202897
203079
|
}
|
|
202898
203080
|
|
|
202899
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
203081
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/extends/object.mjs
|
|
202900
203082
|
function ExtendsPropertyOptional(inferred, left, right) {
|
|
202901
203083
|
return IsOptional(left) ? IsOptional(right) ? ExtendsTrue(inferred) : ExtendsFalse() : ExtendsTrue(inferred);
|
|
202902
203084
|
}
|
|
@@ -202924,32 +203106,54 @@ function ExtendsProperties(inferred, left, right) {
|
|
|
202924
203106
|
function ExtendsObjectToObject(inferred, left, right) {
|
|
202925
203107
|
return ExtendsProperties(inferred, left, right);
|
|
202926
203108
|
}
|
|
203109
|
+
function RecordMergeInferred(left, right) {
|
|
203110
|
+
return exports_guard.Keys(right).reduce((result, key) => {
|
|
203111
|
+
return {
|
|
203112
|
+
...result,
|
|
203113
|
+
[key]: exports_guard.HasPropertyKey(left, key) ? IsUnion(result[key]) ? Union([...result[key].anyOf, right[key]]) : Union([left[key], right[key]]) : right[key]
|
|
203114
|
+
};
|
|
203115
|
+
}, left);
|
|
203116
|
+
}
|
|
203117
|
+
function ExtendsRecordComparer(properties2, keys, type, result) {
|
|
203118
|
+
return exports_guard.ShiftLeft(keys, (left, right) => Match3(ExtendsLeft({}, properties2[left], type), (inferred) => ExtendsRecordComparer(properties2, right, type, RecordMergeInferred(result, inferred)), () => ExtendsFalse()), () => ExtendsTrue(result));
|
|
203119
|
+
}
|
|
203120
|
+
function ExtendsObjectToRecord(inferred, properties2, _pattern, value) {
|
|
203121
|
+
const keys = exports_guard.Keys(properties2);
|
|
203122
|
+
const result = ExtendsRecordComparer(properties2, keys, value, inferred);
|
|
203123
|
+
return result;
|
|
203124
|
+
}
|
|
202927
203125
|
function ExtendsObject(inferred, left, right) {
|
|
202928
|
-
return IsObject2(right) ? ExtendsObjectToObject(inferred, left, right.properties) : ExtendsRight(inferred, _Object_(left), right);
|
|
203126
|
+
return IsRecord(right) ? ExtendsObjectToRecord(inferred, left, RecordPattern(right), RecordValue(right)) : IsObject2(right) ? ExtendsObjectToObject(inferred, left, right.properties) : ExtendsRight(inferred, _Object_(left), right);
|
|
202929
203127
|
}
|
|
202930
203128
|
|
|
202931
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
202932
|
-
function
|
|
202933
|
-
return
|
|
203129
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/extends/record.mjs
|
|
203130
|
+
function FromObject2(inferred, properties2) {
|
|
203131
|
+
return exports_guard.IsEqual(exports_guard.Keys(properties2).length, 0) ? ExtendsTrue(inferred) : ExtendsFalse();
|
|
203132
|
+
}
|
|
203133
|
+
function FromRecord(inferred, _leftKey, leftValue, _rightKey, rightValue) {
|
|
203134
|
+
return ExtendsLeft(inferred, leftValue, rightValue);
|
|
203135
|
+
}
|
|
203136
|
+
function ExtendsRecord(inferred, leftPattern, leftValue, right) {
|
|
203137
|
+
return IsRecord(right) ? FromRecord(inferred, RecordPatternToType(leftPattern), leftValue, RecordPatternToType(RecordPattern(right)), RecordValue(right)) : IsObject2(right) ? FromObject2(inferred, right.properties) : IsAny(right) ? ExtendsTrue(inferred) : IsUnknown(right) ? ExtendsTrue(inferred) : ExtendsFalse();
|
|
202934
203138
|
}
|
|
202935
203139
|
|
|
202936
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
203140
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/extends/string.mjs
|
|
202937
203141
|
function ExtendsString(inferred, left, right) {
|
|
202938
|
-
return
|
|
203142
|
+
return IsString3(right) ? ExtendsTrue(inferred) : ExtendsRight(inferred, left, right);
|
|
202939
203143
|
}
|
|
202940
203144
|
|
|
202941
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
203145
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/extends/symbol.mjs
|
|
202942
203146
|
function ExtendsSymbol(inferred, left, right) {
|
|
202943
203147
|
return IsSymbol2(right) ? ExtendsTrue(inferred) : ExtendsRight(inferred, left, right);
|
|
202944
203148
|
}
|
|
202945
203149
|
|
|
202946
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
203150
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/extends/template_literal.mjs
|
|
202947
203151
|
function ExtendsTemplateLiteral(inferred, left, right) {
|
|
202948
|
-
const
|
|
202949
|
-
return ExtendsLeft(inferred,
|
|
203152
|
+
const evaluated = EvaluateTemplateLiteral(left);
|
|
203153
|
+
return ExtendsLeft(inferred, evaluated, right);
|
|
202950
203154
|
}
|
|
202951
203155
|
|
|
202952
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
203156
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/extends/inference.mjs
|
|
202953
203157
|
function Inferrable(name2, type) {
|
|
202954
203158
|
return exports_memory.Create({ "~kind": "Inferrable" }, { name: name2, type }, {});
|
|
202955
203159
|
}
|
|
@@ -202963,7 +203167,7 @@ function TryInferable(type) {
|
|
|
202963
203167
|
return IsInfer(type) ? Inferrable(type.name, type.extends) : undefined;
|
|
202964
203168
|
}
|
|
202965
203169
|
function TryInferResults(rest3, right, result = []) {
|
|
202966
|
-
return exports_guard.
|
|
203170
|
+
return exports_guard.ShiftLeft(rest3, (head, tail) => Match3(ExtendsLeft({}, head, right), () => TryInferResults(tail, right, [...result, head]), () => {
|
|
202967
203171
|
return;
|
|
202968
203172
|
}), () => result);
|
|
202969
203173
|
}
|
|
@@ -202976,7 +203180,7 @@ function InferUnionResult(inferred, name2, left, right) {
|
|
|
202976
203180
|
return exports_guard.IsArray(results) ? ExtendsTrue(exports_memory.Assign(inferred, { [name2]: Union(results) })) : ExtendsFalse();
|
|
202977
203181
|
}
|
|
202978
203182
|
|
|
202979
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
203183
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/extends/tuple.mjs
|
|
202980
203184
|
function Reverse(types2) {
|
|
202981
203185
|
return [...types2].reverse();
|
|
202982
203186
|
}
|
|
@@ -202993,61 +203197,61 @@ function ElementsCompare(inferred, reversed, left, leftRest, right, rightRest) {
|
|
|
202993
203197
|
}
|
|
202994
203198
|
function ElementsLeft(inferred, reversed, leftRest, right, rightRest) {
|
|
202995
203199
|
const inferable = TryRestInferable(right);
|
|
202996
|
-
return IsInferable(inferable) ? InferTupleResult(inferred, inferable["name"], ApplyReverse(leftRest, reversed), inferable["type"]) : exports_guard.
|
|
203200
|
+
return IsInferable(inferable) ? InferTupleResult(inferred, inferable["name"], ApplyReverse(leftRest, reversed), inferable["type"]) : exports_guard.ShiftLeft(leftRest, (head, tail) => ElementsCompare(inferred, reversed, head, tail, right, rightRest), () => ExtendsFalse());
|
|
202997
203201
|
}
|
|
202998
203202
|
function ElementsRight(inferred, reversed, leftRest, rightRest) {
|
|
202999
|
-
return exports_guard.
|
|
203203
|
+
return exports_guard.ShiftLeft(rightRest, (head, tail) => ElementsLeft(inferred, reversed, leftRest, head, tail), () => exports_guard.IsEqual(leftRest.length, 0) ? ExtendsTrue(inferred) : ExtendsFalse());
|
|
203000
203204
|
}
|
|
203001
203205
|
function Elements(inferred, reversed, leftRest, rightRest) {
|
|
203002
203206
|
return ElementsRight(inferred, reversed, leftRest, rightRest);
|
|
203003
203207
|
}
|
|
203004
203208
|
function ExtendsTupleToTuple(inferred, left, right) {
|
|
203005
|
-
const instantiatedRight = InstantiateElements(inferred,
|
|
203209
|
+
const instantiatedRight = InstantiateElements(inferred, State([], []), right);
|
|
203006
203210
|
const reversed = Reversed(instantiatedRight);
|
|
203007
203211
|
return Elements(inferred, reversed, ApplyReverse(left, reversed), ApplyReverse(instantiatedRight, reversed));
|
|
203008
203212
|
}
|
|
203009
203213
|
function ExtendsTupleToArray(inferred, left, right) {
|
|
203010
203214
|
const inferrable = TryInferable(right);
|
|
203011
|
-
return IsInferable(inferrable) ? InferUnionResult(inferred, inferrable["name"], left, inferrable["type"]) : exports_guard.
|
|
203215
|
+
return IsInferable(inferrable) ? InferUnionResult(inferred, inferrable["name"], left, inferrable["type"]) : exports_guard.ShiftLeft(left, (head, tail) => Match3(ExtendsLeft(inferred, head, right), (inferred2) => ExtendsTupleToArray(inferred2, tail, right), () => ExtendsFalse()), () => ExtendsTrue(inferred));
|
|
203012
203216
|
}
|
|
203013
203217
|
function ExtendsTuple(inferred, left, right) {
|
|
203014
|
-
const instantiatedLeft = InstantiateElements(inferred,
|
|
203218
|
+
const instantiatedLeft = InstantiateElements(inferred, State([], []), left);
|
|
203015
203219
|
return IsTuple(right) ? ExtendsTupleToTuple(inferred, instantiatedLeft, right.items) : IsArray2(right) ? ExtendsTupleToArray(inferred, instantiatedLeft, right.items) : ExtendsRight(inferred, Tuple(instantiatedLeft), right);
|
|
203016
203220
|
}
|
|
203017
203221
|
|
|
203018
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
203222
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/extends/undefined.mjs
|
|
203019
203223
|
function ExtendsUndefined(inferred, left, right) {
|
|
203020
203224
|
return IsVoid(right) ? ExtendsTrue(inferred) : IsUndefined2(right) ? ExtendsTrue(inferred) : ExtendsRight(inferred, left, right);
|
|
203021
203225
|
}
|
|
203022
203226
|
|
|
203023
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
203227
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/extends/union.mjs
|
|
203024
203228
|
function ExtendsUnionSome(inferred, type, unionTypes) {
|
|
203025
|
-
return exports_guard.
|
|
203229
|
+
return exports_guard.ShiftLeft(unionTypes, (head, tail) => Match3(ExtendsLeft(inferred, type, head), (inferred2) => ExtendsTrue(inferred2), () => ExtendsUnionSome(inferred, type, tail)), () => ExtendsFalse());
|
|
203026
203230
|
}
|
|
203027
203231
|
function ExtendsUnionLeft(inferred, left, right) {
|
|
203028
|
-
return exports_guard.
|
|
203232
|
+
return exports_guard.ShiftLeft(left, (head, tail) => Match3(ExtendsUnionSome(inferred, head, right), (inferred2) => ExtendsUnionLeft(inferred2, tail, right), () => ExtendsFalse()), () => ExtendsTrue(inferred));
|
|
203029
203233
|
}
|
|
203030
203234
|
function ExtendsUnion2(inferred, left, right) {
|
|
203031
203235
|
const inferrable = TryInferable(right);
|
|
203032
203236
|
return IsInferable(inferrable) ? InferUnionResult(inferred, inferrable.name, left, inferrable.type) : IsUnion(right) ? ExtendsUnionLeft(inferred, left, right.anyOf) : ExtendsUnionLeft(inferred, left, [right]);
|
|
203033
203237
|
}
|
|
203034
203238
|
|
|
203035
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
203239
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/extends/unknown.mjs
|
|
203036
203240
|
function ExtendsUnknown(inferred, left, right) {
|
|
203037
203241
|
return IsInfer(right) ? ExtendsRight(inferred, left, right) : IsAny(right) ? ExtendsTrue(inferred) : IsUnknown(right) ? ExtendsTrue(inferred) : ExtendsFalse();
|
|
203038
203242
|
}
|
|
203039
203243
|
|
|
203040
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
203244
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/extends/void.mjs
|
|
203041
203245
|
function ExtendsVoid(inferred, left, right) {
|
|
203042
203246
|
return IsVoid(right) ? ExtendsTrue(inferred) : ExtendsRight(inferred, left, right);
|
|
203043
203247
|
}
|
|
203044
203248
|
|
|
203045
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
203249
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/extends/extends_left.mjs
|
|
203046
203250
|
function ExtendsLeft(inferred, left, right) {
|
|
203047
|
-
return IsAny(left) ? ExtendsAny(inferred, left, right) : IsArray2(left) ? ExtendsArray(inferred, left, left.items, right) :
|
|
203251
|
+
return IsAny(left) ? ExtendsAny(inferred, left, right) : IsArray2(left) ? ExtendsArray(inferred, left, left.items, right) : IsBigInt2(left) ? ExtendsBigInt(inferred, left, right) : IsBoolean3(left) ? ExtendsBoolean(inferred, left, right) : IsConstructor2(left) ? ExtendsConstructor(inferred, left.parameters, left.instanceType, right) : IsDependent(left) ? ExtendsDependent(inferred, left.if, left.then, left.else, right) : IsEnum(left) ? ExtendsEnum(inferred, left.enum, right) : IsFunction2(left) ? ExtendsFunction(inferred, left.parameters, left.returnType, right) : IsInteger2(left) ? ExtendsInteger(inferred, left, right) : IsIntersect(left) ? ExtendsIntersect(inferred, left.allOf, right) : IsLiteral(left) ? ExtendsLiteral(inferred, left, right) : IsNever(left) ? ExtendsNever(inferred, left, right) : IsNull2(left) ? ExtendsNull(inferred, left, right) : IsNumber3(left) ? ExtendsNumber(inferred, left, right) : IsObject2(left) ? ExtendsObject(inferred, left.properties, right) : IsRecord(left) ? ExtendsRecord(inferred, RecordPattern(left), RecordValue(left), right) : IsString3(left) ? ExtendsString(inferred, left, right) : IsSymbol2(left) ? ExtendsSymbol(inferred, left, right) : IsTemplateLiteral(left) ? ExtendsTemplateLiteral(inferred, left.pattern, right) : IsTuple(left) ? ExtendsTuple(inferred, left.items, right) : IsUndefined2(left) ? ExtendsUndefined(inferred, left, right) : IsUnion(left) ? ExtendsUnion2(inferred, left.anyOf, right) : IsUnknown(left) ? ExtendsUnknown(inferred, left, right) : IsVoid(left) ? ExtendsVoid(inferred, left, right) : ExtendsFalse();
|
|
203048
203252
|
}
|
|
203049
203253
|
|
|
203050
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
203254
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/interface/instantiate.mjs
|
|
203051
203255
|
function InterfaceOperation(heritage, properties2) {
|
|
203052
203256
|
const result = EvaluateIntersect([...heritage, _Object_(properties2)]);
|
|
203053
203257
|
return result;
|
|
@@ -203062,7 +203266,7 @@ function InterfaceInstantiate(context, state, heritage, properties2, options) {
|
|
|
203062
203266
|
return InterfaceAction(instantiatedHeritage, instantiatedProperties, options);
|
|
203063
203267
|
}
|
|
203064
203268
|
|
|
203065
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
203269
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/action/interface.mjs
|
|
203066
203270
|
function InterfaceDeferred(heritage, properties2, options = {}) {
|
|
203067
203271
|
return Deferred("Interface", [heritage, properties2], options);
|
|
203068
203272
|
}
|
|
@@ -203073,7 +203277,7 @@ function Interface(heritage, properties2, options = {}) {
|
|
|
203073
203277
|
return InterfaceAction(heritage, properties2, options);
|
|
203074
203278
|
}
|
|
203075
203279
|
|
|
203076
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
203280
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/cyclic/check.mjs
|
|
203077
203281
|
function FromRef(stack, context, ref2) {
|
|
203078
203282
|
return stack.includes(ref2) ? true : FromType3([...stack, ref2], context, context[ref2]);
|
|
203079
203283
|
}
|
|
@@ -203082,20 +203286,20 @@ function FromProperties(stack, context, properties2) {
|
|
|
203082
203286
|
return FromTypes2(stack, context, types2);
|
|
203083
203287
|
}
|
|
203084
203288
|
function FromTypes2(stack, context, types2) {
|
|
203085
|
-
return exports_guard.
|
|
203289
|
+
return exports_guard.ShiftLeft(types2, (left, right) => FromType3(stack, context, left) ? true : FromTypes2(stack, context, right), () => false);
|
|
203086
203290
|
}
|
|
203087
203291
|
function FromType3(stack, context, type) {
|
|
203088
|
-
return IsRef(type) ? FromRef(stack, context, type.$ref) : IsArray2(type) ? FromType3(stack, context, type.items) :
|
|
203292
|
+
return IsRef(type) ? FromRef(stack, context, type.$ref) : IsArray2(type) ? FromType3(stack, context, type.items) : IsConstructor2(type) ? FromTypes2(stack, context, [...type.parameters, type.instanceType]) : IsFunction2(type) ? FromTypes2(stack, context, [...type.parameters, type.returnType]) : IsInterfaceDeferred(type) ? FromProperties(stack, context, type.parameters[1]) : IsIntersect(type) ? FromTypes2(stack, context, type.allOf) : IsObject2(type) ? FromProperties(stack, context, type.properties) : IsUnion(type) ? FromTypes2(stack, context, type.anyOf) : IsTuple(type) ? FromTypes2(stack, context, type.items) : IsRecord(type) ? FromType3(stack, context, RecordValue(type)) : false;
|
|
203089
203293
|
}
|
|
203090
203294
|
function CyclicCheck(stack, context, type) {
|
|
203091
203295
|
const result = FromType3(stack, context, type);
|
|
203092
203296
|
return result;
|
|
203093
203297
|
}
|
|
203094
203298
|
|
|
203095
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
203299
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/cyclic/candidates.mjs
|
|
203096
203300
|
function ResolveCandidateKeys(context, keys) {
|
|
203097
203301
|
return keys.reduce((result, left) => {
|
|
203098
|
-
return
|
|
203302
|
+
return CyclicCheck([left], context, context[left]) ? [...result, left] : result;
|
|
203099
203303
|
}, []);
|
|
203100
203304
|
}
|
|
203101
203305
|
function CyclicCandidates(context) {
|
|
@@ -203103,7 +203307,7 @@ function CyclicCandidates(context) {
|
|
|
203103
203307
|
const result = ResolveCandidateKeys(context, keys);
|
|
203104
203308
|
return result;
|
|
203105
203309
|
}
|
|
203106
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
203310
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/cyclic/dependencies.mjs
|
|
203107
203311
|
function FromRef2(context, ref2, result) {
|
|
203108
203312
|
return result.includes(ref2) ? result : (ref2 in context) ? FromType4(context, context[ref2], [...result, ref2]) : Unreachable();
|
|
203109
203313
|
}
|
|
@@ -203117,13 +203321,13 @@ function FromTypes3(context, types2, result) {
|
|
|
203117
203321
|
}, result);
|
|
203118
203322
|
}
|
|
203119
203323
|
function FromType4(context, type, result) {
|
|
203120
|
-
return IsRef(type) ? FromRef2(context, type.$ref, result) : IsArray2(type) ? FromType4(context, type.items, result) :
|
|
203324
|
+
return IsRef(type) ? FromRef2(context, type.$ref, result) : IsArray2(type) ? FromType4(context, type.items, result) : IsConstructor2(type) ? FromTypes3(context, [...type.parameters, type.instanceType], result) : IsFunction2(type) ? FromTypes3(context, [...type.parameters, type.returnType], result) : IsInterfaceDeferred(type) ? FromProperties2(context, type.parameters[1], result) : IsIntersect(type) ? FromTypes3(context, type.allOf, result) : IsObject2(type) ? FromProperties2(context, type.properties, result) : IsUnion(type) ? FromTypes3(context, type.anyOf, result) : IsTuple(type) ? FromTypes3(context, type.items, result) : IsRecord(type) ? FromType4(context, RecordValue(type), result) : result;
|
|
203121
203325
|
}
|
|
203122
203326
|
function CyclicDependencies(context, key, type) {
|
|
203123
203327
|
const result = FromType4(context, type, [key]);
|
|
203124
203328
|
return result;
|
|
203125
203329
|
}
|
|
203126
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
203330
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/cyclic/extends.mjs
|
|
203127
203331
|
function FromRef3(_ref) {
|
|
203128
203332
|
return Any();
|
|
203129
203333
|
}
|
|
@@ -203138,7 +203342,7 @@ function FromTypes4(types2) {
|
|
|
203138
203342
|
}, []);
|
|
203139
203343
|
}
|
|
203140
203344
|
function FromType5(type) {
|
|
203141
|
-
return IsRef(type) ? FromRef3(type.$ref) : IsArray2(type) ? _Array_(FromType5(type.items), ArrayOptions(type)) :
|
|
203345
|
+
return IsRef(type) ? FromRef3(type.$ref) : IsArray2(type) ? _Array_(FromType5(type.items), ArrayOptions(type)) : IsConstructor2(type) ? Constructor(FromTypes4(type.parameters), FromType5(type.instanceType)) : IsFunction2(type) ? _Function_(FromTypes4(type.parameters), FromType5(type.returnType)) : IsIntersect(type) ? Intersect(FromTypes4(type.allOf)) : IsObject2(type) ? _Object_(FromProperties3(type.properties)) : IsRecord(type) ? Record(RecordKey(type), FromType5(RecordValue(type))) : IsUnion(type) ? Union(FromTypes4(type.anyOf)) : IsTuple(type) ? Tuple(FromTypes4(type.items)) : type;
|
|
203142
203346
|
}
|
|
203143
203347
|
function CyclicAnyFromParameters(defs, ref2) {
|
|
203144
203348
|
return ref2 in defs ? FromType5(defs[ref2]) : Unknown();
|
|
@@ -203146,10 +203350,10 @@ function CyclicAnyFromParameters(defs, ref2) {
|
|
|
203146
203350
|
function CyclicExtends(type) {
|
|
203147
203351
|
return CyclicAnyFromParameters(type.$defs, type.$ref);
|
|
203148
203352
|
}
|
|
203149
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
203353
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/cyclic/instantiate.mjs
|
|
203150
203354
|
function CyclicInterface(context, heritage, properties2) {
|
|
203151
|
-
const instantiatedHeritage = InstantiateTypes(context,
|
|
203152
|
-
const instantiatedProperties = InstantiateProperties({},
|
|
203355
|
+
const instantiatedHeritage = InstantiateTypes(context, State([], []), heritage);
|
|
203356
|
+
const instantiatedProperties = InstantiateProperties({}, State([], []), properties2);
|
|
203153
203357
|
const evaluatedInterface = EvaluateIntersect([...instantiatedHeritage, _Object_(instantiatedProperties)]);
|
|
203154
203358
|
return evaluatedInterface;
|
|
203155
203359
|
}
|
|
@@ -203167,7 +203371,7 @@ function InstantiateCyclic(context, ref2, type) {
|
|
|
203167
203371
|
const result = Cyclic(definitions, ref2);
|
|
203168
203372
|
return result;
|
|
203169
203373
|
}
|
|
203170
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
203374
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/cyclic/target.mjs
|
|
203171
203375
|
function Resolve(defs, ref2) {
|
|
203172
203376
|
return ref2 in defs ? IsRef(defs[ref2]) ? Resolve(defs, defs[ref2].$ref) : defs[ref2] : Never();
|
|
203173
203377
|
}
|
|
@@ -203175,29 +203379,29 @@ function CyclicTarget(defs, ref2) {
|
|
|
203175
203379
|
const result = Resolve(defs, ref2);
|
|
203176
203380
|
return result;
|
|
203177
203381
|
}
|
|
203178
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
203382
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/extends/extends.mjs
|
|
203179
203383
|
function Canonical(type) {
|
|
203180
203384
|
return IsCyclic(type) ? CyclicExtends(type) : IsUnsafe(type) ? Unknown() : type;
|
|
203181
203385
|
}
|
|
203182
|
-
function
|
|
203386
|
+
function Extends(inferred, left, right) {
|
|
203183
203387
|
const canonicalLeft = Canonical(left);
|
|
203184
203388
|
const canonicalRight = Canonical(right);
|
|
203185
203389
|
return ExtendsLeft(inferred, canonicalLeft, canonicalRight);
|
|
203186
203390
|
}
|
|
203187
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
203391
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/evaluate/compare.mjs
|
|
203188
203392
|
var ResultEqual = "equal";
|
|
203189
203393
|
var ResultDisjoint = "disjoint";
|
|
203190
203394
|
var ResultLeftInside = "left-inside";
|
|
203191
203395
|
var ResultRightInside = "right-inside";
|
|
203192
203396
|
function Compare(left, right) {
|
|
203193
203397
|
const extendsCheck = [
|
|
203194
|
-
IsUnknown(left) ? exports_result.ExtendsFalse() :
|
|
203195
|
-
IsUnknown(left) ? exports_result.ExtendsTrue({}) :
|
|
203398
|
+
IsUnknown(left) ? exports_result.ExtendsFalse() : Extends({}, left, right),
|
|
203399
|
+
IsUnknown(left) ? exports_result.ExtendsTrue({}) : Extends({}, right, left)
|
|
203196
203400
|
];
|
|
203197
203401
|
return exports_result.IsExtendsTrueLike(extendsCheck[0]) && exports_result.IsExtendsTrueLike(extendsCheck[1]) ? ResultEqual : exports_result.IsExtendsTrueLike(extendsCheck[0]) && exports_result.IsExtendsFalse(extendsCheck[1]) ? ResultLeftInside : exports_result.IsExtendsFalse(extendsCheck[0]) && exports_result.IsExtendsTrueLike(extendsCheck[1]) ? ResultRightInside : ResultDisjoint;
|
|
203198
203402
|
}
|
|
203199
203403
|
|
|
203200
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
203404
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/evaluate/broaden.mjs
|
|
203201
203405
|
function BroadFilter(type, types2) {
|
|
203202
203406
|
return types2.filter((left) => {
|
|
203203
203407
|
return Compare(type, left) === ResultRightInside ? false : true;
|
|
@@ -203222,10 +203426,9 @@ function BroadenTypes(types2) {
|
|
|
203222
203426
|
function Broaden(types2) {
|
|
203223
203427
|
const broadened = BroadenTypes(types2);
|
|
203224
203428
|
const flattened = Flatten(broadened);
|
|
203225
|
-
|
|
203226
|
-
return result;
|
|
203429
|
+
return flattened;
|
|
203227
203430
|
}
|
|
203228
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
203431
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/evaluate/instantiate.mjs
|
|
203229
203432
|
function EvaluateAction(type, options) {
|
|
203230
203433
|
const result = exports_memory.Update(EvaluateType(type), {}, options);
|
|
203231
203434
|
return result;
|
|
@@ -203234,7 +203437,7 @@ function EvaluateInstantiate(context, state, type, options) {
|
|
|
203234
203437
|
const instantiatedType = InstantiateType(context, state, type);
|
|
203235
203438
|
return EvaluateAction(instantiatedType, options);
|
|
203236
203439
|
}
|
|
203237
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
203440
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/call/distribute_arguments.mjs
|
|
203238
203441
|
function CollectDistributionNames(expression, result = []) {
|
|
203239
203442
|
return IsDeferred(expression) && exports_guard.IsEqual(expression.action, "Conditional") ? IsRef(expression.parameters[0]) ? CollectDistributionNames(expression.parameters[2], CollectDistributionNames(expression.parameters[3], [...result, expression.parameters[0]["$ref"]])) : CollectDistributionNames(expression.parameters[2], CollectDistributionNames(expression.parameters[3], result)) : IsDeferred(expression) && exports_guard.IsEqual(expression.action, "Mapped") ? IsDeferred(expression.parameters[1]) && exports_guard.IsEqual(expression.parameters[1].action, "KeyOf") && IsRef(expression.parameters[1].parameters[0]) ? [...result, expression.parameters[1].parameters[0]["$ref"]] : result : result;
|
|
203240
203443
|
}
|
|
@@ -203242,7 +203445,7 @@ function BuildDistributionArray(parameters, names) {
|
|
|
203242
203445
|
return parameters.reduce((result, left) => [...result, names.includes(left.name)], []);
|
|
203243
203446
|
}
|
|
203244
203447
|
function ZipDistributionArray(arguments_, distributionArray, result = []) {
|
|
203245
|
-
return exports_guard.
|
|
203448
|
+
return exports_guard.ShiftLeft(arguments_, (argumentLeft, argumentRight) => exports_guard.ShiftLeft(distributionArray, (booleanLeft, booleanRight) => ZipDistributionArray(argumentRight, booleanRight, [...result, [booleanLeft, argumentLeft]]), () => result), () => result);
|
|
203246
203449
|
}
|
|
203247
203450
|
function Expand(type) {
|
|
203248
203451
|
return IsUnion(type) ? [...type.anyOf] : [type];
|
|
@@ -203267,7 +203470,7 @@ function DistributeArguments(parameters, arguments_, expression) {
|
|
|
203267
203470
|
return IsDeferred(expression) && exports_guard.IsEqual(expression.action, "Conditional") ? Distribute2(zippedArguments) : IsDeferred(expression) && exports_guard.IsEqual(expression.action, "Mapped") ? Distribute2(zippedArguments) : [arguments_];
|
|
203268
203471
|
}
|
|
203269
203472
|
|
|
203270
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
203473
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/call/resolve_target.mjs
|
|
203271
203474
|
function FromNotResolvable() {
|
|
203272
203475
|
return ["(not-resolvable)", Never()];
|
|
203273
203476
|
}
|
|
@@ -203287,9 +203490,9 @@ function ResolveTarget(context, target2, arguments_) {
|
|
|
203287
203490
|
return FromType6(context, "(anonymous)", target2, arguments_);
|
|
203288
203491
|
}
|
|
203289
203492
|
|
|
203290
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
203493
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/call/resolve_arguments.mjs
|
|
203291
203494
|
function AssertArgumentExtends(name2, type, extends_) {
|
|
203292
|
-
if (IsInfer(type) || IsCall(type) || exports_result.IsExtendsTrueLike(
|
|
203495
|
+
if (IsInfer(type) || IsCall(type) || exports_result.IsExtendsTrueLike(Extends({}, type, extends_)))
|
|
203293
203496
|
return;
|
|
203294
203497
|
const cause = { parameter: name2, expect: extends_, actual: type };
|
|
203295
203498
|
throw new Error(`Argument for parameter ${name2} does not satisfy constraint`, { cause });
|
|
@@ -203302,16 +203505,16 @@ function BindArgument(context, state, name2, extends_, type) {
|
|
|
203302
203505
|
function BindArguments(context, state, parameterLeft, parameterRight, arguments_) {
|
|
203303
203506
|
const instantiatedExtends = InstantiateType(context, state, parameterLeft.extends);
|
|
203304
203507
|
const instantiatedEquals = InstantiateType(context, state, parameterLeft.equals);
|
|
203305
|
-
return exports_guard.
|
|
203508
|
+
return exports_guard.ShiftLeft(arguments_, (left, right) => BindParameters(BindArgument(context, state, parameterLeft["name"], instantiatedExtends, left), state, parameterRight, right), () => BindParameters(BindArgument(context, state, parameterLeft["name"], instantiatedExtends, instantiatedEquals), state, parameterRight, []));
|
|
203306
203509
|
}
|
|
203307
203510
|
function BindParameters(context, state, parameters, arguments_) {
|
|
203308
|
-
return exports_guard.
|
|
203511
|
+
return exports_guard.ShiftLeft(parameters, (left, right) => BindArguments(context, state, left, right, arguments_), () => context);
|
|
203309
203512
|
}
|
|
203310
203513
|
function ResolveArgumentsContext(context, state, parameters, arguments_) {
|
|
203311
203514
|
return BindParameters(context, state, parameters, arguments_);
|
|
203312
203515
|
}
|
|
203313
203516
|
|
|
203314
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
203517
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/call/instantiate.mjs
|
|
203315
203518
|
function Peek(state) {
|
|
203316
203519
|
const result = exports_guard.IsGreaterThan(state.callstack.length, 0) ? state.callstack[state.callstack.length - 1] : "";
|
|
203317
203520
|
return result;
|
|
@@ -203322,8 +203525,8 @@ function IsTailCall(state, name2) {
|
|
|
203322
203525
|
}
|
|
203323
203526
|
function CallDispatch(context, state, target2, parameters, expression, arguments_) {
|
|
203324
203527
|
const argumentsContext = ResolveArgumentsContext(context, state, parameters, arguments_);
|
|
203325
|
-
const returnType = InstantiateType(argumentsContext,
|
|
203326
|
-
return InstantiateType(
|
|
203528
|
+
const returnType = InstantiateType(argumentsContext, State([...state["callstack"], target2["$ref"]], state["visited"]), expression);
|
|
203529
|
+
return InstantiateType(argumentsContext, State([], []), returnType);
|
|
203327
203530
|
}
|
|
203328
203531
|
function CallDistributed(context, state, target2, parameters, expression, distributedArguments) {
|
|
203329
203532
|
return distributedArguments.reduce((result, arguments_) => [...result, CallDispatch(context, state, target2, parameters, expression, arguments_)], []);
|
|
@@ -203343,46 +203546,59 @@ function CallInstantiate(context, state, target2, arguments_) {
|
|
|
203343
203546
|
return result;
|
|
203344
203547
|
}
|
|
203345
203548
|
|
|
203346
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
203549
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/types/call.mjs
|
|
203347
203550
|
function CallConstruct(target2, arguments_) {
|
|
203348
|
-
return exports_memory.Create({ ["~kind"]: "Call" }, { target: target2, arguments: arguments_ }, {});
|
|
203551
|
+
return exports_memory.Create({ ["~kind"]: "Call" }, { type: "call", target: target2, arguments: arguments_ }, {});
|
|
203349
203552
|
}
|
|
203350
203553
|
function Call(target2, arguments_) {
|
|
203351
|
-
return CallInstantiate({},
|
|
203554
|
+
return CallInstantiate({}, State([], []), target2, arguments_);
|
|
203352
203555
|
}
|
|
203353
203556
|
function IsCall(value) {
|
|
203354
203557
|
return IsKind(value, "Call");
|
|
203355
203558
|
}
|
|
203356
203559
|
|
|
203357
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
203560
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/immutable/instantiate_remove.mjs
|
|
203561
|
+
function RemoveImmutableOperation(type) {
|
|
203562
|
+
return exports_memory.Discard(type, ["~immutable"]);
|
|
203563
|
+
}
|
|
203564
|
+
function RemoveImmutableAction(type, options) {
|
|
203565
|
+
const result = exports_memory.Update(RemoveImmutableOperation(type), {}, options);
|
|
203566
|
+
return result;
|
|
203567
|
+
}
|
|
203568
|
+
function RemoveImmutableInstantiate(context, state, type, options) {
|
|
203569
|
+
const instantiatedType = InstantiateType(context, state, type);
|
|
203570
|
+
return RemoveImmutableAction(instantiatedType, options);
|
|
203571
|
+
}
|
|
203572
|
+
|
|
203573
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/intrinsics/mapping.mjs
|
|
203358
203574
|
function ApplyMapping(mapping, value) {
|
|
203359
203575
|
return mapping(value);
|
|
203360
203576
|
}
|
|
203361
203577
|
|
|
203362
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
203578
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/intrinsics/from_literal.mjs
|
|
203363
203579
|
function FromLiteral3(mapping, value) {
|
|
203364
203580
|
return exports_guard.IsString(value) ? Literal(ApplyMapping(mapping, value)) : Literal(value);
|
|
203365
203581
|
}
|
|
203366
203582
|
|
|
203367
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
203583
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/intrinsics/from_template_literal.mjs
|
|
203368
203584
|
function FromTemplateLiteral(mapping, pattern) {
|
|
203369
|
-
const
|
|
203370
|
-
const result = FromType7(mapping,
|
|
203585
|
+
const evaluated = EvaluateTemplateLiteral(pattern);
|
|
203586
|
+
const result = FromType7(mapping, evaluated);
|
|
203371
203587
|
return result;
|
|
203372
203588
|
}
|
|
203373
203589
|
|
|
203374
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
203590
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/intrinsics/from_union.mjs
|
|
203375
203591
|
function FromUnion2(mapping, types2) {
|
|
203376
203592
|
const result = types2.map((type) => FromType7(mapping, type));
|
|
203377
203593
|
return Union(result);
|
|
203378
203594
|
}
|
|
203379
203595
|
|
|
203380
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
203596
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/intrinsics/from_type.mjs
|
|
203381
203597
|
function FromType7(mapping, type) {
|
|
203382
203598
|
return IsLiteral(type) ? FromLiteral3(mapping, type.const) : IsTemplateLiteral(type) ? FromTemplateLiteral(mapping, type.pattern) : IsUnion(type) ? FromUnion2(mapping, type.anyOf) : type;
|
|
203383
203599
|
}
|
|
203384
203600
|
|
|
203385
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
203601
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/action/capitalize.mjs
|
|
203386
203602
|
function CapitalizeDeferred(type, options = {}) {
|
|
203387
203603
|
return Deferred("Capitalize", [type], options);
|
|
203388
203604
|
}
|
|
@@ -203390,7 +203606,7 @@ function Capitalize(type, options = {}) {
|
|
|
203390
203606
|
return CapitalizeAction(type, options);
|
|
203391
203607
|
}
|
|
203392
203608
|
|
|
203393
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
203609
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/action/lowercase.mjs
|
|
203394
203610
|
function LowercaseDeferred(type, options = {}) {
|
|
203395
203611
|
return Deferred("Lowercase", [type], options);
|
|
203396
203612
|
}
|
|
@@ -203398,7 +203614,7 @@ function Lowercase(type, options = {}) {
|
|
|
203398
203614
|
return LowercaseAction(type, options);
|
|
203399
203615
|
}
|
|
203400
203616
|
|
|
203401
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
203617
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/action/uncapitalize.mjs
|
|
203402
203618
|
function UncapitalizeDeferred(type, options = {}) {
|
|
203403
203619
|
return Deferred("Uncapitalize", [type], options);
|
|
203404
203620
|
}
|
|
@@ -203406,7 +203622,7 @@ function Uncapitalize(type, options = {}) {
|
|
|
203406
203622
|
return UncapitalizeAction(type, options);
|
|
203407
203623
|
}
|
|
203408
203624
|
|
|
203409
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
203625
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/action/uppercase.mjs
|
|
203410
203626
|
function UppercaseDeferred(type, options = {}) {
|
|
203411
203627
|
return Deferred("Uppercase", [type], options);
|
|
203412
203628
|
}
|
|
@@ -203414,7 +203630,7 @@ function Uppercase(type, options = {}) {
|
|
|
203414
203630
|
return UppercaseAction(type, options);
|
|
203415
203631
|
}
|
|
203416
203632
|
|
|
203417
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
203633
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/intrinsics/instantiate.mjs
|
|
203418
203634
|
var CapitalizeMapping = (input) => input[0].toUpperCase() + input.slice(1);
|
|
203419
203635
|
var LowercaseMapping = (input) => input.toLowerCase();
|
|
203420
203636
|
var UncapitalizeMapping = (input) => input[0].toLowerCase() + input.slice(1);
|
|
@@ -203452,17 +203668,17 @@ function UppercaseInstantiate(context, state, type, options) {
|
|
|
203452
203668
|
return UppercaseAction(instantiatedType, options);
|
|
203453
203669
|
}
|
|
203454
203670
|
|
|
203455
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
203671
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/action/conditional.mjs
|
|
203456
203672
|
function ConditionalDeferred(left, right, true_, false_, options = {}) {
|
|
203457
203673
|
return Deferred("Conditional", [left, right, true_, false_], options);
|
|
203458
203674
|
}
|
|
203459
203675
|
function Conditional(left, right, true_, false_, options = {}) {
|
|
203460
|
-
return ConditionalAction({},
|
|
203676
|
+
return ConditionalAction({}, State([], []), left, right, true_, false_, options);
|
|
203461
203677
|
}
|
|
203462
203678
|
|
|
203463
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
203679
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/conditional/instantiate.mjs
|
|
203464
203680
|
function ConditionalOperation(context, state, left, right, true_, false_) {
|
|
203465
|
-
const extendsResult =
|
|
203681
|
+
const extendsResult = Extends(context, left, right);
|
|
203466
203682
|
return exports_result.IsExtendsUnion(extendsResult) ? Union([InstantiateType(extendsResult.inferred, state, true_), InstantiateType(context, state, false_)]) : exports_result.IsExtendsTrue(extendsResult) ? InstantiateType(extendsResult.inferred, state, true_) : InstantiateType(context, state, false_);
|
|
203467
203683
|
}
|
|
203468
203684
|
function ConditionalAction(context, state, left, right, true_, false_, options) {
|
|
@@ -203474,7 +203690,7 @@ function ConditionalInstantiate(context, state, left, right, true_, false_, opti
|
|
|
203474
203690
|
const instantiatedRight = InstantiateType(context, state, right);
|
|
203475
203691
|
return ConditionalAction(context, state, instantiatedLeft, instantiatedRight, true_, false_, options);
|
|
203476
203692
|
}
|
|
203477
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
203693
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/action/constructor_parameters.mjs
|
|
203478
203694
|
function ConstructorParametersDeferred(type, options = {}) {
|
|
203479
203695
|
return Deferred("ConstructorParameters", [type], options);
|
|
203480
203696
|
}
|
|
@@ -203482,10 +203698,10 @@ function ConstructorParameters(type, options = {}) {
|
|
|
203482
203698
|
return ConstructorParametersAction(type, options);
|
|
203483
203699
|
}
|
|
203484
203700
|
|
|
203485
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
203701
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/constructor_parameters/instantiate.mjs
|
|
203486
203702
|
function ConstructorParametersOperation(type) {
|
|
203487
203703
|
const parameters = IsConstructor2(type) ? type["parameters"] : [];
|
|
203488
|
-
const instantiatedParameters = InstantiateElements({},
|
|
203704
|
+
const instantiatedParameters = InstantiateElements({}, State([], []), parameters);
|
|
203489
203705
|
const result = Tuple(instantiatedParameters);
|
|
203490
203706
|
return result;
|
|
203491
203707
|
}
|
|
@@ -203498,7 +203714,7 @@ function ConstructorParametersInstantiate(context, state, type, options) {
|
|
|
203498
203714
|
return ConstructorParametersAction(instantiatedType, options);
|
|
203499
203715
|
}
|
|
203500
203716
|
|
|
203501
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
203717
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/action/exclude.mjs
|
|
203502
203718
|
function ExcludeDeferred(left, right, options = {}) {
|
|
203503
203719
|
return Deferred("Exclude", [left, right], options);
|
|
203504
203720
|
}
|
|
@@ -203506,24 +203722,7 @@ function Exclude(left, right, options = {}) {
|
|
|
203506
203722
|
return ExcludeAction(left, right, options);
|
|
203507
203723
|
}
|
|
203508
203724
|
|
|
203509
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
203510
|
-
function ExcludeUnionLeft(types2, right) {
|
|
203511
|
-
return types2.reduce((result, head) => {
|
|
203512
|
-
return [...result, ...ExcludeTypeLeft(head, right)];
|
|
203513
|
-
}, []);
|
|
203514
|
-
}
|
|
203515
|
-
function ExcludeTypeLeft(left, right) {
|
|
203516
|
-
const check3 = Extends2({}, left, right);
|
|
203517
|
-
const result = exports_result.IsExtendsTrueLike(check3) ? [] : [left];
|
|
203518
|
-
return result;
|
|
203519
|
-
}
|
|
203520
|
-
function ExcludeOperation(left, right) {
|
|
203521
|
-
const remaining = IsEnum(left) ? ExcludeUnionLeft(EnumValuesToVariants(left.enum), right) : IsUnion(left) ? ExcludeUnionLeft(Flatten(left.anyOf), right) : ExcludeTypeLeft(left, right);
|
|
203522
|
-
const result = EvaluateUnion(remaining);
|
|
203523
|
-
return result;
|
|
203524
|
-
}
|
|
203525
|
-
|
|
203526
|
-
// ../../node_modules/.bun/typebox@1.1.38/node_modules/typebox/build/type/engine/exclude/instantiate.mjs
|
|
203725
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/exclude/instantiate.mjs
|
|
203527
203726
|
function ExcludeAction(left, right, options) {
|
|
203528
203727
|
const result = CanInstantiate([left, right]) ? exports_memory.Update(ExcludeOperation(left, right), {}, options) : ExcludeDeferred(left, right, options);
|
|
203529
203728
|
return result;
|
|
@@ -203534,7 +203733,7 @@ function ExcludeInstantiate(context, state, left, right, options) {
|
|
|
203534
203733
|
return ExcludeAction(instantiatedLeft, instantiatedRight, options);
|
|
203535
203734
|
}
|
|
203536
203735
|
|
|
203537
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
203736
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/action/extract.mjs
|
|
203538
203737
|
function ExtractDeferred(left, right, options = {}) {
|
|
203539
203738
|
return Deferred("Extract", [left, right], options);
|
|
203540
203739
|
}
|
|
@@ -203542,24 +203741,26 @@ function Extract(left, right, options = {}) {
|
|
|
203542
203741
|
return ExtractAction(left, right, options);
|
|
203543
203742
|
}
|
|
203544
203743
|
|
|
203545
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
203546
|
-
function
|
|
203547
|
-
|
|
203548
|
-
return [...result, ...ExtractTypeLeft(head, right)];
|
|
203549
|
-
}, []);
|
|
203550
|
-
}
|
|
203551
|
-
function ExtractTypeLeft(left, right) {
|
|
203552
|
-
const check3 = Extends2({}, left, right);
|
|
203744
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/extract/operation.mjs
|
|
203745
|
+
function ExtractType(left, right) {
|
|
203746
|
+
const check3 = Extends({}, left, right);
|
|
203553
203747
|
const result = exports_result.IsExtendsTrueLike(check3) ? [left] : [];
|
|
203554
203748
|
return result;
|
|
203555
203749
|
}
|
|
203750
|
+
function ExtractUnion(types2, right) {
|
|
203751
|
+
return types2.reduce((result, head) => {
|
|
203752
|
+
return [...result, ...ExtractType(head, right)];
|
|
203753
|
+
}, []);
|
|
203754
|
+
}
|
|
203556
203755
|
function ExtractOperation(left, right) {
|
|
203557
|
-
const
|
|
203756
|
+
const evaluated = EvaluateType(left);
|
|
203757
|
+
const canonical = IsUnion(evaluated) ? evaluated.anyOf : [evaluated];
|
|
203758
|
+
const remaining = ExtractUnion(canonical, right);
|
|
203558
203759
|
const result = EvaluateUnion(remaining);
|
|
203559
203760
|
return result;
|
|
203560
203761
|
}
|
|
203561
203762
|
|
|
203562
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
203763
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/extract/instantiate.mjs
|
|
203563
203764
|
function ExtractAction(left, right, options) {
|
|
203564
203765
|
const result = CanInstantiate([left, right]) ? exports_memory.Update(ExtractOperation(left, right), {}, options) : ExtractDeferred(left, right, options);
|
|
203565
203766
|
return result;
|
|
@@ -203570,7 +203771,7 @@ function ExtractInstantiate(context, state, left, right, options) {
|
|
|
203570
203771
|
return ExtractAction(instantiatedLeft, instantiatedRight, options);
|
|
203571
203772
|
}
|
|
203572
203773
|
|
|
203573
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
203774
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/helpers/keys_to_indexer.mjs
|
|
203574
203775
|
function KeysToLiterals(keys) {
|
|
203575
203776
|
return keys.reduce((result, left) => {
|
|
203576
203777
|
return IsLiteralValue(left) ? [...result, Literal(left)] : result;
|
|
@@ -203582,7 +203783,7 @@ function KeysToIndexer(keys) {
|
|
|
203582
203783
|
return result;
|
|
203583
203784
|
}
|
|
203584
203785
|
|
|
203585
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
203786
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/action/indexed.mjs
|
|
203586
203787
|
function IndexDeferred(type, indexer, options = {}) {
|
|
203587
203788
|
return Deferred("Index", [type, indexer], options);
|
|
203588
203789
|
}
|
|
@@ -203591,14 +203792,21 @@ function Index(type, indexer_or_keys, options = {}) {
|
|
|
203591
203792
|
return IndexAction(type, indexer, options);
|
|
203592
203793
|
}
|
|
203593
203794
|
|
|
203594
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
203795
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/object/from_cyclic.mjs
|
|
203595
203796
|
function FromCyclic(defs, ref2) {
|
|
203596
203797
|
const target2 = CyclicTarget(defs, ref2);
|
|
203597
203798
|
const result = FromType8(target2);
|
|
203598
203799
|
return result;
|
|
203599
203800
|
}
|
|
203600
203801
|
|
|
203601
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
203802
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/object/from_dependent.mjs
|
|
203803
|
+
function FromDependent(if_, then_, else_) {
|
|
203804
|
+
const evaluated = EvaluateDependent(if_, then_, else_);
|
|
203805
|
+
const result = FromType8(evaluated);
|
|
203806
|
+
return result;
|
|
203807
|
+
}
|
|
203808
|
+
|
|
203809
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/object/from_intersect.mjs
|
|
203602
203810
|
function CollapseIntersectProperties(left, right) {
|
|
203603
203811
|
const leftKeys = exports_guard.Keys(left).filter((key) => !exports_guard.HasPropertyKey(right, key));
|
|
203604
203812
|
const rightKeys = exports_guard.Keys(right).filter((key) => !exports_guard.HasPropertyKey(left, key));
|
|
@@ -203616,19 +203824,19 @@ function FromIntersect(types2) {
|
|
|
203616
203824
|
}, {});
|
|
203617
203825
|
}
|
|
203618
203826
|
|
|
203619
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
203620
|
-
function
|
|
203827
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/object/from_object.mjs
|
|
203828
|
+
function FromObject3(properties2) {
|
|
203621
203829
|
return properties2;
|
|
203622
203830
|
}
|
|
203623
203831
|
|
|
203624
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
203832
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/object/from_tuple.mjs
|
|
203625
203833
|
function FromTuple(types2) {
|
|
203626
203834
|
const object3 = TupleToObject(Tuple(types2));
|
|
203627
203835
|
const result = FromType8(object3);
|
|
203628
203836
|
return result;
|
|
203629
203837
|
}
|
|
203630
203838
|
|
|
203631
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
203839
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/object/from_union.mjs
|
|
203632
203840
|
function CollapseUnionProperties(left, right) {
|
|
203633
203841
|
const sharedKeys = exports_guard.Keys(left).filter((key) => (key in right));
|
|
203634
203842
|
const result = sharedKeys.reduce((result2, key) => {
|
|
@@ -203637,31 +203845,31 @@ function CollapseUnionProperties(left, right) {
|
|
|
203637
203845
|
return result;
|
|
203638
203846
|
}
|
|
203639
203847
|
function ReduceVariants(types2, result) {
|
|
203640
|
-
return exports_guard.
|
|
203848
|
+
return exports_guard.ShiftLeft(types2, (left, right) => ReduceVariants(right, CollapseUnionProperties(result, FromType8(left))), () => result);
|
|
203641
203849
|
}
|
|
203642
203850
|
function FromUnion3(types2) {
|
|
203643
|
-
return exports_guard.
|
|
203851
|
+
return exports_guard.ShiftLeft(types2, (left, right) => ReduceVariants(right, FromType8(left)), () => Unreachable());
|
|
203644
203852
|
}
|
|
203645
203853
|
|
|
203646
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
203854
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/object/from_type.mjs
|
|
203647
203855
|
function FromType8(type) {
|
|
203648
|
-
return IsCyclic(type) ? FromCyclic(type.$defs, type.$ref) : IsIntersect(type) ? FromIntersect(type.allOf) : IsUnion(type) ? FromUnion3(type.anyOf) : IsTuple(type) ? FromTuple(type.items) : IsObject2(type) ?
|
|
203856
|
+
return IsCyclic(type) ? FromCyclic(type.$defs, type.$ref) : IsDependent(type) ? FromDependent(type.if, type.then, type.else) : IsIntersect(type) ? FromIntersect(type.allOf) : IsUnion(type) ? FromUnion3(type.anyOf) : IsTuple(type) ? FromTuple(type.items) : IsObject2(type) ? FromObject3(type.properties) : {};
|
|
203649
203857
|
}
|
|
203650
203858
|
|
|
203651
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
203859
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/object/collapse.mjs
|
|
203652
203860
|
function CollapseToObject(type) {
|
|
203653
203861
|
const properties2 = FromType8(type);
|
|
203654
203862
|
const result = _Object_(properties2);
|
|
203655
203863
|
return result;
|
|
203656
203864
|
}
|
|
203657
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
203865
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/helpers/keys.mjs
|
|
203658
203866
|
var integerKeyPattern = new RegExp("^(?:0|[1-9][0-9]*)$");
|
|
203659
203867
|
function ConvertToIntegerKey(value) {
|
|
203660
203868
|
const normal = `${value}`;
|
|
203661
203869
|
return integerKeyPattern.test(normal) ? parseInt(normal) : value;
|
|
203662
203870
|
}
|
|
203663
203871
|
|
|
203664
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
203872
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/indexed/from_array.mjs
|
|
203665
203873
|
function NormalizeLiteral(value) {
|
|
203666
203874
|
return Literal(ConvertToIntegerKey(value));
|
|
203667
203875
|
}
|
|
@@ -203673,76 +203881,83 @@ function NormalizeIndexer(type) {
|
|
|
203673
203881
|
}
|
|
203674
203882
|
function FromArray2(type, indexer) {
|
|
203675
203883
|
const normalizedIndexer = NormalizeIndexer(indexer);
|
|
203676
|
-
const check3 =
|
|
203884
|
+
const check3 = Extends({}, normalizedIndexer, Number2());
|
|
203677
203885
|
const result = exports_result.IsExtendsTrueLike(check3) ? type : IsLiteral(indexer) && exports_guard.IsEqual(indexer.const, "length") ? Number2() : Never();
|
|
203678
203886
|
return result;
|
|
203679
203887
|
}
|
|
203680
203888
|
|
|
203681
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
203889
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/indexable/from_cyclic.mjs
|
|
203682
203890
|
function FromCyclic2(defs, ref2) {
|
|
203683
203891
|
const target2 = CyclicTarget(defs, ref2);
|
|
203684
203892
|
const result = FromType9(target2);
|
|
203685
203893
|
return result;
|
|
203686
203894
|
}
|
|
203687
203895
|
|
|
203688
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
203689
|
-
function
|
|
203690
|
-
|
|
203691
|
-
|
|
203692
|
-
|
|
203896
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/indexable/from_dependent.mjs
|
|
203897
|
+
function FromDependent2(if_, then_, else_) {
|
|
203898
|
+
const evaluated = EvaluateDependent(if_, then_, else_);
|
|
203899
|
+
const result = FromType9(evaluated);
|
|
203900
|
+
return result;
|
|
203693
203901
|
}
|
|
203694
203902
|
|
|
203695
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
203903
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/indexable/from_enum.mjs
|
|
203696
203904
|
function FromEnum(values) {
|
|
203697
|
-
const
|
|
203698
|
-
const result =
|
|
203905
|
+
const evaluated = EvaluateEnum(values);
|
|
203906
|
+
const result = FromType9(evaluated);
|
|
203699
203907
|
return result;
|
|
203700
203908
|
}
|
|
203701
203909
|
|
|
203702
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
203910
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/indexable/from_intersect.mjs
|
|
203703
203911
|
function FromIntersect2(types2) {
|
|
203704
203912
|
const evaluated = EvaluateIntersect(types2);
|
|
203705
203913
|
const result = FromType9(evaluated);
|
|
203706
203914
|
return result;
|
|
203707
203915
|
}
|
|
203708
203916
|
|
|
203709
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
203917
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/indexable/from_literal.mjs
|
|
203710
203918
|
function FromLiteral4(value) {
|
|
203711
203919
|
const result = [`${value}`];
|
|
203712
203920
|
return result;
|
|
203713
203921
|
}
|
|
203714
203922
|
|
|
203715
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
203923
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/indexable/from_template_literal.mjs
|
|
203716
203924
|
function FromTemplateLiteral2(pattern) {
|
|
203717
|
-
const
|
|
203718
|
-
const result = FromType9(
|
|
203925
|
+
const evaluated = EvaluateTemplateLiteral(pattern);
|
|
203926
|
+
const result = FromType9(evaluated);
|
|
203719
203927
|
return result;
|
|
203720
203928
|
}
|
|
203721
203929
|
|
|
203722
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
203930
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/indexable/from_union.mjs
|
|
203931
|
+
function FromUnion4(types2) {
|
|
203932
|
+
return types2.reduce((result, left) => {
|
|
203933
|
+
return [...result, ...FromType9(left)];
|
|
203934
|
+
}, []);
|
|
203935
|
+
}
|
|
203936
|
+
|
|
203937
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/indexable/from_type.mjs
|
|
203723
203938
|
function FromType9(type) {
|
|
203724
|
-
return IsCyclic(type) ? FromCyclic2(type.$defs, type.$ref) : IsEnum(type) ? FromEnum(type.enum) : IsIntersect(type) ? FromIntersect2(type.allOf) : IsLiteral(type) ? FromLiteral4(type.const) : IsTemplateLiteral(type) ? FromTemplateLiteral2(type.pattern) : IsUnion(type) ? FromUnion4(type.anyOf) : [];
|
|
203939
|
+
return IsCyclic(type) ? FromCyclic2(type.$defs, type.$ref) : IsDependent(type) ? FromDependent2(type.if, type.then, type.else) : IsEnum(type) ? FromEnum(type.enum) : IsIntersect(type) ? FromIntersect2(type.allOf) : IsLiteral(type) ? FromLiteral4(type.const) : IsTemplateLiteral(type) ? FromTemplateLiteral2(type.pattern) : IsUnion(type) ? FromUnion4(type.anyOf) : [];
|
|
203725
203940
|
}
|
|
203726
203941
|
|
|
203727
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
203942
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/indexable/to_indexable_keys.mjs
|
|
203728
203943
|
function ToIndexableKeys(type) {
|
|
203729
203944
|
const result = FromType9(type);
|
|
203730
203945
|
return result;
|
|
203731
203946
|
}
|
|
203732
203947
|
|
|
203733
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
203948
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/this/expand_this.mjs
|
|
203734
203949
|
function FromTypes5(properties2, types2) {
|
|
203735
203950
|
return types2.map((type) => FromType10(properties2, type));
|
|
203736
203951
|
}
|
|
203737
203952
|
function FromType10(properties2, type) {
|
|
203738
|
-
return IsArray2(type) ? _Array_(FromType10(properties2, type.items)) :
|
|
203953
|
+
return IsArray2(type) ? _Array_(FromType10(properties2, type.items)) : IsConstructor2(type) ? Constructor(FromTypes5(properties2, type.parameters), FromType10(properties2, type.instanceType)) : IsFunction2(type) ? _Function_(FromTypes5(properties2, type.parameters), FromType10(properties2, type.returnType)) : IsTuple(type) ? Tuple(FromTypes5(properties2, type.items)) : IsUnion(type) ? Union(FromTypes5(properties2, type.anyOf)) : IsIntersect(type) ? Intersect(FromTypes5(properties2, type.allOf)) : IsThis(type) ? _Object_(properties2) : type;
|
|
203739
203954
|
}
|
|
203740
203955
|
function ExpandThis(properties2, type) {
|
|
203741
203956
|
const result = FromType10(properties2, type);
|
|
203742
203957
|
return result;
|
|
203743
203958
|
}
|
|
203744
203959
|
|
|
203745
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
203960
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/indexed/from_object.mjs
|
|
203746
203961
|
function IndexProperty(properties2, key) {
|
|
203747
203962
|
const selectedType = key in properties2 ? properties2[key] : Never();
|
|
203748
203963
|
const result = ExpandThis(properties2, selectedType);
|
|
@@ -203771,12 +203986,12 @@ function FromIndexerNumber(properties2) {
|
|
|
203771
203986
|
const result = EvaluateUnion(variants);
|
|
203772
203987
|
return result;
|
|
203773
203988
|
}
|
|
203774
|
-
function
|
|
203775
|
-
const result =
|
|
203989
|
+
function FromObject4(properties2, indexer) {
|
|
203990
|
+
const result = IsNumber3(indexer) ? FromIndexerNumber(properties2) : FromIndexer(properties2, indexer);
|
|
203776
203991
|
return result;
|
|
203777
203992
|
}
|
|
203778
203993
|
|
|
203779
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
203994
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/indexed/array_indexer.mjs
|
|
203780
203995
|
function ConvertLiteral(value) {
|
|
203781
203996
|
return Literal(ConvertToIntegerKey(value));
|
|
203782
203997
|
}
|
|
@@ -203787,10 +204002,10 @@ function FormatArrayIndexer(type) {
|
|
|
203787
204002
|
return IsIntersect(type) ? Intersect(ArrayIndexerTypes(type.allOf)) : IsUnion(type) ? Union(ArrayIndexerTypes(type.anyOf)) : IsLiteral(type) ? ConvertLiteral(type.const) : type;
|
|
203788
204003
|
}
|
|
203789
204004
|
|
|
203790
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
204005
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/indexed/from_tuple.mjs
|
|
203791
204006
|
function IndexElementsWithIndexer(types2, indexer) {
|
|
203792
204007
|
return types2.reduceRight((result, right, index) => {
|
|
203793
|
-
const check3 =
|
|
204008
|
+
const check3 = Extends({}, Literal(index), indexer);
|
|
203794
204009
|
return exports_result.IsExtendsTrueLike(check3) ? [right, ...result] : result;
|
|
203795
204010
|
}, []);
|
|
203796
204011
|
}
|
|
@@ -203803,17 +204018,17 @@ function FromTupleWithoutIndexer(types2) {
|
|
|
203803
204018
|
return EvaluateUnionFast(types2);
|
|
203804
204019
|
}
|
|
203805
204020
|
function FromTuple2(types2, indexer) {
|
|
203806
|
-
return IsLiteral(indexer) && exports_guard.IsEqual(indexer.const, "length") ? Literal(types2.length) :
|
|
204021
|
+
return IsLiteral(indexer) && exports_guard.IsEqual(indexer.const, "length") ? Literal(types2.length) : IsNumber3(indexer) || IsInteger2(indexer) ? FromTupleWithoutIndexer(types2) : FromTupleWithIndexer(types2, indexer);
|
|
203807
204022
|
}
|
|
203808
204023
|
|
|
203809
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
204024
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/indexed/from_type.mjs
|
|
203810
204025
|
function FromType11(type, indexer) {
|
|
203811
|
-
return IsArray2(type) ? FromArray2(type.items, indexer) : IsObject2(type) ?
|
|
204026
|
+
return IsArray2(type) ? FromArray2(type.items, indexer) : IsObject2(type) ? FromObject4(type.properties, indexer) : IsTuple(type) ? FromTuple2(type.items, indexer) : Never();
|
|
203812
204027
|
}
|
|
203813
204028
|
|
|
203814
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
204029
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/indexed/instantiate.mjs
|
|
203815
204030
|
function NormalizeType(type) {
|
|
203816
|
-
const result = IsCyclic(type) || IsIntersect(type) || IsUnion(type) ? CollapseToObject(type) : type;
|
|
204031
|
+
const result = IsCyclic(type) || IsDependent(type) || IsIntersect(type) || IsUnion(type) ? CollapseToObject(type) : type;
|
|
203817
204032
|
return result;
|
|
203818
204033
|
}
|
|
203819
204034
|
function IndexAction(type, indexer, options) {
|
|
@@ -203826,7 +204041,7 @@ function IndexInstantiate(context, state, type, indexer, options) {
|
|
|
203826
204041
|
return IndexAction(instantiatedType, instantiatedIndexer, options);
|
|
203827
204042
|
}
|
|
203828
204043
|
|
|
203829
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
204044
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/action/instance_type.mjs
|
|
203830
204045
|
function InstanceTypeDeferred(type, options = {}) {
|
|
203831
204046
|
return Deferred("InstanceType", [type], options);
|
|
203832
204047
|
}
|
|
@@ -203834,7 +204049,7 @@ function InstanceType(type, options = {}) {
|
|
|
203834
204049
|
return InstanceTypeAction(type, options);
|
|
203835
204050
|
}
|
|
203836
204051
|
|
|
203837
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
204052
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/instance_type/instantiate.mjs
|
|
203838
204053
|
function InstanceTypeOperation(type) {
|
|
203839
204054
|
return IsConstructor2(type) ? type["instanceType"] : Never();
|
|
203840
204055
|
}
|
|
@@ -203847,7 +204062,7 @@ function InstanceTypeInstantiate(context, state, type, options = {}) {
|
|
|
203847
204062
|
return InstanceTypeAction(instantiatedType, options);
|
|
203848
204063
|
}
|
|
203849
204064
|
|
|
203850
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
204065
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/action/keyof.mjs
|
|
203851
204066
|
function KeyOfDeferred(type, options = {}) {
|
|
203852
204067
|
return Deferred("KeyOf", [type], options);
|
|
203853
204068
|
}
|
|
@@ -203855,49 +204070,49 @@ function KeyOf2(type, options = {}) {
|
|
|
203855
204070
|
return KeyOfAction(type, options);
|
|
203856
204071
|
}
|
|
203857
204072
|
|
|
203858
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
204073
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/keyof/from_any.mjs
|
|
203859
204074
|
function FromAny() {
|
|
203860
204075
|
return Union([Number2(), String2(), Symbol2()]);
|
|
203861
204076
|
}
|
|
203862
204077
|
|
|
203863
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
204078
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/keyof/from_array.mjs
|
|
203864
204079
|
function FromArray3(_type) {
|
|
203865
204080
|
return Number2();
|
|
203866
204081
|
}
|
|
203867
204082
|
|
|
203868
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
204083
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/keyof/from_object.mjs
|
|
203869
204084
|
function FromPropertyKeys(keys) {
|
|
203870
204085
|
const result = keys.reduce((result2, left) => {
|
|
203871
204086
|
return IsLiteralValue(left) ? [...result2, Literal(ConvertToIntegerKey(left))] : Unreachable();
|
|
203872
204087
|
}, []);
|
|
203873
204088
|
return result;
|
|
203874
204089
|
}
|
|
203875
|
-
function
|
|
204090
|
+
function FromObject5(properties2) {
|
|
203876
204091
|
const propertyKeys = exports_guard.Keys(properties2);
|
|
203877
204092
|
const variants = FromPropertyKeys(propertyKeys);
|
|
203878
204093
|
const result = EvaluateUnionFast(variants);
|
|
203879
204094
|
return result;
|
|
203880
204095
|
}
|
|
203881
204096
|
|
|
203882
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
203883
|
-
function
|
|
204097
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/keyof/from_record.mjs
|
|
204098
|
+
function FromRecord2(type) {
|
|
203884
204099
|
return RecordKey(type);
|
|
203885
204100
|
}
|
|
203886
204101
|
|
|
203887
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
204102
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/keyof/from_tuple.mjs
|
|
203888
204103
|
function FromTuple3(types2) {
|
|
203889
204104
|
const result = types2.map((_, index) => Literal(index));
|
|
203890
204105
|
return EvaluateUnionFast(result);
|
|
203891
204106
|
}
|
|
203892
204107
|
|
|
203893
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
204108
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/keyof/from_type.mjs
|
|
203894
204109
|
function FromType12(type) {
|
|
203895
|
-
return IsAny(type) ? FromAny() : IsArray2(type) ? FromArray3(type.items) : IsObject2(type) ?
|
|
204110
|
+
return IsAny(type) ? FromAny() : IsArray2(type) ? FromArray3(type.items) : IsObject2(type) ? FromObject5(type.properties) : IsRecord(type) ? FromRecord2(type) : IsTuple(type) ? FromTuple3(type.items) : Never();
|
|
203896
204111
|
}
|
|
203897
204112
|
|
|
203898
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
204113
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/keyof/instantiate.mjs
|
|
203899
204114
|
function NormalizeType2(type) {
|
|
203900
|
-
const result = IsCyclic(type) || IsIntersect(type) || IsUnion(type) ? CollapseToObject(type) : type;
|
|
204115
|
+
const result = IsCyclic(type) || IsDependent(type) || IsIntersect(type) || IsUnion(type) ? CollapseToObject(type) : type;
|
|
203901
204116
|
return result;
|
|
203902
204117
|
}
|
|
203903
204118
|
function KeyOfAction(type, options) {
|
|
@@ -203908,18 +204123,18 @@ function KeyOfInstantiate(context, state, type, options) {
|
|
|
203908
204123
|
return KeyOfAction(instantiatedType, options);
|
|
203909
204124
|
}
|
|
203910
204125
|
|
|
203911
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
204126
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/action/mapped.mjs
|
|
203912
204127
|
function MappedDeferred(identifier2, type, as, property, options = {}) {
|
|
203913
204128
|
return Deferred("Mapped", [identifier2, type, as, property], options);
|
|
203914
204129
|
}
|
|
203915
|
-
function
|
|
203916
|
-
return MappedAction({},
|
|
204130
|
+
function Mapped(identifier2, type, as, property, options = {}) {
|
|
204131
|
+
return MappedAction({}, State([], []), identifier2, type, as, property, options);
|
|
203917
204132
|
}
|
|
203918
204133
|
|
|
203919
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
204134
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/mapped/mapped_variants.mjs
|
|
203920
204135
|
function FromTemplateLiteral3(pattern) {
|
|
203921
|
-
const
|
|
203922
|
-
const result = FromType13(
|
|
204136
|
+
const evaluated = EvaluateTemplateLiteral(pattern);
|
|
204137
|
+
const result = FromType13(evaluated);
|
|
203923
204138
|
return result;
|
|
203924
204139
|
}
|
|
203925
204140
|
function FromUnion5(types2) {
|
|
@@ -203927,12 +204142,17 @@ function FromUnion5(types2) {
|
|
|
203927
204142
|
return [...result, ...FromType13(left)];
|
|
203928
204143
|
}, []);
|
|
203929
204144
|
}
|
|
204145
|
+
function FromEnum2(values) {
|
|
204146
|
+
const evaluated = EvaluateEnum(values);
|
|
204147
|
+
const result = FromType13(evaluated);
|
|
204148
|
+
return result;
|
|
204149
|
+
}
|
|
203930
204150
|
function FromLiteral5(value) {
|
|
203931
204151
|
const result = exports_guard.IsNumber(value) ? [Literal(`${value}`)] : [Literal(value)];
|
|
203932
204152
|
return result;
|
|
203933
204153
|
}
|
|
203934
204154
|
function FromType13(type) {
|
|
203935
|
-
const result = IsEnum(type) ?
|
|
204155
|
+
const result = IsEnum(type) ? FromEnum2(type.enum) : IsLiteral(type) ? FromLiteral5(type.const) : IsTemplateLiteral(type) ? FromTemplateLiteral3(type.pattern) : IsUnion(type) ? FromUnion5(type.anyOf) : [type];
|
|
203936
204156
|
return result;
|
|
203937
204157
|
}
|
|
203938
204158
|
function MappedVariants(type) {
|
|
@@ -203940,9 +204160,9 @@ function MappedVariants(type) {
|
|
|
203940
204160
|
return result;
|
|
203941
204161
|
}
|
|
203942
204162
|
|
|
203943
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
204163
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/mapped/mapped_operation.mjs
|
|
203944
204164
|
function CanonicalAs(instantiatedAs) {
|
|
203945
|
-
const result = IsTemplateLiteral(instantiatedAs) ?
|
|
204165
|
+
const result = IsTemplateLiteral(instantiatedAs) ? EvaluateTemplateLiteral(instantiatedAs.pattern) : instantiatedAs;
|
|
203946
204166
|
return result;
|
|
203947
204167
|
}
|
|
203948
204168
|
function MappedVariant(context, state, identifier2, variant, as, property) {
|
|
@@ -203970,7 +204190,7 @@ function MappedOperation(context, state, identifier2, type, as, property) {
|
|
|
203970
204190
|
return result;
|
|
203971
204191
|
}
|
|
203972
204192
|
|
|
203973
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
204193
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/mapped/instantiate.mjs
|
|
203974
204194
|
function MappedAction(context, state, identifier2, type, as, property, options) {
|
|
203975
204195
|
const result = CanInstantiate([type]) ? exports_memory.Update(MappedOperation(context, state, identifier2, type, as, property), {}, options) : MappedDeferred(identifier2, type, as, property, options);
|
|
203976
204196
|
return result;
|
|
@@ -203980,33 +204200,34 @@ function MappedInstantiate(context, state, identifier2, type, as, property, opti
|
|
|
203980
204200
|
return MappedAction(context, state, identifier2, instantiatedType, as, property, options);
|
|
203981
204201
|
}
|
|
203982
204202
|
|
|
203983
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
203984
|
-
function InstantiateCyclics(context, cyclicKeys) {
|
|
203985
|
-
const
|
|
203986
|
-
|
|
203987
|
-
|
|
204203
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/module/instantiate.mjs
|
|
204204
|
+
function InstantiateCyclics(context, declarations, cyclicKeys) {
|
|
204205
|
+
const declarationContext = exports_memory.Assign(context, declarations);
|
|
204206
|
+
const declarationKeys = exports_guard.Keys(declarations).filter((key) => cyclicKeys.includes(key));
|
|
204207
|
+
return declarationKeys.reduce((result, key) => {
|
|
204208
|
+
return { ...result, [key]: InstantiateCyclic(declarationContext, key, declarations[key]) };
|
|
203988
204209
|
}, {});
|
|
203989
204210
|
}
|
|
203990
|
-
function InstantiateNonCyclics(context, cyclicKeys) {
|
|
203991
|
-
const
|
|
203992
|
-
|
|
203993
|
-
|
|
204211
|
+
function InstantiateNonCyclics(context, declarations, cyclicKeys) {
|
|
204212
|
+
const declarationContext = exports_memory.Assign(context, declarations);
|
|
204213
|
+
const declarationKeys = exports_guard.Keys(declarations).filter((key) => !cyclicKeys.includes(key));
|
|
204214
|
+
return declarationKeys.reduce((result, key) => {
|
|
204215
|
+
return { ...result, [key]: InstantiateType(declarationContext, State([], []), declarations[key]) };
|
|
203994
204216
|
}, {});
|
|
203995
204217
|
}
|
|
203996
|
-
function InstantiateModule(context, options) {
|
|
203997
|
-
const cyclicCandidates = CyclicCandidates(
|
|
203998
|
-
const instantiatedCyclics = InstantiateCyclics(context, cyclicCandidates);
|
|
203999
|
-
const instantiatedNonCyclics = InstantiateNonCyclics(context, cyclicCandidates);
|
|
204218
|
+
function InstantiateModule(context, declarations, options) {
|
|
204219
|
+
const cyclicCandidates = CyclicCandidates(declarations);
|
|
204220
|
+
const instantiatedCyclics = InstantiateCyclics(context, declarations, cyclicCandidates);
|
|
204221
|
+
const instantiatedNonCyclics = InstantiateNonCyclics(context, declarations, cyclicCandidates);
|
|
204000
204222
|
const instantiatedModule = { ...instantiatedCyclics, ...instantiatedNonCyclics };
|
|
204001
204223
|
return exports_memory.Update(instantiatedModule, {}, options);
|
|
204002
204224
|
}
|
|
204003
|
-
function ModuleInstantiate(context, _state,
|
|
204004
|
-
const
|
|
204005
|
-
const instantiatedModule = InstantiateModule(moduleContext, options);
|
|
204225
|
+
function ModuleInstantiate(context, _state, declarations, options) {
|
|
204226
|
+
const instantiatedModule = InstantiateModule(context, declarations, options);
|
|
204006
204227
|
return instantiatedModule;
|
|
204007
204228
|
}
|
|
204008
204229
|
|
|
204009
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
204230
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/action/non_nullable.mjs
|
|
204010
204231
|
function NonNullableDeferred(type, options = {}) {
|
|
204011
204232
|
return Deferred("NonNullable", [type], options);
|
|
204012
204233
|
}
|
|
@@ -204014,7 +204235,7 @@ function NonNullable(type, options = {}) {
|
|
|
204014
204235
|
return NonNullableAction(type, options);
|
|
204015
204236
|
}
|
|
204016
204237
|
|
|
204017
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
204238
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/non_nullable/instantiate.mjs
|
|
204018
204239
|
function NonNullableOperation(type) {
|
|
204019
204240
|
const excluded = Union([Null(), Undefined()]);
|
|
204020
204241
|
return ExcludeAction(type, excluded, {});
|
|
@@ -204028,7 +204249,7 @@ function NonNullableInstantiate(context, state, type, options) {
|
|
|
204028
204249
|
return NonNullableAction(instantiatedType, options);
|
|
204029
204250
|
}
|
|
204030
204251
|
|
|
204031
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
204252
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/action/omit.mjs
|
|
204032
204253
|
function OmitDeferred(type, indexer, options = {}) {
|
|
204033
204254
|
return Deferred("Omit", [type, indexer], options);
|
|
204034
204255
|
}
|
|
@@ -204037,14 +204258,14 @@ function Omit(type, indexer_or_keys, options = {}) {
|
|
|
204037
204258
|
return OmitAction(type, indexer, options);
|
|
204038
204259
|
}
|
|
204039
204260
|
|
|
204040
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
204261
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/indexable/to_indexable.mjs
|
|
204041
204262
|
function ToIndexable(type) {
|
|
204042
204263
|
const collapsed = CollapseToObject(type);
|
|
204043
204264
|
const result = IsObject2(collapsed) ? collapsed.properties : Unreachable();
|
|
204044
204265
|
return result;
|
|
204045
204266
|
}
|
|
204046
204267
|
|
|
204047
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
204268
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/omit/from_type.mjs
|
|
204048
204269
|
function FromKeys(properties2, keys) {
|
|
204049
204270
|
const result = exports_guard.Keys(properties2).reduce((result2, key) => {
|
|
204050
204271
|
return keys.includes(key) ? result2 : { ...result2, [key]: properties2[key] };
|
|
@@ -204059,7 +204280,7 @@ function FromType14(type, indexer) {
|
|
|
204059
204280
|
return result;
|
|
204060
204281
|
}
|
|
204061
204282
|
|
|
204062
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
204283
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/omit/instantiate.mjs
|
|
204063
204284
|
function OmitAction(type, indexer, options) {
|
|
204064
204285
|
const result = CanInstantiate([type, indexer]) ? exports_memory.Update(FromType14(type, indexer), {}, options) : OmitDeferred(type, indexer, options);
|
|
204065
204286
|
return result;
|
|
@@ -204070,25 +204291,7 @@ function OmitInstantiate(context, state, type, indexer, options) {
|
|
|
204070
204291
|
return OmitAction(instantiatedType, instantiatedIndexer, options);
|
|
204071
204292
|
}
|
|
204072
204293
|
|
|
204073
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
204074
|
-
function OptionsDeferred(type, options) {
|
|
204075
|
-
return Deferred("Options", [type, options], {});
|
|
204076
|
-
}
|
|
204077
|
-
function Options2(type, options) {
|
|
204078
|
-
return OptionsAction(type, options);
|
|
204079
|
-
}
|
|
204080
|
-
|
|
204081
|
-
// ../../node_modules/.bun/typebox@1.1.38/node_modules/typebox/build/type/engine/options/instantiate.mjs
|
|
204082
|
-
function OptionsAction(type, options) {
|
|
204083
|
-
const result = CanInstantiate([type]) ? exports_memory.Update(type, {}, options) : OptionsDeferred(type, options);
|
|
204084
|
-
return result;
|
|
204085
|
-
}
|
|
204086
|
-
function OptionsInstantiate(context, state, type, options) {
|
|
204087
|
-
const instaniatedType = InstantiateType(context, state, type);
|
|
204088
|
-
return OptionsAction(instaniatedType, options);
|
|
204089
|
-
}
|
|
204090
|
-
|
|
204091
|
-
// ../../node_modules/.bun/typebox@1.1.38/node_modules/typebox/build/type/action/parameters.mjs
|
|
204294
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/action/parameters.mjs
|
|
204092
204295
|
function ParametersDeferred(type, options = {}) {
|
|
204093
204296
|
return Deferred("Parameters", [type], options);
|
|
204094
204297
|
}
|
|
@@ -204096,10 +204299,10 @@ function Parameters(type, options = {}) {
|
|
|
204096
204299
|
return ParametersAction(type, options);
|
|
204097
204300
|
}
|
|
204098
204301
|
|
|
204099
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
204302
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/parameters/instantiate.mjs
|
|
204100
204303
|
function ParametersOperation(type) {
|
|
204101
204304
|
const parameters = IsFunction2(type) ? type["parameters"] : [];
|
|
204102
|
-
const instantiatedParameters = InstantiateElements({},
|
|
204305
|
+
const instantiatedParameters = InstantiateElements({}, State([], []), parameters);
|
|
204103
204306
|
const result = Tuple(instantiatedParameters);
|
|
204104
204307
|
return result;
|
|
204105
204308
|
}
|
|
@@ -204112,7 +204315,7 @@ function ParametersInstantiate(context, state, type, options) {
|
|
|
204112
204315
|
return ParametersAction(instantiatedType, options);
|
|
204113
204316
|
}
|
|
204114
204317
|
|
|
204115
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
204318
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/action/partial.mjs
|
|
204116
204319
|
function PartialDeferred(type, options = {}) {
|
|
204117
204320
|
return Deferred("Partial", [type], options);
|
|
204118
204321
|
}
|
|
@@ -204120,7 +204323,7 @@ function Partial(type, options = {}) {
|
|
|
204120
204323
|
return PartialAction(type, options);
|
|
204121
204324
|
}
|
|
204122
204325
|
|
|
204123
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
204326
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/partial/from_cyclic.mjs
|
|
204124
204327
|
function FromCyclic3(defs, ref2) {
|
|
204125
204328
|
const target2 = CyclicTarget(defs, ref2);
|
|
204126
204329
|
const partial2 = FromType15(target2);
|
|
@@ -204128,33 +204331,41 @@ function FromCyclic3(defs, ref2) {
|
|
|
204128
204331
|
return result;
|
|
204129
204332
|
}
|
|
204130
204333
|
|
|
204131
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
204334
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/partial/from_dependent.mjs
|
|
204335
|
+
function FromDependent3(if_, then_, else_) {
|
|
204336
|
+
const evaluated = EvaluateDependent(if_, then_, else_);
|
|
204337
|
+
const result = FromType15(evaluated);
|
|
204338
|
+
return result;
|
|
204339
|
+
}
|
|
204340
|
+
|
|
204341
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/partial/from_intersect.mjs
|
|
204132
204342
|
function FromIntersect3(types2) {
|
|
204133
|
-
const
|
|
204134
|
-
|
|
204343
|
+
const evaluated = EvaluateIntersect(types2);
|
|
204344
|
+
const result = FromType15(evaluated);
|
|
204345
|
+
return result;
|
|
204135
204346
|
}
|
|
204136
204347
|
|
|
204137
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
204348
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/partial/from_union.mjs
|
|
204138
204349
|
function FromUnion6(types2) {
|
|
204139
204350
|
const result = types2.map((type) => FromType15(type));
|
|
204140
204351
|
return Union(result);
|
|
204141
204352
|
}
|
|
204142
204353
|
|
|
204143
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
204144
|
-
function
|
|
204354
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/partial/from_object.mjs
|
|
204355
|
+
function FromObject6(properties2) {
|
|
204145
204356
|
const mapped = exports_guard.Keys(properties2).reduce((result2, left) => {
|
|
204146
|
-
return { ...result2, [left]:
|
|
204357
|
+
return { ...result2, [left]: AddOptional(properties2[left]) };
|
|
204147
204358
|
}, {});
|
|
204148
204359
|
const result = _Object_(mapped);
|
|
204149
204360
|
return result;
|
|
204150
204361
|
}
|
|
204151
204362
|
|
|
204152
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
204363
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/partial/from_type.mjs
|
|
204153
204364
|
function FromType15(type) {
|
|
204154
|
-
return IsCyclic(type) ? FromCyclic3(type.$defs, type.$ref) : IsIntersect(type) ? FromIntersect3(type.allOf) : IsUnion(type) ? FromUnion6(type.anyOf) : IsObject2(type) ?
|
|
204365
|
+
return IsCyclic(type) ? FromCyclic3(type.$defs, type.$ref) : IsDependent(type) ? FromDependent3(type.if, type.then, type.else) : IsIntersect(type) ? FromIntersect3(type.allOf) : IsUnion(type) ? FromUnion6(type.anyOf) : IsObject2(type) ? FromObject6(type.properties) : _Object_({});
|
|
204155
204366
|
}
|
|
204156
204367
|
|
|
204157
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
204368
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/partial/instantiate.mjs
|
|
204158
204369
|
function PartialAction(type, options) {
|
|
204159
204370
|
const result = CanInstantiate([type]) ? exports_memory.Update(FromType15(type), {}, options) : PartialDeferred(type, options);
|
|
204160
204371
|
return result;
|
|
@@ -204164,7 +204375,7 @@ function PartialInstantiate(context, state, type, options) {
|
|
|
204164
204375
|
return PartialAction(instantiatedType, options);
|
|
204165
204376
|
}
|
|
204166
204377
|
|
|
204167
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
204378
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/action/pick.mjs
|
|
204168
204379
|
function PickDeferred(type, indexer, options = {}) {
|
|
204169
204380
|
return Deferred("Pick", [type, indexer], options);
|
|
204170
204381
|
}
|
|
@@ -204173,7 +204384,7 @@ function Pick(type, indexer_or_keys, options = {}) {
|
|
|
204173
204384
|
return PickAction(type, indexer, options);
|
|
204174
204385
|
}
|
|
204175
204386
|
|
|
204176
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
204387
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/pick/from_type.mjs
|
|
204177
204388
|
function FromKeys2(properties2, keys) {
|
|
204178
204389
|
const result = exports_guard.Keys(properties2).reduce((result2, key) => {
|
|
204179
204390
|
return keys.includes(key) ? exports_memory.Assign(result2, { [key]: properties2[key] }) : result2;
|
|
@@ -204188,7 +204399,7 @@ function FromType16(type, indexer) {
|
|
|
204188
204399
|
return result;
|
|
204189
204400
|
}
|
|
204190
204401
|
|
|
204191
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
204402
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/pick/instantiate.mjs
|
|
204192
204403
|
function PickAction(type, indexer, options) {
|
|
204193
204404
|
const result = CanInstantiate([type, indexer]) ? exports_memory.Update(FromType16(type, indexer), {}, options) : PickDeferred(type, indexer, options);
|
|
204194
204405
|
return result;
|
|
@@ -204199,22 +204410,21 @@ function PickInstantiate(context, state, type, indexer, options) {
|
|
|
204199
204410
|
return PickAction(instantiatedType, instantiatedIndexer, options);
|
|
204200
204411
|
}
|
|
204201
204412
|
|
|
204202
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
204413
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/action/readonly_object.mjs
|
|
204203
204414
|
function ReadonlyObjectDeferred(type, options = {}) {
|
|
204204
204415
|
return Deferred("ReadonlyObject", [type], options);
|
|
204205
204416
|
}
|
|
204206
204417
|
function ReadonlyObject(type, options = {}) {
|
|
204207
204418
|
return ReadonlyObjectAction(type, options);
|
|
204208
204419
|
}
|
|
204209
|
-
var ReadonlyType = ReadonlyObject;
|
|
204210
204420
|
|
|
204211
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
204421
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/readonly_object/from_array.mjs
|
|
204212
204422
|
function FromArray4(type) {
|
|
204213
|
-
const result =
|
|
204423
|
+
const result = AddImmutable(_Array_(type));
|
|
204214
204424
|
return result;
|
|
204215
204425
|
}
|
|
204216
204426
|
|
|
204217
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
204427
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/readonly_object/from_cyclic.mjs
|
|
204218
204428
|
function FromCyclic4(defs, ref2) {
|
|
204219
204429
|
const target2 = CyclicTarget(defs, ref2);
|
|
204220
204430
|
const partial2 = FromType17(target2);
|
|
@@ -204222,39 +204432,47 @@ function FromCyclic4(defs, ref2) {
|
|
|
204222
204432
|
return result;
|
|
204223
204433
|
}
|
|
204224
204434
|
|
|
204225
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
204435
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/readonly_object/from_dependent.mjs
|
|
204436
|
+
function FromDependent4(if_, then_, else_) {
|
|
204437
|
+
const evaluated = EvaluateDependent(if_, then_, else_);
|
|
204438
|
+
const result = FromType17(evaluated);
|
|
204439
|
+
return result;
|
|
204440
|
+
}
|
|
204441
|
+
|
|
204442
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/readonly_object/from_intersect.mjs
|
|
204226
204443
|
function FromIntersect4(types2) {
|
|
204227
|
-
const
|
|
204228
|
-
|
|
204444
|
+
const evaluated = EvaluateIntersect(types2);
|
|
204445
|
+
const result = FromType17(evaluated);
|
|
204446
|
+
return result;
|
|
204229
204447
|
}
|
|
204230
204448
|
|
|
204231
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
204232
|
-
function
|
|
204449
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/readonly_object/from_object.mjs
|
|
204450
|
+
function FromObject7(properties2) {
|
|
204233
204451
|
const mapped = exports_guard.Keys(properties2).reduce((result2, left) => {
|
|
204234
|
-
return { ...result2, [left]:
|
|
204452
|
+
return { ...result2, [left]: AddReadonly(properties2[left]) };
|
|
204235
204453
|
}, {});
|
|
204236
204454
|
const result = _Object_(mapped);
|
|
204237
204455
|
return result;
|
|
204238
204456
|
}
|
|
204239
204457
|
|
|
204240
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
204458
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/readonly_object/from_tuple.mjs
|
|
204241
204459
|
function FromTuple4(types2) {
|
|
204242
|
-
const result =
|
|
204460
|
+
const result = AddImmutable(Tuple(types2));
|
|
204243
204461
|
return result;
|
|
204244
204462
|
}
|
|
204245
204463
|
|
|
204246
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
204464
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/readonly_object/from_union.mjs
|
|
204247
204465
|
function FromUnion7(types2) {
|
|
204248
204466
|
const result = types2.map((type) => FromType17(type));
|
|
204249
204467
|
return Union(result);
|
|
204250
204468
|
}
|
|
204251
204469
|
|
|
204252
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
204470
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/readonly_object/from_type.mjs
|
|
204253
204471
|
function FromType17(type) {
|
|
204254
|
-
return IsArray2(type) ? FromArray4(type.items) : IsCyclic(type) ? FromCyclic4(type.$defs, type.$ref) : IsIntersect(type) ? FromIntersect4(type.allOf) : IsObject2(type) ?
|
|
204472
|
+
return IsArray2(type) ? FromArray4(type.items) : IsCyclic(type) ? FromCyclic4(type.$defs, type.$ref) : IsDependent(type) ? FromDependent4(type.if, type.then, type.else) : IsIntersect(type) ? FromIntersect4(type.allOf) : IsObject2(type) ? FromObject7(type.properties) : IsTuple(type) ? FromTuple4(type.items) : IsUnion(type) ? FromUnion7(type.anyOf) : type;
|
|
204255
204473
|
}
|
|
204256
204474
|
|
|
204257
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
204475
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/readonly_object/instantiate.mjs
|
|
204258
204476
|
function ReadonlyObjectAction(type, options) {
|
|
204259
204477
|
const result = CanInstantiate([type]) ? exports_memory.Update(FromType17(type), {}, options) : ReadonlyObjectDeferred(type);
|
|
204260
204478
|
return result;
|
|
@@ -204264,12 +204482,12 @@ function ReadonlyObjectInstantiate(context, state, type, options) {
|
|
|
204264
204482
|
return ReadonlyObjectAction(instantiatedType, options);
|
|
204265
204483
|
}
|
|
204266
204484
|
|
|
204267
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
204485
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/ref/instantiate.mjs
|
|
204268
204486
|
function RefInstantiate(context, state, type, ref2) {
|
|
204269
|
-
return ref2
|
|
204487
|
+
return state.visited.includes(ref2) ? type : (ref2 in context) ? InstantiateType(context, State(state["callstack"], [...state["visited"], ref2]), context[ref2]) : type;
|
|
204270
204488
|
}
|
|
204271
204489
|
|
|
204272
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
204490
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/required/from_cyclic.mjs
|
|
204273
204491
|
function FromCyclic5(defs, ref2) {
|
|
204274
204492
|
const target2 = CyclicTarget(defs, ref2);
|
|
204275
204493
|
const partial2 = FromType18(target2);
|
|
@@ -204277,33 +204495,41 @@ function FromCyclic5(defs, ref2) {
|
|
|
204277
204495
|
return result;
|
|
204278
204496
|
}
|
|
204279
204497
|
|
|
204280
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
204498
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/required/from_dependent.mjs
|
|
204499
|
+
function FromDependent5(if_, then_, else_) {
|
|
204500
|
+
const evaluated = EvaluateDependent(if_, then_, else_);
|
|
204501
|
+
const result = FromType18(evaluated);
|
|
204502
|
+
return result;
|
|
204503
|
+
}
|
|
204504
|
+
|
|
204505
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/required/from_intersect.mjs
|
|
204281
204506
|
function FromIntersect5(types2) {
|
|
204282
|
-
const
|
|
204283
|
-
|
|
204507
|
+
const evaluated = EvaluateIntersect(types2);
|
|
204508
|
+
const result = FromType18(evaluated);
|
|
204509
|
+
return result;
|
|
204284
204510
|
}
|
|
204285
204511
|
|
|
204286
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
204512
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/required/from_union.mjs
|
|
204287
204513
|
function FromUnion8(types2) {
|
|
204288
204514
|
const result = types2.map((type) => FromType18(type));
|
|
204289
204515
|
return Union(result);
|
|
204290
204516
|
}
|
|
204291
204517
|
|
|
204292
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
204293
|
-
function
|
|
204518
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/required/from_object.mjs
|
|
204519
|
+
function FromObject8(properties2) {
|
|
204294
204520
|
const mapped = exports_guard.Keys(properties2).reduce((result2, left) => {
|
|
204295
|
-
return { ...result2, [left]:
|
|
204521
|
+
return { ...result2, [left]: RemoveOptional(properties2[left]) };
|
|
204296
204522
|
}, {});
|
|
204297
204523
|
const result = _Object_(mapped);
|
|
204298
204524
|
return result;
|
|
204299
204525
|
}
|
|
204300
204526
|
|
|
204301
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
204527
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/required/from_type.mjs
|
|
204302
204528
|
function FromType18(type) {
|
|
204303
|
-
return IsCyclic(type) ? FromCyclic5(type.$defs, type.$ref) : IsIntersect(type) ? FromIntersect5(type.allOf) : IsUnion(type) ? FromUnion8(type.anyOf) : IsObject2(type) ?
|
|
204529
|
+
return IsCyclic(type) ? FromCyclic5(type.$defs, type.$ref) : IsDependent(type) ? FromDependent5(type.if, type.then, type.else) : IsIntersect(type) ? FromIntersect5(type.allOf) : IsUnion(type) ? FromUnion8(type.anyOf) : IsObject2(type) ? FromObject8(type.properties) : _Object_({});
|
|
204304
204530
|
}
|
|
204305
204531
|
|
|
204306
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
204532
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/action/required.mjs
|
|
204307
204533
|
function RequiredDeferred(type, options = {}) {
|
|
204308
204534
|
return Deferred("Required", [type], options);
|
|
204309
204535
|
}
|
|
@@ -204311,7 +204537,7 @@ function Required(type, options = {}) {
|
|
|
204311
204537
|
return RequiredAction(type, options);
|
|
204312
204538
|
}
|
|
204313
204539
|
|
|
204314
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
204540
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/required/instantiate.mjs
|
|
204315
204541
|
function RequiredAction(type, options) {
|
|
204316
204542
|
const result = CanInstantiate([type]) ? exports_memory.Update(FromType18(type), {}, options) : RequiredDeferred(type, options);
|
|
204317
204543
|
return result;
|
|
@@ -204321,7 +204547,7 @@ function RequiredInstantiate(context, state, type, options) {
|
|
|
204321
204547
|
return RequiredAction(instaniatedType, options);
|
|
204322
204548
|
}
|
|
204323
204549
|
|
|
204324
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
204550
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/action/return_type.mjs
|
|
204325
204551
|
function ReturnTypeDeferred(type, options = {}) {
|
|
204326
204552
|
return Deferred("ReturnType", [type], options);
|
|
204327
204553
|
}
|
|
@@ -204329,7 +204555,7 @@ function ReturnType(type, options = {}) {
|
|
|
204329
204555
|
return ReturnTypeAction(type, options);
|
|
204330
204556
|
}
|
|
204331
204557
|
|
|
204332
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
204558
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/return_type/instantiate.mjs
|
|
204333
204559
|
function ReturnTypeOperation(type) {
|
|
204334
204560
|
return IsFunction2(type) ? type["returnType"] : Never();
|
|
204335
204561
|
}
|
|
@@ -204342,7 +204568,25 @@ function ReturnTypeInstantiate(context, state, type, options = {}) {
|
|
|
204342
204568
|
return ReturnTypeAction(instantiatedType, options);
|
|
204343
204569
|
}
|
|
204344
204570
|
|
|
204345
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
204571
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/action/with.mjs
|
|
204572
|
+
function WithDeferred(type, options) {
|
|
204573
|
+
return Deferred("With", [type, options], {});
|
|
204574
|
+
}
|
|
204575
|
+
function With2(type, options) {
|
|
204576
|
+
return WithAction(type, options);
|
|
204577
|
+
}
|
|
204578
|
+
|
|
204579
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/with/instantiate.mjs
|
|
204580
|
+
function WithAction(type, options) {
|
|
204581
|
+
const result = CanInstantiate([type]) ? exports_memory.Update(type, {}, options) : WithDeferred(type, options);
|
|
204582
|
+
return result;
|
|
204583
|
+
}
|
|
204584
|
+
function WithInstantiate(context, state, type, options) {
|
|
204585
|
+
const instaniatedType = InstantiateType(context, state, type);
|
|
204586
|
+
return WithAction(instaniatedType, options);
|
|
204587
|
+
}
|
|
204588
|
+
|
|
204589
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/rest/spread.mjs
|
|
204346
204590
|
function SpreadElement(type) {
|
|
204347
204591
|
const result = IsRest(type) ? IsTuple(type.items) ? RestSpread(type.items.items) : IsInfer(type.items) ? [type] : IsRef(type.items) ? [type] : [Never()] : [type];
|
|
204348
204592
|
return result;
|
|
@@ -204353,18 +204597,12 @@ function RestSpread(types2) {
|
|
|
204353
204597
|
}, []);
|
|
204354
204598
|
return result;
|
|
204355
204599
|
}
|
|
204356
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
204357
|
-
function
|
|
204358
|
-
return
|
|
204359
|
-
}
|
|
204360
|
-
function ModifierActions(type, readonly2, optional2) {
|
|
204361
|
-
return IsReadonlyRemoveAction(type) ? ModifierActions(type.type, "remove", optional2) : IsOptionalRemoveAction(type) ? ModifierActions(type.type, readonly2, "remove") : IsReadonlyAddAction(type) ? ModifierActions(type.type, "add", optional2) : IsOptionalAddAction(type) ? ModifierActions(type.type, readonly2, "add") : [type, readonly2, optional2];
|
|
204362
|
-
}
|
|
204363
|
-
function ApplyReadonly2(action, type) {
|
|
204364
|
-
return exports_guard.IsEqual(action, "remove") ? ReadonlyRemove(type) : exports_guard.IsEqual(action, "add") ? ReadonlyAdd(type) : type;
|
|
204600
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/instantiate.mjs
|
|
204601
|
+
function State(callstack, visited) {
|
|
204602
|
+
return { callstack, visited };
|
|
204365
204603
|
}
|
|
204366
|
-
function
|
|
204367
|
-
return exports_guard.
|
|
204604
|
+
function CanInstantiate(types2) {
|
|
204605
|
+
return exports_guard.ShiftLeft(types2, (left, right) => IsRef(left) ? false : CanInstantiate(right), () => true);
|
|
204368
204606
|
}
|
|
204369
204607
|
function InstantiateProperties(context, state, properties2) {
|
|
204370
204608
|
return exports_guard.Keys(properties2).reduce((result, key) => {
|
|
@@ -204379,70 +204617,77 @@ function InstantiateElements(context, state, types2) {
|
|
|
204379
204617
|
function InstantiateTypes(context, state, types2) {
|
|
204380
204618
|
return types2.map((type) => InstantiateType(context, state, type));
|
|
204381
204619
|
}
|
|
204620
|
+
function WithModifiers(type, instantiatedType) {
|
|
204621
|
+
const withOptional = IsOptional(type) ? AddOptionalAction(instantiatedType, {}) : instantiatedType;
|
|
204622
|
+
const withReadonly = IsReadonly(type) ? AddReadonlyAction(withOptional, {}) : withOptional;
|
|
204623
|
+
const withImmutable = IsImmutable(type) ? AddImmutableAction(withReadonly, {}) : withReadonly;
|
|
204624
|
+
return withImmutable;
|
|
204625
|
+
}
|
|
204382
204626
|
function InstantiateDeferred(context, state, action, parameters, options) {
|
|
204383
|
-
return exports_guard.IsEqual(action, "
|
|
204384
|
-
}
|
|
204385
|
-
function
|
|
204386
|
-
const
|
|
204387
|
-
const
|
|
204388
|
-
const type = IsBase(modifiers[0]) ? modifiers[0].Clone() : modifiers[0];
|
|
204389
|
-
const instantiated = IsRef(type) ? RefInstantiate(context, state, type, type.$ref) : IsArray2(type) ? _Array_(InstantiateType(context, state, type.items), ArrayOptions(type)) : IsAsyncIterator2(type) ? AsyncIterator(InstantiateType(context, state, type.iteratorItems), AsyncIteratorOptions(type)) : IsCall(type) ? CallInstantiate(context, state, type.target, type.arguments) : IsConstructor2(type) ? Constructor(InstantiateTypes(context, state, type.parameters), InstantiateType(context, state, type.instanceType), ConstructorOptions(type)) : IsDeferred(type) ? InstantiateDeferred(context, state, type.action, type.parameters, type.options) : IsFunction2(type) ? _Function_(InstantiateTypes(context, state, type.parameters), InstantiateType(context, state, type.returnType), FunctionOptions(type)) : IsIntersect(type) ? Intersect(InstantiateTypes(context, state, type.allOf), IntersectOptions(type)) : IsIterator2(type) ? Iterator(InstantiateType(context, state, type.iteratorItems), IteratorOptions(type)) : IsObject2(type) ? _Object_(InstantiateProperties(context, state, type.properties), ObjectOptions(type)) : IsPromise(type) ? _Promise_(InstantiateType(context, state, type.item), PromiseOptions(type)) : IsRecord(type) ? RecordFromPattern(RecordPattern(type), InstantiateType(context, state, RecordValue(type))) : IsRest(type) ? Rest(InstantiateType(context, state, type.items)) : IsTuple(type) ? Tuple(InstantiateElements(context, state, type.items), TupleOptions(type)) : IsUnion(type) ? Union(InstantiateTypes(context, state, type.anyOf), UnionOptions(type)) : type;
|
|
204390
|
-
const withImmutable = immutable ? Immutable(instantiated) : instantiated;
|
|
204391
|
-
const withModifiers = ApplyReadonly2(modifiers[1], ApplyOptional2(modifiers[2], withImmutable));
|
|
204627
|
+
return exports_guard.IsEqual(action, "AddImmutable") ? AddImmutableInstantiate(context, state, parameters[0], options) : exports_guard.IsEqual(action, "RemoveImmutable") ? RemoveImmutableInstantiate(context, state, parameters[0], options) : exports_guard.IsEqual(action, "AddReadonly") ? AddReadonlyInstantiate(context, state, parameters[0], options) : exports_guard.IsEqual(action, "RemoveReadonly") ? RemoveReadonlyInstantiate(context, state, parameters[0], options) : exports_guard.IsEqual(action, "AddOptional") ? AddOptionalInstantiate(context, state, parameters[0], options) : exports_guard.IsEqual(action, "RemoveOptional") ? RemoveOptionalInstantiate(context, state, parameters[0], options) : exports_guard.IsEqual(action, "Capitalize") ? CapitalizeInstantiate(context, state, parameters[0], options) : exports_guard.IsEqual(action, "Conditional") ? ConditionalInstantiate(context, state, parameters[0], parameters[1], parameters[2], parameters[3], options) : exports_guard.IsEqual(action, "ConstructorParameters") ? ConstructorParametersInstantiate(context, state, parameters[0], options) : exports_guard.IsEqual(action, "Evaluate") ? EvaluateInstantiate(context, state, parameters[0], options) : exports_guard.IsEqual(action, "Exclude") ? ExcludeInstantiate(context, state, parameters[0], parameters[1], options) : exports_guard.IsEqual(action, "Extract") ? ExtractInstantiate(context, state, parameters[0], parameters[1], options) : exports_guard.IsEqual(action, "Index") ? IndexInstantiate(context, state, parameters[0], parameters[1], options) : exports_guard.IsEqual(action, "InstanceType") ? InstanceTypeInstantiate(context, state, parameters[0], options) : exports_guard.IsEqual(action, "Interface") ? InterfaceInstantiate(context, state, parameters[0], parameters[1], options) : exports_guard.IsEqual(action, "KeyOf") ? KeyOfInstantiate(context, state, parameters[0], options) : exports_guard.IsEqual(action, "Lowercase") ? LowercaseInstantiate(context, state, parameters[0], options) : exports_guard.IsEqual(action, "Mapped") ? MappedInstantiate(context, state, parameters[0], parameters[1], parameters[2], parameters[3], options) : exports_guard.IsEqual(action, "Module") ? ModuleInstantiate(context, state, parameters[0], options) : exports_guard.IsEqual(action, "NonNullable") ? NonNullableInstantiate(context, state, parameters[0], options) : exports_guard.IsEqual(action, "Pick") ? PickInstantiate(context, state, parameters[0], parameters[1], options) : exports_guard.IsEqual(action, "Parameters") ? ParametersInstantiate(context, state, parameters[0], options) : exports_guard.IsEqual(action, "Partial") ? PartialInstantiate(context, state, parameters[0], options) : exports_guard.IsEqual(action, "Omit") ? OmitInstantiate(context, state, parameters[0], parameters[1], options) : exports_guard.IsEqual(action, "ReadonlyObject") ? ReadonlyObjectInstantiate(context, state, parameters[0], options) : exports_guard.IsEqual(action, "Record") ? RecordInstantiate(context, state, parameters[0], parameters[1], options) : exports_guard.IsEqual(action, "Required") ? RequiredInstantiate(context, state, parameters[0], options) : exports_guard.IsEqual(action, "ReturnType") ? ReturnTypeInstantiate(context, state, parameters[0], options) : exports_guard.IsEqual(action, "TemplateLiteral") ? TemplateLiteralInstantiate(context, state, parameters[0], options) : exports_guard.IsEqual(action, "Uncapitalize") ? UncapitalizeInstantiate(context, state, parameters[0], options) : exports_guard.IsEqual(action, "Uppercase") ? UppercaseInstantiate(context, state, parameters[0], options) : exports_guard.IsEqual(action, "With") ? WithInstantiate(context, state, parameters[0], parameters[1]) : Deferred(action, parameters, options);
|
|
204628
|
+
}
|
|
204629
|
+
function InstantiateImmediate(context, state, type) {
|
|
204630
|
+
const instantiatedType = IsRef(type) ? RefInstantiate(context, state, type, type.$ref) : IsArray2(type) ? _Array_(InstantiateType(context, state, type.items), ArrayOptions(type)) : IsCall(type) ? CallInstantiate(context, state, type.target, type.arguments) : IsConstructor2(type) ? Constructor(InstantiateTypes(context, state, type.parameters), InstantiateType(context, state, type.instanceType), ConstructorOptions(type)) : IsFunction2(type) ? _Function_(InstantiateTypes(context, state, type.parameters), InstantiateType(context, state, type.returnType), FunctionOptions(type)) : IsDependent(type) ? Dependent(InstantiateType(context, state, type.if), InstantiateType(context, state, type.then), InstantiateType(context, state, type.else), DependentOptions(type)) : IsIntersect(type) ? Intersect(InstantiateTypes(context, state, type.allOf), IntersectOptions(type)) : IsObject2(type) ? _Object_(InstantiateProperties(context, state, type.properties), ObjectOptions(type)) : IsRecord(type) ? RecordFromPattern(RecordPattern(type), InstantiateType(context, state, RecordValue(type))) : IsRest(type) ? Rest(InstantiateType(context, state, type.items)) : IsTuple(type) ? Tuple(InstantiateElements(context, state, type.items), TupleOptions(type)) : IsUnion(type) ? Union(InstantiateTypes(context, state, type.anyOf), UnionOptions(type)) : type;
|
|
204631
|
+
const withModifiers = WithModifiers(type, instantiatedType);
|
|
204392
204632
|
return withModifiers;
|
|
204393
204633
|
}
|
|
204634
|
+
function InstantiateType(context, state, type) {
|
|
204635
|
+
const result = IsDeferred(type) ? InstantiateDeferred(context, state, type.action, type.parameters, type.options) : InstantiateImmediate(context, state, type);
|
|
204636
|
+
return result;
|
|
204637
|
+
}
|
|
204394
204638
|
function Instantiate(context, type) {
|
|
204395
|
-
return InstantiateType(context,
|
|
204639
|
+
return InstantiateType(context, State([], []), type);
|
|
204396
204640
|
}
|
|
204397
204641
|
|
|
204398
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
204399
|
-
function
|
|
204400
|
-
return
|
|
204642
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/engine/immutable/instantiate_add.mjs
|
|
204643
|
+
function AddImmutableOperation(type) {
|
|
204644
|
+
return exports_memory.Update(type, { "~immutable": true }, {});
|
|
204401
204645
|
}
|
|
204402
|
-
function
|
|
204403
|
-
const result =
|
|
204646
|
+
function AddImmutableAction(type, options) {
|
|
204647
|
+
const result = exports_memory.Update(AddImmutableOperation(type), {}, options);
|
|
204404
204648
|
return result;
|
|
204405
204649
|
}
|
|
204406
|
-
function
|
|
204650
|
+
function AddImmutableInstantiate(context, state, type, options) {
|
|
204407
204651
|
const instantiatedType = InstantiateType(context, state, type);
|
|
204408
|
-
return
|
|
204652
|
+
return AddImmutableAction(instantiatedType, options);
|
|
204409
204653
|
}
|
|
204410
204654
|
|
|
204411
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
204412
|
-
function
|
|
204413
|
-
return Deferred("
|
|
204655
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/action/_add_immutable.mjs
|
|
204656
|
+
function AddImmutableDeferred(type, options = {}) {
|
|
204657
|
+
return Deferred("AddImmutable", [type], options);
|
|
204414
204658
|
}
|
|
204415
|
-
function
|
|
204416
|
-
return
|
|
204659
|
+
function AddImmutable(type, options = {}) {
|
|
204660
|
+
return AddImmutableAction(type, options);
|
|
204417
204661
|
}
|
|
204418
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
204662
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/action/evaluate.mjs
|
|
204419
204663
|
function EvaluateDeferred(type, options = {}) {
|
|
204420
204664
|
return Deferred("Evaluate", [type], options);
|
|
204421
204665
|
}
|
|
204422
204666
|
function Evaluate(type, options = {}) {
|
|
204423
204667
|
return EvaluateAction(type, options);
|
|
204424
204668
|
}
|
|
204425
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
204426
|
-
function ModuleDeferred(
|
|
204427
|
-
return Deferred("Module", [
|
|
204669
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/action/module.mjs
|
|
204670
|
+
function ModuleDeferred(declarations, options = {}) {
|
|
204671
|
+
return Deferred("Module", [declarations], options);
|
|
204428
204672
|
}
|
|
204429
|
-
function Module2(
|
|
204430
|
-
return
|
|
204673
|
+
function Module2(declarations, options = {}) {
|
|
204674
|
+
return ModuleInstantiate({}, State([], []), declarations, options);
|
|
204431
204675
|
}
|
|
204432
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
204676
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/type/script/script.mjs
|
|
204433
204677
|
function Script2(...args) {
|
|
204434
|
-
const [context, input,
|
|
204435
|
-
2: (script,
|
|
204436
|
-
3: (context2, script,
|
|
204678
|
+
const [context, input, options] = exports_arguments.Match(args, {
|
|
204679
|
+
2: (script, options2) => exports_guard.IsString(script) ? [{}, script, options2] : [script, options2, {}],
|
|
204680
|
+
3: (context2, script, options2) => [context2, script, options2],
|
|
204437
204681
|
1: (script) => [{}, script, {}]
|
|
204438
204682
|
});
|
|
204439
204683
|
const result = Script(input);
|
|
204440
|
-
const parsed = exports_guard.IsArray(result) && exports_guard.IsEqual(result.length, 2) ? InstantiateType(context,
|
|
204441
|
-
return exports_memory.Update(parsed, {},
|
|
204684
|
+
const parsed = exports_guard.IsArray(result) && exports_guard.IsEqual(result.length, 2) ? InstantiateType(context, State([], []), result[0]) : Never();
|
|
204685
|
+
return exports_memory.Update(parsed, {}, options);
|
|
204442
204686
|
}
|
|
204443
|
-
// ../../node_modules/.bun/typebox@1.1
|
|
204687
|
+
// ../../node_modules/.bun/typebox@1.3.1/node_modules/typebox/build/typebox.mjs
|
|
204444
204688
|
var exports_typebox = {};
|
|
204445
204689
|
__export(exports_typebox, {
|
|
204690
|
+
With: () => With2,
|
|
204446
204691
|
Void: () => Void,
|
|
204447
204692
|
Uppercase: () => Uppercase,
|
|
204448
204693
|
Unsafe: () => Unsafe,
|
|
@@ -204465,15 +204710,12 @@ __export(exports_typebox, {
|
|
|
204465
204710
|
RecordPattern: () => RecordPattern,
|
|
204466
204711
|
RecordKey: () => RecordKey,
|
|
204467
204712
|
Record: () => Record,
|
|
204468
|
-
ReadonlyType: () => ReadonlyType,
|
|
204469
204713
|
ReadonlyObject: () => ReadonlyObject,
|
|
204470
204714
|
Readonly: () => Readonly,
|
|
204471
|
-
Promise: () => _Promise_,
|
|
204472
204715
|
Pick: () => Pick,
|
|
204473
204716
|
Partial: () => Partial,
|
|
204474
204717
|
Parameters: () => Parameters,
|
|
204475
204718
|
Parameter: () => Parameter,
|
|
204476
|
-
Options: () => Options2,
|
|
204477
204719
|
Optional: () => Optional,
|
|
204478
204720
|
Omit: () => Omit,
|
|
204479
204721
|
Object: () => _Object_,
|
|
@@ -204482,11 +204724,10 @@ __export(exports_typebox, {
|
|
|
204482
204724
|
NonNullable: () => NonNullable,
|
|
204483
204725
|
Never: () => Never,
|
|
204484
204726
|
Module: () => Module2,
|
|
204485
|
-
Mapped: () =>
|
|
204727
|
+
Mapped: () => Mapped,
|
|
204486
204728
|
Lowercase: () => Lowercase,
|
|
204487
204729
|
Literal: () => Literal,
|
|
204488
204730
|
KeyOf: () => KeyOf2,
|
|
204489
|
-
Iterator: () => Iterator,
|
|
204490
204731
|
IsVoid: () => IsVoid,
|
|
204491
204732
|
IsUnsafe: () => IsUnsafe,
|
|
204492
204733
|
IsUnknown: () => IsUnknown,
|
|
@@ -204496,23 +204737,21 @@ __export(exports_typebox, {
|
|
|
204496
204737
|
IsThis: () => IsThis,
|
|
204497
204738
|
IsTemplateLiteral: () => IsTemplateLiteral,
|
|
204498
204739
|
IsSymbol: () => IsSymbol2,
|
|
204499
|
-
IsString: () =>
|
|
204740
|
+
IsString: () => IsString3,
|
|
204500
204741
|
IsSchema: () => IsSchema,
|
|
204501
204742
|
IsRest: () => IsRest,
|
|
204502
204743
|
IsRefine: () => IsRefine,
|
|
204503
204744
|
IsRef: () => IsRef,
|
|
204504
204745
|
IsRecord: () => IsRecord,
|
|
204505
204746
|
IsReadonly: () => IsReadonly,
|
|
204506
|
-
IsPromise: () => IsPromise,
|
|
204507
204747
|
IsParameter: () => IsParameter,
|
|
204508
204748
|
IsOptional: () => IsOptional,
|
|
204509
204749
|
IsObject: () => IsObject2,
|
|
204510
|
-
IsNumber: () =>
|
|
204750
|
+
IsNumber: () => IsNumber3,
|
|
204511
204751
|
IsNull: () => IsNull2,
|
|
204512
204752
|
IsNever: () => IsNever,
|
|
204513
204753
|
IsLiteral: () => IsLiteral,
|
|
204514
204754
|
IsKind: () => IsKind,
|
|
204515
|
-
IsIterator: () => IsIterator2,
|
|
204516
204755
|
IsIntersect: () => IsIntersect,
|
|
204517
204756
|
IsInteger: () => IsInteger2,
|
|
204518
204757
|
IsInfer: () => IsInfer,
|
|
@@ -204521,14 +204760,13 @@ __export(exports_typebox, {
|
|
|
204521
204760
|
IsGeneric: () => IsGeneric,
|
|
204522
204761
|
IsFunction: () => IsFunction2,
|
|
204523
204762
|
IsEnum: () => IsEnum,
|
|
204763
|
+
IsDependent: () => IsDependent,
|
|
204524
204764
|
IsCyclic: () => IsCyclic,
|
|
204525
204765
|
IsConstructor: () => IsConstructor2,
|
|
204526
204766
|
IsCodec: () => IsCodec,
|
|
204527
204767
|
IsCall: () => IsCall,
|
|
204528
|
-
IsBoolean: () =>
|
|
204768
|
+
IsBoolean: () => IsBoolean3,
|
|
204529
204769
|
IsBigInt: () => IsBigInt2,
|
|
204530
|
-
IsBase: () => IsBase,
|
|
204531
|
-
IsAsyncIterator: () => IsAsyncIterator2,
|
|
204532
204770
|
IsArray: () => IsArray2,
|
|
204533
204771
|
IsAny: () => IsAny,
|
|
204534
204772
|
Intersect: () => Intersect,
|
|
@@ -204544,12 +204782,13 @@ __export(exports_typebox, {
|
|
|
204544
204782
|
Function: () => _Function_,
|
|
204545
204783
|
Extract: () => Extract,
|
|
204546
204784
|
ExtendsResult: () => exports_result,
|
|
204547
|
-
Extends: () =>
|
|
204785
|
+
Extends: () => Extends,
|
|
204548
204786
|
Exclude: () => Exclude,
|
|
204549
204787
|
Evaluate: () => Evaluate,
|
|
204550
204788
|
Enum: () => Enum,
|
|
204551
204789
|
EncodeBuilder: () => EncodeBuilder,
|
|
204552
204790
|
Encode: () => Encode,
|
|
204791
|
+
Dependent: () => Dependent,
|
|
204553
204792
|
DecodeBuilder: () => DecodeBuilder,
|
|
204554
204793
|
Decode: () => Decode,
|
|
204555
204794
|
Cyclic: () => Cyclic,
|
|
@@ -204561,9 +204800,6 @@ __export(exports_typebox, {
|
|
|
204561
204800
|
Call: () => Call,
|
|
204562
204801
|
Boolean: () => Boolean2,
|
|
204563
204802
|
BigInt: () => BigInt2,
|
|
204564
|
-
Base: () => Base,
|
|
204565
|
-
Awaited: () => Awaited,
|
|
204566
|
-
AsyncIterator: () => AsyncIterator,
|
|
204567
204803
|
Array: () => _Array_,
|
|
204568
204804
|
Any: () => Any
|
|
204569
204805
|
});
|