@oomol-lab/open-flow 0.1.0-alpha.4 → 0.1.0-alpha.5

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 (37) hide show
  1. package/dist/browser/{addNodeOptions-CGyTkP99.js → addNodeOptions-B6tOfd2Y.js} +53 -53
  2. package/dist/browser/carbon-DMCVsjHo.js +53 -0
  3. package/dist/browser/{createLucideIcon-MmUpJrIU.js → createLucideIcon-BlEx4FzJ.js} +80 -80
  4. package/dist/browser/{createResourceDialog-CIVfStiE.js → createResourceDialog-CrBp3E8P.js} +12 -12
  5. package/dist/browser/{dist-BbyiRq3c.js → dist-B0Q2Mn0n.js} +117 -107
  6. package/dist/browser/{dist-B9OV3YTx.js → dist-Bc9TvHYl.js} +7 -7
  7. package/dist/browser/{dist-0lWKriL5.js → dist-C46JByB-.js} +1 -1
  8. package/dist/browser/{dist-CvcmLAMW.js → dist-CUkceEvN.js} +4 -4
  9. package/dist/browser/{dist-zyY--HOV.js → dist-CVtP-E2c.js} +2 -2
  10. package/dist/browser/{dist-CLZJNoWB.js → dist-D5mdziGP.js} +4 -4
  11. package/dist/browser/{dist-7oZK9QXZ.js → dist-DMi8_lU3.js} +5 -5
  12. package/dist/browser/{dist-DL0SDskM.js → dist-DQVavPcf.js} +9 -8
  13. package/dist/browser/{dist-aWSZx4q1.js → dist-DWzdGVm9.js} +2 -2
  14. package/dist/browser/{dist-Djd02JSy.js → dist-DXgEYMFx.js} +4 -4
  15. package/dist/browser/{dist-o4dBuwiG.js → dist-DhsGR_K3.js} +4 -4
  16. package/dist/browser/{dist-BLk5M0uK.js → dist-Mecbzdl2.js} +3 -3
  17. package/dist/browser/{dist-CIq6ue3I.js → dist-n9WmBm5w.js} +1115 -1103
  18. package/dist/browser/{esm-DXw7EADW.js → esm-CoE5_2w7.js} +5 -5
  19. package/dist/browser/{field-runIpvMd.js → field-Daq9Lk-Y.js} +6 -6
  20. package/dist/browser/{flowRunInputEditorStore-B49C0ZmK.js → flowRunInputEditorStore-DXOyyY7o.js} +850 -675
  21. package/dist/browser/{flowWorkspace-CGsEHe2F.js → flowWorkspace-CylW6hge.js} +6202 -5872
  22. package/dist/browser/{lib-S4ccuMeT.js → lib-GrGxYjsJ.js} +3 -5
  23. package/dist/browser/licenses.md +11 -11
  24. package/dist/browser/{markdownContent-BvYiwIwR.js → markdownContent-ColGUxHy.js} +4046 -4018
  25. package/dist/browser/project-authoring.js +1 -1
  26. package/dist/browser/workbench.css +1 -1
  27. package/dist/browser/workbench.js +6 -6
  28. package/dist/common/connector-action.js +1 -1
  29. package/dist/common/control-api-conformance.js +1 -1
  30. package/dist/common/cron-trigger.js +1 -1
  31. package/dist/common/integration-trigger.js +1 -1
  32. package/dist/common/project-semantics.js +3 -5
  33. package/dist/common/run-lifecycle.js +1 -1
  34. package/dist/common/runtime-contract.js +1 -1
  35. package/dist/common/webhook-trigger.js +1 -1
  36. package/package.json +1 -1
  37. package/dist/browser/carbon-nMY84Amv.js +0 -53
@@ -1,6 +1,6 @@
1
1
  import { a as e, n as t, o as n, r, t as i } from "./rolldown-runtime-CEFd7nDs.js";
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-0lWKriL5.js";
3
- //#region ../../node_modules/@wopjs/cast/dist/index.mjs
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
+ //#region ../../node_modules/.bun/@wopjs+cast@0.1.16/node_modules/@wopjs/cast/dist/index.mjs
4
4
  var p = (e) => e !== void 0, m = (e) => !!e, h = (e) => e === !0 || e === !1, g = (e) => typeof e == "string", _ = Array.isArray, v = (e) => typeof e == "object" && !!e, y = (e) => v(e) && !_(e), b = (e) => y(e) ? e : void 0, x = () => !0, S = (e) => !!(e && e.constructor && e.call && e.apply), C = (e) => S(e) || S(e?.dispose);
