@blue-labs/language 4.0.0-rc.3 → 4.0.0-rc.4

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/dist/index.mjs CHANGED
@@ -1,14 +1,14 @@
1
1
  import G from "big.js";
2
- import { isNullable as v, isNonNullable as p, jsonPrimitiveSchema as _r, isReadonlyArray as Wt, isJsonPrimitive as Gt, isPreciseNumberString as Jt } from "@blue-labs/shared-utils";
3
- import { z as y, ZodOptional as Zt, ZodNullable as Xt, ZodReadonly as qt, ZodBranded as Qt, ZodEffects as We, ZodLazy as Ge, ZodString as ge, ZodNumber as me, ZodBoolean as Ue, ZodBigInt as ze, ZodEnum as jr, ZodNativeEnum as Fr, ZodIntersection as Ur, ZodUnion as zr, ZodObject as Kr, ZodRecord as kr } from "zod";
2
+ import { isNullable as v, isNonNullable as p, jsonPrimitiveSchema as jr, isReadonlyArray as Gt, isJsonPrimitive as Jt, isPreciseNumberString as Zt } from "@blue-labs/shared-utils";
3
+ import { z as y, ZodOptional as Xt, ZodNullable as qt, ZodReadonly as Qt, ZodBranded as er, ZodEffects as Ge, ZodLazy as Je, ZodString as ge, ZodNumber as me, ZodBoolean as ze, ZodBigInt as Ke, ZodEnum as Fr, ZodNativeEnum as Ur, ZodIntersection as zr, ZodUnion as Kr, ZodObject as kr, ZodRecord as Hr } from "zod";
4
4
  import Ae from "bs58";
5
- import { isObject as er, isArray as tr, isString as wt, omit as rr, pascal as Hr, map as Yr } from "radash";
6
- import { OBJECT_CONTRACTS as z, OBJECT_MERGE_POLICY as St, OBJECT_SCHEMA as sr, BLUE_REPOSITORY_STATUS_STABLE as Ce, BLUE_REPOSITORY_STATUS_DEV as bt, validateAttributesAddedPointer as Wr, parsePointer as ir } from "@blue-labs/repository-contract";
7
- import { sha256 as Gr } from "js-sha256";
8
- import lt from "crypto";
9
- import Jr from "base32.js";
5
+ import { isObject as tr, isArray as rr, isString as St, omit as sr, pascal as Yr, map as Wr } from "radash";
6
+ import { OBJECT_CONTRACTS as z, OBJECT_MERGE_POLICY as bt, OBJECT_SCHEMA as ir, BLUE_REPOSITORY_STATUS_STABLE as Ce, BLUE_REPOSITORY_STATUS_DEV as Et, validateAttributesAddedPointer as Gr, parsePointer as nr } from "@blue-labs/repository-contract";
7
+ import { sha256 as Jr } from "js-sha256";
8
+ import at from "crypto";
9
+ import Zr from "base32.js";
10
10
  import pe from "js-yaml";
11
- class x extends G {
11
+ class $ extends G {
12
12
  constructor(e) {
13
13
  super(e);
14
14
  }
@@ -18,7 +18,7 @@ class A extends G {
18
18
  super(e);
19
19
  }
20
20
  }
21
- const ie = "name", ne = "description", K = "type", we = "itemType", Se = "keyType", be = "valueType", W = "value", Y = "items", V = "blueId", Le = "blue", Et = [
21
+ const ie = "name", ne = "description", K = "type", we = "itemType", Se = "keyType", be = "valueType", W = "value", Y = "items", V = "blueId", Le = "blue", Nt = [
22
22
  ie,
23
23
  ne,
24
24
  K,
@@ -29,42 +29,42 @@ const ie = "name", ne = "description", K = "type", we = "itemType", Se = "keyTyp
29
29
  Y,
30
30
  V,
31
31
  Le
32
- ], nr = "Text", or = "Double", lr = "Integer", ar = "Boolean", cr = "List", ur = "Dictionary", et = [
33
- nr,
32
+ ], or = "Text", lr = "Double", ar = "Integer", cr = "Boolean", ur = "List", dr = "Dictionary", tt = [
34
33
  or,
35
34
  lr,
36
- ar
37
- ], Nt = [...et, cr, ur], Q = "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K", ee = "7pwXmXYCJtWnd348c2JQGBkm9C4renmZRwxbfaypsx5y", te = "5WNMiV9Knz63B4dVY5JtMyh3FB4FSGqv7ceScvuapdE1", re = "4EzhSubEimSQD3zrYHRtobfPPWntUuhEz8YcdxHsi12u", tt = "6aehfNAxHLC1PHHoDr3tYtFH3RWNbiWdFancJ1bypXEY", Ct = "G7fBT9PSod1RfHLHkpafAGBDVAJMrMhAMY51ERcyXNrj", Rt = [
35
+ ar,
36
+ cr
37
+ ], Ct = [...tt, ur, dr], Q = "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K", ee = "7pwXmXYCJtWnd348c2JQGBkm9C4renmZRwxbfaypsx5y", te = "5WNMiV9Knz63B4dVY5JtMyh3FB4FSGqv7ceScvuapdE1", re = "4EzhSubEimSQD3zrYHRtobfPPWntUuhEz8YcdxHsi12u", rt = "6aehfNAxHLC1PHHoDr3tYtFH3RWNbiWdFancJ1bypXEY", Rt = "G7fBT9PSod1RfHLHkpafAGBDVAJMrMhAMY51ERcyXNrj", At = [
38
38
  Q,
39
39
  ee,
40
40
  te,
41
41
  re
42
42
  ], fe = [
43
- ...Rt,
44
- tt,
45
- Ct
46
- ], dr = Object.fromEntries(
47
- Nt.map((i, e) => [i, fe[e]])
48
- ), rt = Object.fromEntries(
49
- fe.map((i, e) => [i, Nt[e]])
50
- ), Bn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
43
+ ...At,
44
+ rt,
45
+ Rt
46
+ ], hr = Object.fromEntries(
47
+ Ct.map((i, e) => [i, fe[e]])
48
+ ), st = Object.fromEntries(
49
+ fe.map((i, e) => [i, Ct[e]])
50
+ ), Pn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
51
51
  __proto__: null,
52
- BASIC_TYPES: et,
53
- BASIC_TYPE_BLUE_IDS: Rt,
54
- BOOLEAN_TYPE: ar,
52
+ BASIC_TYPES: tt,
53
+ BASIC_TYPE_BLUE_IDS: At,
54
+ BOOLEAN_TYPE: cr,
55
55
  BOOLEAN_TYPE_BLUE_ID: re,
56
- CORE_TYPES: Nt,
56
+ CORE_TYPES: Ct,
57
57
  CORE_TYPE_BLUE_IDS: fe,
58
- CORE_TYPE_BLUE_ID_TO_NAME_MAP: rt,
59
- CORE_TYPE_NAME_TO_BLUE_ID_MAP: dr,
60
- DICTIONARY_TYPE: ur,
61
- DICTIONARY_TYPE_BLUE_ID: Ct,
62
- DOUBLE_TYPE: or,
58
+ CORE_TYPE_BLUE_ID_TO_NAME_MAP: st,
59
+ CORE_TYPE_NAME_TO_BLUE_ID_MAP: hr,
60
+ DICTIONARY_TYPE: dr,
61
+ DICTIONARY_TYPE_BLUE_ID: Rt,
62
+ DOUBLE_TYPE: lr,
63
63
  DOUBLE_TYPE_BLUE_ID: ee,
64
- INTEGER_TYPE: lr,
64
+ INTEGER_TYPE: ar,
65
65
  INTEGER_TYPE_BLUE_ID: te,
66
- LIST_TYPE: cr,
67
- LIST_TYPE_BLUE_ID: tt,
66
+ LIST_TYPE: ur,
67
+ LIST_TYPE_BLUE_ID: rt,
68
68
  OBJECT_BLUE: Le,
69
69
  OBJECT_BLUE_ID: V,
70
70
  OBJECT_CONTRACTS: z,
@@ -72,17 +72,17 @@ const ie = "name", ne = "description", K = "type", we = "itemType", Se = "keyTyp
72
72
  OBJECT_ITEMS: Y,
73
73
  OBJECT_ITEM_TYPE: we,
74
74
  OBJECT_KEY_TYPE: Se,
75
- OBJECT_MERGE_POLICY: St,
75
+ OBJECT_MERGE_POLICY: bt,
76
76
  OBJECT_NAME: ie,
77
- OBJECT_SCHEMA: sr,
78
- OBJECT_SPECIFIC_KEYS: Et,
77
+ OBJECT_SCHEMA: ir,
78
+ OBJECT_SPECIFIC_KEYS: Nt,
79
79
  OBJECT_TYPE: K,
80
80
  OBJECT_VALUE: W,
81
81
  OBJECT_VALUE_TYPE: be,
82
- TEXT_TYPE: nr,
82
+ TEXT_TYPE: or,
83
83
  TEXT_TYPE_BLUE_ID: Q
84
84
  }, Symbol.toStringTag, { value: "Module" }));
