@chamn/render 0.8.5 → 0.8.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +6 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +254 -252
- package/dist/index.js.map +1 -1
- package/dist/index.umd.js +6 -6
- package/dist/index.umd.js.map +1 -1
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -99,8 +99,8 @@ function Et(t) {
|
|
|
99
99
|
}
|
|
100
100
|
return "";
|
|
101
101
|
}
|
|
102
|
-
var ps = /[\\^$.*+?()[\]{}|]/g, hs = /^\[object .+?Constructor\]$/, gs = Function.prototype,
|
|
103
|
-
"^" +
|
|
102
|
+
var ps = /[\\^$.*+?()[\]{}|]/g, hs = /^\[object .+?Constructor\]$/, gs = Function.prototype, vs = Object.prototype, ms = gs.toString, ys = vs.hasOwnProperty, bs = RegExp(
|
|
103
|
+
"^" + ms.call(ys).replace(ps, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
104
104
|
);
|
|
105
105
|
function _s(t) {
|
|
106
106
|
if (!wt(t) || ls(t))
|
|
@@ -179,7 +179,7 @@ var ge = function() {
|
|
|
179
179
|
writable: !0
|
|
180
180
|
});
|
|
181
181
|
} : go, Ts = Ns(As), Rs = 9007199254740991, Ps = /^(?:0|[1-9]\d*)$/;
|
|
182
|
-
function
|
|
182
|
+
function vo(t, e) {
|
|
183
183
|
var r = typeof t;
|
|
184
184
|
return e = e ?? Rs, !!e && (r == "number" || r != "symbol" && Ps.test(t)) && t > -1 && t % 1 == 0 && t < e;
|
|
185
185
|
}
|
|
@@ -223,17 +223,17 @@ function Vs(t, e) {
|
|
|
223
223
|
return Ts(Fs(t, e, go), t + "");
|
|
224
224
|
}
|
|
225
225
|
var Us = 9007199254740991;
|
|
226
|
-
function
|
|
226
|
+
function mo(t) {
|
|
227
227
|
return typeof t == "number" && t > -1 && t % 1 == 0 && t <= Us;
|
|
228
228
|
}
|
|
229
229
|
function we(t) {
|
|
230
|
-
return t != null &&
|
|
230
|
+
return t != null && mo(t.length) && !hr(t);
|
|
231
231
|
}
|
|
232
232
|
function Bs(t, e, r) {
|
|
233
233
|
if (!wt(r))
|
|
234
234
|
return !1;
|
|
235
235
|
var n = typeof e;
|
|
236
|
-
return (n == "number" ? we(r) &&
|
|
236
|
+
return (n == "number" ? we(r) && vo(e, r.length) : n == "string" && e in r) ? se(r[e], t) : !1;
|
|
237
237
|
}
|
|
238
238
|
function Gs(t) {
|
|
239
239
|
return Vs(function(e, r) {
|
|
@@ -246,7 +246,7 @@ function Gs(t) {
|
|
|
246
246
|
});
|
|
247
247
|
}
|
|
248
248
|
var ks = Object.prototype;
|
|
249
|
-
function
|
|
249
|
+
function vr(t) {
|
|
250
250
|
var e = t && t.constructor, r = typeof e == "function" && e.prototype || ks;
|
|
251
251
|
return t === r;
|
|
252
252
|
}
|
|
@@ -267,11 +267,11 @@ var yo = Object.prototype, Js = yo.hasOwnProperty, qs = yo.propertyIsEnumerable,
|
|
|
267
267
|
function Ws() {
|
|
268
268
|
return !1;
|
|
269
269
|
}
|
|
270
|
-
var bo = typeof exports == "object" && exports && !exports.nodeType && exports, en = bo && typeof module == "object" && module && !module.nodeType && module, Ks = en && en.exports === bo, rn = Ks ? X.Buffer : void 0, Qs = rn ? rn.isBuffer : void 0,
|
|
271
|
-
P[di] = P[pi] = P[hi] = P[gi] = P[
|
|
270
|
+
var bo = typeof exports == "object" && exports && !exports.nodeType && exports, en = bo && typeof module == "object" && module && !module.nodeType && module, Ks = en && en.exports === bo, rn = Ks ? X.Buffer : void 0, Qs = rn ? rn.isBuffer : void 0, ve = Qs || Ws, Ys = "[object Arguments]", Xs = "[object Array]", Zs = "[object Boolean]", ti = "[object Date]", ei = "[object Error]", ri = "[object Function]", ni = "[object Map]", oi = "[object Number]", ai = "[object Object]", si = "[object RegExp]", ii = "[object Set]", ci = "[object String]", ui = "[object WeakMap]", li = "[object ArrayBuffer]", fi = "[object DataView]", di = "[object Float32Array]", pi = "[object Float64Array]", hi = "[object Int8Array]", gi = "[object Int16Array]", vi = "[object Int32Array]", mi = "[object Uint8Array]", yi = "[object Uint8ClampedArray]", bi = "[object Uint16Array]", _i = "[object Uint32Array]", P = {};
|
|
271
|
+
P[di] = P[pi] = P[hi] = P[gi] = P[vi] = P[mi] = P[yi] = P[bi] = P[_i] = !0;
|
|
272
272
|
P[Ys] = P[Xs] = P[li] = P[Zs] = P[fi] = P[ti] = P[ei] = P[ri] = P[ni] = P[oi] = P[ai] = P[si] = P[ii] = P[ci] = P[ui] = !1;
|
|
273
273
|
function Si(t) {
|
|
274
|
-
return ft(t) &&
|
|
274
|
+
return ft(t) && mo(t.length) && !!P[Ot(t)];
|
|
275
275
|
}
|
|
276
276
|
function Oi(t) {
|
|
277
277
|
return function(e) {
|
|
@@ -284,15 +284,15 @@ var _o = typeof exports == "object" && exports && !exports.nodeType && exports,
|
|
|
284
284
|
return t || Ie && Ie.binding && Ie.binding("util");
|
|
285
285
|
} catch {
|
|
286
286
|
}
|
|
287
|
-
}(), on = nn && nn.isTypedArray,
|
|
287
|
+
}(), on = nn && nn.isTypedArray, mr = on ? Oi(on) : Si, Ei = Object.prototype, Ci = Ei.hasOwnProperty;
|
|
288
288
|
function So(t, e) {
|
|
289
|
-
var r = ot(t), n = !r && Je(t), o = !r && !n &&
|
|
289
|
+
var r = ot(t), n = !r && Je(t), o = !r && !n && ve(t), a = !r && !n && !o && mr(t), s = r || n || o || a, i = s ? Hs(t.length, String) : [], c = i.length;
|
|
290
290
|
for (var u in t)
|
|
291
291
|
(e || Ci.call(t, u)) && !(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.
|
|
293
293
|
o && (u == "offset" || u == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
294
294
|
a && (u == "buffer" || u == "byteLength" || u == "byteOffset") || // Skip index properties.
|
|
295
|
-
|
|
295
|
+
vo(u, c))) && i.push(u);
|
|
296
296
|
return i;
|
|
297
297
|
}
|
|
298
298
|
function Oo(t, e) {
|
|
@@ -302,7 +302,7 @@ function Oo(t, e) {
|
|
|
302
302
|
}
|
|
303
303
|
var $i = Oo(Object.keys, Object), ji = Object.prototype, Ni = ji.hasOwnProperty;
|
|
304
304
|
function xi(t) {
|
|
305
|
-
if (!
|
|
305
|
+
if (!vr(t))
|
|
306
306
|
return $i(t);
|
|
307
307
|
var e = [];
|
|
308
308
|
for (var r in Object(t))
|
|
@@ -323,7 +323,7 @@ var Ri = Object.prototype, Pi = Ri.hasOwnProperty;
|
|
|
323
323
|
function Mi(t) {
|
|
324
324
|
if (!wt(t))
|
|
325
325
|
return Ti(t);
|
|
326
|
-
var e =
|
|
326
|
+
var e = vr(t), r = [];
|
|
327
327
|
for (var n in t)
|
|
328
328
|
n == "constructor" && (e || !Pi.call(t, n)) || r.push(n);
|
|
329
329
|
return r;
|
|
@@ -481,7 +481,7 @@ function dc(t, e, r) {
|
|
|
481
481
|
var n = t.length;
|
|
482
482
|
return r = r === void 0 ? n : r, fc(t, e, r);
|
|
483
483
|
}
|
|
484
|
-
var pc = "\\ud800-\\udfff", hc = "\\u0300-\\u036f", gc = "\\ufe20-\\ufe2f",
|
|
484
|
+
var pc = "\\ud800-\\udfff", hc = "\\u0300-\\u036f", gc = "\\ufe20-\\ufe2f", vc = "\\u20d0-\\u20ff", mc = hc + gc + vc, yc = "\\ufe0e\\ufe0f", bc = "\\u200d", _c = RegExp("[" + bc + pc + mc + yc + "]");
|
|
485
485
|
function jo(t) {
|
|
486
486
|
return _c.test(t);
|
|
487
487
|
}
|
|
@@ -584,17 +584,17 @@ var Ke = Ct(X, "DataView"), Qe = Ct(X, "Promise"), Ye = Ct(X, "Set"), ln = "[obj
|
|
|
584
584
|
}
|
|
585
585
|
return e;
|
|
586
586
|
});
|
|
587
|
-
var
|
|
587
|
+
var me = X.Uint8Array;
|
|
588
588
|
function au(t) {
|
|
589
589
|
var e = new t.constructor(t.byteLength);
|
|
590
|
-
return new
|
|
590
|
+
return new me(e).set(new me(t)), e;
|
|
591
591
|
}
|
|
592
592
|
function su(t, e) {
|
|
593
593
|
var r = au(t.buffer);
|
|
594
594
|
return new t.constructor(r, t.byteOffset, t.length);
|
|
595
595
|
}
|
|
596
596
|
function iu(t) {
|
|
597
|
-
return typeof t.constructor == "function" && !
|
|
597
|
+
return typeof t.constructor == "function" && !vr(t) ? Os(Co(t)) : {};
|
|
598
598
|
}
|
|
599
599
|
var cu = "__lodash_hash_undefined__";
|
|
600
600
|
function uu(t) {
|
|
@@ -639,9 +639,9 @@ function Io(t, e, r, n, o, a) {
|
|
|
639
639
|
break;
|
|
640
640
|
}
|
|
641
641
|
if (h) {
|
|
642
|
-
if (!fu(e, function(
|
|
643
|
-
if (!du(h,
|
|
644
|
-
return h.push(
|
|
642
|
+
if (!fu(e, function(v, m) {
|
|
643
|
+
if (!du(h, m) && (g === v || o(g, v, r, n, a)))
|
|
644
|
+
return h.push(m);
|
|
645
645
|
})) {
|
|
646
646
|
f = !1;
|
|
647
647
|
break;
|
|
@@ -659,13 +659,13 @@ function gu(t) {
|
|
|
659
659
|
r[++e] = [o, n];
|
|
660
660
|
}), r;
|
|
661
661
|
}
|
|
662
|
-
function
|
|
662
|
+
function vu(t) {
|
|
663
663
|
var e = -1, r = Array(t.size);
|
|
664
664
|
return t.forEach(function(n) {
|
|
665
665
|
r[++e] = n;
|
|
666
666
|
}), r;
|
|
667
667
|
}
|
|
668
|
-
var
|
|
668
|
+
var mu = 1, yu = 2, bu = "[object Boolean]", _u = "[object Date]", Su = "[object Error]", Ou = "[object Map]", wu = "[object Number]", Eu = "[object RegExp]", Cu = "[object Set]", $u = "[object String]", ju = "[object Symbol]", Nu = "[object ArrayBuffer]", xu = "[object DataView]", gn = lt ? lt.prototype : void 0, De = gn ? gn.valueOf : void 0;
|
|
669
669
|
function Au(t, e, r, n, o, a, s) {
|
|
670
670
|
switch (r) {
|
|
671
671
|
case xu:
|
|
@@ -673,7 +673,7 @@ function Au(t, e, r, n, o, a, s) {
|
|
|
673
673
|
return !1;
|
|
674
674
|
t = t.buffer, e = e.buffer;
|
|
675
675
|
case Nu:
|
|
676
|
-
return !(t.byteLength != e.byteLength || !a(new
|
|
676
|
+
return !(t.byteLength != e.byteLength || !a(new me(t), new me(e)));
|
|
677
677
|
case bu:
|
|
678
678
|
case _u:
|
|
679
679
|
case wu:
|
|
@@ -686,8 +686,8 @@ function Au(t, e, r, n, o, a, s) {
|
|
|
686
686
|
case Ou:
|
|
687
687
|
var i = gu;
|
|
688
688
|
case Cu:
|
|
689
|
-
var c = n &
|
|
690
|
-
if (i || (i =
|
|
689
|
+
var c = n & mu;
|
|
690
|
+
if (i || (i = vu), t.size != e.size && !c)
|
|
691
691
|
return !1;
|
|
692
692
|
var u = s.get(t);
|
|
693
693
|
if (u)
|
|
@@ -718,10 +718,10 @@ function Mu(t, e, r, n, o, a) {
|
|
|
718
718
|
a.set(t, e), a.set(e, t);
|
|
719
719
|
for (var p = s; ++l < c; ) {
|
|
720
720
|
f = i[l];
|
|
721
|
-
var
|
|
721
|
+
var v = t[f], m = e[f];
|
|
722
722
|
if (n)
|
|
723
|
-
var y = s ? n(
|
|
724
|
-
if (!(y === void 0 ?
|
|
723
|
+
var y = s ? n(m, v, f, e, t, a) : n(v, m, f, t, e, a);
|
|
724
|
+
if (!(y === void 0 ? v === m || o(v, m, r, n, a) : y)) {
|
|
725
725
|
b = !1;
|
|
726
726
|
break;
|
|
727
727
|
}
|
|
@@ -733,18 +733,18 @@ function Mu(t, e, r, n, o, a) {
|
|
|
733
733
|
}
|
|
734
734
|
return a.delete(t), a.delete(e), b;
|
|
735
735
|
}
|
|
736
|
-
var Iu = 1,
|
|
736
|
+
var Iu = 1, vn = "[object Arguments]", mn = "[object Array]", fe = "[object Object]", Du = Object.prototype, yn = Du.hasOwnProperty;
|
|
737
737
|
function Lu(t, e, r, n, o, a) {
|
|
738
|
-
var s = ot(t), i = ot(e), c = s ?
|
|
739
|
-
c = c ==
|
|
738
|
+
var s = ot(t), i = ot(e), c = s ? mn : ut(t), u = i ? mn : ut(e);
|
|
739
|
+
c = c == vn ? fe : c, u = u == vn ? fe : u;
|
|
740
740
|
var d = c == fe, l = u == fe, f = c == u;
|
|
741
|
-
if (f &&
|
|
742
|
-
if (!
|
|
741
|
+
if (f && ve(t)) {
|
|
742
|
+
if (!ve(e))
|
|
743
743
|
return !1;
|
|
744
744
|
s = !0, d = !1;
|
|
745
745
|
}
|
|
746
746
|
if (f && !d)
|
|
747
|
-
return a || (a = new nt()), s ||
|
|
747
|
+
return a || (a = new nt()), s || mr(t) ? Io(t, e, r, n, o, a) : Au(t, e, c, r, n, o, a);
|
|
748
748
|
if (!(r & Iu)) {
|
|
749
749
|
var h = d && yn.call(t, "__wrapped__"), g = l && yn.call(e, "__wrapped__");
|
|
750
750
|
if (h || g) {
|
|
@@ -789,7 +789,7 @@ function Gu(t, e, r, n, o, a, s) {
|
|
|
789
789
|
}
|
|
790
790
|
var d = a ? a(i, c, r + "", t, e, s) : void 0, l = d === void 0;
|
|
791
791
|
if (l) {
|
|
792
|
-
var f = ot(c), h = !f &&
|
|
792
|
+
var f = ot(c), h = !f && ve(c), g = !f && !h && mr(c);
|
|
793
793
|
d = c, f || h || g ? ot(i) ? d = i : Uu(i) ? d = Es(i) : h ? (l = !1, d = Jc(c)) : g ? (l = !1, d = su(c)) : d = [] : Ft(c) || Je(c) ? (d = i, Je(i) ? d = Bu(i) : (!wt(i) || hr(i)) && (d = iu(c))) : l = !1;
|
|
794
794
|
}
|
|
795
795
|
l && (s.set(c, d), o(d, c, n, a, s), s.delete(c)), Xe(t, r, d);
|
|
@@ -829,7 +829,7 @@ ${e.keyListVar}.forEach(function (key) {
|
|
|
829
829
|
});
|
|
830
830
|
});
|
|
831
831
|
`;
|
|
832
|
-
},
|
|
832
|
+
}, Nv = function(t) {
|
|
833
833
|
return !(!t || typeof t != "function" || !t.prototype);
|
|
834
834
|
};
|
|
835
835
|
function zu(t) {
|
|
@@ -888,7 +888,7 @@ const At = (t, e) => {
|
|
|
888
888
|
var __extraParams = $$$__args__$$$.pop();
|
|
889
889
|
var __$$storeManager__ = __extraParams.storeManager;
|
|
890
890
|
var $ALL_NODE_IDS = Array.from(__$$storeManager__.storeMap.keys().filter(Boolean));;
|
|
891
|
-
var $RESPONSE = __extraParams.$$
|
|
891
|
+
var $RESPONSE = __extraParams.$$response;;
|
|
892
892
|
var $CTX = __extraParams.$$context;
|
|
893
893
|
var $$context = $CTX;
|
|
894
894
|
var $PARAMS = $$context.params || {};
|
|
@@ -948,12 +948,12 @@ ${bn("$U_STATE", {
|
|
|
948
948
|
let a = o.split("-");
|
|
949
949
|
a.length >= 2 && (a = a.map((s, i) => i !== 0 ? Fc(s) : s)), e[a.join("")] = n;
|
|
950
950
|
}), e;
|
|
951
|
-
},
|
|
951
|
+
}, xv = (t) => {
|
|
952
952
|
let e = "";
|
|
953
953
|
return Object.keys(t || {}).forEach((r) => {
|
|
954
954
|
e += `${r}:${t[r]};`;
|
|
955
955
|
}), e;
|
|
956
|
-
},
|
|
956
|
+
}, Av = (t, e) => {
|
|
957
957
|
const r = {};
|
|
958
958
|
return t.forEach((n) => {
|
|
959
959
|
if (n.globalName) {
|
|
@@ -961,7 +961,7 @@ ${bn("$U_STATE", {
|
|
|
961
961
|
o && (r[n.globalName] = o, o.__esModule && o.default && (r[n.globalName] = o.default));
|
|
962
962
|
}
|
|
963
963
|
}), r;
|
|
964
|
-
},
|
|
964
|
+
}, Tv = (t, e = 1) => {
|
|
965
965
|
let r = 0, n = t, o = {}, a = {};
|
|
966
966
|
for (; r < e; )
|
|
967
967
|
Object.keys(n).forEach((s) => {
|
|
@@ -982,7 +982,7 @@ ${bn("$U_STATE", {
|
|
|
982
982
|
return e.forEach((n) => {
|
|
983
983
|
t[n.name] && (r[n.name] = t[n.name]);
|
|
984
984
|
}), r;
|
|
985
|
-
},
|
|
985
|
+
}, Rv = (t, e) => Vo(t, e), Pv = (t, e) => Vo(t, e), _n = (t) => {
|
|
986
986
|
var r;
|
|
987
987
|
return ((r = t.value.css) == null ? void 0 : r.class) || `c_${t.id}`;
|
|
988
988
|
}, Qu = (t, e) => {
|
|
@@ -1151,18 +1151,18 @@ function Q(t) {
|
|
|
1151
1151
|
function _r(t) {
|
|
1152
1152
|
return t;
|
|
1153
1153
|
}
|
|
1154
|
-
var pl = "[object AsyncFunction]", hl = "[object Function]", gl = "[object GeneratorFunction]",
|
|
1154
|
+
var pl = "[object AsyncFunction]", hl = "[object Function]", gl = "[object GeneratorFunction]", vl = "[object Proxy]";
|
|
1155
1155
|
function Sr(t) {
|
|
1156
1156
|
if (!Q(t))
|
|
1157
1157
|
return !1;
|
|
1158
1158
|
var e = jt(t);
|
|
1159
|
-
return e == hl || e == gl || e == pl || e ==
|
|
1159
|
+
return e == hl || e == gl || e == pl || e == vl;
|
|
1160
1160
|
}
|
|
1161
1161
|
var Le = Z["__core-js_shared__"], $n = function() {
|
|
1162
1162
|
var t = /[^.]+$/.exec(Le && Le.keys && Le.keys.IE_PROTO || "");
|
|
1163
1163
|
return t ? "Symbol(src)_1." + t : "";
|
|
1164
1164
|
}();
|
|
1165
|
-
function
|
|
1165
|
+
function ml(t) {
|
|
1166
1166
|
return !!$n && $n in t;
|
|
1167
1167
|
}
|
|
1168
1168
|
var yl = Function.prototype, bl = yl.toString;
|
|
@@ -1183,7 +1183,7 @@ var _l = /[\\^$.*+?()[\]{}|]/g, Sl = /^\[object .+?Constructor\]$/, Ol = Functio
|
|
|
1183
1183
|
"^" + El.call(Cl).replace(_l, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
1184
1184
|
);
|
|
1185
1185
|
function jl(t) {
|
|
1186
|
-
if (!Q(t) ||
|
|
1186
|
+
if (!Q(t) || ml(t))
|
|
1187
1187
|
return !1;
|
|
1188
1188
|
var e = Sr(t) ? $l : Sl;
|
|
1189
1189
|
return e.test(Nt(t));
|
|
@@ -1377,9 +1377,9 @@ var Wo = Object.prototype, tf = Wo.hasOwnProperty, ef = Wo.propertyIsEnumerable,
|
|
|
1377
1377
|
function rf() {
|
|
1378
1378
|
return !1;
|
|
1379
1379
|
}
|
|
1380
|
-
var Ko = typeof exports == "object" && exports && !exports.nodeType && exports, An = Ko && typeof module == "object" && module && !module.nodeType && module, nf = An && An.exports === Ko, Tn = nf ? Z.Buffer : void 0, of = Tn ? Tn.isBuffer : void 0, te = of || rf, af = "[object Arguments]", sf = "[object Array]", cf = "[object Boolean]", uf = "[object Date]", lf = "[object Error]", ff = "[object Function]", df = "[object Map]", pf = "[object Number]", hf = "[object Object]", gf = "[object RegExp]",
|
|
1380
|
+
var Ko = typeof exports == "object" && exports && !exports.nodeType && exports, An = Ko && typeof module == "object" && module && !module.nodeType && module, nf = An && An.exports === Ko, Tn = nf ? Z.Buffer : void 0, of = Tn ? Tn.isBuffer : void 0, te = of || rf, af = "[object Arguments]", sf = "[object Array]", cf = "[object Boolean]", uf = "[object Date]", lf = "[object Error]", ff = "[object Function]", df = "[object Map]", pf = "[object Number]", hf = "[object Object]", gf = "[object RegExp]", vf = "[object Set]", mf = "[object String]", yf = "[object WeakMap]", bf = "[object ArrayBuffer]", _f = "[object DataView]", Sf = "[object Float32Array]", Of = "[object Float64Array]", wf = "[object Int8Array]", Ef = "[object Int16Array]", Cf = "[object Int32Array]", $f = "[object Uint8Array]", jf = "[object Uint8ClampedArray]", Nf = "[object Uint16Array]", xf = "[object Uint32Array]", M = {};
|
|
1381
1381
|
M[Sf] = M[Of] = M[wf] = M[Ef] = M[Cf] = M[$f] = M[jf] = M[Nf] = M[xf] = !0;
|
|
1382
|
-
M[af] = M[sf] = M[bf] = M[cf] = M[_f] = M[uf] = M[lf] = M[ff] = M[df] = M[pf] = M[hf] = M[gf] = M[
|
|
1382
|
+
M[af] = M[sf] = M[bf] = M[cf] = M[_f] = M[uf] = M[lf] = M[ff] = M[df] = M[pf] = M[hf] = M[gf] = M[vf] = M[mf] = M[yf] = !1;
|
|
1383
1383
|
function Af(t) {
|
|
1384
1384
|
return Y(t) && Er(t.length) && !!M[jt(t)];
|
|
1385
1385
|
}
|
|
@@ -1584,15 +1584,15 @@ function xr(t, e) {
|
|
|
1584
1584
|
}
|
|
1585
1585
|
xr.Cache = it;
|
|
1586
1586
|
var gd = 500;
|
|
1587
|
-
function
|
|
1587
|
+
function vd(t) {
|
|
1588
1588
|
var e = xr(t, function(n) {
|
|
1589
1589
|
return r.size === gd && r.clear(), n;
|
|
1590
1590
|
}), r = e.cache;
|
|
1591
1591
|
return e;
|
|
1592
1592
|
}
|
|
1593
|
-
var
|
|
1593
|
+
var md = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, yd = /\\(\\)?/g, bd = vd(function(t) {
|
|
1594
1594
|
var e = [];
|
|
1595
|
-
return t.charCodeAt(0) === 46 && e.push(""), t.replace(
|
|
1595
|
+
return t.charCodeAt(0) === 46 && e.push(""), t.replace(md, function(r, n, o, a) {
|
|
1596
1596
|
e.push(o ? a.replace(yd, "$1") : n || r);
|
|
1597
1597
|
}), e;
|
|
1598
1598
|
});
|
|
@@ -1786,7 +1786,7 @@ function ia(t, e) {
|
|
|
1786
1786
|
var r = e ? Mr(t.buffer) : t.buffer;
|
|
1787
1787
|
return new t.constructor(r, t.byteOffset, t.length);
|
|
1788
1788
|
}
|
|
1789
|
-
var op = "[object Boolean]", ap = "[object Date]", sp = "[object Map]", ip = "[object Number]", cp = "[object RegExp]", up = "[object Set]", lp = "[object String]", fp = "[object Symbol]", dp = "[object ArrayBuffer]", pp = "[object DataView]", hp = "[object Float32Array]", gp = "[object Float64Array]",
|
|
1789
|
+
var op = "[object Boolean]", ap = "[object Date]", sp = "[object Map]", ip = "[object Number]", cp = "[object RegExp]", up = "[object Set]", lp = "[object String]", fp = "[object Symbol]", dp = "[object ArrayBuffer]", pp = "[object DataView]", hp = "[object Float32Array]", gp = "[object Float64Array]", vp = "[object Int8Array]", mp = "[object Int16Array]", yp = "[object Int32Array]", bp = "[object Uint8Array]", _p = "[object Uint8ClampedArray]", Sp = "[object Uint16Array]", Op = "[object Uint32Array]";
|
|
1790
1790
|
function wp(t, e, r) {
|
|
1791
1791
|
var n = t.constructor;
|
|
1792
1792
|
switch (e) {
|
|
@@ -1799,8 +1799,8 @@ function wp(t, e, r) {
|
|
|
1799
1799
|
return tp(t, r);
|
|
1800
1800
|
case hp:
|
|
1801
1801
|
case gp:
|
|
1802
|
-
case mp:
|
|
1803
1802
|
case vp:
|
|
1803
|
+
case mp:
|
|
1804
1804
|
case yp:
|
|
1805
1805
|
case bp:
|
|
1806
1806
|
case _p:
|
|
@@ -1863,12 +1863,12 @@ function Kt(t, e, r, n, o, a) {
|
|
|
1863
1863
|
return h;
|
|
1864
1864
|
a.set(t, s), xp(t) ? t.forEach(function(p) {
|
|
1865
1865
|
s.add(Kt(p, e, r, p, t, a));
|
|
1866
|
-
}) : $p(t) && t.forEach(function(p,
|
|
1867
|
-
s.set(
|
|
1866
|
+
}) : $p(t) && t.forEach(function(p, v) {
|
|
1867
|
+
s.set(v, Kt(p, e, r, v, t, a));
|
|
1868
1868
|
});
|
|
1869
1869
|
var g = u ? c ? Pr : er : c ? ue : Ne, b = d ? void 0 : g(t);
|
|
1870
|
-
return Fl(b || t, function(p,
|
|
1871
|
-
b && (
|
|
1870
|
+
return Fl(b || t, function(p, v) {
|
|
1871
|
+
b && (v = p, p = t[v]), wr(s, v, Kt(p, e, r, v, t, a));
|
|
1872
1872
|
}), s;
|
|
1873
1873
|
}
|
|
1874
1874
|
var rh = 1, nh = 4;
|
|
@@ -1918,9 +1918,9 @@ function ha(t, e, r, n, o, a) {
|
|
|
1918
1918
|
break;
|
|
1919
1919
|
}
|
|
1920
1920
|
if (h) {
|
|
1921
|
-
if (!ih(e, function(
|
|
1922
|
-
if (!pa(h,
|
|
1923
|
-
return h.push(
|
|
1921
|
+
if (!ih(e, function(v, m) {
|
|
1922
|
+
if (!pa(h, m) && (g === v || o(g, v, r, n, a)))
|
|
1923
|
+
return h.push(m);
|
|
1924
1924
|
})) {
|
|
1925
1925
|
f = !1;
|
|
1926
1926
|
break;
|
|
@@ -1944,7 +1944,7 @@ function Ir(t) {
|
|
|
1944
1944
|
r[++e] = n;
|
|
1945
1945
|
}), r;
|
|
1946
1946
|
}
|
|
1947
|
-
var fh = 1, dh = 2, ph = "[object Boolean]", hh = "[object Date]", gh = "[object Error]",
|
|
1947
|
+
var fh = 1, dh = 2, ph = "[object Boolean]", hh = "[object Date]", gh = "[object Error]", vh = "[object Map]", mh = "[object Number]", yh = "[object RegExp]", bh = "[object Set]", _h = "[object String]", Sh = "[object Symbol]", Oh = "[object ArrayBuffer]", wh = "[object DataView]", qn = J ? J.prototype : void 0, Ve = qn ? qn.valueOf : void 0;
|
|
1948
1948
|
function Eh(t, e, r, n, o, a, s) {
|
|
1949
1949
|
switch (r) {
|
|
1950
1950
|
case wh:
|
|
@@ -1955,14 +1955,14 @@ function Eh(t, e, r, n, o, a, s) {
|
|
|
1955
1955
|
return !(t.byteLength != e.byteLength || !a(new _e(t), new _e(e)));
|
|
1956
1956
|
case ph:
|
|
1957
1957
|
case hh:
|
|
1958
|
-
case
|
|
1958
|
+
case mh:
|
|
1959
1959
|
return ce(+t, +e);
|
|
1960
1960
|
case gh:
|
|
1961
1961
|
return t.name == e.name && t.message == e.message;
|
|
1962
1962
|
case yh:
|
|
1963
1963
|
case _h:
|
|
1964
1964
|
return t == e + "";
|
|
1965
|
-
case
|
|
1965
|
+
case vh:
|
|
1966
1966
|
var i = lh;
|
|
1967
1967
|
case bh:
|
|
1968
1968
|
var c = n & fh;
|
|
@@ -1997,10 +1997,10 @@ function Nh(t, e, r, n, o, a) {
|
|
|
1997
1997
|
a.set(t, e), a.set(e, t);
|
|
1998
1998
|
for (var p = s; ++l < c; ) {
|
|
1999
1999
|
f = i[l];
|
|
2000
|
-
var
|
|
2000
|
+
var v = t[f], m = e[f];
|
|
2001
2001
|
if (n)
|
|
2002
|
-
var y = s ? n(
|
|
2003
|
-
if (!(y === void 0 ?
|
|
2002
|
+
var y = s ? n(m, v, f, e, t, a) : n(v, m, f, t, e, a);
|
|
2003
|
+
if (!(y === void 0 ? v === m || o(v, m, r, n, a) : y)) {
|
|
2004
2004
|
b = !1;
|
|
2005
2005
|
break;
|
|
2006
2006
|
}
|
|
@@ -2070,14 +2070,14 @@ function Ih(t) {
|
|
|
2070
2070
|
}
|
|
2071
2071
|
return e;
|
|
2072
2072
|
}
|
|
2073
|
-
function
|
|
2073
|
+
function va(t, e) {
|
|
2074
2074
|
return function(r) {
|
|
2075
2075
|
return r == null ? !1 : r[t] === e && (e !== void 0 || t in Object(r));
|
|
2076
2076
|
};
|
|
2077
2077
|
}
|
|
2078
2078
|
function Dh(t) {
|
|
2079
2079
|
var e = Ih(t);
|
|
2080
|
-
return e.length == 1 && e[0][2] ?
|
|
2080
|
+
return e.length == 1 && e[0][2] ? va(e[0][0], e[0][1]) : function(r) {
|
|
2081
2081
|
return r === t || Mh(r, t, e);
|
|
2082
2082
|
};
|
|
2083
2083
|
}
|
|
@@ -2099,7 +2099,7 @@ function Vh(t, e) {
|
|
|
2099
2099
|
}
|
|
2100
2100
|
var Uh = 1, Bh = 2;
|
|
2101
2101
|
function Gh(t, e) {
|
|
2102
|
-
return Nr(t) && ga(e) ?
|
|
2102
|
+
return Nr(t) && ga(e) ? va(Bt(t), e) : function(r) {
|
|
2103
2103
|
var n = Zo(r, t);
|
|
2104
2104
|
return n === void 0 && n === e ? Vh(r, t) : Dr(e, n, Uh | Bh);
|
|
2105
2105
|
};
|
|
@@ -2157,10 +2157,10 @@ function Kh(t, e, r, n, o, a, s) {
|
|
|
2157
2157
|
}
|
|
2158
2158
|
l && (s.set(c, d), o(d, c, n, a, s), s.delete(c)), or(t, r, d);
|
|
2159
2159
|
}
|
|
2160
|
-
function
|
|
2160
|
+
function ma(t, e, r, n, o) {
|
|
2161
2161
|
t !== e && qh(e, function(a, s) {
|
|
2162
2162
|
if (o || (o = new W()), Q(a))
|
|
2163
|
-
Kh(t, e, s, r,
|
|
2163
|
+
Kh(t, e, s, r, ma, n, o);
|
|
2164
2164
|
else {
|
|
2165
2165
|
var i = n ? n(sr(t, s), a, s + "", t, e, o) : void 0;
|
|
2166
2166
|
i === void 0 && (i = a), or(t, s, i);
|
|
@@ -2175,7 +2175,7 @@ function Qh(t, e) {
|
|
|
2175
2175
|
return e.length < 2 ? t : Te(t, xd(e, 0, -1));
|
|
2176
2176
|
}
|
|
2177
2177
|
var ba = Ql(function(t, e, r) {
|
|
2178
|
-
|
|
2178
|
+
ma(t, e, r);
|
|
2179
2179
|
}), Yh = "Expected a function";
|
|
2180
2180
|
function Xh(t) {
|
|
2181
2181
|
if (typeof t != "function")
|
|
@@ -2400,7 +2400,7 @@ class tt {
|
|
|
2400
2400
|
* Create a value with the struct's coercion logic, then validate it.
|
|
2401
2401
|
*/
|
|
2402
2402
|
create(e) {
|
|
2403
|
-
return
|
|
2403
|
+
return vg(e, this);
|
|
2404
2404
|
}
|
|
2405
2405
|
/**
|
|
2406
2406
|
* Check if a value passes the struct's validation.
|
|
@@ -2413,7 +2413,7 @@ class tt {
|
|
|
2413
2413
|
* properties defined by the struct's schema.
|
|
2414
2414
|
*/
|
|
2415
2415
|
mask(e) {
|
|
2416
|
-
return
|
|
2416
|
+
return mg(e, this);
|
|
2417
2417
|
}
|
|
2418
2418
|
/**
|
|
2419
2419
|
* Validate a value with the struct's validation logic, returning a tuple
|
|
@@ -2432,7 +2432,7 @@ function Oa(t, e) {
|
|
|
2432
2432
|
if (r[0])
|
|
2433
2433
|
throw r[0];
|
|
2434
2434
|
}
|
|
2435
|
-
function
|
|
2435
|
+
function vg(t, e) {
|
|
2436
2436
|
const r = Gt(t, e, {
|
|
2437
2437
|
coerce: !0
|
|
2438
2438
|
});
|
|
@@ -2440,7 +2440,7 @@ function mg(t, e) {
|
|
|
2440
2440
|
throw r[0];
|
|
2441
2441
|
return r[1];
|
|
2442
2442
|
}
|
|
2443
|
-
function
|
|
2443
|
+
function mg(t, e) {
|
|
2444
2444
|
const r = Gt(t, e, {
|
|
2445
2445
|
coerce: !0,
|
|
2446
2446
|
mask: !0
|
|
@@ -3354,7 +3354,7 @@ class oe {
|
|
|
3354
3354
|
});
|
|
3355
3355
|
}
|
|
3356
3356
|
}
|
|
3357
|
-
const
|
|
3357
|
+
const mt = (t) => (t == null ? void 0 : t.type) === V.EXPRESSION, xa = (t) => (t == null ? void 0 : t.type) === V.FUNCTION, Ig = (t) => (t == null ? void 0 : t.type) === V.ACTION, et = () => Math.random().toString(32).slice(3, 9), Dg = (t) => (t == null ? void 0 : t.nodeType) === "NODE", dr = (t) => (t == null ? void 0 : t.nodeType) === "PROP", Lg = (t) => (t == null ? void 0 : t.nodeType) === "SLOT", Hr = (t) => ig(t, (e) => U(e) ? !Object.keys(e).length : L(e) ? !e.length : !e);
|
|
3358
3358
|
function Fg(t, e) {
|
|
3359
3359
|
const r = [t];
|
|
3360
3360
|
for (; r.length; ) {
|
|
@@ -3769,7 +3769,7 @@ function zg(t, e) {
|
|
|
3769
3769
|
return yt(t.link, e);
|
|
3770
3770
|
}
|
|
3771
3771
|
const yt = (t, e) => function(...r) {
|
|
3772
|
-
return
|
|
3772
|
+
return mt(t) ? At(t.value, {
|
|
3773
3773
|
...e.context,
|
|
3774
3774
|
nodeContext: e.context,
|
|
3775
3775
|
storeManager: e.storeManager,
|
|
@@ -3927,7 +3927,7 @@ const yt = (t, e) => function(...r) {
|
|
|
3927
3927
|
} else
|
|
3928
3928
|
return l(d).component;
|
|
3929
3929
|
} else {
|
|
3930
|
-
if (
|
|
3930
|
+
if (mt(c))
|
|
3931
3931
|
return At(c.value, {
|
|
3932
3932
|
nodeContext: r,
|
|
3933
3933
|
storeManager: e.storeManager,
|
|
@@ -4026,19 +4026,19 @@ const yt = (t, e) => function(...r) {
|
|
|
4026
4026
|
e.value.componentName === rt.ROOT_CONTAINER ? this.setState(p) : this.storeState.setState(p);
|
|
4027
4027
|
});
|
|
4028
4028
|
E(this, "getStyleDomById", (p) => {
|
|
4029
|
-
const
|
|
4030
|
-
let
|
|
4031
|
-
return
|
|
4029
|
+
const v = this.mediaStyleDomMap;
|
|
4030
|
+
let m = v[p];
|
|
4031
|
+
return m || (m = l.createElement("style"), v[p] = m), m.id = p, m;
|
|
4032
4032
|
});
|
|
4033
4033
|
E(this, "addMediaCSS", () => {
|
|
4034
|
-
var
|
|
4034
|
+
var m;
|
|
4035
4035
|
let p = this.domHeader;
|
|
4036
|
-
if (p || (p = (
|
|
4036
|
+
if (p || (p = (m = l.getElementsByTagName("head")) == null ? void 0 : m[0], this.domHeader = p), !this.domHeader) {
|
|
4037
4037
|
console.warn("not found header dom");
|
|
4038
4038
|
return;
|
|
4039
4039
|
}
|
|
4040
|
-
const
|
|
4041
|
-
|
|
4040
|
+
const v = this._NODE_MODEL.value.css;
|
|
4041
|
+
v && v.value.forEach((y) => {
|
|
4042
4042
|
var j;
|
|
4043
4043
|
const _ = `${this.UNIQUE_ID}_${y.state}`;
|
|
4044
4044
|
let S = _n(this._NODE_MODEL);
|
|
@@ -4054,50 +4054,50 @@ const yt = (t, e) => function(...r) {
|
|
|
4054
4054
|
});
|
|
4055
4055
|
E(this, "removeMediaCSS", () => {
|
|
4056
4056
|
const p = this.mediaStyleDomMap;
|
|
4057
|
-
Object.keys(p).forEach((
|
|
4058
|
-
var
|
|
4059
|
-
(
|
|
4057
|
+
Object.keys(p).forEach((v) => {
|
|
4058
|
+
var m;
|
|
4059
|
+
(m = this.domHeader) == null || m.removeChild(p[v]);
|
|
4060
4060
|
}), this.mediaStyleDomMap = {};
|
|
4061
4061
|
});
|
|
4062
4062
|
E(this, "rebuildNode", () => {
|
|
4063
4063
|
this.storeListenDisposeList.forEach((p) => p()), this.removeMediaCSS(), this.connectStore(), this.addMediaCSS(), this.forceUpdate();
|
|
4064
4064
|
});
|
|
4065
4065
|
this.targetComponentRef = x.createRef(), this.listenerHandler = [], this.state = e.value.state || {};
|
|
4066
|
-
let
|
|
4067
|
-
e.value.componentName === rt.ROOT_CONTAINER && (
|
|
4068
|
-
const
|
|
4069
|
-
|
|
4066
|
+
let v = e.value.nodeName || e.id;
|
|
4067
|
+
e.value.componentName === rt.ROOT_CONTAINER && (v = "globalState"), this.nodeName = v;
|
|
4068
|
+
const m = n.getStore(v);
|
|
4069
|
+
m ? (this.storeState = m, m.setState({
|
|
4070
4070
|
...e.value.state || {}
|
|
4071
|
-
})) : this.storeState = n.addStore(
|
|
4071
|
+
})) : this.storeState = n.addStore(v, () => ({
|
|
4072
4072
|
...e.value.state || {}
|
|
4073
4073
|
}));
|
|
4074
4074
|
const y = this.storeState.subscribe((S) => {
|
|
4075
4075
|
this.setStateIfChanged(S);
|
|
4076
4076
|
});
|
|
4077
4077
|
this.storeListenDisposeList.push(y), this.connectStore();
|
|
4078
|
-
const _ = o.get(
|
|
4078
|
+
const _ = o.get(v);
|
|
4079
4079
|
_ ? this.variableSpace = _ : (this.variableSpace = {
|
|
4080
4080
|
staticVar: {},
|
|
4081
4081
|
methods: {}
|
|
4082
|
-
}, o.add(
|
|
4082
|
+
}, o.add(v, this.variableSpace));
|
|
4083
4083
|
}
|
|
4084
4084
|
/** 如果值和当前 state 一样了就不触发更新 */
|
|
4085
4085
|
setStateIfChanged(p) {
|
|
4086
|
-
e.value.componentName !== rt.ROOT_CONTAINER && this.setState((
|
|
4087
|
-
const
|
|
4088
|
-
return ku(
|
|
4086
|
+
e.value.componentName !== rt.ROOT_CONTAINER && this.setState((v) => {
|
|
4087
|
+
const m = typeof p == "function" ? p(v) : p;
|
|
4088
|
+
return ku(v, { ...v, ...m }) ? null : m;
|
|
4089
4089
|
});
|
|
4090
4090
|
}
|
|
4091
4091
|
connectStore() {
|
|
4092
|
-
const p = eo(e.props, (S) => !!
|
|
4092
|
+
const p = eo(e.props, (S) => !!mt(S)), v = eo(
|
|
4093
4093
|
{
|
|
4094
4094
|
css: e.value.css,
|
|
4095
4095
|
class: e.value.classNames
|
|
4096
4096
|
},
|
|
4097
|
-
(S) => !!
|
|
4097
|
+
(S) => !!mt(S)
|
|
4098
4098
|
);
|
|
4099
|
-
let
|
|
4100
|
-
[...p, ...
|
|
4099
|
+
let m = [];
|
|
4100
|
+
[...p, ...v].map((S) => {
|
|
4101
4101
|
const j = S.val, N = [
|
|
4102
4102
|
// 匹配 $$context.stateManger.xxx.state
|
|
4103
4103
|
new RegExp(`(?<=context\\.stateManager(?:\\.|\\[["'])?)\\w+(?=(?:["']?\\])?(?:\\.|\\[)?["']?state)`, "gim"),
|
|
@@ -4106,10 +4106,12 @@ const yt = (t, e) => function(...r) {
|
|
|
4106
4106
|
// 匹配 getStateObj("xxx")
|
|
4107
4107
|
/getStateObj\(["']([^"']+)["']\)/gim
|
|
4108
4108
|
], C = Ku(j.value, N);
|
|
4109
|
-
|
|
4109
|
+
m = [...m, ...C], /\$CTX\.globalState|\$G_STATE/.test(j.value) && m.push("globalState");
|
|
4110
4110
|
}).filter(Boolean);
|
|
4111
|
-
const y = Array.from(new Set(
|
|
4111
|
+
const y = Array.from(new Set(m)), _ = [];
|
|
4112
4112
|
y.length && y.forEach((S) => {
|
|
4113
|
+
if (!S)
|
|
4114
|
+
return;
|
|
4113
4115
|
n.getStore(S) || (n.addStore(S, () => ({})), console.warn(n, S, "not exits, auto create"));
|
|
4114
4116
|
const N = n.connect(S, (C) => {
|
|
4115
4117
|
this.setStateIfChanged(C);
|
|
@@ -4118,28 +4120,28 @@ const yt = (t, e) => function(...r) {
|
|
|
4118
4120
|
}), this.storeListenDisposeList = _;
|
|
4119
4121
|
}
|
|
4120
4122
|
componentDidMount() {
|
|
4121
|
-
var
|
|
4123
|
+
var m;
|
|
4122
4124
|
this.addMediaCSS(), a == null || a(this.targetComponentRef, e, this), s == null || s(this, e);
|
|
4123
|
-
const p = (
|
|
4125
|
+
const p = (m = e.value.eventListener) == null ? void 0 : m.find((y) => y.name === Ta);
|
|
4124
4126
|
p && Rt(p.func, {
|
|
4125
4127
|
context: this.createCurrentNodeCtx(),
|
|
4126
4128
|
storeManager: n,
|
|
4127
4129
|
actionVariableSpace: {},
|
|
4128
4130
|
nodeModel: e
|
|
4129
4131
|
})();
|
|
4130
|
-
const
|
|
4132
|
+
const v = () => {
|
|
4131
4133
|
n.setStore(e.value.nodeName || e.id, this.storeState), this.storeState.setState({
|
|
4132
4134
|
...this.state,
|
|
4133
4135
|
...e.value.state || {}
|
|
4134
4136
|
}), this.rebuildNode();
|
|
4135
4137
|
};
|
|
4136
|
-
e.onChange(
|
|
4138
|
+
e.onChange(v);
|
|
4137
4139
|
}
|
|
4138
4140
|
componentWillUnmount() {
|
|
4139
|
-
var
|
|
4141
|
+
var m;
|
|
4140
4142
|
this.storeListenDisposeList.forEach((y) => y()), this.removeMediaCSS(), i == null || i(this, e);
|
|
4141
|
-
const p = Ra,
|
|
4142
|
-
|
|
4143
|
+
const p = Ra, v = (m = e.value.eventListener) == null ? void 0 : m.find((y) => y.name === p);
|
|
4144
|
+
v && Rt(v.func, {
|
|
4143
4145
|
context: this.createCurrentNodeCtx(),
|
|
4144
4146
|
storeManager: n,
|
|
4145
4147
|
actionVariableSpace: {},
|
|
@@ -4148,40 +4150,40 @@ const yt = (t, e) => function(...r) {
|
|
|
4148
4150
|
}
|
|
4149
4151
|
/** 转换节点的 methods */
|
|
4150
4152
|
transformMethods(p) {
|
|
4151
|
-
const { context:
|
|
4153
|
+
const { context: v } = p, m = pe(
|
|
4152
4154
|
{
|
|
4153
4155
|
methods: e.value.methods
|
|
4154
4156
|
},
|
|
4155
4157
|
{
|
|
4156
|
-
$$context:
|
|
4158
|
+
$$context: v,
|
|
4157
4159
|
...f,
|
|
4158
4160
|
nodeModel: e
|
|
4159
4161
|
}
|
|
4160
|
-
), y = e.value.methods || [], _ =
|
|
4161
|
-
|
|
4162
|
+
), y = e.value.methods || [], _ = m.methods, S = y.reduce((j, N, C) => (j[N.name] = _[C], j), {});
|
|
4163
|
+
v.methods = S, this.variableSpace.methods = Object.assign(this.variableSpace.methods, S);
|
|
4162
4164
|
}
|
|
4163
4165
|
/** 处理根节点的 context */
|
|
4164
4166
|
processRootContext(p) {
|
|
4165
4167
|
e.value.componentName === rt.ROOT_CONTAINER && (p.globalState = this.state, p.updateGlobalState = this.updateState, p.requestAPI = d, p.getGlobalState = () => this.state);
|
|
4166
4168
|
}
|
|
4167
|
-
processNodeClassName(p,
|
|
4169
|
+
processNodeClassName(p, v) {
|
|
4168
4170
|
var _;
|
|
4169
|
-
const
|
|
4171
|
+
const m = ((_ = e.value.classNames) == null ? void 0 : _.map((S) => {
|
|
4170
4172
|
var C;
|
|
4171
4173
|
const j = S.name;
|
|
4172
|
-
return (
|
|
4173
|
-
nodeContext:
|
|
4174
|
+
return (mt(S.status) ? At(((C = S.status) == null ? void 0 : C.value) || "", {
|
|
4175
|
+
nodeContext: v,
|
|
4174
4176
|
nodeModel: e,
|
|
4175
4177
|
storeManager: n
|
|
4176
4178
|
}) : !1) ? j : "";
|
|
4177
4179
|
})) || [];
|
|
4178
|
-
let y = `${p ?? ""} ${
|
|
4180
|
+
let y = `${p ?? ""} ${m.join(" ")}`.trim();
|
|
4179
4181
|
return e.value.css && (y = `${_n(e)} ${y}`.trim()), y;
|
|
4180
4182
|
}
|
|
4181
4183
|
processNodeStyle(p) {
|
|
4182
4184
|
if (!e.value.style)
|
|
4183
4185
|
return {};
|
|
4184
|
-
const
|
|
4186
|
+
const v = pe(
|
|
4185
4187
|
{ style: e.value.style },
|
|
4186
4188
|
{
|
|
4187
4189
|
$$context: p,
|
|
@@ -4189,29 +4191,29 @@ const yt = (t, e) => function(...r) {
|
|
|
4189
4191
|
nodeModel: e
|
|
4190
4192
|
}
|
|
4191
4193
|
);
|
|
4192
|
-
return Wu(
|
|
4194
|
+
return Wu(v.style || []);
|
|
4193
4195
|
}
|
|
4194
|
-
processNodeChild(p,
|
|
4195
|
-
let
|
|
4196
|
+
processNodeChild(p, v) {
|
|
4197
|
+
let m = [];
|
|
4196
4198
|
if (p !== void 0)
|
|
4197
|
-
|
|
4199
|
+
m = Array.isArray(p) ? p : [p];
|
|
4198
4200
|
else {
|
|
4199
4201
|
const y = [];
|
|
4200
4202
|
e.value.children.forEach((S, j) => {
|
|
4201
4203
|
const N = Kg(S, {
|
|
4202
|
-
$$context:
|
|
4204
|
+
$$context: v,
|
|
4203
4205
|
idx: j,
|
|
4204
4206
|
...f
|
|
4205
4207
|
});
|
|
4206
4208
|
y.push(N);
|
|
4207
|
-
}),
|
|
4209
|
+
}), m = y;
|
|
4208
4210
|
}
|
|
4209
|
-
return
|
|
4211
|
+
return m;
|
|
4210
4212
|
}
|
|
4211
|
-
processNodeConditionAndConfigHook(p,
|
|
4213
|
+
processNodeConditionAndConfigHook(p, v, m) {
|
|
4212
4214
|
let y = e.value.condition ?? !0;
|
|
4213
4215
|
typeof y != "boolean" && (y = At(y.value, {
|
|
4214
|
-
nodeContext:
|
|
4216
|
+
nodeContext: m || {},
|
|
4215
4217
|
nodeModel: e,
|
|
4216
4218
|
storeManager: n
|
|
4217
4219
|
}));
|
|
@@ -4220,7 +4222,7 @@ const yt = (t, e) => function(...r) {
|
|
|
4220
4222
|
props: p
|
|
4221
4223
|
};
|
|
4222
4224
|
u && (_ = u(_, e));
|
|
4223
|
-
const S = ae(t, _.props, ...
|
|
4225
|
+
const S = ae(t, _.props, ...v);
|
|
4224
4226
|
return this._CONDITION = _.condition, _.condition ? S : x.createElement(
|
|
4225
4227
|
"div",
|
|
4226
4228
|
{
|
|
@@ -4233,8 +4235,8 @@ const yt = (t, e) => function(...r) {
|
|
|
4233
4235
|
);
|
|
4234
4236
|
}
|
|
4235
4237
|
processNodeEventListener(p) {
|
|
4236
|
-
const
|
|
4237
|
-
return
|
|
4238
|
+
const v = e.value.eventListener, m = {};
|
|
4239
|
+
return v == null || v.forEach((y) => {
|
|
4238
4240
|
if (Hg.includes(y.name))
|
|
4239
4241
|
return;
|
|
4240
4242
|
const _ = Rt(y.func, {
|
|
@@ -4243,38 +4245,38 @@ const yt = (t, e) => function(...r) {
|
|
|
4243
4245
|
actionVariableSpace: {},
|
|
4244
4246
|
nodeModel: e
|
|
4245
4247
|
});
|
|
4246
|
-
|
|
4247
|
-
}),
|
|
4248
|
+
m[y.name] = _;
|
|
4249
|
+
}), m;
|
|
4248
4250
|
}
|
|
4249
4251
|
createCurrentNodeCtx() {
|
|
4250
|
-
const { $$context: p } = this.props,
|
|
4252
|
+
const { $$context: p } = this.props, v = e.value.nodeName || e.id, m = e.id, y = {
|
|
4251
4253
|
state: this.state || {},
|
|
4252
4254
|
staticVar: this.variableSpace.staticVar,
|
|
4253
4255
|
updateState: this.updateState,
|
|
4254
4256
|
storeManager: n,
|
|
4255
|
-
getState: () => n.getStateObj(
|
|
4256
|
-
getStateObj: () => n.getStateObj(
|
|
4257
|
+
getState: () => n.getStateObj(v),
|
|
4258
|
+
getStateObj: () => n.getStateObj(v),
|
|
4257
4259
|
getStateObjById: (S) => n.getStateObj(S),
|
|
4258
4260
|
stateManager: n.getStateSnapshot(),
|
|
4259
4261
|
getMethods: () => {
|
|
4260
|
-
const S = o.get(
|
|
4262
|
+
const S = o.get(m).methods, j = c.get(m).current;
|
|
4261
4263
|
return Sn(S, j);
|
|
4262
4264
|
},
|
|
4263
4265
|
getMethodsById: (S) => {
|
|
4264
4266
|
const j = o.get(S).methods, N = c.get(S).current;
|
|
4265
4267
|
return Sn(j, N);
|
|
4266
4268
|
},
|
|
4267
|
-
getStaticVar: () => o.get(
|
|
4269
|
+
getStaticVar: () => o.get(v).staticVar,
|
|
4268
4270
|
getStaticVarById: (S) => o.get(S).staticVar,
|
|
4269
4271
|
/** 获取当前节点的事件函数 */
|
|
4270
4272
|
callEventMethod: (S, j) => {
|
|
4271
4273
|
var C, F;
|
|
4272
|
-
const N = c.get(
|
|
4274
|
+
const N = c.get(m).current;
|
|
4273
4275
|
(F = N == null ? void 0 : (C = N.props)[S]) == null || F.call(C, j);
|
|
4274
4276
|
},
|
|
4275
4277
|
/** 获取当前 node 的 props */
|
|
4276
4278
|
getProps: () => {
|
|
4277
|
-
const S = c.get(
|
|
4279
|
+
const S = c.get(m).current;
|
|
4278
4280
|
return S == null ? void 0 : S.props;
|
|
4279
4281
|
},
|
|
4280
4282
|
nodeRefs: p.nodeRefs
|
|
@@ -4282,23 +4284,23 @@ const yt = (t, e) => function(...r) {
|
|
|
4282
4284
|
return this.processRootContext(y), pr(y, p);
|
|
4283
4285
|
}
|
|
4284
4286
|
injectEngEnv() {
|
|
4285
|
-
const p = {},
|
|
4287
|
+
const p = {}, v = e.value.injectEnvList || [];
|
|
4286
4288
|
if (Array.isArray(e.value.injectEnvList)) {
|
|
4287
|
-
const
|
|
4289
|
+
const m = {
|
|
4288
4290
|
[ja.COMPONENTS]: r.components
|
|
4289
4291
|
};
|
|
4290
|
-
|
|
4292
|
+
v.reduce((y, _) => (y[_] = m[_], y), p);
|
|
4291
4293
|
}
|
|
4292
4294
|
return p;
|
|
4293
4295
|
}
|
|
4294
4296
|
renderCore() {
|
|
4295
|
-
const { $$context: p, ...
|
|
4297
|
+
const { $$context: p, ...v } = this.props, m = {
|
|
4296
4298
|
key: e.id,
|
|
4297
4299
|
...e.props,
|
|
4298
|
-
...
|
|
4300
|
+
...v
|
|
4299
4301
|
}, y = this.createCurrentNodeCtx();
|
|
4300
4302
|
this.transformMethods({ context: y });
|
|
4301
|
-
let _ = pe(
|
|
4303
|
+
let _ = pe(m, {
|
|
4302
4304
|
$$context: y,
|
|
4303
4305
|
...f,
|
|
4304
4306
|
nodeModel: e
|
|
@@ -4322,10 +4324,10 @@ const yt = (t, e) => function(...r) {
|
|
|
4322
4324
|
return this.processNodeConditionAndConfigHook(_, F, y);
|
|
4323
4325
|
}
|
|
4324
4326
|
renderLoop() {
|
|
4325
|
-
const { $$context: p, ...
|
|
4327
|
+
const { $$context: p, ...v } = this.props, m = {
|
|
4326
4328
|
key: e.id,
|
|
4327
4329
|
...e.props,
|
|
4328
|
-
...
|
|
4330
|
+
...v
|
|
4329
4331
|
}, y = this.createCurrentNodeCtx();
|
|
4330
4332
|
this.transformMethods({ context: y });
|
|
4331
4333
|
const _ = e.value.loop;
|
|
@@ -4333,7 +4335,7 @@ const yt = (t, e) => function(...r) {
|
|
|
4333
4335
|
if (_ && _.open) {
|
|
4334
4336
|
this.targetComponentRef.current = [];
|
|
4335
4337
|
let j = _.data || [];
|
|
4336
|
-
if (
|
|
4338
|
+
if (mt(_.data)) {
|
|
4337
4339
|
const N = _.data;
|
|
4338
4340
|
j = At(N.value, {
|
|
4339
4341
|
nodeContext: y || {},
|
|
@@ -4345,7 +4347,7 @@ const yt = (t, e) => function(...r) {
|
|
|
4345
4347
|
const C = N[1], F = [_.forName || "item", _.forIndex || "index"], ht = Fo(N, F);
|
|
4346
4348
|
let gt = "loopData";
|
|
4347
4349
|
_.name && (gt = `${gt}${_.name}`);
|
|
4348
|
-
const
|
|
4350
|
+
const vt = pr(
|
|
4349
4351
|
{
|
|
4350
4352
|
[gt]: ht,
|
|
4351
4353
|
nodeRefs: y.nodeRefs,
|
|
@@ -4357,23 +4359,23 @@ const yt = (t, e) => function(...r) {
|
|
|
4357
4359
|
},
|
|
4358
4360
|
y
|
|
4359
4361
|
);
|
|
4360
|
-
let B = pe(
|
|
4361
|
-
$$context:
|
|
4362
|
+
let B = pe(m, {
|
|
4363
|
+
$$context: vt,
|
|
4362
4364
|
...f,
|
|
4363
4365
|
nodeModel: e
|
|
4364
4366
|
});
|
|
4365
4367
|
const Ia = this.injectEngEnv();
|
|
4366
4368
|
Object.assign(B, Ia);
|
|
4367
|
-
const Da = this.processNodeClassName(B.className,
|
|
4369
|
+
const Da = this.processNodeClassName(B.className, vt);
|
|
4368
4370
|
B.className = Da;
|
|
4369
|
-
const La = this.processNodeStyle(
|
|
4371
|
+
const La = this.processNodeStyle(vt);
|
|
4370
4372
|
B.style = La;
|
|
4371
4373
|
const { children: Fa } = B;
|
|
4372
4374
|
delete B.children;
|
|
4373
|
-
const Va = this.processNodeChild(Fa,
|
|
4374
|
-
if (B.key = `${B.key}-${C}`,
|
|
4375
|
+
const Va = this.processNodeChild(Fa, vt);
|
|
4376
|
+
if (B.key = `${B.key}-${C}`, mt(_.key)) {
|
|
4375
4377
|
const kt = _.key, Ua = At(kt.value, {
|
|
4376
|
-
nodeContext:
|
|
4378
|
+
nodeContext: vt || {},
|
|
4377
4379
|
storeManager: n,
|
|
4378
4380
|
nodeModel: e
|
|
4379
4381
|
});
|
|
@@ -4382,13 +4384,13 @@ const yt = (t, e) => function(...r) {
|
|
|
4382
4384
|
if (B.ref = (kt) => {
|
|
4383
4385
|
this.targetComponentRef.current = this.targetComponentRef.current || [], this.targetComponentRef.current[C] = kt;
|
|
4384
4386
|
}, e.value.eventListener) {
|
|
4385
|
-
const kt = this.processNodeEventListener(
|
|
4387
|
+
const kt = this.processNodeEventListener(vt);
|
|
4386
4388
|
B = {
|
|
4387
4389
|
...B,
|
|
4388
4390
|
...kt
|
|
4389
4391
|
};
|
|
4390
4392
|
}
|
|
4391
|
-
return this.processNodeConditionAndConfigHook(B, Va,
|
|
4393
|
+
return this.processNodeConditionAndConfigHook(B, Va, vt);
|
|
4392
4394
|
}), S;
|
|
4393
4395
|
}
|
|
4394
4396
|
}
|
|
@@ -4467,16 +4469,16 @@ class Qg {
|
|
|
4467
4469
|
requestAPI: l,
|
|
4468
4470
|
components: this.components,
|
|
4469
4471
|
doc: f
|
|
4470
|
-
}), p = {},
|
|
4471
|
-
return Object.keys(
|
|
4472
|
-
p[
|
|
4472
|
+
}), p = {}, v = h.props;
|
|
4473
|
+
return Object.keys(v).forEach((m) => {
|
|
4474
|
+
p[m] = v[m].value;
|
|
4473
4475
|
}), p.$$context = a, ae(b, p);
|
|
4474
4476
|
}
|
|
4475
4477
|
clear() {
|
|
4476
4478
|
this.runtimeComponentCache.clear(), this.storeManager.destroy();
|
|
4477
4479
|
}
|
|
4478
4480
|
}
|
|
4479
|
-
const
|
|
4481
|
+
const Mv = qa(new Qg());
|
|
4480
4482
|
function Yg(t) {
|
|
4481
4483
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
4482
4484
|
}
|
|
@@ -4508,8 +4510,8 @@ var no;
|
|
|
4508
4510
|
function Zg() {
|
|
4509
4511
|
return no || (no = 1, ke.exports = Xg()), ke.exports;
|
|
4510
4512
|
}
|
|
4511
|
-
var
|
|
4512
|
-
const
|
|
4513
|
+
var tv = Zg();
|
|
4514
|
+
const ev = [
|
|
4513
4515
|
"a",
|
|
4514
4516
|
"abbr",
|
|
4515
4517
|
"acronym",
|
|
@@ -4664,7 +4666,7 @@ const em = [
|
|
|
4664
4666
|
return t.forEach((r) => {
|
|
4665
4667
|
e[r.key] = r.value;
|
|
4666
4668
|
}), e;
|
|
4667
|
-
},
|
|
4669
|
+
}, rv = ev.reduce((t, e) => (t[e] = ({ children: r, $$attributes: n = [], ...o }) => {
|
|
4668
4670
|
let a = r;
|
|
4669
4671
|
return Array.isArray(r) || (a = [r]), x.createElement(
|
|
4670
4672
|
e,
|
|
@@ -4674,7 +4676,7 @@ const em = [
|
|
|
4674
4676
|
},
|
|
4675
4677
|
...a
|
|
4676
4678
|
);
|
|
4677
|
-
}, t), {}),
|
|
4679
|
+
}, t), {}), nv = ({ children: t, width: e, height: r, $$attributes: n = [], ...o }) => {
|
|
4678
4680
|
let a = t;
|
|
4679
4681
|
Array.isArray(t) || (a = [t]), a = a.filter((u) => u !== void 0);
|
|
4680
4682
|
const { style: s = {}, ...i } = ct(n), c = {
|
|
@@ -4692,12 +4694,12 @@ const em = [
|
|
|
4692
4694
|
},
|
|
4693
4695
|
...a
|
|
4694
4696
|
);
|
|
4695
|
-
},
|
|
4697
|
+
}, ov = ({ afterMount: t, beforeDestroy: e, $$attributes: r = [], ...n }) => (co(() => (t == null || t(n), () => {
|
|
4696
4698
|
e == null || e(n);
|
|
4697
4699
|
}), []), x.createElement("canvas", {
|
|
4698
4700
|
...n,
|
|
4699
4701
|
...ct(r)
|
|
4700
|
-
})),
|
|
4702
|
+
})), av = ({ children: t, $$attributes: e = [], ...r }) => {
|
|
4701
4703
|
let n = t;
|
|
4702
4704
|
return Array.isArray(t) || (n = [t]), x.createElement(
|
|
4703
4705
|
"img",
|
|
@@ -4707,7 +4709,7 @@ const em = [
|
|
|
4707
4709
|
},
|
|
4708
4710
|
...n
|
|
4709
4711
|
);
|
|
4710
|
-
},
|
|
4712
|
+
}, sv = ({ children: t, $$attributes: e = [], ...r }) => {
|
|
4711
4713
|
let n = t;
|
|
4712
4714
|
return Array.isArray(t) || (n = [t]), x.createElement(
|
|
4713
4715
|
"video",
|
|
@@ -4717,7 +4719,7 @@ const em = [
|
|
|
4717
4719
|
},
|
|
4718
4720
|
...n
|
|
4719
4721
|
);
|
|
4720
|
-
},
|
|
4722
|
+
}, iv = ({ children: t, $$attributes: e = [], ...r }) => {
|
|
4721
4723
|
let n = t;
|
|
4722
4724
|
return Array.isArray(t) || (n = [t]), x.createElement(
|
|
4723
4725
|
"audio",
|
|
@@ -4727,19 +4729,19 @@ const em = [
|
|
|
4727
4729
|
},
|
|
4728
4730
|
...n
|
|
4729
4731
|
);
|
|
4730
|
-
},
|
|
4732
|
+
}, cv = ({ $$attributes: t = [], content: e, ...r }) => x.createElement(
|
|
4731
4733
|
"span",
|
|
4732
4734
|
{
|
|
4733
4735
|
...r,
|
|
4734
4736
|
...ct(t)
|
|
4735
4737
|
},
|
|
4736
4738
|
e
|
|
4737
|
-
),
|
|
4739
|
+
), uv = ({ children: t, $$attributes: e = [], afterMount: r, beforeDestroy: n, ...o }) => {
|
|
4738
4740
|
let a = t;
|
|
4739
4741
|
return Array.isArray(t) || (a = [t]), co(() => (r == null || r(o), () => {
|
|
4740
4742
|
n == null || n(o);
|
|
4741
|
-
}), []), /* @__PURE__ */
|
|
4742
|
-
},
|
|
4743
|
+
}), []), /* @__PURE__ */ tv.jsx("div", { ...o, ...ct(e), children: a });
|
|
4744
|
+
}, lv = ({ children: t, $$attributes: e = [], htmlTag: r = "div", ...n }) => {
|
|
4743
4745
|
let o = t;
|
|
4744
4746
|
Array.isArray(t) || (o = [t]);
|
|
4745
4747
|
const { style: a = {}, ...s } = ct(e), i = {
|
|
@@ -4755,19 +4757,19 @@ const em = [
|
|
|
4755
4757
|
},
|
|
4756
4758
|
...o
|
|
4757
4759
|
);
|
|
4758
|
-
},
|
|
4760
|
+
}, fv = {
|
|
4759
4761
|
RootContainer: ({ children: t }) => t,
|
|
4760
|
-
...
|
|
4761
|
-
CContainer:
|
|
4762
|
-
CVideo:
|
|
4763
|
-
CAudio:
|
|
4764
|
-
CBlock:
|
|
4765
|
-
CImage:
|
|
4766
|
-
CText:
|
|
4767
|
-
CCanvas:
|
|
4768
|
-
CNativeTag:
|
|
4762
|
+
...rv,
|
|
4763
|
+
CContainer: uv,
|
|
4764
|
+
CVideo: sv,
|
|
4765
|
+
CAudio: iv,
|
|
4766
|
+
CBlock: nv,
|
|
4767
|
+
CImage: av,
|
|
4768
|
+
CText: cv,
|
|
4769
|
+
CCanvas: ov,
|
|
4770
|
+
CNativeTag: lv
|
|
4769
4771
|
};
|
|
4770
|
-
class
|
|
4772
|
+
class dv extends x.Component {
|
|
4771
4773
|
constructor(r) {
|
|
4772
4774
|
super(r);
|
|
4773
4775
|
E(this, "refManager");
|
|
@@ -4810,7 +4812,7 @@ class dm extends x.Component {
|
|
|
4810
4812
|
if (!c)
|
|
4811
4813
|
return console.warn("pageModel is null"), null;
|
|
4812
4814
|
const u = {
|
|
4813
|
-
...
|
|
4815
|
+
...fv,
|
|
4814
4816
|
...r.components
|
|
4815
4817
|
}, d = this.props.$$context || {};
|
|
4816
4818
|
return n.pageRender(c, {
|
|
@@ -4832,7 +4834,7 @@ class dm extends x.Component {
|
|
|
4832
4834
|
});
|
|
4833
4835
|
}
|
|
4834
4836
|
}
|
|
4835
|
-
const
|
|
4837
|
+
const Iv = () => {
|
|
4836
4838
|
const t = uo(null);
|
|
4837
4839
|
return lo(() => ({
|
|
4838
4840
|
ref: t,
|
|
@@ -4841,7 +4843,7 @@ const Im = () => {
|
|
|
4841
4843
|
}
|
|
4842
4844
|
}), []);
|
|
4843
4845
|
};
|
|
4844
|
-
class
|
|
4846
|
+
class pv extends x.Component {
|
|
4845
4847
|
constructor(r) {
|
|
4846
4848
|
super(r);
|
|
4847
4849
|
E(this, "onDoubleClick", () => {
|
|
@@ -4919,7 +4921,7 @@ var He = { exports: {} }, z = {};
|
|
|
4919
4921
|
* LICENSE file in the root directory of this source tree.
|
|
4920
4922
|
*/
|
|
4921
4923
|
var oo;
|
|
4922
|
-
function
|
|
4924
|
+
function hv() {
|
|
4923
4925
|
if (oo) return z;
|
|
4924
4926
|
oo = 1;
|
|
4925
4927
|
function t(s) {
|
|
@@ -5052,15 +5054,15 @@ function hm() {
|
|
|
5052
5054
|
}, z;
|
|
5053
5055
|
}
|
|
5054
5056
|
var ao;
|
|
5055
|
-
function
|
|
5056
|
-
return ao || (ao = 1, He.exports =
|
|
5057
|
+
function gv() {
|
|
5058
|
+
return ao || (ao = 1, He.exports = hv()), He.exports;
|
|
5057
5059
|
}
|
|
5058
|
-
var
|
|
5059
|
-
function
|
|
5060
|
+
var vv = gv();
|
|
5061
|
+
function mv(t) {
|
|
5060
5062
|
return t._reactInternals;
|
|
5061
5063
|
}
|
|
5062
|
-
function
|
|
5063
|
-
const e =
|
|
5064
|
+
function yv(t) {
|
|
5065
|
+
const e = mv(t);
|
|
5064
5066
|
if (e === void 0) {
|
|
5065
5067
|
if (typeof t.render == "function")
|
|
5066
5068
|
throw new Error("Unable to find node on an unmounted component.");
|
|
@@ -5069,13 +5071,13 @@ function ym(t) {
|
|
|
5069
5071
|
throw new Error(`Argument appears to not be a ReactComponent. Keys: ${n}`);
|
|
5070
5072
|
}
|
|
5071
5073
|
}
|
|
5072
|
-
const r =
|
|
5074
|
+
const r = vv.findCurrentHostFiber(e);
|
|
5073
5075
|
return r === null ? null : r.stateNode;
|
|
5074
5076
|
}
|
|
5075
|
-
function
|
|
5076
|
-
return
|
|
5077
|
+
function bv(t) {
|
|
5078
|
+
return yv(t);
|
|
5077
5079
|
}
|
|
5078
|
-
class
|
|
5080
|
+
class _v {
|
|
5079
5081
|
constructor() {
|
|
5080
5082
|
E(this, "instanceMap", /* @__PURE__ */ new Map());
|
|
5081
5083
|
}
|
|
@@ -5098,7 +5100,7 @@ class _m {
|
|
|
5098
5100
|
this.instanceMap.clear();
|
|
5099
5101
|
}
|
|
5100
5102
|
}
|
|
5101
|
-
const
|
|
5103
|
+
const Sv = (t) => {
|
|
5102
5104
|
const { node: e } = t, r = lo(() => {
|
|
5103
5105
|
const i = e.isContainer();
|
|
5104
5106
|
return Ft(i) ? i : {
|
|
@@ -5133,12 +5135,12 @@ const Sm = (t) => {
|
|
|
5133
5135
|
n
|
|
5134
5136
|
);
|
|
5135
5137
|
};
|
|
5136
|
-
class
|
|
5138
|
+
class Dv extends x.Component {
|
|
5137
5139
|
constructor(r) {
|
|
5138
5140
|
super(r);
|
|
5139
|
-
E(this, "instanceManager", new
|
|
5141
|
+
E(this, "instanceManager", new _v());
|
|
5140
5142
|
E(this, "renderRef");
|
|
5141
|
-
E(this, "dropPlaceholder",
|
|
5143
|
+
E(this, "dropPlaceholder", Sv);
|
|
5142
5144
|
E(this, "_components", {});
|
|
5143
5145
|
E(this, "onGetComponent", (r, n) => {
|
|
5144
5146
|
var c, u;
|
|
@@ -5171,14 +5173,14 @@ class Dm extends x.Component {
|
|
|
5171
5173
|
}
|
|
5172
5174
|
getDom() {
|
|
5173
5175
|
var h, g;
|
|
5174
|
-
return ((g = (h = n.material) == null ? void 0 : h.value.advanceCustom) == null ? void 0 : g.autoGetDom) ?? !0 ?
|
|
5176
|
+
return ((g = (h = n.material) == null ? void 0 : h.value.advanceCustom) == null ? void 0 : g.autoGetDom) ?? !0 ? bv(this) : this._dom;
|
|
5175
5177
|
}
|
|
5176
5178
|
render() {
|
|
5177
|
-
var
|
|
5179
|
+
var m, y, _, S;
|
|
5178
5180
|
const { children: f = [], onlyRenderChild: h, ...g } = this.props;
|
|
5179
5181
|
let b = f;
|
|
5180
5182
|
if (ot(f) || (b = [f]), !!!b.filter(Boolean).length && (n.isContainer() || n.value.componentName === rt.ROOT_CONTAINER)) {
|
|
5181
|
-
const j = (y = (
|
|
5183
|
+
const j = (y = (m = n.material) == null ? void 0 : m.value.advanceCustom) == null ? void 0 : y.dropPlaceholder;
|
|
5182
5184
|
b.push(
|
|
5183
5185
|
x.createElement(j || o.dropPlaceholder, {
|
|
5184
5186
|
node: n
|
|
@@ -5200,7 +5202,7 @@ class Dm extends x.Component {
|
|
|
5200
5202
|
}
|
|
5201
5203
|
return x.forwardRef(function(l, f) {
|
|
5202
5204
|
return x.createElement(
|
|
5203
|
-
|
|
5205
|
+
pv,
|
|
5204
5206
|
{
|
|
5205
5207
|
node: n,
|
|
5206
5208
|
targetComponent: i
|
|
@@ -5260,7 +5262,7 @@ class Dm extends x.Component {
|
|
|
5260
5262
|
}
|
|
5261
5263
|
render() {
|
|
5262
5264
|
const { props: r, onGetComponent: n } = this, { render: o, ...a } = r;
|
|
5263
|
-
return o && (o.ref.current = this), x.createElement(
|
|
5265
|
+
return o && (o.ref.current = this), x.createElement(dv, {
|
|
5264
5266
|
onGetComponent: n,
|
|
5265
5267
|
...a,
|
|
5266
5268
|
components: this._components,
|
|
@@ -5313,7 +5315,7 @@ const Pa = (t) => {
|
|
|
5313
5315
|
}, Ma = (t) => {
|
|
5314
5316
|
var e;
|
|
5315
5317
|
return t ? (e = t == null ? void 0 : t.stateNode) != null && e._DESIGN_BOX ? t : Ma(t.return) : null;
|
|
5316
|
-
},
|
|
5318
|
+
}, Lv = () => {
|
|
5317
5319
|
const t = uo(null);
|
|
5318
5320
|
return {
|
|
5319
5321
|
ref: t,
|
|
@@ -5338,25 +5340,25 @@ const Pa = (t) => {
|
|
|
5338
5340
|
}
|
|
5339
5341
|
};
|
|
5340
5342
|
};
|
|
5341
|
-
var he = { exports: {} },
|
|
5342
|
-
function
|
|
5343
|
+
var he = { exports: {} }, Ov = he.exports, so;
|
|
5344
|
+
function wv() {
|
|
5343
5345
|
return so || (so = 1, function(t, e) {
|
|
5344
5346
|
(function(r, n) {
|
|
5345
5347
|
t.exports = n();
|
|
5346
|
-
})(
|
|
5348
|
+
})(Ov, function() {
|
|
5347
5349
|
var r = function() {
|
|
5348
5350
|
}, n = {}, o = {}, a = {};
|
|
5349
5351
|
function s(f, h) {
|
|
5350
5352
|
f = f.push ? f : [f];
|
|
5351
|
-
var g = [], b = f.length, p = b,
|
|
5352
|
-
for (
|
|
5353
|
+
var g = [], b = f.length, p = b, v, m, y, _;
|
|
5354
|
+
for (v = function(S, j) {
|
|
5353
5355
|
j.length && g.push(S), p--, p || h(g);
|
|
5354
5356
|
}; b--; ) {
|
|
5355
|
-
if (
|
|
5356
|
-
m
|
|
5357
|
+
if (m = f[b], y = o[m], y) {
|
|
5358
|
+
v(m, y);
|
|
5357
5359
|
continue;
|
|
5358
5360
|
}
|
|
5359
|
-
_ = a[
|
|
5361
|
+
_ = a[m] = a[m] || [], _.push(v);
|
|
5360
5362
|
}
|
|
5361
5363
|
}
|
|
5362
5364
|
function i(f, h) {
|
|
@@ -5371,12 +5373,12 @@ function wm() {
|
|
|
5371
5373
|
f.call && (f = { success: f }), h.length ? (f.error || r)(h) : (f.success || r)(f);
|
|
5372
5374
|
}
|
|
5373
5375
|
function u(f, h, g, b) {
|
|
5374
|
-
var p = document,
|
|
5376
|
+
var p = document, v = g.async, m = (g.numRetries || 0) + 1, y = g.before || r, _ = f.replace(/[\?|#].*$/, ""), S = f.replace(/^(css|img|module|nomodule)!/, ""), j, N, C;
|
|
5375
5377
|
if (b = b || 0, /(^css!|\.css$)/.test(_))
|
|
5376
5378
|
C = p.createElement("link"), C.rel = "stylesheet", C.href = S, j = "hideFocus" in C, j && C.relList && (j = 0, C.rel = "preload", C.as = "style");
|
|
5377
5379
|
else if (/(^img!|\.(png|gif|jpg|svg|webp)$)/.test(_))
|
|
5378
5380
|
C = p.createElement("img"), C.src = S;
|
|
5379
|
-
else if (C = p.createElement("script"), C.src = S, C.async =
|
|
5381
|
+
else if (C = p.createElement("script"), C.src = S, C.async = v === void 0 ? !0 : v, N = "noModule" in C, /^module!/.test(_)) {
|
|
5380
5382
|
if (!N) return h(f, "l");
|
|
5381
5383
|
C.type = "module";
|
|
5382
5384
|
} else if (/^nomodule!/.test(_) && N) return h(f, "l");
|
|
@@ -5389,7 +5391,7 @@ function wm() {
|
|
|
5389
5391
|
gt.code != 18 && (ht = "e");
|
|
5390
5392
|
}
|
|
5391
5393
|
if (ht == "e") {
|
|
5392
|
-
if (b += 1, b <
|
|
5394
|
+
if (b += 1, b < m)
|
|
5393
5395
|
return u(f, h, g, b);
|
|
5394
5396
|
} else if (C.rel == "preload" && C.as == "style")
|
|
5395
5397
|
return C.rel = "stylesheet";
|
|
@@ -5398,13 +5400,13 @@ function wm() {
|
|
|
5398
5400
|
}
|
|
5399
5401
|
function d(f, h, g) {
|
|
5400
5402
|
f = f.push ? f : [f];
|
|
5401
|
-
var b = f.length, p = b,
|
|
5402
|
-
for (
|
|
5403
|
-
if (S == "e" &&
|
|
5404
|
-
if (j)
|
|
5403
|
+
var b = f.length, p = b, v = [], m, y;
|
|
5404
|
+
for (m = function(_, S, j) {
|
|
5405
|
+
if (S == "e" && v.push(_), S == "b")
|
|
5406
|
+
if (j) v.push(_);
|
|
5405
5407
|
else return;
|
|
5406
|
-
b--, b || h(
|
|
5407
|
-
}, y = 0; y < p; y++) u(f[y],
|
|
5408
|
+
b--, b || h(v);
|
|
5409
|
+
}, y = 0; y < p; y++) u(f[y], m, g);
|
|
5408
5410
|
}
|
|
5409
5411
|
function l(f, h, g) {
|
|
5410
5412
|
var b, p;
|
|
@@ -5413,13 +5415,13 @@ function wm() {
|
|
|
5413
5415
|
throw "LoadJS";
|
|
5414
5416
|
n[b] = !0;
|
|
5415
5417
|
}
|
|
5416
|
-
function m
|
|
5418
|
+
function v(m, y) {
|
|
5417
5419
|
d(f, function(_) {
|
|
5418
|
-
c(p, _),
|
|
5420
|
+
c(p, _), m && c({ success: m, error: y }, _), i(b, _);
|
|
5419
5421
|
}, p);
|
|
5420
5422
|
}
|
|
5421
|
-
if (p.returnPromise) return new Promise(
|
|
5422
|
-
|
|
5423
|
+
if (p.returnPromise) return new Promise(v);
|
|
5424
|
+
v();
|
|
5423
5425
|
}
|
|
5424
5426
|
return l.ready = function(h, g) {
|
|
5425
5427
|
return s(h, function(b) {
|
|
@@ -5435,9 +5437,9 @@ function wm() {
|
|
|
5435
5437
|
});
|
|
5436
5438
|
}(he)), he.exports;
|
|
5437
5439
|
}
|
|
5438
|
-
var
|
|
5439
|
-
const io = /* @__PURE__ */ Yg(
|
|
5440
|
-
class
|
|
5440
|
+
var Ev = wv();
|
|
5441
|
+
const io = /* @__PURE__ */ Yg(Ev);
|
|
5442
|
+
class Fv {
|
|
5441
5443
|
constructor(e, r) {
|
|
5442
5444
|
E(this, "assets");
|
|
5443
5445
|
E(this, "loadStatus");
|
|
@@ -5480,38 +5482,38 @@ class Fm {
|
|
|
5480
5482
|
}
|
|
5481
5483
|
}
|
|
5482
5484
|
export {
|
|
5483
|
-
|
|
5484
|
-
|
|
5485
|
+
Fv as AssetLoader,
|
|
5486
|
+
_v as ComponentInstanceManager,
|
|
5485
5487
|
Pe as DYNAMIC_COMPONENT_TYPE,
|
|
5486
|
-
|
|
5488
|
+
Sv as DefaultDropPlaceholder,
|
|
5487
5489
|
Qg as DefineReactAdapter,
|
|
5488
|
-
|
|
5490
|
+
Dv as DesignRender,
|
|
5489
5491
|
Hg as INNER_EVENT_LIST,
|
|
5490
5492
|
kg as InnerPropList,
|
|
5491
5493
|
Ta as ON_DID_RENDER,
|
|
5492
5494
|
Ra as ON_WILL_DESTROY,
|
|
5493
|
-
|
|
5495
|
+
Mv as ReactAdapter,
|
|
5494
5496
|
Uo as RefManager,
|
|
5495
|
-
|
|
5497
|
+
dv as Render,
|
|
5496
5498
|
Ju as canAcceptsRef,
|
|
5497
|
-
|
|
5499
|
+
Av as collectVariable,
|
|
5498
5500
|
qu as compWrapper,
|
|
5499
5501
|
ie as convertCodeStringToFunction,
|
|
5500
5502
|
Qu as findComponentByChainRefer,
|
|
5501
|
-
|
|
5503
|
+
Tv as flatObject,
|
|
5502
5504
|
Wu as formatSourceStylePropertyName,
|
|
5503
5505
|
qa as getAdapter,
|
|
5504
|
-
|
|
5505
|
-
|
|
5506
|
+
xv as getCSSTextValue,
|
|
5507
|
+
Rv as getComponentsLibs,
|
|
5506
5508
|
Sn as getInheritObj,
|
|
5507
5509
|
Ku as getMatchVal,
|
|
5508
5510
|
_n as getNodeCssClassName,
|
|
5509
5511
|
Fo as getObjFromArrayMap,
|
|
5510
|
-
|
|
5511
|
-
|
|
5512
|
+
Pv as getThirdLibs,
|
|
5513
|
+
Nv as isClass,
|
|
5512
5514
|
At as runExpression,
|
|
5513
5515
|
zu as shouldConstruct,
|
|
5514
|
-
|
|
5515
|
-
|
|
5516
|
+
Lv as useDesignRender,
|
|
5517
|
+
Iv as useRender
|
|
5516
5518
|
};
|
|
5517
5519
|
//# sourceMappingURL=index.js.map
|