@luna-park/plugin-gradient 0.0.0-stage → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +33 -3
- package/dist/LpgGradient-DhYG5BbV.js +466 -0
- package/dist/index.js +3441 -0
- package/dist/runtime.js +2 -0
- package/package.json +66 -3
- package/src/logo.svg +29 -0
package/dist/index.js
ADDED
|
@@ -0,0 +1,3441 @@
|
|
|
1
|
+
(function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.appendChild(document.createTextNode(`.lpg-gradient[data-v-d6eac249]{isolation:isolate;position:relative;overflow:hidden}.lpg-gradient .lpg-canvas[data-v-d6eac249]{z-index:-1;pointer-events:none;width:100%;height:100%;position:absolute;inset:0}.lpg-gradient .lpg-content[data-v-d6eac249]{height:100%;position:relative}/*$vite$:1*/`)),document.head.appendChild(e)}}catch(e){console.error(`vite-plugin-css-injected-by-js`,e)}})();
|
|
2
|
+
import { a as e, d as t, f as n, o as r, r as i, s as a, t as o } from "./LpgGradient-DhYG5BbV.js";
|
|
3
|
+
import "vue";
|
|
4
|
+
//#region \0rolldown/runtime.js
|
|
5
|
+
var ee = Object.defineProperty, te = (e, t) => {
|
|
6
|
+
let n = {};
|
|
7
|
+
for (var r in e) ee(n, r, {
|
|
8
|
+
get: e[r],
|
|
9
|
+
enumerable: !0
|
|
10
|
+
});
|
|
11
|
+
return t || ee(n, Symbol.toStringTag, { value: "Module" }), n;
|
|
12
|
+
}, s = /* @__PURE__ */ function(e) {
|
|
13
|
+
return e.exec = "exec", e.number = "number", e.string = "string", e.boolean = "boolean", e.object = "object", e.record = "record", e.array = "array", e.interface = "interface", e.type = "type", e.function = "function", e.union = "union", e.unknown = "unknown", e.undefined = "undefined", e.void = "void", e;
|
|
14
|
+
}({}), c = {
|
|
15
|
+
array: (e, t = {}) => ({
|
|
16
|
+
...t,
|
|
17
|
+
items: e,
|
|
18
|
+
type: "array"
|
|
19
|
+
}),
|
|
20
|
+
boolean: (e = {}) => ({
|
|
21
|
+
...e,
|
|
22
|
+
type: "boolean"
|
|
23
|
+
}),
|
|
24
|
+
exec: (e = {}) => ({
|
|
25
|
+
...e,
|
|
26
|
+
type: "exec"
|
|
27
|
+
}),
|
|
28
|
+
function: ne,
|
|
29
|
+
interface: (e, t = {}) => ({
|
|
30
|
+
...t,
|
|
31
|
+
className: typeof e == "string" ? e : e.name,
|
|
32
|
+
type: "interface"
|
|
33
|
+
}),
|
|
34
|
+
number: (e = {}) => ({
|
|
35
|
+
...e,
|
|
36
|
+
type: "number"
|
|
37
|
+
}),
|
|
38
|
+
object: (e = {}, t = {}) => ({
|
|
39
|
+
...t,
|
|
40
|
+
properties: e,
|
|
41
|
+
type: "object"
|
|
42
|
+
}),
|
|
43
|
+
record: (e, t, n = {}) => ({
|
|
44
|
+
...n,
|
|
45
|
+
key: e,
|
|
46
|
+
type: "record",
|
|
47
|
+
value: t
|
|
48
|
+
}),
|
|
49
|
+
string: (e = {}) => ({
|
|
50
|
+
...e,
|
|
51
|
+
type: "string"
|
|
52
|
+
}),
|
|
53
|
+
type: re,
|
|
54
|
+
undefined: (e = {}) => ({
|
|
55
|
+
...e,
|
|
56
|
+
type: "undefined"
|
|
57
|
+
}),
|
|
58
|
+
union: (e, t = {}) => ({
|
|
59
|
+
...t,
|
|
60
|
+
elements: e,
|
|
61
|
+
type: "union"
|
|
62
|
+
}),
|
|
63
|
+
unknown: (e = {}) => ({
|
|
64
|
+
...e,
|
|
65
|
+
type: "unknown"
|
|
66
|
+
}),
|
|
67
|
+
void: (e = {}) => ({
|
|
68
|
+
...e,
|
|
69
|
+
type: "void"
|
|
70
|
+
})
|
|
71
|
+
};
|
|
72
|
+
function ne(e = [], t = c.void(), n = {}) {
|
|
73
|
+
return Array.isArray(e) ? ne(c.object(Object.fromEntries(e)), t, n) : {
|
|
74
|
+
...n,
|
|
75
|
+
inputs: e,
|
|
76
|
+
output: t,
|
|
77
|
+
type: "function"
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
function re(e, t = {}) {
|
|
81
|
+
return {
|
|
82
|
+
...t,
|
|
83
|
+
target: e,
|
|
84
|
+
type: "type"
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
//#endregion
|
|
88
|
+
//#region node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/guard/value.mjs
|
|
89
|
+
function ie(e) {
|
|
90
|
+
return u(e) && !l(e) && !me(e) && Symbol.asyncIterator in e;
|
|
91
|
+
}
|
|
92
|
+
function l(e) {
|
|
93
|
+
return Array.isArray(e);
|
|
94
|
+
}
|
|
95
|
+
function ae(e) {
|
|
96
|
+
return typeof e == "bigint";
|
|
97
|
+
}
|
|
98
|
+
function oe(e) {
|
|
99
|
+
return typeof e == "boolean";
|
|
100
|
+
}
|
|
101
|
+
function se(e) {
|
|
102
|
+
return e instanceof globalThis.Date;
|
|
103
|
+
}
|
|
104
|
+
function ce(e) {
|
|
105
|
+
return typeof e == "function";
|
|
106
|
+
}
|
|
107
|
+
function le(e) {
|
|
108
|
+
return u(e) && !l(e) && !me(e) && Symbol.iterator in e;
|
|
109
|
+
}
|
|
110
|
+
function ue(e) {
|
|
111
|
+
return e === null;
|
|
112
|
+
}
|
|
113
|
+
function de(e) {
|
|
114
|
+
return typeof e == "number";
|
|
115
|
+
}
|
|
116
|
+
function u(e) {
|
|
117
|
+
return typeof e == "object" && !!e;
|
|
118
|
+
}
|
|
119
|
+
function fe(e) {
|
|
120
|
+
return e instanceof globalThis.RegExp;
|
|
121
|
+
}
|
|
122
|
+
function d(e) {
|
|
123
|
+
return typeof e == "string";
|
|
124
|
+
}
|
|
125
|
+
function pe(e) {
|
|
126
|
+
return typeof e == "symbol";
|
|
127
|
+
}
|
|
128
|
+
function me(e) {
|
|
129
|
+
return e instanceof globalThis.Uint8Array;
|
|
130
|
+
}
|
|
131
|
+
function f(e) {
|
|
132
|
+
return e === void 0;
|
|
133
|
+
}
|
|
134
|
+
//#endregion
|
|
135
|
+
//#region node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/clone/value.mjs
|
|
136
|
+
function he(e) {
|
|
137
|
+
return e.map((e) => be(e));
|
|
138
|
+
}
|
|
139
|
+
function ge(e) {
|
|
140
|
+
return new Date(e.getTime());
|
|
141
|
+
}
|
|
142
|
+
function _e(e) {
|
|
143
|
+
return new Uint8Array(e);
|
|
144
|
+
}
|
|
145
|
+
function ve(e) {
|
|
146
|
+
return new RegExp(e.source, e.flags);
|
|
147
|
+
}
|
|
148
|
+
function ye(e) {
|
|
149
|
+
let t = {};
|
|
150
|
+
for (let n of Object.getOwnPropertyNames(e)) t[n] = be(e[n]);
|
|
151
|
+
for (let n of Object.getOwnPropertySymbols(e)) t[n] = be(e[n]);
|
|
152
|
+
return t;
|
|
153
|
+
}
|
|
154
|
+
function be(e) {
|
|
155
|
+
return l(e) ? he(e) : se(e) ? ge(e) : me(e) ? _e(e) : fe(e) ? ve(e) : u(e) ? ye(e) : e;
|
|
156
|
+
}
|
|
157
|
+
function p(e) {
|
|
158
|
+
return be(e);
|
|
159
|
+
}
|
|
160
|
+
//#endregion
|
|
161
|
+
//#region node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/clone/type.mjs
|
|
162
|
+
function xe(e, t) {
|
|
163
|
+
return p(t === void 0 ? e : {
|
|
164
|
+
...t,
|
|
165
|
+
...e
|
|
166
|
+
});
|
|
167
|
+
}
|
|
168
|
+
//#endregion
|
|
169
|
+
//#region node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/value/guard/guard.mjs
|
|
170
|
+
function Se(e) {
|
|
171
|
+
return typeof e == "object" && !!e;
|
|
172
|
+
}
|
|
173
|
+
function Ce(e) {
|
|
174
|
+
return globalThis.Array.isArray(e) && !globalThis.ArrayBuffer.isView(e);
|
|
175
|
+
}
|
|
176
|
+
function we(e) {
|
|
177
|
+
return e === void 0;
|
|
178
|
+
}
|
|
179
|
+
function Te(e) {
|
|
180
|
+
return typeof e == "number";
|
|
181
|
+
}
|
|
182
|
+
//#endregion
|
|
183
|
+
//#region node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/system/policy.mjs
|
|
184
|
+
var Ee;
|
|
185
|
+
(function(e) {
|
|
186
|
+
e.InstanceMode = "default", e.ExactOptionalPropertyTypes = !1, e.AllowArrayObject = !1, e.AllowNaN = !1, e.AllowNullVoid = !1;
|
|
187
|
+
function t(t, n) {
|
|
188
|
+
return e.ExactOptionalPropertyTypes ? n in t : t[n] !== void 0;
|
|
189
|
+
}
|
|
190
|
+
e.IsExactOptionalProperty = t;
|
|
191
|
+
function n(t) {
|
|
192
|
+
let n = Se(t);
|
|
193
|
+
return e.AllowArrayObject ? n : n && !Ce(t);
|
|
194
|
+
}
|
|
195
|
+
e.IsObjectLike = n;
|
|
196
|
+
function r(e) {
|
|
197
|
+
return n(e) && !(e instanceof Date) && !(e instanceof Uint8Array);
|
|
198
|
+
}
|
|
199
|
+
e.IsRecordLike = r;
|
|
200
|
+
function i(t) {
|
|
201
|
+
return e.AllowNaN ? Te(t) : Number.isFinite(t);
|
|
202
|
+
}
|
|
203
|
+
e.IsNumberLike = i;
|
|
204
|
+
function a(t) {
|
|
205
|
+
let n = we(t);
|
|
206
|
+
return e.AllowNullVoid ? n || t === null : n;
|
|
207
|
+
}
|
|
208
|
+
e.IsVoidLike = a;
|
|
209
|
+
})(Ee ||= {});
|
|
210
|
+
//#endregion
|
|
211
|
+
//#region node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/create/immutable.mjs
|
|
212
|
+
function De(e) {
|
|
213
|
+
return globalThis.Object.freeze(e).map((e) => Me(e));
|
|
214
|
+
}
|
|
215
|
+
function Oe(e) {
|
|
216
|
+
return e;
|
|
217
|
+
}
|
|
218
|
+
function ke(e) {
|
|
219
|
+
return e;
|
|
220
|
+
}
|
|
221
|
+
function Ae(e) {
|
|
222
|
+
return e;
|
|
223
|
+
}
|
|
224
|
+
function je(e) {
|
|
225
|
+
let t = {};
|
|
226
|
+
for (let n of Object.getOwnPropertyNames(e)) t[n] = Me(e[n]);
|
|
227
|
+
for (let n of Object.getOwnPropertySymbols(e)) t[n] = Me(e[n]);
|
|
228
|
+
return globalThis.Object.freeze(t);
|
|
229
|
+
}
|
|
230
|
+
function Me(e) {
|
|
231
|
+
return l(e) ? De(e) : se(e) ? Oe(e) : me(e) ? ke(e) : fe(e) ? Ae(e) : u(e) ? je(e) : e;
|
|
232
|
+
}
|
|
233
|
+
//#endregion
|
|
234
|
+
//#region node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/create/type.mjs
|
|
235
|
+
function m(e, t) {
|
|
236
|
+
let n = t === void 0 ? e : {
|
|
237
|
+
...t,
|
|
238
|
+
...e
|
|
239
|
+
};
|
|
240
|
+
switch (Ee.InstanceMode) {
|
|
241
|
+
case "freeze": return Me(n);
|
|
242
|
+
case "clone": return p(n);
|
|
243
|
+
default: return n;
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
//#endregion
|
|
247
|
+
//#region node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/error/error.mjs
|
|
248
|
+
var Ne = class extends Error {
|
|
249
|
+
constructor(e) {
|
|
250
|
+
super(e);
|
|
251
|
+
}
|
|
252
|
+
}, h = Symbol.for("TypeBox.Transform"), Pe = Symbol.for("TypeBox.Readonly"), Fe = Symbol.for("TypeBox.Optional"), Ie = Symbol.for("TypeBox.Hint"), g = Symbol.for("TypeBox.Kind");
|
|
253
|
+
//#endregion
|
|
254
|
+
//#region node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/guard/kind.mjs
|
|
255
|
+
function Le(e) {
|
|
256
|
+
return u(e) && e[Pe] === "Readonly";
|
|
257
|
+
}
|
|
258
|
+
function Re(e) {
|
|
259
|
+
return u(e) && e[Fe] === "Optional";
|
|
260
|
+
}
|
|
261
|
+
function ze(e) {
|
|
262
|
+
return v(e, "Any");
|
|
263
|
+
}
|
|
264
|
+
function Be(e) {
|
|
265
|
+
return v(e, "Argument");
|
|
266
|
+
}
|
|
267
|
+
function Ve(e) {
|
|
268
|
+
return v(e, "Array");
|
|
269
|
+
}
|
|
270
|
+
function He(e) {
|
|
271
|
+
return v(e, "AsyncIterator");
|
|
272
|
+
}
|
|
273
|
+
function Ue(e) {
|
|
274
|
+
return v(e, "BigInt");
|
|
275
|
+
}
|
|
276
|
+
function We(e) {
|
|
277
|
+
return v(e, "Boolean");
|
|
278
|
+
}
|
|
279
|
+
function Ge(e) {
|
|
280
|
+
return v(e, "Computed");
|
|
281
|
+
}
|
|
282
|
+
function Ke(e) {
|
|
283
|
+
return v(e, "Constructor");
|
|
284
|
+
}
|
|
285
|
+
function qe(e) {
|
|
286
|
+
return v(e, "Date");
|
|
287
|
+
}
|
|
288
|
+
function Je(e) {
|
|
289
|
+
return v(e, "Function");
|
|
290
|
+
}
|
|
291
|
+
function Ye(e) {
|
|
292
|
+
return v(e, "Integer");
|
|
293
|
+
}
|
|
294
|
+
function _(e) {
|
|
295
|
+
return v(e, "Intersect");
|
|
296
|
+
}
|
|
297
|
+
function Xe(e) {
|
|
298
|
+
return v(e, "Iterator");
|
|
299
|
+
}
|
|
300
|
+
function v(e, t) {
|
|
301
|
+
return u(e) && g in e && e[g] === t;
|
|
302
|
+
}
|
|
303
|
+
function Ze(e) {
|
|
304
|
+
return oe(e) || de(e) || d(e);
|
|
305
|
+
}
|
|
306
|
+
function Qe(e) {
|
|
307
|
+
return v(e, "Literal");
|
|
308
|
+
}
|
|
309
|
+
function $e(e) {
|
|
310
|
+
return v(e, "MappedKey");
|
|
311
|
+
}
|
|
312
|
+
function y(e) {
|
|
313
|
+
return v(e, "MappedResult");
|
|
314
|
+
}
|
|
315
|
+
function et(e) {
|
|
316
|
+
return v(e, "Never");
|
|
317
|
+
}
|
|
318
|
+
function tt(e) {
|
|
319
|
+
return v(e, "Not");
|
|
320
|
+
}
|
|
321
|
+
function nt(e) {
|
|
322
|
+
return v(e, "Null");
|
|
323
|
+
}
|
|
324
|
+
function rt(e) {
|
|
325
|
+
return v(e, "Number");
|
|
326
|
+
}
|
|
327
|
+
function b(e) {
|
|
328
|
+
return v(e, "Object");
|
|
329
|
+
}
|
|
330
|
+
function it(e) {
|
|
331
|
+
return v(e, "Promise");
|
|
332
|
+
}
|
|
333
|
+
function at(e) {
|
|
334
|
+
return v(e, "Record");
|
|
335
|
+
}
|
|
336
|
+
function x(e) {
|
|
337
|
+
return v(e, "Ref");
|
|
338
|
+
}
|
|
339
|
+
function ot(e) {
|
|
340
|
+
return v(e, "RegExp");
|
|
341
|
+
}
|
|
342
|
+
function st(e) {
|
|
343
|
+
return v(e, "String");
|
|
344
|
+
}
|
|
345
|
+
function ct(e) {
|
|
346
|
+
return v(e, "Symbol");
|
|
347
|
+
}
|
|
348
|
+
function lt(e) {
|
|
349
|
+
return v(e, "TemplateLiteral");
|
|
350
|
+
}
|
|
351
|
+
function ut(e) {
|
|
352
|
+
return v(e, "This");
|
|
353
|
+
}
|
|
354
|
+
function dt(e) {
|
|
355
|
+
return u(e) && h in e;
|
|
356
|
+
}
|
|
357
|
+
function ft(e) {
|
|
358
|
+
return v(e, "Tuple");
|
|
359
|
+
}
|
|
360
|
+
function pt(e) {
|
|
361
|
+
return v(e, "Undefined");
|
|
362
|
+
}
|
|
363
|
+
function S(e) {
|
|
364
|
+
return v(e, "Union");
|
|
365
|
+
}
|
|
366
|
+
function mt(e) {
|
|
367
|
+
return v(e, "Uint8Array");
|
|
368
|
+
}
|
|
369
|
+
function ht(e) {
|
|
370
|
+
return v(e, "Unknown");
|
|
371
|
+
}
|
|
372
|
+
function gt(e) {
|
|
373
|
+
return v(e, "Unsafe");
|
|
374
|
+
}
|
|
375
|
+
function _t(e) {
|
|
376
|
+
return v(e, "Void");
|
|
377
|
+
}
|
|
378
|
+
function vt(e) {
|
|
379
|
+
return u(e) && g in e && d(e[g]);
|
|
380
|
+
}
|
|
381
|
+
function yt(e) {
|
|
382
|
+
return ze(e) || Be(e) || Ve(e) || We(e) || Ue(e) || He(e) || Ge(e) || Ke(e) || qe(e) || Je(e) || Ye(e) || _(e) || Xe(e) || Qe(e) || $e(e) || y(e) || et(e) || tt(e) || nt(e) || rt(e) || b(e) || it(e) || at(e) || x(e) || ot(e) || st(e) || ct(e) || lt(e) || ut(e) || ft(e) || pt(e) || S(e) || mt(e) || ht(e) || gt(e) || _t(e) || vt(e);
|
|
383
|
+
}
|
|
384
|
+
//#endregion
|
|
385
|
+
//#region node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/guard/type.mjs
|
|
386
|
+
var bt = /* @__PURE__ */ "Argument.Any.Array.AsyncIterator.BigInt.Boolean.Computed.Constructor.Date.Enum.Function.Integer.Intersect.Iterator.Literal.MappedKey.MappedResult.Not.Null.Number.Object.Promise.Record.Ref.RegExp.String.Symbol.TemplateLiteral.This.Tuple.Undefined.Union.Uint8Array.Unknown.Void".split(".");
|
|
387
|
+
function xt(e) {
|
|
388
|
+
try {
|
|
389
|
+
return new RegExp(e), !0;
|
|
390
|
+
} catch {
|
|
391
|
+
return !1;
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
function St(e) {
|
|
395
|
+
if (!d(e)) return !1;
|
|
396
|
+
for (let t = 0; t < e.length; t++) {
|
|
397
|
+
let n = e.charCodeAt(t);
|
|
398
|
+
if (n >= 7 && n <= 13 || n === 27 || n === 127) return !1;
|
|
399
|
+
}
|
|
400
|
+
return !0;
|
|
401
|
+
}
|
|
402
|
+
function Ct(e) {
|
|
403
|
+
return Tt(e) || M(e);
|
|
404
|
+
}
|
|
405
|
+
function wt(e) {
|
|
406
|
+
return f(e) || ae(e);
|
|
407
|
+
}
|
|
408
|
+
function C(e) {
|
|
409
|
+
return f(e) || de(e);
|
|
410
|
+
}
|
|
411
|
+
function Tt(e) {
|
|
412
|
+
return f(e) || oe(e);
|
|
413
|
+
}
|
|
414
|
+
function w(e) {
|
|
415
|
+
return f(e) || d(e);
|
|
416
|
+
}
|
|
417
|
+
function Et(e) {
|
|
418
|
+
return f(e) || d(e) && St(e) && xt(e);
|
|
419
|
+
}
|
|
420
|
+
function Dt(e) {
|
|
421
|
+
return f(e) || d(e) && St(e);
|
|
422
|
+
}
|
|
423
|
+
function Ot(e) {
|
|
424
|
+
return f(e) || M(e);
|
|
425
|
+
}
|
|
426
|
+
function kt(e) {
|
|
427
|
+
return u(e) && e[Fe] === "Optional";
|
|
428
|
+
}
|
|
429
|
+
function T(e) {
|
|
430
|
+
return E(e, "Any") && w(e.$id);
|
|
431
|
+
}
|
|
432
|
+
function At(e) {
|
|
433
|
+
return E(e, "Argument") && de(e.index);
|
|
434
|
+
}
|
|
435
|
+
function jt(e) {
|
|
436
|
+
return E(e, "Array") && e.type === "array" && w(e.$id) && M(e.items) && C(e.minItems) && C(e.maxItems) && Tt(e.uniqueItems) && Ot(e.contains) && C(e.minContains) && C(e.maxContains);
|
|
437
|
+
}
|
|
438
|
+
function Mt(e) {
|
|
439
|
+
return E(e, "AsyncIterator") && e.type === "AsyncIterator" && w(e.$id) && M(e.items);
|
|
440
|
+
}
|
|
441
|
+
function Nt(e) {
|
|
442
|
+
return E(e, "BigInt") && e.type === "bigint" && w(e.$id) && wt(e.exclusiveMaximum) && wt(e.exclusiveMinimum) && wt(e.maximum) && wt(e.minimum) && wt(e.multipleOf);
|
|
443
|
+
}
|
|
444
|
+
function Pt(e) {
|
|
445
|
+
return E(e, "Boolean") && e.type === "boolean" && w(e.$id);
|
|
446
|
+
}
|
|
447
|
+
function Ft(e) {
|
|
448
|
+
return E(e, "Computed") && d(e.target) && l(e.parameters) && e.parameters.every((e) => M(e));
|
|
449
|
+
}
|
|
450
|
+
function It(e) {
|
|
451
|
+
return E(e, "Constructor") && e.type === "Constructor" && w(e.$id) && l(e.parameters) && e.parameters.every((e) => M(e)) && M(e.returns);
|
|
452
|
+
}
|
|
453
|
+
function Lt(e) {
|
|
454
|
+
return E(e, "Date") && e.type === "Date" && w(e.$id) && C(e.exclusiveMaximumTimestamp) && C(e.exclusiveMinimumTimestamp) && C(e.maximumTimestamp) && C(e.minimumTimestamp) && C(e.multipleOfTimestamp);
|
|
455
|
+
}
|
|
456
|
+
function Rt(e) {
|
|
457
|
+
return E(e, "Function") && e.type === "Function" && w(e.$id) && l(e.parameters) && e.parameters.every((e) => M(e)) && M(e.returns);
|
|
458
|
+
}
|
|
459
|
+
function zt(e) {
|
|
460
|
+
return E(e, "Integer") && e.type === "integer" && w(e.$id) && C(e.exclusiveMaximum) && C(e.exclusiveMinimum) && C(e.maximum) && C(e.minimum) && C(e.multipleOf);
|
|
461
|
+
}
|
|
462
|
+
function Bt(e) {
|
|
463
|
+
return u(e) && Object.entries(e).every(([e, t]) => St(e) && M(t));
|
|
464
|
+
}
|
|
465
|
+
function Vt(e) {
|
|
466
|
+
return E(e, "Intersect") && !(d(e.type) && e.type !== "object") && l(e.allOf) && e.allOf.every((e) => M(e) && !on(e)) && w(e.type) && (Tt(e.unevaluatedProperties) || Ot(e.unevaluatedProperties)) && w(e.$id);
|
|
467
|
+
}
|
|
468
|
+
function Ht(e) {
|
|
469
|
+
return E(e, "Iterator") && e.type === "Iterator" && w(e.$id) && M(e.items);
|
|
470
|
+
}
|
|
471
|
+
function E(e, t) {
|
|
472
|
+
return u(e) && g in e && e[g] === t;
|
|
473
|
+
}
|
|
474
|
+
function Ut(e) {
|
|
475
|
+
return Kt(e) && d(e.const);
|
|
476
|
+
}
|
|
477
|
+
function Wt(e) {
|
|
478
|
+
return Kt(e) && de(e.const);
|
|
479
|
+
}
|
|
480
|
+
function Gt(e) {
|
|
481
|
+
return Kt(e) && oe(e.const);
|
|
482
|
+
}
|
|
483
|
+
function Kt(e) {
|
|
484
|
+
return E(e, "Literal") && w(e.$id) && qt(e.const);
|
|
485
|
+
}
|
|
486
|
+
function qt(e) {
|
|
487
|
+
return oe(e) || de(e) || d(e);
|
|
488
|
+
}
|
|
489
|
+
function Jt(e) {
|
|
490
|
+
return E(e, "MappedKey") && l(e.keys) && e.keys.every((e) => de(e) || d(e));
|
|
491
|
+
}
|
|
492
|
+
function Yt(e) {
|
|
493
|
+
return E(e, "MappedResult") && Bt(e.properties);
|
|
494
|
+
}
|
|
495
|
+
function Xt(e) {
|
|
496
|
+
return E(e, "Never") && u(e.not) && Object.getOwnPropertyNames(e.not).length === 0;
|
|
497
|
+
}
|
|
498
|
+
function Zt(e) {
|
|
499
|
+
return E(e, "Not") && M(e.not);
|
|
500
|
+
}
|
|
501
|
+
function Qt(e) {
|
|
502
|
+
return E(e, "Null") && e.type === "null" && w(e.$id);
|
|
503
|
+
}
|
|
504
|
+
function D(e) {
|
|
505
|
+
return E(e, "Number") && e.type === "number" && w(e.$id) && C(e.exclusiveMaximum) && C(e.exclusiveMinimum) && C(e.maximum) && C(e.minimum) && C(e.multipleOf);
|
|
506
|
+
}
|
|
507
|
+
function O(e) {
|
|
508
|
+
return E(e, "Object") && e.type === "object" && w(e.$id) && Bt(e.properties) && Ct(e.additionalProperties) && C(e.minProperties) && C(e.maxProperties);
|
|
509
|
+
}
|
|
510
|
+
function $t(e) {
|
|
511
|
+
return E(e, "Promise") && e.type === "Promise" && w(e.$id) && M(e.item);
|
|
512
|
+
}
|
|
513
|
+
function k(e) {
|
|
514
|
+
return E(e, "Record") && e.type === "object" && w(e.$id) && Ct(e.additionalProperties) && u(e.patternProperties) && ((e) => {
|
|
515
|
+
let t = Object.getOwnPropertyNames(e.patternProperties);
|
|
516
|
+
return t.length === 1 && xt(t[0]) && u(e.patternProperties) && M(e.patternProperties[t[0]]);
|
|
517
|
+
})(e);
|
|
518
|
+
}
|
|
519
|
+
function en(e) {
|
|
520
|
+
return E(e, "Ref") && w(e.$id) && d(e.$ref);
|
|
521
|
+
}
|
|
522
|
+
function tn(e) {
|
|
523
|
+
return E(e, "RegExp") && w(e.$id) && d(e.source) && d(e.flags) && C(e.maxLength) && C(e.minLength);
|
|
524
|
+
}
|
|
525
|
+
function A(e) {
|
|
526
|
+
return E(e, "String") && e.type === "string" && w(e.$id) && C(e.minLength) && C(e.maxLength) && Et(e.pattern) && Dt(e.format);
|
|
527
|
+
}
|
|
528
|
+
function nn(e) {
|
|
529
|
+
return E(e, "Symbol") && e.type === "symbol" && w(e.$id);
|
|
530
|
+
}
|
|
531
|
+
function rn(e) {
|
|
532
|
+
return E(e, "TemplateLiteral") && e.type === "string" && d(e.pattern) && e.pattern[0] === "^" && e.pattern[e.pattern.length - 1] === "$";
|
|
533
|
+
}
|
|
534
|
+
function an(e) {
|
|
535
|
+
return E(e, "This") && w(e.$id) && d(e.$ref);
|
|
536
|
+
}
|
|
537
|
+
function on(e) {
|
|
538
|
+
return u(e) && h in e;
|
|
539
|
+
}
|
|
540
|
+
function sn(e) {
|
|
541
|
+
return E(e, "Tuple") && e.type === "array" && w(e.$id) && de(e.minItems) && de(e.maxItems) && e.minItems === e.maxItems && (f(e.items) && f(e.additionalItems) && e.minItems === 0 || l(e.items) && e.items.every((e) => M(e)));
|
|
542
|
+
}
|
|
543
|
+
function cn(e) {
|
|
544
|
+
return E(e, "Undefined") && e.type === "undefined" && w(e.$id);
|
|
545
|
+
}
|
|
546
|
+
function ln(e) {
|
|
547
|
+
return E(e, "Union") && w(e.$id) && u(e) && l(e.anyOf) && e.anyOf.every((e) => M(e));
|
|
548
|
+
}
|
|
549
|
+
function un(e) {
|
|
550
|
+
return E(e, "Uint8Array") && e.type === "Uint8Array" && w(e.$id) && C(e.minByteLength) && C(e.maxByteLength);
|
|
551
|
+
}
|
|
552
|
+
function j(e) {
|
|
553
|
+
return E(e, "Unknown") && w(e.$id);
|
|
554
|
+
}
|
|
555
|
+
function dn(e) {
|
|
556
|
+
return E(e, "Unsafe");
|
|
557
|
+
}
|
|
558
|
+
function fn(e) {
|
|
559
|
+
return E(e, "Void") && e.type === "void" && w(e.$id);
|
|
560
|
+
}
|
|
561
|
+
function pn(e) {
|
|
562
|
+
return u(e) && g in e && d(e[g]) && !bt.includes(e[g]);
|
|
563
|
+
}
|
|
564
|
+
function M(e) {
|
|
565
|
+
return u(e) && (T(e) || At(e) || jt(e) || Pt(e) || Nt(e) || Mt(e) || Ft(e) || It(e) || Lt(e) || Rt(e) || zt(e) || Vt(e) || Ht(e) || Kt(e) || Jt(e) || Yt(e) || Xt(e) || Zt(e) || Qt(e) || D(e) || O(e) || $t(e) || k(e) || en(e) || tn(e) || A(e) || nn(e) || rn(e) || an(e) || sn(e) || cn(e) || ln(e) || un(e) || j(e) || dn(e) || fn(e) || pn(e));
|
|
566
|
+
}
|
|
567
|
+
//#endregion
|
|
568
|
+
//#region node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/patterns/patterns.mjs
|
|
569
|
+
var mn = "(true|false)", hn = "(0|[1-9][0-9]*)", gn = "(.*)", _n = "(?!.*)";
|
|
570
|
+
`${mn}`;
|
|
571
|
+
var vn = `^${hn}$`, yn = `^${gn}$`, bn = `^${_n}$`;
|
|
572
|
+
//#endregion
|
|
573
|
+
//#region node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/sets/set.mjs
|
|
574
|
+
function xn(e, t) {
|
|
575
|
+
return e.includes(t);
|
|
576
|
+
}
|
|
577
|
+
function Sn(e) {
|
|
578
|
+
return [...new Set(e)];
|
|
579
|
+
}
|
|
580
|
+
function Cn(e, t) {
|
|
581
|
+
return e.filter((e) => t.includes(e));
|
|
582
|
+
}
|
|
583
|
+
function wn(e, t) {
|
|
584
|
+
return e.reduce((e, t) => Cn(e, t), t);
|
|
585
|
+
}
|
|
586
|
+
function Tn(e) {
|
|
587
|
+
return e.length === 1 ? e[0] : e.length > 1 ? wn(e.slice(1), e[0]) : [];
|
|
588
|
+
}
|
|
589
|
+
function En(e) {
|
|
590
|
+
let t = [];
|
|
591
|
+
for (let n of e) t.push(...n);
|
|
592
|
+
return t;
|
|
593
|
+
}
|
|
594
|
+
//#endregion
|
|
595
|
+
//#region node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/any/any.mjs
|
|
596
|
+
function Dn(e) {
|
|
597
|
+
return m({ [g]: "Any" }, e);
|
|
598
|
+
}
|
|
599
|
+
//#endregion
|
|
600
|
+
//#region node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/array/array.mjs
|
|
601
|
+
function On(e, t) {
|
|
602
|
+
return m({
|
|
603
|
+
[g]: "Array",
|
|
604
|
+
type: "array",
|
|
605
|
+
items: e
|
|
606
|
+
}, t);
|
|
607
|
+
}
|
|
608
|
+
//#endregion
|
|
609
|
+
//#region node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/argument/argument.mjs
|
|
610
|
+
function kn(e) {
|
|
611
|
+
return m({
|
|
612
|
+
[g]: "Argument",
|
|
613
|
+
index: e
|
|
614
|
+
});
|
|
615
|
+
}
|
|
616
|
+
//#endregion
|
|
617
|
+
//#region node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/async-iterator/async-iterator.mjs
|
|
618
|
+
function An(e, t) {
|
|
619
|
+
return m({
|
|
620
|
+
[g]: "AsyncIterator",
|
|
621
|
+
type: "AsyncIterator",
|
|
622
|
+
items: e
|
|
623
|
+
}, t);
|
|
624
|
+
}
|
|
625
|
+
//#endregion
|
|
626
|
+
//#region node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/computed/computed.mjs
|
|
627
|
+
function N(e, t, n) {
|
|
628
|
+
return m({
|
|
629
|
+
[g]: "Computed",
|
|
630
|
+
target: e,
|
|
631
|
+
parameters: t
|
|
632
|
+
}, n);
|
|
633
|
+
}
|
|
634
|
+
//#endregion
|
|
635
|
+
//#region node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/discard/discard.mjs
|
|
636
|
+
function jn(e, t) {
|
|
637
|
+
let { [t]: n, ...r } = e;
|
|
638
|
+
return r;
|
|
639
|
+
}
|
|
640
|
+
function P(e, t) {
|
|
641
|
+
return t.reduce((e, t) => jn(e, t), e);
|
|
642
|
+
}
|
|
643
|
+
//#endregion
|
|
644
|
+
//#region node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/never/never.mjs
|
|
645
|
+
function F(e) {
|
|
646
|
+
return m({
|
|
647
|
+
[g]: "Never",
|
|
648
|
+
not: {}
|
|
649
|
+
}, e);
|
|
650
|
+
}
|
|
651
|
+
//#endregion
|
|
652
|
+
//#region node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/mapped/mapped-result.mjs
|
|
653
|
+
function I(e) {
|
|
654
|
+
return m({
|
|
655
|
+
[g]: "MappedResult",
|
|
656
|
+
properties: e
|
|
657
|
+
});
|
|
658
|
+
}
|
|
659
|
+
//#endregion
|
|
660
|
+
//#region node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/constructor/constructor.mjs
|
|
661
|
+
function Mn(e, t, n) {
|
|
662
|
+
return m({
|
|
663
|
+
[g]: "Constructor",
|
|
664
|
+
type: "Constructor",
|
|
665
|
+
parameters: e,
|
|
666
|
+
returns: t
|
|
667
|
+
}, n);
|
|
668
|
+
}
|
|
669
|
+
//#endregion
|
|
670
|
+
//#region node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/function/function.mjs
|
|
671
|
+
function Nn(e, t, n) {
|
|
672
|
+
return m({
|
|
673
|
+
[g]: "Function",
|
|
674
|
+
type: "Function",
|
|
675
|
+
parameters: e,
|
|
676
|
+
returns: t
|
|
677
|
+
}, n);
|
|
678
|
+
}
|
|
679
|
+
//#endregion
|
|
680
|
+
//#region node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/union/union-create.mjs
|
|
681
|
+
function Pn(e, t) {
|
|
682
|
+
return m({
|
|
683
|
+
[g]: "Union",
|
|
684
|
+
anyOf: e
|
|
685
|
+
}, t);
|
|
686
|
+
}
|
|
687
|
+
//#endregion
|
|
688
|
+
//#region node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/union/union-evaluated.mjs
|
|
689
|
+
function Fn(e) {
|
|
690
|
+
return e.some((e) => Re(e));
|
|
691
|
+
}
|
|
692
|
+
function In(e) {
|
|
693
|
+
return e.map((e) => Re(e) ? Ln(e) : e);
|
|
694
|
+
}
|
|
695
|
+
function Ln(e) {
|
|
696
|
+
return P(e, [Fe]);
|
|
697
|
+
}
|
|
698
|
+
function Rn(e, t) {
|
|
699
|
+
return Fn(e) ? bi(Pn(In(e), t)) : Pn(In(e), t);
|
|
700
|
+
}
|
|
701
|
+
function zn(e, t) {
|
|
702
|
+
return e.length === 1 ? m(e[0], t) : e.length === 0 ? F(t) : Rn(e, t);
|
|
703
|
+
}
|
|
704
|
+
//#endregion
|
|
705
|
+
//#region node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/union/union.mjs
|
|
706
|
+
function L(e, t) {
|
|
707
|
+
return e.length === 0 ? F(t) : e.length === 1 ? m(e[0], t) : Pn(e, t);
|
|
708
|
+
}
|
|
709
|
+
//#endregion
|
|
710
|
+
//#region node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/template-literal/parse.mjs
|
|
711
|
+
var Bn = class extends Ne {};
|
|
712
|
+
function Vn(e) {
|
|
713
|
+
return e.replace(/\\\$/g, "$").replace(/\\\*/g, "*").replace(/\\\^/g, "^").replace(/\\\|/g, "|").replace(/\\\(/g, "(").replace(/\\\)/g, ")");
|
|
714
|
+
}
|
|
715
|
+
function Hn(e, t, n) {
|
|
716
|
+
return e[t] === n && e.charCodeAt(t - 1) !== 92;
|
|
717
|
+
}
|
|
718
|
+
function Un(e, t) {
|
|
719
|
+
return Hn(e, t, "(");
|
|
720
|
+
}
|
|
721
|
+
function Wn(e, t) {
|
|
722
|
+
return Hn(e, t, ")");
|
|
723
|
+
}
|
|
724
|
+
function Gn(e, t) {
|
|
725
|
+
return Hn(e, t, "|");
|
|
726
|
+
}
|
|
727
|
+
function Kn(e) {
|
|
728
|
+
if (!(Un(e, 0) && Wn(e, e.length - 1))) return !1;
|
|
729
|
+
let t = 0;
|
|
730
|
+
for (let n = 0; n < e.length; n++) if (Un(e, n) && (t += 1), Wn(e, n) && --t, t === 0 && n !== e.length - 1) return !1;
|
|
731
|
+
return !0;
|
|
732
|
+
}
|
|
733
|
+
function qn(e) {
|
|
734
|
+
return e.slice(1, e.length - 1);
|
|
735
|
+
}
|
|
736
|
+
function Jn(e) {
|
|
737
|
+
let t = 0;
|
|
738
|
+
for (let n = 0; n < e.length; n++) if (Un(e, n) && (t += 1), Wn(e, n) && --t, Gn(e, n) && t === 0) return !0;
|
|
739
|
+
return !1;
|
|
740
|
+
}
|
|
741
|
+
function Yn(e) {
|
|
742
|
+
for (let t = 0; t < e.length; t++) if (Un(e, t)) return !0;
|
|
743
|
+
return !1;
|
|
744
|
+
}
|
|
745
|
+
function Xn(e) {
|
|
746
|
+
let [t, n] = [0, 0], r = [];
|
|
747
|
+
for (let i = 0; i < e.length; i++) if (Un(e, i) && (t += 1), Wn(e, i) && --t, Gn(e, i) && t === 0) {
|
|
748
|
+
let t = e.slice(n, i);
|
|
749
|
+
t.length > 0 && r.push(Qn(t)), n = i + 1;
|
|
750
|
+
}
|
|
751
|
+
let i = e.slice(n);
|
|
752
|
+
return i.length > 0 && r.push(Qn(i)), r.length === 0 ? {
|
|
753
|
+
type: "const",
|
|
754
|
+
const: ""
|
|
755
|
+
} : r.length === 1 ? r[0] : {
|
|
756
|
+
type: "or",
|
|
757
|
+
expr: r
|
|
758
|
+
};
|
|
759
|
+
}
|
|
760
|
+
function Zn(e) {
|
|
761
|
+
function t(e, t) {
|
|
762
|
+
if (!Un(e, t)) throw new Bn("TemplateLiteralParser: Index must point to open parens");
|
|
763
|
+
let n = 0;
|
|
764
|
+
for (let r = t; r < e.length; r++) if (Un(e, r) && (n += 1), Wn(e, r) && --n, n === 0) return [t, r];
|
|
765
|
+
throw new Bn("TemplateLiteralParser: Unclosed group parens in expression");
|
|
766
|
+
}
|
|
767
|
+
function n(e, t) {
|
|
768
|
+
for (let n = t; n < e.length; n++) if (Un(e, n)) return [t, n];
|
|
769
|
+
return [t, e.length];
|
|
770
|
+
}
|
|
771
|
+
let r = [];
|
|
772
|
+
for (let i = 0; i < e.length; i++) if (Un(e, i)) {
|
|
773
|
+
let [n, a] = t(e, i), o = e.slice(n, a + 1);
|
|
774
|
+
r.push(Qn(o)), i = a;
|
|
775
|
+
} else {
|
|
776
|
+
let [t, a] = n(e, i), o = e.slice(t, a);
|
|
777
|
+
o.length > 0 && r.push(Qn(o)), i = a - 1;
|
|
778
|
+
}
|
|
779
|
+
return r.length === 0 ? {
|
|
780
|
+
type: "const",
|
|
781
|
+
const: ""
|
|
782
|
+
} : r.length === 1 ? r[0] : {
|
|
783
|
+
type: "and",
|
|
784
|
+
expr: r
|
|
785
|
+
};
|
|
786
|
+
}
|
|
787
|
+
function Qn(e) {
|
|
788
|
+
return Kn(e) ? Qn(qn(e)) : Jn(e) ? Xn(e) : Yn(e) ? Zn(e) : {
|
|
789
|
+
type: "const",
|
|
790
|
+
const: Vn(e)
|
|
791
|
+
};
|
|
792
|
+
}
|
|
793
|
+
function $n(e) {
|
|
794
|
+
return Qn(e.slice(1, e.length - 1));
|
|
795
|
+
}
|
|
796
|
+
//#endregion
|
|
797
|
+
//#region node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/template-literal/finite.mjs
|
|
798
|
+
var er = class extends Ne {};
|
|
799
|
+
function tr(e) {
|
|
800
|
+
return e.type === "or" && e.expr.length === 2 && e.expr[0].type === "const" && e.expr[0].const === "0" && e.expr[1].type === "const" && e.expr[1].const === "[1-9][0-9]*";
|
|
801
|
+
}
|
|
802
|
+
function nr(e) {
|
|
803
|
+
return e.type === "or" && e.expr.length === 2 && e.expr[0].type === "const" && e.expr[0].const === "true" && e.expr[1].type === "const" && e.expr[1].const === "false";
|
|
804
|
+
}
|
|
805
|
+
function rr(e) {
|
|
806
|
+
return e.type === "const" && e.const === ".*";
|
|
807
|
+
}
|
|
808
|
+
function ir(e) {
|
|
809
|
+
return tr(e) || rr(e) ? !1 : nr(e) ? !0 : e.type === "and" || e.type === "or" ? e.expr.every((e) => ir(e)) : e.type === "const" || (() => {
|
|
810
|
+
throw new er("Unknown expression type");
|
|
811
|
+
})();
|
|
812
|
+
}
|
|
813
|
+
function ar(e) {
|
|
814
|
+
return ir($n(e.pattern));
|
|
815
|
+
}
|
|
816
|
+
//#endregion
|
|
817
|
+
//#region node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/template-literal/generate.mjs
|
|
818
|
+
var or = class extends Ne {};
|
|
819
|
+
function* sr(e) {
|
|
820
|
+
if (e.length === 1) return yield* e[0];
|
|
821
|
+
for (let t of e[0]) for (let n of sr(e.slice(1))) yield `${t}${n}`;
|
|
822
|
+
}
|
|
823
|
+
function* cr(e) {
|
|
824
|
+
return yield* sr(e.expr.map((e) => [...dr(e)]));
|
|
825
|
+
}
|
|
826
|
+
function* lr(e) {
|
|
827
|
+
for (let t of e.expr) yield* dr(t);
|
|
828
|
+
}
|
|
829
|
+
function* ur(e) {
|
|
830
|
+
return yield e.const;
|
|
831
|
+
}
|
|
832
|
+
function* dr(e) {
|
|
833
|
+
return e.type === "and" ? yield* cr(e) : e.type === "or" ? yield* lr(e) : e.type === "const" ? yield* ur(e) : (() => {
|
|
834
|
+
throw new or("Unknown expression");
|
|
835
|
+
})();
|
|
836
|
+
}
|
|
837
|
+
function fr(e) {
|
|
838
|
+
let t = $n(e.pattern);
|
|
839
|
+
return ir(t) ? [...dr(t)] : [];
|
|
840
|
+
}
|
|
841
|
+
//#endregion
|
|
842
|
+
//#region node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/literal/literal.mjs
|
|
843
|
+
function R(e, t) {
|
|
844
|
+
return m({
|
|
845
|
+
[g]: "Literal",
|
|
846
|
+
const: e,
|
|
847
|
+
type: typeof e
|
|
848
|
+
}, t);
|
|
849
|
+
}
|
|
850
|
+
//#endregion
|
|
851
|
+
//#region node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/boolean/boolean.mjs
|
|
852
|
+
function pr(e) {
|
|
853
|
+
return m({
|
|
854
|
+
[g]: "Boolean",
|
|
855
|
+
type: "boolean"
|
|
856
|
+
}, e);
|
|
857
|
+
}
|
|
858
|
+
//#endregion
|
|
859
|
+
//#region node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/bigint/bigint.mjs
|
|
860
|
+
function mr(e) {
|
|
861
|
+
return m({
|
|
862
|
+
[g]: "BigInt",
|
|
863
|
+
type: "bigint"
|
|
864
|
+
}, e);
|
|
865
|
+
}
|
|
866
|
+
//#endregion
|
|
867
|
+
//#region node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/number/number.mjs
|
|
868
|
+
function hr(e) {
|
|
869
|
+
return m({
|
|
870
|
+
[g]: "Number",
|
|
871
|
+
type: "number"
|
|
872
|
+
}, e);
|
|
873
|
+
}
|
|
874
|
+
//#endregion
|
|
875
|
+
//#region node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/string/string.mjs
|
|
876
|
+
function gr(e) {
|
|
877
|
+
return m({
|
|
878
|
+
[g]: "String",
|
|
879
|
+
type: "string"
|
|
880
|
+
}, e);
|
|
881
|
+
}
|
|
882
|
+
//#endregion
|
|
883
|
+
//#region node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/template-literal/syntax.mjs
|
|
884
|
+
function* _r(e) {
|
|
885
|
+
let t = e.trim().replace(/"|'/g, "");
|
|
886
|
+
return t === "boolean" ? yield pr() : t === "number" ? yield hr() : t === "bigint" ? yield mr() : t === "string" ? yield gr() : yield (() => {
|
|
887
|
+
let e = t.split("|").map((e) => R(e.trim()));
|
|
888
|
+
return e.length === 0 ? F() : e.length === 1 ? e[0] : zn(e);
|
|
889
|
+
})();
|
|
890
|
+
}
|
|
891
|
+
function* vr(e) {
|
|
892
|
+
if (e[1] !== "{") return yield* [R("$"), ...yr(e.slice(1))];
|
|
893
|
+
for (let t = 2; t < e.length; t++) if (e[t] === "}") {
|
|
894
|
+
let n = _r(e.slice(2, t)), r = yr(e.slice(t + 1));
|
|
895
|
+
return yield* [...n, ...r];
|
|
896
|
+
}
|
|
897
|
+
yield R(e);
|
|
898
|
+
}
|
|
899
|
+
function* yr(e) {
|
|
900
|
+
for (let t = 0; t < e.length; t++) if (e[t] === "$") return yield* [R(e.slice(0, t)), ...vr(e.slice(t))];
|
|
901
|
+
yield R(e);
|
|
902
|
+
}
|
|
903
|
+
function br(e) {
|
|
904
|
+
return [...yr(e)];
|
|
905
|
+
}
|
|
906
|
+
//#endregion
|
|
907
|
+
//#region node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/template-literal/pattern.mjs
|
|
908
|
+
var xr = class extends Ne {};
|
|
909
|
+
function Sr(e) {
|
|
910
|
+
return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
911
|
+
}
|
|
912
|
+
function Cr(e, t) {
|
|
913
|
+
return lt(e) ? e.pattern.slice(1, e.pattern.length - 1) : S(e) ? `(${e.anyOf.map((e) => Cr(e, t)).join("|")})` : rt(e) || Ye(e) || Ue(e) ? `${t}${hn}` : st(e) ? `${t}${gn}` : Qe(e) ? `${t}${Sr(e.const.toString())}` : We(e) ? `${t}${mn}` : (() => {
|
|
914
|
+
throw new xr(`Unexpected Kind '${e[g]}'`);
|
|
915
|
+
})();
|
|
916
|
+
}
|
|
917
|
+
function wr(e) {
|
|
918
|
+
return `^${e.map((e) => Cr(e, "")).join("")}\$`;
|
|
919
|
+
}
|
|
920
|
+
//#endregion
|
|
921
|
+
//#region node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/template-literal/union.mjs
|
|
922
|
+
function Tr(e) {
|
|
923
|
+
return zn(fr(e).map((e) => R(e)));
|
|
924
|
+
}
|
|
925
|
+
//#endregion
|
|
926
|
+
//#region node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/template-literal/template-literal.mjs
|
|
927
|
+
function Er(e, t) {
|
|
928
|
+
let n = d(e) ? wr(br(e)) : wr(e);
|
|
929
|
+
return m({
|
|
930
|
+
[g]: "TemplateLiteral",
|
|
931
|
+
type: "string",
|
|
932
|
+
pattern: n
|
|
933
|
+
}, t);
|
|
934
|
+
}
|
|
935
|
+
//#endregion
|
|
936
|
+
//#region node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/indexed/indexed-property-keys.mjs
|
|
937
|
+
function Dr(e) {
|
|
938
|
+
return fr(e).map((e) => e.toString());
|
|
939
|
+
}
|
|
940
|
+
function Or(e) {
|
|
941
|
+
let t = [];
|
|
942
|
+
for (let n of e) t.push(...Ar(n));
|
|
943
|
+
return t;
|
|
944
|
+
}
|
|
945
|
+
function kr(e) {
|
|
946
|
+
return [e.toString()];
|
|
947
|
+
}
|
|
948
|
+
function Ar(e) {
|
|
949
|
+
return [...new Set(lt(e) ? Dr(e) : S(e) ? Or(e.anyOf) : Qe(e) ? kr(e.const) : rt(e) || Ye(e) ? ["[number]"] : [])];
|
|
950
|
+
}
|
|
951
|
+
//#endregion
|
|
952
|
+
//#region node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/indexed/indexed-from-mapped-result.mjs
|
|
953
|
+
function jr(e, t, n) {
|
|
954
|
+
let r = {};
|
|
955
|
+
for (let i of Object.getOwnPropertyNames(t)) r[i] = Gr(e, Ar(t[i]), n);
|
|
956
|
+
return r;
|
|
957
|
+
}
|
|
958
|
+
function Mr(e, t, n) {
|
|
959
|
+
return jr(e, t.properties, n);
|
|
960
|
+
}
|
|
961
|
+
function Nr(e, t, n) {
|
|
962
|
+
return I(Mr(e, t, n));
|
|
963
|
+
}
|
|
964
|
+
//#endregion
|
|
965
|
+
//#region node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/indexed/indexed.mjs
|
|
966
|
+
function Pr(e, t) {
|
|
967
|
+
return e.map((e) => Hr(e, t));
|
|
968
|
+
}
|
|
969
|
+
function Fr(e) {
|
|
970
|
+
return e.filter((e) => !et(e));
|
|
971
|
+
}
|
|
972
|
+
function Ir(e, t) {
|
|
973
|
+
return ki(Fr(Pr(e, t)));
|
|
974
|
+
}
|
|
975
|
+
function Lr(e) {
|
|
976
|
+
return e.some((e) => et(e)) ? [] : e;
|
|
977
|
+
}
|
|
978
|
+
function Rr(e, t) {
|
|
979
|
+
return zn(Lr(Pr(e, t)));
|
|
980
|
+
}
|
|
981
|
+
function zr(e, t) {
|
|
982
|
+
return t in e ? e[t] : t === "[number]" ? zn(e) : F();
|
|
983
|
+
}
|
|
984
|
+
function Br(e, t) {
|
|
985
|
+
return t === "[number]" ? e : F();
|
|
986
|
+
}
|
|
987
|
+
function Vr(e, t) {
|
|
988
|
+
return t in e ? e[t] : F();
|
|
989
|
+
}
|
|
990
|
+
function Hr(e, t) {
|
|
991
|
+
return _(e) ? Ir(e.allOf, t) : S(e) ? Rr(e.anyOf, t) : ft(e) ? zr(e.items ?? [], t) : Ve(e) ? Br(e.items, t) : b(e) ? Vr(e.properties, t) : F();
|
|
992
|
+
}
|
|
993
|
+
function Ur(e, t) {
|
|
994
|
+
return t.map((t) => Hr(e, t));
|
|
995
|
+
}
|
|
996
|
+
function Wr(e, t) {
|
|
997
|
+
return zn(Ur(e, t));
|
|
998
|
+
}
|
|
999
|
+
function Gr(e, t, n) {
|
|
1000
|
+
if (x(e) || x(t)) {
|
|
1001
|
+
if (!yt(e) || !yt(t)) throw new Ne("Index types using Ref parameters require both Type and Key to be of TSchema");
|
|
1002
|
+
return N("Index", [e, t]);
|
|
1003
|
+
}
|
|
1004
|
+
return y(t) ? Nr(e, t, n) : $e(t) ? Yr(e, t, n) : m(yt(t) ? Wr(e, Ar(t)) : Wr(e, t), n);
|
|
1005
|
+
}
|
|
1006
|
+
//#endregion
|
|
1007
|
+
//#region node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/indexed/indexed-from-mapped-key.mjs
|
|
1008
|
+
function Kr(e, t, n) {
|
|
1009
|
+
return { [t]: Gr(e, [t], p(n)) };
|
|
1010
|
+
}
|
|
1011
|
+
function qr(e, t, n) {
|
|
1012
|
+
return t.reduce((t, r) => ({
|
|
1013
|
+
...t,
|
|
1014
|
+
...Kr(e, r, n)
|
|
1015
|
+
}), {});
|
|
1016
|
+
}
|
|
1017
|
+
function Jr(e, t, n) {
|
|
1018
|
+
return qr(e, t.keys, n);
|
|
1019
|
+
}
|
|
1020
|
+
function Yr(e, t, n) {
|
|
1021
|
+
return I(Jr(e, t, n));
|
|
1022
|
+
}
|
|
1023
|
+
//#endregion
|
|
1024
|
+
//#region node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/iterator/iterator.mjs
|
|
1025
|
+
function Xr(e, t) {
|
|
1026
|
+
return m({
|
|
1027
|
+
[g]: "Iterator",
|
|
1028
|
+
type: "Iterator",
|
|
1029
|
+
items: e
|
|
1030
|
+
}, t);
|
|
1031
|
+
}
|
|
1032
|
+
//#endregion
|
|
1033
|
+
//#region node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/object/object.mjs
|
|
1034
|
+
function Zr(e) {
|
|
1035
|
+
return globalThis.Object.keys(e).filter((t) => !Re(e[t]));
|
|
1036
|
+
}
|
|
1037
|
+
function Qr(e, t) {
|
|
1038
|
+
let n = Zr(e);
|
|
1039
|
+
return m(n.length > 0 ? {
|
|
1040
|
+
[g]: "Object",
|
|
1041
|
+
type: "object",
|
|
1042
|
+
required: n,
|
|
1043
|
+
properties: e
|
|
1044
|
+
} : {
|
|
1045
|
+
[g]: "Object",
|
|
1046
|
+
type: "object",
|
|
1047
|
+
properties: e
|
|
1048
|
+
}, t);
|
|
1049
|
+
}
|
|
1050
|
+
var z = Qr;
|
|
1051
|
+
//#endregion
|
|
1052
|
+
//#region node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/promise/promise.mjs
|
|
1053
|
+
function $r(e, t) {
|
|
1054
|
+
return m({
|
|
1055
|
+
[g]: "Promise",
|
|
1056
|
+
type: "Promise",
|
|
1057
|
+
item: e
|
|
1058
|
+
}, t);
|
|
1059
|
+
}
|
|
1060
|
+
//#endregion
|
|
1061
|
+
//#region node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/readonly/readonly.mjs
|
|
1062
|
+
function ei(e) {
|
|
1063
|
+
return m(P(e, [Pe]));
|
|
1064
|
+
}
|
|
1065
|
+
function ti(e) {
|
|
1066
|
+
return m({
|
|
1067
|
+
...e,
|
|
1068
|
+
[Pe]: "Readonly"
|
|
1069
|
+
});
|
|
1070
|
+
}
|
|
1071
|
+
function ni(e, t) {
|
|
1072
|
+
return t === !1 ? ei(e) : ti(e);
|
|
1073
|
+
}
|
|
1074
|
+
function ri(e, t) {
|
|
1075
|
+
let n = t ?? !0;
|
|
1076
|
+
return y(e) ? oi(e, n) : ni(e, n);
|
|
1077
|
+
}
|
|
1078
|
+
//#endregion
|
|
1079
|
+
//#region node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/readonly/readonly-from-mapped-result.mjs
|
|
1080
|
+
function ii(e, t) {
|
|
1081
|
+
let n = {};
|
|
1082
|
+
for (let r of globalThis.Object.getOwnPropertyNames(e)) n[r] = ri(e[r], t);
|
|
1083
|
+
return n;
|
|
1084
|
+
}
|
|
1085
|
+
function ai(e, t) {
|
|
1086
|
+
return ii(e.properties, t);
|
|
1087
|
+
}
|
|
1088
|
+
function oi(e, t) {
|
|
1089
|
+
return I(ai(e, t));
|
|
1090
|
+
}
|
|
1091
|
+
//#endregion
|
|
1092
|
+
//#region node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/tuple/tuple.mjs
|
|
1093
|
+
function si(e, t) {
|
|
1094
|
+
return m(e.length > 0 ? {
|
|
1095
|
+
[g]: "Tuple",
|
|
1096
|
+
type: "array",
|
|
1097
|
+
items: e,
|
|
1098
|
+
additionalItems: !1,
|
|
1099
|
+
minItems: e.length,
|
|
1100
|
+
maxItems: e.length
|
|
1101
|
+
} : {
|
|
1102
|
+
[g]: "Tuple",
|
|
1103
|
+
type: "array",
|
|
1104
|
+
minItems: e.length,
|
|
1105
|
+
maxItems: e.length
|
|
1106
|
+
}, t);
|
|
1107
|
+
}
|
|
1108
|
+
//#endregion
|
|
1109
|
+
//#region node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/mapped/mapped.mjs
|
|
1110
|
+
function ci(e, t) {
|
|
1111
|
+
return e in t ? B(e, t[e]) : I(t);
|
|
1112
|
+
}
|
|
1113
|
+
function li(e) {
|
|
1114
|
+
return { [e]: R(e) };
|
|
1115
|
+
}
|
|
1116
|
+
function ui(e) {
|
|
1117
|
+
let t = {};
|
|
1118
|
+
for (let n of e) t[n] = R(n);
|
|
1119
|
+
return t;
|
|
1120
|
+
}
|
|
1121
|
+
function di(e, t) {
|
|
1122
|
+
return xn(t, e) ? li(e) : ui(t);
|
|
1123
|
+
}
|
|
1124
|
+
function fi(e, t) {
|
|
1125
|
+
return ci(e, di(e, t));
|
|
1126
|
+
}
|
|
1127
|
+
function pi(e, t) {
|
|
1128
|
+
return t.map((t) => B(e, t));
|
|
1129
|
+
}
|
|
1130
|
+
function mi(e, t) {
|
|
1131
|
+
let n = {};
|
|
1132
|
+
for (let r of globalThis.Object.getOwnPropertyNames(t)) n[r] = B(e, t[r]);
|
|
1133
|
+
return n;
|
|
1134
|
+
}
|
|
1135
|
+
function B(e, t) {
|
|
1136
|
+
let n = { ...t };
|
|
1137
|
+
return Re(t) ? bi(B(e, P(t, [Fe]))) : Le(t) ? ri(B(e, P(t, [Pe]))) : y(t) ? ci(e, t.properties) : $e(t) ? fi(e, t.keys) : Ke(t) ? Mn(pi(e, t.parameters), B(e, t.returns), n) : Je(t) ? Nn(pi(e, t.parameters), B(e, t.returns), n) : He(t) ? An(B(e, t.items), n) : Xe(t) ? Xr(B(e, t.items), n) : _(t) ? Ai(pi(e, t.allOf), n) : S(t) ? L(pi(e, t.anyOf), n) : ft(t) ? si(pi(e, t.items ?? []), n) : b(t) ? z(mi(e, t.properties), n) : Ve(t) ? On(B(e, t.items), n) : it(t) ? $r(B(e, t.item), n) : t;
|
|
1138
|
+
}
|
|
1139
|
+
function hi(e, t) {
|
|
1140
|
+
let n = {};
|
|
1141
|
+
for (let r of e) n[r] = B(r, t);
|
|
1142
|
+
return n;
|
|
1143
|
+
}
|
|
1144
|
+
function gi(e, t, n) {
|
|
1145
|
+
let r = yt(e) ? Ar(e) : e;
|
|
1146
|
+
return z(hi(r, t({
|
|
1147
|
+
[g]: "MappedKey",
|
|
1148
|
+
keys: r
|
|
1149
|
+
})), n);
|
|
1150
|
+
}
|
|
1151
|
+
//#endregion
|
|
1152
|
+
//#region node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/optional/optional.mjs
|
|
1153
|
+
function _i(e) {
|
|
1154
|
+
return m(P(e, [Fe]));
|
|
1155
|
+
}
|
|
1156
|
+
function vi(e) {
|
|
1157
|
+
return m({
|
|
1158
|
+
...e,
|
|
1159
|
+
[Fe]: "Optional"
|
|
1160
|
+
});
|
|
1161
|
+
}
|
|
1162
|
+
function yi(e, t) {
|
|
1163
|
+
return t === !1 ? _i(e) : vi(e);
|
|
1164
|
+
}
|
|
1165
|
+
function bi(e, t) {
|
|
1166
|
+
let n = t ?? !0;
|
|
1167
|
+
return y(e) ? Ci(e, n) : yi(e, n);
|
|
1168
|
+
}
|
|
1169
|
+
//#endregion
|
|
1170
|
+
//#region node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/optional/optional-from-mapped-result.mjs
|
|
1171
|
+
function xi(e, t) {
|
|
1172
|
+
let n = {};
|
|
1173
|
+
for (let r of globalThis.Object.getOwnPropertyNames(e)) n[r] = bi(e[r], t);
|
|
1174
|
+
return n;
|
|
1175
|
+
}
|
|
1176
|
+
function Si(e, t) {
|
|
1177
|
+
return xi(e.properties, t);
|
|
1178
|
+
}
|
|
1179
|
+
function Ci(e, t) {
|
|
1180
|
+
return I(Si(e, t));
|
|
1181
|
+
}
|
|
1182
|
+
//#endregion
|
|
1183
|
+
//#region node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/intersect/intersect-create.mjs
|
|
1184
|
+
function wi(e, t = {}) {
|
|
1185
|
+
let n = e.every((e) => b(e)), r = yt(t.unevaluatedProperties) ? { unevaluatedProperties: t.unevaluatedProperties } : {};
|
|
1186
|
+
return m(t.unevaluatedProperties === !1 || yt(t.unevaluatedProperties) || n ? {
|
|
1187
|
+
...r,
|
|
1188
|
+
[g]: "Intersect",
|
|
1189
|
+
type: "object",
|
|
1190
|
+
allOf: e
|
|
1191
|
+
} : {
|
|
1192
|
+
...r,
|
|
1193
|
+
[g]: "Intersect",
|
|
1194
|
+
allOf: e
|
|
1195
|
+
}, t);
|
|
1196
|
+
}
|
|
1197
|
+
//#endregion
|
|
1198
|
+
//#region node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/intersect/intersect-evaluated.mjs
|
|
1199
|
+
function Ti(e) {
|
|
1200
|
+
return e.every((e) => Re(e));
|
|
1201
|
+
}
|
|
1202
|
+
function Ei(e) {
|
|
1203
|
+
return P(e, [Fe]);
|
|
1204
|
+
}
|
|
1205
|
+
function Di(e) {
|
|
1206
|
+
return e.map((e) => Re(e) ? Ei(e) : e);
|
|
1207
|
+
}
|
|
1208
|
+
function Oi(e, t) {
|
|
1209
|
+
return Ti(e) ? bi(wi(Di(e), t)) : wi(Di(e), t);
|
|
1210
|
+
}
|
|
1211
|
+
function ki(e, t = {}) {
|
|
1212
|
+
if (e.length === 1) return m(e[0], t);
|
|
1213
|
+
if (e.length === 0) return F(t);
|
|
1214
|
+
if (e.some((e) => dt(e))) throw Error("Cannot intersect transform types");
|
|
1215
|
+
return Oi(e, t);
|
|
1216
|
+
}
|
|
1217
|
+
//#endregion
|
|
1218
|
+
//#region node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/intersect/intersect.mjs
|
|
1219
|
+
function Ai(e, t) {
|
|
1220
|
+
if (e.length === 1) return m(e[0], t);
|
|
1221
|
+
if (e.length === 0) return F(t);
|
|
1222
|
+
if (e.some((e) => dt(e))) throw Error("Cannot intersect transform types");
|
|
1223
|
+
return wi(e, t);
|
|
1224
|
+
}
|
|
1225
|
+
//#endregion
|
|
1226
|
+
//#region node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/ref/ref.mjs
|
|
1227
|
+
function ji(...e) {
|
|
1228
|
+
let [t, n] = typeof e[0] == "string" ? [e[0], e[1]] : [e[0].$id, e[1]];
|
|
1229
|
+
if (typeof t != "string") throw new Ne("Ref: $ref must be a string");
|
|
1230
|
+
return m({
|
|
1231
|
+
[g]: "Ref",
|
|
1232
|
+
$ref: t
|
|
1233
|
+
}, n);
|
|
1234
|
+
}
|
|
1235
|
+
//#endregion
|
|
1236
|
+
//#region node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/awaited/awaited.mjs
|
|
1237
|
+
function Mi(e, t) {
|
|
1238
|
+
return N("Awaited", [N(e, t)]);
|
|
1239
|
+
}
|
|
1240
|
+
function Ni(e) {
|
|
1241
|
+
return N("Awaited", [ji(e)]);
|
|
1242
|
+
}
|
|
1243
|
+
function Pi(e) {
|
|
1244
|
+
return Ai(Li(e));
|
|
1245
|
+
}
|
|
1246
|
+
function Fi(e) {
|
|
1247
|
+
return L(Li(e));
|
|
1248
|
+
}
|
|
1249
|
+
function Ii(e) {
|
|
1250
|
+
return Ri(e);
|
|
1251
|
+
}
|
|
1252
|
+
function Li(e) {
|
|
1253
|
+
return e.map((e) => Ri(e));
|
|
1254
|
+
}
|
|
1255
|
+
function Ri(e, t) {
|
|
1256
|
+
return m(Ge(e) ? Mi(e.target, e.parameters) : _(e) ? Pi(e.allOf) : S(e) ? Fi(e.anyOf) : it(e) ? Ii(e.item) : x(e) ? Ni(e.$ref) : e, t);
|
|
1257
|
+
}
|
|
1258
|
+
//#endregion
|
|
1259
|
+
//#region node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/keyof/keyof-property-keys.mjs
|
|
1260
|
+
function zi(e) {
|
|
1261
|
+
let t = [];
|
|
1262
|
+
for (let n of e) t.push(Ki(n));
|
|
1263
|
+
return t;
|
|
1264
|
+
}
|
|
1265
|
+
function Bi(e) {
|
|
1266
|
+
return En(zi(e));
|
|
1267
|
+
}
|
|
1268
|
+
function Vi(e) {
|
|
1269
|
+
return Tn(zi(e));
|
|
1270
|
+
}
|
|
1271
|
+
function Hi(e) {
|
|
1272
|
+
return e.map((e, t) => t.toString());
|
|
1273
|
+
}
|
|
1274
|
+
function Ui(e) {
|
|
1275
|
+
return ["[number]"];
|
|
1276
|
+
}
|
|
1277
|
+
function Wi(e) {
|
|
1278
|
+
return globalThis.Object.getOwnPropertyNames(e);
|
|
1279
|
+
}
|
|
1280
|
+
function Gi(e) {
|
|
1281
|
+
return qi ? globalThis.Object.getOwnPropertyNames(e).map((e) => e[0] === "^" && e[e.length - 1] === "$" ? e.slice(1, e.length - 1) : e) : [];
|
|
1282
|
+
}
|
|
1283
|
+
function Ki(e) {
|
|
1284
|
+
return _(e) ? Bi(e.allOf) : S(e) ? Vi(e.anyOf) : ft(e) ? Hi(e.items ?? []) : Ve(e) ? Ui(e.items) : b(e) ? Wi(e.properties) : at(e) ? Gi(e.patternProperties) : [];
|
|
1285
|
+
}
|
|
1286
|
+
var qi = !1;
|
|
1287
|
+
//#endregion
|
|
1288
|
+
//#region node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/keyof/keyof.mjs
|
|
1289
|
+
function Ji(e, t) {
|
|
1290
|
+
return N("KeyOf", [N(e, t)]);
|
|
1291
|
+
}
|
|
1292
|
+
function Yi(e) {
|
|
1293
|
+
return N("KeyOf", [ji(e)]);
|
|
1294
|
+
}
|
|
1295
|
+
function Xi(e, t) {
|
|
1296
|
+
return m(zn(Zi(Ki(e))), t);
|
|
1297
|
+
}
|
|
1298
|
+
function Zi(e) {
|
|
1299
|
+
return e.map((e) => e === "[number]" ? hr() : R(e));
|
|
1300
|
+
}
|
|
1301
|
+
function Qi(e, t) {
|
|
1302
|
+
return Ge(e) ? Ji(e.target, e.parameters) : x(e) ? Yi(e.$ref) : y(e) ? ta(e, t) : Xi(e, t);
|
|
1303
|
+
}
|
|
1304
|
+
//#endregion
|
|
1305
|
+
//#region node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/keyof/keyof-from-mapped-result.mjs
|
|
1306
|
+
function $i(e, t) {
|
|
1307
|
+
let n = {};
|
|
1308
|
+
for (let r of globalThis.Object.getOwnPropertyNames(e)) n[r] = Qi(e[r], p(t));
|
|
1309
|
+
return n;
|
|
1310
|
+
}
|
|
1311
|
+
function ea(e, t) {
|
|
1312
|
+
return $i(e.properties, t);
|
|
1313
|
+
}
|
|
1314
|
+
function ta(e, t) {
|
|
1315
|
+
return I(ea(e, t));
|
|
1316
|
+
}
|
|
1317
|
+
//#endregion
|
|
1318
|
+
//#region node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/composite/composite.mjs
|
|
1319
|
+
function na(e) {
|
|
1320
|
+
let t = [];
|
|
1321
|
+
for (let n of e) t.push(...Ki(n));
|
|
1322
|
+
return Sn(t);
|
|
1323
|
+
}
|
|
1324
|
+
function ra(e) {
|
|
1325
|
+
return e.filter((e) => !et(e));
|
|
1326
|
+
}
|
|
1327
|
+
function ia(e, t) {
|
|
1328
|
+
let n = [];
|
|
1329
|
+
for (let r of e) n.push(...Ur(r, [t]));
|
|
1330
|
+
return ra(n);
|
|
1331
|
+
}
|
|
1332
|
+
function aa(e, t) {
|
|
1333
|
+
let n = {};
|
|
1334
|
+
for (let r of t) n[r] = ki(ia(e, r));
|
|
1335
|
+
return n;
|
|
1336
|
+
}
|
|
1337
|
+
function oa(e, t) {
|
|
1338
|
+
return z(aa(e, na(e)), t);
|
|
1339
|
+
}
|
|
1340
|
+
//#endregion
|
|
1341
|
+
//#region node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/date/date.mjs
|
|
1342
|
+
function sa(e) {
|
|
1343
|
+
return m({
|
|
1344
|
+
[g]: "Date",
|
|
1345
|
+
type: "Date"
|
|
1346
|
+
}, e);
|
|
1347
|
+
}
|
|
1348
|
+
//#endregion
|
|
1349
|
+
//#region node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/null/null.mjs
|
|
1350
|
+
function ca(e) {
|
|
1351
|
+
return m({
|
|
1352
|
+
[g]: "Null",
|
|
1353
|
+
type: "null"
|
|
1354
|
+
}, e);
|
|
1355
|
+
}
|
|
1356
|
+
//#endregion
|
|
1357
|
+
//#region node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/symbol/symbol.mjs
|
|
1358
|
+
function la(e) {
|
|
1359
|
+
return m({
|
|
1360
|
+
[g]: "Symbol",
|
|
1361
|
+
type: "symbol"
|
|
1362
|
+
}, e);
|
|
1363
|
+
}
|
|
1364
|
+
//#endregion
|
|
1365
|
+
//#region node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/undefined/undefined.mjs
|
|
1366
|
+
function ua(e) {
|
|
1367
|
+
return m({
|
|
1368
|
+
[g]: "Undefined",
|
|
1369
|
+
type: "undefined"
|
|
1370
|
+
}, e);
|
|
1371
|
+
}
|
|
1372
|
+
//#endregion
|
|
1373
|
+
//#region node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/uint8array/uint8array.mjs
|
|
1374
|
+
function da(e) {
|
|
1375
|
+
return m({
|
|
1376
|
+
[g]: "Uint8Array",
|
|
1377
|
+
type: "Uint8Array"
|
|
1378
|
+
}, e);
|
|
1379
|
+
}
|
|
1380
|
+
//#endregion
|
|
1381
|
+
//#region node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/unknown/unknown.mjs
|
|
1382
|
+
function fa(e) {
|
|
1383
|
+
return m({ [g]: "Unknown" }, e);
|
|
1384
|
+
}
|
|
1385
|
+
//#endregion
|
|
1386
|
+
//#region node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/const/const.mjs
|
|
1387
|
+
function pa(e) {
|
|
1388
|
+
return e.map((e) => ga(e, !1));
|
|
1389
|
+
}
|
|
1390
|
+
function ma(e) {
|
|
1391
|
+
let t = {};
|
|
1392
|
+
for (let n of globalThis.Object.getOwnPropertyNames(e)) t[n] = ri(ga(e[n], !1));
|
|
1393
|
+
return t;
|
|
1394
|
+
}
|
|
1395
|
+
function ha(e, t) {
|
|
1396
|
+
return t === !0 ? e : ri(e);
|
|
1397
|
+
}
|
|
1398
|
+
function ga(e, t) {
|
|
1399
|
+
return ie(e) || le(e) ? ha(Dn(), t) : l(e) ? ri(si(pa(e))) : me(e) ? da() : se(e) ? sa() : u(e) ? ha(z(ma(e)), t) : ce(e) ? ha(Nn([], fa()), t) : f(e) ? ua() : ue(e) ? ca() : pe(e) ? la() : ae(e) ? mr() : de(e) || oe(e) || d(e) ? R(e) : z({});
|
|
1400
|
+
}
|
|
1401
|
+
function _a(e, t) {
|
|
1402
|
+
return m(ga(e, !0), t);
|
|
1403
|
+
}
|
|
1404
|
+
//#endregion
|
|
1405
|
+
//#region node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/constructor-parameters/constructor-parameters.mjs
|
|
1406
|
+
function va(e, t) {
|
|
1407
|
+
return Ke(e) ? si(e.parameters, t) : F(t);
|
|
1408
|
+
}
|
|
1409
|
+
//#endregion
|
|
1410
|
+
//#region node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/enum/enum.mjs
|
|
1411
|
+
function ya(e, t) {
|
|
1412
|
+
if (f(e)) throw Error("Enum undefined or empty");
|
|
1413
|
+
let n = globalThis.Object.getOwnPropertyNames(e).filter((e) => isNaN(e)).map((t) => e[t]);
|
|
1414
|
+
return L([...new Set(n)].map((e) => R(e)), {
|
|
1415
|
+
...t,
|
|
1416
|
+
[Ie]: "Enum"
|
|
1417
|
+
});
|
|
1418
|
+
}
|
|
1419
|
+
//#endregion
|
|
1420
|
+
//#region node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/extends/extends-check.mjs
|
|
1421
|
+
var ba = class extends Ne {}, V;
|
|
1422
|
+
(function(e) {
|
|
1423
|
+
e[e.Union = 0] = "Union", e[e.True = 1] = "True", e[e.False = 2] = "False";
|
|
1424
|
+
})(V ||= {});
|
|
1425
|
+
function H(e) {
|
|
1426
|
+
return e === V.False ? e : V.True;
|
|
1427
|
+
}
|
|
1428
|
+
function xa(e) {
|
|
1429
|
+
throw new ba(e);
|
|
1430
|
+
}
|
|
1431
|
+
function U(e) {
|
|
1432
|
+
return Xt(e) || Vt(e) || ln(e) || j(e) || T(e);
|
|
1433
|
+
}
|
|
1434
|
+
function W(e, t) {
|
|
1435
|
+
return Xt(t) ? za(e, t) : Vt(t) ? Fa(e, t) : ln(t) ? bo(e, t) : j(t) ? So(e, t) : T(t) ? Sa(e, t) : xa("StructuralRight");
|
|
1436
|
+
}
|
|
1437
|
+
function Sa(e, t) {
|
|
1438
|
+
return V.True;
|
|
1439
|
+
}
|
|
1440
|
+
function Ca(e, t) {
|
|
1441
|
+
return Vt(t) ? Fa(e, t) : ln(t) && t.anyOf.some((e) => T(e) || j(e)) ? V.True : ln(t) ? V.Union : j(t) || T(t) ? V.True : V.Union;
|
|
1442
|
+
}
|
|
1443
|
+
function wa(e, t) {
|
|
1444
|
+
return j(e) ? V.False : T(e) ? V.Union : Xt(e) ? V.True : V.False;
|
|
1445
|
+
}
|
|
1446
|
+
function Ta(e, t) {
|
|
1447
|
+
return O(t) && to(t) ? V.True : U(t) ? W(e, t) : jt(t) ? H(J(e.items, t.items)) : V.False;
|
|
1448
|
+
}
|
|
1449
|
+
function Ea(e, t) {
|
|
1450
|
+
return U(t) ? W(e, t) : Mt(t) ? H(J(e.items, t.items)) : V.False;
|
|
1451
|
+
}
|
|
1452
|
+
function Da(e, t) {
|
|
1453
|
+
return U(t) ? W(e, t) : O(t) ? K(e, t) : k(t) ? q(e, t) : Nt(t) ? V.True : V.False;
|
|
1454
|
+
}
|
|
1455
|
+
function Oa(e, t) {
|
|
1456
|
+
return Gt(e) || Pt(e) ? V.True : V.False;
|
|
1457
|
+
}
|
|
1458
|
+
function ka(e, t) {
|
|
1459
|
+
return U(t) ? W(e, t) : O(t) ? K(e, t) : k(t) ? q(e, t) : Pt(t) ? V.True : V.False;
|
|
1460
|
+
}
|
|
1461
|
+
function Aa(e, t) {
|
|
1462
|
+
return U(t) ? W(e, t) : O(t) ? K(e, t) : It(t) ? e.parameters.length > t.parameters.length ? V.False : e.parameters.every((e, n) => H(J(t.parameters[n], e)) === V.True) ? H(J(e.returns, t.returns)) : V.False : V.False;
|
|
1463
|
+
}
|
|
1464
|
+
function ja(e, t) {
|
|
1465
|
+
return U(t) ? W(e, t) : O(t) ? K(e, t) : k(t) ? q(e, t) : Lt(t) ? V.True : V.False;
|
|
1466
|
+
}
|
|
1467
|
+
function Ma(e, t) {
|
|
1468
|
+
return U(t) ? W(e, t) : O(t) ? K(e, t) : Rt(t) ? e.parameters.length > t.parameters.length ? V.False : e.parameters.every((e, n) => H(J(t.parameters[n], e)) === V.True) ? H(J(e.returns, t.returns)) : V.False : V.False;
|
|
1469
|
+
}
|
|
1470
|
+
function Na(e, t) {
|
|
1471
|
+
return Kt(e) && de(e.const) || D(e) || zt(e) ? V.True : V.False;
|
|
1472
|
+
}
|
|
1473
|
+
function Pa(e, t) {
|
|
1474
|
+
return zt(t) || D(t) ? V.True : U(t) ? W(e, t) : O(t) ? K(e, t) : k(t) ? q(e, t) : V.False;
|
|
1475
|
+
}
|
|
1476
|
+
function Fa(e, t) {
|
|
1477
|
+
return t.allOf.every((t) => J(e, t) === V.True) ? V.True : V.False;
|
|
1478
|
+
}
|
|
1479
|
+
function Ia(e, t) {
|
|
1480
|
+
return e.allOf.some((e) => J(e, t) === V.True) ? V.True : V.False;
|
|
1481
|
+
}
|
|
1482
|
+
function La(e, t) {
|
|
1483
|
+
return U(t) ? W(e, t) : Ht(t) ? H(J(e.items, t.items)) : V.False;
|
|
1484
|
+
}
|
|
1485
|
+
function Ra(e, t) {
|
|
1486
|
+
return Kt(t) && t.const === e.const ? V.True : U(t) ? W(e, t) : O(t) ? K(e, t) : k(t) ? q(e, t) : A(t) ? uo(e, t) : D(t) ? Wa(e, t) : zt(t) ? Na(e, t) : Pt(t) ? Oa(e, t) : V.False;
|
|
1487
|
+
}
|
|
1488
|
+
function za(e, t) {
|
|
1489
|
+
return V.False;
|
|
1490
|
+
}
|
|
1491
|
+
function Ba(e, t) {
|
|
1492
|
+
return V.True;
|
|
1493
|
+
}
|
|
1494
|
+
function Va(e) {
|
|
1495
|
+
let [t, n] = [e, 0];
|
|
1496
|
+
for (; Zt(t);) t = t.not, n += 1;
|
|
1497
|
+
return n % 2 == 0 ? t : fa();
|
|
1498
|
+
}
|
|
1499
|
+
function Ha(e, t) {
|
|
1500
|
+
return Zt(e) ? J(Va(e), t) : Zt(t) ? J(e, Va(t)) : xa("Invalid fallthrough for Not");
|
|
1501
|
+
}
|
|
1502
|
+
function Ua(e, t) {
|
|
1503
|
+
return U(t) ? W(e, t) : O(t) ? K(e, t) : k(t) ? q(e, t) : Qt(t) ? V.True : V.False;
|
|
1504
|
+
}
|
|
1505
|
+
function Wa(e, t) {
|
|
1506
|
+
return Wt(e) || D(e) || zt(e) ? V.True : V.False;
|
|
1507
|
+
}
|
|
1508
|
+
function Ga(e, t) {
|
|
1509
|
+
return U(t) ? W(e, t) : O(t) ? K(e, t) : k(t) ? q(e, t) : zt(t) || D(t) ? V.True : V.False;
|
|
1510
|
+
}
|
|
1511
|
+
function G(e, t) {
|
|
1512
|
+
return Object.getOwnPropertyNames(e.properties).length === t;
|
|
1513
|
+
}
|
|
1514
|
+
function Ka(e) {
|
|
1515
|
+
return to(e);
|
|
1516
|
+
}
|
|
1517
|
+
function qa(e) {
|
|
1518
|
+
return G(e, 0) || G(e, 1) && "description" in e.properties && ln(e.properties.description) && e.properties.description.anyOf.length === 2 && (A(e.properties.description.anyOf[0]) && cn(e.properties.description.anyOf[1]) || A(e.properties.description.anyOf[1]) && cn(e.properties.description.anyOf[0]));
|
|
1519
|
+
}
|
|
1520
|
+
function Ja(e) {
|
|
1521
|
+
return G(e, 0);
|
|
1522
|
+
}
|
|
1523
|
+
function Ya(e) {
|
|
1524
|
+
return G(e, 0);
|
|
1525
|
+
}
|
|
1526
|
+
function Xa(e) {
|
|
1527
|
+
return G(e, 0);
|
|
1528
|
+
}
|
|
1529
|
+
function Za(e) {
|
|
1530
|
+
return G(e, 0);
|
|
1531
|
+
}
|
|
1532
|
+
function Qa(e) {
|
|
1533
|
+
return to(e);
|
|
1534
|
+
}
|
|
1535
|
+
function $a(e) {
|
|
1536
|
+
let t = hr();
|
|
1537
|
+
return G(e, 0) || G(e, 1) && "length" in e.properties && H(J(e.properties.length, t)) === V.True;
|
|
1538
|
+
}
|
|
1539
|
+
function eo(e) {
|
|
1540
|
+
return G(e, 0);
|
|
1541
|
+
}
|
|
1542
|
+
function to(e) {
|
|
1543
|
+
let t = hr();
|
|
1544
|
+
return G(e, 0) || G(e, 1) && "length" in e.properties && H(J(e.properties.length, t)) === V.True;
|
|
1545
|
+
}
|
|
1546
|
+
function no(e) {
|
|
1547
|
+
let t = Nn([Dn()], Dn());
|
|
1548
|
+
return G(e, 0) || G(e, 1) && "then" in e.properties && H(J(e.properties.then, t)) === V.True;
|
|
1549
|
+
}
|
|
1550
|
+
function ro(e, t) {
|
|
1551
|
+
return J(e, t) === V.False || kt(e) && !kt(t) ? V.False : V.True;
|
|
1552
|
+
}
|
|
1553
|
+
function K(e, t) {
|
|
1554
|
+
return j(e) ? V.False : T(e) ? V.Union : Xt(e) || Ut(e) && Ka(t) || Wt(e) && Ja(t) || Gt(e) && Ya(t) || nn(e) && qa(t) || Nt(e) && Xa(t) || A(e) && Ka(t) || nn(e) && qa(t) || D(e) && Ja(t) || zt(e) && Ja(t) || Pt(e) && Ya(t) || un(e) && Qa(t) || Lt(e) && Za(t) || It(e) && eo(t) || Rt(e) && $a(t) ? V.True : k(e) && A(oo(e)) ? t[Ie] === "Record" ? V.True : V.False : k(e) && D(oo(e)) && G(t, 0) ? V.True : V.False;
|
|
1555
|
+
}
|
|
1556
|
+
function io(e, t) {
|
|
1557
|
+
return U(t) ? W(e, t) : k(t) ? q(e, t) : O(t) ? (() => {
|
|
1558
|
+
for (let n of Object.getOwnPropertyNames(t.properties)) {
|
|
1559
|
+
if (!(n in e.properties) && !kt(t.properties[n])) return V.False;
|
|
1560
|
+
if (kt(t.properties[n])) return V.True;
|
|
1561
|
+
if (ro(e.properties[n], t.properties[n]) === V.False) return V.False;
|
|
1562
|
+
}
|
|
1563
|
+
return V.True;
|
|
1564
|
+
})() : V.False;
|
|
1565
|
+
}
|
|
1566
|
+
function ao(e, t) {
|
|
1567
|
+
return U(t) ? W(e, t) : O(t) && no(t) ? V.True : $t(t) ? H(J(e.item, t.item)) : V.False;
|
|
1568
|
+
}
|
|
1569
|
+
function oo(e) {
|
|
1570
|
+
return vn in e.patternProperties ? hr() : yn in e.patternProperties ? gr() : xa("Unknown record key pattern");
|
|
1571
|
+
}
|
|
1572
|
+
function so(e) {
|
|
1573
|
+
return vn in e.patternProperties ? e.patternProperties[vn] : yn in e.patternProperties ? e.patternProperties[yn] : xa("Unable to get record value schema");
|
|
1574
|
+
}
|
|
1575
|
+
function q(e, t) {
|
|
1576
|
+
let [n, r] = [oo(t), so(t)];
|
|
1577
|
+
return Ut(e) && D(n) && H(J(e, r)) === V.True ? V.True : un(e) && D(n) || A(e) && D(n) || jt(e) && D(n) ? J(e, r) : O(e) ? (() => {
|
|
1578
|
+
for (let t of Object.getOwnPropertyNames(e.properties)) if (ro(r, e.properties[t]) === V.False) return V.False;
|
|
1579
|
+
return V.True;
|
|
1580
|
+
})() : V.False;
|
|
1581
|
+
}
|
|
1582
|
+
function co(e, t) {
|
|
1583
|
+
return U(t) ? W(e, t) : O(t) ? K(e, t) : k(t) ? J(so(e), so(t)) : V.False;
|
|
1584
|
+
}
|
|
1585
|
+
function lo(e, t) {
|
|
1586
|
+
return J(tn(e) ? gr() : e, tn(t) ? gr() : t);
|
|
1587
|
+
}
|
|
1588
|
+
function uo(e, t) {
|
|
1589
|
+
return Kt(e) && d(e.const) || A(e) ? V.True : V.False;
|
|
1590
|
+
}
|
|
1591
|
+
function fo(e, t) {
|
|
1592
|
+
return U(t) ? W(e, t) : O(t) ? K(e, t) : k(t) ? q(e, t) : A(t) ? V.True : V.False;
|
|
1593
|
+
}
|
|
1594
|
+
function po(e, t) {
|
|
1595
|
+
return U(t) ? W(e, t) : O(t) ? K(e, t) : k(t) ? q(e, t) : nn(t) ? V.True : V.False;
|
|
1596
|
+
}
|
|
1597
|
+
function mo(e, t) {
|
|
1598
|
+
return rn(e) ? J(Tr(e), t) : rn(t) ? J(e, Tr(t)) : xa("Invalid fallthrough for TemplateLiteral");
|
|
1599
|
+
}
|
|
1600
|
+
function ho(e, t) {
|
|
1601
|
+
return jt(t) && e.items !== void 0 && e.items.every((e) => J(e, t.items) === V.True);
|
|
1602
|
+
}
|
|
1603
|
+
function go(e, t) {
|
|
1604
|
+
return Xt(e) ? V.True : j(e) ? V.False : T(e) ? V.Union : V.False;
|
|
1605
|
+
}
|
|
1606
|
+
function _o(e, t) {
|
|
1607
|
+
return U(t) ? W(e, t) : O(t) && to(t) || jt(t) && ho(e, t) ? V.True : sn(t) ? f(e.items) && !f(t.items) || !f(e.items) && f(t.items) ? V.False : f(e.items) && !f(t.items) || e.items.every((e, n) => J(e, t.items[n]) === V.True) ? V.True : V.False : V.False;
|
|
1608
|
+
}
|
|
1609
|
+
function vo(e, t) {
|
|
1610
|
+
return U(t) ? W(e, t) : O(t) ? K(e, t) : k(t) ? q(e, t) : un(t) ? V.True : V.False;
|
|
1611
|
+
}
|
|
1612
|
+
function yo(e, t) {
|
|
1613
|
+
return U(t) ? W(e, t) : O(t) ? K(e, t) : k(t) ? q(e, t) : fn(t) ? wo(e, t) : cn(t) ? V.True : V.False;
|
|
1614
|
+
}
|
|
1615
|
+
function bo(e, t) {
|
|
1616
|
+
return t.anyOf.some((t) => J(e, t) === V.True) ? V.True : V.False;
|
|
1617
|
+
}
|
|
1618
|
+
function xo(e, t) {
|
|
1619
|
+
return e.anyOf.every((e) => J(e, t) === V.True) ? V.True : V.False;
|
|
1620
|
+
}
|
|
1621
|
+
function So(e, t) {
|
|
1622
|
+
return V.True;
|
|
1623
|
+
}
|
|
1624
|
+
function Co(e, t) {
|
|
1625
|
+
return Xt(t) ? za(e, t) : Vt(t) ? Fa(e, t) : ln(t) ? bo(e, t) : T(t) ? Sa(e, t) : A(t) ? uo(e, t) : D(t) ? Wa(e, t) : zt(t) ? Na(e, t) : Pt(t) ? Oa(e, t) : jt(t) ? wa(e, t) : sn(t) ? go(e, t) : O(t) ? K(e, t) : j(t) ? V.True : V.False;
|
|
1626
|
+
}
|
|
1627
|
+
function wo(e, t) {
|
|
1628
|
+
return cn(e) || cn(e) ? V.True : V.False;
|
|
1629
|
+
}
|
|
1630
|
+
function To(e, t) {
|
|
1631
|
+
return Vt(t) ? Fa(e, t) : ln(t) ? bo(e, t) : j(t) ? So(e, t) : T(t) ? Sa(e, t) : O(t) ? K(e, t) : fn(t) ? V.True : V.False;
|
|
1632
|
+
}
|
|
1633
|
+
function J(e, t) {
|
|
1634
|
+
return rn(e) || rn(t) ? mo(e, t) : tn(e) || tn(t) ? lo(e, t) : Zt(e) || Zt(t) ? Ha(e, t) : T(e) ? Ca(e, t) : jt(e) ? Ta(e, t) : Nt(e) ? Da(e, t) : Pt(e) ? ka(e, t) : Mt(e) ? Ea(e, t) : It(e) ? Aa(e, t) : Lt(e) ? ja(e, t) : Rt(e) ? Ma(e, t) : zt(e) ? Pa(e, t) : Vt(e) ? Ia(e, t) : Ht(e) ? La(e, t) : Kt(e) ? Ra(e, t) : Xt(e) ? Ba(e, t) : Qt(e) ? Ua(e, t) : D(e) ? Ga(e, t) : O(e) ? io(e, t) : k(e) ? co(e, t) : A(e) ? fo(e, t) : nn(e) ? po(e, t) : sn(e) ? _o(e, t) : $t(e) ? ao(e, t) : un(e) ? vo(e, t) : cn(e) ? yo(e, t) : ln(e) ? xo(e, t) : j(e) ? Co(e, t) : fn(e) ? To(e, t) : xa(`Unknown left type operand '${e[g]}'`);
|
|
1635
|
+
}
|
|
1636
|
+
function Eo(e, t) {
|
|
1637
|
+
return J(e, t);
|
|
1638
|
+
}
|
|
1639
|
+
//#endregion
|
|
1640
|
+
//#region node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/extends/extends-from-mapped-result.mjs
|
|
1641
|
+
function Do(e, t, n, r, i) {
|
|
1642
|
+
let a = {};
|
|
1643
|
+
for (let o of globalThis.Object.getOwnPropertyNames(e)) a[o] = jo(e[o], t, n, r, p(i));
|
|
1644
|
+
return a;
|
|
1645
|
+
}
|
|
1646
|
+
function Oo(e, t, n, r, i) {
|
|
1647
|
+
return Do(e.properties, t, n, r, i);
|
|
1648
|
+
}
|
|
1649
|
+
function ko(e, t, n, r, i) {
|
|
1650
|
+
return I(Oo(e, t, n, r, i));
|
|
1651
|
+
}
|
|
1652
|
+
//#endregion
|
|
1653
|
+
//#region node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/extends/extends.mjs
|
|
1654
|
+
function Ao(e, t, n, r) {
|
|
1655
|
+
let i = Eo(e, t);
|
|
1656
|
+
return i === V.Union ? L([n, r]) : i === V.True ? n : r;
|
|
1657
|
+
}
|
|
1658
|
+
function jo(e, t, n, r, i) {
|
|
1659
|
+
return y(e) ? ko(e, t, n, r, i) : $e(e) ? m(Fo(e, t, n, r, i)) : m(Ao(e, t, n, r), i);
|
|
1660
|
+
}
|
|
1661
|
+
//#endregion
|
|
1662
|
+
//#region node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/extends/extends-from-mapped-key.mjs
|
|
1663
|
+
function Mo(e, t, n, r, i) {
|
|
1664
|
+
return { [e]: jo(R(e), t, n, r, p(i)) };
|
|
1665
|
+
}
|
|
1666
|
+
function No(e, t, n, r, i) {
|
|
1667
|
+
return e.reduce((e, a) => ({
|
|
1668
|
+
...e,
|
|
1669
|
+
...Mo(a, t, n, r, i)
|
|
1670
|
+
}), {});
|
|
1671
|
+
}
|
|
1672
|
+
function Po(e, t, n, r, i) {
|
|
1673
|
+
return No(e.keys, t, n, r, i);
|
|
1674
|
+
}
|
|
1675
|
+
function Fo(e, t, n, r, i) {
|
|
1676
|
+
return I(Po(e, t, n, r, i));
|
|
1677
|
+
}
|
|
1678
|
+
//#endregion
|
|
1679
|
+
//#region node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/exclude/exclude-from-template-literal.mjs
|
|
1680
|
+
function Io(e, t) {
|
|
1681
|
+
return Ro(Tr(e), t);
|
|
1682
|
+
}
|
|
1683
|
+
//#endregion
|
|
1684
|
+
//#region node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/exclude/exclude.mjs
|
|
1685
|
+
function Lo(e, t) {
|
|
1686
|
+
let n = e.filter((e) => Eo(e, t) === V.False);
|
|
1687
|
+
return n.length === 1 ? n[0] : L(n);
|
|
1688
|
+
}
|
|
1689
|
+
function Ro(e, t, n = {}) {
|
|
1690
|
+
return lt(e) ? m(Io(e, t), n) : y(e) ? m(Vo(e, t), n) : m(S(e) ? Lo(e.anyOf, t) : Eo(e, t) === V.False ? e : F(), n);
|
|
1691
|
+
}
|
|
1692
|
+
//#endregion
|
|
1693
|
+
//#region node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/exclude/exclude-from-mapped-result.mjs
|
|
1694
|
+
function zo(e, t) {
|
|
1695
|
+
let n = {};
|
|
1696
|
+
for (let r of globalThis.Object.getOwnPropertyNames(e)) n[r] = Ro(e[r], t);
|
|
1697
|
+
return n;
|
|
1698
|
+
}
|
|
1699
|
+
function Bo(e, t) {
|
|
1700
|
+
return zo(e.properties, t);
|
|
1701
|
+
}
|
|
1702
|
+
function Vo(e, t) {
|
|
1703
|
+
return I(Bo(e, t));
|
|
1704
|
+
}
|
|
1705
|
+
//#endregion
|
|
1706
|
+
//#region node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/extract/extract-from-template-literal.mjs
|
|
1707
|
+
function Ho(e, t) {
|
|
1708
|
+
return Wo(Tr(e), t);
|
|
1709
|
+
}
|
|
1710
|
+
//#endregion
|
|
1711
|
+
//#region node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/extract/extract.mjs
|
|
1712
|
+
function Uo(e, t) {
|
|
1713
|
+
let n = e.filter((e) => Eo(e, t) !== V.False);
|
|
1714
|
+
return n.length === 1 ? n[0] : L(n);
|
|
1715
|
+
}
|
|
1716
|
+
function Wo(e, t, n) {
|
|
1717
|
+
return lt(e) ? m(Ho(e, t), n) : y(e) ? m(qo(e, t), n) : m(S(e) ? Uo(e.anyOf, t) : Eo(e, t) === V.False ? F() : e, n);
|
|
1718
|
+
}
|
|
1719
|
+
//#endregion
|
|
1720
|
+
//#region node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/extract/extract-from-mapped-result.mjs
|
|
1721
|
+
function Go(e, t) {
|
|
1722
|
+
let n = {};
|
|
1723
|
+
for (let r of globalThis.Object.getOwnPropertyNames(e)) n[r] = Wo(e[r], t);
|
|
1724
|
+
return n;
|
|
1725
|
+
}
|
|
1726
|
+
function Ko(e, t) {
|
|
1727
|
+
return Go(e.properties, t);
|
|
1728
|
+
}
|
|
1729
|
+
function qo(e, t) {
|
|
1730
|
+
return I(Ko(e, t));
|
|
1731
|
+
}
|
|
1732
|
+
//#endregion
|
|
1733
|
+
//#region node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/instance-type/instance-type.mjs
|
|
1734
|
+
function Jo(e, t) {
|
|
1735
|
+
return Ke(e) ? m(e.returns, t) : F(t);
|
|
1736
|
+
}
|
|
1737
|
+
//#endregion
|
|
1738
|
+
//#region node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/readonly-optional/readonly-optional.mjs
|
|
1739
|
+
function Yo(e) {
|
|
1740
|
+
return ri(bi(e));
|
|
1741
|
+
}
|
|
1742
|
+
//#endregion
|
|
1743
|
+
//#region node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/record/record.mjs
|
|
1744
|
+
function Xo(e, t, n) {
|
|
1745
|
+
return m({
|
|
1746
|
+
[g]: "Record",
|
|
1747
|
+
type: "object",
|
|
1748
|
+
patternProperties: { [e]: t }
|
|
1749
|
+
}, n);
|
|
1750
|
+
}
|
|
1751
|
+
function Zo(e, t, n) {
|
|
1752
|
+
let r = {};
|
|
1753
|
+
for (let n of e) r[n] = t;
|
|
1754
|
+
return z(r, {
|
|
1755
|
+
...n,
|
|
1756
|
+
[Ie]: "Record"
|
|
1757
|
+
});
|
|
1758
|
+
}
|
|
1759
|
+
function Qo(e, t, n) {
|
|
1760
|
+
return ar(e) ? Zo(Ar(e), t, n) : Xo(e.pattern, t, n);
|
|
1761
|
+
}
|
|
1762
|
+
function $o(e, t, n) {
|
|
1763
|
+
return Zo(Ar(L(e)), t, n);
|
|
1764
|
+
}
|
|
1765
|
+
function es(e, t, n) {
|
|
1766
|
+
return Zo([e.toString()], t, n);
|
|
1767
|
+
}
|
|
1768
|
+
function ts(e, t, n) {
|
|
1769
|
+
return Xo(e.source, t, n);
|
|
1770
|
+
}
|
|
1771
|
+
function ns(e, t, n) {
|
|
1772
|
+
return Xo(f(e.pattern) ? yn : e.pattern, t, n);
|
|
1773
|
+
}
|
|
1774
|
+
function rs(e, t, n) {
|
|
1775
|
+
return Xo(yn, t, n);
|
|
1776
|
+
}
|
|
1777
|
+
function is(e, t, n) {
|
|
1778
|
+
return Xo(bn, t, n);
|
|
1779
|
+
}
|
|
1780
|
+
function as(e, t, n) {
|
|
1781
|
+
return z({
|
|
1782
|
+
true: t,
|
|
1783
|
+
false: t
|
|
1784
|
+
}, n);
|
|
1785
|
+
}
|
|
1786
|
+
function os(e, t, n) {
|
|
1787
|
+
return Xo(vn, t, n);
|
|
1788
|
+
}
|
|
1789
|
+
function ss(e, t, n) {
|
|
1790
|
+
return Xo(vn, t, n);
|
|
1791
|
+
}
|
|
1792
|
+
function cs(e, t, n = {}) {
|
|
1793
|
+
return S(e) ? $o(e.anyOf, t, n) : lt(e) ? Qo(e, t, n) : Qe(e) ? es(e.const, t, n) : We(e) ? as(e, t, n) : Ye(e) ? os(e, t, n) : rt(e) ? ss(e, t, n) : ot(e) ? ts(e, t, n) : st(e) ? ns(e, t, n) : ze(e) ? rs(e, t, n) : et(e) ? is(e, t, n) : F(n);
|
|
1794
|
+
}
|
|
1795
|
+
function ls(e) {
|
|
1796
|
+
return globalThis.Object.getOwnPropertyNames(e.patternProperties)[0];
|
|
1797
|
+
}
|
|
1798
|
+
function us(e) {
|
|
1799
|
+
let t = ls(e);
|
|
1800
|
+
return t === yn ? gr() : t === vn ? hr() : gr({ pattern: t });
|
|
1801
|
+
}
|
|
1802
|
+
function ds(e) {
|
|
1803
|
+
return e.patternProperties[ls(e)];
|
|
1804
|
+
}
|
|
1805
|
+
//#endregion
|
|
1806
|
+
//#region node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/instantiate/instantiate.mjs
|
|
1807
|
+
function fs(e, t) {
|
|
1808
|
+
return t.parameters = Es(e, t.parameters), t.returns = Y(e, t.returns), t;
|
|
1809
|
+
}
|
|
1810
|
+
function ps(e, t) {
|
|
1811
|
+
return t.parameters = Es(e, t.parameters), t.returns = Y(e, t.returns), t;
|
|
1812
|
+
}
|
|
1813
|
+
function ms(e, t) {
|
|
1814
|
+
return t.allOf = Es(e, t.allOf), t;
|
|
1815
|
+
}
|
|
1816
|
+
function hs(e, t) {
|
|
1817
|
+
return t.anyOf = Es(e, t.anyOf), t;
|
|
1818
|
+
}
|
|
1819
|
+
function gs(e, t) {
|
|
1820
|
+
return f(t.items) || (t.items = Es(e, t.items)), t;
|
|
1821
|
+
}
|
|
1822
|
+
function _s(e, t) {
|
|
1823
|
+
return t.items = Y(e, t.items), t;
|
|
1824
|
+
}
|
|
1825
|
+
function vs(e, t) {
|
|
1826
|
+
return t.items = Y(e, t.items), t;
|
|
1827
|
+
}
|
|
1828
|
+
function ys(e, t) {
|
|
1829
|
+
return t.items = Y(e, t.items), t;
|
|
1830
|
+
}
|
|
1831
|
+
function bs(e, t) {
|
|
1832
|
+
return t.item = Y(e, t.item), t;
|
|
1833
|
+
}
|
|
1834
|
+
function xs(e, t) {
|
|
1835
|
+
let n = Ts(e, t.properties);
|
|
1836
|
+
return {
|
|
1837
|
+
...t,
|
|
1838
|
+
...z(n)
|
|
1839
|
+
};
|
|
1840
|
+
}
|
|
1841
|
+
function Ss(e, t) {
|
|
1842
|
+
let n = cs(Y(e, us(t)), Y(e, ds(t)));
|
|
1843
|
+
return {
|
|
1844
|
+
...t,
|
|
1845
|
+
...n
|
|
1846
|
+
};
|
|
1847
|
+
}
|
|
1848
|
+
function Cs(e, t) {
|
|
1849
|
+
return t.index in e ? e[t.index] : fa();
|
|
1850
|
+
}
|
|
1851
|
+
function ws(e, t) {
|
|
1852
|
+
let n = Le(t), r = Re(t), i = Y(e, t);
|
|
1853
|
+
return n && r ? Yo(i) : n && !r ? ri(i) : !n && r ? bi(i) : i;
|
|
1854
|
+
}
|
|
1855
|
+
function Ts(e, t) {
|
|
1856
|
+
return globalThis.Object.getOwnPropertyNames(t).reduce((n, r) => ({
|
|
1857
|
+
...n,
|
|
1858
|
+
[r]: ws(e, t[r])
|
|
1859
|
+
}), {});
|
|
1860
|
+
}
|
|
1861
|
+
function Es(e, t) {
|
|
1862
|
+
return t.map((t) => Y(e, t));
|
|
1863
|
+
}
|
|
1864
|
+
function Y(e, t) {
|
|
1865
|
+
return Ke(t) ? fs(e, t) : Je(t) ? ps(e, t) : _(t) ? ms(e, t) : S(t) ? hs(e, t) : ft(t) ? gs(e, t) : Ve(t) ? _s(e, t) : He(t) ? vs(e, t) : Xe(t) ? ys(e, t) : it(t) ? bs(e, t) : b(t) ? xs(e, t) : at(t) ? Ss(e, t) : Be(t) ? Cs(e, t) : t;
|
|
1866
|
+
}
|
|
1867
|
+
function Ds(e, t) {
|
|
1868
|
+
return Y(t, xe(e));
|
|
1869
|
+
}
|
|
1870
|
+
//#endregion
|
|
1871
|
+
//#region node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/integer/integer.mjs
|
|
1872
|
+
function Os(e) {
|
|
1873
|
+
return m({
|
|
1874
|
+
[g]: "Integer",
|
|
1875
|
+
type: "integer"
|
|
1876
|
+
}, e);
|
|
1877
|
+
}
|
|
1878
|
+
//#endregion
|
|
1879
|
+
//#region node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/intrinsic/intrinsic-from-mapped-key.mjs
|
|
1880
|
+
function ks(e, t, n) {
|
|
1881
|
+
return { [e]: Bs(R(e), t, p(n)) };
|
|
1882
|
+
}
|
|
1883
|
+
function As(e, t, n) {
|
|
1884
|
+
return e.reduce((e, r) => ({
|
|
1885
|
+
...e,
|
|
1886
|
+
...ks(r, t, n)
|
|
1887
|
+
}), {});
|
|
1888
|
+
}
|
|
1889
|
+
function js(e, t, n) {
|
|
1890
|
+
return As(e.keys, t, n);
|
|
1891
|
+
}
|
|
1892
|
+
function Ms(e, t, n) {
|
|
1893
|
+
return I(js(e, t, n));
|
|
1894
|
+
}
|
|
1895
|
+
//#endregion
|
|
1896
|
+
//#region node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/intrinsic/intrinsic.mjs
|
|
1897
|
+
function Ns(e) {
|
|
1898
|
+
let [t, n] = [e.slice(0, 1), e.slice(1)];
|
|
1899
|
+
return [t.toLowerCase(), n].join("");
|
|
1900
|
+
}
|
|
1901
|
+
function Ps(e) {
|
|
1902
|
+
let [t, n] = [e.slice(0, 1), e.slice(1)];
|
|
1903
|
+
return [t.toUpperCase(), n].join("");
|
|
1904
|
+
}
|
|
1905
|
+
function Fs(e) {
|
|
1906
|
+
return e.toUpperCase();
|
|
1907
|
+
}
|
|
1908
|
+
function Is(e) {
|
|
1909
|
+
return e.toLowerCase();
|
|
1910
|
+
}
|
|
1911
|
+
function Ls(e, t, n) {
|
|
1912
|
+
let r = $n(e.pattern);
|
|
1913
|
+
return ir(r) ? Er([L(zs([...dr(r)].map((e) => R(e)), t))], n) : {
|
|
1914
|
+
...e,
|
|
1915
|
+
pattern: Rs(e.pattern, t)
|
|
1916
|
+
};
|
|
1917
|
+
}
|
|
1918
|
+
function Rs(e, t) {
|
|
1919
|
+
return typeof e == "string" ? t === "Uncapitalize" ? Ns(e) : t === "Capitalize" ? Ps(e) : t === "Uppercase" ? Fs(e) : t === "Lowercase" ? Is(e) : e : e.toString();
|
|
1920
|
+
}
|
|
1921
|
+
function zs(e, t) {
|
|
1922
|
+
return e.map((e) => Bs(e, t));
|
|
1923
|
+
}
|
|
1924
|
+
function Bs(e, t, n = {}) {
|
|
1925
|
+
return $e(e) ? Ms(e, t, n) : lt(e) ? Ls(e, t, n) : S(e) ? L(zs(e.anyOf, t), n) : Qe(e) ? R(Rs(e.const, t), n) : m(e, n);
|
|
1926
|
+
}
|
|
1927
|
+
//#endregion
|
|
1928
|
+
//#region node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/intrinsic/capitalize.mjs
|
|
1929
|
+
function Vs(e, t = {}) {
|
|
1930
|
+
return Bs(e, "Capitalize", t);
|
|
1931
|
+
}
|
|
1932
|
+
//#endregion
|
|
1933
|
+
//#region node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/intrinsic/lowercase.mjs
|
|
1934
|
+
function Hs(e, t = {}) {
|
|
1935
|
+
return Bs(e, "Lowercase", t);
|
|
1936
|
+
}
|
|
1937
|
+
//#endregion
|
|
1938
|
+
//#region node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/intrinsic/uncapitalize.mjs
|
|
1939
|
+
function Us(e, t = {}) {
|
|
1940
|
+
return Bs(e, "Uncapitalize", t);
|
|
1941
|
+
}
|
|
1942
|
+
//#endregion
|
|
1943
|
+
//#region node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/intrinsic/uppercase.mjs
|
|
1944
|
+
function Ws(e, t = {}) {
|
|
1945
|
+
return Bs(e, "Uppercase", t);
|
|
1946
|
+
}
|
|
1947
|
+
//#endregion
|
|
1948
|
+
//#region node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/omit/omit-from-mapped-result.mjs
|
|
1949
|
+
function Gs(e, t, n) {
|
|
1950
|
+
let r = {};
|
|
1951
|
+
for (let i of globalThis.Object.getOwnPropertyNames(e)) r[i] = tc(e[i], t, p(n));
|
|
1952
|
+
return r;
|
|
1953
|
+
}
|
|
1954
|
+
function Ks(e, t, n) {
|
|
1955
|
+
return Gs(e.properties, t, n);
|
|
1956
|
+
}
|
|
1957
|
+
function qs(e, t, n) {
|
|
1958
|
+
return I(Ks(e, t, n));
|
|
1959
|
+
}
|
|
1960
|
+
//#endregion
|
|
1961
|
+
//#region node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/omit/omit.mjs
|
|
1962
|
+
function Js(e, t) {
|
|
1963
|
+
return e.map((e) => ec(e, t));
|
|
1964
|
+
}
|
|
1965
|
+
function Ys(e, t) {
|
|
1966
|
+
return e.map((e) => ec(e, t));
|
|
1967
|
+
}
|
|
1968
|
+
function Xs(e, t) {
|
|
1969
|
+
let { [t]: n, ...r } = e;
|
|
1970
|
+
return r;
|
|
1971
|
+
}
|
|
1972
|
+
function Zs(e, t) {
|
|
1973
|
+
return t.reduce((e, t) => Xs(e, t), e);
|
|
1974
|
+
}
|
|
1975
|
+
function Qs(e, t, n) {
|
|
1976
|
+
let r = P(e, [
|
|
1977
|
+
h,
|
|
1978
|
+
"$id",
|
|
1979
|
+
"required",
|
|
1980
|
+
"properties"
|
|
1981
|
+
]);
|
|
1982
|
+
return z(Zs(n, t), r);
|
|
1983
|
+
}
|
|
1984
|
+
function $s(e) {
|
|
1985
|
+
return L(e.reduce((e, t) => Ze(t) ? [...e, R(t)] : e, []));
|
|
1986
|
+
}
|
|
1987
|
+
function ec(e, t) {
|
|
1988
|
+
return _(e) ? Ai(Js(e.allOf, t)) : S(e) ? L(Ys(e.anyOf, t)) : b(e) ? Qs(e, t, e.properties) : z({});
|
|
1989
|
+
}
|
|
1990
|
+
function tc(e, t, n) {
|
|
1991
|
+
let r = l(t) ? $s(t) : t, i = yt(t) ? Ar(t) : t, a = x(e), o = x(t);
|
|
1992
|
+
return y(e) ? qs(e, i, n) : $e(t) ? ac(e, t, n) : a && o || !a && o || a && !o ? N("Omit", [e, r], n) : m({
|
|
1993
|
+
...ec(e, i),
|
|
1994
|
+
...n
|
|
1995
|
+
});
|
|
1996
|
+
}
|
|
1997
|
+
//#endregion
|
|
1998
|
+
//#region node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/omit/omit-from-mapped-key.mjs
|
|
1999
|
+
function nc(e, t, n) {
|
|
2000
|
+
return { [t]: tc(e, [t], p(n)) };
|
|
2001
|
+
}
|
|
2002
|
+
function rc(e, t, n) {
|
|
2003
|
+
return t.reduce((t, r) => ({
|
|
2004
|
+
...t,
|
|
2005
|
+
...nc(e, r, n)
|
|
2006
|
+
}), {});
|
|
2007
|
+
}
|
|
2008
|
+
function ic(e, t, n) {
|
|
2009
|
+
return rc(e, t.keys, n);
|
|
2010
|
+
}
|
|
2011
|
+
function ac(e, t, n) {
|
|
2012
|
+
return I(ic(e, t, n));
|
|
2013
|
+
}
|
|
2014
|
+
//#endregion
|
|
2015
|
+
//#region node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/pick/pick-from-mapped-result.mjs
|
|
2016
|
+
function oc(e, t, n) {
|
|
2017
|
+
let r = {};
|
|
2018
|
+
for (let i of globalThis.Object.getOwnPropertyNames(e)) r[i] = hc(e[i], t, p(n));
|
|
2019
|
+
return r;
|
|
2020
|
+
}
|
|
2021
|
+
function sc(e, t, n) {
|
|
2022
|
+
return oc(e.properties, t, n);
|
|
2023
|
+
}
|
|
2024
|
+
function cc(e, t, n) {
|
|
2025
|
+
return I(sc(e, t, n));
|
|
2026
|
+
}
|
|
2027
|
+
//#endregion
|
|
2028
|
+
//#region node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/pick/pick.mjs
|
|
2029
|
+
function lc(e, t) {
|
|
2030
|
+
return e.map((e) => mc(e, t));
|
|
2031
|
+
}
|
|
2032
|
+
function uc(e, t) {
|
|
2033
|
+
return e.map((e) => mc(e, t));
|
|
2034
|
+
}
|
|
2035
|
+
function dc(e, t) {
|
|
2036
|
+
let n = {};
|
|
2037
|
+
for (let r of t) r in e && (n[r] = e[r]);
|
|
2038
|
+
return n;
|
|
2039
|
+
}
|
|
2040
|
+
function fc(e, t, n) {
|
|
2041
|
+
let r = P(e, [
|
|
2042
|
+
h,
|
|
2043
|
+
"$id",
|
|
2044
|
+
"required",
|
|
2045
|
+
"properties"
|
|
2046
|
+
]);
|
|
2047
|
+
return z(dc(n, t), r);
|
|
2048
|
+
}
|
|
2049
|
+
function pc(e) {
|
|
2050
|
+
return L(e.reduce((e, t) => Ze(t) ? [...e, R(t)] : e, []));
|
|
2051
|
+
}
|
|
2052
|
+
function mc(e, t) {
|
|
2053
|
+
return _(e) ? Ai(lc(e.allOf, t)) : S(e) ? L(uc(e.anyOf, t)) : b(e) ? fc(e, t, e.properties) : z({});
|
|
2054
|
+
}
|
|
2055
|
+
function hc(e, t, n) {
|
|
2056
|
+
let r = l(t) ? pc(t) : t, i = yt(t) ? Ar(t) : t, a = x(e), o = x(t);
|
|
2057
|
+
return y(e) ? cc(e, i, n) : $e(t) ? yc(e, t, n) : a && o || !a && o || a && !o ? N("Pick", [e, r], n) : m({
|
|
2058
|
+
...mc(e, i),
|
|
2059
|
+
...n
|
|
2060
|
+
});
|
|
2061
|
+
}
|
|
2062
|
+
//#endregion
|
|
2063
|
+
//#region node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/pick/pick-from-mapped-key.mjs
|
|
2064
|
+
function gc(e, t, n) {
|
|
2065
|
+
return { [t]: hc(e, [t], p(n)) };
|
|
2066
|
+
}
|
|
2067
|
+
function _c(e, t, n) {
|
|
2068
|
+
return t.reduce((t, r) => ({
|
|
2069
|
+
...t,
|
|
2070
|
+
...gc(e, r, n)
|
|
2071
|
+
}), {});
|
|
2072
|
+
}
|
|
2073
|
+
function vc(e, t, n) {
|
|
2074
|
+
return _c(e, t.keys, n);
|
|
2075
|
+
}
|
|
2076
|
+
function yc(e, t, n) {
|
|
2077
|
+
return I(vc(e, t, n));
|
|
2078
|
+
}
|
|
2079
|
+
//#endregion
|
|
2080
|
+
//#region node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/partial/partial.mjs
|
|
2081
|
+
function bc(e, t) {
|
|
2082
|
+
return N("Partial", [N(e, t)]);
|
|
2083
|
+
}
|
|
2084
|
+
function xc(e) {
|
|
2085
|
+
return N("Partial", [ji(e)]);
|
|
2086
|
+
}
|
|
2087
|
+
function Sc(e) {
|
|
2088
|
+
let t = {};
|
|
2089
|
+
for (let n of globalThis.Object.getOwnPropertyNames(e)) t[n] = bi(e[n]);
|
|
2090
|
+
return t;
|
|
2091
|
+
}
|
|
2092
|
+
function Cc(e, t) {
|
|
2093
|
+
let n = P(e, [
|
|
2094
|
+
h,
|
|
2095
|
+
"$id",
|
|
2096
|
+
"required",
|
|
2097
|
+
"properties"
|
|
2098
|
+
]);
|
|
2099
|
+
return z(Sc(t), n);
|
|
2100
|
+
}
|
|
2101
|
+
function wc(e) {
|
|
2102
|
+
return e.map((e) => Tc(e));
|
|
2103
|
+
}
|
|
2104
|
+
function Tc(e) {
|
|
2105
|
+
return Ge(e) ? bc(e.target, e.parameters) : x(e) ? xc(e.$ref) : _(e) ? Ai(wc(e.allOf)) : S(e) ? L(wc(e.anyOf)) : b(e) ? Cc(e, e.properties) : Ue(e) || We(e) || Ye(e) || Qe(e) || nt(e) || rt(e) || st(e) || ct(e) || pt(e) ? e : z({});
|
|
2106
|
+
}
|
|
2107
|
+
function Ec(e, t) {
|
|
2108
|
+
return y(e) ? kc(e, t) : m({
|
|
2109
|
+
...Tc(e),
|
|
2110
|
+
...t
|
|
2111
|
+
});
|
|
2112
|
+
}
|
|
2113
|
+
//#endregion
|
|
2114
|
+
//#region node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/partial/partial-from-mapped-result.mjs
|
|
2115
|
+
function Dc(e, t) {
|
|
2116
|
+
let n = {};
|
|
2117
|
+
for (let r of globalThis.Object.getOwnPropertyNames(e)) n[r] = Ec(e[r], p(t));
|
|
2118
|
+
return n;
|
|
2119
|
+
}
|
|
2120
|
+
function Oc(e, t) {
|
|
2121
|
+
return Dc(e.properties, t);
|
|
2122
|
+
}
|
|
2123
|
+
function kc(e, t) {
|
|
2124
|
+
return I(Oc(e, t));
|
|
2125
|
+
}
|
|
2126
|
+
//#endregion
|
|
2127
|
+
//#region node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/required/required.mjs
|
|
2128
|
+
function Ac(e, t) {
|
|
2129
|
+
return N("Required", [N(e, t)]);
|
|
2130
|
+
}
|
|
2131
|
+
function jc(e) {
|
|
2132
|
+
return N("Required", [ji(e)]);
|
|
2133
|
+
}
|
|
2134
|
+
function Mc(e) {
|
|
2135
|
+
let t = {};
|
|
2136
|
+
for (let n of globalThis.Object.getOwnPropertyNames(e)) t[n] = P(e[n], [Fe]);
|
|
2137
|
+
return t;
|
|
2138
|
+
}
|
|
2139
|
+
function Nc(e, t) {
|
|
2140
|
+
let n = P(e, [
|
|
2141
|
+
h,
|
|
2142
|
+
"$id",
|
|
2143
|
+
"required",
|
|
2144
|
+
"properties"
|
|
2145
|
+
]);
|
|
2146
|
+
return z(Mc(t), n);
|
|
2147
|
+
}
|
|
2148
|
+
function Pc(e) {
|
|
2149
|
+
return e.map((e) => Fc(e));
|
|
2150
|
+
}
|
|
2151
|
+
function Fc(e) {
|
|
2152
|
+
return Ge(e) ? Ac(e.target, e.parameters) : x(e) ? jc(e.$ref) : _(e) ? Ai(Pc(e.allOf)) : S(e) ? L(Pc(e.anyOf)) : b(e) ? Nc(e, e.properties) : Ue(e) || We(e) || Ye(e) || Qe(e) || nt(e) || rt(e) || st(e) || ct(e) || pt(e) ? e : z({});
|
|
2153
|
+
}
|
|
2154
|
+
function Ic(e, t) {
|
|
2155
|
+
return y(e) ? zc(e, t) : m({
|
|
2156
|
+
...Fc(e),
|
|
2157
|
+
...t
|
|
2158
|
+
});
|
|
2159
|
+
}
|
|
2160
|
+
//#endregion
|
|
2161
|
+
//#region node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/required/required-from-mapped-result.mjs
|
|
2162
|
+
function Lc(e, t) {
|
|
2163
|
+
let n = {};
|
|
2164
|
+
for (let r of globalThis.Object.getOwnPropertyNames(e)) n[r] = Ic(e[r], t);
|
|
2165
|
+
return n;
|
|
2166
|
+
}
|
|
2167
|
+
function Rc(e, t) {
|
|
2168
|
+
return Lc(e.properties, t);
|
|
2169
|
+
}
|
|
2170
|
+
function zc(e, t) {
|
|
2171
|
+
return I(Rc(e, t));
|
|
2172
|
+
}
|
|
2173
|
+
//#endregion
|
|
2174
|
+
//#region node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/module/compute.mjs
|
|
2175
|
+
function Bc(e, t) {
|
|
2176
|
+
return t.map((t) => x(t) ? Vc(e, t.$ref) : X(e, t));
|
|
2177
|
+
}
|
|
2178
|
+
function Vc(e, t) {
|
|
2179
|
+
return t in e ? x(e[t]) ? Vc(e, e[t].$ref) : X(e, e[t]) : F();
|
|
2180
|
+
}
|
|
2181
|
+
function Hc(e) {
|
|
2182
|
+
return Ri(e[0]);
|
|
2183
|
+
}
|
|
2184
|
+
function Uc(e) {
|
|
2185
|
+
return Gr(e[0], e[1]);
|
|
2186
|
+
}
|
|
2187
|
+
function Wc(e) {
|
|
2188
|
+
return Qi(e[0]);
|
|
2189
|
+
}
|
|
2190
|
+
function Gc(e) {
|
|
2191
|
+
return Ec(e[0]);
|
|
2192
|
+
}
|
|
2193
|
+
function Kc(e) {
|
|
2194
|
+
return tc(e[0], e[1]);
|
|
2195
|
+
}
|
|
2196
|
+
function qc(e) {
|
|
2197
|
+
return hc(e[0], e[1]);
|
|
2198
|
+
}
|
|
2199
|
+
function Jc(e) {
|
|
2200
|
+
return Ic(e[0]);
|
|
2201
|
+
}
|
|
2202
|
+
function Yc(e, t, n) {
|
|
2203
|
+
let r = Bc(e, n);
|
|
2204
|
+
return t === "Awaited" ? Hc(r) : t === "Index" ? Uc(r) : t === "KeyOf" ? Wc(r) : t === "Partial" ? Gc(r) : t === "Omit" ? Kc(r) : t === "Pick" ? qc(r) : t === "Required" ? Jc(r) : F();
|
|
2205
|
+
}
|
|
2206
|
+
function Xc(e, t) {
|
|
2207
|
+
return On(X(e, t));
|
|
2208
|
+
}
|
|
2209
|
+
function Zc(e, t) {
|
|
2210
|
+
return An(X(e, t));
|
|
2211
|
+
}
|
|
2212
|
+
function Qc(e, t, n) {
|
|
2213
|
+
return Mn(sl(e, t), X(e, n));
|
|
2214
|
+
}
|
|
2215
|
+
function $c(e, t, n) {
|
|
2216
|
+
return Nn(sl(e, t), X(e, n));
|
|
2217
|
+
}
|
|
2218
|
+
function el(e, t) {
|
|
2219
|
+
return Ai(sl(e, t));
|
|
2220
|
+
}
|
|
2221
|
+
function tl(e, t) {
|
|
2222
|
+
return Xr(X(e, t));
|
|
2223
|
+
}
|
|
2224
|
+
function nl(e, t) {
|
|
2225
|
+
return z(globalThis.Object.keys(t).reduce((n, r) => ({
|
|
2226
|
+
...n,
|
|
2227
|
+
[r]: X(e, t[r])
|
|
2228
|
+
}), {}));
|
|
2229
|
+
}
|
|
2230
|
+
function rl(e, t) {
|
|
2231
|
+
let [n, r] = [X(e, ds(t)), ls(t)], i = xe(t);
|
|
2232
|
+
return i.patternProperties[r] = n, i;
|
|
2233
|
+
}
|
|
2234
|
+
function il(e, t) {
|
|
2235
|
+
return x(t) ? {
|
|
2236
|
+
...Vc(e, t.$ref),
|
|
2237
|
+
[h]: t[h]
|
|
2238
|
+
} : t;
|
|
2239
|
+
}
|
|
2240
|
+
function al(e, t) {
|
|
2241
|
+
return si(sl(e, t));
|
|
2242
|
+
}
|
|
2243
|
+
function ol(e, t) {
|
|
2244
|
+
return L(sl(e, t));
|
|
2245
|
+
}
|
|
2246
|
+
function sl(e, t) {
|
|
2247
|
+
return t.map((t) => X(e, t));
|
|
2248
|
+
}
|
|
2249
|
+
function X(e, t) {
|
|
2250
|
+
return Re(t) ? m(X(e, P(t, [Fe])), t) : Le(t) ? m(X(e, P(t, [Pe])), t) : dt(t) ? m(il(e, t), t) : Ve(t) ? m(Xc(e, t.items), t) : He(t) ? m(Zc(e, t.items), t) : Ge(t) ? m(Yc(e, t.target, t.parameters)) : Ke(t) ? m(Qc(e, t.parameters, t.returns), t) : Je(t) ? m($c(e, t.parameters, t.returns), t) : _(t) ? m(el(e, t.allOf), t) : Xe(t) ? m(tl(e, t.items), t) : b(t) ? m(nl(e, t.properties), t) : at(t) ? m(rl(e, t)) : ft(t) ? m(al(e, t.items || []), t) : S(t) ? m(ol(e, t.anyOf), t) : t;
|
|
2251
|
+
}
|
|
2252
|
+
function cl(e, t) {
|
|
2253
|
+
return t in e ? X(e, e[t]) : F();
|
|
2254
|
+
}
|
|
2255
|
+
function ll(e) {
|
|
2256
|
+
return globalThis.Object.getOwnPropertyNames(e).reduce((t, n) => ({
|
|
2257
|
+
...t,
|
|
2258
|
+
[n]: cl(e, n)
|
|
2259
|
+
}), {});
|
|
2260
|
+
}
|
|
2261
|
+
//#endregion
|
|
2262
|
+
//#region node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/module/module.mjs
|
|
2263
|
+
var ul = class {
|
|
2264
|
+
constructor(e) {
|
|
2265
|
+
let t = ll(e), n = this.WithIdentifiers(t);
|
|
2266
|
+
this.$defs = n;
|
|
2267
|
+
}
|
|
2268
|
+
Import(e, t) {
|
|
2269
|
+
let n = {
|
|
2270
|
+
...this.$defs,
|
|
2271
|
+
[e]: m(this.$defs[e], t)
|
|
2272
|
+
};
|
|
2273
|
+
return m({
|
|
2274
|
+
[g]: "Import",
|
|
2275
|
+
$defs: n,
|
|
2276
|
+
$ref: e
|
|
2277
|
+
});
|
|
2278
|
+
}
|
|
2279
|
+
WithIdentifiers(e) {
|
|
2280
|
+
return globalThis.Object.getOwnPropertyNames(e).reduce((t, n) => ({
|
|
2281
|
+
...t,
|
|
2282
|
+
[n]: {
|
|
2283
|
+
...e[n],
|
|
2284
|
+
$id: n
|
|
2285
|
+
}
|
|
2286
|
+
}), {});
|
|
2287
|
+
}
|
|
2288
|
+
};
|
|
2289
|
+
function dl(e) {
|
|
2290
|
+
return new ul(e);
|
|
2291
|
+
}
|
|
2292
|
+
//#endregion
|
|
2293
|
+
//#region node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/not/not.mjs
|
|
2294
|
+
function fl(e, t) {
|
|
2295
|
+
return m({
|
|
2296
|
+
[g]: "Not",
|
|
2297
|
+
not: e
|
|
2298
|
+
}, t);
|
|
2299
|
+
}
|
|
2300
|
+
//#endregion
|
|
2301
|
+
//#region node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/parameters/parameters.mjs
|
|
2302
|
+
function pl(e, t) {
|
|
2303
|
+
return Je(e) ? si(e.parameters, t) : F();
|
|
2304
|
+
}
|
|
2305
|
+
//#endregion
|
|
2306
|
+
//#region node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/recursive/recursive.mjs
|
|
2307
|
+
var ml = 0;
|
|
2308
|
+
function hl(e, t = {}) {
|
|
2309
|
+
f(t.$id) && (t.$id = `T${ml++}`);
|
|
2310
|
+
let n = xe(e({
|
|
2311
|
+
[g]: "This",
|
|
2312
|
+
$ref: `${t.$id}`
|
|
2313
|
+
}));
|
|
2314
|
+
return n.$id = t.$id, m({
|
|
2315
|
+
[Ie]: "Recursive",
|
|
2316
|
+
...n
|
|
2317
|
+
}, t);
|
|
2318
|
+
}
|
|
2319
|
+
//#endregion
|
|
2320
|
+
//#region node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/regexp/regexp.mjs
|
|
2321
|
+
function gl(e, t) {
|
|
2322
|
+
let n = d(e) ? new globalThis.RegExp(e) : e;
|
|
2323
|
+
return m({
|
|
2324
|
+
[g]: "RegExp",
|
|
2325
|
+
type: "RegExp",
|
|
2326
|
+
source: n.source,
|
|
2327
|
+
flags: n.flags
|
|
2328
|
+
}, t);
|
|
2329
|
+
}
|
|
2330
|
+
//#endregion
|
|
2331
|
+
//#region node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/rest/rest.mjs
|
|
2332
|
+
function _l(e) {
|
|
2333
|
+
return _(e) ? e.allOf : S(e) ? e.anyOf : ft(e) ? e.items ?? [] : [];
|
|
2334
|
+
}
|
|
2335
|
+
function vl(e) {
|
|
2336
|
+
return _l(e);
|
|
2337
|
+
}
|
|
2338
|
+
//#endregion
|
|
2339
|
+
//#region node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/return-type/return-type.mjs
|
|
2340
|
+
function yl(e, t) {
|
|
2341
|
+
return Je(e) ? m(e.returns, t) : F(t);
|
|
2342
|
+
}
|
|
2343
|
+
//#endregion
|
|
2344
|
+
//#region node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/transform/transform.mjs
|
|
2345
|
+
var bl = class {
|
|
2346
|
+
constructor(e) {
|
|
2347
|
+
this.schema = e;
|
|
2348
|
+
}
|
|
2349
|
+
Decode(e) {
|
|
2350
|
+
return new xl(this.schema, e);
|
|
2351
|
+
}
|
|
2352
|
+
}, xl = class {
|
|
2353
|
+
constructor(e, t) {
|
|
2354
|
+
this.schema = e, this.decode = t;
|
|
2355
|
+
}
|
|
2356
|
+
EncodeTransform(e, t) {
|
|
2357
|
+
let n = {
|
|
2358
|
+
Encode: (n) => t[h].Encode(e(n)),
|
|
2359
|
+
Decode: (e) => this.decode(t[h].Decode(e))
|
|
2360
|
+
};
|
|
2361
|
+
return {
|
|
2362
|
+
...t,
|
|
2363
|
+
[h]: n
|
|
2364
|
+
};
|
|
2365
|
+
}
|
|
2366
|
+
EncodeSchema(e, t) {
|
|
2367
|
+
let n = {
|
|
2368
|
+
Decode: this.decode,
|
|
2369
|
+
Encode: e
|
|
2370
|
+
};
|
|
2371
|
+
return {
|
|
2372
|
+
...t,
|
|
2373
|
+
[h]: n
|
|
2374
|
+
};
|
|
2375
|
+
}
|
|
2376
|
+
Encode(e) {
|
|
2377
|
+
return dt(this.schema) ? this.EncodeTransform(e, this.schema) : this.EncodeSchema(e, this.schema);
|
|
2378
|
+
}
|
|
2379
|
+
};
|
|
2380
|
+
function Sl(e) {
|
|
2381
|
+
return new bl(e);
|
|
2382
|
+
}
|
|
2383
|
+
//#endregion
|
|
2384
|
+
//#region node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/unsafe/unsafe.mjs
|
|
2385
|
+
function Cl(e = {}) {
|
|
2386
|
+
return m({ [g]: e[g] ?? "Unsafe" }, e);
|
|
2387
|
+
}
|
|
2388
|
+
//#endregion
|
|
2389
|
+
//#region node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/void/void.mjs
|
|
2390
|
+
function wl(e) {
|
|
2391
|
+
return m({
|
|
2392
|
+
[g]: "Void",
|
|
2393
|
+
type: "void"
|
|
2394
|
+
}, e);
|
|
2395
|
+
}
|
|
2396
|
+
//#endregion
|
|
2397
|
+
//#region node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/type/index.mjs
|
|
2398
|
+
var Z = /* @__PURE__ */ te({
|
|
2399
|
+
Any: () => Dn,
|
|
2400
|
+
Argument: () => kn,
|
|
2401
|
+
Array: () => On,
|
|
2402
|
+
AsyncIterator: () => An,
|
|
2403
|
+
Awaited: () => Ri,
|
|
2404
|
+
BigInt: () => mr,
|
|
2405
|
+
Boolean: () => pr,
|
|
2406
|
+
Capitalize: () => Vs,
|
|
2407
|
+
Composite: () => oa,
|
|
2408
|
+
Const: () => _a,
|
|
2409
|
+
Constructor: () => Mn,
|
|
2410
|
+
ConstructorParameters: () => va,
|
|
2411
|
+
Date: () => sa,
|
|
2412
|
+
Enum: () => ya,
|
|
2413
|
+
Exclude: () => Ro,
|
|
2414
|
+
Extends: () => jo,
|
|
2415
|
+
Extract: () => Wo,
|
|
2416
|
+
Function: () => Nn,
|
|
2417
|
+
Index: () => Gr,
|
|
2418
|
+
InstanceType: () => Jo,
|
|
2419
|
+
Instantiate: () => Ds,
|
|
2420
|
+
Integer: () => Os,
|
|
2421
|
+
Intersect: () => Ai,
|
|
2422
|
+
Iterator: () => Xr,
|
|
2423
|
+
KeyOf: () => Qi,
|
|
2424
|
+
Literal: () => R,
|
|
2425
|
+
Lowercase: () => Hs,
|
|
2426
|
+
Mapped: () => gi,
|
|
2427
|
+
Module: () => dl,
|
|
2428
|
+
Never: () => F,
|
|
2429
|
+
Not: () => fl,
|
|
2430
|
+
Null: () => ca,
|
|
2431
|
+
Number: () => hr,
|
|
2432
|
+
Object: () => z,
|
|
2433
|
+
Omit: () => tc,
|
|
2434
|
+
Optional: () => bi,
|
|
2435
|
+
Parameters: () => pl,
|
|
2436
|
+
Partial: () => Ec,
|
|
2437
|
+
Pick: () => hc,
|
|
2438
|
+
Promise: () => $r,
|
|
2439
|
+
Readonly: () => ri,
|
|
2440
|
+
ReadonlyOptional: () => Yo,
|
|
2441
|
+
Record: () => cs,
|
|
2442
|
+
Recursive: () => hl,
|
|
2443
|
+
Ref: () => ji,
|
|
2444
|
+
RegExp: () => gl,
|
|
2445
|
+
Required: () => Ic,
|
|
2446
|
+
Rest: () => vl,
|
|
2447
|
+
ReturnType: () => yl,
|
|
2448
|
+
String: () => gr,
|
|
2449
|
+
Symbol: () => la,
|
|
2450
|
+
TemplateLiteral: () => Er,
|
|
2451
|
+
Transform: () => Sl,
|
|
2452
|
+
Tuple: () => si,
|
|
2453
|
+
Uint8Array: () => da,
|
|
2454
|
+
Uncapitalize: () => Us,
|
|
2455
|
+
Undefined: () => ua,
|
|
2456
|
+
Union: () => L,
|
|
2457
|
+
Unknown: () => fa,
|
|
2458
|
+
Unsafe: () => Cl,
|
|
2459
|
+
Uppercase: () => Ws,
|
|
2460
|
+
Void: () => wl
|
|
2461
|
+
}), Tl = Object.defineProperty, Q = (e, t) => {
|
|
2462
|
+
let n = {};
|
|
2463
|
+
for (var r in e) Tl(n, r, {
|
|
2464
|
+
get: e[r],
|
|
2465
|
+
enumerable: !0
|
|
2466
|
+
});
|
|
2467
|
+
return t || Tl(n, Symbol.toStringTag, { value: "Module" }), n;
|
|
2468
|
+
}, El = {
|
|
2469
|
+
backendUrl: "https://luna-park.app",
|
|
2470
|
+
hostUrl: "https://host.luna-park.app",
|
|
2471
|
+
webSocketUrl: "wss://luna-park.app"
|
|
2472
|
+
}, Dl = {
|
|
2473
|
+
credentials: "include",
|
|
2474
|
+
headers: {
|
|
2475
|
+
Accept: "application/json, text/plain",
|
|
2476
|
+
"Content-Type": "application/json"
|
|
2477
|
+
},
|
|
2478
|
+
mode: "cors"
|
|
2479
|
+
}, Ol = {
|
|
2480
|
+
credentials: "include",
|
|
2481
|
+
headers: { Accept: "application/json, text/plain" },
|
|
2482
|
+
mode: "cors"
|
|
2483
|
+
}, kl = {
|
|
2484
|
+
async delete(e, t) {
|
|
2485
|
+
let n = {
|
|
2486
|
+
...Dl,
|
|
2487
|
+
method: "DELETE",
|
|
2488
|
+
...t
|
|
2489
|
+
};
|
|
2490
|
+
return n.body || (n.headers = { ...n.headers }, delete n.headers?.["Content-Type"]), fetch(e, n);
|
|
2491
|
+
},
|
|
2492
|
+
async get(e, t) {
|
|
2493
|
+
return await fetch(e, {
|
|
2494
|
+
...Dl,
|
|
2495
|
+
method: "GET",
|
|
2496
|
+
...t
|
|
2497
|
+
});
|
|
2498
|
+
},
|
|
2499
|
+
getBaseUrl({ dev: e } = { dev: !1 }) {
|
|
2500
|
+
return `${El.backendUrl}/${e ? "dev" : "api"}`;
|
|
2501
|
+
},
|
|
2502
|
+
async multipart(e, t, n) {
|
|
2503
|
+
return await fetch(e, {
|
|
2504
|
+
...Ol,
|
|
2505
|
+
body: t,
|
|
2506
|
+
method: "POST",
|
|
2507
|
+
...n
|
|
2508
|
+
});
|
|
2509
|
+
},
|
|
2510
|
+
async post(e, t, n) {
|
|
2511
|
+
return await fetch(e, {
|
|
2512
|
+
...Dl,
|
|
2513
|
+
body: JSON.stringify(t) || "{}",
|
|
2514
|
+
method: "POST",
|
|
2515
|
+
...n
|
|
2516
|
+
});
|
|
2517
|
+
},
|
|
2518
|
+
async put(e, t, n) {
|
|
2519
|
+
return await fetch(e, {
|
|
2520
|
+
...Dl,
|
|
2521
|
+
body: JSON.stringify(t) || "{}",
|
|
2522
|
+
method: "PUT",
|
|
2523
|
+
...n
|
|
2524
|
+
});
|
|
2525
|
+
}
|
|
2526
|
+
}, Al = Z.String({ format: "date-time" }), jl = /* @__PURE__ */ Q({
|
|
2527
|
+
app: () => Ml,
|
|
2528
|
+
appEdits: () => Nl
|
|
2529
|
+
}), Ml = Z.Object({
|
|
2530
|
+
name: Z.String(),
|
|
2531
|
+
config: Z.Record(Z.String(), Z.Unknown()),
|
|
2532
|
+
tree: Z.Unknown(),
|
|
2533
|
+
version: Z.Optional(Z.Number())
|
|
2534
|
+
}), Nl = Z.Array(Z.Object({
|
|
2535
|
+
file: Z.Unknown(),
|
|
2536
|
+
path: Z.String()
|
|
2537
|
+
})), Pl = Z.Object({
|
|
2538
|
+
id: Z.Optional(Z.String()),
|
|
2539
|
+
domain: Z.String(),
|
|
2540
|
+
owner: Z.String(),
|
|
2541
|
+
private: Z.String(),
|
|
2542
|
+
public: Z.String()
|
|
2543
|
+
}), Fl = Z.Object({
|
|
2544
|
+
id: Z.String(),
|
|
2545
|
+
app: Z.Object({
|
|
2546
|
+
name: Z.String(),
|
|
2547
|
+
config: Z.Unknown()
|
|
2548
|
+
}),
|
|
2549
|
+
createdAt: Al,
|
|
2550
|
+
icon: Z.String(),
|
|
2551
|
+
owner: Z.Unknown(),
|
|
2552
|
+
updatedAt: Al,
|
|
2553
|
+
visibility: Z.Object({
|
|
2554
|
+
liked: Z.Boolean(),
|
|
2555
|
+
public: Z.Boolean(),
|
|
2556
|
+
shareKey: Z.Optional(Z.String()),
|
|
2557
|
+
starsCount: Z.Number()
|
|
2558
|
+
})
|
|
2559
|
+
}), Il = Fl, Ll = Z.Object({
|
|
2560
|
+
...Fl.properties,
|
|
2561
|
+
app: Z.Unknown()
|
|
2562
|
+
}), Rl = /* @__PURE__ */ function(e) {
|
|
2563
|
+
return e.Free = "free", e.Edu = "edu", e.Pro = "pro", e.Org = "org", e;
|
|
2564
|
+
}({}), zl = {
|
|
2565
|
+
free: {
|
|
2566
|
+
compilation: {
|
|
2567
|
+
export: !0,
|
|
2568
|
+
source: !1,
|
|
2569
|
+
web: !0
|
|
2570
|
+
},
|
|
2571
|
+
editor: {
|
|
2572
|
+
desktop: !1,
|
|
2573
|
+
web: !0
|
|
2574
|
+
},
|
|
2575
|
+
desktop: { compilation: {
|
|
2576
|
+
desktop: !1,
|
|
2577
|
+
mobile: !1
|
|
2578
|
+
} },
|
|
2579
|
+
watermark: !0
|
|
2580
|
+
},
|
|
2581
|
+
pro: {
|
|
2582
|
+
compilation: {
|
|
2583
|
+
export: !0,
|
|
2584
|
+
source: !0,
|
|
2585
|
+
web: !0
|
|
2586
|
+
},
|
|
2587
|
+
editor: {
|
|
2588
|
+
desktop: !0,
|
|
2589
|
+
web: !0
|
|
2590
|
+
},
|
|
2591
|
+
desktop: { compilation: {
|
|
2592
|
+
desktop: !0,
|
|
2593
|
+
mobile: !0
|
|
2594
|
+
} },
|
|
2595
|
+
watermark: !1
|
|
2596
|
+
}
|
|
2597
|
+
};
|
|
2598
|
+
zl.pro, zl.pro, zl.pro, zl.free;
|
|
2599
|
+
var Bl = Z.Object({
|
|
2600
|
+
id: Z.Optional(Z.String()),
|
|
2601
|
+
auth: Z.Optional(Z.Object({})),
|
|
2602
|
+
mail: Z.String(),
|
|
2603
|
+
terms: Z.Optional(Z.Object({
|
|
2604
|
+
version: Z.Union([Z.String(), Z.Null()]),
|
|
2605
|
+
acceptedAt: Z.Union([Z.String(), Z.Null()])
|
|
2606
|
+
})),
|
|
2607
|
+
plan: Z.Object({ name: Z.Enum(Rl) }),
|
|
2608
|
+
profile: Z.Object({
|
|
2609
|
+
other: Z.Object({
|
|
2610
|
+
avatar: Z.String(),
|
|
2611
|
+
bio: Z.String(),
|
|
2612
|
+
referral: Z.String()
|
|
2613
|
+
}),
|
|
2614
|
+
public: Z.Object({
|
|
2615
|
+
company: Z.String(),
|
|
2616
|
+
location: Z.String(),
|
|
2617
|
+
url: Z.String(),
|
|
2618
|
+
username: Z.String()
|
|
2619
|
+
}),
|
|
2620
|
+
social: Z.Object({
|
|
2621
|
+
discord: Z.String(),
|
|
2622
|
+
github: Z.String(),
|
|
2623
|
+
linkedin: Z.String(),
|
|
2624
|
+
twitter: Z.String()
|
|
2625
|
+
})
|
|
2626
|
+
}),
|
|
2627
|
+
settings: Z.Object({
|
|
2628
|
+
newsletter: Z.Boolean(),
|
|
2629
|
+
onboarding: Z.Boolean()
|
|
2630
|
+
})
|
|
2631
|
+
}), $ = {
|
|
2632
|
+
...jl,
|
|
2633
|
+
keyConfig: Pl,
|
|
2634
|
+
privateProject: Ll,
|
|
2635
|
+
project: Fl,
|
|
2636
|
+
publicProject: Il,
|
|
2637
|
+
user: Bl
|
|
2638
|
+
}, Vl = /* @__PURE__ */ Q({
|
|
2639
|
+
edit: () => Ul,
|
|
2640
|
+
get: () => Hl
|
|
2641
|
+
}), Hl = {
|
|
2642
|
+
type: "get",
|
|
2643
|
+
params: Z.Object({ id: Z.String() }),
|
|
2644
|
+
response: { 200: Z.Object({
|
|
2645
|
+
app: $.app,
|
|
2646
|
+
readOnly: Z.Boolean()
|
|
2647
|
+
}) },
|
|
2648
|
+
url: "/app/:id"
|
|
2649
|
+
}, Ul = {
|
|
2650
|
+
type: "post",
|
|
2651
|
+
body: Z.Object({
|
|
2652
|
+
app: Z.Optional($.app),
|
|
2653
|
+
deletes: Z.Optional(Z.Array(Z.String())),
|
|
2654
|
+
edits: Z.Optional($.appEdits)
|
|
2655
|
+
}),
|
|
2656
|
+
params: Z.Object({ id: Z.String() }),
|
|
2657
|
+
response: { 200: Z.Object({ message: Z.String() }) },
|
|
2658
|
+
url: "/app/:id"
|
|
2659
|
+
}, Wl = /* @__PURE__ */ Q({
|
|
2660
|
+
authorize: () => Gl,
|
|
2661
|
+
client: () => Jl,
|
|
2662
|
+
me: () => ql,
|
|
2663
|
+
token: () => Kl
|
|
2664
|
+
}), Gl = {
|
|
2665
|
+
type: "post",
|
|
2666
|
+
body: Z.Object({
|
|
2667
|
+
client_id: Z.String(),
|
|
2668
|
+
redirect_uri: Z.String(),
|
|
2669
|
+
response_type: Z.Literal("code"),
|
|
2670
|
+
scope: Z.Optional(Z.String())
|
|
2671
|
+
}),
|
|
2672
|
+
response: { 200: Z.Object({ authorization_code: Z.String() }) },
|
|
2673
|
+
url: "/auth/authorize"
|
|
2674
|
+
}, Kl = {
|
|
2675
|
+
type: "post",
|
|
2676
|
+
body: Z.Union([Z.Object({
|
|
2677
|
+
client_id: Z.String(),
|
|
2678
|
+
client_secret: Z.String(),
|
|
2679
|
+
code: Z.String(),
|
|
2680
|
+
grant_type: Z.Literal("authorization_code"),
|
|
2681
|
+
redirect_uri: Z.String()
|
|
2682
|
+
}), Z.Object({
|
|
2683
|
+
client_id: Z.String(),
|
|
2684
|
+
client_secret: Z.String(),
|
|
2685
|
+
grant_type: Z.Literal("refresh_token"),
|
|
2686
|
+
refresh_token: Z.String()
|
|
2687
|
+
})]),
|
|
2688
|
+
response: { 200: Z.Object({
|
|
2689
|
+
access_token: Z.String(),
|
|
2690
|
+
expires_in: Z.Number(),
|
|
2691
|
+
refresh_token: Z.String(),
|
|
2692
|
+
token_type: Z.Literal("Bearer")
|
|
2693
|
+
}) },
|
|
2694
|
+
url: "/auth/token"
|
|
2695
|
+
}, ql = {
|
|
2696
|
+
type: "get",
|
|
2697
|
+
headers: Z.Object({ authorization: Z.String() }),
|
|
2698
|
+
response: { 200: Z.Object({
|
|
2699
|
+
id: Z.String(),
|
|
2700
|
+
mail: Z.String()
|
|
2701
|
+
}) },
|
|
2702
|
+
url: "/auth/me"
|
|
2703
|
+
}, Jl = {
|
|
2704
|
+
type: "get",
|
|
2705
|
+
querystring: Z.Object({
|
|
2706
|
+
client_id: Z.String(),
|
|
2707
|
+
redirect_uri: Z.String()
|
|
2708
|
+
}),
|
|
2709
|
+
response: { 200: Z.Object({ client_name: Z.String() }) },
|
|
2710
|
+
url: "/auth/client"
|
|
2711
|
+
}, Yl = /* @__PURE__ */ Q({
|
|
2712
|
+
get: () => Zl,
|
|
2713
|
+
update: () => Ql
|
|
2714
|
+
}), Xl = Z.Object({ done: Z.Array(Z.String()) }), Zl = {
|
|
2715
|
+
type: "get",
|
|
2716
|
+
response: { 200: Xl },
|
|
2717
|
+
url: "/challenge"
|
|
2718
|
+
}, Ql = {
|
|
2719
|
+
type: "post",
|
|
2720
|
+
body: Xl,
|
|
2721
|
+
response: { 200: Xl },
|
|
2722
|
+
url: "/challenge"
|
|
2723
|
+
}, $l = /* @__PURE__ */ Q({
|
|
2724
|
+
build: () => eu,
|
|
2725
|
+
compile: () => tu,
|
|
2726
|
+
download: () => nu
|
|
2727
|
+
}), eu = {
|
|
2728
|
+
type: "post",
|
|
2729
|
+
body: Z.Object({
|
|
2730
|
+
entry: Z.Optional(Z.String()),
|
|
2731
|
+
key: Z.String(),
|
|
2732
|
+
script: Z.Unknown()
|
|
2733
|
+
}),
|
|
2734
|
+
params: Z.Object({ type: Z.Union([Z.Literal("main"), Z.Literal("logic")]) }),
|
|
2735
|
+
response: { 200: Z.Object({
|
|
2736
|
+
code: Z.String(),
|
|
2737
|
+
message: Z.String()
|
|
2738
|
+
}) },
|
|
2739
|
+
url: "/compiler/build/:type"
|
|
2740
|
+
}, tu = {
|
|
2741
|
+
type: "post",
|
|
2742
|
+
body: Z.Object({ target: Z.Union([
|
|
2743
|
+
Z.Literal("source"),
|
|
2744
|
+
Z.Literal("export"),
|
|
2745
|
+
Z.Literal("web")
|
|
2746
|
+
]) }),
|
|
2747
|
+
params: Z.Object({ id: Z.String() }),
|
|
2748
|
+
response: { 200: Z.Object({
|
|
2749
|
+
message: Z.String(),
|
|
2750
|
+
target: Z.String()
|
|
2751
|
+
}) },
|
|
2752
|
+
url: "/compiler/compile/:id"
|
|
2753
|
+
}, nu = {
|
|
2754
|
+
type: "get",
|
|
2755
|
+
params: Z.Object({
|
|
2756
|
+
id: Z.String(),
|
|
2757
|
+
target: Z.Union([Z.Literal("source"), Z.Literal("export")])
|
|
2758
|
+
}),
|
|
2759
|
+
response: { 200: Z.Unknown() },
|
|
2760
|
+
url: "/compiler/download/:id/:target"
|
|
2761
|
+
}, ru = /* @__PURE__ */ Q({ latest: () => iu }), iu = {
|
|
2762
|
+
type: "get",
|
|
2763
|
+
dev: !0,
|
|
2764
|
+
querystring: Z.Object({
|
|
2765
|
+
arch: Z.Union([
|
|
2766
|
+
Z.Literal("x86_64"),
|
|
2767
|
+
Z.Literal("i686"),
|
|
2768
|
+
Z.Literal("aarch64"),
|
|
2769
|
+
Z.Literal("armv7")
|
|
2770
|
+
]),
|
|
2771
|
+
target: Z.Union([
|
|
2772
|
+
Z.Literal("windows"),
|
|
2773
|
+
Z.Literal("linux"),
|
|
2774
|
+
Z.Literal("darwin")
|
|
2775
|
+
]),
|
|
2776
|
+
version: Z.Optional(Z.String())
|
|
2777
|
+
}),
|
|
2778
|
+
response: { 200: Z.Object({
|
|
2779
|
+
notes: Z.String(),
|
|
2780
|
+
pub_date: Z.String(),
|
|
2781
|
+
signature: Z.String(),
|
|
2782
|
+
url: Z.String(),
|
|
2783
|
+
version: Z.String()
|
|
2784
|
+
}) },
|
|
2785
|
+
url: "/desktop/release/latest"
|
|
2786
|
+
}, au = /* @__PURE__ */ Q({
|
|
2787
|
+
create: () => ou,
|
|
2788
|
+
listServers: () => su
|
|
2789
|
+
}), ou = {
|
|
2790
|
+
type: "post",
|
|
2791
|
+
body: Z.Object({ serverId: Z.String({ format: "uuid" }) }),
|
|
2792
|
+
params: Z.Object({
|
|
2793
|
+
appId: Z.String({ format: "uuid" }),
|
|
2794
|
+
environment: Z.Union([Z.Literal("staging"), Z.Literal("production")])
|
|
2795
|
+
}),
|
|
2796
|
+
response: { 200: Z.Object({ id: Z.String({ format: "uuid" }) }) },
|
|
2797
|
+
url: "/deploy/:appId/:environment"
|
|
2798
|
+
}, su = {
|
|
2799
|
+
type: "get",
|
|
2800
|
+
response: { 200: Z.Array(Z.Object({
|
|
2801
|
+
id: Z.String({ format: "uuid" }),
|
|
2802
|
+
name: Z.String()
|
|
2803
|
+
})) },
|
|
2804
|
+
url: "/deploy/servers"
|
|
2805
|
+
}, cu = /* @__PURE__ */ Q({
|
|
2806
|
+
list: () => du,
|
|
2807
|
+
remove: () => uu,
|
|
2808
|
+
status: () => fu,
|
|
2809
|
+
upload: () => lu
|
|
2810
|
+
}), lu = {
|
|
2811
|
+
type: "post",
|
|
2812
|
+
body: Z.Object({
|
|
2813
|
+
file: Z.Object({
|
|
2814
|
+
filename: Z.String(),
|
|
2815
|
+
mimetype: Z.String()
|
|
2816
|
+
}),
|
|
2817
|
+
project: Z.Object({ value: Z.String() })
|
|
2818
|
+
}),
|
|
2819
|
+
multipart: !0,
|
|
2820
|
+
response: { 200: Z.Object({
|
|
2821
|
+
name: Z.String(),
|
|
2822
|
+
mimeType: Z.String(),
|
|
2823
|
+
target: Z.String()
|
|
2824
|
+
}) },
|
|
2825
|
+
url: "/file/upload"
|
|
2826
|
+
}, uu = {
|
|
2827
|
+
type: "post",
|
|
2828
|
+
body: Z.Object({ target: Z.String() }),
|
|
2829
|
+
response: { 200: Z.Object({ message: Z.String() }) },
|
|
2830
|
+
url: "/file/remove"
|
|
2831
|
+
}, du = {
|
|
2832
|
+
type: "get",
|
|
2833
|
+
querystring: Z.Object({
|
|
2834
|
+
limit: Z.Optional(Z.String()),
|
|
2835
|
+
search: Z.Optional(Z.String()),
|
|
2836
|
+
skip: Z.Optional(Z.String())
|
|
2837
|
+
}),
|
|
2838
|
+
response: { 200: Z.Object({
|
|
2839
|
+
result: Z.Array(Z.Object({
|
|
2840
|
+
id: Z.String(),
|
|
2841
|
+
name: Z.String(),
|
|
2842
|
+
mimeType: Z.String(),
|
|
2843
|
+
project: Z.Object({
|
|
2844
|
+
id: Z.String(),
|
|
2845
|
+
name: Z.String(),
|
|
2846
|
+
icon: Z.String()
|
|
2847
|
+
}),
|
|
2848
|
+
size: Z.Number(),
|
|
2849
|
+
target: Z.String()
|
|
2850
|
+
})),
|
|
2851
|
+
total: Z.Number()
|
|
2852
|
+
}) },
|
|
2853
|
+
url: "/file/list"
|
|
2854
|
+
}, fu = {
|
|
2855
|
+
type: "get",
|
|
2856
|
+
response: { 200: Z.Object({
|
|
2857
|
+
limit: Z.Number(),
|
|
2858
|
+
total: Z.Number()
|
|
2859
|
+
}) },
|
|
2860
|
+
url: "/file/status"
|
|
2861
|
+
}, pu = /* @__PURE__ */ Q({ googleAuth: () => mu }), mu = {
|
|
2862
|
+
type: "get",
|
|
2863
|
+
querystring: Z.Object({
|
|
2864
|
+
code: Z.Optional(Z.String()),
|
|
2865
|
+
scope: Z.Optional(Z.String()),
|
|
2866
|
+
state: Z.Optional(Z.String())
|
|
2867
|
+
}),
|
|
2868
|
+
response: { 200: Z.Object({ token: Z.Optional(Z.String()) }) },
|
|
2869
|
+
url: "/integrations/google/auth"
|
|
2870
|
+
}, hu = /* @__PURE__ */ Q({
|
|
2871
|
+
check: () => yu,
|
|
2872
|
+
create: () => gu,
|
|
2873
|
+
list: () => _u,
|
|
2874
|
+
remove: () => vu
|
|
2875
|
+
}), gu = {
|
|
2876
|
+
type: "post",
|
|
2877
|
+
body: Z.Object({ domain: Z.String() }),
|
|
2878
|
+
response: { 200: Z.Object({
|
|
2879
|
+
key: $.keyConfig,
|
|
2880
|
+
message: Z.String()
|
|
2881
|
+
}) },
|
|
2882
|
+
url: "/key-config"
|
|
2883
|
+
}, _u = {
|
|
2884
|
+
type: "get",
|
|
2885
|
+
response: { 200: Z.Array($.keyConfig) },
|
|
2886
|
+
url: "/key-config"
|
|
2887
|
+
}, vu = {
|
|
2888
|
+
type: "delete",
|
|
2889
|
+
params: Z.Object({ id: Z.String() }),
|
|
2890
|
+
response: { 200: Z.Object({ message: Z.String() }) },
|
|
2891
|
+
url: "/key-config/:id"
|
|
2892
|
+
}, yu = {
|
|
2893
|
+
type: "post",
|
|
2894
|
+
body: Z.Object({
|
|
2895
|
+
domain: Z.String(),
|
|
2896
|
+
key: Z.String()
|
|
2897
|
+
}),
|
|
2898
|
+
dev: !0,
|
|
2899
|
+
response: { 200: Z.Object({ message: Z.String() }) },
|
|
2900
|
+
url: "/key-config/check"
|
|
2901
|
+
}, bu = /* @__PURE__ */ Q({
|
|
2902
|
+
check: () => wu,
|
|
2903
|
+
link: () => Cu,
|
|
2904
|
+
list: () => Tu,
|
|
2905
|
+
reset: () => Su
|
|
2906
|
+
}), xu = Z.String({ pattern: "^v1:[0-9a-f]{64}$" }), Su = {
|
|
2907
|
+
type: "post",
|
|
2908
|
+
body: Z.Object({ id: Z.String() }),
|
|
2909
|
+
response: { 200: Z.Object({ message: Z.String() }) },
|
|
2910
|
+
url: "/license/reset"
|
|
2911
|
+
}, Cu = {
|
|
2912
|
+
type: "post",
|
|
2913
|
+
body: Z.Object({
|
|
2914
|
+
name: Z.String(),
|
|
2915
|
+
fingerprint: xu,
|
|
2916
|
+
key: Z.String()
|
|
2917
|
+
}),
|
|
2918
|
+
dev: !0,
|
|
2919
|
+
response: { 200: Z.Object({ message: Z.String() }) },
|
|
2920
|
+
url: "/license/link"
|
|
2921
|
+
}, wu = {
|
|
2922
|
+
type: "post",
|
|
2923
|
+
body: Z.Object({
|
|
2924
|
+
fingerprint: xu,
|
|
2925
|
+
key: Z.String()
|
|
2926
|
+
}),
|
|
2927
|
+
dev: !0,
|
|
2928
|
+
response: { 200: Z.Object({
|
|
2929
|
+
mail: Z.Optional(Z.String()),
|
|
2930
|
+
valid: Z.Boolean(),
|
|
2931
|
+
version: Z.Optional(Z.String())
|
|
2932
|
+
}) },
|
|
2933
|
+
url: "/license/check"
|
|
2934
|
+
}, Tu = {
|
|
2935
|
+
type: "get",
|
|
2936
|
+
response: { 200: Z.Array(Z.Object({
|
|
2937
|
+
id: Z.String(),
|
|
2938
|
+
name: Z.String(),
|
|
2939
|
+
expirationDate: Al,
|
|
2940
|
+
key: Z.String(),
|
|
2941
|
+
lastUsed: Al,
|
|
2942
|
+
version: Z.String()
|
|
2943
|
+
})) },
|
|
2944
|
+
url: "/license/list"
|
|
2945
|
+
}, Eu = /* @__PURE__ */ Q({
|
|
2946
|
+
activate: () => Du,
|
|
2947
|
+
create: () => Ou,
|
|
2948
|
+
signup: () => ku
|
|
2949
|
+
}), Du = {
|
|
2950
|
+
type: "get",
|
|
2951
|
+
params: Z.Object({
|
|
2952
|
+
id: Z.String(),
|
|
2953
|
+
token: Z.String()
|
|
2954
|
+
}),
|
|
2955
|
+
response: { 200: Z.Object({ message: Z.String() }) },
|
|
2956
|
+
url: "/magiclink/activate/:id/:token"
|
|
2957
|
+
}, Ou = {
|
|
2958
|
+
type: "post",
|
|
2959
|
+
body: Z.Object({ mail: Z.String({ format: "email" }) }),
|
|
2960
|
+
response: { 200: Z.Object({
|
|
2961
|
+
expirationDate: Z.String(),
|
|
2962
|
+
message: Z.String()
|
|
2963
|
+
}) },
|
|
2964
|
+
url: "/magiclink/create"
|
|
2965
|
+
}, ku = {
|
|
2966
|
+
type: "post",
|
|
2967
|
+
body: Z.Object({ mail: Z.String({ format: "email" }) }),
|
|
2968
|
+
response: { 200: Z.Object({
|
|
2969
|
+
expirationDate: Z.String(),
|
|
2970
|
+
message: Z.String()
|
|
2971
|
+
}) },
|
|
2972
|
+
url: "/magiclink/signup"
|
|
2973
|
+
}, Au = /* @__PURE__ */ Q({
|
|
2974
|
+
checkout: () => ju,
|
|
2975
|
+
portal: () => Mu
|
|
2976
|
+
}), ju = {
|
|
2977
|
+
type: "post",
|
|
2978
|
+
body: Z.Object({ plan: Z.Union([Z.Literal("pro"), Z.Literal("org")]) }),
|
|
2979
|
+
response: { 200: Z.Object({
|
|
2980
|
+
message: Z.String(),
|
|
2981
|
+
redirection: Z.String()
|
|
2982
|
+
}) },
|
|
2983
|
+
url: "/payment/checkout"
|
|
2984
|
+
}, Mu = {
|
|
2985
|
+
type: "post",
|
|
2986
|
+
response: { 200: Z.Object({
|
|
2987
|
+
message: Z.String(),
|
|
2988
|
+
redirection: Z.String()
|
|
2989
|
+
}) },
|
|
2990
|
+
url: "/payment/portal"
|
|
2991
|
+
}, Nu = /* @__PURE__ */ Q({
|
|
2992
|
+
create: () => Pu,
|
|
2993
|
+
edit: () => Lu,
|
|
2994
|
+
list: () => Fu,
|
|
2995
|
+
proxy: () => zu,
|
|
2996
|
+
remove: () => Iu,
|
|
2997
|
+
star: () => Ru
|
|
2998
|
+
}), Pu = {
|
|
2999
|
+
type: "post",
|
|
3000
|
+
body: Z.Object({
|
|
3001
|
+
icon: Z.String(),
|
|
3002
|
+
template: Z.Union([
|
|
3003
|
+
Z.Literal("default"),
|
|
3004
|
+
Z.Literal("ferris-wheel"),
|
|
3005
|
+
Z.Literal("frontend"),
|
|
3006
|
+
Z.Literal("nuxt"),
|
|
3007
|
+
Z.Literal("testing")
|
|
3008
|
+
]),
|
|
3009
|
+
title: Z.String()
|
|
3010
|
+
}),
|
|
3011
|
+
response: { 200: Z.Object({
|
|
3012
|
+
message: Z.String(),
|
|
3013
|
+
project: $.publicProject
|
|
3014
|
+
}) },
|
|
3015
|
+
url: "/project/create"
|
|
3016
|
+
}, Fu = {
|
|
3017
|
+
type: "get",
|
|
3018
|
+
params: Z.Object({ type: Z.Union([
|
|
3019
|
+
Z.Literal("mine"),
|
|
3020
|
+
Z.Literal("popular"),
|
|
3021
|
+
Z.Literal("newest"),
|
|
3022
|
+
Z.Literal("random"),
|
|
3023
|
+
Z.Literal("search")
|
|
3024
|
+
]) }),
|
|
3025
|
+
querystring: Z.Object({
|
|
3026
|
+
limit: Z.Optional(Z.Number()),
|
|
3027
|
+
search: Z.Optional(Z.String()),
|
|
3028
|
+
skip: Z.Optional(Z.Number())
|
|
3029
|
+
}),
|
|
3030
|
+
response: { 200: Z.Object({ projects: Z.Array($.publicProject) }) },
|
|
3031
|
+
url: "/project/list/:type"
|
|
3032
|
+
}, Iu = {
|
|
3033
|
+
type: "delete",
|
|
3034
|
+
params: Z.Object({ id: Z.String() }),
|
|
3035
|
+
response: { 200: Z.Object({ message: Z.String() }) },
|
|
3036
|
+
url: "/project/remove/:id"
|
|
3037
|
+
}, Lu = {
|
|
3038
|
+
type: "post",
|
|
3039
|
+
body: $.privateProject,
|
|
3040
|
+
response: { 200: Z.Object({ message: Z.String() }) },
|
|
3041
|
+
url: "/project/edit"
|
|
3042
|
+
}, Ru = {
|
|
3043
|
+
type: "post",
|
|
3044
|
+
body: Z.Object({
|
|
3045
|
+
id: Z.String(),
|
|
3046
|
+
like: Z.Boolean()
|
|
3047
|
+
}),
|
|
3048
|
+
response: { 200: Z.Object({ message: Z.String() }) },
|
|
3049
|
+
url: "/project/star"
|
|
3050
|
+
}, zu = {
|
|
3051
|
+
type: "post",
|
|
3052
|
+
body: Z.Object({
|
|
3053
|
+
body: Z.Optional(Z.Unknown()),
|
|
3054
|
+
headers: Z.Optional(Z.Record(Z.String(), Z.String())),
|
|
3055
|
+
method: Z.Optional(Z.Union([
|
|
3056
|
+
Z.Literal("GET"),
|
|
3057
|
+
Z.Literal("POST"),
|
|
3058
|
+
Z.Literal("PUT"),
|
|
3059
|
+
Z.Literal("DELETE")
|
|
3060
|
+
])),
|
|
3061
|
+
url: Z.String({ format: "uri" })
|
|
3062
|
+
}),
|
|
3063
|
+
response: { 200: Z.Unknown() },
|
|
3064
|
+
url: "/project/proxy"
|
|
3065
|
+
}, Bu = /* @__PURE__ */ Q({
|
|
3066
|
+
compile: () => Hu,
|
|
3067
|
+
get: () => Vu,
|
|
3068
|
+
update: () => Uu
|
|
3069
|
+
}), Vu = {
|
|
3070
|
+
type: "get",
|
|
3071
|
+
params: Z.Object({
|
|
3072
|
+
id: Z.String(),
|
|
3073
|
+
script: Z.String()
|
|
3074
|
+
}),
|
|
3075
|
+
response: { 200: Z.String() },
|
|
3076
|
+
url: "/script/:id/:script"
|
|
3077
|
+
}, Hu = {
|
|
3078
|
+
type: "post",
|
|
3079
|
+
params: Z.Object({
|
|
3080
|
+
id: Z.String(),
|
|
3081
|
+
script: Z.String()
|
|
3082
|
+
}),
|
|
3083
|
+
response: { 200: Z.Object({ message: Z.String() }) },
|
|
3084
|
+
url: "/script/:id/:script/compile"
|
|
3085
|
+
}, Uu = {
|
|
3086
|
+
type: "post",
|
|
3087
|
+
body: Z.Object({ autoReload: Z.Optional(Z.Boolean()) }),
|
|
3088
|
+
params: Z.Object({
|
|
3089
|
+
id: Z.String(),
|
|
3090
|
+
script: Z.String()
|
|
3091
|
+
}),
|
|
3092
|
+
response: { 200: Z.Object({ message: Z.String() }) },
|
|
3093
|
+
url: "/script/:id/:script/update"
|
|
3094
|
+
}, Wu = /* @__PURE__ */ Q({ tick: () => Gu }), Gu = {
|
|
3095
|
+
type: "post",
|
|
3096
|
+
body: Z.Object({
|
|
3097
|
+
data: Z.Optional(Z.Unknown()),
|
|
3098
|
+
scope: Z.String()
|
|
3099
|
+
}),
|
|
3100
|
+
response: { 200: Z.Object({}) },
|
|
3101
|
+
url: "/turnstile/tick"
|
|
3102
|
+
}, Ku = /* @__PURE__ */ Q({
|
|
3103
|
+
acceptTerms: () => Yu,
|
|
3104
|
+
confirmAccountDeletion: () => Qu,
|
|
3105
|
+
disconnect: () => $u,
|
|
3106
|
+
get: () => Ju,
|
|
3107
|
+
ping: () => qu,
|
|
3108
|
+
requestAccountDeletion: () => Zu,
|
|
3109
|
+
unsubscribe: () => td,
|
|
3110
|
+
update: () => Xu,
|
|
3111
|
+
waitlist: () => ed
|
|
3112
|
+
}), qu = {
|
|
3113
|
+
type: "get",
|
|
3114
|
+
response: { 200: Z.Object({
|
|
3115
|
+
message: Z.String(),
|
|
3116
|
+
user: Z.Optional($.user)
|
|
3117
|
+
}) },
|
|
3118
|
+
url: "/user/ping"
|
|
3119
|
+
}, Ju = {
|
|
3120
|
+
type: "get",
|
|
3121
|
+
response: { 200: $.user },
|
|
3122
|
+
url: "/user"
|
|
3123
|
+
}, Yu = {
|
|
3124
|
+
type: "post",
|
|
3125
|
+
body: Z.Object({ termsVersion: Z.String() }),
|
|
3126
|
+
response: { 200: Z.Object({ message: Z.String() }) },
|
|
3127
|
+
url: "/user/terms/accept"
|
|
3128
|
+
}, Xu = {
|
|
3129
|
+
type: "post",
|
|
3130
|
+
body: Z.Partial($.user),
|
|
3131
|
+
response: { 200: Z.Object({ message: Z.String() }) },
|
|
3132
|
+
url: "/user"
|
|
3133
|
+
}, Zu = {
|
|
3134
|
+
type: "post",
|
|
3135
|
+
response: { 200: Z.Object({ message: Z.String() }) },
|
|
3136
|
+
url: "/user/account-deletion/request"
|
|
3137
|
+
}, Qu = {
|
|
3138
|
+
type: "delete",
|
|
3139
|
+
params: Z.Object({ token: Z.String() }),
|
|
3140
|
+
response: { 200: Z.Object({ message: Z.String() }) },
|
|
3141
|
+
url: "/user/account-deletion/:token"
|
|
3142
|
+
}, $u = {
|
|
3143
|
+
type: "get",
|
|
3144
|
+
response: { 200: Z.Object({ message: Z.String() }) },
|
|
3145
|
+
url: "/user/disconnect"
|
|
3146
|
+
}, ed = {
|
|
3147
|
+
type: "post",
|
|
3148
|
+
body: Z.Object({ mail: Z.String({ format: "email" }) }),
|
|
3149
|
+
response: { 200: Z.Object({ message: Z.String() }) },
|
|
3150
|
+
url: "/user/waitlist"
|
|
3151
|
+
}, td = {
|
|
3152
|
+
type: "post",
|
|
3153
|
+
body: Z.Object({ "List-Unsubscribe": Z.Union([Z.Literal("One-Click"), Z.Object({ value: Z.Literal("One-Click") })]) }),
|
|
3154
|
+
params: Z.Object({ token: Z.String() }),
|
|
3155
|
+
response: { 200: Z.Object({ message: Z.String() }) },
|
|
3156
|
+
url: "/user/unsubscribe/:token"
|
|
3157
|
+
}, nd = {
|
|
3158
|
+
app: Vl,
|
|
3159
|
+
auth: Wl,
|
|
3160
|
+
challenge: Yl,
|
|
3161
|
+
compiler: $l,
|
|
3162
|
+
desktop: ru,
|
|
3163
|
+
deploy: au,
|
|
3164
|
+
file: cu,
|
|
3165
|
+
integrations: pu,
|
|
3166
|
+
keyConfig: hu,
|
|
3167
|
+
license: bu,
|
|
3168
|
+
magiclink: Eu,
|
|
3169
|
+
payment: Au,
|
|
3170
|
+
project: Nu,
|
|
3171
|
+
script: Bu,
|
|
3172
|
+
turnstile: Wu,
|
|
3173
|
+
user: Ku
|
|
3174
|
+
}, rd = {};
|
|
3175
|
+
for (let e of Object.keys(nd)) {
|
|
3176
|
+
rd[e] = {};
|
|
3177
|
+
for (let t of Object.keys(nd[e])) {
|
|
3178
|
+
let n = nd[e][t];
|
|
3179
|
+
rd[e][t] = async (e = {}) => {
|
|
3180
|
+
let t = new URL(kl.getBaseUrl({ dev: n.dev }) + n.url);
|
|
3181
|
+
if (n.params && e.params) for (let r of Object.keys(n.params.properties)) t.href = t.href.replace(`:${r}`, e.params[r]);
|
|
3182
|
+
if (e.querystring) for (let n of Object.keys(e.querystring)) e.querystring[n] && t.searchParams.append(n, e.querystring[n].toString());
|
|
3183
|
+
let r = kl[n.type];
|
|
3184
|
+
n.multipart && (r = kl.multipart);
|
|
3185
|
+
let i = await r(t.href, e.body), a = await id(i);
|
|
3186
|
+
if (i.status >= 400) throw Error(`Error ${i.status} (${i.statusText}): ${a.message || a}`);
|
|
3187
|
+
return a;
|
|
3188
|
+
};
|
|
3189
|
+
}
|
|
3190
|
+
}
|
|
3191
|
+
function id(e) {
|
|
3192
|
+
return e.headers.get("Content-Type")?.startsWith("application/json") ? e.json() : e.text();
|
|
3193
|
+
}
|
|
3194
|
+
function ad(e, ...t) {
|
|
3195
|
+
return e?.type === s.union ? e.elements.length > 0 && e.elements.every((e) => ad(e, ...t)) : !!(e && t.includes(e.type));
|
|
3196
|
+
}
|
|
3197
|
+
function od(e) {
|
|
3198
|
+
let t = { ...e };
|
|
3199
|
+
return delete t.default, delete t.name, delete t.optional, t;
|
|
3200
|
+
}
|
|
3201
|
+
function sd(e, t) {
|
|
3202
|
+
return {
|
|
3203
|
+
...od(e),
|
|
3204
|
+
name: t
|
|
3205
|
+
};
|
|
3206
|
+
}
|
|
3207
|
+
function cd(e, t, n, r, i) {
|
|
3208
|
+
return {
|
|
3209
|
+
accepts: (e) => ad(e, ...n),
|
|
3210
|
+
argPrecedence: t + 1,
|
|
3211
|
+
args: (e) => [sd(e, "Value")],
|
|
3212
|
+
evaluate: r,
|
|
3213
|
+
inputPrecedence: t,
|
|
3214
|
+
output: i ?? ((e) => od(e)),
|
|
3215
|
+
precedence: t,
|
|
3216
|
+
print: (t, [n]) => `${t} ${e} ${n}`
|
|
3217
|
+
};
|
|
3218
|
+
}
|
|
3219
|
+
function ld(e, t, n, r) {
|
|
3220
|
+
return cd(e, t, n, r, () => c.boolean());
|
|
3221
|
+
}
|
|
3222
|
+
var ud = [
|
|
3223
|
+
s.boolean,
|
|
3224
|
+
s.number,
|
|
3225
|
+
s.string,
|
|
3226
|
+
s.unknown
|
|
3227
|
+
], dd = [s.number, s.string];
|
|
3228
|
+
ld("===", 8, ud, (e, [t]) => e === t), ld("!==", 8, ud, (e, [t]) => e !== t), ld(">", 9, dd, (e, [t]) => e > t), ld(">=", 9, dd, (e, [t]) => e >= t), ld("<", 9, dd, (e, [t]) => e < t), ld("<=", 9, dd, (e, [t]) => e <= t), cd("&&", 4, [s.boolean], (e, [t]) => !!(e && t)), cd("||", 3, ud, (e, [t]) => e || t), cd("+", 11, [s.number, s.string], (e, [t]) => e + t), cd("-", 11, [s.number], (e, [t]) => e - t), cd("*", 12, [s.number], (e, [t]) => e * t), cd("/", 12, [s.number], (e, [t]) => e / t), cd("%", 12, [s.number], (e, [t]) => e % t), s.boolean, s.number, s.unknown, c.string(), s.boolean, s.string, s.unknown, c.number(), s.number, s.string, s.unknown, c.boolean();
|
|
3229
|
+
function fd(e) {
|
|
3230
|
+
return e;
|
|
3231
|
+
}
|
|
3232
|
+
//#endregion
|
|
3233
|
+
//#region node_modules/.pnpm/@fortawesome+free-solid-svg-icons@7.3.1/node_modules/@fortawesome/free-solid-svg-icons/index.mjs
|
|
3234
|
+
var pd = {
|
|
3235
|
+
prefix: "fas",
|
|
3236
|
+
iconName: "palette",
|
|
3237
|
+
icon: [
|
|
3238
|
+
512,
|
|
3239
|
+
512,
|
|
3240
|
+
[127912],
|
|
3241
|
+
"f53f",
|
|
3242
|
+
"M512 256c0 .9 0 1.8 0 2.7-.4 36.5-33.6 61.3-70.1 61.3L344 320c-26.5 0-48 21.5-48 48 0 3.4 .4 6.7 1 9.9 2.1 10.2 6.5 20 10.8 29.9 6.1 13.8 12.1 27.5 12.1 42 0 31.8-21.6 60.7-53.4 62-3.5 .1-7 .2-10.6 .2-141.4 0-256-114.6-256-256S114.6 0 256 0 512 114.6 512 256zM128 288a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zm0-96a32 32 0 1 0 0-64 32 32 0 1 0 0 64zM288 96a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zm96 96a32 32 0 1 0 0-64 32 32 0 1 0 0 64z"
|
|
3243
|
+
]
|
|
3244
|
+
}, md = "# Gradient/Gradient\r\n\r\nAn animated, grainy WebGL gradient used as a background. Put content (headings, buttons…) in the default slot; it renders on top. Give the component a size (e.g. full width, `100vh` height for a hero).\r\n\r\n## Properties\r\n- `type`: `flow` (soft stretched bands, monopo-like), `irregular` (round blobs), `edgy` (blobs with sharp folds), `multicolor` (warped linear gradient), `radial`, `banding` (stepped stripes), `duotone` (two colours).\r\n- `palette`: `ember`, `aurora`, `sunset`, `dusk`, `citrus`, `coral`, `ocean`, `mono`, or `custom`.\r\n- `colors`: 2–6 colours, only used when `palette` is `custom`. For `flow`, the first colour is the background.\r\n- `motion`: `random` (slow endless drift), `cursor` (applies `cursorEffect` around the pointer while the rest drifts slowly), `scroll` (moves with scroll position), `none` (static).\r\n- `speed`: 0–100 (%), default 20.\r\n- `cursorEffect` (cursor motion only): `lens` (magnifies under the pointer, default), `pinch` (shrinks towards the pointer), `smear` (colours trail behind the pointer like a brush).\r\n- `cursorRadius`: 5–100 (% of the component's short side), default 30.\r\n- `cursorStrength`: 0–200 (%), default 100.\r\n- `grain`: 0–0.3, default 0.04.\r\n- `animateGrain`: `true` re-rolls the grain at 24 fps (film look). Default `false` (static grain).\r\n- `seed`: any number; changes the shapes.\r\n- `angle`: degrees; overrides the type's direction.\r\n- `bands`: 2–24, `banding` only.\r\n\r\n## Good pairings\r\n`flow` + `ember`, `irregular` + `aurora`, `edgy` + `sunset`, `multicolor` + `dusk`, `radial` + `ocean`, `banding` + `coral`, `duotone` + `citrus`.\r\n\r\nMotion is disabled automatically for users who prefer reduced motion.\r\n", hd = {
|
|
3245
|
+
name: "@luna-park/plugin-gradient",
|
|
3246
|
+
version: "1.0.0",
|
|
3247
|
+
private: !1,
|
|
3248
|
+
description: "Animated WebGL gradient backgrounds for Luna Park",
|
|
3249
|
+
keywords: [
|
|
3250
|
+
"luna-park",
|
|
3251
|
+
"plugin",
|
|
3252
|
+
"gradient",
|
|
3253
|
+
"webgl"
|
|
3254
|
+
],
|
|
3255
|
+
homepage: "https://luna-park.app",
|
|
3256
|
+
repository: {
|
|
3257
|
+
type: "git",
|
|
3258
|
+
url: "https://github.com/lunapark/plugin-gradient"
|
|
3259
|
+
},
|
|
3260
|
+
author: {
|
|
3261
|
+
name: "Luna Park",
|
|
3262
|
+
url: "https://luna-park.app"
|
|
3263
|
+
},
|
|
3264
|
+
type: "module",
|
|
3265
|
+
exports: {
|
|
3266
|
+
".": { import: "./dist/index.js" },
|
|
3267
|
+
"./runtime": { import: "./dist/runtime.js" }
|
|
3268
|
+
},
|
|
3269
|
+
module: "./dist/index.js",
|
|
3270
|
+
files: ["dist/**", "src/logo.svg"],
|
|
3271
|
+
scripts: {
|
|
3272
|
+
build: "vite build",
|
|
3273
|
+
dev: "vite build --watch",
|
|
3274
|
+
"dev:story": "histoire dev",
|
|
3275
|
+
preview: "luna-preview",
|
|
3276
|
+
typecheck: "vue-tsc -b",
|
|
3277
|
+
lint: "eslint .",
|
|
3278
|
+
"lint:fix": "eslint . --fix"
|
|
3279
|
+
},
|
|
3280
|
+
dependencies: {
|
|
3281
|
+
"@fortawesome/free-solid-svg-icons": "^7.1.0",
|
|
3282
|
+
vue: "^3.5.43"
|
|
3283
|
+
},
|
|
3284
|
+
devDependencies: {
|
|
3285
|
+
"@histoire/plugin-vue": "1.0.0-beta.1",
|
|
3286
|
+
"@luna-park/design": "^1.3.0",
|
|
3287
|
+
"@luna-park/eslint-config": "^1.4.3",
|
|
3288
|
+
"@luna-park/plugin": "^1.7.0",
|
|
3289
|
+
"@types/node": "^26.6.4",
|
|
3290
|
+
"@vitejs/plugin-vue": "^6.0.9",
|
|
3291
|
+
"@vue/tsconfig": "^0.9.1",
|
|
3292
|
+
eslint: "^10.12.0",
|
|
3293
|
+
globals: "^17.13.0",
|
|
3294
|
+
histoire: "1.0.0-beta.1",
|
|
3295
|
+
typescript: "^6.0.3",
|
|
3296
|
+
"typescript-eslint": "^8.71.1",
|
|
3297
|
+
vite: "^8.3.3",
|
|
3298
|
+
"vite-plugin-css-injected-by-js": "^5.0.2",
|
|
3299
|
+
"vue-tsc": "^3.3.12"
|
|
3300
|
+
},
|
|
3301
|
+
peerDependencies: {
|
|
3302
|
+
"@luna-park/design": "^1.3.0",
|
|
3303
|
+
vue: "^3.5.43"
|
|
3304
|
+
}
|
|
3305
|
+
}, gd = "gradient", _d = hd.name, vd = hd.version, yd = fd({
|
|
3306
|
+
id: gd,
|
|
3307
|
+
name: "Gradient",
|
|
3308
|
+
description: "Animated WebGL gradient backgrounds.",
|
|
3309
|
+
icon: "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2027.5.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3csvg%20version='1.1'%20id='Calque_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%20100%20100'%20style='enable-background:new%200%200%20100%20100;'%20xml:space='preserve'%3e%3cstyle%20type='text/css'%3e%20.st0{clip-path:url(%23SVGID_00000047022933307920725830000016124621795394122405_);fill:url(%23SVGID_00000173862278939040857730000006968173594089226137_);}%20%3c/style%3e%3cg%3e%3cdefs%3e%3cpath%20id='SVGID_1_'%20d='M90.2,51c0,1.8-0.2,3.7-0.5,5.5c-0.2,1.3-1.9,1.9-2.8,0.9L69,39.4C58.5,29,41.5,29,31.1,39.4L13.1,57.4%20c-1,1-2.6,0.4-2.8-0.9c-3.7-22,12.3-43.9,34.9-46.4C69.2,7,91,26.8,90.2,51z%20M55.7,44.4c-3.6-1.5-7.7-1.5-11.3,0%20c-0.6,0.3-1,0.9-1,1.6v42.2c0,0.8,0.6,1.6,1.5,1.7c3.5,0.5,7,0.5,10.5,0c0.8-0.1,1.5-0.8,1.5-1.7V46%20C56.7,45.3,56.3,44.7,55.7,44.4z%20M83.2,70.3c-3.2-3.2-8.2-8.2-11.9-11.9c-1.1-1.1-2.9-0.3-2.9,1.2v23.3c0,1.3,1.4,2.1,2.5,1.4%20c4.9-3,9.2-7.1,12.4-11.9C83.9,71.7,83.8,70.8,83.2,70.3z%20M28.7,58.4C25,62.1,20,67.1,16.8,70.3c-0.6,0.6-0.6,1.5-0.2,2.1%20c3.2,4.8,7.5,8.9,12.4,11.9c1.1,0.7,2.5-0.1,2.5-1.4V59.5C31.6,58,29.8,57.3,28.7,58.4z'/%3e%3c/defs%3e%3cclipPath%20id='SVGID_00000176734456353677071660000015084933141304141444_'%3e%3cuse%20xlink:href='%23SVGID_1_'%20style='overflow:visible;'/%3e%3c/clipPath%3e%3cradialGradient%20id='SVGID_00000019658959786127304010000007409785301083503023_'%20cx='-322.5985'%20cy='231.969'%20r='47.68'%20fx='-327.6757'%20fy='225.8638'%20gradientTransform='matrix(0.7606%200%200%200.7606%20295.3712%20-126.4447)'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0'%20style='stop-color:%23187BFF'/%3e%3cstop%20offset='1'%20style='stop-color:%230066F1'/%3e%3c/radialGradient%3e%3crect%20x='9.8'%20y='9.8'%20style='clip-path:url(%23SVGID_00000176734456353677071660000015084933141304141444_);fill:url(%23SVGID_00000019658959786127304010000007409785301083503023_);'%20width='80.4'%20height='80.4'/%3e%3c/g%3e%3c/svg%3e",
|
|
3310
|
+
color: "#e64f0f",
|
|
3311
|
+
llm: "# Gradient plugin\r\n\r\nAdds one component, `Gradient/Gradient`: an animated WebGL gradient background (with film grain) that wraps content. Use it for hero sections, cards or full-page backgrounds. Pick a `type` and a `palette` first; set `palette` to `custom` and fill `colors` to use brand colours. `motion` chooses what moves it (random drift, cursor, scroll, or static) and `speed` (0–100 %) how fast. In cursor mode, `cursorEffect`, `cursorRadius` and `cursorStrength` shape the effect around the pointer.\r\n",
|
|
3312
|
+
editor: { components: [{
|
|
3313
|
+
name: "Gradient/Gradient",
|
|
3314
|
+
build: {
|
|
3315
|
+
name: "LpgGradient",
|
|
3316
|
+
imports: [{
|
|
3317
|
+
name: "LpgGradient",
|
|
3318
|
+
from: `${_d}/runtime`
|
|
3319
|
+
}]
|
|
3320
|
+
},
|
|
3321
|
+
component: o,
|
|
3322
|
+
documentation: {
|
|
3323
|
+
description: "An animated WebGL gradient background. Content placed inside is rendered on top.",
|
|
3324
|
+
link: "https://github.com/lunapark/plugin-gradient"
|
|
3325
|
+
},
|
|
3326
|
+
icon: pd,
|
|
3327
|
+
llm: md,
|
|
3328
|
+
properties: {
|
|
3329
|
+
angle: c.number({
|
|
3330
|
+
description: "Main direction in degrees. Defaults to the type's own angle.",
|
|
3331
|
+
optional: !0,
|
|
3332
|
+
options: {
|
|
3333
|
+
max: 180,
|
|
3334
|
+
min: -180,
|
|
3335
|
+
step: 1,
|
|
3336
|
+
suffix: "°"
|
|
3337
|
+
}
|
|
3338
|
+
}),
|
|
3339
|
+
animateGrain: c.boolean({
|
|
3340
|
+
default: !1,
|
|
3341
|
+
description: "Animates the grain like film. Off: static grain.",
|
|
3342
|
+
optional: !0
|
|
3343
|
+
}),
|
|
3344
|
+
bands: c.number({
|
|
3345
|
+
default: 8,
|
|
3346
|
+
description: "Number of bands (Banding type only).",
|
|
3347
|
+
optional: !0,
|
|
3348
|
+
options: {
|
|
3349
|
+
max: 24,
|
|
3350
|
+
min: 2,
|
|
3351
|
+
step: 1
|
|
3352
|
+
}
|
|
3353
|
+
}),
|
|
3354
|
+
colors: c.array(c.string({ format: "color" }), {
|
|
3355
|
+
default: () => [
|
|
3356
|
+
"#16254b",
|
|
3357
|
+
"#e64f0f",
|
|
3358
|
+
"#aadfd9"
|
|
3359
|
+
],
|
|
3360
|
+
description: "Used when palette is Custom. 2 to 6 colours, from background to highlight.",
|
|
3361
|
+
optional: !0
|
|
3362
|
+
}),
|
|
3363
|
+
cursorEffect: c.string({
|
|
3364
|
+
default: "lens",
|
|
3365
|
+
description: "Effect around the pointer (Cursor motion only).",
|
|
3366
|
+
enum: t,
|
|
3367
|
+
optional: !0
|
|
3368
|
+
}),
|
|
3369
|
+
cursorRadius: c.number({
|
|
3370
|
+
default: 30,
|
|
3371
|
+
description: "Size of the cursor effect, in % of the component's short side (Cursor motion only).",
|
|
3372
|
+
optional: !0,
|
|
3373
|
+
options: {
|
|
3374
|
+
max: 100,
|
|
3375
|
+
min: 5,
|
|
3376
|
+
step: 1,
|
|
3377
|
+
suffix: "%"
|
|
3378
|
+
}
|
|
3379
|
+
}),
|
|
3380
|
+
cursorStrength: c.number({
|
|
3381
|
+
default: 100,
|
|
3382
|
+
description: "Intensity of the cursor effect (Cursor motion only).",
|
|
3383
|
+
optional: !0,
|
|
3384
|
+
options: {
|
|
3385
|
+
max: 200,
|
|
3386
|
+
min: 0,
|
|
3387
|
+
step: 5,
|
|
3388
|
+
suffix: "%"
|
|
3389
|
+
}
|
|
3390
|
+
}),
|
|
3391
|
+
grain: c.number({
|
|
3392
|
+
default: .04,
|
|
3393
|
+
description: "Film grain intensity.",
|
|
3394
|
+
optional: !0,
|
|
3395
|
+
options: {
|
|
3396
|
+
max: .3,
|
|
3397
|
+
min: 0,
|
|
3398
|
+
step: .01
|
|
3399
|
+
}
|
|
3400
|
+
}),
|
|
3401
|
+
motion: c.string({
|
|
3402
|
+
default: "random",
|
|
3403
|
+
description: "What moves the gradient.",
|
|
3404
|
+
enum: n
|
|
3405
|
+
}),
|
|
3406
|
+
palette: c.string({
|
|
3407
|
+
default: r,
|
|
3408
|
+
description: "Colour preset. Choose Custom to use your own colours.",
|
|
3409
|
+
enum: a
|
|
3410
|
+
}),
|
|
3411
|
+
seed: c.number({
|
|
3412
|
+
default: 0,
|
|
3413
|
+
description: "Changes the layout of the shapes.",
|
|
3414
|
+
optional: !0,
|
|
3415
|
+
options: { step: .1 }
|
|
3416
|
+
}),
|
|
3417
|
+
speed: c.number({
|
|
3418
|
+
default: 20,
|
|
3419
|
+
description: "Movement speed. 0% freezes it.",
|
|
3420
|
+
options: {
|
|
3421
|
+
max: 100,
|
|
3422
|
+
min: 0,
|
|
3423
|
+
step: 1,
|
|
3424
|
+
suffix: "%"
|
|
3425
|
+
}
|
|
3426
|
+
}),
|
|
3427
|
+
type: c.string({
|
|
3428
|
+
default: i,
|
|
3429
|
+
description: "Gradient style.",
|
|
3430
|
+
enum: e
|
|
3431
|
+
})
|
|
3432
|
+
},
|
|
3433
|
+
slots: { default: c.void() }
|
|
3434
|
+
}] },
|
|
3435
|
+
build: { frontImports: [{
|
|
3436
|
+
name: _d,
|
|
3437
|
+
version: vd
|
|
3438
|
+
}] }
|
|
3439
|
+
});
|
|
3440
|
+
//#endregion
|
|
3441
|
+
export { yd as default };
|