5
5
  function w(e) {
6
6
  try {
@@ -15,7 +15,7 @@ function E() {
15
15
  function t() {
16
16
  e ||= (e = 1, t._disposables_ = t._disposables_?.forEach(w));
17
17
  }
18
- return t.dispose = t, t.keys = k, t.size = ne, t.has = O, t.set = A, t.make = ee, t.remove = te, t.flush = D, t;
18
+ return t.dispose = t, t.keys = k, t.size = N, t.has = O, t.set = M, t.make = A, t.remove = j, t.flush = D, t;
19
19
  }
20
20
  function D(e) {
21
21
  w(e == null ? this : this.remove(e));
@@ -26,104 +26,104 @@ function O(e) {
26
26
  function k() {
27
27
  return (this._disposables_ || []).keys();
28
28
  }
29
- function ee(e, t) {
29
+ function A(e, t) {
30
30
  let n = t();
31
31
  if (n) return this.set(e, n);
32
32
  }
33
- function te(e) {
33
+ function j(e) {
34
34
  let t = this._disposables_?.get(e);
35
35
  if (t) return this._disposables_?.delete(e), t;
36
36
  }
37
- function A(e, t) {
37
+ function M(e, t) {
38
38
  return this.flush(e), T(t) && t.abortable(() => this.remove(e)), (this._disposables_ ??= /* @__PURE__ */ new Map()).set(e, t), t;
39
39
  }
40
- function ne() {
40
+ function N() {
41
41
  return this._disposables_?.size || 0;
42
42
  }
43
- function j(e) {
43
+ function P(e) {
44
44
  function t() {
45
45
  let { current: e } = t;
46
46
  e && (t.current = null, w(e));
47
47
  }
48
- return t.current = e, t.dispose = t, t.is = re, t.set = oe, t.make = ie, t.remove = ae, t.flush = t, t;
48
+ return t.current = e, t.dispose = t, t.is = ee, t.set = ne, t.make = F, t.remove = te, t.flush = t, t;
49
49
  }
50
- function re(e) {
50
+ function ee(e) {
51
51
  return Object.is(this.current, e);
52
52
  }
53
- function ie(e) {
53
+ function F(e) {
54
54
  let t = e();
55
55
  if (t) return this.set(t);
56
56
  }
57
- function ae() {
57
+ function te() {
58
58
  let e = !!this.current;
59
59
  return this.current = null, e;
60
60
  }
61
- function oe(e) {
61
+ function ne(e) {
62
62
  return (!e || !this.is(e)) && (this.flush(), this.current = e, T(e) && e.abortable(() => {
63
63
  this.is(e) && this.remove();
64
64
  })), e;
65
65
  }
66
- function M(e) {
66
+ function I(e) {
67
67
  let t;
68
68
  function n() {
69
69
  t ||= (t = 1, n._disposables_ = n._disposables_?.forEach(w));
70
70
  }
71
- 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;
71
+ return n.dispose = n, n.size = le, n.has = oe, n.add = ie, n.make = se, n.remove = ce, n.flush = ae, e && n.add(e), n;
72
72
  }
73
- function se(e) {
74
- this._disposables_?.has(e) || ((this._disposables_ ??= /* @__PURE__ */ new Set()).add(e), T(e) && e.abortable(fe.bind(this, e)));
73
+ function re(e) {
74
+ this._disposables_?.has(e) || ((this._disposables_ ??= /* @__PURE__ */ new Set()).add(e), T(e) && e.abortable(ce.bind(this, e)));
75
75
  }
76
- function ce(e) {
77
- return Array.isArray(e) ? e.forEach(se, this) : se.call(this, e), e;
76
+ function ie(e) {
77
+ return Array.isArray(e) ? e.forEach(re, this) : re.call(this, e), e;
78
78
  }
79
- function le(e) {
79
+ function ae(e) {
80
80
  w(e ? this.remove(e) && e : this);
81
81
  }
82
- function ue(e) {
82
+ function oe(e) {
83
83
  return !!this._disposables_?.has(e);
84
84
  }
85
- function de(e) {
85
+ function se(e) {
86
86
  let t = e();
87
87
  return t && this.add(t);
88
88
  }
89
- function fe(e) {
89
+ function ce(e) {
90
90
  return !!this._disposables_?.delete(e);
91
91
  }
92
- function pe() {
92
+ function le() {
93
93
  return this._disposables_?.size || 0;
94
94
  }
95
95
  //#endregion
96
- //#region ../../node_modules/@wopjs/event/dist/index.mjs
97
- var me = /* @__PURE__ */ Symbol.for("send"), he = (e, t) => {
96
+ //#region ../../node_modules/.bun/@wopjs+event@0.1.5/node_modules/@wopjs/event/dist/index.mjs
97
+ var ue = /* @__PURE__ */ Symbol.for("send"), de = (e, t) => {
98
98
  try {
99
99
  e(t);
100
100
  } catch (e) {
101
101
  console.error(e);
102
102
  }
103
103
  };
104
- function ge(e) {
105
- if (process.env.NODE_ENV !== "production" && this.a && (console.error(/* @__PURE__ */ Error("[@wopjs/event:dev] Cannot send. Already disposed.")), console.error(this.a)), this._m) for (let t of this._l) he(t, e);
106
- else this._l && he(this._l, e);
104
+ function fe(e) {
105
+ if (process.env.NODE_ENV !== "production" && this.a && (console.error(/* @__PURE__ */ Error("[@wopjs/event:dev] Cannot send. Already disposed.")), console.error(this.a)), this._m) for (let t of this._l) de(t, e);
106
+ else this._l && de(this._l, e);
107
107
  }
108
- function _e() {
108
+ function pe() {
109
109
  return this._l ? this._m ? this._l.size : 1 : 0;
110
110
  }
111
- function ve(e) {
111
+ function me(e) {
112
112
  return this._l ? this._m ? this._l.add(e) : (this._l = /* @__PURE__ */ new Set([this._l, e]), this._m = !0) : this._l = e, () => this.off(e);
113
113
  }
114
- function ye(e) {
114
+ function he(e) {
115
115
  let t = !1;
116
116
  return e ? this._m ? t = this._l.delete(e) : (t = this._l === e) && (this._l = null) : (t = this.size() > 0) && (this._l = null, this._m = !1), t;
117
117
  }
118
- function be() {
118
+ function ge() {
119
119
  process.env.NODE_ENV !== "production" && (this.a = /* @__PURE__ */ Error("[@wopjs/event:dev] Disposed at:")), this.off();
120
120
  }
121
- var xe = () => {
121
+ var _e = () => {
122
122
  function e(t) {
123
123
  return e.on(t);
124
124
  }
125
- return e.size = _e, e.on = ve, e.off = ye, e.dispose = be, e[me] = ge, e;
126
- }, Se = (e, t) => e?.[me]?.(t), Ce = /* @__PURE__ */ Symbol.for("$NONE$ "), we = /* @__PURE__ */ Symbol.for("$TSUR_SPECIES$ "), Te = 1, Ee = 2, N = class e {
125
+ return e.size = pe, e.on = me, e.off = he, e.dispose = ge, e[ue] = fe, e;
126
+ }, ve = (e, t) => e?.[ue]?.(t), ye = /* @__PURE__ */ Symbol.for("$NONE$ "), be = /* @__PURE__ */ Symbol.for("$TSUR_SPECIES$ "), xe = 1, Se = 2, L = class e {
127
127
  static Ok(t) {
128
128
  return Object.freeze(new e(t, !0));
129
129
  }
@@ -148,12 +148,12 @@ var xe = () => {
148
148
  }
149
149
  }
150
150
  static isResult(e) {
151
- return !!e && e[we] === Ee;
151
+ return !!e && e[be] === Se;
152
152
  }
153
153
  static isSame(t, n) {
154
154
  return e.isResult(t) && e.isResult(n) ? Object.is(t._value, n._value) : !1;
155
155
  }
156
- [we] = Ee;
156
+ [be] = Se;
157
157
  _value;
158
158
  _ok;
159
159
  constructor(e, t) {
@@ -199,13 +199,13 @@ var xe = () => {
199
199
  return this._ok ? this : e.Err(t.call(n, this._value));
200
200
  }
201
201
  transpose() {
202
- return this._ok ? P.isOption(this._value) ? this._value.map(e.Ok) : P.Some(this) : P.None;
202
+ return this._ok ? R.isOption(this._value) ? this._value.map(e.Ok) : R.Some(this) : R.None;
203
203
  }
204
204
  ok() {
205
- return this._ok ? P.Some(this._value) : P.None;
205
+ return this._ok ? R.Some(this._value) : R.None;
206
206
  }
207
207
  err() {
208
- return this._ok ? P.None : P.Some(this._value);
208
+ return this._ok ? R.None : R.Some(this._value);
209
209
  }
210
210
  unwrap(e = "called `Result.unwrap()` on an `Err`") {
211
211
  if (this._ok) return this._value;
@@ -233,16 +233,16 @@ var xe = () => {
233
233
  toString() {
234
234
  return `${this._ok ? "Ok" : "Err"}(${this._value})`;
235
235
  }
236
- }, De = N.Ok, Oe = N.Err, P = class e {
236
+ }, Ce = L.Ok, we = L.Err, R = class e {
237
237
  static Some(t) {
238
238
  return Object.freeze(new e(t));
239
239
  }
240
- static None = /* @__PURE__ */ e.Some(Ce);
240
+ static None = /* @__PURE__ */ e.Some(ye);
241
241
  static from(t, n, r) {
242
242
  return (n ? n.call(r, t) : t) ? e.Some(t) : e.None;
243
243
  }
244
244
  static isOption(e) {
245
- return !!e && e[we] === Te;
245
+ return !!e && e[be] === xe;
246
246
  }
247
247
  static isSame(t, n) {
248
248
  return e.isOption(t) && e.isOption(n) ? Object.is(t._value, n._value) : !1;
@@ -250,7 +250,7 @@ var xe = () => {
250
250
  static unwrapOr(t) {
251
251
  return e.isOption(t) ? t.unwrapOr() : t;
252
252
  }
253
- [we] = Te;
253
+ [be] = xe;
254
254
  _value;
255
255
  constructor(e) {
256
256
  this._value = e;
@@ -259,10 +259,10 @@ var xe = () => {
259
259
  this.isSome() && (yield this._value);
260
260
  }
261
261
  isSome() {
262
- return this._value !== Ce;
262
+ return this._value !== ye;
263
263
  }
264
264
  isNone() {
265
- return this._value === Ce;
265
+ return this._value === ye;
266
266
  }
267
267
  isSomeAnd(e, t) {
268
268
  return this.isSome() && e.call(t, this._value);
@@ -304,13 +304,13 @@ var xe = () => {
304
304
  return this.isSome() ? e.Some(t.call(n, this._value)) : e.None;
305
305
  }
306
306
  transpose() {
307
- return this.isSome() ? N.isResult(this._value) ? this._value.map(e.Some) : N.Ok(this) : N.Ok(e.None);
307
+ return this.isSome() ? L.isResult(this._value) ? this._value.map(e.Some) : L.Ok(this) : L.Ok(e.None);
308
308
  }
309
309
  okOr(e) {
310
- return this.isSome() ? N.Ok(this._value) : N.Err(e);
310
+ return this.isSome() ? L.Ok(this._value) : L.Err(e);
311
311
  }
312
312
  okOrElse(e, t) {
313
- return this.isSome() ? N.Ok(this._value) : N.Err(e.call(t));
313
+ return this.isSome() ? L.Ok(this._value) : L.Err(e.call(t));
314
314
  }
315
315
  unwrap(e = "called `Option.unwrap()` on a `None` value") {
316
316
  if (this.isSome()) return this._value;
@@ -330,90 +330,90 @@ var xe = () => {
330
330
  }
331
331
  };
332
332
  Array.isArray;
333
- var ke = (e) => !!e && e.constructor === Object, Ae = (e) => {
333
+ var Te = (e) => !!e && e.constructor === Object, Ee = (e) => {
334
334
  try {
335
335
  return Number(e) === e;
336
336
  } catch {
337
337
  return !1;
338
338
  }
339
- }, je = (e) => Object.prototype.toString.call(e) === "[object Date]", Me = (e, t) => {
339
+ }, De = (e) => Object.prototype.toString.call(e) === "[object Date]", Oe = (e, t) => {
340
340
  if (Object.is(e, t)) return !0;
341
341
  if (e instanceof Date && t instanceof Date) return e.getTime() === t.getTime();
342
342
  if (e instanceof RegExp && t instanceof RegExp) return e.toString() === t.toString();
343
343
  if (typeof e != "object" || !e || typeof t != "object" || !t) return !1;
344
344
  let n = Reflect.ownKeys(e), r = Reflect.ownKeys(t);
345
345
  if (n.length !== r.length) return !1;
346
- for (let r = 0; r < n.length; r++) if (!Reflect.has(t, n[r]) || !Me(e[n[r]], t[n[r]])) return !1;
346
+ for (let r = 0; r < n.length; r++) if (!Reflect.has(t, n[r]) || !Oe(e[n[r]], t[n[r]])) return !1;
347
347
  return !0;
348
- }, Ne = (e) => e === "__proto__", Pe = (e, t, n) => t + e * (n - t), Fe = (e) => e;
349
- function Ie(e, t) {
348
+ }, ke = (e) => e === "__proto__", Ae = (e, t, n) => t + e * (n - t), je = (e) => e;
349
+ function Me(e, t) {
350
350
  let n = e.findIndex(t);
351
351
  return n >= 0 ? n : e.length;
352
352
  }
353
- var F = /*#__PURE__*/ Object.freeze({ equal: Me }), Le = {
353
+ var z = /*#__PURE__*/ Object.freeze({ equal: Oe }), Ne = {
354
354
  true: "True",
355
355
  false: "False"
356
356
  };
357
- function Re() {}
358
- var ze = 2147483647;
359
- function Be(e, t, n) {
357
+ function Pe() {}
358
+ var Fe = 2147483647;
359
+ function Ie(e, t, n) {
360
360
  return e < t ? t : e > n ? n : e;
361
361
  }
362
- function Ve(e) {
362
+ function Le(e) {
363
363
  return typeof e == "function";
364
364
  }
365
- function He(e) {
365
+ function Re(e) {
366
366
  return e == null ? [] : Array.isArray(e) ? e : [e];
367
367
  }
368
- function I(e) {
368
+ function B(e) {
369
369
  return Array.isArray(e) ? e : void 0;
370
370
  }
371
- function L(e) {
371
+ function V(e) {
372
372
  return e.some(m) ? e : void 0;
373
373
  }
374
- function Ue(e) {
374
+ function ze(e) {
375
375
  return e?.[e.length - 1];
376
376
  }
377
- function We(e) {
377
+ function Be(e) {
378
378
  return e.filter((e) => e != null);
379
379
  }
380
- var Ge = Symbol("Negative");
381
- function Ke(e, t, n) {
380
+ var Ve = Symbol("Negative");
381
+ function He(e, t, n) {
382
382
  let r = [];
383
383
  for (let i = 0; i < e.length; i++) {
384
384
  let a = t.call(n, e[i], i);
385
- a !== Ge && r.push(a);
385
+ a !== Ve && r.push(a);
386
386
  }
387
387
  return r;
388
388
  }
389
- function qe(e) {
389
+ function Ue(e) {
390
390
  return y(e) ? e : {};
391
391
  }
392
- function R(e) {
392
+ function H(e) {
393
393
  if (y(e)) return e;
394
394
  }
395
- function Je(e) {
395
+ function We(e) {
396
396
  if (y(e)) {
397
397
  for (let t of Object.values(e)) if (p(t)) return e;
398
398
  }
399
399
  }
400
- function Ye(e, t) {
400
+ function Ge(e, t) {
401
401
  if (y(e)) {
402
402
  let n = !1, r = {};
403
403
  for (let [i, a] of Object.entries(e)) t(a) && (n = !0, r[i] = a);
404
404
  if (n) return r;
405
405
  }
406
406
  }
407
- function Xe(e) {
407
+ function Ke(e) {
408
408
  return e === !0;
409
409
  }
410
- function Ze(e) {
410
+ function qe(e) {
411
411
  return e === !0 || void 0;
412
412
  }
413
- function Qe(e) {
414
- return Ye(e, Xe);
413
+ function Je(e) {
414
+ return Ge(e, Ke);
415
415
  }
416
- function $e(e) {
416
+ function Ye(e) {
417
417
  if (g(e)) return e;
418
418
  if (e == null) return "";
419
419
  try {
@@ -426,7 +426,7 @@ function $e(e) {
426
426
  }
427
427
  }
428
428
  }
429
- function et(e) {
429
+ function Xe(e) {
430
430
  if (e === void 0) return "undefined";
431
431
  try {
432
432
  return JSON.stringify(e);
@@ -438,29 +438,29 @@ function et(e) {
438
438
  }
439
439
  }
440
440
  }
441
- function z(e) {
441
+ function U(e) {
442
442
  return g(e) ? e : void 0;
443
443
  }
444
- function tt(e) {
444
+ function Ze(e) {
445
445
  return e && g(e) ? e : void 0;
446
446
  }
447
- function nt(e, t) {
447
+ function Qe(e, t) {
448
448
  let n = Number(e);
449
449
  return Number.isFinite(n) ? t ? Math.floor(n) : n : 0;
450
450
  }
451
- function B(e) {
452
- return Ae(e) ? e : void 0;
451
+ function W(e) {
452
+ return Ee(e) ? e : void 0;
453
453
  }
454
- function rt(e) {
455
- return Ae(e) && e > 0;
454
+ function $e(e) {
455
+ return Ee(e) && e > 0;
456
456
  }
457
- function it(e) {
457
+ function et(e) {
458
458
  return h(e) ? e : !1;
459
459
  }
460
- function at(e) {
460
+ function tt(e) {
461
461
  return h(e) ? e : void 0;
462
462
  }
463
- function V(e, t) {
463
+ function G(e, t) {
464
464
  let n = 0;
465
465
  for (let r of t) if (r.startsWith(e)) {
466
466
  if (r === e) {
@@ -472,7 +472,7 @@ function V(e, t) {
472
472
  }
473
473
  return n === 0 ? e : `${e}${n + 1}`;
474
474
  }
475
- function H(e, t, n = Object.is) {
475
+ function nt(e, t, n = Object.is) {
476
476
  return (r) => {
477
477
  n(e.value?.[t], r) || e.set({
478
478
  ...e.value,
@@ -480,7 +480,7 @@ function H(e, t, n = Object.is) {
480
480
  });
481
481
  };
482
482
  }
483
- function U(e, t, n = Object.is) {
483
+ function K(e, t, n = Object.is) {
484
484
  return (r) => {
485
485
  e.value && !n(e.value[t], r) && e.set({
486
486
  ...e.value,
@@ -488,64 +488,64 @@ function U(e, t, n = Object.is) {
488
488
  });
489
489
  };
490
490
  }
491
- function ot(e, t, n) {
491
+ function rt(e, t, n) {
492
492
  for (let n = 0; n < t.length; n++) e = e ? e[t[n]] : void 0;
493
493
  return e === void 0 ? n : e;
494
494
  }
495
- function st(e) {
495
+ function it(e) {
496
496
  try {
497
- return De(JSON.parse(e));
497
+ return Ce(JSON.parse(e));
498
498
  } catch (e) {
499
- return Oe(e + "");
499
+ return we(e + "");
500
500
  }
501
501
  }
502
- function ct(e) {
502
+ function at(e) {
503
503
  try {
504
504
  return JSON.stringify(e, null, 2);
505
505
  } catch (e) {
506
506
  return console.warn(e), "{}";
507
507
  }
508
508
  }
509
- function lt(e) {
509
+ function ot(e) {
510
510
  return !!e && (e.startsWith("self::") || e.startsWith("./") || e.startsWith("../"));
511
511
  }
512
- function ut(e) {
512
+ function st(e) {
513
513
  return e ? () => e.set(!e.value) : void 0;
514
514
  }
515
- function dt(e) {
515
+ function ct(e) {
516
516
  return !!e && e.startsWith("%") && e.endsWith("%") && e.length > 2;
517
517
  }
518
- function ft(e) {
519
- return dt(e) ? e.slice(1, -1) : void 0;
518
+ function lt(e) {
519
+ return ct(e) ? e.slice(1, -1) : void 0;
520
520
  }
521
- function pt(e) {
522
- return dt(e) ? void 0 : e;
521
+ function ut(e) {
522
+ return ct(e) ? void 0 : e;
523
523
  }
524
- var mt = 64;
525
- function ht(e, t) {
526
- let n = e?.toLowerCase().replace(/[^a-z0-9_]+/g, "-").replace(/^-+/, "").slice(0, mt).replace(/-+$/, "");
527
- if (n && !Ne(n)) {
524
+ var dt = 64;
525
+ function ft(e, t) {
526
+ let n = e?.toLowerCase().replace(/[^a-z0-9_]+/g, "-").replace(/^-+/, "").slice(0, dt).replace(/-+$/, "");
527
+ if (n && !ke(n)) {
528
528
  let e = n, r = 1;
529
529
  for (; t[e] != null;) e = `${n}${r++}`;
530
530
  return e;
531
531
  }
532
532
  for (let e = 1;; e++) if (n = `key${e}`, t[n] == null) return n;
533
533
  }
534
- function gt(e, t) {
535
- Ne(e) && (e = "_" + e);
534
+ function pt(e, t) {
535
+ ke(e) && (e = "_" + e);
536
536
  let n = e, r = 1;
537
537
  for (; t[n] != null;) n = `${e}${r++}`;
538
538
  return n;
539
539
  }
540
- function _t(e) {
540
+ function mt(e) {
541
541
  return /^[\x09\x0A\x0D\x20-\x7E]+$/.test(e);
542
542
  }
543
- function vt(e, t) {
543
+ function ht(e, t) {
544
544
  return Object.hasOwn(e, t) ? e[t] : void 0;
545
545
  }
546
546
  //#endregion
547
- //#region ../../node_modules/dayjs/dayjs.min.js
548
- var yt = /* @__PURE__ */ i(((e, t) => {
547
+ //#region ../../node_modules/.bun/dayjs@1.11.23/node_modules/dayjs/dayjs.min.js
548
+ var gt = /* @__PURE__ */ i(((e, t) => {
549
549
  (function(n, r) {
550
550
  typeof e == "object" && t !== void 0 ? t.exports = r() : typeof define == "function" && define.amd ? define(r) : (n = typeof globalThis < "u" ? globalThis : n || self).dayjs = r();
551
551
  })(e, (function() {
@@ -839,7 +839,7 @@ var yt = /* @__PURE__ */ i(((e, t) => {
839
839
  return w(1e3 * e);
840
840
  }, w.en = b[y], w.Ls = b, w.p = {}, w;
841
841
  }));
842
- })), bt = /* @__PURE__ */ i(((e, t) => {
842
+ })), _t = /* @__PURE__ */ i(((e, t) => {
843
843
  (function(n, r) {
844
844
  typeof e == "object" && t !== void 0 ? t.exports = r() : typeof define == "function" && define.amd ? define(r) : (n = typeof globalThis < "u" ? globalThis : n || self).dayjs_plugin_customParseFormat = r();
845
845
  })(e, (function() {
@@ -995,7 +995,7 @@ var yt = /* @__PURE__ */ i(((e, t) => {
995
995
  };
996
996
  };
997
997
  }));
998
- })), xt = /* @__PURE__ */ i(((e, t) => {
998
+ })), vt = /* @__PURE__ */ i(((e, t) => {
999
999
  (function(n, r) {
1000
1000
  typeof e == "object" && t !== void 0 ? t.exports = r() : typeof define == "function" && define.amd ? define(r) : (n = typeof globalThis < "u" ? globalThis : n || self).dayjs_plugin_localeData = r();
1001
1001
  })(e, (function() {
@@ -1089,7 +1089,7 @@ var yt = /* @__PURE__ */ i(((e, t) => {
1089
1089
  };
1090
1090
  };
1091
1091
  }));
1092
- })), St = /* @__PURE__ */ i(((e, t) => {
1092
+ })), yt = /* @__PURE__ */ i(((e, t) => {
1093
1093
  (function(n, r) {
1094
1094
  typeof e == "object" && t !== void 0 ? t.exports = r() : typeof define == "function" && define.amd ? define(r) : (n = typeof globalThis < "u" ? globalThis : n || self).dayjs_plugin_weekday = r();
1095
1095
  })(e, (function() {
@@ -1100,56 +1100,56 @@ var yt = /* @__PURE__ */ i(((e, t) => {
1100
1100
  };
1101
1101
  };
1102
1102
  }));
1103
- })), Ct = /* @__PURE__ */ n(yt(), 1), wt = /* @__PURE__ */ n(bt(), 1), Tt = /* @__PURE__ */ n(xt(), 1), Et = /* @__PURE__ */ n(St(), 1);
1104
- Ct.default.extend(Et.default), Ct.default.extend(Tt.default), Ct.default.extend(wt.default);
1105
- var Dt = [
1103
+ })), bt = /* @__PURE__ */ n(gt(), 1), xt = /* @__PURE__ */ n(_t(), 1), St = /* @__PURE__ */ n(vt(), 1), Ct = /* @__PURE__ */ n(yt(), 1);
1104
+ bt.default.extend(Ct.default), bt.default.extend(St.default), bt.default.extend(xt.default);
1105
+ var wt = [
1106
1106
  "date",
1107
1107
  "time",
1108
1108
  "date-time"
1109
1109
  ];
1110
- function Ot(e) {
1111
- return Dt.includes(e);
1110
+ function Tt(e) {
1111
+ return wt.includes(e);
1112
1112
  }
1113
- function kt(e) {
1114
- let t = (0, Ct.default)(e);
1113
+ function Et(e) {
1114
+ let t = (0, bt.default)(e);
1115
1115
  return t.isValid() ? t.toDate() : /* @__PURE__ */ new Date();
1116
1116
  }
1117
- function At(e) {
1118
- return Dt.includes(e) ? e : jt;
1117
+ function Dt(e) {
1118
+ return wt.includes(e) ? e : Ot;
1119
1119
  }
1120
- var jt = "date-time", Mt = /*#__PURE__*/ Dt.map((e) => ({ value: e }));
1121
- function Nt(e) {
1122
- return Mt.find((t) => t.value === e);
1120
+ var Ot = "date-time", kt = /*#__PURE__*/ wt.map((e) => ({ value: e }));
1121
+ function At(e) {
1122
+ return kt.find((t) => t.value === e);
1123
1123
  }
1124
- function Pt(e, t = jt) {
1125
- return (0, Ct.default)(e).format(Ft(t));
1124
+ function jt(e, t = Ot) {
1125
+ return (0, bt.default)(e).format(Mt(t));
1126
1126
  }
1127
- function Ft(e) {
1127
+ function Mt(e) {
1128
1128
  switch (e) {
1129
1129
  case "date": return "YYYY-MM-DD";
1130
1130
  case "time": return "HH:mm:ssZ";
1131
1131
  case "date-time": return "YYYY-MM-DDTHH:mm:ssZ";
1132
1132
  }
1133
1133
  }
1134
- var It = [
1134
+ var Nt = [
1135
1135
  "RGB",
1136
1136
  "HSV",
1137
1137
  "HEX",
1138
1138
  "HEX8"
1139
1139
  ];
1140
- function Lt(e) {
1141
- return It.includes(e);
1140
+ function Pt(e) {
1141
+ return Nt.includes(e);
1142
1142
  }
1143
- function Rt(e) {
1144
- return Lt(e) ? e : "HEX";
1143
+ function Ft(e) {
1144
+ return Pt(e) ? e : "HEX";
1145
1145
  }
1146
- var zt = /*#__PURE__*/ It.map((e) => ({ value: e }));
1147
- function Bt(e) {
1148
- return zt.find((t) => t.value === e);
1146
+ var It = /*#__PURE__*/ Nt.map((e) => ({ value: e }));
1147
+ function Lt(e) {
1148
+ return It.find((t) => t.value === e);
1149
1149
  }
1150
1150
  //#endregion
1151
1151
  //#region src/designer/browser/jsonSchema/preset.ts
1152
- var W = {
1152
+ var q = {
1153
1153
  string: {
1154
1154
  icon: "i-carbon:quotes",
1155
1155
  value: "string",
@@ -1245,7 +1245,7 @@ var W = {
1245
1245
  value: "null",
1246
1246
  label: "Null"
1247
1247
  }
1248
- }, Vt = (e) => Object.hasOwn(W, e), Ht = {
1248
+ }, Rt = (e) => Object.hasOwn(q, e), zt = {
1249
1249
  close: "i-codicon:close",
1250
1250
  gotoFile: "i-codicon:go-to-file",
1251
1251
  objectAdd: "i-carbon:add-alt",
@@ -1253,49 +1253,49 @@ var W = {
1253
1253
  package: "i-codicon:package",
1254
1254
  settings: "i-codicon:gear",
1255
1255
  tool: "i-codicon:symbol-property"
1256
- }, Ut = (e) => Vt(e) ? W[e].icon : Ht[e], Wt = (e) => Ut(q(e)), Gt = (e, t) => {
1257
- let n = W[t];
1256
+ }, Bt = (e) => Rt(e) ? q[e].icon : zt[e], Vt = (e) => Bt(Y(e)), Ht = (e, t) => {
1257
+ let n = q[t];
1258
1258
  return {
1259
1259
  ...n,
1260
1260
  label: e(`preset.${n.value}`)
1261
1261
  };
1262
- }, Kt = (e, t) => Ke([
1263
- W.string,
1264
- W.variable,
1265
- W.number,
1266
- W.secret,
1267
- W.boolean,
1268
- W.integer,
1269
- W.color,
1270
- W.text,
1271
- W.object,
1272
- W.array,
1262
+ }, Ut = (e, t) => He([
1263
+ q.string,
1264
+ q.variable,
1265
+ q.number,
1266
+ q.secret,
1267
+ q.boolean,
1268
+ q.integer,
1269
+ q.color,
1270
+ q.text,
1271
+ q.object,
1272
+ q.array,
1273
1273
  {
1274
1274
  icon: "i-carbon:checkbox-checked",
1275
1275
  label: "Select",
1276
1276
  value: "select",
1277
- options: [W.select, W.multiSelect]
1277
+ options: [q.select, q.multiSelect]
1278
1278
  },
1279
- W.date,
1280
- W.any,
1281
- W.binary,
1282
- W.null,
1279
+ q.date,
1280
+ q.any,
1281
+ q.binary,
1282
+ q.null,
1283
1283
  {
1284
1284
  icon: "i-carbon:branch",
1285
1285
  label: "Applicators",
1286
1286
  value: "applicators",
1287
1287
  options: [
1288
- W.anyOf,
1289
- W.allOf,
1290
- W.oneOf
1288
+ q.anyOf,
1289
+ q.allOf,
1290
+ q.oneOf
1291
1291
  ]
1292
1292
  }
1293
1293
  ], (n) => {
1294
- if (qt(n)) {
1295
- let r = Ke(n.options, (n) => t(n.value) ? {
1294
+ if (Wt(n)) {
1295
+ let r = He(n.options, (n) => t(n.value) ? {
1296
1296
  ...n,
1297
1297
  label: e(`preset.${n.value}`)
1298
- } : Ge);
1298
+ } : Ve);
1299
1299
  if (r.length > 0) return {
1300
1300
  ...n,
1301
1301
  label: e(`preset.${n.label}`),
@@ -1305,18 +1305,18 @@ var W = {
1305
1305
  ...n,
1306
1306
  label: e(`preset.${n.value}`)
1307
1307
  };
1308
- return Ge;
1309
- }), qt = (e) => "options" in e, Jt = "ui:widget", G = "ui:options", Yt = {
1308
+ return Ve;
1309
+ }), Wt = (e) => "options" in e, Gt = "ui:widget", J = "ui:options", Kt = {
1310
1310
  secret: "oomol/secret",
1311
1311
  binary: "oomol/bin",
1312
1312
  variable: "oomol/var"
1313
- }, Xt = {
1313
+ }, qt = {
1314
1314
  secret: {
1315
- contentMediaType: Yt.secret,
1315
+ contentMediaType: Kt.secret,
1316
1316
  type: "string"
1317
1317
  },
1318
- binary: { contentMediaType: Yt.binary },
1319
- variable: { contentMediaType: Yt.variable },
1318
+ binary: { contentMediaType: Kt.binary },
1319
+ variable: { contentMediaType: Kt.variable },
1320
1320
  any: {},
1321
1321
  null: { type: "null" },
1322
1322
  boolean: { type: "boolean" },
@@ -1329,16 +1329,16 @@ var W = {
1329
1329
  },
1330
1330
  color: {
1331
1331
  type: "string",
1332
- [Jt]: "color",
1333
- [G]: { colorType: "HEX" }
1332
+ [Gt]: "color",
1333
+ [J]: { colorType: "HEX" }
1334
1334
  },
1335
1335
  text: {
1336
1336
  type: "string",
1337
- [Jt]: "text"
1337
+ [Gt]: "text"
1338
1338
  },
1339
1339
  select: {
1340
1340
  enum: [],
1341
- [G]: {
1341
+ [J]: {
1342
1342
  labels: [],
1343
1343
  types: void 0
1344
1344
  }
@@ -1347,7 +1347,7 @@ var W = {
1347
1347
  type: "array",
1348
1348
  uniqueItems: !0,
1349
1349
  items: { enum: [] },
1350
- [G]: {
1350
+ [J]: {
1351
1351
  labels: [],
1352
1352
  types: void 0
1353
1353
  }
@@ -1360,22 +1360,22 @@ var W = {
1360
1360
  },
1361
1361
  anyOf: {
1362
1362
  anyOf: [],
1363
- [G]: { labels: [] }
1363
+ [J]: { labels: [] }
1364
1364
  },
1365
1365
  oneOf: {
1366
1366
  oneOf: [],
1367
- [G]: { labels: [] }
1367
+ [J]: { labels: [] }
1368
1368
  },
1369
1369
  allOf: {
1370
1370
  allOf: [],
1371
- [G]: { labels: [] }
1371
+ [J]: { labels: [] }
1372
1372
  }
1373
1373
  };
1374
- function Zt(e, t) {
1375
- let n = structuredClone(Xt[e]);
1376
- return t && cn(n, t), n;
1374
+ function Jt(e, t) {
1375
+ let n = structuredClone(qt[e]);
1376
+ return t && on(n, t), n;
1377
1377
  }
1378
- function K(e) {
1378
+ function Yt(e) {
1379
1379
  if (e && e.length > 0) {
1380
1380
  let t;
1381
1381
  for (let n of e) {
@@ -1383,11 +1383,11 @@ function K(e) {
1383
1383
  let e = n.json_schema;
1384
1384
  e && (t = e);
1385
1385
  }
1386
- return t || Zt("any");
1386
+ return t || Jt("any");
1387
1387
  }
1388
- return Zt("any");
1388
+ return Jt("any");
1389
1389
  }
1390
- var Qt = {
1390
+ var Xt = {
1391
1391
  null: null,
1392
1392
  boolean: !1,
1393
1393
  integer: 0,
@@ -1395,11 +1395,11 @@ var Qt = {
1395
1395
  string: "",
1396
1396
  color: "#7d7fe9",
1397
1397
  select: (e) => {
1398
- let t = He(e?.enum)?.[0];
1398
+ let t = Re(e?.enum)?.[0];
1399
1399
  return t === void 0 ? null : t;
1400
1400
  },
1401
1401
  multiSelect: [],
1402
- date: (e) => Pt(/* @__PURE__ */ new Date(), At(e?.format)),
1402
+ date: (e) => jt(/* @__PURE__ */ new Date(), Dt(e?.format)),
1403
1403
  text: "",
1404
1404
  any: void 0,
1405
1405
  object: {},
@@ -1411,19 +1411,19 @@ var Qt = {
1411
1411
  binary: void 0,
1412
1412
  variable: void 0
1413
1413
  };
1414
- function $t(e, t) {
1415
- let n = Qt[e];
1416
- return Ve(n) ? n(t) : n;
1414
+ function Zt(e, t) {
1415
+ let n = Xt[e];
1416
+ return Le(n) ? n(t) : n;
1417
1417
  }
1418
- function q(e) {
1418
+ function Y(e) {
1419
1419
  let t = e;
1420
1420
  if (!t) return "any";
1421
1421
  switch (t.contentMediaType) {
1422
- case Xt.secret.contentMediaType: return "secret";
1423
- case Xt.binary.contentMediaType: return "binary";
1424
- case Xt.variable.contentMediaType: return "variable";
1422
+ case qt.secret.contentMediaType: return "secret";
1423
+ case qt.binary.contentMediaType: return "binary";
1424
+ case qt.variable.contentMediaType: return "variable";
1425
1425
  }
1426
- if (t["ui:widget"] && Vt(t["ui:widget"])) return t[Jt];
1426
+ if (t["ui:widget"] && Rt(t["ui:widget"])) return t[Gt];
1427
1427
  if (t.anyOf) return "anyOf";
1428
1428
  if (t.oneOf) return "oneOf";
1429
1429
  if (t.allOf) return "any";
@@ -1435,20 +1435,20 @@ function q(e) {
1435
1435
  case "number":
1436
1436
  case "object": return t.type;
1437
1437
  case "array": return t.uniqueItems ? "multiSelect" : "array";
1438
- case "string": return Ot(t.format) ? "date" : "string";
1438
+ case "string": return Tt(t.format) ? "date" : "string";
1439
1439
  default: return "any";
1440
1440
  }
1441
1441
  }
1442
- function en(e) {
1442
+ function Qt(e) {
1443
1443
  return e === "any" || e === "variable";
1444
1444
  }
1445
- function tn(e) {
1445
+ function $t(e) {
1446
1446
  return e === "any" || e === "variable" || e === "anyOf" || e === "oneOf" || e === "allOf";
1447
1447
  }
1448
- function nn(e) {
1449
- return !tn(e) && e !== "binary";
1448
+ function en(e) {
1449
+ return !$t(e) && e !== "binary";
1450
1450
  }
1451
- function rn(e) {
1451
+ function tn(e) {
1452
1452
  switch (e) {
1453
1453
  case "string":
1454
1454
  case "text":
@@ -1464,12 +1464,12 @@ function rn(e) {
1464
1464
  case "array": return "array";
1465
1465
  }
1466
1466
  }
1467
- function an(e) {
1467
+ function nn(e) {
1468
1468
  if (e === null) return "null";
1469
1469
  let t = typeof e;
1470
1470
  return t === "object" && Array.isArray(e) ? "array" : t;
1471
1471
  }
1472
- function on(e) {
1472
+ function rn(e) {
1473
1473
  switch (e) {
1474
1474
  case "string":
1475
1475
  case "number":
@@ -1480,8 +1480,8 @@ function on(e) {
1480
1480
  default: return "any";
1481
1481
  }
1482
1482
  }
1483
- function sn(e) {
1484
- let t = q(e);
1483
+ function an(e) {
1484
+ let t = Y(e);
1485
1485
  if (t === "anyOf" || t === "oneOf" || t === "allOf") return (e[t]?.length ?? 0) || 1;
1486
1486
  if (t === "string") return 4;
1487
1487
  if (t === "variable") return 0;
@@ -1489,88 +1489,88 @@ function sn(e) {
1489
1489
  if (t === "color" || t === "date") return 1;
1490
1490
  if (t === "integer" || t === "number") return 5;
1491
1491
  if (t === "object") {
1492
- let t = R(e.properties);
1492
+ let t = H(e.properties);
1493
1493
  return (t ? Object.keys(t).length : 1) + 1;
1494
1494
  }
1495
1495
  if (t === "select") {
1496
- let t = I(e.enum)?.length ?? 0;
1496
+ let t = B(e.enum)?.length ?? 0;
1497
1497
  return t ? t * 2 : 1;
1498
1498
  }
1499
1499
  if (t === "multiSelect") {
1500
- let t = I(R(e.items)?.enum)?.length ?? 0;
1500
+ let t = B(H(e.items)?.enum)?.length ?? 0;
1501
1501
  return t ? t * 2 : 1;
1502
1502
  }
1503
1503
  return 0;
1504
1504
  }
1505
- function cn(e, t) {
1506
- let n = ln(t);
1507
- n && fn(e, n);
1505
+ function on(e, t) {
1506
+ let n = sn(t);
1507
+ n && un(e, n);
1508
1508
  }
1509
- function ln(e) {
1510
- switch (q(e)) {
1511
- case "select": return un(e.enum, e[G]?.labels);
1512
- case "multiSelect": return un(R(e.items)?.enum, e[G]?.labels);
1509
+ function sn(e) {
1510
+ switch (Y(e)) {
1511
+ case "select": return cn(e.enum, e[J]?.labels);
1512
+ case "multiSelect": return cn(H(e.items)?.enum, e[J]?.labels);
1513
1513
  }
1514
1514
  }
1515
- function un(e, t) {
1516
- if (dn(e) && e.length > 0) return {
1515
+ function cn(e, t) {
1516
+ if (ln(e) && e.length > 0) return {
1517
1517
  enum: e,
1518
- labels: dn(t) ? t : void 0
1518
+ labels: ln(t) ? t : void 0
1519
1519
  };
1520
1520
  }
1521
- function dn(e) {
1521
+ function ln(e) {
1522
1522
  return _(e);
1523
1523
  }
1524
- function fn(e, t) {
1525
- switch (q(e)) {
1524
+ function un(e, t) {
1525
+ switch (Y(e)) {
1526
1526
  case "select":
1527
- e.enum = t.enum, e[G] = {
1528
- ...R(e[G]),
1527
+ e.enum = t.enum, e[J] = {
1528
+ ...H(e[J]),
1529
1529
  labels: t.labels ?? []
1530
1530
  };
1531
1531
  break;
1532
1532
  case "multiSelect": e.items = {
1533
- ...R(e.items),
1533
+ ...H(e.items),
1534
1534
  enum: t.enum
1535
- }, e[G] = {
1536
- ...R(e[G]),
1535
+ }, e[J] = {
1536
+ ...H(e[J]),
1537
1537
  labels: t.labels ?? []
1538
1538
  };
1539
1539
  }
1540
1540
  }
1541
1541
  //#endregion
1542
1542
  //#region src/base/common/type.ts
1543
- function pn(e) {
1543
+ function dn(e) {
1544
1544
  return y(e);
1545
1545
  }
1546
1546
  //#endregion
1547
1547
  //#region src/designer/browser/llm/widget.ts
1548
- function J(e) {
1549
- if (!pn(e)) return;
1548
+ function fn(e) {
1549
+ if (!dn(e)) return;
1550
1550
  let t = e["ui:widget"];
1551
1551
  if (t == "llm/messages") return "llm/messages";
1552
1552
  if (t == "llm/model") return "llm/model";
1553
1553
  }
1554
- function mn(e) {
1555
- if (!pn(e)) return;
1554
+ function pn(e) {
1555
+ if (!dn(e)) return;
1556
1556
  let t = e["ui:options"];
1557
- if (pn(t)) return typeof t.title == "string" && t.title.length > 0 ? t.title : void 0;
1557
+ if (dn(t)) return typeof t.title == "string" && t.title.length > 0 ? t.title : void 0;
1558
1558
  }
1559
1559
  //#endregion
1560
1560
  //#region src/designer/browser/stores/designer/l10n.ts
1561
- function hn(e) {
1561
+ function mn(e) {
1562
1562
  return e === "en" ? "zh-CN" : "en";
1563
1563
  }
1564
- function gn(e, t, n) {
1565
- return n && _t(n) ? e.en : e[t] || e.en;
1564
+ function hn(e, t, n) {
1565
+ return n && mt(n) ? e.en : e[t] || e.en;
1566
1566
  }
1567
- function _n(e, t, n, r, i) {
1568
- let a = e[n(t)] || e.en, o = vt(n(a), r);
1569
- return o || (o = vt(n(a === e.en ? e["zh-CN"] : e.en), r), o) ? o : i ?? r;
1567
+ function gn(e, t, n, r, i) {
1568
+ let a = e[n(t)] || e.en, o = ht(n(a), r);
1569
+ return o || (o = ht(n(a === e.en ? e["zh-CN"] : e.en), r), o) ? o : i ?? r;
1570
1570
  }
1571
1571
  //#endregion
1572
- //#region ../../node_modules/@wopjs/weak-cache/dist/index.mjs
1573
- var vn = /* @__PURE__ */ new WeakMap(), yn = (e) => e === null || typeof e != "object" && typeof e != "function" ? e : (vn.has(e) ? vn : vn.set(e, Symbol())).get(e), bn = class {
1572
+ //#region ../../node_modules/.bun/@wopjs+weak-cache@0.1.5/node_modules/@wopjs/weak-cache/dist/index.mjs
1573
+ 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 {
1574
1574
  get size() {
1575
1575
  return this._r.size;
1576
1576
  }
@@ -1590,7 +1590,7 @@ var vn = /* @__PURE__ */ new WeakMap(), yn = (e) => e === null || typeof e != "o
1590
1590
  this._r.clear();
1591
1591
  }
1592
1592
  delete(e) {
1593
- let t = yn(e), n = this._r.get(t);
1593
+ let t = vn(e), n = this._r.get(t);
1594
1594
  return n ? (this._g.unregister(n), this._r.delete(t)) : !1;
1595
1595
  }
1596
1596
  dispose() {
@@ -1601,13 +1601,13 @@ var vn = /* @__PURE__ */ new WeakMap(), yn = (e) => e === null || typeof e != "o
1601
1601
  return n || this.set(e, n = t()), n;
1602
1602
  }
1603
1603
  get(e) {
1604
- return this._r.get(yn(e))?.deref();
1604
+ return this._r.get(vn(e))?.deref();
1605
1605
  }
1606
1606
  has(e) {
1607
1607
  return this.get(e) !== void 0;
1608
1608
  }
1609
1609
  set(e, t) {
1610
- let n = yn(e), r = new WeakRef(t);
1610
+ let n = vn(e), r = new WeakRef(t);
1611
1611
  return this._r.set(n, r), this._g.register(t, n, r), Object.is(n, e) || this._g.register(e, n, r), this;
1612
1612
  }
1613
1613
  *values() {
@@ -1616,10 +1616,10 @@ var vn = /* @__PURE__ */ new WeakMap(), yn = (e) => e === null || typeof e != "o
1616
1616
  t && (yield t);
1617
1617
  }
1618
1618
  }
1619
- }, xn = /* @__PURE__ */ new WeakMap(), Sn = new bn(), Cn = class e {
1619
+ }, bn = /* @__PURE__ */ new WeakMap(), xn = new yn(), Sn = class e {
1620
1620
  static get(t) {
1621
- let n = Array.isArray(t) ? xn.get(t) ?? xn.set(t, $e(t) || "[]").get(t) : t == null ? "[]" : $e([t]);
1622
- return Sn.get(n) || Sn.set(n, new e(n, t)).get(n);
1621
+ let n = Array.isArray(t) ? bn.get(t) ?? bn.set(t, Ye(t) || "[]").get(t) : t == null ? "[]" : Ye([t]);
1622
+ return xn.get(n) || xn.set(n, new e(n, t)).get(n);
1623
1623
  }
1624
1624
  static fromKey(t) {
1625
1625
  return e.get(JSON.parse(t));
@@ -1653,7 +1653,7 @@ var vn = /* @__PURE__ */ new WeakMap(), yn = (e) => e === null || typeof e != "o
1653
1653
  toJSON() {
1654
1654
  return this.path;
1655
1655
  }
1656
- }, wn = /* @__PURE__ */ i(((e) => {
1656
+ }, Cn = /* @__PURE__ */ i(((e) => {
1657
1657
  Object.defineProperty(e, "__esModule", { value: !0 }), e.regexpCode = e.getEsmExportName = e.getProperty = e.safeStringify = e.stringify = e.strConcat = e.addCodeArg = e.str = e._ = e.nil = e._Code = e.Name = e.IDENTIFIER = e._CodeOrName = void 0;
1658
1658
  var t = class {};
1659
1659
  e._CodeOrName = t, e.IDENTIFIER = /^[a-z$_][a-z$_0-9]*$/i;
@@ -1758,9 +1758,9 @@ var vn = /* @__PURE__ */ new WeakMap(), yn = (e) => e === null || typeof e != "o
1758
1758
  return new r(e.toString());
1759
1759
  }
1760
1760
  e.regexpCode = g;
1761
- })), Tn = /* @__PURE__ */ i(((e) => {
1761
+ })), wn = /* @__PURE__ */ i(((e) => {
1762
1762
  Object.defineProperty(e, "__esModule", { value: !0 }), e.ValueScope = e.ValueScopeName = e.Scope = e.varKinds = e.UsedValueState = void 0;
1763
- var t = wn(), n = class extends Error {
1763
+ var t = Cn(), n = class extends Error {
1764
1764
  constructor(e) {
1765
1765
  super(`CodeGen: "code" for ${e} not defined`), this.value = e.value;
1766
1766
  }
@@ -1869,9 +1869,9 @@ var vn = /* @__PURE__ */ new WeakMap(), yn = (e) => e === null || typeof e != "o
1869
1869
  return c;
1870
1870
  }
1871
1871
  };
1872
- })), Y = /* @__PURE__ */ i(((e) => {
1872
+ })), X = /* @__PURE__ */ i(((e) => {
1873
1873
  Object.defineProperty(e, "__esModule", { value: !0 }), e.or = e.and = e.not = e.CodeGen = e.operators = e.varKinds = e.ValueScopeName = e.ValueScope = e.Scope = e.Name = e.regexpCode = e.stringify = e.getProperty = e.nil = e.strConcat = e.str = e._ = void 0;
1874
- var t = wn(), n = Tn(), r = wn();
1874
+ var t = Cn(), n = wn(), r = Cn();
1875
1875
  Object.defineProperty(e, "_", {
1876
1876
  enumerable: !0,
1877
1877
  get: function() {
@@ -1913,7 +1913,7 @@ var vn = /* @__PURE__ */ new WeakMap(), yn = (e) => e === null || typeof e != "o
1913
1913
  return r.Name;
1914
1914
  }
1915
1915
  });
1916
- var i = Tn();
1916
+ var i = wn();
1917
1917
  Object.defineProperty(e, "Scope", {
1918
1918
  enumerable: !0,
1919
1919
  get: function() {
@@ -2046,7 +2046,7 @@ var vn = /* @__PURE__ */ new WeakMap(), yn = (e) => e === null || typeof e != "o
2046
2046
  let { nodes: n } = this, r = n.length;
2047
2047
  for (; r--;) {
2048
2048
  let i = n[r];
2049
- i.optimizeNames(e, t) || (ee(e, i.names), n.splice(r, 1));
2049
+ i.optimizeNames(e, t) || (A(e, i.names), n.splice(r, 1));
2050
2050
  }
2051
2051
  return n.length > 0 ? this : void 0;
2052
2052
  }
@@ -2076,7 +2076,7 @@ var vn = /* @__PURE__ */ new WeakMap(), yn = (e) => e === null || typeof e != "o
2076
2076
  let e = n.optimizeNodes();
2077
2077
  n = this.else = Array.isArray(e) ? new g(e) : e;
2078
2078
  }
2079
- if (n) return t === !1 ? n instanceof e ? n : n.nodes : this.nodes.length ? this : new e(te(t), n instanceof e ? [n] : n.nodes);
2079
+ if (n) return t === !1 ? n instanceof e ? n : n.nodes : this.nodes.length ? this : new e(j(t), n instanceof e ? [n] : n.nodes);
2080
2080
  if (!(t === !1 || !this.nodes.length)) return this;
2081
2081
  }
2082
2082
  optimizeNames(e, t) {
@@ -2361,32 +2361,32 @@ var vn = /* @__PURE__ */ new WeakMap(), yn = (e) => e === null || typeof e != "o
2361
2361
  return e instanceof t._Code && e._items.some((e) => e instanceof t.Name && n[e.str] === 1 && r[e.str] !== void 0);
2362
2362
  }
2363
2363
  }
2364
- function ee(e, t) {
2364
+ function A(e, t) {
2365
2365
  for (let n in t) e[n] = (e[n] || 0) - (t[n] || 0);
2366
2366
  }
2367
- function te(e) {
2368
- return typeof e == "boolean" || typeof e == "number" || e === null ? !e : (0, t._)`!${ae(e)}`;
2367
+ function j(e) {
2368
+ return typeof e == "boolean" || typeof e == "number" || e === null ? !e : (0, t._)`!${te(e)}`;
2369
2369
  }
2370
- e.not = te;
2371
- var A = ie(e.operators.AND);
2372
- function ne(...e) {
2373
- return e.reduce(A);
2370
+ e.not = j;
2371
+ var M = F(e.operators.AND);
2372
+ function N(...e) {
2373
+ return e.reduce(M);
2374
2374
  }
2375
- e.and = ne;
2376
- var j = ie(e.operators.OR);
2377
- function re(...e) {
2378
- return e.reduce(j);
2375
+ e.and = N;
2376
+ var P = F(e.operators.OR);
2377
+ function ee(...e) {
2378
+ return e.reduce(P);
2379
2379
  }
2380
- e.or = re;
2381
- function ie(e) {
2382
- return (n, r) => n === t.nil ? r : r === t.nil ? n : (0, t._)`${ae(n)} ${e} ${ae(r)}`;
2380
+ e.or = ee;
2381
+ function F(e) {
2382
+ return (n, r) => n === t.nil ? r : r === t.nil ? n : (0, t._)`${te(n)} ${e} ${te(r)}`;
2383
2383
  }
2384
- function ae(e) {
2384
+ function te(e) {
2385
2385
  return e instanceof t.Name ? e : (0, t._)`(${e})`;
2386
2386
  }
2387
- })), X = /* @__PURE__ */ i(((e) => {
2387
+ })), Z = /* @__PURE__ */ i(((e) => {
2388
2388
  Object.defineProperty(e, "__esModule", { value: !0 }), e.checkStrictMode = e.getErrorPath = e.Type = e.useFunc = e.setEvaluated = e.evaluatedPropsToName = e.mergeEvaluated = e.eachItem = e.unescapeJsonPointer = e.escapeJsonPointer = e.escapeFragment = e.unescapeFragment = e.schemaRefOrVal = e.schemaHasRulesButRef = e.schemaHasRules = e.checkUnknownRules = e.alwaysValidSchema = e.toHash = void 0;
2389
- var t = Y(), n = wn();
2389
+ var t = X(), n = Cn();
2390
2390
  function r(e) {
2391
2391
  let t = {};
2392
2392
  for (let n of e) t[n] = !0;
@@ -2509,9 +2509,9 @@ var vn = /* @__PURE__ */ new WeakMap(), yn = (e) => e === null || typeof e != "o
2509
2509
  }
2510
2510
  }
2511
2511
  e.checkStrictMode = x;
2512
- })), Z = /* @__PURE__ */ i(((e) => {
2512
+ })), Tn = /* @__PURE__ */ i(((e) => {
2513
2513
  Object.defineProperty(e, "__esModule", { value: !0 });
2514
- var t = Y();
2514
+ var t = X();
2515
2515
  e.default = {
2516
2516
  data: new t.Name("data"),
2517
2517
  valCxt: new t.Name("valCxt"),
@@ -2532,7 +2532,7 @@ var vn = /* @__PURE__ */ new WeakMap(), yn = (e) => e === null || typeof e != "o
2532
2532
  };
2533
2533
  })), En = /* @__PURE__ */ i(((e) => {
2534
2534
  Object.defineProperty(e, "__esModule", { value: !0 }), e.extendErrors = e.resetErrorsCount = e.reportExtraError = e.reportError = e.keyword$DataError = e.keywordError = void 0;
2535
- var t = Y(), n = X(), r = Z();
2535
+ var t = X(), n = Z(), r = Tn();
2536
2536
  e.keywordError = { message: ({ keyword: e }) => (0, t.str)`must pass "${e}" keyword validation` }, e.keyword$DataError = { message: ({ keyword: e, schemaType: n }) => n ? (0, t.str)`"${e}" keyword must be ${n} ($data)` : (0, t.str)`"${e}" keyword is invalid ($data)` };
2537
2537
  function i(n, r = e.keywordError, i, a) {
2538
2538
  let { it: o } = n, { gen: s, compositeRule: u, allErrors: f } = o, p = d(n, r, i);
@@ -2596,7 +2596,7 @@ var vn = /* @__PURE__ */ new WeakMap(), yn = (e) => e === null || typeof e != "o
2596
2596
  }
2597
2597
  })), Dn = /* @__PURE__ */ i(((e) => {
2598
2598
  Object.defineProperty(e, "__esModule", { value: !0 }), e.boolOrEmptySchema = e.topBoolOrEmptySchema = void 0;
2599
- var t = En(), n = Y(), r = Z(), i = { message: "boolean schema is false" };
2599
+ var t = En(), n = X(), r = Tn(), i = { message: "boolean schema is false" };
2600
2600
  function a(e) {
2601
2601
  let { gen: t, schema: i, validateName: a } = e;
2602
2602
  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));
@@ -2691,7 +2691,7 @@ var vn = /* @__PURE__ */ new WeakMap(), yn = (e) => e === null || typeof e != "o
2691
2691
  e.shouldUseRule = r;
2692
2692
  })), An = /* @__PURE__ */ i(((e) => {
2693
2693
  Object.defineProperty(e, "__esModule", { value: !0 }), e.reportTypeError = e.checkDataTypes = e.checkDataType = e.coerceAndCheckDataType = e.getJSONTypes = e.getSchemaTypes = e.DataType = void 0;
2694
- var t = On(), n = kn(), r = En(), i = Y(), a = X(), o;
2694
+ var t = On(), n = kn(), r = En(), i = X(), a = Z(), o;
2695
2695
  (function(e) {
2696
2696
  e[e.Correct = 0] = "Correct", e[e.Wrong = 1] = "Wrong";
2697
2697
  })(o || (e.DataType = o = {}));
@@ -2828,7 +2828,7 @@ var vn = /* @__PURE__ */ new WeakMap(), yn = (e) => e === null || typeof e != "o
2828
2828
  }
2829
2829
  })), jn = /* @__PURE__ */ i(((e) => {
2830
2830
  Object.defineProperty(e, "__esModule", { value: !0 }), e.assignDefaults = void 0;
2831
- var t = Y(), n = X();
2831
+ var t = X(), n = Z();
2832
2832
  function r(e, t) {
2833
2833
  let { properties: n, items: r } = e.schema;
2834
2834
  if (t === "object" && n) for (let t in n) i(e, t, n[t].default);
@@ -2848,7 +2848,7 @@ var vn = /* @__PURE__ */ new WeakMap(), yn = (e) => e === null || typeof e != "o
2848
2848
  }
2849
2849
  })), Q = /* @__PURE__ */ i(((e) => {
2850
2850
  Object.defineProperty(e, "__esModule", { value: !0 }), e.validateUnion = e.validateArray = e.usePattern = e.callValidateCode = e.schemaProperties = e.allSchemaProperties = e.noPropertyInData = e.propertyInData = e.isOwnProperty = e.hasPropFunc = e.reportMissingProp = e.checkMissingProp = e.checkReportMissingProp = void 0;
2851
- var t = Y(), n = X(), r = Z(), i = X();
2851
+ var t = X(), n = Z(), r = Tn(), i = Z();
2852
2852
  function a(e, n) {
2853
2853
  let { gen: r, data: i, it: a } = e;
2854
2854
  r.if(d(r, i, n, a.opts.ownProperties), () => {
@@ -2952,7 +2952,7 @@ var vn = /* @__PURE__ */ new WeakMap(), yn = (e) => e === null || typeof e != "o
2952
2952
  e.validateUnion = v;
2953
2953
  })), Mn = /* @__PURE__ */ i(((e) => {
2954
2954
  Object.defineProperty(e, "__esModule", { value: !0 }), e.validateKeywordUsage = e.validSchemaType = e.funcKeywordCode = e.macroKeywordCode = void 0;
2955
- var t = Y(), n = Z(), r = Q(), i = En();
2955
+ var t = X(), n = Tn(), r = Q(), i = En();
2956
2956
  function a(e, n) {
2957
2957
  let { gen: r, keyword: i, schema: a, parentSchema: o, it: s } = e, c = n.macro.call(s.self, a, o, s), l = u(r, i, c);
2958
2958
  s.opts.validateSchema !== !1 && s.self.validateSchema(c, !0);
@@ -3033,7 +3033,7 @@ var vn = /* @__PURE__ */ new WeakMap(), yn = (e) => e === null || typeof e != "o
3033
3033
  e.validateKeywordUsage = f;
3034
3034
  })), Nn = /* @__PURE__ */ i(((e) => {
3035
3035
  Object.defineProperty(e, "__esModule", { value: !0 }), e.extendSubschemaMode = e.extendSubschemaData = e.getSubschema = void 0;
3036
- var t = Y(), n = X();
3036
+ var t = X(), n = Z();
3037
3037
  function r(e, { keyword: r, schemaProp: i, schema: a, schemaPath: o, errSchemaPath: s, topSchemaRef: c }) {
3038
3038
  if (r !== void 0 && a !== void 0) throw Error("both \"keyword\" and \"schema\" passed, only one allowed");
3039
3039
  if (r !== void 0) {
@@ -3166,7 +3166,7 @@ var vn = /* @__PURE__ */ new WeakMap(), yn = (e) => e === null || typeof e != "o
3166
3166
  }
3167
3167
  })), In = /* @__PURE__ */ i(((e) => {
3168
3168
  Object.defineProperty(e, "__esModule", { value: !0 }), e.getSchemaRefs = e.resolveUrl = e.normalizeId = e._getFullPath = e.getFullPath = e.inlineRef = void 0;
3169
- var t = X(), n = Pn(), r = Fn(), i = /* @__PURE__ */ new Set([
3169
+ var t = Z(), n = Pn(), r = Fn(), i = /* @__PURE__ */ new Set([
3170
3170
  "type",
3171
3171
  "format",
3172
3172
  "pattern",
@@ -3257,7 +3257,7 @@ var vn = /* @__PURE__ */ new WeakMap(), yn = (e) => e === null || typeof e != "o
3257
3257
  e.getSchemaRefs = h;
3258
3258
  })), Ln = /* @__PURE__ */ i(((e) => {
3259
3259
  Object.defineProperty(e, "__esModule", { value: !0 }), e.getData = e.KeywordCxt = e.validateFunctionCode = void 0;
3260
- var t = Dn(), n = An(), r = kn(), i = An(), a = jn(), o = Mn(), s = Nn(), c = Y(), l = Z(), u = In(), d = X(), f = En();
3260
+ 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();
3261
3261
  function p(e) {
3262
3262
  if (S(e) && (w(e), x(e))) {
3263
3263
  _(e);
@@ -3284,7 +3284,7 @@ var vn = /* @__PURE__ */ new WeakMap(), yn = (e) => e === null || typeof e != "o
3284
3284
  function _(e) {
3285
3285
  let { schema: t, opts: n, gen: r } = e;
3286
3286
  m(e, () => {
3287
- n.$comment && t.$comment && ee(e), D(e), r.let(l.default.vErrors, null), r.let(l.default.errors, 0), n.unevaluated && v(e), T(e), te(e);
3287
+ n.$comment && t.$comment && A(e), D(e), r.let(l.default.vErrors, null), r.let(l.default.errors, 0), n.unevaluated && v(e), T(e), j(e);
3288
3288
  });
3289
3289
  }
3290
3290
  function v(e) {
@@ -3312,7 +3312,7 @@ var vn = /* @__PURE__ */ new WeakMap(), yn = (e) => e === null || typeof e != "o
3312
3312
  }
3313
3313
  function C(e, t) {
3314
3314
  let { schema: n, gen: r, opts: i } = e;
3315
- i.$comment && n.$comment && ee(e), O(e), k(e);
3315
+ i.$comment && n.$comment && A(e), O(e), k(e);
3316
3316
  let a = r.const("_errs", l.default.errors);
3317
3317
  T(e, a), r.var(t, (0, c._)`${a} === ${l.default.errors}`);
3318
3318
  }
@@ -3320,9 +3320,9 @@ var vn = /* @__PURE__ */ new WeakMap(), yn = (e) => e === null || typeof e != "o
3320
3320
  (0, d.checkUnknownRules)(e), E(e);
3321
3321
  }
3322
3322
  function T(e, t) {
3323
- if (e.opts.jtd) return ne(e, [], !1, t);
3323
+ if (e.opts.jtd) return N(e, [], !1, t);
3324
3324
  let r = (0, n.getSchemaTypes)(e.schema);
3325
- ne(e, r, !(0, n.coerceAndCheckDataType)(e, r), t);
3325
+ N(e, r, !(0, n.coerceAndCheckDataType)(e, r), t);
3326
3326
  }
3327
3327
  function E(e) {
3328
3328
  let { schema: t, errSchemaPath: n, opts: r, self: i } = e;
@@ -3339,7 +3339,7 @@ var vn = /* @__PURE__ */ new WeakMap(), yn = (e) => e === null || typeof e != "o
3339
3339
  function k(e) {
3340
3340
  if (e.schema.$async && !e.schemaEnv.$async) throw Error("async schema in sync schema");
3341
3341
  }
3342
- function ee({ gen: e, schemaEnv: t, schema: n, errSchemaPath: r, opts: i }) {
3342
+ function A({ gen: e, schemaEnv: t, schema: n, errSchemaPath: r, opts: i }) {
3343
3343
  let a = n.$comment;
3344
3344
  if (i.$comment === !0) e.code((0, c._)`${l.default.self}.logger.log(${a})`);
3345
3345
  else if (typeof i.$comment == "function") {
@@ -3347,78 +3347,78 @@ var vn = /* @__PURE__ */ new WeakMap(), yn = (e) => e === null || typeof e != "o
3347
3347
  e.code((0, c._)`${l.default.self}.opts.$comment(${a}, ${n}, ${i}.schema)`);
3348
3348
  }
3349
3349
  }
3350
- function te(e) {
3350
+ function j(e) {
3351
3351
  let { gen: t, schemaEnv: n, validateName: r, ValidationError: i, opts: a } = e;
3352
- n.$async ? t.if((0, c._)`${l.default.errors} === 0`, () => t.return(l.default.data), () => t.throw((0, c._)`new ${i}(${l.default.vErrors})`)) : (t.assign((0, c._)`${r}.errors`, l.default.vErrors), a.unevaluated && A(e), t.return((0, c._)`${l.default.errors} === 0`));
3352
+ n.$async ? t.if((0, c._)`${l.default.errors} === 0`, () => t.return(l.default.data), () => t.throw((0, c._)`new ${i}(${l.default.vErrors})`)) : (t.assign((0, c._)`${r}.errors`, l.default.vErrors), a.unevaluated && M(e), t.return((0, c._)`${l.default.errors} === 0`));
3353
3353
  }
3354
- function A({ gen: e, evaluated: t, props: n, items: r }) {
3354
+ function M({ gen: e, evaluated: t, props: n, items: r }) {
3355
3355
  n instanceof c.Name && e.assign((0, c._)`${t}.props`, n), r instanceof c.Name && e.assign((0, c._)`${t}.items`, r);
3356
3356
  }
3357
- function ne(e, t, n, a) {
3357
+ function N(e, t, n, a) {
3358
3358
  let { gen: o, schema: s, data: u, allErrors: f, opts: p, self: m } = e, { RULES: h } = m;
3359
3359
  if (s.$ref && (p.ignoreKeywordsWithRef || !(0, d.schemaHasRulesButRef)(s, h))) {
3360
- o.block(() => de(e, "$ref", h.all.$ref.definition));
3360
+ o.block(() => se(e, "$ref", h.all.$ref.definition));
3361
3361
  return;
3362
3362
  }
3363
- p.jtd || re(e, t), o.block(() => {
3363
+ p.jtd || ee(e, t), o.block(() => {
3364
3364
  for (let e of h.rules) g(e);
3365
3365
  g(h.post);
3366
3366
  });
3367
3367
  function g(d) {
3368
- (0, r.shouldUseGroup)(s, d) && (d.type ? (o.if((0, i.checkDataType)(d.type, u, p.strictNumbers)), j(e, d), t.length === 1 && t[0] === d.type && n && (o.else(), (0, i.reportTypeError)(e)), o.endIf()) : j(e, d), f || o.if((0, c._)`${l.default.errors} === ${a || 0}`));
3368
+ (0, r.shouldUseGroup)(s, d) && (d.type ? (o.if((0, i.checkDataType)(d.type, u, p.strictNumbers)), P(e, d), t.length === 1 && t[0] === d.type && n && (o.else(), (0, i.reportTypeError)(e)), o.endIf()) : P(e, d), f || o.if((0, c._)`${l.default.errors} === ${a || 0}`));
3369
3369
  }
3370
3370
  }
3371
- function j(e, t) {
3371
+ function P(e, t) {
3372
3372
  let { gen: n, schema: i, opts: { useDefaults: o } } = e;
3373
3373
  o && (0, a.assignDefaults)(e, t.type), n.block(() => {
3374
- for (let n of t.rules) (0, r.shouldUseRule)(i, n) && de(e, n.keyword, n.definition, t.type);
3374
+ for (let n of t.rules) (0, r.shouldUseRule)(i, n) && se(e, n.keyword, n.definition, t.type);
3375
3375
  });
3376
3376
  }
3377
- function re(e, t) {
3378
- e.schemaEnv.meta || !e.opts.strictTypes || (ie(e, t), e.opts.allowUnionTypes || ae(e, t), oe(e, e.dataTypes));
3377
+ function ee(e, t) {
3378
+ e.schemaEnv.meta || !e.opts.strictTypes || (F(e, t), e.opts.allowUnionTypes || te(e, t), ne(e, e.dataTypes));
3379
3379
  }
3380
- function ie(e, t) {
3380
+ function F(e, t) {
3381
3381
  if (t.length) {
3382
3382
  if (!e.dataTypes.length) {
3383
3383
  e.dataTypes = t;
3384
3384
  return;
3385
3385
  }
3386
3386
  t.forEach((t) => {
3387
- se(e.dataTypes, t) || le(e, `type "${t}" not allowed by context "${e.dataTypes.join(",")}"`);
3388
- }), ce(e, t);
3387
+ re(e.dataTypes, t) || ae(e, `type "${t}" not allowed by context "${e.dataTypes.join(",")}"`);
3388
+ }), ie(e, t);
3389
3389
  }
3390
3390
  }
3391
- function ae(e, t) {
3392
- t.length > 1 && !(t.length === 2 && t.includes("null")) && le(e, "use allowUnionTypes to allow union type keyword");
3391
+ function te(e, t) {
3392
+ t.length > 1 && !(t.length === 2 && t.includes("null")) && ae(e, "use allowUnionTypes to allow union type keyword");
3393
3393
  }
3394
- function oe(e, t) {
3394
+ function ne(e, t) {
3395
3395
  let n = e.self.RULES.all;
3396
3396
  for (let i in n) {
3397
3397
  let a = n[i];
3398
3398
  if (typeof a == "object" && (0, r.shouldUseRule)(e.schema, a)) {
3399
3399
  let { type: n } = a.definition;
3400
- n.length && !n.some((e) => M(t, e)) && le(e, `missing type "${n.join(",")}" for keyword "${i}"`);
3400
+ n.length && !n.some((e) => I(t, e)) && ae(e, `missing type "${n.join(",")}" for keyword "${i}"`);
3401
3401
  }
3402
3402
  }
3403
3403
  }
3404
- function M(e, t) {
3404
+ function I(e, t) {
3405
3405
  return e.includes(t) || t === "number" && e.includes("integer");
3406
3406
  }
3407
- function se(e, t) {
3407
+ function re(e, t) {
3408
3408
  return e.includes(t) || t === "integer" && e.includes("number");
3409
3409
  }
3410
- function ce(e, t) {
3410
+ function ie(e, t) {
3411
3411
  let n = [];
3412
- for (let r of e.dataTypes) se(t, r) ? n.push(r) : t.includes("integer") && r === "number" && n.push("integer");
3412
+ for (let r of e.dataTypes) re(t, r) ? n.push(r) : t.includes("integer") && r === "number" && n.push("integer");
3413
3413
  e.dataTypes = n;
3414
3414
  }
3415
- function le(e, t) {
3415
+ function ae(e, t) {
3416
3416
  let n = e.schemaEnv.baseId + e.errSchemaPath;
3417
3417
  t += ` at "${n}" (strictTypes)`, (0, d.checkStrictMode)(e, t, e.opts.strictTypes);
3418
3418
  }
3419
- var ue = class {
3419
+ var oe = class {
3420
3420
  constructor(e, t, n) {
3421
- if ((0, o.validateKeywordUsage)(e, t, n), this.gen = e.gen, this.allErrors = e.allErrors, this.keyword = n, this.data = e.data, this.schema = e.schema[n], this.$data = t.$data && e.opts.$data && this.schema && this.schema.$data, this.schemaValue = (0, d.schemaRefOrVal)(e, this.schema, n, this.$data), this.schemaType = t.schemaType, this.parentSchema = e.schema, this.params = {}, this.it = e, this.def = t, this.$data) this.schemaCode = e.gen.const("vSchema", me(this.$data, e));
3421
+ if ((0, o.validateKeywordUsage)(e, t, n), this.gen = e.gen, this.allErrors = e.allErrors, this.keyword = n, this.data = e.data, this.schema = e.schema[n], this.$data = t.$data && e.opts.$data && this.schema && this.schema.$data, this.schemaValue = (0, d.schemaRefOrVal)(e, this.schema, n, this.$data), this.schemaType = t.schemaType, this.parentSchema = e.schema, this.params = {}, this.it = e, this.def = t, this.$data) this.schemaCode = e.gen.const("vSchema", ue(this.$data, e));
3422
3422
  else if (this.schemaCode = this.schemaValue, !(0, o.validSchemaType)(this.schema, t.schemaType, t.allowUndefined)) throw Error(`${n} value must be ${JSON.stringify(t.schemaType)}`);
3423
3423
  ("code" in t ? t.trackErrors : t.errors !== !1) && (this.errsCount = e.gen.const("_errs", l.default.errors));
3424
3424
  }
@@ -3516,20 +3516,20 @@ var vn = /* @__PURE__ */ new WeakMap(), yn = (e) => e === null || typeof e != "o
3516
3516
  if (n.opts.unevaluated && (n.props !== !0 || n.items !== !0)) return r.if(t, () => this.mergeEvaluated(e, c.Name)), !0;
3517
3517
  }
3518
3518
  };
3519
- e.KeywordCxt = ue;
3520
- function de(e, t, n, r) {
3521
- let i = new ue(e, n, t);
3519
+ e.KeywordCxt = oe;
3520
+ function se(e, t, n, r) {
3521
+ let i = new oe(e, n, t);
3522
3522
  "code" in n ? n.code(i, r) : i.$data && n.validate ? (0, o.funcKeywordCode)(i, n) : "macro" in n ? (0, o.macroKeywordCode)(i, n) : (n.compile || n.validate) && (0, o.funcKeywordCode)(i, n);
3523
3523
  }
3524
- var fe = /^\/(?:[^~]|~0|~1)*$/, pe = /^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;
3525
- function me(e, { dataLevel: t, dataNames: n, dataPathArr: r }) {
3524
+ var ce = /^\/(?:[^~]|~0|~1)*$/, le = /^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;
3525
+ function ue(e, { dataLevel: t, dataNames: n, dataPathArr: r }) {
3526
3526
  let i, a;
3527
3527
  if (e === "") return l.default.rootData;
3528
3528
  if (e[0] === "/") {
3529
- if (!fe.test(e)) throw Error(`Invalid JSON-pointer: ${e}`);
3529
+ if (!ce.test(e)) throw Error(`Invalid JSON-pointer: ${e}`);
3530
3530
  i = e, a = l.default.rootData;
3531
3531
  } else {
3532
- let o = pe.exec(e);
3532
+ let o = le.exec(e);
3533
3533
  if (!o) throw Error(`Invalid JSON-pointer: ${e}`);
3534
3534
  let s = +o[1];
3535
3535
  if (i = o[2], i === "#") {
@@ -3546,7 +3546,7 @@ var vn = /* @__PURE__ */ new WeakMap(), yn = (e) => e === null || typeof e != "o
3546
3546
  return `Cannot access ${e} ${n} levels up, current level is ${t}`;
3547
3547
  }
3548
3548
  }
3549
- e.getData = me;
3549
+ e.getData = ue;
3550
3550
  })), Rn = /* @__PURE__ */ i(((e) => {
3551
3551
  Object.defineProperty(e, "__esModule", { value: !0 }), e.default = class extends Error {
3552
3552
  constructor(e) {
@@ -3563,7 +3563,7 @@ var vn = /* @__PURE__ */ new WeakMap(), yn = (e) => e === null || typeof e != "o
3563
3563
  };
3564
3564
  })), Bn = /* @__PURE__ */ i(((e) => {
3565
3565
  Object.defineProperty(e, "__esModule", { value: !0 }), e.resolveSchema = e.getCompilingSchema = e.resolveRef = e.compileSchema = e.SchemaEnv = void 0;
3566
- var t = Y(), n = Rn(), r = Z(), i = In(), a = X(), o = Ln(), s = class {
3566
+ var t = X(), n = Rn(), r = Tn(), i = In(), a = Z(), o = Ln(), s = class {
3567
3567
  constructor(e) {
3568
3568
  this.refs = {}, this.dynamicAnchors = {};
3569
3569
  let t;
@@ -3743,8 +3743,15 @@ var vn = /* @__PURE__ */ new WeakMap(), yn = (e) => e === null || typeof e != "o
3743
3743
  additionalProperties: !1
3744
3744
  };
3745
3745
  })), Yn = /* @__PURE__ */ i(((e, t) => {
3746
- 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(/^[\da-z\-._~!$&'()*+,;=:@/]$/iu);
3747
- function s(e) {
3746
+ var n = RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu), r = RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u), i = RegExp.prototype.test.bind(/^[\da-f]{2}$/iu), a = RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu), o = RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:@/]$/u), s = RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:@/?]$/u), c = RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:]$/u), l = Array(256);
3747
+ {
3748
+ let e = "0123456789ABCDEF";
3749
+ for (let t = 0; t < 256; t++) l[t] = "%" + e[t >> 4] + e[t & 15];
3750
+ }
3751
+ function u(e) {
3752
+ return e < 2048 ? l[192 | e >> 6] + l[128 | e & 63] : e < 65536 ? l[224 | e >> 12] + l[128 | e >> 6 & 63] + l[128 | e & 63] : l[240 | e >> 18] + l[128 | e >> 12 & 63] + l[128 | e >> 6 & 63] + l[128 | e & 63];
3753
+ }
3754
+ function d(e) {
3748
3755
  let t = "", n = 0, r = 0;
3749
3756
  for (r = 0; r < e.length; r++) if (n = e[r].charCodeAt(0), n !== 48) {
3750
3757
  if (!(n >= 48 && n <= 57 || n >= 65 && n <= 70 || n >= 97 && n <= 102)) return "";
@@ -3757,73 +3764,95 @@ var vn = /* @__PURE__ */ new WeakMap(), yn = (e) => e === null || typeof e != "o
3757
3764
  }
3758
3765
  return t;
3759
3766
  }
3760
- var c = RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);
3761
- function l(e) {
3762
- return e.length = 0, !0;
3763
- }
3764
- function u(e, t, n) {
3765
- if (e.length) {
3766
- let r = s(e);
3767
- if (r !== "") t.push(r);
3768
- else return n.error = !0, !1;
3769
- e.length = 0;
3767
+ var f = RegExp.prototype.test.bind(/^[\dA-Fa-f]{1,4}$/), p = RegExp.prototype.test.bind(/^[vV][\dA-Fa-f]+\.[A-Za-z\d\-._~!$&'()*+,;=:]+$/), m = RegExp.prototype.test.bind(/^[A-Za-z\d\-._~]$/), h = RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);
3768
+ function g(e) {
3769
+ if (e.length === 0) return !1;
3770
+ for (let t = 0; t < e.length; t++) if (!m(e[t])) {
3771
+ if (e[t] === "%" && t + 2 < e.length && i(e.slice(t + 1, t + 3))) {
3772
+ t += 2;
3773
+ continue;
3774
+ }
3775
+ return !1;
3770
3776
  }
3771
3777
  return !0;
3772
3778
  }
3773
- function d(e) {
3774
- let t = 0, n = {
3775
- error: !1,
3776
- address: "",
3777
- zone: ""
3778
- }, r = [], i = [], a = !1, o = !1, c = u;
3779
- for (let s = 0; s < e.length; s++) {
3780
- let u = e[s];
3781
- if (u !== "[" && u !== "]") {
3782
- if (u === ":") {
3783
- if (a === !0 && (o = !0), !c(i, r, n)) break;
3784
- if (++t > 7) {
3785
- n.error = !0;
3786
- break;
3787
- }
3788
- s > 0 && e[s - 1] === ":" && (a = !0), r.push(":");
3789
- continue;
3790
- }
3791
- if (u === "%") {
3792
- if (!c(i, r, n)) break;
3793
- c = l;
3794
- } else {
3795
- i.push(u);
3796
- continue;
3797
- }
3798
- }
3799
- }
3800
- return i.length && (c === l ? n.zone = i.join("") : o ? r.push(i.join("")) : r.push(s(i))), n.address = r.join(""), n;
3779
+ function _(e) {
3780
+ let t = -1, n = 0, r = -1, i = 0;
3781
+ for (let a = 0; a < e.length; a++) e[a] === "0" ? (r === -1 && (r = a), i++, i > n && (n = i, t = r)) : (r = -1, i = 0);
3782
+ if (n < 2) return e.join(":");
3783
+ let a = e.slice(0, t).join(":"), o = e.slice(t + n).join(":");
3784
+ return a + "::" + o;
3801
3785
  }
3802
- function f(e) {
3803
- if (p(e, ":") < 2) return {
3786
+ function v(e) {
3787
+ let t = e.indexOf("::");
3788
+ if (t !== -1 && e.indexOf("::", t + 1) !== -1) return;
3789
+ let n = t === -1 ? e.split(":") : e.slice(0, t).split(":"), i = t === -1 ? [] : e.slice(t + 2).split(":");
3790
+ t !== -1 && (n.length === 1 && n[0] === "" && (n.length = 0), i.length === 1 && i[0] === "" && (i.length = 0));
3791
+ let a = n.concat(i), o = 0;
3792
+ for (let e = 0; e < a.length; e++) {
3793
+ let n = a[e];
3794
+ if (n === "") return;
3795
+ if (n.indexOf(".") !== -1) {
3796
+ if (e !== a.length - 1 || t !== -1 && i.length === 0 || !r(n)) return;
3797
+ o += 2;
3798
+ continue;
3799
+ }
3800
+ if (!f(n)) return;
3801
+ a[e] = parseInt(n, 16).toString(16), o++;
3802
+ }
3803
+ if (t === -1) return o === 8 ? _(a) : void 0;
3804
+ if (o >= 8) return;
3805
+ let s = a.slice(0, n.length);
3806
+ for (let e = o; e < 8; e++) s.push("0");
3807
+ for (let e = n.length; e < a.length; e++) s.push(a[e]);
3808
+ return _(s);
3809
+ }
3810
+ function y(e) {
3811
+ let t = e[0] === "[" && e[e.length - 1] === "]";
3812
+ if ((e[0] === "[" || e[e.length - 1] === "]") && !t) return {
3804
3813
  host: e,
3805
- isIPV6: !1
3814
+ isIPV6: !1,
3815
+ error: !0
3816
+ };
3817
+ let n = t ? e.slice(1, -1) : e;
3818
+ if (t && p(n)) return n = n.toLowerCase(), {
3819
+ host: `[${n}]`,
3820
+ escapedHost: n,
3821
+ isIPV6: !1,
3822
+ isIPVFuture: !0
3806
3823
  };
3807
- let t = d(e);
3808
- if (t.error) return {
3824
+ if (b(n, ":") < 2) return {
3809
3825
  host: e,
3810
- isIPV6: !1
3826
+ isIPV6: !1,
3827
+ error: t
3811
3828
  };
3812
- {
3813
- let e = t.address, n = t.address;
3814
- return t.zone && (e += "%" + t.zone, n += "%25" + t.zone), {
3829
+ let r = "", i = n.indexOf("%");
3830
+ if (i !== -1) {
3831
+ let t = n.slice(i, i + 3).toLowerCase() === "%25" ? 3 : 1;
3832
+ if (r = n.slice(i + t), !g(r)) return {
3815
3833
  host: e,
3816
- isIPV6: !0,
3817
- escapedHost: n
3834
+ isIPV6: !1,
3835
+ error: !0
3818
3836
  };
3837
+ n = n.slice(0, i);
3819
3838
  }
3839
+ let a = v(n);
3840
+ return a === void 0 ? {
3841
+ host: e,
3842
+ isIPV6: !1,
3843
+ error: !0
3844
+ } : {
3845
+ host: a + (r ? "%" + r : ""),
3846
+ escapedHost: a + (r ? "%25" + r : ""),
3847
+ isIPV6: !0
3848
+ };
3820
3849
  }
3821
- function p(e, t) {
3850
+ function b(e, t) {
3822
3851
  let n = 0;
3823
3852
  for (let r = 0; r < e.length; r++) e[r] === t && n++;
3824
3853
  return n;
3825
3854
  }
3826
- function m(e) {
3855
+ function x(e) {
3827
3856
  let t = e, n = [], r = -1, i = 0;
3828
3857
  for (; i = t.length;) {
3829
3858
  if (i === 1) {
@@ -3878,18 +3907,18 @@ var vn = /* @__PURE__ */ new WeakMap(), yn = (e) => e === null || typeof e != "o
3878
3907
  }
3879
3908
  return n.join("");
3880
3909
  }
3881
- var h = {
3910
+ var S = {
3882
3911
  "@": "%40",
3883
3912
  "/": "%2F",
3884
3913
  "?": "%3F",
3885
3914
  "#": "%23",
3886
3915
  ":": "%3A"
3887
- }, g = /[@/?#:]/g, _ = /[@/?#]/g;
3888
- function v(e, t) {
3889
- let n = t ? _ : g;
3890
- return n.lastIndex = 0, e.replace(n, (e) => h[e]);
3916
+ }, C = /[@/?#:]/g, w = /[@/?#]/g;
3917
+ function T(e, t) {
3918
+ let n = t ? w : C;
3919
+ return n.lastIndex = 0, e.replace(n, (e) => S[e]);
3891
3920
  }
3892
- function y(e, t = !1) {
3921
+ function E(e, t = !1) {
3893
3922
  if (e.indexOf("%") === -1) return e;
3894
3923
  let n = "";
3895
3924
  for (let r = 0; r < e.length; r++) {
@@ -3905,10 +3934,11 @@ var vn = /* @__PURE__ */ new WeakMap(), yn = (e) => e === null || typeof e != "o
3905
3934
  }
3906
3935
  return n;
3907
3936
  }
3908
- function b(e) {
3937
+ function D(e) {
3909
3938
  let t = "";
3910
3939
  for (let n = 0; n < e.length; n++) {
3911
- if (e[n] === "%" && n + 2 < e.length) {
3940
+ let r = e[n];
3941
+ if (r === "%" && n + 2 < e.length) {
3912
3942
  let r = e.slice(n + 1, n + 3);
3913
3943
  if (i(r)) {
3914
3944
  let e = r.toUpperCase(), i = String.fromCharCode(parseInt(e, 16));
@@ -3916,11 +3946,105 @@ var vn = /* @__PURE__ */ new WeakMap(), yn = (e) => e === null || typeof e != "o
3916
3946
  continue;
3917
3947
  }
3918
3948
  }
3919
- o(e[n]) ? t += e[n] : t += escape(e[n]);
3949
+ if (o(r)) t += r;
3950
+ else {
3951
+ let i = e.charCodeAt(n);
3952
+ if (i < 128) t += N(i) ? r : l[i];
3953
+ else if (i < 55296 || i > 57343) t += u(i);
3954
+ else if (i <= 56319 && n + 1 < e.length) {
3955
+ let r = e.charCodeAt(n + 1);
3956
+ r >= 56320 && r <= 57343 ? (t += u(65536 + (i - 55296 << 10) + (r - 56320)), n++) : t += u(65533);
3957
+ } else t += u(65533);
3958
+ }
3920
3959
  }
3921
3960
  return t;
3922
3961
  }
3923
- function x(e) {
3962
+ function O(e, t = !1) {
3963
+ let n = "", r = t && e[0] !== "/";
3964
+ for (let t = 0; t < e.length; t++) {
3965
+ let a = e[t];
3966
+ if (a === "%" && t + 2 < e.length) {
3967
+ let r = e.slice(t + 1, t + 3);
3968
+ if (i(r)) {
3969
+ n += "%" + r.toUpperCase(), t += 2;
3970
+ continue;
3971
+ }
3972
+ }
3973
+ if (a === "/" && (r = !1), o(a) && (a !== ":" || !r)) n += a;
3974
+ else {
3975
+ let r = e.charCodeAt(t);
3976
+ if (r < 128) n += l[r];
3977
+ else if (r < 55296 || r > 57343) n += u(r);
3978
+ else if (r <= 56319 && t + 1 < e.length) {
3979
+ let i = e.charCodeAt(t + 1);
3980
+ i >= 56320 && i <= 57343 ? (n += u(65536 + (r - 55296 << 10) + (i - 56320)), t++) : n += u(65533);
3981
+ } else n += u(65533);
3982
+ }
3983
+ }
3984
+ return n;
3985
+ }
3986
+ function k(e, t) {
3987
+ let n = "";
3988
+ for (let r = 0; r < e.length; r++) {
3989
+ let a = e[r];
3990
+ if (a === "%" && r + 2 < e.length) {
3991
+ let t = e.slice(r + 1, r + 3);
3992
+ if (i(t)) {
3993
+ n += "%" + t.toUpperCase(), r += 2;
3994
+ continue;
3995
+ }
3996
+ }
3997
+ if (t(a)) n += a;
3998
+ else {
3999
+ let t = e.charCodeAt(r);
4000
+ if (t < 128) n += l[t];
4001
+ else if (t < 55296 || t > 57343) n += u(t);
4002
+ else if (t <= 56319 && r + 1 < e.length) {
4003
+ let i = e.charCodeAt(r + 1);
4004
+ i >= 56320 && i <= 57343 ? (n += u(65536 + (t - 55296 << 10) + (i - 56320)), r++) : n += u(65533);
4005
+ } else n += u(65533);
4006
+ }
4007
+ }
4008
+ return n;
4009
+ }
4010
+ function A(e) {
4011
+ return k(e, c);
4012
+ }
4013
+ function j(e) {
4014
+ return k(e, s);
4015
+ }
4016
+ function M(e) {
4017
+ return k(e, s);
4018
+ }
4019
+ function N(e) {
4020
+ return e >= 48 && e <= 57 || e >= 65 && e <= 90 || e >= 97 && e <= 122 || e === 42 || e === 43 || e === 45 || e === 46 || e === 47 || e === 64 || e === 95;
4021
+ }
4022
+ function P(e) {
4023
+ let t = "";
4024
+ for (let n = 0; n < e.length; n++) {
4025
+ let r = e[n];
4026
+ if (r === "%" && n + 2 < e.length) {
4027
+ let r = e.slice(n + 1, n + 3);
4028
+ if (i(r)) {
4029
+ let e = r.toUpperCase(), i = String.fromCharCode(parseInt(e, 16));
4030
+ a(i) ? t += i : t += "%" + e, n += 2;
4031
+ continue;
4032
+ }
4033
+ }
4034
+ if (s(r)) t += r;
4035
+ else {
4036
+ let i = e.charCodeAt(n);
4037
+ if (i < 128) t += N(i) ? r : l[i];
4038
+ else if (i < 55296 || i > 57343) t += u(i);
4039
+ else if (i <= 56319 && n + 1 < e.length) {
4040
+ let r = e.charCodeAt(n + 1);
4041
+ r >= 56320 && r <= 57343 ? (t += u(65536 + (i - 55296 << 10) + (r - 56320)), n++) : t += u(65533);
4042
+ } else t += u(65533);
4043
+ }
4044
+ }
4045
+ return t;
4046
+ }
4047
+ function ee(e) {
3924
4048
  let t = "";
3925
4049
  for (let n = 0; n < e.length; n++) {
3926
4050
  if (e[n] === "%" && n + 2 < e.length) {
@@ -3934,33 +4058,38 @@ var vn = /* @__PURE__ */ new WeakMap(), yn = (e) => e === null || typeof e != "o
3934
4058
  }
3935
4059
  return t;
3936
4060
  }
3937
- function S(e) {
4061
+ function F(e) {
3938
4062
  let t = [];
3939
- if (e.userinfo !== void 0 && (t.push(e.userinfo), t.push("@")), e.host !== void 0) {
3940
- let n = unescape(e.host);
4063
+ if (e.userinfo !== void 0 && (t.push(A(e.userinfo)), t.push("@")), e.host !== void 0) {
4064
+ let n = e.host;
3941
4065
  if (!r(n)) {
3942
- let e = f(n);
3943
- n = e.isIPV6 === !0 ? `[${e.escapedHost}]` : v(n, !1);
4066
+ let e = y(n);
4067
+ e.isIPV6 !== !0 && e.isIPVFuture !== !0 && (n = E(n, !0), e = y(n)), n = e.isIPV6 === !0 || e.isIPVFuture === !0 ? `[${e.escapedHost}]` : T(n, !1);
3944
4068
  }
3945
4069
  t.push(n);
3946
4070
  }
3947
4071
  return (typeof e.port == "number" || typeof e.port == "string") && (t.push(":"), t.push(String(e.port))), t.length ? t.join("") : void 0;
3948
4072
  }
3949
4073
  t.exports = {
3950
- nonSimpleDomain: c,
3951
- recomposeAuthority: S,
3952
- reescapeHostDelimiters: v,
3953
- normalizePercentEncoding: y,
3954
- normalizePathEncoding: b,
3955
- escapePreservingEscapes: x,
3956
- removeDotSegments: m,
4074
+ nonSimpleDomain: h,
4075
+ recomposeAuthority: F,
4076
+ reescapeHostDelimiters: T,
4077
+ normalizePercentEncoding: E,
4078
+ normalizePathEncoding: D,
4079
+ serializePathEncoding: O,
4080
+ normalizeQueryFragmentEncoding: P,
4081
+ encodeUserinfo: A,
4082
+ encodeQuery: j,
4083
+ encodeFragment: M,
4084
+ escapePreservingEscapes: ee,
4085
+ removeDotSegments: x,
3957
4086
  isIPv4: r,
3958
4087
  isUUID: n,
3959
- normalizeIPv6: f,
3960
- stringArrayToHexStripped: s
4088
+ normalizeIPv6: y,
4089
+ stringArrayToHexStripped: d
3961
4090
  };
3962
4091
  })), Xn = /* @__PURE__ */ i(((e, t) => {
3963
- var { isUUID: n } = Yn(), r = /([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu, i = [
4092
+ var { isUUID: n } = Yn(), r = /^([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-./:;=@]|%[\da-f]{2})+)$/iu, i = [
3964
4093
  "http",
3965
4094
  "https",
3966
4095
  "ws",
@@ -3986,15 +4115,15 @@ var vn = /* @__PURE__ */ new WeakMap(), yn = (e) => e === null || typeof e != "o
3986
4115
  }
3987
4116
  function u(e) {
3988
4117
  if ((e.port === (o(e) ? 443 : 80) || e.port === "") && (e.port = void 0), typeof e.secure == "boolean" && (e.scheme = e.secure ? "wss" : "ws", e.secure = void 0), e.resourceName) {
3989
- let [t, n] = e.resourceName.split("?");
3990
- e.path = t && t !== "/" ? t : void 0, e.query = n, e.resourceName = void 0;
4118
+ let t = e.resourceName.indexOf("?"), n = t === -1 ? e.resourceName : e.resourceName.slice(0, t);
4119
+ e.path = n && n !== "/" ? n : void 0, e.query = t === -1 ? void 0 : e.resourceName.slice(t + 1), e.resourceName = void 0;
3991
4120
  }
3992
4121
  return e.fragment = void 0, e;
3993
4122
  }
3994
4123
  function d(e, t) {
3995
4124
  if (!e.path) return e.error = "URN can not be parsed", e;
3996
4125
  let n = e.path.match(r);
3997
- if (n) {
4126
+ if (n && n[0] === e.path) {
3998
4127
  let r = t.scheme || e.scheme || "urn";
3999
4128
  e.nid = n[1].toLowerCase(), e.nss = n[2];
4000
4129
  let i = y(`${r}:${t.nid || e.nid}`);
@@ -4066,23 +4195,33 @@ var vn = /* @__PURE__ */ new WeakMap(), yn = (e) => e === null || typeof e != "o
4066
4195
  getSchemeHandler: y
4067
4196
  };
4068
4197
  })), Zn = /* @__PURE__ */ i(((e, t) => {
4069
- var { normalizeIPv6: n, removeDotSegments: r, recomposeAuthority: i, normalizePercentEncoding: a, normalizePathEncoding: o, escapePreservingEscapes: s, reescapeHostDelimiters: c, isIPv4: l, nonSimpleDomain: u } = Yn(), { SCHEMES: d, getSchemeHandler: f } = Xn();
4070
- function p(e, t) {
4071
- return typeof e == "string" ? e = C(e, t) : typeof e == "object" && (e = S(_(e, t), t)), e;
4072
- }
4073
- function m(e, t, n) {
4074
- let r = n ? Object.assign({ scheme: "null" }, n) : { scheme: "null" }, i = h(S(e, r), S(t, r), r, !0);
4075
- return r.skipEscape = !0, _(i, r);
4198
+ var { normalizeIPv6: n, removeDotSegments: r, recomposeAuthority: i, normalizePercentEncoding: a, normalizePathEncoding: o, serializePathEncoding: s, normalizeQueryFragmentEncoding: c, encodeQuery: l, encodeFragment: u, reescapeHostDelimiters: d, isIPv4: f, nonSimpleDomain: p } = Yn(), { SCHEMES: m, getSchemeHandler: h } = Xn(), g = /^[A-Za-z][A-Za-z0-9+.-]*$/u, _ = "URI scheme is malformed.";
4199
+ function v(e) {
4200
+ let t = unescape(String(e));
4201
+ if (!g.test(t)) throw TypeError(_);
4202
+ return t;
4076
4203
  }
4077
- function h(e, t, n, i) {
4204
+ function y(e, t) {
4205
+ return typeof e == "string" ? e = N(e, t) : typeof e == "object" && (e = M(C(e, t), t)), e;
4206
+ }
4207
+ function b(e, t, r) {
4208
+ let i = r ? Object.assign({ scheme: "null" }, r) : { scheme: "null" }, { parsed: a, malformedAuthorityOrPort: o, malformedPercentEncoding: s, malformedSchemeSpecific: c, malformedHost: l, malformedScheme: u } = j(e, i), { parsed: d, malformedAuthorityOrPort: p, malformedPercentEncoding: m, malformedSchemeSpecific: g, malformedHost: _, malformedScheme: v } = j(t, i);
4209
+ if (o || p || s || m || c || g || l || _ || u || v) throw Error(a.error || d.error || "URI is malformed.");
4210
+ let y = x(a, d, i, !0), b = h(r && r.scheme || y.scheme), S = y.host, w = S !== void 0 && S !== "" && (f(S) || n(S).isIPV6);
4211
+ A(y, r || {}, b, w);
4212
+ let T = S && S.indexOf("%") !== -1 && !/\P{ASCII}/u.test(S);
4213
+ if (y.error && !T) throw Error(y.error);
4214
+ return i.skipEscape = !0, C(y, i);
4215
+ }
4216
+ function x(e, t, n, i) {
4078
4217
  let a = {};
4079
- return i || (e = S(_(e, n), n), t = S(_(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;
4218
+ 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;
4080
4219
  }
4081
- function g(e, t, n) {
4082
- let r = T(e, n), i = T(t, n);
4083
- return r !== void 0 && i !== void 0 && r.toLowerCase() === i.toLowerCase();
4220
+ function S(e, t, n) {
4221
+ let r = ee(e, n), i = ee(t, n);
4222
+ return r !== void 0 && i !== void 0 && r === i;
4084
4223
  }
4085
- function _(e, t) {
4224
+ function C(e, t) {
4086
4225
  let n = {
4087
4226
  host: e.host,
4088
4227
  scheme: e.scheme,
@@ -4098,21 +4237,46 @@ var vn = /* @__PURE__ */ new WeakMap(), yn = (e) => e === null || typeof e != "o
4098
4237
  resourceName: e.resourceName,
4099
4238
  secure: e.secure,
4100
4239
  error: ""
4101
- }, o = Object.assign({}, t), c = [], l = f(o.scheme || n.scheme);
4102
- l && l.serialize && l.serialize(n, o), n.path !== void 0 && (o.skipEscape ? n.path = a(n.path) : (n.path = s(n.path), n.scheme !== void 0 && (n.path = n.path.split("%3A").join(":")))), o.reference !== "suffix" && n.scheme && c.push(n.scheme, ":");
4103
- let u = i(n);
4104
- if (u !== void 0 && (o.reference !== "suffix" && c.push("//"), c.push(u), n.path && n.path[0] !== "/" && c.push("/")), n.path !== void 0) {
4240
+ }, o = Object.assign({}, t), c = [];
4241
+ n.scheme &&= v(n.scheme);
4242
+ let d = h(o.scheme || n.scheme);
4243
+ d && d.serialize && d.serialize(n, o);
4244
+ let f = n.userinfo !== void 0 || n.host !== void 0 || n.port !== void 0, p = !o.skipEscape && n.scheme === void 0 && !f;
4245
+ n.path !== void 0 && (n.path = o.skipEscape ? a(n.path) : s(n.path, p)), o.reference !== "suffix" && n.scheme && (n.scheme = v(n.scheme), c.push(n.scheme, ":"));
4246
+ let m = i(n);
4247
+ if (m !== void 0 && (o.reference !== "suffix" && c.push("//"), c.push(m), n.path && n.path[0] !== "/" && c.push("/")), n.path !== void 0) {
4105
4248
  let e = n.path;
4106
- !o.absolutePath && (!l || !l.absolutePath) && (e = r(e)), u === void 0 && e[0] === "/" && e[1] === "/" && (e = "/%2F" + e.slice(2)), c.push(e);
4249
+ !o.absolutePath && (!d || !d.absolutePath) && (e = r(e)), p && (e = s(e, !0)), m === void 0 && e[0] === "/" && e[1] === "/" && (e = "/%2F" + e.slice(2)), c.push(e);
4107
4250
  }
4108
- return n.query !== void 0 && c.push("?", n.query), n.fragment !== void 0 && c.push("#", n.fragment), c.join("");
4251
+ return n.query !== void 0 && c.push("?", l(n.query)), n.fragment !== void 0 && c.push("#", u(n.fragment)), c.join("");
4109
4252
  }
4110
- var v = /^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u, y = /^(?:[^#/:?]+:)?\/\/([^/?#]*)/;
4111
- function b(e, t) {
4253
+ var w = /^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u, T = /^(?:[^#/:?]+:)?\/\/([^/?#]*)/, E = /^(?:[^#/:?]+:)?([/\\\t\n\r]*)/;
4254
+ function D(e, t) {
4112
4255
  if (t[2] !== void 0 && e.path && e.path[0] !== "/") return "URI path must start with \"/\" when authority is present.";
4113
4256
  if (typeof e.port == "number" && (e.port < 0 || e.port > 65535)) return "URI port is malformed.";
4114
4257
  }
4115
- function x(e, t) {
4258
+ function O(e) {
4259
+ if (e === void 0) return !1;
4260
+ let t = e.indexOf("%");
4261
+ for (; t !== -1;) {
4262
+ if (t + 2 >= e.length || !/^[\da-f]{2}$/iu.test(e.slice(t + 1, t + 3))) return !0;
4263
+ t = e.indexOf("%", t + 3);
4264
+ }
4265
+ return !1;
4266
+ }
4267
+ function k(e) {
4268
+ let t = e[4];
4269
+ return O(e[3]) || t !== void 0 && (t[0] !== "[" || t[t.length - 1] !== "]") && O(t) || O(e[6]) || O(e[7]) || O(e[8]);
4270
+ }
4271
+ function A(e, t, n, r) {
4272
+ if (!t.unicodeSupport && (!n || !n.unicodeSupport) && e.host && e.host[0] !== "[" && (t.domainHost || n && n.domainHost) && r === !1 && p(e.host)) try {
4273
+ e.host = new URL("http://" + e.host).hostname;
4274
+ } catch (t) {
4275
+ return e.error = e.error || "Host's domain name can not be converted to ASCII: " + t, !0;
4276
+ }
4277
+ return !1;
4278
+ }
4279
+ function j(e, t) {
4116
4280
  let r = Object.assign({}, t), i = {
4117
4281
  scheme: void 0,
4118
4282
  userinfo: void 0,
@@ -4121,69 +4285,80 @@ var vn = /* @__PURE__ */ new WeakMap(), yn = (e) => e === null || typeof e != "o
4121
4285
  path: "",
4122
4286
  query: void 0,
4123
4287
  fragment: void 0
4124
- }, a = !1, s = !1;
4288
+ }, s = !1, l = !1, u = !1, p = !1, v = !1, y = !1, b = !1;
4125
4289
  r.reference === "suffix" && (e = r.scheme ? r.scheme + ":" + e : "//" + e);
4126
- let d = e.match(y);
4127
- d !== null && d[1].indexOf("\\") !== -1 && (i.error = "URI authority must not contain a literal backslash.", a = !0);
4128
- let p = e.match(v);
4129
- if (p) {
4130
- i.scheme = p[1], i.userinfo = p[3], i.host = p[4], i.port = parseInt(p[5], 10), i.path = p[6] || "", i.query = p[7], i.fragment = p[8], isNaN(i.port) && (i.port = p[5]);
4131
- let t = b(i, p);
4132
- if (t !== void 0 && (i.error = i.error || t, a = !0), i.host) {
4133
- if (l(i.host) === !1) {
4134
- let e = n(i.host);
4135
- i.host = e.host.toLowerCase(), s = e.isIPV6;
4136
- } else s = !0;
4290
+ let x = e.match(T);
4291
+ x !== null && x[1].indexOf("\\") !== -1 && (i.error = "URI authority must not contain a literal backslash.", s = !0);
4292
+ let S = e.match(E);
4293
+ if (S !== null) {
4294
+ let e = S[1], t = e.replace(/[\t\n\r]/g, "");
4295
+ t.length >= 2 && (t.slice(0, 2) === "//" ? e.length !== t.length && (i.error = i.error || "URI authority introducer must not contain whitespace.", s = !0) : (i.error = i.error || "URI authority must not contain a literal backslash.", s = !0));
4296
+ }
4297
+ let C = e.match(w);
4298
+ if (C) {
4299
+ if (i.scheme = C[1], i.userinfo = C[3], i.host = C[4], i.port = parseInt(C[5], 10), i.path = C[6] || "", i.query = C[7], i.fragment = C[8], i.scheme !== void 0) {
4300
+ let e = unescape(i.scheme);
4301
+ g.test(e) ? i.scheme = e.toLowerCase() : (i.error = i.error || _, y = !0);
4302
+ }
4303
+ l = k(C), l && (i.error = i.error || "URI contains malformed percent-encoding."), isNaN(i.port) && (i.port = C[5]);
4304
+ let t = D(i, C);
4305
+ if (t !== void 0 && (i.error = i.error || t, s = !0), i.host) {
4306
+ if (f(i.host) === !1) {
4307
+ let e = i.host[0] === "[" && i.host[i.host.length - 1] === "]", t = n(i.host);
4308
+ b = t.isIPV6 || t.isIPVFuture === !0, v = e && t.error === !0, i.host = b ? t.host : t.host.toLowerCase(), v && (i.error = i.error || "URI host is malformed.", s = !0);
4309
+ } else b = !0;
4137
4310
  }
4138
4311
  i.reference = i.scheme === void 0 && i.userinfo === void 0 && i.host === void 0 && i.port === void 0 && i.query === void 0 && !i.path ? "same-document" : i.scheme === void 0 ? "relative" : i.fragment === void 0 ? "absolute" : "uri", r.reference && r.reference !== "suffix" && r.reference !== i.reference && (i.error = i.error || "URI is not a " + r.reference + " reference.");
4139
- let d = f(r.scheme || i.scheme);
4140
- if (!r.unicodeSupport && (!d || !d.unicodeSupport) && i.host && (r.domainHost || d && d.domainHost) && s === !1 && u(i.host)) try {
4141
- i.host = new URL("http://" + i.host).hostname;
4142
- } catch (e) {
4143
- i.error = i.error || "Host's domain name can not be converted to ASCII: " + e;
4144
- }
4145
- if ((!d || d && !d.skipNormalize) && (e.indexOf("%") !== -1 && (i.scheme !== void 0 && (i.scheme = unescape(i.scheme)), i.host !== void 0 && (i.host = c(unescape(i.host), s))), i.path &&= o(i.path), i.fragment)) try {
4146
- i.fragment = encodeURI(decodeURIComponent(i.fragment));
4147
- } catch {
4148
- i.error = i.error || "URI malformed";
4149
- }
4150
- d && d.parse && d.parse(i, r);
4312
+ let x = h(r.scheme || i.scheme);
4313
+ p = A(i, r, x, b), (!x || x && !x.skipNormalize) && (e.indexOf("%") !== -1 && i.host !== void 0 && !v && (i.host = d(b ? i.host : a(i.host, !0), b)), i.path &&= o(i.path), i.query &&= c(i.query), i.fragment &&= c(i.fragment)), x && x.parse && (x.parse(i, r), x === m.urn && i.nid === void 0 && (u = !0));
4151
4314
  } else i.error = i.error || "URI can not be parsed.";
4152
4315
  return {
4153
4316
  parsed: i,
4154
- malformedAuthorityOrPort: a
4317
+ malformedAuthorityOrPort: s,
4318
+ malformedPercentEncoding: l,
4319
+ malformedSchemeSpecific: u,
4320
+ malformedHost: p,
4321
+ malformedScheme: y
4155
4322
  };
4156
4323
  }
4157
- function S(e, t) {
4158
- return x(e, t).parsed;
4324
+ function M(e, t) {
4325
+ return j(e, t).parsed;
4159
4326
  }
4160
- function C(e, t) {
4161
- return w(e, t).normalized;
4327
+ function N(e, t) {
4328
+ return P(e, t).normalized;
4162
4329
  }
4163
- function w(e, t) {
4164
- let { parsed: n, malformedAuthorityOrPort: r } = x(e, t);
4330
+ function P(e, t) {
4331
+ let { parsed: n, malformedAuthorityOrPort: r, malformedPercentEncoding: i, malformedSchemeSpecific: a, malformedHost: o, malformedScheme: s } = j(e, t);
4165
4332
  return {
4166
- normalized: r ? e : _(n, t),
4167
- malformedAuthorityOrPort: r
4333
+ normalized: r || i || a || o || s ? e : C(n, t),
4334
+ malformedAuthorityOrPort: r,
4335
+ malformedPercentEncoding: i,
4336
+ malformedSchemeSpecific: a,
4337
+ malformedHost: o,
4338
+ malformedScheme: s
4168
4339
  };
4169
4340
  }
4170
- function T(e, t) {
4171
- if (typeof e == "string") {
4172
- let { normalized: n, malformedAuthorityOrPort: r } = w(e, t);
4173
- return r ? void 0 : n;
4174
- }
4175
- if (typeof e == "object") return _(e, t);
4176
- }
4177
- var E = {
4178
- SCHEMES: d,
4179
- normalize: p,
4180
- resolve: m,
4181
- resolveComponent: h,
4182
- equal: g,
4183
- serialize: _,
4184
- parse: S
4341
+ function ee(e, t) {
4342
+ if (typeof e != "string" && typeof e != "object") return;
4343
+ let n;
4344
+ try {
4345
+ n = typeof e == "string" ? e : C(e, t);
4346
+ } catch {
4347
+ return;
4348
+ }
4349
+ let { normalized: r, malformedAuthorityOrPort: i, malformedPercentEncoding: a, malformedSchemeSpecific: o, malformedHost: s, malformedScheme: c } = P(n, t);
4350
+ return i || a || o || s || c ? void 0 : r;
4351
+ }
4352
+ var F = {
4353
+ SCHEMES: m,
4354
+ normalize: y,
4355
+ resolve: b,
4356
+ resolveComponent: x,
4357
+ equal: S,
4358
+ serialize: C,
4359
+ parse: M
4185
4360
  };
4186
- t.exports = E, t.exports.default = E, t.exports.fastUri = E;
4361
+ t.exports = F, t.exports.default = F, t.exports.fastUri = F;
4187
4362
  })), Qn = /* @__PURE__ */ i(((e) => {
4188
4363
  Object.defineProperty(e, "__esModule", { value: !0 });
4189
4364
  var t = Zn();
@@ -4197,7 +4372,7 @@ var vn = /* @__PURE__ */ new WeakMap(), yn = (e) => e === null || typeof e != "o
4197
4372
  return n.KeywordCxt;
4198
4373
  }
4199
4374
  });
4200
- var r = Y();
4375
+ var r = X();
4201
4376
  Object.defineProperty(t, "_", {
4202
4377
  enumerable: !0,
4203
4378
  get: function() {
@@ -4229,7 +4404,7 @@ var vn = /* @__PURE__ */ new WeakMap(), yn = (e) => e === null || typeof e != "o
4229
4404
  return r.CodeGen;
4230
4405
  }
4231
4406
  });
4232
- var i = Rn(), a = zn(), o = On(), s = Bn(), c = Y(), l = In(), u = An(), d = X(), f = (Jn(), e(Vn).default), p = Qn(), m = (e, t) => new RegExp(e, t);
4407
+ 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);
4233
4408
  m.code = "new RegExp";
4234
4409
  var h = [
4235
4410
  "removeAdditional",
@@ -4444,14 +4619,14 @@ var vn = /* @__PURE__ */ new WeakMap(), yn = (e) => e === null || typeof e != "o
4444
4619
  else if (typeof e == "object" && t === void 0) {
4445
4620
  if (t = e, n = t.keyword, Array.isArray(n) && !n.length) throw Error("addKeywords: keyword must be string or non-empty array");
4446
4621
  } else throw Error("invalid addKeywords parameters");
4447
- if (te.call(this, n, t), !t) return (0, d.eachItem)(n, (e) => A.call(this, e)), this;
4448
- j.call(this, t);
4622
+ if (j.call(this, n, t), !t) return (0, d.eachItem)(n, (e) => M.call(this, e)), this;
4623
+ P.call(this, t);
4449
4624
  let r = {
4450
4625
  ...t,
4451
4626
  type: (0, u.getJSONTypes)(t.type),
4452
4627
  schemaType: (0, u.getJSONTypes)(t.schemaType)
4453
4628
  };
4454
- return (0, d.eachItem)(n, r.type.length === 0 ? (e) => A.call(this, e, r) : (e) => r.type.forEach((t) => A.call(this, e, r, t))), this;
4629
+ return (0, d.eachItem)(n, r.type.length === 0 ? (e) => M.call(this, e, r) : (e) => r.type.forEach((t) => M.call(this, e, r, t))), this;
4455
4630
  }
4456
4631
  getKeyword(e) {
4457
4632
  let t = this.RULES.all[e];
@@ -4482,7 +4657,7 @@ var vn = /* @__PURE__ */ new WeakMap(), yn = (e) => e === null || typeof e != "o
4482
4657
  let t = n[e];
4483
4658
  if (typeof t != "object") continue;
4484
4659
  let { $data: r } = t.definition, a = i[e];
4485
- r && a && (i[e] = ie(a));
4660
+ r && a && (i[e] = F(a));
4486
4661
  }
4487
4662
  }
4488
4663
  return e;
@@ -4578,15 +4753,15 @@ var vn = /* @__PURE__ */ new WeakMap(), yn = (e) => e === null || typeof e != "o
4578
4753
  if (e.log && e.warn && e.error) return e;
4579
4754
  throw Error("logger must implement log, warn and error methods");
4580
4755
  }
4581
- var ee = /^[a-z_$][a-z0-9_$:-]*$/i;
4582
- function te(e, t) {
4756
+ var A = /^[a-z_$][a-z0-9_$:-]*$/i;
4757
+ function j(e, t) {
4583
4758
  let { RULES: n } = this;
4584
4759
  if ((0, d.eachItem)(e, (e) => {
4585
4760
  if (n.keywords[e]) throw Error(`Keyword ${e} is already defined`);
4586
- if (!ee.test(e)) throw Error(`Keyword ${e} has invalid name`);
4761
+ if (!A.test(e)) throw Error(`Keyword ${e} has invalid name`);
4587
4762
  }), t && t.$data && !("code" in t || "validate" in t)) throw Error("$data keyword must have \"code\" or \"validate\" function");
4588
4763
  }
4589
- function A(e, t, n) {
4764
+ function M(e, t, n) {
4590
4765
  var r;
4591
4766
  let i = t?.post;
4592
4767
  if (n && i) throw Error("keyword with \"post\" flag cannot have \"type\"");
@@ -4603,19 +4778,19 @@ var vn = /* @__PURE__ */ new WeakMap(), yn = (e) => e === null || typeof e != "o
4603
4778
  schemaType: (0, u.getJSONTypes)(t.schemaType)
4604
4779
  }
4605
4780
  };
4606
- t.before ? ne.call(this, o, s, t.before) : o.rules.push(s), a.all[e] = s, (r = t.implements) == null || r.forEach((e) => this.addKeyword(e));
4781
+ t.before ? N.call(this, o, s, t.before) : o.rules.push(s), a.all[e] = s, (r = t.implements) == null || r.forEach((e) => this.addKeyword(e));
4607
4782
  }
4608
- function ne(e, t, n) {
4783
+ function N(e, t, n) {
4609
4784
  let r = e.rules.findIndex((e) => e.keyword === n);
4610
4785
  r >= 0 ? e.rules.splice(r, 0, t) : (e.rules.push(t), this.logger.warn(`rule ${n} is not defined`));
4611
4786
  }
4612
- function j(e) {
4787
+ function P(e) {
4613
4788
  let { metaSchema: t } = e;
4614
- t !== void 0 && (e.$data && this.opts.$data && (t = ie(t)), e.validateSchema = this.compile(t, !0));
4789
+ t !== void 0 && (e.$data && this.opts.$data && (t = F(t)), e.validateSchema = this.compile(t, !0));
4615
4790
  }
4616
- var re = { $ref: "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#" };
4617
- function ie(e) {
4618
- return { anyOf: [e, re] };
4791
+ var ee = { $ref: "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#" };
4792
+ function F(e) {
4793
+ return { anyOf: [e, ee] };
4619
4794
  }
4620
4795
  })), er = /* @__PURE__ */ i(((e) => {
4621
4796
  Object.defineProperty(e, "__esModule", { value: !0 }), e.default = {
@@ -4626,7 +4801,7 @@ var vn = /* @__PURE__ */ new WeakMap(), yn = (e) => e === null || typeof e != "o
4626
4801
  };
4627
4802
  })), tr = /* @__PURE__ */ i(((e) => {
4628
4803
  Object.defineProperty(e, "__esModule", { value: !0 }), e.callRef = e.getValidate = void 0;
4629
- var t = zn(), n = Q(), r = Y(), i = Z(), a = Bn(), o = X(), s = {
4804
+ var t = zn(), n = Q(), r = X(), i = Tn(), a = Bn(), o = Z(), s = {
4630
4805
  keyword: "$ref",
4631
4806
  schemaType: "string",
4632
4807
  code(e) {
@@ -4718,7 +4893,7 @@ var vn = /* @__PURE__ */ new WeakMap(), yn = (e) => e === null || typeof e != "o
4718
4893
  ];
4719
4894
  })), rr = /* @__PURE__ */ i(((e) => {
4720
4895
  Object.defineProperty(e, "__esModule", { value: !0 });
4721
- var t = Y(), n = t.operators, r = {
4896
+ var t = X(), n = t.operators, r = {
4722
4897
  maximum: {
4723
4898
  okStr: "<=",
4724
4899
  ok: n.LTE,
@@ -4756,7 +4931,7 @@ var vn = /* @__PURE__ */ new WeakMap(), yn = (e) => e === null || typeof e != "o
4756
4931
  };
4757
4932
  })), ir = /* @__PURE__ */ i(((e) => {
4758
4933
  Object.defineProperty(e, "__esModule", { value: !0 });
4759
- var t = Y();
4934
+ var t = X();
4760
4935
  e.default = {
4761
4936
  keyword: "multipleOf",
4762
4937
  type: "number",
@@ -4781,7 +4956,7 @@ var vn = /* @__PURE__ */ new WeakMap(), yn = (e) => e === null || typeof e != "o
4781
4956
  e.default = t, t.code = "require(\"ajv/dist/runtime/ucs2length\").default";
4782
4957
  })), or = /* @__PURE__ */ i(((e) => {
4783
4958
  Object.defineProperty(e, "__esModule", { value: !0 });
4784
- var t = Y(), n = X(), r = ar();
4959
+ var t = X(), n = Z(), r = ar();
4785
4960
  e.default = {
4786
4961
  keyword: ["maxLength", "minLength"],
4787
4962
  type: "string",
@@ -4801,7 +4976,7 @@ var vn = /* @__PURE__ */ new WeakMap(), yn = (e) => e === null || typeof e != "o
4801
4976
  };
4802
4977
  })), sr = /* @__PURE__ */ i(((e) => {
4803
4978
  Object.defineProperty(e, "__esModule", { value: !0 });
4804
- var t = Q(), n = X(), r = Y();
4979
+ var t = Q(), n = Z(), r = X();
4805
4980
  e.default = {
4806
4981
  keyword: "pattern",
4807
4982
  type: "string",
@@ -4824,7 +4999,7 @@ var vn = /* @__PURE__ */ new WeakMap(), yn = (e) => e === null || typeof e != "o
4824
4999
  };
4825
5000
  })), cr = /* @__PURE__ */ i(((e) => {
4826
5001
  Object.defineProperty(e, "__esModule", { value: !0 });
4827
- var t = Y();
5002
+ var t = X();
4828
5003
  e.default = {
4829
5004
  keyword: ["maxProperties", "minProperties"],
4830
5005
  type: "object",
@@ -4844,7 +5019,7 @@ var vn = /* @__PURE__ */ new WeakMap(), yn = (e) => e === null || typeof e != "o
4844
5019
  };
4845
5020
  })), lr = /* @__PURE__ */ i(((e) => {
4846
5021
  Object.defineProperty(e, "__esModule", { value: !0 });
4847
- var t = Q(), n = Y(), r = X();
5022
+ var t = Q(), n = X(), r = Z();
4848
5023
  e.default = {
4849
5024
  keyword: "required",
4850
5025
  type: "object",
@@ -4892,7 +5067,7 @@ var vn = /* @__PURE__ */ new WeakMap(), yn = (e) => e === null || typeof e != "o
4892
5067
  };
4893
5068
  })), ur = /* @__PURE__ */ i(((e) => {
4894
5069
  Object.defineProperty(e, "__esModule", { value: !0 });
4895
- var t = Y();
5070
+ var t = X();
4896
5071
  e.default = {
4897
5072
  keyword: ["maxItems", "minItems"],
4898
5073
  type: "array",
@@ -4916,7 +5091,7 @@ var vn = /* @__PURE__ */ new WeakMap(), yn = (e) => e === null || typeof e != "o
4916
5091
  t.code = "require(\"ajv/dist/runtime/equal\").default", e.default = t;
4917
5092
  })), fr = /* @__PURE__ */ i(((e) => {
4918
5093
  Object.defineProperty(e, "__esModule", { value: !0 });
4919
- var t = An(), n = Y(), r = X(), i = dr();
5094
+ var t = An(), n = X(), r = Z(), i = dr();
4920
5095
  e.default = {
4921
5096
  keyword: "uniqueItems",
4922
5097
  type: "array",
@@ -4959,7 +5134,7 @@ var vn = /* @__PURE__ */ new WeakMap(), yn = (e) => e === null || typeof e != "o
4959
5134
  };
4960
5135
  })), pr = /* @__PURE__ */ i(((e) => {
4961
5136
  Object.defineProperty(e, "__esModule", { value: !0 });
4962
- var t = Y(), n = X(), r = dr();
5137
+ var t = X(), n = Z(), r = dr();
4963
5138
  e.default = {
4964
5139
  keyword: "const",
4965
5140
  $data: !0,
@@ -4974,7 +5149,7 @@ var vn = /* @__PURE__ */ new WeakMap(), yn = (e) => e === null || typeof e != "o
4974
5149
  };
4975
5150
  })), mr = /* @__PURE__ */ i(((e) => {
4976
5151
  Object.defineProperty(e, "__esModule", { value: !0 });
4977
- var t = Y(), n = X(), r = dr();
5152
+ var t = X(), n = Z(), r = dr();
4978
5153
  e.default = {
4979
5154
  keyword: "enum",
4980
5155
  schemaType: "array",
@@ -5029,7 +5204,7 @@ var vn = /* @__PURE__ */ new WeakMap(), yn = (e) => e === null || typeof e != "o
5029
5204
  ];
5030
5205
  })), gr = /* @__PURE__ */ i(((e) => {
5031
5206
  Object.defineProperty(e, "__esModule", { value: !0 }), e.validateAdditionalItems = void 0;
5032
- var t = Y(), n = X(), r = {
5207
+ var t = X(), n = Z(), r = {
5033
5208
  keyword: "additionalItems",
5034
5209
  type: "array",
5035
5210
  schemaType: ["boolean", "object"],
@@ -5069,7 +5244,7 @@ var vn = /* @__PURE__ */ new WeakMap(), yn = (e) => e === null || typeof e != "o
5069
5244
  e.validateAdditionalItems = i, e.default = r;
5070
5245
  })), _r = /* @__PURE__ */ i(((e) => {
5071
5246
  Object.defineProperty(e, "__esModule", { value: !0 }), e.validateTuple = void 0;
5072
- var t = Y(), n = X(), r = Q(), i = {
5247
+ var t = X(), n = Z(), r = Q(), i = {
5073
5248
  keyword: "items",
5074
5249
  type: "array",
5075
5250
  schemaType: [
@@ -5116,7 +5291,7 @@ var vn = /* @__PURE__ */ new WeakMap(), yn = (e) => e === null || typeof e != "o
5116
5291
  };
5117
5292
  })), yr = /* @__PURE__ */ i(((e) => {
5118
5293
  Object.defineProperty(e, "__esModule", { value: !0 });
5119
- var t = Y(), n = X(), r = Q(), i = gr();
5294
+ var t = X(), n = Z(), r = Q(), i = gr();
5120
5295
  e.default = {
5121
5296
  keyword: "items",
5122
5297
  type: "array",
@@ -5133,7 +5308,7 @@ var vn = /* @__PURE__ */ new WeakMap(), yn = (e) => e === null || typeof e != "o
5133
5308
  };
5134
5309
  })), br = /* @__PURE__ */ i(((e) => {
5135
5310
  Object.defineProperty(e, "__esModule", { value: !0 });
5136
- var t = Y(), n = X();
5311
+ var t = X(), n = Z();
5137
5312
  e.default = {
5138
5313
  keyword: "contains",
5139
5314
  type: "array",
@@ -5188,7 +5363,7 @@ var vn = /* @__PURE__ */ new WeakMap(), yn = (e) => e === null || typeof e != "o
5188
5363
  };
5189
5364
  })), xr = /* @__PURE__ */ i(((e) => {
5190
5365
  Object.defineProperty(e, "__esModule", { value: !0 }), e.validateSchemaDeps = e.validatePropertyDeps = e.error = void 0;
5191
- var t = Y(), n = X(), r = Q();
5366
+ var t = X(), n = Z(), r = Q();
5192
5367
  e.error = {
5193
5368
  message: ({ params: { property: e, depsCount: n, deps: r } }) => {
5194
5369
  let i = n === 1 ? "property" : "properties";
@@ -5249,7 +5424,7 @@ var vn = /* @__PURE__ */ new WeakMap(), yn = (e) => e === null || typeof e != "o
5249
5424
  e.validateSchemaDeps = s, e.default = i;
5250
5425
  })), Sr = /* @__PURE__ */ i(((e) => {
5251
5426
  Object.defineProperty(e, "__esModule", { value: !0 });
5252
- var t = Y(), n = X();
5427
+ var t = X(), n = Z();
5253
5428
  e.default = {
5254
5429
  keyword: "propertyNames",
5255
5430
  type: "object",
@@ -5277,7 +5452,7 @@ var vn = /* @__PURE__ */ new WeakMap(), yn = (e) => e === null || typeof e != "o
5277
5452
  };
5278
5453
  })), Cr = /* @__PURE__ */ i(((e) => {
5279
5454
  Object.defineProperty(e, "__esModule", { value: !0 });
5280
- var t = Q(), n = Y(), r = Z(), i = X();
5455
+ var t = Q(), n = X(), r = Tn(), i = Z();
5281
5456
  e.default = {
5282
5457
  keyword: "additionalProperties",
5283
5458
  type: ["object"],
@@ -5344,7 +5519,7 @@ var vn = /* @__PURE__ */ new WeakMap(), yn = (e) => e === null || typeof e != "o
5344
5519
  };
5345
5520
  })), wr = /* @__PURE__ */ i(((e) => {
5346
5521
  Object.defineProperty(e, "__esModule", { value: !0 });
5347
- var t = Ln(), n = Q(), r = X(), i = Cr();
5522
+ var t = Ln(), n = Q(), r = Z(), i = Cr();
5348
5523
  e.default = {
5349
5524
  keyword: "properties",
5350
5525
  type: "object",
@@ -5373,7 +5548,7 @@ var vn = /* @__PURE__ */ new WeakMap(), yn = (e) => e === null || typeof e != "o
5373
5548
  };
5374
5549
  })), Tr = /* @__PURE__ */ i(((e) => {
5375
5550
  Object.defineProperty(e, "__esModule", { value: !0 });
5376
- var t = Q(), n = Y(), r = X(), i = X();
5551
+ var t = Q(), n = X(), r = Z(), i = Z();
5377
5552
  e.default = {
5378
5553
  keyword: "patternProperties",
5379
5554
  type: "object",
@@ -5408,7 +5583,7 @@ var vn = /* @__PURE__ */ new WeakMap(), yn = (e) => e === null || typeof e != "o
5408
5583
  };
5409
5584
  })), Er = /* @__PURE__ */ i(((e) => {
5410
5585
  Object.defineProperty(e, "__esModule", { value: !0 });
5411
- var t = X();
5586
+ var t = Z();
5412
5587
  e.default = {
5413
5588
  keyword: "not",
5414
5589
  schemaType: ["object", "boolean"],
@@ -5439,7 +5614,7 @@ var vn = /* @__PURE__ */ new WeakMap(), yn = (e) => e === null || typeof e != "o
5439
5614
  };
5440
5615
  })), Or = /* @__PURE__ */ i(((e) => {
5441
5616
  Object.defineProperty(e, "__esModule", { value: !0 });
5442
- var t = Y(), n = X();
5617
+ var t = X(), n = Z();
5443
5618
  e.default = {
5444
5619
  keyword: "oneOf",
5445
5620
  schemaType: "array",
@@ -5471,7 +5646,7 @@ var vn = /* @__PURE__ */ new WeakMap(), yn = (e) => e === null || typeof e != "o
5471
5646
  };
5472
5647
  })), kr = /* @__PURE__ */ i(((e) => {
5473
5648
  Object.defineProperty(e, "__esModule", { value: !0 });
5474
- var t = X();
5649
+ var t = Z();
5475
5650
  e.default = {
5476
5651
  keyword: "allOf",
5477
5652
  schemaType: "array",
@@ -5492,7 +5667,7 @@ var vn = /* @__PURE__ */ new WeakMap(), yn = (e) => e === null || typeof e != "o
5492
5667
  };
5493
5668
  })), Ar = /* @__PURE__ */ i(((e) => {
5494
5669
  Object.defineProperty(e, "__esModule", { value: !0 });
5495
- var t = Y(), n = X(), r = {
5670
+ var t = X(), n = Z(), r = {
5496
5671
  keyword: "if",
5497
5672
  schemaType: ["object", "boolean"],
5498
5673
  trackErrors: !0,
@@ -5535,7 +5710,7 @@ var vn = /* @__PURE__ */ new WeakMap(), yn = (e) => e === null || typeof e != "o
5535
5710
  e.default = r;
5536
5711
  })), jr = /* @__PURE__ */ i(((e) => {
5537
5712
  Object.defineProperty(e, "__esModule", { value: !0 });
5538
- var t = X();
5713
+ var t = Z();
5539
5714
  e.default = {
5540
5715
  keyword: ["then", "else"],
5541
5716
  schemaType: ["object", "boolean"],
@@ -5565,7 +5740,7 @@ var vn = /* @__PURE__ */ new WeakMap(), yn = (e) => e === null || typeof e != "o
5565
5740
  e.default = _;
5566
5741
  })), Nr = /* @__PURE__ */ i(((e) => {
5567
5742
  Object.defineProperty(e, "__esModule", { value: !0 });
5568
- var t = Y();
5743
+ var t = X();
5569
5744
  e.default = {
5570
5745
  keyword: "format",
5571
5746
  type: ["number", "string"],
@@ -5673,7 +5848,7 @@ var vn = /* @__PURE__ */ new WeakMap(), yn = (e) => e === null || typeof e != "o
5673
5848
  })(t || (e.DiscrError = t = {}));
5674
5849
  })), Rr = /* @__PURE__ */ i(((e) => {
5675
5850
  Object.defineProperty(e, "__esModule", { value: !0 });
5676
- var t = Y(), n = Lr(), r = Bn(), i = zn(), a = X();
5851
+ var t = X(), n = Lr(), r = Bn(), i = zn(), a = Z();
5677
5852
  e.default = {
5678
5853
  keyword: "discriminator",
5679
5854
  type: "object",
@@ -5907,7 +6082,7 @@ var vn = /* @__PURE__ */ new WeakMap(), yn = (e) => e === null || typeof e != "o
5907
6082
  return u.KeywordCxt;
5908
6083
  }
5909
6084
  });
5910
- var d = Y();
6085
+ var d = X();
5911
6086
  Object.defineProperty(t, "_", {
5912
6087
  enumerable: !0,
5913
6088
  get: function() {
@@ -6107,7 +6282,7 @@ var vn = /* @__PURE__ */ new WeakMap(), yn = (e) => e === null || typeof e != "o
6107
6282
  }
6108
6283
  })), Xr = /* @__PURE__ */ i(((e) => {
6109
6284
  Object.defineProperty(e, "__esModule", { value: !0 }), e.formatLimitDefinition = void 0;
6110
- var t = Jr(), n = Y(), r = n.operators, i = {
6285
+ var t = Jr(), n = X(), r = n.operators, i = {
6111
6286
  formatMaximum: {
6112
6287
  okStr: "<=",
6113
6288
  ok: r.LTE,
@@ -6169,7 +6344,7 @@ var vn = /* @__PURE__ */ new WeakMap(), yn = (e) => e === null || typeof e != "o
6169
6344
  }, e.default = (t) => (t.addKeyword(e.formatLimitDefinition), t);
6170
6345
  })), Zr = /* @__PURE__ */ i(((e, t) => {
6171
6346
  Object.defineProperty(e, "__esModule", { value: !0 });
6172
- var n = Yr(), r = Xr(), i = Y(), a = new i.Name("fullFormats"), o = new i.Name("fastFormats"), s = (e, t = { keywords: !0 }) => {
6347
+ var n = Yr(), r = Xr(), i = X(), a = new i.Name("fullFormats"), o = new i.Name("fastFormats"), s = (e, t = { keywords: !0 }) => {
6173
6348
  if (Array.isArray(t)) return c(e, t, n.fullFormats, a), e;
6174
6349
  let [i, s] = t.mode === "fast" ? [n.fastFormats, o] : [n.fullFormats, a];
6175
6350
  return c(e, t.formats || n.formatNames, i, s), t.keywords && (0, r.default)(e), e;
@@ -6504,14 +6679,14 @@ function si(e, t, n) {
6504
6679
  //#region src/designer/browser/stores/schemaEditor/simpleWidget.store.ts
6505
6680
  var ci = class {
6506
6681
  constructor(e, t, n) {
6507
- this.path = e, this.schema$ = t, this.context = n, this.dispose = M(), this.widgetType$ = this.dispose.add(a(this.schema$, q));
6682
+ this.path = e, this.schema$ = t, this.context = n, this.dispose = I(), this.widgetType$ = this.dispose.add(a(this.schema$, Y));
6508
6683
  }
6509
6684
  get expanded$() {
6510
6685
  return this.expandedCache$ ??= this.dispose.add(this.context.deriveExpanded$(this.path));
6511
6686
  }
6512
6687
  configureNumber() {
6513
- this.numberConfigurationSlot ||= this.dispose.add(j());
6514
- let e = M(), t = e.add(this.deriveUiOptions$("step", B)), n = e.add(this.deriveSchema$("minimum", B)), r = e.add(this.deriveSchema$("maximum", B)), i = e.add(this.deriveSchema$("exclusiveMinimum", B)), a = e.add(this.deriveSchema$("exclusiveMaximum", B));
6688
+ this.numberConfigurationSlot ||= this.dispose.add(P());
6689
+ let e = I(), t = e.add(this.deriveUiOptions$("step", W)), n = e.add(this.deriveSchema$("minimum", W)), r = e.add(this.deriveSchema$("maximum", W)), i = e.add(this.deriveSchema$("exclusiveMinimum", W)), a = e.add(this.deriveSchema$("exclusiveMaximum", W));
6515
6690
  return this.numberConfigurationSlot.set(e), {
6516
6691
  step$: t,
6517
6692
  minimum$: n,
@@ -6521,14 +6696,14 @@ var ci = class {
6521
6696
  };
6522
6697
  }
6523
6698
  configureColor() {
6524
- return this.colorConfigurationSlot ||= this.dispose.add(j()), { colorType$: this.colorConfigurationSlot.set(this.deriveUiOptions$("colorType", (e) => Lt(e) ? e : void 0)) };
6699
+ return this.colorConfigurationSlot ||= this.dispose.add(P()), { colorType$: this.colorConfigurationSlot.set(this.deriveUiOptions$("colorType", (e) => Pt(e) ? e : void 0)) };
6525
6700
  }
6526
6701
  configureDate() {
6527
- return this.dateConfigurationSlot ||= this.dispose.add(j()), { format$: this.dateConfigurationSlot.set(this.deriveSchema$("format", (e) => Ot(e) ? e : void 0)) };
6702
+ return this.dateConfigurationSlot ||= this.dispose.add(P()), { format$: this.dateConfigurationSlot.set(this.deriveSchema$("format", (e) => Tt(e) ? e : void 0)) };
6528
6703
  }
6529
6704
  configureString() {
6530
- this.stringConfigurationSlot ||= this.dispose.add(j());
6531
- let e = M(), t = e.add(this.deriveSchema$("format", z)), n = e.add(this.deriveSchema$("pattern", z)), r = e.add(this.deriveSchema$("minLength", B)), i = e.add(this.deriveSchema$("maxLength", B));
6705
+ this.stringConfigurationSlot ||= this.dispose.add(P());
6706
+ let e = I(), t = e.add(this.deriveSchema$("format", U)), n = e.add(this.deriveSchema$("pattern", U)), r = e.add(this.deriveSchema$("minLength", W)), i = e.add(this.deriveSchema$("maxLength", W));
6532
6707
  return this.stringConfigurationSlot.set(e), {
6533
6708
  format$: t,
6534
6709
  pattern$: n,
@@ -6537,15 +6712,15 @@ var ci = class {
6537
6712
  };
6538
6713
  }
6539
6714
  configureArray() {
6540
- this.arrayConfigurationSlot ||= this.dispose.add(j());
6541
- let e = M(), t = e.add(this.deriveSchema$("minItems", B)), n = e.add(this.deriveSchema$("maxItems", B));
6715
+ this.arrayConfigurationSlot ||= this.dispose.add(P());
6716
+ let e = I(), t = e.add(this.deriveSchema$("minItems", W)), n = e.add(this.deriveSchema$("maxItems", W));
6542
6717
  return this.arrayConfigurationSlot.set(e), {
6543
6718
  minItems$: t,
6544
6719
  maxItems$: n
6545
6720
  };
6546
6721
  }
6547
6722
  configureObject() {
6548
- return this.objectConfigurationSlot ||= this.dispose.add(j()), { additionalProperties$: this.objectConfigurationSlot.set(this.deriveSchema$("additionalProperties", at)) };
6723
+ return this.objectConfigurationSlot ||= this.dispose.add(P()), { additionalProperties$: this.objectConfigurationSlot.set(this.deriveSchema$("additionalProperties", tt)) };
6549
6724
  }
6550
6725
  isSelect() {
6551
6726
  return !1;
@@ -6563,11 +6738,11 @@ var ci = class {
6563
6738
  return !1;
6564
6739
  }
6565
6740
  deriveSchema$(e, t, n) {
6566
- return l(a(this.schema$, (n) => t(R(n)?.[e]), n), U(this.schema$, e));
6741
+ return l(a(this.schema$, (n) => t(H(n)?.[e]), n), K(this.schema$, e));
6567
6742
  }
6568
6743
  deriveUiOptions$(e, t, n) {
6569
- return l(a(this.schema$, (n) => t(R(R(n)?.[G])?.[e]), n), (t) => {
6570
- let n = R(this.schema$.value), r = R(n?.[G]);
6744
+ return l(a(this.schema$, (n) => t(H(H(n)?.[J])?.[e]), n), (t) => {
6745
+ let n = H(this.schema$.value), r = H(n?.[J]);
6571
6746
  if (Object.is(t, r?.[e])) return;
6572
6747
  let i = {
6573
6748
  ...r,
@@ -6575,7 +6750,7 @@ var ci = class {
6575
6750
  };
6576
6751
  f(this.schema$, n && {
6577
6752
  ...n,
6578
- "ui:options": Je(i)
6753
+ "ui:options": We(i)
6579
6754
  });
6580
6755
  });
6581
6756
  }
@@ -6587,29 +6762,29 @@ var ci = class {
6587
6762
  return !0;
6588
6763
  }
6589
6764
  addCondition(e) {
6590
- let t = { ...R(this.schema$.value) }, n = q(t), r = I(t[n])?.slice() ?? [], i = { ...R(t[G]) }, a = I(i.labels)?.slice() ?? [];
6765
+ let t = { ...H(this.schema$.value) }, n = Y(t), r = B(t[n])?.slice() ?? [], i = { ...H(t[J]) }, a = B(i.labels)?.slice() ?? [];
6591
6766
  for (; a.length < r.length;) a.push("");
6592
- a.splice(e + 1, 0, ""), i.labels = L(a), r.splice(e + 1, 0, K()), t[n] = r, t[G] = i, this.schema$.set(t);
6767
+ a.splice(e + 1, 0, ""), i.labels = V(a), r.splice(e + 1, 0, Yt()), t[n] = r, t[J] = i, this.schema$.set(t);
6593
6768
  }
6594
6769
  removeCondition(e) {
6595
- let t = { ...R(this.schema$.value) }, n = q(t), r = I(t[n])?.slice() ?? [], i = { ...R(t[G]) }, a = I(i.labels)?.slice() ?? [];
6770
+ let t = { ...H(this.schema$.value) }, n = Y(t), r = B(t[n])?.slice() ?? [], i = { ...H(t[J]) }, a = B(i.labels)?.slice() ?? [];
6596
6771
  for (; a.length < r.length;) a.push("");
6597
- a.splice(e, 1), i.labels = L(a), r.splice(e, 1), t[n] = r, t[G] = i, this.schema$.set(t);
6772
+ a.splice(e, 1), i.labels = V(a), r.splice(e, 1), t[n] = r, t[J] = i, this.schema$.set(t);
6598
6773
  }
6599
6774
  deriveConditions$() {
6600
6775
  let e = [];
6601
6776
  return a(this.schema$, (t) => {
6602
- let n = I(R(t)?.[q(t)])?.length ?? 0, r = e.slice(0, n);
6777
+ let n = B(H(t)?.[Y(t)])?.length ?? 0, r = e.slice(0, n);
6603
6778
  for (let e = r.length; e < n; e++) r[e] = new ui(e, this, this.context);
6604
6779
  for (let t = r.length; t < e.length; t++) e[t]?.dispose();
6605
6780
  return e = r, r;
6606
6781
  });
6607
6782
  }
6608
6783
  deriveConditionSchema$(e, t = "anyOf") {
6609
- return l(a(this.schema$, (t) => I(R(t)?.[q(t)])?.[e]), (n) => {
6610
- let r = R(this.schema$.value), i = q(r);
6784
+ return l(a(this.schema$, (t) => B(H(t)?.[Y(t)])?.[e]), (n) => {
6785
+ let r = H(this.schema$.value), i = Y(r);
6611
6786
  i !== "allOf" && i !== "anyOf" && i !== "oneOf" && (i = t);
6612
- let a = I(r?.[i]);
6787
+ let a = B(r?.[i]);
6613
6788
  if (!Object.is(a?.[e], n)) {
6614
6789
  let t = a?.slice() ?? [];
6615
6790
  t[e] = n, this.schema$.set({
@@ -6620,15 +6795,15 @@ var ci = class {
6620
6795
  });
6621
6796
  }
6622
6797
  deriveLabel$(e) {
6623
- return l(a(this.schema$, (t) => z(I(R(R(t)?.[G])?.labels)?.[e])), (t) => {
6624
- let n = R(this.schema$.value), r = R(n?.[G]), i = I(r?.labels);
6798
+ return l(a(this.schema$, (t) => U(B(H(H(t)?.[J])?.labels)?.[e])), (t) => {
6799
+ let n = H(this.schema$.value), r = H(n?.[J]), i = B(r?.labels);
6625
6800
  if (!Object.is(i?.[e], t)) {
6626
6801
  let a = i?.slice() ?? [];
6627
6802
  a[e] = t, this.schema$.set({
6628
6803
  ...n,
6629
- [G]: {
6804
+ [J]: {
6630
6805
  ...r,
6631
- labels: L(a)
6806
+ labels: V(a)
6632
6807
  }
6633
6808
  });
6634
6809
  }
@@ -6636,11 +6811,11 @@ var ci = class {
6636
6811
  }
6637
6812
  }, ui = class {
6638
6813
  constructor(e, t, n) {
6639
- this.dispose = M(), 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(bi(this.path, this.schema$, n));
6814
+ this.dispose = I(), 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(bi(this.path, this.schema$, n));
6640
6815
  }
6641
6816
  }, di = class extends ci {
6642
6817
  constructor(e, t, n) {
6643
- super(e, t, n), this.itemsSchema$ = this.dispose.add(this.deriveSchema$("items", (e) => e, F)), this.itemsWidget$ = this.dispose.add(bi(this.path.append("items"), this.itemsSchema$, n));
6818
+ super(e, t, n), this.itemsSchema$ = this.dispose.add(this.deriveSchema$("items", (e) => e, z)), this.itemsWidget$ = this.dispose.add(bi(this.path.append("items"), this.itemsSchema$, n));
6644
6819
  }
6645
6820
  isArray() {
6646
6821
  return !0;
@@ -6686,27 +6861,27 @@ var hi = class extends ci {
6686
6861
  return !0;
6687
6862
  }
6688
6863
  addItem(e) {
6689
- let t = { ...R(this.schema$.value) }, n = I(t.enum)?.slice() ?? [], r = { ...R(t[G]) }, i = I(r.labels)?.slice() ?? [];
6864
+ let t = { ...H(this.schema$.value) }, n = B(t.enum)?.slice() ?? [], r = { ...H(t[J]) }, i = B(r.labels)?.slice() ?? [];
6690
6865
  for (; i.length < n.length;) i.push("");
6691
- i.splice(e + 1, 0, ""), r.labels = L(i), n.splice(e + 1, 0, ""), t.enum = n, t[G] = r, this.schema$.set(t);
6866
+ i.splice(e + 1, 0, ""), r.labels = V(i), n.splice(e + 1, 0, ""), t.enum = n, t[J] = r, this.schema$.set(t);
6692
6867
  }
6693
6868
  removeItem(e) {
6694
- let t = { ...R(this.schema$.value) }, n = I(t.enum)?.slice() ?? [], r = { ...R(t[G]) }, i = I(r.labels)?.slice() ?? [];
6869
+ let t = { ...H(this.schema$.value) }, n = B(t.enum)?.slice() ?? [], r = { ...H(t[J]) }, i = B(r.labels)?.slice() ?? [];
6695
6870
  for (; i.length < n.length;) i.push("");
6696
- i.splice(e, 1), r.labels = L(i), n.splice(e, 1), t.enum = n, t[G] = r, this.schema$.set(t);
6871
+ i.splice(e, 1), r.labels = V(i), n.splice(e, 1), t.enum = n, t[J] = r, this.schema$.set(t);
6697
6872
  }
6698
6873
  deriveItems() {
6699
6874
  let e = [];
6700
6875
  return a(this.schema$, (t) => {
6701
- let n = I(R(t)?.enum)?.length ?? 0, r = e.slice(0, n);
6876
+ let n = B(H(t)?.enum)?.length ?? 0, r = e.slice(0, n);
6702
6877
  for (let e = r.length; e < n; e++) r[e] = new gi(e, this, this.context);
6703
6878
  for (let t = r.length; t < e.length; t++) e[t]?.dispose();
6704
6879
  return e = r, r;
6705
6880
  });
6706
6881
  }
6707
6882
  deriveValue$(e) {
6708
- return l(a(this.schema$, (t) => I(R(t)?.enum)?.[e]), (t) => {
6709
- let n = R(this.schema$.value), r = I(n?.enum);
6883
+ return l(a(this.schema$, (t) => B(H(t)?.enum)?.[e]), (t) => {
6884
+ let n = H(this.schema$.value), r = B(n?.enum);
6710
6885
  if (!Object.is(r?.[e], t)) {
6711
6886
  let i = r?.slice() ?? [];
6712
6887
  i[e] = t, this.schema$.set({
@@ -6717,15 +6892,15 @@ var hi = class extends ci {
6717
6892
  });
6718
6893
  }
6719
6894
  deriveLabel$(e) {
6720
- return l(a(this.schema$, (t) => z(I(R(R(t)?.[G])?.labels)?.[e])), (t) => {
6721
- let n = R(this.schema$.value), r = R(n?.[G]), i = I(r?.labels);
6895
+ return l(a(this.schema$, (t) => U(B(H(H(t)?.[J])?.labels)?.[e])), (t) => {
6896
+ let n = H(this.schema$.value), r = H(n?.[J]), i = B(r?.labels);
6722
6897
  if (!Object.is(i?.[e], t)) {
6723
6898
  let a = i?.slice() ?? [];
6724
6899
  a[e] = t, this.schema$.set({
6725
6900
  ...n,
6726
- [G]: {
6901
+ [J]: {
6727
6902
  ...r,
6728
- labels: L(a)
6903
+ labels: V(a)
6729
6904
  }
6730
6905
  });
6731
6906
  }
@@ -6733,7 +6908,7 @@ var hi = class extends ci {
6733
6908
  }
6734
6909
  }, gi = class {
6735
6910
  constructor(e, t, n) {
6736
- this.index = e, this.selectStore = t, this.context = n, this.dispose = M(), this.value$ = this.dispose.add(this.selectStore.deriveValue$(e)), this.label$ = this.dispose.add(this.selectStore.deriveLabel$(e));
6911
+ this.index = e, this.selectStore = t, this.context = n, this.dispose = I(), this.value$ = this.dispose.add(this.selectStore.deriveValue$(e)), this.label$ = this.dispose.add(this.selectStore.deriveLabel$(e));
6737
6912
  }
6738
6913
  }, _i = class extends ci {
6739
6914
  constructor(e, t, n) {
@@ -6745,19 +6920,19 @@ var hi = class extends ci {
6745
6920
  return !0;
6746
6921
  }
6747
6922
  addItem(e) {
6748
- let t = { ...R(this.schema$.value) }, n = { ...R(t.items) }, r = I(n.enum)?.slice() ?? [], i = { ...R(t[G]) }, a = I(i.labels)?.slice() ?? [];
6923
+ let t = { ...H(this.schema$.value) }, n = { ...H(t.items) }, r = B(n.enum)?.slice() ?? [], i = { ...H(t[J]) }, a = B(i.labels)?.slice() ?? [];
6749
6924
  for (; a.length < r.length;) a.push("");
6750
- a.splice(e + 1, 0, ""), i.labels = L(a), r.splice(e + 1, 0, ""), n.enum = r, t.items = n, t[G] = i, this.schema$.set(t);
6925
+ a.splice(e + 1, 0, ""), i.labels = V(a), r.splice(e + 1, 0, ""), n.enum = r, t.items = n, t[J] = i, this.schema$.set(t);
6751
6926
  }
6752
6927
  removeItem(e) {
6753
- let t = { ...R(this.schema$.value) }, n = { ...R(t.items) }, r = I(n.enum)?.slice() ?? [], i = { ...R(t[G]) }, a = I(i.labels)?.slice() ?? [];
6928
+ let t = { ...H(this.schema$.value) }, n = { ...H(t.items) }, r = B(n.enum)?.slice() ?? [], i = { ...H(t[J]) }, a = B(i.labels)?.slice() ?? [];
6754
6929
  for (; a.length < r.length;) a.push("");
6755
- a.splice(e, 1), i.labels = L(a), r.splice(e, 1), n.enum = r, t.items = n, t[G] = i, this.schema$.set(t);
6930
+ a.splice(e, 1), i.labels = V(a), r.splice(e, 1), n.enum = r, t.items = n, t[J] = i, this.schema$.set(t);
6756
6931
  }
6757
6932
  deriveItems() {
6758
6933
  let e = [];
6759
6934
  return a(this.schema$, (t) => {
6760
- let n = R(t)?.items, r = I(R(n)?.enum)?.length ?? 0, i = e.slice(0, r);
6935
+ let n = H(t)?.items, r = B(H(n)?.enum)?.length ?? 0, i = e.slice(0, r);
6761
6936
  for (let e = i.length; e < r; e++) i[e] = new gi(e, this, this.context);
6762
6937
  for (let t = i.length; t < e.length; t++) e[t].dispose();
6763
6938
  return e = i, i;
@@ -6765,10 +6940,10 @@ var hi = class extends ci {
6765
6940
  }
6766
6941
  deriveValue$(e) {
6767
6942
  return l(a(this.schema$, (t) => {
6768
- let n = R(t)?.items;
6769
- return I(R(n)?.enum)?.[e];
6943
+ let n = H(t)?.items;
6944
+ return B(H(n)?.enum)?.[e];
6770
6945
  }), (t) => {
6771
- let n = R(this.schema$.value), r = R(n?.items), i = I(r?.enum);
6946
+ let n = H(this.schema$.value), r = H(n?.items), i = B(r?.enum);
6772
6947
  if (!Object.is(i?.[e], t)) {
6773
6948
  let a = i?.slice() ?? [];
6774
6949
  a[e] = t, this.schema$.set({
@@ -6782,15 +6957,15 @@ var hi = class extends ci {
6782
6957
  });
6783
6958
  }
6784
6959
  deriveLabel$(e) {
6785
- return l(a(this.schema$, (t) => z(I(R(R(t)?.[G])?.labels)?.[e])), (t) => {
6786
- let n = R(this.schema$.value), r = R(n?.[G]), i = I(r?.labels);
6960
+ return l(a(this.schema$, (t) => U(B(H(H(t)?.[J])?.labels)?.[e])), (t) => {
6961
+ let n = H(this.schema$.value), r = H(n?.[J]), i = B(r?.labels);
6787
6962
  if (!Object.is(i?.[e], t)) {
6788
6963
  let a = i?.slice() ?? [];
6789
6964
  a[e] = t, this.schema$.set({
6790
6965
  ...n,
6791
- [G]: {
6966
+ [J]: {
6792
6967
  ...r,
6793
- labels: L(a)
6968
+ labels: V(a)
6794
6969
  }
6795
6970
  });
6796
6971
  }
@@ -6808,20 +6983,20 @@ var hi = class extends ci {
6808
6983
  console.error(/* @__PURE__ */ Error("User can't add object field"));
6809
6984
  return;
6810
6985
  }
6811
- let t = R(this.schema$.value), n = R(t?.properties);
6986
+ let t = H(this.schema$.value), n = H(t?.properties);
6812
6987
  if (n) {
6813
- let r = Object.entries(n), i = (e ? r.findIndex(([t]) => t === e) : -1) + 1, a = V("field", r.map(([e]) => e)), o = i > 0 ? r[i - 1][1] : null;
6814
- r.splice(i, 0, [a, o || K()]), this.schema$.set({
6988
+ let r = Object.entries(n), i = (e ? r.findIndex(([t]) => t === e) : -1) + 1, a = G("field", r.map(([e]) => e)), o = i > 0 ? r[i - 1][1] : null;
6989
+ r.splice(i, 0, [a, o || Yt()]), this.schema$.set({
6815
6990
  ...t,
6816
6991
  properties: Object.fromEntries(r)
6817
6992
  });
6818
6993
  } else this.schema$.set({
6819
6994
  ...t,
6820
- properties: { field: K() }
6995
+ properties: { field: Yt() }
6821
6996
  });
6822
6997
  }
6823
6998
  renameField(e, t) {
6824
- let n = R(this.schema$.value), r = R(n?.properties);
6999
+ let n = H(this.schema$.value), r = H(n?.properties);
6825
7000
  if (r) {
6826
7001
  let i = Object.entries(r), a = i.findIndex(([t]) => t === e);
6827
7002
  a >= 0 && (i[a] = [t, i[a][1]], this.schema$.set({
@@ -6831,7 +7006,7 @@ var hi = class extends ci {
6831
7006
  }
6832
7007
  }
6833
7008
  removeField(e) {
6834
- let t = R(this.schema$.value), n = R(t?.properties);
7009
+ let t = H(this.schema$.value), n = H(t?.properties);
6835
7010
  if (n) {
6836
7011
  let r = Object.entries(n), i = r.findIndex(([t]) => t === e);
6837
7012
  i >= 0 && (r.splice(i, 1), this.schema$.set({
@@ -6843,7 +7018,7 @@ var hi = class extends ci {
6843
7018
  deriveFields$() {
6844
7019
  let e, t = [];
6845
7020
  return a(this.schema$, (n) => {
6846
- let r = R(n?.properties);
7021
+ let r = H(n?.properties);
6847
7022
  if (e === r) return t;
6848
7023
  e = r;
6849
7024
  let i = r ? Object.keys(r).map((e) => t.find((t) => t.name === e) || new yi(e, this, this.context)) : [];
@@ -6853,19 +7028,19 @@ var hi = class extends ci {
6853
7028
  }
6854
7029
  }, yi = class {
6855
7030
  constructor(e, t, n) {
6856
- this.dispose = M(), 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) => {
6857
- let r = R(t.schema$.value);
7031
+ this.dispose = I(), 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) => {
7032
+ let r = H(t.schema$.value);
6858
7033
  t.schema$.set({
6859
7034
  ...r,
6860
7035
  properties: {
6861
- ...R(r?.properties),
7036
+ ...H(r?.properties),
6862
7037
  [e]: n
6863
7038
  }
6864
7039
  });
6865
7040
  })), this.widget$ = this.dispose.add(bi(this.path, this.schema$, n));
6866
7041
  }
6867
7042
  }, bi = (e, t, n) => {
6868
- let r = j(), i = a(t, q), o = a(i, (i) => {
7043
+ let r = P(), i = a(t, Y), o = a(i, (i) => {
6869
7044
  let a;
6870
7045
  return a = i === "select" ? new hi(e, t, n) : i === "multiSelect" ? new _i(e, t, n) : i === "array" ? new di(e, t, n) : i === "object" ? new vi(e, t, n) : i === "anyOf" ? new li(e, t, n) : new ci(e, t, n), r.set(a);
6871
7046
  }), s = o.dispose, c = i.reaction((t) => {
@@ -6880,7 +7055,7 @@ var hi = class extends ci {
6880
7055
  }
6881
7056
  deriveExpanded$(e) {
6882
7057
  return l(a(this.expanded$, (t) => t?.[e.key] ?? !1), (t) => {
6883
- let n = R(this.expanded$.value);
7058
+ let n = H(this.expanded$.value);
6884
7059
  if (t) n?.[e.key] || this.expanded$.set({
6885
7060
  ...n,
6886
7061
  [e.key]: !0
@@ -6905,18 +7080,18 @@ var hi = class extends ci {
6905
7080
  }
6906
7081
  }, Si = class {
6907
7082
  constructor(e, t, n, r, i, a) {
6908
- this.dispose = M(), this.path = Cn.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(bi(this.path, this.schema$, a));
7083
+ this.dispose = I(), 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(bi(this.path, this.schema$, a));
6909
7084
  }
6910
7085
  }, Ci = "primitive";
6911
7086
  function wi(e) {
6912
- let t = z(e?.contentMediaType);
6913
- return t === Yt.secret ? "secret" : t === Yt.binary ? "bin" : Ci;
7087
+ let t = U(e?.contentMediaType);
7088
+ return t === Kt.secret ? "secret" : t === Kt.binary ? "bin" : Ci;
6914
7089
  }
6915
7090
  //#endregion
6916
7091
  //#region src/designer/browser/stores/nodeHandle/simpleWidget.store.ts
6917
7092
  var Ti = class {
6918
7093
  constructor(e, t, n, r, i) {
6919
- if (this.path = e, this.schema$ = t, this.context = n, this.value$ = r, this.overrideSchema$ = i, this.dispose = M(), 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$, q)), this.overrideWidgetType$ = this.dispose.add(a(this.overrideSchema$, (e) => q(e?.schema))), this.widgetType$ = this.dispose.add(u([this.schemaWidgetType$, this.overrideWidgetType$], ([e, t]) => en(e) ? t : e)), this.hasSubpanel$ = this.dispose.add(c((e) => {
7094
+ if (this.path = e, this.schema$ = t, this.context = n, this.value$ = r, this.overrideSchema$ = i, this.dispose = I(), 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]) => Qt(e) ? t : e)), this.hasSubpanel$ = this.dispose.add(c((e) => {
6920
7095
  let t = this.context.restrict$ != null && e(this.context.restrict$) != null;
6921
7096
  return Ei(this.context, e(this.widgetType$), e(this.schema$), t);
6922
7097
  })), r) {
@@ -6944,7 +7119,7 @@ var Ti = class {
6944
7119
  return !1;
6945
7120
  }
6946
7121
  deriveDescription$(e) {
6947
- return l(a(e, (e) => z(R(e)?.description)), (t) => {
7122
+ return l(a(e, (e) => U(H(e)?.description)), (t) => {
6948
7123
  y(e.value) && e.set({
6949
7124
  ...e.value,
6950
7125
  description: t
@@ -6953,10 +7128,10 @@ var Ti = class {
6953
7128
  }
6954
7129
  };
6955
7130
  function Ei(e, t, n, r) {
6956
- let i = R(n), a = q(i);
7131
+ let i = H(n), a = Y(i);
6957
7132
  if (t == "object") {
6958
7133
  if (!r && e.canEditSchema || a == "any") return !0;
6959
- let t = R(i?.properties), n = t != null && Object.keys(t).length > 0;
7134
+ let t = H(i?.properties), n = t != null && Object.keys(t).length > 0;
6960
7135
  return e.inout == "in" ? n || i?.additionalProperties !== !1 : n;
6961
7136
  }
6962
7137
  return e.inout == "in" && (t == "text" || t == "array" || i?.anyOf != null || i?.allOf != null || i?.oneOf != null);
@@ -6965,12 +7140,12 @@ function Ei(e, t, n, r) {
6965
7140
  //#region src/designer/browser/stores/nodeHandle/anyOfWidget.store.ts
6966
7141
  var Di = class extends Ti {
6967
7142
  constructor(e, t, n, r, i) {
6968
- super(e, t, n, r, i), this.selected$ = this.dispose.add(l(a(this.overrideSchema$, (e) => B(R(R(e)?.[G])?.selected)), (e) => {
7143
+ super(e, t, n, r, i), this.selected$ = this.dispose.add(l(a(this.overrideSchema$, (e) => W(H(H(e)?.[J])?.selected)), (e) => {
6969
7144
  e ? f(this.overrideSchema$, {
6970
- ...R(this.overrideSchema$.value),
7145
+ ...H(this.overrideSchema$.value),
6971
7146
  path: this.path,
6972
- [G]: {
6973
- ...R(R(this.overrideSchema$.value)?.[G]),
7147
+ [J]: {
7148
+ ...H(H(this.overrideSchema$.value)?.[J]),
6974
7149
  selected: e
6975
7150
  }
6976
7151
  }) : f(this.overrideSchema$, void 0);
@@ -6978,14 +7153,14 @@ var Di = class extends Ti {
6978
7153
  this.schemaWidgetType$,
6979
7154
  this.schema$,
6980
7155
  this.selected$
6981
- ], ([e, t, n]) => I(R(t)?.[e])?.[n || 0]), (e) => {
6982
- let t = I(R(this.schema$.value)?.[this.schemaWidgetType$.value]) || [];
7156
+ ], ([e, t, n]) => B(H(t)?.[e])?.[n || 0]), (e) => {
7157
+ let t = B(H(this.schema$.value)?.[this.schemaWidgetType$.value]) || [];
6983
7158
  f(this.schema$, {
6984
- ...R(this.schema$.value),
7159
+ ...H(this.schema$.value),
6985
7160
  [this.schemaWidgetType$.value]: t.toSpliced(this.selected$.value || 0, 1, e)
6986
7161
  });
6987
7162
  }));
6988
- let o = this.dispose.add(j()), s;
7163
+ let o = this.dispose.add(P()), s;
6989
7164
  if (this.condition$ = this.dispose.add(u([this.selected$, this.selectedSchema$], ([e = 0, t]) => {
6990
7165
  if (t) return s?.selected === e ? s : (s = new Oi(e, this.selectedSchema$, this, this.context), o.set(s));
6991
7166
  })), r) {
@@ -7002,11 +7177,11 @@ var Di = class extends Ti {
7002
7177
  }
7003
7178
  }, Oi = class {
7004
7179
  constructor(e, t, n, r) {
7005
- this.dispose = M(), this.selected = e, this.schema$ = t, this.context = r, this.value$ = n.value$, this.overrideSchema$ = n.overrideSchema$, this.widget$ = this.dispose.add(Ni(n.path, this.schema$, r, this.value$, this.overrideSchema$));
7180
+ this.dispose = I(), this.selected = e, this.schema$ = t, this.context = r, this.value$ = n.value$, this.overrideSchema$ = n.overrideSchema$, this.widget$ = this.dispose.add(Ni(n.path, this.schema$, r, this.value$, this.overrideSchema$));
7006
7181
  }
7007
7182
  }, ki = class extends Ti {
7008
7183
  constructor(e, t, n, r, i) {
7009
- super(e, t, n, r, i), this.itemsSchema$ = this.dispose.add(l(a(t, (e) => R(e)?.items), U(t, "items"))), this.itemsWidgetType$ = this.dispose.add(a(this.itemsSchema$, (e) => q(e))), r && (this.items$ = this.dispose.add(this.deriveItems(r)), this.dispose.add(() => {
7184
+ super(e, t, n, r, i), this.itemsSchema$ = this.dispose.add(l(a(t, (e) => H(e)?.items), K(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(() => {
7010
7185
  for (let e of this.items$.value) e.dispose();
7011
7186
  }));
7012
7187
  }
@@ -7015,7 +7190,7 @@ var Di = class extends Ti {
7015
7190
  }
7016
7191
  addItem(e) {
7017
7192
  if (this.value$) {
7018
- let t = I(this.value$.value), n = $t(q(this.itemsSchema$.value));
7193
+ let t = B(this.value$.value), n = Zt(Y(this.itemsSchema$.value));
7019
7194
  if (t) {
7020
7195
  this.context.duplicateSchemaOverrideItem(this.path.append(e));
7021
7196
  let r = t.toSpliced(e + 1, 0, n);
@@ -7025,7 +7200,7 @@ var Di = class extends Ti {
7025
7200
  }
7026
7201
  removeItem(e) {
7027
7202
  if (this.context.removeSchemaOverrideItem(this.path.append(e)), this.value$) {
7028
- let t = I(this.value$.value);
7203
+ let t = B(this.value$.value);
7029
7204
  f(this.value$, t ? t.toSpliced(e, 1) : []);
7030
7205
  }
7031
7206
  }
@@ -7040,10 +7215,10 @@ var Di = class extends Ti {
7040
7215
  }
7041
7216
  }, Ai = class {
7042
7217
  constructor(e, t, n) {
7043
- this.dispose = M(), this.index = e, this.context = n, this.path = t.path.append(e);
7218
+ this.dispose = I(), this.index = e, this.context = n, this.path = t.path.append(e);
7044
7219
  let r = t.value$;
7045
- r && (this.value$ = this.dispose.add(l(a(r, (t) => I(t)?.[e]), (t) => {
7046
- let n = I(r.value);
7220
+ r && (this.value$ = this.dispose.add(l(a(r, (t) => B(t)?.[e]), (t) => {
7221
+ let n = B(r.value);
7047
7222
  if (!Object.is(n?.[e], t)) {
7048
7223
  let i = n?.slice() ?? [];
7049
7224
  i[e] = t, r.set(i);
@@ -7053,8 +7228,8 @@ var Di = class extends Ti {
7053
7228
  }, ji = class extends Ti {
7054
7229
  constructor(e, t, n, r, i) {
7055
7230
  super(e, t, n, r, i), this.allowsUntypedFields$ = this.dispose.add(a(this.schema$, (e) => {
7056
- let t = R(e);
7057
- return q(e) == "object" && t?.additionalProperties !== !1;
7231
+ let t = H(e);
7232
+ return Y(e) == "object" && t?.additionalProperties !== !1;
7058
7233
  })), 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([
7059
7234
  this.fixedFields$,
7060
7235
  this.overrideFields$,
@@ -7077,11 +7252,11 @@ var Di = class extends Ti {
7077
7252
  console.error(/* @__PURE__ */ Error("User can't add fixed field"));
7078
7253
  return;
7079
7254
  }
7080
- let t = R(this.schema$.value), n = R(t?.properties), r = V("field", this.fieldNames$.value);
7255
+ let t = H(this.schema$.value), n = H(t?.properties), r = G("field", this.fieldNames$.value);
7081
7256
  if (n) {
7082
7257
  let i = Object.keys(n), a = {}, o;
7083
7258
  for (let t = 0; t < e; t++) o = a[i[t]] = n[i[t]];
7084
- a[r] = o || K();
7259
+ a[r] = o || Yt();
7085
7260
  for (let t = e; t < i.length; t++) a[i[t]] = n[i[t]];
7086
7261
  this.schema$.set({
7087
7262
  ...t,
@@ -7089,10 +7264,10 @@ var Di = class extends Ti {
7089
7264
  });
7090
7265
  } else this.schema$.set({
7091
7266
  ...t,
7092
- properties: { [r]: K() }
7267
+ properties: { [r]: Yt() }
7093
7268
  });
7094
7269
  if (this.value$) {
7095
- let e = R(this.value$.value);
7270
+ let e = H(this.value$.value);
7096
7271
  e ? this.value$.set({
7097
7272
  ...e,
7098
7273
  [r]: void 0
@@ -7100,12 +7275,12 @@ var Di = class extends Ti {
7100
7275
  }
7101
7276
  }
7102
7277
  addOverrideField(e) {
7103
- let t = e > 0 ? this.overrideFields$.value[e - 1] : null, n = V("field", this.fieldNames$.value);
7278
+ let t = e > 0 ? this.overrideFields$.value[e - 1] : null, n = G("field", this.fieldNames$.value);
7104
7279
  if (this.context.addSchemaOverrideItem({
7105
7280
  path: this.path.append(n),
7106
- schema: t?.schema$.value || K()
7281
+ schema: t?.schema$.value || Yt()
7107
7282
  }, e), this.value$) {
7108
- let e = R(this.value$.value);
7283
+ let e = H(this.value$.value);
7109
7284
  e ? this.value$.set({
7110
7285
  ...e,
7111
7286
  [n]: void 0
@@ -7114,7 +7289,7 @@ var Di = class extends Ti {
7114
7289
  }
7115
7290
  addUntypedField() {
7116
7291
  if (this.value$ == null) return;
7117
- let e = R(this.value$.value) ?? {}, t = V("field", this.fieldNames$.value);
7292
+ let e = H(this.value$.value) ?? {}, t = G("field", this.fieldNames$.value);
7118
7293
  this.value$.set({
7119
7294
  ...e,
7120
7295
  [t]: void 0
@@ -7124,7 +7299,7 @@ var Di = class extends Ti {
7124
7299
  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);
7125
7300
  }
7126
7301
  renameField(e, t) {
7127
- let n = R(this.schema$.value), r = R(n?.properties);
7302
+ let n = H(this.schema$.value), r = H(n?.properties);
7128
7303
  if (r) {
7129
7304
  let i = Object.entries(r), a = i.findIndex(([t]) => t === e);
7130
7305
  a >= 0 && (i[a] = [t, i[a][1]], this.schema$.set({
@@ -7141,7 +7316,7 @@ var Di = class extends Ti {
7141
7316
  }));
7142
7317
  }
7143
7318
  if (this.value$) {
7144
- let n = R(this.value$.value);
7319
+ let n = H(this.value$.value);
7145
7320
  if (n) {
7146
7321
  let r = Object.entries(n), i = r.findIndex(([t]) => t === e);
7147
7322
  i >= 0 && (r[i] = [t, r[i][1]], this.value$.set(Object.fromEntries(r)));
@@ -7154,7 +7329,7 @@ var Di = class extends Ti {
7154
7329
  }
7155
7330
  }
7156
7331
  removeField(e) {
7157
- let t = R(this.schema$.value), n = t?.properties;
7332
+ let t = H(this.schema$.value), n = t?.properties;
7158
7333
  if (n) {
7159
7334
  let r = Object.entries(n), i = r.findIndex((t) => t[0] === e);
7160
7335
  i >= 0 && this.schema$.set({
@@ -7163,7 +7338,7 @@ var Di = class extends Ti {
7163
7338
  });
7164
7339
  }
7165
7340
  this.context.removeSchemaOverrideItem(this.path.append(e));
7166
- let r = R(this.value$?.value);
7341
+ let r = H(this.value$?.value);
7167
7342
  if (r) {
7168
7343
  let t = { ...r };
7169
7344
  delete t[e], this.value$?.set(t);
@@ -7180,7 +7355,7 @@ var Di = class extends Ti {
7180
7355
  deriveFixedFields$() {
7181
7356
  let e, t = [];
7182
7357
  return a(this.schema$, (n) => {
7183
- let r = R(n?.properties);
7358
+ let r = H(n?.properties);
7184
7359
  if (e === r) return t;
7185
7360
  e = r;
7186
7361
  let i = r ? Object.keys(r).map((e) => t.find((t) => t.name === e) || new Mi(e, this, this.context)) : [];
@@ -7193,7 +7368,7 @@ var Di = class extends Ti {
7193
7368
  return u([this.context.schemaOverrides$, this.schema$], ([t, n]) => {
7194
7369
  let r = [];
7195
7370
  if (t) {
7196
- let i = R(R(n)?.properties);
7371
+ let i = H(H(n)?.properties);
7197
7372
  for (let n of t) if (this.path.matchChild(n.path)) {
7198
7373
  let t = n.path.last();
7199
7374
  g(t) && !i?.[t] && r.push(e?.find((e) => e.name === t) ?? new Mi(t, this, this.context, "override"));
@@ -7210,29 +7385,29 @@ var Di = class extends Ti {
7210
7385
  this.schema$,
7211
7386
  this.context.schemaOverrides$
7212
7387
  ], ([e, n, r]) => {
7213
- let i = R(n), a = R(i?.properties), o = /* @__PURE__ */ new Set();
7388
+ let i = H(n), a = H(i?.properties), o = /* @__PURE__ */ new Set();
7214
7389
  for (let e of r ?? []) {
7215
7390
  if (!this.path.matchChild(e.path)) continue;
7216
7391
  let t = e.path.last();
7217
7392
  g(t) && o.add(t);
7218
7393
  }
7219
- let s = i?.additionalProperties === !1 ? void 0 : R(e), c = s == null ? [] : Object.keys(s).filter((e) => a?.[e] == null && !o.has(e)).map((e) => t.find((t) => t.name === e) ?? new Mi(e, this, this.context, "untyped"));
7394
+ let s = i?.additionalProperties === !1 ? void 0 : H(e), c = s == null ? [] : Object.keys(s).filter((e) => a?.[e] == null && !o.has(e)).map((e) => t.find((t) => t.name === e) ?? new Mi(e, this, this.context, "untyped"));
7220
7395
  for (let e of t) c.some((t) => t.name === e.name) || e.dispose();
7221
7396
  return t = c, c;
7222
7397
  }, { equal: d });
7223
7398
  }
7224
7399
  }, Mi = class {
7225
7400
  constructor(e, t, n, r = "fixed") {
7226
- this.dispose = M(), this.name = e, this.context = n, this.path = t.path.append(e), t.value$ && (this.value$ = this.dispose.add(l(a(t.value$, (t) => R(t)?.[e]), (n) => t.setField(e, n)))), this.schema$ = this.dispose.add(l(a(t.schema$, (t) => {
7401
+ this.dispose = I(), this.name = e, this.context = n, this.path = t.path.append(e), t.value$ && (this.value$ = this.dispose.add(l(a(t.value$, (t) => H(t)?.[e]), (n) => t.setField(e, n)))), this.schema$ = this.dispose.add(l(a(t.schema$, (t) => {
7227
7402
  let n = t;
7228
7403
  return r === "untyped" ? n?.additionalProperties === !0 ? void 0 : n?.additionalProperties : n?.properties?.[e];
7229
7404
  }), (n) => {
7230
7405
  if (r === "untyped") return;
7231
- let i = R(t.schema$.value);
7406
+ let i = H(t.schema$.value);
7232
7407
  t.schema$.set({
7233
7408
  ...i,
7234
7409
  properties: {
7235
- ...R(i?.properties),
7410
+ ...H(i?.properties),
7236
7411
  [e]: n
7237
7412
  }
7238
7413
  });
@@ -7248,11 +7423,11 @@ var Di = class extends Ti {
7248
7423
  schema: t
7249
7424
  });
7250
7425
  }
7251
- R(t)?.type === "null" && this.value$?.set(null);
7426
+ H(t)?.type === "null" && this.value$?.set(null);
7252
7427
  }
7253
7428
  }, Ni = (e, t, n, r, i) => {
7254
- let o = j(), s = u([t, i], ([e, t]) => {
7255
- let n = q(e), r = q(t?.schema);
7429
+ let o = P(), s = u([t, i], ([e, t]) => {
7430
+ let n = Y(e), r = Y(t?.schema);
7256
7431
  return n === "any" || n === "variable" ? r : n;
7257
7432
  }), c = a(s, (a) => {
7258
7433
  let s;
@@ -7266,11 +7441,11 @@ var Di = class extends Ti {
7266
7441
  return t instanceof e;
7267
7442
  }
7268
7443
  constructor(e, t, n, r, i, o, d, f, p, m) {
7269
- if (this.dispose = M(), this.name = e, this.context = p, this.path = Cn.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$) {
7444
+ if (this.dispose = I(), 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$) {
7270
7445
  let e = this.schema$;
7271
7446
  this.schema$ = this.dispose.add(l(u([e, this.restrict$], ([e, t]) => t ? t.json_schema : e), (t) => this.restrict$?.value || e.set(t)));
7272
7447
  let t = this.nullable$;
7273
- this.nullable$ = this.dispose.add(l(u([t, this.restrict$], ([e, t]) => t ? it(t.nullable) : e), (e) => this.restrict$?.value || t.set(e)));
7448
+ this.nullable$ = this.dispose.add(l(u([t, this.restrict$], ([e, t]) => t ? et(t.nullable) : e), (e) => this.restrict$?.value || t.set(e)));
7274
7449
  let n = this.schemaKind$;
7275
7450
  this.schemaKind$ = this.dispose.add(l(u([n, this.restrict$], ([e, t]) => t ? t.kind : e), (e) => this.restrict$?.value || n.set(e)));
7276
7451
  }
@@ -7287,18 +7462,18 @@ var Di = class extends Ti {
7287
7462
  });
7288
7463
  })), this.dispose.add(() => {
7289
7464
  e != null && cancelIdleCallback(e);
7290
- }), this.dispose.add(this.value$.subscribe(() => this.validate(!0))), this.dispose.add(this.nullable$.subscribe(() => this.validate(!1))), this.dispose.add(c((e) => !!(tn(q(e(this.schema$))) && tn(q(e(this.overrideSchema$)?.schema)) && an(e(this.value$)) === "array")).subscribe((e) => {
7465
+ }), this.dispose.add(this.value$.subscribe(() => this.validate(!0))), this.dispose.add(this.nullable$.subscribe(() => this.validate(!1))), this.dispose.add(c((e) => !!($t(Y(e(this.schema$))) && $t(Y(e(this.overrideSchema$)?.schema)) && nn(e(this.value$)) === "array")).subscribe((e) => {
7291
7466
  e && this.overrideSchema$.set({
7292
7467
  ...this.overrideSchema$.value,
7293
7468
  path: this.path,
7294
- schema: Zt("array")
7469
+ schema: Jt("array")
7295
7470
  });
7296
7471
  }));
7297
7472
  }
7298
7473
  }
7299
7474
  get schemaRowStore() {
7300
7475
  if (this.schemaRowStoreCache) return this.schemaRowStoreCache;
7301
- let e = new xi(this.context, this.schema$, s(sn(this.schema$.value) <= 3 ? { "[]": !0 } : void 0), this.context.createSchemaEditor), t = new Si(this.name, this.description$, this.displayDescription$, this.nullable$, this.schemaKind$, e);
7476
+ let e = new xi(this.context, this.schema$, s(an(this.schema$.value) <= 3 ? { "[]": !0 } : void 0), this.context.createSchemaEditor), t = new Si(this.name, this.description$, this.displayDescription$, this.nullable$, this.schemaKind$, e);
7302
7477
  return this.schemaRowStoreCache = this.dispose.add(t);
7303
7478
  }
7304
7479
  validate(e) {
@@ -7312,7 +7487,7 @@ var Di = class extends Ti {
7312
7487
  this.error$.set(void 0);
7313
7488
  return;
7314
7489
  }
7315
- let t = q(this.schema$.value), n = rn(t), r = an(e);
7490
+ let t = Y(this.schema$.value), n = tn(t), r = nn(e);
7316
7491
  if (n ? n !== r : e === void 0) {
7317
7492
  this.error$.set({ type: "typeError" });
7318
7493
  return;
@@ -7333,7 +7508,7 @@ var Di = class extends Ti {
7333
7508
  }
7334
7509
  }, Pi = class {
7335
7510
  constructor(e, t, n, r, i, o, s) {
7336
- 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) => R(e));
7511
+ this.schema$ = t, this.schemaOverrides$ = n, this.defaultValue$ = r, this.collapsed$ = i, this.height$ = o, this.createSchemaEditor = s, this.onRequestOpenSchemaEditor = /*#__PURE__*/ _e(), 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) => H(e));
7337
7512
  }
7338
7513
  get canEditSchema() {
7339
7514
  return this.role === "author";
@@ -7345,7 +7520,7 @@ var Di = class extends Ti {
7345
7520
  return !0;
7346
7521
  }
7347
7522
  requestOpenSchemaEditor() {
7348
- Se(this.onRequestOpenSchemaEditor);
7523
+ ve(this.onRequestOpenSchemaEditor);
7349
7524
  }
7350
7525
  coalesceSchemaOverrideItems(e) {
7351
7526
  let t = this.schemaOverrides$.value;
@@ -7359,7 +7534,7 @@ var Di = class extends Ti {
7359
7534
  if (t) {
7360
7535
  let n = {};
7361
7536
  for (let r in t) {
7362
- let i = Cn.fromKey(r);
7537
+ let i = Sn.fromKey(r);
7363
7538
  i.equals(e) || i.isInside(e) || (n[r] = t[r]);
7364
7539
  }
7365
7540
  Object.keys(n).length < Object.keys(t).length && this.collapsed$.set(n);
@@ -7375,7 +7550,7 @@ var Di = class extends Ti {
7375
7550
  return;
7376
7551
  }
7377
7552
  let n = this.schemaOverrides$.value, r = -1;
7378
- if (Ae(t)) {
7553
+ if (Ee(t)) {
7379
7554
  let i = 0;
7380
7555
  for (let a = 0; a < n.length; a++) if (n[a].path.length === e.path.length && (i++, i >= t)) {
7381
7556
  r = t === 0 ? a : a + 1;
@@ -7445,10 +7620,10 @@ var Di = class extends Ti {
7445
7620
  });
7446
7621
  }
7447
7622
  deriveCollapsed$(e) {
7448
- return l(a(this.collapsed$, (t) => t?.[e.key] ?? !1), H(this.collapsed$, e.key));
7623
+ return l(a(this.collapsed$, (t) => t?.[e.key] ?? !1), nt(this.collapsed$, e.key));
7449
7624
  }
7450
7625
  deriveHeight$(e) {
7451
- return l(a(this.height$, (t) => t?.[e.key]), H(this.height$, e.key));
7626
+ return l(a(this.height$, (t) => t?.[e.key]), nt(this.height$, e.key));
7452
7627
  }
7453
7628
  };
7454
7629
  //#endregion
@@ -7471,12 +7646,12 @@ var Ri = /* @__PURE__ */ function(e) {
7471
7646
  //#region src/designer/browser/stores/node/nodeSection/cloneLocales.ts
7472
7647
  function Gi(e, t, n) {
7473
7648
  if (!e) return e;
7474
- let r = ft(e);
7649
+ let r = lt(e);
7475
7650
  if (!r || t && n && t === n) return e;
7476
7651
  if (!t || !n) return;
7477
7652
  let i = t.en.value, a = t["zh-CN"].value;
7478
7653
  if (!i[r] && !a[r]) return;
7479
- let o = gt(gt(r, n.en.value), n["zh-CN"].value);
7654
+ let o = pt(pt(r, n.en.value), n["zh-CN"].value);
7480
7655
  if (i[r]) {
7481
7656
  let e = n.en;
7482
7657
  e.set({
@@ -7539,16 +7714,16 @@ var la = class {
7539
7714
  return e.type === Ki;
7540
7715
  }
7541
7716
  constructor(e) {
7542
- this.type = Ki, this.dispose = M(), 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;
7543
- let t = this.dispose.add(s(oa(e.initialUIState?.collapsed))), n = this.dispose.add(s(sa(e.initialUIState?.height))), r = this.dispose.add(s(Qe(e.initialUIState?.groupCollapsed)));
7717
+ this.type = Ki, this.dispose = I(), this.onDidHandleIndexChange = this.dispose.add(_e()), this.onDidHandleRename = this.dispose.add(_e()), this.onDidHandleDelete = this.dispose.add(_e()), this.role = e.role, this.userLocales = e.userLocales;
7718
+ let t = this.dispose.add(s(oa(e.initialUIState?.collapsed))), n = this.dispose.add(s(sa(e.initialUIState?.height))), r = this.dispose.add(s(Je(e.initialUIState?.groupCollapsed)));
7544
7719
  this.uiState$ = this.dispose.add(u([
7545
7720
  t,
7546
7721
  n,
7547
7722
  r
7548
- ], ([e, t, n]) => Je({
7549
- collapsed: Je(e),
7550
- height: Je(t),
7551
- groupCollapsed: Qe(n)
7723
+ ], ([e, t, n]) => We({
7724
+ collapsed: We(e),
7725
+ height: We(t),
7726
+ groupCollapsed: Je(n)
7552
7727
  }))), this.$$ = {
7553
7728
  collapsed: t,
7554
7729
  height: n,
@@ -7558,7 +7733,7 @@ var la = class {
7558
7733
  additionalInputDefs: e.additionalInputDefs && this.dispose.add(e.additionalInputDefs.ref(!0)),
7559
7734
  showSettings: this.dispose.add(e.showSettings.ref(!0))
7560
7735
  };
7561
- 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) || J(e(t.schema$)) == null), { equal: d })), f = this.dispose.add(c((e) => e(a).filter((t) => $.is(t) && J(e(t.schema$)) != null), { equal: d }));
7736
+ let i = this.dispose.add(this.deriveConnectedHandles$(this.$$.handleInputsFrom)), a = this.dispose.add(this.deriveHandles$(t, n, e, i)), l = this.dispose.add(c((e) => e(a).filter((t) => !$.is(t) || fn(e(t.schema$)) == null), { equal: d })), f = this.dispose.add(c((e) => e(a).filter((t) => $.is(t) && fn(e(t.schema$)) != null), { equal: d }));
7562
7737
  this.$ = {
7563
7738
  collapsed: t,
7564
7739
  height: n,
@@ -7580,7 +7755,7 @@ var la = class {
7580
7755
  let t = e(this.$.inputHandleDefs)?.map((e) => Li(e) ? `g:${e.group}` : `h:${e.handle}`), n = e(this.$.additionalInputDefs)?.map((e) => `h:${e.handle}`);
7581
7756
  return (t && n ? [...t, ...n] : t || n) ?? [];
7582
7757
  }, { equal: d }));
7583
- this.dispose.add(e.reaction(Se.bind(null, this.onDidHandleIndexChange)));
7758
+ this.dispose.add(e.reaction(ve.bind(null, this.onDidHandleIndexChange)));
7584
7759
  }
7585
7760
  findGroupForWriting(e) {
7586
7761
  let t = this.getInputHandleDefs$(), n = t?.value;
@@ -7589,7 +7764,7 @@ var la = class {
7589
7764
  addGroup(e) {
7590
7765
  let [t, n] = this.findHandleForWriting(e), r = n?.value;
7591
7766
  if (r && t >= 0) {
7592
- let e = r.slice(), i = e.splice(t, 1), a = V("Group", this.$.allGroupNames.value).trim();
7767
+ let e = r.slice(), i = e.splice(t, 1), a = G("Group", this.$.allGroupNames.value).trim();
7593
7768
  e.splice(999, 0, { group: a }, ...i), n.set(e);
7594
7769
  }
7595
7770
  }
@@ -7652,7 +7827,7 @@ var la = class {
7652
7827
  return this.getInputHandleDefs$() != null;
7653
7828
  }
7654
7829
  getInputHandleDefs$() {
7655
- return Ze(this.role === "author") && this.$$.inputHandleDefs;
7830
+ return qe(this.role === "author") && this.$$.inputHandleDefs;
7656
7831
  }
7657
7832
  getAdditionalInputDefs$() {
7658
7833
  return this.$.additionalInputs?.value ? this.$$.additionalInputDefs : void 0;
@@ -7683,10 +7858,10 @@ var la = class {
7683
7858
  let t = e ? this.getAdditionalInputDefs$() : this.getInputHandleDefs$() || this.getAdditionalInputDefs$();
7684
7859
  if (t) {
7685
7860
  let e = this.$.allHandleNames.value, n = t.value, r = {
7686
- handle: V("input", e),
7687
- json_schema: K(n)
7861
+ handle: G("input", e),
7862
+ json_schema: Yt(n)
7688
7863
  };
7689
- t.set(n ? n.toSpliced(Ie(n, Li), 0, r) : [r]);
7864
+ t.set(n ? n.toSpliced(Me(n, Li), 0, r) : [r]);
7690
7865
  }
7691
7866
  }
7692
7867
  renameHandle(e, t) {
@@ -7708,7 +7883,7 @@ var la = class {
7708
7883
  }), r.set(i.toSpliced(n, 1, {
7709
7884
  ...i[n],
7710
7885
  handle: t
7711
- })), Se(this.onDidHandleRename, [e, t]);
7886
+ })), ve(this.onDidHandleRename, [e, t]);
7712
7887
  }
7713
7888
  return !0;
7714
7889
  }
@@ -7720,15 +7895,15 @@ var la = class {
7720
7895
  let t = i.findIndex((t) => t.handle === e);
7721
7896
  t >= 0 && this.$$.handleInputsFrom.set(i.toSpliced(t, 1));
7722
7897
  }
7723
- this.$$.showSettings.set(void 0), n.set(r.toSpliced(t, 1)), Se(this.onDidHandleDelete, e);
7898
+ this.$$.showSettings.set(void 0), n.set(r.toSpliced(t, 1)), ve(this.onDidHandleDelete, e);
7724
7899
  }
7725
7900
  }
7726
7901
  moveHandle(e, t) {
7727
7902
  let [n, r] = this.findHandleForWriting(e), i = r?.value;
7728
7903
  if (i && n >= 0) {
7729
7904
  let e = i[n];
7730
- if (Ii(e) && J(e.json_schema) != null) {
7731
- let n = i.filter((e) => !Ii(e) || J(e.json_schema) == null), a = i.filter((e) => Ii(e) && J(e.json_schema) != null), o = a.findIndex((t) => t.handle == e.handle);
7905
+ if (Ii(e) && fn(e.json_schema) != null) {
7906
+ let n = i.filter((e) => !Ii(e) || fn(e.json_schema) == null), a = i.filter((e) => Ii(e) && fn(e.json_schema) != null), o = a.findIndex((t) => t.handle == e.handle);
7732
7907
  if (o >= 0) {
7733
7908
  let e = a.splice(o, 1);
7734
7909
  a.splice(t, 0, ...e), r.set(n.concat(a));
@@ -7746,7 +7921,7 @@ var la = class {
7746
7921
  if (r >= 0) {
7747
7922
  let e = {
7748
7923
  ...n[r],
7749
- description: pt(t.description),
7924
+ description: ut(t.description),
7750
7925
  json_schema: t.json_schema,
7751
7926
  kind: t.kind,
7752
7927
  nullable: t.nullable
@@ -7762,7 +7937,7 @@ var la = class {
7762
7937
  let r = this.getInputHandleDefs$() || this.getAdditionalInputDefs$();
7763
7938
  if (r) {
7764
7939
  let i = this.$.allHandleNames.value, a = {
7765
- handle: i.includes(t.name) ? V("input", i) : t.name,
7940
+ handle: i.includes(t.name) ? G("input", i) : t.name,
7766
7941
  json_schema: t.schema$?.value,
7767
7942
  kind: t.schemaKind$?.value,
7768
7943
  nullable: t.nullable$?.value,
@@ -7788,7 +7963,7 @@ var la = class {
7788
7963
  }
7789
7964
  }
7790
7965
  deriveHandleIndices$(e) {
7791
- if (e) return a(e, (e) => e && Ke(e, (e) => Li(e) ? { group: e.group } : { handle: e.handle }), F);
7966
+ if (e) return a(e, (e) => e && He(e, (e) => Li(e) ? { group: e.group } : { handle: e.handle }), z);
7792
7967
  }
7793
7968
  deriveHandles$(e, t, n, r) {
7794
7969
  let i = this.deriveHandleIndices$(n.inputHandleDefs), o, s = c((s) => {
@@ -7804,7 +7979,7 @@ var la = class {
7804
7979
  c.push(u);
7805
7980
  continue;
7806
7981
  }
7807
- let { schema$: d, defaultValue$: f, description$: p, displayDescription$: m, kind$: h, nullable$: g, showSettings$: _, schemaOverrides$: v, value$: y } = this.deriveHandleRowVals$(n, n.inputHandleDefs, s, n.role), b = l(a(e, (e) => e?.[s], F), H(e, s)), x = l(a(t, (e) => e?.[s], F), H(t, s)), S = a(r, (e) => e.has(s)), C = new Pi({
7982
+ let { schema$: d, defaultValue$: f, description$: p, displayDescription$: m, kind$: h, nullable$: g, showSettings$: _, schemaOverrides$: v, value$: y } = this.deriveHandleRowVals$(n, n.inputHandleDefs, s, n.role), b = l(a(e, (e) => e?.[s], z), nt(e, s)), x = l(a(t, (e) => e?.[s], z), nt(t, s)), S = a(r, (e) => e.has(s)), C = new Pi({
7808
7983
  role: n.role,
7809
7984
  inout: "in",
7810
7985
  userLocales: n.userLocales
@@ -7835,7 +8010,7 @@ var la = class {
7835
8010
  o.push(s);
7836
8011
  continue;
7837
8012
  }
7838
- let c = n.role === "user" ? "author" : n.role, { schema$: u, defaultValue$: d, description$: f, displayDescription$: m, kind$: h, nullable$: g, showSettings$: _, schemaOverrides$: v, value$: y } = this.deriveHandleRowVals$(n, n.additionalInputDefs, i, c), b = l(a(e, (e) => e?.[i], F), H(e, i)), x = l(a(t, (e) => e?.[i], F), H(t, i)), S = a(r, (e) => e.has(i)), C = new Pi({
8013
+ let c = n.role === "user" ? "author" : n.role, { schema$: u, defaultValue$: d, description$: f, displayDescription$: m, kind$: h, nullable$: g, showSettings$: _, schemaOverrides$: v, value$: y } = this.deriveHandleRowVals$(n, n.additionalInputDefs, i, c), b = l(a(e, (e) => e?.[i], z), nt(e, i)), x = l(a(t, (e) => e?.[i], z), nt(t, i)), S = a(r, (e) => e.has(i)), C = new Pi({
7839
8014
  role: c,
7840
8015
  inout: "in",
7841
8016
  additional: !0,
@@ -7869,14 +8044,14 @@ var la = class {
7869
8044
  r[n >= 0 ? n : t.length] = e, i.set(r);
7870
8045
  } else i.set([e]);
7871
8046
  }
7872
- }), m = l(a(f, (e) => e?.description), U(f, "description")), h = c((e) => {
7873
- let t = e(m), i = ft(t);
7874
- return i != null && r ? _n(r, n, e, i, t) : t;
7875
- }), g = l(a(f, (e) => e?.json_schema, F), U(f, "json_schema")), _ = l(a(f, (e) => it(e?.nullable)), U(f, "nullable")), v = l(a(f, (e) => e?.kind), U(f, "kind")), y = d === "user" ? a(f, (e) => e?.value) : s(), b = l(a(e, (e) => e?.scope === "input" && e.handle === u), (t) => e.set(t ? {
8047
+ }), m = l(a(f, (e) => e?.description), K(f, "description")), h = c((e) => {
8048
+ let t = e(m), i = lt(t);
8049
+ return i != null && r ? gn(r, n, e, i, t) : t;
8050
+ }), g = l(a(f, (e) => e?.json_schema, z), K(f, "json_schema")), _ = l(a(f, (e) => et(e?.nullable)), K(f, "nullable")), v = l(a(f, (e) => e?.kind), K(f, "kind")), y = d === "user" ? a(f, (e) => e?.value) : s(), b = l(a(e, (e) => e?.scope === "input" && e.handle === u), (t) => e.set(t ? {
7876
8051
  scope: "input",
7877
8052
  handle: u
7878
8053
  } : void 0)), x;
7879
- x = t ? l(a(t, (e) => e?.find((e) => e.handle === u)?.schema_overrides?.map((e) => Object.assign({}, e, { path: Cn.get(e.path) })), F), (e) => {
8054
+ x = t ? l(a(t, (e) => e?.find((e) => e.handle === u)?.schema_overrides?.map((e) => Object.assign({}, e, { path: Sn.get(e.path) })), z), (e) => {
7880
8055
  let n = e?.map((e) => ({
7881
8056
  ...e,
7882
8057
  path: e.path.toJSON()
@@ -7894,7 +8069,7 @@ var la = class {
7894
8069
  }]);
7895
8070
  }) : l(a(f, (e) => e?.schema_overrides?.map((e) => ({
7896
8071
  ...e,
7897
- path: Cn.get(e.path)
8072
+ path: Sn.get(e.path)
7898
8073
  }))), (e) => {
7899
8074
  if (f.value) {
7900
8075
  let t = e?.map((e) => ({
@@ -7908,7 +8083,7 @@ var la = class {
7908
8083
  }
7909
8084
  });
7910
8085
  let S;
7911
- return S = t ? l(a(t, (e) => e?.find((e) => e.handle === u)?.value, F), (e) => {
8086
+ return S = t ? l(a(t, (e) => e?.find((e) => e.handle === u)?.value, z), (e) => {
7912
8087
  if (!f.value) return;
7913
8088
  let n = t.value;
7914
8089
  if (n) {
@@ -7922,7 +8097,7 @@ var la = class {
7922
8097
  handle: u,
7923
8098
  value: e
7924
8099
  }]);
7925
- }) : l(a(f, (e) => e?.value, F), U(f, "value")), {
8100
+ }) : l(a(f, (e) => e?.value, z), K(f, "value")), {
7926
8101
  schema$: g,
7927
8102
  defaultValue$: y,
7928
8103
  description$: m,
@@ -8041,4 +8216,4 @@ function ha(e) {
8041
8216
  return t;
8042
8217
  }
8043
8218
  //#endregion
8044
- export { K as $, tt as $t, Bi as A, We as At, fi as B, et as Bt, Ui as C, y as Cn, Ie as Ct, Li as D, $e as Dt, Wi as E, b as En, qe as Et, wi as F, gt as Ft, hn as G, Ue as Gt, Qr as H, Ve as Ht, Si as I, ht as It, J, H as Jt, gn as K, Pe as Kt, xi as L, vt as Lt, Pi as M, F as Mt, $ as N, Ke as Nt, Ii as O, it as Ot, Ci as P, z as Pt, Zt as Q, Je as Qt, mi as R, Fe as Rt, Hi as S, p as Sn, Ge as St, Ri as T, x as Tn, nt as Tt, Jr as U, rt as Ut, $r as V, Ne as Vt, Cn as W, lt as Wt, pn as X, I as Xt, mn as Y, ct as Yt, rn as Z, at as Zt, Zi as _, E as _n, Mt as _t, oa as a, ft as an, nn as at, Ji as b, _ as bn, Nt as bt, Ki as c, st as cn, Gt as ct, qi as d, Me as dn, G as dt, pt as en, $t as et, Yi as f, Ae as fn, Kt as ft, Xi as g, Se as gn, zt as gt, aa as h, xe as hn, At as ht, ca as i, Ze as in, on as it, Fi as j, ot as jt, zi as k, Be as kt, na as l, U as ln, sn as lt, ra as m, P as mn, kt as mt, fa as n, R as nn, Wt as nt, sa as o, ut as on, tn as ot, ta as p, ke as pn, Rt as pt, _n as q, Re as qt, la as r, Qe as rn, an as rt, $i as s, Le as sn, Vt as st, ha as t, B as tn, Ut as tt, ia as u, je as un, q as ut, Qi as v, M as vn, Pt as vt, Vi as w, g as wn, He as wt, Gi as x, h as xn, ze as xt, ea as y, w as yn, Bt as yt, pi as z, V as zt };
8219
+ export { Yt as $, Ze as $t, Bi as A, Be as At, fi as B, Xe as Bt, Ui as C, y as Cn, Me as Ct, Li as D, Ye as Dt, Wi as E, b as En, Ue as Et, wi as F, pt as Ft, mn as G, ze as Gt, Qr as H, Le as Ht, Si as I, ft as It, fn as J, nt as Jt, hn as K, Ae as Kt, xi as L, ht as Lt, Pi as M, z as Mt, $ as N, He as Nt, Ii as O, et as Ot, Ci as P, U as Pt, Jt as Q, We as Qt, mi as R, je as Rt, Hi as S, p as Sn, Ve as St, Ri as T, x as Tn, Qe as Tt, Jr as U, $e as Ut, $r as V, ke as Vt, Sn as W, ot as Wt, dn as X, B as Xt, pn as Y, at as Yt, tn as Z, tt as Zt, Zi as _, E as _n, kt as _t, oa as a, lt as an, en as at, Ji as b, _ as bn, At as bt, Ki as c, it as cn, Ht as ct, qi as d, Oe as dn, J as dt, ut as en, Zt as et, Yi as f, Ee as fn, Ut as ft, Xi as g, ve as gn, It as gt, aa as h, _e as hn, Dt as ht, ca as i, qe as in, rn as it, Fi as j, rt as jt, zi as k, Ie as kt, na as l, K as ln, an as lt, ra as m, R as mn, Et as mt, fa as n, H as nn, Vt as nt, sa as o, st as on, $t as ot, ta as p, Te as pn, Ft as pt, gn as q, Pe as qt, la as r, Je as rn, nn as rt, $i as s, Ne as sn, Rt as st, ha as t, W as tn, Bt as tt, ia as u, De as un, Y as ut, Qi as v, I as vn, jt as vt, Vi as w, g as wn, Re as wt, Gi as x, h as xn, Fe as xt, ea as y, w as yn, Lt as yt, pi as z, G as zt };