@chamn/render 0.9.1 → 0.9.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +13 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +322 -312
- package/dist/index.js.map +1 -1
- package/dist/index.umd.js +13 -8
- package/dist/index.umd.js.map +1 -1
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -22,24 +22,24 @@ const Ba = (t) => () => {
|
|
|
22
22
|
var o;
|
|
23
23
|
return t != null && t[n] ? r[n] = (o = t[n]) == null ? void 0 : o.bind(t) : Hr.includes(n) && (r[n] = Ba), r;
|
|
24
24
|
}, {});
|
|
25
|
-
var io = typeof global == "object" && global && global.Object === Object && global, ka = typeof self == "object" && self && self.Object === Object && self, X = io || ka || Function("return this")(), lt = X.Symbol, co = Object.prototype, Ha = co.hasOwnProperty,
|
|
26
|
-
function
|
|
25
|
+
var io = typeof global == "object" && global && global.Object === Object && global, ka = typeof self == "object" && self && self.Object === Object && self, X = io || ka || Function("return this")(), lt = X.Symbol, co = Object.prototype, Ha = co.hasOwnProperty, Ja = co.toString, kt = lt ? lt.toStringTag : void 0;
|
|
26
|
+
function Wa(t) {
|
|
27
27
|
var e = Ha.call(t, kt), r = t[kt];
|
|
28
28
|
try {
|
|
29
29
|
t[kt] = void 0;
|
|
30
30
|
var n = !0;
|
|
31
31
|
} catch {
|
|
32
32
|
}
|
|
33
|
-
var o =
|
|
33
|
+
var o = Ja.call(t);
|
|
34
34
|
return n && (e ? t[kt] = r : delete t[kt]), o;
|
|
35
35
|
}
|
|
36
36
|
var qa = Object.prototype, Ka = qa.toString;
|
|
37
37
|
function Qa(t) {
|
|
38
38
|
return Ka.call(t);
|
|
39
39
|
}
|
|
40
|
-
var Ya = "[object Null]", Xa = "[object Undefined]",
|
|
40
|
+
var Ya = "[object Null]", Xa = "[object Undefined]", Jr = lt ? lt.toStringTag : void 0;
|
|
41
41
|
function Ot(t) {
|
|
42
|
-
return t == null ? t === void 0 ? Xa : Ya :
|
|
42
|
+
return t == null ? t === void 0 ? Xa : Ya : Jr && Jr in Object(t) ? Wa(t) : Qa(t);
|
|
43
43
|
}
|
|
44
44
|
function ft(t) {
|
|
45
45
|
return t != null && typeof t == "object";
|
|
@@ -53,7 +53,7 @@ function es(t, e) {
|
|
|
53
53
|
o[r] = e(t[r], r, t);
|
|
54
54
|
return o;
|
|
55
55
|
}
|
|
56
|
-
var ot = Array.isArray,
|
|
56
|
+
var ot = Array.isArray, Wr = lt ? lt.prototype : void 0, qr = Wr ? Wr.toString : void 0;
|
|
57
57
|
function uo(t) {
|
|
58
58
|
if (typeof t == "string")
|
|
59
59
|
return t;
|
|
@@ -267,9 +267,9 @@ var ho = Object.prototype, Gs = ho.hasOwnProperty, zs = ho.propertyIsEnumerable,
|
|
|
267
267
|
function ks() {
|
|
268
268
|
return !1;
|
|
269
269
|
}
|
|
270
|
-
var go = typeof exports == "object" && exports && !exports.nodeType && exports, Zr = go && typeof module == "object" && module && !module.nodeType && module, Hs = Zr && Zr.exports === go, tn = Hs ? X.Buffer : void 0,
|
|
270
|
+
var go = typeof exports == "object" && exports && !exports.nodeType && exports, Zr = go && typeof module == "object" && module && !module.nodeType && module, Hs = Zr && Zr.exports === go, tn = Hs ? X.Buffer : void 0, Js = tn ? tn.isBuffer : void 0, ge = Js || ks, Ws = "[object Arguments]", qs = "[object Array]", Ks = "[object Boolean]", Qs = "[object Date]", Ys = "[object Error]", Xs = "[object Function]", Zs = "[object Map]", ti = "[object Number]", ei = "[object Object]", ri = "[object RegExp]", ni = "[object Set]", oi = "[object String]", ai = "[object WeakMap]", si = "[object ArrayBuffer]", ii = "[object DataView]", ci = "[object Float32Array]", ui = "[object Float64Array]", li = "[object Int8Array]", fi = "[object Int16Array]", di = "[object Int32Array]", pi = "[object Uint8Array]", hi = "[object Uint8ClampedArray]", gi = "[object Uint16Array]", vi = "[object Uint32Array]", M = {};
|
|
271
271
|
M[ci] = M[ui] = M[li] = M[fi] = M[di] = M[pi] = M[hi] = M[gi] = M[vi] = !0;
|
|
272
|
-
M[
|
|
272
|
+
M[Ws] = M[qs] = M[si] = M[Ks] = M[ii] = M[Qs] = M[Ys] = M[Xs] = M[Zs] = M[ti] = M[ei] = M[ri] = M[ni] = M[oi] = M[ai] = !1;
|
|
273
273
|
function mi(t) {
|
|
274
274
|
return ft(t) && po(t.length) && !!M[Ot(t)];
|
|
275
275
|
}
|
|
@@ -278,9 +278,9 @@ function yi(t) {
|
|
|
278
278
|
return t(e);
|
|
279
279
|
};
|
|
280
280
|
}
|
|
281
|
-
var vo = typeof exports == "object" && exports && !exports.nodeType && exports,
|
|
281
|
+
var vo = typeof exports == "object" && exports && !exports.nodeType && exports, Jt = vo && typeof module == "object" && module && !module.nodeType && module, bi = Jt && Jt.exports === vo, Pe = bi && io.process, en = function() {
|
|
282
282
|
try {
|
|
283
|
-
var t =
|
|
283
|
+
var t = Jt && Jt.require && Jt.require("util").types;
|
|
284
284
|
return t || Pe && Pe.binding && Pe.binding("util");
|
|
285
285
|
} catch {
|
|
286
286
|
}
|
|
@@ -387,11 +387,11 @@ function Hi(t) {
|
|
|
387
387
|
var n = e.length - 1;
|
|
388
388
|
return r == n ? e.pop() : ki.call(e, r, 1), --this.size, !0;
|
|
389
389
|
}
|
|
390
|
-
function
|
|
390
|
+
function Ji(t) {
|
|
391
391
|
var e = this.__data__, r = Ee(e, t);
|
|
392
392
|
return r < 0 ? void 0 : e[r][1];
|
|
393
393
|
}
|
|
394
|
-
function
|
|
394
|
+
function Wi(t) {
|
|
395
395
|
return Ee(this.__data__, t) > -1;
|
|
396
396
|
}
|
|
397
397
|
function qi(t, e) {
|
|
@@ -407,8 +407,8 @@ function at(t) {
|
|
|
407
407
|
}
|
|
408
408
|
at.prototype.clear = Gi;
|
|
409
409
|
at.prototype.delete = Hi;
|
|
410
|
-
at.prototype.get =
|
|
411
|
-
at.prototype.has =
|
|
410
|
+
at.prototype.get = Ji;
|
|
411
|
+
at.prototype.has = Wi;
|
|
412
412
|
at.prototype.set = qi;
|
|
413
413
|
var Yt = $t(X, "Map");
|
|
414
414
|
function Ki() {
|
|
@@ -488,7 +488,7 @@ function Eo(t) {
|
|
|
488
488
|
function mc(t) {
|
|
489
489
|
return t.split("");
|
|
490
490
|
}
|
|
491
|
-
var wo = "\\ud800-\\udfff", yc = "\\u0300-\\u036f", bc = "\\ufe20-\\ufe2f", _c = "\\u20d0-\\u20ff", Sc = yc + bc + _c, Oc = "\\ufe0e\\ufe0f", Ec = "[" + wo + "]", He = "[" + Sc + "]",
|
|
491
|
+
var wo = "\\ud800-\\udfff", yc = "\\u0300-\\u036f", bc = "\\ufe20-\\ufe2f", _c = "\\u20d0-\\u20ff", Sc = yc + bc + _c, Oc = "\\ufe0e\\ufe0f", Ec = "[" + wo + "]", He = "[" + Sc + "]", Je = "\\ud83c[\\udffb-\\udfff]", wc = "(?:" + He + "|" + Je + ")", $o = "[^" + wo + "]", Co = "(?:\\ud83c[\\udde6-\\uddff]){2}", No = "[\\ud800-\\udbff][\\udc00-\\udfff]", $c = "\\u200d", jo = wc + "?", xo = "[" + Oc + "]?", Cc = "(?:" + $c + "(?:" + [$o, Co, No].join("|") + ")" + xo + jo + ")*", Nc = xo + jo + Cc, jc = "(?:" + [$o + He + "?", He, Co, No, Ec].join("|") + ")", xc = RegExp(Je + "(?=" + Je + ")|" + jc + Nc, "g");
|
|
492
492
|
function Ac(t) {
|
|
493
493
|
return t.match(xc) || [];
|
|
494
494
|
}
|
|
@@ -554,9 +554,9 @@ function zc(t, e) {
|
|
|
554
554
|
function kc() {
|
|
555
555
|
return [];
|
|
556
556
|
}
|
|
557
|
-
var Hc = Object.prototype,
|
|
557
|
+
var Hc = Object.prototype, Jc = Hc.propertyIsEnumerable, an = Object.getOwnPropertySymbols, Wc = an ? function(t) {
|
|
558
558
|
return t == null ? [] : (t = Object(t), zc(an(t), function(e) {
|
|
559
|
-
return
|
|
559
|
+
return Jc.call(t, e);
|
|
560
560
|
}));
|
|
561
561
|
} : kc;
|
|
562
562
|
function qc(t, e, r) {
|
|
@@ -564,10 +564,10 @@ function qc(t, e, r) {
|
|
|
564
564
|
return ot(t) ? n : ec(n, r(t));
|
|
565
565
|
}
|
|
566
566
|
function sn(t) {
|
|
567
|
-
return qc(t, Ci,
|
|
567
|
+
return qc(t, Ci, Wc);
|
|
568
568
|
}
|
|
569
|
-
var
|
|
570
|
-
(
|
|
569
|
+
var We = $t(X, "DataView"), qe = $t(X, "Promise"), Ke = $t(X, "Set"), cn = "[object Map]", Kc = "[object Object]", un = "[object Promise]", ln = "[object Set]", fn = "[object WeakMap]", dn = "[object DataView]", Qc = wt(We), Yc = wt(Yt), Xc = wt(qe), Zc = wt(Ke), tu = wt(ze), ut = Ot;
|
|
570
|
+
(We && ut(new We(new ArrayBuffer(1))) != dn || Yt && ut(new Yt()) != cn || qe && ut(qe.resolve()) != un || Ke && ut(new Ke()) != ln || ze && ut(new ze()) != fn) && (ut = function(t) {
|
|
571
571
|
var e = Ot(t), r = e == Kc ? t.constructor : void 0, n = r ? wt(r) : "";
|
|
572
572
|
if (n)
|
|
573
573
|
switch (n) {
|
|
@@ -629,9 +629,9 @@ function To(t, e, r, n, o, a) {
|
|
|
629
629
|
return u == e && d == t;
|
|
630
630
|
var f = -1, l = !0, h = r & lu ? new me() : void 0;
|
|
631
631
|
for (a.set(t, e), a.set(e, t); ++f < i; ) {
|
|
632
|
-
var
|
|
632
|
+
var v = t[f], _ = e[f];
|
|
633
633
|
if (n)
|
|
634
|
-
var p = s ? n(
|
|
634
|
+
var p = s ? n(_, v, f, e, t, a) : n(v, _, f, t, e, a);
|
|
635
635
|
if (p !== void 0) {
|
|
636
636
|
if (p)
|
|
637
637
|
continue;
|
|
@@ -639,14 +639,14 @@ function To(t, e, r, n, o, a) {
|
|
|
639
639
|
break;
|
|
640
640
|
}
|
|
641
641
|
if (h) {
|
|
642
|
-
if (!iu(e, function(
|
|
643
|
-
if (!cu(h, m) && (
|
|
642
|
+
if (!iu(e, function(g, m) {
|
|
643
|
+
if (!cu(h, m) && (v === g || o(v, g, r, n, a)))
|
|
644
644
|
return h.push(m);
|
|
645
645
|
})) {
|
|
646
646
|
l = !1;
|
|
647
647
|
break;
|
|
648
648
|
}
|
|
649
|
-
} else if (!(
|
|
649
|
+
} else if (!(v === _ || o(v, _, r, n, a))) {
|
|
650
650
|
l = !1;
|
|
651
651
|
break;
|
|
652
652
|
}
|
|
@@ -711,27 +711,27 @@ function Au(t, e, r, n, o, a) {
|
|
|
711
711
|
if (!(s ? l in e : xu.call(e, l)))
|
|
712
712
|
return !1;
|
|
713
713
|
}
|
|
714
|
-
var h = a.get(t),
|
|
715
|
-
if (h &&
|
|
716
|
-
return h == e &&
|
|
717
|
-
var
|
|
714
|
+
var h = a.get(t), v = a.get(e);
|
|
715
|
+
if (h && v)
|
|
716
|
+
return h == e && v == t;
|
|
717
|
+
var _ = !0;
|
|
718
718
|
a.set(t, e), a.set(e, t);
|
|
719
719
|
for (var p = s; ++f < c; ) {
|
|
720
720
|
l = i[f];
|
|
721
|
-
var
|
|
721
|
+
var g = t[l], m = e[l];
|
|
722
722
|
if (n)
|
|
723
|
-
var y = s ? n(m,
|
|
724
|
-
if (!(y === void 0 ?
|
|
725
|
-
|
|
723
|
+
var y = s ? n(m, g, l, e, t, a) : n(g, m, l, t, e, a);
|
|
724
|
+
if (!(y === void 0 ? g === m || o(g, m, r, n, a) : y)) {
|
|
725
|
+
_ = !1;
|
|
726
726
|
break;
|
|
727
727
|
}
|
|
728
728
|
p || (p = l == "constructor");
|
|
729
729
|
}
|
|
730
|
-
if (
|
|
731
|
-
var
|
|
732
|
-
|
|
730
|
+
if (_ && !p) {
|
|
731
|
+
var b = t.constructor, S = e.constructor;
|
|
732
|
+
b != S && "constructor" in t && "constructor" in e && !(typeof b == "function" && b instanceof b && typeof S == "function" && S instanceof S) && (_ = !1);
|
|
733
733
|
}
|
|
734
|
-
return a.delete(t), a.delete(e),
|
|
734
|
+
return a.delete(t), a.delete(e), _;
|
|
735
735
|
}
|
|
736
736
|
var Tu = 1, hn = "[object Arguments]", gn = "[object Array]", le = "[object Object]", Ru = Object.prototype, vn = Ru.hasOwnProperty;
|
|
737
737
|
function Mu(t, e, r, n, o, a) {
|
|
@@ -746,10 +746,10 @@ function Mu(t, e, r, n, o, a) {
|
|
|
746
746
|
if (l && !d)
|
|
747
747
|
return a || (a = new nt()), s || gr(t) ? To(t, e, r, n, o, a) : Cu(t, e, c, r, n, o, a);
|
|
748
748
|
if (!(r & Tu)) {
|
|
749
|
-
var h = d && vn.call(t, "__wrapped__"),
|
|
750
|
-
if (h ||
|
|
751
|
-
var
|
|
752
|
-
return a || (a = new nt()), o(
|
|
749
|
+
var h = d && vn.call(t, "__wrapped__"), v = f && vn.call(e, "__wrapped__");
|
|
750
|
+
if (h || v) {
|
|
751
|
+
var _ = h ? t.value() : t, p = v ? e.value() : e;
|
|
752
|
+
return a || (a = new nt()), o(_, p, r, n, a);
|
|
753
753
|
}
|
|
754
754
|
}
|
|
755
755
|
return l ? (a || (a = new nt()), Au(t, e, r, n, o, a)) : !1;
|
|
@@ -789,8 +789,8 @@ function Fu(t, e, r, n, o, a, s) {
|
|
|
789
789
|
}
|
|
790
790
|
var d = a ? a(i, c, r + "", t, e, s) : void 0, f = d === void 0;
|
|
791
791
|
if (f) {
|
|
792
|
-
var l = ot(c), h = !l && ge(c),
|
|
793
|
-
d = c, l || h ||
|
|
792
|
+
var l = ot(c), h = !l && ge(c), v = !l && !h && gr(c);
|
|
793
|
+
d = c, l || h || v ? ot(i) ? d = i : Du(i) ? d = _s(i) : h ? (f = !1, d = Gc(c)) : v ? (f = !1, d = ru(c)) : d = [] : Ft(c) || ke(c) ? (d = i, ke(i) ? d = Lu(i) : (!Et(i) || dr(i)) && (d = nu(c))) : f = !1;
|
|
794
794
|
}
|
|
795
795
|
f && (s.set(c, d), o(d, c, n, a, s), s.delete(c)), Qe(t, r, d);
|
|
796
796
|
}
|
|
@@ -880,7 +880,7 @@ const At = (t, e) => {
|
|
|
880
880
|
return {
|
|
881
881
|
[c]: function(...d) {
|
|
882
882
|
let f;
|
|
883
|
-
const h = Object.keys(i || {}).map((
|
|
883
|
+
const h = Object.keys(i || {}).map((v) => `var ${v} = $ACTION_VAR_SPACE[${JSON.stringify(v)}];`);
|
|
884
884
|
try {
|
|
885
885
|
return f = `
|
|
886
886
|
var $$$__args__$$$ = Array.from(arguments);
|
|
@@ -931,8 +931,8 @@ ${mn("$U_STATE", {
|
|
|
931
931
|
}
|
|
932
932
|
return $$_run_$$();
|
|
933
933
|
`, new Function(f)(...d, { $$context: n, storeManager: o, $$response: a, actionVariableSpace: i, nodeModel: s });
|
|
934
|
-
} catch (
|
|
935
|
-
console.warn(
|
|
934
|
+
} catch (v) {
|
|
935
|
+
console.warn(v);
|
|
936
936
|
}
|
|
937
937
|
}
|
|
938
938
|
}[c];
|
|
@@ -986,7 +986,7 @@ ${mn("$U_STATE", {
|
|
|
986
986
|
}, $v = (t, e) => Io(t, e), Cv = (t, e) => Io(t, e), yn = (t) => {
|
|
987
987
|
var r;
|
|
988
988
|
return ((r = t.value.css) == null ? void 0 : r.class) || `c_${t.id}`;
|
|
989
|
-
},
|
|
989
|
+
}, Ju = (t, e) => {
|
|
990
990
|
const r = t.split(".");
|
|
991
991
|
let n, o = e;
|
|
992
992
|
return r.forEach((a) => {
|
|
@@ -997,16 +997,16 @@ ${mn("$U_STATE", {
|
|
|
997
997
|
...t
|
|
998
998
|
};
|
|
999
999
|
return r.__proto__ = e, r;
|
|
1000
|
-
},
|
|
1000
|
+
}, Wu = {}, _n = (t) => {
|
|
1001
1001
|
let e;
|
|
1002
1002
|
const r = /* @__PURE__ */ new Set(), n = (d, f) => {
|
|
1003
1003
|
const l = typeof d == "function" ? d(e) : d;
|
|
1004
1004
|
if (!Object.is(l, e)) {
|
|
1005
1005
|
const h = e;
|
|
1006
|
-
e = f ?? (typeof l != "object" || l === null) ? l : Object.assign({}, e, l), r.forEach((
|
|
1006
|
+
e = f ?? (typeof l != "object" || l === null) ? l : Object.assign({}, e, l), r.forEach((v) => v(e, h));
|
|
1007
1007
|
}
|
|
1008
1008
|
}, o = () => e, c = { setState: n, getState: o, getInitialState: () => u, subscribe: (d) => (r.add(d), () => r.delete(d)), destroy: () => {
|
|
1009
|
-
(
|
|
1009
|
+
(Wu ? "production" : void 0) !== "production" && console.warn(
|
|
1010
1010
|
"[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."
|
|
1011
1011
|
), r.clear();
|
|
1012
1012
|
} }, u = e = t(n, o, c);
|
|
@@ -1103,7 +1103,7 @@ class Do {
|
|
|
1103
1103
|
this.refMap.clear();
|
|
1104
1104
|
}
|
|
1105
1105
|
}
|
|
1106
|
-
var Yu = Object.defineProperty, Xu = (t, e, r) => e in t ? Yu(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, C = (t, e, r) => Xu(t, typeof e != "symbol" ? e + "" : e, r), Lo = typeof global == "object" && global && global.Object === Object && global, Zu = typeof self == "object" && self && self.Object === Object && self, Z = Lo || Zu || Function("return this")(),
|
|
1106
|
+
var Yu = Object.defineProperty, Xu = (t, e, r) => e in t ? Yu(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, C = (t, e, r) => Xu(t, typeof e != "symbol" ? e + "" : e, r), Lo = typeof global == "object" && global && global.Object === Object && global, Zu = typeof self == "object" && self && self.Object === Object && self, Z = Lo || Zu || Function("return this")(), J = Z.Symbol, Fo = Object.prototype, tl = Fo.hasOwnProperty, el = Fo.toString, Ht = J ? J.toStringTag : void 0;
|
|
1107
1107
|
function rl(t) {
|
|
1108
1108
|
var e = tl.call(t, Ht), r = t[Ht];
|
|
1109
1109
|
try {
|
|
@@ -1118,7 +1118,7 @@ var nl = Object.prototype, ol = nl.toString;
|
|
|
1118
1118
|
function al(t) {
|
|
1119
1119
|
return ol.call(t);
|
|
1120
1120
|
}
|
|
1121
|
-
var sl = "[object Null]", il = "[object Undefined]", Sn =
|
|
1121
|
+
var sl = "[object Null]", il = "[object Undefined]", Sn = J ? J.toStringTag : void 0;
|
|
1122
1122
|
function Nt(t) {
|
|
1123
1123
|
return t == null ? t === void 0 ? il : sl : Sn && Sn in Object(t) ? rl(t) : al(t);
|
|
1124
1124
|
}
|
|
@@ -1134,7 +1134,7 @@ function mr(t, e) {
|
|
|
1134
1134
|
o[r] = e(t[r], r, t);
|
|
1135
1135
|
return o;
|
|
1136
1136
|
}
|
|
1137
|
-
var L = Array.isArray, On =
|
|
1137
|
+
var L = Array.isArray, On = J ? J.prototype : void 0, En = On ? On.toString : void 0;
|
|
1138
1138
|
function Vo(t) {
|
|
1139
1139
|
if (typeof t == "string")
|
|
1140
1140
|
return t;
|
|
@@ -1346,7 +1346,7 @@ function Hl(t, e, r) {
|
|
|
1346
1346
|
var n = typeof e;
|
|
1347
1347
|
return (n == "number" ? Ce(r) && $e(e, r.length) : n == "string" && e in r) ? ie(r[e], t) : !1;
|
|
1348
1348
|
}
|
|
1349
|
-
function
|
|
1349
|
+
function Jl(t) {
|
|
1350
1350
|
return zo(function(e, r) {
|
|
1351
1351
|
var n = -1, o = r.length, a = o > 1 ? r[o - 1] : void 0, s = o > 2 ? r[2] : void 0;
|
|
1352
1352
|
for (a = t.length > 3 && typeof a == "function" ? (o--, a) : void 0, s && Hl(r[0], r[1], s) && (a = o < 3 ? void 0 : a, o = 1), e = Object(e); ++n < o; ) {
|
|
@@ -1356,9 +1356,9 @@ function Wl(t) {
|
|
|
1356
1356
|
return e;
|
|
1357
1357
|
});
|
|
1358
1358
|
}
|
|
1359
|
-
var
|
|
1359
|
+
var Wl = Object.prototype;
|
|
1360
1360
|
function Er(t) {
|
|
1361
|
-
var e = t && t.constructor, r = typeof e == "function" && e.prototype ||
|
|
1361
|
+
var e = t && t.constructor, r = typeof e == "function" && e.prototype || Wl;
|
|
1362
1362
|
return t === r;
|
|
1363
1363
|
}
|
|
1364
1364
|
function ql(t, e) {
|
|
@@ -1389,14 +1389,14 @@ function wr(t) {
|
|
|
1389
1389
|
return t(e);
|
|
1390
1390
|
};
|
|
1391
1391
|
}
|
|
1392
|
-
var
|
|
1392
|
+
var Jo = typeof exports == "object" && exports && !exports.nodeType && exports, Wt = Jo && typeof module == "object" && module && !module.nodeType && module, Nf = Wt && Wt.exports === Jo, Le = Nf && Lo.process, Mt = function() {
|
|
1393
1393
|
try {
|
|
1394
|
-
var t =
|
|
1394
|
+
var t = Wt && Wt.require && Wt.require("util").types;
|
|
1395
1395
|
return t || Le && Le.binding && Le.binding("util");
|
|
1396
1396
|
} catch {
|
|
1397
1397
|
}
|
|
1398
1398
|
}(), An = Mt && Mt.isTypedArray, $r = An ? wr(An) : Cf, jf = Object.prototype, xf = jf.hasOwnProperty;
|
|
1399
|
-
function
|
|
1399
|
+
function Wo(t, e) {
|
|
1400
1400
|
var r = L(t), n = !r && Xt(t), o = !r && !n && Zt(t), a = !r && !n && !o && $r(t), s = r || n || o || a, i = s ? ql(t.length, String) : [], c = i.length;
|
|
1401
1401
|
for (var u in t)
|
|
1402
1402
|
(e || xf.call(t, u)) && !(s && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
@@ -1421,7 +1421,7 @@ function Mf(t) {
|
|
|
1421
1421
|
return e;
|
|
1422
1422
|
}
|
|
1423
1423
|
function Ne(t) {
|
|
1424
|
-
return Ce(t) ?
|
|
1424
|
+
return Ce(t) ? Wo(t) : Mf(t);
|
|
1425
1425
|
}
|
|
1426
1426
|
function Pf(t) {
|
|
1427
1427
|
var e = [];
|
|
@@ -1440,7 +1440,7 @@ function Lf(t) {
|
|
|
1440
1440
|
return r;
|
|
1441
1441
|
}
|
|
1442
1442
|
function ce(t) {
|
|
1443
|
-
return Ce(t) ?
|
|
1443
|
+
return Ce(t) ? Wo(t, !0) : Lf(t);
|
|
1444
1444
|
}
|
|
1445
1445
|
var Ff = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, Vf = /^\w*$/;
|
|
1446
1446
|
function Cr(t, e) {
|
|
@@ -1466,10 +1466,10 @@ function Hf(t) {
|
|
|
1466
1466
|
}
|
|
1467
1467
|
return kf.call(e, t) ? e[t] : void 0;
|
|
1468
1468
|
}
|
|
1469
|
-
var
|
|
1469
|
+
var Jf = Object.prototype, Wf = Jf.hasOwnProperty;
|
|
1470
1470
|
function qf(t) {
|
|
1471
1471
|
var e = this.__data__;
|
|
1472
|
-
return te ? e[t] !== void 0 :
|
|
1472
|
+
return te ? e[t] !== void 0 : Wf.call(e, t);
|
|
1473
1473
|
}
|
|
1474
1474
|
var Kf = "__lodash_hash_undefined__";
|
|
1475
1475
|
function Qf(t, e) {
|
|
@@ -1624,7 +1624,7 @@ function jr(t, e) {
|
|
|
1624
1624
|
t[o + r] = e[r];
|
|
1625
1625
|
return t;
|
|
1626
1626
|
}
|
|
1627
|
-
var Tn =
|
|
1627
|
+
var Tn = J ? J.isConcatSpreadable : void 0;
|
|
1628
1628
|
function md(t) {
|
|
1629
1629
|
return L(t) || Xt(t) || !!(Tn && t && t[Tn]);
|
|
1630
1630
|
}
|
|
@@ -1742,8 +1742,8 @@ function Ze(t) {
|
|
|
1742
1742
|
function Tr(t) {
|
|
1743
1743
|
return ra(t, ce, ea);
|
|
1744
1744
|
}
|
|
1745
|
-
var tr = xt(Z, "DataView"), er = xt(Z, "Promise"), Tt = xt(Z, "Set"), Dn = "[object Map]", Bd = "[object Object]", Ln = "[object Promise]", Fn = "[object Set]", Vn = "[object WeakMap]", Un = "[object DataView]", Gd = jt(tr), zd = jt(ee), kd = jt(er), Hd = jt(Tt),
|
|
1746
|
-
(tr &&
|
|
1745
|
+
var tr = xt(Z, "DataView"), er = xt(Z, "Promise"), Tt = xt(Z, "Set"), Dn = "[object Map]", Bd = "[object Object]", Ln = "[object Promise]", Fn = "[object Set]", Vn = "[object WeakMap]", Un = "[object DataView]", Gd = jt(tr), zd = jt(ee), kd = jt(er), Hd = jt(Tt), Jd = jt(Xe), W = Nt;
|
|
1746
|
+
(tr && W(new tr(new ArrayBuffer(1))) != Un || ee && W(new ee()) != Dn || er && W(er.resolve()) != Ln || Tt && W(new Tt()) != Fn || Xe && W(new Xe()) != Vn) && (W = function(t) {
|
|
1747
1747
|
var e = Nt(t), r = e == Bd ? t.constructor : void 0, n = r ? jt(r) : "";
|
|
1748
1748
|
if (n)
|
|
1749
1749
|
switch (n) {
|
|
@@ -1755,12 +1755,12 @@ var tr = xt(Z, "DataView"), er = xt(Z, "Promise"), Tt = xt(Z, "Set"), Dn = "[obj
|
|
|
1755
1755
|
return Ln;
|
|
1756
1756
|
case Hd:
|
|
1757
1757
|
return Fn;
|
|
1758
|
-
case
|
|
1758
|
+
case Jd:
|
|
1759
1759
|
return Vn;
|
|
1760
1760
|
}
|
|
1761
1761
|
return e;
|
|
1762
1762
|
});
|
|
1763
|
-
var
|
|
1763
|
+
var Wd = Object.prototype, qd = Wd.hasOwnProperty;
|
|
1764
1764
|
function Kd(t) {
|
|
1765
1765
|
var e = t.length, r = new t.constructor(e);
|
|
1766
1766
|
return e && typeof t[0] == "string" && qd.call(t, "index") && (r.index = t.index, r.input = t.input), r;
|
|
@@ -1779,7 +1779,7 @@ function Xd(t) {
|
|
|
1779
1779
|
var e = new t.constructor(t.source, Yd.exec(t));
|
|
1780
1780
|
return e.lastIndex = t.lastIndex, e;
|
|
1781
1781
|
}
|
|
1782
|
-
var Bn =
|
|
1782
|
+
var Bn = J ? J.prototype : void 0, Gn = Bn ? Bn.valueOf : void 0;
|
|
1783
1783
|
function Zd(t) {
|
|
1784
1784
|
return Gn ? Object(Gn.call(t)) : {};
|
|
1785
1785
|
}
|
|
@@ -1826,14 +1826,14 @@ function oa(t) {
|
|
|
1826
1826
|
}
|
|
1827
1827
|
var _p = "[object Map]";
|
|
1828
1828
|
function Sp(t) {
|
|
1829
|
-
return Y(t) &&
|
|
1829
|
+
return Y(t) && W(t) == _p;
|
|
1830
1830
|
}
|
|
1831
1831
|
var zn = Mt && Mt.isMap, Op = zn ? wr(zn) : Sp, Ep = "[object Set]";
|
|
1832
1832
|
function wp(t) {
|
|
1833
|
-
return Y(t) &&
|
|
1833
|
+
return Y(t) && W(t) == Ep;
|
|
1834
1834
|
}
|
|
1835
|
-
var kn = Mt && Mt.isSet, $p = kn ? wr(kn) : wp, Cp = 1, Np = 2, jp = 4, aa = "[object Arguments]", xp = "[object Array]", Ap = "[object Boolean]", Tp = "[object Date]", Rp = "[object Error]", sa = "[object Function]", Mp = "[object GeneratorFunction]", Pp = "[object Map]", Ip = "[object Number]", ia = "[object Object]", Dp = "[object RegExp]", Lp = "[object Set]", Fp = "[object String]", Vp = "[object Symbol]", Up = "[object WeakMap]", Bp = "[object ArrayBuffer]", Gp = "[object DataView]", zp = "[object Float32Array]", kp = "[object Float64Array]", Hp = "[object Int8Array]",
|
|
1836
|
-
R[aa] = R[xp] = R[Bp] = R[Gp] = R[Ap] = R[Tp] = R[zp] = R[kp] = R[Hp] = R[
|
|
1835
|
+
var kn = Mt && Mt.isSet, $p = kn ? wr(kn) : wp, Cp = 1, Np = 2, jp = 4, aa = "[object Arguments]", xp = "[object Array]", Ap = "[object Boolean]", Tp = "[object Date]", Rp = "[object Error]", sa = "[object Function]", Mp = "[object GeneratorFunction]", Pp = "[object Map]", Ip = "[object Number]", ia = "[object Object]", Dp = "[object RegExp]", Lp = "[object Set]", Fp = "[object String]", Vp = "[object Symbol]", Up = "[object WeakMap]", Bp = "[object ArrayBuffer]", Gp = "[object DataView]", zp = "[object Float32Array]", kp = "[object Float64Array]", Hp = "[object Int8Array]", Jp = "[object Int16Array]", Wp = "[object Int32Array]", qp = "[object Uint8Array]", Kp = "[object Uint8ClampedArray]", Qp = "[object Uint16Array]", Yp = "[object Uint32Array]", R = {};
|
|
1836
|
+
R[aa] = R[xp] = R[Bp] = R[Gp] = R[Ap] = R[Tp] = R[zp] = R[kp] = R[Hp] = R[Jp] = R[Wp] = R[Pp] = R[Ip] = R[ia] = R[Dp] = R[Lp] = R[Fp] = R[Vp] = R[qp] = R[Kp] = R[Qp] = R[Yp] = !0;
|
|
1837
1837
|
R[Rp] = R[sa] = R[Up] = !1;
|
|
1838
1838
|
function qt(t, e, r, n, o, a) {
|
|
1839
1839
|
var s, i = e & Cp, c = e & Np, u = e & jp;
|
|
@@ -1846,7 +1846,7 @@ function qt(t, e, r, n, o, a) {
|
|
|
1846
1846
|
if (s = Kd(t), !i)
|
|
1847
1847
|
return Uo(t, s);
|
|
1848
1848
|
} else {
|
|
1849
|
-
var f =
|
|
1849
|
+
var f = W(t), l = f == sa || f == Mp;
|
|
1850
1850
|
if (Zt(t))
|
|
1851
1851
|
return Zo(t, i);
|
|
1852
1852
|
if (f == ia || f == aa || l && !o) {
|
|
@@ -1864,12 +1864,12 @@ function qt(t, e, r, n, o, a) {
|
|
|
1864
1864
|
return h;
|
|
1865
1865
|
a.set(t, s), $p(t) ? t.forEach(function(p) {
|
|
1866
1866
|
s.add(qt(p, e, r, p, t, a));
|
|
1867
|
-
}) : Op(t) && t.forEach(function(p,
|
|
1868
|
-
s.set(
|
|
1867
|
+
}) : Op(t) && t.forEach(function(p, g) {
|
|
1868
|
+
s.set(g, qt(p, e, r, g, t, a));
|
|
1869
1869
|
});
|
|
1870
|
-
var
|
|
1871
|
-
return Pl(
|
|
1872
|
-
|
|
1870
|
+
var v = u ? c ? Tr : Ze : c ? ce : Ne, _ = d ? void 0 : v(t);
|
|
1871
|
+
return Pl(_ || t, function(p, g) {
|
|
1872
|
+
_ && (g = p, p = t[g]), Sr(s, g, qt(p, e, r, g, t, a));
|
|
1873
1873
|
}), s;
|
|
1874
1874
|
}
|
|
1875
1875
|
var Xp = 1, Zp = 4;
|
|
@@ -1909,9 +1909,9 @@ function la(t, e, r, n, o, a) {
|
|
|
1909
1909
|
return u == e && d == t;
|
|
1910
1910
|
var f = -1, l = !0, h = r & ah ? new re() : void 0;
|
|
1911
1911
|
for (a.set(t, e), a.set(e, t); ++f < i; ) {
|
|
1912
|
-
var
|
|
1912
|
+
var v = t[f], _ = e[f];
|
|
1913
1913
|
if (n)
|
|
1914
|
-
var p = s ? n(
|
|
1914
|
+
var p = s ? n(_, v, f, e, t, a) : n(v, _, f, t, e, a);
|
|
1915
1915
|
if (p !== void 0) {
|
|
1916
1916
|
if (p)
|
|
1917
1917
|
continue;
|
|
@@ -1919,14 +1919,14 @@ function la(t, e, r, n, o, a) {
|
|
|
1919
1919
|
break;
|
|
1920
1920
|
}
|
|
1921
1921
|
if (h) {
|
|
1922
|
-
if (!nh(e, function(
|
|
1923
|
-
if (!ua(h, m) && (
|
|
1922
|
+
if (!nh(e, function(g, m) {
|
|
1923
|
+
if (!ua(h, m) && (v === g || o(v, g, r, n, a)))
|
|
1924
1924
|
return h.push(m);
|
|
1925
1925
|
})) {
|
|
1926
1926
|
l = !1;
|
|
1927
1927
|
break;
|
|
1928
1928
|
}
|
|
1929
|
-
} else if (!(
|
|
1929
|
+
} else if (!(v === _ || o(v, _, r, n, a))) {
|
|
1930
1930
|
l = !1;
|
|
1931
1931
|
break;
|
|
1932
1932
|
}
|
|
@@ -1945,7 +1945,7 @@ function Mr(t) {
|
|
|
1945
1945
|
r[++e] = n;
|
|
1946
1946
|
}), r;
|
|
1947
1947
|
}
|
|
1948
|
-
var ih = 1, ch = 2, uh = "[object Boolean]", lh = "[object Date]", fh = "[object Error]", dh = "[object Map]", ph = "[object Number]", hh = "[object RegExp]", gh = "[object Set]", vh = "[object String]", mh = "[object Symbol]", yh = "[object ArrayBuffer]", bh = "[object DataView]", Hn =
|
|
1948
|
+
var ih = 1, ch = 2, uh = "[object Boolean]", lh = "[object Date]", fh = "[object Error]", dh = "[object Map]", ph = "[object Number]", hh = "[object RegExp]", gh = "[object Set]", vh = "[object String]", mh = "[object Symbol]", yh = "[object ArrayBuffer]", bh = "[object DataView]", Hn = J ? J.prototype : void 0, Fe = Hn ? Hn.valueOf : void 0;
|
|
1949
1949
|
function _h(t, e, r, n, o, a, s) {
|
|
1950
1950
|
switch (r) {
|
|
1951
1951
|
case bh:
|
|
@@ -1991,32 +1991,32 @@ function wh(t, e, r, n, o, a) {
|
|
|
1991
1991
|
if (!(s ? l in e : Eh.call(e, l)))
|
|
1992
1992
|
return !1;
|
|
1993
1993
|
}
|
|
1994
|
-
var h = a.get(t),
|
|
1995
|
-
if (h &&
|
|
1996
|
-
return h == e &&
|
|
1997
|
-
var
|
|
1994
|
+
var h = a.get(t), v = a.get(e);
|
|
1995
|
+
if (h && v)
|
|
1996
|
+
return h == e && v == t;
|
|
1997
|
+
var _ = !0;
|
|
1998
1998
|
a.set(t, e), a.set(e, t);
|
|
1999
1999
|
for (var p = s; ++f < c; ) {
|
|
2000
2000
|
l = i[f];
|
|
2001
|
-
var
|
|
2001
|
+
var g = t[l], m = e[l];
|
|
2002
2002
|
if (n)
|
|
2003
|
-
var y = s ? n(m,
|
|
2004
|
-
if (!(y === void 0 ?
|
|
2005
|
-
|
|
2003
|
+
var y = s ? n(m, g, l, e, t, a) : n(g, m, l, t, e, a);
|
|
2004
|
+
if (!(y === void 0 ? g === m || o(g, m, r, n, a) : y)) {
|
|
2005
|
+
_ = !1;
|
|
2006
2006
|
break;
|
|
2007
2007
|
}
|
|
2008
2008
|
p || (p = l == "constructor");
|
|
2009
2009
|
}
|
|
2010
|
-
if (
|
|
2011
|
-
var
|
|
2012
|
-
|
|
2010
|
+
if (_ && !p) {
|
|
2011
|
+
var b = t.constructor, S = e.constructor;
|
|
2012
|
+
b != S && "constructor" in t && "constructor" in e && !(typeof b == "function" && b instanceof b && typeof S == "function" && S instanceof S) && (_ = !1);
|
|
2013
2013
|
}
|
|
2014
|
-
return a.delete(t), a.delete(e),
|
|
2014
|
+
return a.delete(t), a.delete(e), _;
|
|
2015
2015
|
}
|
|
2016
|
-
var $h = 1,
|
|
2016
|
+
var $h = 1, Jn = "[object Arguments]", Wn = "[object Array]", fe = "[object Object]", Ch = Object.prototype, qn = Ch.hasOwnProperty;
|
|
2017
2017
|
function Nh(t, e, r, n, o, a) {
|
|
2018
|
-
var s = L(t), i = L(e), c = s ?
|
|
2019
|
-
c = c ==
|
|
2018
|
+
var s = L(t), i = L(e), c = s ? Wn : W(t), u = i ? Wn : W(e);
|
|
2019
|
+
c = c == Jn ? fe : c, u = u == Jn ? fe : u;
|
|
2020
2020
|
var d = c == fe, f = u == fe, l = c == u;
|
|
2021
2021
|
if (l && Zt(t)) {
|
|
2022
2022
|
if (!Zt(e))
|
|
@@ -2026,10 +2026,10 @@ function Nh(t, e, r, n, o, a) {
|
|
|
2026
2026
|
if (l && !d)
|
|
2027
2027
|
return a || (a = new q()), s || $r(t) ? la(t, e, r, n, o, a) : _h(t, e, c, r, n, o, a);
|
|
2028
2028
|
if (!(r & $h)) {
|
|
2029
|
-
var h = d && qn.call(t, "__wrapped__"),
|
|
2030
|
-
if (h ||
|
|
2031
|
-
var
|
|
2032
|
-
return a || (a = new q()), o(
|
|
2029
|
+
var h = d && qn.call(t, "__wrapped__"), v = f && qn.call(e, "__wrapped__");
|
|
2030
|
+
if (h || v) {
|
|
2031
|
+
var _ = h ? t.value() : t, p = v ? e.value() : e;
|
|
2032
|
+
return a || (a = new q()), o(_, p, r, n, a);
|
|
2033
2033
|
}
|
|
2034
2034
|
}
|
|
2035
2035
|
return l ? (a || (a = new q()), wh(t, e, r, n, o, a)) : !1;
|
|
@@ -2153,8 +2153,8 @@ function Hh(t, e, r, n, o, a, s) {
|
|
|
2153
2153
|
}
|
|
2154
2154
|
var d = a ? a(i, c, r + "", t, e, s) : void 0, f = d === void 0;
|
|
2155
2155
|
if (f) {
|
|
2156
|
-
var l = L(c), h = !l && Zt(c),
|
|
2157
|
-
d = c, l || h ||
|
|
2156
|
+
var l = L(c), h = !l && Zt(c), v = !l && !h && $r(c);
|
|
2157
|
+
d = c, l || h || v ? L(i) ? d = i : nr(i) ? d = Uo(i) : h ? (f = !1, d = Zo(c, !0)) : v ? (f = !1, d = na(c, !0)) : d = [] : U(c) || Xt(c) ? (d = i, Xt(i) ? d = kh(i) : (!Q(i) || br(i)) && (d = oa(c))) : f = !1;
|
|
2158
2158
|
}
|
|
2159
2159
|
f && (s.set(c, d), o(d, c, n, a, s), s.delete(c)), rr(t, r, d);
|
|
2160
2160
|
}
|
|
@@ -2172,15 +2172,15 @@ function ha(t) {
|
|
|
2172
2172
|
var e = t == null ? 0 : t.length;
|
|
2173
2173
|
return e ? t[e - 1] : void 0;
|
|
2174
2174
|
}
|
|
2175
|
-
function
|
|
2175
|
+
function Jh(t, e) {
|
|
2176
2176
|
return e.length < 2 ? t : Ae(t, $d(e, 0, -1));
|
|
2177
2177
|
}
|
|
2178
|
-
var ga =
|
|
2178
|
+
var ga = Jl(function(t, e, r) {
|
|
2179
2179
|
pa(t, e, r);
|
|
2180
|
-
}),
|
|
2180
|
+
}), Wh = "Expected a function";
|
|
2181
2181
|
function qh(t) {
|
|
2182
2182
|
if (typeof t != "function")
|
|
2183
|
-
throw new TypeError(
|
|
2183
|
+
throw new TypeError(Wh);
|
|
2184
2184
|
return function() {
|
|
2185
2185
|
var e = arguments;
|
|
2186
2186
|
switch (e.length) {
|
|
@@ -2197,7 +2197,7 @@ function qh(t) {
|
|
|
2197
2197
|
};
|
|
2198
2198
|
}
|
|
2199
2199
|
function Kh(t, e) {
|
|
2200
|
-
return e = Ut(e, t), t =
|
|
2200
|
+
return e = Ut(e, t), t = Jh(t, e), t == null || delete t[Bt(ha(e))];
|
|
2201
2201
|
}
|
|
2202
2202
|
function Qh(t) {
|
|
2203
2203
|
return U(t) ? void 0 : t;
|
|
@@ -3734,14 +3734,14 @@ ${f.value}
|
|
|
3734
3734
|
h != null && h.then ? s[f.id] = await h : s[f.id] = h;
|
|
3735
3735
|
}
|
|
3736
3736
|
if (f.type === "REQUEST_API") {
|
|
3737
|
-
const { run: l, afterFailedResponse: h, afterSuccessResponse:
|
|
3737
|
+
const { run: l, afterFailedResponse: h, afterSuccessResponse: v } = Gg(f, e);
|
|
3738
3738
|
try {
|
|
3739
|
-
const
|
|
3740
|
-
|
|
3741
|
-
const p =
|
|
3739
|
+
const _ = l(...a);
|
|
3740
|
+
_ != null && _.then ? s[f.id] = await _ : s[f.id] = _, f.responseVarName && (e.actionVariableSpace[f.responseVarName] = s[f.id]);
|
|
3741
|
+
const p = v(s[f.id], ...a);
|
|
3742
3742
|
return p != null && p.then ? await p : p;
|
|
3743
|
-
} catch (
|
|
3744
|
-
const p = await h(
|
|
3743
|
+
} catch (_) {
|
|
3744
|
+
const p = await h(_);
|
|
3745
3745
|
return p != null && p.then ? await p : p;
|
|
3746
3746
|
}
|
|
3747
3747
|
}
|
|
@@ -3753,8 +3753,8 @@ ${f.value}
|
|
|
3753
3753
|
const l = kg(f, e);
|
|
3754
3754
|
let h = [...a];
|
|
3755
3755
|
e.$$response !== void 0 && (h = [e.$$response, h]);
|
|
3756
|
-
const
|
|
3757
|
-
s[f.id] = await
|
|
3756
|
+
const v = l(...h);
|
|
3757
|
+
s[f.id] = await v;
|
|
3758
3758
|
}
|
|
3759
3759
|
};
|
|
3760
3760
|
let c = r[0];
|
|
@@ -3792,16 +3792,16 @@ const yt = (t, e) => function(...r) {
|
|
|
3792
3792
|
let s = "";
|
|
3793
3793
|
t.apiPath && (s = yt(t.apiPath, e)(...a));
|
|
3794
3794
|
const i = t.body || {};
|
|
3795
|
-
Object.keys(i).forEach((
|
|
3796
|
-
i[
|
|
3795
|
+
Object.keys(i).forEach((v) => {
|
|
3796
|
+
i[v] = yt(i[v], e)(...a);
|
|
3797
3797
|
});
|
|
3798
3798
|
const c = t.query || {};
|
|
3799
|
-
Object.keys(c).forEach((
|
|
3800
|
-
c[
|
|
3799
|
+
Object.keys(c).forEach((v) => {
|
|
3800
|
+
c[v] = yt(c[v], e)(...a);
|
|
3801
3801
|
});
|
|
3802
3802
|
const u = t.header || {};
|
|
3803
|
-
Object.keys(u).forEach((
|
|
3804
|
-
u[
|
|
3803
|
+
Object.keys(u).forEach((v) => {
|
|
3804
|
+
u[v] = yt(u[v], e)(...a);
|
|
3805
3805
|
});
|
|
3806
3806
|
const d = t.method || "GET";
|
|
3807
3807
|
return (h = (l = e.context).requestAPI) == null ? void 0 : h.call(l, {
|
|
@@ -3848,7 +3848,12 @@ const yt = (t, e) => function(...r) {
|
|
|
3848
3848
|
var args = arguments;
|
|
3849
3849
|
var nodeRef = $$context.nodeRefs.get(${JSON.stringify(t.nodeId)});
|
|
3850
3850
|
if(nodeRef && nodeRef.current) {
|
|
3851
|
-
var func = nodeRef.current[${JSON.stringify(t.methodName)}];
|
|
3851
|
+
var func = nodeRef.current[${JSON.stringify(t.methodName)}]?.bind(nodeRef.current);
|
|
3852
|
+
var isDev = Boolean(nodeRef.current?.getTargetComponentRef);
|
|
3853
|
+
if (isDev) {
|
|
3854
|
+
const ins = nodeRef.current.getTargetComponentRef()?.current;
|
|
3855
|
+
func = ins?.[${JSON.stringify(t.methodName)}]?.bind(ins);
|
|
3856
|
+
}
|
|
3852
3857
|
if (func) {
|
|
3853
3858
|
func.apply(null, args);
|
|
3854
3859
|
}
|
|
@@ -3886,14 +3891,14 @@ const yt = (t, e) => function(...r) {
|
|
|
3886
3891
|
return console.warn("slot value is null, this maybe cause some error, pls check it", t), () => {
|
|
3887
3892
|
};
|
|
3888
3893
|
const f = (l) => {
|
|
3889
|
-
const h = `${l.id}-${Re}`,
|
|
3894
|
+
const h = `${l.id}-${Re}`, v = n(l), _ = kr(v, l, {
|
|
3890
3895
|
...e
|
|
3891
3896
|
}), p = u.params || [];
|
|
3892
3897
|
return {
|
|
3893
3898
|
component: (...y) => {
|
|
3894
|
-
const
|
|
3899
|
+
const b = Po(y, p), S = fr(
|
|
3895
3900
|
{
|
|
3896
|
-
params:
|
|
3901
|
+
params: b,
|
|
3897
3902
|
nodeRefs: r.nodeRefs,
|
|
3898
3903
|
// 使用空函数,避免获取到父节点的方法或者函数
|
|
3899
3904
|
getProps: function() {
|
|
@@ -3903,7 +3908,7 @@ const yt = (t, e) => function(...r) {
|
|
|
3903
3908
|
},
|
|
3904
3909
|
r
|
|
3905
3910
|
);
|
|
3906
|
-
return oe(
|
|
3911
|
+
return oe(_, {
|
|
3907
3912
|
$$context: S,
|
|
3908
3913
|
key: h
|
|
3909
3914
|
});
|
|
@@ -3913,15 +3918,15 @@ const yt = (t, e) => function(...r) {
|
|
|
3913
3918
|
};
|
|
3914
3919
|
if (Array.isArray(d)) {
|
|
3915
3920
|
const l = d == null ? void 0 : d.map((h) => f(h));
|
|
3916
|
-
return (...h) => l.map((
|
|
3917
|
-
if (Bu(
|
|
3918
|
-
const p =
|
|
3921
|
+
return (...h) => l.map((v) => {
|
|
3922
|
+
if (Bu(v.component)) {
|
|
3923
|
+
const p = v.component;
|
|
3919
3924
|
return x.createElement(p, {
|
|
3920
3925
|
$$context: r,
|
|
3921
|
-
key:
|
|
3926
|
+
key: v.key
|
|
3922
3927
|
});
|
|
3923
3928
|
} else {
|
|
3924
|
-
const p =
|
|
3929
|
+
const p = v.component;
|
|
3925
3930
|
return p == null ? void 0 : p(...h);
|
|
3926
3931
|
}
|
|
3927
3932
|
});
|
|
@@ -3973,11 +3978,11 @@ const yt = (t, e) => function(...r) {
|
|
|
3973
3978
|
const f = d.value.id;
|
|
3974
3979
|
let l = null;
|
|
3975
3980
|
if (r.get(f)) {
|
|
3976
|
-
const
|
|
3977
|
-
l =
|
|
3981
|
+
const _ = r.get(f);
|
|
3982
|
+
l = _ == null ? void 0 : _.component;
|
|
3978
3983
|
} else {
|
|
3979
|
-
const
|
|
3980
|
-
l = kr(
|
|
3984
|
+
const _ = o(d);
|
|
3985
|
+
l = kr(_, d, {
|
|
3981
3986
|
...c
|
|
3982
3987
|
}), !r.get(f) && a !== "design" && r.set(f, {
|
|
3983
3988
|
component: l
|
|
@@ -4027,9 +4032,9 @@ const yt = (t, e) => function(...r) {
|
|
|
4027
4032
|
e.value.componentName === rt.ROOT_CONTAINER ? this.setState(p) : this.storeState.setState(p);
|
|
4028
4033
|
});
|
|
4029
4034
|
w(this, "getStyleDomById", (p) => {
|
|
4030
|
-
const
|
|
4031
|
-
let m =
|
|
4032
|
-
return m || (m = f.createElement("style"),
|
|
4035
|
+
const g = this.mediaStyleDomMap;
|
|
4036
|
+
let m = g[p];
|
|
4037
|
+
return m || (m = f.createElement("style"), g[p] = m), m.id = p, m;
|
|
4033
4038
|
});
|
|
4034
4039
|
w(this, "addMediaCSS", () => {
|
|
4035
4040
|
var m;
|
|
@@ -4038,59 +4043,59 @@ const yt = (t, e) => function(...r) {
|
|
|
4038
4043
|
console.warn("not found header dom");
|
|
4039
4044
|
return;
|
|
4040
4045
|
}
|
|
4041
|
-
const
|
|
4042
|
-
|
|
4043
|
-
var
|
|
4044
|
-
const
|
|
4046
|
+
const g = this._NODE_MODEL.value.css;
|
|
4047
|
+
g && g.value.forEach((y) => {
|
|
4048
|
+
var j;
|
|
4049
|
+
const b = `${this.UNIQUE_ID}_${y.state}`;
|
|
4045
4050
|
let S = yn(this._NODE_MODEL);
|
|
4046
4051
|
if (y.state !== "normal" && (S = `${S}:${y.state}`), y.text) {
|
|
4047
|
-
const
|
|
4048
|
-
|
|
4052
|
+
const N = this.getStyleDomById(b);
|
|
4053
|
+
N.innerText = `.${S} { ${y.text} }`, p == null || p.appendChild(N);
|
|
4049
4054
|
}
|
|
4050
|
-
(
|
|
4051
|
-
const $ = `${
|
|
4052
|
-
F.media = `screen and (${
|
|
4055
|
+
(j = y.media) != null && j.length && y.media.forEach((N) => {
|
|
4056
|
+
const $ = `${b}_${N.type}_${N.value}`, F = this.getStyleDomById($);
|
|
4057
|
+
F.media = `screen and (${N.type}:${N.value}px)`, F.innerHTML = `.${S} { ${N.text} }`, p == null || p.appendChild(F);
|
|
4053
4058
|
});
|
|
4054
4059
|
});
|
|
4055
4060
|
});
|
|
4056
4061
|
w(this, "removeMediaCSS", () => {
|
|
4057
4062
|
const p = this.mediaStyleDomMap;
|
|
4058
|
-
Object.keys(p).forEach((
|
|
4063
|
+
Object.keys(p).forEach((g) => {
|
|
4059
4064
|
var m;
|
|
4060
|
-
(m = this.domHeader) == null || m.removeChild(p[
|
|
4065
|
+
(m = this.domHeader) == null || m.removeChild(p[g]);
|
|
4061
4066
|
}), this.mediaStyleDomMap = {};
|
|
4062
4067
|
});
|
|
4063
4068
|
w(this, "rebuildNode", () => {
|
|
4064
4069
|
this.storeListenDisposeList.forEach((p) => p()), this.removeMediaCSS(), this.connectStore(), this.addMediaCSS(), this.forceUpdate();
|
|
4065
4070
|
});
|
|
4066
4071
|
this.targetComponentRef = x.createRef(), this.listenerHandler = [], this.state = e.value.state || {};
|
|
4067
|
-
let
|
|
4068
|
-
e.value.componentName === rt.ROOT_CONTAINER && (
|
|
4069
|
-
const m = n.getStore(
|
|
4072
|
+
let g = e.value.nodeName || e.id;
|
|
4073
|
+
e.value.componentName === rt.ROOT_CONTAINER && (g = "globalState"), this.nodeName = g;
|
|
4074
|
+
const m = n.getStore(g);
|
|
4070
4075
|
m ? (this.storeState = m, m.setState({
|
|
4071
4076
|
...e.value.state || {}
|
|
4072
|
-
})) : this.storeState = n.addStore(
|
|
4077
|
+
})) : this.storeState = n.addStore(g, () => ({
|
|
4073
4078
|
...e.value.state || {}
|
|
4074
4079
|
}));
|
|
4075
4080
|
const y = this.storeState.subscribe((S) => {
|
|
4076
4081
|
this.setStateIfChanged(S);
|
|
4077
4082
|
});
|
|
4078
4083
|
this.storeListenDisposeList.push(y), this.connectStore();
|
|
4079
|
-
const
|
|
4080
|
-
|
|
4084
|
+
const b = o.get(g);
|
|
4085
|
+
b ? this.variableSpace = b : (this.variableSpace = {
|
|
4081
4086
|
staticVar: {},
|
|
4082
4087
|
methods: {}
|
|
4083
|
-
}, o.add(
|
|
4088
|
+
}, o.add(g, this.variableSpace));
|
|
4084
4089
|
}
|
|
4085
4090
|
/** 如果值和当前 state 一样了就不触发更新 */
|
|
4086
4091
|
setStateIfChanged(p) {
|
|
4087
|
-
e.value.componentName !== rt.ROOT_CONTAINER && this.setState((
|
|
4088
|
-
const m = typeof p == "function" ? p(
|
|
4089
|
-
return Vu(
|
|
4092
|
+
e.value.componentName !== rt.ROOT_CONTAINER && this.setState((g) => {
|
|
4093
|
+
const m = typeof p == "function" ? p(g) : p;
|
|
4094
|
+
return Vu(g, { ...g, ...m }) ? null : m;
|
|
4090
4095
|
});
|
|
4091
4096
|
}
|
|
4092
4097
|
connectStore() {
|
|
4093
|
-
const p = Zn(e.props, (S) => !!mt(S)),
|
|
4098
|
+
const p = Zn(e.props, (S) => !!mt(S)), g = Zn(
|
|
4094
4099
|
{
|
|
4095
4100
|
css: e.value.css,
|
|
4096
4101
|
class: e.value.classNames
|
|
@@ -4098,27 +4103,27 @@ const yt = (t, e) => function(...r) {
|
|
|
4098
4103
|
(S) => !!mt(S)
|
|
4099
4104
|
);
|
|
4100
4105
|
let m = [];
|
|
4101
|
-
[...p, ...
|
|
4102
|
-
const
|
|
4106
|
+
[...p, ...g].map((S) => {
|
|
4107
|
+
const j = S.val, N = [
|
|
4103
4108
|
// 匹配 $$context.stateManger.xxx.state
|
|
4104
4109
|
new RegExp(`(?<=context\\.stateManager(?:\\.|\\[["'])?)\\w+(?=(?:["']?\\])?(?:\\.|\\[)?["']?state)`, "gim"),
|
|
4105
4110
|
// 匹配 $ALL_STATE.xxx;
|
|
4106
4111
|
/\$ALL_STATE(?:\.|(?:\[\s*["']))(\w+)(?=(?:["']\s*\])?)/gim,
|
|
4107
4112
|
// 匹配 getStateObj("xxx")
|
|
4108
4113
|
/getStateObj\(["']([^"']+)["']\)/gim
|
|
4109
|
-
], $ = Hu(
|
|
4110
|
-
m = [...m, ...$], /\$CTX\.globalState|\$G_STATE/.test(
|
|
4114
|
+
], $ = Hu(j.value, N);
|
|
4115
|
+
m = [...m, ...$], /\$CTX\.globalState|\$G_STATE/.test(j.value) && m.push("globalState");
|
|
4111
4116
|
}).filter(Boolean);
|
|
4112
|
-
const y = Array.from(new Set(m)),
|
|
4117
|
+
const y = Array.from(new Set(m)), b = [];
|
|
4113
4118
|
y.length && y.forEach((S) => {
|
|
4114
4119
|
if (!S)
|
|
4115
4120
|
return;
|
|
4116
4121
|
n.getStore(S) || (n.addStore(S, () => ({})), console.warn(n, S, "not exits, auto create"));
|
|
4117
|
-
const
|
|
4122
|
+
const N = n.connect(S, ($) => {
|
|
4118
4123
|
this.setStateIfChanged($);
|
|
4119
4124
|
});
|
|
4120
|
-
|
|
4121
|
-
}), this.storeListenDisposeList =
|
|
4125
|
+
b.push(N);
|
|
4126
|
+
}), this.storeListenDisposeList = b;
|
|
4122
4127
|
}
|
|
4123
4128
|
componentDidMount() {
|
|
4124
4129
|
var m;
|
|
@@ -4130,19 +4135,19 @@ const yt = (t, e) => function(...r) {
|
|
|
4130
4135
|
actionVariableSpace: {},
|
|
4131
4136
|
nodeModel: e
|
|
4132
4137
|
})();
|
|
4133
|
-
const
|
|
4138
|
+
const g = () => {
|
|
4134
4139
|
n.setStore(e.value.nodeName || e.id, this.storeState), this.storeState.setState({
|
|
4135
4140
|
...this.state,
|
|
4136
4141
|
...e.value.state || {}
|
|
4137
4142
|
}), this.rebuildNode();
|
|
4138
4143
|
};
|
|
4139
|
-
e.onChange(
|
|
4144
|
+
e.onChange(g);
|
|
4140
4145
|
}
|
|
4141
4146
|
componentWillUnmount() {
|
|
4142
4147
|
var m;
|
|
4143
4148
|
this.storeListenDisposeList.forEach((y) => y()), this.removeMediaCSS(), i == null || i(this, e);
|
|
4144
|
-
const p = ja,
|
|
4145
|
-
|
|
4149
|
+
const p = ja, g = (m = e.value.eventListener) == null ? void 0 : m.find((y) => y.name === p);
|
|
4150
|
+
g && Rt(g.func, {
|
|
4146
4151
|
context: this.createCurrentNodeCtx(),
|
|
4147
4152
|
storeManager: n,
|
|
4148
4153
|
actionVariableSpace: {},
|
|
@@ -4151,32 +4156,32 @@ const yt = (t, e) => function(...r) {
|
|
|
4151
4156
|
}
|
|
4152
4157
|
/** 转换节点的 methods */
|
|
4153
4158
|
transformMethods(p) {
|
|
4154
|
-
const { context:
|
|
4159
|
+
const { context: g } = p, m = de(
|
|
4155
4160
|
{
|
|
4156
4161
|
methods: e.value.methods
|
|
4157
4162
|
},
|
|
4158
4163
|
{
|
|
4159
|
-
$$context:
|
|
4164
|
+
$$context: g,
|
|
4160
4165
|
...l,
|
|
4161
4166
|
nodeModel: e
|
|
4162
4167
|
}
|
|
4163
|
-
), y = e.value.methods || [],
|
|
4164
|
-
|
|
4168
|
+
), y = e.value.methods || [], b = m.methods, S = y.reduce((j, N, $) => (j[N.name] = b[$], j), {});
|
|
4169
|
+
g.methods = S, this.variableSpace.methods = Object.assign(this.variableSpace.methods, S);
|
|
4165
4170
|
}
|
|
4166
4171
|
/** 处理根节点的 context */
|
|
4167
4172
|
processRootContext(p) {
|
|
4168
4173
|
e.value.componentName === rt.ROOT_CONTAINER && (p.globalState = this.state, p.updateGlobalState = this.updateState, p.requestAPI = d, p.getGlobalState = () => this.state);
|
|
4169
4174
|
}
|
|
4170
|
-
processNodeClassName(p,
|
|
4171
|
-
var
|
|
4172
|
-
const m = ((
|
|
4175
|
+
processNodeClassName(p, g) {
|
|
4176
|
+
var b;
|
|
4177
|
+
const m = ((b = e.value.classNames) == null ? void 0 : b.map((S) => {
|
|
4173
4178
|
var $;
|
|
4174
|
-
const
|
|
4179
|
+
const j = S.name;
|
|
4175
4180
|
return (mt(S.status) ? At((($ = S.status) == null ? void 0 : $.value) || "", {
|
|
4176
|
-
nodeContext:
|
|
4181
|
+
nodeContext: g,
|
|
4177
4182
|
nodeModel: e,
|
|
4178
4183
|
storeManager: n
|
|
4179
|
-
}) : !1) ?
|
|
4184
|
+
}) : !1) ? j : "";
|
|
4180
4185
|
})) || [];
|
|
4181
4186
|
let y = `${p ?? ""} ${m.join(" ")}`.trim();
|
|
4182
4187
|
return e.value.css && (y = `${yn(e)} ${y}`.trim()), y;
|
|
@@ -4184,7 +4189,7 @@ const yt = (t, e) => function(...r) {
|
|
|
4184
4189
|
processNodeStyle(p) {
|
|
4185
4190
|
if (!e.value.style)
|
|
4186
4191
|
return {};
|
|
4187
|
-
const
|
|
4192
|
+
const g = de(
|
|
4188
4193
|
{ style: e.value.style },
|
|
4189
4194
|
{
|
|
4190
4195
|
$$context: p,
|
|
@@ -4192,39 +4197,39 @@ const yt = (t, e) => function(...r) {
|
|
|
4192
4197
|
nodeModel: e
|
|
4193
4198
|
}
|
|
4194
4199
|
);
|
|
4195
|
-
return ku(
|
|
4200
|
+
return ku(g.style || []);
|
|
4196
4201
|
}
|
|
4197
|
-
processNodeChild(p,
|
|
4202
|
+
processNodeChild(p, g) {
|
|
4198
4203
|
let m = [];
|
|
4199
4204
|
if (p !== void 0)
|
|
4200
4205
|
m = Array.isArray(p) ? p : [p];
|
|
4201
4206
|
else {
|
|
4202
4207
|
const y = [];
|
|
4203
|
-
e.value.children.forEach((S,
|
|
4204
|
-
const
|
|
4205
|
-
$$context:
|
|
4206
|
-
idx:
|
|
4208
|
+
e.value.children.forEach((S, j) => {
|
|
4209
|
+
const N = Hg(S, {
|
|
4210
|
+
$$context: g,
|
|
4211
|
+
idx: j,
|
|
4207
4212
|
...l
|
|
4208
4213
|
});
|
|
4209
|
-
y.push(
|
|
4214
|
+
y.push(N);
|
|
4210
4215
|
}), m = y;
|
|
4211
4216
|
}
|
|
4212
4217
|
return m;
|
|
4213
4218
|
}
|
|
4214
|
-
processNodeConditionAndConfigHook(p,
|
|
4219
|
+
processNodeConditionAndConfigHook(p, g, m) {
|
|
4215
4220
|
let y = e.value.condition ?? !0;
|
|
4216
4221
|
typeof y != "boolean" && (y = At(y.value, {
|
|
4217
4222
|
nodeContext: m || {},
|
|
4218
4223
|
nodeModel: e,
|
|
4219
4224
|
storeManager: n
|
|
4220
4225
|
}));
|
|
4221
|
-
let
|
|
4226
|
+
let b = {
|
|
4222
4227
|
condition: y,
|
|
4223
4228
|
props: p
|
|
4224
4229
|
};
|
|
4225
|
-
u && (
|
|
4226
|
-
const S = oe(t,
|
|
4227
|
-
return this._CONDITION =
|
|
4230
|
+
u && (b = u(b, e));
|
|
4231
|
+
const S = oe(t, b.props, ...g);
|
|
4232
|
+
return this._CONDITION = b.condition, b.condition ? S : x.createElement(
|
|
4228
4233
|
"div",
|
|
4229
4234
|
{
|
|
4230
4235
|
key: p.key,
|
|
@@ -4236,44 +4241,44 @@ const yt = (t, e) => function(...r) {
|
|
|
4236
4241
|
);
|
|
4237
4242
|
}
|
|
4238
4243
|
processNodeEventListener(p) {
|
|
4239
|
-
const
|
|
4240
|
-
return
|
|
4244
|
+
const g = e.value.eventListener, m = {};
|
|
4245
|
+
return g == null || g.forEach((y) => {
|
|
4241
4246
|
if (Ug.includes(y.name))
|
|
4242
4247
|
return;
|
|
4243
|
-
const
|
|
4248
|
+
const b = Rt(y.func, {
|
|
4244
4249
|
context: p,
|
|
4245
4250
|
storeManager: n,
|
|
4246
4251
|
actionVariableSpace: {},
|
|
4247
4252
|
nodeModel: e
|
|
4248
4253
|
});
|
|
4249
|
-
m[y.name] =
|
|
4254
|
+
m[y.name] = b;
|
|
4250
4255
|
}), m;
|
|
4251
4256
|
}
|
|
4252
4257
|
createCurrentNodeCtx() {
|
|
4253
|
-
const { $$context: p } = this.props,
|
|
4258
|
+
const { $$context: p } = this.props, g = e.value.nodeName || e.id, m = e.id, y = {
|
|
4254
4259
|
state: this.state || {},
|
|
4255
4260
|
staticVar: this.variableSpace.staticVar,
|
|
4256
4261
|
updateState: this.updateState,
|
|
4257
4262
|
storeManager: n,
|
|
4258
|
-
getState: () => n.getStateObj(
|
|
4259
|
-
getStateObj: () => n.getStateObj(
|
|
4263
|
+
getState: () => n.getStateObj(g),
|
|
4264
|
+
getStateObj: () => n.getStateObj(g),
|
|
4260
4265
|
getStateObjById: (S) => n.getStateObj(S),
|
|
4261
4266
|
stateManager: n.getStateSnapshot(),
|
|
4262
4267
|
getMethods: () => {
|
|
4263
|
-
const S = o.get(m).methods,
|
|
4264
|
-
return bn(S,
|
|
4268
|
+
const S = o.get(m).methods, j = c.get(m).current;
|
|
4269
|
+
return bn(S, j);
|
|
4265
4270
|
},
|
|
4266
4271
|
getMethodsById: (S) => {
|
|
4267
|
-
const
|
|
4268
|
-
return bn(
|
|
4272
|
+
const j = o.get(S).methods, N = c.get(S).current;
|
|
4273
|
+
return bn(j, N);
|
|
4269
4274
|
},
|
|
4270
|
-
getStaticVar: () => o.get(
|
|
4275
|
+
getStaticVar: () => o.get(g).staticVar,
|
|
4271
4276
|
getStaticVarById: (S) => o.get(S).staticVar,
|
|
4272
4277
|
/** 获取当前节点的事件函数 */
|
|
4273
|
-
callEventMethod: (S,
|
|
4278
|
+
callEventMethod: (S, j) => {
|
|
4274
4279
|
var $, F;
|
|
4275
|
-
const
|
|
4276
|
-
(F =
|
|
4280
|
+
const N = c.get(m).current;
|
|
4281
|
+
(F = N == null ? void 0 : ($ = N.props)[S]) == null || F.call($, j);
|
|
4277
4282
|
},
|
|
4278
4283
|
/** 获取当前 node 的 props */
|
|
4279
4284
|
getProps: () => {
|
|
@@ -4285,69 +4290,69 @@ const yt = (t, e) => function(...r) {
|
|
|
4285
4290
|
return this.processRootContext(y), fr(y, p);
|
|
4286
4291
|
}
|
|
4287
4292
|
injectEngEnv() {
|
|
4288
|
-
const p = {},
|
|
4293
|
+
const p = {}, g = e.value.injectEnvList || [];
|
|
4289
4294
|
if (Array.isArray(e.value.injectEnvList)) {
|
|
4290
4295
|
const m = {
|
|
4291
4296
|
[Ea.COMPONENTS]: r.components
|
|
4292
4297
|
};
|
|
4293
|
-
|
|
4298
|
+
g.reduce((y, b) => (y[b] = m[b], y), p);
|
|
4294
4299
|
}
|
|
4295
4300
|
return p;
|
|
4296
4301
|
}
|
|
4297
4302
|
renderCore() {
|
|
4298
|
-
const { $$context: p, ...
|
|
4303
|
+
const { $$context: p, ...g } = this.props, m = {
|
|
4299
4304
|
key: e.id,
|
|
4300
4305
|
...e.props,
|
|
4301
|
-
...
|
|
4306
|
+
...g
|
|
4302
4307
|
}, y = this.createCurrentNodeCtx();
|
|
4303
4308
|
this.transformMethods({ context: y });
|
|
4304
|
-
let
|
|
4309
|
+
let b = de(m, {
|
|
4305
4310
|
$$context: y,
|
|
4306
4311
|
...l,
|
|
4307
4312
|
nodeModel: e
|
|
4308
4313
|
});
|
|
4309
4314
|
const S = this.injectEngEnv();
|
|
4310
|
-
Object.assign(
|
|
4311
|
-
const
|
|
4312
|
-
|
|
4313
|
-
const
|
|
4314
|
-
|
|
4315
|
-
const { children: $ } =
|
|
4316
|
-
delete
|
|
4315
|
+
Object.assign(b, S);
|
|
4316
|
+
const j = this.processNodeClassName(b.className, y);
|
|
4317
|
+
b.className = j;
|
|
4318
|
+
const N = this.processNodeStyle(y);
|
|
4319
|
+
b.style = N;
|
|
4320
|
+
const { children: $ } = b;
|
|
4321
|
+
delete b.children;
|
|
4317
4322
|
const F = this.processNodeChild($, y);
|
|
4318
|
-
if (
|
|
4323
|
+
if (b.ref = this.targetComponentRef, e.value.eventListener) {
|
|
4319
4324
|
const gt = this.processNodeEventListener(y);
|
|
4320
|
-
|
|
4321
|
-
...
|
|
4325
|
+
b = {
|
|
4326
|
+
...b,
|
|
4322
4327
|
...gt
|
|
4323
4328
|
};
|
|
4324
4329
|
}
|
|
4325
|
-
return this.processNodeConditionAndConfigHook(
|
|
4330
|
+
return this.processNodeConditionAndConfigHook(b, F, y);
|
|
4326
4331
|
}
|
|
4327
4332
|
renderLoop() {
|
|
4328
|
-
const { $$context: p, ...
|
|
4333
|
+
const { $$context: p, ...g } = this.props, m = {
|
|
4329
4334
|
key: e.id,
|
|
4330
4335
|
...e.props,
|
|
4331
|
-
...
|
|
4336
|
+
...g
|
|
4332
4337
|
}, y = this.createCurrentNodeCtx();
|
|
4333
4338
|
this.transformMethods({ context: y });
|
|
4334
|
-
const
|
|
4339
|
+
const b = e.value.loop;
|
|
4335
4340
|
let S = [];
|
|
4336
|
-
if (
|
|
4341
|
+
if (b && b.open) {
|
|
4337
4342
|
this.targetComponentRef.current = [];
|
|
4338
|
-
let
|
|
4339
|
-
if (mt(
|
|
4340
|
-
const
|
|
4341
|
-
|
|
4343
|
+
let j = b.data || [];
|
|
4344
|
+
if (mt(b.data)) {
|
|
4345
|
+
const N = b.data;
|
|
4346
|
+
j = At(N.value, {
|
|
4342
4347
|
nodeContext: y || {},
|
|
4343
4348
|
storeManager: n,
|
|
4344
4349
|
nodeModel: e
|
|
4345
4350
|
}) || [];
|
|
4346
4351
|
}
|
|
4347
|
-
return S =
|
|
4348
|
-
const $ =
|
|
4352
|
+
return S = j.map((...N) => {
|
|
4353
|
+
const $ = N[1], F = [b.forName || "item", b.forIndex || "index"], ht = Po(N, F);
|
|
4349
4354
|
let gt = "loopData";
|
|
4350
|
-
|
|
4355
|
+
b.name && (gt = `${gt}${b.name}`);
|
|
4351
4356
|
const vt = fr(
|
|
4352
4357
|
{
|
|
4353
4358
|
[gt]: ht,
|
|
@@ -4374,8 +4379,8 @@ const yt = (t, e) => function(...r) {
|
|
|
4374
4379
|
const { children: Pa } = B;
|
|
4375
4380
|
delete B.children;
|
|
4376
4381
|
const Ia = this.processNodeChild(Pa, vt);
|
|
4377
|
-
if (B.key = `${B.key}-${$}`, mt(
|
|
4378
|
-
const zt =
|
|
4382
|
+
if (B.key = `${B.key}-${$}`, mt(b.key)) {
|
|
4383
|
+
const zt = b.key, Da = At(zt.value, {
|
|
4379
4384
|
nodeContext: vt || {},
|
|
4380
4385
|
storeManager: n,
|
|
4381
4386
|
nodeModel: e
|
|
@@ -4402,7 +4407,7 @@ const yt = (t, e) => function(...r) {
|
|
|
4402
4407
|
}
|
|
4403
4408
|
return w(h, "__CP_TYPE__", Re), h.displayName = `${e.value.componentName}Dynamic`, h;
|
|
4404
4409
|
};
|
|
4405
|
-
class
|
|
4410
|
+
class Jg {
|
|
4406
4411
|
constructor() {
|
|
4407
4412
|
w(this, "renderMode", "normal");
|
|
4408
4413
|
w(this, "components", {});
|
|
@@ -4432,7 +4437,7 @@ class Wg {
|
|
|
4432
4437
|
getComponent(e) {
|
|
4433
4438
|
var o;
|
|
4434
4439
|
const r = e.value.componentName;
|
|
4435
|
-
let n =
|
|
4440
|
+
let n = Ju(r, this.components);
|
|
4436
4441
|
return Gu(n) || (n = zu(n), this.components[r] = n), this.onGetComponent && (n = (o = this.onGetComponent) == null ? void 0 : o.call(this, n, e)), n;
|
|
4437
4442
|
}
|
|
4438
4443
|
pageRender(e, {
|
|
@@ -4456,7 +4461,7 @@ class Wg {
|
|
|
4456
4461
|
doc: l
|
|
4457
4462
|
}) {
|
|
4458
4463
|
this.renderMode = u, this.components = r, this.onGetRef = n, this.onGetComponent = s, this.onComponentMount = i, this.onComponentDestroy = c, this.processNodeConfigHook = d, this.refManager = o, this.requestAPI = f;
|
|
4459
|
-
const h = e.value.componentsTree,
|
|
4464
|
+
const h = e.value.componentsTree, v = this.getComponent(h), _ = kr(v, e.value.componentsTree, {
|
|
4460
4465
|
storeManager: this.storeManager,
|
|
4461
4466
|
variableManager: this.variableManager,
|
|
4462
4467
|
runtimeComponentCache: this.runtimeComponentCache,
|
|
@@ -4470,16 +4475,16 @@ class Wg {
|
|
|
4470
4475
|
requestAPI: f,
|
|
4471
4476
|
components: this.components,
|
|
4472
4477
|
doc: l
|
|
4473
|
-
}), p = {},
|
|
4474
|
-
return Object.keys(
|
|
4475
|
-
p[m] =
|
|
4476
|
-
}), p.$$context = a, oe(
|
|
4478
|
+
}), p = {}, g = h.props;
|
|
4479
|
+
return Object.keys(g).forEach((m) => {
|
|
4480
|
+
p[m] = g[m].value;
|
|
4481
|
+
}), p.$$context = a, oe(_, p);
|
|
4477
4482
|
}
|
|
4478
4483
|
clear() {
|
|
4479
4484
|
this.runtimeComponentCache.clear(), this.storeManager.destroy();
|
|
4480
4485
|
}
|
|
4481
4486
|
}
|
|
4482
|
-
const Nv = za(new
|
|
4487
|
+
const Nv = za(new Jg()), Wg = [
|
|
4483
4488
|
"a",
|
|
4484
4489
|
"abbr",
|
|
4485
4490
|
"acronym",
|
|
@@ -4634,7 +4639,7 @@ const Nv = za(new Wg()), Jg = [
|
|
|
4634
4639
|
return t.forEach((r) => {
|
|
4635
4640
|
e[r.key] = r.value;
|
|
4636
4641
|
}), e;
|
|
4637
|
-
}, qg =
|
|
4642
|
+
}, qg = Wg.reduce((t, e) => (t[e] = ({ children: r, $$attributes: n = [], ...o }) => {
|
|
4638
4643
|
let a = r;
|
|
4639
4644
|
Array.isArray(r) || (a = [r]);
|
|
4640
4645
|
const s = {
|
|
@@ -5184,7 +5189,7 @@ class xv extends x.Component {
|
|
|
5184
5189
|
w(this, "_NODE_ID", n.id);
|
|
5185
5190
|
w(this, "_UNIQUE_ID", `${n.id}_${et()}`);
|
|
5186
5191
|
w(this, "_STATUS");
|
|
5187
|
-
w(this, "_design_target_component");
|
|
5192
|
+
w(this, "_design_target_component", x.createRef());
|
|
5188
5193
|
w(this, "_dom");
|
|
5189
5194
|
}
|
|
5190
5195
|
componentDidMount() {
|
|
@@ -5197,31 +5202,36 @@ class xv extends x.Component {
|
|
|
5197
5202
|
this._STATUS = "DESTROY", o.instanceManager.remove(n.id, this);
|
|
5198
5203
|
}
|
|
5199
5204
|
getDom() {
|
|
5200
|
-
var h,
|
|
5201
|
-
return ((
|
|
5205
|
+
var h, v;
|
|
5206
|
+
return ((v = (h = n.material) == null ? void 0 : h.value.advanceCustom) == null ? void 0 : v.autoGetDom) ?? !0 ? dv(this) : this._dom;
|
|
5202
5207
|
}
|
|
5203
5208
|
render() {
|
|
5204
|
-
var
|
|
5205
|
-
const { children: l = [], onlyRenderChild: h, ...
|
|
5206
|
-
|
|
5207
|
-
|
|
5208
|
-
|
|
5209
|
-
|
|
5209
|
+
var y, b, S, j;
|
|
5210
|
+
const { children: l = [], onlyRenderChild: h, ...v } = this.props, _ = {
|
|
5211
|
+
...v,
|
|
5212
|
+
ref: (N) => {
|
|
5213
|
+
this._design_target_component.current = N;
|
|
5214
|
+
}
|
|
5215
|
+
};
|
|
5216
|
+
let p = l;
|
|
5217
|
+
if (ot(l) || (p = [l]), !!!p.filter(Boolean).length && (n.isContainer() || n.value.componentName === rt.ROOT_CONTAINER)) {
|
|
5218
|
+
const N = (b = (y = n.material) == null ? void 0 : y.value.advanceCustom) == null ? void 0 : b.dropPlaceholder;
|
|
5219
|
+
p.push(
|
|
5210
5220
|
x.createElement(N || o.dropPlaceholder, {
|
|
5211
5221
|
node: n
|
|
5212
5222
|
})
|
|
5213
5223
|
);
|
|
5214
5224
|
}
|
|
5215
|
-
return h ?
|
|
5225
|
+
return h ? p : ((j = (S = n.material) == null ? void 0 : S.value.advanceCustom) == null ? void 0 : j.autoGetDom) ?? !0 ? x.createElement(a, _, ...p) : x.createElement(
|
|
5216
5226
|
a,
|
|
5217
5227
|
{
|
|
5218
|
-
...
|
|
5228
|
+
..._,
|
|
5219
5229
|
// 注入到组件中, 配合设计器使用
|
|
5220
|
-
$SET_DOM: (
|
|
5221
|
-
this._dom =
|
|
5230
|
+
$SET_DOM: ($) => {
|
|
5231
|
+
this._dom = $;
|
|
5222
5232
|
}
|
|
5223
5233
|
},
|
|
5224
|
-
...
|
|
5234
|
+
...p
|
|
5225
5235
|
);
|
|
5226
5236
|
}
|
|
5227
5237
|
}
|
|
@@ -5301,12 +5311,12 @@ class xv extends x.Component {
|
|
|
5301
5311
|
* @returns
|
|
5302
5312
|
*/
|
|
5303
5313
|
processNodeConfigHook: (s, i) => {
|
|
5304
|
-
var
|
|
5314
|
+
var v, _;
|
|
5305
5315
|
if (i.nodeType !== "NODE")
|
|
5306
5316
|
return s;
|
|
5307
5317
|
const { props: c, condition: u } = s;
|
|
5308
5318
|
let d = { ...c };
|
|
5309
|
-
const f = ((
|
|
5319
|
+
const f = ((v = i.value.configure) == null ? void 0 : v.devState) || {}, l = (_ = i.material) == null ? void 0 : _.value.fixedProps;
|
|
5310
5320
|
if (l !== void 0) {
|
|
5311
5321
|
if (Ft(l))
|
|
5312
5322
|
d = {
|
|
@@ -5375,82 +5385,82 @@ function vv() {
|
|
|
5375
5385
|
}, n = {}, o = {}, a = {};
|
|
5376
5386
|
function s(l, h) {
|
|
5377
5387
|
l = l.push ? l : [l];
|
|
5378
|
-
var
|
|
5379
|
-
for (
|
|
5380
|
-
|
|
5381
|
-
};
|
|
5382
|
-
if (m = l[
|
|
5383
|
-
|
|
5388
|
+
var v = [], _ = l.length, p = _, g, m, y, b;
|
|
5389
|
+
for (g = function(S, j) {
|
|
5390
|
+
j.length && v.push(S), p--, p || h(v);
|
|
5391
|
+
}; _--; ) {
|
|
5392
|
+
if (m = l[_], y = o[m], y) {
|
|
5393
|
+
g(m, y);
|
|
5384
5394
|
continue;
|
|
5385
5395
|
}
|
|
5386
|
-
|
|
5396
|
+
b = a[m] = a[m] || [], b.push(g);
|
|
5387
5397
|
}
|
|
5388
5398
|
}
|
|
5389
5399
|
function i(l, h) {
|
|
5390
5400
|
if (l) {
|
|
5391
|
-
var
|
|
5392
|
-
if (o[l] = h, !!
|
|
5393
|
-
for (;
|
|
5394
|
-
|
|
5401
|
+
var v = a[l];
|
|
5402
|
+
if (o[l] = h, !!v)
|
|
5403
|
+
for (; v.length; )
|
|
5404
|
+
v[0](l, h), v.splice(0, 1);
|
|
5395
5405
|
}
|
|
5396
5406
|
}
|
|
5397
5407
|
function c(l, h) {
|
|
5398
5408
|
l.call && (l = { success: l }), h.length ? (l.error || r)(h) : (l.success || r)(l);
|
|
5399
5409
|
}
|
|
5400
|
-
function u(l, h,
|
|
5401
|
-
var p = document,
|
|
5402
|
-
if (
|
|
5403
|
-
$ = p.createElement("link"), $.rel = "stylesheet", $.href = S,
|
|
5404
|
-
else if (/(^img!|\.(png|gif|jpg|svg|webp)$)/.test(
|
|
5410
|
+
function u(l, h, v, _) {
|
|
5411
|
+
var p = document, g = v.async, m = (v.numRetries || 0) + 1, y = v.before || r, b = l.replace(/[\?|#].*$/, ""), S = l.replace(/^(css|img|module|nomodule)!/, ""), j, N, $;
|
|
5412
|
+
if (_ = _ || 0, /(^css!|\.css$)/.test(b))
|
|
5413
|
+
$ = p.createElement("link"), $.rel = "stylesheet", $.href = S, j = "hideFocus" in $, j && $.relList && (j = 0, $.rel = "preload", $.as = "style");
|
|
5414
|
+
else if (/(^img!|\.(png|gif|jpg|svg|webp)$)/.test(b))
|
|
5405
5415
|
$ = p.createElement("img"), $.src = S;
|
|
5406
|
-
else if ($ = p.createElement("script"), $.src = S, $.async =
|
|
5407
|
-
if (!
|
|
5416
|
+
else if ($ = p.createElement("script"), $.src = S, $.async = g === void 0 ? !0 : g, N = "noModule" in $, /^module!/.test(b)) {
|
|
5417
|
+
if (!N) return h(l, "l");
|
|
5408
5418
|
$.type = "module";
|
|
5409
|
-
} else if (/^nomodule!/.test(
|
|
5419
|
+
} else if (/^nomodule!/.test(b) && N) return h(l, "l");
|
|
5410
5420
|
$.onload = $.onerror = $.onbeforeload = function(F) {
|
|
5411
5421
|
var ht = F.type[0];
|
|
5412
|
-
if (
|
|
5422
|
+
if (j)
|
|
5413
5423
|
try {
|
|
5414
5424
|
$.sheet.cssText.length || (ht = "e");
|
|
5415
5425
|
} catch (gt) {
|
|
5416
5426
|
gt.code != 18 && (ht = "e");
|
|
5417
5427
|
}
|
|
5418
5428
|
if (ht == "e") {
|
|
5419
|
-
if (
|
|
5420
|
-
return u(l, h,
|
|
5429
|
+
if (_ += 1, _ < m)
|
|
5430
|
+
return u(l, h, v, _);
|
|
5421
5431
|
} else if ($.rel == "preload" && $.as == "style")
|
|
5422
5432
|
return $.rel = "stylesheet";
|
|
5423
5433
|
h(l, ht, F.defaultPrevented);
|
|
5424
5434
|
}, y(l, $) !== !1 && p.head.appendChild($);
|
|
5425
5435
|
}
|
|
5426
|
-
function d(l, h,
|
|
5436
|
+
function d(l, h, v) {
|
|
5427
5437
|
l = l.push ? l : [l];
|
|
5428
|
-
var
|
|
5429
|
-
for (m = function(
|
|
5430
|
-
if (S == "e" &&
|
|
5431
|
-
if (
|
|
5438
|
+
var _ = l.length, p = _, g = [], m, y;
|
|
5439
|
+
for (m = function(b, S, j) {
|
|
5440
|
+
if (S == "e" && g.push(b), S == "b")
|
|
5441
|
+
if (j) g.push(b);
|
|
5432
5442
|
else return;
|
|
5433
|
-
|
|
5434
|
-
}, y = 0; y < p; y++) u(l[y], m,
|
|
5443
|
+
_--, _ || h(g);
|
|
5444
|
+
}, y = 0; y < p; y++) u(l[y], m, v);
|
|
5435
5445
|
}
|
|
5436
|
-
function f(l, h,
|
|
5437
|
-
var
|
|
5438
|
-
if (h && h.trim && (
|
|
5439
|
-
if (
|
|
5446
|
+
function f(l, h, v) {
|
|
5447
|
+
var _, p;
|
|
5448
|
+
if (h && h.trim && (_ = h), p = (_ ? v : h) || {}, _) {
|
|
5449
|
+
if (_ in n)
|
|
5440
5450
|
throw "LoadJS";
|
|
5441
|
-
n[
|
|
5451
|
+
n[_] = !0;
|
|
5442
5452
|
}
|
|
5443
|
-
function
|
|
5444
|
-
d(l, function(
|
|
5445
|
-
c(p,
|
|
5453
|
+
function g(m, y) {
|
|
5454
|
+
d(l, function(b) {
|
|
5455
|
+
c(p, b), m && c({ success: m, error: y }, b), i(_, b);
|
|
5446
5456
|
}, p);
|
|
5447
5457
|
}
|
|
5448
|
-
if (p.returnPromise) return new Promise(
|
|
5449
|
-
|
|
5458
|
+
if (p.returnPromise) return new Promise(g);
|
|
5459
|
+
g();
|
|
5450
5460
|
}
|
|
5451
|
-
return f.ready = function(h,
|
|
5452
|
-
return s(h, function(
|
|
5453
|
-
c(
|
|
5461
|
+
return f.ready = function(h, v) {
|
|
5462
|
+
return s(h, function(_) {
|
|
5463
|
+
c(v, _);
|
|
5454
5464
|
}), f;
|
|
5455
5465
|
}, f.done = function(h) {
|
|
5456
5466
|
i(h, []);
|
|
@@ -5511,7 +5521,7 @@ export {
|
|
|
5511
5521
|
pv as ComponentInstanceManager,
|
|
5512
5522
|
Re as DYNAMIC_COMPONENT_TYPE,
|
|
5513
5523
|
hv as DefaultDropPlaceholder,
|
|
5514
|
-
|
|
5524
|
+
Jg as DefineReactAdapter,
|
|
5515
5525
|
xv as DesignRender,
|
|
5516
5526
|
Ug as INNER_EVENT_LIST,
|
|
5517
5527
|
Vg as InnerPropList,
|
|
@@ -5524,7 +5534,7 @@ export {
|
|
|
5524
5534
|
Ev as collectVariable,
|
|
5525
5535
|
zu as compWrapper,
|
|
5526
5536
|
se as convertCodeStringToFunction,
|
|
5527
|
-
|
|
5537
|
+
Ju as findComponentByChainRefer,
|
|
5528
5538
|
wv as flatObject,
|
|
5529
5539
|
ku as formatSourceStylePropertyName,
|
|
5530
5540
|
za as getAdapter,
|