@dcupl/bundle 2.0.0-beta.3 → 2.0.0-beta.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -521,7 +521,7 @@
521
521
  g$1.Request = Request;
522
522
  g$1.Response = Response;
523
523
  }
524
- var St$1 = typeof global == "object" && global && global.Object === Object && global, ur$1 = typeof self == "object" && self && self.Object === Object && self, C$3 = St$1 || ur$1 || Function("return this")(), A = C$3.Symbol, Tt$1 = Object.prototype, cr$1 = Tt$1.hasOwnProperty, fr$1 = Tt$1.toString, G$5 = A ? A.toStringTag : void 0;
524
+ var St$1 = typeof global == "object" && global && global.Object === Object && global, ur$1 = typeof self == "object" && self && self.Object === Object && self, C$2 = St$1 || ur$1 || Function("return this")(), A$1 = C$2.Symbol, Tt$1 = Object.prototype, cr$1 = Tt$1.hasOwnProperty, fr$1 = Tt$1.toString, G$5 = A$1 ? A$1.toStringTag : void 0;
525
525
  function lr$1(r) {
526
526
  var e = cr$1.call(r, G$5), t = r[G$5];
527
527
  try {
@@ -536,7 +536,7 @@
536
536
  function pr$1(r) {
537
537
  return hr$1.call(r);
538
538
  }
539
- var gr$1 = "[object Null]", yr$1 = "[object Undefined]", Le$2 = A ? A.toStringTag : void 0;
539
+ var gr$1 = "[object Null]", yr$1 = "[object Undefined]", Le$2 = A$1 ? A$1.toStringTag : void 0;
540
540
  function j$2(r) {
541
541
  return r == null ? r === void 0 ? yr$1 : gr$1 : Le$2 && Le$2 in Object(r) ? lr$1(r) : pr$1(r);
542
542
  }
@@ -544,21 +544,21 @@
544
544
  return r != null && typeof r == "object";
545
545
  }
546
546
  var mr$1 = "[object Symbol]";
547
- function P$1(r) {
547
+ function P$2(r) {
548
548
  return typeof r == "symbol" || $$2(r) && j$2(r) == mr$1;
549
549
  }
550
- function B$2(r, e) {
550
+ function B$1(r, e) {
551
551
  for (var t = -1, n = r == null ? 0 : r.length, s = Array(n); ++t < n; )
552
552
  s[t] = e(r[t], t, r);
553
553
  return s;
554
554
  }
555
- var v$1 = Array.isArray, Ge$3 = A ? A.prototype : void 0, ke$2 = Ge$3 ? Ge$3.toString : void 0;
555
+ var v$1 = Array.isArray, Ge$3 = A$1 ? A$1.prototype : void 0, ke$2 = Ge$3 ? Ge$3.toString : void 0;
556
556
  function ue$1(r) {
557
557
  if (typeof r == "string")
558
558
  return r;
559
559
  if (v$1(r))
560
- return B$2(r, ue$1) + "";
561
- if (P$1(r))
560
+ return B$1(r, ue$1) + "";
561
+ if (P$2(r))
562
562
  return ke$2 ? ke$2.call(r) : "";
563
563
  var e = r + "";
564
564
  return e == "0" && 1 / r == -1 / 0 ? "-0" : e;
@@ -581,7 +581,7 @@
581
581
  function _r$1(r) {
582
582
  if (typeof r == "number")
583
583
  return r;
584
- if (P$1(r))
584
+ if (P$2(r))
585
585
  return Be$2;
586
586
  if (E$3(r)) {
587
587
  var e = typeof r.valueOf == "function" ? r.valueOf() : r;
@@ -617,7 +617,7 @@
617
617
  var e = j$2(r);
618
618
  return e == Dr$1 || e == Ir$1 || e == Mr$1 || e == Er$1;
619
619
  }
620
- var pe = C$3["__core-js_shared__"], Ue$2 = (function() {
620
+ var pe = C$2["__core-js_shared__"], Ue$2 = (function() {
621
621
  var r = /[^.]+$/.exec(pe && pe.keys && pe.keys.IE_PROTO || "");
622
622
  return r ? "Symbol(src)_1." + r : "";
623
623
  })();
@@ -654,7 +654,7 @@
654
654
  var t = Br$1(r, e);
655
655
  return kr$1(t) ? t : void 0;
656
656
  }
657
- var ve$2 = q$2(C$3, "WeakMap"), He$2 = Object.create, zr$1 = /* @__PURE__ */ (function() {
657
+ var ve$2 = q$2(C$2, "WeakMap"), He$2 = Object.create, zr$1 = /* @__PURE__ */ (function() {
658
658
  function r() {
659
659
  }
660
660
  return function(e) {
@@ -792,22 +792,22 @@
792
792
  return n;
793
793
  }
794
794
  var mn$1 = "[object Arguments]";
795
- function Je$2(r) {
795
+ function Je$3(r) {
796
796
  return $$2(r) && j$2(r) == mn$1;
797
797
  }
798
- var Mt$1 = Object.prototype, bn$1 = Mt$1.hasOwnProperty, vn$1 = Mt$1.propertyIsEnumerable, Ee$2 = Je$2(/* @__PURE__ */ (function() {
798
+ var Mt$1 = Object.prototype, bn$1 = Mt$1.hasOwnProperty, vn$1 = Mt$1.propertyIsEnumerable, Ee$2 = Je$3(/* @__PURE__ */ (function() {
799
799
  return arguments;
800
- })()) ? Je$2 : function(r) {
800
+ })()) ? Je$3 : function(r) {
801
801
  return $$2(r) && bn$1.call(r, "callee") && !vn$1.call(r, "callee");
802
802
  };
803
803
  function wn$1() {
804
804
  return false;
805
805
  }
806
- var Dt$1 = typeof exports == "object" && exports && !exports.nodeType && exports, Ze$2 = Dt$1 && typeof module == "object" && module && !module.nodeType && module, An$1 = Ze$2 && Ze$2.exports === Dt$1, Ve$3 = An$1 ? C$3.Buffer : void 0, xn$1 = Ve$3 ? Ve$3.isBuffer : void 0, oe$1 = xn$1 || wn$1, Sn$1 = "[object Arguments]", Tn$1 = "[object Array]", On$1 = "[object Boolean]", _n$1 = "[object Date]", $n$1 = "[object Error]", Cn$1 = "[object Function]", Mn$1 = "[object Map]", Dn$1 = "[object Number]", In$1 = "[object Object]", En$1 = "[object RegExp]", Qn$1 = "[object Set]", jn$1 = "[object String]", Nn$1 = "[object WeakMap]", qn$1 = "[object ArrayBuffer]", Kn$1 = "[object DataView]", Pn$1 = "[object Float32Array]", Rn$1 = "[object Float64Array]", Fn$1 = "[object Int8Array]", Ln$1 = "[object Int16Array]", Gn$1 = "[object Int32Array]", kn$1 = "[object Uint8Array]", Bn$1 = "[object Uint8ClampedArray]", zn$1 = "[object Uint16Array]", Un$1 = "[object Uint32Array]", y$2 = {};
807
- y$2[Pn$1] = y$2[Rn$1] = y$2[Fn$1] = y$2[Ln$1] = y$2[Gn$1] = y$2[kn$1] = y$2[Bn$1] = y$2[zn$1] = y$2[Un$1] = true;
808
- y$2[Sn$1] = y$2[Tn$1] = y$2[qn$1] = y$2[On$1] = y$2[Kn$1] = y$2[_n$1] = y$2[$n$1] = y$2[Cn$1] = y$2[Mn$1] = y$2[Dn$1] = y$2[In$1] = y$2[En$1] = y$2[Qn$1] = y$2[jn$1] = y$2[Nn$1] = false;
806
+ var Dt$1 = typeof exports == "object" && exports && !exports.nodeType && exports, Ze$2 = Dt$1 && typeof module == "object" && module && !module.nodeType && module, An$1 = Ze$2 && Ze$2.exports === Dt$1, Ve$2 = An$1 ? C$2.Buffer : void 0, xn$1 = Ve$2 ? Ve$2.isBuffer : void 0, oe$1 = xn$1 || wn$1, Sn$1 = "[object Arguments]", Tn$1 = "[object Array]", On$1 = "[object Boolean]", _n$1 = "[object Date]", $n$1 = "[object Error]", Cn$1 = "[object Function]", Mn$1 = "[object Map]", Dn$1 = "[object Number]", In$1 = "[object Object]", En$1 = "[object RegExp]", Qn$1 = "[object Set]", jn$1 = "[object String]", Nn$1 = "[object WeakMap]", qn$1 = "[object ArrayBuffer]", Kn$1 = "[object DataView]", Pn$1 = "[object Float32Array]", Rn$1 = "[object Float64Array]", Fn$1 = "[object Int8Array]", Ln$1 = "[object Int16Array]", Gn$1 = "[object Int32Array]", kn$1 = "[object Uint8Array]", Bn$1 = "[object Uint8ClampedArray]", zn$1 = "[object Uint16Array]", Un$1 = "[object Uint32Array]", y$1 = {};
807
+ y$1[Pn$1] = y$1[Rn$1] = y$1[Fn$1] = y$1[Ln$1] = y$1[Gn$1] = y$1[kn$1] = y$1[Bn$1] = y$1[zn$1] = y$1[Un$1] = true;
808
+ y$1[Sn$1] = y$1[Tn$1] = y$1[qn$1] = y$1[On$1] = y$1[Kn$1] = y$1[_n$1] = y$1[$n$1] = y$1[Cn$1] = y$1[Mn$1] = y$1[Dn$1] = y$1[In$1] = y$1[En$1] = y$1[Qn$1] = y$1[jn$1] = y$1[Nn$1] = false;
809
809
  function Hn$1(r) {
810
- return $$2(r) && Ie$2(r.length) && !!y$2[j$2(r)];
810
+ return $$2(r) && Ie$2(r.length) && !!y$1[j$2(r)];
811
811
  }
812
812
  function V$1(r) {
813
813
  return function(e) {
@@ -853,7 +853,7 @@
853
853
  if (v$1(r))
854
854
  return false;
855
855
  var t = typeof r;
856
- return t == "number" || t == "symbol" || t == "boolean" || r == null || P$1(r) ? true : rs$1.test(r) || !ts$1.test(r) || e != null && r in Object(e);
856
+ return t == "number" || t == "symbol" || t == "boolean" || r == null || P$2(r) ? true : rs$1.test(r) || !ts$1.test(r) || e != null && r in Object(e);
857
857
  }
858
858
  var U$3 = q$2(Object, "create");
859
859
  function ns$1() {
@@ -882,18 +882,18 @@
882
882
  var t = this.__data__;
883
883
  return this.size += this.has(r) ? 0 : 1, t[r] = U$3 && e === void 0 ? ds$1 : e, this;
884
884
  }
885
- function Q$2(r) {
885
+ function Q$3(r) {
886
886
  var e = -1, t = r == null ? 0 : r.length;
887
887
  for (this.clear(); ++e < t; ) {
888
888
  var n = r[e];
889
889
  this.set(n[0], n[1]);
890
890
  }
891
891
  }
892
- Q$2.prototype.clear = ns$1;
893
- Q$2.prototype.delete = ss$1;
894
- Q$2.prototype.get = us$1;
895
- Q$2.prototype.has = ls$1;
896
- Q$2.prototype.set = hs$1;
892
+ Q$3.prototype.clear = ns$1;
893
+ Q$3.prototype.delete = ss$1;
894
+ Q$3.prototype.get = us$1;
895
+ Q$3.prototype.has = ls$1;
896
+ Q$3.prototype.set = hs$1;
897
897
  function ps$1() {
898
898
  this.__data__ = [], this.size = 0;
899
899
  }
@@ -934,12 +934,12 @@
934
934
  M$2.prototype.get = bs$1;
935
935
  M$2.prototype.has = vs$1;
936
936
  M$2.prototype.set = ws$1;
937
- var H$2 = q$2(C$3, "Map");
937
+ var H$2 = q$2(C$2, "Map");
938
938
  function As$1() {
939
939
  this.size = 0, this.__data__ = {
940
- hash: new Q$2(),
940
+ hash: new Q$3(),
941
941
  map: new (H$2 || M$2)(),
942
- string: new Q$2()
942
+ string: new Q$3()
943
943
  };
944
944
  }
945
945
  function xs$1(r) {
@@ -1010,7 +1010,7 @@
1010
1010
  return v$1(r) ? r : Qe$2(r, e) ? [r] : Es$1(Ne$2(r));
1011
1011
  }
1012
1012
  function he$1(r) {
1013
- if (typeof r == "string" || P$1(r))
1013
+ if (typeof r == "string" || P$2(r))
1014
1014
  return r;
1015
1015
  var e = r + "";
1016
1016
  return e == "0" && 1 / r == -1 / 0 ? "-0" : e;
@@ -1030,7 +1030,7 @@
1030
1030
  r[s + t] = e[t];
1031
1031
  return r;
1032
1032
  }
1033
- var Ye$2 = A ? A.isConcatSpreadable : void 0;
1033
+ var Ye$2 = A$1 ? A$1.isConcatSpreadable : void 0;
1034
1034
  function Qs$1(r) {
1035
1035
  return v$1(r) || Ee$2(r) || !!(Ye$2 && r && r[Ye$2]);
1036
1036
  }
@@ -1082,7 +1082,7 @@
1082
1082
  _$1.prototype.get = Hs$1;
1083
1083
  _$1.prototype.has = Ws$1;
1084
1084
  _$1.prototype.set = Zs$1;
1085
- var Pt$1 = typeof exports == "object" && exports && !exports.nodeType && exports, et$2 = Pt$1 && typeof module == "object" && module && !module.nodeType && module, Vs$1 = et$2 && et$2.exports === Pt$1, tt$2 = Vs$1 ? C$3.Buffer : void 0, rt$2 = tt$2 ? tt$2.allocUnsafe : void 0;
1085
+ var Pt$1 = typeof exports == "object" && exports && !exports.nodeType && exports, et$2 = Pt$1 && typeof module == "object" && module && !module.nodeType && module, Vs$1 = et$2 && et$2.exports === Pt$1, tt$2 = Vs$1 ? C$2.Buffer : void 0, rt$2 = tt$2 ? tt$2.allocUnsafe : void 0;
1086
1086
  function Xs$1(r, e) {
1087
1087
  if (e)
1088
1088
  return r.slice();
@@ -1111,7 +1111,7 @@
1111
1111
  function we$2(r) {
1112
1112
  return si(r, fe$1, ni);
1113
1113
  }
1114
- var Ae$2 = q$2(C$3, "DataView"), xe$2 = q$2(C$3, "Promise"), Se$2 = q$2(C$3, "Set"), st$1 = "[object Map]", ii = "[object Object]", it$1 = "[object Promise]", ot$1 = "[object Set]", at = "[object WeakMap]", ut = "[object DataView]", oi = N$3(Ae$2), ai = N$3(H$2), ui = N$3(xe$2), ci = N$3(Se$2), fi = N$3(ve$2), w = j$2;
1114
+ var Ae$2 = q$2(C$2, "DataView"), xe$2 = q$2(C$2, "Promise"), Se$2 = q$2(C$2, "Set"), st$1 = "[object Map]", ii = "[object Object]", it$1 = "[object Promise]", ot$1 = "[object Set]", at = "[object WeakMap]", ut = "[object DataView]", oi = N$3(Ae$2), ai = N$3(H$2), ui = N$3(xe$2), ci = N$3(Se$2), fi = N$3(ve$2), w = j$2;
1115
1115
  (Ae$2 && w(new Ae$2(new ArrayBuffer(1))) != ut || H$2 && w(new H$2()) != st$1 || xe$2 && w(xe$2.resolve()) != it$1 || Se$2 && w(new Se$2()) != ot$1 || ve$2 && w(new ve$2()) != at) && (w = function(r) {
1116
1116
  var e = j$2(r), t = e == ii ? r.constructor : void 0, n = t ? N$3(t) : "";
1117
1117
  if (n)
@@ -1134,7 +1134,7 @@
1134
1134
  var e = r.length, t = new r.constructor(e);
1135
1135
  return e && typeof r[0] == "string" && di.call(r, "index") && (t.index = r.index, t.input = r.input), t;
1136
1136
  }
1137
- var ae = C$3.Uint8Array;
1137
+ var ae = C$2.Uint8Array;
1138
1138
  function Ke$2(r) {
1139
1139
  var e = new r.constructor(r.byteLength);
1140
1140
  return new ae(e).set(new ae(r)), e;
@@ -1148,7 +1148,7 @@
1148
1148
  var e = new r.constructor(r.source, gi.exec(r));
1149
1149
  return e.lastIndex = r.lastIndex, e;
1150
1150
  }
1151
- var ct = A ? A.prototype : void 0, ft$1 = ct ? ct.valueOf : void 0;
1151
+ var ct = A$1 ? A$1.prototype : void 0, ft$1 = ct ? ct.valueOf : void 0;
1152
1152
  function mi(r) {
1153
1153
  return ft$1 ? Object(ft$1.call(r)) : {};
1154
1154
  }
@@ -1312,7 +1312,7 @@
1312
1312
  t[++e] = n;
1313
1313
  }), t;
1314
1314
  }
1315
- var $o = 1, Co = 2, Mo = "[object Boolean]", Do = "[object Date]", Io = "[object Error]", Eo = "[object Map]", Qo = "[object Number]", jo = "[object RegExp]", No = "[object Set]", qo = "[object String]", Ko = "[object Symbol]", Po = "[object ArrayBuffer]", Ro = "[object DataView]", ht$1 = A ? A.prototype : void 0, ye$1 = ht$1 ? ht$1.valueOf : void 0;
1315
+ var $o = 1, Co = 2, Mo = "[object Boolean]", Do = "[object Date]", Io = "[object Error]", Eo = "[object Map]", Qo = "[object Number]", jo = "[object RegExp]", No = "[object Set]", qo = "[object String]", Ko = "[object Symbol]", Po = "[object ArrayBuffer]", Ro = "[object DataView]", ht$1 = A$1 ? A$1.prototype : void 0, ye$1 = ht$1 ? ht$1.valueOf : void 0;
1316
1316
  function Fo(r, e, t, n, s, i, o) {
1317
1317
  switch (t) {
1318
1318
  case Ro:
@@ -1522,7 +1522,7 @@
1522
1522
  var s = -1, i = sn$1, o = true, a = r.length, u = [], c = e.length;
1523
1523
  if (!a)
1524
1524
  return u;
1525
- t && (e = B$2(e, V$1(t))), e.length >= ca && (i = Gt$1, o = false, e = new J$2(e));
1525
+ t && (e = B$1(e, V$1(t))), e.length >= ca && (i = Gt$1, o = false, e = new J$2(e));
1526
1526
  e:
1527
1527
  for (; ++s < a; ) {
1528
1528
  var f = r[s], l = t == null ? f : t(f);
@@ -1580,14 +1580,14 @@
1580
1580
  };
1581
1581
  }
1582
1582
  var ya = Math.max;
1583
- function Te$2(r, e, t) {
1583
+ function Te$3(r, e, t) {
1584
1584
  var n = r == null ? 0 : r.length;
1585
1585
  if (!n)
1586
1586
  return -1;
1587
1587
  var s = t == null ? 0 : Me$2(t);
1588
1588
  return s < 0 && (s = ya(n + s, 0)), _t$1(r, Y$2(e), s);
1589
1589
  }
1590
- var ma = ga(Te$2);
1590
+ var ma = ga(Te$3);
1591
1591
  function ba(r, e) {
1592
1592
  var t = -1, n = F(r) ? Array(r.length) : [];
1593
1593
  return Jt$1(r, function(s, i, o) {
@@ -1617,7 +1617,7 @@
1617
1617
  }
1618
1618
  function Sa(r, e) {
1619
1619
  if (r !== e) {
1620
- var t = r !== void 0, n = r === null, s = r === r, i = P$1(r), o = e !== void 0, a = e === null, u = e === e, c = P$1(e);
1620
+ var t = r !== void 0, n = r === null, s = r === r, i = P$2(r), o = e !== void 0, a = e === null, u = e === e, c = P$2(e);
1621
1621
  if (!a && !c && !i && r > e || i && o && u && !a && !c || n && o && u || !t && u || !s)
1622
1622
  return 1;
1623
1623
  if (!n && !i && !c && r < e || c && t && s && !n && !i || a && t && s || !o && s || !u)
@@ -1638,15 +1638,15 @@
1638
1638
  return r.index - e.index;
1639
1639
  }
1640
1640
  function Oa(r, e, t) {
1641
- e.length ? e = B$2(e, function(i) {
1641
+ e.length ? e = B$1(e, function(i) {
1642
1642
  return v$1(i) ? function(o) {
1643
1643
  return qe$2(o, i.length === 1 ? i[0] : i);
1644
1644
  } : i;
1645
1645
  }) : e = [ce$1];
1646
1646
  var n = -1;
1647
- e = B$2(e, V$1(Y$2));
1647
+ e = B$1(e, V$1(Y$2));
1648
1648
  var s = ba(r, function(i, o, a) {
1649
- var u = B$2(e, function(c) {
1649
+ var u = B$1(e, function(c) {
1650
1650
  return c(i);
1651
1651
  });
1652
1652
  return { criteria: u, index: ++n, value: i };
@@ -1655,7 +1655,7 @@
1655
1655
  return Ta(i, o, t);
1656
1656
  });
1657
1657
  }
1658
- function gu(r, e, t, n) {
1658
+ function yu(r, e, t, n) {
1659
1659
  return r == null ? [] : (v$1(e) || (e = e == null ? [] : [e]), t = t, v$1(t) || (t = t == null ? [] : [t]), Oa(r, e, t));
1660
1660
  }
1661
1661
  var _a = Wt$1("length"), Vt$1 = "\\ud800-\\udfff", $a = "\\u0300-\\u036f", Ca = "\\ufe20-\\ufe2f", Ma = "\\u20d0-\\u20ff", Da = $a + Ca + Ma, Ia = "\\ufe0e\\ufe0f", Ea = "[" + Vt$1 + "]", Oe$2 = "[" + Da + "]", _e$2 = "\\ud83c[\\udffb-\\udfff]", Qa = "(?:" + Oe$2 + "|" + _e$2 + ")", Xt$1 = "[^" + Vt$1 + "]", Yt$1 = "(?:\\ud83c[\\udde6-\\uddff]){2}", er$1 = "[\\ud800-\\udbff][\\udc00-\\udfff]", ja = "\\u200d", tr$1 = Qa + "?", rr$1 = "[" + Ia + "]?", Na = "(?:" + ja + "(?:" + [Xt$1, Yt$1, er$1].join("|") + ")" + rr$1 + tr$1 + ")*", qa = rr$1 + tr$1 + Na, Ka = "(?:" + [Xt$1 + Oe$2 + "?", Oe$2, Yt$1, er$1, Ea].join("|") + ")", vt$1 = RegExp(_e$2 + "(?=" + _e$2 + ")|" + Ka + qa, "g");
@@ -1721,7 +1721,7 @@
1721
1721
  return performance.getEntriesByType(r);
1722
1722
  }
1723
1723
  };
1724
- class yu {
1724
+ class mu {
1725
1725
  data;
1726
1726
  enabled = false;
1727
1727
  constructor() {
@@ -2088,7 +2088,7 @@
2088
2088
  return { addedNodes: s, removedNodes: i, addedEdges: u, removedEdges: c, kindChanges: f };
2089
2089
  }
2090
2090
  };
2091
- class mu {
2091
+ class bu {
2092
2092
  graph;
2093
2093
  nodeIndex;
2094
2094
  constructor() {
@@ -2480,7 +2480,7 @@
2480
2480
  }
2481
2481
  };
2482
2482
  const Ua = new b$2();
2483
- class bu {
2483
+ class vu {
2484
2484
  constructor(e) {
2485
2485
  this.enabled = e, this.cache = /* @__PURE__ */ new Map(), this.cacheDependencies = /* @__PURE__ */ new Map();
2486
2486
  }
@@ -2625,7 +2625,7 @@
2625
2625
  for (let n = 0; n < r; n++) e += t.charAt(Math.floor(Math.random() * t.length));
2626
2626
  return e;
2627
2627
  }
2628
- class vu {
2628
+ class wu {
2629
2629
  key;
2630
2630
  parentCd;
2631
2631
  dcuplInitOptions;
@@ -2684,7 +2684,7 @@
2684
2684
  } catch {
2685
2685
  return i;
2686
2686
  }
2687
- }, wu = (r) => (e, t, n) => {
2687
+ }, Au = (r) => (e, t, n) => {
2688
2688
  const s = n.value;
2689
2689
  return n.value = function(...i) {
2690
2690
  const o = Z$1.now(), a = this.cdRef, u = sr$1(r, true);
@@ -2700,7 +2700,7 @@
2700
2700
  return u.method = t, u.args = i, l && typeof l == "object" && "then" in l ? l.then((d) => At$1(this, a, u, o, c, d)) : At$1(this, a, u, o, c, l);
2701
2701
  }, n;
2702
2702
  };
2703
- function Au(r, e, t, n) {
2703
+ function xu(r, e, t, n) {
2704
2704
  t.max || (t.max = 20);
2705
2705
  const s = [], i = t.transform ? n.transformValue(t.value, t.transform) : t.value;
2706
2706
  for (const [o, a] of e.entries()) {
@@ -2827,7 +2827,7 @@
2827
2827
  );
2828
2828
  return Ja(e) ? e.getFullYear() !== r.year || e.getMonth() !== r.month - 1 || e.getDate() !== r.day ? /* @__PURE__ */ new Date(NaN) : e : /* @__PURE__ */ new Date(NaN);
2829
2829
  }
2830
- function xu(r, e, t) {
2830
+ function Su(r, e, t) {
2831
2831
  if (r = r.trim(), e === "t") {
2832
2832
  const a = Number(r);
2833
2833
  return isNaN(a) ? /* @__PURE__ */ new Date(NaN) : new Date(a * 1e3);
@@ -3398,7 +3398,7 @@
3398
3398
  (s) => this.isQueryGroup(s) && s.groupKey === e.attribute
3399
3399
  );
3400
3400
  if (n > -1) {
3401
- const s = t.queries[n], i = Te$2(s.queries, e);
3401
+ const s = t.queries[n], i = Te$3(s.queries, e);
3402
3402
  i > -1 && s.queries.splice(i, 1), s.queries.length === 0 && t.queries.splice(n, 1);
3403
3403
  }
3404
3404
  } else if (this.isQueryGroup(e)) {
@@ -3411,7 +3411,7 @@
3411
3411
  else {
3412
3412
  const s = t.queries[n];
3413
3413
  for (const i of e.queries) {
3414
- const o = Te$2(s.queries, i);
3414
+ const o = Te$3(s.queries, i);
3415
3415
  o > -1 && s.queries.splice(o, 1);
3416
3416
  }
3417
3417
  s.queries.length === 0 && t.queries.splice(n, 1);
@@ -3927,7 +3927,7 @@
3927
3927
  }
3928
3928
  };
3929
3929
  const Ce$2 = new ir$1();
3930
- function Su(r, e, t, n, s, i, o) {
3930
+ function Tu(r, e, t, n, s, i, o) {
3931
3931
  const a = [], u = Ce$2.removeQuery({ groupKey: s }, I$1(n)), c = o.queryData(r, u, false, i), f = e ? [...e.keys()] : [], l = new Set(f), d = i.get(s);
3932
3932
  if (!t.excludeUnresolved)
3933
3933
  for (const h2 of d.keys())
@@ -4321,30 +4321,32 @@
4321
4321
  }
4322
4322
  return o;
4323
4323
  }
4324
- const Tu = (r, e) => {
4325
- const t = [];
4326
- for (const n of r) {
4327
- for (const [s, i] of Object.entries(n)) {
4328
- const o = t.find((u) => u.key === s), a = pu(i);
4329
- if (o)
4330
- o.type !== a && (o.type = "any");
4331
- else {
4332
- const u = {
4333
- key: s,
4334
- type: a
4335
- };
4336
- t.push(u);
4324
+ const du = (r) => r == null || r === "", Ou = (r, e = false) => {
4325
+ const t = typeof e == "boolean" ? { deep: e } : e, n = t.deep ?? (t.sampleSize !== void 0 && t.sampleSize > 1) ? t.sampleSize ?? 1 / 0 : 1, s = t.ignoreEmpty ?? n > 1, i = [], o = Math.min(r.length, n);
4326
+ for (let a = 0; a < o; a++) {
4327
+ const u = r[a];
4328
+ if (u)
4329
+ for (const [c, f] of Object.entries(u)) {
4330
+ if (s && du(f)) continue;
4331
+ const l = gu(f), d = i.find((h2) => h2.key === c);
4332
+ if (d)
4333
+ d.type !== l && (d.type = "any");
4334
+ else {
4335
+ const h2 = {
4336
+ key: c,
4337
+ type: l
4338
+ };
4339
+ i.push(h2);
4340
+ }
4337
4341
  }
4338
- }
4339
- break;
4340
4342
  }
4341
- return t;
4342
- }, du = (r) => Number(r) === r && r % 1 === 0, hu = (r) => Number(r) === r && r % 1 !== 0, pu = (r) => {
4343
+ return i;
4344
+ }, hu = (r) => Number(r) === r && r % 1 === 0, pu = (r) => Number(r) === r && r % 1 !== 0, gu = (r) => {
4343
4345
  switch (typeof r) {
4344
4346
  case "string":
4345
4347
  return "string";
4346
4348
  case "number":
4347
- return du(r) ? "int" : hu(r) ? "float" : "any";
4349
+ return hu(r) ? "int" : pu(r) ? "float" : "any";
4348
4350
  case "boolean":
4349
4351
  return "boolean";
4350
4352
  case "object":
@@ -4353,7 +4355,7 @@
4353
4355
  return "any";
4354
4356
  }
4355
4357
  };
4356
- class Ou {
4358
+ class _u {
4357
4359
  constructor(e, t, n) {
4358
4360
  this.scriptController = e, this.globalItemService = t, this.modelParser = n;
4359
4361
  }
@@ -4593,7 +4595,7 @@
4593
4595
  // }
4594
4596
  // }
4595
4597
  }
4596
- class _u {
4598
+ class $u {
4597
4599
  scripts = /* @__PURE__ */ new Map();
4598
4600
  scriptFunctions = /* @__PURE__ */ new Map();
4599
4601
  constructor() {
@@ -4636,7 +4638,7 @@
4636
4638
  return this.getScriptAsFn(e, s)(t, ...i);
4637
4639
  }
4638
4640
  }
4639
- const $u = (r, e) => r ? (e || (e = {}), r.replace(/\$\{(.*?)\}/g, (t, n) => W$2(e, n.trim(), ""))) : "", Cu = (r) => {
4641
+ const Cu = (r, e) => r ? (e || (e = {}), r.replace(/\$\{(.*?)\}/g, (t, n) => W$2(e, n.trim(), ""))) : "", Mu = (r) => {
4640
4642
  const e = /* @__PURE__ */ new Set();
4641
4643
  return r.replace(/\$\{(.*?)\}/g, (t, n) => (e.add(n.trim()), "")), { variables: Array.from(e).map((t) => ({ name: t })) };
4642
4644
  };
@@ -4645,7 +4647,7 @@
4645
4647
  });
4646
4648
  class z {
4647
4649
  constructor(e, t, r, i, n) {
4648
- this.modelParser = e, this.cdRef = t, this.item = r, this.indicesController = i, this.queryManager = n, this.cacheCtrl = new bu(!!this.cdRef.dcuplInitOptions.performance?.cache?.enabled);
4650
+ this.modelParser = e, this.cdRef = t, this.item = r, this.indicesController = i, this.queryManager = n, this.cacheCtrl = new vu(!!this.cdRef.dcuplInitOptions.performance?.cache?.enabled);
4649
4651
  }
4650
4652
  initialData;
4651
4653
  filteredData;
@@ -4856,7 +4858,7 @@
4856
4858
  }) : s.forEach((g2) => {
4857
4859
  const y2 = e.items?.find((D2) => D2.key === g2.key);
4858
4860
  if (y2) {
4859
- const D2 = c.distinct.find((Q2) => Q2.value === g2.key), v2 = this.getDataByKeys(u, D2.keys), M2 = this.item.getItems(v2, this.model, y2);
4861
+ const D2 = c.distinct.find((F2) => F2.value === g2.key), v2 = this.getDataByKeys(u, D2.keys), M2 = this.item.getItems(v2, this.model, y2);
4860
4862
  g2._items = M2;
4861
4863
  }
4862
4864
  });
@@ -5046,7 +5048,7 @@
5046
5048
  d ? (y2 = L$1(g2, e), y2.length === 0 && (y2 = [void 0])) : y2 = [g2[e]], this.indicesController.fillInverseIndex(e, g2.key, y2), this.indicesController.fillDataMap(e, y2);
5047
5049
  }), n = this.indicesController.getIndex(e), o = this.indicesController.getData(e);
5048
5050
  }
5049
- const f = Su(
5051
+ const f = Tu(
5050
5052
  l,
5051
5053
  o,
5052
5054
  r,
@@ -5192,7 +5194,7 @@
5192
5194
  }, a = i.map((u, f) => (c) => {
5193
5195
  const d = t.sort.order.at(f), h2 = this.getUndefinedValueForSorting(u, d, r);
5194
5196
  return s(c, u, h2);
5195
- }), o = [...t.sort.order].map((u) => u.toLowerCase()), l = gu(n, [...a], o);
5197
+ }), o = [...t.sort.order].map((u) => u.toLowerCase()), l = yu(n, [...a], o);
5196
5198
  return new Map(
5197
5199
  l.map((u) => [u.key, u])
5198
5200
  );
@@ -5283,12 +5285,12 @@
5283
5285
  }), i;
5284
5286
  }
5285
5287
  }
5286
- var U$2 = Object.defineProperty, $$1 = Object.getOwnPropertyDescriptor, C$2 = (A2, e, t, r) => {
5288
+ var U$2 = Object.defineProperty, $$1 = Object.getOwnPropertyDescriptor, C$1 = (A2, e, t, r) => {
5287
5289
  for (var i = $$1(e, t), n = A2.length - 1, s; n >= 0; n--)
5288
5290
  (s = A2[n]) && (i = s(e, t, i) || i);
5289
5291
  return i && U$2(e, t, i), i;
5290
5292
  };
5291
- let p$2 = class p {
5293
+ let p$3 = class p {
5292
5294
  constructor(e, t, r) {
5293
5295
  this.dcuplApi = e, this.cdRef = t, this.indicesController = r, this.itemService = new K(
5294
5296
  this.dcuplApi.modelParser,
@@ -5716,7 +5718,7 @@
5716
5718
  }
5717
5719
  const o = this.filter.indicesController.getOrCreateIndex(e.attribute, a, {
5718
5720
  query: s
5719
- }), l = Au(a, o, e, this.dcuplApi.queryManager);
5721
+ }), l = xu(a, o, e, this.dcuplApi.queryManager);
5720
5722
  return this.filter.cacheCtrl.set("suggestions", t, l), l;
5721
5723
  }
5722
5724
  _getFacets(e) {
@@ -5817,155 +5819,155 @@
5817
5819
  return this.filter.cacheCtrl.set("pivot", t, o), o;
5818
5820
  }
5819
5821
  };
5820
- C$2([
5821
- wu({
5822
+ C$1([
5823
+ Au({
5822
5824
  scope: "list",
5823
5825
  type: "fn_metadata",
5824
5826
  cloneResult: true,
5825
5827
  connectMessage: true,
5826
5828
  connectMessageResult: true
5827
5829
  })
5828
- ], p$2.prototype, "_getMetadata");
5829
- C$2([
5830
- wu({
5830
+ ], p$3.prototype, "_getMetadata");
5831
+ C$1([
5832
+ Au({
5831
5833
  scope: "list",
5832
5834
  type: "filter_many",
5833
5835
  cloneResult: true,
5834
5836
  connectMessage: true,
5835
5837
  connectMessageResult: true
5836
5838
  })
5837
- ], p$2.prototype, "_getFilters");
5838
- C$2([
5839
- wu({
5839
+ ], p$3.prototype, "_getFilters");
5840
+ C$1([
5841
+ Au({
5840
5842
  scope: "list",
5841
5843
  type: "filter_one",
5842
5844
  cloneResult: true,
5843
5845
  connectMessage: true,
5844
5846
  connectMessageResult: true
5845
5847
  })
5846
- ], p$2.prototype, "_getFilter");
5847
- C$2([
5848
- wu({
5848
+ ], p$3.prototype, "_getFilter");
5849
+ C$1([
5850
+ Au({
5849
5851
  scope: "list",
5850
5852
  type: "query_get",
5851
5853
  cloneResult: true
5852
5854
  })
5853
- ], p$2.prototype, "getQuery");
5854
- C$2([
5855
- wu({
5855
+ ], p$3.prototype, "getQuery");
5856
+ C$1([
5857
+ Au({
5856
5858
  scope: "list",
5857
5859
  type: "query_has"
5858
5860
  })
5859
- ], p$2.prototype, "hasGroupOrQueryKey");
5860
- C$2([
5861
- wu({
5861
+ ], p$3.prototype, "hasGroupOrQueryKey");
5862
+ C$1([
5863
+ Au({
5862
5864
  scope: "list",
5863
5865
  type: "query_apply",
5864
5866
  cloneResult: true,
5865
5867
  connectMessage: true,
5866
5868
  connectMessageResult: true
5867
5869
  })
5868
- ], p$2.prototype, "applyQuery");
5869
- C$2([
5870
- wu({
5870
+ ], p$3.prototype, "applyQuery");
5871
+ C$1([
5872
+ Au({
5871
5873
  scope: "list",
5872
5874
  type: "query_apply_options",
5873
5875
  cloneResult: true,
5874
5876
  connectMessage: true,
5875
5877
  connectMessageResult: true
5876
5878
  })
5877
- ], p$2.prototype, "applyOptions");
5878
- C$2([
5879
- wu({
5879
+ ], p$3.prototype, "applyOptions");
5880
+ C$1([
5881
+ Au({
5880
5882
  scope: "list",
5881
5883
  type: "query_remove",
5882
5884
  cloneResult: true,
5883
5885
  connectMessage: true,
5884
5886
  connectMessageResult: true
5885
5887
  })
5886
- ], p$2.prototype, "removeQuery");
5887
- C$2([
5888
- wu({
5888
+ ], p$3.prototype, "removeQuery");
5889
+ C$1([
5890
+ Au({
5889
5891
  scope: "list",
5890
5892
  type: "query_reset",
5891
5893
  cloneResult: true,
5892
5894
  connectMessage: true,
5893
5895
  connectMessageResult: true
5894
5896
  })
5895
- ], p$2.prototype, "resetQuery");
5896
- C$2([
5897
- wu({
5897
+ ], p$3.prototype, "resetQuery");
5898
+ C$1([
5899
+ Au({
5898
5900
  scope: "list",
5899
5901
  type: "query_execute",
5900
5902
  cloneResult: true,
5901
5903
  connectMessage: true,
5902
5904
  connectMessageResult: true
5903
5905
  })
5904
- ], p$2.prototype, "executeQuery");
5905
- C$2([
5906
- wu({
5906
+ ], p$3.prototype, "executeQuery");
5907
+ C$1([
5908
+ Au({
5907
5909
  scope: "list",
5908
5910
  type: "fn_groupBy",
5909
5911
  cloneResult: true,
5910
5912
  connectMessage: true,
5911
5913
  connectMessageResult: true
5912
5914
  })
5913
- ], p$2.prototype, "_getSections");
5914
- C$2([
5915
- wu({
5915
+ ], p$3.prototype, "_getSections");
5916
+ C$1([
5917
+ Au({
5916
5918
  scope: "list",
5917
5919
  type: "query_one",
5918
5920
  cloneResult: true,
5919
5921
  connectMessage: true,
5920
5922
  connectMessageResult: true
5921
5923
  })
5922
- ], p$2.prototype, "_getItem");
5923
- C$2([
5924
- wu({
5924
+ ], p$3.prototype, "_getItem");
5925
+ C$1([
5926
+ Au({
5925
5927
  scope: "list",
5926
5928
  type: "query_many",
5927
5929
  cloneResult: true,
5928
5930
  connectMessage: true,
5929
5931
  connectMessageResult: true
5930
5932
  })
5931
- ], p$2.prototype, "_getManyItems");
5932
- C$2([
5933
- wu({
5933
+ ], p$3.prototype, "_getManyItems");
5934
+ C$1([
5935
+ Au({
5934
5936
  scope: "list",
5935
5937
  type: "fn_suggest",
5936
5938
  cloneResult: true,
5937
5939
  connectMessage: true,
5938
5940
  connectMessageResult: true
5939
5941
  })
5940
- ], p$2.prototype, "_getSuggestions");
5941
- C$2([
5942
- wu({
5942
+ ], p$3.prototype, "_getSuggestions");
5943
+ C$1([
5944
+ Au({
5943
5945
  scope: "list",
5944
5946
  type: "fn_facets",
5945
5947
  cloneResult: true,
5946
5948
  connectMessage: true,
5947
5949
  connectMessageResult: true
5948
5950
  })
5949
- ], p$2.prototype, "_getFacets");
5950
- C$2([
5951
- wu({
5951
+ ], p$3.prototype, "_getFacets");
5952
+ C$1([
5953
+ Au({
5952
5954
  scope: "list",
5953
5955
  type: "fn_aggregate",
5954
5956
  cloneResult: true,
5955
5957
  connectMessage: true,
5956
5958
  connectMessageResult: true
5957
5959
  })
5958
- ], p$2.prototype, "getAggregate");
5959
- C$2([
5960
- wu({
5960
+ ], p$3.prototype, "getAggregate");
5961
+ C$1([
5962
+ Au({
5961
5963
  scope: "list",
5962
5964
  type: "fn_pivot",
5963
5965
  cloneResult: true,
5964
5966
  connectMessage: true,
5965
5967
  connectMessageResult: true
5966
5968
  })
5967
- ], p$2.prototype, "_getPivot");
5968
- let G$4 = class G extends p$2 {
5969
+ ], p$3.prototype, "_getPivot");
5970
+ let G$4 = class G extends p$3 {
5969
5971
  constructor(e, t, r) {
5970
5972
  super(e, t, r), this.dcuplApi = e, this.cdRef = t, this.indicesController = r;
5971
5973
  }
@@ -6024,18 +6026,18 @@
6024
6026
  s == "constructor" && (e || !De.call(d, s)) || t.push(s);
6025
6027
  return t;
6026
6028
  }
6027
- function B$1(d) {
6029
+ function U$1(d) {
6028
6030
  return F(d) ? Vn$1(d, true) : Ce$1(d);
6029
6031
  }
6030
- var Me$1 = "[object Object]", Ee$1 = Function.prototype, Ie$1 = Object.prototype, U$1 = Ee$1.toString, xe$1 = Ie$1.hasOwnProperty, Te$1 = U$1.call(Object);
6031
- function Ge$2(d) {
6032
+ var Me$1 = "[object Object]", Ee$1 = Function.prototype, Ie$1 = Object.prototype, N$2 = Ee$1.toString, xe$1 = Ie$1.hasOwnProperty, Ge$2 = N$2.call(Object);
6033
+ function Te$2(d) {
6032
6034
  if (!$$2(d) || j$2(d) != Me$1)
6033
6035
  return false;
6034
6036
  var e = Ns$1(d);
6035
6037
  if (e === null)
6036
6038
  return true;
6037
6039
  var t = xe$1.call(e, "constructor") && e.constructor;
6038
- return typeof t == "function" && t instanceof t && U$1.call(t) == Te$1;
6040
+ return typeof t == "function" && t instanceof t && N$2.call(t) == Ge$2;
6039
6041
  }
6040
6042
  function Se$1(d, e, t, s) {
6041
6043
  for (var r = -1, i = d == null ? 0 : d.length; ++r < i; ) {
@@ -6055,49 +6057,49 @@
6055
6057
  return r(t, d, Y$2(s), i);
6056
6058
  };
6057
6059
  }
6058
- function T(d, e, t) {
6060
+ function G$3(d, e, t) {
6059
6061
  (t !== void 0 && !De$1(d[e], t) || t === void 0 && !(e in d)) && un$1(d, e, t);
6060
6062
  }
6061
- function G$3(d, e) {
6063
+ function T(d, e) {
6062
6064
  if (!(e === "constructor" && typeof d[e] == "function") && e != "__proto__")
6063
6065
  return d[e];
6064
6066
  }
6065
- function Ke$1(d) {
6066
- return Re$1(d, B$1(d));
6067
+ function Fe$1(d) {
6068
+ return Re$1(d, U$1(d));
6067
6069
  }
6068
- function Fe$2(d, e, t, s, r, i, n) {
6069
- var o = G$3(d, t), a = G$3(e, t), l = n.get(a);
6070
+ function Ke$1(d, e, t, s, r, i, n) {
6071
+ var o = T(d, t), a = T(e, t), l = n.get(a);
6070
6072
  if (l) {
6071
- T(d, t, l);
6073
+ G$3(d, t, l);
6072
6074
  return;
6073
6075
  }
6074
6076
  var c = i ? i(o, a, t + "", d, e, n) : void 0, f = c === void 0;
6075
6077
  if (f) {
6076
- var u = v$1(a), h2 = !u && oe$1(a), p2 = !u && !h2 && Et$1(a);
6077
- c = a, u || h2 || p2 ? v$1(o) ? c = o : me$1(o) ? c = ve$1(o) : h2 ? (f = false, c = Xs$1(a, true)) : p2 ? (f = false, c = bi(a, true)) : c = [] : Ge$2(a) || Ee$2(a) ? (c = o, Ee$2(o) ? c = Ke$1(o) : (!E$3(o) || Ot$1(o)) && (c = Ri(a))) : f = false;
6078
+ var u = v$1(a), h2 = !u && oe$1(a), y2 = !u && !h2 && Et$1(a);
6079
+ c = a, u || h2 || y2 ? v$1(o) ? c = o : me$1(o) ? c = ve$1(o) : h2 ? (f = false, c = Xs$1(a, true)) : y2 ? (f = false, c = bi(a, true)) : c = [] : Te$2(a) || Ee$2(a) ? (c = o, Ee$2(o) ? c = Fe$1(o) : (!E$3(o) || Ot$1(o)) && (c = Ri(a))) : f = false;
6078
6080
  }
6079
- f && (n.set(a, c), r(c, a, s, i, n), n.delete(a)), T(d, t, c);
6081
+ f && (n.set(a, c), r(c, a, s, i, n), n.delete(a)), G$3(d, t, c);
6080
6082
  }
6081
- function N$2(d, e, t, s, r) {
6083
+ function Q$2(d, e, t, s, r) {
6082
6084
  d !== e && oa(e, function(i, n) {
6083
6085
  if (r || (r = new _$1()), E$3(i))
6084
- Fe$2(d, e, n, t, N$2, s, r);
6086
+ Ke$1(d, e, n, t, Q$2, s, r);
6085
6087
  else {
6086
- var o = s ? s(G$3(d, n), i, n + "", d, e, r) : void 0;
6087
- o === void 0 && (o = i), T(d, n, o);
6088
+ var o = s ? s(T(d, n), i, n + "", d, e, r) : void 0;
6089
+ o === void 0 && (o = i), G$3(d, n, o);
6088
6090
  }
6089
- }, B$1);
6091
+ }, U$1);
6090
6092
  }
6091
- var qe$1 = Object.prototype, $e$1 = qe$1.hasOwnProperty, Ve$2 = we$1(function(d, e, t) {
6092
- $e$1.call(d, t) ? d[t].push(e) : un$1(d, t, [e]);
6093
- }), Oe$1 = "[object Boolean]";
6093
+ var qe$1 = Object.prototype, Oe$1 = qe$1.hasOwnProperty, $e$1 = we$1(function(d, e, t) {
6094
+ Oe$1.call(d, t) ? d[t].push(e) : un$1(d, t, [e]);
6095
+ }), Ve$1 = "[object Boolean]";
6094
6096
  function Be$1(d) {
6095
- return d === true || d === false || $$2(d) && j$2(d) == Oe$1;
6097
+ return d === true || d === false || $$2(d) && j$2(d) == Ve$1;
6096
6098
  }
6097
6099
  var b$1 = be$1(function(d, e, t) {
6098
- N$2(d, e, t);
6100
+ Q$2(d, e, t);
6099
6101
  });
6100
- const y$1 = (d, e, t) => ({
6102
+ const p$2 = (d, e, t) => ({
6101
6103
  title: d,
6102
6104
  type: "model",
6103
6105
  errorGroup: "ModelDefinitionError",
@@ -6119,54 +6121,63 @@
6119
6121
  "string"
6120
6122
  ];
6121
6123
  if (!d.key)
6122
- return y$1("Invalid Property", d.key, "Property key is missing");
6124
+ return p$2("Invalid Property", d.key, "Property key is missing");
6123
6125
  if (!d.type || e.indexOf(d.type) === -1)
6124
- return y$1("Invalid Property", d.key, "Property type is invalid");
6126
+ return p$2("Invalid Property", d.key, "Property type is invalid");
6125
6127
  if ("derive" in d) {
6126
6128
  if (!d.derive?.localReference)
6127
- return y$1("Invalid Property", d.key, "Derived Property localReference is missing");
6129
+ return p$2("Invalid Property", d.key, "Derived Property localReference is missing");
6128
6130
  if (!d.derive.remoteProperty)
6129
- return y$1("Invalid Property", d.key, "Derived Property remoteProperty is missing");
6131
+ return p$2("Invalid Property", d.key, "Derived Property remoteProperty is missing");
6130
6132
  }
6131
6133
  if ("expression" in d && typeof d.expression != "string")
6132
- return y$1("Invalid Property", d.key, "Expression is invalid");
6134
+ return p$2("Invalid Property", d.key, "Expression is invalid");
6133
6135
  }, Ne$1 = (d) => {
6134
6136
  const e = ["multiValued", "singleValued"];
6135
6137
  if (!d.key)
6136
- return y$1("Invalid Reference", d.key, "Reference key is missing");
6138
+ return p$2("Invalid Reference", d.key, "Reference key is missing");
6137
6139
  if (!d.type || e.indexOf(d.type) === -1)
6138
- return y$1("Invalid Reference", d.key, "Reference type is invalid");
6140
+ return p$2("Invalid Reference", d.key, "Reference type is invalid");
6139
6141
  if (!d.model)
6140
- return y$1("Invalid Reference", d.key, "Reference model is missing");
6142
+ return p$2("Invalid Reference", d.key, "Reference model is missing");
6141
6143
  if ("derive" in d) {
6142
6144
  if (!d.derive.localReference)
6143
- return y$1("Invalid Reference", d.key, "Derived Reference localReference is missing");
6145
+ return p$2("Invalid Reference", d.key, "Derived Reference localReference is missing");
6144
6146
  if (!d.derive.remoteReference)
6145
- return y$1("Invalid Reference", d.key, "Derived Reference remoteReference is missing");
6147
+ return p$2("Invalid Reference", d.key, "Derived Reference remoteReference is missing");
6146
6148
  }
6147
6149
  if ("resolve" in d) {
6148
6150
  if (!d.resolve.reference)
6149
- return y$1("Invalid Reference", d.key, "Resolved Reference reference is missing");
6151
+ return p$2("Invalid Reference", d.key, "Resolved Reference reference is missing");
6150
6152
  if (!d.resolve.model)
6151
- return y$1("Invalid Reference", d.key, "Resolved Reference model is missing");
6153
+ return p$2("Invalid Reference", d.key, "Resolved Reference model is missing");
6152
6154
  }
6153
6155
  if ("groupBy" in d && !d.groupBy.reference)
6154
- return y$1("Invalid Reference", d.key, "Grouped Reference reference is missing");
6155
- }, We$1 = (d) => {
6156
+ return p$2("Invalid Reference", d.key, "Grouped Reference reference is missing");
6157
+ }, Qe$1 = (d) => {
6156
6158
  if (!d.key)
6157
6159
  throw new Error("Invalid Model: key is missing");
6158
6160
  if (typeof d.keyProperty < "u" && typeof d.keyProperty != "string")
6159
6161
  throw new Error("Invalid Model: keyProperty must be a string");
6160
6162
  if (typeof d.autoGenerateKey < "u" && typeof d.autoGenerateKey != "boolean")
6161
6163
  throw new Error("Invalid Model: autoGenerateKey must be a boolean");
6162
- if (typeof d.autoGenerateProperties < "u" && typeof d.autoGenerateProperties != "boolean")
6163
- throw new Error("Invalid Model: autoGenerateProperties must be a boolean");
6164
+ if (typeof d.autoGenerateProperties < "u") {
6165
+ const e = d.autoGenerateProperties;
6166
+ if (typeof e != "boolean") {
6167
+ if (typeof e != "object" || e === null || Array.isArray(e))
6168
+ throw new Error("Invalid Model: autoGenerateProperties must be a boolean or an options object");
6169
+ if (typeof e.deep < "u" && typeof e.deep != "boolean")
6170
+ throw new Error("Invalid Model: autoGenerateProperties.deep must be a boolean");
6171
+ if (typeof e.sampleSize < "u" && (typeof e.sampleSize != "number" || !Number.isFinite(e.sampleSize) || e.sampleSize < 1))
6172
+ throw new Error("Invalid Model: autoGenerateProperties.sampleSize must be a positive number");
6173
+ }
6174
+ }
6164
6175
  if (d.properties && !Array.isArray(d.properties))
6165
6176
  throw new Error("Invalid Model: properties must be an array");
6166
6177
  if (d.references && !Array.isArray(d.references))
6167
6178
  throw new Error("Invalid Model: references must be an array");
6168
6179
  return true;
6169
- }, Qe$1 = (d, e) => {
6180
+ }, We$1 = (d, e) => {
6170
6181
  const t = [];
6171
6182
  return d.references.forEach((s) => {
6172
6183
  e.has(s.model) || t.push({
@@ -6179,7 +6190,7 @@
6179
6190
  description: `Referenced model ${s.model} does not exist`
6180
6191
  }), "derive" in s && t.push(...ze$1(s, d, e)), "resolve" in s && t.push(...je$1(s, d, e)), "groupBy" in s && t.push(...Le$1(s, d));
6181
6192
  }), d.properties.forEach((s) => {
6182
- "derive" in s && t.push(...Je$1(s, d, e)), "expression" in s && t.push(...He$1(s, d));
6193
+ "derive" in s && t.push(...He$1(s, d, e)), "expression" in s && t.push(...Je$2(s, d));
6183
6194
  }), t;
6184
6195
  }, ze$1 = (d, e, t) => {
6185
6196
  const s = [], r = e.references.get(d.derive.localReference);
@@ -6233,7 +6244,7 @@
6233
6244
  model: e.key,
6234
6245
  description: `Resolved Reference ${d.groupBy.reference} does not exist in model ${e.key}`
6235
6246
  }), t;
6236
- }, Je$1 = (d, e, t) => {
6247
+ }, He$1 = (d, e, t) => {
6237
6248
  const s = [], r = e.references.get(d.derive.localReference);
6238
6249
  if (!r)
6239
6250
  return s.push({
@@ -6260,9 +6271,9 @@
6260
6271
  });
6261
6272
  }
6262
6273
  return s;
6263
- }, He$1 = (d, e) => {
6274
+ }, Je$2 = (d, e) => {
6264
6275
  const t = [];
6265
- return Cu(d.expression).variables.forEach((r) => {
6276
+ return Mu(d.expression).variables.forEach((r) => {
6266
6277
  r.name === "key" || r.name.endsWith(".key") || !e.properties.get(r.name) && !e.references.get(r.name) && t.push({
6267
6278
  title: "Unknown Expression Variable",
6268
6279
  type: "model",
@@ -6275,16 +6286,16 @@
6275
6286
  }), t;
6276
6287
  }, Ye$1 = {
6277
6288
  REF_VALUE: "_dcupl_ref_"
6278
- }, Xe$1 = {
6289
+ }, Ze$1 = {
6279
6290
  required: true,
6280
6291
  forceStrictDataType: false,
6281
6292
  nullable: false,
6282
6293
  validatorHandling: "loose"
6283
6294
  }, M$1 = {
6284
6295
  enabled: true,
6285
- attributes: Xe$1
6296
+ attributes: Ze$1
6286
6297
  };
6287
- let Ze$1 = class Ze {
6298
+ let Xe$1 = class Xe {
6288
6299
  constructor(e) {
6289
6300
  this.modelParser = e, this.cdRef = e.cdRef;
6290
6301
  }
@@ -6298,6 +6309,7 @@
6298
6309
  supportsAutoCreation = false;
6299
6310
  autoGenerateKey = false;
6300
6311
  autoGenerateProperties = false;
6312
+ autoGeneratePropertiesOption = false;
6301
6313
  keyProperty = "key";
6302
6314
  valueMappings = [];
6303
6315
  meta;
@@ -6318,7 +6330,7 @@
6318
6330
  }), e.references?.map((t) => {
6319
6331
  const s = Ne$1(t);
6320
6332
  s ? (s.model = this.key, this.setError(s)) : (t.validity = t.validity || "loose", this.setAttributeQualityConfig(t), this.references.set(t.key, t));
6321
- }), this.supportsAutoCreation = !!e.supportsAutoCreation, this.keyProperty = e.keyProperty || "key", this.autoGenerateKey = !!e.autoGenerateKey, this.autoGenerateProperties = !!e.autoGenerateProperties, this.valueMappings = e.valueMappings || [], this.meta = e.meta;
6333
+ }), this.supportsAutoCreation = !!e.supportsAutoCreation, this.keyProperty = e.keyProperty || "key", this.autoGenerateKey = !!e.autoGenerateKey, this.autoGenerateProperties = !!e.autoGenerateProperties, this.autoGeneratePropertiesOption = e.autoGenerateProperties ?? false, this.valueMappings = e.valueMappings || [], this.meta = e.meta;
6322
6334
  }
6323
6335
  setAttributeQualityConfig(e) {
6324
6336
  const t = this.qualityConfig.attributes, s = b$1({}, M$1, t, e.quality);
@@ -6334,16 +6346,17 @@
6334
6346
  supportsAutoCreation: this.supportsAutoCreation,
6335
6347
  valueMappings: this.valueMappings,
6336
6348
  meta: this.meta,
6337
- autoGenerateProperties: this.autoGenerateProperties,
6349
+ autoGenerateProperties: this.autoGeneratePropertiesOption,
6338
6350
  quality: this.qualityConfig
6339
6351
  } : this.initialDefinition;
6340
6352
  }
6341
6353
  generatePropertiesFromContainer(e) {
6342
- Tu(e.data).map((s) => {
6343
- if (!this.properties.has(s.key)) {
6344
- if (s.key === "key" && (e.keyProperty === "key" || !e.keyProperty))
6354
+ const t = this.autoGeneratePropertiesOption;
6355
+ (typeof t == "object" && t !== null ? Ou(e.data, t) : Ou(e.data, false)).map((r) => {
6356
+ if (!this.properties.has(r.key)) {
6357
+ if (r.key === "key" && (e.keyProperty === "key" || !e.keyProperty))
6345
6358
  return;
6346
- s.filter = true, this.properties.set(s.key, s);
6359
+ r.filter = true, this.properties.set(r.key, r);
6347
6360
  }
6348
6361
  });
6349
6362
  }
@@ -6500,7 +6513,7 @@
6500
6513
  processIntProperty(e, t, s) {
6501
6514
  const r = this.attributeQualityConfigs.get(e.key);
6502
6515
  if (r?.forceStrictDataType) {
6503
- if (!du(t)) {
6516
+ if (!hu(t)) {
6504
6517
  this.setError(this.getWrongDataTypeError(e, t, s));
6505
6518
  return;
6506
6519
  }
@@ -6517,7 +6530,7 @@
6517
6530
  processFloatProperty(e, t, s) {
6518
6531
  const r = this.attributeQualityConfigs.get(e.key);
6519
6532
  if (r?.forceStrictDataType) {
6520
- if (!hu(t)) {
6533
+ if (!pu(t)) {
6521
6534
  this.setError(this.getWrongDataTypeError(e, t, s));
6522
6535
  return;
6523
6536
  }
@@ -6570,7 +6583,7 @@
6570
6583
  try {
6571
6584
  if (r && typeof r == "string") {
6572
6585
  let n = t;
6573
- typeof n != "string" && (n = String(n)), i = xu(n, r, /* @__PURE__ */ new Date());
6586
+ typeof n != "string" && (n = String(n)), i = Su(n, r, /* @__PURE__ */ new Date());
6574
6587
  } else
6575
6588
  i = new Date(t);
6576
6589
  } catch (n) {
@@ -6740,7 +6753,7 @@
6740
6753
  const r = JSON.stringify(s.query);
6741
6754
  for (let i of e.data) {
6742
6755
  let n = this.data.get(String(i.key));
6743
- const o = $u(r, { ...i }), a = JSON.parse(o), l = new ir$1();
6756
+ const o = Cu(r, { ...i }), a = JSON.parse(o), l = new ir$1();
6744
6757
  l.init({ modelKey: s.model }), l.applyQuery(a, { mode: "set" }), a.projection || l.applyOptions({ projection: { $: false } });
6745
6758
  const c = l.getQuery();
6746
6759
  if (c.queries.length > 0) {
@@ -6902,7 +6915,7 @@
6902
6915
  }), t.length > 0 && t.forEach((a) => {
6903
6916
  this.handleDerivedProperties(a, o);
6904
6917
  }), s.length > 0 && s.forEach((a) => {
6905
- const l = this.createExpressionContext(o), c = $u(a.expression, l);
6918
+ const l = this.createExpressionContext(o), c = Cu(a.expression, l);
6906
6919
  o[a.key] = c;
6907
6920
  }), this.data.set(o.key, o);
6908
6921
  }
@@ -7246,7 +7259,7 @@
7246
7259
  for (let n of e.data) {
7247
7260
  let o = this.data.get(String(n.key));
7248
7261
  if (!o) continue;
7249
- const a = $u(i, { ...n }), l = JSON.parse(a), c = new ir$1();
7262
+ const a = Cu(i, { ...n }), l = JSON.parse(a), c = new ir$1();
7250
7263
  c.init({ modelKey: r.model }), c.applyQuery(l, { mode: "set" }), l.projection || c.applyOptions({ projection: { $: false } });
7251
7264
  const f = c.getQuery();
7252
7265
  if (f.queries.length > 0) {
@@ -7315,7 +7328,7 @@
7315
7328
  }), s.forEach((l) => {
7316
7329
  this.handleDerivedProperties(l, a);
7317
7330
  }), n.forEach((l) => {
7318
- const c = this.createExpressionContext(a), f = $u(l.expression, c);
7331
+ const c = this.createExpressionContext(a), f = Cu(l.expression, c);
7319
7332
  a[l.key] = f;
7320
7333
  }), this.data.set(a.key, a));
7321
7334
  }
@@ -7625,7 +7638,7 @@
7625
7638
  (n = d[i]) && (r = n(e, t, r) || r);
7626
7639
  return r && nt$1(e, t, r), r;
7627
7640
  };
7628
- let C$1 = class C {
7641
+ class C {
7629
7642
  constructor(e, t, s) {
7630
7643
  this.cdRef = e, this.qualityController = t, this.dcuplInstance = s, this.qualityController.modelParser = this;
7631
7644
  }
@@ -7650,14 +7663,14 @@
7650
7663
  if (this.models.has(e.key))
7651
7664
  this.models.get(e.key).resetData(), this.models.get(e.key).resetIndexMap(), this.models.get(e.key).applyPropertiesAndReferences(e);
7652
7665
  else {
7653
- const t = new Ze$1(this);
7666
+ const t = new Xe$1(this);
7654
7667
  t.init(e), t.applyPropertiesAndReferences(e), this.models.set(t.key, t);
7655
7668
  }
7656
7669
  });
7657
7670
  }
7658
7671
  validateModels() {
7659
7672
  this.models.forEach((e) => {
7660
- e.qualityConfig.enabled === true && Qe$1(e, this.models).forEach((s) => {
7673
+ e.qualityConfig.enabled === true && We$1(e, this.models).forEach((s) => {
7661
7674
  this.setError(s, e);
7662
7675
  });
7663
7676
  });
@@ -7693,7 +7706,7 @@ Models cannot have circular references as this leads to unpredictable behavior d
7693
7706
  * This enables partial updates by tracking which attributes depend on others.
7694
7707
  */
7695
7708
  buildAttributeDependencyGraph() {
7696
- this.attributeDependencyGraph = new mu(), this.models.forEach((e) => {
7709
+ this.attributeDependencyGraph = new bu(), this.models.forEach((e) => {
7697
7710
  const t = e.key;
7698
7711
  e.properties.forEach((s, r) => {
7699
7712
  if (s.expression)
@@ -7765,7 +7778,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
7765
7778
  processingStep: 3
7766
7779
  };
7767
7780
  this.attributeDependencyGraph.addAttribute(r);
7768
- const { variables: i } = Cu(s);
7781
+ const { variables: i } = Mu(s);
7769
7782
  i.forEach((n) => {
7770
7783
  const a = n.name.split("."), l = this.models.get(e);
7771
7784
  if (!l) return;
@@ -7787,18 +7800,18 @@ These attributes will default to Step 1 processing which may be incorrect. This
7787
7800
  };
7788
7801
  if (this.attributeDependencyGraph.addAttributeDependency(r, f), a.length > 1) {
7789
7802
  let u = l, h2 = e;
7790
- for (let p2 = 0; p2 < a.length - 1; p2++) {
7791
- const R2 = a[p2], m = u.references.get(R2);
7803
+ for (let y2 = 0; y2 < a.length - 1; y2++) {
7804
+ const R2 = a[y2], m = u.references.get(R2);
7792
7805
  if (m) {
7793
7806
  const _2 = this.models.get(m.model);
7794
- if (_2 && (u = _2, h2 = m.model, p2 === a.length - 2)) {
7795
- const W2 = a[a.length - 1], Q2 = {
7807
+ if (_2 && (u = _2, h2 = m.model, y2 === a.length - 2)) {
7808
+ const W2 = a[a.length - 1], z2 = {
7796
7809
  modelKey: h2,
7797
7810
  attributeKey: W2,
7798
7811
  type: "property",
7799
7812
  processingStep: 1
7800
7813
  };
7801
- this.attributeDependencyGraph.addAttributeDependency(r, Q2);
7814
+ this.attributeDependencyGraph.addAttributeDependency(r, z2);
7802
7815
  }
7803
7816
  }
7804
7817
  }
@@ -7853,7 +7866,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
7853
7866
  };
7854
7867
  this.attributeDependencyGraph.addAttribute(r);
7855
7868
  try {
7856
- const i = JSON.stringify(s), { variables: n } = Cu(i);
7869
+ const i = JSON.stringify(s), { variables: n } = Mu(i);
7857
7870
  n.forEach((o) => {
7858
7871
  const a = o.name, l = this.models.get(e);
7859
7872
  if (l) {
@@ -8046,12 +8059,12 @@ These attributes will default to Step 1 processing which may be incorrect. This
8046
8059
  await this.connectDataWithModels(e);
8047
8060
  }
8048
8061
  getSortedCalculationTimings() {
8049
- return gu(this.calculationTimings, "value");
8062
+ return yu(this.calculationTimings, "value");
8050
8063
  }
8051
8064
  addModel(e) {
8052
8065
  if (e?.quality?.enabled !== false)
8053
8066
  try {
8054
- We$1(e);
8067
+ Qe$1(e);
8055
8068
  } catch (t) {
8056
8069
  this.qualityController.enabled && this.qualityController.setError({
8057
8070
  title: "Invalid Model Definition",
@@ -8087,7 +8100,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
8087
8100
  throw new Error("Invalid Data - Data must be an Array");
8088
8101
  e.type || (e.type = "set"), e.autoGenerateProperties && this.addModel({
8089
8102
  key: e.model,
8090
- autoGenerateProperties: true,
8103
+ autoGenerateProperties: e.autoGenerateProperties,
8091
8104
  autoGenerateKey: e.autoGenerateKey,
8092
8105
  keyProperty: e.keyProperty || "key"
8093
8106
  }), this.changeTracker.recordDataChange(e), this.unprocessedData.push(e);
@@ -8104,7 +8117,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
8104
8117
  this.qualityController.enabled && t.qualityConfig.enabled === true && this.qualityController.setError(e);
8105
8118
  }
8106
8119
  getMergedContainers(e) {
8107
- const s = this.handleAlternativeKey(e).filter((n) => !n.placeholderUid), r = [], i = Ve$2(s, "model");
8120
+ const s = this.handleAlternativeKey(e).filter((n) => !n.placeholderUid), r = [], i = $e$1(s, "model");
8108
8121
  for (const n in i) {
8109
8122
  const o = i[n];
8110
8123
  if (o.length > 1) {
@@ -8243,9 +8256,9 @@ These attributes will default to Step 1 processing which may be incorrect. This
8243
8256
  for (const f of c) {
8244
8257
  const u = l.references.get(f);
8245
8258
  if (u && E$2(u)) {
8246
- const h2 = u.resolve.model, p2 = u.resolve.reference, R2 = this.models.get(h2);
8259
+ const h2 = u.resolve.model, y2 = u.resolve.reference, R2 = this.models.get(h2);
8247
8260
  if (R2) {
8248
- const m = R2.references.get(p2);
8261
+ const m = R2.references.get(y2);
8249
8262
  m && E$2(m) && t.get(a).add(h2);
8250
8263
  }
8251
8264
  }
@@ -8430,36 +8443,36 @@ These attributes will default to Step 1 processing which may be incorrect. This
8430
8443
  e += t.getItemCount();
8431
8444
  return e;
8432
8445
  }
8433
- };
8446
+ }
8434
8447
  D([
8435
- wu({
8448
+ Au({
8436
8449
  scope: "global",
8437
8450
  type: "model_add",
8438
8451
  connectMessage: true
8439
8452
  })
8440
- ], C$1.prototype, "addModel");
8453
+ ], C.prototype, "addModel");
8441
8454
  D([
8442
- wu({
8455
+ Au({
8443
8456
  scope: "global",
8444
8457
  type: "data_change",
8445
8458
  connectMessage: true
8446
8459
  })
8447
- ], C$1.prototype, "addData");
8460
+ ], C.prototype, "addData");
8448
8461
  D([
8449
- wu({
8462
+ Au({
8450
8463
  scope: "global",
8451
8464
  type: "view_add",
8452
8465
  connectMessage: true
8453
8466
  })
8454
- ], C$1.prototype, "addView");
8467
+ ], C.prototype, "addView");
8455
8468
  D([
8456
- wu({
8469
+ Au({
8457
8470
  scope: "global",
8458
8471
  type: "dcupl_handle_datacontainer"
8459
8472
  })
8460
- ], C$1.prototype, "handleDataContainer");
8473
+ ], C.prototype, "handleDataContainer");
8461
8474
  function q$1(d, e) {
8462
- return B$2(e, function(t) {
8475
+ return B$1(e, function(t) {
8463
8476
  return d[t];
8464
8477
  });
8465
8478
  }
@@ -8550,24 +8563,24 @@ These attributes will default to Step 1 processing which may be incorrect. This
8550
8563
  }
8551
8564
  }
8552
8565
  E$1([
8553
- wu({
8566
+ Au({
8554
8567
  scope: "list",
8555
8568
  type: "list_destroyed",
8556
8569
  connectMessage: true
8557
8570
  })
8558
8571
  ], v.prototype, "_destroy");
8559
8572
  E$1([
8560
- wu({
8573
+ Au({
8561
8574
  scope: "list",
8562
8575
  type: "list_updated",
8563
8576
  action: "update",
8564
8577
  connectMessage: true
8565
8578
  })
8566
8579
  ], v.prototype, "update");
8567
- var H$1 = Object.defineProperty, Z = Object.getOwnPropertyDescriptor, J$1 = (d, e, t, r) => {
8568
- for (var s = Z(e, t), i = d.length - 1, o; i >= 0; i--)
8580
+ var Z = Object.defineProperty, H$1 = Object.getOwnPropertyDescriptor, J$1 = (d, e, t, r) => {
8581
+ for (var s = H$1(e, t), i = d.length - 1, o; i >= 0; i--)
8569
8582
  (o = d[i]) && (s = o(e, t, s) || s);
8570
- return s && H$1(e, t, s), s;
8583
+ return s && Z(e, t, s), s;
8571
8584
  };
8572
8585
  let k$1 = class k {
8573
8586
  constructor(e, t) {
@@ -8591,7 +8604,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
8591
8604
  }
8592
8605
  create(e) {
8593
8606
  e.listKey = e.listKey || Ha();
8594
- const t = new vu();
8607
+ const t = new wu();
8595
8608
  t._init({
8596
8609
  cdRefKey: e.listKey,
8597
8610
  parentCd: this.dcuplInstance.cdRef,
@@ -8603,7 +8616,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
8603
8616
  }
8604
8617
  };
8605
8618
  J$1([
8606
- wu({
8619
+ Au({
8607
8620
  scope: "global",
8608
8621
  type: "list_created",
8609
8622
  connectMessage: true
@@ -8677,7 +8690,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
8677
8690
  cleanUpErrors(e, t, r) {
8678
8691
  const i = this.getModelErrors(e.key).filter((o) => o.errorType === r);
8679
8692
  if (i.length > 0) {
8680
- const o = Ve$2(i, "attribute");
8693
+ const o = $e$1(i, "attribute");
8681
8694
  for (const a in o) {
8682
8695
  const l = o[a];
8683
8696
  if (l?.length === t.data.length) {
@@ -8923,7 +8936,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
8923
8936
  }
8924
8937
  }
8925
8938
  calculateSizesForModels() {
8926
- const t = this.dcupl.analyticsController.getByType("resource").filter((i) => i.value?.type === "data"), r = Ve$2(t, (i) => i.value?.model);
8939
+ const t = this.dcupl.analyticsController.getByType("resource").filter((i) => i.value?.type === "data"), r = $e$1(t, (i) => i.value?.model);
8927
8940
  return Object.keys(r).map((i) => {
8928
8941
  const o = r[i]?.reduce((l, n) => {
8929
8942
  const c = n.value.encodedBodySize;
@@ -9197,15 +9210,15 @@ These attributes will default to Step 1 processing which may be incorrect. This
9197
9210
  return s && Y$1(e, t, s), s;
9198
9211
  };
9199
9212
  let p$1 = class p {
9200
- cdRef = new vu();
9201
- analyticsController = new yu();
9202
- scriptController = new _u();
9213
+ cdRef = new wu();
9214
+ analyticsController = new mu();
9215
+ scriptController = new $u();
9203
9216
  qualityController = new X$2(this.scriptController);
9204
9217
  log = Ua.child({ prefix: "Dcupl" });
9205
- modelParser = new C$1(this.cdRef, this.qualityController, this);
9218
+ modelParser = new C(this.cdRef, this.qualityController, this);
9206
9219
  globalItemService = new K(this.modelParser, this.scriptController);
9207
- cacheCtrl = new bu(false);
9208
- queryManager = new Ou(
9220
+ cacheCtrl = new vu(false);
9221
+ queryManager = new _u(
9209
9222
  this.scriptController,
9210
9223
  this.globalItemService,
9211
9224
  // Cast needed due to dist vs src type mismatch in monorepo
@@ -9568,7 +9581,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
9568
9581
  addLoader(e, t) {
9569
9582
  const r = Z$1.now(), s = t || Ha();
9570
9583
  this._loaders.set(s, e), e.core = this, e.key = s;
9571
- const i = new vu();
9584
+ const i = new wu();
9572
9585
  i._init({
9573
9586
  cdRefKey: s,
9574
9587
  parentCd: this.cdRef,
@@ -9602,7 +9615,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
9602
9615
  }
9603
9616
  };
9604
9617
  h([
9605
- wu({
9618
+ Au({
9606
9619
  scope: "global",
9607
9620
  type: "fn_pivot",
9608
9621
  cloneResult: true,
@@ -9611,7 +9624,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
9611
9624
  })
9612
9625
  ], p$1.prototype, "_pivot");
9613
9626
  h([
9614
- wu({
9627
+ Au({
9615
9628
  scope: "global",
9616
9629
  type: "fn_aggregate",
9617
9630
  cloneResult: true,
@@ -9620,7 +9633,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
9620
9633
  })
9621
9634
  ], p$1.prototype, "_aggregate");
9622
9635
  h([
9623
- wu({
9636
+ Au({
9624
9637
  scope: "global",
9625
9638
  type: "fn_suggest",
9626
9639
  cloneResult: true,
@@ -9629,7 +9642,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
9629
9642
  })
9630
9643
  ], p$1.prototype, "_suggest");
9631
9644
  h([
9632
- wu({
9645
+ Au({
9633
9646
  scope: "global",
9634
9647
  type: "fn_groupBy",
9635
9648
  cloneResult: true,
@@ -9638,7 +9651,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
9638
9651
  })
9639
9652
  ], p$1.prototype, "_groupBy");
9640
9653
  h([
9641
- wu({
9654
+ Au({
9642
9655
  scope: "global",
9643
9656
  type: "fn_facets",
9644
9657
  cloneResult: true,
@@ -9647,7 +9660,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
9647
9660
  })
9648
9661
  ], p$1.prototype, "_facets");
9649
9662
  h([
9650
- wu({
9663
+ Au({
9651
9664
  scope: "global",
9652
9665
  type: "fn_metadata",
9653
9666
  cloneResult: true,
@@ -9656,14 +9669,14 @@ These attributes will default to Step 1 processing which may be incorrect. This
9656
9669
  })
9657
9670
  ], p$1.prototype, "_metadata");
9658
9671
  h([
9659
- wu({
9672
+ Au({
9660
9673
  scope: "global",
9661
9674
  type: "dcupl_initialized",
9662
9675
  connectMessage: true
9663
9676
  })
9664
9677
  ], p$1.prototype, "init");
9665
9678
  h([
9666
- wu({
9679
+ Au({
9667
9680
  scope: "global",
9668
9681
  type: "dcupl_updated_manually",
9669
9682
  action: "update",
@@ -9671,14 +9684,14 @@ These attributes will default to Step 1 processing which may be incorrect. This
9671
9684
  })
9672
9685
  ], p$1.prototype, "update");
9673
9686
  h([
9674
- wu({
9687
+ Au({
9675
9688
  scope: "global",
9676
9689
  type: "dcupl_destroyed",
9677
9690
  connectMessage: true
9678
9691
  })
9679
9692
  ], p$1.prototype, "destroy");
9680
9693
  h([
9681
- wu({
9694
+ Au({
9682
9695
  scope: "global",
9683
9696
  type: "query_one",
9684
9697
  cloneResult: true,
@@ -9687,7 +9700,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
9687
9700
  })
9688
9701
  ], p$1.prototype, "getItem");
9689
9702
  h([
9690
- wu({
9703
+ Au({
9691
9704
  scope: "global",
9692
9705
  type: "query_many",
9693
9706
  cloneResult: true,
@@ -9696,7 +9709,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
9696
9709
  })
9697
9710
  ], p$1.prototype, "_getManyItems");
9698
9711
  h([
9699
- wu({
9712
+ Au({
9700
9713
  scope: "global",
9701
9714
  type: "query_execute",
9702
9715
  cloneResult: true,
@@ -9705,7 +9718,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
9705
9718
  })
9706
9719
  ], p$1.prototype, "executeQuery");
9707
9720
  h([
9708
- wu({
9721
+ Au({
9709
9722
  scope: "global",
9710
9723
  type: "loader_removed",
9711
9724
  connectMessage: true
@@ -10507,7 +10520,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
10507
10520
  function cloneDeep(value) {
10508
10521
  return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);
10509
10522
  }
10510
- const x$1 = {
10523
+ const A = {
10511
10524
  now: () => typeof performance < "u" && performance.now ? performance.now() : (/* @__PURE__ */ new Date()).getTime(),
10512
10525
  mark: (o) => {
10513
10526
  typeof performance < "u" && performance.mark && performance.mark(o);
@@ -10730,7 +10743,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
10730
10743
  for (let r = 0; r < o; r++) e += t.charAt(Math.floor(Math.random() * t.length));
10731
10744
  return e;
10732
10745
  }
10733
- let Fe$1 = class Fe {
10746
+ let Ge$1 = class Ge {
10734
10747
  key;
10735
10748
  parentCd;
10736
10749
  dcuplInitOptions;
@@ -10756,7 +10769,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
10756
10769
  this.off && this.off();
10757
10770
  }
10758
10771
  trigger(e) {
10759
- e.originCdRefKey || (e.originCdRefKey = this.key), e.key || (this.increaseCounter(), e.key = this.getCounter()), e.end || (e.end = x$1.now(), e.duration = e.start - e.end), this.updateListener.forEach((t) => {
10772
+ e.originCdRefKey || (e.originCdRefKey = this.key), e.key || (this.increaseCounter(), e.key = this.getCounter()), e.end || (e.end = A.now(), e.duration = e.start - e.end), this.updateListener.forEach((t) => {
10760
10773
  t(e);
10761
10774
  });
10762
10775
  }
@@ -10766,17 +10779,17 @@ These attributes will default to Step 1 processing which may be incorrect. This
10766
10779
  };
10767
10780
  }
10768
10781
  };
10769
- const P = (o, e) => e ? typeof structuredClone < "u" ? structuredClone(o) : cloneDeep(o) : o, G$1 = (o, e, t, r, s, i) => {
10782
+ const P$1 = (o, e) => e ? typeof structuredClone < "u" ? structuredClone(o) : cloneDeep(o) : o, G$1 = (o, e, t, r, s, i) => {
10770
10783
  try {
10771
- const n = !!e.dcuplInitOptions.performance?.clone?.enabled && !!t.cloneResult, a = P(i, n);
10784
+ const n = !!e.dcuplInitOptions.performance?.clone?.enabled && !!t.cloneResult, a = P$1(i, n);
10772
10785
  if (t.scope === "list" && (t.listKey = o.cdRef?.key || o.key, t.modelKey = o.model?.key || o.modelKey), t.type === "list_created" && t.args[0].listKey.startsWith("__global_list__") || t.listKey?.startsWith("__global_list__"))
10773
10786
  return a;
10774
- const u = x$1.now(), c = u - r, f = Math.round(c * 1e3) / 1e3;
10787
+ const u = A.now(), c = u - r, f = Math.round(c * 1e3) / 1e3;
10775
10788
  t.duration = f, t.start = r, t.end = u;
10776
- const d = {
10789
+ const l = {
10777
10790
  duration: t.duration
10778
10791
  };
10779
- return t.modelKey && (d.model = t.modelKey), t.connectMessageResult && (t.result = a), t.args && (d.args = t.args), e?.trigger(t), e.analyticsController.mark({
10792
+ return t.modelKey && (l.model = t.modelKey), t.connectMessageResult && (t.result = a), t.args && (l.args = t.args), e?.trigger(t), e.analyticsController.mark({
10780
10793
  name: `${t.type}:end`,
10781
10794
  context: s
10782
10795
  }), e.analyticsController.measure({
@@ -10784,28 +10797,28 @@ These attributes will default to Step 1 processing which may be incorrect. This
10784
10797
  start: `${t.type}:start`,
10785
10798
  end: `${t.type}:end`,
10786
10799
  context: s,
10787
- detail: d
10800
+ detail: l
10788
10801
  }), a;
10789
10802
  } catch {
10790
10803
  return i;
10791
10804
  }
10792
- }, Ge$1 = (o) => (t, r, s) => {
10805
+ }, Te$1 = (o) => (t, r, s) => {
10793
10806
  const i = s.value;
10794
10807
  return s.value = function(...n) {
10795
- const a = x$1.now(), u = this.cdRef, c = P(o, true);
10808
+ const a = A.now(), u = this.cdRef, c = P$1(o, true);
10796
10809
  c.key || (u.increaseCounter(), c.key = u.getCounter());
10797
10810
  const f = ee$1();
10798
10811
  u.analyticsController.mark({
10799
10812
  name: `${c.type}:start`,
10800
10813
  context: f
10801
10814
  });
10802
- const d = this.model?.key;
10803
- !c.originCdRefKey && u.key && (c.originCdRefKey = u.key), d && (c.modelKey = d);
10804
- const l = i.apply(this, n);
10805
- return c.method = r, c.args = n, l && typeof l == "object" && "then" in l ? l.then((h2) => G$1(this, u, c, a, f, h2)) : G$1(this, u, c, a, f, l);
10815
+ const l = this.model?.key;
10816
+ !c.originCdRefKey && u.key && (c.originCdRefKey = u.key), l && (c.modelKey = l);
10817
+ const d = i.apply(this, n);
10818
+ return c.method = r, c.args = n, d && typeof d == "object" && "then" in d ? d.then((h2) => G$1(this, u, c, a, f, h2)) : G$1(this, u, c, a, f, d);
10806
10819
  }, s;
10807
10820
  };
10808
- const Ve$1 = (o, e) => o ? (e || (e = {}), o.replace(/\$\{(.*?)\}/g, (t, r) => get(e, r.trim(), ""))) : "";
10821
+ const Je$1 = (o, e) => o ? (e || (e = {}), o.replace(/\$\{(.*?)\}/g, (t, r) => get(e, r.trim(), ""))) : "";
10809
10822
  let Me = class {
10810
10823
  log = X$1.child({ prefix: "DcuplCsvParser" });
10811
10824
  parse(e, r = {}) {
@@ -11005,7 +11018,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
11005
11018
  return new Me().parse(e, a);
11006
11019
  }
11007
11020
  }
11008
- var He = typeof global == "object" && global && global.Object === Object && global, pt = typeof self == "object" && self && self.Object === Object && self, C = He || pt || Function("return this")(), V = C.Symbol, Le = Object.prototype, ft = Le.hasOwnProperty, ht = Le.toString, M = V ? V.toStringTag : void 0;
11021
+ var He = typeof global == "object" && global && global.Object === Object && global, pt = typeof self == "object" && self && self.Object === Object && self, P = He || pt || Function("return this")(), V = P.Symbol, Le = Object.prototype, ft = Le.hasOwnProperty, ht = Le.toString, M = V ? V.toStringTag : void 0;
11009
11022
  function gt(t) {
11010
11023
  var e = ft.call(t, M), r = t[M];
11011
11024
  try {
@@ -11021,7 +11034,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
11021
11034
  return mt.call(t);
11022
11035
  }
11023
11036
  var vt = "[object Null]", Tt = "[object Undefined]", he = V ? V.toStringTag : void 0;
11024
- function G(t) {
11037
+ function B(t) {
11025
11038
  return t == null ? t === void 0 ? Tt : vt : he && he in Object(t) ? gt(t) : bt(t);
11026
11039
  }
11027
11040
  function k(t) {
@@ -11041,13 +11054,13 @@ These attributes will default to Step 1 processing which may be incorrect. This
11041
11054
  return t;
11042
11055
  }
11043
11056
  var Ct = "[object AsyncFunction]", Pt = "[object Function]", jt = "[object GeneratorFunction]", _t = "[object Proxy]";
11044
- function Be(t) {
11057
+ function Ge(t) {
11045
11058
  if (!W(t))
11046
11059
  return false;
11047
- var e = G(t);
11060
+ var e = B(t);
11048
11061
  return e == Pt || e == jt || e == Ct || e == _t;
11049
11062
  }
11050
- var ee = C["__core-js_shared__"], ge = (function() {
11063
+ var ee = P["__core-js_shared__"], ge = (function() {
11051
11064
  var t = /[^.]+$/.exec(ee && ee.keys && ee.keys.IE_PROTO || "");
11052
11065
  return t ? "Symbol(src)_1." + t : "";
11053
11066
  })();
@@ -11074,7 +11087,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
11074
11087
  function kt(t) {
11075
11088
  if (!W(t) || At(t))
11076
11089
  return false;
11077
- var e = Be(t) ? Rt : Et;
11090
+ var e = Ge(t) ? Rt : Et;
11078
11091
  return e.test(E(t));
11079
11092
  }
11080
11093
  function Ut(t, e) {
@@ -11084,7 +11097,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
11084
11097
  var r = Ut(t, e);
11085
11098
  return kt(r) ? r : void 0;
11086
11099
  }
11087
- var re = x(C, "WeakMap"), ye = Object.create, Dt = /* @__PURE__ */ (function() {
11100
+ var re = x(P, "WeakMap"), ye = Object.create, Dt = /* @__PURE__ */ (function() {
11088
11101
  function t() {
11089
11102
  }
11090
11103
  return function(e) {
@@ -11111,7 +11124,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
11111
11124
  return t.apply(e, r);
11112
11125
  }
11113
11126
  var Ht = 800, Lt = 16, Nt = Date.now;
11114
- function Bt(t) {
11127
+ function Gt(t) {
11115
11128
  var e = 0, r = 0;
11116
11129
  return function() {
11117
11130
  var n = Nt(), a = Lt - (n - r);
@@ -11123,7 +11136,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
11123
11136
  return t.apply(void 0, arguments);
11124
11137
  };
11125
11138
  }
11126
- function Gt(t) {
11139
+ function Bt(t) {
11127
11140
  return function() {
11128
11141
  return t;
11129
11142
  };
@@ -11138,10 +11151,10 @@ These attributes will default to Step 1 processing which may be incorrect. This
11138
11151
  return J(t, "toString", {
11139
11152
  configurable: true,
11140
11153
  enumerable: false,
11141
- value: Gt(e),
11154
+ value: Bt(e),
11142
11155
  writable: true
11143
11156
  });
11144
- } : Ne, zt = Bt(Kt);
11157
+ } : Ne, zt = Gt(Kt);
11145
11158
  function qt(t, e) {
11146
11159
  for (var r = -1, n = t == null ? 0 : t.length; ++r < n && e(t[r], r, t) !== false; )
11147
11160
  ;
@@ -11182,13 +11195,13 @@ These attributes will default to Step 1 processing which may be incorrect. This
11182
11195
  writable: true
11183
11196
  }) : t[e] = r;
11184
11197
  }
11185
- function Ge(t, e) {
11198
+ function Be(t, e) {
11186
11199
  return t === e || t !== t && e !== e;
11187
11200
  }
11188
11201
  var nr = Object.prototype, sr = nr.hasOwnProperty;
11189
11202
  function or(t, e, r) {
11190
11203
  var n = t[e];
11191
- (!(sr.call(t, e) && Ge(n, r)) || r === void 0 && !(e in t)) && rr(t, e, r);
11204
+ (!(sr.call(t, e) && Be(n, r)) || r === void 0 && !(e in t)) && rr(t, e, r);
11192
11205
  }
11193
11206
  var me = Math.max;
11194
11207
  function ar(t, e, r) {
@@ -11209,7 +11222,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
11209
11222
  return typeof t == "number" && t > -1 && t % 1 == 0 && t <= lr;
11210
11223
  }
11211
11224
  function ze(t) {
11212
- return t != null && Ke(t.length) && !Be(t);
11225
+ return t != null && Ke(t.length) && !Ge(t);
11213
11226
  }
11214
11227
  var cr = Object.prototype;
11215
11228
  function qe(t) {
@@ -11223,7 +11236,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
11223
11236
  }
11224
11237
  var dr = "[object Arguments]";
11225
11238
  function be(t) {
11226
- return k(t) && G(t) == dr;
11239
+ return k(t) && B(t) == dr;
11227
11240
  }
11228
11241
  var Je = Object.prototype, pr = Je.hasOwnProperty, fr = Je.propertyIsEnumerable, hr = be(/* @__PURE__ */ (function() {
11229
11242
  return arguments;
@@ -11233,26 +11246,26 @@ These attributes will default to Step 1 processing which may be incorrect. This
11233
11246
  function gr() {
11234
11247
  return false;
11235
11248
  }
11236
- var Qe = typeof exports == "object" && exports && !exports.nodeType && exports, ve = Qe && typeof module == "object" && module && !module.nodeType && module, yr = ve && ve.exports === Qe, Te = yr ? C.Buffer : void 0, mr = Te ? Te.isBuffer : void 0, We = mr || gr, br = "[object Arguments]", vr = "[object Array]", Tr = "[object Boolean]", wr = "[object Date]", Cr = "[object Error]", Pr = "[object Function]", jr = "[object Map]", _r = "[object Number]", Ar = "[object Object]", Or = "[object RegExp]", $r = "[object Set]", Sr = "[object String]", Er = "[object WeakMap]", xr = "[object ArrayBuffer]", Ir = "[object DataView]", Fr = "[object Float32Array]", Vr = "[object Float64Array]", Rr = "[object Int8Array]", kr = "[object Int16Array]", Ur = "[object Int32Array]", Dr = "[object Uint8Array]", Mr = "[object Uint8ClampedArray]", Hr = "[object Uint16Array]", Lr = "[object Uint32Array]", b = {};
11249
+ var Qe = typeof exports == "object" && exports && !exports.nodeType && exports, ve = Qe && typeof module == "object" && module && !module.nodeType && module, yr = ve && ve.exports === Qe, Te = yr ? P.Buffer : void 0, mr = Te ? Te.isBuffer : void 0, We = mr || gr, br = "[object Arguments]", vr = "[object Array]", Tr = "[object Boolean]", wr = "[object Date]", Cr = "[object Error]", Pr = "[object Function]", jr = "[object Map]", _r = "[object Number]", Ar = "[object Object]", Or = "[object RegExp]", $r = "[object Set]", Sr = "[object String]", Er = "[object WeakMap]", xr = "[object ArrayBuffer]", Ir = "[object DataView]", Fr = "[object Float32Array]", Vr = "[object Float64Array]", Rr = "[object Int8Array]", kr = "[object Int16Array]", Ur = "[object Int32Array]", Dr = "[object Uint8Array]", Mr = "[object Uint8ClampedArray]", Hr = "[object Uint16Array]", Lr = "[object Uint32Array]", b = {};
11237
11250
  b[Fr] = b[Vr] = b[Rr] = b[kr] = b[Ur] = b[Dr] = b[Mr] = b[Hr] = b[Lr] = true;
11238
11251
  b[br] = b[vr] = b[xr] = b[Tr] = b[Ir] = b[wr] = b[Cr] = b[Pr] = b[jr] = b[_r] = b[Ar] = b[Or] = b[$r] = b[Sr] = b[Er] = false;
11239
11252
  function Nr(t) {
11240
- return k(t) && Ke(t.length) && !!b[G(t)];
11253
+ return k(t) && Ke(t.length) && !!b[B(t)];
11241
11254
  }
11242
11255
  function le(t) {
11243
11256
  return function(e) {
11244
11257
  return t(e);
11245
11258
  };
11246
11259
  }
11247
- var Ye = typeof exports == "object" && exports && !exports.nodeType && exports, L = Ye && typeof module == "object" && module && !module.nodeType && module, Br = L && L.exports === Ye, te = Br && He.process, R = (function() {
11260
+ var Ye = typeof exports == "object" && exports && !exports.nodeType && exports, L = Ye && typeof module == "object" && module && !module.nodeType && module, Gr = L && L.exports === Ye, te = Gr && He.process, R = (function() {
11248
11261
  try {
11249
11262
  var t = L && L.require && L.require("util").types;
11250
11263
  return t || te && te.binding && te.binding("util");
11251
11264
  } catch {
11252
11265
  }
11253
- })(), we = R && R.isTypedArray, Gr = we ? le(we) : Nr, Kr = Object.prototype, zr = Kr.hasOwnProperty;
11266
+ })(), we = R && R.isTypedArray, Br = we ? le(we) : Nr, Kr = Object.prototype, zr = Kr.hasOwnProperty;
11254
11267
  function qr(t, e) {
11255
- var r = ie(t), n = !r && hr(t), a = !r && !n && We(t), s = !r && !n && !a && Gr(t), o = r || n || a || s, c = o ? ur(t.length, String) : [], i = c.length;
11268
+ var r = ie(t), n = !r && hr(t), a = !r && !n && We(t), s = !r && !n && !a && Br(t), o = r || n || a || s, c = o ? ur(t.length, String) : [], i = c.length;
11256
11269
  for (var u in t)
11257
11270
  zr.call(t, u) && !(o && // Safari 9 has enumerable `arguments.length` in strict mode.
11258
11271
  (u == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
@@ -11322,7 +11335,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
11322
11335
  }
11323
11336
  function Y(t, e) {
11324
11337
  for (var r = t.length; r--; )
11325
- if (Ge(t[r][0], e))
11338
+ if (Be(t[r][0], e))
11326
11339
  return r;
11327
11340
  return -1;
11328
11341
  }
@@ -11357,11 +11370,11 @@ These attributes will default to Step 1 processing which may be incorrect. This
11357
11370
  _.prototype.get = gn;
11358
11371
  _.prototype.has = yn;
11359
11372
  _.prototype.set = mn;
11360
- var B = x(C, "Map");
11373
+ var G = x(P, "Map");
11361
11374
  function bn() {
11362
11375
  this.size = 0, this.__data__ = {
11363
11376
  hash: new S(),
11364
- map: new (B || _)(),
11377
+ map: new (G || _)(),
11365
11378
  string: new S()
11366
11379
  };
11367
11380
  }
@@ -11423,7 +11436,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
11423
11436
  var r = this.__data__;
11424
11437
  if (r instanceof _) {
11425
11438
  var n = r.__data__;
11426
- if (!B || n.length < En - 1)
11439
+ if (!G || n.length < En - 1)
11427
11440
  return n.push([t, e]), this.size = ++r.size, this;
11428
11441
  r = this.__data__ = new I(n);
11429
11442
  }
@@ -11438,7 +11451,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
11438
11451
  U.prototype.get = $n;
11439
11452
  U.prototype.has = Sn;
11440
11453
  U.prototype.set = xn;
11441
- var Ze = typeof exports == "object" && exports && !exports.nodeType && exports, Ce = Ze && typeof module == "object" && module && !module.nodeType && module, In = Ce && Ce.exports === Ze, Pe = In ? C.Buffer : void 0;
11454
+ var Ze = typeof exports == "object" && exports && !exports.nodeType && exports, Ce = Ze && typeof module == "object" && module && !module.nodeType && module, In = Ce && Ce.exports === Ze, Pe = In ? P.Buffer : void 0;
11442
11455
  Pe && Pe.allocUnsafe;
11443
11456
  function Fn(t, e) {
11444
11457
  return t.slice();
@@ -11465,16 +11478,16 @@ These attributes will default to Step 1 processing which may be incorrect. This
11465
11478
  function Hn(t) {
11466
11479
  return Mn(t, Xr, Dn);
11467
11480
  }
11468
- var ne = x(C, "DataView"), se = x(C, "Promise"), oe = x(C, "Set"), _e = "[object Map]", Ln = "[object Object]", Ae = "[object Promise]", Oe = "[object Set]", $e = "[object WeakMap]", Se = "[object DataView]", Nn = E(ne), Bn = E(B), Gn = E(se), Kn = E(oe), zn = E(re), j = G;
11469
- (ne && j(new ne(new ArrayBuffer(1))) != Se || B && j(new B()) != _e || se && j(se.resolve()) != Ae || oe && j(new oe()) != Oe || re && j(new re()) != $e) && (j = function(t) {
11470
- var e = G(t), r = e == Ln ? t.constructor : void 0, n = r ? E(r) : "";
11481
+ var ne = x(P, "DataView"), se = x(P, "Promise"), oe = x(P, "Set"), _e = "[object Map]", Ln = "[object Object]", Ae = "[object Promise]", Oe = "[object Set]", $e = "[object WeakMap]", Se = "[object DataView]", Nn = E(ne), Gn = E(G), Bn = E(se), Kn = E(oe), zn = E(re), j = B;
11482
+ (ne && j(new ne(new ArrayBuffer(1))) != Se || G && j(new G()) != _e || se && j(se.resolve()) != Ae || oe && j(new oe()) != Oe || re && j(new re()) != $e) && (j = function(t) {
11483
+ var e = B(t), r = e == Ln ? t.constructor : void 0, n = r ? E(r) : "";
11471
11484
  if (n)
11472
11485
  switch (n) {
11473
11486
  case Nn:
11474
11487
  return Se;
11475
- case Bn:
11476
- return _e;
11477
11488
  case Gn:
11489
+ return _e;
11490
+ case Bn:
11478
11491
  return Ae;
11479
11492
  case Kn:
11480
11493
  return Oe;
@@ -11488,7 +11501,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
11488
11501
  var e = t.length, r = new t.constructor(e);
11489
11502
  return e && typeof t[0] == "string" && Jn.call(t, "index") && (r.index = t.index, r.input = t.input), r;
11490
11503
  }
11491
- var Ee = C.Uint8Array;
11504
+ var Ee = P.Uint8Array;
11492
11505
  function ce(t) {
11493
11506
  var e = new t.constructor(t.byteLength);
11494
11507
  return new Ee(e).set(new Ee(t)), e;
@@ -11555,8 +11568,8 @@ These attributes will default to Step 1 processing which may be incorrect. This
11555
11568
  function As(t) {
11556
11569
  return k(t) && j(t) == _s;
11557
11570
  }
11558
- var Ve = R && R.isSet, Os = Ve ? le(Ve) : As, et = "[object Arguments]", $s = "[object Array]", Ss = "[object Boolean]", Es = "[object Date]", xs = "[object Error]", tt = "[object Function]", Is = "[object GeneratorFunction]", Fs = "[object Map]", Vs = "[object Number]", rt = "[object Object]", Rs = "[object RegExp]", ks = "[object Set]", Us = "[object String]", Ds = "[object Symbol]", Ms = "[object WeakMap]", Hs = "[object ArrayBuffer]", Ls = "[object DataView]", Ns = "[object Float32Array]", Bs = "[object Float64Array]", Gs = "[object Int8Array]", Ks = "[object Int16Array]", zs = "[object Int32Array]", qs = "[object Uint8Array]", Js = "[object Uint8ClampedArray]", Qs = "[object Uint16Array]", Ws = "[object Uint32Array]", y = {};
11559
- y[et] = y[$s] = y[Hs] = y[Ls] = y[Ss] = y[Es] = y[Ns] = y[Bs] = y[Gs] = y[Ks] = y[zs] = y[Fs] = y[Vs] = y[rt] = y[Rs] = y[ks] = y[Us] = y[Ds] = y[qs] = y[Js] = y[Qs] = y[Ws] = true;
11571
+ var Ve = R && R.isSet, Os = Ve ? le(Ve) : As, et = "[object Arguments]", $s = "[object Array]", Ss = "[object Boolean]", Es = "[object Date]", xs = "[object Error]", tt = "[object Function]", Is = "[object GeneratorFunction]", Fs = "[object Map]", Vs = "[object Number]", rt = "[object Object]", Rs = "[object RegExp]", ks = "[object Set]", Us = "[object String]", Ds = "[object Symbol]", Ms = "[object WeakMap]", Hs = "[object ArrayBuffer]", Ls = "[object DataView]", Ns = "[object Float32Array]", Gs = "[object Float64Array]", Bs = "[object Int8Array]", Ks = "[object Int16Array]", zs = "[object Int32Array]", qs = "[object Uint8Array]", Js = "[object Uint8ClampedArray]", Qs = "[object Uint16Array]", Ws = "[object Uint32Array]", y = {};
11572
+ y[et] = y[$s] = y[Hs] = y[Ls] = y[Ss] = y[Es] = y[Ns] = y[Gs] = y[Bs] = y[Ks] = y[zs] = y[Fs] = y[Vs] = y[rt] = y[Rs] = y[ks] = y[Us] = y[Ds] = y[qs] = y[Js] = y[Qs] = y[Ws] = true;
11560
11573
  y[xs] = y[tt] = y[Ms] = false;
11561
11574
  function q(t, e, r, n, a, s) {
11562
11575
  var o;
@@ -11703,7 +11716,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
11703
11716
  let ue = class {
11704
11717
  key;
11705
11718
  core;
11706
- cdRef = new Fe$1();
11719
+ cdRef = new Ge$1();
11707
11720
  log = X$1.child({ prefix: "AppLoader" });
11708
11721
  registeredTransformers = [];
11709
11722
  options = lo;
@@ -11958,7 +11971,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
11958
11971
  !Array.isArray(s.tags) || !s.tags.length || this.isValidResourceForTags(s.tags, n.resourceTags) && a.push(s);
11959
11972
  return a.map((s) => {
11960
11973
  if (r) {
11961
- const o = Ve$1(s.url, { ...r });
11974
+ const o = Je$1(s.url, { ...r });
11962
11975
  return s.url = o, s;
11963
11976
  } else
11964
11977
  return s;
@@ -11990,7 +12003,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
11990
12003
  for (const o of a)
11991
12004
  s[o.key] = o.value || "";
11992
12005
  for (const o of a)
11993
- o.value = Ve$1(o.value, s);
12006
+ o.value = Je$1(o.value, s);
11994
12007
  return a;
11995
12008
  }
11996
12009
  getEvaluatedVariablesAsRecord(e, r) {
@@ -12020,7 +12033,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
12020
12033
  });
12021
12034
  const s = {};
12022
12035
  if (a.forEach((o) => {
12023
- const c = Ve$1(o.value, { ...r });
12036
+ const c = Je$1(o.value, { ...r });
12024
12037
  s[o.key] = c;
12025
12038
  }), Object.keys(s).length !== 0)
12026
12039
  return s;
@@ -12043,7 +12056,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
12043
12056
  value: r.apiKey
12044
12057
  });
12045
12058
  }
12046
- return a.map((s) => (s.value = Ve$1(s.value, { ...r }), s));
12059
+ return a.map((s) => (s.value = Je$1(s.value, { ...r }), s));
12047
12060
  }
12048
12061
  isDcuplCdn(e) {
12049
12062
  return e.includes("cdn.dcupl.com");
@@ -12191,10 +12204,10 @@ These attributes will default to Step 1 processing which may be incorrect. This
12191
12204
  const { url: u, headers: m } = this.getRequestOptions(o, r, n, a), l = await fetch(u, { headers: m });
12192
12205
  if (i = l.status, !l.ok)
12193
12206
  throw new Error(`Failed to fetch data from ${u}`);
12194
- const p2 = x$1.now(), f = await l.json(), h2 = x$1.now();
12207
+ const p2 = A.now(), f = await l.json(), h2 = A.now();
12195
12208
  let d = "";
12196
12209
  Array.isArray(f) ? d = f.map((g2) => g2?.key).join("__") : d = f.key;
12197
- const T2 = x$1.getEntriesByName(u.toString());
12210
+ const T2 = A.getEntriesByName(u.toString());
12198
12211
  if (Array.isArray(T2) && T2[0]) {
12199
12212
  const g2 = T2[0], O = {
12200
12213
  name: o.url,
@@ -12219,8 +12232,8 @@ These attributes will default to Step 1 processing which may be incorrect. This
12219
12232
  this.core.analyticsController.set({ value: O, context: this.currentContext });
12220
12233
  }
12221
12234
  Array.isArray(f) ? f.map((g2) => this.addModelOrView(o, g2)) : this.addModelOrView(o, f);
12222
- const A2 = this.progressHandler.update(o, true, "model");
12223
- return this.updateProgressListeners(A2), Promise.resolve(f);
12235
+ const A$12 = this.progressHandler.update(o, true, "model");
12236
+ return this.updateProgressListeners(A$12), Promise.resolve(f);
12224
12237
  } catch (u) {
12225
12238
  this.log.error("Failed to load model resource", u, { url: o.url });
12226
12239
  const m = {
@@ -12259,31 +12272,34 @@ These attributes will default to Step 1 processing which may be incorrect. This
12259
12272
  const { url: f, headers: h2 } = this.getRequestOptions(i, r, a, s), d = await fetch(f, { headers: h2 });
12260
12273
  if (p2 = d.status, !d.ok)
12261
12274
  throw new Error(`Failed to fetch data from ${f}`);
12262
- const T2 = d.headers.get("content-type"), A2 = x$1.now();
12275
+ const T2 = d.headers.get("content-type"), A$12 = A.now();
12263
12276
  let g2;
12264
12277
  i.url.endsWith(".csv") || T2?.includes("text/csv") ? g2 = await d.text() : g2 = await d.json();
12265
- const O = x$1.now(), v2 = x$1.now(), F2 = this.handleTransformerLogic(
12278
+ const O = A.now(), v2 = A.now(), F2 = this.handleTransformerLogic(
12266
12279
  g2,
12267
12280
  i,
12268
12281
  "rawFileTransformer",
12269
12282
  o || []
12270
- ), $2 = x$1.now();
12283
+ ), $2 = A.now();
12271
12284
  let D2 = [], K2 = this.core.modelParser.unprocessedModelDescriptions.get(i.model);
12272
- !K2 && (n?.missingModelHandling?.autoGenerateProperties || i.options?.autoGenerateProperties) && (this.addModelOrView(i, {
12273
- key: i.model,
12274
- autoGenerateProperties: true,
12275
- autoGenerateKey: i.options?.autoGenerateKey || false,
12276
- keyProperty: i?.options?.keyProperty || "key"
12277
- }), K2 = this.core.modelParser.unprocessedModelDescriptions.get(i.model));
12278
- const st2 = x$1.now();
12285
+ if (!K2 && (n?.missingModelHandling?.autoGenerateProperties || i.options?.autoGenerateProperties)) {
12286
+ const C2 = i.options?.autoGenerateProperties ?? n?.missingModelHandling?.autoGenerateProperties ?? true;
12287
+ this.addModelOrView(i, {
12288
+ key: i.model,
12289
+ autoGenerateProperties: C2,
12290
+ autoGenerateKey: i.options?.autoGenerateKey || false,
12291
+ keyProperty: i?.options?.keyProperty || "key"
12292
+ }), K2 = this.core.modelParser.unprocessedModelDescriptions.get(i.model);
12293
+ }
12294
+ const st2 = A.now();
12279
12295
  i.url.endsWith(".csv") || T2?.includes("text/csv") ? K2 && (D2 = this.csvParser.getJsonFromCSVString(F2, K2, i)) : D2 = F2;
12280
- const ot2 = x$1.now(), at2 = x$1.now();
12296
+ const ot2 = A.now(), at2 = A.now();
12281
12297
  try {
12282
12298
  D2 = this.handleTransformerLogic(D2, i, "parsedFileTransformer", o || []);
12283
- } catch (P2) {
12284
- this.log.error("Transformer error", P2, { resource: i.url, model: i.model });
12299
+ } catch (C2) {
12300
+ this.log.error("Transformer error", C2, { resource: i.url, model: i.model });
12285
12301
  }
12286
- const it2 = x$1.now(), de2 = {
12302
+ const it2 = A.now(), de2 = {
12287
12303
  placeholderUid: u,
12288
12304
  model: i.model,
12289
12305
  data: D2,
@@ -12291,9 +12307,9 @@ These attributes will default to Step 1 processing which may be incorrect. This
12291
12307
  keyProperty: i?.options?.keyProperty,
12292
12308
  autoGenerateKey: i.options?.autoGenerateKey,
12293
12309
  autoGenerateProperties: i.options?.autoGenerateProperties
12294
- }, Z2 = x$1.getEntriesByName(f.toString());
12310
+ }, Z2 = A.getEntriesByName(f.toString());
12295
12311
  if (Array.isArray(Z2) && Z2[0]) {
12296
- const P2 = Z2[0], ct2 = {
12312
+ const C2 = Z2[0], ct2 = {
12297
12313
  name: i.url,
12298
12314
  type: "resource",
12299
12315
  createdAt: (/* @__PURE__ */ new Date()).getTime(),
@@ -12301,21 +12317,21 @@ These attributes will default to Step 1 processing which may be incorrect. This
12301
12317
  model: i.model,
12302
12318
  type: "data",
12303
12319
  start: l,
12304
- startTime: P2.startTime,
12305
- requestStart: P2.requestStart,
12306
- responseEnd: P2.responseEnd,
12307
- responseStart: P2.responseStart,
12308
- duration: P2.duration,
12320
+ startTime: C2.startTime,
12321
+ requestStart: C2.requestStart,
12322
+ responseEnd: C2.responseEnd,
12323
+ responseStart: C2.responseStart,
12324
+ duration: C2.duration,
12309
12325
  parseEnd: O,
12310
12326
  rawTransformStart: v2,
12311
12327
  rawTransformEnd: $2,
12312
- parseStart: A2,
12328
+ parseStart: A$12,
12313
12329
  csvToJsonStart: st2,
12314
12330
  csvToJsonEnd: ot2,
12315
12331
  parsedTransformStart: at2,
12316
12332
  parsedTransformEnd: it2,
12317
- decodedBodySize: P2.decodedBodySize,
12318
- encodedBodySize: P2.encodedBodySize,
12333
+ decodedBodySize: C2.decodedBodySize,
12334
+ encodedBodySize: C2.encodedBodySize,
12319
12335
  end: O
12320
12336
  }
12321
12337
  };
@@ -12415,7 +12431,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
12415
12431
  }
12416
12432
  };
12417
12433
  nt([
12418
- Ge$1({
12434
+ Te$1({
12419
12435
  scope: "global",
12420
12436
  origin: "loader",
12421
12437
  type: "loader_config_fetched",
@@ -12424,7 +12440,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
12424
12440
  })
12425
12441
  ], ue.prototype, "fetchConfig");
12426
12442
  nt([
12427
- Ge$1({
12443
+ Te$1({
12428
12444
  scope: "global",
12429
12445
  origin: "loader",
12430
12446
  type: "loader_processed",