skilld 1.5.4 → 1.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (101) hide show
  1. package/README.md +3 -3
  2. package/dist/_chunks/agent.mjs +10 -78
  3. package/dist/_chunks/agent.mjs.map +1 -1
  4. package/dist/_chunks/assemble.mjs +0 -17
  5. package/dist/_chunks/assemble.mjs.map +1 -1
  6. package/dist/_chunks/author.mjs +0 -18
  7. package/dist/_chunks/author.mjs.map +1 -1
  8. package/dist/_chunks/cache.mjs +0 -72
  9. package/dist/_chunks/cache.mjs.map +1 -1
  10. package/dist/_chunks/cache2.mjs +84 -17
  11. package/dist/_chunks/cache2.mjs.map +1 -1
  12. package/dist/_chunks/cli-helpers.mjs +2 -49
  13. package/dist/_chunks/cli-helpers.mjs.map +1 -1
  14. package/dist/_chunks/cli-helpers2.mjs +0 -11
  15. package/dist/_chunks/config.mjs +0 -27
  16. package/dist/_chunks/config.mjs.map +1 -1
  17. package/dist/_chunks/core.mjs +9 -0
  18. package/dist/_chunks/detect.mjs +29 -226
  19. package/dist/_chunks/detect.mjs.map +1 -1
  20. package/dist/_chunks/embedding-cache.mjs +0 -5
  21. package/dist/_chunks/embedding-cache2.mjs +1 -2
  22. package/dist/_chunks/formatting.mjs +0 -6
  23. package/dist/_chunks/formatting.mjs.map +1 -1
  24. package/dist/_chunks/index.d.mts +0 -10
  25. package/dist/_chunks/index.d.mts.map +1 -1
  26. package/dist/_chunks/index2.d.mts +3 -6
  27. package/dist/_chunks/index2.d.mts.map +1 -1
  28. package/dist/_chunks/index3.d.mts +2 -31
  29. package/dist/_chunks/index3.d.mts.map +1 -1
  30. package/dist/_chunks/install.mjs +0 -15
  31. package/dist/_chunks/install.mjs.map +1 -1
  32. package/dist/_chunks/libs/@sinclair/typebox.mjs +0 -444
  33. package/dist/_chunks/libs/@sinclair/typebox.mjs.map +1 -1
  34. package/dist/_chunks/list.mjs +0 -16
  35. package/dist/_chunks/list.mjs.map +1 -1
  36. package/dist/_chunks/lockfile.mjs +1 -10
  37. package/dist/_chunks/lockfile.mjs.map +1 -1
  38. package/dist/_chunks/markdown.mjs +0 -9
  39. package/dist/_chunks/markdown.mjs.map +1 -1
  40. package/dist/_chunks/package-json.mjs +0 -25
  41. package/dist/_chunks/package-json.mjs.map +1 -1
  42. package/dist/_chunks/pool2.mjs +0 -2
  43. package/dist/_chunks/pool2.mjs.map +1 -1
  44. package/dist/_chunks/prepare.mjs +8 -7
  45. package/dist/_chunks/prepare.mjs.map +1 -1
  46. package/dist/_chunks/prepare2.mjs +0 -18
  47. package/dist/_chunks/prepare2.mjs.map +1 -1
  48. package/dist/_chunks/prompts.mjs +1 -102
  49. package/dist/_chunks/prompts.mjs.map +1 -1
  50. package/dist/_chunks/retriv.mjs +23 -24
  51. package/dist/_chunks/retriv.mjs.map +1 -1
  52. package/dist/_chunks/rolldown-runtime.mjs +0 -2
  53. package/dist/_chunks/sanitize.mjs +0 -78
  54. package/dist/_chunks/sanitize.mjs.map +1 -1
  55. package/dist/_chunks/search-interactive.mjs +0 -17
  56. package/dist/_chunks/search-interactive.mjs.map +1 -1
  57. package/dist/_chunks/search.mjs +0 -19
  58. package/dist/_chunks/search2.mjs +3 -12
  59. package/dist/_chunks/search2.mjs.map +1 -1
  60. package/dist/_chunks/setup.mjs +0 -13
  61. package/dist/_chunks/setup.mjs.map +1 -1
  62. package/dist/_chunks/shared.mjs +0 -10
  63. package/dist/_chunks/shared.mjs.map +1 -1
  64. package/dist/_chunks/skills.mjs +2 -2
  65. package/dist/_chunks/skills.mjs.map +1 -1
  66. package/dist/_chunks/sources.mjs +3 -453
  67. package/dist/_chunks/sources.mjs.map +1 -1
  68. package/dist/_chunks/sync-shared.mjs +0 -16
  69. package/dist/_chunks/sync-shared2.mjs +0 -42
  70. package/dist/_chunks/sync-shared2.mjs.map +1 -1
  71. package/dist/_chunks/sync.mjs +1 -21
  72. package/dist/_chunks/sync.mjs.map +1 -1
  73. package/dist/_chunks/sync2.mjs +0 -20
  74. package/dist/_chunks/types.d.mts +0 -2
  75. package/dist/_chunks/types.d.mts.map +1 -1
  76. package/dist/_chunks/uninstall.mjs +0 -25
  77. package/dist/_chunks/uninstall.mjs.map +1 -1
  78. package/dist/_chunks/validate.mjs +0 -7
  79. package/dist/_chunks/validate.mjs.map +1 -1
  80. package/dist/_chunks/wizard.mjs +15 -12
  81. package/dist/_chunks/wizard.mjs.map +1 -1
  82. package/dist/_chunks/yaml.mjs +0 -21
  83. package/dist/_chunks/yaml.mjs.map +1 -1
  84. package/dist/agent/index.d.mts +0 -24
  85. package/dist/agent/index.d.mts.map +1 -1
  86. package/dist/agent/index.mjs +0 -8
  87. package/dist/cache/index.mjs +0 -2
  88. package/dist/cli-entry.mjs +0 -6
  89. package/dist/cli-entry.mjs.map +1 -1
  90. package/dist/cli.mjs +37 -44
  91. package/dist/cli.mjs.map +1 -1
  92. package/dist/index.mjs +0 -6
  93. package/dist/prepare.mjs +0 -12
  94. package/dist/prepare.mjs.map +1 -1
  95. package/dist/retriv/index.mjs +0 -2
  96. package/dist/retriv/worker.d.mts +0 -3
  97. package/dist/retriv/worker.d.mts.map +1 -1
  98. package/dist/retriv/worker.mjs +0 -2
  99. package/dist/retriv/worker.mjs.map +1 -1
  100. package/dist/sources/index.mjs +0 -4
  101. package/package.json +17 -17
@@ -1,67 +1,49 @@
1
1
  import { t as __exportAll } from "../../rolldown-runtime.mjs";
2
- //#region node_modules/.pnpm/@sinclair+typebox@0.34.48/node_modules/@sinclair/typebox/build/esm/type/guard/value.mjs
3
- /** Returns true if this value is an async iterator */
4
2
  function IsAsyncIterator$2(value) {
5
3
  return IsObject$3(value) && !IsArray$3(value) && !IsUint8Array$2(value) && Symbol.asyncIterator in value;
6
4
  }
7
- /** Returns true if this value is an array */
8
5
  function IsArray$3(value) {
9
6
  return Array.isArray(value);
10
7
  }
11
- /** Returns true if this value is bigint */
12
8
  function IsBigInt$2(value) {
13
9
  return typeof value === "bigint";
14
10
  }
15
- /** Returns true if this value is a boolean */
16
11
  function IsBoolean$2(value) {
17
12
  return typeof value === "boolean";
18
13
  }
19
- /** Returns true if this value is a Date object */
20
14
  function IsDate$2(value) {
21
15
  return value instanceof globalThis.Date;
22
16
  }
23
- /** Returns true if this value is a function */
24
17
  function IsFunction$2(value) {
25
18
  return typeof value === "function";
26
19
  }
27
- /** Returns true if this value is an iterator */
28
20
  function IsIterator$2(value) {
29
21
  return IsObject$3(value) && !IsArray$3(value) && !IsUint8Array$2(value) && Symbol.iterator in value;
30
22
  }
31
- /** Returns true if this value is null */
32
23
  function IsNull$2(value) {
33
24
  return value === null;
34
25
  }
35
- /** Returns true if this value is number */
36
26
  function IsNumber$3(value) {
37
27
  return typeof value === "number";
38
28
  }
39
- /** Returns true if this value is an object */
40
29
  function IsObject$3(value) {
41
30
  return typeof value === "object" && value !== null;
42
31
  }
43
- /** Returns true if this value is RegExp */
44
32
  function IsRegExp$2(value) {
45
33
  return value instanceof globalThis.RegExp;
46
34
  }
47
- /** Returns true if this value is string */
48
35
  function IsString$2(value) {
49
36
  return typeof value === "string";
50
37
  }
51
- /** Returns true if this value is symbol */
52
38
  function IsSymbol$2(value) {
53
39
  return typeof value === "symbol";
54
40
  }
55
- /** Returns true if this value is a Uint8Array */
56
41
  function IsUint8Array$2(value) {
57
42
  return value instanceof globalThis.Uint8Array;
58
43
  }
59
- /** Returns true if this value is undefined */
60
44
  function IsUndefined$3(value) {
61
45
  return value === void 0;
62
46
  }
63
- //#endregion
64
- //#region node_modules/.pnpm/@sinclair+typebox@0.34.48/node_modules/@sinclair/typebox/build/esm/type/clone/value.mjs
65
47
  function ArrayType(value) {
66
48
  return value.map((value) => Visit$2(value));
67
49
  }
