@chamn/render 0.3.15 → 0.3.17
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/core/adapter.d.ts +1 -1
- package/dist/index.cjs +9 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +582 -583
- package/dist/index.js.map +1 -1
- package/dist/index.umd.js +8 -8
- package/dist/index.umd.js.map +1 -1
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -18,11 +18,11 @@ const _a = (t) => () => {
|
|
|
18
18
|
"errorCatch",
|
|
19
19
|
"requestAPI",
|
|
20
20
|
"clear"
|
|
21
|
-
],
|
|
21
|
+
], Oa = (t) => [...Mr, ...Sa].reduce((r, n) => {
|
|
22
22
|
var o;
|
|
23
23
|
return t != null && t[n] ? r[n] = (o = t[n]) == null ? void 0 : o.bind(t) : Mr.includes(n) && (r[n] = _a), r;
|
|
24
24
|
}, {});
|
|
25
|
-
var kn = typeof global == "object" && global && global.Object === Object && global,
|
|
25
|
+
var kn = typeof global == "object" && global && global.Object === Object && global, Ca = typeof self == "object" && self && self.Object === Object && self, xt = kn || Ca || Function("return this")(), Ot = xt.Symbol, Un = Object.prototype, ja = Un.hasOwnProperty, wa = Un.toString, Vt = Ot ? Ot.toStringTag : void 0;
|
|
26
26
|
function Ea(t) {
|
|
27
27
|
var e = ja.call(t, Vt), r = t[Vt];
|
|
28
28
|
try {
|
|
@@ -53,18 +53,18 @@ function Ia(t, e) {
|
|
|
53
53
|
o[r] = e(t[r], r, t);
|
|
54
54
|
return o;
|
|
55
55
|
}
|
|
56
|
-
var
|
|
56
|
+
var Ct = Array.isArray, Pa = 1 / 0, Pr = Ot ? Ot.prototype : void 0, Dr = Pr ? Pr.toString : void 0;
|
|
57
57
|
function Bn(t) {
|
|
58
58
|
if (typeof t == "string")
|
|
59
59
|
return t;
|
|
60
|
-
if (
|
|
60
|
+
if (Ct(t))
|
|
61
61
|
return Ia(t, Bn) + "";
|
|
62
62
|
if (Ma(t))
|
|
63
63
|
return Dr ? Dr.call(t) : "";
|
|
64
64
|
var e = t + "";
|
|
65
65
|
return e == "0" && 1 / t == -Pa ? "-0" : e;
|
|
66
66
|
}
|
|
67
|
-
function
|
|
67
|
+
function ht(t) {
|
|
68
68
|
var e = typeof t;
|
|
69
69
|
return t != null && (e == "object" || e == "function");
|
|
70
70
|
}
|
|
@@ -73,7 +73,7 @@ function zn(t) {
|
|
|
73
73
|
}
|
|
74
74
|
var Da = "[object AsyncFunction]", La = "[object Function]", Fa = "[object GeneratorFunction]", Va = "[object Proxy]";
|
|
75
75
|
function tr(t) {
|
|
76
|
-
if (!
|
|
76
|
+
if (!ht(t))
|
|
77
77
|
return !1;
|
|
78
78
|
var e = te(t);
|
|
79
79
|
return e == La || e == Fa || e == Da || e == Va;
|
|
@@ -103,7 +103,7 @@ var Ga = /[\\^$.*+?()[\]{}|]/g, Ha = /^\[object .+?Constructor\]$/, Ja = Functio
|
|
|
103
103
|
"^" + Wa.call(Qa).replace(Ga, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
104
104
|
);
|
|
105
105
|
function Ka(t) {
|
|
106
|
-
if (!
|
|
106
|
+
if (!ht(t) || ka(t))
|
|
107
107
|
return !1;
|
|
108
108
|
var e = tr(t) ? Ya : Ha;
|
|
109
109
|
return e.test(za(t));
|
|
@@ -119,7 +119,7 @@ var Fr = Object.create, Za = /* @__PURE__ */ function() {
|
|
|
119
119
|
function t() {
|
|
120
120
|
}
|
|
121
121
|
return function(e) {
|
|
122
|
-
if (!
|
|
122
|
+
if (!ht(e))
|
|
123
123
|
return {};
|
|
124
124
|
if (Fr)
|
|
125
125
|
return Fr(e);
|
|
@@ -230,7 +230,7 @@ function nr(t) {
|
|
|
230
230
|
return t != null && Hn(t.length) && !tr(t);
|
|
231
231
|
}
|
|
232
232
|
function ys(t, e, r) {
|
|
233
|
-
if (!
|
|
233
|
+
if (!ht(r))
|
|
234
234
|
return !1;
|
|
235
235
|
var n = typeof e;
|
|
236
236
|
return (n == "number" ? nr(r) && Gn(e, r.length) : n == "string" && e in r) ? de(r[e], t) : !1;
|
|
@@ -255,14 +255,14 @@ function Ss(t, e) {
|
|
|
255
255
|
n[r] = e(r);
|
|
256
256
|
return n;
|
|
257
257
|
}
|
|
258
|
-
var
|
|
258
|
+
var Os = "[object Arguments]";
|
|
259
259
|
function kr(t) {
|
|
260
|
-
return Rt(t) && te(t) ==
|
|
260
|
+
return Rt(t) && te(t) == Os;
|
|
261
261
|
}
|
|
262
|
-
var qn = Object.prototype,
|
|
262
|
+
var qn = Object.prototype, Cs = qn.hasOwnProperty, js = qn.propertyIsEnumerable, Pe = kr(/* @__PURE__ */ function() {
|
|
263
263
|
return arguments;
|
|
264
264
|
}()) ? kr : function(t) {
|
|
265
|
-
return Rt(t) &&
|
|
265
|
+
return Rt(t) && Cs.call(t, "callee") && !js.call(t, "callee");
|
|
266
266
|
};
|
|
267
267
|
function ws() {
|
|
268
268
|
return !1;
|
|
@@ -286,7 +286,7 @@ var Yn = typeof exports == "object" && exports && !exports.nodeType && exports,
|
|
|
286
286
|
}
|
|
287
287
|
}(), Gr = zr && zr.isTypedArray, Kn = Gr ? Zs(Gr) : Xs;
|
|
288
288
|
function ei(t, e) {
|
|
289
|
-
var r =
|
|
289
|
+
var r = Ct(t), n = !r && Pe(t), o = !r && !n && Qn(t), a = !r && !n && !o && Kn(t), s = r || n || o || a, i = s ? Ss(t.length, String) : [], c = i.length;
|
|
290
290
|
for (var u in t)
|
|
291
291
|
s && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
292
292
|
(u == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
@@ -309,7 +309,7 @@ function ni(t) {
|
|
|
309
309
|
}
|
|
310
310
|
var oi = Object.prototype, ai = oi.hasOwnProperty;
|
|
311
311
|
function si(t) {
|
|
312
|
-
if (!
|
|
312
|
+
if (!ht(t))
|
|
313
313
|
return ni(t);
|
|
314
314
|
var e = Jn(t), r = [];
|
|
315
315
|
for (var n in t)
|
|
@@ -375,11 +375,11 @@ function Si(t) {
|
|
|
375
375
|
var n = e.length - 1;
|
|
376
376
|
return r == n ? e.pop() : _i.call(e, r, 1), --this.size, !0;
|
|
377
377
|
}
|
|
378
|
-
function
|
|
378
|
+
function Oi(t) {
|
|
379
379
|
var e = this.__data__, r = pe(e, t);
|
|
380
380
|
return r < 0 ? void 0 : e[r][1];
|
|
381
381
|
}
|
|
382
|
-
function
|
|
382
|
+
function Ci(t) {
|
|
383
383
|
return pe(this.__data__, t) > -1;
|
|
384
384
|
}
|
|
385
385
|
function ji(t, e) {
|
|
@@ -395,8 +395,8 @@ function et(t) {
|
|
|
395
395
|
}
|
|
396
396
|
et.prototype.clear = yi;
|
|
397
397
|
et.prototype.delete = Si;
|
|
398
|
-
et.prototype.get =
|
|
399
|
-
et.prototype.has =
|
|
398
|
+
et.prototype.get = Oi;
|
|
399
|
+
et.prototype.has = Ci;
|
|
400
400
|
et.prototype.set = ji;
|
|
401
401
|
var Zn = er(xt, "Map");
|
|
402
402
|
function wi() {
|
|
@@ -549,11 +549,11 @@ function Sc(t) {
|
|
|
549
549
|
return e;
|
|
550
550
|
};
|
|
551
551
|
}
|
|
552
|
-
var
|
|
552
|
+
var Oc = Sc();
|
|
553
553
|
function Fe(t, e, r) {
|
|
554
554
|
(r !== void 0 && !de(t[e], r) || r === void 0 && !(e in t)) && rr(t, e, r);
|
|
555
555
|
}
|
|
556
|
-
function
|
|
556
|
+
function Cc(t) {
|
|
557
557
|
return Rt(t) && nr(t);
|
|
558
558
|
}
|
|
559
559
|
function Ve(t, e) {
|
|
@@ -569,16 +569,16 @@ function wc(t, e, r, n, o, a, s) {
|
|
|
569
569
|
Fe(t, r, u);
|
|
570
570
|
return;
|
|
571
571
|
}
|
|
572
|
-
var
|
|
573
|
-
if (
|
|
574
|
-
var d =
|
|
575
|
-
|
|
572
|
+
var f = a ? a(i, c, r + "", t, e, s) : void 0, l = f === void 0;
|
|
573
|
+
if (l) {
|
|
574
|
+
var d = Ct(c), p = !d && Qn(c), b = !d && !p && Kn(c);
|
|
575
|
+
f = c, d || p || b ? Ct(i) ? f = i : Cc(i) ? f = es(i) : p ? (l = !1, f = vc(c)) : b ? (l = !1, f = bc(c)) : f = [] : At(c) || Pe(c) ? (f = i, Pe(i) ? f = jc(i) : (!ht(i) || tr(i)) && (f = _c(c))) : l = !1;
|
|
576
576
|
}
|
|
577
|
-
|
|
577
|
+
l && (s.set(c, f), o(f, c, n, a, s), s.delete(c)), Fe(t, r, f);
|
|
578
578
|
}
|
|
579
579
|
function fo(t, e, r, n, o) {
|
|
580
|
-
t !== e &&
|
|
581
|
-
if (o || (o = new Mt()),
|
|
580
|
+
t !== e && Oc(e, function(a, s) {
|
|
581
|
+
if (o || (o = new Mt()), ht(a))
|
|
582
582
|
wc(t, e, s, r, fo, n, o);
|
|
583
583
|
else {
|
|
584
584
|
var i = n ? n(Ve(t, s), a, s + "", t, e, o) : void 0;
|
|
@@ -609,7 +609,7 @@ function xc(t) {
|
|
|
609
609
|
}
|
|
610
610
|
return e.displayName = t.displayName, e;
|
|
611
611
|
}
|
|
612
|
-
const
|
|
612
|
+
const bt = (t, e) => {
|
|
613
613
|
const r = (n) => {
|
|
614
614
|
const a = `
|
|
615
615
|
${Object.keys(e).map((s) => `const ${s} = $$context['${s}'];`).join(`
|
|
@@ -636,10 +636,10 @@ const _t = (t, e) => {
|
|
|
636
636
|
} = t, i = r || "anonymous";
|
|
637
637
|
return {
|
|
638
638
|
[i]: function(...u) {
|
|
639
|
-
let
|
|
639
|
+
let f;
|
|
640
640
|
const d = Object.keys(s || {}).map((p) => `var ${p}=$$actionVariableSpace[${JSON.stringify(p)}];`);
|
|
641
641
|
try {
|
|
642
|
-
return
|
|
642
|
+
return f = `
|
|
643
643
|
var $$$__args__$$$ = Array.from(arguments);
|
|
644
644
|
function $$_run_$$() {
|
|
645
645
|
var extraParams = $$$__args__$$$.pop();
|
|
@@ -656,9 +656,9 @@ const _t = (t, e) => {
|
|
|
656
656
|
return $$_f_$$.apply($$_f_$$, $$$__args__$$$);
|
|
657
657
|
}
|
|
658
658
|
return $$_run_$$();
|
|
659
|
-
`, new Function(
|
|
659
|
+
`, new Function(f)(...u, { $$context: n, storeManager: o, $$response: a, actionVariableSpace: s });
|
|
660
660
|
} catch (p) {
|
|
661
|
-
console.log(
|
|
661
|
+
console.log(f), console.warn(p);
|
|
662
662
|
}
|
|
663
663
|
}
|
|
664
664
|
}[i];
|
|
@@ -725,13 +725,13 @@ const _t = (t, e) => {
|
|
|
725
725
|
return r.__proto__ = e, r;
|
|
726
726
|
}, Mc = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_CJS_TRACE: "true" }, Yr = (t) => {
|
|
727
727
|
let e;
|
|
728
|
-
const r = /* @__PURE__ */ new Set(), n = (
|
|
729
|
-
const d = typeof
|
|
728
|
+
const r = /* @__PURE__ */ new Set(), n = (f, l) => {
|
|
729
|
+
const d = typeof f == "function" ? f(e) : f;
|
|
730
730
|
if (!Object.is(d, e)) {
|
|
731
731
|
const p = e;
|
|
732
|
-
e =
|
|
732
|
+
e = l ?? (typeof d != "object" || d === null) ? d : Object.assign({}, e, d), r.forEach((b) => b(e, p));
|
|
733
733
|
}
|
|
734
|
-
}, o = () => e, c = { setState: n, getState: o, getInitialState: () => u, subscribe: (
|
|
734
|
+
}, o = () => e, c = { setState: n, getState: o, getInitialState: () => u, subscribe: (f) => (r.add(f), () => r.delete(f)), destroy: () => {
|
|
735
735
|
(Mc ? "production" : void 0) !== "production" && console.warn(
|
|
736
736
|
"[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."
|
|
737
737
|
), r.clear();
|
|
@@ -845,7 +845,7 @@ function Hc(t) {
|
|
|
845
845
|
return Gc.call(t);
|
|
846
846
|
}
|
|
847
847
|
var Jc = "[object Null]", qc = "[object Undefined]", Kr = G ? G.toStringTag : void 0;
|
|
848
|
-
function
|
|
848
|
+
function mt(t) {
|
|
849
849
|
return t == null ? t === void 0 ? qc : Jc : Kr && Kr in Object(t) ? Bc(t) : Hc(t);
|
|
850
850
|
}
|
|
851
851
|
function K(t) {
|
|
@@ -853,7 +853,7 @@ function K(t) {
|
|
|
853
853
|
}
|
|
854
854
|
var Wc = "[object Symbol]";
|
|
855
855
|
function or(t) {
|
|
856
|
-
return typeof t == "symbol" || K(t) &&
|
|
856
|
+
return typeof t == "symbol" || K(t) && mt(t) == Wc;
|
|
857
857
|
}
|
|
858
858
|
function ar(t, e) {
|
|
859
859
|
for (var r = -1, n = t == null ? 0 : t.length, o = Array(n); ++r < n; )
|
|
@@ -882,7 +882,7 @@ var Yc = "[object AsyncFunction]", Kc = "[object Function]", Xc = "[object Gener
|
|
|
882
882
|
function ir(t) {
|
|
883
883
|
if (!Q(t))
|
|
884
884
|
return !1;
|
|
885
|
-
var e =
|
|
885
|
+
var e = mt(t);
|
|
886
886
|
return e == Kc || e == Xc || e == Yc || e == Zc;
|
|
887
887
|
}
|
|
888
888
|
var Ne = X["__core-js_shared__"], tn = function() {
|
|
@@ -893,7 +893,7 @@ function tu(t) {
|
|
|
893
893
|
return !!tn && tn in t;
|
|
894
894
|
}
|
|
895
895
|
var eu = Function.prototype, ru = eu.toString;
|
|
896
|
-
function
|
|
896
|
+
function gt(t) {
|
|
897
897
|
if (t != null) {
|
|
898
898
|
try {
|
|
899
899
|
return ru.call(t);
|
|
@@ -913,16 +913,16 @@ function lu(t) {
|
|
|
913
913
|
if (!Q(t) || tu(t))
|
|
914
914
|
return !1;
|
|
915
915
|
var e = ir(t) ? uu : ou;
|
|
916
|
-
return e.test(
|
|
916
|
+
return e.test(gt(t));
|
|
917
917
|
}
|
|
918
918
|
function fu(t, e) {
|
|
919
919
|
return t == null ? void 0 : t[e];
|
|
920
920
|
}
|
|
921
|
-
function
|
|
921
|
+
function vt(t, e) {
|
|
922
922
|
var r = fu(t, e);
|
|
923
923
|
return lu(r) ? r : void 0;
|
|
924
924
|
}
|
|
925
|
-
var ke =
|
|
925
|
+
var ke = vt(X, "WeakMap"), en = Object.create, du = /* @__PURE__ */ function() {
|
|
926
926
|
function t() {
|
|
927
927
|
}
|
|
928
928
|
return function(e) {
|
|
@@ -976,7 +976,7 @@ function bu(t) {
|
|
|
976
976
|
}
|
|
977
977
|
var ce = function() {
|
|
978
978
|
try {
|
|
979
|
-
var t =
|
|
979
|
+
var t = vt(Object, "defineProperty");
|
|
980
980
|
return t({}, "", {}), t;
|
|
981
981
|
} catch {
|
|
982
982
|
}
|
|
@@ -993,13 +993,13 @@ function Su(t, e) {
|
|
|
993
993
|
;
|
|
994
994
|
return t;
|
|
995
995
|
}
|
|
996
|
-
function
|
|
996
|
+
function Ou(t, e, r, n) {
|
|
997
997
|
for (var o = t.length, a = r + -1; ++a < o; )
|
|
998
998
|
if (e(t[a], a, t))
|
|
999
999
|
return a;
|
|
1000
1000
|
return -1;
|
|
1001
1001
|
}
|
|
1002
|
-
function
|
|
1002
|
+
function Cu(t) {
|
|
1003
1003
|
return t !== t;
|
|
1004
1004
|
}
|
|
1005
1005
|
function ju(t, e, r) {
|
|
@@ -1009,7 +1009,7 @@ function ju(t, e, r) {
|
|
|
1009
1009
|
return -1;
|
|
1010
1010
|
}
|
|
1011
1011
|
function wu(t, e, r) {
|
|
1012
|
-
return e === e ? ju(t, e, r) :
|
|
1012
|
+
return e === e ? ju(t, e, r) : Ou(t, Cu, r);
|
|
1013
1013
|
}
|
|
1014
1014
|
function Eu(t, e) {
|
|
1015
1015
|
var r = t == null ? 0 : t.length;
|
|
@@ -1056,7 +1056,7 @@ function So(t, e, r) {
|
|
|
1056
1056
|
return i[e] = r(s), pu(t, this, i);
|
|
1057
1057
|
};
|
|
1058
1058
|
}
|
|
1059
|
-
function
|
|
1059
|
+
function Oo(t, e) {
|
|
1060
1060
|
return _o(So(t, e, sr), t + "");
|
|
1061
1061
|
}
|
|
1062
1062
|
var Tu = 9007199254740991;
|
|
@@ -1073,7 +1073,7 @@ function Au(t, e, r) {
|
|
|
1073
1073
|
return (n == "number" ? ve(r) && ge(e, r.length) : n == "string" && e in r) ? ee(r[e], t) : !1;
|
|
1074
1074
|
}
|
|
1075
1075
|
function Mu(t) {
|
|
1076
|
-
return
|
|
1076
|
+
return Oo(function(e, r) {
|
|
1077
1077
|
var n = -1, o = r.length, a = o > 1 ? r[o - 1] : void 0, s = o > 2 ? r[2] : void 0;
|
|
1078
1078
|
for (a = t.length > 3 && typeof a == "function" ? (o--, a) : void 0, s && Au(r[0], r[1], s) && (a = o < 3 ? void 0 : a, o = 1), e = Object(e); ++n < o; ) {
|
|
1079
1079
|
var i = r[n];
|
|
@@ -1094,9 +1094,9 @@ function Pu(t, e) {
|
|
|
1094
1094
|
}
|
|
1095
1095
|
var Du = "[object Arguments]";
|
|
1096
1096
|
function nn(t) {
|
|
1097
|
-
return K(t) &&
|
|
1097
|
+
return K(t) && mt(t) == Du;
|
|
1098
1098
|
}
|
|
1099
|
-
var
|
|
1099
|
+
var Co = Object.prototype, Lu = Co.hasOwnProperty, Fu = Co.propertyIsEnumerable, qt = nn(/* @__PURE__ */ function() {
|
|
1100
1100
|
return arguments;
|
|
1101
1101
|
}()) ? nn : function(t) {
|
|
1102
1102
|
return K(t) && Lu.call(t, "callee") && !Fu.call(t, "callee");
|
|
@@ -1108,20 +1108,20 @@ var jo = typeof exports == "object" && exports && !exports.nodeType && exports,
|
|
|
1108
1108
|
I[nl] = I[ol] = I[al] = I[sl] = I[il] = I[cl] = I[ul] = I[ll] = I[fl] = !0;
|
|
1109
1109
|
I[Bu] = I[zu] = I[el] = I[Gu] = I[rl] = I[Hu] = I[Ju] = I[qu] = I[Wu] = I[Qu] = I[Yu] = I[Ku] = I[Xu] = I[Zu] = I[tl] = !1;
|
|
1110
1110
|
function dl(t) {
|
|
1111
|
-
return K(t) && lr(t.length) && !!I[
|
|
1111
|
+
return K(t) && lr(t.length) && !!I[mt(t)];
|
|
1112
1112
|
}
|
|
1113
1113
|
function dr(t) {
|
|
1114
1114
|
return function(e) {
|
|
1115
1115
|
return t(e);
|
|
1116
1116
|
};
|
|
1117
1117
|
}
|
|
1118
|
-
var wo = typeof exports == "object" && exports && !exports.nodeType && exports, zt = wo && typeof module == "object" && module && !module.nodeType && module, pl = zt && zt.exports === wo, $e = pl && go.process,
|
|
1118
|
+
var wo = typeof exports == "object" && exports && !exports.nodeType && exports, zt = wo && typeof module == "object" && module && !module.nodeType && module, pl = zt && zt.exports === wo, $e = pl && go.process, jt = function() {
|
|
1119
1119
|
try {
|
|
1120
1120
|
var t = zt && zt.require && zt.require("util").types;
|
|
1121
1121
|
return t || $e && $e.binding && $e.binding("util");
|
|
1122
1122
|
} catch {
|
|
1123
1123
|
}
|
|
1124
|
-
}(), sn =
|
|
1124
|
+
}(), sn = jt && jt.isTypedArray, pr = sn ? dr(sn) : dl, hl = Object.prototype, ml = hl.hasOwnProperty;
|
|
1125
1125
|
function Eo(t, e) {
|
|
1126
1126
|
var r = L(t), n = !r && qt(t), o = !r && !n && Wt(t), a = !r && !n && !o && pr(t), s = r || n || o || a, i = s ? Pu(t.length, String) : [], c = i.length;
|
|
1127
1127
|
for (var u in t)
|
|
@@ -1156,17 +1156,17 @@ function _l(t) {
|
|
|
1156
1156
|
e.push(r);
|
|
1157
1157
|
return e;
|
|
1158
1158
|
}
|
|
1159
|
-
var Sl = Object.prototype,
|
|
1160
|
-
function
|
|
1159
|
+
var Sl = Object.prototype, Ol = Sl.hasOwnProperty;
|
|
1160
|
+
function Cl(t) {
|
|
1161
1161
|
if (!Q(t))
|
|
1162
1162
|
return _l(t);
|
|
1163
1163
|
var e = fr(t), r = [];
|
|
1164
1164
|
for (var n in t)
|
|
1165
|
-
n == "constructor" && (e || !
|
|
1165
|
+
n == "constructor" && (e || !Ol.call(t, n)) || r.push(n);
|
|
1166
1166
|
return r;
|
|
1167
1167
|
}
|
|
1168
1168
|
function re(t) {
|
|
1169
|
-
return ve(t) ? Eo(t, !0) :
|
|
1169
|
+
return ve(t) ? Eo(t, !0) : Cl(t);
|
|
1170
1170
|
}
|
|
1171
1171
|
var jl = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, wl = /^\w*$/;
|
|
1172
1172
|
function hr(t, e) {
|
|
@@ -1175,7 +1175,7 @@ function hr(t, e) {
|
|
|
1175
1175
|
var r = typeof t;
|
|
1176
1176
|
return r == "number" || r == "symbol" || r == "boolean" || t == null || or(t) ? !0 : wl.test(t) || !jl.test(t) || e != null && t in Object(e);
|
|
1177
1177
|
}
|
|
1178
|
-
var Qt =
|
|
1178
|
+
var Qt = vt(Object, "create");
|
|
1179
1179
|
function El() {
|
|
1180
1180
|
this.__data__ = Qt ? Qt(null) : {}, this.size = 0;
|
|
1181
1181
|
}
|
|
@@ -1254,7 +1254,7 @@ rt.prototype.delete = kl;
|
|
|
1254
1254
|
rt.prototype.get = Ul;
|
|
1255
1255
|
rt.prototype.has = Bl;
|
|
1256
1256
|
rt.prototype.set = zl;
|
|
1257
|
-
var Yt =
|
|
1257
|
+
var Yt = vt(X, "Map");
|
|
1258
1258
|
function Gl() {
|
|
1259
1259
|
this.size = 0, this.__data__ = {
|
|
1260
1260
|
hash: new dt(),
|
|
@@ -1372,7 +1372,7 @@ function sf(t) {
|
|
|
1372
1372
|
}
|
|
1373
1373
|
var vr = No(Object.getPrototypeOf, Object), cf = "[object Object]", uf = Function.prototype, lf = Object.prototype, Ro = uf.toString, ff = lf.hasOwnProperty, df = Ro.call(Object);
|
|
1374
1374
|
function U(t) {
|
|
1375
|
-
if (!K(t) ||
|
|
1375
|
+
if (!K(t) || mt(t) != cf)
|
|
1376
1376
|
return !1;
|
|
1377
1377
|
var e = vr(t);
|
|
1378
1378
|
if (e === null)
|
|
@@ -1426,14 +1426,14 @@ function _f(t, e) {
|
|
|
1426
1426
|
function Sf(t, e) {
|
|
1427
1427
|
return t && It(e, re(e), t);
|
|
1428
1428
|
}
|
|
1429
|
-
var To = typeof exports == "object" && exports && !exports.nodeType && exports, un = To && typeof module == "object" && module && !module.nodeType && module,
|
|
1429
|
+
var To = typeof exports == "object" && exports && !exports.nodeType && exports, un = To && typeof module == "object" && module && !module.nodeType && module, Of = un && un.exports === To, ln = Of ? X.Buffer : void 0, fn = ln ? ln.allocUnsafe : void 0;
|
|
1430
1430
|
function Ao(t, e) {
|
|
1431
1431
|
if (e)
|
|
1432
1432
|
return t.slice();
|
|
1433
1433
|
var r = t.length, n = fn ? fn(r) : new t.constructor(r);
|
|
1434
1434
|
return t.copy(n), n;
|
|
1435
1435
|
}
|
|
1436
|
-
function
|
|
1436
|
+
function Cf(t, e) {
|
|
1437
1437
|
for (var r = -1, n = t == null ? 0 : t.length, o = 0, a = []; ++r < n; ) {
|
|
1438
1438
|
var s = t[r];
|
|
1439
1439
|
e(s, r, t) && (a[o++] = s);
|
|
@@ -1444,7 +1444,7 @@ function Mo() {
|
|
|
1444
1444
|
return [];
|
|
1445
1445
|
}
|
|
1446
1446
|
var jf = Object.prototype, wf = jf.propertyIsEnumerable, dn = Object.getOwnPropertySymbols, yr = dn ? function(t) {
|
|
1447
|
-
return t == null ? [] : (t = Object(t),
|
|
1447
|
+
return t == null ? [] : (t = Object(t), Cf(dn(t), function(e) {
|
|
1448
1448
|
return wf.call(t, e);
|
|
1449
1449
|
}));
|
|
1450
1450
|
} : Mo;
|
|
@@ -1469,9 +1469,9 @@ function Ue(t) {
|
|
|
1469
1469
|
function br(t) {
|
|
1470
1470
|
return Po(t, re, Io);
|
|
1471
1471
|
}
|
|
1472
|
-
var Be =
|
|
1473
|
-
(Be && J(new Be(new ArrayBuffer(1))) != vn || Yt && J(new Yt()) != pn || ze && J(ze.resolve()) != hn ||
|
|
1474
|
-
var e =
|
|
1472
|
+
var Be = vt(X, "DataView"), ze = vt(X, "Promise"), _t = vt(X, "Set"), pn = "[object Map]", xf = "[object Object]", hn = "[object Promise]", mn = "[object Set]", gn = "[object WeakMap]", vn = "[object DataView]", Rf = gt(Be), Tf = gt(Yt), Af = gt(ze), Mf = gt(_t), If = gt(ke), J = mt;
|
|
1473
|
+
(Be && J(new Be(new ArrayBuffer(1))) != vn || Yt && J(new Yt()) != pn || ze && J(ze.resolve()) != hn || _t && J(new _t()) != mn || ke && J(new ke()) != gn) && (J = function(t) {
|
|
1474
|
+
var e = mt(t), r = e == xf ? t.constructor : void 0, n = r ? gt(r) : "";
|
|
1475
1475
|
if (n)
|
|
1476
1476
|
switch (n) {
|
|
1477
1477
|
case Rf:
|
|
@@ -1555,12 +1555,12 @@ var cd = "[object Map]";
|
|
|
1555
1555
|
function ud(t) {
|
|
1556
1556
|
return K(t) && J(t) == cd;
|
|
1557
1557
|
}
|
|
1558
|
-
var _n =
|
|
1558
|
+
var _n = jt && jt.isMap, ld = _n ? dr(_n) : ud, fd = "[object Set]";
|
|
1559
1559
|
function dd(t) {
|
|
1560
1560
|
return K(t) && J(t) == fd;
|
|
1561
1561
|
}
|
|
1562
|
-
var Sn =
|
|
1563
|
-
A[Fo] = A[vd] = A[xd] = A[Rd] = A[yd] = A[bd] = A[Td] = A[Ad] = A[Md] = A[Id] = A[Pd] = A[
|
|
1562
|
+
var Sn = jt && jt.isSet, pd = Sn ? dr(Sn) : dd, hd = 1, md = 2, gd = 4, Fo = "[object Arguments]", vd = "[object Array]", yd = "[object Boolean]", bd = "[object Date]", _d = "[object Error]", Vo = "[object Function]", Sd = "[object GeneratorFunction]", Od = "[object Map]", Cd = "[object Number]", ko = "[object Object]", jd = "[object RegExp]", wd = "[object Set]", Ed = "[object String]", Nd = "[object Symbol]", $d = "[object WeakMap]", xd = "[object ArrayBuffer]", Rd = "[object DataView]", Td = "[object Float32Array]", Ad = "[object Float64Array]", Md = "[object Int8Array]", Id = "[object Int16Array]", Pd = "[object Int32Array]", Dd = "[object Uint8Array]", Ld = "[object Uint8ClampedArray]", Fd = "[object Uint16Array]", Vd = "[object Uint32Array]", A = {};
|
|
1563
|
+
A[Fo] = A[vd] = A[xd] = A[Rd] = A[yd] = A[bd] = A[Td] = A[Ad] = A[Md] = A[Id] = A[Pd] = A[Od] = A[Cd] = A[ko] = A[jd] = A[wd] = A[Ed] = A[Nd] = A[Dd] = A[Ld] = A[Fd] = A[Vd] = !0;
|
|
1564
1564
|
A[_d] = A[Vo] = A[$d] = !1;
|
|
1565
1565
|
function Gt(t, e, r, n, o, a) {
|
|
1566
1566
|
var s, i = e & hd, c = e & md, u = e & gd;
|
|
@@ -1568,21 +1568,21 @@ function Gt(t, e, r, n, o, a) {
|
|
|
1568
1568
|
return s;
|
|
1569
1569
|
if (!Q(t))
|
|
1570
1570
|
return t;
|
|
1571
|
-
var
|
|
1572
|
-
if (
|
|
1571
|
+
var f = L(t);
|
|
1572
|
+
if (f) {
|
|
1573
1573
|
if (s = Lf(t), !i)
|
|
1574
1574
|
return bo(t, s);
|
|
1575
1575
|
} else {
|
|
1576
|
-
var
|
|
1576
|
+
var l = J(t), d = l == Vo || l == Sd;
|
|
1577
1577
|
if (Wt(t))
|
|
1578
1578
|
return Ao(t, i);
|
|
1579
|
-
if (
|
|
1579
|
+
if (l == ko || l == Fo || d && !o) {
|
|
1580
1580
|
if (s = c || d ? {} : Lo(t), !i)
|
|
1581
1581
|
return c ? $f(t, Sf(s, t)) : Ef(t, _f(s, t));
|
|
1582
1582
|
} else {
|
|
1583
|
-
if (!A[
|
|
1583
|
+
if (!A[l])
|
|
1584
1584
|
return o ? t : {};
|
|
1585
|
-
s = id(t,
|
|
1585
|
+
s = id(t, l, i);
|
|
1586
1586
|
}
|
|
1587
1587
|
}
|
|
1588
1588
|
a || (a = new q());
|
|
@@ -1594,9 +1594,9 @@ function Gt(t, e, r, n, o, a) {
|
|
|
1594
1594
|
}) : ld(t) && t.forEach(function(h, m) {
|
|
1595
1595
|
s.set(m, Gt(h, e, r, m, t, a));
|
|
1596
1596
|
});
|
|
1597
|
-
var b = u ? c ? br : Ue : c ? re : ye,
|
|
1598
|
-
return Su(
|
|
1599
|
-
|
|
1597
|
+
var b = u ? c ? br : Ue : c ? re : ye, S = f ? void 0 : b(t);
|
|
1598
|
+
return Su(S || t, function(h, m) {
|
|
1599
|
+
S && (m = h, h = t[m]), ur(s, m, Gt(h, e, r, m, t, a));
|
|
1600
1600
|
}), s;
|
|
1601
1601
|
}
|
|
1602
1602
|
var kd = 1, Ud = 4;
|
|
@@ -1631,14 +1631,14 @@ function zo(t, e, r, n, o, a) {
|
|
|
1631
1631
|
var s = r & Jd, i = t.length, c = e.length;
|
|
1632
1632
|
if (i != c && !(s && c > i))
|
|
1633
1633
|
return !1;
|
|
1634
|
-
var u = a.get(t),
|
|
1635
|
-
if (u &&
|
|
1636
|
-
return u == e &&
|
|
1637
|
-
var
|
|
1638
|
-
for (a.set(t, e), a.set(e, t); ++
|
|
1639
|
-
var b = t[
|
|
1634
|
+
var u = a.get(t), f = a.get(e);
|
|
1635
|
+
if (u && f)
|
|
1636
|
+
return u == e && f == t;
|
|
1637
|
+
var l = -1, d = !0, p = r & qd ? new Kt() : void 0;
|
|
1638
|
+
for (a.set(t, e), a.set(e, t); ++l < i; ) {
|
|
1639
|
+
var b = t[l], S = e[l];
|
|
1640
1640
|
if (n)
|
|
1641
|
-
var h = s ? n(
|
|
1641
|
+
var h = s ? n(S, b, l, e, t, a) : n(b, S, l, t, e, a);
|
|
1642
1642
|
if (h !== void 0) {
|
|
1643
1643
|
if (h)
|
|
1644
1644
|
continue;
|
|
@@ -1653,7 +1653,7 @@ function zo(t, e, r, n, o, a) {
|
|
|
1653
1653
|
d = !1;
|
|
1654
1654
|
break;
|
|
1655
1655
|
}
|
|
1656
|
-
} else if (!(b ===
|
|
1656
|
+
} else if (!(b === S || o(b, S, r, n, a))) {
|
|
1657
1657
|
d = !1;
|
|
1658
1658
|
break;
|
|
1659
1659
|
}
|
|
@@ -1672,7 +1672,7 @@ function Sr(t) {
|
|
|
1672
1672
|
r[++e] = n;
|
|
1673
1673
|
}), r;
|
|
1674
1674
|
}
|
|
1675
|
-
var Qd = 1, Yd = 2, Kd = "[object Boolean]", Xd = "[object Date]", Zd = "[object Error]", tp = "[object Map]", ep = "[object Number]", rp = "[object RegExp]", np = "[object Set]", op = "[object String]", ap = "[object Symbol]", sp = "[object ArrayBuffer]", ip = "[object DataView]",
|
|
1675
|
+
var Qd = 1, Yd = 2, Kd = "[object Boolean]", Xd = "[object Date]", Zd = "[object Error]", tp = "[object Map]", ep = "[object Number]", rp = "[object RegExp]", np = "[object Set]", op = "[object String]", ap = "[object Symbol]", sp = "[object ArrayBuffer]", ip = "[object DataView]", On = G ? G.prototype : void 0, xe = On ? On.valueOf : void 0;
|
|
1676
1676
|
function cp(t, e, r, n, o, a, s) {
|
|
1677
1677
|
switch (r) {
|
|
1678
1678
|
case ip:
|
|
@@ -1700,8 +1700,8 @@ function cp(t, e, r, n, o, a, s) {
|
|
|
1700
1700
|
if (u)
|
|
1701
1701
|
return u == e;
|
|
1702
1702
|
n |= Yd, s.set(t, e);
|
|
1703
|
-
var
|
|
1704
|
-
return s.delete(t),
|
|
1703
|
+
var f = zo(i(t), i(e), n, o, a, s);
|
|
1704
|
+
return s.delete(t), f;
|
|
1705
1705
|
case ap:
|
|
1706
1706
|
if (xe)
|
|
1707
1707
|
return xe.call(t) == xe.call(e);
|
|
@@ -1710,59 +1710,59 @@ function cp(t, e, r, n, o, a, s) {
|
|
|
1710
1710
|
}
|
|
1711
1711
|
var up = 1, lp = Object.prototype, fp = lp.hasOwnProperty;
|
|
1712
1712
|
function dp(t, e, r, n, o, a) {
|
|
1713
|
-
var s = r & up, i = Ue(t), c = i.length, u = Ue(e),
|
|
1714
|
-
if (c !=
|
|
1713
|
+
var s = r & up, i = Ue(t), c = i.length, u = Ue(e), f = u.length;
|
|
1714
|
+
if (c != f && !s)
|
|
1715
1715
|
return !1;
|
|
1716
|
-
for (var
|
|
1717
|
-
var d = i[
|
|
1716
|
+
for (var l = c; l--; ) {
|
|
1717
|
+
var d = i[l];
|
|
1718
1718
|
if (!(s ? d in e : fp.call(e, d)))
|
|
1719
1719
|
return !1;
|
|
1720
1720
|
}
|
|
1721
1721
|
var p = a.get(t), b = a.get(e);
|
|
1722
1722
|
if (p && b)
|
|
1723
1723
|
return p == e && b == t;
|
|
1724
|
-
var
|
|
1724
|
+
var S = !0;
|
|
1725
1725
|
a.set(t, e), a.set(e, t);
|
|
1726
|
-
for (var h = s; ++
|
|
1727
|
-
d = i[
|
|
1726
|
+
for (var h = s; ++l < c; ) {
|
|
1727
|
+
d = i[l];
|
|
1728
1728
|
var m = t[d], v = e[d];
|
|
1729
1729
|
if (n)
|
|
1730
1730
|
var g = s ? n(v, m, d, e, t, a) : n(m, v, d, t, e, a);
|
|
1731
1731
|
if (!(g === void 0 ? m === v || o(m, v, r, n, a) : g)) {
|
|
1732
|
-
|
|
1732
|
+
S = !1;
|
|
1733
1733
|
break;
|
|
1734
1734
|
}
|
|
1735
1735
|
h || (h = d == "constructor");
|
|
1736
1736
|
}
|
|
1737
|
-
if (
|
|
1738
|
-
var
|
|
1739
|
-
|
|
1737
|
+
if (S && !h) {
|
|
1738
|
+
var _ = t.constructor, C = e.constructor;
|
|
1739
|
+
_ != C && "constructor" in t && "constructor" in e && !(typeof _ == "function" && _ instanceof _ && typeof C == "function" && C instanceof C) && (S = !1);
|
|
1740
1740
|
}
|
|
1741
|
-
return a.delete(t), a.delete(e),
|
|
1741
|
+
return a.delete(t), a.delete(e), S;
|
|
1742
1742
|
}
|
|
1743
|
-
var pp = 1,
|
|
1743
|
+
var pp = 1, Cn = "[object Arguments]", jn = "[object Array]", oe = "[object Object]", hp = Object.prototype, wn = hp.hasOwnProperty;
|
|
1744
1744
|
function mp(t, e, r, n, o, a) {
|
|
1745
1745
|
var s = L(t), i = L(e), c = s ? jn : J(t), u = i ? jn : J(e);
|
|
1746
|
-
c = c ==
|
|
1747
|
-
var
|
|
1746
|
+
c = c == Cn ? oe : c, u = u == Cn ? oe : u;
|
|
1747
|
+
var f = c == oe, l = u == oe, d = c == u;
|
|
1748
1748
|
if (d && Wt(t)) {
|
|
1749
1749
|
if (!Wt(e))
|
|
1750
1750
|
return !1;
|
|
1751
|
-
s = !0,
|
|
1751
|
+
s = !0, f = !1;
|
|
1752
1752
|
}
|
|
1753
|
-
if (d && !
|
|
1753
|
+
if (d && !f)
|
|
1754
1754
|
return a || (a = new q()), s || pr(t) ? zo(t, e, r, n, o, a) : cp(t, e, c, r, n, o, a);
|
|
1755
1755
|
if (!(r & pp)) {
|
|
1756
|
-
var p =
|
|
1756
|
+
var p = f && wn.call(t, "__wrapped__"), b = l && wn.call(e, "__wrapped__");
|
|
1757
1757
|
if (p || b) {
|
|
1758
|
-
var
|
|
1759
|
-
return a || (a = new q()), o(
|
|
1758
|
+
var S = p ? t.value() : t, h = b ? e.value() : e;
|
|
1759
|
+
return a || (a = new q()), o(S, h, r, n, a);
|
|
1760
1760
|
}
|
|
1761
1761
|
}
|
|
1762
1762
|
return d ? (a || (a = new q()), dp(t, e, r, n, o, a)) : !1;
|
|
1763
1763
|
}
|
|
1764
|
-
function
|
|
1765
|
-
return t === e ? !0 : t == null || e == null || !K(t) && !K(e) ? t !== t && e !== e : mp(t, e, r, n,
|
|
1764
|
+
function Or(t, e, r, n, o) {
|
|
1765
|
+
return t === e ? !0 : t == null || e == null || !K(t) && !K(e) ? t !== t && e !== e : mp(t, e, r, n, Or, o);
|
|
1766
1766
|
}
|
|
1767
1767
|
var gp = 1, vp = 2;
|
|
1768
1768
|
function yp(t, e, r, n) {
|
|
@@ -1781,8 +1781,8 @@ function yp(t, e, r, n) {
|
|
|
1781
1781
|
if (c === void 0 && !(i in t))
|
|
1782
1782
|
return !1;
|
|
1783
1783
|
} else {
|
|
1784
|
-
var
|
|
1785
|
-
if (!(
|
|
1784
|
+
var f = new q(), l;
|
|
1785
|
+
if (!(l === void 0 ? Or(u, c, gp | vp, n, f) : l))
|
|
1786
1786
|
return !1;
|
|
1787
1787
|
}
|
|
1788
1788
|
}
|
|
@@ -1812,7 +1812,7 @@ function _p(t) {
|
|
|
1812
1812
|
function Sp(t, e) {
|
|
1813
1813
|
return t != null && e in Object(t);
|
|
1814
1814
|
}
|
|
1815
|
-
function
|
|
1815
|
+
function Op(t, e, r) {
|
|
1816
1816
|
e = Pt(e, t);
|
|
1817
1817
|
for (var n = -1, o = e.length, a = !1; ++n < o; ) {
|
|
1818
1818
|
var s = Dt(e[n]);
|
|
@@ -1822,14 +1822,14 @@ function Cp(t, e, r) {
|
|
|
1822
1822
|
}
|
|
1823
1823
|
return a || ++n != o ? a : (o = t == null ? 0 : t.length, !!o && lr(o) && ge(s, o) && (L(t) || qt(t)));
|
|
1824
1824
|
}
|
|
1825
|
-
function
|
|
1826
|
-
return t != null &&
|
|
1825
|
+
function Cp(t, e) {
|
|
1826
|
+
return t != null && Op(t, e, Sp);
|
|
1827
1827
|
}
|
|
1828
1828
|
var jp = 1, wp = 2;
|
|
1829
1829
|
function Ep(t, e) {
|
|
1830
1830
|
return hr(t) && Go(e) ? Ho(Dt(t), e) : function(r) {
|
|
1831
1831
|
var n = $o(r, t);
|
|
1832
|
-
return n === void 0 && n === e ?
|
|
1832
|
+
return n === void 0 && n === e ? Cp(r, t) : Or(e, n, jp | wp);
|
|
1833
1833
|
};
|
|
1834
1834
|
}
|
|
1835
1835
|
function Np(t) {
|
|
@@ -1845,7 +1845,7 @@ function $p(t) {
|
|
|
1845
1845
|
function xp(t) {
|
|
1846
1846
|
return hr(t) ? Np(Dt(t)) : $p(t);
|
|
1847
1847
|
}
|
|
1848
|
-
function
|
|
1848
|
+
function Cr(t) {
|
|
1849
1849
|
return typeof t == "function" ? t : t == null ? sr : typeof t == "object" ? L(t) ? Ep(t[0], t[1]) : _p(t) : xp(t);
|
|
1850
1850
|
}
|
|
1851
1851
|
function Rp(t) {
|
|
@@ -1878,12 +1878,12 @@ function Mp(t, e, r, n, o, a, s) {
|
|
|
1878
1878
|
Ge(t, r, u);
|
|
1879
1879
|
return;
|
|
1880
1880
|
}
|
|
1881
|
-
var
|
|
1882
|
-
if (
|
|
1881
|
+
var f = a ? a(i, c, r + "", t, e, s) : void 0, l = f === void 0;
|
|
1882
|
+
if (l) {
|
|
1883
1883
|
var d = L(c), p = !d && Wt(c), b = !d && !p && pr(c);
|
|
1884
|
-
|
|
1884
|
+
f = c, d || p || b ? L(i) ? f = i : He(i) ? f = bo(i) : p ? (l = !1, f = Ao(c, !0)) : b ? (l = !1, f = Do(c, !0)) : f = [] : U(c) || qt(c) ? (f = i, qt(i) ? f = Ap(i) : (!Q(i) || ir(i)) && (f = Lo(c))) : l = !1;
|
|
1885
1885
|
}
|
|
1886
|
-
|
|
1886
|
+
l && (s.set(c, f), o(f, c, n, a, s), s.delete(c)), Ge(t, r, f);
|
|
1887
1887
|
}
|
|
1888
1888
|
function Jo(t, e, r, n, o) {
|
|
1889
1889
|
t !== e && Tp(e, function(a, s) {
|
|
@@ -1950,8 +1950,8 @@ function Bp(t, e, r, n) {
|
|
|
1950
1950
|
if (c === "__proto__" || c === "constructor" || c === "prototype")
|
|
1951
1951
|
return t;
|
|
1952
1952
|
if (o != s) {
|
|
1953
|
-
var
|
|
1954
|
-
u = void 0, u === void 0 && (u = Q(
|
|
1953
|
+
var f = i[c];
|
|
1954
|
+
u = void 0, u === void 0 && (u = Q(f) ? f : ge(e[o + 1]) ? [] : {});
|
|
1955
1955
|
}
|
|
1956
1956
|
ur(i, c, u), i = i[c];
|
|
1957
1957
|
}
|
|
@@ -1970,15 +1970,15 @@ function Gp(t, e) {
|
|
|
1970
1970
|
var r = ar(br(t), function(n) {
|
|
1971
1971
|
return [n];
|
|
1972
1972
|
});
|
|
1973
|
-
return e =
|
|
1973
|
+
return e = Cr(e), zp(t, r, function(n, o) {
|
|
1974
1974
|
return e(n, o[0]);
|
|
1975
1975
|
});
|
|
1976
1976
|
}
|
|
1977
1977
|
function Hp(t, e) {
|
|
1978
|
-
return Gp(t, Dp(
|
|
1978
|
+
return Gp(t, Dp(Cr(e)));
|
|
1979
1979
|
}
|
|
1980
|
-
var Jp = 1 / 0, qp =
|
|
1981
|
-
return new
|
|
1980
|
+
var Jp = 1 / 0, qp = _t && 1 / Sr(new _t([, -0]))[1] == Jp ? function(t) {
|
|
1981
|
+
return new _t(t);
|
|
1982
1982
|
} : hu, Wp = 200;
|
|
1983
1983
|
function Qp(t, e, r) {
|
|
1984
1984
|
var n = -1, o = Eu, a = t.length, s = !0, i = [], c = i;
|
|
@@ -1991,19 +1991,19 @@ function Qp(t, e, r) {
|
|
|
1991
1991
|
c = e ? [] : i;
|
|
1992
1992
|
t:
|
|
1993
1993
|
for (; ++n < a; ) {
|
|
1994
|
-
var
|
|
1995
|
-
if (
|
|
1994
|
+
var f = t[n], l = e ? e(f) : f;
|
|
1995
|
+
if (f = f !== 0 ? f : 0, s && l === l) {
|
|
1996
1996
|
for (var d = c.length; d--; )
|
|
1997
|
-
if (c[d] ===
|
|
1997
|
+
if (c[d] === l)
|
|
1998
1998
|
continue t;
|
|
1999
|
-
e && c.push(
|
|
2000
|
-
} else o(c,
|
|
1999
|
+
e && c.push(l), i.push(f);
|
|
2000
|
+
} else o(c, l, r) || (c !== i && c.push(l), i.push(f));
|
|
2001
2001
|
}
|
|
2002
2002
|
return i;
|
|
2003
2003
|
}
|
|
2004
|
-
var Yp =
|
|
2004
|
+
var Yp = Oo(function(t) {
|
|
2005
2005
|
var e = qo(t);
|
|
2006
|
-
return He(e) && (e = void 0), Qp(xo(t, 1, He, !0),
|
|
2006
|
+
return He(e) && (e = void 0), Qp(xo(t, 1, He, !0), Cr(e));
|
|
2007
2007
|
});
|
|
2008
2008
|
class Yo extends TypeError {
|
|
2009
2009
|
constructor(e, r) {
|
|
@@ -2083,15 +2083,15 @@ function* jr(t, e, r) {
|
|
|
2083
2083
|
let c = "valid";
|
|
2084
2084
|
for (const u of e.validator(t, i))
|
|
2085
2085
|
c = "not_valid", yield [u, void 0];
|
|
2086
|
-
for (let [u,
|
|
2087
|
-
const d = jr(
|
|
2086
|
+
for (let [u, f, l] of e.entries(t, i)) {
|
|
2087
|
+
const d = jr(f, l, {
|
|
2088
2088
|
path: u === void 0 ? n : [...n, u],
|
|
2089
|
-
branch: u === void 0 ? o : [...o,
|
|
2089
|
+
branch: u === void 0 ? o : [...o, f],
|
|
2090
2090
|
coerce: a,
|
|
2091
2091
|
mask: s
|
|
2092
2092
|
});
|
|
2093
2093
|
for (const p of d)
|
|
2094
|
-
p[0] ? (c = p[0].refinement != null ? "not_refined" : "not_valid", yield [p[0], void 0]) : a && (
|
|
2094
|
+
p[0] ? (c = p[0].refinement != null ? "not_refined" : "not_valid", yield [p[0], void 0]) : a && (f = p[1], u === void 0 ? t = f : t instanceof Map ? t.set(u, f) : t instanceof Set ? t.add(f) : W(t) && (f !== void 0 || u in t) && (t[u] = f));
|
|
2095
2095
|
}
|
|
2096
2096
|
if (c !== "not_valid")
|
|
2097
2097
|
for (const u of e.refiner(t, i))
|
|
@@ -2111,11 +2111,11 @@ class Z {
|
|
|
2111
2111
|
}
|
|
2112
2112
|
} = e;
|
|
2113
2113
|
this.type = r, this.schema = n, this.entries = i, this.coercer = s, o ? this.validator = (c, u) => {
|
|
2114
|
-
const
|
|
2115
|
-
return En(
|
|
2114
|
+
const f = o(c, u);
|
|
2115
|
+
return En(f, u, this, c);
|
|
2116
2116
|
} : this.validator = () => [], a ? this.refiner = (c, u) => {
|
|
2117
|
-
const
|
|
2118
|
-
return En(
|
|
2117
|
+
const f = a(c, u);
|
|
2118
|
+
return En(f, u, this, c);
|
|
2119
2119
|
} : this.refiner = () => [];
|
|
2120
2120
|
}
|
|
2121
2121
|
/**
|
|
@@ -2201,7 +2201,7 @@ function st(t, e) {
|
|
|
2201
2201
|
validator: e
|
|
2202
2202
|
});
|
|
2203
2203
|
}
|
|
2204
|
-
function
|
|
2204
|
+
function wt(t) {
|
|
2205
2205
|
return new Z({
|
|
2206
2206
|
type: "dynamic",
|
|
2207
2207
|
schema: null,
|
|
@@ -2312,7 +2312,7 @@ function R(t) {
|
|
|
2312
2312
|
}
|
|
2313
2313
|
});
|
|
2314
2314
|
}
|
|
2315
|
-
function
|
|
2315
|
+
function y(t) {
|
|
2316
2316
|
return new Z({
|
|
2317
2317
|
...t,
|
|
2318
2318
|
validator: (e, r) => e === void 0 || t.validator(e, r),
|
|
@@ -2335,7 +2335,7 @@ function Ht(t, e) {
|
|
|
2335
2335
|
}
|
|
2336
2336
|
});
|
|
2337
2337
|
}
|
|
2338
|
-
function
|
|
2338
|
+
function O() {
|
|
2339
2339
|
return st("string", (t) => typeof t == "string" || `Expected a string, but received: ${B(t)}`);
|
|
2340
2340
|
}
|
|
2341
2341
|
function ea(t) {
|
|
@@ -2384,14 +2384,14 @@ function oh() {
|
|
|
2384
2384
|
return st("unknown", () => !0);
|
|
2385
2385
|
}
|
|
2386
2386
|
const Er = R({
|
|
2387
|
-
package:
|
|
2388
|
-
version:
|
|
2389
|
-
name:
|
|
2390
|
-
exportName:
|
|
2391
|
-
destructuring:
|
|
2392
|
-
subName:
|
|
2393
|
-
main:
|
|
2394
|
-
cssPaths:
|
|
2387
|
+
package: O(),
|
|
2388
|
+
version: O(),
|
|
2389
|
+
name: O(),
|
|
2390
|
+
exportName: y(O()),
|
|
2391
|
+
destructuring: y(pt()),
|
|
2392
|
+
subName: y(O()),
|
|
2393
|
+
main: y(O()),
|
|
2394
|
+
cssPaths: y(P(O()))
|
|
2395
2395
|
}), ah = P(Er), sh = [
|
|
2396
2396
|
"CBlock",
|
|
2397
2397
|
"CContainer",
|
|
@@ -2403,25 +2403,25 @@ const Er = R({
|
|
|
2403
2403
|
"CNativeTag"
|
|
2404
2404
|
];
|
|
2405
2405
|
var V = /* @__PURE__ */ ((t) => (t.SLOT = "SLOT", t.FUNCTION = "FUNCTION", t.EXPRESSION = "EXPRESSION", t.ACTION = "ACTION", t.EVENT = "EVENT", t))(V || {}), Nr = /* @__PURE__ */ ((t) => (t.DESIGN = "design", t.SAVE = "save", t))(Nr || {}), We = /* @__PURE__ */ ((t) => (t.FUNC = "FUNC", t.COMP = "COMP", t))(We || {});
|
|
2406
|
-
const ih = () => st("normalObj", (t) => !U(t) || [V.SLOT, V.EXPRESSION, V.FUNCTION].includes(t == null ? void 0 : t.type) ? !1 : (Lt(t, Ht(
|
|
2407
|
-
|
|
2406
|
+
const ih = () => st("normalObj", (t) => !U(t) || [V.SLOT, V.EXPRESSION, V.FUNCTION].includes(t == null ? void 0 : t.type) ? !1 : (Lt(t, Ht(O(), $r)), !0)), $r = k([
|
|
2407
|
+
O(),
|
|
2408
2408
|
ta(),
|
|
2409
2409
|
pt(),
|
|
2410
2410
|
R({
|
|
2411
2411
|
type: F(V.SLOT),
|
|
2412
2412
|
renderType: qe([We.FUNC, We.COMP]),
|
|
2413
2413
|
// if renderType is Func, params will be useful
|
|
2414
|
-
params:
|
|
2414
|
+
params: y(P(O())),
|
|
2415
2415
|
// here can't use PropsDataStructDescribe, it will caused "Maximum call stack size exceeded" error
|
|
2416
|
-
value:
|
|
2416
|
+
value: wt(() => k([Et, P(Et)]))
|
|
2417
2417
|
}),
|
|
2418
2418
|
R({
|
|
2419
2419
|
type: F(V.EXPRESSION),
|
|
2420
|
-
value:
|
|
2420
|
+
value: O()
|
|
2421
2421
|
}),
|
|
2422
2422
|
R({
|
|
2423
2423
|
type: F(V.FUNCTION),
|
|
2424
|
-
value:
|
|
2424
|
+
value: O()
|
|
2425
2425
|
}),
|
|
2426
2426
|
R({
|
|
2427
2427
|
type: F(V.ACTION),
|
|
@@ -2430,46 +2430,47 @@ const ih = () => st("normalObj", (t) => !U(t) || [V.SLOT, V.EXPRESSION, V.FUNCTI
|
|
|
2430
2430
|
}),
|
|
2431
2431
|
ih(),
|
|
2432
2432
|
P(
|
|
2433
|
-
|
|
2433
|
+
wt(() => $r)
|
|
2434
2434
|
)
|
|
2435
2435
|
]);
|
|
2436
2436
|
var ra = /* @__PURE__ */ ((t) => (t.COMPONENTS = "COMPONENTS", t))(ra || {});
|
|
2437
2437
|
const Nn = R({
|
|
2438
2438
|
type: F(V.EXPRESSION),
|
|
2439
|
-
value:
|
|
2440
|
-
}),
|
|
2441
|
-
id:
|
|
2442
|
-
title:
|
|
2443
|
-
componentName:
|
|
2444
|
-
props:
|
|
2445
|
-
nodeName:
|
|
2446
|
-
state:
|
|
2447
|
-
children:
|
|
2448
|
-
eventListener:
|
|
2449
|
-
configure:
|
|
2450
|
-
css:
|
|
2451
|
-
style:
|
|
2452
|
-
classNames:
|
|
2453
|
-
refId:
|
|
2454
|
-
extra:
|
|
2455
|
-
condition:
|
|
2456
|
-
loop:
|
|
2439
|
+
value: O()
|
|
2440
|
+
}), Et = R({
|
|
2441
|
+
id: y(O()),
|
|
2442
|
+
title: y(O()),
|
|
2443
|
+
componentName: O(),
|
|
2444
|
+
props: y(Ht(O(), $r)),
|
|
2445
|
+
nodeName: y(O()),
|
|
2446
|
+
state: y(Ht(O(), T())),
|
|
2447
|
+
children: wt(() => y(P(k([O(), Et])))),
|
|
2448
|
+
eventListener: y(P(T())),
|
|
2449
|
+
configure: y(T()),
|
|
2450
|
+
css: y(T()),
|
|
2451
|
+
style: y(T()),
|
|
2452
|
+
classNames: y(P(T())),
|
|
2453
|
+
refId: y(O()),
|
|
2454
|
+
extra: y(Ht(T(), T())),
|
|
2455
|
+
condition: y(k([pt(), Nn])),
|
|
2456
|
+
loop: y(
|
|
2457
2457
|
R({
|
|
2458
2458
|
open: pt(),
|
|
2459
2459
|
data: k([P(T()), Nn]),
|
|
2460
|
-
args:
|
|
2461
|
-
forName:
|
|
2462
|
-
forIndex:
|
|
2463
|
-
key:
|
|
2464
|
-
name:
|
|
2460
|
+
args: y(P(O())),
|
|
2461
|
+
forName: y(O()),
|
|
2462
|
+
forIndex: y(O()),
|
|
2463
|
+
key: y(T()),
|
|
2464
|
+
name: y(O())
|
|
2465
2465
|
})
|
|
2466
2466
|
),
|
|
2467
|
-
|
|
2467
|
+
injectEnvList: y(P(T())),
|
|
2468
|
+
methods: y(P(T()))
|
|
2468
2469
|
}), le = k([
|
|
2469
|
-
|
|
2470
|
+
O(),
|
|
2470
2471
|
R({
|
|
2471
|
-
label:
|
|
2472
|
-
tip:
|
|
2472
|
+
label: O(),
|
|
2473
|
+
tip: y(O())
|
|
2473
2474
|
})
|
|
2474
2475
|
]), ch = R({
|
|
2475
2476
|
type: F(
|
|
@@ -2478,9 +2479,9 @@ const Nn = R({
|
|
|
2478
2479
|
),
|
|
2479
2480
|
value: P(
|
|
2480
2481
|
R({
|
|
2481
|
-
name:
|
|
2482
|
+
name: O(),
|
|
2482
2483
|
title: le,
|
|
2483
|
-
valueType:
|
|
2484
|
+
valueType: wt(() => Oe)
|
|
2484
2485
|
})
|
|
2485
2486
|
)
|
|
2486
2487
|
}), uh = R({
|
|
@@ -2488,22 +2489,22 @@ const Nn = R({
|
|
|
2488
2489
|
"enums"
|
|
2489
2490
|
/* ENUMS */
|
|
2490
2491
|
),
|
|
2491
|
-
value: P(
|
|
2492
|
+
value: P(O())
|
|
2492
2493
|
});
|
|
2493
2494
|
R({
|
|
2494
2495
|
type: F(
|
|
2495
2496
|
"array"
|
|
2496
2497
|
/* ARRAY */
|
|
2497
2498
|
),
|
|
2498
|
-
value:
|
|
2499
|
+
value: wt(() => Oe)
|
|
2499
2500
|
});
|
|
2500
2501
|
const lh = R({
|
|
2501
2502
|
type: F(
|
|
2502
2503
|
"array"
|
|
2503
2504
|
/* ARRAY */
|
|
2504
2505
|
),
|
|
2505
|
-
value:
|
|
2506
|
-
}),
|
|
2506
|
+
value: wt(() => P(Oe))
|
|
2507
|
+
}), Oe = k([
|
|
2507
2508
|
qe([
|
|
2508
2509
|
"array",
|
|
2509
2510
|
"boolean",
|
|
@@ -2522,79 +2523,79 @@ const lh = R({
|
|
|
2522
2523
|
uh,
|
|
2523
2524
|
lh
|
|
2524
2525
|
]), fh = k([
|
|
2525
|
-
|
|
2526
|
+
O(),
|
|
2526
2527
|
R({
|
|
2527
|
-
componentName:
|
|
2528
|
-
props:
|
|
2528
|
+
componentName: O(),
|
|
2529
|
+
props: y(T()),
|
|
2529
2530
|
/** 用于标记当前数据的初始值,如添加一个数组元素可以使用该值填充 */
|
|
2530
|
-
initialValue:
|
|
2531
|
-
component:
|
|
2532
|
-
hiddenLabel:
|
|
2531
|
+
initialValue: y(T()),
|
|
2532
|
+
component: y(T()),
|
|
2533
|
+
hiddenLabel: y(pt())
|
|
2533
2534
|
})
|
|
2534
2535
|
]), Re = R({
|
|
2535
|
-
name:
|
|
2536
|
+
name: O(),
|
|
2536
2537
|
title: le,
|
|
2537
2538
|
// 描述 name 对应值的类型
|
|
2538
|
-
valueType:
|
|
2539
|
-
description:
|
|
2539
|
+
valueType: Oe,
|
|
2540
|
+
description: y(O()),
|
|
2540
2541
|
defaultValue: T(),
|
|
2541
2542
|
//用于产生 valueType 类型的值
|
|
2542
|
-
setters:
|
|
2543
|
-
condition:
|
|
2543
|
+
setters: y(P(fh)),
|
|
2544
|
+
condition: y(Zo())
|
|
2544
2545
|
});
|
|
2545
|
-
k([
|
|
2546
|
+
k([O(), Zo()]);
|
|
2546
2547
|
var Qe = /* @__PURE__ */ ((t) => (t.SINGLE = "single", t.GROUP = "group", t))(Qe || {});
|
|
2547
2548
|
k([
|
|
2548
|
-
|
|
2549
|
+
O(),
|
|
2549
2550
|
R({
|
|
2550
|
-
event:
|
|
2551
|
-
name:
|
|
2552
|
-
describe:
|
|
2553
|
-
params:
|
|
2551
|
+
event: O(),
|
|
2552
|
+
name: y(O()),
|
|
2553
|
+
describe: y(O()),
|
|
2554
|
+
params: y(
|
|
2554
2555
|
P(
|
|
2555
2556
|
R({
|
|
2556
|
-
name:
|
|
2557
|
-
description:
|
|
2558
|
-
example:
|
|
2557
|
+
name: O(),
|
|
2558
|
+
description: O(),
|
|
2559
|
+
example: O()
|
|
2559
2560
|
})
|
|
2560
2561
|
)
|
|
2561
2562
|
),
|
|
2562
|
-
template:
|
|
2563
|
+
template: y(O())
|
|
2563
2564
|
})
|
|
2564
2565
|
]);
|
|
2565
2566
|
const dh = R({
|
|
2566
|
-
id:
|
|
2567
|
-
title:
|
|
2568
|
-
snapshot: k([
|
|
2569
|
-
snapshotText:
|
|
2570
|
-
description:
|
|
2567
|
+
id: y(O()),
|
|
2568
|
+
title: O(),
|
|
2569
|
+
snapshot: k([O(), T()]),
|
|
2570
|
+
snapshotText: y(O()),
|
|
2571
|
+
description: y(O()),
|
|
2571
2572
|
// 组件分类,用于搜索
|
|
2572
|
-
tags:
|
|
2573
|
+
tags: y(P(O())),
|
|
2573
2574
|
// 分 tab 面板
|
|
2574
|
-
groupName:
|
|
2575
|
+
groupName: y(O()),
|
|
2575
2576
|
// 分类
|
|
2576
|
-
category:
|
|
2577
|
-
schema: wr(Xo(
|
|
2577
|
+
category: y(O()),
|
|
2578
|
+
schema: wr(Xo(Et, ["id"]), R({ componentName: y(O()) }))
|
|
2578
2579
|
}), ph = R({
|
|
2579
|
-
componentName:
|
|
2580
|
-
title:
|
|
2581
|
-
screenshot:
|
|
2582
|
-
icon:
|
|
2580
|
+
componentName: O(),
|
|
2581
|
+
title: O(),
|
|
2582
|
+
screenshot: y(O()),
|
|
2583
|
+
icon: y(O()),
|
|
2583
2584
|
// 组件分类,用于搜索
|
|
2584
|
-
tags:
|
|
2585
|
+
tags: y(P(O())),
|
|
2585
2586
|
// 分 tab 面板
|
|
2586
|
-
groupName:
|
|
2587
|
+
groupName: y(O()),
|
|
2587
2588
|
// 分类
|
|
2588
|
-
category:
|
|
2589
|
+
category: y(O()),
|
|
2589
2590
|
// 排序
|
|
2590
|
-
priority:
|
|
2591
|
-
npm:
|
|
2591
|
+
priority: y(ta()),
|
|
2592
|
+
npm: y(Er),
|
|
2592
2593
|
snippets: P(dh),
|
|
2593
2594
|
props: P(
|
|
2594
2595
|
k([
|
|
2595
2596
|
Re,
|
|
2596
2597
|
R({
|
|
2597
|
-
title:
|
|
2598
|
+
title: y(le),
|
|
2598
2599
|
type: F(
|
|
2599
2600
|
"single"
|
|
2600
2601
|
/* SINGLE */
|
|
@@ -2602,7 +2603,7 @@ const dh = R({
|
|
|
2602
2603
|
content: Re
|
|
2603
2604
|
}),
|
|
2604
2605
|
R({
|
|
2605
|
-
title:
|
|
2606
|
+
title: y(le),
|
|
2606
2607
|
type: F(
|
|
2607
2608
|
"group"
|
|
2608
2609
|
/* GROUP */
|
|
@@ -2611,28 +2612,28 @@ const dh = R({
|
|
|
2611
2612
|
})
|
|
2612
2613
|
])
|
|
2613
2614
|
),
|
|
2614
|
-
events:
|
|
2615
|
-
methods:
|
|
2616
|
-
fixedProps:
|
|
2615
|
+
events: y(T()),
|
|
2616
|
+
methods: y(T()),
|
|
2617
|
+
fixedProps: y(T()),
|
|
2617
2618
|
// 可以拖入组件
|
|
2618
|
-
isContainer:
|
|
2619
|
+
isContainer: y(
|
|
2619
2620
|
k([
|
|
2620
2621
|
pt(),
|
|
2621
2622
|
R({
|
|
2622
|
-
placeholder:
|
|
2623
|
-
width:
|
|
2624
|
-
height:
|
|
2623
|
+
placeholder: O(),
|
|
2624
|
+
width: O(),
|
|
2625
|
+
height: O()
|
|
2625
2626
|
})
|
|
2626
2627
|
])
|
|
2627
2628
|
),
|
|
2628
|
-
disableEditorDragDom:
|
|
2629
|
+
disableEditorDragDom: y(T()),
|
|
2629
2630
|
// 如果是布局组件,可以考虑将拖拽控制权转移 or 实现 resize
|
|
2630
|
-
isLayout:
|
|
2631
|
-
rootSelector:
|
|
2631
|
+
isLayout: y(pt()),
|
|
2632
|
+
rootSelector: y(O()),
|
|
2632
2633
|
// selectionToolBarView: optional(func()),
|
|
2633
|
-
advanceCustom:
|
|
2634
|
+
advanceCustom: y(T()),
|
|
2634
2635
|
// 扩展配置
|
|
2635
|
-
extra:
|
|
2636
|
+
extra: y(Ht(T(), T()))
|
|
2636
2637
|
}), hh = (t) => ({ data: e, message: r, throwError: n }) => {
|
|
2637
2638
|
const o = t({ data: e, message: r, throwError: n });
|
|
2638
2639
|
if (o.isValidate)
|
|
@@ -2665,9 +2666,9 @@ const dh = R({
|
|
|
2665
2666
|
var Ft = /* @__PURE__ */ ((t) => (t.ROOT_CONTAINER = "RootContainer", t))(Ft || {});
|
|
2666
2667
|
const mh = R({
|
|
2667
2668
|
type: F(V.FUNCTION),
|
|
2668
|
-
value:
|
|
2669
|
+
value: O()
|
|
2669
2670
|
}), gh = wr(
|
|
2670
|
-
Xo(
|
|
2671
|
+
Xo(Et, ["componentName"]),
|
|
2671
2672
|
R({
|
|
2672
2673
|
componentName: F(
|
|
2673
2674
|
"RootContainer"
|
|
@@ -2696,8 +2697,8 @@ const ne = vh(), yh = (t, e) => {
|
|
|
2696
2697
|
...t,
|
|
2697
2698
|
value: []
|
|
2698
2699
|
}, n = t.value;
|
|
2699
|
-
let o = new
|
|
2700
|
-
return e && (o = e.materialsMode || new
|
|
2700
|
+
let o = new $t([]);
|
|
2701
|
+
return e && (o = e.materialsMode || new $t([])), n && (L(n) ? r.value = n.map(
|
|
2701
2702
|
(a) => new D(a, {
|
|
2702
2703
|
parent: e,
|
|
2703
2704
|
materials: o
|
|
@@ -2709,10 +2710,10 @@ const ne = vh(), yh = (t, e) => {
|
|
|
2709
2710
|
})
|
|
2710
2711
|
)), r;
|
|
2711
2712
|
};
|
|
2712
|
-
class
|
|
2713
|
+
class Nt {
|
|
2713
2714
|
constructor(e, r) {
|
|
2714
2715
|
w(this, "nodeType", "SLOT"), w(this, "rawData"), w(this, "parent"), w(this, "emitter", ne), w(this, "data"), w(this, "id"), w(this, "materialsMode"), this.parent = (r == null ? void 0 : r.parent) || null, this.rawData = e;
|
|
2715
|
-
const n = (r == null ? void 0 : r.materials) || new
|
|
2716
|
+
const n = (r == null ? void 0 : r.materials) || new $t([]);
|
|
2716
2717
|
this.materialsMode = n, this.id = tt(), this.data = yh(e, this);
|
|
2717
2718
|
}
|
|
2718
2719
|
get value() {
|
|
@@ -2741,7 +2742,7 @@ const na = (t) => {
|
|
|
2741
2742
|
}), e;
|
|
2742
2743
|
}, Ye = (t, e, r) => {
|
|
2743
2744
|
if (t.type)
|
|
2744
|
-
return t.type === V.SLOT ? new
|
|
2745
|
+
return t.type === V.SLOT ? new Nt(t, { parent: e, materials: r }) : t;
|
|
2745
2746
|
if (U(t)) {
|
|
2746
2747
|
const n = {};
|
|
2747
2748
|
return Object.keys(t).forEach((o) => {
|
|
@@ -2752,7 +2753,7 @@ const na = (t) => {
|
|
|
2752
2753
|
class at {
|
|
2753
2754
|
constructor(e, r, n) {
|
|
2754
2755
|
w(this, "nodeType", "PROP"), w(this, "rawData"), w(this, "parent"), w(this, "emitter", ne), w(this, "data"), w(this, "name"), w(this, "materialsMode");
|
|
2755
|
-
const o = (n == null ? void 0 : n.materials) || new
|
|
2756
|
+
const o = (n == null ? void 0 : n.materials) || new $t([]);
|
|
2756
2757
|
this.materialsMode = o, this.parent = n == null ? void 0 : n.parent, this.rawData = r, this.name = e, this.data = Ke(r, this, o);
|
|
2757
2758
|
}
|
|
2758
2759
|
// TODO:
|
|
@@ -2772,7 +2773,7 @@ class at {
|
|
|
2772
2773
|
value: this.data,
|
|
2773
2774
|
preValue: r,
|
|
2774
2775
|
node: this
|
|
2775
|
-
}), this.parent && !(this.parent instanceof
|
|
2776
|
+
}), this.parent && !(this.parent instanceof Nt) && this.emitter.emit("onNodeChange", {
|
|
2776
2777
|
value: this.parent.value,
|
|
2777
2778
|
preValue: this.parent.value,
|
|
2778
2779
|
node: this.parent
|
|
@@ -2788,7 +2789,7 @@ class at {
|
|
|
2788
2789
|
}
|
|
2789
2790
|
export(e) {
|
|
2790
2791
|
const r = this.data, n = (o) => {
|
|
2791
|
-
if (o instanceof at || o instanceof
|
|
2792
|
+
if (o instanceof at || o instanceof Nt || o instanceof D)
|
|
2792
2793
|
return o.export(e);
|
|
2793
2794
|
if (L(o))
|
|
2794
2795
|
return o.map((a) => n(a));
|
|
@@ -2808,10 +2809,10 @@ const bh = (t) => {
|
|
|
2808
2809
|
return !0;
|
|
2809
2810
|
xr({
|
|
2810
2811
|
data: t,
|
|
2811
|
-
dataStruct:
|
|
2812
|
+
dataStruct: Et,
|
|
2812
2813
|
throwError: !1
|
|
2813
2814
|
});
|
|
2814
|
-
}, $n = (t, e, r
|
|
2815
|
+
}, $n = (t, e, r) => {
|
|
2815
2816
|
if (typeof t == "string")
|
|
2816
2817
|
return t;
|
|
2817
2818
|
const n = {
|
|
@@ -2857,7 +2858,7 @@ const bh = (t) => {
|
|
|
2857
2858
|
class D {
|
|
2858
2859
|
constructor(e, r) {
|
|
2859
2860
|
w(this, "nodeType", "NODE"), w(this, "rawData"), w(this, "data"), w(this, "emitter", ne), w(this, "parent"), w(this, "materialsModel"), w(this, "listenerHandle"), w(this, "onChangeCbQueue"), this.rawData = JSON.parse(JSON.stringify(e)), bh(e);
|
|
2860
|
-
const n = (r == null ? void 0 : r.materials) || new
|
|
2861
|
+
const n = (r == null ? void 0 : r.materials) || new $t([]);
|
|
2861
2862
|
this.parent = (r == null ? void 0 : r.parent) || null, this.materialsModel = n, this.data = $n(e, this, n), this.listenerHandle = [], this.onChangeCbQueue = [], this.registerListener();
|
|
2862
2863
|
}
|
|
2863
2864
|
registerListener() {
|
|
@@ -2897,7 +2898,7 @@ class D {
|
|
|
2897
2898
|
...this.data,
|
|
2898
2899
|
...e
|
|
2899
2900
|
};
|
|
2900
|
-
return this.data = $n(r, this), r;
|
|
2901
|
+
return this.data = $n(r, this, this.materialsModel), r;
|
|
2901
2902
|
}
|
|
2902
2903
|
updateValue(e) {
|
|
2903
2904
|
const r = this.data, n = this.updateWithPlainObj(e);
|
|
@@ -2937,29 +2938,29 @@ class D {
|
|
|
2937
2938
|
if (typeof n == "string")
|
|
2938
2939
|
return n;
|
|
2939
2940
|
const o = {};
|
|
2940
|
-
Object.keys(n.props || {}).forEach((
|
|
2941
|
-
o[
|
|
2941
|
+
Object.keys(n.props || {}).forEach((l) => {
|
|
2942
|
+
o[l] = n.props[l].export(e);
|
|
2942
2943
|
});
|
|
2943
|
-
const a = (r = n.children) == null ? void 0 : r.map((
|
|
2944
|
-
Object.keys(i).forEach((
|
|
2945
|
-
const d = $o(i,
|
|
2946
|
-
d && (c[
|
|
2944
|
+
const a = (r = n.children) == null ? void 0 : r.map((l) => l instanceof D ? l.export(e) : l), s = n.configure || {}, i = s.propsSetter || {}, c = {};
|
|
2945
|
+
Object.keys(i).forEach((l) => {
|
|
2946
|
+
const d = $o(i, l, !1);
|
|
2947
|
+
d && (c[l] = d);
|
|
2947
2948
|
}), s.propsSetter = c;
|
|
2948
2949
|
const u = this.materialsModel.usedMaterials.find(
|
|
2949
|
-
(
|
|
2950
|
+
(l) => {
|
|
2950
2951
|
var d;
|
|
2951
|
-
return
|
|
2952
|
+
return l.componentName === ((d = this.material) == null ? void 0 : d.componentName);
|
|
2952
2953
|
}
|
|
2953
2954
|
);
|
|
2954
2955
|
this.material && !u && this.materialsModel.usedMaterials.push(this.material);
|
|
2955
|
-
let
|
|
2956
|
+
let f = {
|
|
2956
2957
|
...n,
|
|
2957
2958
|
configure: s,
|
|
2958
2959
|
props: o,
|
|
2959
2960
|
children: a,
|
|
2960
2961
|
condition: n.condition
|
|
2961
2962
|
};
|
|
2962
|
-
return e === "design" && delete
|
|
2963
|
+
return e === "design" && delete f.id, f = Rr(f), f;
|
|
2963
2964
|
}
|
|
2964
2965
|
}
|
|
2965
2966
|
const xn = (t, e, r) => {
|
|
@@ -3088,8 +3089,8 @@ class Xt {
|
|
|
3088
3089
|
});
|
|
3089
3090
|
}
|
|
3090
3091
|
}
|
|
3091
|
-
const ut = (t) => (t == null ? void 0 : t.type) === V.EXPRESSION, oa = (t) => (t == null ? void 0 : t.type) === V.FUNCTION, _h = (t) => (t == null ? void 0 : t.type) === V.ACTION, tt = () => Math.random().toString(32).slice(3, 9), Sh = (t) => (t == null ? void 0 : t.nodeType) === "NODE", Xe = (t) => (t == null ? void 0 : t.nodeType) === "PROP",
|
|
3092
|
-
function
|
|
3092
|
+
const ut = (t) => (t == null ? void 0 : t.type) === V.EXPRESSION, oa = (t) => (t == null ? void 0 : t.type) === V.FUNCTION, _h = (t) => (t == null ? void 0 : t.type) === V.ACTION, tt = () => Math.random().toString(32).slice(3, 9), Sh = (t) => (t == null ? void 0 : t.nodeType) === "NODE", Xe = (t) => (t == null ? void 0 : t.nodeType) === "PROP", Oh = (t) => (t == null ? void 0 : t.nodeType) === "SLOT", Rr = (t) => Hp(t, (e) => U(e) ? !Object.keys(e).length : L(e) ? !e.length : !e);
|
|
3093
|
+
function Ch(t, e) {
|
|
3093
3094
|
const r = [t];
|
|
3094
3095
|
for (; r.length; ) {
|
|
3095
3096
|
const n = r.shift();
|
|
@@ -3100,7 +3101,7 @@ function Oh(t, e) {
|
|
|
3100
3101
|
r.push(i);
|
|
3101
3102
|
return;
|
|
3102
3103
|
}
|
|
3103
|
-
if (i instanceof
|
|
3104
|
+
if (i instanceof Nt && a(i.value.value), i instanceof at) {
|
|
3104
3105
|
a(i.value);
|
|
3105
3106
|
return;
|
|
3106
3107
|
}
|
|
@@ -3124,7 +3125,7 @@ function Oh(t, e) {
|
|
|
3124
3125
|
}
|
|
3125
3126
|
}
|
|
3126
3127
|
function Tr(t, e) {
|
|
3127
|
-
return
|
|
3128
|
+
return Ch(t, (r) => r.id === e);
|
|
3128
3129
|
}
|
|
3129
3130
|
const jh = (t) => {
|
|
3130
3131
|
const e = Uo(t), r = e.snippets;
|
|
@@ -3177,7 +3178,7 @@ const Te = (t) => {
|
|
|
3177
3178
|
});
|
|
3178
3179
|
});
|
|
3179
3180
|
};
|
|
3180
|
-
class
|
|
3181
|
+
class $t {
|
|
3181
3182
|
constructor(e) {
|
|
3182
3183
|
w(this, "rawData"), w(this, "data"), w(this, "usedMaterials", []), this.rawData = e, Eh(e), this.data = Te(e);
|
|
3183
3184
|
}
|
|
@@ -3223,22 +3224,22 @@ class ht {
|
|
|
3223
3224
|
default: []
|
|
3224
3225
|
}, c = n[a];
|
|
3225
3226
|
if (c.length !== 0) {
|
|
3226
|
-
c.forEach((
|
|
3227
|
-
const d =
|
|
3228
|
-
s.includes(d) || (s.push(d), i[d] = []), i[d].push(
|
|
3227
|
+
c.forEach((l) => {
|
|
3228
|
+
const d = l.category || "default";
|
|
3229
|
+
s.includes(d) || (s.push(d), i[d] = []), i[d].push(l);
|
|
3229
3230
|
});
|
|
3230
3231
|
const u = [];
|
|
3231
|
-
s.forEach((
|
|
3232
|
-
i[
|
|
3233
|
-
name:
|
|
3234
|
-
list: i[
|
|
3232
|
+
s.forEach((l) => {
|
|
3233
|
+
i[l].length && u.push({
|
|
3234
|
+
name: l,
|
|
3235
|
+
list: i[l]
|
|
3235
3236
|
});
|
|
3236
3237
|
});
|
|
3237
|
-
const
|
|
3238
|
+
const f = {
|
|
3238
3239
|
name: a,
|
|
3239
3240
|
list: u
|
|
3240
3241
|
};
|
|
3241
|
-
o.push(
|
|
3242
|
+
o.push(f);
|
|
3242
3243
|
}
|
|
3243
3244
|
}), o = o.sort((a, s) => (a.name || "") > (s.name || "") ? 1 : -1), o;
|
|
3244
3245
|
}
|
|
@@ -3250,31 +3251,31 @@ class ht {
|
|
|
3250
3251
|
}
|
|
3251
3252
|
}
|
|
3252
3253
|
const Nh = R({
|
|
3253
|
-
version:
|
|
3254
|
-
name:
|
|
3255
|
-
css:
|
|
3256
|
-
renderType:
|
|
3254
|
+
version: y(O()),
|
|
3255
|
+
name: y(O()),
|
|
3256
|
+
css: y(O()),
|
|
3257
|
+
renderType: y(k([F(
|
|
3257
3258
|
"COMPONENT"
|
|
3258
3259
|
/* COMPONENT */
|
|
3259
3260
|
), F(
|
|
3260
3261
|
"PAGE"
|
|
3261
3262
|
/* PAGE */
|
|
3262
3263
|
)])),
|
|
3263
|
-
loadType:
|
|
3264
|
-
lifecycle:
|
|
3265
|
-
props:
|
|
3266
|
-
methods:
|
|
3264
|
+
loadType: y(T()),
|
|
3265
|
+
lifecycle: y(T()),
|
|
3266
|
+
props: y(T()),
|
|
3267
|
+
methods: y(P(mh)),
|
|
3267
3268
|
componentsMeta: P(
|
|
3268
3269
|
wr(
|
|
3269
3270
|
R({
|
|
3270
|
-
componentName:
|
|
3271
|
+
componentName: O()
|
|
3271
3272
|
}),
|
|
3272
3273
|
Er
|
|
3273
3274
|
)
|
|
3274
3275
|
),
|
|
3275
|
-
thirdLibs:
|
|
3276
|
+
thirdLibs: y(ah),
|
|
3276
3277
|
componentsTree: gh,
|
|
3277
|
-
assets:
|
|
3278
|
+
assets: y(P(T()))
|
|
3278
3279
|
}), aa = (t) => (xr({
|
|
3279
3280
|
data: t,
|
|
3280
3281
|
dataStruct: Nh,
|
|
@@ -3288,7 +3289,7 @@ const Nh = R({
|
|
|
3288
3289
|
});
|
|
3289
3290
|
class fe {
|
|
3290
3291
|
constructor(e, r) {
|
|
3291
|
-
w(this, "nodeType", "PAGE"), w(this, "rawData"), w(this, "emitter", ne), w(this, "data"), w(this, "parent"), w(this, "materialsModel"), w(this, "assetPackagesList"), aa(e), this.rawData = JSON.parse(JSON.stringify(e)), this.materialsModel = new
|
|
3292
|
+
w(this, "nodeType", "PAGE"), w(this, "rawData"), w(this, "emitter", ne), w(this, "data"), w(this, "parent"), w(this, "materialsModel"), w(this, "assetPackagesList"), aa(e), this.rawData = JSON.parse(JSON.stringify(e)), this.materialsModel = new $t((r == null ? void 0 : r.materials) || []), this.data = Ae(e, this, this.materialsModel), this.assetPackagesList = [...(r == null ? void 0 : r.assetPackagesList) || [], ...this.data.assets || []];
|
|
3292
3293
|
}
|
|
3293
3294
|
updatePage(e) {
|
|
3294
3295
|
const r = this.data;
|
|
@@ -3323,7 +3324,7 @@ class fe {
|
|
|
3323
3324
|
return console.warn("Not found parent node"), !1;
|
|
3324
3325
|
if (a instanceof at)
|
|
3325
3326
|
return console.warn("CProp can not add node"), !1;
|
|
3326
|
-
if (a instanceof
|
|
3327
|
+
if (a instanceof Nt) {
|
|
3327
3328
|
const i = a.value.value, c = i.findIndex((u) => u === r) ?? -1;
|
|
3328
3329
|
return c >= 0 ? (n === "BEFORE" ? i.splice(c, 0, e) : i.splice(c + 1, 0, e), e.parent = a, (o = a.parent) == null || o.updateValue(), !0) : !1;
|
|
3329
3330
|
}
|
|
@@ -3384,7 +3385,7 @@ class fe {
|
|
|
3384
3385
|
const n = e.parent;
|
|
3385
3386
|
if (!n)
|
|
3386
3387
|
throw new Error("parent node is null or undefined, pls check it");
|
|
3387
|
-
if (n instanceof
|
|
3388
|
+
if (n instanceof Nt) {
|
|
3388
3389
|
const o = n.value.value, a = o.findIndex((i) => i === e), s = o[a];
|
|
3389
3390
|
return o.splice(a, 1), (r = n.parent) == null || r.updateValue(), s;
|
|
3390
3391
|
}
|
|
@@ -3401,9 +3402,9 @@ class fe {
|
|
|
3401
3402
|
export(e = Nr.SAVE) {
|
|
3402
3403
|
var r;
|
|
3403
3404
|
const n = this.data.componentsTree.export(e), o = this.assetPackagesList, a = [], s = this.materialsModel.usedMaterials.map((c) => {
|
|
3404
|
-
const u = o.find((
|
|
3405
|
-
var
|
|
3406
|
-
return
|
|
3405
|
+
const u = o.find((f) => {
|
|
3406
|
+
var l;
|
|
3407
|
+
return f.package === ((l = c.value.npm) == null ? void 0 : l.package);
|
|
3407
3408
|
});
|
|
3408
3409
|
return u && a.push(u), {
|
|
3409
3410
|
componentName: c.componentName,
|
|
@@ -3419,7 +3420,7 @@ class fe {
|
|
|
3419
3420
|
assets: []
|
|
3420
3421
|
};
|
|
3421
3422
|
return (r = this.data.thirdLibs) == null || r.forEach((c) => {
|
|
3422
|
-
const u = o.find((
|
|
3423
|
+
const u = o.find((f) => c.package === f.package);
|
|
3423
3424
|
u && a.push(u);
|
|
3424
3425
|
}), i.assets = Yp(a, (c) => c.package), i = Qo(i, ["id"]), JSON.parse(JSON.stringify(i));
|
|
3425
3426
|
}
|
|
@@ -3428,70 +3429,70 @@ class fe {
|
|
|
3428
3429
|
}
|
|
3429
3430
|
}
|
|
3430
3431
|
Ft.ROOT_CONTAINER;
|
|
3431
|
-
const
|
|
3432
|
+
const Ce = "DYNAMIC", $h = ["$$context", "$$nodeModel"], sa = "ON_DID_RENDER", ia = "ON_WILL_DESTROY", xh = [sa, ia], Ze = (t, e) => {
|
|
3432
3433
|
let r = t;
|
|
3433
3434
|
return e && (r = {
|
|
3434
3435
|
...t
|
|
3435
3436
|
}, r.__proto__ = e || null), r;
|
|
3436
3437
|
}, Zt = (t, e = {}, ...r) => typeof t == "string" || typeof t == "number" ? String(t) : ($h.forEach((o) => {
|
|
3437
|
-
o in e && t.__CP_TYPE__ !==
|
|
3438
|
+
o in e && t.__CP_TYPE__ !== Ce && delete e[o];
|
|
3438
3439
|
}), x.createElement(t, e, ...r)), Rn = (t = {}, e) => {
|
|
3439
3440
|
const r = [], n = (o, a) => {
|
|
3440
3441
|
let s = a;
|
|
3441
3442
|
Xe(a) && (s = a.value), e(s) ? r.push({
|
|
3442
3443
|
keyPath: o,
|
|
3443
3444
|
val: s
|
|
3444
|
-
}) :
|
|
3445
|
+
}) : Ct(s) ? s.forEach((i, c) => {
|
|
3445
3446
|
n([...o, String(c)], i);
|
|
3446
3447
|
}) : At(s) && Object.keys(s).forEach((i) => {
|
|
3447
3448
|
n([...o, i], s[i]);
|
|
3448
3449
|
});
|
|
3449
3450
|
};
|
|
3450
3451
|
return n(["$root"], t), r;
|
|
3451
|
-
},
|
|
3452
|
+
}, St = (t, e) => {
|
|
3452
3453
|
const r = t.handler, { context: n, storeManager: o } = e;
|
|
3453
3454
|
return e.actionVariableSpace || (e.actionVariableSpace = {}), async function(...a) {
|
|
3454
|
-
const s = {}, i = async (
|
|
3455
|
-
const
|
|
3456
|
-
if (
|
|
3455
|
+
const s = {}, i = async (f) => {
|
|
3456
|
+
const l = f;
|
|
3457
|
+
if (l.type === "RUN_CODE") {
|
|
3457
3458
|
const d = me({
|
|
3458
3459
|
funcName: "",
|
|
3459
3460
|
funcBody: `function() {
|
|
3460
|
-
${
|
|
3461
|
+
${l.value} }`,
|
|
3461
3462
|
nodeContext: n,
|
|
3462
3463
|
storeManager: o,
|
|
3463
3464
|
$$response: e.$$response,
|
|
3464
3465
|
actionVariableSpace: e.actionVariableSpace
|
|
3465
3466
|
});
|
|
3466
3467
|
let p;
|
|
3467
|
-
e.$$response !== void 0 ? p = d(e.$$response, ...a) : p = d(...a), p != null && p.then ? s[
|
|
3468
|
+
e.$$response !== void 0 ? p = d(e.$$response, ...a) : p = d(...a), p != null && p.then ? s[l.id] = await p : s[l.id] = p;
|
|
3468
3469
|
}
|
|
3469
|
-
if (
|
|
3470
|
-
const p = Rh(
|
|
3471
|
-
p != null && p.then ? s[
|
|
3470
|
+
if (l.type === "JUMP_LINK") {
|
|
3471
|
+
const p = Rh(l, e)(...a);
|
|
3472
|
+
p != null && p.then ? s[l.id] = await p : s[l.id] = p;
|
|
3472
3473
|
}
|
|
3473
|
-
if (
|
|
3474
|
-
const { run: d, afterFailedResponse: p, afterSuccessResponse: b } = Th(
|
|
3474
|
+
if (l.type === "REQUEST_API") {
|
|
3475
|
+
const { run: d, afterFailedResponse: p, afterSuccessResponse: b } = Th(l, e);
|
|
3475
3476
|
try {
|
|
3476
|
-
const
|
|
3477
|
-
|
|
3478
|
-
const h = b(s[
|
|
3477
|
+
const S = d(...a);
|
|
3478
|
+
S != null && S.then ? s[l.id] = await S : s[l.id] = S, l.responseVarName && (e.actionVariableSpace[l.responseVarName] = s[l.id]);
|
|
3479
|
+
const h = b(s[l.id], ...a);
|
|
3479
3480
|
return h != null && h.then ? await h : h;
|
|
3480
|
-
} catch (
|
|
3481
|
-
const h = await p(
|
|
3481
|
+
} catch (S) {
|
|
3482
|
+
const h = await p(S);
|
|
3482
3483
|
return h != null && h.then ? await h : h;
|
|
3483
3484
|
}
|
|
3484
3485
|
}
|
|
3485
|
-
if (
|
|
3486
|
-
const p = Ah(
|
|
3487
|
-
p != null && p.then ? s[
|
|
3486
|
+
if (l.type === "CALL_NODE_METHOD") {
|
|
3487
|
+
const p = Ah(l, e)(...a);
|
|
3488
|
+
p != null && p.then ? s[l.id] = await p : s[l.id] = p, l.returnVarName && (e.actionVariableSpace[l.returnVarName] = s[l.id]);
|
|
3488
3489
|
}
|
|
3489
|
-
if (
|
|
3490
|
-
const d = Mh(
|
|
3490
|
+
if (l.type === "ASSIGN_VALUE") {
|
|
3491
|
+
const d = Mh(l, e);
|
|
3491
3492
|
let p = [...a];
|
|
3492
3493
|
e.$$response !== void 0 && (p = [e.$$response, p]);
|
|
3493
3494
|
const b = d(...p);
|
|
3494
|
-
s[
|
|
3495
|
+
s[l.id] = await b;
|
|
3495
3496
|
}
|
|
3496
3497
|
};
|
|
3497
3498
|
let c = r[0];
|
|
@@ -3499,7 +3500,7 @@ const Oe = "DYNAMIC", $h = ["$$context", "$$nodeModel"], sa = "ON_DID_RENDER", i
|
|
|
3499
3500
|
for (; c; ) {
|
|
3500
3501
|
if (u.has(c.id))
|
|
3501
3502
|
return;
|
|
3502
|
-
await i(c), u.add(c.id), c = r.find((
|
|
3503
|
+
await i(c), u.add(c.id), c = r.find((l) => (c == null ? void 0 : c.next) && l.id === (c == null ? void 0 : c.next));
|
|
3503
3504
|
}
|
|
3504
3505
|
};
|
|
3505
3506
|
};
|
|
@@ -3507,7 +3508,7 @@ function Rh(t, e) {
|
|
|
3507
3508
|
return lt(t.link, e);
|
|
3508
3509
|
}
|
|
3509
3510
|
const lt = (t, e) => function(...r) {
|
|
3510
|
-
return ut(t) ?
|
|
3511
|
+
return ut(t) ? bt(t.value, {
|
|
3511
3512
|
...e.context,
|
|
3512
3513
|
nodeContext: e.context,
|
|
3513
3514
|
storeManager: e.storeManager,
|
|
@@ -3538,10 +3539,10 @@ const lt = (t, e) => function(...r) {
|
|
|
3538
3539
|
Object.keys(u).forEach((b) => {
|
|
3539
3540
|
u[b] = lt(u[b], e)(...a);
|
|
3540
3541
|
});
|
|
3541
|
-
const
|
|
3542
|
+
const f = t.method || "GET";
|
|
3542
3543
|
return (p = (d = e.context).requestAPI) == null ? void 0 : p.call(d, {
|
|
3543
3544
|
url: s,
|
|
3544
|
-
method:
|
|
3545
|
+
method: f,
|
|
3545
3546
|
header: u,
|
|
3546
3547
|
body: i,
|
|
3547
3548
|
query: c
|
|
@@ -3551,7 +3552,7 @@ const lt = (t, e) => function(...r) {
|
|
|
3551
3552
|
if (!t.afterSuccessResponse)
|
|
3552
3553
|
return a;
|
|
3553
3554
|
const i = [...t.afterSuccessResponse || [], ...t.afterFailedResponse || []];
|
|
3554
|
-
return
|
|
3555
|
+
return St(
|
|
3555
3556
|
{
|
|
3556
3557
|
type: "ACTION",
|
|
3557
3558
|
handler: i
|
|
@@ -3566,7 +3567,7 @@ const lt = (t, e) => function(...r) {
|
|
|
3566
3567
|
if (!t.afterFailedResponse)
|
|
3567
3568
|
return a;
|
|
3568
3569
|
const i = [...t.afterFailedResponse || [], ...t.afterSuccessResponse || []];
|
|
3569
|
-
return
|
|
3570
|
+
return St(
|
|
3570
3571
|
{
|
|
3571
3572
|
type: "ACTION",
|
|
3572
3573
|
handler: i
|
|
@@ -3611,110 +3612,104 @@ const lt = (t, e) => function(...r) {
|
|
|
3611
3612
|
} else t.valueType === "MEMORY" && (e.actionVariableSpace[t.targetValueName] = a);
|
|
3612
3613
|
return a;
|
|
3613
3614
|
}, ae = (t = {}, e) => {
|
|
3614
|
-
const { $$context: r,
|
|
3615
|
-
if (Array.isArray(
|
|
3616
|
-
return
|
|
3617
|
-
if (Xe(
|
|
3618
|
-
return
|
|
3619
|
-
if (
|
|
3620
|
-
const
|
|
3615
|
+
const { $$context: r, getComponent: n, storeManager: o } = e, a = t, s = (c) => {
|
|
3616
|
+
if (Array.isArray(c))
|
|
3617
|
+
return c.map((u) => s(u));
|
|
3618
|
+
if (Xe(c))
|
|
3619
|
+
return s(c.value);
|
|
3620
|
+
if (Oh(c)) {
|
|
3621
|
+
const u = c.value, f = u.value;
|
|
3621
3622
|
if (!f)
|
|
3622
3623
|
return console.warn("slot value is null, this maybe cause some error, pls check it", t), () => {
|
|
3623
3624
|
};
|
|
3624
|
-
const
|
|
3625
|
-
const
|
|
3626
|
-
if (n.get(p.id))
|
|
3627
|
-
return {
|
|
3628
|
-
key: b,
|
|
3629
|
-
component: n.get(p.id)
|
|
3630
|
-
};
|
|
3631
|
-
const _ = o(p), h = Ar(_, p, {
|
|
3625
|
+
const l = (d) => {
|
|
3626
|
+
const p = `${d.id}-${Ce}`, b = n(d), S = Ar(b, d, {
|
|
3632
3627
|
...e
|
|
3633
|
-
}),
|
|
3628
|
+
}), h = u.params || [];
|
|
3634
3629
|
return {
|
|
3635
|
-
component: (...
|
|
3636
|
-
const
|
|
3630
|
+
component: (...g) => {
|
|
3631
|
+
const _ = po(g, h), C = Ze(
|
|
3637
3632
|
{
|
|
3638
|
-
params:
|
|
3633
|
+
params: _,
|
|
3639
3634
|
nodeRefs: r.nodeRefs
|
|
3640
3635
|
},
|
|
3641
3636
|
r
|
|
3642
3637
|
);
|
|
3643
|
-
return Zt(
|
|
3644
|
-
$$context:
|
|
3645
|
-
key:
|
|
3638
|
+
return Zt(S, {
|
|
3639
|
+
$$context: C,
|
|
3640
|
+
key: p
|
|
3646
3641
|
});
|
|
3647
3642
|
},
|
|
3648
|
-
key:
|
|
3643
|
+
key: p
|
|
3649
3644
|
};
|
|
3650
3645
|
};
|
|
3651
3646
|
if (Array.isArray(f)) {
|
|
3652
|
-
const
|
|
3653
|
-
return (...
|
|
3654
|
-
if (Nc(
|
|
3655
|
-
const
|
|
3656
|
-
return x.createElement(
|
|
3647
|
+
const d = f == null ? void 0 : f.map((p) => l(p));
|
|
3648
|
+
return (...p) => d.map((b) => {
|
|
3649
|
+
if (Nc(b.component)) {
|
|
3650
|
+
const h = b.component;
|
|
3651
|
+
return x.createElement(h, {
|
|
3657
3652
|
$$context: r,
|
|
3658
|
-
key:
|
|
3653
|
+
key: b.key
|
|
3659
3654
|
});
|
|
3660
3655
|
} else {
|
|
3661
|
-
const
|
|
3662
|
-
return
|
|
3656
|
+
const h = b.component;
|
|
3657
|
+
return h == null ? void 0 : h(...p);
|
|
3663
3658
|
}
|
|
3664
3659
|
});
|
|
3665
3660
|
} else
|
|
3666
|
-
return
|
|
3661
|
+
return l(f).component;
|
|
3667
3662
|
} else {
|
|
3668
|
-
if (ut(
|
|
3669
|
-
return
|
|
3670
|
-
if (oa(
|
|
3671
|
-
const
|
|
3663
|
+
if (ut(c))
|
|
3664
|
+
return bt(c.value, r || {});
|
|
3665
|
+
if (oa(c)) {
|
|
3666
|
+
const u = c;
|
|
3672
3667
|
return me({
|
|
3673
|
-
funcBody:
|
|
3674
|
-
funcName:
|
|
3668
|
+
funcBody: u.value,
|
|
3669
|
+
funcName: u.name || "",
|
|
3675
3670
|
nodeContext: r,
|
|
3676
|
-
storeManager:
|
|
3671
|
+
storeManager: o
|
|
3677
3672
|
});
|
|
3678
3673
|
} else {
|
|
3679
|
-
if (_h(
|
|
3680
|
-
return
|
|
3674
|
+
if (_h(c))
|
|
3675
|
+
return St(c, {
|
|
3681
3676
|
context: r,
|
|
3682
|
-
storeManager:
|
|
3677
|
+
storeManager: o,
|
|
3683
3678
|
actionVariableSpace: {}
|
|
3684
3679
|
});
|
|
3685
|
-
if (At(
|
|
3686
|
-
let
|
|
3687
|
-
Xe(
|
|
3688
|
-
const f =
|
|
3689
|
-
return Object.keys(
|
|
3690
|
-
d
|
|
3691
|
-
}),
|
|
3680
|
+
if (At(c)) {
|
|
3681
|
+
let u = c;
|
|
3682
|
+
Xe(c) && (u = c.value);
|
|
3683
|
+
const f = u, l = {};
|
|
3684
|
+
return Object.keys(u).forEach((d) => {
|
|
3685
|
+
l[d] = s(f[d]);
|
|
3686
|
+
}), l;
|
|
3692
3687
|
} else
|
|
3693
|
-
return
|
|
3688
|
+
return c;
|
|
3694
3689
|
}
|
|
3695
3690
|
}
|
|
3696
|
-
},
|
|
3697
|
-
return Object.keys(
|
|
3698
|
-
const
|
|
3699
|
-
c
|
|
3700
|
-
}),
|
|
3691
|
+
}, i = {};
|
|
3692
|
+
return Object.keys(a).forEach((c) => {
|
|
3693
|
+
const u = a[c];
|
|
3694
|
+
i[c] = s(u);
|
|
3695
|
+
}), i;
|
|
3701
3696
|
}, Ih = (t, e) => {
|
|
3702
3697
|
const { runtimeComponentCache: r, $$context: n = {}, getComponent: o, renderMode: a } = e, { $$context: s, idx: i, ...c } = e;
|
|
3703
|
-
return typeof t == "string" ? Zt(t) : Sh(t) ? (({ currentNode:
|
|
3704
|
-
const
|
|
3698
|
+
return typeof t == "string" ? Zt(t) : Sh(t) ? (({ currentNode: f }) => {
|
|
3699
|
+
const l = f.value.id;
|
|
3705
3700
|
let d = null;
|
|
3706
|
-
if (r.get(
|
|
3707
|
-
const
|
|
3708
|
-
d =
|
|
3701
|
+
if (r.get(l)) {
|
|
3702
|
+
const S = r.get(l);
|
|
3703
|
+
d = S == null ? void 0 : S.component;
|
|
3709
3704
|
} else {
|
|
3710
|
-
const
|
|
3711
|
-
d = Ar(
|
|
3705
|
+
const S = o(f);
|
|
3706
|
+
d = Ar(S, f, {
|
|
3712
3707
|
...c
|
|
3713
|
-
}), !r.get(
|
|
3708
|
+
}), !r.get(l) && a !== "design" && r.set(l, {
|
|
3714
3709
|
component: d
|
|
3715
3710
|
});
|
|
3716
3711
|
}
|
|
3717
|
-
const p = `${
|
|
3712
|
+
const p = `${l}-${Ce}`;
|
|
3718
3713
|
return Zt(d, {
|
|
3719
3714
|
$$context: n,
|
|
3720
3715
|
$$nodeModel: t,
|
|
@@ -3732,8 +3727,8 @@ const lt = (t, e) => function(...r) {
|
|
|
3732
3727
|
onComponentDestroy: i,
|
|
3733
3728
|
refManager: c,
|
|
3734
3729
|
processNodeConfigHook: u,
|
|
3735
|
-
requestAPI:
|
|
3736
|
-
doc:
|
|
3730
|
+
requestAPI: f,
|
|
3731
|
+
doc: l
|
|
3737
3732
|
} = r, { ...d } = r;
|
|
3738
3733
|
class p extends x.Component {
|
|
3739
3734
|
constructor(h) {
|
|
@@ -3759,25 +3754,27 @@ const lt = (t, e) => function(...r) {
|
|
|
3759
3754
|
j(this, "getStyleDomById", (h) => {
|
|
3760
3755
|
const m = this.mediaStyleDomMap;
|
|
3761
3756
|
let v = m[h];
|
|
3762
|
-
return v || (v =
|
|
3757
|
+
return v || (v = l.createElement("style"), m[h] = v), v.id = h, v;
|
|
3763
3758
|
});
|
|
3764
3759
|
j(this, "addMediaCSS", () => {
|
|
3765
3760
|
var v;
|
|
3766
3761
|
let h = this.domHeader;
|
|
3767
|
-
if (h || (h = (v =
|
|
3762
|
+
if (h || (h = (v = l.getElementsByTagName("head")) == null ? void 0 : v[0], this.domHeader = h), !this.domHeader) {
|
|
3763
|
+
console.warn("not found header dom");
|
|
3768
3764
|
return;
|
|
3765
|
+
}
|
|
3769
3766
|
const m = this._NODE_MODEL.value.css;
|
|
3770
3767
|
m && m.value.forEach((g) => {
|
|
3771
3768
|
var N;
|
|
3772
|
-
const
|
|
3773
|
-
let
|
|
3774
|
-
if (g.state !== "normal" && (
|
|
3775
|
-
const $ = this.getStyleDomById(
|
|
3776
|
-
$.innerText = `.${
|
|
3769
|
+
const _ = `${this.UNIQUE_ID}_${g.state}`;
|
|
3770
|
+
let C = Wr(this._NODE_MODEL);
|
|
3771
|
+
if (g.state !== "normal" && (C = `${C}:${g.state}`), g.text) {
|
|
3772
|
+
const $ = this.getStyleDomById(_);
|
|
3773
|
+
$.innerText = `.${C} { ${g.text} }`, h == null || h.appendChild($);
|
|
3777
3774
|
}
|
|
3778
3775
|
(N = g.media) != null && N.length && g.media.forEach(($) => {
|
|
3779
|
-
const E = `${
|
|
3780
|
-
Y.media = `screen and (${$.type}:${$.value}px)`, Y.innerHTML = `.${
|
|
3776
|
+
const E = `${_}_${$.type}_${$.value}`, Y = this.getStyleDomById(E);
|
|
3777
|
+
Y.media = `screen and (${$.type}:${$.value}px)`, Y.innerHTML = `.${C} { ${$.text} }`, h == null || h.appendChild(Y);
|
|
3781
3778
|
});
|
|
3782
3779
|
});
|
|
3783
3780
|
});
|
|
@@ -3799,9 +3796,9 @@ const lt = (t, e) => function(...r) {
|
|
|
3799
3796
|
...e.value.state || {}
|
|
3800
3797
|
})) : this.storeState = n.addStore(m, () => ({
|
|
3801
3798
|
...e.value.state || {}
|
|
3802
|
-
})), this.storeState.subscribe((
|
|
3799
|
+
})), this.storeState.subscribe((_) => {
|
|
3803
3800
|
this.setState({
|
|
3804
|
-
...
|
|
3801
|
+
..._
|
|
3805
3802
|
});
|
|
3806
3803
|
}), this.connectStore();
|
|
3807
3804
|
const g = o.get(m);
|
|
@@ -3811,16 +3808,16 @@ const lt = (t, e) => function(...r) {
|
|
|
3811
3808
|
}, o.add(m, this.variableSpace));
|
|
3812
3809
|
}
|
|
3813
3810
|
connectStore() {
|
|
3814
|
-
const h = Rn(e.props, (
|
|
3811
|
+
const h = Rn(e.props, (C) => !!ut(C)), m = Rn(
|
|
3815
3812
|
{
|
|
3816
3813
|
css: e.value.css,
|
|
3817
3814
|
class: e.value.classNames
|
|
3818
3815
|
},
|
|
3819
|
-
(
|
|
3816
|
+
(C) => !!ut(C)
|
|
3820
3817
|
);
|
|
3821
3818
|
let v = [];
|
|
3822
|
-
[...h, ...m].map((
|
|
3823
|
-
const N =
|
|
3819
|
+
[...h, ...m].map((C) => {
|
|
3820
|
+
const N = C.val, $ = [
|
|
3824
3821
|
/\$\$context.stateManager\.(.+?)\./gim,
|
|
3825
3822
|
/\$\$context.stateManager\["(.+?)"\]/gim,
|
|
3826
3823
|
/\$\$context.stateManager\['(.+?)'\]/gim,
|
|
@@ -3831,37 +3828,39 @@ const lt = (t, e) => function(...r) {
|
|
|
3831
3828
|
], E = Tc(N.value, $);
|
|
3832
3829
|
v = [...v, ...E];
|
|
3833
3830
|
}).filter(Boolean);
|
|
3834
|
-
const g = Array.from(new Set(v)),
|
|
3835
|
-
g.length && g.forEach((
|
|
3836
|
-
n.getStore(
|
|
3837
|
-
const $ = n.connect(
|
|
3831
|
+
const g = Array.from(new Set(v)), _ = [];
|
|
3832
|
+
g.length && g.forEach((C) => {
|
|
3833
|
+
n.getStore(C) || (n.addStore(C, () => ({})), console.warn(n, C, "not exits"));
|
|
3834
|
+
const $ = n.connect(C, (E) => {
|
|
3838
3835
|
this.setState({
|
|
3839
3836
|
...E
|
|
3840
3837
|
});
|
|
3841
3838
|
});
|
|
3842
|
-
|
|
3843
|
-
}), this.storeListenDisposeList =
|
|
3839
|
+
_.push($);
|
|
3840
|
+
}), this.storeListenDisposeList = _;
|
|
3844
3841
|
}
|
|
3845
3842
|
componentDidMount() {
|
|
3846
|
-
var
|
|
3843
|
+
var v;
|
|
3847
3844
|
this.addMediaCSS(), a == null || a(this.targetComponentRef, e, this), s == null || s(this, e);
|
|
3848
|
-
const h = () =>
|
|
3845
|
+
const h = (v = e.value.eventListener) == null ? void 0 : v.find((g) => g.name === sa);
|
|
3846
|
+
h && St(h.func, {
|
|
3847
|
+
context: this.createCurrentNodeCtx(),
|
|
3848
|
+
storeManager: n,
|
|
3849
|
+
actionVariableSpace: {}
|
|
3850
|
+
})();
|
|
3851
|
+
const m = () => {
|
|
3849
3852
|
n.setStore(e.value.nodeName || e.id, this.storeState), this.storeState.setState({
|
|
3850
3853
|
...this.state,
|
|
3851
3854
|
...e.value.state || {}
|
|
3852
3855
|
}), this.rebuildNode();
|
|
3853
|
-
}
|
|
3854
|
-
|
|
3855
|
-
context: this.createCurrentNodeCtx(),
|
|
3856
|
-
storeManager: n,
|
|
3857
|
-
actionVariableSpace: {}
|
|
3858
|
-
})(), e.onChange(h);
|
|
3856
|
+
};
|
|
3857
|
+
e.onChange(m);
|
|
3859
3858
|
}
|
|
3860
3859
|
componentWillUnmount() {
|
|
3861
3860
|
var v;
|
|
3862
3861
|
this.storeListenDisposeList.forEach((g) => g()), this.removeMediaCSS(), i == null || i(this, e);
|
|
3863
3862
|
const h = ia, m = (v = e.value.eventListener) == null ? void 0 : v.find((g) => g.name === h);
|
|
3864
|
-
m &&
|
|
3863
|
+
m && St(m.func, {
|
|
3865
3864
|
context: this.createCurrentNodeCtx(),
|
|
3866
3865
|
storeManager: n,
|
|
3867
3866
|
actionVariableSpace: {}
|
|
@@ -3877,19 +3876,19 @@ const lt = (t, e) => function(...r) {
|
|
|
3877
3876
|
$$context: m,
|
|
3878
3877
|
...d
|
|
3879
3878
|
}
|
|
3880
|
-
), g = e.value.methods || [],
|
|
3881
|
-
m.methods =
|
|
3879
|
+
), g = e.value.methods || [], _ = v.methods, C = g.reduce((N, $, E) => (N[$.name] = _[E], N), {});
|
|
3880
|
+
m.methods = C, this.variableSpace.methods = Object.assign(this.variableSpace.methods, C);
|
|
3882
3881
|
}
|
|
3883
3882
|
/** 处理根节点的 context */
|
|
3884
3883
|
processRootContext(h) {
|
|
3885
|
-
e.value.componentName === Ft.ROOT_CONTAINER && (h.globalState = this.state, h.updateGlobalState = this.updateState, h.requestAPI =
|
|
3884
|
+
e.value.componentName === Ft.ROOT_CONTAINER && (h.globalState = this.state, h.updateGlobalState = this.updateState, h.requestAPI = f, h.getGlobalState = () => this.state);
|
|
3886
3885
|
}
|
|
3887
3886
|
processNodeClassName(h, m) {
|
|
3888
|
-
var
|
|
3889
|
-
const v = ((
|
|
3887
|
+
var _;
|
|
3888
|
+
const v = ((_ = e.value.classNames) == null ? void 0 : _.map((C) => {
|
|
3890
3889
|
var E;
|
|
3891
|
-
const N =
|
|
3892
|
-
return (ut(
|
|
3890
|
+
const N = C.name;
|
|
3891
|
+
return (ut(C.status) ? bt(((E = C.status) == null ? void 0 : E.value) || "", m) : !1) ? N : "";
|
|
3893
3892
|
})) || [];
|
|
3894
3893
|
let g = `${h ?? ""} ${v.join(" ")}`.trim();
|
|
3895
3894
|
return e.value.css && (g = `${Wr(e)} ${g}`.trim()), g;
|
|
@@ -3912,8 +3911,8 @@ const lt = (t, e) => function(...r) {
|
|
|
3912
3911
|
v = Array.isArray(h) ? h : [h];
|
|
3913
3912
|
else {
|
|
3914
3913
|
const g = [];
|
|
3915
|
-
e.value.children.forEach((
|
|
3916
|
-
const $ = Ih(
|
|
3914
|
+
e.value.children.forEach((C, N) => {
|
|
3915
|
+
const $ = Ih(C, {
|
|
3917
3916
|
$$context: m,
|
|
3918
3917
|
idx: N,
|
|
3919
3918
|
...d
|
|
@@ -3925,21 +3924,21 @@ const lt = (t, e) => function(...r) {
|
|
|
3925
3924
|
}
|
|
3926
3925
|
processNodeConditionAndConfigHook(h, m, v) {
|
|
3927
3926
|
let g = e.value.condition ?? !0;
|
|
3928
|
-
typeof g != "boolean" && (g =
|
|
3929
|
-
let
|
|
3927
|
+
typeof g != "boolean" && (g = bt(g.value, v || {}));
|
|
3928
|
+
let _ = {
|
|
3930
3929
|
condition: g,
|
|
3931
3930
|
props: h
|
|
3932
3931
|
};
|
|
3933
|
-
u && (
|
|
3934
|
-
const
|
|
3935
|
-
return this._CONDITION =
|
|
3932
|
+
u && (_ = u(_, e));
|
|
3933
|
+
const C = Zt(t, _.props, ...m);
|
|
3934
|
+
return this._CONDITION = _.condition, _.condition ? C : x.createElement(
|
|
3936
3935
|
"div",
|
|
3937
3936
|
{
|
|
3938
3937
|
style: {
|
|
3939
3938
|
display: "none"
|
|
3940
3939
|
}
|
|
3941
3940
|
},
|
|
3942
|
-
|
|
3941
|
+
C
|
|
3943
3942
|
);
|
|
3944
3943
|
}
|
|
3945
3944
|
processNodeEventListener(h) {
|
|
@@ -3947,12 +3946,12 @@ const lt = (t, e) => function(...r) {
|
|
|
3947
3946
|
return m == null || m.forEach((g) => {
|
|
3948
3947
|
if (xh.includes(g.name))
|
|
3949
3948
|
return;
|
|
3950
|
-
const
|
|
3949
|
+
const _ = St(g.func, {
|
|
3951
3950
|
context: h,
|
|
3952
3951
|
storeManager: n,
|
|
3953
3952
|
actionVariableSpace: {}
|
|
3954
3953
|
});
|
|
3955
|
-
v[g.name] =
|
|
3954
|
+
v[g.name] = _;
|
|
3956
3955
|
}), v;
|
|
3957
3956
|
}
|
|
3958
3957
|
createCurrentNodeCtx() {
|
|
@@ -3963,18 +3962,18 @@ const lt = (t, e) => function(...r) {
|
|
|
3963
3962
|
storeManager: n,
|
|
3964
3963
|
getState: () => n.getStateObj(m),
|
|
3965
3964
|
getStateObj: () => n.getStateObj(m),
|
|
3966
|
-
getStateObjById: (
|
|
3965
|
+
getStateObjById: (C) => n.getStateObj(C),
|
|
3967
3966
|
stateManager: n.getStateSnapshot(),
|
|
3968
3967
|
getMethods: () => {
|
|
3969
|
-
const
|
|
3970
|
-
return Qr(
|
|
3968
|
+
const C = o.get(v).methods, N = c.get(v).current;
|
|
3969
|
+
return Qr(C, N);
|
|
3971
3970
|
},
|
|
3972
|
-
getMethodsById: (
|
|
3973
|
-
const N = o.get(
|
|
3971
|
+
getMethodsById: (C) => {
|
|
3972
|
+
const N = o.get(C).methods, $ = c.get(C).current;
|
|
3974
3973
|
return Qr(N, $);
|
|
3975
3974
|
},
|
|
3976
3975
|
getStaticVar: () => o.get(m).staticVar,
|
|
3977
|
-
getStaticVarById: (
|
|
3976
|
+
getStaticVarById: (C) => o.get(C).staticVar,
|
|
3978
3977
|
nodeRefs: h.nodeRefs
|
|
3979
3978
|
};
|
|
3980
3979
|
return this.processRootContext(g), Ze(g, h);
|
|
@@ -3985,7 +3984,7 @@ const lt = (t, e) => function(...r) {
|
|
|
3985
3984
|
const v = {
|
|
3986
3985
|
[ra.COMPONENTS]: r.components
|
|
3987
3986
|
};
|
|
3988
|
-
m.reduce((g,
|
|
3987
|
+
m.reduce((g, _) => (g[_] = v[_], g), h);
|
|
3989
3988
|
}
|
|
3990
3989
|
return h;
|
|
3991
3990
|
}
|
|
@@ -3996,27 +3995,27 @@ const lt = (t, e) => function(...r) {
|
|
|
3996
3995
|
...m
|
|
3997
3996
|
}, g = this.createCurrentNodeCtx();
|
|
3998
3997
|
this.transformMethods({ context: g });
|
|
3999
|
-
let
|
|
3998
|
+
let _ = ae(v, {
|
|
4000
3999
|
$$context: g,
|
|
4001
4000
|
...d
|
|
4002
4001
|
});
|
|
4003
|
-
const
|
|
4004
|
-
Object.assign(
|
|
4005
|
-
const N = this.processNodeClassName(
|
|
4006
|
-
|
|
4002
|
+
const C = this.injectEngEnv();
|
|
4003
|
+
Object.assign(_, C);
|
|
4004
|
+
const N = this.processNodeClassName(_.className, g);
|
|
4005
|
+
_.className = N;
|
|
4007
4006
|
const $ = this.processNodeStyle(g);
|
|
4008
|
-
|
|
4009
|
-
const { children: E } =
|
|
4010
|
-
delete
|
|
4007
|
+
_.style = $;
|
|
4008
|
+
const { children: E } = _;
|
|
4009
|
+
delete _.children;
|
|
4011
4010
|
const Y = this.processNodeChild(E, g);
|
|
4012
|
-
if (
|
|
4011
|
+
if (_.ref = this.targetComponentRef, e.value.eventListener) {
|
|
4013
4012
|
const ct = this.processNodeEventListener(g);
|
|
4014
|
-
|
|
4015
|
-
...
|
|
4013
|
+
_ = {
|
|
4014
|
+
..._,
|
|
4016
4015
|
...ct
|
|
4017
4016
|
};
|
|
4018
4017
|
}
|
|
4019
|
-
return this.processNodeConditionAndConfigHook(
|
|
4018
|
+
return this.processNodeConditionAndConfigHook(_, Y, g);
|
|
4020
4019
|
}
|
|
4021
4020
|
renderLoop() {
|
|
4022
4021
|
const { $$context: h, ...m } = this.props, v = {
|
|
@@ -4025,45 +4024,45 @@ const lt = (t, e) => function(...r) {
|
|
|
4025
4024
|
...m
|
|
4026
4025
|
}, g = this.createCurrentNodeCtx();
|
|
4027
4026
|
this.transformMethods({ context: g });
|
|
4028
|
-
const
|
|
4029
|
-
let
|
|
4030
|
-
if (
|
|
4027
|
+
const _ = e.value.loop;
|
|
4028
|
+
let C = [];
|
|
4029
|
+
if (_ && _.open) {
|
|
4031
4030
|
this.targetComponentRef.current = [];
|
|
4032
|
-
let N =
|
|
4033
|
-
if (ut(
|
|
4034
|
-
const $ =
|
|
4035
|
-
N =
|
|
4031
|
+
let N = _.data || [];
|
|
4032
|
+
if (ut(_.data)) {
|
|
4033
|
+
const $ = _.data;
|
|
4034
|
+
N = bt($.value, g || {});
|
|
4036
4035
|
}
|
|
4037
|
-
return
|
|
4038
|
-
const E = $[1], Y = [
|
|
4036
|
+
return C = N.map((...$) => {
|
|
4037
|
+
const E = $[1], Y = [_.forName || "item", _.forIndex || "index"], it = po($, Y);
|
|
4039
4038
|
let ct = "loopData";
|
|
4040
|
-
|
|
4041
|
-
const
|
|
4039
|
+
_.name && (ct = `${ct}${_.name}`);
|
|
4040
|
+
const yt = Ze(
|
|
4042
4041
|
{
|
|
4043
4042
|
[ct]: it,
|
|
4044
4043
|
nodeRefs: g.nodeRefs
|
|
4045
4044
|
},
|
|
4046
4045
|
g
|
|
4047
4046
|
), H = ae(v, {
|
|
4048
|
-
$$context:
|
|
4047
|
+
$$context: yt,
|
|
4049
4048
|
...d
|
|
4050
4049
|
}), la = this.injectEngEnv();
|
|
4051
4050
|
Object.assign(H, la);
|
|
4052
|
-
const fa = this.processNodeClassName(H.className,
|
|
4051
|
+
const fa = this.processNodeClassName(H.className, yt);
|
|
4053
4052
|
H.className = fa;
|
|
4054
|
-
const da = this.processNodeStyle(
|
|
4053
|
+
const da = this.processNodeStyle(yt);
|
|
4055
4054
|
H.style = da;
|
|
4056
4055
|
const { children: pa } = H;
|
|
4057
4056
|
delete H.children;
|
|
4058
|
-
const ha = this.processNodeChild(pa,
|
|
4059
|
-
if (H.key = `${H.key}-${E}`, ut(
|
|
4060
|
-
const je =
|
|
4057
|
+
const ha = this.processNodeChild(pa, yt);
|
|
4058
|
+
if (H.key = `${H.key}-${E}`, ut(_.key)) {
|
|
4059
|
+
const je = _.key, ma = bt(je.value, yt || {});
|
|
4061
4060
|
H.key += `-${ma}`;
|
|
4062
4061
|
}
|
|
4063
4062
|
return H.ref = (je) => {
|
|
4064
4063
|
this.targetComponentRef.current = this.targetComponentRef.current || [], this.targetComponentRef.current[E] = je;
|
|
4065
|
-
}, this.processNodeConditionAndConfigHook(H, ha,
|
|
4066
|
-
}),
|
|
4064
|
+
}, this.processNodeConditionAndConfigHook(H, ha, yt);
|
|
4065
|
+
}), C;
|
|
4067
4066
|
}
|
|
4068
4067
|
}
|
|
4069
4068
|
render() {
|
|
@@ -4071,7 +4070,7 @@ const lt = (t, e) => function(...r) {
|
|
|
4071
4070
|
return h && h.open ? this.renderLoop() : this.renderCore();
|
|
4072
4071
|
}
|
|
4073
4072
|
}
|
|
4074
|
-
return j(p, "__CP_TYPE__",
|
|
4073
|
+
return j(p, "__CP_TYPE__", Ce), p.displayName = `${e.value.componentName}Dynamic`, p;
|
|
4075
4074
|
};
|
|
4076
4075
|
class Ph {
|
|
4077
4076
|
constructor() {
|
|
@@ -4117,35 +4116,35 @@ class Ph {
|
|
|
4117
4116
|
onComponentMount: i,
|
|
4118
4117
|
onComponentDestroy: c,
|
|
4119
4118
|
renderMode: u,
|
|
4120
|
-
processNodeConfigHook:
|
|
4121
|
-
requestAPI:
|
|
4119
|
+
processNodeConfigHook: f,
|
|
4120
|
+
requestAPI: l,
|
|
4122
4121
|
doc: d
|
|
4123
4122
|
}) {
|
|
4124
|
-
this.renderMode = u, this.components = r, this.onGetRef = n, this.onGetComponent = s, this.onComponentMount = i, this.onComponentDestroy = c, this.processNodeConfigHook =
|
|
4125
|
-
const p = e.value.componentsTree, b = this.getComponent(p),
|
|
4123
|
+
this.renderMode = u, this.components = r, this.onGetRef = n, this.onGetComponent = s, this.onComponentMount = i, this.onComponentDestroy = c, this.processNodeConfigHook = f, this.refManager = o, this.requestAPI = l;
|
|
4124
|
+
const p = e.value.componentsTree, b = this.getComponent(p), S = Ar(b, e.value.componentsTree, {
|
|
4126
4125
|
storeManager: this.storeManager,
|
|
4127
4126
|
variableManager: this.variableManager,
|
|
4128
4127
|
runtimeComponentCache: this.runtimeComponentCache,
|
|
4129
4128
|
getComponent: this.getComponent.bind(this),
|
|
4130
4129
|
refManager: this.refManager,
|
|
4131
4130
|
onGetRef: this.onGetRef,
|
|
4132
|
-
processNodeConfigHook:
|
|
4131
|
+
processNodeConfigHook: f,
|
|
4133
4132
|
onComponentMount: i,
|
|
4134
4133
|
onComponentDestroy: c,
|
|
4135
4134
|
renderMode: u,
|
|
4136
|
-
requestAPI:
|
|
4135
|
+
requestAPI: l,
|
|
4137
4136
|
components: this.components,
|
|
4138
4137
|
doc: d
|
|
4139
4138
|
}), h = {}, m = p.props;
|
|
4140
4139
|
return Object.keys(m).forEach((v) => {
|
|
4141
4140
|
h[v] = m[v].value;
|
|
4142
|
-
}), h.$$context = a, Zt(
|
|
4141
|
+
}), h.$$context = a, Zt(S, h);
|
|
4143
4142
|
}
|
|
4144
4143
|
clear() {
|
|
4145
4144
|
this.runtimeComponentCache.clear(), this.storeManager.destroy();
|
|
4146
4145
|
}
|
|
4147
4146
|
}
|
|
4148
|
-
const _m =
|
|
4147
|
+
const _m = Oa(new Ph());
|
|
4149
4148
|
function Dh(t) {
|
|
4150
4149
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
4151
4150
|
}
|
|
@@ -4165,11 +4164,11 @@ function Lh() {
|
|
|
4165
4164
|
Tn = 1;
|
|
4166
4165
|
var t = x, e = Symbol.for("react.element"), r = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, o = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, a = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
4167
4166
|
function s(i, c, u) {
|
|
4168
|
-
var
|
|
4167
|
+
var f, l = {}, d = null, p = null;
|
|
4169
4168
|
u !== void 0 && (d = "" + u), c.key !== void 0 && (d = "" + c.key), c.ref !== void 0 && (p = c.ref);
|
|
4170
|
-
for (
|
|
4171
|
-
if (i && i.defaultProps) for (
|
|
4172
|
-
return { $$typeof: e, type: i, key: d, ref: p, props:
|
|
4169
|
+
for (f in c) n.call(c, f) && !a.hasOwnProperty(f) && (l[f] = c[f]);
|
|
4170
|
+
if (i && i.defaultProps) for (f in c = i.defaultProps, c) l[f] === void 0 && (l[f] = c[f]);
|
|
4171
|
+
return { $$typeof: e, type: i, key: d, ref: p, props: l, _owner: o.current };
|
|
4173
4172
|
}
|
|
4174
4173
|
return Ut.Fragment = r, Ut.jsx = s, Ut.jsxs = s, Ut;
|
|
4175
4174
|
}
|
|
@@ -4481,7 +4480,7 @@ class Xh extends x.Component {
|
|
|
4481
4480
|
const u = {
|
|
4482
4481
|
...Kh,
|
|
4483
4482
|
...r.components
|
|
4484
|
-
},
|
|
4483
|
+
}, f = this.props.$$context || {};
|
|
4485
4484
|
return n.pageRender(c, {
|
|
4486
4485
|
libs: {},
|
|
4487
4486
|
components: u,
|
|
@@ -4491,10 +4490,10 @@ class Xh extends x.Component {
|
|
|
4491
4490
|
onComponentMount: s,
|
|
4492
4491
|
onComponentDestroy: a,
|
|
4493
4492
|
$$context: {
|
|
4494
|
-
...
|
|
4493
|
+
...f,
|
|
4495
4494
|
nodeRefs: this.refManager
|
|
4496
4495
|
},
|
|
4497
|
-
renderMode: r.renderMode,
|
|
4496
|
+
renderMode: r.renderMode || "normal",
|
|
4498
4497
|
requestAPI: r.requestAPI ?? n.requestAPI,
|
|
4499
4498
|
processNodeConfigHook: r.processNodeConfigHook,
|
|
4500
4499
|
doc: i || document
|
|
@@ -4622,45 +4621,45 @@ function tm() {
|
|
|
4622
4621
|
return i !== s ? null : s;
|
|
4623
4622
|
}
|
|
4624
4623
|
for (var c = s, u = i; ; ) {
|
|
4625
|
-
var
|
|
4626
|
-
if (
|
|
4627
|
-
var
|
|
4628
|
-
if (
|
|
4629
|
-
if (u =
|
|
4624
|
+
var f = c.return;
|
|
4625
|
+
if (f === null) break;
|
|
4626
|
+
var l = f.alternate;
|
|
4627
|
+
if (l === null) {
|
|
4628
|
+
if (u = f.return, u !== null) {
|
|
4630
4629
|
c = u;
|
|
4631
4630
|
continue;
|
|
4632
4631
|
}
|
|
4633
4632
|
break;
|
|
4634
4633
|
}
|
|
4635
|
-
if (
|
|
4636
|
-
for (
|
|
4637
|
-
if (
|
|
4638
|
-
if (
|
|
4639
|
-
|
|
4634
|
+
if (f.child === l.child) {
|
|
4635
|
+
for (l = f.child; l; ) {
|
|
4636
|
+
if (l === c) return r(f), s;
|
|
4637
|
+
if (l === u) return r(f), i;
|
|
4638
|
+
l = l.sibling;
|
|
4640
4639
|
}
|
|
4641
4640
|
throw Error(t(188));
|
|
4642
4641
|
}
|
|
4643
|
-
if (c.return !== u.return) c =
|
|
4642
|
+
if (c.return !== u.return) c = f, u = l;
|
|
4644
4643
|
else {
|
|
4645
|
-
for (var d = !1, p =
|
|
4644
|
+
for (var d = !1, p = f.child; p; ) {
|
|
4646
4645
|
if (p === c) {
|
|
4647
|
-
d = !0, c =
|
|
4646
|
+
d = !0, c = f, u = l;
|
|
4648
4647
|
break;
|
|
4649
4648
|
}
|
|
4650
4649
|
if (p === u) {
|
|
4651
|
-
d = !0, u =
|
|
4650
|
+
d = !0, u = f, c = l;
|
|
4652
4651
|
break;
|
|
4653
4652
|
}
|
|
4654
4653
|
p = p.sibling;
|
|
4655
4654
|
}
|
|
4656
4655
|
if (!d) {
|
|
4657
|
-
for (p =
|
|
4656
|
+
for (p = l.child; p; ) {
|
|
4658
4657
|
if (p === c) {
|
|
4659
|
-
d = !0, c =
|
|
4658
|
+
d = !0, c = l, u = f;
|
|
4660
4659
|
break;
|
|
4661
4660
|
}
|
|
4662
4661
|
if (p === u) {
|
|
4663
|
-
d = !0, u =
|
|
4662
|
+
d = !0, u = l, c = f;
|
|
4664
4663
|
break;
|
|
4665
4664
|
}
|
|
4666
4665
|
p = p.sibling;
|
|
@@ -4802,7 +4801,7 @@ const im = (t) => {
|
|
|
4802
4801
|
n
|
|
4803
4802
|
);
|
|
4804
4803
|
};
|
|
4805
|
-
class
|
|
4804
|
+
class Om extends x.Component {
|
|
4806
4805
|
constructor(r) {
|
|
4807
4806
|
super(r);
|
|
4808
4807
|
j(this, "instanceManager", new sm());
|
|
@@ -4843,18 +4842,18 @@ class Cm extends x.Component {
|
|
|
4843
4842
|
return ((b = (p = n.material) == null ? void 0 : p.value.advanceCustom) == null ? void 0 : b.autoGetDom) ?? !0 ? am(this) : this._dom;
|
|
4844
4843
|
}
|
|
4845
4844
|
render() {
|
|
4846
|
-
var v, g,
|
|
4845
|
+
var v, g, _, C;
|
|
4847
4846
|
const { children: d = [], onlyRenderChild: p, ...b } = this.props;
|
|
4848
|
-
let
|
|
4849
|
-
if (
|
|
4847
|
+
let S = d;
|
|
4848
|
+
if (Ct(d) || (S = [d]), !!!S.filter(Boolean).length && (n.isContainer() || n.value.componentName === Ft.ROOT_CONTAINER)) {
|
|
4850
4849
|
const N = (g = (v = n.material) == null ? void 0 : v.value.advanceCustom) == null ? void 0 : g.dropPlaceholder;
|
|
4851
|
-
|
|
4850
|
+
S.push(
|
|
4852
4851
|
x.createElement(N || o.dropPlaceholder, {
|
|
4853
4852
|
node: n
|
|
4854
4853
|
})
|
|
4855
4854
|
);
|
|
4856
4855
|
}
|
|
4857
|
-
return p ?
|
|
4856
|
+
return p ? S : ((C = (_ = n.material) == null ? void 0 : _.value.advanceCustom) == null ? void 0 : C.autoGetDom) ?? !0 ? x.createElement(a, b, ...S) : x.createElement(
|
|
4858
4857
|
a,
|
|
4859
4858
|
{
|
|
4860
4859
|
...b,
|
|
@@ -4863,11 +4862,11 @@ class Cm extends x.Component {
|
|
|
4863
4862
|
this._dom = $;
|
|
4864
4863
|
}
|
|
4865
4864
|
},
|
|
4866
|
-
...
|
|
4865
|
+
...S
|
|
4867
4866
|
);
|
|
4868
4867
|
}
|
|
4869
4868
|
}
|
|
4870
|
-
return x.forwardRef(function(
|
|
4869
|
+
return x.forwardRef(function(l, d) {
|
|
4871
4870
|
return x.createElement(
|
|
4872
4871
|
Zh,
|
|
4873
4872
|
{
|
|
@@ -4876,7 +4875,7 @@ class Cm extends x.Component {
|
|
|
4876
4875
|
},
|
|
4877
4876
|
x.createElement(i, {
|
|
4878
4877
|
ref: d,
|
|
4879
|
-
...
|
|
4878
|
+
...l
|
|
4880
4879
|
})
|
|
4881
4880
|
);
|
|
4882
4881
|
});
|
|
@@ -4943,33 +4942,33 @@ class Cm extends x.Component {
|
|
|
4943
4942
|
* @returns
|
|
4944
4943
|
*/
|
|
4945
4944
|
processNodeConfigHook: (s, i) => {
|
|
4946
|
-
var b,
|
|
4945
|
+
var b, S;
|
|
4947
4946
|
if (i.nodeType !== "NODE")
|
|
4948
4947
|
return s;
|
|
4949
4948
|
const { props: c, condition: u } = s;
|
|
4950
|
-
let
|
|
4951
|
-
const
|
|
4949
|
+
let f = { ...c };
|
|
4950
|
+
const l = ((b = i.value.configure) == null ? void 0 : b.devState) || {}, d = (S = i.material) == null ? void 0 : S.value.fixedProps;
|
|
4952
4951
|
if (d !== void 0) {
|
|
4953
4952
|
if (At(d))
|
|
4954
|
-
|
|
4955
|
-
...
|
|
4953
|
+
f = {
|
|
4954
|
+
...f,
|
|
4956
4955
|
...d
|
|
4957
4956
|
};
|
|
4958
4957
|
else if (typeof d == "function") {
|
|
4959
|
-
const h = d(
|
|
4960
|
-
|
|
4961
|
-
...
|
|
4958
|
+
const h = d(f);
|
|
4959
|
+
f = {
|
|
4960
|
+
...f,
|
|
4962
4961
|
...h
|
|
4963
4962
|
};
|
|
4964
4963
|
}
|
|
4965
4964
|
}
|
|
4966
4965
|
let p = u;
|
|
4967
|
-
return
|
|
4968
|
-
props: Ec(
|
|
4966
|
+
return l.condition === !1 && (p = l.condition), {
|
|
4967
|
+
props: Ec(f, l.props || {}),
|
|
4969
4968
|
condition: p
|
|
4970
4969
|
};
|
|
4971
4970
|
},
|
|
4972
|
-
|
|
4971
|
+
renderMode: "design",
|
|
4973
4972
|
ref: this.renderRef
|
|
4974
4973
|
});
|
|
4975
4974
|
}
|
|
@@ -4982,7 +4981,7 @@ const ca = (t) => {
|
|
|
4982
4981
|
}, ua = (t) => {
|
|
4983
4982
|
var e;
|
|
4984
4983
|
return t ? (e = t == null ? void 0 : t.stateNode) != null && e._DESIGN_BOX ? t : ua(t.return) : null;
|
|
4985
|
-
},
|
|
4984
|
+
}, Cm = () => {
|
|
4986
4985
|
const t = Fn(null);
|
|
4987
4986
|
return {
|
|
4988
4987
|
ref: t,
|
|
@@ -5017,15 +5016,15 @@ function um() {
|
|
|
5017
5016
|
}, n = {}, o = {}, a = {};
|
|
5018
5017
|
function s(d, p) {
|
|
5019
5018
|
d = d.push ? d : [d];
|
|
5020
|
-
var b = [],
|
|
5021
|
-
for (m = function(
|
|
5022
|
-
N.length && b.push(
|
|
5023
|
-
};
|
|
5024
|
-
if (v = d[
|
|
5019
|
+
var b = [], S = d.length, h = S, m, v, g, _;
|
|
5020
|
+
for (m = function(C, N) {
|
|
5021
|
+
N.length && b.push(C), h--, h || p(b);
|
|
5022
|
+
}; S--; ) {
|
|
5023
|
+
if (v = d[S], g = o[v], g) {
|
|
5025
5024
|
m(v, g);
|
|
5026
5025
|
continue;
|
|
5027
5026
|
}
|
|
5028
|
-
|
|
5027
|
+
_ = a[v] = a[v] || [], _.push(m);
|
|
5029
5028
|
}
|
|
5030
5029
|
}
|
|
5031
5030
|
function i(d, p) {
|
|
@@ -5039,16 +5038,16 @@ function um() {
|
|
|
5039
5038
|
function c(d, p) {
|
|
5040
5039
|
d.call && (d = { success: d }), p.length ? (d.error || r)(p) : (d.success || r)(d);
|
|
5041
5040
|
}
|
|
5042
|
-
function u(d, p, b,
|
|
5043
|
-
var h = document, m = b.async, v = (b.numRetries || 0) + 1, g = b.before || r,
|
|
5044
|
-
if (
|
|
5045
|
-
E = h.createElement("link"), E.rel = "stylesheet", E.href =
|
|
5046
|
-
else if (/(^img!|\.(png|gif|jpg|svg|webp)$)/.test(
|
|
5047
|
-
E = h.createElement("img"), E.src =
|
|
5048
|
-
else if (E = h.createElement("script"), E.src =
|
|
5041
|
+
function u(d, p, b, S) {
|
|
5042
|
+
var h = document, m = b.async, v = (b.numRetries || 0) + 1, g = b.before || r, _ = d.replace(/[\?|#].*$/, ""), C = d.replace(/^(css|img|module|nomodule)!/, ""), N, $, E;
|
|
5043
|
+
if (S = S || 0, /(^css!|\.css$)/.test(_))
|
|
5044
|
+
E = h.createElement("link"), E.rel = "stylesheet", E.href = C, N = "hideFocus" in E, N && E.relList && (N = 0, E.rel = "preload", E.as = "style");
|
|
5045
|
+
else if (/(^img!|\.(png|gif|jpg|svg|webp)$)/.test(_))
|
|
5046
|
+
E = h.createElement("img"), E.src = C;
|
|
5047
|
+
else if (E = h.createElement("script"), E.src = C, E.async = m === void 0 ? !0 : m, $ = "noModule" in E, /^module!/.test(_)) {
|
|
5049
5048
|
if (!$) return p(d, "l");
|
|
5050
5049
|
E.type = "module";
|
|
5051
|
-
} else if (/^nomodule!/.test(
|
|
5050
|
+
} else if (/^nomodule!/.test(_) && $) return p(d, "l");
|
|
5052
5051
|
E.onload = E.onerror = E.onbeforeload = function(Y) {
|
|
5053
5052
|
var it = Y.type[0];
|
|
5054
5053
|
if (N)
|
|
@@ -5058,49 +5057,49 @@ function um() {
|
|
|
5058
5057
|
ct.code != 18 && (it = "e");
|
|
5059
5058
|
}
|
|
5060
5059
|
if (it == "e") {
|
|
5061
|
-
if (
|
|
5062
|
-
return u(d, p, b,
|
|
5060
|
+
if (S += 1, S < v)
|
|
5061
|
+
return u(d, p, b, S);
|
|
5063
5062
|
} else if (E.rel == "preload" && E.as == "style")
|
|
5064
5063
|
return E.rel = "stylesheet";
|
|
5065
5064
|
p(d, it, Y.defaultPrevented);
|
|
5066
5065
|
}, g(d, E) !== !1 && h.head.appendChild(E);
|
|
5067
5066
|
}
|
|
5068
|
-
function
|
|
5067
|
+
function f(d, p, b) {
|
|
5069
5068
|
d = d.push ? d : [d];
|
|
5070
|
-
var
|
|
5071
|
-
for (v = function(
|
|
5072
|
-
if (
|
|
5073
|
-
if (N) m.push(
|
|
5069
|
+
var S = d.length, h = S, m = [], v, g;
|
|
5070
|
+
for (v = function(_, C, N) {
|
|
5071
|
+
if (C == "e" && m.push(_), C == "b")
|
|
5072
|
+
if (N) m.push(_);
|
|
5074
5073
|
else return;
|
|
5075
|
-
|
|
5074
|
+
S--, S || p(m);
|
|
5076
5075
|
}, g = 0; g < h; g++) u(d[g], v, b);
|
|
5077
5076
|
}
|
|
5078
|
-
function
|
|
5079
|
-
var
|
|
5080
|
-
if (p && p.trim && (
|
|
5081
|
-
if (
|
|
5077
|
+
function l(d, p, b) {
|
|
5078
|
+
var S, h;
|
|
5079
|
+
if (p && p.trim && (S = p), h = (S ? b : p) || {}, S) {
|
|
5080
|
+
if (S in n)
|
|
5082
5081
|
throw "LoadJS";
|
|
5083
|
-
n[
|
|
5082
|
+
n[S] = !0;
|
|
5084
5083
|
}
|
|
5085
5084
|
function m(v, g) {
|
|
5086
|
-
|
|
5087
|
-
c(h,
|
|
5085
|
+
f(d, function(_) {
|
|
5086
|
+
c(h, _), v && c({ success: v, error: g }, _), i(S, _);
|
|
5088
5087
|
}, h);
|
|
5089
5088
|
}
|
|
5090
5089
|
if (h.returnPromise) return new Promise(m);
|
|
5091
5090
|
m();
|
|
5092
5091
|
}
|
|
5093
|
-
return
|
|
5094
|
-
return s(p, function(
|
|
5095
|
-
c(b,
|
|
5096
|
-
}),
|
|
5097
|
-
},
|
|
5092
|
+
return l.ready = function(p, b) {
|
|
5093
|
+
return s(p, function(S) {
|
|
5094
|
+
c(b, S);
|
|
5095
|
+
}), l;
|
|
5096
|
+
}, l.done = function(p) {
|
|
5098
5097
|
i(p, []);
|
|
5099
|
-
},
|
|
5098
|
+
}, l.reset = function() {
|
|
5100
5099
|
n = {}, o = {}, a = {};
|
|
5101
|
-
},
|
|
5100
|
+
}, l.isDefined = function(p) {
|
|
5102
5101
|
return p in n;
|
|
5103
|
-
},
|
|
5102
|
+
}, l;
|
|
5104
5103
|
});
|
|
5105
5104
|
}(se)), se.exports;
|
|
5106
5105
|
}
|
|
@@ -5151,10 +5150,10 @@ class jm {
|
|
|
5151
5150
|
export {
|
|
5152
5151
|
jm as AssetLoader,
|
|
5153
5152
|
sm as ComponentInstanceManager,
|
|
5154
|
-
|
|
5153
|
+
Ce as DYNAMIC_COMPONENT_TYPE,
|
|
5155
5154
|
im as DefaultDropPlaceholder,
|
|
5156
5155
|
Ph as DefineReactAdapter,
|
|
5157
|
-
|
|
5156
|
+
Om as DesignRender,
|
|
5158
5157
|
xh as INNER_EVENT_LIST,
|
|
5159
5158
|
$h as InnerPropList,
|
|
5160
5159
|
sa as ON_DID_RENDER,
|
|
@@ -5169,7 +5168,7 @@ export {
|
|
|
5169
5168
|
Ac as findComponentByChainRefer,
|
|
5170
5169
|
vm as flatObject,
|
|
5171
5170
|
Rc as formatSourceStylePropertyName,
|
|
5172
|
-
|
|
5171
|
+
Oa as getAdapter,
|
|
5173
5172
|
mm as getCSSTextValue,
|
|
5174
5173
|
ym as getComponentsLibs,
|
|
5175
5174
|
Qr as getInheritObj,
|
|
@@ -5178,9 +5177,9 @@ export {
|
|
|
5178
5177
|
po as getObjFromArrayMap,
|
|
5179
5178
|
bm as getThirdLibs,
|
|
5180
5179
|
hm as isClass,
|
|
5181
|
-
|
|
5180
|
+
bt as runExpression,
|
|
5182
5181
|
Nc as shouldConstruct,
|
|
5183
|
-
|
|
5182
|
+
Cm as useDesignRender,
|
|
5184
5183
|
Sm as useRender
|
|
5185
5184
|
};
|
|
5186
5185
|
//# sourceMappingURL=index.js.map
|