@oomol-lab/open-flow 0.1.0-beta.1 → 0.1.0-beta.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/dist/browser/DesignerIcon-ckcKnxxJ.js +2267 -0
  2. package/dist/browser/createResourceDialog-DhIU-HYW.js +111 -0
  3. package/dist/browser/{dist-CPuF50D9.js → dist-BZ5PTFAs.js} +1 -1
  4. package/dist/browser/dist-Bmb2mZvW.js +795 -0
  5. package/dist/browser/{dist-DWADUsVB.js → dist-By46o5UV.js} +47 -47
  6. package/dist/browser/dist-CP0883sY.js +4 -0
  7. package/dist/browser/{dist-CJpzJrLM.js → dist-Ce71Szg7.js} +894 -895
  8. package/dist/browser/dist-DSe6KRsr.js +1224 -0
  9. package/dist/browser/{dist-DUzA0Ukh.js → dist-DY4qlXTK.js} +140 -141
  10. package/dist/browser/{dist-3Mj8q8Pr.js → dist-DmuE3M0R.js} +53 -54
  11. package/dist/browser/{dist-BN4ZCyOB.js → dist-DpDLsYtO.js} +14 -15
  12. package/dist/browser/dist-DxahK_I8.js +2688 -0
  13. package/dist/browser/{esm-DGQbgYoJ.js → esm-C64_h7HF.js} +58 -59
  14. package/dist/browser/flow-authoring-module.d.ts +2 -2
  15. package/dist/browser/flow-authoring-node.d.ts +17 -7
  16. package/dist/browser/flow-authoring.d.ts +1 -1
  17. package/dist/browser/flow-authoring.js +5329 -286
  18. package/dist/browser/flow-change-schema.d.ts +3 -0
  19. package/dist/browser/flow-change.d.ts +131 -14
  20. package/dist/browser/flow-change.js +5216 -114
  21. package/dist/browser/flow-notifications.d.ts +5 -0
  22. package/dist/browser/flowChanges-BINNGoug.js +12896 -0
  23. package/dist/browser/{flowRunInputEditorStore-BeyUSWpO.js → flowRunInputEditorStore-NPGePkvP.js} +775 -776
  24. package/dist/browser/flowWorkspace-Dp_b8KXF.js +158409 -0
  25. package/dist/browser/{getPseudoElementBounds-ESJExRFX.js → getPseudoElementBounds-Dfqo78k7.js} +2051 -2542
  26. package/dist/browser/{languages-DgJehE1g.js → languages-i3Xmpt6S.js} +6 -15
  27. package/dist/browser/licenses.md +82 -0
  28. package/dist/browser/{markdownContent-DdlIRN3_.js → markdownContent-BawLYUjh.js} +24 -24
  29. package/dist/browser/select-CbQHq-GM.js +6851 -0
  30. package/dist/browser/theme.css +34 -34
  31. package/dist/browser/{typeScriptSession-mPCiA9sV.js → typeScriptSession-BoV-FDl3.js} +68 -69
  32. package/dist/browser/waitNotificationInputs-fzyKN6mk.js +29 -0
  33. package/dist/browser/workbench-contract.d.ts +8 -2
  34. package/dist/browser/workbench.css +1 -1
  35. package/dist/browser/workbench.d.ts +3 -1
  36. package/dist/browser/workbench.js +1647 -1299
  37. package/dist/browser/workbenchSelect-BjbJjlNd.js +435 -0
  38. package/dist/common/control-api-conformance.d.ts +1 -0
  39. package/dist/common/control-api-conformance.js +309 -81
  40. package/dist/common/control-api-errors.d.ts +12 -0
  41. package/dist/common/control-api.d.ts +95 -23
  42. package/dist/common/control-api.js +567 -364
  43. package/dist/common/engine-contract.d.ts +1 -1
  44. package/dist/common/flow-encoding.js +33 -15
  45. package/dist/common/flow-graph.d.ts +6 -0
  46. package/dist/common/flow-modules.d.ts +20 -0
  47. package/dist/common/flow-notifications.d.ts +5 -0
  48. package/dist/common/flow-schema.d.ts +8 -0
  49. package/dist/common/flow-semantics.d.ts +7 -5
  50. package/dist/common/flow-semantics.js +8880 -1702
  51. package/dist/common/integration-trigger.d.ts +2 -0
  52. package/dist/common/provider-triggers.js +4 -1
  53. package/dist/common/run-events.d.ts +2 -2
  54. package/dist/common/run-events.js +10 -16
  55. package/dist/common/run-lifecycle.d.ts +17 -2
  56. package/dist/common/run-lifecycle.js +53 -2
  57. package/dist/common/runtime-contract.d.ts +10 -2
  58. package/dist/common/runtime-contract.js +143 -6
  59. package/dist/common/scheduler.d.ts +52 -13
  60. package/dist/common/scheduler.js +7315 -242
  61. package/dist/index.d.ts +6 -5
  62. package/package.json +1 -1
  63. package/dist/browser/createResourceDialog-DXQz0thK.js +0 -504
  64. package/dist/browser/diagnostics-BGoGFvHA.js +0 -9237
  65. package/dist/browser/dist-BMqL-qR5.js +0 -1894
  66. package/dist/browser/dist-BpopSHwP.js +0 -1543
  67. package/dist/browser/dist-CUSrALSX.js +0 -1620
  68. package/dist/browser/flowWorkspace-DwyxAOBH.js +0 -47615
  69. package/dist/browser/workbenchSelect-B2s1HV-Y.js +0 -1374