@@ -83,88 +65,57 @@ function ObjectType(value) {
83
65
  function Visit$2(value) {
84
66
  return IsArray$3(value) ? ArrayType(value) : IsDate$2(value) ? DateType(value) : IsUint8Array$2(value) ? Uint8ArrayType(value) : IsRegExp$2(value) ? RegExpType(value) : IsObject$3(value) ? ObjectType(value) : value;
85
67
  }
86
- /** Clones a value */
87
68
  function Clone(value) {
88
69
  return Visit$2(value);
89
70
  }
90
- //#endregion
91
- //#region node_modules/.pnpm/@sinclair+typebox@0.34.48/node_modules/@sinclair/typebox/build/esm/type/clone/type.mjs
92
- /** Clones a Type */
93
71
  function CloneType(schema, options) {
94
72
  return options === void 0 ? Clone(schema) : Clone({
95
73
  ...options,
96
74
  ...schema
97
75
  });
98
76
  }
99
- //#endregion
100
- //#region node_modules/.pnpm/@sinclair+typebox@0.34.48/node_modules/@sinclair/typebox/build/esm/value/guard/guard.mjs
101
- /** Returns true of this value is an object type */
102
77
  function IsObject$2(value) {
103
78
  return value !== null && typeof value === "object";
104
79
  }
105
- /** Returns true if this value is an array, but not a typed array */
106
80
  function IsArray$2(value) {
107
81
  return globalThis.Array.isArray(value) && !globalThis.ArrayBuffer.isView(value);
108
82
  }
109
- /** Returns true if this value is an undefined */
110
83
  function IsUndefined$2(value) {
111
84
  return value === void 0;
112
85
  }
113
- /** Returns true if this value is an number */
114
86
  function IsNumber$2(value) {
115
87
  return typeof value === "number";
116
88
  }
117
- //#endregion
118
- //#region node_modules/.pnpm/@sinclair+typebox@0.34.48/node_modules/@sinclair/typebox/build/esm/system/policy.mjs
119
89
  var TypeSystemPolicy;
120
90
  (function(TypeSystemPolicy) {
121
- /**
122
- * Configures the instantiation behavior of TypeBox types. The `default` option assigns raw JavaScript
123
- * references for embedded types, which may cause side effects if type properties are explicitly updated
124
- * outside the TypeBox type builder. The `clone` option creates copies of any shared types upon creation,
125
- * preventing unintended side effects. The `freeze` option applies `Object.freeze()` to the type, making
126
- * it fully readonly and immutable. Implementations should use `default` whenever possible, as it is the
127
- * fastest way to instantiate types. The default setting is `default`.
128
- */
129
91
  TypeSystemPolicy.InstanceMode = "default";
130
- /** Sets whether TypeBox should assert optional properties using the TypeScript `exactOptionalPropertyTypes` assertion policy. The default is `false` */
131
92
  TypeSystemPolicy.ExactOptionalPropertyTypes = false;
132
- /** Sets whether arrays should be treated as a kind of objects. The default is `false` */
133
93
  TypeSystemPolicy.AllowArrayObject = false;
134
- /** Sets whether `NaN` or `Infinity` should be treated as valid numeric values. The default is `false` */
135
94
  TypeSystemPolicy.AllowNaN = false;
136
- /** Sets whether `null` should validate for void types. The default is `false` */
137
95
  TypeSystemPolicy.AllowNullVoid = false;
138
- /** Checks this value using the ExactOptionalPropertyTypes policy */
139
96
  function IsExactOptionalProperty(value, key) {
140
97
  return TypeSystemPolicy.ExactOptionalPropertyTypes ? key in value : value[key] !== void 0;
141
98
  }
142
99
  TypeSystemPolicy.IsExactOptionalProperty = IsExactOptionalProperty;
143
- /** Checks this value using the AllowArrayObjects policy */
144
100
  function IsObjectLike(value) {
145
101
  const isObject = IsObject$2(value);
146
102
  return TypeSystemPolicy.AllowArrayObject ? isObject : isObject && !IsArray$2(value);
147
103
  }
148
104
  TypeSystemPolicy.IsObjectLike = IsObjectLike;
149
- /** Checks this value as a record using the AllowArrayObjects policy */
150
105
  function IsRecordLike(value) {
151
106
  return IsObjectLike(value) && !(value instanceof Date) && !(value instanceof Uint8Array);
152
107
  }
153
108
  TypeSystemPolicy.IsRecordLike = IsRecordLike;
154
- /** Checks this value using the AllowNaN policy */
155
109
  function IsNumberLike(value) {
156
110
  return TypeSystemPolicy.AllowNaN ? IsNumber$2(value) : Number.isFinite(value);
157
111
  }
158
112
  TypeSystemPolicy.IsNumberLike = IsNumberLike;
159
- /** Checks this value using the AllowVoidNull policy */
160
113
  function IsVoidLike(value) {
161
114
  const isUndefined = IsUndefined$2(value);
162
115
  return TypeSystemPolicy.AllowNullVoid ? isUndefined || value === null : isUndefined;
163
116
  }
164
117
  TypeSystemPolicy.IsVoidLike = IsVoidLike;
165
118
  })(TypeSystemPolicy || (TypeSystemPolicy = {}));
166
- //#endregion
167
- //#region node_modules/.pnpm/@sinclair+typebox@0.34.48/node_modules/@sinclair/typebox/build/esm/type/create/immutable.mjs
168
119
  function ImmutableArray(value) {
169
120
  return globalThis.Object.freeze(value).map((value) => Immutable(value));
170
121
  }
@@ -183,13 +134,9 @@ function ImmutableObject(value) {
183
134
  for (const key of Object.getOwnPropertySymbols(value)) result[key] = Immutable(value[key]);
184
135
  return globalThis.Object.freeze(result);
185
136
  }
186
- /** Specialized deep immutable value. Applies freeze recursively to the given value */
187
137
  function Immutable(value) {
188
138
  return IsArray$3(value) ? ImmutableArray(value) : IsDate$2(value) ? ImmutableDate(value) : IsUint8Array$2(value) ? ImmutableUint8Array(value) : IsRegExp$2(value) ? ImmutableRegExp(value) : IsObject$3(value) ? ImmutableObject(value) : value;
189
139
  }
190
- //#endregion
191
- //#region node_modules/.pnpm/@sinclair+typebox@0.34.48/node_modules/@sinclair/typebox/build/esm/type/create/type.mjs
192
- /** Creates TypeBox schematics using the configured InstanceMode */
193
140
  function CreateType(schema, options) {
194
141
  const result = options !== void 0 ? {
195
142
  ...options,
@@ -201,202 +148,145 @@ function CreateType(schema, options) {
201
148
  default: return result;
202
149
  }
203
150
  }
204
- //#endregion
205
- //#region node_modules/.pnpm/@sinclair+typebox@0.34.48/node_modules/@sinclair/typebox/build/esm/type/error/error.mjs
206
- /** The base Error type thrown for all TypeBox exceptions */
207
151
  var TypeBoxError = class extends Error {
208
152
  constructor(message) {
209
153
  super(message);
210
154
  }
211
155
  };
212
- //#endregion
213
- //#region node_modules/.pnpm/@sinclair+typebox@0.34.48/node_modules/@sinclair/typebox/build/esm/type/symbols/symbols.mjs
214
- /** Symbol key applied to transform types */
215
156
  const TransformKind = Symbol.for("TypeBox.Transform");
216
- /** Symbol key applied to readonly types */
217
157
  const ReadonlyKind = Symbol.for("TypeBox.Readonly");
218
- /** Symbol key applied to optional types */
219
158
  const OptionalKind = Symbol.for("TypeBox.Optional");
220
- /** Symbol key applied to types */
221
159
  const Hint = Symbol.for("TypeBox.Hint");
222
- /** Symbol key applied to types */
223
160
  const Kind = Symbol.for("TypeBox.Kind");
224
- //#endregion
225
- //#region node_modules/.pnpm/@sinclair+typebox@0.34.48/node_modules/@sinclair/typebox/build/esm/type/guard/kind.mjs
226
- /** `[Kind-Only]` Returns true if this value has a Readonly symbol */
227
161
  function IsReadonly(value) {
228
162
  return IsObject$3(value) && value[ReadonlyKind] === "Readonly";
229
163
  }
230
- /** `[Kind-Only]` Returns true if this value has a Optional symbol */
231
164
  function IsOptional$1(value) {
232
165
  return IsObject$3(value) && value[OptionalKind] === "Optional";
233
166
  }
234
- /** `[Kind-Only]` Returns true if the given value is TAny */
235
167
  function IsAny$1(value) {
236
168
  return IsKindOf$1(value, "Any");
237
169
  }
238
- /** `[Kind-Only]` Returns true if the given value is TArgument */
239
170
  function IsArgument$1(value) {
240
171
  return IsKindOf$1(value, "Argument");
241
172
  }
242
- /** `[Kind-Only]` Returns true if the given value is TArray */
243
173
  function IsArray$1(value) {
244
174
  return IsKindOf$1(value, "Array");
245
175
  }
246
- /** `[Kind-Only]` Returns true if the given value is TAsyncIterator */
247
176
  function IsAsyncIterator$1(value) {
248
177
  return IsKindOf$1(value, "AsyncIterator");
249
178
  }
250
- /** `[Kind-Only]` Returns true if the given value is TBigInt */
251
179
  function IsBigInt$1(value) {
252
180
  return IsKindOf$1(value, "BigInt");
253
181
  }
254
- /** `[Kind-Only]` Returns true if the given value is TBoolean */
255
182
  function IsBoolean$1(value) {
256
183
  return IsKindOf$1(value, "Boolean");
257
184
  }
258
- /** `[Kind-Only]` Returns true if the given value is TComputed */
259
185
  function IsComputed$1(value) {
260
186
  return IsKindOf$1(value, "Computed");
261
187
  }
262
- /** `[Kind-Only]` Returns true if the given value is TConstructor */
263
188
  function IsConstructor$1(value) {
264
189
  return IsKindOf$1(value, "Constructor");
265
190
  }
266
- /** `[Kind-Only]` Returns true if the given value is TDate */
267
191
  function IsDate$1(value) {
268
192
  return IsKindOf$1(value, "Date");
269
193
  }
270
- /** `[Kind-Only]` Returns true if the given value is TFunction */
271
194
  function IsFunction$1(value) {
272
195
  return IsKindOf$1(value, "Function");
273
196
  }
274
- /** `[Kind-Only]` Returns true if the given value is TInteger */
275
197
  function IsInteger$1(value) {
276
198
  return IsKindOf$1(value, "Integer");
277
199
  }
278
- /** `[Kind-Only]` Returns true if the given value is TIntersect */
279
200
  function IsIntersect$1(value) {
280
201
  return IsKindOf$1(value, "Intersect");
281
202
  }
282
- /** `[Kind-Only]` Returns true if the given value is TIterator */
283
203
  function IsIterator$1(value) {
284
204
  return IsKindOf$1(value, "Iterator");
285
205
  }
286
- /** `[Kind-Only]` Returns true if the given value is a TKind with the given name. */
287
206
  function IsKindOf$1(value, kind) {
288
207
  return IsObject$3(value) && Kind in value && value[Kind] === kind;
289
208
  }
290
- /** `[Kind-Only]` Returns true if the given value is TLiteralValue */
291
209
  function IsLiteralValue$1(value) {
292
210
  return IsBoolean$2(value) || IsNumber$3(value) || IsString$2(value);
293
211
  }
294
- /** `[Kind-Only]` Returns true if the given value is TLiteral */
295
212
  function IsLiteral$1(value) {
296
213
  return IsKindOf$1(value, "Literal");
297
214
  }
298
- /** `[Kind-Only]` Returns true if the given value is a TMappedKey */
299
215
  function IsMappedKey$1(value) {
300
216
  return IsKindOf$1(value, "MappedKey");
301
217
  }
302
- /** `[Kind-Only]` Returns true if the given value is TMappedResult */
303
218
  function IsMappedResult$1(value) {
304
219
  return IsKindOf$1(value, "MappedResult");
305
220
  }
306
- /** `[Kind-Only]` Returns true if the given value is TNever */
307
221
  function IsNever$1(value) {
308
222
  return IsKindOf$1(value, "Never");
309
223
  }
310
- /** `[Kind-Only]` Returns true if the given value is TNot */
311
224
  function IsNot$1(value) {
312
225
  return IsKindOf$1(value, "Not");
313
226
  }
314
- /** `[Kind-Only]` Returns true if the given value is TNull */
315
227
  function IsNull$1(value) {
316
228
  return IsKindOf$1(value, "Null");
317
229
  }
318
- /** `[Kind-Only]` Returns true if the given value is TNumber */
319
230
  function IsNumber$1(value) {
320
231
  return IsKindOf$1(value, "Number");
321
232
  }
322
- /** `[Kind-Only]` Returns true if the given value is TObject */
323
233
  function IsObject$1(value) {
324
234
  return IsKindOf$1(value, "Object");
325
235
  }
326
- /** `[Kind-Only]` Returns true if the given value is TPromise */
327
236
  function IsPromise$1(value) {
328
237
  return IsKindOf$1(value, "Promise");
329
238
  }
330
- /** `[Kind-Only]` Returns true if the given value is TRecord */
331
239
  function IsRecord$1(value) {
332
240
  return IsKindOf$1(value, "Record");
333
241
  }
334
- /** `[Kind-Only]` Returns true if the given value is TRef */
335
242
  function IsRef$1(value) {
336
243
  return IsKindOf$1(value, "Ref");
337
244
  }
338
- /** `[Kind-Only]` Returns true if the given value is TRegExp */
339
245
  function IsRegExp$1(value) {
340
246
  return IsKindOf$1(value, "RegExp");
341
247
  }
342
- /** `[Kind-Only]` Returns true if the given value is TString */
343
248
  function IsString$1(value) {
344
249
  return IsKindOf$1(value, "String");
345
250
  }
346
- /** `[Kind-Only]` Returns true if the given value is TSymbol */
347
251
  function IsSymbol$1(value) {
348
252
  return IsKindOf$1(value, "Symbol");
349
253
  }
350
- /** `[Kind-Only]` Returns true if the given value is TTemplateLiteral */
351
254
  function IsTemplateLiteral$1(value) {
352
255
  return IsKindOf$1(value, "TemplateLiteral");
353
256
  }
354
- /** `[Kind-Only]` Returns true if the given value is TThis */
355
257
  function IsThis$1(value) {
356
258
  return IsKindOf$1(value, "This");
357
259
  }
358
- /** `[Kind-Only]` Returns true of this value is TTransform */
359
260
  function IsTransform$1(value) {
360
261
  return IsObject$3(value) && TransformKind in value;
361
262
  }
362
- /** `[Kind-Only]` Returns true if the given value is TTuple */
363
263
  function IsTuple$1(value) {
364
264
  return IsKindOf$1(value, "Tuple");
365
265
  }
366
- /** `[Kind-Only]` Returns true if the given value is TUndefined */
367
266
  function IsUndefined$1(value) {
368
267
  return IsKindOf$1(value, "Undefined");
369
268
  }
370
- /** `[Kind-Only]` Returns true if the given value is TUnion */
371
269
  function IsUnion$1(value) {
372
270
  return IsKindOf$1(value, "Union");
373
271
  }
374
- /** `[Kind-Only]` Returns true if the given value is TUint8Array */
375
272
  function IsUint8Array$1(value) {
376
273
  return IsKindOf$1(value, "Uint8Array");
377
274
  }
378
- /** `[Kind-Only]` Returns true if the given value is TUnknown */
379
275
  function IsUnknown$1(value) {
380
276
  return IsKindOf$1(value, "Unknown");
381
277
  }
382
- /** `[Kind-Only]` Returns true if the given value is a raw TUnsafe */
383
278
  function IsUnsafe$1(value) {
384
279
  return IsKindOf$1(value, "Unsafe");
385
280
  }
386
- /** `[Kind-Only]` Returns true if the given value is TVoid */
387
281
  function IsVoid$1(value) {
388
282
  return IsKindOf$1(value, "Void");
389
283
  }
390
- /** `[Kind-Only]` Returns true if the given value is TKind */
391
284
  function IsKind$1(value) {
392
285
  return IsObject$3(value) && Kind in value && IsString$2(value[Kind]);
393
286
  }
394
- /** `[Kind-Only]` Returns true if the given value is TSchema */
395
287
  function IsSchema$1(value) {
396
288
  return IsAny$1(value) || IsArgument$1(value) || IsArray$1(value) || IsBoolean$1(value) || IsBigInt$1(value) || IsAsyncIterator$1(value) || IsComputed$1(value) || IsConstructor$1(value) || IsDate$1(value) || IsFunction$1(value) || IsInteger$1(value) || IsIntersect$1(value) || IsIterator$1(value) || IsLiteral$1(value) || IsMappedKey$1(value) || IsMappedResult$1(value) || IsNever$1(value) || IsNot$1(value) || IsNull$1(value) || IsNumber$1(value) || IsObject$1(value) || IsPromise$1(value) || IsRecord$1(value) || IsRef$1(value) || IsRegExp$1(value) || IsString$1(value) || IsSymbol$1(value) || IsTemplateLiteral$1(value) || IsThis$1(value) || IsTuple$1(value) || IsUndefined$1(value) || IsUnion$1(value) || IsUint8Array$1(value) || IsUnknown$1(value) || IsUnsafe$1(value) || IsVoid$1(value) || IsKind$1(value);
397
289
  }
398
- //#endregion
399
- //#region node_modules/.pnpm/@sinclair+typebox@0.34.48/node_modules/@sinclair/typebox/build/esm/type/guard/type.mjs
400
290
  const KnownTypes = [
401
291
  "Argument",
402
292
  "Any",
@@ -474,195 +364,147 @@ function IsOptionalFormat(value) {
474
364
  function IsOptionalSchema(value) {
475
365
  return IsUndefined$3(value) || IsSchema(value);
476
366
  }
477
- /** Returns true if this value has a Optional symbol */
478
367
  function IsOptional(value) {
479
368
  return IsObject$3(value) && value[OptionalKind] === "Optional";
480
369
  }
481
- /** Returns true if the given value is TAny */
482
370
  function IsAny(value) {
483
371
  return IsKindOf(value, "Any") && IsOptionalString(value.$id);
484
372
  }
485
- /** Returns true if the given value is TArgument */
486
373
  function IsArgument(value) {
487
374
  return IsKindOf(value, "Argument") && IsNumber$3(value.index);
488
375
  }
489
- /** Returns true if the given value is TArray */
490
376
  function IsArray(value) {
491
377
  return IsKindOf(value, "Array") && value.type === "array" && IsOptionalString(value.$id) && IsSchema(value.items) && IsOptionalNumber(value.minItems) && IsOptionalNumber(value.maxItems) && IsOptionalBoolean(value.uniqueItems) && IsOptionalSchema(value.contains) && IsOptionalNumber(value.minContains) && IsOptionalNumber(value.maxContains);
492
378
  }
493
- /** Returns true if the given value is TAsyncIterator */
494
379
  function IsAsyncIterator(value) {
495
380
  return IsKindOf(value, "AsyncIterator") && value.type === "AsyncIterator" && IsOptionalString(value.$id) && IsSchema(value.items);
496
381
  }
497
- /** Returns true if the given value is TBigInt */
498
382
  function IsBigInt(value) {
499
383
  return IsKindOf(value, "BigInt") && value.type === "bigint" && IsOptionalString(value.$id) && IsOptionalBigInt(value.exclusiveMaximum) && IsOptionalBigInt(value.exclusiveMinimum) && IsOptionalBigInt(value.maximum) && IsOptionalBigInt(value.minimum) && IsOptionalBigInt(value.multipleOf);
500
384
  }
501
- /** Returns true if the given value is TBoolean */
502
385
  function IsBoolean(value) {
503
386
  return IsKindOf(value, "Boolean") && value.type === "boolean" && IsOptionalString(value.$id);
504
387
  }
505
- /** Returns true if the given value is TComputed */
506
388
  function IsComputed(value) {
507
389
  return IsKindOf(value, "Computed") && IsString$2(value.target) && IsArray$3(value.parameters) && value.parameters.every((schema) => IsSchema(schema));
508
390
  }
509
- /** Returns true if the given value is TConstructor */
510
391
  function IsConstructor(value) {
511
392
  return IsKindOf(value, "Constructor") && value.type === "Constructor" && IsOptionalString(value.$id) && IsArray$3(value.parameters) && value.parameters.every((schema) => IsSchema(schema)) && IsSchema(value.returns);
512
393
  }
513
- /** Returns true if the given value is TDate */
514
394
  function IsDate(value) {
515
395
  return IsKindOf(value, "Date") && value.type === "Date" && IsOptionalString(value.$id) && IsOptionalNumber(value.exclusiveMaximumTimestamp) && IsOptionalNumber(value.exclusiveMinimumTimestamp) && IsOptionalNumber(value.maximumTimestamp) && IsOptionalNumber(value.minimumTimestamp) && IsOptionalNumber(value.multipleOfTimestamp);
516
396
  }
517
- /** Returns true if the given value is TFunction */
518
397
  function IsFunction(value) {
519
398
  return IsKindOf(value, "Function") && value.type === "Function" && IsOptionalString(value.$id) && IsArray$3(value.parameters) && value.parameters.every((schema) => IsSchema(schema)) && IsSchema(value.returns);
520
399
  }
521
- /** Returns true if the given value is TInteger */
522
400
  function IsInteger(value) {
523
401
  return IsKindOf(value, "Integer") && value.type === "integer" && IsOptionalString(value.$id) && IsOptionalNumber(value.exclusiveMaximum) && IsOptionalNumber(value.exclusiveMinimum) && IsOptionalNumber(value.maximum) && IsOptionalNumber(value.minimum) && IsOptionalNumber(value.multipleOf);
524
402
  }
525
- /** Returns true if the given schema is TProperties */
526
403
  function IsProperties(value) {
527
404
  return IsObject$3(value) && Object.entries(value).every(([key, schema]) => IsControlCharacterFree(key) && IsSchema(schema));
528
405
  }
529
- /** Returns true if the given value is TIntersect */
530
406
  function IsIntersect(value) {
531
407
  return IsKindOf(value, "Intersect") && (IsString$2(value.type) && value.type !== "object" ? false : true) && IsArray$3(value.allOf) && value.allOf.every((schema) => IsSchema(schema) && !IsTransform(schema)) && IsOptionalString(value.type) && (IsOptionalBoolean(value.unevaluatedProperties) || IsOptionalSchema(value.unevaluatedProperties)) && IsOptionalString(value.$id);
532
408
  }
533
- /** Returns true if the given value is TIterator */
534
409
  function IsIterator(value) {
535
410
  return IsKindOf(value, "Iterator") && value.type === "Iterator" && IsOptionalString(value.$id) && IsSchema(value.items);
536
411
  }
537
- /** Returns true if the given value is a TKind with the given name. */
538
412
  function IsKindOf(value, kind) {
539
413
  return IsObject$3(value) && Kind in value && value[Kind] === kind;
540
414
  }
541
- /** Returns true if the given value is TLiteral<string> */
542
415
  function IsLiteralString(value) {
543
416
  return IsLiteral(value) && IsString$2(value.const);
544
417
  }
545
- /** Returns true if the given value is TLiteral<number> */
546
418
  function IsLiteralNumber(value) {
547
419
  return IsLiteral(value) && IsNumber$3(value.const);
548
420
  }
549
- /** Returns true if the given value is TLiteral<boolean> */
550
421
  function IsLiteralBoolean(value) {
551
422
  return IsLiteral(value) && IsBoolean$2(value.const);
552
423
  }
553
- /** Returns true if the given value is TLiteral */
554
424
  function IsLiteral(value) {
555
425
  return IsKindOf(value, "Literal") && IsOptionalString(value.$id) && IsLiteralValue(value.const);
556
426
  }
557
- /** Returns true if the given value is a TLiteralValue */
558
427
  function IsLiteralValue(value) {
559
428
  return IsBoolean$2(value) || IsNumber$3(value) || IsString$2(value);
560
429
  }
561
- /** Returns true if the given value is a TMappedKey */
562
430
  function IsMappedKey(value) {
563
431
  return IsKindOf(value, "MappedKey") && IsArray$3(value.keys) && value.keys.every((key) => IsNumber$3(key) || IsString$2(key));
564
432
  }
565
- /** Returns true if the given value is TMappedResult */
566
433
  function IsMappedResult(value) {
567
434
  return IsKindOf(value, "MappedResult") && IsProperties(value.properties);
568
435
  }
569
- /** Returns true if the given value is TNever */
570
436
  function IsNever(value) {
571
437
  return IsKindOf(value, "Never") && IsObject$3(value.not) && Object.getOwnPropertyNames(value.not).length === 0;
572
438
  }
573
- /** Returns true if the given value is TNot */
574
439
  function IsNot(value) {
575
440
  return IsKindOf(value, "Not") && IsSchema(value.not);
576
441
  }
577
- /** Returns true if the given value is TNull */
578
442
  function IsNull(value) {
579
443
  return IsKindOf(value, "Null") && value.type === "null" && IsOptionalString(value.$id);
580
444
  }
581
- /** Returns true if the given value is TNumber */
582
445
  function IsNumber(value) {
583
446
  return IsKindOf(value, "Number") && value.type === "number" && IsOptionalString(value.$id) && IsOptionalNumber(value.exclusiveMaximum) && IsOptionalNumber(value.exclusiveMinimum) && IsOptionalNumber(value.maximum) && IsOptionalNumber(value.minimum) && IsOptionalNumber(value.multipleOf);
584
447
  }
585
- /** Returns true if the given value is TObject */
586
448
  function IsObject(value) {
587
449
  return IsKindOf(value, "Object") && value.type === "object" && IsOptionalString(value.$id) && IsProperties(value.properties) && IsAdditionalProperties(value.additionalProperties) && IsOptionalNumber(value.minProperties) && IsOptionalNumber(value.maxProperties);
588
450
  }
589
- /** Returns true if the given value is TPromise */
590
451
  function IsPromise(value) {
591
452
  return IsKindOf(value, "Promise") && value.type === "Promise" && IsOptionalString(value.$id) && IsSchema(value.item);
592
453
  }
593
- /** Returns true if the given value is TRecord */
594
454
  function IsRecord(value) {
595
455
  return IsKindOf(value, "Record") && value.type === "object" && IsOptionalString(value.$id) && IsAdditionalProperties(value.additionalProperties) && IsObject$3(value.patternProperties) && ((schema) => {
596
456
  const keys = Object.getOwnPropertyNames(schema.patternProperties);
597
457
  return keys.length === 1 && IsPattern(keys[0]) && IsObject$3(schema.patternProperties) && IsSchema(schema.patternProperties[keys[0]]);
598
458
  })(value);
599
459
  }
600
- /** Returns true if the given value is TRef */
601
460
  function IsRef(value) {
602
461
  return IsKindOf(value, "Ref") && IsOptionalString(value.$id) && IsString$2(value.$ref);
603
462
  }
604
- /** Returns true if the given value is TRegExp */
605
463
  function IsRegExp(value) {
606
464
  return IsKindOf(value, "RegExp") && IsOptionalString(value.$id) && IsString$2(value.source) && IsString$2(value.flags) && IsOptionalNumber(value.maxLength) && IsOptionalNumber(value.minLength);
607
465
  }
608
- /** Returns true if the given value is TString */
609
466
  function IsString(value) {
610
467
  return IsKindOf(value, "String") && value.type === "string" && IsOptionalString(value.$id) && IsOptionalNumber(value.minLength) && IsOptionalNumber(value.maxLength) && IsOptionalPattern(value.pattern) && IsOptionalFormat(value.format);
611
468
  }
612
- /** Returns true if the given value is TSymbol */
613
469
  function IsSymbol(value) {
614
470
  return IsKindOf(value, "Symbol") && value.type === "symbol" && IsOptionalString(value.$id);
615
471
  }
616
- /** Returns true if the given value is TTemplateLiteral */
617
472
  function IsTemplateLiteral(value) {
618
473
  return IsKindOf(value, "TemplateLiteral") && value.type === "string" && IsString$2(value.pattern) && value.pattern[0] === "^" && value.pattern[value.pattern.length - 1] === "$";
619
474
  }
620
- /** Returns true if the given value is TThis */
621
475
  function IsThis(value) {
622
476
  return IsKindOf(value, "This") && IsOptionalString(value.$id) && IsString$2(value.$ref);
623
477
  }
624
- /** Returns true of this value is TTransform */
625
478
  function IsTransform(value) {
626
479
  return IsObject$3(value) && TransformKind in value;
627
480
  }
628
- /** Returns true if the given value is TTuple */
629
481
  function IsTuple(value) {
630
482
  return IsKindOf(value, "Tuple") && value.type === "array" && IsOptionalString(value.$id) && IsNumber$3(value.minItems) && IsNumber$3(value.maxItems) && value.minItems === value.maxItems && (IsUndefined$3(value.items) && IsUndefined$3(value.additionalItems) && value.minItems === 0 || IsArray$3(value.items) && value.items.every((schema) => IsSchema(schema)));
631
483
  }
632
- /** Returns true if the given value is TUndefined */
633
484
  function IsUndefined(value) {
634
485
  return IsKindOf(value, "Undefined") && value.type === "undefined" && IsOptionalString(value.$id);
635
486
  }
636
- /** Returns true if the given value is TUnion */
637
487
  function IsUnion(value) {
638
488
  return IsKindOf(value, "Union") && IsOptionalString(value.$id) && IsObject$3(value) && IsArray$3(value.anyOf) && value.anyOf.every((schema) => IsSchema(schema));
639
489
  }
640
- /** Returns true if the given value is TUint8Array */
641
490
  function IsUint8Array(value) {
642
491
  return IsKindOf(value, "Uint8Array") && value.type === "Uint8Array" && IsOptionalString(value.$id) && IsOptionalNumber(value.minByteLength) && IsOptionalNumber(value.maxByteLength);
643
492
  }
644
- /** Returns true if the given value is TUnknown */
645
493
  function IsUnknown(value) {
646
494
  return IsKindOf(value, "Unknown") && IsOptionalString(value.$id);
647
495
  }
648
- /** Returns true if the given value is a raw TUnsafe */
649
496
  function IsUnsafe(value) {
650
497
  return IsKindOf(value, "Unsafe");
651
498
  }
652
- /** Returns true if the given value is TVoid */
653
499
  function IsVoid(value) {
654
500
  return IsKindOf(value, "Void") && value.type === "void" && IsOptionalString(value.$id);
655
501
  }
656
- /** Returns true if the given value is TKind */
657
502
  function IsKind(value) {
658
503
  return IsObject$3(value) && Kind in value && IsString$2(value[Kind]) && !KnownTypes.includes(value[Kind]);
659
504
  }
660
- /** Returns true if the given value is TSchema */
661
505
  function IsSchema(value) {
662
506
  return IsObject$3(value) && (IsAny(value) || IsArgument(value) || IsArray(value) || IsBoolean(value) || IsBigInt(value) || IsAsyncIterator(value) || IsComputed(value) || IsConstructor(value) || IsDate(value) || IsFunction(value) || IsInteger(value) || IsIntersect(value) || IsIterator(value) || IsLiteral(value) || IsMappedKey(value) || IsMappedResult(value) || IsNever(value) || IsNot(value) || IsNull(value) || IsNumber(value) || IsObject(value) || IsPromise(value) || IsRecord(value) || IsRef(value) || IsRegExp(value) || IsString(value) || IsSymbol(value) || IsTemplateLiteral(value) || IsThis(value) || IsTuple(value) || IsUndefined(value) || IsUnion(value) || IsUint8Array(value) || IsUnknown(value) || IsUnsafe(value) || IsVoid(value) || IsKind(value));
663
507
  }
664
- //#endregion
665
- //#region node_modules/.pnpm/@sinclair+typebox@0.34.48/node_modules/@sinclair/typebox/build/esm/type/patterns/patterns.mjs
666
508
  const PatternBoolean = "(true|false)";
667
509
  const PatternNumber = "(0|[1-9][0-9]*)";
668
510
  const PatternString = "(.*)";
@@ -671,17 +513,12 @@ const PatternNever = "(?!.*)";
671
513
  const PatternNumberExact = `^${PatternNumber}$`;
672
514
  const PatternStringExact = `^${PatternString}$`;
673
515
  const PatternNeverExact = `^${PatternNever}$`;
674
- //#endregion
675
- //#region node_modules/.pnpm/@sinclair+typebox@0.34.48/node_modules/@sinclair/typebox/build/esm/type/sets/set.mjs
676
- /** Returns true if element right is in the set of left */
677
516
  function SetIncludes(T, S) {
678
517
  return T.includes(S);
679
518
  }
680
- /** Returns a distinct set of elements */
681
519
  function SetDistinct(T) {
682
520
  return [...new Set(T)];
683
521
  }
684
- /** Returns the Intersect of the given sets */
685
522
  function SetIntersect(T, S) {
686
523
  return T.filter((L) => S.includes(L));
687
524
  }
@@ -693,21 +530,14 @@ function SetIntersectManyResolve(T, Init) {
693
530
  function SetIntersectMany(T) {
694
531
  return T.length === 1 ? T[0] : T.length > 1 ? SetIntersectManyResolve(T.slice(1), T[0]) : [];
695
532
  }
696
- /** Returns the Union of multiple sets */
697
533
  function SetUnionMany(T) {
698
534
  const Acc = [];
699
535
  for (const L of T) Acc.push(...L);
700
536
  return Acc;
701
537
  }
702
- //#endregion
703
- //#region node_modules/.pnpm/@sinclair+typebox@0.34.48/node_modules/@sinclair/typebox/build/esm/type/any/any.mjs
704
- /** `[Json]` Creates an Any type */
705
538
  function Any(options) {
706
539
  return CreateType({ [Kind]: "Any" }, options);
707
540
  }
708
- //#endregion
709
- //#region node_modules/.pnpm/@sinclair+typebox@0.34.48/node_modules/@sinclair/typebox/build/esm/type/array/array.mjs
710
- /** `[Json]` Creates an Array type */
711
541
  function Array$1(items, options) {
712
542
  return CreateType({
713
543
  [Kind]: "Array",
@@ -715,18 +545,12 @@ function Array$1(items, options) {
715
545
  items
716
546
  }, options);
717
547
  }
718
- //#endregion
719
- //#region node_modules/.pnpm/@sinclair+typebox@0.34.48/node_modules/@sinclair/typebox/build/esm/type/argument/argument.mjs
720
- /** `[JavaScript]` Creates an Argument Type. */
721
548
  function Argument(index) {
722
549
  return CreateType({
723
550
  [Kind]: "Argument",
724
551
  index
725
552
  });
726
553
  }
727
- //#endregion
728
- //#region node_modules/.pnpm/@sinclair+typebox@0.34.48/node_modules/@sinclair/typebox/build/esm/type/async-iterator/async-iterator.mjs
729
- /** `[JavaScript]` Creates a AsyncIterator type */
730
554
  function AsyncIterator(items, options) {
731
555
  return CreateType({
732
556
  [Kind]: "AsyncIterator",
@@ -734,9 +558,6 @@ function AsyncIterator(items, options) {
734
558
  items
735
559
  }, options);
736
560
  }
737
- //#endregion
738
- //#region node_modules/.pnpm/@sinclair+typebox@0.34.48/node_modules/@sinclair/typebox/build/esm/type/computed/computed.mjs
739
- /** `[Internal]` Creates a deferred computed type. This type is used exclusively in modules to defer resolution of computable types that contain interior references */
740
561
  function Computed(target, parameters, options) {
741
562
  return CreateType({
742
563
  [Kind]: "Computed",
@@ -744,36 +565,25 @@ function Computed(target, parameters, options) {
744
565
  parameters
745
566
  }, options);
746
567
  }
747
- //#endregion
748
- //#region node_modules/.pnpm/@sinclair+typebox@0.34.48/node_modules/@sinclair/typebox/build/esm/type/discard/discard.mjs
749
568
  function DiscardKey(value, key) {
750
569
  const { [key]: _, ...rest } = value;
751
570
  return rest;
752
571
  }
753
- /** Discards property keys from the given value. This function returns a shallow Clone. */
754
572
  function Discard(value, keys) {
755
573
  return keys.reduce((acc, key) => DiscardKey(acc, key), value);
756
574
  }
757
- //#endregion
758
- //#region node_modules/.pnpm/@sinclair+typebox@0.34.48/node_modules/@sinclair/typebox/build/esm/type/never/never.mjs
759
- /** `[Json]` Creates a Never type */
760
575
  function Never(options) {
761
576
  return CreateType({
762
577
  [Kind]: "Never",
763
578
  not: {}
764
579
  }, options);
765
580
  }
766
- //#endregion
767
- //#region node_modules/.pnpm/@sinclair+typebox@0.34.48/node_modules/@sinclair/typebox/build/esm/type/mapped/mapped-result.mjs
768
581
  function MappedResult(properties) {
769
582
  return CreateType({
770
583
  [Kind]: "MappedResult",
771
584
  properties
772
585
  });
773
586
  }
774
- //#endregion
775
- //#region node_modules/.pnpm/@sinclair+typebox@0.34.48/node_modules/@sinclair/typebox/build/esm/type/constructor/constructor.mjs
776
- /** `[JavaScript]` Creates a Constructor type */
777
587
  function Constructor(parameters, returns, options) {
778
588
  return CreateType({
779
589
  [Kind]: "Constructor",
@@ -782,9 +592,6 @@ function Constructor(parameters, returns, options) {
782
592
  returns
783
593
  }, options);
784
594
  }
785
- //#endregion
786
- //#region node_modules/.pnpm/@sinclair+typebox@0.34.48/node_modules/@sinclair/typebox/build/esm/type/function/function.mjs
787
- /** `[JavaScript]` Creates a Function type */
788
595
  function Function(parameters, returns, options) {
789
596
  return CreateType({
790
597
  [Kind]: "Function",
@@ -793,16 +600,12 @@ function Function(parameters, returns, options) {
793
600
  returns
794
601
  }, options);
795
602
  }
796
- //#endregion
797
- //#region node_modules/.pnpm/@sinclair+typebox@0.34.48/node_modules/@sinclair/typebox/build/esm/type/union/union-create.mjs
798
603
  function UnionCreate(T, options) {
799
604
  return CreateType({
800
605
  [Kind]: "Union",
801
606
  anyOf: T
802
607
  }, options);
803
608
  }
804
- //#endregion
805
- //#region node_modules/.pnpm/@sinclair+typebox@0.34.48/node_modules/@sinclair/typebox/build/esm/type/union/union-evaluated.mjs
806
609
  function IsUnionOptional(types) {
807
610
  return types.some((type) => IsOptional$1(type));
808
611
  }
@@ -815,18 +618,12 @@ function RemoveOptionalFromType$1(T) {
815
618
  function ResolveUnion(types, options) {
816
619
  return IsUnionOptional(types) ? Optional(UnionCreate(RemoveOptionalFromRest$1(types), options)) : UnionCreate(RemoveOptionalFromRest$1(types), options);
817
620
  }
818
- /** `[Json]` Creates an evaluated Union type */
819
621
  function UnionEvaluated(T, options) {
820
622
  return T.length === 1 ? CreateType(T[0], options) : T.length === 0 ? Never(options) : ResolveUnion(T, options);
821
623
  }
822
- //#endregion
823
- //#region node_modules/.pnpm/@sinclair+typebox@0.34.48/node_modules/@sinclair/typebox/build/esm/type/union/union.mjs
824
- /** `[Json]` Creates a Union type */
825
624
  function Union(types, options) {
826
625
  return types.length === 0 ? Never(options) : types.length === 1 ? CreateType(types[0], options) : UnionCreate(types, options);
827
626
  }
828
- //#endregion
829
- //#region node_modules/.pnpm/@sinclair+typebox@0.34.48/node_modules/@sinclair/typebox/build/esm/type/template-literal/parse.mjs
830
627
  var TemplateLiteralParserError = class extends TypeBoxError {};
831
628
  function Unescape(pattern) {
832
629
  return pattern.replace(/\\\$/g, "$").replace(/\\\*/g, "*").replace(/\\\^/g, "^").replace(/\\\|/g, "|").replace(/\\\(/g, "(").replace(/\\\)/g, ")");
@@ -928,19 +725,15 @@ function And(pattern) {
928
725
  expr: expressions
929
726
  };
930
727
  }
931
- /** Parses a pattern and returns an expression tree */
932
728
  function TemplateLiteralParse(pattern) {
933
729
  return IsGroup(pattern) ? TemplateLiteralParse(InGroup(pattern)) : IsPrecedenceOr(pattern) ? Or(pattern) : IsPrecedenceAnd(pattern) ? And(pattern) : {
934
730
  type: "const",
935
731
  const: Unescape(pattern)
936
732
  };
937
733
  }
938
- /** Parses a pattern and strips forward and trailing ^ and $ */
939
734
  function TemplateLiteralParseExact(pattern) {
940
735
  return TemplateLiteralParse(pattern.slice(1, pattern.length - 1));
941
736
  }
942
- //#endregion
943
- //#region node_modules/.pnpm/@sinclair+typebox@0.34.48/node_modules/@sinclair/typebox/build/esm/type/template-literal/finite.mjs
944
737
  var TemplateLiteralFiniteError = class extends TypeBoxError {};
945
738
  function IsNumberExpression(expression) {
946
739
  return expression.type === "or" && expression.expr.length === 2 && expression.expr[0].type === "const" && expression.expr[0].const === "0" && expression.expr[1].type === "const" && expression.expr[1].const === "[1-9][0-9]*";
@@ -956,12 +749,9 @@ function IsTemplateLiteralExpressionFinite(expression) {
956
749
  throw new TemplateLiteralFiniteError(`Unknown expression type`);
957
750
  })();
958
751
  }
959
- /** Returns true if this TemplateLiteral resolves to a finite set of values */
960
752
  function IsTemplateLiteralFinite(schema) {
961
753
  return IsTemplateLiteralExpressionFinite(TemplateLiteralParseExact(schema.pattern));
962
754
  }
963
- //#endregion
964
- //#region node_modules/.pnpm/@sinclair+typebox@0.34.48/node_modules/@sinclair/typebox/build/esm/type/template-literal/generate.mjs
965
755
  var TemplateLiteralGenerateError = class extends TypeBoxError {};
966
756
  function* GenerateReduce(buffer) {
967
757
  if (buffer.length === 1) return yield* buffer[0];
@@ -981,14 +771,10 @@ function* TemplateLiteralExpressionGenerate(expression) {
981
771
  throw new TemplateLiteralGenerateError("Unknown expression");
982
772
  })();
983
773
  }
984
- /** Generates a tuple of strings from the given TemplateLiteral. Returns an empty tuple if infinite. */
985
774
  function TemplateLiteralGenerate(schema) {
986
775
  const expression = TemplateLiteralParseExact(schema.pattern);
987
776
  return IsTemplateLiteralExpressionFinite(expression) ? [...TemplateLiteralExpressionGenerate(expression)] : [];
988
777
  }
989
- //#endregion
990
- //#region node_modules/.pnpm/@sinclair+typebox@0.34.48/node_modules/@sinclair/typebox/build/esm/type/literal/literal.mjs
991
- /** `[Json]` Creates a Literal type */
992
778
  function Literal(value, options) {
993
779
  return CreateType({
994
780
  [Kind]: "Literal",
@@ -996,44 +782,30 @@ function Literal(value, options) {
996
782
  type: typeof value
997
783
  }, options);
998
784
  }
999
- //#endregion
1000
- //#region node_modules/.pnpm/@sinclair+typebox@0.34.48/node_modules/@sinclair/typebox/build/esm/type/boolean/boolean.mjs
1001
- /** `[Json]` Creates a Boolean type */
1002
785
  function Boolean(options) {
1003
786
  return CreateType({
1004
787
  [Kind]: "Boolean",
1005
788
  type: "boolean"
1006
789
  }, options);
1007
790
  }
1008
- //#endregion
1009
- //#region node_modules/.pnpm/@sinclair+typebox@0.34.48/node_modules/@sinclair/typebox/build/esm/type/bigint/bigint.mjs
1010
- /** `[JavaScript]` Creates a BigInt type */
1011
791
  function BigInt(options) {
1012
792
  return CreateType({
1013
793
  [Kind]: "BigInt",
1014
794
  type: "bigint"
1015
795
  }, options);
1016
796
  }
1017
- //#endregion
1018
- //#region node_modules/.pnpm/@sinclair+typebox@0.34.48/node_modules/@sinclair/typebox/build/esm/type/number/number.mjs
1019
- /** `[Json]` Creates a Number type */
1020
797
  function Number$1(options) {
1021
798
  return CreateType({
1022
799
  [Kind]: "Number",
1023
800
  type: "number"
1024
801
  }, options);
1025
802
  }
1026
- //#endregion
1027
- //#region node_modules/.pnpm/@sinclair+typebox@0.34.48/node_modules/@sinclair/typebox/build/esm/type/string/string.mjs
1028
- /** `[Json]` Creates a String type */
1029
803
  function String(options) {
1030
804
  return CreateType({
1031
805
  [Kind]: "String",
1032
806
  type: "string"
1033
807
  }, options);
1034
808
  }
1035
- //#endregion
1036
- //#region node_modules/.pnpm/@sinclair+typebox@0.34.48/node_modules/@sinclair/typebox/build/esm/type/template-literal/syntax.mjs
1037
809
  function* FromUnion$9(syntax) {
1038
810
  const trim = syntax.trim().replace(/"|'/g, "");
1039
811
  return trim === "boolean" ? yield Boolean() : trim === "number" ? yield Number$1() : trim === "bigint" ? yield BigInt() : trim === "string" ? yield String() : yield (() => {
@@ -1054,12 +826,9 @@ function* FromSyntax(syntax) {
1054
826
  for (let i = 0; i < syntax.length; i++) if (syntax[i] === "$") return yield* [Literal(syntax.slice(0, i)), ...FromTerminal(syntax.slice(i))];
1055
827
  yield Literal(syntax);
1056
828
  }
1057
- /** Parses TemplateLiteralSyntax and returns a tuple of TemplateLiteralKinds */
1058
829
  function TemplateLiteralSyntax(syntax) {
1059
830
  return [...FromSyntax(syntax)];
1060
831
  }
1061
- //#endregion
1062
- //#region node_modules/.pnpm/@sinclair+typebox@0.34.48/node_modules/@sinclair/typebox/build/esm/type/template-literal/pattern.mjs
1063
832
  var TemplateLiteralPatternError = class extends TypeBoxError {};
1064
833
  function Escape(value) {
1065
834
  return value.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
@@ -1072,15 +841,9 @@ function Visit$1(schema, acc) {
1072
841
  function TemplateLiteralPattern(kinds) {
1073
842
  return `^${kinds.map((schema) => Visit$1(schema, "")).join("")}\$`;
1074
843
  }
1075
- //#endregion
1076
- //#region node_modules/.pnpm/@sinclair+typebox@0.34.48/node_modules/@sinclair/typebox/build/esm/type/template-literal/union.mjs
1077
- /** Returns a Union from the given TemplateLiteral */
1078
844
  function TemplateLiteralToUnion(schema) {
1079
845
  return UnionEvaluated(TemplateLiteralGenerate(schema).map((S) => Literal(S)));
1080
846
  }
1081
- //#endregion
1082
- //#region node_modules/.pnpm/@sinclair+typebox@0.34.48/node_modules/@sinclair/typebox/build/esm/type/template-literal/template-literal.mjs
1083
- /** `[Json]` Creates a TemplateLiteral type */
1084
847
  function TemplateLiteral(unresolved, options) {
1085
848
  const pattern = IsString$2(unresolved) ? TemplateLiteralPattern(TemplateLiteralSyntax(unresolved)) : TemplateLiteralPattern(unresolved);
1086
849
  return CreateType({
@@ -1089,8 +852,6 @@ function TemplateLiteral(unresolved, options) {
1089
852
  pattern
1090
853
  }, options);
1091
854
  }
1092
- //#endregion
1093
- //#region node_modules/.pnpm/@sinclair+typebox@0.34.48/node_modules/@sinclair/typebox/build/esm/type/indexed/indexed-property-keys.mjs
1094
855
  function FromTemplateLiteral$2(templateLiteral) {
1095
856
  return TemplateLiteralGenerate(templateLiteral).map((key) => key.toString());
1096
857
  }
@@ -1102,12 +863,9 @@ function FromUnion$8(types) {
1102
863
  function FromLiteral$1(literalValue) {
1103
864
  return [literalValue.toString()];
1104
865
  }
1105
- /** Returns a tuple of PropertyKeys derived from the given TSchema */
1106
866
  function IndexPropertyKeys(type) {
1107
867
  return [...new Set(IsTemplateLiteral$1(type) ? FromTemplateLiteral$2(type) : IsUnion$1(type) ? FromUnion$8(type.anyOf) : IsLiteral$1(type) ? FromLiteral$1(type.const) : IsNumber$1(type) ? ["[number]"] : IsInteger$1(type) ? ["[number]"] : [])];
1108
868
  }
1109
- //#endregion
1110
- //#region node_modules/.pnpm/@sinclair+typebox@0.34.48/node_modules/@sinclair/typebox/build/esm/type/indexed/indexed-from-mapped-result.mjs
1111
869
  function FromProperties$18(type, properties, options) {
1112
870
  const result = {};
1113
871
  for (const K2 of Object.getOwnPropertyNames(properties)) result[K2] = Index(type, IndexPropertyKeys(properties[K2]), options);
@@ -1119,8 +877,6 @@ function FromMappedResult$11(type, mappedResult, options) {
1119
877
  function IndexFromMappedResult(type, mappedResult, options) {
1120
878
  return MappedResult(FromMappedResult$11(type, mappedResult, options));
1121
879
  }
1122
- //#endregion
1123
- //#region node_modules/.pnpm/@sinclair+typebox@0.34.48/node_modules/@sinclair/typebox/build/esm/type/indexed/indexed.mjs
1124
880
  function FromRest$6(types, key) {
1125
881
  return types.map((type) => IndexFromPropertyKey(type, key));
1126
882
  }
@@ -1154,7 +910,6 @@ function IndexFromPropertyKeys(type, propertyKeys) {
1154
910
  function FromSchema(type, propertyKeys) {
1155
911
  return UnionEvaluated(IndexFromPropertyKeys(type, propertyKeys));
1156
912
  }
1157
- /** `[Json]` Returns an Indexed property type for the given keys */
1158
913
  function Index(type, key, options) {
1159
914
  if (IsRef$1(type) || IsRef$1(key)) {
1160
915
  const error = `Index types using Ref parameters require both Type and Key to be of TSchema`;
@@ -1165,8 +920,6 @@ function Index(type, key, options) {
1165
920
  if (IsMappedKey$1(key)) return IndexFromMappedKey(type, key, options);
1166
921
  return CreateType(IsSchema$1(key) ? FromSchema(type, IndexPropertyKeys(key)) : FromSchema(type, key), options);
1167
922
  }
1168
- //#endregion
1169
- //#region node_modules/.pnpm/@sinclair+typebox@0.34.48/node_modules/@sinclair/typebox/build/esm/type/indexed/indexed-from-mapped-key.mjs
1170
923
  function MappedIndexPropertyKey(type, key, options) {
1171
924
  return { [key]: Index(type, [key], Clone(options)) };
1172
925
  }
@@ -1184,9 +937,6 @@ function MappedIndexProperties(type, mappedKey, options) {
1184
937
  function IndexFromMappedKey(type, mappedKey, options) {
1185
938
  return MappedResult(MappedIndexProperties(type, mappedKey, options));
1186
939
  }
1187
- //#endregion
1188
- //#region node_modules/.pnpm/@sinclair+typebox@0.34.48/node_modules/@sinclair/typebox/build/esm/type/iterator/iterator.mjs
1189
- /** `[JavaScript]` Creates an Iterator type */
1190
940
  function Iterator(items, options) {
1191
941
  return CreateType({
1192
942
  [Kind]: "Iterator",
@@ -1194,13 +944,9 @@ function Iterator(items, options) {
1194
944
  items
1195
945
  }, options);
1196
946
  }
1197
- //#endregion
1198
- //#region node_modules/.pnpm/@sinclair+typebox@0.34.48/node_modules/@sinclair/typebox/build/esm/type/object/object.mjs
1199
- /** Creates a RequiredArray derived from the given TProperties value. */
1200
947
  function RequiredArray(properties) {
1201
948
  return globalThis.Object.keys(properties).filter((key) => !IsOptional$1(properties[key]));
1202
949
  }
1203
- /** `[Json]` Creates an Object type */
1204
950
  function _Object(properties, options) {
1205
951
  const required = RequiredArray(properties);
1206
952
  return CreateType(required.length > 0 ? {
@@ -1214,11 +960,7 @@ function _Object(properties, options) {
1214
960
  properties
1215
961
  }, options);
1216
962
  }
1217
- /** `[Json]` Creates an Object type */
1218
963
  var Object$1 = _Object;
1219
- //#endregion
1220
- //#region node_modules/.pnpm/@sinclair+typebox@0.34.48/node_modules/@sinclair/typebox/build/esm/type/promise/promise.mjs
1221
- /** `[JavaScript]` Creates a Promise type */
1222
964
  function Promise$1(item, options) {
1223
965
  return CreateType({
1224
966
  [Kind]: "Promise",
@@ -1226,8 +968,6 @@ function Promise$1(item, options) {
1226
968
  item
1227
969
  }, options);
1228
970
  }
1229
- //#endregion
1230
- //#region node_modules/.pnpm/@sinclair+typebox@0.34.48/node_modules/@sinclair/typebox/build/esm/type/readonly/readonly.mjs
1231
971
  function RemoveReadonly(schema) {
1232
972
  return CreateType(Discard(schema, [ReadonlyKind]));
1233
973
  }
@@ -1240,13 +980,10 @@ function AddReadonly(schema) {
1240
980
  function ReadonlyWithFlag(schema, F) {
1241
981
  return F === false ? RemoveReadonly(schema) : AddReadonly(schema);
1242
982
  }
1243
- /** `[Json]` Creates a Readonly property */
1244
983
  function Readonly(schema, enable) {
1245
984
  const F = enable ?? true;
1246
985
  return IsMappedResult$1(schema) ? ReadonlyFromMappedResult(schema, F) : ReadonlyWithFlag(schema, F);
1247
986
  }
1248
- //#endregion
1249
- //#region node_modules/.pnpm/@sinclair+typebox@0.34.48/node_modules/@sinclair/typebox/build/esm/type/readonly/readonly-from-mapped-result.mjs
1250
987
  function FromProperties$17(K, F) {
1251
988
  const Acc = {};
1252
989
  for (const K2 of globalThis.Object.getOwnPropertyNames(K)) Acc[K2] = Readonly(K[K2], F);
@@ -1258,9 +995,6 @@ function FromMappedResult$10(R, F) {
1258
995
  function ReadonlyFromMappedResult(R, F) {
1259
996
  return MappedResult(FromMappedResult$10(R, F));
1260
997
  }
1261
- //#endregion
1262
- //#region node_modules/.pnpm/@sinclair+typebox@0.34.48/node_modules/@sinclair/typebox/build/esm/type/tuple/tuple.mjs
1263
- /** `[Json]` Creates a Tuple type */
1264
998
  function Tuple(types, options) {
1265
999
  return CreateType(types.length > 0 ? {
1266
1000
  [Kind]: "Tuple",
@@ -1276,8 +1010,6 @@ function Tuple(types, options) {
1276
1010
  maxItems: types.length
1277
1011
  }, options);
1278
1012
  }
1279
- //#endregion
1280
- //#region node_modules/.pnpm/@sinclair+typebox@0.34.48/node_modules/@sinclair/typebox/build/esm/type/mapped/mapped.mjs
1281
1013
  function FromMappedResult$9(K, P) {
1282
1014
  return K in P ? FromSchemaType(K, P[K]) : MappedResult(P);
1283
1015
  }
@@ -1312,7 +1044,6 @@ function MappedFunctionReturnType(K, T) {
1312
1044
  for (const L of K) Acc[L] = FromSchemaType(L, T);
1313
1045
  return Acc;
1314
1046
  }
1315
- /** `[Json]` Creates a Mapped object type */
1316
1047
  function Mapped(key, map, options) {
1317
1048
  const K = IsSchema$1(key) ? IndexPropertyKeys(key) : key;
1318
1049
  return Object$1(MappedFunctionReturnType(K, map({
@@ -1320,8 +1051,6 @@ function Mapped(key, map, options) {
1320
1051
  keys: K
1321
1052
  })), options);
1322
1053
  }
1323
- //#endregion
1324
- //#region node_modules/.pnpm/@sinclair+typebox@0.34.48/node_modules/@sinclair/typebox/build/esm/type/optional/optional.mjs
1325
1054
  function RemoveOptional(schema) {
1326
1055
  return CreateType(Discard(schema, [OptionalKind]));
1327
1056
  }
@@ -1334,13 +1063,10 @@ function AddOptional(schema) {
1334
1063
  function OptionalWithFlag(schema, F) {
1335
1064
  return F === false ? RemoveOptional(schema) : AddOptional(schema);
1336
1065
  }
1337
- /** `[Json]` Creates a Optional property */
1338
1066
  function Optional(schema, enable) {
1339
1067
  const F = enable ?? true;
1340
1068
  return IsMappedResult$1(schema) ? OptionalFromMappedResult(schema, F) : OptionalWithFlag(schema, F);
1341
1069
  }
1342
- //#endregion
1343
- //#region node_modules/.pnpm/@sinclair+typebox@0.34.48/node_modules/@sinclair/typebox/build/esm/type/optional/optional-from-mapped-result.mjs
1344
1070
  function FromProperties$15(P, F) {
1345
1071
  const Acc = {};
1346
1072
  for (const K2 of globalThis.Object.getOwnPropertyNames(P)) Acc[K2] = Optional(P[K2], F);
@@ -1352,8 +1078,6 @@ function FromMappedResult$8(R, F) {
1352
1078
  function OptionalFromMappedResult(R, F) {
1353
1079
  return MappedResult(FromMappedResult$8(R, F));
1354
1080
  }
1355
- //#endregion
1356
- //#region node_modules/.pnpm/@sinclair+typebox@0.34.48/node_modules/@sinclair/typebox/build/esm/type/intersect/intersect-create.mjs
1357
1081
  function IntersectCreate(T, options = {}) {
1358
1082
  const allObjects = T.every((schema) => IsObject$1(schema));
1359
1083
  const clonedUnevaluatedProperties = IsSchema$1(options.unevaluatedProperties) ? { unevaluatedProperties: options.unevaluatedProperties } : {};
@@ -1368,8 +1092,6 @@ function IntersectCreate(T, options = {}) {
1368
1092
  allOf: T
1369
1093
  }, options);
1370
1094
  }
1371
- //#endregion
1372
- //#region node_modules/.pnpm/@sinclair+typebox@0.34.48/node_modules/@sinclair/typebox/build/esm/type/intersect/intersect-evaluated.mjs
1373
1095
  function IsIntersectOptional(types) {
1374
1096
  return types.every((left) => IsOptional$1(left));
1375
1097
  }
@@ -1382,25 +1104,18 @@ function RemoveOptionalFromRest(types) {
1382
1104
  function ResolveIntersect(types, options) {
1383
1105
  return IsIntersectOptional(types) ? Optional(IntersectCreate(RemoveOptionalFromRest(types), options)) : IntersectCreate(RemoveOptionalFromRest(types), options);
1384
1106
  }
1385
- /** `[Json]` Creates an evaluated Intersect type */
1386
1107
  function IntersectEvaluated(types, options = {}) {
1387
1108
  if (types.length === 1) return CreateType(types[0], options);
1388
1109
  if (types.length === 0) return Never(options);
1389
1110
  if (types.some((schema) => IsTransform$1(schema))) throw new Error("Cannot intersect transform types");
1390
1111
  return ResolveIntersect(types, options);
1391
1112
  }
1392
- //#endregion
1393
- //#region node_modules/.pnpm/@sinclair+typebox@0.34.48/node_modules/@sinclair/typebox/build/esm/type/intersect/intersect.mjs
1394
- /** `[Json]` Creates an evaluated Intersect type */
1395
1113
  function Intersect(types, options) {
1396
1114
  if (types.length === 1) return CreateType(types[0], options);
1397
1115
  if (types.length === 0) return Never(options);
1398
1116
  if (types.some((schema) => IsTransform$1(schema))) throw new Error("Cannot intersect transform types");
1399
1117
  return IntersectCreate(types, options);
1400
1118
  }
1401
- //#endregion
1402
- //#region node_modules/.pnpm/@sinclair+typebox@0.34.48/node_modules/@sinclair/typebox/build/esm/type/ref/ref.mjs
1403
- /** `[Json]` Creates a Ref type. The referenced type must contain a $id */
1404
1119
  function Ref(...args) {
1405
1120
  const [$ref, options] = typeof args[0] === "string" ? [args[0], args[1]] : [args[0].$id, args[1]];
1406
1121
  if (typeof $ref !== "string") throw new TypeBoxError("Ref: $ref must be a string");
@@ -1409,8 +1124,6 @@ function Ref(...args) {
1409
1124
  $ref
1410
1125
  }, options);
1411
1126
  }
1412
- //#endregion
1413
- //#region node_modules/.pnpm/@sinclair+typebox@0.34.48/node_modules/@sinclair/typebox/build/esm/type/awaited/awaited.mjs
1414
1127
  function FromComputed$4(target, parameters) {
1415
1128
  return Computed("Awaited", [Computed(target, parameters)]);
1416
1129
  }
@@ -1429,12 +1142,9 @@ function FromPromise$2(type) {
1429
1142
  function FromRest$4(types) {
1430
1143
  return types.map((type) => Awaited(type));
1431
1144
  }
1432
- /** `[JavaScript]` Constructs a type by recursively unwrapping Promise types */
1433
1145
  function Awaited(type, options) {
1434
1146
  return CreateType(IsComputed$1(type) ? FromComputed$4(type.target, type.parameters) : IsIntersect$1(type) ? FromIntersect$6(type.allOf) : IsUnion$1(type) ? FromUnion$6(type.anyOf) : IsPromise$1(type) ? FromPromise$2(type.item) : IsRef$1(type) ? FromRef$3(type.$ref) : type, options);
1435
1147
  }
1436
- //#endregion
1437
- //#region node_modules/.pnpm/@sinclair+typebox@0.34.48/node_modules/@sinclair/typebox/build/esm/type/keyof/keyof-property-keys.mjs
1438
1148
  function FromRest$3(types) {
1439
1149
  const result = [];
1440
1150
  for (const L of types) result.push(KeyOfPropertyKeys(L));
@@ -1461,13 +1171,10 @@ function FromPatternProperties(patternProperties) {
1461
1171
  return key[0] === "^" && key[key.length - 1] === "$" ? key.slice(1, key.length - 1) : key;
1462
1172
  });
1463
1173
  }
1464
- /** Returns a tuple of PropertyKeys derived from the given TSchema. */
1465
1174
  function KeyOfPropertyKeys(type) {
1466
1175
  return IsIntersect$1(type) ? FromIntersect$5(type.allOf) : IsUnion$1(type) ? FromUnion$5(type.anyOf) : IsTuple$1(type) ? FromTuple$3(type.items ?? []) : IsArray$1(type) ? FromArray$4(type.items) : IsObject$1(type) ? FromProperties$14(type.properties) : IsRecord$1(type) ? FromPatternProperties(type.patternProperties) : [];
1467
1176
  }
1468
1177
  let includePatternProperties = false;
1469
- //#endregion
1470
- //#region node_modules/.pnpm/@sinclair+typebox@0.34.48/node_modules/@sinclair/typebox/build/esm/type/keyof/keyof.mjs
1471
1178
  function FromComputed$3(target, parameters) {
1472
1179
  return Computed("KeyOf", [Computed(target, parameters)]);
1473
1180
  }
@@ -1480,12 +1187,9 @@ function KeyOfFromType(type, options) {
1480
1187
  function KeyOfPropertyKeysToRest(propertyKeys) {
1481
1188
  return propertyKeys.map((L) => L === "[number]" ? Number$1() : Literal(L));
1482
1189
  }
1483
- /** `[Json]` Creates a KeyOf type */
1484
1190
  function KeyOf(type, options) {
1485
1191
  return IsComputed$1(type) ? FromComputed$3(type.target, type.parameters) : IsRef$1(type) ? FromRef$2(type.$ref) : IsMappedResult$1(type) ? KeyOfFromMappedResult(type, options) : KeyOfFromType(type, options);
1486
1192
  }
1487
- //#endregion
1488
- //#region node_modules/.pnpm/@sinclair+typebox@0.34.48/node_modules/@sinclair/typebox/build/esm/type/keyof/keyof-from-mapped-result.mjs
1489
1193
  function FromProperties$13(properties, options) {
1490
1194
  const result = {};
1491
1195
  for (const K2 of globalThis.Object.getOwnPropertyNames(properties)) result[K2] = KeyOf(properties[K2], Clone(options));
@@ -1497,8 +1201,6 @@ function FromMappedResult$7(mappedResult, options) {
1497
1201
  function KeyOfFromMappedResult(mappedResult, options) {
1498
1202
  return MappedResult(FromMappedResult$7(mappedResult, options));
1499
1203
  }
1500
- //#endregion
1501
- //#region node_modules/.pnpm/@sinclair+typebox@0.34.48/node_modules/@sinclair/typebox/build/esm/type/composite/composite.mjs
1502
1204
  function CompositeKeys(T) {
1503
1205
  const Acc = [];
1504
1206
  for (const L of T) Acc.push(...KeyOfPropertyKeys(L));
@@ -1520,59 +1222,39 @@ function CompositeProperties(T, K) {
1520
1222
  function Composite(T, options) {
1521
1223
  return Object$1(CompositeProperties(T, CompositeKeys(T)), options);
1522
1224
  }
1523
- //#endregion
1524
- //#region node_modules/.pnpm/@sinclair+typebox@0.34.48/node_modules/@sinclair/typebox/build/esm/type/date/date.mjs
1525
- /** `[JavaScript]` Creates a Date type */
1526
1225
  function Date$1(options) {
1527
1226
  return CreateType({
1528
1227
  [Kind]: "Date",
1529
1228
  type: "Date"
1530
1229
  }, options);
1531
1230
  }
1532
- //#endregion
1533
- //#region node_modules/.pnpm/@sinclair+typebox@0.34.48/node_modules/@sinclair/typebox/build/esm/type/null/null.mjs
1534
- /** `[Json]` Creates a Null type */
1535
1231
  function Null(options) {
1536
1232
  return CreateType({
1537
1233
  [Kind]: "Null",
1538
1234
  type: "null"
1539
1235
  }, options);
1540
1236
  }
1541
- //#endregion
1542
- //#region node_modules/.pnpm/@sinclair+typebox@0.34.48/node_modules/@sinclair/typebox/build/esm/type/symbol/symbol.mjs
1543
- /** `[JavaScript]` Creates a Symbol type */
1544
1237
  function Symbol$1(options) {
1545
1238
  return CreateType({
1546
1239
  [Kind]: "Symbol",
1547
1240
  type: "symbol"
1548
1241
  }, options);
1549
1242
  }
1550
- //#endregion
1551
- //#region node_modules/.pnpm/@sinclair+typebox@0.34.48/node_modules/@sinclair/typebox/build/esm/type/undefined/undefined.mjs
1552
- /** `[JavaScript]` Creates a Undefined type */
1553
1243
  function Undefined(options) {
1554
1244
  return CreateType({
1555
1245
  [Kind]: "Undefined",
1556
1246
  type: "undefined"
1557
1247
  }, options);
1558
1248
  }
1559
- //#endregion
1560
- //#region node_modules/.pnpm/@sinclair+typebox@0.34.48/node_modules/@sinclair/typebox/build/esm/type/uint8array/uint8array.mjs
1561
- /** `[JavaScript]` Creates a Uint8Array type */
1562
1249
  function Uint8Array$1(options) {
1563
1250
  return CreateType({
1564
1251
  [Kind]: "Uint8Array",
1565
1252
  type: "Uint8Array"
1566
1253
  }, options);
1567
1254
  }
1568
- //#endregion
1569
- //#region node_modules/.pnpm/@sinclair+typebox@0.34.48/node_modules/@sinclair/typebox/build/esm/type/unknown/unknown.mjs
1570
- /** `[Json]` Creates an Unknown type */
1571
1255
  function Unknown(options) {
1572
1256
  return CreateType({ [Kind]: "Unknown" }, options);
1573
1257
  }
1574
- //#endregion
1575
- //#region node_modules/.pnpm/@sinclair+typebox@0.34.48/node_modules/@sinclair/typebox/build/esm/type/const/const.mjs
1576
1258
  function FromArray$3(T) {
1577
1259
  return T.map((L) => FromValue(L, false));
1578
1260
  }
@@ -1587,19 +1269,12 @@ function ConditionalReadonly(T, root) {
1587
1269
  function FromValue(value, root) {
1588
1270
  return IsAsyncIterator$2(value) ? ConditionalReadonly(Any(), root) : IsIterator$2(value) ? ConditionalReadonly(Any(), root) : IsArray$3(value) ? Readonly(Tuple(FromArray$3(value))) : IsUint8Array$2(value) ? Uint8Array$1() : IsDate$2(value) ? Date$1() : IsObject$3(value) ? ConditionalReadonly(Object$1(FromProperties$12(value)), root) : IsFunction$2(value) ? ConditionalReadonly(Function([], Unknown()), root) : IsUndefined$3(value) ? Undefined() : IsNull$2(value) ? Null() : IsSymbol$2(value) ? Symbol$1() : IsBigInt$2(value) ? BigInt() : IsNumber$3(value) ? Literal(value) : IsBoolean$2(value) ? Literal(value) : IsString$2(value) ? Literal(value) : Object$1({});
1589
1271
  }
1590
- /** `[JavaScript]` Creates a readonly const type from the given value. */
1591
1272
  function Const(T, options) {
1592
1273
  return CreateType(FromValue(T, true), options);
1593
1274
  }
1594
- //#endregion
1595
- //#region node_modules/.pnpm/@sinclair+typebox@0.34.48/node_modules/@sinclair/typebox/build/esm/type/constructor-parameters/constructor-parameters.mjs
1596
- /** `[JavaScript]` Extracts the ConstructorParameters from the given Constructor type */
1597
1275
  function ConstructorParameters(schema, options) {
1598
1276
  return IsConstructor$1(schema) ? Tuple(schema.parameters, options) : Never(options);
1599
1277
  }
1600
- //#endregion
1601
- //#region node_modules/.pnpm/@sinclair+typebox@0.34.48/node_modules/@sinclair/typebox/build/esm/type/enum/enum.mjs
1602
- /** `[Json]` Creates a Enum type */
1603
1278
  function Enum(item, options) {
1604
1279
  if (IsUndefined$3(item)) throw new Error("Enum undefined or empty");
1605
1280
  const values1 = globalThis.Object.getOwnPropertyNames(item).filter((key) => isNaN(key)).map((key) => item[key]);
@@ -1608,8 +1283,6 @@ function Enum(item, options) {
1608
1283
  [Hint]: "Enum"
1609
1284
  });
1610
1285
  }
1611
- //#endregion
1612
- //#region node_modules/.pnpm/@sinclair+typebox@0.34.48/node_modules/@sinclair/typebox/build/esm/type/extends/extends-check.mjs
1613
1286
  var ExtendsResolverError = class extends TypeBoxError {};
1614
1287
  var ExtendsResult;
1615
1288
  (function(ExtendsResult) {
@@ -1835,8 +1508,6 @@ function Visit(left, right) {
1835
1508
  function ExtendsCheck(left, right) {
1836
1509
  return Visit(left, right);
1837
1510
  }
1838
- //#endregion
1839
- //#region node_modules/.pnpm/@sinclair+typebox@0.34.48/node_modules/@sinclair/typebox/build/esm/type/extends/extends-from-mapped-result.mjs
1840
1511
  function FromProperties$11(P, Right, True, False, options) {
1841
1512
  const Acc = {};
1842
1513
  for (const K2 of globalThis.Object.getOwnPropertyNames(P)) Acc[K2] = Extends(P[K2], Right, True, False, Clone(options));
@@ -1848,18 +1519,13 @@ function FromMappedResult$6(Left, Right, True, False, options) {
1848
1519
  function ExtendsFromMappedResult(Left, Right, True, False, options) {
1849
1520
  return MappedResult(FromMappedResult$6(Left, Right, True, False, options));
1850
1521
  }
1851
- //#endregion
1852
- //#region node_modules/.pnpm/@sinclair+typebox@0.34.48/node_modules/@sinclair/typebox/build/esm/type/extends/extends.mjs
1853
1522
  function ExtendsResolve(left, right, trueType, falseType) {
1854
1523
  const R = ExtendsCheck(left, right);
1855
1524
  return R === ExtendsResult.Union ? Union([trueType, falseType]) : R === ExtendsResult.True ? trueType : falseType;
1856
1525
  }
1857
- /** `[Json]` Creates a Conditional type */
1858
1526
  function Extends(L, R, T, F, options) {
1859
1527
  return IsMappedResult$1(L) ? ExtendsFromMappedResult(L, R, T, F, options) : IsMappedKey$1(L) ? CreateType(ExtendsFromMappedKey(L, R, T, F, options)) : CreateType(ExtendsResolve(L, R, T, F), options);
1860
1528
  }
1861
- //#endregion
1862
- //#region node_modules/.pnpm/@sinclair+typebox@0.34.48/node_modules/@sinclair/typebox/build/esm/type/extends/extends-from-mapped-key.mjs
1863
1529
  function FromPropertyKey$2(K, U, L, R, options) {
1864
1530
  return { [K]: Extends(Literal(K), U, L, R, Clone(options)) };
1865
1531
  }
@@ -1877,25 +1543,18 @@ function FromMappedKey$2(K, U, L, R, options) {
1877
1543
  function ExtendsFromMappedKey(T, U, L, R, options) {
1878
1544
  return MappedResult(FromMappedKey$2(T, U, L, R, options));
1879
1545
  }
1880
- //#endregion
1881
- //#region node_modules/.pnpm/@sinclair+typebox@0.34.48/node_modules/@sinclair/typebox/build/esm/type/exclude/exclude-from-template-literal.mjs
1882
1546
  function ExcludeFromTemplateLiteral(L, R) {
1883
1547
  return Exclude(TemplateLiteralToUnion(L), R);
1884
1548
  }
1885
- //#endregion
1886
- //#region node_modules/.pnpm/@sinclair+typebox@0.34.48/node_modules/@sinclair/typebox/build/esm/type/exclude/exclude.mjs
1887
1549
  function ExcludeRest(L, R) {
1888
1550
  const excluded = L.filter((inner) => ExtendsCheck(inner, R) === ExtendsResult.False);
1889
1551
  return excluded.length === 1 ? excluded[0] : Union(excluded);
1890
1552
  }
1891
- /** `[Json]` Constructs a type by excluding from unionType all union members that are assignable to excludedMembers */
1892
1553
  function Exclude(L, R, options = {}) {
1893
1554
  if (IsTemplateLiteral$1(L)) return CreateType(ExcludeFromTemplateLiteral(L, R), options);
1894
1555
  if (IsMappedResult$1(L)) return CreateType(ExcludeFromMappedResult(L, R), options);
1895
1556
  return CreateType(IsUnion$1(L) ? ExcludeRest(L.anyOf, R) : ExtendsCheck(L, R) !== ExtendsResult.False ? Never() : L, options);
1896
1557
  }
1897
- //#endregion
1898
- //#region node_modules/.pnpm/@sinclair+typebox@0.34.48/node_modules/@sinclair/typebox/build/esm/type/exclude/exclude-from-mapped-result.mjs
1899
1558
  function FromProperties$10(P, U) {
1900
1559
  const Acc = {};
1901
1560
  for (const K2 of globalThis.Object.getOwnPropertyNames(P)) Acc[K2] = Exclude(P[K2], U);
@@ -1907,25 +1566,18 @@ function FromMappedResult$5(R, T) {
1907
1566
  function ExcludeFromMappedResult(R, T) {
1908
1567
  return MappedResult(FromMappedResult$5(R, T));
1909
1568
  }
1910
- //#endregion
1911
- //#region node_modules/.pnpm/@sinclair+typebox@0.34.48/node_modules/@sinclair/typebox/build/esm/type/extract/extract-from-template-literal.mjs
1912
1569
  function ExtractFromTemplateLiteral(L, R) {
1913
1570
  return Extract(TemplateLiteralToUnion(L), R);
1914
1571
  }
1915
- //#endregion
1916
- //#region node_modules/.pnpm/@sinclair+typebox@0.34.48/node_modules/@sinclair/typebox/build/esm/type/extract/extract.mjs
1917
1572
  function ExtractRest(L, R) {
1918
1573
  const extracted = L.filter((inner) => ExtendsCheck(inner, R) !== ExtendsResult.False);
1919
1574
  return extracted.length === 1 ? extracted[0] : Union(extracted);
1920
1575
  }
1921
- /** `[Json]` Constructs a type by extracting from type all union members that are assignable to union */
1922
1576
  function Extract(L, R, options) {
1923
1577
  if (IsTemplateLiteral$1(L)) return CreateType(ExtractFromTemplateLiteral(L, R), options);
1924
1578
  if (IsMappedResult$1(L)) return CreateType(ExtractFromMappedResult(L, R), options);
1925
1579
  return CreateType(IsUnion$1(L) ? ExtractRest(L.anyOf, R) : ExtendsCheck(L, R) !== ExtendsResult.False ? L : Never(), options);
1926
1580
  }
1927
- //#endregion
1928
- //#region node_modules/.pnpm/@sinclair+typebox@0.34.48/node_modules/@sinclair/typebox/build/esm/type/extract/extract-from-mapped-result.mjs
1929
1581
  function FromProperties$9(P, T) {
1930
1582
  const Acc = {};
1931
1583
  for (const K2 of globalThis.Object.getOwnPropertyNames(P)) Acc[K2] = Extract(P[K2], T);
@@ -1937,20 +1589,12 @@ function FromMappedResult$4(R, T) {
1937
1589
  function ExtractFromMappedResult(R, T) {
1938
1590
  return MappedResult(FromMappedResult$4(R, T));
1939
1591
  }
1940
- //#endregion
1941
- //#region node_modules/.pnpm/@sinclair+typebox@0.34.48/node_modules/@sinclair/typebox/build/esm/type/instance-type/instance-type.mjs
1942
- /** `[JavaScript]` Extracts the InstanceType from the given Constructor type */
1943
1592
  function InstanceType(schema, options) {
1944
1593
  return IsConstructor$1(schema) ? CreateType(schema.returns, options) : Never(options);
1945
1594
  }
1946
- //#endregion
1947
- //#region node_modules/.pnpm/@sinclair+typebox@0.34.48/node_modules/@sinclair/typebox/build/esm/type/readonly-optional/readonly-optional.mjs
1948
- /** `[Json]` Creates a Readonly and Optional property */
1949
1595
  function ReadonlyOptional(schema) {
1950
1596
  return Readonly(Optional(schema));
1951
1597
  }
1952
- //#endregion
1953
- //#region node_modules/.pnpm/@sinclair+typebox@0.34.48/node_modules/@sinclair/typebox/build/esm/type/record/record.mjs
1954
1598
  function RecordCreateFromPattern(pattern, T, options) {
1955
1599
  return CreateType({
1956
1600
  [Kind]: "Record",
@@ -1999,25 +1643,19 @@ function FromIntegerKey(_key, type, options) {
1999
1643
  function FromNumberKey(_, type, options) {
2000
1644
  return RecordCreateFromPattern(PatternNumberExact, type, options);
2001
1645
  }
2002
- /** `[Json]` Creates a Record type */
2003
1646
  function Record(key, type, options = {}) {
2004
1647
  return IsUnion$1(key) ? FromUnionKey(key.anyOf, type, options) : IsTemplateLiteral$1(key) ? FromTemplateLiteralKey(key, type, options) : IsLiteral$1(key) ? FromLiteralKey(key.const, type, options) : IsBoolean$1(key) ? FromBooleanKey(key, type, options) : IsInteger$1(key) ? FromIntegerKey(key, type, options) : IsNumber$1(key) ? FromNumberKey(key, type, options) : IsRegExp$1(key) ? FromRegExpKey(key, type, options) : IsString$1(key) ? FromStringKey(key, type, options) : IsAny$1(key) ? FromAnyKey(key, type, options) : IsNever$1(key) ? FromNeverKey(key, type, options) : Never(options);
2005
1648
  }
2006
- /** Gets the Records Pattern */
2007
1649
  function RecordPattern(record) {
2008
1650
  return globalThis.Object.getOwnPropertyNames(record.patternProperties)[0];
2009
1651
  }
2010
- /** Gets the Records Key Type */
2011
1652
  function RecordKey(type) {
2012
1653
  const pattern = RecordPattern(type);
2013
1654
  return pattern === PatternStringExact ? String() : pattern === PatternNumberExact ? Number$1() : String({ pattern });
2014
1655
  }
2015
- /** Gets a Record Value Type */
2016
1656
  function RecordValue(type) {
2017
1657
  return type.patternProperties[RecordPattern(type)];
2018
1658
  }
2019
- //#endregion
2020
- //#region node_modules/.pnpm/@sinclair+typebox@0.34.48/node_modules/@sinclair/typebox/build/esm/type/instantiate/instantiate.mjs
2021
1659
  function FromConstructor$1(args, type) {
2022
1660
  type.parameters = FromTypes$1(args, type.parameters);
2023
1661
  type.returns = FromType$1(args, type.returns);
@@ -2094,21 +1732,15 @@ function FromTypes$1(args, types) {
2094
1732
  function FromType$1(args, type) {
2095
1733
  return IsConstructor$1(type) ? FromConstructor$1(args, type) : IsFunction$1(type) ? FromFunction$1(args, type) : IsIntersect$1(type) ? FromIntersect$3(args, type) : IsUnion$1(type) ? FromUnion$3(args, type) : IsTuple$1(type) ? FromTuple$1(args, type) : IsArray$1(type) ? FromArray$1(args, type) : IsAsyncIterator$1(type) ? FromAsyncIterator$1(args, type) : IsIterator$1(type) ? FromIterator$1(args, type) : IsPromise$1(type) ? FromPromise(args, type) : IsObject$1(type) ? FromObject$5(args, type) : IsRecord$1(type) ? FromRecord$1(args, type) : IsArgument$1(type) ? FromArgument(args, type) : type;
2096
1734
  }
2097
- /** `[JavaScript]` Instantiates a type with the given parameters */
2098
1735
  function Instantiate(type, args) {
2099
1736
  return FromType$1(args, CloneType(type));
2100
1737
  }
2101
- //#endregion
2102
- //#region node_modules/.pnpm/@sinclair+typebox@0.34.48/node_modules/@sinclair/typebox/build/esm/type/integer/integer.mjs
2103
- /** `[Json]` Creates an Integer type */
2104
1738
  function Integer(options) {
2105
1739
  return CreateType({
2106
1740
  [Kind]: "Integer",
2107
1741
  type: "integer"
2108
1742
  }, options);
2109
1743
  }
2110
- //#endregion
2111
- //#region node_modules/.pnpm/@sinclair+typebox@0.34.48/node_modules/@sinclair/typebox/build/esm/type/intrinsic/intrinsic-from-mapped-key.mjs
2112
1744
  function MappedIntrinsicPropertyKey(K, M, options) {
2113
1745
  return { [K]: Intrinsic(Literal(K), M, Clone(options)) };
2114
1746
  }
@@ -2126,8 +1758,6 @@ function MappedIntrinsicProperties(T, M, options) {
2126
1758
  function IntrinsicFromMappedKey(T, M, options) {
2127
1759
  return MappedResult(MappedIntrinsicProperties(T, M, options));
2128
1760
  }
2129
- //#endregion
2130
- //#region node_modules/.pnpm/@sinclair+typebox@0.34.48/node_modules/@sinclair/typebox/build/esm/type/intrinsic/intrinsic.mjs
2131
1761
  function ApplyUncapitalize(value) {
2132
1762
  const [first, rest] = [value.slice(0, 1), value.slice(1)];
2133
1763
  return [first.toLowerCase(), rest].join("");
@@ -2156,36 +1786,21 @@ function FromLiteralValue(value, mode) {
2156
1786
  function FromRest$2(T, M) {
2157
1787
  return T.map((L) => Intrinsic(L, M));
2158
1788
  }
2159
- /** Applies an intrinsic string manipulation to the given type. */
2160
1789
  function Intrinsic(schema, mode, options = {}) {
2161
1790
  return IsMappedKey$1(schema) ? IntrinsicFromMappedKey(schema, mode, options) : IsTemplateLiteral$1(schema) ? FromTemplateLiteral(schema, mode, options) : IsUnion$1(schema) ? Union(FromRest$2(schema.anyOf, mode), options) : IsLiteral$1(schema) ? Literal(FromLiteralValue(schema.const, mode), options) : CreateType(schema, options);
2162
1791
  }
2163
- //#endregion
2164
- //#region node_modules/.pnpm/@sinclair+typebox@0.34.48/node_modules/@sinclair/typebox/build/esm/type/intrinsic/capitalize.mjs
2165
- /** `[Json]` Intrinsic function to Capitalize LiteralString types */
2166
1792
  function Capitalize(T, options = {}) {
2167
1793
  return Intrinsic(T, "Capitalize", options);
2168
1794
  }
2169
- //#endregion
2170
- //#region node_modules/.pnpm/@sinclair+typebox@0.34.48/node_modules/@sinclair/typebox/build/esm/type/intrinsic/lowercase.mjs
2171
- /** `[Json]` Intrinsic function to Lowercase LiteralString types */
2172
1795
  function Lowercase(T, options = {}) {
2173
1796
  return Intrinsic(T, "Lowercase", options);
2174
1797
  }
2175
- //#endregion
2176
- //#region node_modules/.pnpm/@sinclair+typebox@0.34.48/node_modules/@sinclair/typebox/build/esm/type/intrinsic/uncapitalize.mjs
2177
- /** `[Json]` Intrinsic function to Uncapitalize LiteralString types */
2178
1798
  function Uncapitalize(T, options = {}) {
2179
1799
  return Intrinsic(T, "Uncapitalize", options);
2180
1800
  }
2181
- //#endregion
2182
- //#region node_modules/.pnpm/@sinclair+typebox@0.34.48/node_modules/@sinclair/typebox/build/esm/type/intrinsic/uppercase.mjs
2183
- /** `[Json]` Intrinsic function to Uppercase LiteralString types */
2184
1801
  function Uppercase(T, options = {}) {
2185
1802
  return Intrinsic(T, "Uppercase", options);
2186
1803
  }
2187
- //#endregion
2188
- //#region node_modules/.pnpm/@sinclair+typebox@0.34.48/node_modules/@sinclair/typebox/build/esm/type/omit/omit-from-mapped-result.mjs
2189
1804
  function FromProperties$7(properties, propertyKeys, options) {
2190
1805
  const result = {};
2191
1806
  for (const K2 of globalThis.Object.getOwnPropertyNames(properties)) result[K2] = Omit(properties[K2], propertyKeys, Clone(options));
@@ -2197,8 +1812,6 @@ function FromMappedResult$3(mappedResult, propertyKeys, options) {
2197
1812
  function OmitFromMappedResult(mappedResult, propertyKeys, options) {
2198
1813
  return MappedResult(FromMappedResult$3(mappedResult, propertyKeys, options));
2199
1814
  }
2200
- //#endregion
2201
- //#region node_modules/.pnpm/@sinclair+typebox@0.34.48/node_modules/@sinclair/typebox/build/esm/type/omit/omit.mjs
2202
1815
  function FromIntersect$2(types, propertyKeys) {
2203
1816
  return types.map((type) => OmitResolve(type, propertyKeys));
2204
1817
  }
@@ -2227,7 +1840,6 @@ function UnionFromPropertyKeys$1(propertyKeys) {
2227
1840
  function OmitResolve(type, propertyKeys) {
2228
1841
  return IsIntersect$1(type) ? Intersect(FromIntersect$2(type.allOf, propertyKeys)) : IsUnion$1(type) ? Union(FromUnion$2(type.anyOf, propertyKeys)) : IsObject$1(type) ? FromObject$4(type, propertyKeys, type.properties) : Object$1({});
2229
1842
  }
2230
- /** `[Json]` Constructs a type whose keys are picked from the given type */
2231
1843
  function Omit(type, key, options) {
2232
1844
  const typeKey = IsArray$3(key) ? UnionFromPropertyKeys$1(key) : key;
2233
1845
  const propertyKeys = IsSchema$1(key) ? IndexPropertyKeys(key) : key;
@@ -2238,8 +1850,6 @@ function Omit(type, key, options) {
2238
1850
  ...options
2239
1851
  });
2240
1852
  }
2241
- //#endregion
2242
- //#region node_modules/.pnpm/@sinclair+typebox@0.34.48/node_modules/@sinclair/typebox/build/esm/type/omit/omit-from-mapped-key.mjs
2243
1853
  function FromPropertyKey$1(type, key, options) {
2244
1854
  return { [key]: Omit(type, [key], Clone(options)) };
2245
1855
  }
@@ -2257,8 +1867,6 @@ function FromMappedKey$1(type, mappedKey, options) {
2257
1867
  function OmitFromMappedKey(type, mappedKey, options) {
2258
1868
  return MappedResult(FromMappedKey$1(type, mappedKey, options));
2259
1869
  }
2260
- //#endregion
2261
- //#region node_modules/.pnpm/@sinclair+typebox@0.34.48/node_modules/@sinclair/typebox/build/esm/type/pick/pick-from-mapped-result.mjs
2262
1870
  function FromProperties$5(properties, propertyKeys, options) {
2263
1871
  const result = {};
2264
1872
  for (const K2 of globalThis.Object.getOwnPropertyNames(properties)) result[K2] = Pick(properties[K2], propertyKeys, Clone(options));
@@ -2270,8 +1878,6 @@ function FromMappedResult$2(mappedResult, propertyKeys, options) {
2270
1878
  function PickFromMappedResult(mappedResult, propertyKeys, options) {
2271
1879
  return MappedResult(FromMappedResult$2(mappedResult, propertyKeys, options));
2272
1880
  }
2273
- //#endregion
2274
- //#region node_modules/.pnpm/@sinclair+typebox@0.34.48/node_modules/@sinclair/typebox/build/esm/type/pick/pick.mjs
2275
1881
  function FromIntersect$1(types, propertyKeys) {
2276
1882
  return types.map((type) => PickResolve(type, propertyKeys));
2277
1883
  }
@@ -2298,7 +1904,6 @@ function UnionFromPropertyKeys(propertyKeys) {
2298
1904
  function PickResolve(type, propertyKeys) {
2299
1905
  return IsIntersect$1(type) ? Intersect(FromIntersect$1(type.allOf, propertyKeys)) : IsUnion$1(type) ? Union(FromUnion$1(type.anyOf, propertyKeys)) : IsObject$1(type) ? FromObject$3(type, propertyKeys, type.properties) : Object$1({});
2300
1906
  }
2301
- /** `[Json]` Constructs a type whose keys are picked from the given type */
2302
1907
  function Pick(type, key, options) {
2303
1908
  const typeKey = IsArray$3(key) ? UnionFromPropertyKeys(key) : key;
2304
1909
  const propertyKeys = IsSchema$1(key) ? IndexPropertyKeys(key) : key;
@@ -2309,8 +1914,6 @@ function Pick(type, key, options) {
2309
1914
  ...options
2310
1915
  });
2311
1916
  }
2312
- //#endregion
2313
- //#region node_modules/.pnpm/@sinclair+typebox@0.34.48/node_modules/@sinclair/typebox/build/esm/type/pick/pick-from-mapped-key.mjs
2314
1917
  function FromPropertyKey(type, key, options) {
2315
1918
  return { [key]: Pick(type, [key], Clone(options)) };
2316
1919
  }
@@ -2328,8 +1931,6 @@ function FromMappedKey(type, mappedKey, options) {
2328
1931
  function PickFromMappedKey(type, mappedKey, options) {
2329
1932
  return MappedResult(FromMappedKey(type, mappedKey, options));
2330
1933
  }
2331
- //#endregion
2332
- //#region node_modules/.pnpm/@sinclair+typebox@0.34.48/node_modules/@sinclair/typebox/build/esm/type/partial/partial.mjs
2333
1934
  function FromComputed$2(target, parameters) {
2334
1935
  return Computed("Partial", [Computed(target, parameters)]);
2335
1936
  }
@@ -2356,7 +1957,6 @@ function FromRest$1(types) {
2356
1957
  function PartialResolve(type) {
2357
1958
  return IsComputed$1(type) ? FromComputed$2(type.target, type.parameters) : IsRef$1(type) ? FromRef$1(type.$ref) : IsIntersect$1(type) ? Intersect(FromRest$1(type.allOf)) : IsUnion$1(type) ? Union(FromRest$1(type.anyOf)) : IsObject$1(type) ? FromObject$2(type, type.properties) : IsBigInt$1(type) ? type : IsBoolean$1(type) ? type : IsInteger$1(type) ? type : IsLiteral$1(type) ? type : IsNull$1(type) ? type : IsNumber$1(type) ? type : IsString$1(type) ? type : IsSymbol$1(type) ? type : IsUndefined$1(type) ? type : Object$1({});
2358
1959
  }
2359
- /** `[Json]` Constructs a type where all properties are optional */
2360
1960
  function Partial(type, options) {
2361
1961
  if (IsMappedResult$1(type)) return PartialFromMappedResult(type, options);
2362
1962
  else return CreateType({
@@ -2364,8 +1964,6 @@ function Partial(type, options) {
2364
1964
  ...options
2365
1965
  });
2366
1966
  }
2367
- //#endregion
2368
- //#region node_modules/.pnpm/@sinclair+typebox@0.34.48/node_modules/@sinclair/typebox/build/esm/type/partial/partial-from-mapped-result.mjs
2369
1967
  function FromProperties$2(K, options) {
2370
1968
  const Acc = {};
2371
1969
  for (const K2 of globalThis.Object.getOwnPropertyNames(K)) Acc[K2] = Partial(K[K2], Clone(options));
@@ -2377,8 +1975,6 @@ function FromMappedResult$1(R, options) {
2377
1975
  function PartialFromMappedResult(R, options) {
2378
1976
  return MappedResult(FromMappedResult$1(R, options));
2379
1977
  }
2380
- //#endregion
2381
- //#region node_modules/.pnpm/@sinclair+typebox@0.34.48/node_modules/@sinclair/typebox/build/esm/type/required/required.mjs
2382
1978
  function FromComputed$1(target, parameters) {
2383
1979
  return Computed("Required", [Computed(target, parameters)]);
2384
1980
  }
@@ -2405,7 +2001,6 @@ function FromRest(types) {
2405
2001
  function RequiredResolve(type) {
2406
2002
  return IsComputed$1(type) ? FromComputed$1(type.target, type.parameters) : IsRef$1(type) ? FromRef(type.$ref) : IsIntersect$1(type) ? Intersect(FromRest(type.allOf)) : IsUnion$1(type) ? Union(FromRest(type.anyOf)) : IsObject$1(type) ? FromObject$1(type, type.properties) : IsBigInt$1(type) ? type : IsBoolean$1(type) ? type : IsInteger$1(type) ? type : IsLiteral$1(type) ? type : IsNull$1(type) ? type : IsNumber$1(type) ? type : IsString$1(type) ? type : IsSymbol$1(type) ? type : IsUndefined$1(type) ? type : Object$1({});
2407
2003
  }
2408
- /** `[Json]` Constructs a type where all properties are required */
2409
2004
  function Required(type, options) {
2410
2005
  if (IsMappedResult$1(type)) return RequiredFromMappedResult(type, options);
2411
2006
  else return CreateType({
@@ -2413,8 +2008,6 @@ function Required(type, options) {
2413
2008
  ...options
2414
2009
  });
2415
2010
  }
2416
- //#endregion
2417
- //#region node_modules/.pnpm/@sinclair+typebox@0.34.48/node_modules/@sinclair/typebox/build/esm/type/required/required-from-mapped-result.mjs
2418
2011
  function FromProperties(P, options) {
2419
2012
  const Acc = {};
2420
2013
  for (const K2 of globalThis.Object.getOwnPropertyNames(P)) Acc[K2] = Required(P[K2], options);
@@ -2426,8 +2019,6 @@ function FromMappedResult(R, options) {
2426
2019
  function RequiredFromMappedResult(R, options) {
2427
2020
  return MappedResult(FromMappedResult(R, options));
2428
2021
  }
2429
- //#endregion
2430
- //#region node_modules/.pnpm/@sinclair+typebox@0.34.48/node_modules/@sinclair/typebox/build/esm/type/module/compute.mjs
2431
2022
  function DereferenceParameters(moduleProperties, types) {
2432
2023
  return types.map((type) => {
2433
2024
  return IsRef$1(type) ? Dereference(moduleProperties, type.$ref) : FromType(moduleProperties, type);
@@ -2522,14 +2113,11 @@ function ComputeModuleProperties(moduleProperties) {
2522
2113
  };
2523
2114
  }, {});
2524
2115
  }
2525
- //#endregion
2526
- //#region node_modules/.pnpm/@sinclair+typebox@0.34.48/node_modules/@sinclair/typebox/build/esm/type/module/module.mjs
2527
2116
  var TModule = class {
2528
2117
  constructor($defs) {
2529
2118
  const computed = ComputeModuleProperties($defs);
2530
2119
  this.$defs = this.WithIdentifiers(computed);
2531
2120
  }
2532
- /** `[Json]` Imports a Type by Key. */
2533
2121
  Import(key, options) {
2534
2122
  const $defs = {
2535
2123
  ...this.$defs,
@@ -2553,29 +2141,19 @@ var TModule = class {
2553
2141
  }, {});
2554
2142
  }
2555
2143
  };
2556
- /** `[Json]` Creates a Type Definition Module. */
2557
2144
  function Module(properties) {
2558
2145
  return new TModule(properties);
2559
2146
  }
2560
- //#endregion
2561
- //#region node_modules/.pnpm/@sinclair+typebox@0.34.48/node_modules/@sinclair/typebox/build/esm/type/not/not.mjs
2562
- /** `[Json]` Creates a Not type */
2563
2147
  function Not(type, options) {
2564
2148
  return CreateType({
2565
2149
  [Kind]: "Not",
2566
2150
  not: type
2567
2151
  }, options);
2568
2152
  }
2569
- //#endregion
2570
- //#region node_modules/.pnpm/@sinclair+typebox@0.34.48/node_modules/@sinclair/typebox/build/esm/type/parameters/parameters.mjs
2571
- /** `[JavaScript]` Extracts the Parameters from the given Function type */
2572
2153
  function Parameters(schema, options) {
2573
2154
  return IsFunction$1(schema) ? Tuple(schema.parameters, options) : Never();
2574
2155
  }
2575
- //#endregion
2576
- //#region node_modules/.pnpm/@sinclair+typebox@0.34.48/node_modules/@sinclair/typebox/build/esm/type/recursive/recursive.mjs
2577
2156
  let Ordinal = 0;
2578
- /** `[Json]` Creates a Recursive type */
2579
2157
  function Recursive(callback, options = {}) {
2580
2158
  if (IsUndefined$3(options.$id)) options.$id = `T${Ordinal++}`;
2581
2159
  const thisType = CloneType(callback({
@@ -2588,9 +2166,6 @@ function Recursive(callback, options = {}) {
2588
2166
  ...thisType
2589
2167
  }, options);
2590
2168
  }
2591
- //#endregion
2592
- //#region node_modules/.pnpm/@sinclair+typebox@0.34.48/node_modules/@sinclair/typebox/build/esm/type/regexp/regexp.mjs
2593
- /** `[JavaScript]` Creates a RegExp type */
2594
2169
  function RegExp$1(unresolved, options) {
2595
2170
  const expr = IsString$2(unresolved) ? new globalThis.RegExp(unresolved) : unresolved;
2596
2171
  return CreateType({
@@ -2600,23 +2175,15 @@ function RegExp$1(unresolved, options) {
2600
2175
  flags: expr.flags
2601
2176
  }, options);
2602
2177
  }
2603
- //#endregion
2604
- //#region node_modules/.pnpm/@sinclair+typebox@0.34.48/node_modules/@sinclair/typebox/build/esm/type/rest/rest.mjs
2605
2178
  function RestResolve(T) {
2606
2179
  return IsIntersect$1(T) ? T.allOf : IsUnion$1(T) ? T.anyOf : IsTuple$1(T) ? T.items ?? [] : [];
2607
2180
  }
2608
- /** `[Json]` Extracts interior Rest elements from Tuple, Intersect and Union types */
2609
2181
  function Rest(T) {
2610
2182
  return RestResolve(T);
2611
2183
  }
2612
- //#endregion
2613
- //#region node_modules/.pnpm/@sinclair+typebox@0.34.48/node_modules/@sinclair/typebox/build/esm/type/return-type/return-type.mjs
2614
- /** `[JavaScript]` Extracts the ReturnType from the given Function type */
2615
2184
  function ReturnType(schema, options) {
2616
2185
  return IsFunction$1(schema) ? CreateType(schema.returns, options) : Never(options);
2617
2186
  }
2618
- //#endregion
2619
- //#region node_modules/.pnpm/@sinclair+typebox@0.34.48/node_modules/@sinclair/typebox/build/esm/type/transform/transform.mjs
2620
2187
  var TransformDecodeBuilder = class {
2621
2188
  constructor(schema) {
2622
2189
  this.schema = schema;
@@ -2656,28 +2223,18 @@ var TransformEncodeBuilder = class {
2656
2223
  return IsTransform$1(this.schema) ? this.EncodeTransform(encode, this.schema) : this.EncodeSchema(encode, this.schema);
2657
2224
  }
2658
2225
  };
2659
- /** `[Json]` Creates a Transform type */
2660
2226
  function Transform(schema) {
2661
2227
  return new TransformDecodeBuilder(schema);
2662
2228
  }
2663
- //#endregion
2664
- //#region node_modules/.pnpm/@sinclair+typebox@0.34.48/node_modules/@sinclair/typebox/build/esm/type/unsafe/unsafe.mjs
2665
- /** `[Json]` Creates a Unsafe type that will infers as the generic argument T */
2666
2229
  function Unsafe(options = {}) {
2667
2230
  return CreateType({ [Kind]: options[Kind] ?? "Unsafe" }, options);
2668
2231
  }
2669
- //#endregion
2670
- //#region node_modules/.pnpm/@sinclair+typebox@0.34.48/node_modules/@sinclair/typebox/build/esm/type/void/void.mjs
2671
- /** `[JavaScript]` Creates a Void type */
2672
2232
  function Void(options) {
2673
2233
  return CreateType({
2674
2234
  [Kind]: "Void",
2675
2235
  type: "void"
2676
2236
  }, options);
2677
2237
  }
2678
- //#endregion
2679
- //#region node_modules/.pnpm/@sinclair+typebox@0.34.48/node_modules/@sinclair/typebox/build/esm/type/type/index.mjs
2680
- /** JavaScript Type Builder with Static Resolution for TypeScript */
2681
2238
  const Type = /* @__PURE__ */ __exportAll({
2682
2239
  Any: () => Any,
2683
2240
  Argument: () => Argument,
@@ -2742,7 +2299,6 @@ const Type = /* @__PURE__ */ __exportAll({
2742
2299
  Uppercase: () => Uppercase,
2743
2300
  Void: () => Void
2744
2301
  });
2745
- //#endregion
2746
2302
  export { Type as t };
2747
2303
 
2748
2304
  //# sourceMappingURL=typebox.mjs.map