@oomol-lab/open-flow 0.1.0-alpha.9 → 0.1.0-beta.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -1
- package/dist/browser/DesignerIcon-DjgOMYI5.js +2065 -0
- package/dist/browser/createResourceDialog-DNBueSYZ.js +505 -0
- package/dist/browser/{dist-n9WmBm5w.js → dist-BKuSVKCC.js} +1 -1
- package/dist/browser/dist-BMRLCebL.js +1893 -0
- package/dist/browser/{dist-DWzdGVm9.js → dist-By46o5UV.js} +74 -74
- package/dist/browser/dist-CP0883sY.js +4 -0
- package/dist/browser/{dist-B0Q2Mn0n.js → dist-Cc0y2Pli.js} +809 -810
- package/dist/browser/dist-CeSZ2xSM.js +444 -0
- package/dist/browser/{dist-Bc9TvHYl.js → dist-Dg_VXC8f.js} +134 -135
- package/dist/browser/{dist-DhsGR_K3.js → dist-DmuE3M0R.js} +47 -48
- package/dist/browser/{dist-D5mdziGP.js → dist-DpDLsYtO.js} +18 -19
- package/dist/browser/dist-DxahK_I8.js +2688 -0
- package/dist/browser/{dist-DXgEYMFx.js → dist-meg_oHVR.js} +230 -230
- package/dist/browser/{esm-YIGXG-Js.js → esm-yhVU_KbQ.js} +14 -15
- package/dist/browser/flow-authoring-module.d.ts +2 -2
- package/dist/browser/flow-authoring-node.d.ts +9 -4
- package/dist/browser/flow-authoring.d.ts +2 -1
- package/dist/browser/flow-authoring.js +752 -162
- package/dist/browser/flow-change.d.ts +122 -13
- package/dist/browser/flow-change.js +326 -96
- package/dist/browser/flow-notifications.d.ts +5 -0
- package/dist/browser/flowChanges-B2ttnaj9.js +12265 -0
- package/dist/browser/{flowRunInputEditorStore-DXOyyY7o.js → flowRunInputEditorStore-DDidwd8h.js} +1528 -783
- package/dist/browser/{flowWorkspace-D7-rBA1-.js → flowWorkspace-Dr8-Hut9.js} +42428 -42499
- package/dist/browser/getPseudoElementBounds-5LArT6Xc.js +7147 -0
- package/dist/browser/icons-KIOgjHpD.js +730 -0
- package/dist/browser/languages-DgJehE1g.js +62 -0
- package/dist/browser/lib-C5Ipyfps.js +7856 -0
- package/dist/browser/licenses.md +119 -1
- package/dist/browser/main-DmjVyuWr.js +76 -0
- package/dist/browser/{markdownContent-ColGUxHy.js → markdownContent-DUfLdnUt.js} +4811 -4795
- package/dist/browser/theme.css +63 -0
- package/dist/browser/theme.css.d.ts +1 -0
- package/dist/browser/typeScriptSession-_TgJ_7Oq.js +2578 -0
- package/dist/browser/waitNotificationInputs-BPulOxYt.js +26 -0
- package/dist/browser/workbench-contract.d.ts +2 -1
- package/dist/browser/workbench.css +1 -1
- package/dist/browser/workbench.d.ts +47 -1
- package/dist/browser/workbench.js +1524 -1768
- package/dist/browser/workbenchSelect-CbXrdwxW.js +1375 -0
- package/dist/common/connector-action.d.ts +6 -0
- package/dist/common/connector-action.js +37 -29
- package/dist/common/control-api-conformance.d.ts +1 -0
- package/dist/common/control-api-conformance.js +171 -51
- package/dist/common/control-api-errors.d.ts +28 -0
- package/dist/common/control-api.d.ts +80 -21
- package/dist/common/control-api.js +311 -131
- package/dist/common/flow-encoding.d.ts +2 -2
- package/dist/common/flow-encoding.js +28 -9
- package/dist/common/flow-notifications.d.ts +5 -0
- package/dist/common/flow-semantics.d.ts +4 -0
- package/dist/common/flow-semantics.js +3544 -1098
- package/dist/common/integration-trigger.d.ts +1 -0
- package/dist/common/licenses.md +1 -25
- package/dist/common/localization.d.ts +21 -0
- package/dist/common/localization.js +62 -0
- package/dist/common/provider-triggers.js +4 -1
- package/dist/common/run-events.js +2 -1
- package/dist/common/run-lifecycle.d.ts +17 -2
- package/dist/common/run-lifecycle.js +53 -2
- package/dist/common/runtime-contract.d.ts +1 -1
- package/dist/common/runtime-contract.js +27 -0
- package/dist/common/scheduler.d.ts +68 -7
- package/dist/common/scheduler.js +528 -240
- package/dist/index.d.ts +2 -1
- package/package.json +10 -1
- package/dist/browser/addNodeOptions-DRndy4EK.js +0 -6910
- package/dist/browser/createLucideIcon-CqjqCezK.js +0 -5537
- package/dist/browser/createResourceDialog-A64dDFCG.js +0 -467
- package/dist/browser/dist-CUkceEvN.js +0 -1620
- package/dist/browser/dist-CVtP-E2c.js +0 -1543
- package/dist/browser/dist-DQVavPcf.js +0 -2328
- package/dist/browser/field-CKGQHCIi.js +0 -312
package/dist/browser/{flowRunInputEditorStore-DXOyyY7o.js → flowRunInputEditorStore-DDidwd8h.js}
RENAMED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { a as e, n as t, o as n, r, t as i } from "./rolldown-runtime-CEFd7nDs.js";
|
|
2
2
|
import { a, c as o, f as s, i as c, n as l, r as u, t as d, u as f } from "./dist-C46JByB-.js";
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
import { o as p, r as m } from "./languages-DgJehE1g.js";
|
|
4
|
+
import { a as h, c as g, i as _, n as v, o as y, r as b, t as x } from "./dist-CP0883sY.js";
|
|
5
|
+
//#region ../../node_modules/.bun/@wopjs+disposable@0.1.24/node_modules/@wopjs/disposable/dist/index.mjs
|
|
6
|
+
var S = (e) => !!(e && e.constructor && e.call && e.apply), C = (e) => S(e) || S(e?.dispose);
|
|
5
7
|
function w(e) {
|
|
6
8
|
try {
|
|
7
9
|
e && (S(e.dispose) ? e.dispose() : S(e) && e());
|
|
@@ -199,13 +201,13 @@ var _e = () => {
|
|
|
199
201
|
return this._ok ? this : e.Err(t.call(n, this._value));
|
|
200
202
|
}
|
|
201
203
|
transpose() {
|
|
202
|
-
return this._ok ?
|
|
204
|
+
return this._ok ? Te.isOption(this._value) ? this._value.map(e.Ok) : Te.Some(this) : Te.None;
|
|
203
205
|
}
|
|
204
206
|
ok() {
|
|
205
|
-
return this._ok ?
|
|
207
|
+
return this._ok ? Te.Some(this._value) : Te.None;
|
|
206
208
|
}
|
|
207
209
|
err() {
|
|
208
|
-
return this._ok ?
|
|
210
|
+
return this._ok ? Te.None : Te.Some(this._value);
|
|
209
211
|
}
|
|
210
212
|
unwrap(e = "called `Result.unwrap()` on an `Err`") {
|
|
211
213
|
if (this._ok) return this._value;
|
|
@@ -233,7 +235,7 @@ var _e = () => {
|
|
|
233
235
|
toString() {
|
|
234
236
|
return `${this._ok ? "Ok" : "Err"}(${this._value})`;
|
|
235
237
|
}
|
|
236
|
-
}, Ce = L.Ok, we = L.Err,
|
|
238
|
+
}, Ce = L.Ok, we = L.Err, Te = class e {
|
|
237
239
|
static Some(t) {
|
|
238
240
|
return Object.freeze(new e(t));
|
|
239
241
|
}
|
|
@@ -330,91 +332,91 @@ var _e = () => {
|
|
|
330
332
|
}
|
|
331
333
|
};
|
|
332
334
|
Array.isArray;
|
|
333
|
-
var
|
|
335
|
+
var Ee = (e) => !!e && e.constructor === Object, De = (e) => {
|
|
334
336
|
try {
|
|
335
337
|
return Number(e) === e;
|
|
336
338
|
} catch {
|
|
337
339
|
return !1;
|
|
338
340
|
}
|
|
339
|
-
},
|
|
341
|
+
}, Oe = (e) => Object.prototype.toString.call(e) === "[object Date]", ke = (e, t) => {
|
|
340
342
|
if (Object.is(e, t)) return !0;
|
|
341
343
|
if (e instanceof Date && t instanceof Date) return e.getTime() === t.getTime();
|
|
342
344
|
if (e instanceof RegExp && t instanceof RegExp) return e.toString() === t.toString();
|
|
343
345
|
if (typeof e != "object" || !e || typeof t != "object" || !t) return !1;
|
|
344
346
|
let n = Reflect.ownKeys(e), r = Reflect.ownKeys(t);
|
|
345
347
|
if (n.length !== r.length) return !1;
|
|
346
|
-
for (let r = 0; r < n.length; r++) if (!Reflect.has(t, n[r]) || !
|
|
348
|
+
for (let r = 0; r < n.length; r++) if (!Reflect.has(t, n[r]) || !ke(e[n[r]], t[n[r]])) return !1;
|
|
347
349
|
return !0;
|
|
348
|
-
},
|
|
349
|
-
function
|
|
350
|
+
}, Ae = (e) => e === "__proto__", je = (e, t, n) => t + e * (n - t), Me = (e) => e;
|
|
351
|
+
function Ne(e, t) {
|
|
350
352
|
let n = e.findIndex(t);
|
|
351
353
|
return n >= 0 ? n : e.length;
|
|
352
354
|
}
|
|
353
|
-
var
|
|
355
|
+
var R = /*#__PURE__*/ Object.freeze({ equal: ke }), Pe = {
|
|
354
356
|
true: "True",
|
|
355
357
|
false: "False"
|
|
356
358
|
};
|
|
357
|
-
function
|
|
358
|
-
var
|
|
359
|
-
function
|
|
359
|
+
function Fe() {}
|
|
360
|
+
var Ie = 2147483647;
|
|
361
|
+
function Le(e, t, n) {
|
|
360
362
|
return e < t ? t : e > n ? n : e;
|
|
361
363
|
}
|
|
362
|
-
function
|
|
364
|
+
function Re(e) {
|
|
363
365
|
return typeof e == "function";
|
|
364
366
|
}
|
|
365
|
-
function
|
|
367
|
+
function ze(e) {
|
|
366
368
|
return e == null ? [] : Array.isArray(e) ? e : [e];
|
|
367
369
|
}
|
|
368
|
-
function
|
|
370
|
+
function z(e) {
|
|
369
371
|
return Array.isArray(e) ? e : void 0;
|
|
370
372
|
}
|
|
371
|
-
function
|
|
372
|
-
return e.some(
|
|
373
|
+
function B(e) {
|
|
374
|
+
return e.some(y) ? e : void 0;
|
|
373
375
|
}
|
|
374
|
-
function
|
|
376
|
+
function Be(e) {
|
|
375
377
|
return e?.[e.length - 1];
|
|
376
378
|
}
|
|
377
|
-
function
|
|
379
|
+
function Ve(e) {
|
|
378
380
|
return e.filter((e) => e != null);
|
|
379
381
|
}
|
|
380
|
-
var
|
|
381
|
-
function
|
|
382
|
+
var He = Symbol("Negative");
|
|
383
|
+
function Ue(e, t, n) {
|
|
382
384
|
let r = [];
|
|
383
385
|
for (let i = 0; i < e.length; i++) {
|
|
384
386
|
let a = t.call(n, e[i], i);
|
|
385
|
-
a !==
|
|
387
|
+
a !== He && r.push(a);
|
|
386
388
|
}
|
|
387
389
|
return r;
|
|
388
390
|
}
|
|
389
|
-
function
|
|
390
|
-
return
|
|
391
|
+
function We(e) {
|
|
392
|
+
return _(e) ? e : {};
|
|
391
393
|
}
|
|
392
|
-
function
|
|
393
|
-
if (
|
|
394
|
+
function V(e) {
|
|
395
|
+
if (_(e)) return e;
|
|
394
396
|
}
|
|
395
|
-
function
|
|
396
|
-
if (
|
|
397
|
-
for (let t of Object.values(e)) if (
|
|
397
|
+
function Ge(e) {
|
|
398
|
+
if (_(e)) {
|
|
399
|
+
for (let t of Object.values(e)) if (b(t)) return e;
|
|
398
400
|
}
|
|
399
401
|
}
|
|
400
|
-
function
|
|
401
|
-
if (
|
|
402
|
+
function Ke(e, t) {
|
|
403
|
+
if (_(e)) {
|
|
402
404
|
let n = !1, r = {};
|
|
403
405
|
for (let [i, a] of Object.entries(e)) t(a) && (n = !0, r[i] = a);
|
|
404
406
|
if (n) return r;
|
|
405
407
|
}
|
|
406
408
|
}
|
|
407
|
-
function Ke(e) {
|
|
408
|
-
return e === !0;
|
|
409
|
-
}
|
|
410
409
|
function qe(e) {
|
|
411
|
-
return e === !0
|
|
410
|
+
return e === !0;
|
|
412
411
|
}
|
|
413
412
|
function Je(e) {
|
|
414
|
-
return
|
|
413
|
+
return e === !0 || void 0;
|
|
415
414
|
}
|
|
416
415
|
function Ye(e) {
|
|
417
|
-
|
|
416
|
+
return Ke(e, qe);
|
|
417
|
+
}
|
|
418
|
+
function Xe(e) {
|
|
419
|
+
if (h(e)) return e;
|
|
418
420
|
if (e == null) return "";
|
|
419
421
|
try {
|
|
420
422
|
return JSON.stringify(e);
|
|
@@ -426,7 +428,7 @@ function Ye(e) {
|
|
|
426
428
|
}
|
|
427
429
|
}
|
|
428
430
|
}
|
|
429
|
-
function
|
|
431
|
+
function Ze(e) {
|
|
430
432
|
if (e === void 0) return "undefined";
|
|
431
433
|
try {
|
|
432
434
|
return JSON.stringify(e);
|
|
@@ -438,29 +440,29 @@ function Xe(e) {
|
|
|
438
440
|
}
|
|
439
441
|
}
|
|
440
442
|
}
|
|
441
|
-
function
|
|
442
|
-
return
|
|
443
|
+
function H(e) {
|
|
444
|
+
return h(e) ? e : void 0;
|
|
443
445
|
}
|
|
444
|
-
function
|
|
445
|
-
return e &&
|
|
446
|
+
function Qe(e) {
|
|
447
|
+
return e && h(e) ? e : void 0;
|
|
446
448
|
}
|
|
447
|
-
function
|
|
449
|
+
function $e(e, t) {
|
|
448
450
|
let n = Number(e);
|
|
449
451
|
return Number.isFinite(n) ? t ? Math.floor(n) : n : 0;
|
|
450
452
|
}
|
|
451
|
-
function
|
|
452
|
-
return
|
|
453
|
-
}
|
|
454
|
-
function $e(e) {
|
|
455
|
-
return Ee(e) && e > 0;
|
|
453
|
+
function U(e) {
|
|
454
|
+
return De(e) ? e : void 0;
|
|
456
455
|
}
|
|
457
456
|
function et(e) {
|
|
458
|
-
return
|
|
457
|
+
return De(e) && e > 0;
|
|
459
458
|
}
|
|
460
459
|
function tt(e) {
|
|
461
|
-
return
|
|
460
|
+
return v(e) ? e : !1;
|
|
461
|
+
}
|
|
462
|
+
function nt(e) {
|
|
463
|
+
return v(e) ? e : void 0;
|
|
462
464
|
}
|
|
463
|
-
function
|
|
465
|
+
function rt(e, t) {
|
|
464
466
|
let n = 0;
|
|
465
467
|
for (let r of t) if (r.startsWith(e)) {
|
|
466
468
|
if (r === e) {
|
|
@@ -472,7 +474,7 @@ function G(e, t) {
|
|
|
472
474
|
}
|
|
473
475
|
return n === 0 ? e : `${e}${n + 1}`;
|
|
474
476
|
}
|
|
475
|
-
function
|
|
477
|
+
function it(e, t, n = Object.is) {
|
|
476
478
|
return (r) => {
|
|
477
479
|
n(e.value?.[t], r) || e.set({
|
|
478
480
|
...e.value,
|
|
@@ -480,7 +482,7 @@ function nt(e, t, n = Object.is) {
|
|
|
480
482
|
});
|
|
481
483
|
};
|
|
482
484
|
}
|
|
483
|
-
function
|
|
485
|
+
function W(e, t, n = Object.is) {
|
|
484
486
|
return (r) => {
|
|
485
487
|
e.value && !n(e.value[t], r) && e.set({
|
|
486
488
|
...e.value,
|
|
@@ -488,64 +490,64 @@ function K(e, t, n = Object.is) {
|
|
|
488
490
|
});
|
|
489
491
|
};
|
|
490
492
|
}
|
|
491
|
-
function
|
|
493
|
+
function at(e, t, n) {
|
|
492
494
|
for (let n = 0; n < t.length; n++) e = e ? e[t[n]] : void 0;
|
|
493
495
|
return e === void 0 ? n : e;
|
|
494
496
|
}
|
|
495
|
-
function
|
|
497
|
+
function ot(e) {
|
|
496
498
|
try {
|
|
497
499
|
return Ce(JSON.parse(e));
|
|
498
500
|
} catch (e) {
|
|
499
501
|
return we(e + "");
|
|
500
502
|
}
|
|
501
503
|
}
|
|
502
|
-
function
|
|
504
|
+
function st(e) {
|
|
503
505
|
try {
|
|
504
506
|
return JSON.stringify(e, null, 2);
|
|
505
507
|
} catch (e) {
|
|
506
508
|
return console.warn(e), "{}";
|
|
507
509
|
}
|
|
508
510
|
}
|
|
509
|
-
function
|
|
511
|
+
function ct(e) {
|
|
510
512
|
return !!e && (e.startsWith("self::") || e.startsWith("./") || e.startsWith("../"));
|
|
511
513
|
}
|
|
512
|
-
function
|
|
514
|
+
function lt(e) {
|
|
513
515
|
return e ? () => e.set(!e.value) : void 0;
|
|
514
516
|
}
|
|
515
|
-
function
|
|
517
|
+
function ut(e) {
|
|
516
518
|
return !!e && e.startsWith("%") && e.endsWith("%") && e.length > 2;
|
|
517
519
|
}
|
|
518
|
-
function
|
|
519
|
-
return
|
|
520
|
+
function dt(e) {
|
|
521
|
+
return ut(e) ? e.slice(1, -1) : void 0;
|
|
520
522
|
}
|
|
521
|
-
function
|
|
522
|
-
return
|
|
523
|
+
function ft(e) {
|
|
524
|
+
return ut(e) ? void 0 : e;
|
|
523
525
|
}
|
|
524
|
-
var
|
|
525
|
-
function
|
|
526
|
-
let n = e?.toLowerCase().replace(/[^a-z0-9_]+/g, "-").replace(/^-+/, "").slice(0,
|
|
527
|
-
if (n && !
|
|
526
|
+
var pt = 64;
|
|
527
|
+
function mt(e, t) {
|
|
528
|
+
let n = e?.toLowerCase().replace(/[^a-z0-9_]+/g, "-").replace(/^-+/, "").slice(0, pt).replace(/-+$/, "");
|
|
529
|
+
if (n && !Ae(n)) {
|
|
528
530
|
let e = n, r = 1;
|
|
529
531
|
for (; t[e] != null;) e = `${n}${r++}`;
|
|
530
532
|
return e;
|
|
531
533
|
}
|
|
532
534
|
for (let e = 1;; e++) if (n = `key${e}`, t[n] == null) return n;
|
|
533
535
|
}
|
|
534
|
-
function
|
|
535
|
-
|
|
536
|
+
function ht(e, t) {
|
|
537
|
+
Ae(e) && (e = "_" + e);
|
|
536
538
|
let n = e, r = 1;
|
|
537
539
|
for (; t[n] != null;) n = `${e}${r++}`;
|
|
538
540
|
return n;
|
|
539
541
|
}
|
|
540
|
-
function
|
|
542
|
+
function gt(e) {
|
|
541
543
|
return /^[\x09\x0A\x0D\x20-\x7E]+$/.test(e);
|
|
542
544
|
}
|
|
543
|
-
function
|
|
545
|
+
function _t(e, t) {
|
|
544
546
|
return Object.hasOwn(e, t) ? e[t] : void 0;
|
|
545
547
|
}
|
|
546
548
|
//#endregion
|
|
547
549
|
//#region ../../node_modules/.bun/dayjs@1.11.23/node_modules/dayjs/dayjs.min.js
|
|
548
|
-
var
|
|
550
|
+
var vt = /* @__PURE__ */ i(((e, t) => {
|
|
549
551
|
(function(n, r) {
|
|
550
552
|
typeof e == "object" && t !== void 0 ? t.exports = r() : typeof define == "function" && define.amd ? define(r) : (n = typeof globalThis < "u" ? globalThis : n || self).dayjs = r();
|
|
551
553
|
})(e, (function() {
|
|
@@ -839,7 +841,7 @@ var gt = /* @__PURE__ */ i(((e, t) => {
|
|
|
839
841
|
return w(1e3 * e);
|
|
840
842
|
}, w.en = b[y], w.Ls = b, w.p = {}, w;
|
|
841
843
|
}));
|
|
842
|
-
})),
|
|
844
|
+
})), yt = /* @__PURE__ */ i(((e, t) => {
|
|
843
845
|
(function(n, r) {
|
|
844
846
|
typeof e == "object" && t !== void 0 ? t.exports = r() : typeof define == "function" && define.amd ? define(r) : (n = typeof globalThis < "u" ? globalThis : n || self).dayjs_plugin_customParseFormat = r();
|
|
845
847
|
})(e, (function() {
|
|
@@ -995,7 +997,7 @@ var gt = /* @__PURE__ */ i(((e, t) => {
|
|
|
995
997
|
};
|
|
996
998
|
};
|
|
997
999
|
}));
|
|
998
|
-
})),
|
|
1000
|
+
})), bt = /* @__PURE__ */ i(((e, t) => {
|
|
999
1001
|
(function(n, r) {
|
|
1000
1002
|
typeof e == "object" && t !== void 0 ? t.exports = r() : typeof define == "function" && define.amd ? define(r) : (n = typeof globalThis < "u" ? globalThis : n || self).dayjs_plugin_localeData = r();
|
|
1001
1003
|
})(e, (function() {
|
|
@@ -1089,7 +1091,7 @@ var gt = /* @__PURE__ */ i(((e, t) => {
|
|
|
1089
1091
|
};
|
|
1090
1092
|
};
|
|
1091
1093
|
}));
|
|
1092
|
-
})),
|
|
1094
|
+
})), xt = /* @__PURE__ */ i(((e, t) => {
|
|
1093
1095
|
(function(n, r) {
|
|
1094
1096
|
typeof e == "object" && t !== void 0 ? t.exports = r() : typeof define == "function" && define.amd ? define(r) : (n = typeof globalThis < "u" ? globalThis : n || self).dayjs_plugin_weekday = r();
|
|
1095
1097
|
})(e, (function() {
|
|
@@ -1100,76 +1102,66 @@ var gt = /* @__PURE__ */ i(((e, t) => {
|
|
|
1100
1102
|
};
|
|
1101
1103
|
};
|
|
1102
1104
|
}));
|
|
1103
|
-
})),
|
|
1104
|
-
|
|
1105
|
-
var
|
|
1105
|
+
})), St = /* @__PURE__ */ n(vt(), 1), Ct = /* @__PURE__ */ n(yt(), 1), wt = /* @__PURE__ */ n(bt(), 1), Tt = /* @__PURE__ */ n(xt(), 1);
|
|
1106
|
+
St.default.extend(Tt.default), St.default.extend(wt.default), St.default.extend(Ct.default);
|
|
1107
|
+
var Et = [
|
|
1106
1108
|
"date",
|
|
1107
1109
|
"time",
|
|
1108
1110
|
"date-time"
|
|
1109
1111
|
];
|
|
1110
|
-
function
|
|
1111
|
-
return
|
|
1112
|
+
function Dt(e) {
|
|
1113
|
+
return Et.includes(e);
|
|
1112
1114
|
}
|
|
1113
|
-
function
|
|
1114
|
-
let t = (0,
|
|
1115
|
+
function Ot(e) {
|
|
1116
|
+
let t = (0, St.default)(e);
|
|
1115
1117
|
return t.isValid() ? t.toDate() : /* @__PURE__ */ new Date();
|
|
1116
1118
|
}
|
|
1117
|
-
function
|
|
1118
|
-
return
|
|
1119
|
+
function kt(e) {
|
|
1120
|
+
return Et.includes(e) ? e : At;
|
|
1119
1121
|
}
|
|
1120
|
-
var
|
|
1121
|
-
function
|
|
1122
|
-
return
|
|
1122
|
+
var At = "date-time", jt = /*#__PURE__*/ Et.map((e) => ({ value: e }));
|
|
1123
|
+
function Mt(e) {
|
|
1124
|
+
return jt.find((t) => t.value === e);
|
|
1123
1125
|
}
|
|
1124
|
-
function
|
|
1125
|
-
return (0,
|
|
1126
|
+
function Nt(e, t = At) {
|
|
1127
|
+
return (0, St.default)(e).format(Pt(t));
|
|
1126
1128
|
}
|
|
1127
|
-
function
|
|
1129
|
+
function Pt(e) {
|
|
1128
1130
|
switch (e) {
|
|
1129
1131
|
case "date": return "YYYY-MM-DD";
|
|
1130
1132
|
case "time": return "HH:mm:ssZ";
|
|
1131
1133
|
case "date-time": return "YYYY-MM-DDTHH:mm:ssZ";
|
|
1132
1134
|
}
|
|
1133
1135
|
}
|
|
1134
|
-
var
|
|
1136
|
+
var Ft = [
|
|
1135
1137
|
"RGB",
|
|
1136
1138
|
"HSV",
|
|
1137
1139
|
"HEX",
|
|
1138
1140
|
"HEX8"
|
|
1139
1141
|
];
|
|
1140
|
-
function
|
|
1141
|
-
return
|
|
1142
|
+
function It(e) {
|
|
1143
|
+
return Ft.includes(e);
|
|
1142
1144
|
}
|
|
1143
|
-
function Ft(e) {
|
|
1144
|
-
return Pt(e) ? e : "HEX";
|
|
1145
|
-
}
|
|
1146
|
-
var It = /*#__PURE__*/ Nt.map((e) => ({ value: e }));
|
|
1147
1145
|
function Lt(e) {
|
|
1148
|
-
return It
|
|
1146
|
+
return It(e) ? e : "HEX";
|
|
1147
|
+
}
|
|
1148
|
+
var Rt = /*#__PURE__*/ Ft.map((e) => ({ value: e }));
|
|
1149
|
+
function zt(e) {
|
|
1150
|
+
return Rt.find((t) => t.value === e);
|
|
1149
1151
|
}
|
|
1150
1152
|
//#endregion
|
|
1151
1153
|
//#region src/designer/browser/jsonSchema/preset.ts
|
|
1152
|
-
var
|
|
1154
|
+
var G = {
|
|
1153
1155
|
string: {
|
|
1154
1156
|
icon: "i-carbon:quotes",
|
|
1155
1157
|
value: "string",
|
|
1156
1158
|
label: "String"
|
|
1157
1159
|
},
|
|
1158
|
-
variable: {
|
|
1159
|
-
icon: "i-carbon:value-variable",
|
|
1160
|
-
value: "variable",
|
|
1161
|
-
label: "Variable"
|
|
1162
|
-
},
|
|
1163
1160
|
number: {
|
|
1164
1161
|
icon: "i-carbon:number-0",
|
|
1165
1162
|
value: "number",
|
|
1166
1163
|
label: "Number"
|
|
1167
1164
|
},
|
|
1168
|
-
secret: {
|
|
1169
|
-
icon: "i-codicon:key",
|
|
1170
|
-
value: "secret",
|
|
1171
|
-
label: "Secret"
|
|
1172
|
-
},
|
|
1173
1165
|
boolean: {
|
|
1174
1166
|
icon: "i-carbon:boolean",
|
|
1175
1167
|
value: "boolean",
|
|
@@ -1240,12 +1232,17 @@ var q = {
|
|
|
1240
1232
|
value: "binary",
|
|
1241
1233
|
label: "Binary"
|
|
1242
1234
|
},
|
|
1235
|
+
literal: {
|
|
1236
|
+
icon: "i-carbon:code",
|
|
1237
|
+
value: "literal",
|
|
1238
|
+
label: "Literal"
|
|
1239
|
+
},
|
|
1243
1240
|
null: {
|
|
1244
1241
|
icon: "i-carbon:null-sign",
|
|
1245
1242
|
value: "null",
|
|
1246
1243
|
label: "Null"
|
|
1247
1244
|
}
|
|
1248
|
-
},
|
|
1245
|
+
}, Bt = (e) => Object.hasOwn(G, e), Vt = {
|
|
1249
1246
|
close: "i-codicon:close",
|
|
1250
1247
|
gotoFile: "i-codicon:go-to-file",
|
|
1251
1248
|
objectAdd: "i-carbon:add-alt",
|
|
@@ -1253,49 +1250,47 @@ var q = {
|
|
|
1253
1250
|
package: "i-codicon:package",
|
|
1254
1251
|
settings: "i-codicon:gear",
|
|
1255
1252
|
tool: "i-codicon:symbol-property"
|
|
1256
|
-
},
|
|
1257
|
-
let n =
|
|
1253
|
+
}, Ht = (e) => Bt(e) ? G[e].icon : Vt[e], Ut = (e) => Ht(J(e)), Wt = (e, t) => {
|
|
1254
|
+
let n = G[t];
|
|
1258
1255
|
return {
|
|
1259
1256
|
...n,
|
|
1260
1257
|
label: e(`preset.${n.value}`)
|
|
1261
1258
|
};
|
|
1262
|
-
},
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
q.object,
|
|
1272
|
-
q.array,
|
|
1259
|
+
}, Gt = (e, t) => Ue([
|
|
1260
|
+
G.string,
|
|
1261
|
+
G.number,
|
|
1262
|
+
G.boolean,
|
|
1263
|
+
G.integer,
|
|
1264
|
+
G.color,
|
|
1265
|
+
G.text,
|
|
1266
|
+
G.object,
|
|
1267
|
+
G.array,
|
|
1273
1268
|
{
|
|
1274
1269
|
icon: "i-carbon:checkbox-checked",
|
|
1275
1270
|
label: "Select",
|
|
1276
1271
|
value: "select",
|
|
1277
|
-
options: [
|
|
1272
|
+
options: [G.select, G.multiSelect]
|
|
1278
1273
|
},
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1274
|
+
G.date,
|
|
1275
|
+
G.any,
|
|
1276
|
+
G.binary,
|
|
1277
|
+
G.null,
|
|
1283
1278
|
{
|
|
1284
1279
|
icon: "i-carbon:branch",
|
|
1285
1280
|
label: "Applicators",
|
|
1286
1281
|
value: "applicators",
|
|
1287
1282
|
options: [
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1283
|
+
G.anyOf,
|
|
1284
|
+
G.allOf,
|
|
1285
|
+
G.oneOf
|
|
1291
1286
|
]
|
|
1292
1287
|
}
|
|
1293
1288
|
], (n) => {
|
|
1294
|
-
if (
|
|
1295
|
-
let r =
|
|
1289
|
+
if (Kt(n)) {
|
|
1290
|
+
let r = Ue(n.options, (n) => t(n.value) ? {
|
|
1296
1291
|
...n,
|
|
1297
1292
|
label: e(`preset.${n.value}`)
|
|
1298
|
-
} :
|
|
1293
|
+
} : He);
|
|
1299
1294
|
if (r.length > 0) return {
|
|
1300
1295
|
...n,
|
|
1301
1296
|
label: e(`preset.${n.label}`),
|
|
@@ -1305,18 +1300,10 @@ var q = {
|
|
|
1305
1300
|
...n,
|
|
1306
1301
|
label: e(`preset.${n.value}`)
|
|
1307
1302
|
};
|
|
1308
|
-
return
|
|
1309
|
-
}),
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
variable: "oomol/var"
|
|
1313
|
-
}, qt = {
|
|
1314
|
-
secret: {
|
|
1315
|
-
contentMediaType: Kt.secret,
|
|
1316
|
-
type: "string"
|
|
1317
|
-
},
|
|
1318
|
-
binary: { contentMediaType: Kt.binary },
|
|
1319
|
-
variable: { contentMediaType: Kt.variable },
|
|
1303
|
+
return He;
|
|
1304
|
+
}), Kt = (e) => "options" in e, qt = "ui:widget", K = "ui:options", Jt = { binary: "oomol/bin" }, Yt = {
|
|
1305
|
+
binary: { contentMediaType: Jt.binary },
|
|
1306
|
+
literal: {},
|
|
1320
1307
|
any: {},
|
|
1321
1308
|
null: { type: "null" },
|
|
1322
1309
|
boolean: { type: "boolean" },
|
|
@@ -1329,16 +1316,16 @@ var q = {
|
|
|
1329
1316
|
},
|
|
1330
1317
|
color: {
|
|
1331
1318
|
type: "string",
|
|
1332
|
-
[
|
|
1333
|
-
[
|
|
1319
|
+
[qt]: "color",
|
|
1320
|
+
[K]: { colorType: "HEX" }
|
|
1334
1321
|
},
|
|
1335
1322
|
text: {
|
|
1336
1323
|
type: "string",
|
|
1337
|
-
[
|
|
1324
|
+
[qt]: "text"
|
|
1338
1325
|
},
|
|
1339
1326
|
select: {
|
|
1340
1327
|
enum: [],
|
|
1341
|
-
[
|
|
1328
|
+
[K]: {
|
|
1342
1329
|
labels: [],
|
|
1343
1330
|
types: void 0
|
|
1344
1331
|
}
|
|
@@ -1347,7 +1334,7 @@ var q = {
|
|
|
1347
1334
|
type: "array",
|
|
1348
1335
|
uniqueItems: !0,
|
|
1349
1336
|
items: { enum: [] },
|
|
1350
|
-
[
|
|
1337
|
+
[K]: {
|
|
1351
1338
|
labels: [],
|
|
1352
1339
|
types: void 0
|
|
1353
1340
|
}
|
|
@@ -1360,22 +1347,22 @@ var q = {
|
|
|
1360
1347
|
},
|
|
1361
1348
|
anyOf: {
|
|
1362
1349
|
anyOf: [],
|
|
1363
|
-
[
|
|
1350
|
+
[K]: { labels: [] }
|
|
1364
1351
|
},
|
|
1365
1352
|
oneOf: {
|
|
1366
1353
|
oneOf: [],
|
|
1367
|
-
[
|
|
1354
|
+
[K]: { labels: [] }
|
|
1368
1355
|
},
|
|
1369
1356
|
allOf: {
|
|
1370
1357
|
allOf: [],
|
|
1371
|
-
[
|
|
1358
|
+
[K]: { labels: [] }
|
|
1372
1359
|
}
|
|
1373
1360
|
};
|
|
1374
|
-
function
|
|
1375
|
-
let n = structuredClone(
|
|
1376
|
-
return t &&
|
|
1361
|
+
function Xt(e, t) {
|
|
1362
|
+
let n = structuredClone(Yt[e]);
|
|
1363
|
+
return t && sn(n, t), n;
|
|
1377
1364
|
}
|
|
1378
|
-
function
|
|
1365
|
+
function q(e) {
|
|
1379
1366
|
if (e && e.length > 0) {
|
|
1380
1367
|
let t;
|
|
1381
1368
|
for (let n of e) {
|
|
@@ -1383,11 +1370,11 @@ function Yt(e) {
|
|
|
1383
1370
|
let e = n.json_schema;
|
|
1384
1371
|
e && (t = e);
|
|
1385
1372
|
}
|
|
1386
|
-
return t ||
|
|
1373
|
+
return t || Xt("any");
|
|
1387
1374
|
}
|
|
1388
|
-
return
|
|
1375
|
+
return Xt("any");
|
|
1389
1376
|
}
|
|
1390
|
-
var
|
|
1377
|
+
var Zt = {
|
|
1391
1378
|
null: null,
|
|
1392
1379
|
boolean: !1,
|
|
1393
1380
|
integer: 0,
|
|
@@ -1395,11 +1382,11 @@ var Xt = {
|
|
|
1395
1382
|
string: "",
|
|
1396
1383
|
color: "#7d7fe9",
|
|
1397
1384
|
select: (e) => {
|
|
1398
|
-
let t =
|
|
1385
|
+
let t = ze(e?.enum)?.[0];
|
|
1399
1386
|
return t === void 0 ? null : t;
|
|
1400
1387
|
},
|
|
1401
1388
|
multiSelect: [],
|
|
1402
|
-
date: (e) =>
|
|
1389
|
+
date: (e) => Nt(/* @__PURE__ */ new Date(), kt(e?.format)),
|
|
1403
1390
|
text: "",
|
|
1404
1391
|
any: void 0,
|
|
1405
1392
|
object: {},
|
|
@@ -1407,26 +1394,24 @@ var Xt = {
|
|
|
1407
1394
|
anyOf: void 0,
|
|
1408
1395
|
allOf: void 0,
|
|
1409
1396
|
oneOf: void 0,
|
|
1410
|
-
secret: "",
|
|
1411
1397
|
binary: void 0,
|
|
1412
|
-
|
|
1398
|
+
literal: (e) => e?.const
|
|
1413
1399
|
};
|
|
1414
|
-
function
|
|
1415
|
-
let n =
|
|
1416
|
-
return
|
|
1400
|
+
function Qt(e, t) {
|
|
1401
|
+
let n = Zt[e];
|
|
1402
|
+
return Re(n) ? n(t) : n;
|
|
1417
1403
|
}
|
|
1418
|
-
function
|
|
1404
|
+
function J(e) {
|
|
1419
1405
|
let t = e;
|
|
1420
1406
|
if (!t) return "any";
|
|
1421
1407
|
switch (t.contentMediaType) {
|
|
1422
|
-
case
|
|
1423
|
-
case qt.binary.contentMediaType: return "binary";
|
|
1424
|
-
case qt.variable.contentMediaType: return "variable";
|
|
1408
|
+
case Yt.binary.contentMediaType: return "binary";
|
|
1425
1409
|
}
|
|
1426
|
-
if (t["ui:widget"] &&
|
|
1410
|
+
if (t["ui:widget"] && Bt(t["ui:widget"])) return t[qt];
|
|
1427
1411
|
if (t.anyOf) return "anyOf";
|
|
1428
1412
|
if (t.oneOf) return "oneOf";
|
|
1429
1413
|
if (t.allOf) return "any";
|
|
1414
|
+
if (Object.hasOwn(t, "const")) return "literal";
|
|
1430
1415
|
if (t.enum) return "select";
|
|
1431
1416
|
switch (t.type) {
|
|
1432
1417
|
case "null":
|
|
@@ -1435,26 +1420,25 @@ function Y(e) {
|
|
|
1435
1420
|
case "number":
|
|
1436
1421
|
case "object": return t.type;
|
|
1437
1422
|
case "array": return t.uniqueItems ? "multiSelect" : "array";
|
|
1438
|
-
case "string": return
|
|
1423
|
+
case "string": return Dt(t.format) ? "date" : "string";
|
|
1439
1424
|
default: return "any";
|
|
1440
1425
|
}
|
|
1441
1426
|
}
|
|
1442
|
-
function Qt(e) {
|
|
1443
|
-
return e === "any" || e === "variable";
|
|
1444
|
-
}
|
|
1445
1427
|
function $t(e) {
|
|
1446
|
-
return e
|
|
1428
|
+
return e == "any";
|
|
1447
1429
|
}
|
|
1448
1430
|
function en(e) {
|
|
1449
|
-
return
|
|
1431
|
+
return e == "any" || e == "anyOf" || e == "oneOf" || e == "allOf";
|
|
1450
1432
|
}
|
|
1451
1433
|
function tn(e) {
|
|
1434
|
+
return !en(e) && e !== "binary";
|
|
1435
|
+
}
|
|
1436
|
+
function nn(e) {
|
|
1452
1437
|
switch (e) {
|
|
1453
1438
|
case "string":
|
|
1454
1439
|
case "text":
|
|
1455
1440
|
case "color":
|
|
1456
|
-
case "date":
|
|
1457
|
-
case "secret": return "string";
|
|
1441
|
+
case "date": return "string";
|
|
1458
1442
|
case "number":
|
|
1459
1443
|
case "integer": return "number";
|
|
1460
1444
|
case "boolean": return "boolean";
|
|
@@ -1464,12 +1448,12 @@ function tn(e) {
|
|
|
1464
1448
|
case "array": return "array";
|
|
1465
1449
|
}
|
|
1466
1450
|
}
|
|
1467
|
-
function
|
|
1451
|
+
function rn(e) {
|
|
1468
1452
|
if (e === null) return "null";
|
|
1469
1453
|
let t = typeof e;
|
|
1470
1454
|
return t === "object" && Array.isArray(e) ? "array" : t;
|
|
1471
1455
|
}
|
|
1472
|
-
function
|
|
1456
|
+
function an(e) {
|
|
1473
1457
|
switch (e) {
|
|
1474
1458
|
case "string":
|
|
1475
1459
|
case "number":
|
|
@@ -1480,97 +1464,110 @@ function rn(e) {
|
|
|
1480
1464
|
default: return "any";
|
|
1481
1465
|
}
|
|
1482
1466
|
}
|
|
1483
|
-
function
|
|
1484
|
-
let t =
|
|
1467
|
+
function on(e) {
|
|
1468
|
+
let t = J(e);
|
|
1485
1469
|
if (t === "anyOf" || t === "oneOf" || t === "allOf") return (e[t]?.length ?? 0) || 1;
|
|
1486
1470
|
if (t === "string") return 4;
|
|
1487
|
-
if (t === "variable") return 0;
|
|
1488
1471
|
if (t === "array") return 3;
|
|
1489
1472
|
if (t === "color" || t === "date") return 1;
|
|
1490
1473
|
if (t === "integer" || t === "number") return 5;
|
|
1491
1474
|
if (t === "object") {
|
|
1492
|
-
let t =
|
|
1475
|
+
let t = V(e.properties);
|
|
1493
1476
|
return (t ? Object.keys(t).length : 1) + 1;
|
|
1494
1477
|
}
|
|
1495
1478
|
if (t === "select") {
|
|
1496
|
-
let t =
|
|
1479
|
+
let t = z(e.enum)?.length ?? 0;
|
|
1497
1480
|
return t ? t * 2 : 1;
|
|
1498
1481
|
}
|
|
1499
1482
|
if (t === "multiSelect") {
|
|
1500
|
-
let t =
|
|
1483
|
+
let t = z(V(e.items)?.enum)?.length ?? 0;
|
|
1501
1484
|
return t ? t * 2 : 1;
|
|
1502
1485
|
}
|
|
1503
1486
|
return 0;
|
|
1504
1487
|
}
|
|
1505
|
-
function
|
|
1506
|
-
let n =
|
|
1507
|
-
n &&
|
|
1488
|
+
function sn(e, t) {
|
|
1489
|
+
let n = cn(t);
|
|
1490
|
+
n && dn(e, n);
|
|
1508
1491
|
}
|
|
1509
|
-
function
|
|
1510
|
-
switch (
|
|
1511
|
-
case "select": return
|
|
1512
|
-
case "multiSelect": return
|
|
1492
|
+
function cn(e) {
|
|
1493
|
+
switch (J(e)) {
|
|
1494
|
+
case "select": return ln(e.enum, e[K]?.labels);
|
|
1495
|
+
case "multiSelect": return ln(V(e.items)?.enum, e[K]?.labels);
|
|
1513
1496
|
}
|
|
1514
1497
|
}
|
|
1515
|
-
function
|
|
1516
|
-
if (
|
|
1498
|
+
function ln(e, t) {
|
|
1499
|
+
if (un(e) && e.length > 0) return {
|
|
1517
1500
|
enum: e,
|
|
1518
|
-
labels:
|
|
1501
|
+
labels: un(t) ? t : void 0
|
|
1519
1502
|
};
|
|
1520
1503
|
}
|
|
1521
|
-
function
|
|
1522
|
-
return
|
|
1504
|
+
function un(e) {
|
|
1505
|
+
return x(e);
|
|
1523
1506
|
}
|
|
1524
|
-
function
|
|
1525
|
-
switch (
|
|
1507
|
+
function dn(e, t) {
|
|
1508
|
+
switch (J(e)) {
|
|
1526
1509
|
case "select":
|
|
1527
|
-
e.enum = t.enum, e[
|
|
1528
|
-
...
|
|
1510
|
+
e.enum = t.enum, e[K] = {
|
|
1511
|
+
...V(e[K]),
|
|
1529
1512
|
labels: t.labels ?? []
|
|
1530
1513
|
};
|
|
1531
1514
|
break;
|
|
1532
1515
|
case "multiSelect": e.items = {
|
|
1533
|
-
...
|
|
1516
|
+
...V(e.items),
|
|
1534
1517
|
enum: t.enum
|
|
1535
|
-
}, e[
|
|
1536
|
-
...
|
|
1518
|
+
}, e[K] = {
|
|
1519
|
+
...V(e[K]),
|
|
1537
1520
|
labels: t.labels ?? []
|
|
1538
1521
|
};
|
|
1539
1522
|
}
|
|
1540
1523
|
}
|
|
1541
1524
|
//#endregion
|
|
1542
1525
|
//#region src/base/common/type.ts
|
|
1543
|
-
function
|
|
1544
|
-
return
|
|
1526
|
+
function fn(e) {
|
|
1527
|
+
return _(e);
|
|
1545
1528
|
}
|
|
1546
1529
|
//#endregion
|
|
1547
1530
|
//#region src/designer/browser/llm/widget.ts
|
|
1548
|
-
function
|
|
1549
|
-
if (!
|
|
1531
|
+
function pn(e) {
|
|
1532
|
+
if (!fn(e)) return;
|
|
1550
1533
|
let t = e["ui:widget"];
|
|
1551
1534
|
if (t == "llm/messages") return "llm/messages";
|
|
1552
1535
|
if (t == "llm/model") return "llm/model";
|
|
1553
1536
|
}
|
|
1554
|
-
function
|
|
1555
|
-
if (!
|
|
1537
|
+
function mn(e) {
|
|
1538
|
+
if (!fn(e)) return;
|
|
1556
1539
|
let t = e["ui:options"];
|
|
1557
|
-
if (
|
|
1540
|
+
if (fn(t)) return typeof t.title == "string" && t.title.length > 0 ? t.title : void 0;
|
|
1541
|
+
}
|
|
1542
|
+
//#endregion
|
|
1543
|
+
//#region src/localization/common/localization.ts
|
|
1544
|
+
function hn(e, t) {
|
|
1545
|
+
let n = [];
|
|
1546
|
+
for (let r of p(t)) {
|
|
1547
|
+
let t = e[r];
|
|
1548
|
+
t != null && n.push(t);
|
|
1549
|
+
}
|
|
1550
|
+
return n;
|
|
1558
1551
|
}
|
|
1559
1552
|
//#endregion
|
|
1560
1553
|
//#region src/designer/browser/stores/designer/l10n.ts
|
|
1561
|
-
function
|
|
1554
|
+
function gn(e) {
|
|
1562
1555
|
return e === "en" ? "zh-CN" : "en";
|
|
1563
1556
|
}
|
|
1564
|
-
function
|
|
1565
|
-
return n &&
|
|
1557
|
+
function _n(e, t, n) {
|
|
1558
|
+
return n && gt(n) ? e.en : hn(e, t)[0] ?? e.en;
|
|
1566
1559
|
}
|
|
1567
|
-
function
|
|
1568
|
-
let a =
|
|
1569
|
-
|
|
1560
|
+
function vn(e, t, n, r, i) {
|
|
1561
|
+
let a = n(t);
|
|
1562
|
+
for (let t of hn(e, a)) {
|
|
1563
|
+
let e = _t(n(t), r);
|
|
1564
|
+
if (e) return e;
|
|
1565
|
+
}
|
|
1566
|
+
return i ?? r;
|
|
1570
1567
|
}
|
|
1571
1568
|
//#endregion
|
|
1572
1569
|
//#region ../../node_modules/.bun/@wopjs+weak-cache@0.1.5/node_modules/@wopjs/weak-cache/dist/index.mjs
|
|
1573
|
-
var
|
|
1570
|
+
var yn = /* @__PURE__ */ new WeakMap(), bn = (e) => e === null || typeof e != "object" && typeof e != "function" ? e : (yn.has(e) ? yn : yn.set(e, Symbol())).get(e), xn = class {
|
|
1574
1571
|
get size() {
|
|
1575
1572
|
return this._r.size;
|
|
1576
1573
|
}
|
|
@@ -1590,7 +1587,7 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
1590
1587
|
this._r.clear();
|
|
1591
1588
|
}
|
|
1592
1589
|
delete(e) {
|
|
1593
|
-
let t =
|
|
1590
|
+
let t = bn(e), n = this._r.get(t);
|
|
1594
1591
|
return n ? (this._g.unregister(n), this._r.delete(t)) : !1;
|
|
1595
1592
|
}
|
|
1596
1593
|
dispose() {
|
|
@@ -1601,13 +1598,13 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
1601
1598
|
return n || this.set(e, n = t()), n;
|
|
1602
1599
|
}
|
|
1603
1600
|
get(e) {
|
|
1604
|
-
return this._r.get(
|
|
1601
|
+
return this._r.get(bn(e))?.deref();
|
|
1605
1602
|
}
|
|
1606
1603
|
has(e) {
|
|
1607
1604
|
return this.get(e) !== void 0;
|
|
1608
1605
|
}
|
|
1609
1606
|
set(e, t) {
|
|
1610
|
-
let n =
|
|
1607
|
+
let n = bn(e), r = new WeakRef(t);
|
|
1611
1608
|
return this._r.set(n, r), this._g.register(t, n, r), Object.is(n, e) || this._g.register(e, n, r), this;
|
|
1612
1609
|
}
|
|
1613
1610
|
*values() {
|
|
@@ -1616,10 +1613,10 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
1616
1613
|
t && (yield t);
|
|
1617
1614
|
}
|
|
1618
1615
|
}
|
|
1619
|
-
},
|
|
1616
|
+
}, Sn = /* @__PURE__ */ new WeakMap(), Cn = new xn(), wn = class e {
|
|
1620
1617
|
static get(t) {
|
|
1621
|
-
let n = Array.isArray(t) ?
|
|
1622
|
-
return
|
|
1618
|
+
let n = Array.isArray(t) ? Sn.get(t) ?? Sn.set(t, Xe(t) || "[]").get(t) : t == null ? "[]" : Xe([t]);
|
|
1619
|
+
return Cn.get(n) || Cn.set(n, new e(n, t)).get(n);
|
|
1623
1620
|
}
|
|
1624
1621
|
static fromKey(t) {
|
|
1625
1622
|
return e.get(JSON.parse(t));
|
|
@@ -1653,7 +1650,7 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
1653
1650
|
toJSON() {
|
|
1654
1651
|
return this.path;
|
|
1655
1652
|
}
|
|
1656
|
-
},
|
|
1653
|
+
}, Tn = /* @__PURE__ */ i(((e) => {
|
|
1657
1654
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.regexpCode = e.getEsmExportName = e.getProperty = e.safeStringify = e.stringify = e.strConcat = e.addCodeArg = e.str = e._ = e.nil = e._Code = e.Name = e.IDENTIFIER = e._CodeOrName = void 0;
|
|
1658
1655
|
var t = class {};
|
|
1659
1656
|
e._CodeOrName = t, e.IDENTIFIER = /^[a-z$_][a-z$_0-9]*$/i;
|
|
@@ -1758,9 +1755,9 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
1758
1755
|
return new r(e.toString());
|
|
1759
1756
|
}
|
|
1760
1757
|
e.regexpCode = g;
|
|
1761
|
-
})),
|
|
1758
|
+
})), En = /* @__PURE__ */ i(((e) => {
|
|
1762
1759
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.ValueScope = e.ValueScopeName = e.Scope = e.varKinds = e.UsedValueState = void 0;
|
|
1763
|
-
var t =
|
|
1760
|
+
var t = Tn(), n = class extends Error {
|
|
1764
1761
|
constructor(e) {
|
|
1765
1762
|
super(`CodeGen: "code" for ${e} not defined`), this.value = e.value;
|
|
1766
1763
|
}
|
|
@@ -1869,9 +1866,9 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
1869
1866
|
return c;
|
|
1870
1867
|
}
|
|
1871
1868
|
};
|
|
1872
|
-
})),
|
|
1869
|
+
})), Y = /* @__PURE__ */ i(((e) => {
|
|
1873
1870
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.or = e.and = e.not = e.CodeGen = e.operators = e.varKinds = e.ValueScopeName = e.ValueScope = e.Scope = e.Name = e.regexpCode = e.stringify = e.getProperty = e.nil = e.strConcat = e.str = e._ = void 0;
|
|
1874
|
-
var t =
|
|
1871
|
+
var t = Tn(), n = En(), r = Tn();
|
|
1875
1872
|
Object.defineProperty(e, "_", {
|
|
1876
1873
|
enumerable: !0,
|
|
1877
1874
|
get: function() {
|
|
@@ -1913,7 +1910,7 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
1913
1910
|
return r.Name;
|
|
1914
1911
|
}
|
|
1915
1912
|
});
|
|
1916
|
-
var i =
|
|
1913
|
+
var i = En();
|
|
1917
1914
|
Object.defineProperty(e, "Scope", {
|
|
1918
1915
|
enumerable: !0,
|
|
1919
1916
|
get: function() {
|
|
@@ -2384,9 +2381,9 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
2384
2381
|
function te(e) {
|
|
2385
2382
|
return e instanceof t.Name ? e : (0, t._)`(${e})`;
|
|
2386
2383
|
}
|
|
2387
|
-
})),
|
|
2384
|
+
})), X = /* @__PURE__ */ i(((e) => {
|
|
2388
2385
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.checkStrictMode = e.getErrorPath = e.Type = e.useFunc = e.setEvaluated = e.evaluatedPropsToName = e.mergeEvaluated = e.eachItem = e.unescapeJsonPointer = e.escapeJsonPointer = e.escapeFragment = e.unescapeFragment = e.schemaRefOrVal = e.schemaHasRulesButRef = e.schemaHasRules = e.checkUnknownRules = e.alwaysValidSchema = e.toHash = void 0;
|
|
2389
|
-
var t =
|
|
2386
|
+
var t = Y(), n = Tn();
|
|
2390
2387
|
function r(e) {
|
|
2391
2388
|
let t = {};
|
|
2392
2389
|
for (let n of e) t[n] = !0;
|
|
@@ -2509,9 +2506,9 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
2509
2506
|
}
|
|
2510
2507
|
}
|
|
2511
2508
|
e.checkStrictMode = x;
|
|
2512
|
-
})),
|
|
2509
|
+
})), Z = /* @__PURE__ */ i(((e) => {
|
|
2513
2510
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
2514
|
-
var t =
|
|
2511
|
+
var t = Y();
|
|
2515
2512
|
e.default = {
|
|
2516
2513
|
data: new t.Name("data"),
|
|
2517
2514
|
valCxt: new t.Name("valCxt"),
|
|
@@ -2530,9 +2527,9 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
2530
2527
|
jsonLen: new t.Name("jsonLen"),
|
|
2531
2528
|
jsonPart: new t.Name("jsonPart")
|
|
2532
2529
|
};
|
|
2533
|
-
})),
|
|
2530
|
+
})), Dn = /* @__PURE__ */ i(((e) => {
|
|
2534
2531
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.extendErrors = e.resetErrorsCount = e.reportExtraError = e.reportError = e.keyword$DataError = e.keywordError = void 0;
|
|
2535
|
-
var t =
|
|
2532
|
+
var t = Y(), n = X(), r = Z();
|
|
2536
2533
|
e.keywordError = { message: ({ keyword: e }) => (0, t.str)`must pass "${e}" keyword validation` }, e.keyword$DataError = { message: ({ keyword: e, schemaType: n }) => n ? (0, t.str)`"${e}" keyword must be ${n} ($data)` : (0, t.str)`"${e}" keyword is invalid ($data)` };
|
|
2537
2534
|
function i(n, r = e.keywordError, i, a) {
|
|
2538
2535
|
let { it: o } = n, { gen: s, compositeRule: u, allErrors: f } = o, p = d(n, r, i);
|
|
@@ -2594,9 +2591,9 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
2594
2591
|
let { keyword: o, data: s, schemaValue: c, it: l } = e, { opts: d, propertyName: f, topSchemaRef: p, schemaPath: m } = l;
|
|
2595
2592
|
a.push([u.keyword, o], [u.params, typeof n == "function" ? n(e) : n || (0, t._)`{}`]), d.messages && a.push([u.message, typeof i == "function" ? i(e) : i]), d.verbose && a.push([u.schema, c], [u.parentSchema, (0, t._)`${p}${m}`], [r.default.data, s]), f && a.push([u.propertyName, f]);
|
|
2596
2593
|
}
|
|
2597
|
-
})),
|
|
2594
|
+
})), On = /* @__PURE__ */ i(((e) => {
|
|
2598
2595
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.boolOrEmptySchema = e.topBoolOrEmptySchema = void 0;
|
|
2599
|
-
var t =
|
|
2596
|
+
var t = Dn(), n = Y(), r = Z(), i = { message: "boolean schema is false" };
|
|
2600
2597
|
function a(e) {
|
|
2601
2598
|
let { gen: t, schema: i, validateName: a } = e;
|
|
2602
2599
|
i === !1 ? s(e, !1) : typeof i == "object" && i.$async === !0 ? t.return(r.default.data) : (t.assign((0, n._)`${a}.errors`, null), t.return(!0));
|
|
@@ -2620,7 +2617,7 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
2620
2617
|
};
|
|
2621
2618
|
(0, t.reportError)(o, i, void 0, n);
|
|
2622
2619
|
}
|
|
2623
|
-
})),
|
|
2620
|
+
})), kn = /* @__PURE__ */ i(((e) => {
|
|
2624
2621
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.getRules = e.isJSONType = void 0;
|
|
2625
2622
|
var t = /* @__PURE__ */ new Set([
|
|
2626
2623
|
"string",
|
|
@@ -2674,7 +2671,7 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
2674
2671
|
};
|
|
2675
2672
|
}
|
|
2676
2673
|
e.getRules = r;
|
|
2677
|
-
})),
|
|
2674
|
+
})), An = /* @__PURE__ */ i(((e) => {
|
|
2678
2675
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.shouldUseRule = e.shouldUseGroup = e.schemaHasRulesForType = void 0;
|
|
2679
2676
|
function t({ schema: e, self: t }, r) {
|
|
2680
2677
|
let i = t.RULES.types[r];
|
|
@@ -2689,9 +2686,9 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
2689
2686
|
return e[t.keyword] !== void 0 || t.definition.implements?.some((t) => e[t] !== void 0);
|
|
2690
2687
|
}
|
|
2691
2688
|
e.shouldUseRule = r;
|
|
2692
|
-
})),
|
|
2689
|
+
})), jn = /* @__PURE__ */ i(((e) => {
|
|
2693
2690
|
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 =
|
|
2691
|
+
var t = kn(), n = An(), r = Dn(), i = Y(), a = X(), o;
|
|
2695
2692
|
(function(e) {
|
|
2696
2693
|
e[e.Correct = 0] = "Correct", e[e.Wrong = 1] = "Wrong";
|
|
2697
2694
|
})(o || (e.DataType = o = {}));
|
|
@@ -2826,9 +2823,9 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
2826
2823
|
it: e
|
|
2827
2824
|
};
|
|
2828
2825
|
}
|
|
2829
|
-
})),
|
|
2826
|
+
})), Mn = /* @__PURE__ */ i(((e) => {
|
|
2830
2827
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.assignDefaults = void 0;
|
|
2831
|
-
var t =
|
|
2828
|
+
var t = Y(), n = X();
|
|
2832
2829
|
function r(e, t) {
|
|
2833
2830
|
let { properties: n, items: r } = e.schema;
|
|
2834
2831
|
if (t === "object" && n) for (let t in n) i(e, t, n[t].default);
|
|
@@ -2848,7 +2845,7 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
2848
2845
|
}
|
|
2849
2846
|
})), Q = /* @__PURE__ */ i(((e) => {
|
|
2850
2847
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.validateUnion = e.validateArray = e.usePattern = e.callValidateCode = e.schemaProperties = e.allSchemaProperties = e.noPropertyInData = e.propertyInData = e.isOwnProperty = e.hasPropFunc = e.reportMissingProp = e.checkMissingProp = e.checkReportMissingProp = void 0;
|
|
2851
|
-
var t =
|
|
2848
|
+
var t = Y(), n = X(), r = Z(), i = X();
|
|
2852
2849
|
function a(e, n) {
|
|
2853
2850
|
let { gen: r, data: i, it: a } = e;
|
|
2854
2851
|
r.if(d(r, i, n, a.opts.ownProperties), () => {
|
|
@@ -2950,9 +2947,9 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
2950
2947
|
})), e.result(s, () => e.reset(), () => e.error(!0));
|
|
2951
2948
|
}
|
|
2952
2949
|
e.validateUnion = v;
|
|
2953
|
-
})),
|
|
2950
|
+
})), Nn = /* @__PURE__ */ i(((e) => {
|
|
2954
2951
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.validateKeywordUsage = e.validSchemaType = e.funcKeywordCode = e.macroKeywordCode = void 0;
|
|
2955
|
-
var t =
|
|
2952
|
+
var t = Y(), n = Z(), r = Q(), i = Dn();
|
|
2956
2953
|
function a(e, n) {
|
|
2957
2954
|
let { gen: r, keyword: i, schema: a, parentSchema: o, it: s } = e, c = n.macro.call(s.self, a, o, s), l = u(r, i, c);
|
|
2958
2955
|
s.opts.validateSchema !== !1 && s.self.validateSchema(c, !0);
|
|
@@ -3031,9 +3028,9 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
3031
3028
|
}
|
|
3032
3029
|
}
|
|
3033
3030
|
e.validateKeywordUsage = f;
|
|
3034
|
-
})),
|
|
3031
|
+
})), Pn = /* @__PURE__ */ i(((e) => {
|
|
3035
3032
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.extendSubschemaMode = e.extendSubschemaData = e.getSubschema = void 0;
|
|
3036
|
-
var t =
|
|
3033
|
+
var t = Y(), n = X();
|
|
3037
3034
|
function r(e, { keyword: r, schemaProp: i, schema: a, schemaPath: o, errSchemaPath: s, topSchemaRef: c }) {
|
|
3038
3035
|
if (r !== void 0 && a !== void 0) throw Error("both \"keyword\" and \"schema\" passed, only one allowed");
|
|
3039
3036
|
if (r !== void 0) {
|
|
@@ -3077,7 +3074,7 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
3077
3074
|
r !== void 0 && (e.compositeRule = r), i !== void 0 && (e.createErrors = i), a !== void 0 && (e.allErrors = a), e.jtdDiscriminator = t, e.jtdMetadata = n;
|
|
3078
3075
|
}
|
|
3079
3076
|
e.extendSubschemaMode = a;
|
|
3080
|
-
})),
|
|
3077
|
+
})), Fn = /* @__PURE__ */ i(((e, t) => {
|
|
3081
3078
|
t.exports = function e(t, n) {
|
|
3082
3079
|
if (t === n) return !0;
|
|
3083
3080
|
if (t && n && typeof t == "object" && typeof n == "object") {
|
|
@@ -3101,7 +3098,7 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
3101
3098
|
}
|
|
3102
3099
|
return t !== t && n !== n;
|
|
3103
3100
|
};
|
|
3104
|
-
})),
|
|
3101
|
+
})), In = /* @__PURE__ */ i(((e, t) => {
|
|
3105
3102
|
var n = t.exports = function(e, t, n) {
|
|
3106
3103
|
typeof t == "function" && (n = t, t = {}), n = t.cb || n;
|
|
3107
3104
|
var i = typeof n == "function" ? n : n.pre || function() {}, a = n.post || function() {};
|
|
@@ -3164,9 +3161,9 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
3164
3161
|
function i(e) {
|
|
3165
3162
|
return e.replace(/~/g, "~0").replace(/\//g, "~1");
|
|
3166
3163
|
}
|
|
3167
|
-
})),
|
|
3164
|
+
})), Ln = /* @__PURE__ */ i(((e) => {
|
|
3168
3165
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.getSchemaRefs = e.resolveUrl = e.normalizeId = e._getFullPath = e.getFullPath = e.inlineRef = void 0;
|
|
3169
|
-
var t =
|
|
3166
|
+
var t = X(), n = Fn(), r = In(), i = /* @__PURE__ */ new Set([
|
|
3170
3167
|
"type",
|
|
3171
3168
|
"format",
|
|
3172
3169
|
"pattern",
|
|
@@ -3255,9 +3252,9 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
3255
3252
|
}
|
|
3256
3253
|
}
|
|
3257
3254
|
e.getSchemaRefs = h;
|
|
3258
|
-
})),
|
|
3255
|
+
})), Rn = /* @__PURE__ */ i(((e) => {
|
|
3259
3256
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.getData = e.KeywordCxt = e.validateFunctionCode = void 0;
|
|
3260
|
-
var t =
|
|
3257
|
+
var t = On(), n = jn(), r = An(), i = jn(), a = Mn(), o = Nn(), s = Pn(), c = Y(), l = Z(), u = Ln(), d = X(), f = Dn();
|
|
3261
3258
|
function p(e) {
|
|
3262
3259
|
if (S(e) && (w(e), x(e))) {
|
|
3263
3260
|
_(e);
|
|
@@ -3547,23 +3544,23 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
3547
3544
|
}
|
|
3548
3545
|
}
|
|
3549
3546
|
e.getData = ue;
|
|
3550
|
-
})),
|
|
3547
|
+
})), zn = /* @__PURE__ */ i(((e) => {
|
|
3551
3548
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.default = class extends Error {
|
|
3552
3549
|
constructor(e) {
|
|
3553
3550
|
super("validation failed"), this.errors = e, this.ajv = this.validation = !0;
|
|
3554
3551
|
}
|
|
3555
3552
|
};
|
|
3556
|
-
})),
|
|
3553
|
+
})), Bn = /* @__PURE__ */ i(((e) => {
|
|
3557
3554
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
3558
|
-
var t =
|
|
3555
|
+
var t = Ln();
|
|
3559
3556
|
e.default = class extends Error {
|
|
3560
3557
|
constructor(e, n, r, i) {
|
|
3561
3558
|
super(i || `can't resolve reference ${r} from id ${n}`), this.missingRef = (0, t.resolveUrl)(e, n, r), this.missingSchema = (0, t.normalizeId)((0, t.getFullPath)(e, this.missingRef));
|
|
3562
3559
|
}
|
|
3563
3560
|
};
|
|
3564
|
-
})),
|
|
3561
|
+
})), Vn = /* @__PURE__ */ i(((e) => {
|
|
3565
3562
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.resolveSchema = e.getCompilingSchema = e.resolveRef = e.compileSchema = e.SchemaEnv = void 0;
|
|
3566
|
-
var t =
|
|
3563
|
+
var t = Y(), n = zn(), r = Z(), i = Ln(), a = X(), o = Rn(), s = class {
|
|
3567
3564
|
constructor(e) {
|
|
3568
3565
|
this.refs = {}, this.dynamicAnchors = {};
|
|
3569
3566
|
let t;
|
|
@@ -3722,27 +3719,27 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
3722
3719
|
baseId: t
|
|
3723
3720
|
}), o.schema !== o.root.schema) return o;
|
|
3724
3721
|
}
|
|
3725
|
-
})),
|
|
3726
|
-
$id: () =>
|
|
3722
|
+
})), Hn = /* @__PURE__ */ r({
|
|
3723
|
+
$id: () => Un,
|
|
3727
3724
|
additionalProperties: () => !1,
|
|
3728
|
-
default: () =>
|
|
3729
|
-
description: () =>
|
|
3730
|
-
properties: () =>
|
|
3731
|
-
required: () =>
|
|
3732
|
-
type: () =>
|
|
3733
|
-
}),
|
|
3734
|
-
|
|
3725
|
+
default: () => Jn,
|
|
3726
|
+
description: () => Wn,
|
|
3727
|
+
properties: () => qn,
|
|
3728
|
+
required: () => Kn,
|
|
3729
|
+
type: () => Gn
|
|
3730
|
+
}), Un, Wn, Gn, Kn, qn, Jn, Yn = t((() => {
|
|
3731
|
+
Un = "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#", Wn = "Meta-schema for $data reference (JSON AnySchema extension proposal)", Gn = "object", Kn = ["$data"], qn = { $data: {
|
|
3735
3732
|
type: "string",
|
|
3736
3733
|
anyOf: [{ format: "relative-json-pointer" }, { format: "json-pointer" }]
|
|
3737
|
-
} },
|
|
3738
|
-
$id:
|
|
3739
|
-
description:
|
|
3740
|
-
type:
|
|
3741
|
-
required:
|
|
3742
|
-
properties:
|
|
3734
|
+
} }, Jn = {
|
|
3735
|
+
$id: Un,
|
|
3736
|
+
description: Wn,
|
|
3737
|
+
type: Gn,
|
|
3738
|
+
required: Kn,
|
|
3739
|
+
properties: qn,
|
|
3743
3740
|
additionalProperties: !1
|
|
3744
3741
|
};
|
|
3745
|
-
})),
|
|
3742
|
+
})), Xn = /* @__PURE__ */ i(((e, t) => {
|
|
3746
3743
|
var n = RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu), r = RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u), i = RegExp.prototype.test.bind(/^[\da-f]{2}$/iu), a = RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu), o = RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:@/]$/u), s = RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:@/?]$/u), c = RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:]$/u), l = Array(256);
|
|
3747
3744
|
{
|
|
3748
3745
|
let e = "0123456789ABCDEF";
|
|
@@ -4088,8 +4085,8 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
4088
4085
|
normalizeIPv6: y,
|
|
4089
4086
|
stringArrayToHexStripped: d
|
|
4090
4087
|
};
|
|
4091
|
-
})),
|
|
4092
|
-
var { isUUID: n } =
|
|
4088
|
+
})), Zn = /* @__PURE__ */ i(((e, t) => {
|
|
4089
|
+
var { isUUID: n } = Xn(), r = /^([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-./:;=@]|%[\da-f]{2})+)$/iu, i = [
|
|
4093
4090
|
"http",
|
|
4094
4091
|
"https",
|
|
4095
4092
|
"ws",
|
|
@@ -4194,8 +4191,8 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
4194
4191
|
isValidSchemeName: a,
|
|
4195
4192
|
getSchemeHandler: y
|
|
4196
4193
|
};
|
|
4197
|
-
})),
|
|
4198
|
-
var { normalizeIPv6: n, removeDotSegments: r, recomposeAuthority: i, normalizePercentEncoding: a, normalizePathEncoding: o, serializePathEncoding: s, normalizeQueryFragmentEncoding: c, encodeQuery: l, encodeFragment: u, reescapeHostDelimiters: d, isIPv4: f, nonSimpleDomain: p } =
|
|
4194
|
+
})), Qn = /* @__PURE__ */ i(((e, t) => {
|
|
4195
|
+
var { normalizeIPv6: n, removeDotSegments: r, recomposeAuthority: i, normalizePercentEncoding: a, normalizePathEncoding: o, serializePathEncoding: s, normalizeQueryFragmentEncoding: c, encodeQuery: l, encodeFragment: u, reescapeHostDelimiters: d, isIPv4: f, nonSimpleDomain: p } = Xn(), { SCHEMES: m, getSchemeHandler: h } = Zn(), g = /^[A-Za-z][A-Za-z0-9+.-]*$/u, _ = "URI scheme is malformed.";
|
|
4199
4196
|
function v(e) {
|
|
4200
4197
|
let t = unescape(String(e));
|
|
4201
4198
|
if (!g.test(t)) throw TypeError(_);
|
|
@@ -4359,20 +4356,20 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
4359
4356
|
parse: M
|
|
4360
4357
|
};
|
|
4361
4358
|
t.exports = F, t.exports.default = F, t.exports.fastUri = F;
|
|
4362
|
-
})),
|
|
4359
|
+
})), $n = /* @__PURE__ */ i(((e) => {
|
|
4363
4360
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
4364
|
-
var t =
|
|
4361
|
+
var t = Qn();
|
|
4365
4362
|
t.code = "require(\"ajv/dist/runtime/uri\").default", e.default = t;
|
|
4366
|
-
})),
|
|
4363
|
+
})), er = /* @__PURE__ */ i(((t) => {
|
|
4367
4364
|
Object.defineProperty(t, "__esModule", { value: !0 }), t.CodeGen = t.Name = t.nil = t.stringify = t.str = t._ = t.KeywordCxt = void 0;
|
|
4368
|
-
var n =
|
|
4365
|
+
var n = Rn();
|
|
4369
4366
|
Object.defineProperty(t, "KeywordCxt", {
|
|
4370
4367
|
enumerable: !0,
|
|
4371
4368
|
get: function() {
|
|
4372
4369
|
return n.KeywordCxt;
|
|
4373
4370
|
}
|
|
4374
4371
|
});
|
|
4375
|
-
var r =
|
|
4372
|
+
var r = Y();
|
|
4376
4373
|
Object.defineProperty(t, "_", {
|
|
4377
4374
|
enumerable: !0,
|
|
4378
4375
|
get: function() {
|
|
@@ -4404,7 +4401,7 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
4404
4401
|
return r.CodeGen;
|
|
4405
4402
|
}
|
|
4406
4403
|
});
|
|
4407
|
-
var i =
|
|
4404
|
+
var i = zn(), a = Bn(), o = kn(), s = Vn(), c = Y(), l = Ln(), u = jn(), d = X(), f = (Yn(), e(Hn).default), p = $n(), m = (e, t) => new RegExp(e, t);
|
|
4408
4405
|
m.code = "new RegExp";
|
|
4409
4406
|
var h = [
|
|
4410
4407
|
"removeAdditional",
|
|
@@ -4792,16 +4789,16 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
4792
4789
|
function F(e) {
|
|
4793
4790
|
return { anyOf: [e, ee] };
|
|
4794
4791
|
}
|
|
4795
|
-
})),
|
|
4792
|
+
})), tr = /* @__PURE__ */ i(((e) => {
|
|
4796
4793
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.default = {
|
|
4797
4794
|
keyword: "id",
|
|
4798
4795
|
code() {
|
|
4799
4796
|
throw Error("NOT SUPPORTED: keyword \"id\", use \"$id\" for schema ID");
|
|
4800
4797
|
}
|
|
4801
4798
|
};
|
|
4802
|
-
})),
|
|
4799
|
+
})), nr = /* @__PURE__ */ i(((e) => {
|
|
4803
4800
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.callRef = e.getValidate = void 0;
|
|
4804
|
-
var t =
|
|
4801
|
+
var t = Bn(), n = Q(), r = Y(), i = Z(), a = Vn(), o = X(), s = {
|
|
4805
4802
|
keyword: "$ref",
|
|
4806
4803
|
schemaType: "string",
|
|
4807
4804
|
code(e) {
|
|
@@ -4878,9 +4875,9 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
4878
4875
|
}
|
|
4879
4876
|
}
|
|
4880
4877
|
e.callRef = l, e.default = s;
|
|
4881
|
-
})),
|
|
4878
|
+
})), rr = /* @__PURE__ */ i(((e) => {
|
|
4882
4879
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
4883
|
-
var t =
|
|
4880
|
+
var t = tr(), n = nr();
|
|
4884
4881
|
e.default = [
|
|
4885
4882
|
"$schema",
|
|
4886
4883
|
"$id",
|
|
@@ -4891,9 +4888,9 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
4891
4888
|
t.default,
|
|
4892
4889
|
n.default
|
|
4893
4890
|
];
|
|
4894
|
-
})),
|
|
4891
|
+
})), ir = /* @__PURE__ */ i(((e) => {
|
|
4895
4892
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
4896
|
-
var t =
|
|
4893
|
+
var t = Y(), n = t.operators, r = {
|
|
4897
4894
|
maximum: {
|
|
4898
4895
|
okStr: "<=",
|
|
4899
4896
|
ok: n.LTE,
|
|
@@ -4929,9 +4926,9 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
4929
4926
|
e.fail$data((0, t._)`${i} ${r[n].fail} ${a} || isNaN(${i})`);
|
|
4930
4927
|
}
|
|
4931
4928
|
};
|
|
4932
|
-
})),
|
|
4929
|
+
})), ar = /* @__PURE__ */ i(((e) => {
|
|
4933
4930
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
4934
|
-
var t =
|
|
4931
|
+
var t = Y();
|
|
4935
4932
|
e.default = {
|
|
4936
4933
|
keyword: "multipleOf",
|
|
4937
4934
|
type: "number",
|
|
@@ -4946,7 +4943,7 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
4946
4943
|
e.fail$data((0, t._)`(${i} === 0 || (${s} = ${r}/${i}, ${c}))`);
|
|
4947
4944
|
}
|
|
4948
4945
|
};
|
|
4949
|
-
})),
|
|
4946
|
+
})), or = /* @__PURE__ */ i(((e) => {
|
|
4950
4947
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
4951
4948
|
function t(e) {
|
|
4952
4949
|
let t = e.length, n = 0, r = 0, i;
|
|
@@ -4954,9 +4951,9 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
4954
4951
|
return n;
|
|
4955
4952
|
}
|
|
4956
4953
|
e.default = t, t.code = "require(\"ajv/dist/runtime/ucs2length\").default";
|
|
4957
|
-
})),
|
|
4954
|
+
})), sr = /* @__PURE__ */ i(((e) => {
|
|
4958
4955
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
4959
|
-
var t =
|
|
4956
|
+
var t = Y(), n = X(), r = or();
|
|
4960
4957
|
e.default = {
|
|
4961
4958
|
keyword: ["maxLength", "minLength"],
|
|
4962
4959
|
type: "string",
|
|
@@ -4974,9 +4971,9 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
4974
4971
|
e.fail$data((0, t._)`${l} ${c} ${o}`);
|
|
4975
4972
|
}
|
|
4976
4973
|
};
|
|
4977
|
-
})),
|
|
4974
|
+
})), cr = /* @__PURE__ */ i(((e) => {
|
|
4978
4975
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
4979
|
-
var t = Q(), n =
|
|
4976
|
+
var t = Q(), n = X(), r = Y();
|
|
4980
4977
|
e.default = {
|
|
4981
4978
|
keyword: "pattern",
|
|
4982
4979
|
type: "string",
|
|
@@ -4997,9 +4994,9 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
4997
4994
|
}
|
|
4998
4995
|
}
|
|
4999
4996
|
};
|
|
5000
|
-
})),
|
|
4997
|
+
})), lr = /* @__PURE__ */ i(((e) => {
|
|
5001
4998
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
5002
|
-
var t =
|
|
4999
|
+
var t = Y();
|
|
5003
5000
|
e.default = {
|
|
5004
5001
|
keyword: ["maxProperties", "minProperties"],
|
|
5005
5002
|
type: "object",
|
|
@@ -5017,9 +5014,9 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
5017
5014
|
e.fail$data((0, t._)`Object.keys(${r}).length ${a} ${i}`);
|
|
5018
5015
|
}
|
|
5019
5016
|
};
|
|
5020
|
-
})),
|
|
5017
|
+
})), ur = /* @__PURE__ */ i(((e) => {
|
|
5021
5018
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
5022
|
-
var t = Q(), n =
|
|
5019
|
+
var t = Q(), n = Y(), r = X();
|
|
5023
5020
|
e.default = {
|
|
5024
5021
|
keyword: "required",
|
|
5025
5022
|
type: "object",
|
|
@@ -5065,9 +5062,9 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
5065
5062
|
}
|
|
5066
5063
|
}
|
|
5067
5064
|
};
|
|
5068
|
-
})),
|
|
5065
|
+
})), dr = /* @__PURE__ */ i(((e) => {
|
|
5069
5066
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
5070
|
-
var t =
|
|
5067
|
+
var t = Y();
|
|
5071
5068
|
e.default = {
|
|
5072
5069
|
keyword: ["maxItems", "minItems"],
|
|
5073
5070
|
type: "array",
|
|
@@ -5085,13 +5082,13 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
5085
5082
|
e.fail$data((0, t._)`${r}.length ${a} ${i}`);
|
|
5086
5083
|
}
|
|
5087
5084
|
};
|
|
5088
|
-
})),
|
|
5085
|
+
})), fr = /* @__PURE__ */ i(((e) => {
|
|
5089
5086
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
5090
|
-
var t =
|
|
5087
|
+
var t = Fn();
|
|
5091
5088
|
t.code = "require(\"ajv/dist/runtime/equal\").default", e.default = t;
|
|
5092
|
-
})),
|
|
5089
|
+
})), pr = /* @__PURE__ */ i(((e) => {
|
|
5093
5090
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
5094
|
-
var t =
|
|
5091
|
+
var t = jn(), n = Y(), r = X(), i = fr();
|
|
5095
5092
|
e.default = {
|
|
5096
5093
|
keyword: "uniqueItems",
|
|
5097
5094
|
type: "array",
|
|
@@ -5132,9 +5129,9 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
5132
5129
|
}
|
|
5133
5130
|
}
|
|
5134
5131
|
};
|
|
5135
|
-
})),
|
|
5132
|
+
})), mr = /* @__PURE__ */ i(((e) => {
|
|
5136
5133
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
5137
|
-
var t =
|
|
5134
|
+
var t = Y(), n = X(), r = fr();
|
|
5138
5135
|
e.default = {
|
|
5139
5136
|
keyword: "const",
|
|
5140
5137
|
$data: !0,
|
|
@@ -5147,9 +5144,9 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
5147
5144
|
o || c && typeof c == "object" ? e.fail$data((0, t._)`!${(0, n.useFunc)(i, r.default)}(${a}, ${s})`) : e.fail((0, t._)`${c} !== ${a}`);
|
|
5148
5145
|
}
|
|
5149
5146
|
};
|
|
5150
|
-
})),
|
|
5147
|
+
})), hr = /* @__PURE__ */ i(((e) => {
|
|
5151
5148
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
5152
|
-
var t =
|
|
5149
|
+
var t = Y(), n = X(), r = fr();
|
|
5153
5150
|
e.default = {
|
|
5154
5151
|
keyword: "enum",
|
|
5155
5152
|
schemaType: "array",
|
|
@@ -5179,9 +5176,9 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
5179
5176
|
}
|
|
5180
5177
|
}
|
|
5181
5178
|
};
|
|
5182
|
-
})),
|
|
5179
|
+
})), gr = /* @__PURE__ */ i(((e) => {
|
|
5183
5180
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
5184
|
-
var t =
|
|
5181
|
+
var t = ir(), n = ar(), r = sr(), i = cr(), a = lr(), o = ur(), s = dr(), c = pr(), l = mr(), u = hr();
|
|
5185
5182
|
e.default = [
|
|
5186
5183
|
t.default,
|
|
5187
5184
|
n.default,
|
|
@@ -5202,9 +5199,9 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
5202
5199
|
l.default,
|
|
5203
5200
|
u.default
|
|
5204
5201
|
];
|
|
5205
|
-
})),
|
|
5202
|
+
})), _r = /* @__PURE__ */ i(((e) => {
|
|
5206
5203
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.validateAdditionalItems = void 0;
|
|
5207
|
-
var t =
|
|
5204
|
+
var t = Y(), n = X(), r = {
|
|
5208
5205
|
keyword: "additionalItems",
|
|
5209
5206
|
type: "array",
|
|
5210
5207
|
schemaType: ["boolean", "object"],
|
|
@@ -5242,9 +5239,9 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
5242
5239
|
}
|
|
5243
5240
|
}
|
|
5244
5241
|
e.validateAdditionalItems = i, e.default = r;
|
|
5245
|
-
})),
|
|
5242
|
+
})), vr = /* @__PURE__ */ i(((e) => {
|
|
5246
5243
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.validateTuple = void 0;
|
|
5247
|
-
var t =
|
|
5244
|
+
var t = Y(), n = X(), r = Q(), i = {
|
|
5248
5245
|
keyword: "items",
|
|
5249
5246
|
type: "array",
|
|
5250
5247
|
schemaType: [
|
|
@@ -5279,9 +5276,9 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
5279
5276
|
}
|
|
5280
5277
|
}
|
|
5281
5278
|
e.validateTuple = a, e.default = i;
|
|
5282
|
-
})),
|
|
5279
|
+
})), yr = /* @__PURE__ */ i(((e) => {
|
|
5283
5280
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
5284
|
-
var t =
|
|
5281
|
+
var t = vr();
|
|
5285
5282
|
e.default = {
|
|
5286
5283
|
keyword: "prefixItems",
|
|
5287
5284
|
type: "array",
|
|
@@ -5289,9 +5286,9 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
5289
5286
|
before: "uniqueItems",
|
|
5290
5287
|
code: (e) => (0, t.validateTuple)(e, "items")
|
|
5291
5288
|
};
|
|
5292
|
-
})),
|
|
5289
|
+
})), br = /* @__PURE__ */ i(((e) => {
|
|
5293
5290
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
5294
|
-
var t =
|
|
5291
|
+
var t = Y(), n = X(), r = Q(), i = _r();
|
|
5295
5292
|
e.default = {
|
|
5296
5293
|
keyword: "items",
|
|
5297
5294
|
type: "array",
|
|
@@ -5306,9 +5303,9 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
5306
5303
|
o.items = !0, !(0, n.alwaysValidSchema)(o, t) && (s ? (0, i.validateAdditionalItems)(e, s) : e.ok((0, r.validateArray)(e)));
|
|
5307
5304
|
}
|
|
5308
5305
|
};
|
|
5309
|
-
})),
|
|
5306
|
+
})), xr = /* @__PURE__ */ i(((e) => {
|
|
5310
5307
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
5311
|
-
var t =
|
|
5308
|
+
var t = Y(), n = X();
|
|
5312
5309
|
e.default = {
|
|
5313
5310
|
keyword: "contains",
|
|
5314
5311
|
type: "array",
|
|
@@ -5361,9 +5358,9 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
5361
5358
|
}
|
|
5362
5359
|
}
|
|
5363
5360
|
};
|
|
5364
|
-
})),
|
|
5361
|
+
})), Sr = /* @__PURE__ */ i(((e) => {
|
|
5365
5362
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.validateSchemaDeps = e.validatePropertyDeps = e.error = void 0;
|
|
5366
|
-
var t =
|
|
5363
|
+
var t = Y(), n = X(), r = Q();
|
|
5367
5364
|
e.error = {
|
|
5368
5365
|
message: ({ params: { property: e, depsCount: n, deps: r } }) => {
|
|
5369
5366
|
let i = n === 1 ? "property" : "properties";
|
|
@@ -5422,9 +5419,9 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
5422
5419
|
}, () => i.var(c, !0)), e.ok(c));
|
|
5423
5420
|
}
|
|
5424
5421
|
e.validateSchemaDeps = s, e.default = i;
|
|
5425
|
-
})),
|
|
5422
|
+
})), Cr = /* @__PURE__ */ i(((e) => {
|
|
5426
5423
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
5427
|
-
var t =
|
|
5424
|
+
var t = Y(), n = X();
|
|
5428
5425
|
e.default = {
|
|
5429
5426
|
keyword: "propertyNames",
|
|
5430
5427
|
type: "object",
|
|
@@ -5450,9 +5447,9 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
5450
5447
|
}), e.ok(s);
|
|
5451
5448
|
}
|
|
5452
5449
|
};
|
|
5453
|
-
})),
|
|
5450
|
+
})), wr = /* @__PURE__ */ i(((e) => {
|
|
5454
5451
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
5455
|
-
var t = Q(), n =
|
|
5452
|
+
var t = Q(), n = Y(), r = Z(), i = X();
|
|
5456
5453
|
e.default = {
|
|
5457
5454
|
keyword: "additionalProperties",
|
|
5458
5455
|
type: ["object"],
|
|
@@ -5517,9 +5514,9 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
5517
5514
|
}
|
|
5518
5515
|
}
|
|
5519
5516
|
};
|
|
5520
|
-
})),
|
|
5517
|
+
})), Tr = /* @__PURE__ */ i(((e) => {
|
|
5521
5518
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
5522
|
-
var t =
|
|
5519
|
+
var t = Rn(), n = Q(), r = X(), i = wr();
|
|
5523
5520
|
e.default = {
|
|
5524
5521
|
keyword: "properties",
|
|
5525
5522
|
type: "object",
|
|
@@ -5546,9 +5543,9 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
5546
5543
|
}
|
|
5547
5544
|
}
|
|
5548
5545
|
};
|
|
5549
|
-
})),
|
|
5546
|
+
})), Er = /* @__PURE__ */ i(((e) => {
|
|
5550
5547
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
5551
|
-
var t = Q(), n =
|
|
5548
|
+
var t = Q(), n = Y(), r = X(), i = X();
|
|
5552
5549
|
e.default = {
|
|
5553
5550
|
keyword: "patternProperties",
|
|
5554
5551
|
type: "object",
|
|
@@ -5581,9 +5578,9 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
5581
5578
|
}
|
|
5582
5579
|
}
|
|
5583
5580
|
};
|
|
5584
|
-
})),
|
|
5581
|
+
})), Dr = /* @__PURE__ */ i(((e) => {
|
|
5585
5582
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
5586
|
-
var t =
|
|
5583
|
+
var t = X();
|
|
5587
5584
|
e.default = {
|
|
5588
5585
|
keyword: "not",
|
|
5589
5586
|
schemaType: ["object", "boolean"],
|
|
@@ -5604,7 +5601,7 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
5604
5601
|
},
|
|
5605
5602
|
error: { message: "must NOT be valid" }
|
|
5606
5603
|
};
|
|
5607
|
-
})),
|
|
5604
|
+
})), Or = /* @__PURE__ */ i(((e) => {
|
|
5608
5605
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.default = {
|
|
5609
5606
|
keyword: "anyOf",
|
|
5610
5607
|
schemaType: "array",
|
|
@@ -5612,9 +5609,9 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
5612
5609
|
code: Q().validateUnion,
|
|
5613
5610
|
error: { message: "must match a schema in anyOf" }
|
|
5614
5611
|
};
|
|
5615
|
-
})),
|
|
5612
|
+
})), kr = /* @__PURE__ */ i(((e) => {
|
|
5616
5613
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
5617
|
-
var t =
|
|
5614
|
+
var t = Y(), n = X();
|
|
5618
5615
|
e.default = {
|
|
5619
5616
|
keyword: "oneOf",
|
|
5620
5617
|
schemaType: "array",
|
|
@@ -5644,9 +5641,9 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
5644
5641
|
}
|
|
5645
5642
|
}
|
|
5646
5643
|
};
|
|
5647
|
-
})),
|
|
5644
|
+
})), Ar = /* @__PURE__ */ i(((e) => {
|
|
5648
5645
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
5649
|
-
var t =
|
|
5646
|
+
var t = X();
|
|
5650
5647
|
e.default = {
|
|
5651
5648
|
keyword: "allOf",
|
|
5652
5649
|
schemaType: "array",
|
|
@@ -5665,9 +5662,9 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
5665
5662
|
});
|
|
5666
5663
|
}
|
|
5667
5664
|
};
|
|
5668
|
-
})),
|
|
5665
|
+
})), jr = /* @__PURE__ */ i(((e) => {
|
|
5669
5666
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
5670
|
-
var t =
|
|
5667
|
+
var t = Y(), n = X(), r = {
|
|
5671
5668
|
keyword: "if",
|
|
5672
5669
|
schemaType: ["object", "boolean"],
|
|
5673
5670
|
trackErrors: !0,
|
|
@@ -5708,9 +5705,9 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
5708
5705
|
return r !== void 0 && !(0, n.alwaysValidSchema)(e, r);
|
|
5709
5706
|
}
|
|
5710
5707
|
e.default = r;
|
|
5711
|
-
})),
|
|
5708
|
+
})), Mr = /* @__PURE__ */ i(((e) => {
|
|
5712
5709
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
5713
|
-
var t =
|
|
5710
|
+
var t = X();
|
|
5714
5711
|
e.default = {
|
|
5715
5712
|
keyword: ["then", "else"],
|
|
5716
5713
|
schemaType: ["object", "boolean"],
|
|
@@ -5718,9 +5715,9 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
5718
5715
|
n.if === void 0 && (0, t.checkStrictMode)(r, `"${e}" without "if" is ignored`);
|
|
5719
5716
|
}
|
|
5720
5717
|
};
|
|
5721
|
-
})),
|
|
5718
|
+
})), Nr = /* @__PURE__ */ i(((e) => {
|
|
5722
5719
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
5723
|
-
var t =
|
|
5720
|
+
var t = _r(), n = yr(), r = vr(), i = br(), a = xr(), o = Sr(), s = Cr(), c = wr(), l = Tr(), u = Er(), d = Dr(), f = Or(), p = kr(), m = Ar(), h = jr(), g = Mr();
|
|
5724
5721
|
function _(e = !1) {
|
|
5725
5722
|
let _ = [
|
|
5726
5723
|
d.default,
|
|
@@ -5738,9 +5735,9 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
5738
5735
|
return e ? _.push(n.default, i.default) : _.push(t.default, r.default), _.push(a.default), _;
|
|
5739
5736
|
}
|
|
5740
5737
|
e.default = _;
|
|
5741
|
-
})),
|
|
5738
|
+
})), Pr = /* @__PURE__ */ i(((e) => {
|
|
5742
5739
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
5743
|
-
var t =
|
|
5740
|
+
var t = Y();
|
|
5744
5741
|
e.default = {
|
|
5745
5742
|
keyword: "format",
|
|
5746
5743
|
type: ["number", "string"],
|
|
@@ -5813,9 +5810,9 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
5813
5810
|
}
|
|
5814
5811
|
}
|
|
5815
5812
|
};
|
|
5816
|
-
})), Pr = /* @__PURE__ */ i(((e) => {
|
|
5817
|
-
Object.defineProperty(e, "__esModule", { value: !0 }), e.default = [Nr().default];
|
|
5818
5813
|
})), Fr = /* @__PURE__ */ i(((e) => {
|
|
5814
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), e.default = [Pr().default];
|
|
5815
|
+
})), Ir = /* @__PURE__ */ i(((e) => {
|
|
5819
5816
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.contentVocabulary = e.metadataVocabulary = void 0, e.metadataVocabulary = [
|
|
5820
5817
|
"title",
|
|
5821
5818
|
"description",
|
|
@@ -5829,9 +5826,9 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
5829
5826
|
"contentEncoding",
|
|
5830
5827
|
"contentSchema"
|
|
5831
5828
|
];
|
|
5832
|
-
})),
|
|
5829
|
+
})), Lr = /* @__PURE__ */ i(((e) => {
|
|
5833
5830
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
5834
|
-
var t =
|
|
5831
|
+
var t = rr(), n = gr(), r = Nr(), i = Fr(), a = Ir();
|
|
5835
5832
|
e.default = [
|
|
5836
5833
|
t.default,
|
|
5837
5834
|
n.default,
|
|
@@ -5840,15 +5837,15 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
5840
5837
|
a.metadataVocabulary,
|
|
5841
5838
|
a.contentVocabulary
|
|
5842
5839
|
];
|
|
5843
|
-
})),
|
|
5840
|
+
})), Rr = /* @__PURE__ */ i(((e) => {
|
|
5844
5841
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.DiscrError = void 0;
|
|
5845
5842
|
var t;
|
|
5846
5843
|
(function(e) {
|
|
5847
5844
|
e.Tag = "tag", e.Mapping = "mapping";
|
|
5848
5845
|
})(t || (e.DiscrError = t = {}));
|
|
5849
|
-
})),
|
|
5846
|
+
})), zr = /* @__PURE__ */ i(((e) => {
|
|
5850
5847
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
5851
|
-
var t =
|
|
5848
|
+
var t = Y(), n = Rr(), r = Vn(), i = Bn(), a = X();
|
|
5852
5849
|
e.default = {
|
|
5853
5850
|
keyword: "discriminator",
|
|
5854
5851
|
type: "object",
|
|
@@ -5916,16 +5913,16 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
5916
5913
|
}
|
|
5917
5914
|
}
|
|
5918
5915
|
};
|
|
5919
|
-
})),
|
|
5920
|
-
$id: () =>
|
|
5921
|
-
$schema: () =>
|
|
5922
|
-
default: () =>
|
|
5923
|
-
definitions: () =>
|
|
5924
|
-
properties: () =>
|
|
5925
|
-
title: () =>
|
|
5926
|
-
type: () =>
|
|
5927
|
-
}),
|
|
5928
|
-
|
|
5916
|
+
})), Br = /* @__PURE__ */ r({
|
|
5917
|
+
$id: () => Hr,
|
|
5918
|
+
$schema: () => Vr,
|
|
5919
|
+
default: () => qr,
|
|
5920
|
+
definitions: () => Wr,
|
|
5921
|
+
properties: () => Kr,
|
|
5922
|
+
title: () => Ur,
|
|
5923
|
+
type: () => Gr
|
|
5924
|
+
}), Vr, Hr, Ur, Wr, Gr, Kr, qr, Jr = t((() => {
|
|
5925
|
+
Vr = "http://json-schema.org/draft-07/schema#", Hr = "http://json-schema.org/draft-07/schema#", Ur = "Core schema meta-schema", Wr = {
|
|
5929
5926
|
schemaArray: {
|
|
5930
5927
|
type: "array",
|
|
5931
5928
|
minItems: 1,
|
|
@@ -5951,7 +5948,7 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
5951
5948
|
uniqueItems: !0,
|
|
5952
5949
|
default: []
|
|
5953
5950
|
}
|
|
5954
|
-
},
|
|
5951
|
+
}, Gr = ["object", "boolean"], Kr = {
|
|
5955
5952
|
$id: {
|
|
5956
5953
|
type: "string",
|
|
5957
5954
|
format: "uri-reference"
|
|
@@ -6050,18 +6047,18 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
6050
6047
|
anyOf: { $ref: "#/definitions/schemaArray" },
|
|
6051
6048
|
oneOf: { $ref: "#/definitions/schemaArray" },
|
|
6052
6049
|
not: { $ref: "#" }
|
|
6053
|
-
},
|
|
6054
|
-
$schema:
|
|
6055
|
-
$id:
|
|
6056
|
-
title:
|
|
6057
|
-
definitions:
|
|
6058
|
-
type:
|
|
6059
|
-
properties:
|
|
6050
|
+
}, qr = {
|
|
6051
|
+
$schema: Vr,
|
|
6052
|
+
$id: Hr,
|
|
6053
|
+
title: Ur,
|
|
6054
|
+
definitions: Wr,
|
|
6055
|
+
type: Gr,
|
|
6056
|
+
properties: Kr,
|
|
6060
6057
|
default: !0
|
|
6061
6058
|
};
|
|
6062
|
-
})),
|
|
6059
|
+
})), Yr = /* @__PURE__ */ i(((t, n) => {
|
|
6063
6060
|
Object.defineProperty(t, "__esModule", { value: !0 }), t.MissingRefError = t.ValidationError = t.CodeGen = t.Name = t.nil = t.stringify = t.str = t._ = t.KeywordCxt = t.Ajv = void 0;
|
|
6064
|
-
var r =
|
|
6061
|
+
var r = er(), i = Lr(), a = zr(), o = (Jr(), e(Br).default), s = ["/properties"], c = "http://json-schema.org/draft-07/schema", l = class extends r.default {
|
|
6065
6062
|
_addVocabularies() {
|
|
6066
6063
|
super._addVocabularies(), i.default.forEach((e) => this.addVocabulary(e)), this.opts.discriminator && this.addKeyword(a.default);
|
|
6067
6064
|
}
|
|
@@ -6075,14 +6072,14 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
6075
6072
|
}
|
|
6076
6073
|
};
|
|
6077
6074
|
t.Ajv = l, n.exports = t = l, n.exports.Ajv = l, Object.defineProperty(t, "__esModule", { value: !0 }), t.default = l;
|
|
6078
|
-
var u =
|
|
6075
|
+
var u = Rn();
|
|
6079
6076
|
Object.defineProperty(t, "KeywordCxt", {
|
|
6080
6077
|
enumerable: !0,
|
|
6081
6078
|
get: function() {
|
|
6082
6079
|
return u.KeywordCxt;
|
|
6083
6080
|
}
|
|
6084
6081
|
});
|
|
6085
|
-
var d =
|
|
6082
|
+
var d = Y();
|
|
6086
6083
|
Object.defineProperty(t, "_", {
|
|
6087
6084
|
enumerable: !0,
|
|
6088
6085
|
get: function() {
|
|
@@ -6114,21 +6111,21 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
6114
6111
|
return d.CodeGen;
|
|
6115
6112
|
}
|
|
6116
6113
|
});
|
|
6117
|
-
var f =
|
|
6114
|
+
var f = zn();
|
|
6118
6115
|
Object.defineProperty(t, "ValidationError", {
|
|
6119
6116
|
enumerable: !0,
|
|
6120
6117
|
get: function() {
|
|
6121
6118
|
return f.default;
|
|
6122
6119
|
}
|
|
6123
6120
|
});
|
|
6124
|
-
var p =
|
|
6121
|
+
var p = Bn();
|
|
6125
6122
|
Object.defineProperty(t, "MissingRefError", {
|
|
6126
6123
|
enumerable: !0,
|
|
6127
6124
|
get: function() {
|
|
6128
6125
|
return p.default;
|
|
6129
6126
|
}
|
|
6130
6127
|
});
|
|
6131
|
-
})),
|
|
6128
|
+
})), Xr = /* @__PURE__ */ i(((e) => {
|
|
6132
6129
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.formatNames = e.fastFormats = e.fullFormats = void 0;
|
|
6133
6130
|
function t(e, t) {
|
|
6134
6131
|
return {
|
|
@@ -6280,9 +6277,9 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
6280
6277
|
return !1;
|
|
6281
6278
|
}
|
|
6282
6279
|
}
|
|
6283
|
-
})),
|
|
6280
|
+
})), Zr = /* @__PURE__ */ i(((e) => {
|
|
6284
6281
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.formatLimitDefinition = void 0;
|
|
6285
|
-
var t =
|
|
6282
|
+
var t = Yr(), n = Y(), r = n.operators, i = {
|
|
6286
6283
|
formatMaximum: {
|
|
6287
6284
|
okStr: "<=",
|
|
6288
6285
|
ok: r.LTE,
|
|
@@ -6342,9 +6339,9 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
6342
6339
|
},
|
|
6343
6340
|
dependencies: ["format"]
|
|
6344
6341
|
}, e.default = (t) => (t.addKeyword(e.formatLimitDefinition), t);
|
|
6345
|
-
})),
|
|
6342
|
+
})), Qr = /* @__PURE__ */ i(((e, t) => {
|
|
6346
6343
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
6347
|
-
var n =
|
|
6344
|
+
var n = Xr(), r = Zr(), i = Y(), a = new i.Name("fullFormats"), o = new i.Name("fastFormats"), s = (e, t = { keywords: !0 }) => {
|
|
6348
6345
|
if (Array.isArray(t)) return c(e, t, n.fullFormats, a), e;
|
|
6349
6346
|
let [i, s] = t.mode === "fast" ? [n.fastFormats, o] : [n.fullFormats, a];
|
|
6350
6347
|
return c(e, t.formats || n.formatNames, i, s), t.keywords && (0, r.default)(e), e;
|
|
@@ -6360,7 +6357,7 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
6360
6357
|
for (let r of t) e.addFormat(r, n[r]);
|
|
6361
6358
|
}
|
|
6362
6359
|
t.exports = e = s, Object.defineProperty(e, "__esModule", { value: !0 }), e.default = s;
|
|
6363
|
-
})),
|
|
6360
|
+
})), $r = /* @__PURE__ */ i(((e, t) => {
|
|
6364
6361
|
t.exports = function(e) {
|
|
6365
6362
|
if (e && e.length) for (let r of e) {
|
|
6366
6363
|
let e;
|
|
@@ -6506,7 +6503,7 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
6506
6503
|
r.message = e;
|
|
6507
6504
|
}
|
|
6508
6505
|
};
|
|
6509
|
-
})),
|
|
6506
|
+
})), ei = /* @__PURE__ */ i(((e, t) => {
|
|
6510
6507
|
t.exports = function(e) {
|
|
6511
6508
|
if (e && e.length) for (let r of e) {
|
|
6512
6509
|
let e;
|
|
@@ -6515,178 +6512,924 @@ var _n = /* @__PURE__ */ new WeakMap(), vn = (e) => e === null || typeof e != "o
|
|
|
6515
6512
|
case "items":
|
|
6516
6513
|
e = "";
|
|
6517
6514
|
var t = r.params.limit;
|
|
6518
|
-
e += "
|
|
6515
|
+
e += "ne doit pas contenir plus de " + t + " élémént", t != 1 && (e += "s");
|
|
6519
6516
|
break;
|
|
6520
6517
|
case "additionalProperties":
|
|
6521
|
-
e = "
|
|
6518
|
+
e = "ne doit pas contenir de propriétés additionnelles";
|
|
6522
6519
|
break;
|
|
6523
6520
|
case "anyOf":
|
|
6524
|
-
e = "
|
|
6521
|
+
e = "doit correspondre à un schéma de \"anyOf\"";
|
|
6525
6522
|
break;
|
|
6526
6523
|
case "const":
|
|
6527
|
-
e = "
|
|
6524
|
+
e = "doit être égal à la constante";
|
|
6528
6525
|
break;
|
|
6529
6526
|
case "contains":
|
|
6530
|
-
e = "
|
|
6527
|
+
e = "doit contenir un élément valide";
|
|
6531
6528
|
break;
|
|
6532
6529
|
case "dependencies":
|
|
6533
6530
|
case "dependentRequired":
|
|
6534
6531
|
e = "";
|
|
6535
6532
|
var t = r.params.depsCount;
|
|
6536
|
-
e += "
|
|
6533
|
+
e += "doit avoir la propriété " + r.params.deps + " quand la propriété " + r.params.property + " est présente";
|
|
6537
6534
|
break;
|
|
6538
6535
|
case "discriminator":
|
|
6539
6536
|
switch (r.params.error) {
|
|
6540
6537
|
case "tag":
|
|
6541
|
-
e = "
|
|
6538
|
+
e = "tag \"" + r.params.tag + "\" must be string";
|
|
6542
6539
|
break;
|
|
6543
6540
|
case "mapping":
|
|
6544
|
-
e = "
|
|
6541
|
+
e = "value of tag \"" + r.params.tag + "\" must be in oneOf";
|
|
6545
6542
|
break;
|
|
6546
|
-
default: e = "
|
|
6543
|
+
default: e = "doit être valide selon le critère \"" + r.keyword + "\"";
|
|
6547
6544
|
}
|
|
6548
6545
|
break;
|
|
6549
6546
|
case "enum":
|
|
6550
|
-
e = "
|
|
6547
|
+
e = "doit être égal à une des valeurs prédéfinies";
|
|
6551
6548
|
break;
|
|
6552
6549
|
case "false schema":
|
|
6553
|
-
e = "
|
|
6550
|
+
e = "le schema est \"false\"";
|
|
6554
6551
|
break;
|
|
6555
6552
|
case "format":
|
|
6556
|
-
e = "
|
|
6553
|
+
e = "doit correspondre au format \"" + r.params.format + "\"";
|
|
6557
6554
|
break;
|
|
6558
6555
|
case "formatMaximum":
|
|
6559
6556
|
case "formatExclusiveMaximum":
|
|
6560
6557
|
e = "";
|
|
6561
6558
|
var n = r.params.comparison + " " + r.params.limit;
|
|
6562
|
-
e += "
|
|
6559
|
+
e += "doit être " + n;
|
|
6563
6560
|
break;
|
|
6564
6561
|
case "formatMinimum":
|
|
6565
6562
|
case "formatExclusiveMinimum":
|
|
6566
6563
|
e = "";
|
|
6567
6564
|
var n = r.params.comparison + " " + r.params.limit;
|
|
6568
|
-
e += "
|
|
6565
|
+
e += "doit être " + n;
|
|
6569
6566
|
break;
|
|
6570
6567
|
case "if":
|
|
6571
|
-
e = "
|
|
6568
|
+
e = "doit correspondre au schéma \"" + r.params.failingKeyword + "\"";
|
|
6572
6569
|
break;
|
|
6573
6570
|
case "maximum":
|
|
6574
6571
|
case "exclusiveMaximum":
|
|
6575
6572
|
e = "";
|
|
6576
6573
|
var n = r.params.comparison + " " + r.params.limit;
|
|
6577
|
-
e += "
|
|
6574
|
+
e += "doit être " + n;
|
|
6578
6575
|
break;
|
|
6579
6576
|
case "maxItems":
|
|
6580
6577
|
e = "";
|
|
6581
6578
|
var t = r.params.limit;
|
|
6582
|
-
e += "
|
|
6579
|
+
e += "ne doit pas contenir plus de " + t + " élément", t != 1 && (e += "s");
|
|
6583
6580
|
break;
|
|
6584
6581
|
case "maxLength":
|
|
6585
6582
|
e = "";
|
|
6586
6583
|
var t = r.params.limit;
|
|
6587
|
-
e += "
|
|
6584
|
+
e += "ne doit pas dépasser " + t + " caractère", t != 1 && (e += "s");
|
|
6588
6585
|
break;
|
|
6589
6586
|
case "maxProperties":
|
|
6590
6587
|
e = "";
|
|
6591
6588
|
var t = r.params.limit;
|
|
6592
|
-
e += "
|
|
6589
|
+
e += "ne doit pas contenir plus de " + t + " propriété", t != 1 && (e += "s");
|
|
6593
6590
|
break;
|
|
6594
6591
|
case "minimum":
|
|
6595
6592
|
case "exclusiveMinimum":
|
|
6596
6593
|
e = "";
|
|
6597
6594
|
var n = r.params.comparison + " " + r.params.limit;
|
|
6598
|
-
e += "
|
|
6595
|
+
e += "doit être " + n;
|
|
6599
6596
|
break;
|
|
6600
6597
|
case "minItems":
|
|
6601
6598
|
e = "";
|
|
6602
6599
|
var t = r.params.limit;
|
|
6603
|
-
e += "
|
|
6600
|
+
e += "ne doit pas contenir moins de " + t + " élément", t != 1 && (e += "s");
|
|
6604
6601
|
break;
|
|
6605
6602
|
case "minLength":
|
|
6606
6603
|
e = "";
|
|
6607
6604
|
var t = r.params.limit;
|
|
6608
|
-
e += "
|
|
6605
|
+
e += "ne doit pas faire moins de " + t + " caractère", t != 1 && (e += "s");
|
|
6609
6606
|
break;
|
|
6610
6607
|
case "minProperties":
|
|
6611
6608
|
e = "";
|
|
6612
6609
|
var t = r.params.limit;
|
|
6613
|
-
e += "
|
|
6610
|
+
e += "ne doit pas contenir moins de " + t + " propriété", t != 1 && (e += "s");
|
|
6614
6611
|
break;
|
|
6615
6612
|
case "multipleOf":
|
|
6616
|
-
e = "
|
|
6613
|
+
e = "doit être un multiple de " + r.params.multipleOf;
|
|
6617
6614
|
break;
|
|
6618
6615
|
case "not":
|
|
6619
|
-
e = "
|
|
6616
|
+
e = "est invalide selon le schéma \"not\"";
|
|
6620
6617
|
break;
|
|
6621
6618
|
case "oneOf":
|
|
6622
|
-
e = "
|
|
6619
|
+
e = "doit correspondre à exactement un schéma de \"oneOf\"";
|
|
6623
6620
|
break;
|
|
6624
6621
|
case "pattern":
|
|
6625
|
-
e = "
|
|
6622
|
+
e = "doit correspondre au format \"" + r.params.pattern + "\"";
|
|
6626
6623
|
break;
|
|
6627
6624
|
case "patternRequired":
|
|
6628
|
-
e = "
|
|
6625
|
+
e = "la propriété doit correspondre au format \"" + r.params.missingPattern + "\"";
|
|
6629
6626
|
break;
|
|
6630
6627
|
case "propertyNames":
|
|
6631
|
-
e = "
|
|
6628
|
+
e = "le nom de propriété est invalide";
|
|
6632
6629
|
break;
|
|
6633
6630
|
case "required":
|
|
6634
|
-
e = "
|
|
6631
|
+
e = "requiert la propriété " + r.params.missingProperty;
|
|
6635
6632
|
break;
|
|
6636
6633
|
case "type":
|
|
6637
|
-
e = "
|
|
6634
|
+
e = "doit être de type " + r.params.type;
|
|
6638
6635
|
break;
|
|
6639
6636
|
case "unevaluatedItems":
|
|
6640
6637
|
e = "";
|
|
6641
6638
|
var t = r.params.len;
|
|
6642
|
-
e += "
|
|
6639
|
+
e += "must NOT have more than " + t + " item", t != 1 && (e += "s");
|
|
6643
6640
|
break;
|
|
6644
6641
|
case "unevaluatedProperties":
|
|
6645
|
-
e = "
|
|
6642
|
+
e = "must NOT have unevaluated properties";
|
|
6646
6643
|
break;
|
|
6647
6644
|
case "uniqueItems":
|
|
6648
|
-
e = "
|
|
6645
|
+
e = "ne doit pas contenir de doublons (les éléments ## " + r.params.j + " et " + r.params.i + " sont identiques)";
|
|
6649
6646
|
break;
|
|
6650
|
-
default: e = "
|
|
6647
|
+
default: e = "doit être valide selon le critère \"" + r.keyword + "\"";
|
|
6651
6648
|
}
|
|
6652
6649
|
r.message = e;
|
|
6653
6650
|
}
|
|
6654
6651
|
};
|
|
6655
|
-
})),
|
|
6656
|
-
function
|
|
6657
|
-
|
|
6658
|
-
|
|
6659
|
-
|
|
6660
|
-
|
|
6661
|
-
|
|
6662
|
-
|
|
6663
|
-
|
|
6664
|
-
|
|
6665
|
-
|
|
6666
|
-
|
|
6667
|
-
|
|
6668
|
-
|
|
6669
|
-
|
|
6670
|
-
|
|
6671
|
-
|
|
6672
|
-
|
|
6673
|
-
|
|
6674
|
-
|
|
6675
|
-
|
|
6676
|
-
|
|
6677
|
-
|
|
6678
|
-
|
|
6679
|
-
|
|
6680
|
-
|
|
6681
|
-
|
|
6682
|
-
|
|
6683
|
-
|
|
6652
|
+
})), ti = /* @__PURE__ */ i(((e, t) => {
|
|
6653
|
+
t.exports = function(e) {
|
|
6654
|
+
if (e && e.length) for (let r of e) {
|
|
6655
|
+
let e;
|
|
6656
|
+
switch (r.keyword) {
|
|
6657
|
+
case "additionalItems":
|
|
6658
|
+
case "items":
|
|
6659
|
+
e = "";
|
|
6660
|
+
var t = r.params.limit;
|
|
6661
|
+
e += "は" + t + "以上あってはいけない";
|
|
6662
|
+
break;
|
|
6663
|
+
case "additionalProperties":
|
|
6664
|
+
e = "追加してはいけない";
|
|
6665
|
+
break;
|
|
6666
|
+
case "anyOf":
|
|
6667
|
+
e = "\"anyOf\"のスキーマとマッチしなくてはいけない";
|
|
6668
|
+
break;
|
|
6669
|
+
case "const":
|
|
6670
|
+
e = "must be equal to constant";
|
|
6671
|
+
break;
|
|
6672
|
+
case "contains":
|
|
6673
|
+
e = "must contain a valid item";
|
|
6674
|
+
break;
|
|
6675
|
+
case "dependencies":
|
|
6676
|
+
case "dependentRequired":
|
|
6677
|
+
e = "" + r.params.property + "がある場合、";
|
|
6678
|
+
var t = r.params.depsCount;
|
|
6679
|
+
e += "は" + r.params.deps + "をつけなければいけない";
|
|
6680
|
+
break;
|
|
6681
|
+
case "discriminator":
|
|
6682
|
+
switch (r.params.error) {
|
|
6683
|
+
case "tag":
|
|
6684
|
+
e = "tag \"" + r.params.tag + "\" must be string";
|
|
6685
|
+
break;
|
|
6686
|
+
case "mapping":
|
|
6687
|
+
e = "value of tag \"" + r.params.tag + "\" must be in oneOf";
|
|
6688
|
+
break;
|
|
6689
|
+
default: e = "must pass \"" + r.keyword + "\" keyword validation";
|
|
6690
|
+
}
|
|
6691
|
+
break;
|
|
6692
|
+
case "enum":
|
|
6693
|
+
e = "事前に定義された値のいずれかに等しくなければいけない";
|
|
6694
|
+
break;
|
|
6695
|
+
case "false schema":
|
|
6696
|
+
e = "boolean schema is false";
|
|
6697
|
+
break;
|
|
6698
|
+
case "format":
|
|
6699
|
+
e = "\"" + r.params.format + "\"形式に揃えなければいけない";
|
|
6700
|
+
break;
|
|
6701
|
+
case "formatMaximum":
|
|
6702
|
+
case "formatExclusiveMaximum":
|
|
6703
|
+
e = "";
|
|
6704
|
+
var n = r.params.comparison + " " + r.params.limit;
|
|
6705
|
+
e += "must be " + n;
|
|
6706
|
+
break;
|
|
6707
|
+
case "formatMinimum":
|
|
6708
|
+
case "formatExclusiveMinimum":
|
|
6709
|
+
e = "";
|
|
6710
|
+
var n = r.params.comparison + " " + r.params.limit;
|
|
6711
|
+
e += "must be " + n;
|
|
6712
|
+
break;
|
|
6713
|
+
case "if":
|
|
6714
|
+
e = "must match \"" + r.params.failingKeyword + "\" schema";
|
|
6715
|
+
break;
|
|
6716
|
+
case "maximum":
|
|
6717
|
+
case "exclusiveMaximum":
|
|
6718
|
+
e = "";
|
|
6719
|
+
var n = r.params.comparison + " " + r.params.limit;
|
|
6720
|
+
e += n + "でなければいけない";
|
|
6721
|
+
break;
|
|
6722
|
+
case "maxItems":
|
|
6723
|
+
e = "";
|
|
6724
|
+
var t = r.params.limit;
|
|
6725
|
+
e += "は" + t + "個以上であってはいけない";
|
|
6726
|
+
break;
|
|
6727
|
+
case "maxLength":
|
|
6728
|
+
e = "";
|
|
6729
|
+
var t = r.params.limit;
|
|
6730
|
+
e += "は" + t + "文字以上であってはいけない";
|
|
6731
|
+
break;
|
|
6732
|
+
case "maxProperties":
|
|
6733
|
+
e = "";
|
|
6734
|
+
var t = r.params.limit;
|
|
6735
|
+
e += "は" + t + "個以上のプロパティを有してはいけない";
|
|
6736
|
+
break;
|
|
6737
|
+
case "minimum":
|
|
6738
|
+
case "exclusiveMinimum":
|
|
6739
|
+
e = "";
|
|
6740
|
+
var n = r.params.comparison + " " + r.params.limit;
|
|
6741
|
+
e += n + "でなければいけない";
|
|
6742
|
+
break;
|
|
6743
|
+
case "minItems":
|
|
6744
|
+
e = "";
|
|
6745
|
+
var t = r.params.limit;
|
|
6746
|
+
e += "は" + t + "個以下であってはいけない";
|
|
6747
|
+
break;
|
|
6748
|
+
case "minLength":
|
|
6749
|
+
e = "";
|
|
6750
|
+
var t = r.params.limit;
|
|
6751
|
+
e += "は" + t + "文字以下であってはいけない";
|
|
6752
|
+
break;
|
|
6753
|
+
case "minProperties":
|
|
6754
|
+
e = "";
|
|
6755
|
+
var t = r.params.limit;
|
|
6756
|
+
e += "は" + t + "個以下のプロパティを有してはいけない";
|
|
6757
|
+
break;
|
|
6758
|
+
case "multipleOf":
|
|
6759
|
+
e = "" + r.params.multipleOf + "の倍数でなければいけない";
|
|
6760
|
+
break;
|
|
6761
|
+
case "not":
|
|
6762
|
+
e = "\"not\"のスキーマに従って有効としてはいけない";
|
|
6763
|
+
break;
|
|
6764
|
+
case "oneOf":
|
|
6765
|
+
e = "\"oneOf\"のスキーマと完全に一致しなくてはいけない";
|
|
6766
|
+
break;
|
|
6767
|
+
case "pattern":
|
|
6768
|
+
e = "\"" + r.params.pattern + "\"のパターンと一致しなければいけない";
|
|
6769
|
+
break;
|
|
6770
|
+
case "patternRequired":
|
|
6771
|
+
e = "must have property matching pattern \"" + r.params.missingPattern + "\"";
|
|
6772
|
+
break;
|
|
6773
|
+
case "propertyNames":
|
|
6774
|
+
e = "property name is invalid";
|
|
6775
|
+
break;
|
|
6776
|
+
case "required":
|
|
6777
|
+
e = "必要なプロパティ" + r.params.missingProperty + "がなければいけない";
|
|
6778
|
+
break;
|
|
6779
|
+
case "type":
|
|
6780
|
+
e = "" + r.params.type + "でなければいけない";
|
|
6781
|
+
break;
|
|
6782
|
+
case "unevaluatedItems":
|
|
6783
|
+
e = "";
|
|
6784
|
+
var t = r.params.len;
|
|
6785
|
+
e += "must NOT have more than " + t + " item", t != 1 && (e += "s");
|
|
6786
|
+
break;
|
|
6787
|
+
case "unevaluatedProperties":
|
|
6788
|
+
e = "must NOT have unevaluated properties";
|
|
6789
|
+
break;
|
|
6790
|
+
case "uniqueItems":
|
|
6791
|
+
e = "重複するアイテムがあってはいけない(" + r.params.j + "と" + r.params.i + "は同じである)";
|
|
6792
|
+
break;
|
|
6793
|
+
default: e = "must pass \"" + r.keyword + "\" keyword validation";
|
|
6794
|
+
}
|
|
6795
|
+
r.message = e;
|
|
6796
|
+
}
|
|
6797
|
+
};
|
|
6798
|
+
})), ni = /* @__PURE__ */ i(((e, t) => {
|
|
6799
|
+
t.exports = function(e) {
|
|
6800
|
+
if (e && e.length) for (let r of e) {
|
|
6801
|
+
let e;
|
|
6802
|
+
switch (r.keyword) {
|
|
6803
|
+
case "additionalItems":
|
|
6804
|
+
case "items":
|
|
6805
|
+
e = "";
|
|
6806
|
+
var t = r.params.limit;
|
|
6807
|
+
e += " 항목은 아이템을 " + t + "개 이상 가질 수 없습니다";
|
|
6808
|
+
break;
|
|
6809
|
+
case "additionalProperties":
|
|
6810
|
+
e = "추가적인 속성은 허용되지 않습니다";
|
|
6811
|
+
break;
|
|
6812
|
+
case "anyOf":
|
|
6813
|
+
e = "\"anyOf\"의 스키마와 일치해야 합니다";
|
|
6814
|
+
break;
|
|
6815
|
+
case "const":
|
|
6816
|
+
e = "상수와 같아야합니다";
|
|
6817
|
+
break;
|
|
6818
|
+
case "contains":
|
|
6819
|
+
e = "올바른 아이템을 포함해야 합니다";
|
|
6820
|
+
break;
|
|
6821
|
+
case "dependencies":
|
|
6822
|
+
case "dependentRequired":
|
|
6823
|
+
e = "";
|
|
6824
|
+
var t = r.params.depsCount;
|
|
6825
|
+
e += r.params.property + "속성이 있는 경우, " + r.params.deps + " 속성이 있어야합니다";
|
|
6826
|
+
break;
|
|
6827
|
+
case "discriminator":
|
|
6828
|
+
switch (r.params.error) {
|
|
6829
|
+
case "tag":
|
|
6830
|
+
e = "\"" + r.params.tag + "\"태그는 반드시 문자열이여야 합니다";
|
|
6831
|
+
break;
|
|
6832
|
+
case "mapping":
|
|
6833
|
+
e = "\"" + r.params.tag + "\"태그의 값은 반드시 oneOf에 있어야 합니다";
|
|
6834
|
+
break;
|
|
6835
|
+
default: e = "\"" + r.keyword + "\"키워드 검사를 통과해야 합니다";
|
|
6836
|
+
}
|
|
6837
|
+
break;
|
|
6838
|
+
case "enum":
|
|
6839
|
+
e = "미리 정의된 값중 하나여야 합니다";
|
|
6840
|
+
break;
|
|
6841
|
+
case "false schema":
|
|
6842
|
+
e = "boolean 스키마는 올바르지 않습니다";
|
|
6843
|
+
break;
|
|
6844
|
+
case "format":
|
|
6845
|
+
e = "\"" + r.params.format + "\" 포맷과 일치해야 합니다";
|
|
6846
|
+
break;
|
|
6847
|
+
case "formatMaximum":
|
|
6848
|
+
case "formatExclusiveMaximum":
|
|
6849
|
+
e = "";
|
|
6850
|
+
var n = r.params.comparison + " " + r.params.limit;
|
|
6851
|
+
e += " " + n + " 이여야 합니다";
|
|
6852
|
+
break;
|
|
6853
|
+
case "formatMinimum":
|
|
6854
|
+
case "formatExclusiveMinimum":
|
|
6855
|
+
e = "";
|
|
6856
|
+
var n = r.params.comparison + " " + r.params.limit;
|
|
6857
|
+
e += " " + n + " 이여야 합니다";
|
|
6858
|
+
break;
|
|
6859
|
+
case "if":
|
|
6860
|
+
e = "\"" + r.params.failingKeyword + "\" 스키마와 일치해야 합니다";
|
|
6861
|
+
break;
|
|
6862
|
+
case "maximum":
|
|
6863
|
+
case "exclusiveMaximum":
|
|
6864
|
+
e = "";
|
|
6865
|
+
var n = r.params.comparison + " " + r.params.limit;
|
|
6866
|
+
e += " " + n + " 이여야 합니다";
|
|
6867
|
+
break;
|
|
6868
|
+
case "maxItems":
|
|
6869
|
+
e = "";
|
|
6870
|
+
var t = r.params.limit;
|
|
6871
|
+
e += "아이템이 최대 " + t + "개이여야 합니다";
|
|
6872
|
+
break;
|
|
6873
|
+
case "maxLength":
|
|
6874
|
+
e = "";
|
|
6875
|
+
var t = r.params.limit;
|
|
6876
|
+
e += "최대 " + t + "글자여야 합니다";
|
|
6877
|
+
break;
|
|
6878
|
+
case "maxProperties":
|
|
6879
|
+
e = "";
|
|
6880
|
+
var t = r.params.limit;
|
|
6881
|
+
e += "속성은 최대 " + t + "개 이내여야 합니다";
|
|
6882
|
+
break;
|
|
6883
|
+
case "minimum":
|
|
6884
|
+
case "exclusiveMinimum":
|
|
6885
|
+
e = "";
|
|
6886
|
+
var n = r.params.comparison + " " + r.params.limit;
|
|
6887
|
+
e += " " + n + " 이여야 합니다";
|
|
6888
|
+
break;
|
|
6889
|
+
case "minItems":
|
|
6890
|
+
e = "";
|
|
6891
|
+
var t = r.params.limit;
|
|
6892
|
+
e += "아이템이 최소 " + t + "개이여야 합니다";
|
|
6893
|
+
break;
|
|
6894
|
+
case "minLength":
|
|
6895
|
+
e = "";
|
|
6896
|
+
var t = r.params.limit;
|
|
6897
|
+
e += "최소 " + t + "글자여야 합니다";
|
|
6898
|
+
break;
|
|
6899
|
+
case "minProperties":
|
|
6900
|
+
e = "";
|
|
6901
|
+
var t = r.params.limit;
|
|
6902
|
+
e += "속성은 최소 " + t + "개 이상이여야 합니다";
|
|
6903
|
+
break;
|
|
6904
|
+
case "multipleOf":
|
|
6905
|
+
e = "" + r.params.multipleOf + "의 배수여야 합니다";
|
|
6906
|
+
break;
|
|
6907
|
+
case "not":
|
|
6908
|
+
e = "\"not\"스키마에 따라 유효하지 않아야 합니다";
|
|
6909
|
+
break;
|
|
6910
|
+
case "oneOf":
|
|
6911
|
+
e = "\"oneOf\" 스키마중 하나와 정확하게 일치해야 합니다";
|
|
6912
|
+
break;
|
|
6913
|
+
case "pattern":
|
|
6914
|
+
e = "\"" + r.params.pattern + "\"패턴과 일치해야 합니다";
|
|
6915
|
+
break;
|
|
6916
|
+
case "patternRequired":
|
|
6917
|
+
e = "\"" + r.params.missingPattern + "\"패턴과 일치하는 속성을 가져야 합니다";
|
|
6918
|
+
break;
|
|
6919
|
+
case "propertyNames":
|
|
6920
|
+
e = "속성명이 올바르지 않습니다";
|
|
6921
|
+
break;
|
|
6922
|
+
case "required":
|
|
6923
|
+
e = "" + r.params.missingProperty + " 속성은 필수입니다";
|
|
6924
|
+
break;
|
|
6925
|
+
case "type":
|
|
6926
|
+
e = "" + r.params.type + "이여야 합니다";
|
|
6927
|
+
break;
|
|
6928
|
+
case "unevaluatedItems":
|
|
6929
|
+
e = "";
|
|
6930
|
+
var t = r.params.len;
|
|
6931
|
+
e += "항목이 " + t + "개 아이템을 초과하면 안됩니다";
|
|
6932
|
+
break;
|
|
6933
|
+
case "unevaluatedProperties":
|
|
6934
|
+
e = "평가되지 않은 속성이 없어야합니다.";
|
|
6935
|
+
break;
|
|
6936
|
+
case "uniqueItems":
|
|
6937
|
+
e = "중복 아이템이 없어야 합니다 (아이템" + r.params.j + "과 아이템" + r.params.i + "가 동일합니다)";
|
|
6938
|
+
break;
|
|
6939
|
+
default: e = "\"" + r.keyword + "\"키워드 검사를 통과해야 합니다";
|
|
6940
|
+
}
|
|
6941
|
+
r.message = e;
|
|
6942
|
+
}
|
|
6943
|
+
};
|
|
6944
|
+
})), ri = /* @__PURE__ */ i(((e, t) => {
|
|
6945
|
+
t.exports = function(e) {
|
|
6946
|
+
if (e && e.length) for (let r of e) {
|
|
6947
|
+
let e;
|
|
6948
|
+
switch (r.keyword) {
|
|
6949
|
+
case "additionalItems":
|
|
6950
|
+
case "items":
|
|
6951
|
+
e = "";
|
|
6952
|
+
var t = r.params.limit;
|
|
6953
|
+
e += "должно иметь не более, чем " + t + " элемент", t >= 2 && t <= 4 ? e += "а" : t != 1 && (e += "ов");
|
|
6954
|
+
break;
|
|
6955
|
+
case "additionalProperties":
|
|
6956
|
+
e = "не должно иметь дополнительных полей";
|
|
6957
|
+
break;
|
|
6958
|
+
case "anyOf":
|
|
6959
|
+
e = "должно соответствовать одной их схем в \"anyOf\"";
|
|
6960
|
+
break;
|
|
6961
|
+
case "const":
|
|
6962
|
+
e = "должно быть равно заданному значению";
|
|
6963
|
+
break;
|
|
6964
|
+
case "contains":
|
|
6965
|
+
e = "должно содержать значение соответствующее схеме";
|
|
6966
|
+
break;
|
|
6967
|
+
case "dependencies":
|
|
6968
|
+
case "dependentRequired":
|
|
6969
|
+
e = "";
|
|
6970
|
+
var t = r.params.depsCount;
|
|
6971
|
+
e += "должно иметь пол", e += t == 1 ? "е" : "я", e += " " + r.params.deps + ", когда присутствует поле " + r.params.property;
|
|
6972
|
+
break;
|
|
6973
|
+
case "discriminator":
|
|
6974
|
+
switch (r.params.error) {
|
|
6975
|
+
case "tag":
|
|
6976
|
+
e = "поле \"" + r.params.tag + "\" должно быть строкой";
|
|
6977
|
+
break;
|
|
6978
|
+
case "mapping":
|
|
6979
|
+
e = "значение поля \"" + r.params.tag + "\" должно быть в одной из oneOf схем ";
|
|
6980
|
+
break;
|
|
6981
|
+
default: e = "должно соответствовать правилу \"" + r.keyword + "\"";
|
|
6982
|
+
}
|
|
6983
|
+
break;
|
|
6984
|
+
case "enum":
|
|
6985
|
+
e = "должно быть равно одному из разрешенных значений";
|
|
6986
|
+
break;
|
|
6987
|
+
case "false schema":
|
|
6988
|
+
e = "схема равна false";
|
|
6989
|
+
break;
|
|
6990
|
+
case "format":
|
|
6991
|
+
e = "должно соответствовать формату \"" + r.params.format + "\"";
|
|
6992
|
+
break;
|
|
6993
|
+
case "formatMaximum":
|
|
6994
|
+
case "formatExclusiveMaximum":
|
|
6995
|
+
e = "";
|
|
6996
|
+
var n = r.params.comparison + " " + r.params.limit;
|
|
6997
|
+
e += "должно быть " + n;
|
|
6998
|
+
break;
|
|
6999
|
+
case "formatMinimum":
|
|
7000
|
+
case "formatExclusiveMinimum":
|
|
7001
|
+
e = "";
|
|
7002
|
+
var n = r.params.comparison + " " + r.params.limit;
|
|
7003
|
+
e += "должно быть " + n;
|
|
7004
|
+
break;
|
|
7005
|
+
case "if":
|
|
7006
|
+
e = "должно соответствовать схемe \"" + r.params.failingKeyword + "\"";
|
|
7007
|
+
break;
|
|
7008
|
+
case "maximum":
|
|
7009
|
+
case "exclusiveMaximum":
|
|
7010
|
+
e = "";
|
|
7011
|
+
var n = r.params.comparison + " " + r.params.limit;
|
|
7012
|
+
e += "должно быть " + n;
|
|
7013
|
+
break;
|
|
7014
|
+
case "maxItems":
|
|
7015
|
+
e = "";
|
|
7016
|
+
var t = r.params.limit;
|
|
7017
|
+
e += "должно иметь не более, чем " + t + " элемент", t >= 2 && t <= 4 ? e += "а" : t != 1 && (e += "ов");
|
|
7018
|
+
break;
|
|
7019
|
+
case "maxLength":
|
|
7020
|
+
e = "";
|
|
7021
|
+
var t = r.params.limit;
|
|
7022
|
+
e += "должно быть не длиннее, чем " + t + " символ", t >= 2 && t <= 4 ? e += "а" : t != 1 && (e += "ов");
|
|
7023
|
+
break;
|
|
7024
|
+
case "maxProperties":
|
|
7025
|
+
e = "";
|
|
7026
|
+
var t = r.params.limit;
|
|
7027
|
+
e += "должно иметь не более, чем " + t + " пол", e += t == 1 ? "е" : t >= 2 && t <= 4 ? "я" : "ей";
|
|
7028
|
+
break;
|
|
7029
|
+
case "minimum":
|
|
7030
|
+
case "exclusiveMinimum":
|
|
7031
|
+
e = "";
|
|
7032
|
+
var n = r.params.comparison + " " + r.params.limit;
|
|
7033
|
+
e += "должно быть " + n;
|
|
7034
|
+
break;
|
|
7035
|
+
case "minItems":
|
|
7036
|
+
e = "";
|
|
7037
|
+
var t = r.params.limit;
|
|
7038
|
+
e += "должно иметь не менее, чем " + t + " элемент", t >= 2 && t <= 4 ? e += "а" : t != 1 && (e += "ов");
|
|
7039
|
+
break;
|
|
7040
|
+
case "minLength":
|
|
7041
|
+
e = "";
|
|
7042
|
+
var t = r.params.limit;
|
|
7043
|
+
e += "должно быть не короче, чем " + t + " символ", t >= 2 && t <= 4 ? e += "а" : t != 1 && (e += "ов");
|
|
7044
|
+
break;
|
|
7045
|
+
case "minProperties":
|
|
7046
|
+
e = "";
|
|
7047
|
+
var t = r.params.limit;
|
|
7048
|
+
e += "должно иметь не менее, чем " + t + " пол", e += t == 1 ? "е" : t >= 2 && t <= 4 ? "я" : "ей";
|
|
7049
|
+
break;
|
|
7050
|
+
case "multipleOf":
|
|
7051
|
+
e = "должно быть кратным " + r.params.multipleOf;
|
|
7052
|
+
break;
|
|
7053
|
+
case "not":
|
|
7054
|
+
e = "должно не соответствовать схеме в \"not\"";
|
|
7055
|
+
break;
|
|
7056
|
+
case "oneOf":
|
|
7057
|
+
e = "должно соответствовать в точности одной схемe в \"oneOf\"";
|
|
7058
|
+
break;
|
|
7059
|
+
case "pattern":
|
|
7060
|
+
e = "должно соответствовать образцу \"" + r.params.pattern + "\"";
|
|
7061
|
+
break;
|
|
7062
|
+
case "patternRequired":
|
|
7063
|
+
e = "должно иметь поле, соответствующее образцу \"" + r.params.missingPattern + "\"";
|
|
7064
|
+
break;
|
|
7065
|
+
case "propertyNames":
|
|
7066
|
+
e = "имя поля не соответствует схеме";
|
|
7067
|
+
break;
|
|
7068
|
+
case "required":
|
|
7069
|
+
e = "должно иметь обязательное поле " + r.params.missingProperty;
|
|
7070
|
+
break;
|
|
7071
|
+
case "type":
|
|
7072
|
+
e = "должно быть " + r.params.type;
|
|
7073
|
+
break;
|
|
7074
|
+
case "unevaluatedItems":
|
|
7075
|
+
e = "";
|
|
7076
|
+
var t = r.params.len;
|
|
7077
|
+
e += "должно иметь не более, чем " + t + " элемент", t >= 2 && t <= 4 ? e += "а" : t != 1 && (e += "ов");
|
|
7078
|
+
break;
|
|
7079
|
+
case "unevaluatedProperties":
|
|
7080
|
+
e = "не должно иметь непроверенных полей";
|
|
7081
|
+
break;
|
|
7082
|
+
case "uniqueItems":
|
|
7083
|
+
e = "не должно иметь повторяющихся элементов (элементы " + r.params.j + " и " + r.params.i + " идентичны)";
|
|
7084
|
+
break;
|
|
7085
|
+
default: e = "должно соответствовать правилу \"" + r.keyword + "\"";
|
|
7086
|
+
}
|
|
7087
|
+
r.message = e;
|
|
7088
|
+
}
|
|
7089
|
+
};
|
|
7090
|
+
})), ii = /* @__PURE__ */ i(((e, t) => {
|
|
7091
|
+
t.exports = function(e) {
|
|
7092
|
+
if (e && e.length) for (let r of e) {
|
|
7093
|
+
let e;
|
|
7094
|
+
switch (r.keyword) {
|
|
7095
|
+
case "additionalItems":
|
|
7096
|
+
case "items":
|
|
7097
|
+
e = "";
|
|
7098
|
+
var t = r.params.limit;
|
|
7099
|
+
e += "不可以超過" + t + "個元素";
|
|
7100
|
+
break;
|
|
7101
|
+
case "additionalProperties":
|
|
7102
|
+
e = "不可以有額外的屬性";
|
|
7103
|
+
break;
|
|
7104
|
+
case "anyOf":
|
|
7105
|
+
e = "不符合 anyOf 指定的模式";
|
|
7106
|
+
break;
|
|
7107
|
+
case "const":
|
|
7108
|
+
e = "應該等於常數";
|
|
7109
|
+
break;
|
|
7110
|
+
case "contains":
|
|
7111
|
+
e = "應該包含一個有效元素";
|
|
7112
|
+
break;
|
|
7113
|
+
case "dependencies":
|
|
7114
|
+
case "dependentRequired":
|
|
7115
|
+
e = "";
|
|
7116
|
+
var t = r.params.depsCount;
|
|
7117
|
+
e += "應該要有屬性" + r.params.property + "的依賴屬性" + r.params.deps;
|
|
7118
|
+
break;
|
|
7119
|
+
case "discriminator":
|
|
7120
|
+
switch (r.params.error) {
|
|
7121
|
+
case "tag":
|
|
7122
|
+
e = "標籤 \"" + r.params.tag + "\" 的類型必須是字串";
|
|
7123
|
+
break;
|
|
7124
|
+
case "mapping":
|
|
7125
|
+
e = "標籤 \"" + r.params.tag + "\" 必須在 oneOf 其中之一";
|
|
7126
|
+
break;
|
|
7127
|
+
default: e = "應該通過 \"" + r.keyword + " 關鍵詞檢驗\"";
|
|
7128
|
+
}
|
|
7129
|
+
break;
|
|
7130
|
+
case "enum":
|
|
7131
|
+
e = "應該要在預設的值之中";
|
|
7132
|
+
break;
|
|
7133
|
+
case "false schema":
|
|
7134
|
+
e = "布林模式不正確";
|
|
7135
|
+
break;
|
|
7136
|
+
case "format":
|
|
7137
|
+
e = "應該要符合" + r.params.format + "格式";
|
|
7138
|
+
break;
|
|
7139
|
+
case "formatMaximum":
|
|
7140
|
+
case "formatExclusiveMaximum":
|
|
7141
|
+
e = "";
|
|
7142
|
+
var n = r.params.comparison + " " + r.params.limit;
|
|
7143
|
+
e += "應該是 " + n;
|
|
7144
|
+
break;
|
|
7145
|
+
case "formatMinimum":
|
|
7146
|
+
case "formatExclusiveMinimum":
|
|
7147
|
+
e = "";
|
|
7148
|
+
var n = r.params.comparison + " " + r.params.limit;
|
|
7149
|
+
e += "應該是 " + n;
|
|
7150
|
+
break;
|
|
7151
|
+
case "if":
|
|
7152
|
+
e = "應該符合 \"" + r.params.failingKeyword + "\" schema";
|
|
7153
|
+
break;
|
|
7154
|
+
case "maximum":
|
|
7155
|
+
case "exclusiveMaximum":
|
|
7156
|
+
e = "";
|
|
7157
|
+
var n = r.params.comparison + " " + r.params.limit;
|
|
7158
|
+
e += "應該要 " + n;
|
|
7159
|
+
break;
|
|
7160
|
+
case "maxItems":
|
|
7161
|
+
e = "";
|
|
7162
|
+
var t = r.params.limit;
|
|
7163
|
+
e += "不應該多於 " + t + " 個";
|
|
7164
|
+
break;
|
|
7165
|
+
case "maxLength":
|
|
7166
|
+
e = "";
|
|
7167
|
+
var t = r.params.limit;
|
|
7168
|
+
e += "不應該多於 " + t + " 個字元";
|
|
7169
|
+
break;
|
|
7170
|
+
case "maxProperties":
|
|
7171
|
+
e = "";
|
|
7172
|
+
var t = r.params.limit;
|
|
7173
|
+
e += "不應該多於 " + t + " 個屬性";
|
|
7174
|
+
break;
|
|
7175
|
+
case "minimum":
|
|
7176
|
+
case "exclusiveMinimum":
|
|
7177
|
+
e = "";
|
|
7178
|
+
var n = r.params.comparison + " " + r.params.limit;
|
|
7179
|
+
e += "應該要 " + n;
|
|
7180
|
+
break;
|
|
7181
|
+
case "minItems":
|
|
7182
|
+
e = "";
|
|
7183
|
+
var t = r.params.limit;
|
|
7184
|
+
e += "不應該少於 " + t + " 個";
|
|
7185
|
+
break;
|
|
7186
|
+
case "minLength":
|
|
7187
|
+
e = "";
|
|
7188
|
+
var t = r.params.limit;
|
|
7189
|
+
e += "不應該少於 " + t + " 個字元";
|
|
7190
|
+
break;
|
|
7191
|
+
case "minProperties":
|
|
7192
|
+
e = "";
|
|
7193
|
+
var t = r.params.limit;
|
|
7194
|
+
e += "不應該少於 " + t + " 個屬性";
|
|
7195
|
+
break;
|
|
7196
|
+
case "multipleOf":
|
|
7197
|
+
e = "應該是 " + r.params.multipleOf + " 的整數倍";
|
|
7198
|
+
break;
|
|
7199
|
+
case "not":
|
|
7200
|
+
e = "不應該符合 \"not\" schema";
|
|
7201
|
+
break;
|
|
7202
|
+
case "oneOf":
|
|
7203
|
+
e = "只能符合一個 \"oneOf\" 中的 schema";
|
|
7204
|
+
break;
|
|
7205
|
+
case "pattern":
|
|
7206
|
+
e = "應該符合模式 \"" + r.params.pattern + "\"";
|
|
7207
|
+
break;
|
|
7208
|
+
case "patternRequired":
|
|
7209
|
+
e = "應該有屬性對應模式 " + r.params.missingPattern;
|
|
7210
|
+
break;
|
|
7211
|
+
case "propertyNames":
|
|
7212
|
+
e = "属性名 無效";
|
|
7213
|
+
break;
|
|
7214
|
+
case "required":
|
|
7215
|
+
e = "應該有必須屬性 " + r.params.missingProperty;
|
|
7216
|
+
break;
|
|
7217
|
+
case "type":
|
|
7218
|
+
e = "應該是 " + r.params.type + " 類型";
|
|
7219
|
+
break;
|
|
7220
|
+
case "unevaluatedItems":
|
|
7221
|
+
e = "";
|
|
7222
|
+
var t = r.params.len;
|
|
7223
|
+
e += " 的元素不可以超過 " + t + " 個";
|
|
7224
|
+
break;
|
|
7225
|
+
case "unevaluatedProperties":
|
|
7226
|
+
e = "不應該有未驗證的屬性";
|
|
7227
|
+
break;
|
|
7228
|
+
case "uniqueItems":
|
|
7229
|
+
e = "不應該有重複項目 (第 " + r.params.j + " 項和第 " + r.params.i + " 項是重複的)";
|
|
7230
|
+
break;
|
|
7231
|
+
default: e = "應該通過 \"" + r.keyword + " 關鍵詞檢驗\"";
|
|
7232
|
+
}
|
|
7233
|
+
r.message = e;
|
|
7234
|
+
}
|
|
7235
|
+
};
|
|
7236
|
+
})), ai = /* @__PURE__ */ i(((e, t) => {
|
|
7237
|
+
t.exports = function(e) {
|
|
7238
|
+
if (e && e.length) for (let r of e) {
|
|
7239
|
+
let e;
|
|
7240
|
+
switch (r.keyword) {
|
|
7241
|
+
case "additionalItems":
|
|
7242
|
+
case "items":
|
|
7243
|
+
e = "";
|
|
7244
|
+
var t = r.params.limit;
|
|
7245
|
+
e += "不允许超过" + t + "个元素";
|
|
7246
|
+
break;
|
|
7247
|
+
case "additionalProperties":
|
|
7248
|
+
e = "不允许有额外的属性";
|
|
7249
|
+
break;
|
|
7250
|
+
case "anyOf":
|
|
7251
|
+
e = "数据应为 anyOf 所指定的其中一个";
|
|
7252
|
+
break;
|
|
7253
|
+
case "const":
|
|
7254
|
+
e = "应当等于常量";
|
|
7255
|
+
break;
|
|
7256
|
+
case "contains":
|
|
7257
|
+
e = "应当包含一个有效项";
|
|
7258
|
+
break;
|
|
7259
|
+
case "dependencies":
|
|
7260
|
+
case "dependentRequired":
|
|
7261
|
+
e = "";
|
|
7262
|
+
var t = r.params.depsCount;
|
|
7263
|
+
e += "应当拥有属性" + r.params.property + "的依赖属性" + r.params.deps;
|
|
7264
|
+
break;
|
|
7265
|
+
case "discriminator":
|
|
7266
|
+
switch (r.params.error) {
|
|
7267
|
+
case "tag":
|
|
7268
|
+
e = "标签 \"" + r.params.tag + "\" 的类型必须为字符串";
|
|
7269
|
+
break;
|
|
7270
|
+
case "mapping":
|
|
7271
|
+
e = "标签 \"" + r.params.tag + "\" 的值必须在 oneOf 之中";
|
|
7272
|
+
break;
|
|
7273
|
+
default: e = "应当通过 \"" + r.keyword + " 关键词校验\"";
|
|
7274
|
+
}
|
|
7275
|
+
break;
|
|
7276
|
+
case "enum":
|
|
7277
|
+
e = "应当是预设定的枚举值之一";
|
|
7278
|
+
break;
|
|
7279
|
+
case "false schema":
|
|
7280
|
+
e = "布尔模式出错";
|
|
7281
|
+
break;
|
|
7282
|
+
case "format":
|
|
7283
|
+
e = "应当匹配格式 \"" + r.params.format + "\"";
|
|
7284
|
+
break;
|
|
7285
|
+
case "formatMaximum":
|
|
7286
|
+
case "formatExclusiveMaximum":
|
|
7287
|
+
e = "";
|
|
7288
|
+
var n = r.params.comparison + " " + r.params.limit;
|
|
7289
|
+
e += "应当是 " + n;
|
|
7290
|
+
break;
|
|
7291
|
+
case "formatMinimum":
|
|
7292
|
+
case "formatExclusiveMinimum":
|
|
7293
|
+
e = "";
|
|
7294
|
+
var n = r.params.comparison + " " + r.params.limit;
|
|
7295
|
+
e += "应当是 " + n;
|
|
7296
|
+
break;
|
|
7297
|
+
case "if":
|
|
7298
|
+
e = "应当匹配模式 \"" + r.params.failingKeyword + "\" ";
|
|
7299
|
+
break;
|
|
7300
|
+
case "maximum":
|
|
7301
|
+
case "exclusiveMaximum":
|
|
7302
|
+
e = "";
|
|
7303
|
+
var n = r.params.comparison + " " + r.params.limit;
|
|
7304
|
+
e += "应当为 " + n;
|
|
7305
|
+
break;
|
|
7306
|
+
case "maxItems":
|
|
7307
|
+
e = "";
|
|
7308
|
+
var t = r.params.limit;
|
|
7309
|
+
e += "不应多于 " + t + " 个项";
|
|
7310
|
+
break;
|
|
7311
|
+
case "maxLength":
|
|
7312
|
+
e = "";
|
|
7313
|
+
var t = r.params.limit;
|
|
7314
|
+
e += "不应多于 " + t + " 个字符";
|
|
7315
|
+
break;
|
|
7316
|
+
case "maxProperties":
|
|
7317
|
+
e = "";
|
|
7318
|
+
var t = r.params.limit;
|
|
7319
|
+
e += "不应有多于 " + t + " 个属性";
|
|
7320
|
+
break;
|
|
7321
|
+
case "minimum":
|
|
7322
|
+
case "exclusiveMinimum":
|
|
7323
|
+
e = "";
|
|
7324
|
+
var n = r.params.comparison + " " + r.params.limit;
|
|
7325
|
+
e += "应当为 " + n;
|
|
7326
|
+
break;
|
|
7327
|
+
case "minItems":
|
|
7328
|
+
e = "";
|
|
7329
|
+
var t = r.params.limit;
|
|
7330
|
+
e += "不应少于 " + t + " 个项";
|
|
7331
|
+
break;
|
|
7332
|
+
case "minLength":
|
|
7333
|
+
e = "";
|
|
7334
|
+
var t = r.params.limit;
|
|
7335
|
+
e += "不应少于 " + t + " 个字符";
|
|
7336
|
+
break;
|
|
7337
|
+
case "minProperties":
|
|
7338
|
+
e = "";
|
|
7339
|
+
var t = r.params.limit;
|
|
7340
|
+
e += "不应有少于 " + t + " 个属性";
|
|
7341
|
+
break;
|
|
7342
|
+
case "multipleOf":
|
|
7343
|
+
e = "应当是 " + r.params.multipleOf + " 的整数倍";
|
|
7344
|
+
break;
|
|
7345
|
+
case "not":
|
|
7346
|
+
e = "不应当匹配 \"not\" schema";
|
|
7347
|
+
break;
|
|
7348
|
+
case "oneOf":
|
|
7349
|
+
e = "只能匹配一个 \"oneOf\" 中的 schema";
|
|
7350
|
+
break;
|
|
7351
|
+
case "pattern":
|
|
7352
|
+
e = "应当匹配模式 \"" + r.params.pattern + "\"";
|
|
7353
|
+
break;
|
|
7354
|
+
case "patternRequired":
|
|
7355
|
+
e = "应当有属性匹配模式 " + r.params.missingPattern;
|
|
7356
|
+
break;
|
|
7357
|
+
case "propertyNames":
|
|
7358
|
+
e = "属性名 无效";
|
|
7359
|
+
break;
|
|
7360
|
+
case "required":
|
|
7361
|
+
e = "应当有必需属性 " + r.params.missingProperty;
|
|
7362
|
+
break;
|
|
7363
|
+
case "type":
|
|
7364
|
+
e = "应当是 " + r.params.type + " 类型";
|
|
7365
|
+
break;
|
|
7366
|
+
case "unevaluatedItems":
|
|
7367
|
+
e = "";
|
|
7368
|
+
var t = r.params.len;
|
|
7369
|
+
e += " 不允许有超过 " + t + " 个元素";
|
|
7370
|
+
break;
|
|
7371
|
+
case "unevaluatedProperties":
|
|
7372
|
+
e = "不允许存在未求值的属性";
|
|
7373
|
+
break;
|
|
7374
|
+
case "uniqueItems":
|
|
7375
|
+
e = "不应当含有重复项 (第 " + r.params.j + " 项与第 " + r.params.i + " 项是重复的)";
|
|
7376
|
+
break;
|
|
7377
|
+
default: e = "应当通过 \"" + r.keyword + " 关键词校验\"";
|
|
7378
|
+
}
|
|
7379
|
+
r.message = e;
|
|
7380
|
+
}
|
|
7381
|
+
};
|
|
7382
|
+
})), oi = /* @__PURE__ */ n(Yr(), 1), si = /* @__PURE__ */ n(Qr(), 1), ci = /* @__PURE__ */ n($r(), 1), li = /* @__PURE__ */ n(ei(), 1), ui = /* @__PURE__ */ n(ti(), 1), di = /* @__PURE__ */ n(ni(), 1), fi = /* @__PURE__ */ n(ri(), 1), pi = /* @__PURE__ */ n(ii(), 1), mi = /* @__PURE__ */ n(ai(), 1), hi = {
|
|
7383
|
+
en: ci.default,
|
|
7384
|
+
"zh-CN": mi.default,
|
|
7385
|
+
"zh-TW": pi.default,
|
|
7386
|
+
ja: ui.default,
|
|
7387
|
+
ko: di.default,
|
|
7388
|
+
ru: fi.default,
|
|
7389
|
+
fr: li.default
|
|
7390
|
+
};
|
|
7391
|
+
function gi(e) {
|
|
7392
|
+
return hi[m([e])];
|
|
7393
|
+
}
|
|
7394
|
+
function _i(e, t) {
|
|
7395
|
+
gi(e)(t);
|
|
7396
|
+
}
|
|
7397
|
+
//#endregion
|
|
7398
|
+
//#region src/designer/browser/validate/validator.ts
|
|
7399
|
+
function vi(e) {
|
|
7400
|
+
let t = new oi.default({
|
|
7401
|
+
allErrors: !0,
|
|
7402
|
+
verbose: !0,
|
|
7403
|
+
strict: !1,
|
|
7404
|
+
addUsedSchema: !1,
|
|
7405
|
+
...e
|
|
7406
|
+
});
|
|
7407
|
+
return (0, si.default)(t), t;
|
|
7408
|
+
}
|
|
7409
|
+
var yi = /*#__PURE__*/ vi();
|
|
7410
|
+
function bi(e) {
|
|
7411
|
+
if (!e) return [void 0, void 0];
|
|
7412
|
+
try {
|
|
7413
|
+
return [yi.compile(e), void 0];
|
|
7414
|
+
} catch (e) {
|
|
7415
|
+
return [void 0, e];
|
|
7416
|
+
}
|
|
7417
|
+
}
|
|
7418
|
+
function xi(e, t, n) {
|
|
7419
|
+
return !e || e(t) ? [] : (_i(n, e.errors), e.errors);
|
|
7420
|
+
}
|
|
7421
|
+
//#endregion
|
|
7422
|
+
//#region src/designer/browser/stores/schemaEditor/simpleWidget.store.ts
|
|
7423
|
+
var Si = class {
|
|
7424
|
+
constructor(e, t, n) {
|
|
7425
|
+
this.path = e, this.schema$ = t, this.context = n, this.dispose = I(), this.widgetType$ = this.dispose.add(a(this.schema$, J));
|
|
7426
|
+
}
|
|
6684
7427
|
get expanded$() {
|
|
6685
7428
|
return this.expandedCache$ ??= this.dispose.add(this.context.deriveExpanded$(this.path));
|
|
6686
7429
|
}
|
|
6687
7430
|
configureNumber() {
|
|
6688
7431
|
this.numberConfigurationSlot ||= this.dispose.add(P());
|
|
6689
|
-
let e = I(), t = e.add(this.deriveUiOptions$("step",
|
|
7432
|
+
let e = I(), t = e.add(this.deriveUiOptions$("step", U)), n = e.add(this.deriveSchema$("minimum", U)), r = e.add(this.deriveSchema$("maximum", U)), i = e.add(this.deriveSchema$("exclusiveMinimum", U)), a = e.add(this.deriveSchema$("exclusiveMaximum", U));
|
|
6690
7433
|
return this.numberConfigurationSlot.set(e), {
|
|
6691
7434
|
step$: t,
|
|
6692
7435
|
minimum$: n,
|
|
@@ -6696,14 +7439,14 @@ var ci = class {
|
|
|
6696
7439
|
};
|
|
6697
7440
|
}
|
|
6698
7441
|
configureColor() {
|
|
6699
|
-
return this.colorConfigurationSlot ||= this.dispose.add(P()), { colorType$: this.colorConfigurationSlot.set(this.deriveUiOptions$("colorType", (e) =>
|
|
7442
|
+
return this.colorConfigurationSlot ||= this.dispose.add(P()), { colorType$: this.colorConfigurationSlot.set(this.deriveUiOptions$("colorType", (e) => It(e) ? e : void 0)) };
|
|
6700
7443
|
}
|
|
6701
7444
|
configureDate() {
|
|
6702
|
-
return this.dateConfigurationSlot ||= this.dispose.add(P()), { format$: this.dateConfigurationSlot.set(this.deriveSchema$("format", (e) =>
|
|
7445
|
+
return this.dateConfigurationSlot ||= this.dispose.add(P()), { format$: this.dateConfigurationSlot.set(this.deriveSchema$("format", (e) => Dt(e) ? e : void 0)) };
|
|
6703
7446
|
}
|
|
6704
7447
|
configureString() {
|
|
6705
7448
|
this.stringConfigurationSlot ||= this.dispose.add(P());
|
|
6706
|
-
let e = I(), t = e.add(this.deriveSchema$("format",
|
|
7449
|
+
let e = I(), t = e.add(this.deriveSchema$("format", H)), n = e.add(this.deriveSchema$("pattern", H)), r = e.add(this.deriveSchema$("minLength", U)), i = e.add(this.deriveSchema$("maxLength", U));
|
|
6707
7450
|
return this.stringConfigurationSlot.set(e), {
|
|
6708
7451
|
format$: t,
|
|
6709
7452
|
pattern$: n,
|
|
@@ -6713,14 +7456,14 @@ var ci = class {
|
|
|
6713
7456
|
}
|
|
6714
7457
|
configureArray() {
|
|
6715
7458
|
this.arrayConfigurationSlot ||= this.dispose.add(P());
|
|
6716
|
-
let e = I(), t = e.add(this.deriveSchema$("minItems",
|
|
7459
|
+
let e = I(), t = e.add(this.deriveSchema$("minItems", U)), n = e.add(this.deriveSchema$("maxItems", U));
|
|
6717
7460
|
return this.arrayConfigurationSlot.set(e), {
|
|
6718
7461
|
minItems$: t,
|
|
6719
7462
|
maxItems$: n
|
|
6720
7463
|
};
|
|
6721
7464
|
}
|
|
6722
7465
|
configureObject() {
|
|
6723
|
-
return this.objectConfigurationSlot ||= this.dispose.add(P()), { additionalProperties$: this.objectConfigurationSlot.set(this.deriveSchema$("additionalProperties",
|
|
7466
|
+
return this.objectConfigurationSlot ||= this.dispose.add(P()), { additionalProperties$: this.objectConfigurationSlot.set(this.deriveSchema$("additionalProperties", nt)) };
|
|
6724
7467
|
}
|
|
6725
7468
|
isSelect() {
|
|
6726
7469
|
return !1;
|
|
@@ -6738,11 +7481,11 @@ var ci = class {
|
|
|
6738
7481
|
return !1;
|
|
6739
7482
|
}
|
|
6740
7483
|
deriveSchema$(e, t, n) {
|
|
6741
|
-
return l(a(this.schema$, (n) => t(
|
|
7484
|
+
return l(a(this.schema$, (n) => t(V(n)?.[e]), n), W(this.schema$, e));
|
|
6742
7485
|
}
|
|
6743
7486
|
deriveUiOptions$(e, t, n) {
|
|
6744
|
-
return l(a(this.schema$, (n) => t(
|
|
6745
|
-
let n =
|
|
7487
|
+
return l(a(this.schema$, (n) => t(V(V(n)?.[K])?.[e]), n), (t) => {
|
|
7488
|
+
let n = V(this.schema$.value), r = V(n?.[K]);
|
|
6746
7489
|
if (Object.is(t, r?.[e])) return;
|
|
6747
7490
|
let i = {
|
|
6748
7491
|
...r,
|
|
@@ -6750,11 +7493,11 @@ var ci = class {
|
|
|
6750
7493
|
};
|
|
6751
7494
|
f(this.schema$, n && {
|
|
6752
7495
|
...n,
|
|
6753
|
-
"ui:options":
|
|
7496
|
+
"ui:options": Ge(i)
|
|
6754
7497
|
});
|
|
6755
7498
|
});
|
|
6756
7499
|
}
|
|
6757
|
-
},
|
|
7500
|
+
}, Ci = class extends Si {
|
|
6758
7501
|
constructor(e, t, n) {
|
|
6759
7502
|
super(e, t, n), this.conditions$ = this.dispose.add(this.deriveConditions$());
|
|
6760
7503
|
}
|
|
@@ -6762,29 +7505,29 @@ var ci = class {
|
|
|
6762
7505
|
return !0;
|
|
6763
7506
|
}
|
|
6764
7507
|
addCondition(e) {
|
|
6765
|
-
let t = { ...
|
|
7508
|
+
let t = { ...V(this.schema$.value) }, n = J(t), r = z(t[n])?.slice() ?? [], i = { ...V(t[K]) }, a = z(i.labels)?.slice() ?? [];
|
|
6766
7509
|
for (; a.length < r.length;) a.push("");
|
|
6767
|
-
a.splice(e + 1, 0, ""), i.labels =
|
|
7510
|
+
a.splice(e + 1, 0, ""), i.labels = B(a), r.splice(e + 1, 0, q()), t[n] = r, t[K] = i, this.schema$.set(t);
|
|
6768
7511
|
}
|
|
6769
7512
|
removeCondition(e) {
|
|
6770
|
-
let t = { ...
|
|
7513
|
+
let t = { ...V(this.schema$.value) }, n = J(t), r = z(t[n])?.slice() ?? [], i = { ...V(t[K]) }, a = z(i.labels)?.slice() ?? [];
|
|
6771
7514
|
for (; a.length < r.length;) a.push("");
|
|
6772
|
-
a.splice(e, 1), i.labels =
|
|
7515
|
+
a.splice(e, 1), i.labels = B(a), r.splice(e, 1), t[n] = r, t[K] = i, this.schema$.set(t);
|
|
6773
7516
|
}
|
|
6774
7517
|
deriveConditions$() {
|
|
6775
7518
|
let e = [];
|
|
6776
7519
|
return a(this.schema$, (t) => {
|
|
6777
|
-
let n =
|
|
6778
|
-
for (let e = r.length; e < n; e++) r[e] = new
|
|
7520
|
+
let n = z(V(t)?.[J(t)])?.length ?? 0, r = e.slice(0, n);
|
|
7521
|
+
for (let e = r.length; e < n; e++) r[e] = new wi(e, this, this.context);
|
|
6779
7522
|
for (let t = r.length; t < e.length; t++) e[t]?.dispose();
|
|
6780
7523
|
return e = r, r;
|
|
6781
7524
|
});
|
|
6782
7525
|
}
|
|
6783
7526
|
deriveConditionSchema$(e, t = "anyOf") {
|
|
6784
|
-
return l(a(this.schema$, (t) =>
|
|
6785
|
-
let r =
|
|
7527
|
+
return l(a(this.schema$, (t) => z(V(t)?.[J(t)])?.[e]), (n) => {
|
|
7528
|
+
let r = V(this.schema$.value), i = J(r);
|
|
6786
7529
|
i !== "allOf" && i !== "anyOf" && i !== "oneOf" && (i = t);
|
|
6787
|
-
let a =
|
|
7530
|
+
let a = z(r?.[i]);
|
|
6788
7531
|
if (!Object.is(a?.[e], n)) {
|
|
6789
7532
|
let t = a?.slice() ?? [];
|
|
6790
7533
|
t[e] = n, this.schema$.set({
|
|
@@ -6795,32 +7538,32 @@ var ci = class {
|
|
|
6795
7538
|
});
|
|
6796
7539
|
}
|
|
6797
7540
|
deriveLabel$(e) {
|
|
6798
|
-
return l(a(this.schema$, (t) =>
|
|
6799
|
-
let n =
|
|
7541
|
+
return l(a(this.schema$, (t) => H(z(V(V(t)?.[K])?.labels)?.[e])), (t) => {
|
|
7542
|
+
let n = V(this.schema$.value), r = V(n?.[K]), i = z(r?.labels);
|
|
6800
7543
|
if (!Object.is(i?.[e], t)) {
|
|
6801
7544
|
let a = i?.slice() ?? [];
|
|
6802
7545
|
a[e] = t, this.schema$.set({
|
|
6803
7546
|
...n,
|
|
6804
|
-
[
|
|
7547
|
+
[K]: {
|
|
6805
7548
|
...r,
|
|
6806
|
-
labels:
|
|
7549
|
+
labels: B(a)
|
|
6807
7550
|
}
|
|
6808
7551
|
});
|
|
6809
7552
|
}
|
|
6810
7553
|
});
|
|
6811
7554
|
}
|
|
6812
|
-
},
|
|
7555
|
+
}, wi = class {
|
|
6813
7556
|
constructor(e, t, 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(
|
|
7557
|
+
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(Pi(this.path, this.schema$, n));
|
|
6815
7558
|
}
|
|
6816
|
-
},
|
|
7559
|
+
}, Ti = class extends Si {
|
|
6817
7560
|
constructor(e, t, n) {
|
|
6818
|
-
super(e, t, n), this.itemsSchema$ = this.dispose.add(this.deriveSchema$("items", (e) => e,
|
|
7561
|
+
super(e, t, n), this.itemsSchema$ = this.dispose.add(this.deriveSchema$("items", (e) => e, R)), this.itemsWidget$ = this.dispose.add(Pi(this.path.append("items"), this.itemsSchema$, n));
|
|
6819
7562
|
}
|
|
6820
7563
|
isArray() {
|
|
6821
7564
|
return !0;
|
|
6822
7565
|
}
|
|
6823
|
-
},
|
|
7566
|
+
}, Ei = /*#__PURE__*/ new Set([
|
|
6824
7567
|
"string",
|
|
6825
7568
|
"integer",
|
|
6826
7569
|
"number",
|
|
@@ -6831,27 +7574,27 @@ var ci = class {
|
|
|
6831
7574
|
"array",
|
|
6832
7575
|
"object",
|
|
6833
7576
|
"anyOf"
|
|
6834
|
-
]),
|
|
7577
|
+
]), Di = (e) => [
|
|
6835
7578
|
{
|
|
6836
|
-
label: "
|
|
7579
|
+
label: e("schemaEditor.stringFormat.email"),
|
|
6837
7580
|
value: "email"
|
|
6838
7581
|
},
|
|
6839
7582
|
{
|
|
6840
|
-
label: "
|
|
7583
|
+
label: e("schemaEditor.stringFormat.uri"),
|
|
6841
7584
|
value: "uri"
|
|
6842
7585
|
},
|
|
6843
7586
|
{
|
|
6844
|
-
label: e,
|
|
7587
|
+
label: e("inputHandleEditor.unset"),
|
|
6845
7588
|
value: ""
|
|
6846
7589
|
}
|
|
6847
7590
|
];
|
|
6848
|
-
function
|
|
7591
|
+
function Oi(e, t) {
|
|
6849
7592
|
let n = e || "";
|
|
6850
|
-
return
|
|
7593
|
+
return Di(t).find((e) => e.value === n);
|
|
6851
7594
|
}
|
|
6852
7595
|
//#endregion
|
|
6853
7596
|
//#region src/designer/browser/stores/schemaEditor/selectWidget.store.ts
|
|
6854
|
-
var
|
|
7597
|
+
var ki = class extends Si {
|
|
6855
7598
|
constructor(e, t, n) {
|
|
6856
7599
|
super(e, t, n), this.items$ = this.dispose.add(this.deriveItems()), this.dispose.add(() => {
|
|
6857
7600
|
for (let e of this.items$.value) e.dispose();
|
|
@@ -6861,27 +7604,27 @@ var hi = class extends ci {
|
|
|
6861
7604
|
return !0;
|
|
6862
7605
|
}
|
|
6863
7606
|
addItem(e) {
|
|
6864
|
-
let t = { ...
|
|
7607
|
+
let t = { ...V(this.schema$.value) }, n = z(t.enum)?.slice() ?? [], r = { ...V(t[K]) }, i = z(r.labels)?.slice() ?? [];
|
|
6865
7608
|
for (; i.length < n.length;) i.push("");
|
|
6866
|
-
i.splice(e + 1, 0, ""), r.labels =
|
|
7609
|
+
i.splice(e + 1, 0, ""), r.labels = B(i), n.splice(e + 1, 0, ""), t.enum = n, t[K] = r, this.schema$.set(t);
|
|
6867
7610
|
}
|
|
6868
7611
|
removeItem(e) {
|
|
6869
|
-
let t = { ...
|
|
7612
|
+
let t = { ...V(this.schema$.value) }, n = z(t.enum)?.slice() ?? [], r = { ...V(t[K]) }, i = z(r.labels)?.slice() ?? [];
|
|
6870
7613
|
for (; i.length < n.length;) i.push("");
|
|
6871
|
-
i.splice(e, 1), r.labels =
|
|
7614
|
+
i.splice(e, 1), r.labels = B(i), n.splice(e, 1), t.enum = n, t[K] = r, this.schema$.set(t);
|
|
6872
7615
|
}
|
|
6873
7616
|
deriveItems() {
|
|
6874
7617
|
let e = [];
|
|
6875
7618
|
return a(this.schema$, (t) => {
|
|
6876
|
-
let n =
|
|
6877
|
-
for (let e = r.length; e < n; e++) r[e] = new
|
|
7619
|
+
let n = z(V(t)?.enum)?.length ?? 0, r = e.slice(0, n);
|
|
7620
|
+
for (let e = r.length; e < n; e++) r[e] = new Ai(e, this, this.context);
|
|
6878
7621
|
for (let t = r.length; t < e.length; t++) e[t]?.dispose();
|
|
6879
7622
|
return e = r, r;
|
|
6880
7623
|
});
|
|
6881
7624
|
}
|
|
6882
7625
|
deriveValue$(e) {
|
|
6883
|
-
return l(a(this.schema$, (t) =>
|
|
6884
|
-
let n =
|
|
7626
|
+
return l(a(this.schema$, (t) => z(V(t)?.enum)?.[e]), (t) => {
|
|
7627
|
+
let n = V(this.schema$.value), r = z(n?.enum);
|
|
6885
7628
|
if (!Object.is(r?.[e], t)) {
|
|
6886
7629
|
let i = r?.slice() ?? [];
|
|
6887
7630
|
i[e] = t, this.schema$.set({
|
|
@@ -6892,25 +7635,25 @@ var hi = class extends ci {
|
|
|
6892
7635
|
});
|
|
6893
7636
|
}
|
|
6894
7637
|
deriveLabel$(e) {
|
|
6895
|
-
return l(a(this.schema$, (t) =>
|
|
6896
|
-
let n =
|
|
7638
|
+
return l(a(this.schema$, (t) => H(z(V(V(t)?.[K])?.labels)?.[e])), (t) => {
|
|
7639
|
+
let n = V(this.schema$.value), r = V(n?.[K]), i = z(r?.labels);
|
|
6897
7640
|
if (!Object.is(i?.[e], t)) {
|
|
6898
7641
|
let a = i?.slice() ?? [];
|
|
6899
7642
|
a[e] = t, this.schema$.set({
|
|
6900
7643
|
...n,
|
|
6901
|
-
[
|
|
7644
|
+
[K]: {
|
|
6902
7645
|
...r,
|
|
6903
|
-
labels:
|
|
7646
|
+
labels: B(a)
|
|
6904
7647
|
}
|
|
6905
7648
|
});
|
|
6906
7649
|
}
|
|
6907
7650
|
});
|
|
6908
7651
|
}
|
|
6909
|
-
},
|
|
7652
|
+
}, Ai = class {
|
|
6910
7653
|
constructor(e, t, n) {
|
|
6911
7654
|
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));
|
|
6912
7655
|
}
|
|
6913
|
-
},
|
|
7656
|
+
}, ji = class extends Si {
|
|
6914
7657
|
constructor(e, t, n) {
|
|
6915
7658
|
super(e, t, n), this.items$ = this.dispose.add(this.deriveItems()), this.dispose.add(() => {
|
|
6916
7659
|
for (let e of this.items$.value) e.dispose();
|
|
@@ -6920,30 +7663,30 @@ var hi = class extends ci {
|
|
|
6920
7663
|
return !0;
|
|
6921
7664
|
}
|
|
6922
7665
|
addItem(e) {
|
|
6923
|
-
let t = { ...
|
|
7666
|
+
let t = { ...V(this.schema$.value) }, n = { ...V(t.items) }, r = z(n.enum)?.slice() ?? [], i = { ...V(t[K]) }, a = z(i.labels)?.slice() ?? [];
|
|
6924
7667
|
for (; a.length < r.length;) a.push("");
|
|
6925
|
-
a.splice(e + 1, 0, ""), i.labels =
|
|
7668
|
+
a.splice(e + 1, 0, ""), i.labels = B(a), r.splice(e + 1, 0, ""), n.enum = r, t.items = n, t[K] = i, this.schema$.set(t);
|
|
6926
7669
|
}
|
|
6927
7670
|
removeItem(e) {
|
|
6928
|
-
let t = { ...
|
|
7671
|
+
let t = { ...V(this.schema$.value) }, n = { ...V(t.items) }, r = z(n.enum)?.slice() ?? [], i = { ...V(t[K]) }, a = z(i.labels)?.slice() ?? [];
|
|
6929
7672
|
for (; a.length < r.length;) a.push("");
|
|
6930
|
-
a.splice(e, 1), i.labels =
|
|
7673
|
+
a.splice(e, 1), i.labels = B(a), r.splice(e, 1), n.enum = r, t.items = n, t[K] = i, this.schema$.set(t);
|
|
6931
7674
|
}
|
|
6932
7675
|
deriveItems() {
|
|
6933
7676
|
let e = [];
|
|
6934
7677
|
return a(this.schema$, (t) => {
|
|
6935
|
-
let n =
|
|
6936
|
-
for (let e = i.length; e < r; e++) i[e] = new
|
|
7678
|
+
let n = V(t)?.items, r = z(V(n)?.enum)?.length ?? 0, i = e.slice(0, r);
|
|
7679
|
+
for (let e = i.length; e < r; e++) i[e] = new Ai(e, this, this.context);
|
|
6937
7680
|
for (let t = i.length; t < e.length; t++) e[t].dispose();
|
|
6938
7681
|
return e = i, i;
|
|
6939
7682
|
});
|
|
6940
7683
|
}
|
|
6941
7684
|
deriveValue$(e) {
|
|
6942
7685
|
return l(a(this.schema$, (t) => {
|
|
6943
|
-
let n =
|
|
6944
|
-
return
|
|
7686
|
+
let n = V(t)?.items;
|
|
7687
|
+
return z(V(n)?.enum)?.[e];
|
|
6945
7688
|
}), (t) => {
|
|
6946
|
-
let n =
|
|
7689
|
+
let n = V(this.schema$.value), r = V(n?.items), i = z(r?.enum);
|
|
6947
7690
|
if (!Object.is(i?.[e], t)) {
|
|
6948
7691
|
let a = i?.slice() ?? [];
|
|
6949
7692
|
a[e] = t, this.schema$.set({
|
|
@@ -6957,21 +7700,21 @@ var hi = class extends ci {
|
|
|
6957
7700
|
});
|
|
6958
7701
|
}
|
|
6959
7702
|
deriveLabel$(e) {
|
|
6960
|
-
return l(a(this.schema$, (t) =>
|
|
6961
|
-
let n =
|
|
7703
|
+
return l(a(this.schema$, (t) => H(z(V(V(t)?.[K])?.labels)?.[e])), (t) => {
|
|
7704
|
+
let n = V(this.schema$.value), r = V(n?.[K]), i = z(r?.labels);
|
|
6962
7705
|
if (!Object.is(i?.[e], t)) {
|
|
6963
7706
|
let a = i?.slice() ?? [];
|
|
6964
7707
|
a[e] = t, this.schema$.set({
|
|
6965
7708
|
...n,
|
|
6966
|
-
[
|
|
7709
|
+
[K]: {
|
|
6967
7710
|
...r,
|
|
6968
|
-
labels:
|
|
7711
|
+
labels: B(a)
|
|
6969
7712
|
}
|
|
6970
7713
|
});
|
|
6971
7714
|
}
|
|
6972
7715
|
});
|
|
6973
7716
|
}
|
|
6974
|
-
},
|
|
7717
|
+
}, Mi = class extends Si {
|
|
6975
7718
|
constructor(e, t, n) {
|
|
6976
7719
|
super(e, t, n), this.fields$ = this.dispose.add(this.deriveFields$());
|
|
6977
7720
|
}
|
|
@@ -6983,20 +7726,20 @@ var hi = class extends ci {
|
|
|
6983
7726
|
console.error(/* @__PURE__ */ Error("User can't add object field"));
|
|
6984
7727
|
return;
|
|
6985
7728
|
}
|
|
6986
|
-
let t =
|
|
7729
|
+
let t = V(this.schema$.value), n = V(t?.properties);
|
|
6987
7730
|
if (n) {
|
|
6988
|
-
let r = Object.entries(n), i = (e ? r.findIndex(([t]) => t === e) : -1) + 1, a =
|
|
6989
|
-
r.splice(i, 0, [a, o ||
|
|
7731
|
+
let r = Object.entries(n), i = (e ? r.findIndex(([t]) => t === e) : -1) + 1, a = rt("field", r.map(([e]) => e)), o = i > 0 ? r[i - 1][1] : null;
|
|
7732
|
+
r.splice(i, 0, [a, o || q()]), this.schema$.set({
|
|
6990
7733
|
...t,
|
|
6991
7734
|
properties: Object.fromEntries(r)
|
|
6992
7735
|
});
|
|
6993
7736
|
} else this.schema$.set({
|
|
6994
7737
|
...t,
|
|
6995
|
-
properties: { field:
|
|
7738
|
+
properties: { field: q() }
|
|
6996
7739
|
});
|
|
6997
7740
|
}
|
|
6998
7741
|
renameField(e, t) {
|
|
6999
|
-
let n =
|
|
7742
|
+
let n = V(this.schema$.value), r = V(n?.properties);
|
|
7000
7743
|
if (r) {
|
|
7001
7744
|
let i = Object.entries(r), a = i.findIndex(([t]) => t === e);
|
|
7002
7745
|
a >= 0 && (i[a] = [t, i[a][1]], this.schema$.set({
|
|
@@ -7006,7 +7749,7 @@ var hi = class extends ci {
|
|
|
7006
7749
|
}
|
|
7007
7750
|
}
|
|
7008
7751
|
removeField(e) {
|
|
7009
|
-
let t =
|
|
7752
|
+
let t = V(this.schema$.value), n = V(t?.properties);
|
|
7010
7753
|
if (n) {
|
|
7011
7754
|
let r = Object.entries(n), i = r.findIndex(([t]) => t === e);
|
|
7012
7755
|
i >= 0 && (r.splice(i, 1), this.schema$.set({
|
|
@@ -7018,44 +7761,44 @@ var hi = class extends ci {
|
|
|
7018
7761
|
deriveFields$() {
|
|
7019
7762
|
let e, t = [];
|
|
7020
7763
|
return a(this.schema$, (n) => {
|
|
7021
|
-
let r =
|
|
7764
|
+
let r = V(n?.properties);
|
|
7022
7765
|
if (e === r) return t;
|
|
7023
7766
|
e = r;
|
|
7024
|
-
let i = r ? Object.keys(r).map((e) => t.find((t) => t.name === e) || new
|
|
7767
|
+
let i = r ? Object.keys(r).map((e) => t.find((t) => t.name === e) || new Ni(e, this, this.context)) : [];
|
|
7025
7768
|
for (let e of t) r?.[e.name] || e.dispose();
|
|
7026
7769
|
return t = i, i;
|
|
7027
7770
|
}, { equal: d });
|
|
7028
7771
|
}
|
|
7029
|
-
},
|
|
7772
|
+
}, Ni = class {
|
|
7030
7773
|
constructor(e, t, n) {
|
|
7031
7774
|
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 =
|
|
7775
|
+
let r = V(t.schema$.value);
|
|
7033
7776
|
t.schema$.set({
|
|
7034
7777
|
...r,
|
|
7035
7778
|
properties: {
|
|
7036
|
-
...
|
|
7779
|
+
...V(r?.properties),
|
|
7037
7780
|
[e]: n
|
|
7038
7781
|
}
|
|
7039
7782
|
});
|
|
7040
|
-
})), this.widget$ = this.dispose.add(
|
|
7783
|
+
})), this.widget$ = this.dispose.add(Pi(this.path, this.schema$, n));
|
|
7041
7784
|
}
|
|
7042
|
-
},
|
|
7043
|
-
let r = P(), i = a(t,
|
|
7785
|
+
}, Pi = (e, t, n) => {
|
|
7786
|
+
let r = P(), i = a(t, J), o = a(i, (i) => {
|
|
7044
7787
|
let a;
|
|
7045
|
-
return a = i === "select" ? new
|
|
7788
|
+
return a = i === "select" ? new ki(e, t, n) : i === "multiSelect" ? new ji(e, t, n) : i === "array" ? new Ti(e, t, n) : i === "object" ? new Mi(e, t, n) : i === "anyOf" ? new Ci(e, t, n) : new Si(e, t, n), r.set(a);
|
|
7046
7789
|
}), s = o.dispose, c = i.reaction((t) => {
|
|
7047
|
-
|
|
7790
|
+
Ei.has(t) && n.expand(e);
|
|
7048
7791
|
});
|
|
7049
7792
|
return o.dispose = () => {
|
|
7050
7793
|
c(), s.call(o), r.dispose();
|
|
7051
7794
|
}, o;
|
|
7052
|
-
},
|
|
7795
|
+
}, Fi = class {
|
|
7053
7796
|
constructor(e, t, n, r) {
|
|
7054
7797
|
this.schema$ = t, this.expanded$ = n, this.createSchemaEditor = r, this.role = e.role, this.inout = e.inout, this.enableAny = e.enableAny ?? !0, this.restrict$ = e.restrict$;
|
|
7055
7798
|
}
|
|
7056
7799
|
deriveExpanded$(e) {
|
|
7057
7800
|
return l(a(this.expanded$, (t) => t?.[e.key] ?? !1), (t) => {
|
|
7058
|
-
let n =
|
|
7801
|
+
let n = V(this.expanded$.value);
|
|
7059
7802
|
if (t) n?.[e.key] || this.expanded$.set({
|
|
7060
7803
|
...n,
|
|
7061
7804
|
[e.key]: !0
|
|
@@ -7078,22 +7821,21 @@ var hi = class extends ci {
|
|
|
7078
7821
|
get canEditValue() {
|
|
7079
7822
|
return this.role === "author" || this.role === "user";
|
|
7080
7823
|
}
|
|
7081
|
-
},
|
|
7824
|
+
}, Ii = class {
|
|
7082
7825
|
constructor(e, t, n, r, i, a) {
|
|
7083
|
-
this.dispose = I(), this.path =
|
|
7826
|
+
this.dispose = I(), this.path = wn.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(Pi(this.path, this.schema$, a));
|
|
7084
7827
|
}
|
|
7085
|
-
},
|
|
7086
|
-
function
|
|
7087
|
-
|
|
7088
|
-
return t === Kt.secret ? "secret" : t === Kt.binary ? "bin" : Ci;
|
|
7828
|
+
}, Li = "primitive";
|
|
7829
|
+
function Ri(e) {
|
|
7830
|
+
return H(e?.contentMediaType) === Jt.binary ? "bin" : Li;
|
|
7089
7831
|
}
|
|
7090
7832
|
//#endregion
|
|
7091
7833
|
//#region src/designer/browser/stores/nodeHandle/simpleWidget.store.ts
|
|
7092
|
-
var
|
|
7834
|
+
var zi = class {
|
|
7093
7835
|
constructor(e, t, n, r, i) {
|
|
7094
|
-
if (this.path = e, this.schema$ = t, this.context = n, this.value$ = r, this.overrideSchema$ = i, this.dispose = 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$,
|
|
7836
|
+
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$, J)), this.overrideWidgetType$ = this.dispose.add(a(this.overrideSchema$, (e) => J(e?.schema))), this.widgetType$ = this.dispose.add(u([this.schemaWidgetType$, this.overrideWidgetType$], ([e, t]) => $t(e) ? t : e)), this.hasSubpanel$ = this.dispose.add(c((e) => {
|
|
7095
7837
|
let t = this.context.restrict$ != null && e(this.context.restrict$) != null;
|
|
7096
|
-
return
|
|
7838
|
+
return Bi(this.context, e(this.widgetType$), e(this.schema$), t);
|
|
7097
7839
|
})), r) {
|
|
7098
7840
|
let e = {};
|
|
7099
7841
|
this.dispose.add([r.subscribe((t) => {
|
|
@@ -7119,33 +7861,33 @@ var Ti = class {
|
|
|
7119
7861
|
return !1;
|
|
7120
7862
|
}
|
|
7121
7863
|
deriveDescription$(e) {
|
|
7122
|
-
return l(a(e, (e) =>
|
|
7123
|
-
|
|
7864
|
+
return l(a(e, (e) => H(V(e)?.description)), (t) => {
|
|
7865
|
+
_(e.value) && e.set({
|
|
7124
7866
|
...e.value,
|
|
7125
7867
|
description: t
|
|
7126
7868
|
});
|
|
7127
7869
|
});
|
|
7128
7870
|
}
|
|
7129
7871
|
};
|
|
7130
|
-
function
|
|
7131
|
-
let i =
|
|
7872
|
+
function Bi(e, t, n, r) {
|
|
7873
|
+
let i = V(n), a = J(i);
|
|
7132
7874
|
if (t == "object") {
|
|
7133
7875
|
if (!r && e.canEditSchema || a == "any") return !0;
|
|
7134
|
-
let t =
|
|
7876
|
+
let t = V(i?.properties), n = t != null && Object.keys(t).length > 0;
|
|
7135
7877
|
return e.inout == "in" ? n || i?.additionalProperties !== !1 : n;
|
|
7136
7878
|
}
|
|
7137
7879
|
return e.inout == "in" && (t == "text" || t == "array" || i?.anyOf != null || i?.allOf != null || i?.oneOf != null);
|
|
7138
7880
|
}
|
|
7139
7881
|
//#endregion
|
|
7140
7882
|
//#region src/designer/browser/stores/nodeHandle/anyOfWidget.store.ts
|
|
7141
|
-
var
|
|
7883
|
+
var Vi = class extends zi {
|
|
7142
7884
|
constructor(e, t, n, r, i) {
|
|
7143
|
-
super(e, t, n, r, i), this.selected$ = this.dispose.add(l(a(this.overrideSchema$, (e) =>
|
|
7885
|
+
super(e, t, n, r, i), this.selected$ = this.dispose.add(l(a(this.overrideSchema$, (e) => U(V(V(e)?.[K])?.selected)), (e) => {
|
|
7144
7886
|
e ? f(this.overrideSchema$, {
|
|
7145
|
-
...
|
|
7887
|
+
...V(this.overrideSchema$.value),
|
|
7146
7888
|
path: this.path,
|
|
7147
|
-
[
|
|
7148
|
-
...
|
|
7889
|
+
[K]: {
|
|
7890
|
+
...V(V(this.overrideSchema$.value)?.[K]),
|
|
7149
7891
|
selected: e
|
|
7150
7892
|
}
|
|
7151
7893
|
}) : f(this.overrideSchema$, void 0);
|
|
@@ -7153,16 +7895,16 @@ var Di = class extends Ti {
|
|
|
7153
7895
|
this.schemaWidgetType$,
|
|
7154
7896
|
this.schema$,
|
|
7155
7897
|
this.selected$
|
|
7156
|
-
], ([e, t, n]) =>
|
|
7157
|
-
let t =
|
|
7898
|
+
], ([e, t, n]) => z(V(t)?.[e])?.[n || 0]), (e) => {
|
|
7899
|
+
let t = z(V(this.schema$.value)?.[this.schemaWidgetType$.value]) || [];
|
|
7158
7900
|
f(this.schema$, {
|
|
7159
|
-
...
|
|
7901
|
+
...V(this.schema$.value),
|
|
7160
7902
|
[this.schemaWidgetType$.value]: t.toSpliced(this.selected$.value || 0, 1, e)
|
|
7161
7903
|
});
|
|
7162
7904
|
}));
|
|
7163
7905
|
let o = this.dispose.add(P()), s;
|
|
7164
7906
|
if (this.condition$ = this.dispose.add(u([this.selected$, this.selectedSchema$], ([e = 0, t]) => {
|
|
7165
|
-
if (t) return s?.selected === e ? s : (s = new
|
|
7907
|
+
if (t) return s?.selected === e ? s : (s = new Hi(e, this.selectedSchema$, this, this.context), o.set(s));
|
|
7166
7908
|
})), r) {
|
|
7167
7909
|
let e = {};
|
|
7168
7910
|
this.dispose.add([r.subscribe((t) => {
|
|
@@ -7175,13 +7917,13 @@ var Di = class extends Ti {
|
|
|
7175
7917
|
isAnyOf() {
|
|
7176
7918
|
return !0;
|
|
7177
7919
|
}
|
|
7178
|
-
},
|
|
7920
|
+
}, Hi = class {
|
|
7179
7921
|
constructor(e, t, n, r) {
|
|
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(
|
|
7922
|
+
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(qi(n.path, this.schema$, r, this.value$, this.overrideSchema$));
|
|
7181
7923
|
}
|
|
7182
|
-
},
|
|
7924
|
+
}, Ui = class extends zi {
|
|
7183
7925
|
constructor(e, t, n, r, i) {
|
|
7184
|
-
super(e, t, n, r, i), this.itemsSchema$ = this.dispose.add(l(a(t, (e) =>
|
|
7926
|
+
super(e, t, n, r, i), this.itemsSchema$ = this.dispose.add(l(a(t, (e) => V(e)?.items), W(t, "items"))), this.itemsWidgetType$ = this.dispose.add(a(this.itemsSchema$, (e) => J(e))), r && (this.items$ = this.dispose.add(this.deriveItems(r)), this.dispose.add(() => {
|
|
7185
7927
|
for (let e of this.items$.value) e.dispose();
|
|
7186
7928
|
}));
|
|
7187
7929
|
}
|
|
@@ -7190,7 +7932,7 @@ var Di = class extends Ti {
|
|
|
7190
7932
|
}
|
|
7191
7933
|
addItem(e) {
|
|
7192
7934
|
if (this.value$) {
|
|
7193
|
-
let t =
|
|
7935
|
+
let t = z(this.value$.value), n = Qt(J(this.itemsSchema$.value));
|
|
7194
7936
|
if (t) {
|
|
7195
7937
|
this.context.duplicateSchemaOverrideItem(this.path.append(e));
|
|
7196
7938
|
let r = t.toSpliced(e + 1, 0, n);
|
|
@@ -7200,7 +7942,7 @@ var Di = class extends Ti {
|
|
|
7200
7942
|
}
|
|
7201
7943
|
removeItem(e) {
|
|
7202
7944
|
if (this.context.removeSchemaOverrideItem(this.path.append(e)), this.value$) {
|
|
7203
|
-
let t =
|
|
7945
|
+
let t = z(this.value$.value);
|
|
7204
7946
|
f(this.value$, t ? t.toSpliced(e, 1) : []);
|
|
7205
7947
|
}
|
|
7206
7948
|
}
|
|
@@ -7208,28 +7950,28 @@ var Di = class extends Ti {
|
|
|
7208
7950
|
let t = [];
|
|
7209
7951
|
return a(e, (e) => {
|
|
7210
7952
|
let n = Array.isArray(e) ? e.length : 0, r = t.slice(0, n);
|
|
7211
|
-
for (let e = r.length; e < n; e++) r[e] = new
|
|
7953
|
+
for (let e = r.length; e < n; e++) r[e] = new Wi(e, this, this.context);
|
|
7212
7954
|
for (let e = r.length; e < t.length; e++) t[e]?.dispose();
|
|
7213
7955
|
return t = r, r;
|
|
7214
7956
|
});
|
|
7215
7957
|
}
|
|
7216
|
-
},
|
|
7958
|
+
}, Wi = class {
|
|
7217
7959
|
constructor(e, t, n) {
|
|
7218
7960
|
this.dispose = I(), this.index = e, this.context = n, this.path = t.path.append(e);
|
|
7219
7961
|
let r = t.value$;
|
|
7220
|
-
r && (this.value$ = this.dispose.add(l(a(r, (t) =>
|
|
7221
|
-
let n =
|
|
7962
|
+
r && (this.value$ = this.dispose.add(l(a(r, (t) => z(t)?.[e]), (t) => {
|
|
7963
|
+
let n = z(r.value);
|
|
7222
7964
|
if (!Object.is(n?.[e], t)) {
|
|
7223
7965
|
let i = n?.slice() ?? [];
|
|
7224
7966
|
i[e] = t, r.set(i);
|
|
7225
7967
|
}
|
|
7226
|
-
}))), this.schema$ = t.itemsSchema$, this.overrideSchema$ = this.dispose.add(this.context.deriveSchemaOverrideItem$(this.path)), this.widget$ = this.dispose.add(
|
|
7968
|
+
}))), this.schema$ = t.itemsSchema$, this.overrideSchema$ = this.dispose.add(this.context.deriveSchemaOverrideItem$(this.path)), this.widget$ = this.dispose.add(qi(this.path, this.schema$, n, this.value$, this.overrideSchema$));
|
|
7227
7969
|
}
|
|
7228
|
-
},
|
|
7970
|
+
}, Gi = class extends zi {
|
|
7229
7971
|
constructor(e, t, n, r, i) {
|
|
7230
7972
|
super(e, t, n, r, i), this.allowsUntypedFields$ = this.dispose.add(a(this.schema$, (e) => {
|
|
7231
|
-
let t =
|
|
7232
|
-
return
|
|
7973
|
+
let t = V(e);
|
|
7974
|
+
return J(e) == "object" && t?.additionalProperties !== !1;
|
|
7233
7975
|
})), this.fixedFields$ = this.dispose.add(this.deriveFixedFields$()), this.overrideFields$ = this.dispose.add(this.deriveOverrideFields$()), this.untypedFields$ = r == null ? void 0 : this.dispose.add(this.deriveUntypedFields$(r)), this.fieldNames$ = this.dispose.add(this.untypedFields$ ? u([
|
|
7234
7976
|
this.fixedFields$,
|
|
7235
7977
|
this.overrideFields$,
|
|
@@ -7252,11 +7994,11 @@ var Di = class extends Ti {
|
|
|
7252
7994
|
console.error(/* @__PURE__ */ Error("User can't add fixed field"));
|
|
7253
7995
|
return;
|
|
7254
7996
|
}
|
|
7255
|
-
let t =
|
|
7997
|
+
let t = V(this.schema$.value), n = V(t?.properties), r = rt("field", this.fieldNames$.value);
|
|
7256
7998
|
if (n) {
|
|
7257
7999
|
let i = Object.keys(n), a = {}, o;
|
|
7258
8000
|
for (let t = 0; t < e; t++) o = a[i[t]] = n[i[t]];
|
|
7259
|
-
a[r] = o ||
|
|
8001
|
+
a[r] = o || q();
|
|
7260
8002
|
for (let t = e; t < i.length; t++) a[i[t]] = n[i[t]];
|
|
7261
8003
|
this.schema$.set({
|
|
7262
8004
|
...t,
|
|
@@ -7264,10 +8006,10 @@ var Di = class extends Ti {
|
|
|
7264
8006
|
});
|
|
7265
8007
|
} else this.schema$.set({
|
|
7266
8008
|
...t,
|
|
7267
|
-
properties: { [r]:
|
|
8009
|
+
properties: { [r]: q() }
|
|
7268
8010
|
});
|
|
7269
8011
|
if (this.value$) {
|
|
7270
|
-
let e =
|
|
8012
|
+
let e = V(this.value$.value);
|
|
7271
8013
|
e ? this.value$.set({
|
|
7272
8014
|
...e,
|
|
7273
8015
|
[r]: void 0
|
|
@@ -7275,12 +8017,12 @@ var Di = class extends Ti {
|
|
|
7275
8017
|
}
|
|
7276
8018
|
}
|
|
7277
8019
|
addOverrideField(e) {
|
|
7278
|
-
let t = e > 0 ? this.overrideFields$.value[e - 1] : null, n =
|
|
8020
|
+
let t = e > 0 ? this.overrideFields$.value[e - 1] : null, n = rt("field", this.fieldNames$.value);
|
|
7279
8021
|
if (this.context.addSchemaOverrideItem({
|
|
7280
8022
|
path: this.path.append(n),
|
|
7281
|
-
schema: t?.schema$.value ||
|
|
8023
|
+
schema: t?.schema$.value || q()
|
|
7282
8024
|
}, e), this.value$) {
|
|
7283
|
-
let e =
|
|
8025
|
+
let e = V(this.value$.value);
|
|
7284
8026
|
e ? this.value$.set({
|
|
7285
8027
|
...e,
|
|
7286
8028
|
[n]: void 0
|
|
@@ -7289,7 +8031,7 @@ var Di = class extends Ti {
|
|
|
7289
8031
|
}
|
|
7290
8032
|
addUntypedField() {
|
|
7291
8033
|
if (this.value$ == null) return;
|
|
7292
|
-
let e =
|
|
8034
|
+
let e = V(this.value$.value) ?? {}, t = rt("field", this.fieldNames$.value);
|
|
7293
8035
|
this.value$.set({
|
|
7294
8036
|
...e,
|
|
7295
8037
|
[t]: void 0
|
|
@@ -7299,7 +8041,7 @@ var Di = class extends Ti {
|
|
|
7299
8041
|
this.context.role === "author" && e === "fixed" && !this.context.restrict$?.value ? this.addFixedField(t + 1) : e === "untyped" ? this.addUntypedField() : this.addOverrideField(e === "override" ? t + 1 : 0);
|
|
7300
8042
|
}
|
|
7301
8043
|
renameField(e, t) {
|
|
7302
|
-
let n =
|
|
8044
|
+
let n = V(this.schema$.value), r = V(n?.properties);
|
|
7303
8045
|
if (r) {
|
|
7304
8046
|
let i = Object.entries(r), a = i.findIndex(([t]) => t === e);
|
|
7305
8047
|
a >= 0 && (i[a] = [t, i[a][1]], this.schema$.set({
|
|
@@ -7316,7 +8058,7 @@ var Di = class extends Ti {
|
|
|
7316
8058
|
}));
|
|
7317
8059
|
}
|
|
7318
8060
|
if (this.value$) {
|
|
7319
|
-
let n =
|
|
8061
|
+
let n = V(this.value$.value);
|
|
7320
8062
|
if (n) {
|
|
7321
8063
|
let r = Object.entries(n), i = r.findIndex(([t]) => t === e);
|
|
7322
8064
|
i >= 0 && (r[i] = [t, r[i][1]], this.value$.set(Object.fromEntries(r)));
|
|
@@ -7329,7 +8071,7 @@ var Di = class extends Ti {
|
|
|
7329
8071
|
}
|
|
7330
8072
|
}
|
|
7331
8073
|
removeField(e) {
|
|
7332
|
-
let t =
|
|
8074
|
+
let t = V(this.schema$.value), n = t?.properties;
|
|
7333
8075
|
if (n) {
|
|
7334
8076
|
let r = Object.entries(n), i = r.findIndex((t) => t[0] === e);
|
|
7335
8077
|
i >= 0 && this.schema$.set({
|
|
@@ -7338,7 +8080,7 @@ var Di = class extends Ti {
|
|
|
7338
8080
|
});
|
|
7339
8081
|
}
|
|
7340
8082
|
this.context.removeSchemaOverrideItem(this.path.append(e));
|
|
7341
|
-
let r =
|
|
8083
|
+
let r = V(this.value$?.value);
|
|
7342
8084
|
if (r) {
|
|
7343
8085
|
let t = { ...r };
|
|
7344
8086
|
delete t[e], this.value$?.set(t);
|
|
@@ -7355,10 +8097,10 @@ var Di = class extends Ti {
|
|
|
7355
8097
|
deriveFixedFields$() {
|
|
7356
8098
|
let e, t = [];
|
|
7357
8099
|
return a(this.schema$, (n) => {
|
|
7358
|
-
let r =
|
|
8100
|
+
let r = V(n?.properties);
|
|
7359
8101
|
if (e === r) return t;
|
|
7360
8102
|
e = r;
|
|
7361
|
-
let i = r ? Object.keys(r).map((e) => t.find((t) => t.name === e) || new
|
|
8103
|
+
let i = r ? Object.keys(r).map((e) => t.find((t) => t.name === e) || new Ki(e, this, this.context)) : [];
|
|
7362
8104
|
for (let e of t) r?.[e.name] || e.dispose();
|
|
7363
8105
|
return t = i, i;
|
|
7364
8106
|
}, { equal: d });
|
|
@@ -7368,10 +8110,10 @@ var Di = class extends Ti {
|
|
|
7368
8110
|
return u([this.context.schemaOverrides$, this.schema$], ([t, n]) => {
|
|
7369
8111
|
let r = [];
|
|
7370
8112
|
if (t) {
|
|
7371
|
-
let i =
|
|
8113
|
+
let i = V(V(n)?.properties);
|
|
7372
8114
|
for (let n of t) if (this.path.matchChild(n.path)) {
|
|
7373
8115
|
let t = n.path.last();
|
|
7374
|
-
|
|
8116
|
+
h(t) && !i?.[t] && r.push(e?.find((e) => e.name === t) ?? new Ki(t, this, this.context, "override"));
|
|
7375
8117
|
}
|
|
7376
8118
|
}
|
|
7377
8119
|
if (e) for (let t of e) r.some((e) => e.name === t.name) || t.dispose();
|
|
@@ -7385,33 +8127,33 @@ var Di = class extends Ti {
|
|
|
7385
8127
|
this.schema$,
|
|
7386
8128
|
this.context.schemaOverrides$
|
|
7387
8129
|
], ([e, n, r]) => {
|
|
7388
|
-
let i =
|
|
8130
|
+
let i = V(n), a = V(i?.properties), o = /* @__PURE__ */ new Set();
|
|
7389
8131
|
for (let e of r ?? []) {
|
|
7390
8132
|
if (!this.path.matchChild(e.path)) continue;
|
|
7391
8133
|
let t = e.path.last();
|
|
7392
|
-
|
|
8134
|
+
h(t) && o.add(t);
|
|
7393
8135
|
}
|
|
7394
|
-
let s = i?.additionalProperties === !1 ? void 0 :
|
|
8136
|
+
let s = i?.additionalProperties === !1 ? void 0 : V(e), c = s == null ? [] : Object.keys(s).filter((e) => a?.[e] == null && !o.has(e)).map((e) => t.find((t) => t.name === e) ?? new Ki(e, this, this.context, "untyped"));
|
|
7395
8137
|
for (let e of t) c.some((t) => t.name === e.name) || e.dispose();
|
|
7396
8138
|
return t = c, c;
|
|
7397
8139
|
}, { equal: d });
|
|
7398
8140
|
}
|
|
7399
|
-
},
|
|
8141
|
+
}, Ki = class {
|
|
7400
8142
|
constructor(e, t, n, r = "fixed") {
|
|
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) =>
|
|
8143
|
+
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) => V(t)?.[e]), (n) => t.setField(e, n)))), this.schema$ = this.dispose.add(l(a(t.schema$, (t) => {
|
|
7402
8144
|
let n = t;
|
|
7403
8145
|
return r === "untyped" ? n?.additionalProperties === !0 ? void 0 : n?.additionalProperties : n?.properties?.[e];
|
|
7404
8146
|
}), (n) => {
|
|
7405
8147
|
if (r === "untyped") return;
|
|
7406
|
-
let i =
|
|
8148
|
+
let i = V(t.schema$.value);
|
|
7407
8149
|
t.schema$.set({
|
|
7408
8150
|
...i,
|
|
7409
8151
|
properties: {
|
|
7410
|
-
...
|
|
8152
|
+
...V(i?.properties),
|
|
7411
8153
|
[e]: n
|
|
7412
8154
|
}
|
|
7413
8155
|
});
|
|
7414
|
-
})), this.overrideSchema$ = this.dispose.add(n.deriveSchemaOverrideItem$(this.path)), this.widget$ = this.dispose.add(
|
|
8156
|
+
})), this.overrideSchema$ = this.dispose.add(n.deriveSchemaOverrideItem$(this.path)), this.widget$ = this.dispose.add(qi(this.path, this.schema$, n, this.value$, this.overrideSchema$));
|
|
7415
8157
|
}
|
|
7416
8158
|
setSchema(e, t) {
|
|
7417
8159
|
if (e === "fixed") this.schema$.set(t);
|
|
@@ -7423,15 +8165,15 @@ var Di = class extends Ti {
|
|
|
7423
8165
|
schema: t
|
|
7424
8166
|
});
|
|
7425
8167
|
}
|
|
7426
|
-
|
|
8168
|
+
V(t)?.type === "null" && this.value$?.set(null);
|
|
7427
8169
|
}
|
|
7428
|
-
},
|
|
8170
|
+
}, qi = (e, t, n, r, i) => {
|
|
7429
8171
|
let o = P(), s = u([t, i], ([e, t]) => {
|
|
7430
|
-
let n =
|
|
7431
|
-
return n === "any"
|
|
8172
|
+
let n = J(e), r = J(t?.schema);
|
|
8173
|
+
return n === "any" ? r : n;
|
|
7432
8174
|
}), c = a(s, (a) => {
|
|
7433
8175
|
let s;
|
|
7434
|
-
return s = a === "anyOf" ? new
|
|
8176
|
+
return s = a === "anyOf" ? new Vi(e, t, n, r, i) : a === "object" ? new Gi(e, t, n, r, i) : a === "array" ? new Ui(e, t, n, r, i) : new zi(e, t, n, r, i), o.set(s);
|
|
7435
8177
|
}), l = c.dispose;
|
|
7436
8178
|
return c.dispose = () => {
|
|
7437
8179
|
l.call(c), s.dispose(), o.dispose();
|
|
@@ -7441,20 +8183,20 @@ var Di = class extends Ti {
|
|
|
7441
8183
|
return t instanceof e;
|
|
7442
8184
|
}
|
|
7443
8185
|
constructor(e, t, n, r, i, o, d, f, p, m) {
|
|
7444
|
-
if (this.dispose = I(), this.name = e, this.context = p, this.path =
|
|
8186
|
+
if (this.dispose = I(), this.name = e, this.context = p, this.path = wn.get(), this.value$ = m, this.schema$ = p.schema$, this.restrict$ = p.restrict$, this.restrict$ && this.dispose.add(this.restrict$), this.schemaKind$ = i, this.description$ = t, this.displayDescription$ = n, this.reference$ = o, this.nullable$ = d, this.showSettings$ = f, this.restrict$) {
|
|
7445
8187
|
let e = this.schema$;
|
|
7446
8188
|
this.schema$ = this.dispose.add(l(u([e, this.restrict$], ([e, t]) => t ? t.json_schema : e), (t) => this.restrict$?.value || e.set(t)));
|
|
7447
8189
|
let t = this.nullable$;
|
|
7448
|
-
this.nullable$ = this.dispose.add(l(u([t, this.restrict$], ([e, t]) => t ?
|
|
8190
|
+
this.nullable$ = this.dispose.add(l(u([t, this.restrict$], ([e, t]) => t ? tt(t.nullable) : e), (e) => this.restrict$?.value || t.set(e)));
|
|
7449
8191
|
let n = this.schemaKind$;
|
|
7450
8192
|
this.schemaKind$ = this.dispose.add(l(u([n, this.restrict$], ([e, t]) => t ? t.kind : e), (e) => this.restrict$?.value || n.set(e)));
|
|
7451
8193
|
}
|
|
7452
|
-
if (this.error$ = this.dispose.add(s()), this.kind$ = this.dispose.add(a(this.schema$,
|
|
8194
|
+
if (this.error$ = this.dispose.add(s()), this.kind$ = this.dispose.add(a(this.schema$, Ri)), this.lang$ = r, this.overrideSchema$ = this.dispose.add(this.context.deriveSchemaOverrideItem$(this.path)), this.widget$ = this.dispose.add(qi(this.path, this.schema$, p, this.value$, this.overrideSchema$)), this.dispose.add(this.context.onRequestOpenSchemaEditor(() => this.showSettings$.set(!this.showSettings$.value))), this.value$) {
|
|
7453
8195
|
let e;
|
|
7454
8196
|
this.dispose.add(this.schema$.subscribe((t) => {
|
|
7455
8197
|
e != null && cancelIdleCallback(e), e = requestIdleCallback(() => {
|
|
7456
8198
|
e = void 0;
|
|
7457
|
-
let [n, r] =
|
|
8199
|
+
let [n, r] = bi(t);
|
|
7458
8200
|
this.error$.set(r && {
|
|
7459
8201
|
type: "validationError",
|
|
7460
8202
|
message: r + ""
|
|
@@ -7462,18 +8204,18 @@ var Di = class extends Ti {
|
|
|
7462
8204
|
});
|
|
7463
8205
|
})), this.dispose.add(() => {
|
|
7464
8206
|
e != null && cancelIdleCallback(e);
|
|
7465
|
-
}), this.dispose.add(this.value$.subscribe(() => this.validate(!0))), this.dispose.add(this.nullable$.subscribe(() => this.validate(!1))), this.dispose.add(c((e) => !!(
|
|
8207
|
+
}), this.dispose.add(this.value$.subscribe(() => this.validate(!0))), this.dispose.add(this.nullable$.subscribe(() => this.validate(!1))), this.dispose.add(c((e) => !!(en(J(e(this.schema$))) && en(J(e(this.overrideSchema$)?.schema)) && rn(e(this.value$)) === "array")).subscribe((e) => {
|
|
7466
8208
|
e && this.overrideSchema$.set({
|
|
7467
8209
|
...this.overrideSchema$.value,
|
|
7468
8210
|
path: this.path,
|
|
7469
|
-
schema:
|
|
8211
|
+
schema: Xt("array")
|
|
7470
8212
|
});
|
|
7471
8213
|
}));
|
|
7472
8214
|
}
|
|
7473
8215
|
}
|
|
7474
8216
|
get schemaRowStore() {
|
|
7475
8217
|
if (this.schemaRowStoreCache) return this.schemaRowStoreCache;
|
|
7476
|
-
let e = new
|
|
8218
|
+
let e = new Fi(this.context, this.schema$, s(on(this.schema$.value) <= 3 ? { "[]": !0 } : void 0), this.context.createSchemaEditor), t = new Ii(this.name, this.description$, this.displayDescription$, this.nullable$, this.schemaKind$, e);
|
|
7477
8219
|
return this.schemaRowStoreCache = this.dispose.add(t);
|
|
7478
8220
|
}
|
|
7479
8221
|
validate(e) {
|
|
@@ -7487,28 +8229,28 @@ var Di = class extends Ti {
|
|
|
7487
8229
|
this.error$.set(void 0);
|
|
7488
8230
|
return;
|
|
7489
8231
|
}
|
|
7490
|
-
let t =
|
|
8232
|
+
let t = J(this.schema$.value), n = nn(t), r = rn(e);
|
|
7491
8233
|
if (n ? n !== r : e === void 0) {
|
|
7492
8234
|
this.error$.set({ type: "typeError" });
|
|
7493
8235
|
return;
|
|
7494
8236
|
}
|
|
7495
|
-
if (
|
|
8237
|
+
if (t === "binary" && !this.reference$.value) {
|
|
7496
8238
|
this.error$.set({
|
|
7497
8239
|
type: "validationError",
|
|
7498
8240
|
message: "$connectionRequired"
|
|
7499
8241
|
});
|
|
7500
8242
|
return;
|
|
7501
8243
|
}
|
|
7502
|
-
let i =
|
|
8244
|
+
let i = xi(this.validateFn, this.value$.value, this.lang$.value);
|
|
7503
8245
|
i && i.length > 0 ? this.error$.set({
|
|
7504
8246
|
type: "validationError",
|
|
7505
|
-
message:
|
|
8247
|
+
message: yi.errorsText(i)
|
|
7506
8248
|
}) : this.error$.set(void 0);
|
|
7507
8249
|
}
|
|
7508
8250
|
}
|
|
7509
|
-
},
|
|
8251
|
+
}, Ji = class {
|
|
7510
8252
|
constructor(e, t, n, r, i, o, s) {
|
|
7511
|
-
this.schema$ = t, this.schemaOverrides$ = n, this.defaultValue$ = r, this.collapsed$ = i, this.height$ = o, this.createSchemaEditor = s, this.onRequestOpenSchemaEditor = /*#__PURE__*/ _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) =>
|
|
8253
|
+
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) => V(e));
|
|
7512
8254
|
}
|
|
7513
8255
|
get canEditSchema() {
|
|
7514
8256
|
return this.role === "author";
|
|
@@ -7534,7 +8276,7 @@ var Di = class extends Ti {
|
|
|
7534
8276
|
if (t) {
|
|
7535
8277
|
let n = {};
|
|
7536
8278
|
for (let r in t) {
|
|
7537
|
-
let i =
|
|
8279
|
+
let i = wn.fromKey(r);
|
|
7538
8280
|
i.equals(e) || i.isInside(e) || (n[r] = t[r]);
|
|
7539
8281
|
}
|
|
7540
8282
|
Object.keys(n).length < Object.keys(t).length && this.collapsed$.set(n);
|
|
@@ -7550,7 +8292,7 @@ var Di = class extends Ti {
|
|
|
7550
8292
|
return;
|
|
7551
8293
|
}
|
|
7552
8294
|
let n = this.schemaOverrides$.value, r = -1;
|
|
7553
|
-
if (
|
|
8295
|
+
if (De(t)) {
|
|
7554
8296
|
let i = 0;
|
|
7555
8297
|
for (let a = 0; a < n.length; a++) if (n[a].path.length === e.path.length && (i++, i >= t)) {
|
|
7556
8298
|
r = t === 0 ? a : a + 1;
|
|
@@ -7620,38 +8362,38 @@ var Di = class extends Ti {
|
|
|
7620
8362
|
});
|
|
7621
8363
|
}
|
|
7622
8364
|
deriveCollapsed$(e) {
|
|
7623
|
-
return l(a(this.collapsed$, (t) => t?.[e.key] ?? !1),
|
|
8365
|
+
return l(a(this.collapsed$, (t) => t?.[e.key] ?? !1), it(this.collapsed$, e.key));
|
|
7624
8366
|
}
|
|
7625
8367
|
deriveHeight$(e) {
|
|
7626
|
-
return l(a(this.height$, (t) => t?.[e.key]),
|
|
8368
|
+
return l(a(this.height$, (t) => t?.[e.key]), it(this.height$, e.key));
|
|
7627
8369
|
}
|
|
7628
8370
|
};
|
|
7629
8371
|
//#endregion
|
|
7630
8372
|
//#region src/designer/browser/stores/node/constants.ts
|
|
7631
|
-
function
|
|
8373
|
+
function Yi(e, t) {
|
|
7632
8374
|
return e.handle == null ? t.handle == null && e.group === t.group : e.handle === t.handle;
|
|
7633
8375
|
}
|
|
7634
|
-
function
|
|
8376
|
+
function Xi(e) {
|
|
7635
8377
|
return e.handle != null;
|
|
7636
8378
|
}
|
|
7637
|
-
function
|
|
8379
|
+
function Zi(e) {
|
|
7638
8380
|
return e.handle == null;
|
|
7639
8381
|
}
|
|
7640
|
-
var
|
|
8382
|
+
var Qi = /* @__PURE__ */ function(e) {
|
|
7641
8383
|
return e.ErrorNode = "error_node", e.InputNode = "input_node", e.OutputNode = "output_node", e.TaskNode = "task_node", e.SubflowNode = "subflow_node", e.ValueNode = "value_node", e.ConditionNode = "condition_node", e.CommentNode = "comment_node", e.TriggerNode = "trigger_node", e;
|
|
7642
|
-
}({}),
|
|
8384
|
+
}({}), $i = (e) => e == "task_node" || e == "value_node" || e == "subflow_node" || e == "condition_node" || e == "trigger_node" || e == "error_node", ea = (e) => e == "input_node" || e == "output_node", ta = /* @__PURE__ */ function(e) {
|
|
7643
8385
|
return e.Idle = "idle", e.Waiting = "waiting", e.Running = "running", e.Success = "success", e.Error = "error", e;
|
|
7644
|
-
}({}),
|
|
8386
|
+
}({}), na = "oo-designer-fitting-view", ra = "input", ia = "output";
|
|
7645
8387
|
//#endregion
|
|
7646
8388
|
//#region src/designer/browser/stores/node/nodeSection/cloneLocales.ts
|
|
7647
|
-
function
|
|
8389
|
+
function aa(e, t, n) {
|
|
7648
8390
|
if (!e) return e;
|
|
7649
|
-
let r =
|
|
8391
|
+
let r = dt(e);
|
|
7650
8392
|
if (!r || t && n && t === n) return e;
|
|
7651
8393
|
if (!t || !n) return;
|
|
7652
8394
|
let i = t.en.value, a = t["zh-CN"].value;
|
|
7653
8395
|
if (!i[r] && !a[r]) return;
|
|
7654
|
-
let o =
|
|
8396
|
+
let o = ht(ht(r, n.en.value), n["zh-CN"].value);
|
|
7655
8397
|
if (i[r]) {
|
|
7656
8398
|
let e = n.en;
|
|
7657
8399
|
e.set({
|
|
@@ -7670,60 +8412,60 @@ function Gi(e, t, n) {
|
|
|
7670
8412
|
}
|
|
7671
8413
|
//#endregion
|
|
7672
8414
|
//#region src/designer/browser/stores/node/nodeSection/constants.ts
|
|
7673
|
-
var
|
|
7674
|
-
|
|
7675
|
-
|
|
7676
|
-
|
|
7677
|
-
|
|
7678
|
-
],
|
|
7679
|
-
|
|
7680
|
-
|
|
7681
|
-
|
|
7682
|
-
|
|
7683
|
-
],
|
|
8415
|
+
var oa = "inputs", sa = "outputs", ca = "value", la = "preview", ua = "scriptlet", da = "subflowInput", fa = "subflowOutput", pa = "conditions", ma = "trigger", ha = [da, fa], ga = [oa, fa], _a = [
|
|
8416
|
+
sa,
|
|
8417
|
+
ca,
|
|
8418
|
+
da,
|
|
8419
|
+
pa
|
|
8420
|
+
], va = [
|
|
8421
|
+
sa,
|
|
8422
|
+
ca,
|
|
8423
|
+
da,
|
|
8424
|
+
pa
|
|
8425
|
+
], ya = [oa, fa];
|
|
7684
8426
|
//#endregion
|
|
7685
8427
|
//#region src/designer/browser/stores/node/nodeSection/parse.ts
|
|
7686
|
-
function
|
|
7687
|
-
if (
|
|
7688
|
-
for (let t of Object.values(e)) if (
|
|
7689
|
-
if (!
|
|
7690
|
-
for (let e of Object.values(t)) if (
|
|
8428
|
+
function ba(e) {
|
|
8429
|
+
if (_(e)) {
|
|
8430
|
+
for (let t of Object.values(e)) if (b(t)) {
|
|
8431
|
+
if (!_(t)) return;
|
|
8432
|
+
for (let e of Object.values(t)) if (b(e) && !v(e)) return;
|
|
7691
8433
|
}
|
|
7692
8434
|
return e;
|
|
7693
8435
|
}
|
|
7694
8436
|
}
|
|
7695
|
-
function
|
|
7696
|
-
if (
|
|
7697
|
-
for (let t of Object.values(e)) if (
|
|
7698
|
-
if (!
|
|
7699
|
-
for (let e of Object.values(t)) if (
|
|
8437
|
+
function xa(e) {
|
|
8438
|
+
if (_(e)) {
|
|
8439
|
+
for (let t of Object.values(e)) if (b(t)) {
|
|
8440
|
+
if (!_(t)) return;
|
|
8441
|
+
for (let e of Object.values(t)) if (b(e) && typeof e != "number") return;
|
|
7700
8442
|
}
|
|
7701
8443
|
return e;
|
|
7702
8444
|
}
|
|
7703
8445
|
}
|
|
7704
|
-
function
|
|
8446
|
+
function Sa(e) {
|
|
7705
8447
|
return e ? !!(e.from_flow && e.from_flow.length > 0 || e.from_node && e.from_node.length > 0) : !1;
|
|
7706
8448
|
}
|
|
7707
8449
|
//#endregion
|
|
7708
8450
|
//#region src/designer/browser/stores/node/nodeSection/inputSection.store.ts
|
|
7709
|
-
var
|
|
8451
|
+
var Ca = class {
|
|
7710
8452
|
static {
|
|
7711
|
-
this.TYPE =
|
|
8453
|
+
this.TYPE = oa;
|
|
7712
8454
|
}
|
|
7713
8455
|
static is(e) {
|
|
7714
|
-
return e.type ===
|
|
8456
|
+
return e.type === oa;
|
|
7715
8457
|
}
|
|
7716
8458
|
constructor(e) {
|
|
7717
|
-
this.type =
|
|
7718
|
-
let t = this.dispose.add(s(
|
|
8459
|
+
this.type = oa, 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;
|
|
8460
|
+
let t = this.dispose.add(s(ba(e.initialUIState?.collapsed))), n = this.dispose.add(s(xa(e.initialUIState?.height))), r = this.dispose.add(s(Ye(e.initialUIState?.groupCollapsed)));
|
|
7719
8461
|
this.uiState$ = this.dispose.add(u([
|
|
7720
8462
|
t,
|
|
7721
8463
|
n,
|
|
7722
8464
|
r
|
|
7723
|
-
], ([e, t, n]) =>
|
|
7724
|
-
collapsed:
|
|
7725
|
-
height:
|
|
7726
|
-
groupCollapsed:
|
|
8465
|
+
], ([e, t, n]) => Ge({
|
|
8466
|
+
collapsed: Ge(e),
|
|
8467
|
+
height: Ge(t),
|
|
8468
|
+
groupCollapsed: Ye(n)
|
|
7727
8469
|
}))), this.$$ = {
|
|
7728
8470
|
collapsed: t,
|
|
7729
8471
|
height: n,
|
|
@@ -7733,7 +8475,7 @@ var la = class {
|
|
|
7733
8475
|
additionalInputDefs: e.additionalInputDefs && this.dispose.add(e.additionalInputDefs.ref(!0)),
|
|
7734
8476
|
showSettings: this.dispose.add(e.showSettings.ref(!0))
|
|
7735
8477
|
};
|
|
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) ||
|
|
8478
|
+
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) || pn(e(t.schema$)) == null), { equal: d })), f = this.dispose.add(c((e) => e(a).filter((t) => $.is(t) && pn(e(t.schema$)) != null), { equal: d }));
|
|
7737
8479
|
this.$ = {
|
|
7738
8480
|
collapsed: t,
|
|
7739
8481
|
height: n,
|
|
@@ -7752,19 +8494,19 @@ var la = class {
|
|
|
7752
8494
|
}
|
|
7753
8495
|
setupHandleIndexChangeEvent() {
|
|
7754
8496
|
let e = this.dispose.add(c((e) => {
|
|
7755
|
-
let t = e(this.$.inputHandleDefs)?.map((e) =>
|
|
8497
|
+
let t = e(this.$.inputHandleDefs)?.map((e) => Zi(e) ? `g:${e.group}` : `h:${e.handle}`), n = e(this.$.additionalInputDefs)?.map((e) => `h:${e.handle}`);
|
|
7756
8498
|
return (t && n ? [...t, ...n] : t || n) ?? [];
|
|
7757
8499
|
}, { equal: d }));
|
|
7758
8500
|
this.dispose.add(e.reaction(ve.bind(null, this.onDidHandleIndexChange)));
|
|
7759
8501
|
}
|
|
7760
8502
|
findGroupForWriting(e) {
|
|
7761
8503
|
let t = this.getInputHandleDefs$(), n = t?.value;
|
|
7762
|
-
return n ? [n.findIndex((t) =>
|
|
8504
|
+
return n ? [n.findIndex((t) => Zi(t) && t.group === e), t] : [-1, t];
|
|
7763
8505
|
}
|
|
7764
8506
|
addGroup(e) {
|
|
7765
8507
|
let [t, n] = this.findHandleForWriting(e), r = n?.value;
|
|
7766
8508
|
if (r && t >= 0) {
|
|
7767
|
-
let e = r.slice(), i = e.splice(t, 1), a =
|
|
8509
|
+
let e = r.slice(), i = e.splice(t, 1), a = rt("Group", this.$.allGroupNames.value).trim();
|
|
7768
8510
|
e.splice(999, 0, { group: a }, ...i), n.set(e);
|
|
7769
8511
|
}
|
|
7770
8512
|
}
|
|
@@ -7827,20 +8569,20 @@ var la = class {
|
|
|
7827
8569
|
return this.getInputHandleDefs$() != null;
|
|
7828
8570
|
}
|
|
7829
8571
|
getInputHandleDefs$() {
|
|
7830
|
-
return
|
|
8572
|
+
return Je(this.role === "author") && this.$$.inputHandleDefs;
|
|
7831
8573
|
}
|
|
7832
8574
|
getAdditionalInputDefs$() {
|
|
7833
8575
|
return this.$.additionalInputs?.value ? this.$$.additionalInputDefs : void 0;
|
|
7834
8576
|
}
|
|
7835
8577
|
findHandleForWriting(e) {
|
|
7836
8578
|
let t = typeof e == "string" ? { handle: e } : e, n, r = this.getInputHandleDefs$();
|
|
7837
|
-
if (n = r?.value?.findIndex((e) =>
|
|
8579
|
+
if (n = r?.value?.findIndex((e) => Yi(e, t)), n != null && n >= 0) return [
|
|
7838
8580
|
n,
|
|
7839
8581
|
r,
|
|
7840
8582
|
!1
|
|
7841
8583
|
];
|
|
7842
8584
|
let i = this.getAdditionalInputDefs$();
|
|
7843
|
-
return n = i?.value?.findIndex((e) =>
|
|
8585
|
+
return n = i?.value?.findIndex((e) => Yi(e, t)), n != null && n >= 0 ? [
|
|
7844
8586
|
n,
|
|
7845
8587
|
i,
|
|
7846
8588
|
!0
|
|
@@ -7858,10 +8600,10 @@ var la = class {
|
|
|
7858
8600
|
let t = e ? this.getAdditionalInputDefs$() : this.getInputHandleDefs$() || this.getAdditionalInputDefs$();
|
|
7859
8601
|
if (t) {
|
|
7860
8602
|
let e = this.$.allHandleNames.value, n = t.value, r = {
|
|
7861
|
-
handle:
|
|
7862
|
-
json_schema:
|
|
8603
|
+
handle: rt("input", e),
|
|
8604
|
+
json_schema: q(n)
|
|
7863
8605
|
};
|
|
7864
|
-
t.set(n ? n.toSpliced(
|
|
8606
|
+
t.set(n ? n.toSpliced(Ne(n, Zi), 0, r) : [r]);
|
|
7865
8607
|
}
|
|
7866
8608
|
}
|
|
7867
8609
|
renameHandle(e, t) {
|
|
@@ -7902,8 +8644,8 @@ var la = class {
|
|
|
7902
8644
|
let [n, r] = this.findHandleForWriting(e), i = r?.value;
|
|
7903
8645
|
if (i && n >= 0) {
|
|
7904
8646
|
let e = i[n];
|
|
7905
|
-
if (
|
|
7906
|
-
let n = i.filter((e) => !
|
|
8647
|
+
if (Xi(e) && pn(e.json_schema) != null) {
|
|
8648
|
+
let n = i.filter((e) => !Xi(e) || pn(e.json_schema) == null), a = i.filter((e) => Xi(e) && pn(e.json_schema) != null), o = a.findIndex((t) => t.handle == e.handle);
|
|
7907
8649
|
if (o >= 0) {
|
|
7908
8650
|
let e = a.splice(o, 1);
|
|
7909
8651
|
a.splice(t, 0, ...e), r.set(n.concat(a));
|
|
@@ -7921,7 +8663,7 @@ var la = class {
|
|
|
7921
8663
|
if (r >= 0) {
|
|
7922
8664
|
let e = {
|
|
7923
8665
|
...n[r],
|
|
7924
|
-
description:
|
|
8666
|
+
description: ft(t.description),
|
|
7925
8667
|
json_schema: t.json_schema,
|
|
7926
8668
|
kind: t.kind,
|
|
7927
8669
|
nullable: t.nullable
|
|
@@ -7937,14 +8679,14 @@ var la = class {
|
|
|
7937
8679
|
let r = this.getInputHandleDefs$() || this.getAdditionalInputDefs$();
|
|
7938
8680
|
if (r) {
|
|
7939
8681
|
let i = this.$.allHandleNames.value, a = {
|
|
7940
|
-
handle: i.includes(t.name) ?
|
|
8682
|
+
handle: i.includes(t.name) ? rt("input", i) : t.name,
|
|
7941
8683
|
json_schema: t.schema$?.value,
|
|
7942
8684
|
kind: t.schemaKind$?.value,
|
|
7943
8685
|
nullable: t.nullable$?.value,
|
|
7944
|
-
description:
|
|
8686
|
+
description: aa(t.description$.value, t.context.userLocales, this.userLocales),
|
|
7945
8687
|
value: t.value$?.value
|
|
7946
8688
|
};
|
|
7947
|
-
if (
|
|
8689
|
+
if (b(a.value) && this.$$.handleInputsFrom) {
|
|
7948
8690
|
let e = this.$$.handleInputsFrom.value;
|
|
7949
8691
|
e ? this.$$.handleInputsFrom.set([...e, {
|
|
7950
8692
|
handle: a.handle,
|
|
@@ -7956,170 +8698,173 @@ var la = class {
|
|
|
7956
8698
|
}
|
|
7957
8699
|
let o = r.value;
|
|
7958
8700
|
if (o) {
|
|
7959
|
-
let t = e ? o.findIndex((t) =>
|
|
8701
|
+
let t = e ? o.findIndex((t) => Yi(t, e)) : -1;
|
|
7960
8702
|
t >= 0 ? r.set(o.toSpliced(t + 1, 0, a)) : r.set(n ? [a, ...o] : [...o, a]);
|
|
7961
8703
|
} else r.set([a]);
|
|
7962
8704
|
return a.handle;
|
|
7963
8705
|
}
|
|
7964
8706
|
}
|
|
7965
8707
|
deriveHandleIndices$(e) {
|
|
7966
|
-
if (e) return a(e, (e) => e &&
|
|
8708
|
+
if (e) return a(e, (e) => e && Ue(e, (e) => Zi(e) ? { group: e.group } : { handle: e.handle }), R);
|
|
7967
8709
|
}
|
|
7968
8710
|
deriveHandles$(e, t, n, r) {
|
|
7969
|
-
let i = this.deriveHandleIndices$(n.inputHandleDefs), o, s = c((
|
|
7970
|
-
let
|
|
7971
|
-
if (!
|
|
7972
|
-
for (let i of
|
|
8711
|
+
let i = this.deriveHandleIndices$(n.inputHandleDefs), o = n.boundHandles, s, f = c((u) => {
|
|
8712
|
+
let d = [], f = u(i);
|
|
8713
|
+
if (!f?.length) return s?.forEach((e) => e.dispose()), s = void 0, d;
|
|
8714
|
+
for (let i of f) {
|
|
7973
8715
|
if (i.handle == null) {
|
|
7974
|
-
|
|
8716
|
+
d.push(i.group);
|
|
7975
8717
|
continue;
|
|
7976
8718
|
}
|
|
7977
|
-
let
|
|
7978
|
-
if (
|
|
7979
|
-
|
|
8719
|
+
let u = i.handle, f = s?.find((e) => e.name === u);
|
|
8720
|
+
if (f) {
|
|
8721
|
+
d.push(f);
|
|
7980
8722
|
continue;
|
|
7981
8723
|
}
|
|
7982
|
-
let { schema$:
|
|
8724
|
+
let p = o ? c((e) => e(r).has(u) || e(o).has(u)) : a(r, (e) => e.has(u)), { schema$: m, defaultValue$: h, description$: g, displayDescription$: _, kind$: v, nullable$: y, showSettings$: b, schemaOverrides$: x, value$: S } = this.deriveHandleRowVals$(n, n.inputHandleDefs, u, p), C = l(a(e, (e) => e?.[u], R), it(e, u)), w = l(a(t, (e) => e?.[u], R), it(t, u)), T = new Ji({
|
|
7983
8725
|
role: n.role,
|
|
7984
8726
|
inout: "in",
|
|
7985
8727
|
userLocales: n.userLocales
|
|
7986
|
-
},
|
|
7987
|
-
e ?
|
|
8728
|
+
}, m, x, h, C, w, n.createSchemaEditor), E = new $(u, g, _, n.lang, v, p, y, b, T, S), D = p.subscribe((e) => {
|
|
8729
|
+
e ? E.error$.set(void 0) : E.validate(!0);
|
|
7988
8730
|
});
|
|
7989
|
-
|
|
7990
|
-
|
|
7991
|
-
|
|
7992
|
-
|
|
7993
|
-
|
|
7994
|
-
_,
|
|
7995
|
-
v,
|
|
8731
|
+
E.dispose.add([
|
|
8732
|
+
D,
|
|
8733
|
+
m,
|
|
8734
|
+
p,
|
|
8735
|
+
y,
|
|
7996
8736
|
b,
|
|
7997
|
-
|
|
7998
|
-
|
|
7999
|
-
|
|
8000
|
-
|
|
8001
|
-
|
|
8002
|
-
|
|
8003
|
-
|
|
8004
|
-
|
|
8005
|
-
let s =
|
|
8006
|
-
|
|
8737
|
+
x,
|
|
8738
|
+
C,
|
|
8739
|
+
S
|
|
8740
|
+
]), d.push(E);
|
|
8741
|
+
}
|
|
8742
|
+
if (s) for (let e of s) d.some((t) => $.is(t) && t.name === e.name) || e.dispose();
|
|
8743
|
+
return s = d.filter($.is), d;
|
|
8744
|
+
}, { equal: d }), p = this.deriveHandleIndices$(n.additionalInputDefs), m, h = c((i) => {
|
|
8745
|
+
let s = [];
|
|
8746
|
+
if (!i(n.additionalInputs) || !n.additionalInputDefs) return s;
|
|
8747
|
+
let u = i(p) || [];
|
|
8748
|
+
for (let { handle: i } of u) {
|
|
8007
8749
|
if (i == null) continue;
|
|
8008
|
-
let
|
|
8009
|
-
if (
|
|
8010
|
-
|
|
8750
|
+
let u = m?.find((e) => e.name === i);
|
|
8751
|
+
if (u) {
|
|
8752
|
+
s.push(u);
|
|
8011
8753
|
continue;
|
|
8012
8754
|
}
|
|
8013
|
-
let
|
|
8014
|
-
role:
|
|
8755
|
+
let d = n.role === "user" ? "author" : n.role, f = o ? c((e) => e(r).has(i) || e(o).has(i)) : a(r, (e) => e.has(i)), { schema$: p, defaultValue$: h, description$: g, displayDescription$: _, kind$: v, nullable$: y, showSettings$: b, schemaOverrides$: x, value$: S } = this.deriveHandleRowVals$(n, n.additionalInputDefs, i, f), C = l(a(e, (e) => e?.[i], R), it(e, i)), w = l(a(t, (e) => e?.[i], R), it(t, i)), T = new Ji({
|
|
8756
|
+
role: d,
|
|
8015
8757
|
inout: "in",
|
|
8016
8758
|
additional: !0,
|
|
8017
8759
|
restrict: n.additionalInputs,
|
|
8018
8760
|
userLocales: n.userLocales
|
|
8019
|
-
},
|
|
8020
|
-
e ?
|
|
8761
|
+
}, p, x, h, C, w, n.createSchemaEditor), E = new $(i, g, _, n.lang, v, f, y, b, T, S), D = f.subscribe((e) => {
|
|
8762
|
+
e ? E.error$.set(void 0) : E.validate(!0);
|
|
8021
8763
|
});
|
|
8022
|
-
|
|
8023
|
-
|
|
8024
|
-
|
|
8025
|
-
|
|
8026
|
-
|
|
8027
|
-
_,
|
|
8028
|
-
v,
|
|
8764
|
+
E.dispose.add([
|
|
8765
|
+
D,
|
|
8766
|
+
p,
|
|
8767
|
+
f,
|
|
8768
|
+
y,
|
|
8029
8769
|
b,
|
|
8030
|
-
|
|
8031
|
-
|
|
8770
|
+
x,
|
|
8771
|
+
C,
|
|
8772
|
+
S
|
|
8773
|
+
]), s.push(E);
|
|
8032
8774
|
}
|
|
8033
|
-
if (
|
|
8034
|
-
return
|
|
8775
|
+
if (m) for (let e of m) s.some((t) => t.name === e.name) || e.dispose();
|
|
8776
|
+
return m = s, s;
|
|
8035
8777
|
}, { equal: d });
|
|
8036
|
-
return u([
|
|
8778
|
+
return u([f, h], ([e, t]) => e.concat(t));
|
|
8037
8779
|
}
|
|
8038
|
-
deriveHandleRowVals$({ showSettings: e, handleInputsFrom: t, lang: n, userLocales: r }, i,
|
|
8039
|
-
let
|
|
8780
|
+
deriveHandleRowVals$({ showSettings: e, handleInputsFrom: t, lang: n, userLocales: r }, i, s, u) {
|
|
8781
|
+
let d = l(a(i, (e) => e?.find((e) => e.handle === s)), (e) => {
|
|
8040
8782
|
if (e && o(i)) {
|
|
8041
8783
|
let t = i.value;
|
|
8042
8784
|
if (t) {
|
|
8043
|
-
let n = t.findIndex((e) => e.handle ===
|
|
8785
|
+
let n = t.findIndex((e) => e.handle === s), r = t.slice();
|
|
8044
8786
|
r[n >= 0 ? n : t.length] = e, i.set(r);
|
|
8045
8787
|
} else i.set([e]);
|
|
8046
8788
|
}
|
|
8047
|
-
}),
|
|
8048
|
-
let t = e(
|
|
8049
|
-
return i != null && r ?
|
|
8050
|
-
}),
|
|
8789
|
+
}), f = l(a(d, (e) => e?.description), W(d, "description")), p = c((e) => {
|
|
8790
|
+
let t = e(f), i = dt(t);
|
|
8791
|
+
return i != null && r ? vn(r, n, e, i, t) : t;
|
|
8792
|
+
}), m = l(a(d, (e) => e?.json_schema, R), W(d, "json_schema")), h = l(a(d, (e) => tt(e?.nullable)), W(d, "nullable")), g = l(a(d, (e) => e?.kind), W(d, "kind")), _ = a(d, (e) => e?.value), v = l(a(e, (e) => e?.scope === "input" && e.handle === s), (t) => e.set(t ? {
|
|
8051
8793
|
scope: "input",
|
|
8052
|
-
handle:
|
|
8053
|
-
} : void 0)),
|
|
8054
|
-
|
|
8794
|
+
handle: s
|
|
8795
|
+
} : void 0)), y;
|
|
8796
|
+
y = t ? l(a(t, (e) => e?.find((e) => e.handle === s)?.schema_overrides?.map((e) => Object.assign({}, e, { path: wn.get(e.path) })), R), (e) => {
|
|
8055
8797
|
let n = e?.map((e) => ({
|
|
8056
8798
|
...e,
|
|
8057
8799
|
path: e.path.toJSON()
|
|
8058
8800
|
}));
|
|
8059
8801
|
if (t.value) {
|
|
8060
|
-
let e = t.value.slice(), r = e.findIndex((e) => e.handle ===
|
|
8802
|
+
let e = t.value.slice(), r = e.findIndex((e) => e.handle === s);
|
|
8061
8803
|
e[r >= 0 ? r : e.length] = {
|
|
8062
8804
|
...e[r],
|
|
8063
|
-
handle:
|
|
8805
|
+
handle: s,
|
|
8064
8806
|
schema_overrides: n
|
|
8065
8807
|
}, t.set(e);
|
|
8066
8808
|
} else t.set([{
|
|
8067
|
-
handle:
|
|
8809
|
+
handle: s,
|
|
8068
8810
|
schema_overrides: n
|
|
8069
8811
|
}]);
|
|
8070
|
-
}) : l(a(
|
|
8812
|
+
}) : l(a(d, (e) => e?.schema_overrides?.map((e) => ({
|
|
8071
8813
|
...e,
|
|
8072
|
-
path:
|
|
8814
|
+
path: wn.get(e.path)
|
|
8073
8815
|
}))), (e) => {
|
|
8074
|
-
if (
|
|
8816
|
+
if (d.value) {
|
|
8075
8817
|
let t = e?.map((e) => ({
|
|
8076
8818
|
...e,
|
|
8077
8819
|
path: e.path.toJSON()
|
|
8078
8820
|
}));
|
|
8079
|
-
|
|
8080
|
-
...
|
|
8821
|
+
d.set({
|
|
8822
|
+
...d.value,
|
|
8081
8823
|
schema_overrides: t
|
|
8082
8824
|
});
|
|
8083
8825
|
}
|
|
8084
8826
|
});
|
|
8085
|
-
let
|
|
8086
|
-
return
|
|
8087
|
-
|
|
8827
|
+
let x;
|
|
8828
|
+
return x = t ? l(c((e) => {
|
|
8829
|
+
let n = e(t)?.find((e) => e.handle === s)?.value;
|
|
8830
|
+
return n === void 0 ? e(_) : n;
|
|
8831
|
+
}, R), (e) => {
|
|
8832
|
+
if (!d.value || u.value) return;
|
|
8088
8833
|
let n = t.value;
|
|
8089
8834
|
if (n) {
|
|
8090
|
-
let r = n.findIndex((e) => e.handle ===
|
|
8835
|
+
let r = n.findIndex((e) => e.handle === s), i = r >= 0 ? r : n.length;
|
|
8091
8836
|
n[i]?.value !== e && t.set(n.toSpliced(i, 1, {
|
|
8092
8837
|
...n[i],
|
|
8093
|
-
handle:
|
|
8838
|
+
handle: s,
|
|
8094
8839
|
value: e
|
|
8095
8840
|
}));
|
|
8096
|
-
} else
|
|
8097
|
-
handle:
|
|
8841
|
+
} else b(e) && t.set([{
|
|
8842
|
+
handle: s,
|
|
8098
8843
|
value: e
|
|
8099
8844
|
}]);
|
|
8100
|
-
}) : l(a(
|
|
8101
|
-
schema$:
|
|
8102
|
-
defaultValue$:
|
|
8103
|
-
description$:
|
|
8104
|
-
displayDescription$:
|
|
8105
|
-
kind$:
|
|
8106
|
-
nullable$:
|
|
8107
|
-
showSettings$:
|
|
8108
|
-
schemaOverrides$:
|
|
8109
|
-
value$:
|
|
8845
|
+
}) : l(a(d, (e) => e?.value, R), W(d, "value")), {
|
|
8846
|
+
schema$: m,
|
|
8847
|
+
defaultValue$: _,
|
|
8848
|
+
description$: f,
|
|
8849
|
+
displayDescription$: p,
|
|
8850
|
+
kind$: g,
|
|
8851
|
+
nullable$: h,
|
|
8852
|
+
showSettings$: v,
|
|
8853
|
+
schemaOverrides$: y,
|
|
8854
|
+
value$: x
|
|
8110
8855
|
};
|
|
8111
8856
|
}
|
|
8112
8857
|
deriveAllHandleNames$(e) {
|
|
8113
8858
|
return c((t) => {
|
|
8114
|
-
let n = t(e.inputHandleDefs)?.filter(
|
|
8859
|
+
let n = t(e.inputHandleDefs)?.filter(Xi).map((e) => e.handle), r = t(e.additionalInputDefs)?.map((e) => e.handle);
|
|
8115
8860
|
return (n || []).concat(r || []);
|
|
8116
8861
|
}, { equal: d });
|
|
8117
8862
|
}
|
|
8118
8863
|
deriveAllGroupNames$(e) {
|
|
8119
|
-
return a(e.inputHandleDefs, (e) => e?.filter(
|
|
8864
|
+
return a(e.inputHandleDefs, (e) => e?.filter(Zi).map((e) => e.group) || [], { equal: d });
|
|
8120
8865
|
}
|
|
8121
8866
|
deriveConnectedHandles$(e) {
|
|
8122
|
-
return e ? a(e, (e) => !e || e.length === 0 ?
|
|
8867
|
+
return e ? a(e, (e) => !e || e.length === 0 ? wa : e.reduce((e, t) => (Sa(t) && e.add(t.handle), e), /* @__PURE__ */ new Set())) : s(wa);
|
|
8123
8868
|
}
|
|
8124
8869
|
deriveIsEmpty$(e) {
|
|
8125
8870
|
return c((t) => {
|
|
@@ -8130,12 +8875,12 @@ var la = class {
|
|
|
8130
8875
|
return !t(e.inputHandleDefs)?.length && !r;
|
|
8131
8876
|
});
|
|
8132
8877
|
}
|
|
8133
|
-
},
|
|
8878
|
+
}, wa = /*#__PURE__*/ new Set(), Ta = class {
|
|
8134
8879
|
#e;
|
|
8135
8880
|
constructor(e, t) {
|
|
8136
8881
|
this.#e = s(void 0), this.inputValues$ = this.#e;
|
|
8137
8882
|
let n = s(void 0);
|
|
8138
|
-
this.section = new
|
|
8883
|
+
this.section = new Ca({
|
|
8139
8884
|
createSchemaEditor: () => void 0,
|
|
8140
8885
|
handleInputsFrom: this.#e,
|
|
8141
8886
|
inputHandleDefs: e,
|
|
@@ -8165,7 +8910,7 @@ var la = class {
|
|
|
8165
8910
|
return t;
|
|
8166
8911
|
}
|
|
8167
8912
|
replaceValues(e) {
|
|
8168
|
-
let t =
|
|
8913
|
+
let t = g(e);
|
|
8169
8914
|
if (t == null) return !1;
|
|
8170
8915
|
let n = new Set(this.section.$.allHandleNames.value), r = [];
|
|
8171
8916
|
for (let [e, i] of Object.entries(t)) {
|
|
@@ -8177,21 +8922,21 @@ var la = class {
|
|
|
8177
8922
|
}
|
|
8178
8923
|
return this.#e.set(r.length == 0 ? void 0 : r), !0;
|
|
8179
8924
|
}
|
|
8180
|
-
},
|
|
8181
|
-
FlowRunInputEditorStore: () =>
|
|
8182
|
-
flowRunInputEditorState: () =>
|
|
8183
|
-
}),
|
|
8925
|
+
}, Ea = /* @__PURE__ */ r({
|
|
8926
|
+
FlowRunInputEditorStore: () => Oa,
|
|
8927
|
+
flowRunInputEditorState: () => ka
|
|
8928
|
+
}), Da = /* @__PURE__ */ new WeakMap(), Oa = class {
|
|
8184
8929
|
constructor(e, t) {
|
|
8185
8930
|
let n = s(e.map((e) => ({
|
|
8186
8931
|
...e.description == null ? {} : { description: e.description },
|
|
8187
8932
|
handle: e.handle,
|
|
8188
8933
|
json_schema: e.jsonSchema,
|
|
8189
8934
|
nullable: e.nullable
|
|
8190
|
-
}))), r = new
|
|
8935
|
+
}))), r = new Ta(n, t);
|
|
8191
8936
|
this.valid$ = c((t) => {
|
|
8192
8937
|
let n = new Set((t(r.inputValues$) ?? []).flatMap((e) => e.value === void 0 ? [] : [e.handle]));
|
|
8193
8938
|
return e.every((e) => n.has(e.handle)) && !t(r.section.hasError$);
|
|
8194
|
-
}),
|
|
8939
|
+
}), Da.set(this, {
|
|
8195
8940
|
definitions: e,
|
|
8196
8941
|
definitions$: n,
|
|
8197
8942
|
inputs: r,
|
|
@@ -8200,20 +8945,20 @@ var la = class {
|
|
|
8200
8945
|
});
|
|
8201
8946
|
}
|
|
8202
8947
|
dispose() {
|
|
8203
|
-
let e =
|
|
8948
|
+
let e = ka(this);
|
|
8204
8949
|
this.valid$.dispose(), e.inputs.dispose(), e.definitions$.dispose(), e.panelWidth$.dispose();
|
|
8205
8950
|
}
|
|
8206
8951
|
values() {
|
|
8207
|
-
return
|
|
8952
|
+
return ka(this).inputs.values();
|
|
8208
8953
|
}
|
|
8209
8954
|
replaceValues(e) {
|
|
8210
|
-
return
|
|
8955
|
+
return ka(this).inputs.replaceValues(e);
|
|
8211
8956
|
}
|
|
8212
8957
|
};
|
|
8213
|
-
function
|
|
8214
|
-
let t =
|
|
8958
|
+
function ka(e) {
|
|
8959
|
+
let t = Da.get(e);
|
|
8215
8960
|
if (t == null) throw Error("Flow Run input editor store is unavailable.");
|
|
8216
8961
|
return t;
|
|
8217
8962
|
}
|
|
8218
8963
|
//#endregion
|
|
8219
|
-
export {
|
|
8964
|
+
export { q as $, Qe as $t, $i as A, Ve as At, Di as B, Ze as Bt, na as C, Ne as Ct, ia as D, Xe as Dt, Qi as E, We as Et, Li as F, ht as Ft, gn as G, Be as Gt, _i as H, Re as Ht, Ri as I, mt as It, pn as J, it as Jt, _n as K, je as Kt, Ii as L, _t as Lt, Yi as M, R as Mt, Ji as N, Ue as Nt, Zi as O, tt as Ot, $ as P, H as Pt, Xt as Q, Ge as Qt, Fi as R, Me as Rt, aa as S, He as St, ta as T, $e as Tt, Yr as U, et as Ut, Ei as V, Ae as Vt, wn as W, ct as Wt, fn as X, z as Xt, mn as Y, st as Yt, nn as Z, nt as Zt, ua as _, E as _n, jt as _t, Sa as a, dt as an, tn as at, ma as b, Mt as bt, pa as c, ot as cn, Wt as ct, va as d, ke as dn, K as dt, ft as en, Qt as et, sa as f, De as fn, Gt as ft, ya as g, ve as gn, Rt as gt, _a as h, _e as hn, kt as ht, Ca as i, Je as in, an as it, ea as j, at as jt, Xi as k, Le as kt, oa as l, W as ln, on as lt, ha as m, Te as mn, Ot as mt, ka as n, V as nn, Ut as nt, ba as o, lt as on, en as ot, la as p, Ee as pn, Lt as pt, vn as q, Fe as qt, Ea as r, Ye as rn, rn as rt, xa as s, Pe as sn, Bt as st, Oa as t, U as tn, Ht as tt, ga as u, Oe as un, J as ut, da as v, I as vn, Nt as vt, ra as w, ze as wt, ca as x, Ie as xt, fa as y, w as yn, zt as yt, Oi as z, rt as zt };
|