@@ -1,130 +1,131 @@
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";
4
- //#region ../../node_modules/.bun/@wopjs+cast@0.1.16/node_modules/@wopjs/cast/dist/index.mjs
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) {
3
+ import { a as p, n as m } from "./languages-i3Xmpt6S.js";
4
+ import { a as h, c as g, i as _, n as v, o as y, r as b, t as x } from "./dist-CP0883sY.js";
5
+ //#region ../../node_modules/.bun/@wopjs+disposable@0.1.24/node_modules/@wopjs/disposable/dist/index.mjs
6
+ var S = (e) => !!(e && e.constructor && e.call && e.apply), C = (e) => S(e) || S(e?.dispose);
7
+ function w(e) {
7
8
  try {
8
- e && (w(e.dispose) ? e.dispose() : w(e) && e());
9
+ e && (S(e.dispose) ? e.dispose() : S(e) && e());
9
10
  } catch (e) {
10
11
  console.error(e);
11
12
  }
12
13
  }
13
- var D = (e) => T(e) && w(e.abortable);
14
- function O() {
14
+ var T = (e) => C(e) && S(e.abortable);
15
+ function E() {
15
16
  let e;
16
17
  function t() {
17
- e ||= (e = 1, t._disposables_ = t._disposables_?.forEach(E));
18
+ e ||= (e = 1, t._disposables_ = t._disposables_?.forEach(w));
18
19
  }
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;
20
+ return t.dispose = t, t.keys = k, t.size = ee, t.has = O, t.set = M, t.make = A, t.remove = j, t.flush = D, t;
20
21
  }
21
- function k(e) {
22
- E(e == null ? this : this.remove(e));
22
+ function D(e) {
23
+ w(e == null ? this : this.remove(e));
23
24
  }
24
- function A(e) {
25
+ function O(e) {
25
26
  return !!this._disposables_?.has(e);
26
27
  }
27
- function j() {
28
+ function k() {
28
29
  return (this._disposables_ || []).keys();
29
30
  }
30
- function M(e, t) {
31
+ function A(e, t) {
31
32
  let n = t();
32
33
  if (n) return this.set(e, n);
33
34
  }
34
- function ee(e) {
35
+ function j(e) {
35
36
  let t = this._disposables_?.get(e);
36
37
  if (t) return this._disposables_?.delete(e), t;
37
38
  }
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
+ function M(e, t) {
40
+ return this.flush(e), T(t) && t.abortable(() => this.remove(e)), (this._disposables_ ??= /* @__PURE__ */ new Map()).set(e, t), t;
40
41
  }
41
- function ne() {
42
+ function ee() {
42
43
  return this._disposables_?.size || 0;
43
44
  }
44
45
  function N(e) {
45
46
  function t() {
46
47
  let { current: e } = t;
47
- e && (t.current = null, E(e));
48
+ e && (t.current = null, w(e));
48
49
  }
49
- return t.current = e, t.dispose = t, t.is = re, t.set = oe, t.make = ie, t.remove = ae, t.flush = t, t;
50
+ return t.current = e, t.dispose = t, t.is = te, t.set = re, t.make = P, t.remove = ne, t.flush = t, t;
50
51
  }
51
- function re(e) {
52
+ function te(e) {
52
53
  return Object.is(this.current, e);
53
54
  }
54
- function ie(e) {
55
+ function P(e) {
55
56
  let t = e();
56
57
  if (t) return this.set(t);
57
58
  }
58
- function ae() {
59
+ function ne() {
59
60
  let e = !!this.current;
60
61
  return this.current = null, e;
61
62
  }
62
- function oe(e) {
63
- return (!e || !this.is(e)) && (this.flush(), this.current = e, D(e) && e.abortable(() => {
63
+ function re(e) {
64
+ return (!e || !this.is(e)) && (this.flush(), this.current = e, T(e) && e.abortable(() => {
64
65
  this.is(e) && this.remove();
65
66
  })), e;
66
67
  }
67
- function P(e) {
68
+ function F(e) {
68
69
  let t;
69
70
  function n() {
70
- t ||= (t = 1, n._disposables_ = n._disposables_?.forEach(E));
71
+ t ||= (t = 1, n._disposables_ = n._disposables_?.forEach(w));
71
72
  }
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;
73
+ return n.dispose = n, n.size = ue, n.has = se, n.add = ae, n.make = ce, n.remove = le, n.flush = oe, e && n.add(e), n;
73
74
  }
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
+ function ie(e) {
76
+ this._disposables_?.has(e) || ((this._disposables_ ??= /* @__PURE__ */ new Set()).add(e), T(e) && e.abortable(le.bind(this, e)));
76
77
  }
77
- function ce(e) {
78
- return Array.isArray(e) ? e.forEach(se, this) : se.call(this, e), e;
78
+ function ae(e) {
79
+ return Array.isArray(e) ? e.forEach(ie, this) : ie.call(this, e), e;
79
80
  }
80
- function le(e) {
81
- E(e ? this.remove(e) && e : this);
81
+ function oe(e) {
82
+ w(e ? this.remove(e) && e : this);
82
83
  }
83
- function ue(e) {
84
+ function se(e) {
84
85
  return !!this._disposables_?.has(e);
85
86
  }
86
- function de(e) {
87
+ function ce(e) {
87
88
  let t = e();
88
89
  return t && this.add(t);
89
90
  }
90
- function fe(e) {
91
+ function le(e) {
91
92
  return !!this._disposables_?.delete(e);
92
93
  }
93
- function pe() {
94
+ function ue() {
94
95
  return this._disposables_?.size || 0;
95
96
  }
96
97
  //#endregion
97
98
  //#region ../../node_modules/.bun/@wopjs+event@0.1.5/node_modules/@wopjs/event/dist/index.mjs
98
- var me = /* @__PURE__ */ Symbol.for("send"), he = (e, t) => {
99
+ var de = /* @__PURE__ */ Symbol.for("send"), fe = (e, t) => {
99
100
  try {
100
101
  e(t);
101
102
  } catch (e) {
102
103
  console.error(e);
103
104
  }
104
105
  };
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);
106
+ function pe(e) {
107
+ 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) fe(t, e);
108
+ else this._l && fe(this._l, e);
108
109
  }
109
- function _e() {
110
+ function me() {
110
111
  return this._l ? this._m ? this._l.size : 1 : 0;
111
112
  }
112
- function ve(e) {
113
+ function he(e) {
113
114
  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);
114
115
  }
115
- function ye(e) {
116
+ function ge(e) {
116
117
  let t = !1;
117
118
  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;
118
119
  }
119
- function be() {
120
+ function _e() {
120
121
  process.env.NODE_ENV !== "production" && (this.a = /* @__PURE__ */ Error("[@wopjs/event:dev] Disposed at:")), this.off();
121
122
  }
122
- var xe = () => {
123
+ var ve = () => {
123
124
  function e(t) {
124
125
  return e.on(t);
125
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
+ return e.size = me, e.on = he, e.off = ge, e.dispose = _e, e[de] = pe, e;
128
+ }, ye = (e, t) => e?.[de]?.(t), be = /* @__PURE__ */ Symbol.for("$NONE$ "), xe = /* @__PURE__ */ Symbol.for("$TSUR_SPECIES$ "), Se = 1, Ce = 2, I = class e {
128
129
  static Ok(t) {
129
130
  return Object.freeze(new e(t, !0));
130
131
  }
@@ -149,12 +150,12 @@ var xe = () => {
149
150
  }
150
151
  }
151
152
  static isResult(e) {
152
- return !!e && e[we] === Ee;
153
+ return !!e && e[xe] === Ce;
153
154
  }
154
155
  static isSame(t, n) {
155
156
  return e.isResult(t) && e.isResult(n) ? Object.is(t._value, n._value) : !1;
156
157
  }
157
- [we] = Ee;
158
+ [xe] = Ce;
158
159
  _value;
159
160
  _ok;
160
161
  constructor(e, t) {
@@ -200,13 +201,13 @@ var xe = () => {
200
201
  return this._ok ? this : e.Err(t.call(n, this._value));
201
202
  }
202
203
  transpose() {
203
- return this._ok ? I.isOption(this._value) ? this._value.map(e.Ok) : I.Some(this) : I.None;
204
+ return this._ok ? L.isOption(this._value) ? this._value.map(e.Ok) : L.Some(this) : L.None;
204
205
  }
205
206
  ok() {
206
- return this._ok ? I.Some(this._value) : I.None;
207
+ return this._ok ? L.Some(this._value) : L.None;
207
208
  }
208
209
  err() {
209
- return this._ok ? I.None : I.Some(this._value);
210
+ return this._ok ? L.None : L.Some(this._value);
210
211
  }
211
212
  unwrap(e = "called `Result.unwrap()` on an `Err`") {
212
213
  if (this._ok) return this._value;
@@ -234,16 +235,16 @@ var xe = () => {
234
235
  toString() {
235
236
  return `${this._ok ? "Ok" : "Err"}(${this._value})`;
236
237
  }
237
- }, De = F.Ok, Oe = F.Err, I = class e {
238
+ }, we = I.Ok, Te = I.Err, L = class e {
238
239
  static Some(t) {
239
240
  return Object.freeze(new e(t));
240
241
  }
241
- static None = /* @__PURE__ */ e.Some(Ce);
242
+ static None = /* @__PURE__ */ e.Some(be);
242
243
  static from(t, n, r) {
243
244
  return (n ? n.call(r, t) : t) ? e.Some(t) : e.None;
244
245
  }
245
246
  static isOption(e) {
246
- return !!e && e[we] === Te;
247
+ return !!e && e[xe] === Se;
247
248
  }
248
249
  static isSame(t, n) {
249
250
  return e.isOption(t) && e.isOption(n) ? Object.is(t._value, n._value) : !1;
@@ -251,7 +252,7 @@ var xe = () => {
251
252
  static unwrapOr(t) {
252
253
  return e.isOption(t) ? t.unwrapOr() : t;
253
254
  }
254
- [we] = Te;
255
+ [xe] = Se;
255
256
  _value;
256
257
  constructor(e) {
257
258
  this._value = e;
@@ -260,10 +261,10 @@ var xe = () => {
260
261
  this.isSome() && (yield this._value);
261
262
  }
262
263
  isSome() {
263
- return this._value !== Ce;
264
+ return this._value !== be;
264
265
  }
265
266
  isNone() {
266
- return this._value === Ce;
267
+ return this._value === be;
267
268
  }
268
269
  isSomeAnd(e, t) {
269
270
  return this.isSome() && e.call(t, this._value);
@@ -305,13 +306,13 @@ var xe = () => {
305
306
  return this.isSome() ? e.Some(t.call(n, this._value)) : e.None;
306
307
  }
307
308
  transpose() {
308
- return this.isSome() ? F.isResult(this._value) ? this._value.map(e.Some) : F.Ok(this) : F.Ok(e.None);
309
+ return this.isSome() ? I.isResult(this._value) ? this._value.map(e.Some) : I.Ok(this) : I.Ok(e.None);
309
310
  }
310
311
  okOr(e) {
311
- return this.isSome() ? F.Ok(this._value) : F.Err(e);
312
+ return this.isSome() ? I.Ok(this._value) : I.Err(e);
312
313
  }
313
314
  okOrElse(e, t) {
314
- return this.isSome() ? F.Ok(this._value) : F.Err(e.call(t));
315
+ return this.isSome() ? I.Ok(this._value) : I.Err(e.call(t));
315
316
  }
316
317
  unwrap(e = "called `Option.unwrap()` on a `None` value") {
317
318
  if (this.isSome()) return this._value;
@@ -331,91 +332,91 @@ var xe = () => {
331
332
  }
332
333
  };
333
334
  Array.isArray;
334
- var ke = (e) => !!e && e.constructor === Object, Ae = (e) => {
335
+ var Ee = (e) => {
335
336
  try {
336
337
  return Number(e) === e;
337
338
  } catch {
338
339
  return !1;
339
340
  }
340
- }, je = (e) => Object.prototype.toString.call(e) === "[object Date]", Me = (e, t) => {
341
+ }, De = (e) => Object.prototype.toString.call(e) === "[object Date]", Oe = (e, t) => {
341
342
  if (Object.is(e, t)) return !0;
342
343
  if (e instanceof Date && t instanceof Date) return e.getTime() === t.getTime();
343
344
  if (e instanceof RegExp && t instanceof RegExp) return e.toString() === t.toString();
344
345
  if (typeof e != "object" || !e || typeof t != "object" || !t) return !1;
345
346
  let n = Reflect.ownKeys(e), r = Reflect.ownKeys(t);
346
347
  if (n.length !== r.length) return !1;
347
- for (let r = 0; r < n.length; r++) if (!Reflect.has(t, n[r]) || !Me(e[n[r]], t[n[r]])) return !1;
348
+ for (let r = 0; r < n.length; r++) if (!Reflect.has(t, n[r]) || !Oe(e[n[r]], t[n[r]])) return !1;
348
349
  return !0;
349
- }, Ne = (e) => e === "__proto__", Pe = (e, t, n) => t + e * (n - t), Fe = (e) => e;
350
- function Ie(e, t) {
350
+ }, ke = (e) => e === "__proto__", Ae = (e, t, n) => t + e * (n - t), je = (e) => e;
351
+ function Me(e, t) {
351
352
  let n = e.findIndex(t);
352
353
  return n >= 0 ? n : e.length;
353
354
  }
354
- var L = /*#__PURE__*/ Object.freeze({ equal: Me }), Le = {
355
+ var R = /*#__PURE__*/ Object.freeze({ equal: Oe }), Ne = {
355
356
  true: "True",
356
357
  false: "False"
357
358
  };
358
- function Re() {}
359
- var ze = 2147483647;
360
- function Be(e, t, n) {
359
+ function Pe() {}
360
+ var Fe = 2147483647;
361
+ function Ie(e, t, n) {
361
362
  return e < t ? t : e > n ? n : e;
362
363
  }
363
- function Ve(e) {
364
+ function Le(e) {
364
365
  return typeof e == "function";
365
366
  }
366
- function He(e) {
367
+ function Re(e) {
367
368
  return e == null ? [] : Array.isArray(e) ? e : [e];
368
369
  }
369
- function R(e) {
370
+ function z(e) {
370
371
  return Array.isArray(e) ? e : void 0;
371
372
  }
372
- function z(e) {
373
- return e.some(g) ? e : void 0;
373
+ function B(e) {
374
+ return e.some(y) ? e : void 0;
374
375
  }
375
- function Ue(e) {
376
+ function ze(e) {
376
377
  return e?.[e.length - 1];
377
378
  }
378
- function We(e) {
379
+ function Be(e) {
379
380
  return e.filter((e) => e != null);
380
381
  }
381
- var Ge = Symbol("Negative");
382
- function Ke(e, t, n) {
382
+ var Ve = Symbol("Negative");
383
+ function He(e, t, n) {
383
384
  let r = [];
384
385
  for (let i = 0; i < e.length; i++) {
385
386
  let a = t.call(n, e[i], i);
386
- a !== Ge && r.push(a);
387
+ a !== Ve && r.push(a);
387
388
  }
388
389
  return r;
389
390
  }
390
- function qe(e) {
391
- return x(e) ? e : {};
391
+ function Ue(e) {
392
+ return _(e) ? e : {};
392
393
  }
393
- function B(e) {
394
- if (x(e)) return e;
394
+ function V(e) {
395
+ if (_(e)) return e;
395
396
  }
396
- function Je(e) {
397
- if (x(e)) {
398
- for (let t of Object.values(e)) if (h(t)) return e;
397
+ function We(e) {
398
+ if (_(e)) {
399
+ for (let t of Object.values(e)) if (b(t)) return e;
399
400
  }
400
401
  }
401
- function Ye(e, t) {
402
- if (x(e)) {
402
+ function Ge(e, t) {
403
+ if (_(e)) {
403
404
  let n = !1, r = {};
404
405
  for (let [i, a] of Object.entries(e)) t(a) && (n = !0, r[i] = a);
405
406
  if (n) return r;
406
407
  }
407
408
  }
408
- function Xe(e) {
409
+ function Ke(e) {
409
410
  return e === !0;
410
411
  }
411
- function Ze(e) {
412
+ function qe(e) {
412
413
  return e === !0 || void 0;
413
414
  }
414
- function Qe(e) {
415
- return Ye(e, Xe);
415
+ function Je(e) {
416
+ return Ge(e, Ke);
416
417
  }
417
- function $e(e) {
418
- if (v(e)) return e;
418
+ function Ye(e) {
419
+ if (h(e)) return e;
419
420
  if (e == null) return "";
420
421
  try {
421
422
  return JSON.stringify(e);
@@ -427,7 +428,7 @@ function $e(e) {
427
428
  }
428
429
  }
429
430
  }
430
- function et(e) {
431
+ function Xe(e) {
431
432
  if (e === void 0) return "undefined";
432
433
  try {
433
434
  return JSON.stringify(e);
@@ -439,29 +440,29 @@ function et(e) {
439
440
  }
440
441
  }
441
442
  }
442
- function V(e) {
443
- return v(e) ? e : void 0;
443
+ function H(e) {
444
+ return h(e) ? e : void 0;
444
445
  }
445
- function tt(e) {
446
- return e && v(e) ? e : void 0;
446
+ function Ze(e) {
447
+ return e && h(e) ? e : void 0;
447
448
  }
448
- function nt(e, t) {
449
+ function Qe(e, t) {
449
450
  let n = Number(e);
450
451
  return Number.isFinite(n) ? t ? Math.floor(n) : n : 0;
451
452
  }
452
- function H(e) {
453
- return Ae(e) ? e : void 0;
453
+ function U(e) {
454
+ return Ee(e) ? e : void 0;
454
455
  }
455
- function rt(e) {
456
- return Ae(e) && e > 0;
456
+ function $e(e) {
457
+ return Ee(e) && e > 0;
457
458
  }
458
- function it(e) {
459
- return _(e) ? e : !1;
459
+ function et(e) {
460
+ return v(e) ? e : !1;
460
461
  }
461
- function at(e) {
462
- return _(e) ? e : void 0;
462
+ function tt(e) {
463
+ return v(e) ? e : void 0;
463
464
  }
464
- function U(e, t) {
465
+ function W(e, t) {
465
466
  let n = 0;
466
467
  for (let r of t) if (r.startsWith(e)) {
467
468
  if (r === e) {
@@ -473,7 +474,7 @@ function U(e, t) {
473
474
  }
474
475
  return n === 0 ? e : `${e}${n + 1}`;
475
476
  }
476
- function ot(e, t, n = Object.is) {
477
+ function nt(e, t, n = Object.is) {
477
478
  return (r) => {
478
479
  n(e.value?.[t], r) || e.set({
479
480
  ...e.value,
@@ -481,7 +482,7 @@ function ot(e, t, n = Object.is) {
481
482
  });
482
483
  };
483
484
  }
484
- function W(e, t, n = Object.is) {
485
+ function G(e, t, n = Object.is) {
485
486
  return (r) => {
486
487
  e.value && !n(e.value[t], r) && e.set({
487
488
  ...e.value,
@@ -489,64 +490,64 @@ function W(e, t, n = Object.is) {
489
490
  });
490
491
  };
491
492
  }
492
- function st(e, t, n) {
493
+ function rt(e, t, n) {
493
494
  for (let n = 0; n < t.length; n++) e = e ? e[t[n]] : void 0;
494
495
  return e === void 0 ? n : e;
495
496
  }
496
- function ct(e) {
497
+ function it(e) {
497
498
  try {
498
- return De(JSON.parse(e));
499
+ return we(JSON.parse(e));
499
500
  } catch (e) {
500
- return Oe(e + "");
501
+ return Te(e + "");
501
502
  }
502
503
  }
503
- function lt(e) {
504
+ function at(e) {
504
505
  try {
505
506
  return JSON.stringify(e, null, 2);
506
507
  } catch (e) {
507
508
  return console.warn(e), "{}";
508
509
  }
509
510
  }
510
- function ut(e) {
511
+ function ot(e) {
511
512
  return !!e && (e.startsWith("self::") || e.startsWith("./") || e.startsWith("../"));
512
513
  }
513
- function dt(e) {
514
+ function st(e) {
514
515
  return e ? () => e.set(!e.value) : void 0;
515
516
  }
516
- function ft(e) {
517
+ function ct(e) {
517
518
  return !!e && e.startsWith("%") && e.endsWith("%") && e.length > 2;
518
519
  }
519
- function pt(e) {
520
- return ft(e) ? e.slice(1, -1) : void 0;
520
+ function lt(e) {
521
+ return ct(e) ? e.slice(1, -1) : void 0;
521
522
  }
522
- function mt(e) {
523
- return ft(e) ? void 0 : e;
523
+ function ut(e) {
524
+ return ct(e) ? void 0 : e;
524
525
  }
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)) {
526
+ var dt = 64;
527
+ function ft(e, t) {
528
+ let n = e?.toLowerCase().replace(/[^a-z0-9_]+/g, "-").replace(/^-+/, "").slice(0, dt).replace(/-+$/, "");
529
+ if (n && !ke(n)) {
529
530
  let e = n, r = 1;
530
531
  for (; t[e] != null;) e = `${n}${r++}`;
531
532
  return e;
532
533
  }
533
534
  for (let e = 1;; e++) if (n = `key${e}`, t[n] == null) return n;
534
535
  }
535
- function _t(e, t) {
536
- Ne(e) && (e = "_" + e);
536
+ function pt(e, t) {
537
+ ke(e) && (e = "_" + e);
537
538
  let n = e, r = 1;
538
539
  for (; t[n] != null;) n = `${e}${r++}`;
539
540
  return n;
540
541
  }
541
- function vt(e) {
542
+ function mt(e) {
542
543
  return /^[\x09\x0A\x0D\x20-\x7E]+$/.test(e);
543
544
  }
544
- function yt(e, t) {
545
+ function ht(e, t) {
545
546
  return Object.hasOwn(e, t) ? e[t] : void 0;
546
547
  }
547
548
  //#endregion
548
549
  //#region ../../node_modules/.bun/dayjs@1.11.23/node_modules/dayjs/dayjs.min.js
549
- var bt = /* @__PURE__ */ i(((e, t) => {
550
+ var gt = /* @__PURE__ */ i(((e, t) => {
550
551
  (function(n, r) {
551
552
  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();
552
553
  })(e, (function() {
@@ -840,7 +841,7 @@ var bt = /* @__PURE__ */ i(((e, t) => {
840
841
  return w(1e3 * e);
841
842
  }, w.en = b[y], w.Ls = b, w.p = {}, w;
842
843
  }));
843
- })), xt = /* @__PURE__ */ i(((e, t) => {
844
+ })), _t = /* @__PURE__ */ i(((e, t) => {
844
845
  (function(n, r) {
845
846
  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();
846
847
  })(e, (function() {
@@ -996,7 +997,7 @@ var bt = /* @__PURE__ */ i(((e, t) => {
996
997
  };
997
998
  };
998
999
  }));
999
- })), St = /* @__PURE__ */ i(((e, t) => {
1000
+ })), vt = /* @__PURE__ */ i(((e, t) => {
1000
1001
  (function(n, r) {
1001
1002
  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();
1002
1003
  })(e, (function() {
@@ -1090,7 +1091,7 @@ var bt = /* @__PURE__ */ i(((e, t) => {
1090
1091
  };
1091
1092
  };
1092
1093
  }));
1093
- })), Ct = /* @__PURE__ */ i(((e, t) => {
1094
+ })), yt = /* @__PURE__ */ i(((e, t) => {
1094
1095
  (function(n, r) {
1095
1096
  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();
1096
1097
  })(e, (function() {
@@ -1101,56 +1102,56 @@ var bt = /* @__PURE__ */ i(((e, t) => {
1101
1102
  };
1102
1103
  };
1103
1104
  }));
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 = [
1105
+ })), bt = /* @__PURE__ */ n(gt(), 1), xt = /* @__PURE__ */ n(_t(), 1), St = /* @__PURE__ */ n(vt(), 1), Ct = /* @__PURE__ */ n(yt(), 1);
1106
+ bt.default.extend(Ct.default), bt.default.extend(St.default), bt.default.extend(xt.default);
1107
+ var wt = [
1107
1108
  "date",
1108
1109
  "time",
1109
1110
  "date-time"
1110
1111
  ];
1111
- function kt(e) {
1112
- return Ot.includes(e);
1112
+ function Tt(e) {
1113
+ return wt.includes(e);
1113
1114
  }
1114
- function At(e) {
1115
- let t = (0, wt.default)(e);
1115
+ function Et(e) {
1116
+ let t = (0, bt.default)(e);
1116
1117
  return t.isValid() ? t.toDate() : /* @__PURE__ */ new Date();
1117
1118
  }
1118
- function jt(e) {
1119
- return Ot.includes(e) ? e : Mt;
1119
+ function Dt(e) {
1120
+ return wt.includes(e) ? e : Ot;
1120
1121
  }
1121
- var Mt = "date-time", Nt = /*#__PURE__*/ Ot.map((e) => ({ value: e }));
1122
- function Pt(e) {
1123
- return Nt.find((t) => t.value === e);
1122
+ var Ot = "date-time", kt = /*#__PURE__*/ wt.map((e) => ({ value: e }));
1123
+ function At(e) {
1124
+ return kt.find((t) => t.value === e);
1124
1125
  }
1125
- function Ft(e, t = Mt) {
1126
- return (0, wt.default)(e).format(It(t));
1126
+ function jt(e, t = Ot) {
1127
+ return (0, bt.default)(e).format(Mt(t));
1127
1128
  }
1128
- function It(e) {
1129
+ function Mt(e) {
1129
1130
  switch (e) {
1130
1131
  case "date": return "YYYY-MM-DD";
1131
1132
  case "time": return "HH:mm:ssZ";
1132
1133
  case "date-time": return "YYYY-MM-DDTHH:mm:ssZ";
1133
1134
  }
1134
1135
  }
1135
- var Lt = [
1136
+ var Nt = [
1136
1137
  "RGB",
1137
1138
  "HSV",
1138
1139
  "HEX",
1139
1140
  "HEX8"
1140
1141
  ];
1141
- function Rt(e) {
1142
- return Lt.includes(e);
1142
+ function Pt(e) {
1143
+ return Nt.includes(e);
1143
1144
  }
1144
- function zt(e) {
1145
- return Rt(e) ? e : "HEX";
1145
+ function Ft(e) {
1146
+ return Pt(e) ? e : "HEX";
1146
1147
  }
1147
- var Bt = /*#__PURE__*/ Lt.map((e) => ({ value: e }));
1148
- function Vt(e) {
1149
- return Bt.find((t) => t.value === e);
1148
+ var It = /*#__PURE__*/ Nt.map((e) => ({ value: e }));
1149
+ function Lt(e) {
1150
+ return It.find((t) => t.value === e);
1150
1151
  }
1151
1152
  //#endregion
1152
1153
  //#region src/designer/browser/jsonSchema/preset.ts
1153
- var G = {
1154
+ var K = {
1154
1155
  string: {
1155
1156
  icon: "i-carbon:quotes",
1156
1157
  value: "string",
@@ -1231,12 +1232,17 @@ var G = {
1231
1232
  value: "binary",
1232
1233
  label: "Binary"
1233
1234
  },
1235
+ literal: {
1236
+ icon: "i-carbon:code",
1237
+ value: "literal",
1238
+ label: "Literal"
1239
+ },
1234
1240
  null: {
1235
1241
  icon: "i-carbon:null-sign",
1236
1242
  value: "null",
1237
1243
  label: "Null"
1238
1244
  }
1239
- }, Ht = (e) => Object.hasOwn(G, e), Ut = {
1245
+ }, Rt = (e) => Object.hasOwn(K, e), zt = {
1240
1246
  close: "i-codicon:close",
1241
1247
  gotoFile: "i-codicon:go-to-file",
1242
1248
  objectAdd: "i-carbon:add-alt",
@@ -1244,47 +1250,47 @@ var G = {
1244
1250
  package: "i-codicon:package",
1245
1251
  settings: "i-codicon:gear",
1246
1252
  tool: "i-codicon:symbol-property"
1247
- }, Wt = (e) => Ht(e) ? G[e].icon : Ut[e], Gt = (e) => Wt(J(e)), Kt = (e, t) => {
1248
- let n = G[t];
1253
+ }, Bt = (e) => Rt(e) ? K[e].icon : zt[e], Vt = (e) => Bt(Y(e)), Ht = (e, t) => {
1254
+ let n = K[t];
1249
1255
  return {
1250
1256
  ...n,
1251
1257
  label: e(`preset.${n.value}`)
1252
1258
  };
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,
1259
+ }, Ut = (e, t) => He([
1260
+ K.string,
1261
+ K.number,
1262
+ K.boolean,
1263
+ K.integer,
1264
+ K.color,
1265
+ K.text,
1266
+ K.object,
1267
+ K.array,
1262
1268
  {
1263
1269
  icon: "i-carbon:checkbox-checked",
1264
1270
  label: "Select",
1265
1271
  value: "select",
1266
- options: [G.select, G.multiSelect]
1272
+ options: [K.select, K.multiSelect]
1267
1273
  },
1268
- G.date,
1269
- G.any,
1270
- G.binary,
1271
- G.null,
1274
+ K.date,
1275
+ K.any,
1276
+ K.binary,
1277
+ K.null,
1272
1278
  {
1273
1279
  icon: "i-carbon:branch",
1274
1280
  label: "Applicators",
1275
1281
  value: "applicators",
1276
1282
  options: [
1277
- G.anyOf,
1278
- G.allOf,
1279
- G.oneOf
1283
+ K.anyOf,
1284
+ K.allOf,
1285
+ K.oneOf
1280
1286
  ]
1281
1287
  }
1282
1288
  ], (n) => {
1283
- if (Jt(n)) {
1284
- let r = Ke(n.options, (n) => t(n.value) ? {
1289
+ if (Wt(n)) {
1290
+ let r = He(n.options, (n) => t(n.value) ? {
1285
1291
  ...n,
1286
1292
  label: e(`preset.${n.value}`)
1287
- } : Ge);
1293
+ } : Ve);
1288
1294
  if (r.length > 0) return {
1289
1295
  ...n,
1290
1296
  label: e(`preset.${n.label}`),
@@ -1294,9 +1300,10 @@ var G = {
1294
1300
  ...n,
1295
1301
  label: e(`preset.${n.value}`)
1296
1302
  };
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 },
1303
+ return Ve;
1304
+ }), Wt = (e) => "options" in e, Gt = "ui:widget", q = "ui:options", Kt = { binary: "oomol/bin" }, qt = {
1305
+ binary: { contentMediaType: Kt.binary },
1306
+ literal: {},
1300
1307
  any: {},
1301
1308
  null: { type: "null" },
1302
1309
  boolean: { type: "boolean" },
@@ -1309,16 +1316,16 @@ var G = {
1309
1316
  },
1310
1317
  color: {
1311
1318
  type: "string",
1312
- [Yt]: "color",
1313
- [K]: { colorType: "HEX" }
1319
+ [Gt]: "color",
1320
+ [q]: { colorType: "HEX" }
1314
1321
  },
1315
1322
  text: {
1316
1323
  type: "string",
1317
- [Yt]: "text"
1324
+ [Gt]: "text"
1318
1325
  },
1319
1326
  select: {
1320
1327
  enum: [],
1321
- [K]: {
1328
+ [q]: {
1322
1329
  labels: [],
1323
1330
  types: void 0
1324
1331
  }
@@ -1327,7 +1334,7 @@ var G = {
1327
1334
  type: "array",
1328
1335
  uniqueItems: !0,
1329
1336
  items: { enum: [] },
1330
- [K]: {
1337
+ [q]: {
1331
1338
  labels: [],
1332
1339
  types: void 0
1333
1340
  }
@@ -1340,22 +1347,22 @@ var G = {
1340
1347
  },
1341
1348
  anyOf: {
1342
1349
  anyOf: [],
1343
- [K]: { labels: [] }
1350
+ [q]: { labels: [] }
1344
1351
  },
1345
1352
  oneOf: {
1346
1353
  oneOf: [],
1347
- [K]: { labels: [] }
1354
+ [q]: { labels: [] }
1348
1355
  },
1349
1356
  allOf: {
1350
1357
  allOf: [],
1351
- [K]: { labels: [] }
1358
+ [q]: { labels: [] }
1352
1359
  }
1353
1360
  };
1354
- function Qt(e, t) {
1355
- let n = structuredClone(Zt[e]);
1356
- return t && ln(n, t), n;
1361
+ function Jt(e, t) {
1362
+ let n = structuredClone(qt[e]);
1363
+ return t && an(n, t), n;
1357
1364
  }
1358
- function q(e) {
1365
+ function J(e) {
1359
1366
  if (e && e.length > 0) {
1360
1367
  let t;
1361
1368
  for (let n of e) {
@@ -1363,11 +1370,11 @@ function q(e) {
1363
1370
  let e = n.json_schema;
1364
1371
  e && (t = e);
1365
1372
  }
1366
- return t || Qt("any");
1373
+ return t || Jt("any");
1367
1374
  }
1368
- return Qt("any");
1375
+ return Jt("any");
1369
1376
  }
1370
- var $t = {
1377
+ var Yt = {
1371
1378
  null: null,
1372
1379
  boolean: !1,
1373
1380
  integer: 0,
@@ -1375,11 +1382,11 @@ var $t = {
1375
1382
  string: "",
1376
1383
  color: "#7d7fe9",
1377
1384
  select: (e) => {
1378
- let t = He(e?.enum)?.[0];
1385
+ let t = Re(e?.enum)?.[0];
1379
1386
  return t === void 0 ? null : t;
1380
1387
  },
1381
1388
  multiSelect: [],
1382
- date: (e) => Ft(/* @__PURE__ */ new Date(), jt(e?.format)),
1389
+ date: (e) => jt(/* @__PURE__ */ new Date(), Dt(e?.format)),
1383
1390
  text: "",
1384
1391
  any: void 0,
1385
1392
  object: {},
@@ -1387,22 +1394,24 @@ var $t = {
1387
1394
  anyOf: void 0,
1388
1395
  allOf: void 0,
1389
1396
  oneOf: void 0,
1390
- binary: void 0
1397
+ binary: void 0,
1398
+ literal: (e) => e?.const
1391
1399
  };
1392
- function en(e, t) {
1393
- let n = $t[e];
1394
- return Ve(n) ? n(t) : n;
1400
+ function Xt(e, t) {
1401
+ let n = Yt[e];
1402
+ return Le(n) ? n(t) : n;
1395
1403
  }
1396
- function J(e) {
1404
+ function Y(e) {
1397
1405
  let t = e;
1398
1406
  if (!t) return "any";
1399
1407
  switch (t.contentMediaType) {
1400
- case Zt.binary.contentMediaType: return "binary";
1408
+ case qt.binary.contentMediaType: return "binary";
1401
1409
  }
1402
- if (t["ui:widget"] && Ht(t["ui:widget"])) return t[Yt];
1410
+ if (t["ui:widget"] && Rt(t["ui:widget"])) return t[Gt];
1403
1411
  if (t.anyOf) return "anyOf";
1404
1412
  if (t.oneOf) return "oneOf";
1405
1413
  if (t.allOf) return "any";
1414
+ if (Object.hasOwn(t, "const")) return "literal";
1406
1415
  if (t.enum) return "select";
1407
1416
  switch (t.type) {
1408
1417
  case "null":
@@ -1411,20 +1420,20 @@ function J(e) {
1411
1420
  case "number":
1412
1421
  case "object": return t.type;
1413
1422
  case "array": return t.uniqueItems ? "multiSelect" : "array";
1414
- case "string": return kt(t.format) ? "date" : "string";
1423
+ case "string": return Tt(t.format) ? "date" : "string";
1415
1424
  default: return "any";
1416
1425
  }
1417
1426
  }
1418
- function tn(e) {
1427
+ function Zt(e) {
1419
1428
  return e == "any";
1420
1429
  }
1421
- function nn(e) {
1430
+ function Qt(e) {
1422
1431
  return e == "any" || e == "anyOf" || e == "oneOf" || e == "allOf";
1423
1432
  }
1424
- function rn(e) {
1425
- return !nn(e) && e !== "binary";
1433
+ function $t(e) {
1434
+ return !Qt(e) && e !== "binary";
1426
1435
  }
1427
- function an(e) {
1436
+ function en(e) {
1428
1437
  switch (e) {
1429
1438
  case "string":
1430
1439
  case "text":
@@ -1439,12 +1448,12 @@ function an(e) {
1439
1448
  case "array": return "array";
1440
1449
  }
1441
1450
  }
1442
- function on(e) {
1451
+ function tn(e) {
1443
1452
  if (e === null) return "null";
1444
1453
  let t = typeof e;
1445
1454
  return t === "object" && Array.isArray(e) ? "array" : t;
1446
1455
  }
1447
- function sn(e) {
1456
+ function nn(e) {
1448
1457
  switch (e) {
1449
1458
  case "string":
1450
1459
  case "number":
@@ -1455,84 +1464,84 @@ function sn(e) {
1455
1464
  default: return "any";
1456
1465
  }
1457
1466
  }
1458
- function cn(e) {
1459
- let t = J(e);
1467
+ function rn(e) {
1468
+ let t = Y(e);
1460
1469
  if (t === "anyOf" || t === "oneOf" || t === "allOf") return (e[t]?.length ?? 0) || 1;
1461
1470
  if (t === "string") return 4;
1462
1471
  if (t === "array") return 3;
1463
1472
  if (t === "color" || t === "date") return 1;
1464
1473
  if (t === "integer" || t === "number") return 5;
1465
1474
  if (t === "object") {
1466
- let t = B(e.properties);
1475
+ let t = V(e.properties);
1467
1476
  return (t ? Object.keys(t).length : 1) + 1;
1468
1477
  }
1469
1478
  if (t === "select") {
1470
- let t = R(e.enum)?.length ?? 0;
1479
+ let t = z(e.enum)?.length ?? 0;
1471
1480
  return t ? t * 2 : 1;
1472
1481
  }
1473
1482
  if (t === "multiSelect") {
1474
- let t = R(B(e.items)?.enum)?.length ?? 0;
1483
+ let t = z(V(e.items)?.enum)?.length ?? 0;
1475
1484
  return t ? t * 2 : 1;
1476
1485
  }
1477
1486
  return 0;
1478
1487
  }
1479
- function ln(e, t) {
1480
- let n = un(t);
1481
- n && pn(e, n);
1488
+ function an(e, t) {
1489
+ let n = on(t);
1490
+ n && ln(e, n);
1482
1491
  }
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);
1492
+ function on(e) {
1493
+ switch (Y(e)) {
1494
+ case "select": return sn(e.enum, e[q]?.labels);
1495
+ case "multiSelect": return sn(V(e.items)?.enum, e[q]?.labels);
1487
1496
  }
1488
1497
  }
1489
- function dn(e, t) {
1490
- if (fn(e) && e.length > 0) return {
1498
+ function sn(e, t) {
1499
+ if (cn(e) && e.length > 0) return {
1491
1500
  enum: e,
1492
- labels: fn(t) ? t : void 0
1501
+ labels: cn(t) ? t : void 0
1493
1502
  };
1494
1503
  }
1495
- function fn(e) {
1496
- return y(e);
1504
+ function cn(e) {
1505
+ return x(e);
1497
1506
  }
1498
- function pn(e, t) {
1499
- switch (J(e)) {
1507
+ function ln(e, t) {
1508
+ switch (Y(e)) {
1500
1509
  case "select":
1501
- e.enum = t.enum, e[K] = {
1502
- ...B(e[K]),
1510
+ e.enum = t.enum, e[q] = {
1511
+ ...V(e[q]),
1503
1512
  labels: t.labels ?? []
1504
1513
  };
1505
1514
  break;
1506
1515
  case "multiSelect": e.items = {
1507
- ...B(e.items),
1516
+ ...V(e.items),
1508
1517
  enum: t.enum
1509
- }, e[K] = {
1510
- ...B(e[K]),
1518
+ }, e[q] = {
1519
+ ...V(e[q]),
1511
1520
  labels: t.labels ?? []
1512
1521
  };
1513
1522
  }
1514
1523
  }
1515
1524
  //#endregion
1516
1525
  //#region src/base/common/type.ts
1517
- function mn(e) {
1518
- return x(e);
1526
+ function un(e) {
1527
+ return _(e);
1519
1528
  }
1520
1529
  //#endregion
1521
1530
  //#region src/designer/browser/llm/widget.ts
1522
- function hn(e) {
1523
- if (!mn(e)) return;
1531
+ function dn(e) {
1532
+ if (!un(e)) return;
1524
1533
  let t = e["ui:widget"];
1525
1534
  if (t == "llm/messages") return "llm/messages";
1526
1535
  if (t == "llm/model") return "llm/model";
1527
1536
  }
1528
- function gn(e) {
1529
- if (!mn(e)) return;
1537
+ function fn(e) {
1538
+ if (!un(e)) return;
1530
1539
  let t = e["ui:options"];
1531
- if (mn(t)) return typeof t.title == "string" && t.title.length > 0 ? t.title : void 0;
1540
+ if (un(t)) return typeof t.title == "string" && t.title.length > 0 ? t.title : void 0;
1532
1541
  }
1533
1542
  //#endregion
1534
1543
  //#region src/localization/common/localization.ts
1535
- function _n(e, t) {
1544
+ function pn(e, t) {
1536
1545
  let n = [];
1537
1546
  for (let r of p(t)) {
1538
1547
  let t = e[r];
@@ -1542,23 +1551,23 @@ function _n(e, t) {
1542
1551
  }
1543
1552
  //#endregion
1544
1553
  //#region src/designer/browser/stores/designer/l10n.ts
1545
- function vn(e) {
1554
+ function mn(e) {
1546
1555
  return e === "en" ? "zh-CN" : "en";
1547
1556
  }
1548
- function yn(e, t, n) {
1549
- return n && vt(n) ? e.en : _n(e, t)[0] ?? e.en;
1557
+ function hn(e, t, n) {
1558
+ return n && mt(n) ? e.en : pn(e, t)[0] ?? e.en;
1550
1559
  }
1551
- function bn(e, t, n, r, i) {
1560
+ function gn(e, t, n, r, i) {
1552
1561
  let a = n(t);
1553
- for (let t of _n(e, a)) {
1554
- let e = yt(n(t), r);
1562
+ for (let t of pn(e, a)) {
1563
+ let e = ht(n(t), r);
1555
1564
  if (e) return e;
1556
1565
  }
1557
1566
  return i ?? r;
1558
1567
  }
1559
1568
  //#endregion
1560
1569
  //#region ../../node_modules/.bun/@wopjs+weak-cache@0.1.5/node_modules/@wopjs/weak-cache/dist/index.mjs
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 {
1570
+ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "object" && typeof e != "function" ? e : (_n.has(e) ? _n : _n.set(e, Symbol())).get(e), yn = class {
1562
1571
  get size() {
1563
1572
  return this._r.size;
1564
1573
  }
@@ -1578,7 +1587,7 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
1578
1587
  this._r.clear();
1579
1588
  }
1580
1589
  delete(e) {
1581
- let t = Sn(e), n = this._r.get(t);
1590
+ let t = vn(e), n = this._r.get(t);
1582
1591
  return n ? (this._g.unregister(n), this._r.delete(t)) : !1;
1583
1592
  }
1584
1593
  dispose() {
@@ -1589,13 +1598,13 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
1589
1598
  return n || this.set(e, n = t()), n;
1590
1599
  }
1591
1600
  get(e) {
1592
- return this._r.get(Sn(e))?.deref();
1601
+ return this._r.get(vn(e))?.deref();
1593
1602
  }
1594
1603
  has(e) {
1595
1604
  return this.get(e) !== void 0;
1596
1605
  }
1597
1606
  set(e, t) {
1598
- let n = Sn(e), r = new WeakRef(t);
1607
+ let n = vn(e), r = new WeakRef(t);
1599
1608
  return this._r.set(n, r), this._g.register(t, n, r), Object.is(n, e) || this._g.register(e, n, r), this;
1600
1609
  }
1601
1610
  *values() {
@@ -1604,10 +1613,10 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
1604
1613
  t && (yield t);
1605
1614
  }
1606
1615
  }
1607
- }, wn = /* @__PURE__ */ new WeakMap(), Tn = new Cn(), En = class e {
1616
+ }, bn = /* @__PURE__ */ new WeakMap(), xn = new yn(), Sn = class e {
1608
1617
  static get(t) {
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);
1618
+ let n = Array.isArray(t) ? bn.get(t) ?? bn.set(t, Ye(t) || "[]").get(t) : t == null ? "[]" : Ye([t]);
1619
+ return xn.get(n) || xn.set(n, new e(n, t)).get(n);
1611
1620
  }
1612
1621
  static fromKey(t) {
1613
1622
  return e.get(JSON.parse(t));
@@ -1641,7 +1650,7 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
1641
1650
  toJSON() {
1642
1651
  return this.path;
1643
1652
  }
1644
- }, Dn = /* @__PURE__ */ i(((e) => {
1653
+ }, Cn = /* @__PURE__ */ i(((e) => {
1645
1654
  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;
1646
1655
  var t = class {};
1647
1656
  e._CodeOrName = t, e.IDENTIFIER = /^[a-z$_][a-z$_0-9]*$/i;
@@ -1746,9 +1755,9 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
1746
1755
  return new r(e.toString());
1747
1756
  }
1748
1757
  e.regexpCode = g;
1749
- })), On = /* @__PURE__ */ i(((e) => {
1758
+ })), wn = /* @__PURE__ */ i(((e) => {
1750
1759
  Object.defineProperty(e, "__esModule", { value: !0 }), e.ValueScope = e.ValueScopeName = e.Scope = e.varKinds = e.UsedValueState = void 0;
1751
- var t = Dn(), n = class extends Error {
1760
+ var t = Cn(), n = class extends Error {
1752
1761
  constructor(e) {
1753
1762
  super(`CodeGen: "code" for ${e} not defined`), this.value = e.value;
1754
1763
  }
@@ -1857,9 +1866,9 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
1857
1866
  return c;
1858
1867
  }
1859
1868
  };
1860
- })), Y = /* @__PURE__ */ i(((e) => {
1869
+ })), X = /* @__PURE__ */ i(((e) => {
1861
1870
  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;
1862
- var t = Dn(), n = On(), r = Dn();
1871
+ var t = Cn(), n = wn(), r = Cn();
1863
1872
  Object.defineProperty(e, "_", {
1864
1873
  enumerable: !0,
1865
1874
  get: function() {
@@ -1901,7 +1910,7 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
1901
1910
  return r.Name;
1902
1911
  }
1903
1912
  });
1904
- var i = On();
1913
+ var i = wn();
1905
1914
  Object.defineProperty(e, "Scope", {
1906
1915
  enumerable: !0,
1907
1916
  get: function() {
@@ -2353,28 +2362,28 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
2353
2362
  for (let n in t) e[n] = (e[n] || 0) - (t[n] || 0);
2354
2363
  }
2355
2364
  function j(e) {
2356
- return typeof e == "boolean" || typeof e == "number" || e === null ? !e : (0, t._)`!${re(e)}`;
2365
+ return typeof e == "boolean" || typeof e == "number" || e === null ? !e : (0, t._)`!${ne(e)}`;
2357
2366
  }
2358
2367
  e.not = j;
2359
- var M = N(e.operators.AND);
2368
+ var M = P(e.operators.AND);
2360
2369
  function ee(...e) {
2361
2370
  return e.reduce(M);
2362
2371
  }
2363
2372
  e.and = ee;
2364
- var te = N(e.operators.OR);
2365
- function ne(...e) {
2366
- return e.reduce(te);
2373
+ var N = P(e.operators.OR);
2374
+ function te(...e) {
2375
+ return e.reduce(N);
2367
2376
  }
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)}`;
2377
+ e.or = te;
2378
+ function P(e) {
2379
+ return (n, r) => n === t.nil ? r : r === t.nil ? n : (0, t._)`${ne(n)} ${e} ${ne(r)}`;
2371
2380
  }
2372
- function re(e) {
2381
+ function ne(e) {
2373
2382
  return e instanceof t.Name ? e : (0, t._)`(${e})`;
2374
2383
  }
2375
- })), X = /* @__PURE__ */ i(((e) => {
2384
+ })), Z = /* @__PURE__ */ i(((e) => {
2376
2385
  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;
2377
- var t = Y(), n = Dn();
2386
+ var t = X(), n = Cn();
2378
2387
  function r(e) {
2379
2388
  let t = {};
2380
2389
  for (let n of e) t[n] = !0;
@@ -2497,9 +2506,9 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
2497
2506
  }
2498
2507
  }
2499
2508
  e.checkStrictMode = x;
2500
- })), Z = /* @__PURE__ */ i(((e) => {
2509
+ })), Tn = /* @__PURE__ */ i(((e) => {
2501
2510
  Object.defineProperty(e, "__esModule", { value: !0 });
2502
- var t = Y();
2511
+ var t = X();
2503
2512
  e.default = {
2504
2513
  data: new t.Name("data"),
2505
2514
  valCxt: new t.Name("valCxt"),
@@ -2518,9 +2527,9 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
2518
2527
  jsonLen: new t.Name("jsonLen"),
2519
2528
  jsonPart: new t.Name("jsonPart")
2520
2529
  };
2521
- })), kn = /* @__PURE__ */ i(((e) => {
2530
+ })), En = /* @__PURE__ */ i(((e) => {
2522
2531
  Object.defineProperty(e, "__esModule", { value: !0 }), e.extendErrors = e.resetErrorsCount = e.reportExtraError = e.reportError = e.keyword$DataError = e.keywordError = void 0;
2523
- var t = Y(), n = X(), r = Z();
2532
+ var t = X(), n = Z(), r = Tn();
2524
2533
  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)` };
2525
2534
  function i(n, r = e.keywordError, i, a) {
2526
2535
  let { it: o } = n, { gen: s, compositeRule: u, allErrors: f } = o, p = d(n, r, i);
@@ -2582,9 +2591,9 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
2582
2591
  let { keyword: o, data: s, schemaValue: c, it: l } = e, { opts: d, propertyName: f, topSchemaRef: p, schemaPath: m } = l;
2583
2592
  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]);
2584
2593
  }
2585
- })), An = /* @__PURE__ */ i(((e) => {
2594
+ })), Dn = /* @__PURE__ */ i(((e) => {
2586
2595
  Object.defineProperty(e, "__esModule", { value: !0 }), e.boolOrEmptySchema = e.topBoolOrEmptySchema = void 0;
2587
- var t = kn(), n = Y(), r = Z(), i = { message: "boolean schema is false" };
2596
+ var t = En(), n = X(), r = Tn(), i = { message: "boolean schema is false" };
2588
2597
  function a(e) {
2589
2598
  let { gen: t, schema: i, validateName: a } = e;
2590
2599
  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));
@@ -2608,7 +2617,7 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
2608
2617
  };
2609
2618
  (0, t.reportError)(o, i, void 0, n);
2610
2619
  }
2611
- })), jn = /* @__PURE__ */ i(((e) => {
2620
+ })), On = /* @__PURE__ */ i(((e) => {
2612
2621
  Object.defineProperty(e, "__esModule", { value: !0 }), e.getRules = e.isJSONType = void 0;
2613
2622
  var t = /* @__PURE__ */ new Set([
2614
2623
  "string",
@@ -2662,7 +2671,7 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
2662
2671
  };
2663
2672
  }
2664
2673
  e.getRules = r;
2665
- })), Mn = /* @__PURE__ */ i(((e) => {
2674
+ })), kn = /* @__PURE__ */ i(((e) => {
2666
2675
  Object.defineProperty(e, "__esModule", { value: !0 }), e.shouldUseRule = e.shouldUseGroup = e.schemaHasRulesForType = void 0;
2667
2676
  function t({ schema: e, self: t }, r) {
2668
2677
  let i = t.RULES.types[r];
@@ -2677,9 +2686,9 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
2677
2686
  return e[t.keyword] !== void 0 || t.definition.implements?.some((t) => e[t] !== void 0);
2678
2687
  }
2679
2688
  e.shouldUseRule = r;
2680
- })), Nn = /* @__PURE__ */ i(((e) => {
2689
+ })), An = /* @__PURE__ */ i(((e) => {
2681
2690
  Object.defineProperty(e, "__esModule", { value: !0 }), e.reportTypeError = e.checkDataTypes = e.checkDataType = e.coerceAndCheckDataType = e.getJSONTypes = e.getSchemaTypes = e.DataType = void 0;
2682
- var t = jn(), n = Mn(), r = kn(), i = Y(), a = X(), o;
2691
+ var t = On(), n = kn(), r = En(), i = X(), a = Z(), o;
2683
2692
  (function(e) {
2684
2693
  e[e.Correct = 0] = "Correct", e[e.Wrong = 1] = "Wrong";
2685
2694
  })(o || (e.DataType = o = {}));
@@ -2814,9 +2823,9 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
2814
2823
  it: e
2815
2824
  };
2816
2825
  }
2817
- })), Pn = /* @__PURE__ */ i(((e) => {
2826
+ })), jn = /* @__PURE__ */ i(((e) => {
2818
2827
  Object.defineProperty(e, "__esModule", { value: !0 }), e.assignDefaults = void 0;
2819
- var t = Y(), n = X();
2828
+ var t = X(), n = Z();
2820
2829
  function r(e, t) {
2821
2830
  let { properties: n, items: r } = e.schema;
2822
2831
  if (t === "object" && n) for (let t in n) i(e, t, n[t].default);
@@ -2836,7 +2845,7 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
2836
2845
  }
2837
2846
  })), Q = /* @__PURE__ */ i(((e) => {
2838
2847
  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;
2839
- var t = Y(), n = X(), r = Z(), i = X();
2848
+ var t = X(), n = Z(), r = Tn(), i = Z();
2840
2849
  function a(e, n) {
2841
2850
  let { gen: r, data: i, it: a } = e;
2842
2851
  r.if(d(r, i, n, a.opts.ownProperties), () => {
@@ -2938,9 +2947,9 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
2938
2947
  })), e.result(s, () => e.reset(), () => e.error(!0));
2939
2948
  }
2940
2949
  e.validateUnion = v;
2941
- })), Fn = /* @__PURE__ */ i(((e) => {
2950
+ })), Mn = /* @__PURE__ */ i(((e) => {
2942
2951
  Object.defineProperty(e, "__esModule", { value: !0 }), e.validateKeywordUsage = e.validSchemaType = e.funcKeywordCode = e.macroKeywordCode = void 0;
2943
- var t = Y(), n = Z(), r = Q(), i = kn();
2952
+ var t = X(), n = Tn(), r = Q(), i = En();
2944
2953
  function a(e, n) {
2945
2954
  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);
2946
2955
  s.opts.validateSchema !== !1 && s.self.validateSchema(c, !0);
@@ -3019,9 +3028,9 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
3019
3028
  }
3020
3029
  }
3021
3030
  e.validateKeywordUsage = f;
3022
- })), In = /* @__PURE__ */ i(((e) => {
3031
+ })), Nn = /* @__PURE__ */ i(((e) => {
3023
3032
  Object.defineProperty(e, "__esModule", { value: !0 }), e.extendSubschemaMode = e.extendSubschemaData = e.getSubschema = void 0;
3024
- var t = Y(), n = X();
3033
+ var t = X(), n = Z();
3025
3034
  function r(e, { keyword: r, schemaProp: i, schema: a, schemaPath: o, errSchemaPath: s, topSchemaRef: c }) {
3026
3035
  if (r !== void 0 && a !== void 0) throw Error("both \"keyword\" and \"schema\" passed, only one allowed");
3027
3036
  if (r !== void 0) {
@@ -3065,7 +3074,7 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
3065
3074
  r !== void 0 && (e.compositeRule = r), i !== void 0 && (e.createErrors = i), a !== void 0 && (e.allErrors = a), e.jtdDiscriminator = t, e.jtdMetadata = n;
3066
3075
  }
3067
3076
  e.extendSubschemaMode = a;
3068
- })), Ln = /* @__PURE__ */ i(((e, t) => {
3077
+ })), Pn = /* @__PURE__ */ i(((e, t) => {
3069
3078
  t.exports = function e(t, n) {
3070
3079
  if (t === n) return !0;
3071
3080
  if (t && n && typeof t == "object" && typeof n == "object") {
@@ -3089,7 +3098,7 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
3089
3098
  }
3090
3099
  return t !== t && n !== n;
3091
3100
  };
3092
- })), Rn = /* @__PURE__ */ i(((e, t) => {
3101
+ })), Fn = /* @__PURE__ */ i(((e, t) => {
3093
3102
  var n = t.exports = function(e, t, n) {
3094
3103
  typeof t == "function" && (n = t, t = {}), n = t.cb || n;
3095
3104
  var i = typeof n == "function" ? n : n.pre || function() {}, a = n.post || function() {};
@@ -3152,9 +3161,9 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
3152
3161
  function i(e) {
3153
3162
  return e.replace(/~/g, "~0").replace(/\//g, "~1");
3154
3163
  }
3155
- })), zn = /* @__PURE__ */ i(((e) => {
3164
+ })), In = /* @__PURE__ */ i(((e) => {
3156
3165
  Object.defineProperty(e, "__esModule", { value: !0 }), e.getSchemaRefs = e.resolveUrl = e.normalizeId = e._getFullPath = e.getFullPath = e.inlineRef = void 0;
3157
- var t = X(), n = Ln(), r = Rn(), i = /* @__PURE__ */ new Set([
3166
+ var t = Z(), n = Pn(), r = Fn(), i = /* @__PURE__ */ new Set([
3158
3167
  "type",
3159
3168
  "format",
3160
3169
  "pattern",
@@ -3243,9 +3252,9 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
3243
3252
  }
3244
3253
  }
3245
3254
  e.getSchemaRefs = h;
3246
- })), Bn = /* @__PURE__ */ i(((e) => {
3255
+ })), Ln = /* @__PURE__ */ i(((e) => {
3247
3256
  Object.defineProperty(e, "__esModule", { value: !0 }), e.getData = e.KeywordCxt = e.validateFunctionCode = void 0;
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();
3257
+ var t = Dn(), n = An(), r = kn(), i = An(), a = jn(), o = Mn(), s = Nn(), c = X(), l = Tn(), u = In(), d = Z(), f = En();
3249
3258
  function p(e) {
3250
3259
  if (S(e) && (w(e), x(e))) {
3251
3260
  _(e);
@@ -3345,68 +3354,68 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
3345
3354
  function ee(e, t, n, a) {
3346
3355
  let { gen: o, schema: s, data: u, allErrors: f, opts: p, self: m } = e, { RULES: h } = m;
3347
3356
  if (s.$ref && (p.ignoreKeywordsWithRef || !(0, d.schemaHasRulesButRef)(s, h))) {
3348
- o.block(() => le(e, "$ref", h.all.$ref.definition));
3357
+ o.block(() => ce(e, "$ref", h.all.$ref.definition));
3349
3358
  return;
3350
3359
  }
3351
- p.jtd || ne(e, t), o.block(() => {
3360
+ p.jtd || te(e, t), o.block(() => {
3352
3361
  for (let e of h.rules) g(e);
3353
3362
  g(h.post);
3354
3363
  });
3355
3364
  function g(d) {
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}`));
3365
+ (0, r.shouldUseGroup)(s, d) && (d.type ? (o.if((0, i.checkDataType)(d.type, u, p.strictNumbers)), N(e, d), t.length === 1 && t[0] === d.type && n && (o.else(), (0, i.reportTypeError)(e)), o.endIf()) : N(e, d), f || o.if((0, c._)`${l.default.errors} === ${a || 0}`));
3357
3366
  }
3358
3367
  }
3359
- function te(e, t) {
3368
+ function N(e, t) {
3360
3369
  let { gen: n, schema: i, opts: { useDefaults: o } } = e;
3361
3370
  o && (0, a.assignDefaults)(e, t.type), n.block(() => {
3362
- for (let n of t.rules) (0, r.shouldUseRule)(i, n) && le(e, n.keyword, n.definition, t.type);
3371
+ for (let n of t.rules) (0, r.shouldUseRule)(i, n) && ce(e, n.keyword, n.definition, t.type);
3363
3372
  });
3364
3373
  }
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));
3374
+ function te(e, t) {
3375
+ e.schemaEnv.meta || !e.opts.strictTypes || (P(e, t), e.opts.allowUnionTypes || ne(e, t), re(e, e.dataTypes));
3367
3376
  }
3368
- function N(e, t) {
3377
+ function P(e, t) {
3369
3378
  if (t.length) {
3370
3379
  if (!e.dataTypes.length) {
3371
3380
  e.dataTypes = t;
3372
3381
  return;
3373
3382
  }
3374
3383
  t.forEach((t) => {
3375
- oe(e.dataTypes, t) || se(e, `type "${t}" not allowed by context "${e.dataTypes.join(",")}"`);
3376
- }), P(e, t);
3384
+ ie(e.dataTypes, t) || oe(e, `type "${t}" not allowed by context "${e.dataTypes.join(",")}"`);
3385
+ }), ae(e, t);
3377
3386
  }
3378
3387
  }
3379
- function re(e, t) {
3380
- t.length > 1 && !(t.length === 2 && t.includes("null")) && se(e, "use allowUnionTypes to allow union type keyword");
3388
+ function ne(e, t) {
3389
+ t.length > 1 && !(t.length === 2 && t.includes("null")) && oe(e, "use allowUnionTypes to allow union type keyword");
3381
3390
  }
3382
- function ie(e, t) {
3391
+ function re(e, t) {
3383
3392
  let n = e.self.RULES.all;
3384
3393
  for (let i in n) {
3385
3394
  let a = n[i];
3386
3395
  if (typeof a == "object" && (0, r.shouldUseRule)(e.schema, a)) {
3387
3396
  let { type: n } = a.definition;
3388
- n.length && !n.some((e) => ae(t, e)) && se(e, `missing type "${n.join(",")}" for keyword "${i}"`);
3397
+ n.length && !n.some((e) => F(t, e)) && oe(e, `missing type "${n.join(",")}" for keyword "${i}"`);
3389
3398
  }
3390
3399
  }
3391
3400
  }
3392
- function ae(e, t) {
3401
+ function F(e, t) {
3393
3402
  return e.includes(t) || t === "number" && e.includes("integer");
3394
3403
  }
3395
- function oe(e, t) {
3404
+ function ie(e, t) {
3396
3405
  return e.includes(t) || t === "integer" && e.includes("number");
3397
3406
  }
3398
- function P(e, t) {
3407
+ function ae(e, t) {
3399
3408
  let n = [];
3400
- for (let r of e.dataTypes) oe(t, r) ? n.push(r) : t.includes("integer") && r === "number" && n.push("integer");
3409
+ for (let r of e.dataTypes) ie(t, r) ? n.push(r) : t.includes("integer") && r === "number" && n.push("integer");
3401
3410
  e.dataTypes = n;
3402
3411
  }
3403
- function se(e, t) {
3412
+ function oe(e, t) {
3404
3413
  let n = e.schemaEnv.baseId + e.errSchemaPath;
3405
3414
  t += ` at "${n}" (strictTypes)`, (0, d.checkStrictMode)(e, t, e.opts.strictTypes);
3406
3415
  }
3407
- var ce = class {
3416
+ var se = class {
3408
3417
  constructor(e, t, n) {
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));
3418
+ 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", de(this.$data, e));
3410
3419
  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)}`);
3411
3420
  ("code" in t ? t.trackErrors : t.errors !== !1) && (this.errsCount = e.gen.const("_errs", l.default.errors));
3412
3421
  }
@@ -3504,20 +3513,20 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
3504
3513
  if (n.opts.unevaluated && (n.props !== !0 || n.items !== !0)) return r.if(t, () => this.mergeEvaluated(e, c.Name)), !0;
3505
3514
  }
3506
3515
  };
3507
- e.KeywordCxt = ce;
3508
- function le(e, t, n, r) {
3509
- let i = new ce(e, n, t);
3516
+ e.KeywordCxt = se;
3517
+ function ce(e, t, n, r) {
3518
+ let i = new se(e, n, t);
3510
3519
  "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);
3511
3520
  }
3512
- var ue = /^\/(?:[^~]|~0|~1)*$/, de = /^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;
3513
- function fe(e, { dataLevel: t, dataNames: n, dataPathArr: r }) {
3521
+ var le = /^\/(?:[^~]|~0|~1)*$/, ue = /^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;
3522
+ function de(e, { dataLevel: t, dataNames: n, dataPathArr: r }) {
3514
3523
  let i, a;
3515
3524
  if (e === "") return l.default.rootData;
3516
3525
  if (e[0] === "/") {
3517
- if (!ue.test(e)) throw Error(`Invalid JSON-pointer: ${e}`);
3526
+ if (!le.test(e)) throw Error(`Invalid JSON-pointer: ${e}`);
3518
3527
  i = e, a = l.default.rootData;
3519
3528
  } else {
3520
- let o = de.exec(e);
3529
+ let o = ue.exec(e);
3521
3530
  if (!o) throw Error(`Invalid JSON-pointer: ${e}`);
3522
3531
  let s = +o[1];
3523
3532
  if (i = o[2], i === "#") {
@@ -3534,24 +3543,24 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
3534
3543
  return `Cannot access ${e} ${n} levels up, current level is ${t}`;
3535
3544
  }
3536
3545
  }
3537
- e.getData = fe;
3538
- })), Vn = /* @__PURE__ */ i(((e) => {
3546
+ e.getData = de;
3547
+ })), Rn = /* @__PURE__ */ i(((e) => {
3539
3548
  Object.defineProperty(e, "__esModule", { value: !0 }), e.default = class extends Error {
3540
3549
  constructor(e) {
3541
3550
  super("validation failed"), this.errors = e, this.ajv = this.validation = !0;
3542
3551
  }
3543
3552
  };
3544
- })), Hn = /* @__PURE__ */ i(((e) => {
3553
+ })), zn = /* @__PURE__ */ i(((e) => {
3545
3554
  Object.defineProperty(e, "__esModule", { value: !0 });
3546
- var t = zn();
3555
+ var t = In();
3547
3556
  e.default = class extends Error {
3548
3557
  constructor(e, n, r, i) {
3549
3558
  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));
3550
3559
  }
3551
3560
  };
3552
- })), Un = /* @__PURE__ */ i(((e) => {
3561
+ })), Bn = /* @__PURE__ */ i(((e) => {
3553
3562
  Object.defineProperty(e, "__esModule", { value: !0 }), e.resolveSchema = e.getCompilingSchema = e.resolveRef = e.compileSchema = e.SchemaEnv = void 0;
3554
- var t = Y(), n = Vn(), r = Z(), i = zn(), a = X(), o = Bn(), s = class {
3563
+ var t = X(), n = Rn(), r = Tn(), i = In(), a = Z(), o = Ln(), s = class {
3555
3564
  constructor(e) {
3556
3565
  this.refs = {}, this.dynamicAnchors = {};
3557
3566
  let t;
@@ -3710,27 +3719,27 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
3710
3719
  baseId: t
3711
3720
  }), o.schema !== o.root.schema) return o;
3712
3721
  }
3713
- })), Wn = /* @__PURE__ */ r({
3714
- $id: () => Gn,
3722
+ })), Vn = /* @__PURE__ */ r({
3723
+ $id: () => Hn,
3715
3724
  additionalProperties: () => !1,
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: {
3725
+ default: () => qn,
3726
+ description: () => Un,
3727
+ properties: () => Kn,
3728
+ required: () => Gn,
3729
+ type: () => Wn
3730
+ }), Hn, Un, Wn, Gn, Kn, qn, Jn = t((() => {
3731
+ Hn = "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#", Un = "Meta-schema for $data reference (JSON AnySchema extension proposal)", Wn = "object", Gn = ["$data"], Kn = { $data: {
3723
3732
  type: "string",
3724
3733
  anyOf: [{ format: "relative-json-pointer" }, { format: "json-pointer" }]
3725
- } }, Xn = {
3726
- $id: Gn,
3727
- description: Kn,
3728
- type: qn,
3729
- required: Jn,
3730
- properties: Yn,
3734
+ } }, qn = {
3735
+ $id: Hn,
3736
+ description: Un,
3737
+ type: Wn,
3738
+ required: Gn,
3739
+ properties: Kn,
3731
3740
  additionalProperties: !1
3732
3741
  };
3733
- })), Qn = /* @__PURE__ */ i(((e, t) => {
3742
+ })), Yn = /* @__PURE__ */ i(((e, t) => {
3734
3743
  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);
3735
3744
  {
3736
3745
  let e = "0123456789ABCDEF";
@@ -4007,7 +4016,7 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
4007
4016
  function ee(e) {
4008
4017
  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;
4009
4018
  }
4010
- function te(e) {
4019
+ function N(e) {
4011
4020
  let t = "";
4012
4021
  for (let n = 0; n < e.length; n++) {
4013
4022
  let r = e[n];
@@ -4032,7 +4041,7 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
4032
4041
  }
4033
4042
  return t;
4034
4043
  }
4035
- function ne(e) {
4044
+ function te(e) {
4036
4045
  let t = "";
4037
4046
  for (let n = 0; n < e.length; n++) {
4038
4047
  if (e[n] === "%" && n + 2 < e.length) {
@@ -4046,7 +4055,7 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
4046
4055
  }
4047
4056
  return t;
4048
4057
  }
4049
- function N(e) {
4058
+ function P(e) {
4050
4059
  let t = [];
4051
4060
  if (e.userinfo !== void 0 && (t.push(A(e.userinfo)), t.push("@")), e.host !== void 0) {
4052
4061
  let n = e.host;
@@ -4060,24 +4069,24 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
4060
4069
  }
4061
4070
  t.exports = {
4062
4071
  nonSimpleDomain: h,
4063
- recomposeAuthority: N,
4072
+ recomposeAuthority: P,
4064
4073
  reescapeHostDelimiters: T,
4065
4074
  normalizePercentEncoding: E,
4066
4075
  normalizePathEncoding: D,
4067
4076
  serializePathEncoding: O,
4068
- normalizeQueryFragmentEncoding: te,
4077
+ normalizeQueryFragmentEncoding: N,
4069
4078
  encodeUserinfo: A,
4070
4079
  encodeQuery: j,
4071
4080
  encodeFragment: M,
4072
- escapePreservingEscapes: ne,
4081
+ escapePreservingEscapes: te,
4073
4082
  removeDotSegments: x,
4074
4083
  isIPv4: r,
4075
4084
  isUUID: n,
4076
4085
  normalizeIPv6: y,
4077
4086
  stringArrayToHexStripped: d
4078
4087
  };
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 = [
4088
+ })), Xn = /* @__PURE__ */ i(((e, t) => {
4089
+ var { isUUID: n } = Yn(), r = /^([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-./:;=@]|%[\da-f]{2})+)$/iu, i = [
4081
4090
  "http",
4082
4091
  "https",
4083
4092
  "ws",
@@ -4182,8 +4191,8 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
4182
4191
  isValidSchemeName: a,
4183
4192
  getSchemeHandler: y
4184
4193
  };
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.";
4194
+ })), Zn = /* @__PURE__ */ i(((e, t) => {
4195
+ 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 } = Yn(), { SCHEMES: m, getSchemeHandler: h } = Xn(), g = /^[A-Za-z][A-Za-z0-9+.-]*$/u, _ = "URI scheme is malformed.";
4187
4196
  function v(e) {
4188
4197
  let t = unescape(String(e));
4189
4198
  if (!g.test(t)) throw TypeError(_);
@@ -4206,7 +4215,7 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
4206
4215
  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;
4207
4216
  }
4208
4217
  function S(e, t, n) {
4209
- let r = ne(e, n), i = ne(t, n);
4218
+ let r = te(e, n), i = te(t, n);
4210
4219
  return r !== void 0 && i !== void 0 && r === i;
4211
4220
  }
4212
4221
  function C(e, t) {
@@ -4313,9 +4322,9 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
4313
4322
  return j(e, t).parsed;
4314
4323
  }
4315
4324
  function ee(e, t) {
4316
- return te(e, t).normalized;
4325
+ return N(e, t).normalized;
4317
4326
  }
4318
- function te(e, t) {
4327
+ function N(e, t) {
4319
4328
  let { parsed: n, malformedAuthorityOrPort: r, malformedPercentEncoding: i, malformedSchemeSpecific: a, malformedHost: o, malformedScheme: s } = j(e, t);
4320
4329
  return {
4321
4330
  normalized: r || i || a || o || s ? e : C(n, t),
@@ -4326,7 +4335,7 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
4326
4335
  malformedScheme: s
4327
4336
  };
4328
4337
  }
4329
- function ne(e, t) {
4338
+ function te(e, t) {
4330
4339
  if (typeof e != "string" && typeof e != "object") return;
4331
4340
  let n;
4332
4341
  try {
@@ -4334,10 +4343,10 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
4334
4343
  } catch {
4335
4344
  return;
4336
4345
  }
4337
- let { normalized: r, malformedAuthorityOrPort: i, malformedPercentEncoding: a, malformedSchemeSpecific: o, malformedHost: s, malformedScheme: c } = te(n, t);
4346
+ let { normalized: r, malformedAuthorityOrPort: i, malformedPercentEncoding: a, malformedSchemeSpecific: o, malformedHost: s, malformedScheme: c } = N(n, t);
4338
4347
  return i || a || o || s || c ? void 0 : r;
4339
4348
  }
4340
- var N = {
4349
+ var P = {
4341
4350
  SCHEMES: m,
4342
4351
  normalize: y,
4343
4352
  resolve: b,
@@ -4346,21 +4355,21 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
4346
4355
  serialize: C,
4347
4356
  parse: M
4348
4357
  };
4349
- t.exports = N, t.exports.default = N, t.exports.fastUri = N;
4350
- })), tr = /* @__PURE__ */ i(((e) => {
4358
+ t.exports = P, t.exports.default = P, t.exports.fastUri = P;
4359
+ })), Qn = /* @__PURE__ */ i(((e) => {
4351
4360
  Object.defineProperty(e, "__esModule", { value: !0 });
4352
- var t = er();
4361
+ var t = Zn();
4353
4362
  t.code = "require(\"ajv/dist/runtime/uri\").default", e.default = t;
4354
- })), nr = /* @__PURE__ */ i(((t) => {
4363
+ })), $n = /* @__PURE__ */ i(((t) => {
4355
4364
  Object.defineProperty(t, "__esModule", { value: !0 }), t.CodeGen = t.Name = t.nil = t.stringify = t.str = t._ = t.KeywordCxt = void 0;
4356
- var n = Bn();
4365
+ var n = Ln();
4357
4366
  Object.defineProperty(t, "KeywordCxt", {
4358
4367
  enumerable: !0,
4359
4368
  get: function() {
4360
4369
  return n.KeywordCxt;
4361
4370
  }
4362
4371
  });
4363
- var r = Y();
4372
+ var r = X();
4364
4373
  Object.defineProperty(t, "_", {
4365
4374
  enumerable: !0,
4366
4375
  get: function() {
@@ -4392,7 +4401,7 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
4392
4401
  return r.CodeGen;
4393
4402
  }
4394
4403
  });
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);
4404
+ var i = Rn(), a = zn(), o = On(), s = Bn(), c = X(), l = In(), u = An(), d = Z(), f = (Jn(), e(Vn).default), p = Qn(), m = (e, t) => new RegExp(e, t);
4396
4405
  m.code = "new RegExp";
4397
4406
  var h = [
4398
4407
  "removeAdditional",
@@ -4608,7 +4617,7 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
4608
4617
  if (t = e, n = t.keyword, Array.isArray(n) && !n.length) throw Error("addKeywords: keyword must be string or non-empty array");
4609
4618
  } else throw Error("invalid addKeywords parameters");
4610
4619
  if (j.call(this, n, t), !t) return (0, d.eachItem)(n, (e) => M.call(this, e)), this;
4611
- te.call(this, t);
4620
+ N.call(this, t);
4612
4621
  let r = {
4613
4622
  ...t,
4614
4623
  type: (0, u.getJSONTypes)(t.type),
@@ -4645,7 +4654,7 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
4645
4654
  let t = n[e];
4646
4655
  if (typeof t != "object") continue;
4647
4656
  let { $data: r } = t.definition, a = i[e];
4648
- r && a && (i[e] = N(a));
4657
+ r && a && (i[e] = P(a));
4649
4658
  }
4650
4659
  }
4651
4660
  return e;
@@ -4772,24 +4781,24 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
4772
4781
  let r = e.rules.findIndex((e) => e.keyword === n);
4773
4782
  r >= 0 ? e.rules.splice(r, 0, t) : (e.rules.push(t), this.logger.warn(`rule ${n} is not defined`));
4774
4783
  }
4775
- function te(e) {
4784
+ function N(e) {
4776
4785
  let { metaSchema: t } = e;
4777
- t !== void 0 && (e.$data && this.opts.$data && (t = N(t)), e.validateSchema = this.compile(t, !0));
4786
+ t !== void 0 && (e.$data && this.opts.$data && (t = P(t)), e.validateSchema = this.compile(t, !0));
4778
4787
  }
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] };
4788
+ var te = { $ref: "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#" };
4789
+ function P(e) {
4790
+ return { anyOf: [e, te] };
4782
4791
  }
4783
- })), rr = /* @__PURE__ */ i(((e) => {
4792
+ })), er = /* @__PURE__ */ i(((e) => {
4784
4793
  Object.defineProperty(e, "__esModule", { value: !0 }), e.default = {
4785
4794
  keyword: "id",
4786
4795
  code() {
4787
4796
  throw Error("NOT SUPPORTED: keyword \"id\", use \"$id\" for schema ID");
4788
4797
  }
4789
4798
  };
4790
- })), ir = /* @__PURE__ */ i(((e) => {
4799
+ })), tr = /* @__PURE__ */ i(((e) => {
4791
4800
  Object.defineProperty(e, "__esModule", { value: !0 }), e.callRef = e.getValidate = void 0;
4792
- var t = Hn(), n = Q(), r = Y(), i = Z(), a = Un(), o = X(), s = {
4801
+ var t = zn(), n = Q(), r = X(), i = Tn(), a = Bn(), o = Z(), s = {
4793
4802
  keyword: "$ref",
4794
4803
  schemaType: "string",
4795
4804
  code(e) {
@@ -4866,9 +4875,9 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
4866
4875
  }
4867
4876
  }
4868
4877
  e.callRef = l, e.default = s;
4869
- })), ar = /* @__PURE__ */ i(((e) => {
4878
+ })), nr = /* @__PURE__ */ i(((e) => {
4870
4879
  Object.defineProperty(e, "__esModule", { value: !0 });
4871
- var t = rr(), n = ir();
4880
+ var t = er(), n = tr();
4872
4881
  e.default = [
4873
4882
  "$schema",
4874
4883
  "$id",
@@ -4879,9 +4888,9 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
4879
4888
  t.default,
4880
4889
  n.default
4881
4890
  ];
4882
- })), or = /* @__PURE__ */ i(((e) => {
4891
+ })), rr = /* @__PURE__ */ i(((e) => {
4883
4892
  Object.defineProperty(e, "__esModule", { value: !0 });
4884
- var t = Y(), n = t.operators, r = {
4893
+ var t = X(), n = t.operators, r = {
4885
4894
  maximum: {
4886
4895
  okStr: "<=",
4887
4896
  ok: n.LTE,
@@ -4917,9 +4926,9 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
4917
4926
  e.fail$data((0, t._)`${i} ${r[n].fail} ${a} || isNaN(${i})`);
4918
4927
  }
4919
4928
  };
4920
- })), sr = /* @__PURE__ */ i(((e) => {
4929
+ })), ir = /* @__PURE__ */ i(((e) => {
4921
4930
  Object.defineProperty(e, "__esModule", { value: !0 });
4922
- var t = Y();
4931
+ var t = X();
4923
4932
  e.default = {
4924
4933
  keyword: "multipleOf",
4925
4934
  type: "number",
@@ -4934,7 +4943,7 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
4934
4943
  e.fail$data((0, t._)`(${i} === 0 || (${s} = ${r}/${i}, ${c}))`);
4935
4944
  }
4936
4945
  };
4937
- })), cr = /* @__PURE__ */ i(((e) => {
4946
+ })), ar = /* @__PURE__ */ i(((e) => {
4938
4947
  Object.defineProperty(e, "__esModule", { value: !0 });
4939
4948
  function t(e) {
4940
4949
  let t = e.length, n = 0, r = 0, i;
@@ -4942,9 +4951,9 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
4942
4951
  return n;
4943
4952
  }
4944
4953
  e.default = t, t.code = "require(\"ajv/dist/runtime/ucs2length\").default";
4945
- })), lr = /* @__PURE__ */ i(((e) => {
4954
+ })), or = /* @__PURE__ */ i(((e) => {
4946
4955
  Object.defineProperty(e, "__esModule", { value: !0 });
4947
- var t = Y(), n = X(), r = cr();
4956
+ var t = X(), n = Z(), r = ar();
4948
4957
  e.default = {
4949
4958
  keyword: ["maxLength", "minLength"],
4950
4959
  type: "string",
@@ -4962,9 +4971,9 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
4962
4971
  e.fail$data((0, t._)`${l} ${c} ${o}`);
4963
4972
  }
4964
4973
  };
4965
- })), ur = /* @__PURE__ */ i(((e) => {
4974
+ })), sr = /* @__PURE__ */ i(((e) => {
4966
4975
  Object.defineProperty(e, "__esModule", { value: !0 });
4967
- var t = Q(), n = X(), r = Y();
4976
+ var t = Q(), n = Z(), r = X();
4968
4977
  e.default = {
4969
4978
  keyword: "pattern",
4970
4979
  type: "string",
@@ -4985,9 +4994,9 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
4985
4994
  }
4986
4995
  }
4987
4996
  };
4988
- })), dr = /* @__PURE__ */ i(((e) => {
4997
+ })), cr = /* @__PURE__ */ i(((e) => {
4989
4998
  Object.defineProperty(e, "__esModule", { value: !0 });
4990
- var t = Y();
4999
+ var t = X();
4991
5000
  e.default = {
4992
5001
  keyword: ["maxProperties", "minProperties"],
4993
5002
  type: "object",
@@ -5005,9 +5014,9 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
5005
5014
  e.fail$data((0, t._)`Object.keys(${r}).length ${a} ${i}`);
5006
5015
  }
5007
5016
  };
5008
- })), fr = /* @__PURE__ */ i(((e) => {
5017
+ })), lr = /* @__PURE__ */ i(((e) => {
5009
5018
  Object.defineProperty(e, "__esModule", { value: !0 });
5010
- var t = Q(), n = Y(), r = X();
5019
+ var t = Q(), n = X(), r = Z();
5011
5020
  e.default = {
5012
5021
  keyword: "required",
5013
5022
  type: "object",
@@ -5053,9 +5062,9 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
5053
5062
  }
5054
5063
  }
5055
5064
  };
5056
- })), pr = /* @__PURE__ */ i(((e) => {
5065
+ })), ur = /* @__PURE__ */ i(((e) => {
5057
5066
  Object.defineProperty(e, "__esModule", { value: !0 });
5058
- var t = Y();
5067
+ var t = X();
5059
5068
  e.default = {
5060
5069
  keyword: ["maxItems", "minItems"],
5061
5070
  type: "array",
@@ -5073,13 +5082,13 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
5073
5082
  e.fail$data((0, t._)`${r}.length ${a} ${i}`);
5074
5083
  }
5075
5084
  };
5076
- })), mr = /* @__PURE__ */ i(((e) => {
5085
+ })), dr = /* @__PURE__ */ i(((e) => {
5077
5086
  Object.defineProperty(e, "__esModule", { value: !0 });
5078
- var t = Ln();
5087
+ var t = Pn();
5079
5088
  t.code = "require(\"ajv/dist/runtime/equal\").default", e.default = t;
5080
- })), hr = /* @__PURE__ */ i(((e) => {
5089
+ })), fr = /* @__PURE__ */ i(((e) => {
5081
5090
  Object.defineProperty(e, "__esModule", { value: !0 });
5082
- var t = Nn(), n = Y(), r = X(), i = mr();
5091
+ var t = An(), n = X(), r = Z(), i = dr();
5083
5092
  e.default = {
5084
5093
  keyword: "uniqueItems",
5085
5094
  type: "array",
@@ -5120,9 +5129,9 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
5120
5129
  }
5121
5130
  }
5122
5131
  };
5123
- })), gr = /* @__PURE__ */ i(((e) => {
5132
+ })), pr = /* @__PURE__ */ i(((e) => {
5124
5133
  Object.defineProperty(e, "__esModule", { value: !0 });
5125
- var t = Y(), n = X(), r = mr();
5134
+ var t = X(), n = Z(), r = dr();
5126
5135
  e.default = {
5127
5136
  keyword: "const",
5128
5137
  $data: !0,
@@ -5135,9 +5144,9 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
5135
5144
  o || c && typeof c == "object" ? e.fail$data((0, t._)`!${(0, n.useFunc)(i, r.default)}(${a}, ${s})`) : e.fail((0, t._)`${c} !== ${a}`);
5136
5145
  }
5137
5146
  };
5138
- })), _r = /* @__PURE__ */ i(((e) => {
5147
+ })), mr = /* @__PURE__ */ i(((e) => {
5139
5148
  Object.defineProperty(e, "__esModule", { value: !0 });
5140
- var t = Y(), n = X(), r = mr();
5149
+ var t = X(), n = Z(), r = dr();
5141
5150
  e.default = {
5142
5151
  keyword: "enum",
5143
5152
  schemaType: "array",
@@ -5167,9 +5176,9 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
5167
5176
  }
5168
5177
  }
5169
5178
  };
5170
- })), vr = /* @__PURE__ */ i(((e) => {
5179
+ })), hr = /* @__PURE__ */ i(((e) => {
5171
5180
  Object.defineProperty(e, "__esModule", { value: !0 });
5172
- var t = or(), n = sr(), r = lr(), i = ur(), a = dr(), o = fr(), s = pr(), c = hr(), l = gr(), u = _r();
5181
+ var t = rr(), n = ir(), r = or(), i = sr(), a = cr(), o = lr(), s = ur(), c = fr(), l = pr(), u = mr();
5173
5182
  e.default = [
5174
5183
  t.default,
5175
5184
  n.default,
@@ -5190,9 +5199,9 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
5190
5199
  l.default,
5191
5200
  u.default
5192
5201
  ];
5193
- })), yr = /* @__PURE__ */ i(((e) => {
5202
+ })), gr = /* @__PURE__ */ i(((e) => {
5194
5203
  Object.defineProperty(e, "__esModule", { value: !0 }), e.validateAdditionalItems = void 0;
5195
- var t = Y(), n = X(), r = {
5204
+ var t = X(), n = Z(), r = {
5196
5205
  keyword: "additionalItems",
5197
5206
  type: "array",
5198
5207
  schemaType: ["boolean", "object"],
@@ -5230,9 +5239,9 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
5230
5239
  }
5231
5240
  }
5232
5241
  e.validateAdditionalItems = i, e.default = r;
5233
- })), br = /* @__PURE__ */ i(((e) => {
5242
+ })), _r = /* @__PURE__ */ i(((e) => {
5234
5243
  Object.defineProperty(e, "__esModule", { value: !0 }), e.validateTuple = void 0;
5235
- var t = Y(), n = X(), r = Q(), i = {
5244
+ var t = X(), n = Z(), r = Q(), i = {
5236
5245
  keyword: "items",
5237
5246
  type: "array",
5238
5247
  schemaType: [
@@ -5267,9 +5276,9 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
5267
5276
  }
5268
5277
  }
5269
5278
  e.validateTuple = a, e.default = i;
5270
- })), xr = /* @__PURE__ */ i(((e) => {
5279
+ })), vr = /* @__PURE__ */ i(((e) => {
5271
5280
  Object.defineProperty(e, "__esModule", { value: !0 });
5272
- var t = br();
5281
+ var t = _r();
5273
5282
  e.default = {
5274
5283
  keyword: "prefixItems",
5275
5284
  type: "array",
@@ -5277,9 +5286,9 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
5277
5286
  before: "uniqueItems",
5278
5287
  code: (e) => (0, t.validateTuple)(e, "items")
5279
5288
  };
5280
- })), Sr = /* @__PURE__ */ i(((e) => {
5289
+ })), yr = /* @__PURE__ */ i(((e) => {
5281
5290
  Object.defineProperty(e, "__esModule", { value: !0 });
5282
- var t = Y(), n = X(), r = Q(), i = yr();
5291
+ var t = X(), n = Z(), r = Q(), i = gr();
5283
5292
  e.default = {
5284
5293
  keyword: "items",
5285
5294
  type: "array",
@@ -5294,9 +5303,9 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
5294
5303
  o.items = !0, !(0, n.alwaysValidSchema)(o, t) && (s ? (0, i.validateAdditionalItems)(e, s) : e.ok((0, r.validateArray)(e)));
5295
5304
  }
5296
5305
  };
5297
- })), Cr = /* @__PURE__ */ i(((e) => {
5306
+ })), br = /* @__PURE__ */ i(((e) => {
5298
5307
  Object.defineProperty(e, "__esModule", { value: !0 });
5299
- var t = Y(), n = X();
5308
+ var t = X(), n = Z();
5300
5309
  e.default = {
5301
5310
  keyword: "contains",
5302
5311
  type: "array",
@@ -5349,9 +5358,9 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
5349
5358
  }
5350
5359
  }
5351
5360
  };
5352
- })), wr = /* @__PURE__ */ i(((e) => {
5361
+ })), xr = /* @__PURE__ */ i(((e) => {
5353
5362
  Object.defineProperty(e, "__esModule", { value: !0 }), e.validateSchemaDeps = e.validatePropertyDeps = e.error = void 0;
5354
- var t = Y(), n = X(), r = Q();
5363
+ var t = X(), n = Z(), r = Q();
5355
5364
  e.error = {
5356
5365
  message: ({ params: { property: e, depsCount: n, deps: r } }) => {
5357
5366
  let i = n === 1 ? "property" : "properties";
@@ -5410,9 +5419,9 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
5410
5419
  }, () => i.var(c, !0)), e.ok(c));
5411
5420
  }
5412
5421
  e.validateSchemaDeps = s, e.default = i;
5413
- })), Tr = /* @__PURE__ */ i(((e) => {
5422
+ })), Sr = /* @__PURE__ */ i(((e) => {
5414
5423
  Object.defineProperty(e, "__esModule", { value: !0 });
5415
- var t = Y(), n = X();
5424
+ var t = X(), n = Z();
5416
5425
  e.default = {
5417
5426
  keyword: "propertyNames",
5418
5427
  type: "object",
@@ -5438,9 +5447,9 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
5438
5447
  }), e.ok(s);
5439
5448
  }
5440
5449
  };
5441
- })), Er = /* @__PURE__ */ i(((e) => {
5450
+ })), Cr = /* @__PURE__ */ i(((e) => {
5442
5451
  Object.defineProperty(e, "__esModule", { value: !0 });
5443
- var t = Q(), n = Y(), r = Z(), i = X();
5452
+ var t = Q(), n = X(), r = Tn(), i = Z();
5444
5453
  e.default = {
5445
5454
  keyword: "additionalProperties",
5446
5455
  type: ["object"],
@@ -5505,9 +5514,9 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
5505
5514
  }
5506
5515
  }
5507
5516
  };
5508
- })), Dr = /* @__PURE__ */ i(((e) => {
5517
+ })), wr = /* @__PURE__ */ i(((e) => {
5509
5518
  Object.defineProperty(e, "__esModule", { value: !0 });
5510
- var t = Bn(), n = Q(), r = X(), i = Er();
5519
+ var t = Ln(), n = Q(), r = Z(), i = Cr();
5511
5520
  e.default = {
5512
5521
  keyword: "properties",
5513
5522
  type: "object",
@@ -5534,9 +5543,9 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
5534
5543
  }
5535
5544
  }
5536
5545
  };
5537
- })), Or = /* @__PURE__ */ i(((e) => {
5546
+ })), Tr = /* @__PURE__ */ i(((e) => {
5538
5547
  Object.defineProperty(e, "__esModule", { value: !0 });
5539
- var t = Q(), n = Y(), r = X(), i = X();
5548
+ var t = Q(), n = X(), r = Z(), i = Z();
5540
5549
  e.default = {
5541
5550
  keyword: "patternProperties",
5542
5551
  type: "object",
@@ -5569,9 +5578,9 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
5569
5578
  }
5570
5579
  }
5571
5580
  };
5572
- })), kr = /* @__PURE__ */ i(((e) => {
5581
+ })), Er = /* @__PURE__ */ i(((e) => {
5573
5582
  Object.defineProperty(e, "__esModule", { value: !0 });
5574
- var t = X();
5583
+ var t = Z();
5575
5584
  e.default = {
5576
5585
  keyword: "not",
5577
5586
  schemaType: ["object", "boolean"],
@@ -5592,7 +5601,7 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
5592
5601
  },
5593
5602
  error: { message: "must NOT be valid" }
5594
5603
  };
5595
- })), Ar = /* @__PURE__ */ i(((e) => {
5604
+ })), Dr = /* @__PURE__ */ i(((e) => {
5596
5605
  Object.defineProperty(e, "__esModule", { value: !0 }), e.default = {
5597
5606
  keyword: "anyOf",
5598
5607
  schemaType: "array",
@@ -5600,9 +5609,9 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
5600
5609
  code: Q().validateUnion,
5601
5610
  error: { message: "must match a schema in anyOf" }
5602
5611
  };
5603
- })), jr = /* @__PURE__ */ i(((e) => {
5612
+ })), Or = /* @__PURE__ */ i(((e) => {
5604
5613
  Object.defineProperty(e, "__esModule", { value: !0 });
5605
- var t = Y(), n = X();
5614
+ var t = X(), n = Z();
5606
5615
  e.default = {
5607
5616
  keyword: "oneOf",
5608
5617
  schemaType: "array",
@@ -5632,9 +5641,9 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
5632
5641
  }
5633
5642
  }
5634
5643
  };
5635
- })), Mr = /* @__PURE__ */ i(((e) => {
5644
+ })), kr = /* @__PURE__ */ i(((e) => {
5636
5645
  Object.defineProperty(e, "__esModule", { value: !0 });
5637
- var t = X();
5646
+ var t = Z();
5638
5647
  e.default = {
5639
5648
  keyword: "allOf",
5640
5649
  schemaType: "array",
@@ -5653,9 +5662,9 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
5653
5662
  });
5654
5663
  }
5655
5664
  };
5656
- })), Nr = /* @__PURE__ */ i(((e) => {
5665
+ })), Ar = /* @__PURE__ */ i(((e) => {
5657
5666
  Object.defineProperty(e, "__esModule", { value: !0 });
5658
- var t = Y(), n = X(), r = {
5667
+ var t = X(), n = Z(), r = {
5659
5668
  keyword: "if",
5660
5669
  schemaType: ["object", "boolean"],
5661
5670
  trackErrors: !0,
@@ -5696,9 +5705,9 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
5696
5705
  return r !== void 0 && !(0, n.alwaysValidSchema)(e, r);
5697
5706
  }
5698
5707
  e.default = r;
5699
- })), Pr = /* @__PURE__ */ i(((e) => {
5708
+ })), jr = /* @__PURE__ */ i(((e) => {
5700
5709
  Object.defineProperty(e, "__esModule", { value: !0 });
5701
- var t = X();
5710
+ var t = Z();
5702
5711
  e.default = {
5703
5712
  keyword: ["then", "else"],
5704
5713
  schemaType: ["object", "boolean"],
@@ -5706,9 +5715,9 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
5706
5715
  n.if === void 0 && (0, t.checkStrictMode)(r, `"${e}" without "if" is ignored`);
5707
5716
  }
5708
5717
  };
5709
- })), Fr = /* @__PURE__ */ i(((e) => {
5718
+ })), Mr = /* @__PURE__ */ i(((e) => {
5710
5719
  Object.defineProperty(e, "__esModule", { value: !0 });
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();
5720
+ var t = gr(), n = vr(), r = _r(), i = yr(), a = br(), o = xr(), s = Sr(), c = Cr(), l = wr(), u = Tr(), d = Er(), f = Dr(), p = Or(), m = kr(), h = Ar(), g = jr();
5712
5721
  function _(e = !1) {
5713
5722
  let _ = [
5714
5723
  d.default,
@@ -5726,9 +5735,9 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
5726
5735
  return e ? _.push(n.default, i.default) : _.push(t.default, r.default), _.push(a.default), _;
5727
5736
  }
5728
5737
  e.default = _;
5729
- })), Ir = /* @__PURE__ */ i(((e) => {
5738
+ })), Nr = /* @__PURE__ */ i(((e) => {
5730
5739
  Object.defineProperty(e, "__esModule", { value: !0 });
5731
- var t = Y();
5740
+ var t = X();
5732
5741
  e.default = {
5733
5742
  keyword: "format",
5734
5743
  type: ["number", "string"],
@@ -5801,9 +5810,9 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
5801
5810
  }
5802
5811
  }
5803
5812
  };
5804
- })), Lr = /* @__PURE__ */ i(((e) => {
5805
- Object.defineProperty(e, "__esModule", { value: !0 }), e.default = [Ir().default];
5806
- })), Rr = /* @__PURE__ */ i(((e) => {
5813
+ })), Pr = /* @__PURE__ */ i(((e) => {
5814
+ Object.defineProperty(e, "__esModule", { value: !0 }), e.default = [Nr().default];
5815
+ })), Fr = /* @__PURE__ */ i(((e) => {
5807
5816
  Object.defineProperty(e, "__esModule", { value: !0 }), e.contentVocabulary = e.metadataVocabulary = void 0, e.metadataVocabulary = [
5808
5817
  "title",
5809
5818
  "description",
@@ -5817,9 +5826,9 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
5817
5826
  "contentEncoding",
5818
5827
  "contentSchema"
5819
5828
  ];
5820
- })), zr = /* @__PURE__ */ i(((e) => {
5829
+ })), Ir = /* @__PURE__ */ i(((e) => {
5821
5830
  Object.defineProperty(e, "__esModule", { value: !0 });
5822
- var t = ar(), n = vr(), r = Fr(), i = Lr(), a = Rr();
5831
+ var t = nr(), n = hr(), r = Mr(), i = Pr(), a = Fr();
5823
5832
  e.default = [
5824
5833
  t.default,
5825
5834
  n.default,
@@ -5828,15 +5837,15 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
5828
5837
  a.metadataVocabulary,
5829
5838
  a.contentVocabulary
5830
5839
  ];
5831
- })), Br = /* @__PURE__ */ i(((e) => {
5840
+ })), Lr = /* @__PURE__ */ i(((e) => {
5832
5841
  Object.defineProperty(e, "__esModule", { value: !0 }), e.DiscrError = void 0;
5833
5842
  var t;
5834
5843
  (function(e) {
5835
5844
  e.Tag = "tag", e.Mapping = "mapping";
5836
5845
  })(t || (e.DiscrError = t = {}));
5837
- })), Vr = /* @__PURE__ */ i(((e) => {
5846
+ })), Rr = /* @__PURE__ */ i(((e) => {
5838
5847
  Object.defineProperty(e, "__esModule", { value: !0 });
5839
- var t = Y(), n = Br(), r = Un(), i = Hn(), a = X();
5848
+ var t = X(), n = Lr(), r = Bn(), i = zn(), a = Z();
5840
5849
  e.default = {
5841
5850
  keyword: "discriminator",
5842
5851
  type: "object",
@@ -5904,16 +5913,16 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
5904
5913
  }
5905
5914
  }
5906
5915
  };
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 = {
5916
+ })), zr = /* @__PURE__ */ r({
5917
+ $id: () => Vr,
5918
+ $schema: () => Br,
5919
+ default: () => Kr,
5920
+ definitions: () => Ur,
5921
+ properties: () => Gr,
5922
+ title: () => Hr,
5923
+ type: () => Wr
5924
+ }), Br, Vr, Hr, Ur, Wr, Gr, Kr, qr = t((() => {
5925
+ Br = "http://json-schema.org/draft-07/schema#", Vr = "http://json-schema.org/draft-07/schema#", Hr = "Core schema meta-schema", Ur = {
5917
5926
  schemaArray: {
5918
5927
  type: "array",
5919
5928
  minItems: 1,
@@ -5939,7 +5948,7 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
5939
5948
  uniqueItems: !0,
5940
5949
  default: []
5941
5950
  }
5942
- }, qr = ["object", "boolean"], Jr = {
5951
+ }, Wr = ["object", "boolean"], Gr = {
5943
5952
  $id: {
5944
5953
  type: "string",
5945
5954
  format: "uri-reference"
@@ -6038,18 +6047,18 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
6038
6047
  anyOf: { $ref: "#/definitions/schemaArray" },
6039
6048
  oneOf: { $ref: "#/definitions/schemaArray" },
6040
6049
  not: { $ref: "#" }
6041
- }, Yr = {
6042
- $schema: Ur,
6043
- $id: Wr,
6044
- title: Gr,
6045
- definitions: Kr,
6046
- type: qr,
6047
- properties: Jr,
6050
+ }, Kr = {
6051
+ $schema: Br,
6052
+ $id: Vr,
6053
+ title: Hr,
6054
+ definitions: Ur,
6055
+ type: Wr,
6056
+ properties: Gr,
6048
6057
  default: !0
6049
6058
  };
6050
- })), Zr = /* @__PURE__ */ i(((t, n) => {
6059
+ })), Jr = /* @__PURE__ */ i(((t, n) => {
6051
6060
  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;
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 {
6061
+ var r = $n(), i = Ir(), a = Rr(), o = (qr(), e(zr).default), s = ["/properties"], c = "http://json-schema.org/draft-07/schema", l = class extends r.default {
6053
6062
  _addVocabularies() {
6054
6063
  super._addVocabularies(), i.default.forEach((e) => this.addVocabulary(e)), this.opts.discriminator && this.addKeyword(a.default);
6055
6064
  }
@@ -6063,14 +6072,14 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
6063
6072
  }
6064
6073
  };
6065
6074
  t.Ajv = l, n.exports = t = l, n.exports.Ajv = l, Object.defineProperty(t, "__esModule", { value: !0 }), t.default = l;
6066
- var u = Bn();
6075
+ var u = Ln();
6067
6076
  Object.defineProperty(t, "KeywordCxt", {
6068
6077
  enumerable: !0,
6069
6078
  get: function() {
6070
6079
  return u.KeywordCxt;
6071
6080
  }
6072
6081
  });
6073
- var d = Y();
6082
+ var d = X();
6074
6083
  Object.defineProperty(t, "_", {
6075
6084
  enumerable: !0,
6076
6085
  get: function() {
@@ -6102,21 +6111,21 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
6102
6111
  return d.CodeGen;
6103
6112
  }
6104
6113
  });
6105
- var f = Vn();
6114
+ var f = Rn();
6106
6115
  Object.defineProperty(t, "ValidationError", {
6107
6116
  enumerable: !0,
6108
6117
  get: function() {
6109
6118
  return f.default;
6110
6119
  }
6111
6120
  });
6112
- var p = Hn();
6121
+ var p = zn();
6113
6122
  Object.defineProperty(t, "MissingRefError", {
6114
6123
  enumerable: !0,
6115
6124
  get: function() {
6116
6125
  return p.default;
6117
6126
  }
6118
6127
  });
6119
- })), Qr = /* @__PURE__ */ i(((e) => {
6128
+ })), Yr = /* @__PURE__ */ i(((e) => {
6120
6129
  Object.defineProperty(e, "__esModule", { value: !0 }), e.formatNames = e.fastFormats = e.fullFormats = void 0;
6121
6130
  function t(e, t) {
6122
6131
  return {
@@ -6268,9 +6277,9 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
6268
6277
  return !1;
6269
6278
  }
6270
6279
  }
6271
- })), $r = /* @__PURE__ */ i(((e) => {
6280
+ })), Xr = /* @__PURE__ */ i(((e) => {
6272
6281
  Object.defineProperty(e, "__esModule", { value: !0 }), e.formatLimitDefinition = void 0;
6273
- var t = Zr(), n = Y(), r = n.operators, i = {
6282
+ var t = Jr(), n = X(), r = n.operators, i = {
6274
6283
  formatMaximum: {
6275
6284
  okStr: "<=",
6276
6285
  ok: r.LTE,
@@ -6330,9 +6339,9 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
6330
6339
  },
6331
6340
  dependencies: ["format"]
6332
6341
  }, e.default = (t) => (t.addKeyword(e.formatLimitDefinition), t);
6333
- })), ei = /* @__PURE__ */ i(((e, t) => {
6342
+ })), Zr = /* @__PURE__ */ i(((e, t) => {
6334
6343
  Object.defineProperty(e, "__esModule", { value: !0 });
6335
- var n = Qr(), r = $r(), i = Y(), a = new i.Name("fullFormats"), o = new i.Name("fastFormats"), s = (e, t = { keywords: !0 }) => {
6344
+ var n = Yr(), r = Xr(), i = X(), a = new i.Name("fullFormats"), o = new i.Name("fastFormats"), s = (e, t = { keywords: !0 }) => {
6336
6345
  if (Array.isArray(t)) return c(e, t, n.fullFormats, a), e;
6337
6346
  let [i, s] = t.mode === "fast" ? [n.fastFormats, o] : [n.fullFormats, a];
6338
6347
  return c(e, t.formats || n.formatNames, i, s), t.keywords && (0, r.default)(e), e;
@@ -6348,7 +6357,7 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
6348
6357
  for (let r of t) e.addFormat(r, n[r]);
6349
6358
  }
6350
6359
  t.exports = e = s, Object.defineProperty(e, "__esModule", { value: !0 }), e.default = s;
6351
- })), ti = /* @__PURE__ */ i(((e, t) => {
6360
+ })), Qr = /* @__PURE__ */ i(((e, t) => {
6352
6361
  t.exports = function(e) {
6353
6362
  if (e && e.length) for (let r of e) {
6354
6363
  let e;
@@ -6494,7 +6503,7 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
6494
6503
  r.message = e;
6495
6504
  }
6496
6505
  };
6497
- })), ni = /* @__PURE__ */ i(((e, t) => {
6506
+ })), $r = /* @__PURE__ */ i(((e, t) => {
6498
6507
  t.exports = function(e) {
6499
6508
  if (e && e.length) for (let r of e) {
6500
6509
  let e;
@@ -6640,7 +6649,7 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
6640
6649
  r.message = e;
6641
6650
  }
6642
6651
  };
6643
- })), ri = /* @__PURE__ */ i(((e, t) => {
6652
+ })), ei = /* @__PURE__ */ i(((e, t) => {
6644
6653
  t.exports = function(e) {
6645
6654
  if (e && e.length) for (let r of e) {
6646
6655
  let e;
@@ -6786,7 +6795,7 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
6786
6795
  r.message = e;
6787
6796
  }
6788
6797
  };
6789
- })), ii = /* @__PURE__ */ i(((e, t) => {
6798
+ })), ti = /* @__PURE__ */ i(((e, t) => {
6790
6799
  t.exports = function(e) {
6791
6800
  if (e && e.length) for (let r of e) {
6792
6801
  let e;
@@ -6932,7 +6941,7 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
6932
6941
  r.message = e;
6933
6942
  }
6934
6943
  };
6935
- })), ai = /* @__PURE__ */ i(((e, t) => {
6944
+ })), ni = /* @__PURE__ */ i(((e, t) => {
6936
6945
  t.exports = function(e) {
6937
6946
  if (e && e.length) for (let r of e) {
6938
6947
  let e;
@@ -7078,7 +7087,7 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
7078
7087
  r.message = e;
7079
7088
  }
7080
7089
  };
7081
- })), oi = /* @__PURE__ */ i(((e, t) => {
7090
+ })), ri = /* @__PURE__ */ i(((e, t) => {
7082
7091
  t.exports = function(e) {
7083
7092
  if (e && e.length) for (let r of e) {
7084
7093
  let e;
@@ -7224,7 +7233,7 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
7224
7233
  r.message = e;
7225
7234
  }
7226
7235
  };
7227
- })), si = /* @__PURE__ */ i(((e, t) => {
7236
+ })), ii = /* @__PURE__ */ i(((e, t) => {
7228
7237
  t.exports = function(e) {
7229
7238
  if (e && e.length) for (let r of e) {
7230
7239
  let e;
@@ -7370,57 +7379,57 @@ var xn = /* @__PURE__ */ new WeakMap(), Sn = (e) => e === null || typeof e != "o
7370
7379
  r.message = e;
7371
7380
  }
7372
7381
  };
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
7382
+ })), ai = /* @__PURE__ */ n(Jr(), 1), oi = /* @__PURE__ */ n(Zr(), 1), si = /* @__PURE__ */ n(Qr(), 1), ci = /* @__PURE__ */ n($r(), 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 = {
7383
+ en: si.default,
7384
+ "zh-CN": pi.default,
7385
+ "zh-TW": fi.default,
7386
+ ja: li.default,
7387
+ ko: ui.default,
7388
+ ru: di.default,
7389
+ fr: ci.default
7381
7390
  };
7382
- function vi(e) {
7383
- return _i[m([e])];
7391
+ function hi(e) {
7392
+ return mi[m([e])];
7384
7393
  }
7385
- function yi(e, t) {
7386
- vi(e)(t);
7394
+ function gi(e, t) {
7395
+ hi(e)(t);
7387
7396
  }
7388
7397
  //#endregion
7389
7398
  //#region src/designer/browser/validate/validator.ts
7390
- function bi(e) {
7391
- let t = new ci.default({
7399
+ function _i(e) {
7400
+ let t = new ai.default({
7392
7401
  allErrors: !0,
7393
7402
  verbose: !0,
7394
7403
  strict: !1,
7395
7404
  addUsedSchema: !1,
7396
7405
  ...e
7397
7406
  });
7398
- return (0, li.default)(t), t;
7407
+ return (0, oi.default)(t), t;
7399
7408
  }
7400
- var xi = /*#__PURE__*/ bi();
7401
- function Si(e) {
7409
+ var vi = /*#__PURE__*/ _i();
7410
+ function yi(e) {
7402
7411
  if (!e) return [void 0, void 0];
7403
7412
  try {
7404
- return [xi.compile(e), void 0];
7413
+ return [vi.compile(e), void 0];
7405
7414
  } catch (e) {
7406
7415
  return [void 0, e];
7407
7416
  }
7408
7417
  }
7409
- function Ci(e, t, n) {
7410
- return !e || e(t) ? [] : (yi(n, e.errors), e.errors);
7418
+ function bi(e, t, n) {
7419
+ return !e || e(t) ? [] : (gi(n, e.errors), e.errors);
7411
7420
  }
7412
7421
  //#endregion
7413
7422
  //#region src/designer/browser/stores/schemaEditor/simpleWidget.store.ts
7414
- var wi = class {
7423
+ var xi = class {
7415
7424
  constructor(e, t, n) {
7416
- this.path = e, this.schema$ = t, this.context = n, this.dispose = P(), this.widgetType$ = this.dispose.add(a(this.schema$, J));
7425
+ this.path = e, this.schema$ = t, this.context = n, this.dispose = F(), this.widgetType$ = this.dispose.add(a(this.schema$, Y));
7417
7426
  }
7418
7427
  get expanded$() {
7419
7428
  return this.expandedCache$ ??= this.dispose.add(this.context.deriveExpanded$(this.path));
7420
7429
  }
7421
7430
  configureNumber() {
7422
7431
  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));
7432
+ let e = F(), t = e.add(this.deriveUiOptions$("step", U)), n = e.add(this.deriveSchema$("minimum", U)), r = e.add(this.deriveSchema$("maximum", U)), i = e.add(this.deriveSchema$("exclusiveMinimum", U)), a = e.add(this.deriveSchema$("exclusiveMaximum", U));
7424
7433
  return this.numberConfigurationSlot.set(e), {
7425
7434
  step$: t,
7426
7435
  minimum$: n,
@@ -7430,14 +7439,14 @@ var wi = class {
7430
7439
  };
7431
7440
  }
7432
7441
  configureColor() {
7433
- return this.colorConfigurationSlot ||= this.dispose.add(N()), { colorType$: this.colorConfigurationSlot.set(this.deriveUiOptions$("colorType", (e) => Rt(e) ? e : void 0)) };
7442
+ return this.colorConfigurationSlot ||= this.dispose.add(N()), { colorType$: this.colorConfigurationSlot.set(this.deriveUiOptions$("colorType", (e) => Pt(e) ? e : void 0)) };
7434
7443
  }
7435
7444
  configureDate() {
7436
- return this.dateConfigurationSlot ||= this.dispose.add(N()), { format$: this.dateConfigurationSlot.set(this.deriveSchema$("format", (e) => kt(e) ? e : void 0)) };
7445
+ return this.dateConfigurationSlot ||= this.dispose.add(N()), { format$: this.dateConfigurationSlot.set(this.deriveSchema$("format", (e) => Tt(e) ? e : void 0)) };
7437
7446
  }
7438
7447
  configureString() {
7439
7448
  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));
7449
+ let e = F(), t = e.add(this.deriveSchema$("format", H)), n = e.add(this.deriveSchema$("pattern", H)), r = e.add(this.deriveSchema$("minLength", U)), i = e.add(this.deriveSchema$("maxLength", U));
7441
7450
  return this.stringConfigurationSlot.set(e), {
7442
7451
  format$: t,
7443
7452
  pattern$: n,
@@ -7447,14 +7456,14 @@ var wi = class {
7447
7456
  }
7448
7457
  configureArray() {
7449
7458
  this.arrayConfigurationSlot ||= this.dispose.add(N());
7450
- let e = P(), t = e.add(this.deriveSchema$("minItems", H)), n = e.add(this.deriveSchema$("maxItems", H));
7459
+ let e = F(), t = e.add(this.deriveSchema$("minItems", U)), n = e.add(this.deriveSchema$("maxItems", U));
7451
7460
  return this.arrayConfigurationSlot.set(e), {
7452
7461
  minItems$: t,
7453
7462
  maxItems$: n
7454
7463
  };
7455
7464
  }
7456
7465
  configureObject() {
7457
- return this.objectConfigurationSlot ||= this.dispose.add(N()), { additionalProperties$: this.objectConfigurationSlot.set(this.deriveSchema$("additionalProperties", at)) };
7466
+ return this.objectConfigurationSlot ||= this.dispose.add(N()), { additionalProperties$: this.objectConfigurationSlot.set(this.deriveSchema$("additionalProperties", tt)) };
7458
7467
  }
7459
7468
  isSelect() {
7460
7469
  return !1;
@@ -7472,11 +7481,11 @@ var wi = class {
7472
7481
  return !1;
7473
7482
  }
7474
7483
  deriveSchema$(e, t, n) {
7475
- return l(a(this.schema$, (n) => t(B(n)?.[e]), n), W(this.schema$, e));
7484
+ return l(a(this.schema$, (n) => t(V(n)?.[e]), n), G(this.schema$, e));
7476
7485
  }
7477
7486
  deriveUiOptions$(e, t, 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]);
7487
+ return l(a(this.schema$, (n) => t(V(V(n)?.[q])?.[e]), n), (t) => {
7488
+ let n = V(this.schema$.value), r = V(n?.[q]);
7480
7489
  if (Object.is(t, r?.[e])) return;
7481
7490
  let i = {
7482
7491
  ...r,
@@ -7484,11 +7493,11 @@ var wi = class {
7484
7493
  };
7485
7494
  f(this.schema$, n && {
7486
7495
  ...n,
7487
- "ui:options": Je(i)
7496
+ "ui:options": We(i)
7488
7497
  });
7489
7498
  });
7490
7499
  }
7491
- }, Ti = class extends wi {
7500
+ }, Si = class extends xi {
7492
7501
  constructor(e, t, n) {
7493
7502
  super(e, t, n), this.conditions$ = this.dispose.add(this.deriveConditions$());
7494
7503
  }
@@ -7496,29 +7505,29 @@ var wi = class {
7496
7505
  return !0;
7497
7506
  }
7498
7507
  addCondition(e) {
7499
- let t = { ...B(this.schema$.value) }, n = J(t), r = R(t[n])?.slice() ?? [], i = { ...B(t[K]) }, a = R(i.labels)?.slice() ?? [];
7508
+ let t = { ...V(this.schema$.value) }, n = Y(t), r = z(t[n])?.slice() ?? [], i = { ...V(t[q]) }, a = z(i.labels)?.slice() ?? [];
7500
7509
  for (; a.length < r.length;) a.push("");
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);
7510
+ a.splice(e + 1, 0, ""), i.labels = B(a), r.splice(e + 1, 0, J()), t[n] = r, t[q] = i, this.schema$.set(t);
7502
7511
  }
7503
7512
  removeCondition(e) {
7504
- let t = { ...B(this.schema$.value) }, n = J(t), r = R(t[n])?.slice() ?? [], i = { ...B(t[K]) }, a = R(i.labels)?.slice() ?? [];
7513
+ let t = { ...V(this.schema$.value) }, n = Y(t), r = z(t[n])?.slice() ?? [], i = { ...V(t[q]) }, a = z(i.labels)?.slice() ?? [];
7505
7514
  for (; a.length < r.length;) a.push("");
7506
- a.splice(e, 1), i.labels = z(a), r.splice(e, 1), t[n] = r, t[K] = i, this.schema$.set(t);
7515
+ a.splice(e, 1), i.labels = B(a), r.splice(e, 1), t[n] = r, t[q] = i, this.schema$.set(t);
7507
7516
  }
7508
7517
  deriveConditions$() {
7509
7518
  let e = [];
7510
7519
  return a(this.schema$, (t) => {
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);
7520
+ let n = z(V(t)?.[Y(t)])?.length ?? 0, r = e.slice(0, n);
7521
+ for (let e = r.length; e < n; e++) r[e] = new Ci(e, this, this.context);
7513
7522
  for (let t = r.length; t < e.length; t++) e[t]?.dispose();
7514
7523
  return e = r, r;
7515
7524
  });
7516
7525
  }
7517
7526
  deriveConditionSchema$(e, t = "anyOf") {
7518
- return l(a(this.schema$, (t) => R(B(t)?.[J(t)])?.[e]), (n) => {
7519
- let r = B(this.schema$.value), i = J(r);
7527
+ return l(a(this.schema$, (t) => z(V(t)?.[Y(t)])?.[e]), (n) => {
7528
+ let r = V(this.schema$.value), i = Y(r);
7520
7529
  i !== "allOf" && i !== "anyOf" && i !== "oneOf" && (i = t);
7521
- let a = R(r?.[i]);
7530
+ let a = z(r?.[i]);
7522
7531
  if (!Object.is(a?.[e], n)) {
7523
7532
  let t = a?.slice() ?? [];
7524
7533
  t[e] = n, this.schema$.set({
@@ -7529,32 +7538,32 @@ var wi = class {
7529
7538
  });
7530
7539
  }
7531
7540
  deriveLabel$(e) {
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);
7541
+ return l(a(this.schema$, (t) => H(z(V(V(t)?.[q])?.labels)?.[e])), (t) => {
7542
+ let n = V(this.schema$.value), r = V(n?.[q]), i = z(r?.labels);
7534
7543
  if (!Object.is(i?.[e], t)) {
7535
7544
  let a = i?.slice() ?? [];
7536
7545
  a[e] = t, this.schema$.set({
7537
7546
  ...n,
7538
- [K]: {
7547
+ [q]: {
7539
7548
  ...r,
7540
- labels: z(a)
7549
+ labels: B(a)
7541
7550
  }
7542
7551
  });
7543
7552
  }
7544
7553
  });
7545
7554
  }
7546
- }, Ei = class {
7555
+ }, Ci = class {
7547
7556
  constructor(e, t, n) {
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));
7557
+ this.dispose = F(), 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(Ni(this.path, this.schema$, n));
7549
7558
  }
7550
- }, Di = class extends wi {
7559
+ }, wi = class extends xi {
7551
7560
  constructor(e, t, n) {
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));
7561
+ super(e, t, n), this.itemsSchema$ = this.dispose.add(this.deriveSchema$("items", (e) => e, R)), this.itemsWidget$ = this.dispose.add(Ni(this.path.append("items"), this.itemsSchema$, n));
7553
7562
  }
7554
7563
  isArray() {
7555
7564
  return !0;
7556
7565
  }
7557
- }, Oi = /*#__PURE__*/ new Set([
7566
+ }, Ti = /*#__PURE__*/ new Set([
7558
7567
  "string",
7559
7568
  "integer",
7560
7569
  "number",
@@ -7565,7 +7574,7 @@ var wi = class {
7565
7574
  "array",
7566
7575
  "object",
7567
7576
  "anyOf"
7568
- ]), ki = (e) => [
7577
+ ]), Ei = (e) => [
7569
7578
  {
7570
7579
  label: e("schemaEditor.stringFormat.email"),
7571
7580
  value: "email"
@@ -7579,13 +7588,13 @@ var wi = class {
7579
7588
  value: ""
7580
7589
  }
7581
7590
  ];
7582
- function Ai(e, t) {
7591
+ function Di(e, t) {
7583
7592
  let n = e || "";
7584
- return ki(t).find((e) => e.value === n);
7593
+ return Ei(t).find((e) => e.value === n);
7585
7594
  }
7586
7595
  //#endregion
7587
7596
  //#region src/designer/browser/stores/schemaEditor/selectWidget.store.ts
7588
- var ji = class extends wi {
7597
+ var Oi = class extends xi {
7589
7598
  constructor(e, t, n) {
7590
7599
  super(e, t, n), this.items$ = this.dispose.add(this.deriveItems()), this.dispose.add(() => {
7591
7600
  for (let e of this.items$.value) e.dispose();
@@ -7595,27 +7604,27 @@ var ji = class extends wi {
7595
7604
  return !0;
7596
7605
  }
7597
7606
  addItem(e) {
7598
- let t = { ...B(this.schema$.value) }, n = R(t.enum)?.slice() ?? [], r = { ...B(t[K]) }, i = R(r.labels)?.slice() ?? [];
7607
+ let t = { ...V(this.schema$.value) }, n = z(t.enum)?.slice() ?? [], r = { ...V(t[q]) }, i = z(r.labels)?.slice() ?? [];
7599
7608
  for (; i.length < n.length;) i.push("");
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);
7609
+ i.splice(e + 1, 0, ""), r.labels = B(i), n.splice(e + 1, 0, ""), t.enum = n, t[q] = r, this.schema$.set(t);
7601
7610
  }
7602
7611
  removeItem(e) {
7603
- let t = { ...B(this.schema$.value) }, n = R(t.enum)?.slice() ?? [], r = { ...B(t[K]) }, i = R(r.labels)?.slice() ?? [];
7612
+ let t = { ...V(this.schema$.value) }, n = z(t.enum)?.slice() ?? [], r = { ...V(t[q]) }, i = z(r.labels)?.slice() ?? [];
7604
7613
  for (; i.length < n.length;) i.push("");
7605
- i.splice(e, 1), r.labels = z(i), n.splice(e, 1), t.enum = n, t[K] = r, this.schema$.set(t);
7614
+ i.splice(e, 1), r.labels = B(i), n.splice(e, 1), t.enum = n, t[q] = r, this.schema$.set(t);
7606
7615
  }
7607
7616
  deriveItems() {
7608
7617
  let e = [];
7609
7618
  return a(this.schema$, (t) => {
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);
7619
+ let n = z(V(t)?.enum)?.length ?? 0, r = e.slice(0, n);
7620
+ for (let e = r.length; e < n; e++) r[e] = new ki(e, this, this.context);
7612
7621
  for (let t = r.length; t < e.length; t++) e[t]?.dispose();
7613
7622
  return e = r, r;
7614
7623
  });
7615
7624
  }
7616
7625
  deriveValue$(e) {
7617
- return l(a(this.schema$, (t) => R(B(t)?.enum)?.[e]), (t) => {
7618
- let n = B(this.schema$.value), r = R(n?.enum);
7626
+ return l(a(this.schema$, (t) => z(V(t)?.enum)?.[e]), (t) => {
7627
+ let n = V(this.schema$.value), r = z(n?.enum);
7619
7628
  if (!Object.is(r?.[e], t)) {
7620
7629
  let i = r?.slice() ?? [];
7621
7630
  i[e] = t, this.schema$.set({
@@ -7626,25 +7635,25 @@ var ji = class extends wi {
7626
7635
  });
7627
7636
  }
7628
7637
  deriveLabel$(e) {
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);
7638
+ return l(a(this.schema$, (t) => H(z(V(V(t)?.[q])?.labels)?.[e])), (t) => {
7639
+ let n = V(this.schema$.value), r = V(n?.[q]), i = z(r?.labels);
7631
7640
  if (!Object.is(i?.[e], t)) {
7632
7641
  let a = i?.slice() ?? [];
7633
7642
  a[e] = t, this.schema$.set({
7634
7643
  ...n,
7635
- [K]: {
7644
+ [q]: {
7636
7645
  ...r,
7637
- labels: z(a)
7646
+ labels: B(a)
7638
7647
  }
7639
7648
  });
7640
7649
  }
7641
7650
  });
7642
7651
  }
7643
- }, Mi = class {
7652
+ }, ki = class {
7644
7653
  constructor(e, t, n) {
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));
7654
+ this.index = e, this.selectStore = t, this.context = n, this.dispose = F(), this.value$ = this.dispose.add(this.selectStore.deriveValue$(e)), this.label$ = this.dispose.add(this.selectStore.deriveLabel$(e));
7646
7655
  }
7647
- }, Ni = class extends wi {
7656
+ }, Ai = class extends xi {
7648
7657
  constructor(e, t, n) {
7649
7658
  super(e, t, n), this.items$ = this.dispose.add(this.deriveItems()), this.dispose.add(() => {
7650
7659
  for (let e of this.items$.value) e.dispose();
@@ -7654,30 +7663,30 @@ var ji = class extends wi {
7654
7663
  return !0;
7655
7664
  }
7656
7665
  addItem(e) {
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() ?? [];
7666
+ let t = { ...V(this.schema$.value) }, n = { ...V(t.items) }, r = z(n.enum)?.slice() ?? [], i = { ...V(t[q]) }, a = z(i.labels)?.slice() ?? [];
7658
7667
  for (; a.length < r.length;) a.push("");
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);
7668
+ a.splice(e + 1, 0, ""), i.labels = B(a), r.splice(e + 1, 0, ""), n.enum = r, t.items = n, t[q] = i, this.schema$.set(t);
7660
7669
  }
7661
7670
  removeItem(e) {
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() ?? [];
7671
+ let t = { ...V(this.schema$.value) }, n = { ...V(t.items) }, r = z(n.enum)?.slice() ?? [], i = { ...V(t[q]) }, a = z(i.labels)?.slice() ?? [];
7663
7672
  for (; a.length < r.length;) a.push("");
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);
7673
+ a.splice(e, 1), i.labels = B(a), r.splice(e, 1), n.enum = r, t.items = n, t[q] = i, this.schema$.set(t);
7665
7674
  }
7666
7675
  deriveItems() {
7667
7676
  let e = [];
7668
7677
  return a(this.schema$, (t) => {
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);
7678
+ let n = V(t)?.items, r = z(V(n)?.enum)?.length ?? 0, i = e.slice(0, r);
7679
+ for (let e = i.length; e < r; e++) i[e] = new ki(e, this, this.context);
7671
7680
  for (let t = i.length; t < e.length; t++) e[t].dispose();
7672
7681
  return e = i, i;
7673
7682
  });
7674
7683
  }
7675
7684
  deriveValue$(e) {
7676
7685
  return l(a(this.schema$, (t) => {
7677
- let n = B(t)?.items;
7678
- return R(B(n)?.enum)?.[e];
7686
+ let n = V(t)?.items;
7687
+ return z(V(n)?.enum)?.[e];
7679
7688
  }), (t) => {
7680
- let n = B(this.schema$.value), r = B(n?.items), i = R(r?.enum);
7689
+ let n = V(this.schema$.value), r = V(n?.items), i = z(r?.enum);
7681
7690
  if (!Object.is(i?.[e], t)) {
7682
7691
  let a = i?.slice() ?? [];
7683
7692
  a[e] = t, this.schema$.set({
@@ -7691,21 +7700,21 @@ var ji = class extends wi {
7691
7700
  });
7692
7701
  }
7693
7702
  deriveLabel$(e) {
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);
7703
+ return l(a(this.schema$, (t) => H(z(V(V(t)?.[q])?.labels)?.[e])), (t) => {
7704
+ let n = V(this.schema$.value), r = V(n?.[q]), i = z(r?.labels);
7696
7705
  if (!Object.is(i?.[e], t)) {
7697
7706
  let a = i?.slice() ?? [];
7698
7707
  a[e] = t, this.schema$.set({
7699
7708
  ...n,
7700
- [K]: {
7709
+ [q]: {
7701
7710
  ...r,
7702
- labels: z(a)
7711
+ labels: B(a)
7703
7712
  }
7704
7713
  });
7705
7714
  }
7706
7715
  });
7707
7716
  }
7708
- }, Pi = class extends wi {
7717
+ }, ji = class extends xi {
7709
7718
  constructor(e, t, n) {
7710
7719
  super(e, t, n), this.fields$ = this.dispose.add(this.deriveFields$());
7711
7720
  }
@@ -7717,20 +7726,20 @@ var ji = class extends wi {
7717
7726
  console.error(/* @__PURE__ */ Error("User can't add object field"));
7718
7727
  return;
7719
7728
  }
7720
- let t = B(this.schema$.value), n = B(t?.properties);
7729
+ let t = V(this.schema$.value), n = V(t?.properties);
7721
7730
  if (n) {
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({
7731
+ let r = Object.entries(n), i = (e ? r.findIndex(([t]) => t === e) : -1) + 1, a = W("field", r.map(([e]) => e)), o = i > 0 ? r[i - 1][1] : null;
7732
+ r.splice(i, 0, [a, o || J()]), this.schema$.set({
7724
7733
  ...t,
7725
7734
  properties: Object.fromEntries(r)
7726
7735
  });
7727
7736
  } else this.schema$.set({
7728
7737
  ...t,
7729
- properties: { field: q() }
7738
+ properties: { field: J() }
7730
7739
  });
7731
7740
  }
7732
7741
  renameField(e, t) {
7733
- let n = B(this.schema$.value), r = B(n?.properties);
7742
+ let n = V(this.schema$.value), r = V(n?.properties);
7734
7743
  if (r) {
7735
7744
  let i = Object.entries(r), a = i.findIndex(([t]) => t === e);
7736
7745
  a >= 0 && (i[a] = [t, i[a][1]], this.schema$.set({
@@ -7740,7 +7749,7 @@ var ji = class extends wi {
7740
7749
  }
7741
7750
  }
7742
7751
  removeField(e) {
7743
- let t = B(this.schema$.value), n = B(t?.properties);
7752
+ let t = V(this.schema$.value), n = V(t?.properties);
7744
7753
  if (n) {
7745
7754
  let r = Object.entries(n), i = r.findIndex(([t]) => t === e);
7746
7755
  i >= 0 && (r.splice(i, 1), this.schema$.set({
@@ -7752,44 +7761,44 @@ var ji = class extends wi {
7752
7761
  deriveFields$() {
7753
7762
  let e, t = [];
7754
7763
  return a(this.schema$, (n) => {
7755
- let r = B(n?.properties);
7764
+ let r = V(n?.properties);
7756
7765
  if (e === r) return t;
7757
7766
  e = r;
7758
- let i = r ? Object.keys(r).map((e) => t.find((t) => t.name === e) || new Fi(e, this, this.context)) : [];
7767
+ let i = r ? Object.keys(r).map((e) => t.find((t) => t.name === e) || new Mi(e, this, this.context)) : [];
7759
7768
  for (let e of t) r?.[e.name] || e.dispose();
7760
7769
  return t = i, i;
7761
7770
  }, { equal: d });
7762
7771
  }
7763
- }, Fi = class {
7772
+ }, Mi = class {
7764
7773
  constructor(e, t, n) {
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);
7774
+ this.dispose = F(), 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) => {
7775
+ let r = V(t.schema$.value);
7767
7776
  t.schema$.set({
7768
7777
  ...r,
7769
7778
  properties: {
7770
- ...B(r?.properties),
7779
+ ...V(r?.properties),
7771
7780
  [e]: n
7772
7781
  }
7773
7782
  });
7774
- })), this.widget$ = this.dispose.add(Ii(this.path, this.schema$, n));
7783
+ })), this.widget$ = this.dispose.add(Ni(this.path, this.schema$, n));
7775
7784
  }
7776
- }, Ii = (e, t, n) => {
7777
- let r = N(), i = a(t, J), o = a(i, (i) => {
7785
+ }, Ni = (e, t, n) => {
7786
+ let r = N(), i = a(t, Y), o = a(i, (i) => {
7778
7787
  let a;
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);
7788
+ return a = i === "select" ? new Oi(e, t, n) : i === "multiSelect" ? new Ai(e, t, n) : i === "array" ? new wi(e, t, n) : i === "object" ? new ji(e, t, n) : i === "anyOf" ? new Si(e, t, n) : new xi(e, t, n), r.set(a);
7780
7789
  }), s = o.dispose, c = i.reaction((t) => {
7781
- Oi.has(t) && n.expand(e);
7790
+ Ti.has(t) && n.expand(e);
7782
7791
  });
7783
7792
  return o.dispose = () => {
7784
7793
  c(), s.call(o), r.dispose();
7785
7794
  }, o;
7786
- }, Li = class {
7795
+ }, Pi = class {
7787
7796
  constructor(e, t, n, r) {
7788
7797
  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$;
7789
7798
  }
7790
7799
  deriveExpanded$(e) {
7791
7800
  return l(a(this.expanded$, (t) => t?.[e.key] ?? !1), (t) => {
7792
- let n = B(this.expanded$.value);
7801
+ let n = V(this.expanded$.value);
7793
7802
  if (t) n?.[e.key] || this.expanded$.set({
7794
7803
  ...n,
7795
7804
  [e.key]: !0
@@ -7812,21 +7821,21 @@ var ji = class extends wi {
7812
7821
  get canEditValue() {
7813
7822
  return this.role === "author" || this.role === "user";
7814
7823
  }
7815
- }, Ri = class {
7824
+ }, Fi = class {
7816
7825
  constructor(e, t, n, r, i, a) {
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));
7826
+ this.dispose = F(), this.path = Sn.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(Ni(this.path, this.schema$, a));
7818
7827
  }
7819
- }, zi = "primitive";
7820
- function Bi(e) {
7821
- return V(e?.contentMediaType) === Xt.binary ? "bin" : zi;
7828
+ }, Ii = "primitive";
7829
+ function Li(e) {
7830
+ return H(e?.contentMediaType) === Kt.binary ? "bin" : Ii;
7822
7831
  }
7823
7832
  //#endregion
7824
7833
  //#region src/designer/browser/stores/nodeHandle/simpleWidget.store.ts
7825
- var Vi = class {
7834
+ var Ri = class {
7826
7835
  constructor(e, t, n, r, i) {
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) => {
7836
+ if (this.path = e, this.schema$ = t, this.context = n, this.value$ = r, this.overrideSchema$ = i, this.dispose = F(), 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$, Y)), this.overrideWidgetType$ = this.dispose.add(a(this.overrideSchema$, (e) => Y(e?.schema))), this.widgetType$ = this.dispose.add(u([this.schemaWidgetType$, this.overrideWidgetType$], ([e, t]) => Zt(e) ? t : e)), this.hasSubpanel$ = this.dispose.add(c((e) => {
7828
7837
  let t = this.context.restrict$ != null && e(this.context.restrict$) != null;
7829
- return Hi(this.context, e(this.widgetType$), e(this.schema$), t);
7838
+ return zi(this.context, e(this.widgetType$), e(this.schema$), t);
7830
7839
  })), r) {
7831
7840
  let e = {};
7832
7841
  this.dispose.add([r.subscribe((t) => {
@@ -7852,33 +7861,33 @@ var Vi = class {
7852
7861
  return !1;
7853
7862
  }
7854
7863
  deriveDescription$(e) {
7855
- return l(a(e, (e) => V(B(e)?.description)), (t) => {
7856
- x(e.value) && e.set({
7864
+ return l(a(e, (e) => H(V(e)?.description)), (t) => {
7865
+ _(e.value) && e.set({
7857
7866
  ...e.value,
7858
7867
  description: t
7859
7868
  });
7860
7869
  });
7861
7870
  }
7862
7871
  };
7863
- function Hi(e, t, n, r) {
7864
- let i = B(n), a = J(i);
7872
+ function zi(e, t, n, r) {
7873
+ let i = V(n), a = Y(i);
7865
7874
  if (t == "object") {
7866
7875
  if (!r && e.canEditSchema || a == "any") return !0;
7867
- let t = B(i?.properties), n = t != null && Object.keys(t).length > 0;
7876
+ let t = V(i?.properties), n = t != null && Object.keys(t).length > 0;
7868
7877
  return e.inout == "in" ? n || i?.additionalProperties !== !1 : n;
7869
7878
  }
7870
7879
  return e.inout == "in" && (t == "text" || t == "array" || i?.anyOf != null || i?.allOf != null || i?.oneOf != null);
7871
7880
  }
7872
7881
  //#endregion
7873
7882
  //#region src/designer/browser/stores/nodeHandle/anyOfWidget.store.ts
7874
- var Ui = class extends Vi {
7883
+ var Bi = class extends Ri {
7875
7884
  constructor(e, t, n, r, i) {
7876
- super(e, t, n, r, i), this.selected$ = this.dispose.add(l(a(this.overrideSchema$, (e) => H(B(B(e)?.[K])?.selected)), (e) => {
7885
+ super(e, t, n, r, i), this.selected$ = this.dispose.add(l(a(this.overrideSchema$, (e) => U(V(V(e)?.[q])?.selected)), (e) => {
7877
7886
  e ? f(this.overrideSchema$, {
7878
- ...B(this.overrideSchema$.value),
7887
+ ...V(this.overrideSchema$.value),
7879
7888
  path: this.path,
7880
- [K]: {
7881
- ...B(B(this.overrideSchema$.value)?.[K]),
7889
+ [q]: {
7890
+ ...V(V(this.overrideSchema$.value)?.[q]),
7882
7891
  selected: e
7883
7892
  }
7884
7893
  }) : f(this.overrideSchema$, void 0);
@@ -7886,16 +7895,16 @@ var Ui = class extends Vi {
7886
7895
  this.schemaWidgetType$,
7887
7896
  this.schema$,
7888
7897
  this.selected$
7889
- ], ([e, t, n]) => R(B(t)?.[e])?.[n || 0]), (e) => {
7890
- let t = R(B(this.schema$.value)?.[this.schemaWidgetType$.value]) || [];
7898
+ ], ([e, t, n]) => z(V(t)?.[e])?.[n || 0]), (e) => {
7899
+ let t = z(V(this.schema$.value)?.[this.schemaWidgetType$.value]) || [];
7891
7900
  f(this.schema$, {
7892
- ...B(this.schema$.value),
7901
+ ...V(this.schema$.value),
7893
7902
  [this.schemaWidgetType$.value]: t.toSpliced(this.selected$.value || 0, 1, e)
7894
7903
  });
7895
7904
  }));
7896
7905
  let o = this.dispose.add(N()), s;
7897
7906
  if (this.condition$ = this.dispose.add(u([this.selected$, this.selectedSchema$], ([e = 0, t]) => {
7898
- if (t) return s?.selected === e ? s : (s = new Wi(e, this.selectedSchema$, this, this.context), o.set(s));
7907
+ if (t) return s?.selected === e ? s : (s = new Vi(e, this.selectedSchema$, this, this.context), o.set(s));
7899
7908
  })), r) {
7900
7909
  let e = {};
7901
7910
  this.dispose.add([r.subscribe((t) => {
@@ -7908,13 +7917,13 @@ var Ui = class extends Vi {
7908
7917
  isAnyOf() {
7909
7918
  return !0;
7910
7919
  }
7911
- }, Wi = class {
7920
+ }, Vi = class {
7912
7921
  constructor(e, t, n, r) {
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$));
7922
+ this.dispose = F(), this.selected = e, this.schema$ = t, this.context = r, this.value$ = n.value$, this.overrideSchema$ = n.overrideSchema$, this.widget$ = this.dispose.add(Ki(n.path, this.schema$, r, this.value$, this.overrideSchema$));
7914
7923
  }
7915
- }, Gi = class extends Vi {
7924
+ }, Hi = class extends Ri {
7916
7925
  constructor(e, t, n, r, i) {
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(() => {
7926
+ super(e, t, n, r, i), this.itemsSchema$ = this.dispose.add(l(a(t, (e) => V(e)?.items), G(t, "items"))), this.itemsWidgetType$ = this.dispose.add(a(this.itemsSchema$, (e) => Y(e))), r && (this.items$ = this.dispose.add(this.deriveItems(r)), this.dispose.add(() => {
7918
7927
  for (let e of this.items$.value) e.dispose();
7919
7928
  }));
7920
7929
  }
@@ -7923,7 +7932,7 @@ var Ui = class extends Vi {
7923
7932
  }
7924
7933
  addItem(e) {
7925
7934
  if (this.value$) {
7926
- let t = R(this.value$.value), n = en(J(this.itemsSchema$.value));
7935
+ let t = z(this.value$.value), n = Xt(Y(this.itemsSchema$.value));
7927
7936
  if (t) {
7928
7937
  this.context.duplicateSchemaOverrideItem(this.path.append(e));
7929
7938
  let r = t.toSpliced(e + 1, 0, n);
@@ -7933,7 +7942,7 @@ var Ui = class extends Vi {
7933
7942
  }
7934
7943
  removeItem(e) {
7935
7944
  if (this.context.removeSchemaOverrideItem(this.path.append(e)), this.value$) {
7936
- let t = R(this.value$.value);
7945
+ let t = z(this.value$.value);
7937
7946
  f(this.value$, t ? t.toSpliced(e, 1) : []);
7938
7947
  }
7939
7948
  }
@@ -7941,28 +7950,28 @@ var Ui = class extends Vi {
7941
7950
  let t = [];
7942
7951
  return a(e, (e) => {
7943
7952
  let n = Array.isArray(e) ? e.length : 0, r = t.slice(0, n);
7944
- for (let e = r.length; e < n; e++) r[e] = new Ki(e, this, this.context);
7953
+ for (let e = r.length; e < n; e++) r[e] = new Ui(e, this, this.context);
7945
7954
  for (let e = r.length; e < t.length; e++) t[e]?.dispose();
7946
7955
  return t = r, r;
7947
7956
  });
7948
7957
  }
7949
- }, Ki = class {
7958
+ }, Ui = class {
7950
7959
  constructor(e, t, n) {
7951
- this.dispose = P(), this.index = e, this.context = n, this.path = t.path.append(e);
7960
+ this.dispose = F(), this.index = e, this.context = n, this.path = t.path.append(e);
7952
7961
  let r = t.value$;
7953
- r && (this.value$ = this.dispose.add(l(a(r, (t) => R(t)?.[e]), (t) => {
7954
- let n = R(r.value);
7962
+ r && (this.value$ = this.dispose.add(l(a(r, (t) => z(t)?.[e]), (t) => {
7963
+ let n = z(r.value);
7955
7964
  if (!Object.is(n?.[e], t)) {
7956
7965
  let i = n?.slice() ?? [];
7957
7966
  i[e] = t, r.set(i);
7958
7967
  }
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$));
7968
+ }))), this.schema$ = t.itemsSchema$, this.overrideSchema$ = this.dispose.add(this.context.deriveSchemaOverrideItem$(this.path)), this.widget$ = this.dispose.add(Ki(this.path, this.schema$, n, this.value$, this.overrideSchema$));
7960
7969
  }
7961
- }, qi = class extends Vi {
7970
+ }, Wi = class extends Ri {
7962
7971
  constructor(e, t, n, r, i) {
7963
7972
  super(e, t, n, r, i), this.allowsUntypedFields$ = this.dispose.add(a(this.schema$, (e) => {
7964
- let t = B(e);
7965
- return J(e) == "object" && t?.additionalProperties !== !1;
7973
+ let t = V(e);
7974
+ return Y(e) == "object" && t?.additionalProperties !== !1;
7966
7975
  })), 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([
7967
7976
  this.fixedFields$,
7968
7977
  this.overrideFields$,
@@ -7985,11 +7994,11 @@ var Ui = class extends Vi {
7985
7994
  console.error(/* @__PURE__ */ Error("User can't add fixed field"));
7986
7995
  return;
7987
7996
  }
7988
- let t = B(this.schema$.value), n = B(t?.properties), r = U("field", this.fieldNames$.value);
7997
+ let t = V(this.schema$.value), n = V(t?.properties), r = W("field", this.fieldNames$.value);
7989
7998
  if (n) {
7990
7999
  let i = Object.keys(n), a = {}, o;
7991
8000
  for (let t = 0; t < e; t++) o = a[i[t]] = n[i[t]];
7992
- a[r] = o || q();
8001
+ a[r] = o || J();
7993
8002
  for (let t = e; t < i.length; t++) a[i[t]] = n[i[t]];
7994
8003
  this.schema$.set({
7995
8004
  ...t,
@@ -7997,10 +8006,10 @@ var Ui = class extends Vi {
7997
8006
  });
7998
8007
  } else this.schema$.set({
7999
8008
  ...t,
8000
- properties: { [r]: q() }
8009
+ properties: { [r]: J() }
8001
8010
  });
8002
8011
  if (this.value$) {
8003
- let e = B(this.value$.value);
8012
+ let e = V(this.value$.value);
8004
8013
  e ? this.value$.set({
8005
8014
  ...e,
8006
8015
  [r]: void 0
@@ -8008,12 +8017,12 @@ var Ui = class extends Vi {
8008
8017
  }
8009
8018
  }
8010
8019
  addOverrideField(e) {
8011
- let t = e > 0 ? this.overrideFields$.value[e - 1] : null, n = U("field", this.fieldNames$.value);
8020
+ let t = e > 0 ? this.overrideFields$.value[e - 1] : null, n = W("field", this.fieldNames$.value);
8012
8021
  if (this.context.addSchemaOverrideItem({
8013
8022
  path: this.path.append(n),
8014
- schema: t?.schema$.value || q()
8023
+ schema: t?.schema$.value || J()
8015
8024
  }, e), this.value$) {
8016
- let e = B(this.value$.value);
8025
+ let e = V(this.value$.value);
8017
8026
  e ? this.value$.set({
8018
8027
  ...e,
8019
8028
  [n]: void 0
@@ -8022,7 +8031,7 @@ var Ui = class extends Vi {
8022
8031
  }
8023
8032
  addUntypedField() {
8024
8033
  if (this.value$ == null) return;
8025
- let e = B(this.value$.value) ?? {}, t = U("field", this.fieldNames$.value);
8034
+ let e = V(this.value$.value) ?? {}, t = W("field", this.fieldNames$.value);
8026
8035
  this.value$.set({
8027
8036
  ...e,
8028
8037
  [t]: void 0
@@ -8032,7 +8041,7 @@ var Ui = class extends Vi {
8032
8041
  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);
8033
8042
  }
8034
8043
  renameField(e, t) {
8035
- let n = B(this.schema$.value), r = B(n?.properties);
8044
+ let n = V(this.schema$.value), r = V(n?.properties);
8036
8045
  if (r) {
8037
8046
  let i = Object.entries(r), a = i.findIndex(([t]) => t === e);
8038
8047
  a >= 0 && (i[a] = [t, i[a][1]], this.schema$.set({
@@ -8049,7 +8058,7 @@ var Ui = class extends Vi {
8049
8058
  }));
8050
8059
  }
8051
8060
  if (this.value$) {
8052
- let n = B(this.value$.value);
8061
+ let n = V(this.value$.value);
8053
8062
  if (n) {
8054
8063
  let r = Object.entries(n), i = r.findIndex(([t]) => t === e);
8055
8064
  i >= 0 && (r[i] = [t, r[i][1]], this.value$.set(Object.fromEntries(r)));
@@ -8062,7 +8071,7 @@ var Ui = class extends Vi {
8062
8071
  }
8063
8072
  }
8064
8073
  removeField(e) {
8065
- let t = B(this.schema$.value), n = t?.properties;
8074
+ let t = V(this.schema$.value), n = t?.properties;
8066
8075
  if (n) {
8067
8076
  let r = Object.entries(n), i = r.findIndex((t) => t[0] === e);
8068
8077
  i >= 0 && this.schema$.set({
@@ -8071,7 +8080,7 @@ var Ui = class extends Vi {
8071
8080
  });
8072
8081
  }
8073
8082
  this.context.removeSchemaOverrideItem(this.path.append(e));
8074
- let r = B(this.value$?.value);
8083
+ let r = V(this.value$?.value);
8075
8084
  if (r) {
8076
8085
  let t = { ...r };
8077
8086
  delete t[e], this.value$?.set(t);
@@ -8088,10 +8097,10 @@ var Ui = class extends Vi {
8088
8097
  deriveFixedFields$() {
8089
8098
  let e, t = [];
8090
8099
  return a(this.schema$, (n) => {
8091
- let r = B(n?.properties);
8100
+ let r = V(n?.properties);
8092
8101
  if (e === r) return t;
8093
8102
  e = r;
8094
- let i = r ? Object.keys(r).map((e) => t.find((t) => t.name === e) || new Ji(e, this, this.context)) : [];
8103
+ let i = r ? Object.keys(r).map((e) => t.find((t) => t.name === e) || new Gi(e, this, this.context)) : [];
8095
8104
  for (let e of t) r?.[e.name] || e.dispose();
8096
8105
  return t = i, i;
8097
8106
  }, { equal: d });
@@ -8101,10 +8110,10 @@ var Ui = class extends Vi {
8101
8110
  return u([this.context.schemaOverrides$, this.schema$], ([t, n]) => {
8102
8111
  let r = [];
8103
8112
  if (t) {
8104
- let i = B(B(n)?.properties);
8113
+ let i = V(V(n)?.properties);
8105
8114
  for (let n of t) if (this.path.matchChild(n.path)) {
8106
8115
  let t = n.path.last();
8107
- v(t) && !i?.[t] && r.push(e?.find((e) => e.name === t) ?? new Ji(t, this, this.context, "override"));
8116
+ h(t) && !i?.[t] && r.push(e?.find((e) => e.name === t) ?? new Gi(t, this, this.context, "override"));
8108
8117
  }
8109
8118
  }
8110
8119
  if (e) for (let t of e) r.some((e) => e.name === t.name) || t.dispose();
@@ -8118,33 +8127,33 @@ var Ui = class extends Vi {
8118
8127
  this.schema$,
8119
8128
  this.context.schemaOverrides$
8120
8129
  ], ([e, n, r]) => {
8121
- let i = B(n), a = B(i?.properties), o = /* @__PURE__ */ new Set();
8130
+ let i = V(n), a = V(i?.properties), o = /* @__PURE__ */ new Set();
8122
8131
  for (let e of r ?? []) {
8123
8132
  if (!this.path.matchChild(e.path)) continue;
8124
8133
  let t = e.path.last();
8125
- v(t) && o.add(t);
8134
+ h(t) && o.add(t);
8126
8135
  }
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"));
8136
+ let s = i?.additionalProperties === !1 ? void 0 : V(e), c = s == null ? [] : Object.keys(s).filter((e) => a?.[e] == null && !o.has(e)).map((e) => t.find((t) => t.name === e) ?? new Gi(e, this, this.context, "untyped"));
8128
8137
  for (let e of t) c.some((t) => t.name === e.name) || e.dispose();
8129
8138
  return t = c, c;
8130
8139
  }, { equal: d });
8131
8140
  }
8132
- }, Ji = class {
8141
+ }, Gi = class {
8133
8142
  constructor(e, t, n, r = "fixed") {
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) => {
8143
+ this.dispose = F(), this.name = e, this.context = n, this.path = t.path.append(e), t.value$ && (this.value$ = this.dispose.add(l(a(t.value$, (t) => V(t)?.[e]), (n) => t.setField(e, n)))), this.schema$ = this.dispose.add(l(a(t.schema$, (t) => {
8135
8144
  let n = t;
8136
8145
  return r === "untyped" ? n?.additionalProperties === !0 ? void 0 : n?.additionalProperties : n?.properties?.[e];
8137
8146
  }), (n) => {
8138
8147
  if (r === "untyped") return;
8139
- let i = B(t.schema$.value);
8148
+ let i = V(t.schema$.value);
8140
8149
  t.schema$.set({
8141
8150
  ...i,
8142
8151
  properties: {
8143
- ...B(i?.properties),
8152
+ ...V(i?.properties),
8144
8153
  [e]: n
8145
8154
  }
8146
8155
  });
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$));
8156
+ })), this.overrideSchema$ = this.dispose.add(n.deriveSchemaOverrideItem$(this.path)), this.widget$ = this.dispose.add(Ki(this.path, this.schema$, n, this.value$, this.overrideSchema$));
8148
8157
  }
8149
8158
  setSchema(e, t) {
8150
8159
  if (e === "fixed") this.schema$.set(t);
@@ -8156,15 +8165,15 @@ var Ui = class extends Vi {
8156
8165
  schema: t
8157
8166
  });
8158
8167
  }
8159
- B(t)?.type === "null" && this.value$?.set(null);
8168
+ V(t)?.type === "null" && this.value$?.set(null);
8160
8169
  }
8161
- }, Yi = (e, t, n, r, i) => {
8170
+ }, Ki = (e, t, n, r, i) => {
8162
8171
  let o = N(), s = u([t, i], ([e, t]) => {
8163
- let n = J(e), r = J(t?.schema);
8172
+ let n = Y(e), r = Y(t?.schema);
8164
8173
  return n === "any" ? r : n;
8165
8174
  }), c = a(s, (a) => {
8166
8175
  let s;
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);
8176
+ return s = a === "anyOf" ? new Bi(e, t, n, r, i) : a === "object" ? new Wi(e, t, n, r, i) : a === "array" ? new Hi(e, t, n, r, i) : new Ri(e, t, n, r, i), o.set(s);
8168
8177
  }), l = c.dispose;
8169
8178
  return c.dispose = () => {
8170
8179
  l.call(c), s.dispose(), o.dispose();
@@ -8174,20 +8183,20 @@ var Ui = class extends Vi {
8174
8183
  return t instanceof e;
8175
8184
  }
8176
8185
  constructor(e, t, n, r, i, o, d, f, p, m) {
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$) {
8186
+ if (this.dispose = F(), this.name = e, this.context = p, this.path = Sn.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$) {
8178
8187
  let e = this.schema$;
8179
8188
  this.schema$ = this.dispose.add(l(u([e, this.restrict$], ([e, t]) => t ? t.json_schema : e), (t) => this.restrict$?.value || e.set(t)));
8180
8189
  let t = this.nullable$;
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)));
8190
+ this.nullable$ = this.dispose.add(l(u([t, this.restrict$], ([e, t]) => t ? et(t.nullable) : e), (e) => this.restrict$?.value || t.set(e)));
8182
8191
  let n = this.schemaKind$;
8183
8192
  this.schemaKind$ = this.dispose.add(l(u([n, this.restrict$], ([e, t]) => t ? t.kind : e), (e) => this.restrict$?.value || n.set(e)));
8184
8193
  }
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$) {
8194
+ if (this.error$ = this.dispose.add(s()), this.kind$ = this.dispose.add(a(this.schema$, Li)), this.lang$ = r, this.overrideSchema$ = this.dispose.add(this.context.deriveSchemaOverrideItem$(this.path)), this.widget$ = this.dispose.add(Ki(this.path, this.schema$, p, this.value$, this.overrideSchema$)), this.dispose.add(this.context.onRequestOpenSchemaEditor(() => this.showSettings$.set(!this.showSettings$.value))), this.value$) {
8186
8195
  let e;
8187
8196
  this.dispose.add(this.schema$.subscribe((t) => {
8188
8197
  e != null && cancelIdleCallback(e), e = requestIdleCallback(() => {
8189
8198
  e = void 0;
8190
- let [n, r] = Si(t);
8199
+ let [n, r] = yi(t);
8191
8200
  this.error$.set(r && {
8192
8201
  type: "validationError",
8193
8202
  message: r + ""
@@ -8195,18 +8204,18 @@ var Ui = class extends Vi {
8195
8204
  });
8196
8205
  })), this.dispose.add(() => {
8197
8206
  e != null && cancelIdleCallback(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) => {
8207
+ }), this.dispose.add(this.value$.subscribe(() => this.validate(!0))), this.dispose.add(this.nullable$.subscribe(() => this.validate(!1))), this.dispose.add(c((e) => !!(Qt(Y(e(this.schema$))) && Qt(Y(e(this.overrideSchema$)?.schema)) && tn(e(this.value$)) === "array")).subscribe((e) => {
8199
8208
  e && this.overrideSchema$.set({
8200
8209
  ...this.overrideSchema$.value,
8201
8210
  path: this.path,
8202
- schema: Qt("array")
8211
+ schema: Jt("array")
8203
8212
  });
8204
8213
  }));
8205
8214
  }
8206
8215
  }
8207
8216
  get schemaRowStore() {
8208
8217
  if (this.schemaRowStoreCache) return this.schemaRowStoreCache;
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);
8218
+ let e = new Pi(this.context, this.schema$, s(rn(this.schema$.value) <= 3 ? { "[]": !0 } : void 0), this.context.createSchemaEditor), t = new Fi(this.name, this.description$, this.displayDescription$, this.nullable$, this.schemaKind$, e);
8210
8219
  return this.schemaRowStoreCache = this.dispose.add(t);
8211
8220
  }
8212
8221
  validate(e) {
@@ -8220,7 +8229,7 @@ var Ui = class extends Vi {
8220
8229
  this.error$.set(void 0);
8221
8230
  return;
8222
8231
  }
8223
- let t = J(this.schema$.value), n = an(t), r = on(e);
8232
+ let t = Y(this.schema$.value), n = en(t), r = tn(e);
8224
8233
  if (n ? n !== r : e === void 0) {
8225
8234
  this.error$.set({ type: "typeError" });
8226
8235
  return;
@@ -8232,16 +8241,16 @@ var Ui = class extends Vi {
8232
8241
  });
8233
8242
  return;
8234
8243
  }
8235
- let i = Ci(this.validateFn, this.value$.value, this.lang$.value);
8244
+ let i = bi(this.validateFn, this.value$.value, this.lang$.value);
8236
8245
  i && i.length > 0 ? this.error$.set({
8237
8246
  type: "validationError",
8238
- message: xi.errorsText(i)
8247
+ message: vi.errorsText(i)
8239
8248
  }) : this.error$.set(void 0);
8240
8249
  }
8241
8250
  }
8242
- }, Xi = class {
8251
+ }, qi = class {
8243
8252
  constructor(e, t, n, r, i, o, s) {
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));
8253
+ this.schema$ = t, this.schemaOverrides$ = n, this.defaultValue$ = r, this.collapsed$ = i, this.height$ = o, this.createSchemaEditor = s, this.onRequestOpenSchemaEditor = /*#__PURE__*/ ve(), 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) => V(e));
8245
8254
  }
8246
8255
  get canEditSchema() {
8247
8256
  return this.role === "author";
@@ -8253,7 +8262,7 @@ var Ui = class extends Vi {
8253
8262
  return !0;
8254
8263
  }
8255
8264
  requestOpenSchemaEditor() {
8256
- Se(this.onRequestOpenSchemaEditor);
8265
+ ye(this.onRequestOpenSchemaEditor);
8257
8266
  }
8258
8267
  coalesceSchemaOverrideItems(e) {
8259
8268
  let t = this.schemaOverrides$.value;
@@ -8267,7 +8276,7 @@ var Ui = class extends Vi {
8267
8276
  if (t) {
8268
8277
  let n = {};
8269
8278
  for (let r in t) {
8270
- let i = En.fromKey(r);
8279
+ let i = Sn.fromKey(r);
8271
8280
  i.equals(e) || i.isInside(e) || (n[r] = t[r]);
8272
8281
  }
8273
8282
  Object.keys(n).length < Object.keys(t).length && this.collapsed$.set(n);
@@ -8283,7 +8292,7 @@ var Ui = class extends Vi {
8283
8292
  return;
8284
8293
  }
8285
8294
  let n = this.schemaOverrides$.value, r = -1;
8286
- if (Ae(t)) {
8295
+ if (Ee(t)) {
8287
8296
  let i = 0;
8288
8297
  for (let a = 0; a < n.length; a++) if (n[a].path.length === e.path.length && (i++, i >= t)) {
8289
8298
  r = t === 0 ? a : a + 1;
@@ -8353,38 +8362,38 @@ var Ui = class extends Vi {
8353
8362
  });
8354
8363
  }
8355
8364
  deriveCollapsed$(e) {
8356
- return l(a(this.collapsed$, (t) => t?.[e.key] ?? !1), ot(this.collapsed$, e.key));
8365
+ return l(a(this.collapsed$, (t) => t?.[e.key] ?? !1), nt(this.collapsed$, e.key));
8357
8366
  }
8358
8367
  deriveHeight$(e) {
8359
- return l(a(this.height$, (t) => t?.[e.key]), ot(this.height$, e.key));
8368
+ return l(a(this.height$, (t) => t?.[e.key]), nt(this.height$, e.key));
8360
8369
  }
8361
8370
  };
8362
8371
  //#endregion
8363
8372
  //#region src/designer/browser/stores/node/constants.ts
8364
- function Zi(e, t) {
8373
+ function Ji(e, t) {
8365
8374
  return e.handle == null ? t.handle == null && e.group === t.group : e.handle === t.handle;
8366
8375
  }
8367
- function Qi(e) {
8376
+ function Yi(e) {
8368
8377
  return e.handle != null;
8369
8378
  }
8370
- function $i(e) {
8379
+ function Xi(e) {
8371
8380
  return e.handle == null;
8372
8381
  }
8373
- var ea = /* @__PURE__ */ function(e) {
8382
+ var Zi = /* @__PURE__ */ function(e) {
8374
8383
  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;
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) {
8384
+ }({}), Qi = (e) => e == "task_node" || e == "value_node" || e == "subflow_node" || e == "condition_node" || e == "trigger_node" || e == "error_node", $i = (e) => e == "input_node" || e == "output_node", ea = /* @__PURE__ */ function(e) {
8376
8385
  return e.Idle = "idle", e.Waiting = "waiting", e.Running = "running", e.Success = "success", e.Error = "error", e;
8377
- }({}), ia = "oo-designer-fitting-view", aa = "input", oa = "output";
8386
+ }({}), ta = "oo-designer-fitting-view", na = "input", ra = "output";
8378
8387
  //#endregion
8379
8388
  //#region src/designer/browser/stores/node/nodeSection/cloneLocales.ts
8380
- function sa(e, t, n) {
8389
+ function ia(e, t, n) {
8381
8390
  if (!e) return e;
8382
- let r = pt(e);
8391
+ let r = lt(e);
8383
8392
  if (!r || t && n && t === n) return e;
8384
8393
  if (!t || !n) return;
8385
8394
  let i = t.en.value, a = t["zh-CN"].value;
8386
8395
  if (!i[r] && !a[r]) return;
8387
- let o = _t(_t(r, n.en.value), n["zh-CN"].value);
8396
+ let o = pt(pt(r, n.en.value), n["zh-CN"].value);
8388
8397
  if (i[r]) {
8389
8398
  let e = n.en;
8390
8399
  e.set({
@@ -8403,60 +8412,50 @@ function sa(e, t, n) {
8403
8412
  }
8404
8413
  //#endregion
8405
8414
  //#region src/designer/browser/stores/node/nodeSection/constants.ts
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];
8415
+ var aa = "inputs", oa = "outputs", sa = "value", ca = "preview", la = "scriptlet", ua = "subflowInput", da = "subflowOutput", fa = "conditions", pa = "trigger";
8417
8416
  //#endregion
8418
8417
  //#region src/designer/browser/stores/node/nodeSection/parse.ts
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;
8418
+ function ma(e) {
8419
+ if (_(e)) {
8420
+ for (let t of Object.values(e)) if (b(t)) {
8421
+ if (!_(t)) return;
8422
+ for (let e of Object.values(t)) if (b(e) && !v(e)) return;
8424
8423
  }
8425
8424
  return e;
8426
8425
  }
8427
8426
  }
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;
8427
+ function ha(e) {
8428
+ if (_(e)) {
8429
+ for (let t of Object.values(e)) if (b(t)) {
8430
+ if (!_(t)) return;
8431
+ for (let e of Object.values(t)) if (b(e) && typeof e != "number") return;
8433
8432
  }
8434
8433
  return e;
8435
8434
  }
8436
8435
  }
8437
- function wa(e) {
8436
+ function ga(e) {
8438
8437
  return e ? !!(e.from_flow && e.from_flow.length > 0 || e.from_node && e.from_node.length > 0) : !1;
8439
8438
  }
8440
8439
  //#endregion
8441
8440
  //#region src/designer/browser/stores/node/nodeSection/inputSection.store.ts
8442
- var Ta = class {
8441
+ var _a = class {
8443
8442
  static {
8444
- this.TYPE = ca;
8443
+ this.TYPE = aa;
8445
8444
  }
8446
8445
  static is(e) {
8447
- return e.type === ca;
8446
+ return e.type === aa;
8448
8447
  }
8449
8448
  constructor(e) {
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)));
8449
+ this.type = aa, this.dispose = F(), this.onDidHandleIndexChange = this.dispose.add(ve()), this.onDidHandleRename = this.dispose.add(ve()), this.onDidHandleDelete = this.dispose.add(ve()), this.role = e.role, this.userLocales = e.userLocales;
8450
+ let t = this.dispose.add(s(ma(e.initialUIState?.collapsed))), n = this.dispose.add(s(ha(e.initialUIState?.height))), r = this.dispose.add(s(Je(e.initialUIState?.groupCollapsed)));
8452
8451
  this.uiState$ = this.dispose.add(u([
8453
8452
  t,
8454
8453
  n,
8455
8454
  r
8456
- ], ([e, t, n]) => Je({
8457
- collapsed: Je(e),
8458
- height: Je(t),
8459
- groupCollapsed: Qe(n)
8455
+ ], ([e, t, n]) => We({
8456
+ collapsed: We(e),
8457
+ height: We(t),
8458
+ groupCollapsed: Je(n)
8460
8459
  }))), this.$$ = {
8461
8460
  collapsed: t,
8462
8461
  height: n,
@@ -8466,7 +8465,7 @@ var Ta = class {
8466
8465
  additionalInputDefs: e.additionalInputDefs && this.dispose.add(e.additionalInputDefs.ref(!0)),
8467
8466
  showSettings: this.dispose.add(e.showSettings.ref(!0))
8468
8467
  };
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 }));
8468
+ 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) || dn(e(t.schema$)) == null), { equal: d })), f = this.dispose.add(c((e) => e(a).filter((t) => $.is(t) && dn(e(t.schema$)) != null), { equal: d }));
8470
8469
  this.$ = {
8471
8470
  collapsed: t,
8472
8471
  height: n,
@@ -8485,19 +8484,19 @@ var Ta = class {
8485
8484
  }
8486
8485
  setupHandleIndexChangeEvent() {
8487
8486
  let e = this.dispose.add(c((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}`);
8487
+ let t = e(this.$.inputHandleDefs)?.map((e) => Xi(e) ? `g:${e.group}` : `h:${e.handle}`), n = e(this.$.additionalInputDefs)?.map((e) => `h:${e.handle}`);
8489
8488
  return (t && n ? [...t, ...n] : t || n) ?? [];
8490
8489
  }, { equal: d }));
8491
- this.dispose.add(e.reaction(Se.bind(null, this.onDidHandleIndexChange)));
8490
+ this.dispose.add(e.reaction(ye.bind(null, this.onDidHandleIndexChange)));
8492
8491
  }
8493
8492
  findGroupForWriting(e) {
8494
8493
  let t = this.getInputHandleDefs$(), n = t?.value;
8495
- return n ? [n.findIndex((t) => $i(t) && t.group === e), t] : [-1, t];
8494
+ return n ? [n.findIndex((t) => Xi(t) && t.group === e), t] : [-1, t];
8496
8495
  }
8497
8496
  addGroup(e) {
8498
8497
  let [t, n] = this.findHandleForWriting(e), r = n?.value;
8499
8498
  if (r && t >= 0) {
8500
- let e = r.slice(), i = e.splice(t, 1), a = U("Group", this.$.allGroupNames.value).trim();
8499
+ let e = r.slice(), i = e.splice(t, 1), a = W("Group", this.$.allGroupNames.value).trim();
8501
8500
  e.splice(999, 0, { group: a }, ...i), n.set(e);
8502
8501
  }
8503
8502
  }
@@ -8560,20 +8559,20 @@ var Ta = class {
8560
8559
  return this.getInputHandleDefs$() != null;
8561
8560
  }
8562
8561
  getInputHandleDefs$() {
8563
- return Ze(this.role === "author") && this.$$.inputHandleDefs;
8562
+ return qe(this.role === "author") && this.$$.inputHandleDefs;
8564
8563
  }
8565
8564
  getAdditionalInputDefs$() {
8566
8565
  return this.$.additionalInputs?.value ? this.$$.additionalInputDefs : void 0;
8567
8566
  }
8568
8567
  findHandleForWriting(e) {
8569
8568
  let t = typeof e == "string" ? { handle: e } : e, n, r = this.getInputHandleDefs$();
8570
- if (n = r?.value?.findIndex((e) => Zi(e, t)), n != null && n >= 0) return [
8569
+ if (n = r?.value?.findIndex((e) => Ji(e, t)), n != null && n >= 0) return [
8571
8570
  n,
8572
8571
  r,
8573
8572
  !1
8574
8573
  ];
8575
8574
  let i = this.getAdditionalInputDefs$();
8576
- return n = i?.value?.findIndex((e) => Zi(e, t)), n != null && n >= 0 ? [
8575
+ return n = i?.value?.findIndex((e) => Ji(e, t)), n != null && n >= 0 ? [
8577
8576
  n,
8578
8577
  i,
8579
8578
  !0
@@ -8591,10 +8590,10 @@ var Ta = class {
8591
8590
  let t = e ? this.getAdditionalInputDefs$() : this.getInputHandleDefs$() || this.getAdditionalInputDefs$();
8592
8591
  if (t) {
8593
8592
  let e = this.$.allHandleNames.value, n = t.value, r = {
8594
- handle: U("input", e),
8595
- json_schema: q(n)
8593
+ handle: W("input", e),
8594
+ json_schema: J(n)
8596
8595
  };
8597
- t.set(n ? n.toSpliced(Ie(n, $i), 0, r) : [r]);
8596
+ t.set(n ? n.toSpliced(Me(n, Xi), 0, r) : [r]);
8598
8597
  }
8599
8598
  }
8600
8599
  renameHandle(e, t) {
@@ -8616,7 +8615,7 @@ var Ta = class {
8616
8615
  }), r.set(i.toSpliced(n, 1, {
8617
8616
  ...i[n],
8618
8617
  handle: t
8619
- })), Se(this.onDidHandleRename, [e, t]);
8618
+ })), ye(this.onDidHandleRename, [e, t]);
8620
8619
  }
8621
8620
  return !0;
8622
8621
  }
@@ -8628,15 +8627,15 @@ var Ta = class {
8628
8627
  let t = i.findIndex((t) => t.handle === e);
8629
8628
  t >= 0 && this.$$.handleInputsFrom.set(i.toSpliced(t, 1));
8630
8629
  }
8631
- this.$$.showSettings.set(void 0), n.set(r.toSpliced(t, 1)), Se(this.onDidHandleDelete, e);
8630
+ this.$$.showSettings.set(void 0), n.set(r.toSpliced(t, 1)), ye(this.onDidHandleDelete, e);
8632
8631
  }
8633
8632
  }
8634
8633
  moveHandle(e, t) {
8635
8634
  let [n, r] = this.findHandleForWriting(e), i = r?.value;
8636
8635
  if (i && n >= 0) {
8637
8636
  let e = i[n];
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);
8637
+ if (Yi(e) && dn(e.json_schema) != null) {
8638
+ let n = i.filter((e) => !Yi(e) || dn(e.json_schema) == null), a = i.filter((e) => Yi(e) && dn(e.json_schema) != null), o = a.findIndex((t) => t.handle == e.handle);
8640
8639
  if (o >= 0) {
8641
8640
  let e = a.splice(o, 1);
8642
8641
  a.splice(t, 0, ...e), r.set(n.concat(a));
@@ -8654,7 +8653,7 @@ var Ta = class {
8654
8653
  if (r >= 0) {
8655
8654
  let e = {
8656
8655
  ...n[r],
8657
- description: mt(t.description),
8656
+ description: ut(t.description),
8658
8657
  json_schema: t.json_schema,
8659
8658
  kind: t.kind,
8660
8659
  nullable: t.nullable
@@ -8670,14 +8669,14 @@ var Ta = class {
8670
8669
  let r = this.getInputHandleDefs$() || this.getAdditionalInputDefs$();
8671
8670
  if (r) {
8672
8671
  let i = this.$.allHandleNames.value, a = {
8673
- handle: i.includes(t.name) ? U("input", i) : t.name,
8672
+ handle: i.includes(t.name) ? W("input", i) : t.name,
8674
8673
  json_schema: t.schema$?.value,
8675
8674
  kind: t.schemaKind$?.value,
8676
8675
  nullable: t.nullable$?.value,
8677
- description: sa(t.description$.value, t.context.userLocales, this.userLocales),
8676
+ description: ia(t.description$.value, t.context.userLocales, this.userLocales),
8678
8677
  value: t.value$?.value
8679
8678
  };
8680
- if (h(a.value) && this.$$.handleInputsFrom) {
8679
+ if (b(a.value) && this.$$.handleInputsFrom) {
8681
8680
  let e = this.$$.handleInputsFrom.value;
8682
8681
  e ? this.$$.handleInputsFrom.set([...e, {
8683
8682
  handle: a.handle,
@@ -8689,14 +8688,14 @@ var Ta = class {
8689
8688
  }
8690
8689
  let o = r.value;
8691
8690
  if (o) {
8692
- let t = e ? o.findIndex((t) => Zi(t, e)) : -1;
8691
+ let t = e ? o.findIndex((t) => Ji(t, e)) : -1;
8693
8692
  t >= 0 ? r.set(o.toSpliced(t + 1, 0, a)) : r.set(n ? [a, ...o] : [...o, a]);
8694
8693
  } else r.set([a]);
8695
8694
  return a.handle;
8696
8695
  }
8697
8696
  }
8698
8697
  deriveHandleIndices$(e) {
8699
- if (e) return a(e, (e) => e && Ke(e, (e) => $i(e) ? { group: e.group } : { handle: e.handle }), L);
8698
+ if (e) return a(e, (e) => e && He(e, (e) => Xi(e) ? { group: e.group } : { handle: e.handle }), R);
8700
8699
  }
8701
8700
  deriveHandles$(e, t, n, r) {
8702
8701
  let i = this.deriveHandleIndices$(n.inputHandleDefs), o = n.boundHandles, s, f = c((u) => {
@@ -8712,7 +8711,7 @@ var Ta = class {
8712
8711
  d.push(f);
8713
8712
  continue;
8714
8713
  }
8715
- let p = o ? c((e) => e(r).has(u) || e(o).has(u)) : a(r, (e) => e.has(u)), { schema$: m, defaultValue$: h, description$: g, displayDescription$: _, kind$: v, nullable$: y, showSettings$: b, schemaOverrides$: x, value$: S } = this.deriveHandleRowVals$(n, n.inputHandleDefs, u, p), C = l(a(e, (e) => e?.[u], L), ot(e, u)), w = l(a(t, (e) => e?.[u], L), ot(t, u)), T = new Xi({
8714
+ let p = o ? c((e) => e(r).has(u) || e(o).has(u)) : a(r, (e) => e.has(u)), { schema$: m, defaultValue$: h, description$: g, displayDescription$: _, kind$: v, nullable$: y, showSettings$: b, schemaOverrides$: x, value$: S } = this.deriveHandleRowVals$(n, n.inputHandleDefs, u, p), C = l(a(e, (e) => e?.[u], R), nt(e, u)), w = l(a(t, (e) => e?.[u], R), nt(t, u)), T = new qi({
8716
8715
  role: n.role,
8717
8716
  inout: "in",
8718
8717
  userLocales: n.userLocales
@@ -8743,7 +8742,7 @@ var Ta = class {
8743
8742
  s.push(u);
8744
8743
  continue;
8745
8744
  }
8746
- let d = n.role === "user" ? "author" : n.role, f = o ? c((e) => e(r).has(i) || e(o).has(i)) : a(r, (e) => e.has(i)), { schema$: p, defaultValue$: h, description$: g, displayDescription$: _, kind$: v, nullable$: y, showSettings$: b, schemaOverrides$: x, value$: S } = this.deriveHandleRowVals$(n, n.additionalInputDefs, i, f), C = l(a(e, (e) => e?.[i], L), ot(e, i)), w = l(a(t, (e) => e?.[i], L), ot(t, i)), T = new Xi({
8745
+ let d = n.role === "user" ? "author" : n.role, f = o ? c((e) => e(r).has(i) || e(o).has(i)) : a(r, (e) => e.has(i)), { schema$: p, defaultValue$: h, description$: g, displayDescription$: _, kind$: v, nullable$: y, showSettings$: b, schemaOverrides$: x, value$: S } = this.deriveHandleRowVals$(n, n.additionalInputDefs, i, f), C = l(a(e, (e) => e?.[i], R), nt(e, i)), w = l(a(t, (e) => e?.[i], R), nt(t, i)), T = new qi({
8747
8746
  role: d,
8748
8747
  inout: "in",
8749
8748
  additional: !0,
@@ -8777,14 +8776,14 @@ var Ta = class {
8777
8776
  r[n >= 0 ? n : t.length] = e, i.set(r);
8778
8777
  } else i.set([e]);
8779
8778
  }
8780
- }), f = l(a(d, (e) => e?.description), W(d, "description")), p = c((e) => {
8781
- let t = e(f), i = pt(t);
8782
- return i != null && r ? bn(r, n, e, i, t) : t;
8783
- }), m = l(a(d, (e) => e?.json_schema, L), W(d, "json_schema")), g = l(a(d, (e) => it(e?.nullable)), W(d, "nullable")), _ = l(a(d, (e) => e?.kind), W(d, "kind")), v = a(d, (e) => e?.value), y = l(a(e, (e) => e?.scope === "input" && e.handle === s), (t) => e.set(t ? {
8779
+ }), f = l(a(d, (e) => e?.description), G(d, "description")), p = c((e) => {
8780
+ let t = e(f), i = lt(t);
8781
+ return i != null && r ? gn(r, n, e, i, t) : t;
8782
+ }), m = l(a(d, (e) => e?.json_schema, R), G(d, "json_schema")), h = l(a(d, (e) => et(e?.nullable)), G(d, "nullable")), g = l(a(d, (e) => e?.kind), G(d, "kind")), _ = a(d, (e) => e?.value), v = l(a(e, (e) => e?.scope === "input" && e.handle === s), (t) => e.set(t ? {
8784
8783
  scope: "input",
8785
8784
  handle: s
8786
- } : void 0)), b;
8787
- b = t ? l(a(t, (e) => e?.find((e) => e.handle === s)?.schema_overrides?.map((e) => Object.assign({}, e, { path: En.get(e.path) })), L), (e) => {
8785
+ } : void 0)), y;
8786
+ y = t ? l(a(t, (e) => e?.find((e) => e.handle === s)?.schema_overrides?.map((e) => Object.assign({}, e, { path: Sn.get(e.path) })), R), (e) => {
8788
8787
  let n = e?.map((e) => ({
8789
8788
  ...e,
8790
8789
  path: e.path.toJSON()
@@ -8802,7 +8801,7 @@ var Ta = class {
8802
8801
  }]);
8803
8802
  }) : l(a(d, (e) => e?.schema_overrides?.map((e) => ({
8804
8803
  ...e,
8805
- path: En.get(e.path)
8804
+ path: Sn.get(e.path)
8806
8805
  }))), (e) => {
8807
8806
  if (d.value) {
8808
8807
  let t = e?.map((e) => ({
@@ -8818,8 +8817,8 @@ var Ta = class {
8818
8817
  let x;
8819
8818
  return x = t ? l(c((e) => {
8820
8819
  let n = e(t)?.find((e) => e.handle === s)?.value;
8821
- return n === void 0 ? e(v) : n;
8822
- }, L), (e) => {
8820
+ return n === void 0 ? e(_) : n;
8821
+ }, R), (e) => {
8823
8822
  if (!d.value || u.value) return;
8824
8823
  let n = t.value;
8825
8824
  if (n) {
@@ -8829,33 +8828,33 @@ var Ta = class {
8829
8828
  handle: s,
8830
8829
  value: e
8831
8830
  }));
8832
- } else h(e) && t.set([{
8831
+ } else b(e) && t.set([{
8833
8832
  handle: s,
8834
8833
  value: e
8835
8834
  }]);
8836
- }) : l(a(d, (e) => e?.value, L), W(d, "value")), {
8835
+ }) : l(a(d, (e) => e?.value, R), G(d, "value")), {
8837
8836
  schema$: m,
8838
- defaultValue$: v,
8837
+ defaultValue$: _,
8839
8838
  description$: f,
8840
8839
  displayDescription$: p,
8841
- kind$: _,
8842
- nullable$: g,
8843
- showSettings$: y,
8844
- schemaOverrides$: b,
8840
+ kind$: g,
8841
+ nullable$: h,
8842
+ showSettings$: v,
8843
+ schemaOverrides$: y,
8845
8844
  value$: x
8846
8845
  };
8847
8846
  }
8848
8847
  deriveAllHandleNames$(e) {
8849
8848
  return c((t) => {
8850
- let n = t(e.inputHandleDefs)?.filter(Qi).map((e) => e.handle), r = t(e.additionalInputDefs)?.map((e) => e.handle);
8849
+ let n = t(e.inputHandleDefs)?.filter(Yi).map((e) => e.handle), r = t(e.additionalInputDefs)?.map((e) => e.handle);
8851
8850
  return (n || []).concat(r || []);
8852
8851
  }, { equal: d });
8853
8852
  }
8854
8853
  deriveAllGroupNames$(e) {
8855
- return a(e.inputHandleDefs, (e) => e?.filter($i).map((e) => e.group) || [], { equal: d });
8854
+ return a(e.inputHandleDefs, (e) => e?.filter(Xi).map((e) => e.group) || [], { equal: d });
8856
8855
  }
8857
8856
  deriveConnectedHandles$(e) {
8858
- 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);
8857
+ return e ? a(e, (e) => !e || e.length === 0 ? va : e.reduce((e, t) => (ga(t) && e.add(t.handle), e), /* @__PURE__ */ new Set())) : s(va);
8859
8858
  }
8860
8859
  deriveIsEmpty$(e) {
8861
8860
  return c((t) => {
@@ -8866,12 +8865,12 @@ var Ta = class {
8866
8865
  return !t(e.inputHandleDefs)?.length && !r;
8867
8866
  });
8868
8867
  }
8869
- }, Ea = /*#__PURE__*/ new Set(), Da = class {
8868
+ }, va = /*#__PURE__*/ new Set(), ya = class {
8870
8869
  #e;
8871
8870
  constructor(e, t) {
8872
8871
  this.#e = s(void 0), this.inputValues$ = this.#e;
8873
8872
  let n = s(void 0);
8874
- this.section = new Ta({
8873
+ this.section = new _a({
8875
8874
  createSchemaEditor: () => void 0,
8876
8875
  handleInputsFrom: this.#e,
8877
8876
  inputHandleDefs: e,
@@ -8901,7 +8900,7 @@ var Ta = class {
8901
8900
  return t;
8902
8901
  }
8903
8902
  replaceValues(e) {
8904
- let t = S(e);
8903
+ let t = g(e);
8905
8904
  if (t == null) return !1;
8906
8905
  let n = new Set(this.section.$.allHandleNames.value), r = [];
8907
8906
  for (let [e, i] of Object.entries(t)) {
@@ -8913,21 +8912,21 @@ var Ta = class {
8913
8912
  }
8914
8913
  return this.#e.set(r.length == 0 ? void 0 : r), !0;
8915
8914
  }
8916
- }, Oa = /* @__PURE__ */ r({
8917
- FlowRunInputEditorStore: () => Aa,
8918
- flowRunInputEditorState: () => ja
8919
- }), ka = /* @__PURE__ */ new WeakMap(), Aa = class {
8915
+ }, ba = /* @__PURE__ */ r({
8916
+ FlowRunInputEditorStore: () => Sa,
8917
+ flowRunInputEditorState: () => Ca
8918
+ }), xa = /* @__PURE__ */ new WeakMap(), Sa = class {
8920
8919
  constructor(e, t) {
8921
8920
  let n = s(e.map((e) => ({
8922
8921
  ...e.description == null ? {} : { description: e.description },
8923
8922
  handle: e.handle,
8924
8923
  json_schema: e.jsonSchema,
8925
8924
  nullable: e.nullable
8926
- }))), r = new Da(n, t);
8925
+ }))), r = new ya(n, t);
8927
8926
  this.valid$ = c((t) => {
8928
8927
  let n = new Set((t(r.inputValues$) ?? []).flatMap((e) => e.value === void 0 ? [] : [e.handle]));
8929
8928
  return e.every((e) => n.has(e.handle)) && !t(r.section.hasError$);
8930
- }), ka.set(this, {
8929
+ }), xa.set(this, {
8931
8930
  definitions: e,
8932
8931
  definitions$: n,
8933
8932
  inputs: r,
@@ -8936,20 +8935,20 @@ var Ta = class {
8936
8935
  });
8937
8936
  }
8938
8937
  dispose() {
8939
- let e = ja(this);
8938
+ let e = Ca(this);
8940
8939
  this.valid$.dispose(), e.inputs.dispose(), e.definitions$.dispose(), e.panelWidth$.dispose();
8941
8940
  }
8942
8941
  values() {
8943
- return ja(this).inputs.values();
8942
+ return Ca(this).inputs.values();
8944
8943
  }
8945
8944
  replaceValues(e) {
8946
- return ja(this).inputs.replaceValues(e);
8945
+ return Ca(this).inputs.replaceValues(e);
8947
8946
  }
8948
8947
  };
8949
- function ja(e) {
8950
- let t = ka.get(e);
8948
+ function Ca(e) {
8949
+ let t = xa.get(e);
8951
8950
  if (t == null) throw Error("Flow Run input editor store is unavailable.");
8952
8951
  return t;
8953
8952
  }
8954
8953
  //#endregion
8955
- 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 };
8954
+ export { nn as $, qe as $t, Ii as A, pt as At, mn as B, ze as Bt, Xi as C, et as Ct, Ji as D, R as Dt, $i as E, rt as Et, Ei as F, Xe as Ft, un as G, z as Gt, gn as H, Pe as Ht, Ti as I, ke as It, J, Ze as Jt, en as K, tt as Kt, gi as L, Le as Lt, Fi as M, ht as Mt, Pi as N, je as Nt, qi as O, He as Ot, Di as P, W as Pt, tn as Q, Je as Qt, Jr as R, $e as Rt, ra as S, Ye as St, Qi as T, Be as Tt, dn as U, nt as Ut, hn as V, Ae as Vt, fn as W, at as Wt, Bt as X, U as Xt, Xt as Y, ut as Yt, Vt as Z, V as Zt, ia as _, Ve as _t, ga as a, De as an, Y as at, ea as b, Qe as bt, fa as c, L as cn, Ft as ct, ca as d, E as dn, It as dt, lt as en, $t as et, la as f, F as fn, kt as ft, sa as g, Fe as gt, pa as h, At as ht, _a as i, G as in, rn as it, Li as j, ft as jt, $ as k, H as kt, aa as l, ve as ln, Et as lt, da as m, Lt as mt, Ca as n, Ne as nn, Rt as nt, ma as o, Oe as on, q as ot, ua as p, w as pn, jt as pt, Jt as q, We as qt, ba as r, it as rn, Ht as rt, ha as s, Ee as sn, Ut as st, Sa as t, st as tn, Qt as tt, oa as u, ye as un, Dt as ut, ta as v, Me as vt, Yi as w, Ie as wt, Zi as x, Ue as xt, na as y, Re as yt, Sn as z, ot as zt };