@oomol-lab/open-flow 0.1.0-alpha.10 → 0.1.0-alpha.13
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 +5 -1
- package/dist/browser/addNodeOptions-JRHMwVOl.js +9597 -0
- package/dist/browser/{change-Cu6pQIit.js → change-BATEvjif.js} +2 -2
- package/dist/browser/createResourceDialog-CWD62rU0.js +467 -0
- package/dist/browser/{esm-CvAs_mAS.js → esm-C04lx1pd.js} +1 -1
- package/dist/browser/flow-authoring-node.d.ts +2 -0
- package/dist/browser/flow-authoring.d.ts +1 -1
- package/dist/browser/flow-authoring.js +387 -126
- package/dist/browser/flow-change.d.ts +9 -4
- package/dist/browser/flow-change.js +49 -46
- package/dist/browser/{flowRunInputEditorStore-DXOyyY7o.js → flowRunInputEditorStore-BUwR9Vbp.js} +1615 -882
- package/dist/browser/{flowWorkspace-X_T_DcQf.js → flowWorkspace-_qaqIyDi.js} +18174 -16631
- package/dist/browser/languages-DgJehE1g.js +62 -0
- package/dist/browser/lib-C5Ipyfps.js +7856 -0
- package/dist/browser/main-DmjVyuWr.js +76 -0
- package/dist/browser/{markdownContent-BI-2PmDX.js → markdownContent-CX77lBFM.js} +4795 -4787
- package/dist/browser/theme.css +63 -0
- package/dist/browser/theme.css.d.ts +1 -0
- package/dist/browser/typeScriptSession-D5neIpug.js +2560 -0
- package/dist/browser/{createLucideIcon-COMgwa_u.js → useOpenInteractionType-CRgOHg5M.js} +2484 -2254
- package/dist/browser/workbench-contract.d.ts +2 -1
- package/dist/browser/workbench.css +1 -1
- package/dist/browser/workbench.d.ts +16 -1
- package/dist/browser/workbench.js +1492 -1307
- package/dist/common/control-api-conformance.js +39 -0
- package/dist/common/control-api-errors.d.ts +12 -0
- package/dist/common/control-api.d.ts +13 -0
- package/dist/common/control-api.js +120 -73
- package/dist/common/flow-encoding.d.ts +2 -2
- package/dist/common/flow-encoding.js +4 -1
- package/dist/common/flow-semantics.d.ts +2 -0
- package/dist/common/flow-semantics.js +869 -838
- package/dist/common/licenses.md +1 -25
- package/dist/common/localization.d.ts +21 -0
- package/dist/common/localization.js +62 -0
- package/dist/common/scheduler.d.ts +1 -0
- package/dist/common/scheduler.js +64 -50
- package/package.json +9 -1
- package/dist/browser/addNodeOptions-BwrMvPQC.js +0 -5230
- package/dist/browser/assets/typeScriptWorker-CaA4llbX.js +0 -59850
- package/dist/browser/createResourceDialog-YgMLylQz.js +0 -467
- package/dist/browser/field-BrEG-7ap.js +0 -312
- package/dist/browser/typeScriptSession-Dagu_tRs.js +0 -2549
package/dist/browser/{flowRunInputEditorStore-DXOyyY7o.js → flowRunInputEditorStore-BUwR9Vbp.js}
RENAMED
|
@@ -1,129 +1,130 @@
|
|
|
1
1
|
import { a as e, n as t, o as n, r, t as i } from "./rolldown-runtime-CEFd7nDs.js";
|
|
2
2
|
import { a, c as o, f as s, i as c, n as l, r as u, t as d, u as f } from "./dist-C46JByB-.js";
|
|
3
|
+
import { o as p, r as m } from "./languages-DgJehE1g.js";
|
|
3
4
|
//#region ../../node_modules/.bun/@wopjs+cast@0.1.16/node_modules/@wopjs/cast/dist/index.mjs
|
|
4
|
-
var
|
|
5
|
-
function
|
|
5
|
+
var h = (e) => e !== void 0, g = (e) => !!e, _ = (e) => e === !0 || e === !1, v = (e) => typeof e == "string", y = Array.isArray, b = (e) => typeof e == "object" && !!e, x = (e) => b(e) && !y(e), S = (e) => x(e) ? e : void 0, C = () => !0, w = (e) => !!(e && e.constructor && e.call && e.apply), T = (e) => w(e) || w(e?.dispose);
|
|
6
|
+
function E(e) {
|
|
6
7
|
try {
|
|
7
|
-
e && (
|
|
8
|
+
e && (w(e.dispose) ? e.dispose() : w(e) && e());
|
|
8
9
|
} catch (e) {
|
|
9
10
|
console.error(e);
|
|
10
11
|
}
|
|
11
12
|
}
|
|
12
|
-
var
|
|
13
|
-
function
|
|
13
|
+
var D = (e) => T(e) && w(e.abortable);
|
|
14
|
+
function O() {
|
|
14
15
|
let e;
|
|
15
16
|
function t() {
|
|
16
|
-
e ||= (e = 1, t._disposables_ = t._disposables_?.forEach(
|
|
17
|
+
e ||= (e = 1, t._disposables_ = t._disposables_?.forEach(E));
|
|
17
18
|
}
|
|
18
|
-
return t.dispose = t, t.keys =
|
|
19
|
+
return t.dispose = t, t.keys = j, t.size = ne, t.has = A, t.set = te, t.make = M, t.remove = ee, t.flush = k, t;
|
|
19
20
|
}
|
|
20
|
-
function
|
|
21
|
-
|
|
21
|
+
function k(e) {
|
|
22
|
+
E(e == null ? this : this.remove(e));
|
|
22
23
|
}
|
|
23
|
-
function
|
|
24
|
+
function A(e) {
|
|
24
25
|
return !!this._disposables_?.has(e);
|
|
25
26
|
}
|
|
26
|
-
function
|
|
27
|
+
function j() {
|
|
27
28
|
return (this._disposables_ || []).keys();
|
|
28
29
|
}
|
|
29
|
-
function
|
|
30
|
+
function M(e, t) {
|
|
30
31
|
let n = t();
|
|
31
32
|
if (n) return this.set(e, n);
|
|
32
33
|
}
|
|
33
|
-
function
|
|
34
|
+
function ee(e) {
|
|
34
35
|
let t = this._disposables_?.get(e);
|
|
35
36
|
if (t) return this._disposables_?.delete(e), t;
|
|
36
37
|
}
|
|
37
|
-
function
|
|
38
|
-
return this.flush(e),
|
|
38
|
+
function te(e, t) {
|
|
39
|
+
return this.flush(e), D(t) && t.abortable(() => this.remove(e)), (this._disposables_ ??= /* @__PURE__ */ new Map()).set(e, t), t;
|
|
39
40
|
}
|
|
40
|
-
function
|
|
41
|
+
function ne() {
|
|
41
42
|
return this._disposables_?.size || 0;
|
|
42
43
|
}
|
|
43
|
-
function
|
|
44
|
+
function N(e) {
|
|
44
45
|
function t() {
|
|
45
46
|
let { current: e } = t;
|
|
46
|
-
e && (t.current = null,
|
|
47
|
+
e && (t.current = null, E(e));
|
|
47
48
|
}
|
|
48
|
-
return t.current = e, t.dispose = t, t.is =
|
|
49
|
+
return t.current = e, t.dispose = t, t.is = re, t.set = oe, t.make = ie, t.remove = ae, t.flush = t, t;
|
|
49
50
|
}
|
|
50
|
-
function
|
|
51
|
+
function re(e) {
|
|
51
52
|
return Object.is(this.current, e);
|
|
52
53
|
}
|
|
53
|
-
function
|
|
54
|
+
function ie(e) {
|
|
54
55
|
let t = e();
|
|
55
56
|
if (t) return this.set(t);
|
|
56
57
|
}
|
|
57
|
-
function
|
|
58
|
+
function ae() {
|
|
58
59
|
let e = !!this.current;
|
|
59
60
|
return this.current = null, e;
|
|
60
61
|
}
|
|
61
|
-
function
|
|
62
|
-
return (!e || !this.is(e)) && (this.flush(), this.current = e,
|
|
62
|
+
function oe(e) {
|
|
63
|
+
return (!e || !this.is(e)) && (this.flush(), this.current = e, D(e) && e.abortable(() => {
|
|
63
64
|
this.is(e) && this.remove();
|
|
64
65
|
})), e;
|
|
65
66
|
}
|
|
66
|
-
function
|
|
67
|
+
function P(e) {
|
|
67
68
|
let t;
|
|
68
69
|
function n() {
|
|
69
|
-
t ||= (t = 1, n._disposables_ = n._disposables_?.forEach(
|
|
70
|
+
t ||= (t = 1, n._disposables_ = n._disposables_?.forEach(E));
|
|
70
71
|
}
|
|
71
|
-
return n.dispose = n, n.size =
|
|
72
|
+
return n.dispose = n, n.size = pe, n.has = ue, n.add = ce, n.make = de, n.remove = fe, n.flush = le, e && n.add(e), n;
|
|
72
73
|
}
|
|
73
|
-
function
|
|
74
|
-
this._disposables_?.has(e) || ((this._disposables_ ??= /* @__PURE__ */ new Set()).add(e),
|
|
74
|
+
function se(e) {
|
|
75
|
+
this._disposables_?.has(e) || ((this._disposables_ ??= /* @__PURE__ */ new Set()).add(e), D(e) && e.abortable(fe.bind(this, e)));
|
|
75
76
|
}
|
|
76
|
-
function
|
|
77
|
-
return Array.isArray(e) ? e.forEach(
|
|
77
|
+
function ce(e) {
|
|
78
|
+
return Array.isArray(e) ? e.forEach(se, this) : se.call(this, e), e;
|
|
78
79
|
}
|
|
79
|
-
function
|
|
80
|
-
|
|
80
|
+
function le(e) {
|
|
81
|
+
E(e ? this.remove(e) && e : this);
|
|
81
82
|
}
|
|
82
|
-
function
|
|
83
|
+
function ue(e) {
|
|
83
84
|
return !!this._disposables_?.has(e);
|
|
84
85
|
}
|
|
85
|
-
function
|
|
86
|
+
function de(e) {
|
|
86
87
|
let t = e();
|
|
87
88
|
return t && this.add(t);
|
|
88
89
|
}
|
|
89
|
-
function
|
|
90
|
+
function fe(e) {
|
|
90
91
|
return !!this._disposables_?.delete(e);
|
|
91
92
|
}
|
|
92
|
-
function
|
|
93
|
+
function pe() {
|
|
93
94
|
return this._disposables_?.size || 0;
|
|
94
95
|
}
|
|
95
96
|
//#endregion
|
|
96
97
|
//#region ../../node_modules/.bun/@wopjs+event@0.1.5/node_modules/@wopjs/event/dist/index.mjs
|
|
97
|
-
var
|
|
98
|
+
var me = /* @__PURE__ */ Symbol.for("send"), he = (e, t) => {
|
|
98
99
|
try {
|
|
99
100
|
e(t);
|
|
100
101
|
} catch (e) {
|
|
101
102
|
console.error(e);
|
|
102
103
|
}
|
|
103
104
|
};
|
|
104
|
-
function
|
|
105
|
-
if (process.env.NODE_ENV !== "production" && this.a && (console.error(/* @__PURE__ */ Error("[@wopjs/event:dev] Cannot send. Already disposed.")), console.error(this.a)), this._m) for (let t of this._l)
|
|
106
|
-
else this._l &&
|
|
105
|
+
function ge(e) {
|
|
106
|
+
if (process.env.NODE_ENV !== "production" && this.a && (console.error(/* @__PURE__ */ Error("[@wopjs/event:dev] Cannot send. Already disposed.")), console.error(this.a)), this._m) for (let t of this._l) he(t, e);
|
|
107
|
+
else this._l && he(this._l, e);
|
|
107
108
|
}
|
|
108
|
-
function
|
|
109
|
+
function _e() {
|
|
109
110
|
return this._l ? this._m ? this._l.size : 1 : 0;
|
|
110
111
|
}
|
|
111
|
-
function
|
|
112
|
+
function ve(e) {
|
|
112
113
|
return this._l ? this._m ? this._l.add(e) : (this._l = /* @__PURE__ */ new Set([this._l, e]), this._m = !0) : this._l = e, () => this.off(e);
|
|
113
114
|
}
|
|
114
|
-
function
|
|
115
|
+
function ye(e) {
|
|
115
116
|
let t = !1;
|
|
116
117
|
return e ? this._m ? t = this._l.delete(e) : (t = this._l === e) && (this._l = null) : (t = this.size() > 0) && (this._l = null, this._m = !1), t;
|
|
117
118
|
}
|
|
118
|
-
function
|
|
119
|
+
function be() {
|
|
119
120
|
process.env.NODE_ENV !== "production" && (this.a = /* @__PURE__ */ Error("[@wopjs/event:dev] Disposed at:")), this.off();
|
|
120
121
|
}
|
|
121
|
-
var
|
|
122
|
+
var xe = () => {
|
|
122
123
|
function e(t) {
|
|
123
124
|
return e.on(t);
|
|
124
125
|
}
|
|
125
|
-
return e.size =
|
|
126
|
-
},
|
|
126
|
+
return e.size = _e, e.on = ve, e.off = ye, e.dispose = be, e[me] = ge, e;
|
|
127
|
+
}, Se = (e, t) => e?.[me]?.(t), Ce = /* @__PURE__ */ Symbol.for("$NONE$ "), we = /* @__PURE__ */ Symbol.for("$TSUR_SPECIES$ "), Te = 1, Ee = 2, F = class e {
|
|
127
128
|
static Ok(t) {
|
|
128
129
|
return Object.freeze(new e(t, !0));
|
|
129
130
|
}
|
|
@@ -148,12 +149,12 @@ var _e = () => {
|
|
|
148
149
|
}
|
|
149
150
|
}
|
|
150
151
|
static isResult(e) {
|
|
151
|
-
return !!e && e[
|
|
152
|
+
return !!e && e[we] === Ee;
|
|
152
153
|
}
|
|
153
154
|
static isSame(t, n) {
|
|
154
155
|
return e.isResult(t) && e.isResult(n) ? Object.is(t._value, n._value) : !1;
|
|
155
156
|
}
|
|
156
|
-
[
|
|
157
|
+
[we] = Ee;
|
|
157
158
|
_value;
|
|
158
159
|
_ok;
|
|
159
160
|
constructor(e, t) {
|
|
@@ -199,13 +200,13 @@ var _e = () => {
|
|
|
199
200
|
return this._ok ? this : e.Err(t.call(n, this._value));
|
|
200
201
|
}
|
|
201
202
|
transpose() {
|
|
202
|
-
return this._ok ?
|
|
203
|
+
return this._ok ? I.isOption(this._value) ? this._value.map(e.Ok) : I.Some(this) : I.None;
|
|
203
204
|
}
|
|
204
205
|
ok() {
|
|
205
|
-
return this._ok ?
|
|
206
|
+
return this._ok ? I.Some(this._value) : I.None;
|
|
206
207
|
}
|
|
207
208
|
err() {
|
|
208
|
-
return this._ok ?
|
|
209
|
+
return this._ok ? I.None : I.Some(this._value);
|
|
209
210
|
}
|
|
210
211
|
unwrap(e = "called `Result.unwrap()` on an `Err`") {
|
|
211
212
|
if (this._ok) return this._value;
|
|
@@ -233,16 +234,16 @@ var _e = () => {
|
|
|
233
234
|
toString() {
|
|
234
235
|
return `${this._ok ? "Ok" : "Err"}(${this._value})`;
|
|
235
236
|
}
|
|
236
|
-
},
|
|
237
|
+
}, De = F.Ok, Oe = F.Err, I = class e {
|
|
237
238
|
static Some(t) {
|
|
238
239
|
return Object.freeze(new e(t));
|
|
239
240
|
}
|
|
240
|
-
static None = /* @__PURE__ */ e.Some(
|
|
241
|
+
static None = /* @__PURE__ */ e.Some(Ce);
|
|
241
242
|
static from(t, n, r) {
|
|
242
243
|
return (n ? n.call(r, t) : t) ? e.Some(t) : e.None;
|
|
243
244
|
}
|
|
244
245
|
static isOption(e) {
|
|
245
|
-
return !!e && e[
|
|
246
|
+
return !!e && e[we] === Te;
|
|
246
247
|
}
|
|
247
248
|
static isSame(t, n) {
|
|
248
249
|
return e.isOption(t) && e.isOption(n) ? Object.is(t._value, n._value) : !1;
|
|
@@ -250,7 +251,7 @@ var _e = () => {
|
|
|
250
251
|
static unwrapOr(t) {
|
|
251
252
|
return e.isOption(t) ? t.unwrapOr() : t;
|
|
252
253
|
}
|
|
253
|
-
[
|
|
254
|
+
[we] = Te;
|
|
254
255
|
_value;
|
|
255
256
|
constructor(e) {
|
|
256
257
|
this._value = e;
|
|
@@ -259,10 +260,10 @@ var _e = () => {
|
|
|
259
260
|
this.isSome() && (yield this._value);
|
|
260
261
|
}
|
|
261
262
|
isSome() {
|
|
262
|
-
return this._value !==
|
|
263
|
+
return this._value !== Ce;
|
|
263
264
|
}
|
|
264
265
|
isNone() {
|
|
265
|
-
return this._value ===
|
|
266
|
+
return this._value === Ce;
|
|
266
267
|
}
|
|
267
268
|
isSomeAnd(e, t) {
|
|
268
269
|
return this.isSome() && e.call(t, this._value);
|
|
@@ -304,13 +305,13 @@ var _e = () => {
|
|
|
304
305
|
return this.isSome() ? e.Some(t.call(n, this._value)) : e.None;
|
|
305
306
|
}
|
|
306
307
|
transpose() {
|
|
307
|
-
return this.isSome() ?
|
|
308
|
+
return this.isSome() ? F.isResult(this._value) ? this._value.map(e.Some) : F.Ok(this) : F.Ok(e.None);
|
|
308
309
|
}
|
|
309
310
|
okOr(e) {
|
|
310
|
-
return this.isSome() ?
|
|
311
|
+
return this.isSome() ? F.Ok(this._value) : F.Err(e);
|
|
311
312
|
}
|
|
312
313
|
okOrElse(e, t) {
|
|
313
|
-
return this.isSome() ?
|
|
314
|
+
return this.isSome() ? F.Ok(this._value) : F.Err(e.call(t));
|
|
314
315
|
}
|
|
315
316
|
unwrap(e = "called `Option.unwrap()` on a `None` value") {
|
|
316
317
|
if (this.isSome()) return this._value;
|
|
@@ -330,91 +331,91 @@ var _e = () => {
|
|
|
330
331
|
}
|
|
331
332
|
};
|
|
332
333
|
Array.isArray;
|
|
333
|
-
var
|
|
334
|
+
var ke = (e) => !!e && e.constructor === Object, Ae = (e) => {
|
|
334
335
|
try {
|
|
335
336
|
return Number(e) === e;
|
|
336
337
|
} catch {
|
|
337
338
|
return !1;
|
|
338
339
|
}
|
|
339
|
-
},
|
|
340
|
+
}, je = (e) => Object.prototype.toString.call(e) === "[object Date]", Me = (e, t) => {
|
|
340
341
|
if (Object.is(e, t)) return !0;
|
|
341
342
|
if (e instanceof Date && t instanceof Date) return e.getTime() === t.getTime();
|
|
342
343
|
if (e instanceof RegExp && t instanceof RegExp) return e.toString() === t.toString();
|
|
343
344
|
if (typeof e != "object" || !e || typeof t != "object" || !t) return !1;
|
|
344
345
|
let n = Reflect.ownKeys(e), r = Reflect.ownKeys(t);
|
|
345
346
|
if (n.length !== r.length) return !1;
|
|
346
|
-
for (let r = 0; r < n.length; r++) if (!Reflect.has(t, n[r]) || !
|
|
347
|
+
for (let r = 0; r < n.length; r++) if (!Reflect.has(t, n[r]) || !Me(e[n[r]], t[n[r]])) return !1;
|
|
347
348
|
return !0;
|
|
348
|
-
},
|
|
349
|
-
function
|
|
349
|
+
}, Ne = (e) => e === "__proto__", Pe = (e, t, n) => t + e * (n - t), Fe = (e) => e;
|
|
350
|
+
function Ie(e, t) {
|
|
350
351
|
let n = e.findIndex(t);
|
|
351
352
|
return n >= 0 ? n : e.length;
|
|
352
353
|
}
|
|
353
|
-
var
|
|
354
|
+
var L = /*#__PURE__*/ Object.freeze({ equal: Me }), Le = {
|
|
354
355
|
true: "True",
|
|
355
356
|
false: "False"
|
|
356
357
|
};
|
|
357
|
-
function
|
|
358
|
-
var
|
|
359
|
-
function
|
|
358
|
+
function Re() {}
|
|
359
|
+
var ze = 2147483647;
|
|
360
|
+
function Be(e, t, n) {
|
|
360
361
|
return e < t ? t : e > n ? n : e;
|
|
361
362
|
}
|
|
362
|
-
function
|
|
363
|
+
function Ve(e) {
|
|
363
364
|
return typeof e == "function";
|
|
364
365
|
}
|
|
365
|
-
function
|
|
366
|
+
function He(e) {
|
|
366
367
|
return e == null ? [] : Array.isArray(e) ? e : [e];
|
|
367
368
|
}
|
|
368
|
-
function
|
|
369
|
+
function R(e) {
|
|
369
370
|
return Array.isArray(e) ? e : void 0;
|
|
370
371
|
}
|
|
371
|
-
function
|
|
372
|
-
return e.some(
|
|
372
|
+
function z(e) {
|
|
373
|
+
return e.some(g) ? e : void 0;
|
|
373
374
|
}
|
|
374
|
-
function
|
|
375
|
+
function Ue(e) {
|
|
375
376
|
return e?.[e.length - 1];
|
|
376
377
|
}
|
|
377
|
-
function
|
|
378
|
+
function We(e) {
|
|
378
379
|
return e.filter((e) => e != null);
|
|
379
380
|
}
|
|
380
|
-
var
|
|
381
|
-
function
|
|
381
|
+
var Ge = Symbol("Negative");
|
|
382
|
+
function Ke(e, t, n) {
|
|
382
383
|
let r = [];
|
|
383
384
|
for (let i = 0; i < e.length; i++) {
|
|
384
385
|
let a = t.call(n, e[i], i);
|
|
385
|
-
a !==
|
|
386
|
+
a !== Ge && r.push(a);
|
|
386
387
|
}
|
|
387
388
|
return r;
|
|
388
389
|
}
|
|
389
|
-
function
|
|
390
|
-
return
|
|
390
|
+
function qe(e) {
|
|
391
|
+
return x(e) ? e : {};
|
|
391
392
|
}
|
|
392
|
-
function
|
|
393
|
-
if (
|
|
393
|
+
function B(e) {
|
|
394
|
+
if (x(e)) return e;
|
|
394
395
|
}
|
|
395
|
-
function
|
|
396
|
-
if (
|
|
397
|
-
for (let t of Object.values(e)) if (
|
|
396
|
+
function Je(e) {
|
|
397
|
+
if (x(e)) {
|
|
398
|
+
for (let t of Object.values(e)) if (h(t)) return e;
|
|
398
399
|
}
|
|
399
400
|
}
|
|
400
|
-
function
|
|
401
|
-
if (
|
|
401
|
+
function Ye(e, t) {
|
|
402
|
+
if (x(e)) {
|
|
402
403
|
let n = !1, r = {};
|
|
403
404
|
for (let [i, a] of Object.entries(e)) t(a) && (n = !0, r[i] = a);
|
|
404
405
|
if (n) return r;
|
|
405
406
|
}
|
|
406
407
|
}
|
|
407
|
-
function
|
|
408
|
+
function Xe(e) {
|
|
408
409
|
return e === !0;
|
|
409
410
|
}
|
|
410
|
-
function
|
|
411
|
+
function Ze(e) {
|
|
411
412
|
return e === !0 || void 0;
|
|
412
413
|
}
|
|
413
|
-
function
|
|
414
|
-
return
|
|
414
|
+
function Qe(e) {
|
|
415
|
+
return Ye(e, Xe);
|
|
415
416
|
}
|
|
416
|
-
function
|
|
417
|
-
if (
|
|
417
|
+
function $e(e) {
|
|
418
|
+
if (v(e)) return e;
|
|
418
419
|
if (e == null) return "";
|
|
419
420
|
try {
|
|
420
421
|
return JSON.stringify(e);
|
|
@@ -426,7 +427,7 @@ function Ye(e) {
|
|
|
426
427
|
}
|
|
427
428
|
}
|
|
428
429
|
}
|
|
429
|
-
function
|
|
430
|
+
function et(e) {
|
|
430
431
|
if (e === void 0) return "undefined";
|
|
431
432
|
try {
|
|
432
433
|
return JSON.stringify(e);
|
|
@@ -438,29 +439,29 @@ function Xe(e) {
|
|
|
438
439
|
}
|
|
439
440
|
}
|
|
440
441
|
}
|
|
441
|
-
function
|
|
442
|
-
return
|
|
442
|
+
function V(e) {
|
|
443
|
+
return v(e) ? e : void 0;
|
|
443
444
|
}
|
|
444
|
-
function
|
|
445
|
-
return e &&
|
|
445
|
+
function tt(e) {
|
|
446
|
+
return e && v(e) ? e : void 0;
|
|
446
447
|
}
|
|
447
|
-
function
|
|
448
|
+
function nt(e, t) {
|
|
448
449
|
let n = Number(e);
|
|
449
450
|
return Number.isFinite(n) ? t ? Math.floor(n) : n : 0;
|
|
450
451
|
}
|
|
451
|
-
function
|
|
452
|
-
return
|
|
452
|
+
function H(e) {
|
|
453
|
+
return Ae(e) ? e : void 0;
|
|
453
454
|
}
|
|
454
|
-
function
|
|
455
|
-
return
|
|
455
|
+
function rt(e) {
|
|
456
|
+
return Ae(e) && e > 0;
|
|
456
457
|
}
|
|
457
|
-
function
|
|
458
|
-
return
|
|
458
|
+
function it(e) {
|
|
459
|
+
return _(e) ? e : !1;
|
|
459
460
|
}
|
|
460
|
-
function
|
|
461
|
-
return
|
|
461
|
+
function at(e) {
|
|
462
|
+
return _(e) ? e : void 0;
|
|
462
463
|
}
|
|
463
|
-
function
|
|
464
|
+
function U(e, t) {
|
|
464
465
|
let n = 0;
|
|
465
466
|
for (let r of t) if (r.startsWith(e)) {
|
|
466
467
|
if (r === e) {
|
|
@@ -472,7 +473,7 @@ function G(e, t) {
|
|
|
472
473
|
}
|
|
473
474
|
return n === 0 ? e : `${e}${n + 1}`;
|
|
474
475
|
}
|
|
475
|
-
function
|
|
476
|
+
function ot(e, t, n = Object.is) {
|
|
476
477
|
return (r) => {
|
|
477
478
|
n(e.value?.[t], r) || e.set({
|
|
478
479
|
...e.value,
|
|
@@ -480,7 +481,7 @@ function nt(e, t, n = Object.is) {
|
|
|
480
481
|
});
|
|
481
482
|
};
|
|
482
483
|
}
|
|
483
|
-
function
|
|
484
|
+
function W(e, t, n = Object.is) {
|
|
484
485
|
return (r) => {
|
|
485
486
|
e.value && !n(e.value[t], r) && e.set({
|
|
486
487
|
...e.value,
|
|
@@ -488,64 +489,64 @@ function K(e, t, n = Object.is) {
|
|
|
488
489
|
});
|
|
489
490
|
};
|
|
490
491
|
}
|
|
491
|
-
function
|
|
492
|
+
function st(e, t, n) {
|
|
492
493
|
for (let n = 0; n < t.length; n++) e = e ? e[t[n]] : void 0;
|
|
493
494
|
return e === void 0 ? n : e;
|
|
494
495
|
}
|
|
495
|
-
function
|
|
496
|
+
function ct(e) {
|
|
496
497
|
try {
|
|
497
|
-
return
|
|
498
|
+
return De(JSON.parse(e));
|
|
498
499
|
} catch (e) {
|
|
499
|
-
return
|
|
500
|
+
return Oe(e + "");
|
|
500
501
|
}
|
|
501
502
|
}
|
|
502
|
-
function
|
|
503
|
+
function lt(e) {
|
|
503
504
|
try {
|
|
504
505
|
return JSON.stringify(e, null, 2);
|
|
505
506
|
} catch (e) {
|
|
506
507
|
return console.warn(e), "{}";
|
|
507
508
|
}
|
|
508
509
|
}
|
|
509
|
-
function
|
|
510
|
+
function ut(e) {
|
|
510
511
|
return !!e && (e.startsWith("self::") || e.startsWith("./") || e.startsWith("../"));
|
|
511
512
|
}
|
|
512
|
-
function
|
|
513
|
+
function dt(e) {
|
|
513
514
|
return e ? () => e.set(!e.value) : void 0;
|
|
514
515
|
}
|
|
515
|
-
function
|
|
516
|
+
function ft(e) {
|
|
516
517
|
return !!e && e.startsWith("%") && e.endsWith("%") && e.length > 2;
|
|
517
518
|
}
|
|
518
|
-
function
|
|
519
|
-
return
|
|
519
|
+
function pt(e) {
|
|
520
|
+
return ft(e) ? e.slice(1, -1) : void 0;
|
|
520
521
|
}
|
|
521
|
-
function
|
|
522
|
-
return
|
|
522
|
+
function mt(e) {
|
|
523
|
+
return ft(e) ? void 0 : e;
|
|
523
524
|
}
|
|
524
|
-
var
|
|
525
|
-
function
|
|
526
|
-
let n = e?.toLowerCase().replace(/[^a-z0-9_]+/g, "-").replace(/^-+/, "").slice(0,
|
|
527
|
-
if (n && !
|
|
525
|
+
var ht = 64;
|
|
526
|
+
function gt(e, t) {
|
|
527
|
+
let n = e?.toLowerCase().replace(/[^a-z0-9_]+/g, "-").replace(/^-+/, "").slice(0, ht).replace(/-+$/, "");
|
|
528
|
+
if (n && !Ne(n)) {
|
|
528
529
|
let e = n, r = 1;
|
|
529
530
|
for (; t[e] != null;) e = `${n}${r++}`;
|
|
530
531
|
return e;
|
|
531
532
|
}
|
|
532
533
|
for (let e = 1;; e++) if (n = `key${e}`, t[n] == null) return n;
|
|
533
534
|
}
|
|
534
|
-
function
|
|
535
|
-
|
|
535
|
+
function _t(e, t) {
|
|
536
|
+
Ne(e) && (e = "_" + e);
|
|
536
537
|
let n = e, r = 1;
|
|
537
538
|
for (; t[n] != null;) n = `${e}${r++}`;
|
|
538
539
|
return n;
|
|
539
540
|
}
|
|
540
|
-
function
|
|
541
|
+
function vt(e) {
|
|
541
542
|
return /^[\x09\x0A\x0D\x20-\x7E]+$/.test(e);
|
|
542
543
|
}
|
|
543
|
-
function
|
|
544
|
+
function yt(e, t) {
|
|
544
545
|
return Object.hasOwn(e, t) ? e[t] : void 0;
|
|
545
546
|
}
|
|
546
547
|
//#endregion
|
|
547
548
|
//#region ../../node_modules/.bun/dayjs@1.11.23/node_modules/dayjs/dayjs.min.js
|
|
548
|
-
var
|
|
549
|
+
var bt = /* @__PURE__ */ i(((e, t) => {
|
|
549
550
|
(function(n, r) {
|
|
550
551
|
typeof e == "object" && t !== void 0 ? t.exports = r() : typeof define == "function" && define.amd ? define(r) : (n = typeof globalThis < "u" ? globalThis : n || self).dayjs = r();
|
|
551
552
|
})(e, (function() {
|
|
@@ -839,7 +840,7 @@ var gt = /* @__PURE__ */ i(((e, t) => {
|
|
|
839
840
|
return w(1e3 * e);
|
|
840
841
|
}, w.en = b[y], w.Ls = b, w.p = {}, w;
|
|
841
842
|
}));
|
|
842
|
-
})),
|
|
843
|
+
})), xt = /* @__PURE__ */ i(((e, t) => {
|
|
843
844
|
(function(n, r) {
|
|
844
845
|
typeof e == "object" && t !== void 0 ? t.exports = r() : typeof define == "function" && define.amd ? define(r) : (n = typeof globalThis < "u" ? globalThis : n || self).dayjs_plugin_customParseFormat = r();
|
|
845
846
|
})(e, (function() {
|
|
@@ -995,7 +996,7 @@ var gt = /* @__PURE__ */ i(((e, t) => {
|
|
|
995
996
|
};
|
|
996
997
|
};
|
|
997
998
|
}));
|
|
998
|
-
})),
|
|
999
|
+
})), St = /* @__PURE__ */ i(((e, t) => {
|
|
999
1000
|
(function(n, r) {
|
|
1000
1001
|
typeof e == "object" && t !== void 0 ? t.exports = r() : typeof define == "function" && define.amd ? define(r) : (n = typeof globalThis < "u" ? globalThis : n || self).dayjs_plugin_localeData = r();
|
|
1001
1002
|
})(e, (function() {
|
|
@@ -1089,7 +1090,7 @@ var gt = /* @__PURE__ */ i(((e, t) => {
|
|
|
1089
1090
|
};
|
|
1090
1091
|
};
|
|
1091
1092
|
}));
|
|
1092
|
-
})),
|
|
1093
|
+
})), Ct = /* @__PURE__ */ i(((e, t) => {
|
|
1093
1094
|
(function(n, r) {
|
|
1094
1095
|
typeof e == "object" && t !== void 0 ? t.exports = r() : typeof define == "function" && define.amd ? define(r) : (n = typeof globalThis < "u" ? globalThis : n || self).dayjs_plugin_weekday = r();
|
|
1095
1096
|
})(e, (function() {
|
|
@@ -1100,76 +1101,66 @@ var gt = /* @__PURE__ */ i(((e, t) => {
|
|
|
1100
1101
|
};
|
|
1101
1102
|
};
|
|
1102
1103
|
}));
|
|
1103
|
-
})),
|
|
1104
|
-
|
|
1105
|
-
var
|
|
1104
|
+
})), wt = /* @__PURE__ */ n(bt(), 1), Tt = /* @__PURE__ */ n(xt(), 1), Et = /* @__PURE__ */ n(St(), 1), Dt = /* @__PURE__ */ n(Ct(), 1);
|
|
1105
|
+
wt.default.extend(Dt.default), wt.default.extend(Et.default), wt.default.extend(Tt.default);
|
|
1106
|
+
var Ot = [
|
|
1106
1107
|
"date",
|
|
1107
1108
|
"time",
|
|
1108
1109
|
"date-time"
|
|
1109
1110
|
];
|
|
1110
|
-
function
|
|
1111
|
-
return
|
|
1111
|
+
function kt(e) {
|
|
1112
|
+
return Ot.includes(e);
|
|
1112
1113
|
}
|
|
1113
|
-
function
|
|
1114
|
-
let t = (0,
|
|
1114
|
+
function At(e) {
|
|
1115
|
+
let t = (0, wt.default)(e);
|
|
1115
1116
|
return t.isValid() ? t.toDate() : /* @__PURE__ */ new Date();
|
|
1116
1117
|
}
|
|
1117
|
-
function
|
|
1118
|
-
return
|
|
1118
|
+
function jt(e) {
|
|
1119
|
+
return Ot.includes(e) ? e : Mt;
|
|
1119
1120
|
}
|
|
1120
|
-
var
|
|
1121
|
-
function
|
|
1122
|
-
return
|
|
1121
|
+
var Mt = "date-time", Nt = /*#__PURE__*/ Ot.map((e) => ({ value: e }));
|
|
1122
|
+
function Pt(e) {
|
|
1123
|
+
return Nt.find((t) => t.value === e);
|
|
1123
1124
|
}
|
|
1124
|
-
function
|
|
1125
|
-
return (0,
|
|
1125
|
+
function Ft(e, t = Mt) {
|
|
1126
|
+
return (0, wt.default)(e).format(It(t));
|
|
1126
1127
|
}
|
|
1127
|
-
function
|
|
1128
|
+
function It(e) {
|
|
1128
1129
|
switch (e) {
|
|
1129
1130
|
case "date": return "YYYY-MM-DD";
|
|
1130
1131
|
case "time": return "HH:mm:ssZ";
|
|
1131
1132
|
case "date-time": return "YYYY-MM-DDTHH:mm:ssZ";
|
|
1132
1133
|
}
|
|
1133
1134
|
}
|
|
1134
|
-
var
|
|
1135
|
+
var Lt = [
|
|
1135
1136
|
"RGB",
|
|
1136
1137
|
"HSV",
|
|
1137
1138
|
"HEX",
|
|
1138
1139
|
"HEX8"
|
|
1139
1140
|
];
|
|
1140
|
-
function
|
|
1141
|
-
return
|
|
1141
|
+
function Rt(e) {
|
|
1142
|
+
return Lt.includes(e);
|
|
1142
1143
|
}
|
|
1143
|
-
function
|
|
1144
|
-
return
|
|
1144
|
+
function zt(e) {
|
|
1145
|
+
return Rt(e) ? e : "HEX";
|
|
1145
1146
|
}
|
|
1146
|
-
var
|
|
1147
|
-
function
|
|
1148
|
-
return
|
|
1147
|
+
var Bt = /*#__PURE__*/ Lt.map((e) => ({ value: e }));
|
|
1148
|
+
function Vt(e) {
|
|
1149
|
+
return Bt.find((t) => t.value === e);
|
|
1149
1150
|
}
|
|
1150
1151
|
//#endregion
|
|
1151
1152
|
//#region src/designer/browser/jsonSchema/preset.ts
|
|
1152
|
-
var
|
|
1153
|
+
var G = {
|
|
1153
1154
|
string: {
|
|
1154
1155
|
icon: "i-carbon:quotes",
|
|
1155
1156
|
value: "string",
|
|
1156
1157
|
label: "String"
|
|
1157
1158
|
},
|
|
1158
|
-
variable: {
|
|
1159
|
-
icon: "i-carbon:value-variable",
|
|
1160
|
-
value: "variable",
|
|
1161
|
-
label: "Variable"
|
|
1162
|
-
},
|
|
1163
1159
|
number: {
|
|
1164
1160
|
icon: "i-carbon:number-0",
|
|
1165
1161
|
value: "number",
|
|
1166
1162
|
label: "Number"
|
|
1167
1163
|
},
|
|
1168
|
-
secret: {
|
|
1169
|
-
icon: "i-codicon:key",
|
|
1170
|
-
value: "secret",
|
|
1171
|
-
label: "Secret"
|
|
1172
|
-
},
|
|
1173
1164
|
boolean: {
|
|
1174
1165
|
icon: "i-carbon:boolean",
|
|
1175
1166
|
value: "boolean",
|
|
@@ -1245,7 +1236,7 @@ var q = {
|
|
|
1245
1236
|
value: "null",
|
|
1246
1237
|
label: "Null"
|
|
1247
1238
|
}
|
|
1248
|
-
},
|
|
1239
|
+
}, Ht = (e) => Object.hasOwn(G, e), Ut = {
|
|
1249
1240
|
close: "i-codicon:close",
|
|
1250
1241
|
gotoFile: "i-codicon:go-to-file",
|
|
1251
1242
|
objectAdd: "i-carbon:add-alt",
|
|
@@ -1253,49 +1244,47 @@ var q = {
|
|
|
1253
1244
|
package: "i-codicon:package",
|
|
1254
1245
|
settings: "i-codicon:gear",
|
|
1255
1246
|
tool: "i-codicon:symbol-property"
|
|
1256
|
-
},
|
|
1257
|
-
let n =
|
|
1247
|
+
}, Wt = (e) => Ht(e) ? G[e].icon : Ut[e], Gt = (e) => Wt(J(e)), Kt = (e, t) => {
|
|
1248
|
+
let n = G[t];
|
|
1258
1249
|
return {
|
|
1259
1250
|
...n,
|
|
1260
1251
|
label: e(`preset.${n.value}`)
|
|
1261
1252
|
};
|
|
1262
|
-
},
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
q.object,
|
|
1272
|
-
q.array,
|
|
1253
|
+
}, qt = (e, t) => Ke([
|
|
1254
|
+
G.string,
|
|
1255
|
+
G.number,
|
|
1256
|
+
G.boolean,
|
|
1257
|
+
G.integer,
|
|
1258
|
+
G.color,
|
|
1259
|
+
G.text,
|
|
1260
|
+
G.object,
|
|
1261
|
+
G.array,
|
|
1273
1262
|
{
|
|
1274
1263
|
icon: "i-carbon:checkbox-checked",
|
|
1275
1264
|
label: "Select",
|
|
1276
1265
|
value: "select",
|
|
1277
|
-
options: [
|
|
1266
|
+
options: [G.select, G.multiSelect]
|
|
1278
1267
|
},
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1268
|
+
G.date,
|
|
1269
|
+
G.any,
|
|
1270
|
+
G.binary,
|
|
1271
|
+
G.null,
|
|
1283
1272
|
{
|
|
1284
1273
|
icon: "i-carbon:branch",
|
|
1285
1274
|
label: "Applicators",
|
|
1286
1275
|
value: "applicators",
|
|
1287
1276
|
options: [
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1277
|
+
G.anyOf,
|
|
1278
|
+
G.allOf,
|
|
1279
|
+
G.oneOf
|
|
1291
1280
|
]
|
|
1292
1281
|
}
|
|
1293
1282
|
], (n) => {
|
|
1294
|
-
if (
|
|
1295
|
-
let r =
|
|
1283
|
+
if (Jt(n)) {
|
|
1284
|
+
let r = Ke(n.options, (n) => t(n.value) ? {
|
|
1296
1285
|
...n,
|
|
1297
1286
|
label: e(`preset.${n.value}`)
|
|
1298
|
-
} :
|
|
1287
|
+
} : Ge);
|
|
1299
1288
|
if (r.length > 0) return {
|
|
1300
1289
|
...n,
|
|
1301
1290
|
label: e(`preset.${n.label}`),
|
|
@@ -1305,18 +1294,9 @@ var q = {
|
|
|
1305
1294
|
...n,
|
|
1306
1295
|
label: e(`preset.${n.value}`)
|
|
1307
1296
|
};
|
|
1308
|
-
return
|
|
1309
|
-
}),
|
|
1310
|
-
|
|
1311
|
-
binary: "oomol/bin",
|
|
1312
|
-
variable: "oomol/var"
|
|
1313
|
-
}, qt = {
|
|
1314
|
-
secret: {
|
|
1315
|
-
contentMediaType: Kt.secret,
|
|
1316
|
-
type: "string"
|
|
1317
|
-
},
|
|
1318
|
-
binary: { contentMediaType: Kt.binary },
|
|
1319
|
-
variable: { contentMediaType: Kt.variable },
|
|
1297
|
+
return Ge;
|
|
1298
|
+
}), Jt = (e) => "options" in e, Yt = "ui:widget", K = "ui:options", Xt = { binary: "oomol/bin" }, Zt = {
|
|
1299
|
+
binary: { contentMediaType: Xt.binary },
|
|
1320
1300
|
any: {},
|
|
1321
1301
|
null: { type: "null" },
|
|
1322
1302
|
boolean: { type: "boolean" },
|
|
@@ -1329,16 +1309,16 @@ var q = {
|
|
|
1329
1309
|
},
|
|
1330
1310
|
color: {
|
|
1331
1311
|
type: "string",
|
|
1332
|
-
[
|
|
1333
|
-
[
|
|
1312
|
+
[Yt]: "color",
|
|
1313
|
+
[K]: { colorType: "HEX" }
|
|
1334
1314
|
},
|
|
1335
1315
|
text: {
|
|
1336
1316
|
type: "string",
|
|
1337
|
-
[
|
|
1317
|
+
[Yt]: "text"
|
|
1338
1318
|
},
|
|
1339
1319
|
select: {
|
|
1340
1320
|
enum: [],
|
|
1341
|
-
[
|
|
1321
|
+
[K]: {
|
|
1342
1322
|
labels: [],
|
|
1343
1323
|
types: void 0
|
|
1344
1324
|
}
|
|
@@ -1347,7 +1327,7 @@ var q = {
|
|
|
1347
1327
|
type: "array",
|
|
1348
1328
|
uniqueItems: !0,
|
|
1349
1329
|
items: { enum: [] },
|
|
1350
|
-
[
|
|
1330
|
+
[K]: {
|
|
1351
1331
|
labels: [],
|
|
1352
1332
|
types: void 0
|
|
1353
1333
|
}
|
|
@@ -1360,22 +1340,22 @@ var q = {
|
|
|
1360
1340
|
},
|
|
1361
1341
|
anyOf: {
|
|
1362
1342
|
anyOf: [],
|
|
1363
|
-
[
|
|
1343
|
+
[K]: { labels: [] }
|
|
1364
1344
|
},
|
|
1365
1345
|
oneOf: {
|
|
1366
1346
|
oneOf: [],
|
|
1367
|
-
[
|
|
1347
|
+
[K]: { labels: [] }
|
|
1368
1348
|
},
|
|
1369
1349
|
allOf: {
|
|
1370
1350
|
allOf: [],
|
|
1371
|
-
[
|
|
1351
|
+
[K]: { labels: [] }
|
|
1372
1352
|
}
|
|
1373
1353
|
};
|
|
1374
|
-
function
|
|
1375
|
-
let n = structuredClone(
|
|
1376
|
-
return t &&
|
|
1354
|
+
function Qt(e, t) {
|
|
1355
|
+
let n = structuredClone(Zt[e]);
|
|
1356
|
+
return t && ln(n, t), n;
|
|
1377
1357
|
}
|
|
1378
|
-
function
|
|
1358
|
+
function q(e) {
|
|
1379
1359
|
if (e && e.length > 0) {
|
|
1380
1360
|
let t;
|
|
1381
1361
|
for (let n of e) {
|
|
@@ -1383,11 +1363,11 @@ function Yt(e) {
|
|
|
1383
1363
|
let e = n.json_schema;
|
|
1384
1364
|
e && (t = e);
|
|
1385
1365
|
}
|
|
1386
|
-
return t ||
|
|
1366
|
+
return t || Qt("any");
|
|
1387
1367
|
}
|
|
1388
|
-
return
|
|
1368
|
+
return Qt("any");
|
|
1389
1369
|
}
|
|
1390
|
-
var
|
|
1370
|
+
var $t = {
|
|
1391
1371
|
null: null,
|
|
1392
1372
|
boolean: !1,
|
|
1393
1373
|
integer: 0,
|
|
@@ -1395,11 +1375,11 @@ var Xt = {
|
|
|
1395
1375
|
string: "",
|
|
1396
1376
|
color: "#7d7fe9",
|
|
1397
1377
|
select: (e) => {
|
|
1398
|
-
let t =
|
|
1378
|
+
let t = He(e?.enum)?.[0];
|
|
1399
1379
|
return t === void 0 ? null : t;
|
|
1400
1380
|
},
|
|
1401
1381
|
multiSelect: [],
|
|
1402
|
-
date: (e) =>
|
|
1382
|
+
date: (e) => Ft(/* @__PURE__ */ new Date(), jt(e?.format)),
|
|
1403
1383
|
text: "",
|
|
1404
1384
|
any: void 0,
|
|
1405
1385
|
object: {},
|
|
@@ -1407,23 +1387,19 @@ var Xt = {
|
|
|
1407
1387
|
anyOf: void 0,
|
|
1408
1388
|
allOf: void 0,
|
|
1409
1389
|
oneOf: void 0,
|
|
1410
|
-
|
|
1411
|
-
binary: void 0,
|
|
1412
|
-
variable: void 0
|
|
1390
|
+
binary: void 0
|
|
1413
1391
|
};
|
|
1414
|
-
function
|
|
1415
|
-
let n =
|
|
1416
|
-
return
|
|
1392
|
+
function en(e, t) {
|
|
1393
|
+
let n = $t[e];
|
|
1394
|
+
return Ve(n) ? n(t) : n;
|
|
1417
1395
|
}
|
|
1418
|
-
function
|
|
1396
|
+
function J(e) {
|
|
1419
1397
|
let t = e;
|
|
1420
1398
|
if (!t) return "any";
|
|
1421
1399
|
switch (t.contentMediaType) {
|
|
1422
|
-
case
|
|
1423
|
-
case qt.binary.contentMediaType: return "binary";
|
|
1424
|
-
case qt.variable.contentMediaType: return "variable";
|
|
1400
|
+
case Zt.binary.contentMediaType: return "binary";
|
|
1425
1401
|
}
|
|
1426
|
-
if (t["ui:widget"] &&
|
|
1402
|
+
if (t["ui:widget"] && Ht(t["ui:widget"])) return t[Yt];
|
|
1427
1403
|
if (t.anyOf) return "anyOf";
|
|
1428
1404
|
if (t.oneOf) return "oneOf";
|
|
1429
1405
|
if (t.allOf) return "any";
|
|
@@ -1435,26 +1411,25 @@ function Y(e) {
|
|
|
1435
1411
|
case "number":
|
|
1436
1412
|
case "object": return t.type;
|
|
1437
1413
|
case "array": return t.uniqueItems ? "multiSelect" : "array";
|
|
1438
|
-
case "string": return
|
|
1414
|
+
case "string": return kt(t.format) ? "date" : "string";
|
|
1439
1415
|
default: return "any";
|
|
1440
1416
|
}
|
|
1441
1417
|
}
|
|
1442
|
-
function
|
|
1443
|
-
return e
|
|
1418
|
+
function tn(e) {
|
|
1419
|
+
return e == "any";
|
|
1444
1420
|
}
|
|
1445
|
-
function
|
|
1446
|
-
return e
|
|
1421
|
+
function nn(e) {
|
|
1422
|
+
return e == "any" || e == "anyOf" || e == "oneOf" || e == "allOf";
|
|
1447
1423
|
}
|
|
1448
|
-
function
|
|
1449
|
-
return
|
|
1424
|
+
function rn(e) {
|
|
1425
|
+
return !nn(e) && e !== "binary";
|
|
1450
1426
|
}
|
|
1451
|
-
function
|
|
1427
|
+
function an(e) {
|
|
1452
1428
|
switch (e) {
|
|
1453
1429
|
case "string":
|
|
1454
1430
|
case "text":
|
|
1455
1431
|
case "color":
|
|
1456
|
-
case "date":
|
|
1457
|
-
case "secret": return "string";
|
|
1432
|
+
case "date": return "string";
|
|
1458
1433
|
case "number":
|
|
1459
1434
|
case "integer": return "number";
|
|
1460
1435
|
case "boolean": return "boolean";
|
|
@@ -1464,12 +1439,12 @@ function tn(e) {
|
|
|
1464
1439
|
case "array": return "array";
|
|
1465
1440
|
}
|
|
1466
1441
|
}
|
|
1467
|
-
function
|
|
1442
|
+
function on(e) {
|
|
1468
1443
|
if (e === null) return "null";
|
|
1469
1444
|
let t = typeof e;
|
|
1470
1445
|
return t === "object" && Array.isArray(e) ? "array" : t;
|
|
1471
1446
|
}
|
|
1472
|
-
function
|
|
1447
|
+
function sn(e) {
|
|
1473
1448
|
switch (e) {
|
|
1474
1449
|
case "string":
|
|
1475
1450
|
case "number":
|
|
@@ -1480,97 +1455,110 @@ function rn(e) {
|
|
|
1480
1455
|
default: return "any";
|
|
1481
1456
|
}
|
|
1482
1457
|
}
|
|
1483
|
-
function
|
|
1484
|
-
let t =
|
|
1458
|
+
function cn(e) {
|
|
1459
|
+
let t = J(e);
|
|
1485
1460
|
if (t === "anyOf" || t === "oneOf" || t === "allOf") return (e[t]?.length ?? 0) || 1;
|
|
1486
1461
|
if (t === "string") return 4;
|
|
1487
|
-
if (t === "variable") return 0;
|
|
1488
1462
|
if (t === "array") return 3;
|
|
1489
1463
|
if (t === "color" || t === "date") return 1;
|
|
1490
1464
|
if (t === "integer" || t === "number") return 5;
|
|
1491
1465
|
if (t === "object") {
|
|
1492
|
-
let t =
|
|
1466
|
+
let t = B(e.properties);
|
|
1493
1467
|
return (t ? Object.keys(t).length : 1) + 1;
|
|
1494
1468
|
}
|
|
1495
1469
|
if (t === "select") {
|
|
1496
|
-
let t =
|
|
1470
|
+
let t = R(e.enum)?.length ?? 0;
|
|
1497
1471
|
return t ? t * 2 : 1;
|
|
1498
1472
|
}
|
|
1499
1473
|
if (t === "multiSelect") {
|
|
1500
|
-
let t = B(
|
|
1474
|
+
let t = R(B(e.items)?.enum)?.length ?? 0;
|
|
1501
1475
|
return t ? t * 2 : 1;
|
|
1502
1476
|
}
|
|
1503
1477
|
return 0;
|
|
1504
1478
|
}
|
|
1505
|
-
function
|
|
1506
|
-
let n =
|
|
1507
|
-
n &&
|
|
1479
|
+
function ln(e, t) {
|
|
1480
|
+
let n = un(t);
|
|
1481
|
+
n && pn(e, n);
|
|
1508
1482
|
}
|
|
1509
|
-
function
|
|
1510
|
-
switch (
|
|
1511
|
-
case "select": return
|
|
1512
|
-
case "multiSelect": return
|
|
1483
|
+
function un(e) {
|
|
1484
|
+
switch (J(e)) {
|
|
1485
|
+
case "select": return dn(e.enum, e[K]?.labels);
|
|
1486
|
+
case "multiSelect": return dn(B(e.items)?.enum, e[K]?.labels);
|
|
1513
1487
|
}
|
|
1514
1488
|
}
|
|
1515
|
-
function
|
|
1516
|
-
if (
|
|
1489
|
+
function dn(e, t) {
|
|
1490
|
+
if (fn(e) && e.length > 0) return {
|
|
1517
1491
|
enum: e,
|
|
1518
|
-
labels:
|
|
1492
|
+
labels: fn(t) ? t : void 0
|
|
1519
1493
|
};
|
|
1520
1494
|
}
|
|
1521
|
-
function
|
|
1522
|
-
return
|
|
1495
|
+
function fn(e) {
|
|
1496
|
+
return y(e);
|
|
1523
1497
|
}
|
|
1524
|
-
function
|
|
1525
|
-
switch (
|
|
1498
|
+
function pn(e, t) {
|
|
1499
|
+
switch (J(e)) {
|
|
1526
1500
|
case "select":
|
|
1527
|
-
e.enum = t.enum, e[
|
|
1528
|
-
...
|
|
1501
|
+
e.enum = t.enum, e[K] = {
|
|
1502
|
+
...B(e[K]),
|
|
1529
1503
|
labels: t.labels ?? []
|
|
1530
1504
|
};
|
|
1531
1505
|
break;
|
|
1532
1506
|
case "multiSelect": e.items = {
|
|
1533
|
-
...
|
|
1507
|
+
...B(e.items),
|
|
1534
1508
|
enum: t.enum
|
|
1535
|
-
}, e[
|
|
1536
|
-
...
|
|
1509
|
+
}, e[K] = {
|
|
1510
|
+
...B(e[K]),
|
|
1537
1511
|
labels: t.labels ?? []
|
|
1538
1512
|
};
|
|
1539
1513
|
}
|
|
1540
1514
|
}
|
|
1541
1515
|
//#endregion
|
|
1542
1516
|
//#region src/base/common/type.ts
|
|
1543
|
-
function
|
|
1544
|
-
return
|
|
1517
|
+
function mn(e) {
|
|
1518
|
+
return x(e);
|
|
1545
1519
|
}
|
|
1546
1520
|
//#endregion
|
|
1547
1521
|
//#region src/designer/browser/llm/widget.ts
|
|
1548
|
-
function
|
|
1549
|
-
if (!
|
|
1522
|
+
function hn(e) {
|
|
1523
|
+
if (!mn(e)) return;
|
|
1550
1524
|
let t = e["ui:widget"];
|
|
1551
1525
|
if (t == "llm/messages") return "llm/messages";
|
|
1552
1526
|
if (t == "llm/model") return "llm/model";
|
|
1553
1527
|
}
|
|
1554
|
-
function
|
|
1555
|
-
if (!
|
|
1528
|
+
function gn(e) {
|
|
1529
|
+
if (!mn(e)) return;
|
|
1556
1530
|
let t = e["ui:options"];
|
|
1557
|
-
if (
|
|
1531
|
+
if (mn(t)) return typeof t.title == "string" && t.title.length > 0 ? t.title : void 0;
|
|
1532
|
+
}
|
|
1533
|
+
//#endregion
|
|
1534
|
+
//#region src/localization/common/localization.ts
|
|
1535
|
+
function _n(e, t) {
|
|
1536
|
+
let n = [];
|
|
1537
|
+
for (let r of p(t)) {
|
|
1538
|
+
let t = e[r];
|
|
1539
|
+
t != null && n.push(t);
|
|
1540
|
+
}
|
|
1541
|
+
return n;
|
|
1558
1542
|
}
|
|
1559
1543
|
//#endregion
|
|
1560
1544
|
//#region src/designer/browser/stores/designer/l10n.ts
|
|
1561
|
-
function
|
|
1545
|
+
function vn(e) {
|
|
1562
1546
|
return e === "en" ? "zh-CN" : "en";
|
|
1563
1547
|
}
|
|
1564
|
-
function
|
|
1565
|
-
return n &&
|
|
1548
|
+
function yn(e, t, n) {
|
|
1549
|
+
return n && vt(n) ? e.en : _n(e, t)[0] ?? e.en;
|
|
1566
1550
|
}
|
|
1567
|
-
function
|
|
1568
|
-
let a =
|
|
1569
|
-
|
|
1551
|
+
function bn(e, t, n, r, i) {
|
|
1552
|
+
let a = n(t);
|
|
1553
|
+
for (let t of _n(e, a)) {
|
|
1554
|
+
let e = yt(n(t), r);
|
|
1555
|
+
if (e) return e;
|
|
1556
|
+
}
|
|
1557
|
+
return i ?? r;
|
|
1570
1558
|
}
|
|
1571
1559
|
//#endregion
|
|
1572
1560
|
//#region ../../node_modules/.bun/@wopjs+weak-cache@0.1.5/node_modules/@wopjs/weak-cache/dist/index.mjs
|
|
1573
|
-
var
|
|
1561
|
+
var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "object" && typeof e != "function" ? e : (xn.has(e) ? xn : xn.set(e, Symbol())).get(e), Cn = class {
|
|
1574
1562
|
get size() {
|
|
1575
1563
|
return this._r.size;
|
|
1576
1564
|
}
|
|
@@ -1590,7 +1578,7 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
1590
1578
|
this._r.clear();
|
|
1591
1579
|
}
|
|
1592
1580
|
delete(e) {
|
|
1593
|
-
let t =
|
|
1581
|
+
let t = Sn(e), n = this._r.get(t);
|
|
1594
1582
|
return n ? (this._g.unregister(n), this._r.delete(t)) : !1;
|
|
1595
1583
|
}
|
|
1596
1584
|
dispose() {
|
|
@@ -1601,13 +1589,13 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
1601
1589
|
return n || this.set(e, n = t()), n;
|
|
1602
1590
|
}
|
|
1603
1591
|
get(e) {
|
|
1604
|
-
return this._r.get(
|
|
1592
|
+
return this._r.get(Sn(e))?.deref();
|
|
1605
1593
|
}
|
|
1606
1594
|
has(e) {
|
|
1607
1595
|
return this.get(e) !== void 0;
|
|
1608
1596
|
}
|
|
1609
1597
|
set(e, t) {
|
|
1610
|
-
let n =
|
|
1598
|
+
let n = Sn(e), r = new WeakRef(t);
|
|
1611
1599
|
return this._r.set(n, r), this._g.register(t, n, r), Object.is(n, e) || this._g.register(e, n, r), this;
|
|
1612
1600
|
}
|
|
1613
1601
|
*values() {
|
|
@@ -1616,10 +1604,10 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
1616
1604
|
t && (yield t);
|
|
1617
1605
|
}
|
|
1618
1606
|
}
|
|
1619
|
-
},
|
|
1607
|
+
}, wn = /* @__PURE__ */ new WeakMap(), Tn = new Cn(), En = class e {
|
|
1620
1608
|
static get(t) {
|
|
1621
|
-
let n = Array.isArray(t) ?
|
|
1622
|
-
return
|
|
1609
|
+
let n = Array.isArray(t) ? wn.get(t) ?? wn.set(t, $e(t) || "[]").get(t) : t == null ? "[]" : $e([t]);
|
|
1610
|
+
return Tn.get(n) || Tn.set(n, new e(n, t)).get(n);
|
|
1623
1611
|
}
|
|
1624
1612
|
static fromKey(t) {
|
|
1625
1613
|
return e.get(JSON.parse(t));
|
|
@@ -1653,7 +1641,7 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
1653
1641
|
toJSON() {
|
|
1654
1642
|
return this.path;
|
|
1655
1643
|
}
|
|
1656
|
-
},
|
|
1644
|
+
}, Dn = /* @__PURE__ */ i(((e) => {
|
|
1657
1645
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.regexpCode = e.getEsmExportName = e.getProperty = e.safeStringify = e.stringify = e.strConcat = e.addCodeArg = e.str = e._ = e.nil = e._Code = e.Name = e.IDENTIFIER = e._CodeOrName = void 0;
|
|
1658
1646
|
var t = class {};
|
|
1659
1647
|
e._CodeOrName = t, e.IDENTIFIER = /^[a-z$_][a-z$_0-9]*$/i;
|
|
@@ -1758,9 +1746,9 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
1758
1746
|
return new r(e.toString());
|
|
1759
1747
|
}
|
|
1760
1748
|
e.regexpCode = g;
|
|
1761
|
-
})),
|
|
1749
|
+
})), On = /* @__PURE__ */ i(((e) => {
|
|
1762
1750
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.ValueScope = e.ValueScopeName = e.Scope = e.varKinds = e.UsedValueState = void 0;
|
|
1763
|
-
var t =
|
|
1751
|
+
var t = Dn(), n = class extends Error {
|
|
1764
1752
|
constructor(e) {
|
|
1765
1753
|
super(`CodeGen: "code" for ${e} not defined`), this.value = e.value;
|
|
1766
1754
|
}
|
|
@@ -1869,9 +1857,9 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
1869
1857
|
return c;
|
|
1870
1858
|
}
|
|
1871
1859
|
};
|
|
1872
|
-
})),
|
|
1860
|
+
})), Y = /* @__PURE__ */ i(((e) => {
|
|
1873
1861
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.or = e.and = e.not = e.CodeGen = e.operators = e.varKinds = e.ValueScopeName = e.ValueScope = e.Scope = e.Name = e.regexpCode = e.stringify = e.getProperty = e.nil = e.strConcat = e.str = e._ = void 0;
|
|
1874
|
-
var t =
|
|
1862
|
+
var t = Dn(), n = On(), r = Dn();
|
|
1875
1863
|
Object.defineProperty(e, "_", {
|
|
1876
1864
|
enumerable: !0,
|
|
1877
1865
|
get: function() {
|
|
@@ -1913,7 +1901,7 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
1913
1901
|
return r.Name;
|
|
1914
1902
|
}
|
|
1915
1903
|
});
|
|
1916
|
-
var i =
|
|
1904
|
+
var i = On();
|
|
1917
1905
|
Object.defineProperty(e, "Scope", {
|
|
1918
1906
|
enumerable: !0,
|
|
1919
1907
|
get: function() {
|
|
@@ -2365,28 +2353,28 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
2365
2353
|
for (let n in t) e[n] = (e[n] || 0) - (t[n] || 0);
|
|
2366
2354
|
}
|
|
2367
2355
|
function j(e) {
|
|
2368
|
-
return typeof e == "boolean" || typeof e == "number" || e === null ? !e : (0, t._)`!${
|
|
2356
|
+
return typeof e == "boolean" || typeof e == "number" || e === null ? !e : (0, t._)`!${re(e)}`;
|
|
2369
2357
|
}
|
|
2370
2358
|
e.not = j;
|
|
2371
|
-
var M =
|
|
2372
|
-
function
|
|
2359
|
+
var M = N(e.operators.AND);
|
|
2360
|
+
function ee(...e) {
|
|
2373
2361
|
return e.reduce(M);
|
|
2374
2362
|
}
|
|
2375
|
-
e.and =
|
|
2376
|
-
var
|
|
2377
|
-
function
|
|
2378
|
-
return e.reduce(
|
|
2363
|
+
e.and = ee;
|
|
2364
|
+
var te = N(e.operators.OR);
|
|
2365
|
+
function ne(...e) {
|
|
2366
|
+
return e.reduce(te);
|
|
2379
2367
|
}
|
|
2380
|
-
e.or =
|
|
2381
|
-
function
|
|
2382
|
-
return (n, r) => n === t.nil ? r : r === t.nil ? n : (0, t._)`${
|
|
2368
|
+
e.or = ne;
|
|
2369
|
+
function N(e) {
|
|
2370
|
+
return (n, r) => n === t.nil ? r : r === t.nil ? n : (0, t._)`${re(n)} ${e} ${re(r)}`;
|
|
2383
2371
|
}
|
|
2384
|
-
function
|
|
2372
|
+
function re(e) {
|
|
2385
2373
|
return e instanceof t.Name ? e : (0, t._)`(${e})`;
|
|
2386
2374
|
}
|
|
2387
|
-
})),
|
|
2375
|
+
})), X = /* @__PURE__ */ i(((e) => {
|
|
2388
2376
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.checkStrictMode = e.getErrorPath = e.Type = e.useFunc = e.setEvaluated = e.evaluatedPropsToName = e.mergeEvaluated = e.eachItem = e.unescapeJsonPointer = e.escapeJsonPointer = e.escapeFragment = e.unescapeFragment = e.schemaRefOrVal = e.schemaHasRulesButRef = e.schemaHasRules = e.checkUnknownRules = e.alwaysValidSchema = e.toHash = void 0;
|
|
2389
|
-
var t =
|
|
2377
|
+
var t = Y(), n = Dn();
|
|
2390
2378
|
function r(e) {
|
|
2391
2379
|
let t = {};
|
|
2392
2380
|
for (let n of e) t[n] = !0;
|
|
@@ -2509,9 +2497,9 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
2509
2497
|
}
|
|
2510
2498
|
}
|
|
2511
2499
|
e.checkStrictMode = x;
|
|
2512
|
-
})),
|
|
2500
|
+
})), Z = /* @__PURE__ */ i(((e) => {
|
|
2513
2501
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
2514
|
-
var t =
|
|
2502
|
+
var t = Y();
|
|
2515
2503
|
e.default = {
|
|
2516
2504
|
data: new t.Name("data"),
|
|
2517
2505
|
valCxt: new t.Name("valCxt"),
|
|
@@ -2530,9 +2518,9 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
2530
2518
|
jsonLen: new t.Name("jsonLen"),
|
|
2531
2519
|
jsonPart: new t.Name("jsonPart")
|
|
2532
2520
|
};
|
|
2533
|
-
})),
|
|
2521
|
+
})), kn = /* @__PURE__ */ i(((e) => {
|
|
2534
2522
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.extendErrors = e.resetErrorsCount = e.reportExtraError = e.reportError = e.keyword$DataError = e.keywordError = void 0;
|
|
2535
|
-
var t =
|
|
2523
|
+
var t = Y(), n = X(), r = Z();
|
|
2536
2524
|
e.keywordError = { message: ({ keyword: e }) => (0, t.str)`must pass "${e}" keyword validation` }, e.keyword$DataError = { message: ({ keyword: e, schemaType: n }) => n ? (0, t.str)`"${e}" keyword must be ${n} ($data)` : (0, t.str)`"${e}" keyword is invalid ($data)` };
|
|
2537
2525
|
function i(n, r = e.keywordError, i, a) {
|
|
2538
2526
|
let { it: o } = n, { gen: s, compositeRule: u, allErrors: f } = o, p = d(n, r, i);
|
|
@@ -2594,9 +2582,9 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
2594
2582
|
let { keyword: o, data: s, schemaValue: c, it: l } = e, { opts: d, propertyName: f, topSchemaRef: p, schemaPath: m } = l;
|
|
2595
2583
|
a.push([u.keyword, o], [u.params, typeof n == "function" ? n(e) : n || (0, t._)`{}`]), d.messages && a.push([u.message, typeof i == "function" ? i(e) : i]), d.verbose && a.push([u.schema, c], [u.parentSchema, (0, t._)`${p}${m}`], [r.default.data, s]), f && a.push([u.propertyName, f]);
|
|
2596
2584
|
}
|
|
2597
|
-
})),
|
|
2585
|
+
})), An = /* @__PURE__ */ i(((e) => {
|
|
2598
2586
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.boolOrEmptySchema = e.topBoolOrEmptySchema = void 0;
|
|
2599
|
-
var t =
|
|
2587
|
+
var t = kn(), n = Y(), r = Z(), i = { message: "boolean schema is false" };
|
|
2600
2588
|
function a(e) {
|
|
2601
2589
|
let { gen: t, schema: i, validateName: a } = e;
|
|
2602
2590
|
i === !1 ? s(e, !1) : typeof i == "object" && i.$async === !0 ? t.return(r.default.data) : (t.assign((0, n._)`${a}.errors`, null), t.return(!0));
|
|
@@ -2620,7 +2608,7 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
2620
2608
|
};
|
|
2621
2609
|
(0, t.reportError)(o, i, void 0, n);
|
|
2622
2610
|
}
|
|
2623
|
-
})),
|
|
2611
|
+
})), jn = /* @__PURE__ */ i(((e) => {
|
|
2624
2612
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.getRules = e.isJSONType = void 0;
|
|
2625
2613
|
var t = /* @__PURE__ */ new Set([
|
|
2626
2614
|
"string",
|
|
@@ -2674,7 +2662,7 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
2674
2662
|
};
|
|
2675
2663
|
}
|
|
2676
2664
|
e.getRules = r;
|
|
2677
|
-
})),
|
|
2665
|
+
})), Mn = /* @__PURE__ */ i(((e) => {
|
|
2678
2666
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.shouldUseRule = e.shouldUseGroup = e.schemaHasRulesForType = void 0;
|
|
2679
2667
|
function t({ schema: e, self: t }, r) {
|
|
2680
2668
|
let i = t.RULES.types[r];
|
|
@@ -2689,9 +2677,9 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
2689
2677
|
return e[t.keyword] !== void 0 || t.definition.implements?.some((t) => e[t] !== void 0);
|
|
2690
2678
|
}
|
|
2691
2679
|
e.shouldUseRule = r;
|
|
2692
|
-
})),
|
|
2680
|
+
})), Nn = /* @__PURE__ */ i(((e) => {
|
|
2693
2681
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.reportTypeError = e.checkDataTypes = e.checkDataType = e.coerceAndCheckDataType = e.getJSONTypes = e.getSchemaTypes = e.DataType = void 0;
|
|
2694
|
-
var t =
|
|
2682
|
+
var t = jn(), n = Mn(), r = kn(), i = Y(), a = X(), o;
|
|
2695
2683
|
(function(e) {
|
|
2696
2684
|
e[e.Correct = 0] = "Correct", e[e.Wrong = 1] = "Wrong";
|
|
2697
2685
|
})(o || (e.DataType = o = {}));
|
|
@@ -2826,9 +2814,9 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
2826
2814
|
it: e
|
|
2827
2815
|
};
|
|
2828
2816
|
}
|
|
2829
|
-
})),
|
|
2817
|
+
})), Pn = /* @__PURE__ */ i(((e) => {
|
|
2830
2818
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.assignDefaults = void 0;
|
|
2831
|
-
var t =
|
|
2819
|
+
var t = Y(), n = X();
|
|
2832
2820
|
function r(e, t) {
|
|
2833
2821
|
let { properties: n, items: r } = e.schema;
|
|
2834
2822
|
if (t === "object" && n) for (let t in n) i(e, t, n[t].default);
|
|
@@ -2848,7 +2836,7 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
2848
2836
|
}
|
|
2849
2837
|
})), Q = /* @__PURE__ */ i(((e) => {
|
|
2850
2838
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.validateUnion = e.validateArray = e.usePattern = e.callValidateCode = e.schemaProperties = e.allSchemaProperties = e.noPropertyInData = e.propertyInData = e.isOwnProperty = e.hasPropFunc = e.reportMissingProp = e.checkMissingProp = e.checkReportMissingProp = void 0;
|
|
2851
|
-
var t =
|
|
2839
|
+
var t = Y(), n = X(), r = Z(), i = X();
|
|
2852
2840
|
function a(e, n) {
|
|
2853
2841
|
let { gen: r, data: i, it: a } = e;
|
|
2854
2842
|
r.if(d(r, i, n, a.opts.ownProperties), () => {
|
|
@@ -2950,9 +2938,9 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
2950
2938
|
})), e.result(s, () => e.reset(), () => e.error(!0));
|
|
2951
2939
|
}
|
|
2952
2940
|
e.validateUnion = v;
|
|
2953
|
-
})),
|
|
2941
|
+
})), Fn = /* @__PURE__ */ i(((e) => {
|
|
2954
2942
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.validateKeywordUsage = e.validSchemaType = e.funcKeywordCode = e.macroKeywordCode = void 0;
|
|
2955
|
-
var t =
|
|
2943
|
+
var t = Y(), n = Z(), r = Q(), i = kn();
|
|
2956
2944
|
function a(e, n) {
|
|
2957
2945
|
let { gen: r, keyword: i, schema: a, parentSchema: o, it: s } = e, c = n.macro.call(s.self, a, o, s), l = u(r, i, c);
|
|
2958
2946
|
s.opts.validateSchema !== !1 && s.self.validateSchema(c, !0);
|
|
@@ -3031,9 +3019,9 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
3031
3019
|
}
|
|
3032
3020
|
}
|
|
3033
3021
|
e.validateKeywordUsage = f;
|
|
3034
|
-
})),
|
|
3022
|
+
})), In = /* @__PURE__ */ i(((e) => {
|
|
3035
3023
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.extendSubschemaMode = e.extendSubschemaData = e.getSubschema = void 0;
|
|
3036
|
-
var t =
|
|
3024
|
+
var t = Y(), n = X();
|
|
3037
3025
|
function r(e, { keyword: r, schemaProp: i, schema: a, schemaPath: o, errSchemaPath: s, topSchemaRef: c }) {
|
|
3038
3026
|
if (r !== void 0 && a !== void 0) throw Error("both \"keyword\" and \"schema\" passed, only one allowed");
|
|
3039
3027
|
if (r !== void 0) {
|
|
@@ -3077,7 +3065,7 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
3077
3065
|
r !== void 0 && (e.compositeRule = r), i !== void 0 && (e.createErrors = i), a !== void 0 && (e.allErrors = a), e.jtdDiscriminator = t, e.jtdMetadata = n;
|
|
3078
3066
|
}
|
|
3079
3067
|
e.extendSubschemaMode = a;
|
|
3080
|
-
})),
|
|
3068
|
+
})), Ln = /* @__PURE__ */ i(((e, t) => {
|
|
3081
3069
|
t.exports = function e(t, n) {
|
|
3082
3070
|
if (t === n) return !0;
|
|
3083
3071
|
if (t && n && typeof t == "object" && typeof n == "object") {
|
|
@@ -3101,7 +3089,7 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
3101
3089
|
}
|
|
3102
3090
|
return t !== t && n !== n;
|
|
3103
3091
|
};
|
|
3104
|
-
})),
|
|
3092
|
+
})), Rn = /* @__PURE__ */ i(((e, t) => {
|
|
3105
3093
|
var n = t.exports = function(e, t, n) {
|
|
3106
3094
|
typeof t == "function" && (n = t, t = {}), n = t.cb || n;
|
|
3107
3095
|
var i = typeof n == "function" ? n : n.pre || function() {}, a = n.post || function() {};
|
|
@@ -3164,9 +3152,9 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
3164
3152
|
function i(e) {
|
|
3165
3153
|
return e.replace(/~/g, "~0").replace(/\//g, "~1");
|
|
3166
3154
|
}
|
|
3167
|
-
})),
|
|
3155
|
+
})), zn = /* @__PURE__ */ i(((e) => {
|
|
3168
3156
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.getSchemaRefs = e.resolveUrl = e.normalizeId = e._getFullPath = e.getFullPath = e.inlineRef = void 0;
|
|
3169
|
-
var t =
|
|
3157
|
+
var t = X(), n = Ln(), r = Rn(), i = /* @__PURE__ */ new Set([
|
|
3170
3158
|
"type",
|
|
3171
3159
|
"format",
|
|
3172
3160
|
"pattern",
|
|
@@ -3255,9 +3243,9 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
3255
3243
|
}
|
|
3256
3244
|
}
|
|
3257
3245
|
e.getSchemaRefs = h;
|
|
3258
|
-
})),
|
|
3246
|
+
})), Bn = /* @__PURE__ */ i(((e) => {
|
|
3259
3247
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.getData = e.KeywordCxt = e.validateFunctionCode = void 0;
|
|
3260
|
-
var t =
|
|
3248
|
+
var t = An(), n = Nn(), r = Mn(), i = Nn(), a = Pn(), o = Fn(), s = In(), c = Y(), l = Z(), u = zn(), d = X(), f = kn();
|
|
3261
3249
|
function p(e) {
|
|
3262
3250
|
if (S(e) && (w(e), x(e))) {
|
|
3263
3251
|
_(e);
|
|
@@ -3320,9 +3308,9 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
3320
3308
|
(0, d.checkUnknownRules)(e), E(e);
|
|
3321
3309
|
}
|
|
3322
3310
|
function T(e, t) {
|
|
3323
|
-
if (e.opts.jtd) return
|
|
3311
|
+
if (e.opts.jtd) return ee(e, [], !1, t);
|
|
3324
3312
|
let r = (0, n.getSchemaTypes)(e.schema);
|
|
3325
|
-
|
|
3313
|
+
ee(e, r, !(0, n.coerceAndCheckDataType)(e, r), t);
|
|
3326
3314
|
}
|
|
3327
3315
|
function E(e) {
|
|
3328
3316
|
let { schema: t, errSchemaPath: n, opts: r, self: i } = e;
|
|
@@ -3354,71 +3342,71 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
3354
3342
|
function M({ gen: e, evaluated: t, props: n, items: r }) {
|
|
3355
3343
|
n instanceof c.Name && e.assign((0, c._)`${t}.props`, n), r instanceof c.Name && e.assign((0, c._)`${t}.items`, r);
|
|
3356
3344
|
}
|
|
3357
|
-
function
|
|
3345
|
+
function ee(e, t, n, a) {
|
|
3358
3346
|
let { gen: o, schema: s, data: u, allErrors: f, opts: p, self: m } = e, { RULES: h } = m;
|
|
3359
3347
|
if (s.$ref && (p.ignoreKeywordsWithRef || !(0, d.schemaHasRulesButRef)(s, h))) {
|
|
3360
|
-
o.block(() =>
|
|
3348
|
+
o.block(() => le(e, "$ref", h.all.$ref.definition));
|
|
3361
3349
|
return;
|
|
3362
3350
|
}
|
|
3363
|
-
p.jtd ||
|
|
3351
|
+
p.jtd || ne(e, t), o.block(() => {
|
|
3364
3352
|
for (let e of h.rules) g(e);
|
|
3365
3353
|
g(h.post);
|
|
3366
3354
|
});
|
|
3367
3355
|
function g(d) {
|
|
3368
|
-
(0, r.shouldUseGroup)(s, d) && (d.type ? (o.if((0, i.checkDataType)(d.type, u, p.strictNumbers)),
|
|
3356
|
+
(0, r.shouldUseGroup)(s, d) && (d.type ? (o.if((0, i.checkDataType)(d.type, u, p.strictNumbers)), te(e, d), t.length === 1 && t[0] === d.type && n && (o.else(), (0, i.reportTypeError)(e)), o.endIf()) : te(e, d), f || o.if((0, c._)`${l.default.errors} === ${a || 0}`));
|
|
3369
3357
|
}
|
|
3370
3358
|
}
|
|
3371
|
-
function
|
|
3359
|
+
function te(e, t) {
|
|
3372
3360
|
let { gen: n, schema: i, opts: { useDefaults: o } } = e;
|
|
3373
3361
|
o && (0, a.assignDefaults)(e, t.type), n.block(() => {
|
|
3374
|
-
for (let n of t.rules) (0, r.shouldUseRule)(i, n) &&
|
|
3362
|
+
for (let n of t.rules) (0, r.shouldUseRule)(i, n) && le(e, n.keyword, n.definition, t.type);
|
|
3375
3363
|
});
|
|
3376
3364
|
}
|
|
3377
|
-
function
|
|
3378
|
-
e.schemaEnv.meta || !e.opts.strictTypes || (
|
|
3365
|
+
function ne(e, t) {
|
|
3366
|
+
e.schemaEnv.meta || !e.opts.strictTypes || (N(e, t), e.opts.allowUnionTypes || re(e, t), ie(e, e.dataTypes));
|
|
3379
3367
|
}
|
|
3380
|
-
function
|
|
3368
|
+
function N(e, t) {
|
|
3381
3369
|
if (t.length) {
|
|
3382
3370
|
if (!e.dataTypes.length) {
|
|
3383
3371
|
e.dataTypes = t;
|
|
3384
3372
|
return;
|
|
3385
3373
|
}
|
|
3386
3374
|
t.forEach((t) => {
|
|
3387
|
-
|
|
3388
|
-
}),
|
|
3375
|
+
oe(e.dataTypes, t) || se(e, `type "${t}" not allowed by context "${e.dataTypes.join(",")}"`);
|
|
3376
|
+
}), P(e, t);
|
|
3389
3377
|
}
|
|
3390
3378
|
}
|
|
3391
|
-
function
|
|
3392
|
-
t.length > 1 && !(t.length === 2 && t.includes("null")) &&
|
|
3379
|
+
function re(e, t) {
|
|
3380
|
+
t.length > 1 && !(t.length === 2 && t.includes("null")) && se(e, "use allowUnionTypes to allow union type keyword");
|
|
3393
3381
|
}
|
|
3394
|
-
function
|
|
3382
|
+
function ie(e, t) {
|
|
3395
3383
|
let n = e.self.RULES.all;
|
|
3396
3384
|
for (let i in n) {
|
|
3397
3385
|
let a = n[i];
|
|
3398
3386
|
if (typeof a == "object" && (0, r.shouldUseRule)(e.schema, a)) {
|
|
3399
3387
|
let { type: n } = a.definition;
|
|
3400
|
-
n.length && !n.some((e) =>
|
|
3388
|
+
n.length && !n.some((e) => ae(t, e)) && se(e, `missing type "${n.join(",")}" for keyword "${i}"`);
|
|
3401
3389
|
}
|
|
3402
3390
|
}
|
|
3403
3391
|
}
|
|
3404
|
-
function
|
|
3392
|
+
function ae(e, t) {
|
|
3405
3393
|
return e.includes(t) || t === "number" && e.includes("integer");
|
|
3406
3394
|
}
|
|
3407
|
-
function
|
|
3395
|
+
function oe(e, t) {
|
|
3408
3396
|
return e.includes(t) || t === "integer" && e.includes("number");
|
|
3409
3397
|
}
|
|
3410
|
-
function
|
|
3398
|
+
function P(e, t) {
|
|
3411
3399
|
let n = [];
|
|
3412
|
-
for (let r of e.dataTypes)
|
|
3400
|
+
for (let r of e.dataTypes) oe(t, r) ? n.push(r) : t.includes("integer") && r === "number" && n.push("integer");
|
|
3413
3401
|
e.dataTypes = n;
|
|
3414
3402
|
}
|
|
3415
|
-
function
|
|
3403
|
+
function se(e, t) {
|
|
3416
3404
|
let n = e.schemaEnv.baseId + e.errSchemaPath;
|
|
3417
3405
|
t += ` at "${n}" (strictTypes)`, (0, d.checkStrictMode)(e, t, e.opts.strictTypes);
|
|
3418
3406
|
}
|
|
3419
|
-
var
|
|
3407
|
+
var ce = class {
|
|
3420
3408
|
constructor(e, t, n) {
|
|
3421
|
-
if ((0, o.validateKeywordUsage)(e, t, n), this.gen = e.gen, this.allErrors = e.allErrors, this.keyword = n, this.data = e.data, this.schema = e.schema[n], this.$data = t.$data && e.opts.$data && this.schema && this.schema.$data, this.schemaValue = (0, d.schemaRefOrVal)(e, this.schema, n, this.$data), this.schemaType = t.schemaType, this.parentSchema = e.schema, this.params = {}, this.it = e, this.def = t, this.$data) this.schemaCode = e.gen.const("vSchema",
|
|
3409
|
+
if ((0, o.validateKeywordUsage)(e, t, n), this.gen = e.gen, this.allErrors = e.allErrors, this.keyword = n, this.data = e.data, this.schema = e.schema[n], this.$data = t.$data && e.opts.$data && this.schema && this.schema.$data, this.schemaValue = (0, d.schemaRefOrVal)(e, this.schema, n, this.$data), this.schemaType = t.schemaType, this.parentSchema = e.schema, this.params = {}, this.it = e, this.def = t, this.$data) this.schemaCode = e.gen.const("vSchema", fe(this.$data, e));
|
|
3422
3410
|
else if (this.schemaCode = this.schemaValue, !(0, o.validSchemaType)(this.schema, t.schemaType, t.allowUndefined)) throw Error(`${n} value must be ${JSON.stringify(t.schemaType)}`);
|
|
3423
3411
|
("code" in t ? t.trackErrors : t.errors !== !1) && (this.errsCount = e.gen.const("_errs", l.default.errors));
|
|
3424
3412
|
}
|
|
@@ -3516,20 +3504,20 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
3516
3504
|
if (n.opts.unevaluated && (n.props !== !0 || n.items !== !0)) return r.if(t, () => this.mergeEvaluated(e, c.Name)), !0;
|
|
3517
3505
|
}
|
|
3518
3506
|
};
|
|
3519
|
-
e.KeywordCxt =
|
|
3520
|
-
function
|
|
3521
|
-
let i = new
|
|
3507
|
+
e.KeywordCxt = ce;
|
|
3508
|
+
function le(e, t, n, r) {
|
|
3509
|
+
let i = new ce(e, n, t);
|
|
3522
3510
|
"code" in n ? n.code(i, r) : i.$data && n.validate ? (0, o.funcKeywordCode)(i, n) : "macro" in n ? (0, o.macroKeywordCode)(i, n) : (n.compile || n.validate) && (0, o.funcKeywordCode)(i, n);
|
|
3523
3511
|
}
|
|
3524
|
-
var
|
|
3525
|
-
function
|
|
3512
|
+
var ue = /^\/(?:[^~]|~0|~1)*$/, de = /^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;
|
|
3513
|
+
function fe(e, { dataLevel: t, dataNames: n, dataPathArr: r }) {
|
|
3526
3514
|
let i, a;
|
|
3527
3515
|
if (e === "") return l.default.rootData;
|
|
3528
3516
|
if (e[0] === "/") {
|
|
3529
|
-
if (!
|
|
3517
|
+
if (!ue.test(e)) throw Error(`Invalid JSON-pointer: ${e}`);
|
|
3530
3518
|
i = e, a = l.default.rootData;
|
|
3531
3519
|
} else {
|
|
3532
|
-
let o =
|
|
3520
|
+
let o = de.exec(e);
|
|
3533
3521
|
if (!o) throw Error(`Invalid JSON-pointer: ${e}`);
|
|
3534
3522
|
let s = +o[1];
|
|
3535
3523
|
if (i = o[2], i === "#") {
|
|
@@ -3546,24 +3534,24 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
3546
3534
|
return `Cannot access ${e} ${n} levels up, current level is ${t}`;
|
|
3547
3535
|
}
|
|
3548
3536
|
}
|
|
3549
|
-
e.getData =
|
|
3550
|
-
})),
|
|
3537
|
+
e.getData = fe;
|
|
3538
|
+
})), Vn = /* @__PURE__ */ i(((e) => {
|
|
3551
3539
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.default = class extends Error {
|
|
3552
3540
|
constructor(e) {
|
|
3553
3541
|
super("validation failed"), this.errors = e, this.ajv = this.validation = !0;
|
|
3554
3542
|
}
|
|
3555
3543
|
};
|
|
3556
|
-
})),
|
|
3544
|
+
})), Hn = /* @__PURE__ */ i(((e) => {
|
|
3557
3545
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
3558
|
-
var t =
|
|
3546
|
+
var t = zn();
|
|
3559
3547
|
e.default = class extends Error {
|
|
3560
3548
|
constructor(e, n, r, i) {
|
|
3561
3549
|
super(i || `can't resolve reference ${r} from id ${n}`), this.missingRef = (0, t.resolveUrl)(e, n, r), this.missingSchema = (0, t.normalizeId)((0, t.getFullPath)(e, this.missingRef));
|
|
3562
3550
|
}
|
|
3563
3551
|
};
|
|
3564
|
-
})),
|
|
3552
|
+
})), Un = /* @__PURE__ */ i(((e) => {
|
|
3565
3553
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.resolveSchema = e.getCompilingSchema = e.resolveRef = e.compileSchema = e.SchemaEnv = void 0;
|
|
3566
|
-
var t =
|
|
3554
|
+
var t = Y(), n = Vn(), r = Z(), i = zn(), a = X(), o = Bn(), s = class {
|
|
3567
3555
|
constructor(e) {
|
|
3568
3556
|
this.refs = {}, this.dynamicAnchors = {};
|
|
3569
3557
|
let t;
|
|
@@ -3722,27 +3710,27 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
3722
3710
|
baseId: t
|
|
3723
3711
|
}), o.schema !== o.root.schema) return o;
|
|
3724
3712
|
}
|
|
3725
|
-
})),
|
|
3726
|
-
$id: () =>
|
|
3713
|
+
})), Wn = /* @__PURE__ */ r({
|
|
3714
|
+
$id: () => Gn,
|
|
3727
3715
|
additionalProperties: () => !1,
|
|
3728
|
-
default: () =>
|
|
3729
|
-
description: () =>
|
|
3730
|
-
properties: () =>
|
|
3731
|
-
required: () =>
|
|
3732
|
-
type: () =>
|
|
3733
|
-
}),
|
|
3734
|
-
|
|
3716
|
+
default: () => Xn,
|
|
3717
|
+
description: () => Kn,
|
|
3718
|
+
properties: () => Yn,
|
|
3719
|
+
required: () => Jn,
|
|
3720
|
+
type: () => qn
|
|
3721
|
+
}), Gn, Kn, qn, Jn, Yn, Xn, Zn = t((() => {
|
|
3722
|
+
Gn = "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#", Kn = "Meta-schema for $data reference (JSON AnySchema extension proposal)", qn = "object", Jn = ["$data"], Yn = { $data: {
|
|
3735
3723
|
type: "string",
|
|
3736
3724
|
anyOf: [{ format: "relative-json-pointer" }, { format: "json-pointer" }]
|
|
3737
|
-
} },
|
|
3738
|
-
$id:
|
|
3739
|
-
description:
|
|
3740
|
-
type:
|
|
3741
|
-
required:
|
|
3742
|
-
properties:
|
|
3725
|
+
} }, Xn = {
|
|
3726
|
+
$id: Gn,
|
|
3727
|
+
description: Kn,
|
|
3728
|
+
type: qn,
|
|
3729
|
+
required: Jn,
|
|
3730
|
+
properties: Yn,
|
|
3743
3731
|
additionalProperties: !1
|
|
3744
3732
|
};
|
|
3745
|
-
})),
|
|
3733
|
+
})), Qn = /* @__PURE__ */ i(((e, t) => {
|
|
3746
3734
|
var n = RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu), r = RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u), i = RegExp.prototype.test.bind(/^[\da-f]{2}$/iu), a = RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu), o = RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:@/]$/u), s = RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:@/?]$/u), c = RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:]$/u), l = Array(256);
|
|
3747
3735
|
{
|
|
3748
3736
|
let e = "0123456789ABCDEF";
|
|
@@ -3949,7 +3937,7 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
3949
3937
|
if (o(r)) t += r;
|
|
3950
3938
|
else {
|
|
3951
3939
|
let i = e.charCodeAt(n);
|
|
3952
|
-
if (i < 128) t +=
|
|
3940
|
+
if (i < 128) t += ee(i) ? r : l[i];
|
|
3953
3941
|
else if (i < 55296 || i > 57343) t += u(i);
|
|
3954
3942
|
else if (i <= 56319 && n + 1 < e.length) {
|
|
3955
3943
|
let r = e.charCodeAt(n + 1);
|
|
@@ -4016,10 +4004,10 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
4016
4004
|
function M(e) {
|
|
4017
4005
|
return k(e, s);
|
|
4018
4006
|
}
|
|
4019
|
-
function
|
|
4007
|
+
function ee(e) {
|
|
4020
4008
|
return e >= 48 && e <= 57 || e >= 65 && e <= 90 || e >= 97 && e <= 122 || e === 42 || e === 43 || e === 45 || e === 46 || e === 47 || e === 64 || e === 95;
|
|
4021
4009
|
}
|
|
4022
|
-
function
|
|
4010
|
+
function te(e) {
|
|
4023
4011
|
let t = "";
|
|
4024
4012
|
for (let n = 0; n < e.length; n++) {
|
|
4025
4013
|
let r = e[n];
|
|
@@ -4034,7 +4022,7 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
4034
4022
|
if (s(r)) t += r;
|
|
4035
4023
|
else {
|
|
4036
4024
|
let i = e.charCodeAt(n);
|
|
4037
|
-
if (i < 128) t +=
|
|
4025
|
+
if (i < 128) t += ee(i) ? r : l[i];
|
|
4038
4026
|
else if (i < 55296 || i > 57343) t += u(i);
|
|
4039
4027
|
else if (i <= 56319 && n + 1 < e.length) {
|
|
4040
4028
|
let r = e.charCodeAt(n + 1);
|
|
@@ -4044,7 +4032,7 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
4044
4032
|
}
|
|
4045
4033
|
return t;
|
|
4046
4034
|
}
|
|
4047
|
-
function
|
|
4035
|
+
function ne(e) {
|
|
4048
4036
|
let t = "";
|
|
4049
4037
|
for (let n = 0; n < e.length; n++) {
|
|
4050
4038
|
if (e[n] === "%" && n + 2 < e.length) {
|
|
@@ -4058,7 +4046,7 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
4058
4046
|
}
|
|
4059
4047
|
return t;
|
|
4060
4048
|
}
|
|
4061
|
-
function
|
|
4049
|
+
function N(e) {
|
|
4062
4050
|
let t = [];
|
|
4063
4051
|
if (e.userinfo !== void 0 && (t.push(A(e.userinfo)), t.push("@")), e.host !== void 0) {
|
|
4064
4052
|
let n = e.host;
|
|
@@ -4072,24 +4060,24 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
4072
4060
|
}
|
|
4073
4061
|
t.exports = {
|
|
4074
4062
|
nonSimpleDomain: h,
|
|
4075
|
-
recomposeAuthority:
|
|
4063
|
+
recomposeAuthority: N,
|
|
4076
4064
|
reescapeHostDelimiters: T,
|
|
4077
4065
|
normalizePercentEncoding: E,
|
|
4078
4066
|
normalizePathEncoding: D,
|
|
4079
4067
|
serializePathEncoding: O,
|
|
4080
|
-
normalizeQueryFragmentEncoding:
|
|
4068
|
+
normalizeQueryFragmentEncoding: te,
|
|
4081
4069
|
encodeUserinfo: A,
|
|
4082
4070
|
encodeQuery: j,
|
|
4083
4071
|
encodeFragment: M,
|
|
4084
|
-
escapePreservingEscapes:
|
|
4072
|
+
escapePreservingEscapes: ne,
|
|
4085
4073
|
removeDotSegments: x,
|
|
4086
4074
|
isIPv4: r,
|
|
4087
4075
|
isUUID: n,
|
|
4088
4076
|
normalizeIPv6: y,
|
|
4089
4077
|
stringArrayToHexStripped: d
|
|
4090
4078
|
};
|
|
4091
|
-
})),
|
|
4092
|
-
var { isUUID: n } =
|
|
4079
|
+
})), $n = /* @__PURE__ */ i(((e, t) => {
|
|
4080
|
+
var { isUUID: n } = Qn(), r = /^([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-./:;=@]|%[\da-f]{2})+)$/iu, i = [
|
|
4093
4081
|
"http",
|
|
4094
4082
|
"https",
|
|
4095
4083
|
"ws",
|
|
@@ -4194,15 +4182,15 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
4194
4182
|
isValidSchemeName: a,
|
|
4195
4183
|
getSchemeHandler: y
|
|
4196
4184
|
};
|
|
4197
|
-
})),
|
|
4198
|
-
var { normalizeIPv6: n, removeDotSegments: r, recomposeAuthority: i, normalizePercentEncoding: a, normalizePathEncoding: o, serializePathEncoding: s, normalizeQueryFragmentEncoding: c, encodeQuery: l, encodeFragment: u, reescapeHostDelimiters: d, isIPv4: f, nonSimpleDomain: p } =
|
|
4185
|
+
})), er = /* @__PURE__ */ i(((e, t) => {
|
|
4186
|
+
var { normalizeIPv6: n, removeDotSegments: r, recomposeAuthority: i, normalizePercentEncoding: a, normalizePathEncoding: o, serializePathEncoding: s, normalizeQueryFragmentEncoding: c, encodeQuery: l, encodeFragment: u, reescapeHostDelimiters: d, isIPv4: f, nonSimpleDomain: p } = Qn(), { SCHEMES: m, getSchemeHandler: h } = $n(), g = /^[A-Za-z][A-Za-z0-9+.-]*$/u, _ = "URI scheme is malformed.";
|
|
4199
4187
|
function v(e) {
|
|
4200
4188
|
let t = unescape(String(e));
|
|
4201
4189
|
if (!g.test(t)) throw TypeError(_);
|
|
4202
4190
|
return t;
|
|
4203
4191
|
}
|
|
4204
4192
|
function y(e, t) {
|
|
4205
|
-
return typeof e == "string" ? e =
|
|
4193
|
+
return typeof e == "string" ? e = ee(e, t) : typeof e == "object" && (e = M(C(e, t), t)), e;
|
|
4206
4194
|
}
|
|
4207
4195
|
function b(e, t, r) {
|
|
4208
4196
|
let i = r ? Object.assign({ scheme: "null" }, r) : { scheme: "null" }, { parsed: a, malformedAuthorityOrPort: o, malformedPercentEncoding: s, malformedSchemeSpecific: c, malformedHost: l, malformedScheme: u } = j(e, i), { parsed: d, malformedAuthorityOrPort: p, malformedPercentEncoding: m, malformedSchemeSpecific: g, malformedHost: _, malformedScheme: v } = j(t, i);
|
|
@@ -4218,7 +4206,7 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
4218
4206
|
return i || (e = M(C(e, n), n), t = M(C(t, n), n)), n ||= {}, !n.tolerant && t.scheme ? (a.scheme = t.scheme, a.userinfo = t.userinfo, a.host = t.host, a.port = t.port, a.path = r(t.path || ""), a.query = t.query) : (t.userinfo !== void 0 || t.host !== void 0 || t.port !== void 0 ? (a.userinfo = t.userinfo, a.host = t.host, a.port = t.port, a.path = r(t.path || ""), a.query = t.query) : (t.path ? (t.path[0] === "/" ? a.path = r(t.path) : (a.path = (e.userinfo !== void 0 || e.host !== void 0 || e.port !== void 0) && !e.path ? "/" + t.path : e.path ? e.path.slice(0, e.path.lastIndexOf("/") + 1) + t.path : t.path, a.path = r(a.path)), a.query = t.query) : (a.path = e.path, a.query = t.query === void 0 ? e.query : t.query), a.userinfo = e.userinfo, a.host = e.host, a.port = e.port), a.scheme = e.scheme), a.fragment = t.fragment, a;
|
|
4219
4207
|
}
|
|
4220
4208
|
function S(e, t, n) {
|
|
4221
|
-
let r =
|
|
4209
|
+
let r = ne(e, n), i = ne(t, n);
|
|
4222
4210
|
return r !== void 0 && i !== void 0 && r === i;
|
|
4223
4211
|
}
|
|
4224
4212
|
function C(e, t) {
|
|
@@ -4324,10 +4312,10 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
4324
4312
|
function M(e, t) {
|
|
4325
4313
|
return j(e, t).parsed;
|
|
4326
4314
|
}
|
|
4327
|
-
function
|
|
4328
|
-
return
|
|
4315
|
+
function ee(e, t) {
|
|
4316
|
+
return te(e, t).normalized;
|
|
4329
4317
|
}
|
|
4330
|
-
function
|
|
4318
|
+
function te(e, t) {
|
|
4331
4319
|
let { parsed: n, malformedAuthorityOrPort: r, malformedPercentEncoding: i, malformedSchemeSpecific: a, malformedHost: o, malformedScheme: s } = j(e, t);
|
|
4332
4320
|
return {
|
|
4333
4321
|
normalized: r || i || a || o || s ? e : C(n, t),
|
|
@@ -4338,7 +4326,7 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
4338
4326
|
malformedScheme: s
|
|
4339
4327
|
};
|
|
4340
4328
|
}
|
|
4341
|
-
function
|
|
4329
|
+
function ne(e, t) {
|
|
4342
4330
|
if (typeof e != "string" && typeof e != "object") return;
|
|
4343
4331
|
let n;
|
|
4344
4332
|
try {
|
|
@@ -4346,10 +4334,10 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
4346
4334
|
} catch {
|
|
4347
4335
|
return;
|
|
4348
4336
|
}
|
|
4349
|
-
let { normalized: r, malformedAuthorityOrPort: i, malformedPercentEncoding: a, malformedSchemeSpecific: o, malformedHost: s, malformedScheme: c } =
|
|
4337
|
+
let { normalized: r, malformedAuthorityOrPort: i, malformedPercentEncoding: a, malformedSchemeSpecific: o, malformedHost: s, malformedScheme: c } = te(n, t);
|
|
4350
4338
|
return i || a || o || s || c ? void 0 : r;
|
|
4351
4339
|
}
|
|
4352
|
-
var
|
|
4340
|
+
var N = {
|
|
4353
4341
|
SCHEMES: m,
|
|
4354
4342
|
normalize: y,
|
|
4355
4343
|
resolve: b,
|
|
@@ -4358,21 +4346,21 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
4358
4346
|
serialize: C,
|
|
4359
4347
|
parse: M
|
|
4360
4348
|
};
|
|
4361
|
-
t.exports =
|
|
4362
|
-
})),
|
|
4349
|
+
t.exports = N, t.exports.default = N, t.exports.fastUri = N;
|
|
4350
|
+
})), tr = /* @__PURE__ */ i(((e) => {
|
|
4363
4351
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
4364
|
-
var t =
|
|
4352
|
+
var t = er();
|
|
4365
4353
|
t.code = "require(\"ajv/dist/runtime/uri\").default", e.default = t;
|
|
4366
|
-
})),
|
|
4354
|
+
})), nr = /* @__PURE__ */ i(((t) => {
|
|
4367
4355
|
Object.defineProperty(t, "__esModule", { value: !0 }), t.CodeGen = t.Name = t.nil = t.stringify = t.str = t._ = t.KeywordCxt = void 0;
|
|
4368
|
-
var n =
|
|
4356
|
+
var n = Bn();
|
|
4369
4357
|
Object.defineProperty(t, "KeywordCxt", {
|
|
4370
4358
|
enumerable: !0,
|
|
4371
4359
|
get: function() {
|
|
4372
4360
|
return n.KeywordCxt;
|
|
4373
4361
|
}
|
|
4374
4362
|
});
|
|
4375
|
-
var r =
|
|
4363
|
+
var r = Y();
|
|
4376
4364
|
Object.defineProperty(t, "_", {
|
|
4377
4365
|
enumerable: !0,
|
|
4378
4366
|
get: function() {
|
|
@@ -4404,7 +4392,7 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
4404
4392
|
return r.CodeGen;
|
|
4405
4393
|
}
|
|
4406
4394
|
});
|
|
4407
|
-
var i =
|
|
4395
|
+
var i = Vn(), a = Hn(), o = jn(), s = Un(), c = Y(), l = zn(), u = Nn(), d = X(), f = (Zn(), e(Wn).default), p = tr(), m = (e, t) => new RegExp(e, t);
|
|
4408
4396
|
m.code = "new RegExp";
|
|
4409
4397
|
var h = [
|
|
4410
4398
|
"removeAdditional",
|
|
@@ -4620,7 +4608,7 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
4620
4608
|
if (t = e, n = t.keyword, Array.isArray(n) && !n.length) throw Error("addKeywords: keyword must be string or non-empty array");
|
|
4621
4609
|
} else throw Error("invalid addKeywords parameters");
|
|
4622
4610
|
if (j.call(this, n, t), !t) return (0, d.eachItem)(n, (e) => M.call(this, e)), this;
|
|
4623
|
-
|
|
4611
|
+
te.call(this, t);
|
|
4624
4612
|
let r = {
|
|
4625
4613
|
...t,
|
|
4626
4614
|
type: (0, u.getJSONTypes)(t.type),
|
|
@@ -4657,7 +4645,7 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
4657
4645
|
let t = n[e];
|
|
4658
4646
|
if (typeof t != "object") continue;
|
|
4659
4647
|
let { $data: r } = t.definition, a = i[e];
|
|
4660
|
-
r && a && (i[e] =
|
|
4648
|
+
r && a && (i[e] = N(a));
|
|
4661
4649
|
}
|
|
4662
4650
|
}
|
|
4663
4651
|
return e;
|
|
@@ -4778,30 +4766,30 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
4778
4766
|
schemaType: (0, u.getJSONTypes)(t.schemaType)
|
|
4779
4767
|
}
|
|
4780
4768
|
};
|
|
4781
|
-
t.before ?
|
|
4769
|
+
t.before ? ee.call(this, o, s, t.before) : o.rules.push(s), a.all[e] = s, (r = t.implements) == null || r.forEach((e) => this.addKeyword(e));
|
|
4782
4770
|
}
|
|
4783
|
-
function
|
|
4771
|
+
function ee(e, t, n) {
|
|
4784
4772
|
let r = e.rules.findIndex((e) => e.keyword === n);
|
|
4785
4773
|
r >= 0 ? e.rules.splice(r, 0, t) : (e.rules.push(t), this.logger.warn(`rule ${n} is not defined`));
|
|
4786
4774
|
}
|
|
4787
|
-
function
|
|
4775
|
+
function te(e) {
|
|
4788
4776
|
let { metaSchema: t } = e;
|
|
4789
|
-
t !== void 0 && (e.$data && this.opts.$data && (t =
|
|
4777
|
+
t !== void 0 && (e.$data && this.opts.$data && (t = N(t)), e.validateSchema = this.compile(t, !0));
|
|
4790
4778
|
}
|
|
4791
|
-
var
|
|
4792
|
-
function
|
|
4793
|
-
return { anyOf: [e,
|
|
4779
|
+
var ne = { $ref: "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#" };
|
|
4780
|
+
function N(e) {
|
|
4781
|
+
return { anyOf: [e, ne] };
|
|
4794
4782
|
}
|
|
4795
|
-
})),
|
|
4783
|
+
})), rr = /* @__PURE__ */ i(((e) => {
|
|
4796
4784
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.default = {
|
|
4797
4785
|
keyword: "id",
|
|
4798
4786
|
code() {
|
|
4799
4787
|
throw Error("NOT SUPPORTED: keyword \"id\", use \"$id\" for schema ID");
|
|
4800
4788
|
}
|
|
4801
4789
|
};
|
|
4802
|
-
})),
|
|
4790
|
+
})), ir = /* @__PURE__ */ i(((e) => {
|
|
4803
4791
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.callRef = e.getValidate = void 0;
|
|
4804
|
-
var t =
|
|
4792
|
+
var t = Hn(), n = Q(), r = Y(), i = Z(), a = Un(), o = X(), s = {
|
|
4805
4793
|
keyword: "$ref",
|
|
4806
4794
|
schemaType: "string",
|
|
4807
4795
|
code(e) {
|
|
@@ -4878,9 +4866,9 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
4878
4866
|
}
|
|
4879
4867
|
}
|
|
4880
4868
|
e.callRef = l, e.default = s;
|
|
4881
|
-
})),
|
|
4869
|
+
})), ar = /* @__PURE__ */ i(((e) => {
|
|
4882
4870
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
4883
|
-
var t =
|
|
4871
|
+
var t = rr(), n = ir();
|
|
4884
4872
|
e.default = [
|
|
4885
4873
|
"$schema",
|
|
4886
4874
|
"$id",
|
|
@@ -4891,9 +4879,9 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
4891
4879
|
t.default,
|
|
4892
4880
|
n.default
|
|
4893
4881
|
];
|
|
4894
|
-
})),
|
|
4882
|
+
})), or = /* @__PURE__ */ i(((e) => {
|
|
4895
4883
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
4896
|
-
var t =
|
|
4884
|
+
var t = Y(), n = t.operators, r = {
|
|
4897
4885
|
maximum: {
|
|
4898
4886
|
okStr: "<=",
|
|
4899
4887
|
ok: n.LTE,
|
|
@@ -4929,9 +4917,9 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
4929
4917
|
e.fail$data((0, t._)`${i} ${r[n].fail} ${a} || isNaN(${i})`);
|
|
4930
4918
|
}
|
|
4931
4919
|
};
|
|
4932
|
-
})),
|
|
4920
|
+
})), sr = /* @__PURE__ */ i(((e) => {
|
|
4933
4921
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
4934
|
-
var t =
|
|
4922
|
+
var t = Y();
|
|
4935
4923
|
e.default = {
|
|
4936
4924
|
keyword: "multipleOf",
|
|
4937
4925
|
type: "number",
|
|
@@ -4946,7 +4934,7 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
4946
4934
|
e.fail$data((0, t._)`(${i} === 0 || (${s} = ${r}/${i}, ${c}))`);
|
|
4947
4935
|
}
|
|
4948
4936
|
};
|
|
4949
|
-
})),
|
|
4937
|
+
})), cr = /* @__PURE__ */ i(((e) => {
|
|
4950
4938
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
4951
4939
|
function t(e) {
|
|
4952
4940
|
let t = e.length, n = 0, r = 0, i;
|
|
@@ -4954,9 +4942,9 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
4954
4942
|
return n;
|
|
4955
4943
|
}
|
|
4956
4944
|
e.default = t, t.code = "require(\"ajv/dist/runtime/ucs2length\").default";
|
|
4957
|
-
})),
|
|
4945
|
+
})), lr = /* @__PURE__ */ i(((e) => {
|
|
4958
4946
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
4959
|
-
var t =
|
|
4947
|
+
var t = Y(), n = X(), r = cr();
|
|
4960
4948
|
e.default = {
|
|
4961
4949
|
keyword: ["maxLength", "minLength"],
|
|
4962
4950
|
type: "string",
|
|
@@ -4974,9 +4962,9 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
4974
4962
|
e.fail$data((0, t._)`${l} ${c} ${o}`);
|
|
4975
4963
|
}
|
|
4976
4964
|
};
|
|
4977
|
-
})),
|
|
4965
|
+
})), ur = /* @__PURE__ */ i(((e) => {
|
|
4978
4966
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
4979
|
-
var t = Q(), n =
|
|
4967
|
+
var t = Q(), n = X(), r = Y();
|
|
4980
4968
|
e.default = {
|
|
4981
4969
|
keyword: "pattern",
|
|
4982
4970
|
type: "string",
|
|
@@ -4997,9 +4985,9 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
4997
4985
|
}
|
|
4998
4986
|
}
|
|
4999
4987
|
};
|
|
5000
|
-
})),
|
|
4988
|
+
})), dr = /* @__PURE__ */ i(((e) => {
|
|
5001
4989
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
5002
|
-
var t =
|
|
4990
|
+
var t = Y();
|
|
5003
4991
|
e.default = {
|
|
5004
4992
|
keyword: ["maxProperties", "minProperties"],
|
|
5005
4993
|
type: "object",
|
|
@@ -5017,9 +5005,9 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
5017
5005
|
e.fail$data((0, t._)`Object.keys(${r}).length ${a} ${i}`);
|
|
5018
5006
|
}
|
|
5019
5007
|
};
|
|
5020
|
-
})),
|
|
5008
|
+
})), fr = /* @__PURE__ */ i(((e) => {
|
|
5021
5009
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
5022
|
-
var t = Q(), n =
|
|
5010
|
+
var t = Q(), n = Y(), r = X();
|
|
5023
5011
|
e.default = {
|
|
5024
5012
|
keyword: "required",
|
|
5025
5013
|
type: "object",
|
|
@@ -5065,9 +5053,9 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
5065
5053
|
}
|
|
5066
5054
|
}
|
|
5067
5055
|
};
|
|
5068
|
-
})),
|
|
5056
|
+
})), pr = /* @__PURE__ */ i(((e) => {
|
|
5069
5057
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
5070
|
-
var t =
|
|
5058
|
+
var t = Y();
|
|
5071
5059
|
e.default = {
|
|
5072
5060
|
keyword: ["maxItems", "minItems"],
|
|
5073
5061
|
type: "array",
|
|
@@ -5085,13 +5073,13 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
5085
5073
|
e.fail$data((0, t._)`${r}.length ${a} ${i}`);
|
|
5086
5074
|
}
|
|
5087
5075
|
};
|
|
5088
|
-
})),
|
|
5076
|
+
})), mr = /* @__PURE__ */ i(((e) => {
|
|
5089
5077
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
5090
|
-
var t =
|
|
5078
|
+
var t = Ln();
|
|
5091
5079
|
t.code = "require(\"ajv/dist/runtime/equal\").default", e.default = t;
|
|
5092
|
-
})),
|
|
5080
|
+
})), hr = /* @__PURE__ */ i(((e) => {
|
|
5093
5081
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
5094
|
-
var t =
|
|
5082
|
+
var t = Nn(), n = Y(), r = X(), i = mr();
|
|
5095
5083
|
e.default = {
|
|
5096
5084
|
keyword: "uniqueItems",
|
|
5097
5085
|
type: "array",
|
|
@@ -5132,9 +5120,9 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
5132
5120
|
}
|
|
5133
5121
|
}
|
|
5134
5122
|
};
|
|
5135
|
-
})),
|
|
5123
|
+
})), gr = /* @__PURE__ */ i(((e) => {
|
|
5136
5124
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
5137
|
-
var t =
|
|
5125
|
+
var t = Y(), n = X(), r = mr();
|
|
5138
5126
|
e.default = {
|
|
5139
5127
|
keyword: "const",
|
|
5140
5128
|
$data: !0,
|
|
@@ -5147,9 +5135,9 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
5147
5135
|
o || c && typeof c == "object" ? e.fail$data((0, t._)`!${(0, n.useFunc)(i, r.default)}(${a}, ${s})`) : e.fail((0, t._)`${c} !== ${a}`);
|
|
5148
5136
|
}
|
|
5149
5137
|
};
|
|
5150
|
-
})),
|
|
5138
|
+
})), _r = /* @__PURE__ */ i(((e) => {
|
|
5151
5139
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
5152
|
-
var t =
|
|
5140
|
+
var t = Y(), n = X(), r = mr();
|
|
5153
5141
|
e.default = {
|
|
5154
5142
|
keyword: "enum",
|
|
5155
5143
|
schemaType: "array",
|
|
@@ -5179,9 +5167,9 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
5179
5167
|
}
|
|
5180
5168
|
}
|
|
5181
5169
|
};
|
|
5182
|
-
})),
|
|
5170
|
+
})), vr = /* @__PURE__ */ i(((e) => {
|
|
5183
5171
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
5184
|
-
var t =
|
|
5172
|
+
var t = or(), n = sr(), r = lr(), i = ur(), a = dr(), o = fr(), s = pr(), c = hr(), l = gr(), u = _r();
|
|
5185
5173
|
e.default = [
|
|
5186
5174
|
t.default,
|
|
5187
5175
|
n.default,
|
|
@@ -5202,9 +5190,9 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
5202
5190
|
l.default,
|
|
5203
5191
|
u.default
|
|
5204
5192
|
];
|
|
5205
|
-
})),
|
|
5193
|
+
})), yr = /* @__PURE__ */ i(((e) => {
|
|
5206
5194
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.validateAdditionalItems = void 0;
|
|
5207
|
-
var t =
|
|
5195
|
+
var t = Y(), n = X(), r = {
|
|
5208
5196
|
keyword: "additionalItems",
|
|
5209
5197
|
type: "array",
|
|
5210
5198
|
schemaType: ["boolean", "object"],
|
|
@@ -5242,9 +5230,9 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
5242
5230
|
}
|
|
5243
5231
|
}
|
|
5244
5232
|
e.validateAdditionalItems = i, e.default = r;
|
|
5245
|
-
})),
|
|
5233
|
+
})), br = /* @__PURE__ */ i(((e) => {
|
|
5246
5234
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.validateTuple = void 0;
|
|
5247
|
-
var t =
|
|
5235
|
+
var t = Y(), n = X(), r = Q(), i = {
|
|
5248
5236
|
keyword: "items",
|
|
5249
5237
|
type: "array",
|
|
5250
5238
|
schemaType: [
|
|
@@ -5279,9 +5267,9 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
5279
5267
|
}
|
|
5280
5268
|
}
|
|
5281
5269
|
e.validateTuple = a, e.default = i;
|
|
5282
|
-
})),
|
|
5270
|
+
})), xr = /* @__PURE__ */ i(((e) => {
|
|
5283
5271
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
5284
|
-
var t =
|
|
5272
|
+
var t = br();
|
|
5285
5273
|
e.default = {
|
|
5286
5274
|
keyword: "prefixItems",
|
|
5287
5275
|
type: "array",
|
|
@@ -5289,9 +5277,9 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
5289
5277
|
before: "uniqueItems",
|
|
5290
5278
|
code: (e) => (0, t.validateTuple)(e, "items")
|
|
5291
5279
|
};
|
|
5292
|
-
})),
|
|
5280
|
+
})), Sr = /* @__PURE__ */ i(((e) => {
|
|
5293
5281
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
5294
|
-
var t =
|
|
5282
|
+
var t = Y(), n = X(), r = Q(), i = yr();
|
|
5295
5283
|
e.default = {
|
|
5296
5284
|
keyword: "items",
|
|
5297
5285
|
type: "array",
|
|
@@ -5306,9 +5294,9 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
5306
5294
|
o.items = !0, !(0, n.alwaysValidSchema)(o, t) && (s ? (0, i.validateAdditionalItems)(e, s) : e.ok((0, r.validateArray)(e)));
|
|
5307
5295
|
}
|
|
5308
5296
|
};
|
|
5309
|
-
})),
|
|
5297
|
+
})), Cr = /* @__PURE__ */ i(((e) => {
|
|
5310
5298
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
5311
|
-
var t =
|
|
5299
|
+
var t = Y(), n = X();
|
|
5312
5300
|
e.default = {
|
|
5313
5301
|
keyword: "contains",
|
|
5314
5302
|
type: "array",
|
|
@@ -5361,9 +5349,9 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
5361
5349
|
}
|
|
5362
5350
|
}
|
|
5363
5351
|
};
|
|
5364
|
-
})),
|
|
5352
|
+
})), wr = /* @__PURE__ */ i(((e) => {
|
|
5365
5353
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.validateSchemaDeps = e.validatePropertyDeps = e.error = void 0;
|
|
5366
|
-
var t =
|
|
5354
|
+
var t = Y(), n = X(), r = Q();
|
|
5367
5355
|
e.error = {
|
|
5368
5356
|
message: ({ params: { property: e, depsCount: n, deps: r } }) => {
|
|
5369
5357
|
let i = n === 1 ? "property" : "properties";
|
|
@@ -5422,9 +5410,9 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
5422
5410
|
}, () => i.var(c, !0)), e.ok(c));
|
|
5423
5411
|
}
|
|
5424
5412
|
e.validateSchemaDeps = s, e.default = i;
|
|
5425
|
-
})),
|
|
5413
|
+
})), Tr = /* @__PURE__ */ i(((e) => {
|
|
5426
5414
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
5427
|
-
var t =
|
|
5415
|
+
var t = Y(), n = X();
|
|
5428
5416
|
e.default = {
|
|
5429
5417
|
keyword: "propertyNames",
|
|
5430
5418
|
type: "object",
|
|
@@ -5450,9 +5438,9 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
5450
5438
|
}), e.ok(s);
|
|
5451
5439
|
}
|
|
5452
5440
|
};
|
|
5453
|
-
})),
|
|
5441
|
+
})), Er = /* @__PURE__ */ i(((e) => {
|
|
5454
5442
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
5455
|
-
var t = Q(), n =
|
|
5443
|
+
var t = Q(), n = Y(), r = Z(), i = X();
|
|
5456
5444
|
e.default = {
|
|
5457
5445
|
keyword: "additionalProperties",
|
|
5458
5446
|
type: ["object"],
|
|
@@ -5517,9 +5505,9 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
5517
5505
|
}
|
|
5518
5506
|
}
|
|
5519
5507
|
};
|
|
5520
|
-
})),
|
|
5508
|
+
})), Dr = /* @__PURE__ */ i(((e) => {
|
|
5521
5509
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
5522
|
-
var t =
|
|
5510
|
+
var t = Bn(), n = Q(), r = X(), i = Er();
|
|
5523
5511
|
e.default = {
|
|
5524
5512
|
keyword: "properties",
|
|
5525
5513
|
type: "object",
|
|
@@ -5546,9 +5534,9 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
5546
5534
|
}
|
|
5547
5535
|
}
|
|
5548
5536
|
};
|
|
5549
|
-
})),
|
|
5537
|
+
})), Or = /* @__PURE__ */ i(((e) => {
|
|
5550
5538
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
5551
|
-
var t = Q(), n =
|
|
5539
|
+
var t = Q(), n = Y(), r = X(), i = X();
|
|
5552
5540
|
e.default = {
|
|
5553
5541
|
keyword: "patternProperties",
|
|
5554
5542
|
type: "object",
|
|
@@ -5581,9 +5569,9 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
5581
5569
|
}
|
|
5582
5570
|
}
|
|
5583
5571
|
};
|
|
5584
|
-
})),
|
|
5572
|
+
})), kr = /* @__PURE__ */ i(((e) => {
|
|
5585
5573
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
5586
|
-
var t =
|
|
5574
|
+
var t = X();
|
|
5587
5575
|
e.default = {
|
|
5588
5576
|
keyword: "not",
|
|
5589
5577
|
schemaType: ["object", "boolean"],
|
|
@@ -5604,7 +5592,7 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
5604
5592
|
},
|
|
5605
5593
|
error: { message: "must NOT be valid" }
|
|
5606
5594
|
};
|
|
5607
|
-
})),
|
|
5595
|
+
})), Ar = /* @__PURE__ */ i(((e) => {
|
|
5608
5596
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.default = {
|
|
5609
5597
|
keyword: "anyOf",
|
|
5610
5598
|
schemaType: "array",
|
|
@@ -5612,9 +5600,9 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
5612
5600
|
code: Q().validateUnion,
|
|
5613
5601
|
error: { message: "must match a schema in anyOf" }
|
|
5614
5602
|
};
|
|
5615
|
-
})),
|
|
5603
|
+
})), jr = /* @__PURE__ */ i(((e) => {
|
|
5616
5604
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
5617
|
-
var t =
|
|
5605
|
+
var t = Y(), n = X();
|
|
5618
5606
|
e.default = {
|
|
5619
5607
|
keyword: "oneOf",
|
|
5620
5608
|
schemaType: "array",
|
|
@@ -5644,9 +5632,9 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
5644
5632
|
}
|
|
5645
5633
|
}
|
|
5646
5634
|
};
|
|
5647
|
-
})),
|
|
5635
|
+
})), Mr = /* @__PURE__ */ i(((e) => {
|
|
5648
5636
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
5649
|
-
var t =
|
|
5637
|
+
var t = X();
|
|
5650
5638
|
e.default = {
|
|
5651
5639
|
keyword: "allOf",
|
|
5652
5640
|
schemaType: "array",
|
|
@@ -5665,9 +5653,9 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
5665
5653
|
});
|
|
5666
5654
|
}
|
|
5667
5655
|
};
|
|
5668
|
-
})),
|
|
5656
|
+
})), Nr = /* @__PURE__ */ i(((e) => {
|
|
5669
5657
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
5670
|
-
var t =
|
|
5658
|
+
var t = Y(), n = X(), r = {
|
|
5671
5659
|
keyword: "if",
|
|
5672
5660
|
schemaType: ["object", "boolean"],
|
|
5673
5661
|
trackErrors: !0,
|
|
@@ -5708,9 +5696,9 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
5708
5696
|
return r !== void 0 && !(0, n.alwaysValidSchema)(e, r);
|
|
5709
5697
|
}
|
|
5710
5698
|
e.default = r;
|
|
5711
|
-
})),
|
|
5699
|
+
})), Pr = /* @__PURE__ */ i(((e) => {
|
|
5712
5700
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
5713
|
-
var t =
|
|
5701
|
+
var t = X();
|
|
5714
5702
|
e.default = {
|
|
5715
5703
|
keyword: ["then", "else"],
|
|
5716
5704
|
schemaType: ["object", "boolean"],
|
|
@@ -5718,9 +5706,9 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
5718
5706
|
n.if === void 0 && (0, t.checkStrictMode)(r, `"${e}" without "if" is ignored`);
|
|
5719
5707
|
}
|
|
5720
5708
|
};
|
|
5721
|
-
})),
|
|
5709
|
+
})), Fr = /* @__PURE__ */ i(((e) => {
|
|
5722
5710
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
5723
|
-
var t =
|
|
5711
|
+
var t = yr(), n = xr(), r = br(), i = Sr(), a = Cr(), o = wr(), s = Tr(), c = Er(), l = Dr(), u = Or(), d = kr(), f = Ar(), p = jr(), m = Mr(), h = Nr(), g = Pr();
|
|
5724
5712
|
function _(e = !1) {
|
|
5725
5713
|
let _ = [
|
|
5726
5714
|
d.default,
|
|
@@ -5738,9 +5726,9 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
5738
5726
|
return e ? _.push(n.default, i.default) : _.push(t.default, r.default), _.push(a.default), _;
|
|
5739
5727
|
}
|
|
5740
5728
|
e.default = _;
|
|
5741
|
-
})),
|
|
5729
|
+
})), Ir = /* @__PURE__ */ i(((e) => {
|
|
5742
5730
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
5743
|
-
var t =
|
|
5731
|
+
var t = Y();
|
|
5744
5732
|
e.default = {
|
|
5745
5733
|
keyword: "format",
|
|
5746
5734
|
type: ["number", "string"],
|
|
@@ -5813,9 +5801,9 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
5813
5801
|
}
|
|
5814
5802
|
}
|
|
5815
5803
|
};
|
|
5816
|
-
})),
|
|
5817
|
-
Object.defineProperty(e, "__esModule", { value: !0 }), e.default = [
|
|
5818
|
-
})),
|
|
5804
|
+
})), Lr = /* @__PURE__ */ i(((e) => {
|
|
5805
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), e.default = [Ir().default];
|
|
5806
|
+
})), Rr = /* @__PURE__ */ i(((e) => {
|
|
5819
5807
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.contentVocabulary = e.metadataVocabulary = void 0, e.metadataVocabulary = [
|
|
5820
5808
|
"title",
|
|
5821
5809
|
"description",
|
|
@@ -5829,9 +5817,9 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
5829
5817
|
"contentEncoding",
|
|
5830
5818
|
"contentSchema"
|
|
5831
5819
|
];
|
|
5832
|
-
})),
|
|
5820
|
+
})), zr = /* @__PURE__ */ i(((e) => {
|
|
5833
5821
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
5834
|
-
var t =
|
|
5822
|
+
var t = ar(), n = vr(), r = Fr(), i = Lr(), a = Rr();
|
|
5835
5823
|
e.default = [
|
|
5836
5824
|
t.default,
|
|
5837
5825
|
n.default,
|
|
@@ -5840,15 +5828,15 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
5840
5828
|
a.metadataVocabulary,
|
|
5841
5829
|
a.contentVocabulary
|
|
5842
5830
|
];
|
|
5843
|
-
})),
|
|
5831
|
+
})), Br = /* @__PURE__ */ i(((e) => {
|
|
5844
5832
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.DiscrError = void 0;
|
|
5845
5833
|
var t;
|
|
5846
5834
|
(function(e) {
|
|
5847
5835
|
e.Tag = "tag", e.Mapping = "mapping";
|
|
5848
5836
|
})(t || (e.DiscrError = t = {}));
|
|
5849
|
-
})),
|
|
5837
|
+
})), Vr = /* @__PURE__ */ i(((e) => {
|
|
5850
5838
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
5851
|
-
var t =
|
|
5839
|
+
var t = Y(), n = Br(), r = Un(), i = Hn(), a = X();
|
|
5852
5840
|
e.default = {
|
|
5853
5841
|
keyword: "discriminator",
|
|
5854
5842
|
type: "object",
|
|
@@ -5916,16 +5904,16 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
5916
5904
|
}
|
|
5917
5905
|
}
|
|
5918
5906
|
};
|
|
5919
|
-
})),
|
|
5920
|
-
$id: () =>
|
|
5921
|
-
$schema: () =>
|
|
5922
|
-
default: () =>
|
|
5923
|
-
definitions: () =>
|
|
5924
|
-
properties: () =>
|
|
5925
|
-
title: () =>
|
|
5926
|
-
type: () =>
|
|
5927
|
-
}),
|
|
5928
|
-
|
|
5907
|
+
})), Hr = /* @__PURE__ */ r({
|
|
5908
|
+
$id: () => Wr,
|
|
5909
|
+
$schema: () => Ur,
|
|
5910
|
+
default: () => Yr,
|
|
5911
|
+
definitions: () => Kr,
|
|
5912
|
+
properties: () => Jr,
|
|
5913
|
+
title: () => Gr,
|
|
5914
|
+
type: () => qr
|
|
5915
|
+
}), Ur, Wr, Gr, Kr, qr, Jr, Yr, Xr = t((() => {
|
|
5916
|
+
Ur = "http://json-schema.org/draft-07/schema#", Wr = "http://json-schema.org/draft-07/schema#", Gr = "Core schema meta-schema", Kr = {
|
|
5929
5917
|
schemaArray: {
|
|
5930
5918
|
type: "array",
|
|
5931
5919
|
minItems: 1,
|
|
@@ -5951,7 +5939,7 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
5951
5939
|
uniqueItems: !0,
|
|
5952
5940
|
default: []
|
|
5953
5941
|
}
|
|
5954
|
-
},
|
|
5942
|
+
}, qr = ["object", "boolean"], Jr = {
|
|
5955
5943
|
$id: {
|
|
5956
5944
|
type: "string",
|
|
5957
5945
|
format: "uri-reference"
|
|
@@ -6050,18 +6038,18 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
6050
6038
|
anyOf: { $ref: "#/definitions/schemaArray" },
|
|
6051
6039
|
oneOf: { $ref: "#/definitions/schemaArray" },
|
|
6052
6040
|
not: { $ref: "#" }
|
|
6053
|
-
},
|
|
6054
|
-
$schema:
|
|
6055
|
-
$id:
|
|
6056
|
-
title:
|
|
6057
|
-
definitions:
|
|
6058
|
-
type:
|
|
6059
|
-
properties:
|
|
6041
|
+
}, Yr = {
|
|
6042
|
+
$schema: Ur,
|
|
6043
|
+
$id: Wr,
|
|
6044
|
+
title: Gr,
|
|
6045
|
+
definitions: Kr,
|
|
6046
|
+
type: qr,
|
|
6047
|
+
properties: Jr,
|
|
6060
6048
|
default: !0
|
|
6061
6049
|
};
|
|
6062
|
-
})),
|
|
6050
|
+
})), Zr = /* @__PURE__ */ i(((t, n) => {
|
|
6063
6051
|
Object.defineProperty(t, "__esModule", { value: !0 }), t.MissingRefError = t.ValidationError = t.CodeGen = t.Name = t.nil = t.stringify = t.str = t._ = t.KeywordCxt = t.Ajv = void 0;
|
|
6064
|
-
var r =
|
|
6052
|
+
var r = nr(), i = zr(), a = Vr(), o = (Xr(), e(Hr).default), s = ["/properties"], c = "http://json-schema.org/draft-07/schema", l = class extends r.default {
|
|
6065
6053
|
_addVocabularies() {
|
|
6066
6054
|
super._addVocabularies(), i.default.forEach((e) => this.addVocabulary(e)), this.opts.discriminator && this.addKeyword(a.default);
|
|
6067
6055
|
}
|
|
@@ -6075,14 +6063,14 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
6075
6063
|
}
|
|
6076
6064
|
};
|
|
6077
6065
|
t.Ajv = l, n.exports = t = l, n.exports.Ajv = l, Object.defineProperty(t, "__esModule", { value: !0 }), t.default = l;
|
|
6078
|
-
var u =
|
|
6066
|
+
var u = Bn();
|
|
6079
6067
|
Object.defineProperty(t, "KeywordCxt", {
|
|
6080
6068
|
enumerable: !0,
|
|
6081
6069
|
get: function() {
|
|
6082
6070
|
return u.KeywordCxt;
|
|
6083
6071
|
}
|
|
6084
6072
|
});
|
|
6085
|
-
var d =
|
|
6073
|
+
var d = Y();
|
|
6086
6074
|
Object.defineProperty(t, "_", {
|
|
6087
6075
|
enumerable: !0,
|
|
6088
6076
|
get: function() {
|
|
@@ -6114,21 +6102,21 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
6114
6102
|
return d.CodeGen;
|
|
6115
6103
|
}
|
|
6116
6104
|
});
|
|
6117
|
-
var f =
|
|
6105
|
+
var f = Vn();
|
|
6118
6106
|
Object.defineProperty(t, "ValidationError", {
|
|
6119
6107
|
enumerable: !0,
|
|
6120
6108
|
get: function() {
|
|
6121
6109
|
return f.default;
|
|
6122
6110
|
}
|
|
6123
6111
|
});
|
|
6124
|
-
var p =
|
|
6112
|
+
var p = Hn();
|
|
6125
6113
|
Object.defineProperty(t, "MissingRefError", {
|
|
6126
6114
|
enumerable: !0,
|
|
6127
6115
|
get: function() {
|
|
6128
6116
|
return p.default;
|
|
6129
6117
|
}
|
|
6130
6118
|
});
|
|
6131
|
-
})),
|
|
6119
|
+
})), Qr = /* @__PURE__ */ i(((e) => {
|
|
6132
6120
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.formatNames = e.fastFormats = e.fullFormats = void 0;
|
|
6133
6121
|
function t(e, t) {
|
|
6134
6122
|
return {
|
|
@@ -6280,9 +6268,9 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
6280
6268
|
return !1;
|
|
6281
6269
|
}
|
|
6282
6270
|
}
|
|
6283
|
-
})),
|
|
6271
|
+
})), $r = /* @__PURE__ */ i(((e) => {
|
|
6284
6272
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.formatLimitDefinition = void 0;
|
|
6285
|
-
var t =
|
|
6273
|
+
var t = Zr(), n = Y(), r = n.operators, i = {
|
|
6286
6274
|
formatMaximum: {
|
|
6287
6275
|
okStr: "<=",
|
|
6288
6276
|
ok: r.LTE,
|
|
@@ -6342,9 +6330,9 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
6342
6330
|
},
|
|
6343
6331
|
dependencies: ["format"]
|
|
6344
6332
|
}, e.default = (t) => (t.addKeyword(e.formatLimitDefinition), t);
|
|
6345
|
-
})),
|
|
6333
|
+
})), ei = /* @__PURE__ */ i(((e, t) => {
|
|
6346
6334
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
6347
|
-
var n =
|
|
6335
|
+
var n = Qr(), r = $r(), i = Y(), a = new i.Name("fullFormats"), o = new i.Name("fastFormats"), s = (e, t = { keywords: !0 }) => {
|
|
6348
6336
|
if (Array.isArray(t)) return c(e, t, n.fullFormats, a), e;
|
|
6349
6337
|
let [i, s] = t.mode === "fast" ? [n.fastFormats, o] : [n.fullFormats, a];
|
|
6350
6338
|
return c(e, t.formats || n.formatNames, i, s), t.keywords && (0, r.default)(e), e;
|
|
@@ -6360,7 +6348,7 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
6360
6348
|
for (let r of t) e.addFormat(r, n[r]);
|
|
6361
6349
|
}
|
|
6362
6350
|
t.exports = e = s, Object.defineProperty(e, "__esModule", { value: !0 }), e.default = s;
|
|
6363
|
-
})),
|
|
6351
|
+
})), ti = /* @__PURE__ */ i(((e, t) => {
|
|
6364
6352
|
t.exports = function(e) {
|
|
6365
6353
|
if (e && e.length) for (let r of e) {
|
|
6366
6354
|
let e;
|
|
@@ -6506,7 +6494,7 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
6506
6494
|
r.message = e;
|
|
6507
6495
|
}
|
|
6508
6496
|
};
|
|
6509
|
-
})),
|
|
6497
|
+
})), ni = /* @__PURE__ */ i(((e, t) => {
|
|
6510
6498
|
t.exports = function(e) {
|
|
6511
6499
|
if (e && e.length) for (let r of e) {
|
|
6512
6500
|
let e;
|
|
@@ -6515,134 +6503,864 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
6515
6503
|
case "items":
|
|
6516
6504
|
e = "";
|
|
6517
6505
|
var t = r.params.limit;
|
|
6518
|
-
e += "
|
|
6506
|
+
e += "ne doit pas contenir plus de " + t + " élémént", t != 1 && (e += "s");
|
|
6519
6507
|
break;
|
|
6520
6508
|
case "additionalProperties":
|
|
6521
|
-
e = "
|
|
6509
|
+
e = "ne doit pas contenir de propriétés additionnelles";
|
|
6522
6510
|
break;
|
|
6523
6511
|
case "anyOf":
|
|
6524
|
-
e = "
|
|
6512
|
+
e = "doit correspondre à un schéma de \"anyOf\"";
|
|
6525
6513
|
break;
|
|
6526
6514
|
case "const":
|
|
6527
|
-
e = "
|
|
6515
|
+
e = "doit être égal à la constante";
|
|
6528
6516
|
break;
|
|
6529
6517
|
case "contains":
|
|
6530
|
-
e = "
|
|
6518
|
+
e = "doit contenir un élément valide";
|
|
6531
6519
|
break;
|
|
6532
6520
|
case "dependencies":
|
|
6533
6521
|
case "dependentRequired":
|
|
6534
6522
|
e = "";
|
|
6535
6523
|
var t = r.params.depsCount;
|
|
6536
|
-
e += "
|
|
6524
|
+
e += "doit avoir la propriété " + r.params.deps + " quand la propriété " + r.params.property + " est présente";
|
|
6537
6525
|
break;
|
|
6538
6526
|
case "discriminator":
|
|
6539
6527
|
switch (r.params.error) {
|
|
6540
6528
|
case "tag":
|
|
6541
|
-
e = "
|
|
6529
|
+
e = "tag \"" + r.params.tag + "\" must be string";
|
|
6542
6530
|
break;
|
|
6543
6531
|
case "mapping":
|
|
6544
|
-
e = "
|
|
6532
|
+
e = "value of tag \"" + r.params.tag + "\" must be in oneOf";
|
|
6545
6533
|
break;
|
|
6546
|
-
default: e = "
|
|
6534
|
+
default: e = "doit être valide selon le critère \"" + r.keyword + "\"";
|
|
6547
6535
|
}
|
|
6548
6536
|
break;
|
|
6549
6537
|
case "enum":
|
|
6550
|
-
e = "
|
|
6538
|
+
e = "doit être égal à une des valeurs prédéfinies";
|
|
6551
6539
|
break;
|
|
6552
6540
|
case "false schema":
|
|
6553
|
-
e = "
|
|
6541
|
+
e = "le schema est \"false\"";
|
|
6554
6542
|
break;
|
|
6555
6543
|
case "format":
|
|
6556
|
-
e = "
|
|
6544
|
+
e = "doit correspondre au format \"" + r.params.format + "\"";
|
|
6557
6545
|
break;
|
|
6558
6546
|
case "formatMaximum":
|
|
6559
6547
|
case "formatExclusiveMaximum":
|
|
6560
6548
|
e = "";
|
|
6561
6549
|
var n = r.params.comparison + " " + r.params.limit;
|
|
6562
|
-
e += "
|
|
6550
|
+
e += "doit être " + n;
|
|
6563
6551
|
break;
|
|
6564
6552
|
case "formatMinimum":
|
|
6565
6553
|
case "formatExclusiveMinimum":
|
|
6566
6554
|
e = "";
|
|
6567
6555
|
var n = r.params.comparison + " " + r.params.limit;
|
|
6568
|
-
e += "
|
|
6556
|
+
e += "doit être " + n;
|
|
6569
6557
|
break;
|
|
6570
6558
|
case "if":
|
|
6571
|
-
e = "
|
|
6559
|
+
e = "doit correspondre au schéma \"" + r.params.failingKeyword + "\"";
|
|
6572
6560
|
break;
|
|
6573
6561
|
case "maximum":
|
|
6574
6562
|
case "exclusiveMaximum":
|
|
6575
6563
|
e = "";
|
|
6576
6564
|
var n = r.params.comparison + " " + r.params.limit;
|
|
6577
|
-
e += "
|
|
6565
|
+
e += "doit être " + n;
|
|
6578
6566
|
break;
|
|
6579
6567
|
case "maxItems":
|
|
6580
6568
|
e = "";
|
|
6581
6569
|
var t = r.params.limit;
|
|
6582
|
-
e += "
|
|
6570
|
+
e += "ne doit pas contenir plus de " + t + " élément", t != 1 && (e += "s");
|
|
6583
6571
|
break;
|
|
6584
6572
|
case "maxLength":
|
|
6585
6573
|
e = "";
|
|
6586
6574
|
var t = r.params.limit;
|
|
6587
|
-
e += "
|
|
6575
|
+
e += "ne doit pas dépasser " + t + " caractère", t != 1 && (e += "s");
|
|
6588
6576
|
break;
|
|
6589
6577
|
case "maxProperties":
|
|
6590
6578
|
e = "";
|
|
6591
6579
|
var t = r.params.limit;
|
|
6592
|
-
e += "
|
|
6580
|
+
e += "ne doit pas contenir plus de " + t + " propriété", t != 1 && (e += "s");
|
|
6593
6581
|
break;
|
|
6594
6582
|
case "minimum":
|
|
6595
6583
|
case "exclusiveMinimum":
|
|
6596
6584
|
e = "";
|
|
6597
6585
|
var n = r.params.comparison + " " + r.params.limit;
|
|
6598
|
-
e += "
|
|
6586
|
+
e += "doit être " + n;
|
|
6599
6587
|
break;
|
|
6600
6588
|
case "minItems":
|
|
6601
6589
|
e = "";
|
|
6602
6590
|
var t = r.params.limit;
|
|
6603
|
-
e += "
|
|
6591
|
+
e += "ne doit pas contenir moins de " + t + " élément", t != 1 && (e += "s");
|
|
6604
6592
|
break;
|
|
6605
6593
|
case "minLength":
|
|
6606
6594
|
e = "";
|
|
6607
6595
|
var t = r.params.limit;
|
|
6608
|
-
e += "
|
|
6596
|
+
e += "ne doit pas faire moins de " + t + " caractère", t != 1 && (e += "s");
|
|
6609
6597
|
break;
|
|
6610
6598
|
case "minProperties":
|
|
6611
6599
|
e = "";
|
|
6612
6600
|
var t = r.params.limit;
|
|
6613
|
-
e += "
|
|
6601
|
+
e += "ne doit pas contenir moins de " + t + " propriété", t != 1 && (e += "s");
|
|
6614
6602
|
break;
|
|
6615
6603
|
case "multipleOf":
|
|
6616
|
-
e = "
|
|
6604
|
+
e = "doit être un multiple de " + r.params.multipleOf;
|
|
6617
6605
|
break;
|
|
6618
6606
|
case "not":
|
|
6619
|
-
e = "
|
|
6607
|
+
e = "est invalide selon le schéma \"not\"";
|
|
6620
6608
|
break;
|
|
6621
6609
|
case "oneOf":
|
|
6622
|
-
e = "
|
|
6610
|
+
e = "doit correspondre à exactement un schéma de \"oneOf\"";
|
|
6623
6611
|
break;
|
|
6624
6612
|
case "pattern":
|
|
6625
|
-
e = "
|
|
6613
|
+
e = "doit correspondre au format \"" + r.params.pattern + "\"";
|
|
6626
6614
|
break;
|
|
6627
6615
|
case "patternRequired":
|
|
6628
|
-
e = "
|
|
6616
|
+
e = "la propriété doit correspondre au format \"" + r.params.missingPattern + "\"";
|
|
6629
6617
|
break;
|
|
6630
6618
|
case "propertyNames":
|
|
6631
|
-
e = "
|
|
6619
|
+
e = "le nom de propriété est invalide";
|
|
6632
6620
|
break;
|
|
6633
6621
|
case "required":
|
|
6634
|
-
e = "
|
|
6622
|
+
e = "requiert la propriété " + r.params.missingProperty;
|
|
6635
6623
|
break;
|
|
6636
6624
|
case "type":
|
|
6637
|
-
e = "
|
|
6625
|
+
e = "doit être de type " + r.params.type;
|
|
6638
6626
|
break;
|
|
6639
6627
|
case "unevaluatedItems":
|
|
6640
6628
|
e = "";
|
|
6641
6629
|
var t = r.params.len;
|
|
6642
|
-
e += "
|
|
6630
|
+
e += "must NOT have more than " + t + " item", t != 1 && (e += "s");
|
|
6643
6631
|
break;
|
|
6644
6632
|
case "unevaluatedProperties":
|
|
6645
|
-
e = "
|
|
6633
|
+
e = "must NOT have unevaluated properties";
|
|
6634
|
+
break;
|
|
6635
|
+
case "uniqueItems":
|
|
6636
|
+
e = "ne doit pas contenir de doublons (les éléments ## " + r.params.j + " et " + r.params.i + " sont identiques)";
|
|
6637
|
+
break;
|
|
6638
|
+
default: e = "doit être valide selon le critère \"" + r.keyword + "\"";
|
|
6639
|
+
}
|
|
6640
|
+
r.message = e;
|
|
6641
|
+
}
|
|
6642
|
+
};
|
|
6643
|
+
})), ri = /* @__PURE__ */ i(((e, t) => {
|
|
6644
|
+
t.exports = function(e) {
|
|
6645
|
+
if (e && e.length) for (let r of e) {
|
|
6646
|
+
let e;
|
|
6647
|
+
switch (r.keyword) {
|
|
6648
|
+
case "additionalItems":
|
|
6649
|
+
case "items":
|
|
6650
|
+
e = "";
|
|
6651
|
+
var t = r.params.limit;
|
|
6652
|
+
e += "は" + t + "以上あってはいけない";
|
|
6653
|
+
break;
|
|
6654
|
+
case "additionalProperties":
|
|
6655
|
+
e = "追加してはいけない";
|
|
6656
|
+
break;
|
|
6657
|
+
case "anyOf":
|
|
6658
|
+
e = "\"anyOf\"のスキーマとマッチしなくてはいけない";
|
|
6659
|
+
break;
|
|
6660
|
+
case "const":
|
|
6661
|
+
e = "must be equal to constant";
|
|
6662
|
+
break;
|
|
6663
|
+
case "contains":
|
|
6664
|
+
e = "must contain a valid item";
|
|
6665
|
+
break;
|
|
6666
|
+
case "dependencies":
|
|
6667
|
+
case "dependentRequired":
|
|
6668
|
+
e = "" + r.params.property + "がある場合、";
|
|
6669
|
+
var t = r.params.depsCount;
|
|
6670
|
+
e += "は" + r.params.deps + "をつけなければいけない";
|
|
6671
|
+
break;
|
|
6672
|
+
case "discriminator":
|
|
6673
|
+
switch (r.params.error) {
|
|
6674
|
+
case "tag":
|
|
6675
|
+
e = "tag \"" + r.params.tag + "\" must be string";
|
|
6676
|
+
break;
|
|
6677
|
+
case "mapping":
|
|
6678
|
+
e = "value of tag \"" + r.params.tag + "\" must be in oneOf";
|
|
6679
|
+
break;
|
|
6680
|
+
default: e = "must pass \"" + r.keyword + "\" keyword validation";
|
|
6681
|
+
}
|
|
6682
|
+
break;
|
|
6683
|
+
case "enum":
|
|
6684
|
+
e = "事前に定義された値のいずれかに等しくなければいけない";
|
|
6685
|
+
break;
|
|
6686
|
+
case "false schema":
|
|
6687
|
+
e = "boolean schema is false";
|
|
6688
|
+
break;
|
|
6689
|
+
case "format":
|
|
6690
|
+
e = "\"" + r.params.format + "\"形式に揃えなければいけない";
|
|
6691
|
+
break;
|
|
6692
|
+
case "formatMaximum":
|
|
6693
|
+
case "formatExclusiveMaximum":
|
|
6694
|
+
e = "";
|
|
6695
|
+
var n = r.params.comparison + " " + r.params.limit;
|
|
6696
|
+
e += "must be " + n;
|
|
6697
|
+
break;
|
|
6698
|
+
case "formatMinimum":
|
|
6699
|
+
case "formatExclusiveMinimum":
|
|
6700
|
+
e = "";
|
|
6701
|
+
var n = r.params.comparison + " " + r.params.limit;
|
|
6702
|
+
e += "must be " + n;
|
|
6703
|
+
break;
|
|
6704
|
+
case "if":
|
|
6705
|
+
e = "must match \"" + r.params.failingKeyword + "\" schema";
|
|
6706
|
+
break;
|
|
6707
|
+
case "maximum":
|
|
6708
|
+
case "exclusiveMaximum":
|
|
6709
|
+
e = "";
|
|
6710
|
+
var n = r.params.comparison + " " + r.params.limit;
|
|
6711
|
+
e += n + "でなければいけない";
|
|
6712
|
+
break;
|
|
6713
|
+
case "maxItems":
|
|
6714
|
+
e = "";
|
|
6715
|
+
var t = r.params.limit;
|
|
6716
|
+
e += "は" + t + "個以上であってはいけない";
|
|
6717
|
+
break;
|
|
6718
|
+
case "maxLength":
|
|
6719
|
+
e = "";
|
|
6720
|
+
var t = r.params.limit;
|
|
6721
|
+
e += "は" + t + "文字以上であってはいけない";
|
|
6722
|
+
break;
|
|
6723
|
+
case "maxProperties":
|
|
6724
|
+
e = "";
|
|
6725
|
+
var t = r.params.limit;
|
|
6726
|
+
e += "は" + t + "個以上のプロパティを有してはいけない";
|
|
6727
|
+
break;
|
|
6728
|
+
case "minimum":
|
|
6729
|
+
case "exclusiveMinimum":
|
|
6730
|
+
e = "";
|
|
6731
|
+
var n = r.params.comparison + " " + r.params.limit;
|
|
6732
|
+
e += n + "でなければいけない";
|
|
6733
|
+
break;
|
|
6734
|
+
case "minItems":
|
|
6735
|
+
e = "";
|
|
6736
|
+
var t = r.params.limit;
|
|
6737
|
+
e += "は" + t + "個以下であってはいけない";
|
|
6738
|
+
break;
|
|
6739
|
+
case "minLength":
|
|
6740
|
+
e = "";
|
|
6741
|
+
var t = r.params.limit;
|
|
6742
|
+
e += "は" + t + "文字以下であってはいけない";
|
|
6743
|
+
break;
|
|
6744
|
+
case "minProperties":
|
|
6745
|
+
e = "";
|
|
6746
|
+
var t = r.params.limit;
|
|
6747
|
+
e += "は" + t + "個以下のプロパティを有してはいけない";
|
|
6748
|
+
break;
|
|
6749
|
+
case "multipleOf":
|
|
6750
|
+
e = "" + r.params.multipleOf + "の倍数でなければいけない";
|
|
6751
|
+
break;
|
|
6752
|
+
case "not":
|
|
6753
|
+
e = "\"not\"のスキーマに従って有効としてはいけない";
|
|
6754
|
+
break;
|
|
6755
|
+
case "oneOf":
|
|
6756
|
+
e = "\"oneOf\"のスキーマと完全に一致しなくてはいけない";
|
|
6757
|
+
break;
|
|
6758
|
+
case "pattern":
|
|
6759
|
+
e = "\"" + r.params.pattern + "\"のパターンと一致しなければいけない";
|
|
6760
|
+
break;
|
|
6761
|
+
case "patternRequired":
|
|
6762
|
+
e = "must have property matching pattern \"" + r.params.missingPattern + "\"";
|
|
6763
|
+
break;
|
|
6764
|
+
case "propertyNames":
|
|
6765
|
+
e = "property name is invalid";
|
|
6766
|
+
break;
|
|
6767
|
+
case "required":
|
|
6768
|
+
e = "必要なプロパティ" + r.params.missingProperty + "がなければいけない";
|
|
6769
|
+
break;
|
|
6770
|
+
case "type":
|
|
6771
|
+
e = "" + r.params.type + "でなければいけない";
|
|
6772
|
+
break;
|
|
6773
|
+
case "unevaluatedItems":
|
|
6774
|
+
e = "";
|
|
6775
|
+
var t = r.params.len;
|
|
6776
|
+
e += "must NOT have more than " + t + " item", t != 1 && (e += "s");
|
|
6777
|
+
break;
|
|
6778
|
+
case "unevaluatedProperties":
|
|
6779
|
+
e = "must NOT have unevaluated properties";
|
|
6780
|
+
break;
|
|
6781
|
+
case "uniqueItems":
|
|
6782
|
+
e = "重複するアイテムがあってはいけない(" + r.params.j + "と" + r.params.i + "は同じである)";
|
|
6783
|
+
break;
|
|
6784
|
+
default: e = "must pass \"" + r.keyword + "\" keyword validation";
|
|
6785
|
+
}
|
|
6786
|
+
r.message = e;
|
|
6787
|
+
}
|
|
6788
|
+
};
|
|
6789
|
+
})), ii = /* @__PURE__ */ i(((e, t) => {
|
|
6790
|
+
t.exports = function(e) {
|
|
6791
|
+
if (e && e.length) for (let r of e) {
|
|
6792
|
+
let e;
|
|
6793
|
+
switch (r.keyword) {
|
|
6794
|
+
case "additionalItems":
|
|
6795
|
+
case "items":
|
|
6796
|
+
e = "";
|
|
6797
|
+
var t = r.params.limit;
|
|
6798
|
+
e += " 항목은 아이템을 " + t + "개 이상 가질 수 없습니다";
|
|
6799
|
+
break;
|
|
6800
|
+
case "additionalProperties":
|
|
6801
|
+
e = "추가적인 속성은 허용되지 않습니다";
|
|
6802
|
+
break;
|
|
6803
|
+
case "anyOf":
|
|
6804
|
+
e = "\"anyOf\"의 스키마와 일치해야 합니다";
|
|
6805
|
+
break;
|
|
6806
|
+
case "const":
|
|
6807
|
+
e = "상수와 같아야합니다";
|
|
6808
|
+
break;
|
|
6809
|
+
case "contains":
|
|
6810
|
+
e = "올바른 아이템을 포함해야 합니다";
|
|
6811
|
+
break;
|
|
6812
|
+
case "dependencies":
|
|
6813
|
+
case "dependentRequired":
|
|
6814
|
+
e = "";
|
|
6815
|
+
var t = r.params.depsCount;
|
|
6816
|
+
e += r.params.property + "속성이 있는 경우, " + r.params.deps + " 속성이 있어야합니다";
|
|
6817
|
+
break;
|
|
6818
|
+
case "discriminator":
|
|
6819
|
+
switch (r.params.error) {
|
|
6820
|
+
case "tag":
|
|
6821
|
+
e = "\"" + r.params.tag + "\"태그는 반드시 문자열이여야 합니다";
|
|
6822
|
+
break;
|
|
6823
|
+
case "mapping":
|
|
6824
|
+
e = "\"" + r.params.tag + "\"태그의 값은 반드시 oneOf에 있어야 합니다";
|
|
6825
|
+
break;
|
|
6826
|
+
default: e = "\"" + r.keyword + "\"키워드 검사를 통과해야 합니다";
|
|
6827
|
+
}
|
|
6828
|
+
break;
|
|
6829
|
+
case "enum":
|
|
6830
|
+
e = "미리 정의된 값중 하나여야 합니다";
|
|
6831
|
+
break;
|
|
6832
|
+
case "false schema":
|
|
6833
|
+
e = "boolean 스키마는 올바르지 않습니다";
|
|
6834
|
+
break;
|
|
6835
|
+
case "format":
|
|
6836
|
+
e = "\"" + r.params.format + "\" 포맷과 일치해야 합니다";
|
|
6837
|
+
break;
|
|
6838
|
+
case "formatMaximum":
|
|
6839
|
+
case "formatExclusiveMaximum":
|
|
6840
|
+
e = "";
|
|
6841
|
+
var n = r.params.comparison + " " + r.params.limit;
|
|
6842
|
+
e += " " + n + " 이여야 합니다";
|
|
6843
|
+
break;
|
|
6844
|
+
case "formatMinimum":
|
|
6845
|
+
case "formatExclusiveMinimum":
|
|
6846
|
+
e = "";
|
|
6847
|
+
var n = r.params.comparison + " " + r.params.limit;
|
|
6848
|
+
e += " " + n + " 이여야 합니다";
|
|
6849
|
+
break;
|
|
6850
|
+
case "if":
|
|
6851
|
+
e = "\"" + r.params.failingKeyword + "\" 스키마와 일치해야 합니다";
|
|
6852
|
+
break;
|
|
6853
|
+
case "maximum":
|
|
6854
|
+
case "exclusiveMaximum":
|
|
6855
|
+
e = "";
|
|
6856
|
+
var n = r.params.comparison + " " + r.params.limit;
|
|
6857
|
+
e += " " + n + " 이여야 합니다";
|
|
6858
|
+
break;
|
|
6859
|
+
case "maxItems":
|
|
6860
|
+
e = "";
|
|
6861
|
+
var t = r.params.limit;
|
|
6862
|
+
e += "아이템이 최대 " + t + "개이여야 합니다";
|
|
6863
|
+
break;
|
|
6864
|
+
case "maxLength":
|
|
6865
|
+
e = "";
|
|
6866
|
+
var t = r.params.limit;
|
|
6867
|
+
e += "최대 " + t + "글자여야 합니다";
|
|
6868
|
+
break;
|
|
6869
|
+
case "maxProperties":
|
|
6870
|
+
e = "";
|
|
6871
|
+
var t = r.params.limit;
|
|
6872
|
+
e += "속성은 최대 " + t + "개 이내여야 합니다";
|
|
6873
|
+
break;
|
|
6874
|
+
case "minimum":
|
|
6875
|
+
case "exclusiveMinimum":
|
|
6876
|
+
e = "";
|
|
6877
|
+
var n = r.params.comparison + " " + r.params.limit;
|
|
6878
|
+
e += " " + n + " 이여야 합니다";
|
|
6879
|
+
break;
|
|
6880
|
+
case "minItems":
|
|
6881
|
+
e = "";
|
|
6882
|
+
var t = r.params.limit;
|
|
6883
|
+
e += "아이템이 최소 " + t + "개이여야 합니다";
|
|
6884
|
+
break;
|
|
6885
|
+
case "minLength":
|
|
6886
|
+
e = "";
|
|
6887
|
+
var t = r.params.limit;
|
|
6888
|
+
e += "최소 " + t + "글자여야 합니다";
|
|
6889
|
+
break;
|
|
6890
|
+
case "minProperties":
|
|
6891
|
+
e = "";
|
|
6892
|
+
var t = r.params.limit;
|
|
6893
|
+
e += "속성은 최소 " + t + "개 이상이여야 합니다";
|
|
6894
|
+
break;
|
|
6895
|
+
case "multipleOf":
|
|
6896
|
+
e = "" + r.params.multipleOf + "의 배수여야 합니다";
|
|
6897
|
+
break;
|
|
6898
|
+
case "not":
|
|
6899
|
+
e = "\"not\"스키마에 따라 유효하지 않아야 합니다";
|
|
6900
|
+
break;
|
|
6901
|
+
case "oneOf":
|
|
6902
|
+
e = "\"oneOf\" 스키마중 하나와 정확하게 일치해야 합니다";
|
|
6903
|
+
break;
|
|
6904
|
+
case "pattern":
|
|
6905
|
+
e = "\"" + r.params.pattern + "\"패턴과 일치해야 합니다";
|
|
6906
|
+
break;
|
|
6907
|
+
case "patternRequired":
|
|
6908
|
+
e = "\"" + r.params.missingPattern + "\"패턴과 일치하는 속성을 가져야 합니다";
|
|
6909
|
+
break;
|
|
6910
|
+
case "propertyNames":
|
|
6911
|
+
e = "속성명이 올바르지 않습니다";
|
|
6912
|
+
break;
|
|
6913
|
+
case "required":
|
|
6914
|
+
e = "" + r.params.missingProperty + " 속성은 필수입니다";
|
|
6915
|
+
break;
|
|
6916
|
+
case "type":
|
|
6917
|
+
e = "" + r.params.type + "이여야 합니다";
|
|
6918
|
+
break;
|
|
6919
|
+
case "unevaluatedItems":
|
|
6920
|
+
e = "";
|
|
6921
|
+
var t = r.params.len;
|
|
6922
|
+
e += "항목이 " + t + "개 아이템을 초과하면 안됩니다";
|
|
6923
|
+
break;
|
|
6924
|
+
case "unevaluatedProperties":
|
|
6925
|
+
e = "평가되지 않은 속성이 없어야합니다.";
|
|
6926
|
+
break;
|
|
6927
|
+
case "uniqueItems":
|
|
6928
|
+
e = "중복 아이템이 없어야 합니다 (아이템" + r.params.j + "과 아이템" + r.params.i + "가 동일합니다)";
|
|
6929
|
+
break;
|
|
6930
|
+
default: e = "\"" + r.keyword + "\"키워드 검사를 통과해야 합니다";
|
|
6931
|
+
}
|
|
6932
|
+
r.message = e;
|
|
6933
|
+
}
|
|
6934
|
+
};
|
|
6935
|
+
})), ai = /* @__PURE__ */ i(((e, t) => {
|
|
6936
|
+
t.exports = function(e) {
|
|
6937
|
+
if (e && e.length) for (let r of e) {
|
|
6938
|
+
let e;
|
|
6939
|
+
switch (r.keyword) {
|
|
6940
|
+
case "additionalItems":
|
|
6941
|
+
case "items":
|
|
6942
|
+
e = "";
|
|
6943
|
+
var t = r.params.limit;
|
|
6944
|
+
e += "должно иметь не более, чем " + t + " элемент", t >= 2 && t <= 4 ? e += "а" : t != 1 && (e += "ов");
|
|
6945
|
+
break;
|
|
6946
|
+
case "additionalProperties":
|
|
6947
|
+
e = "не должно иметь дополнительных полей";
|
|
6948
|
+
break;
|
|
6949
|
+
case "anyOf":
|
|
6950
|
+
e = "должно соответствовать одной их схем в \"anyOf\"";
|
|
6951
|
+
break;
|
|
6952
|
+
case "const":
|
|
6953
|
+
e = "должно быть равно заданному значению";
|
|
6954
|
+
break;
|
|
6955
|
+
case "contains":
|
|
6956
|
+
e = "должно содержать значение соответствующее схеме";
|
|
6957
|
+
break;
|
|
6958
|
+
case "dependencies":
|
|
6959
|
+
case "dependentRequired":
|
|
6960
|
+
e = "";
|
|
6961
|
+
var t = r.params.depsCount;
|
|
6962
|
+
e += "должно иметь пол", e += t == 1 ? "е" : "я", e += " " + r.params.deps + ", когда присутствует поле " + r.params.property;
|
|
6963
|
+
break;
|
|
6964
|
+
case "discriminator":
|
|
6965
|
+
switch (r.params.error) {
|
|
6966
|
+
case "tag":
|
|
6967
|
+
e = "поле \"" + r.params.tag + "\" должно быть строкой";
|
|
6968
|
+
break;
|
|
6969
|
+
case "mapping":
|
|
6970
|
+
e = "значение поля \"" + r.params.tag + "\" должно быть в одной из oneOf схем ";
|
|
6971
|
+
break;
|
|
6972
|
+
default: e = "должно соответствовать правилу \"" + r.keyword + "\"";
|
|
6973
|
+
}
|
|
6974
|
+
break;
|
|
6975
|
+
case "enum":
|
|
6976
|
+
e = "должно быть равно одному из разрешенных значений";
|
|
6977
|
+
break;
|
|
6978
|
+
case "false schema":
|
|
6979
|
+
e = "схема равна false";
|
|
6980
|
+
break;
|
|
6981
|
+
case "format":
|
|
6982
|
+
e = "должно соответствовать формату \"" + r.params.format + "\"";
|
|
6983
|
+
break;
|
|
6984
|
+
case "formatMaximum":
|
|
6985
|
+
case "formatExclusiveMaximum":
|
|
6986
|
+
e = "";
|
|
6987
|
+
var n = r.params.comparison + " " + r.params.limit;
|
|
6988
|
+
e += "должно быть " + n;
|
|
6989
|
+
break;
|
|
6990
|
+
case "formatMinimum":
|
|
6991
|
+
case "formatExclusiveMinimum":
|
|
6992
|
+
e = "";
|
|
6993
|
+
var n = r.params.comparison + " " + r.params.limit;
|
|
6994
|
+
e += "должно быть " + n;
|
|
6995
|
+
break;
|
|
6996
|
+
case "if":
|
|
6997
|
+
e = "должно соответствовать схемe \"" + r.params.failingKeyword + "\"";
|
|
6998
|
+
break;
|
|
6999
|
+
case "maximum":
|
|
7000
|
+
case "exclusiveMaximum":
|
|
7001
|
+
e = "";
|
|
7002
|
+
var n = r.params.comparison + " " + r.params.limit;
|
|
7003
|
+
e += "должно быть " + n;
|
|
7004
|
+
break;
|
|
7005
|
+
case "maxItems":
|
|
7006
|
+
e = "";
|
|
7007
|
+
var t = r.params.limit;
|
|
7008
|
+
e += "должно иметь не более, чем " + t + " элемент", t >= 2 && t <= 4 ? e += "а" : t != 1 && (e += "ов");
|
|
7009
|
+
break;
|
|
7010
|
+
case "maxLength":
|
|
7011
|
+
e = "";
|
|
7012
|
+
var t = r.params.limit;
|
|
7013
|
+
e += "должно быть не длиннее, чем " + t + " символ", t >= 2 && t <= 4 ? e += "а" : t != 1 && (e += "ов");
|
|
7014
|
+
break;
|
|
7015
|
+
case "maxProperties":
|
|
7016
|
+
e = "";
|
|
7017
|
+
var t = r.params.limit;
|
|
7018
|
+
e += "должно иметь не более, чем " + t + " пол", e += t == 1 ? "е" : t >= 2 && t <= 4 ? "я" : "ей";
|
|
7019
|
+
break;
|
|
7020
|
+
case "minimum":
|
|
7021
|
+
case "exclusiveMinimum":
|
|
7022
|
+
e = "";
|
|
7023
|
+
var n = r.params.comparison + " " + r.params.limit;
|
|
7024
|
+
e += "должно быть " + n;
|
|
7025
|
+
break;
|
|
7026
|
+
case "minItems":
|
|
7027
|
+
e = "";
|
|
7028
|
+
var t = r.params.limit;
|
|
7029
|
+
e += "должно иметь не менее, чем " + t + " элемент", t >= 2 && t <= 4 ? e += "а" : t != 1 && (e += "ов");
|
|
7030
|
+
break;
|
|
7031
|
+
case "minLength":
|
|
7032
|
+
e = "";
|
|
7033
|
+
var t = r.params.limit;
|
|
7034
|
+
e += "должно быть не короче, чем " + t + " символ", t >= 2 && t <= 4 ? e += "а" : t != 1 && (e += "ов");
|
|
7035
|
+
break;
|
|
7036
|
+
case "minProperties":
|
|
7037
|
+
e = "";
|
|
7038
|
+
var t = r.params.limit;
|
|
7039
|
+
e += "должно иметь не менее, чем " + t + " пол", e += t == 1 ? "е" : t >= 2 && t <= 4 ? "я" : "ей";
|
|
7040
|
+
break;
|
|
7041
|
+
case "multipleOf":
|
|
7042
|
+
e = "должно быть кратным " + r.params.multipleOf;
|
|
7043
|
+
break;
|
|
7044
|
+
case "not":
|
|
7045
|
+
e = "должно не соответствовать схеме в \"not\"";
|
|
7046
|
+
break;
|
|
7047
|
+
case "oneOf":
|
|
7048
|
+
e = "должно соответствовать в точности одной схемe в \"oneOf\"";
|
|
7049
|
+
break;
|
|
7050
|
+
case "pattern":
|
|
7051
|
+
e = "должно соответствовать образцу \"" + r.params.pattern + "\"";
|
|
7052
|
+
break;
|
|
7053
|
+
case "patternRequired":
|
|
7054
|
+
e = "должно иметь поле, соответствующее образцу \"" + r.params.missingPattern + "\"";
|
|
7055
|
+
break;
|
|
7056
|
+
case "propertyNames":
|
|
7057
|
+
e = "имя поля не соответствует схеме";
|
|
7058
|
+
break;
|
|
7059
|
+
case "required":
|
|
7060
|
+
e = "должно иметь обязательное поле " + r.params.missingProperty;
|
|
7061
|
+
break;
|
|
7062
|
+
case "type":
|
|
7063
|
+
e = "должно быть " + r.params.type;
|
|
7064
|
+
break;
|
|
7065
|
+
case "unevaluatedItems":
|
|
7066
|
+
e = "";
|
|
7067
|
+
var t = r.params.len;
|
|
7068
|
+
e += "должно иметь не более, чем " + t + " элемент", t >= 2 && t <= 4 ? e += "а" : t != 1 && (e += "ов");
|
|
7069
|
+
break;
|
|
7070
|
+
case "unevaluatedProperties":
|
|
7071
|
+
e = "не должно иметь непроверенных полей";
|
|
7072
|
+
break;
|
|
7073
|
+
case "uniqueItems":
|
|
7074
|
+
e = "не должно иметь повторяющихся элементов (элементы " + r.params.j + " и " + r.params.i + " идентичны)";
|
|
7075
|
+
break;
|
|
7076
|
+
default: e = "должно соответствовать правилу \"" + r.keyword + "\"";
|
|
7077
|
+
}
|
|
7078
|
+
r.message = e;
|
|
7079
|
+
}
|
|
7080
|
+
};
|
|
7081
|
+
})), oi = /* @__PURE__ */ i(((e, t) => {
|
|
7082
|
+
t.exports = function(e) {
|
|
7083
|
+
if (e && e.length) for (let r of e) {
|
|
7084
|
+
let e;
|
|
7085
|
+
switch (r.keyword) {
|
|
7086
|
+
case "additionalItems":
|
|
7087
|
+
case "items":
|
|
7088
|
+
e = "";
|
|
7089
|
+
var t = r.params.limit;
|
|
7090
|
+
e += "不可以超過" + t + "個元素";
|
|
7091
|
+
break;
|
|
7092
|
+
case "additionalProperties":
|
|
7093
|
+
e = "不可以有額外的屬性";
|
|
7094
|
+
break;
|
|
7095
|
+
case "anyOf":
|
|
7096
|
+
e = "不符合 anyOf 指定的模式";
|
|
7097
|
+
break;
|
|
7098
|
+
case "const":
|
|
7099
|
+
e = "應該等於常數";
|
|
7100
|
+
break;
|
|
7101
|
+
case "contains":
|
|
7102
|
+
e = "應該包含一個有效元素";
|
|
7103
|
+
break;
|
|
7104
|
+
case "dependencies":
|
|
7105
|
+
case "dependentRequired":
|
|
7106
|
+
e = "";
|
|
7107
|
+
var t = r.params.depsCount;
|
|
7108
|
+
e += "應該要有屬性" + r.params.property + "的依賴屬性" + r.params.deps;
|
|
7109
|
+
break;
|
|
7110
|
+
case "discriminator":
|
|
7111
|
+
switch (r.params.error) {
|
|
7112
|
+
case "tag":
|
|
7113
|
+
e = "標籤 \"" + r.params.tag + "\" 的類型必須是字串";
|
|
7114
|
+
break;
|
|
7115
|
+
case "mapping":
|
|
7116
|
+
e = "標籤 \"" + r.params.tag + "\" 必須在 oneOf 其中之一";
|
|
7117
|
+
break;
|
|
7118
|
+
default: e = "應該通過 \"" + r.keyword + " 關鍵詞檢驗\"";
|
|
7119
|
+
}
|
|
7120
|
+
break;
|
|
7121
|
+
case "enum":
|
|
7122
|
+
e = "應該要在預設的值之中";
|
|
7123
|
+
break;
|
|
7124
|
+
case "false schema":
|
|
7125
|
+
e = "布林模式不正確";
|
|
7126
|
+
break;
|
|
7127
|
+
case "format":
|
|
7128
|
+
e = "應該要符合" + r.params.format + "格式";
|
|
7129
|
+
break;
|
|
7130
|
+
case "formatMaximum":
|
|
7131
|
+
case "formatExclusiveMaximum":
|
|
7132
|
+
e = "";
|
|
7133
|
+
var n = r.params.comparison + " " + r.params.limit;
|
|
7134
|
+
e += "應該是 " + n;
|
|
7135
|
+
break;
|
|
7136
|
+
case "formatMinimum":
|
|
7137
|
+
case "formatExclusiveMinimum":
|
|
7138
|
+
e = "";
|
|
7139
|
+
var n = r.params.comparison + " " + r.params.limit;
|
|
7140
|
+
e += "應該是 " + n;
|
|
7141
|
+
break;
|
|
7142
|
+
case "if":
|
|
7143
|
+
e = "應該符合 \"" + r.params.failingKeyword + "\" schema";
|
|
7144
|
+
break;
|
|
7145
|
+
case "maximum":
|
|
7146
|
+
case "exclusiveMaximum":
|
|
7147
|
+
e = "";
|
|
7148
|
+
var n = r.params.comparison + " " + r.params.limit;
|
|
7149
|
+
e += "應該要 " + n;
|
|
7150
|
+
break;
|
|
7151
|
+
case "maxItems":
|
|
7152
|
+
e = "";
|
|
7153
|
+
var t = r.params.limit;
|
|
7154
|
+
e += "不應該多於 " + t + " 個";
|
|
7155
|
+
break;
|
|
7156
|
+
case "maxLength":
|
|
7157
|
+
e = "";
|
|
7158
|
+
var t = r.params.limit;
|
|
7159
|
+
e += "不應該多於 " + t + " 個字元";
|
|
7160
|
+
break;
|
|
7161
|
+
case "maxProperties":
|
|
7162
|
+
e = "";
|
|
7163
|
+
var t = r.params.limit;
|
|
7164
|
+
e += "不應該多於 " + t + " 個屬性";
|
|
7165
|
+
break;
|
|
7166
|
+
case "minimum":
|
|
7167
|
+
case "exclusiveMinimum":
|
|
7168
|
+
e = "";
|
|
7169
|
+
var n = r.params.comparison + " " + r.params.limit;
|
|
7170
|
+
e += "應該要 " + n;
|
|
7171
|
+
break;
|
|
7172
|
+
case "minItems":
|
|
7173
|
+
e = "";
|
|
7174
|
+
var t = r.params.limit;
|
|
7175
|
+
e += "不應該少於 " + t + " 個";
|
|
7176
|
+
break;
|
|
7177
|
+
case "minLength":
|
|
7178
|
+
e = "";
|
|
7179
|
+
var t = r.params.limit;
|
|
7180
|
+
e += "不應該少於 " + t + " 個字元";
|
|
7181
|
+
break;
|
|
7182
|
+
case "minProperties":
|
|
7183
|
+
e = "";
|
|
7184
|
+
var t = r.params.limit;
|
|
7185
|
+
e += "不應該少於 " + t + " 個屬性";
|
|
7186
|
+
break;
|
|
7187
|
+
case "multipleOf":
|
|
7188
|
+
e = "應該是 " + r.params.multipleOf + " 的整數倍";
|
|
7189
|
+
break;
|
|
7190
|
+
case "not":
|
|
7191
|
+
e = "不應該符合 \"not\" schema";
|
|
7192
|
+
break;
|
|
7193
|
+
case "oneOf":
|
|
7194
|
+
e = "只能符合一個 \"oneOf\" 中的 schema";
|
|
7195
|
+
break;
|
|
7196
|
+
case "pattern":
|
|
7197
|
+
e = "應該符合模式 \"" + r.params.pattern + "\"";
|
|
7198
|
+
break;
|
|
7199
|
+
case "patternRequired":
|
|
7200
|
+
e = "應該有屬性對應模式 " + r.params.missingPattern;
|
|
7201
|
+
break;
|
|
7202
|
+
case "propertyNames":
|
|
7203
|
+
e = "属性名 無效";
|
|
7204
|
+
break;
|
|
7205
|
+
case "required":
|
|
7206
|
+
e = "應該有必須屬性 " + r.params.missingProperty;
|
|
7207
|
+
break;
|
|
7208
|
+
case "type":
|
|
7209
|
+
e = "應該是 " + r.params.type + " 類型";
|
|
7210
|
+
break;
|
|
7211
|
+
case "unevaluatedItems":
|
|
7212
|
+
e = "";
|
|
7213
|
+
var t = r.params.len;
|
|
7214
|
+
e += " 的元素不可以超過 " + t + " 個";
|
|
7215
|
+
break;
|
|
7216
|
+
case "unevaluatedProperties":
|
|
7217
|
+
e = "不應該有未驗證的屬性";
|
|
7218
|
+
break;
|
|
7219
|
+
case "uniqueItems":
|
|
7220
|
+
e = "不應該有重複項目 (第 " + r.params.j + " 項和第 " + r.params.i + " 項是重複的)";
|
|
7221
|
+
break;
|
|
7222
|
+
default: e = "應該通過 \"" + r.keyword + " 關鍵詞檢驗\"";
|
|
7223
|
+
}
|
|
7224
|
+
r.message = e;
|
|
7225
|
+
}
|
|
7226
|
+
};
|
|
7227
|
+
})), si = /* @__PURE__ */ i(((e, t) => {
|
|
7228
|
+
t.exports = function(e) {
|
|
7229
|
+
if (e && e.length) for (let r of e) {
|
|
7230
|
+
let e;
|
|
7231
|
+
switch (r.keyword) {
|
|
7232
|
+
case "additionalItems":
|
|
7233
|
+
case "items":
|
|
7234
|
+
e = "";
|
|
7235
|
+
var t = r.params.limit;
|
|
7236
|
+
e += "不允许超过" + t + "个元素";
|
|
7237
|
+
break;
|
|
7238
|
+
case "additionalProperties":
|
|
7239
|
+
e = "不允许有额外的属性";
|
|
7240
|
+
break;
|
|
7241
|
+
case "anyOf":
|
|
7242
|
+
e = "数据应为 anyOf 所指定的其中一个";
|
|
7243
|
+
break;
|
|
7244
|
+
case "const":
|
|
7245
|
+
e = "应当等于常量";
|
|
7246
|
+
break;
|
|
7247
|
+
case "contains":
|
|
7248
|
+
e = "应当包含一个有效项";
|
|
7249
|
+
break;
|
|
7250
|
+
case "dependencies":
|
|
7251
|
+
case "dependentRequired":
|
|
7252
|
+
e = "";
|
|
7253
|
+
var t = r.params.depsCount;
|
|
7254
|
+
e += "应当拥有属性" + r.params.property + "的依赖属性" + r.params.deps;
|
|
7255
|
+
break;
|
|
7256
|
+
case "discriminator":
|
|
7257
|
+
switch (r.params.error) {
|
|
7258
|
+
case "tag":
|
|
7259
|
+
e = "标签 \"" + r.params.tag + "\" 的类型必须为字符串";
|
|
7260
|
+
break;
|
|
7261
|
+
case "mapping":
|
|
7262
|
+
e = "标签 \"" + r.params.tag + "\" 的值必须在 oneOf 之中";
|
|
7263
|
+
break;
|
|
7264
|
+
default: e = "应当通过 \"" + r.keyword + " 关键词校验\"";
|
|
7265
|
+
}
|
|
7266
|
+
break;
|
|
7267
|
+
case "enum":
|
|
7268
|
+
e = "应当是预设定的枚举值之一";
|
|
7269
|
+
break;
|
|
7270
|
+
case "false schema":
|
|
7271
|
+
e = "布尔模式出错";
|
|
7272
|
+
break;
|
|
7273
|
+
case "format":
|
|
7274
|
+
e = "应当匹配格式 \"" + r.params.format + "\"";
|
|
7275
|
+
break;
|
|
7276
|
+
case "formatMaximum":
|
|
7277
|
+
case "formatExclusiveMaximum":
|
|
7278
|
+
e = "";
|
|
7279
|
+
var n = r.params.comparison + " " + r.params.limit;
|
|
7280
|
+
e += "应当是 " + n;
|
|
7281
|
+
break;
|
|
7282
|
+
case "formatMinimum":
|
|
7283
|
+
case "formatExclusiveMinimum":
|
|
7284
|
+
e = "";
|
|
7285
|
+
var n = r.params.comparison + " " + r.params.limit;
|
|
7286
|
+
e += "应当是 " + n;
|
|
7287
|
+
break;
|
|
7288
|
+
case "if":
|
|
7289
|
+
e = "应当匹配模式 \"" + r.params.failingKeyword + "\" ";
|
|
7290
|
+
break;
|
|
7291
|
+
case "maximum":
|
|
7292
|
+
case "exclusiveMaximum":
|
|
7293
|
+
e = "";
|
|
7294
|
+
var n = r.params.comparison + " " + r.params.limit;
|
|
7295
|
+
e += "应当为 " + n;
|
|
7296
|
+
break;
|
|
7297
|
+
case "maxItems":
|
|
7298
|
+
e = "";
|
|
7299
|
+
var t = r.params.limit;
|
|
7300
|
+
e += "不应多于 " + t + " 个项";
|
|
7301
|
+
break;
|
|
7302
|
+
case "maxLength":
|
|
7303
|
+
e = "";
|
|
7304
|
+
var t = r.params.limit;
|
|
7305
|
+
e += "不应多于 " + t + " 个字符";
|
|
7306
|
+
break;
|
|
7307
|
+
case "maxProperties":
|
|
7308
|
+
e = "";
|
|
7309
|
+
var t = r.params.limit;
|
|
7310
|
+
e += "不应有多于 " + t + " 个属性";
|
|
7311
|
+
break;
|
|
7312
|
+
case "minimum":
|
|
7313
|
+
case "exclusiveMinimum":
|
|
7314
|
+
e = "";
|
|
7315
|
+
var n = r.params.comparison + " " + r.params.limit;
|
|
7316
|
+
e += "应当为 " + n;
|
|
7317
|
+
break;
|
|
7318
|
+
case "minItems":
|
|
7319
|
+
e = "";
|
|
7320
|
+
var t = r.params.limit;
|
|
7321
|
+
e += "不应少于 " + t + " 个项";
|
|
7322
|
+
break;
|
|
7323
|
+
case "minLength":
|
|
7324
|
+
e = "";
|
|
7325
|
+
var t = r.params.limit;
|
|
7326
|
+
e += "不应少于 " + t + " 个字符";
|
|
7327
|
+
break;
|
|
7328
|
+
case "minProperties":
|
|
7329
|
+
e = "";
|
|
7330
|
+
var t = r.params.limit;
|
|
7331
|
+
e += "不应有少于 " + t + " 个属性";
|
|
7332
|
+
break;
|
|
7333
|
+
case "multipleOf":
|
|
7334
|
+
e = "应当是 " + r.params.multipleOf + " 的整数倍";
|
|
7335
|
+
break;
|
|
7336
|
+
case "not":
|
|
7337
|
+
e = "不应当匹配 \"not\" schema";
|
|
7338
|
+
break;
|
|
7339
|
+
case "oneOf":
|
|
7340
|
+
e = "只能匹配一个 \"oneOf\" 中的 schema";
|
|
7341
|
+
break;
|
|
7342
|
+
case "pattern":
|
|
7343
|
+
e = "应当匹配模式 \"" + r.params.pattern + "\"";
|
|
7344
|
+
break;
|
|
7345
|
+
case "patternRequired":
|
|
7346
|
+
e = "应当有属性匹配模式 " + r.params.missingPattern;
|
|
7347
|
+
break;
|
|
7348
|
+
case "propertyNames":
|
|
7349
|
+
e = "属性名 无效";
|
|
7350
|
+
break;
|
|
7351
|
+
case "required":
|
|
7352
|
+
e = "应当有必需属性 " + r.params.missingProperty;
|
|
7353
|
+
break;
|
|
7354
|
+
case "type":
|
|
7355
|
+
e = "应当是 " + r.params.type + " 类型";
|
|
7356
|
+
break;
|
|
7357
|
+
case "unevaluatedItems":
|
|
7358
|
+
e = "";
|
|
7359
|
+
var t = r.params.len;
|
|
7360
|
+
e += " 不允许有超过 " + t + " 个元素";
|
|
7361
|
+
break;
|
|
7362
|
+
case "unevaluatedProperties":
|
|
7363
|
+
e = "不允许存在未求值的属性";
|
|
6646
7364
|
break;
|
|
6647
7365
|
case "uniqueItems":
|
|
6648
7366
|
e = "不应当含有重复项 (第 " + r.params.j + " 项与第 " + r.params.i + " 项是重复的)";
|
|
@@ -6652,41 +7370,57 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
6652
7370
|
r.message = e;
|
|
6653
7371
|
}
|
|
6654
7372
|
};
|
|
6655
|
-
})),
|
|
6656
|
-
|
|
6657
|
-
|
|
7373
|
+
})), ci = /* @__PURE__ */ n(Zr(), 1), li = /* @__PURE__ */ n(ei(), 1), ui = /* @__PURE__ */ n(ti(), 1), di = /* @__PURE__ */ n(ni(), 1), fi = /* @__PURE__ */ n(ri(), 1), pi = /* @__PURE__ */ n(ii(), 1), mi = /* @__PURE__ */ n(ai(), 1), hi = /* @__PURE__ */ n(oi(), 1), gi = /* @__PURE__ */ n(si(), 1), _i = {
|
|
7374
|
+
en: ui.default,
|
|
7375
|
+
"zh-CN": gi.default,
|
|
7376
|
+
"zh-TW": hi.default,
|
|
7377
|
+
ja: fi.default,
|
|
7378
|
+
ko: pi.default,
|
|
7379
|
+
ru: mi.default,
|
|
7380
|
+
fr: di.default
|
|
7381
|
+
};
|
|
7382
|
+
function vi(e) {
|
|
7383
|
+
return _i[m([e])];
|
|
7384
|
+
}
|
|
7385
|
+
function yi(e, t) {
|
|
7386
|
+
vi(e)(t);
|
|
7387
|
+
}
|
|
7388
|
+
//#endregion
|
|
7389
|
+
//#region src/designer/browser/validate/validator.ts
|
|
7390
|
+
function bi(e) {
|
|
7391
|
+
let t = new ci.default({
|
|
6658
7392
|
allErrors: !0,
|
|
6659
7393
|
verbose: !0,
|
|
6660
7394
|
strict: !1,
|
|
6661
7395
|
addUsedSchema: !1,
|
|
6662
7396
|
...e
|
|
6663
7397
|
});
|
|
6664
|
-
return (0,
|
|
7398
|
+
return (0, li.default)(t), t;
|
|
6665
7399
|
}
|
|
6666
|
-
var
|
|
6667
|
-
function
|
|
7400
|
+
var xi = /*#__PURE__*/ bi();
|
|
7401
|
+
function Si(e) {
|
|
6668
7402
|
if (!e) return [void 0, void 0];
|
|
6669
7403
|
try {
|
|
6670
|
-
return [
|
|
7404
|
+
return [xi.compile(e), void 0];
|
|
6671
7405
|
} catch (e) {
|
|
6672
7406
|
return [void 0, e];
|
|
6673
7407
|
}
|
|
6674
7408
|
}
|
|
6675
|
-
function
|
|
6676
|
-
return !e || e(t) ? [] : (n
|
|
7409
|
+
function Ci(e, t, n) {
|
|
7410
|
+
return !e || e(t) ? [] : (yi(n, e.errors), e.errors);
|
|
6677
7411
|
}
|
|
6678
7412
|
//#endregion
|
|
6679
7413
|
//#region src/designer/browser/stores/schemaEditor/simpleWidget.store.ts
|
|
6680
|
-
var
|
|
7414
|
+
var wi = class {
|
|
6681
7415
|
constructor(e, t, n) {
|
|
6682
|
-
this.path = e, this.schema$ = t, this.context = n, this.dispose =
|
|
7416
|
+
this.path = e, this.schema$ = t, this.context = n, this.dispose = P(), this.widgetType$ = this.dispose.add(a(this.schema$, J));
|
|
6683
7417
|
}
|
|
6684
7418
|
get expanded$() {
|
|
6685
7419
|
return this.expandedCache$ ??= this.dispose.add(this.context.deriveExpanded$(this.path));
|
|
6686
7420
|
}
|
|
6687
7421
|
configureNumber() {
|
|
6688
|
-
this.numberConfigurationSlot ||= this.dispose.add(
|
|
6689
|
-
let e =
|
|
7422
|
+
this.numberConfigurationSlot ||= this.dispose.add(N());
|
|
7423
|
+
let e = P(), t = e.add(this.deriveUiOptions$("step", H)), n = e.add(this.deriveSchema$("minimum", H)), r = e.add(this.deriveSchema$("maximum", H)), i = e.add(this.deriveSchema$("exclusiveMinimum", H)), a = e.add(this.deriveSchema$("exclusiveMaximum", H));
|
|
6690
7424
|
return this.numberConfigurationSlot.set(e), {
|
|
6691
7425
|
step$: t,
|
|
6692
7426
|
minimum$: n,
|
|
@@ -6696,14 +7430,14 @@ var ci = class {
|
|
|
6696
7430
|
};
|
|
6697
7431
|
}
|
|
6698
7432
|
configureColor() {
|
|
6699
|
-
return this.colorConfigurationSlot ||= this.dispose.add(
|
|
7433
|
+
return this.colorConfigurationSlot ||= this.dispose.add(N()), { colorType$: this.colorConfigurationSlot.set(this.deriveUiOptions$("colorType", (e) => Rt(e) ? e : void 0)) };
|
|
6700
7434
|
}
|
|
6701
7435
|
configureDate() {
|
|
6702
|
-
return this.dateConfigurationSlot ||= this.dispose.add(
|
|
7436
|
+
return this.dateConfigurationSlot ||= this.dispose.add(N()), { format$: this.dateConfigurationSlot.set(this.deriveSchema$("format", (e) => kt(e) ? e : void 0)) };
|
|
6703
7437
|
}
|
|
6704
7438
|
configureString() {
|
|
6705
|
-
this.stringConfigurationSlot ||= this.dispose.add(
|
|
6706
|
-
let e =
|
|
7439
|
+
this.stringConfigurationSlot ||= this.dispose.add(N());
|
|
7440
|
+
let e = P(), t = e.add(this.deriveSchema$("format", V)), n = e.add(this.deriveSchema$("pattern", V)), r = e.add(this.deriveSchema$("minLength", H)), i = e.add(this.deriveSchema$("maxLength", H));
|
|
6707
7441
|
return this.stringConfigurationSlot.set(e), {
|
|
6708
7442
|
format$: t,
|
|
6709
7443
|
pattern$: n,
|
|
@@ -6712,15 +7446,15 @@ var ci = class {
|
|
|
6712
7446
|
};
|
|
6713
7447
|
}
|
|
6714
7448
|
configureArray() {
|
|
6715
|
-
this.arrayConfigurationSlot ||= this.dispose.add(
|
|
6716
|
-
let e =
|
|
7449
|
+
this.arrayConfigurationSlot ||= this.dispose.add(N());
|
|
7450
|
+
let e = P(), t = e.add(this.deriveSchema$("minItems", H)), n = e.add(this.deriveSchema$("maxItems", H));
|
|
6717
7451
|
return this.arrayConfigurationSlot.set(e), {
|
|
6718
7452
|
minItems$: t,
|
|
6719
7453
|
maxItems$: n
|
|
6720
7454
|
};
|
|
6721
7455
|
}
|
|
6722
7456
|
configureObject() {
|
|
6723
|
-
return this.objectConfigurationSlot ||= this.dispose.add(
|
|
7457
|
+
return this.objectConfigurationSlot ||= this.dispose.add(N()), { additionalProperties$: this.objectConfigurationSlot.set(this.deriveSchema$("additionalProperties", at)) };
|
|
6724
7458
|
}
|
|
6725
7459
|
isSelect() {
|
|
6726
7460
|
return !1;
|
|
@@ -6738,11 +7472,11 @@ var ci = class {
|
|
|
6738
7472
|
return !1;
|
|
6739
7473
|
}
|
|
6740
7474
|
deriveSchema$(e, t, n) {
|
|
6741
|
-
return l(a(this.schema$, (n) => t(
|
|
7475
|
+
return l(a(this.schema$, (n) => t(B(n)?.[e]), n), W(this.schema$, e));
|
|
6742
7476
|
}
|
|
6743
7477
|
deriveUiOptions$(e, t, n) {
|
|
6744
|
-
return l(a(this.schema$, (n) => t(
|
|
6745
|
-
let n =
|
|
7478
|
+
return l(a(this.schema$, (n) => t(B(B(n)?.[K])?.[e]), n), (t) => {
|
|
7479
|
+
let n = B(this.schema$.value), r = B(n?.[K]);
|
|
6746
7480
|
if (Object.is(t, r?.[e])) return;
|
|
6747
7481
|
let i = {
|
|
6748
7482
|
...r,
|
|
@@ -6750,11 +7484,11 @@ var ci = class {
|
|
|
6750
7484
|
};
|
|
6751
7485
|
f(this.schema$, n && {
|
|
6752
7486
|
...n,
|
|
6753
|
-
"ui:options":
|
|
7487
|
+
"ui:options": Je(i)
|
|
6754
7488
|
});
|
|
6755
7489
|
});
|
|
6756
7490
|
}
|
|
6757
|
-
},
|
|
7491
|
+
}, Ti = class extends wi {
|
|
6758
7492
|
constructor(e, t, n) {
|
|
6759
7493
|
super(e, t, n), this.conditions$ = this.dispose.add(this.deriveConditions$());
|
|
6760
7494
|
}
|
|
@@ -6762,29 +7496,29 @@ var ci = class {
|
|
|
6762
7496
|
return !0;
|
|
6763
7497
|
}
|
|
6764
7498
|
addCondition(e) {
|
|
6765
|
-
let t = { ...
|
|
7499
|
+
let t = { ...B(this.schema$.value) }, n = J(t), r = R(t[n])?.slice() ?? [], i = { ...B(t[K]) }, a = R(i.labels)?.slice() ?? [];
|
|
6766
7500
|
for (; a.length < r.length;) a.push("");
|
|
6767
|
-
a.splice(e + 1, 0, ""), i.labels =
|
|
7501
|
+
a.splice(e + 1, 0, ""), i.labels = z(a), r.splice(e + 1, 0, q()), t[n] = r, t[K] = i, this.schema$.set(t);
|
|
6768
7502
|
}
|
|
6769
7503
|
removeCondition(e) {
|
|
6770
|
-
let t = { ...
|
|
7504
|
+
let t = { ...B(this.schema$.value) }, n = J(t), r = R(t[n])?.slice() ?? [], i = { ...B(t[K]) }, a = R(i.labels)?.slice() ?? [];
|
|
6771
7505
|
for (; a.length < r.length;) a.push("");
|
|
6772
|
-
a.splice(e, 1), i.labels =
|
|
7506
|
+
a.splice(e, 1), i.labels = z(a), r.splice(e, 1), t[n] = r, t[K] = i, this.schema$.set(t);
|
|
6773
7507
|
}
|
|
6774
7508
|
deriveConditions$() {
|
|
6775
7509
|
let e = [];
|
|
6776
7510
|
return a(this.schema$, (t) => {
|
|
6777
|
-
let n = B(
|
|
6778
|
-
for (let e = r.length; e < n; e++) r[e] = new
|
|
7511
|
+
let n = R(B(t)?.[J(t)])?.length ?? 0, r = e.slice(0, n);
|
|
7512
|
+
for (let e = r.length; e < n; e++) r[e] = new Ei(e, this, this.context);
|
|
6779
7513
|
for (let t = r.length; t < e.length; t++) e[t]?.dispose();
|
|
6780
7514
|
return e = r, r;
|
|
6781
7515
|
});
|
|
6782
7516
|
}
|
|
6783
7517
|
deriveConditionSchema$(e, t = "anyOf") {
|
|
6784
|
-
return l(a(this.schema$, (t) => B(
|
|
6785
|
-
let r =
|
|
7518
|
+
return l(a(this.schema$, (t) => R(B(t)?.[J(t)])?.[e]), (n) => {
|
|
7519
|
+
let r = B(this.schema$.value), i = J(r);
|
|
6786
7520
|
i !== "allOf" && i !== "anyOf" && i !== "oneOf" && (i = t);
|
|
6787
|
-
let a =
|
|
7521
|
+
let a = R(r?.[i]);
|
|
6788
7522
|
if (!Object.is(a?.[e], n)) {
|
|
6789
7523
|
let t = a?.slice() ?? [];
|
|
6790
7524
|
t[e] = n, this.schema$.set({
|
|
@@ -6795,32 +7529,32 @@ var ci = class {
|
|
|
6795
7529
|
});
|
|
6796
7530
|
}
|
|
6797
7531
|
deriveLabel$(e) {
|
|
6798
|
-
return l(a(this.schema$, (t) =>
|
|
6799
|
-
let n =
|
|
7532
|
+
return l(a(this.schema$, (t) => V(R(B(B(t)?.[K])?.labels)?.[e])), (t) => {
|
|
7533
|
+
let n = B(this.schema$.value), r = B(n?.[K]), i = R(r?.labels);
|
|
6800
7534
|
if (!Object.is(i?.[e], t)) {
|
|
6801
7535
|
let a = i?.slice() ?? [];
|
|
6802
7536
|
a[e] = t, this.schema$.set({
|
|
6803
7537
|
...n,
|
|
6804
|
-
[
|
|
7538
|
+
[K]: {
|
|
6805
7539
|
...r,
|
|
6806
|
-
labels:
|
|
7540
|
+
labels: z(a)
|
|
6807
7541
|
}
|
|
6808
7542
|
});
|
|
6809
7543
|
}
|
|
6810
7544
|
});
|
|
6811
7545
|
}
|
|
6812
|
-
},
|
|
7546
|
+
}, Ei = class {
|
|
6813
7547
|
constructor(e, t, n) {
|
|
6814
|
-
this.dispose =
|
|
7548
|
+
this.dispose = P(), this.index = e, this.path = t.path.append(e), this.context = n, this.label$ = this.dispose.add(t.deriveLabel$(e)), this.schema$ = this.dispose.add(t.deriveConditionSchema$(e)), this.widget$ = this.dispose.add(Ii(this.path, this.schema$, n));
|
|
6815
7549
|
}
|
|
6816
|
-
},
|
|
7550
|
+
}, Di = class extends wi {
|
|
6817
7551
|
constructor(e, t, n) {
|
|
6818
|
-
super(e, t, n), this.itemsSchema$ = this.dispose.add(this.deriveSchema$("items", (e) => e,
|
|
7552
|
+
super(e, t, n), this.itemsSchema$ = this.dispose.add(this.deriveSchema$("items", (e) => e, L)), this.itemsWidget$ = this.dispose.add(Ii(this.path.append("items"), this.itemsSchema$, n));
|
|
6819
7553
|
}
|
|
6820
7554
|
isArray() {
|
|
6821
7555
|
return !0;
|
|
6822
7556
|
}
|
|
6823
|
-
},
|
|
7557
|
+
}, Oi = /*#__PURE__*/ new Set([
|
|
6824
7558
|
"string",
|
|
6825
7559
|
"integer",
|
|
6826
7560
|
"number",
|
|
@@ -6831,27 +7565,27 @@ var ci = class {
|
|
|
6831
7565
|
"array",
|
|
6832
7566
|
"object",
|
|
6833
7567
|
"anyOf"
|
|
6834
|
-
]),
|
|
7568
|
+
]), ki = (e) => [
|
|
6835
7569
|
{
|
|
6836
|
-
label: "
|
|
7570
|
+
label: e("schemaEditor.stringFormat.email"),
|
|
6837
7571
|
value: "email"
|
|
6838
7572
|
},
|
|
6839
7573
|
{
|
|
6840
|
-
label: "
|
|
7574
|
+
label: e("schemaEditor.stringFormat.uri"),
|
|
6841
7575
|
value: "uri"
|
|
6842
7576
|
},
|
|
6843
7577
|
{
|
|
6844
|
-
label: e,
|
|
7578
|
+
label: e("inputHandleEditor.unset"),
|
|
6845
7579
|
value: ""
|
|
6846
7580
|
}
|
|
6847
7581
|
];
|
|
6848
|
-
function
|
|
7582
|
+
function Ai(e, t) {
|
|
6849
7583
|
let n = e || "";
|
|
6850
|
-
return
|
|
7584
|
+
return ki(t).find((e) => e.value === n);
|
|
6851
7585
|
}
|
|
6852
7586
|
//#endregion
|
|
6853
7587
|
//#region src/designer/browser/stores/schemaEditor/selectWidget.store.ts
|
|
6854
|
-
var
|
|
7588
|
+
var ji = class extends wi {
|
|
6855
7589
|
constructor(e, t, n) {
|
|
6856
7590
|
super(e, t, n), this.items$ = this.dispose.add(this.deriveItems()), this.dispose.add(() => {
|
|
6857
7591
|
for (let e of this.items$.value) e.dispose();
|
|
@@ -6861,27 +7595,27 @@ var hi = class extends ci {
|
|
|
6861
7595
|
return !0;
|
|
6862
7596
|
}
|
|
6863
7597
|
addItem(e) {
|
|
6864
|
-
let t = { ...
|
|
7598
|
+
let t = { ...B(this.schema$.value) }, n = R(t.enum)?.slice() ?? [], r = { ...B(t[K]) }, i = R(r.labels)?.slice() ?? [];
|
|
6865
7599
|
for (; i.length < n.length;) i.push("");
|
|
6866
|
-
i.splice(e + 1, 0, ""), r.labels =
|
|
7600
|
+
i.splice(e + 1, 0, ""), r.labels = z(i), n.splice(e + 1, 0, ""), t.enum = n, t[K] = r, this.schema$.set(t);
|
|
6867
7601
|
}
|
|
6868
7602
|
removeItem(e) {
|
|
6869
|
-
let t = { ...
|
|
7603
|
+
let t = { ...B(this.schema$.value) }, n = R(t.enum)?.slice() ?? [], r = { ...B(t[K]) }, i = R(r.labels)?.slice() ?? [];
|
|
6870
7604
|
for (; i.length < n.length;) i.push("");
|
|
6871
|
-
i.splice(e, 1), r.labels =
|
|
7605
|
+
i.splice(e, 1), r.labels = z(i), n.splice(e, 1), t.enum = n, t[K] = r, this.schema$.set(t);
|
|
6872
7606
|
}
|
|
6873
7607
|
deriveItems() {
|
|
6874
7608
|
let e = [];
|
|
6875
7609
|
return a(this.schema$, (t) => {
|
|
6876
|
-
let n = B(
|
|
6877
|
-
for (let e = r.length; e < n; e++) r[e] = new
|
|
7610
|
+
let n = R(B(t)?.enum)?.length ?? 0, r = e.slice(0, n);
|
|
7611
|
+
for (let e = r.length; e < n; e++) r[e] = new Mi(e, this, this.context);
|
|
6878
7612
|
for (let t = r.length; t < e.length; t++) e[t]?.dispose();
|
|
6879
7613
|
return e = r, r;
|
|
6880
7614
|
});
|
|
6881
7615
|
}
|
|
6882
7616
|
deriveValue$(e) {
|
|
6883
|
-
return l(a(this.schema$, (t) => B(
|
|
6884
|
-
let n =
|
|
7617
|
+
return l(a(this.schema$, (t) => R(B(t)?.enum)?.[e]), (t) => {
|
|
7618
|
+
let n = B(this.schema$.value), r = R(n?.enum);
|
|
6885
7619
|
if (!Object.is(r?.[e], t)) {
|
|
6886
7620
|
let i = r?.slice() ?? [];
|
|
6887
7621
|
i[e] = t, this.schema$.set({
|
|
@@ -6892,25 +7626,25 @@ var hi = class extends ci {
|
|
|
6892
7626
|
});
|
|
6893
7627
|
}
|
|
6894
7628
|
deriveLabel$(e) {
|
|
6895
|
-
return l(a(this.schema$, (t) =>
|
|
6896
|
-
let n =
|
|
7629
|
+
return l(a(this.schema$, (t) => V(R(B(B(t)?.[K])?.labels)?.[e])), (t) => {
|
|
7630
|
+
let n = B(this.schema$.value), r = B(n?.[K]), i = R(r?.labels);
|
|
6897
7631
|
if (!Object.is(i?.[e], t)) {
|
|
6898
7632
|
let a = i?.slice() ?? [];
|
|
6899
7633
|
a[e] = t, this.schema$.set({
|
|
6900
7634
|
...n,
|
|
6901
|
-
[
|
|
7635
|
+
[K]: {
|
|
6902
7636
|
...r,
|
|
6903
|
-
labels:
|
|
7637
|
+
labels: z(a)
|
|
6904
7638
|
}
|
|
6905
7639
|
});
|
|
6906
7640
|
}
|
|
6907
7641
|
});
|
|
6908
7642
|
}
|
|
6909
|
-
},
|
|
7643
|
+
}, Mi = class {
|
|
6910
7644
|
constructor(e, t, n) {
|
|
6911
|
-
this.index = e, this.selectStore = t, this.context = n, this.dispose =
|
|
7645
|
+
this.index = e, this.selectStore = t, this.context = n, this.dispose = P(), this.value$ = this.dispose.add(this.selectStore.deriveValue$(e)), this.label$ = this.dispose.add(this.selectStore.deriveLabel$(e));
|
|
6912
7646
|
}
|
|
6913
|
-
},
|
|
7647
|
+
}, Ni = class extends wi {
|
|
6914
7648
|
constructor(e, t, n) {
|
|
6915
7649
|
super(e, t, n), this.items$ = this.dispose.add(this.deriveItems()), this.dispose.add(() => {
|
|
6916
7650
|
for (let e of this.items$.value) e.dispose();
|
|
@@ -6920,30 +7654,30 @@ var hi = class extends ci {
|
|
|
6920
7654
|
return !0;
|
|
6921
7655
|
}
|
|
6922
7656
|
addItem(e) {
|
|
6923
|
-
let t = { ...
|
|
7657
|
+
let t = { ...B(this.schema$.value) }, n = { ...B(t.items) }, r = R(n.enum)?.slice() ?? [], i = { ...B(t[K]) }, a = R(i.labels)?.slice() ?? [];
|
|
6924
7658
|
for (; a.length < r.length;) a.push("");
|
|
6925
|
-
a.splice(e + 1, 0, ""), i.labels =
|
|
7659
|
+
a.splice(e + 1, 0, ""), i.labels = z(a), r.splice(e + 1, 0, ""), n.enum = r, t.items = n, t[K] = i, this.schema$.set(t);
|
|
6926
7660
|
}
|
|
6927
7661
|
removeItem(e) {
|
|
6928
|
-
let t = { ...
|
|
7662
|
+
let t = { ...B(this.schema$.value) }, n = { ...B(t.items) }, r = R(n.enum)?.slice() ?? [], i = { ...B(t[K]) }, a = R(i.labels)?.slice() ?? [];
|
|
6929
7663
|
for (; a.length < r.length;) a.push("");
|
|
6930
|
-
a.splice(e, 1), i.labels =
|
|
7664
|
+
a.splice(e, 1), i.labels = z(a), r.splice(e, 1), n.enum = r, t.items = n, t[K] = i, this.schema$.set(t);
|
|
6931
7665
|
}
|
|
6932
7666
|
deriveItems() {
|
|
6933
7667
|
let e = [];
|
|
6934
7668
|
return a(this.schema$, (t) => {
|
|
6935
|
-
let n =
|
|
6936
|
-
for (let e = i.length; e < r; e++) i[e] = new
|
|
7669
|
+
let n = B(t)?.items, r = R(B(n)?.enum)?.length ?? 0, i = e.slice(0, r);
|
|
7670
|
+
for (let e = i.length; e < r; e++) i[e] = new Mi(e, this, this.context);
|
|
6937
7671
|
for (let t = i.length; t < e.length; t++) e[t].dispose();
|
|
6938
7672
|
return e = i, i;
|
|
6939
7673
|
});
|
|
6940
7674
|
}
|
|
6941
7675
|
deriveValue$(e) {
|
|
6942
7676
|
return l(a(this.schema$, (t) => {
|
|
6943
|
-
let n =
|
|
6944
|
-
return B(
|
|
7677
|
+
let n = B(t)?.items;
|
|
7678
|
+
return R(B(n)?.enum)?.[e];
|
|
6945
7679
|
}), (t) => {
|
|
6946
|
-
let n =
|
|
7680
|
+
let n = B(this.schema$.value), r = B(n?.items), i = R(r?.enum);
|
|
6947
7681
|
if (!Object.is(i?.[e], t)) {
|
|
6948
7682
|
let a = i?.slice() ?? [];
|
|
6949
7683
|
a[e] = t, this.schema$.set({
|
|
@@ -6957,21 +7691,21 @@ var hi = class extends ci {
|
|
|
6957
7691
|
});
|
|
6958
7692
|
}
|
|
6959
7693
|
deriveLabel$(e) {
|
|
6960
|
-
return l(a(this.schema$, (t) =>
|
|
6961
|
-
let n =
|
|
7694
|
+
return l(a(this.schema$, (t) => V(R(B(B(t)?.[K])?.labels)?.[e])), (t) => {
|
|
7695
|
+
let n = B(this.schema$.value), r = B(n?.[K]), i = R(r?.labels);
|
|
6962
7696
|
if (!Object.is(i?.[e], t)) {
|
|
6963
7697
|
let a = i?.slice() ?? [];
|
|
6964
7698
|
a[e] = t, this.schema$.set({
|
|
6965
7699
|
...n,
|
|
6966
|
-
[
|
|
7700
|
+
[K]: {
|
|
6967
7701
|
...r,
|
|
6968
|
-
labels:
|
|
7702
|
+
labels: z(a)
|
|
6969
7703
|
}
|
|
6970
7704
|
});
|
|
6971
7705
|
}
|
|
6972
7706
|
});
|
|
6973
7707
|
}
|
|
6974
|
-
},
|
|
7708
|
+
}, Pi = class extends wi {
|
|
6975
7709
|
constructor(e, t, n) {
|
|
6976
7710
|
super(e, t, n), this.fields$ = this.dispose.add(this.deriveFields$());
|
|
6977
7711
|
}
|
|
@@ -6983,20 +7717,20 @@ var hi = class extends ci {
|
|
|
6983
7717
|
console.error(/* @__PURE__ */ Error("User can't add object field"));
|
|
6984
7718
|
return;
|
|
6985
7719
|
}
|
|
6986
|
-
let t =
|
|
7720
|
+
let t = B(this.schema$.value), n = B(t?.properties);
|
|
6987
7721
|
if (n) {
|
|
6988
|
-
let r = Object.entries(n), i = (e ? r.findIndex(([t]) => t === e) : -1) + 1, a =
|
|
6989
|
-
r.splice(i, 0, [a, o ||
|
|
7722
|
+
let r = Object.entries(n), i = (e ? r.findIndex(([t]) => t === e) : -1) + 1, a = U("field", r.map(([e]) => e)), o = i > 0 ? r[i - 1][1] : null;
|
|
7723
|
+
r.splice(i, 0, [a, o || q()]), this.schema$.set({
|
|
6990
7724
|
...t,
|
|
6991
7725
|
properties: Object.fromEntries(r)
|
|
6992
7726
|
});
|
|
6993
7727
|
} else this.schema$.set({
|
|
6994
7728
|
...t,
|
|
6995
|
-
properties: { field:
|
|
7729
|
+
properties: { field: q() }
|
|
6996
7730
|
});
|
|
6997
7731
|
}
|
|
6998
7732
|
renameField(e, t) {
|
|
6999
|
-
let n =
|
|
7733
|
+
let n = B(this.schema$.value), r = B(n?.properties);
|
|
7000
7734
|
if (r) {
|
|
7001
7735
|
let i = Object.entries(r), a = i.findIndex(([t]) => t === e);
|
|
7002
7736
|
a >= 0 && (i[a] = [t, i[a][1]], this.schema$.set({
|
|
@@ -7006,7 +7740,7 @@ var hi = class extends ci {
|
|
|
7006
7740
|
}
|
|
7007
7741
|
}
|
|
7008
7742
|
removeField(e) {
|
|
7009
|
-
let t =
|
|
7743
|
+
let t = B(this.schema$.value), n = B(t?.properties);
|
|
7010
7744
|
if (n) {
|
|
7011
7745
|
let r = Object.entries(n), i = r.findIndex(([t]) => t === e);
|
|
7012
7746
|
i >= 0 && (r.splice(i, 1), this.schema$.set({
|
|
@@ -7018,44 +7752,44 @@ var hi = class extends ci {
|
|
|
7018
7752
|
deriveFields$() {
|
|
7019
7753
|
let e, t = [];
|
|
7020
7754
|
return a(this.schema$, (n) => {
|
|
7021
|
-
let r =
|
|
7755
|
+
let r = B(n?.properties);
|
|
7022
7756
|
if (e === r) return t;
|
|
7023
7757
|
e = r;
|
|
7024
|
-
let i = r ? Object.keys(r).map((e) => t.find((t) => t.name === e) || new
|
|
7758
|
+
let i = r ? Object.keys(r).map((e) => t.find((t) => t.name === e) || new Fi(e, this, this.context)) : [];
|
|
7025
7759
|
for (let e of t) r?.[e.name] || e.dispose();
|
|
7026
7760
|
return t = i, i;
|
|
7027
7761
|
}, { equal: d });
|
|
7028
7762
|
}
|
|
7029
|
-
},
|
|
7763
|
+
}, Fi = class {
|
|
7030
7764
|
constructor(e, t, n) {
|
|
7031
|
-
this.dispose =
|
|
7032
|
-
let r =
|
|
7765
|
+
this.dispose = P(), this.name = e, this.context = n, this.path = t.path.append(e), this.schema$ = this.dispose.add(l(a(t.schema$, (t) => t?.properties?.[e]), (n) => {
|
|
7766
|
+
let r = B(t.schema$.value);
|
|
7033
7767
|
t.schema$.set({
|
|
7034
7768
|
...r,
|
|
7035
7769
|
properties: {
|
|
7036
|
-
...
|
|
7770
|
+
...B(r?.properties),
|
|
7037
7771
|
[e]: n
|
|
7038
7772
|
}
|
|
7039
7773
|
});
|
|
7040
|
-
})), this.widget$ = this.dispose.add(
|
|
7774
|
+
})), this.widget$ = this.dispose.add(Ii(this.path, this.schema$, n));
|
|
7041
7775
|
}
|
|
7042
|
-
},
|
|
7043
|
-
let r =
|
|
7776
|
+
}, Ii = (e, t, n) => {
|
|
7777
|
+
let r = N(), i = a(t, J), o = a(i, (i) => {
|
|
7044
7778
|
let a;
|
|
7045
|
-
return a = i === "select" ? new
|
|
7779
|
+
return a = i === "select" ? new ji(e, t, n) : i === "multiSelect" ? new Ni(e, t, n) : i === "array" ? new Di(e, t, n) : i === "object" ? new Pi(e, t, n) : i === "anyOf" ? new Ti(e, t, n) : new wi(e, t, n), r.set(a);
|
|
7046
7780
|
}), s = o.dispose, c = i.reaction((t) => {
|
|
7047
|
-
|
|
7781
|
+
Oi.has(t) && n.expand(e);
|
|
7048
7782
|
});
|
|
7049
7783
|
return o.dispose = () => {
|
|
7050
7784
|
c(), s.call(o), r.dispose();
|
|
7051
7785
|
}, o;
|
|
7052
|
-
},
|
|
7786
|
+
}, Li = class {
|
|
7053
7787
|
constructor(e, t, n, r) {
|
|
7054
7788
|
this.schema$ = t, this.expanded$ = n, this.createSchemaEditor = r, this.role = e.role, this.inout = e.inout, this.enableAny = e.enableAny ?? !0, this.restrict$ = e.restrict$;
|
|
7055
7789
|
}
|
|
7056
7790
|
deriveExpanded$(e) {
|
|
7057
7791
|
return l(a(this.expanded$, (t) => t?.[e.key] ?? !1), (t) => {
|
|
7058
|
-
let n =
|
|
7792
|
+
let n = B(this.expanded$.value);
|
|
7059
7793
|
if (t) n?.[e.key] || this.expanded$.set({
|
|
7060
7794
|
...n,
|
|
7061
7795
|
[e.key]: !0
|
|
@@ -7078,22 +7812,21 @@ var hi = class extends ci {
|
|
|
7078
7812
|
get canEditValue() {
|
|
7079
7813
|
return this.role === "author" || this.role === "user";
|
|
7080
7814
|
}
|
|
7081
|
-
},
|
|
7815
|
+
}, Ri = class {
|
|
7082
7816
|
constructor(e, t, n, r, i, a) {
|
|
7083
|
-
this.dispose =
|
|
7817
|
+
this.dispose = P(), this.path = En.get(), this.name = e, this.description$ = t, this.displayDescription$ = n, this.context = a, this.schema$ = a.schema$, this.nullable$ = r, this.kind$ = i, this.widget$ = this.dispose.add(Ii(this.path, this.schema$, a));
|
|
7084
7818
|
}
|
|
7085
|
-
},
|
|
7086
|
-
function
|
|
7087
|
-
|
|
7088
|
-
return t === Kt.secret ? "secret" : t === Kt.binary ? "bin" : Ci;
|
|
7819
|
+
}, zi = "primitive";
|
|
7820
|
+
function Bi(e) {
|
|
7821
|
+
return V(e?.contentMediaType) === Xt.binary ? "bin" : zi;
|
|
7089
7822
|
}
|
|
7090
7823
|
//#endregion
|
|
7091
7824
|
//#region src/designer/browser/stores/nodeHandle/simpleWidget.store.ts
|
|
7092
|
-
var
|
|
7825
|
+
var Vi = class {
|
|
7093
7826
|
constructor(e, t, n, r, i) {
|
|
7094
|
-
if (this.path = e, this.schema$ = t, this.context = n, this.value$ = r, this.overrideSchema$ = i, this.dispose =
|
|
7827
|
+
if (this.path = e, this.schema$ = t, this.context = n, this.value$ = r, this.overrideSchema$ = i, this.dispose = P(), this.description$ = this.dispose.add(this.deriveDescription$(this.schema$)), this.descCollapsed$ = this.dispose.add(s(!this.description$.value)), this.schemaWidgetType$ = this.dispose.add(a(this.schema$, J)), this.overrideWidgetType$ = this.dispose.add(a(this.overrideSchema$, (e) => J(e?.schema))), this.widgetType$ = this.dispose.add(u([this.schemaWidgetType$, this.overrideWidgetType$], ([e, t]) => tn(e) ? t : e)), this.hasSubpanel$ = this.dispose.add(c((e) => {
|
|
7095
7828
|
let t = this.context.restrict$ != null && e(this.context.restrict$) != null;
|
|
7096
|
-
return
|
|
7829
|
+
return Hi(this.context, e(this.widgetType$), e(this.schema$), t);
|
|
7097
7830
|
})), r) {
|
|
7098
7831
|
let e = {};
|
|
7099
7832
|
this.dispose.add([r.subscribe((t) => {
|
|
@@ -7119,33 +7852,33 @@ var Ti = class {
|
|
|
7119
7852
|
return !1;
|
|
7120
7853
|
}
|
|
7121
7854
|
deriveDescription$(e) {
|
|
7122
|
-
return l(a(e, (e) =>
|
|
7123
|
-
|
|
7855
|
+
return l(a(e, (e) => V(B(e)?.description)), (t) => {
|
|
7856
|
+
x(e.value) && e.set({
|
|
7124
7857
|
...e.value,
|
|
7125
7858
|
description: t
|
|
7126
7859
|
});
|
|
7127
7860
|
});
|
|
7128
7861
|
}
|
|
7129
7862
|
};
|
|
7130
|
-
function
|
|
7131
|
-
let i =
|
|
7863
|
+
function Hi(e, t, n, r) {
|
|
7864
|
+
let i = B(n), a = J(i);
|
|
7132
7865
|
if (t == "object") {
|
|
7133
7866
|
if (!r && e.canEditSchema || a == "any") return !0;
|
|
7134
|
-
let t =
|
|
7867
|
+
let t = B(i?.properties), n = t != null && Object.keys(t).length > 0;
|
|
7135
7868
|
return e.inout == "in" ? n || i?.additionalProperties !== !1 : n;
|
|
7136
7869
|
}
|
|
7137
7870
|
return e.inout == "in" && (t == "text" || t == "array" || i?.anyOf != null || i?.allOf != null || i?.oneOf != null);
|
|
7138
7871
|
}
|
|
7139
7872
|
//#endregion
|
|
7140
7873
|
//#region src/designer/browser/stores/nodeHandle/anyOfWidget.store.ts
|
|
7141
|
-
var
|
|
7874
|
+
var Ui = class extends Vi {
|
|
7142
7875
|
constructor(e, t, n, r, i) {
|
|
7143
|
-
super(e, t, n, r, i), this.selected$ = this.dispose.add(l(a(this.overrideSchema$, (e) =>
|
|
7876
|
+
super(e, t, n, r, i), this.selected$ = this.dispose.add(l(a(this.overrideSchema$, (e) => H(B(B(e)?.[K])?.selected)), (e) => {
|
|
7144
7877
|
e ? f(this.overrideSchema$, {
|
|
7145
|
-
...
|
|
7878
|
+
...B(this.overrideSchema$.value),
|
|
7146
7879
|
path: this.path,
|
|
7147
|
-
[
|
|
7148
|
-
...
|
|
7880
|
+
[K]: {
|
|
7881
|
+
...B(B(this.overrideSchema$.value)?.[K]),
|
|
7149
7882
|
selected: e
|
|
7150
7883
|
}
|
|
7151
7884
|
}) : f(this.overrideSchema$, void 0);
|
|
@@ -7153,16 +7886,16 @@ var Di = class extends Ti {
|
|
|
7153
7886
|
this.schemaWidgetType$,
|
|
7154
7887
|
this.schema$,
|
|
7155
7888
|
this.selected$
|
|
7156
|
-
], ([e, t, n]) => B(
|
|
7157
|
-
let t = B(
|
|
7889
|
+
], ([e, t, n]) => R(B(t)?.[e])?.[n || 0]), (e) => {
|
|
7890
|
+
let t = R(B(this.schema$.value)?.[this.schemaWidgetType$.value]) || [];
|
|
7158
7891
|
f(this.schema$, {
|
|
7159
|
-
...
|
|
7892
|
+
...B(this.schema$.value),
|
|
7160
7893
|
[this.schemaWidgetType$.value]: t.toSpliced(this.selected$.value || 0, 1, e)
|
|
7161
7894
|
});
|
|
7162
7895
|
}));
|
|
7163
|
-
let o = this.dispose.add(
|
|
7896
|
+
let o = this.dispose.add(N()), s;
|
|
7164
7897
|
if (this.condition$ = this.dispose.add(u([this.selected$, this.selectedSchema$], ([e = 0, t]) => {
|
|
7165
|
-
if (t) return s?.selected === e ? s : (s = new
|
|
7898
|
+
if (t) return s?.selected === e ? s : (s = new Wi(e, this.selectedSchema$, this, this.context), o.set(s));
|
|
7166
7899
|
})), r) {
|
|
7167
7900
|
let e = {};
|
|
7168
7901
|
this.dispose.add([r.subscribe((t) => {
|
|
@@ -7175,13 +7908,13 @@ var Di = class extends Ti {
|
|
|
7175
7908
|
isAnyOf() {
|
|
7176
7909
|
return !0;
|
|
7177
7910
|
}
|
|
7178
|
-
},
|
|
7911
|
+
}, Wi = class {
|
|
7179
7912
|
constructor(e, t, n, r) {
|
|
7180
|
-
this.dispose =
|
|
7913
|
+
this.dispose = P(), this.selected = e, this.schema$ = t, this.context = r, this.value$ = n.value$, this.overrideSchema$ = n.overrideSchema$, this.widget$ = this.dispose.add(Yi(n.path, this.schema$, r, this.value$, this.overrideSchema$));
|
|
7181
7914
|
}
|
|
7182
|
-
},
|
|
7915
|
+
}, Gi = class extends Vi {
|
|
7183
7916
|
constructor(e, t, n, r, i) {
|
|
7184
|
-
super(e, t, n, r, i), this.itemsSchema$ = this.dispose.add(l(a(t, (e) =>
|
|
7917
|
+
super(e, t, n, r, i), this.itemsSchema$ = this.dispose.add(l(a(t, (e) => B(e)?.items), W(t, "items"))), this.itemsWidgetType$ = this.dispose.add(a(this.itemsSchema$, (e) => J(e))), r && (this.items$ = this.dispose.add(this.deriveItems(r)), this.dispose.add(() => {
|
|
7185
7918
|
for (let e of this.items$.value) e.dispose();
|
|
7186
7919
|
}));
|
|
7187
7920
|
}
|
|
@@ -7190,7 +7923,7 @@ var Di = class extends Ti {
|
|
|
7190
7923
|
}
|
|
7191
7924
|
addItem(e) {
|
|
7192
7925
|
if (this.value$) {
|
|
7193
|
-
let t =
|
|
7926
|
+
let t = R(this.value$.value), n = en(J(this.itemsSchema$.value));
|
|
7194
7927
|
if (t) {
|
|
7195
7928
|
this.context.duplicateSchemaOverrideItem(this.path.append(e));
|
|
7196
7929
|
let r = t.toSpliced(e + 1, 0, n);
|
|
@@ -7200,7 +7933,7 @@ var Di = class extends Ti {
|
|
|
7200
7933
|
}
|
|
7201
7934
|
removeItem(e) {
|
|
7202
7935
|
if (this.context.removeSchemaOverrideItem(this.path.append(e)), this.value$) {
|
|
7203
|
-
let t =
|
|
7936
|
+
let t = R(this.value$.value);
|
|
7204
7937
|
f(this.value$, t ? t.toSpliced(e, 1) : []);
|
|
7205
7938
|
}
|
|
7206
7939
|
}
|
|
@@ -7208,28 +7941,28 @@ var Di = class extends Ti {
|
|
|
7208
7941
|
let t = [];
|
|
7209
7942
|
return a(e, (e) => {
|
|
7210
7943
|
let n = Array.isArray(e) ? e.length : 0, r = t.slice(0, n);
|
|
7211
|
-
for (let e = r.length; e < n; e++) r[e] = new
|
|
7944
|
+
for (let e = r.length; e < n; e++) r[e] = new Ki(e, this, this.context);
|
|
7212
7945
|
for (let e = r.length; e < t.length; e++) t[e]?.dispose();
|
|
7213
7946
|
return t = r, r;
|
|
7214
7947
|
});
|
|
7215
7948
|
}
|
|
7216
|
-
},
|
|
7949
|
+
}, Ki = class {
|
|
7217
7950
|
constructor(e, t, n) {
|
|
7218
|
-
this.dispose =
|
|
7951
|
+
this.dispose = P(), this.index = e, this.context = n, this.path = t.path.append(e);
|
|
7219
7952
|
let r = t.value$;
|
|
7220
|
-
r && (this.value$ = this.dispose.add(l(a(r, (t) =>
|
|
7221
|
-
let n =
|
|
7953
|
+
r && (this.value$ = this.dispose.add(l(a(r, (t) => R(t)?.[e]), (t) => {
|
|
7954
|
+
let n = R(r.value);
|
|
7222
7955
|
if (!Object.is(n?.[e], t)) {
|
|
7223
7956
|
let i = n?.slice() ?? [];
|
|
7224
7957
|
i[e] = t, r.set(i);
|
|
7225
7958
|
}
|
|
7226
|
-
}))), this.schema$ = t.itemsSchema$, this.overrideSchema$ = this.dispose.add(this.context.deriveSchemaOverrideItem$(this.path)), this.widget$ = this.dispose.add(
|
|
7959
|
+
}))), this.schema$ = t.itemsSchema$, this.overrideSchema$ = this.dispose.add(this.context.deriveSchemaOverrideItem$(this.path)), this.widget$ = this.dispose.add(Yi(this.path, this.schema$, n, this.value$, this.overrideSchema$));
|
|
7227
7960
|
}
|
|
7228
|
-
},
|
|
7961
|
+
}, qi = class extends Vi {
|
|
7229
7962
|
constructor(e, t, n, r, i) {
|
|
7230
7963
|
super(e, t, n, r, i), this.allowsUntypedFields$ = this.dispose.add(a(this.schema$, (e) => {
|
|
7231
|
-
let t =
|
|
7232
|
-
return
|
|
7964
|
+
let t = B(e);
|
|
7965
|
+
return J(e) == "object" && t?.additionalProperties !== !1;
|
|
7233
7966
|
})), this.fixedFields$ = this.dispose.add(this.deriveFixedFields$()), this.overrideFields$ = this.dispose.add(this.deriveOverrideFields$()), this.untypedFields$ = r == null ? void 0 : this.dispose.add(this.deriveUntypedFields$(r)), this.fieldNames$ = this.dispose.add(this.untypedFields$ ? u([
|
|
7234
7967
|
this.fixedFields$,
|
|
7235
7968
|
this.overrideFields$,
|
|
@@ -7252,11 +7985,11 @@ var Di = class extends Ti {
|
|
|
7252
7985
|
console.error(/* @__PURE__ */ Error("User can't add fixed field"));
|
|
7253
7986
|
return;
|
|
7254
7987
|
}
|
|
7255
|
-
let t =
|
|
7988
|
+
let t = B(this.schema$.value), n = B(t?.properties), r = U("field", this.fieldNames$.value);
|
|
7256
7989
|
if (n) {
|
|
7257
7990
|
let i = Object.keys(n), a = {}, o;
|
|
7258
7991
|
for (let t = 0; t < e; t++) o = a[i[t]] = n[i[t]];
|
|
7259
|
-
a[r] = o ||
|
|
7992
|
+
a[r] = o || q();
|
|
7260
7993
|
for (let t = e; t < i.length; t++) a[i[t]] = n[i[t]];
|
|
7261
7994
|
this.schema$.set({
|
|
7262
7995
|
...t,
|
|
@@ -7264,10 +7997,10 @@ var Di = class extends Ti {
|
|
|
7264
7997
|
});
|
|
7265
7998
|
} else this.schema$.set({
|
|
7266
7999
|
...t,
|
|
7267
|
-
properties: { [r]:
|
|
8000
|
+
properties: { [r]: q() }
|
|
7268
8001
|
});
|
|
7269
8002
|
if (this.value$) {
|
|
7270
|
-
let e =
|
|
8003
|
+
let e = B(this.value$.value);
|
|
7271
8004
|
e ? this.value$.set({
|
|
7272
8005
|
...e,
|
|
7273
8006
|
[r]: void 0
|
|
@@ -7275,12 +8008,12 @@ var Di = class extends Ti {
|
|
|
7275
8008
|
}
|
|
7276
8009
|
}
|
|
7277
8010
|
addOverrideField(e) {
|
|
7278
|
-
let t = e > 0 ? this.overrideFields$.value[e - 1] : null, n =
|
|
8011
|
+
let t = e > 0 ? this.overrideFields$.value[e - 1] : null, n = U("field", this.fieldNames$.value);
|
|
7279
8012
|
if (this.context.addSchemaOverrideItem({
|
|
7280
8013
|
path: this.path.append(n),
|
|
7281
|
-
schema: t?.schema$.value ||
|
|
8014
|
+
schema: t?.schema$.value || q()
|
|
7282
8015
|
}, e), this.value$) {
|
|
7283
|
-
let e =
|
|
8016
|
+
let e = B(this.value$.value);
|
|
7284
8017
|
e ? this.value$.set({
|
|
7285
8018
|
...e,
|
|
7286
8019
|
[n]: void 0
|
|
@@ -7289,7 +8022,7 @@ var Di = class extends Ti {
|
|
|
7289
8022
|
}
|
|
7290
8023
|
addUntypedField() {
|
|
7291
8024
|
if (this.value$ == null) return;
|
|
7292
|
-
let e =
|
|
8025
|
+
let e = B(this.value$.value) ?? {}, t = U("field", this.fieldNames$.value);
|
|
7293
8026
|
this.value$.set({
|
|
7294
8027
|
...e,
|
|
7295
8028
|
[t]: void 0
|
|
@@ -7299,7 +8032,7 @@ var Di = class extends Ti {
|
|
|
7299
8032
|
this.context.role === "author" && e === "fixed" && !this.context.restrict$?.value ? this.addFixedField(t + 1) : e === "untyped" ? this.addUntypedField() : this.addOverrideField(e === "override" ? t + 1 : 0);
|
|
7300
8033
|
}
|
|
7301
8034
|
renameField(e, t) {
|
|
7302
|
-
let n =
|
|
8035
|
+
let n = B(this.schema$.value), r = B(n?.properties);
|
|
7303
8036
|
if (r) {
|
|
7304
8037
|
let i = Object.entries(r), a = i.findIndex(([t]) => t === e);
|
|
7305
8038
|
a >= 0 && (i[a] = [t, i[a][1]], this.schema$.set({
|
|
@@ -7316,7 +8049,7 @@ var Di = class extends Ti {
|
|
|
7316
8049
|
}));
|
|
7317
8050
|
}
|
|
7318
8051
|
if (this.value$) {
|
|
7319
|
-
let n =
|
|
8052
|
+
let n = B(this.value$.value);
|
|
7320
8053
|
if (n) {
|
|
7321
8054
|
let r = Object.entries(n), i = r.findIndex(([t]) => t === e);
|
|
7322
8055
|
i >= 0 && (r[i] = [t, r[i][1]], this.value$.set(Object.fromEntries(r)));
|
|
@@ -7329,7 +8062,7 @@ var Di = class extends Ti {
|
|
|
7329
8062
|
}
|
|
7330
8063
|
}
|
|
7331
8064
|
removeField(e) {
|
|
7332
|
-
let t =
|
|
8065
|
+
let t = B(this.schema$.value), n = t?.properties;
|
|
7333
8066
|
if (n) {
|
|
7334
8067
|
let r = Object.entries(n), i = r.findIndex((t) => t[0] === e);
|
|
7335
8068
|
i >= 0 && this.schema$.set({
|
|
@@ -7338,7 +8071,7 @@ var Di = class extends Ti {
|
|
|
7338
8071
|
});
|
|
7339
8072
|
}
|
|
7340
8073
|
this.context.removeSchemaOverrideItem(this.path.append(e));
|
|
7341
|
-
let r =
|
|
8074
|
+
let r = B(this.value$?.value);
|
|
7342
8075
|
if (r) {
|
|
7343
8076
|
let t = { ...r };
|
|
7344
8077
|
delete t[e], this.value$?.set(t);
|
|
@@ -7355,10 +8088,10 @@ var Di = class extends Ti {
|
|
|
7355
8088
|
deriveFixedFields$() {
|
|
7356
8089
|
let e, t = [];
|
|
7357
8090
|
return a(this.schema$, (n) => {
|
|
7358
|
-
let r =
|
|
8091
|
+
let r = B(n?.properties);
|
|
7359
8092
|
if (e === r) return t;
|
|
7360
8093
|
e = r;
|
|
7361
|
-
let i = r ? Object.keys(r).map((e) => t.find((t) => t.name === e) || new
|
|
8094
|
+
let i = r ? Object.keys(r).map((e) => t.find((t) => t.name === e) || new Ji(e, this, this.context)) : [];
|
|
7362
8095
|
for (let e of t) r?.[e.name] || e.dispose();
|
|
7363
8096
|
return t = i, i;
|
|
7364
8097
|
}, { equal: d });
|
|
@@ -7368,10 +8101,10 @@ var Di = class extends Ti {
|
|
|
7368
8101
|
return u([this.context.schemaOverrides$, this.schema$], ([t, n]) => {
|
|
7369
8102
|
let r = [];
|
|
7370
8103
|
if (t) {
|
|
7371
|
-
let i =
|
|
8104
|
+
let i = B(B(n)?.properties);
|
|
7372
8105
|
for (let n of t) if (this.path.matchChild(n.path)) {
|
|
7373
8106
|
let t = n.path.last();
|
|
7374
|
-
|
|
8107
|
+
v(t) && !i?.[t] && r.push(e?.find((e) => e.name === t) ?? new Ji(t, this, this.context, "override"));
|
|
7375
8108
|
}
|
|
7376
8109
|
}
|
|
7377
8110
|
if (e) for (let t of e) r.some((e) => e.name === t.name) || t.dispose();
|
|
@@ -7385,33 +8118,33 @@ var Di = class extends Ti {
|
|
|
7385
8118
|
this.schema$,
|
|
7386
8119
|
this.context.schemaOverrides$
|
|
7387
8120
|
], ([e, n, r]) => {
|
|
7388
|
-
let i =
|
|
8121
|
+
let i = B(n), a = B(i?.properties), o = /* @__PURE__ */ new Set();
|
|
7389
8122
|
for (let e of r ?? []) {
|
|
7390
8123
|
if (!this.path.matchChild(e.path)) continue;
|
|
7391
8124
|
let t = e.path.last();
|
|
7392
|
-
|
|
8125
|
+
v(t) && o.add(t);
|
|
7393
8126
|
}
|
|
7394
|
-
let s = i?.additionalProperties === !1 ? void 0 :
|
|
8127
|
+
let s = i?.additionalProperties === !1 ? void 0 : B(e), c = s == null ? [] : Object.keys(s).filter((e) => a?.[e] == null && !o.has(e)).map((e) => t.find((t) => t.name === e) ?? new Ji(e, this, this.context, "untyped"));
|
|
7395
8128
|
for (let e of t) c.some((t) => t.name === e.name) || e.dispose();
|
|
7396
8129
|
return t = c, c;
|
|
7397
8130
|
}, { equal: d });
|
|
7398
8131
|
}
|
|
7399
|
-
},
|
|
8132
|
+
}, Ji = class {
|
|
7400
8133
|
constructor(e, t, n, r = "fixed") {
|
|
7401
|
-
this.dispose =
|
|
8134
|
+
this.dispose = P(), this.name = e, this.context = n, this.path = t.path.append(e), t.value$ && (this.value$ = this.dispose.add(l(a(t.value$, (t) => B(t)?.[e]), (n) => t.setField(e, n)))), this.schema$ = this.dispose.add(l(a(t.schema$, (t) => {
|
|
7402
8135
|
let n = t;
|
|
7403
8136
|
return r === "untyped" ? n?.additionalProperties === !0 ? void 0 : n?.additionalProperties : n?.properties?.[e];
|
|
7404
8137
|
}), (n) => {
|
|
7405
8138
|
if (r === "untyped") return;
|
|
7406
|
-
let i =
|
|
8139
|
+
let i = B(t.schema$.value);
|
|
7407
8140
|
t.schema$.set({
|
|
7408
8141
|
...i,
|
|
7409
8142
|
properties: {
|
|
7410
|
-
...
|
|
8143
|
+
...B(i?.properties),
|
|
7411
8144
|
[e]: n
|
|
7412
8145
|
}
|
|
7413
8146
|
});
|
|
7414
|
-
})), this.overrideSchema$ = this.dispose.add(n.deriveSchemaOverrideItem$(this.path)), this.widget$ = this.dispose.add(
|
|
8147
|
+
})), this.overrideSchema$ = this.dispose.add(n.deriveSchemaOverrideItem$(this.path)), this.widget$ = this.dispose.add(Yi(this.path, this.schema$, n, this.value$, this.overrideSchema$));
|
|
7415
8148
|
}
|
|
7416
8149
|
setSchema(e, t) {
|
|
7417
8150
|
if (e === "fixed") this.schema$.set(t);
|
|
@@ -7423,15 +8156,15 @@ var Di = class extends Ti {
|
|
|
7423
8156
|
schema: t
|
|
7424
8157
|
});
|
|
7425
8158
|
}
|
|
7426
|
-
|
|
8159
|
+
B(t)?.type === "null" && this.value$?.set(null);
|
|
7427
8160
|
}
|
|
7428
|
-
},
|
|
7429
|
-
let o =
|
|
7430
|
-
let n =
|
|
7431
|
-
return n === "any"
|
|
8161
|
+
}, Yi = (e, t, n, r, i) => {
|
|
8162
|
+
let o = N(), s = u([t, i], ([e, t]) => {
|
|
8163
|
+
let n = J(e), r = J(t?.schema);
|
|
8164
|
+
return n === "any" ? r : n;
|
|
7432
8165
|
}), c = a(s, (a) => {
|
|
7433
8166
|
let s;
|
|
7434
|
-
return s = a === "anyOf" ? new
|
|
8167
|
+
return s = a === "anyOf" ? new Ui(e, t, n, r, i) : a === "object" ? new qi(e, t, n, r, i) : a === "array" ? new Gi(e, t, n, r, i) : new Vi(e, t, n, r, i), o.set(s);
|
|
7435
8168
|
}), l = c.dispose;
|
|
7436
8169
|
return c.dispose = () => {
|
|
7437
8170
|
l.call(c), s.dispose(), o.dispose();
|
|
@@ -7441,20 +8174,20 @@ var Di = class extends Ti {
|
|
|
7441
8174
|
return t instanceof e;
|
|
7442
8175
|
}
|
|
7443
8176
|
constructor(e, t, n, r, i, o, d, f, p, m) {
|
|
7444
|
-
if (this.dispose =
|
|
8177
|
+
if (this.dispose = P(), this.name = e, this.context = p, this.path = En.get(), this.value$ = m, this.schema$ = p.schema$, this.restrict$ = p.restrict$, this.restrict$ && this.dispose.add(this.restrict$), this.schemaKind$ = i, this.description$ = t, this.displayDescription$ = n, this.reference$ = o, this.nullable$ = d, this.showSettings$ = f, this.restrict$) {
|
|
7445
8178
|
let e = this.schema$;
|
|
7446
8179
|
this.schema$ = this.dispose.add(l(u([e, this.restrict$], ([e, t]) => t ? t.json_schema : e), (t) => this.restrict$?.value || e.set(t)));
|
|
7447
8180
|
let t = this.nullable$;
|
|
7448
|
-
this.nullable$ = this.dispose.add(l(u([t, this.restrict$], ([e, t]) => t ?
|
|
8181
|
+
this.nullable$ = this.dispose.add(l(u([t, this.restrict$], ([e, t]) => t ? it(t.nullable) : e), (e) => this.restrict$?.value || t.set(e)));
|
|
7449
8182
|
let n = this.schemaKind$;
|
|
7450
8183
|
this.schemaKind$ = this.dispose.add(l(u([n, this.restrict$], ([e, t]) => t ? t.kind : e), (e) => this.restrict$?.value || n.set(e)));
|
|
7451
8184
|
}
|
|
7452
|
-
if (this.error$ = this.dispose.add(s()), this.kind$ = this.dispose.add(a(this.schema$,
|
|
8185
|
+
if (this.error$ = this.dispose.add(s()), this.kind$ = this.dispose.add(a(this.schema$, Bi)), this.lang$ = r, this.overrideSchema$ = this.dispose.add(this.context.deriveSchemaOverrideItem$(this.path)), this.widget$ = this.dispose.add(Yi(this.path, this.schema$, p, this.value$, this.overrideSchema$)), this.dispose.add(this.context.onRequestOpenSchemaEditor(() => this.showSettings$.set(!this.showSettings$.value))), this.value$) {
|
|
7453
8186
|
let e;
|
|
7454
8187
|
this.dispose.add(this.schema$.subscribe((t) => {
|
|
7455
8188
|
e != null && cancelIdleCallback(e), e = requestIdleCallback(() => {
|
|
7456
8189
|
e = void 0;
|
|
7457
|
-
let [n, r] =
|
|
8190
|
+
let [n, r] = Si(t);
|
|
7458
8191
|
this.error$.set(r && {
|
|
7459
8192
|
type: "validationError",
|
|
7460
8193
|
message: r + ""
|
|
@@ -7462,18 +8195,18 @@ var Di = class extends Ti {
|
|
|
7462
8195
|
});
|
|
7463
8196
|
})), this.dispose.add(() => {
|
|
7464
8197
|
e != null && cancelIdleCallback(e);
|
|
7465
|
-
}), this.dispose.add(this.value$.subscribe(() => this.validate(!0))), this.dispose.add(this.nullable$.subscribe(() => this.validate(!1))), this.dispose.add(c((e) => !!(
|
|
8198
|
+
}), this.dispose.add(this.value$.subscribe(() => this.validate(!0))), this.dispose.add(this.nullable$.subscribe(() => this.validate(!1))), this.dispose.add(c((e) => !!(nn(J(e(this.schema$))) && nn(J(e(this.overrideSchema$)?.schema)) && on(e(this.value$)) === "array")).subscribe((e) => {
|
|
7466
8199
|
e && this.overrideSchema$.set({
|
|
7467
8200
|
...this.overrideSchema$.value,
|
|
7468
8201
|
path: this.path,
|
|
7469
|
-
schema:
|
|
8202
|
+
schema: Qt("array")
|
|
7470
8203
|
});
|
|
7471
8204
|
}));
|
|
7472
8205
|
}
|
|
7473
8206
|
}
|
|
7474
8207
|
get schemaRowStore() {
|
|
7475
8208
|
if (this.schemaRowStoreCache) return this.schemaRowStoreCache;
|
|
7476
|
-
let e = new
|
|
8209
|
+
let e = new Li(this.context, this.schema$, s(cn(this.schema$.value) <= 3 ? { "[]": !0 } : void 0), this.context.createSchemaEditor), t = new Ri(this.name, this.description$, this.displayDescription$, this.nullable$, this.schemaKind$, e);
|
|
7477
8210
|
return this.schemaRowStoreCache = this.dispose.add(t);
|
|
7478
8211
|
}
|
|
7479
8212
|
validate(e) {
|
|
@@ -7487,28 +8220,28 @@ var Di = class extends Ti {
|
|
|
7487
8220
|
this.error$.set(void 0);
|
|
7488
8221
|
return;
|
|
7489
8222
|
}
|
|
7490
|
-
let t =
|
|
8223
|
+
let t = J(this.schema$.value), n = an(t), r = on(e);
|
|
7491
8224
|
if (n ? n !== r : e === void 0) {
|
|
7492
8225
|
this.error$.set({ type: "typeError" });
|
|
7493
8226
|
return;
|
|
7494
8227
|
}
|
|
7495
|
-
if (
|
|
8228
|
+
if (t === "binary" && !this.reference$.value) {
|
|
7496
8229
|
this.error$.set({
|
|
7497
8230
|
type: "validationError",
|
|
7498
8231
|
message: "$connectionRequired"
|
|
7499
8232
|
});
|
|
7500
8233
|
return;
|
|
7501
8234
|
}
|
|
7502
|
-
let i =
|
|
8235
|
+
let i = Ci(this.validateFn, this.value$.value, this.lang$.value);
|
|
7503
8236
|
i && i.length > 0 ? this.error$.set({
|
|
7504
8237
|
type: "validationError",
|
|
7505
|
-
message:
|
|
8238
|
+
message: xi.errorsText(i)
|
|
7506
8239
|
}) : this.error$.set(void 0);
|
|
7507
8240
|
}
|
|
7508
8241
|
}
|
|
7509
|
-
},
|
|
8242
|
+
}, Xi = class {
|
|
7510
8243
|
constructor(e, t, n, r, i, o, s) {
|
|
7511
|
-
this.schema$ = t, this.schemaOverrides$ = n, this.defaultValue$ = r, this.collapsed$ = i, this.height$ = o, this.createSchemaEditor = s, this.onRequestOpenSchemaEditor = /*#__PURE__*/
|
|
8244
|
+
this.schema$ = t, this.schemaOverrides$ = n, this.defaultValue$ = r, this.collapsed$ = i, this.height$ = o, this.createSchemaEditor = s, this.onRequestOpenSchemaEditor = /*#__PURE__*/ xe(), this.role = e.role, this.inout = e.inout, this.handlePosition = e.handlePosition, this.enableAny = e.enableAny ?? !0, this.additional = e.additional ?? !1, this.enableSchemaDesc = this.additional && this.inout === "out", this.userLocales = e.userLocales, this.restrict$ = e.restrict && a(e.restrict, (e) => B(e));
|
|
7512
8245
|
}
|
|
7513
8246
|
get canEditSchema() {
|
|
7514
8247
|
return this.role === "author";
|
|
@@ -7520,7 +8253,7 @@ var Di = class extends Ti {
|
|
|
7520
8253
|
return !0;
|
|
7521
8254
|
}
|
|
7522
8255
|
requestOpenSchemaEditor() {
|
|
7523
|
-
|
|
8256
|
+
Se(this.onRequestOpenSchemaEditor);
|
|
7524
8257
|
}
|
|
7525
8258
|
coalesceSchemaOverrideItems(e) {
|
|
7526
8259
|
let t = this.schemaOverrides$.value;
|
|
@@ -7534,7 +8267,7 @@ var Di = class extends Ti {
|
|
|
7534
8267
|
if (t) {
|
|
7535
8268
|
let n = {};
|
|
7536
8269
|
for (let r in t) {
|
|
7537
|
-
let i =
|
|
8270
|
+
let i = En.fromKey(r);
|
|
7538
8271
|
i.equals(e) || i.isInside(e) || (n[r] = t[r]);
|
|
7539
8272
|
}
|
|
7540
8273
|
Object.keys(n).length < Object.keys(t).length && this.collapsed$.set(n);
|
|
@@ -7550,7 +8283,7 @@ var Di = class extends Ti {
|
|
|
7550
8283
|
return;
|
|
7551
8284
|
}
|
|
7552
8285
|
let n = this.schemaOverrides$.value, r = -1;
|
|
7553
|
-
if (
|
|
8286
|
+
if (Ae(t)) {
|
|
7554
8287
|
let i = 0;
|
|
7555
8288
|
for (let a = 0; a < n.length; a++) if (n[a].path.length === e.path.length && (i++, i >= t)) {
|
|
7556
8289
|
r = t === 0 ? a : a + 1;
|
|
@@ -7620,38 +8353,38 @@ var Di = class extends Ti {
|
|
|
7620
8353
|
});
|
|
7621
8354
|
}
|
|
7622
8355
|
deriveCollapsed$(e) {
|
|
7623
|
-
return l(a(this.collapsed$, (t) => t?.[e.key] ?? !1),
|
|
8356
|
+
return l(a(this.collapsed$, (t) => t?.[e.key] ?? !1), ot(this.collapsed$, e.key));
|
|
7624
8357
|
}
|
|
7625
8358
|
deriveHeight$(e) {
|
|
7626
|
-
return l(a(this.height$, (t) => t?.[e.key]),
|
|
8359
|
+
return l(a(this.height$, (t) => t?.[e.key]), ot(this.height$, e.key));
|
|
7627
8360
|
}
|
|
7628
8361
|
};
|
|
7629
8362
|
//#endregion
|
|
7630
8363
|
//#region src/designer/browser/stores/node/constants.ts
|
|
7631
|
-
function
|
|
8364
|
+
function Zi(e, t) {
|
|
7632
8365
|
return e.handle == null ? t.handle == null && e.group === t.group : e.handle === t.handle;
|
|
7633
8366
|
}
|
|
7634
|
-
function
|
|
8367
|
+
function Qi(e) {
|
|
7635
8368
|
return e.handle != null;
|
|
7636
8369
|
}
|
|
7637
|
-
function
|
|
8370
|
+
function $i(e) {
|
|
7638
8371
|
return e.handle == null;
|
|
7639
8372
|
}
|
|
7640
|
-
var
|
|
8373
|
+
var ea = /* @__PURE__ */ function(e) {
|
|
7641
8374
|
return e.ErrorNode = "error_node", e.InputNode = "input_node", e.OutputNode = "output_node", e.TaskNode = "task_node", e.SubflowNode = "subflow_node", e.ValueNode = "value_node", e.ConditionNode = "condition_node", e.CommentNode = "comment_node", e.TriggerNode = "trigger_node", e;
|
|
7642
|
-
}({}),
|
|
8375
|
+
}({}), ta = (e) => e == "task_node" || e == "value_node" || e == "subflow_node" || e == "condition_node" || e == "trigger_node" || e == "error_node", na = (e) => e == "input_node" || e == "output_node", ra = /* @__PURE__ */ function(e) {
|
|
7643
8376
|
return e.Idle = "idle", e.Waiting = "waiting", e.Running = "running", e.Success = "success", e.Error = "error", e;
|
|
7644
|
-
}({}),
|
|
8377
|
+
}({}), ia = "oo-designer-fitting-view", aa = "input", oa = "output";
|
|
7645
8378
|
//#endregion
|
|
7646
8379
|
//#region src/designer/browser/stores/node/nodeSection/cloneLocales.ts
|
|
7647
|
-
function
|
|
8380
|
+
function sa(e, t, n) {
|
|
7648
8381
|
if (!e) return e;
|
|
7649
|
-
let r =
|
|
8382
|
+
let r = pt(e);
|
|
7650
8383
|
if (!r || t && n && t === n) return e;
|
|
7651
8384
|
if (!t || !n) return;
|
|
7652
8385
|
let i = t.en.value, a = t["zh-CN"].value;
|
|
7653
8386
|
if (!i[r] && !a[r]) return;
|
|
7654
|
-
let o =
|
|
8387
|
+
let o = _t(_t(r, n.en.value), n["zh-CN"].value);
|
|
7655
8388
|
if (i[r]) {
|
|
7656
8389
|
let e = n.en;
|
|
7657
8390
|
e.set({
|
|
@@ -7670,60 +8403,60 @@ function Gi(e, t, n) {
|
|
|
7670
8403
|
}
|
|
7671
8404
|
//#endregion
|
|
7672
8405
|
//#region src/designer/browser/stores/node/nodeSection/constants.ts
|
|
7673
|
-
var
|
|
7674
|
-
|
|
7675
|
-
|
|
7676
|
-
|
|
7677
|
-
|
|
7678
|
-
],
|
|
7679
|
-
|
|
7680
|
-
|
|
7681
|
-
|
|
7682
|
-
|
|
7683
|
-
],
|
|
8406
|
+
var ca = "inputs", la = "outputs", ua = "value", da = "preview", fa = "scriptlet", pa = "subflowInput", ma = "subflowOutput", ha = "conditions", ga = "trigger", _a = [pa, ma], va = [ca, ma], ya = [
|
|
8407
|
+
la,
|
|
8408
|
+
ua,
|
|
8409
|
+
pa,
|
|
8410
|
+
ha
|
|
8411
|
+
], ba = [
|
|
8412
|
+
la,
|
|
8413
|
+
ua,
|
|
8414
|
+
pa,
|
|
8415
|
+
ha
|
|
8416
|
+
], xa = [ca, ma];
|
|
7684
8417
|
//#endregion
|
|
7685
8418
|
//#region src/designer/browser/stores/node/nodeSection/parse.ts
|
|
7686
|
-
function
|
|
7687
|
-
if (
|
|
7688
|
-
for (let t of Object.values(e)) if (
|
|
7689
|
-
if (!
|
|
7690
|
-
for (let e of Object.values(t)) if (
|
|
8419
|
+
function Sa(e) {
|
|
8420
|
+
if (x(e)) {
|
|
8421
|
+
for (let t of Object.values(e)) if (h(t)) {
|
|
8422
|
+
if (!x(t)) return;
|
|
8423
|
+
for (let e of Object.values(t)) if (h(e) && !_(e)) return;
|
|
7691
8424
|
}
|
|
7692
8425
|
return e;
|
|
7693
8426
|
}
|
|
7694
8427
|
}
|
|
7695
|
-
function
|
|
7696
|
-
if (
|
|
7697
|
-
for (let t of Object.values(e)) if (
|
|
7698
|
-
if (!
|
|
7699
|
-
for (let e of Object.values(t)) if (
|
|
8428
|
+
function Ca(e) {
|
|
8429
|
+
if (x(e)) {
|
|
8430
|
+
for (let t of Object.values(e)) if (h(t)) {
|
|
8431
|
+
if (!x(t)) return;
|
|
8432
|
+
for (let e of Object.values(t)) if (h(e) && typeof e != "number") return;
|
|
7700
8433
|
}
|
|
7701
8434
|
return e;
|
|
7702
8435
|
}
|
|
7703
8436
|
}
|
|
7704
|
-
function
|
|
8437
|
+
function wa(e) {
|
|
7705
8438
|
return e ? !!(e.from_flow && e.from_flow.length > 0 || e.from_node && e.from_node.length > 0) : !1;
|
|
7706
8439
|
}
|
|
7707
8440
|
//#endregion
|
|
7708
8441
|
//#region src/designer/browser/stores/node/nodeSection/inputSection.store.ts
|
|
7709
|
-
var
|
|
8442
|
+
var Ta = class {
|
|
7710
8443
|
static {
|
|
7711
|
-
this.TYPE =
|
|
8444
|
+
this.TYPE = ca;
|
|
7712
8445
|
}
|
|
7713
8446
|
static is(e) {
|
|
7714
|
-
return e.type ===
|
|
8447
|
+
return e.type === ca;
|
|
7715
8448
|
}
|
|
7716
8449
|
constructor(e) {
|
|
7717
|
-
this.type =
|
|
7718
|
-
let t = this.dispose.add(s(
|
|
8450
|
+
this.type = ca, this.dispose = P(), this.onDidHandleIndexChange = this.dispose.add(xe()), this.onDidHandleRename = this.dispose.add(xe()), this.onDidHandleDelete = this.dispose.add(xe()), this.role = e.role, this.userLocales = e.userLocales;
|
|
8451
|
+
let t = this.dispose.add(s(Sa(e.initialUIState?.collapsed))), n = this.dispose.add(s(Ca(e.initialUIState?.height))), r = this.dispose.add(s(Qe(e.initialUIState?.groupCollapsed)));
|
|
7719
8452
|
this.uiState$ = this.dispose.add(u([
|
|
7720
8453
|
t,
|
|
7721
8454
|
n,
|
|
7722
8455
|
r
|
|
7723
|
-
], ([e, t, n]) =>
|
|
7724
|
-
collapsed:
|
|
7725
|
-
height:
|
|
7726
|
-
groupCollapsed:
|
|
8456
|
+
], ([e, t, n]) => Je({
|
|
8457
|
+
collapsed: Je(e),
|
|
8458
|
+
height: Je(t),
|
|
8459
|
+
groupCollapsed: Qe(n)
|
|
7727
8460
|
}))), this.$$ = {
|
|
7728
8461
|
collapsed: t,
|
|
7729
8462
|
height: n,
|
|
@@ -7733,7 +8466,7 @@ var la = class {
|
|
|
7733
8466
|
additionalInputDefs: e.additionalInputDefs && this.dispose.add(e.additionalInputDefs.ref(!0)),
|
|
7734
8467
|
showSettings: this.dispose.add(e.showSettings.ref(!0))
|
|
7735
8468
|
};
|
|
7736
|
-
let i = this.dispose.add(this.deriveConnectedHandles$(this.$$.handleInputsFrom)), a = this.dispose.add(this.deriveHandles$(t, n, e, i)), l = this.dispose.add(c((e) => e(a).filter((t) => !$.is(t) ||
|
|
8469
|
+
let i = this.dispose.add(this.deriveConnectedHandles$(this.$$.handleInputsFrom)), a = this.dispose.add(this.deriveHandles$(t, n, e, i)), l = this.dispose.add(c((e) => e(a).filter((t) => !$.is(t) || hn(e(t.schema$)) == null), { equal: d })), f = this.dispose.add(c((e) => e(a).filter((t) => $.is(t) && hn(e(t.schema$)) != null), { equal: d }));
|
|
7737
8470
|
this.$ = {
|
|
7738
8471
|
collapsed: t,
|
|
7739
8472
|
height: n,
|
|
@@ -7752,19 +8485,19 @@ var la = class {
|
|
|
7752
8485
|
}
|
|
7753
8486
|
setupHandleIndexChangeEvent() {
|
|
7754
8487
|
let e = this.dispose.add(c((e) => {
|
|
7755
|
-
let t = e(this.$.inputHandleDefs)?.map((e) =>
|
|
8488
|
+
let t = e(this.$.inputHandleDefs)?.map((e) => $i(e) ? `g:${e.group}` : `h:${e.handle}`), n = e(this.$.additionalInputDefs)?.map((e) => `h:${e.handle}`);
|
|
7756
8489
|
return (t && n ? [...t, ...n] : t || n) ?? [];
|
|
7757
8490
|
}, { equal: d }));
|
|
7758
|
-
this.dispose.add(e.reaction(
|
|
8491
|
+
this.dispose.add(e.reaction(Se.bind(null, this.onDidHandleIndexChange)));
|
|
7759
8492
|
}
|
|
7760
8493
|
findGroupForWriting(e) {
|
|
7761
8494
|
let t = this.getInputHandleDefs$(), n = t?.value;
|
|
7762
|
-
return n ? [n.findIndex((t) =>
|
|
8495
|
+
return n ? [n.findIndex((t) => $i(t) && t.group === e), t] : [-1, t];
|
|
7763
8496
|
}
|
|
7764
8497
|
addGroup(e) {
|
|
7765
8498
|
let [t, n] = this.findHandleForWriting(e), r = n?.value;
|
|
7766
8499
|
if (r && t >= 0) {
|
|
7767
|
-
let e = r.slice(), i = e.splice(t, 1), a =
|
|
8500
|
+
let e = r.slice(), i = e.splice(t, 1), a = U("Group", this.$.allGroupNames.value).trim();
|
|
7768
8501
|
e.splice(999, 0, { group: a }, ...i), n.set(e);
|
|
7769
8502
|
}
|
|
7770
8503
|
}
|
|
@@ -7827,20 +8560,20 @@ var la = class {
|
|
|
7827
8560
|
return this.getInputHandleDefs$() != null;
|
|
7828
8561
|
}
|
|
7829
8562
|
getInputHandleDefs$() {
|
|
7830
|
-
return
|
|
8563
|
+
return Ze(this.role === "author") && this.$$.inputHandleDefs;
|
|
7831
8564
|
}
|
|
7832
8565
|
getAdditionalInputDefs$() {
|
|
7833
8566
|
return this.$.additionalInputs?.value ? this.$$.additionalInputDefs : void 0;
|
|
7834
8567
|
}
|
|
7835
8568
|
findHandleForWriting(e) {
|
|
7836
8569
|
let t = typeof e == "string" ? { handle: e } : e, n, r = this.getInputHandleDefs$();
|
|
7837
|
-
if (n = r?.value?.findIndex((e) =>
|
|
8570
|
+
if (n = r?.value?.findIndex((e) => Zi(e, t)), n != null && n >= 0) return [
|
|
7838
8571
|
n,
|
|
7839
8572
|
r,
|
|
7840
8573
|
!1
|
|
7841
8574
|
];
|
|
7842
8575
|
let i = this.getAdditionalInputDefs$();
|
|
7843
|
-
return n = i?.value?.findIndex((e) =>
|
|
8576
|
+
return n = i?.value?.findIndex((e) => Zi(e, t)), n != null && n >= 0 ? [
|
|
7844
8577
|
n,
|
|
7845
8578
|
i,
|
|
7846
8579
|
!0
|
|
@@ -7858,10 +8591,10 @@ var la = class {
|
|
|
7858
8591
|
let t = e ? this.getAdditionalInputDefs$() : this.getInputHandleDefs$() || this.getAdditionalInputDefs$();
|
|
7859
8592
|
if (t) {
|
|
7860
8593
|
let e = this.$.allHandleNames.value, n = t.value, r = {
|
|
7861
|
-
handle:
|
|
7862
|
-
json_schema:
|
|
8594
|
+
handle: U("input", e),
|
|
8595
|
+
json_schema: q(n)
|
|
7863
8596
|
};
|
|
7864
|
-
t.set(n ? n.toSpliced(
|
|
8597
|
+
t.set(n ? n.toSpliced(Ie(n, $i), 0, r) : [r]);
|
|
7865
8598
|
}
|
|
7866
8599
|
}
|
|
7867
8600
|
renameHandle(e, t) {
|
|
@@ -7883,7 +8616,7 @@ var la = class {
|
|
|
7883
8616
|
}), r.set(i.toSpliced(n, 1, {
|
|
7884
8617
|
...i[n],
|
|
7885
8618
|
handle: t
|
|
7886
|
-
})),
|
|
8619
|
+
})), Se(this.onDidHandleRename, [e, t]);
|
|
7887
8620
|
}
|
|
7888
8621
|
return !0;
|
|
7889
8622
|
}
|
|
@@ -7895,15 +8628,15 @@ var la = class {
|
|
|
7895
8628
|
let t = i.findIndex((t) => t.handle === e);
|
|
7896
8629
|
t >= 0 && this.$$.handleInputsFrom.set(i.toSpliced(t, 1));
|
|
7897
8630
|
}
|
|
7898
|
-
this.$$.showSettings.set(void 0), n.set(r.toSpliced(t, 1)),
|
|
8631
|
+
this.$$.showSettings.set(void 0), n.set(r.toSpliced(t, 1)), Se(this.onDidHandleDelete, e);
|
|
7899
8632
|
}
|
|
7900
8633
|
}
|
|
7901
8634
|
moveHandle(e, t) {
|
|
7902
8635
|
let [n, r] = this.findHandleForWriting(e), i = r?.value;
|
|
7903
8636
|
if (i && n >= 0) {
|
|
7904
8637
|
let e = i[n];
|
|
7905
|
-
if (
|
|
7906
|
-
let n = i.filter((e) => !
|
|
8638
|
+
if (Qi(e) && hn(e.json_schema) != null) {
|
|
8639
|
+
let n = i.filter((e) => !Qi(e) || hn(e.json_schema) == null), a = i.filter((e) => Qi(e) && hn(e.json_schema) != null), o = a.findIndex((t) => t.handle == e.handle);
|
|
7907
8640
|
if (o >= 0) {
|
|
7908
8641
|
let e = a.splice(o, 1);
|
|
7909
8642
|
a.splice(t, 0, ...e), r.set(n.concat(a));
|
|
@@ -7921,7 +8654,7 @@ var la = class {
|
|
|
7921
8654
|
if (r >= 0) {
|
|
7922
8655
|
let e = {
|
|
7923
8656
|
...n[r],
|
|
7924
|
-
description:
|
|
8657
|
+
description: mt(t.description),
|
|
7925
8658
|
json_schema: t.json_schema,
|
|
7926
8659
|
kind: t.kind,
|
|
7927
8660
|
nullable: t.nullable
|
|
@@ -7937,14 +8670,14 @@ var la = class {
|
|
|
7937
8670
|
let r = this.getInputHandleDefs$() || this.getAdditionalInputDefs$();
|
|
7938
8671
|
if (r) {
|
|
7939
8672
|
let i = this.$.allHandleNames.value, a = {
|
|
7940
|
-
handle: i.includes(t.name) ?
|
|
8673
|
+
handle: i.includes(t.name) ? U("input", i) : t.name,
|
|
7941
8674
|
json_schema: t.schema$?.value,
|
|
7942
8675
|
kind: t.schemaKind$?.value,
|
|
7943
8676
|
nullable: t.nullable$?.value,
|
|
7944
|
-
description:
|
|
8677
|
+
description: sa(t.description$.value, t.context.userLocales, this.userLocales),
|
|
7945
8678
|
value: t.value$?.value
|
|
7946
8679
|
};
|
|
7947
|
-
if (
|
|
8680
|
+
if (h(a.value) && this.$$.handleInputsFrom) {
|
|
7948
8681
|
let e = this.$$.handleInputsFrom.value;
|
|
7949
8682
|
e ? this.$$.handleInputsFrom.set([...e, {
|
|
7950
8683
|
handle: a.handle,
|
|
@@ -7956,84 +8689,84 @@ var la = class {
|
|
|
7956
8689
|
}
|
|
7957
8690
|
let o = r.value;
|
|
7958
8691
|
if (o) {
|
|
7959
|
-
let t = e ? o.findIndex((t) =>
|
|
8692
|
+
let t = e ? o.findIndex((t) => Zi(t, e)) : -1;
|
|
7960
8693
|
t >= 0 ? r.set(o.toSpliced(t + 1, 0, a)) : r.set(n ? [a, ...o] : [...o, a]);
|
|
7961
8694
|
} else r.set([a]);
|
|
7962
8695
|
return a.handle;
|
|
7963
8696
|
}
|
|
7964
8697
|
}
|
|
7965
8698
|
deriveHandleIndices$(e) {
|
|
7966
|
-
if (e) return a(e, (e) => e &&
|
|
8699
|
+
if (e) return a(e, (e) => e && Ke(e, (e) => $i(e) ? { group: e.group } : { handle: e.handle }), L);
|
|
7967
8700
|
}
|
|
7968
8701
|
deriveHandles$(e, t, n, r) {
|
|
7969
|
-
let i = this.deriveHandleIndices$(n.inputHandleDefs), o, s = c((
|
|
7970
|
-
let
|
|
7971
|
-
if (!
|
|
7972
|
-
for (let i of
|
|
8702
|
+
let i = this.deriveHandleIndices$(n.inputHandleDefs), o = n.boundHandles, s, f = c((u) => {
|
|
8703
|
+
let d = [], f = u(i);
|
|
8704
|
+
if (!f?.length) return s?.forEach((e) => e.dispose()), s = void 0, d;
|
|
8705
|
+
for (let i of f) {
|
|
7973
8706
|
if (i.handle == null) {
|
|
7974
|
-
|
|
8707
|
+
d.push(i.group);
|
|
7975
8708
|
continue;
|
|
7976
8709
|
}
|
|
7977
|
-
let
|
|
7978
|
-
if (
|
|
7979
|
-
|
|
8710
|
+
let u = i.handle, f = s?.find((e) => e.name === u);
|
|
8711
|
+
if (f) {
|
|
8712
|
+
d.push(f);
|
|
7980
8713
|
continue;
|
|
7981
8714
|
}
|
|
7982
|
-
let { schema$:
|
|
8715
|
+
let { schema$: p, defaultValue$: m, description$: h, displayDescription$: g, kind$: _, nullable$: v, showSettings$: y, schemaOverrides$: b, value$: x } = this.deriveHandleRowVals$(n, n.inputHandleDefs, u, n.role), S = l(a(e, (e) => e?.[u], L), ot(e, u)), C = l(a(t, (e) => e?.[u], L), ot(t, u)), w = o ? c((e) => e(r).has(u) || e(o).has(u)) : a(r, (e) => e.has(u)), T = new Xi({
|
|
7983
8716
|
role: n.role,
|
|
7984
8717
|
inout: "in",
|
|
7985
8718
|
userLocales: n.userLocales
|
|
7986
|
-
},
|
|
7987
|
-
e ?
|
|
8719
|
+
}, p, b, m, S, C, n.createSchemaEditor), E = new $(u, h, g, n.lang, _, w, v, y, T, x), D = w.subscribe((e) => {
|
|
8720
|
+
e ? E.error$.set(void 0) : E.validate(!0);
|
|
7988
8721
|
});
|
|
7989
|
-
|
|
7990
|
-
|
|
7991
|
-
|
|
7992
|
-
|
|
7993
|
-
g,
|
|
7994
|
-
_,
|
|
8722
|
+
E.dispose.add([
|
|
8723
|
+
D,
|
|
8724
|
+
p,
|
|
8725
|
+
w,
|
|
7995
8726
|
v,
|
|
8727
|
+
y,
|
|
7996
8728
|
b,
|
|
7997
|
-
|
|
7998
|
-
|
|
7999
|
-
|
|
8000
|
-
|
|
8001
|
-
|
|
8002
|
-
|
|
8003
|
-
|
|
8004
|
-
|
|
8005
|
-
|
|
8006
|
-
|
|
8729
|
+
S,
|
|
8730
|
+
x
|
|
8731
|
+
]), d.push(E);
|
|
8732
|
+
}
|
|
8733
|
+
if (s) for (let e of s) d.some((t) => $.is(t) && t.name === e.name) || e.dispose();
|
|
8734
|
+
return s = d.filter($.is), d;
|
|
8735
|
+
}, { equal: d }), p = this.deriveHandleIndices$(n.additionalInputDefs), m, h = c((i) => {
|
|
8736
|
+
let s = [];
|
|
8737
|
+
if (!i(n.additionalInputs) || !n.additionalInputDefs) return s;
|
|
8738
|
+
let u = i(p) || [];
|
|
8739
|
+
for (let { handle: i } of u) {
|
|
8007
8740
|
if (i == null) continue;
|
|
8008
|
-
let
|
|
8009
|
-
if (
|
|
8010
|
-
|
|
8741
|
+
let u = m?.find((e) => e.name === i);
|
|
8742
|
+
if (u) {
|
|
8743
|
+
s.push(u);
|
|
8011
8744
|
continue;
|
|
8012
8745
|
}
|
|
8013
|
-
let
|
|
8014
|
-
role:
|
|
8746
|
+
let d = n.role === "user" ? "author" : n.role, { schema$: f, defaultValue$: p, description$: h, displayDescription$: g, kind$: _, nullable$: v, showSettings$: y, schemaOverrides$: b, value$: x } = this.deriveHandleRowVals$(n, n.additionalInputDefs, i, d), S = l(a(e, (e) => e?.[i], L), ot(e, i)), C = l(a(t, (e) => e?.[i], L), ot(t, i)), w = o ? c((e) => e(r).has(i) || e(o).has(i)) : a(r, (e) => e.has(i)), T = new Xi({
|
|
8747
|
+
role: d,
|
|
8015
8748
|
inout: "in",
|
|
8016
8749
|
additional: !0,
|
|
8017
8750
|
restrict: n.additionalInputs,
|
|
8018
8751
|
userLocales: n.userLocales
|
|
8019
|
-
},
|
|
8020
|
-
e ?
|
|
8752
|
+
}, f, b, p, S, C, n.createSchemaEditor), E = new $(i, h, g, n.lang, _, w, v, y, T, x), D = w.subscribe((e) => {
|
|
8753
|
+
e ? E.error$.set(void 0) : E.validate(!0);
|
|
8021
8754
|
});
|
|
8022
|
-
|
|
8023
|
-
|
|
8024
|
-
|
|
8025
|
-
|
|
8026
|
-
g,
|
|
8027
|
-
_,
|
|
8755
|
+
E.dispose.add([
|
|
8756
|
+
D,
|
|
8757
|
+
f,
|
|
8758
|
+
w,
|
|
8028
8759
|
v,
|
|
8760
|
+
y,
|
|
8029
8761
|
b,
|
|
8030
|
-
|
|
8031
|
-
|
|
8762
|
+
S,
|
|
8763
|
+
x
|
|
8764
|
+
]), s.push(E);
|
|
8032
8765
|
}
|
|
8033
|
-
if (
|
|
8034
|
-
return
|
|
8766
|
+
if (m) for (let e of m) s.some((t) => t.name === e.name) || e.dispose();
|
|
8767
|
+
return m = s, s;
|
|
8035
8768
|
}, { equal: d });
|
|
8036
|
-
return u([
|
|
8769
|
+
return u([f, h], ([e, t]) => e.concat(t));
|
|
8037
8770
|
}
|
|
8038
8771
|
deriveHandleRowVals$({ showSettings: e, handleInputsFrom: t, lang: n, userLocales: r }, i, u, d) {
|
|
8039
8772
|
let f = l(a(i, (e) => e?.find((e) => e.handle === u)), (e) => {
|
|
@@ -8044,14 +8777,14 @@ var la = class {
|
|
|
8044
8777
|
r[n >= 0 ? n : t.length] = e, i.set(r);
|
|
8045
8778
|
} else i.set([e]);
|
|
8046
8779
|
}
|
|
8047
|
-
}),
|
|
8048
|
-
let t = e(
|
|
8049
|
-
return i != null && r ?
|
|
8050
|
-
}), g = l(a(f, (e) => e?.json_schema,
|
|
8780
|
+
}), p = l(a(f, (e) => e?.description), W(f, "description")), m = c((e) => {
|
|
8781
|
+
let t = e(p), i = pt(t);
|
|
8782
|
+
return i != null && r ? bn(r, n, e, i, t) : t;
|
|
8783
|
+
}), g = l(a(f, (e) => e?.json_schema, L), W(f, "json_schema")), _ = l(a(f, (e) => it(e?.nullable)), W(f, "nullable")), v = l(a(f, (e) => e?.kind), W(f, "kind")), y = d === "user" ? a(f, (e) => e?.value) : s(), b = l(a(e, (e) => e?.scope === "input" && e.handle === u), (t) => e.set(t ? {
|
|
8051
8784
|
scope: "input",
|
|
8052
8785
|
handle: u
|
|
8053
8786
|
} : void 0)), x;
|
|
8054
|
-
x = t ? l(a(t, (e) => e?.find((e) => e.handle === u)?.schema_overrides?.map((e) => Object.assign({}, e, { path:
|
|
8787
|
+
x = t ? l(a(t, (e) => e?.find((e) => e.handle === u)?.schema_overrides?.map((e) => Object.assign({}, e, { path: En.get(e.path) })), L), (e) => {
|
|
8055
8788
|
let n = e?.map((e) => ({
|
|
8056
8789
|
...e,
|
|
8057
8790
|
path: e.path.toJSON()
|
|
@@ -8069,7 +8802,7 @@ var la = class {
|
|
|
8069
8802
|
}]);
|
|
8070
8803
|
}) : l(a(f, (e) => e?.schema_overrides?.map((e) => ({
|
|
8071
8804
|
...e,
|
|
8072
|
-
path:
|
|
8805
|
+
path: En.get(e.path)
|
|
8073
8806
|
}))), (e) => {
|
|
8074
8807
|
if (f.value) {
|
|
8075
8808
|
let t = e?.map((e) => ({
|
|
@@ -8083,7 +8816,7 @@ var la = class {
|
|
|
8083
8816
|
}
|
|
8084
8817
|
});
|
|
8085
8818
|
let S;
|
|
8086
|
-
return S = t ? l(a(t, (e) => e?.find((e) => e.handle === u)?.value,
|
|
8819
|
+
return S = t ? l(a(t, (e) => e?.find((e) => e.handle === u)?.value, L), (e) => {
|
|
8087
8820
|
if (!f.value) return;
|
|
8088
8821
|
let n = t.value;
|
|
8089
8822
|
if (n) {
|
|
@@ -8093,15 +8826,15 @@ var la = class {
|
|
|
8093
8826
|
handle: u,
|
|
8094
8827
|
value: e
|
|
8095
8828
|
}));
|
|
8096
|
-
} else
|
|
8829
|
+
} else h(e) && t.set([{
|
|
8097
8830
|
handle: u,
|
|
8098
8831
|
value: e
|
|
8099
8832
|
}]);
|
|
8100
|
-
}) : l(a(f, (e) => e?.value,
|
|
8833
|
+
}) : l(a(f, (e) => e?.value, L), W(f, "value")), {
|
|
8101
8834
|
schema$: g,
|
|
8102
8835
|
defaultValue$: y,
|
|
8103
|
-
description$:
|
|
8104
|
-
displayDescription$:
|
|
8836
|
+
description$: p,
|
|
8837
|
+
displayDescription$: m,
|
|
8105
8838
|
kind$: v,
|
|
8106
8839
|
nullable$: _,
|
|
8107
8840
|
showSettings$: b,
|
|
@@ -8111,15 +8844,15 @@ var la = class {
|
|
|
8111
8844
|
}
|
|
8112
8845
|
deriveAllHandleNames$(e) {
|
|
8113
8846
|
return c((t) => {
|
|
8114
|
-
let n = t(e.inputHandleDefs)?.filter(
|
|
8847
|
+
let n = t(e.inputHandleDefs)?.filter(Qi).map((e) => e.handle), r = t(e.additionalInputDefs)?.map((e) => e.handle);
|
|
8115
8848
|
return (n || []).concat(r || []);
|
|
8116
8849
|
}, { equal: d });
|
|
8117
8850
|
}
|
|
8118
8851
|
deriveAllGroupNames$(e) {
|
|
8119
|
-
return a(e.inputHandleDefs, (e) => e?.filter(
|
|
8852
|
+
return a(e.inputHandleDefs, (e) => e?.filter($i).map((e) => e.group) || [], { equal: d });
|
|
8120
8853
|
}
|
|
8121
8854
|
deriveConnectedHandles$(e) {
|
|
8122
|
-
return e ? a(e, (e) => !e || e.length === 0 ?
|
|
8855
|
+
return e ? a(e, (e) => !e || e.length === 0 ? Ea : e.reduce((e, t) => (wa(t) && e.add(t.handle), e), /* @__PURE__ */ new Set())) : s(Ea);
|
|
8123
8856
|
}
|
|
8124
8857
|
deriveIsEmpty$(e) {
|
|
8125
8858
|
return c((t) => {
|
|
@@ -8130,12 +8863,12 @@ var la = class {
|
|
|
8130
8863
|
return !t(e.inputHandleDefs)?.length && !r;
|
|
8131
8864
|
});
|
|
8132
8865
|
}
|
|
8133
|
-
},
|
|
8866
|
+
}, Ea = /*#__PURE__*/ new Set(), Da = class {
|
|
8134
8867
|
#e;
|
|
8135
8868
|
constructor(e, t) {
|
|
8136
8869
|
this.#e = s(void 0), this.inputValues$ = this.#e;
|
|
8137
8870
|
let n = s(void 0);
|
|
8138
|
-
this.section = new
|
|
8871
|
+
this.section = new Ta({
|
|
8139
8872
|
createSchemaEditor: () => void 0,
|
|
8140
8873
|
handleInputsFrom: this.#e,
|
|
8141
8874
|
inputHandleDefs: e,
|
|
@@ -8165,7 +8898,7 @@ var la = class {
|
|
|
8165
8898
|
return t;
|
|
8166
8899
|
}
|
|
8167
8900
|
replaceValues(e) {
|
|
8168
|
-
let t =
|
|
8901
|
+
let t = S(e);
|
|
8169
8902
|
if (t == null) return !1;
|
|
8170
8903
|
let n = new Set(this.section.$.allHandleNames.value), r = [];
|
|
8171
8904
|
for (let [e, i] of Object.entries(t)) {
|
|
@@ -8177,21 +8910,21 @@ var la = class {
|
|
|
8177
8910
|
}
|
|
8178
8911
|
return this.#e.set(r.length == 0 ? void 0 : r), !0;
|
|
8179
8912
|
}
|
|
8180
|
-
},
|
|
8181
|
-
FlowRunInputEditorStore: () =>
|
|
8182
|
-
flowRunInputEditorState: () =>
|
|
8183
|
-
}),
|
|
8913
|
+
}, Oa = /* @__PURE__ */ r({
|
|
8914
|
+
FlowRunInputEditorStore: () => Aa,
|
|
8915
|
+
flowRunInputEditorState: () => ja
|
|
8916
|
+
}), ka = /* @__PURE__ */ new WeakMap(), Aa = class {
|
|
8184
8917
|
constructor(e, t) {
|
|
8185
8918
|
let n = s(e.map((e) => ({
|
|
8186
8919
|
...e.description == null ? {} : { description: e.description },
|
|
8187
8920
|
handle: e.handle,
|
|
8188
8921
|
json_schema: e.jsonSchema,
|
|
8189
8922
|
nullable: e.nullable
|
|
8190
|
-
}))), r = new
|
|
8923
|
+
}))), r = new Da(n, t);
|
|
8191
8924
|
this.valid$ = c((t) => {
|
|
8192
8925
|
let n = new Set((t(r.inputValues$) ?? []).flatMap((e) => e.value === void 0 ? [] : [e.handle]));
|
|
8193
8926
|
return e.every((e) => n.has(e.handle)) && !t(r.section.hasError$);
|
|
8194
|
-
}),
|
|
8927
|
+
}), ka.set(this, {
|
|
8195
8928
|
definitions: e,
|
|
8196
8929
|
definitions$: n,
|
|
8197
8930
|
inputs: r,
|
|
@@ -8200,20 +8933,20 @@ var la = class {
|
|
|
8200
8933
|
});
|
|
8201
8934
|
}
|
|
8202
8935
|
dispose() {
|
|
8203
|
-
let e =
|
|
8936
|
+
let e = ja(this);
|
|
8204
8937
|
this.valid$.dispose(), e.inputs.dispose(), e.definitions$.dispose(), e.panelWidth$.dispose();
|
|
8205
8938
|
}
|
|
8206
8939
|
values() {
|
|
8207
|
-
return
|
|
8940
|
+
return ja(this).inputs.values();
|
|
8208
8941
|
}
|
|
8209
8942
|
replaceValues(e) {
|
|
8210
|
-
return
|
|
8943
|
+
return ja(this).inputs.replaceValues(e);
|
|
8211
8944
|
}
|
|
8212
8945
|
};
|
|
8213
|
-
function
|
|
8214
|
-
let t =
|
|
8946
|
+
function ja(e) {
|
|
8947
|
+
let t = ka.get(e);
|
|
8215
8948
|
if (t == null) throw Error("Flow Run input editor store is unavailable.");
|
|
8216
8949
|
return t;
|
|
8217
8950
|
}
|
|
8218
8951
|
//#endregion
|
|
8219
|
-
export {
|
|
8952
|
+
export { en as $, mt as $t, na as A, st as At, Oi as B, Ne as Bt, aa as C, v as Cn, He as Ct, $i as D, it as Dt, oa as E, $e as Et, Bi as F, gt as Ft, yn as G, Pe as Gt, Zr as H, rt as Ht, Ri as I, yt as It, gn as J, lt as Jt, bn as K, Re as Kt, Li as L, Fe as Lt, Xi as M, Ke as Mt, $ as N, V as Nt, Qi as O, Be as Ot, zi as P, _t as Pt, q as Q, tt as Qt, Ai as R, U as Rt, ia as S, x as Sn, Ie as St, ea as T, S as Tn, qe as Tt, En as U, ut as Ut, yi as V, Ve as Vt, vn as W, Ue as Wt, an as X, at as Xt, mn as Y, R as Yt, Qt as Z, Je as Zt, pa as _, P as _n, Ft as _t, Sa as a, dt as an, nn as at, ua as b, _ as bn, ze as bt, ca as c, W as cn, cn as ct, la as d, Ae as dn, qt as dt, H as en, Wt as et, da as f, ke as fn, zt as ft, fa as g, O as gn, Nt as gt, xa as h, Se as hn, Bt as ht, wa as i, pt as in, rn as it, Zi as j, L as jt, ta as k, We as kt, va as l, je as ln, J as lt, ya as m, xe as mn, jt as mt, Oa as n, Qe as nn, on as nt, Ca as o, Le as on, Ht as ot, _a as p, I as pn, At as pt, hn as q, ot as qt, Ta as r, Ze as rn, sn as rt, ha as s, ct as sn, Kt as st, ja as t, B as tn, Gt as tt, ba as u, Me as un, K as ut, ma as v, E as vn, Vt as vt, ra as w, C as wn, nt as wt, sa as x, h as xn, Ge as xt, ga as y, y as yn, Pt as yt, ki as z, et as zt };
|