@dcupl/bundle 2.0.0-beta.10 → 2.0.0-beta.12
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/dcupl.bundle.js +680 -610
- package/dist/dcupl.bundle.js.map +1 -1
- package/dist/dcupl.bundle.min.js +8 -8
- package/dist/dcupl.bundle.min.js.map +1 -1
- package/package.json +4 -4
package/dist/dcupl.bundle.js
CHANGED
|
@@ -521,45 +521,45 @@
|
|
|
521
521
|
g$1.Request = Request;
|
|
522
522
|
g$1.Response = Response;
|
|
523
523
|
}
|
|
524
|
-
var Ot$1 = typeof global == "object" && global && global.Object === Object && global, fr$1 = typeof self == "object" && self && self.Object === Object && self, O$
|
|
524
|
+
var Ot$1 = typeof global == "object" && global && global.Object === Object && global, fr$1 = typeof self == "object" && self && self.Object === Object && self, O$1 = Ot$1 || fr$1 || Function("return this")(), A$2 = O$1.Symbol, $t$1 = Object.prototype, lr$1 = $t$1.hasOwnProperty, dr$1 = $t$1.toString, k$3 = A$2 ? A$2.toStringTag : void 0;
|
|
525
525
|
function hr$1(r) {
|
|
526
|
-
var e = lr$1.call(r,
|
|
526
|
+
var e = lr$1.call(r, k$3), t = r[k$3];
|
|
527
527
|
try {
|
|
528
|
-
r[
|
|
528
|
+
r[k$3] = void 0;
|
|
529
529
|
var n = true;
|
|
530
530
|
} catch {
|
|
531
531
|
}
|
|
532
532
|
var s = dr$1.call(r);
|
|
533
|
-
return n && (e ? r[
|
|
533
|
+
return n && (e ? r[k$3] = t : delete r[k$3]), s;
|
|
534
534
|
}
|
|
535
535
|
var pr$1 = Object.prototype, gr$1 = pr$1.toString;
|
|
536
536
|
function yr$1(r) {
|
|
537
537
|
return gr$1.call(r);
|
|
538
538
|
}
|
|
539
|
-
var mr$1 = "[object Null]", br$1 = "[object Undefined]",
|
|
539
|
+
var mr$1 = "[object Null]", br$1 = "[object Undefined]", ke$1 = A$2 ? A$2.toStringTag : void 0;
|
|
540
540
|
function N$2(r) {
|
|
541
|
-
return r == null ? r === void 0 ? br$1 : mr$1 :
|
|
541
|
+
return r == null ? r === void 0 ? br$1 : mr$1 : ke$1 && ke$1 in Object(r) ? hr$1(r) : yr$1(r);
|
|
542
542
|
}
|
|
543
|
-
function T$
|
|
543
|
+
function T$4(r) {
|
|
544
544
|
return r != null && typeof r == "object";
|
|
545
545
|
}
|
|
546
546
|
var vr$1 = "[object Symbol]";
|
|
547
547
|
function P$1(r) {
|
|
548
|
-
return typeof r == "symbol" || T$
|
|
548
|
+
return typeof r == "symbol" || T$4(r) && N$2(r) == vr$1;
|
|
549
549
|
}
|
|
550
|
-
function
|
|
550
|
+
function z$2(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$
|
|
555
|
+
var v$2 = Array.isArray, Ge$1 = A$2 ? A$2.prototype : void 0, ze$2 = Ge$1 ? Ge$1.toString : void 0;
|
|
556
556
|
function ce$1(r) {
|
|
557
557
|
if (typeof r == "string")
|
|
558
558
|
return r;
|
|
559
|
-
if (v$
|
|
560
|
-
return
|
|
559
|
+
if (v$2(r))
|
|
560
|
+
return z$2(r, ce$1) + "";
|
|
561
561
|
if (P$1(r))
|
|
562
|
-
return
|
|
562
|
+
return ze$2 ? ze$2.call(r) : "";
|
|
563
563
|
var e = r + "";
|
|
564
564
|
return e == "0" && 1 / r == -1 / 0 ? "-0" : e;
|
|
565
565
|
}
|
|
@@ -577,12 +577,12 @@
|
|
|
577
577
|
var e = typeof r;
|
|
578
578
|
return r != null && (e == "object" || e == "function");
|
|
579
579
|
}
|
|
580
|
-
var
|
|
581
|
-
function
|
|
580
|
+
var Be$2 = NaN, Tr$1 = /^[-+]0x[0-9a-f]+$/i, Or$1 = /^0b[01]+$/i, $r$1 = /^0o[0-7]+$/i, _r$1 = parseInt;
|
|
581
|
+
function Mr$1(r) {
|
|
582
582
|
if (typeof r == "number")
|
|
583
583
|
return r;
|
|
584
584
|
if (P$1(r))
|
|
585
|
-
return
|
|
585
|
+
return Be$2;
|
|
586
586
|
if (E$3(r)) {
|
|
587
587
|
var e = typeof r.valueOf == "function" ? r.valueOf() : r;
|
|
588
588
|
r = E$3(e) ? e + "" : e;
|
|
@@ -591,15 +591,15 @@
|
|
|
591
591
|
return r === 0 ? r : +r;
|
|
592
592
|
r = Sr$1(r);
|
|
593
593
|
var t = Or$1.test(r);
|
|
594
|
-
return t || $r$1.test(r) ? _r$1(r.slice(2), t ? 2 : 8) : Tr$1.test(r) ?
|
|
594
|
+
return t || $r$1.test(r) ? _r$1(r.slice(2), t ? 2 : 8) : Tr$1.test(r) ? Be$2 : +r;
|
|
595
595
|
}
|
|
596
|
-
var Ue$3 = 1 / 0,
|
|
596
|
+
var Ue$3 = 1 / 0, Cr$1 = 17976931348623157e292;
|
|
597
597
|
function Dr$1(r) {
|
|
598
598
|
if (!r)
|
|
599
599
|
return r === 0 ? r : 0;
|
|
600
|
-
if (r =
|
|
600
|
+
if (r = Mr$1(r), r === Ue$3 || r === -Ue$3) {
|
|
601
601
|
var e = r < 0 ? -1 : 1;
|
|
602
|
-
return e *
|
|
602
|
+
return e * Cr$1;
|
|
603
603
|
}
|
|
604
604
|
return r === r ? r : 0;
|
|
605
605
|
}
|
|
@@ -617,7 +617,7 @@
|
|
|
617
617
|
var e = N$2(r);
|
|
618
618
|
return e == Er$1 || e == Qr$1 || e == Ir$1 || e == Nr$1;
|
|
619
619
|
}
|
|
620
|
-
var ge = O$
|
|
620
|
+
var ge = O$1["__core-js_shared__"], He$2 = (function() {
|
|
621
621
|
var r = /[^.]+$/.exec(ge && ge.keys && ge.keys.IE_PROTO || "");
|
|
622
622
|
return r ? "Symbol(src)_1." + r : "";
|
|
623
623
|
})();
|
|
@@ -638,13 +638,13 @@
|
|
|
638
638
|
}
|
|
639
639
|
return "";
|
|
640
640
|
}
|
|
641
|
-
var Pr$1 = /[\\^$.*+?()[\]{}|]/g, Rr$1 = /^\[object .+?Constructor\]$/, Fr$1 = Function.prototype, Lr$1 = Object.prototype,
|
|
642
|
-
"^" +
|
|
641
|
+
var Pr$1 = /[\\^$.*+?()[\]{}|]/g, Rr$1 = /^\[object .+?Constructor\]$/, Fr$1 = Function.prototype, Lr$1 = Object.prototype, kr$1 = Fr$1.toString, Gr$1 = Lr$1.hasOwnProperty, zr$1 = RegExp(
|
|
642
|
+
"^" + kr$1.call(Gr$1).replace(Pr$1, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
643
643
|
);
|
|
644
|
-
function
|
|
644
|
+
function Br$1(r) {
|
|
645
645
|
if (!E$3(r) || jr$1(r))
|
|
646
646
|
return false;
|
|
647
|
-
var e = _t$1(r) ?
|
|
647
|
+
var e = _t$1(r) ? zr$1 : Rr$1;
|
|
648
648
|
return e.test(j$2(r));
|
|
649
649
|
}
|
|
650
650
|
function Ur$1(r, e) {
|
|
@@ -652,9 +652,9 @@
|
|
|
652
652
|
}
|
|
653
653
|
function q$2(r, e) {
|
|
654
654
|
var t = Ur$1(r, e);
|
|
655
|
-
return
|
|
655
|
+
return Br$1(t) ? t : void 0;
|
|
656
656
|
}
|
|
657
|
-
var we$2 = q$2(O$
|
|
657
|
+
var we$2 = q$2(O$1, "WeakMap"), We$2 = Object.create, Hr$1 = /* @__PURE__ */ (function() {
|
|
658
658
|
function r() {
|
|
659
659
|
}
|
|
660
660
|
return function(e) {
|
|
@@ -717,7 +717,7 @@
|
|
|
717
717
|
;
|
|
718
718
|
return r;
|
|
719
719
|
}
|
|
720
|
-
function
|
|
720
|
+
function Mt$1(r, e, t, n) {
|
|
721
721
|
for (var s = r.length, i = t + -1; ++i < s; )
|
|
722
722
|
if (e(r[i], i, r))
|
|
723
723
|
return i;
|
|
@@ -733,14 +733,14 @@
|
|
|
733
733
|
return -1;
|
|
734
734
|
}
|
|
735
735
|
function on$1(r, e, t) {
|
|
736
|
-
return e === e ? sn$1(r, e, t) :
|
|
736
|
+
return e === e ? sn$1(r, e, t) : Mt$1(r, nn$1, t);
|
|
737
737
|
}
|
|
738
738
|
function an$1(r, e) {
|
|
739
739
|
var t = r == null ? 0 : r.length;
|
|
740
740
|
return !!t && on$1(r, e, 0) > -1;
|
|
741
741
|
}
|
|
742
742
|
var un$1 = 9007199254740991, cn$1 = /^(?:0|[1-9]\d*)$/;
|
|
743
|
-
function
|
|
743
|
+
function Ct$1(r, e) {
|
|
744
744
|
var t = typeof r;
|
|
745
745
|
return e = e ?? un$1, !!e && (t == "number" || t != "symbol" && cn$1.test(r)) && r > -1 && r % 1 == 0 && r < e;
|
|
746
746
|
}
|
|
@@ -793,42 +793,42 @@
|
|
|
793
793
|
}
|
|
794
794
|
var vn$1 = "[object Arguments]";
|
|
795
795
|
function Je$2(r) {
|
|
796
|
-
return T$
|
|
796
|
+
return T$4(r) && N$2(r) == vn$1;
|
|
797
797
|
}
|
|
798
798
|
var It$1 = Object.prototype, wn$1 = It$1.hasOwnProperty, An$1 = It$1.propertyIsEnumerable, Qe$2 = Je$2(/* @__PURE__ */ (function() {
|
|
799
799
|
return arguments;
|
|
800
800
|
})()) ? Je$2 : function(r) {
|
|
801
|
-
return T$
|
|
801
|
+
return T$4(r) && wn$1.call(r, "callee") && !An$1.call(r, "callee");
|
|
802
802
|
};
|
|
803
803
|
function xn$1() {
|
|
804
804
|
return false;
|
|
805
805
|
}
|
|
806
|
-
var Et$1 = typeof exports == "object" && exports && !exports.nodeType && exports, Xe$2 = Et$1 && typeof module == "object" && module && !module.nodeType && module, Sn$1 = Xe$2 && Xe$2.exports === Et$1, Ve$3 = Sn$1 ? O$
|
|
807
|
-
y[Fn$1] = y[Ln$1] = y[
|
|
808
|
-
y[On$1] = y[$n$1] = y[Pn$1] = y[_n$1] = y[Rn$1] = y[
|
|
806
|
+
var Et$1 = typeof exports == "object" && exports && !exports.nodeType && exports, Xe$2 = Et$1 && typeof module == "object" && module && !module.nodeType && module, Sn$1 = Xe$2 && Xe$2.exports === Et$1, Ve$3 = Sn$1 ? O$1.Buffer : void 0, Tn$1 = Ve$3 ? Ve$3.isBuffer : void 0, ae$1 = Tn$1 || xn$1, On$1 = "[object Arguments]", $n$1 = "[object Array]", _n$1 = "[object Boolean]", Mn$1 = "[object Date]", Cn$1 = "[object Error]", Dn$1 = "[object Function]", In$1 = "[object Map]", En$1 = "[object Number]", Qn$1 = "[object Object]", Nn$1 = "[object RegExp]", jn$1 = "[object Set]", qn$1 = "[object String]", Kn$1 = "[object WeakMap]", Pn$1 = "[object ArrayBuffer]", Rn$1 = "[object DataView]", Fn$1 = "[object Float32Array]", Ln$1 = "[object Float64Array]", kn$1 = "[object Int8Array]", Gn$1 = "[object Int16Array]", zn$1 = "[object Int32Array]", Bn$1 = "[object Uint8Array]", Un$1 = "[object Uint8ClampedArray]", Hn$1 = "[object Uint16Array]", Wn$1 = "[object Uint32Array]", y = {};
|
|
807
|
+
y[Fn$1] = y[Ln$1] = y[kn$1] = y[Gn$1] = y[zn$1] = y[Bn$1] = y[Un$1] = y[Hn$1] = y[Wn$1] = true;
|
|
808
|
+
y[On$1] = y[$n$1] = y[Pn$1] = y[_n$1] = y[Rn$1] = y[Mn$1] = y[Cn$1] = y[Dn$1] = y[In$1] = y[En$1] = y[Qn$1] = y[Nn$1] = y[jn$1] = y[qn$1] = y[Kn$1] = false;
|
|
809
809
|
function Zn$1(r) {
|
|
810
|
-
return T$
|
|
810
|
+
return T$4(r) && Ee$2(r.length) && !!y[N$2(r)];
|
|
811
811
|
}
|
|
812
812
|
function X$2(r) {
|
|
813
813
|
return function(e) {
|
|
814
814
|
return r(e);
|
|
815
815
|
};
|
|
816
816
|
}
|
|
817
|
-
var Qt$1 = typeof exports == "object" && exports && !exports.nodeType && exports,
|
|
817
|
+
var Qt$1 = typeof exports == "object" && exports && !exports.nodeType && exports, B$2 = Qt$1 && typeof module == "object" && module && !module.nodeType && module, Jn$1 = B$2 && B$2.exports === Qt$1, ye$1 = Jn$1 && Ot$1.process, R$1 = (function() {
|
|
818
818
|
try {
|
|
819
|
-
var r =
|
|
819
|
+
var r = B$2 && B$2.require && B$2.require("util").types;
|
|
820
820
|
return r || ye$1 && ye$1.binding && ye$1.binding("util");
|
|
821
821
|
} catch {
|
|
822
822
|
}
|
|
823
|
-
})(), Ye$2 = R$
|
|
823
|
+
})(), Ye$2 = R$1 && R$1.isTypedArray, Nt$1 = Ye$2 ? X$2(Ye$2) : Zn$1, Xn$1 = Object.prototype, Vn$1 = Xn$1.hasOwnProperty;
|
|
824
824
|
function Yn$1(r, e) {
|
|
825
|
-
var t = v$
|
|
825
|
+
var t = v$2(r), n = !t && Qe$2(r), s = !t && !n && ae$1(r), i = !t && !n && !s && Nt$1(r), o = t || n || s || i, a = o ? bn$1(r.length, String) : [], u = a.length;
|
|
826
826
|
for (var c in r)
|
|
827
827
|
(e || Vn$1.call(r, c)) && !(o && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
828
828
|
(c == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
829
829
|
s && (c == "offset" || c == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
830
830
|
i && (c == "buffer" || c == "byteLength" || c == "byteOffset") || // Skip index properties.
|
|
831
|
-
|
|
831
|
+
Ct$1(c, u))) && a.push(c);
|
|
832
832
|
return a;
|
|
833
833
|
}
|
|
834
834
|
function jt$1(r, e) {
|
|
@@ -850,7 +850,7 @@
|
|
|
850
850
|
}
|
|
851
851
|
var ns$1 = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, ss$1 = /^\w*$/;
|
|
852
852
|
function Ne$2(r, e) {
|
|
853
|
-
if (v$
|
|
853
|
+
if (v$2(r))
|
|
854
854
|
return false;
|
|
855
855
|
var t = typeof r;
|
|
856
856
|
return t == "number" || t == "symbol" || t == "boolean" || r == null || P$1(r) ? true : ss$1.test(r) || !ns$1.test(r) || e != null && r in Object(e);
|
|
@@ -882,18 +882,18 @@
|
|
|
882
882
|
var t = this.__data__;
|
|
883
883
|
return this.size += this.has(r) ? 0 : 1, t[r] = U$2 && e === void 0 ? ps$1 : e, this;
|
|
884
884
|
}
|
|
885
|
-
function Q$
|
|
885
|
+
function Q$4(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$
|
|
893
|
-
Q$
|
|
894
|
-
Q$
|
|
895
|
-
Q$
|
|
896
|
-
Q$
|
|
892
|
+
Q$4.prototype.clear = is$1;
|
|
893
|
+
Q$4.prototype.delete = os$1;
|
|
894
|
+
Q$4.prototype.get = fs$1;
|
|
895
|
+
Q$4.prototype.has = hs$1;
|
|
896
|
+
Q$4.prototype.set = gs$1;
|
|
897
897
|
function ys$1() {
|
|
898
898
|
this.__data__ = [], this.size = 0;
|
|
899
899
|
}
|
|
@@ -934,12 +934,12 @@
|
|
|
934
934
|
$$2.prototype.get = ws$1;
|
|
935
935
|
$$2.prototype.has = As$1;
|
|
936
936
|
$$2.prototype.set = xs$1;
|
|
937
|
-
var H$
|
|
937
|
+
var H$2 = q$2(O$1, "Map");
|
|
938
938
|
function Ss$1() {
|
|
939
939
|
this.size = 0, this.__data__ = {
|
|
940
|
-
hash: new Q$
|
|
941
|
-
map: new (H$
|
|
942
|
-
string: new Q$
|
|
940
|
+
hash: new Q$4(),
|
|
941
|
+
map: new (H$2 || $$2)(),
|
|
942
|
+
string: new Q$4()
|
|
943
943
|
};
|
|
944
944
|
}
|
|
945
945
|
function Ts$1(r) {
|
|
@@ -960,7 +960,7 @@
|
|
|
960
960
|
function _s$1(r) {
|
|
961
961
|
return he(this, r).has(r);
|
|
962
962
|
}
|
|
963
|
-
function
|
|
963
|
+
function Ms$1(r, e) {
|
|
964
964
|
var t = he(this, r), n = t.size;
|
|
965
965
|
return t.set(r, e), this.size += t.size == n ? 0 : 1, this;
|
|
966
966
|
}
|
|
@@ -975,11 +975,11 @@
|
|
|
975
975
|
_.prototype.delete = Os$1;
|
|
976
976
|
_.prototype.get = $s$1;
|
|
977
977
|
_.prototype.has = _s$1;
|
|
978
|
-
_.prototype.set =
|
|
979
|
-
var
|
|
978
|
+
_.prototype.set = Ms$1;
|
|
979
|
+
var Cs$1 = "Expected a function";
|
|
980
980
|
function je$2(r, e) {
|
|
981
981
|
if (typeof r != "function" || e != null && typeof e != "function")
|
|
982
|
-
throw new TypeError(
|
|
982
|
+
throw new TypeError(Cs$1);
|
|
983
983
|
var t = function() {
|
|
984
984
|
var n = arguments, s = e ? e.apply(this, n) : n[0], i = t.cache;
|
|
985
985
|
if (i.has(s))
|
|
@@ -1007,7 +1007,7 @@
|
|
|
1007
1007
|
return r == null ? "" : ce$1(r);
|
|
1008
1008
|
}
|
|
1009
1009
|
function Kt$1(r, e) {
|
|
1010
|
-
return v$
|
|
1010
|
+
return v$2(r) ? r : Ne$2(r, e) ? [r] : Ns$1(qe$3(r));
|
|
1011
1011
|
}
|
|
1012
1012
|
function pe$1(r) {
|
|
1013
1013
|
if (typeof r == "string" || P$1(r))
|
|
@@ -1021,7 +1021,7 @@
|
|
|
1021
1021
|
r = r[pe$1(e[t++])];
|
|
1022
1022
|
return t && t == n ? r : void 0;
|
|
1023
1023
|
}
|
|
1024
|
-
function W$
|
|
1024
|
+
function W$2(r, e, t) {
|
|
1025
1025
|
var n = r == null ? void 0 : Ke$2(r, e);
|
|
1026
1026
|
return n === void 0 ? t : n;
|
|
1027
1027
|
}
|
|
@@ -1030,9 +1030,9 @@
|
|
|
1030
1030
|
r[s + t] = e[t];
|
|
1031
1031
|
return r;
|
|
1032
1032
|
}
|
|
1033
|
-
var et$2 = A$
|
|
1033
|
+
var et$2 = A$2 ? A$2.isConcatSpreadable : void 0;
|
|
1034
1034
|
function js$1(r) {
|
|
1035
|
-
return v$
|
|
1035
|
+
return v$2(r) || Qe$2(r) || !!(et$2 && r && r[et$2]);
|
|
1036
1036
|
}
|
|
1037
1037
|
function qs$1(r, e, t, n, s) {
|
|
1038
1038
|
var i = -1, o = r.length;
|
|
@@ -1042,9 +1042,9 @@
|
|
|
1042
1042
|
}
|
|
1043
1043
|
return s;
|
|
1044
1044
|
}
|
|
1045
|
-
var Ks$1 = jt$1(Object.getPrototypeOf, Object), Ps$1 = "\\ud800-\\udfff", Rs$1 = "\\u0300-\\u036f", Fs$1 = "\\ufe20-\\ufe2f", Ls$1 = "\\u20d0-\\u20ff",
|
|
1045
|
+
var Ks$1 = jt$1(Object.getPrototypeOf, Object), Ps$1 = "\\ud800-\\udfff", Rs$1 = "\\u0300-\\u036f", Fs$1 = "\\ufe20-\\ufe2f", Ls$1 = "\\u20d0-\\u20ff", ks$1 = Rs$1 + Fs$1 + Ls$1, Gs$1 = "\\ufe0e\\ufe0f", zs$1 = "\\u200d", Bs$1 = RegExp("[" + zs$1 + Ps$1 + ks$1 + Gs$1 + "]");
|
|
1046
1046
|
function Us$1(r) {
|
|
1047
|
-
return
|
|
1047
|
+
return Bs$1.test(r);
|
|
1048
1048
|
}
|
|
1049
1049
|
function Rt$1(r, e, t) {
|
|
1050
1050
|
return r === r && (t !== void 0 && (r = r <= t ? r : t), r = r >= e ? r : e), r;
|
|
@@ -1067,7 +1067,7 @@
|
|
|
1067
1067
|
var t = this.__data__;
|
|
1068
1068
|
if (t instanceof $$2) {
|
|
1069
1069
|
var n = t.__data__;
|
|
1070
|
-
if (!H$
|
|
1070
|
+
if (!H$2 || n.length < Xs$1 - 1)
|
|
1071
1071
|
return n.push([r, e]), this.size = ++t.size, this;
|
|
1072
1072
|
t = this.__data__ = new _(n);
|
|
1073
1073
|
}
|
|
@@ -1082,7 +1082,7 @@
|
|
|
1082
1082
|
S$2.prototype.get = Zs$1;
|
|
1083
1083
|
S$2.prototype.has = Js$1;
|
|
1084
1084
|
S$2.prototype.set = Vs$1;
|
|
1085
|
-
var Ft$1 = typeof exports == "object" && exports && !exports.nodeType && exports, tt$2 = Ft$1 && typeof module == "object" && module && !module.nodeType && module, Ys$1 = tt$2 && tt$2.exports === Ft$1, rt$2 = Ys$1 ? O$
|
|
1085
|
+
var Ft$1 = typeof exports == "object" && exports && !exports.nodeType && exports, tt$2 = Ft$1 && typeof module == "object" && module && !module.nodeType && module, Ys$1 = tt$2 && tt$2.exports === Ft$1, rt$2 = Ys$1 ? O$1.Buffer : void 0, nt$2 = rt$2 ? rt$2.allocUnsafe : void 0;
|
|
1086
1086
|
function ei(r, e) {
|
|
1087
1087
|
if (e)
|
|
1088
1088
|
return r.slice();
|
|
@@ -1106,18 +1106,18 @@
|
|
|
1106
1106
|
} : ri;
|
|
1107
1107
|
function oi(r, e, t) {
|
|
1108
1108
|
var n = e(r);
|
|
1109
|
-
return v$
|
|
1109
|
+
return v$2(r) ? n : Pt$1(n, t(r));
|
|
1110
1110
|
}
|
|
1111
1111
|
function Ae$2(r) {
|
|
1112
1112
|
return oi(r, le$1, ii);
|
|
1113
1113
|
}
|
|
1114
|
-
var xe$2 = q$2(O$
|
|
1115
|
-
(xe$2 && w(new xe$2(new ArrayBuffer(1))) != ct$
|
|
1114
|
+
var xe$2 = q$2(O$1, "DataView"), Se$2 = q$2(O$1, "Promise"), Te$2 = q$2(O$1, "Set"), it$2 = "[object Map]", ai = "[object Object]", ot$3 = "[object Promise]", at$2 = "[object Set]", ut$2 = "[object WeakMap]", ct$2 = "[object DataView]", ui = j$2(xe$2), ci = j$2(H$2), fi = j$2(Se$2), li = j$2(Te$2), di = j$2(we$2), w = N$2;
|
|
1115
|
+
(xe$2 && w(new xe$2(new ArrayBuffer(1))) != ct$2 || H$2 && w(new H$2()) != it$2 || Se$2 && w(Se$2.resolve()) != ot$3 || Te$2 && w(new Te$2()) != at$2 || we$2 && w(new we$2()) != ut$2) && (w = function(r) {
|
|
1116
1116
|
var e = N$2(r), t = e == ai ? r.constructor : void 0, n = t ? j$2(t) : "";
|
|
1117
1117
|
if (n)
|
|
1118
1118
|
switch (n) {
|
|
1119
1119
|
case ui:
|
|
1120
|
-
return ct$
|
|
1120
|
+
return ct$2;
|
|
1121
1121
|
case ci:
|
|
1122
1122
|
return it$2;
|
|
1123
1123
|
case fi:
|
|
@@ -1134,13 +1134,13 @@
|
|
|
1134
1134
|
var e = r.length, t = new r.constructor(e);
|
|
1135
1135
|
return e && typeof r[0] == "string" && pi.call(r, "index") && (t.index = r.index, t.input = r.input), t;
|
|
1136
1136
|
}
|
|
1137
|
-
var ue$1 = O$
|
|
1138
|
-
function Pe$
|
|
1137
|
+
var ue$1 = O$1.Uint8Array;
|
|
1138
|
+
function Pe$1(r) {
|
|
1139
1139
|
var e = new r.constructor(r.byteLength);
|
|
1140
1140
|
return new ue$1(e).set(new ue$1(r)), e;
|
|
1141
1141
|
}
|
|
1142
1142
|
function yi(r, e) {
|
|
1143
|
-
var t = Pe$
|
|
1143
|
+
var t = Pe$1(r.buffer);
|
|
1144
1144
|
return new r.constructor(t, r.byteOffset, r.byteLength);
|
|
1145
1145
|
}
|
|
1146
1146
|
var mi = /\w*$/;
|
|
@@ -1148,20 +1148,20 @@
|
|
|
1148
1148
|
var e = new r.constructor(r.source, mi.exec(r));
|
|
1149
1149
|
return e.lastIndex = r.lastIndex, e;
|
|
1150
1150
|
}
|
|
1151
|
-
var ft = A$
|
|
1151
|
+
var ft$2 = A$2 ? A$2.prototype : void 0, lt$2 = ft$2 ? ft$2.valueOf : void 0;
|
|
1152
1152
|
function vi(r) {
|
|
1153
1153
|
return lt$2 ? Object(lt$2.call(r)) : {};
|
|
1154
1154
|
}
|
|
1155
1155
|
function wi(r, e) {
|
|
1156
|
-
var t = e ? Pe$
|
|
1156
|
+
var t = e ? Pe$1(r.buffer) : r.buffer;
|
|
1157
1157
|
return new r.constructor(t, r.byteOffset, r.length);
|
|
1158
1158
|
}
|
|
1159
|
-
var Ai = "[object Boolean]", xi = "[object Date]", Si = "[object Map]", Ti = "[object Number]", Oi = "[object RegExp]", $i = "[object Set]", _i = "[object String]",
|
|
1159
|
+
var Ai = "[object Boolean]", xi = "[object Date]", Si = "[object Map]", Ti = "[object Number]", Oi = "[object RegExp]", $i = "[object Set]", _i = "[object String]", Mi = "[object Symbol]", Ci = "[object ArrayBuffer]", Di = "[object DataView]", Ii = "[object Float32Array]", Ei = "[object Float64Array]", Qi = "[object Int8Array]", Ni = "[object Int16Array]", ji = "[object Int32Array]", qi = "[object Uint8Array]", Ki = "[object Uint8ClampedArray]", Pi = "[object Uint16Array]", Ri = "[object Uint32Array]";
|
|
1160
1160
|
function Fi(r, e, t) {
|
|
1161
1161
|
var n = r.constructor;
|
|
1162
1162
|
switch (e) {
|
|
1163
|
-
case
|
|
1164
|
-
return Pe$
|
|
1163
|
+
case Ci:
|
|
1164
|
+
return Pe$1(r);
|
|
1165
1165
|
case Ai:
|
|
1166
1166
|
case xi:
|
|
1167
1167
|
return new n(+r);
|
|
@@ -1186,38 +1186,38 @@
|
|
|
1186
1186
|
return bi(r);
|
|
1187
1187
|
case $i:
|
|
1188
1188
|
return new n();
|
|
1189
|
-
case
|
|
1189
|
+
case Mi:
|
|
1190
1190
|
return vi(r);
|
|
1191
1191
|
}
|
|
1192
1192
|
}
|
|
1193
1193
|
function Li(r) {
|
|
1194
1194
|
return typeof r.constructor == "function" && !Dt$1(r) ? Hr$1(Ks$1(r)) : {};
|
|
1195
1195
|
}
|
|
1196
|
-
var
|
|
1197
|
-
function
|
|
1198
|
-
return T$
|
|
1196
|
+
var ki = "[object Map]";
|
|
1197
|
+
function Gi(r) {
|
|
1198
|
+
return T$4(r) && w(r) == ki;
|
|
1199
1199
|
}
|
|
1200
|
-
var dt$1 = R$
|
|
1200
|
+
var dt$1 = R$1 && R$1.isMap, zi = dt$1 ? X$2(dt$1) : Gi, Bi = "[object Set]";
|
|
1201
1201
|
function Ui(r) {
|
|
1202
|
-
return T$
|
|
1202
|
+
return T$4(r) && w(r) == Bi;
|
|
1203
1203
|
}
|
|
1204
|
-
var ht = R$
|
|
1205
|
-
g[Lt$1] = g[Zi] = g[ao$1] = g[uo$1] = g[Ji] = g[Xi] = g[co$1] = g[fo$1] = g[lo$1] = g[ho$1] = g[po$1] = g[eo$1] = g[to$1] = g[
|
|
1206
|
-
g[Vi] = g[
|
|
1204
|
+
var ht = R$1 && R$1.isSet, Hi = ht ? X$2(ht) : Ui, Wi = 1, Lt$1 = "[object Arguments]", Zi = "[object Array]", Ji = "[object Boolean]", Xi = "[object Date]", Vi = "[object Error]", kt$1 = "[object Function]", Yi = "[object GeneratorFunction]", eo$1 = "[object Map]", to$1 = "[object Number]", Gt$1 = "[object Object]", ro$1 = "[object RegExp]", no$1 = "[object Set]", so$1 = "[object String]", io$1 = "[object Symbol]", oo$1 = "[object WeakMap]", ao$1 = "[object ArrayBuffer]", uo$1 = "[object DataView]", co$1 = "[object Float32Array]", fo$1 = "[object Float64Array]", lo$1 = "[object Int8Array]", ho$1 = "[object Int16Array]", po$1 = "[object Int32Array]", go$1 = "[object Uint8Array]", yo$1 = "[object Uint8ClampedArray]", mo$1 = "[object Uint16Array]", bo$1 = "[object Uint32Array]", g = {};
|
|
1205
|
+
g[Lt$1] = g[Zi] = g[ao$1] = g[uo$1] = g[Ji] = g[Xi] = g[co$1] = g[fo$1] = g[lo$1] = g[ho$1] = g[po$1] = g[eo$1] = g[to$1] = g[Gt$1] = g[ro$1] = g[no$1] = g[so$1] = g[io$1] = g[go$1] = g[yo$1] = g[mo$1] = g[bo$1] = true;
|
|
1206
|
+
g[Vi] = g[kt$1] = g[oo$1] = false;
|
|
1207
1207
|
function ie(r, e, t, n, s, i) {
|
|
1208
1208
|
var o, a = e & Wi;
|
|
1209
1209
|
if (o !== void 0)
|
|
1210
1210
|
return o;
|
|
1211
1211
|
if (!E$3(r))
|
|
1212
1212
|
return r;
|
|
1213
|
-
var u = v$
|
|
1213
|
+
var u = v$2(r);
|
|
1214
1214
|
if (u)
|
|
1215
1215
|
o = gi(r);
|
|
1216
1216
|
else {
|
|
1217
|
-
var c = w(r), f = c ==
|
|
1217
|
+
var c = w(r), f = c == kt$1 || c == Yi;
|
|
1218
1218
|
if (ae$1(r))
|
|
1219
1219
|
return ei(r, a);
|
|
1220
|
-
if (c ==
|
|
1220
|
+
if (c == Gt$1 || c == Lt$1 || f && !s)
|
|
1221
1221
|
o = f ? {} : Li(r);
|
|
1222
1222
|
else {
|
|
1223
1223
|
if (!g[c])
|
|
@@ -1231,16 +1231,16 @@
|
|
|
1231
1231
|
return l;
|
|
1232
1232
|
i.set(r, o), Hi(r) ? r.forEach(function(p2) {
|
|
1233
1233
|
o.add(ie(p2, e, t, p2, r, i));
|
|
1234
|
-
}) :
|
|
1235
|
-
o.set(
|
|
1234
|
+
}) : zi(r) && r.forEach(function(p2, m) {
|
|
1235
|
+
o.set(m, ie(p2, e, t, m, r, i));
|
|
1236
1236
|
});
|
|
1237
1237
|
var d = Ae$2, h2 = u ? void 0 : d(r);
|
|
1238
|
-
return rn$1(h2 || r, function(p2,
|
|
1239
|
-
h2 && (
|
|
1238
|
+
return rn$1(h2 || r, function(p2, m) {
|
|
1239
|
+
h2 && (m = p2, p2 = r[m]), hn$1(o, m, ie(p2, e, t, m, r, i));
|
|
1240
1240
|
}), o;
|
|
1241
1241
|
}
|
|
1242
1242
|
var vo$1 = 1, wo$1 = 4;
|
|
1243
|
-
function
|
|
1243
|
+
function C$2(r) {
|
|
1244
1244
|
return ie(r, vo$1 | wo$1);
|
|
1245
1245
|
}
|
|
1246
1246
|
var Ao$1 = "__lodash_hash_undefined__";
|
|
@@ -1263,11 +1263,11 @@
|
|
|
1263
1263
|
return true;
|
|
1264
1264
|
return false;
|
|
1265
1265
|
}
|
|
1266
|
-
function
|
|
1266
|
+
function zt$1(r, e) {
|
|
1267
1267
|
return r.has(e);
|
|
1268
1268
|
}
|
|
1269
1269
|
var Oo$1 = 1, $o$1 = 2;
|
|
1270
|
-
function
|
|
1270
|
+
function Bt$1(r, e, t, n, s, i) {
|
|
1271
1271
|
var o = t & Oo$1, a = r.length, u = e.length;
|
|
1272
1272
|
if (a != u && !(o && u > a))
|
|
1273
1273
|
return false;
|
|
@@ -1276,24 +1276,24 @@
|
|
|
1276
1276
|
return c == e && f == r;
|
|
1277
1277
|
var l = -1, d = true, h2 = t & $o$1 ? new Z$3() : void 0;
|
|
1278
1278
|
for (i.set(r, e), i.set(e, r); ++l < a; ) {
|
|
1279
|
-
var p2 = r[l],
|
|
1279
|
+
var p2 = r[l], m = e[l];
|
|
1280
1280
|
if (n)
|
|
1281
|
-
var
|
|
1282
|
-
if (
|
|
1283
|
-
if (
|
|
1281
|
+
var M2 = o ? n(m, p2, l, e, r, i) : n(p2, m, l, r, e, i);
|
|
1282
|
+
if (M2 !== void 0) {
|
|
1283
|
+
if (M2)
|
|
1284
1284
|
continue;
|
|
1285
1285
|
d = false;
|
|
1286
1286
|
break;
|
|
1287
1287
|
}
|
|
1288
1288
|
if (h2) {
|
|
1289
|
-
if (!To$1(e, function(D2,
|
|
1290
|
-
if (!
|
|
1291
|
-
return h2.push(
|
|
1289
|
+
if (!To$1(e, function(D2, I2) {
|
|
1290
|
+
if (!zt$1(h2, I2) && (p2 === D2 || s(p2, D2, t, n, i)))
|
|
1291
|
+
return h2.push(I2);
|
|
1292
1292
|
})) {
|
|
1293
1293
|
d = false;
|
|
1294
1294
|
break;
|
|
1295
1295
|
}
|
|
1296
|
-
} else if (!(p2 ===
|
|
1296
|
+
} else if (!(p2 === m || s(p2, m, t, n, i))) {
|
|
1297
1297
|
d = false;
|
|
1298
1298
|
break;
|
|
1299
1299
|
}
|
|
@@ -1306,14 +1306,14 @@
|
|
|
1306
1306
|
t[++e] = [s, n];
|
|
1307
1307
|
}), t;
|
|
1308
1308
|
}
|
|
1309
|
-
function
|
|
1309
|
+
function Mo(r) {
|
|
1310
1310
|
var e = -1, t = Array(r.size);
|
|
1311
1311
|
return r.forEach(function(n) {
|
|
1312
1312
|
t[++e] = n;
|
|
1313
1313
|
}), t;
|
|
1314
1314
|
}
|
|
1315
|
-
var
|
|
1316
|
-
function
|
|
1315
|
+
var Co$1 = 1, Do = 2, Io$1 = "[object Boolean]", Eo$1 = "[object Date]", Qo = "[object Error]", No = "[object Map]", jo$1 = "[object Number]", qo = "[object RegExp]", Ko = "[object Set]", Po$1 = "[object String]", Ro = "[object Symbol]", Fo$1 = "[object ArrayBuffer]", Lo = "[object DataView]", pt$1 = A$2 ? A$2.prototype : void 0, me$1 = pt$1 ? pt$1.valueOf : void 0;
|
|
1316
|
+
function ko$1(r, e, t, n, s, i, o) {
|
|
1317
1317
|
switch (t) {
|
|
1318
1318
|
case Lo:
|
|
1319
1319
|
if (r.byteLength != e.byteLength || r.byteOffset != e.byteOffset)
|
|
@@ -1333,14 +1333,14 @@
|
|
|
1333
1333
|
case No:
|
|
1334
1334
|
var a = _o$1;
|
|
1335
1335
|
case Ko:
|
|
1336
|
-
var u = n &
|
|
1337
|
-
if (a || (a =
|
|
1336
|
+
var u = n & Co$1;
|
|
1337
|
+
if (a || (a = Mo), r.size != e.size && !u)
|
|
1338
1338
|
return false;
|
|
1339
1339
|
var c = o.get(r);
|
|
1340
1340
|
if (c)
|
|
1341
1341
|
return c == e;
|
|
1342
1342
|
n |= Do, o.set(r, e);
|
|
1343
|
-
var f =
|
|
1343
|
+
var f = Bt$1(a(r), a(e), n, s, i, o);
|
|
1344
1344
|
return o.delete(r), f;
|
|
1345
1345
|
case Ro:
|
|
1346
1346
|
if (me$1)
|
|
@@ -1348,41 +1348,41 @@
|
|
|
1348
1348
|
}
|
|
1349
1349
|
return false;
|
|
1350
1350
|
}
|
|
1351
|
-
var
|
|
1351
|
+
var Go = 1, zo = Object.prototype, Bo = zo.hasOwnProperty;
|
|
1352
1352
|
function Uo$1(r, e, t, n, s, i) {
|
|
1353
|
-
var o = t &
|
|
1353
|
+
var o = t & Go, a = Ae$2(r), u = a.length, c = Ae$2(e), f = c.length;
|
|
1354
1354
|
if (u != f && !o)
|
|
1355
1355
|
return false;
|
|
1356
1356
|
for (var l = u; l--; ) {
|
|
1357
1357
|
var d = a[l];
|
|
1358
|
-
if (!(o ? d in e :
|
|
1358
|
+
if (!(o ? d in e : Bo.call(e, d)))
|
|
1359
1359
|
return false;
|
|
1360
1360
|
}
|
|
1361
1361
|
var h2 = i.get(r), p2 = i.get(e);
|
|
1362
1362
|
if (h2 && p2)
|
|
1363
1363
|
return h2 == e && p2 == r;
|
|
1364
|
-
var
|
|
1364
|
+
var m = true;
|
|
1365
1365
|
i.set(r, e), i.set(e, r);
|
|
1366
|
-
for (var
|
|
1366
|
+
for (var M2 = o; ++l < u; ) {
|
|
1367
1367
|
d = a[l];
|
|
1368
|
-
var D2 = r[d],
|
|
1368
|
+
var D2 = r[d], I2 = e[d];
|
|
1369
1369
|
if (n)
|
|
1370
|
-
var Le2 = o ? n(
|
|
1371
|
-
if (!(Le2 === void 0 ? D2 ===
|
|
1372
|
-
|
|
1370
|
+
var Le2 = o ? n(I2, D2, d, e, r, i) : n(D2, I2, d, r, e, i);
|
|
1371
|
+
if (!(Le2 === void 0 ? D2 === I2 || s(D2, I2, t, n, i) : Le2)) {
|
|
1372
|
+
m = false;
|
|
1373
1373
|
break;
|
|
1374
1374
|
}
|
|
1375
|
-
|
|
1375
|
+
M2 || (M2 = d == "constructor");
|
|
1376
1376
|
}
|
|
1377
|
-
if (
|
|
1377
|
+
if (m && !M2) {
|
|
1378
1378
|
var ee2 = r.constructor, te2 = e.constructor;
|
|
1379
|
-
ee2 != te2 && "constructor" in r && "constructor" in e && !(typeof ee2 == "function" && ee2 instanceof ee2 && typeof te2 == "function" && te2 instanceof te2) && (
|
|
1379
|
+
ee2 != te2 && "constructor" in r && "constructor" in e && !(typeof ee2 == "function" && ee2 instanceof ee2 && typeof te2 == "function" && te2 instanceof te2) && (m = false);
|
|
1380
1380
|
}
|
|
1381
|
-
return i.delete(r), i.delete(e),
|
|
1381
|
+
return i.delete(r), i.delete(e), m;
|
|
1382
1382
|
}
|
|
1383
1383
|
var Ho = 1, gt = "[object Arguments]", yt = "[object Array]", re$1 = "[object Object]", Wo = Object.prototype, mt = Wo.hasOwnProperty;
|
|
1384
1384
|
function Zo(r, e, t, n, s, i) {
|
|
1385
|
-
var o = v$
|
|
1385
|
+
var o = v$2(r), a = v$2(e), u = o ? yt : w(r), c = a ? yt : w(e);
|
|
1386
1386
|
u = u == gt ? re$1 : u, c = c == gt ? re$1 : c;
|
|
1387
1387
|
var f = u == re$1, l = c == re$1, d = u == c;
|
|
1388
1388
|
if (d && ae$1(r)) {
|
|
@@ -1391,18 +1391,18 @@
|
|
|
1391
1391
|
o = true, f = false;
|
|
1392
1392
|
}
|
|
1393
1393
|
if (d && !f)
|
|
1394
|
-
return i || (i = new S$2()), o || Nt$1(r) ?
|
|
1394
|
+
return i || (i = new S$2()), o || Nt$1(r) ? Bt$1(r, e, t, n, s, i) : ko$1(r, e, u, t, n, s, i);
|
|
1395
1395
|
if (!(t & Ho)) {
|
|
1396
1396
|
var h2 = f && mt.call(r, "__wrapped__"), p2 = l && mt.call(e, "__wrapped__");
|
|
1397
1397
|
if (h2 || p2) {
|
|
1398
|
-
var
|
|
1399
|
-
return i || (i = new S$2()), s(
|
|
1398
|
+
var m = h2 ? r.value() : r, M2 = p2 ? e.value() : e;
|
|
1399
|
+
return i || (i = new S$2()), s(m, M2, t, n, i);
|
|
1400
1400
|
}
|
|
1401
1401
|
}
|
|
1402
1402
|
return d ? (i || (i = new S$2()), Uo$1(r, e, t, n, s, i)) : false;
|
|
1403
1403
|
}
|
|
1404
|
-
function V$
|
|
1405
|
-
return r === e ? true : r == null || e == null || !T$
|
|
1404
|
+
function V$2(r, e, t, n, s) {
|
|
1405
|
+
return r === e ? true : r == null || e == null || !T$4(r) && !T$4(e) ? r !== r && e !== e : Zo(r, e, t, n, V$2, s);
|
|
1406
1406
|
}
|
|
1407
1407
|
var Jo = 1, Xo = 2;
|
|
1408
1408
|
function Ut$1(r, e, t, n) {
|
|
@@ -1422,7 +1422,7 @@
|
|
|
1422
1422
|
return false;
|
|
1423
1423
|
} else {
|
|
1424
1424
|
var f = new S$2(), l;
|
|
1425
|
-
if (!(l === void 0 ? V$
|
|
1425
|
+
if (!(l === void 0 ? V$2(c, u, Jo | Xo, n, f) : l))
|
|
1426
1426
|
return false;
|
|
1427
1427
|
}
|
|
1428
1428
|
}
|
|
@@ -1460,7 +1460,7 @@
|
|
|
1460
1460
|
break;
|
|
1461
1461
|
r = r[o];
|
|
1462
1462
|
}
|
|
1463
|
-
return i || ++n != s ? i : (s = r == null ? 0 : r.length, !!s && Ee$2(s) &&
|
|
1463
|
+
return i || ++n != s ? i : (s = r == null ? 0 : r.length, !!s && Ee$2(s) && Ct$1(o, s) && (v$2(r) || Qe$2(r)));
|
|
1464
1464
|
}
|
|
1465
1465
|
function ta(r, e) {
|
|
1466
1466
|
return r != null && ea(r, e, Yo);
|
|
@@ -1468,8 +1468,8 @@
|
|
|
1468
1468
|
var ra = 1, na = 2;
|
|
1469
1469
|
function sa(r, e) {
|
|
1470
1470
|
return Ne$2(r) && Ht$1(e) ? Zt$1(pe$1(r), e) : function(t) {
|
|
1471
|
-
var n = W$
|
|
1472
|
-
return n === void 0 && n === e ? ta(t, r) : V$
|
|
1471
|
+
var n = W$2(t, r);
|
|
1472
|
+
return n === void 0 && n === e ? ta(t, r) : V$2(e, n, ra | na);
|
|
1473
1473
|
};
|
|
1474
1474
|
}
|
|
1475
1475
|
function Jt$1(r) {
|
|
@@ -1486,7 +1486,7 @@
|
|
|
1486
1486
|
return Ne$2(r) ? Jt$1(pe$1(r)) : ia(r);
|
|
1487
1487
|
}
|
|
1488
1488
|
function Y$3(r) {
|
|
1489
|
-
return typeof r == "function" ? r : r == null ? fe : typeof r == "object" ? v$
|
|
1489
|
+
return typeof r == "function" ? r : r == null ? fe : typeof r == "object" ? v$2(r) ? sa(r[0], r[1]) : Vo$1(r) : oa(r);
|
|
1490
1490
|
}
|
|
1491
1491
|
function aa(r) {
|
|
1492
1492
|
return function(e, t, n) {
|
|
@@ -1515,14 +1515,14 @@
|
|
|
1515
1515
|
}
|
|
1516
1516
|
var Xt$1 = fa(ca);
|
|
1517
1517
|
function be$1(r) {
|
|
1518
|
-
return T$
|
|
1518
|
+
return T$4(r) && F$1(r);
|
|
1519
1519
|
}
|
|
1520
1520
|
var la = 200;
|
|
1521
1521
|
function da(r, e, t, n) {
|
|
1522
1522
|
var s = -1, i = an$1, o = true, a = r.length, u = [], c = e.length;
|
|
1523
1523
|
if (!a)
|
|
1524
1524
|
return u;
|
|
1525
|
-
t && (e =
|
|
1525
|
+
t && (e = z$2(e, X$2(t))), e.length >= la && (i = zt$1, o = false, e = new Z$3(e));
|
|
1526
1526
|
e:
|
|
1527
1527
|
for (; ++s < a; ) {
|
|
1528
1528
|
var f = r[s], l = t == null ? f : t(f);
|
|
@@ -1563,7 +1563,7 @@
|
|
|
1563
1563
|
}), t;
|
|
1564
1564
|
}
|
|
1565
1565
|
function Vt$1(r, e, t) {
|
|
1566
|
-
var n = v$
|
|
1566
|
+
var n = v$2(r) ? ga : ya;
|
|
1567
1567
|
return n(r, Y$3(e));
|
|
1568
1568
|
}
|
|
1569
1569
|
function ma(r) {
|
|
@@ -1585,7 +1585,7 @@
|
|
|
1585
1585
|
if (!n)
|
|
1586
1586
|
return -1;
|
|
1587
1587
|
var s = t == null ? 0 : De$2(t);
|
|
1588
|
-
return s < 0 && (s = ba(n + s, 0)),
|
|
1588
|
+
return s < 0 && (s = ba(n + s, 0)), Mt$1(r, Y$3(e), s);
|
|
1589
1589
|
}
|
|
1590
1590
|
var va = ma(Oe$3);
|
|
1591
1591
|
function wa(r, e) {
|
|
@@ -1596,15 +1596,15 @@
|
|
|
1596
1596
|
}
|
|
1597
1597
|
var Aa = "[object String]";
|
|
1598
1598
|
function xa(r) {
|
|
1599
|
-
return typeof r == "string" || !v$
|
|
1599
|
+
return typeof r == "string" || !v$2(r) && T$4(r) && N$2(r) == Aa;
|
|
1600
1600
|
}
|
|
1601
1601
|
function vt(r, e) {
|
|
1602
|
-
return V$
|
|
1602
|
+
return V$2(r, e);
|
|
1603
1603
|
}
|
|
1604
1604
|
function ne$1(r, e, t) {
|
|
1605
1605
|
t = typeof t == "function" ? t : void 0;
|
|
1606
1606
|
var n = t ? t(r, e) : void 0;
|
|
1607
|
-
return n === void 0 ? V$
|
|
1607
|
+
return n === void 0 ? V$2(r, e, void 0, t) : !!n;
|
|
1608
1608
|
}
|
|
1609
1609
|
function Sa(r, e) {
|
|
1610
1610
|
return r === e || Ut$1(r, e, Wt$1(e));
|
|
@@ -1638,15 +1638,15 @@
|
|
|
1638
1638
|
return r.index - e.index;
|
|
1639
1639
|
}
|
|
1640
1640
|
function _a(r, e, t) {
|
|
1641
|
-
e.length ? e =
|
|
1642
|
-
return v$
|
|
1641
|
+
e.length ? e = z$2(e, function(i) {
|
|
1642
|
+
return v$2(i) ? function(o) {
|
|
1643
1643
|
return Ke$2(o, i.length === 1 ? i[0] : i);
|
|
1644
1644
|
} : i;
|
|
1645
1645
|
}) : e = [fe];
|
|
1646
1646
|
var n = -1;
|
|
1647
|
-
e =
|
|
1647
|
+
e = z$2(e, X$2(Y$3));
|
|
1648
1648
|
var s = wa(r, function(i, o, a) {
|
|
1649
|
-
var u =
|
|
1649
|
+
var u = z$2(e, function(c) {
|
|
1650
1650
|
return c(i);
|
|
1651
1651
|
});
|
|
1652
1652
|
return { criteria: u, index: ++n, value: i };
|
|
@@ -1656,43 +1656,43 @@
|
|
|
1656
1656
|
});
|
|
1657
1657
|
}
|
|
1658
1658
|
function _u(r, e, t, n) {
|
|
1659
|
-
return r == null ? [] : (v$
|
|
1659
|
+
return r == null ? [] : (v$2(e) || (e = e == null ? [] : [e]), t = t, v$2(t) || (t = t == null ? [] : [t]), _a(r, e, t));
|
|
1660
1660
|
}
|
|
1661
|
-
var
|
|
1661
|
+
var Ma = Jt$1("length"), Yt$1 = "\\ud800-\\udfff", Ca = "\\u0300-\\u036f", Da = "\\ufe20-\\ufe2f", Ia = "\\u20d0-\\u20ff", Ea = Ca + Da + Ia, Qa = "\\ufe0e\\ufe0f", Na = "[" + Yt$1 + "]", $e$2 = "[" + Ea + "]", _e$2 = "\\ud83c[\\udffb-\\udfff]", ja = "(?:" + $e$2 + "|" + _e$2 + ")", er$1 = "[^" + Yt$1 + "]", tr$1 = "(?:\\ud83c[\\udde6-\\uddff]){2}", rr$1 = "[\\ud800-\\udbff][\\udc00-\\udfff]", qa = "\\u200d", nr$1 = ja + "?", sr$1 = "[" + Qa + "]?", Ka = "(?:" + qa + "(?:" + [er$1, tr$1, rr$1].join("|") + ")" + sr$1 + nr$1 + ")*", Pa = sr$1 + nr$1 + Ka, Ra = "(?:" + [er$1 + $e$2 + "?", $e$2, tr$1, rr$1, Na].join("|") + ")", wt$1 = RegExp(_e$2 + "(?=" + _e$2 + ")|" + Ra + Pa, "g");
|
|
1662
1662
|
function Fa(r) {
|
|
1663
1663
|
for (var e = wt$1.lastIndex = 0; wt$1.test(r); )
|
|
1664
1664
|
++e;
|
|
1665
1665
|
return e;
|
|
1666
1666
|
}
|
|
1667
1667
|
function La(r) {
|
|
1668
|
-
return Us$1(r) ? Fa(r) :
|
|
1668
|
+
return Us$1(r) ? Fa(r) : Ma(r);
|
|
1669
1669
|
}
|
|
1670
|
-
var
|
|
1671
|
-
function
|
|
1670
|
+
var ka = "[object Map]", Ga = "[object Set]";
|
|
1671
|
+
function za(r) {
|
|
1672
1672
|
if (r == null)
|
|
1673
1673
|
return 0;
|
|
1674
1674
|
if (F$1(r))
|
|
1675
1675
|
return xa(r) ? La(r) : r.length;
|
|
1676
1676
|
var e = w(r);
|
|
1677
|
-
return e ==
|
|
1677
|
+
return e == ka || e == Ga ? r.size : qt$1(r).length;
|
|
1678
1678
|
}
|
|
1679
|
-
function
|
|
1679
|
+
function Ba(r, e, t) {
|
|
1680
1680
|
return r = qe$3(r), t = t == null ? 0 : Rt$1(De$2(t), 0, r.length), e = ce$1(e), r.slice(t, t + e.length) == e;
|
|
1681
1681
|
}
|
|
1682
1682
|
function Re$1(r) {
|
|
1683
|
-
const e =
|
|
1683
|
+
const e = Me$2(r);
|
|
1684
1684
|
return Ua(e);
|
|
1685
1685
|
}
|
|
1686
|
-
function
|
|
1686
|
+
function Me$2(r) {
|
|
1687
1687
|
if (typeof r != "object" || r === null)
|
|
1688
1688
|
return String(r);
|
|
1689
1689
|
if (Array.isArray(r))
|
|
1690
|
-
return "[" + r.map(
|
|
1690
|
+
return "[" + r.map(Me$2).join(",") + "]";
|
|
1691
1691
|
const e = Object.keys(r).sort();
|
|
1692
1692
|
let t = "{";
|
|
1693
1693
|
for (let n = 0; n < e.length; n++) {
|
|
1694
1694
|
const s = e[n];
|
|
1695
|
-
t += s + ":" +
|
|
1695
|
+
t += s + ":" + Me$2(r[s]), n < e.length - 1 && (t += ",");
|
|
1696
1696
|
}
|
|
1697
1697
|
return t += "}", t;
|
|
1698
1698
|
}
|
|
@@ -1721,7 +1721,7 @@
|
|
|
1721
1721
|
return performance.getEntriesByType(r);
|
|
1722
1722
|
}
|
|
1723
1723
|
};
|
|
1724
|
-
class
|
|
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
|
|
2091
|
+
class Cu {
|
|
2092
2092
|
graph;
|
|
2093
2093
|
nodeIndex;
|
|
2094
2094
|
constructor() {
|
|
@@ -2596,7 +2596,7 @@
|
|
|
2596
2596
|
}
|
|
2597
2597
|
generateContext(e) {
|
|
2598
2598
|
try {
|
|
2599
|
-
return
|
|
2599
|
+
return C$2(e);
|
|
2600
2600
|
} catch (t) {
|
|
2601
2601
|
return this.log.error("Error in cache generateContext", t), e;
|
|
2602
2602
|
}
|
|
@@ -2662,7 +2662,7 @@
|
|
|
2662
2662
|
};
|
|
2663
2663
|
}
|
|
2664
2664
|
}
|
|
2665
|
-
const or$1 = (r, e) => e ? typeof structuredClone < "u" ? structuredClone(r) :
|
|
2665
|
+
const or$1 = (r, e) => e ? typeof structuredClone < "u" ? structuredClone(r) : C$2(r) : r, xt$1 = (r, e, t, n, s, i) => {
|
|
2666
2666
|
try {
|
|
2667
2667
|
const o = !!e.dcuplInitOptions.performance?.clone?.enabled && !!t.cloneResult, a = or$1(i, o);
|
|
2668
2668
|
if (t.scope === "list" && (t.listKey = r.cdRef?.key || r.key, t.modelKey = r.model?.key || r.modelKey), t.type === "list_created" && t.args[0].listKey.startsWith("__global_list__") || t.listKey?.startsWith("__global_list__"))
|
|
@@ -3090,10 +3090,10 @@
|
|
|
3090
3090
|
return this.getPathSegments(e).length;
|
|
3091
3091
|
}
|
|
3092
3092
|
}
|
|
3093
|
-
const x$
|
|
3093
|
+
const x$1 = new su();
|
|
3094
3094
|
function L$2(r, e) {
|
|
3095
3095
|
if (e.includes("[*]")) {
|
|
3096
|
-
const i = e.indexOf("[*]"), o = e.substring(0, i), a = e.substring(i + 3), u = o ? W$
|
|
3096
|
+
const i = e.indexOf("[*]"), o = e.substring(0, i), a = e.substring(i + 3), u = o ? W$2(r, o) : r;
|
|
3097
3097
|
if (!Array.isArray(u)) return [];
|
|
3098
3098
|
const c = [];
|
|
3099
3099
|
for (const f of u)
|
|
@@ -3153,7 +3153,7 @@
|
|
|
3153
3153
|
a === "sum" ? s.sum = i?.sum : a === "avg" ? s.avg = i?.average : a === "count" ? s.count = ou(n, e) : a === "min" ? s.min = o && o[0] : a === "max" ? s.max = o && o[1] : a === "distinct" ? s.distinct = fu(r, e, t) : a === "group" && (s.group = uu(r, e));
|
|
3154
3154
|
}), s;
|
|
3155
3155
|
}, ou = (r, e) => {
|
|
3156
|
-
const t = x$
|
|
3156
|
+
const t = x$1.parse(r).isDeepQuery;
|
|
3157
3157
|
let n = 0;
|
|
3158
3158
|
for (const s of e.values())
|
|
3159
3159
|
if (s)
|
|
@@ -3167,7 +3167,7 @@
|
|
|
3167
3167
|
return n;
|
|
3168
3168
|
}, au = (r, e) => {
|
|
3169
3169
|
let t, n;
|
|
3170
|
-
const s = x$
|
|
3170
|
+
const s = x$1.parse(r).isDeepQuery;
|
|
3171
3171
|
for (const i of e.values()) {
|
|
3172
3172
|
if (!i) continue;
|
|
3173
3173
|
let o;
|
|
@@ -3195,7 +3195,7 @@
|
|
|
3195
3195
|
option: { value: ["$dcupl_not_found"] },
|
|
3196
3196
|
count: 0,
|
|
3197
3197
|
keys: []
|
|
3198
|
-
}, s = x$
|
|
3198
|
+
}, s = x$1.parse(r.attribute).isDeepQuery;
|
|
3199
3199
|
for (const i of e.values()) {
|
|
3200
3200
|
let o;
|
|
3201
3201
|
s ? o = L$2(i, r.attribute) : o = [i[r.attribute]];
|
|
@@ -3208,7 +3208,7 @@
|
|
|
3208
3208
|
return r?.groupOptions?.calculateNotFound && t.push(n), t;
|
|
3209
3209
|
}, cu = (r, e) => {
|
|
3210
3210
|
let t = 0, n = 0;
|
|
3211
|
-
const s = x$
|
|
3211
|
+
const s = x$1.parse(r).isDeepQuery;
|
|
3212
3212
|
for (const i of e.values()) {
|
|
3213
3213
|
if (!i) continue;
|
|
3214
3214
|
let o;
|
|
@@ -3242,7 +3242,7 @@
|
|
|
3242
3242
|
}
|
|
3243
3243
|
return n;
|
|
3244
3244
|
};
|
|
3245
|
-
let
|
|
3245
|
+
let G$2 = class G extends Error {
|
|
3246
3246
|
query;
|
|
3247
3247
|
constructor(e, t) {
|
|
3248
3248
|
const n = `Query Error: ${e} in ${JSON.stringify(t, null, 2)}`;
|
|
@@ -3257,10 +3257,10 @@
|
|
|
3257
3257
|
queries: []
|
|
3258
3258
|
};
|
|
3259
3259
|
_initOptions;
|
|
3260
|
-
currentQuery =
|
|
3260
|
+
currentQuery = C$2(this._defaultQueryOptions);
|
|
3261
3261
|
deepQueryService;
|
|
3262
3262
|
constructor(e) {
|
|
3263
|
-
this.deepQueryService = e || x$
|
|
3263
|
+
this.deepQueryService = e || x$1;
|
|
3264
3264
|
}
|
|
3265
3265
|
/**
|
|
3266
3266
|
* Initialize the query builder.
|
|
@@ -3286,7 +3286,7 @@
|
|
|
3286
3286
|
* });
|
|
3287
3287
|
*/
|
|
3288
3288
|
init(e) {
|
|
3289
|
-
this._initOptions =
|
|
3289
|
+
this._initOptions = C$2(e), this.currentQuery = C$2(this._defaultQueryOptions), this.currentQuery.modelKey = e.modelKey, "queries" in e && Array.isArray(e.queries) && (e.groupType && (this.currentQuery.groupType = e.groupType), e.queries && (this.currentQuery.queries = C$2(e.queries)), e.count !== void 0 && (this.currentQuery.count = e.count), e.start !== void 0 && (this.currentQuery.start = e.start), e.sort && (this.currentQuery.sort = e.sort), e.projection && (this.currentQuery.projection = e.projection));
|
|
3290
3290
|
}
|
|
3291
3291
|
reset() {
|
|
3292
3292
|
return this.init(this._initOptions), this.getQuery();
|
|
@@ -3304,7 +3304,7 @@
|
|
|
3304
3304
|
return this.currentQuery.queries.find((t) => this.isQueryGroup(t) && t.groupKey === e);
|
|
3305
3305
|
}
|
|
3306
3306
|
getQuery() {
|
|
3307
|
-
return
|
|
3307
|
+
return C$2(this.currentQuery);
|
|
3308
3308
|
}
|
|
3309
3309
|
hasQueryGroup(e) {
|
|
3310
3310
|
return this.currentQuery.queries.some((t) => this.isQueryGroup(t) && t.groupKey === e);
|
|
@@ -3426,12 +3426,12 @@
|
|
|
3426
3426
|
validateQuery(e) {
|
|
3427
3427
|
const t = [];
|
|
3428
3428
|
if (this.isQuery(e))
|
|
3429
|
-
return e.attribute || t.push(new
|
|
3429
|
+
return e.attribute || t.push(new G$2("Missing attribute", e)), e.operator || t.push(new G$2("Missing operator", e)), typeof e.value > "u" && t.push(new G$2("Missing value", e)), e.operator === "find" && Array.isArray(e.value) && t.push(new G$2("find operator cannot have array value", e)), t.length > 0 ? { valid: false, errors: t } : { valid: true };
|
|
3430
3430
|
if (this.isQueryGroup(e)) {
|
|
3431
3431
|
const n = e.queries.map((s) => this.validateQuery(s)).filter((s) => !s.valid).map((s) => s.errors).flat();
|
|
3432
3432
|
return n.length > 0 ? { valid: false, errors: n } : { valid: true };
|
|
3433
3433
|
}
|
|
3434
|
-
return t.push(new
|
|
3434
|
+
return t.push(new G$2("Invalid query definition", e)), { valid: false, errors: t };
|
|
3435
3435
|
}
|
|
3436
3436
|
/**
|
|
3437
3437
|
* Get all attribute names used in the query.
|
|
@@ -3930,17 +3930,17 @@
|
|
|
3930
3930
|
return e(this.currentQuery.queries);
|
|
3931
3931
|
}
|
|
3932
3932
|
};
|
|
3933
|
-
const
|
|
3933
|
+
const Ce$2 = new ar$1();
|
|
3934
3934
|
function ju(r, e, t, n, s, i, o) {
|
|
3935
|
-
const a =
|
|
3935
|
+
const a = Ce$2.removeQuery({ groupKey: s }, C$2(n)), u = o.queryData(r, a, false, i), c = e ? [...e.keys()] : [], f = new Set(c), l = i.get(s) ?? /* @__PURE__ */ new Map();
|
|
3936
3936
|
if (!t.excludeUnresolved)
|
|
3937
3937
|
for (const h2 of l.keys())
|
|
3938
3938
|
f.add(h2);
|
|
3939
3939
|
if (t.excludeUndefineds ? f.delete(void 0) : f.add(void 0), t.sort) {
|
|
3940
3940
|
const h2 = [];
|
|
3941
|
-
for (const
|
|
3942
|
-
h2.push(Tt(
|
|
3943
|
-
const p2 = t.excludeZeros ? h2.filter((
|
|
3941
|
+
for (const m of f.values())
|
|
3942
|
+
h2.push(Tt(m, l, u, e, s, n, true));
|
|
3943
|
+
const p2 = t.excludeZeros ? h2.filter((m) => m.size > 0) : h2;
|
|
3944
3944
|
return p2.sort(lu(t.sort)), t.count ? p2.slice(0, t.count) : p2;
|
|
3945
3945
|
}
|
|
3946
3946
|
const d = [];
|
|
@@ -4003,9 +4003,9 @@
|
|
|
4003
4003
|
}
|
|
4004
4004
|
}
|
|
4005
4005
|
const du = (r, e, t) => {
|
|
4006
|
-
const n = t.queries.findIndex((s) =>
|
|
4006
|
+
const n = t.queries.findIndex((s) => Ce$2.isQueryGroup(s) && s.groupKey === r);
|
|
4007
4007
|
return n > -1 ? !!t.queries[n].queries.find((s) => {
|
|
4008
|
-
if (
|
|
4008
|
+
if (Ce$2.isQuery(s)) {
|
|
4009
4009
|
const i = s.value?.key || s.value;
|
|
4010
4010
|
return s.attribute === r && i === e;
|
|
4011
4011
|
}
|
|
@@ -4022,6 +4022,15 @@
|
|
|
4022
4022
|
reset(e) {
|
|
4023
4023
|
e ? (this.indexMap.delete(e), this.dataMap.delete(e), this.indexMetadata.delete(e)) : (this.indexMap.clear(), this.dataMap.clear(), this.indexMetadata.clear());
|
|
4024
4024
|
}
|
|
4025
|
+
/**
|
|
4026
|
+
* Removes every index the predicate selects. Used to drop indices that
|
|
4027
|
+
* were built from now-stale data; the next read lazily rebuilds them via
|
|
4028
|
+
* {@link getOrCreateIndex}.
|
|
4029
|
+
*/
|
|
4030
|
+
resetIndicesWhere(e) {
|
|
4031
|
+
for (const t of Array.from(this.indexMap.keys()))
|
|
4032
|
+
e(t) && this.reset(t);
|
|
4033
|
+
}
|
|
4025
4034
|
fillDataMap(e, t) {
|
|
4026
4035
|
let n = this.dataMap.get(e);
|
|
4027
4036
|
n || (n = /* @__PURE__ */ new Map(), this.dataMap.set(e, n));
|
|
@@ -4071,7 +4080,7 @@
|
|
|
4071
4080
|
if (o)
|
|
4072
4081
|
o.lastAccessedAt = Date.now();
|
|
4073
4082
|
else if (!i) {
|
|
4074
|
-
const a = x$
|
|
4083
|
+
const a = x$1.parse(e).isDeepQuery ?? false;
|
|
4075
4084
|
this.indexMetadata.set(s, {
|
|
4076
4085
|
createdAt: Date.now(),
|
|
4077
4086
|
lastAccessedAt: Date.now(),
|
|
@@ -4081,7 +4090,7 @@
|
|
|
4081
4090
|
}
|
|
4082
4091
|
if (!i) {
|
|
4083
4092
|
this.reset(s), this.indexMap.set(s, /* @__PURE__ */ new Map());
|
|
4084
|
-
const a = x$
|
|
4093
|
+
const a = x$1.parse(e).isDeepQuery;
|
|
4085
4094
|
for (const u of t.values()) {
|
|
4086
4095
|
let c;
|
|
4087
4096
|
a ? (c = L$2(u, e), c.length === 0 && (c = [void 0])) : c = [u[e]], this.fillInverseIndex(s, u.key, c), this.fillDataMap(s, c);
|
|
@@ -4185,7 +4194,7 @@
|
|
|
4185
4194
|
isDeepQueryIndex(e) {
|
|
4186
4195
|
const t = e.includes("_") ? e.split("_")[0] : e;
|
|
4187
4196
|
try {
|
|
4188
|
-
return x$
|
|
4197
|
+
return x$1.parse(t).isDeepQuery ?? false;
|
|
4189
4198
|
} catch {
|
|
4190
4199
|
return false;
|
|
4191
4200
|
}
|
|
@@ -4260,15 +4269,15 @@
|
|
|
4260
4269
|
};
|
|
4261
4270
|
}
|
|
4262
4271
|
}
|
|
4263
|
-
const K$
|
|
4272
|
+
const K$4 = "__";
|
|
4264
4273
|
function ur$1(r, e, t = { key: "root" }, n = "root", s = new hu(), i) {
|
|
4265
4274
|
const o = i || r;
|
|
4266
4275
|
for (const a of e.columns)
|
|
4267
|
-
a.attribute && (x$
|
|
4276
|
+
a.attribute && (x$1.parse(a.attribute), s.getOrCreateIndex(a.attribute, o));
|
|
4268
4277
|
for (const a of e.rows)
|
|
4269
|
-
a.attribute && (x$
|
|
4278
|
+
a.attribute && (x$1.parse(a.attribute), s.getOrCreateIndex(a.attribute, o));
|
|
4270
4279
|
for (const a of e.values)
|
|
4271
|
-
a.attribute && (x$
|
|
4280
|
+
a.attribute && (x$1.parse(a.attribute), s.getOrCreateIndex(a.attribute, o));
|
|
4272
4281
|
if (e.rows && e.rows.length > 0) {
|
|
4273
4282
|
t.rows = t.rows || [];
|
|
4274
4283
|
const a = pu(r, e.rows[0], e, s, n, i);
|
|
@@ -4312,7 +4321,7 @@
|
|
|
4312
4321
|
l,
|
|
4313
4322
|
d,
|
|
4314
4323
|
f,
|
|
4315
|
-
s + K$
|
|
4324
|
+
s + K$4 + e.attribute + K$4 + u,
|
|
4316
4325
|
n,
|
|
4317
4326
|
i
|
|
4318
4327
|
);
|
|
@@ -4324,7 +4333,7 @@
|
|
|
4324
4333
|
d,
|
|
4325
4334
|
t,
|
|
4326
4335
|
n,
|
|
4327
|
-
s + K$
|
|
4336
|
+
s + K$4 + e.attribute + K$4 + u,
|
|
4328
4337
|
i
|
|
4329
4338
|
);
|
|
4330
4339
|
f.columns.push(h2);
|
|
@@ -4357,7 +4366,7 @@
|
|
|
4357
4366
|
l,
|
|
4358
4367
|
d,
|
|
4359
4368
|
f,
|
|
4360
|
-
s + K$
|
|
4369
|
+
s + K$4 + e.attribute + K$4 + u,
|
|
4361
4370
|
n,
|
|
4362
4371
|
i
|
|
4363
4372
|
);
|
|
@@ -4435,7 +4444,7 @@
|
|
|
4435
4444
|
evaluateQuery(e, t) {
|
|
4436
4445
|
let n, s = e.value;
|
|
4437
4446
|
const i = e.options?.arrayValueHandling || "some";
|
|
4438
|
-
if (Array.isArray(e.options?.transform) && e.options.transform.length > 0 && (s = this.transformValue(s, e.options.transform)), e.attribute.includes(".") || e.attribute.includes("[") ? n = W$
|
|
4447
|
+
if (Array.isArray(e.options?.transform) && e.options.transform.length > 0 && (s = this.transformValue(s, e.options.transform)), e.attribute.includes(".") || e.attribute.includes("[") ? n = W$2(t, e.attribute) : n = t[e.attribute], Array.isArray(e.options?.transform) && e.options.transform.length > 0 && (n = this.transformValue(n, e.options.transform)), (typeof n > "u" || n === null) && !["typeof", "isTruthy", "eq"].includes(e.operator))
|
|
4439
4448
|
return false;
|
|
4440
4449
|
switch (e.operator) {
|
|
4441
4450
|
case "eq":
|
|
@@ -4455,7 +4464,7 @@
|
|
|
4455
4464
|
case "isTruthy":
|
|
4456
4465
|
return s === true ? Array.isArray(n) ? i === "some" ? n.some((o) => typeof !!o) : n.every((o) => typeof !!o) : !!n : !n;
|
|
4457
4466
|
case "size":
|
|
4458
|
-
return typeof n == "string" ? n.length === s :
|
|
4467
|
+
return typeof n == "string" ? n.length === s : za(n) === s;
|
|
4459
4468
|
default:
|
|
4460
4469
|
if (this.scriptController.hasScript(e.operator))
|
|
4461
4470
|
return this.scriptController.executeScript(e.operator, "operator", { query: e, item: t });
|
|
@@ -4502,7 +4511,7 @@
|
|
|
4502
4511
|
return i;
|
|
4503
4512
|
}
|
|
4504
4513
|
equalRegexFn(e, t) {
|
|
4505
|
-
if (typeof t == "string" &&
|
|
4514
|
+
if (typeof t == "string" && Ba(t, "/") && pa(t, "/"))
|
|
4506
4515
|
try {
|
|
4507
4516
|
return new RegExp(t.slice(1, -1)).test(e);
|
|
4508
4517
|
} catch {
|
|
@@ -4583,7 +4592,7 @@
|
|
|
4583
4592
|
queries: []
|
|
4584
4593
|
};
|
|
4585
4594
|
if (n !== -1) {
|
|
4586
|
-
const i = e.attribute.substring(0, n), o = i.includes(".") ? W$
|
|
4595
|
+
const i = e.attribute.substring(0, n), o = i.includes(".") ? W$2(t, i) : t[i];
|
|
4587
4596
|
if (Array.isArray(o))
|
|
4588
4597
|
for (let a = 0; a < o.length; a++) {
|
|
4589
4598
|
const u = e.attribute.replace("[*]", `[${a}]`);
|
|
@@ -4617,8 +4626,10 @@
|
|
|
4617
4626
|
return o;
|
|
4618
4627
|
}
|
|
4619
4628
|
queryData(e, t, n, s) {
|
|
4629
|
+
if (t.queries.length === 0)
|
|
4630
|
+
return e;
|
|
4620
4631
|
const i = new Map(e);
|
|
4621
|
-
return t.
|
|
4632
|
+
return t.groupKey || (t.groupKey = "root"), t.groupType || (t.groupType = "and"), t.queries || (t.queries = []), this.validateQuery(t), this.evaluateQueryGroup(t, t, i, n, s);
|
|
4622
4633
|
}
|
|
4623
4634
|
// public getRelevantQueryData(data: any, options: DcuplGlobalQueryOptions<any>, model: DcuplModel<ListItem>) {
|
|
4624
4635
|
// // detect if any of the query attributes are a deep query.
|
|
@@ -4654,7 +4665,16 @@
|
|
|
4654
4665
|
// }
|
|
4655
4666
|
// }
|
|
4656
4667
|
}
|
|
4657
|
-
|
|
4668
|
+
function Pu() {
|
|
4669
|
+
const r = globalThis;
|
|
4670
|
+
return typeof r.scheduler?.yield == "function" ? r.scheduler.yield() : typeof r.setImmediate == "function" ? new Promise((e) => r.setImmediate(() => e())) : typeof r.MessageChannel == "function" ? new Promise((e) => {
|
|
4671
|
+
const t = new r.MessageChannel();
|
|
4672
|
+
t.port1.onmessage = () => {
|
|
4673
|
+
t.port1.close(), e();
|
|
4674
|
+
}, t.port2.postMessage(null);
|
|
4675
|
+
}) : new Promise((e) => setTimeout(e, 0));
|
|
4676
|
+
}
|
|
4677
|
+
class Ru {
|
|
4658
4678
|
scripts = /* @__PURE__ */ new Map();
|
|
4659
4679
|
scriptFunctions = /* @__PURE__ */ new Map();
|
|
4660
4680
|
constructor() {
|
|
@@ -4697,11 +4717,11 @@
|
|
|
4697
4717
|
return this.getScriptAsFn(e, s)(t, ...i);
|
|
4698
4718
|
}
|
|
4699
4719
|
}
|
|
4700
|
-
const
|
|
4720
|
+
const Fu = (r, e) => r ? (e || (e = {}), r.replace(/\$\{(.*?)\}/g, (t, n) => W$2(e, n.trim(), ""))) : "", Lu = (r) => {
|
|
4701
4721
|
const e = /* @__PURE__ */ new Set();
|
|
4702
4722
|
return r.replace(/\$\{(.*?)\}/g, (t, n) => (e.add(n.trim()), "")), { variables: Array.from(e).map((t) => ({ name: t })) };
|
|
4703
4723
|
};
|
|
4704
|
-
var T$
|
|
4724
|
+
var T$3 = gn$1(function(A2, e) {
|
|
4705
4725
|
return be$1(A2) ? da(A2, qs$1(e, 1, be$1)) : [];
|
|
4706
4726
|
});
|
|
4707
4727
|
let z$1 = class z {
|
|
@@ -4714,8 +4734,17 @@
|
|
|
4714
4734
|
indicesController;
|
|
4715
4735
|
queryManager;
|
|
4716
4736
|
initialData;
|
|
4717
|
-
|
|
4737
|
+
_filteredData;
|
|
4738
|
+
/** Set when caches were dropped without an eager recompute — the next
|
|
4739
|
+
* filteredData read recomputes from initialData (#245). */
|
|
4740
|
+
filteredDataStale = false;
|
|
4718
4741
|
model;
|
|
4742
|
+
get filteredData() {
|
|
4743
|
+
return this.filteredDataStale && (this.filteredDataStale = false, this._filteredData = this.getFilteredData(this.initialData, false)), this._filteredData;
|
|
4744
|
+
}
|
|
4745
|
+
set filteredData(e) {
|
|
4746
|
+
this._filteredData = e, this.filteredDataStale = false;
|
|
4747
|
+
}
|
|
4719
4748
|
filterItems = /* @__PURE__ */ new Map();
|
|
4720
4749
|
queryBuilder;
|
|
4721
4750
|
cacheCtrl;
|
|
@@ -4735,7 +4764,7 @@
|
|
|
4735
4764
|
indexDependsOnAttributes(e, t) {
|
|
4736
4765
|
const r = e.includes("_") ? e.split("_")[0] : e;
|
|
4737
4766
|
try {
|
|
4738
|
-
const i = x$
|
|
4767
|
+
const i = x$1.parse(r);
|
|
4739
4768
|
if (!i.isDeepQuery)
|
|
4740
4769
|
return false;
|
|
4741
4770
|
const n = i.attribute.split(".");
|
|
@@ -4793,7 +4822,7 @@
|
|
|
4793
4822
|
this.model = e, this.initialData = t, this.indicesController = r, this.invalidateAllCaches(i), this.filteredData = this.getFilteredData(this.initialData, false), this.initFilterItems({ skipProcessing: true });
|
|
4794
4823
|
}
|
|
4795
4824
|
resetCache() {
|
|
4796
|
-
this.invalidateAllCaches();
|
|
4825
|
+
this.invalidateAllCaches(), this.filteredDataStale = true;
|
|
4797
4826
|
}
|
|
4798
4827
|
/**
|
|
4799
4828
|
* Extract all deep query attributes from the query
|
|
@@ -4804,7 +4833,7 @@
|
|
|
4804
4833
|
for (const r of e.queries)
|
|
4805
4834
|
if (r.queries)
|
|
4806
4835
|
for (const i of r.queries)
|
|
4807
|
-
i.attribute && x$
|
|
4836
|
+
i.attribute && x$1.parse(i.attribute).isDeepQuery && t.add(i.attribute);
|
|
4808
4837
|
return Array.from(t);
|
|
4809
4838
|
}
|
|
4810
4839
|
/**
|
|
@@ -4813,7 +4842,7 @@
|
|
|
4813
4842
|
getProjectionForQuery(e) {
|
|
4814
4843
|
const t = this.getDeepQueryAttributes(e);
|
|
4815
4844
|
if (t.length === 0) return null;
|
|
4816
|
-
const r = t.map((i) => x$
|
|
4845
|
+
const r = t.map((i) => x$1.parse(i));
|
|
4817
4846
|
return this.queryBuilder.getProjectionForAttributeEntries(r);
|
|
4818
4847
|
}
|
|
4819
4848
|
/**
|
|
@@ -4842,7 +4871,7 @@
|
|
|
4842
4871
|
});
|
|
4843
4872
|
}
|
|
4844
4873
|
getAggregate(e, t, r) {
|
|
4845
|
-
if (x$
|
|
4874
|
+
if (x$1.parse(e.attribute).isDeepQuery)
|
|
4846
4875
|
return Fe$2(e, t, r, e.attribute);
|
|
4847
4876
|
{
|
|
4848
4877
|
const n = this.model.getAttribute(e.attribute);
|
|
@@ -4858,7 +4887,7 @@
|
|
|
4858
4887
|
initialSize: 0
|
|
4859
4888
|
},
|
|
4860
4889
|
items: []
|
|
4861
|
-
}, r = x$
|
|
4890
|
+
}, r = x$1.parse(e.attribute), i = r.isDeepQuery;
|
|
4862
4891
|
let n;
|
|
4863
4892
|
if (!i && (n = this.model.getAttribute(e.attribute), !n))
|
|
4864
4893
|
throw new Error("Attribute not found");
|
|
@@ -4929,7 +4958,7 @@
|
|
|
4929
4958
|
}) : s.forEach((h2) => {
|
|
4930
4959
|
const y2 = e.items?.find((D2) => D2.key === h2.key);
|
|
4931
4960
|
if (y2) {
|
|
4932
|
-
const D2 = c.distinct.find((
|
|
4961
|
+
const D2 = c.distinct.find((q2) => q2.value === h2.key), v2 = this.getDataByKeys(u, D2.keys), x2 = this.item.getItems(v2, this.model, y2);
|
|
4933
4962
|
h2._items = x2;
|
|
4934
4963
|
}
|
|
4935
4964
|
});
|
|
@@ -5104,7 +5133,7 @@
|
|
|
5104
5133
|
}
|
|
5105
5134
|
if (!n || !o) {
|
|
5106
5135
|
this.indicesController.reset(e);
|
|
5107
|
-
const c = x$
|
|
5136
|
+
const c = x$1.parse(e), g2 = c.isDeepQuery;
|
|
5108
5137
|
let d = l;
|
|
5109
5138
|
if (g2) {
|
|
5110
5139
|
const h2 = this.queryBuilder.getProjectionForAttributeEntries([c]);
|
|
@@ -5219,7 +5248,7 @@
|
|
|
5219
5248
|
return this.filterItems.has(e) && (t?.skipProcessing || this.updateFilterItem(e, t)), this.filterItems.get(e);
|
|
5220
5249
|
}
|
|
5221
5250
|
};
|
|
5222
|
-
let K$
|
|
5251
|
+
let K$3 = class K {
|
|
5223
5252
|
constructor(e, t) {
|
|
5224
5253
|
this.modelParser = e, this.scriptController = t;
|
|
5225
5254
|
}
|
|
@@ -5318,7 +5347,7 @@
|
|
|
5318
5347
|
}
|
|
5319
5348
|
isValidSortProjection(e) {
|
|
5320
5349
|
const t = ["ASC", "DESC"];
|
|
5321
|
-
return !(!e || !Array.isArray(e.attributes) || e.attributes.length === 0 || !Array.isArray(e.order) || e.attributes.length !== e.order.length || T$
|
|
5350
|
+
return !(!e || !Array.isArray(e.attributes) || e.attributes.length === 0 || !Array.isArray(e.order) || e.attributes.length !== e.order.length || T$3(e.order, t).length > 0);
|
|
5322
5351
|
}
|
|
5323
5352
|
getProjectedData(e, t, r) {
|
|
5324
5353
|
let i = { key: r.key };
|
|
@@ -5358,14 +5387,14 @@
|
|
|
5358
5387
|
}), i;
|
|
5359
5388
|
}
|
|
5360
5389
|
};
|
|
5361
|
-
var U$1 = Object.defineProperty, $$1 = Object.getOwnPropertyDescriptor, C$
|
|
5390
|
+
var U$1 = Object.defineProperty, $$1 = Object.getOwnPropertyDescriptor, C$1 = (A2, e, t, r) => {
|
|
5362
5391
|
for (var i = $$1(e, t), n = A2.length - 1, s; n >= 0; n--)
|
|
5363
5392
|
(s = A2[n]) && (i = s(e, t, i) || i);
|
|
5364
5393
|
return i && U$1(e, t, i), i;
|
|
5365
5394
|
};
|
|
5366
|
-
let p$
|
|
5395
|
+
let p$3 = class p {
|
|
5367
5396
|
constructor(e, t, r) {
|
|
5368
|
-
this.dcuplApi = e, this.cdRef = t, this.indicesController = r, this.itemService = new K$
|
|
5397
|
+
this.dcuplApi = e, this.cdRef = t, this.indicesController = r, this.itemService = new K$3(
|
|
5369
5398
|
this.dcuplApi.modelParser,
|
|
5370
5399
|
this.dcuplApi.scriptController
|
|
5371
5400
|
), this.filter = new z$1(
|
|
@@ -5759,7 +5788,7 @@
|
|
|
5759
5788
|
});
|
|
5760
5789
|
if (this.filter.cacheCtrl.has("suggestions", t))
|
|
5761
5790
|
return this.filter.cacheCtrl.get("suggestions", t);
|
|
5762
|
-
const i = x$
|
|
5791
|
+
const i = x$1.parse(e.attribute).isDeepQuery;
|
|
5763
5792
|
if (!i && !this.model.getAttribute(e.attribute))
|
|
5764
5793
|
throw new Error(`Attribute ${e.attribute} does not exist`);
|
|
5765
5794
|
if (typeof e.value == "string" && e.value.startsWith("/") && e.value.endsWith("/"))
|
|
@@ -5785,7 +5814,7 @@
|
|
|
5785
5814
|
n = this.filter.filteredData, s = this.filter.queryBuilder.getQuery();
|
|
5786
5815
|
let a = n;
|
|
5787
5816
|
if (i) {
|
|
5788
|
-
const u = x$
|
|
5817
|
+
const u = x$1.parse(e.attribute), f = this.filter.queryBuilder.getProjectionForAttributeEntries([u]), c = /* @__PURE__ */ new Map();
|
|
5789
5818
|
for (const [g2, d] of n) {
|
|
5790
5819
|
const h2 = this.filter.item.getProjectedData(f, this.model, d);
|
|
5791
5820
|
c.set(g2, h2);
|
|
@@ -5804,7 +5833,7 @@
|
|
|
5804
5833
|
});
|
|
5805
5834
|
if (this.filter.cacheCtrl.has("facets", t))
|
|
5806
5835
|
return this.filter.cacheCtrl.get("facets", t);
|
|
5807
|
-
const i = x$
|
|
5836
|
+
const i = x$1.parse(e.attribute).isDeepQuery;
|
|
5808
5837
|
let n;
|
|
5809
5838
|
if (!i) {
|
|
5810
5839
|
const a = this.model.references.get(e.attribute);
|
|
@@ -5812,7 +5841,7 @@
|
|
|
5812
5841
|
}
|
|
5813
5842
|
let s;
|
|
5814
5843
|
if (i) {
|
|
5815
|
-
const a = x$
|
|
5844
|
+
const a = x$1.parse(e.attribute), o = this.filter.queryBuilder.getProjectionForAttributeEntries([a]);
|
|
5816
5845
|
s = /* @__PURE__ */ new Map();
|
|
5817
5846
|
for (const [l, u] of this.filter.filteredData) {
|
|
5818
5847
|
const f = this.filter.item.getProjectedData(o, this.model, u);
|
|
@@ -5846,7 +5875,7 @@
|
|
|
5846
5875
|
});
|
|
5847
5876
|
if (this.filter.cacheCtrl.has("aggregation", t))
|
|
5848
5877
|
return this.filter.cacheCtrl.get("aggregation", t);
|
|
5849
|
-
const i = x$
|
|
5878
|
+
const i = x$1.parse(e.attribute);
|
|
5850
5879
|
let n = this.filter.filteredData;
|
|
5851
5880
|
if (i.isDeepQuery) {
|
|
5852
5881
|
const a = this.filter.queryBuilder.getProjectionForAttributeEntries([i]), o = /* @__PURE__ */ new Map();
|
|
@@ -5882,7 +5911,7 @@
|
|
|
5882
5911
|
...e.rows.map((l) => l.attribute),
|
|
5883
5912
|
...e.columns.map((l) => l.attribute),
|
|
5884
5913
|
...e.values.map((l) => l.attribute)
|
|
5885
|
-
].map((l) => x$
|
|
5914
|
+
].map((l) => x$1.parse(l)).filter((l) => l.isDeepQuery);
|
|
5886
5915
|
let a;
|
|
5887
5916
|
if (s.length > 0) {
|
|
5888
5917
|
const l = this.filter.queryBuilder.getProjectionForAttributeEntries(s);
|
|
@@ -5896,7 +5925,7 @@
|
|
|
5896
5925
|
return this.filter.cacheCtrl.set("pivot", t, o), o;
|
|
5897
5926
|
}
|
|
5898
5927
|
};
|
|
5899
|
-
C$
|
|
5928
|
+
C$1([
|
|
5900
5929
|
Eu({
|
|
5901
5930
|
scope: "list",
|
|
5902
5931
|
type: "fn_metadata",
|
|
@@ -5904,8 +5933,8 @@
|
|
|
5904
5933
|
connectMessage: true,
|
|
5905
5934
|
connectMessageResult: true
|
|
5906
5935
|
})
|
|
5907
|
-
], p$
|
|
5908
|
-
C$
|
|
5936
|
+
], p$3.prototype, "_getMetadata");
|
|
5937
|
+
C$1([
|
|
5909
5938
|
Eu({
|
|
5910
5939
|
scope: "list",
|
|
5911
5940
|
type: "filter_many",
|
|
@@ -5913,8 +5942,8 @@
|
|
|
5913
5942
|
connectMessage: true,
|
|
5914
5943
|
connectMessageResult: true
|
|
5915
5944
|
})
|
|
5916
|
-
], p$
|
|
5917
|
-
C$
|
|
5945
|
+
], p$3.prototype, "_getFilters");
|
|
5946
|
+
C$1([
|
|
5918
5947
|
Eu({
|
|
5919
5948
|
scope: "list",
|
|
5920
5949
|
type: "filter_one",
|
|
@@ -5922,21 +5951,21 @@
|
|
|
5922
5951
|
connectMessage: true,
|
|
5923
5952
|
connectMessageResult: true
|
|
5924
5953
|
})
|
|
5925
|
-
], p$
|
|
5926
|
-
C$
|
|
5954
|
+
], p$3.prototype, "_getFilter");
|
|
5955
|
+
C$1([
|
|
5927
5956
|
Eu({
|
|
5928
5957
|
scope: "list",
|
|
5929
5958
|
type: "query_get",
|
|
5930
5959
|
cloneResult: true
|
|
5931
5960
|
})
|
|
5932
|
-
], p$
|
|
5933
|
-
C$
|
|
5961
|
+
], p$3.prototype, "getQuery");
|
|
5962
|
+
C$1([
|
|
5934
5963
|
Eu({
|
|
5935
5964
|
scope: "list",
|
|
5936
5965
|
type: "query_has"
|
|
5937
5966
|
})
|
|
5938
|
-
], p$
|
|
5939
|
-
C$
|
|
5967
|
+
], p$3.prototype, "hasGroupOrQueryKey");
|
|
5968
|
+
C$1([
|
|
5940
5969
|
Eu({
|
|
5941
5970
|
scope: "list",
|
|
5942
5971
|
type: "query_apply",
|
|
@@ -5944,8 +5973,8 @@
|
|
|
5944
5973
|
connectMessage: true,
|
|
5945
5974
|
connectMessageResult: true
|
|
5946
5975
|
})
|
|
5947
|
-
], p$
|
|
5948
|
-
C$
|
|
5976
|
+
], p$3.prototype, "applyQuery");
|
|
5977
|
+
C$1([
|
|
5949
5978
|
Eu({
|
|
5950
5979
|
scope: "list",
|
|
5951
5980
|
type: "query_apply_options",
|
|
@@ -5953,8 +5982,8 @@
|
|
|
5953
5982
|
connectMessage: true,
|
|
5954
5983
|
connectMessageResult: true
|
|
5955
5984
|
})
|
|
5956
|
-
], p$
|
|
5957
|
-
C$
|
|
5985
|
+
], p$3.prototype, "applyOptions");
|
|
5986
|
+
C$1([
|
|
5958
5987
|
Eu({
|
|
5959
5988
|
scope: "list",
|
|
5960
5989
|
type: "query_remove",
|
|
@@ -5962,8 +5991,8 @@
|
|
|
5962
5991
|
connectMessage: true,
|
|
5963
5992
|
connectMessageResult: true
|
|
5964
5993
|
})
|
|
5965
|
-
], p$
|
|
5966
|
-
C$
|
|
5994
|
+
], p$3.prototype, "removeQuery");
|
|
5995
|
+
C$1([
|
|
5967
5996
|
Eu({
|
|
5968
5997
|
scope: "list",
|
|
5969
5998
|
type: "query_reset",
|
|
@@ -5971,8 +6000,8 @@
|
|
|
5971
6000
|
connectMessage: true,
|
|
5972
6001
|
connectMessageResult: true
|
|
5973
6002
|
})
|
|
5974
|
-
], p$
|
|
5975
|
-
C$
|
|
6003
|
+
], p$3.prototype, "resetQuery");
|
|
6004
|
+
C$1([
|
|
5976
6005
|
Eu({
|
|
5977
6006
|
scope: "list",
|
|
5978
6007
|
type: "query_execute",
|
|
@@ -5980,8 +6009,8 @@
|
|
|
5980
6009
|
connectMessage: true,
|
|
5981
6010
|
connectMessageResult: true
|
|
5982
6011
|
})
|
|
5983
|
-
], p$
|
|
5984
|
-
C$
|
|
6012
|
+
], p$3.prototype, "executeQuery");
|
|
6013
|
+
C$1([
|
|
5985
6014
|
Eu({
|
|
5986
6015
|
scope: "list",
|
|
5987
6016
|
type: "fn_groupBy",
|
|
@@ -5989,8 +6018,8 @@
|
|
|
5989
6018
|
connectMessage: true,
|
|
5990
6019
|
connectMessageResult: true
|
|
5991
6020
|
})
|
|
5992
|
-
], p$
|
|
5993
|
-
C$
|
|
6021
|
+
], p$3.prototype, "_getSections");
|
|
6022
|
+
C$1([
|
|
5994
6023
|
Eu({
|
|
5995
6024
|
scope: "list",
|
|
5996
6025
|
type: "query_one",
|
|
@@ -5998,8 +6027,8 @@
|
|
|
5998
6027
|
connectMessage: true,
|
|
5999
6028
|
connectMessageResult: true
|
|
6000
6029
|
})
|
|
6001
|
-
], p$
|
|
6002
|
-
C$
|
|
6030
|
+
], p$3.prototype, "_getItem");
|
|
6031
|
+
C$1([
|
|
6003
6032
|
Eu({
|
|
6004
6033
|
scope: "list",
|
|
6005
6034
|
type: "query_many",
|
|
@@ -6007,8 +6036,8 @@
|
|
|
6007
6036
|
connectMessage: true,
|
|
6008
6037
|
connectMessageResult: true
|
|
6009
6038
|
})
|
|
6010
|
-
], p$
|
|
6011
|
-
C$
|
|
6039
|
+
], p$3.prototype, "_getManyItems");
|
|
6040
|
+
C$1([
|
|
6012
6041
|
Eu({
|
|
6013
6042
|
scope: "list",
|
|
6014
6043
|
type: "fn_suggest",
|
|
@@ -6016,8 +6045,8 @@
|
|
|
6016
6045
|
connectMessage: true,
|
|
6017
6046
|
connectMessageResult: true
|
|
6018
6047
|
})
|
|
6019
|
-
], p$
|
|
6020
|
-
C$
|
|
6048
|
+
], p$3.prototype, "_getSuggestions");
|
|
6049
|
+
C$1([
|
|
6021
6050
|
Eu({
|
|
6022
6051
|
scope: "list",
|
|
6023
6052
|
type: "fn_facets",
|
|
@@ -6025,8 +6054,8 @@
|
|
|
6025
6054
|
connectMessage: true,
|
|
6026
6055
|
connectMessageResult: true
|
|
6027
6056
|
})
|
|
6028
|
-
], p$
|
|
6029
|
-
C$
|
|
6057
|
+
], p$3.prototype, "_getFacets");
|
|
6058
|
+
C$1([
|
|
6030
6059
|
Eu({
|
|
6031
6060
|
scope: "list",
|
|
6032
6061
|
type: "fn_aggregate",
|
|
@@ -6034,8 +6063,8 @@
|
|
|
6034
6063
|
connectMessage: true,
|
|
6035
6064
|
connectMessageResult: true
|
|
6036
6065
|
})
|
|
6037
|
-
], p$
|
|
6038
|
-
C$
|
|
6066
|
+
], p$3.prototype, "getAggregate");
|
|
6067
|
+
C$1([
|
|
6039
6068
|
Eu({
|
|
6040
6069
|
scope: "list",
|
|
6041
6070
|
type: "fn_pivot",
|
|
@@ -6043,8 +6072,8 @@
|
|
|
6043
6072
|
connectMessage: true,
|
|
6044
6073
|
connectMessageResult: true
|
|
6045
6074
|
})
|
|
6046
|
-
], p$
|
|
6047
|
-
let G$
|
|
6075
|
+
], p$3.prototype, "_getPivot");
|
|
6076
|
+
let G$1 = class G extends p$3 {
|
|
6048
6077
|
constructor(e, t, r) {
|
|
6049
6078
|
super(e, t, r), this.dcuplApi = e, this.cdRef = t, this.indicesController = r;
|
|
6050
6079
|
}
|
|
@@ -6059,13 +6088,13 @@
|
|
|
6059
6088
|
this.model = e, this.filter.update(e, t, r);
|
|
6060
6089
|
}
|
|
6061
6090
|
};
|
|
6062
|
-
function
|
|
6091
|
+
function Ae$1(d, e) {
|
|
6063
6092
|
var t = -1, s = d.length;
|
|
6064
6093
|
for (e || (e = Array(s)); ++t < s; )
|
|
6065
6094
|
e[t] = d[t];
|
|
6066
6095
|
return e;
|
|
6067
6096
|
}
|
|
6068
|
-
function
|
|
6097
|
+
function De$1(d, e, t, s) {
|
|
6069
6098
|
var r = !t;
|
|
6070
6099
|
t || (t = {});
|
|
6071
6100
|
for (var i = -1, o = e.length; ++i < o; ) {
|
|
@@ -6074,119 +6103,119 @@
|
|
|
6074
6103
|
}
|
|
6075
6104
|
return t;
|
|
6076
6105
|
}
|
|
6077
|
-
function
|
|
6106
|
+
function Ce$1(d, e, t) {
|
|
6078
6107
|
if (!E$3(t))
|
|
6079
6108
|
return false;
|
|
6080
6109
|
var s = typeof e;
|
|
6081
|
-
return (s == "number" ? F$1(t) &&
|
|
6110
|
+
return (s == "number" ? F$1(t) && Ct$1(e, t.length) : s == "string" && e in t) ? Ie$2(t[e], d) : false;
|
|
6082
6111
|
}
|
|
6083
|
-
function
|
|
6112
|
+
function Ee$1(d) {
|
|
6084
6113
|
return gn$1(function(e, t) {
|
|
6085
6114
|
var s = -1, r = t.length, i = r > 1 ? t[r - 1] : void 0, o = r > 2 ? t[2] : void 0;
|
|
6086
|
-
for (i = d.length > 3 && typeof i == "function" ? (r--, i) : void 0, o &&
|
|
6115
|
+
for (i = d.length > 3 && typeof i == "function" ? (r--, i) : void 0, o && Ce$1(t[0], t[1], o) && (i = r < 3 ? void 0 : i, r = 1), e = Object(e); ++s < r; ) {
|
|
6087
6116
|
var n = t[s];
|
|
6088
6117
|
n && d(e, n, s, i);
|
|
6089
6118
|
}
|
|
6090
6119
|
return e;
|
|
6091
6120
|
});
|
|
6092
6121
|
}
|
|
6093
|
-
function
|
|
6122
|
+
function Me$1(d) {
|
|
6094
6123
|
var e = [];
|
|
6095
6124
|
if (d != null)
|
|
6096
6125
|
for (var t in Object(d))
|
|
6097
6126
|
e.push(t);
|
|
6098
6127
|
return e;
|
|
6099
6128
|
}
|
|
6100
|
-
var
|
|
6101
|
-
function
|
|
6129
|
+
var Se$1 = Object.prototype, Ie$1 = Se$1.hasOwnProperty;
|
|
6130
|
+
function xe$1(d) {
|
|
6102
6131
|
if (!E$3(d))
|
|
6103
|
-
return
|
|
6132
|
+
return Me$1(d);
|
|
6104
6133
|
var e = Dt$1(d), t = [];
|
|
6105
6134
|
for (var s in d)
|
|
6106
|
-
s == "constructor" && (e || !
|
|
6135
|
+
s == "constructor" && (e || !Ie$1.call(d, s)) || t.push(s);
|
|
6107
6136
|
return t;
|
|
6108
6137
|
}
|
|
6109
|
-
function
|
|
6110
|
-
return F$1(d) ? Yn$1(d, true) :
|
|
6138
|
+
function Q$3(d) {
|
|
6139
|
+
return F$1(d) ? Yn$1(d, true) : xe$1(d);
|
|
6111
6140
|
}
|
|
6112
|
-
var
|
|
6141
|
+
var Ge = "[object Object]", Te$1 = Function.prototype, Ke$1 = Object.prototype, z = Te$1.toString, _e$1 = Ke$1.hasOwnProperty, $e$1 = z.call(Object);
|
|
6113
6142
|
function we$1(d) {
|
|
6114
|
-
if (!T$
|
|
6143
|
+
if (!T$4(d) || N$2(d) != Ge)
|
|
6115
6144
|
return false;
|
|
6116
6145
|
var e = Ks$1(d);
|
|
6117
6146
|
if (e === null)
|
|
6118
6147
|
return true;
|
|
6119
|
-
var t =
|
|
6120
|
-
return typeof t == "function" && t instanceof t &&
|
|
6148
|
+
var t = _e$1.call(e, "constructor") && e.constructor;
|
|
6149
|
+
return typeof t == "function" && t instanceof t && z.call(t) == $e$1;
|
|
6121
6150
|
}
|
|
6122
|
-
function $
|
|
6151
|
+
function Fe$1(d, e, t, s) {
|
|
6123
6152
|
for (var r = -1, i = d == null ? 0 : d.length; ++r < i; ) {
|
|
6124
6153
|
var o = d[r];
|
|
6125
6154
|
e(s, o, t(o), d);
|
|
6126
6155
|
}
|
|
6127
6156
|
return s;
|
|
6128
6157
|
}
|
|
6129
|
-
function
|
|
6158
|
+
function qe$2(d, e, t, s) {
|
|
6130
6159
|
return Xt$1(d, function(r, i, o) {
|
|
6131
6160
|
e(s, r, t(r), o);
|
|
6132
6161
|
}), s;
|
|
6133
6162
|
}
|
|
6134
|
-
function
|
|
6163
|
+
function Oe$2(d, e) {
|
|
6135
6164
|
return function(t, s) {
|
|
6136
|
-
var r = v$
|
|
6165
|
+
var r = v$2(t) ? Fe$1 : qe$2, i = {};
|
|
6137
6166
|
return r(t, d, Y$3(s), i);
|
|
6138
6167
|
};
|
|
6139
6168
|
}
|
|
6140
|
-
function
|
|
6169
|
+
function T$2(d, e, t) {
|
|
6141
6170
|
(t !== void 0 && !Ie$2(d[e], t) || t === void 0 && !(e in d)) && fn$1(d, e, t);
|
|
6142
6171
|
}
|
|
6143
|
-
function
|
|
6172
|
+
function K$2(d, e) {
|
|
6144
6173
|
if (!(e === "constructor" && typeof d[e] == "function") && e != "__proto__")
|
|
6145
6174
|
return d[e];
|
|
6146
6175
|
}
|
|
6147
|
-
function
|
|
6148
|
-
return
|
|
6176
|
+
function Ve$2(d) {
|
|
6177
|
+
return De$1(d, Q$3(d));
|
|
6149
6178
|
}
|
|
6150
|
-
function
|
|
6151
|
-
var n =
|
|
6179
|
+
function Ue$2(d, e, t, s, r, i, o) {
|
|
6180
|
+
var n = K$2(d, t), a = K$2(e, t), l = o.get(a);
|
|
6152
6181
|
if (l) {
|
|
6153
|
-
|
|
6182
|
+
T$2(d, t, l);
|
|
6154
6183
|
return;
|
|
6155
6184
|
}
|
|
6156
6185
|
var c = i ? i(n, a, t + "", d, e, o) : void 0, f = c === void 0;
|
|
6157
6186
|
if (f) {
|
|
6158
|
-
var u = v$
|
|
6159
|
-
c = a, u || y2 ||
|
|
6187
|
+
var u = v$2(a), y2 = !u && ae$1(a), h2 = !u && !y2 && Nt$1(a);
|
|
6188
|
+
c = a, u || y2 || h2 ? v$2(n) ? c = n : be$1(n) ? c = Ae$1(n) : y2 ? (f = false, c = ei(a, true)) : h2 ? (f = false, c = wi(a, true)) : c = [] : we$1(a) || Qe$2(a) ? (c = n, Qe$2(n) ? c = Ve$2(n) : (!E$3(n) || _t$1(n)) && (c = Li(a))) : f = false;
|
|
6160
6189
|
}
|
|
6161
|
-
f && (o.set(a, c), r(c, a, s, i, o), o.delete(a)),
|
|
6190
|
+
f && (o.set(a, c), r(c, a, s, i, o), o.delete(a)), T$2(d, t, c);
|
|
6162
6191
|
}
|
|
6163
|
-
function
|
|
6192
|
+
function L$1(d, e, t, s, r) {
|
|
6164
6193
|
d !== e && ua(e, function(i, o) {
|
|
6165
6194
|
if (r || (r = new S$2()), E$3(i))
|
|
6166
|
-
|
|
6195
|
+
Ue$2(d, e, o, t, L$1, s, r);
|
|
6167
6196
|
else {
|
|
6168
|
-
var n = s ? s(
|
|
6169
|
-
n === void 0 && (n = i),
|
|
6197
|
+
var n = s ? s(K$2(d, o), i, o + "", d, e, r) : void 0;
|
|
6198
|
+
n === void 0 && (n = i), T$2(d, o, n);
|
|
6170
6199
|
}
|
|
6171
|
-
},
|
|
6200
|
+
}, Q$3);
|
|
6172
6201
|
}
|
|
6173
|
-
var
|
|
6174
|
-
|
|
6175
|
-
}),
|
|
6176
|
-
function
|
|
6177
|
-
return d === true || d === false || T$
|
|
6202
|
+
var Be$1 = Object.prototype, Ne$1 = Be$1.hasOwnProperty, We$1 = Oe$2(function(d, e, t) {
|
|
6203
|
+
Ne$1.call(d, t) ? d[t].push(e) : fn$1(d, t, [e]);
|
|
6204
|
+
}), Qe$1 = "[object Boolean]";
|
|
6205
|
+
function ze$1(d) {
|
|
6206
|
+
return d === true || d === false || T$4(d) && N$2(d) == Qe$1;
|
|
6178
6207
|
}
|
|
6179
|
-
var
|
|
6180
|
-
|
|
6208
|
+
var A$1 = Ee$1(function(d, e, t) {
|
|
6209
|
+
L$1(d, e, t);
|
|
6181
6210
|
});
|
|
6182
|
-
const
|
|
6211
|
+
const p$2 = (d, e, t) => ({
|
|
6183
6212
|
title: d,
|
|
6184
6213
|
type: "model",
|
|
6185
6214
|
errorGroup: "ModelDefinitionError",
|
|
6186
6215
|
errorType: "InvalidModelDefinition",
|
|
6187
6216
|
attribute: e,
|
|
6188
6217
|
description: t
|
|
6189
|
-
}),
|
|
6218
|
+
}), Le$1 = (d) => {
|
|
6190
6219
|
const e = [
|
|
6191
6220
|
"any",
|
|
6192
6221
|
"Array<date>",
|
|
@@ -6201,40 +6230,40 @@
|
|
|
6201
6230
|
"string"
|
|
6202
6231
|
];
|
|
6203
6232
|
if (!d.key)
|
|
6204
|
-
return
|
|
6233
|
+
return p$2("Invalid Property", d.key, "Property key is missing");
|
|
6205
6234
|
if (!d.type || e.indexOf(d.type) === -1)
|
|
6206
|
-
return
|
|
6235
|
+
return p$2("Invalid Property", d.key, "Property type is invalid");
|
|
6207
6236
|
if ("derive" in d) {
|
|
6208
6237
|
if (!d.derive?.localReference)
|
|
6209
|
-
return
|
|
6238
|
+
return p$2("Invalid Property", d.key, "Derived Property localReference is missing");
|
|
6210
6239
|
if (!d.derive.remoteProperty)
|
|
6211
|
-
return
|
|
6240
|
+
return p$2("Invalid Property", d.key, "Derived Property remoteProperty is missing");
|
|
6212
6241
|
}
|
|
6213
6242
|
if ("expression" in d && typeof d.expression != "string")
|
|
6214
|
-
return
|
|
6215
|
-
},
|
|
6243
|
+
return p$2("Invalid Property", d.key, "Expression is invalid");
|
|
6244
|
+
}, je$1 = (d) => {
|
|
6216
6245
|
const e = ["multiValued", "singleValued"];
|
|
6217
6246
|
if (!d.key)
|
|
6218
|
-
return
|
|
6247
|
+
return p$2("Invalid Reference", d.key, "Reference key is missing");
|
|
6219
6248
|
if (!d.type || e.indexOf(d.type) === -1)
|
|
6220
|
-
return
|
|
6249
|
+
return p$2("Invalid Reference", d.key, "Reference type is invalid");
|
|
6221
6250
|
if (!d.model)
|
|
6222
|
-
return
|
|
6251
|
+
return p$2("Invalid Reference", d.key, "Reference model is missing");
|
|
6223
6252
|
if ("derive" in d) {
|
|
6224
6253
|
if (!d.derive.localReference)
|
|
6225
|
-
return
|
|
6254
|
+
return p$2("Invalid Reference", d.key, "Derived Reference localReference is missing");
|
|
6226
6255
|
if (!d.derive.remoteReference)
|
|
6227
|
-
return
|
|
6256
|
+
return p$2("Invalid Reference", d.key, "Derived Reference remoteReference is missing");
|
|
6228
6257
|
}
|
|
6229
6258
|
if ("resolve" in d) {
|
|
6230
6259
|
if (!d.resolve.reference)
|
|
6231
|
-
return
|
|
6260
|
+
return p$2("Invalid Reference", d.key, "Resolved Reference reference is missing");
|
|
6232
6261
|
if (!d.resolve.model)
|
|
6233
|
-
return
|
|
6262
|
+
return p$2("Invalid Reference", d.key, "Resolved Reference model is missing");
|
|
6234
6263
|
}
|
|
6235
6264
|
if ("groupBy" in d && !d.groupBy.reference)
|
|
6236
|
-
return
|
|
6237
|
-
},
|
|
6265
|
+
return p$2("Invalid Reference", d.key, "Grouped Reference reference is missing");
|
|
6266
|
+
}, He$1 = (d) => {
|
|
6238
6267
|
if (typeof d.key != "string" || d.key.length === 0)
|
|
6239
6268
|
throw new Error("Invalid Model: key must be a non-empty string");
|
|
6240
6269
|
if (typeof d.keyProperty < "u") {
|
|
@@ -6264,7 +6293,7 @@
|
|
|
6264
6293
|
if (d.references && !Array.isArray(d.references))
|
|
6265
6294
|
throw new Error("Invalid Model: references must be an array");
|
|
6266
6295
|
return true;
|
|
6267
|
-
},
|
|
6296
|
+
}, Je$1 = (d, e) => {
|
|
6268
6297
|
const t = [];
|
|
6269
6298
|
return d.references.forEach((s) => {
|
|
6270
6299
|
e.has(s.model) || t.push({
|
|
@@ -6275,11 +6304,11 @@
|
|
|
6275
6304
|
attribute: s.key,
|
|
6276
6305
|
model: d.key,
|
|
6277
6306
|
description: `Referenced model ${s.model} does not exist`
|
|
6278
|
-
}), "derive" in s && t.push(...
|
|
6307
|
+
}), "derive" in s && t.push(...Ye$1(s, d, e)), "resolve" in s && t.push(...Ze$1(s, d, e)), "groupBy" in s && t.push(...Xe$1(s, d));
|
|
6279
6308
|
}), d.properties.forEach((s) => {
|
|
6280
|
-
"derive" in s && t.push(...
|
|
6309
|
+
"derive" in s && t.push(...et$1(s, d, e)), "expression" in s && t.push(...tt$1(s, d));
|
|
6281
6310
|
}), t;
|
|
6282
|
-
},
|
|
6311
|
+
}, Ye$1 = (d, e, t) => {
|
|
6283
6312
|
const s = [], r = e.references.get(d.derive.localReference);
|
|
6284
6313
|
if (!r)
|
|
6285
6314
|
return s.push({
|
|
@@ -6301,7 +6330,7 @@
|
|
|
6301
6330
|
model: e.key,
|
|
6302
6331
|
description: `Remote Reference ${d.derive.remoteReference} does not exist in model ${i.key}`
|
|
6303
6332
|
})), s;
|
|
6304
|
-
},
|
|
6333
|
+
}, Ze$1 = (d, e, t) => {
|
|
6305
6334
|
const s = [], r = t.get(d.resolve.model);
|
|
6306
6335
|
return r ? (r.references.get(d.resolve.reference) || s.push({
|
|
6307
6336
|
title: "Missing Reference",
|
|
@@ -6320,7 +6349,7 @@
|
|
|
6320
6349
|
model: e.key,
|
|
6321
6350
|
description: `Referenced model ${d.model} does not exist`
|
|
6322
6351
|
}), s);
|
|
6323
|
-
},
|
|
6352
|
+
}, Xe$1 = (d, e) => {
|
|
6324
6353
|
const t = [];
|
|
6325
6354
|
return e.references.get(d.groupBy.reference) || t.push({
|
|
6326
6355
|
title: "Missing Reference",
|
|
@@ -6331,7 +6360,7 @@
|
|
|
6331
6360
|
model: e.key,
|
|
6332
6361
|
description: `Resolved Reference ${d.groupBy.reference} does not exist in model ${e.key}`
|
|
6333
6362
|
}), t;
|
|
6334
|
-
},
|
|
6363
|
+
}, et$1 = (d, e, t) => {
|
|
6335
6364
|
const s = [], r = e.references.get(d.derive.localReference);
|
|
6336
6365
|
if (!r)
|
|
6337
6366
|
return s.push({
|
|
@@ -6358,9 +6387,9 @@
|
|
|
6358
6387
|
});
|
|
6359
6388
|
}
|
|
6360
6389
|
return s;
|
|
6361
|
-
},
|
|
6390
|
+
}, tt$1 = (d, e) => {
|
|
6362
6391
|
const t = [];
|
|
6363
|
-
return
|
|
6392
|
+
return Lu(d.expression).variables.forEach((r) => {
|
|
6364
6393
|
r.name === "key" || r.name.endsWith(".key") || !e.properties.get(r.name) && !e.references.get(r.name) && t.push({
|
|
6365
6394
|
title: "Unknown Expression Variable",
|
|
6366
6395
|
type: "model",
|
|
@@ -6371,29 +6400,29 @@
|
|
|
6371
6400
|
description: `Expression Variable ${r.name} not found in expression ${d.key} in ${e.key}`
|
|
6372
6401
|
});
|
|
6373
6402
|
}), t;
|
|
6374
|
-
},
|
|
6375
|
-
function
|
|
6403
|
+
}, v$1 = "::";
|
|
6404
|
+
function rt$1(d) {
|
|
6376
6405
|
return typeof d == "string" ? [d] : Array.isArray(d) ? d : [];
|
|
6377
6406
|
}
|
|
6378
|
-
function
|
|
6407
|
+
function j$1(d, e, t = v$1) {
|
|
6379
6408
|
return typeof e == "string" ? String(d[e]) : e.length === 1 ? String(d[e[0]]) : e.map((s) => String(d[s])).join(t);
|
|
6380
6409
|
}
|
|
6381
|
-
function
|
|
6410
|
+
function S$1(d, e = v$1) {
|
|
6382
6411
|
if (d !== void 0)
|
|
6383
6412
|
return typeof d == "string" ? d : d.join(e);
|
|
6384
6413
|
}
|
|
6385
|
-
const
|
|
6414
|
+
const st$1 = {
|
|
6386
6415
|
REF_VALUE: "_dcupl_ref_"
|
|
6387
|
-
},
|
|
6416
|
+
}, H$1 = {
|
|
6388
6417
|
required: true,
|
|
6389
6418
|
forceStrictDataType: false,
|
|
6390
6419
|
nullable: false,
|
|
6391
6420
|
validatorHandling: "loose"
|
|
6392
|
-
},
|
|
6421
|
+
}, V$1 = {
|
|
6393
6422
|
enabled: true,
|
|
6394
|
-
attributes:
|
|
6423
|
+
attributes: H$1
|
|
6395
6424
|
};
|
|
6396
|
-
let
|
|
6425
|
+
let it$1 = class it {
|
|
6397
6426
|
constructor(e) {
|
|
6398
6427
|
this.modelParser = e, this.cdRef = e.cdRef;
|
|
6399
6428
|
}
|
|
@@ -6413,7 +6442,7 @@
|
|
|
6413
6442
|
keyPropertySeparator;
|
|
6414
6443
|
valueMappings = [];
|
|
6415
6444
|
meta;
|
|
6416
|
-
qualityConfig =
|
|
6445
|
+
qualityConfig = V$1;
|
|
6417
6446
|
indicesController = new hu();
|
|
6418
6447
|
cdRef;
|
|
6419
6448
|
// #120 Performance optimization: Reverse index for grouped references
|
|
@@ -6421,12 +6450,12 @@
|
|
|
6421
6450
|
// Enables O(1) lookup instead of O(n·v²) nested loops
|
|
6422
6451
|
groupedRefReverseIndex = /* @__PURE__ */ new Map();
|
|
6423
6452
|
init(e) {
|
|
6424
|
-
this.key = e.key, this.initialDefinition = e, e.quality && (this.qualityConfig =
|
|
6453
|
+
this.key = e.key, this.initialDefinition = e, e.quality && (this.qualityConfig = A$1({}, V$1, e.quality));
|
|
6425
6454
|
}
|
|
6426
6455
|
applyPropertiesAndReferences(e) {
|
|
6427
6456
|
const t = /* @__PURE__ */ new Set();
|
|
6428
6457
|
e.properties?.map((s) => {
|
|
6429
|
-
const r =
|
|
6458
|
+
const r = Le$1(s);
|
|
6430
6459
|
if (r)
|
|
6431
6460
|
r.model = this.key, this.setError(r);
|
|
6432
6461
|
else {
|
|
@@ -6445,12 +6474,12 @@
|
|
|
6445
6474
|
t.add(s.key), this.setAttributeQualityConfig(s), this.properties.set(s.key, s);
|
|
6446
6475
|
}
|
|
6447
6476
|
}), e.references?.map((s) => {
|
|
6448
|
-
const r =
|
|
6477
|
+
const r = je$1(s);
|
|
6449
6478
|
r ? (r.model = this.key, this.setError(r)) : (s.validity = s.validity || "loose", this.setAttributeQualityConfig(s), this.references.set(s.key, s));
|
|
6450
6479
|
}), this.supportsAutoCreation = !!e.supportsAutoCreation, this.keyProperty = e.keyProperty || "key", this.keyPropertySeparator = e.keyPropertySeparator, this.autoGenerateKey = !!e.autoGenerateKey, this.autoGenerateProperties = !!e.autoGenerateProperties, this.autoGeneratePropertiesOption = e.autoGenerateProperties ?? false, this.valueMappings = e.valueMappings || [], this.meta = e.meta;
|
|
6451
6480
|
}
|
|
6452
6481
|
setAttributeQualityConfig(e) {
|
|
6453
|
-
const t = this.qualityConfig.attributes, s =
|
|
6482
|
+
const t = this.qualityConfig.attributes, s = A$1({}, H$1, t, e.quality);
|
|
6454
6483
|
this.attributeQualityConfigs.set(e.key, s);
|
|
6455
6484
|
}
|
|
6456
6485
|
getModelDefinition() {
|
|
@@ -6475,7 +6504,7 @@
|
|
|
6475
6504
|
if (r.key === "key")
|
|
6476
6505
|
return;
|
|
6477
6506
|
const i = e.keyProperty ?? this.keyProperty;
|
|
6478
|
-
|
|
6507
|
+
rt$1(i).some((n) => n && n !== "key" && n === r.key) && (r.type = "string"), r.filter = true, this.properties.set(r.key, r);
|
|
6479
6508
|
}
|
|
6480
6509
|
});
|
|
6481
6510
|
}
|
|
@@ -6739,15 +6768,15 @@
|
|
|
6739
6768
|
}
|
|
6740
6769
|
processJSONProperty(e, t, s) {
|
|
6741
6770
|
if (this.attributeQualityConfigs.get(e.key)?.forceStrictDataType) {
|
|
6742
|
-
if (!T$
|
|
6771
|
+
if (!T$4(t)) {
|
|
6743
6772
|
this.setError(this.getWrongDataTypeError(e, t, s));
|
|
6744
6773
|
return;
|
|
6745
6774
|
}
|
|
6746
6775
|
return t;
|
|
6747
6776
|
}
|
|
6748
|
-
if (T$
|
|
6777
|
+
if (T$4(t))
|
|
6749
6778
|
return t;
|
|
6750
|
-
if (!T$
|
|
6779
|
+
if (!T$4(t) && typeof t == "string")
|
|
6751
6780
|
try {
|
|
6752
6781
|
return JSON.parse(t);
|
|
6753
6782
|
} catch {
|
|
@@ -6757,7 +6786,7 @@
|
|
|
6757
6786
|
}
|
|
6758
6787
|
processBooleanProperty(e, t, s) {
|
|
6759
6788
|
if (this.attributeQualityConfigs.get(e.key)?.forceStrictDataType) {
|
|
6760
|
-
if (!
|
|
6789
|
+
if (!ze$1(t)) {
|
|
6761
6790
|
this.setError(this.getWrongDataTypeError(e, t, s));
|
|
6762
6791
|
return;
|
|
6763
6792
|
}
|
|
@@ -6877,7 +6906,7 @@
|
|
|
6877
6906
|
r && r.sourceColumns.length > 0 && this.emitUnknownColumnErrors(e, r.sourceColumns, t, s, i);
|
|
6878
6907
|
for (let o of e.data) {
|
|
6879
6908
|
if (o.key === void 0 || o.key === null) {
|
|
6880
|
-
const l = e.keyProperty ?? this.keyProperty, c = e.keyPropertySeparator ?? this.keyPropertySeparator ??
|
|
6909
|
+
const l = e.keyProperty ?? this.keyProperty, c = e.keyPropertySeparator ?? this.keyPropertySeparator ?? v$1, f = S$1(l, c);
|
|
6881
6910
|
this.setError({
|
|
6882
6911
|
title: "Missing Key",
|
|
6883
6912
|
type: "model",
|
|
@@ -6895,7 +6924,7 @@
|
|
|
6895
6924
|
key: String(o.key)
|
|
6896
6925
|
};
|
|
6897
6926
|
else if (e.type === "set") {
|
|
6898
|
-
const l = e.keyProperty ?? this.keyProperty, c = e.keyPropertySeparator ?? this.keyPropertySeparator ??
|
|
6927
|
+
const l = e.keyProperty ?? this.keyProperty, c = e.keyPropertySeparator ?? this.keyPropertySeparator ?? v$1, f = S$1(l, c), u = String(o.key);
|
|
6899
6928
|
this.setError({
|
|
6900
6929
|
title: "Non Unique Key",
|
|
6901
6930
|
type: "model",
|
|
@@ -6979,7 +7008,7 @@
|
|
|
6979
7008
|
const r = JSON.stringify(s.query);
|
|
6980
7009
|
for (let i of e.data) {
|
|
6981
7010
|
let o = this.data.get(String(i.key));
|
|
6982
|
-
const n =
|
|
7011
|
+
const n = Fu(r, { ...i }), a = JSON.parse(n), l = new ar$1();
|
|
6983
7012
|
l.init({ modelKey: s.model }), l.applyQuery(a, { mode: "set" }), a.projection || l.applyOptions({ projection: { $: false } });
|
|
6984
7013
|
const c = l.getQuery();
|
|
6985
7014
|
if (c.queries.length > 0) {
|
|
@@ -7022,20 +7051,16 @@
|
|
|
7022
7051
|
if (t === null)
|
|
7023
7052
|
return { key: "null" };
|
|
7024
7053
|
if (typeof t == "object") {
|
|
7025
|
-
const s = e.keyProperty, r = e.keyPropertySeparator ??
|
|
7054
|
+
const s = e.keyProperty, r = e.keyPropertySeparator ?? v$1;
|
|
7026
7055
|
let i;
|
|
7027
|
-
e.autoGenerateKey ? i = Za() : typeof s == "string" || Array.isArray(s) && s.length > 0 ? i =
|
|
7056
|
+
e.autoGenerateKey ? i = Za() : typeof s == "string" || Array.isArray(s) && s.length > 0 ? i = j$1(t, s, r) : i = String(t.key), e.data.set(i, { key: i }), t.key = i;
|
|
7028
7057
|
const o = { model: e.key, data: [t] };
|
|
7029
|
-
return
|
|
7030
|
-
e.addContainer(o);
|
|
7031
|
-
}, 0), { key: i };
|
|
7058
|
+
return Pu().then(() => e.addContainer(o)), { key: i };
|
|
7032
7059
|
}
|
|
7033
7060
|
if (typeof t == "string") {
|
|
7034
7061
|
e.data.set(t, { key: t });
|
|
7035
7062
|
const s = { model: e.key, data: [{ key: t }] };
|
|
7036
|
-
|
|
7037
|
-
e.addContainer(s);
|
|
7038
|
-
}, 0);
|
|
7063
|
+
Pu().then(() => e.addContainer(s));
|
|
7039
7064
|
}
|
|
7040
7065
|
return { key: String(t) };
|
|
7041
7066
|
}
|
|
@@ -7144,7 +7169,7 @@
|
|
|
7144
7169
|
}), t.length > 0 && t.forEach((l) => {
|
|
7145
7170
|
this.handleDerivedProperties(l, n);
|
|
7146
7171
|
}), s.length > 0 && s.forEach((l) => {
|
|
7147
|
-
const c = this.createExpressionContext(n), f =
|
|
7172
|
+
const c = this.createExpressionContext(n), f = Fu(l.expression, c);
|
|
7148
7173
|
n[l.key] = f;
|
|
7149
7174
|
});
|
|
7150
7175
|
const a = String(n.key);
|
|
@@ -7227,7 +7252,7 @@
|
|
|
7227
7252
|
}
|
|
7228
7253
|
}
|
|
7229
7254
|
let n;
|
|
7230
|
-
e.type === "singleValued" ? n = { key: o[0] } : n = o.map((a) => ({ key: a })), this.indicesController.fillInverseIndex(e.key, t.key, o), t[e.key] = n;
|
|
7255
|
+
e.type === "singleValued" ? n = { key: o[0] } : n = o.map((a) => ({ key: a })), this.indicesController.fillInverseIndex(e.key, t.key, o), this.groupedRefReverseIndex.delete(e.key), t[e.key] = n;
|
|
7231
7256
|
}
|
|
7232
7257
|
asStringArray(e) {
|
|
7233
7258
|
return e ? Array.isArray(e) ? e.map((t) => t.key) : [e.key] : [];
|
|
@@ -7267,6 +7292,25 @@
|
|
|
7267
7292
|
resetIndexMap() {
|
|
7268
7293
|
this.indicesController.reset();
|
|
7269
7294
|
}
|
|
7295
|
+
/**
|
|
7296
|
+
* Drops model-level indices derived from the given attributes after a
|
|
7297
|
+
* partial update (#243): lazily built plain indices (facets/pivot
|
|
7298
|
+
* fallback), context-hashed indices (aggregate/sections/suggest) and
|
|
7299
|
+
* deep-query indices are built from data a partial update silently
|
|
7300
|
+
* invalidates — the next read rebuilds them from current data. A
|
|
7301
|
+
* reference's plain index stays: it is maintained eagerly during
|
|
7302
|
+
* processing, and the generic lazy rebuild cannot reproduce its shape.
|
|
7303
|
+
*/
|
|
7304
|
+
resetIndicesForChangedAttributes(e) {
|
|
7305
|
+
this.indicesController.resetIndicesWhere((t) => {
|
|
7306
|
+
if (this.references.has(t))
|
|
7307
|
+
return false;
|
|
7308
|
+
for (const s of e)
|
|
7309
|
+
if (t === s || t.startsWith(`${s}_`) || t.startsWith(`${s}.`))
|
|
7310
|
+
return true;
|
|
7311
|
+
return false;
|
|
7312
|
+
});
|
|
7313
|
+
}
|
|
7270
7314
|
deleteDataEntries(e) {
|
|
7271
7315
|
for (const t of e.data) {
|
|
7272
7316
|
const s = String(t.key);
|
|
@@ -7401,7 +7445,7 @@
|
|
|
7401
7445
|
return this.data.get(e);
|
|
7402
7446
|
}
|
|
7403
7447
|
setRefValue(e, t) {
|
|
7404
|
-
this.modelParser.initOptions.referenceMetadata?.enabled && Object.defineProperty(e,
|
|
7448
|
+
this.modelParser.initOptions.referenceMetadata?.enabled && Object.defineProperty(e, st$1.REF_VALUE, {
|
|
7405
7449
|
value: t,
|
|
7406
7450
|
enumerable: true,
|
|
7407
7451
|
writable: false,
|
|
@@ -7419,7 +7463,7 @@
|
|
|
7419
7463
|
const s = this.getBasicProperties().filter((o) => t.has(o.key)), r = this.getBasicReferences().filter((o) => t.has(o.key)), i = this.modelParser.qualityController.dcupl?.getContainerSourceMetadata(e)?.origin ?? "inline";
|
|
7420
7464
|
for (let o of e.data) {
|
|
7421
7465
|
if (o.key === void 0 || o.key === null) {
|
|
7422
|
-
const l = e.keyProperty ?? this.keyProperty, c = e.keyPropertySeparator ?? this.keyPropertySeparator ??
|
|
7466
|
+
const l = e.keyProperty ?? this.keyProperty, c = e.keyPropertySeparator ?? this.keyPropertySeparator ?? v$1, f = S$1(l, c);
|
|
7423
7467
|
this.setError({
|
|
7424
7468
|
title: "Missing Key",
|
|
7425
7469
|
type: "model",
|
|
@@ -7443,12 +7487,12 @@
|
|
|
7443
7487
|
for (const l of r) {
|
|
7444
7488
|
const c = this.attributeQualityConfigs.get(l.key);
|
|
7445
7489
|
l.origin && (o[l.key] = o[l.origin]);
|
|
7446
|
-
const f = this.valueMappings.find((
|
|
7490
|
+
const f = this.valueMappings.find((h2) => h2.attributes.includes(l.key));
|
|
7447
7491
|
this.isValidValueMapping(f) && (o = this.mapRawValueUsingValueMapping(o, l.key, f));
|
|
7448
7492
|
let u = o[l.key];
|
|
7449
7493
|
typeof u == "number" && (u = String(u));
|
|
7450
7494
|
const y2 = n[l.key];
|
|
7451
|
-
if (!u) {
|
|
7495
|
+
if (this.groupedRefReverseIndex.delete(l.key), !u) {
|
|
7452
7496
|
y2 && this.indicesController.removeFromInverseIndex(l.key, n.key, [y2]), this.indicesController.fillInverseIndex(l.key, n.key, [void 0]), delete n[l.key], c?.required && this.setError({
|
|
7453
7497
|
title: "Undefined Value",
|
|
7454
7498
|
type: "model",
|
|
@@ -7480,8 +7524,8 @@
|
|
|
7480
7524
|
}
|
|
7481
7525
|
});
|
|
7482
7526
|
else if (l.type === "multiValued") {
|
|
7483
|
-
const
|
|
7484
|
-
Array.isArray(
|
|
7527
|
+
const h2 = this.getValueAsArray(u, l?.separator);
|
|
7528
|
+
Array.isArray(h2) ? (y2 && Array.isArray(y2) && this.indicesController.removeFromInverseIndex(l.key, n.key, y2), this.processMultiValuedReference(l, h2, n)) : this.setError({
|
|
7485
7529
|
title: "Wrong Data Type",
|
|
7486
7530
|
type: "model",
|
|
7487
7531
|
errorGroup: "ReferenceDataError",
|
|
@@ -7512,13 +7556,13 @@
|
|
|
7512
7556
|
for (let o of e.data) {
|
|
7513
7557
|
let n = this.data.get(String(o.key));
|
|
7514
7558
|
if (!n) continue;
|
|
7515
|
-
const a =
|
|
7559
|
+
const a = Fu(i, { ...o }), l = JSON.parse(a), c = new ar$1();
|
|
7516
7560
|
c.init({ modelKey: r.model }), c.applyQuery(l, { mode: "set" }), l.projection || c.applyOptions({ projection: { $: false } });
|
|
7517
7561
|
const f = c.getQuery();
|
|
7518
7562
|
if (f.queries.length > 0) {
|
|
7519
7563
|
const y2 = this.modelParser.dcuplInstance.query.execute(f);
|
|
7520
|
-
r.type === "singleValued" ? y2[0] && (n[r.key] = { key: y2[0].key, _dcupl_ref_: "hit" }) : r.type === "multiValued" && (y2.forEach((
|
|
7521
|
-
|
|
7564
|
+
r.type === "singleValued" ? y2[0] && (n[r.key] = { key: y2[0].key, _dcupl_ref_: "hit" }) : r.type === "multiValued" && (y2.forEach((h2) => {
|
|
7565
|
+
h2._dcupl_ref_ = "hit";
|
|
7522
7566
|
}), n[r.key] = y2);
|
|
7523
7567
|
} else
|
|
7524
7568
|
r.type === "singleValued" ? n[r.key] = null : r.type === "multiValued" && (n[r.key] = []);
|
|
@@ -7583,7 +7627,7 @@
|
|
|
7583
7627
|
}), s.forEach((c) => {
|
|
7584
7628
|
this.handleDerivedProperties(c, a);
|
|
7585
7629
|
}), o.forEach((c) => {
|
|
7586
|
-
const f = this.createExpressionContext(a), u =
|
|
7630
|
+
const f = this.createExpressionContext(a), u = Fu(c.expression, f);
|
|
7587
7631
|
a[c.key] = u;
|
|
7588
7632
|
});
|
|
7589
7633
|
const l = String(a.key);
|
|
@@ -7610,7 +7654,7 @@
|
|
|
7610
7654
|
}
|
|
7611
7655
|
}
|
|
7612
7656
|
};
|
|
7613
|
-
let
|
|
7657
|
+
let ot$2 = class ot {
|
|
7614
7658
|
changedAttributes;
|
|
7615
7659
|
// modelKey → Set<attributeKeys>
|
|
7616
7660
|
changedItems;
|
|
@@ -7746,6 +7790,8 @@
|
|
|
7746
7790
|
let e = 0;
|
|
7747
7791
|
for (const t of this.changedItems.values())
|
|
7748
7792
|
e += t.size;
|
|
7793
|
+
for (const t of this.deletedItems.values())
|
|
7794
|
+
e += t.size;
|
|
7749
7795
|
return e;
|
|
7750
7796
|
}
|
|
7751
7797
|
/**
|
|
@@ -7806,7 +7852,7 @@
|
|
|
7806
7852
|
};
|
|
7807
7853
|
}
|
|
7808
7854
|
};
|
|
7809
|
-
let
|
|
7855
|
+
let nt$1 = class nt {
|
|
7810
7856
|
metrics = [];
|
|
7811
7857
|
enabled = false;
|
|
7812
7858
|
constructor() {
|
|
@@ -7881,24 +7927,24 @@
|
|
|
7881
7927
|
return this.metrics.filter((s) => s.timestamp >= e && s.timestamp <= t);
|
|
7882
7928
|
}
|
|
7883
7929
|
};
|
|
7884
|
-
function
|
|
7930
|
+
function at$1(d) {
|
|
7885
7931
|
return "query" in d;
|
|
7886
7932
|
}
|
|
7887
|
-
function
|
|
7933
|
+
function I(d) {
|
|
7888
7934
|
return "resolve" in d;
|
|
7889
7935
|
}
|
|
7890
|
-
function
|
|
7936
|
+
function dt(d) {
|
|
7891
7937
|
return "derive" in d;
|
|
7892
7938
|
}
|
|
7893
|
-
function
|
|
7939
|
+
function lt$1(d) {
|
|
7894
7940
|
return "groupBy" in d;
|
|
7895
7941
|
}
|
|
7896
|
-
var
|
|
7897
|
-
for (var r =
|
|
7942
|
+
var ct$1 = Object.defineProperty, ft$1 = Object.getOwnPropertyDescriptor, E$2 = (d, e, t, s) => {
|
|
7943
|
+
for (var r = ft$1(e, t), i = d.length - 1, o; i >= 0; i--)
|
|
7898
7944
|
(o = d[i]) && (r = o(e, t, r) || r);
|
|
7899
|
-
return r &&
|
|
7945
|
+
return r && ct$1(e, t, r), r;
|
|
7900
7946
|
};
|
|
7901
|
-
let
|
|
7947
|
+
let M$1 = class M {
|
|
7902
7948
|
constructor(e, t, s) {
|
|
7903
7949
|
this.cdRef = e, this.qualityController = t, this.dcuplInstance = s, this.qualityController.modelParser = this;
|
|
7904
7950
|
}
|
|
@@ -7915,8 +7961,8 @@
|
|
|
7915
7961
|
keyedContainers = /* @__PURE__ */ new WeakSet();
|
|
7916
7962
|
dependencyGraph;
|
|
7917
7963
|
attributeDependencyGraph;
|
|
7918
|
-
changeTracker = new
|
|
7919
|
-
partialUpdateMetrics = new
|
|
7964
|
+
changeTracker = new ot$2();
|
|
7965
|
+
partialUpdateMetrics = new nt$1();
|
|
7920
7966
|
views = /* @__PURE__ */ new Map();
|
|
7921
7967
|
models = /* @__PURE__ */ new Map();
|
|
7922
7968
|
initOptions;
|
|
@@ -7932,14 +7978,14 @@
|
|
|
7932
7978
|
if (this.models.has(e.key))
|
|
7933
7979
|
this.models.get(e.key).resetData(), this.models.get(e.key).resetIndexMap(), this.models.get(e.key).applyPropertiesAndReferences(e);
|
|
7934
7980
|
else {
|
|
7935
|
-
const t = new
|
|
7981
|
+
const t = new it$1(this);
|
|
7936
7982
|
t.init(e), t.applyPropertiesAndReferences(e), this.models.set(t.key, t);
|
|
7937
7983
|
}
|
|
7938
7984
|
});
|
|
7939
7985
|
}
|
|
7940
7986
|
validateModels() {
|
|
7941
7987
|
this.models.forEach((e) => {
|
|
7942
|
-
e.qualityConfig.enabled === true &&
|
|
7988
|
+
e.qualityConfig.enabled === true && Je$1(e, this.models).forEach((s) => {
|
|
7943
7989
|
this.setError(s, e);
|
|
7944
7990
|
});
|
|
7945
7991
|
});
|
|
@@ -7975,7 +8021,7 @@ Models cannot have circular references as this leads to unpredictable behavior d
|
|
|
7975
8021
|
* This enables partial updates by tracking which attributes depend on others.
|
|
7976
8022
|
*/
|
|
7977
8023
|
buildAttributeDependencyGraph() {
|
|
7978
|
-
this.attributeDependencyGraph = new
|
|
8024
|
+
this.attributeDependencyGraph = new Cu(), this.models.forEach((e) => {
|
|
7979
8025
|
const t = e.key;
|
|
7980
8026
|
e.properties.forEach((s, r) => {
|
|
7981
8027
|
if (s.expression)
|
|
@@ -7992,13 +8038,13 @@ Models cannot have circular references as this leads to unpredictable behavior d
|
|
|
7992
8038
|
this.attributeDependencyGraph.addAttribute(i);
|
|
7993
8039
|
}
|
|
7994
8040
|
}), e.references.forEach((s, r) => {
|
|
7995
|
-
if (
|
|
8041
|
+
if (at$1(s))
|
|
7996
8042
|
this.processQueryReference(t, r, s.query);
|
|
7997
|
-
else if (
|
|
8043
|
+
else if (I(s))
|
|
7998
8044
|
this.processResolvedReference(t, r, s.resolve);
|
|
7999
|
-
else if (at$1(s))
|
|
8000
|
-
this.processDerivedReference(t, r, s.derive);
|
|
8001
8045
|
else if (dt(s))
|
|
8046
|
+
this.processDerivedReference(t, r, s.derive);
|
|
8047
|
+
else if (lt$1(s))
|
|
8002
8048
|
this.processGroupedReference(t, r, s.groupBy);
|
|
8003
8049
|
else {
|
|
8004
8050
|
const i = {
|
|
@@ -8047,7 +8093,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
8047
8093
|
processingStep: 3
|
|
8048
8094
|
};
|
|
8049
8095
|
this.attributeDependencyGraph.addAttribute(r);
|
|
8050
|
-
const { variables: i } =
|
|
8096
|
+
const { variables: i } = Lu(s);
|
|
8051
8097
|
i.forEach((o) => {
|
|
8052
8098
|
const a = o.name.split("."), l = this.models.get(e);
|
|
8053
8099
|
if (!l) return;
|
|
@@ -8069,18 +8115,18 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
8069
8115
|
};
|
|
8070
8116
|
if (this.attributeDependencyGraph.addAttributeDependency(r, f), a.length > 1) {
|
|
8071
8117
|
let u = l, y2 = e;
|
|
8072
|
-
for (let
|
|
8073
|
-
const
|
|
8074
|
-
if (
|
|
8075
|
-
const
|
|
8076
|
-
if (
|
|
8077
|
-
const
|
|
8118
|
+
for (let h2 = 0; h2 < a.length - 1; h2++) {
|
|
8119
|
+
const b2 = a[h2], k2 = u.references.get(b2);
|
|
8120
|
+
if (k2) {
|
|
8121
|
+
const $2 = this.models.get(k2.model);
|
|
8122
|
+
if ($2 && (u = $2, y2 = k2.model, h2 === a.length - 2)) {
|
|
8123
|
+
const J2 = a[a.length - 1], Y2 = {
|
|
8078
8124
|
modelKey: y2,
|
|
8079
|
-
attributeKey:
|
|
8125
|
+
attributeKey: J2,
|
|
8080
8126
|
type: "property",
|
|
8081
8127
|
processingStep: 1
|
|
8082
8128
|
};
|
|
8083
|
-
this.attributeDependencyGraph.addAttributeDependency(r,
|
|
8129
|
+
this.attributeDependencyGraph.addAttributeDependency(r, Y2);
|
|
8084
8130
|
}
|
|
8085
8131
|
}
|
|
8086
8132
|
}
|
|
@@ -8135,7 +8181,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
8135
8181
|
};
|
|
8136
8182
|
this.attributeDependencyGraph.addAttribute(r);
|
|
8137
8183
|
try {
|
|
8138
|
-
const i = JSON.stringify(s), { variables: o } =
|
|
8184
|
+
const i = JSON.stringify(s), { variables: o } = Lu(i);
|
|
8139
8185
|
o.forEach((n) => {
|
|
8140
8186
|
const a = n.name, l = this.models.get(e);
|
|
8141
8187
|
if (l) {
|
|
@@ -8333,7 +8379,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
8333
8379
|
addModel(e) {
|
|
8334
8380
|
if (e?.quality?.enabled !== false)
|
|
8335
8381
|
try {
|
|
8336
|
-
|
|
8382
|
+
He$1(e);
|
|
8337
8383
|
} catch (t) {
|
|
8338
8384
|
this.qualityController.enabled && this.qualityController.setError({
|
|
8339
8385
|
title: "Invalid Model Definition",
|
|
@@ -8392,7 +8438,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
8392
8438
|
this.qualityController.enabled && t.qualityConfig.enabled === true && this.qualityController.setError(e);
|
|
8393
8439
|
}
|
|
8394
8440
|
getMergedContainers(e) {
|
|
8395
|
-
const s = this.handleAlternativeKey(e).filter((o) => !o.placeholderUid), r = [], i =
|
|
8441
|
+
const s = this.handleAlternativeKey(e).filter((o) => !o.placeholderUid), r = [], i = We$1(s, "model");
|
|
8396
8442
|
for (const o in i) {
|
|
8397
8443
|
const n = i[o];
|
|
8398
8444
|
if (n.length > 1) {
|
|
@@ -8437,7 +8483,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
8437
8483
|
r.data.forEach((i) => {
|
|
8438
8484
|
if (t.has(i.key)) {
|
|
8439
8485
|
let n = t.get(i.key);
|
|
8440
|
-
n =
|
|
8486
|
+
n = A$1(n, i), t.set(i.key, n);
|
|
8441
8487
|
} else
|
|
8442
8488
|
t.set(i.key, i);
|
|
8443
8489
|
});
|
|
@@ -8446,7 +8492,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
8446
8492
|
r.data.forEach((i) => {
|
|
8447
8493
|
if (t.has(i.key)) {
|
|
8448
8494
|
let n = t.get(i.key);
|
|
8449
|
-
n =
|
|
8495
|
+
n = A$1(n, i), t.set(i.key, n);
|
|
8450
8496
|
}
|
|
8451
8497
|
});
|
|
8452
8498
|
break;
|
|
@@ -8555,6 +8601,15 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
8555
8601
|
}
|
|
8556
8602
|
for (const o of [1, 2, 3, 4])
|
|
8557
8603
|
await this.processAttributesForStep(o, i, e);
|
|
8604
|
+
for (const [o, n] of i.entries()) {
|
|
8605
|
+
const a = this.models.get(o);
|
|
8606
|
+
if (!a) continue;
|
|
8607
|
+
const l = /* @__PURE__ */ new Set();
|
|
8608
|
+
for (const c of n.values())
|
|
8609
|
+
for (const f of c)
|
|
8610
|
+
l.add(f);
|
|
8611
|
+
a.resetIndicesForChangedAttributes(l);
|
|
8612
|
+
}
|
|
8558
8613
|
for (const o of e) {
|
|
8559
8614
|
const n = this.models.get(o.model);
|
|
8560
8615
|
if (n && this.qualityController.enabled) {
|
|
@@ -8588,11 +8643,11 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
8588
8643
|
if (c)
|
|
8589
8644
|
for (const f of c) {
|
|
8590
8645
|
const u = l.references.get(f);
|
|
8591
|
-
if (u &&
|
|
8592
|
-
const y2 = u.resolve.model,
|
|
8593
|
-
if (
|
|
8594
|
-
const
|
|
8595
|
-
|
|
8646
|
+
if (u && I(u)) {
|
|
8647
|
+
const y2 = u.resolve.model, h2 = u.resolve.reference, b2 = this.models.get(y2);
|
|
8648
|
+
if (b2) {
|
|
8649
|
+
const k2 = b2.references.get(h2);
|
|
8650
|
+
k2 && I(k2) && t.get(a).add(y2);
|
|
8596
8651
|
}
|
|
8597
8652
|
}
|
|
8598
8653
|
}
|
|
@@ -8667,9 +8722,9 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
8667
8722
|
return e.forEach((t) => {
|
|
8668
8723
|
if (this.keyedContainers.has(t))
|
|
8669
8724
|
return;
|
|
8670
|
-
const s = this.models.get(t.model), r = t.keyProperty ?? s?.keyProperty, i = t.keyPropertySeparator ?? s?.keyPropertySeparator ??
|
|
8725
|
+
const s = this.models.get(t.model), r = t.keyProperty ?? s?.keyProperty, i = t.keyPropertySeparator ?? s?.keyPropertySeparator ?? v$1, o = t.autoGenerateKey || s?.autoGenerateKey;
|
|
8671
8726
|
(typeof r == "string" ? r !== "" && r !== "key" : Array.isArray(r) && r.length > 0) ? t.data.forEach((a) => {
|
|
8672
|
-
a.key =
|
|
8727
|
+
a.key = j$1(a, r, i);
|
|
8673
8728
|
}) : o && t.data.forEach((a) => {
|
|
8674
8729
|
a.key || (a.key = Za());
|
|
8675
8730
|
}), this.keyedContainers.add(t);
|
|
@@ -8697,7 +8752,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
8697
8752
|
detail: {
|
|
8698
8753
|
model: i.model
|
|
8699
8754
|
}
|
|
8700
|
-
}), s ? t > 0 && r > 0 && r % t === 0 && await
|
|
8755
|
+
}), s ? t > 0 && r > 0 && r % t === 0 && await Pu() : await Pu();
|
|
8701
8756
|
}
|
|
8702
8757
|
for (let r = 0; r < e.length; r++) {
|
|
8703
8758
|
const i = e[r], o = this.models.get(i.model), n = Za();
|
|
@@ -8715,7 +8770,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
8715
8770
|
detail: {
|
|
8716
8771
|
model: i.model
|
|
8717
8772
|
}
|
|
8718
|
-
}), s ? t > 0 && r > 0 && r % t === 0 && await
|
|
8773
|
+
}), s ? t > 0 && r > 0 && r % t === 0 && await Pu() : await Pu();
|
|
8719
8774
|
}
|
|
8720
8775
|
for (let r = 0; r < e.length; r++) {
|
|
8721
8776
|
const i = e[r], o = this.models.get(i.model), n = Za();
|
|
@@ -8733,7 +8788,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
8733
8788
|
detail: {
|
|
8734
8789
|
model: i.model
|
|
8735
8790
|
}
|
|
8736
|
-
}), s ? t > 0 && r > 0 && r % t === 0 && await
|
|
8791
|
+
}), s ? t > 0 && r > 0 && r % t === 0 && await Pu() : await Pu();
|
|
8737
8792
|
}
|
|
8738
8793
|
for (let r = 0; r < e.length; r++) {
|
|
8739
8794
|
const i = e[r], o = this.models.get(i.model);
|
|
@@ -8758,7 +8813,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
8758
8813
|
}
|
|
8759
8814
|
}), this.qualityController.enabled && o.qualityConfig.enabled === true && this.qualityController.validateAttributesAfterInitialization(o).forEach((l) => {
|
|
8760
8815
|
this.setError(l, o);
|
|
8761
|
-
}), s ? t > 0 && r > 0 && r % t === 0 && await
|
|
8816
|
+
}), s ? t > 0 && r > 0 && r % t === 0 && await Pu() : await Pu();
|
|
8762
8817
|
}
|
|
8763
8818
|
}
|
|
8764
8819
|
_getModelKeys() {
|
|
@@ -8779,50 +8834,50 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
8779
8834
|
return e;
|
|
8780
8835
|
}
|
|
8781
8836
|
};
|
|
8782
|
-
|
|
8837
|
+
E$2([
|
|
8783
8838
|
Eu({
|
|
8784
8839
|
scope: "global",
|
|
8785
8840
|
type: "model_add",
|
|
8786
8841
|
connectMessage: true
|
|
8787
8842
|
})
|
|
8788
|
-
],
|
|
8789
|
-
|
|
8843
|
+
], M$1.prototype, "addModel");
|
|
8844
|
+
E$2([
|
|
8790
8845
|
Eu({
|
|
8791
8846
|
scope: "global",
|
|
8792
8847
|
type: "data_change",
|
|
8793
8848
|
connectMessage: true
|
|
8794
8849
|
})
|
|
8795
|
-
],
|
|
8796
|
-
|
|
8850
|
+
], M$1.prototype, "addData");
|
|
8851
|
+
E$2([
|
|
8797
8852
|
Eu({
|
|
8798
8853
|
scope: "global",
|
|
8799
8854
|
type: "view_add",
|
|
8800
8855
|
connectMessage: true
|
|
8801
8856
|
})
|
|
8802
|
-
],
|
|
8803
|
-
|
|
8857
|
+
], M$1.prototype, "addView");
|
|
8858
|
+
E$2([
|
|
8804
8859
|
Eu({
|
|
8805
8860
|
scope: "global",
|
|
8806
8861
|
type: "dcupl_handle_datacontainer"
|
|
8807
8862
|
})
|
|
8808
|
-
],
|
|
8809
|
-
function q$1(
|
|
8810
|
-
return
|
|
8811
|
-
return
|
|
8863
|
+
], M$1.prototype, "handleDataContainer");
|
|
8864
|
+
function q$1(u, e) {
|
|
8865
|
+
return z$2(e, function(t) {
|
|
8866
|
+
return u[t];
|
|
8812
8867
|
});
|
|
8813
8868
|
}
|
|
8814
|
-
function B$
|
|
8815
|
-
return
|
|
8869
|
+
function B$1(u) {
|
|
8870
|
+
return u == null ? [] : q$1(u, le$1(u));
|
|
8816
8871
|
}
|
|
8817
8872
|
var W$1 = Math.max;
|
|
8818
|
-
function Q$
|
|
8819
|
-
|
|
8820
|
-
var s =
|
|
8821
|
-
return t < 0 && (t = W$1(s + t, 0)), xa(
|
|
8822
|
-
}
|
|
8823
|
-
var j = Object.defineProperty, N$1 = Object.getOwnPropertyDescriptor, k$2 = (
|
|
8824
|
-
for (var s = N$1(e, t), o =
|
|
8825
|
-
(
|
|
8873
|
+
function Q$2(u, e, t, r) {
|
|
8874
|
+
u = F$1(u) ? u : B$1(u), t = t ? De$2(t) : 0;
|
|
8875
|
+
var s = u.length;
|
|
8876
|
+
return t < 0 && (t = W$1(s + t, 0)), xa(u) ? t <= s && u.indexOf(e, t) > -1 : !!s && on$1(u, e, t) > -1;
|
|
8877
|
+
}
|
|
8878
|
+
var j = Object.defineProperty, N$1 = Object.getOwnPropertyDescriptor, k$2 = (u, e, t, r) => {
|
|
8879
|
+
for (var s = N$1(e, t), o = u.length - 1, i; o >= 0; o--)
|
|
8880
|
+
(i = u[o]) && (s = i(e, t, s) || s);
|
|
8826
8881
|
return s && j(e, t, s), s;
|
|
8827
8882
|
};
|
|
8828
8883
|
let E$1 = class E {
|
|
@@ -8840,7 +8895,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
8840
8895
|
if (!t)
|
|
8841
8896
|
throw new Error(`Model with key ${e.modelKey} not found`);
|
|
8842
8897
|
const r = this.getListItemKeys(e), s = this.getRelevantData(t, r), o = this.initIndicesController(r, t, s);
|
|
8843
|
-
this.catalog ? this.catalog.filter.update(t, s, o) : (this.catalog = new G$
|
|
8898
|
+
this.catalog ? this.catalog.filter.update(t, s, o) : (this.catalog = new G$1(this.dcuplApi, this.cdRef, o), this.catalog.init(this.modelKey, t, s));
|
|
8844
8899
|
}
|
|
8845
8900
|
initIndicesController(e, t, r) {
|
|
8846
8901
|
let s;
|
|
@@ -8872,7 +8927,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
8872
8927
|
// }
|
|
8873
8928
|
// @trigger({ scope: 'global', name: 'list:create', type: 'list_created' })
|
|
8874
8929
|
init(e) {
|
|
8875
|
-
this.options =
|
|
8930
|
+
this.options = C$2(e), this.key = this.options.listKey, this.modelKey = this.options.modelKey, this.setup(this.options);
|
|
8876
8931
|
}
|
|
8877
8932
|
initFromItemKeys(e, t) {
|
|
8878
8933
|
const r = /* @__PURE__ */ new Map();
|
|
@@ -8895,6 +8950,17 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
8895
8950
|
update(e) {
|
|
8896
8951
|
(e && e.reprocessData || !e) && this.setup(this.options);
|
|
8897
8952
|
}
|
|
8953
|
+
/**
|
|
8954
|
+
* Drops the list's query/result caches; the filtered data is recomputed
|
|
8955
|
+
* lazily on the next read from the list's current data, without
|
|
8956
|
+
* re-deriving a scoped list's item set (that is what {@link update} does).
|
|
8957
|
+
* dcupl.update() calls this for affected lists that do not auto-update, so
|
|
8958
|
+
* a query executed before the update can never keep serving its pre-update
|
|
8959
|
+
* cached result — while lists nobody reads pay no eager recompute.
|
|
8960
|
+
*/
|
|
8961
|
+
invalidate() {
|
|
8962
|
+
this.catalog && this.catalog.filter.resetCache();
|
|
8963
|
+
}
|
|
8898
8964
|
on(e) {
|
|
8899
8965
|
return this.cdRef.on(e);
|
|
8900
8966
|
}
|
|
@@ -8914,9 +8980,9 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
8914
8980
|
connectMessage: true
|
|
8915
8981
|
})
|
|
8916
8982
|
], E$1.prototype, "update");
|
|
8917
|
-
var Z$2 = Object.defineProperty, H = Object.getOwnPropertyDescriptor, J$1 = (
|
|
8918
|
-
for (var s = H(e, t), o =
|
|
8919
|
-
(
|
|
8983
|
+
var Z$2 = Object.defineProperty, H = Object.getOwnPropertyDescriptor, J$1 = (u, e, t, r) => {
|
|
8984
|
+
for (var s = H(e, t), o = u.length - 1, i; o >= 0; o--)
|
|
8985
|
+
(i = u[o]) && (s = i(e, t, s) || s);
|
|
8920
8986
|
return s && Z$2(e, t, s), s;
|
|
8921
8987
|
};
|
|
8922
8988
|
class C {
|
|
@@ -9095,49 +9161,49 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
9095
9161
|
const r = this.dcupl?.getContainerSourceMetadata(t), s = t.model;
|
|
9096
9162
|
if (r) {
|
|
9097
9163
|
const o = r.coercionFailureSamples ?? {};
|
|
9098
|
-
for (const
|
|
9099
|
-
const l = o[
|
|
9164
|
+
for (const i of Object.keys(o)) {
|
|
9165
|
+
const l = o[i];
|
|
9100
9166
|
if (!l || l.count <= 0)
|
|
9101
9167
|
continue;
|
|
9102
|
-
for (const
|
|
9103
|
-
|
|
9104
|
-
const
|
|
9105
|
-
this.setError(this.buildColumnCoercionError(s,
|
|
9168
|
+
for (const a of this.getModelErrors(s))
|
|
9169
|
+
a.attribute === i && a.itemKey != null && (a.errorType === "UndefinedValue" || a.errorType === "WrongDataType") && this.removeError(a.key);
|
|
9170
|
+
const n = e.properties.get(i)?.type ?? l.expected;
|
|
9171
|
+
this.setError(this.buildColumnCoercionError(s, i, l.rawValue, n, l.count));
|
|
9106
9172
|
}
|
|
9107
|
-
for (const [
|
|
9108
|
-
if (o[
|
|
9173
|
+
for (const [i] of e.properties) {
|
|
9174
|
+
if (o[i] || r.sourceColumns.includes(i))
|
|
9109
9175
|
continue;
|
|
9110
|
-
const l = this.getGroupCount(s,
|
|
9176
|
+
const l = this.getGroupCount(s, i, "UndefinedValue");
|
|
9111
9177
|
if (l > 0 && l === t.data.length) {
|
|
9112
|
-
for (const
|
|
9113
|
-
|
|
9114
|
-
this.setError(this.buildAbsentColumnError(s,
|
|
9178
|
+
for (const n of this.getModelErrors(s))
|
|
9179
|
+
n.attribute === i && n.itemKey != null && n.errorType === "UndefinedValue" && this.removeError(n.key);
|
|
9180
|
+
this.setError(this.buildAbsentColumnError(s, i));
|
|
9115
9181
|
}
|
|
9116
9182
|
}
|
|
9117
9183
|
} else {
|
|
9118
9184
|
const o = new Set(
|
|
9119
|
-
this.getModelErrors(s).filter((
|
|
9185
|
+
this.getModelErrors(s).filter((n) => n.errorType === "UndefinedValue" && n.attribute != null).map((n) => n.attribute)
|
|
9120
9186
|
);
|
|
9121
|
-
for (const
|
|
9122
|
-
const
|
|
9123
|
-
if (
|
|
9124
|
-
for (const
|
|
9125
|
-
|
|
9126
|
-
this.setError(this.buildAbsentColumnError(s,
|
|
9187
|
+
for (const n of o) {
|
|
9188
|
+
const a = this.getGroupCount(s, n, "UndefinedValue");
|
|
9189
|
+
if (a > 0 && a === t.data.length) {
|
|
9190
|
+
for (const d of this.getModelErrors(s))
|
|
9191
|
+
d.attribute === n && d.itemKey != null && d.errorType === "UndefinedValue" && this.removeError(d.key);
|
|
9192
|
+
this.setError(this.buildAbsentColumnError(s, n));
|
|
9127
9193
|
}
|
|
9128
9194
|
}
|
|
9129
|
-
const
|
|
9130
|
-
(
|
|
9131
|
-
), l =
|
|
9132
|
-
for (const
|
|
9133
|
-
const
|
|
9134
|
-
if (!
|
|
9195
|
+
const i = this.getModelErrors(s).filter(
|
|
9196
|
+
(n) => n.errorType === "WrongDataType" && n.errorGroup === "PropertyDataError" && n.title === "Wrong Data Type" && n.itemKey != null
|
|
9197
|
+
), l = We$1(i, "attribute");
|
|
9198
|
+
for (const n in l) {
|
|
9199
|
+
const a = l[n];
|
|
9200
|
+
if (!a?.length)
|
|
9135
9201
|
continue;
|
|
9136
|
-
const
|
|
9137
|
-
for (const
|
|
9138
|
-
this.removeError(
|
|
9202
|
+
const d = a[0].meta, y2 = e.properties.get(n)?.type ?? d?.expected ?? "unknown";
|
|
9203
|
+
for (const f of a)
|
|
9204
|
+
this.removeError(f.key);
|
|
9139
9205
|
this.setError(
|
|
9140
|
-
this.buildColumnCoercionError(s,
|
|
9206
|
+
this.buildColumnCoercionError(s, n, String(d?.rawValue ?? ""), y2, a.length)
|
|
9141
9207
|
);
|
|
9142
9208
|
}
|
|
9143
9209
|
}
|
|
@@ -9182,14 +9248,14 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
9182
9248
|
* @param errorType - Optional error type to filter by
|
|
9183
9249
|
*/
|
|
9184
9250
|
cleanUpErrorsForItems(e, t, r, s) {
|
|
9185
|
-
let o,
|
|
9186
|
-
typeof r == "string" ?
|
|
9187
|
-
const l = this.getModelErrors(e.key),
|
|
9188
|
-
for (const
|
|
9189
|
-
if (
|
|
9190
|
-
if (o &&
|
|
9251
|
+
let o, i;
|
|
9252
|
+
typeof r == "string" ? i = r : r instanceof Set && (o = r, i = s);
|
|
9253
|
+
const l = this.getModelErrors(e.key), n = i ? l.filter((a) => a.errorType === i) : l;
|
|
9254
|
+
for (const a of n)
|
|
9255
|
+
if (a.itemKey && t.has(a.itemKey)) {
|
|
9256
|
+
if (o && a.attribute && !o.has(a.attribute))
|
|
9191
9257
|
continue;
|
|
9192
|
-
this.removeError(
|
|
9258
|
+
this.removeError(a.key);
|
|
9193
9259
|
}
|
|
9194
9260
|
}
|
|
9195
9261
|
/**
|
|
@@ -9211,19 +9277,19 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
9211
9277
|
validateItemsPartial(e, t, r) {
|
|
9212
9278
|
if (!e)
|
|
9213
9279
|
return [];
|
|
9214
|
-
const s = [], o = e.getData(),
|
|
9215
|
-
for (const l of
|
|
9280
|
+
const s = [], o = e.getData(), i = e.getAttributes();
|
|
9281
|
+
for (const l of i) {
|
|
9216
9282
|
if (!r.has(l.key))
|
|
9217
9283
|
continue;
|
|
9218
|
-
const
|
|
9219
|
-
if (
|
|
9220
|
-
for (const
|
|
9221
|
-
const
|
|
9222
|
-
if (!
|
|
9284
|
+
const n = l.quality?.validators;
|
|
9285
|
+
if (n)
|
|
9286
|
+
for (const a of t) {
|
|
9287
|
+
const d = o.get(a);
|
|
9288
|
+
if (!d)
|
|
9223
9289
|
continue;
|
|
9224
|
-
const
|
|
9225
|
-
for (const g2 of
|
|
9226
|
-
g2.model = e.key, g2.itemKey =
|
|
9290
|
+
const y2 = d[l.key], f = this.validateAttribute(y2, n, l.key);
|
|
9291
|
+
for (const g2 of f)
|
|
9292
|
+
g2.model = e.key, g2.itemKey = d.key, s.push(g2);
|
|
9227
9293
|
}
|
|
9228
9294
|
}
|
|
9229
9295
|
return s;
|
|
@@ -9364,10 +9430,10 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
9364
9430
|
const o = this.dcupl.modelParser.models.get(s);
|
|
9365
9431
|
if (!o)
|
|
9366
9432
|
return;
|
|
9367
|
-
const
|
|
9368
|
-
t +=
|
|
9369
|
-
const
|
|
9370
|
-
e +=
|
|
9433
|
+
const i = o?.getBasicProperties() || [], l = o?.getBasicReferences() || [], n = i.length + l.length;
|
|
9434
|
+
t += n;
|
|
9435
|
+
const d = o.data?.size || 0;
|
|
9436
|
+
e += d, r += n * d;
|
|
9371
9437
|
}), this.values.counts.rows = e, this.values.counts.attributes = t, this.values.counts.dataEntries = r;
|
|
9372
9438
|
}
|
|
9373
9439
|
calculateTiming() {
|
|
@@ -9401,19 +9467,19 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
9401
9467
|
}
|
|
9402
9468
|
}
|
|
9403
9469
|
calculateSizesForModels() {
|
|
9404
|
-
const t = this.dcupl.analyticsController.getByType("resource").filter((o) => o.value?.type === "data"), r =
|
|
9470
|
+
const t = this.dcupl.analyticsController.getByType("resource").filter((o) => o.value?.type === "data"), r = We$1(t, (o) => o.value?.model);
|
|
9405
9471
|
return Object.keys(r).map((o) => {
|
|
9406
|
-
const
|
|
9407
|
-
const
|
|
9408
|
-
return
|
|
9409
|
-
}, 0), l = r[o]?.reduce((
|
|
9410
|
-
const
|
|
9411
|
-
return
|
|
9472
|
+
const i = r[o]?.reduce((n, a) => {
|
|
9473
|
+
const d = a.value.encodedBodySize;
|
|
9474
|
+
return n + d;
|
|
9475
|
+
}, 0), l = r[o]?.reduce((n, a) => {
|
|
9476
|
+
const d = a.value.decodedBodySize;
|
|
9477
|
+
return n + d;
|
|
9412
9478
|
}, 0);
|
|
9413
9479
|
return {
|
|
9414
9480
|
model: o,
|
|
9415
9481
|
decodedBodySize: l,
|
|
9416
|
-
encodedBodySize:
|
|
9482
|
+
encodedBodySize: i
|
|
9417
9483
|
};
|
|
9418
9484
|
});
|
|
9419
9485
|
}
|
|
@@ -9424,8 +9490,8 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
9424
9490
|
const s = this.dcupl.modelParser.unprocessedData.find((l) => l.model === r)?.data || [], o = this.getUnusedAttributesFromModel(this.dcupl, r);
|
|
9425
9491
|
if (!o.length)
|
|
9426
9492
|
return;
|
|
9427
|
-
const
|
|
9428
|
-
t += JSON.stringify(
|
|
9493
|
+
const i = this.getDataWithAttributes(s, o);
|
|
9494
|
+
t += JSON.stringify(i).length;
|
|
9429
9495
|
}), t;
|
|
9430
9496
|
}
|
|
9431
9497
|
getDataWithAttributes(e, t) {
|
|
@@ -9437,10 +9503,10 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
9437
9503
|
});
|
|
9438
9504
|
}
|
|
9439
9505
|
getUnusedAttributesFromModel(e, t) {
|
|
9440
|
-
const r = e.modelParser.models.get(t), s = r?.getBasicProperties() || [], o = r?.getBasicReferences() || [],
|
|
9441
|
-
typeof
|
|
9442
|
-
const
|
|
9443
|
-
return this.getUnusedAttributes(
|
|
9506
|
+
const r = e.modelParser.models.get(t), s = r?.getBasicProperties() || [], o = r?.getBasicReferences() || [], i = r?.keyProperty, l = [...s, ...o].map((a) => a.key);
|
|
9507
|
+
typeof i == "string" ? l.push(i) : Array.isArray(i) ? l.push(...i) : l.push("key"), l.push("key");
|
|
9508
|
+
const n = e.modelParser.unprocessedData.find((a) => a.model === t)?.data || [];
|
|
9509
|
+
return this.getUnusedAttributes(n, l);
|
|
9444
9510
|
}
|
|
9445
9511
|
getUnusedAttributes(e, t) {
|
|
9446
9512
|
const r = /* @__PURE__ */ new Set();
|
|
@@ -9499,8 +9565,8 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
9499
9565
|
return [];
|
|
9500
9566
|
const t = e.getAttributes(), r = e.getDataAsArray(), s = [];
|
|
9501
9567
|
for (const o of t) {
|
|
9502
|
-
const
|
|
9503
|
-
if (
|
|
9568
|
+
const i = o.quality?.validators;
|
|
9569
|
+
if (i && i.unique) {
|
|
9504
9570
|
const l = this.validateUnique(r, o.key, e);
|
|
9505
9571
|
s.push(...l);
|
|
9506
9572
|
}
|
|
@@ -9509,22 +9575,22 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
9509
9575
|
}
|
|
9510
9576
|
validateUnique(e, t, r) {
|
|
9511
9577
|
const s = [], o = /* @__PURE__ */ new Set(), l = r.attributeQualityConfigs?.get(t)?.validatorHandling !== "loose";
|
|
9512
|
-
for (const
|
|
9513
|
-
const
|
|
9514
|
-
if (o.has(
|
|
9515
|
-
const
|
|
9578
|
+
for (const n of e) {
|
|
9579
|
+
const a = n[t];
|
|
9580
|
+
if (o.has(a)) {
|
|
9581
|
+
const d = {
|
|
9516
9582
|
title: "Validator Error - Unique",
|
|
9517
9583
|
type: "model",
|
|
9518
9584
|
errorGroup: "PropertyDataError",
|
|
9519
9585
|
model: r.key,
|
|
9520
9586
|
errorType: "InvalidValidator",
|
|
9521
9587
|
attribute: t,
|
|
9522
|
-
itemKey:
|
|
9523
|
-
description: `The value "${
|
|
9588
|
+
itemKey: n.key,
|
|
9589
|
+
description: `The value "${a}" is not unique`
|
|
9524
9590
|
};
|
|
9525
|
-
s.push(
|
|
9591
|
+
s.push(d), l && delete n[t];
|
|
9526
9592
|
} else
|
|
9527
|
-
o.add(
|
|
9593
|
+
o.add(a);
|
|
9528
9594
|
}
|
|
9529
9595
|
return s;
|
|
9530
9596
|
}
|
|
@@ -9609,7 +9675,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
9609
9675
|
};
|
|
9610
9676
|
}
|
|
9611
9677
|
validateIncludes(e, t, r) {
|
|
9612
|
-
if (e != null && !Q$
|
|
9678
|
+
if (e != null && !Q$2(e, t.value))
|
|
9613
9679
|
return {
|
|
9614
9680
|
title: "Validator Error - Includes",
|
|
9615
9681
|
type: "model",
|
|
@@ -9669,20 +9735,20 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
9669
9735
|
}
|
|
9670
9736
|
}
|
|
9671
9737
|
};
|
|
9672
|
-
var X$1 = Object.defineProperty, ee$1 = Object.getOwnPropertyDescriptor, h = (
|
|
9673
|
-
for (var s = ee$1(e, t), o =
|
|
9674
|
-
(
|
|
9738
|
+
var X$1 = Object.defineProperty, ee$1 = Object.getOwnPropertyDescriptor, h = (u, e, t, r) => {
|
|
9739
|
+
for (var s = ee$1(e, t), o = u.length - 1, i; o >= 0; o--)
|
|
9740
|
+
(i = u[o]) && (s = i(e, t, s) || s);
|
|
9675
9741
|
return s && X$1(e, t, s), s;
|
|
9676
9742
|
};
|
|
9677
9743
|
let p$1 = class p {
|
|
9678
9744
|
cdRef = new Iu();
|
|
9679
|
-
analyticsController = new
|
|
9745
|
+
analyticsController = new Mu();
|
|
9680
9746
|
containerSourceMetadata = /* @__PURE__ */ new WeakMap();
|
|
9681
|
-
scriptController = new
|
|
9747
|
+
scriptController = new Ru();
|
|
9682
9748
|
qualityController = new Y$2(this.scriptController);
|
|
9683
9749
|
log = Wa.child({ prefix: "Dcupl" });
|
|
9684
|
-
modelParser = new
|
|
9685
|
-
globalItemService = new K$
|
|
9750
|
+
modelParser = new M$1(this.cdRef, this.qualityController, this);
|
|
9751
|
+
globalItemService = new K$3(this.modelParser, this.scriptController);
|
|
9686
9752
|
cacheCtrl = new Du(false);
|
|
9687
9753
|
queryManager = new Ku(
|
|
9688
9754
|
this.scriptController,
|
|
@@ -9732,7 +9798,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
9732
9798
|
updateQueue = [];
|
|
9733
9799
|
// Queue for pending updates
|
|
9734
9800
|
constructor(e) {
|
|
9735
|
-
this.analyticsController.init(!!e?.analytics?.enabled), this.qualityController.dcupl = this, this.analyticsController.mark({ name: "dcupl:constructor" }), this.initOptions =
|
|
9801
|
+
this.analyticsController.init(!!e?.analytics?.enabled), this.qualityController.dcupl = this, this.analyticsController.mark({ name: "dcupl:constructor" }), this.initOptions = A$1({}, this._defaultInitOptions, e), this.qualityController.enabled = this.initOptions.errorTracking?.enabled || this.initOptions.quality?.enabled || false, this.qualityController.maxErrorsPerGroup = this.initOptions.quality?.maxErrorsPerGroup ?? 1e3, this.modelParser.initOptions = Object.assign({}, this.initOptions), this.cdRef._init({
|
|
9736
9802
|
cdRefKey: "root",
|
|
9737
9803
|
dcuplInitOptions: this.initOptions,
|
|
9738
9804
|
analyticsController: this.analyticsController
|
|
@@ -9896,32 +9962,31 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
9896
9962
|
})), e.query ? t.catalog.query.apply(e.query, { mode: "set" }) : t.catalog.query.reset(), t;
|
|
9897
9963
|
}
|
|
9898
9964
|
/**
|
|
9899
|
-
* Gets all models that are affected by changes to the specified models/attributes
|
|
9900
|
-
*
|
|
9965
|
+
* Gets all models that are affected by changes to the specified models/attributes.
|
|
9966
|
+
* Includes the changed models themselves, models that (transitively) reference
|
|
9967
|
+
* them (their lists can observe the change through deep queries), and models
|
|
9968
|
+
* reached through the attribute-level cascade (resolved/derived attributes
|
|
9969
|
+
* live on models the reference graph does not point at) (#241).
|
|
9901
9970
|
*/
|
|
9902
9971
|
getAffectedModels(e) {
|
|
9903
|
-
const t =
|
|
9904
|
-
for (const s of e.keys())
|
|
9905
|
-
t.add(s);
|
|
9906
|
-
const r = this.modelParser.dependencyGraph;
|
|
9972
|
+
const t = new Set(e.keys()), r = this.modelParser.dependencyGraph;
|
|
9907
9973
|
if (r)
|
|
9908
|
-
for (const
|
|
9909
|
-
|
|
9974
|
+
for (const o of r.getImpactedNodes(Array.from(e.keys()), "downstream"))
|
|
9975
|
+
t.add(o);
|
|
9976
|
+
const s = this.modelParser.attributeDependencyGraph;
|
|
9977
|
+
if (s) {
|
|
9978
|
+
const o = [];
|
|
9979
|
+
for (const [i, l] of e)
|
|
9980
|
+
if (l.size > 0)
|
|
9981
|
+
for (const n of l)
|
|
9982
|
+
o.push({ modelKey: i, attributeKey: n, type: "property", processingStep: 1 });
|
|
9983
|
+
else
|
|
9984
|
+
o.push(...s.getAttributesForModel(i));
|
|
9985
|
+
for (const i of s.getImpactedAttributes(o))
|
|
9986
|
+
t.add(i.modelKey);
|
|
9987
|
+
}
|
|
9910
9988
|
return Array.from(t);
|
|
9911
9989
|
}
|
|
9912
|
-
/**
|
|
9913
|
-
* Recursively gets all models that depend on the given model
|
|
9914
|
-
*/
|
|
9915
|
-
getDownstreamDependencies(e, t) {
|
|
9916
|
-
const r = /* @__PURE__ */ new Set(), s = /* @__PURE__ */ new Set(), o = (a) => {
|
|
9917
|
-
if (!s.has(a)) {
|
|
9918
|
-
s.add(a);
|
|
9919
|
-
for (const [l, i] of Object.entries(t.dependencies || {}))
|
|
9920
|
-
Array.isArray(i) && i.includes(a) && (r.add(l), o(l));
|
|
9921
|
-
}
|
|
9922
|
-
};
|
|
9923
|
-
return o(e), r;
|
|
9924
|
-
}
|
|
9925
9990
|
/**
|
|
9926
9991
|
* Update lists based on auto-update configuration and affected models.
|
|
9927
9992
|
*
|
|
@@ -9931,24 +9996,25 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
9931
9996
|
updateFnLists(e, t) {
|
|
9932
9997
|
const r = this.initOptions.performance?.partialUpdates?.enableDetailedLogging ?? false;
|
|
9933
9998
|
for (const s of this.lists.getAll()) {
|
|
9934
|
-
if (!this.
|
|
9935
|
-
r && this.log.debug("List skipped (
|
|
9999
|
+
if (e && !this.isListAffectedByChanges(s, e.affectedModels)) {
|
|
10000
|
+
r && this.log.debug("List skipped (not affected)", {
|
|
9936
10001
|
listKey: s.key,
|
|
9937
10002
|
modelKey: s.modelKey
|
|
9938
10003
|
});
|
|
9939
10004
|
continue;
|
|
9940
10005
|
}
|
|
9941
|
-
|
|
9942
|
-
|
|
9943
|
-
|
|
9944
|
-
|
|
9945
|
-
|
|
9946
|
-
|
|
9947
|
-
|
|
9948
|
-
|
|
9949
|
-
|
|
9950
|
-
|
|
9951
|
-
|
|
10006
|
+
try {
|
|
10007
|
+
this.shouldAutoUpdateList(s, t) ? (r && this.log.debug("List auto-updating", {
|
|
10008
|
+
listKey: s.key,
|
|
10009
|
+
modelKey: s.modelKey,
|
|
10010
|
+
affectedModels: e?.affectedModels ?? "all"
|
|
10011
|
+
}), s.update()) : (r && this.log.debug("List caches invalidated (auto-update disabled)", {
|
|
10012
|
+
listKey: s.key,
|
|
10013
|
+
modelKey: s.modelKey
|
|
10014
|
+
}), s.invalidate());
|
|
10015
|
+
} catch (o) {
|
|
10016
|
+
this.log.error(`List refresh failed for '${s.key}'`, o);
|
|
10017
|
+
}
|
|
9952
10018
|
}
|
|
9953
10019
|
}
|
|
9954
10020
|
/**
|
|
@@ -9983,51 +10049,55 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
9983
10049
|
}
|
|
9984
10050
|
async init() {
|
|
9985
10051
|
try {
|
|
9986
|
-
return await this.performUpdate(() => this.modelParser.init()), this.cacheCtrl.clear(), true;
|
|
10052
|
+
return await this.performUpdate(() => this.modelParser.init()), this.cacheCtrl.clear(), this.updateFnLists(null), true;
|
|
9987
10053
|
} catch (e) {
|
|
9988
10054
|
return this.log.error("Initialization failed", e), false;
|
|
9989
10055
|
}
|
|
9990
10056
|
}
|
|
9991
10057
|
async update(e) {
|
|
9992
10058
|
try {
|
|
9993
|
-
const t = this.modelParser.changeTracker, r = t.hasChanges(), s = r ? new Map(t.getChangedAttributes()) : null, o = r ? new Set(t.getModelsWithFullReset()) : null,
|
|
10059
|
+
const t = this.modelParser.changeTracker, r = t.hasChanges(), s = r ? new Map(t.getChangedAttributes()) : null, o = r ? new Set(t.getModelsWithFullReset()) : null, i = r ? new Set(t.getModelsWithChanges()) : null, l = r ? t.getTotalChangedItemCount() : 0, n = this.cacheCtrl.getStats();
|
|
9994
10060
|
if (await this.performUpdate(() => this.modelParser.update()), r && this.cacheCtrl.enabled && s) {
|
|
9995
|
-
const
|
|
9996
|
-
o && o.size > 0 ? (
|
|
10061
|
+
const a = this.modelParser.getTotalItemCount(), d = l, y2 = a > 0 ? d / a : 0, f = this.initOptions.performance?.partialUpdates?.cacheInvalidationThreshold ?? 0.7, g2 = this.initOptions.performance?.partialUpdates?.enableDetailedLogging ?? false;
|
|
10062
|
+
o && o.size > 0 ? (g2 && this.log.debug("Cache invalidation: Full clear", { reason: "full_reset_detected" }), this.cacheCtrl.clear()) : y2 > f ? (g2 && this.log.debug("Cache invalidation: Full clear", {
|
|
9997
10063
|
reason: "high_item_ratio",
|
|
9998
|
-
ratio:
|
|
10064
|
+
ratio: y2.toFixed(2),
|
|
9999
10065
|
threshold: f,
|
|
10000
|
-
changedItems:
|
|
10001
|
-
totalItems:
|
|
10002
|
-
}), this.cacheCtrl.clear()) : (
|
|
10003
|
-
changedItems:
|
|
10004
|
-
totalItems:
|
|
10005
|
-
ratio:
|
|
10066
|
+
changedItems: d,
|
|
10067
|
+
totalItems: a
|
|
10068
|
+
}), this.cacheCtrl.clear()) : (g2 && this.log.debug("Cache invalidation: Selective", {
|
|
10069
|
+
changedItems: d,
|
|
10070
|
+
totalItems: a,
|
|
10071
|
+
ratio: y2.toFixed(2)
|
|
10006
10072
|
}), this.cacheCtrl.invalidateByDependencies(s));
|
|
10007
10073
|
} else
|
|
10008
10074
|
(this.initOptions.performance?.partialUpdates?.enableDetailedLogging ?? false) && this.log.debug("Cache invalidation: Full clear", { reason: "full_update" }), this.cacheCtrl.clear();
|
|
10009
10075
|
if (this.cacheCtrl.getStats) {
|
|
10010
|
-
const
|
|
10011
|
-
if (
|
|
10012
|
-
const
|
|
10013
|
-
|
|
10014
|
-
entriesInvalidated:
|
|
10015
|
-
totalEntries:
|
|
10076
|
+
const a = this.cacheCtrl.getStats(), d = this.modelParser.partialUpdateMetrics.getLastUpdates(1);
|
|
10077
|
+
if (d.length > 0 && d[0]) {
|
|
10078
|
+
const y2 = d[0];
|
|
10079
|
+
y2.cacheStats = {
|
|
10080
|
+
entriesInvalidated: n.totalEntries - a.totalEntries,
|
|
10081
|
+
totalEntries: n.totalEntries
|
|
10016
10082
|
};
|
|
10017
10083
|
}
|
|
10018
10084
|
}
|
|
10019
10085
|
if (r && s) {
|
|
10020
|
-
const
|
|
10086
|
+
const a = new Map(s);
|
|
10087
|
+
for (const y2 of [i, o])
|
|
10088
|
+
for (const f of y2 ?? [])
|
|
10089
|
+
a.has(f) || a.set(f, /* @__PURE__ */ new Set());
|
|
10090
|
+
const d = {
|
|
10021
10091
|
isPartialUpdate: true,
|
|
10022
|
-
changedModels: Array.from(
|
|
10092
|
+
changedModels: Array.from(a.keys()),
|
|
10023
10093
|
changedAttributes: s,
|
|
10024
|
-
affectedModels: this.getAffectedModels(
|
|
10094
|
+
affectedModels: this.getAffectedModels(a)
|
|
10025
10095
|
};
|
|
10026
|
-
this.cdRef.trigger({
|
|
10096
|
+
this.updateFnLists(d, e?.autoUpdateLists), this.cdRef.trigger({
|
|
10027
10097
|
scope: "global",
|
|
10028
10098
|
type: "dcupl_partial_update",
|
|
10029
|
-
args: [
|
|
10030
|
-
})
|
|
10099
|
+
args: [d]
|
|
10100
|
+
});
|
|
10031
10101
|
} else
|
|
10032
10102
|
this.updateFnLists(null, e?.autoUpdateLists);
|
|
10033
10103
|
return true;
|
|
@@ -11286,9 +11356,9 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
11286
11356
|
};
|
|
11287
11357
|
}
|
|
11288
11358
|
};
|
|
11289
|
-
const
|
|
11359
|
+
const P = (n, e) => e ? typeof structuredClone < "u" ? structuredClone(n) : cloneDeep(n) : n, T$1 = (n, e, t, r, s, i) => {
|
|
11290
11360
|
try {
|
|
11291
|
-
const o = !!e.dcuplInitOptions.performance?.clone?.enabled && !!t.cloneResult, a =
|
|
11361
|
+
const o = !!e.dcuplInitOptions.performance?.clone?.enabled && !!t.cloneResult, a = P(i, o);
|
|
11292
11362
|
if (t.scope === "list" && (t.listKey = n.cdRef?.key || n.key, t.modelKey = n.model?.key || n.modelKey), t.type === "list_created" && t.args[0].listKey.startsWith("__global_list__") || t.listKey?.startsWith("__global_list__"))
|
|
11293
11363
|
return a;
|
|
11294
11364
|
const c = b.now(), u = c - r, f = Math.round(u * 1e3) / 1e3;
|
|
@@ -11312,7 +11382,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
11312
11382
|
}, Ve$1 = (n) => (t, r, s) => {
|
|
11313
11383
|
const i = s.value;
|
|
11314
11384
|
return s.value = function(...o) {
|
|
11315
|
-
const a = b.now(), c = this.cdRef, u =
|
|
11385
|
+
const a = b.now(), c = this.cdRef, u = P(n, true);
|
|
11316
11386
|
u.key || (c.increaseCounter(), u.key = c.getCounter());
|
|
11317
11387
|
const f = ee();
|
|
11318
11388
|
c.analyticsController.mark({
|
|
@@ -11322,11 +11392,11 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
11322
11392
|
const l = this.model?.key;
|
|
11323
11393
|
!u.originCdRefKey && c.key && (u.originCdRefKey = c.key), l && (u.modelKey = l);
|
|
11324
11394
|
const d = i.apply(this, o);
|
|
11325
|
-
return u.method = r, u.args = o, d && typeof d == "object" && "then" in d ? d.then((h2) =>
|
|
11395
|
+
return u.method = r, u.args = o, d && typeof d == "object" && "then" in d ? d.then((h2) => T$1(this, c, u, a, f, h2)) : T$1(this, c, u, a, f, d);
|
|
11326
11396
|
}, s;
|
|
11327
11397
|
};
|
|
11328
11398
|
const Oe$1 = "k:", qe$1 = "h:";
|
|
11329
|
-
function
|
|
11399
|
+
function Q$1(n, e = 0) {
|
|
11330
11400
|
if (n.key)
|
|
11331
11401
|
return `${Oe$1}${n.key}`;
|
|
11332
11402
|
const t = K$1({
|
|
@@ -11341,13 +11411,13 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
11341
11411
|
const e = /* @__PURE__ */ new Map(), t = /* @__PURE__ */ new Set();
|
|
11342
11412
|
return n.map((r) => {
|
|
11343
11413
|
const s = `${r.key ?? ""}|${r.type}|${r.rawUrl ?? r.url}|${r.model ?? ""}`;
|
|
11344
|
-
let i = e.get(s) ?? 0, o =
|
|
11414
|
+
let i = e.get(s) ?? 0, o = Q$1(r, i);
|
|
11345
11415
|
for (; t.has(o); )
|
|
11346
|
-
i += 1, o = r.key ? `${
|
|
11416
|
+
i += 1, o = r.key ? `${Q$1(r)}#${i}` : Q$1(r, i);
|
|
11347
11417
|
return e.set(s, i + 1), t.add(o), o;
|
|
11348
11418
|
});
|
|
11349
11419
|
}
|
|
11350
|
-
const
|
|
11420
|
+
const ut$1 = (n, e) => n ? (e || (e = {}), n.replace(/\$\{(.*?)\}/g, (t, r) => get(e, r.trim(), ""))) : "", ft = (n) => {
|
|
11351
11421
|
const e = /* @__PURE__ */ new Set();
|
|
11352
11422
|
return n.replace(/\$\{(.*?)\}/g, (r, s) => (e.add(s.trim()), "")), { variables: Array.from(e).map((r) => ({ name: r })) };
|
|
11353
11423
|
};
|
|
@@ -11363,7 +11433,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
11363
11433
|
skipEmptyLines: i = true,
|
|
11364
11434
|
transformHeader: u,
|
|
11365
11435
|
transform: g2
|
|
11366
|
-
} = r, y2 = [],
|
|
11436
|
+
} = r, y2 = [], m = c ? [] : null;
|
|
11367
11437
|
let d = e.length, f = [], l = "", b2 = false, C2 = true, h2 = 0;
|
|
11368
11438
|
if (i) {
|
|
11369
11439
|
for (; h2 < d && (e[h2] === `
|
|
@@ -11385,7 +11455,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
11385
11455
|
if (b2)
|
|
11386
11456
|
l += p2;
|
|
11387
11457
|
else {
|
|
11388
|
-
(l.length > 0 || !i) && f.push(l), C2 &&
|
|
11458
|
+
(l.length > 0 || !i) && f.push(l), C2 && m ? f.forEach((I2) => m.push(u ? u(I2) : I2)) : m ? y2.push(this.buildObjectRow(m, f, o, g2)) : y2.push([...f]), f = [], l = "", C2 = false, h2 += p2 === "\r" && _2 === `
|
|
11389
11459
|
` ? 1 : 0;
|
|
11390
11460
|
continue;
|
|
11391
11461
|
}
|
|
@@ -11394,12 +11464,12 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
11394
11464
|
else if (p2 === n)
|
|
11395
11465
|
b2 ? _2 === a ? (l += n, h2++) : b2 = false : l.length === 0 ? b2 = true : l += p2;
|
|
11396
11466
|
else if ((b2 || l.length === 0) && (p2 === "{" || p2 === "[")) {
|
|
11397
|
-
const
|
|
11398
|
-
l +=
|
|
11467
|
+
const I2 = this.extractJson(e, h2, P2);
|
|
11468
|
+
l += I2.value, h2 += I2.length - 1;
|
|
11399
11469
|
} else
|
|
11400
11470
|
l += p2;
|
|
11401
11471
|
}
|
|
11402
|
-
return (l.length > 0 || !i) && f.push(l), f.length && (C2 &&
|
|
11472
|
+
return (l.length > 0 || !i) && f.push(l), f.length && (C2 && m ? f.forEach((p2) => m.push(u ? u(p2) : p2)) : m ? y2.push(this.buildObjectRow(m, f, o, g2)) : y2.push([...f])), y2;
|
|
11403
11473
|
}
|
|
11404
11474
|
// Builds an object from a row array based on headers
|
|
11405
11475
|
buildObjectRow(e, r, n, a) {
|
|
@@ -11477,7 +11547,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
11477
11547
|
if (e.properties)
|
|
11478
11548
|
for (const l of e.properties)
|
|
11479
11549
|
g2.set(l.key, l), l.origin && g2.set(l.origin, l);
|
|
11480
|
-
const y2 = r?.keyProperty ?? e.keyProperty ?? "key",
|
|
11550
|
+
const y2 = r?.keyProperty ?? e.keyProperty ?? "key", m = Array.isArray(y2) ? y2 : [y2], d = new Set(m);
|
|
11481
11551
|
return {
|
|
11482
11552
|
delimiter: i?.delimiter,
|
|
11483
11553
|
quoteChar: i?.quoteChar,
|
|
@@ -12231,9 +12301,9 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
12231
12301
|
}) : Js(t) && t.forEach(function(d, f) {
|
|
12232
12302
|
o.set(f, J(d, e, r, f, t, s));
|
|
12233
12303
|
});
|
|
12234
|
-
var y2 = us,
|
|
12235
|
-
return nr(
|
|
12236
|
-
|
|
12304
|
+
var y2 = us, m = c ? void 0 : y2(t);
|
|
12305
|
+
return nr(m || t, function(d, f) {
|
|
12306
|
+
m && (f = d, d = t[f]), gr(o, f, J(d, e, r, f, t, s));
|
|
12237
12307
|
}), o;
|
|
12238
12308
|
}
|
|
12239
12309
|
var Co = 1, Po = 4;
|
|
@@ -12267,17 +12337,17 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
12267
12337
|
i = Oo(g2.length, i), c[o] = a >= 120 && g2.length >= 120 ? new W(o && g2) : void 0;
|
|
12268
12338
|
}
|
|
12269
12339
|
g2 = t[0];
|
|
12270
|
-
var y2 = -1,
|
|
12340
|
+
var y2 = -1, m = c[0];
|
|
12271
12341
|
e:
|
|
12272
12342
|
for (; ++y2 < a && u.length < i; ) {
|
|
12273
12343
|
var d = g2[y2], f = d;
|
|
12274
|
-
if (d = d !== 0 ? d : 0, !(
|
|
12344
|
+
if (d = d !== 0 ? d : 0, !(m ? He(m, f) : n(u, f))) {
|
|
12275
12345
|
for (o = s; --o; ) {
|
|
12276
12346
|
var l = c[o];
|
|
12277
12347
|
if (!(l ? He(l, f) : n(t[o], f)))
|
|
12278
12348
|
continue e;
|
|
12279
12349
|
}
|
|
12280
|
-
|
|
12350
|
+
m && m.push(f), u.push(d);
|
|
12281
12351
|
}
|
|
12282
12352
|
}
|
|
12283
12353
|
return u;
|
|
@@ -12345,7 +12415,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
12345
12415
|
return false;
|
|
12346
12416
|
}
|
|
12347
12417
|
function xo(t, e) {
|
|
12348
|
-
return
|
|
12418
|
+
return ft(t).variables.map((r) => r.name).filter((r) => qn(e, r) === void 0);
|
|
12349
12419
|
}
|
|
12350
12420
|
function Ke(t, e, r) {
|
|
12351
12421
|
const n = {
|
|
@@ -12364,13 +12434,13 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
12364
12434
|
return;
|
|
12365
12435
|
}
|
|
12366
12436
|
}
|
|
12367
|
-
const y2 = u.url ?? "",
|
|
12437
|
+
const y2 = u.url ?? "", m = xo(y2, e), d = {
|
|
12368
12438
|
...u,
|
|
12369
12439
|
id: s[g2],
|
|
12370
12440
|
rawUrl: y2,
|
|
12371
|
-
url:
|
|
12441
|
+
url: ut$1(y2, { ...e })
|
|
12372
12442
|
};
|
|
12373
|
-
|
|
12443
|
+
m.length && (d.unresolvedVariables = m), o.push(d);
|
|
12374
12444
|
}), { scheduled: o, skipped: c, variables: e, run: n };
|
|
12375
12445
|
}
|
|
12376
12446
|
var ko = Object.defineProperty, Fo = Object.getOwnPropertyDescriptor, pt = (t, e, r, n) => {
|
|
@@ -12678,7 +12748,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
12678
12748
|
for (const o of a)
|
|
12679
12749
|
s[o.key] = o.value || "";
|
|
12680
12750
|
for (const o of a)
|
|
12681
|
-
o.value =
|
|
12751
|
+
o.value = ut$1(o.value, s);
|
|
12682
12752
|
return a;
|
|
12683
12753
|
}
|
|
12684
12754
|
getEvaluatedVariablesAsRecord(e, r) {
|
|
@@ -12708,7 +12778,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
12708
12778
|
});
|
|
12709
12779
|
const s = {};
|
|
12710
12780
|
if (a.forEach((o) => {
|
|
12711
|
-
const c =
|
|
12781
|
+
const c = ut$1(o.value, { ...r });
|
|
12712
12782
|
s[o.key] = c;
|
|
12713
12783
|
}), Object.keys(s).length !== 0)
|
|
12714
12784
|
return s;
|
|
@@ -12731,7 +12801,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
12731
12801
|
value: r.apiKey
|
|
12732
12802
|
});
|
|
12733
12803
|
}
|
|
12734
|
-
return a.map((s) => (s.value =
|
|
12804
|
+
return a.map((s) => (s.value = ut$1(s.value, { ...r }), s));
|
|
12735
12805
|
}
|
|
12736
12806
|
isDcuplCdn(e) {
|
|
12737
12807
|
return e.includes("cdn.dcupl.com");
|
|
@@ -12897,7 +12967,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
12897
12967
|
const { url: u, headers: g2 } = this.getRequestOptions(o, r, n, a), y2 = await fetch(u, { headers: g2 });
|
|
12898
12968
|
if (i = y2.status, !y2.ok)
|
|
12899
12969
|
throw new Error(`Failed to fetch data from ${u}`);
|
|
12900
|
-
const
|
|
12970
|
+
const m = b.now(), d = await y2.json(), f = b.now(), l = Array.isArray(d) ? d : [d], b$12 = [];
|
|
12901
12971
|
for (const p2 of l)
|
|
12902
12972
|
this.isValidModelDefinitionShape(p2) ? b$12.push(p2) : this.emitInvalidModelDefinitionError(
|
|
12903
12973
|
o,
|
|
@@ -12924,7 +12994,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
12924
12994
|
responseStart: p2.responseStart,
|
|
12925
12995
|
duration: p2.duration,
|
|
12926
12996
|
parseEnd: f,
|
|
12927
|
-
parseStart:
|
|
12997
|
+
parseStart: m,
|
|
12928
12998
|
decodedBodySize: p2.decodedBodySize,
|
|
12929
12999
|
encodedBodySize: p2.encodedBodySize,
|
|
12930
13000
|
end: f
|
|
@@ -12969,10 +13039,10 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
12969
13039
|
};
|
|
12970
13040
|
this.core.registerContainer(g2);
|
|
12971
13041
|
const y2 = (/* @__PURE__ */ new Date()).getTime();
|
|
12972
|
-
let
|
|
13042
|
+
let m;
|
|
12973
13043
|
try {
|
|
12974
13044
|
const { url: d, headers: f } = this.getRequestOptions(i, r, a, s), l = await fetch(d, { headers: f });
|
|
12975
|
-
if (
|
|
13045
|
+
if (m = l.status, !l.ok)
|
|
12976
13046
|
throw new Error(`Failed to fetch data from ${d}`);
|
|
12977
13047
|
const b$12 = l.headers.get("content-type"), C2 = b.now();
|
|
12978
13048
|
let h2;
|
|
@@ -12982,7 +13052,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
12982
13052
|
i,
|
|
12983
13053
|
"rawFileTransformer",
|
|
12984
13054
|
o || []
|
|
12985
|
-
),
|
|
13055
|
+
), I2 = b.now();
|
|
12986
13056
|
let H2 = [], z2 = this.core.modelParser.unprocessedModelDescriptions.get(i.model);
|
|
12987
13057
|
if (!z2 && (n?.missingModelHandling?.autoGenerateProperties || i.options?.autoGenerateProperties)) {
|
|
12988
13058
|
const w2 = i.options?.autoGenerateProperties ?? n?.missingModelHandling?.autoGenerateProperties ?? true;
|
|
@@ -13043,7 +13113,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
13043
13113
|
duration: w2.duration,
|
|
13044
13114
|
parseEnd: P2,
|
|
13045
13115
|
rawTransformStart: p2,
|
|
13046
|
-
rawTransformEnd:
|
|
13116
|
+
rawTransformEnd: I2,
|
|
13047
13117
|
parseStart: C2,
|
|
13048
13118
|
csvToJsonStart: dt2,
|
|
13049
13119
|
csvToJsonEnd: ft2,
|
|
@@ -13057,7 +13127,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
13057
13127
|
this.core.analyticsController.set({ value: mt2, context: this.currentContext });
|
|
13058
13128
|
}
|
|
13059
13129
|
this.core.updateRegisteredContainer(he2, fe2);
|
|
13060
|
-
const yt2 = this.progressHandler.update(i, true, "data",
|
|
13130
|
+
const yt2 = this.progressHandler.update(i, true, "data", m);
|
|
13061
13131
|
return this.updateProgressListeners(yt2), Promise.resolve(he2);
|
|
13062
13132
|
} catch (d) {
|
|
13063
13133
|
this.log.error("Failed to load data resource", d, { url: i.url, model: i.model });
|
|
@@ -13071,7 +13141,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
13071
13141
|
description: d?.message
|
|
13072
13142
|
};
|
|
13073
13143
|
this.setError(f), this.core.removeRegisteredContainer(g2);
|
|
13074
|
-
const l = this.progressHandler.update(i, false, "data",
|
|
13144
|
+
const l = this.progressHandler.update(i, false, "data", m);
|
|
13075
13145
|
return this.updateProgressListeners(l), Promise.resolve();
|
|
13076
13146
|
}
|
|
13077
13147
|
});
|
|
@@ -13102,11 +13172,11 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
13102
13172
|
(d) => d.type === "model"
|
|
13103
13173
|
);
|
|
13104
13174
|
await this.handleModelResources(y2, r, a, s);
|
|
13105
|
-
const
|
|
13175
|
+
const m = o.filter(
|
|
13106
13176
|
(d) => d.type === "data"
|
|
13107
13177
|
);
|
|
13108
13178
|
return await this.handleDataResources(
|
|
13109
|
-
|
|
13179
|
+
m,
|
|
13110
13180
|
r,
|
|
13111
13181
|
n,
|
|
13112
13182
|
a,
|