85
- class Zr {
85
+ class Xr {
86
86
  static get(e, t, r, s = !0) {
87
87
  if (v(t) || !t.startsWith("/"))
88
88
  throw new Error(`Invalid path: ${t}`);
@@ -259,15 +259,15 @@ class u {
259
259
  if (e === te && typeof this.value == "string")
260
260
  return new A(this.value);
261
261
  if (e === ee && typeof this.value == "string") {
262
- const t = new x(this.value), r = parseFloat(t.toString());
263
- return new x(r.toString());
262
+ const t = new $(this.value), r = parseFloat(t.toString());
263
+ return new $(r.toString());
264
264
  } else if (e === re && typeof this.value == "string")
265
265
  return this.value.toLowerCase() === "true";
266
266
  }
267
267
  return this.value;
268
268
  }
269
269
  setValue(e) {
270
- return typeof e == "number" ? e % 1 === 0 ? this.value = new A(e.toString()) : this.value = new x(e.toString()) : this.value = e, this;
270
+ return typeof e == "number" ? e % 1 === 0 ? this.value = new A(e.toString()) : this.value = new $(e.toString()) : this.value = e, this;
271
271
  }
272
272
  getItems() {
273
273
  return this.items;
@@ -358,7 +358,7 @@ class u {
358
358
  return !1;
359
359
  }
360
360
  get(e, t) {
361
- return Zr.get(this, e, t);
361
+ return Xr.get(this, e, t);
362
362
  }
363
363
  getAsNode(e) {
364
364
  const t = this.get(e);
@@ -368,7 +368,7 @@ class u {
368
368
  }
369
369
  getAsInteger(e) {
370
370
  const t = this.get(e);
371
- if (t instanceof A || t instanceof x)
371
+ if (t instanceof A || t instanceof $)
372
372
  return t.toNumber();
373
373
  throw new Error(
374
374
  `Value at path ${e} is not a BigInteger or BigDecimal: ${t}`
@@ -414,7 +414,7 @@ class Be {
414
414
  return !0;
415
415
  }
416
416
  }
417
- const Pn = y.string().max(Be.MAX_BLUE_ID_LENGTH, {
417
+ const wn = y.string().max(Be.MAX_BLUE_ID_LENGTH, {
418
418
  message: "Blue Id has a maximum length of 45 characters"
419
419
  }).min(Be.MIN_BLUE_ID_LENGTH, {
420
420
  message: "Blue Id has a minimum length of 41 characters"
@@ -440,34 +440,34 @@ const Pn = y.string().max(Be.MAX_BLUE_ID_LENGTH, {
440
440
  items: y.array(Ve).optional()
441
441
  })
442
442
  )
443
- ), st = y.object({
443
+ ), it = y.object({
444
444
  blueId: y.string().optional(),
445
445
  name: y.string().optional(),
446
446
  description: y.string().optional(),
447
447
  type: Ve.optional()
448
- }), wn = st.extend({
448
+ }), Sn = it.extend({
449
449
  value: y.string().optional()
450
- }), Sn = st.extend({
450
+ }), bn = it.extend({
451
451
  value: y.number().optional()
452
- }), bn = st.extend({
452
+ }), En = it.extend({
453
453
  value: y.boolean().optional()
454
- }), En = st.extend({
454
+ }), Nn = it.extend({
455
455
  items: y.array(y.string()).optional()
456
- }), Nn = (i) => Ve.safeParse(i).success, Xr = (i) => p(i) && "blueId" in i && p(i.blueId), Cn = (i) => p(i) && "name" in i && p(i.name), qr = (i) => p(i) && "items" in i && p(i.items), Qr = (i) => p(i) && "type" in i && p(i.type), es = (i) => p(i) && "value" in i && p(i.value), Rn = (i, e) => i.required({ type: !0 }).safeParse(e).success, R = (i) => i instanceof G, oe = (i) => R(i) && i instanceof A, ft = (i) => R(i) && i instanceof x, ts = y.lazy(
457
- () => y.record(Je)
458
- ), rs = y.lazy(
456
+ }), Cn = (i) => Ve.safeParse(i).success, qr = (i) => p(i) && "blueId" in i && p(i.blueId), Rn = (i) => p(i) && "name" in i && p(i.name), Qr = (i) => p(i) && "items" in i && p(i.items), es = (i) => p(i) && "type" in i && p(i.type), ts = (i) => p(i) && "value" in i && p(i.value), An = (i, e) => i.required({ type: !0 }).safeParse(e).success, C = (i) => i instanceof G, oe = (i) => C(i) && i instanceof A, yt = (i) => C(i) && i instanceof $, rs = y.lazy(
457
+ () => y.record(Ze)
458
+ ), ss = y.lazy(
459
459
  () => y.union([
460
- y.array(Je),
461
- y.array(Je).readonly()
460
+ y.array(Ze),
461
+ y.array(Ze).readonly()
462
462
  ])
463
- ), Je = y.lazy(
463
+ ), Ze = y.lazy(
464
464
  () => y.union([
465
- _r,
466
- ts,
465
+ jr,
467
466
  rs,
467
+ ss,
468
468
  y.instanceof(G)
469
469
  ])
470
- ), hr = (i) => er(i) && !tr(i) && !Wt(i) && !R(i), pr = (i) => tr(i) || Wt(i), An = (i) => pr(i) || hr(i) || R(i) || Gt(i);
470
+ ), pr = (i) => tr(i) && !rr(i) && !Gt(i) && !C(i), fr = (i) => rr(i) || Gt(i), Vn = (i) => fr(i) || pr(i) || C(i) || Jt(i);
471
471
  class m {
472
472
  static deserialize(e) {
473
473
  return m.handleNode(e);
@@ -477,7 +477,7 @@ class m {
477
477
  throw new Error(
478
478
  "This is not a valid JSON-like value. Found 'undefined' as a value."
479
479
  );
480
- if (hr(e)) {
480
+ if (pr(e)) {
481
481
  const t = new u(), r = {};
482
482
  return Object.entries(e).forEach(([s, n]) => {
483
483
  switch (s) {
@@ -533,7 +533,7 @@ class m {
533
533
  }
534
534
  }), Object.keys(r).length > 0 && t.setProperties(r), t;
535
535
  } else {
536
- if (pr(e))
536
+ if (fr(e))
537
537
  return new u().setItems(m.handleArray(e));
538
538
  {
539
539
  const t = e;
@@ -546,13 +546,13 @@ class m {
546
546
  return null;
547
547
  if (typeof e == "string")
548
548
  return e;
549
- if (typeof e == "number" || R(e))
549
+ if (typeof e == "number" || C(e))
550
550
  if (oe(e) || Number.isSafeInteger(e)) {
551
551
  const t = new A(e.toString()), r = Number.MIN_SAFE_INTEGER, s = Number.MAX_SAFE_INTEGER;
552
552
  return t.lt(r) ? new A(r.toString()) : t.gt(s) ? new A(s.toString()) : t;
553
553
  } else {
554
554
  const t = parseFloat(e.toString());
555
- return new x(t.toString());
555
+ return new $(t.toString());
556
556
  }
557
557
  else if (typeof e == "boolean")
558
558
  return e;
@@ -560,7 +560,7 @@ class m {
560
560
  }
561
561
  static handleArray(e) {
562
562
  if (e != null) {
563
- if (er(e) && !Array.isArray(e))
563
+ if (tr(e) && !Array.isArray(e))
564
564
  return [m.handleNode(e)];
565
565
  if (Array.isArray(e))
566
566
  return e.map(m.handleNode);
@@ -568,12 +568,12 @@ class m {
568
568
  }
569
569
  }
570
570
  }
571
- function ss(i) {
571
+ function is(i) {
572
572
  return i && i.__esModule && Object.prototype.hasOwnProperty.call(i, "default") ? i.default : i;
573
573
  }
574
- var at, jt;
575
- function is() {
576
- return jt || (jt = 1, at = function i(e) {
574
+ var ct, Ft;
575
+ function ns() {
576
+ return Ft || (Ft = 1, ct = function i(e) {
577
577
  if (typeof e == "number" && isNaN(e))
578
578
  throw new Error("NaN is not allowed");
579
579
  if (typeof e == "number" && !isFinite(e))
@@ -584,40 +584,40 @@ function is() {
584
584
  const n = r.length === 0 ? "" : ",";
585
585
  return `${r}${n}${i(s)}:${i(e[s])}`;
586
586
  }, "")}}`;
587
- }), at;
587
+ }), ct;
588
588
  }
589
- var ns = is();
590
- const os = /* @__PURE__ */ ss(ns);
591
- class yt {
589
+ var os = ns();
590
+ const ls = /* @__PURE__ */ is(os);
591
+ class gt {
592
592
  static canonicalize(e) {
593
- return os(e);
593
+ return ls(e);
594
594
  }
595
595
  }
596
- const ct = typeof process < "u" && process.versions != null && process.versions.node != null;
597
- class At {
596
+ const ut = typeof process < "u" && process.versions != null && process.versions.node != null;
597
+ class Vt {
598
598
  static instance;
599
599
  browserCrypto;
600
600
  constructor() {
601
601
  this.browserCrypto = this.initBrowserCrypto();
602
602
  }
603
603
  static getInstance() {
604
- return this.instance || (this.instance = new At()), this.instance;
604
+ return this.instance || (this.instance = new Vt()), this.instance;
605
605
  }
606
606
  initBrowserCrypto() {
607
- return ct ? null : "crypto" in globalThis ? globalThis.crypto : null;
607
+ return ut ? null : "crypto" in globalThis ? globalThis.crypto : null;
608
608
  }
609
609
  hasNodeCrypto() {
610
- return ct && !!lt && typeof lt.createHash == "function";
610
+ return ut && !!at && typeof at.createHash == "function";
611
611
  }
612
612
  getBrowserCrypto() {
613
613
  return this.browserCrypto;
614
614
  }
615
615
  getNodeCrypto() {
616
- return ct ? lt : null;
616
+ return ut ? at : null;
617
617
  }
618
618
  }
619
- class ls {
620
- cryptoEnv = At.getInstance();
619
+ class as {
620
+ cryptoEnv = Vt.getInstance();
621
621
  applySync(e) {
622
622
  const t = this.canonicalizeInput(e), r = this.cryptoEnv.hasNodeCrypto() ? this.sha256Sync(t) : this.sha256SyncBrowser(t);
623
623
  return Ae.encode(r);
@@ -627,7 +627,7 @@ class ls {
627
627
  return Ae.encode(r);
628
628
  }
629
629
  canonicalizeInput(e) {
630
- const t = yt.canonicalize(e);
630
+ const t = gt.canonicalize(e);
631
631
  if (typeof t != "string")
632
632
  throw new Error("Canonized value must be a string");
633
633
  return t;
@@ -642,7 +642,7 @@ class ls {
642
642
  return new Uint8Array(r);
643
643
  }
644
644
  sha256SyncBrowser(e) {
645
- return new Uint8Array(Gr.arrayBuffer(e));
645
+ return new Uint8Array(Jr.arrayBuffer(e));
646
646
  }
647
647
  async sha256Async(e) {
648
648
  if (this.cryptoEnv.hasNodeCrypto())
@@ -654,7 +654,7 @@ class ls {
654
654
  return new Uint8Array(n);
655
655
  }
656
656
  }
657
- const b = {
657
+ const S = {
658
658
  NAME: "name",
659
659
  DESCRIPTION: "description",
660
660
  TYPE: "type",
@@ -667,7 +667,7 @@ const b = {
667
667
  BLUE: "blue",
668
668
  ITEMS: "items"
669
669
  };
670
- class E {
670
+ class b {
671
671
  /**
672
672
  * Check if a node is empty (has no fields set)
673
673
  */
@@ -678,13 +678,13 @@ class E {
678
678
  * Check if a node has only a Blue ID
679
679
  */
680
680
  static hasBlueIdOnly(e) {
681
- return this.hasFieldsAndMayHaveFields(e, /* @__PURE__ */ new Set([b.BLUE_ID]));
681
+ return this.hasFieldsAndMayHaveFields(e, /* @__PURE__ */ new Set([S.BLUE_ID]));
682
682
  }
683
683
  /**
684
684
  * Check if a node has only items
685
685
  */
686
686
  static hasItemsOnly(e) {
687
- return this.hasFieldsAndMayHaveFields(e, /* @__PURE__ */ new Set([b.ITEMS]));
687
+ return this.hasFieldsAndMayHaveFields(e, /* @__PURE__ */ new Set([S.ITEMS]));
688
688
  }
689
689
  /**
690
690
  * Check if a node is a valid value node (has a value, no properties, no items)
@@ -712,7 +712,7 @@ class E {
712
712
  * Create a double node
713
713
  */
714
714
  static doubleNode(e) {
715
- const t = e instanceof x ? e : new x(e.toString());
715
+ const t = e instanceof $ ? e : new $(e.toString());
716
716
  return new u().setType(new u().setBlueId(ee)).setValue(t);
717
717
  }
718
718
  /**
@@ -729,7 +729,7 @@ class E {
729
729
  * @returns true if the node matches the field requirements
730
730
  */
731
731
  static hasFieldsAndMayHaveFields(e, t = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Set()) {
732
- for (const s of Object.values(b)) {
732
+ for (const s of Object.values(S)) {
733
733
  const n = p(this.getFieldValue(e, s));
734
734
  if (t.has(s)) {
735
735
  if (!n) return !1;
@@ -744,41 +744,41 @@ class E {
744
744
  */
745
745
  static getFieldValue(e, t) {
746
746
  switch (t) {
747
- case b.NAME:
747
+ case S.NAME:
748
748
  return e.getName();
749
- case b.TYPE:
749
+ case S.TYPE:
750
750
  return e.getType();
751
- case b.VALUE:
751
+ case S.VALUE:
752
752
  return e.getValue();
753
- case b.DESCRIPTION:
753
+ case S.DESCRIPTION:
754
754
  return e.getDescription();
755
- case b.PROPERTIES:
755
+ case S.PROPERTIES:
756
756
  return e.getProperties();
757
- case b.BLUE:
757
+ case S.BLUE:
758
758
  return e.getBlue();
759
- case b.ITEMS:
759
+ case S.ITEMS:
760
760
  return e.getItems();
761
- case b.KEY_TYPE:
761
+ case S.KEY_TYPE:
762
762
  return e.getKeyType();
763
- case b.VALUE_TYPE:
763
+ case S.VALUE_TYPE:
764
764
  return e.getValueType();
765
- case b.ITEM_TYPE:
765
+ case S.ITEM_TYPE:
766
766
  return e.getItemType();
767
- case b.BLUE_ID:
767
+ case S.BLUE_ID:
768
768
  return e.getBlueId();
769
769
  default:
770
770
  throw new Error(`Unknown field: ${t}`);
771
771
  }
772
772
  }
773
773
  }
774
- const Ie = "$previous", ce = "$pos", gt = "$empty";
774
+ const Ie = "$previous", ce = "$pos", mt = "$empty";
775
775
  class B {
776
776
  static getMergePolicy(e, t) {
777
777
  const r = this.getMergePolicyValue(e);
778
778
  return r !== void 0 ? r : (t === void 0 ? void 0 : this.getMergePolicyValue(t)) ?? "positional";
779
779
  }
780
780
  static getMergePolicyValue(e) {
781
- const t = e.getProperties()?.[St]?.getValue();
781
+ const t = e.getProperties()?.[bt]?.getValue();
782
782
  if (t === "append-only" || t === "positional")
783
783
  return t;
784
784
  }
@@ -814,26 +814,26 @@ class B {
814
814
  static hasEmptyProperty(e) {
815
815
  return Object.prototype.hasOwnProperty.call(
816
816
  e.getProperties() ?? {},
817
- gt
817
+ mt
818
818
  );
819
819
  }
820
820
  static isEmptyItem(e) {
821
- const t = e.getProperties(), r = t?.[gt];
822
- return t !== void 0 && Object.keys(t).length === 1 && r !== void 0 && E.hasFieldsAndMayHaveFields(
821
+ const t = e.getProperties(), r = t?.[mt];
822
+ return t !== void 0 && Object.keys(t).length === 1 && r !== void 0 && b.hasFieldsAndMayHaveFields(
823
823
  e,
824
- /* @__PURE__ */ new Set([b.PROPERTIES])
825
- ) && E.hasFieldsAndMayHaveFields(
824
+ /* @__PURE__ */ new Set([S.PROPERTIES])
825
+ ) && b.hasFieldsAndMayHaveFields(
826
826
  r,
827
- /* @__PURE__ */ new Set([b.VALUE]),
828
- /* @__PURE__ */ new Set([b.TYPE])
827
+ /* @__PURE__ */ new Set([S.VALUE]),
828
+ /* @__PURE__ */ new Set([S.TYPE])
829
829
  ) && r.getValue() === !0;
830
830
  }
831
831
  static isPreviousItem(e) {
832
832
  const t = e.getProperties();
833
- return t !== void 0 && Object.keys(t).length === 1 && E.hasFieldsAndMayHaveFields(
833
+ return t !== void 0 && Object.keys(t).length === 1 && b.hasFieldsAndMayHaveFields(
834
834
  e,
835
- /* @__PURE__ */ new Set([b.PROPERTIES])
836
- ) && E.hasBlueIdOnly(t[Ie]);
835
+ /* @__PURE__ */ new Set([S.PROPERTIES])
836
+ ) && b.hasBlueIdOnly(t[Ie]);
837
837
  }
838
838
  static getPreviousBlueId(e) {
839
839
  if (this.isPreviousItem(e))
@@ -848,10 +848,10 @@ class B {
848
848
  const t = e.getProperties()?.[ce];
849
849
  if (t === void 0)
850
850
  return;
851
- if (!E.hasFieldsAndMayHaveFields(
851
+ if (!b.hasFieldsAndMayHaveFields(
852
852
  t,
853
- /* @__PURE__ */ new Set([b.VALUE]),
854
- /* @__PURE__ */ new Set([b.TYPE])
853
+ /* @__PURE__ */ new Set([S.VALUE]),
854
+ /* @__PURE__ */ new Set([S.TYPE])
855
855
  ))
856
856
  throw new Error("$pos must be a non-negative integer value.");
857
857
  const r = t.getValue(), s = r instanceof A ? r.toNumber() : typeof r == "number" ? r : void 0;
@@ -871,7 +871,7 @@ class B {
871
871
  return r !== void 0 && (delete r[ce], Object.keys(r).length === 0 && t.setProperties(void 0)), t;
872
872
  }
873
873
  static hasPayloadAfterRemovingPosition(e) {
874
- return !E.isEmptyNode(this.withoutPosition(e));
874
+ return !b.isEmptyNode(this.withoutPosition(e));
875
875
  }
876
876
  static isReplacementPayload(e) {
877
877
  return p(e.getValue()) || p(e.getItems()) || p(e.getBlueId());
@@ -883,12 +883,12 @@ class B {
883
883
  return e !== void 0 && this.hasPositionControl(e);
884
884
  }
885
885
  }
886
- const as = /* @__PURE__ */ new Set([
886
+ const cs = /* @__PURE__ */ new Set([
887
887
  ie,
888
888
  ne,
889
889
  W
890
- ]), cs = { $list: "empty" }, us = "$listCons", ds = "prev", hs = "elem";
891
- class ps {
890
+ ]), us = { $list: "empty" }, ds = "$listCons", hs = "prev", ps = "elem";
891
+ class fs {
892
892
  constructor(e) {
893
893
  this.hashProvider = e;
894
894
  }
@@ -910,7 +910,7 @@ class ps {
910
910
  calculateMap(e, t) {
911
911
  const s = Object.entries(e).sort(([o], [l]) => o.localeCompare(l)).map(
912
912
  ([o, l]) => {
913
- if (as.has(o))
913
+ if (cs.has(o))
914
914
  return t ? [o, l] : Promise.resolve([o, l]);
915
915
  const a = this.calculateInternal(l, t);
916
916
  return t ? [o, { [V]: a }] : Promise.resolve(a).then((c) => [
@@ -937,7 +937,7 @@ class ps {
937
937
  );
938
938
  s = t ? o : Promise.resolve(o), r = 1;
939
939
  } else
940
- s = this.applyHash(cs, t);
940
+ s = this.applyHash(us, t);
941
941
  for (let o = r; o < e.length; o++) {
942
942
  const l = e[o];
943
943
  if (this.hasPreviousControlKey(l))
@@ -958,20 +958,20 @@ class ps {
958
958
  }
959
959
  createListFoldInput(e, t) {
960
960
  return {
961
- [us]: {
962
- [ds]: { [V]: e },
963
- [hs]: { [V]: t }
961
+ [ds]: {
962
+ [hs]: { [V]: e },
963
+ [ps]: { [V]: t }
964
964
  }
965
965
  };
966
966
  }
967
967
  getPreviousControlBlueId(e) {
968
- if (typeof e != "object" || e === null || Array.isArray(e) || R(e))
968
+ if (typeof e != "object" || e === null || Array.isArray(e) || C(e))
969
969
  return;
970
970
  const t = Object.entries(e);
971
971
  if (t.length !== 1 || t[0][0] !== Ie)
972
972
  return;
973
973
  const r = t[0][1];
974
- if (!(typeof r != "object" || r === null || Array.isArray(r) || R(r) || !this.isPureReference(r)))
974
+ if (!(typeof r != "object" || r === null || Array.isArray(r) || C(r) || !this.isPureReference(r)))
975
975
  return r[V];
976
976
  }
977
977
  hasPreviousControlKey(e) {
@@ -981,7 +981,7 @@ class ps {
981
981
  return this.hasControlKey(e, ce);
982
982
  }
983
983
  hasControlKey(e, t) {
984
- return typeof e == "object" && e !== null && !Array.isArray(e) && !R(e) && Object.prototype.hasOwnProperty.call(e, t);
984
+ return typeof e == "object" && e !== null && !Array.isArray(e) && !C(e) && Object.prototype.hasOwnProperty.call(e, t);
985
985
  }
986
986
  applyHash(e, t) {
987
987
  return t ? this.hashProvider.applySync(e) : this.hashProvider.apply(e);
@@ -1004,7 +1004,7 @@ class ps {
1004
1004
  }
1005
1005
  jsonToHashValue(e) {
1006
1006
  if (e != null) {
1007
- if (this.isScalar(e) || R(e))
1007
+ if (this.isScalar(e) || C(e))
1008
1008
  return this.scalarToHashValue(e);
1009
1009
  if (Array.isArray(e))
1010
1010
  return e.map((t) => this.jsonToHashValue(t)).filter((t) => t !== void 0);
@@ -1050,7 +1050,7 @@ class ps {
1050
1050
  return t.length === 1 && t[0]?.[0] === Y && Array.isArray(t[0]?.[1]);
1051
1051
  }
1052
1052
  isBasicTypedListWrapper(e) {
1053
- return this.hasOnlyKeys(e, [K, Y]) && this.isTypeReference(e[K], tt) && Array.isArray(e[Y]);
1053
+ return this.hasOnlyKeys(e, [K, Y]) && this.isTypeReference(e[K], rt) && Array.isArray(e[Y]);
1054
1054
  }
1055
1055
  hasOnlyKeys(e, t) {
1056
1056
  return Object.keys(e).length === t.length && t.every(
@@ -1061,27 +1061,27 @@ class ps {
1061
1061
  return this.isTypeReference(e, Q) || this.isTypeReference(e, te) || this.isTypeReference(e, ee) || this.isTypeReference(e, re);
1062
1062
  }
1063
1063
  isTypeReference(e, t) {
1064
- return typeof e != "object" || e === null || Array.isArray(e) || R(e) ? !1 : this.isPureReference(e) && e[V] === t;
1064
+ return typeof e != "object" || e === null || Array.isArray(e) || C(e) ? !1 : this.isPureReference(e) && e[V] === t;
1065
1065
  }
1066
1066
  isScalar(e) {
1067
- return Gt(e) && e !== null || R(e);
1067
+ return Jt(e) && e !== null || C(e);
1068
1068
  }
1069
1069
  scalarToHashValue(e) {
1070
1070
  if (e instanceof A || oe(e)) {
1071
1071
  const t = new G(Number.MIN_SAFE_INTEGER.toString()), r = new G(Number.MAX_SAFE_INTEGER.toString());
1072
1072
  return e.lt(t) || e.gt(r) ? e.toString() : e.toNumber();
1073
1073
  }
1074
- return e instanceof x || R(e) ? e.toNumber() : e;
1074
+ return e instanceof $ || C(e) ? e.toNumber() : e;
1075
1075
  }
1076
1076
  toJsonScalar(e) {
1077
- return R(e) ? this.scalarToHashValue(e) : e;
1077
+ return C(e) ? this.scalarToHashValue(e) : e;
1078
1078
  }
1079
1079
  }
1080
1080
  class M {
1081
- static INSTANCE = new M(new ls());
1081
+ static INSTANCE = new M(new as());
1082
1082
  hasher;
1083
1083
  constructor(e) {
1084
- this.hasher = new ps(e);
1084
+ this.hasher = new fs(e);
1085
1085
  }
1086
1086
  static calculateBlueId(e) {
1087
1087
  return M.INSTANCE.calculate(e);
@@ -1170,7 +1170,7 @@ class U {
1170
1170
  if (p(t))
1171
1171
  return new u().setBlueId(t);
1172
1172
  const r = new u();
1173
- return this.reverseNode(r, e, void 0, !0), E.isEmptyNode(r) ? e.clone() : r;
1173
+ return this.reverseNode(r, e, void 0, !0), b.isEmptyNode(r) ? e.clone() : r;
1174
1174
  }
1175
1175
  reverseItems(e, t, r) {
1176
1176
  const s = t.getItems();
@@ -1210,7 +1210,7 @@ class U {
1210
1210
  s[c],
1211
1211
  !1
1212
1212
  );
1213
- const h = E.isEmptyNode(d) ? r[c].clone() : d;
1213
+ const h = b.isEmptyNode(d) ? r[c].clone() : d;
1214
1214
  a.push(B.createPositionedItem(c, h));
1215
1215
  }
1216
1216
  for (let c = s.length; c < r.length; c++) {
@@ -1239,7 +1239,7 @@ class U {
1239
1239
  l,
1240
1240
  a,
1241
1241
  !1
1242
- ), E.isEmptyNode(c) || (n[o] = c);
1242
+ ), b.isEmptyNode(c) || (n[o] = c);
1243
1243
  }
1244
1244
  Object.keys(n).length > 0 && e.setProperties(n);
1245
1245
  }
@@ -1258,7 +1258,7 @@ class U {
1258
1258
  if (v(e))
1259
1259
  return;
1260
1260
  const t = e.cloneShallow().setName(void 0).setDescription(void 0).setType(void 0).setBlueId(void 0);
1261
- if (!E.isEmptyNode(t))
1261
+ if (!b.isEmptyNode(t))
1262
1262
  return t;
1263
1263
  }
1264
1264
  /**
@@ -1290,7 +1290,7 @@ class U {
1290
1290
  return p(d) && r.setItems(d.map((h) => h.clone())), r;
1291
1291
  }
1292
1292
  }
1293
- class mt {
1293
+ class It {
1294
1294
  mergeReverser = new U();
1295
1295
  hashMergeReverser = new U({
1296
1296
  emitListControls: !1
@@ -1321,7 +1321,7 @@ class he extends Error {
1321
1321
  super(t), this.code = e, this.details = r && r.length > 0 ? r : [], this.name = "BlueError";
1322
1322
  }
1323
1323
  }
1324
- const _ = {
1324
+ const j = {
1325
1325
  AMBIGUOUS_BLUE_ID_PAYLOAD: "AMBIGUOUS_BLUE_ID_PAYLOAD",
1326
1326
  BLUE_ID_MISMATCH: "BLUE_ID_MISMATCH",
1327
1327
  INVALID_STORAGE_SHAPE: "INVALID_STORAGE_SHAPE",
@@ -1332,8 +1332,8 @@ const _ = {
1332
1332
  };
1333
1333
  class X {
1334
1334
  static RESERVED_PROPERTY_KEYS = /* @__PURE__ */ new Set([
1335
- sr,
1336
- St,
1335
+ ir,
1336
+ bt,
1337
1337
  z
1338
1338
  ]);
1339
1339
  static INTERNAL_PROPERTIES_KEY = "properties";
@@ -1369,17 +1369,17 @@ class X {
1369
1369
  static validateNode(e, t, r) {
1370
1370
  r.insideItems && this.validateListControlItem(e, t, r.itemIndex ?? 0);
1371
1371
  const s = e.getReferenceBlueId();
1372
- if (s !== void 0 && !E.hasBlueIdOnly(e))
1373
- if (r.insideItems && B.hasPositionProperty(e) && E.hasBlueIdOnly(B.withoutPosition(e)))
1372
+ if (s !== void 0 && !b.hasBlueIdOnly(e))
1373
+ if (r.insideItems && B.hasPositionProperty(e) && b.hasBlueIdOnly(B.withoutPosition(e)))
1374
1374
  B.readPosition(e);
1375
1375
  else {
1376
1376
  const h = this.toPointer(t);
1377
1377
  throw new he(
1378
- _.AMBIGUOUS_BLUE_ID_PAYLOAD,
1378
+ j.AMBIGUOUS_BLUE_ID_PAYLOAD,
1379
1379
  `Ambiguous blueId plus payload at ${h}. Use exact { blueId } for references or remove blueId from payload content.`,
1380
1380
  [
1381
1381
  {
1382
- code: _.AMBIGUOUS_BLUE_ID_PAYLOAD,
1382
+ code: j.AMBIGUOUS_BLUE_ID_PAYLOAD,
1383
1383
  message: "A storage or authoring node cannot combine blueId with payload.",
1384
1384
  locationPath: t,
1385
1385
  context: { blueId: s }
@@ -1459,18 +1459,18 @@ class X {
1459
1459
  "The document-level properties key is not part of the Blue language."
1460
1460
  ), Object.fromEntries(
1461
1461
  Object.entries(s).filter(
1462
- ([n]) => !this.RESERVED_PROPERTY_KEYS.has(n) && !(r.insideItems && (n === ce || n === gt))
1462
+ ([n]) => !this.RESERVED_PROPERTY_KEYS.has(n) && !(r.insideItems && (n === ce || n === mt))
1463
1463
  )
1464
1464
  );
1465
1465
  }
1466
1466
  static throwInvalidStorageShape(e, t) {
1467
1467
  const r = this.toPointer(e);
1468
1468
  throw new he(
1469
- _.INVALID_STORAGE_SHAPE,
1469
+ j.INVALID_STORAGE_SHAPE,
1470
1470
  `${t} at ${r}`,
1471
1471
  [
1472
1472
  {
1473
- code: _.INVALID_STORAGE_SHAPE,
1473
+ code: j.INVALID_STORAGE_SHAPE,
1474
1474
  message: t,
1475
1475
  locationPath: e
1476
1476
  }
@@ -1481,12 +1481,12 @@ class X {
1481
1481
  return e.length === 0 ? "/" : `/${e.map((t) => t.replace(/~/g, "~0").replace(/\//g, "~1")).join("/")}`;
1482
1482
  }
1483
1483
  }
1484
- class Vn {
1484
+ class On {
1485
1485
  static convert(e) {
1486
1486
  const t = Ae.decode(e), r = new Uint8Array(2 + t.length);
1487
1487
  r[0] = 18, r[1] = 32, r.set(t, 2);
1488
1488
  const s = new Uint8Array(2 + r.length);
1489
- return s[0] = 1, s[1] = 85, s.set(r, 2), "b" + new Jr.Encoder({ type: "rfc4648", lc: !0 }).write(s).finalize().replace(/=/g, "");
1489
+ return s[0] = 1, s[1] = 85, s.set(r, 2), "b" + new Zr.Encoder({ type: "rfc4648", lc: !0 }).write(s).finalize().replace(/=/g, "");
1490
1490
  }
1491
1491
  }
1492
1492
  class T {
@@ -1504,7 +1504,7 @@ class T {
1504
1504
  const { strategy: r } = this.normalizeOptions(t), s = e.getValue(), n = this.handleValue(s);
1505
1505
  if (n !== void 0 && r === "simple")
1506
1506
  return n;
1507
- const o = e.getItems()?.map((F) => T.get(F, r));
1507
+ const o = e.getItems()?.map((x) => T.get(x, r));
1508
1508
  if (o !== void 0 && r === "simple")
1509
1509
  return o;
1510
1510
  const l = e.getName(), a = e.getDescription();
@@ -1518,8 +1518,8 @@ class T {
1518
1518
  l !== void 0 && (c[ie] = l), a !== void 0 && (c[ne] = a);
1519
1519
  const d = e.getType();
1520
1520
  if (r === "official" && s !== void 0 && d === void 0) {
1521
- const F = this.inferTypeBlueId(s);
1522
- F !== null && (c[K] = { [V]: F });
1521
+ const x = this.inferTypeBlueId(s);
1522
+ x !== null && (c[K] = { [V]: x });
1523
1523
  } else d !== void 0 && (c[K] = T.get(d, r));
1524
1524
  const h = e.getItemType();
1525
1525
  h !== void 0 && (c[we] = T.get(h, r));
@@ -1529,15 +1529,15 @@ class T {
1529
1529
  g !== void 0 && (c[be] = T.get(g, r)), n !== void 0 && (c[W] = n), o !== void 0 && (c[Y] = o);
1530
1530
  const I = e.getBlueId();
1531
1531
  I !== void 0 && (c[V] = I);
1532
- const L = e.getBlue();
1533
- L !== void 0 && (c[Le] = L);
1534
- const w = e.getProperties();
1535
- return w !== void 0 && Object.entries(w).forEach(([F, P]) => {
1536
- c[F] = T.get(P, r);
1532
+ const D = e.getBlue();
1533
+ D !== void 0 && (c[Le] = D);
1534
+ const R = e.getProperties();
1535
+ return R !== void 0 && Object.entries(R).forEach(([x, je]) => {
1536
+ c[x] = T.get(je, r);
1537
1537
  }), c;
1538
1538
  }
1539
1539
  static handleValue(e) {
1540
- if (R(e)) {
1540
+ if (C(e)) {
1541
1541
  if (oe(e)) {
1542
1542
  const t = new G(Number.MIN_SAFE_INTEGER.toString()), r = new G(Number.MAX_SAFE_INTEGER.toString());
1543
1543
  if (e.lt(t) || e.gt(r))
@@ -1548,7 +1548,7 @@ class T {
1548
1548
  return e;
1549
1549
  }
1550
1550
  static inferTypeBlueId(e) {
1551
- return typeof e == "string" ? Q : R(e) ? oe(e) ? te : ee : typeof e == "boolean" ? re : null;
1551
+ return typeof e == "string" ? Q : C(e) ? oe(e) ? te : ee : typeof e == "boolean" ? re : null;
1552
1552
  }
1553
1553
  static normalizeOptions(e) {
1554
1554
  return typeof e == "string" ? {
@@ -1558,7 +1558,7 @@ class T {
1558
1558
  };
1559
1559
  }
1560
1560
  }
1561
- class D {
1561
+ class L {
1562
1562
  /**
1563
1563
  * Transforms a node and all its child nodes using the provided transformer function
1564
1564
  * @param node - The node to transform
@@ -1567,30 +1567,30 @@ class D {
1567
1567
  */
1568
1568
  static transform(e, t) {
1569
1569
  const r = t(e.clone()), s = r.getType();
1570
- s !== void 0 && r.setType(D.transform(s, t));
1570
+ s !== void 0 && r.setType(L.transform(s, t));
1571
1571
  const n = r.getItemType();
1572
1572
  n !== void 0 && r.setItemType(
1573
- D.transform(n, t)
1573
+ L.transform(n, t)
1574
1574
  );
1575
1575
  const o = r.getKeyType();
1576
1576
  o !== void 0 && r.setKeyType(
1577
- D.transform(o, t)
1577
+ L.transform(o, t)
1578
1578
  );
1579
1579
  const l = r.getValueType();
1580
1580
  l !== void 0 && r.setValueType(
1581
- D.transform(l, t)
1581
+ L.transform(l, t)
1582
1582
  );
1583
1583
  const a = r.getItems();
1584
1584
  if (a !== void 0) {
1585
1585
  const d = a.map(
1586
- (h) => D.transform(h, t)
1586
+ (h) => L.transform(h, t)
1587
1587
  );
1588
1588
  r.setItems(d);
1589
1589
  }
1590
1590
  const c = r.getProperties();
1591
1591
  if (c !== void 0) {
1592
1592
  const d = Object.keys(c).reduce(
1593
- (h, f) => (h[f] = D.transform(c[f], t), h),
1593
+ (h, f) => (h[f] = L.transform(c[f], t), h),
1594
1594
  {}
1595
1595
  );
1596
1596
  r.setProperties(d);
@@ -1598,12 +1598,12 @@ class D {
1598
1598
  return r;
1599
1599
  }
1600
1600
  }
1601
- const le = (i) => !!i && typeof i == "object" && !Array.isArray(i) && !(i instanceof u), q = (i) => i instanceof A || i instanceof x, fs = (i) => i.replace(/~1/g, "/").replace(/~0/g, "~");
1601
+ const le = (i) => !!i && typeof i == "object" && !Array.isArray(i) && !(i instanceof u), q = (i) => i instanceof A || i instanceof $, ys = (i) => i.replace(/~1/g, "/").replace(/~0/g, "~");
1602
1602
  function Ee(i) {
1603
1603
  if (i === "/") return [];
1604
1604
  if (!i.startsWith("/"))
1605
1605
  throw new Error(`Path must start with '/': ${i}`);
1606
- return i.split("/").slice(1).map(fs);
1606
+ return i.split("/").slice(1).map(ys);
1607
1607
  }
1608
1608
  function Pe(i) {
1609
1609
  if (i === "-") return -1;
@@ -1616,7 +1616,7 @@ function Pe(i) {
1616
1616
  );
1617
1617
  return e;
1618
1618
  }
1619
- function fr(i, e, t, r = !0) {
1619
+ function yr(i, e, t, r = !0) {
1620
1620
  switch (e) {
1621
1621
  case "name":
1622
1622
  return t ? r ? i.getName() ?? null : i : i.getName();
@@ -1646,9 +1646,9 @@ function fr(i, e, t, r = !0) {
1646
1646
  return;
1647
1647
  }
1648
1648
  }
1649
- function Ft(i, e, t = !0) {
1649
+ function Ut(i, e, t = !0) {
1650
1650
  if (i instanceof u) {
1651
- const r = fr(
1651
+ const r = yr(
1652
1652
  i,
1653
1653
  e,
1654
1654
  !0,
@@ -1692,14 +1692,14 @@ function Ne(i, e) {
1692
1692
  };
1693
1693
  let t = i;
1694
1694
  for (let s = 0; s < e.length - 1; ++s) {
1695
- const n = e[s], o = Ft(t, n);
1695
+ const n = e[s], o = Ut(t, n);
1696
1696
  if (o === void 0)
1697
1697
  throw new Error(`Cannot resolve '/${e.slice(0, s + 1).join("/")}'`);
1698
1698
  t = o;
1699
1699
  }
1700
1700
  const r = e[e.length - 1];
1701
1701
  if (t instanceof u) {
1702
- const s = Ft(t, r, !1);
1702
+ const s = Ut(t, r, !1);
1703
1703
  if ((typeof s != "object" || s === null || q(s)) && !(s instanceof u) && !Array.isArray(s) && ["name", "description", "value", "blueId"].includes(r))
1704
1704
  return {
1705
1705
  parent: t,
@@ -1712,9 +1712,9 @@ function Ne(i, e) {
1712
1712
  key: Array.isArray(t) ? Pe(r) : r
1713
1713
  };
1714
1714
  }
1715
- function Vt(i, e) {
1715
+ function Ot(i, e) {
1716
1716
  if (i instanceof u) {
1717
- const t = e, r = fr(i, t, !1);
1717
+ const t = e, r = yr(i, t, !1);
1718
1718
  if (r !== void 0 || [
1719
1719
  "name",
1720
1720
  "description",
@@ -1738,23 +1738,23 @@ function Vt(i, e) {
1738
1738
  }
1739
1739
  return Array.isArray(i) || le(i) ? i[e] : i;
1740
1740
  }
1741
- function $(i) {
1741
+ function _(i) {
1742
1742
  if (i instanceof u) return i;
1743
1743
  if (i === null || typeof i == "string" || typeof i == "number" || typeof i == "boolean" || q(i))
1744
1744
  return m.deserialize(i);
1745
- const e = It(i);
1745
+ const e = vt(i);
1746
1746
  return m.deserialize(e);
1747
1747
  }
1748
- function It(i) {
1748
+ function vt(i) {
1749
1749
  if (i === void 0) return null;
1750
1750
  if (i === null || typeof i != "object") return i;
1751
- if (Array.isArray(i)) return i.map(It);
1751
+ if (Array.isArray(i)) return i.map(vt);
1752
1752
  const e = {};
1753
1753
  for (const [t, r] of Object.entries(i))
1754
- e[t] = It(r);
1754
+ e[t] = vt(r);
1755
1755
  return e;
1756
1756
  }
1757
- function Ot(i, e, t) {
1757
+ function Mt(i, e, t) {
1758
1758
  if (i instanceof u) {
1759
1759
  const r = e;
1760
1760
  switch (r) {
@@ -1766,22 +1766,22 @@ function Ot(i, e, t) {
1766
1766
  return;
1767
1767
  case "type":
1768
1768
  i.setType(
1769
- t instanceof u || typeof t == "string" || t === void 0 ? t : $(t)
1769
+ t instanceof u || typeof t == "string" || t === void 0 ? t : _(t)
1770
1770
  );
1771
1771
  return;
1772
1772
  case "itemType":
1773
1773
  i.setItemType(
1774
- t instanceof u || typeof t == "string" || t === void 0 ? t : $(t)
1774
+ t instanceof u || typeof t == "string" || t === void 0 ? t : _(t)
1775
1775
  );
1776
1776
  return;
1777
1777
  case "keyType":
1778
1778
  i.setKeyType(
1779
- t instanceof u || typeof t == "string" || t === void 0 ? t : $(t)
1779
+ t instanceof u || typeof t == "string" || t === void 0 ? t : _(t)
1780
1780
  );
1781
1781
  return;
1782
1782
  case "valueType":
1783
1783
  i.setValueType(
1784
- t instanceof u || typeof t == "string" || t === void 0 ? t : $(t)
1784
+ t instanceof u || typeof t == "string" || t === void 0 ? t : _(t)
1785
1785
  );
1786
1786
  return;
1787
1787
  case "value": {
@@ -1794,7 +1794,7 @@ function Ot(i, e, t) {
1794
1794
  return;
1795
1795
  case "blue":
1796
1796
  i.setBlue(
1797
- t instanceof u || t === void 0 ? t : $(t)
1797
+ t instanceof u || t === void 0 ? t : _(t)
1798
1798
  );
1799
1799
  return;
1800
1800
  case "items":
@@ -1811,14 +1811,14 @@ function Ot(i, e, t) {
1811
1811
  const s = i.getProperties();
1812
1812
  s && r in s && delete s[r];
1813
1813
  } else
1814
- i.getProperties() || i.setProperties({}), i.addProperty(r, t instanceof u ? t : $(t));
1814
+ i.getProperties() || i.setProperties({}), i.addProperty(r, t instanceof u ? t : _(t));
1815
1815
  return;
1816
1816
  }
1817
1817
  }
1818
1818
  }
1819
1819
  Array.isArray(i) ? i.splice(Pe(e), 1) : le(i) && (t === void 0 ? delete i[e] : i[e] = t);
1820
1820
  }
1821
- function ys(i, e, t, r) {
1821
+ function gs(i, e, t, r) {
1822
1822
  let s = -1;
1823
1823
  if (e !== "-" && (s = typeof e == "number" ? e : parseInt(e, 10), isNaN(s)))
1824
1824
  throw new Error(
@@ -1844,7 +1844,7 @@ function ys(i, e, t, r) {
1844
1844
  } else
1845
1845
  n.splice(s, 0, t);
1846
1846
  }
1847
- function Ze(i, e, t, r) {
1847
+ function Xe(i, e, t, r) {
1848
1848
  if (Array.isArray(i)) {
1849
1849
  const s = e === "-" ? i.length : Pe(e);
1850
1850
  if (!r && s > i.length)
@@ -1853,7 +1853,7 @@ function Ze(i, e, t, r) {
1853
1853
  );
1854
1854
  if (s < 0 && e !== "-")
1855
1855
  throw new Error(`Invalid negative array index: ${e}`);
1856
- const n = $(t);
1856
+ const n = _(t);
1857
1857
  if (r) {
1858
1858
  if (s >= 0 && s < i.length) i[s] = n;
1859
1859
  else if (s >= i.length) {
@@ -1866,16 +1866,16 @@ function Ze(i, e, t, r) {
1866
1866
  return;
1867
1867
  }
1868
1868
  if (i instanceof u) {
1869
- e === "-" || typeof e == "number" && !isNaN(e) || typeof e == "string" && /^\d+$/.test(e) ? ys(i, e, $(t), r) : Ot(i, e, t);
1869
+ e === "-" || typeof e == "number" && !isNaN(e) || typeof e == "string" && /^\d+$/.test(e) ? gs(i, e, _(t), r) : Mt(i, e, t);
1870
1870
  return;
1871
1871
  }
1872
1872
  if (le(i)) {
1873
- i[e] = $(t);
1873
+ i[e] = _(t);
1874
1874
  return;
1875
1875
  }
1876
1876
  throw new Error(`Cannot insert into parent of type ${typeof i}`);
1877
1877
  }
1878
- function gs(i, e) {
1878
+ function ms(i, e) {
1879
1879
  if (Array.isArray(i)) {
1880
1880
  const t = Pe(e);
1881
1881
  t === -1 && e === "-" ? i.length > 0 && i.pop() : t >= 0 && t < i.length && i.splice(t, 1);
@@ -1890,17 +1890,17 @@ function gs(i, e) {
1890
1890
  return;
1891
1891
  }
1892
1892
  }
1893
- Ot(i, e, void 0);
1893
+ Mt(i, e, void 0);
1894
1894
  } else le(i) && delete i[e];
1895
1895
  }
1896
- function vt(i) {
1896
+ function Tt(i) {
1897
1897
  if (i instanceof u) return i.clone();
1898
1898
  if (Array.isArray(i))
1899
- return i.map((t) => vt(t));
1899
+ return i.map((t) => Tt(t));
1900
1900
  if (le(i)) {
1901
1901
  const e = {};
1902
1902
  return Object.keys(i).forEach((t) => {
1903
- e[t] = vt(i[t]);
1903
+ e[t] = Tt(i[t]);
1904
1904
  }), e;
1905
1905
  }
1906
1906
  return i;
@@ -1918,76 +1918,76 @@ function ue(i, e) {
1918
1918
  }
1919
1919
  return !1;
1920
1920
  }
1921
- function yr(i, e) {
1921
+ function gr(i, e) {
1922
1922
  const { parent: t, key: r } = Ne(i, Ee(e));
1923
- return Vt(t, r);
1923
+ return Ot(t, r);
1924
1924
  }
1925
- function gr(i, e, t) {
1925
+ function mr(i, e, t) {
1926
1926
  const r = Ee(e);
1927
1927
  if (r.length === 0 && e === "/") {
1928
- const o = $(t);
1928
+ const o = _(t);
1929
1929
  i.setValue(o.getValue() ?? null), o.getItems() ? i.setItems(o.getItems()) : i.setItems(void 0);
1930
1930
  return;
1931
1931
  }
1932
1932
  const { parent: s, key: n } = Ne(i, r);
1933
- Ze(s, n, t, !0);
1933
+ Xe(s, n, t, !0);
1934
1934
  }
1935
- function ms(i, e, t) {
1935
+ function Is(i, e, t) {
1936
1936
  const r = Ee(e);
1937
1937
  if (r.length === 0 && e === "/") {
1938
1938
  if (i.getItems() && Array.isArray(t)) {
1939
- const o = $(t);
1939
+ const o = _(t);
1940
1940
  o.getItems() ? (i.setItems(o.getItems()), i.setValue(null)) : (i.setValue(o.getValue() ?? null), i.setItems(void 0));
1941
1941
  } else {
1942
- const o = $(t);
1942
+ const o = _(t);
1943
1943
  i.setValue(o.getValue() ?? null), o.getItems() && i.setItems(o.getItems());
1944
1944
  }
1945
1945
  return !0;
1946
1946
  }
1947
1947
  const { parent: s, key: n } = Ne(i, r);
1948
- return Ze(s, n, t, !1), !0;
1948
+ return Xe(s, n, t, !1), !0;
1949
1949
  }
1950
- function Is(i, e, t) {
1950
+ function vs(i, e, t) {
1951
1951
  const r = Ee(e);
1952
1952
  if (r.length === 0 && e === "/") {
1953
- const l = $(t);
1953
+ const l = _(t);
1954
1954
  return i.setValue(l.getValue() ?? null), l.getItems() ? i.setItems(l.getItems()) : i.setItems(void 0), !0;
1955
1955
  }
1956
1956
  const { parent: s, key: n, actualTarget: o } = Ne(i, r);
1957
1957
  if (o !== void 0 && s instanceof u)
1958
- Ot(s, n, t);
1958
+ Mt(s, n, t);
1959
1959
  else {
1960
- const l = Vt(s, n), a = Array.isArray(s) || s instanceof u && s.getItems() && (typeof n == "number" || typeof n == "string" && /^\d+$/.test(n));
1960
+ const l = Ot(s, n), a = Array.isArray(s) || s instanceof u && s.getItems() && (typeof n == "number" || typeof n == "string" && /^\d+$/.test(n));
1961
1961
  if (l === void 0) {
1962
1962
  if (a)
1963
1963
  throw new Error(
1964
1964
  `REPLACE failed: Target array index '${n.toString()}' is out of bounds or does not exist at path '${e}'.`
1965
1965
  );
1966
- Ze(s, n, t, !0);
1966
+ Xe(s, n, t, !0);
1967
1967
  } else
1968
- Ze(s, n, t, !0);
1968
+ Xe(s, n, t, !0);
1969
1969
  }
1970
1970
  return !0;
1971
1971
  }
1972
- function mr(i, e) {
1972
+ function Ir(i, e) {
1973
1973
  const t = Ee(e);
1974
1974
  if (t.length === 0 && e === "/")
1975
1975
  return i.setValue(null), i.setItems(void 0), i.setProperties(void 0), !0;
1976
1976
  const { parent: r, key: s } = Ne(i, t);
1977
- return gs(r, s), !0;
1978
- }
1979
- function vs(i, e, t) {
1980
- const r = vt(yr(i, e));
1981
- return gr(i, t, r), !0;
1977
+ return ms(r, s), !0;
1982
1978
  }
1983
1979
  function Ts(i, e, t) {
1984
- const r = Ee(e), { parent: s, key: n } = Ne(i, r), o = Vt(s, n);
1980
+ const r = Tt(gr(i, e));
1981
+ return mr(i, t, r), !0;
1982
+ }
1983
+ function Bs(i, e, t) {
1984
+ const r = Ee(e), { parent: s, key: n } = Ne(i, r), o = Ot(s, n);
1985
1985
  if (o === void 0)
1986
1986
  throw new Error(`MOVE failed: 'from' location '${e}' does not exist.`);
1987
- return mr(i, e) ? (gr(i, t, o), !0) : !1;
1987
+ return Ir(i, e) ? (mr(i, t, o), !0) : !1;
1988
1988
  }
1989
- function Bs(i, e, t) {
1990
- const r = yr(i, e);
1989
+ function Ps(i, e, t) {
1990
+ const r = gr(i, e);
1991
1991
  let s = t;
1992
1992
  if (r instanceof u)
1993
1993
  if ((t === null || typeof t == "string" || typeof t == "number" || typeof t == "boolean" || q(t)) && (r.isInlineValue() || r.getValue() !== void 0)) {
@@ -1998,9 +1998,9 @@ function Bs(i, e, t) {
1998
1998
  )}, got ${JSON.stringify(r.getValue() ?? null)}`
1999
1999
  );
2000
2000
  return !0;
2001
- } else typeof t == "object" && !(t instanceof u) && (s = $(t));
2001
+ } else typeof t == "object" && !(t instanceof u) && (s = _(t));
2002
2002
  else if (q(r) && typeof t == "number")
2003
- r instanceof A ? s = new A(t.toString()) : r instanceof x && (s = new x(t.toString()));
2003
+ r instanceof A ? s = new A(t.toString()) : r instanceof $ && (s = new $(t.toString()));
2004
2004
  else if ((r === null || typeof r == "string" || typeof r == "number" || typeof r == "boolean") && q(t)) {
2005
2005
  const n = t;
2006
2006
  !ue(r, n.toString()) && (typeof r == "number" && parseFloat(n.toString()));
@@ -2013,91 +2013,91 @@ function Bs(i, e, t) {
2013
2013
  }
2014
2014
  return !0;
2015
2015
  }
2016
- function Ps(i, e) {
2016
+ function ws(i, e) {
2017
2017
  switch (e.op) {
2018
2018
  case "add":
2019
- return ms(i, e.path, e.val);
2020
- case "replace":
2021
2019
  return Is(i, e.path, e.val);
2020
+ case "replace":
2021
+ return vs(i, e.path, e.val);
2022
2022
  case "remove":
2023
- return mr(i, e.path);
2023
+ return Ir(i, e.path);
2024
2024
  case "copy":
2025
- return vs(i, e.from, e.path);
2026
- case "move":
2027
2025
  return Ts(i, e.from, e.path);
2026
+ case "move":
2027
+ return Bs(i, e.from, e.path);
2028
2028
  case "test":
2029
- return Bs(i, e.path, e.val);
2029
+ return Ps(i, e.path, e.val);
2030
2030
  }
2031
2031
  }
2032
- function On(i, e, t = !1) {
2032
+ function Mn(i, e, t = !1) {
2033
2033
  const r = t ? i : i.clone();
2034
- return Ps(r, e), r;
2034
+ return ws(r, e), r;
2035
2035
  }
2036
- const ut = Symbol.for("zod-schema-annotations");
2037
- function ws() {
2036
+ const dt = Symbol.for("zod-schema-annotations");
2037
+ function Ss() {
2038
2038
  if (typeof globalThis < "u") return globalThis;
2039
2039
  if (typeof global < "u") return global;
2040
2040
  if (typeof window < "u") return window;
2041
2041
  if (typeof self < "u") return self;
2042
2042
  throw new Error("Unable to locate global object");
2043
2043
  }
2044
- function Ir() {
2045
- const i = ws();
2046
- return ut in i || (i[ut] = /* @__PURE__ */ new WeakMap()), i[ut];
2044
+ function vr() {
2045
+ const i = Ss();
2046
+ return dt in i || (i[dt] = /* @__PURE__ */ new WeakMap()), i[dt];
2047
2047
  }
2048
2048
  function $e(i, e) {
2049
- const t = Ir(), r = t.get(i) || {};
2049
+ const t = vr(), r = t.get(i) || {};
2050
2050
  return t.set(i, { ...r, ...e }), i;
2051
2051
  }
2052
- const Z = (i) => Ir().get(i), Ss = (i) => (e) => {
2052
+ const Z = (i) => vr().get(i), bs = (i) => (e) => {
2053
2053
  const t = Z(e);
2054
2054
  return $e(e, {
2055
2055
  ...t,
2056
2056
  blueDescription: i
2057
2057
  });
2058
- }, bs = (i) => {
2058
+ }, Es = (i) => {
2059
2059
  const e = Z(i);
2060
- return p(e) && wt(e.blueDescription) ? e.blueDescription : null;
2061
- }, Mn = (i) => Ss(i)(y.string().optional()), Es = y.union([y.string(), y.boolean()]), Ns = (i) => (e) => {
2060
+ return p(e) && St(e.blueDescription) ? e.blueDescription : null;
2061
+ }, Dn = (i) => bs(i)(y.string().optional()), Ns = y.union([y.string(), y.boolean()]), Cs = (i) => (e) => {
2062
2062
  const t = Z(e);
2063
2063
  return $e(e, {
2064
2064
  ...t,
2065
2065
  blueId: i
2066
2066
  });
2067
- }, Cs = (i) => {
2068
- const e = Z(i), t = Es.safeParse(e?.blueId);
2067
+ }, Rs = (i) => {
2068
+ const e = Z(i), t = Ns.safeParse(e?.blueId);
2069
2069
  return t.success ? t.data : null;
2070
- }, Dn = (i) => Ns(i ?? !0)(y.string()), Rs = (i) => (e) => {
2070
+ }, xn = (i) => Cs(i ?? !0)(y.string()), As = (i) => (e) => {
2071
2071
  const t = Z(e);
2072
2072
  return $e(e, {
2073
2073
  ...t,
2074
2074
  blueName: i
2075
2075
  });
2076
- }, As = (i) => {
2076
+ }, Vs = (i) => {
2077
2077
  const e = Z(i);
2078
- return p(e) && wt(e.blueName) ? e.blueName : null;
2079
- }, xn = (i) => {
2078
+ return p(e) && St(e.blueName) ? e.blueName : null;
2079
+ }, Ln = (i) => {
2080
2080
  const e = y.string().optional();
2081
- return Rs(i)(e);
2082
- }, Vs = () => (i) => {
2081
+ return As(i)(e);
2082
+ }, Os = () => (i) => {
2083
2083
  const e = Z(i);
2084
2084
  return $e(i, {
2085
2085
  ...e,
2086
2086
  blueNode: !0
2087
2087
  });
2088
- }, Os = (i) => {
2088
+ }, Ms = (i) => {
2089
2089
  const e = Z(i);
2090
2090
  return p(e) && p(e.blueNode) && e.blueNode === !0 ? e.blueNode : null;
2091
- }, vr = (i) => !!Os(i), Ln = () => {
2091
+ }, Tr = (i) => !!Ms(i), $n = () => {
2092
2092
  const i = y.instanceof(u);
2093
- return Vs()(i);
2094
- }, Ms = y.object({
2093
+ return Os()(i);
2094
+ }, Ds = y.object({
2095
2095
  value: y.array(y.string()).optional(),
2096
2096
  defaultValue: y.string().optional()
2097
- }), Ds = (i) => {
2098
- const e = Z(i), t = Ms.passthrough().safeParse(e?.typeBlueId);
2097
+ }), xs = (i) => {
2098
+ const e = Z(i), t = Ds.passthrough().safeParse(e?.typeBlueId);
2099
2099
  return t.success ? t.data : null;
2100
- }, xs = (i) => (e) => {
2100
+ }, Ls = (i) => (e) => {
2101
2101
  const t = Z(e), r = typeof i == "string" ? { value: [i] } : i;
2102
2102
  return $e(e, {
2103
2103
  ...t,
@@ -2109,7 +2109,7 @@ const Z = (i) => Ir().get(i), Ss = (i) => (e) => {
2109
2109
  };
2110
2110
  class Oe {
2111
2111
  static resolveBlueId(e) {
2112
- const t = Ds(e);
2112
+ const t = xs(e);
2113
2113
  if (v(t))
2114
2114
  return null;
2115
2115
  const r = t.defaultValue;
@@ -2152,17 +2152,17 @@ class k {
2152
2152
  ) : !1;
2153
2153
  }
2154
2154
  static isWrapperType(e) {
2155
- return e instanceof Zt || e instanceof Xt || e instanceof qt || e instanceof Qt || e instanceof We || e instanceof Ge;
2155
+ return e instanceof Xt || e instanceof qt || e instanceof Qt || e instanceof er || e instanceof Ge || e instanceof Je;
2156
2156
  }
2157
2157
  static unwrapSchema(e) {
2158
- return vr(e) ? e : k.isWrapperType(e) ? e instanceof We ? k.unwrapSchema(e.innerType()) : e instanceof Ge ? k.unwrapSchema(e.schema) : k.unwrapSchema(e.unwrap()) : e;
2158
+ return Tr(e) ? e : k.isWrapperType(e) ? e instanceof Ge ? k.unwrapSchema(e.innerType()) : e instanceof Je ? k.unwrapSchema(e.schema) : k.unwrapSchema(e.unwrap()) : e;
2159
2159
  }
2160
2160
  }
2161
- const Tr = Symbol("blue.subtypeCache");
2162
- function Ls(i, e) {
2163
- return i[Tr] = e, i;
2161
+ const Br = Symbol("blue.subtypeCache");
2162
+ function $s(i, e) {
2163
+ return i[Br] = e, i;
2164
2164
  }
2165
- function Ut(i, e) {
2165
+ function zt(i, e) {
2166
2166
  const t = i.getType();
2167
2167
  if (t === void 0)
2168
2168
  return;
@@ -2171,7 +2171,7 @@ function Ut(i, e) {
2171
2171
  if (fe.includes(
2172
2172
  r
2173
2173
  )) {
2174
- const n = rt[r];
2174
+ const n = st[r];
2175
2175
  return new u().setBlueId(r).setName(n);
2176
2176
  }
2177
2177
  const s = e.fetchByBlueId(r);
@@ -2185,11 +2185,11 @@ function Ut(i, e) {
2185
2185
  }
2186
2186
  return t;
2187
2187
  }
2188
- function N(i, e, t) {
2189
- const r = Xe(i), s = Xe(e), n = t[Tr], o = `${r}|${s}`, l = n?.get(o);
2188
+ function E(i, e, t) {
2189
+ const r = qe(i), s = qe(e), n = t[Br], o = `${r}|${s}`, l = n?.get(o);
2190
2190
  if (l !== void 0)
2191
2191
  return l;
2192
- const a = $s(
2192
+ const a = _s(
2193
2193
  i,
2194
2194
  e,
2195
2195
  t,
@@ -2198,17 +2198,17 @@ function N(i, e, t) {
2198
2198
  );
2199
2199
  return n?.set(o, a), a;
2200
2200
  }
2201
- function Xe(i) {
2201
+ function qe(i) {
2202
2202
  const e = i.getReferenceBlueId();
2203
2203
  return e !== void 0 ? e : M.calculateBlueIdSync(
2204
2204
  se(i)
2205
2205
  );
2206
2206
  }
2207
2207
  function se(i) {
2208
- if (!Br(i))
2208
+ if (!Pr(i))
2209
2209
  return i;
2210
2210
  const e = i.cloneShallow();
2211
- e.getReferenceBlueId() !== void 0 && !E.hasBlueIdOnly(e) && e.setReferenceBlueId(void 0);
2211
+ e.getReferenceBlueId() !== void 0 && !b.hasBlueIdOnly(e) && e.setReferenceBlueId(void 0);
2212
2212
  const t = e.getType();
2213
2213
  t !== void 0 && e.setType(se(t));
2214
2214
  const r = e.getItemType();
@@ -2233,8 +2233,8 @@ function se(i) {
2233
2233
  )
2234
2234
  ), e;
2235
2235
  }
2236
- function Br(i) {
2237
- return i.getReferenceBlueId() !== void 0 && !E.hasBlueIdOnly(i) ? !0 : [
2236
+ function Pr(i) {
2237
+ return i.getReferenceBlueId() !== void 0 && !b.hasBlueIdOnly(i) ? !0 : [
2238
2238
  i.getType(),
2239
2239
  i.getItemType(),
2240
2240
  i.getKeyType(),
@@ -2243,10 +2243,10 @@ function Br(i) {
2243
2243
  ...i.getItems() ?? [],
2244
2244
  ...Object.values(i.getProperties() ?? {})
2245
2245
  ].some(
2246
- (t) => t !== void 0 && Br(t)
2246
+ (t) => t !== void 0 && Pr(t)
2247
2247
  );
2248
2248
  }
2249
- function $s(i, e, t, r, s) {
2249
+ function _s(i, e, t, r, s) {
2250
2250
  if (r === s)
2251
2251
  return !0;
2252
2252
  if (r && fe.includes(
@@ -2254,9 +2254,9 @@ function $s(i, e, t, r, s) {
2254
2254
  )) {
2255
2255
  let a = e;
2256
2256
  for (; a !== void 0; ) {
2257
- if (Xe(a) === r)
2257
+ if (qe(a) === r)
2258
2258
  return !0;
2259
- a = Ut(a, t);
2259
+ a = zt(a, t);
2260
2260
  }
2261
2261
  return !1;
2262
2262
  }
@@ -2268,59 +2268,59 @@ function $s(i, e, t, r, s) {
2268
2268
  }
2269
2269
  let l = n;
2270
2270
  for (; l !== void 0; ) {
2271
- if (Xe(l) === s)
2271
+ if (qe(l) === s)
2272
2272
  return !0;
2273
- l = Ut(l, t);
2273
+ l = zt(l, t);
2274
2274
  }
2275
2275
  return !1;
2276
2276
  }
2277
- function _s(i, e) {
2278
- return Rt.some((t) => {
2277
+ function js(i, e) {
2278
+ return At.some((t) => {
2279
2279
  const r = new u().setBlueId(t);
2280
- return N(i, r, e);
2280
+ return E(i, r, e);
2281
2281
  });
2282
2282
  }
2283
- function js(i, e) {
2283
+ function Fs(i, e) {
2284
2284
  const t = new u().setBlueId(Q);
2285
- return N(i, t, e);
2285
+ return E(i, t, e);
2286
2286
  }
2287
- function Fs(i, e) {
2287
+ function Us(i, e) {
2288
2288
  const t = new u().setBlueId(te);
2289
- return N(i, t, e);
2289
+ return E(i, t, e);
2290
2290
  }
2291
- function Us(i, e) {
2291
+ function zs(i, e) {
2292
2292
  const t = new u().setBlueId(ee);
2293
- return N(i, t, e);
2293
+ return E(i, t, e);
2294
2294
  }
2295
- function zs(i, e) {
2295
+ function Ks(i, e) {
2296
2296
  const t = new u().setBlueId(re);
2297
- return N(i, t, e);
2298
- }
2299
- function Ke(i, e) {
2300
- const t = new u().setBlueId(tt);
2301
- return N(i, t, e);
2297
+ return E(i, t, e);
2302
2298
  }
2303
2299
  function ke(i, e) {
2304
- const t = new u().setBlueId(Ct);
2305
- return N(i, t, e);
2300
+ const t = new u().setBlueId(rt);
2301
+ return E(i, t, e);
2306
2302
  }
2307
- function Ks(i, e) {
2308
- return et.some((t) => {
2303
+ function He(i, e) {
2304
+ const t = new u().setBlueId(Rt);
2305
+ return E(i, t, e);
2306
+ }
2307
+ function ks(i, e) {
2308
+ return tt.some((t) => {
2309
2309
  const r = new u().setName(t);
2310
- return N(i, r, e);
2310
+ return E(i, r, e);
2311
2311
  });
2312
2312
  }
2313
- function ks(i, e) {
2314
- for (const t of et) {
2313
+ function Hs(i, e) {
2314
+ for (const t of tt) {
2315
2315
  const r = new u().setName(t);
2316
- if (N(i, r, e))
2316
+ if (E(i, r, e))
2317
2317
  return t;
2318
2318
  }
2319
2319
  throw new Error(
2320
2320
  `Cannot determine the basic type for node of type "${i.getName() || "unknown"}".`
2321
2321
  );
2322
2322
  }
2323
- class Hs {
2323
+ class Ys {
2324
2324
  blueIdMap = /* @__PURE__ */ new Map();
2325
2325
  nodeProvider;
2326
2326
  constructor(e = [], t) {
@@ -2356,7 +2356,7 @@ class Hs {
2356
2356
  if (p(this.nodeProvider))
2357
2357
  try {
2358
2358
  const n = new u().setBlueId(r), o = new u().setBlueId(s);
2359
- if (N(n, o, this.nodeProvider))
2359
+ if (E(n, o, this.nodeProvider))
2360
2360
  return !0;
2361
2361
  } catch {
2362
2362
  }
@@ -2381,11 +2381,11 @@ class Hs {
2381
2381
  return new Map(this.blueIdMap);
2382
2382
  }
2383
2383
  }
2384
- class Mt {
2384
+ class Dt {
2385
2385
  }
2386
2386
  class Re {
2387
2387
  static convert(e) {
2388
- const t = new Tt();
2388
+ const t = new Bt();
2389
2389
  return Re.traverseNode(e, "", t), t.build();
2390
2390
  }
2391
2391
  static traverseNode(e, t, r) {
@@ -2408,11 +2408,11 @@ class Re {
2408
2408
  }
2409
2409
  }
2410
2410
  }
2411
- function zt(i, e) {
2411
+ function Kt(i, e) {
2412
2412
  const t = i.split(e), r = [...t].reverse().findIndex((n) => n !== ""), s = r === -1 ? 0 : t.length - r;
2413
2413
  return t.slice(0, s);
2414
2414
  }
2415
- class it extends Mt {
2415
+ class nt extends Dt {
2416
2416
  allowedPaths;
2417
2417
  maxDepth;
2418
2418
  currentPath = [];
@@ -2463,7 +2463,7 @@ class it extends Mt {
2463
2463
  * @returns True if the path matches the allowed path pattern, false otherwise
2464
2464
  */
2465
2465
  matchesAllowedPath(e, t) {
2466
- const r = zt(e, "/"), s = zt(t, "/");
2466
+ const r = Kt(e, "/"), s = Kt(t, "/");
2467
2467
  if (s.length > r.length)
2468
2468
  return !1;
2469
2469
  for (let n = 1; n < s.length; n++)
@@ -2505,7 +2505,7 @@ class it extends Mt {
2505
2505
  * @returns The path limits
2506
2506
  */
2507
2507
  static withMaxDepth(e) {
2508
- const t = new Tt().setMaxDepth(e);
2508
+ const t = new Bt().setMaxDepth(e);
2509
2509
  for (let r = 1; r <= e; r++) {
2510
2510
  const s = "/" + Array(r).fill("*").join("/");
2511
2511
  t.addPath(s);
@@ -2518,7 +2518,7 @@ class it extends Mt {
2518
2518
  * @returns The path limits
2519
2519
  */
2520
2520
  static withSinglePath(e) {
2521
- return new Tt().addPath(e).build();
2521
+ return new Bt().addPath(e).build();
2522
2522
  }
2523
2523
  /**
2524
2524
  * Creates path limits by analyzing the structure of a node.
@@ -2528,7 +2528,7 @@ class it extends Mt {
2528
2528
  return Re.convert(e);
2529
2529
  }
2530
2530
  }
2531
- class Tt {
2531
+ class Bt {
2532
2532
  allowedPaths = /* @__PURE__ */ new Set();
2533
2533
  maxDepth = Number.MAX_SAFE_INTEGER;
2534
2534
  /**
@@ -2552,10 +2552,10 @@ class Tt {
2552
2552
  * @returns The built PathLimits
2553
2553
  */
2554
2554
  build() {
2555
- return new it(this.allowedPaths, this.maxDepth);
2555
+ return new nt(this.allowedPaths, this.maxDepth);
2556
2556
  }
2557
2557
  }
2558
- class H extends Mt {
2558
+ class H extends Dt {
2559
2559
  /**
2560
2560
  * Determines if a path segment should be extended - always returns true
2561
2561
  * @returns Always true
@@ -2581,7 +2581,7 @@ class H extends Mt {
2581
2581
  exitPathSegment() {
2582
2582
  }
2583
2583
  }
2584
- class nt extends Mt {
2584
+ class ot extends Dt {
2585
2585
  limits;
2586
2586
  /**
2587
2587
  * Creates a composite limits with the specified limit strategies
@@ -2638,10 +2638,10 @@ class nt extends Mt {
2638
2638
  * @returns A new CompositeLimits instance
2639
2639
  */
2640
2640
  static of(...e) {
2641
- return new nt(e);
2641
+ return new ot(e);
2642
2642
  }
2643
2643
  }
2644
- const j = new H();
2644
+ const F = new H();
2645
2645
  class J extends u {
2646
2646
  completeness;
2647
2647
  sourceSemanticBlueId;
@@ -2675,7 +2675,7 @@ class J extends u {
2675
2675
  "Cannot minimize a path-limited resolved node without a source semantic BlueId."
2676
2676
  );
2677
2677
  }
2678
- return new mt().minimizeResolved(this);
2678
+ return new It().minimizeResolved(this);
2679
2679
  }
2680
2680
  /**
2681
2681
  * @deprecated Prefer `blue.calculateBlueIdSync(resolved)` so callers use the
@@ -2689,7 +2689,7 @@ class J extends u {
2689
2689
  "Cannot calculate minimal BlueId for a path-limited resolved node without a source semantic BlueId."
2690
2690
  );
2691
2691
  }
2692
- const t = new mt().minimizeResolvedForHash(this);
2692
+ const t = new It().minimizeResolvedForHash(this);
2693
2693
  return M.calculateBlueIdSync(t);
2694
2694
  }
2695
2695
  /**
@@ -2741,13 +2741,20 @@ class J extends u {
2741
2741
  t !== void 0 && this.setValue(t);
2742
2742
  }
2743
2743
  }
2744
- class Ys {
2744
+ class Ws {
2745
2745
  blue;
2746
2746
  constructor(e) {
2747
2747
  this.blue = e;
2748
2748
  }
2749
- matchesType(e, t, r = j) {
2750
- const s = it.fromNode(t), n = nt.of(r, s), o = this.extendAndResolve(e, n), l = this.blue.resolve(t, n), a = this.expandSchemaOwnedTypeReferences(t);
2749
+ matchesType(e, t, r = F) {
2750
+ const s = nt.fromNode(t), n = ot.of(r, s);
2751
+ let o, l;
2752
+ try {
2753
+ o = this.extendAndResolve(e, n), l = this.blue.resolve(t, n);
2754
+ } catch {
2755
+ return !1;
2756
+ }
2757
+ const a = this.expandSchemaOwnedTypeReferences(t);
2751
2758
  return this.recursiveValueComparison(
2752
2759
  o,
2753
2760
  l,
@@ -2803,115 +2810,122 @@ class Ys {
2803
2810
  }
2804
2811
  return !0;
2805
2812
  }
2806
- recursiveValueComparison(e, t, r = t, s = j) {
2807
- const n = t.getType(), o = this.matchesImplicitStructure(e, n) || this.matchesImplicitCoreCollectionType(e, t);
2808
- if (e.getType() === void 0 && this.isCoreCollectionType(t) && !o)
2813
+ recursiveValueComparison(e, t, r = t, s = F, n = {}) {
2814
+ const o = t.getType(), l = this.matchesImplicitStructure(e, o) || this.matchesImplicitCoreCollectionType(e, t);
2815
+ if (e.getType() === void 0 && this.isCoreCollectionType(t) && !l)
2809
2816
  return !1;
2810
- if (n && !o) {
2817
+ if (o && !l) {
2811
2818
  const P = e.getType();
2812
- if (!P || !N(
2819
+ if (!P || !E(
2813
2820
  P,
2814
- n,
2821
+ o,
2815
2822
  this.blue.getNodeProvider()
2816
2823
  ))
2817
2824
  return !1;
2818
2825
  }
2819
- const l = t.getBlueId();
2820
- if (!o && l !== void 0)
2826
+ const a = t.getBlueId();
2827
+ if (!l && a !== void 0)
2821
2828
  if (this.isExplicitBlueIdMatcher(r)) {
2822
- if (e.getBlueId() !== l && !this.matchesCalculatedBlueId(e, l))
2829
+ if (n.bareBlueIdMatcherMode === "type-reference") {
2830
+ if (!this.matchesBareBlueIdTypeReference(e, t, a))
2831
+ return !1;
2832
+ } else if (!this.matchesBareBlueIdIdentity(e, a))
2823
2833
  return !1;
2824
2834
  } else {
2825
- const P = e.getBlueId(), S = e.getType();
2826
- if (S === void 0 && P !== void 0 && P !== l || S && !N(
2827
- S,
2835
+ const P = e.getBlueId(), w = e.getType();
2836
+ if (w === void 0 && P !== void 0 && P !== a || w && !E(
2837
+ w,
2828
2838
  t,
2829
2839
  this.blue.getNodeProvider()
2830
2840
  ))
2831
2841
  return !1;
2832
2842
  }
2833
- const a = e.getBlueId();
2834
- if (!o && l === void 0 && a !== void 0 && e.getType() === void 0 && t.getItems() === void 0 && this.hasMatcherShape(t) && !this.matchesCalculatedBlueId(t, a))
2843
+ const c = e.getBlueId();
2844
+ if (!l && a === void 0 && c !== void 0 && e.getType() === void 0 && t.getItems() === void 0 && this.hasMatcherShape(t) && !this.matchesCalculatedBlueId(t, c))
2835
2845
  return !1;
2836
- const c = t.getValue();
2837
- if (c !== void 0) {
2846
+ const d = t.getValue();
2847
+ if (d !== void 0) {
2838
2848
  const P = e.getValue();
2839
2849
  if (P === void 0)
2840
2850
  return !1;
2841
- if (R(P) && R(c)) {
2842
- if (!P.eq(c))
2851
+ if (C(P) && C(d)) {
2852
+ if (!P.eq(d))
2843
2853
  return !1;
2844
- } else if (P !== c)
2854
+ } else if (P !== d)
2845
2855
  return !1;
2846
2856
  }
2847
- const d = t.getItems(), h = r.getItems();
2848
- if (d !== void 0) {
2857
+ const h = t.getItems(), f = r.getItems();
2858
+ if (h !== void 0) {
2849
2859
  const P = e.getItems() ?? [];
2850
- for (let S = 0; S < d.length; S++)
2851
- if (S < P.length) {
2860
+ for (let w = 0; w < h.length; w++)
2861
+ if (w < P.length) {
2852
2862
  if (!this.recursiveValueComparison(
2853
- P[S],
2854
- d[S],
2855
- h?.[S] ?? d[S],
2863
+ P[w],
2864
+ h[w],
2865
+ f?.[w] ?? h[w],
2856
2866
  s
2857
2867
  ))
2858
2868
  return !1;
2859
- } else if (this.hasValueInNestedStructure(d[S]))
2869
+ } else if (this.hasValueInNestedStructure(h[w]))
2860
2870
  return !1;
2861
2871
  }
2862
- const f = t.getItemType(), g = r.getItemType();
2863
- if (f !== void 0) {
2872
+ const g = t.getItemType(), I = r.getItemType();
2873
+ if (g !== void 0) {
2864
2874
  const P = e.getItems() ?? [];
2865
- for (const S of P)
2875
+ for (const w of P)
2866
2876
  if (!this.recursiveValueComparison(
2867
2877
  this.resolveUntypedNodeAgainstMatcherType(
2868
- S,
2869
- f,
2870
- g ?? f,
2871
- s
2878
+ w,
2879
+ g,
2880
+ I ?? g,
2881
+ s,
2882
+ "type-reference"
2872
2883
  ),
2873
- f,
2874
- g ?? f,
2875
- s
2884
+ g,
2885
+ I ?? g,
2886
+ s,
2887
+ { bareBlueIdMatcherMode: "type-reference" }
2876
2888
  ))
2877
2889
  return !1;
2878
2890
  }
2879
- const I = t.getProperties(), L = r.getProperties();
2880
- if (I !== void 0) {
2891
+ const D = t.getProperties(), R = r.getProperties();
2892
+ if (D !== void 0) {
2881
2893
  const P = e.getProperties() ?? {};
2882
- for (const [S, ot] of Object.entries(I))
2883
- if (S in P) {
2894
+ for (const [w, lt] of Object.entries(D))
2895
+ if (w in P) {
2884
2896
  if (!this.recursiveValueComparison(
2885
- P[S],
2886
- ot,
2887
- L?.[S] ?? ot,
2897
+ P[w],
2898
+ lt,
2899
+ R?.[w] ?? lt,
2888
2900
  s
2889
2901
  ))
2890
2902
  return !1;
2891
- } else if (this.hasValueInNestedStructure(ot))
2903
+ } else if (this.hasValueInNestedStructure(lt))
2892
2904
  return !1;
2893
2905
  }
2894
- const w = t.getValueType(), F = r.getValueType();
2895
- if (w !== void 0) {
2906
+ const x = t.getValueType(), je = r.getValueType();
2907
+ if (x !== void 0) {
2896
2908
  const P = Object.values(e.getProperties() ?? {});
2897
- for (const S of P)
2909
+ for (const w of P)
2898
2910
  if (!this.recursiveValueComparison(
2899
2911
  this.resolveUntypedNodeAgainstMatcherType(
2900
- S,
2901
2912
  w,
2902
- F ?? w,
2903
- s
2913
+ x,
2914
+ je ?? x,
2915
+ s,
2916
+ "type-reference"
2904
2917
  ),
2905
- w,
2906
- F ?? w,
2907
- s
2918
+ x,
2919
+ je ?? x,
2920
+ s,
2921
+ { bareBlueIdMatcherMode: "type-reference" }
2908
2922
  ))
2909
2923
  return !1;
2910
2924
  }
2911
2925
  return !0;
2912
2926
  }
2913
- resolveUntypedNodeAgainstMatcherType(e, t, r, s) {
2914
- return e.getType() !== void 0 || this.isExplicitBlueIdMatcher(r) ? e : this.resolveAgainstTargetType(e, t, s) ?? e;
2927
+ resolveUntypedNodeAgainstMatcherType(e, t, r, s, n = "identity") {
2928
+ return e.getType() !== void 0 || e.getBlueId() !== void 0 || n === "identity" && this.isExplicitBlueIdMatcher(r) ? e : this.resolveAgainstTargetType(e, t, s) ?? e;
2915
2929
  }
2916
2930
  hasValueInNestedStructure(e) {
2917
2931
  if (e.getValue() !== void 0)
@@ -2946,6 +2960,17 @@ class Ys {
2946
2960
  }
2947
2961
  }
2948
2962
  }
2963
+ matchesBareBlueIdIdentity(e, t) {
2964
+ return e.getBlueId() === t || this.matchesCalculatedBlueId(e, t);
2965
+ }
2966
+ matchesBareBlueIdTypeReference(e, t, r) {
2967
+ const s = e.getType();
2968
+ return s ? E(
2969
+ s,
2970
+ t,
2971
+ this.blue.getNodeProvider()
2972
+ ) : e.getBlueId() !== void 0 ? this.matchesBareBlueIdIdentity(e, r) : !1;
2973
+ }
2949
2974
  toPlainBlueNode(e) {
2950
2975
  const t = new u(e.getName());
2951
2976
  t.setDescription(e.getDescription()).setReferenceBlueId(e.getReferenceBlueId()).setInlineValue(e.isInlineValue());
@@ -2978,13 +3003,13 @@ class Ys {
2978
3003
  * shape of the requested core list or dictionary type.
2979
3004
  */
2980
3005
  matchesImplicitStructure(e, t) {
2981
- return t === void 0 || e.getType() !== void 0 ? !1 : Ke(t, this.blue.getNodeProvider()) ? this.isImplicitListStructure(e) : ke(t, this.blue.getNodeProvider()) ? this.isImplicitDictionaryStructure(e) : !1;
3006
+ return t === void 0 || e.getType() !== void 0 ? !1 : ke(t, this.blue.getNodeProvider()) ? this.isImplicitListStructure(e) : He(t, this.blue.getNodeProvider()) ? this.isImplicitDictionaryStructure(e) : !1;
2982
3007
  }
2983
3008
  matchesImplicitCoreCollectionType(e, t) {
2984
- return e.getType() !== void 0 ? !1 : Ke(t, this.blue.getNodeProvider()) ? this.isImplicitListStructure(e) : ke(t, this.blue.getNodeProvider()) ? this.isImplicitDictionaryStructure(e) : !1;
3009
+ return e.getType() !== void 0 ? !1 : ke(t, this.blue.getNodeProvider()) ? this.isImplicitListStructure(e) : He(t, this.blue.getNodeProvider()) ? this.isImplicitDictionaryStructure(e) : !1;
2985
3010
  }
2986
3011
  isCoreCollectionType(e) {
2987
- return Ke(e, this.blue.getNodeProvider()) || ke(e, this.blue.getNodeProvider());
3012
+ return ke(e, this.blue.getNodeProvider()) || He(e, this.blue.getNodeProvider());
2988
3013
  }
2989
3014
  isImplicitListStructure(e) {
2990
3015
  return e.getItems() !== void 0 && e.getValue() === void 0;
@@ -3230,14 +3255,14 @@ class ye {
3230
3255
  return t && t.length > 0 ? t[0] : null;
3231
3256
  }
3232
3257
  }
3233
- function Dt(i) {
3258
+ function xt(i) {
3234
3259
  return new class extends ye {
3235
3260
  fetchByBlueId(e) {
3236
3261
  return i(e);
3237
3262
  }
3238
3263
  }();
3239
3264
  }
3240
- class Ws {
3265
+ class Gs {
3241
3266
  /**
3242
3267
  * Resolves a node without limits
3243
3268
  * Default implementation that uses NO_LIMITS
@@ -3246,10 +3271,10 @@ class Ws {
3246
3271
  * @returns The resolved node using NO_LIMITS
3247
3272
  */
3248
3273
  resolveWithoutLimits(e) {
3249
- return this.resolve(e, j);
3274
+ return this.resolve(e, F);
3250
3275
  }
3251
3276
  }
3252
- class Pr extends ye {
3277
+ class wr extends ye {
3253
3278
  nodeProviders;
3254
3279
  constructor(e) {
3255
3280
  super(), this.nodeProviders = e;
@@ -3276,33 +3301,33 @@ class Pr extends ye {
3276
3301
  return this.nodeProviders;
3277
3302
  }
3278
3303
  }
3279
- const dt = pe.types.float.options, Gs = {
3280
- ...dt,
3304
+ const ht = pe.types.float.options, Js = {
3305
+ ...ht,
3281
3306
  construct: (i) => {
3282
3307
  const e = i.replace(/_/g, "").toLowerCase();
3283
- if (!Jt(e))
3284
- return new x(e);
3285
- if (dt.construct)
3286
- return dt.construct(i);
3308
+ if (!Zt(e))
3309
+ return new $(e);
3310
+ if (ht.construct)
3311
+ return ht.construct(i);
3287
3312
  }
3288
- }, Js = new pe.Type("tag:yaml.org,2002:float", Gs), ht = pe.types.int.options, Zs = {
3289
- ...ht,
3313
+ }, Zs = new pe.Type("tag:yaml.org,2002:float", Js), pt = pe.types.int.options, Xs = {
3314
+ ...pt,
3290
3315
  construct: (i) => {
3291
3316
  let e = i;
3292
- if (e.indexOf("_") !== -1 && (e = e.replace(/_/g, "")), !Jt(e))
3317
+ if (e.indexOf("_") !== -1 && (e = e.replace(/_/g, "")), !Zt(e))
3293
3318
  return new A(e);
3294
- if (ht.construct)
3295
- return ht.construct(i);
3319
+ if (pt.construct)
3320
+ return pt.construct(i);
3296
3321
  }
3297
- }, Xs = new pe.Type("tag:yaml.org,2002:int", Zs), wr = pe.CORE_SCHEMA.extend({
3298
- implicit: [Js, Xs]
3322
+ }, qs = new pe.Type("tag:yaml.org,2002:int", Xs), Sr = pe.CORE_SCHEMA.extend({
3323
+ implicit: [Zs, qs]
3299
3324
  }), ae = (i) => {
3300
- const e = pe.load(i, { schema: wr });
3325
+ const e = pe.load(i, { schema: Sr });
3301
3326
  return e === void 0 ? void 0 : e;
3302
- }, qs = (i) => pe.dump(i, {
3303
- schema: wr,
3327
+ }, Qs = (i) => pe.dump(i, {
3328
+ schema: Sr,
3304
3329
  replacer: (e, t) => {
3305
- if (R(t)) {
3330
+ if (C(t)) {
3306
3331
  if (oe(t)) {
3307
3332
  const r = new G(Number.MIN_SAFE_INTEGER.toString()), s = new G(Number.MAX_SAFE_INTEGER.toString());
3308
3333
  if (t.lt(r) || t.gt(s))
@@ -3312,7 +3337,7 @@ const dt = pe.types.float.options, Gs = {
3312
3337
  }
3313
3338
  return t;
3314
3339
  }
3315
- }), Sr = `- type:
3340
+ }), br = `- type:
3316
3341
  blueId: 27B7fuxQCS1VAptiCPc2RMkKoutP5qxkh3uDxZ7dr6Eo
3317
3342
  mappings:
3318
3343
  Text: DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K
@@ -3323,20 +3348,20 @@ const dt = pe.types.float.options, Gs = {
3323
3348
  Dictionary: G7fBT9PSod1RfHLHkpafAGBDVAJMrMhAMY51ERcyXNrj
3324
3349
  - type:
3325
3350
  blueId: FGYuTXwaoSKfZmpTysLTLsb8WzSqf43384rKZDkXhxD4
3326
- `, Qs = `name: Transformation
3327
- description: TODO`, ei = `name: Infer Basic Types For Untyped Values
3351
+ `, ei = `name: Transformation
3352
+ description: TODO`, ti = `name: Infer Basic Types For Untyped Values
3328
3353
  type:
3329
3354
  blueId: Ct1SGRGw1i47qjzm1ruiUdSZofeV6WevPTGuieVvbRS4
3330
- description: This transformation infers type details for Text, Integer, Number and Boolean.`, ti = `name: Replace Inline Types with BlueIds
3355
+ description: This transformation infers type details for Text, Integer, Number and Boolean.`, ri = `name: Replace Inline Types with BlueIds
3331
3356
  type:
3332
3357
  blueId: Ct1SGRGw1i47qjzm1ruiUdSZofeV6WevPTGuieVvbRS4
3333
- description: This transformation replaces`, ri = [
3334
- Sr,
3335
- Qs,
3358
+ description: This transformation replaces`, si = [
3359
+ br,
3336
3360
  ei,
3337
- ti
3361
+ ti,
3362
+ ri
3338
3363
  ];
3339
- class si extends ye {
3364
+ class ii extends ye {
3340
3365
  blueIdToNodesMap = /* @__PURE__ */ new Map();
3341
3366
  constructor() {
3342
3367
  super(), this.load();
@@ -3345,7 +3370,7 @@ class si extends ye {
3345
3370
  return this.blueIdToNodesMap.get(e) || [];
3346
3371
  }
3347
3372
  load() {
3348
- for (const e of ri) {
3373
+ for (const e of si) {
3349
3374
  const t = ae(e);
3350
3375
  if (t === void 0) {
3351
3376
  console.error(`This content file is not valid YAML: ${e}`);
@@ -3363,11 +3388,11 @@ class si extends ye {
3363
3388
  }
3364
3389
  }
3365
3390
  }
3366
- class xt extends ye {
3367
- static INSTANCE = new xt();
3391
+ class Lt extends ye {
3392
+ static INSTANCE = new Lt();
3368
3393
  nodeProvider;
3369
3394
  constructor() {
3370
- super(), this.nodeProvider = new si();
3395
+ super(), this.nodeProvider = new ii();
3371
3396
  }
3372
3397
  fetchByBlueId(e) {
3373
3398
  return this.nodeProvider.fetchByBlueId(e);
@@ -3380,11 +3405,11 @@ class Me {
3380
3405
  * @returns A wrapped NodeProvider that includes bootstrap providers
3381
3406
  */
3382
3407
  static wrap(e) {
3383
- const t = [xt.INSTANCE];
3384
- return t.push(e), new Pr(t);
3408
+ const t = [Lt.INSTANCE];
3409
+ return t.push(e), new wr(t);
3385
3410
  }
3386
3411
  }
3387
- class Lt {
3412
+ class $t {
3388
3413
  nodeProvider;
3389
3414
  strategy;
3390
3415
  /**
@@ -3411,7 +3436,7 @@ class Lt {
3411
3436
  }
3412
3437
  try {
3413
3438
  const n = e.getBlueId();
3414
- if (n && E.hasBlueIdOnly(e) && !fe.includes(
3439
+ if (n && b.hasBlueIdOnly(e) && !fe.includes(
3415
3440
  n
3416
3441
  )) {
3417
3442
  const f = this.fetchNode(e);
@@ -3424,8 +3449,8 @@ class Lt {
3424
3449
  const I = f[0];
3425
3450
  this.mergeNodes(e, I, g);
3426
3451
  } else {
3427
- const I = f.map((w) => w.clone()), L = new u().setItems(I);
3428
- this.mergeNodes(e, L, g);
3452
+ const I = f.map((R) => R.clone()), D = new u().setItems(I);
3453
+ this.mergeNodes(e, D, g);
3429
3454
  }
3430
3455
  }
3431
3456
  }
@@ -3482,7 +3507,7 @@ class Lt {
3482
3507
  ), e.setBlue(t.getBlue()?.clone());
3483
3508
  }
3484
3509
  }
3485
- class de extends Ws {
3510
+ class de extends Gs {
3486
3511
  mergingProcessor;
3487
3512
  nodeProvider;
3488
3513
  /**
@@ -3644,35 +3669,35 @@ class de extends Ws {
3644
3669
  if (f.has(I))
3645
3670
  throw new Error(`Duplicate $pos list overlay for index ${I}.`);
3646
3671
  f.add(I);
3647
- const w = B.withoutPosition(g);
3672
+ const R = B.withoutPosition(g);
3648
3673
  if (!B.hasPayloadAfterRemovingPosition(g))
3649
3674
  throw new Error("$pos list control must include an item payload.");
3650
- if (!r.limits.shouldMergePathSegment(String(I), w))
3675
+ if (!r.limits.shouldMergePathSegment(String(I), R))
3651
3676
  continue;
3652
- this.enterPathSegment(r, String(I), w);
3677
+ this.enterPathSegment(r, String(I), R);
3653
3678
  try {
3654
- const F = l[I];
3655
- l[I] = F === void 0 || B.isReplacementPayload(w) ? this.materializeForCurrentContext(w, r) : this.mergeWithContext(F, w, r);
3679
+ const x = l[I];
3680
+ l[I] = x === void 0 || B.isReplacementPayload(R) ? this.materializeForCurrentContext(R, r) : this.mergeWithContext(x, R, r);
3656
3681
  } finally {
3657
3682
  this.exitPathSegment(r);
3658
3683
  }
3659
3684
  continue;
3660
3685
  }
3661
- const L = l.length;
3662
- if (!(!h && !r.limits.shouldMergePathSegment(String(L), g))) {
3686
+ const D = l.length;
3687
+ if (!(!h && !r.limits.shouldMergePathSegment(String(D), g))) {
3663
3688
  if (h) {
3664
3689
  l.push(
3665
3690
  this.materializeWithoutLimits(g, r)
3666
3691
  );
3667
3692
  continue;
3668
3693
  }
3669
- this.enterPathSegment(r, String(L), g);
3694
+ this.enterPathSegment(r, String(D), g);
3670
3695
  try {
3671
- const w = this.materializeForCurrentContext(
3696
+ const R = this.materializeForCurrentContext(
3672
3697
  g,
3673
3698
  r
3674
3699
  );
3675
- l.push(w);
3700
+ l.push(R);
3676
3701
  } finally {
3677
3702
  this.exitPathSegment(r);
3678
3703
  }
@@ -3683,7 +3708,7 @@ class de extends Ws {
3683
3708
  materializeWithoutLimits(e, t) {
3684
3709
  return new de(this.mergingProcessor, t.nodeProvider).resolve(
3685
3710
  e,
3686
- j
3711
+ F
3687
3712
  );
3688
3713
  }
3689
3714
  /**
@@ -3712,17 +3737,17 @@ class de extends Ws {
3712
3737
  c,
3713
3738
  s
3714
3739
  ) ? this.mergeExistingProperty(f, c, s) : (() => {
3715
- const w = this.materializeForCurrentContext(
3740
+ const R = this.materializeForCurrentContext(
3716
3741
  c,
3717
3742
  s
3718
3743
  );
3719
- return f === void 0 ? w : this.mergeObject(
3744
+ return f === void 0 ? R : this.mergeObject(
3720
3745
  f,
3721
- w,
3746
+ R,
3722
3747
  s
3723
3748
  );
3724
- })(), L = h === void 0 ? I : this.projectListNodeToCurrentLimits(I, s);
3725
- L !== d && (l || (o = { ...n }, l = !0), o[a] = L);
3749
+ })(), D = h === void 0 ? I : this.projectListNodeToCurrentLimits(I, s);
3750
+ D !== d && (l || (o = { ...n }, l = !0), o[a] = D);
3726
3751
  } finally {
3727
3752
  this.exitPathSegment(s);
3728
3753
  }
@@ -3759,7 +3784,7 @@ class de extends Ws {
3759
3784
  });
3760
3785
  }
3761
3786
  createResolutionContext(e) {
3762
- const t = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map(), s = Ls(
3787
+ const t = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map(), s = $s(
3763
3788
  this.createResolutionNodeProvider(this.nodeProvider, t),
3764
3789
  r
3765
3790
  );
@@ -3807,9 +3832,9 @@ class de extends Ws {
3807
3832
  }
3808
3833
  resolveAndExtendTypeNode(e, t) {
3809
3834
  const r = e.clone();
3810
- return p(r.getBlueId()) && new Lt(t.nodeProvider).extend(
3835
+ return p(r.getBlueId()) && new $t(t.nodeProvider).extend(
3811
3836
  r,
3812
- it.withSinglePath("/")
3837
+ nt.withSinglePath("/")
3813
3838
  ), this.resolveWithContext(r, t);
3814
3839
  }
3815
3840
  getTypeOverlay(e, t, r) {
@@ -3852,9 +3877,9 @@ class de extends Ws {
3852
3877
  const n = s.getBlueId();
3853
3878
  if (p(n)) {
3854
3879
  const a = r.nodeProvider.fetchByBlueId(n)?.[0];
3855
- return a === void 0 ? void 0 : new de(this.mergingProcessor, r.nodeProvider).resolve(a, j).getProperties()?.[t]?.clone();
3880
+ return a === void 0 ? void 0 : new de(this.mergingProcessor, r.nodeProvider).resolve(a, F).getProperties()?.[t]?.clone();
3856
3881
  }
3857
- return new de(this.mergingProcessor, r.nodeProvider).resolve(s, j).getProperties()?.[t]?.clone();
3882
+ return new de(this.mergingProcessor, r.nodeProvider).resolve(s, F).getProperties()?.[t]?.clone();
3858
3883
  }
3859
3884
  projectListNodeToCurrentLimits(e, t) {
3860
3885
  const r = e.getItems();
@@ -3884,7 +3909,7 @@ class de extends Ws {
3884
3909
  e.pathStack.pop(), e.limits.exitPathSegment();
3885
3910
  }
3886
3911
  }
3887
- class br {
3912
+ class Er {
3888
3913
  mergingProcessors;
3889
3914
  /**
3890
3915
  * Creates a new SequentialMergingProcessor with the given processors
@@ -3909,14 +3934,14 @@ class br {
3909
3934
  return this.mergingProcessors.reduce((s, n) => n.postProcess ? n.postProcess(s, t, r) : s, e);
3910
3935
  }
3911
3936
  }
3912
- class Er {
3937
+ class Nr {
3913
3938
  process(e, t) {
3914
3939
  const r = t.getValue();
3915
3940
  if (p(r)) {
3916
3941
  const s = e.getValue();
3917
3942
  if (v(s))
3918
3943
  return e.cloneShallow().setValue(r);
3919
- if (!ii(r, s))
3944
+ if (!ni(r, s))
3920
3945
  throw new Error(
3921
3946
  `Node values conflict. Source node value: ${r}, target node value: ${s}`
3922
3947
  );
@@ -3924,15 +3949,15 @@ class Er {
3924
3949
  return e;
3925
3950
  }
3926
3951
  }
3927
- const ii = (i, e) => oe(i) && oe(e) || ft(i) && ft(e) ? i.eq(e) : i === e;
3928
- class Nr {
3952
+ const ni = (i, e) => oe(i) && oe(e) || yt(i) && yt(e) ? i.eq(e) : i === e;
3953
+ class Cr {
3929
3954
  process(e, t, r) {
3930
3955
  const s = e.getType(), n = t.getType();
3931
3956
  let o = e;
3932
3957
  if (s === void 0)
3933
3958
  o = e.cloneShallow().setType(n);
3934
3959
  else if (n !== void 0) {
3935
- if (!N(
3960
+ if (!E(
3936
3961
  n,
3937
3962
  s,
3938
3963
  r
@@ -3951,17 +3976,17 @@ class Nr {
3951
3976
  return o;
3952
3977
  }
3953
3978
  }
3954
- class Cr {
3979
+ class Rr {
3955
3980
  process(e, t, r) {
3956
3981
  const s = t.getItemType(), n = t.getType();
3957
- if (s !== void 0 && n !== void 0 && !Ke(n, r))
3982
+ if (s !== void 0 && n !== void 0 && !ke(n, r))
3958
3983
  throw new Error("Source node with itemType must have a List type");
3959
3984
  const o = e.getItemType();
3960
3985
  let l = e;
3961
3986
  if (o === void 0)
3962
3987
  s !== void 0 && (l = e.cloneShallow().setItemType(s));
3963
3988
  else if (s !== void 0) {
3964
- if (!N(
3989
+ if (!E(
3965
3990
  s,
3966
3991
  o,
3967
3992
  r
@@ -3981,7 +4006,7 @@ class Cr {
3981
4006
  if (a !== void 0 && c !== void 0)
3982
4007
  for (const d of c) {
3983
4008
  const h = d.getType();
3984
- if (h !== void 0 && !N(
4009
+ if (h !== void 0 && !E(
3985
4010
  h,
3986
4011
  a,
3987
4012
  r
@@ -4001,10 +4026,10 @@ class Cr {
4001
4026
  return l;
4002
4027
  }
4003
4028
  }
4004
- class Rr {
4029
+ class Ar {
4005
4030
  process(e, t, r) {
4006
4031
  const s = t.getKeyType(), n = t.getValueType(), o = t.getType();
4007
- if ((s !== void 0 || n !== void 0) && o !== void 0 && !ke(o, r))
4032
+ if ((s !== void 0 || n !== void 0) && o !== void 0 && !He(o, r))
4008
4033
  throw new Error(
4009
4034
  "Source node with keyType or valueType must have a Dictionary type"
4010
4035
  );
@@ -4021,7 +4046,7 @@ class Rr {
4021
4046
  if (n !== void 0)
4022
4047
  return this.validateBasicKeyType(n, r), e.cloneShallow().setKeyType(n);
4023
4048
  } else if (n !== void 0) {
4024
- if (this.validateBasicKeyType(n, r), !N(
4049
+ if (this.validateBasicKeyType(n, r), !E(
4025
4050
  n,
4026
4051
  s,
4027
4052
  r
@@ -4045,7 +4070,7 @@ class Rr {
4045
4070
  if (n !== void 0)
4046
4071
  return e.cloneShallow().setValueType(n);
4047
4072
  } else if (n !== void 0) {
4048
- if (!N(
4073
+ if (!E(
4049
4074
  n,
4050
4075
  s,
4051
4076
  r
@@ -4064,20 +4089,20 @@ class Rr {
4064
4089
  return e;
4065
4090
  }
4066
4091
  validateBasicKeyType(e, t) {
4067
- if (!_s(e, t))
4092
+ if (!js(e, t))
4068
4093
  throw new Error("Dictionary key type must be a basic type");
4069
4094
  }
4070
4095
  validateKeyType(e, t, r) {
4071
- if (!js(t, r))
4072
- if (Fs(t, r)) {
4096
+ if (!Fs(t, r))
4097
+ if (Us(t, r)) {
4073
4098
  const s = Number.parseInt(e, 10);
4074
4099
  if (Number.isNaN(s) || s.toString() !== e)
4075
4100
  throw new Error(`Key '${e}' is not a valid Integer.`);
4076
- } else if (Us(t, r)) {
4101
+ } else if (zs(t, r)) {
4077
4102
  const s = Number.parseFloat(e);
4078
4103
  if (Number.isNaN(s))
4079
4104
  throw new Error(`Key '${e}' is not a valid Number.`);
4080
- } else if (zs(t, r)) {
4105
+ } else if (Ks(t, r)) {
4081
4106
  if (e.toLowerCase() !== "true" && e.toLowerCase() !== "false")
4082
4107
  throw new Error(`Key '${e}' is not a valid Boolean.`);
4083
4108
  } else
@@ -4087,7 +4112,7 @@ class Rr {
4087
4112
  }
4088
4113
  validateValueType(e, t, r) {
4089
4114
  const s = e.getType();
4090
- if (s !== void 0 && !N(s, t, r)) {
4115
+ if (s !== void 0 && !E(s, t, r)) {
4091
4116
  const n = T.get(s), o = T.get(t);
4092
4117
  throw new Error(
4093
4118
  `Value of type '${JSON.stringify(
@@ -4099,16 +4124,16 @@ class Rr {
4099
4124
  }
4100
4125
  }
4101
4126
  }
4102
- class Ar {
4127
+ class Vr {
4103
4128
  process(e) {
4104
4129
  return e;
4105
4130
  }
4106
4131
  postProcess(e, t, r) {
4107
4132
  const s = e.getType();
4108
- if (s !== void 0 && Ks(s, r)) {
4133
+ if (s !== void 0 && ks(s, r)) {
4109
4134
  const n = e.getItems(), o = e.getProperties();
4110
4135
  if (n !== void 0 && n.length > 0 || o !== void 0 && Object.keys(o).length > 0) {
4111
- const l = ks(
4136
+ const l = Hs(
4112
4137
  s,
4113
4138
  r
4114
4139
  ), a = s.getName() || "unknown";
@@ -4120,7 +4145,7 @@ class Ar {
4120
4145
  return e;
4121
4146
  }
4122
4147
  }
4123
- class Vr {
4148
+ class Or {
4124
4149
  process(e, t) {
4125
4150
  let r = e;
4126
4151
  const s = t.getName();
@@ -4129,33 +4154,33 @@ class Vr {
4129
4154
  return n !== void 0 && n !== r.getDescription() && (r = r.cloneShallow().setDescription(n)), r;
4130
4155
  }
4131
4156
  }
4132
- const $n = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4157
+ const _n = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4133
4158
  __proto__: null,
4134
- BasicTypesVerifier: Ar,
4135
- DictionaryProcessor: Rr,
4136
- ListProcessor: Cr,
4137
- MetadataPropagator: Vr,
4138
- SequentialMergingProcessor: br,
4139
- TypeAssigner: Nr,
4140
- ValuePropagator: Er
4159
+ BasicTypesVerifier: Vr,
4160
+ DictionaryProcessor: Ar,
4161
+ ListProcessor: Rr,
4162
+ MetadataPropagator: Or,
4163
+ SequentialMergingProcessor: Er,
4164
+ TypeAssigner: Cr,
4165
+ ValuePropagator: Nr
4141
4166
  }, Symbol.toStringTag, { value: "Module" }));
4142
4167
  function _e() {
4143
- return new br([
4144
- new Er(),
4168
+ return new Er([
4145
4169
  new Nr(),
4146
4170
  new Cr(),
4147
4171
  new Rr(),
4148
- new Vr(),
4149
- new Ar()
4172
+ new Ar(),
4173
+ new Or(),
4174
+ new Vr()
4150
4175
  ]);
4151
4176
  }
4152
- class He {
4177
+ class Ye {
4153
4178
  nodeProvider;
4154
4179
  mergingProcessor;
4155
- minimizer = new mt();
4180
+ minimizer = new It();
4156
4181
  cyclicSetIdentity;
4157
4182
  constructor(e = {}) {
4158
- this.nodeProvider = e.nodeProvider ?? Dt(() => []), this.mergingProcessor = e.mergingProcessor ?? _e(), this.cyclicSetIdentity = this.createCyclicSetIdentityService();
4183
+ this.nodeProvider = e.nodeProvider ?? xt(() => []), this.mergingProcessor = e.mergingProcessor ?? _e(), this.cyclicSetIdentity = this.createCyclicSetIdentityService();
4159
4184
  }
4160
4185
  /** @internal */
4161
4186
  createCyclicSetIdentityService() {
@@ -4187,7 +4212,7 @@ class He {
4187
4212
  "Cannot minimize a path-limited resolved node without a source semantic BlueId."
4188
4213
  );
4189
4214
  }
4190
- return E.hasBlueIdOnly(e) ? e.clone() : e.isResolved() ? this.minimizeResolved(e) : this.minimizeAuthoring(e);
4215
+ return b.hasBlueIdOnly(e) ? e.clone() : e.isResolved() ? this.minimizeResolved(e) : this.minimizeAuthoring(e);
4191
4216
  }
4192
4217
  minimizeResolved(e) {
4193
4218
  if (e instanceof J && e.getCompleteness() === "path-limited")
@@ -4202,7 +4227,7 @@ class He {
4202
4227
  minimizeAuthoringWithProvider(e, t) {
4203
4228
  const r = new de(this.mergingProcessor, t).resolve(
4204
4229
  e,
4205
- j
4230
+ F
4206
4231
  );
4207
4232
  return this.minimizeResolved(r);
4208
4233
  }
@@ -4235,7 +4260,7 @@ class He {
4235
4260
  return e;
4236
4261
  const r = new de(this.mergingProcessor, t).resolve(
4237
4262
  e,
4238
- j
4263
+ F
4239
4264
  );
4240
4265
  return this.minimizer.minimizeResolvedForHash(r);
4241
4266
  }
@@ -4277,7 +4302,7 @@ class He {
4277
4302
  getTopLevelSetItems(e) {
4278
4303
  if (Array.isArray(e))
4279
4304
  return e;
4280
- if (E.hasItemsOnly(e))
4305
+ if (b.hasItemsOnly(e))
4281
4306
  return e.getItems() ?? [];
4282
4307
  }
4283
4308
  toMinimalListIdentityInput(e) {
@@ -4286,12 +4311,12 @@ class He {
4286
4311
  return this.minimizeAuthoring(t).getItems() ?? [];
4287
4312
  }
4288
4313
  }
4289
- class ni {
4314
+ class oi {
4290
4315
  semanticIdentity;
4291
4316
  cyclicSetIdentity;
4292
4317
  constructor(e = {}) {
4293
- const t = e.nodeProvider ?? Dt(() => []), r = e.mergingProcessor ?? _e();
4294
- this.semanticIdentity = new He({
4318
+ const t = e.nodeProvider ?? xt(() => []), r = e.mergingProcessor ?? _e();
4319
+ this.semanticIdentity = new Ye({
4295
4320
  nodeProvider: t,
4296
4321
  mergingProcessor: r
4297
4322
  }), this.cyclicSetIdentity = this.semanticIdentity.createCyclicSetIdentityService();
@@ -4357,12 +4382,12 @@ class ni {
4357
4382
  );
4358
4383
  }
4359
4384
  }
4360
- const oi = (i) => i instanceof Zt || i instanceof Xt || i instanceof qt || i instanceof Qt || i instanceof We || i instanceof Ge, li = (i) => i instanceof ge || i instanceof me || i instanceof Ue || i instanceof ze;
4361
- class Or {
4385
+ const li = (i) => i instanceof Xt || i instanceof qt || i instanceof Qt || i instanceof er || i instanceof Ge || i instanceof Je, ai = (i) => i instanceof ge || i instanceof me || i instanceof ze || i instanceof Ke;
4386
+ class Mr {
4362
4387
  static convertValue(e, t) {
4363
4388
  const r = e.getType()?.getBlueId(), s = e.getValue();
4364
- return v(s) ? li(t) && E.isValidValueNode(e) ? this.getDefaultPrimitiveValue(t) : s : Q === r ? this.convertFromString(String(s), t) : ee === r || s instanceof x ? this.convertFromBigDecimal(
4365
- new x(s?.toString()),
4389
+ return v(s) ? ai(t) && b.isValidValueNode(e) ? this.getDefaultPrimitiveValue(t) : s : Q === r ? this.convertFromString(String(s), t) : ee === r || s instanceof $ ? this.convertFromBigDecimal(
4390
+ new $(s?.toString()),
4366
4391
  t
4367
4392
  ) : te === r || s instanceof A ? this.convertFromBigInteger(
4368
4393
  new A(s?.toString()),
@@ -4370,13 +4395,13 @@ class Or {
4370
4395
  ) : re === r || typeof s == "boolean" ? this.convertFromBoolean(!!s, t) : this.convertFromString(String(s), t);
4371
4396
  }
4372
4397
  static convertFromString(e, t) {
4373
- if (!t || t instanceof ge || t instanceof jr || t instanceof Fr)
4398
+ if (!t || t instanceof ge || t instanceof Fr || t instanceof Ur)
4374
4399
  return e;
4375
4400
  if (t instanceof me)
4376
4401
  return Number(e);
4377
- if (t instanceof Ue)
4378
- return e.toLowerCase() === "true";
4379
4402
  if (t instanceof ze)
4403
+ return e.toLowerCase() === "true";
4404
+ if (t instanceof Ke)
4380
4405
  return BigInt(e);
4381
4406
  throw new Error(`Cannot convert String to ${t._def.typeName}`);
4382
4407
  }
@@ -4390,20 +4415,20 @@ class Or {
4390
4415
  static convertFromBigInteger(e, t) {
4391
4416
  if (t instanceof me)
4392
4417
  return e.toNumber();
4393
- if (t instanceof ze)
4418
+ if (t instanceof Ke)
4394
4419
  return BigInt(e.toString());
4395
4420
  if (t instanceof ge)
4396
4421
  return e.toString();
4397
4422
  throw new Error(`Cannot convert Number to ${t._def.typeName}`);
4398
4423
  }
4399
4424
  static convertFromBoolean(e, t) {
4400
- if (!t || t instanceof Ue)
4425
+ if (!t || t instanceof ze)
4401
4426
  return e;
4402
4427
  if (t instanceof ge)
4403
4428
  return e.toString();
4404
4429
  if (t instanceof me)
4405
4430
  return Number(e);
4406
- if (t instanceof ze)
4431
+ if (t instanceof Ke)
4407
4432
  return BigInt(e);
4408
4433
  throw new Error(`Cannot convert Boolean to ${t._def.typeName}`);
4409
4434
  }
@@ -4411,7 +4436,7 @@ class Or {
4411
4436
  if (!e) return null;
4412
4437
  if (e instanceof me)
4413
4438
  return 0;
4414
- if (e instanceof Ue)
4439
+ if (e instanceof ze)
4415
4440
  return !1;
4416
4441
  if (e instanceof ge)
4417
4442
  return "";
@@ -4420,12 +4445,12 @@ class Or {
4420
4445
  );
4421
4446
  }
4422
4447
  }
4423
- class ai {
4448
+ class ci {
4424
4449
  convert(e, t) {
4425
- return Or.convertValue(e, t);
4450
+ return Mr.convertValue(e, t);
4426
4451
  }
4427
4452
  }
4428
- class ci {
4453
+ class ui {
4429
4454
  constructor(e, t) {
4430
4455
  this.nodeToObjectConverter = e, this.calculateBlueId = t;
4431
4456
  }
@@ -4433,26 +4458,26 @@ class ci {
4433
4458
  return this.convertFields(e, t);
4434
4459
  }
4435
4460
  convertFields(e, t) {
4436
- if (t instanceof Ur) {
4461
+ if (t instanceof zr) {
4437
4462
  const r = t._def.left, s = t._def.right, n = this.convert(e, r), o = this.convert(e, s);
4438
4463
  return { ...n, ...o };
4439
4464
  }
4440
- if (t instanceof zr)
4441
- throw new Error("Union not supported");
4442
4465
  if (t instanceof Kr)
4466
+ throw new Error("Union not supported");
4467
+ if (t instanceof kr)
4443
4468
  return Object.keys(t.shape).reduce(
4444
4469
  (s, n) => {
4445
- const o = e.getProperties(), l = t.shape[n], a = Cs(l);
4470
+ const o = e.getProperties(), l = t.shape[n], a = Rs(l);
4446
4471
  if (p(a)) {
4447
- const g = wt(a) ? a : n, I = o?.[g], L = I ? this.calculateBlueId(I) : void 0;
4448
- return s[n] = L, s;
4472
+ const g = St(a) ? a : n, I = o?.[g], D = I ? this.calculateBlueId(I) : void 0;
4473
+ return s[n] = D, s;
4449
4474
  }
4450
- const c = As(l);
4475
+ const c = Vs(l);
4451
4476
  if (p(c)) {
4452
4477
  const g = o?.[c];
4453
4478
  return s[n] = g?.getName(), s;
4454
4479
  }
4455
- const d = bs(l);
4480
+ const d = Es(l);
4456
4481
  if (p(d)) {
4457
4482
  const g = o?.[d];
4458
4483
  return s[n] = g?.getDescription(), s;
@@ -4479,7 +4504,7 @@ class ci {
4479
4504
  throw new Error("Unknown schema type, " + t._def.typeName);
4480
4505
  }
4481
4506
  }
4482
- class ui {
4507
+ class di {
4483
4508
  constructor(e) {
4484
4509
  this.nodeToObjectConverter = e;
4485
4510
  }
@@ -4493,7 +4518,7 @@ class ui {
4493
4518
  );
4494
4519
  }
4495
4520
  }
4496
- class di {
4521
+ class hi {
4497
4522
  constructor(e) {
4498
4523
  this.nodeToObjectConverter = e;
4499
4524
  }
@@ -4507,7 +4532,7 @@ class di {
4507
4532
  return new Set(n);
4508
4533
  }
4509
4534
  }
4510
- class hi {
4535
+ class pi {
4511
4536
  constructor(e) {
4512
4537
  this.nodeToObjectConverter = e;
4513
4538
  }
@@ -4520,22 +4545,22 @@ class hi {
4520
4545
  return p(a) && Object.entries(a).forEach(([c, d]) => {
4521
4546
  const h = new u().setValue(c);
4522
4547
  h.setType(new u().setBlueId(Q));
4523
- const f = Or.convertValue(h, r), g = this.nodeToObjectConverter.convert(d, s);
4548
+ const f = Mr.convertValue(h, r), g = this.nodeToObjectConverter.convert(d, s);
4524
4549
  n.set(f, g);
4525
- }), t instanceof kr ? Object.fromEntries(n) : n;
4550
+ }), t instanceof Hr ? Object.fromEntries(n) : n;
4526
4551
  }
4527
4552
  }
4528
- class pi {
4553
+ class fi {
4529
4554
  convert(e) {
4530
4555
  return T.get(e);
4531
4556
  }
4532
4557
  }
4533
- class fi {
4558
+ class yi {
4534
4559
  convert(e) {
4535
4560
  return T.get(e);
4536
4561
  }
4537
4562
  }
4538
- class yi {
4563
+ class gi {
4539
4564
  constructor(e) {
4540
4565
  this.nodeToObjectConverter = e;
4541
4566
  }
@@ -4549,7 +4574,7 @@ class yi {
4549
4574
  );
4550
4575
  }
4551
4576
  }
4552
- const gi = y.union([
4577
+ const mi = y.union([
4553
4578
  y.literal("ZodString"),
4554
4579
  y.literal("ZodNumber"),
4555
4580
  y.literal("ZodBoolean"),
@@ -4565,9 +4590,9 @@ const gi = y.union([
4565
4590
  y.literal("ZodAny"),
4566
4591
  y.literal("ZodTuple")
4567
4592
  ]);
4568
- class mi {
4593
+ class Ii {
4569
4594
  constructor(e, t) {
4570
- this.nodeToObjectConverter = e, this.registerConverters(), this.complexObjectConverter = new ci(
4595
+ this.nodeToObjectConverter = e, this.registerConverters(), this.complexObjectConverter = new ui(
4571
4596
  this.nodeToObjectConverter,
4572
4597
  t
4573
4598
  );
@@ -4575,37 +4600,37 @@ class mi {
4575
4600
  converters = /* @__PURE__ */ new Map();
4576
4601
  complexObjectConverter;
4577
4602
  registerConverters() {
4578
- const e = new ai(), t = new ui(this.nodeToObjectConverter), r = new yi(this.nodeToObjectConverter), s = new di(this.nodeToObjectConverter), n = new hi(this.nodeToObjectConverter);
4579
- this.converters.set("ZodString", e), this.converters.set("ZodNumber", e), this.converters.set("ZodBoolean", e), this.converters.set("ZodBigInt", e), this.converters.set("ZodEnum", e), this.converters.set("ZodNativeEnum", e), this.converters.set("ZodUnknown", new pi()), this.converters.set("ZodAny", new fi()), this.converters.set("ZodArray", t), this.converters.set("ZodTuple", r), this.converters.set("ZodSet", s), this.converters.set("ZodMap", n), this.converters.set("ZodRecord", n), this.converters.set("ZodObject", this.complexObjectConverter);
4603
+ const e = new ci(), t = new di(this.nodeToObjectConverter), r = new gi(this.nodeToObjectConverter), s = new hi(this.nodeToObjectConverter), n = new pi(this.nodeToObjectConverter);
4604
+ this.converters.set("ZodString", e), this.converters.set("ZodNumber", e), this.converters.set("ZodBoolean", e), this.converters.set("ZodBigInt", e), this.converters.set("ZodEnum", e), this.converters.set("ZodNativeEnum", e), this.converters.set("ZodUnknown", new fi()), this.converters.set("ZodAny", new yi()), this.converters.set("ZodArray", t), this.converters.set("ZodTuple", r), this.converters.set("ZodSet", s), this.converters.set("ZodMap", n), this.converters.set("ZodRecord", n), this.converters.set("ZodObject", this.complexObjectConverter);
4580
4605
  }
4581
4606
  getConverter(e) {
4582
4607
  const t = this.getSchemaTypeName(e);
4583
4608
  return this.converters.get(t) ?? this.complexObjectConverter;
4584
4609
  }
4585
4610
  getSchemaTypeName(e) {
4586
- if (oi(e))
4587
- return e instanceof We ? this.getSchemaTypeName(e.innerType()) : e instanceof Ge ? this.getSchemaTypeName(e.schema) : this.getSchemaTypeName(e.unwrap());
4611
+ if (li(e))
4612
+ return e instanceof Ge ? this.getSchemaTypeName(e.innerType()) : e instanceof Je ? this.getSchemaTypeName(e.schema) : this.getSchemaTypeName(e.unwrap());
4588
4613
  const t = e._def.typeName;
4589
4614
  try {
4590
- return gi.parse(t);
4615
+ return mi.parse(t);
4591
4616
  } catch {
4592
4617
  throw new Error(`Schema type name ${t} is not supported`);
4593
4618
  }
4594
4619
  }
4595
4620
  }
4596
- class Ii {
4621
+ class vi {
4597
4622
  constructor(e, t) {
4598
4623
  if (this.typeSchemaResolver = e, !t?.calculateBlueId)
4599
4624
  throw new Error(
4600
4625
  "NodeToObjectConverter requires a semantic calculateBlueId option."
4601
4626
  );
4602
- this.calculateBlueId = t.calculateBlueId, this.converterFactory = new mi(this, this.calculateBlueId);
4627
+ this.calculateBlueId = t.calculateBlueId, this.converterFactory = new Ii(this, this.calculateBlueId);
4603
4628
  }
4604
4629
  converterFactory;
4605
4630
  calculateBlueId;
4606
4631
  convert(e, t) {
4607
4632
  const r = this.typeSchemaResolver?.resolveSchema(e), s = k.unwrapSchema(t);
4608
- if (vr(s))
4633
+ if (Tr(s))
4609
4634
  return e;
4610
4635
  let n = s;
4611
4636
  return k.checkSchemaExtension(
@@ -4618,17 +4643,17 @@ class Ii {
4618
4643
  return this.converterFactory.getConverter(t).convert(e, t);
4619
4644
  }
4620
4645
  }
4621
- class vi {
4646
+ class Ti {
4622
4647
  static get(e, t = {}) {
4623
4648
  const { strategy: r = "official" } = t, s = T.get(e, r);
4624
- return qs(s);
4649
+ return Qs(s);
4625
4650
  }
4626
4651
  }
4627
- const Kt = async (i) => {
4628
- if (Xr(i))
4652
+ const kt = async (i) => {
4653
+ if (qr(i))
4629
4654
  return i;
4630
4655
  try {
4631
- const e = Je.parse(i), { Blue: t } = await Promise.resolve().then(() => en), r = await new t().calculateBlueId(e);
4656
+ const e = Ze.parse(i), { Blue: t } = await Promise.resolve().then(() => tn), r = await new t().calculateBlueId(e);
4632
4657
  return {
4633
4658
  ...i,
4634
4659
  blueId: r
@@ -4636,10 +4661,10 @@ const Kt = async (i) => {
4636
4661
  } catch (e) {
4637
4662
  throw new Error(`Failed enriching object with Blue ID: ${e}`);
4638
4663
  }
4639
- }, _n = (i) => i?.items, jn = (i) => i?.value, Fn = (i) => v(i) ? {} : rr(
4664
+ }, jn = (i) => i?.items, Fn = (i) => i?.value, Un = (i) => v(i) ? {} : sr(
4640
4665
  i,
4641
- Et
4642
- ), Un = (i) => Qr(i) ? i.type.name ?? null : es(i) ? Hr(typeof i.value) : qr(i) ? "List" : null, Ti = (i) => p(i) && Object.keys(rr(i, ["blueId"])).length > 0, zn = (i) => {
4666
+ Nt
4667
+ ), zn = (i) => es(i) ? i.type.name ?? null : ts(i) ? Yr(typeof i.value) : Qr(i) ? "List" : null, Bi = (i) => p(i) && Object.keys(sr(i, ["blueId"])).length > 0, Kn = (i) => {
4643
4668
  try {
4644
4669
  const e = m.deserialize(i), t = T.get(e);
4645
4670
  return Ve.parse(t);
@@ -4648,19 +4673,19 @@ const Kt = async (i) => {
4648
4673
  `Failed transforming JSON-like value to BlueObject: ${e}`
4649
4674
  );
4650
4675
  }
4651
- }, kt = async (i) => {
4676
+ }, Ht = async (i) => {
4652
4677
  const {
4653
4678
  resolveFunction: e,
4654
4679
  signal: t = new AbortController().signal,
4655
4680
  omitItems: r
4656
4681
  } = i, s = i.count ?? i.items.length;
4657
- let n = await Yr(i.items, async (l) => await Kt(l));
4682
+ let n = await Wr(i.items, async (l) => await kt(l));
4658
4683
  const o = Math.max(n?.length - s, 0);
4659
4684
  for (let l = n.length - 1; l >= o; l--)
4660
- if (!Ti(n[l])) {
4685
+ if (!Bi(n[l])) {
4661
4686
  const a = await e(n[l], { signal: t });
4662
4687
  if (Array.isArray(a))
4663
- return kt({
4688
+ return Ht({
4664
4689
  ...i,
4665
4690
  items: [
4666
4691
  ...n.slice(0, l),
@@ -4668,9 +4693,9 @@ const Kt = async (i) => {
4668
4693
  ...n.slice(l + 1)
4669
4694
  ]
4670
4695
  });
4671
- const c = await Kt(a);
4696
+ const c = await kt(a);
4672
4697
  if (r?.includes(c.blueId))
4673
- return kt({
4698
+ return Ht({
4674
4699
  ...i,
4675
4700
  items: [...n.slice(0, l), ...n.slice(l + 1)]
4676
4701
  });
@@ -4682,7 +4707,7 @@ const Kt = async (i) => {
4682
4707
  }
4683
4708
  return n;
4684
4709
  };
4685
- function Ye(i) {
4710
+ function We(i) {
4686
4711
  try {
4687
4712
  const e = new URL(i);
4688
4713
  return e.protocol === "http:" || e.protocol === "https:";
@@ -4690,14 +4715,14 @@ function Ye(i) {
4690
4715
  return !1;
4691
4716
  }
4692
4717
  }
4693
- class Bi {
4718
+ class Pi {
4694
4719
  /**
4695
4720
  * Process a document node to infer basic types for untyped values
4696
4721
  * @param document - The document to process
4697
4722
  * @returns The processed document
4698
4723
  */
4699
4724
  process(e) {
4700
- return D.transform(e, this.inferType.bind(this));
4725
+ return L.transform(e, this.inferType.bind(this));
4701
4726
  }
4702
4727
  /**
4703
4728
  * Infer a basic type for a node
@@ -4706,10 +4731,10 @@ class Bi {
4706
4731
  */
4707
4732
  inferType(e) {
4708
4733
  const t = e.getType(), r = e.getValue();
4709
- return v(t) && p(r) && (typeof r == "string" ? e.setType(new u().setBlueId(Q)) : typeof r == "bigint" || oe(r) ? e.setType(new u().setBlueId(te)) : ft(r) ? e.setType(new u().setBlueId(ee)) : typeof r == "boolean" && e.setType(new u().setBlueId(re))), e;
4734
+ return v(t) && p(r) && (typeof r == "string" ? e.setType(new u().setBlueId(Q)) : typeof r == "bigint" || oe(r) ? e.setType(new u().setBlueId(te)) : yt(r) ? e.setType(new u().setBlueId(ee)) : typeof r == "boolean" && e.setType(new u().setBlueId(re))), e;
4710
4735
  }
4711
4736
  }
4712
- class qe {
4737
+ class Qe {
4713
4738
  static MAPPINGS = "mappings";
4714
4739
  mappings = /* @__PURE__ */ new Map();
4715
4740
  /**
@@ -4719,8 +4744,8 @@ class qe {
4719
4744
  constructor(e) {
4720
4745
  if (e instanceof u) {
4721
4746
  const r = e.getProperties();
4722
- if (r && r[qe.MAPPINGS]) {
4723
- const n = r[qe.MAPPINGS].getProperties();
4747
+ if (r && r[Qe.MAPPINGS]) {
4748
+ const n = r[Qe.MAPPINGS].getProperties();
4724
4749
  n && Object.entries(n).forEach(([o, l]) => {
4725
4750
  const a = l.getValue();
4726
4751
  typeof a == "string" && this.mappings.set(o, a);
@@ -4735,7 +4760,7 @@ class qe {
4735
4760
  * @returns The processed document
4736
4761
  */
4737
4762
  process(e) {
4738
- return D.transform(e, this.transformNode.bind(this));
4763
+ return L.transform(e, this.transformNode.bind(this));
4739
4764
  }
4740
4765
  transformNode(e) {
4741
4766
  const t = e.clone();
@@ -4754,7 +4779,7 @@ class qe {
4754
4779
  }
4755
4780
  }
4756
4781
  }
4757
- class Pi {
4782
+ class wi {
4758
4783
  /**
4759
4784
  * Process a document node to validate all inline types have been replaced
4760
4785
  * @param document - The document to process
@@ -4762,7 +4787,7 @@ class Pi {
4762
4787
  * @throws Error if any inline type values remain without BlueId mappings
4763
4788
  */
4764
4789
  process(e) {
4765
- return D.transform(e, this.validateNode.bind(this)), e;
4790
+ return L.transform(e, this.validateNode.bind(this)), e;
4766
4791
  }
4767
4792
  validateNode(e) {
4768
4793
  return this.validateTypeField(e, e.getType(), "type"), this.validateTypeField(e, e.getItemType(), "itemType"), this.validateTypeField(e, e.getKeyType(), "keyType"), this.validateTypeField(e, e.getValueType(), "valueType"), e;
@@ -4776,7 +4801,7 @@ class Pi {
4776
4801
  }
4777
4802
  }
4778
4803
  }
4779
- class Mr {
4804
+ class Dr {
4780
4805
  blueIdsCollections = [];
4781
4806
  /**
4782
4807
  * Initializes the generator with default BlueIds collections
@@ -4865,7 +4890,7 @@ class De {
4865
4890
  const { nodeProvider: t, processorProvider: r, blueIdsMappingGenerator: s } = e;
4866
4891
  if (!t)
4867
4892
  throw new Error("NodeProvider is required");
4868
- this.nodeProvider = Me.wrap(t), this.processorProvider = r || De.getStandardProvider(), this.blueIdsMappingGenerator = s || new Mr(), this.loadDefaultSimpleBlue();
4893
+ this.nodeProvider = Me.wrap(t), this.processorProvider = r || De.getStandardProvider(), this.blueIdsMappingGenerator = s || new Dr(), this.loadDefaultSimpleBlue();
4869
4894
  }
4870
4895
  /**
4871
4896
  * Preprocesses a document node
@@ -4892,9 +4917,9 @@ class De {
4892
4917
  preprocessWithOptions(e, t) {
4893
4918
  let r = e.clone(), s = r.getBlue();
4894
4919
  if (!s && t && (s = t.clone()), s) {
4895
- new Lt(this.nodeProvider).extend(
4920
+ new $t(this.nodeProvider).extend(
4896
4921
  s,
4897
- it.withSinglePath("/*")
4922
+ nt.withSinglePath("/*")
4898
4923
  );
4899
4924
  const n = this.flattenTransformationItems(
4900
4925
  s.getItems()
@@ -4911,7 +4936,7 @@ class De {
4911
4936
  }
4912
4937
  r.setBlue(void 0);
4913
4938
  }
4914
- r = new Pi().process(
4939
+ r = new wi().process(
4915
4940
  r
4916
4941
  );
4917
4942
  }
@@ -4930,11 +4955,11 @@ class De {
4930
4955
  getProcessor(e) {
4931
4956
  const t = "27B7fuxQCS1VAptiCPc2RMkKoutP5qxkh3uDxZ7dr6Eo", r = "FGYuTXwaoSKfZmpTysLTLsb8WzSqf43384rKZDkXhxD4", s = e.getType()?.getBlueId();
4932
4957
  if (t === s)
4933
- return new qe(
4958
+ return new Qe(
4934
4959
  e
4935
4960
  );
4936
4961
  if (r === s)
4937
- return new Bi();
4962
+ return new Pi();
4938
4963
  }
4939
4964
  };
4940
4965
  }
@@ -4957,7 +4982,7 @@ ${t}
4957
4982
  */
4958
4983
  loadDefaultSimpleBlue() {
4959
4984
  try {
4960
- const e = this.enrichDefaultBlue(Sr), t = ae(e);
4985
+ const e = this.enrichDefaultBlue(br), t = ae(e);
4961
4986
  if (t)
4962
4987
  this.defaultSimpleBlue = m.deserialize(t);
4963
4988
  else
@@ -4967,7 +4992,7 @@ ${t}
4967
4992
  }
4968
4993
  }
4969
4994
  }
4970
- class wi {
4995
+ class Si {
4971
4996
  preprocessingAliases = /* @__PURE__ */ new Map();
4972
4997
  urlContentFetcher;
4973
4998
  /**
@@ -4993,7 +5018,7 @@ class wi {
4993
5018
  return this.handleAliasValue(r, t);
4994
5019
  if (Be.isPotentialBlueId(t))
4995
5020
  return this.handleBlueId(r, t);
4996
- throw Ye(t) ? new Error(
5021
+ throw We(t) ? new Error(
4997
5022
  `URL '${t}' detected. Use the async version of this method to fetch the content.`
4998
5023
  ) : new Error(`Invalid blue value: ${t}`);
4999
5024
  }
@@ -5013,7 +5038,7 @@ class wi {
5013
5038
  return this.handleAliasValue(r, t);
5014
5039
  if (Be.isPotentialBlueId(t))
5015
5040
  return this.handleBlueId(r, t);
5016
- if (Ye(t) && this.urlContentFetcher)
5041
+ if (We(t) && this.urlContentFetcher)
5017
5042
  try {
5018
5043
  const s = await this.fetchFromUrl(t);
5019
5044
  return s && r.setBlue(new u().setItems(s)), r;
@@ -5023,7 +5048,7 @@ class wi {
5023
5048
  ${s.message}`
5024
5049
  ) : s;
5025
5050
  }
5026
- else throw Ye(t) ? new Error(
5051
+ else throw We(t) ? new Error(
5027
5052
  `UrlContentFetcher not provided for URL: ${t}`
5028
5053
  ) : new Error(`Invalid blue value: ${t}`);
5029
5054
  }
@@ -5109,24 +5134,24 @@ ${s.message}`
5109
5134
  return this.urlContentFetcher;
5110
5135
  }
5111
5136
  }
5112
- const Si = {
5137
+ const bi = {
5113
5138
  fetchUrl: async (i) => {
5114
5139
  throw new Error(
5115
5140
  `You must provide a custom UrlFetchStrategy to fetch content from URL: ${i}`
5116
5141
  );
5117
5142
  }
5118
5143
  };
5119
- class bi {
5144
+ class Ei {
5120
5145
  // Cache to avoid repeated network requests for the same URL
5121
5146
  cache = /* @__PURE__ */ new Map();
5122
5147
  fetchStrategy;
5123
5148
  enabled = !1;
5124
5149
  allowedDomains = [];
5125
5150
  constructor(e) {
5126
- this.fetchStrategy = e || Si;
5151
+ this.fetchStrategy = e || bi;
5127
5152
  }
5128
5153
  validateUrl(e) {
5129
- if (!Ye(e))
5154
+ if (!We(e))
5130
5155
  throw new Error(`Invalid URL: ${e}`);
5131
5156
  return !0;
5132
5157
  }
@@ -5245,7 +5270,7 @@ class bi {
5245
5270
  return this.allowedDomains = [], this;
5246
5271
  }
5247
5272
  }
5248
- class je {
5273
+ class Fe {
5249
5274
  constructor(e, t, r, s = [], n = !1) {
5250
5275
  this.blueId = e, this.content = t, this.isMultipleDocuments = r, this.documentBlueIds = s, this.isCyclicSet = n;
5251
5276
  }
@@ -5273,7 +5298,7 @@ class Te {
5273
5298
  );
5274
5299
  return n = c.blueId, o = c.nodes.map(
5275
5300
  (d) => T.get(d)
5276
- ), new je(
5301
+ ), new Fe(
5277
5302
  n,
5278
5303
  o,
5279
5304
  !0,
@@ -5284,11 +5309,11 @@ class Te {
5284
5309
  const a = m.deserialize(s), c = r.prepareStorageNode(a, t);
5285
5310
  n = c.blueId, o = T.get(c.node);
5286
5311
  }
5287
- return new je(n, o, l);
5312
+ return new Fe(n, o, l);
5288
5313
  }
5289
5314
  static parseAndCalculateBlueIdForNode(e, t, r) {
5290
5315
  const s = r.prepareStorageNode(e, t), n = T.get(s.node);
5291
- return new je(s.blueId, n, !1);
5316
+ return new Fe(s.blueId, n, !1);
5292
5317
  }
5293
5318
  static parseAndCalculateBlueIdForNodeList(e, t, r) {
5294
5319
  if (!e || e.length === 0)
@@ -5299,7 +5324,7 @@ class Te {
5299
5324
  ), n = s.nodes.map(
5300
5325
  (l) => T.get(l)
5301
5326
  ), o = !0;
5302
- return new je(
5327
+ return new Fe(
5303
5328
  s.blueId,
5304
5329
  n,
5305
5330
  o,
@@ -5352,7 +5377,7 @@ class Te {
5352
5377
  }
5353
5378
  }
5354
5379
  }
5355
- class Ei extends ye {
5380
+ class Ni extends ye {
5356
5381
  fetchByBlueId(e) {
5357
5382
  const t = e.split("#")[0], r = this.fetchContentByBlueId(t);
5358
5383
  if (r == null)
@@ -5375,7 +5400,7 @@ class Ei extends ye {
5375
5400
  return Array.isArray(n) ? n.map((o) => m.deserialize(o)) : [m.deserialize(n)];
5376
5401
  }
5377
5402
  }
5378
- class Dr extends Ei {
5403
+ class xr extends Ni {
5379
5404
  nameToBlueIdsMap = /* @__PURE__ */ new Map();
5380
5405
  /**
5381
5406
  * Find a node by name. Throws an error if multiple nodes are found with the same name.
@@ -5419,23 +5444,23 @@ class Dr extends Ei {
5419
5444
  ]);
5420
5445
  }
5421
5446
  }
5422
- function Ni(i) {
5423
- return Array.isArray(i) ? Ci(i) : i;
5424
- }
5425
5447
  function Ci(i) {
5426
- const e = i.map((t) => m.deserialize(t));
5427
- return O.hasIndexedThisReference(e) ? Ri(e) : i;
5448
+ return Array.isArray(i) ? Ri(i) : i;
5428
5449
  }
5429
5450
  function Ri(i) {
5451
+ const e = i.map((t) => m.deserialize(t));
5452
+ return O.hasIndexedThisReference(e) ? Ai(e) : i;
5453
+ }
5454
+ function Ai(i) {
5430
5455
  return new O().calculate(i).nodes.map((t) => T.get(t));
5431
5456
  }
5432
- class $t extends Dr {
5457
+ class _t extends xr {
5433
5458
  blueIdToContentMap = /* @__PURE__ */ new Map();
5434
5459
  blueIdToMultipleDocumentsMap = /* @__PURE__ */ new Map();
5435
5460
  aliasBlueIdMap = /* @__PURE__ */ new Map();
5436
5461
  constructor(e, t = {}) {
5437
5462
  super();
5438
- const r = $t.collectAliasMappings(e);
5463
+ const r = _t.collectAliasMappings(e);
5439
5464
  this.aliasBlueIdMap = new Map(Object.entries(r)), this.loadRepositories(e);
5440
5465
  }
5441
5466
  static collectAliasMappings(e) {
@@ -5454,7 +5479,7 @@ class $t extends Dr {
5454
5479
  for (const t of e)
5455
5480
  Object.values(t.packages).forEach((r) => {
5456
5481
  for (const [s, n] of Object.entries(r.contents)) {
5457
- const o = Ni(n);
5482
+ const o = Ci(n);
5458
5483
  this.storeContent(
5459
5484
  s,
5460
5485
  o,
@@ -5528,12 +5553,12 @@ class $t extends Dr {
5528
5553
  };
5529
5554
  }
5530
5555
  }
5531
- class Ai {
5556
+ class Vi {
5532
5557
  nodeProvider;
5533
5558
  blueIdToInlineValue = /* @__PURE__ */ new Map();
5534
5559
  constructor(e) {
5535
5560
  const { nodeProvider: t, blueIdsMappingGenerator: r } = e;
5536
- this.nodeProvider = t, Object.entries(rt).forEach(([n, o]) => {
5561
+ this.nodeProvider = t, Object.entries(st).forEach(([n, o]) => {
5537
5562
  this.blueIdToInlineValue.set(n, o);
5538
5563
  });
5539
5564
  const s = r.getAllBlueIds();
@@ -5545,7 +5570,7 @@ class Ai {
5545
5570
  * Returns a new BlueNode where all type references are restored to inline values when possible.
5546
5571
  */
5547
5572
  restore(e) {
5548
- return D.transform(
5573
+ return L.transform(
5549
5574
  e,
5550
5575
  (t) => this.restoreNode(t)
5551
5576
  );
@@ -5594,17 +5619,17 @@ class Ai {
5594
5619
  return this.blueIdToInlineValue.set(e, o), o;
5595
5620
  }
5596
5621
  }
5597
- class Vi {
5622
+ class Oi {
5598
5623
  runtimes;
5599
5624
  contents;
5600
5625
  aliases;
5601
5626
  constructor(e) {
5602
5627
  const t = [];
5603
5628
  for (const r of e)
5604
- t.push(Oi(r));
5629
+ t.push(Mi(r));
5605
5630
  this.runtimes = t, this.contents = {}, this.aliases = {};
5606
5631
  for (const r of this.runtimes)
5607
- Ki(this.contents, r.contents, r.name), zi(this.aliases, r.aliases, r.name);
5632
+ ki(this.contents, r.contents, r.name), Ki(this.aliases, r.aliases, r.name);
5608
5633
  }
5609
5634
  getRuntimes() {
5610
5635
  return this.runtimes;
@@ -5619,7 +5644,7 @@ class Vi {
5619
5644
  return this.runtimes.find((t) => t.name === e);
5620
5645
  }
5621
5646
  toCurrentBlueId(e) {
5622
- const t = this.aliases[e] ?? dr[e] ?? e;
5647
+ const t = this.aliases[e] ?? hr[e] ?? e;
5623
5648
  for (const r of this.runtimes) {
5624
5649
  const s = r.toCurrentBlueIdIndex[t];
5625
5650
  if (s)
@@ -5628,7 +5653,7 @@ class Vi {
5628
5653
  return t;
5629
5654
  }
5630
5655
  getTypeAlias(e) {
5631
- const t = this.toCurrentBlueId(e), r = rt[t];
5656
+ const t = this.toCurrentBlueId(e), r = st[t];
5632
5657
  if (r)
5633
5658
  return r;
5634
5659
  for (const s of this.runtimes) {
@@ -5651,10 +5676,10 @@ class Vi {
5651
5676
  }
5652
5677
  }
5653
5678
  }
5654
- function Oi(i) {
5655
- const e = Mi(i);
5679
+ function Mi(i) {
5680
+ const e = Di(i);
5656
5681
  return Object.values(i.packages).forEach((t) => {
5657
- Di(e, i, t);
5682
+ xi(e, i, t);
5658
5683
  }), {
5659
5684
  name: i.name,
5660
5685
  repositoryVersions: i.repositoryVersions,
@@ -5669,7 +5694,7 @@ function Oi(i) {
5669
5694
  typePackageByCurrentBlueId: e.typePackageByCurrentBlueId
5670
5695
  };
5671
5696
  }
5672
- function Mi(i) {
5697
+ function Di(i) {
5673
5698
  const e = Object.fromEntries(
5674
5699
  i.repositoryVersions.map((r, s) => [r, s])
5675
5700
  ), t = i.repositoryVersions[i.repositoryVersions.length - 1];
@@ -5686,23 +5711,23 @@ function Mi(i) {
5686
5711
  currentRepoBlueId: t
5687
5712
  };
5688
5713
  }
5689
- function Di(i, e, t) {
5714
+ function xi(i, e, t) {
5690
5715
  if (i.packageNames.has(t.name))
5691
5716
  throw new Error(`Duplicate package name detected: ${t.name}`);
5692
- i.packageNames.add(t.name), xi(i, t), Li(i, e, t), $i(i, t), _i(i, t);
5717
+ i.packageNames.add(t.name), Li(i, t), $i(i, e, t), _i(i, t), ji(i, t);
5693
5718
  }
5694
- function xi(i, e) {
5719
+ function Li(i, e) {
5695
5720
  Object.entries(e.aliases).forEach(([t, r]) => {
5696
5721
  if (i.aliases[t] && i.aliases[t] !== r)
5697
5722
  throw new Error(`Conflicting alias mapping for ${t}`);
5698
5723
  i.aliases[t] = r;
5699
5724
  });
5700
5725
  }
5701
- function Li(i, e, t) {
5726
+ function $i(i, e, t) {
5702
5727
  Object.entries(t.typesMeta).forEach(([r, s]) => {
5703
5728
  if (i.types[r])
5704
5729
  throw new Error(`Duplicate type mapping for BlueId ${r}`);
5705
- const n = ji(
5730
+ const n = Fi(
5706
5731
  s,
5707
5732
  e,
5708
5733
  r,
@@ -5719,17 +5744,17 @@ function Li(i, e, t) {
5719
5744
  }
5720
5745
  });
5721
5746
  }
5722
- function $i(i, e) {
5747
+ function _i(i, e) {
5723
5748
  Object.entries(e.contents).forEach(([t, r]) => {
5724
5749
  i.contents[t] = r;
5725
5750
  });
5726
5751
  }
5727
- function _i(i, e) {
5752
+ function ji(i, e) {
5728
5753
  i.schemas.push(...Object.values(e.schemas));
5729
5754
  }
5730
- function ji(i, e, t, r) {
5731
- if (i.status === bt)
5732
- return Fi(i, e, t, r), {
5755
+ function Fi(i, e, t, r) {
5756
+ if (i.status === Et)
5757
+ return Ui(i, e, t, r), {
5733
5758
  ...i,
5734
5759
  versions: i.versions ? [...i.versions] : i.versions
5735
5760
  };
@@ -5752,7 +5777,7 @@ function ji(i, e, t, r) {
5752
5777
  );
5753
5778
  n.add(o.repositoryVersionIndex);
5754
5779
  for (const l of o.attributesAdded ?? [])
5755
- Ui(
5780
+ zi(
5756
5781
  l,
5757
5782
  e.name,
5758
5783
  t,
@@ -5763,8 +5788,8 @@ function ji(i, e, t, r) {
5763
5788
  versions: s
5764
5789
  };
5765
5790
  }
5766
- function Fi(i, e, t, r) {
5767
- if (i.status === bt) {
5791
+ function Ui(i, e, t, r) {
5792
+ if (i.status === Et) {
5768
5793
  if (i.versions && i.versions.length > 1)
5769
5794
  throw new Error(
5770
5795
  `Dev type ${r}/${i.name} (${t}) must not declare multiple versions`
@@ -5778,9 +5803,9 @@ function Fi(i, e, t, r) {
5778
5803
  }
5779
5804
  }
5780
5805
  }
5781
- function Ui(i, e, t, r) {
5806
+ function zi(i, e, t, r) {
5782
5807
  try {
5783
- Wr(i);
5808
+ Gr(i);
5784
5809
  } catch (s) {
5785
5810
  const n = s instanceof Error ? s.message : "Unknown error";
5786
5811
  throw new Error(
@@ -5788,7 +5813,7 @@ function Ui(i, e, t, r) {
5788
5813
  );
5789
5814
  }
5790
5815
  }
5791
- function zi(i, e, t) {
5816
+ function Ki(i, e, t) {
5792
5817
  for (const [r, s] of Object.entries(e)) {
5793
5818
  const n = i[r];
5794
5819
  if (n && n !== s)
@@ -5798,11 +5823,11 @@ function zi(i, e, t) {
5798
5823
  i[r] = s;
5799
5824
  }
5800
5825
  }
5801
- function Ki(i, e, t) {
5826
+ function ki(i, e, t) {
5802
5827
  for (const [r, s] of Object.entries(e)) {
5803
5828
  if (r in i) {
5804
5829
  const n = i[r];
5805
- if (!ki(n, s))
5830
+ if (!Hi(n, s))
5806
5831
  throw new Error(
5807
5832
  `Conflicting content for BlueId '${r}' across repositories (from ${t})`
5808
5833
  );
@@ -5811,35 +5836,35 @@ function Ki(i, e, t) {
5811
5836
  i[r] = s;
5812
5837
  }
5813
5838
  }
5814
- function ki(i, e) {
5839
+ function Hi(i, e) {
5815
5840
  if (i === e) return !0;
5816
5841
  if (i === null || e === null || typeof i != "object" || typeof e != "object") return !1;
5817
- const t = yt.canonicalize(i), r = yt.canonicalize(e);
5842
+ const t = gt.canonicalize(i), r = gt.canonicalize(e);
5818
5843
  return t !== void 0 && t === r;
5819
5844
  }
5820
- const Hi = /* @__PURE__ */ new Set([
5845
+ const Yi = /* @__PURE__ */ new Set([
5821
5846
  "__proto__",
5822
5847
  "constructor",
5823
5848
  "prototype"
5824
5849
  ]);
5825
- function Ht(i) {
5850
+ function Yt(i) {
5826
5851
  const e = i.at(0), t = i.at(-1);
5827
5852
  return !e || !t ? i : e === "'" && t === "'" || e === '"' && t === '"' ? i.slice(1, -1) : i;
5828
5853
  }
5829
- function Yi(i, e) {
5854
+ function Wi(i, e) {
5830
5855
  const t = i.indexOf("=");
5831
5856
  if (t === -1)
5832
5857
  throw ve(e, `Missing '=' in segment '${i.trim()}'`);
5833
5858
  if (i.indexOf("=", t + 1) !== -1)
5834
5859
  throw ve(e, `Unexpected '=' in segment '${i.trim()}'`);
5835
- const r = Ht(i.slice(0, t).trim()), s = Ht(i.slice(t + 1).trim());
5860
+ const r = Yt(i.slice(0, t).trim()), s = Yt(i.slice(t + 1).trim());
5836
5861
  if (!r)
5837
5862
  throw ve(e, "Repository name is empty");
5838
5863
  if (!s)
5839
5864
  throw ve(e, `Repository BlueId is empty for '${r}'`);
5840
5865
  return { name: r, value: s };
5841
5866
  }
5842
- function Wi(i) {
5867
+ function Gi(i) {
5843
5868
  if (i.trim().length === 0)
5844
5869
  return /* @__PURE__ */ Object.create(null);
5845
5870
  const e = /* @__PURE__ */ Object.create(null);
@@ -5847,21 +5872,21 @@ function Wi(i) {
5847
5872
  const r = t.trim();
5848
5873
  if (!r)
5849
5874
  throw ve(i, "Empty repository segment");
5850
- const { name: s, value: n } = Yi(r, i);
5851
- Ji(s, i), e[s] = n;
5875
+ const { name: s, value: n } = Wi(r, i);
5876
+ Zi(s, i), e[s] = n;
5852
5877
  }
5853
5878
  return e;
5854
5879
  }
5855
- function Gi(i) {
5856
- return typeof i == "string" ? Wi(i) : i;
5880
+ function Ji(i) {
5881
+ return typeof i == "string" ? Gi(i) : i;
5857
5882
  }
5858
5883
  function ve(i, e) {
5859
5884
  return new he(
5860
- _.INVALID_BLUE_CONTEXT_REPOSITORIES,
5885
+ j.INVALID_BLUE_CONTEXT_REPOSITORIES,
5861
5886
  `Invalid BlueContext repositories value: ${e}`,
5862
5887
  [
5863
5888
  {
5864
- code: _.INVALID_BLUE_CONTEXT_REPOSITORIES,
5889
+ code: j.INVALID_BLUE_CONTEXT_REPOSITORIES,
5865
5890
  message: e,
5866
5891
  locationPath: [],
5867
5892
  context: {
@@ -5872,31 +5897,31 @@ function ve(i, e) {
5872
5897
  ]
5873
5898
  );
5874
5899
  }
5875
- function Ji(i, e) {
5876
- if (Hi.has(i))
5900
+ function Zi(i, e) {
5901
+ if (Yi.has(i))
5877
5902
  throw ve(e, `Forbidden repository name '${i}'`);
5878
5903
  }
5879
- function Zi(i, e) {
5904
+ function Xi(i, e) {
5880
5905
  const t = i.filter((s) => s.repositoryVersionIndex > e).sort((s, n) => n.repositoryVersionIndex - s.repositoryVersionIndex), r = [];
5881
5906
  for (const s of t) {
5882
5907
  const n = [...s.attributesAdded].sort(
5883
- (o, l) => Yt(l) - Yt(o)
5908
+ (o, l) => Wt(l) - Wt(o)
5884
5909
  );
5885
5910
  r.push(...n);
5886
5911
  }
5887
5912
  return r;
5888
5913
  }
5889
- function Yt(i) {
5890
- return ir(i).length;
5914
+ function Wt(i) {
5915
+ return nr(i).length;
5891
5916
  }
5892
- const Xi = /* @__PURE__ */ new Set([...Et]), C = {
5917
+ const qi = /* @__PURE__ */ new Set([...Nt]), N = {
5893
5918
  core: "core",
5894
5919
  noRuntime: "no-runtime",
5895
5920
  noTargetContext: "no-target-context",
5896
5921
  representable: "representable",
5897
5922
  unrepresentable: "unrepresentable"
5898
5923
  };
5899
- class qi {
5924
+ class Qi {
5900
5925
  registry;
5901
5926
  targetRepoVersionIndexes;
5902
5927
  fallbackToCurrentInlineDefinitions;
@@ -5905,7 +5930,7 @@ class qi {
5905
5930
  this.registry = e.registry, this.targetRepoVersionIndexes = e.targetRepoVersionIndexes, this.fallbackToCurrentInlineDefinitions = e.fallbackToCurrentInlineDefinitions;
5906
5931
  }
5907
5932
  transform(e) {
5908
- return D.transform(
5933
+ return L.transform(
5909
5934
  e,
5910
5935
  (t) => this.transformNode(t)
5911
5936
  );
@@ -5935,11 +5960,11 @@ class qi {
5935
5960
  return;
5936
5961
  const n = this.resolveType(s);
5937
5962
  switch (n.kind) {
5938
- case C.core: {
5963
+ case N.core: {
5939
5964
  r.setBlueId(n.blueId);
5940
5965
  return;
5941
5966
  }
5942
- case C.representable: {
5967
+ case N.representable: {
5943
5968
  this.applyDropPointers([r], n.dropPointers, {
5944
5969
  rootIsSchema: !0
5945
5970
  }), this.applyDropPointers(
@@ -5948,34 +5973,34 @@ class qi {
5948
5973
  ), r.setBlueId(n.targetBlueId);
5949
5974
  return;
5950
5975
  }
5951
- case C.noRuntime:
5952
- case C.noTargetContext:
5953
- case C.unrepresentable: {
5976
+ case N.noRuntime:
5977
+ case N.noTargetContext:
5978
+ case N.unrepresentable: {
5954
5979
  if (this.fallbackToCurrentInlineDefinitions) {
5955
5980
  this.inlineDefinition(e, t.setter, s);
5956
5981
  return;
5957
5982
  }
5958
- throw n.kind === C.unrepresentable ? n.error : this.unrepresentableError(
5983
+ throw n.kind === N.unrepresentable ? n.error : this.unrepresentableError(
5959
5984
  s,
5960
- n.kind === C.noTargetContext ? `Repository '${n.runtimeName}' not provided in BlueContext.` : "Type does not belong to any declared repository.",
5961
- n.kind === C.noTargetContext ? n.runtime : void 0,
5962
- n.kind === C.noTargetContext ? n.meta : void 0,
5985
+ n.kind === N.noTargetContext ? `Repository '${n.runtimeName}' not provided in BlueContext.` : "Type does not belong to any declared repository.",
5986
+ n.kind === N.noTargetContext ? n.runtime : void 0,
5987
+ n.kind === N.noTargetContext ? n.meta : void 0,
5963
5988
  void 0,
5964
- n.kind === C.noTargetContext ? n.typeAlias : void 0
5989
+ n.kind === N.noTargetContext ? n.typeAlias : void 0
5965
5990
  );
5966
5991
  }
5967
5992
  }
5968
5993
  }
5969
5994
  resolveType(e) {
5970
5995
  if (fe.includes(e))
5971
- return { kind: C.core, blueId: e };
5996
+ return { kind: N.core, blueId: e };
5972
5997
  const t = this.registry.toCurrentBlueId(e), r = this.registry.getTypeAlias(t), s = this.registry.findRuntimeByBlueId(t);
5973
5998
  if (!s || !s.typeMeta)
5974
- return { kind: C.noRuntime };
5999
+ return { kind: N.noRuntime };
5975
6000
  const n = this.targetRepoVersionIndexes[s.runtime.name];
5976
6001
  if (n === void 0)
5977
6002
  return {
5978
- kind: C.noTargetContext,
6003
+ kind: N.noTargetContext,
5979
6004
  currentBlueId: t,
5980
6005
  runtimeName: s.runtime.name,
5981
6006
  runtime: s.runtime,
@@ -5983,11 +6008,11 @@ class qi {
5983
6008
  typeAlias: r
5984
6009
  };
5985
6010
  const o = s.typeMeta;
5986
- if (o.status === bt) {
6011
+ if (o.status === Et) {
5987
6012
  const h = s.runtime.repositoryVersions.length - 1;
5988
6013
  if (n !== h)
5989
6014
  return {
5990
- kind: C.unrepresentable,
6015
+ kind: N.unrepresentable,
5991
6016
  currentBlueId: t,
5992
6017
  error: this.unrepresentableError(
5993
6018
  t,
@@ -6000,7 +6025,7 @@ class qi {
6000
6025
  };
6001
6026
  const f = o.versions?.[0];
6002
6027
  return {
6003
- kind: C.representable,
6028
+ kind: N.representable,
6004
6029
  currentBlueId: t,
6005
6030
  targetBlueId: f?.typeBlueId ?? t,
6006
6031
  dropPointers: []
@@ -6009,7 +6034,7 @@ class qi {
6009
6034
  const l = o.versions || [];
6010
6035
  if (l.length === 0)
6011
6036
  return {
6012
- kind: C.unrepresentable,
6037
+ kind: N.unrepresentable,
6013
6038
  currentBlueId: t,
6014
6039
  error: this.unrepresentableError(
6015
6040
  t,
@@ -6023,7 +6048,7 @@ class qi {
6023
6048
  const a = l[0].repositoryVersionIndex;
6024
6049
  if (n < a)
6025
6050
  return {
6026
- kind: C.unrepresentable,
6051
+ kind: N.unrepresentable,
6027
6052
  currentBlueId: t,
6028
6053
  error: this.unrepresentableError(
6029
6054
  t,
@@ -6039,14 +6064,14 @@ class qi {
6039
6064
  h.repositoryVersionIndex <= n && (c = h.typeBlueId);
6040
6065
  const d = o.status === Ce ? this.getDropPointers(o, n) : [];
6041
6066
  return {
6042
- kind: C.representable,
6067
+ kind: N.representable,
6043
6068
  currentBlueId: t,
6044
6069
  targetBlueId: c,
6045
6070
  dropPointers: d
6046
6071
  };
6047
6072
  }
6048
6073
  getDropPointers(e, t) {
6049
- return e.status !== Ce ? [] : Zi(e.versions, t);
6074
+ return e.status !== Ce ? [] : Xi(e.versions, t);
6050
6075
  }
6051
6076
  applyDropPointers(e, t, r = {}) {
6052
6077
  if (e.length === 0 || t.length === 0)
@@ -6059,13 +6084,13 @@ class qi {
6059
6084
  getDictionaryValueTargets(e) {
6060
6085
  const t = e.getProperties();
6061
6086
  return t ? Object.entries(t).filter(
6062
- ([r, s]) => s instanceof u && !Xi.has(r)
6087
+ ([r, s]) => s instanceof u && !qi.has(r)
6063
6088
  ).map(([, r]) => r) : [];
6064
6089
  }
6065
6090
  deletePropertyAtPointer(e, t, r) {
6066
6091
  let s;
6067
6092
  try {
6068
- s = ir(t);
6093
+ s = nr(t);
6069
6094
  } catch {
6070
6095
  throw this.invalidPointerError(t);
6071
6096
  }
@@ -6132,7 +6157,7 @@ class qi {
6132
6157
  try {
6133
6158
  const o = m.deserialize(n);
6134
6159
  o.setBlueId(void 0);
6135
- const l = D.transform(
6160
+ const l = L.transform(
6136
6161
  o,
6137
6162
  (a) => this.transformNode(a)
6138
6163
  );
@@ -6143,9 +6168,9 @@ class qi {
6143
6168
  }
6144
6169
  invalidPointerError(e) {
6145
6170
  const t = `Invalid attributesAdded pointer '${e}'.`;
6146
- return new he(_.INVALID_REPOSITORY_POINTER, t, [
6171
+ return new he(j.INVALID_REPOSITORY_POINTER, t, [
6147
6172
  {
6148
- code: _.INVALID_REPOSITORY_POINTER,
6173
+ code: j.INVALID_REPOSITORY_POINTER,
6149
6174
  message: t,
6150
6175
  locationPath: [],
6151
6176
  context: { pointer: e }
@@ -6164,38 +6189,38 @@ class qi {
6164
6189
  d !== void 0 && (a.typeIntroducedInRepoBlueId = r?.repositoryVersions[d]);
6165
6190
  }
6166
6191
  const c = {
6167
- code: _.REPO_UNREPRESENTABLE_IN_TARGET_VERSION,
6192
+ code: j.REPO_UNREPRESENTABLE_IN_TARGET_VERSION,
6168
6193
  message: t,
6169
6194
  locationPath: [K],
6170
6195
  context: a
6171
6196
  };
6172
6197
  return new he(
6173
- _.REPO_UNREPRESENTABLE_IN_TARGET_VERSION,
6198
+ j.REPO_UNREPRESENTABLE_IN_TARGET_VERSION,
6174
6199
  t,
6175
6200
  [c]
6176
6201
  );
6177
6202
  }
6178
6203
  }
6179
- function Bt(i, e) {
6180
- return e ? D.transform(i, (t) => (Fe(
6204
+ function Pt(i, e) {
6205
+ return e ? L.transform(i, (t) => (Ue(
6181
6206
  () => t.getType(),
6182
6207
  (r) => t.setType(r),
6183
6208
  e
6184
- ), Fe(
6209
+ ), Ue(
6185
6210
  () => t.getItemType(),
6186
6211
  (r) => t.setItemType(r),
6187
6212
  e
6188
- ), Fe(
6213
+ ), Ue(
6189
6214
  () => t.getKeyType(),
6190
6215
  (r) => t.setKeyType(r),
6191
6216
  e
6192
- ), Fe(
6217
+ ), Ue(
6193
6218
  () => t.getValueType(),
6194
6219
  (r) => t.setValueType(r),
6195
6220
  e
6196
6221
  ), t)) : i;
6197
6222
  }
6198
- function Fe(i, e, t) {
6223
+ function Ue(i, e, t) {
6199
6224
  const r = i();
6200
6225
  if (!r || r.isInlineValue())
6201
6226
  return;
@@ -6205,7 +6230,7 @@ function Fe(i, e, t) {
6205
6230
  const n = t.toCurrentBlueId(s);
6206
6231
  n !== s && e(r.clone().setBlueId(n));
6207
6232
  }
6208
- class Qi {
6233
+ class en {
6209
6234
  registry;
6210
6235
  blueIdMapper;
6211
6236
  constructor(e) {
@@ -6215,8 +6240,8 @@ class Qi {
6215
6240
  const r = this.computeTargetRepoVersionIndexes(t);
6216
6241
  if (Object.keys(r).length === 0)
6217
6242
  return e;
6218
- const s = Bt(e, this.blueIdMapper);
6219
- return new qi({
6243
+ const s = Pt(e, this.blueIdMapper);
6244
+ return new Qi({
6220
6245
  registry: this.registry,
6221
6246
  targetRepoVersionIndexes: r,
6222
6247
  fallbackToCurrentInlineDefinitions: t.fallbackToCurrentInlineDefinitions !== !1
@@ -6226,7 +6251,7 @@ class Qi {
6226
6251
  const t = {};
6227
6252
  if (!e?.repositories)
6228
6253
  return t;
6229
- const r = typeof e.repositories == "string" ? Gi(e.repositories) : e.repositories;
6254
+ const r = typeof e.repositories == "string" ? Ji(e.repositories) : e.repositories;
6230
6255
  for (const [s, n] of Object.entries(r)) {
6231
6256
  const o = this.registry.findRuntimeByName(s);
6232
6257
  if (!o)
@@ -6244,7 +6269,7 @@ class Qi {
6244
6269
  }
6245
6270
  unknownRepoBlueIdError(e, t, r) {
6246
6271
  const s = `Unknown RepoBlueId '${t}' for repository '${e}'.`, n = {
6247
- code: _.REPO_UNKNOWN_REPO_BLUE_ID,
6272
+ code: j.REPO_UNKNOWN_REPO_BLUE_ID,
6248
6273
  message: s,
6249
6274
  locationPath: [],
6250
6275
  context: {
@@ -6253,7 +6278,7 @@ class Qi {
6253
6278
  serverRepoBlueId: r
6254
6279
  }
6255
6280
  };
6256
- return new he(_.REPO_UNKNOWN_REPO_BLUE_ID, s, [
6281
+ return new he(j.REPO_UNKNOWN_REPO_BLUE_ID, s, [
6257
6282
  n
6258
6283
  ]);
6259
6284
  }
@@ -6264,7 +6289,7 @@ class xe {
6264
6289
  blueDirectivePreprocessor;
6265
6290
  urlContentFetcher;
6266
6291
  blueIdsMappingGenerator;
6267
- globalLimits = j;
6292
+ globalLimits = F;
6268
6293
  mergingProcessor;
6269
6294
  repositories;
6270
6295
  repositoryRegistry;
@@ -6277,20 +6302,20 @@ class xe {
6277
6302
  repositories: n,
6278
6303
  mergingProcessor: o
6279
6304
  } = e;
6280
- this.repositories = n, this.repositoryRegistry = new Vi(n ?? []), this.blueContextResolver = new Qi({
6305
+ this.repositories = n, this.repositoryRegistry = new Oi(n ?? []), this.blueContextResolver = new en({
6281
6306
  registry: this.repositoryRegistry,
6282
6307
  blueIdMapper: this.repositoryRegistry
6283
6308
  }), this.mergingProcessor = o ?? _e();
6284
- const l = Dt(() => []);
6309
+ const l = xt(() => []);
6285
6310
  this.nodeProvider = this.wrapNodeProviderWithRepositories(
6286
6311
  t || l,
6287
6312
  n
6288
- ), this.typeSchemaResolver = r ?? new Hs([], {
6313
+ ), this.typeSchemaResolver = r ?? new Ys([], {
6289
6314
  nodeProvider: this.nodeProvider
6290
- }), this.typeSchemaResolver?.setNodeProvider(this.nodeProvider), this.urlContentFetcher = new bi(s), this.blueDirectivePreprocessor = new wi(
6315
+ }), this.typeSchemaResolver?.setNodeProvider(this.nodeProvider), this.urlContentFetcher = new Ei(s), this.blueDirectivePreprocessor = new Si(
6291
6316
  void 0,
6292
6317
  this.urlContentFetcher
6293
- ), this.blueIdsMappingGenerator = new Mr(), this.blueIdsMappingGenerator.registerBlueIds(
6318
+ ), this.blueIdsMappingGenerator = new Dr(), this.blueIdsMappingGenerator.registerBlueIds(
6294
6319
  this.repositoryRegistry.getAliases()
6295
6320
  );
6296
6321
  const a = this.repositoryRegistry.getRuntimes().flatMap((c) => c.schemas);
@@ -6313,16 +6338,16 @@ class xe {
6313
6338
  */
6314
6339
  nodeToYaml(e, t = "official") {
6315
6340
  const r = this.normalizeNodeToJsonOptions(t), s = r.blueContext ? this.blueContextResolver.transform(e, r.blueContext) : e;
6316
- return vi.get(s, {
6341
+ return Ti.get(s, {
6317
6342
  strategy: r.format
6318
6343
  });
6319
6344
  }
6320
6345
  nodeToSchemaOutput(e, t) {
6321
- return new Ii(this.typeSchemaResolver, {
6346
+ return new vi(this.typeSchemaResolver, {
6322
6347
  calculateBlueId: (s) => this.calculateBlueIdSync(s)
6323
6348
  }).convert(e, t);
6324
6349
  }
6325
- resolve(e, t = j) {
6350
+ resolve(e, t = F) {
6326
6351
  const r = this.combineWithGlobalLimits(t), n = new de(this.mergingProcessor, this.nodeProvider).resolve(e, r);
6327
6352
  if (!(r instanceof H)) {
6328
6353
  const o = this.getExactReferenceBlueId(e);
@@ -6352,7 +6377,7 @@ class xe {
6352
6377
  * Produces a minimal overlay that re-resolves to the same semantic BlueId.
6353
6378
  */
6354
6379
  minimize(e) {
6355
- return new He({
6380
+ return new Ye({
6356
6381
  nodeProvider: this.nodeProvider,
6357
6382
  mergingProcessor: this.mergingProcessor
6358
6383
  }).minimize(e);
@@ -6365,18 +6390,18 @@ class xe {
6365
6390
  * repository-backed definitions currently known to this {@link Blue} instance.
6366
6391
  */
6367
6392
  restoreInlineTypes(e) {
6368
- return new Ai({
6393
+ return new Vi({
6369
6394
  nodeProvider: this.nodeProvider,
6370
6395
  blueIdsMappingGenerator: this.blueIdsMappingGenerator
6371
6396
  }).restore(e);
6372
6397
  }
6373
6398
  extend(e, t) {
6374
6399
  const r = this.combineWithGlobalLimits(t);
6375
- new Lt(this.nodeProvider).extend(e, r);
6400
+ new $t(this.nodeProvider).extend(e, r);
6376
6401
  }
6377
6402
  jsonValueToNode(e) {
6378
6403
  const t = this.preprocess(m.deserialize(e));
6379
- return Bt(
6404
+ return Pt(
6380
6405
  t,
6381
6406
  this.repositoryRegistry
6382
6407
  );
@@ -6385,7 +6410,7 @@ class xe {
6385
6410
  const t = await this.preprocessAsync(
6386
6411
  m.deserialize(e)
6387
6412
  );
6388
- return Bt(
6413
+ return Pt(
6389
6414
  t,
6390
6415
  this.repositoryRegistry
6391
6416
  );
@@ -6407,7 +6432,7 @@ class xe {
6407
6432
  ) : this.jsonValueToNodeAsync(e);
6408
6433
  calculateBlueId = async (e) => {
6409
6434
  const t = await this.prepareForBlueIdCalculation(e);
6410
- return new He({
6435
+ return new Ye({
6411
6436
  nodeProvider: this.nodeProvider,
6412
6437
  mergingProcessor: this.mergingProcessor
6413
6438
  }).calculateBlueId(t);
@@ -6415,7 +6440,7 @@ class xe {
6415
6440
  prepareForBlueIdCalculationSync = (e) => e instanceof u || Array.isArray(e) && e.every((t) => t instanceof u) ? e : Array.isArray(e) ? e.map((t) => this.jsonValueToNode(t)) : this.jsonValueToNode(e);
6416
6441
  calculateBlueIdSync(e) {
6417
6442
  const t = this.prepareForBlueIdCalculationSync(e);
6418
- return new He({
6443
+ return new Ye({
6419
6444
  nodeProvider: this.nodeProvider,
6420
6445
  mergingProcessor: this.mergingProcessor
6421
6446
  }).calculateBlueIdSync(t);
@@ -6453,7 +6478,7 @@ class xe {
6453
6478
  }).preprocessWithDefaultBlue(t);
6454
6479
  }
6455
6480
  transform(e, t) {
6456
- return D.transform(e, t);
6481
+ return L.transform(e, t);
6457
6482
  }
6458
6483
  getNodeProvider() {
6459
6484
  return this.nodeProvider;
@@ -6465,7 +6490,7 @@ class xe {
6465
6490
  ), this.typeSchemaResolver?.setNodeProvider(this.nodeProvider), this;
6466
6491
  }
6467
6492
  getExactReferenceBlueId(e) {
6468
- if (!E.hasBlueIdOnly(e))
6493
+ if (!b.hasBlueIdOnly(e))
6469
6494
  return;
6470
6495
  const t = e.getReferenceBlueId();
6471
6496
  return t !== void 0 && Be.isPotentialBlueId(t) ? t : void 0;
@@ -6610,7 +6635,7 @@ class xe {
6610
6635
  if (!s)
6611
6636
  return !1;
6612
6637
  const n = new u().setReferenceBlueId(r);
6613
- return N(s, n, this.nodeProvider);
6638
+ return E(s, n, this.nodeProvider);
6614
6639
  }
6615
6640
  /**
6616
6641
  * Checks if a BlueNode matches a BlueNode type.
@@ -6620,7 +6645,7 @@ class xe {
6620
6645
  * @returns true if the node matches the type, false otherwise.
6621
6646
  */
6622
6647
  isTypeOfNode(e, t) {
6623
- return new Ys(this).matchesType(e, t, this.globalLimits);
6648
+ return new Ws(this).matchesType(e, t, this.globalLimits);
6624
6649
  }
6625
6650
  /**
6626
6651
  * Sets the global limits for this Blue instance.
@@ -6630,7 +6655,7 @@ class xe {
6630
6655
  * @returns This instance for chaining
6631
6656
  */
6632
6657
  setGlobalLimits(e) {
6633
- return this.globalLimits = e ?? j, this;
6658
+ return this.globalLimits = e ?? F, this;
6634
6659
  }
6635
6660
  /**
6636
6661
  * Gets the current global limits for this Blue instance.
@@ -6651,8 +6676,8 @@ class xe {
6651
6676
  }
6652
6677
  wrapNodeProviderWithRepositories(e, t) {
6653
6678
  return t && t.length > 0 ? Me.wrap(
6654
- new Pr([
6655
- new $t(t, {
6679
+ new wr([
6680
+ new _t(t, {
6656
6681
  mergingProcessor: this.mergingProcessor
6657
6682
  }),
6658
6683
  e
@@ -6660,38 +6685,38 @@ class xe {
6660
6685
  ) : Me.wrap(e);
6661
6686
  }
6662
6687
  combineWithGlobalLimits(e) {
6663
- return this.globalLimits == j ? e : e == j ? this.globalLimits : nt.of(this.globalLimits, e);
6688
+ return this.globalLimits == F ? e : e == F ? this.globalLimits : ot.of(this.globalLimits, e);
6664
6689
  }
6665
6690
  }
6666
- const en = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6691
+ const tn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6667
6692
  __proto__: null,
6668
6693
  Blue: xe
6669
- }, Symbol.toStringTag, { value: "Module" })), pt = /* @__PURE__ */ new WeakMap(), tn = 10;
6670
- function Kn(i, e = {}) {
6694
+ }, Symbol.toStringTag, { value: "Module" })), ft = /* @__PURE__ */ new WeakMap(), rn = 10;
6695
+ function kn(i, e = {}) {
6671
6696
  const t = e.mergingProcessor === void 0;
6672
6697
  if (t) {
6673
- const a = pt.get(i);
6698
+ const a = ft.get(i);
6674
6699
  if (a)
6675
6700
  return a;
6676
6701
  }
6677
- const r = xr(i);
6702
+ const r = Lr(i);
6678
6703
  if (r.length === 0)
6679
- return t && pt.set(i, i), i;
6680
- const s = Lr(i), n = e.mergingProcessor ?? _e();
6704
+ return t && ft.set(i, i), i;
6705
+ const s = $r(i), n = e.mergingProcessor ?? _e();
6681
6706
  let o = Object.fromEntries(
6682
6707
  r.map(({ oldBlueId: a }) => [a, a])
6683
6708
  );
6684
- const l = rn(r.length);
6709
+ const l = sn(r.length);
6685
6710
  for (let a = 0; a < l; a++) {
6686
- const c = on(
6711
+ const c = ln(
6687
6712
  r,
6688
6713
  s,
6689
6714
  o,
6690
6715
  n
6691
6716
  );
6692
- if (un(o, c)) {
6693
- const d = ln(i, o);
6694
- return t && pt.set(i, d), d;
6717
+ if (dn(o, c)) {
6718
+ const d = an(i, o);
6719
+ return t && ft.set(i, d), d;
6695
6720
  }
6696
6721
  o = c;
6697
6722
  }
@@ -6699,12 +6724,12 @@ function Kn(i, e = {}) {
6699
6724
  `Repository semantic reindexing did not converge after ${l} passes for ${r.length} entries.`
6700
6725
  );
6701
6726
  }
6702
- function kn(i, e = {}) {
6703
- const t = xr(i);
6727
+ function Hn(i, e = {}) {
6728
+ const t = Lr(i);
6704
6729
  if (t.length === 0)
6705
6730
  return;
6706
- const r = Lr(i), s = e.mergingProcessor ?? _e(), n = new xe({
6707
- nodeProvider: sn(t, r),
6731
+ const r = $r(i), s = e.mergingProcessor ?? _e(), n = new xe({
6732
+ nodeProvider: nn(t, r),
6708
6733
  mergingProcessor: s
6709
6734
  });
6710
6735
  n.registerBlueIds(r);
@@ -6712,11 +6737,11 @@ function kn(i, e = {}) {
6712
6737
  const c = Array.isArray(a) ? a.map((h) => n.jsonValueToNode(h)) : n.jsonValueToNode(a), d = n.calculateBlueIdSync(c);
6713
6738
  if (d !== l)
6714
6739
  throw new he(
6715
- _.BLUE_ID_MISMATCH,
6740
+ j.BLUE_ID_MISMATCH,
6716
6741
  `Repository content key '${l}' does not match semantic BlueId '${d}'.`,
6717
6742
  [
6718
6743
  {
6719
- code: _.BLUE_ID_MISMATCH,
6744
+ code: j.BLUE_ID_MISMATCH,
6720
6745
  message: "Repository contents must be keyed by the semantic BlueId of their minimal storage form.",
6721
6746
  context: { packageName: o, providedBlueId: l, computedBlueId: d }
6722
6747
  }
@@ -6724,33 +6749,33 @@ function kn(i, e = {}) {
6724
6749
  );
6725
6750
  }
6726
6751
  }
6727
- function rn(i) {
6728
- return Math.max(tn, i + 1);
6752
+ function sn(i) {
6753
+ return Math.max(rn, i + 1);
6729
6754
  }
6730
- function xr(i) {
6755
+ function Lr(i) {
6731
6756
  const e = [];
6732
6757
  for (const [t, r] of Object.entries(i.packages))
6733
6758
  for (const [s, n] of Object.entries(r.contents))
6734
6759
  e.push({ packageName: t, oldBlueId: s, content: n });
6735
6760
  return e;
6736
6761
  }
6737
- function Lr(i) {
6762
+ function $r(i) {
6738
6763
  const e = {};
6739
6764
  for (const t of Object.values(i.packages))
6740
6765
  for (const [r, s] of Object.entries(t.aliases))
6741
6766
  e[r] = s;
6742
6767
  return e;
6743
6768
  }
6744
- function sn(i, e) {
6769
+ function nn(i, e) {
6745
6770
  const t = new Map(
6746
6771
  i.map(({ oldBlueId: n, content: o }) => [n, o])
6747
6772
  ), r = new Map(Object.entries(e)), s = new xe();
6748
6773
  return {
6749
6774
  fetchByBlueId(n) {
6750
- const o = nn(n, r);
6775
+ const o = on(n, r);
6751
6776
  if (o === void 0)
6752
6777
  return [];
6753
- const { baseBlueId: l, suffix: a } = Pt(o), c = t.get(l);
6778
+ const { baseBlueId: l, suffix: a } = wt(o), c = t.get(l);
6754
6779
  if (c === void 0)
6755
6780
  return [];
6756
6781
  const d = Array.isArray(c), h = Te.resolveThisReferences(
@@ -6773,31 +6798,31 @@ function sn(i, e) {
6773
6798
  }
6774
6799
  };
6775
6800
  }
6776
- function nn(i, e) {
6801
+ function on(i, e) {
6777
6802
  const t = e.get(i);
6778
6803
  if (t !== void 0)
6779
6804
  return t;
6780
- const { baseBlueId: r, suffix: s } = Pt(i);
6805
+ const { baseBlueId: r, suffix: s } = wt(i);
6781
6806
  if (s === void 0)
6782
6807
  return i;
6783
6808
  const n = e.get(r);
6784
6809
  if (n === void 0)
6785
6810
  return i;
6786
- if (Pt(n).suffix === void 0)
6811
+ if (wt(n).suffix === void 0)
6787
6812
  return `${n}${s}`;
6788
6813
  }
6789
- function Pt(i) {
6814
+ function wt(i) {
6790
6815
  const e = i.indexOf("#");
6791
6816
  return e === -1 ? { baseBlueId: i } : {
6792
6817
  baseBlueId: i.slice(0, e),
6793
6818
  suffix: i.slice(e)
6794
6819
  };
6795
6820
  }
6796
- function on(i, e, t, r) {
6821
+ function ln(i, e, t, r) {
6797
6822
  const s = new Map(
6798
6823
  i.map(({ oldBlueId: c, content: d }) => [
6799
6824
  c,
6800
- Qe(d, t)
6825
+ et(d, t)
6801
6826
  ])
6802
6827
  ), n = /* @__PURE__ */ new Map();
6803
6828
  for (const { oldBlueId: c } of i)
@@ -6826,7 +6851,7 @@ function on(i, e, t, r) {
6826
6851
  nodeProvider: l,
6827
6852
  mergingProcessor: r
6828
6853
  });
6829
- return a.registerBlueIds($r(e, t)), Object.fromEntries(
6854
+ return a.registerBlueIds(_r(e, t)), Object.fromEntries(
6830
6855
  i.map(({ packageName: c, oldBlueId: d }) => {
6831
6856
  const h = s.get(d);
6832
6857
  if (h === void 0)
@@ -6843,32 +6868,32 @@ function on(i, e, t, r) {
6843
6868
  })
6844
6869
  );
6845
6870
  }
6846
- function ln(i, e) {
6871
+ function an(i, e) {
6847
6872
  return {
6848
6873
  name: i.name,
6849
6874
  repositoryVersions: i.repositoryVersions,
6850
6875
  packages: Object.fromEntries(
6851
6876
  Object.entries(i.packages).map(([t, r]) => [
6852
6877
  t,
6853
- an(r, e)
6878
+ cn(r, e)
6854
6879
  ])
6855
6880
  )
6856
6881
  };
6857
6882
  }
6858
- function an(i, e) {
6883
+ function cn(i, e) {
6859
6884
  return {
6860
6885
  name: i.name,
6861
- aliases: $r(i.aliases, e),
6886
+ aliases: _r(i.aliases, e),
6862
6887
  typesMeta: Object.fromEntries(
6863
6888
  Object.entries(i.typesMeta).map(([t, r]) => [
6864
6889
  e[t] ?? t,
6865
- cn(r, e)
6890
+ un(r, e)
6866
6891
  ])
6867
6892
  ),
6868
6893
  contents: Object.fromEntries(
6869
6894
  Object.entries(i.contents).map(([t, r]) => [
6870
6895
  e[t] ?? t,
6871
- Qe(r, e)
6896
+ et(r, e)
6872
6897
  ])
6873
6898
  ),
6874
6899
  schemas: Object.fromEntries(
@@ -6876,42 +6901,42 @@ function an(i, e) {
6876
6901
  const s = e[t] ?? t;
6877
6902
  return [
6878
6903
  s,
6879
- xs(s)(r)
6904
+ Ls(s)(r)
6880
6905
  ];
6881
6906
  })
6882
6907
  )
6883
6908
  };
6884
6909
  }
6885
- function cn(i, e) {
6910
+ function un(i, e) {
6886
6911
  return {
6887
6912
  ...i,
6888
6913
  versions: i.versions.map((t) => ({
6889
6914
  ...t,
6890
- typeBlueId: _t(t.typeBlueId, e)
6915
+ typeBlueId: jt(t.typeBlueId, e)
6891
6916
  }))
6892
6917
  };
6893
6918
  }
6894
- function un(i, e) {
6919
+ function dn(i, e) {
6895
6920
  const t = Object.keys(i);
6896
6921
  return t.length !== Object.keys(e).length ? !1 : t.every((r) => i[r] === e[r]);
6897
6922
  }
6898
- function $r(i, e) {
6923
+ function _r(i, e) {
6899
6924
  return Object.fromEntries(
6900
6925
  Object.entries(i).map(([t, r]) => [
6901
6926
  t,
6902
- _t(r, e)
6927
+ jt(r, e)
6903
6928
  ])
6904
6929
  );
6905
6930
  }
6906
- function Qe(i, e) {
6907
- return Array.isArray(i) ? i.map((t) => Qe(t, e)) : i && typeof i == "object" ? Object.fromEntries(
6931
+ function et(i, e) {
6932
+ return Array.isArray(i) ? i.map((t) => et(t, e)) : i && typeof i == "object" ? Object.fromEntries(
6908
6933
  Object.entries(i).map(([t, r]) => [
6909
6934
  t,
6910
- t === "blueId" && typeof r == "string" ? _t(r, e) : Qe(r, e)
6935
+ t === "blueId" && typeof r == "string" ? jt(r, e) : et(r, e)
6911
6936
  ])
6912
6937
  ) : i;
6913
6938
  }
6914
- function _t(i, e) {
6939
+ function jt(i, e) {
6915
6940
  const t = e[i];
6916
6941
  if (t !== void 0)
6917
6942
  return t;
@@ -6921,7 +6946,7 @@ function _t(i, e) {
6921
6946
  const [, s, n] = r;
6922
6947
  return `${e[s] ?? s}${n}`;
6923
6948
  }
6924
- class Hn extends Dr {
6949
+ class Yn extends xr {
6925
6950
  blueIdToContentMap = /* @__PURE__ */ new Map();
6926
6951
  blueIdToMultipleDocumentsMap = /* @__PURE__ */ new Map();
6927
6952
  preprocessor;
@@ -6929,12 +6954,12 @@ class Hn extends Dr {
6929
6954
  constructor(e = []) {
6930
6955
  super();
6931
6956
  const t = new De({ nodeProvider: this });
6932
- this.preprocessor = (r) => t.preprocessWithDefaultBlue(r), this.storageService = new ni({
6957
+ this.preprocessor = (r) => t.preprocessWithDefaultBlue(r), this.storageService = new oi({
6933
6958
  nodeProvider: this
6934
6959
  }), e.forEach((r) => this.processNode(r));
6935
6960
  }
6936
6961
  processNode(e) {
6937
- E.hasItemsOnly(e) ? this.processNodeWithItems(e) : this.processSingleNode(e);
6962
+ b.hasItemsOnly(e) ? this.processNodeWithItems(e) : this.processSingleNode(e);
6938
6963
  }
6939
6964
  processSingleNode(e) {
6940
6965
  const t = Te.parseAndCalculateBlueIdForNode(
@@ -7063,72 +7088,72 @@ class Hn extends Dr {
7063
7088
  }
7064
7089
  }
7065
7090
  export {
7066
- ls as Base58Sha256Provider,
7067
- Hn as BasicNodeProvider,
7091
+ as as Base58Sha256Provider,
7092
+ Yn as BasicNodeProvider,
7068
7093
  xe as Blue,
7069
7094
  M as BlueIdCalculator,
7070
- Vn as BlueIdToCid,
7095
+ On as BlueIdToCid,
7071
7096
  u as BlueNode,
7072
7097
  k as BlueNodeTypeSchema,
7073
- yt as JsonCanonicalizer,
7074
- Mt as Limits,
7098
+ gt as JsonCanonicalizer,
7099
+ Dt as Limits,
7075
7100
  de as Merger,
7076
- $n as MergingProcessors,
7077
- Ws as NodeResolver,
7078
- E as Nodes,
7079
- Bn as Properties,
7101
+ _n as MergingProcessors,
7102
+ Gs as NodeResolver,
7103
+ b as Nodes,
7104
+ Pn as Properties,
7080
7105
  J as ResolvedBlueNode,
7081
- He as SemanticIdentityService,
7082
- Hs as TypeSchemaResolver,
7083
- On as applyBlueNodePatch,
7084
- st as baseBlueObjectSchema,
7085
- Mn as blueDescriptionField,
7086
- Dn as blueIdField,
7087
- Pn as blueIdSchema,
7088
- xn as blueNameField,
7089
- Ln as blueNodeField,
7090
- bn as blueObjectBooleanValueSchema,
7091
- Sn as blueObjectNumberValueSchema,
7106
+ Ye as SemanticIdentityService,
7107
+ Ys as TypeSchemaResolver,
7108
+ Mn as applyBlueNodePatch,
7109
+ it as baseBlueObjectSchema,
7110
+ Dn as blueDescriptionField,
7111
+ xn as blueIdField,
7112
+ wn as blueIdSchema,
7113
+ Ln as blueNameField,
7114
+ $n as blueNodeField,
7115
+ En as blueObjectBooleanValueSchema,
7116
+ bn as blueObjectNumberValueSchema,
7092
7117
  Ve as blueObjectSchema,
7093
- En as blueObjectStringListItemsSchema,
7094
- wn as blueObjectStringValueSchema,
7095
- Dt as createNodeProvider,
7096
- Kt as enrichWithBlueId,
7097
- bs as getBlueDescriptionAnnotation,
7098
- Cs as getBlueIdAnnotation,
7099
- As as getBlueNameAnnotation,
7100
- Os as getBlueNodeAnnotation,
7101
- _n as getBlueObjectItems,
7102
- Fn as getBlueObjectProperties,
7103
- Un as getBlueObjectTypeLabel,
7104
- jn as getBlueObjectValue,
7105
- Ds as getTypeBlueIdAnnotation,
7106
- Xr as hasBlueObjectBlueIdDefined,
7107
- qr as hasBlueObjectItemsDefined,
7108
- Cn as hasBlueObjectNameDefined,
7109
- Qr as hasBlueObjectTypeDefined,
7110
- es as hasBlueObjectValueDefined,
7111
- ft as isBigDecimalNumber,
7118
+ Nn as blueObjectStringListItemsSchema,
7119
+ Sn as blueObjectStringValueSchema,
7120
+ xt as createNodeProvider,
7121
+ kt as enrichWithBlueId,
7122
+ Es as getBlueDescriptionAnnotation,
7123
+ Rs as getBlueIdAnnotation,
7124
+ Vs as getBlueNameAnnotation,
7125
+ Ms as getBlueNodeAnnotation,
7126
+ jn as getBlueObjectItems,
7127
+ Un as getBlueObjectProperties,
7128
+ zn as getBlueObjectTypeLabel,
7129
+ Fn as getBlueObjectValue,
7130
+ xs as getTypeBlueIdAnnotation,
7131
+ qr as hasBlueObjectBlueIdDefined,
7132
+ Qr as hasBlueObjectItemsDefined,
7133
+ Rn as hasBlueObjectNameDefined,
7134
+ es as hasBlueObjectTypeDefined,
7135
+ ts as hasBlueObjectValueDefined,
7136
+ yt as isBigDecimalNumber,
7112
7137
  oe as isBigIntegerNumber,
7113
- R as isBigNumber,
7114
- vr as isBlueNodeSchema,
7115
- Nn as isBlueObject,
7116
- Ti as isBlueObjectResolved,
7117
- Rn as isGivenBlueObjectTypeSchema,
7118
- pr as isJsonBlueArray,
7119
- hr as isJsonBlueObject,
7120
- An as isJsonBlueValue,
7121
- Ye as isUrl,
7122
- Je as jsonBlueValueSchema,
7123
- zn as normalizeToBlueObject,
7124
- Kn as reindexRepositoryForSemanticStorage,
7125
- kt as resolveBlueObjectItems,
7126
- kn as validateRepositorySemanticStorage,
7127
- Ss as withBlueDescription,
7128
- Ns as withBlueId,
7129
- Rs as withBlueName,
7130
- Vs as withBlueNode,
7131
- xs as withTypeBlueId,
7132
- qs as yamlBlueDump,
7138
+ C as isBigNumber,
7139
+ Tr as isBlueNodeSchema,
7140
+ Cn as isBlueObject,
7141
+ Bi as isBlueObjectResolved,
7142
+ An as isGivenBlueObjectTypeSchema,
7143
+ fr as isJsonBlueArray,
7144
+ pr as isJsonBlueObject,
7145
+ Vn as isJsonBlueValue,
7146
+ We as isUrl,
7147
+ Ze as jsonBlueValueSchema,
7148
+ Kn as normalizeToBlueObject,
7149
+ kn as reindexRepositoryForSemanticStorage,
7150
+ Ht as resolveBlueObjectItems,
7151
+ Hn as validateRepositorySemanticStorage,
7152
+ bs as withBlueDescription,
7153
+ Cs as withBlueId,
7154
+ As as withBlueName,
7155
+ Os as withBlueNode,
7156
+ Ls as withTypeBlueId,
7157
+ Qs as yamlBlueDump,
7133
7158
  ae as yamlBlueParse
7134
7159
  };